cups-2.4.7/0000755000175000017500000000000014502571372012364 5ustar zdohnalzdohnalcups-2.4.7/xcode/0000755000175000017500000000000014502571342013463 5ustar zdohnalzdohnalcups-2.4.7/xcode/config.h0000644000175000017500000002451014502571342015103 0ustar zdohnalzdohnal/* * Configuration file for CUPS and Xcode. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_CONFIG_H_ #define _CUPS_CONFIG_H_ #include #include /* * Version of software... */ #define CUPS_SVERSION "CUPS v2.4.7" #define CUPS_MINIMAL "CUPS/2.4.7" /* * Default user and groups... */ #define CUPS_DEFAULT_USER "_lp" #define CUPS_DEFAULT_GROUP "_lp" #define CUPS_DEFAULT_SYSTEM_GROUPS "admin" #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@AUTHKEY(system.print.operator) @admin @lpadmin" #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin" /* * Default file permissions... */ #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644 #define CUPS_DEFAULT_LOG_FILE_PERM 0644 /* * Default logging settings... */ #define CUPS_DEFAULT_LOG_LEVEL "warn" #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "none" #define CUPS_DEFAULT_MAX_LOG_SIZE "1m" /* * Default fatal error settings... */ #define CUPS_DEFAULT_FATAL_ERRORS "config" /* * Default browsing settings... */ #define CUPS_DEFAULT_BROWSING 1 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "dnssd" #define CUPS_DEFAULT_DEFAULT_SHARED 1 /* * Default IPP port... */ #define CUPS_DEFAULT_IPP_PORT 631 /* * Default printcap file... */ #define CUPS_DEFAULT_PRINTCAP "/Library/Preferences/org.cups.printers.plist" /* * Default ErrorPolicy value... */ #define CUPS_DEFAULT_ERROR_POLICY "stop-printer" /* * Default MaxCopies value... */ #define CUPS_DEFAULT_MAX_COPIES 9999 /* * Default SyncOnClose value... */ /* #undef CUPS_DEFAULT_SYNC_ON_CLOSE */ /* * Do we have domain socket support, and if so what is the default one? */ #define CUPS_DEFAULT_DOMAINSOCKET "/private/var/run/cupsd" /* * Default WebInterface value... */ #define CUPS_DEFAULT_WEBIF 0 /* * Where are files stored? * * Note: These are defaults, which can be overridden by environment * variables at run-time... */ #define CUPS_BINDIR "/usr/bin" #define CUPS_CACHEDIR "/private/var/spool/cups/cache" #define CUPS_DATADIR "/usr/share/cups" #define CUPS_DOCROOT "/usr/share/doc/cups" #define CUPS_LOCALEDIR "/usr/share/locale" #define CUPS_LOGDIR "/private/var/log/cups" #define CUPS_REQUESTS "/private/var/spool/cups" #define CUPS_SBINDIR "/usr/sbin" #define CUPS_SERVERBIN "/usr/libexec/cups" #define CUPS_SERVERROOT "/private/etc/cups" #define CUPS_STATEDIR "/private/etc/cups" /* * Do we have posix_spawn? */ #define HAVE_POSIX_SPAWN 1 /* * Do we have ZLIB? */ #define HAVE_LIBZ 1 #define HAVE_INFLATECOPY 1 /* * Do we have PAM stuff? */ #if TARGET_OS_OSX # define HAVE_LIBPAM 1 /* #undef HAVE_PAM_PAM_APPL_H */ # define HAVE_PAM_SET_ITEM 1 # define HAVE_PAM_SETCRED 1 #endif /* TARGET_OS_OSX */ /* * Do we have ? */ /* #undef HAVE_SHADOW_H */ /* * Do we have ? */ /* #undef HAVE_CRYPT_H */ /* * Use ? */ #define HAVE_STDINT_H 1 /* * Use , , and/or ? */ #define HAVE_STRING_H 1 #define HAVE_STRINGS_H 1 /* #undef HAVE_BSTRING_H */ /* * Do we have the long long type? */ #define HAVE_LONG_LONG 1 #ifdef HAVE_LONG_LONG # define CUPS_LLFMT "%lld" # define CUPS_LLCAST (long long) #else # define CUPS_LLFMT "%ld" # define CUPS_LLCAST (long) #endif /* HAVE_LONG_LONG */ /* * Do we have the strtoll() function? */ #define HAVE_STRTOLL 1 #ifndef HAVE_STRTOLL # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) #endif /* !HAVE_STRTOLL */ /* * Do we have the strXXX() functions? */ #define HAVE_STRDUP 1 #define HAVE_STRLCAT 1 #define HAVE_STRLCPY 1 /* * Do we have the geteuid() function? */ #define HAVE_GETEUID 1 /* * Do we have the setpgid() function? */ #define HAVE_SETPGID 1 /* * Do we have the vsyslog() function? */ #define HAVE_VSYSLOG 1 /* * Do we have the systemd journal functions? */ /* #undef HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Do we have the (v)snprintf() functions? */ #define HAVE_SNPRINTF 1 #define HAVE_VSNPRINTF 1 /* * What signal functions to use? */ #define HAVE_SIGSET 1 #define HAVE_SIGACTION 1 /* * What wait functions to use? */ #define HAVE_WAITPID 1 #define HAVE_WAIT3 1 /* * Do we have the mallinfo function and malloc.h? */ /* #undef HAVE_MALLINFO */ /* #undef HAVE_MALLOC_H */ /* * Do we have the POSIX ACL functions? */ #define HAVE_ACL_INIT 1 /* * Do we have the langinfo.h header file? */ #define HAVE_LANGINFO_H 1 /* * Which encryption libraries do we have? */ #define HAVE_TLS 1 #define HAVE_CDSASSL 1 /* #undef HAVE_OPENSSL */ /* #undef HAVE_GNUTLS */ /* #undef HAVE_SSPISSL */ /* * Do we have the gnutls_transport_set_pull_timeout_function function? */ /* #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION */ /* * Do we have the gnutls_priority_set_direct function? */ /* #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT */ /* * What Security framework headers do we have? */ #if TARGET_OS_OSX # define HAVE_AUTHORIZATION_H 1 #endif /* TARGET_OS_OSX */ #define HAVE_SECCERTIFICATE_H 1 #define HAVE_SECITEM_H 1 #define HAVE_SECPOLICY_H 1 /* * Do we have the SecGenerateSelfSignedCertificate function? */ #if !TARGET_OS_OSX # define HAVE_SECGENERATESELFSIGNEDCERTIFICATE 1 #endif /* !TARGET_OS_OSX */ /* * Do we have libpaper? */ /* #undef HAVE_LIBPAPER */ /* * Do we have DNS Service Discovery (aka Bonjour) support? */ #define HAVE_DNSSD 1 /* * Do we have mDNSResponder for DNS-SD? */ #define HAVE_MDNSRESPONDER 1 /* * Do we have Avahi for DNS-SD? */ /* #undef HAVE_AVAHI */ /* * Do we have ? */ #define HAVE_SYS_IOCTL_H 1 /* * Does the "stat" structure contain the "st_gen" member? */ #define HAVE_ST_GEN 1 /* * Does the "tm" structure contain the "tm_gmtoff" member? */ #define HAVE_TM_GMTOFF 1 /* * Do we have rresvport_af()? */ #define HAVE_RRESVPORT_AF 1 /* * Do we have getaddrinfo()? */ #define HAVE_GETADDRINFO 1 /* * Do we have getnameinfo()? */ #define HAVE_GETNAMEINFO 1 /* * Do we have getifaddrs()? */ #define HAVE_GETIFADDRS 1 /* * Do we have hstrerror()? */ #define HAVE_HSTRERROR 1 /* * Do we have res_init()? */ #define HAVE_RES_INIT 1 /* * Do we have */ #define HAVE_RESOLV_H 1 /* * Do we have the header file? */ #define HAVE_SYS_SOCKIO_H 1 /* * Does the sockaddr structure contain an sa_len parameter? */ /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */ /* * Do we have pthread support? */ #define HAVE_PTHREAD_H 1 /* * Do we have on-demand support (launchd/systemd/upstart)? */ #define HAVE_ONDEMAND 1 /* * Do we have launchd support? */ #define HAVE_LAUNCH_H 1 #define HAVE_LAUNCHD 1 /* * Do we have systemd support? */ /* #undef HAVE_SYSTEMD */ /* * Do we have upstart support? */ /* #undef HAVE_UPSTART */ /* * Do we have CoreFoundation public headers? */ #define HAVE_COREFOUNDATION_H 1 /* * Do we have ApplicationServices public headers? */ #if TARGET_OS_OSX # define HAVE_APPLICATIONSERVICES_H 1 #endif /* TARGET_OS_OSX */ /* * Do we have the SCDynamicStoreCopyComputerName function? */ #if TARGET_OS_OSX # define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 #endif /* TARGET_OS_OSX */ /* * Do we have the getgrouplist() function? */ #define HAVE_GETGROUPLIST 1 /* * Do we have macOS 10.4's mbr_XXX functions? */ #define HAVE_MEMBERSHIP_H 1 #define HAVE_MBR_UID_TO_UUID 1 /* * Do we have Darwin's notify_post header and function? */ #define HAVE_NOTIFY_H 1 #define HAVE_NOTIFY_POST 1 /* * Do we have DBUS? */ /* #undef HAVE_DBUS */ /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */ /* #undef HAVE_DBUS_THREADS_INIT */ /* * Do we have the GSSAPI support library (for Kerberos support)? */ #if TARGET_OS_OSX # define HAVE_GSS_ACQUIRE_CRED_EX_F 1 # define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1 # define HAVE_GSS_GSSAPI_H 1 /* #undef HAVE_GSS_GSSAPI_SPI_H */ # define HAVE_GSSAPI 1 /* #undef HAVE_GSSAPI_GSSAPI_H */ /* #undef HAVE_GSSAPI_H */ #endif /* TARGET_OS_OSX */ /* * Default GSS service name... */ #define CUPS_DEFAULT_GSSSERVICENAME "host" /* * Select/poll interfaces... */ #define HAVE_POLL 1 /* #undef HAVE_EPOLL */ #define HAVE_KQUEUE 1 /* * Do we have the header? */ #define HAVE_DLFCN_H 1 /* * Do we have ? */ #define HAVE_SYS_PARAM_H 1 /* * Do we have ? */ #define HAVE_SYS_UCRED_H 1 /* * Do we have removefile()? */ #define HAVE_REMOVEFILE 1 /* * Do we have ? */ #define HAVE_SANDBOX_H 1 /* * Which random number generator function to use... */ #define HAVE_ARC4RANDOM 1 #define HAVE_RANDOM 1 #define HAVE_LRAND48 1 #ifdef HAVE_ARC4RANDOM # define CUPS_RAND() arc4random() # define CUPS_SRAND(v) #elif defined(HAVE_RANDOM) # define CUPS_RAND() random() # define CUPS_SRAND(v) srandom(v) #elif defined(HAVE_LRAND48) # define CUPS_RAND() lrand48() # define CUPS_SRAND(v) srand48(v) #else # define CUPS_RAND() rand() # define CUPS_SRAND(v) srand(v) #endif /* HAVE_ARC4RANDOM */ /* * Do we have libusb? */ /* #undef HAVE_LIBUSB */ /* * Do we have libwrap and tcpd.h? */ /* #undef HAVE_TCPD_H */ /* * Do we have ? */ #define HAVE_ICONV_H 1 /* * Do we have statfs or statvfs and one of the corresponding headers? */ #define HAVE_STATFS 1 #define HAVE_STATVFS 1 #define HAVE_SYS_MOUNT_H 1 /* #undef HAVE_SYS_STATFS_H */ #define HAVE_SYS_STATVFS_H 1 /* #undef HAVE_SYS_VFS_H */ /* * Location of localization bundle, if any. */ #if TARGET_OS_OSX # define CUPS_BUNDLEDIR "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" #else # define CUPS_BUNDLEDIR "/System/Library/PrivateFrameworks/PrintKit.framework/Versions/A" #endif /* TARGET_OS_OSX */ /* * Do we have XPC? */ #define HAVE_XPC 1 /* * Do we have the C99 abs() function? */ #define HAVE_ABS 1 #if !defined(HAVE_ABS) && !defined(abs) # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L # define abs(x) _cups_abs(x) static inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # elif defined(_MSC_VER) # define abs(x) _cups_abs(x) static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # else # define abs(x) ((x) < 0 ? -(x) : (x)) # endif /* __GNUC__ || __STDC_VERSION__ */ #endif /* !HAVE_ABS && !abs */ #endif /* !_CUPS_CONFIG_H_ */ cups-2.4.7/xcode/README.txt0000644000175000017500000000026414502571342015163 0ustar zdohnalzdohnalREADME - CUPS on macOS/iOS - 2016-08-08 --------------------------------------- This directory contains an Xcode project for building CUPS for macOS and the CUPS library for iOS. cups-2.4.7/xcode/CUPS.xcodeproj/0000755000175000017500000000000014502571342016231 5ustar zdohnalzdohnalcups-2.4.7/xcode/CUPS.xcodeproj/project.pbxproj0000644000175000017500000225210514502571342021314 0ustar zdohnalzdohnal// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXAggregateTarget section */ 273BF6D91333B6260022CAAB /* Tests */ = { isa = PBXAggregateTarget; buildConfigurationList = 273BF6DA1333B6270022CAAB /* Build configuration list for PBXAggregateTarget "Tests" */; buildPhases = ( ); dependencies = ( 729181C12011560E005E7560 /* PBXTargetDependency */, 729181C32011560E005E7560 /* PBXTargetDependency */, 270D02281D707E5100EA9403 /* PBXTargetDependency */, 271287361CC1411000E517C7 /* PBXTargetDependency */, 2712871C1CC13FFA00E517C7 /* PBXTargetDependency */, 271286DC1CC13EF400E517C7 /* PBXTargetDependency */, 271286DE1CC13EF400E517C7 /* PBXTargetDependency */, 271286E01CC13EF400E517C7 /* PBXTargetDependency */, 271284911CC11FA500E517C7 /* PBXTargetDependency */, 271284931CC11FA500E517C7 /* PBXTargetDependency */, 271284951CC11FA500E517C7 /* PBXTargetDependency */, 271284971CC11FA500E517C7 /* PBXTargetDependency */, 271284991CC11FA500E517C7 /* PBXTargetDependency */, 2712849B1CC11FA500E517C7 /* PBXTargetDependency */, 2712849D1CC11FA500E517C7 /* PBXTargetDependency */, 2712849F1CC11FA500E517C7 /* PBXTargetDependency */, 271284A11CC11FA500E517C7 /* PBXTargetDependency */, 271284A31CC11FA500E517C7 /* PBXTargetDependency */, 271284A51CC11FA500E517C7 /* PBXTargetDependency */, 271284A71CC11FA500E517C7 /* PBXTargetDependency */, 271284A91CC11FA500E517C7 /* PBXTargetDependency */, 271284AB1CC11FA500E517C7 /* PBXTargetDependency */, 271284AD1CC11FA500E517C7 /* PBXTargetDependency */, 271284AF1CC11FA500E517C7 /* PBXTargetDependency */, 271284B11CC11FA500E517C7 /* PBXTargetDependency */, 271284B31CC11FA500E517C7 /* PBXTargetDependency */, 271284B51CC11FA500E517C7 /* PBXTargetDependency */, 271284B71CC11FA500E517C7 /* PBXTargetDependency */, 271284B91CC11FA500E517C7 /* PBXTargetDependency */, 271284BB1CC11FA500E517C7 /* PBXTargetDependency */, 271284BD1CC11FA500E517C7 /* PBXTargetDependency */, 271284BF1CC11FA500E517C7 /* PBXTargetDependency */, 271284C11CC11FA500E517C7 /* PBXTargetDependency */, 271284C31CC11FA500E517C7 /* PBXTargetDependency */, 271284C51CC11FA500E517C7 /* PBXTargetDependency */, 271284C71CC11FA500E517C7 /* PBXTargetDependency */, 274770E42345347D0089BC31 /* PBXTargetDependency */, 271284C91CC11FA500E517C7 /* PBXTargetDependency */, 726AD704135E8AA1002C930D /* PBXTargetDependency */, 2767FC5419267469000F61D3 /* PBXTargetDependency */, 273BF6DE1333B6370022CAAB /* PBXTargetDependency */, 2767FC5619267469000F61D3 /* PBXTargetDependency */, 278C58D6136B641D00836530 /* PBXTargetDependency */, 270CCDB2135E3CDE00007BE2 /* PBXTargetDependency */, ); name = Tests; productName = Tests; }; 274FF5DE13332D3000317ECB /* All */ = { isa = PBXAggregateTarget; buildConfigurationList = 274FF5DF13332D3100317ECB /* Build configuration list for PBXAggregateTarget "All" */; buildPhases = ( ); dependencies = ( 273B1EC2226B3F2600428143 /* PBXTargetDependency */, 273B1EC4226B3F2600428143 /* PBXTargetDependency */, 271287061CC13F8F00E517C7 /* PBXTargetDependency */, 271287081CC13F8F00E517C7 /* PBXTargetDependency */, 271286E21CC13F0100E517C7 /* PBXTargetDependency */, 271286E41CC13F0100E517C7 /* PBXTargetDependency */, 271286351CC12F9000E517C7 /* PBXTargetDependency */, 271286371CC12F9000E517C7 /* PBXTargetDependency */, 271286391CC12F9000E517C7 /* PBXTargetDependency */, 2712863B1CC12F9000E517C7 /* PBXTargetDependency */, 2712863D1CC12F9000E517C7 /* PBXTargetDependency */, 2712863F1CC12F9000E517C7 /* PBXTargetDependency */, 271286411CC12F9000E517C7 /* PBXTargetDependency */, 271286431CC12F9000E517C7 /* PBXTargetDependency */, 271286451CC12F9000E517C7 /* PBXTargetDependency */, 271286471CC12F9000E517C7 /* PBXTargetDependency */, 2712857E1CC1295A00E517C7 /* PBXTargetDependency */, 271285801CC1295A00E517C7 /* PBXTargetDependency */, 271285841CC1295A00E517C7 /* PBXTargetDependency */, 271285861CC1295A00E517C7 /* PBXTargetDependency */, 271285881CC1295A00E517C7 /* PBXTargetDependency */, 2712858A1CC1295A00E517C7 /* PBXTargetDependency */, 2712858C1CC1295A00E517C7 /* PBXTargetDependency */, 2712858E1CC1295A00E517C7 /* PBXTargetDependency */, 271285901CC1295A00E517C7 /* PBXTargetDependency */, 271285921CC1295A00E517C7 /* PBXTargetDependency */, 271285941CC1295A00E517C7 /* PBXTargetDependency */, 27A034871A8BDC6900650675 /* PBXTargetDependency */, 274FF5E313332D4300317ECB /* PBXTargetDependency */, 72BEA8D819AFA8BB0085F0F3 /* PBXTargetDependency */, 72F75A711336FACD004BB496 /* PBXTargetDependency */, 274FF5E513332D4300317ECB /* PBXTargetDependency */, 274FF622133331D300317ECB /* PBXTargetDependency */, 2766836B1337AA25000D33D0 /* PBXTargetDependency */, 274FF5E713332D4300317ECB /* PBXTargetDependency */, 274FF6E21333B33F00317ECB /* PBXTargetDependency */, 72F75A731336FACD004BB496 /* PBXTargetDependency */, 274FF6391333348400317ECB /* PBXTargetDependency */, 274FF5E913332D4300317ECB /* PBXTargetDependency */, 274FF648133335A300317ECB /* PBXTargetDependency */, 274FF65E13333A3400317ECB /* PBXTargetDependency */, 724379531333FECE009631B9 /* PBXTargetDependency */, 724379111333E4EA009631B9 /* PBXTargetDependency */, 72BEA8D619AFA8A00085F0F3 /* PBXTargetDependency */, 72BEA8D419AFA89C0085F0F3 /* PBXTargetDependency */, 276683FF1337F7C5000D33D0 /* PBXTargetDependency */, 7243792B1333E962009631B9 /* PBXTargetDependency */, 276683D71337B24A000D33D0 /* PBXTargetDependency */, 276683D91337B24A000D33D0 /* PBXTargetDependency */, 276683DB1337B24A000D33D0 /* PBXTargetDependency */, 276683DD1337B24A000D33D0 /* PBXTargetDependency */, 276683DF1337B24A000D33D0 /* PBXTargetDependency */, 7258EAEF13459ADA009286F1 /* PBXTargetDependency */, 720DD6D11358FDBE0064AA82 /* PBXTargetDependency */, 7243793F1333FD23009631B9 /* PBXTargetDependency */, 724379C31333FF7D009631B9 /* PBXTargetDependency */, ); name = All; productName = All; }; /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ 270696001CADF3E200FFE5FB /* array.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EB81333056300FCA411 /* array.c */; }; 270696021CADF3E200FFE5FB /* auth.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBB1333056300FCA411 /* auth.c */; }; 270696071CADF3E200FFE5FB /* debug.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED1133305BB00FCA411 /* debug.c */; }; 270696081CADF3E200FFE5FB /* dest.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED2133305BB00FCA411 /* dest.c */; }; 270696091CADF3E200FFE5FB /* dir.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED3133305BB00FCA411 /* dir.c */; }; 2706960B1CADF3E200FFE5FB /* encode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED6133305BB00FCA411 /* encode.c */; }; 2706960C1CADF3E200FFE5FB /* file.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED8133305BB00FCA411 /* file.c */; }; 2706960F1CADF3E200FFE5FB /* getputfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDC133305BB00FCA411 /* getputfile.c */; }; 270696101CADF3E200FFE5FB /* globals.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDD133305BB00FCA411 /* globals.c */; }; 270696111CADF3E200FFE5FB /* http-addr.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDE133305BB00FCA411 /* http-addr.c */; }; 270696121CADF3E200FFE5FB /* http-addrlist.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDF133305BB00FCA411 /* http-addrlist.c */; }; 270696131CADF3E200FFE5FB /* http-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE1133305BB00FCA411 /* http-support.c */; }; 270696141CADF3E200FFE5FB /* http.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE2133305BB00FCA411 /* http.c */; }; 270696161CADF3E200FFE5FB /* dest-options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E218A13543000FCAE4 /* dest-options.c */; }; 270696171CADF3E200FFE5FB /* ipp-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE5133305BB00FCA411 /* ipp-support.c */; }; 270696181CADF3E200FFE5FB /* ipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE6133305BB00FCA411 /* ipp.c */; }; 270696191CADF3E200FFE5FB /* langprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE8133305BB00FCA411 /* langprintf.c */; }; 2706961A1CADF3E200FFE5FB /* language.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEA133305BB00FCA411 /* language.c */; }; 2706961D1CADF3E200FFE5FB /* md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEF133305BB00FCA411 /* md5.c */; }; 2706961E1CADF3E200FFE5FB /* md5passwd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF0133305BB00FCA411 /* md5passwd.c */; }; 2706961F1CADF3E200FFE5FB /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = 7284F9EF1BFCCD940026F886 /* hash.c */; }; 270696201CADF3E200FFE5FB /* notify.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF1133305BB00FCA411 /* notify.c */; }; 270696211CADF3E200FFE5FB /* options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF2133305BB00FCA411 /* options.c */; }; 270696221CADF3E200FFE5FB /* tls.c in Sources */ = {isa = PBXBuildFile; fileRef = 727AD5B619100A58009F6862 /* tls.c */; }; 270696251CADF3E200FFE5FB /* dest-job.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E018A13543000FCAE4 /* dest-job.c */; }; 270696271CADF3E200FFE5FB /* pwg-media.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF8133305BB00FCA411 /* pwg-media.c */; }; 270696281CADF3E200FFE5FB /* dest-localization.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E118A13543000FCAE4 /* dest-localization.c */; }; 270696291CADF3E200FFE5FB /* request.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFB133305BB00FCA411 /* request.c */; }; 2706962C1CADF3E200FFE5FB /* snprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F00133305BB00FCA411 /* snprintf.c */; }; 2706962D1CADF3E200FFE5FB /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F02133305BB00FCA411 /* string.c */; }; 2706962E1CADF3E200FFE5FB /* tempfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F03133305BB00FCA411 /* tempfile.c */; }; 2706962F1CADF3E200FFE5FB /* thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F05133305BB00FCA411 /* thread.c */; }; 270696301CADF3E200FFE5FB /* transcode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F06133305BB00FCA411 /* transcode.c */; }; 270696311CADF3E200FFE5FB /* usersys.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F08133305BB00FCA411 /* usersys.c */; }; 270696341CADF3E200FFE5FB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 270696351CADF3E200FFE5FB /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 270696381CADF3E200FFE5FB /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 270696391CADF3E200FFE5FB /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 2706963A1CADF3E200FFE5FB /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 2706963B1CADF3E200FFE5FB /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 2706963E1CADF3E200FFE5FB /* array.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EB91333056300FCA411 /* array.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696401CADF3E200FFE5FB /* cups-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EC01333056300FCA411 /* cups-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696421CADF3E200FFE5FB /* file-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED7133305BB00FCA411 /* file-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696431CADF3E200FFE5FB /* http-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE0133305BB00FCA411 /* http-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696441CADF3E200FFE5FB /* ipp-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE4133305BB00FCA411 /* ipp-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696451CADF3E200FFE5FB /* language-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE9133305BB00FCA411 /* language-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696461CADF3E200FFE5FB /* md5-internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EEE133305BB00FCA411 /* md5-internal.h */; settings = {ATTRIBUTES = (Private, ); }; }; 270696481CADF3E200FFE5FB /* pwg-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EF9133305BB00FCA411 /* pwg-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2706964A1CADF3E200FFE5FB /* string-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F01133305BB00FCA411 /* string-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2706964B1CADF3E200FFE5FB /* thread-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F04133305BB00FCA411 /* thread-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2706964C1CADF3E200FFE5FB /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F471333063D00FCA411 /* config.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2706964D1CADF3E200FFE5FB /* cups.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EC11333056300FCA411 /* cups.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2706964E1CADF3E200FFE5FB /* dir.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED4133305BB00FCA411 /* dir.h */; settings = {ATTRIBUTES = (); }; }; 2706964F1CADF3E200FFE5FB /* file.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED9133305BB00FCA411 /* file.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696501CADF3E200FFE5FB /* http.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE3133305BB00FCA411 /* http.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696511CADF3E200FFE5FB /* ipp.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE7133305BB00FCA411 /* ipp.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696521CADF3E200FFE5FB /* language.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EEB133305BB00FCA411 /* language.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696551CADF3E200FFE5FB /* transcode.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F07133305BB00FCA411 /* transcode.h */; settings = {ATTRIBUTES = (Public, ); }; }; 270696561CADF3E200FFE5FB /* versioning.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F0A133305BB00FCA411 /* versioning.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2706965B1CAE1A9A00FFE5FB /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F09133305BB00FCA411 /* util.c */; }; 270CCDBC135E3D3E00007BE2 /* testmime.c in Sources */ = {isa = PBXBuildFile; fileRef = 270CCDBB135E3D3E00007BE2 /* testmime.c */; }; 270D02191D707E0200EA9403 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 270D021A1D707E0200EA9403 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 270D021B1D707E0200EA9403 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 270D021C1D707E0200EA9403 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 270D021D1D707E0200EA9403 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 270D021E1D707E0200EA9403 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 270D021F1D707E0200EA9403 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 270D02261D707E3700EA9403 /* testcreds.c in Sources */ = {isa = PBXBuildFile; fileRef = 270D02251D707E3700EA9403 /* testcreds.c */; }; 271284D21CC1231300E517C7 /* snmp-supplies.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790C1333E4E3009631B9 /* snmp-supplies.c */; }; 271284D71CC124D700E517C7 /* libcupscgi_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA76B1CC03AF60092477B /* libcupscgi_static.a */; }; 271284D81CC124E300E517C7 /* libcupscgi_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA76B1CC03AF60092477B /* libcupscgi_static.a */; }; 271284D91CC124F000E517C7 /* libcupsppdc_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA7401CC03AAF0092477B /* libcupsppdc_static.a */; }; 271284DA1CC1251400E517C7 /* libcupsimage_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA70F1CC03A490092477B /* libcupsimage_static.a */; }; 271284DB1CC1251F00E517C7 /* libcupscgi_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA76B1CC03AF60092477B /* libcupscgi_static.a */; }; 271284DC1CC1254C00E517C7 /* libcupsmime_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA71F1CC03A990092477B /* libcupsmime_static.a */; }; 271284E71CC1261900E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271284ED1CC1262C00E517C7 /* cancel.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E089137A3F5200FAFEF6 /* cancel.c */; }; 271284F41CC1264B00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271284FA1CC1265800E517C7 /* cupsaccept.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E08A137A3F5200FAFEF6 /* cupsaccept.c */; }; 2712850E1CC1267A00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285141CC1269400E517C7 /* lp.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E08C137A3F5200FAFEF6 /* lp.c */; }; 2712851B1CC1269700E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285211CC126A700E517C7 /* lpc.c in Sources */ = {isa = PBXBuildFile; fileRef = 271284DD1CC125FC00E517C7 /* lpc.c */; }; 271285281CC126AA00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 2712852E1CC126BC00E517C7 /* lpinfo.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E08E137A3F5200FAFEF6 /* lpinfo.c */; }; 271285351CC1270B00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 2712853B1CC1271B00E517C7 /* lpmove.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E08F137A3F5200FAFEF6 /* lpmove.c */; }; 271285421CC1271E00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285481CC1272900E517C7 /* lpoptions.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E090137A3F5200FAFEF6 /* lpoptions.c */; }; 2712854F1CC1272D00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285551CC1273C00E517C7 /* lpq.c in Sources */ = {isa = PBXBuildFile; fileRef = 271284DE1CC125FC00E517C7 /* lpq.c */; }; 2712855C1CC1274300E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285621CC1274F00E517C7 /* lpr.c in Sources */ = {isa = PBXBuildFile; fileRef = 271284DF1CC125FC00E517C7 /* lpr.c */; }; 271285691CC1275200E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 2712856F1CC1276000E517C7 /* lprm.c in Sources */ = {isa = PBXBuildFile; fileRef = 271284E01CC125FC00E517C7 /* lprm.c */; }; 271285761CC1276400E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 2712857C1CC1277000E517C7 /* lpstat.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E092137A3F5200FAFEF6 /* lpstat.c */; }; 2712859B1CC12D1300E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285A11CC12D2100E517C7 /* admin.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF02F192E3498001EF690 /* admin.c */; }; 271285A21CC12D2900E517C7 /* libcupscgi.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */; }; 271285A91CC12D3A00E517C7 /* libcupscgi.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */; }; 271285AA1CC12D3A00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285B01CC12D4A00E517C7 /* classes.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF032192E3498001EF690 /* classes.c */; }; 271285B71CC12D4E00E517C7 /* libcupscgi.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */; }; 271285B81CC12D4E00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285BE1CC12D5C00E517C7 /* jobs.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF038192E3498001EF690 /* jobs.c */; }; 271285C51CC12D5E00E517C7 /* libcupscgi.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */; }; 271285C61CC12D5E00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285CC1CC12D6D00E517C7 /* printers.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03A192E3498001EF690 /* printers.c */; }; 271285D31CC12DBF00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285D91CC12DD000E517C7 /* commandtops.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271881713746EA8001A2036 /* commandtops.c */; }; 271285E01CC12DDF00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285E61CC12DEF00E517C7 /* gziptoany.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271881A13746EA8001A2036 /* gziptoany.c */; }; 271285ED1CC12E2D00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271285F31CC12E3C00E517C7 /* pstops.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271882013746EA8001A2036 /* pstops.c */; }; 271285F41CC12E4200E517C7 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271881813746EA8001A2036 /* common.c */; }; 271285FB1CC12EEB00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286011CC12EFA00E517C7 /* rastertoepson.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271882113746EA8001A2036 /* rastertoepson.c */; }; 271286041CC12F0800E517C7 /* libcupsimage.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; }; 2712860D1CC12F0B00E517C7 /* libcupsimage.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; }; 2712860E1CC12F0B00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286141CC12F1800E517C7 /* rastertohp.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271882213746EA8001A2036 /* rastertohp.c */; }; 2712861D1CC12F1A00E517C7 /* libcupsimage.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; }; 2712861E1CC12F1A00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286241CC12F2600E517C7 /* rastertolabel.c in Sources */ = {isa = PBXBuildFile; fileRef = 7271882313746EA8001A2036 /* rastertolabel.c */; }; 2712865D1CC1309000E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2712865E1CC1309000E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 2712865F1CC1309000E517C7 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 271286601CC1309000E517C7 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 271286611CC1309000E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 271286621CC1309000E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 271286691CC130C700E517C7 /* tlscheck.c in Sources */ = {isa = PBXBuildFile; fileRef = 271286681CC130BD00E517C7 /* tlscheck.c */; }; 271286731CC1310E00E517C7 /* libcupsimage_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA70F1CC03A490092477B /* libcupsimage_static.a */; }; 271286741CC1310E00E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 271286751CC1310E00E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286761CC1310E00E517C7 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 271286771CC1310E00E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 271286781CC1310E00E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 2712867E1CC1311D00E517C7 /* rasterbench.c in Sources */ = {isa = PBXBuildFile; fileRef = 2712866A1CC130FF00E517C7 /* rasterbench.c */; }; 2712868D1CC13DC000E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2712868E1CC13DC000E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 2712868F1CC13DC000E517C7 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 271286901CC13DC000E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 271286911CC13DC000E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286971CC13DEA00E517C7 /* checkpo.c in Sources */ = {isa = PBXBuildFile; fileRef = 271286831CC13D9600E517C7 /* checkpo.c */; }; 2712869E1CC13DF100E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2712869F1CC13DF100E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286A01CC13DF100E517C7 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 271286A11CC13DF100E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 271286A21CC13DF100E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286A81CC13DFD00E517C7 /* po2strings.c in Sources */ = {isa = PBXBuildFile; fileRef = 271286851CC13D9600E517C7 /* po2strings.c */; }; 271286AF1CC13DFF00E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 271286B01CC13DFF00E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286B11CC13DFF00E517C7 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 271286B21CC13DFF00E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 271286B31CC13DFF00E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286C11CC13E2100E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286C21CC13E2100E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286C31CC13E2100E517C7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 271286C41CC13E2100E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286CA1CC13E2E00E517C7 /* bcp.c in Sources */ = {isa = PBXBuildFile; fileRef = 271286801CC1396100E517C7 /* bcp.c */; }; 271286D11CC13E5B00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286D21CC13E5B00E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286D31CC13E5B00E517C7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 271286D41CC13E5B00E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286DA1CC13E6A00E517C7 /* tbcp.c in Sources */ = {isa = PBXBuildFile; fileRef = 271286811CC1396100E517C7 /* tbcp.c */; }; 271286EB1CC13F2000E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286EC1CC13F2000E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286ED1CC13F2000E517C7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 271286EE1CC13F2000E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271286F41CC13F2F00E517C7 /* mailto.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA6D51CC039D00092477B /* mailto.c */; }; 271286FB1CC13F3F00E517C7 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 271286FC1CC13F3F00E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271286FD1CC13F3F00E517C7 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 271286FE1CC13F3F00E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 271287041CC13F4C00E517C7 /* rss.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA6D61CC039D00092477B /* rss.c */; }; 2712870F1CC13FAB00E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 271287101CC13FAB00E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 271287111CC13FAB00E517C7 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 271287121CC13FAB00E517C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 271287131CC13FAB00E517C7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 2712871A1CC13FE800E517C7 /* mantohtml.c in Sources */ = {isa = PBXBuildFile; fileRef = 271287191CC13FDB00E517C7 /* mantohtml.c */; }; 2712872D1CC140D200E517C7 /* genstrings.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 2712871D1CC140B400E517C7 /* genstrings.cxx */; }; 271287321CC140EB00E517C7 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 271287331CC140EB00E517C7 /* libcupsppdc_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA7401CC03AAF0092477B /* libcupsppdc_static.a */; }; 271287341CC140F500E517C7 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 273B1EA1226B3E4800428143 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 273B1EA2226B3E4800428143 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 273B1EA3226B3E4800428143 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 273B1EA4226B3E4800428143 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 273B1EA5226B3E4800428143 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 273B1EB2226B3E5200428143 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 273B1EB3226B3E5200428143 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 273B1EB4226B3E5200428143 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 273B1EB5226B3E5200428143 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 273B1EB6226B3E5200428143 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 273B1EBF226B3EF300428143 /* ippevepcl.c in Sources */ = {isa = PBXBuildFile; fileRef = 273B1EBE226B3EE300428143 /* ippevepcl.c */; }; 273B1EC0226B3EFF00428143 /* ippeveps.c in Sources */ = {isa = PBXBuildFile; fileRef = 273B1EBC226B3EE300428143 /* ippeveps.c */; }; 273B1EC7226B41F700428143 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 273B1ECA226B420C00428143 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 273B1ECD226B421E00428143 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 273BF6C71333B5370022CAAB /* testcups.c in Sources */ = {isa = PBXBuildFile; fileRef = 273BF6C61333B5370022CAAB /* testcups.c */; }; 274770D72345342B0089BC31 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 274770D82345342B0089BC31 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 274770D92345342B0089BC31 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 274770DA2345342B0089BC31 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 274770DB2345342B0089BC31 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 274770E2234534660089BC31 /* testthreads.c in Sources */ = {isa = PBXBuildFile; fileRef = 274770E1234534660089BC31 /* testthreads.c */; }; 274FF5D913332CC700317ECB /* cups-driverd.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5D613332CC700317ECB /* cups-driverd.cxx */; }; 274FF5DA13332CC700317ECB /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5D713332CC700317ECB /* util.c */; }; 274FF5DD13332D0600317ECB /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 274FF60A1333315100317ECB /* ppdc-array.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F51333315100317ECB /* ppdc-array.cxx */; }; 274FF60B1333315100317ECB /* ppdc-attr.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F61333315100317ECB /* ppdc-attr.cxx */; }; 274FF60C1333315100317ECB /* ppdc-catalog.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F71333315100317ECB /* ppdc-catalog.cxx */; }; 274FF60D1333315100317ECB /* ppdc-choice.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F81333315100317ECB /* ppdc-choice.cxx */; }; 274FF60E1333315100317ECB /* ppdc-constraint.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F91333315100317ECB /* ppdc-constraint.cxx */; }; 274FF60F1333315100317ECB /* ppdc-driver.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FA1333315100317ECB /* ppdc-driver.cxx */; }; 274FF6101333315100317ECB /* ppdc-file.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FB1333315100317ECB /* ppdc-file.cxx */; }; 274FF6111333315100317ECB /* ppdc-filter.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FC1333315100317ECB /* ppdc-filter.cxx */; }; 274FF6121333315100317ECB /* ppdc-font.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FD1333315100317ECB /* ppdc-font.cxx */; }; 274FF6131333315100317ECB /* ppdc-group.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FE1333315100317ECB /* ppdc-group.cxx */; }; 274FF6141333315100317ECB /* ppdc-import.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FF1333315100317ECB /* ppdc-import.cxx */; }; 274FF6151333315100317ECB /* ppdc-mediasize.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6001333315100317ECB /* ppdc-mediasize.cxx */; }; 274FF6161333315100317ECB /* ppdc-message.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6011333315100317ECB /* ppdc-message.cxx */; }; 274FF6171333315100317ECB /* ppdc-option.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6021333315100317ECB /* ppdc-option.cxx */; }; 274FF6181333315100317ECB /* ppdc-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 274FF6031333315100317ECB /* ppdc-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 274FF6191333315100317ECB /* ppdc-profile.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6041333315100317ECB /* ppdc-profile.cxx */; }; 274FF61A1333315100317ECB /* ppdc-shared.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6051333315100317ECB /* ppdc-shared.cxx */; }; 274FF61B1333315100317ECB /* ppdc-source.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6061333315100317ECB /* ppdc-source.cxx */; }; 274FF61C1333315100317ECB /* ppdc-string.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6071333315100317ECB /* ppdc-string.cxx */; }; 274FF61D1333315100317ECB /* ppdc-variable.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6081333315100317ECB /* ppdc-variable.cxx */; }; 274FF61E1333315100317ECB /* ppdc.h in Headers */ = {isa = PBXBuildFile; fileRef = 274FF6091333315100317ECB /* ppdc.h */; }; 274FF6231333321400317ECB /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 274FF6241333323B00317ECB /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 274FF6321333334A00317ECB /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 274FF6361333344400317ECB /* cups-deviced.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6351333344400317ECB /* cups-deviced.c */; }; 274FF6371333345900317ECB /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5D713332CC700317ECB /* util.c */; }; 274FF64A1333398D00317ECB /* cups-exec.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6491333398D00317ECB /* cups-exec.c */; }; 274FF658133339D300317ECB /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 274FF65C133339FC00317ECB /* cups-lpd.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF65B133339FC00317ECB /* cups-lpd.c */; }; 274FF68513333B4300317ECB /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 274FF68613333B4300317ECB /* libcupsmime.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220FAC13330B2200FCA411 /* libcupsmime.dylib */; }; 274FF68813333B6E00317ECB /* cupsfilter.c in Sources */ = {isa = PBXBuildFile; fileRef = 274FF68713333B6E00317ECB /* cupsfilter.c */; }; 274FF68B1333B1C400317ECB /* adminutil.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EB51333052D00FCA411 /* adminutil.c */; }; 274FF68C1333B1C400317ECB /* array.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EB81333056300FCA411 /* array.c */; }; 274FF68D1333B1C400317ECB /* ppd-attr.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBA1333056300FCA411 /* ppd-attr.c */; }; 274FF68E1333B1C400317ECB /* auth.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBB1333056300FCA411 /* auth.c */; }; 274FF68F1333B1C400317ECB /* backchannel.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBC1333056300FCA411 /* backchannel.c */; }; 274FF6901333B1C400317ECB /* backend.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBD1333056300FCA411 /* backend.c */; }; 274FF6911333B1C400317ECB /* ppd-conflicts.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBF1333056300FCA411 /* ppd-conflicts.c */; }; 274FF6921333B1C400317ECB /* ppd-custom.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EC21333056300FCA411 /* ppd-custom.c */; }; 274FF6931333B1C400317ECB /* debug.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED1133305BB00FCA411 /* debug.c */; }; 274FF6941333B1C400317ECB /* dest.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED2133305BB00FCA411 /* dest.c */; }; 274FF6951333B1C400317ECB /* dir.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED3133305BB00FCA411 /* dir.c */; }; 274FF6961333B1C400317ECB /* ppd-emit.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED5133305BB00FCA411 /* ppd-emit.c */; }; 274FF6971333B1C400317ECB /* encode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED6133305BB00FCA411 /* encode.c */; }; 274FF6981333B1C400317ECB /* file.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED8133305BB00FCA411 /* file.c */; }; 274FF6991333B1C400317ECB /* getdevices.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDA133305BB00FCA411 /* getdevices.c */; }; 274FF69A1333B1C400317ECB /* getifaddrs.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDB133305BB00FCA411 /* getifaddrs.c */; }; 274FF69B1333B1C400317ECB /* getputfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDC133305BB00FCA411 /* getputfile.c */; }; 274FF69C1333B1C400317ECB /* globals.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDD133305BB00FCA411 /* globals.c */; }; 274FF69D1333B1C400317ECB /* http-addr.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDE133305BB00FCA411 /* http-addr.c */; }; 274FF69E1333B1C400317ECB /* http-addrlist.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDF133305BB00FCA411 /* http-addrlist.c */; }; 274FF69F1333B1C400317ECB /* http-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE1133305BB00FCA411 /* http-support.c */; }; 274FF6A01333B1C400317ECB /* http.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE2133305BB00FCA411 /* http.c */; }; 274FF6A11333B1C400317ECB /* ipp-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE5133305BB00FCA411 /* ipp-support.c */; }; 274FF6A21333B1C400317ECB /* ipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE6133305BB00FCA411 /* ipp.c */; }; 274FF6A31333B1C400317ECB /* langprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE8133305BB00FCA411 /* langprintf.c */; }; 274FF6A41333B1C400317ECB /* language.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEA133305BB00FCA411 /* language.c */; }; 274FF6A51333B1C400317ECB /* ppd-localize.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEC133305BB00FCA411 /* ppd-localize.c */; }; 274FF6A61333B1C400317ECB /* ppd-mark.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EED133305BB00FCA411 /* ppd-mark.c */; }; 274FF6A71333B1C400317ECB /* md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEF133305BB00FCA411 /* md5.c */; }; 274FF6A81333B1C400317ECB /* md5passwd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF0133305BB00FCA411 /* md5passwd.c */; }; 274FF6A91333B1C400317ECB /* notify.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF1133305BB00FCA411 /* notify.c */; }; 274FF6AA1333B1C400317ECB /* options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF2133305BB00FCA411 /* options.c */; }; 274FF6AB1333B1C400317ECB /* ppd-page.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF3133305BB00FCA411 /* ppd-page.c */; }; 274FF6AC1333B1C400317ECB /* ppd-cache.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF4133305BB00FCA411 /* ppd-cache.c */; }; 274FF6AD1333B1C400317ECB /* ppd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF6133305BB00FCA411 /* ppd.c */; }; 274FF6AE1333B1C400317ECB /* pwg-media.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF8133305BB00FCA411 /* pwg-media.c */; }; 274FF6AF1333B1C400317ECB /* request.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFB133305BB00FCA411 /* request.c */; }; 274FF6B01333B1C400317ECB /* sidechannel.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFC133305BB00FCA411 /* sidechannel.c */; }; 274FF6B11333B1C400317ECB /* snmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFF133305BB00FCA411 /* snmp.c */; }; 274FF6B21333B1C400317ECB /* snprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F00133305BB00FCA411 /* snprintf.c */; }; 274FF6B31333B1C400317ECB /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F02133305BB00FCA411 /* string.c */; }; 274FF6B41333B1C400317ECB /* tempfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F03133305BB00FCA411 /* tempfile.c */; }; 274FF6B51333B1C400317ECB /* thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F05133305BB00FCA411 /* thread.c */; }; 274FF6B61333B1C400317ECB /* transcode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F06133305BB00FCA411 /* transcode.c */; }; 274FF6B71333B1C400317ECB /* usersys.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F08133305BB00FCA411 /* usersys.c */; }; 274FF6B81333B1C400317ECB /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F09133305BB00FCA411 /* util.c */; }; 274FF6C61333B1C400317ECB /* dir.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED4133305BB00FCA411 /* dir.h */; settings = {ATTRIBUTES = (); }; }; 276683671337A9E0000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683691337AA00000D33D0 /* cupsctl.c in Sources */ = {isa = PBXBuildFile; fileRef = 276683681337AA00000D33D0 /* cupsctl.c */; }; 276683B11337AD06000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683B21337AD06000D33D0 /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 276683B71337AD23000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683B81337AD23000D33D0 /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 276683B91337AD31000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683BA1337AD31000D33D0 /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 276683C31337B1B3000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683C41337B1B3000D33D0 /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 276683C91337B1C1000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683CA1337B1C1000D33D0 /* libcupsppdc.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; }; 276683CD1337B201000D33D0 /* ppdc.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 276683CC1337B201000D33D0 /* ppdc.cxx */; }; 276683CF1337B20D000D33D0 /* ppdhtml.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 276683CE1337B20D000D33D0 /* ppdhtml.cxx */; }; 276683D11337B21A000D33D0 /* ppdi.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 276683D01337B21A000D33D0 /* ppdi.cxx */; }; 276683D31337B228000D33D0 /* ppdmerge.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 276683D21337B228000D33D0 /* ppdmerge.cxx */; }; 276683D51337B237000D33D0 /* ppdpo.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 276683D41337B237000D33D0 /* ppdpo.cxx */; }; 276683E21337B29C000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 276683E51337B2BE000D33D0 /* libcupsimage.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; }; 276683FA1337F7A9000D33D0 /* ipptool.c in Sources */ = {isa = PBXBuildFile; fileRef = 276683F91337F7A9000D33D0 /* ipptool.c */; }; 276683FD1337F7B8000D33D0 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 2767FC5219266A36000F61D3 /* testdest.c in Sources */ = {isa = PBXBuildFile; fileRef = 2767FC5119266A36000F61D3 /* testdest.c */; }; 2767FC57192674C4000F61D3 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2767FC58192674E0000F61D3 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2767FC5F1926750C000F61D3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 2767FC601926750C000F61D3 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 2767FC611926750C000F61D3 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 2767FC621926750C000F61D3 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 2767FC631926750C000F61D3 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 2767FC641926750C000F61D3 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 2767FC6619267538000F61D3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 2767FC6719267538000F61D3 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 2767FC6819267538000F61D3 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 2767FC6919267538000F61D3 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 2767FC6A19267538000F61D3 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 2767FC6B192685E6000F61D3 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 2767FC6C192685E6000F61D3 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 2767FC6D192685E6000F61D3 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 2767FC6E192685E6000F61D3 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 2767FC6F192685E6000F61D3 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 2767FC70192685E6000F61D3 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 2767FC71192685E6000F61D3 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 2767FC7219268F06000F61D3 /* dest-job.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E018A13543000FCAE4 /* dest-job.c */; }; 2767FC7319268F09000F61D3 /* dest-localization.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E118A13543000FCAE4 /* dest-localization.c */; }; 2767FC7419268F0C000F61D3 /* dest-options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E218A13543000FCAE4 /* dest-options.c */; }; 278C58E3136B647200836530 /* testhttp.c in Sources */ = {isa = PBXBuildFile; fileRef = 278C58E2136B647200836530 /* testhttp.c */; }; 278C58E9136B64B000836530 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 278C58EA136B64B000836530 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 278C58EB136B64B000836530 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 278C58EC136B64B000836530 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 279AE6F52395B80F004DD600 /* libpam.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 279AE6F42395B80F004DD600 /* libpam.tbd */; }; 27A034821A8BDC3A00650675 /* lpadmin.c in Sources */ = {isa = PBXBuildFile; fileRef = 2732E08D137A3F5200FAFEF6 /* lpadmin.c */; }; 27A034851A8BDC5C00650675 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 7200511218F492F200E7B81B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 720DD6CD1358FD720064AA82 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 720DD6D31358FDDE0064AA82 /* snmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 720DD6D21358FDDE0064AA82 /* snmp.c */; }; 720DD6D413590AB90064AA82 /* ieee1284.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379CA1334000E009631B9 /* ieee1284.c */; }; 720E854320164E7B00C6C411 /* ipp-file.c in Sources */ = {isa = PBXBuildFile; fileRef = 720E854120164E7A00C6C411 /* ipp-file.c */; }; 720E854420164E7B00C6C411 /* ipp-file.c in Sources */ = {isa = PBXBuildFile; fileRef = 720E854120164E7A00C6C411 /* ipp-file.c */; }; 720E854520164E7B00C6C411 /* ipp-vars.c in Sources */ = {isa = PBXBuildFile; fileRef = 720E854220164E7A00C6C411 /* ipp-vars.c */; }; 720E854620164E7B00C6C411 /* ipp-vars.c in Sources */ = {isa = PBXBuildFile; fileRef = 720E854220164E7A00C6C411 /* ipp-vars.c */; }; 72220EB61333052D00FCA411 /* adminutil.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EB51333052D00FCA411 /* adminutil.c */; }; 72220EC41333056300FCA411 /* adminutil.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EB71333056300FCA411 /* adminutil.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220EC51333056300FCA411 /* array.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EB81333056300FCA411 /* array.c */; }; 72220EC61333056300FCA411 /* array.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EB91333056300FCA411 /* array.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220EC71333056300FCA411 /* ppd-attr.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBA1333056300FCA411 /* ppd-attr.c */; }; 72220EC81333056300FCA411 /* auth.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBB1333056300FCA411 /* auth.c */; }; 72220EC91333056300FCA411 /* backchannel.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBC1333056300FCA411 /* backchannel.c */; }; 72220ECA1333056300FCA411 /* backend.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBD1333056300FCA411 /* backend.c */; }; 72220ECB1333056300FCA411 /* backend.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EBE1333056300FCA411 /* backend.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220ECC1333056300FCA411 /* ppd-conflicts.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EBF1333056300FCA411 /* ppd-conflicts.c */; }; 72220ECD1333056300FCA411 /* cups-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EC01333056300FCA411 /* cups-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220ECE1333056300FCA411 /* cups.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EC11333056300FCA411 /* cups.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220ECF1333056300FCA411 /* ppd-custom.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EC21333056300FCA411 /* ppd-custom.c */; }; 72220F0B133305BB00FCA411 /* debug.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED1133305BB00FCA411 /* debug.c */; }; 72220F0C133305BB00FCA411 /* dest.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED2133305BB00FCA411 /* dest.c */; }; 72220F0D133305BB00FCA411 /* dir.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED3133305BB00FCA411 /* dir.c */; }; 72220F0E133305BB00FCA411 /* dir.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED4133305BB00FCA411 /* dir.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F0F133305BB00FCA411 /* ppd-emit.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED5133305BB00FCA411 /* ppd-emit.c */; }; 72220F10133305BB00FCA411 /* encode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED6133305BB00FCA411 /* encode.c */; }; 72220F11133305BB00FCA411 /* file-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED7133305BB00FCA411 /* file-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F12133305BB00FCA411 /* file.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220ED8133305BB00FCA411 /* file.c */; }; 72220F13133305BB00FCA411 /* file.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220ED9133305BB00FCA411 /* file.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F14133305BB00FCA411 /* getdevices.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDA133305BB00FCA411 /* getdevices.c */; }; 72220F15133305BB00FCA411 /* getifaddrs.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDB133305BB00FCA411 /* getifaddrs.c */; }; 72220F16133305BB00FCA411 /* getputfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDC133305BB00FCA411 /* getputfile.c */; }; 72220F17133305BB00FCA411 /* globals.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDD133305BB00FCA411 /* globals.c */; }; 72220F18133305BB00FCA411 /* http-addr.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDE133305BB00FCA411 /* http-addr.c */; }; 72220F19133305BB00FCA411 /* http-addrlist.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EDF133305BB00FCA411 /* http-addrlist.c */; }; 72220F1A133305BB00FCA411 /* http-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE0133305BB00FCA411 /* http-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F1B133305BB00FCA411 /* http-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE1133305BB00FCA411 /* http-support.c */; }; 72220F1C133305BB00FCA411 /* http.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE2133305BB00FCA411 /* http.c */; }; 72220F1D133305BB00FCA411 /* http.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE3133305BB00FCA411 /* http.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F1E133305BB00FCA411 /* ipp-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE4133305BB00FCA411 /* ipp-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F1F133305BB00FCA411 /* ipp-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE5133305BB00FCA411 /* ipp-support.c */; }; 72220F20133305BB00FCA411 /* ipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE6133305BB00FCA411 /* ipp.c */; }; 72220F21133305BB00FCA411 /* ipp.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE7133305BB00FCA411 /* ipp.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F22133305BB00FCA411 /* langprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EE8133305BB00FCA411 /* langprintf.c */; }; 72220F23133305BB00FCA411 /* language-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EE9133305BB00FCA411 /* language-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F24133305BB00FCA411 /* language.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEA133305BB00FCA411 /* language.c */; }; 72220F25133305BB00FCA411 /* language.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EEB133305BB00FCA411 /* language.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F26133305BB00FCA411 /* ppd-localize.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEC133305BB00FCA411 /* ppd-localize.c */; }; 72220F27133305BB00FCA411 /* ppd-mark.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EED133305BB00FCA411 /* ppd-mark.c */; }; 72220F28133305BB00FCA411 /* md5-internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EEE133305BB00FCA411 /* md5-internal.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F29133305BB00FCA411 /* md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EEF133305BB00FCA411 /* md5.c */; }; 72220F2A133305BB00FCA411 /* md5passwd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF0133305BB00FCA411 /* md5passwd.c */; }; 72220F2B133305BB00FCA411 /* notify.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF1133305BB00FCA411 /* notify.c */; }; 72220F2C133305BB00FCA411 /* options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF2133305BB00FCA411 /* options.c */; }; 72220F2D133305BB00FCA411 /* ppd-page.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF3133305BB00FCA411 /* ppd-page.c */; }; 72220F2E133305BB00FCA411 /* ppd-cache.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF4133305BB00FCA411 /* ppd-cache.c */; }; 72220F2F133305BB00FCA411 /* ppd-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EF5133305BB00FCA411 /* ppd-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F30133305BB00FCA411 /* ppd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF6133305BB00FCA411 /* ppd.c */; }; 72220F31133305BB00FCA411 /* ppd.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EF7133305BB00FCA411 /* ppd.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F32133305BB00FCA411 /* pwg-media.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EF8133305BB00FCA411 /* pwg-media.c */; }; 72220F33133305BB00FCA411 /* pwg-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EF9133305BB00FCA411 /* pwg-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F35133305BB00FCA411 /* request.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFB133305BB00FCA411 /* request.c */; }; 72220F36133305BB00FCA411 /* sidechannel.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFC133305BB00FCA411 /* sidechannel.c */; }; 72220F37133305BB00FCA411 /* sidechannel.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EFD133305BB00FCA411 /* sidechannel.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F38133305BB00FCA411 /* snmp-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EFE133305BB00FCA411 /* snmp-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F39133305BB00FCA411 /* snmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220EFF133305BB00FCA411 /* snmp.c */; }; 72220F3A133305BB00FCA411 /* snprintf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F00133305BB00FCA411 /* snprintf.c */; }; 72220F3B133305BB00FCA411 /* string-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F01133305BB00FCA411 /* string-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F3C133305BB00FCA411 /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F02133305BB00FCA411 /* string.c */; }; 72220F3D133305BB00FCA411 /* tempfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F03133305BB00FCA411 /* tempfile.c */; }; 72220F3E133305BB00FCA411 /* thread-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F04133305BB00FCA411 /* thread-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F3F133305BB00FCA411 /* thread.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F05133305BB00FCA411 /* thread.c */; }; 72220F40133305BB00FCA411 /* transcode.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F06133305BB00FCA411 /* transcode.c */; }; 72220F41133305BB00FCA411 /* transcode.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F07133305BB00FCA411 /* transcode.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F42133305BB00FCA411 /* usersys.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F08133305BB00FCA411 /* usersys.c */; }; 72220F43133305BB00FCA411 /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F09133305BB00FCA411 /* util.c */; }; 72220F44133305BB00FCA411 /* versioning.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F0A133305BB00FCA411 /* versioning.h */; settings = {ATTRIBUTES = (Public, ); }; }; 72220F481333063D00FCA411 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220F471333063D00FCA411 /* config.h */; settings = {ATTRIBUTES = (Private, ); }; }; 72220F6613330A7000FCA411 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 72220F9013330B0C00FCA411 /* auth.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F6913330B0C00FCA411 /* auth.c */; }; 72220F9113330B0C00FCA411 /* banners.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F6B13330B0C00FCA411 /* banners.c */; }; 72220F9213330B0C00FCA411 /* cert.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F6D13330B0C00FCA411 /* cert.c */; }; 72220F9313330B0C00FCA411 /* classes.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F6F13330B0C00FCA411 /* classes.c */; }; 72220F9413330B0C00FCA411 /* client.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7113330B0C00FCA411 /* client.c */; }; 72220F9513330B0C00FCA411 /* conf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7313330B0C00FCA411 /* conf.c */; }; 72220F9613330B0C00FCA411 /* dirsvc.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7613330B0C00FCA411 /* dirsvc.c */; }; 72220F9713330B0C00FCA411 /* env.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7813330B0C00FCA411 /* env.c */; }; 72220F9813330B0C00FCA411 /* ipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7913330B0C00FCA411 /* ipp.c */; }; 72220F9913330B0C00FCA411 /* job.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7A13330B0C00FCA411 /* job.c */; }; 72220F9A13330B0C00FCA411 /* listen.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7C13330B0C00FCA411 /* listen.c */; }; 72220F9B13330B0C00FCA411 /* log.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7D13330B0C00FCA411 /* log.c */; }; 72220F9C13330B0C00FCA411 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7E13330B0C00FCA411 /* main.c */; }; 72220F9D13330B0C00FCA411 /* network.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F7F13330B0C00FCA411 /* network.c */; }; 72220F9E13330B0C00FCA411 /* policy.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8113330B0C00FCA411 /* policy.c */; }; 72220F9F13330B0C00FCA411 /* printers.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8313330B0C00FCA411 /* printers.c */; }; 72220FA013330B0C00FCA411 /* process.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8513330B0C00FCA411 /* process.c */; }; 72220FA113330B0C00FCA411 /* quotas.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8613330B0C00FCA411 /* quotas.c */; }; 72220FA313330B0C00FCA411 /* select.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8813330B0C00FCA411 /* select.c */; }; 72220FA413330B0C00FCA411 /* server.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8913330B0C00FCA411 /* server.c */; }; 72220FA513330B0C00FCA411 /* statbuf.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8A13330B0C00FCA411 /* statbuf.c */; }; 72220FA613330B0C00FCA411 /* subscriptions.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8C13330B0C00FCA411 /* subscriptions.c */; }; 72220FA713330B0C00FCA411 /* sysman.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220F8E13330B0C00FCA411 /* sysman.c */; }; 72220FB613330BCE00FCA411 /* filter.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB213330BCE00FCA411 /* filter.c */; }; 72220FB713330BCE00FCA411 /* mime.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB313330BCE00FCA411 /* mime.c */; }; 72220FB813330BCE00FCA411 /* mime.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220FB413330BCE00FCA411 /* mime.h */; }; 72220FB913330BCE00FCA411 /* type.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB513330BCE00FCA411 /* type.c */; }; 72220FBA13330BEE00FCA411 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 72220FBF13330C1000FCA411 /* libcupsmime.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220FAC13330B2200FCA411 /* libcupsmime.dylib */; }; 722A24EF2178D00D000CAB20 /* debug-internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24EE2178D00C000CAB20 /* debug-internal.h */; }; 722A24F02178D00D000CAB20 /* debug-internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24EE2178D00C000CAB20 /* debug-internal.h */; }; 722A24F12178D00D000CAB20 /* debug-internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24EE2178D00C000CAB20 /* debug-internal.h */; }; 722A24F32178D091000CAB20 /* debug-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24F22178D090000CAB20 /* debug-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 722A24F42178D091000CAB20 /* debug-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24F22178D090000CAB20 /* debug-private.h */; }; 722A24F52178D091000CAB20 /* debug-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 722A24F22178D090000CAB20 /* debug-private.h */; }; 7234F4201378A16F00D3E9C9 /* array-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7234F41F1378A16F00D3E9C9 /* array-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 724379081333E4A5009631B9 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 7243790D1333E4E3009631B9 /* ipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790A1333E4E3009631B9 /* ipp.c */; }; 7243790E1333E4E3009631B9 /* network.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790B1333E4E3009631B9 /* network.c */; }; 7243790F1333E4E3009631B9 /* snmp-supplies.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790C1333E4E3009631B9 /* snmp-supplies.c */; }; 724379131333E516009631B9 /* runloop.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379121333E516009631B9 /* runloop.c */; }; 724379221333E928009631B9 /* network.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790B1333E4E3009631B9 /* network.c */; }; 724379231333E928009631B9 /* runloop.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379121333E516009631B9 /* runloop.c */; }; 724379241333E928009631B9 /* snmp-supplies.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790C1333E4E3009631B9 /* snmp-supplies.c */; }; 724379271333E93D009631B9 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 724379291333E952009631B9 /* lpd.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379281333E952009631B9 /* lpd.c */; }; 7243793B1333FB9D009631B9 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 7243793D1333FD19009631B9 /* socket.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243793C1333FD19009631B9 /* socket.c */; }; 724379401333FD4B009631B9 /* network.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790B1333E4E3009631B9 /* network.c */; }; 724379411333FD4B009631B9 /* runloop.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379121333E516009631B9 /* runloop.c */; }; 724379421333FD4B009631B9 /* snmp-supplies.c in Sources */ = {isa = PBXBuildFile; fileRef = 7243790C1333E4E3009631B9 /* snmp-supplies.c */; }; 724379511333FEBB009631B9 /* dnssd.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379501333FEBB009631B9 /* dnssd.c */; }; 724379561333FF04009631B9 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 724379661333FF3B009631B9 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 724379C71333FFC7009631B9 /* usb.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379C51333FFC7009631B9 /* usb.c */; }; 724379CB1334000E009631B9 /* ieee1284.c in Sources */ = {isa = PBXBuildFile; fileRef = 724379CA1334000E009631B9 /* ieee1284.c */; }; 724FA52A1CC0370C0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA52B1CC0370C0092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA52C1CC0370C0092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA52D1CC0370C0092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA52E1CC0370C0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA52F1CC0370C0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA5301CC0370C0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5361CC0372F0092477B /* testadmin.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF041192E3544001EF690 /* testadmin.c */; }; 724FA53D1CC037370092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA53E1CC037370092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA53F1CC037370092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA5401CC037370092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA5411CC037370092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA5421CC037370092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA5431CC037370092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5491CC037460092477B /* testarray.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF042192E3544001EF690 /* testarray.c */; }; 724FA5501CC037500092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA5511CC037500092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA5521CC037500092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA5531CC037500092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA5541CC037500092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA5551CC037500092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA5561CC037500092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA55C1CC0375F0092477B /* testcache.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF043192E3544001EF690 /* testcache.c */; }; 724FA5631CC037670092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA5641CC037670092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA5651CC037670092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA5661CC037670092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA5671CC037670092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA5681CC037670092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA5691CC037670092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA56F1CC037760092477B /* testconflicts.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF044192E3544001EF690 /* testconflicts.c */; }; 724FA5761CC037810092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5771CC037810092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA5781CC037810092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA5791CC037810092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA57A1CC037810092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA57B1CC037810092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA57C1CC037810092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA5821CC0378E0092477B /* testfile.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF045192E3544001EF690 /* testfile.c */; }; 724FA5891CC037980092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA58A1CC037980092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA58B1CC037980092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA58C1CC037980092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 724FA58D1CC037980092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 724FA58E1CC037980092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 724FA58F1CC037980092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5951CC037A50092477B /* testi18n.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF046192E3544001EF690 /* testi18n.c */; }; 724FA59C1CC037AA0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA59D1CC037AA0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA59E1CC037AA0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA59F1CC037AA0092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 724FA5A01CC037AA0092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 724FA5A11CC037AA0092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 724FA5A21CC037AA0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5A81CC037B70092477B /* testipp.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF047192E3544001EF690 /* testipp.c */; }; 724FA5AF1CC037C60092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5B01CC037C60092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA5B11CC037C60092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA5B21CC037C60092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 724FA5B31CC037C60092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 724FA5B41CC037C60092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 724FA5B51CC037C60092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5BB1CC037D30092477B /* testlang.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF048192E3544001EF690 /* testlang.c */; }; 724FA5C21CC037D90092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5C31CC037D90092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA5C41CC037D90092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA5C51CC037D90092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 724FA5C61CC037D90092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 724FA5C71CC037D90092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 724FA5C81CC037D90092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5CE1CC037E50092477B /* testlpd.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04D192E3602001EF690 /* testlpd.c */; }; 724FA5D71CC037F00092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5D81CC037F00092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA5D91CC037F00092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA5DA1CC037F00092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5DB1CC037F00092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA5E21CC037FD0092477B /* testoptions.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF049192E3544001EF690 /* testoptions.c */; }; 724FA5EB1CC038040092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA5EC1CC038040092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA5ED1CC038040092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA5EE1CC038040092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA5EF1CC038040092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA5F61CC0380F0092477B /* testppd.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04A192E3544001EF690 /* testppd.c */; }; 724FA5FF1CC038190092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6001CC038190092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6011CC038190092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6021CC038190092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6031CC038190092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA60A1CC038250092477B /* testpwg.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04B192E3544001EF690 /* testpwg.c */; }; 724FA6131CC0382B0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6141CC0382B0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6151CC0382B0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6161CC0382B0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6171CC0382B0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA61E1CC0383B0092477B /* testraster.c in Sources */ = {isa = PBXBuildFile; fileRef = 27F89DA21B3AC43B00E5A4B7 /* testraster.c */; }; 724FA6271CC038410092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6281CC038410092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6291CC038410092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA62A1CC038410092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA62B1CC038410092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA6321CC038510092477B /* testsnmp.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04C192E3544001EF690 /* testsnmp.c */; }; 724FA63B1CC038560092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA63C1CC038560092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA63D1CC038560092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA63E1CC038560092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA63F1CC038560092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA6461CC038650092477B /* testspeed.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04E192E3602001EF690 /* testspeed.c */; }; 724FA64F1CC0386E0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6501CC0386E0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6511CC0386E0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6521CC0386E0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6531CC0386E0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA65A1CC038790092477B /* testsub.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF04F192E3602001EF690 /* testsub.c */; }; 724FA6661CC038A50092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6671CC038A50092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6681CC038A50092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6691CC038A50092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA66A1CC038A50092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA66B1CC038A50092477B /* libcupsmime.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220FAC13330B2200FCA411 /* libcupsmime.dylib */; }; 724FA6711CC038B30092477B /* test1284.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA65B1CC0389F0092477B /* test1284.c */; }; 724FA6781CC038BD0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA6791CC038BD0092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA67A1CC038BD0092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA67B1CC038BD0092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA67C1CC038BD0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA67D1CC038BD0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA67E1CC038BD0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6841CC038CA0092477B /* testbackend.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA65C1CC0389F0092477B /* testbackend.c */; }; 724FA68D1CC038D90092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA68E1CC038D90092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA68F1CC038D90092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6901CC038D90092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6911CC038D90092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA6981CC038E70092477B /* testsupplies.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA65D1CC0389F0092477B /* testsupplies.c */; }; 724FA69F1CC039200092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC591926750C000F61D3 /* CoreFoundation.framework */; }; 724FA6A01CC039200092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5A1926750C000F61D3 /* libiconv.dylib */; }; 724FA6A11CC039200092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5B1926750C000F61D3 /* libresolv.dylib */; }; 724FA6A21CC039200092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5C1926750C000F61D3 /* libz.dylib */; }; 724FA6A31CC039200092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5D1926750C000F61D3 /* Security.framework */; }; 724FA6A41CC039200092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */; }; 724FA6A51CC039200092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6AB1CC0392E0092477B /* testcgi.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03D192E3498001EF690 /* testcgi.c */; }; 724FA6B21CC0393E0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6B31CC0393E0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6B41CC0393E0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6B51CC0393E0092477B /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 724FA6B61CC0393E0092477B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 724FA6B71CC0393E0092477B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 724FA6B81CC0393E0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6BE1CC0394C0092477B /* testhi.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03E192E3498001EF690 /* testhi.c */; }; 724FA6C71CC0395A0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6C81CC0395A0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6C91CC0395A0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6CA1CC0395A0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6CB1CC0395A0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA6D21CC039680092477B /* testtemplate.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03F192E3498001EF690 /* testtemplate.c */; }; 724FA6E01CC039DE0092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6E11CC039DE0092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6E21CC039DE0092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6E31CC039DE0092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6E41CC039DE0092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA6EB1CC039EB0092477B /* testnotify.c in Sources */ = {isa = PBXBuildFile; fileRef = 724FA6D71CC039D00092477B /* testnotify.c */; }; 724FA6F51CC03A210092477B /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 724FA6F61CC03A210092477B /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 724FA6F71CC03A210092477B /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 724FA6F81CC03A210092477B /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 724FA6F91CC03A210092477B /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 724FA7001CC03A2F0092477B /* testcatalog.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 724FA6EC1CC03A1D0092477B /* testcatalog.cxx */; }; 724FA7141CC03A990092477B /* filter.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB213330BCE00FCA411 /* filter.c */; }; 724FA7151CC03A990092477B /* mime.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB313330BCE00FCA411 /* mime.c */; }; 724FA7161CC03A990092477B /* type.c in Sources */ = {isa = PBXBuildFile; fileRef = 72220FB513330BCE00FCA411 /* type.c */; }; 724FA71A1CC03A990092477B /* mime.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220FB413330BCE00FCA411 /* mime.h */; }; 724FA71B1CC03A990092477B /* mime-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7271883C1374AB14001A2036 /* mime-private.h */; }; 724FA7241CC03AAF0092477B /* ppdc-array.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F51333315100317ECB /* ppdc-array.cxx */; }; 724FA7251CC03AAF0092477B /* ppdc-attr.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F61333315100317ECB /* ppdc-attr.cxx */; }; 724FA7261CC03AAF0092477B /* ppdc-catalog.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F71333315100317ECB /* ppdc-catalog.cxx */; }; 724FA7271CC03AAF0092477B /* ppdc-choice.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F81333315100317ECB /* ppdc-choice.cxx */; }; 724FA7281CC03AAF0092477B /* ppdc-constraint.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5F91333315100317ECB /* ppdc-constraint.cxx */; }; 724FA7291CC03AAF0092477B /* ppdc-driver.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FA1333315100317ECB /* ppdc-driver.cxx */; }; 724FA72A1CC03AAF0092477B /* ppdc-file.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FB1333315100317ECB /* ppdc-file.cxx */; }; 724FA72B1CC03AAF0092477B /* ppdc-filter.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FC1333315100317ECB /* ppdc-filter.cxx */; }; 724FA72C1CC03AAF0092477B /* ppdc-font.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FD1333315100317ECB /* ppdc-font.cxx */; }; 724FA72D1CC03AAF0092477B /* ppdc-group.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FE1333315100317ECB /* ppdc-group.cxx */; }; 724FA72E1CC03AAF0092477B /* ppdc-import.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF5FF1333315100317ECB /* ppdc-import.cxx */; }; 724FA72F1CC03AAF0092477B /* ppdc-mediasize.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6001333315100317ECB /* ppdc-mediasize.cxx */; }; 724FA7301CC03AAF0092477B /* ppdc-message.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6011333315100317ECB /* ppdc-message.cxx */; }; 724FA7311CC03AAF0092477B /* ppdc-option.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6021333315100317ECB /* ppdc-option.cxx */; }; 724FA7321CC03AAF0092477B /* ppdc-profile.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6041333315100317ECB /* ppdc-profile.cxx */; }; 724FA7331CC03AAF0092477B /* ppdc-shared.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6051333315100317ECB /* ppdc-shared.cxx */; }; 724FA7341CC03AAF0092477B /* ppdc-source.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6061333315100317ECB /* ppdc-source.cxx */; }; 724FA7351CC03AAF0092477B /* ppdc-string.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6071333315100317ECB /* ppdc-string.cxx */; }; 724FA7361CC03AAF0092477B /* ppdc-variable.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 274FF6081333315100317ECB /* ppdc-variable.cxx */; }; 724FA73C1CC03AAF0092477B /* ppdc-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 274FF6031333315100317ECB /* ppdc-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 724FA7491CC03ACC0092477B /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 724FA7511CC03AF20092477B /* help-index.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF033192E3498001EF690 /* help-index.c */; }; 724FA7521CC03AF20092477B /* help.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF035192E3498001EF690 /* help.c */; }; 724FA7531CC03AF20092477B /* html.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF036192E3498001EF690 /* html.c */; }; 724FA7541CC03AF20092477B /* ipp-var.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF037192E3498001EF690 /* ipp-var.c */; }; 724FA7551CC03AF20092477B /* search.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03B192E3498001EF690 /* search.c */; }; 724FA7561CC03AF20092477B /* template.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03C192E3498001EF690 /* template.c */; }; 724FA7571CC03AF20092477B /* var.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF040192E3498001EF690 /* var.c */; }; 724FA75D1CC03AF60092477B /* help-index.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF033192E3498001EF690 /* help-index.c */; }; 724FA75E1CC03AF60092477B /* help.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF035192E3498001EF690 /* help.c */; }; 724FA75F1CC03AF60092477B /* html.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF036192E3498001EF690 /* html.c */; }; 724FA7601CC03AF60092477B /* ipp-var.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF037192E3498001EF690 /* ipp-var.c */; }; 724FA7611CC03AF60092477B /* search.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03B192E3498001EF690 /* search.c */; }; 724FA7621CC03AF60092477B /* template.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF03C192E3498001EF690 /* template.c */; }; 724FA7631CC03AF60092477B /* var.c in Sources */ = {isa = PBXBuildFile; fileRef = 727EF040192E3498001EF690 /* var.c */; }; 724FA76C1CC03B4D0092477B /* cgi-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 727EF030192E3498001EF690 /* cgi-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 724FA76D1CC03B4D0092477B /* cgi.h in Headers */ = {isa = PBXBuildFile; fileRef = 727EF031192E3498001EF690 /* cgi.h */; settings = {ATTRIBUTES = (Private, ); }; }; 724FA76F1CC03B820092477B /* cgi-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 727EF030192E3498001EF690 /* cgi-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 724FA7701CC03B820092477B /* cgi.h in Headers */ = {isa = PBXBuildFile; fileRef = 727EF031192E3498001EF690 /* cgi.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7253C454216E97FF00494ADD /* raster-error.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A691336FA8A004BB496 /* raster-error.c */; }; 7253C455216E980000494ADD /* raster-error.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A691336FA8A004BB496 /* raster-error.c */; }; 7253C456216E980200494ADD /* raster-error.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A691336FA8A004BB496 /* raster-error.c */; }; 7253C457216E981000494ADD /* raster-stream.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A6B1336FA8A004BB496 /* raster-stream.c */; }; 7253C458216E981200494ADD /* raster-stream.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A6B1336FA8A004BB496 /* raster-stream.c */; }; 7253C459216E981200494ADD /* raster-stream.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A6B1336FA8A004BB496 /* raster-stream.c */; }; 7253C45A216E981900494ADD /* raster-interpret.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A6A1336FA8A004BB496 /* raster-interpret.c */; }; 7253C45B216E981A00494ADD /* raster-interpret.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A6A1336FA8A004BB496 /* raster-interpret.c */; }; 7253C45E216ED51500494ADD /* raster-interstub.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45C216ED51400494ADD /* raster-interstub.c */; }; 7253C460216ED51500494ADD /* raster-interstub.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45C216ED51400494ADD /* raster-interstub.c */; }; 7253C461216ED51500494ADD /* raster-interstub.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45C216ED51400494ADD /* raster-interstub.c */; }; 7253C462216ED51500494ADD /* raster-interstub.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45C216ED51400494ADD /* raster-interstub.c */; }; 7253C463216ED51500494ADD /* raster-stubs.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45D216ED51500494ADD /* raster-stubs.c */; }; 7253C464216ED51500494ADD /* raster-stubs.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45D216ED51500494ADD /* raster-stubs.c */; }; 7253C465216ED51500494ADD /* raster-stubs.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45D216ED51500494ADD /* raster-stubs.c */; }; 7253C466216ED51500494ADD /* raster-stubs.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45D216ED51500494ADD /* raster-stubs.c */; }; 7253C467216ED51500494ADD /* raster-stubs.c in Sources */ = {isa = PBXBuildFile; fileRef = 7253C45D216ED51500494ADD /* raster-stubs.c */; }; 7253C468216ED5D300494ADD /* raster.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EFA133305BB00FCA411 /* raster.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7253C469216ED5D400494ADD /* raster.h in Headers */ = {isa = PBXBuildFile; fileRef = 72220EFA133305BB00FCA411 /* raster.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7253C46B216ED5E400494ADD /* raster-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 2767FC76192696A0000F61D3 /* raster-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7253C46C216ED5E500494ADD /* raster-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 2767FC76192696A0000F61D3 /* raster-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7253C46F216ED69200494ADD /* pwg.h in Headers */ = {isa = PBXBuildFile; fileRef = 2767FC7519269687000F61D3 /* pwg.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7253C470216ED69400494ADD /* pwg.h in Headers */ = {isa = PBXBuildFile; fileRef = 2767FC7519269687000F61D3 /* pwg.h */; settings = {ATTRIBUTES = (Public, ); }; }; 7253C471216ED6C400494ADD /* array-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7234F41F1378A16F00D3E9C9 /* array-private.h */; settings = {ATTRIBUTES = (Private, ); }; }; 7258EAED134594EB009286F1 /* rastertopwg.c in Sources */ = {isa = PBXBuildFile; fileRef = 7258EAEC134594EB009286F1 /* rastertopwg.c */; }; 7258EAF413459B6D009286F1 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 7258EAF513459B6D009286F1 /* libcupsimage.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; }; 726AD702135E8A90002C930D /* ippeveprinter.c in Sources */ = {isa = PBXBuildFile; fileRef = 726AD701135E8A90002C930D /* ippeveprinter.c */; }; 7271883D1374AB14001A2036 /* mime-private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7271883C1374AB14001A2036 /* mime-private.h */; }; 727AD5B719100A58009F6862 /* tls.c in Sources */ = {isa = PBXBuildFile; fileRef = 727AD5B619100A58009F6862 /* tls.c */; }; 727AD5B819100A58009F6862 /* tls.c in Sources */ = {isa = PBXBuildFile; fileRef = 727AD5B619100A58009F6862 /* tls.c */; }; 7284F9F01BFCCDB10026F886 /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = 7284F9EF1BFCCD940026F886 /* hash.c */; }; 7284F9F11BFCCDB20026F886 /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = 7284F9EF1BFCCD940026F886 /* hash.c */; }; 728FB7E91536161C005426E1 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 728FB7EB1536161C005426E1 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 728FB7ED1536161C005426E1 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 728FB7EE15361642005426E1 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 728FB7F11536167A005426E1 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 728FB7F21536167A005426E1 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 729181B4201155C1005E7560 /* libcupsimage_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724FA70F1CC03A490092477B /* libcupsimage_static.a */; }; 729181B5201155C1005E7560 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 729181B6201155C1005E7560 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 729181B7201155C1005E7560 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 729181B8201155C1005E7560 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 729181B9201155C1005E7560 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 729181BF201155F1005E7560 /* testclient.c in Sources */ = {isa = PBXBuildFile; fileRef = 729181AB20115597005E7560 /* testclient.c */; }; 72A8B3D71C188CB800A1A547 /* ppd-util.c in Sources */ = {isa = PBXBuildFile; fileRef = 72A8B3D61C188BDE00A1A547 /* ppd-util.c */; }; 72A8B3D81C188CB900A1A547 /* ppd-util.c in Sources */ = {isa = PBXBuildFile; fileRef = 72A8B3D61C188BDE00A1A547 /* ppd-util.c */; }; 72BFD5FB191AF0A30005DA37 /* libcups_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 72A4332F155844CF002E172D /* libcups_static.a */; }; 72BFD5FC191AF0A30005DA37 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 72BFD5FD191AF0A30005DA37 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 72BFD5FE191AF0A30005DA37 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 72BFD5FF191AF0A30005DA37 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 72BFD600191AF0A30005DA37 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 72BFD601191AF0A30005DA37 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 72BFD602191AF1270005DA37 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 72BFD603191AF1270005DA37 /* GSS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2915B49110003F877F /* GSS.framework */; }; 72BFD604191AF1270005DA37 /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; }; 72BFD605191AF1270005DA37 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EF1536167A005426E1 /* libiconv.dylib */; }; 72BFD606191AF1270005DA37 /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7F01536167A005426E1 /* libresolv.dylib */; }; 72BFD607191AF1270005DA37 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 728FB7EC1536161C005426E1 /* libz.dylib */; }; 72BFD608191AF1270005DA37 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 72BFD609191AF14C0005DA37 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 72C16CB9137B195D007E4BF4 /* file.c in Sources */ = {isa = PBXBuildFile; fileRef = 72C16CB8137B195D007E4BF4 /* file.c */; }; 72CEF95618A966E000FA9B81 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 72CF95E318A13543000FCAE4 /* dest-job.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E018A13543000FCAE4 /* dest-job.c */; }; 72CF95E418A13543000FCAE4 /* dest-localization.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E118A13543000FCAE4 /* dest-localization.c */; }; 72CF95E518A13543000FCAE4 /* dest-options.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95E218A13543000FCAE4 /* dest-options.c */; }; 72CF95EC18A19134000FCAE4 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; 72CF95F318A19165000FCAE4 /* ippfind.c in Sources */ = {isa = PBXBuildFile; fileRef = 72CF95F218A19165000FCAE4 /* ippfind.c */; }; 72D53A2A15B49110003F877F /* GSS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2915B49110003F877F /* GSS.framework */; }; 72D53A2D15B4913D003F877F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 72D53A2E15B4915B003F877F /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 72D53A2F15B49174003F877F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 72D53A3015B4923F003F877F /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E5136B64AF00836530 /* CoreFoundation.framework */; }; 72D53A3115B4923F003F877F /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E7136B64B000836530 /* Security.framework */; }; 72D53A3215B4923F003F877F /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E8136B64B000836530 /* SystemConfiguration.framework */; }; 72D53A3415B4925B003F877F /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A3315B4925B003F877F /* ApplicationServices.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; 72D53A3515B49270003F877F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2C15B4913D003F877F /* IOKit.framework */; }; 72D53A3815B4929D003F877F /* colorman.c in Sources */ = {isa = PBXBuildFile; fileRef = 72D53A3615B4929D003F877F /* colorman.c */; }; 72D53A3A15B492FA003F877F /* libpam.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A3915B492FA003F877F /* libpam.dylib */; }; 72D53A3B15B4930A003F877F /* GSS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 72D53A2915B49110003F877F /* GSS.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; 72D53A3C15B4930A003F877F /* Kerberos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 278C58E6136B64B000836530 /* Kerberos.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; 72F75A5C1336F988004BB496 /* cupstestppd.c in Sources */ = {isa = PBXBuildFile; fileRef = 72F75A5B1336F988004BB496 /* cupstestppd.c */; }; 72F75A671336FA38004BB496 /* libcups.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 72220EAE1333047D00FCA411 /* libcups.dylib */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 270CCDB1135E3CDE00007BE2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 270CCDA6135E3C9E00007BE2; remoteInfo = testmime; }; 270CCDB7135E3CFD00007BE2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 270D02151D707E0200EA9403 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 270D02271D707E5100EA9403 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 270D02131D707E0200EA9403; remoteInfo = testcreds; }; 271284901CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 271284921CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7581CC03AF60092477B; remoteInfo = libcupscgi_static; }; 271284941CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7011CC03A490092477B; remoteInfo = libcupsimage_static; }; 271284961CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7101CC03A990092477B; remoteInfo = libcupsmime_static; }; 271284981CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7201CC03AAF0092477B; remoteInfo = libcupsppdc_static; }; 2712849A1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA65E1CC038A50092477B; remoteInfo = test1284; }; 2712849C1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5241CC0370C0092477B; remoteInfo = testadmin; }; 2712849E1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5371CC037370092477B; remoteInfo = testarray; }; 271284A01CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6721CC038BD0092477B; remoteInfo = testbackend; }; 271284A21CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA54A1CC037500092477B; remoteInfo = testcache; }; 271284A41CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6ED1CC03A210092477B; remoteInfo = testcatalog; }; 271284A61CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6991CC039200092477B; remoteInfo = testcgi; }; 271284A81CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA55D1CC037670092477B; remoteInfo = testconflicts; }; 271284AA1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5701CC037810092477B; remoteInfo = testfile; }; 271284AC1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6AC1CC0393E0092477B; remoteInfo = testhi; }; 271284AE1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5831CC037980092477B; remoteInfo = testi18n; }; 271284B01CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5961CC037AA0092477B; remoteInfo = testipp; }; 271284B21CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5A91CC037C60092477B; remoteInfo = testlang; }; 271284B41CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5BC1CC037D90092477B; remoteInfo = testlpd; }; 271284B61CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6D81CC039DE0092477B; remoteInfo = testnotify; }; 271284B81CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5CF1CC037F00092477B; remoteInfo = testoptions; }; 271284BA1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5E31CC038040092477B; remoteInfo = testppd; }; 271284BC1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA5F71CC038190092477B; remoteInfo = testpwg; }; 271284BE1CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA60B1CC0382B0092477B; remoteInfo = testraster; }; 271284C01CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA61F1CC038410092477B; remoteInfo = testsnmp; }; 271284C21CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6331CC038560092477B; remoteInfo = testspeed; }; 271284C41CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6471CC0386E0092477B; remoteInfo = testsub; }; 271284C61CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6851CC038D90092477B; remoteInfo = testsupplies; }; 271284C81CC11FA500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA6BF1CC0395A0092477B; remoteInfo = testtemplate; }; 271284CA1CC122D000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7581CC03AF60092477B; remoteInfo = libcupscgi_static; }; 271284CC1CC122E400E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7201CC03AAF0092477B; remoteInfo = libcupsppdc_static; }; 271284CE1CC122ED00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7581CC03AF60092477B; remoteInfo = libcupscgi_static; }; 271284D31CC1232500E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7581CC03AF60092477B; remoteInfo = libcupscgi_static; }; 271284D51CC1234D00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7101CC03A990092477B; remoteInfo = libcupsmime_static; }; 271284E31CC1261900E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271284F01CC1264B00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 2712850A1CC1267A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285171CC1269700E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285241CC126AA00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285311CC1270B00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 2712853E1CC1271E00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 2712854B1CC1272D00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285581CC1274300E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285651CC1275200E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285721CC1276400E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 2712857D1CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271284E11CC1261900E517C7; remoteInfo = cancel; }; 2712857F1CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271284EE1CC1264B00E517C7; remoteInfo = cupsaccept; }; 271285831CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285081CC1267A00E517C7; remoteInfo = lp; }; 271285851CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285151CC1269700E517C7; remoteInfo = lpc; }; 271285871CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285221CC126AA00E517C7; remoteInfo = lpinfo; }; 271285891CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2712852F1CC1270B00E517C7; remoteInfo = lpmove; }; 2712858B1CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2712853C1CC1271E00E517C7; remoteInfo = lpoptions; }; 2712858D1CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285491CC1272D00E517C7; remoteInfo = lpq; }; 2712858F1CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285561CC1274300E517C7; remoteInfo = lpr; }; 271285911CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285631CC1275200E517C7; remoteInfo = lprm; }; 271285931CC1295A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285701CC1276400E517C7; remoteInfo = lpstat; }; 271285971CC12D1300E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285A51CC12D3A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285B31CC12D4E00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285C11CC12D5E00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285CF1CC12DBF00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285DC1CC12DDF00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285E91CC12E2D00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271285F71CC12EEB00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286091CC12F0B00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286191CC12F1A00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286341CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285951CC12D1300E517C7; remoteInfo = admin.cgi; }; 271286361CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285A31CC12D3A00E517C7; remoteInfo = classes.cgi; }; 271286381CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285CD1CC12DBF00E517C7; remoteInfo = commandtops; }; 2712863A1CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285DA1CC12DDF00E517C7; remoteInfo = gziptoany; }; 2712863C1CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285B11CC12D4E00E517C7; remoteInfo = jobs.cgi; }; 2712863E1CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285BF1CC12D5E00E517C7; remoteInfo = printers.cgi; }; 271286401CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285E71CC12E2D00E517C7; remoteInfo = pstops; }; 271286421CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271285F51CC12EEB00E517C7; remoteInfo = rastertoepson; }; 271286441CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286051CC12F0B00E517C7; remoteInfo = rastertohp; }; 271286461CC12F9000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286151CC12F1A00E517C7; remoteInfo = rastertolabel; }; 271286591CC1309000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 2712866F1CC1310E00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 271286891CC13DC000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 2712869A1CC13DF100E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 271286AB1CC13DFF00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 271286BC1CC13E2100E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286CD1CC13E5B00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286DB1CC13EF400E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286981CC13DF100E517C7; remoteInfo = po2strings; }; 271286DD1CC13EF400E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286A91CC13DFF00E517C7; remoteInfo = strings2po; }; 271286DF1CC13EF400E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286571CC1309000E517C7; remoteInfo = tlscheck; }; 271286E11CC13F0100E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286BA1CC13E2100E517C7; remoteInfo = bcp; }; 271286E31CC13F0100E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286CB1CC13E5B00E517C7; remoteInfo = tbcp; }; 271286E71CC13F2000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271286F71CC13F3F00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 271287051CC13F8F00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286E51CC13F2000E517C7; remoteInfo = mailto; }; 271287071CC13F8F00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271286F51CC13F3F00E517C7; remoteInfo = rss; }; 2712870B1CC13FAB00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 2712871B1CC13FFA00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 271287091CC13FAB00E517C7; remoteInfo = mantohtml; }; 2712872E1CC140DF00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 271287301CC140DF00E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724FA7201CC03AAF0092477B; remoteInfo = libcupsppdc_static; }; 271287351CC1411000E517C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2712871E1CC140BE00E517C7; remoteInfo = genstrings; }; 273B1EC1226B3F2600428143 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 273B1E9A226B3E4800428143; remoteInfo = ippevepcl; }; 273B1EC3226B3F2600428143 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 273B1EAB226B3E5200428143; remoteInfo = ippeveps; }; 273B1EC5226B41E600428143 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 273B1EC8226B420500428143 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 273B1ECB226B421700428143 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 273BF6C81333B5410022CAAB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 273BF6DD1333B6370022CAAB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 273BF6BC1333B5000022CAAB; remoteInfo = testcups; }; 274770D32345342B0089BC31 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 274770E32345347D0089BC31 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274770D12345342B0089BC31; remoteInfo = testthreads; }; 274FF5DB13332CF900317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF5E213332D4300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF5E413332D4300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220FAB13330B2200FCA411; remoteInfo = libcupsmime; }; 274FF5E613332D4300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220F5A13330A5A00FCA411; remoteInfo = cupsd; }; 274FF5E813332D4300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5CB13332B1F00317ECB; remoteInfo = "cups-driverd"; }; 274FF5F2133330FD00317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF61F1333316200317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 274FF621133331D300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 274FF6331333335200317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF6381333348400317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6281333333600317ECB; remoteInfo = "cups-deviced"; }; 274FF647133335A300317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF63D1333358B00317ECB; remoteInfo = "cups-exec"; }; 274FF659133339D900317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF65D13333A3400317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF64E133339C400317ECB; remoteInfo = "cups-lpd"; }; 274FF68113333B3C00317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 274FF68313333B3C00317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220FAB13330B2200FCA411; remoteInfo = libcupsmime; }; 274FF6E11333B33F00317ECB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF67713333B2F00317ECB; remoteInfo = cupsfilter; }; 276683651337A9D6000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 2766836A1337AA25000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2766835B1337A9B6000D33D0; remoteInfo = cupsctl; }; 276683AD1337ACF9000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683AF1337ACF9000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 276683B31337AD18000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683B51337AD18000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 276683BB1337AE49000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683BD1337AE49000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 276683BF1337B1AD000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683C11337B1AD000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 276683C51337B1BC000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683C71337B1BC000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF5ED133330C800317ECB; remoteInfo = libcupsppdc; }; 276683D61337B24A000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2766836F1337AC79000D33D0; remoteInfo = ppdc; }; 276683D81337B24A000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2766837C1337AC8C000D33D0; remoteInfo = ppdhtml; }; 276683DA1337B24A000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 276683891337AC97000D33D0; remoteInfo = ppdi; }; 276683DC1337B24A000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 276683961337ACA2000D33D0; remoteInfo = ppdmerge; }; 276683DE1337B24A000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 276683A31337ACAB000D33D0; remoteInfo = ppdpo; }; 276683E01337B299000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683E31337B2BA000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72F75A601336F9A3004BB496; remoteInfo = libcupsimage; }; 276683FB1337F7B3000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 276683FE1337F7C5000D33D0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 276683EF1337F78E000D33D0; remoteInfo = ipptool; }; 2767FC4819266A0D000F61D3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 2767FC5319267469000F61D3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 276683EF1337F78E000D33D0; remoteInfo = ipptool; }; 2767FC5519267469000F61D3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2767FC4619266A0D000F61D3; remoteInfo = testdest; }; 278C58D5136B641D00836530 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 278C58CA136B640300836530; remoteInfo = testhttp; }; 278C58D7136B642F00836530 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 27A034831A8BDC4A00650675 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 27A034861A8BDC6900650675 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 27A0347A1A8BDB1200650675; remoteInfo = lpadmin; }; 720DD6CE1358FD790064AA82 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 720DD6D01358FDBE0064AA82 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 720DD6C11358FD5F0064AA82; remoteInfo = snmp; }; 72220F6413330A6500FCA411 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 72220FBB13330C0500FCA411 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 72220FBD13330C0B00FCA411 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220FAB13330B2200FCA411; remoteInfo = libcupsmime; }; 724379061333E49B009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 724379101333E4EA009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724378FC1333E43E009631B9; remoteInfo = ipp; }; 724379251333E932009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 7243792A1333E962009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724379171333E532009631B9; remoteInfo = lpd; }; 724379391333FB95009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 7243793E1333FD23009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 7243792F1333FB85009631B9; remoteInfo = socket; }; 724379521333FECE009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 724379461333FEA9009631B9; remoteInfo = dnssd; }; 724379541333FEFE009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 724379641333FF2E009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 724379C21333FF7D009631B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 7243795A1333FF1D009631B9; remoteInfo = usb; }; 724FA5261CC0370C0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5391CC037370092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA54C1CC037500092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA55F1CC037670092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5721CC037810092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5851CC037980092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5981CC037AA0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5AB1CC037C60092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5BE1CC037D90092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5D11CC037F00092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5E51CC038040092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA5F91CC038190092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA60D1CC0382B0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6211CC038410092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6351CC038560092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6491CC0386E0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6601CC038A50092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6741CC038BD0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6871CC038D90092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA69B1CC039200092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6AE1CC0393E0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6C11CC0395A0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6DA1CC039DE0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA6EF1CC03A210092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 724FA7431CC03ACC0092477B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 7258EAEE13459ADA009286F1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 7258EAE1134594C4009286F1; remoteInfo = rastertopwg; }; 7258EAF013459B67009286F1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 726AD703135E8AA1002C930D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 726AD6F6135E88F0002C930D; remoteInfo = ippserver; }; 729181B0201155C1005E7560 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 729181C02011560E005E7560 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 2712866B1CC1310E00E517C7; remoteInfo = rasterbench; }; 729181C22011560E005E7560 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 729181AC201155C1005E7560; remoteInfo = testclient; }; 72BEA8D319AFA89C0085F0F3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 726AD6F6135E88F0002C930D; remoteInfo = ippserver; }; 72BEA8D519AFA8A00085F0F3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72CF95E618A19134000FCAE4; remoteInfo = ippfind; }; 72BEA8D719AFA8BB0085F0F3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 274FF6891333B1C400317ECB; remoteInfo = libcups_static; }; 72CF95E818A19134000FCAE4 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 72F75A651336FA30004BB496 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72220EAD1333047D00FCA411; remoteInfo = libcups; }; 72F75A701336FACD004BB496 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72F75A601336F9A3004BB496; remoteInfo = libcupsimage; }; 72F75A721336FACD004BB496 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 72BF96371333042100B1EAD7 /* Project object */; proxyType = 1; remoteGlobalIDString = 72F75A511336F950004BB496; remoteInfo = cupstestppd; }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ 270CCDA5135E3C9E00007BE2 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 270D02201D707E0200EA9403 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271284E81CC1261900E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271284F51CC1264B00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712850F1CC1267A00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712851C1CC1269700E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285291CC126AA00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285361CC1270B00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285431CC1271E00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285501CC1272D00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712855D1CC1274300E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712856A1CC1275200E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285771CC1276400E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712859C1CC12D1300E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285AB1CC12D3A00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285B91CC12D4E00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285C71CC12D5E00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285D41CC12DBF00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285E11CC12DDF00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285EE1CC12E2D00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271285FC1CC12EEB00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712860F1CC12F0B00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2712861F1CC12F1A00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286631CC1309000E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286791CC1310E00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286921CC13DC000E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286A31CC13DF100E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286B41CC13DFF00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286C51CC13E2100E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286D51CC13E5B00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286EF1CC13F2000E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271286FF1CC13F3F00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271287141CC13FAB00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 271287281CC140BE00E517C7 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 273B1EA6226B3E4800428143 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 273B1EB7226B3E5200428143 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 273BF6BB1333B5000022CAAB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274770DC2345342B0089BC31 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274FF5CA13332B1F00317ECB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274FF6271333333600317ECB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274FF63C1333358B00317ECB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274FF64D133339C400317ECB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 274FF67613333B2F00317ECB /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2766835A1337A9B6000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2766836E1337AC79000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2766837B1337AC8C000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 276683881337AC97000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 276683951337ACA2000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 276683A21337ACAB000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 276683EE1337F78E000D33D0 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 2767FC4C19266A0D000F61D3 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 278C58C9136B640300836530 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 27A034791A8BDB1200650675 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 720DD6C01358FD5F0064AA82 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 72220F5913330A5A00FCA411 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724378FB1333E43E009631B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724379161333E532009631B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 7243792E1333FB85009631B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724379451333FEA9009631B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724379591333FF1D009631B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5311CC0370C0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5441CC037370092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5571CC037500092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA56A1CC037670092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA57D1CC037810092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5901CC037980092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5A31CC037AA0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5B61CC037C60092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5C91CC037D90092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5DD1CC037F00092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA5F11CC038040092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6051CC038190092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6191CC0382B0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA62D1CC038410092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6411CC038560092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6551CC0386E0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA66C1CC038A50092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA67F1CC038BD0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6931CC038D90092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6A61CC039200092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6B91CC0393E0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6CD1CC0395A0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6E61CC039DE0092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 724FA6FB1CC03A210092477B /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 7258EAE0134594C4009286F1 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 726AD6F5135E88F0002C930D /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 729181BA201155C1005E7560 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 72CF95ED18A19134000FCAE4 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; 72F75A501336F950004BB496 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = /usr/share/man/man1/; dstSubfolderSpec = 0; files = ( ); runOnlyForDeploymentPostprocessing = 1; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 2706965A1CADF3E200FFE5FB /* libcups_ios.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcups_ios.a; sourceTree = BUILT_PRODUCTS_DIR; }; 270B267D17F5C06700C8A3A9 /* tls-darwin.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "tls-darwin.c"; path = "../cups/tls-darwin.c"; sourceTree = ""; }; 270B267E17F5C06700C8A3A9 /* tls-gnutls.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "tls-gnutls.c"; path = "../cups/tls-gnutls.c"; sourceTree = ""; }; 270B268117F5C5D600C8A3A9 /* tls-sspi.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "tls-sspi.c"; path = "../cups/tls-sspi.c"; sourceTree = ""; }; 270CCDA7135E3C9E00007BE2 /* testmime */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testmime; sourceTree = BUILT_PRODUCTS_DIR; }; 270CCDBB135E3D3E00007BE2 /* testmime.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testmime.c; path = ../scheduler/testmime.c; sourceTree = ""; }; 270D02241D707E0200EA9403 /* testcreds */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testcreds; sourceTree = BUILT_PRODUCTS_DIR; }; 270D02251D707E3700EA9403 /* testcreds.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testcreds.c; path = ../cups/testcreds.c; sourceTree = ""; }; 271284DD1CC125FC00E517C7 /* lpc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lpc.c; path = ../berkeley/lpc.c; sourceTree = ""; }; 271284DE1CC125FC00E517C7 /* lpq.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lpq.c; path = ../berkeley/lpq.c; sourceTree = ""; }; 271284DF1CC125FC00E517C7 /* lpr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lpr.c; path = ../berkeley/lpr.c; sourceTree = ""; }; 271284E01CC125FC00E517C7 /* lprm.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lprm.c; path = ../berkeley/lprm.c; sourceTree = ""; }; 271284EC1CC1261900E517C7 /* cancel */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cancel; sourceTree = BUILT_PRODUCTS_DIR; }; 271284F91CC1264B00E517C7 /* cupsaccept */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cupsaccept; sourceTree = BUILT_PRODUCTS_DIR; }; 271285131CC1267A00E517C7 /* lp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lp; sourceTree = BUILT_PRODUCTS_DIR; }; 271285201CC1269700E517C7 /* lpc */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpc; sourceTree = BUILT_PRODUCTS_DIR; }; 2712852D1CC126AA00E517C7 /* lpinfo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpinfo; sourceTree = BUILT_PRODUCTS_DIR; }; 2712853A1CC1270B00E517C7 /* lpmove */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpmove; sourceTree = BUILT_PRODUCTS_DIR; }; 271285471CC1271E00E517C7 /* lpoptions */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpoptions; sourceTree = BUILT_PRODUCTS_DIR; }; 271285541CC1272D00E517C7 /* lpq */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpq; sourceTree = BUILT_PRODUCTS_DIR; }; 271285611CC1274300E517C7 /* lpr */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpr; sourceTree = BUILT_PRODUCTS_DIR; }; 2712856E1CC1275200E517C7 /* lprm */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lprm; sourceTree = BUILT_PRODUCTS_DIR; }; 2712857B1CC1276400E517C7 /* lpstat */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpstat; sourceTree = BUILT_PRODUCTS_DIR; }; 271285A01CC12D1300E517C7 /* admin.cgi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = admin.cgi; sourceTree = BUILT_PRODUCTS_DIR; }; 271285AF1CC12D3A00E517C7 /* classes.cgi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = classes.cgi; sourceTree = BUILT_PRODUCTS_DIR; }; 271285BD1CC12D4E00E517C7 /* jobs.cgi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = jobs.cgi; sourceTree = BUILT_PRODUCTS_DIR; }; 271285CB1CC12D5E00E517C7 /* printers.cgi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = printers.cgi; sourceTree = BUILT_PRODUCTS_DIR; }; 271285D81CC12DBF00E517C7 /* commandtops */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = commandtops; sourceTree = BUILT_PRODUCTS_DIR; }; 271285E51CC12DDF00E517C7 /* gziptoany */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = gziptoany; sourceTree = BUILT_PRODUCTS_DIR; }; 271285F21CC12E2E00E517C7 /* pstops */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = pstops; sourceTree = BUILT_PRODUCTS_DIR; }; 271286001CC12EEB00E517C7 /* rastertoepson */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rastertoepson; sourceTree = BUILT_PRODUCTS_DIR; }; 271286131CC12F0B00E517C7 /* rastertohp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rastertohp; sourceTree = BUILT_PRODUCTS_DIR; }; 271286231CC12F1A00E517C7 /* rastertolabel */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rastertolabel; sourceTree = BUILT_PRODUCTS_DIR; }; 271286671CC1309000E517C7 /* tlscheck */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tlscheck; sourceTree = BUILT_PRODUCTS_DIR; }; 271286681CC130BD00E517C7 /* tlscheck.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tlscheck.c; path = ../cups/tlscheck.c; sourceTree = ""; }; 2712866A1CC130FF00E517C7 /* rasterbench.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rasterbench.c; path = ../cups/rasterbench.c; sourceTree = ""; }; 2712867D1CC1310E00E517C7 /* rasterbench */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rasterbench; sourceTree = BUILT_PRODUCTS_DIR; }; 271286801CC1396100E517C7 /* bcp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = bcp.c; path = ../monitor/bcp.c; sourceTree = ""; }; 271286811CC1396100E517C7 /* tbcp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tbcp.c; path = ../monitor/tbcp.c; sourceTree = ""; }; 271286831CC13D9600E517C7 /* checkpo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = checkpo.c; path = ../locale/checkpo.c; sourceTree = ""; }; 271286841CC13D9600E517C7 /* cups.pot */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = cups.pot; path = ../locale/cups.pot; sourceTree = ""; }; 271286851CC13D9600E517C7 /* po2strings.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = po2strings.c; path = ../locale/po2strings.c; sourceTree = ""; }; 271286961CC13DC000E517C7 /* checkpo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = checkpo; sourceTree = BUILT_PRODUCTS_DIR; }; 271286A71CC13DF100E517C7 /* po2strings */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = po2strings; sourceTree = BUILT_PRODUCTS_DIR; }; 271286B81CC13DFF00E517C7 /* strings2po */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = strings2po; sourceTree = BUILT_PRODUCTS_DIR; }; 271286C91CC13E2100E517C7 /* bcp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = bcp; sourceTree = BUILT_PRODUCTS_DIR; }; 271286D91CC13E5B00E517C7 /* tbcp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tbcp; sourceTree = BUILT_PRODUCTS_DIR; }; 271286F31CC13F2000E517C7 /* mailto */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mailto; sourceTree = BUILT_PRODUCTS_DIR; }; 271287031CC13F3F00E517C7 /* rss */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rss; sourceTree = BUILT_PRODUCTS_DIR; }; 271287181CC13FAB00E517C7 /* mantohtml */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mantohtml; sourceTree = BUILT_PRODUCTS_DIR; }; 271287191CC13FDB00E517C7 /* mantohtml.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = mantohtml.c; path = ../man/mantohtml.c; sourceTree = ""; }; 2712871D1CC140B400E517C7 /* genstrings.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = genstrings.cxx; path = ../ppdc/genstrings.cxx; sourceTree = ""; }; 2712872C1CC140BE00E517C7 /* genstrings */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = genstrings; sourceTree = BUILT_PRODUCTS_DIR; }; 2732E089137A3F5200FAFEF6 /* cancel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = cancel.c; path = ../systemv/cancel.c; sourceTree = ""; }; 2732E08A137A3F5200FAFEF6 /* cupsaccept.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = cupsaccept.c; path = ../systemv/cupsaccept.c; sourceTree = ""; }; 2732E08C137A3F5200FAFEF6 /* lp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lp.c; path = ../systemv/lp.c; sourceTree = ""; }; 2732E08D137A3F5200FAFEF6 /* lpadmin.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lpadmin.c; path = ../systemv/lpadmin.c; sourceTree = ""; }; 2732E08E137A3F5200FAFEF6 /* lpinfo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lpinfo.c; path = ../systemv/lpinfo.c; sourceTree = ""; }; 2732E08F137A3F5200FAFEF6 /* lpmove.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lpmove.c; path = ../systemv/lpmove.c; sourceTree = ""; }; 2732E090137A3F5200FAFEF6 /* lpoptions.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lpoptions.c; path = ../systemv/lpoptions.c; sourceTree = ""; }; 2732E092137A3F5200FAFEF6 /* lpstat.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = lpstat.c; path = ../systemv/lpstat.c; sourceTree = ""; }; 273B1EAA226B3E4800428143 /* ippevepcl */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ippevepcl; sourceTree = BUILT_PRODUCTS_DIR; }; 273B1EBB226B3E5200428143 /* ippeveps */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ippeveps; sourceTree = BUILT_PRODUCTS_DIR; }; 273B1EBC226B3EE300428143 /* ippeveps.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = ippeveps.c; path = ../tools/ippeveps.c; sourceTree = ""; }; 273B1EBD226B3EE300428143 /* ippevecommon.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ippevecommon.h; path = ../tools/ippevecommon.h; sourceTree = ""; }; 273B1EBE226B3EE300428143 /* ippevepcl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = ippevepcl.c; path = ../tools/ippevepcl.c; sourceTree = ""; }; 273BF6BD1333B5000022CAAB /* testcups */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testcups; sourceTree = BUILT_PRODUCTS_DIR; }; 273BF6C61333B5370022CAAB /* testcups.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testcups.c; path = ../cups/testcups.c; sourceTree = ""; }; 274561471F545B2E000378E4 /* cupspm.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = cupspm.md; path = ../cups/cupspm.md; sourceTree = ""; }; 274561481F545B2E000378E4 /* api-admin.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "api-admin.header"; path = "../cups/api-admin.header"; sourceTree = ""; }; 274561491F545B2E000378E4 /* api-admin.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "api-admin.shtml"; path = "../cups/api-admin.shtml"; sourceTree = ""; }; 274770E02345342B0089BC31 /* testthreads */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testthreads; sourceTree = BUILT_PRODUCTS_DIR; }; 274770E1234534660089BC31 /* testthreads.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testthreads.c; path = ../cups/testthreads.c; sourceTree = ""; }; 274FF5CC13332B1F00317ECB /* cups-driverd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "cups-driverd"; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF5D613332CC700317ECB /* cups-driverd.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "cups-driverd.cxx"; path = "../scheduler/cups-driverd.cxx"; sourceTree = ""; }; 274FF5D713332CC700317ECB /* util.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = util.c; path = ../scheduler/util.c; sourceTree = ""; }; 274FF5D813332CC700317ECB /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = util.h; path = ../scheduler/util.h; sourceTree = ""; }; 274FF5EE133330C800317ECB /* libcupsppdc.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsppdc.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF5F51333315100317ECB /* ppdc-array.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-array.cxx"; path = "../ppdc/ppdc-array.cxx"; sourceTree = ""; }; 274FF5F61333315100317ECB /* ppdc-attr.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-attr.cxx"; path = "../ppdc/ppdc-attr.cxx"; sourceTree = ""; }; 274FF5F71333315100317ECB /* ppdc-catalog.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-catalog.cxx"; path = "../ppdc/ppdc-catalog.cxx"; sourceTree = ""; }; 274FF5F81333315100317ECB /* ppdc-choice.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-choice.cxx"; path = "../ppdc/ppdc-choice.cxx"; sourceTree = ""; }; 274FF5F91333315100317ECB /* ppdc-constraint.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-constraint.cxx"; path = "../ppdc/ppdc-constraint.cxx"; sourceTree = ""; }; 274FF5FA1333315100317ECB /* ppdc-driver.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-driver.cxx"; path = "../ppdc/ppdc-driver.cxx"; sourceTree = ""; }; 274FF5FB1333315100317ECB /* ppdc-file.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-file.cxx"; path = "../ppdc/ppdc-file.cxx"; sourceTree = ""; }; 274FF5FC1333315100317ECB /* ppdc-filter.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-filter.cxx"; path = "../ppdc/ppdc-filter.cxx"; sourceTree = ""; }; 274FF5FD1333315100317ECB /* ppdc-font.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-font.cxx"; path = "../ppdc/ppdc-font.cxx"; sourceTree = ""; }; 274FF5FE1333315100317ECB /* ppdc-group.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-group.cxx"; path = "../ppdc/ppdc-group.cxx"; sourceTree = ""; }; 274FF5FF1333315100317ECB /* ppdc-import.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-import.cxx"; path = "../ppdc/ppdc-import.cxx"; sourceTree = ""; }; 274FF6001333315100317ECB /* ppdc-mediasize.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-mediasize.cxx"; path = "../ppdc/ppdc-mediasize.cxx"; sourceTree = ""; }; 274FF6011333315100317ECB /* ppdc-message.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-message.cxx"; path = "../ppdc/ppdc-message.cxx"; sourceTree = ""; }; 274FF6021333315100317ECB /* ppdc-option.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-option.cxx"; path = "../ppdc/ppdc-option.cxx"; sourceTree = ""; }; 274FF6031333315100317ECB /* ppdc-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ppdc-private.h"; path = "../ppdc/ppdc-private.h"; sourceTree = ""; }; 274FF6041333315100317ECB /* ppdc-profile.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-profile.cxx"; path = "../ppdc/ppdc-profile.cxx"; sourceTree = ""; }; 274FF6051333315100317ECB /* ppdc-shared.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-shared.cxx"; path = "../ppdc/ppdc-shared.cxx"; sourceTree = ""; }; 274FF6061333315100317ECB /* ppdc-source.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-source.cxx"; path = "../ppdc/ppdc-source.cxx"; sourceTree = ""; }; 274FF6071333315100317ECB /* ppdc-string.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-string.cxx"; path = "../ppdc/ppdc-string.cxx"; sourceTree = ""; }; 274FF6081333315100317ECB /* ppdc-variable.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "ppdc-variable.cxx"; path = "../ppdc/ppdc-variable.cxx"; sourceTree = ""; }; 274FF6091333315100317ECB /* ppdc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ppdc.h; path = ../ppdc/ppdc.h; sourceTree = ""; }; 274FF6291333333600317ECB /* cups-deviced */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "cups-deviced"; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF6351333344400317ECB /* cups-deviced.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "cups-deviced.c"; path = "../scheduler/cups-deviced.c"; sourceTree = ""; }; 274FF63E1333358B00317ECB /* cups-exec */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "cups-exec"; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF6491333398D00317ECB /* cups-exec.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "cups-exec.c"; path = "../scheduler/cups-exec.c"; sourceTree = ""; }; 274FF64F133339C400317ECB /* cups-lpd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "cups-lpd"; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF65B133339FC00317ECB /* cups-lpd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "cups-lpd.c"; path = "../scheduler/cups-lpd.c"; sourceTree = ""; }; 274FF67813333B2F00317ECB /* cupsfilter */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cupsfilter; sourceTree = BUILT_PRODUCTS_DIR; }; 274FF68713333B6E00317ECB /* cupsfilter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = cupsfilter.c; path = ../scheduler/cupsfilter.c; sourceTree = ""; }; 276683561337A8C5000D33D0 /* cups.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = cups.strings; path = ../locale/cups.strings; sourceTree = ""; }; 2766835C1337A9B6000D33D0 /* cupsctl */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cupsctl; sourceTree = BUILT_PRODUCTS_DIR; }; 276683681337AA00000D33D0 /* cupsctl.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = cupsctl.c; path = ../systemv/cupsctl.c; sourceTree = ""; }; 276683701337AC79000D33D0 /* ppdc */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ppdc; sourceTree = BUILT_PRODUCTS_DIR; }; 2766837D1337AC8C000D33D0 /* ppdhtml */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ppdhtml; sourceTree = BUILT_PRODUCTS_DIR; }; 2766838A1337AC97000D33D0 /* ppdi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ppdi; sourceTree = BUILT_PRODUCTS_DIR; }; 276683971337ACA2000D33D0 /* ppdmerge */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ppdmerge; sourceTree = BUILT_PRODUCTS_DIR; }; 276683A41337ACAB000D33D0 /* ppdpo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ppdpo; sourceTree = BUILT_PRODUCTS_DIR; }; 276683CC1337B201000D33D0 /* ppdc.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ppdc.cxx; path = ../ppdc/ppdc.cxx; sourceTree = ""; }; 276683CE1337B20D000D33D0 /* ppdhtml.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ppdhtml.cxx; path = ../ppdc/ppdhtml.cxx; sourceTree = ""; }; 276683D01337B21A000D33D0 /* ppdi.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ppdi.cxx; path = ../ppdc/ppdi.cxx; sourceTree = ""; }; 276683D21337B228000D33D0 /* ppdmerge.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ppdmerge.cxx; path = ../ppdc/ppdmerge.cxx; sourceTree = ""; }; 276683D41337B237000D33D0 /* ppdpo.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ppdpo.cxx; path = ../ppdc/ppdpo.cxx; sourceTree = ""; }; 276683F01337F78E000D33D0 /* ipptool */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ipptool; sourceTree = BUILT_PRODUCTS_DIR; }; 276683F91337F7A9000D33D0 /* ipptool.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ipptool.c; path = ../tools/ipptool.c; sourceTree = ""; }; 2767FC5019266A0D000F61D3 /* testdest */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testdest; sourceTree = BUILT_PRODUCTS_DIR; }; 2767FC5119266A36000F61D3 /* testdest.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testdest.c; path = ../cups/testdest.c; sourceTree = ""; }; 2767FC591926750C000F61D3 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; 2767FC5A1926750C000F61D3 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = usr/lib/libiconv.dylib; sourceTree = SDKROOT; }; 2767FC5B1926750C000F61D3 /* libresolv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libresolv.dylib; path = usr/lib/libresolv.dylib; sourceTree = SDKROOT; }; 2767FC5C1926750C000F61D3 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; 2767FC5D1926750C000F61D3 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 2767FC7519269687000F61D3 /* pwg.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = pwg.h; path = ../cups/pwg.h; sourceTree = ""; }; 2767FC76192696A0000F61D3 /* raster-private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "raster-private.h"; path = "../cups/raster-private.h"; sourceTree = ""; }; 278C58CB136B640300836530 /* testhttp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testhttp; sourceTree = BUILT_PRODUCTS_DIR; }; 278C58E2136B647200836530 /* testhttp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testhttp.c; path = ../cups/testhttp.c; sourceTree = ""; }; 278C58E5136B64AF00836530 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; 278C58E6136B64B000836530 /* Kerberos.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Kerberos.framework; path = /System/Library/Frameworks/Kerberos.framework; sourceTree = ""; }; 278C58E7136B64B000836530 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = ""; }; 278C58E8136B64B000836530 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = /System/Library/Frameworks/SystemConfiguration.framework; sourceTree = ""; }; 279AE6F42395B80F004DD600 /* libpam.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libpam.tbd; path = usr/lib/libpam.tbd; sourceTree = SDKROOT; }; 27A0347B1A8BDB1300650675 /* lpadmin */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpadmin; sourceTree = BUILT_PRODUCTS_DIR; }; 27C89C902613E7C300A58F43 /* cups-tls.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-tls.m4"; path = "../config-scripts/cups-tls.m4"; sourceTree = ""; }; 27D3037D134148CB00F022B1 /* libcups2.def */ = {isa = PBXFileReference; lastKnownFileType = text; name = libcups2.def; path = ../cups/libcups2.def; sourceTree = ""; }; 27F89DA21B3AC43B00E5A4B7 /* testraster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testraster.c; path = ../cups/testraster.c; sourceTree = ""; }; 27F9A76D28CBFC03002CCEE0 /* tls-openssl.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "tls-openssl.c"; path = "../cups/tls-openssl.c"; sourceTree = ""; }; 27F9A76E28CBFC03002CCEE0 /* tls-darwin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "tls-darwin.h"; path = "../cups/tls-darwin.h"; sourceTree = ""; }; 720DD6C21358FD5F0064AA82 /* snmp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = snmp; sourceTree = BUILT_PRODUCTS_DIR; }; 720DD6D21358FDDE0064AA82 /* snmp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snmp.c; path = ../backend/snmp.c; sourceTree = ""; }; 720E854120164E7A00C6C411 /* ipp-file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ipp-file.c"; path = "../cups/ipp-file.c"; sourceTree = ""; }; 720E854220164E7A00C6C411 /* ipp-vars.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ipp-vars.c"; path = "../cups/ipp-vars.c"; sourceTree = ""; }; 72220EAE1333047D00FCA411 /* libcups.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcups.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 72220EB51333052D00FCA411 /* adminutil.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = adminutil.c; path = ../cups/adminutil.c; sourceTree = ""; }; 72220EB71333056300FCA411 /* adminutil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = adminutil.h; path = ../cups/adminutil.h; sourceTree = ""; }; 72220EB81333056300FCA411 /* array.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = array.c; path = ../cups/array.c; sourceTree = ""; }; 72220EB91333056300FCA411 /* array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = array.h; path = ../cups/array.h; sourceTree = ""; }; 72220EBA1333056300FCA411 /* ppd-attr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-attr.c"; path = "../cups/ppd-attr.c"; sourceTree = ""; }; 72220EBB1333056300FCA411 /* auth.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = auth.c; path = ../cups/auth.c; sourceTree = ""; }; 72220EBC1333056300FCA411 /* backchannel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = backchannel.c; path = ../cups/backchannel.c; sourceTree = ""; }; 72220EBD1333056300FCA411 /* backend.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = backend.c; path = ../cups/backend.c; sourceTree = ""; }; 72220EBE1333056300FCA411 /* backend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = backend.h; path = ../cups/backend.h; sourceTree = ""; }; 72220EBF1333056300FCA411 /* ppd-conflicts.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-conflicts.c"; path = "../cups/ppd-conflicts.c"; sourceTree = ""; }; 72220EC01333056300FCA411 /* cups-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "cups-private.h"; path = "../cups/cups-private.h"; sourceTree = ""; }; 72220EC11333056300FCA411 /* cups.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cups.h; path = ../cups/cups.h; sourceTree = ""; }; 72220EC21333056300FCA411 /* ppd-custom.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-custom.c"; path = "../cups/ppd-custom.c"; sourceTree = ""; }; 72220ED1133305BB00FCA411 /* debug.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = debug.c; path = ../cups/debug.c; sourceTree = ""; }; 72220ED2133305BB00FCA411 /* dest.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = dest.c; path = ../cups/dest.c; sourceTree = ""; }; 72220ED3133305BB00FCA411 /* dir.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = dir.c; path = ../cups/dir.c; sourceTree = ""; }; 72220ED4133305BB00FCA411 /* dir.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dir.h; path = ../cups/dir.h; sourceTree = ""; }; 72220ED5133305BB00FCA411 /* ppd-emit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-emit.c"; path = "../cups/ppd-emit.c"; sourceTree = ""; }; 72220ED6133305BB00FCA411 /* encode.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = encode.c; path = ../cups/encode.c; sourceTree = ""; }; 72220ED7133305BB00FCA411 /* file-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "file-private.h"; path = "../cups/file-private.h"; sourceTree = ""; }; 72220ED8133305BB00FCA411 /* file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = file.c; path = ../cups/file.c; sourceTree = ""; }; 72220ED9133305BB00FCA411 /* file.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = file.h; path = ../cups/file.h; sourceTree = ""; }; 72220EDA133305BB00FCA411 /* getdevices.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = getdevices.c; path = ../cups/getdevices.c; sourceTree = ""; }; 72220EDB133305BB00FCA411 /* getifaddrs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = getifaddrs.c; path = ../cups/getifaddrs.c; sourceTree = ""; }; 72220EDC133305BB00FCA411 /* getputfile.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = getputfile.c; path = ../cups/getputfile.c; sourceTree = ""; }; 72220EDD133305BB00FCA411 /* globals.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = globals.c; path = ../cups/globals.c; sourceTree = ""; }; 72220EDE133305BB00FCA411 /* http-addr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "http-addr.c"; path = "../cups/http-addr.c"; sourceTree = ""; }; 72220EDF133305BB00FCA411 /* http-addrlist.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "http-addrlist.c"; path = "../cups/http-addrlist.c"; sourceTree = ""; }; 72220EE0133305BB00FCA411 /* http-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "http-private.h"; path = "../cups/http-private.h"; sourceTree = ""; }; 72220EE1133305BB00FCA411 /* http-support.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "http-support.c"; path = "../cups/http-support.c"; sourceTree = ""; }; 72220EE2133305BB00FCA411 /* http.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = http.c; path = ../cups/http.c; sourceTree = ""; }; 72220EE3133305BB00FCA411 /* http.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = http.h; path = ../cups/http.h; sourceTree = ""; wrapsLines = 1; }; 72220EE4133305BB00FCA411 /* ipp-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ipp-private.h"; path = "../cups/ipp-private.h"; sourceTree = ""; }; 72220EE5133305BB00FCA411 /* ipp-support.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ipp-support.c"; path = "../cups/ipp-support.c"; sourceTree = ""; }; 72220EE6133305BB00FCA411 /* ipp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ipp.c; path = ../cups/ipp.c; sourceTree = ""; }; 72220EE7133305BB00FCA411 /* ipp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ipp.h; path = ../cups/ipp.h; sourceTree = ""; }; 72220EE8133305BB00FCA411 /* langprintf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = langprintf.c; path = ../cups/langprintf.c; sourceTree = ""; }; 72220EE9133305BB00FCA411 /* language-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "language-private.h"; path = "../cups/language-private.h"; sourceTree = ""; }; 72220EEA133305BB00FCA411 /* language.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = language.c; path = ../cups/language.c; sourceTree = ""; }; 72220EEB133305BB00FCA411 /* language.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = language.h; path = ../cups/language.h; sourceTree = ""; }; 72220EEC133305BB00FCA411 /* ppd-localize.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-localize.c"; path = "../cups/ppd-localize.c"; sourceTree = ""; }; 72220EED133305BB00FCA411 /* ppd-mark.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-mark.c"; path = "../cups/ppd-mark.c"; sourceTree = ""; }; 72220EEE133305BB00FCA411 /* md5-internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "md5-internal.h"; path = "../cups/md5-internal.h"; sourceTree = ""; }; 72220EEF133305BB00FCA411 /* md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = md5.c; path = ../cups/md5.c; sourceTree = ""; }; 72220EF0133305BB00FCA411 /* md5passwd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = md5passwd.c; path = ../cups/md5passwd.c; sourceTree = ""; }; 72220EF1133305BB00FCA411 /* notify.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = notify.c; path = ../cups/notify.c; sourceTree = ""; }; 72220EF2133305BB00FCA411 /* options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = options.c; path = ../cups/options.c; sourceTree = ""; }; 72220EF3133305BB00FCA411 /* ppd-page.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-page.c"; path = "../cups/ppd-page.c"; sourceTree = ""; }; 72220EF4133305BB00FCA411 /* ppd-cache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-cache.c"; path = "../cups/ppd-cache.c"; sourceTree = ""; }; 72220EF5133305BB00FCA411 /* ppd-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ppd-private.h"; path = "../cups/ppd-private.h"; sourceTree = ""; }; 72220EF6133305BB00FCA411 /* ppd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ppd.c; path = ../cups/ppd.c; sourceTree = ""; }; 72220EF7133305BB00FCA411 /* ppd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ppd.h; path = ../cups/ppd.h; sourceTree = ""; }; 72220EF8133305BB00FCA411 /* pwg-media.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "pwg-media.c"; path = "../cups/pwg-media.c"; sourceTree = ""; }; 72220EF9133305BB00FCA411 /* pwg-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "pwg-private.h"; path = "../cups/pwg-private.h"; sourceTree = ""; }; 72220EFA133305BB00FCA411 /* raster.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = raster.h; path = ../cups/raster.h; sourceTree = ""; }; 72220EFB133305BB00FCA411 /* request.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = request.c; path = ../cups/request.c; sourceTree = ""; }; 72220EFC133305BB00FCA411 /* sidechannel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sidechannel.c; path = ../cups/sidechannel.c; sourceTree = ""; }; 72220EFD133305BB00FCA411 /* sidechannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sidechannel.h; path = ../cups/sidechannel.h; sourceTree = ""; }; 72220EFE133305BB00FCA411 /* snmp-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "snmp-private.h"; path = "../cups/snmp-private.h"; sourceTree = ""; }; 72220EFF133305BB00FCA411 /* snmp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snmp.c; path = ../cups/snmp.c; sourceTree = ""; }; 72220F00133305BB00FCA411 /* snprintf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = snprintf.c; path = ../cups/snprintf.c; sourceTree = ""; }; 72220F01133305BB00FCA411 /* string-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "string-private.h"; path = "../cups/string-private.h"; sourceTree = ""; }; 72220F02133305BB00FCA411 /* string.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = string.c; path = ../cups/string.c; sourceTree = ""; }; 72220F03133305BB00FCA411 /* tempfile.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tempfile.c; path = ../cups/tempfile.c; sourceTree = ""; }; 72220F04133305BB00FCA411 /* thread-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "thread-private.h"; path = "../cups/thread-private.h"; sourceTree = ""; }; 72220F05133305BB00FCA411 /* thread.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = thread.c; path = ../cups/thread.c; sourceTree = ""; }; 72220F06133305BB00FCA411 /* transcode.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = transcode.c; path = ../cups/transcode.c; sourceTree = ""; }; 72220F07133305BB00FCA411 /* transcode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = transcode.h; path = ../cups/transcode.h; sourceTree = ""; }; 72220F08133305BB00FCA411 /* usersys.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = usersys.c; path = ../cups/usersys.c; sourceTree = ""; }; 72220F09133305BB00FCA411 /* util.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = util.c; path = ../cups/util.c; sourceTree = ""; }; 72220F0A133305BB00FCA411 /* versioning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = versioning.h; path = ../cups/versioning.h; sourceTree = ""; }; 72220F471333063D00FCA411 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = ""; }; 72220F5B13330A5A00FCA411 /* cupsd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cupsd; sourceTree = BUILT_PRODUCTS_DIR; }; 72220F6913330B0C00FCA411 /* auth.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = auth.c; path = ../scheduler/auth.c; sourceTree = SOURCE_ROOT; }; 72220F6A13330B0C00FCA411 /* auth.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = auth.h; path = ../scheduler/auth.h; sourceTree = SOURCE_ROOT; }; 72220F6B13330B0C00FCA411 /* banners.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = banners.c; path = ../scheduler/banners.c; sourceTree = SOURCE_ROOT; }; 72220F6C13330B0C00FCA411 /* banners.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = banners.h; path = ../scheduler/banners.h; sourceTree = SOURCE_ROOT; }; 72220F6D13330B0C00FCA411 /* cert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = cert.c; path = ../scheduler/cert.c; sourceTree = SOURCE_ROOT; }; 72220F6E13330B0C00FCA411 /* cert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cert.h; path = ../scheduler/cert.h; sourceTree = SOURCE_ROOT; }; 72220F6F13330B0C00FCA411 /* classes.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = classes.c; path = ../scheduler/classes.c; sourceTree = SOURCE_ROOT; }; 72220F7013330B0C00FCA411 /* classes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = classes.h; path = ../scheduler/classes.h; sourceTree = SOURCE_ROOT; }; 72220F7113330B0C00FCA411 /* client.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = client.c; path = ../scheduler/client.c; sourceTree = SOURCE_ROOT; }; 72220F7213330B0C00FCA411 /* client.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = client.h; path = ../scheduler/client.h; sourceTree = SOURCE_ROOT; }; 72220F7313330B0C00FCA411 /* conf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = conf.c; path = ../scheduler/conf.c; sourceTree = SOURCE_ROOT; }; 72220F7413330B0C00FCA411 /* conf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = conf.h; path = ../scheduler/conf.h; sourceTree = SOURCE_ROOT; }; 72220F7513330B0C00FCA411 /* cupsd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cupsd.h; path = ../scheduler/cupsd.h; sourceTree = SOURCE_ROOT; }; 72220F7613330B0C00FCA411 /* dirsvc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = dirsvc.c; path = ../scheduler/dirsvc.c; sourceTree = SOURCE_ROOT; }; 72220F7713330B0C00FCA411 /* dirsvc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dirsvc.h; path = ../scheduler/dirsvc.h; sourceTree = SOURCE_ROOT; }; 72220F7813330B0C00FCA411 /* env.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = env.c; path = ../scheduler/env.c; sourceTree = SOURCE_ROOT; }; 72220F7913330B0C00FCA411 /* ipp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ipp.c; path = ../scheduler/ipp.c; sourceTree = SOURCE_ROOT; }; 72220F7A13330B0C00FCA411 /* job.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = job.c; path = ../scheduler/job.c; sourceTree = SOURCE_ROOT; }; 72220F7B13330B0C00FCA411 /* job.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = job.h; path = ../scheduler/job.h; sourceTree = SOURCE_ROOT; }; 72220F7C13330B0C00FCA411 /* listen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = listen.c; path = ../scheduler/listen.c; sourceTree = SOURCE_ROOT; }; 72220F7D13330B0C00FCA411 /* log.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = log.c; path = ../scheduler/log.c; sourceTree = SOURCE_ROOT; }; 72220F7E13330B0C00FCA411 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = main.c; path = ../scheduler/main.c; sourceTree = SOURCE_ROOT; }; 72220F7F13330B0C00FCA411 /* network.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = network.c; path = ../scheduler/network.c; sourceTree = SOURCE_ROOT; }; 72220F8013330B0C00FCA411 /* network.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = network.h; path = ../scheduler/network.h; sourceTree = SOURCE_ROOT; }; 72220F8113330B0C00FCA411 /* policy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = policy.c; path = ../scheduler/policy.c; sourceTree = SOURCE_ROOT; }; 72220F8213330B0C00FCA411 /* policy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = policy.h; path = ../scheduler/policy.h; sourceTree = SOURCE_ROOT; }; 72220F8313330B0C00FCA411 /* printers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = printers.c; path = ../scheduler/printers.c; sourceTree = SOURCE_ROOT; }; 72220F8413330B0C00FCA411 /* printers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = printers.h; path = ../scheduler/printers.h; sourceTree = SOURCE_ROOT; }; 72220F8513330B0C00FCA411 /* process.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = process.c; path = ../scheduler/process.c; sourceTree = SOURCE_ROOT; }; 72220F8613330B0C00FCA411 /* quotas.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = quotas.c; path = ../scheduler/quotas.c; sourceTree = SOURCE_ROOT; }; 72220F8813330B0C00FCA411 /* select.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = select.c; path = ../scheduler/select.c; sourceTree = SOURCE_ROOT; }; 72220F8913330B0C00FCA411 /* server.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = server.c; path = ../scheduler/server.c; sourceTree = SOURCE_ROOT; }; 72220F8A13330B0C00FCA411 /* statbuf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = statbuf.c; path = ../scheduler/statbuf.c; sourceTree = SOURCE_ROOT; }; 72220F8B13330B0C00FCA411 /* statbuf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = statbuf.h; path = ../scheduler/statbuf.h; sourceTree = SOURCE_ROOT; }; 72220F8C13330B0C00FCA411 /* subscriptions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = subscriptions.c; path = ../scheduler/subscriptions.c; sourceTree = SOURCE_ROOT; }; 72220F8D13330B0C00FCA411 /* subscriptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = subscriptions.h; path = ../scheduler/subscriptions.h; sourceTree = SOURCE_ROOT; }; 72220F8E13330B0C00FCA411 /* sysman.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sysman.c; path = ../scheduler/sysman.c; sourceTree = SOURCE_ROOT; }; 72220F8F13330B0C00FCA411 /* sysman.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sysman.h; path = ../scheduler/sysman.h; sourceTree = SOURCE_ROOT; }; 72220FAC13330B2200FCA411 /* libcupsmime.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsmime.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 72220FB213330BCE00FCA411 /* filter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = filter.c; path = ../scheduler/filter.c; sourceTree = ""; }; 72220FB313330BCE00FCA411 /* mime.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = mime.c; path = ../scheduler/mime.c; sourceTree = ""; }; 72220FB413330BCE00FCA411 /* mime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mime.h; path = ../scheduler/mime.h; sourceTree = ""; }; 72220FB513330BCE00FCA411 /* type.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = type.c; path = ../scheduler/type.c; sourceTree = ""; }; 7226369B18AE6D19004ED309 /* org.cups.cups-lpd.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "org.cups.cups-lpd.plist"; path = "../scheduler/org.cups.cups-lpd.plist"; sourceTree = SOURCE_ROOT; }; 7226369C18AE6D19004ED309 /* org.cups.cupsd.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = org.cups.cupsd.plist; path = ../scheduler/org.cups.cupsd.plist; sourceTree = SOURCE_ROOT; }; 7226369D18AE73BB004ED309 /* config.h.in */ = {isa = PBXFileReference; lastKnownFileType = text; name = config.h.in; path = ../config.h.in; sourceTree = ""; }; 722A24EE2178D00C000CAB20 /* debug-internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "debug-internal.h"; path = "../cups/debug-internal.h"; sourceTree = ""; }; 722A24F22178D090000CAB20 /* debug-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "debug-private.h"; path = "../cups/debug-private.h"; sourceTree = ""; }; 7234F41F1378A16F00D3E9C9 /* array-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "array-private.h"; path = "../cups/array-private.h"; sourceTree = ""; }; 724378FD1333E43E009631B9 /* ipp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ipp; sourceTree = BUILT_PRODUCTS_DIR; }; 724379091333E4E3009631B9 /* backend-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "backend-private.h"; path = "../backend/backend-private.h"; sourceTree = ""; }; 7243790A1333E4E3009631B9 /* ipp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ipp.c; path = ../backend/ipp.c; sourceTree = ""; }; 7243790B1333E4E3009631B9 /* network.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = network.c; path = ../backend/network.c; sourceTree = ""; }; 7243790C1333E4E3009631B9 /* snmp-supplies.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "snmp-supplies.c"; path = "../backend/snmp-supplies.c"; sourceTree = ""; }; 724379121333E516009631B9 /* runloop.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = runloop.c; path = ../backend/runloop.c; sourceTree = ""; }; 724379181333E532009631B9 /* lpd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lpd; sourceTree = BUILT_PRODUCTS_DIR; }; 724379281333E952009631B9 /* lpd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = lpd.c; path = ../backend/lpd.c; sourceTree = ""; }; 724379301333FB85009631B9 /* socket */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = socket; sourceTree = BUILT_PRODUCTS_DIR; }; 7243793C1333FD19009631B9 /* socket.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = socket.c; path = ../backend/socket.c; sourceTree = ""; }; 724379471333FEA9009631B9 /* dnssd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = dnssd; sourceTree = BUILT_PRODUCTS_DIR; }; 724379501333FEBB009631B9 /* dnssd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = dnssd.c; path = ../backend/dnssd.c; sourceTree = ""; }; 7243795B1333FF1D009631B9 /* usb */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = usb; sourceTree = BUILT_PRODUCTS_DIR; }; 724379C41333FFC7009631B9 /* usb-darwin.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "usb-darwin.c"; path = "../backend/usb-darwin.c"; sourceTree = ""; }; 724379C51333FFC7009631B9 /* usb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = usb.c; path = ../backend/usb.c; sourceTree = ""; }; 724379CA1334000E009631B9 /* ieee1284.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ieee1284.c; path = ../backend/ieee1284.c; sourceTree = ""; }; 724FA5351CC0370C0092477B /* testadmin */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testadmin; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5481CC037370092477B /* testarray */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testarray; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA55B1CC037500092477B /* testcache */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testcache; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA56E1CC037670092477B /* testconflicts */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testconflicts; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5811CC037810092477B /* testfile */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testfile; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5941CC037980092477B /* testi18n */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testi18n; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5A71CC037AA0092477B /* testipp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testipp; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5BA1CC037C60092477B /* testlang */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testlang; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5CD1CC037D90092477B /* testlpd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testlpd; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5E11CC037F00092477B /* testoptions */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testoptions; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA5F51CC038040092477B /* testppd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testppd; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6091CC038190092477B /* testpwg */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testpwg; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA61D1CC0382B0092477B /* testraster */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testraster; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6311CC038410092477B /* testsnmp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testsnmp; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6451CC038560092477B /* testspeed */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testspeed; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6591CC0386E0092477B /* testsub */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testsub; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA65B1CC0389F0092477B /* test1284.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = test1284.c; path = ../backend/test1284.c; sourceTree = ""; }; 724FA65C1CC0389F0092477B /* testbackend.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testbackend.c; path = ../backend/testbackend.c; sourceTree = ""; }; 724FA65D1CC0389F0092477B /* testsupplies.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testsupplies.c; path = ../backend/testsupplies.c; sourceTree = ""; }; 724FA6701CC038A50092477B /* test1284 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = test1284; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6831CC038BD0092477B /* testbackend */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testbackend; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6971CC038D90092477B /* testsupplies */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testsupplies; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6AA1CC039200092477B /* testcgi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testcgi; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6BD1CC0393E0092477B /* testhi */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testhi; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6D11CC0395A0092477B /* testtemplate */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testtemplate; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6D41CC039D00092477B /* dbus.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = dbus.c; path = ../notifier/dbus.c; sourceTree = ""; }; 724FA6D51CC039D00092477B /* mailto.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = mailto.c; path = ../notifier/mailto.c; sourceTree = ""; }; 724FA6D61CC039D00092477B /* rss.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = rss.c; path = ../notifier/rss.c; sourceTree = ""; }; 724FA6D71CC039D00092477B /* testnotify.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testnotify.c; path = ../notifier/testnotify.c; sourceTree = ""; }; 724FA6EA1CC039DE0092477B /* testnotify */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testnotify; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA6EC1CC03A1D0092477B /* testcatalog.cxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = testcatalog.cxx; path = ../ppdc/testcatalog.cxx; sourceTree = ""; }; 724FA6FF1CC03A210092477B /* testcatalog */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testcatalog; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA70F1CC03A490092477B /* libcupsimage_static.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsimage_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA71F1CC03A990092477B /* libcupsmime_static.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsmime_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA7401CC03AAF0092477B /* libcupsppdc_static.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsppdc_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupscgi.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 724FA76B1CC03AF60092477B /* libcupscgi_static.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupscgi_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; 7253C45C216ED51400494ADD /* raster-interstub.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "raster-interstub.c"; path = "../cups/raster-interstub.c"; sourceTree = ""; }; 7253C45D216ED51500494ADD /* raster-stubs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "raster-stubs.c"; path = "../cups/raster-stubs.c"; sourceTree = ""; }; 7258EAE2134594C4009286F1 /* rastertopwg */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rastertopwg; sourceTree = BUILT_PRODUCTS_DIR; }; 7258EAEC134594EB009286F1 /* rastertopwg.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = rastertopwg.c; path = ../filter/rastertopwg.c; sourceTree = ""; }; 72646E58203D0FCA00231A77 /* NOTICE */ = {isa = PBXFileReference; lastKnownFileType = text; name = NOTICE; path = ../NOTICE; sourceTree = ""; }; 726AD6F7135E88F0002C930D /* ippeveprinter */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ippeveprinter; sourceTree = BUILT_PRODUCTS_DIR; }; 726AD701135E8A90002C930D /* ippeveprinter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ippeveprinter.c; path = ../tools/ippeveprinter.c; sourceTree = ""; }; 7271881713746EA8001A2036 /* commandtops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = commandtops.c; path = ../filter/commandtops.c; sourceTree = ""; }; 7271881813746EA8001A2036 /* common.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = common.c; path = ../filter/common.c; sourceTree = ""; }; 7271881913746EA8001A2036 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = common.h; path = ../filter/common.h; sourceTree = ""; }; 7271881A13746EA8001A2036 /* gziptoany.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = gziptoany.c; path = ../filter/gziptoany.c; sourceTree = ""; }; 7271882013746EA8001A2036 /* pstops.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pstops.c; path = ../filter/pstops.c; sourceTree = ""; }; 7271882113746EA8001A2036 /* rastertoepson.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = rastertoepson.c; path = ../filter/rastertoepson.c; sourceTree = ""; }; 7271882213746EA8001A2036 /* rastertohp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = rastertohp.c; path = ../filter/rastertohp.c; sourceTree = ""; }; 7271882313746EA8001A2036 /* rastertolabel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = rastertolabel.c; path = ../filter/rastertolabel.c; sourceTree = ""; }; 7271883C1374AB14001A2036 /* mime-private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "mime-private.h"; path = "../scheduler/mime-private.h"; sourceTree = ""; }; 727AD5B619100A58009F6862 /* tls.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tls.c; path = ../cups/tls.c; sourceTree = ""; }; 727EF02F192E3498001EF690 /* admin.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = admin.c; path = "../cgi-bin/admin.c"; sourceTree = ""; wrapsLines = 1; }; 727EF030192E3498001EF690 /* cgi-private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "cgi-private.h"; path = "../cgi-bin/cgi-private.h"; sourceTree = ""; }; 727EF031192E3498001EF690 /* cgi.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = cgi.h; path = "../cgi-bin/cgi.h"; sourceTree = ""; }; 727EF032192E3498001EF690 /* classes.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = classes.c; path = "../cgi-bin/classes.c"; sourceTree = ""; }; 727EF033192E3498001EF690 /* help-index.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "help-index.c"; path = "../cgi-bin/help-index.c"; sourceTree = ""; }; 727EF034192E3498001EF690 /* help-index.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "help-index.h"; path = "../cgi-bin/help-index.h"; sourceTree = ""; }; 727EF035192E3498001EF690 /* help.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = help.c; path = "../cgi-bin/help.c"; sourceTree = ""; }; 727EF036192E3498001EF690 /* html.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = html.c; path = "../cgi-bin/html.c"; sourceTree = ""; }; 727EF037192E3498001EF690 /* ipp-var.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "ipp-var.c"; path = "../cgi-bin/ipp-var.c"; sourceTree = ""; }; 727EF038192E3498001EF690 /* jobs.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = jobs.c; path = "../cgi-bin/jobs.c"; sourceTree = ""; }; 727EF03A192E3498001EF690 /* printers.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = printers.c; path = "../cgi-bin/printers.c"; sourceTree = ""; }; 727EF03B192E3498001EF690 /* search.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = search.c; path = "../cgi-bin/search.c"; sourceTree = ""; }; 727EF03C192E3498001EF690 /* template.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = template.c; path = "../cgi-bin/template.c"; sourceTree = ""; }; 727EF03D192E3498001EF690 /* testcgi.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testcgi.c; path = "../cgi-bin/testcgi.c"; sourceTree = ""; }; 727EF03E192E3498001EF690 /* testhi.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testhi.c; path = "../cgi-bin/testhi.c"; sourceTree = ""; }; 727EF03F192E3498001EF690 /* testtemplate.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testtemplate.c; path = "../cgi-bin/testtemplate.c"; sourceTree = ""; }; 727EF040192E3498001EF690 /* var.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = var.c; path = "../cgi-bin/var.c"; sourceTree = ""; }; 727EF041192E3544001EF690 /* testadmin.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testadmin.c; path = ../cups/testadmin.c; sourceTree = ""; }; 727EF042192E3544001EF690 /* testarray.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testarray.c; path = ../cups/testarray.c; sourceTree = ""; }; 727EF043192E3544001EF690 /* testcache.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testcache.c; path = ../cups/testcache.c; sourceTree = ""; }; 727EF044192E3544001EF690 /* testconflicts.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testconflicts.c; path = ../cups/testconflicts.c; sourceTree = ""; }; 727EF045192E3544001EF690 /* testfile.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testfile.c; path = ../cups/testfile.c; sourceTree = ""; }; 727EF046192E3544001EF690 /* testi18n.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testi18n.c; path = ../cups/testi18n.c; sourceTree = ""; }; 727EF047192E3544001EF690 /* testipp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testipp.c; path = ../cups/testipp.c; sourceTree = ""; }; 727EF048192E3544001EF690 /* testlang.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testlang.c; path = ../cups/testlang.c; sourceTree = ""; }; 727EF049192E3544001EF690 /* testoptions.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testoptions.c; path = ../cups/testoptions.c; sourceTree = ""; }; 727EF04A192E3544001EF690 /* testppd.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testppd.c; path = ../cups/testppd.c; sourceTree = ""; }; 727EF04B192E3544001EF690 /* testpwg.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testpwg.c; path = ../cups/testpwg.c; sourceTree = ""; }; 727EF04C192E3544001EF690 /* testsnmp.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testsnmp.c; path = ../cups/testsnmp.c; sourceTree = ""; }; 727EF04D192E3602001EF690 /* testlpd.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testlpd.c; path = ../scheduler/testlpd.c; sourceTree = ""; }; 727EF04E192E3602001EF690 /* testspeed.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testspeed.c; path = ../scheduler/testspeed.c; sourceTree = ""; }; 727EF04F192E3602001EF690 /* testsub.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = testsub.c; path = ../scheduler/testsub.c; sourceTree = ""; }; 7284F9EF1BFCCD940026F886 /* hash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = hash.c; path = ../cups/hash.c; sourceTree = ""; }; 728FB7EC1536161C005426E1 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = /usr/lib/libz.dylib; sourceTree = ""; }; 728FB7EF1536167A005426E1 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = /usr/lib/libiconv.dylib; sourceTree = ""; }; 728FB7F01536167A005426E1 /* libresolv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libresolv.dylib; path = /usr/lib/libresolv.dylib; sourceTree = ""; }; 729181AB20115597005E7560 /* testclient.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = testclient.c; path = ../cups/testclient.c; sourceTree = ""; }; 729181BE201155C1005E7560 /* testclient */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = testclient; sourceTree = BUILT_PRODUCTS_DIR; }; 72A4332F155844CF002E172D /* libcups_static.a */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcups_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; 72A8B3D61C188BDE00A1A547 /* ppd-util.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "ppd-util.c"; path = "../cups/ppd-util.c"; sourceTree = ""; }; 72C16CB8137B195D007E4BF4 /* file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = file.c; path = ../scheduler/file.c; sourceTree = SOURCE_ROOT; }; 72CF95E018A13543000FCAE4 /* dest-job.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "dest-job.c"; path = "../cups/dest-job.c"; sourceTree = ""; }; 72CF95E118A13543000FCAE4 /* dest-localization.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "dest-localization.c"; path = "../cups/dest-localization.c"; sourceTree = ""; }; 72CF95E218A13543000FCAE4 /* dest-options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "dest-options.c"; path = "../cups/dest-options.c"; sourceTree = ""; }; 72CF95F118A19134000FCAE4 /* ipptool copy */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "ipptool copy"; sourceTree = BUILT_PRODUCTS_DIR; }; 72CF95F218A19165000FCAE4 /* ippfind.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ippfind.c; path = ../tools/ippfind.c; sourceTree = ""; }; 72D53A2915B49110003F877F /* GSS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GSS.framework; path = /System/Library/Frameworks/GSS.framework; sourceTree = ""; }; 72D53A2C15B4913D003F877F /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; 72D53A3315B4925B003F877F /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; 72D53A3615B4929D003F877F /* colorman.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = colorman.c; path = ../scheduler/colorman.c; sourceTree = ""; }; 72D53A3715B4929D003F877F /* colorman.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = colorman.h; path = ../scheduler/colorman.h; sourceTree = ""; }; 72D53A3915B492FA003F877F /* libpam.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpam.dylib; path = /usr/lib/libpam.dylib; sourceTree = ""; }; 72E65BA318DC797E00097E89 /* configure.ac */ = {isa = PBXFileReference; lastKnownFileType = text; name = configure.ac; path = ../configure.ac; sourceTree = ""; }; 72E65BA418DC799B00097E89 /* cups-common.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-common.m4"; path = "../config-scripts/cups-common.m4"; sourceTree = ""; }; 72E65BA518DC799B00097E89 /* cups-compiler.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-compiler.m4"; path = "../config-scripts/cups-compiler.m4"; sourceTree = ""; }; 72E65BA618DC799B00097E89 /* cups-defaults.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-defaults.m4"; path = "../config-scripts/cups-defaults.m4"; sourceTree = ""; }; 72E65BA718DC799B00097E89 /* cups-directories.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-directories.m4"; path = "../config-scripts/cups-directories.m4"; sourceTree = ""; }; 72E65BA818DC799B00097E89 /* cups-dnssd.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-dnssd.m4"; path = "../config-scripts/cups-dnssd.m4"; sourceTree = ""; }; 72E65BA918DC799B00097E89 /* cups-gssapi.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-gssapi.m4"; path = "../config-scripts/cups-gssapi.m4"; sourceTree = ""; }; 72E65BAA18DC799B00097E89 /* cups-largefile.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-largefile.m4"; path = "../config-scripts/cups-largefile.m4"; sourceTree = ""; }; 72E65BAB18DC799B00097E89 /* cups-startup.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-startup.m4"; path = "../config-scripts/cups-startup.m4"; sourceTree = ""; }; 72E65BAC18DC799B00097E89 /* cups-libtool.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-libtool.m4"; path = "../config-scripts/cups-libtool.m4"; sourceTree = ""; }; 72E65BAD18DC799B00097E89 /* cups-manpages.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-manpages.m4"; path = "../config-scripts/cups-manpages.m4"; sourceTree = ""; }; 72E65BAE18DC799B00097E89 /* cups-network.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-network.m4"; path = "../config-scripts/cups-network.m4"; sourceTree = ""; }; 72E65BAF18DC799B00097E89 /* cups-opsys.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-opsys.m4"; path = "../config-scripts/cups-opsys.m4"; sourceTree = ""; }; 72E65BB018DC799B00097E89 /* cups-pam.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-pam.m4"; path = "../config-scripts/cups-pam.m4"; sourceTree = ""; }; 72E65BB118DC799B00097E89 /* cups-poll.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-poll.m4"; path = "../config-scripts/cups-poll.m4"; sourceTree = ""; }; 72E65BB318DC799B00097E89 /* cups-sharedlibs.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-sharedlibs.m4"; path = "../config-scripts/cups-sharedlibs.m4"; sourceTree = ""; }; 72E65BB518DC799B00097E89 /* cups-threads.m4 */ = {isa = PBXFileReference; lastKnownFileType = text; name = "cups-threads.m4"; path = "../config-scripts/cups-threads.m4"; sourceTree = ""; }; 72E65BB618DC79CC00097E89 /* cups-config.in */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; name = "cups-config.in"; path = "../cups-config.in"; sourceTree = ""; }; 72E65BB718DC79CC00097E89 /* Makedefs.in */ = {isa = PBXFileReference; lastKnownFileType = text; name = Makedefs.in; path = ../Makedefs.in; sourceTree = ""; }; 72E65BB918DC7A3600097E89 /* doc */ = {isa = PBXFileReference; lastKnownFileType = folder; name = doc; path = ../doc; sourceTree = ""; }; 72E65BBA18DC7A3600097E89 /* man */ = {isa = PBXFileReference; lastKnownFileType = folder; name = man; path = ../man; sourceTree = ""; }; 72E65BC118DC7A6B00097E89 /* api-filter.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "api-filter.header"; path = "../cups/api-filter.header"; sourceTree = ""; }; 72E65BC218DC7A6B00097E89 /* api-filter.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "api-filter.shtml"; path = "../cups/api-filter.shtml"; sourceTree = ""; }; 72E65BC718DC7A6B00097E89 /* api-ppd.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "api-ppd.header"; path = "../cups/api-ppd.header"; sourceTree = ""; }; 72E65BC818DC7A6B00097E89 /* api-ppd.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "api-ppd.shtml"; path = "../cups/api-ppd.shtml"; sourceTree = ""; }; 72E65BCB18DC7A9800097E89 /* api-raster.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "api-raster.header"; path = "../cups/api-raster.header"; sourceTree = ""; }; 72E65BCC18DC7A9800097E89 /* api-raster.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "api-raster.shtml"; path = "../cups/api-raster.shtml"; sourceTree = ""; }; 72E65BCD18DC7A9800097E89 /* postscript-driver.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "postscript-driver.header"; path = "../filter/postscript-driver.header"; sourceTree = ""; }; 72E65BCE18DC7A9800097E89 /* postscript-driver.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "postscript-driver.shtml"; path = "../filter/postscript-driver.shtml"; sourceTree = ""; }; 72E65BCF18DC7A9800097E89 /* ppd-compiler.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "ppd-compiler.header"; path = "../filter/ppd-compiler.header"; sourceTree = ""; }; 72E65BD018DC7A9800097E89 /* ppd-compiler.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "ppd-compiler.shtml"; path = "../filter/ppd-compiler.shtml"; sourceTree = ""; }; 72E65BD118DC7A9800097E89 /* raster-driver.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "raster-driver.header"; path = "../filter/raster-driver.header"; sourceTree = ""; }; 72E65BD218DC7A9800097E89 /* raster-driver.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "raster-driver.shtml"; path = "../filter/raster-driver.shtml"; sourceTree = ""; }; 72E65BD318DC7A9800097E89 /* spec-ppd.header */ = {isa = PBXFileReference; lastKnownFileType = text; name = "spec-ppd.header"; path = "../filter/spec-ppd.header"; sourceTree = ""; }; 72E65BD418DC7A9800097E89 /* spec-ppd.shtml */ = {isa = PBXFileReference; lastKnownFileType = text.html.other; name = "spec-ppd.shtml"; path = "../filter/spec-ppd.shtml"; sourceTree = ""; }; 72E65BD518DC818400097E89 /* org.cups.cups-lpd.plist.in */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = "org.cups.cups-lpd.plist.in"; path = "../scheduler/org.cups.cups-lpd.plist.in"; sourceTree = SOURCE_ROOT; }; 72E65BD918DC850A00097E89 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; name = Makefile; path = ../Makefile; sourceTree = ""; }; 72E65BDC18DC852700097E89 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; name = Makefile; path = ../scheduler/Makefile; sourceTree = SOURCE_ROOT; }; 72E65BDE18DCA35700097E89 /* CHANGES.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = CHANGES.md; path = ../CHANGES.md; sourceTree = ""; xcLanguageSpecificationIdentifier = ""; }; 72E65BDF18DCA35700097E89 /* CREDITS.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = CREDITS.md; path = ../CREDITS.md; sourceTree = ""; }; 72E65BE018DCA35700097E89 /* INSTALL.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = INSTALL.md; path = ../INSTALL.md; sourceTree = ""; }; 72E65BE218DCA35700097E89 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 72E65BE318DCA35700097E89 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 72F75A521336F950004BB496 /* cupstestppd */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = cupstestppd; sourceTree = BUILT_PRODUCTS_DIR; }; 72F75A5B1336F988004BB496 /* cupstestppd.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = cupstestppd.c; path = ../systemv/cupstestppd.c; sourceTree = ""; }; 72F75A611336F9A3004BB496 /* libcupsimage.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libcupsimage.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 72F75A691336FA8A004BB496 /* raster-error.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "raster-error.c"; path = "../cups/raster-error.c"; sourceTree = ""; }; 72F75A6A1336FA8A004BB496 /* raster-interpret.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "raster-interpret.c"; path = "../cups/raster-interpret.c"; sourceTree = ""; }; 72F75A6B1336FA8A004BB496 /* raster-stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "raster-stream.c"; path = "../cups/raster-stream.c"; sourceTree = ""; }; 72F7F1D719D1C0CC00870B09 /* org.cups.usb-quirks */ = {isa = PBXFileReference; lastKnownFileType = text; name = "org.cups.usb-quirks"; path = "../backend/org.cups.usb-quirks"; sourceTree = ""; }; 72FC29CF1A37A1CA00BDF935 /* usb-libusb.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "usb-libusb.c"; path = "../backend/usb-libusb.c"; sourceTree = ""; }; 72FC29D01A37A1CA00BDF935 /* usb-unix.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = "usb-unix.c"; path = "../backend/usb-unix.c"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 270696331CADF3E200FFE5FB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 270696341CADF3E200FFE5FB /* SystemConfiguration.framework in Frameworks */, 270696351CADF3E200FFE5FB /* CoreFoundation.framework in Frameworks */, 270696381CADF3E200FFE5FB /* libiconv.dylib in Frameworks */, 270696391CADF3E200FFE5FB /* libresolv.dylib in Frameworks */, 2706963A1CADF3E200FFE5FB /* libz.dylib in Frameworks */, 2706963B1CADF3E200FFE5FB /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 270CCDA4135E3C9E00007BE2 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284DC1CC1254C00E517C7 /* libcupsmime_static.a in Frameworks */, 2767FC57192674C4000F61D3 /* libcups_static.a in Frameworks */, 278C58E9136B64B000836530 /* CoreFoundation.framework in Frameworks */, 278C58EA136B64B000836530 /* Kerberos.framework in Frameworks */, 278C58EB136B64B000836530 /* Security.framework in Frameworks */, 278C58EC136B64B000836530 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 270D02181D707E0200EA9403 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 270D02191D707E0200EA9403 /* libcups_static.a in Frameworks */, 270D021A1D707E0200EA9403 /* CoreFoundation.framework in Frameworks */, 270D021B1D707E0200EA9403 /* Kerberos.framework in Frameworks */, 270D021C1D707E0200EA9403 /* libiconv.dylib in Frameworks */, 270D021D1D707E0200EA9403 /* libresolv.dylib in Frameworks */, 270D021E1D707E0200EA9403 /* libz.dylib in Frameworks */, 270D021F1D707E0200EA9403 /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271284E61CC1261900E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284E71CC1261900E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271284F31CC1264B00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284F41CC1264B00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712850D1CC1267A00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712850E1CC1267A00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712851A1CC1269700E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712851B1CC1269700E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285271CC126AA00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285281CC126AA00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285341CC1270B00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285351CC1270B00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285411CC1271E00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285421CC1271E00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712854E1CC1272D00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712854F1CC1272D00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712855B1CC1274300E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712855C1CC1274300E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285681CC1275200E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285691CC1275200E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285751CC1276400E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285761CC1276400E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712859A1CC12D1300E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285A21CC12D2900E517C7 /* libcupscgi.dylib in Frameworks */, 2712859B1CC12D1300E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285A81CC12D3A00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285A91CC12D3A00E517C7 /* libcupscgi.dylib in Frameworks */, 271285AA1CC12D3A00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285B61CC12D4E00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285B71CC12D4E00E517C7 /* libcupscgi.dylib in Frameworks */, 271285B81CC12D4E00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285C41CC12D5E00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285C51CC12D5E00E517C7 /* libcupscgi.dylib in Frameworks */, 271285C61CC12D5E00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285D21CC12DBF00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285D31CC12DBF00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285DF1CC12DDF00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285E01CC12DDF00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285EC1CC12E2D00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271285ED1CC12E2D00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285FA1CC12EEB00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286041CC12F0800E517C7 /* libcupsimage.dylib in Frameworks */, 271285FB1CC12EEB00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712860C1CC12F0B00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712860D1CC12F0B00E517C7 /* libcupsimage.dylib in Frameworks */, 2712860E1CC12F0B00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712861C1CC12F1A00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712861D1CC12F1A00E517C7 /* libcupsimage.dylib in Frameworks */, 2712861E1CC12F1A00E517C7 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712865C1CC1309000E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712865D1CC1309000E517C7 /* libcups_static.a in Frameworks */, 2712865E1CC1309000E517C7 /* CoreFoundation.framework in Frameworks */, 2712865F1CC1309000E517C7 /* libresolv.dylib in Frameworks */, 271286601CC1309000E517C7 /* libz.dylib in Frameworks */, 271286611CC1309000E517C7 /* Security.framework in Frameworks */, 271286621CC1309000E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286721CC1310E00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286731CC1310E00E517C7 /* libcupsimage_static.a in Frameworks */, 271286741CC1310E00E517C7 /* libcups_static.a in Frameworks */, 271286751CC1310E00E517C7 /* CoreFoundation.framework in Frameworks */, 271286761CC1310E00E517C7 /* Kerberos.framework in Frameworks */, 271286771CC1310E00E517C7 /* Security.framework in Frameworks */, 271286781CC1310E00E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712868C1CC13DC000E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712868D1CC13DC000E517C7 /* libcups_static.a in Frameworks */, 2712868E1CC13DC000E517C7 /* CoreFoundation.framework in Frameworks */, 2712868F1CC13DC000E517C7 /* Kerberos.framework in Frameworks */, 271286901CC13DC000E517C7 /* Security.framework in Frameworks */, 271286911CC13DC000E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712869D1CC13DF100E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712869E1CC13DF100E517C7 /* libcups_static.a in Frameworks */, 2712869F1CC13DF100E517C7 /* CoreFoundation.framework in Frameworks */, 271286A01CC13DF100E517C7 /* Kerberos.framework in Frameworks */, 271286A11CC13DF100E517C7 /* Security.framework in Frameworks */, 271286A21CC13DF100E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286AE1CC13DFF00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286AF1CC13DFF00E517C7 /* libcups_static.a in Frameworks */, 271286B01CC13DFF00E517C7 /* CoreFoundation.framework in Frameworks */, 271286B11CC13DFF00E517C7 /* Kerberos.framework in Frameworks */, 271286B21CC13DFF00E517C7 /* Security.framework in Frameworks */, 271286B31CC13DFF00E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286C01CC13E2100E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286C11CC13E2100E517C7 /* libcups.dylib in Frameworks */, 271286C21CC13E2100E517C7 /* CoreFoundation.framework in Frameworks */, 271286C31CC13E2100E517C7 /* IOKit.framework in Frameworks */, 271286C41CC13E2100E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286D01CC13E5B00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286D11CC13E5B00E517C7 /* libcups.dylib in Frameworks */, 271286D21CC13E5B00E517C7 /* CoreFoundation.framework in Frameworks */, 271286D31CC13E5B00E517C7 /* IOKit.framework in Frameworks */, 271286D41CC13E5B00E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286EA1CC13F2000E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286EB1CC13F2000E517C7 /* libcups.dylib in Frameworks */, 271286EC1CC13F2000E517C7 /* CoreFoundation.framework in Frameworks */, 271286ED1CC13F2000E517C7 /* IOKit.framework in Frameworks */, 271286EE1CC13F2000E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286FA1CC13F3F00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271286FB1CC13F3F00E517C7 /* libcups.dylib in Frameworks */, 271286FC1CC13F3F00E517C7 /* CoreFoundation.framework in Frameworks */, 271286FD1CC13F3F00E517C7 /* IOKit.framework in Frameworks */, 271286FE1CC13F3F00E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712870E1CC13FAB00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2712870F1CC13FAB00E517C7 /* libcups_static.a in Frameworks */, 271287101CC13FAB00E517C7 /* CoreFoundation.framework in Frameworks */, 271287111CC13FAB00E517C7 /* Kerberos.framework in Frameworks */, 271287121CC13FAB00E517C7 /* Security.framework in Frameworks */, 271287131CC13FAB00E517C7 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 271287251CC140BE00E517C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271287341CC140F500E517C7 /* CoreFoundation.framework in Frameworks */, 271287321CC140EB00E517C7 /* libcups_static.a in Frameworks */, 271287331CC140EB00E517C7 /* libcupsppdc_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 273B1E9F226B3E4800428143 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 273B1EC7226B41F700428143 /* libcups.dylib in Frameworks */, 273B1EA1226B3E4800428143 /* CoreFoundation.framework in Frameworks */, 273B1EA2226B3E4800428143 /* libresolv.dylib in Frameworks */, 273B1EA3226B3E4800428143 /* libz.dylib in Frameworks */, 273B1EA4226B3E4800428143 /* Security.framework in Frameworks */, 273B1EA5226B3E4800428143 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 273B1EB0226B3E5200428143 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 273B1ECD226B421E00428143 /* libcups.dylib in Frameworks */, 273B1EB2226B3E5200428143 /* CoreFoundation.framework in Frameworks */, 273B1EB3226B3E5200428143 /* libresolv.dylib in Frameworks */, 273B1EB4226B3E5200428143 /* libz.dylib in Frameworks */, 273B1EB5226B3E5200428143 /* Security.framework in Frameworks */, 273B1EB6226B3E5200428143 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 273BF6BA1333B5000022CAAB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2767FC5F1926750C000F61D3 /* CoreFoundation.framework in Frameworks */, 2767FC601926750C000F61D3 /* libiconv.dylib in Frameworks */, 2767FC611926750C000F61D3 /* libresolv.dylib in Frameworks */, 2767FC621926750C000F61D3 /* libz.dylib in Frameworks */, 2767FC631926750C000F61D3 /* Security.framework in Frameworks */, 2767FC641926750C000F61D3 /* SystemConfiguration.framework in Frameworks */, 2767FC58192674E0000F61D3 /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274770D62345342B0089BC31 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 274770D72345342B0089BC31 /* libcups_static.a in Frameworks */, 274770D82345342B0089BC31 /* CoreFoundation.framework in Frameworks */, 274770D92345342B0089BC31 /* Kerberos.framework in Frameworks */, 274770DA2345342B0089BC31 /* Security.framework in Frameworks */, 274770DB2345342B0089BC31 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF5C913332B1F00317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 274FF5DD13332D0600317ECB /* libcups.dylib in Frameworks */, 274FF6241333323B00317ECB /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF5EB133330C800317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 7200511218F492F200E7B81B /* CoreFoundation.framework in Frameworks */, 274FF6231333321400317ECB /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF6261333333600317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 274FF6321333334A00317ECB /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF63B1333358B00317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72CEF95618A966E000FA9B81 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF64C133339C400317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 274FF658133339D300317ECB /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF67513333B2F00317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 274FF68513333B4300317ECB /* libcups.dylib in Frameworks */, 274FF68613333B4300317ECB /* libcupsmime.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF6B91333B1C400317ECB /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72BFD609191AF14C0005DA37 /* SystemConfiguration.framework in Frameworks */, 72BFD602191AF1270005DA37 /* CoreFoundation.framework in Frameworks */, 72BFD603191AF1270005DA37 /* GSS.framework in Frameworks */, 72BFD604191AF1270005DA37 /* Kerberos.framework in Frameworks */, 72BFD605191AF1270005DA37 /* libiconv.dylib in Frameworks */, 72BFD606191AF1270005DA37 /* libresolv.dylib in Frameworks */, 72BFD607191AF1270005DA37 /* libz.dylib in Frameworks */, 72BFD608191AF1270005DA37 /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683591337A9B6000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683671337A9E0000D33D0 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2766836D1337AC79000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683B11337AD06000D33D0 /* libcups.dylib in Frameworks */, 276683B21337AD06000D33D0 /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2766837A1337AC8C000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683B71337AD23000D33D0 /* libcups.dylib in Frameworks */, 276683B81337AD23000D33D0 /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683871337AC97000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683B91337AD31000D33D0 /* libcups.dylib in Frameworks */, 276683BA1337AD31000D33D0 /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683941337ACA2000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683C31337B1B3000D33D0 /* libcups.dylib in Frameworks */, 276683C41337B1B3000D33D0 /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683A11337ACAB000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683C91337B1C1000D33D0 /* libcups.dylib in Frameworks */, 276683CA1337B1C1000D33D0 /* libcupsppdc.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683ED1337F78E000D33D0 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683FD1337F7B8000D33D0 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2767FC4B19266A0D000F61D3 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2767FC6B192685E6000F61D3 /* libcups_static.a in Frameworks */, 2767FC6C192685E6000F61D3 /* CoreFoundation.framework in Frameworks */, 2767FC6D192685E6000F61D3 /* libiconv.dylib in Frameworks */, 2767FC6E192685E6000F61D3 /* libresolv.dylib in Frameworks */, 2767FC6F192685E6000F61D3 /* libz.dylib in Frameworks */, 2767FC70192685E6000F61D3 /* Security.framework in Frameworks */, 2767FC71192685E6000F61D3 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 278C58C8136B640300836530 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72BFD5FB191AF0A30005DA37 /* libcups_static.a in Frameworks */, 72BFD5FC191AF0A30005DA37 /* CoreFoundation.framework in Frameworks */, 72BFD5FD191AF0A30005DA37 /* Kerberos.framework in Frameworks */, 72BFD5FE191AF0A30005DA37 /* libiconv.dylib in Frameworks */, 72BFD5FF191AF0A30005DA37 /* libresolv.dylib in Frameworks */, 72BFD600191AF0A30005DA37 /* libz.dylib in Frameworks */, 72BFD601191AF0A30005DA37 /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 27A034781A8BDB1200650675 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 27A034851A8BDC5C00650675 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 720DD6BF1358FD5F0064AA82 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 720DD6CD1358FD720064AA82 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220EAB1333047D00FCA411 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 728FB7F11536167A005426E1 /* libiconv.dylib in Frameworks */, 728FB7F21536167A005426E1 /* libresolv.dylib in Frameworks */, 728FB7ED1536161C005426E1 /* libz.dylib in Frameworks */, 728FB7E91536161C005426E1 /* CoreFoundation.framework in Frameworks */, 72D53A2A15B49110003F877F /* GSS.framework in Frameworks */, 728FB7EB1536161C005426E1 /* Security.framework in Frameworks */, 728FB7EE15361642005426E1 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220F5813330A5A00FCA411 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72D53A3A15B492FA003F877F /* libpam.dylib in Frameworks */, 72220F6613330A7000FCA411 /* libcups.dylib in Frameworks */, 72220FBF13330C1000FCA411 /* libcupsmime.dylib in Frameworks */, 72D53A3415B4925B003F877F /* ApplicationServices.framework in Frameworks */, 72D53A3015B4923F003F877F /* CoreFoundation.framework in Frameworks */, 72D53A3B15B4930A003F877F /* GSS.framework in Frameworks */, 72D53A3515B49270003F877F /* IOKit.framework in Frameworks */, 72D53A3C15B4930A003F877F /* Kerberos.framework in Frameworks */, 72D53A3115B4923F003F877F /* Security.framework in Frameworks */, 72D53A3215B4923F003F877F /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220FA913330B2200FCA411 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72220FBA13330BEE00FCA411 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724378FA1333E43E009631B9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724379081333E4A5009631B9 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379151333E532009631B9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724379271333E93D009631B9 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 7243792D1333FB85009631B9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 7243793B1333FB9D009631B9 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379441333FEA9009631B9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724379561333FF04009631B9 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379581333FF1D009631B9 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724379661333FF3B009631B9 /* libcups.dylib in Frameworks */, 72D53A2F15B49174003F877F /* CoreFoundation.framework in Frameworks */, 72D53A2D15B4913D003F877F /* IOKit.framework in Frameworks */, 72D53A2E15B4915B003F877F /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5291CC0370C0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA52A1CC0370C0092477B /* CoreFoundation.framework in Frameworks */, 724FA52B1CC0370C0092477B /* libiconv.dylib in Frameworks */, 724FA52C1CC0370C0092477B /* libresolv.dylib in Frameworks */, 724FA52D1CC0370C0092477B /* libz.dylib in Frameworks */, 724FA52E1CC0370C0092477B /* Security.framework in Frameworks */, 724FA52F1CC0370C0092477B /* SystemConfiguration.framework in Frameworks */, 724FA5301CC0370C0092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA53C1CC037370092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA53D1CC037370092477B /* CoreFoundation.framework in Frameworks */, 724FA53E1CC037370092477B /* libiconv.dylib in Frameworks */, 724FA53F1CC037370092477B /* libresolv.dylib in Frameworks */, 724FA5401CC037370092477B /* libz.dylib in Frameworks */, 724FA5411CC037370092477B /* Security.framework in Frameworks */, 724FA5421CC037370092477B /* SystemConfiguration.framework in Frameworks */, 724FA5431CC037370092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA54F1CC037500092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5501CC037500092477B /* CoreFoundation.framework in Frameworks */, 724FA5511CC037500092477B /* libiconv.dylib in Frameworks */, 724FA5521CC037500092477B /* libresolv.dylib in Frameworks */, 724FA5531CC037500092477B /* libz.dylib in Frameworks */, 724FA5541CC037500092477B /* Security.framework in Frameworks */, 724FA5551CC037500092477B /* SystemConfiguration.framework in Frameworks */, 724FA5561CC037500092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5621CC037670092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5631CC037670092477B /* CoreFoundation.framework in Frameworks */, 724FA5641CC037670092477B /* libiconv.dylib in Frameworks */, 724FA5651CC037670092477B /* libresolv.dylib in Frameworks */, 724FA5661CC037670092477B /* libz.dylib in Frameworks */, 724FA5671CC037670092477B /* Security.framework in Frameworks */, 724FA5681CC037670092477B /* SystemConfiguration.framework in Frameworks */, 724FA5691CC037670092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5751CC037810092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5761CC037810092477B /* libcups_static.a in Frameworks */, 724FA5771CC037810092477B /* CoreFoundation.framework in Frameworks */, 724FA5781CC037810092477B /* libiconv.dylib in Frameworks */, 724FA5791CC037810092477B /* libresolv.dylib in Frameworks */, 724FA57A1CC037810092477B /* libz.dylib in Frameworks */, 724FA57B1CC037810092477B /* Security.framework in Frameworks */, 724FA57C1CC037810092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5881CC037980092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5891CC037980092477B /* libcups_static.a in Frameworks */, 724FA58A1CC037980092477B /* CoreFoundation.framework in Frameworks */, 724FA58B1CC037980092477B /* Kerberos.framework in Frameworks */, 724FA58C1CC037980092477B /* libiconv.dylib in Frameworks */, 724FA58D1CC037980092477B /* libresolv.dylib in Frameworks */, 724FA58E1CC037980092477B /* libz.dylib in Frameworks */, 724FA58F1CC037980092477B /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA59B1CC037AA0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA59C1CC037AA0092477B /* libcups_static.a in Frameworks */, 724FA59D1CC037AA0092477B /* CoreFoundation.framework in Frameworks */, 724FA59E1CC037AA0092477B /* Kerberos.framework in Frameworks */, 724FA59F1CC037AA0092477B /* libiconv.dylib in Frameworks */, 724FA5A01CC037AA0092477B /* libresolv.dylib in Frameworks */, 724FA5A11CC037AA0092477B /* libz.dylib in Frameworks */, 724FA5A21CC037AA0092477B /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5AE1CC037C60092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5AF1CC037C60092477B /* libcups_static.a in Frameworks */, 724FA5B01CC037C60092477B /* CoreFoundation.framework in Frameworks */, 724FA5B11CC037C60092477B /* Kerberos.framework in Frameworks */, 724FA5B21CC037C60092477B /* libiconv.dylib in Frameworks */, 724FA5B31CC037C60092477B /* libresolv.dylib in Frameworks */, 724FA5B41CC037C60092477B /* libz.dylib in Frameworks */, 724FA5B51CC037C60092477B /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5C11CC037D90092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5C21CC037D90092477B /* libcups_static.a in Frameworks */, 724FA5C31CC037D90092477B /* CoreFoundation.framework in Frameworks */, 724FA5C41CC037D90092477B /* Kerberos.framework in Frameworks */, 724FA5C51CC037D90092477B /* libiconv.dylib in Frameworks */, 724FA5C61CC037D90092477B /* libresolv.dylib in Frameworks */, 724FA5C71CC037D90092477B /* libz.dylib in Frameworks */, 724FA5C81CC037D90092477B /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5D61CC037F00092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5D71CC037F00092477B /* libcups_static.a in Frameworks */, 724FA5D81CC037F00092477B /* CoreFoundation.framework in Frameworks */, 724FA5D91CC037F00092477B /* Kerberos.framework in Frameworks */, 724FA5DA1CC037F00092477B /* Security.framework in Frameworks */, 724FA5DB1CC037F00092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5EA1CC038040092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5EB1CC038040092477B /* libcups_static.a in Frameworks */, 724FA5EC1CC038040092477B /* CoreFoundation.framework in Frameworks */, 724FA5ED1CC038040092477B /* Kerberos.framework in Frameworks */, 724FA5EE1CC038040092477B /* Security.framework in Frameworks */, 724FA5EF1CC038040092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5FE1CC038190092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA5FF1CC038190092477B /* libcups_static.a in Frameworks */, 724FA6001CC038190092477B /* CoreFoundation.framework in Frameworks */, 724FA6011CC038190092477B /* Kerberos.framework in Frameworks */, 724FA6021CC038190092477B /* Security.framework in Frameworks */, 724FA6031CC038190092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6121CC0382B0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284DA1CC1251400E517C7 /* libcupsimage_static.a in Frameworks */, 724FA6131CC0382B0092477B /* libcups_static.a in Frameworks */, 724FA6141CC0382B0092477B /* CoreFoundation.framework in Frameworks */, 724FA6151CC0382B0092477B /* Kerberos.framework in Frameworks */, 724FA6161CC0382B0092477B /* Security.framework in Frameworks */, 724FA6171CC0382B0092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6261CC038410092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA6271CC038410092477B /* libcups_static.a in Frameworks */, 724FA6281CC038410092477B /* CoreFoundation.framework in Frameworks */, 724FA6291CC038410092477B /* Kerberos.framework in Frameworks */, 724FA62A1CC038410092477B /* Security.framework in Frameworks */, 724FA62B1CC038410092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA63A1CC038560092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA63B1CC038560092477B /* libcups_static.a in Frameworks */, 724FA63C1CC038560092477B /* CoreFoundation.framework in Frameworks */, 724FA63D1CC038560092477B /* Kerberos.framework in Frameworks */, 724FA63E1CC038560092477B /* Security.framework in Frameworks */, 724FA63F1CC038560092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA64E1CC0386E0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA64F1CC0386E0092477B /* libcups_static.a in Frameworks */, 724FA6501CC0386E0092477B /* CoreFoundation.framework in Frameworks */, 724FA6511CC0386E0092477B /* Kerberos.framework in Frameworks */, 724FA6521CC0386E0092477B /* Security.framework in Frameworks */, 724FA6531CC0386E0092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6651CC038A50092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA6661CC038A50092477B /* libcups_static.a in Frameworks */, 724FA6671CC038A50092477B /* CoreFoundation.framework in Frameworks */, 724FA6681CC038A50092477B /* Kerberos.framework in Frameworks */, 724FA6691CC038A50092477B /* Security.framework in Frameworks */, 724FA66A1CC038A50092477B /* SystemConfiguration.framework in Frameworks */, 724FA66B1CC038A50092477B /* libcupsmime.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6771CC038BD0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA6781CC038BD0092477B /* CoreFoundation.framework in Frameworks */, 724FA6791CC038BD0092477B /* libiconv.dylib in Frameworks */, 724FA67A1CC038BD0092477B /* libresolv.dylib in Frameworks */, 724FA67B1CC038BD0092477B /* libz.dylib in Frameworks */, 724FA67C1CC038BD0092477B /* Security.framework in Frameworks */, 724FA67D1CC038BD0092477B /* SystemConfiguration.framework in Frameworks */, 724FA67E1CC038BD0092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA68C1CC038D90092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA68D1CC038D90092477B /* libcups_static.a in Frameworks */, 724FA68E1CC038D90092477B /* CoreFoundation.framework in Frameworks */, 724FA68F1CC038D90092477B /* Kerberos.framework in Frameworks */, 724FA6901CC038D90092477B /* Security.framework in Frameworks */, 724FA6911CC038D90092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA69E1CC039200092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284D71CC124D700E517C7 /* libcupscgi_static.a in Frameworks */, 724FA69F1CC039200092477B /* CoreFoundation.framework in Frameworks */, 724FA6A01CC039200092477B /* libiconv.dylib in Frameworks */, 724FA6A11CC039200092477B /* libresolv.dylib in Frameworks */, 724FA6A21CC039200092477B /* libz.dylib in Frameworks */, 724FA6A31CC039200092477B /* Security.framework in Frameworks */, 724FA6A41CC039200092477B /* SystemConfiguration.framework in Frameworks */, 724FA6A51CC039200092477B /* libcups_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6B11CC0393E0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284D81CC124E300E517C7 /* libcupscgi_static.a in Frameworks */, 724FA6B21CC0393E0092477B /* libcups_static.a in Frameworks */, 724FA6B31CC0393E0092477B /* CoreFoundation.framework in Frameworks */, 724FA6B41CC0393E0092477B /* Kerberos.framework in Frameworks */, 724FA6B51CC0393E0092477B /* libiconv.dylib in Frameworks */, 724FA6B61CC0393E0092477B /* libresolv.dylib in Frameworks */, 724FA6B71CC0393E0092477B /* libz.dylib in Frameworks */, 724FA6B81CC0393E0092477B /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6C61CC0395A0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284DB1CC1251F00E517C7 /* libcupscgi_static.a in Frameworks */, 724FA6C71CC0395A0092477B /* libcups_static.a in Frameworks */, 724FA6C81CC0395A0092477B /* CoreFoundation.framework in Frameworks */, 724FA6C91CC0395A0092477B /* Kerberos.framework in Frameworks */, 724FA6CA1CC0395A0092477B /* Security.framework in Frameworks */, 724FA6CB1CC0395A0092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6DF1CC039DE0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA6E01CC039DE0092477B /* libcups_static.a in Frameworks */, 724FA6E11CC039DE0092477B /* CoreFoundation.framework in Frameworks */, 724FA6E21CC039DE0092477B /* Kerberos.framework in Frameworks */, 724FA6E31CC039DE0092477B /* Security.framework in Frameworks */, 724FA6E41CC039DE0092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6F41CC03A210092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 271284D91CC124F000E517C7 /* libcupsppdc_static.a in Frameworks */, 724FA6F51CC03A210092477B /* libcups_static.a in Frameworks */, 724FA6F61CC03A210092477B /* CoreFoundation.framework in Frameworks */, 724FA6F71CC03A210092477B /* Kerberos.framework in Frameworks */, 724FA6F81CC03A210092477B /* Security.framework in Frameworks */, 724FA6F91CC03A210092477B /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7081CC03A490092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7171CC03A990092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7371CC03AAF0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7481CC03ACC0092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 724FA7491CC03ACC0092477B /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7641CC03AF60092477B /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 7258EADF134594C4009286F1 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 7258EAF413459B6D009286F1 /* libcups.dylib in Frameworks */, 7258EAF513459B6D009286F1 /* libcupsimage.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 726AD6F4135E88F0002C930D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 279AE6F52395B80F004DD600 /* libpam.tbd in Frameworks */, 273B1ECA226B420C00428143 /* libcups.dylib in Frameworks */, 2767FC6619267538000F61D3 /* CoreFoundation.framework in Frameworks */, 2767FC6719267538000F61D3 /* libresolv.dylib in Frameworks */, 2767FC6819267538000F61D3 /* libz.dylib in Frameworks */, 2767FC6919267538000F61D3 /* Security.framework in Frameworks */, 2767FC6A19267538000F61D3 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 729181B3201155C1005E7560 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 729181B4201155C1005E7560 /* libcupsimage_static.a in Frameworks */, 729181B5201155C1005E7560 /* libcups_static.a in Frameworks */, 729181B6201155C1005E7560 /* CoreFoundation.framework in Frameworks */, 729181B7201155C1005E7560 /* Kerberos.framework in Frameworks */, 729181B8201155C1005E7560 /* Security.framework in Frameworks */, 729181B9201155C1005E7560 /* SystemConfiguration.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72CF95EB18A19134000FCAE4 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72CF95EC18A19134000FCAE4 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72F75A4F1336F950004BB496 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 276683E51337B2BE000D33D0 /* libcupsimage.dylib in Frameworks */, 276683E21337B29C000D33D0 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 72F75A5E1336F9A3004BB496 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 72F75A671336FA38004BB496 /* libcups.dylib in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 2712867F1CC1394100E517C7 /* monitors */ = { isa = PBXGroup; children = ( 271286801CC1396100E517C7 /* bcp.c */, 271286811CC1396100E517C7 /* tbcp.c */, ); name = monitors; sourceTree = ""; }; 271286821CC13D7600E517C7 /* tools */ = { isa = PBXGroup; children = ( 2712871D1CC140B400E517C7 /* genstrings.cxx */, 271286831CC13D9600E517C7 /* checkpo.c */, 271286841CC13D9600E517C7 /* cups.pot */, 271287191CC13FDB00E517C7 /* mantohtml.c */, 271286851CC13D9600E517C7 /* po2strings.c */, ); name = tools; sourceTree = ""; }; 273BF6B81333B4A90022CAAB /* tests */ = { isa = PBXGroup; children = ( 2712866A1CC130FF00E517C7 /* rasterbench.c */, 724FA65B1CC0389F0092477B /* test1284.c */, 727EF041192E3544001EF690 /* testadmin.c */, 727EF042192E3544001EF690 /* testarray.c */, 724FA65C1CC0389F0092477B /* testbackend.c */, 727EF043192E3544001EF690 /* testcache.c */, 724FA6EC1CC03A1D0092477B /* testcatalog.cxx */, 727EF03D192E3498001EF690 /* testcgi.c */, 729181AB20115597005E7560 /* testclient.c */, 727EF044192E3544001EF690 /* testconflicts.c */, 270D02251D707E3700EA9403 /* testcreds.c */, 273BF6C61333B5370022CAAB /* testcups.c */, 2767FC5119266A36000F61D3 /* testdest.c */, 727EF045192E3544001EF690 /* testfile.c */, 727EF03E192E3498001EF690 /* testhi.c */, 278C58E2136B647200836530 /* testhttp.c */, 727EF046192E3544001EF690 /* testi18n.c */, 727EF047192E3544001EF690 /* testipp.c */, 727EF048192E3544001EF690 /* testlang.c */, 727EF04D192E3602001EF690 /* testlpd.c */, 270CCDBB135E3D3E00007BE2 /* testmime.c */, 724FA6D71CC039D00092477B /* testnotify.c */, 727EF049192E3544001EF690 /* testoptions.c */, 727EF04A192E3544001EF690 /* testppd.c */, 727EF04B192E3544001EF690 /* testpwg.c */, 27F89DA21B3AC43B00E5A4B7 /* testraster.c */, 727EF04C192E3544001EF690 /* testsnmp.c */, 727EF04E192E3602001EF690 /* testspeed.c */, 727EF04F192E3602001EF690 /* testsub.c */, 724FA65D1CC0389F0092477B /* testsupplies.c */, 727EF03F192E3498001EF690 /* testtemplate.c */, 274770E1234534660089BC31 /* testthreads.c */, 271286681CC130BD00E517C7 /* tlscheck.c */, ); name = tests; sourceTree = ""; wrapsLines = 1; }; 274FF5D513332C2C00317ECB /* daemon */ = { isa = PBXGroup; children = ( 274FF6351333344400317ECB /* cups-deviced.c */, 274FF5D613332CC700317ECB /* cups-driverd.cxx */, 274FF6491333398D00317ECB /* cups-exec.c */, 274FF65B133339FC00317ECB /* cups-lpd.c */, 274FF5D713332CC700317ECB /* util.c */, 274FF5D813332CC700317ECB /* util.h */, ); name = daemon; sourceTree = ""; wrapsLines = 1; }; 274FF5F41333310400317ECB /* libcupsppdc */ = { isa = PBXGroup; children = ( 274FF6091333315100317ECB /* ppdc.h */, 274FF5F51333315100317ECB /* ppdc-array.cxx */, 274FF5F61333315100317ECB /* ppdc-attr.cxx */, 274FF5F71333315100317ECB /* ppdc-catalog.cxx */, 274FF5F81333315100317ECB /* ppdc-choice.cxx */, 274FF5F91333315100317ECB /* ppdc-constraint.cxx */, 274FF5FA1333315100317ECB /* ppdc-driver.cxx */, 274FF5FB1333315100317ECB /* ppdc-file.cxx */, 274FF5FC1333315100317ECB /* ppdc-filter.cxx */, 274FF5FD1333315100317ECB /* ppdc-font.cxx */, 274FF5FE1333315100317ECB /* ppdc-group.cxx */, 274FF5FF1333315100317ECB /* ppdc-import.cxx */, 274FF6001333315100317ECB /* ppdc-mediasize.cxx */, 274FF6011333315100317ECB /* ppdc-message.cxx */, 274FF6021333315100317ECB /* ppdc-option.cxx */, 274FF6031333315100317ECB /* ppdc-private.h */, 274FF6041333315100317ECB /* ppdc-profile.cxx */, 274FF6051333315100317ECB /* ppdc-shared.cxx */, 274FF6061333315100317ECB /* ppdc-source.cxx */, 274FF6071333315100317ECB /* ppdc-string.cxx */, 274FF6081333315100317ECB /* ppdc-variable.cxx */, ); name = libcupsppdc; sourceTree = ""; wrapsLines = 1; }; 274FF67313333B0A00317ECB /* commands */ = { isa = PBXGroup; children = ( 2732E089137A3F5200FAFEF6 /* cancel.c */, 2732E08A137A3F5200FAFEF6 /* cupsaccept.c */, 276683681337AA00000D33D0 /* cupsctl.c */, 274FF68713333B6E00317ECB /* cupsfilter.c */, 72F75A5B1336F988004BB496 /* cupstestppd.c */, 273B1EBD226B3EE300428143 /* ippevecommon.h */, 273B1EBE226B3EE300428143 /* ippevepcl.c */, 726AD701135E8A90002C930D /* ippeveprinter.c */, 273B1EBC226B3EE300428143 /* ippeveps.c */, 72CF95F218A19165000FCAE4 /* ippfind.c */, 276683F91337F7A9000D33D0 /* ipptool.c */, 2732E08C137A3F5200FAFEF6 /* lp.c */, 2732E08D137A3F5200FAFEF6 /* lpadmin.c */, 271284DD1CC125FC00E517C7 /* lpc.c */, 2732E08E137A3F5200FAFEF6 /* lpinfo.c */, 2732E08F137A3F5200FAFEF6 /* lpmove.c */, 2732E090137A3F5200FAFEF6 /* lpoptions.c */, 271284DE1CC125FC00E517C7 /* lpq.c */, 271284DF1CC125FC00E517C7 /* lpr.c */, 271284E01CC125FC00E517C7 /* lprm.c */, 2732E092137A3F5200FAFEF6 /* lpstat.c */, ); name = commands; sourceTree = ""; wrapsLines = 1; }; 276683CB1337B1CC000D33D0 /* ppdc tools */ = { isa = PBXGroup; children = ( 276683CC1337B201000D33D0 /* ppdc.cxx */, 276683CE1337B20D000D33D0 /* ppdhtml.cxx */, 276683D01337B21A000D33D0 /* ppdi.cxx */, 276683D21337B228000D33D0 /* ppdmerge.cxx */, 276683D41337B237000D33D0 /* ppdpo.cxx */, ); name = "ppdc tools"; sourceTree = ""; wrapsLines = 1; }; 72220EAF1333047D00FCA411 /* Products */ = { isa = PBXGroup; children = ( 72220F5B13330A5A00FCA411 /* cupsd */, 274FF5CC13332B1F00317ECB /* cups-driverd */, 274FF6291333333600317ECB /* cups-deviced */, 274FF63E1333358B00317ECB /* cups-exec */, 274FF64F133339C400317ECB /* cups-lpd */, 274FF67813333B2F00317ECB /* cupsfilter */, 273BF6BD1333B5000022CAAB /* testcups */, 724378FD1333E43E009631B9 /* ipp */, 724379181333E532009631B9 /* lpd */, 724379301333FB85009631B9 /* socket */, 724379471333FEA9009631B9 /* dnssd */, 7243795B1333FF1D009631B9 /* usb */, 72F75A521336F950004BB496 /* cupstestppd */, 2766835C1337A9B6000D33D0 /* cupsctl */, 276683701337AC79000D33D0 /* ppdc */, 2766837D1337AC8C000D33D0 /* ppdhtml */, 2766838A1337AC97000D33D0 /* ppdi */, 276683971337ACA2000D33D0 /* ppdmerge */, 276683A41337ACAB000D33D0 /* ppdpo */, 276683F01337F78E000D33D0 /* ipptool */, 7258EAE2134594C4009286F1 /* rastertopwg */, 720DD6C21358FD5F0064AA82 /* snmp */, 270CCDA7135E3C9E00007BE2 /* testmime */, 726AD6F7135E88F0002C930D /* ippeveprinter */, 278C58CB136B640300836530 /* testhttp */, 72A4332F155844CF002E172D /* libcups_static.a */, 72CF95F118A19134000FCAE4 /* ipptool copy */, 2767FC5019266A0D000F61D3 /* testdest */, 27A0347B1A8BDB1300650675 /* lpadmin */, 2706965A1CADF3E200FFE5FB /* libcups_ios.a */, 724FA5351CC0370C0092477B /* testadmin */, 724FA5481CC037370092477B /* testarray */, 724FA55B1CC037500092477B /* testcache */, 724FA56E1CC037670092477B /* testconflicts */, 724FA5811CC037810092477B /* testfile */, 724FA5941CC037980092477B /* testi18n */, 724FA5A71CC037AA0092477B /* testipp */, 724FA5BA1CC037C60092477B /* testlang */, 724FA5CD1CC037D90092477B /* testlpd */, 724FA5E11CC037F00092477B /* testoptions */, 724FA5F51CC038040092477B /* testppd */, 724FA6091CC038190092477B /* testpwg */, 724FA61D1CC0382B0092477B /* testraster */, 724FA6311CC038410092477B /* testsnmp */, 724FA6451CC038560092477B /* testspeed */, 724FA6591CC0386E0092477B /* testsub */, 724FA6701CC038A50092477B /* test1284 */, 724FA6831CC038BD0092477B /* testbackend */, 724FA6971CC038D90092477B /* testsupplies */, 724FA6AA1CC039200092477B /* testcgi */, 724FA6BD1CC0393E0092477B /* testhi */, 724FA6D11CC0395A0092477B /* testtemplate */, 724FA6EA1CC039DE0092477B /* testnotify */, 724FA6FF1CC03A210092477B /* testcatalog */, 724FA70F1CC03A490092477B /* libcupsimage_static.a */, 724FA71F1CC03A990092477B /* libcupsmime_static.a */, 724FA7401CC03AAF0092477B /* libcupsppdc_static.a */, 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */, 724FA76B1CC03AF60092477B /* libcupscgi_static.a */, 271284EC1CC1261900E517C7 /* cancel */, 271284F91CC1264B00E517C7 /* cupsaccept */, 271285131CC1267A00E517C7 /* lp */, 271285201CC1269700E517C7 /* lpc */, 2712852D1CC126AA00E517C7 /* lpinfo */, 2712853A1CC1270B00E517C7 /* lpmove */, 271285471CC1271E00E517C7 /* lpoptions */, 271285541CC1272D00E517C7 /* lpq */, 271285611CC1274300E517C7 /* lpr */, 2712856E1CC1275200E517C7 /* lprm */, 2712857B1CC1276400E517C7 /* lpstat */, 271285A01CC12D1300E517C7 /* admin.cgi */, 271285AF1CC12D3A00E517C7 /* classes.cgi */, 271285BD1CC12D4E00E517C7 /* jobs.cgi */, 271285CB1CC12D5E00E517C7 /* printers.cgi */, 271285D81CC12DBF00E517C7 /* commandtops */, 271285E51CC12DDF00E517C7 /* gziptoany */, 271285F21CC12E2E00E517C7 /* pstops */, 271286001CC12EEB00E517C7 /* rastertoepson */, 271286131CC12F0B00E517C7 /* rastertohp */, 271286231CC12F1A00E517C7 /* rastertolabel */, 271286671CC1309000E517C7 /* tlscheck */, 2712867D1CC1310E00E517C7 /* rasterbench */, 271286961CC13DC000E517C7 /* checkpo */, 271286A71CC13DF100E517C7 /* po2strings */, 271286B81CC13DFF00E517C7 /* strings2po */, 271286C91CC13E2100E517C7 /* bcp */, 271286D91CC13E5B00E517C7 /* tbcp */, 271286F31CC13F2000E517C7 /* mailto */, 271287031CC13F3F00E517C7 /* rss */, 271287181CC13FAB00E517C7 /* mantohtml */, 2712872C1CC140BE00E517C7 /* genstrings */, 270D02241D707E0200EA9403 /* testcreds */, 729181BE201155C1005E7560 /* testclient */, 273B1EAA226B3E4800428143 /* ippevepcl */, 273B1EBB226B3E5200428143 /* ippeveps */, 274770E02345342B0089BC31 /* testthreads */, ); name = Products; sourceTree = ""; }; 72220EB41333050100FCA411 /* libcups */ = { isa = PBXGroup; children = ( 72220EB51333052D00FCA411 /* adminutil.c */, 72220EB81333056300FCA411 /* array.c */, 72220EBB1333056300FCA411 /* auth.c */, 72220EBC1333056300FCA411 /* backchannel.c */, 72220EBD1333056300FCA411 /* backend.c */, 276683561337A8C5000D33D0 /* cups.strings */, 722A24EE2178D00C000CAB20 /* debug-internal.h */, 72220ED1133305BB00FCA411 /* debug.c */, 72CF95E018A13543000FCAE4 /* dest-job.c */, 72CF95E118A13543000FCAE4 /* dest-localization.c */, 72CF95E218A13543000FCAE4 /* dest-options.c */, 72220ED2133305BB00FCA411 /* dest.c */, 72220ED3133305BB00FCA411 /* dir.c */, 72220ED4133305BB00FCA411 /* dir.h */, 72220ED6133305BB00FCA411 /* encode.c */, 72220ED8133305BB00FCA411 /* file.c */, 72220EDA133305BB00FCA411 /* getdevices.c */, 72220EDB133305BB00FCA411 /* getifaddrs.c */, 72220EDC133305BB00FCA411 /* getputfile.c */, 72220EDD133305BB00FCA411 /* globals.c */, 7284F9EF1BFCCD940026F886 /* hash.c */, 72220EDE133305BB00FCA411 /* http-addr.c */, 72220EDF133305BB00FCA411 /* http-addrlist.c */, 72220EE1133305BB00FCA411 /* http-support.c */, 72220EE2133305BB00FCA411 /* http.c */, 720E854120164E7A00C6C411 /* ipp-file.c */, 72220EE5133305BB00FCA411 /* ipp-support.c */, 720E854220164E7A00C6C411 /* ipp-vars.c */, 72220EE6133305BB00FCA411 /* ipp.c */, 72220EE8133305BB00FCA411 /* langprintf.c */, 72220EEA133305BB00FCA411 /* language.c */, 27D3037D134148CB00F022B1 /* libcups2.def */, 72220EEE133305BB00FCA411 /* md5-internal.h */, 72220EEF133305BB00FCA411 /* md5.c */, 72220EF0133305BB00FCA411 /* md5passwd.c */, 72220EF1133305BB00FCA411 /* notify.c */, 72220EF2133305BB00FCA411 /* options.c */, 72220EBA1333056300FCA411 /* ppd-attr.c */, 72220EF4133305BB00FCA411 /* ppd-cache.c */, 72220EBF1333056300FCA411 /* ppd-conflicts.c */, 72220EC21333056300FCA411 /* ppd-custom.c */, 72220ED5133305BB00FCA411 /* ppd-emit.c */, 72220EEC133305BB00FCA411 /* ppd-localize.c */, 72220EED133305BB00FCA411 /* ppd-mark.c */, 72220EF3133305BB00FCA411 /* ppd-page.c */, 72A8B3D61C188BDE00A1A547 /* ppd-util.c */, 72220EF6133305BB00FCA411 /* ppd.c */, 72220EF8133305BB00FCA411 /* pwg-media.c */, 72F75A691336FA8A004BB496 /* raster-error.c */, 72F75A6A1336FA8A004BB496 /* raster-interpret.c */, 72F75A6B1336FA8A004BB496 /* raster-stream.c */, 72220EFB133305BB00FCA411 /* request.c */, 72220EFC133305BB00FCA411 /* sidechannel.c */, 72220EFF133305BB00FCA411 /* snmp.c */, 72220F00133305BB00FCA411 /* snprintf.c */, 72220F02133305BB00FCA411 /* string.c */, 72220F03133305BB00FCA411 /* tempfile.c */, 72220F05133305BB00FCA411 /* thread.c */, 27F9A76E28CBFC03002CCEE0 /* tls-darwin.h */, 270B267D17F5C06700C8A3A9 /* tls-darwin.c */, 270B267E17F5C06700C8A3A9 /* tls-gnutls.c */, 27F9A76D28CBFC03002CCEE0 /* tls-openssl.c */, 270B268117F5C5D600C8A3A9 /* tls-sspi.c */, 727AD5B619100A58009F6862 /* tls.c */, 72220F06133305BB00FCA411 /* transcode.c */, 72220F08133305BB00FCA411 /* usersys.c */, 72220F09133305BB00FCA411 /* util.c */, ); name = libcups; sourceTree = ""; wrapsLines = 1; }; 72220F45133305D000FCA411 /* Public Headers */ = { isa = PBXGroup; children = ( 72220EB71333056300FCA411 /* adminutil.h */, 72220EB91333056300FCA411 /* array.h */, 72220EBE1333056300FCA411 /* backend.h */, 72220EC11333056300FCA411 /* cups.h */, 72220ED9133305BB00FCA411 /* file.h */, 72220EE3133305BB00FCA411 /* http.h */, 72220EE7133305BB00FCA411 /* ipp.h */, 72220EEB133305BB00FCA411 /* language.h */, 72220EF7133305BB00FCA411 /* ppd.h */, 2767FC7519269687000F61D3 /* pwg.h */, 72220EFA133305BB00FCA411 /* raster.h */, 72220EFD133305BB00FCA411 /* sidechannel.h */, 72220F07133305BB00FCA411 /* transcode.h */, 72220F0A133305BB00FCA411 /* versioning.h */, ); name = "Public Headers"; sourceTree = ""; wrapsLines = 1; }; 72220F461333060C00FCA411 /* Private Headers */ = { isa = PBXGroup; children = ( 7234F41F1378A16F00D3E9C9 /* array-private.h */, 72220F471333063D00FCA411 /* config.h */, 72220EC01333056300FCA411 /* cups-private.h */, 722A24F22178D090000CAB20 /* debug-private.h */, 72220ED7133305BB00FCA411 /* file-private.h */, 72220EE0133305BB00FCA411 /* http-private.h */, 72220EE4133305BB00FCA411 /* ipp-private.h */, 72220EE9133305BB00FCA411 /* language-private.h */, 72220EF5133305BB00FCA411 /* ppd-private.h */, 72220EF9133305BB00FCA411 /* pwg-private.h */, 2767FC76192696A0000F61D3 /* raster-private.h */, 72220EFE133305BB00FCA411 /* snmp-private.h */, 72220F01133305BB00FCA411 /* string-private.h */, 72220F04133305BB00FCA411 /* thread-private.h */, ); name = "Private Headers"; sourceTree = ""; wrapsLines = 1; }; 72220F5D13330A5A00FCA411 /* cupsd */ = { isa = PBXGroup; children = ( 72E65BDC18DC852700097E89 /* Makefile */, 7226369B18AE6D19004ED309 /* org.cups.cups-lpd.plist */, 72E65BD518DC818400097E89 /* org.cups.cups-lpd.plist.in */, 7226369C18AE6D19004ED309 /* org.cups.cupsd.plist */, 72220F6913330B0C00FCA411 /* auth.c */, 72220F6A13330B0C00FCA411 /* auth.h */, 72220F6B13330B0C00FCA411 /* banners.c */, 72220F6C13330B0C00FCA411 /* banners.h */, 72220F6D13330B0C00FCA411 /* cert.c */, 72220F6E13330B0C00FCA411 /* cert.h */, 72220F6F13330B0C00FCA411 /* classes.c */, 72220F7013330B0C00FCA411 /* classes.h */, 72220F7113330B0C00FCA411 /* client.c */, 72220F7213330B0C00FCA411 /* client.h */, 72D53A3615B4929D003F877F /* colorman.c */, 72D53A3715B4929D003F877F /* colorman.h */, 72220F7313330B0C00FCA411 /* conf.c */, 72220F7413330B0C00FCA411 /* conf.h */, 72220F7513330B0C00FCA411 /* cupsd.h */, 72220F7613330B0C00FCA411 /* dirsvc.c */, 72220F7713330B0C00FCA411 /* dirsvc.h */, 72220F7813330B0C00FCA411 /* env.c */, 72C16CB8137B195D007E4BF4 /* file.c */, 72220F7913330B0C00FCA411 /* ipp.c */, 72220F7A13330B0C00FCA411 /* job.c */, 72220F7B13330B0C00FCA411 /* job.h */, 72220F7C13330B0C00FCA411 /* listen.c */, 72220F7D13330B0C00FCA411 /* log.c */, 72220F7E13330B0C00FCA411 /* main.c */, 72220F7F13330B0C00FCA411 /* network.c */, 72220F8013330B0C00FCA411 /* network.h */, 72220F8113330B0C00FCA411 /* policy.c */, 72220F8213330B0C00FCA411 /* policy.h */, 72220F8313330B0C00FCA411 /* printers.c */, 72220F8413330B0C00FCA411 /* printers.h */, 72220F8513330B0C00FCA411 /* process.c */, 72220F8613330B0C00FCA411 /* quotas.c */, 72220F8813330B0C00FCA411 /* select.c */, 72220F8913330B0C00FCA411 /* server.c */, 72220F8A13330B0C00FCA411 /* statbuf.c */, 72220F8B13330B0C00FCA411 /* statbuf.h */, 72220F8C13330B0C00FCA411 /* subscriptions.c */, 72220F8D13330B0C00FCA411 /* subscriptions.h */, 72220F8E13330B0C00FCA411 /* sysman.c */, 72220F8F13330B0C00FCA411 /* sysman.h */, ); name = cupsd; path = .; sourceTree = ""; wrapsLines = 1; }; 72220FB013330B3400FCA411 /* libcupsmime */ = { isa = PBXGroup; children = ( 72220FB413330BCE00FCA411 /* mime.h */, 7271883C1374AB14001A2036 /* mime-private.h */, 72220FB213330BCE00FCA411 /* filter.c */, 72220FB313330BCE00FCA411 /* mime.c */, 72220FB513330BCE00FCA411 /* type.c */, ); name = libcupsmime; sourceTree = ""; wrapsLines = 1; }; 72220FB113330B4A00FCA411 /* Frameworks */ = { isa = PBXGroup; children = ( 279AE6F42395B80F004DD600 /* libpam.tbd */, 2767FC591926750C000F61D3 /* CoreFoundation.framework */, 2767FC5A1926750C000F61D3 /* libiconv.dylib */, 2767FC5B1926750C000F61D3 /* libresolv.dylib */, 2767FC5C1926750C000F61D3 /* libz.dylib */, 2767FC5D1926750C000F61D3 /* Security.framework */, 2767FC5E1926750C000F61D3 /* SystemConfiguration.framework */, 72D53A3915B492FA003F877F /* libpam.dylib */, 72D53A3315B4925B003F877F /* ApplicationServices.framework */, 72D53A2C15B4913D003F877F /* IOKit.framework */, 72D53A2915B49110003F877F /* GSS.framework */, 728FB7EF1536167A005426E1 /* libiconv.dylib */, 728FB7F01536167A005426E1 /* libresolv.dylib */, 728FB7EC1536161C005426E1 /* libz.dylib */, 278C58E5136B64AF00836530 /* CoreFoundation.framework */, 278C58E6136B64B000836530 /* Kerberos.framework */, 278C58E7136B64B000836530 /* Security.framework */, 278C58E8136B64B000836530 /* SystemConfiguration.framework */, 72220EAE1333047D00FCA411 /* libcups.dylib */, 72F75A611336F9A3004BB496 /* libcupsimage.dylib */, 72220FAC13330B2200FCA411 /* libcupsmime.dylib */, 274FF5EE133330C800317ECB /* libcupsppdc.dylib */, ); name = Frameworks; sourceTree = ""; }; 724378F71333E3CE009631B9 /* backends */ = { isa = PBXGroup; children = ( 724379091333E4E3009631B9 /* backend-private.h */, 724379501333FEBB009631B9 /* dnssd.c */, 724379CA1334000E009631B9 /* ieee1284.c */, 7243790A1333E4E3009631B9 /* ipp.c */, 724379281333E952009631B9 /* lpd.c */, 7243790B1333E4E3009631B9 /* network.c */, 724379121333E516009631B9 /* runloop.c */, 7243790C1333E4E3009631B9 /* snmp-supplies.c */, 720DD6D21358FDDE0064AA82 /* snmp.c */, 7243793C1333FD19009631B9 /* socket.c */, 724379C51333FFC7009631B9 /* usb.c */, 724379C41333FFC7009631B9 /* usb-darwin.c */, 72FC29CF1A37A1CA00BDF935 /* usb-libusb.c */, 72FC29D01A37A1CA00BDF935 /* usb-unix.c */, 72F7F1D719D1C0CC00870B09 /* org.cups.usb-quirks */, ); name = backends; sourceTree = ""; wrapsLines = 1; }; 724FA6D31CC0399D0092477B /* notifiers */ = { isa = PBXGroup; children = ( 724FA6D41CC039D00092477B /* dbus.c */, 724FA6D51CC039D00092477B /* mailto.c */, 724FA6D61CC039D00092477B /* rss.c */, ); name = notifiers; sourceTree = ""; }; 7258EADC134594A8009286F1 /* filters */ = { isa = PBXGroup; children = ( 7271881713746EA8001A2036 /* commandtops.c */, 7271881813746EA8001A2036 /* common.c */, 7271881913746EA8001A2036 /* common.h */, 7271881A13746EA8001A2036 /* gziptoany.c */, 7271882013746EA8001A2036 /* pstops.c */, 7271882113746EA8001A2036 /* rastertoepson.c */, 7271882213746EA8001A2036 /* rastertohp.c */, 7271882313746EA8001A2036 /* rastertolabel.c */, 7258EAEC134594EB009286F1 /* rastertopwg.c */, ); name = filters; sourceTree = ""; wrapsLines = 1; }; 727EF02E192E3461001EF690 /* cgi-bin */ = { isa = PBXGroup; children = ( 727EF02F192E3498001EF690 /* admin.c */, 727EF030192E3498001EF690 /* cgi-private.h */, 727EF031192E3498001EF690 /* cgi.h */, 727EF032192E3498001EF690 /* classes.c */, 727EF033192E3498001EF690 /* help-index.c */, 727EF034192E3498001EF690 /* help-index.h */, 727EF035192E3498001EF690 /* help.c */, 727EF036192E3498001EF690 /* html.c */, 727EF037192E3498001EF690 /* ipp-var.c */, 727EF038192E3498001EF690 /* jobs.c */, 727EF03A192E3498001EF690 /* printers.c */, 727EF03B192E3498001EF690 /* search.c */, 727EF03C192E3498001EF690 /* template.c */, 727EF040192E3498001EF690 /* var.c */, ); name = "cgi-bin"; sourceTree = ""; }; 72BF96351333042100B1EAD7 = { isa = PBXGroup; children = ( 72E65BA218DC796500097E89 /* Autoconf Files */, 72E65BB818DC79F800097E89 /* Documentation */, 72220F45133305D000FCA411 /* Public Headers */, 72220F461333060C00FCA411 /* Private Headers */, 72220EB41333050100FCA411 /* libcups */, 72F75A681336FA42004BB496 /* libcupsimage */, 72220FB013330B3400FCA411 /* libcupsmime */, 274FF5F41333310400317ECB /* libcupsppdc */, 724378F71333E3CE009631B9 /* backends */, 727EF02E192E3461001EF690 /* cgi-bin */, 274FF67313333B0A00317ECB /* commands */, 72220F5D13330A5A00FCA411 /* cupsd */, 274FF5D513332C2C00317ECB /* daemon */, 7258EADC134594A8009286F1 /* filters */, 2712867F1CC1394100E517C7 /* monitors */, 724FA6D31CC0399D0092477B /* notifiers */, 276683CB1337B1CC000D33D0 /* ppdc tools */, 273BF6B81333B4A90022CAAB /* tests */, 271286821CC13D7600E517C7 /* tools */, 72220FB113330B4A00FCA411 /* Frameworks */, 72220EAF1333047D00FCA411 /* Products */, ); indentWidth = 2; sourceTree = ""; tabWidth = 8; wrapsLines = 1; }; 72E65BA218DC796500097E89 /* Autoconf Files */ = { isa = PBXGroup; children = ( 72E65BD918DC850A00097E89 /* Makefile */, 72E65BB718DC79CC00097E89 /* Makedefs.in */, 72E65BA318DC797E00097E89 /* configure.ac */, 7226369D18AE73BB004ED309 /* config.h.in */, 72E65BB618DC79CC00097E89 /* cups-config.in */, 72E65BA418DC799B00097E89 /* cups-common.m4 */, 72E65BA518DC799B00097E89 /* cups-compiler.m4 */, 72E65BA618DC799B00097E89 /* cups-defaults.m4 */, 72E65BA718DC799B00097E89 /* cups-directories.m4 */, 72E65BA818DC799B00097E89 /* cups-dnssd.m4 */, 72E65BA918DC799B00097E89 /* cups-gssapi.m4 */, 72E65BAA18DC799B00097E89 /* cups-largefile.m4 */, 72E65BAB18DC799B00097E89 /* cups-startup.m4 */, 72E65BAC18DC799B00097E89 /* cups-libtool.m4 */, 72E65BAD18DC799B00097E89 /* cups-manpages.m4 */, 72E65BAE18DC799B00097E89 /* cups-network.m4 */, 72E65BAF18DC799B00097E89 /* cups-opsys.m4 */, 72E65BB018DC799B00097E89 /* cups-pam.m4 */, 72E65BB118DC799B00097E89 /* cups-poll.m4 */, 72E65BB318DC799B00097E89 /* cups-sharedlibs.m4 */, 72E65BB518DC799B00097E89 /* cups-threads.m4 */, 27C89C902613E7C300A58F43 /* cups-tls.m4 */, ); name = "Autoconf Files"; sourceTree = ""; }; 72E65BB818DC79F800097E89 /* Documentation */ = { isa = PBXGroup; children = ( 274561481F545B2E000378E4 /* api-admin.header */, 274561491F545B2E000378E4 /* api-admin.shtml */, 72E65BC118DC7A6B00097E89 /* api-filter.header */, 72E65BC218DC7A6B00097E89 /* api-filter.shtml */, 72E65BC718DC7A6B00097E89 /* api-ppd.header */, 72E65BC818DC7A6B00097E89 /* api-ppd.shtml */, 72E65BCB18DC7A9800097E89 /* api-raster.header */, 72E65BCC18DC7A9800097E89 /* api-raster.shtml */, 72E65BDE18DCA35700097E89 /* CHANGES.md */, 72E65BDF18DCA35700097E89 /* CREDITS.md */, 274561471F545B2E000378E4 /* cupspm.md */, 72E65BB918DC7A3600097E89 /* doc */, 72E65BE018DCA35700097E89 /* INSTALL.md */, 72E65BE218DCA35700097E89 /* LICENSE */, 72E65BBA18DC7A3600097E89 /* man */, 72646E58203D0FCA00231A77 /* NOTICE */, 72E65BCD18DC7A9800097E89 /* postscript-driver.header */, 72E65BCE18DC7A9800097E89 /* postscript-driver.shtml */, 72E65BCF18DC7A9800097E89 /* ppd-compiler.header */, 72E65BD018DC7A9800097E89 /* ppd-compiler.shtml */, 72E65BD118DC7A9800097E89 /* raster-driver.header */, 72E65BD218DC7A9800097E89 /* raster-driver.shtml */, 72E65BE318DCA35700097E89 /* README.md */, 72E65BD318DC7A9800097E89 /* spec-ppd.header */, 72E65BD418DC7A9800097E89 /* spec-ppd.shtml */, ); name = Documentation; sourceTree = ""; }; 72F75A681336FA42004BB496 /* libcupsimage */ = { isa = PBXGroup; children = ( 7253C45C216ED51400494ADD /* raster-interstub.c */, 7253C45D216ED51500494ADD /* raster-stubs.c */, ); name = libcupsimage; sourceTree = ""; wrapsLines = 1; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ 2706963C1CADF3E200FFE5FB /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 2706963E1CADF3E200FFE5FB /* array.h in Headers */, 7253C469216ED5D400494ADD /* raster.h in Headers */, 722A24F42178D091000CAB20 /* debug-private.h in Headers */, 270696401CADF3E200FFE5FB /* cups-private.h in Headers */, 7253C471216ED6C400494ADD /* array-private.h in Headers */, 270696421CADF3E200FFE5FB /* file-private.h in Headers */, 270696431CADF3E200FFE5FB /* http-private.h in Headers */, 270696441CADF3E200FFE5FB /* ipp-private.h in Headers */, 270696451CADF3E200FFE5FB /* language-private.h in Headers */, 270696461CADF3E200FFE5FB /* md5-internal.h in Headers */, 270696481CADF3E200FFE5FB /* pwg-private.h in Headers */, 2706964A1CADF3E200FFE5FB /* string-private.h in Headers */, 7253C46C216ED5E500494ADD /* raster-private.h in Headers */, 2706964B1CADF3E200FFE5FB /* thread-private.h in Headers */, 2706964C1CADF3E200FFE5FB /* config.h in Headers */, 2706964D1CADF3E200FFE5FB /* cups.h in Headers */, 722A24F02178D00D000CAB20 /* debug-internal.h in Headers */, 2706964E1CADF3E200FFE5FB /* dir.h in Headers */, 2706964F1CADF3E200FFE5FB /* file.h in Headers */, 270696501CADF3E200FFE5FB /* http.h in Headers */, 270696511CADF3E200FFE5FB /* ipp.h in Headers */, 270696521CADF3E200FFE5FB /* language.h in Headers */, 7253C470216ED69400494ADD /* pwg.h in Headers */, 270696551CADF3E200FFE5FB /* transcode.h in Headers */, 270696561CADF3E200FFE5FB /* versioning.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF5EC133330C800317ECB /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 274FF61E1333315100317ECB /* ppdc.h in Headers */, 274FF6181333315100317ECB /* ppdc-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF6C11333B1C400317ECB /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 722A24F52178D091000CAB20 /* debug-private.h in Headers */, 274FF6C61333B1C400317ECB /* dir.h in Headers */, 722A24F12178D00D000CAB20 /* debug-internal.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220EAC1333047D00FCA411 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 72220EC41333056300FCA411 /* adminutil.h in Headers */, 72220EC61333056300FCA411 /* array.h in Headers */, 72220ECB1333056300FCA411 /* backend.h in Headers */, 72220ECE1333056300FCA411 /* cups.h in Headers */, 7253C46B216ED5E400494ADD /* raster-private.h in Headers */, 72220F0E133305BB00FCA411 /* dir.h in Headers */, 72220F13133305BB00FCA411 /* file.h in Headers */, 72220F1D133305BB00FCA411 /* http.h in Headers */, 72220F21133305BB00FCA411 /* ipp.h in Headers */, 72220F25133305BB00FCA411 /* language.h in Headers */, 72220F31133305BB00FCA411 /* ppd.h in Headers */, 722A24F32178D091000CAB20 /* debug-private.h in Headers */, 72220F37133305BB00FCA411 /* sidechannel.h in Headers */, 72220F41133305BB00FCA411 /* transcode.h in Headers */, 72220F44133305BB00FCA411 /* versioning.h in Headers */, 7234F4201378A16F00D3E9C9 /* array-private.h in Headers */, 72220ECD1333056300FCA411 /* cups-private.h in Headers */, 72220F11133305BB00FCA411 /* file-private.h in Headers */, 72220F1A133305BB00FCA411 /* http-private.h in Headers */, 72220F1E133305BB00FCA411 /* ipp-private.h in Headers */, 72220F23133305BB00FCA411 /* language-private.h in Headers */, 7253C46F216ED69200494ADD /* pwg.h in Headers */, 72220F28133305BB00FCA411 /* md5-internal.h in Headers */, 72220F2F133305BB00FCA411 /* ppd-private.h in Headers */, 72220F33133305BB00FCA411 /* pwg-private.h in Headers */, 72220F38133305BB00FCA411 /* snmp-private.h in Headers */, 72220F3B133305BB00FCA411 /* string-private.h in Headers */, 72220F3E133305BB00FCA411 /* thread-private.h in Headers */, 722A24EF2178D00D000CAB20 /* debug-internal.h in Headers */, 72220F481333063D00FCA411 /* config.h in Headers */, 7253C468216ED5D300494ADD /* raster.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220FAA13330B2200FCA411 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 72220FB813330BCE00FCA411 /* mime.h in Headers */, 7271883D1374AB14001A2036 /* mime-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA70A1CC03A490092477B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7191CC03A990092477B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 724FA71A1CC03A990092477B /* mime.h in Headers */, 724FA71B1CC03A990092477B /* mime-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA73A1CC03AAF0092477B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 724FA73C1CC03AAF0092477B /* ppdc-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA74A1CC03ACC0092477B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 724FA76D1CC03B4D0092477B /* cgi.h in Headers */, 724FA76C1CC03B4D0092477B /* cgi-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7661CC03AF60092477B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 724FA7701CC03B820092477B /* cgi.h in Headers */, 724FA76F1CC03B820092477B /* cgi-private.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; 72F75A5F1336F9A3004BB496 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ 270695FD1CADF3E200FFE5FB /* libcups_ios */ = { isa = PBXNativeTarget; buildConfigurationList = 270696571CADF3E200FFE5FB /* Build configuration list for PBXNativeTarget "libcups_ios" */; buildPhases = ( 270695FE1CADF3E200FFE5FB /* Sources */, 270696331CADF3E200FFE5FB /* Frameworks */, 2706963C1CADF3E200FFE5FB /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcups_ios; productName = libcups; productReference = 2706965A1CADF3E200FFE5FB /* libcups_ios.a */; productType = "com.apple.product-type.library.dynamic"; }; 270CCDA6135E3C9E00007BE2 /* testmime */ = { isa = PBXNativeTarget; buildConfigurationList = 270CCDAF135E3C9E00007BE2 /* Build configuration list for PBXNativeTarget "testmime" */; buildPhases = ( 270CCDA3135E3C9E00007BE2 /* Sources */, 270CCDA4135E3C9E00007BE2 /* Frameworks */, 270CCDA5135E3C9E00007BE2 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284D61CC1234D00E517C7 /* PBXTargetDependency */, 270CCDB8135E3CFD00007BE2 /* PBXTargetDependency */, ); name = testmime; productName = testmime; productReference = 270CCDA7135E3C9E00007BE2 /* testmime */; productType = "com.apple.product-type.tool"; }; 270D02131D707E0200EA9403 /* testcreds */ = { isa = PBXNativeTarget; buildConfigurationList = 270D02211D707E0200EA9403 /* Build configuration list for PBXNativeTarget "testcreds" */; buildPhases = ( 270D02161D707E0200EA9403 /* Sources */, 270D02181D707E0200EA9403 /* Frameworks */, 270D02201D707E0200EA9403 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 270D02141D707E0200EA9403 /* PBXTargetDependency */, ); name = testcreds; productName = testhttp; productReference = 270D02241D707E0200EA9403 /* testcreds */; productType = "com.apple.product-type.tool"; }; 271284E11CC1261900E517C7 /* cancel */ = { isa = PBXNativeTarget; buildConfigurationList = 271284E91CC1261900E517C7 /* Build configuration list for PBXNativeTarget "cancel" */; buildPhases = ( 271284E41CC1261900E517C7 /* Sources */, 271284E61CC1261900E517C7 /* Frameworks */, 271284E81CC1261900E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284E21CC1261900E517C7 /* PBXTargetDependency */, ); name = cancel; productName = cupsaddsmb; productReference = 271284EC1CC1261900E517C7 /* cancel */; productType = "com.apple.product-type.tool"; }; 271284EE1CC1264B00E517C7 /* cupsaccept */ = { isa = PBXNativeTarget; buildConfigurationList = 271284F61CC1264B00E517C7 /* Build configuration list for PBXNativeTarget "cupsaccept" */; buildPhases = ( 271284F11CC1264B00E517C7 /* Sources */, 271284F31CC1264B00E517C7 /* Frameworks */, 271284F51CC1264B00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284EF1CC1264B00E517C7 /* PBXTargetDependency */, ); name = cupsaccept; productName = cupsaddsmb; productReference = 271284F91CC1264B00E517C7 /* cupsaccept */; productType = "com.apple.product-type.tool"; }; 271285081CC1267A00E517C7 /* lp */ = { isa = PBXNativeTarget; buildConfigurationList = 271285101CC1267A00E517C7 /* Build configuration list for PBXNativeTarget "lp" */; buildPhases = ( 2712850B1CC1267A00E517C7 /* Sources */, 2712850D1CC1267A00E517C7 /* Frameworks */, 2712850F1CC1267A00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285091CC1267A00E517C7 /* PBXTargetDependency */, ); name = lp; productName = cupsaddsmb; productReference = 271285131CC1267A00E517C7 /* lp */; productType = "com.apple.product-type.tool"; }; 271285151CC1269700E517C7 /* lpc */ = { isa = PBXNativeTarget; buildConfigurationList = 2712851D1CC1269700E517C7 /* Build configuration list for PBXNativeTarget "lpc" */; buildPhases = ( 271285181CC1269700E517C7 /* Sources */, 2712851A1CC1269700E517C7 /* Frameworks */, 2712851C1CC1269700E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285161CC1269700E517C7 /* PBXTargetDependency */, ); name = lpc; productName = cupsaddsmb; productReference = 271285201CC1269700E517C7 /* lpc */; productType = "com.apple.product-type.tool"; }; 271285221CC126AA00E517C7 /* lpinfo */ = { isa = PBXNativeTarget; buildConfigurationList = 2712852A1CC126AA00E517C7 /* Build configuration list for PBXNativeTarget "lpinfo" */; buildPhases = ( 271285251CC126AA00E517C7 /* Sources */, 271285271CC126AA00E517C7 /* Frameworks */, 271285291CC126AA00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285231CC126AA00E517C7 /* PBXTargetDependency */, ); name = lpinfo; productName = cupsaddsmb; productReference = 2712852D1CC126AA00E517C7 /* lpinfo */; productType = "com.apple.product-type.tool"; }; 2712852F1CC1270B00E517C7 /* lpmove */ = { isa = PBXNativeTarget; buildConfigurationList = 271285371CC1270B00E517C7 /* Build configuration list for PBXNativeTarget "lpmove" */; buildPhases = ( 271285321CC1270B00E517C7 /* Sources */, 271285341CC1270B00E517C7 /* Frameworks */, 271285361CC1270B00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285301CC1270B00E517C7 /* PBXTargetDependency */, ); name = lpmove; productName = cupsaddsmb; productReference = 2712853A1CC1270B00E517C7 /* lpmove */; productType = "com.apple.product-type.tool"; }; 2712853C1CC1271E00E517C7 /* lpoptions */ = { isa = PBXNativeTarget; buildConfigurationList = 271285441CC1271E00E517C7 /* Build configuration list for PBXNativeTarget "lpoptions" */; buildPhases = ( 2712853F1CC1271E00E517C7 /* Sources */, 271285411CC1271E00E517C7 /* Frameworks */, 271285431CC1271E00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2712853D1CC1271E00E517C7 /* PBXTargetDependency */, ); name = lpoptions; productName = cupsaddsmb; productReference = 271285471CC1271E00E517C7 /* lpoptions */; productType = "com.apple.product-type.tool"; }; 271285491CC1272D00E517C7 /* lpq */ = { isa = PBXNativeTarget; buildConfigurationList = 271285511CC1272D00E517C7 /* Build configuration list for PBXNativeTarget "lpq" */; buildPhases = ( 2712854C1CC1272D00E517C7 /* Sources */, 2712854E1CC1272D00E517C7 /* Frameworks */, 271285501CC1272D00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2712854A1CC1272D00E517C7 /* PBXTargetDependency */, ); name = lpq; productName = cupsaddsmb; productReference = 271285541CC1272D00E517C7 /* lpq */; productType = "com.apple.product-type.tool"; }; 271285561CC1274300E517C7 /* lpr */ = { isa = PBXNativeTarget; buildConfigurationList = 2712855E1CC1274300E517C7 /* Build configuration list for PBXNativeTarget "lpr" */; buildPhases = ( 271285591CC1274300E517C7 /* Sources */, 2712855B1CC1274300E517C7 /* Frameworks */, 2712855D1CC1274300E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285571CC1274300E517C7 /* PBXTargetDependency */, ); name = lpr; productName = cupsaddsmb; productReference = 271285611CC1274300E517C7 /* lpr */; productType = "com.apple.product-type.tool"; }; 271285631CC1275200E517C7 /* lprm */ = { isa = PBXNativeTarget; buildConfigurationList = 2712856B1CC1275200E517C7 /* Build configuration list for PBXNativeTarget "lprm" */; buildPhases = ( 271285661CC1275200E517C7 /* Sources */, 271285681CC1275200E517C7 /* Frameworks */, 2712856A1CC1275200E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285641CC1275200E517C7 /* PBXTargetDependency */, ); name = lprm; productName = cupsaddsmb; productReference = 2712856E1CC1275200E517C7 /* lprm */; productType = "com.apple.product-type.tool"; }; 271285701CC1276400E517C7 /* lpstat */ = { isa = PBXNativeTarget; buildConfigurationList = 271285781CC1276400E517C7 /* Build configuration list for PBXNativeTarget "lpstat" */; buildPhases = ( 271285731CC1276400E517C7 /* Sources */, 271285751CC1276400E517C7 /* Frameworks */, 271285771CC1276400E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285711CC1276400E517C7 /* PBXTargetDependency */, ); name = lpstat; productName = cupsaddsmb; productReference = 2712857B1CC1276400E517C7 /* lpstat */; productType = "com.apple.product-type.tool"; }; 271285951CC12D1300E517C7 /* admin.cgi */ = { isa = PBXNativeTarget; buildConfigurationList = 2712859D1CC12D1300E517C7 /* Build configuration list for PBXNativeTarget "admin.cgi" */; buildPhases = ( 271285981CC12D1300E517C7 /* Sources */, 2712859A1CC12D1300E517C7 /* Frameworks */, 2712859C1CC12D1300E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285961CC12D1300E517C7 /* PBXTargetDependency */, ); name = admin.cgi; productName = cupsaddsmb; productReference = 271285A01CC12D1300E517C7 /* admin.cgi */; productType = "com.apple.product-type.tool"; }; 271285A31CC12D3A00E517C7 /* classes.cgi */ = { isa = PBXNativeTarget; buildConfigurationList = 271285AC1CC12D3A00E517C7 /* Build configuration list for PBXNativeTarget "classes.cgi" */; buildPhases = ( 271285A61CC12D3A00E517C7 /* Sources */, 271285A81CC12D3A00E517C7 /* Frameworks */, 271285AB1CC12D3A00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285A41CC12D3A00E517C7 /* PBXTargetDependency */, ); name = classes.cgi; productName = cupsaddsmb; productReference = 271285AF1CC12D3A00E517C7 /* classes.cgi */; productType = "com.apple.product-type.tool"; }; 271285B11CC12D4E00E517C7 /* jobs.cgi */ = { isa = PBXNativeTarget; buildConfigurationList = 271285BA1CC12D4E00E517C7 /* Build configuration list for PBXNativeTarget "jobs.cgi" */; buildPhases = ( 271285B41CC12D4E00E517C7 /* Sources */, 271285B61CC12D4E00E517C7 /* Frameworks */, 271285B91CC12D4E00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285B21CC12D4E00E517C7 /* PBXTargetDependency */, ); name = jobs.cgi; productName = cupsaddsmb; productReference = 271285BD1CC12D4E00E517C7 /* jobs.cgi */; productType = "com.apple.product-type.tool"; }; 271285BF1CC12D5E00E517C7 /* printers.cgi */ = { isa = PBXNativeTarget; buildConfigurationList = 271285C81CC12D5E00E517C7 /* Build configuration list for PBXNativeTarget "printers.cgi" */; buildPhases = ( 271285C21CC12D5E00E517C7 /* Sources */, 271285C41CC12D5E00E517C7 /* Frameworks */, 271285C71CC12D5E00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285C01CC12D5E00E517C7 /* PBXTargetDependency */, ); name = printers.cgi; productName = cupsaddsmb; productReference = 271285CB1CC12D5E00E517C7 /* printers.cgi */; productType = "com.apple.product-type.tool"; }; 271285CD1CC12DBF00E517C7 /* commandtops */ = { isa = PBXNativeTarget; buildConfigurationList = 271285D51CC12DBF00E517C7 /* Build configuration list for PBXNativeTarget "commandtops" */; buildPhases = ( 271285D01CC12DBF00E517C7 /* Sources */, 271285D21CC12DBF00E517C7 /* Frameworks */, 271285D41CC12DBF00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285CE1CC12DBF00E517C7 /* PBXTargetDependency */, ); name = commandtops; productName = cupsaddsmb; productReference = 271285D81CC12DBF00E517C7 /* commandtops */; productType = "com.apple.product-type.tool"; }; 271285DA1CC12DDF00E517C7 /* gziptoany */ = { isa = PBXNativeTarget; buildConfigurationList = 271285E21CC12DDF00E517C7 /* Build configuration list for PBXNativeTarget "gziptoany" */; buildPhases = ( 271285DD1CC12DDF00E517C7 /* Sources */, 271285DF1CC12DDF00E517C7 /* Frameworks */, 271285E11CC12DDF00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285DB1CC12DDF00E517C7 /* PBXTargetDependency */, ); name = gziptoany; productName = cupsaddsmb; productReference = 271285E51CC12DDF00E517C7 /* gziptoany */; productType = "com.apple.product-type.tool"; }; 271285E71CC12E2D00E517C7 /* pstops */ = { isa = PBXNativeTarget; buildConfigurationList = 271285EF1CC12E2D00E517C7 /* Build configuration list for PBXNativeTarget "pstops" */; buildPhases = ( 271285EA1CC12E2D00E517C7 /* Sources */, 271285EC1CC12E2D00E517C7 /* Frameworks */, 271285EE1CC12E2D00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285E81CC12E2D00E517C7 /* PBXTargetDependency */, ); name = pstops; productName = cupsaddsmb; productReference = 271285F21CC12E2E00E517C7 /* pstops */; productType = "com.apple.product-type.tool"; }; 271285F51CC12EEB00E517C7 /* rastertoepson */ = { isa = PBXNativeTarget; buildConfigurationList = 271285FD1CC12EEB00E517C7 /* Build configuration list for PBXNativeTarget "rastertoepson" */; buildPhases = ( 271285F81CC12EEB00E517C7 /* Sources */, 271285FA1CC12EEB00E517C7 /* Frameworks */, 271285FC1CC12EEB00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271285F61CC12EEB00E517C7 /* PBXTargetDependency */, ); name = rastertoepson; productName = cupsaddsmb; productReference = 271286001CC12EEB00E517C7 /* rastertoepson */; productType = "com.apple.product-type.tool"; }; 271286051CC12F0B00E517C7 /* rastertohp */ = { isa = PBXNativeTarget; buildConfigurationList = 271286101CC12F0B00E517C7 /* Build configuration list for PBXNativeTarget "rastertohp" */; buildPhases = ( 2712860A1CC12F0B00E517C7 /* Sources */, 2712860C1CC12F0B00E517C7 /* Frameworks */, 2712860F1CC12F0B00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286081CC12F0B00E517C7 /* PBXTargetDependency */, ); name = rastertohp; productName = cupsaddsmb; productReference = 271286131CC12F0B00E517C7 /* rastertohp */; productType = "com.apple.product-type.tool"; }; 271286151CC12F1A00E517C7 /* rastertolabel */ = { isa = PBXNativeTarget; buildConfigurationList = 271286201CC12F1A00E517C7 /* Build configuration list for PBXNativeTarget "rastertolabel" */; buildPhases = ( 2712861A1CC12F1A00E517C7 /* Sources */, 2712861C1CC12F1A00E517C7 /* Frameworks */, 2712861F1CC12F1A00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286181CC12F1A00E517C7 /* PBXTargetDependency */, ); name = rastertolabel; productName = cupsaddsmb; productReference = 271286231CC12F1A00E517C7 /* rastertolabel */; productType = "com.apple.product-type.tool"; }; 271286571CC1309000E517C7 /* tlscheck */ = { isa = PBXNativeTarget; buildConfigurationList = 271286641CC1309000E517C7 /* Build configuration list for PBXNativeTarget "tlscheck" */; buildPhases = ( 2712865A1CC1309000E517C7 /* Sources */, 2712865C1CC1309000E517C7 /* Frameworks */, 271286631CC1309000E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286581CC1309000E517C7 /* PBXTargetDependency */, ); name = tlscheck; productName = ippserver; productReference = 271286671CC1309000E517C7 /* tlscheck */; productType = "com.apple.product-type.tool"; }; 2712866B1CC1310E00E517C7 /* rasterbench */ = { isa = PBXNativeTarget; buildConfigurationList = 2712867A1CC1310E00E517C7 /* Build configuration list for PBXNativeTarget "rasterbench" */; buildPhases = ( 271286701CC1310E00E517C7 /* Sources */, 271286721CC1310E00E517C7 /* Frameworks */, 271286791CC1310E00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2712866E1CC1310E00E517C7 /* PBXTargetDependency */, ); name = rasterbench; productName = testmime; productReference = 2712867D1CC1310E00E517C7 /* rasterbench */; productType = "com.apple.product-type.tool"; }; 271286871CC13DC000E517C7 /* checkpo */ = { isa = PBXNativeTarget; buildConfigurationList = 271286931CC13DC000E517C7 /* Build configuration list for PBXNativeTarget "checkpo" */; buildPhases = ( 2712868A1CC13DC000E517C7 /* Sources */, 2712868C1CC13DC000E517C7 /* Frameworks */, 271286921CC13DC000E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286881CC13DC000E517C7 /* PBXTargetDependency */, ); name = checkpo; productName = testmime; productReference = 271286961CC13DC000E517C7 /* checkpo */; productType = "com.apple.product-type.tool"; }; 271286981CC13DF100E517C7 /* po2strings */ = { isa = PBXNativeTarget; buildConfigurationList = 271286A41CC13DF100E517C7 /* Build configuration list for PBXNativeTarget "po2strings" */; buildPhases = ( 2712869B1CC13DF100E517C7 /* Sources */, 2712869D1CC13DF100E517C7 /* Frameworks */, 271286A31CC13DF100E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286991CC13DF100E517C7 /* PBXTargetDependency */, ); name = po2strings; productName = testmime; productReference = 271286A71CC13DF100E517C7 /* po2strings */; productType = "com.apple.product-type.tool"; }; 271286A91CC13DFF00E517C7 /* strings2po */ = { isa = PBXNativeTarget; buildConfigurationList = 271286B51CC13DFF00E517C7 /* Build configuration list for PBXNativeTarget "strings2po" */; buildPhases = ( 271286AC1CC13DFF00E517C7 /* Sources */, 271286AE1CC13DFF00E517C7 /* Frameworks */, 271286B41CC13DFF00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286AA1CC13DFF00E517C7 /* PBXTargetDependency */, ); name = strings2po; productName = testmime; productReference = 271286B81CC13DFF00E517C7 /* strings2po */; productType = "com.apple.product-type.tool"; }; 271286BA1CC13E2100E517C7 /* bcp */ = { isa = PBXNativeTarget; buildConfigurationList = 271286C61CC13E2100E517C7 /* Build configuration list for PBXNativeTarget "bcp" */; buildPhases = ( 271286BD1CC13E2100E517C7 /* Sources */, 271286C01CC13E2100E517C7 /* Frameworks */, 271286C51CC13E2100E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286BB1CC13E2100E517C7 /* PBXTargetDependency */, ); name = bcp; productName = usb; productReference = 271286C91CC13E2100E517C7 /* bcp */; productType = "com.apple.product-type.tool"; }; 271286CB1CC13E5B00E517C7 /* tbcp */ = { isa = PBXNativeTarget; buildConfigurationList = 271286D61CC13E5B00E517C7 /* Build configuration list for PBXNativeTarget "tbcp" */; buildPhases = ( 271286CE1CC13E5B00E517C7 /* Sources */, 271286D01CC13E5B00E517C7 /* Frameworks */, 271286D51CC13E5B00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286CC1CC13E5B00E517C7 /* PBXTargetDependency */, ); name = tbcp; productName = usb; productReference = 271286D91CC13E5B00E517C7 /* tbcp */; productType = "com.apple.product-type.tool"; }; 271286E51CC13F2000E517C7 /* mailto */ = { isa = PBXNativeTarget; buildConfigurationList = 271286F01CC13F2000E517C7 /* Build configuration list for PBXNativeTarget "mailto" */; buildPhases = ( 271286E81CC13F2000E517C7 /* Sources */, 271286EA1CC13F2000E517C7 /* Frameworks */, 271286EF1CC13F2000E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286E61CC13F2000E517C7 /* PBXTargetDependency */, ); name = mailto; productName = usb; productReference = 271286F31CC13F2000E517C7 /* mailto */; productType = "com.apple.product-type.tool"; }; 271286F51CC13F3F00E517C7 /* rss */ = { isa = PBXNativeTarget; buildConfigurationList = 271287001CC13F3F00E517C7 /* Build configuration list for PBXNativeTarget "rss" */; buildPhases = ( 271286F81CC13F3F00E517C7 /* Sources */, 271286FA1CC13F3F00E517C7 /* Frameworks */, 271286FF1CC13F3F00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271286F61CC13F3F00E517C7 /* PBXTargetDependency */, ); name = rss; productName = usb; productReference = 271287031CC13F3F00E517C7 /* rss */; productType = "com.apple.product-type.tool"; }; 271287091CC13FAB00E517C7 /* mantohtml */ = { isa = PBXNativeTarget; buildConfigurationList = 271287151CC13FAB00E517C7 /* Build configuration list for PBXNativeTarget "mantohtml" */; buildPhases = ( 2712870C1CC13FAB00E517C7 /* Sources */, 2712870E1CC13FAB00E517C7 /* Frameworks */, 271287141CC13FAB00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2712870A1CC13FAB00E517C7 /* PBXTargetDependency */, ); name = mantohtml; productName = testmime; productReference = 271287181CC13FAB00E517C7 /* mantohtml */; productType = "com.apple.product-type.tool"; }; 2712871E1CC140BE00E517C7 /* genstrings */ = { isa = PBXNativeTarget; buildConfigurationList = 271287291CC140BE00E517C7 /* Build configuration list for PBXNativeTarget "genstrings" */; buildPhases = ( 271287231CC140BE00E517C7 /* Sources */, 271287251CC140BE00E517C7 /* Frameworks */, 271287281CC140BE00E517C7 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2712872F1CC140DF00E517C7 /* PBXTargetDependency */, 271287311CC140DF00E517C7 /* PBXTargetDependency */, ); name = genstrings; productName = ppdc; productReference = 2712872C1CC140BE00E517C7 /* genstrings */; productType = "com.apple.product-type.tool"; }; 273B1E9A226B3E4800428143 /* ippevepcl */ = { isa = PBXNativeTarget; buildConfigurationList = 273B1EA7226B3E4800428143 /* Build configuration list for PBXNativeTarget "ippevepcl" */; buildPhases = ( 273B1E9D226B3E4800428143 /* Sources */, 273B1E9F226B3E4800428143 /* Frameworks */, 273B1EA6226B3E4800428143 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 273B1EC6226B41E600428143 /* PBXTargetDependency */, ); name = ippevepcl; productName = ippserver; productReference = 273B1EAA226B3E4800428143 /* ippevepcl */; productType = "com.apple.product-type.tool"; }; 273B1EAB226B3E5200428143 /* ippeveps */ = { isa = PBXNativeTarget; buildConfigurationList = 273B1EB8226B3E5200428143 /* Build configuration list for PBXNativeTarget "ippeveps" */; buildPhases = ( 273B1EAE226B3E5200428143 /* Sources */, 273B1EB0226B3E5200428143 /* Frameworks */, 273B1EB7226B3E5200428143 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 273B1ECC226B421700428143 /* PBXTargetDependency */, ); name = ippeveps; productName = ippserver; productReference = 273B1EBB226B3E5200428143 /* ippeveps */; productType = "com.apple.product-type.tool"; }; 273BF6BC1333B5000022CAAB /* testcups */ = { isa = PBXNativeTarget; buildConfigurationList = 273BF6C31333B5000022CAAB /* Build configuration list for PBXNativeTarget "testcups" */; buildPhases = ( 273BF6B91333B5000022CAAB /* Sources */, 273BF6BA1333B5000022CAAB /* Frameworks */, 273BF6BB1333B5000022CAAB /* CopyFiles */, ); buildRules = ( ); dependencies = ( 273BF6C91333B5410022CAAB /* PBXTargetDependency */, ); name = testcups; productName = testcups; productReference = 273BF6BD1333B5000022CAAB /* testcups */; productType = "com.apple.product-type.tool"; }; 274770D12345342B0089BC31 /* testthreads */ = { isa = PBXNativeTarget; buildConfigurationList = 274770DD2345342B0089BC31 /* Build configuration list for PBXNativeTarget "testthreads" */; buildPhases = ( 274770D42345342B0089BC31 /* Sources */, 274770D62345342B0089BC31 /* Frameworks */, 274770DC2345342B0089BC31 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 274770D22345342B0089BC31 /* PBXTargetDependency */, ); name = testthreads; productName = testmime; productReference = 274770E02345342B0089BC31 /* testthreads */; productType = "com.apple.product-type.tool"; }; 274FF5CB13332B1F00317ECB /* cups-driverd */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF5D213332B1F00317ECB /* Build configuration list for PBXNativeTarget "cups-driverd" */; buildPhases = ( 274FF5C813332B1F00317ECB /* Sources */, 274FF5C913332B1F00317ECB /* Frameworks */, 274FF5CA13332B1F00317ECB /* CopyFiles */, ); buildRules = ( ); dependencies = ( 274FF5DC13332CF900317ECB /* PBXTargetDependency */, 274FF6201333316200317ECB /* PBXTargetDependency */, ); name = "cups-driverd"; productName = "cups-driverd"; productReference = 274FF5CC13332B1F00317ECB /* cups-driverd */; productType = "com.apple.product-type.tool"; }; 274FF5ED133330C800317ECB /* libcupsppdc */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF5EF133330C800317ECB /* Build configuration list for PBXNativeTarget "libcupsppdc" */; buildPhases = ( 274FF5EA133330C800317ECB /* Sources */, 274FF5EB133330C800317ECB /* Frameworks */, 274FF5EC133330C800317ECB /* Headers */, ); buildRules = ( ); dependencies = ( 274FF5F3133330FD00317ECB /* PBXTargetDependency */, ); name = libcupsppdc; productName = libcupsppdc; productReference = 274FF5EE133330C800317ECB /* libcupsppdc.dylib */; productType = "com.apple.product-type.library.dynamic"; }; 274FF6281333333600317ECB /* cups-deviced */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF62F1333333600317ECB /* Build configuration list for PBXNativeTarget "cups-deviced" */; buildPhases = ( 274FF6251333333600317ECB /* Sources */, 274FF6261333333600317ECB /* Frameworks */, 274FF6271333333600317ECB /* CopyFiles */, ); buildRules = ( ); dependencies = ( 274FF6341333335200317ECB /* PBXTargetDependency */, ); name = "cups-deviced"; productName = "cups-deviced"; productReference = 274FF6291333333600317ECB /* cups-deviced */; productType = "com.apple.product-type.tool"; }; 274FF63D1333358B00317ECB /* cups-exec */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF6441333358C00317ECB /* Build configuration list for PBXNativeTarget "cups-exec" */; buildPhases = ( 274FF63A1333358B00317ECB /* Sources */, 274FF63B1333358B00317ECB /* Frameworks */, 274FF63C1333358B00317ECB /* CopyFiles */, ); buildRules = ( ); dependencies = ( ); name = "cups-exec"; productName = "cups-exec"; productReference = 274FF63E1333358B00317ECB /* cups-exec */; productType = "com.apple.product-type.tool"; }; 274FF64E133339C400317ECB /* cups-lpd */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF655133339C400317ECB /* Build configuration list for PBXNativeTarget "cups-lpd" */; buildPhases = ( 274FF64B133339C400317ECB /* Sources */, 274FF64C133339C400317ECB /* Frameworks */, 274FF64D133339C400317ECB /* CopyFiles */, ); buildRules = ( ); dependencies = ( 274FF65A133339D900317ECB /* PBXTargetDependency */, ); name = "cups-lpd"; productName = "cups-lpd"; productReference = 274FF64F133339C400317ECB /* cups-lpd */; productType = "com.apple.product-type.tool"; }; 274FF67713333B2F00317ECB /* cupsfilter */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF67E13333B2F00317ECB /* Build configuration list for PBXNativeTarget "cupsfilter" */; buildPhases = ( 274FF67413333B2F00317ECB /* Sources */, 274FF67513333B2F00317ECB /* Frameworks */, 274FF67613333B2F00317ECB /* CopyFiles */, ); buildRules = ( ); dependencies = ( 274FF68213333B3C00317ECB /* PBXTargetDependency */, 274FF68413333B3C00317ECB /* PBXTargetDependency */, ); name = cupsfilter; productName = cupsfilter; productReference = 274FF67813333B2F00317ECB /* cupsfilter */; productType = "com.apple.product-type.tool"; }; 274FF6891333B1C400317ECB /* libcups_static */ = { isa = PBXNativeTarget; buildConfigurationList = 274FF6DD1333B1C400317ECB /* Build configuration list for PBXNativeTarget "libcups_static" */; buildPhases = ( 274FF68A1333B1C400317ECB /* Sources */, 274FF6B91333B1C400317ECB /* Frameworks */, 274FF6C11333B1C400317ECB /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcups_static; productName = libcups; productReference = 72A4332F155844CF002E172D /* libcups_static.a */; productType = "com.apple.product-type.library.dynamic"; }; 2766835B1337A9B6000D33D0 /* cupsctl */ = { isa = PBXNativeTarget; buildConfigurationList = 276683621337A9B6000D33D0 /* Build configuration list for PBXNativeTarget "cupsctl" */; buildPhases = ( 276683581337A9B6000D33D0 /* Sources */, 276683591337A9B6000D33D0 /* Frameworks */, 2766835A1337A9B6000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683661337A9D6000D33D0 /* PBXTargetDependency */, ); name = cupsctl; productName = cupsctl; productReference = 2766835C1337A9B6000D33D0 /* cupsctl */; productType = "com.apple.product-type.tool"; }; 2766836F1337AC79000D33D0 /* ppdc */ = { isa = PBXNativeTarget; buildConfigurationList = 276683761337AC79000D33D0 /* Build configuration list for PBXNativeTarget "ppdc" */; buildPhases = ( 2766836C1337AC79000D33D0 /* Sources */, 2766836D1337AC79000D33D0 /* Frameworks */, 2766836E1337AC79000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683AE1337ACF9000D33D0 /* PBXTargetDependency */, 276683B01337ACF9000D33D0 /* PBXTargetDependency */, ); name = ppdc; productName = ppdc; productReference = 276683701337AC79000D33D0 /* ppdc */; productType = "com.apple.product-type.tool"; }; 2766837C1337AC8C000D33D0 /* ppdhtml */ = { isa = PBXNativeTarget; buildConfigurationList = 276683831337AC8C000D33D0 /* Build configuration list for PBXNativeTarget "ppdhtml" */; buildPhases = ( 276683791337AC8C000D33D0 /* Sources */, 2766837A1337AC8C000D33D0 /* Frameworks */, 2766837B1337AC8C000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683B41337AD18000D33D0 /* PBXTargetDependency */, 276683B61337AD18000D33D0 /* PBXTargetDependency */, ); name = ppdhtml; productName = ppdhtml; productReference = 2766837D1337AC8C000D33D0 /* ppdhtml */; productType = "com.apple.product-type.tool"; }; 276683891337AC97000D33D0 /* ppdi */ = { isa = PBXNativeTarget; buildConfigurationList = 276683901337AC97000D33D0 /* Build configuration list for PBXNativeTarget "ppdi" */; buildPhases = ( 276683861337AC97000D33D0 /* Sources */, 276683871337AC97000D33D0 /* Frameworks */, 276683881337AC97000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683BC1337AE49000D33D0 /* PBXTargetDependency */, 276683BE1337AE49000D33D0 /* PBXTargetDependency */, ); name = ppdi; productName = ppdi; productReference = 2766838A1337AC97000D33D0 /* ppdi */; productType = "com.apple.product-type.tool"; }; 276683961337ACA2000D33D0 /* ppdmerge */ = { isa = PBXNativeTarget; buildConfigurationList = 2766839D1337ACA2000D33D0 /* Build configuration list for PBXNativeTarget "ppdmerge" */; buildPhases = ( 276683931337ACA2000D33D0 /* Sources */, 276683941337ACA2000D33D0 /* Frameworks */, 276683951337ACA2000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683C01337B1AD000D33D0 /* PBXTargetDependency */, 276683C21337B1AD000D33D0 /* PBXTargetDependency */, ); name = ppdmerge; productName = ppdmerge; productReference = 276683971337ACA2000D33D0 /* ppdmerge */; productType = "com.apple.product-type.tool"; }; 276683A31337ACAB000D33D0 /* ppdpo */ = { isa = PBXNativeTarget; buildConfigurationList = 276683AA1337ACAB000D33D0 /* Build configuration list for PBXNativeTarget "ppdpo" */; buildPhases = ( 276683A01337ACAB000D33D0 /* Sources */, 276683A11337ACAB000D33D0 /* Frameworks */, 276683A21337ACAB000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683C61337B1BC000D33D0 /* PBXTargetDependency */, 276683C81337B1BC000D33D0 /* PBXTargetDependency */, ); name = ppdpo; productName = ppdpo; productReference = 276683A41337ACAB000D33D0 /* ppdpo */; productType = "com.apple.product-type.tool"; }; 276683EF1337F78E000D33D0 /* ipptool */ = { isa = PBXNativeTarget; buildConfigurationList = 276683F61337F78F000D33D0 /* Build configuration list for PBXNativeTarget "ipptool" */; buildPhases = ( 276683EC1337F78E000D33D0 /* Sources */, 276683ED1337F78E000D33D0 /* Frameworks */, 276683EE1337F78E000D33D0 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683FC1337F7B3000D33D0 /* PBXTargetDependency */, ); name = ipptool; productName = ipptool; productReference = 276683F01337F78E000D33D0 /* ipptool */; productType = "com.apple.product-type.tool"; }; 2767FC4619266A0D000F61D3 /* testdest */ = { isa = PBXNativeTarget; buildConfigurationList = 2767FC4D19266A0D000F61D3 /* Build configuration list for PBXNativeTarget "testdest" */; buildPhases = ( 2767FC4919266A0D000F61D3 /* Sources */, 2767FC4B19266A0D000F61D3 /* Frameworks */, 2767FC4C19266A0D000F61D3 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 2767FC4719266A0D000F61D3 /* PBXTargetDependency */, ); name = testdest; productName = testcups; productReference = 2767FC5019266A0D000F61D3 /* testdest */; productType = "com.apple.product-type.tool"; }; 278C58CA136B640300836530 /* testhttp */ = { isa = PBXNativeTarget; buildConfigurationList = 278C58D3136B640300836530 /* Build configuration list for PBXNativeTarget "testhttp" */; buildPhases = ( 278C58C7136B640300836530 /* Sources */, 278C58C8136B640300836530 /* Frameworks */, 278C58C9136B640300836530 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 278C58D8136B642F00836530 /* PBXTargetDependency */, ); name = testhttp; productName = testhttp; productReference = 278C58CB136B640300836530 /* testhttp */; productType = "com.apple.product-type.tool"; }; 27A0347A1A8BDB1200650675 /* lpadmin */ = { isa = PBXNativeTarget; buildConfigurationList = 27A034811A8BDB1300650675 /* Build configuration list for PBXNativeTarget "lpadmin" */; buildPhases = ( 27A034771A8BDB1200650675 /* Sources */, 27A034781A8BDB1200650675 /* Frameworks */, 27A034791A8BDB1200650675 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 27A034841A8BDC4A00650675 /* PBXTargetDependency */, ); name = lpadmin; productName = lpadmin; productReference = 27A0347B1A8BDB1300650675 /* lpadmin */; productType = "com.apple.product-type.tool"; }; 720DD6C11358FD5F0064AA82 /* snmp */ = { isa = PBXNativeTarget; buildConfigurationList = 720DD6CB1358FD600064AA82 /* Build configuration list for PBXNativeTarget "snmp" */; buildPhases = ( 720DD6BE1358FD5F0064AA82 /* Sources */, 720DD6BF1358FD5F0064AA82 /* Frameworks */, 720DD6C01358FD5F0064AA82 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 720DD6CF1358FD790064AA82 /* PBXTargetDependency */, ); name = snmp; productName = snmp; productReference = 720DD6C21358FD5F0064AA82 /* snmp */; productType = "com.apple.product-type.tool"; }; 72220EAD1333047D00FCA411 /* libcups */ = { isa = PBXNativeTarget; buildConfigurationList = 72220EB21333047D00FCA411 /* Build configuration list for PBXNativeTarget "libcups" */; buildPhases = ( 72220EAA1333047D00FCA411 /* Sources */, 72220EAB1333047D00FCA411 /* Frameworks */, 72220EAC1333047D00FCA411 /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcups; productName = libcups; productReference = 72220EAE1333047D00FCA411 /* libcups.dylib */; productType = "com.apple.product-type.library.dynamic"; }; 72220F5A13330A5A00FCA411 /* cupsd */ = { isa = PBXNativeTarget; buildConfigurationList = 72220F6113330A5A00FCA411 /* Build configuration list for PBXNativeTarget "cupsd" */; buildPhases = ( 72220F5713330A5A00FCA411 /* Sources */, 72220F5813330A5A00FCA411 /* Frameworks */, 72220F5913330A5A00FCA411 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 72220FBE13330C0B00FCA411 /* PBXTargetDependency */, 72220F6513330A6500FCA411 /* PBXTargetDependency */, ); name = cupsd; productName = cupsd; productReference = 72220F5B13330A5A00FCA411 /* cupsd */; productType = "com.apple.product-type.tool"; }; 72220FAB13330B2200FCA411 /* libcupsmime */ = { isa = PBXNativeTarget; buildConfigurationList = 72220FAD13330B2300FCA411 /* Build configuration list for PBXNativeTarget "libcupsmime" */; buildPhases = ( 72220FA813330B2200FCA411 /* Sources */, 72220FA913330B2200FCA411 /* Frameworks */, 72220FAA13330B2200FCA411 /* Headers */, ); buildRules = ( ); dependencies = ( 72220FBC13330C0500FCA411 /* PBXTargetDependency */, ); name = libcupsmime; productName = libcupsmime; productReference = 72220FAC13330B2200FCA411 /* libcupsmime.dylib */; productType = "com.apple.product-type.library.dynamic"; }; 724378FC1333E43E009631B9 /* ipp */ = { isa = PBXNativeTarget; buildConfigurationList = 724379031333E43E009631B9 /* Build configuration list for PBXNativeTarget "ipp" */; buildPhases = ( 724378F91333E43E009631B9 /* Sources */, 724378FA1333E43E009631B9 /* Frameworks */, 724378FB1333E43E009631B9 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724379071333E49B009631B9 /* PBXTargetDependency */, ); name = ipp; productName = ipp; productReference = 724378FD1333E43E009631B9 /* ipp */; productType = "com.apple.product-type.tool"; }; 724379171333E532009631B9 /* lpd */ = { isa = PBXNativeTarget; buildConfigurationList = 7243791E1333E532009631B9 /* Build configuration list for PBXNativeTarget "lpd" */; buildPhases = ( 724379141333E532009631B9 /* Sources */, 724379151333E532009631B9 /* Frameworks */, 724379161333E532009631B9 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724379261333E932009631B9 /* PBXTargetDependency */, ); name = lpd; productName = lpd; productReference = 724379181333E532009631B9 /* lpd */; productType = "com.apple.product-type.tool"; }; 7243792F1333FB85009631B9 /* socket */ = { isa = PBXNativeTarget; buildConfigurationList = 724379361333FB85009631B9 /* Build configuration list for PBXNativeTarget "socket" */; buildPhases = ( 7243792C1333FB85009631B9 /* Sources */, 7243792D1333FB85009631B9 /* Frameworks */, 7243792E1333FB85009631B9 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 7243793A1333FB95009631B9 /* PBXTargetDependency */, ); name = socket; productName = socket; productReference = 724379301333FB85009631B9 /* socket */; productType = "com.apple.product-type.tool"; }; 724379461333FEA9009631B9 /* dnssd */ = { isa = PBXNativeTarget; buildConfigurationList = 7243794D1333FEA9009631B9 /* Build configuration list for PBXNativeTarget "dnssd" */; buildPhases = ( 724379431333FEA9009631B9 /* Sources */, 724379441333FEA9009631B9 /* Frameworks */, 724379451333FEA9009631B9 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724379551333FEFE009631B9 /* PBXTargetDependency */, ); name = dnssd; productName = dnssd; productReference = 724379471333FEA9009631B9 /* dnssd */; productType = "com.apple.product-type.tool"; }; 7243795A1333FF1D009631B9 /* usb */ = { isa = PBXNativeTarget; buildConfigurationList = 724379611333FF1D009631B9 /* Build configuration list for PBXNativeTarget "usb" */; buildPhases = ( 724379571333FF1D009631B9 /* Sources */, 724379581333FF1D009631B9 /* Frameworks */, 724379591333FF1D009631B9 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724379651333FF2E009631B9 /* PBXTargetDependency */, ); name = usb; productName = usb; productReference = 7243795B1333FF1D009631B9 /* usb */; productType = "com.apple.product-type.tool"; }; 724FA5241CC0370C0092477B /* testadmin */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5321CC0370C0092477B /* Build configuration list for PBXNativeTarget "testadmin" */; buildPhases = ( 724FA5271CC0370C0092477B /* Sources */, 724FA5291CC0370C0092477B /* Frameworks */, 724FA5311CC0370C0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5251CC0370C0092477B /* PBXTargetDependency */, ); name = testadmin; productName = testcups; productReference = 724FA5351CC0370C0092477B /* testadmin */; productType = "com.apple.product-type.tool"; }; 724FA5371CC037370092477B /* testarray */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5451CC037370092477B /* Build configuration list for PBXNativeTarget "testarray" */; buildPhases = ( 724FA53A1CC037370092477B /* Sources */, 724FA53C1CC037370092477B /* Frameworks */, 724FA5441CC037370092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5381CC037370092477B /* PBXTargetDependency */, ); name = testarray; productName = testcups; productReference = 724FA5481CC037370092477B /* testarray */; productType = "com.apple.product-type.tool"; }; 724FA54A1CC037500092477B /* testcache */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5581CC037500092477B /* Build configuration list for PBXNativeTarget "testcache" */; buildPhases = ( 724FA54D1CC037500092477B /* Sources */, 724FA54F1CC037500092477B /* Frameworks */, 724FA5571CC037500092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA54B1CC037500092477B /* PBXTargetDependency */, ); name = testcache; productName = testcups; productReference = 724FA55B1CC037500092477B /* testcache */; productType = "com.apple.product-type.tool"; }; 724FA55D1CC037670092477B /* testconflicts */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA56B1CC037670092477B /* Build configuration list for PBXNativeTarget "testconflicts" */; buildPhases = ( 724FA5601CC037670092477B /* Sources */, 724FA5621CC037670092477B /* Frameworks */, 724FA56A1CC037670092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA55E1CC037670092477B /* PBXTargetDependency */, ); name = testconflicts; productName = testcups; productReference = 724FA56E1CC037670092477B /* testconflicts */; productType = "com.apple.product-type.tool"; }; 724FA5701CC037810092477B /* testfile */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA57E1CC037810092477B /* Build configuration list for PBXNativeTarget "testfile" */; buildPhases = ( 724FA5731CC037810092477B /* Sources */, 724FA5751CC037810092477B /* Frameworks */, 724FA57D1CC037810092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5711CC037810092477B /* PBXTargetDependency */, ); name = testfile; productName = testcups; productReference = 724FA5811CC037810092477B /* testfile */; productType = "com.apple.product-type.tool"; }; 724FA5831CC037980092477B /* testi18n */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5911CC037980092477B /* Build configuration list for PBXNativeTarget "testi18n" */; buildPhases = ( 724FA5861CC037980092477B /* Sources */, 724FA5881CC037980092477B /* Frameworks */, 724FA5901CC037980092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5841CC037980092477B /* PBXTargetDependency */, ); name = testi18n; productName = testhttp; productReference = 724FA5941CC037980092477B /* testi18n */; productType = "com.apple.product-type.tool"; }; 724FA5961CC037AA0092477B /* testipp */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5A41CC037AA0092477B /* Build configuration list for PBXNativeTarget "testipp" */; buildPhases = ( 724FA5991CC037AA0092477B /* Sources */, 724FA59B1CC037AA0092477B /* Frameworks */, 724FA5A31CC037AA0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5971CC037AA0092477B /* PBXTargetDependency */, ); name = testipp; productName = testhttp; productReference = 724FA5A71CC037AA0092477B /* testipp */; productType = "com.apple.product-type.tool"; }; 724FA5A91CC037C60092477B /* testlang */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5B71CC037C60092477B /* Build configuration list for PBXNativeTarget "testlang" */; buildPhases = ( 724FA5AC1CC037C60092477B /* Sources */, 724FA5AE1CC037C60092477B /* Frameworks */, 724FA5B61CC037C60092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5AA1CC037C60092477B /* PBXTargetDependency */, ); name = testlang; productName = testhttp; productReference = 724FA5BA1CC037C60092477B /* testlang */; productType = "com.apple.product-type.tool"; }; 724FA5BC1CC037D90092477B /* testlpd */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5CA1CC037D90092477B /* Build configuration list for PBXNativeTarget "testlpd" */; buildPhases = ( 724FA5BF1CC037D90092477B /* Sources */, 724FA5C11CC037D90092477B /* Frameworks */, 724FA5C91CC037D90092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5BD1CC037D90092477B /* PBXTargetDependency */, ); name = testlpd; productName = testhttp; productReference = 724FA5CD1CC037D90092477B /* testlpd */; productType = "com.apple.product-type.tool"; }; 724FA5CF1CC037F00092477B /* testoptions */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5DE1CC037F00092477B /* Build configuration list for PBXNativeTarget "testoptions" */; buildPhases = ( 724FA5D41CC037F00092477B /* Sources */, 724FA5D61CC037F00092477B /* Frameworks */, 724FA5DD1CC037F00092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5D01CC037F00092477B /* PBXTargetDependency */, ); name = testoptions; productName = testmime; productReference = 724FA5E11CC037F00092477B /* testoptions */; productType = "com.apple.product-type.tool"; }; 724FA5E31CC038040092477B /* testppd */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA5F21CC038040092477B /* Build configuration list for PBXNativeTarget "testppd" */; buildPhases = ( 724FA5E81CC038040092477B /* Sources */, 724FA5EA1CC038040092477B /* Frameworks */, 724FA5F11CC038040092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5E41CC038040092477B /* PBXTargetDependency */, ); name = testppd; productName = testmime; productReference = 724FA5F51CC038040092477B /* testppd */; productType = "com.apple.product-type.tool"; }; 724FA5F71CC038190092477B /* testpwg */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6061CC038190092477B /* Build configuration list for PBXNativeTarget "testpwg" */; buildPhases = ( 724FA5FC1CC038190092477B /* Sources */, 724FA5FE1CC038190092477B /* Frameworks */, 724FA6051CC038190092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA5F81CC038190092477B /* PBXTargetDependency */, ); name = testpwg; productName = testmime; productReference = 724FA6091CC038190092477B /* testpwg */; productType = "com.apple.product-type.tool"; }; 724FA60B1CC0382B0092477B /* testraster */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA61A1CC0382B0092477B /* Build configuration list for PBXNativeTarget "testraster" */; buildPhases = ( 724FA6101CC0382B0092477B /* Sources */, 724FA6121CC0382B0092477B /* Frameworks */, 724FA6191CC0382B0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA60C1CC0382B0092477B /* PBXTargetDependency */, ); name = testraster; productName = testmime; productReference = 724FA61D1CC0382B0092477B /* testraster */; productType = "com.apple.product-type.tool"; }; 724FA61F1CC038410092477B /* testsnmp */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA62E1CC038410092477B /* Build configuration list for PBXNativeTarget "testsnmp" */; buildPhases = ( 724FA6241CC038410092477B /* Sources */, 724FA6261CC038410092477B /* Frameworks */, 724FA62D1CC038410092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6201CC038410092477B /* PBXTargetDependency */, ); name = testsnmp; productName = testmime; productReference = 724FA6311CC038410092477B /* testsnmp */; productType = "com.apple.product-type.tool"; }; 724FA6331CC038560092477B /* testspeed */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6421CC038560092477B /* Build configuration list for PBXNativeTarget "testspeed" */; buildPhases = ( 724FA6381CC038560092477B /* Sources */, 724FA63A1CC038560092477B /* Frameworks */, 724FA6411CC038560092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6341CC038560092477B /* PBXTargetDependency */, ); name = testspeed; productName = testmime; productReference = 724FA6451CC038560092477B /* testspeed */; productType = "com.apple.product-type.tool"; }; 724FA6471CC0386E0092477B /* testsub */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6561CC0386E0092477B /* Build configuration list for PBXNativeTarget "testsub" */; buildPhases = ( 724FA64C1CC0386E0092477B /* Sources */, 724FA64E1CC0386E0092477B /* Frameworks */, 724FA6551CC0386E0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6481CC0386E0092477B /* PBXTargetDependency */, ); name = testsub; productName = testmime; productReference = 724FA6591CC0386E0092477B /* testsub */; productType = "com.apple.product-type.tool"; }; 724FA65E1CC038A50092477B /* test1284 */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA66D1CC038A50092477B /* Build configuration list for PBXNativeTarget "test1284" */; buildPhases = ( 724FA6631CC038A50092477B /* Sources */, 724FA6651CC038A50092477B /* Frameworks */, 724FA66C1CC038A50092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA65F1CC038A50092477B /* PBXTargetDependency */, ); name = test1284; productName = testmime; productReference = 724FA6701CC038A50092477B /* test1284 */; productType = "com.apple.product-type.tool"; }; 724FA6721CC038BD0092477B /* testbackend */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6801CC038BD0092477B /* Build configuration list for PBXNativeTarget "testbackend" */; buildPhases = ( 724FA6751CC038BD0092477B /* Sources */, 724FA6771CC038BD0092477B /* Frameworks */, 724FA67F1CC038BD0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6731CC038BD0092477B /* PBXTargetDependency */, ); name = testbackend; productName = testcups; productReference = 724FA6831CC038BD0092477B /* testbackend */; productType = "com.apple.product-type.tool"; }; 724FA6851CC038D90092477B /* testsupplies */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6941CC038D90092477B /* Build configuration list for PBXNativeTarget "testsupplies" */; buildPhases = ( 724FA68A1CC038D90092477B /* Sources */, 724FA68C1CC038D90092477B /* Frameworks */, 724FA6931CC038D90092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6861CC038D90092477B /* PBXTargetDependency */, ); name = testsupplies; productName = testmime; productReference = 724FA6971CC038D90092477B /* testsupplies */; productType = "com.apple.product-type.tool"; }; 724FA6991CC039200092477B /* testcgi */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6A71CC039200092477B /* Build configuration list for PBXNativeTarget "testcgi" */; buildPhases = ( 724FA69C1CC039200092477B /* Sources */, 724FA69E1CC039200092477B /* Frameworks */, 724FA6A61CC039200092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284CB1CC122D000E517C7 /* PBXTargetDependency */, 724FA69A1CC039200092477B /* PBXTargetDependency */, ); name = testcgi; productName = testcups; productReference = 724FA6AA1CC039200092477B /* testcgi */; productType = "com.apple.product-type.tool"; }; 724FA6AC1CC0393E0092477B /* testhi */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6BA1CC0393E0092477B /* Build configuration list for PBXNativeTarget "testhi" */; buildPhases = ( 724FA6AF1CC0393E0092477B /* Sources */, 724FA6B11CC0393E0092477B /* Frameworks */, 724FA6B91CC0393E0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284CF1CC122ED00E517C7 /* PBXTargetDependency */, 724FA6AD1CC0393E0092477B /* PBXTargetDependency */, ); name = testhi; productName = testhttp; productReference = 724FA6BD1CC0393E0092477B /* testhi */; productType = "com.apple.product-type.tool"; }; 724FA6BF1CC0395A0092477B /* testtemplate */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6CE1CC0395A0092477B /* Build configuration list for PBXNativeTarget "testtemplate" */; buildPhases = ( 724FA6C41CC0395A0092477B /* Sources */, 724FA6C61CC0395A0092477B /* Frameworks */, 724FA6CD1CC0395A0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284D41CC1232500E517C7 /* PBXTargetDependency */, 724FA6C01CC0395A0092477B /* PBXTargetDependency */, ); name = testtemplate; productName = testmime; productReference = 724FA6D11CC0395A0092477B /* testtemplate */; productType = "com.apple.product-type.tool"; }; 724FA6D81CC039DE0092477B /* testnotify */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6E71CC039DE0092477B /* Build configuration list for PBXNativeTarget "testnotify" */; buildPhases = ( 724FA6DD1CC039DE0092477B /* Sources */, 724FA6DF1CC039DE0092477B /* Frameworks */, 724FA6E61CC039DE0092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 724FA6D91CC039DE0092477B /* PBXTargetDependency */, ); name = testnotify; productName = testmime; productReference = 724FA6EA1CC039DE0092477B /* testnotify */; productType = "com.apple.product-type.tool"; }; 724FA6ED1CC03A210092477B /* testcatalog */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA6FC1CC03A210092477B /* Build configuration list for PBXNativeTarget "testcatalog" */; buildPhases = ( 724FA6F21CC03A210092477B /* Sources */, 724FA6F41CC03A210092477B /* Frameworks */, 724FA6FB1CC03A210092477B /* CopyFiles */, ); buildRules = ( ); dependencies = ( 271284CD1CC122E400E517C7 /* PBXTargetDependency */, 724FA6EE1CC03A210092477B /* PBXTargetDependency */, ); name = testcatalog; productName = testmime; productReference = 724FA6FF1CC03A210092477B /* testcatalog */; productType = "com.apple.product-type.tool"; }; 724FA7011CC03A490092477B /* libcupsimage_static */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA70C1CC03A490092477B /* Build configuration list for PBXNativeTarget "libcupsimage_static" */; buildPhases = ( 724FA7041CC03A490092477B /* Sources */, 724FA7081CC03A490092477B /* Frameworks */, 724FA70A1CC03A490092477B /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcupsimage_static; productName = libcupsimage; productReference = 724FA70F1CC03A490092477B /* libcupsimage_static.a */; productType = "com.apple.product-type.library.dynamic"; }; 724FA7101CC03A990092477B /* libcupsmime_static */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA71C1CC03A990092477B /* Build configuration list for PBXNativeTarget "libcupsmime_static" */; buildPhases = ( 724FA7131CC03A990092477B /* Sources */, 724FA7171CC03A990092477B /* Frameworks */, 724FA7191CC03A990092477B /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcupsmime_static; productName = libcupsmime; productReference = 724FA71F1CC03A990092477B /* libcupsmime_static.a */; productType = "com.apple.product-type.library.dynamic"; }; 724FA7201CC03AAF0092477B /* libcupsppdc_static */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA73D1CC03AAF0092477B /* Build configuration list for PBXNativeTarget "libcupsppdc_static" */; buildPhases = ( 724FA7231CC03AAF0092477B /* Sources */, 724FA7371CC03AAF0092477B /* Frameworks */, 724FA73A1CC03AAF0092477B /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcupsppdc_static; productName = libcupsppdc; productReference = 724FA7401CC03AAF0092477B /* libcupsppdc_static.a */; productType = "com.apple.product-type.library.dynamic"; }; 724FA7411CC03ACC0092477B /* libcupscgi */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA74C1CC03ACC0092477B /* Build configuration list for PBXNativeTarget "libcupscgi" */; buildPhases = ( 724FA7441CC03ACC0092477B /* Sources */, 724FA7481CC03ACC0092477B /* Frameworks */, 724FA74A1CC03ACC0092477B /* Headers */, ); buildRules = ( ); dependencies = ( 724FA7421CC03ACC0092477B /* PBXTargetDependency */, ); name = libcupscgi; productName = libcupsimage; productReference = 724FA74F1CC03ACC0092477B /* libcupscgi.dylib */; productType = "com.apple.product-type.library.dynamic"; }; 724FA7581CC03AF60092477B /* libcupscgi_static */ = { isa = PBXNativeTarget; buildConfigurationList = 724FA7681CC03AF60092477B /* Build configuration list for PBXNativeTarget "libcupscgi_static" */; buildPhases = ( 724FA75B1CC03AF60092477B /* Sources */, 724FA7641CC03AF60092477B /* Frameworks */, 724FA7661CC03AF60092477B /* Headers */, ); buildRules = ( ); dependencies = ( ); name = libcupscgi_static; productName = libcupsimage; productReference = 724FA76B1CC03AF60092477B /* libcupscgi_static.a */; productType = "com.apple.product-type.library.dynamic"; }; 7258EAE1134594C4009286F1 /* rastertopwg */ = { isa = PBXNativeTarget; buildConfigurationList = 7258EAE9134594C4009286F1 /* Build configuration list for PBXNativeTarget "rastertopwg" */; buildPhases = ( 7258EADE134594C4009286F1 /* Sources */, 7258EADF134594C4009286F1 /* Frameworks */, 7258EAE0134594C4009286F1 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 7258EAF113459B67009286F1 /* PBXTargetDependency */, ); name = rastertopwg; productName = rastertopwg; productReference = 7258EAE2134594C4009286F1 /* rastertopwg */; productType = "com.apple.product-type.tool"; }; 726AD6F6135E88F0002C930D /* ippeveprinter */ = { isa = PBXNativeTarget; buildConfigurationList = 726AD6FE135E88F1002C930D /* Build configuration list for PBXNativeTarget "ippeveprinter" */; buildPhases = ( 726AD6F3135E88F0002C930D /* Sources */, 726AD6F4135E88F0002C930D /* Frameworks */, 726AD6F5135E88F0002C930D /* CopyFiles */, ); buildRules = ( ); dependencies = ( 273B1EC9226B420500428143 /* PBXTargetDependency */, ); name = ippeveprinter; productName = ippserver; productReference = 726AD6F7135E88F0002C930D /* ippeveprinter */; productType = "com.apple.product-type.tool"; }; 729181AC201155C1005E7560 /* testclient */ = { isa = PBXNativeTarget; buildConfigurationList = 729181BB201155C1005E7560 /* Build configuration list for PBXNativeTarget "testclient" */; buildPhases = ( 729181B1201155C1005E7560 /* Sources */, 729181B3201155C1005E7560 /* Frameworks */, 729181BA201155C1005E7560 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 729181AF201155C1005E7560 /* PBXTargetDependency */, ); name = testclient; productName = testmime; productReference = 729181BE201155C1005E7560 /* testclient */; productType = "com.apple.product-type.tool"; }; 72CF95E618A19134000FCAE4 /* ippfind */ = { isa = PBXNativeTarget; buildConfigurationList = 72CF95EE18A19134000FCAE4 /* Build configuration list for PBXNativeTarget "ippfind" */; buildPhases = ( 72CF95E918A19134000FCAE4 /* Sources */, 72CF95EB18A19134000FCAE4 /* Frameworks */, 72CF95ED18A19134000FCAE4 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 72CF95E718A19134000FCAE4 /* PBXTargetDependency */, ); name = ippfind; productName = ipptool; productReference = 72CF95F118A19134000FCAE4 /* ipptool copy */; productType = "com.apple.product-type.tool"; }; 72F75A511336F950004BB496 /* cupstestppd */ = { isa = PBXNativeTarget; buildConfigurationList = 72F75A581336F951004BB496 /* Build configuration list for PBXNativeTarget "cupstestppd" */; buildPhases = ( 72F75A4E1336F950004BB496 /* Sources */, 72F75A4F1336F950004BB496 /* Frameworks */, 72F75A501336F950004BB496 /* CopyFiles */, ); buildRules = ( ); dependencies = ( 276683E41337B2BA000D33D0 /* PBXTargetDependency */, 276683E11337B299000D33D0 /* PBXTargetDependency */, ); name = cupstestppd; productName = cupstestppd; productReference = 72F75A521336F950004BB496 /* cupstestppd */; productType = "com.apple.product-type.tool"; }; 72F75A601336F9A3004BB496 /* libcupsimage */ = { isa = PBXNativeTarget; buildConfigurationList = 72F75A621336F9A3004BB496 /* Build configuration list for PBXNativeTarget "libcupsimage" */; buildPhases = ( 72F75A5D1336F9A3004BB496 /* Sources */, 72F75A5E1336F9A3004BB496 /* Frameworks */, 72F75A5F1336F9A3004BB496 /* Headers */, ); buildRules = ( ); dependencies = ( 72F75A661336FA30004BB496 /* PBXTargetDependency */, ); name = libcupsimage; productName = libcupsimage; productReference = 72F75A611336F9A3004BB496 /* libcupsimage.dylib */; productType = "com.apple.product-type.library.dynamic"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 72BF96371333042100B1EAD7 /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 1410; ORGANIZATIONNAME = "Apple Inc."; TargetAttributes = { 270695FD1CADF3E200FFE5FB = { DevelopmentTeam = RU58A2256H; }; 27A0347A1A8BDB1200650675 = { CreatedOnToolsVersion = 6.1.1; }; }; }; buildConfigurationList = 72BF963A1333042100B1EAD7 /* Build configuration list for PBXProject "CUPS" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = 72BF96351333042100B1EAD7; productRefGroup = 72220EAF1333047D00FCA411 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 274FF5DE13332D3000317ECB /* All */, 273BF6D91333B6260022CAAB /* Tests */, 72220EAD1333047D00FCA411 /* libcups */, 270695FD1CADF3E200FFE5FB /* libcups_ios */, 274FF6891333B1C400317ECB /* libcups_static */, 724FA7411CC03ACC0092477B /* libcupscgi */, 724FA7581CC03AF60092477B /* libcupscgi_static */, 72F75A601336F9A3004BB496 /* libcupsimage */, 724FA7011CC03A490092477B /* libcupsimage_static */, 72220FAB13330B2200FCA411 /* libcupsmime */, 724FA7101CC03A990092477B /* libcupsmime_static */, 274FF5ED133330C800317ECB /* libcupsppdc */, 724FA7201CC03AAF0092477B /* libcupsppdc_static */, 271285951CC12D1300E517C7 /* admin.cgi */, 271286BA1CC13E2100E517C7 /* bcp */, 271284E11CC1261900E517C7 /* cancel */, 271286871CC13DC000E517C7 /* checkpo */, 271285A31CC12D3A00E517C7 /* classes.cgi */, 271285CD1CC12DBF00E517C7 /* commandtops */, 271284EE1CC1264B00E517C7 /* cupsaccept */, 2766835B1337A9B6000D33D0 /* cupsctl */, 72220F5A13330A5A00FCA411 /* cupsd */, 274FF5CB13332B1F00317ECB /* cups-driverd */, 274FF6281333333600317ECB /* cups-deviced */, 274FF63D1333358B00317ECB /* cups-exec */, 274FF64E133339C400317ECB /* cups-lpd */, 274FF67713333B2F00317ECB /* cupsfilter */, 72F75A511336F950004BB496 /* cupstestppd */, 724379461333FEA9009631B9 /* dnssd */, 2712871E1CC140BE00E517C7 /* genstrings */, 271285DA1CC12DDF00E517C7 /* gziptoany */, 724378FC1333E43E009631B9 /* ipp */, 273B1E9A226B3E4800428143 /* ippevepcl */, 726AD6F6135E88F0002C930D /* ippeveprinter */, 273B1EAB226B3E5200428143 /* ippeveps */, 72CF95E618A19134000FCAE4 /* ippfind */, 276683EF1337F78E000D33D0 /* ipptool */, 271285B11CC12D4E00E517C7 /* jobs.cgi */, 271285081CC1267A00E517C7 /* lp */, 27A0347A1A8BDB1200650675 /* lpadmin */, 271285151CC1269700E517C7 /* lpc */, 724379171333E532009631B9 /* lpd */, 271285221CC126AA00E517C7 /* lpinfo */, 2712852F1CC1270B00E517C7 /* lpmove */, 2712853C1CC1271E00E517C7 /* lpoptions */, 271285491CC1272D00E517C7 /* lpq */, 271285561CC1274300E517C7 /* lpr */, 271285631CC1275200E517C7 /* lprm */, 271285701CC1276400E517C7 /* lpstat */, 271286E51CC13F2000E517C7 /* mailto */, 271287091CC13FAB00E517C7 /* mantohtml */, 271286981CC13DF100E517C7 /* po2strings */, 2766836F1337AC79000D33D0 /* ppdc */, 2766837C1337AC8C000D33D0 /* ppdhtml */, 276683891337AC97000D33D0 /* ppdi */, 276683961337ACA2000D33D0 /* ppdmerge */, 276683A31337ACAB000D33D0 /* ppdpo */, 271285BF1CC12D5E00E517C7 /* printers.cgi */, 271285E71CC12E2D00E517C7 /* pstops */, 2712866B1CC1310E00E517C7 /* rasterbench */, 271285F51CC12EEB00E517C7 /* rastertoepson */, 271286051CC12F0B00E517C7 /* rastertohp */, 271286151CC12F1A00E517C7 /* rastertolabel */, 7258EAE1134594C4009286F1 /* rastertopwg */, 271286F51CC13F3F00E517C7 /* rss */, 720DD6C11358FD5F0064AA82 /* snmp */, 7243792F1333FB85009631B9 /* socket */, 271286A91CC13DFF00E517C7 /* strings2po */, 271286CB1CC13E5B00E517C7 /* tbcp */, 724FA65E1CC038A50092477B /* test1284 */, 724FA5241CC0370C0092477B /* testadmin */, 724FA5371CC037370092477B /* testarray */, 724FA6721CC038BD0092477B /* testbackend */, 724FA54A1CC037500092477B /* testcache */, 724FA6ED1CC03A210092477B /* testcatalog */, 724FA6991CC039200092477B /* testcgi */, 729181AC201155C1005E7560 /* testclient */, 724FA55D1CC037670092477B /* testconflicts */, 270D02131D707E0200EA9403 /* testcreds */, 273BF6BC1333B5000022CAAB /* testcups */, 2767FC4619266A0D000F61D3 /* testdest */, 724FA5701CC037810092477B /* testfile */, 724FA6AC1CC0393E0092477B /* testhi */, 278C58CA136B640300836530 /* testhttp */, 724FA5831CC037980092477B /* testi18n */, 724FA5961CC037AA0092477B /* testipp */, 724FA5A91CC037C60092477B /* testlang */, 724FA5BC1CC037D90092477B /* testlpd */, 270CCDA6135E3C9E00007BE2 /* testmime */, 724FA6D81CC039DE0092477B /* testnotify */, 724FA5CF1CC037F00092477B /* testoptions */, 724FA5E31CC038040092477B /* testppd */, 724FA5F71CC038190092477B /* testpwg */, 724FA60B1CC0382B0092477B /* testraster */, 724FA61F1CC038410092477B /* testsnmp */, 724FA6331CC038560092477B /* testspeed */, 724FA6471CC0386E0092477B /* testsub */, 724FA6851CC038D90092477B /* testsupplies */, 724FA6BF1CC0395A0092477B /* testtemplate */, 271286571CC1309000E517C7 /* tlscheck */, 7243795A1333FF1D009631B9 /* usb */, 274770D12345342B0089BC31 /* testthreads */, ); }; /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ 270695FE1CADF3E200FFE5FB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 270696001CADF3E200FFE5FB /* array.c in Sources */, 270696021CADF3E200FFE5FB /* auth.c in Sources */, 270696071CADF3E200FFE5FB /* debug.c in Sources */, 270696081CADF3E200FFE5FB /* dest.c in Sources */, 270696091CADF3E200FFE5FB /* dir.c in Sources */, 2706960B1CADF3E200FFE5FB /* encode.c in Sources */, 2706960C1CADF3E200FFE5FB /* file.c in Sources */, 2706960F1CADF3E200FFE5FB /* getputfile.c in Sources */, 270696101CADF3E200FFE5FB /* globals.c in Sources */, 270696111CADF3E200FFE5FB /* http-addr.c in Sources */, 270696121CADF3E200FFE5FB /* http-addrlist.c in Sources */, 270696131CADF3E200FFE5FB /* http-support.c in Sources */, 7253C464216ED51500494ADD /* raster-stubs.c in Sources */, 270696141CADF3E200FFE5FB /* http.c in Sources */, 7253C458216E981200494ADD /* raster-stream.c in Sources */, 270696161CADF3E200FFE5FB /* dest-options.c in Sources */, 270696171CADF3E200FFE5FB /* ipp-support.c in Sources */, 270696181CADF3E200FFE5FB /* ipp.c in Sources */, 270696191CADF3E200FFE5FB /* langprintf.c in Sources */, 2706961A1CADF3E200FFE5FB /* language.c in Sources */, 2706961D1CADF3E200FFE5FB /* md5.c in Sources */, 2706961E1CADF3E200FFE5FB /* md5passwd.c in Sources */, 2706961F1CADF3E200FFE5FB /* hash.c in Sources */, 270696201CADF3E200FFE5FB /* notify.c in Sources */, 270696211CADF3E200FFE5FB /* options.c in Sources */, 270696221CADF3E200FFE5FB /* tls.c in Sources */, 270696251CADF3E200FFE5FB /* dest-job.c in Sources */, 270696271CADF3E200FFE5FB /* pwg-media.c in Sources */, 270696281CADF3E200FFE5FB /* dest-localization.c in Sources */, 270696291CADF3E200FFE5FB /* request.c in Sources */, 2706962C1CADF3E200FFE5FB /* snprintf.c in Sources */, 2706962D1CADF3E200FFE5FB /* string.c in Sources */, 7253C455216E980000494ADD /* raster-error.c in Sources */, 2706965B1CAE1A9A00FFE5FB /* util.c in Sources */, 2706962E1CADF3E200FFE5FB /* tempfile.c in Sources */, 2706962F1CADF3E200FFE5FB /* thread.c in Sources */, 270696301CADF3E200FFE5FB /* transcode.c in Sources */, 270696311CADF3E200FFE5FB /* usersys.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 270CCDA3135E3C9E00007BE2 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 270CCDBC135E3D3E00007BE2 /* testmime.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 270D02161D707E0200EA9403 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 270D02261D707E3700EA9403 /* testcreds.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271284E41CC1261900E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271284ED1CC1262C00E517C7 /* cancel.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271284F11CC1264B00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271284FA1CC1265800E517C7 /* cupsaccept.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712850B1CC1267A00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285141CC1269400E517C7 /* lp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285181CC1269700E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285211CC126A700E517C7 /* lpc.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285251CC126AA00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712852E1CC126BC00E517C7 /* lpinfo.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285321CC1270B00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712853B1CC1271B00E517C7 /* lpmove.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712853F1CC1271E00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285481CC1272900E517C7 /* lpoptions.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712854C1CC1272D00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285551CC1273C00E517C7 /* lpq.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285591CC1274300E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285621CC1274F00E517C7 /* lpr.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285661CC1275200E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712856F1CC1276000E517C7 /* lprm.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285731CC1276400E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712857C1CC1277000E517C7 /* lpstat.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285981CC12D1300E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285A11CC12D2100E517C7 /* admin.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285A61CC12D3A00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285B01CC12D4A00E517C7 /* classes.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285B41CC12D4E00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285BE1CC12D5C00E517C7 /* jobs.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285C21CC12D5E00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285CC1CC12D6D00E517C7 /* printers.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285D01CC12DBF00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285D91CC12DD000E517C7 /* commandtops.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285DD1CC12DDF00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285E61CC12DEF00E517C7 /* gziptoany.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285EA1CC12E2D00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271285F41CC12E4200E517C7 /* common.c in Sources */, 271285F31CC12E3C00E517C7 /* pstops.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271285F81CC12EEB00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286011CC12EFA00E517C7 /* rastertoepson.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712860A1CC12F0B00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286141CC12F1800E517C7 /* rastertohp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712861A1CC12F1A00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286241CC12F2600E517C7 /* rastertolabel.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712865A1CC1309000E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286691CC130C700E517C7 /* tlscheck.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286701CC1310E00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712867E1CC1311D00E517C7 /* rasterbench.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712868A1CC13DC000E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286971CC13DEA00E517C7 /* checkpo.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712869B1CC13DF100E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286A81CC13DFD00E517C7 /* po2strings.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286AC1CC13DFF00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 271286BD1CC13E2100E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286CA1CC13E2E00E517C7 /* bcp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286CE1CC13E5B00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286DA1CC13E6A00E517C7 /* tbcp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286E81CC13F2000E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271286F41CC13F2F00E517C7 /* mailto.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271286F81CC13F3F00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271287041CC13F4C00E517C7 /* rss.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2712870C1CC13FAB00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712871A1CC13FE800E517C7 /* mantohtml.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 271287231CC140BE00E517C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2712872D1CC140D200E517C7 /* genstrings.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 273B1E9D226B3E4800428143 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 273B1EBF226B3EF300428143 /* ippevepcl.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 273B1EAE226B3E5200428143 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 273B1EC0226B3EFF00428143 /* ippeveps.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 273BF6B91333B5000022CAAB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 273BF6C71333B5370022CAAB /* testcups.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274770D42345342B0089BC31 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274770E2234534660089BC31 /* testthreads.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF5C813332B1F00317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF5D913332CC700317ECB /* cups-driverd.cxx in Sources */, 274FF5DA13332CC700317ECB /* util.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF5EA133330C800317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF60A1333315100317ECB /* ppdc-array.cxx in Sources */, 274FF60B1333315100317ECB /* ppdc-attr.cxx in Sources */, 274FF60C1333315100317ECB /* ppdc-catalog.cxx in Sources */, 274FF60D1333315100317ECB /* ppdc-choice.cxx in Sources */, 274FF60E1333315100317ECB /* ppdc-constraint.cxx in Sources */, 274FF60F1333315100317ECB /* ppdc-driver.cxx in Sources */, 274FF6101333315100317ECB /* ppdc-file.cxx in Sources */, 274FF6111333315100317ECB /* ppdc-filter.cxx in Sources */, 274FF6121333315100317ECB /* ppdc-font.cxx in Sources */, 274FF6131333315100317ECB /* ppdc-group.cxx in Sources */, 274FF6141333315100317ECB /* ppdc-import.cxx in Sources */, 274FF6151333315100317ECB /* ppdc-mediasize.cxx in Sources */, 274FF6161333315100317ECB /* ppdc-message.cxx in Sources */, 274FF6171333315100317ECB /* ppdc-option.cxx in Sources */, 274FF6191333315100317ECB /* ppdc-profile.cxx in Sources */, 274FF61A1333315100317ECB /* ppdc-shared.cxx in Sources */, 274FF61B1333315100317ECB /* ppdc-source.cxx in Sources */, 274FF61C1333315100317ECB /* ppdc-string.cxx in Sources */, 274FF61D1333315100317ECB /* ppdc-variable.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF6251333333600317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF6361333344400317ECB /* cups-deviced.c in Sources */, 274FF6371333345900317ECB /* util.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF63A1333358B00317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF64A1333398D00317ECB /* cups-exec.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF64B133339C400317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF65C133339FC00317ECB /* cups-lpd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF67413333B2F00317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF68813333B6E00317ECB /* cupsfilter.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 274FF68A1333B1C400317ECB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 274FF68B1333B1C400317ECB /* adminutil.c in Sources */, 274FF68C1333B1C400317ECB /* array.c in Sources */, 7253C459216E981200494ADD /* raster-stream.c in Sources */, 274FF68D1333B1C400317ECB /* ppd-attr.c in Sources */, 274FF68E1333B1C400317ECB /* auth.c in Sources */, 274FF68F1333B1C400317ECB /* backchannel.c in Sources */, 720E854620164E7B00C6C411 /* ipp-vars.c in Sources */, 274FF6901333B1C400317ECB /* backend.c in Sources */, 274FF6911333B1C400317ECB /* ppd-conflicts.c in Sources */, 274FF6921333B1C400317ECB /* ppd-custom.c in Sources */, 274FF6931333B1C400317ECB /* debug.c in Sources */, 274FF6941333B1C400317ECB /* dest.c in Sources */, 274FF6951333B1C400317ECB /* dir.c in Sources */, 274FF6961333B1C400317ECB /* ppd-emit.c in Sources */, 274FF6971333B1C400317ECB /* encode.c in Sources */, 274FF6981333B1C400317ECB /* file.c in Sources */, 274FF6991333B1C400317ECB /* getdevices.c in Sources */, 720E854420164E7B00C6C411 /* ipp-file.c in Sources */, 274FF69A1333B1C400317ECB /* getifaddrs.c in Sources */, 274FF69B1333B1C400317ECB /* getputfile.c in Sources */, 274FF69C1333B1C400317ECB /* globals.c in Sources */, 274FF69D1333B1C400317ECB /* http-addr.c in Sources */, 274FF69E1333B1C400317ECB /* http-addrlist.c in Sources */, 274FF69F1333B1C400317ECB /* http-support.c in Sources */, 274FF6A01333B1C400317ECB /* http.c in Sources */, 7253C45B216E981A00494ADD /* raster-interpret.c in Sources */, 72A8B3D81C188CB900A1A547 /* ppd-util.c in Sources */, 2767FC7419268F0C000F61D3 /* dest-options.c in Sources */, 274FF6A11333B1C400317ECB /* ipp-support.c in Sources */, 274FF6A21333B1C400317ECB /* ipp.c in Sources */, 274FF6A31333B1C400317ECB /* langprintf.c in Sources */, 274FF6A41333B1C400317ECB /* language.c in Sources */, 274FF6A51333B1C400317ECB /* ppd-localize.c in Sources */, 274FF6A61333B1C400317ECB /* ppd-mark.c in Sources */, 274FF6A71333B1C400317ECB /* md5.c in Sources */, 274FF6A81333B1C400317ECB /* md5passwd.c in Sources */, 7284F9F11BFCCDB20026F886 /* hash.c in Sources */, 274FF6A91333B1C400317ECB /* notify.c in Sources */, 274FF6AA1333B1C400317ECB /* options.c in Sources */, 727AD5B819100A58009F6862 /* tls.c in Sources */, 7253C465216ED51500494ADD /* raster-stubs.c in Sources */, 274FF6AB1333B1C400317ECB /* ppd-page.c in Sources */, 7253C456216E980200494ADD /* raster-error.c in Sources */, 274FF6AC1333B1C400317ECB /* ppd-cache.c in Sources */, 2767FC7219268F06000F61D3 /* dest-job.c in Sources */, 274FF6AD1333B1C400317ECB /* ppd.c in Sources */, 274FF6AE1333B1C400317ECB /* pwg-media.c in Sources */, 2767FC7319268F09000F61D3 /* dest-localization.c in Sources */, 7253C460216ED51500494ADD /* raster-interstub.c in Sources */, 274FF6AF1333B1C400317ECB /* request.c in Sources */, 274FF6B01333B1C400317ECB /* sidechannel.c in Sources */, 274FF6B11333B1C400317ECB /* snmp.c in Sources */, 274FF6B21333B1C400317ECB /* snprintf.c in Sources */, 274FF6B31333B1C400317ECB /* string.c in Sources */, 274FF6B41333B1C400317ECB /* tempfile.c in Sources */, 274FF6B51333B1C400317ECB /* thread.c in Sources */, 274FF6B61333B1C400317ECB /* transcode.c in Sources */, 274FF6B71333B1C400317ECB /* usersys.c in Sources */, 274FF6B81333B1C400317ECB /* util.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683581337A9B6000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683691337AA00000D33D0 /* cupsctl.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2766836C1337AC79000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683CD1337B201000D33D0 /* ppdc.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683791337AC8C000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683CF1337B20D000D33D0 /* ppdhtml.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683861337AC97000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683D11337B21A000D33D0 /* ppdi.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683931337ACA2000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683D31337B228000D33D0 /* ppdmerge.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683A01337ACAB000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683D51337B237000D33D0 /* ppdpo.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 276683EC1337F78E000D33D0 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 276683FA1337F7A9000D33D0 /* ipptool.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2767FC4919266A0D000F61D3 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2767FC5219266A36000F61D3 /* testdest.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 278C58C7136B640300836530 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 278C58E3136B647200836530 /* testhttp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 27A034771A8BDB1200650675 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 27A034821A8BDC3A00650675 /* lpadmin.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 720DD6BE1358FD5F0064AA82 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 720DD6D413590AB90064AA82 /* ieee1284.c in Sources */, 720DD6D31358FDDE0064AA82 /* snmp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220EAA1333047D00FCA411 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 72220EB61333052D00FCA411 /* adminutil.c in Sources */, 72220EC51333056300FCA411 /* array.c in Sources */, 7253C457216E981000494ADD /* raster-stream.c in Sources */, 72220EC71333056300FCA411 /* ppd-attr.c in Sources */, 727AD5B719100A58009F6862 /* tls.c in Sources */, 72220EC81333056300FCA411 /* auth.c in Sources */, 720E854520164E7B00C6C411 /* ipp-vars.c in Sources */, 72220EC91333056300FCA411 /* backchannel.c in Sources */, 72220ECA1333056300FCA411 /* backend.c in Sources */, 72220ECC1333056300FCA411 /* ppd-conflicts.c in Sources */, 72220ECF1333056300FCA411 /* ppd-custom.c in Sources */, 72220F0B133305BB00FCA411 /* debug.c in Sources */, 72220F0C133305BB00FCA411 /* dest.c in Sources */, 72220F0D133305BB00FCA411 /* dir.c in Sources */, 72220F0F133305BB00FCA411 /* ppd-emit.c in Sources */, 72220F10133305BB00FCA411 /* encode.c in Sources */, 72220F12133305BB00FCA411 /* file.c in Sources */, 720E854320164E7B00C6C411 /* ipp-file.c in Sources */, 72220F14133305BB00FCA411 /* getdevices.c in Sources */, 72220F15133305BB00FCA411 /* getifaddrs.c in Sources */, 72220F16133305BB00FCA411 /* getputfile.c in Sources */, 72220F17133305BB00FCA411 /* globals.c in Sources */, 72220F18133305BB00FCA411 /* http-addr.c in Sources */, 72220F19133305BB00FCA411 /* http-addrlist.c in Sources */, 72220F1B133305BB00FCA411 /* http-support.c in Sources */, 7253C45A216E981900494ADD /* raster-interpret.c in Sources */, 72A8B3D71C188CB800A1A547 /* ppd-util.c in Sources */, 72220F1C133305BB00FCA411 /* http.c in Sources */, 72CF95E518A13543000FCAE4 /* dest-options.c in Sources */, 72220F1F133305BB00FCA411 /* ipp-support.c in Sources */, 72220F20133305BB00FCA411 /* ipp.c in Sources */, 72220F22133305BB00FCA411 /* langprintf.c in Sources */, 72220F24133305BB00FCA411 /* language.c in Sources */, 72220F26133305BB00FCA411 /* ppd-localize.c in Sources */, 72220F27133305BB00FCA411 /* ppd-mark.c in Sources */, 72220F29133305BB00FCA411 /* md5.c in Sources */, 7284F9F01BFCCDB10026F886 /* hash.c in Sources */, 72220F2A133305BB00FCA411 /* md5passwd.c in Sources */, 72220F2B133305BB00FCA411 /* notify.c in Sources */, 72220F2C133305BB00FCA411 /* options.c in Sources */, 7253C463216ED51500494ADD /* raster-stubs.c in Sources */, 72220F2D133305BB00FCA411 /* ppd-page.c in Sources */, 7253C454216E97FF00494ADD /* raster-error.c in Sources */, 72220F2E133305BB00FCA411 /* ppd-cache.c in Sources */, 72220F30133305BB00FCA411 /* ppd.c in Sources */, 72220F32133305BB00FCA411 /* pwg-media.c in Sources */, 72220F35133305BB00FCA411 /* request.c in Sources */, 72220F36133305BB00FCA411 /* sidechannel.c in Sources */, 7253C45E216ED51500494ADD /* raster-interstub.c in Sources */, 72220F39133305BB00FCA411 /* snmp.c in Sources */, 72220F3A133305BB00FCA411 /* snprintf.c in Sources */, 72220F3C133305BB00FCA411 /* string.c in Sources */, 72220F3D133305BB00FCA411 /* tempfile.c in Sources */, 72CF95E418A13543000FCAE4 /* dest-localization.c in Sources */, 72220F3F133305BB00FCA411 /* thread.c in Sources */, 72220F40133305BB00FCA411 /* transcode.c in Sources */, 72220F42133305BB00FCA411 /* usersys.c in Sources */, 72220F43133305BB00FCA411 /* util.c in Sources */, 72CF95E318A13543000FCAE4 /* dest-job.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220F5713330A5A00FCA411 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 72220F9013330B0C00FCA411 /* auth.c in Sources */, 72220F9113330B0C00FCA411 /* banners.c in Sources */, 72220F9213330B0C00FCA411 /* cert.c in Sources */, 72220F9313330B0C00FCA411 /* classes.c in Sources */, 72220F9413330B0C00FCA411 /* client.c in Sources */, 72220F9513330B0C00FCA411 /* conf.c in Sources */, 72220F9613330B0C00FCA411 /* dirsvc.c in Sources */, 72220F9713330B0C00FCA411 /* env.c in Sources */, 72220F9813330B0C00FCA411 /* ipp.c in Sources */, 72220F9913330B0C00FCA411 /* job.c in Sources */, 72220F9A13330B0C00FCA411 /* listen.c in Sources */, 72220F9B13330B0C00FCA411 /* log.c in Sources */, 72220F9C13330B0C00FCA411 /* main.c in Sources */, 72220F9D13330B0C00FCA411 /* network.c in Sources */, 72220F9E13330B0C00FCA411 /* policy.c in Sources */, 72220F9F13330B0C00FCA411 /* printers.c in Sources */, 72220FA013330B0C00FCA411 /* process.c in Sources */, 72220FA113330B0C00FCA411 /* quotas.c in Sources */, 72220FA313330B0C00FCA411 /* select.c in Sources */, 72220FA413330B0C00FCA411 /* server.c in Sources */, 72220FA513330B0C00FCA411 /* statbuf.c in Sources */, 72220FA613330B0C00FCA411 /* subscriptions.c in Sources */, 72220FA713330B0C00FCA411 /* sysman.c in Sources */, 72C16CB9137B195D007E4BF4 /* file.c in Sources */, 72D53A3815B4929D003F877F /* colorman.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72220FA813330B2200FCA411 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 72220FB613330BCE00FCA411 /* filter.c in Sources */, 72220FB713330BCE00FCA411 /* mime.c in Sources */, 72220FB913330BCE00FCA411 /* type.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724378F91333E43E009631B9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 7243790D1333E4E3009631B9 /* ipp.c in Sources */, 7243790E1333E4E3009631B9 /* network.c in Sources */, 7243790F1333E4E3009631B9 /* snmp-supplies.c in Sources */, 724379131333E516009631B9 /* runloop.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379141333E532009631B9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724379221333E928009631B9 /* network.c in Sources */, 724379231333E928009631B9 /* runloop.c in Sources */, 724379241333E928009631B9 /* snmp-supplies.c in Sources */, 724379291333E952009631B9 /* lpd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 7243792C1333FB85009631B9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724379401333FD4B009631B9 /* network.c in Sources */, 724379411333FD4B009631B9 /* runloop.c in Sources */, 724379421333FD4B009631B9 /* snmp-supplies.c in Sources */, 7243793D1333FD19009631B9 /* socket.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379431333FEA9009631B9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724379511333FEBB009631B9 /* dnssd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724379571333FF1D009631B9 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724379C71333FFC7009631B9 /* usb.c in Sources */, 724379CB1334000E009631B9 /* ieee1284.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5271CC0370C0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5361CC0372F0092477B /* testadmin.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA53A1CC037370092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5491CC037460092477B /* testarray.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA54D1CC037500092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA55C1CC0375F0092477B /* testcache.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5601CC037670092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA56F1CC037760092477B /* testconflicts.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5731CC037810092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5821CC0378E0092477B /* testfile.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5861CC037980092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5951CC037A50092477B /* testi18n.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5991CC037AA0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5A81CC037B70092477B /* testipp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5AC1CC037C60092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5BB1CC037D30092477B /* testlang.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5BF1CC037D90092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5CE1CC037E50092477B /* testlpd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5D41CC037F00092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5E21CC037FD0092477B /* testoptions.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5E81CC038040092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA5F61CC0380F0092477B /* testppd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA5FC1CC038190092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA60A1CC038250092477B /* testpwg.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6101CC0382B0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA61E1CC0383B0092477B /* testraster.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6241CC038410092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6321CC038510092477B /* testsnmp.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6381CC038560092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6461CC038650092477B /* testspeed.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA64C1CC0386E0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA65A1CC038790092477B /* testsub.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6631CC038A50092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6711CC038B30092477B /* test1284.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6751CC038BD0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6841CC038CA0092477B /* testbackend.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA68A1CC038D90092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 271284D21CC1231300E517C7 /* snmp-supplies.c in Sources */, 724FA6981CC038E70092477B /* testsupplies.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA69C1CC039200092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6AB1CC0392E0092477B /* testcgi.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6AF1CC0393E0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6BE1CC0394C0092477B /* testhi.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6C41CC0395A0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6D21CC039680092477B /* testtemplate.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6DD1CC039DE0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA6EB1CC039EB0092477B /* testnotify.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA6F21CC03A210092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA7001CC03A2F0092477B /* testcatalog.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7041CC03A490092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 7253C467216ED51500494ADD /* raster-stubs.c in Sources */, 7253C462216ED51500494ADD /* raster-interstub.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7131CC03A990092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA7141CC03A990092477B /* filter.c in Sources */, 724FA7151CC03A990092477B /* mime.c in Sources */, 724FA7161CC03A990092477B /* type.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7231CC03AAF0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA7241CC03AAF0092477B /* ppdc-array.cxx in Sources */, 724FA7251CC03AAF0092477B /* ppdc-attr.cxx in Sources */, 724FA7261CC03AAF0092477B /* ppdc-catalog.cxx in Sources */, 724FA7271CC03AAF0092477B /* ppdc-choice.cxx in Sources */, 724FA7281CC03AAF0092477B /* ppdc-constraint.cxx in Sources */, 724FA7291CC03AAF0092477B /* ppdc-driver.cxx in Sources */, 724FA72A1CC03AAF0092477B /* ppdc-file.cxx in Sources */, 724FA72B1CC03AAF0092477B /* ppdc-filter.cxx in Sources */, 724FA72C1CC03AAF0092477B /* ppdc-font.cxx in Sources */, 724FA72D1CC03AAF0092477B /* ppdc-group.cxx in Sources */, 724FA72E1CC03AAF0092477B /* ppdc-import.cxx in Sources */, 724FA72F1CC03AAF0092477B /* ppdc-mediasize.cxx in Sources */, 724FA7301CC03AAF0092477B /* ppdc-message.cxx in Sources */, 724FA7311CC03AAF0092477B /* ppdc-option.cxx in Sources */, 724FA7321CC03AAF0092477B /* ppdc-profile.cxx in Sources */, 724FA7331CC03AAF0092477B /* ppdc-shared.cxx in Sources */, 724FA7341CC03AAF0092477B /* ppdc-source.cxx in Sources */, 724FA7351CC03AAF0092477B /* ppdc-string.cxx in Sources */, 724FA7361CC03AAF0092477B /* ppdc-variable.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA7441CC03ACC0092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA7511CC03AF20092477B /* help-index.c in Sources */, 724FA7521CC03AF20092477B /* help.c in Sources */, 724FA7531CC03AF20092477B /* html.c in Sources */, 724FA7541CC03AF20092477B /* ipp-var.c in Sources */, 724FA7551CC03AF20092477B /* search.c in Sources */, 724FA7561CC03AF20092477B /* template.c in Sources */, 724FA7571CC03AF20092477B /* var.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 724FA75B1CC03AF60092477B /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 724FA75D1CC03AF60092477B /* help-index.c in Sources */, 724FA75E1CC03AF60092477B /* help.c in Sources */, 724FA75F1CC03AF60092477B /* html.c in Sources */, 724FA7601CC03AF60092477B /* ipp-var.c in Sources */, 724FA7611CC03AF60092477B /* search.c in Sources */, 724FA7621CC03AF60092477B /* template.c in Sources */, 724FA7631CC03AF60092477B /* var.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 7258EADE134594C4009286F1 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 7258EAED134594EB009286F1 /* rastertopwg.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 726AD6F3135E88F0002C930D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 726AD702135E8A90002C930D /* ippeveprinter.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 729181B1201155C1005E7560 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 729181BF201155F1005E7560 /* testclient.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72CF95E918A19134000FCAE4 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 72CF95F318A19165000FCAE4 /* ippfind.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72F75A4E1336F950004BB496 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 72F75A5C1336F988004BB496 /* cupstestppd.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 72F75A5D1336F9A3004BB496 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 7253C466216ED51500494ADD /* raster-stubs.c in Sources */, 7253C461216ED51500494ADD /* raster-interstub.c in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 270CCDB2135E3CDE00007BE2 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 270CCDA6135E3C9E00007BE2 /* testmime */; targetProxy = 270CCDB1135E3CDE00007BE2 /* PBXContainerItemProxy */; }; 270CCDB8135E3CFD00007BE2 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 270CCDB7135E3CFD00007BE2 /* PBXContainerItemProxy */; }; 270D02141D707E0200EA9403 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 270D02151D707E0200EA9403 /* PBXContainerItemProxy */; }; 270D02281D707E5100EA9403 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 270D02131D707E0200EA9403 /* testcreds */; targetProxy = 270D02271D707E5100EA9403 /* PBXContainerItemProxy */; }; 271284911CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 271284901CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284931CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7581CC03AF60092477B /* libcupscgi_static */; targetProxy = 271284921CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284951CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7011CC03A490092477B /* libcupsimage_static */; targetProxy = 271284941CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284971CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7101CC03A990092477B /* libcupsmime_static */; targetProxy = 271284961CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284991CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7201CC03AAF0092477B /* libcupsppdc_static */; targetProxy = 271284981CC11FA500E517C7 /* PBXContainerItemProxy */; }; 2712849B1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA65E1CC038A50092477B /* test1284 */; targetProxy = 2712849A1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 2712849D1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5241CC0370C0092477B /* testadmin */; targetProxy = 2712849C1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 2712849F1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5371CC037370092477B /* testarray */; targetProxy = 2712849E1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284A11CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6721CC038BD0092477B /* testbackend */; targetProxy = 271284A01CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284A31CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA54A1CC037500092477B /* testcache */; targetProxy = 271284A21CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284A51CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6ED1CC03A210092477B /* testcatalog */; targetProxy = 271284A41CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284A71CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6991CC039200092477B /* testcgi */; targetProxy = 271284A61CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284A91CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA55D1CC037670092477B /* testconflicts */; targetProxy = 271284A81CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284AB1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5701CC037810092477B /* testfile */; targetProxy = 271284AA1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284AD1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6AC1CC0393E0092477B /* testhi */; targetProxy = 271284AC1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284AF1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5831CC037980092477B /* testi18n */; targetProxy = 271284AE1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284B11CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5961CC037AA0092477B /* testipp */; targetProxy = 271284B01CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284B31CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5A91CC037C60092477B /* testlang */; targetProxy = 271284B21CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284B51CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5BC1CC037D90092477B /* testlpd */; targetProxy = 271284B41CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284B71CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6D81CC039DE0092477B /* testnotify */; targetProxy = 271284B61CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284B91CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5CF1CC037F00092477B /* testoptions */; targetProxy = 271284B81CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284BB1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5E31CC038040092477B /* testppd */; targetProxy = 271284BA1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284BD1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA5F71CC038190092477B /* testpwg */; targetProxy = 271284BC1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284BF1CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA60B1CC0382B0092477B /* testraster */; targetProxy = 271284BE1CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284C11CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA61F1CC038410092477B /* testsnmp */; targetProxy = 271284C01CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284C31CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6331CC038560092477B /* testspeed */; targetProxy = 271284C21CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284C51CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6471CC0386E0092477B /* testsub */; targetProxy = 271284C41CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284C71CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6851CC038D90092477B /* testsupplies */; targetProxy = 271284C61CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284C91CC11FA500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA6BF1CC0395A0092477B /* testtemplate */; targetProxy = 271284C81CC11FA500E517C7 /* PBXContainerItemProxy */; }; 271284CB1CC122D000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7581CC03AF60092477B /* libcupscgi_static */; targetProxy = 271284CA1CC122D000E517C7 /* PBXContainerItemProxy */; }; 271284CD1CC122E400E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7201CC03AAF0092477B /* libcupsppdc_static */; targetProxy = 271284CC1CC122E400E517C7 /* PBXContainerItemProxy */; }; 271284CF1CC122ED00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7581CC03AF60092477B /* libcupscgi_static */; targetProxy = 271284CE1CC122ED00E517C7 /* PBXContainerItemProxy */; }; 271284D41CC1232500E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7581CC03AF60092477B /* libcupscgi_static */; targetProxy = 271284D31CC1232500E517C7 /* PBXContainerItemProxy */; }; 271284D61CC1234D00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7101CC03A990092477B /* libcupsmime_static */; targetProxy = 271284D51CC1234D00E517C7 /* PBXContainerItemProxy */; }; 271284E21CC1261900E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271284E31CC1261900E517C7 /* PBXContainerItemProxy */; }; 271284EF1CC1264B00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271284F01CC1264B00E517C7 /* PBXContainerItemProxy */; }; 271285091CC1267A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 2712850A1CC1267A00E517C7 /* PBXContainerItemProxy */; }; 271285161CC1269700E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285171CC1269700E517C7 /* PBXContainerItemProxy */; }; 271285231CC126AA00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285241CC126AA00E517C7 /* PBXContainerItemProxy */; }; 271285301CC1270B00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285311CC1270B00E517C7 /* PBXContainerItemProxy */; }; 2712853D1CC1271E00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 2712853E1CC1271E00E517C7 /* PBXContainerItemProxy */; }; 2712854A1CC1272D00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 2712854B1CC1272D00E517C7 /* PBXContainerItemProxy */; }; 271285571CC1274300E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285581CC1274300E517C7 /* PBXContainerItemProxy */; }; 271285641CC1275200E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285651CC1275200E517C7 /* PBXContainerItemProxy */; }; 271285711CC1276400E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285721CC1276400E517C7 /* PBXContainerItemProxy */; }; 2712857E1CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271284E11CC1261900E517C7 /* cancel */; targetProxy = 2712857D1CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285801CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271284EE1CC1264B00E517C7 /* cupsaccept */; targetProxy = 2712857F1CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285841CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285081CC1267A00E517C7 /* lp */; targetProxy = 271285831CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285861CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285151CC1269700E517C7 /* lpc */; targetProxy = 271285851CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285881CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285221CC126AA00E517C7 /* lpinfo */; targetProxy = 271285871CC1295A00E517C7 /* PBXContainerItemProxy */; }; 2712858A1CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2712852F1CC1270B00E517C7 /* lpmove */; targetProxy = 271285891CC1295A00E517C7 /* PBXContainerItemProxy */; }; 2712858C1CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2712853C1CC1271E00E517C7 /* lpoptions */; targetProxy = 2712858B1CC1295A00E517C7 /* PBXContainerItemProxy */; }; 2712858E1CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285491CC1272D00E517C7 /* lpq */; targetProxy = 2712858D1CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285901CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285561CC1274300E517C7 /* lpr */; targetProxy = 2712858F1CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285921CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285631CC1275200E517C7 /* lprm */; targetProxy = 271285911CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285941CC1295A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285701CC1276400E517C7 /* lpstat */; targetProxy = 271285931CC1295A00E517C7 /* PBXContainerItemProxy */; }; 271285961CC12D1300E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285971CC12D1300E517C7 /* PBXContainerItemProxy */; }; 271285A41CC12D3A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285A51CC12D3A00E517C7 /* PBXContainerItemProxy */; }; 271285B21CC12D4E00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285B31CC12D4E00E517C7 /* PBXContainerItemProxy */; }; 271285C01CC12D5E00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285C11CC12D5E00E517C7 /* PBXContainerItemProxy */; }; 271285CE1CC12DBF00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285CF1CC12DBF00E517C7 /* PBXContainerItemProxy */; }; 271285DB1CC12DDF00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285DC1CC12DDF00E517C7 /* PBXContainerItemProxy */; }; 271285E81CC12E2D00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285E91CC12E2D00E517C7 /* PBXContainerItemProxy */; }; 271285F61CC12EEB00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271285F71CC12EEB00E517C7 /* PBXContainerItemProxy */; }; 271286081CC12F0B00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286091CC12F0B00E517C7 /* PBXContainerItemProxy */; }; 271286181CC12F1A00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286191CC12F1A00E517C7 /* PBXContainerItemProxy */; }; 271286351CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285951CC12D1300E517C7 /* admin.cgi */; targetProxy = 271286341CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286371CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285A31CC12D3A00E517C7 /* classes.cgi */; targetProxy = 271286361CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286391CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285CD1CC12DBF00E517C7 /* commandtops */; targetProxy = 271286381CC12F9000E517C7 /* PBXContainerItemProxy */; }; 2712863B1CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285DA1CC12DDF00E517C7 /* gziptoany */; targetProxy = 2712863A1CC12F9000E517C7 /* PBXContainerItemProxy */; }; 2712863D1CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285B11CC12D4E00E517C7 /* jobs.cgi */; targetProxy = 2712863C1CC12F9000E517C7 /* PBXContainerItemProxy */; }; 2712863F1CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285BF1CC12D5E00E517C7 /* printers.cgi */; targetProxy = 2712863E1CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286411CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285E71CC12E2D00E517C7 /* pstops */; targetProxy = 271286401CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286431CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271285F51CC12EEB00E517C7 /* rastertoepson */; targetProxy = 271286421CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286451CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286051CC12F0B00E517C7 /* rastertohp */; targetProxy = 271286441CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286471CC12F9000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286151CC12F1A00E517C7 /* rastertolabel */; targetProxy = 271286461CC12F9000E517C7 /* PBXContainerItemProxy */; }; 271286581CC1309000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 271286591CC1309000E517C7 /* PBXContainerItemProxy */; }; 2712866E1CC1310E00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 2712866F1CC1310E00E517C7 /* PBXContainerItemProxy */; }; 271286881CC13DC000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 271286891CC13DC000E517C7 /* PBXContainerItemProxy */; }; 271286991CC13DF100E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 2712869A1CC13DF100E517C7 /* PBXContainerItemProxy */; }; 271286AA1CC13DFF00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 271286AB1CC13DFF00E517C7 /* PBXContainerItemProxy */; }; 271286BB1CC13E2100E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286BC1CC13E2100E517C7 /* PBXContainerItemProxy */; }; 271286CC1CC13E5B00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286CD1CC13E5B00E517C7 /* PBXContainerItemProxy */; }; 271286DC1CC13EF400E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286981CC13DF100E517C7 /* po2strings */; targetProxy = 271286DB1CC13EF400E517C7 /* PBXContainerItemProxy */; }; 271286DE1CC13EF400E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286A91CC13DFF00E517C7 /* strings2po */; targetProxy = 271286DD1CC13EF400E517C7 /* PBXContainerItemProxy */; }; 271286E01CC13EF400E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286571CC1309000E517C7 /* tlscheck */; targetProxy = 271286DF1CC13EF400E517C7 /* PBXContainerItemProxy */; }; 271286E21CC13F0100E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286BA1CC13E2100E517C7 /* bcp */; targetProxy = 271286E11CC13F0100E517C7 /* PBXContainerItemProxy */; }; 271286E41CC13F0100E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286CB1CC13E5B00E517C7 /* tbcp */; targetProxy = 271286E31CC13F0100E517C7 /* PBXContainerItemProxy */; }; 271286E61CC13F2000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286E71CC13F2000E517C7 /* PBXContainerItemProxy */; }; 271286F61CC13F3F00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 271286F71CC13F3F00E517C7 /* PBXContainerItemProxy */; }; 271287061CC13F8F00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286E51CC13F2000E517C7 /* mailto */; targetProxy = 271287051CC13F8F00E517C7 /* PBXContainerItemProxy */; }; 271287081CC13F8F00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271286F51CC13F3F00E517C7 /* rss */; targetProxy = 271287071CC13F8F00E517C7 /* PBXContainerItemProxy */; }; 2712870A1CC13FAB00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 2712870B1CC13FAB00E517C7 /* PBXContainerItemProxy */; }; 2712871C1CC13FFA00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 271287091CC13FAB00E517C7 /* mantohtml */; targetProxy = 2712871B1CC13FFA00E517C7 /* PBXContainerItemProxy */; }; 2712872F1CC140DF00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 2712872E1CC140DF00E517C7 /* PBXContainerItemProxy */; }; 271287311CC140DF00E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724FA7201CC03AAF0092477B /* libcupsppdc_static */; targetProxy = 271287301CC140DF00E517C7 /* PBXContainerItemProxy */; }; 271287361CC1411000E517C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2712871E1CC140BE00E517C7 /* genstrings */; targetProxy = 271287351CC1411000E517C7 /* PBXContainerItemProxy */; }; 273B1EC2226B3F2600428143 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 273B1E9A226B3E4800428143 /* ippevepcl */; targetProxy = 273B1EC1226B3F2600428143 /* PBXContainerItemProxy */; }; 273B1EC4226B3F2600428143 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 273B1EAB226B3E5200428143 /* ippeveps */; targetProxy = 273B1EC3226B3F2600428143 /* PBXContainerItemProxy */; }; 273B1EC6226B41E600428143 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 273B1EC5226B41E600428143 /* PBXContainerItemProxy */; }; 273B1EC9226B420500428143 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 273B1EC8226B420500428143 /* PBXContainerItemProxy */; }; 273B1ECC226B421700428143 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 273B1ECB226B421700428143 /* PBXContainerItemProxy */; }; 273BF6C91333B5410022CAAB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 273BF6C81333B5410022CAAB /* PBXContainerItemProxy */; }; 273BF6DE1333B6370022CAAB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 273BF6BC1333B5000022CAAB /* testcups */; targetProxy = 273BF6DD1333B6370022CAAB /* PBXContainerItemProxy */; }; 274770D22345342B0089BC31 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 274770D32345342B0089BC31 /* PBXContainerItemProxy */; }; 274770E42345347D0089BC31 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274770D12345342B0089BC31 /* testthreads */; targetProxy = 274770E32345347D0089BC31 /* PBXContainerItemProxy */; }; 274FF5DC13332CF900317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF5DB13332CF900317ECB /* PBXContainerItemProxy */; }; 274FF5E313332D4300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF5E213332D4300317ECB /* PBXContainerItemProxy */; }; 274FF5E513332D4300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220FAB13330B2200FCA411 /* libcupsmime */; targetProxy = 274FF5E413332D4300317ECB /* PBXContainerItemProxy */; }; 274FF5E713332D4300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220F5A13330A5A00FCA411 /* cupsd */; targetProxy = 274FF5E613332D4300317ECB /* PBXContainerItemProxy */; }; 274FF5E913332D4300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5CB13332B1F00317ECB /* cups-driverd */; targetProxy = 274FF5E813332D4300317ECB /* PBXContainerItemProxy */; }; 274FF5F3133330FD00317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF5F2133330FD00317ECB /* PBXContainerItemProxy */; }; 274FF6201333316200317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 274FF61F1333316200317ECB /* PBXContainerItemProxy */; }; 274FF622133331D300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 274FF621133331D300317ECB /* PBXContainerItemProxy */; }; 274FF6341333335200317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF6331333335200317ECB /* PBXContainerItemProxy */; }; 274FF6391333348400317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6281333333600317ECB /* cups-deviced */; targetProxy = 274FF6381333348400317ECB /* PBXContainerItemProxy */; }; 274FF648133335A300317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF63D1333358B00317ECB /* cups-exec */; targetProxy = 274FF647133335A300317ECB /* PBXContainerItemProxy */; }; 274FF65A133339D900317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF659133339D900317ECB /* PBXContainerItemProxy */; }; 274FF65E13333A3400317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF64E133339C400317ECB /* cups-lpd */; targetProxy = 274FF65D13333A3400317ECB /* PBXContainerItemProxy */; }; 274FF68213333B3C00317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 274FF68113333B3C00317ECB /* PBXContainerItemProxy */; }; 274FF68413333B3C00317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220FAB13330B2200FCA411 /* libcupsmime */; targetProxy = 274FF68313333B3C00317ECB /* PBXContainerItemProxy */; }; 274FF6E21333B33F00317ECB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF67713333B2F00317ECB /* cupsfilter */; targetProxy = 274FF6E11333B33F00317ECB /* PBXContainerItemProxy */; }; 276683661337A9D6000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683651337A9D6000D33D0 /* PBXContainerItemProxy */; }; 2766836B1337AA25000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2766835B1337A9B6000D33D0 /* cupsctl */; targetProxy = 2766836A1337AA25000D33D0 /* PBXContainerItemProxy */; }; 276683AE1337ACF9000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683AD1337ACF9000D33D0 /* PBXContainerItemProxy */; }; 276683B01337ACF9000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 276683AF1337ACF9000D33D0 /* PBXContainerItemProxy */; }; 276683B41337AD18000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683B31337AD18000D33D0 /* PBXContainerItemProxy */; }; 276683B61337AD18000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 276683B51337AD18000D33D0 /* PBXContainerItemProxy */; }; 276683BC1337AE49000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683BB1337AE49000D33D0 /* PBXContainerItemProxy */; }; 276683BE1337AE49000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 276683BD1337AE49000D33D0 /* PBXContainerItemProxy */; }; 276683C01337B1AD000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683BF1337B1AD000D33D0 /* PBXContainerItemProxy */; }; 276683C21337B1AD000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 276683C11337B1AD000D33D0 /* PBXContainerItemProxy */; }; 276683C61337B1BC000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683C51337B1BC000D33D0 /* PBXContainerItemProxy */; }; 276683C81337B1BC000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF5ED133330C800317ECB /* libcupsppdc */; targetProxy = 276683C71337B1BC000D33D0 /* PBXContainerItemProxy */; }; 276683D71337B24A000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2766836F1337AC79000D33D0 /* ppdc */; targetProxy = 276683D61337B24A000D33D0 /* PBXContainerItemProxy */; }; 276683D91337B24A000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2766837C1337AC8C000D33D0 /* ppdhtml */; targetProxy = 276683D81337B24A000D33D0 /* PBXContainerItemProxy */; }; 276683DB1337B24A000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 276683891337AC97000D33D0 /* ppdi */; targetProxy = 276683DA1337B24A000D33D0 /* PBXContainerItemProxy */; }; 276683DD1337B24A000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 276683961337ACA2000D33D0 /* ppdmerge */; targetProxy = 276683DC1337B24A000D33D0 /* PBXContainerItemProxy */; }; 276683DF1337B24A000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 276683A31337ACAB000D33D0 /* ppdpo */; targetProxy = 276683DE1337B24A000D33D0 /* PBXContainerItemProxy */; }; 276683E11337B299000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683E01337B299000D33D0 /* PBXContainerItemProxy */; }; 276683E41337B2BA000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72F75A601336F9A3004BB496 /* libcupsimage */; targetProxy = 276683E31337B2BA000D33D0 /* PBXContainerItemProxy */; }; 276683FC1337F7B3000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 276683FB1337F7B3000D33D0 /* PBXContainerItemProxy */; }; 276683FF1337F7C5000D33D0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 276683EF1337F78E000D33D0 /* ipptool */; targetProxy = 276683FE1337F7C5000D33D0 /* PBXContainerItemProxy */; }; 2767FC4719266A0D000F61D3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 2767FC4819266A0D000F61D3 /* PBXContainerItemProxy */; }; 2767FC5419267469000F61D3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 276683EF1337F78E000D33D0 /* ipptool */; targetProxy = 2767FC5319267469000F61D3 /* PBXContainerItemProxy */; }; 2767FC5619267469000F61D3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2767FC4619266A0D000F61D3 /* testdest */; targetProxy = 2767FC5519267469000F61D3 /* PBXContainerItemProxy */; }; 278C58D6136B641D00836530 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 278C58CA136B640300836530 /* testhttp */; targetProxy = 278C58D5136B641D00836530 /* PBXContainerItemProxy */; }; 278C58D8136B642F00836530 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 278C58D7136B642F00836530 /* PBXContainerItemProxy */; }; 27A034841A8BDC4A00650675 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 27A034831A8BDC4A00650675 /* PBXContainerItemProxy */; }; 27A034871A8BDC6900650675 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 27A0347A1A8BDB1200650675 /* lpadmin */; targetProxy = 27A034861A8BDC6900650675 /* PBXContainerItemProxy */; }; 720DD6CF1358FD790064AA82 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 720DD6CE1358FD790064AA82 /* PBXContainerItemProxy */; }; 720DD6D11358FDBE0064AA82 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 720DD6C11358FD5F0064AA82 /* snmp */; targetProxy = 720DD6D01358FDBE0064AA82 /* PBXContainerItemProxy */; }; 72220F6513330A6500FCA411 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 72220F6413330A6500FCA411 /* PBXContainerItemProxy */; }; 72220FBC13330C0500FCA411 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 72220FBB13330C0500FCA411 /* PBXContainerItemProxy */; }; 72220FBE13330C0B00FCA411 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220FAB13330B2200FCA411 /* libcupsmime */; targetProxy = 72220FBD13330C0B00FCA411 /* PBXContainerItemProxy */; }; 724379071333E49B009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724379061333E49B009631B9 /* PBXContainerItemProxy */; }; 724379111333E4EA009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724378FC1333E43E009631B9 /* ipp */; targetProxy = 724379101333E4EA009631B9 /* PBXContainerItemProxy */; }; 724379261333E932009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724379251333E932009631B9 /* PBXContainerItemProxy */; }; 7243792B1333E962009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724379171333E532009631B9 /* lpd */; targetProxy = 7243792A1333E962009631B9 /* PBXContainerItemProxy */; }; 7243793A1333FB95009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724379391333FB95009631B9 /* PBXContainerItemProxy */; }; 7243793F1333FD23009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 7243792F1333FB85009631B9 /* socket */; targetProxy = 7243793E1333FD23009631B9 /* PBXContainerItemProxy */; }; 724379531333FECE009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 724379461333FEA9009631B9 /* dnssd */; targetProxy = 724379521333FECE009631B9 /* PBXContainerItemProxy */; }; 724379551333FEFE009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724379541333FEFE009631B9 /* PBXContainerItemProxy */; }; 724379651333FF2E009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724379641333FF2E009631B9 /* PBXContainerItemProxy */; }; 724379C31333FF7D009631B9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 7243795A1333FF1D009631B9 /* usb */; targetProxy = 724379C21333FF7D009631B9 /* PBXContainerItemProxy */; }; 724FA5251CC0370C0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5261CC0370C0092477B /* PBXContainerItemProxy */; }; 724FA5381CC037370092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5391CC037370092477B /* PBXContainerItemProxy */; }; 724FA54B1CC037500092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA54C1CC037500092477B /* PBXContainerItemProxy */; }; 724FA55E1CC037670092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA55F1CC037670092477B /* PBXContainerItemProxy */; }; 724FA5711CC037810092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5721CC037810092477B /* PBXContainerItemProxy */; }; 724FA5841CC037980092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5851CC037980092477B /* PBXContainerItemProxy */; }; 724FA5971CC037AA0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5981CC037AA0092477B /* PBXContainerItemProxy */; }; 724FA5AA1CC037C60092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5AB1CC037C60092477B /* PBXContainerItemProxy */; }; 724FA5BD1CC037D90092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5BE1CC037D90092477B /* PBXContainerItemProxy */; }; 724FA5D01CC037F00092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5D11CC037F00092477B /* PBXContainerItemProxy */; }; 724FA5E41CC038040092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5E51CC038040092477B /* PBXContainerItemProxy */; }; 724FA5F81CC038190092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA5F91CC038190092477B /* PBXContainerItemProxy */; }; 724FA60C1CC0382B0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA60D1CC0382B0092477B /* PBXContainerItemProxy */; }; 724FA6201CC038410092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6211CC038410092477B /* PBXContainerItemProxy */; }; 724FA6341CC038560092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6351CC038560092477B /* PBXContainerItemProxy */; }; 724FA6481CC0386E0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6491CC0386E0092477B /* PBXContainerItemProxy */; }; 724FA65F1CC038A50092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6601CC038A50092477B /* PBXContainerItemProxy */; }; 724FA6731CC038BD0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6741CC038BD0092477B /* PBXContainerItemProxy */; }; 724FA6861CC038D90092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6871CC038D90092477B /* PBXContainerItemProxy */; }; 724FA69A1CC039200092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA69B1CC039200092477B /* PBXContainerItemProxy */; }; 724FA6AD1CC0393E0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6AE1CC0393E0092477B /* PBXContainerItemProxy */; }; 724FA6C01CC0395A0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6C11CC0395A0092477B /* PBXContainerItemProxy */; }; 724FA6D91CC039DE0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6DA1CC039DE0092477B /* PBXContainerItemProxy */; }; 724FA6EE1CC03A210092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 724FA6EF1CC03A210092477B /* PBXContainerItemProxy */; }; 724FA7421CC03ACC0092477B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 724FA7431CC03ACC0092477B /* PBXContainerItemProxy */; }; 7258EAEF13459ADA009286F1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 7258EAE1134594C4009286F1 /* rastertopwg */; targetProxy = 7258EAEE13459ADA009286F1 /* PBXContainerItemProxy */; }; 7258EAF113459B67009286F1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 7258EAF013459B67009286F1 /* PBXContainerItemProxy */; }; 726AD704135E8AA1002C930D /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 726AD6F6135E88F0002C930D /* ippeveprinter */; targetProxy = 726AD703135E8AA1002C930D /* PBXContainerItemProxy */; }; 729181AF201155C1005E7560 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 729181B0201155C1005E7560 /* PBXContainerItemProxy */; }; 729181C12011560E005E7560 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2712866B1CC1310E00E517C7 /* rasterbench */; targetProxy = 729181C02011560E005E7560 /* PBXContainerItemProxy */; }; 729181C32011560E005E7560 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 729181AC201155C1005E7560 /* testclient */; targetProxy = 729181C22011560E005E7560 /* PBXContainerItemProxy */; }; 72BEA8D419AFA89C0085F0F3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 726AD6F6135E88F0002C930D /* ippeveprinter */; targetProxy = 72BEA8D319AFA89C0085F0F3 /* PBXContainerItemProxy */; }; 72BEA8D619AFA8A00085F0F3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72CF95E618A19134000FCAE4 /* ippfind */; targetProxy = 72BEA8D519AFA8A00085F0F3 /* PBXContainerItemProxy */; }; 72BEA8D819AFA8BB0085F0F3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 274FF6891333B1C400317ECB /* libcups_static */; targetProxy = 72BEA8D719AFA8BB0085F0F3 /* PBXContainerItemProxy */; }; 72CF95E718A19134000FCAE4 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 72CF95E818A19134000FCAE4 /* PBXContainerItemProxy */; }; 72F75A661336FA30004BB496 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72220EAD1333047D00FCA411 /* libcups */; targetProxy = 72F75A651336FA30004BB496 /* PBXContainerItemProxy */; }; 72F75A711336FACD004BB496 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72F75A601336F9A3004BB496 /* libcupsimage */; targetProxy = 72F75A701336FACD004BB496 /* PBXContainerItemProxy */; }; 72F75A731336FACD004BB496 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 72F75A511336F950004BB496 /* cupstestppd */; targetProxy = 72F75A721336FACD004BB496 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ 270696581CADF3E200FFE5FB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COMBINE_HIDPI_IMAGES = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; SDKROOT = iphoneos; SKIP_INSTALL = YES; STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; }; name = Debug; }; 270696591CADF3E200FFE5FB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COMBINE_HIDPI_IMAGES = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; SDKROOT = iphoneos; SKIP_INSTALL = YES; STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; }; name = Release; }; 270CCDAD135E3C9E00007BE2 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 270CCDAE135E3C9E00007BE2 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 270D02221D707E0200EA9403 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 270D02231D707E0200EA9403 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271284EA1CC1261900E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271284EB1CC1261900E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271284F71CC1264B00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271284F81CC1264B00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285111CC1267A00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285121CC1267A00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712851E1CC1269700E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712851F1CC1269700E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712852B1CC126AA00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712852C1CC126AA00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285381CC1270B00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285391CC1270B00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285451CC1271E00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285461CC1271E00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285521CC1272D00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285531CC1272D00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712855F1CC1274300E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285601CC1274300E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712856C1CC1275200E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712856D1CC1275200E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285791CC1276400E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712857A1CC1276400E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712859E1CC12D1300E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712859F1CC12D1300E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285AD1CC12D3A00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285AE1CC12D3A00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285BB1CC12D4E00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285BC1CC12D4E00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285C91CC12D5E00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285CA1CC12D5E00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = "/usr/libexec/cups/cgi-bin"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285D61CC12DBF00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285D71CC12DBF00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285E31CC12DDF00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285E41CC12DDF00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285F01CC12E2D00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285F11CC12E2D00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271285FE1CC12EEB00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271285FF1CC12EEB00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286111CC12F0B00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286121CC12F0B00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286211CC12F1A00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286221CC12F1A00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286651CC1309000E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; GCC_WARN_PEDANTIC = NO; PRODUCT_NAME = "$(TARGET_NAME)"; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited) $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks"; }; name = Debug; }; 271286661CC1309000E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; GCC_WARN_PEDANTIC = NO; PRODUCT_NAME = "$(TARGET_NAME)"; SYSTEM_FRAMEWORK_SEARCH_PATHS = "$(inherited) $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks"; }; name = Release; }; 2712867B1CC1310E00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712867C1CC1310E00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286941CC13DC000E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286951CC13DC000E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286A51CC13DF100E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286A61CC13DF100E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286B61CC13DFF00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286B71CC13DFF00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286C71CC13E2100E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/monitor; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286C81CC13E2100E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/monitor; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286D71CC13E5B00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/monitor; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286D81CC13E5B00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/monitor; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271286F11CC13F2000E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/notifier; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271286F21CC13F2000E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/notifier; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271287011CC13F3F00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/notifier; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271287021CC13F3F00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/notifier; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 271287161CC13FAB00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 271287171CC13FAB00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2712872A1CC140BE00E517C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2712872B1CC140BE00E517C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 273B1EA8226B3E4800428143 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/ippeveprinter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 273B1EA9226B3E4800428143 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/ippeveprinter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 273B1EB9226B3E5200428143 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/ippeveprinter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 273B1EBA226B3E5200428143 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/ippeveprinter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 273BF6C41333B5000022CAAB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 273BF6C51333B5000022CAAB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 273BF6DB1333B6270022CAAB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 273BF6DC1333B6270022CAAB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274770DE2345342B0089BC31 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274770DF2345342B0089BC31 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF5D313332B1F00317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274FF5D413332B1F00317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF5E013332D3100317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; name = Debug; }; 274FF5E113332D3100317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; name = Release; }; 274FF5F0133330C800317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Debug; }; 274FF5F1133330C800317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Release; }; 274FF6301333333600317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274FF6311333333600317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF6451333358C00317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274FF6461333358C00317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF656133339C400317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274FF657133339C400317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/daemon; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF67F13333B2F00317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 274FF68013333B2F00317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 274FF6DE1333B1C400317ECB /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/local/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = libcups_static; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static; }; name = Debug; }; 274FF6DF1333B1C400317ECB /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/local/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = libcups_static; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static; }; name = Release; }; 276683631337A9B6000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683641337A9B6000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 276683771337AC79000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683781337AC79000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 276683841337AC8C000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683851337AC8C000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 276683911337AC97000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683921337AC97000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2766839E1337ACA2000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 2766839F1337ACA2000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 276683AB1337ACAB000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683AC1337ACAB000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 276683F71337F78F000D33D0 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 276683F81337F78F000D33D0 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 2767FC4E19266A0D000F61D3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = testdest; }; name = Debug; }; 2767FC4F19266A0D000F61D3 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = testdest; }; name = Release; }; 278C58D1136B640300836530 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 278C58D2136B640300836530 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 27A0347F1A8BDB1300650675 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "-"; COPY_PHASE_STRIP = NO; DEAD_CODE_STRIPPING = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; INSTALL_PATH = /usr/sbin; MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; name = Debug; }; 27A034801A8BDB1300650675 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "-"; COPY_PHASE_STRIP = YES; DEAD_CODE_STRIPPING = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; INSTALL_PATH = /usr/sbin; MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)"; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; }; name = Release; }; 720DD6C91358FD5F0064AA82 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 720DD6CA1358FD5F0064AA82 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 72220EB01333047D00FCA411 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; DYLIB_COMPATIBILITY_VERSION = 2.0.0; DYLIB_CURRENT_VERSION = 2.12.0; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Debug; }; 72220EB11333047D00FCA411 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; DYLIB_COMPATIBILITY_VERSION = 2.0.0; DYLIB_CURRENT_VERSION = 2.12.0; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Release; }; 72220F6213330A5A00FCA411 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 72220F6313330A5A00FCA411 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/sbin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 72220FAE13330B2300FCA411 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 72220FAF13330B2300FCA411 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724379041333E43E009631B9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_MODE_FLAG = "u+rwX,go-rwX"; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724379051333E43E009631B9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_MODE_FLAG = "u+rwX,go-rwX"; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 7243791F1333E532009631B9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724379201333E532009631B9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724379371333FB85009631B9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724379381333FB85009631B9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 7243794E1333FEA9009631B9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 7243794F1333FEA9009631B9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724379621333FF1D009631B9 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724379631333FF1D009631B9 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/backend; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5331CC0370C0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5341CC0370C0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5461CC037370092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5471CC037370092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5591CC037500092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA55A1CC037500092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA56C1CC037670092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA56D1CC037670092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA57F1CC037810092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5801CC037810092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5921CC037980092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5931CC037980092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5A51CC037AA0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5A61CC037AA0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5B81CC037C60092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5B91CC037C60092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5CB1CC037D90092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5CC1CC037D90092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5DF1CC037F00092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5E01CC037F00092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA5F31CC038040092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA5F41CC038040092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6071CC038190092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6081CC038190092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA61B1CC0382B0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA61C1CC0382B0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA62F1CC038410092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6301CC038410092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6431CC038560092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6441CC038560092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6571CC0386E0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6581CC0386E0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA66E1CC038A50092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA66F1CC038A50092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6811CC038BD0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6821CC038BD0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6951CC038D90092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6961CC038D90092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6A81CC039200092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6A91CC039200092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6BB1CC0393E0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6BC1CC0393E0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6CF1CC0395A0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6D01CC0395A0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6E81CC039DE0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6E91CC039DE0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA6FD1CC03A210092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA6FE1CC03A210092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA70D1CC03A490092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA70E1CC03A490092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA71D1CC03A990092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA71E1CC03A990092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA73E1CC03AAF0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Debug; }; 724FA73F1CC03AAF0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/cups; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = /usr/include/cups; }; name = Release; }; 724FA74D1CC03ACC0092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA74E1CC03ACC0092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 724FA7691CC03AF60092477B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 724FA76A1CC03AF60092477B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_EXTENSION = a; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; MACH_O_TYPE = staticlib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 7258EAEA134594C4009286F1 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 7258EAEB134594C4009286F1 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/libexec/cups/filter; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 726AD6FF135E88F1002C930D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 726AD700135E88F1002C930D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 729181BC201155C1005E7560 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 729181BD201155C1005E7560 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 72BF963C1333042100B1EAD7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPRESSION = lossless; CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; CLANG_WARN_ATOMIC_IMPLICIT_SEQ_CST = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_INTERFACE_IVARS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_PREPROCESSOR_DEFINITIONS = DEBUG; GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES; GCC_TREAT_WARNINGS_AS_ERRORS = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; GCC_WARN_PEDANTIC = YES; GCC_WARN_SHADOW = YES; GCC_WARN_SIGN_COMPARE = YES; GCC_WARN_STRICT_SELECTOR_MATCH = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ., .., ); ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ( "-D_CUPS_SOURCE", "-Wno-shorten-64-to-32", ); USE_HEADERMAP = NO; WARNING_CFLAGS = "-Wno-deprecated-declarations"; }; name = Debug; }; 72BF963D1333042100B1EAD7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPRESSION = "respect-asset-catalog"; CLANG_ANALYZER_GCD_PERFORMANCE = YES; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES; CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES; CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES; CLANG_WARN_ATOMIC_IMPLICIT_SEQ_CST = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_INTERFACE_IVARS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES; GCC_TREAT_WARNINGS_AS_ERRORS = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES; GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; GCC_WARN_PEDANTIC = YES; GCC_WARN_SHADOW = YES; GCC_WARN_SIGN_COMPARE = YES; GCC_WARN_STRICT_SELECTOR_MATCH = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ., .., ); OTHER_CFLAGS = ( "-D_CUPS_SOURCE", "-Wno-shorten-64-to-32", ); USE_HEADERMAP = NO; WARNING_CFLAGS = "-Wno-deprecated-declarations"; }; name = Release; }; 72CF95EF18A19134000FCAE4 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "ipptool copy"; }; name = Debug; }; 72CF95F018A19134000FCAE4 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "ipptool copy"; }; name = Release; }; 72F75A591336F951004BB496 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 72F75A5A1336F951004BB496 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; CODE_SIGN_IDENTITY = "-"; DEAD_CODE_STRIPPING = YES; INSTALL_PATH = /usr/bin; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; 72F75A631336F9A3004BB496 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; 72F75A641336F9A3004BB496 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_OBJC_WEAK = YES; COMBINE_HIDPI_IMAGES = YES; DEAD_CODE_STRIPPING = YES; EXECUTABLE_PREFIX = ""; INSTALL_PATH = /usr/lib; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 270696571CADF3E200FFE5FB /* Build configuration list for PBXNativeTarget "libcups_ios" */ = { isa = XCConfigurationList; buildConfigurations = ( 270696581CADF3E200FFE5FB /* Debug */, 270696591CADF3E200FFE5FB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 270CCDAF135E3C9E00007BE2 /* Build configuration list for PBXNativeTarget "testmime" */ = { isa = XCConfigurationList; buildConfigurations = ( 270CCDAD135E3C9E00007BE2 /* Debug */, 270CCDAE135E3C9E00007BE2 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 270D02211D707E0200EA9403 /* Build configuration list for PBXNativeTarget "testcreds" */ = { isa = XCConfigurationList; buildConfigurations = ( 270D02221D707E0200EA9403 /* Debug */, 270D02231D707E0200EA9403 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271284E91CC1261900E517C7 /* Build configuration list for PBXNativeTarget "cancel" */ = { isa = XCConfigurationList; buildConfigurations = ( 271284EA1CC1261900E517C7 /* Debug */, 271284EB1CC1261900E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271284F61CC1264B00E517C7 /* Build configuration list for PBXNativeTarget "cupsaccept" */ = { isa = XCConfigurationList; buildConfigurations = ( 271284F71CC1264B00E517C7 /* Debug */, 271284F81CC1264B00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285101CC1267A00E517C7 /* Build configuration list for PBXNativeTarget "lp" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285111CC1267A00E517C7 /* Debug */, 271285121CC1267A00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712851D1CC1269700E517C7 /* Build configuration list for PBXNativeTarget "lpc" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712851E1CC1269700E517C7 /* Debug */, 2712851F1CC1269700E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712852A1CC126AA00E517C7 /* Build configuration list for PBXNativeTarget "lpinfo" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712852B1CC126AA00E517C7 /* Debug */, 2712852C1CC126AA00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285371CC1270B00E517C7 /* Build configuration list for PBXNativeTarget "lpmove" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285381CC1270B00E517C7 /* Debug */, 271285391CC1270B00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285441CC1271E00E517C7 /* Build configuration list for PBXNativeTarget "lpoptions" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285451CC1271E00E517C7 /* Debug */, 271285461CC1271E00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285511CC1272D00E517C7 /* Build configuration list for PBXNativeTarget "lpq" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285521CC1272D00E517C7 /* Debug */, 271285531CC1272D00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712855E1CC1274300E517C7 /* Build configuration list for PBXNativeTarget "lpr" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712855F1CC1274300E517C7 /* Debug */, 271285601CC1274300E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712856B1CC1275200E517C7 /* Build configuration list for PBXNativeTarget "lprm" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712856C1CC1275200E517C7 /* Debug */, 2712856D1CC1275200E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285781CC1276400E517C7 /* Build configuration list for PBXNativeTarget "lpstat" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285791CC1276400E517C7 /* Debug */, 2712857A1CC1276400E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712859D1CC12D1300E517C7 /* Build configuration list for PBXNativeTarget "admin.cgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712859E1CC12D1300E517C7 /* Debug */, 2712859F1CC12D1300E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285AC1CC12D3A00E517C7 /* Build configuration list for PBXNativeTarget "classes.cgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285AD1CC12D3A00E517C7 /* Debug */, 271285AE1CC12D3A00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285BA1CC12D4E00E517C7 /* Build configuration list for PBXNativeTarget "jobs.cgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285BB1CC12D4E00E517C7 /* Debug */, 271285BC1CC12D4E00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285C81CC12D5E00E517C7 /* Build configuration list for PBXNativeTarget "printers.cgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285C91CC12D5E00E517C7 /* Debug */, 271285CA1CC12D5E00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285D51CC12DBF00E517C7 /* Build configuration list for PBXNativeTarget "commandtops" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285D61CC12DBF00E517C7 /* Debug */, 271285D71CC12DBF00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285E21CC12DDF00E517C7 /* Build configuration list for PBXNativeTarget "gziptoany" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285E31CC12DDF00E517C7 /* Debug */, 271285E41CC12DDF00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285EF1CC12E2D00E517C7 /* Build configuration list for PBXNativeTarget "pstops" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285F01CC12E2D00E517C7 /* Debug */, 271285F11CC12E2D00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271285FD1CC12EEB00E517C7 /* Build configuration list for PBXNativeTarget "rastertoepson" */ = { isa = XCConfigurationList; buildConfigurations = ( 271285FE1CC12EEB00E517C7 /* Debug */, 271285FF1CC12EEB00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286101CC12F0B00E517C7 /* Build configuration list for PBXNativeTarget "rastertohp" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286111CC12F0B00E517C7 /* Debug */, 271286121CC12F0B00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286201CC12F1A00E517C7 /* Build configuration list for PBXNativeTarget "rastertolabel" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286211CC12F1A00E517C7 /* Debug */, 271286221CC12F1A00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286641CC1309000E517C7 /* Build configuration list for PBXNativeTarget "tlscheck" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286651CC1309000E517C7 /* Debug */, 271286661CC1309000E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2712867A1CC1310E00E517C7 /* Build configuration list for PBXNativeTarget "rasterbench" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712867B1CC1310E00E517C7 /* Debug */, 2712867C1CC1310E00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286931CC13DC000E517C7 /* Build configuration list for PBXNativeTarget "checkpo" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286941CC13DC000E517C7 /* Debug */, 271286951CC13DC000E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286A41CC13DF100E517C7 /* Build configuration list for PBXNativeTarget "po2strings" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286A51CC13DF100E517C7 /* Debug */, 271286A61CC13DF100E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286B51CC13DFF00E517C7 /* Build configuration list for PBXNativeTarget "strings2po" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286B61CC13DFF00E517C7 /* Debug */, 271286B71CC13DFF00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286C61CC13E2100E517C7 /* Build configuration list for PBXNativeTarget "bcp" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286C71CC13E2100E517C7 /* Debug */, 271286C81CC13E2100E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286D61CC13E5B00E517C7 /* Build configuration list for PBXNativeTarget "tbcp" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286D71CC13E5B00E517C7 /* Debug */, 271286D81CC13E5B00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271286F01CC13F2000E517C7 /* Build configuration list for PBXNativeTarget "mailto" */ = { isa = XCConfigurationList; buildConfigurations = ( 271286F11CC13F2000E517C7 /* Debug */, 271286F21CC13F2000E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271287001CC13F3F00E517C7 /* Build configuration list for PBXNativeTarget "rss" */ = { isa = XCConfigurationList; buildConfigurations = ( 271287011CC13F3F00E517C7 /* Debug */, 271287021CC13F3F00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271287151CC13FAB00E517C7 /* Build configuration list for PBXNativeTarget "mantohtml" */ = { isa = XCConfigurationList; buildConfigurations = ( 271287161CC13FAB00E517C7 /* Debug */, 271287171CC13FAB00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 271287291CC140BE00E517C7 /* Build configuration list for PBXNativeTarget "genstrings" */ = { isa = XCConfigurationList; buildConfigurations = ( 2712872A1CC140BE00E517C7 /* Debug */, 2712872B1CC140BE00E517C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 273B1EA7226B3E4800428143 /* Build configuration list for PBXNativeTarget "ippevepcl" */ = { isa = XCConfigurationList; buildConfigurations = ( 273B1EA8226B3E4800428143 /* Debug */, 273B1EA9226B3E4800428143 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 273B1EB8226B3E5200428143 /* Build configuration list for PBXNativeTarget "ippeveps" */ = { isa = XCConfigurationList; buildConfigurations = ( 273B1EB9226B3E5200428143 /* Debug */, 273B1EBA226B3E5200428143 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 273BF6C31333B5000022CAAB /* Build configuration list for PBXNativeTarget "testcups" */ = { isa = XCConfigurationList; buildConfigurations = ( 273BF6C41333B5000022CAAB /* Debug */, 273BF6C51333B5000022CAAB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 273BF6DA1333B6270022CAAB /* Build configuration list for PBXAggregateTarget "Tests" */ = { isa = XCConfigurationList; buildConfigurations = ( 273BF6DB1333B6270022CAAB /* Debug */, 273BF6DC1333B6270022CAAB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274770DD2345342B0089BC31 /* Build configuration list for PBXNativeTarget "testthreads" */ = { isa = XCConfigurationList; buildConfigurations = ( 274770DE2345342B0089BC31 /* Debug */, 274770DF2345342B0089BC31 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF5D213332B1F00317ECB /* Build configuration list for PBXNativeTarget "cups-driverd" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF5D313332B1F00317ECB /* Debug */, 274FF5D413332B1F00317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF5DF13332D3100317ECB /* Build configuration list for PBXAggregateTarget "All" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF5E013332D3100317ECB /* Debug */, 274FF5E113332D3100317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF5EF133330C800317ECB /* Build configuration list for PBXNativeTarget "libcupsppdc" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF5F0133330C800317ECB /* Debug */, 274FF5F1133330C800317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF62F1333333600317ECB /* Build configuration list for PBXNativeTarget "cups-deviced" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF6301333333600317ECB /* Debug */, 274FF6311333333600317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF6441333358C00317ECB /* Build configuration list for PBXNativeTarget "cups-exec" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF6451333358C00317ECB /* Debug */, 274FF6461333358C00317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF655133339C400317ECB /* Build configuration list for PBXNativeTarget "cups-lpd" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF656133339C400317ECB /* Debug */, 274FF657133339C400317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF67E13333B2F00317ECB /* Build configuration list for PBXNativeTarget "cupsfilter" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF67F13333B2F00317ECB /* Debug */, 274FF68013333B2F00317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 274FF6DD1333B1C400317ECB /* Build configuration list for PBXNativeTarget "libcups_static" */ = { isa = XCConfigurationList; buildConfigurations = ( 274FF6DE1333B1C400317ECB /* Debug */, 274FF6DF1333B1C400317ECB /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683621337A9B6000D33D0 /* Build configuration list for PBXNativeTarget "cupsctl" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683631337A9B6000D33D0 /* Debug */, 276683641337A9B6000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683761337AC79000D33D0 /* Build configuration list for PBXNativeTarget "ppdc" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683771337AC79000D33D0 /* Debug */, 276683781337AC79000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683831337AC8C000D33D0 /* Build configuration list for PBXNativeTarget "ppdhtml" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683841337AC8C000D33D0 /* Debug */, 276683851337AC8C000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683901337AC97000D33D0 /* Build configuration list for PBXNativeTarget "ppdi" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683911337AC97000D33D0 /* Debug */, 276683921337AC97000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2766839D1337ACA2000D33D0 /* Build configuration list for PBXNativeTarget "ppdmerge" */ = { isa = XCConfigurationList; buildConfigurations = ( 2766839E1337ACA2000D33D0 /* Debug */, 2766839F1337ACA2000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683AA1337ACAB000D33D0 /* Build configuration list for PBXNativeTarget "ppdpo" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683AB1337ACAB000D33D0 /* Debug */, 276683AC1337ACAB000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 276683F61337F78F000D33D0 /* Build configuration list for PBXNativeTarget "ipptool" */ = { isa = XCConfigurationList; buildConfigurations = ( 276683F71337F78F000D33D0 /* Debug */, 276683F81337F78F000D33D0 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2767FC4D19266A0D000F61D3 /* Build configuration list for PBXNativeTarget "testdest" */ = { isa = XCConfigurationList; buildConfigurations = ( 2767FC4E19266A0D000F61D3 /* Debug */, 2767FC4F19266A0D000F61D3 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 278C58D3136B640300836530 /* Build configuration list for PBXNativeTarget "testhttp" */ = { isa = XCConfigurationList; buildConfigurations = ( 278C58D1136B640300836530 /* Debug */, 278C58D2136B640300836530 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 27A034811A8BDB1300650675 /* Build configuration list for PBXNativeTarget "lpadmin" */ = { isa = XCConfigurationList; buildConfigurations = ( 27A0347F1A8BDB1300650675 /* Debug */, 27A034801A8BDB1300650675 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 720DD6CB1358FD600064AA82 /* Build configuration list for PBXNativeTarget "snmp" */ = { isa = XCConfigurationList; buildConfigurations = ( 720DD6C91358FD5F0064AA82 /* Debug */, 720DD6CA1358FD5F0064AA82 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72220EB21333047D00FCA411 /* Build configuration list for PBXNativeTarget "libcups" */ = { isa = XCConfigurationList; buildConfigurations = ( 72220EB01333047D00FCA411 /* Debug */, 72220EB11333047D00FCA411 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72220F6113330A5A00FCA411 /* Build configuration list for PBXNativeTarget "cupsd" */ = { isa = XCConfigurationList; buildConfigurations = ( 72220F6213330A5A00FCA411 /* Debug */, 72220F6313330A5A00FCA411 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72220FAD13330B2300FCA411 /* Build configuration list for PBXNativeTarget "libcupsmime" */ = { isa = XCConfigurationList; buildConfigurations = ( 72220FAE13330B2300FCA411 /* Debug */, 72220FAF13330B2300FCA411 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724379031333E43E009631B9 /* Build configuration list for PBXNativeTarget "ipp" */ = { isa = XCConfigurationList; buildConfigurations = ( 724379041333E43E009631B9 /* Debug */, 724379051333E43E009631B9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 7243791E1333E532009631B9 /* Build configuration list for PBXNativeTarget "lpd" */ = { isa = XCConfigurationList; buildConfigurations = ( 7243791F1333E532009631B9 /* Debug */, 724379201333E532009631B9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724379361333FB85009631B9 /* Build configuration list for PBXNativeTarget "socket" */ = { isa = XCConfigurationList; buildConfigurations = ( 724379371333FB85009631B9 /* Debug */, 724379381333FB85009631B9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 7243794D1333FEA9009631B9 /* Build configuration list for PBXNativeTarget "dnssd" */ = { isa = XCConfigurationList; buildConfigurations = ( 7243794E1333FEA9009631B9 /* Debug */, 7243794F1333FEA9009631B9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724379611333FF1D009631B9 /* Build configuration list for PBXNativeTarget "usb" */ = { isa = XCConfigurationList; buildConfigurations = ( 724379621333FF1D009631B9 /* Debug */, 724379631333FF1D009631B9 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5321CC0370C0092477B /* Build configuration list for PBXNativeTarget "testadmin" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5331CC0370C0092477B /* Debug */, 724FA5341CC0370C0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5451CC037370092477B /* Build configuration list for PBXNativeTarget "testarray" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5461CC037370092477B /* Debug */, 724FA5471CC037370092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5581CC037500092477B /* Build configuration list for PBXNativeTarget "testcache" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5591CC037500092477B /* Debug */, 724FA55A1CC037500092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA56B1CC037670092477B /* Build configuration list for PBXNativeTarget "testconflicts" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA56C1CC037670092477B /* Debug */, 724FA56D1CC037670092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA57E1CC037810092477B /* Build configuration list for PBXNativeTarget "testfile" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA57F1CC037810092477B /* Debug */, 724FA5801CC037810092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5911CC037980092477B /* Build configuration list for PBXNativeTarget "testi18n" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5921CC037980092477B /* Debug */, 724FA5931CC037980092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5A41CC037AA0092477B /* Build configuration list for PBXNativeTarget "testipp" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5A51CC037AA0092477B /* Debug */, 724FA5A61CC037AA0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5B71CC037C60092477B /* Build configuration list for PBXNativeTarget "testlang" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5B81CC037C60092477B /* Debug */, 724FA5B91CC037C60092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5CA1CC037D90092477B /* Build configuration list for PBXNativeTarget "testlpd" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5CB1CC037D90092477B /* Debug */, 724FA5CC1CC037D90092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5DE1CC037F00092477B /* Build configuration list for PBXNativeTarget "testoptions" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5DF1CC037F00092477B /* Debug */, 724FA5E01CC037F00092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA5F21CC038040092477B /* Build configuration list for PBXNativeTarget "testppd" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA5F31CC038040092477B /* Debug */, 724FA5F41CC038040092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6061CC038190092477B /* Build configuration list for PBXNativeTarget "testpwg" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6071CC038190092477B /* Debug */, 724FA6081CC038190092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA61A1CC0382B0092477B /* Build configuration list for PBXNativeTarget "testraster" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA61B1CC0382B0092477B /* Debug */, 724FA61C1CC0382B0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA62E1CC038410092477B /* Build configuration list for PBXNativeTarget "testsnmp" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA62F1CC038410092477B /* Debug */, 724FA6301CC038410092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6421CC038560092477B /* Build configuration list for PBXNativeTarget "testspeed" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6431CC038560092477B /* Debug */, 724FA6441CC038560092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6561CC0386E0092477B /* Build configuration list for PBXNativeTarget "testsub" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6571CC0386E0092477B /* Debug */, 724FA6581CC0386E0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA66D1CC038A50092477B /* Build configuration list for PBXNativeTarget "test1284" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA66E1CC038A50092477B /* Debug */, 724FA66F1CC038A50092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6801CC038BD0092477B /* Build configuration list for PBXNativeTarget "testbackend" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6811CC038BD0092477B /* Debug */, 724FA6821CC038BD0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6941CC038D90092477B /* Build configuration list for PBXNativeTarget "testsupplies" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6951CC038D90092477B /* Debug */, 724FA6961CC038D90092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6A71CC039200092477B /* Build configuration list for PBXNativeTarget "testcgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6A81CC039200092477B /* Debug */, 724FA6A91CC039200092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6BA1CC0393E0092477B /* Build configuration list for PBXNativeTarget "testhi" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6BB1CC0393E0092477B /* Debug */, 724FA6BC1CC0393E0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6CE1CC0395A0092477B /* Build configuration list for PBXNativeTarget "testtemplate" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6CF1CC0395A0092477B /* Debug */, 724FA6D01CC0395A0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6E71CC039DE0092477B /* Build configuration list for PBXNativeTarget "testnotify" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6E81CC039DE0092477B /* Debug */, 724FA6E91CC039DE0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA6FC1CC03A210092477B /* Build configuration list for PBXNativeTarget "testcatalog" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA6FD1CC03A210092477B /* Debug */, 724FA6FE1CC03A210092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA70C1CC03A490092477B /* Build configuration list for PBXNativeTarget "libcupsimage_static" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA70D1CC03A490092477B /* Debug */, 724FA70E1CC03A490092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA71C1CC03A990092477B /* Build configuration list for PBXNativeTarget "libcupsmime_static" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA71D1CC03A990092477B /* Debug */, 724FA71E1CC03A990092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA73D1CC03AAF0092477B /* Build configuration list for PBXNativeTarget "libcupsppdc_static" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA73E1CC03AAF0092477B /* Debug */, 724FA73F1CC03AAF0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA74C1CC03ACC0092477B /* Build configuration list for PBXNativeTarget "libcupscgi" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA74D1CC03ACC0092477B /* Debug */, 724FA74E1CC03ACC0092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 724FA7681CC03AF60092477B /* Build configuration list for PBXNativeTarget "libcupscgi_static" */ = { isa = XCConfigurationList; buildConfigurations = ( 724FA7691CC03AF60092477B /* Debug */, 724FA76A1CC03AF60092477B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 7258EAE9134594C4009286F1 /* Build configuration list for PBXNativeTarget "rastertopwg" */ = { isa = XCConfigurationList; buildConfigurations = ( 7258EAEA134594C4009286F1 /* Debug */, 7258EAEB134594C4009286F1 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 726AD6FE135E88F1002C930D /* Build configuration list for PBXNativeTarget "ippeveprinter" */ = { isa = XCConfigurationList; buildConfigurations = ( 726AD6FF135E88F1002C930D /* Debug */, 726AD700135E88F1002C930D /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 729181BB201155C1005E7560 /* Build configuration list for PBXNativeTarget "testclient" */ = { isa = XCConfigurationList; buildConfigurations = ( 729181BC201155C1005E7560 /* Debug */, 729181BD201155C1005E7560 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72BF963A1333042100B1EAD7 /* Build configuration list for PBXProject "CUPS" */ = { isa = XCConfigurationList; buildConfigurations = ( 72BF963C1333042100B1EAD7 /* Debug */, 72BF963D1333042100B1EAD7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72CF95EE18A19134000FCAE4 /* Build configuration list for PBXNativeTarget "ippfind" */ = { isa = XCConfigurationList; buildConfigurations = ( 72CF95EF18A19134000FCAE4 /* Debug */, 72CF95F018A19134000FCAE4 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72F75A581336F951004BB496 /* Build configuration list for PBXNativeTarget "cupstestppd" */ = { isa = XCConfigurationList; buildConfigurations = ( 72F75A591336F951004BB496 /* Debug */, 72F75A5A1336F951004BB496 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 72F75A621336F9A3004BB496 /* Build configuration list for PBXNativeTarget "libcupsimage" */ = { isa = XCConfigurationList; buildConfigurations = ( 72F75A631336F9A3004BB496 /* Debug */, 72F75A641336F9A3004BB496 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 72BF96371333042100B1EAD7 /* Project object */; } cups-2.4.7/vcnet/0000755000175000017500000000000014502571342013500 5ustar zdohnalzdohnalcups-2.4.7/vcnet/testhttp.vcxproj.user0000644000175000017500000000024214502571342017747 0ustar zdohnalzdohnal cups-2.4.7/vcnet/testhttp.vcxproj.filters0000644000175000017500000000161514502571342020446 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx Source Files cups-2.4.7/vcnet/testhttp.vcxproj0000644000175000017500000001327414502571342017003 0ustar zdohnalzdohnal Debug x64 Release x64 {90B0058C-8393-411F-BD3B-E2C831D4E883} Win32Proj 10.0 Application v143 v141 v142 MultiByte Application v143 v141 v142 MultiByte <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false Disabled ..\vcnet;..;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level3 ProgramDatabase $(OutDir)testhttp.exe true $(OutDir)testhttp.pdb Console false ..\vcnet;..;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreaded Level3 $(OutDir)testhttp.exe true Console true true false {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false cups-2.4.7/vcnet/testfile.vcxproj.user0000644000175000017500000000024214502571342017707 0ustar zdohnalzdohnal cups-2.4.7/vcnet/testfile.vcxproj.filters0000644000175000017500000000161514502571342020406 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx Source Files cups-2.4.7/vcnet/testfile.vcxproj0000644000175000017500000001312414502571342016735 0ustar zdohnalzdohnal Debug x64 Release x64 {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30} Win32Proj 10.0 Application v143 v141 v142 MultiByte Application v143 v141 v142 MultiByte <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false Disabled ..\vcnet;..;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level3 ProgramDatabase $(OutDir)testfile.exe true $(OutDir)testfile.pdb Console false ..\vcnet;..;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreaded Level3 $(OutDir)testfile.exe true Console true true false {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false cups-2.4.7/vcnet/setdebug.bat0000644000175000017500000000030014502571342015763 0ustar zdohnalzdohnal@rem Script to enable debug logging for IPPTOOL set CUPS_DEBUG_LOG=ipptool.log set CUPS_DEBUG_LEVEL=6 set "CUPS_DEBUG_FILTER=^(http|_http|ipp|_ipp|cupsDo|cupsGetResponse|cupsSend|cupsWrite)" cups-2.4.7/vcnet/regex/0000755000175000017500000000000014502571342014612 5ustar zdohnalzdohnalcups-2.4.7/vcnet/regex/utils.h0000644000175000017500000000076414502571342016132 0ustar zdohnalzdohnal/* utility definitions */ #ifdef _POSIX2_RE_DUP_MAX #define DUPMAX _POSIX2_RE_DUP_MAX #else #define DUPMAX 255 #endif #define INFINITY (DUPMAX + 1) #define NC (CHAR_MAX - CHAR_MIN + 1) typedef unsigned char uch; /* switch off assertions (if not already off) if no REDEBUG */ #ifndef REDEBUG #ifndef NDEBUG #define NDEBUG /* no assertions please */ #endif #endif #include /* for old systems with bcopy() but no memmove() */ #ifdef USEBCOPY #define memmove(d, s, c) bcopy(s, d, c) #endif cups-2.4.7/vcnet/regex/tests0000644000175000017500000003001614502571342015677 0ustar zdohnalzdohnal# regular expression test set # Lines are at least three fields, separated by one or more tabs. "" stands # for an empty field. First field is an RE. Second field is flags. If # C flag given, regcomp() is expected to fail, and the third field is the # error name (minus the leading REG_). # # Otherwise it is expected to succeed, and the third field is the string to # try matching it against. If there is no fourth field, the match is # expected to fail. If there is a fourth field, it is the substring that # the RE is expected to match. If there is a fifth field, it is a comma- # separated list of what the subexpressions should match, with - indicating # no match for that one. In both the fourth and fifth fields, a (sub)field # starting with @ indicates that the (sub)expression is expected to match # a null string followed by the stuff after the @; this provides a way to # test where null strings match. The character `N' in REs and strings # is newline, `S' is space, `T' is tab, `Z' is NUL. # # The full list of flags: # - placeholder, does nothing # b RE is a BRE, not an ERE # & try it as both an ERE and a BRE # C regcomp() error expected, third field is error name # i REG_ICASE # m ("mundane") REG_NOSPEC # s REG_NOSUB (not really testable) # n REG_NEWLINE # ^ REG_NOTBOL # $ REG_NOTEOL # # REG_STARTEND (see below) # p REG_PEND # # For REG_STARTEND, the start/end offsets are those of the substring # enclosed in (). # basics a & a a abc & abc abc abc|de - abc abc a|b|c - abc a # parentheses and perversions thereof a(b)c - abc abc a\(b\)c b abc abc a( C EPAREN a( b a( a( a\( - a( a( a\( bC EPAREN a\(b bC EPAREN a(b C EPAREN a(b b a(b a(b # gag me with a right parenthesis -- 1003.2 goofed here (my fault, partly) a) - a) a) ) - ) ) # end gagging (in a just world, those *should* give EPAREN) a) b a) a) a\) bC EPAREN \) bC EPAREN a()b - ab ab a\(\)b b ab ab # anchoring and REG_NEWLINE ^abc$ & abc abc a^b - a^b a^b b a^b a^b a$b - a$b a$b b a$b a$b ^ & abc @abc $ & abc @ ^$ & "" @ $^ - "" @ \($\)\(^\) b "" @ # stop retching, those are legitimate (although disgusting) ^^ - "" @ $$ - "" @ b$ & abNc b$ &n abNc b ^b$ & aNbNc ^b$ &n aNbNc b ^$ &n aNNb @Nb ^$ n abc ^$ n abcN @ $^ n aNNb @Nb \($\)\(^\) bn aNNb @Nb ^^ n^ aNNb @Nb $$ n aNNb @NN ^a ^ a a$ $ a ^a ^n aNb ^b ^n aNb b a$ $n bNa b$ $n bNa b a*(^b$)c* - b b a*\(^b$\)c* b b b # certain syntax errors and non-errors | C EMPTY | b | | * C BADRPT * b * * + C BADRPT ? C BADRPT "" &C EMPTY () - abc @abc \(\) b abc @abc a||b C EMPTY |ab C EMPTY ab| C EMPTY (|a)b C EMPTY (a|)b C EMPTY (*a) C BADRPT (+a) C BADRPT (?a) C BADRPT ({1}a) C BADRPT \(\{1\}a\) bC BADRPT (a|*b) C BADRPT (a|+b) C BADRPT (a|?b) C BADRPT (a|{1}b) C BADRPT ^* C BADRPT ^* b * * ^+ C BADRPT ^? C BADRPT ^{1} C BADRPT ^\{1\} bC BADRPT # metacharacters, backslashes a.c & abc abc a[bc]d & abd abd a\*c & a*c a*c a\\b & a\b a\b a\\\*b & a\*b a\*b a\bc & abc abc a\ &C EESCAPE a\\bc & a\bc a\bc \{ bC BADRPT a\[b & a[b a[b a[b &C EBRACK # trailing $ is a peculiar special case for the BRE code a$ & a a a$ & a$ a\$ & a a\$ & a$ a$ a\\$ & a a\\$ & a$ a\\$ & a\$ a\\$ & a\ a\ # back references, ugh a\(b\)\2c bC ESUBREG a\(b\1\)c bC ESUBREG a\(b*\)c\1d b abbcbbd abbcbbd bb a\(b*\)c\1d b abbcbd a\(b*\)c\1d b abbcbbbd ^\(.\)\1 b abc a\([bc]\)\1d b abcdabbd abbd b a\(\([bc]\)\2\)*d b abbccd abbccd a\(\([bc]\)\2\)*d b abbcbd # actually, this next one probably ought to fail, but the spec is unclear a\(\(b\)*\2\)*d b abbbd abbbd # here is a case that no NFA implementation does right \(ab*\)[ab]*\1 b ababaaa ababaaa a # check out normal matching in the presence of back refs \(a\)\1bcd b aabcd aabcd \(a\)\1bc*d b aabcd aabcd \(a\)\1bc*d b aabd aabd \(a\)\1bc*d b aabcccd aabcccd \(a\)\1bc*[ce]d b aabcccd aabcccd ^\(a\)\1b\(c\)*cd$ b aabcccd aabcccd # ordinary repetitions ab*c & abc abc ab+c - abc abc ab?c - abc abc a\(*\)b b a*b a*b a\(**\)b b ab ab a\(***\)b bC BADRPT *a b *a *a **a b a a ***a bC BADRPT # the dreaded bounded repetitions { & { { {abc & {abc {abc {1 C BADRPT {1} C BADRPT a{b & a{b a{b a{1}b - ab ab a\{1\}b b ab ab a{1,}b - ab ab a\{1,\}b b ab ab a{1,2}b - aab aab a\{1,2\}b b aab aab a{1 C EBRACE a\{1 bC EBRACE a{1a C EBRACE a\{1a bC EBRACE a{1a} C BADBR a\{1a\} bC BADBR a{,2} - a{,2} a{,2} a\{,2\} bC BADBR a{,} - a{,} a{,} a\{,\} bC BADBR a{1,x} C BADBR a\{1,x\} bC BADBR a{1,x C EBRACE a\{1,x bC EBRACE a{300} C BADBR a\{300\} bC BADBR a{1,0} C BADBR a\{1,0\} bC BADBR ab{0,0}c - abcac ac ab\{0,0\}c b abcac ac ab{0,1}c - abcac abc ab\{0,1\}c b abcac abc ab{0,3}c - abbcac abbc ab\{0,3\}c b abbcac abbc ab{1,1}c - acabc abc ab\{1,1\}c b acabc abc ab{1,3}c - acabc abc ab\{1,3\}c b acabc abc ab{2,2}c - abcabbc abbc ab\{2,2\}c b abcabbc abbc ab{2,4}c - abcabbc abbc ab\{2,4\}c b abcabbc abbc ((a{1,10}){1,10}){1,10} - a a a,a # multiple repetitions a** &C BADRPT a++ C BADRPT a?? C BADRPT a*+ C BADRPT a*? C BADRPT a+* C BADRPT a+? C BADRPT a?* C BADRPT a?+ C BADRPT a{1}{1} C BADRPT a*{1} C BADRPT a+{1} C BADRPT a?{1} C BADRPT a{1}* C BADRPT a{1}+ C BADRPT a{1}? C BADRPT a*{b} - a{b} a{b} a\{1\}\{1\} bC BADRPT a*\{1\} bC BADRPT a\{1\}* bC BADRPT # brackets, and numerous perversions thereof a[b]c & abc abc a[ab]c & abc abc a[^ab]c & adc adc a[]b]c & a]c a]c a[[b]c & a[c a[c a[-b]c & a-c a-c a[^]b]c & adc adc a[^-b]c & adc adc a[b-]c & a-c a-c a[b &C EBRACK a[] &C EBRACK a[1-3]c & a2c a2c a[3-1]c &C ERANGE a[1-3-5]c &C ERANGE a[[.-.]--]c & a-c a-c a[1- &C ERANGE a[[. &C EBRACK a[[.x &C EBRACK a[[.x. &C EBRACK a[[.x.] &C EBRACK a[[.x.]] & ax ax a[[.x,.]] &C ECOLLATE a[[.one.]]b & a1b a1b a[[.notdef.]]b &C ECOLLATE a[[.].]]b & a]b a]b a[[:alpha:]]c & abc abc a[[:notdef:]]c &C ECTYPE a[[: &C EBRACK a[[:alpha &C EBRACK a[[:alpha:] &C EBRACK a[[:alpha,:] &C ECTYPE a[[:]:]]b &C ECTYPE a[[:-:]]b &C ECTYPE a[[:alph:]] &C ECTYPE a[[:alphabet:]] &C ECTYPE [[:alnum:]]+ - -%@a0X- a0X [[:alpha:]]+ - -%@aX0- aX [[:blank:]]+ - aSSTb SST [[:cntrl:]]+ - aNTb NT [[:digit:]]+ - a019b 019 [[:graph:]]+ - Sa%bS a%b [[:lower:]]+ - AabC ab [[:print:]]+ - NaSbN aSb [[:punct:]]+ - S%-&T %-& [[:space:]]+ - aSNTb SNT [[:upper:]]+ - aBCd BC [[:xdigit:]]+ - p0f3Cq 0f3C a[[=b=]]c & abc abc a[[= &C EBRACK a[[=b &C EBRACK a[[=b= &C EBRACK a[[=b=] &C EBRACK a[[=b,=]] &C ECOLLATE a[[=one=]]b & a1b a1b # complexities a(((b)))c - abc abc a(b|(c))d - abd abd a(b*|c)d - abbd abbd # just gotta have one DFA-buster, of course a[ab]{20} - aaaaabaaaabaaaabaaaab aaaaabaaaabaaaabaaaab # and an inline expansion in case somebody gets tricky a[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab] - aaaaabaaaabaaaabaaaab aaaaabaaaabaaaabaaaab # and in case somebody just slips in an NFA... a[ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab][ab](wee|week)(knights|night) - aaaaabaaaabaaaabaaaabweeknights aaaaabaaaabaaaabaaaabweeknights # fish for anomalies as the number of states passes 32 12345678901234567890123456789 - a12345678901234567890123456789b 12345678901234567890123456789 123456789012345678901234567890 - a123456789012345678901234567890b 123456789012345678901234567890 1234567890123456789012345678901 - a1234567890123456789012345678901b 1234567890123456789012345678901 12345678901234567890123456789012 - a12345678901234567890123456789012b 12345678901234567890123456789012 123456789012345678901234567890123 - a123456789012345678901234567890123b 123456789012345678901234567890123 # and one really big one, beyond any plausible word width 1234567890123456789012345678901234567890123456789012345678901234567890 - a1234567890123456789012345678901234567890123456789012345678901234567890b 1234567890123456789012345678901234567890123456789012345678901234567890 # fish for problems as brackets go past 8 [ab][cd][ef][gh][ij][kl][mn] - xacegikmoq acegikm [ab][cd][ef][gh][ij][kl][mn][op] - xacegikmoq acegikmo [ab][cd][ef][gh][ij][kl][mn][op][qr] - xacegikmoqy acegikmoq [ab][cd][ef][gh][ij][kl][mn][op][q] - xacegikmoqy acegikmoq # subtleties of matching abc & xabcy abc a\(b\)?c\1d b acd aBc i Abc Abc a[Bc]*d i abBCcd abBCcd 0[[:upper:]]1 &i 0a1 0a1 0[[:lower:]]1 &i 0A1 0A1 a[^b]c &i abc a[^b]c &i aBc a[^b]c &i adc adc [a]b[c] - abc abc [a]b[a] - aba aba [abc]b[abc] - abc abc [abc]b[abd] - abd abd a(b?c)+d - accd accd (wee|week)(knights|night) - weeknights weeknights (we|wee|week|frob)(knights|night|day) - weeknights weeknights a[bc]d - xyzaaabcaababdacd abd a[ab]c - aaabc abc abc s abc abc a* & b @b # Let's have some fun -- try to match a C comment. # first the obvious, which looks okay at first glance... /\*.*\*/ - /*x*/ /*x*/ # but... /\*.*\*/ - /*x*/y/*z*/ /*x*/y/*z*/ # okay, we must not match */ inside; try to do that... /\*([^*]|\*[^/])*\*/ - /*x*/ /*x*/ /\*([^*]|\*[^/])*\*/ - /*x*/y/*z*/ /*x*/ # but... /\*([^*]|\*[^/])*\*/ - /*x**/y/*z*/ /*x**/y/*z*/ # and a still fancier version, which does it right (I think)... /\*([^*]|\*+[^*/])*\*+/ - /*x*/ /*x*/ /\*([^*]|\*+[^*/])*\*+/ - /*x*/y/*z*/ /*x*/ /\*([^*]|\*+[^*/])*\*+/ - /*x**/y/*z*/ /*x**/ /\*([^*]|\*+[^*/])*\*+/ - /*x****/y/*z*/ /*x****/ /\*([^*]|\*+[^*/])*\*+/ - /*x**x*/y/*z*/ /*x**x*/ /\*([^*]|\*+[^*/])*\*+/ - /*x***x/y/*z*/ /*x***x/y/*z*/ # subexpressions .* - abc abc - a(b)(c)d - abcd abcd b,c a(((b)))c - abc abc b,b,b a(b|(c))d - abd abd b,- a(b*|c|e)d - abbd abbd bb a(b*|c|e)d - acd acd c a(b*|c|e)d - ad ad @d a(b?)c - abc abc b a(b?)c - ac ac @c a(b+)c - abc abc b a(b+)c - abbbc abbbc bbb a(b*)c - ac ac @c (a|ab)(bc([de]+)f|cde) - abcdef abcdef a,bcdef,de # the regression tester only asks for 9 subexpressions a(b)(c)(d)(e)(f)(g)(h)(i)(j)k - abcdefghijk abcdefghijk b,c,d,e,f,g,h,i,j a(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l - abcdefghijkl abcdefghijkl b,c,d,e,f,g,h,i,j,k a([bc]?)c - abc abc b a([bc]?)c - ac ac @c a([bc]+)c - abc abc b a([bc]+)c - abcc abcc bc a([bc]+)bc - abcbc abcbc bc a(bb+|b)b - abb abb b a(bbb+|bb+|b)b - abb abb b a(bbb+|bb+|b)b - abbb abbb bb a(bbb+|bb+|b)bb - abbb abbb b (.*).* - abcdef abcdef abcdef (a*)* - bc @b @b # do we get the right subexpression when it is used more than once? a(b|c)*d - ad ad - a(b|c)*d - abcd abcd c a(b|c)+d - abd abd b a(b|c)+d - abcd abcd c a(b|c?)+d - ad ad @d a(b|c?)+d - abcd abcd @d a(b|c){0,0}d - ad ad - a(b|c){0,1}d - ad ad - a(b|c){0,1}d - abd abd b a(b|c){0,2}d - ad ad - a(b|c){0,2}d - abcd abcd c a(b|c){0,}d - ad ad - a(b|c){0,}d - abcd abcd c a(b|c){1,1}d - abd abd b a(b|c){1,1}d - acd acd c a(b|c){1,2}d - abd abd b a(b|c){1,2}d - abcd abcd c a(b|c){1,}d - abd abd b a(b|c){1,}d - abcd abcd c a(b|c){2,2}d - acbd acbd b a(b|c){2,2}d - abcd abcd c a(b|c){2,4}d - abcd abcd c a(b|c){2,4}d - abcbd abcbd b a(b|c){2,4}d - abcbcd abcbcd c a(b|c){2,}d - abcd abcd c a(b|c){2,}d - abcbd abcbd b a(b+|((c)*))+d - abd abd @d,@d,- a(b+|((c)*))+d - abcd abcd @d,@d,- # check out the STARTEND option [abc] &# a(b)c b [abc] &# a(d)c [abc] &# a(bc)d b [abc] &# a(dc)d c . &# a()c b.*c &# b(bc)c bc b.* &# b(bc)c bc .*c &# b(bc)c bc # plain strings, with the NOSPEC flag abc m abc abc abc m xabcy abc abc m xyz a*b m aba*b a*b a*b m ab "" mC EMPTY # cases involving NULs aZb & a a aZb &p a aZb &p# (aZb) aZb aZ*b &p# (ab) ab a.b &# (aZb) aZb a.* &# (aZb)c aZb # word boundaries (ick) [[:<:]]a & a a [[:<:]]a & ba [[:<:]]a & -a a a[[:>:]] & a a a[[:>:]] & ab a[[:>:]] & a- a [[:<:]]a.c[[:>:]] & axcd-dayc-dazce-abc abc [[:<:]]a.c[[:>:]] & axcd-dayc-dazce-abc-q abc [[:<:]]a.c[[:>:]] & axc-dayc-dazce-abc axc [[:<:]]b.c[[:>:]] & a_bxc-byc_d-bzc-q bzc [[:<:]].x..[[:>:]] & y_xa_-_xb_y-_xc_-axdc _xc_ [[:<:]]a_b[[:>:]] & x_a_b # past problems, and suspected problems (A[1])|(A[2])|(A[3])|(A[4])|(A[5])|(A[6])|(A[7])|(A[8])|(A[9])|(A[A]) - A1 A1 abcdefghijklmnop i abcdefghijklmnop abcdefghijklmnop abcdefghijklmnopqrstuv i abcdefghijklmnopqrstuv abcdefghijklmnopqrstuv (ALAK)|(ALT[AB])|(CC[123]1)|(CM[123]1)|(GAMC)|(LC[23][EO ])|(SEM[1234])|(SL[ES][12])|(SLWW)|(SLF )|(SLDT)|(VWH[12])|(WH[34][EW])|(WP1[ESN]) - CC11 CC11 CC[13]1|a{21}[23][EO][123][Es][12]a{15}aa[34][EW]aaaaaaa[X]a - CC11 CC11 Char \([a-z0-9_]*\)\[.* b Char xyz[k Char xyz[k xyz a?b - ab ab -\{0,1\}[0-9]*$ b -5 -5 a*a*a*a*a*a*a* & aaaaaa aaaaaa cups-2.4.7/vcnet/regex/split.c0000644000175000017500000001544014502571342016115 0ustar zdohnalzdohnal#include #include /* - split - divide a string into fields, like awk split() = int split(char *string, char *fields[], int nfields, char *sep); */ int /* number of fields, including overflow */ split(string, fields, nfields, sep) char *string; char *fields[]; /* list is not NULL-terminated */ int nfields; /* number of entries available in fields[] */ char *sep; /* "" white, "c" single char, "ab" [ab]+ */ { char *p = string; char c; /* latest character */ char sepc = sep[0]; char sepc2; int fn; char **fp = fields; char *sepp; int trimtrail; /* white space */ if (sepc == '\0') { while ((c = *p++) == ' ' || c == '\t') continue; p--; trimtrail = 1; sep = " \t"; /* note, code below knows this is 2 long */ sepc = ' '; } else trimtrail = 0; sepc2 = sep[1]; /* now we can safely pick this up */ /* catch empties */ if (*p == '\0') return(0); /* single separator */ if (sepc2 == '\0') { fn = nfields; for (;;) { *fp++ = p; fn--; if (fn == 0) break; while ((c = *p++) != sepc) if (c == '\0') return(nfields - fn); *(p-1) = '\0'; } /* we have overflowed the fields vector -- just count them */ fn = nfields; for (;;) { while ((c = *p++) != sepc) if (c == '\0') return(fn); fn++; } /* not reached */ } /* two separators */ if (sep[2] == '\0') { fn = nfields; for (;;) { *fp++ = p; fn--; while ((c = *p++) != sepc && c != sepc2) if (c == '\0') { if (trimtrail && **(fp-1) == '\0') fn++; return(nfields - fn); } if (fn == 0) break; *(p-1) = '\0'; while ((c = *p++) == sepc || c == sepc2) continue; p--; } /* we have overflowed the fields vector -- just count them */ fn = nfields; while (c != '\0') { while ((c = *p++) == sepc || c == sepc2) continue; p--; fn++; while ((c = *p++) != '\0' && c != sepc && c != sepc2) continue; } /* might have to trim trailing white space */ if (trimtrail) { p--; while ((c = *--p) == sepc || c == sepc2) continue; p++; if (*p != '\0') { if (fn == nfields+1) *p = '\0'; fn--; } } return(fn); } /* n separators */ fn = 0; for (;;) { if (fn < nfields) *fp++ = p; fn++; for (;;) { c = *p++; if (c == '\0') return(fn); sepp = sep; while ((sepc = *sepp++) != '\0' && sepc != c) continue; if (sepc != '\0') /* it was a separator */ break; } if (fn < nfields) *(p-1) = '\0'; for (;;) { c = *p++; sepp = sep; while ((sepc = *sepp++) != '\0' && sepc != c) continue; if (sepc == '\0') /* it wasn't a separator */ break; } p--; } /* not reached */ } #ifdef TEST_SPLIT /* * test program * pgm runs regression * pgm sep splits stdin lines by sep * pgm str sep splits str by sep * pgm str sep n splits str by sep n times */ int main(argc, argv) int argc; char *argv[]; { char buf[512]; int n; # define MNF 10 char *fields[MNF]; if (argc > 4) for (n = atoi(argv[3]); n > 0; n--) { (void) strcpy(buf, argv[1]); } else if (argc > 3) for (n = atoi(argv[3]); n > 0; n--) { (void) strcpy(buf, argv[1]); (void) split(buf, fields, MNF, argv[2]); } else if (argc > 2) dosplit(argv[1], argv[2]); else if (argc > 1) while (fgets(buf, sizeof(buf), stdin) != NULL) { buf[strlen(buf)-1] = '\0'; /* stomp newline */ dosplit(buf, argv[1]); } else regress(); exit(0); } static void dosplit(string, seps) char *string; char *seps; { # define NF 5 char *fields[NF]; int nf; nf = split(string, fields, NF, seps); print(nf, NF, fields); } static void print(nf, nfp, fields) int nf; int nfp; char *fields[]; { int fn; int bound; bound = (nf > nfp) ? nfp : nf; printf("%d:\t", nf); for (fn = 0; fn < bound; fn++) printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); } #define RNF 5 /* some table entries know this */ struct { char *str; char *seps; int nf; char *fi[RNF]; } tests[] = { "", " ", 0, { "" }, " ", " ", 2, { "", "" }, "x", " ", 1, { "x" }, "xy", " ", 1, { "xy" }, "x y", " ", 2, { "x", "y" }, "abc def g ", " ", 5, { "abc", "def", "", "g", "" }, " a bcd", " ", 4, { "", "", "a", "bcd" }, "a b c d e f", " ", 6, { "a", "b", "c", "d", "e f" }, " a b c d ", " ", 6, { "", "a", "b", "c", "d " }, "", " _", 0, { "" }, " ", " _", 2, { "", "" }, "x", " _", 1, { "x" }, "x y", " _", 2, { "x", "y" }, "ab _ cd", " _", 2, { "ab", "cd" }, " a_b c ", " _", 5, { "", "a", "b", "c", "" }, "a b c_d e f", " _", 6, { "a", "b", "c", "d", "e f" }, " a b c d ", " _", 6, { "", "a", "b", "c", "d " }, "", " _~", 0, { "" }, " ", " _~", 2, { "", "" }, "x", " _~", 1, { "x" }, "x y", " _~", 2, { "x", "y" }, "ab _~ cd", " _~", 2, { "ab", "cd" }, " a_b c~", " _~", 5, { "", "a", "b", "c", "" }, "a b_c d~e f", " _~", 6, { "a", "b", "c", "d", "e f" }, "~a b c d ", " _~", 6, { "", "a", "b", "c", "d " }, "", " _~-", 0, { "" }, " ", " _~-", 2, { "", "" }, "x", " _~-", 1, { "x" }, "x y", " _~-", 2, { "x", "y" }, "ab _~- cd", " _~-", 2, { "ab", "cd" }, " a_b c~", " _~-", 5, { "", "a", "b", "c", "" }, "a b_c-d~e f", " _~-", 6, { "a", "b", "c", "d", "e f" }, "~a-b c d ", " _~-", 6, { "", "a", "b", "c", "d " }, "", " ", 0, { "" }, " ", " ", 2, { "", "" }, "x", " ", 1, { "x" }, "xy", " ", 1, { "xy" }, "x y", " ", 2, { "x", "y" }, "abc def g ", " ", 4, { "abc", "def", "g", "" }, " a bcd", " ", 3, { "", "a", "bcd" }, "a b c d e f", " ", 6, { "a", "b", "c", "d", "e f" }, " a b c d ", " ", 6, { "", "a", "b", "c", "d " }, "", "", 0, { "" }, " ", "", 0, { "" }, "x", "", 1, { "x" }, "xy", "", 1, { "xy" }, "x y", "", 2, { "x", "y" }, "abc def g ", "", 3, { "abc", "def", "g" }, "\t a bcd", "", 2, { "a", "bcd" }, " a \tb\t c ", "", 3, { "a", "b", "c" }, "a b c d e ", "", 5, { "a", "b", "c", "d", "e" }, "a b\tc d e f", "", 6, { "a", "b", "c", "d", "e f" }, " a b c d e f ", "", 6, { "a", "b", "c", "d", "e f " }, NULL, NULL, 0, { NULL }, }; static void regress() { char buf[512]; int n; char *fields[RNF+1]; int nf; int i; int printit; char *f; for (n = 0; tests[n].str != NULL; n++) { (void) strcpy(buf, tests[n].str); fields[RNF] = NULL; nf = split(buf, fields, RNF, tests[n].seps); printit = 0; if (nf != tests[n].nf) { printf("split `%s' by `%s' gave %d fields, not %d\n", tests[n].str, tests[n].seps, nf, tests[n].nf); printit = 1; } else if (fields[RNF] != NULL) { printf("split() went beyond array end\n"); printit = 1; } else { for (i = 0; i < nf && i < RNF; i++) { f = fields[i]; if (f == NULL) f = "(NULL)"; if (strcmp(f, tests[n].fi[i]) != 0) { printf("split `%s' by `%s', field %d is `%s', not `%s'\n", tests[n].str, tests[n].seps, i, fields[i], tests[n].fi[i]); printit = 1; } } } if (printit) print(nf, RNF, fields); } } #endif cups-2.4.7/vcnet/regex/rxspencer.70000644000175000017500000002305014502571342016713 0ustar zdohnalzdohnal.TH REGEX 7 "25 Oct 1995" .BY "Henry Spencer" .SH NAME regex \- POSIX 1003.2 regular expressions .SH DESCRIPTION Regular expressions (``RE''s), as defined in POSIX 1003.2, come in two forms: modern REs (roughly those of .IR egrep ; 1003.2 calls these ``extended'' REs) and obsolete REs (roughly those of .IR ed ; 1003.2 ``basic'' REs). Obsolete REs mostly exist for backward compatibility in some old programs; they will be discussed at the end. 1003.2 leaves some aspects of RE syntax and semantics open; `\(dg' marks decisions on these aspects that may not be fully portable to other 1003.2 implementations. .PP A (modern) RE is one\(dg or more non-empty\(dg \fIbranches\fR, separated by `|'. It matches anything that matches one of the branches. .PP A branch is one\(dg or more \fIpieces\fR, concatenated. It matches a match for the first, followed by a match for the second, etc. .PP A piece is an \fIatom\fR possibly followed by a single\(dg `*', `+', `?', or \fIbound\fR. An atom followed by `*' matches a sequence of 0 or more matches of the atom. An atom followed by `+' matches a sequence of 1 or more matches of the atom. An atom followed by `?' matches a sequence of 0 or 1 matches of the atom. .PP A \fIbound\fR is `{' followed by an unsigned decimal integer, possibly followed by `,' possibly followed by another unsigned decimal integer, always followed by `}'. The integers must lie between 0 and RE_DUP_MAX (255\(dg) inclusive, and if there are two of them, the first may not exceed the second. An atom followed by a bound containing one integer \fIi\fR and no comma matches a sequence of exactly \fIi\fR matches of the atom. An atom followed by a bound containing one integer \fIi\fR and a comma matches a sequence of \fIi\fR or more matches of the atom. An atom followed by a bound containing two integers \fIi\fR and \fIj\fR matches a sequence of \fIi\fR through \fIj\fR (inclusive) matches of the atom. .PP An atom is a regular expression enclosed in `()' (matching a match for the regular expression), an empty set of `()' (matching the null string)\(dg, a \fIbracket expression\fR (see below), `.' (matching any single character), `^' (matching the null string at the beginning of a line), `$' (matching the null string at the end of a line), a `\e' followed by one of the characters `^.[$()|*+?{\e' (matching that character taken as an ordinary character), a `\e' followed by any other character\(dg (matching that character taken as an ordinary character, as if the `\e' had not been present\(dg), or a single character with no other significance (matching that character). A `{' followed by a character other than a digit is an ordinary character, not the beginning of a bound\(dg. It is illegal to end an RE with `\e'. .PP A \fIbracket expression\fR is a list of characters enclosed in `[]'. It normally matches any single character from the list (but see below). If the list begins with `^', it matches any single character (but see below) \fInot\fR from the rest of the list. If two characters in the list are separated by `\-', this is shorthand for the full \fIrange\fR of characters between those two (inclusive) in the collating sequence, e.g. `[0\-9]' in ASCII matches any decimal digit. It is illegal\(dg for two ranges to share an endpoint, e.g. `a\-c\-e'. Ranges are very collating-sequence-dependent, and portable programs should avoid relying on them. .PP To include a literal `]' in the list, make it the first character (following a possible `^'). To include a literal `\-', make it the first or last character, or the second endpoint of a range. To use a literal `\-' as the first endpoint of a range, enclose it in `[.' and `.]' to make it a collating element (see below). With the exception of these and some combinations using `[' (see next paragraphs), all other special characters, including `\e', lose their special significance within a bracket expression. .PP Within a bracket expression, a collating element (a character, a multi-character sequence that collates as if it were a single character, or a collating-sequence name for either) enclosed in `[.' and `.]' stands for the sequence of characters of that collating element. The sequence is a single element of the bracket expression's list. A bracket expression containing a multi-character collating element can thus match more than one character, e.g. if the collating sequence includes a `ch' collating element, then the RE `[[.ch.]]*c' matches the first five characters of `chchcc'. .PP Within a bracket expression, a collating element enclosed in `[=' and `=]' is an equivalence class, standing for the sequences of characters of all collating elements equivalent to that one, including itself. (If there are no other equivalent collating elements, the treatment is as if the enclosing delimiters were `[.' and `.]'.) For example, if o and \o'o^' are the members of an equivalence class, then `[[=o=]]', `[[=\o'o^'=]]', and `[o\o'o^']' are all synonymous. An equivalence class may not\(dg be an endpoint of a range. .PP Within a bracket expression, the name of a \fIcharacter class\fR enclosed in `[:' and `:]' stands for the list of all characters belonging to that class. Standard character class names are: .PP .RS .nf .ta 3c 6c 9c alnum digit punct alpha graph space blank lower upper cntrl print xdigit .fi .RE .PP These stand for the character classes defined in .IR ctype (3). A locale may provide others. A character class may not be used as an endpoint of a range. .PP There are two special cases\(dg of bracket expressions: the bracket expressions `[[:<:]]' and `[[:>:]]' match the null string at the beginning and end of a word respectively. A word is defined as a sequence of word characters which is neither preceded nor followed by word characters. A word character is an .I alnum character (as defined by .IR ctype (3)) or an underscore. This is an extension, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. .PP In the event that an RE could match more than one substring of a given string, the RE matches the one starting earliest in the string. If the RE could match more than one substring starting at that point, it matches the longest. Subexpressions also match the longest possible substrings, subject to the constraint that the whole match be as long as possible, with subexpressions starting earlier in the RE taking priority over ones starting later. Note that higher-level subexpressions thus take priority over their lower-level component subexpressions. .PP Match lengths are measured in characters, not collating elements. A null string is considered longer than no match at all. For example, `bb*' matches the three middle characters of `abbbc', `(wee|week)(knights|nights)' matches all ten characters of `weeknights', when `(.*).*' is matched against `abc' the parenthesized subexpression matches all three characters, and when `(a*)*' is matched against `bc' both the whole RE and the parenthesized subexpression match the null string. .PP If case-independent matching is specified, the effect is much as if all case distinctions had vanished from the alphabet. When an alphabetic that exists in multiple cases appears as an ordinary character outside a bracket expression, it is effectively transformed into a bracket expression containing both cases, e.g. `x' becomes `[xX]'. When it appears inside a bracket expression, all case counterparts of it are added to the bracket expression, so that (e.g.) `[x]' becomes `[xX]' and `[^x]' becomes `[^xX]'. .PP No particular limit is imposed on the length of REs\(dg. Programs intended to be portable should not employ REs longer than 256 bytes, as an implementation can refuse to accept such REs and remain POSIX-compliant. .PP Obsolete (``basic'') regular expressions differ in several respects. `|', `+', and `?' are ordinary characters and there is no equivalent for their functionality. The delimiters for bounds are `\e{' and `\e}', with `{' and `}' by themselves ordinary characters. The parentheses for nested subexpressions are `\e(' and `\e)', with `(' and `)' by themselves ordinary characters. `^' is an ordinary character except at the beginning of the RE or\(dg the beginning of a parenthesized subexpression, `$' is an ordinary character except at the end of the RE or\(dg the end of a parenthesized subexpression, and `*' is an ordinary character if it appears at the beginning of the RE or the beginning of a parenthesized subexpression (after a possible leading `^'). Finally, there is one new type of atom, a \fIback reference\fR: `\e' followed by a non-zero decimal digit \fId\fR matches the same sequence of characters matched by the \fId\fRth parenthesized subexpression (numbering subexpressions by the positions of their opening parentheses, left to right), so that (e.g.) `\e([bc]\e)\e1' matches `bb' or `cc' but not `bc'. .SH SEE ALSO rxspencer(3) .PP POSIX 1003.2, section 2.8 (Regular Expression Notation). .SH HISTORY Written by Henry Spencer, based on the 1003.2 spec. .SH BUGS Having two kinds of REs is a botch. .PP The current 1003.2 spec says that `)' is an ordinary character in the absence of an unmatched `('; this was an unintentional result of a wording error, and change is likely. Avoid relying on it. .PP Back references are a dreadful botch, posing major problems for efficient implementations. They are also somewhat vaguely defined (does `a\e(\e(b\e)*\e2\e)*d' match `abbbd'?). Avoid using them. .PP 1003.2's specification of case-independent matching is vague. The ``one case implies all cases'' definition given above is current consensus among implementors as to the right interpretation. .PP The syntax for word boundaries is incredibly ugly. cups-2.4.7/vcnet/regex/rxspencer.30000644000175000017500000003516114502571342016715 0ustar zdohnalzdohnal.TH REGEX 3 "25 Sept 1997" .BY "Henry Spencer" .de ZR .\" one other place knows this name: the SEE ALSO section .IR rxspencer (7) \\$1 .. .SH NAME regcomp, regexec, regerror, regfree \- regular-expression library .SH SYNOPSIS .ft B .\".na #include .br #include .HP 10 int regcomp(regex_t\ *preg, const\ char\ *pattern, int\ cflags); .HP int\ regexec(const\ regex_t\ *preg, const\ char\ *string, size_t\ nmatch, regmatch_t\ pmatch[], int\ eflags); .HP size_t\ regerror(int\ errcode, const\ regex_t\ *preg, char\ *errbuf, size_t\ errbuf_size); .HP void\ regfree(regex_t\ *preg); .\".ad .ft .SH DESCRIPTION These routines implement POSIX 1003.2 regular expressions (``RE''s); see .ZR . .I Regcomp compiles an RE written as a string into an internal form, .I regexec matches that internal form against a string and reports results, .I regerror transforms error codes from either into human-readable messages, and .I regfree frees any dynamically-allocated storage used by the internal form of an RE. .PP The header .I declares two structure types, .I regex_t and .IR regmatch_t , the former for compiled internal forms and the latter for match reporting. It also declares the four functions, a type .IR regoff_t , and a number of constants with names starting with ``REG_''. .PP .I Regcomp compiles the regular expression contained in the .I pattern string, subject to the flags in .IR cflags , and places the results in the .I regex_t structure pointed to by .IR preg . .I Cflags is the bitwise OR of zero or more of the following flags: .IP REG_EXTENDED \w'REG_EXTENDED'u+2n Compile modern (``extended'') REs, rather than the obsolete (``basic'') REs that are the default. .IP REG_BASIC This is a synonym for 0, provided as a counterpart to REG_EXTENDED to improve readability. This is an extension, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. .IP REG_NOSPEC Compile with recognition of all special characters turned off. All characters are thus considered ordinary, so the ``RE'' is a literal string. This is an extension, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. REG_EXTENDED and REG_NOSPEC may not be used in the same call to .IR regcomp . .IP REG_ICASE Compile for matching that ignores upper/lower case distinctions. See .ZR . .IP REG_NOSUB Compile for matching that need only report success or failure, not what was matched. .IP REG_NEWLINE Compile for newline-sensitive matching. By default, newline is a completely ordinary character with no special meaning in either REs or strings. With this flag, `[^' bracket expressions and `.' never match newline, a `^' anchor matches the null string after any newline in the string in addition to its normal function, and the `$' anchor matches the null string before any newline in the string in addition to its normal function. .IP REG_PEND The regular expression ends, not at the first NUL, but just before the character pointed to by the .I re_endp member of the structure pointed to by .IR preg . The .I re_endp member is of type .IR const\ char\ * . This flag permits inclusion of NULs in the RE; they are considered ordinary characters. This is an extension, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. .PP When successful, .I regcomp returns 0 and fills in the structure pointed to by .IR preg . One member of that structure (other than .IR re_endp ) is publicized: .IR re_nsub , of type .IR size_t , contains the number of parenthesized subexpressions within the RE (except that the value of this member is undefined if the REG_NOSUB flag was used). If .I regcomp fails, it returns a non-zero error code; see DIAGNOSTICS. .PP .I Regexec matches the compiled RE pointed to by .I preg against the .IR string , subject to the flags in .IR eflags , and reports results using .IR nmatch , .IR pmatch , and the returned value. The RE must have been compiled by a previous invocation of .IR regcomp . The compiled form is not altered during execution of .IR regexec , so a single compiled RE can be used simultaneously by multiple threads. .PP By default, the NUL-terminated string pointed to by .I string is considered to be the text of an entire line, with the NUL indicating the end of the line. (That is, any other end-of-line marker is considered to have been removed and replaced by the NUL.) The .I eflags argument is the bitwise OR of zero or more of the following flags: .IP REG_NOTBOL \w'REG_STARTEND'u+2n The first character of the string is not the beginning of a line, so the `^' anchor should not match before it. This does not affect the behavior of newlines under REG_NEWLINE. .IP REG_NOTEOL The NUL terminating the string does not end a line, so the `$' anchor should not match before it. This does not affect the behavior of newlines under REG_NEWLINE. .IP REG_STARTEND The string is considered to start at \fIstring\fR\ + \fIpmatch\fR[0].\fIrm_so\fR and to have a terminating NUL located at \fIstring\fR\ + \fIpmatch\fR[0].\fIrm_eo\fR (there need not actually be a NUL at that location), regardless of the value of .IR nmatch . See below for the definition of .IR pmatch and .IR nmatch . This is an extension, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. Note that a non-zero \fIrm_so\fR does not imply REG_NOTBOL; REG_STARTEND affects only the location of the string, not how it is matched. .PP See .ZR for a discussion of what is matched in situations where an RE or a portion thereof could match any of several substrings of .IR string . .PP Normally, .I regexec returns 0 for success and the non-zero code REG_NOMATCH for failure. Other non-zero error codes may be returned in exceptional situations; see DIAGNOSTICS. .PP If REG_NOSUB was specified in the compilation of the RE, or if .I nmatch is 0, .I regexec ignores the .I pmatch argument (but see below for the case where REG_STARTEND is specified). Otherwise, .I pmatch points to an array of .I nmatch structures of type .IR regmatch_t . Such a structure has at least the members .I rm_so and .IR rm_eo , both of type .I regoff_t (a signed arithmetic type at least as large as an .I off_t and a .IR ssize_t ), containing respectively the offset of the first character of a substring and the offset of the first character after the end of the substring. Offsets are measured from the beginning of the .I string argument given to .IR regexec . An empty substring is denoted by equal offsets, both indicating the character following the empty substring. .PP The 0th member of the .I pmatch array is filled in to indicate what substring of .I string was matched by the entire RE. Remaining members report what substring was matched by parenthesized subexpressions within the RE; member .I i reports subexpression .IR i , with subexpressions counted (starting at 1) by the order of their opening parentheses in the RE, left to right. Unused entries in the array\(emcorresponding either to subexpressions that did not participate in the match at all, or to subexpressions that do not exist in the RE (that is, \fIi\fR\ > \fIpreg\fR\->\fIre_nsub\fR)\(emhave both .I rm_so and .I rm_eo set to \-1. If a subexpression participated in the match several times, the reported substring is the last one it matched. (Note, as an example in particular, that when the RE `(b*)+' matches `bbb', the parenthesized subexpression matches the three `b's and then an infinite number of empty strings following the last `b', so the reported substring is one of the empties.) .PP If REG_STARTEND is specified, .I pmatch must point to at least one .I regmatch_t (even if .I nmatch is 0 or REG_NOSUB was specified), to hold the input offsets for REG_STARTEND. Use for output is still entirely controlled by .IR nmatch ; if .I nmatch is 0 or REG_NOSUB was specified, the value of .IR pmatch [0] will not be changed by a successful .IR regexec . .PP .I Regerror maps a non-zero .I errcode from either .I regcomp or .I regexec to a human-readable, printable message. If .I preg is non-NULL, the error code should have arisen from use of the .I regex_t pointed to by .IR preg , and if the error code came from .IR regcomp , it should have been the result from the most recent .I regcomp using that .IR regex_t . .RI ( Regerror may be able to supply a more detailed message using information from the .IR regex_t .) .I Regerror places the NUL-terminated message into the buffer pointed to by .IR errbuf , limiting the length (including the NUL) to at most .I errbuf_size bytes. If the whole message won't fit, as much of it as will fit before the terminating NUL is supplied. In any case, the returned value is the size of buffer needed to hold the whole message (including terminating NUL). If .I errbuf_size is 0, .I errbuf is ignored but the return value is still correct. .PP If the .I errcode given to .I regerror is first ORed with REG_ITOA, the ``message'' that results is the printable name of the error code, e.g. ``REG_NOMATCH'', rather than an explanation thereof. If .I errcode is REG_ATOI, then .I preg shall be non-NULL and the .I re_endp member of the structure it points to must point to the printable name of an error code; in this case, the result in .I errbuf is the decimal digits of the numeric value of the error code (0 if the name is not recognized). REG_ITOA and REG_ATOI are intended primarily as debugging facilities; they are extensions, compatible with but not specified by POSIX 1003.2, and should be used with caution in software intended to be portable to other systems. Be warned also that they are considered experimental and changes are possible. .PP .I Regfree frees any dynamically-allocated storage associated with the compiled RE pointed to by .IR preg . The remaining .I regex_t is no longer a valid compiled RE and the effect of supplying it to .I regexec or .I regerror is undefined. .PP None of these functions references global variables except for tables of constants; all are safe for use from multiple threads if the arguments are safe. .SH IMPLEMENTATION CHOICES There are a number of decisions that 1003.2 leaves up to the implementor, either by explicitly saying ``undefined'' or by virtue of them being forbidden by the RE grammar. This implementation treats them as follows. .PP See .ZR for a discussion of the definition of case-independent matching. .PP There is no particular limit on the length of REs, except insofar as memory is limited. Memory usage is approximately linear in RE size, and largely insensitive to RE complexity, except for bounded repetitions. See BUGS for one short RE using them that will run almost any system out of memory. .PP A backslashed character other than one specifically given a magic meaning by 1003.2 (such magic meanings occur only in obsolete [``basic''] REs) is taken as an ordinary character. .PP Any unmatched [ is a REG_EBRACK error. .PP Equivalence classes cannot begin or end bracket-expression ranges. The endpoint of one range cannot begin another. .PP RE_DUP_MAX, the limit on repetition counts in bounded repetitions, is 255. .PP A repetition operator (?, *, +, or bounds) cannot follow another repetition operator. A repetition operator cannot begin an expression or subexpression or follow `^' or `|'. .PP `|' cannot appear first or last in a (sub)expression or after another `|', i.e. an operand of `|' cannot be an empty subexpression. An empty parenthesized subexpression, `()', is legal and matches an empty (sub)string. An empty string is not a legal RE. .PP A `{' followed by a digit is considered the beginning of bounds for a bounded repetition, which must then follow the syntax for bounds. A `{' \fInot\fR followed by a digit is considered an ordinary character. .PP `^' and `$' beginning and ending subexpressions in obsolete (``basic'') REs are anchors, not ordinary characters. .SH SEE ALSO grep(1), rxspencer(7) .PP POSIX 1003.2, sections 2.8 (Regular Expression Notation) and B.5 (C Binding for Regular Expression Matching). .SH DIAGNOSTICS Non-zero error codes from .I regcomp and .I regexec include the following: .PP .nf .ta \w'REG_ECOLLATE'u+3n REG_NOMATCH regexec() failed to match REG_BADPAT invalid regular expression REG_ECOLLATE invalid collating element REG_ECTYPE invalid character class REG_EESCAPE \e applied to unescapable character REG_ESUBREG invalid backreference number REG_EBRACK brackets [ ] not balanced REG_EPAREN parentheses ( ) not balanced REG_EBRACE braces { } not balanced REG_BADBR invalid repetition count(s) in { } REG_ERANGE invalid character range in [ ] REG_ESPACE ran out of memory REG_BADRPT ?, *, or + operand invalid REG_EMPTY empty (sub)expression REG_ASSERT ``can't happen''\(emyou found a bug REG_INVARG invalid argument, e.g. negative-length string .fi .SH HISTORY Written by Henry Spencer, henry@zoo.toronto.edu. .SH BUGS This is an alpha release with known defects. Please report problems. .PP There is one known functionality bug. The implementation of internationalization is incomplete: the locale is always assumed to be the default one of 1003.2, and only the collating elements etc. of that locale are available. .PP The back-reference code is subtle and doubts linger about its correctness in complex cases. .PP .I Regexec performance is poor. This will improve with later releases. .I Nmatch exceeding 0 is expensive; .I nmatch exceeding 1 is worse. .I Regexec is largely insensitive to RE complexity \fIexcept\fR that back references are massively expensive. RE length does matter; in particular, there is a strong speed bonus for keeping RE length under about 30 characters, with most special characters counting roughly double. .PP .I Regcomp implements bounded repetitions by macro expansion, which is costly in time and space if counts are large or bounded repetitions are nested. An RE like, say, `((((a{1,100}){1,100}){1,100}){1,100}){1,100}' will (eventually) run almost any existing machine out of swap space. .PP There are suspected problems with response to obscure error conditions. Notably, certain kinds of internal overflow, produced only by truly enormous REs or by multiply nested bounded repetitions, are probably not handled well. .PP Due to a mistake in 1003.2, things like `a)b' are legal REs because `)' is a special character only in the presence of a previous unmatched `('. This can't be fixed until the spec is fixed. .PP The standard's definition of back references is vague. For example, does `a\e(\e(b\e)*\e2\e)*d' match `abbbd'? Until the standard is clarified, behavior in such cases should not be relied on. .PP The implementation of word-boundary matching is a bit of a kludge, and bugs may lurk in combinations of word-boundary matching and anchoring. cups-2.4.7/vcnet/regex/regfree.c0000644000175000017500000000122214502571342016372 0ustar zdohnalzdohnal#include #include #include #include "regex.h" #include "regex2.h" /* - regfree - free everything */ void regfree(preg) regex_t *preg; { struct re_guts *g; if (preg->re_magic != MAGIC1) /* oops */ return; /* nice to complain, but hard */ g = preg->re_g; if (g == NULL || g->magic != MAGIC2) /* oops again */ return; preg->re_magic = 0; /* mark it invalid */ g->magic = 0; /* mark it invalid */ if (g->strip != NULL) free((char *)g->strip); if (g->sets != NULL) free((char *)g->sets); if (g->setbits != NULL) free((char *)g->setbits); if (g->must != NULL) free(g->must); free((char *)g); } cups-2.4.7/vcnet/regex/regexec.c0000644000175000017500000000754114502571342016407 0ustar zdohnalzdohnal/* * the outer shell of regexec() * * This file includes engine.c *twice*, after muchos fiddling with the * macros that code uses. This lets the same code operate on two different * representations for state sets. */ #include #include #include #include #include #include #include #include "regex.h" #include "regex2.h" static int nope = 0; /* for use in asserts; shuts lint up */ /* macros for manipulating states, small version */ #define states unsigned #define states1 unsigned /* for later use in regexec() decision */ #define CLEAR(v) ((v) = 0) #define SET0(v, n) ((v) &= ~((unsigned)1 << (n))) #define SET1(v, n) ((v) |= (unsigned)1 << (n)) #define ISSET(v, n) ((v) & ((unsigned)1 << (n))) #define ASSIGN(d, s) ((d) = (s)) #define EQ(a, b) ((a) == (b)) #define STATEVARS int dummy /* dummy version */ #define STATESETUP(m, n) /* nothing */ #define STATETEARDOWN(m) /* nothing */ #define SETUP(v) ((v) = 0) #define onestate unsigned #define INIT(o, n) ((o) = (unsigned)1 << (n)) #define INC(o) ((o) <<= 1) #define ISSTATEIN(v, o) ((v) & (o)) /* some abbreviations; note that some of these know variable names! */ /* do "if I'm here, I can also be there" etc without branches */ #define FWD(dst, src, n) ((dst) |= ((unsigned)(src)&(here)) << (n)) #define BACK(dst, src, n) ((dst) |= ((unsigned)(src)&(here)) >> (n)) #define ISSETBACK(v, n) ((v) & ((unsigned)here >> (n))) /* function names */ #define SNAMES /* engine.c looks after details */ #include "engine.c" /* now undo things */ #undef states #undef CLEAR #undef SET0 #undef SET1 #undef ISSET #undef ASSIGN #undef EQ #undef STATEVARS #undef STATESETUP #undef STATETEARDOWN #undef SETUP #undef onestate #undef INIT #undef INC #undef ISSTATEIN #undef FWD #undef BACK #undef ISSETBACK #undef SNAMES /* macros for manipulating states, large version */ #define states char * #define CLEAR(v) memset(v, 0, (size_t)m->g->nstates) #define SET0(v, n) ((v)[n] = 0) #define SET1(v, n) ((v)[n] = 1) #define ISSET(v, n) ((v)[n]) #define ASSIGN(d, s) memcpy(d, s, (size_t)m->g->nstates) #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0) #define STATEVARS int vn; char *space #define STATESETUP(m, nv) { (m)->space = malloc((size_t)((nv)*(m)->g->nstates)); \ if ((m)->space == NULL) return(REG_ESPACE); \ (m)->vn = 0; } #define STATETEARDOWN(m) { free((m)->space); } #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates]) #define onestate int #define INIT(o, n) ((o) = (int)(n)) #define INC(o) ((o)++) #define ISSTATEIN(v, o) ((v)[o]) /* some abbreviations; note that some of these know variable names! */ /* do "if I'm here, I can also be there" etc without branches */ #define FWD(dst, src, n) ((dst)[here+(n)] |= (src)[here]) #define BACK(dst, src, n) ((dst)[here-(n)] |= (src)[here]) #define ISSETBACK(v, n) ((v)[here - (n)]) /* function names */ #define LNAMES /* flag */ #include "engine.c" /* - regexec - interface for matching * * We put this here so we can exploit knowledge of the state representation * when choosing which matcher to call. Also, by this point the matchers * have been prototyped. */ int /* 0 success, REG_NOMATCH failure */ regexec(preg, string, nmatch, pmatch, eflags) const regex_t *preg; const char *string; size_t nmatch; regmatch_t pmatch[]; int eflags; { struct re_guts *g = preg->re_g; #ifdef REDEBUG # define GOODFLAGS(f) (f) #else # define GOODFLAGS(f) ((f)&(REG_NOTBOL|REG_NOTEOL|REG_STARTEND)) #endif if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) return(REG_BADPAT); assert(!(g->iflags&BAD)); if (g->iflags&BAD) /* backstop for no-debug case */ return(REG_BADPAT); eflags = GOODFLAGS(eflags); if ((size_t) g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) return(smatcher(g, (char *)string, nmatch, pmatch, eflags)); else return(lmatcher(g, (char *)string, nmatch, pmatch, eflags)); } cups-2.4.7/vcnet/regex/regex2.h0000644000175000017500000001210514502571342016156 0ustar zdohnalzdohnal/* * internals of regex_t */ #define MAGIC1 ((('r'^0200)<<8) | 'e') /* * The internal representation is a *strip*, a sequence of * operators ending with an endmarker. (Some terminology etc. is a * historical relic of earlier versions which used multiple strips.) * Certain oddities in the representation are there to permit running * the machinery backwards; in particular, any deviation from sequential * flow must be marked at both its source and its destination. Some * fine points: * * - OPLUS_ and O_PLUS are *inside* the loop they create. * - OQUEST_ and O_QUEST are *outside* the bypass they create. * - OCH_ and O_CH are *outside* the multi-way branch they create, while * OOR1 and OOR2 are respectively the end and the beginning of one of * the branches. Note that there is an implicit OOR2 following OCH_ * and an implicit OOR1 preceding O_CH. * * In state representations, an operator's bit is on to signify a state * immediately *preceding* "execution" of that operator. */ typedef long sop; /* strip operator */ typedef long sopno; typedef unsigned char uch; #define OPRMASK 0x7c000000 #define OPDMASK 0x03ffffff #define OPSHIFT (26) #define OP(n) ((n)&OPRMASK) #define OPND(n) ((n)&OPDMASK) #define SOP(op, opnd) ((op)|(opnd)) /* operators meaning operand */ /* (back, fwd are offsets) */ #define OEND (1< uch [csetsize] */ uch mask; /* bit within array */ uch hash; /* hash code */ size_t smultis; char *multis; /* -> char[smulti] ab\0cd\0ef\0\0 */ } cset; /* note that CHadd and CHsub are unsafe, and CHIN doesn't yield 0/1 */ #define CHadd(cs, c) ((cs)->ptr[(int)(c)] |= (cs)->mask, (cs)->hash = (uch)((cs)->hash + (c))) #define CHsub(cs, c) ((cs)->ptr[(int)(c)] &= (uch)~(cs)->mask, (cs)->hash = (uch)((cs)->hash - (c))) #define CHIN(cs, c) ((cs)->ptr[(uch)(c)] & (cs)->mask) #define MCadd(p, cs, cp) mcadd(p, cs, cp) /* regcomp() internal fns */ #define MCsub(p, cs, cp) mcsub(p, cs, cp) #define MCin(p, cs, cp) mcin(p, cs, cp) #define NC (CHAR_MAX - CHAR_MIN + 1) /* stuff for character categories */ typedef unsigned char cat_t; /* * main compiled-expression structure */ struct re_guts { int magic; # define MAGIC2 ((('R'^0200)<<8)|'E') sop *strip; /* malloced area for strip */ int csetsize; /* number of bits in a cset vector */ int ncsets; /* number of csets in use */ cset *sets; /* -> cset [ncsets] */ uch *setbits; /* -> uch[csetsize][ncsets/CHAR_BIT] */ int cflags; /* copy of regcomp() cflags argument */ sopno nstates; /* = number of sops */ sopno firststate; /* the initial OEND (normally 0) */ sopno laststate; /* the final OEND */ int iflags; /* internal flags */ # define USEBOL 01 /* used ^ */ # define USEEOL 02 /* used $ */ # define BAD 04 /* something wrong */ int nbol; /* number of ^ used */ int neol; /* number of $ used */ int ncategories; /* how many character categories */ cat_t *categories; /* ->catspace[-CHAR_MIN] */ char *must; /* match must contain this string */ int mlen; /* length of must */ size_t nsub; /* copy of re_nsub */ int backrefs; /* does it use back references? */ sopno nplus; /* how deep does it nest +s? */ /* catspace must be last */ cat_t catspace[1]; /* actually [NC] */ }; /* misc utilities */ #define OUT (CHAR_MAX+1) /* a non-character value */ #define ISWORD(c) (isalnum(c) || (c) == '_') /* switch off assertions (if not already off) if no REDEBUG */ #ifndef REDEBUG #ifndef NDEBUG #define NDEBUG /* no assertions please */ #endif #endif cups-2.4.7/vcnet/regex/regex.h0000644000175000017500000000310014502571342016067 0ustar zdohnalzdohnal#ifndef _REGEX_H_ #define _REGEX_H_ #ifdef __cplusplus extern "C" { #endif #include typedef off_t regoff_t; typedef struct { int re_magic; size_t re_nsub; /* number of parenthesized subexpressions */ const char *re_endp; /* end pointer for REG_PEND */ struct re_guts *re_g; /* none of your business :-) */ } regex_t; typedef struct { regoff_t rm_so; /* start of match */ regoff_t rm_eo; /* end of match */ } regmatch_t; extern int regcomp(regex_t *, const char *, int); extern size_t regerror(int, const regex_t *, char *, size_t); extern int regexec(const regex_t *, const char *, size_t, regmatch_t [], int); extern void regfree(regex_t *); #define REG_BASIC 0000 #define REG_EXTENDED 0001 #define REG_ICASE 0002 #define REG_NOSUB 0004 #define REG_NEWLINE 0010 #define REG_NOSPEC 0020 #define REG_PEND 0040 #define REG_OKAY 0 #define REG_NOMATCH 1 #define REG_BADPAT 2 #define REG_ECOLLATE 3 #define REG_ECTYPE 4 #define REG_EESCAPE 5 #define REG_ESUBREG 6 #define REG_EBRACK 7 #define REG_EPAREN 8 #define REG_EBRACE 9 #define REG_BADBR 10 #define REG_ERANGE 11 #define REG_ESPACE 12 #define REG_BADRPT 13 #define REG_EMPTY 14 #define REG_ASSERT 15 #define REG_INVARG 16 #define REG_ATOI 255 /* convert name to number (!) */ #define REG_ITOA 0400 /* convert number to name (!) */ #define REG_NOTBOL 00001 #define REG_NOTEOL 00002 #define REG_STARTEND 00004 #define REG_TRACE 00400 /* tracing of execution */ #define REG_LARGE 01000 /* force large representation */ #define REG_BACKR 02000 /* force use of backref code */ #ifdef __cplusplus } #endif #endif cups-2.4.7/vcnet/regex/regerror.ih0000644000175000017500000000041314502571342016761 0ustar zdohnalzdohnal/* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus extern "C" { #endif /* === regerror.c === */ static char *regatoi(const regex_t *preg, char *localbuf); #ifdef __cplusplus } #endif /* ========= end header generated by ./mkh ========= */ cups-2.4.7/vcnet/regex/regerror.c0000644000175000017500000000464414502571342016615 0ustar zdohnalzdohnal#include #include #include #include "regex.h" static struct rerr { int code; char *name; char *explain; } rerrs[] = { {REG_OKAY, "REG_OKAY", "no errors detected"}, {REG_NOMATCH, "REG_NOMATCH", "regexec() failed to match"}, {REG_BADPAT, "REG_BADPAT", "invalid regular expression"}, {REG_ECOLLATE, "REG_ECOLLATE", "invalid collating element"}, {REG_ECTYPE, "REG_ECTYPE", "invalid character class"}, {REG_EESCAPE, "REG_EESCAPE", "trailing backslash (\\)"}, {REG_ESUBREG, "REG_ESUBREG", "invalid backreference number"}, {REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced"}, {REG_EPAREN, "REG_EPAREN", "parentheses not balanced"}, {REG_EBRACE, "REG_EBRACE", "braces not balanced"}, {REG_BADBR, "REG_BADBR", "invalid repetition count(s)"}, {REG_ERANGE, "REG_ERANGE", "invalid character range"}, {REG_ESPACE, "REG_ESPACE", "out of memory"}, {REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid"}, {REG_EMPTY, "REG_EMPTY", "empty (sub)expression"}, {REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug"}, {REG_INVARG, "REG_INVARG", "invalid argument to regex routine"}, {-1, "", "*** unknown regexp error code ***"}, }; static size_t set_result(char *errbuf, size_t errbuf_size, char *result) { size_t result_len = strlen(result); if (errbuf_size > 0) { size_t copy_len = result_len < errbuf_size ? result_len : errbuf_size - 1; memcpy(errbuf, result, copy_len); errbuf[copy_len] = '\0'; } return result_len + 1; } /* - regerror - the interface to error numbers */ size_t regerror(int errorcode, const regex_t *preg, char *errbuf, size_t errbuf_size) { struct rerr *r; char convbuf[50]; if (errorcode == REG_ATOI) { if (preg == NULL || preg->re_endp == NULL) return set_result(errbuf, errbuf_size, "0"); for (r = rerrs; r->code >= 0; r++) if (strcmp(r->name, preg->re_endp) == 0) break; if (r->code < 0) return set_result(errbuf, errbuf_size, "0"); snprintf(convbuf, sizeof convbuf, "%d", r->code); return set_result(errbuf, errbuf_size, convbuf); } else { int target = errorcode &~ REG_ITOA; for (r = rerrs; r->code >= 0; r++) if (r->code == target) break; if (errorcode & REG_ITOA) { if (r->code >= 0) return set_result(errbuf, errbuf_size, r->name); snprintf(convbuf, sizeof convbuf, "REG_0x%x", target); return set_result(errbuf, errbuf_size, convbuf); } return set_result(errbuf, errbuf_size, r->explain); } } cups-2.4.7/vcnet/regex/regcomp.ih0000644000175000017500000000522614502571342016575 0ustar zdohnalzdohnal/* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus extern "C" { #endif /* === regcomp.c === */ static void p_ere(register struct parse *p, int stop); static void p_ere_exp(register struct parse *p); static void p_str(register struct parse *p); static void p_bre(register struct parse *p, register int end1, register int end2); static int p_simp_re(register struct parse *p, int starordinary); static int p_count(register struct parse *p); static void p_bracket(register struct parse *p); static void p_b_term(register struct parse *p, register cset *cs); static void p_b_cclass(register struct parse *p, register cset *cs); static void p_b_eclass(register struct parse *p, register cset *cs); static char p_b_symbol(register struct parse *p); static char p_b_coll_elem(register struct parse *p, int endc); static char othercase(int ch); static void bothcases(register struct parse *p, int ch); static void ordinary(register struct parse *p, register int ch); static void nonnewline(register struct parse *p); static void repeat(register struct parse *p, sopno start, int from, int to); static int seterr(register struct parse *p, int e); static cset *allocset(register struct parse *p); static void freeset(register struct parse *p, register cset *cs); static int freezeset(register struct parse *p, register cset *cs); static int firstch(register struct parse *p, register cset *cs); static int nch(register struct parse *p, register cset *cs); static void mcadd(register struct parse *p, register cset *cs, register char *cp); static void mcsub(register cset *cs, register char *cp); static int mcin(register cset *cs, register char *cp); static char *mcfind(register cset *cs, register char *cp); static void mcinvert(register struct parse *p, register cset *cs); static void mccase(register struct parse *p, register cset *cs); static int isinsets(register struct re_guts *g, int c); static int samesets(register struct re_guts *g, int c1, int c2); static void categorize(struct parse *p, register struct re_guts *g); static sopno dupl(register struct parse *p, sopno start, sopno finish); static void doemit(register struct parse *p, sop op, size_t opnd); static void doinsert(register struct parse *p, sop op, size_t opnd, sopno pos); static void dofwd(register struct parse *p, sopno pos, sop value); static void enlarge(register struct parse *p, sopno size); static void stripsnug(register struct parse *p, register struct re_guts *g); static void findmust(register struct parse *p, register struct re_guts *g); static sopno pluscount(register struct parse *p, register struct re_guts *g); #ifdef __cplusplus } #endif /* ========= end header generated by ./mkh ========= */ cups-2.4.7/vcnet/regex/regcomp.c0000644000175000017500000011162314502571342016416 0ustar zdohnalzdohnal#include #include #include #include #include #include #include #include "regex.h" #include "regex2.h" #ifdef _POSIX2_RE_DUP_MAX #define DUPMAX _POSIX2_RE_DUP_MAX #else #define DUPMAX 255 #endif #define INFINITY (DUPMAX + 1) /* * parse structure, passed up and down to avoid global variables and * other clumsinesses */ struct parse { char *next; /* next character in RE */ char *end; /* end of string (-> NUL normally) */ int error; /* has an error been seen? */ sop *strip; /* malloced strip */ sopno ssize; /* malloced strip size (allocated) */ sopno slen; /* malloced strip length (used) */ int ncsalloc; /* number of csets allocated */ struct re_guts *g; # define NPAREN 10 /* we need to remember () 1-9 for back refs */ sopno pbegin[NPAREN]; /* -> ( ([0] unused) */ sopno pend[NPAREN]; /* -> ) ([0] unused) */ }; static char nuls[10]; /* place to point scanner in event of error */ static void p_ere(struct parse *p, int stop); static void p_ere_exp(struct parse *p); static void p_str(struct parse *p); static void p_bre(struct parse *p, int end1, int end2); static int p_simp_re(struct parse *p, int starordinary); static int p_count(struct parse *p); static void p_bracket(struct parse *p); static void p_b_term(struct parse *p, cset *cs); static void p_b_cclass(struct parse *p, cset *cs); static void p_b_eclass(struct parse *p, cset *cs); static char p_b_symbol(struct parse *p); static char p_b_coll_elem(struct parse *p, int endc); static char othercase(int ch); static void bothcases(struct parse *p, int ch); static void ordinary(struct parse *p, int ch); static void nonnewline(struct parse *p); static void repeat(struct parse *p, sopno start, int from, int to); static void seterr(struct parse *p, int e); static cset *allocset(struct parse *p); static void freeset(struct parse *p, cset *cs); static int freezeset(struct parse *p, cset *cs); static int firstch(struct parse *p, cset *cs); static int nch(struct parse *p, cset *cs); static void mcadd(struct parse *p, cset *cs, char *cp); static int isinsets(struct re_guts *g, int c); static int samesets(struct re_guts *g, int c1, int c2); static void categorize(struct parse *p, struct re_guts *g); static sopno dupl(struct parse *p, sopno start, sopno finish); static void doemit(struct parse *p, sop op, sop opnd); static void doinsert(struct parse *p, sop op, sopno opnd, sopno pos); static void dofwd(struct parse *p, sopno pos, sop value); static void enlarge(struct parse *p, sopno size); static void stripsnug(struct parse *p, struct re_guts *g); static void findmust(struct parse *p, struct re_guts *g); static sopno pluscount(struct parse *p, struct re_guts *g); /* * macros for use with parse structure * BEWARE: these know that the parse structure is named `p' !!! */ #define PEEK() (*p->next) #define PEEK2() (*(p->next+1)) #define MORE() (p->next < p->end) #define MORE2() (p->next+1 < p->end) #define SEE(c) (MORE() && PEEK() == (c)) #define SEETWO(a, b) (MORE() && MORE2() && PEEK() == (a) && PEEK2() == (b)) #define EAT(c) ((SEE(c)) ? (NEXT(), 1) : 0) #define EATTWO(a, b) ((SEETWO(a, b)) ? (NEXT2(), 1) : 0) #define NEXT() (p->next++) #define NEXT2() (p->next += 2) #define NEXTn(n) (p->next += (n)) #define GETNEXT() (*p->next++) #define REQUIRE(co, e) ((co) ? (void) 0 : seterr(p, (e))) #define MUSTEAT(c, e) (REQUIRE(MORE() && GETNEXT() == (c), e)) #define EMIT(op, sopnd) doemit(p, (sop)(op), (sop)(sopnd)) #define INSERT(op, pos) doinsert(p, (sop)(op), HERE()-(pos)+1, pos) #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) #define HERE() (p->slen) #define THERE() (p->slen - 1) #define THERETHERE() (p->slen - 2) #define DROP(n) (p->slen -= (n)) #ifndef NDEBUG static int never = 0; /* for use in asserts; shuts lint up */ #else #define never 0 /* some s have bugs too */ #endif int /* 0 success, otherwise REG_something */ regcomp(preg, pattern, cflags) regex_t *preg; const char *pattern; int cflags; { struct parse pa; struct re_guts *g; struct parse *p = &pa; unsigned int i; size_t len; if ((cflags®_EXTENDED) && (cflags®_NOSPEC)) return(REG_INVARG); if (cflags®_PEND) { if (preg->re_endp < pattern) return(REG_INVARG); len = (size_t) (preg->re_endp - pattern); } else len = strlen((char *)pattern); /* do the mallocs early so failure handling is easy */ g = (struct re_guts *)malloc(sizeof(struct re_guts) + (NC-1)*sizeof(cat_t)); if (g == NULL) return(REG_ESPACE); { /* Patched for CERT Vulnerability Note VU#695940, Feb 2015. */ size_t new_ssize = len/(size_t)2*(size_t)3 + (size_t)1; /* ugh */ if (new_ssize < len || new_ssize > LONG_MAX / sizeof(sop)) { free((char *) g); return REG_INVARG; } p->ssize = (sopno)new_ssize; } p->strip = (sop *)malloc((size_t)p->ssize * sizeof(sop)); p->slen = 0; if (p->strip == NULL) { free((char *)g); return(REG_ESPACE); } /* set things up */ p->g = g; p->next = (char *)pattern; /* convenience; we do not modify it */ p->end = p->next + len; p->error = 0; p->ncsalloc = 0; for (i = 0; i < NPAREN; i++) { p->pbegin[i] = 0; p->pend[i] = 0; } g->csetsize = NC; g->sets = NULL; g->setbits = NULL; g->ncsets = 0; g->cflags = cflags; g->iflags = 0; g->nbol = 0; g->neol = 0; g->must = NULL; g->mlen = 0; g->nsub = 0; g->ncategories = 1; /* category 0 is "everything else" */ g->categories = &g->catspace[-(CHAR_MIN)]; (void) memset((char *)g->catspace, 0, NC*sizeof(cat_t)); g->backrefs = 0; /* do it */ EMIT(OEND, 0); g->firststate = THERE(); if (cflags®_EXTENDED) p_ere(p, OUT); else if (cflags®_NOSPEC) p_str(p); else p_bre(p, OUT, OUT); EMIT(OEND, 0); g->laststate = THERE(); /* tidy up loose ends and fill things in */ categorize(p, g); stripsnug(p, g); findmust(p, g); g->nplus = pluscount(p, g); g->magic = MAGIC2; preg->re_nsub = g->nsub; preg->re_g = g; preg->re_magic = MAGIC1; #ifndef REDEBUG /* not debugging, so can't rely on the assert() in regexec() */ if (g->iflags&BAD) seterr(p, REG_ASSERT); #endif /* win or lose, we're done */ if (p->error != 0) /* lose */ regfree(preg); return(p->error); } /* - p_ere - ERE parser top level, concatenation and alternation */ static void p_ere(p, stop) struct parse *p; int stop; /* character this ERE should end at */ { char c; sopno prevback; sopno prevfwd; sopno conc; int first = 1; /* is this the first alternative? */ for (;;) { /* do a bunch of concatenated expressions */ conc = HERE(); while (MORE() && (c = PEEK()) != '|' && c != stop) p_ere_exp(p); REQUIRE(HERE() != conc, REG_EMPTY); /* require nonempty */ if (!EAT('|')) break; /* NOTE BREAK OUT */ if (first) { INSERT(OCH_, conc); /* offset is wrong */ prevfwd = conc; prevback = conc; first = 0; } ASTERN(OOR1, prevback); prevback = THERE(); AHEAD(prevfwd); /* fix previous offset */ prevfwd = HERE(); EMIT(OOR2, 0); /* offset is very wrong */ } if (!first) { /* tail-end fixups */ AHEAD(prevfwd); ASTERN(O_CH, prevback); } assert(!MORE() || SEE(stop)); } /* - p_ere_exp - parse one subERE, an atom possibly followed by a repetition op */ static void p_ere_exp(p) struct parse *p; { char c; sopno pos; int count; int count2; sopno subno; int wascaret = 0; assert(MORE()); /* caller should have ensured this */ c = GETNEXT(); pos = HERE(); switch (c) { case '(': REQUIRE(MORE(), REG_EPAREN); p->g->nsub++; subno = (sopno)p->g->nsub; if (subno < NPAREN) p->pbegin[subno] = HERE(); EMIT(OLPAREN, subno); if (!SEE(')')) p_ere(p, ')'); if (subno < NPAREN) { p->pend[subno] = HERE(); assert(p->pend[subno] != 0); } EMIT(ORPAREN, subno); MUSTEAT(')', REG_EPAREN); break; #ifndef POSIX_MISTAKE case ')': /* happens only if no current unmatched ( */ /* * You may ask, why the ifndef? Because I didn't notice * this until slightly too late for 1003.2, and none of the * other 1003.2 regular-expression reviewers noticed it at * all. So an unmatched ) is legal POSIX, at least until * we can get it fixed. */ seterr(p, REG_EPAREN); break; #endif case '^': EMIT(OBOL, 0); p->g->iflags |= USEBOL; p->g->nbol++; wascaret = 1; break; case '$': EMIT(OEOL, 0); p->g->iflags |= USEEOL; p->g->neol++; break; case '|': seterr(p, REG_EMPTY); break; case '*': case '+': case '?': seterr(p, REG_BADRPT); break; case '.': if (p->g->cflags®_NEWLINE) nonnewline(p); else EMIT(OANY, 0); break; case '[': p_bracket(p); break; case '\\': REQUIRE(MORE(), REG_EESCAPE); c = GETNEXT(); ordinary(p, c); break; case '{': /* okay as ordinary except if digit follows */ REQUIRE(!MORE() || !isdigit(PEEK()), REG_BADRPT); /* FALLTHROUGH */ default: ordinary(p, c); break; } if (!MORE()) return; c = PEEK(); /* we call { a repetition if followed by a digit */ if (!( c == '*' || c == '+' || c == '?' || (c == '{' && MORE2() && isdigit(PEEK2())) )) return; /* no repetition, we're done */ NEXT(); REQUIRE(!wascaret, REG_BADRPT); switch (c) { case '*': /* implemented as +? */ /* this case does not require the (y|) trick, noKLUDGE */ INSERT(OPLUS_, pos); ASTERN(O_PLUS, pos); INSERT(OQUEST_, pos); ASTERN(O_QUEST, pos); break; case '+': INSERT(OPLUS_, pos); ASTERN(O_PLUS, pos); break; case '?': /* KLUDGE: emit y? as (y|) until subtle bug gets fixed */ INSERT(OCH_, pos); /* offset slightly wrong */ ASTERN(OOR1, pos); /* this one's right */ AHEAD(pos); /* fix the OCH_ */ EMIT(OOR2, 0); /* offset very wrong... */ AHEAD(THERE()); /* ...so fix it */ ASTERN(O_CH, THERETHERE()); break; case '{': count = p_count(p); if (EAT(',')) { if (isdigit(PEEK())) { count2 = p_count(p); REQUIRE(count <= count2, REG_BADBR); } else /* single number with comma */ count2 = INFINITY; } else /* just a single number */ count2 = count; repeat(p, pos, count, count2); if (!EAT('}')) { /* error heuristics */ while (MORE() && PEEK() != '}') NEXT(); REQUIRE(MORE(), REG_EBRACE); seterr(p, REG_BADBR); } break; } if (!MORE()) return; c = PEEK(); if (!( c == '*' || c == '+' || c == '?' || (c == '{' && MORE2() && isdigit(PEEK2())) ) ) return; seterr(p, REG_BADRPT); } /* - p_str - string (no metacharacters) "parser" */ static void p_str(p) struct parse *p; { REQUIRE(MORE(), REG_EMPTY); while (MORE()) ordinary(p, GETNEXT()); } /* - p_bre - BRE parser top level, anchoring and concatenation * Giving end1 as OUT essentially eliminates the end1/end2 check. * * This implementation is a bit of a kludge, in that a trailing $ is first * taken as an ordinary character and then revised to be an anchor. The * only undesirable side effect is that '$' gets included as a character * category in such cases. This is fairly harmless; not worth fixing. * The amount of lookahead needed to avoid this kludge is excessive. */ static void p_bre(p, end1, end2) struct parse *p; int end1; /* first terminating character */ int end2; /* second terminating character */ { sopno start = HERE(); int first = 1; /* first subexpression? */ int wasdollar = 0; if (EAT('^')) { EMIT(OBOL, 0); p->g->iflags |= USEBOL; p->g->nbol++; } while (MORE() && !SEETWO(end1, end2)) { wasdollar = p_simp_re(p, first); first = 0; } if (wasdollar) { /* oops, that was a trailing anchor */ DROP(1); EMIT(OEOL, 0); p->g->iflags |= USEEOL; p->g->neol++; } REQUIRE(HERE() != start, REG_EMPTY); /* require nonempty */ } /* - p_simp_re - parse a simple RE, an atom possibly followed by a repetition */ static int /* was the simple RE an unbackslashed $? */ p_simp_re(p, starordinary) struct parse *p; int starordinary; /* is a leading * an ordinary character? */ { int c; int count; int count2; sopno pos; int i; sopno subno; # define BACKSL (1<g->cflags®_NEWLINE) nonnewline(p); else EMIT(OANY, 0); break; case '[': p_bracket(p); break; case BACKSL|'{': seterr(p, REG_BADRPT); break; case BACKSL|'(': p->g->nsub++; subno = (sopno)p->g->nsub; if (subno < NPAREN) p->pbegin[subno] = HERE(); EMIT(OLPAREN, subno); /* the MORE here is an error heuristic */ if (MORE() && !SEETWO('\\', ')')) p_bre(p, '\\', ')'); if (subno < NPAREN) { p->pend[subno] = HERE(); assert(p->pend[subno] != 0); } EMIT(ORPAREN, subno); REQUIRE(EATTWO('\\', ')'), REG_EPAREN); break; case BACKSL|')': /* should not get here -- must be user */ case BACKSL|'}': seterr(p, REG_EPAREN); break; case BACKSL|'1': case BACKSL|'2': case BACKSL|'3': case BACKSL|'4': case BACKSL|'5': case BACKSL|'6': case BACKSL|'7': case BACKSL|'8': case BACKSL|'9': i = (c&~BACKSL) - '0'; assert(i < NPAREN); if (p->pend[i] != 0) { assert((size_t) i <= p->g->nsub); EMIT(OBACK_, i); assert(p->pbegin[i] != 0); assert(OP(p->strip[p->pbegin[i]]) == OLPAREN); assert(OP(p->strip[p->pend[i]]) == ORPAREN); (void) dupl(p, p->pbegin[i]+1, p->pend[i]); EMIT(O_BACK, i); } else seterr(p, REG_ESUBREG); p->g->backrefs = 1; break; case '*': REQUIRE(starordinary, REG_BADRPT); /* FALLTHROUGH */ default: ordinary(p, (char)c); /* takes off BACKSL, if any */ break; } if (EAT('*')) { /* implemented as +? */ /* this case does not require the (y|) trick, noKLUDGE */ INSERT(OPLUS_, pos); ASTERN(O_PLUS, pos); INSERT(OQUEST_, pos); ASTERN(O_QUEST, pos); } else if (EATTWO('\\', '{')) { count = p_count(p); if (EAT(',')) { if (MORE() && isdigit(PEEK())) { count2 = p_count(p); REQUIRE(count <= count2, REG_BADBR); } else /* single number with comma */ count2 = INFINITY; } else /* just a single number */ count2 = count; repeat(p, pos, count, count2); if (!EATTWO('\\', '}')) { /* error heuristics */ while (MORE() && !SEETWO('\\', '}')) NEXT(); REQUIRE(MORE(), REG_EBRACE); seterr(p, REG_BADBR); } } else if (c == (unsigned char)'$') /* $ (but not \$) ends it */ return(1); return(0); } /* - p_count - parse a repetition count */ static int /* the value */ p_count(p) struct parse *p; { int count = 0; int ndigits = 0; while (MORE() && isdigit(PEEK()) && count <= DUPMAX) { count = count*10 + (GETNEXT() - '0'); ndigits++; } REQUIRE(ndigits > 0 && count <= DUPMAX, REG_BADBR); return(count); } /* - p_bracket - parse a bracketed character list * * Note a significant property of this code: if the allocset() did seterr, * no set operations are done. */ static void p_bracket(p) struct parse *p; { cset *cs = allocset(p); int invert = 0; /* Dept of Truly Sickening Special-Case Kludges */ if (p->next + 5 < p->end && strncmp(p->next, "[:<:]]", 6) == 0) { EMIT(OBOW, 0); NEXTn(6); return; } if (p->next + 5 < p->end && strncmp(p->next, "[:>:]]", 6) == 0) { EMIT(OEOW, 0); NEXTn(6); return; } if (EAT('^')) invert++; /* make note to invert set at end */ if (EAT(']')) CHadd(cs, ']'); else if (EAT('-')) CHadd(cs, '-'); while (MORE() && PEEK() != ']' && !SEETWO('-', ']')) p_b_term(p, cs); if (EAT('-')) CHadd(cs, '-'); MUSTEAT(']', REG_EBRACK); if (p->error != 0) /* don't mess things up further */ return; if (p->g->cflags®_ICASE) { int i; int ci; for (i = p->g->csetsize - 1; i >= 0; i--) if (CHIN(cs, i) && isalpha(i)) { ci = othercase(i); if (ci != i) CHadd(cs, ci); } assert(cs->multis == NULL); /* xxx */ #if 0 if (cs->multis != NULL) mccase(p, cs); #endif } if (invert) { int i; for (i = p->g->csetsize - 1; i >= 0; i--) if (CHIN(cs, i)) CHsub(cs, i); else CHadd(cs, i); if (p->g->cflags®_NEWLINE) CHsub(cs, '\n'); assert(cs->multis == NULL); /* xxx */ #if 0 if (cs->multis != NULL) mcinvert(p, cs); #endif } assert(cs->multis == NULL); /* xxx */ if (nch(p, cs) == 1) { /* optimize singleton sets */ ordinary(p, firstch(p, cs)); freeset(p, cs); } else EMIT(OANYOF, freezeset(p, cs)); } /* - p_b_term - parse one term of a bracketed character list */ static void p_b_term(p, cs) struct parse *p; cset *cs; { char c; char start, finish; int i; /* classify what we've got */ switch ((MORE()) ? PEEK() : '\0') { case '[': c = (MORE2()) ? PEEK2() : '\0'; break; case '-': seterr(p, REG_ERANGE); return; /* NOTE RETURN */ break; default: c = '\0'; break; } switch (c) { case ':': /* character class */ NEXT2(); REQUIRE(MORE(), REG_EBRACK); c = PEEK(); REQUIRE(c != '-' && c != ']', REG_ECTYPE); p_b_cclass(p, cs); REQUIRE(MORE(), REG_EBRACK); REQUIRE(EATTWO(':', ']'), REG_ECTYPE); break; case '=': /* equivalence class */ NEXT2(); REQUIRE(MORE(), REG_EBRACK); c = PEEK(); REQUIRE(c != '-' && c != ']', REG_ECOLLATE); p_b_eclass(p, cs); REQUIRE(MORE(), REG_EBRACK); REQUIRE(EATTWO('=', ']'), REG_ECOLLATE); break; default: /* symbol, ordinary character, or range */ /* xxx revision needed for multichar stuff */ start = p_b_symbol(p); if (SEE('-') && MORE2() && PEEK2() != ']') { /* range */ NEXT(); if (EAT('-')) finish = '-'; else finish = p_b_symbol(p); } else finish = start; /* xxx what about signed chars here... */ REQUIRE(start <= finish, REG_ERANGE); for (i = start; i <= finish; i++) CHadd(cs, i); break; } } /* Character-class table. */ static struct cclass { char *name; char *chars; char *multis; } cclasses[] = { {"alnum", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ""}, {"alpha", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", ""}, {"blank", " \t", ""}, {"cntrl", "\007\b\t\n\v\f\r\1\2\3\4\5\6\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37\177", ""}, {"digit", "0123456789", ""}, {"graph", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", ""}, {"lower", "abcdefghijklmnopqrstuvwxyz", ""}, {"print", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ", ""}, {"punct", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", ""}, {"space", "\t\n\v\f\r ", ""}, {"upper", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", ""}, {"xdigit", "0123456789ABCDEFabcdef", ""}, {NULL, 0, ""} }; /* - p_b_cclass - parse a character-class name and deal with it */ static void p_b_cclass(p, cs) struct parse *p; cset *cs; { char *sp = p->next; struct cclass *cp; size_t len; char *u; char c; while (MORE() && isalpha(PEEK())) NEXT(); len = (size_t)(p->next - sp); for (cp = cclasses; cp->name != NULL; cp++) if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') break; if (cp->name == NULL) { /* oops, didn't find it */ seterr(p, REG_ECTYPE); return; } u = cp->chars; while ((c = *u++) != '\0') CHadd(cs, c); for (u = cp->multis; *u != '\0'; u += strlen(u) + 1) MCadd(p, cs, u); } /* - p_b_eclass - parse an equivalence-class name and deal with it * * This implementation is incomplete. xxx */ static void p_b_eclass(p, cs) struct parse *p; cset *cs; { char c; c = p_b_coll_elem(p, '='); CHadd(cs, c); } /* - p_b_symbol - parse a character or [..]ed multicharacter collating symbol */ static char /* value of symbol */ p_b_symbol(p) struct parse *p; { char value; REQUIRE(MORE(), REG_EBRACK); if (!EATTWO('[', '.')) return(GETNEXT()); /* collating symbol */ value = p_b_coll_elem(p, '.'); REQUIRE(EATTWO('.', ']'), REG_ECOLLATE); return(value); } /* character-name table */ static struct cname { char *name; char code; } cnames[] = { {"NUL", '\0'}, {"SOH", '\001'}, {"STX", '\002'}, {"ETX", '\003'}, {"EOT", '\004'}, {"ENQ", '\005'}, {"ACK", '\006'}, {"BEL", '\007'}, {"alert", '\007'}, {"BS", '\010'}, {"backspace", '\b'}, {"HT", '\011'}, {"tab", '\t'}, {"LF", '\012'}, {"newline", '\n'}, {"VT", '\013'}, {"vertical-tab", '\v'}, {"FF", '\014'}, {"form-feed", '\f'}, {"CR", '\015'}, {"carriage-return", '\r'}, {"SO", '\016'}, {"SI", '\017'}, {"DLE", '\020'}, {"DC1", '\021'}, {"DC2", '\022'}, {"DC3", '\023'}, {"DC4", '\024'}, {"NAK", '\025'}, {"SYN", '\026'}, {"ETB", '\027'}, {"CAN", '\030'}, {"EM", '\031'}, {"SUB", '\032'}, {"ESC", '\033'}, {"IS4", '\034'}, {"FS", '\034'}, {"IS3", '\035'}, {"GS", '\035'}, {"IS2", '\036'}, {"RS", '\036'}, {"IS1", '\037'}, {"US", '\037'}, {"space", ' '}, {"exclamation-mark", '!'}, {"quotation-mark", '"'}, {"number-sign", '#'}, {"dollar-sign", '$'}, {"percent-sign", '%'}, {"ampersand", '&'}, {"apostrophe", '\''}, {"left-parenthesis", '('}, {"right-parenthesis", ')'}, {"asterisk", '*'}, {"plus-sign", '+'}, {"comma", ','}, {"hyphen", '-'}, {"hyphen-minus", '-'}, {"period", '.'}, {"full-stop", '.'}, {"slash", '/'}, {"solidus", '/'}, {"zero", '0'}, {"one", '1'}, {"two", '2'}, {"three", '3'}, {"four", '4'}, {"five", '5'}, {"six", '6'}, {"seven", '7'}, {"eight", '8'}, {"nine", '9'}, {"colon", ':'}, {"semicolon", ';'}, {"less-than-sign", '<'}, {"equals-sign", '='}, {"greater-than-sign", '>'}, {"question-mark", '?'}, {"commercial-at", '@'}, {"left-square-bracket", '['}, {"backslash", '\\'}, {"reverse-solidus", '\\'}, {"right-square-bracket", ']'}, {"circumflex", '^'}, {"circumflex-accent", '^'}, {"underscore", '_'}, {"low-line", '_'}, {"grave-accent", '`'}, {"left-brace", '{'}, {"left-curly-bracket", '{'}, {"vertical-line", '|'}, {"right-brace", '}'}, {"right-curly-bracket", '}'}, {"tilde", '~'}, {"DEL", '\177'}, {NULL, 0}, }; /* - p_b_coll_elem - parse a collating-element name and look it up */ static char /* value of collating element */ p_b_coll_elem(p, endc) struct parse *p; int endc; /* name ended by endc,']' */ { char *sp = p->next; struct cname *cp; size_t len; while (MORE() && !SEETWO(endc, ']')) NEXT(); if (!MORE()) { seterr(p, REG_EBRACK); return(0); } len = (size_t)(p->next - sp); for (cp = cnames; cp->name != NULL; cp++) if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') return(cp->code); /* known name */ if (len == 1) return(*sp); /* single character */ seterr(p, REG_ECOLLATE); /* neither */ return(0); } /* - othercase - return the case counterpart of an alphabetic */ static char /* if no counterpart, return ch */ othercase(ch) int ch; { assert(isalpha(ch)); if (isupper(ch)) return((char)tolower(ch)); else if (islower(ch)) return((char)toupper(ch)); else /* peculiar, but could happen */ return((char)ch); } /* - bothcases - emit a dualcase version of a two-case character * * Boy, is this implementation ever a kludge... */ static void bothcases(p, ch) struct parse *p; int ch; { char *oldnext = p->next; char *oldend = p->end; char bracket[3]; assert(othercase(ch) != ch); /* p_bracket() would recurse */ p->next = bracket; p->end = bracket+2; bracket[0] = (char)ch; bracket[1] = ']'; bracket[2] = '\0'; p_bracket(p); assert(p->next == bracket+2); p->next = oldnext; p->end = oldend; } /* - ordinary - emit an ordinary character */ static void ordinary(p, ch) struct parse *p; int ch; { cat_t *cap = p->g->categories; if ((p->g->cflags®_ICASE) && isalpha(ch) && othercase(ch) != ch) bothcases(p, ch); else { EMIT(OCHAR, (sopno)ch); if (cap[ch] == 0) cap[ch] = (cat_t)(p->g->ncategories++); } } /* - nonnewline - emit REG_NEWLINE version of OANY * * Boy, is this implementation ever a kludge... */ static void nonnewline(p) struct parse *p; { char *oldnext = p->next; char *oldend = p->end; char bracket[4]; p->next = bracket; p->end = bracket+3; bracket[0] = '^'; bracket[1] = '\n'; bracket[2] = ']'; bracket[3] = '\0'; p_bracket(p); assert(p->next == bracket+3); p->next = oldnext; p->end = oldend; } /* - repeat - generate code for a bounded repetition, recursively if needed */ static void repeat(p, start, from, to) struct parse *p; sopno start; /* operand from here to end of strip */ int from; /* repeated from this number */ int to; /* to this number of times (maybe INFINITY) */ { sopno finish = HERE(); # define N 2 # define INF 3 # define REP(f, t) ((f)*8 + (t)) # define MAP(n) (((n) <= 1) ? (n) : ((n) == INFINITY) ? INF : N) sopno copy; if (p->error != 0) /* head off possible runaway recursion */ return; assert(from <= to); switch (REP(MAP(from), MAP(to))) { case REP(0, 0): /* must be user doing this */ DROP(finish-start); /* drop the operand */ break; case REP(0, 1): /* as x{1,1}? */ case REP(0, N): /* as x{1,n}? */ case REP(0, INF): /* as x{1,}? */ /* KLUDGE: emit y? as (y|) until subtle bug gets fixed */ INSERT(OCH_, start); /* offset is wrong... */ repeat(p, start+1, 1, to); ASTERN(OOR1, start); AHEAD(start); /* ... fix it */ EMIT(OOR2, 0); AHEAD(THERE()); ASTERN(O_CH, THERETHERE()); break; case REP(1, 1): /* trivial case */ /* done */ break; case REP(1, N): /* as x?x{1,n-1} */ /* KLUDGE: emit y? as (y|) until subtle bug gets fixed */ INSERT(OCH_, start); ASTERN(OOR1, start); AHEAD(start); EMIT(OOR2, 0); /* offset very wrong... */ AHEAD(THERE()); /* ...so fix it */ ASTERN(O_CH, THERETHERE()); copy = dupl(p, start+1, finish+1); assert(copy == finish+4); repeat(p, copy, 1, to-1); break; case REP(1, INF): /* as x+ */ INSERT(OPLUS_, start); ASTERN(O_PLUS, start); break; case REP(N, N): /* as xx{m-1,n-1} */ copy = dupl(p, start, finish); repeat(p, copy, from-1, to-1); break; case REP(N, INF): /* as xx{n-1,INF} */ copy = dupl(p, start, finish); repeat(p, copy, from-1, to); break; default: /* "can't happen" */ seterr(p, REG_ASSERT); /* just in case */ break; } } /* - seterr - set an error condition */ static void seterr(p, e) struct parse *p; int e; { if (p->error == 0) /* keep earliest error condition */ p->error = e; p->next = nuls; /* try to bring things to a halt */ p->end = nuls; } /* - allocset - allocate a set of characters for [] */ static cset * allocset(p) struct parse *p; { int no = p->g->ncsets++; int nc; int nbytes; cset *cs; int css = p->g->csetsize; int i; if (no >= p->ncsalloc) { /* need another column of space */ p->ncsalloc += CHAR_BIT; nc = p->ncsalloc; assert(nc % CHAR_BIT == 0); nbytes = nc / CHAR_BIT * css; if (p->g->sets == NULL) p->g->sets = (cset *)malloc((size_t)nc * sizeof(cset)); else p->g->sets = (cset *)realloc((char *)p->g->sets, (size_t)nc * sizeof(cset)); if (p->g->setbits == NULL) p->g->setbits = (uch *)malloc((size_t)nbytes); else { p->g->setbits = (uch *)realloc((char *)p->g->setbits, (size_t)nbytes); /* xxx this isn't right if setbits is now NULL */ for (i = 0; i < no; i++) p->g->sets[i].ptr = p->g->setbits + css*(i/CHAR_BIT); } if (p->g->sets != NULL && p->g->setbits != NULL) (void) memset((char *)p->g->setbits + (nbytes - css), 0, (size_t)css); else { no = 0; seterr(p, REG_ESPACE); /* caller's responsibility not to do set ops */ } } assert(p->g->sets != NULL); /* xxx */ cs = &p->g->sets[no]; cs->ptr = p->g->setbits + css*((no)/CHAR_BIT); cs->mask = (uch) (1 << ((no) % CHAR_BIT)); cs->hash = 0; cs->smultis = 0; cs->multis = NULL; return(cs); } /* - freeset - free a now-unused set */ static void freeset(p, cs) struct parse *p; cset *cs; { size_t i; cset *top = &p->g->sets[p->g->ncsets]; size_t css = (size_t)p->g->csetsize; for (i = 0; i < css; i++) CHsub(cs, i); if (cs == top-1) /* recover only the easy case */ p->g->ncsets--; } /* - freezeset - final processing on a set of characters * * The main task here is merging identical sets. This is usually a waste * of time (although the hash code minimizes the overhead), but can win * big if REG_ICASE is being used. REG_ICASE, by the way, is why the hash * is done using addition rather than xor -- all ASCII [aA] sets xor to * the same value! */ static int /* set number */ freezeset(p, cs) struct parse *p; cset *cs; { uch h = cs->hash; size_t i; cset *top = &p->g->sets[p->g->ncsets]; cset *cs2; size_t css = (size_t)p->g->csetsize; /* look for an earlier one which is the same */ for (cs2 = &p->g->sets[0]; cs2 < top; cs2++) if (cs2->hash == h && cs2 != cs) { /* maybe */ for (i = 0; i < css; i++) if (!!CHIN(cs2, i) != !!CHIN(cs, i)) break; /* no */ if (i == css) break; /* yes */ } if (cs2 < top) { /* found one */ freeset(p, cs); cs = cs2; } return((int)(cs - p->g->sets)); } /* - firstch - return first character in a set (which must have at least one) */ static int /* character; there is no "none" value */ firstch(p, cs) struct parse *p; cset *cs; { size_t i; size_t css = (size_t)p->g->csetsize; for (i = 0; i < css; i++) if (CHIN(cs, i)) return((char)i); assert(never); return(0); /* arbitrary */ } /* - nch - number of characters in a set */ static int nch(p, cs) struct parse *p; cset *cs; { size_t i; size_t css = (size_t)p->g->csetsize; int n = 0; for (i = 0; i < css; i++) if (CHIN(cs, i)) n++; return(n); } /* - mcadd - add a collating element to a cset */ static void mcadd(p, cs, cp) struct parse *p; cset *cs; char *cp; { size_t oldend = cs->smultis; cs->smultis += strlen(cp) + 1; if (cs->multis == NULL) cs->multis = malloc(cs->smultis); else cs->multis = realloc(cs->multis, cs->smultis); if (cs->multis == NULL) { seterr(p, REG_ESPACE); return; } (void) strcpy(cs->multis + oldend - 1, cp); cs->multis[cs->smultis - 1] = '\0'; } #if 0 /* - mcsub - subtract a collating element from a cset */ static void mcsub(cs, cp) cset *cs; char *cp; { char *fp = mcfind(cs, cp); size_t len = strlen(fp); assert(fp != NULL); (void) memmove(fp, fp + len + 1, cs->smultis - (fp + len + 1 - cs->multis)); cs->smultis -= len; if (cs->smultis == 0) { free(cs->multis); cs->multis = NULL; return; } cs->multis = realloc(cs->multis, cs->smultis); assert(cs->multis != NULL); } /* - mcin - is a collating element in a cset? */ static int mcin(cs, cp) cset *cs; char *cp; { return(mcfind(cs, cp) != NULL); } /* - mcfind - find a collating element in a cset */ static char * mcfind(cs, cp) cset *cs; char *cp; { char *p; if (cs->multis == NULL) return(NULL); for (p = cs->multis; *p != '\0'; p += strlen(p) + 1) if (strcmp(cp, p) == 0) return(p); return(NULL); } /* - mcinvert - invert the list of collating elements in a cset * * This would have to know the set of possibilities. Implementation * is deferred. */ static void mcinvert(p, cs) struct parse *p; cset *cs; { assert(cs->multis == NULL); /* xxx */ } /* - mccase - add case counterparts of the list of collating elements in a cset * * This would have to know the set of possibilities. Implementation * is deferred. */ static void mccase(p, cs) struct parse *p; cset *cs; { assert(cs->multis == NULL); /* xxx */ } #endif /* - isinsets - is this character in any sets? */ static int /* predicate */ isinsets(g, c) struct re_guts *g; int c; { uch *col; int i; int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; unsigned uc = (unsigned char)c; for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) if (col[uc] != 0) return(1); return(0); } /* - samesets - are these two characters in exactly the same sets? */ static int /* predicate */ samesets(g, c1, c2) struct re_guts *g; int c1; int c2; { uch *col; int i; int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; unsigned uc1 = (unsigned char)c1; unsigned uc2 = (unsigned char)c2; for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) if (col[uc1] != col[uc2]) return(0); return(1); } /* - categorize - sort out character categories */ static void categorize(p, g) struct parse *p; struct re_guts *g; { cat_t *cats = g->categories; int c; int c2; cat_t cat; /* avoid making error situations worse */ if (p->error != 0) return; for (c = CHAR_MIN; c <= CHAR_MAX; c++) if (cats[c] == 0 && isinsets(g, c)) { cat = (cat_t)g->ncategories++; cats[c] = cat; for (c2 = c+1; c2 <= CHAR_MAX; c2++) if (cats[c2] == 0 && samesets(g, c, c2)) cats[c2] = cat; } } /* - dupl - emit a duplicate of a bunch of sops */ static sopno /* start of duplicate */ dupl(p, start, finish) struct parse *p; sopno start; /* from here */ sopno finish; /* to this less one */ { sopno ret = HERE(); sopno len = finish - start; assert(finish >= start); if (len == 0) return(ret); enlarge(p, p->ssize + len); /* this many unexpected additions */ assert(p->ssize >= p->slen + len); (void) memcpy((char *)(p->strip + p->slen), (char *)(p->strip + start), (size_t)len*sizeof(sop)); p->slen += len; return(ret); } /* - doemit - emit a strip operator * * It might seem better to implement this as a macro with a function as * hard-case backup, but it's just too big and messy unless there are * some changes to the data structures. Maybe later. */ static void doemit(p, op, opnd) struct parse *p; sop op; sop opnd; { /* avoid making error situations worse */ if (p->error != 0) return; /* deal with oversize operands ("can't happen", more or less) */ assert(opnd < 1<slen >= p->ssize) enlarge(p, (p->ssize+1) / 2 * 3); /* +50% */ assert(p->slen < p->ssize); /* finally, it's all reduced to the easy case */ p->strip[p->slen++] = SOP(op, opnd); } /* - doinsert - insert a sop into the strip */ static void doinsert(p, op, opnd, pos) struct parse *p; sop op; sopno opnd; sopno pos; { sopno sn; sop s; int i; /* avoid making error situations worse */ if (p->error != 0) return; sn = HERE(); EMIT(op, opnd); /* do checks, ensure space */ assert(HERE() == sn+1); s = p->strip[sn]; /* adjust paren pointers */ assert(pos > 0); for (i = 1; i < NPAREN; i++) { if (p->pbegin[i] >= pos) { p->pbegin[i]++; } if (p->pend[i] >= pos) { p->pend[i]++; } } memmove((char *)&p->strip[pos+1], (char *)&p->strip[pos], (size_t)(HERE()-pos-1)*sizeof(sop)); p->strip[pos] = s; } /* - dofwd - complete a forward reference */ static void dofwd(p, pos, value) struct parse *p; sopno pos; sop value; { /* avoid making error situations worse */ if (p->error != 0) return; assert(value < 1<strip[pos] = OP(p->strip[pos]) | value; } /* - enlarge - enlarge the strip */ static void enlarge(p, size) struct parse *p; sopno size; { sop *sp; if (p->ssize >= size) return; sp = (sop *)realloc(p->strip, (size_t)size*sizeof(sop)); if (sp == NULL) { seterr(p, REG_ESPACE); return; } p->strip = sp; p->ssize = size; } /* - stripsnug - compact the strip */ static void stripsnug(p, g) struct parse *p; struct re_guts *g; { g->nstates = p->slen; g->strip = (sop *)realloc((char *)p->strip, (size_t)p->slen * sizeof(sop)); if (g->strip == NULL) { seterr(p, REG_ESPACE); g->strip = p->strip; } } /* - findmust - fill in must and mlen with longest mandatory literal string * * This algorithm could do fancy things like analyzing the operands of | * for common subsequences. Someday. This code is simple and finds most * of the interesting cases. * * Note that must and mlen got initialized during setup. */ static void findmust(p, g) struct parse *p; struct re_guts *g; { sop *scan; sop *start; sop *newstart; int newlen; sop s; char *cp; sopno i; /* avoid making error situations worse */ if (p->error != 0) return; /* find the longest OCHAR sequence in strip */ newlen = 0; scan = g->strip + 1; do { s = *scan++; switch (OP(s)) { case OCHAR: /* sequence member */ if (newlen == 0) /* new sequence */ newstart = scan - 1; newlen++; break; case OPLUS_: /* things that don't break one */ case OLPAREN: case ORPAREN: break; case OQUEST_: /* things that must be skipped */ case OCH_: scan--; do { scan += OPND(s); s = *scan; /* assert() interferes w debug printouts */ if (OP(s) != O_QUEST && OP(s) != O_CH && OP(s) != OOR2) { g->iflags |= BAD; return; } } while (OP(s) != O_QUEST && OP(s) != O_CH); /* fallthrough */ default: /* things that break a sequence */ if (newlen > g->mlen) { /* ends one */ start = newstart; g->mlen = newlen; } newlen = 0; break; } } while (OP(s) != OEND); if (g->mlen == 0) /* there isn't one */ return; /* turn it into a character string */ g->must = malloc((size_t)g->mlen + 1); if (g->must == NULL) { /* argh; just forget it */ g->mlen = 0; return; } cp = g->must; scan = start; for (i = g->mlen; i > 0; i--) { while (OP(s = *scan++) != OCHAR) continue; assert(cp < g->must + g->mlen); *cp++ = (char)OPND(s); } assert(cp == g->must + g->mlen); *cp++ = '\0'; /* just on general principles */ } /* - pluscount - count + nesting */ static sopno /* nesting depth */ pluscount(p, g) struct parse *p; struct re_guts *g; { sop *scan; sop s; sopno plusnest = 0; sopno maxnest = 0; if (p->error != 0) return(0); /* there may not be an OEND */ scan = g->strip + 1; do { s = *scan++; switch (OP(s)) { case OPLUS_: plusnest++; break; case O_PLUS: if (plusnest > maxnest) maxnest = plusnest; plusnest--; break; } } while (OP(s) != OEND); if (plusnest != 0) g->iflags |= BAD; return(maxnest); } cups-2.4.7/vcnet/regex/mkh0000644000175000017500000000344114502571342015316 0ustar zdohnalzdohnal#! /bin/sh # mkh - pull headers out of C source PATH=/bin:/usr/bin ; export PATH # egrep pattern to pick out marked lines egrep='^ =([ ]|$)' # Sed program to process marked lines into lines for the header file. # The markers have already been removed. Two things are done here: removal # of backslashed newlines, and some fudging of comments. The first is done # because -o needs to have prototypes on one line to strip them down. # Getting comments into the output is tricky; we turn C++-style // comments # into /* */ comments, after altering any existing */'s to avoid trouble. peel=' /\\$/N /\\\n[ ]*/s///g /\/\//s;\*/;* /;g /\/\//s;//\(.*\);/*\1 */;' for a do case "$a" in -o) # old (pre-function-prototype) compiler # add code to comment out argument lists peel="$peel "'/^\([^#\/][^\/]*[a-zA-Z0-9_)]\)(\(.*\))/s;;\1(/*\2*/);' shift ;; -b) # funny Berkeley __P macro peel="$peel "'/^\([^#\/][^\/]*[a-zA-Z0-9_)]\)(\(.*\))/s;;\1 __P((\2));' shift ;; -s) # compiler doesn't like `static foo();' # add code to get rid of the `static' peel="$peel "'/^static[ ][^\/]*[a-zA-Z0-9_)](.*)/s;static.;;' shift ;; -p) # private declarations egrep='^ ==([ ]|$)' shift ;; -i) # wrap in #ifndef, argument is name ifndef="$2" shift ; shift ;; *) break ;; esac done if test " $ifndef" != " " then echo "#ifndef $ifndef" echo "#define $ifndef /* never again */" fi echo "/* ========= begin header generated by $0 ========= */" echo '#ifdef __cplusplus' echo 'extern "C" {' echo '#endif' for f do echo echo "/* === $f === */" egrep "$egrep" $f | sed 's/^ ==*[ ]//;s/^ ==*$//' | sed "$peel" echo done echo '#ifdef __cplusplus' echo '}' echo '#endif' echo "/* ========= end header generated by $0 ========= */" if test " $ifndef" != " " then echo "#endif" fi exit 0 cups-2.4.7/vcnet/regex/main.ih0000644000175000017500000000076414502571342016067 0ustar zdohnalzdohnal/* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus extern "C" { #endif /* === main.c === */ void regress(FILE *in); void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); int options(int type, char *s); int opt(int c, char *s); void fixstr(register char *p); char *check(char *str, regmatch_t sub, char *should); static char *eprint(int err); static int efind(char *name); #ifdef __cplusplus } #endif /* ========= end header generated by ./mkh ========= */ cups-2.4.7/vcnet/regex/main.c0000644000175000017500000002726714502571342015720 0ustar zdohnalzdohnal#include #include #include #include #include #include "regex.h" int debug = 0; int line = 0; int status = 0; int copts = REG_EXTENDED; int eopts = 0; char *fopts = 0; regoff_t startoff = 0; regoff_t endoff = 0; extern int split(); extern void regprint(); static void regress(FILE *in); static void try(char *f0, char *f1, char *f2, char *f3, char *f4, int opts); static char *check(char *str, regmatch_t sub, char *should); static int parseopts(int argc, char *argv[]); static int options(int type, char *s); static int opt(int c, char *s); static void fixstr(char *p); static char *eprint(int err); static int efind(char *name); /* - main - do the simple case, hand off to regress() for regression */ int main(argc, argv) int argc; char *argv[]; { regex_t re; # define NS 10 regmatch_t subs[NS]; char erbuf[100]; int err; int i; int optind = parseopts(argc, argv); if (fopts != 0) { FILE *f = fopen(fopts, "r"); if (f == NULL) { fputs("unable to open input\n", stderr); exit(1); } regress(f); exit(status); } if (optind >= argc) { regress(stdin); exit(status); } err = regcomp(&re, argv[optind++], copts); if (err) { size_t len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "error %s, %lu/%d `%s'\n", eprint(err), (unsigned long)len, (int)sizeof(erbuf), erbuf); exit(status); } regprint(&re, stdout); if (optind >= argc) { regfree(&re); exit(status); } if (eopts®_STARTEND) { subs[0].rm_so = startoff; subs[0].rm_eo = (regoff_t)strlen(argv[optind]) - endoff; } err = regexec(&re, argv[optind], (size_t)NS, subs, eopts); if (err) { size_t len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "error %s, %lu/%d `%s'\n", eprint(err), (unsigned long)len, (int)sizeof(erbuf), erbuf); exit(status); } if (!(copts®_NOSUB)) { int len = (int)(subs[0].rm_eo - subs[0].rm_so); if (subs[0].rm_so != -1) { if (len != 0) printf("match `%.*s'\n", len, argv[optind] + subs[0].rm_so); else printf("match `'@%.1s\n", argv[optind] + subs[0].rm_so); } for (i = 1; i < NS; i++) if (subs[i].rm_so != -1) printf("(%d) `%.*s'\n", i, (int)(subs[i].rm_eo - subs[i].rm_so), argv[optind] + subs[i].rm_so); } exit(status); } /* - regress - main loop of regression test */ static void regress(in) FILE *in; { char inbuf[1000]; # define MAXF 10 char *f[MAXF]; int nf; int i; char erbuf[100]; size_t ne; char *badpat = "invalid regular expression"; # define SHORT 10 char *bpname = "REG_BADPAT"; regex_t re; while (fgets(inbuf, sizeof(inbuf), in) != NULL) { line++; if (inbuf[0] == '#' || inbuf[0] == '\n') continue; /* NOTE CONTINUE */ inbuf[strlen(inbuf)-1] = '\0'; /* get rid of stupid \n */ if (debug) fprintf(stdout, "%d:\n", line); nf = split(inbuf, f, MAXF, "\t\t"); if (nf < 3) { fprintf(stderr, "bad input, line %d\n", line); exit(1); } for (i = 0; i < nf; i++) if (strcmp(f[i], "\"\"") == 0) f[i] = ""; if (nf <= 3) f[3] = NULL; if (nf <= 4) f[4] = NULL; try(f[0], f[1], f[2], f[3], f[4], options('c', f[1])); if (opt('&', f[1])) /* try with either type of RE */ try(f[0], f[1], f[2], f[3], f[4], options('c', f[1]) &~ REG_EXTENDED); } ne = regerror(REG_BADPAT, (regex_t *)NULL, erbuf, sizeof(erbuf)); if (strcmp(erbuf, badpat) != 0 || ne != strlen(badpat)+1) { fprintf(stderr, "end: regerror() test gave `%s' not `%s'\n", erbuf, badpat); status = 1; } ne = regerror(REG_BADPAT, (regex_t *)NULL, erbuf, (size_t)SHORT); if (strncmp(erbuf, badpat, SHORT-1) != 0 || erbuf[SHORT-1] != '\0' || ne != strlen(badpat)+1) { fprintf(stderr, "end: regerror() short test gave `%s' not `%.*s'\n", erbuf, SHORT-1, badpat); status = 1; } ne = regerror(REG_ITOA|REG_BADPAT, (regex_t *)NULL, erbuf, sizeof(erbuf)); if (strcmp(erbuf, bpname) != 0 || ne != strlen(bpname)+1) { fprintf(stderr, "end: regerror() ITOA test gave `%s' not `%s'\n", erbuf, bpname); status = 1; } re.re_endp = bpname; ne = regerror(REG_ATOI, &re, erbuf, sizeof(erbuf)); if (atoi(erbuf) != (int)REG_BADPAT) { fprintf(stderr, "end: regerror() ATOI test gave `%s' not `%ld'\n", erbuf, (long)REG_BADPAT); status = 1; } else if (ne != strlen(erbuf)+1) { fprintf(stderr, "end: regerror() ATOI test len(`%s') = %ld\n", erbuf, (long)REG_BADPAT); status = 1; } } /* - try - try it, and report on problems */ static void try(f0, f1, f2, f3, f4, opts) char *f0; char *f1; char *f2; char *f3; char *f4; int opts; /* may not match f1 */ { regex_t re; # define NSUBS 10 regmatch_t subs[NSUBS]; # define NSHOULD 15 char *should[NSHOULD]; int nshould; char erbuf[100]; int err; size_t len; char *type = (opts & REG_EXTENDED) ? "ERE" : "BRE"; unsigned int i; char *grump; char f0copy[1000]; char f2copy[1000]; strcpy(f0copy, f0); re.re_endp = (opts®_PEND) ? f0copy + strlen(f0copy) : NULL; fixstr(f0copy); err = regcomp(&re, f0copy, opts); if (err != 0 && (!opt('C', f1) || err != efind(f2))) { /* unexpected error or wrong error */ len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "%d: %s error %s, %lu/%u `%s'\n", line, type, eprint(err), (unsigned long)len, (unsigned int)sizeof(erbuf), erbuf); status = 1; } else if (err == 0 && opt('C', f1)) { /* unexpected success */ fprintf(stderr, "%d: %s should have given REG_%s\n", line, type, f2); status = 1; err = 1; /* so we won't try regexec */ } if (err != 0) { regfree(&re); return; } strcpy(f2copy, f2); fixstr(f2copy); if (options('e', f1)®_STARTEND) { if (strchr(f2, '(') == NULL || strchr(f2, ')') == NULL) fprintf(stderr, "%d: bad STARTEND syntax\n", line); subs[0].rm_so = (regoff_t)(strchr(f2, '(') - f2 + 1); subs[0].rm_eo = (regoff_t)(strchr(f2, ')') - f2); } err = regexec(&re, f2copy, NSUBS, subs, options('e', f1)); if (err != 0 && (f3 != NULL || err != REG_NOMATCH)) { /* unexpected error or wrong error */ len = regerror(err, &re, erbuf, sizeof(erbuf)); fprintf(stderr, "%d: %s exec error %s, %lu/%u `%s'\n", line, type, eprint(err), (unsigned long)len, (unsigned int)sizeof(erbuf), erbuf); status = 1; } else if (err != 0) { /* nothing more to check */ } else if (f3 == NULL) { /* unexpected success */ fprintf(stderr, "%d: %s exec should have failed\n", line, type); status = 1; err = 1; /* just on principle */ } else if (opts®_NOSUB) { /* nothing more to check */ } else if ((grump = check(f2, subs[0], f3)) != NULL) { fprintf(stderr, "%d: %s %s\n", line, type, grump); status = 1; err = 1; } if (err != 0 || f4 == NULL) { regfree(&re); return; } for (i = 1; i < NSHOULD; i++) should[i] = NULL; nshould = split(f4, should+1, NSHOULD-1, ","); if (nshould == 0) { nshould = 1; should[1] = ""; } for (i = 1; i < NSUBS; i++) { grump = check(f2, subs[i], should[i]); if (grump != NULL) { fprintf(stderr, "%d: %s $%u %s\n", line, type, i, grump); status = 1; err = 1; } } regfree(&re); } /* - parseopts - half-baked option processing to avoid using getopt, which isn't always available on Windows. */ static int parseopts(argc, argv) int argc; char *argv[]; { int i, j; for (i = 1; i < argc; i++) { if (argv[i][0] != '-' || argv[i][1] == 0) { break; } for (j = 1; argv[i][j] != 0; j++) { char opt = argv[i][j]; if (opt == 'x') { debug++; } else { char *arg; if (argv[i][j+1] != 0) { arg = argv[i] + j+1; } else { if (i == argc-1) { fprintf(stderr, "option requires an argument -- '%c'\n", opt); exit(2); } arg = argv[++i]; } switch (opt) { case 'c': copts = options(opt, arg); break; case 'e': eopts = options(opt, arg); break; case 'f': fopts = arg; break; case 'S': startoff = (regoff_t)strtol(arg, NULL, 10); break; case 'E': endoff = (regoff_t)strtol(arg, NULL, 10); break; default: fprintf(stderr, "usage: %s ", argv[0]); fprintf(stderr, "[-x][-c copt][-e eopt][-f file][-S startoff][-E endoff] [re]\n"); exit(2); } break; } } } return i; } /* - options - pick options out of a regression-test string */ static int options(type, s) int type; /* 'c' compile, 'e' exec */ char *s; { char *p; int o = (type == 'c') ? copts : eopts; char *legal = (type == 'c') ? "bisnmp" : "^$#tl"; for (p = s; *p != '\0'; p++) if (strchr(legal, *p) != NULL) switch (*p) { case 'b': o &= ~REG_EXTENDED; break; case 'i': o |= REG_ICASE; break; case 's': o |= REG_NOSUB; break; case 'n': o |= REG_NEWLINE; break; case 'm': o &= ~REG_EXTENDED; o |= REG_NOSPEC; break; case 'p': o |= REG_PEND; break; case '^': o |= REG_NOTBOL; break; case '$': o |= REG_NOTEOL; break; case '#': o |= REG_STARTEND; break; case 't': /* trace */ o |= REG_TRACE; break; case 'l': /* force long representation */ o |= REG_LARGE; break; case 'r': /* force backref use */ o |= REG_BACKR; break; } return(o); } /* - opt - is a particular option in a regression string? */ static int /* predicate */ opt(c, s) int c; char *s; { return(strchr(s, c) != NULL); } /* - fixstr - transform magic characters in strings */ static void fixstr(p) char *p; { if (p == NULL) return; for (; *p != '\0'; p++) if (*p == 'N') *p = '\n'; else if (*p == 'T') *p = '\t'; else if (*p == 'S') *p = ' '; else if (*p == 'Z') *p = '\0'; } /* - check - check a substring match */ static char * /* NULL or complaint */ check(str, sub, should) char *str; regmatch_t sub; char *should; { regoff_t len; size_t shlen; char *p; static char grump[500]; char *at = NULL; if (should != NULL && strcmp(should, "-") == 0) should = NULL; if (should != NULL && should[0] == '@') { at = should + 1; should = ""; } /* check rm_so and rm_eo for consistency */ if (sub.rm_so > sub.rm_eo || (sub.rm_so == -1 && sub.rm_eo != -1) || (sub.rm_so != -1 && sub.rm_eo == -1) || (sub.rm_so != -1 && sub.rm_so < 0) || (sub.rm_eo != -1 && sub.rm_eo < 0) ) { sprintf(grump, "start %ld end %ld", (long)sub.rm_so, (long)sub.rm_eo); return(grump); } /* check for no match */ if (sub.rm_so == -1 && should == NULL) return(NULL); if (sub.rm_so == -1) return("did not match"); /* check for in range */ if ((size_t) sub.rm_eo > strlen(str)) { sprintf(grump, "start %ld end %ld, past end of string", (long)sub.rm_so, (long)sub.rm_eo); return(grump); } len = sub.rm_eo - sub.rm_so; p = str + sub.rm_so; /* check for not supposed to match */ if (should == NULL) { sprintf(grump, "matched `%.*s'", len, p); return(grump); } shlen = strlen(should); /* check for wrong match */ if ((size_t)len != shlen || strncmp(p, should, shlen) != 0) { sprintf(grump, "matched `%.*s' instead", len, p); return(grump); } if (shlen > 0) return(NULL); /* check null match in right place */ if (at == NULL) return(NULL); shlen = strlen(at); if (shlen == 0) shlen = 1; /* force check for end-of-string */ if (strncmp(p, at, shlen) != 0) { sprintf(grump, "matched null at `%.20s'", p); return(grump); } return(NULL); } /* - eprint - convert error number to name */ static char * eprint(err) int err; { static char epbuf[100]; size_t len; len = regerror(REG_ITOA|err, (regex_t *)NULL, epbuf, sizeof(epbuf)); assert(len <= sizeof(epbuf)); return(epbuf); } /* - efind - convert error name to number */ static int efind(name) char *name; { static char efbuf[100]; regex_t re; sprintf(efbuf, "REG_%s", name); assert(strlen(efbuf) < sizeof(efbuf)); re.re_endp = efbuf; (void) regerror(REG_ATOI, &re, efbuf, sizeof(efbuf)); return(atoi(efbuf)); } cups-2.4.7/vcnet/regex/librxspencer.def0000644000175000017500000000005114502571342017766 0ustar zdohnalzdohnalEXPORTS regcomp regerror regexec regfree cups-2.4.7/vcnet/regex/engine.ih0000644000175000017500000000253514502571342016406 0ustar zdohnalzdohnal/* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus extern "C" { #endif /* === engine.c === */ static int matcher(register struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], int eflags); static char *dissect(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); static char *backref(register struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno lev); static char *fast(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); static char *slow(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); static states step(register struct re_guts *g, sopno start, sopno stop, register states bef, int ch, register states aft); #define BOL (OUT+1) #define EOL (BOL+1) #define BOLEOL (BOL+2) #define NOTHING (BOL+3) #define BOW (BOL+4) #define EOW (BOL+5) #define CODEMAX (BOL+5) /* highest code used */ #define NONCHAR(c) ((c) > CHAR_MAX) #define NNONCHAR (CODEMAX-CHAR_MAX) #ifdef REDEBUG static void print(struct match *m, char *caption, states st, int ch, FILE *d); #endif #ifdef REDEBUG static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); #endif #ifdef REDEBUG static char *pchar(int ch); #endif #ifdef __cplusplus } #endif /* ========= end header generated by ./mkh ========= */ cups-2.4.7/vcnet/regex/engine.c0000644000175000017500000006016714502571342016235 0ustar zdohnalzdohnal/* * The matching engine and friends. This file is #included by regexec.c * after suitable #defines of a variety of macros used herein, so that * different state representations can be used without duplicating masses * of code. */ #ifdef SNAMES #define matcher smatcher #define fast sfast #define slow sslow #define dissect sdissect #define backref sbackref #define step sstep #define print sprint #define at sat #define match smat #endif #ifdef LNAMES #define matcher lmatcher #define fast lfast #define slow lslow #define dissect ldissect #define backref lbackref #define step lstep #define print lprint #define at lat #define match lmat #endif /* another structure passed up and down to avoid zillions of parameters */ struct match { struct re_guts *g; int eflags; regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ char *offp; /* offsets work from here */ char *beginp; /* start of string -- virtual NUL precedes */ char *endp; /* end of string -- virtual NUL here */ char *coldp; /* can be no match starting before here */ char **lastpos; /* [nplus+1] */ STATEVARS; states st; /* current states */ states fresh; /* states for a fresh start */ states tmp; /* temporary */ states empty; /* empty set of states */ }; #ifdef REDEBUG #define SP(t, s, c) print(m, t, s, c, stdout) #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2) #define NOTE(str) { if (m->eflags®_TRACE) printf("=%s\n", (str)); } #else #define SP(t, s, c) /* nothing */ #define AT(t, p1, p2, s1, s2) /* nothing */ #define NOTE(s) /* nothing */ #endif static char *dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst); static char *backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno lev); static char *fast(struct match *m, char *start, char *stop, sopno startst, sopno stopst); static char *slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst); static states step(struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft); #ifdef REDEBUG static void print(struct match *m, char *caption, states st, int ch, FILE *d); static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); static char *pchar(int ch); #endif #define BOL (OUT+1) #define EOL (BOL+1) #define BOLEOL (BOL+2) #define NOTHING (BOL+3) #define BOW (BOL+4) #define EOW (BOL+5) #define CODEMAX (BOL+5) // highest code used #define NONCHAR(c) ((c) > CHAR_MAX) #define NNONCHAR (CODEMAX-CHAR_MAX) /* - matcher - the actual matching engine */ static int /* 0 success, REG_NOMATCH failure */ matcher(g, string, nmatch, pmatch, eflags) struct re_guts *g; char *string; size_t nmatch; regmatch_t pmatch[]; int eflags; { char *endp; int i; struct match mv; struct match *m = &mv; char *dp; const sopno gf = g->firststate+1; /* +1 for OEND */ const sopno gl = g->laststate; char *start; char *stop; /* simplify the situation where possible */ if (g->cflags®_NOSUB) nmatch = 0; if (eflags®_STARTEND) { start = string + pmatch[0].rm_so; stop = string + pmatch[0].rm_eo; } else { start = string; stop = start + strlen(start); } if (stop < start) return(REG_INVARG); /* prescreening; this does wonders for this rather slow code */ if (g->must != NULL) { for (dp = start; dp < stop; dp++) if (*dp == g->must[0] && stop - dp >= g->mlen && memcmp(dp, g->must, (size_t)g->mlen) == 0) break; if (dp == stop) /* we didn't find g->must */ return(REG_NOMATCH); } /* match struct setup */ m->g = g; m->eflags = eflags; m->pmatch = NULL; m->lastpos = NULL; m->offp = string; m->beginp = start; m->endp = stop; STATESETUP(m, 4); SETUP(m->st); SETUP(m->fresh); SETUP(m->tmp); SETUP(m->empty); CLEAR(m->empty); /* this loop does only one repetition except for backrefs */ for (;;) { endp = fast(m, start, stop, gf, gl); if (endp == NULL) { /* a miss */ STATETEARDOWN(m); return(REG_NOMATCH); } if (nmatch == 0 && !g->backrefs) break; /* no further info needed */ /* where? */ assert(m->coldp != NULL); for (;;) { NOTE("finding start"); endp = slow(m, m->coldp, stop, gf, gl); if (endp != NULL) break; assert(m->coldp < m->endp); m->coldp++; } if (nmatch == 1 && !g->backrefs) break; /* no further info needed */ /* oh my, he wants the subexpressions... */ if (m->pmatch == NULL) m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * sizeof(regmatch_t)); if (m->pmatch == NULL) { STATETEARDOWN(m); return(REG_ESPACE); } for (i = 1; (size_t) i <= m->g->nsub; i++) m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; if (!g->backrefs && !(m->eflags®_BACKR)) { NOTE("dissecting"); dp = dissect(m, m->coldp, endp, gf, gl); } else { if (g->nplus > 0 && m->lastpos == NULL) m->lastpos = (char **)malloc(((size_t)g->nplus+1) * sizeof(char *)); if (g->nplus > 0 && m->lastpos == NULL) { free(m->pmatch); STATETEARDOWN(m); return(REG_ESPACE); } NOTE("backref dissect"); dp = backref(m, m->coldp, endp, gf, gl, (sopno)0); } if (dp != NULL) break; /* uh-oh... we couldn't find a subexpression-level match */ assert(g->backrefs); /* must be back references doing it */ assert(g->nplus == 0 || m->lastpos != NULL); for (;;) { if (dp != NULL || endp <= m->coldp) break; /* defeat */ NOTE("backoff"); endp = slow(m, m->coldp, endp-1, gf, gl); if (endp == NULL) break; /* defeat */ /* try it on a shorter possibility */ #ifndef NDEBUG for (i = 1; (size_t) i <= m->g->nsub; i++) { assert(m->pmatch[i].rm_so == -1); assert(m->pmatch[i].rm_eo == -1); } #endif NOTE("backoff dissect"); dp = backref(m, m->coldp, endp, gf, gl, (sopno)0); } assert(dp == NULL || dp == endp); if (dp != NULL) /* found a shorter one */ break; /* despite initial appearances, there is no match here */ NOTE("false alarm"); start = m->coldp + 1; /* recycle starting later */ assert(start <= stop); } /* fill in the details if requested */ if (nmatch > 0) { pmatch[0].rm_so = (regoff_t)(m->coldp - m->offp); pmatch[0].rm_eo = (regoff_t)(endp - m->offp); } if (nmatch > 1) { assert(m->pmatch != NULL); for (i = 1; (size_t) i < nmatch; i++) if ((size_t) i <= m->g->nsub) pmatch[i] = m->pmatch[i]; else { pmatch[i].rm_so = -1; pmatch[i].rm_eo = -1; } } if (m->pmatch != NULL) free((char *)m->pmatch); if (m->lastpos != NULL) free((char *)m->lastpos); STATETEARDOWN(m); return(0); } /* - dissect - figure out what matched what, no back references */ static char * /* == stop (success) always */ dissect(m, start, stop, startst, stopst) struct match *m; char *start; char *stop; sopno startst; sopno stopst; { int i; sopno ss; /* start sop of current subRE */ sopno es; /* end sop of current subRE */ char *sp; /* start of string matched by it */ char *stp; /* string matched by it cannot pass here */ char *rest; /* start of rest of string */ char *tail; /* string unmatched by rest of RE */ sopno ssub; /* start sop of subsubRE */ sopno esub; /* end sop of subsubRE */ char *ssp; /* start of string matched by subsubRE */ char *sep; /* end of string matched by subsubRE */ char *oldssp; /* previous ssp */ char *dp; AT("diss", start, stop, startst, stopst); sp = start; for (ss = startst; ss < stopst; ss = es) { /* identify end of subRE */ es = ss; switch (OP(m->g->strip[es])) { case OPLUS_: case OQUEST_: es += OPND(m->g->strip[es]); break; case OCH_: while (OP(m->g->strip[es]) != O_CH) es += OPND(m->g->strip[es]); break; } es++; /* figure out what it matched */ switch (OP(m->g->strip[ss])) { case OEND: assert(nope); break; case OCHAR: sp++; break; case OBOL: case OEOL: case OBOW: case OEOW: break; case OANY: case OANYOF: sp++; break; case OBACK_: case O_BACK: assert(nope); break; /* cases where length of match is hard to find */ case OQUEST_: stp = stop; for (;;) { /* how long could this one be? */ rest = slow(m, sp, stp, ss, es); assert(rest != NULL); /* it did match */ /* could the rest match the rest? */ tail = slow(m, rest, stop, es, stopst); if (tail == stop) break; /* yes! */ /* no -- try a shorter match for this one */ stp = rest - 1; assert(stp >= sp); /* it did work */ } ssub = ss + 1; esub = es - 1; /* did innards match? */ if (slow(m, sp, rest, ssub, esub) != NULL) { dp = dissect(m, sp, rest, ssub, esub); assert(dp == rest); } else /* no */ assert(sp == rest); sp = rest; break; case OPLUS_: stp = stop; for (;;) { /* how long could this one be? */ rest = slow(m, sp, stp, ss, es); assert(rest != NULL); /* it did match */ /* could the rest match the rest? */ tail = slow(m, rest, stop, es, stopst); if (tail == stop) break; /* yes! */ /* no -- try a shorter match for this one */ stp = rest - 1; assert(stp >= sp); /* it did work */ } ssub = ss + 1; esub = es - 1; ssp = sp; oldssp = ssp; for (;;) { /* find last match of innards */ sep = slow(m, ssp, rest, ssub, esub); if (sep == NULL || sep == ssp) break; /* failed or matched null */ oldssp = ssp; /* on to next try */ ssp = sep; } if (sep == NULL) { /* last successful match */ sep = ssp; ssp = oldssp; } assert(sep == rest); /* must exhaust substring */ assert(slow(m, ssp, sep, ssub, esub) == rest); dp = dissect(m, ssp, sep, ssub, esub); assert(dp == sep); sp = rest; break; case OCH_: stp = stop; for (;;) { /* how long could this one be? */ rest = slow(m, sp, stp, ss, es); assert(rest != NULL); /* it did match */ /* could the rest match the rest? */ tail = slow(m, rest, stop, es, stopst); if (tail == stop) break; /* yes! */ /* no -- try a shorter match for this one */ stp = rest - 1; assert(stp >= sp); /* it did work */ } ssub = ss + 1; esub = ss + OPND(m->g->strip[ss]) - 1; assert(OP(m->g->strip[esub]) == OOR1); for (;;) { /* find first matching branch */ if (slow(m, sp, rest, ssub, esub) == rest) break; /* it matched all of it */ /* that one missed, try next one */ assert(OP(m->g->strip[esub]) == OOR1); esub++; assert(OP(m->g->strip[esub]) == OOR2); ssub = esub + 1; esub += OPND(m->g->strip[esub]); if (OP(m->g->strip[esub]) == OOR2) esub--; else assert(OP(m->g->strip[esub]) == O_CH); } dp = dissect(m, sp, rest, ssub, esub); assert(dp == rest); sp = rest; break; case O_PLUS: case O_QUEST: case OOR1: case OOR2: case O_CH: assert(nope); break; case OLPAREN: i = OPND(m->g->strip[ss]); assert(0 < i && (size_t) i <= m->g->nsub); m->pmatch[i].rm_so = (regoff_t)(sp - m->offp); break; case ORPAREN: i = OPND(m->g->strip[ss]); assert(0 < i && (size_t) i <= m->g->nsub); m->pmatch[i].rm_eo = (regoff_t)(sp - m->offp); break; default: /* uh oh */ assert(nope); break; } } assert(sp == stop); return(sp); } /* - backref - figure out what matched what, figuring in back references */ static char * /* == stop (success) or NULL (failure) */ backref(m, start, stop, startst, stopst, lev) struct match *m; char *start; char *stop; sopno startst; sopno stopst; sopno lev; /* PLUS nesting level */ { int i; sopno ss; /* start sop of current subRE */ char *sp; /* start of string matched by it */ sopno ssub; /* start sop of subsubRE */ sopno esub; /* end sop of subsubRE */ char *ssp; /* start of string matched by subsubRE */ char *dp; size_t len; int hard; sop s; regoff_t offsave; cset *cs; AT("back", start, stop, startst, stopst); sp = start; /* get as far as we can with easy stuff */ hard = 0; for (ss = startst; !hard && ss < stopst; ss++) switch (OP(s = m->g->strip[ss])) { case OCHAR: if (sp == stop || *sp++ != (char)OPND(s)) return(NULL); break; case OANY: if (sp == stop) return(NULL); sp++; break; case OANYOF: cs = &m->g->sets[OPND(s)]; if (sp == stop || !CHIN(cs, *sp++)) return(NULL); break; case OBOL: if ( (sp == m->beginp && !(m->eflags®_NOTBOL)) || (sp < m->endp && *(sp-1) == '\n' && (m->g->cflags®_NEWLINE)) ) { /* yes */ } else return(NULL); break; case OEOL: if ( (sp == m->endp && !(m->eflags®_NOTEOL)) || (sp < m->endp && *sp == '\n' && (m->g->cflags®_NEWLINE)) ) { /* yes */ } else return(NULL); break; case OBOW: if (( (sp == m->beginp && !(m->eflags®_NOTBOL)) || (sp < m->endp && *(sp-1) == '\n' && (m->g->cflags®_NEWLINE)) || (sp > m->beginp && !ISWORD(*(sp-1))) ) && (sp < m->endp && ISWORD(*sp)) ) { /* yes */ } else return(NULL); break; case OEOW: if (( (sp == m->endp && !(m->eflags®_NOTEOL)) || (sp < m->endp && *sp == '\n' && (m->g->cflags®_NEWLINE)) || (sp < m->endp && !ISWORD(*sp)) ) && (sp > m->beginp && ISWORD(*(sp-1))) ) { /* yes */ } else return(NULL); break; case O_QUEST: break; case OOR1: /* matches null but needs to skip */ ss++; s = m->g->strip[ss]; do { assert(OP(s) == OOR2); ss += OPND(s); } while (OP(s = m->g->strip[ss]) != O_CH); /* note that the ss++ gets us past the O_CH */ break; default: /* have to make a choice */ hard = 1; break; } if (!hard) { /* that was it! */ if (sp != stop) return(NULL); return(sp); } ss--; /* adjust for the for's final increment */ /* the hard stuff */ AT("hard", sp, stop, ss, stopst); s = m->g->strip[ss]; switch (OP(s)) { case OBACK_: /* the vilest depths */ i = OPND(s); assert(0 < i && (size_t) i <= m->g->nsub); if (m->pmatch[i].rm_eo == -1) return(NULL); assert(m->pmatch[i].rm_so != -1); len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so); assert((size_t) (stop - m->beginp) >= len); if (sp > stop - len) return(NULL); /* not enough left to match */ ssp = m->offp + m->pmatch[i].rm_so; if (memcmp(sp, ssp, len) != 0) return(NULL); while (m->g->strip[ss] != SOP(O_BACK, i)) ss++; return(backref(m, sp+len, stop, ss+1, stopst, lev)); break; case OQUEST_: /* to null or not */ dp = backref(m, sp, stop, ss+1, stopst, lev); if (dp != NULL) return(dp); /* not */ return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev)); break; case OPLUS_: assert(m->lastpos != NULL); assert(lev+1 <= m->g->nplus); m->lastpos[lev+1] = sp; return(backref(m, sp, stop, ss+1, stopst, lev+1)); break; case O_PLUS: if (sp == m->lastpos[lev]) /* last pass matched null */ return(backref(m, sp, stop, ss+1, stopst, lev-1)); /* try another pass */ m->lastpos[lev] = sp; dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev); if (dp == NULL) return(backref(m, sp, stop, ss+1, stopst, lev-1)); else return(dp); break; case OCH_: /* find the right one, if any */ ssub = ss + 1; esub = ss + OPND(s) - 1; assert(OP(m->g->strip[esub]) == OOR1); for (;;) { /* find first matching branch */ dp = backref(m, sp, stop, ssub, esub, lev); if (dp != NULL) return(dp); /* that one missed, try next one */ if (OP(m->g->strip[esub]) == O_CH) return(NULL); /* there is none */ esub++; assert(OP(m->g->strip[esub]) == OOR2); ssub = esub + 1; esub += OPND(m->g->strip[esub]); if (OP(m->g->strip[esub]) == OOR2) esub--; else assert(OP(m->g->strip[esub]) == O_CH); } break; case OLPAREN: /* must undo assignment if rest fails */ i = OPND(s); assert(0 < i && (size_t) i <= m->g->nsub); offsave = m->pmatch[i].rm_so; m->pmatch[i].rm_so = (regoff_t)(sp - m->offp); dp = backref(m, sp, stop, ss+1, stopst, lev); if (dp != NULL) return(dp); m->pmatch[i].rm_so = offsave; return(NULL); break; case ORPAREN: /* must undo assignment if rest fails */ i = OPND(s); assert(0 < i && (size_t) i <= m->g->nsub); offsave = m->pmatch[i].rm_eo; m->pmatch[i].rm_eo = (regoff_t)(sp - m->offp); dp = backref(m, sp, stop, ss+1, stopst, lev); if (dp != NULL) return(dp); m->pmatch[i].rm_eo = offsave; return(NULL); break; default: /* uh oh */ assert(nope); break; } /* "can't happen" */ assert(nope); /* NOTREACHED */ return((char *)NULL); /* dummy */ } /* - fast - step through the string at top speed */ static char * /* where tentative match ended, or NULL */ fast(m, start, stop, startst, stopst) struct match *m; char *start; char *stop; sopno startst; sopno stopst; { states st = m->st; states fresh = m->fresh; states tmp = m->tmp; char *p = start; int c = (start == m->beginp) ? OUT : *(start-1); int lastc; /* previous c */ int flagch; int i; char *coldp; /* last p after which no match was underway */ CLEAR(st); SET1(st, startst); st = step(m->g, startst, stopst, st, NOTHING, st); ASSIGN(fresh, st); SP("start", st, *p); coldp = NULL; for (;;) { /* next character */ lastc = c; c = (p == m->endp) ? OUT : *p; if (EQ(st, fresh)) coldp = p; /* is there an EOL and/or BOL between lastc and c? */ flagch = '\0'; i = 0; if ( (lastc == '\n' && m->g->cflags®_NEWLINE) || (lastc == OUT && !(m->eflags®_NOTBOL)) ) { flagch = BOL; i = m->g->nbol; } if ( (c == '\n' && m->g->cflags®_NEWLINE) || (c == OUT && !(m->eflags®_NOTEOL)) ) { flagch = (flagch == BOL) ? BOLEOL : EOL; i += m->g->neol; } if (i != 0) { for (; i > 0; i--) st = step(m->g, startst, stopst, st, flagch, st); SP("boleol", st, c); } /* how about a word boundary? */ if ( (flagch == BOL || (lastc != OUT && !ISWORD(lastc))) && (c != OUT && ISWORD(c)) ) { flagch = BOW; } if ( (lastc != OUT && ISWORD(lastc)) && (flagch == EOL || (c != OUT && !ISWORD(c))) ) { flagch = EOW; } if (flagch == BOW || flagch == EOW) { st = step(m->g, startst, stopst, st, flagch, st); SP("boweow", st, c); } /* are we done? */ if (ISSET(st, stopst) || p == stop) break; /* NOTE BREAK OUT */ /* no, we must deal with this character */ ASSIGN(tmp, st); ASSIGN(st, fresh); assert(c != OUT); st = step(m->g, startst, stopst, tmp, c, st); SP("aft", st, c); assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); p++; } assert(coldp != NULL); m->coldp = coldp; if (ISSET(st, stopst)) return(p+1); else return(NULL); } /* - slow - step through the string more deliberately */ static char * /* where it ended */ slow(m, start, stop, startst, stopst) struct match *m; char *start; char *stop; sopno startst; sopno stopst; { states st = m->st; states empty = m->empty; char *p = start; int c = (start == m->beginp) ? OUT : *(start-1); int lastc; /* previous c */ int flagch; int i; char *matchp; /* last p at which a match ended */ AT("slow", start, stop, startst, stopst); CLEAR(st); SET1(st, startst); SP("sstart", st, *p); st = step(m->g, startst, stopst, st, NOTHING, st); matchp = NULL; for (;;) { /* next character */ lastc = c; c = (p == m->endp) ? OUT : *p; /* is there an EOL and/or BOL between lastc and c? */ flagch = '\0'; i = 0; if ( (lastc == '\n' && m->g->cflags®_NEWLINE) || (lastc == OUT && !(m->eflags®_NOTBOL)) ) { flagch = BOL; i = m->g->nbol; } if ( (c == '\n' && m->g->cflags®_NEWLINE) || (c == OUT && !(m->eflags®_NOTEOL)) ) { flagch = (flagch == BOL) ? BOLEOL : EOL; i += m->g->neol; } if (i != 0) { for (; i > 0; i--) st = step(m->g, startst, stopst, st, flagch, st); SP("sboleol", st, c); } /* how about a word boundary? */ if ( (flagch == BOL || (lastc != OUT && !ISWORD(lastc))) && (c != OUT && ISWORD(c)) ) { flagch = BOW; } if ( (lastc != OUT && ISWORD(lastc)) && (flagch == EOL || (c != OUT && !ISWORD(c))) ) { flagch = EOW; } if (flagch == BOW || flagch == EOW) { st = step(m->g, startst, stopst, st, flagch, st); SP("sboweow", st, c); } /* are we done? */ if (ISSET(st, stopst)) matchp = p; if (EQ(st, empty) || p == stop) break; /* NOTE BREAK OUT */ /* no, we must deal with this character */ assert(c != OUT); st = step(m->g, startst, stopst, st, c, empty); SP("saft", st, c); assert(EQ(step(m->g, startst, stopst, st, NOTHING, st), st)); p++; } return(matchp); } /* - step - map set of states reachable before char to set reachable after */ static states step(g, start, stop, bef, ch, aft) struct re_guts *g; sopno start; /* start state within strip */ sopno stop; /* state after stop state within strip */ states bef; /* states reachable before */ int ch; /* character or NONCHAR code */ states aft; /* states already known reachable after */ { cset *cs; sop s; sopno pc; onestate here; /* note, macros know this name */ sopno look; long i; for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { s = g->strip[pc]; switch (OP(s)) { case OEND: assert(pc == stop-1); break; case OCHAR: /* only characters can match */ assert(!NONCHAR(ch) || ch != (char)OPND(s)); if (ch == (char)OPND(s)) FWD(aft, bef, 1); break; case OBOL: if (ch == BOL || ch == BOLEOL) FWD(aft, bef, 1); break; case OEOL: if (ch == EOL || ch == BOLEOL) FWD(aft, bef, 1); break; case OBOW: if (ch == BOW) FWD(aft, bef, 1); break; case OEOW: if (ch == EOW) FWD(aft, bef, 1); break; case OANY: if (!NONCHAR(ch)) FWD(aft, bef, 1); break; case OANYOF: cs = &g->sets[OPND(s)]; if (!NONCHAR(ch) && CHIN(cs, ch)) FWD(aft, bef, 1); break; case OBACK_: /* ignored here */ case O_BACK: FWD(aft, aft, 1); break; case OPLUS_: /* forward, this is just an empty */ FWD(aft, aft, 1); break; case O_PLUS: /* both forward and back */ FWD(aft, aft, 1); i = ISSETBACK(aft, OPND(s)); BACK(aft, aft, OPND(s)); if (!i && ISSETBACK(aft, OPND(s))) { /* oho, must reconsider loop body */ pc -= OPND(s) + 1; INIT(here, pc); } break; case OQUEST_: /* two branches, both forward */ FWD(aft, aft, 1); FWD(aft, aft, OPND(s)); break; case O_QUEST: /* just an empty */ FWD(aft, aft, 1); break; case OLPAREN: /* not significant here */ case ORPAREN: FWD(aft, aft, 1); break; case OCH_: /* mark the first two branches */ FWD(aft, aft, 1); assert(OP(g->strip[pc+OPND(s)]) == OOR2); FWD(aft, aft, OPND(s)); break; case OOR1: /* done a branch, find the O_CH */ if (ISSTATEIN(aft, here)) { for (look = 1; OP(s = g->strip[pc+look]) != O_CH; look += OPND(s)) assert(OP(s) == OOR2); FWD(aft, aft, look); } break; case OOR2: /* propagate OCH_'s marking */ FWD(aft, aft, 1); if (OP(g->strip[pc+OPND(s)]) != O_CH) { assert(OP(g->strip[pc+OPND(s)]) == OOR2); FWD(aft, aft, OPND(s)); } break; case O_CH: /* just empty */ FWD(aft, aft, 1); break; default: /* ooooops... */ assert(nope); break; } } return(aft); } #ifdef REDEBUG /* - print - print a set of states */ static void print(m, caption, st, ch, d) struct match *m; char *caption; states st; int ch; FILE *d; { struct re_guts *g = m->g; int i; int first = 1; if (!(m->eflags®_TRACE)) return; fprintf(d, "%s", caption); if (ch != '\0') fprintf(d, " %s", pchar(ch)); for (i = 0; i < g->nstates; i++) if (ISSET(st, i)) { fprintf(d, "%s%d", (first) ? "\t" : ", ", i); first = 0; } fprintf(d, "\n"); } /* - at - print current situation */ static void at(m, title, start, stop, startst, stopst) struct match *m; char *title; char *start; char *stop; sopno startst; sopno stopst; { if (!(m->eflags®_TRACE)) return; printf("%s %s-", title, pchar(*start)); printf("%s ", pchar(*stop)); printf("%ld-%ld\n", (long)startst, (long)stopst); } #ifndef PCHARDONE #define PCHARDONE /* never again */ /* - pchar - make a character printable * * Is this identical to regchar() over in debug.c? Well, yes. But a * duplicate here avoids having a debugging-capable regexec.o tied to * a matching debug.o, and this is convenient. It all disappears in * the non-debug compilation anyway, so it doesn't matter much. */ static char * /* -> representation */ pchar(ch) int ch; { static char pbuf[10]; if (isprint(ch) || ch == ' ') sprintf(pbuf, "%c", ch); else sprintf(pbuf, "\\%o", ch); return(pbuf); } #endif #endif #undef matcher #undef fast #undef slow #undef dissect #undef backref #undef step #undef print #undef at #undef match cups-2.4.7/vcnet/regex/debug.ih0000644000175000017500000000051114502571342016217 0ustar zdohnalzdohnal/* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus extern "C" { #endif /* === debug.c === */ void regprint(regex_t *r, FILE *d); static void s_print(register struct re_guts *g, FILE *d); static char *regchar(int ch); #ifdef __cplusplus } #endif /* ========= end header generated by ./mkh ========= */ cups-2.4.7/vcnet/regex/debug.c0000644000175000017500000001142214502571342016044 0ustar zdohnalzdohnal#include #include #include #include #include #include #include "regex.h" #include "regex2.h" static void s_print(struct re_guts *g, FILE *d); static char *regchar(int ch); /* - regprint - print a regexp for debugging */ void regprint(r, d) regex_t *r; FILE *d; { struct re_guts *g = r->re_g; int i; int c; int last; int nincat[NC]; fprintf(d, "%ld states, %d categories", (long)g->nstates, g->ncategories); fprintf(d, ", first %ld last %ld", (long)g->firststate, (long)g->laststate); if (g->iflags&USEBOL) fprintf(d, ", USEBOL"); if (g->iflags&USEEOL) fprintf(d, ", USEEOL"); if (g->iflags&BAD) fprintf(d, ", BAD"); if (g->nsub > 0) fprintf(d, ", nsub=%ld", (long)g->nsub); if (g->must != NULL) fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen, g->must); if (g->backrefs) fprintf(d, ", backrefs"); if (g->nplus > 0) fprintf(d, ", nplus %ld", (long)g->nplus); fprintf(d, "\n"); s_print(g, d); for (i = 0; i < g->ncategories; i++) { nincat[i] = 0; for (c = CHAR_MIN; c <= CHAR_MAX; c++) if (g->categories[c] == i) nincat[i]++; } fprintf(d, "cc0#%d", nincat[0]); for (i = 1; i < g->ncategories; i++) if (nincat[i] == 1) { for (c = CHAR_MIN; c <= CHAR_MAX; c++) if (g->categories[c] == i) break; fprintf(d, ", %d=%s", i, regchar(c)); } fprintf(d, "\n"); for (i = 1; i < g->ncategories; i++) if (nincat[i] != 1) { fprintf(d, "cc%d\t", i); last = -1; for (c = CHAR_MIN; c <= CHAR_MAX+1; c++) /* +1 does flush */ if (c <= CHAR_MAX && g->categories[c] == i) { if (last < 0) { fprintf(d, "%s", regchar(c)); last = c; } } else { if (last >= 0) { if (last != c-1) fprintf(d, "-%s", regchar(c-1)); last = -1; } } fprintf(d, "\n"); } } /* - s_print - print the strip for debugging */ static void s_print(g, d) struct re_guts *g; FILE *d; { sop *s; cset *cs; int i; int done = 0; sop opnd; int col = 0; int last; sopno offset = 2; # define GAP() { if (offset % 5 == 0) { \ if (col > 40) { \ fprintf(d, "\n\t"); \ col = 0; \ } else { \ fprintf(d, " "); \ col++; \ } \ } else \ col++; \ offset++; \ } if (OP(g->strip[0]) != OEND) fprintf(d, "missing initial OEND!\n"); for (s = &g->strip[1]; !done; s++) { opnd = OPND(*s); switch (OP(*s)) { case OEND: fprintf(d, "\n"); done = 1; break; case OCHAR: if (strchr("\\|()^$.[+*?{}!<> ", (char)opnd) != NULL) fprintf(d, "\\%c", (char)opnd); else fprintf(d, "%s", regchar((char)opnd)); break; case OBOL: fprintf(d, "^"); break; case OEOL: fprintf(d, "$"); break; case OBOW: fprintf(d, "\\{"); break; case OEOW: fprintf(d, "\\}"); break; case OANY: fprintf(d, "."); break; case OANYOF: fprintf(d, "[(%ld)", (long)opnd); cs = &g->sets[opnd]; last = -1; for (i = 0; i < g->csetsize+1; i++) /* +1 flushes */ if (CHIN(cs, i) && i < g->csetsize) { if (last < 0) { fprintf(d, "%s", regchar(i)); last = i; } } else { if (last >= 0) { if (last != i-1) fprintf(d, "-%s", regchar(i-1)); last = -1; } } fprintf(d, "]"); break; case OBACK_: fprintf(d, "(\\<%ld>", (long)opnd); break; case O_BACK: fprintf(d, "<%ld>\\)", (long)opnd); break; case OPLUS_: fprintf(d, "(+"); if (OP(*(s+opnd)) != O_PLUS) fprintf(d, "<%ld>", (long)opnd); break; case O_PLUS: if (OP(*(s-opnd)) != OPLUS_) fprintf(d, "<%ld>", (long)opnd); fprintf(d, "+)"); break; case OQUEST_: fprintf(d, "(?"); if (OP(*(s+opnd)) != O_QUEST) fprintf(d, "<%ld>", (long)opnd); break; case O_QUEST: if (OP(*(s-opnd)) != OQUEST_) fprintf(d, "<%ld>", (long)opnd); fprintf(d, "?)"); break; case OLPAREN: fprintf(d, "((<%ld>", (long)opnd); break; case ORPAREN: fprintf(d, "<%ld>))", (long)opnd); break; case OCH_: fprintf(d, "<"); if (OP(*(s+opnd)) != OOR2) fprintf(d, "<%ld>", (long)opnd); break; case OOR1: if (OP(*(s-opnd)) != OOR1 && OP(*(s-opnd)) != OCH_) fprintf(d, "<%ld>", (long)opnd); fprintf(d, "|"); break; case OOR2: fprintf(d, "|"); if (OP(*(s+opnd)) != OOR2 && OP(*(s+opnd)) != O_CH) fprintf(d, "<%ld>", (long)opnd); break; case O_CH: if (OP(*(s-opnd)) != OOR1) fprintf(d, "<%ld>", (long)opnd); fprintf(d, ">"); break; default: fprintf(d, "!%ld(%ld)!", OP(*s), opnd); break; } if (!done) GAP(); } } /* - regchar - make a character printable */ static char * /* -> representation */ regchar(ch) int ch; { static char buf[10]; if (isprint(ch) || ch == ' ') sprintf(buf, "%c", ch); else sprintf(buf, "\\%o", ch); return(buf); } cups-2.4.7/vcnet/regex/WHATSNEW0000644000175000017500000001644714502571342016011 0ustar zdohnalzdohnalNew in 3.9.0 (Gary Houston): Conversion to cmake build system, contributed by Stephen Just. Simplify version labelling. Simplify build system by not generating headers. Adjust types and add casts to avoid compiler warnings. Remove unused and undocumented REG_DUMP flag. Make regerror more robust. New in alpha3.8.g7 (Gary Houston): Configuration scripts updated. Make sure symlinks aren't created by libtool. 26 Nov 2015. New in alpha3.8.g6 (Gary Houston): Bug fix for integer overflow in regcomp for excessively long pattern strings. CERT Vulnerability Note VU#695940. Found by Guido Vranken. Configuration scripts updated. 25 Feb 2015. New in alpha3.8.g5 (Gary Houston): Configuration scripts updated. Fixed "make check". Deleted unused "fake" C library headers. New in alpha3.8.g4 (Gary Houston): Makefile.am: account for $(DESTDIR) in install-data-local, thanks to Aleksey Cheusov. Configuration scripts updated. New in alpha3.8.g3 (Gary Houston): configuration scripts updated. New in alpha3.8.g2 (Gary Houston): configure.in, Makefile.am: updated for newer versions of autoconf/automake/libtool, with miscellaneous changes. mkh: don't set PATH, in case utilities are in non-standard locations (i.e., cygwin). New in alpha3.8.g1 (Gary Houston): Use autoconf/automake/libtool to build, test and install the library. Renamed the installed files to avoid conflicts with other regex libraries. New in alpha3.8: Bug fix for signed/unsigned mixup, found and fixed by the FreeBSD folks. New in alpha3.7: A bit of cleanup aimed at maximizing portability, possibly at slight cost in efficiency. "ul" suffixes and "unsigned long" no longer appear, in particular. New in alpha3.6: A couple more portability glitches fixed. New in alpha3.5: Active development of this code has been stopped -- I'm working on a complete reimplementation -- but folks have found some minor portability glitches and the like, hence this release to fix them. One penalty: slightly reduced compatibility with old compilers, because the ANSI C `unsigned long' type and `ul' constant suffix are used in a few places (I could avoid this but it would be considerably more work). New in alpha3.4: The complex bug alluded to below has been fixed (in a slightly kludgey temporary way that may hurt efficiency a bit; this is another "get it out the door for 4.4" release). The tests at the end of the tests file have accordingly been uncommented. The primary sign of the bug was that something like a?b matching ab matched b rather than ab. (The bug was essentially specific to this exact situation, else it would have shown up earlier.) New in alpha3.3: The definition of word boundaries has been altered slightly, to more closely match the usual programming notion that "_" is an alphabetic. Stuff used for pre-ANSI systems is now in a subdir, and the makefile no longer alludes to it in mysterious ways. The makefile has generally been cleaned up some. Fixes have been made (again!) so that the regression test will run without -DREDEBUG, at the cost of weaker checking. A workaround for a bug in some folks' has been added. And some more things have been added to tests, including a couple right at the end which are commented out because the code currently flunks them (complex bug; fix coming). Plus the usual minor cleanup. New in alpha3.2: Assorted bits of cleanup and portability improvement (the development base is now a BSDI system using GCC instead of an ancient Sun system, and the newer compiler exposed some glitches). Fix for a serious bug that affected REs using many [] (including REG_ICASE REs because of the way they are implemented), *sometimes*, depending on memory-allocation patterns. The header-file prototypes no longer name the parameters, avoiding possible name conflicts. The possibility that some clot has defined CHAR_MIN as (say) `-128' instead of `(-128)' is now handled gracefully. "uchar" is no longer used as an internal type name (too many people have the same idea). Still the same old lousy performance, alas. New in alpha3.1: Basically nothing, this release is just a bookkeeping convenience. Stay tuned. New in alpha3.0: Performance is no better, alas, but some fixes have been made and some functionality has been added. (This is basically the "get it out the door in time for 4.4" release.) One bug fix: regfree() didn't free the main internal structure (how embarrassing). It is now possible to put NULs in either the RE or the target string, using (resp.) a new REG_PEND flag and the old REG_STARTEND flag. The REG_NOSPEC flag to regcomp() makes all characters ordinary, so you can match a literal string easily (this will become more useful when performance improves!). There are now primitives to match beginnings and ends of words, although the syntax is disgusting and so is the implementation. The REG_ATOI debugging interface has changed a bit. And there has been considerable internal cleanup of various kinds. New in alpha2.3: Split change list out of README, and moved flags notes into Makefile. Macro-ized the name of regex(7) in regex(3), since it has to change for 4.4BSD. Cleanup work in engine.c, and some new regression tests to catch tricky cases thereof. New in alpha2.2: Out-of-date manpages updated. Regerror() acquires two small extensions -- REG_ITOA and REG_ATOI -- which avoid debugging kludges in my own test program and might be useful to others for similar purposes. The regression test will now compile (and run) without REDEBUG. The BRE \$ bug is fixed. Most uses of "uchar" are gone; it's all chars now. Char/uchar parameters are now written int/unsigned, to avoid possible portability problems with unpromoted parameters. Some unsigned casts have been introduced to minimize portability problems with shifting into sign bits. New in alpha2.1: Lots of little stuff, cleanup and fixes. The one big thing is that regex.h is now generated, using mkh, rather than being supplied in the distribution; due to circularities in dependencies, you have to build regex.h explicitly by "make h". The two known bugs have been fixed (and the regression test now checks for them), as has a problem with assertions not being suppressed in the absence of REDEBUG. No performance work yet. New in alpha2: Backslash-anything is an ordinary character, not an error (except, of course, for the handful of backslashed metacharacters in BREs), which should reduce script breakage. The regression test checks *where* null strings are supposed to match, and has generally been tightened up somewhat. Small bug fixes in parameter passing (not harmful, but technically errors) and some other areas. Debugging invoked by defining REDEBUG rather than not defining NDEBUG. New in alpha+3: full prototyping for internal routines, using a little helper program, mkh, which extracts prototypes given in stylized comments. More minor cleanup. Buglet fix: it's CHAR_BIT, not CHAR_BITS. Simple pre-screening of input when a literal string is known to be part of the RE; this does wonders for performance. New in alpha+2: minor bits of cleanup. Notably, the number "32" for the word width isn't hardwired into regexec.c any more, the public header file prototypes the functions if __STDC__ is defined, and some small typos in the manpages have been fixed. New in alpha+1: improvements to the manual pages, and an important extension, the REG_STARTEND option to regexec(). cups-2.4.7/vcnet/regex/README0000644000175000017500000000431114502571342015471 0ustar zdohnalzdohnalThis is a modified version of Henry Spencer's "BSD" regular expression library. The original library can be found at https://github.com/garyhouston/regex. A description of Spencer's various libraries can be found at https://garyhouston.github.io/regex/ The changes in this version are: * The library name has been changed to rxspencer, the header installs into a directory rxspencer, and the man pages named accordingly, to allow easy installation as a system library on Linux without conflicting with other regex libraries. * A CMake build system, which can build either static or shared libraries, maybe even on non-Unix systems. * A few code modernizations and changes to improve portabilty, avoid compiler warnings, and improve robustness. I (Gary Houston) originally made this version with a build system based on GNU Automake and Libtool, to allow building a shared library for a project where the library needed to be dynamically loaded. The CMake scripts were contributed by Stephen Just, modified from LuaDist versions. Spencer's original license can be found in the COPYRIGHT file. The CMake scripts are licensed under the MIT license. I release all of my own changes to the public domain under the Creative Commons Zero license. Installation ============ CMake needs to be installed. To build from a Linux command line, or something compatible, within the source directory: to configure for a static library: cmake . or cmake -Drxshared=0 . to configure for a shared library: cmake -Drxshared=1 . to disable tests: cmake -DBUILD_TESTING=OFF . to disable manuals/ documentation: cmake -DINSTALL_DOCS=OFF . to build: make make install also required on Linux, after installing the shared library: ldconfig to run the tests: make test to run the tests, with output displayed: ctest -V Usage ===== Include the following header in a C program: #include Link with the library using the -lrxspencer flag, as in: gcc test.c -o test -lrxspencer The library is further described in the supplied man pages: rxspencer.3 and rxspencer.7, which are formatted at https://garyhouston.github.io/regex/regex3.html and https://garyhouston.github.io/regex/regex7.html. -- Gary Houston, ghouston@arglist.com cups-2.4.7/vcnet/regex/Makefile0000644000175000017500000000563114502571342016257 0ustar zdohnalzdohnal# You probably want to take -DREDEBUG out of CFLAGS, and put something like # -O in, *after* testing (-DREDEBUG strengthens testing by enabling a lot of # internal assertion checking and some debugging facilities). # Put -Dconst= in for a pre-ANSI compiler. # Do not take -DPOSIX_MISTAKE out. # REGCFLAGS isn't important to you (it's for my use in some special contexts). CFLAGS=-I. -DPOSIX_MISTAKE -DREDEBUG $(REGCFLAGS) # If you have a pre-ANSI compiler, put -o into MKHFLAGS. If you want # the Berkeley __P macro, put -b in. MKHFLAGS= # Flags for linking but not compiling, if any. LDFLAGS= # Extra libraries for linking, if any. LIBS= # Internal stuff, should not need changing. OBJPRODN=regcomp.o regexec.o regerror.o regfree.o OBJS=$(OBJPRODN) split.o debug.o main.o H=regex2.h utils.h REGSRC=regcomp.c regerror.c regexec.c regfree.c ALLSRC=$(REGSRC) engine.c debug.c main.c split.c # Stuff that matters only if you're trying to lint the package. LINTFLAGS=-I. -Dstatic= -Dconst= -DREDEBUG LINTC=regcomp.c regexec.c regerror.c regfree.c debug.c main.c JUNKLINT=possible pointer alignment|null effect default: r lib: purge $(OBJPRODN) rm -f libregex.a ar crv libregex.a $(OBJPRODN) purge: rm -f *.o # stuff to build regex.h REGEXH=regex.h REGEXHSRC=regex2.h $(REGSRC) $(REGEXH): $(REGEXHSRC) mkh sh ./mkh $(MKHFLAGS) -i _REGEX_H_ $(REGEXHSRC) >regex.tmp cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h rm -f regex.tmp # dependencies $(OBJPRODN) debug.o: utils.h regex.h regex2.h regcomp.o: regcomp.h regexec.o: engine.c engine.h regerror.o: regerror.h debug.o: debug.h main.o: main.h # tester re: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ # regression test r: re tests ./re &1 | egrep -v '$(JUNKLINT)' | tee lint fullprint: ti README WHATSNEW notes todo | list ti *.h | list list *.c list rxspenser.3 rxspenser.7 print: ti README WHATSNEW notes todo | list ti *.h | list list reg*.c engine.c mf.tmp: Makefile sed '/^REGEXH=/s/=.*/=regex.h/' Makefile | sed '/#DEL$$/d' >$@ DTRH=regex2.h utils.h PRE=COPYRIGHT README WHATSNEW POST=mkh rxspenser.3 rxspenser.7 tests $(DTRH) $(ALLSRC) fake/*.[ch] FILES=$(PRE) Makefile $(POST) DTR=$(PRE) Makefile=mf.tmp $(POST) dtr: $(FILES) mf.tmp makedtr $(DTR) >$@ rm mf.tmp cio: $(FILES) cio $(FILES) rdf: $(FILES) rcsdiff -c $(FILES) 2>&1 | p # various forms of cleanup tidy: rm -f junk* core core.* *.core dtr *.tmp lint clean: tidy rm -f *.o *.s re libregex.a # don't do this one unless you know what you're doing spotless: clean rm -f mkh regex.h cups-2.4.7/vcnet/regex/COPYRIGHT0000644000175000017500000000167414502571342016115 0ustar zdohnalzdohnalCopyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. Permission is granted to anyone to use this software for any purpose on any computer system, and to alter it and redistribute it, subject to the following restrictions: 1. The author is not responsible for the consequences of use of this software, no matter how awful, even if they arise from flaws in it. 2. The origin of this software must not be misrepresented, either by explicit claim or by omission. Since few users ever read sources, credits must appear in the documentation. 3. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software. Since few users ever read sources, credits must appear in the documentation. 4. This notice may not be removed or altered. cups-2.4.7/vcnet/regex.vcxproj.user0000644000175000017500000000024214502571342017202 0ustar zdohnalzdohnal cups-2.4.7/vcnet/regex.vcxproj.filters0000644000175000017500000000315214502571342017677 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav Source Files Source Files Source Files Source Files Source Files Source Files Header Files Header Files cups-2.4.7/vcnet/regex.vcxproj0000644000175000017500000001347714502571342016243 0ustar zdohnalzdohnal Debug x64 Release x64 {18950A1B-D37A-40C7-B2DF-C12986C0526E} regex Win32Proj 10.0 DynamicLibrary v143 v141 v142 Unicode true DynamicLibrary v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled regex;%(AdditionalIncludeDirectories) _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Level3 ProgramDatabase regex/librxspencer.def true Windows MachineX64 X64 MaxSpeed true regex;%(AdditionalIncludeDirectories) _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_WINDOWS;_USRDLL;REGEX_EXPORTS;%(PreprocessorDefinitions) MultiThreadedDLL true Level3 ProgramDatabase regex/librxspencer.def true Windows true true MachineX64 cups-2.4.7/vcnet/packages.config0000644000175000017500000000057414502571342016453 0ustar zdohnalzdohnal cups-2.4.7/vcnet/libcups2_native.redist.nuspec0000644000175000017500000000344614502571342021310 0ustar zdohnalzdohnal libcups2_native.redist OpenPrinting CUPS Library for VS2019+ Redist 2.4.7.0 Michael R Sweet, OpenPrinting michaelrsweet https://github.com/OpenPrinting/cups Apache-2.0 build/native/cups-128.png build/native/README.md false OpenPrinting CUPS is a standards-based, open source printing system for Linux® and other Unix®-like operating systems. This package provides the redistributable content for the CUPS library. CUPS is licensed under the Apache License Version 2.0 with an exception to allow linking against GNU GPL2-only software. Copyright © 2020-2023 by OpenPrinting, Copyright © 2007-2019 by Apple Inc., Copyright © 1997-2007 by Easy Software Products. http ipp native cups-2.4.7/vcnet/libcups2_native.props0000644000175000017500000000113214502571342017653 0ustar zdohnalzdohnal $(MSBuildThisFileDirectory)\include $(LinkLibrary);%(AdditionalDependencies) cups-2.4.7/vcnet/libcups2_native.nuspec0000644000175000017500000000503314502571342020011 0ustar zdohnalzdohnal libcups2_native OpenPrinting CUPS Library for VS2019+ 2.4.7.0 Michael R Sweet, OpenPrinting michaelrsweet https://github.com/OpenPrinting/cups Apache-2.0 build/native/cups-128.png build/native/README.md false OpenPrinting CUPS is a standards-based, open source printing system for Linux® and other Unix®-like operating systems. The CUPS library provides a convenient API for communicating with Internet Printing Protocol printers. CUPS is licensed under the Apache License Version 2.0 with an exception to allow linking against GNU GPL2-only software. Copyright © 2020-2023 by OpenPrinting, Copyright © 2007-2019 by Apple Inc., Copyright © 1997-2007 by Easy Software Products. http ipp native cups-2.4.7/vcnet/libcups2.vcxproj.user0000644000175000017500000000024214502571342017613 0ustar zdohnalzdohnal cups-2.4.7/vcnet/libcups2.vcxproj.filters0000644000175000017500000002154414502571342020315 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files cups-2.4.7/vcnet/libcups2.vcxproj0000644000175000017500000002772314502571342016653 0ustar zdohnalzdohnal Debug x64 Release x64 {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3} libcups2 Win32Proj 10.0 DynamicLibrary v143 v141 v142 MultiByte DynamicLibrary v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) DEBUG;_DEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL true Level3 ProgramDatabase packages\libressl_native.3.7.3\build\native\lib\x64\Release\ssl.lib;packages\libressl_native.3.7.3\build\native\lib\x64\Release\crypto.lib;bcrypt.lib;ws2_32.lib;advapi32.lib;%(AdditionalDependencies) $(OutDir)libcups2.dll ..\cups\libcups2.def true $(Platform)\$(Configuration)\libcups2.pdb Windows $(OutDir)libcups2.lib MachineX64 X64 MinSpace ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) DEBUG;NDEBUG;_WINDOWS;_USRDLL;LIBCUPS2_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase packages\libressl_native.3.7.3\build\native\lib\x64\Release\ssl.lib;packages\libressl_native.3.7.3\build\native\lib\x64\Release\crypto.lib;bcrypt.lib;ws2_32.lib;advapi32.lib;%(AdditionalDependencies) $(OutDir)libcups2.dll ..\cups\libcups2.def true $(Platform)\$(Configuration)\libcups2.pdb Windows true true $(OutDir)libcups2.lib MachineX64 {c0899b3a-43e7-4bc3-a785-659e1fd2ea83} {18950a1b-d37a-40c7-b2df-c12986c0526e} false This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. cups-2.4.7/vcnet/ipptool.vcxproj.user0000644000175000017500000000024214502571342017556 0ustar zdohnalzdohnal cups-2.4.7/vcnet/ipptool.vcxproj.filters0000644000175000017500000000164114502571342020254 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav Source Files cups-2.4.7/vcnet/ipptool.vcxproj0000644000175000017500000001356414502571342016614 0ustar zdohnalzdohnal Debug x64 Release x64 {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4} ipptool Win32Proj 10.0 Application v143 v141 v142 Unicode true Application v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Level1 ProgramDatabase true Console false MachineX64 X64 ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase true Console true true false MachineX64 {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false {18950a1b-d37a-40c7-b2df-c12986c0526e} false cups-2.4.7/vcnet/ippfind.vcxproj.user0000644000175000017500000000024214502571342017521 0ustar zdohnalzdohnal cups-2.4.7/vcnet/ippfind.vcxproj.filters0000644000175000017500000000164114502571342020217 0ustar zdohnalzdohnal {8C1A7322-AFBD-4611-A001-CF18E3B0F00C} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {5807291C-0541-4D9C-9290-628F88CF9119} h;hpp;hxx;hm;inl;inc;xsd {7767CEF5-1BED-4C4C-82A7-37DF77126FE3} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav Source Files cups-2.4.7/vcnet/ippfind.vcxproj0000644000175000017500000001426714502571342016560 0ustar zdohnalzdohnal Debug x64 Release x64 {B484DA0C-62C8-4C32-83B6-CCEB58968B85} ippfind Win32Proj 10.0 Application v143 v141 v142 Unicode true Application v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Level1 ProgramDatabase ws2_32.lib;%(AdditionalDependencies) true Console false MachineX64 X64 ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase ws2_32.lib;%(AdditionalDependencies) true Console true true false MachineX64 {c0899b3a-43e7-4bc3-a785-659e1fd2ea83} {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false {18950a1b-d37a-40c7-b2df-c12986c0526e} false cups-2.4.7/vcnet/ippeveprinter.vcxproj.user0000644000175000017500000000110314502571342020761 0ustar zdohnalzdohnal -vv -r _print,_universal -f application/pdf,image/jpeg,image/pwg-raster,image/urf "ippeveprinter test" WindowsLocalDebugger CUPS_DEBUG_LOG=-;CUPS_DEBUG_LEVEL=9;CUPS_DEBUG_FILTER=sspi cups-2.4.7/vcnet/ippeveprinter.vcxproj.filters0000644000175000017500000000175314502571342021466 0ustar zdohnalzdohnal {5129820B-88C2-40AE-BE81-C7957F76540D} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {CAF4FFBF-7D66-4368-A03A-3FD0971B59A0} h;hpp;hxx;hm;inl;inc;xsd {17D3B9CD-53D2-47AF-9D2A-4516D777D695} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav Source Files cups-2.4.7/vcnet/ippeveprinter.vcxproj0000644000175000017500000001401014502571342020005 0ustar zdohnalzdohnal Debug x64 Release x64 {82A03BC7-0746-4B85-8908-3C7A3FAA58A9} ippeveprinter Win32Proj 10.0 Application v143 v141 v142 Unicode true Application v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) false EnableFastChecks MultiThreadedDebugDLL Level1 ProgramDatabase ws2_32.lib;%(AdditionalDependencies) true Console false MachineX64 X64 ..\vcnet;..;..\vcnet\regex;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase ws2_32.lib;%(AdditionalDependencies) true Console true true false MachineX64 {c0899b3a-43e7-4bc3-a785-659e1fd2ea83} {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false cups-2.4.7/vcnet/dnssdstub.vcxproj.user0000644000175000017500000000024214502571342020101 0ustar zdohnalzdohnal cups-2.4.7/vcnet/dnssdstub.vcxproj.filters0000644000175000017500000000204014502571342020571 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hh;hpp;hxx;hm;inl;inc;ipp;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms Source Files Header Files cups-2.4.7/vcnet/dnssdstub.vcxproj0000644000175000017500000001204414502571342017127 0ustar zdohnalzdohnal Debug x64 Release x64 15.0 {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} Win32Proj dnssdstub 10.0 StaticLibrary true v143 v141 v142 Unicode StaticLibrary false v143 v141 v142 true Unicode true $(Platform)/$(Configuration)/ $(Platform)/$(Configuration)/$(ProjectName)/ false $(Platform)/$(Configuration)/ $(Platform)/$(Configuration)/$(ProjectName)/ NotUsing Level3 Disabled true _DEBUG;_LIB;%(PreprocessorDefinitions) true ..\vcnet;..;%(AdditionalIncludeDirectories) Windows true NotUsing Level3 MaxSpeed true true true NDEBUG;_LIB;%(PreprocessorDefinitions) true ..\vcnet;..;%(AdditionalIncludeDirectories) Windows true true true cups-2.4.7/vcnet/dns_sd.h0000644000175000017500000035360514502571342015137 0ustar zdohnalzdohnal/* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 2003-2004, Apple Computer, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*! @header DNS Service Discovery * * @discussion This section describes the functions, callbacks, and data structures * that make up the DNS Service Discovery API. * * The DNS Service Discovery API is part of Bonjour, Apple's implementation * of zero-configuration networking (ZEROCONF). * * Bonjour allows you to register a network service, such as a * printer or file server, so that it can be found by name or browsed * for by service type and domain. Using Bonjour, applications can * discover what services are available on the network, along with * all the information -- such as name, IP address, and port -- * necessary to access a particular service. * * In effect, Bonjour combines the functions of a local DNS server and * AppleTalk. Bonjour allows applications to provide user-friendly printer * and server browsing, among other things, over standard IP networks. * This behavior is a result of combining protocols such as multicast and * DNS to add new functionality to the network (such as multicast DNS). * * Bonjour gives applications easy access to services over local IP * networks without requiring the service or the application to support * an AppleTalk or a Netbeui stack, and without requiring a DNS server * for the local network. */ /* _DNS_SD_H contains the mDNSResponder version number for this header file, formatted as follows: * Major part of the build number * 10000 + * minor part of the build number * 100 * For example, Mac OS X 10.4.9 has mDNSResponder-108.4, which would be represented as * version 1080400. This allows C code to do simple greater-than and less-than comparisons: * e.g. an application that requires the DNSServiceGetProperty() call (new in mDNSResponder-126) can check: * * #if _DNS_SD_H+0 >= 1260000 * ... some C code that calls DNSServiceGetProperty() ... * #endif * * The version defined in this header file symbol allows for compile-time * checking, so that C code building with earlier versions of the header file * can avoid compile errors trying to use functions that aren't even defined * in those earlier versions. Similar checks may also be performed at run-time: * => weak linking -- to avoid link failures if run with an earlier * version of the library that's missing some desired symbol, or * => DNSServiceGetProperty(DaemonVersion) -- to verify whether the running daemon * ("system service" on Windows) meets some required minimum functionality level. */ #ifndef _DNS_SD_H #define _DNS_SD_H 3331000 #ifdef __cplusplus extern "C" { #endif /* Set to 1 if libdispatch is supported * Note: May also be set by project and/or Makefile */ #ifndef _DNS_SD_LIBDISPATCH #define _DNS_SD_LIBDISPATCH 0 #endif /* ndef _DNS_SD_LIBDISPATCH */ /* standard calling convention under Win32 is __stdcall */ /* Note: When compiling Intel EFI (Extensible Firmware Interface) under MS Visual Studio, the */ /* _WIN32 symbol is defined by the compiler even though it's NOT compiling code for Windows32 */ #if defined(_WIN32) && !defined(EFI32) && !defined(EFI64) #define DNSSD_API __stdcall #else #define DNSSD_API #endif /* stdint.h does not exist on FreeBSD 4.x; its types are defined in sys/types.h instead */ #if defined(__FreeBSD__) && (__FreeBSD__ < 5) #include /* Likewise, on Sun, standard integer types are in sys/types.h */ #elif defined(__sun__) #include /* EFI does not have stdint.h, or anything else equivalent */ #elif defined(EFI32) || defined(EFI64) || defined(EFIX64) #include "Tiano.h" #if !defined(_STDINT_H_) typedef UINT8 uint8_t; typedef INT8 int8_t; typedef UINT16 uint16_t; typedef INT16 int16_t; typedef UINT32 uint32_t; typedef INT32 int32_t; #endif /* Windows has its own differences */ #elif defined(_WIN32) #include #define _UNUSED #ifndef _MSL_STDINT_H typedef UINT8 uint8_t; typedef INT8 int8_t; typedef UINT16 uint16_t; typedef INT16 int16_t; typedef UINT32 uint32_t; typedef INT32 int32_t; #endif /* All other Posix platforms use stdint.h */ #else #include #endif #if _DNS_SD_LIBDISPATCH #include #endif /* DNSServiceRef, DNSRecordRef * * Opaque internal data types. * Note: client is responsible for serializing access to these structures if * they are shared between concurrent threads. */ typedef struct _DNSServiceRef_t *DNSServiceRef; typedef struct _DNSRecordRef_t *DNSRecordRef; struct sockaddr; /*! @enum General flags * Most DNS-SD API functions and callbacks include a DNSServiceFlags parameter. * As a general rule, any given bit in the 32-bit flags field has a specific fixed meaning, * regardless of the function or callback being used. For any given function or callback, * typically only a subset of the possible flags are meaningful, and all others should be zero. * The discussion section for each API call describes which flags are valid for that call * and callback. In some cases, for a particular call, it may be that no flags are currently * defined, in which case the DNSServiceFlags parameter exists purely to allow future expansion. * In all cases, developers should expect that in future releases, it is possible that new flag * values will be defined, and write code with this in mind. For example, code that tests * if (flags == kDNSServiceFlagsAdd) ... * will fail if, in a future release, another bit in the 32-bit flags field is also set. * The reliable way to test whether a particular bit is set is not with an equality test, * but with a bitwise mask: * if (flags & kDNSServiceFlagsAdd) ... */ enum { kDNSServiceFlagsMoreComing = 0x1, /* MoreComing indicates to a callback that at least one more result is * queued and will be delivered following immediately after this one. * When the MoreComing flag is set, applications should not immediately * update their UI, because this can result in a great deal of ugly flickering * on the screen, and can waste a great deal of CPU time repeatedly updating * the screen with content that is then immediately erased, over and over. * Applications should wait until until MoreComing is not set, and then * update their UI when no more changes are imminent. * When MoreComing is not set, that doesn't mean there will be no more * answers EVER, just that there are no more answers immediately * available right now at this instant. If more answers become available * in the future they will be delivered as usual. */ kDNSServiceFlagsAdd = 0x2, kDNSServiceFlagsDefault = 0x4, /* Flags for domain enumeration and browse/query reply callbacks. * "Default" applies only to enumeration and is only valid in * conjunction with "Add". An enumeration callback with the "Add" * flag NOT set indicates a "Remove", i.e. the domain is no longer * valid. */ kDNSServiceFlagsNoAutoRename = 0x8, /* Flag for specifying renaming behavior on name conflict when registering * non-shared records. By default, name conflicts are automatically handled * by renaming the service. NoAutoRename overrides this behavior - with this * flag set, name conflicts will result in a callback. The NoAutorename flag * is only valid if a name is explicitly specified when registering a service * (i.e. the default name is not used.) */ kDNSServiceFlagsShared = 0x10, kDNSServiceFlagsUnique = 0x20, /* Flag for registering individual records on a connected * DNSServiceRef. Shared indicates that there may be multiple records * with this name on the network (e.g. PTR records). Unique indicates that the * record's name is to be unique on the network (e.g. SRV records). */ kDNSServiceFlagsBrowseDomains = 0x40, kDNSServiceFlagsRegistrationDomains = 0x80, /* Flags for specifying domain enumeration type in DNSServiceEnumerateDomains. * BrowseDomains enumerates domains recommended for browsing, RegistrationDomains * enumerates domains recommended for registration. */ kDNSServiceFlagsLongLivedQuery = 0x100, /* Flag for creating a long-lived unicast query for the DNSServiceQueryRecord call. */ kDNSServiceFlagsAllowRemoteQuery = 0x200, /* Flag for creating a record for which we will answer remote queries * (queries from hosts more than one hop away; hosts not directly connected to the local link). */ kDNSServiceFlagsForceMulticast = 0x400, /* Flag for signifying that a query or registration should be performed exclusively via multicast * DNS, even for a name in a domain (e.g. foo.apple.com.) that would normally imply unicast DNS. */ kDNSServiceFlagsForce = 0x800, /* Flag for signifying a "stronger" variant of an operation. * Currently defined only for DNSServiceReconfirmRecord(), where it forces a record to * be removed from the cache immediately, instead of querying for a few seconds before * concluding that the record is no longer valid and then removing it. This flag should * be used with caution because if a service browsing PTR record is indeed still valid * on the network, forcing its removal will result in a user-interface flap -- the * discovered service instance will disappear, and then re-appear moments later. */ kDNSServiceFlagsReturnIntermediates = 0x1000, /* Flag for returning intermediate results. * For example, if a query results in an authoritative NXDomain (name does not exist) * then that result is returned to the client. However the query is not implicitly * cancelled -- it remains active and if the answer subsequently changes * (e.g. because a VPN tunnel is subsequently established) then that positive * result will still be returned to the client. * Similarly, if a query results in a CNAME record, then in addition to following * the CNAME referral, the intermediate CNAME result is also returned to the client. * When this flag is not set, NXDomain errors are not returned, and CNAME records * are followed silently without informing the client of the intermediate steps. * (In earlier builds this flag was briefly calledkDNSServiceFlagsReturnCNAME) */ kDNSServiceFlagsNonBrowsable = 0x2000, /* A service registered with the NonBrowsable flag set can be resolved using * DNSServiceResolve(), but will not be discoverable using DNSServiceBrowse(). * This is for cases where the name is actually a GUID; it is found by other means; * there is no end-user benefit to browsing to find a long list of opaque GUIDs. * Using the NonBrowsable flag creates SRV+TXT without the cost of also advertising * an associated PTR record. */ kDNSServiceFlagsShareConnection = 0x4000, /* For efficiency, clients that perform many concurrent operations may want to use a * single Unix Domain Socket connection with the background daemon, instead of having a * separate connection for each independent operation. To use this mode, clients first * call DNSServiceCreateConnection(&MainRef) to initialize the main DNSServiceRef. * For each subsequent operation that is to share that same connection, the client copies * the MainRef, and then passes the address of that copy, setting the ShareConnection flag * to tell the library that this DNSServiceRef is not a typical uninitialized DNSServiceRef; * it's a copy of an existing DNSServiceRef whose connection information should be reused. * * For example: * * DNSServiceErrorType error; * DNSServiceRef MainRef; * error = DNSServiceCreateConnection(&MainRef); * if (error) ... * DNSServiceRef BrowseRef = MainRef; // Important: COPY the primary DNSServiceRef first... * error = DNSServiceBrowse(&BrowseRef, kDNSServiceFlagsShareConnection, ...); // then use the copy * if (error) ... * ... * DNSServiceRefDeallocate(BrowseRef); // Terminate the browse operation * DNSServiceRefDeallocate(MainRef); // Terminate the shared connection * * Notes: * * 1. Collective kDNSServiceFlagsMoreComing flag * When callbacks are invoked using a shared DNSServiceRef, the * kDNSServiceFlagsMoreComing flag applies collectively to *all* active * operations sharing the same parent DNSServiceRef. If the MoreComing flag is * set it means that there are more results queued on this parent DNSServiceRef, * but not necessarily more results for this particular callback function. * The implication of this for client programmers is that when a callback * is invoked with the MoreComing flag set, the code should update its * internal data structures with the new result, and set a variable indicating * that its UI needs to be updated. Then, later when a callback is eventually * invoked with the MoreComing flag not set, the code should update *all* * stale UI elements related to that shared parent DNSServiceRef that need * updating, not just the UI elements related to the particular callback * that happened to be the last one to be invoked. * * 2. Canceling operations and kDNSServiceFlagsMoreComing * Whenever you cancel any operation for which you had deferred UI updates * waiting because of a kDNSServiceFlagsMoreComing flag, you should perform * those deferred UI updates. This is because, after cancelling the operation, * you can no longer wait for a callback *without* MoreComing set, to tell * you do perform your deferred UI updates (the operation has been canceled, * so there will be no more callbacks). An implication of the collective * kDNSServiceFlagsMoreComing flag for shared connections is that this * guideline applies more broadly -- any time you cancel an operation on * a shared connection, you should perform all deferred UI updates for all * operations sharing that connection. This is because the MoreComing flag * might have been referring to events coming for the operation you canceled, * which will now not be coming because the operation has been canceled. * * 3. Only share DNSServiceRef's created with DNSServiceCreateConnection * Calling DNSServiceCreateConnection(&ref) creates a special shareable DNSServiceRef. * DNSServiceRef's created by other calls like DNSServiceBrowse() or DNSServiceResolve() * cannot be shared by copying them and using kDNSServiceFlagsShareConnection. * * 4. Don't Double-Deallocate * Calling DNSServiceRefDeallocate(ref) for a particular operation's DNSServiceRef terminates * just that operation. Calling DNSServiceRefDeallocate(ref) for the main shared DNSServiceRef * (the parent DNSServiceRef, originally created by DNSServiceCreateConnection(&ref)) * automatically terminates the shared connection and all operations that were still using it. * After doing this, DO NOT then attempt to deallocate any remaining subordinate DNSServiceRef's. * The memory used by those subordinate DNSServiceRef's has already been freed, so any attempt * to do a DNSServiceRefDeallocate (or any other operation) on them will result in accesses * to freed memory, leading to crashes or other equally undesirable results. * * 5. Thread Safety * The dns_sd.h API does not presuppose any particular threading model, and consequently * does no locking of its own (which would require linking some specific threading library). * If client code calls API routines on the same DNSServiceRef concurrently * from multiple threads, it is the client's responsibility to use a mutext * lock or take similar appropriate precautions to serialize those calls. */ kDNSServiceFlagsSuppressUnusable = 0x8000, /* * This flag is meaningful only in DNSServiceQueryRecord which suppresses unusable queries on the * wire. If "hostname" is a wide-area unicast DNS hostname (i.e. not a ".local." name) * but this host has no routable IPv6 address, then the call will not try to look up IPv6 addresses * for "hostname", since any addresses it found would be unlikely to be of any use anyway. Similarly, * if this host has no routable IPv4 address, the call will not try to look up IPv4 addresses for * "hostname". */ kDNSServiceFlagsTimeout = 0x10000, /* * When kDNServiceFlagsTimeout is passed to DNSServiceQueryRecord or DNSServiceGetAddrInfo, the query is * stopped after a certain number of seconds have elapsed. The time at which the query will be stopped * is determined by the system and cannot be configured by the user. The query will be stopped irrespective * of whether a response was given earlier or not. When the query is stopped, the callback will be called * with an error code of kDNSServiceErr_Timeout and a NULL sockaddr will be returned for DNSServiceGetAddrInfo * and zero length rdata will be returned for DNSServiceQueryRecord. */ kDNSServiceFlagsIncludeP2P = 0x20000, /* * Include P2P interfaces when kDNSServiceInterfaceIndexAny is specified. * By default, specifying kDNSServiceInterfaceIndexAny does not include P2P interfaces. */ kDNSServiceFlagsWakeOnResolve = 0x40000 /* * This flag is meaningful only in DNSServiceResolve. When set, it tries to send a magic packet * to wake up the client. */ }; /* Possible protocols for DNSServiceNATPortMappingCreate(). */ enum { kDNSServiceProtocol_IPv4 = 0x01, kDNSServiceProtocol_IPv6 = 0x02, /* 0x04 and 0x08 reserved for future internetwork protocols */ kDNSServiceProtocol_UDP = 0x10, kDNSServiceProtocol_TCP = 0x20 /* 0x40 and 0x80 reserved for future transport protocols, e.g. SCTP [RFC 2960] * or DCCP [RFC 4340]. If future NAT gateways are created that support port * mappings for these protocols, new constants will be defined here. */ }; /* * The values for DNS Classes and Types are listed in RFC 1035, and are available * on every OS in its DNS header file. Unfortunately every OS does not have the * same header file containing DNS Class and Type constants, and the names of * the constants are not consistent. For example, BIND 8 uses "T_A", * BIND 9 uses "ns_t_a", Windows uses "DNS_TYPE_A", etc. * For this reason, these constants are also listed here, so that code using * the DNS-SD programming APIs can use these constants, so that the same code * can compile on all our supported platforms. */ enum { kDNSServiceClass_IN = 1 /* Internet */ }; enum { kDNSServiceType_A = 1, /* Host address. */ kDNSServiceType_NS = 2, /* Authoritative server. */ kDNSServiceType_MD = 3, /* Mail destination. */ kDNSServiceType_MF = 4, /* Mail forwarder. */ kDNSServiceType_CNAME = 5, /* Canonical name. */ kDNSServiceType_SOA = 6, /* Start of authority zone. */ kDNSServiceType_MB = 7, /* Mailbox domain name. */ kDNSServiceType_MG = 8, /* Mail group member. */ kDNSServiceType_MR = 9, /* Mail rename name. */ kDNSServiceType_NULL = 10, /* Null resource record. */ kDNSServiceType_WKS = 11, /* Well known service. */ kDNSServiceType_PTR = 12, /* Domain name pointer. */ kDNSServiceType_HINFO = 13, /* Host information. */ kDNSServiceType_MINFO = 14, /* Mailbox information. */ kDNSServiceType_MX = 15, /* Mail routing information. */ kDNSServiceType_TXT = 16, /* One or more text strings (NOT "zero or more..."). */ kDNSServiceType_RP = 17, /* Responsible person. */ kDNSServiceType_AFSDB = 18, /* AFS cell database. */ kDNSServiceType_X25 = 19, /* X_25 calling address. */ kDNSServiceType_ISDN = 20, /* ISDN calling address. */ kDNSServiceType_RT = 21, /* Router. */ kDNSServiceType_NSAP = 22, /* NSAP address. */ kDNSServiceType_NSAP_PTR = 23, /* Reverse NSAP lookup (deprecated). */ kDNSServiceType_SIG = 24, /* Security signature. */ kDNSServiceType_KEY = 25, /* Security key. */ kDNSServiceType_PX = 26, /* X.400 mail mapping. */ kDNSServiceType_GPOS = 27, /* Geographical position (withdrawn). */ kDNSServiceType_AAAA = 28, /* IPv6 Address. */ kDNSServiceType_LOC = 29, /* Location Information. */ kDNSServiceType_NXT = 30, /* Next domain (security). */ kDNSServiceType_EID = 31, /* Endpoint identifier. */ kDNSServiceType_NIMLOC = 32, /* Nimrod Locator. */ kDNSServiceType_SRV = 33, /* Server Selection. */ kDNSServiceType_ATMA = 34, /* ATM Address */ kDNSServiceType_NAPTR = 35, /* Naming Authority PoinTeR */ kDNSServiceType_KX = 36, /* Key Exchange */ kDNSServiceType_CERT = 37, /* Certification record */ kDNSServiceType_A6 = 38, /* IPv6 Address (deprecated) */ kDNSServiceType_DNAME = 39, /* Non-terminal DNAME (for IPv6) */ kDNSServiceType_SINK = 40, /* Kitchen sink (experimental) */ kDNSServiceType_OPT = 41, /* EDNS0 option (meta-RR) */ kDNSServiceType_APL = 42, /* Address Prefix List */ kDNSServiceType_DS = 43, /* Delegation Signer */ kDNSServiceType_SSHFP = 44, /* SSH Key Fingerprint */ kDNSServiceType_IPSECKEY = 45, /* IPSECKEY */ kDNSServiceType_RRSIG = 46, /* RRSIG */ kDNSServiceType_NSEC = 47, /* Denial of Existence */ kDNSServiceType_DNSKEY = 48, /* DNSKEY */ kDNSServiceType_DHCID = 49, /* DHCP Client Identifier */ kDNSServiceType_NSEC3 = 50, /* Hashed Authenticated Denial of Existence */ kDNSServiceType_NSEC3PARAM = 51, /* Hashed Authenticated Denial of Existence */ kDNSServiceType_HIP = 55, /* Host Identity Protocol */ kDNSServiceType_SPF = 99, /* Sender Policy Framework for E-Mail */ kDNSServiceType_UINFO = 100, /* IANA-Reserved */ kDNSServiceType_UID = 101, /* IANA-Reserved */ kDNSServiceType_GID = 102, /* IANA-Reserved */ kDNSServiceType_UNSPEC = 103, /* IANA-Reserved */ kDNSServiceType_TKEY = 249, /* Transaction key */ kDNSServiceType_TSIG = 250, /* Transaction signature. */ kDNSServiceType_IXFR = 251, /* Incremental zone transfer. */ kDNSServiceType_AXFR = 252, /* Transfer zone of authority. */ kDNSServiceType_MAILB = 253, /* Transfer mailbox records. */ kDNSServiceType_MAILA = 254, /* Transfer mail agent records. */ kDNSServiceType_ANY = 255 /* Wildcard match. */ }; /* possible error code values */ enum { kDNSServiceErr_NoError = 0, kDNSServiceErr_Unknown = -65537, /* 0xFFFE FFFF */ kDNSServiceErr_NoSuchName = -65538, kDNSServiceErr_NoMemory = -65539, kDNSServiceErr_BadParam = -65540, kDNSServiceErr_BadReference = -65541, kDNSServiceErr_BadState = -65542, kDNSServiceErr_BadFlags = -65543, kDNSServiceErr_Unsupported = -65544, kDNSServiceErr_NotInitialized = -65545, kDNSServiceErr_AlreadyRegistered = -65547, kDNSServiceErr_NameConflict = -65548, kDNSServiceErr_Invalid = -65549, kDNSServiceErr_Firewall = -65550, kDNSServiceErr_Incompatible = -65551, /* client library incompatible with daemon */ kDNSServiceErr_BadInterfaceIndex = -65552, kDNSServiceErr_Refused = -65553, kDNSServiceErr_NoSuchRecord = -65554, kDNSServiceErr_NoAuth = -65555, kDNSServiceErr_NoSuchKey = -65556, kDNSServiceErr_NATTraversal = -65557, kDNSServiceErr_DoubleNAT = -65558, kDNSServiceErr_BadTime = -65559, /* Codes up to here existed in Tiger */ kDNSServiceErr_BadSig = -65560, kDNSServiceErr_BadKey = -65561, kDNSServiceErr_Transient = -65562, kDNSServiceErr_ServiceNotRunning = -65563, /* Background daemon not running */ kDNSServiceErr_NATPortMappingUnsupported = -65564, /* NAT doesn't support NAT-PMP or UPnP */ kDNSServiceErr_NATPortMappingDisabled = -65565, /* NAT supports NAT-PMP or UPnP but it's disabled by the administrator */ kDNSServiceErr_NoRouter = -65566, /* No router currently configured (probably no network connectivity) */ kDNSServiceErr_PollingMode = -65567, kDNSServiceErr_Timeout = -65568 /* mDNS Error codes are in the range * FFFE FF00 (-65792) to FFFE FFFF (-65537) */ }; /* Maximum length, in bytes, of a service name represented as a */ /* literal C-String, including the terminating NULL at the end. */ #define kDNSServiceMaxServiceName 64 /* Maximum length, in bytes, of a domain name represented as an *escaped* C-String */ /* including the final trailing dot, and the C-String terminating NULL at the end. */ #define kDNSServiceMaxDomainName 1009 /* * Notes on DNS Name Escaping * -- or -- * "Why is kDNSServiceMaxDomainName 1009, when the maximum legal domain name is 256 bytes?" * * All strings used in the DNS-SD APIs are UTF-8 strings. Apart from the exceptions noted below, * the APIs expect the strings to be properly escaped, using the conventional DNS escaping rules: * * '\\' represents a single literal '\' in the name * '\.' represents a single literal '.' in the name * '\ddd', where ddd is a three-digit decimal value from 000 to 255, * represents a single literal byte with that value. * A bare unescaped '.' is a label separator, marking a boundary between domain and subdomain. * * The exceptions, that do not use escaping, are the routines where the full * DNS name of a resource is broken, for convenience, into servicename/regtype/domain. * In these routines, the "servicename" is NOT escaped. It does not need to be, since * it is, by definition, just a single literal string. Any characters in that string * represent exactly what they are. The "regtype" portion is, technically speaking, * escaped, but since legal regtypes are only allowed to contain letters, digits, * and hyphens, there is nothing to escape, so the issue is moot. The "domain" * portion is also escaped, though most domains in use on the public Internet * today, like regtypes, don't contain any characters that need to be escaped. * As DNS-SD becomes more popular, rich-text domains for service discovery will * become common, so software should be written to cope with domains with escaping. * * The servicename may be up to 63 bytes of UTF-8 text (not counting the C-String * terminating NULL at the end). The regtype is of the form _service._tcp or * _service._udp, where the "service" part is 1-15 characters, which may be * letters, digits, or hyphens. The domain part of the three-part name may be * any legal domain, providing that the resulting servicename+regtype+domain * name does not exceed 256 bytes. * * For most software, these issues are transparent. When browsing, the discovered * servicenames should simply be displayed as-is. When resolving, the discovered * servicename/regtype/domain are simply passed unchanged to DNSServiceResolve(). * When a DNSServiceResolve() succeeds, the returned fullname is already in * the correct format to pass to standard system DNS APIs such as res_query(). * For converting from servicename/regtype/domain to a single properly-escaped * full DNS name, the helper function DNSServiceConstructFullName() is provided. * * The following (highly contrived) example illustrates the escaping process. * Suppose you have an service called "Dr. Smith\Dr. Johnson", of type "_ftp._tcp" * in subdomain "4th. Floor" of subdomain "Building 2" of domain "apple.com." * The full (escaped) DNS name of this service's SRV record would be: * Dr\.\032Smith\\Dr\.\032Johnson._ftp._tcp.4th\.\032Floor.Building\0322.apple.com. */ /* * Constants for specifying an interface index * * Specific interface indexes are identified via a 32-bit unsigned integer returned * by the if_nametoindex() family of calls. * * If the client passes 0 for interface index, that means "do the right thing", * which (at present) means, "if the name is in an mDNS local multicast domain * (e.g. 'local.', '254.169.in-addr.arpa.', '{8,9,A,B}.E.F.ip6.arpa.') then multicast * on all applicable interfaces, otherwise send via unicast to the appropriate * DNS server." Normally, most clients will use 0 for interface index to * automatically get the default sensible behaviour. * * If the client passes a positive interface index, then for multicast names that * indicates to do the operation only on that one interface. For unicast names the * interface index is ignored unless kDNSServiceFlagsForceMulticast is also set. * * If the client passes kDNSServiceInterfaceIndexLocalOnly when registering * a service, then that service will be found *only* by other local clients * on the same machine that are browsing using kDNSServiceInterfaceIndexLocalOnly * or kDNSServiceInterfaceIndexAny. * If a client has a 'private' service, accessible only to other processes * running on the same machine, this allows the client to advertise that service * in a way such that it does not inadvertently appear in service lists on * all the other machines on the network. * * If the client passes kDNSServiceInterfaceIndexLocalOnly when browsing * then it will find *all* records registered on that same local machine. * Clients explicitly wishing to discover *only* LocalOnly services can * accomplish this by inspecting the interfaceIndex of each service reported * to their DNSServiceBrowseReply() callback function, and discarding those * where the interface index is not kDNSServiceInterfaceIndexLocalOnly. * * kDNSServiceInterfaceIndexP2P is meaningful only in Browse, QueryRecord, * and Resolve operations. It should not be used in other DNSService APIs. * * - If kDNSServiceInterfaceIndexP2P is passed to DNSServiceBrowse or * DNSServiceQueryRecord, it restricts the operation to P2P. * * - If kDNSServiceInterfaceIndexP2P is passed to DNSServiceResolve, it is * mapped internally to kDNSServiceInterfaceIndexAny, because resolving * a P2P service may create and/or enable an interface whose index is not * known a priori. The resolve callback will indicate the index of the * interface via which the service can be accessed. * * If applications pass kDNSServiceInterfaceIndexAny to DNSServiceBrowse * or DNSServiceQueryRecord, they must set the kDNSServiceFlagsIncludeP2P flag * to include P2P. In this case, if a service instance or the record being queried * is found over P2P, the resulting ADD event will indicate kDNSServiceInterfaceIndexP2P * as the interface index. */ #define kDNSServiceInterfaceIndexAny 0 #define kDNSServiceInterfaceIndexLocalOnly ((uint32_t)-1) #define kDNSServiceInterfaceIndexUnicast ((uint32_t)-2) #define kDNSServiceInterfaceIndexP2P ((uint32_t)-3) typedef uint32_t DNSServiceFlags; typedef uint32_t DNSServiceProtocol; typedef int32_t DNSServiceErrorType; /********************************************************************************************* * * Version checking * *********************************************************************************************/ /* DNSServiceGetProperty() Parameters: * * property: The requested property. * Currently the only property defined is kDNSServiceProperty_DaemonVersion. * * result: Place to store result. * For retrieving DaemonVersion, this should be the address of a uint32_t. * * size: Pointer to uint32_t containing size of the result location. * For retrieving DaemonVersion, this should be sizeof(uint32_t). * On return the uint32_t is updated to the size of the data returned. * For DaemonVersion, the returned size is always sizeof(uint32_t), but * future properties could be defined which return variable-sized results. * * return value: Returns kDNSServiceErr_NoError on success, or kDNSServiceErr_ServiceNotRunning * if the daemon (or "system service" on Windows) is not running. */ DNSServiceErrorType DNSSD_API DNSServiceGetProperty ( const char *property, /* Requested property (i.e. kDNSServiceProperty_DaemonVersion) */ void *result, /* Pointer to place to store result */ uint32_t *size /* size of result location */ ); /* * When requesting kDNSServiceProperty_DaemonVersion, the result pointer must point * to a 32-bit unsigned integer, and the size parameter must be set to sizeof(uint32_t). * * On return, the 32-bit unsigned integer contains the version number, formatted as follows: * Major part of the build number * 10000 + * minor part of the build number * 100 * * For example, Mac OS X 10.4.9 has mDNSResponder-108.4, which would be represented as * version 1080400. This allows applications to do simple greater-than and less-than comparisons: * e.g. an application that requires at least mDNSResponder-108.4 can check: * * if (version >= 1080400) ... * * Example usage: * * uint32_t version; * uint32_t size = sizeof(version); * DNSServiceErrorType err = DNSServiceGetProperty(kDNSServiceProperty_DaemonVersion, &version, &size); * if (!err) printf("Bonjour version is %d.%d\n", version / 10000, version / 100 % 100); */ #define kDNSServiceProperty_DaemonVersion "DaemonVersion" /********************************************************************************************* * * Unix Domain Socket access, DNSServiceRef deallocation, and data processing functions * *********************************************************************************************/ /* DNSServiceRefSockFD() * * Access underlying Unix domain socket for an initialized DNSServiceRef. * The DNS Service Discovery implementation uses this socket to communicate between the client and * the mDNSResponder daemon. The application MUST NOT directly read from or write to this socket. * Access to the socket is provided so that it can be used as a kqueue event source, a CFRunLoop * event source, in a select() loop, etc. When the underlying event management subsystem (kqueue/ * select/CFRunLoop etc.) indicates to the client that data is available for reading on the * socket, the client should call DNSServiceProcessResult(), which will extract the daemon's * reply from the socket, and pass it to the appropriate application callback. By using a run * loop or select(), results from the daemon can be processed asynchronously. Alternatively, * a client can choose to fork a thread and have it loop calling "DNSServiceProcessResult(ref);" * If DNSServiceProcessResult() is called when no data is available for reading on the socket, it * will block until data does become available, and then process the data and return to the caller. * When data arrives on the socket, the client is responsible for calling DNSServiceProcessResult(ref) * in a timely fashion -- if the client allows a large backlog of data to build up the daemon * may terminate the connection. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls. * * return value: The DNSServiceRef's underlying socket descriptor, or -1 on * error. */ int DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdRef); /* DNSServiceProcessResult() * * Read a reply from the daemon, calling the appropriate application callback. This call will * block until the daemon's response is received. Use DNSServiceRefSockFD() in * conjunction with a run loop or select() to determine the presence of a response from the * server before calling this function to process the reply without blocking. Call this function * at any point if it is acceptable to block until the daemon's response arrives. Note that the * client is responsible for ensuring that DNSServiceProcessResult() is called whenever there is * a reply from the daemon - the daemon may terminate its connection with a client that does not * process the daemon's responses. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls * that take a callback parameter. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns * an error code indicating the specific failure that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceProcessResult(DNSServiceRef sdRef); /* DNSServiceRefDeallocate() * * Terminate a connection with the daemon and free memory associated with the DNSServiceRef. * Any services or records registered with this DNSServiceRef will be deregistered. Any * Browse, Resolve, or Query operations called with this reference will be terminated. * * Note: If the reference's underlying socket is used in a run loop or select() call, it should * be removed BEFORE DNSServiceRefDeallocate() is called, as this function closes the reference's * socket. * * Note: If the reference was initialized with DNSServiceCreateConnection(), any DNSRecordRefs * created via this reference will be invalidated by this call - the resource records are * deregistered, and their DNSRecordRefs may not be used in subsequent functions. Similarly, * if the reference was initialized with DNSServiceRegister, and an extra resource record was * added to the service via DNSServiceAddRecord(), the DNSRecordRef created by the Add() call * is invalidated when this function is called - the DNSRecordRef may not be used in subsequent * functions. * * Note: This call is to be used only with the DNSServiceRef defined by this API. It is * not compatible with dns_service_discovery_ref objects defined in the legacy Mach-based * DNSServiceDiscovery.h API. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls. * */ void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef); /********************************************************************************************* * * Domain Enumeration * *********************************************************************************************/ /* DNSServiceEnumerateDomains() * * Asynchronously enumerate domains available for browsing and registration. * * The enumeration MUST be cancelled via DNSServiceRefDeallocate() when no more domains * are to be found. * * Note that the names returned are (like all of DNS-SD) UTF-8 strings, * and are escaped using standard DNS escaping rules. * (See "Notes on DNS Name Escaping" earlier in this file for more details.) * A graphical browser displaying a hierarchical tree-structured view should cut * the names at the bare dots to yield individual labels, then de-escape each * label according to the escaping rules, and then display the resulting UTF-8 text. * * DNSServiceDomainEnumReply Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceEnumerateDomains(). * * flags: Possible values are: * kDNSServiceFlagsMoreComing * kDNSServiceFlagsAdd * kDNSServiceFlagsDefault * * interfaceIndex: Specifies the interface on which the domain exists. (The index for a given * interface is determined via the if_nametoindex() family of calls.) * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise indicates * the failure that occurred (other parameters are undefined if errorCode is nonzero). * * replyDomain: The name of the domain. * * context: The context pointer passed to DNSServiceEnumerateDomains. * */ typedef void (DNSSD_API *DNSServiceDomainEnumReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *replyDomain, void *context ); /* DNSServiceEnumerateDomains() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the enumeration operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Possible values are: * kDNSServiceFlagsBrowseDomains to enumerate domains recommended for browsing. * kDNSServiceFlagsRegistrationDomains to enumerate domains recommended * for registration. * * interfaceIndex: If non-zero, specifies the interface on which to look for domains. * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to enumerate domains on * all interfaces. See "Constants for specifying an interface index" for more details. * * callBack: The function to be called when a domain is found or the call asynchronously * fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is not invoked and the DNSServiceRef * is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceEnumerateDomains ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceDomainEnumReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Service Registration * *********************************************************************************************/ /* Register a service that is discovered via Browse() and Resolve() calls. * * DNSServiceRegisterReply() Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceRegister(). * * flags: When a name is successfully registered, the callback will be * invoked with the kDNSServiceFlagsAdd flag set. When Wide-Area * DNS-SD is in use, it is possible for a single service to get * more than one success callback (e.g. one in the "local" multicast * DNS domain, and another in a wide-area unicast DNS domain). * If a successfully-registered name later suffers a name conflict * or similar problem and has to be deregistered, the callback will * be invoked with the kDNSServiceFlagsAdd flag not set. The callback * is *not* invoked in the case where the caller explicitly terminates * the service registration by calling DNSServiceRefDeallocate(ref); * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred (including name conflicts, * if the kDNSServiceFlagsNoAutoRename flag was used when registering.) * Other parameters are undefined if errorCode is nonzero. * * name: The service name registered (if the application did not specify a name in * DNSServiceRegister(), this indicates what name was automatically chosen). * * regtype: The type of service registered, as it was passed to the callout. * * domain: The domain on which the service was registered (if the application did not * specify a domain in DNSServiceRegister(), this indicates the default domain * on which the service was registered). * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceRegisterReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *name, const char *regtype, const char *domain, void *context ); /* DNSServiceRegister() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the registration will remain active indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * interfaceIndex: If non-zero, specifies the interface on which to register the service * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to register on all * available interfaces. See "Constants for specifying an interface index" for more details. * * flags: Indicates the renaming behavior on name conflict (most applications * will pass 0). See flag definitions above for details. * * name: If non-NULL, specifies the service name to be registered. * Most applications will not specify a name, in which case the computer * name is used (this name is communicated to the client via the callback). * If a name is specified, it must be 1-63 bytes of UTF-8 text. * If the name is longer than 63 bytes it will be automatically truncated * to a legal length, unless the NoAutoRename flag is set, * in which case kDNSServiceErr_BadParam will be returned. * * regtype: The service type followed by the protocol, separated by a dot * (e.g. "_ftp._tcp"). The service type must be an underscore, followed * by 1-15 characters, which may be letters, digits, or hyphens. * The transport protocol must be "_tcp" or "_udp". New service types * should be registered at . * * Additional subtypes of the primary service type (where a service * type has defined subtypes) follow the primary service type in a * comma-separated list, with no additional spaces, e.g. * "_primarytype._tcp,_subtype1,_subtype2,_subtype3" * Subtypes provide a mechanism for filtered browsing: A client browsing * for "_primarytype._tcp" will discover all instances of this type; * a client browsing for "_primarytype._tcp,_subtype2" will discover only * those instances that were registered with "_subtype2" in their list of * registered subtypes. * * The subtype mechanism can be illustrated with some examples using the * dns-sd command-line tool: * * % dns-sd -R Simple _test._tcp "" 1001 & * % dns-sd -R Better _test._tcp,HasFeatureA "" 1002 & * % dns-sd -R Best _test._tcp,HasFeatureA,HasFeatureB "" 1003 & * * Now: * % dns-sd -B _test._tcp # will find all three services * % dns-sd -B _test._tcp,HasFeatureA # finds "Better" and "Best" * % dns-sd -B _test._tcp,HasFeatureB # finds only "Best" * * Subtype labels may be up to 63 bytes long, and may contain any eight- * bit byte values, including zero bytes. However, due to the nature of * using a C-string-based API, conventional DNS escaping must be used for * dots ('.'), commas (','), backslashes ('\') and zero bytes, as shown below: * * % dns-sd -R Test '_test._tcp,s\.one,s\,two,s\\three,s\000four' local 123 * * domain: If non-NULL, specifies the domain on which to advertise the service. * Most applications will not specify a domain, instead automatically * registering in the default domain(s). * * host: If non-NULL, specifies the SRV target host name. Most applications * will not specify a host, instead automatically using the machine's * default host name(s). Note that specifying a non-NULL host does NOT * create an address record for that host - the application is responsible * for ensuring that the appropriate address record exists, or creating it * via DNSServiceRegisterRecord(). * * port: The port, in network byte order, on which the service accepts connections. * Pass 0 for a "placeholder" service (i.e. a service that will not be discovered * by browsing, but will cause a name conflict if another client tries to * register that same name). Most clients will not use placeholder services. * * txtLen: The length of the txtRecord, in bytes. Must be zero if the txtRecord is NULL. * * txtRecord: The TXT record rdata. A non-NULL txtRecord MUST be a properly formatted DNS * TXT record, i.e. ... * Passing NULL for the txtRecord is allowed as a synonym for txtLen=1, txtRecord="", * i.e. it creates a TXT record of length one containing a single empty string. * RFC 1035 doesn't allow a TXT record to contain *zero* strings, so a single empty * string is the smallest legal DNS TXT record. * As with the other parameters, the DNSServiceRegister call copies the txtRecord * data; e.g. if you allocated the storage for the txtRecord parameter with malloc() * then you can safely free that memory right after the DNSServiceRegister call returns. * * callBack: The function to be called when the registration completes or asynchronously * fails. The client MAY pass NULL for the callback - The client will NOT be notified * of the default values picked on its behalf, and the client will NOT be notified of any * asynchronous errors (e.g. out of memory errors, etc.) that may prevent the registration * of the service. The client may NOT pass the NoAutoRename flag if the callback is NULL. * The client may still deregister the service at any time via DNSServiceRefDeallocate(). * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceRegister ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, /* may be NULL */ const char *regtype, const char *domain, /* may be NULL */ const char *host, /* may be NULL */ uint16_t port, /* In network byte order */ uint16_t txtLen, const void *txtRecord, /* may be NULL */ DNSServiceRegisterReply callBack, /* may be NULL */ void *context /* may be NULL */ ); /* DNSServiceAddRecord() * * Add a record to a registered service. The name of the record will be the same as the * registered service's name. * The record can later be updated or deregistered by passing the RecordRef initialized * by this function to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * * Note that the DNSServiceAddRecord/UpdateRecord/RemoveRecord are *NOT* thread-safe * with respect to a single DNSServiceRef. If you plan to have multiple threads * in your program simultaneously add, update, or remove records from the same * DNSServiceRef, then it's the caller's responsibility to use a mutext lock * or take similar appropriate precautions to serialize those calls. * * Parameters; * * sdRef: A DNSServiceRef initialized by DNSServiceRegister(). * * RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesful completion of this * call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * If the above DNSServiceRef is passed to DNSServiceRefDeallocate(), RecordRef is also * invalidated and may not be used further. * * flags: Currently ignored, reserved for future use. * * rrtype: The type of the record (e.g. kDNSServiceType_TXT, kDNSServiceType_SRV, etc) * * rdlen: The length, in bytes, of the rdata. * * rdata: The raw rdata to be contained in the added resource record. * * ttl: The time to live of the resource record, in seconds. * Most clients should pass 0 to indicate that the system should * select a sensible default value. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred (the RecordRef is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceAddRecord ( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl ); /* DNSServiceUpdateRecord * * Update a registered resource record. The record must either be: * - The primary txt record of a service registered via DNSServiceRegister() * - A record added to a registered service via DNSServiceAddRecord() * - An individual record registered by DNSServiceRegisterRecord() * * Parameters: * * sdRef: A DNSServiceRef that was initialized by DNSServiceRegister() * or DNSServiceCreateConnection(). * * RecordRef: A DNSRecordRef initialized by DNSServiceAddRecord, or NULL to update the * service's primary txt record. * * flags: Currently ignored, reserved for future use. * * rdlen: The length, in bytes, of the new rdata. * * rdata: The new rdata to be contained in the updated resource record. * * ttl: The time to live of the updated resource record, in seconds. * Most clients should pass 0 to indicate that the system should * select a sensible default value. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, /* may be NULL */ DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl ); /* DNSServiceRemoveRecord * * Remove a record previously added to a service record set via DNSServiceAddRecord(), or deregister * an record registered individually via DNSServiceRegisterRecord(). * * Parameters: * * sdRef: A DNSServiceRef initialized by DNSServiceRegister() (if the * record being removed was registered via DNSServiceAddRecord()) or by * DNSServiceCreateConnection() (if the record being removed was registered via * DNSServiceRegisterRecord()). * * recordRef: A DNSRecordRef initialized by a successful call to DNSServiceAddRecord() * or DNSServiceRegisterRecord(). * * flags: Currently ignored, reserved for future use. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceRemoveRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags ); /********************************************************************************************* * * Service Discovery * *********************************************************************************************/ /* Browse for instances of a service. * * DNSServiceBrowseReply() Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceBrowse(). * * flags: Possible values are kDNSServiceFlagsMoreComing and kDNSServiceFlagsAdd. * See flag definitions for details. * * interfaceIndex: The interface on which the service is advertised. This index should * be passed to DNSServiceResolve() when resolving the service. * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * the errorCode is nonzero. * * serviceName: The discovered service name. This name should be displayed to the user, * and stored for subsequent use in the DNSServiceResolve() call. * * regtype: The service type, which is usually (but not always) the same as was passed * to DNSServiceBrowse(). One case where the discovered service type may * not be the same as the requested service type is when using subtypes: * The client may want to browse for only those ftp servers that allow * anonymous connections. The client will pass the string "_ftp._tcp,_anon" * to DNSServiceBrowse(), but the type of the service that's discovered * is simply "_ftp._tcp". The regtype for each discovered service instance * should be stored along with the name, so that it can be passed to * DNSServiceResolve() when the service is later resolved. * * domain: The domain of the discovered service instance. This may or may not be the * same as the domain that was passed to DNSServiceBrowse(). The domain for each * discovered service instance should be stored along with the name, so that * it can be passed to DNSServiceResolve() when the service is later resolved. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceBrowseReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context ); /* DNSServiceBrowse() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the browse operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Currently ignored, reserved for future use. * * interfaceIndex: If non-zero, specifies the interface on which to browse for services * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to browse on all available * interfaces. See "Constants for specifying an interface index" for more details. * * regtype: The service type being browsed for followed by the protocol, separated by a * dot (e.g. "_ftp._tcp"). The transport protocol must be "_tcp" or "_udp". * A client may optionally specify a single subtype to perform filtered browsing: * e.g. browsing for "_primarytype._tcp,_subtype" will discover only those * instances of "_primarytype._tcp" that were registered specifying "_subtype" * in their list of registered subtypes. * * domain: If non-NULL, specifies the domain on which to browse for services. * Most applications will not specify a domain, instead browsing on the * default domain(s). * * callBack: The function to be called when an instance of the service being browsed for * is found, or if the call asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is not invoked and the DNSServiceRef * is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceBrowse ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, /* may be NULL */ DNSServiceBrowseReply callBack, void *context /* may be NULL */ ); /* DNSServiceResolve() * * Resolve a service name discovered via DNSServiceBrowse() to a target host name, port number, and * txt record. * * Note: Applications should NOT use DNSServiceResolve() solely for txt record monitoring - use * DNSServiceQueryRecord() instead, as it is more efficient for this task. * * Note: When the desired results have been returned, the client MUST terminate the resolve by calling * DNSServiceRefDeallocate(). * * Note: DNSServiceResolve() behaves correctly for typical services that have a single SRV record * and a single TXT record. To resolve non-standard services with multiple SRV or TXT records, * DNSServiceQueryRecord() should be used. * * DNSServiceResolveReply Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceResolve(). * * flags: Possible values: kDNSServiceFlagsMoreComing * * interfaceIndex: The interface on which the service was resolved. * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * the errorCode is nonzero. * * fullname: The full service domain name, in the form ... * (This name is escaped following standard DNS rules, making it suitable for * passing to standard system DNS APIs such as res_query(), or to the * special-purpose functions included in this API that take fullname parameters. * See "Notes on DNS Name Escaping" earlier in this file for more details.) * * hosttarget: The target hostname of the machine providing the service. This name can * be passed to functions like gethostbyname() to identify the host's IP address. * * port: The port, in network byte order, on which connections are accepted for this service. * * txtLen: The length of the txt record, in bytes. * * txtRecord: The service's primary txt record, in standard txt record format. * * context: The context pointer that was passed to the callout. * * NOTE: In earlier versions of this header file, the txtRecord parameter was declared "const char *" * This is incorrect, since it contains length bytes which are values in the range 0 to 255, not -128 to +127. * Depending on your compiler settings, this change may cause signed/unsigned mismatch warnings. * These should be fixed by updating your own callback function definition to match the corrected * function signature using "const unsigned char *txtRecord". Making this change may also fix inadvertent * bugs in your callback function, where it could have incorrectly interpreted a length byte with value 250 * as being -6 instead, with various bad consequences ranging from incorrect operation to software crashes. * If you need to maintain portable code that will compile cleanly with both the old and new versions of * this header file, you should update your callback function definition to use the correct unsigned value, * and then in the place where you pass your callback function to DNSServiceResolve(), use a cast to eliminate * the compiler warning, e.g.: * DNSServiceResolve(sd, flags, index, name, regtype, domain, (DNSServiceResolveReply)MyCallback, context); * This will ensure that your code compiles cleanly without warnings (and more importantly, works correctly) * with both the old header and with the new corrected version. * */ typedef void (DNSSD_API *DNSServiceResolveReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, /* In network byte order */ uint16_t txtLen, const unsigned char *txtRecord, void *context ); /* DNSServiceResolve() Parameters * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the resolve operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Specifying kDNSServiceFlagsForceMulticast will cause query to be * performed with a link-local mDNS query, even if the name is an * apparently non-local name (i.e. a name not ending in ".local.") * * interfaceIndex: The interface on which to resolve the service. If this resolve call is * as a result of a currently active DNSServiceBrowse() operation, then the * interfaceIndex should be the index reported in the DNSServiceBrowseReply * callback. If this resolve call is using information previously saved * (e.g. in a preference file) for later use, then use interfaceIndex 0, because * the desired service may now be reachable via a different physical interface. * See "Constants for specifying an interface index" for more details. * * name: The name of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * regtype: The type of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * domain: The domain of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * callBack: The function to be called when a result is found, or if the call * asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceResolve ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Querying Individual Specific Records * *********************************************************************************************/ /* DNSServiceQueryRecord * * Query for an arbitrary DNS record. * * DNSServiceQueryRecordReply() Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceQueryRecord(). * * flags: Possible values are kDNSServiceFlagsMoreComing and * kDNSServiceFlagsAdd. The Add flag is NOT set for PTR records * with a ttl of 0, i.e. "Remove" events. * * interfaceIndex: The interface on which the query was resolved (the index for a given * interface is determined via the if_nametoindex() family of calls). * See "Constants for specifying an interface index" for more details. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * errorCode is nonzero. * * fullname: The resource record's full domain name. * * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * rdlen: The length, in bytes, of the resource record rdata. * * rdata: The raw rdata of the resource record. * * ttl: If the client wishes to cache the result for performance reasons, * the TTL indicates how long the client may legitimately hold onto * this result, in seconds. After the TTL expires, the client should * consider the result no longer valid, and if it requires this data * again, it should be re-fetched with a new query. Of course, this * only applies to clients that cancel the asynchronous operation when * they get a result. Clients that leave the asynchronous operation * running can safely assume that the data remains valid until they * get another callback telling them otherwise. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceQueryRecordReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context ); /* DNSServiceQueryRecord() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the query operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: kDNSServiceFlagsForceMulticast or kDNSServiceFlagsLongLivedQuery. * Pass kDNSServiceFlagsLongLivedQuery to create a "long-lived" unicast * query in a non-local domain. Without setting this flag, unicast queries * will be one-shot - that is, only answers available at the time of the call * will be returned. By setting this flag, answers (including Add and Remove * events) that become available after the initial call is made will generate * callbacks. This flag has no effect on link-local multicast queries. * * interfaceIndex: If non-zero, specifies the interface on which to issue the query * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Passing 0 causes the name to be queried for on all * interfaces. See "Constants for specifying an interface index" for more details. * * fullname: The full domain name of the resource record to be queried for. * * rrtype: The numerical type of the resource record to be queried for * (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * callBack: The function to be called when a result is found, or if the call * asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Unified lookup of both IPv4 and IPv6 addresses for a fully qualified hostname * *********************************************************************************************/ /* DNSServiceGetAddrInfo * * Queries for the IP address of a hostname by using either Multicast or Unicast DNS. * * DNSServiceGetAddrInfoReply() parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceGetAddrInfo(). * * flags: Possible values are kDNSServiceFlagsMoreComing and * kDNSServiceFlagsAdd. * * interfaceIndex: The interface to which the answers pertain. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred. Other parameters are * undefined if errorCode is nonzero. * * hostname: The fully qualified domain name of the host to be queried for. * * address: IPv4 or IPv6 address. * * ttl: If the client wishes to cache the result for performance reasons, * the TTL indicates how long the client may legitimately hold onto * this result, in seconds. After the TTL expires, the client should * consider the result no longer valid, and if it requires this data * again, it should be re-fetched with a new query. Of course, this * only applies to clients that cancel the asynchronous operation when * they get a result. Clients that leave the asynchronous operation * running can safely assume that the data remains valid until they * get another callback telling them otherwise. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceGetAddrInfoReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *address, uint32_t ttl, void *context ); /* DNSServiceGetAddrInfo() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds then it * initializes the DNSServiceRef, returns kDNSServiceErr_NoError, and the query * begins and will last indefinitely until the client terminates the query * by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: kDNSServiceFlagsForceMulticast or kDNSServiceFlagsLongLivedQuery. * Pass kDNSServiceFlagsLongLivedQuery to create a "long-lived" unicast * query in a non-local domain. Without setting this flag, unicast queries * will be one-shot - that is, only answers available at the time of the call * will be returned. By setting this flag, answers (including Add and Remove * events) that become available after the initial call is made will generate * callbacks. This flag has no effect on link-local multicast queries. * * interfaceIndex: The interface on which to issue the query. Passing 0 causes the query to be * sent on all active interfaces via Multicast or the primary interface via Unicast. * * protocol: Pass in kDNSServiceProtocol_IPv4 to look up IPv4 addresses, or kDNSServiceProtocol_IPv6 * to look up IPv6 addresses, or both to look up both kinds. If neither flag is * set, the system will apply an intelligent heuristic, which is (currently) * that it will attempt to look up both, except: * * * If "hostname" is a wide-area unicast DNS hostname (i.e. not a ".local." name) * but this host has no routable IPv6 address, then the call will not try to * look up IPv6 addresses for "hostname", since any addresses it found would be * unlikely to be of any use anyway. Similarly, if this host has no routable * IPv4 address, the call will not try to look up IPv4 addresses for "hostname". * * hostname: The fully qualified domain name of the host to be queried for. * * callBack: The function to be called when the query succeeds or fails asynchronously. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceGetAddrInfo ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceProtocol protocol, const char *hostname, DNSServiceGetAddrInfoReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Special Purpose Calls: * DNSServiceCreateConnection(), DNSServiceRegisterRecord(), DNSServiceReconfirmRecord() * (most applications will not use these) * *********************************************************************************************/ /* DNSServiceCreateConnection() * * Create a connection to the daemon allowing efficient registration of * multiple individual records. * * Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. Deallocating * the reference (via DNSServiceRefDeallocate()) severs the * connection and deregisters all records registered on this connection. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns * an error code indicating the specific failure that occurred (in which * case the DNSServiceRef is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(DNSServiceRef *sdRef); /* DNSServiceRegisterRecord * * Register an individual resource record on a connected DNSServiceRef. * * Note that name conflicts occurring for records registered via this call must be handled * by the client in the callback. * * DNSServiceRegisterRecordReply() parameters: * * sdRef: The connected DNSServiceRef initialized by * DNSServiceCreateConnection(). * * RecordRef: The DNSRecordRef initialized by DNSServiceRegisterRecord(). If the above * DNSServiceRef is passed to DNSServiceRefDeallocate(), this DNSRecordRef is * invalidated, and may not be used further. * * flags: Currently unused, reserved for future use. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred (including name conflicts.) * Other parameters are undefined if errorCode is nonzero. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceRegisterRecordReply) ( DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, void *context ); /* DNSServiceRegisterRecord() Parameters: * * sdRef: A DNSServiceRef initialized by DNSServiceCreateConnection(). * * RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesful completion of this * call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * (To deregister ALL records registered on a single connected DNSServiceRef * and deallocate each of their corresponding DNSServiceRecordRefs, call * DNSServiceRefDeallocate()). * * flags: Possible values are kDNSServiceFlagsShared or kDNSServiceFlagsUnique * (see flag type definitions for details). * * interfaceIndex: If non-zero, specifies the interface on which to register the record * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Passing 0 causes the record to be registered on all interfaces. * See "Constants for specifying an interface index" for more details. * * fullname: The full domain name of the resource record. * * rrtype: The numerical type of the resource record (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN) * * rdlen: Length, in bytes, of the rdata. * * rdata: A pointer to the raw rdata, as it is to appear in the DNS record. * * ttl: The time to live of the resource record, in seconds. * Most clients should pass 0 to indicate that the system should * select a sensible default value. * * callBack: The function to be called when a result is found, or if the call * asynchronously fails (e.g. because of a name conflict.) * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSRecordRef is * not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceRegisterRecord ( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, DNSServiceRegisterRecordReply callBack, void *context /* may be NULL */ ); /* DNSServiceReconfirmRecord * * Instruct the daemon to verify the validity of a resource record that appears * to be out of date (e.g. because TCP connection to a service's target failed.) * Causes the record to be flushed from the daemon's cache (as well as all other * daemons' caches on the network) if the record is determined to be invalid. * Use this routine conservatively. Reconfirming a record necessarily consumes * network bandwidth, so this should not be done indiscriminately. * * Parameters: * * flags: Pass kDNSServiceFlagsForce to force immediate deletion of record, * instead of after some number of reconfirmation queries have gone unanswered. * * interfaceIndex: Specifies the interface of the record in question. * The caller must specify the interface. * This API (by design) causes increased network traffic, so it requires * the caller to be precise about which record should be reconfirmed. * It is not possible to pass zero for the interface index to perform * a "wildcard" reconfirmation, where *all* matching records are reconfirmed. * * fullname: The resource record's full domain name. * * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * rdlen: The length, in bytes, of the resource record rdata. * * rdata: The raw rdata of the resource record. * */ DNSServiceErrorType DNSSD_API DNSServiceReconfirmRecord ( DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata ); /********************************************************************************************* * * NAT Port Mapping * *********************************************************************************************/ /* DNSServiceNATPortMappingCreate * * Request a port mapping in the NAT gateway, which maps a port on the local machine * to an external port on the NAT. The NAT should support either the NAT-PMP or the UPnP IGD * protocol for this API to create a successful mapping. * * The port mapping will be renewed indefinitely until the client process exits, or * explicitly terminates the port mapping request by calling DNSServiceRefDeallocate(). * The client callback will be invoked, informing the client of the NAT gateway's * external IP address and the external port that has been allocated for this client. * The client should then record this external IP address and port using whatever * directory service mechanism it is using to enable peers to connect to it. * (Clients advertising services using Wide-Area DNS-SD DO NOT need to use this API * -- when a client calls DNSServiceRegister() NAT mappings are automatically created * and the external IP address and port for the service are recorded in the global DNS. * Only clients using some directory mechanism other than Wide-Area DNS-SD need to use * this API to explicitly map their own ports.) * * It's possible that the client callback could be called multiple times, for example * if the NAT gateway's IP address changes, or if a configuration change results in a * different external port being mapped for this client. Over the lifetime of any long-lived * port mapping, the client should be prepared to handle these notifications of changes * in the environment, and should update its recorded address and/or port as appropriate. * * NOTE: There are two unusual aspects of how the DNSServiceNATPortMappingCreate API works, * which were intentionally designed to help simplify client code: * * 1. It's not an error to request a NAT mapping when the machine is not behind a NAT gateway. * In other NAT mapping APIs, if you request a NAT mapping and the machine is not behind a NAT * gateway, then the API returns an error code -- it can't get you a NAT mapping if there's no * NAT gateway. The DNSServiceNATPortMappingCreate API takes a different view. Working out * whether or not you need a NAT mapping can be tricky and non-obvious, particularly on * a machine with multiple active network interfaces. Rather than make every client recreate * this logic for deciding whether a NAT mapping is required, the PortMapping API does that * work for you. If the client calls the PortMapping API when the machine already has a * routable public IP address, then instead of complaining about it and giving an error, * the PortMapping API just invokes your callback, giving the machine's public address * and your own port number. This means you don't need to write code to work out whether * your client needs to call the PortMapping API -- just call it anyway, and if it wasn't * necessary, no harm is done: * * - If the machine already has a routable public IP address, then your callback * will just be invoked giving your own address and port. * - If a NAT mapping is required and obtained, then your callback will be invoked * giving you the external address and port. * - If a NAT mapping is required but not obtained from the local NAT gateway, * or the machine has no network connectivity, then your callback will be * invoked giving zero address and port. * * 2. In other NAT mapping APIs, if a laptop computer is put to sleep and woken up on a new * network, it's the client's job to notice this, and work out whether a NAT mapping * is required on the new network, and make a new NAT mapping request if necessary. * The DNSServiceNATPortMappingCreate API does this for you, automatically. * The client just needs to make one call to the PortMapping API, and its callback will * be invoked any time the mapping state changes. This property complements point (1) above. * If the client didn't make a NAT mapping request just because it determined that one was * not required at that particular moment in time, the client would then have to monitor * for network state changes to determine if a NAT port mapping later became necessary. * By unconditionally making a NAT mapping request, even when a NAT mapping not to be * necessary, the PortMapping API will then begin monitoring network state changes on behalf of * the client, and if a NAT mapping later becomes necessary, it will automatically create a NAT * mapping and inform the client with a new callback giving the new address and port information. * * DNSServiceNATPortMappingReply() parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceNATPortMappingCreate(). * * flags: Currently unused, reserved for future use. * * interfaceIndex: The interface through which the NAT gateway is reached. * * errorCode: Will be kDNSServiceErr_NoError on success. * Will be kDNSServiceErr_DoubleNAT when the NAT gateway is itself behind one or * more layers of NAT, in which case the other parameters have the defined values. * For other failures, will indicate the failure that occurred, and the other * parameters are undefined. * * externalAddress: Four byte IPv4 address in network byte order. * * protocol: Will be kDNSServiceProtocol_UDP or kDNSServiceProtocol_TCP or both. * * internalPort: The port on the local machine that was mapped. * * externalPort: The actual external port in the NAT gateway that was mapped. * This is likely to be different than the requested external port. * * ttl: The lifetime of the NAT port mapping created on the gateway. * This controls how quickly stale mappings will be garbage-collected * if the client machine crashes, suffers a power failure, is disconnected * from the network, or suffers some other unfortunate demise which * causes it to vanish without explicitly removing its NAT port mapping. * It's possible that the ttl value will differ from the requested ttl value. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceNATPortMappingReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, uint32_t externalAddress, /* four byte IPv4 address in network byte order */ DNSServiceProtocol protocol, uint16_t internalPort, /* In network byte order */ uint16_t externalPort, /* In network byte order and may be different than the requested port */ uint32_t ttl, /* may be different than the requested ttl */ void *context ); /* DNSServiceNATPortMappingCreate() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds then it * initializes the DNSServiceRef, returns kDNSServiceErr_NoError, and the nat * port mapping will last indefinitely until the client terminates the port * mapping request by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Currently ignored, reserved for future use. * * interfaceIndex: The interface on which to create port mappings in a NAT gateway. Passing 0 causes * the port mapping request to be sent on the primary interface. * * protocol: To request a port mapping, pass in kDNSServiceProtocol_UDP, or kDNSServiceProtocol_TCP, * or (kDNSServiceProtocol_UDP | kDNSServiceProtocol_TCP) to map both. * The local listening port number must also be specified in the internalPort parameter. * To just discover the NAT gateway's external IP address, pass zero for protocol, * internalPort, externalPort and ttl. * * internalPort: The port number in network byte order on the local machine which is listening for packets. * * externalPort: The requested external port in network byte order in the NAT gateway that you would * like to map to the internal port. Pass 0 if you don't care which external port is chosen for you. * * ttl: The requested renewal period of the NAT port mapping, in seconds. * If the client machine crashes, suffers a power failure, is disconnected from * the network, or suffers some other unfortunate demise which causes it to vanish * unexpectedly without explicitly removing its NAT port mappings, then the NAT gateway * will garbage-collect old stale NAT port mappings when their lifetime expires. * Requesting a short TTL causes such orphaned mappings to be garbage-collected * more promptly, but consumes system resources and network bandwidth with * frequent renewal packets to keep the mapping from expiring. * Requesting a long TTL is more efficient on the network, but in the event of the * client vanishing, stale NAT port mappings will not be garbage-collected as quickly. * Most clients should pass 0 to use a system-wide default value. * * callBack: The function to be called when the port mapping request succeeds or fails asynchronously. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on success (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred. * * If you don't actually want a port mapped, and are just calling the API * because you want to find out the NAT's external IP address (e.g. for UI * display) then pass zero for protocol, internalPort, externalPort and ttl. */ DNSServiceErrorType DNSSD_API DNSServiceNATPortMappingCreate ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceProtocol protocol, /* TCP and/or UDP */ uint16_t internalPort, /* network byte order */ uint16_t externalPort, /* network byte order */ uint32_t ttl, /* time to live in seconds */ DNSServiceNATPortMappingReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * General Utility Functions * *********************************************************************************************/ /* DNSServiceConstructFullName() * * Concatenate a three-part domain name (as returned by the above callbacks) into a * properly-escaped full domain name. Note that callbacks in the above functions ALREADY ESCAPE * strings where necessary. * * Parameters: * * fullName: A pointer to a buffer that where the resulting full domain name is to be written. * The buffer must be kDNSServiceMaxDomainName (1009) bytes in length to * accommodate the longest legal domain name without buffer overrun. * * service: The service name - any dots or backslashes must NOT be escaped. * May be NULL (to construct a PTR record name, e.g. * "_ftp._tcp.apple.com."). * * regtype: The service type followed by the protocol, separated by a dot * (e.g. "_ftp._tcp"). * * domain: The domain name, e.g. "apple.com.". Literal dots or backslashes, * if any, must be escaped, e.g. "1st\. Floor.apple.com." * * return value: Returns kDNSServiceErr_NoError (0) on success, kDNSServiceErr_BadParam on error. * */ DNSServiceErrorType DNSSD_API DNSServiceConstructFullName ( char * const fullName, const char * const service, /* may be NULL */ const char * const regtype, const char * const domain ); /********************************************************************************************* * * TXT Record Construction Functions * *********************************************************************************************/ /* * A typical calling sequence for TXT record construction is something like: * * Client allocates storage for TXTRecord data (e.g. declare buffer on the stack) * TXTRecordCreate(); * TXTRecordSetValue(); * TXTRecordSetValue(); * TXTRecordSetValue(); * ... * DNSServiceRegister( ... TXTRecordGetLength(), TXTRecordGetBytesPtr() ... ); * TXTRecordDeallocate(); * Explicitly deallocate storage for TXTRecord data (if not allocated on the stack) */ /* TXTRecordRef * * Opaque internal data type. * Note: Represents a DNS-SD TXT record. */ typedef union _TXTRecordRef_t { char PrivateData[16]; char *ForceNaturalAlignment; } TXTRecordRef; /* TXTRecordCreate() * * Creates a new empty TXTRecordRef referencing the specified storage. * * If the buffer parameter is NULL, or the specified storage size is not * large enough to hold a key subsequently added using TXTRecordSetValue(), * then additional memory will be added as needed using malloc(). * * On some platforms, when memory is low, malloc() may fail. In this * case, TXTRecordSetValue() will return kDNSServiceErr_NoMemory, and this * error condition will need to be handled as appropriate by the caller. * * You can avoid the need to handle this error condition if you ensure * that the storage you initially provide is large enough to hold all * the key/value pairs that are to be added to the record. * The caller can precompute the exact length required for all of the * key/value pairs to be added, or simply provide a fixed-sized buffer * known in advance to be large enough. * A no-value (key-only) key requires (1 + key length) bytes. * A key with empty value requires (1 + key length + 1) bytes. * A key with non-empty value requires (1 + key length + 1 + value length). * For most applications, DNS-SD TXT records are generally * less than 100 bytes, so in most cases a simple fixed-sized * 256-byte buffer will be more than sufficient. * Recommended size limits for DNS-SD TXT Records are discussed in * * * Note: When passing parameters to and from these TXT record APIs, * the key name does not include the '=' character. The '=' character * is the separator between the key and value in the on-the-wire * packet format; it is not part of either the key or the value. * * txtRecord: A pointer to an uninitialized TXTRecordRef. * * bufferLen: The size of the storage provided in the "buffer" parameter. * * buffer: Optional caller-supplied storage used to hold the TXTRecord data. * This storage must remain valid for as long as * the TXTRecordRef. */ void DNSSD_API TXTRecordCreate ( TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer ); /* TXTRecordDeallocate() * * Releases any resources allocated in the course of preparing a TXT Record * using TXTRecordCreate()/TXTRecordSetValue()/TXTRecordRemoveValue(). * Ownership of the buffer provided in TXTRecordCreate() returns to the client. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * */ void DNSSD_API TXTRecordDeallocate ( TXTRecordRef *txtRecord ); /* TXTRecordSetValue() * * Adds a key (optionally with value) to a TXTRecordRef. If the "key" already * exists in the TXTRecordRef, then the current value will be replaced with * the new value. * Keys may exist in four states with respect to a given TXT record: * - Absent (key does not appear at all) * - Present with no value ("key" appears alone) * - Present with empty value ("key=" appears in TXT record) * - Present with non-empty value ("key=value" appears in TXT record) * For more details refer to "Data Syntax for DNS-SD TXT Records" in * * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * key: A null-terminated string which only contains printable ASCII * values (0x20-0x7E), excluding '=' (0x3D). Keys should be * 9 characters or fewer (not counting the terminating null). * * valueSize: The size of the value. * * value: Any binary value. For values that represent * textual data, UTF-8 is STRONGLY recommended. * For values that represent textual data, valueSize * should NOT include the terminating null (if any) * at the end of the string. * If NULL, then "key" will be added with no value. * If non-NULL but valueSize is zero, then "key=" will be * added with empty value. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_Invalid if the "key" string contains * illegal characters. * Returns kDNSServiceErr_NoMemory if adding this key would * exceed the available storage. */ DNSServiceErrorType DNSSD_API TXTRecordSetValue ( TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, /* may be zero */ const void *value /* may be NULL */ ); /* TXTRecordRemoveValue() * * Removes a key from a TXTRecordRef. The "key" must be an * ASCII string which exists in the TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * key: A key name which exists in the TXTRecordRef. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_NoSuchKey if the "key" does not * exist in the TXTRecordRef. */ DNSServiceErrorType DNSSD_API TXTRecordRemoveValue ( TXTRecordRef *txtRecord, const char *key ); /* TXTRecordGetLength() * * Allows you to determine the length of the raw bytes within a TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * return value: Returns the size of the raw bytes inside a TXTRecordRef * which you can pass directly to DNSServiceRegister() or * to DNSServiceUpdateRecord(). * Returns 0 if the TXTRecordRef is empty. */ uint16_t DNSSD_API TXTRecordGetLength ( const TXTRecordRef *txtRecord ); /* TXTRecordGetBytesPtr() * * Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * return value: Returns a pointer to the raw bytes inside the TXTRecordRef * which you can pass directly to DNSServiceRegister() or * to DNSServiceUpdateRecord(). */ const void * DNSSD_API TXTRecordGetBytesPtr ( const TXTRecordRef *txtRecord ); /********************************************************************************************* * * TXT Record Parsing Functions * *********************************************************************************************/ /* * A typical calling sequence for TXT record parsing is something like: * * Receive TXT record data in DNSServiceResolve() callback * if (TXTRecordContainsKey(txtLen, txtRecord, "key")) then do something * val1ptr = TXTRecordGetValuePtr(txtLen, txtRecord, "key1", &len1); * val2ptr = TXTRecordGetValuePtr(txtLen, txtRecord, "key2", &len2); * ... * memcpy(myval1, val1ptr, len1); * memcpy(myval2, val2ptr, len2); * ... * return; * * If you wish to retain the values after return from the DNSServiceResolve() * callback, then you need to copy the data to your own storage using memcpy() * or similar, as shown in the example above. * * If for some reason you need to parse a TXT record you built yourself * using the TXT record construction functions above, then you can do * that using TXTRecordGetLength and TXTRecordGetBytesPtr calls: * TXTRecordGetValue(TXTRecordGetLength(x), TXTRecordGetBytesPtr(x), key, &len); * * Most applications only fetch keys they know about from a TXT record and * ignore the rest. * However, some debugging tools wish to fetch and display all keys. * To do that, use the TXTRecordGetCount() and TXTRecordGetItemAtIndex() calls. */ /* TXTRecordContainsKey() * * Allows you to determine if a given TXT Record contains a specified key. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * key: A null-terminated ASCII string containing the key name. * * return value: Returns 1 if the TXT Record contains the specified key. * Otherwise, it returns 0. */ int DNSSD_API TXTRecordContainsKey ( uint16_t txtLen, const void *txtRecord, const char *key ); /* TXTRecordGetValuePtr() * * Allows you to retrieve the value for a given key from a TXT Record. * * txtLen: The size of the received TXT Record * * txtRecord: Pointer to the received TXT Record bytes. * * key: A null-terminated ASCII string containing the key name. * * valueLen: On output, will be set to the size of the "value" data. * * return value: Returns NULL if the key does not exist in this TXT record, * or exists with no value (to differentiate between * these two cases use TXTRecordContainsKey()). * Returns pointer to location within TXT Record bytes * if the key exists with empty or non-empty value. * For empty value, valueLen will be zero. * For non-empty value, valueLen will be length of value data. */ const void * DNSSD_API TXTRecordGetValuePtr ( uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen ); /* TXTRecordGetCount() * * Returns the number of keys stored in the TXT Record. The count * can be used with TXTRecordGetItemAtIndex() to iterate through the keys. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * return value: Returns the total number of keys in the TXT Record. * */ uint16_t DNSSD_API TXTRecordGetCount ( uint16_t txtLen, const void *txtRecord ); /* TXTRecordGetItemAtIndex() * * Allows you to retrieve a key name and value pointer, given an index into * a TXT Record. Legal index values range from zero to TXTRecordGetCount()-1. * It's also possible to iterate through keys in a TXT record by simply * calling TXTRecordGetItemAtIndex() repeatedly, beginning with index zero * and increasing until TXTRecordGetItemAtIndex() returns kDNSServiceErr_Invalid. * * On return: * For keys with no value, *value is set to NULL and *valueLen is zero. * For keys with empty value, *value is non-NULL and *valueLen is zero. * For keys with non-empty value, *value is non-NULL and *valueLen is non-zero. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * itemIndex: An index into the TXT Record. * * keyBufLen: The size of the string buffer being supplied. * * key: A string buffer used to store the key name. * On return, the buffer contains a null-terminated C string * giving the key name. DNS-SD TXT keys are usually * 9 characters or fewer. To hold the maximum possible * key name, the buffer should be 256 bytes long. * * valueLen: On output, will be set to the size of the "value" data. * * value: On output, *value is set to point to location within TXT * Record bytes that holds the value data. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_NoMemory if keyBufLen is too short. * Returns kDNSServiceErr_Invalid if index is greater than * TXTRecordGetCount()-1. */ DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex ( uint16_t txtLen, const void *txtRecord, uint16_t itemIndex, uint16_t keyBufLen, char *key, uint8_t *valueLen, const void **value ); #if _DNS_SD_LIBDISPATCH /* * DNSServiceSetDispatchQueue * * Allows you to schedule a DNSServiceRef on a serial dispatch queue for receiving asynchronous * callbacks. It's the clients responsibility to ensure that the provided dispatch queue is running. * * A typical application that uses CFRunLoopRun or dispatch_main on its main thread will * usually schedule DNSServiceRefs on its main queue (which is always a serial queue) * using "DNSServiceSetDispatchQueue(sdref, dispatch_get_main_queue());" * * If there is any error during the processing of events, the application callback will * be called with an error code. For shared connections, each subordinate DNSServiceRef * will get its own error callback. Currently these error callbacks only happen * if the mDNSResponder daemon is manually terminated or crashes, and the error * code in this case is kDNSServiceErr_ServiceNotRunning. The application must call * DNSServiceRefDeallocate to free the DNSServiceRef when it gets such an error code. * These error callbacks are rare and should not normally happen on customer machines, * but application code should be written defensively to handle such error callbacks * gracefully if they occur. * * After using DNSServiceSetDispatchQueue on a DNSServiceRef, calling DNSServiceProcessResult * on the same DNSServiceRef will result in undefined behavior and should be avoided. * * Once the application successfully schedules a DNSServiceRef on a serial dispatch queue using * DNSServiceSetDispatchQueue, it cannot remove the DNSServiceRef from the dispatch queue, or use * DNSServiceSetDispatchQueue a second time to schedule the DNSServiceRef onto a different serial dispatch * queue. Once scheduled onto a dispatch queue a DNSServiceRef will deliver events to that queue until * the application no longer requires that operation and terminates it using DNSServiceRefDeallocate. * * service: DNSServiceRef that was allocated and returned to the application, when the * application calls one of the DNSService API. * * queue: dispatch queue where the application callback will be scheduled * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_NoMemory if it cannot create a dispatch source * Returns kDNSServiceErr_BadParam if the service param is invalid or the * queue param is invalid */ DNSServiceErrorType DNSSD_API DNSServiceSetDispatchQueue ( DNSServiceRef service, dispatch_queue_t queue ); #endif //_DNS_SD_LIBDISPATCH #ifdef __APPLE_API_PRIVATE #define kDNSServiceCompPrivateDNS "PrivateDNS" #define kDNSServiceCompMulticastDNS "MulticastDNS" #endif //__APPLE_API_PRIVATE /* Some C compiler cleverness. We can make the compiler check certain things for us, * and report errors at compile-time if anything is wrong. The usual way to do this would * be to use a run-time "if" statement or the conventional run-time "assert" mechanism, but * then you don't find out what's wrong until you run the software. This way, if the assertion * condition is false, the array size is negative, and the compiler complains immediately. */ struct CompileTimeAssertionChecks_DNS_SD { char assert0[(sizeof(union _TXTRecordRef_t) == 16) ? 1 : -1]; }; #ifdef __cplusplus } #endif #endif /* _DNS_SD_H */ cups-2.4.7/vcnet/dns_sd.c0000644000175000017500000003652414502571342015130 0ustar zdohnalzdohnal/* * Dynamic wrapper for Bonjour SDK for Windows. * * Copyright 2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ //#include #include #include "dns_sd.h" /* * Pointers for functions... */ static int dnssd_initialized = 0; static _cups_mutex_t dnssd_mutex = _CUPS_MUTEX_INITIALIZER; static DNSServiceErrorType (*dnssd_add_record)(DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl); static DNSServiceErrorType (*dnssd_browse)(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, DNSServiceBrowseReply callBack, void *context); static DNSServiceErrorType (*dnssd_construct_full_name)(char * const fullName, const char * const service, const char * const regtype, const char * const domain); static DNSServiceErrorType (*dnssd_create_connection)(DNSServiceRef *sdRef); static DNSServiceErrorType (*dnssd_process_result)(DNSServiceRef sdRef); static DNSServiceErrorType (*dnssd_query_record)(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context); static void (*dnssd_deallocate)(DNSServiceRef sdRef); static int (*dnssd_sock_fd)(DNSServiceRef sdRef); static DNSServiceErrorType (*dnssd_register)(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen, const void *txtRecord, DNSServiceRegisterReply callBack, void *context); static DNSServiceErrorType (*dnssd_remove_record)(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags); static DNSServiceErrorType (*dnssd_resolve)(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context); static DNSServiceErrorType (*dnssd_update_record)(DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl); static void (*dnssd_txt_create)(TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer); static void (*dnssd_txt_deallocate)(TXTRecordRef *txtRecord); static const void *(*dnssd_txt_get_bytes_ptr)(const TXTRecordRef *txtRecord); static uint16_t (*dnssd_txt_get_count)(uint16_t txtLen, const void *txtRecord); static uint16_t (*dnssd_txt_get_length)(const TXTRecordRef *txtRecord); static DNSServiceErrorType (*dnssd_txt_get_item_at_index)(uint16_t txtLen, const void *txtRecord, uint16_t itemIndex, uint16_t keyBufLen, char *key, uint8_t *valueLen, const void **value); static const void *(*dnssd_txt_get_value_ptr)(uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen); static DNSServiceErrorType (*dnssd_txt_set_value)(TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, const void *value); /* * Function to initialize pointers... */ static void dnssd_init(void) { _cupsMutexLock(&dnssd_mutex); if (!dnssd_initialized) { HINSTANCE dll_handle = LoadLibraryA("dnssd.dll"); if (dll_handle) { dnssd_add_record = (DNSServiceErrorType (*)(DNSServiceRef, DNSRecordRef *, DNSServiceFlags, uint16_t, uint16_t, const void *, uint32_t))GetProcAddress(dll_handle, "DNSServiceAddRecord"); dnssd_browse = (DNSServiceErrorType(*)(DNSServiceRef *, DNSServiceFlags, uint32_t, const char *, const char *, DNSServiceBrowseReply, void *))GetProcAddress(dll_handle, "DNSServiceBrowse"); dnssd_construct_full_name = (DNSServiceErrorType(*)(char * const, const char * const, const char * const, const char * const))GetProcAddress(dll_handle, "DNSServiceConstructFullName"); dnssd_create_connection = (DNSServiceErrorType(*)(DNSServiceRef *))GetProcAddress(dll_handle, "DNSServiceCreateConnection"); dnssd_deallocate = (DNSServiceErrorType(*)(DNSServiceRef))GetProcAddress(dll_handle, "DNSServiceRefDeallocate"); dnssd_process_result = (DNSServiceErrorType(*)(DNSServiceRef))GetProcAddress(dll_handle, "DNSServiceProcessResult"); dnssd_query_record = (DNSServiceErrorType(*)(DNSServiceRef *, DNSServiceFlags, uint32_t, const char *, uint16_t, uint16_t, DNSServiceQueryRecordReply, void *))GetProcAddress(dll_handle, "DNSServiceQueryRecord"); dnssd_register = (DNSServiceErrorType(*)(DNSServiceRef *, DNSServiceFlags, uint32_t, const char *, const char *, const char *, const char *, uint16_t, uint16_t, const void *, DNSServiceRegisterReply, void *))GetProcAddress(dll_handle, "DNSServiceRegister"); dnssd_remove_record = (DNSServiceErrorType(*)(DNSServiceRef, DNSRecordRef, DNSServiceFlags))GetProcAddress(dll_handle, "DNSServiceRemoveRecord"); dnssd_resolve = (DNSServiceErrorType(*)(DNSServiceRef *, DNSServiceFlags, uint32_t, const char *, const char *, const char *, DNSServiceResolveReply, void *))GetProcAddress(dll_handle, "DNSServiceResolve"); dnssd_sock_fd = (int(*)(DNSServiceRef))GetProcAddress(dll_handle, "DNSServiceRefSockFD"); dnssd_update_record = (DNSServiceErrorType(*)(DNSServiceRef, DNSRecordRef, DNSServiceFlags, uint16_t, const void *, uint32_t))GetProcAddress(dll_handle, "DNSServiceUpdateRecord"); dnssd_txt_create = (void (*)(TXTRecordRef *, uint16_t, void *))GetProcAddress(dll_handle, "TXTRecordCreate"); dnssd_txt_deallocate = (void (*)(TXTRecordRef *))GetProcAddress(dll_handle, "TXTRecordDeallocate"); dnssd_txt_get_bytes_ptr = (const void *(*)(const TXTRecordRef *))GetProcAddress(dll_handle, "TXTRecordGetBytesPtr"); dnssd_txt_get_count = (uint16_t (*)(uint16_t, const void *))GetProcAddress(dll_handle, "TXTRecordGetCount"); dnssd_txt_get_item_at_index = (DNSServiceErrorType (*)(uint16_t, const void *, uint16_t, uint16_t, char *, uint8_t *, const void **))GetProcAddress(dll_handle, "TXTRecordGetItemAtIndex"); dnssd_txt_get_length = (uint16_t (*)(const TXTRecordRef *))GetProcAddress(dll_handle, "TXTRecordGetLength"); dnssd_txt_get_value_ptr = (const void *(*)(uint16_t, const void *, const char *, uint8_t *))GetProcAddress(dll_handle, "TXTRecordGetValuePtr"); dnssd_txt_set_value = (DNSServiceErrorType (*)(TXTRecordRef *, const char *, uint8_t, const void *))GetProcAddress(dll_handle, "TXTRecordSetValue"); } dnssd_initialized = 1; } _cupsMutexUnlock(&dnssd_mutex); } // DNSServiceAddRecord DNSServiceErrorType DNSSD_API DNSServiceAddRecord ( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_add_record) return (*dnssd_add_record)(sdRef, RecordRef, flags, rrtype, rdlen, rdata, ttl); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceBrowse DNSServiceErrorType DNSSD_API DNSServiceBrowse ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, /* may be NULL */ DNSServiceBrowseReply callBack, void *context /* may be NULL */ ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_browse) return (*dnssd_browse)(sdRef, flags, interfaceIndex, regtype, domain, callBack, context); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceConstructFullName DNSServiceErrorType DNSSD_API DNSServiceConstructFullName ( char * const fullName, const char * const service, /* may be NULL */ const char * const regtype, const char * const domain ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_construct_full_name) return (*dnssd_construct_full_name)(fullName, service, regtype, domain); else return (-1); } // DNSServiceCreateConnection DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(DNSServiceRef *sdRef) { if (!dnssd_initialized) dnssd_init(); if (dnssd_create_connection) return (*dnssd_create_connection)(sdRef); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceProcessResult DNSServiceErrorType DNSSD_API DNSServiceProcessResult(DNSServiceRef sdRef) { if (!dnssd_initialized) dnssd_init(); if (dnssd_process_result) return (*dnssd_process_result)(sdRef); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceQueryRecord DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context /* may be NULL */ ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_query_record) return (*dnssd_query_record)(sdRef, flags, interfaceIndex, fullname, rrtype, rrclass, callBack, context); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceRefDeallocate void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef) { if (!dnssd_initialized) dnssd_init(); if (dnssd_deallocate) (*dnssd_deallocate)(sdRef); } // DNSServiceRefSockFD int DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdRef) { if (!dnssd_initialized) dnssd_init(); if (dnssd_sock_fd) return (*dnssd_sock_fd)(sdRef); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceRegister DNSServiceErrorType DNSSD_API DNSServiceRegister ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, /* may be NULL */ const char *regtype, const char *domain, /* may be NULL */ const char *host, /* may be NULL */ uint16_t port, /* In network byte order */ uint16_t txtLen, const void *txtRecord, /* may be NULL */ DNSServiceRegisterReply callBack, /* may be NULL */ void *context /* may be NULL */ ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_register) return (*dnssd_register)(sdRef, flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, callBack, context); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceRemoveRecord DNSServiceErrorType DNSSD_API DNSServiceRemoveRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_remove_record) return (*dnssd_remove_record)(sdRef, RecordRef, flags); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceResolve DNSServiceErrorType DNSSD_API DNSServiceResolve ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context /* may be NULL */ ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_resolve) return (*dnssd_resolve)(sdRef, flags, interfaceIndex, name, regtype, domain, callBack, context); else return (kDNSServiceErr_ServiceNotRunning); } // DNSServiceUpdateRecord DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, /* may be NULL */ DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_update_record) return (*dnssd_update_record)(sdRef, RecordRef, flags, rdlen, rdata, ttl); else return (kDNSServiceErr_ServiceNotRunning); } // TXTRecordCreate void DNSSD_API TXTRecordCreate( TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_create) (*dnssd_txt_create)(txtRecord, bufferLen, buffer); } // TXTRecordDeallocate void DNSSD_API TXTRecordDeallocate ( TXTRecordRef *txtRecord ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_deallocate) (*dnssd_txt_deallocate)(txtRecord); } // TXTRecordGetBytesPtr const void * DNSSD_API TXTRecordGetBytesPtr ( const TXTRecordRef *txtRecord ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_get_bytes_ptr) return (*dnssd_txt_get_bytes_ptr)(txtRecord); else return (NULL); } // TXTRecordGetLength uint16_t DNSSD_API TXTRecordGetLength ( const TXTRecordRef *txtRecord ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_get_length) return (*dnssd_txt_get_length)(txtRecord); else return (0); } // TXTRecordSetValue DNSServiceErrorType DNSSD_API TXTRecordSetValue ( TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, /* may be zero */ const void *value /* may be NULL */ ) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_set_value) return (*dnssd_txt_set_value)(txtRecord, key, valueSize, value); else return (-1); } // TXTRecordGetCount uint16_t DNSSD_API TXTRecordGetCount( uint16_t txtLen, const void *txtRecord) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_get_count) return (*dnssd_txt_get_count)(txtLen, txtRecord); else return (0); } // TXTRecordGetItemAtIndex DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex( uint16_t txtLen, const void *txtRecord, uint16_t itemIndex, uint16_t keyBufLen, char *key, uint8_t *valueLen, const void **value) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_get_item_at_index) return (*dnssd_txt_get_item_at_index)(txtLen, txtRecord, itemIndex, keyBufLen, key, valueLen, value); else return (-1); } // TXTRecordGetValuePtr const void * DNSSD_API TXTRecordGetValuePtr( uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen) { if (!dnssd_initialized) dnssd_init(); if (dnssd_txt_get_value_ptr) return (*dnssd_txt_get_value_ptr)(txtLen, txtRecord, key, valueLen); else return (NULL); } cups-2.4.7/vcnet/cupstestppd.vcxproj.user0000644000175000017500000000024214502571342020446 0ustar zdohnalzdohnal cups-2.4.7/vcnet/cupstestppd.vcxproj.filters0000644000175000017500000000164714502571342021152 0ustar zdohnalzdohnal {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav Source Files cups-2.4.7/vcnet/cupstestppd.vcxproj0000644000175000017500000001323214502571342017474 0ustar zdohnalzdohnal Debug x64 Release x64 {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F} cupstestppd Win32Proj 10.0 Application v143 v141 v142 Unicode true Application v143 v141 v142 Unicode <_ProjectFileVersion>12.0.30501.0 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ true $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\$(ProjectName)\ false X64 Disabled ..;..\vcnet;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL Level1 ProgramDatabase true Console false MachineX64 X64 ..;..\vcnet;packages\libressl_native.3.7.3\build\native\include;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) MultiThreadedDLL Level1 ProgramDatabase true Console true true false MachineX64 {cb4aa6f2-3e84-45be-b505-95cd375e8be3} false cups-2.4.7/vcnet/cups.sln0000644000175000017500000001260014502571342015167 0ustar zdohnalzdohnalMicrosoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.28010.2036 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcups2", "libcups2.vcxproj", "{CB4AA6F2-3E84-45BE-B505-95CD375E8BE3}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfile", "testfile.vcxproj", "{CE75FC5F-E0CF-45DC-AD27-84666D3FBA30}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testhttp", "testhttp.vcxproj", "{90B0058C-8393-411F-BD3B-E2C831D4E883}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cupstestppd", "cupstestppd.vcxproj", "{6BE0CDD3-4ED7-409C-A80F-19DF73664B1F}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ipptool", "ipptool.vcxproj", "{B246D91E-61F2-4433-BFD2-6C2A96FBD4D4}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "regex", "regex.vcxproj", "{18950A1B-D37A-40C7-B2DF-C12986C0526E}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ippfind", "ippfind.vcxproj", "{B484DA0C-62C8-4C32-83B6-CCEB58968B85}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ippeveprinter", "ippeveprinter.vcxproj", "{82A03BC7-0746-4B85-8908-3C7A3FAA58A9}" ProjectSection(ProjectDependencies) = postProject {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} = {C0899B3A-43E7-4BC3-A785-659E1FD2EA83} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dnssdstub", "dnssdstub.vcxproj", "{C0899B3A-43E7-4BC3-A785-659E1FD2EA83}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3}.Debug|x64.ActiveCfg = Debug|x64 {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3}.Debug|x64.Build.0 = Debug|x64 {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3}.Release|x64.ActiveCfg = Release|x64 {CB4AA6F2-3E84-45BE-B505-95CD375E8BE3}.Release|x64.Build.0 = Release|x64 {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30}.Debug|x64.ActiveCfg = Debug|x64 {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30}.Debug|x64.Build.0 = Debug|x64 {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30}.Release|x64.ActiveCfg = Release|x64 {CE75FC5F-E0CF-45DC-AD27-84666D3FBA30}.Release|x64.Build.0 = Release|x64 {90B0058C-8393-411F-BD3B-E2C831D4E883}.Debug|x64.ActiveCfg = Debug|x64 {90B0058C-8393-411F-BD3B-E2C831D4E883}.Debug|x64.Build.0 = Debug|x64 {90B0058C-8393-411F-BD3B-E2C831D4E883}.Release|x64.ActiveCfg = Release|x64 {90B0058C-8393-411F-BD3B-E2C831D4E883}.Release|x64.Build.0 = Release|x64 {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F}.Debug|x64.ActiveCfg = Debug|x64 {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F}.Debug|x64.Build.0 = Debug|x64 {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F}.Release|x64.ActiveCfg = Release|x64 {6BE0CDD3-4ED7-409C-A80F-19DF73664B1F}.Release|x64.Build.0 = Release|x64 {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4}.Debug|x64.ActiveCfg = Debug|x64 {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4}.Debug|x64.Build.0 = Debug|x64 {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4}.Release|x64.ActiveCfg = Release|x64 {B246D91E-61F2-4433-BFD2-6C2A96FBD4D4}.Release|x64.Build.0 = Release|x64 {18950A1B-D37A-40C7-B2DF-C12986C0526E}.Debug|x64.ActiveCfg = Debug|x64 {18950A1B-D37A-40C7-B2DF-C12986C0526E}.Debug|x64.Build.0 = Debug|x64 {18950A1B-D37A-40C7-B2DF-C12986C0526E}.Release|x64.ActiveCfg = Release|x64 {18950A1B-D37A-40C7-B2DF-C12986C0526E}.Release|x64.Build.0 = Release|x64 {B484DA0C-62C8-4C32-83B6-CCEB58968B85}.Debug|x64.ActiveCfg = Debug|x64 {B484DA0C-62C8-4C32-83B6-CCEB58968B85}.Debug|x64.Build.0 = Debug|x64 {B484DA0C-62C8-4C32-83B6-CCEB58968B85}.Release|x64.ActiveCfg = Release|x64 {B484DA0C-62C8-4C32-83B6-CCEB58968B85}.Release|x64.Build.0 = Release|x64 {82A03BC7-0746-4B85-8908-3C7A3FAA58A9}.Debug|x64.ActiveCfg = Debug|x64 {82A03BC7-0746-4B85-8908-3C7A3FAA58A9}.Debug|x64.Build.0 = Debug|x64 {82A03BC7-0746-4B85-8908-3C7A3FAA58A9}.Release|x64.ActiveCfg = Release|x64 {82A03BC7-0746-4B85-8908-3C7A3FAA58A9}.Release|x64.Build.0 = Release|x64 {C0899B3A-43E7-4BC3-A785-659E1FD2EA83}.Debug|x64.ActiveCfg = Debug|x64 {C0899B3A-43E7-4BC3-A785-659E1FD2EA83}.Debug|x64.Build.0 = Debug|x64 {C0899B3A-43E7-4BC3-A785-659E1FD2EA83}.Release|x64.ActiveCfg = Release|x64 {C0899B3A-43E7-4BC3-A785-659E1FD2EA83}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {32935B57-C6C7-4226-8BEE-63542B7B793F} EndGlobalSection EndGlobal cups-2.4.7/vcnet/config.h0000644000175000017500000002664514502571342015133 0ustar zdohnalzdohnal/* * Configuration file for CUPS on Windows. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_CONFIG_H_ #define _CUPS_CONFIG_H_ /* * Include necessary headers... */ #include #include #include #include #include #include /* * Microsoft renames the POSIX functions to _name, and introduces * a broken compatibility layer using the original names. As a result, * random crashes can occur when, for example, strdup() allocates memory * from a different heap than used by malloc() and free(). * * To avoid moronic problems like this, we #define the POSIX function * names to the corresponding non-standard Microsoft names. */ #define access _access #define close _close #define fileno _fileno #define lseek _lseek #define mkdir(d,p) _mkdir(d) #define open _open #define read _read #define rmdir _rmdir #define snprintf _snprintf #define strdup _strdup #define unlink _unlink #define vsnprintf _vsnprintf #define write _write /* * Microsoft "safe" functions use a different argument order than POSIX... */ #define gmtime_r(t,tm) gmtime_s(tm,t) #define localtime_r(t,tm) localtime_s(tm,t) /* * Map the POSIX strcasecmp() and strncasecmp() functions to the Win32 * _stricmp() and _strnicmp() functions... */ #define strcasecmp _stricmp #define strncasecmp _strnicmp /* * Map the POSIX sleep() and usleep() functions to the Win32 Sleep() function... */ typedef unsigned long useconds_t; #define sleep(X) Sleep(1000 * (X)) #define usleep(X) Sleep((X)/1000) /* * Map various parameters to Posix style system calls */ # define F_OK 00 # define W_OK 02 # define R_OK 04 # define O_RDONLY _O_RDONLY # define O_WRONLY _O_WRONLY # define O_CREAT _O_CREAT # define O_TRUNC _O_TRUNC /* * Compiler stuff... */ #undef const #undef __CHAR_UNSIGNED__ /* * Version of software... */ #define CUPS_SVERSION "CUPS v2.4.7" #define CUPS_MINIMAL "CUPS/2.4.7" /* * Default user and groups... */ #define CUPS_DEFAULT_USER "" #define CUPS_DEFAULT_GROUP "" #define CUPS_DEFAULT_SYSTEM_GROUPS "" #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "" #define CUPS_DEFAULT_SYSTEM_AUTHKEY "" /* * Default file permissions... */ #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644 #define CUPS_DEFAULT_LOG_FILE_PERM 0644 /* * Default logging settings... */ #define CUPS_DEFAULT_LOG_LEVEL "warn" #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "none" #define CUPS_DEFAULT_MAX_LOG_SIZE "1m" /* * Default fatal error settings... */ #define CUPS_DEFAULT_FATAL_ERRORS "config" /* * Default browsing settings... */ #define CUPS_DEFAULT_BROWSING 1 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "dnssd" #define CUPS_DEFAULT_DEFAULT_SHARED 1 /* * Default IPP port... */ #define CUPS_DEFAULT_IPP_PORT 631 /* * Default printcap file... */ #define CUPS_DEFAULT_PRINTCAP "" /* * Default ErrorPolicy value... */ #define CUPS_DEFAULT_ERROR_POLICY "stop-printer" /* * Default MaxCopies value... */ #define CUPS_DEFAULT_MAX_COPIES 9999 /* * Default SyncOnClose value... */ /* #undef CUPS_DEFAULT_SYNC_ON_CLOSE */ /* * Do we have domain socket support, and if so what is the default one? */ #undef CUPS_DEFAULT_DOMAINSOCKET /* * Default WebInterface value... */ #define CUPS_DEFAULT_WEBIF 0 /* * Where are files stored? * * Note: These are defaults, which can be overridden by environment * variables at run-time... */ #define CUPS_BINDIR "C:/CUPS/bin" #define CUPS_CACHEDIR "C:/CUPS/cache" #define CUPS_DATADIR "C:/CUPS/share" #define CUPS_DOCROOT "C:/CUPS/share/doc" #define CUPS_LOCALEDIR "C:/CUPS/locale" #define CUPS_LOGDIR "C:/CUPS/logs" #define CUPS_REQUESTS "C:/CUPS/spool" #define CUPS_SBINDIR "C:/CUPS/sbin" #define CUPS_SERVERBIN "C:/CUPS/lib" #define CUPS_SERVERROOT "C:/CUPS/etc" #define CUPS_STATEDIR "C:/CUPS/run" /* * Do we have posix_spawn? */ /* #undef HAVE_POSIX_SPAWN */ /* * Do we have ZLIB? */ #define HAVE_LIBZ 1 #define HAVE_INFLATECOPY 1 /* * Do we have PAM stuff? */ #define HAVE_LIBPAM 0 /* #undef HAVE_PAM_PAM_APPL_H */ /* #undef HAVE_PAM_SET_ITEM */ /* #undef HAVE_PAM_SETCRED */ /* * Do we have ? */ /* #undef HAVE_SHADOW_H */ /* * Do we have ? */ /* #undef HAVE_CRYPT_H */ /* * Use ? */ /* #undef HAVE_STDINT_H */ /* * Use , , and/or ? */ #define HAVE_STRING_H 1 /* #undef HAVE_STRINGS_H */ /* #undef HAVE_BSTRING_H */ /* * Do we have the long long type? */ /* #undef HAVE_LONG_LONG */ #ifdef HAVE_LONG_LONG # define CUPS_LLFMT "%lld" # define CUPS_LLCAST (long long) #else # define CUPS_LLFMT "%ld" # define CUPS_LLCAST (long) #endif /* HAVE_LONG_LONG */ /* * Do we have the strtoll() function? */ /* #undef HAVE_STRTOLL */ #ifndef HAVE_STRTOLL # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) #endif /* !HAVE_STRTOLL */ /* * Do we have the strXXX() functions? */ #define HAVE_STRDUP 1 /* #undef HAVE_STRLCAT */ /* #undef HAVE_STRLCPY */ /* * Do we have the geteuid() function? */ /* #undef HAVE_GETEUID */ /* * Do we have the setpgid() function? */ /* #undef HAVE_SETPGID */ /* * Do we have the vsyslog() function? */ /* #undef HAVE_VSYSLOG */ /* * Do we have the systemd journal functions? */ /* #undef HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Do we have the (v)snprintf() functions? */ #define HAVE_SNPRINTF 1 #define HAVE_VSNPRINTF 1 /* * What signal functions to use? */ /* #undef HAVE_SIGSET */ /* #undef HAVE_SIGACTION */ /* * What wait functions to use? */ /* #undef HAVE_WAITPID */ /* #undef HAVE_WAIT3 */ /* * Do we have the mallinfo function and malloc.h? */ /* #undef HAVE_MALLINFO */ /* #undef HAVE_MALLOC_H */ /* * Do we have the POSIX ACL functions? */ /* #undef HAVE_ACL_INIT */ /* * Do we have the langinfo.h header file? */ /* #undef HAVE_LANGINFO_H */ /* * Which encryption libraries do we have? */ #define HAVE_TLS 1 /* #undef HAVE_CDSASSL */ #define HAVE_OPENSSL 1 /* #undef HAVE_GNUTLS */ /* #undef HAVE_SSPISSL */ /* * Do we have the gnutls_transport_set_pull_timeout_function function? */ /* #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION */ /* * Do we have the gnutls_priority_set_direct function? */ /* #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT */ /* * What Security framework headers do we have? */ /* #undef HAVE_AUTHORIZATION_H */ /* #undef HAVE_SECCERTIFICATE_H */ /* #undef HAVE_SECITEM_H */ /* #undef HAVE_SECPOLICY_H */ /* * Do we have the SecGenerateSelfSignedCertificate function? */ /* #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE */ /* * Do we have libpaper? */ /* #undef HAVE_LIBPAPER */ /* * Do we have DNS Service Discovery (aka Bonjour) support? */ #define HAVE_DNSSD 1 /* * Do we have mDNSResponder for DNS-SD? */ #define HAVE_MDNSRESPONDER 1 /* * Do we have Avahi for DNS-SD? */ /* #undef HAVE_AVAHI */ /* * Do we have ? */ /* #undef HAVE_SYS_IOCTL_H */ /* * Does the "stat" structure contain the "st_gen" member? */ /* #undef HAVE_ST_GEN */ /* * Does the "tm" structure contain the "tm_gmtoff" member? */ /* #undef HAVE_TM_GMTOFF */ /* * Do we have rresvport_af()? */ /* #undef HAVE_RRESVPORT_AF */ /* * Do we have getaddrinfo()? */ #define HAVE_GETADDRINFO 1 /* * Do we have getnameinfo()? */ #define HAVE_GETNAMEINFO 1 /* * Do we have getifaddrs()? */ /* #undef HAVE_GETIFADDRS */ /* * Do we have hstrerror()? */ /* #undef HAVE_HSTRERROR */ /* * Do we have res_init()? */ /* #undef HAVE_RES_INIT */ /* * Do we have */ /* #undef HAVE_RESOLV_H */ /* * Do we have the header file? */ /* #undef HAVE_SYS_SOCKIO_H */ /* * Does the sockaddr structure contain an sa_len parameter? */ /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */ /* * Do we have pthread support? */ /* #undef HAVE_PTHREAD_H */ /* * Do we have on-demand support (launchd/systemd/upstart)? */ /* #undef HAVE_ONDEMAND */ /* * Do we have launchd support? */ /* #undef HAVE_LAUNCH_H */ /* #undef HAVE_LAUNCHD */ /* * Do we have systemd support? */ /* #undef HAVE_SYSTEMD */ /* * Do we have upstart support? */ /* #undef HAVE_UPSTART */ /* * Do we have CoreFoundation public headers? */ /* #undef HAVE_COREFOUNDATION_H */ /* * Do we have ApplicationServices public headers? */ /* #undef HAVE_APPLICATIONSERVICES_H */ /* * Do we have the SCDynamicStoreCopyComputerName function? */ /* #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME */ /* * Do we have the getgrouplist() function? */ #undef HAVE_GETGROUPLIST /* * Do we have macOS 10.4's mbr_XXX functions? */ /* #undef HAVE_MEMBERSHIP_H */ /* #undef HAVE_MBR_UID_TO_UUID */ /* * Do we have Darwin's notify_post header and function? */ /* #undef HAVE_NOTIFY_H */ /* #undef HAVE_NOTIFY_POST */ /* * Do we have DBUS? */ /* #undef HAVE_DBUS */ /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */ /* #undef HAVE_DBUS_THREADS_INIT */ /* * Do we have the GSSAPI support library (for Kerberos support)? */ /* #undef HAVE_GSS_ACQUIRE_CRED_EX_F */ /* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */ /* #undef HAVE_GSS_GSSAPI_H */ /* #undef HAVE_GSS_GSSAPI_SPI_H */ /* #undef HAVE_GSSAPI */ /* #undef HAVE_GSSAPI_GSSAPI_H */ /* #undef HAVE_GSSAPI_H */ /* * Default GSS service name... */ #define CUPS_DEFAULT_GSSSERVICENAME "host" /* * Select/poll interfaces... */ /* #undef HAVE_POLL */ /* #undef HAVE_EPOLL */ /* #undef HAVE_KQUEUE */ /* * Do we have the header? */ /* #undef HAVE_DLFCN_H */ /* * Do we have ? */ /* #undef HAVE_SYS_PARAM_H */ /* * Do we have ? */ /* #undef HAVE_SYS_UCRED_H */ /* * Do we have removefile()? */ /* #undef HAVE_REMOVEFILE */ /* * Do we have ? */ /* #undef HAVE_SANDBOX_H */ /* * Which random number generator function to use... */ /* #undef HAVE_ARC4RANDOM */ /* #undef HAVE_RANDOM */ /* #undef HAVE_LRAND48 */ #ifdef HAVE_ARC4RANDOM # define CUPS_RAND() arc4random() # define CUPS_SRAND(v) #elif defined(HAVE_RANDOM) # define CUPS_RAND() random() # define CUPS_SRAND(v) srandom(v) #elif defined(HAVE_LRAND48) # define CUPS_RAND() lrand48() # define CUPS_SRAND(v) srand48(v) #else # define CUPS_RAND() rand() # define CUPS_SRAND(v) srand(v) #endif /* HAVE_ARC4RANDOM */ /* * Do we have libusb? */ /* #undef HAVE_LIBUSB */ /* * Do we have libwrap and tcpd.h? */ /* #undef HAVE_TCPD_H */ /* * Do we have ? */ /* #undef HAVE_ICONV_H */ /* * Do we have statfs or statvfs and one of the corresponding headers? */ /* #undef HAVE_STATFS */ /* #undef HAVE_STATVFS */ /* #undef HAVE_SYS_MOUNT_H */ /* #undef HAVE_SYS_STATFS_H */ /* #undef HAVE_SYS_STATVFS_H */ /* #undef HAVE_SYS_VFS_H */ /* * Location of macOS localization bundle, if any. */ /* #undef CUPS_BUNDLEDIR */ /* * Do we have XPC? */ /* #undef HAVE_XPC */ /* * Do we have the C99 abs() function? */ /* #undef HAVE_ABS */ #if !defined(HAVE_ABS) && !defined(abs) # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L # define abs(x) _cups_abs(x) static inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # elif defined(_MSC_VER) # define abs(x) _cups_abs(x) static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # else # define abs(x) ((x) < 0 ? -(x) : (x)) # endif /* __GNUC__ || __STDC_VERSION__ */ #endif /* !HAVE_ABS && !abs */ #endif /* !_CUPS_CONFIG_H_ */ cups-2.4.7/vcnet/README.txt0000644000175000017500000000041714502571342015200 0ustar zdohnalzdohnalREADME - CUPS on Windows - 2019-05-15 ===================================== This directory contains Visual Studio 2017 project and solution files for building the CUPS library and cupstestppd, ippeveprinter, ippfind, ipptool, testfile, and testhttp programs on Windows. cups-2.4.7/tools/0000755000175000017500000000000014502571342013521 5ustar zdohnalzdohnalcups-2.4.7/tools/printer.png0000644000175000017500000001575314502571342015725 0ustar zdohnalzdohnalPNG  IHDR>aiCCPkCGColorSpaceGenericRGB8U]hU>sg#$Sl4t? % V46nI6"dΘ83OEP|1Ŀ (>/ % (>P苦;3ie|{g蹪X-2s=+WQ+]L6O w[C{_F qb Uvz?Zb1@/zcs>~if,ӈUSjF 1_Mjbuݠpamhmçϙ>a\+5%QKFkm}ۖ?ޚD\!~6,-7SثŜvķ5Z;[rmS5{yDyH}r9|-ăFAJjI.[/]mK 7KRDrYQO-Q||6 (0 MXd(@h2_f<:”_δ*d>e\c?~,7?& ك^2Iq2"y@g|U\ 8eXIfMM*ikF&MbiTXtXML:com.adobe.xmp Michael Sweet Copyright 2010 Apple Inc. New Image New Image PdIDATxU5^U ({*("舍ς4 (XAqd. Vͷwkܗ'ݒwo?''IRR"(jQYZb򡩇%u]YIPPi-j2ɲ4k[2-O' _ *R|/ AjRU{|M7+l5Pl_*UAYI][Aѣ袋O<* ueСO>_w~̙|߾}՟ϟTN)͛ҥ?W_}UxꨣUO?mKuN;Mwq>O3x`=\h:?g ?^]y啪\]|Pݻa6B< lI[^{-eW]uU矯ՀjkpkI@pvmCzt98?k oI$+Q馛_^hBgfvkeeejɒ%4YgL?k;܇~VXa}CU&LPO>} 70?K/\1cFpO\sMe^{mh$@4iRAu]4 '~| _׎裏Gy| :tWZipAZAC6HW\J)Sh-` {WRv76y .Azzd#]ˮ ?a~w!}h!@XpXoIU(o*aaѢE7hJ5asN;xxxx,5k8p4hP1w< O<|O<#$u'@ĐN,<x\I&l{O{Ie]VaR'@!y\ǯJL%|S= %p`9UϞ=fϞj?E~eNdI2whnc 칃Q<>El&3D{K cL@!Tlkp (SvmA ,gNdI,;43ƍ }$wXٸ6@9q'3ΰn38GHELDDwhgX*(p| 9qwkϔΉ1) 916оw3Y;1 9׬&B&s"q6&0Ym̉l=̊ z~;0:x х{'fN׮] 7ܠg2}t=+ μ$9+N.d3ĝd:u"tq[j;V L3(-^8{J{kTApu՛~5'ΜȨߓ7 +Oi7,<nz>*?s51d51'2@~=cHXO/(&,0jԨ`2W`́KuرAO(b/'@ @ӡB& =fL}O7IAU18fTOVݺuӂad~:b07{M?0»k6@&'0&q@* Y; K6P>ͨ|  XN"xVBCl֍N@VD裏KORT=u˖-u/g-R 0j/ 't~'ȇMT8g, c9nIX"?XԽ)x"S 믿{,R=q g q%Hh[ƾ[ &|!^=!C$#=t<3?v# ڀ@!-mvckrH󓒏M#BEߍpΣ8'V5*ob,$c%4`u4!G>2PHPE#x[4F59.yLl<'U "-@$*`F GT?h KgM>GqDP#x1PhBԻ@l E,ybĤG܇!b1HQ0V%6o#q@QHYf1bA7}'Tma6z)el |]k`?7}%{&̣ʄ9XhH%pJQzJ=a¶H(\Kw`G/=Cϕm@yI:mL0#yLqg6€׏Ta]"pW ɼm}ۼگՙaרrLQ{ܶ}w.G83~Q?a4o*ۭv鹓 ZSGxuauqhy壦K &q!&LEWnN0_|L6'+o|AUojZ\sjѪ aU] G`,\  ׈]{=K/L& A[6̵F3M Yb8(ߏ-|fڥ\m.!$ = +.h ZA\M@k[mUm3<JWi{$n| < [.{Df7c P6 Pk'@B u&'@a00{  LE\w !< %6I P$[$'5ɣ,%hcT%ކ'@  gO l0Y1 pt'@Ba '@ \.o h{$Ё)tV u=g3rbOBo ] ͍'@*> La7 Ϛ5+Bo|7 0M!{(VWW뵂Y?Ţ eG8E + 2D;Vl_?$]g~チ k${Q.]ԠAݓ'OֻQ,l>lg}YV0)szkO4I\6d?v !v c,ĖnPϋYP-sjꡇ%j-PQ6KRmž|0P[zBGJ;mv*ݻ۷;lܸqzE46%?= 6njƌI1bգG_P͚5k+(ys.eʔ)zG9s ƮT8rܹzKGyD 6LOUVV o"e%N=T]S M<69s<cjPjȅ )C^ _e7$SJ{aG>a-ӧkyģSH*!@v_1T)3fblRٙ<V%P{" lyc¯(I4"C¢В Aia2ɲ$nk"Vuո}hraIdWJ ϲW-IENDB`cups-2.4.7/tools/printer.opacity0000644000175000017500000012217714502571342016610 0ustar zdohnalzdohnalbplist00 X$versionY$archiverT$topX$objects_NSKeyedArchiver Troot gstuvw{|N  %()01ABCDEFGHPTY^Efahpz #=@CHMRSTUVWX[]ejz !"#';@EJKLMNOPU_l     %*/456789:?LRSfkpuvwxyz{"#$%&'(-@MYeq}$%&'()*/:FR^fghijklmnopqrz !"#$%&'()*+,-5DEX[^chmnopqrsw#()*+,-.2FKPUVWXYZ[`kw           ' 3 ? K S T U V W X Y Z [ \ ] ^ _ g w {    " # $ % & ' ( - : ; A P T Y l o r w |    % & ' ( ) * + 0 = C D W \ a f g h i j k l p        " ( ) < A F K L M N O P Q U i n s x y z { | } ~    ! $ ) . 3 4 5 6 7 8 9 = Q T Y ^ c d e f g h i n o x  +,45:DEFGKPXY^akorwz$%&8HIJKLMNRVZ`=abfijkz{ !"#$%>+/CDEFGHIJKLMRdefghijkuvw~@U$null0  !"#$%&'()*+,-./0123456789:;<=>?@ABCCEFG>>HIJKLM>NOPQESCUVWXNEZ[\]^G`abcCG^f@WpolySidWpixDTypSbmPUresUnTsecCUcolSpUoBgImSparVnPaStrWactLaysUsnShsWpenTTypSmodTzoomTallRVsavStDTmetaVspiDecVgenNamUorTypVpixRadTfrasUimSizUbgColVnPaFilV$classVactTraVsavPrDTtarsVcurFraSenVVlineThVautoBTUshLayXrectCRadUresiMTcurRWspiSegsTtrasWfilSensUmainCVtraTrgVcurObjVguiLinTvarsVlasModWpolyStaUbgTypxI2 ,#? #@Tw#?uv ƀ. s#$ #@IZtŀhi&jnrWNS.keysZNS.objectsklmopq \kMDItemTitle^kMDItemAuthors_kMDItemCopyrightYNew Imagei&xzy ]Michael Sweet}~Z$classnameX$classesWNSArrayWNSArrayXNSObject_Copyright 2010 Apple Inc.}~_NSMutableDictionary\NSDictionaryXNSObjecti&z]  & SresSdel#?}~\PCResolution\PCResolutionXPCObjectXNSObject& #?& N & #?& #@i&zW & FTlaysUanimTUlAcLs#?,-hi&rklmoq i&zy i&zЀ &E>>fEfWSexpUblendWmaskTypUedMskSnamWmaskLaySvisTisShTopac   !#@Y&CGUalConTobjshi&r &N}~_PCBitmapContext_PCBitmapContextZPCDrawableXPCObjectXNSObjecti&z }~]PCNormalLayer]PCNormalLayerWPCLayerZPCDrawableXPCObjectXNSObjectWPrinteri& z  ": &f>>fESfil9&'# &C G"$hi& "r#% &N#]Shadow Effect&*+, ./TfilNTatts8"()_PCShadowEffectFilterhi&29r345678*+,-./:;<:>?015067 [inputOffsetZinputColorZinputAngleYinputBlur_inputClipShadow_inputHideOriginal#@IJK&LMBOUNSRGB\NSColorSpace_NSCustomColorSpaceJ0 0 0 0.524Q&RSTNSID3}~UV\NSColorSpaceWX\NSColorSpaceXNSObject}~Z[WNSColor\]WNSColorXNSObject#V }~bcXPCFilterdefgXPCFilterZPCDrawableXPCObjectXNSObject}~ij]PCFilterLayerklmno]PCFilterLayerWPCLayerZPCDrawableXPCObjectXNSObject&>>frsEuwf>; ?A&C }G:<hi&r= &sN;WPrinterhi&r@ & N:i&zB'Vځ2 &fME[Ef[ E[fTrectSisIVcomTypWfilPropSshXTantiSflVTvecsUstrosSshYUalPixSangSflHC D iX: _{{0, 0}, {0, 0}}&f>>C>>EVrelLP2SblHWgradAngUradGCTfilTWrelRadCVfilPosSaEqStypXrelLinP1VfilColVrelLP1UfilImVothColXrelLinP2SgEqUfilGrSrEqXgradStopUpgNumSbEqQ#@ MNWVPEOFBRTSGU IJ&MOF0 0 04IJ&MOL0.6 0.6 0.64i&HKL&C[AValtColSlocScolDIJJ&@OWNSWhiteB14}~^PCGradientStop^PCGradientStopZPCDrawableXPCObjectXNSObject&CDFJ}~  ^NSMutableArray   WNSArrayXNSObjectV{0, 0}V{0, 0}_{0, -0.38275384010550079}_{0, -0.59095584796146183}_{0, -0.38275384010550079}_{0, -0.59095584796146183}Q0QtW100 - tS100}~_PCDrawVectorProperties_PCDrawVectorPropertiesZPCDrawableXPCObjectXNSObjecti& !YL$&%&'()f+,>-.>0C23>E6N>a:>@OB04IJ&AMOL0.4 0.4 0.44i&DEF]^L&C![aYZJ&C!3Y[JV{0, 0}V{0, 0}_{0, -0.38275384010550079}_{0, -0.59095584796146183}_{0, -0.38275384010550079}_{0, -0.59095584796146183}i&YzZ[fg }~^__PCStrokeVectorProperties`abcd_PCStrokeVectorProperties_PCDrawVectorPropertiesZPCDrawableXPCObjectXNSObjecti&fzghj klm&nofEr[Efuv[E[fUdimLKVcornRXVcornRYkn o yB hi&{}r|l~m ]cornerRadiusX]cornerRadiusY_5{{19.002601226657074, 14.001547070515279}, {100, 64}}&fM>ACg>MfwstWVvIuFjxTSpUi&qrL&Cr[AoIJ&CroFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zL$&%&'(f,>.>C3g>EN>aM€~hV[j TZS{Ui&ƀ|}L&C[azZJ&C3z[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zZ[fg }~\PCRectVector\PCRectVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObjectklm&fE[Ef[[u[E[f B hi&r|l~m _4{{47.002601226657077, 64.501547070515272}, {76, 14}}&f,M>ACh> MfWVIFTSUi&L&C[AIJ&CFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&$%L$&%&'((f*,>+.>.C03h>E4N>a8M:hV[ TZSUi&<=>L&C%[aZJ&C%3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&QzZ[fg }~VW_PCPathGroupVectorXYZ[\]^_PCPathGroupVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObject&fMEc[Effh[ E[fC : &mfo>p>stuCy>|>}EWVFTS IJ&MOO'0.1897665858 0.1897609085 0.18976412714i&L&Cc[AIJ&CcFJV{0, 0}V{0, 0}_{0, -0.3827538401055009}_{0, -0.59095584796146183}_{0, -0.3827538401055009}_{0, -0.59095584796146183}W100 - ti&L$&%&'(f,>.>C3>EN>a>}hV[ TZSi&L&C[aZJ&C3[JV{0, 0}V{0, 0}_{0, -0.3827538401055009}_{0, -0.59095584796146183}_{0, -0.3827538401055009}_{0, -0.59095584796146183}i&zZ[fg i&z̀Հ klm&fE[Efu[E[f ɀ hi&rހ ]cornerRadiusX]cornerRadiusY_{{8, 9}, {100, 64}}&fM>AC>M}fÀĀWVƀIŀFȀTSi&€L&C[AIJ&CFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&ʀL$&%&'(f,>.>C3>EN>a"M}$΀πhVрЀ[ ӀTZSˀi&&'(̀̀L&C[aʀZJ&C3ʀ[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&;zZ[fg klm&@AfED[Ef[[uH[E[fր † hi&MOrހ _{{36, 59.5}, {76, 14}}&Tf,VMW>ZA\C`>cM}f܀݀WV߀IހFՀTSـi&ghiڀۀL&CD[A؀IJ&CD؀FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&|}L$&%&'(f,>.>C3>EN>aM}hV[ TZS䀬i&L&C}[aZJ&C}3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zZ[fg &fE[Ef[ E[fVfConPtVconPtsVlConPt % &: _{{101, 9}, {18, 56}}&f,M>>C>M}EWVTS IJ&MOO$0.192297894 0.192297894 0.1922978944IJ&MOO'0.2923743207 0.2923743207 0.29237432074i&݀L&C[JIJ&MOO*0.01031759511 0.01031759511 0.010317595114&CJ&C#@;+ \JIJ&MOO'0.2265200408 0.2265200408 0.22652004084V{0, 0}V{0, 0}_{17, -28.000000000000004}_{94.444444444444443, -50}_{0, 28.000000000000018}_{0, 50.000000000000028}i&L$&%&'(f,>.>C3>E N>aM}hV[  TZS i&L&C[aZJ&C3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&)zZ[fg ./012345&fEf:;f=>?>YhasConPt1VcPLinkUisCloRptTnextYhasConPt2VconPt1VconPt2 " #$35&A14./20fC?FMGfEKfTprev!    35&A14./20fO?;RMSfEWf  35&A14./20f[?K^M_fEcf  35&A14./20fg?WjMkfEof 35&A14./20fs?cvMwfEf .0/&3AfMEE?fo }~]PCCustomPoint]PCCustomPointZPCDrawableXPCObjectXNSObjectY{108, 16}Y{108, 16}Y{108, 16}Y{108, 59}Y{108, 59}Y{108, 59}Y{119, 65}Y{119, 65}Y{119, 65}Y{119, 19}Y{119, 19}Y{119, 19}Y{114, 14}Y{114, 14}Y{114, 14}X{101, 9}X{101, 9}X{101, 9}i&;KWco   L}~^PCCustomVector^PCCustomVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObject&fE[Ef[ E[f(DU ) &H8: _{{35, 59}, {84, 6}}&f,M>>C>M}E623WV5*4F'7TS+ IJ&MOO'0.1790293818 0.1790293818 0.17902938184i&܁,.0L&C[)-JIJ&MOO'0.2920346467 0.2920346467 0.29203464674&C)/JIJ&MOO'0.3288255774 0.3288255774 0.32882557744&C)#@GS1JIJ&MOO'0.2026154891 0.2026154891 0.20261548914V{0, 0}V{0, 0}_{0, -3.0000000000000071}_{0, -50.000000000000121}_{0, 3.0000000000000142}_{0, 50.000000000000242}i&9L$&%&'(f,>.>C 3>EN>aM}A=>hV@?[' BTZS:Ci&; 'REST35&A14./20f<??M@fEDfQDOP 'F35&A14./20fH?5KMLfEPfNELM 'G35&A14./20fT?DWMXfEfKFIJ 'H.0/&3AfMEE?fP ' GX{48, 65}X{48, 65}X{48, 65}Y{119, 65}Y{119, 65}Y{119, 65}Y{108, 59}Y{108, 59}Y{108, 59}X{35, 59}X{35, 59}X{35, 59}i&s5DPDEFGHL&{|f~E[Ef[ E[fWp X &td: _{{36, 59}, {11, 19}}&f,M>C>M}Eb^_WVaY`ZVcTS[ IJ&MOO'0.2802522079 0.2802522079 0.28025220794IJ&MOO'0.3288680367 0.3288680367 0.32886803674i&\]L&C[AXIJ&CXFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&eL$&%&'(f,>.>C3>EN>aM}ρmijhVlk[V nTZSfoi&ӁghL&C[aeZJ&C3e[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zZ[fg ./012345&fEff?> V~q35&A14./20f?|MfEf}p{| Vr35&A14./20f?MfE fzqxy Vs35&A14./20f?MfEfwruv Vt.0/&3AfMEE?f  V sX{47, 78}X{47, 78}X{47, 78}X{36, 72}X{36, 72}X{36, 72}X{36, 59}X{36, 59}X{36, 59}X{47, 65}X{47, 65}X{47, 65}i&.| pqrstL&67f9E;[Ef?@[ E[f  &: _{{13, 72}, {34, 7}}&Ff,HMI>LMNCPR>UM}EWVTS IJ&YMOO'0.3420940897 0.3420940897 0.34209408974IJ&\MOO'0.2653277853 0.2653277853 0.26532778534i&_`aL&C;[AIJ&C;FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&tuL$&%&'(xfz,>{.>~C3>EN>aM}hV[ TZSi&L&Cu[aZJ&Cu3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zZ[fg ./012345&fEff?> 35&A14./20f?7MfEf 35&A14./20f?MfEf 35&A14./20f?MfE?f .0/&3AfMEE?f  X{35, 72}X{35, 72}X{35, 72}X{47, 78}X{47, 78}X{47, 78}X{28, 79}X{28, 79}X{28, 79}X{13, 72}X{13, 72}X{13, 72}i&7?L&fE[Ef[ E[f  &́: _{{37.5, 62.5}, {41, 7}}&f,M> C  >M}EWVTS IJ&MOO'0.2359459918 0.2359459918 0.23594599184IJ&MOO*0.06109884511 0.06109884511 0.061098845114i&L&C[AIJ&CFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&/0L$&%&'(3f5,>6.>9C;3>f?N>aCM}E€hVĀÀ[ƀTZSi&GHIL&C0[aZJ&C03[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&\zZ[fg ./012345&fEfeffhi?> ցׁ؁35&A14./20fm?pMqfEufՁȁӁ 35&A14./20fy?f|M}fEfҁɁЁ 35&A14./20f?uMfEfρʁ́ .0/&3AfMEE?f  \{46.5, 66.5}\{46.5, 66.5}\{46.5, 66.5}\{78.5, 69.5}\{78.5, 69.5}\{78.5, 69.5}\{70.5, 65.5}\{70.5, 65.5}\{70.5, 65.5}\{37.5, 62.5}\{37.5, 62.5}\{37.5, 62.5}i&fuȁɁʁˁ̀L&fE[Ef[ E[fہ  &: _{{37, 62}, {9, 12}}&fM>C>M}E#@^WV݁ށځTS߀ IJ&MOO*0.04050611413 0.04050611413 0.040506114134IJ&MOO'0.2160962976 0.2160962976 0.21609629764i&؁L&C[A܀IJ&C܀FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&L$&%&'(f,>.>C3>EN>aM} hV[ TZSꀬi&   L&C[aZJ&C3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& zZ[fg ./012345&fEf ! "f $ %?> ځ35&A14./20f )? ,M -fE 1f ځ35&A14./20f 5? " 8M 9fE =f ځ35&A14./20f A? 1 DM EfEf ځ.0/&3AfMEE?f =  X{46, 74}X{46, 74}X{46, 74}X{46, 67}X{46, 67}X{46, 67}X{37, 62}X{37, 62}X{37, 62}\{37.5, 69.5}\{37.5, 69.5}\{37.5, 69.5}i& ` " 1 =L h i&f lEC[Ef q r s[ E[fSpt1Spt2C : i& x yL$&%&'( |f ~,> .> C 3>f N>  M}  hV[T S IJ& MOO'0.1716202446 0.1716202446 0.17162024464i&    L&C y[aZJ&C y3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& zZ[fg W{9, 28}Y{108, 28}}~ \PCLineVector \PCLineVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObjectklm& fE Efu [ E[f #& &: hi& rހ _{{15, 42}, {87, 13}}& f, M > C  > M}E$ !WV#"%TS IJ& MOJ0 0 0 0.24IJ& MOK0 0 0 0.194i&  L&C [AIJ&C FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&  'L$&%&'( f ,> .> C 3>E N>a M} /+,hV.-[ 0TZS(1i&   )*L&C [a'ZJ&C 3'[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& )zZ[fg & . /fE[E 3f 5[ E 8[fVorBnds3 4: _T{{12.000000000000002, 44.249136083608384}, {90.543616808306169, 11.503086363086119}}i& <z = > ?5Ӏ  B& CfME G[Ef J L[E[fVpreTKV6C 8 QE2  Q& R SWNS.dataO streamtyped@7}~ U V]NSMutableData U W XVNSDataXNSObject& Zf, \M ]> ` a bC d = f> i> jEB>?WVA9@:5CTS;D IJ& mMOJ0 0 0 0.54IJ& pMOK0 0 0 0.754i& s t u<=L&C G[A8IJ&C G8FJV{0, 0}V{0, 0}_{0, 5.1463130614683354}_{0, 44.738541457734918}_{0, 5.1463130614683354}_{0, 44.738541457734918}W100 - ti&  FL$&%&'( f ,> .> C 3 =>E N>a > j NJKhVML[5 OTZSGDPi&  HIL&C [aFZJ&C 3F[JV{0, 0}V{0, 0}_{0, 5.1463130614683354}_{0, 44.738541457734918}_{0, 5.1463130614683354}_{0, 44.738541457734918}i& zZ[fg i& z Rm klm& fE Efu [ =E[fSV W#@6 a5 hi& r ρT сU ]cornerRadiusX]cornerRadiusY_T{{15.394291957465503, 44.252204139492406}, {86.622653214236578, 21.789508371540805}}& f, M > A C > M jf_[\WV^I]FR`TSXDi&  YZL&C [AWIJ&C WFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&  bL$&%&'( f ,> .> C 3 >E N>a M j jfghVih[R kTZScDli&   deL&C [abZJ&C 3b[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& ,zZ[fg klm& 1 2fE 5[Ef[[u 9[ =E[fno p z5 hi& > @r ρT сU _T{{12.933421127515606, 55.752222446694503}, {96.466136534036195, 15.736867157223941}}& Ef, GM H> KA MC Q> TM jfxtuWVwIvFmyTSqDi& X Y ZrsL&C 5[ApIJ&C 5pFJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& m n{L$&%&'( qf s,> t.> wC y3 >E }N>a M j hV[m TZS|Di&  }~L&C n[a{ZJ&C n3{[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& zZ[fg  B& fME [Ef  [E[fC  2  Q& SO streamtyped@NSMutableDictionary NSDictionaryNSObjectiNSString+sizeWidthCenteredNSNumberNSValue*dsizeHeightCentered7& f, M > C > > >}EWVTS IJ& MOO$0.403851053 0.403851053 0.4038510534IJ& MOO'0.2658160666 0.2658160666 0.26581606664i&  ˁL&C [AIJ&C FJV{0, 0}V{0, 0}_{0, 4.2515341609509996}_{0, 44.738541457734918}_{0, 4.2515341609509996}_{0, 44.738541457734918}i&  ߁L$&%&'( f ,> .> C 3 >>E N>a >} hV[ TZSi&  L&C [aZJ&C 3[JV{0, 0}V{0, 0}_{0, 4.2515341609509996}_{0, 44.738541457734918}_{0, 4.2515341609509996}_{0, 44.738541457734918}i& zZ[fg i& z   klm&  fE  Efu [ >E[f #@6  hi& # %rހ _4{{14.336510027119617, 46.003068321901999}, {88, 18}}& *f, ,M -> 0A 2C  6> 9M}fWVIFTSi& = > ?L&C [AIJ&C FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& R SL$&%&'( Vf X,> Y.> \C ^3 >E bN>a fM} hhV[ TZSi& j k lL&C S[aZJ&C S3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& zZ[fg klm& fE [Ef[[u [ >E[f  ǁ hi& rހ _4{{11.836510027119623, 55.503068321901999}, {98, 13}}& f, M > A C  > M}f€WVĀIÀFƀTSi&  L&C [AIJ&C FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&  ȀL$&%&'( f ,> .> C 3 >E N>a M} ց́̀hVπ΀[ рTZSɀi&  ځʁˀL&C [aȀZJ&C 3Ȁ[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& zZ[fg  Blm&k f fE Ef u [E[  #@6 #@2 hi&  rހ Q&  SO streamtyped@7_#{{24.207106781186546, 48}, {12, 6}}& f, M >   C  ? > M}E݁ހWV؁߀فӁTSڀ IJ& MOO0.6863980707 0.8061224313 14IJ& "MOO0.3126169177 0.3186546528 0.64i& % & 'ہ܀L&C [A׀IJ&C ׀FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& : ;L$&%&'( >f @,> A.> DC F3 ?>f JN> L NM} PhV[TS怬J& R@OF0 0.54i& U V WL&C ;[aZJ&C ;3[JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i& jzZ[fg _T{{12.000000000000002, 44.249136083608384}, {90.543616808306169, 11.503086363086119}}}~ p q]PCGroupVector r s t u v w]PCGroupVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObject}~ y z]PCFolderLayer { | } ~ ]PCFolderLayerWPCLayerZPCDrawableXPCObjectXNSObject&>>f E fW &C Ghi& r  & NZBackgroundhi& r  &Ni& z  klm& fE [Ef u [E[f  #@(  hi& r   ]cornerRadiusX]cornerRadiusY_{{0, 0}, {128, 128}}& f, > > A C > M EWVIF TS i&  ՁL&C [AIJ&C FJV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}W100 - ti&   L$&%&'( f ,> .> C 3 >E N>a M hV[ TZS  i&L&C [a ZJ&C 3 [JV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}i&zZ[fg &$ffE[Ef%&[E)[fTstrYXstrTBndsTstrXVattStr + *_{{4, 64}, {120, 64}}-./&0123XNSString_NSAttributeInfo\NSAttributes()_ippeve- printeri&678&Lhi&;?C<=>aABZ "%WNSColor_NSParagraphStyleVNSFont&HICZNSTabStops!}~LM_NSMutableParagraphStyleLNO_NSParagraphStyleXNSObjectQRS&TUVWVNSSizeXNSfFlagsVNSName#@7#$_.LucidaGrandeUI}~Z[VNSFont\]VNSFontXNSObject}~_`XNSObjecthi&bfC<=>ahBZ'"%H&lCIM[NSAlignment! Q&p SD7}~st_NSAttributedStringuv_NSAttributedStringXNSObjectJ&x@OD1 04}~{|\PCTextVector}~\PCTextVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjectXNSObjecti&zЁ }~WPCFrameWPCFrame_PCMetadataObjectZPCDrawableXPCObjectXNSObjecti&z/I_ &ffCC>CE ffGYauSizCropVnewFacUapIn1TpathTapIDUcropRUapIn2UisRelUisColTcropVvarVal0HC 1^printer-sm.png&EWCEUcodeSUprColVprShTiSfraVcodePlVcodeFrUcodeFTsnShVexPropTpropUgenCHUgrTypVanLooCVprLinCUcodeLF BCEG@2> ?/ADhi&rځ345678A9:I;<= V{JFIF}U{GIF}_"kCGImageDestinationBackgroundColorU{PNG}V{TIFF}_*kCGImageDestinationLossyCompressionQualityhi&r hi&r hi&r hi&r #?Zpublic.png]public.folderhi&r IJ&MOL0.5 0 0 0.54SiosUcocoaUtouchVMyViewVUIView}~  _PCBitmapProperties   _PCBitmapPropertiesXPCObjectXNSObject}~YPCFactoryYPCFactoryZPCDrawableXPCObjectXNSObject&ffCC>CE ff"GKHJ L_{{0.5, 0}, {0, 0}}[printer.png&'EW,C/0E5]^ BC]G[M> ?I\Dhi&9@r:;<=>?NOPQRSABADEFTUIVWZ V{JFIF}U{GIF}_"kCGImageDestinationBackgroundColorU{PNG}V{TIFF}_*kCGImageDestinationLossyCompressionQualityhi&OPr hi&STr hi&WXr hi&[]r\X^Y [Compression#?hi&cdr IJ&gMOL0.5 0 0 0.54VMyViewVUIView&ffCoC>CE ffxG`HC a^printer-lg.png&|EWCEr BCqGob> n_pDhi&rcdefghAijIklm V{JFIF}U{GIF}_"kCGImageDestinationBackgroundColorU{PNG}V{TIFF}_*kCGImageDestinationLossyCompressionQualityhi&r hi&r hi&r hi&r #?]public.folderhi&r IJ&MOL0.5 0 0 0.54VMyViewVUIViewi&LYselectionZ{128, 128}J&@OE0.754_CICheckerboardGenerator&'EW,CE ]^ BC]Gy ?Dhi&r:;<=>?NOPQRSAz{I|}~ hi&r hi&r hi&r hi&r\X^Y #?_com.likethought.opacity.opacityhi&r IJ&MOL0.5 0 0 0.54hi&r     ?>???76777 _framePickerVisibleZhideRulers[windowFrame_layerViewDimension]hideVariablesZexpansionsYprintInfo]toolbarHidden_editFrameMetadata_{{995, 170}, {1195, 778}}#@chi&&(r'>6 &,-.\NSAttributeshi&09r12345678>;;='>@@66 _NSHorizontallyCentered]NSRightMargin\NSLeftMargin_NSHorizonalPagination_NSVerticalPagination_NSVerticallyCentered[NSTopMargin^NSBottomMargin"B"B}~NO[NSPrintInfoPQ[NSPrintInfoXNSObjecthi&S[rTUVWXYZ\]_`TbI _"com.likethought.opacity.preview.ui_(com.likethought.opacity.preview.elementsWfactory_#com.likethought.opacity.preview.web_&com.likethought.opacity.preview.cursorTtype_&com.likethought.opacity.preview.iphonehi&lprmYoA'sI Ucolor[resolutionsi&xyz|L#?#?hi&r???777 VstatusWtoolbarTdockhi&r WaddressUimage_#http://likethought.com/opacity/web/_,http://likethought.com/opacity/web/image.pnghi&rYm[[AggI XhotspotXXhotspotYhi&rmYA''IÁā UrectXUrectHUrectWUrectYTleftStop#@4#@F#@ii&z  }~WPCImageWPCImage_PCMetadataObjectZPCDrawableXPCObjectXNSObject",1:?QV[]      % , 2 9 > D J Q X _ f k r v }     $ & ) , - 0 2 5 8 : < = @ I K M O Q Z \ _ b d f g t |     $ , 5 Q Z p w   " $ - / 1 B D F H Y [ d f h y {     # % V Z ` h n r z ~ *5>GPQS\ju!.1368:GIKYjotvxz|&/@FShsuwy &/8FQ_gr{   "%'*,.;=?H_acehknqtwz}   ) !#%')+-/13579;<IPR_lnw|~ *,.02;JQYbip4?HQZ]_a   '*,9FHQVXZ\qsuwy"$&(1LWr  !#%'()69;>@BP^  $)+-/DFHJLacegipw~!#%')+,.02468:CHJLNcegik"-6?KMNPRTVXZ\^`bdfhjlmv{}hjkmoqsuwy{}~ !5DXey W Y Z \ ^ ` b d f h j l n p r t v x y !!!!)!E!`!|!!!!!"" " " """""""""""!"#"%"'")"+"4"9";"="?"T"V"X"Z"\"q"s"u"w"y"""""""#### ######d#f#h#i#j#l#m#n#p#r#t#u#v#########$$$&$'$)$+$-$/$1$3$5$7$9$;$=$?$A$C$E$F$O$T$V$X$Z$o$q$s$u$w$$$$$$$$$$$$$$$%A%C%D%F%H%J%L%N%P%R%T%V%W%Y%[%]%_%a%c%e%n%s%u%w%y%%%%%%%%%%%%%%%%%%%%%&8&:&<&=&>&@&A&B&D&F&H&I&J&W&Z&\&_&a&c&|&&&&&&&&&&&&&&&&&''' '''''*','.'0'2'G'I'K'M'O'V']'d'k'r'y'''''''((((( ( ( (((((((((( ()(.(0(2(4(I(K(M(O(Q(f(h(j(l(n(u(|((((((((((())) ) )))))))))) )!)")9))))))))))))))))))))))**+*-*6*=*?*A*C*E*Z*\*^*`*b*o**************+++!+(+D+`+z+++++,,,,,",$,&,),+,.,0,2,3,6,8,:,<,?,A,D,M,R,U,X,Z,o,q,t,v,x,,,,,,,,,,,,,,,,-- ---- -*-1-8-9-:-;-=-@-C-D-G-J-M-~------------------------......".%.&.'.).,.-.^._.b.e.h.k.n.o.p.r.u.v.....................// //%/./7/A/K/U/_/i/s/}////////////0000 0 00000 0/0>0M0Z0n0w00000000000000000011q1t1u1x1{1}1111111111111111111111222 2 222F2H2]2_2b2e2g2t22222222223333*3E3_3y3333344444 4 444444444 4"4%4'4*43484;4>4@4U4W4Z4\4^4s4u4x4z4|44444444444444444444445.5/5255585;5>5?5@5C5F5G5x5y5|55555555555555555555555566666 666$6.686B6L6V6`6i6r6{6666666666666666666777777~7777777777777777777777888%8*8-80828G8I8L8N8P8e8g8j8l8n8u8|88888888999 9#9&9(9*9-9/929497989;9=9?9A9D9F9I9R9W9Z9]9_9t9v9y9{9}9999999999999999:::: : :::::::M:N:Q:T:W:Z:]:^:_:b:e:f::::::::::::::::::::::::;;;; ;!;$;%;(;1;:;C;L;U;^;g;p;y;;;;;;;;;;;<<<<< < <<<<<<<<<<3<<<<<<<<<<<<<<<<<<<<<<==2=4===B=E=H=J=_=a=d=f=h=}==============>4>7>8>;>>>@>B>E>G>J>L>O>P>S>U>W>Y>\>^>a>j>o>r>u>w>>>>>>>>>>>>>>>>>>>>>??? ?!?$?'?*?+?.?1?4?e?f?i?l?o?r?u?v?w?z?}?~???????????????@@@@ @ @ @@@@3@4@5@8@9@<@=@@@I@R@[@d@m@v@@@@@@@@@@@@@@AAAAA"A#A&A'A(A+A.A1A3A4A5AOAAAAAAAAAAAAAAAAAAAABBB$BQBSB\BaBdBgBiB~BBBBBBBBBBBBBBBBBBBCSCVCWCZC]C_CaCdCfCiCkCnCoCrCtCvCxC{C}CCCCCCCCCCCCCCCCCCCCCCDD D DDD=D>D?D@DCDFDIDJDMDPDSDDDDDDDDDDDDDDDDDDDDDDDDEEEEE"E%E(E)E*E-E0E1ERESETEWEXE[E\E_ElEyEEEEEEEEEEFFFFFFFF FgFjFmFnFqFrFuFvFwFzF}FFFFFFGGG G GGGGGGGG"G%G(G*G,G/G1G2G?GlGnG{GGGGGGGGGGGGGGGGGHHHHHH#H,H/H2H4HHHHHHHHHHHHHHHHHHHHHHHHHHIIIIIII"I$I&I-I4I;IBIIIPIYI^I`IbIdIIIIIIIIIIIIIIIIIIIIIIIJ"J#J&J)J,J/J2J3J4J7J:J;JlJmJpJsJvJyJ|J}J~JJJJJJJJJJJJJJJJJJJKKKK+K4K?KBKEKHKKKNKPKKKKKKKKKKKKKKKKKKKKL7L:L;L>LALCLELHLJLMLOLRLSLVLXL[L]L`LbLeLrLLLLLLLLLLLLLLLLLLLMM MMM#M(M*M,M.M6M@MIMVMeMrMMMMMMNNNNNN NNNNNNNNN,N/N1N4N6N8NONNNNNNNNNNNNNNNNNNNNNNOOOOO!O$O'O)O>O@OCOEOGO\O^OaOcOeOlOsOzOOOOOOOPPPPPPP!P$P&P)P+P.P/P2P4P6P8P;P=P@PIPNPQPTPVPkPmPpPrPtPPPPPPPPPPPPPPPPQ QQQQQQQQQQ Q#Q$Q{QQQQQQQQQQQQQQQQQQQQQRRR%R(R1R?RFRMRVRRRRRRRRRRRRRRRRRRRRRSS SSS$S)S,S/S1SFSHSKSMSOSdSfSiSkSmStS{SSSSSSSSSToTrTsTvTyT{T}TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUU1UKUeUnUsUuUwUyUUUUUUUUUUUUUUUUUUUVVV V VVVV-VVVVVVVVVVVVWWWW W WWWWW W#W&W(W=W?WBWDWFW[W]W`WbWdWkWrWyWWWWWWWXXXXXXX X#X%X(X*X-X.X1X3X5X7X:X=X@XIXNXQXTXVXkXmXpXrXtXXXXXXXXXXXXXXXXYYYYYY"Y#Y$Y&Y)Y,Y-Y.Y;Y>YAYDYGYIYZZZZ Z ZZZZZZZZ Z#Z%Z'Z*Z-Z.Z7Z\?\B\D\G\J\K\L\U]] ]n]q]r]u]x]z]|]]]]]]]]]]]]]]]]^^ ^^^^^^4^6^9^;^=^R^T^W^Y^[^b^i^^^^^^^^_U_X_Y_\___a_c_f_h_k_m_p_q_t_v_x_z_}____________________``0`J`S`X`Z`\`^`g`l`o`r`t````````````````````a+aaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb bbbb&b-b4b=b@bCbEbbbbbbbbbbbbbbbbbbbbbbbbbcccccc.c0c3c5c7c>cEcLcScZcacjcocqcscucccccccccccccccccccd#ddddddddddddddddddddddddddddddddeee eeee%e,e5e8e;e=eeeeeeeeeeeeeeeeeeeeeeeeeff f fff&f(f+f-f/f6f=fDfKfRfYfbfgfifkfmffffffffffffffffffffffggg gFgggggggggggggggggggghhhh1h3htAtCtFtItLtMtPtYt\t_tbtdtqt~tttttttttttttttttttuu)u*u+u-u:u;uuKuLuMuOu\u]u^u`uiutuuuuuuuuuuuuuuuuvvvv"v,v5v?vJvSv\vvvvvvvvvvvvvvvvvw&w)w*w,w/w2w5w8w:w=w@wCwDwGwJwMwPwRw_wlwowrwuwxw{w~wwwwwwwwwwwwwx xxxxx(x)x*x,x9x:x;x=xJxMxPxSxVxXxdxmxzx{x|x~xxxxxxxxxxxxxxxxxxxyyy_ybycyeyhykynyqysyvyyy|y}yyyyyyyyyyyyyyyyyyyyyyyz zzzCzPzQzRzTzazbzczezrzsztzvzzzzzzzzzzzzzzzzzzzz{{ {{){x{{{|{~{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{|| |||||| |"|/|2|5|8|;|=|F|h|u|v|w|y|||||||||||||||||||||||||}}}'}<}J}U}_}m}}}}}}}}}}}}}}}}~~~~ ~ ~~~#~%~(~+~.~1~3~6~9~;~T~b~o~~~~~~~~~~ %(+.147:ILORUX[^`ހ 5BILORY[^aciu~Àʀ̀΀ЀҀـ ?n{Áԁׁځ݁ "(.37@IRT]`cenvcups-2.4.7/tools/printer-sm.png0000644000175000017500000000714714502571342016340 0ustar zdohnalzdohnalPNG  IHDR00` iCCPkCGColorSpaceGenericRGB8U]hU>sg#$Sl4t? % V46nI6"dΘ83OEP|1Ŀ (>/ % (>P苦;3ie|{g蹪X-2s=+WQ+]L6O w[C{_F qb Uvz?Zb1@/zcs>~if,ӈUSjF 1_Mjbuݠpamhmçϙ>a\+5%QKFkm}ۖ?ޚD\!~6,-7SثŜvķ5Z;[rmS5{yDyH}r9|-ăFAJjI.[/]mK 7KRDrYQO-Q||6 (0 MXd(@h2_f<:”_δ*d>e\c?~,7?& ك^2Iq2"y@g|U\ 8eXIfMM*i00N6biTXtXML:com.adobe.xmp Michael Sweet Copyright 2010 Apple Inc. New Image New Image PdPLTE  !!!"""###$$$%%%&&&'''((()))***,,,----.9.....9./5/////:0001112223334445556667778888>>>C`???@@@AAAABEADLBBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[\\\^^^____n````iaaabbbccceeefffggghhhjjjjzkkklllmmmqqqqqrrrtttvvvwwwyyy|||}}}tRNS7:IDATohusS5J`>PCRJRH3 != Bzf5KKT\cxjYjvmy:KL/t~gԯ_76-𬩌s/t}̓<=mvkZaLopy[:Z+Y*$)yILIq=nƎSpcLXj|ڿ*g_C/|~}Å»_Z{}Ves {W,"҃b<,刱^Csk94WxצLD4>r|ctf,i*kͺ#pb|4SLP!S2z6@/G˹@H1qTZ=X_vq-+r-ov%\VtW. WbJ02 z~K~c c¤ H6YoiQXTp U-**v|VQUAbػp"T*QAE\Reߎ&-\ETPQ`0+J%htn_:;)"FĚ|%ǁ (SA5BR{ec| T,LqN(KԡP@:M!*KNa )A 1M9n. ފLإPeۭ ^u&@^{V:Ji(SrLGlCzF2Bee:bcɘ5q1'UOtfoY߿IENDB`cups-2.4.7/tools/printer-sm-png.h0000644000175000017500000004535614502571342016571 0ustar zdohnalzdohnalstatic const unsigned char printer_sm_png[] = { 0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52, 0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x08,0x03,0x00,0x00,0x00,0x60,0xdc,0x09, 0xb5,0x00,0x00,0x04,0x19,0x69,0x43,0x43,0x50,0x6b,0x43,0x47,0x43,0x6f,0x6c,0x6f, 0x72,0x53,0x70,0x61,0x63,0x65,0x47,0x65,0x6e,0x65,0x72,0x69,0x63,0x52,0x47,0x42, 0x00,0x00,0x38,0x8d,0x8d,0x55,0x5d,0x68,0x1c,0x55,0x14,0x3e,0xbb,0x73,0x67,0x23, 0x24,0xce,0x53,0x6c,0x34,0x85,0x74,0xa8,0x3f,0x0d,0x25,0x0d,0x93,0x56,0x34,0xa1, 0xb4,0xba,0x7f,0xdd,0xdd,0x36,0x6e,0x96,0x49,0x36,0xda,0x22,0xe8,0x64,0xf6,0xee, 0xce,0x98,0xc9,0xce,0x38,0x33,0xbb,0xfd,0xa1,0x4f,0x45,0x50,0x7c,0x31,0xea,0x9b, 0x14,0xc4,0xbf,0xb7,0x80,0x20,0x28,0xf5,0x0f,0xdb,0x3e,0xb4,0x2f,0x95,0x0a,0x25, 0xda,0xd4,0x20,0x28,0x3e,0xb4,0xf8,0x83,0x50,0xe8,0x8b,0xa6,0xeb,0x99,0x3b,0x33, 0x99,0x69,0xba,0xb1,0xde,0x65,0xee,0x7c,0xf3,0x9d,0xef,0x9e,0x7b,0xee,0xb9,0x67, 0xef,0x05,0xe8,0xb9,0xaa,0x58,0x96,0x91,0x14,0x01,0x16,0x9a,0xae,0x2d,0x17,0x32, 0xe2,0x73,0x87,0x8f,0x88,0x3d,0x2b,0x90,0x84,0x87,0xa0,0x17,0x06,0xa1,0x57,0x51, 0x1d,0x2b,0x5d,0xa9,0x4c,0x02,0x36,0x4f,0x0b,0x77,0xb5,0x5b,0xdf,0x43,0xc2,0x7b, 0x5f,0xd9,0xd5,0xdd,0xfe,0x9f,0xad,0xb7,0x46,0x1d,0x15,0x20,0x71,0x1f,0x62,0xb3, 0xe6,0xa8,0x0b,0x88,0x8f,0x01,0xf0,0xa7,0x55,0xcb,0x76,0x01,0x7a,0xfa,0x91,0x1f, 0x3f,0xea,0x5a,0x1e,0xf6,0x62,0xe8,0xb7,0x31,0x40,0xc4,0x2f,0x7a,0xb8,0xe1,0x63, 0xd7,0xc3,0x73,0x3e,0x7e,0x8d,0x69,0x66,0xe4,0x2c,0xe2,0xd3,0x88,0x05,0x55,0x53, 0x6a,0x88,0x97,0x10,0x8f,0xcc,0xc5,0xf8,0x46,0x0c,0xfb,0x31,0xb0,0xd6,0x5f,0xa0, 0x4d,0x6a,0xeb,0xaa,0xe8,0xe5,0xa2,0x62,0x9b,0x75,0xdd,0xa0,0xb1,0x70,0xef,0x61, 0xfe,0x9f,0x6d,0xc1,0x68,0x85,0xf3,0x6d,0xc3,0xa7,0xcf,0x99,0x9f,0x3e,0x84,0xef, 0x61,0x5c,0xfb,0x2b,0x35,0x25,0xe7,0xe1,0x51,0xc4,0x4b,0xaa,0x92,0x9f,0x46,0xfc, 0x08,0xe2,0x6b,0x6d,0x7d,0xb6,0x1c,0xe0,0xdb,0x96,0x9b,0x91,0x11,0x3f,0x06,0x90, 0xdc,0xde,0x9a,0xaf,0xa6,0x11,0xef,0x44,0x5c,0xac,0xdb,0x07,0xaa,0xbe,0x9f,0xa4, 0xad,0xb5,0x8a,0x21,0x7e,0xe7,0x84,0x36,0xf3,0x2c,0xe2,0x2d,0x88,0xcf,0x37,0xe7, 0xca,0x53,0xc1,0xd8,0xab,0xaa,0x93,0xc5,0x9c,0xc1,0x76,0xc4,0xb7,0x35,0x5a,0xf2, 0xf2,0x3b,0x04,0xc0,0x89,0xba,0x5b,0x9a,0xf1,0xc7,0x72,0xfb,0x6d,0x53,0x9e,0xf2, 0xe7,0xe5,0xea,0x35,0x9a,0xcb,0x7b,0x79,0x44,0xfc,0xfa,0xbc,0x79,0x48,0xf6,0x7d, 0x72,0x9f,0x39,0xed,0xe9,0x7c,0xe8,0xf3,0x84,0x96,0x2d,0x07,0xfc,0xa5,0x97,0x94, 0x83,0x15,0xc4,0x83,0x88,0x7f,0xa1,0x46,0x41,0xf6,0xe7,0xe2,0xfe,0xb1,0xdc,0x4a, 0x10,0x03,0x19,0x6a,0x1a,0xe5,0x49,0x7f,0x2e,0x92,0xa3,0x0e,0x5b,0x2f,0xe3,0x5d, 0x6d,0xa6,0xe8,0xcf,0x4b,0x0c,0x17,0x37,0xd4,0x1f,0x4b,0x16,0xeb,0xfa,0x81,0x52, 0xa0,0xff,0x44,0xb3,0x8b,0x72,0x80,0xaf,0x59,0x06,0xab,0x51,0x8c,0x8d,0x4f,0xda, 0x2d,0xb9,0xea,0xeb,0xf9,0x51,0xc5,0xce,0x17,0x7c,0x9f,0x7c,0x85,0x36,0xab,0x81, 0x7f,0xbe,0x0d,0xb3,0x09,0x05,0x28,0x98,0x30,0x87,0xbd,0x0a,0x4d,0x58,0x03,0x11, 0x64,0x28,0x40,0x06,0xdf,0x16,0xd8,0x68,0xa9,0x83,0x0e,0x06,0x32,0x14,0xad,0x14, 0x19,0x8a,0x5f,0xa1,0x66,0x17,0x1b,0xe7,0xc0,0x3c,0xf2,0x3a,0xb4,0x99,0xcd,0xc1, 0xbe,0xc2,0x94,0xfe,0xc8,0xc8,0x5f,0x83,0xf9,0xb8,0xce,0xb4,0x2a,0x64,0x87,0x3e, 0x82,0x16,0xb2,0x1a,0xfc,0x8e,0xac,0x16,0xd3,0x65,0xf1,0xab,0x85,0x5c,0x63,0x13, 0x3f,0x7e,0x2c,0x37,0x02,0x3f,0x26,0x19,0x20,0x12,0xd9,0x83,0xcf,0x5e,0x32,0x49, 0xf6,0x91,0x71,0x32,0x01,0x22,0x79,0x8a,0x3c,0x4d,0xf6,0x93,0x1c,0xb2,0x13,0x64, 0xef,0xfa,0xd8,0x4a,0x6c,0x45,0x5e,0x3c,0x37,0xd6,0xfd,0xbc,0x8c,0x33,0x52,0xa6, 0x9b,0x45,0xdd,0x39,0xb4,0xbb,0xa0,0x60,0xff,0x33,0x2a,0x4c,0x5c,0x53,0xd7,0xac, 0x2c,0x0e,0xb6,0x86,0x23,0xcb,0x29,0xfb,0x05,0x5d,0xbd,0xfc,0xc6,0x5f,0xb1,0x5c, 0xe9,0x2c,0x37,0x51,0xb6,0xe2,0x19,0x9d,0xba,0x57,0xce,0xf9,0x5f,0xf9,0xeb,0xfc, 0x32,0xf6,0x2b,0xfc,0x6a,0xa4,0xe0,0x7f,0xe4,0x57,0xf1,0xb7,0x72,0xc7,0x5a,0xcc, 0xbb,0xb2,0x4c,0xc3,0xec,0x6c,0x58,0x73,0x77,0x55,0x1a,0x6d,0x06,0xe3,0x16,0xf0, 0xd1,0x99,0xc5,0x89,0xc5,0x1d,0xf3,0x71,0xf1,0xe4,0x57,0x0f,0x46,0x7e,0x96,0xc9, 0x99,0xe7,0xaf,0xf4,0x5d,0x3c,0x59,0x6f,0x2e,0x0e,0x46,0xac,0x97,0x05,0xfa,0x6a, 0xf9,0x56,0x19,0x4e,0x8d,0x44,0xac,0xf4,0x83,0xf4,0x87,0xb4,0x2c,0xbd,0x27,0x7d, 0x28,0xfd,0xc6,0xbd,0xcd,0x7d,0xca,0x7d,0xcd,0x7d,0xce,0x7d,0xc1,0x5d,0x02,0x91, 0x3b,0xcb,0x9d,0xe3,0xbe,0xe1,0x2e,0x70,0x1f,0x73,0x5f,0xc6,0xf6,0x6a,0xf3,0x1a, 0x5a,0xdf,0x7b,0x16,0x79,0x18,0xb7,0x67,0xe9,0x96,0x6b,0xac,0x4a,0x21,0x23,0x6c, 0x15,0x1e,0x16,0x72,0xc2,0x36,0xe1,0x51,0x61,0x32,0xf2,0x27,0x0c,0x08,0x63,0x42, 0x51,0xd8,0x81,0x96,0xad,0xeb,0xfb,0x16,0x9f,0x2f,0x9e,0x3d,0x1d,0x0e,0x63,0x1f, 0xe6,0xa7,0xfb,0x5c,0xbe,0x2e,0x56,0x01,0x89,0xfb,0xb1,0x02,0xf4,0x4d,0xfe,0x55, 0x55,0x54,0xe9,0x70,0x94,0x29,0x1d,0x56,0x6f,0x4d,0x38,0xbe,0x41,0x13,0x8c,0x24, 0x43,0x64,0x8c,0x94,0x36,0x54,0xf7,0xb8,0x57,0xf3,0xa1,0x22,0x95,0x4f,0xe5,0x52, 0x69,0x10,0x53,0x3b,0x53,0x13,0xa9,0xb1,0xd4,0x41,0x0f,0x87,0xb3,0xa6,0x76,0xa0, 0x6d,0x02,0xfb,0xfc,0x1d,0xd5,0xa9,0x6e,0xb2,0x52,0xea,0xd2,0x63,0xde,0x7d,0x02, 0x59,0xd3,0x3a,0x6e,0xeb,0x0d,0xcd,0x15,0x77,0x4b,0xd2,0x93,0x62,0x1a,0xaf,0x36, 0x2a,0x96,0x9a,0xea,0xe8,0x88,0xa8,0x18,0x86,0xc8,0x4c,0x8e,0x68,0x53,0x87,0xda, 0x6d,0x5a,0x1b,0x05,0xef,0xde,0xf4,0x8f,0xf4,0x9b,0x32,0xbb,0x0f,0x13,0x5b,0x2e, 0x47,0x9c,0xfb,0x0c,0xc0,0xbe,0x3f,0xf1,0xec,0xfb,0x2e,0xe2,0x8e,0xb4,0x00,0x96, 0x1c,0x80,0x81,0xc7,0x23,0x6e,0x18,0xcf,0xca,0x07,0xde,0x05,0x38,0xf3,0x84,0xda, 0xb2,0xdb,0xc1,0x1d,0x91,0x48,0x7c,0x0b,0xe0,0xd4,0xf7,0xec,0xf6,0xbf,0xfa,0x32, 0x78,0x7e,0xfd,0xd4,0xe9,0xdc,0xc4,0x73,0xac,0xe7,0x2d,0x80,0xb5,0x37,0x3b,0x9d, 0xbf,0xdf,0xef,0x74,0xd6,0x3e,0x40,0xff,0xab,0x00,0x67,0x8d,0x7f,0x01,0xa0,0x9f, 0x7c,0x55,0x03,0x5c,0x0b,0xef,0x00,0x00,0x00,0x38,0x65,0x58,0x49,0x66,0x4d,0x4d, 0x00,0x2a,0x00,0x00,0x00,0x08,0x00,0x01,0x87,0x69,0x00,0x04,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x00,0x00,0x02,0xa0,0x02,0x00,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x30,0xa0,0x03,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x30,0x00,0x00,0x00,0x00,0xf8,0xff,0x4e,0x36,0x00,0x00,0x03,0x62,0x69,0x54, 0x58,0x74,0x58,0x4d,0x4c,0x3a,0x63,0x6f,0x6d,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x78,0x6d,0x70,0x00,0x00,0x00,0x00,0x00,0x3c,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x78,0x3d,0x22,0x61,0x64,0x6f,0x62, 0x65,0x3a,0x6e,0x73,0x3a,0x6d,0x65,0x74,0x61,0x2f,0x22,0x20,0x78,0x3a,0x78,0x6d, 0x70,0x74,0x6b,0x3d,0x22,0x58,0x4d,0x50,0x20,0x43,0x6f,0x72,0x65,0x20,0x35,0x2e, 0x34,0x2e,0x30,0x22,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x52,0x44, 0x46,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x72,0x64,0x66,0x3d,0x22,0x68,0x74,0x74, 0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x77,0x33,0x2e,0x6f,0x72,0x67,0x2f,0x31, 0x39,0x39,0x39,0x2f,0x30,0x32,0x2f,0x32,0x32,0x2d,0x72,0x64,0x66,0x2d,0x73,0x79, 0x6e,0x74,0x61,0x78,0x2d,0x6e,0x73,0x23,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x3c,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, 0x6e,0x20,0x72,0x64,0x66,0x3a,0x61,0x62,0x6f,0x75,0x74,0x3d,0x22,0x22,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73, 0x3a,0x64,0x63,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x70,0x75,0x72,0x6c, 0x2e,0x6f,0x72,0x67,0x2f,0x64,0x63,0x2f,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73, 0x2f,0x31,0x2e,0x31,0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x49,0x70,0x74,0x63,0x34,0x78,0x6d, 0x70,0x45,0x78,0x74,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x69,0x70,0x74, 0x63,0x2e,0x6f,0x72,0x67,0x2f,0x73,0x74,0x64,0x2f,0x49,0x70,0x74,0x63,0x34,0x78, 0x6d,0x70,0x45,0x78,0x74,0x2f,0x32,0x30,0x30,0x38,0x2d,0x30,0x32,0x2d,0x32,0x39, 0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78, 0x6d,0x6c,0x6e,0x73,0x3a,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3d,0x22, 0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x6e,0x73,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x63,0x6f,0x6d,0x2f,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x2f,0x31,0x2e, 0x30,0x2f,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64, 0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x53,0x65,0x71,0x3e, 0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x4d,0x69,0x63,0x68,0x61,0x65,0x6c,0x20, 0x53,0x77,0x65,0x65,0x74,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66, 0x3a,0x53,0x65,0x71,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c, 0x2f,0x64,0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64,0x63,0x3a,0x72,0x69,0x67,0x68,0x74,0x73, 0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72, 0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x20,0x78, 0x6d,0x6c,0x3a,0x6c,0x61,0x6e,0x67,0x3d,0x22,0x78,0x2d,0x64,0x65,0x66,0x61,0x75, 0x6c,0x74,0x22,0x3e,0x43,0x6f,0x70,0x79,0x72,0x69,0x67,0x68,0x74,0x20,0x32,0x30, 0x31,0x30,0x20,0x41,0x70,0x70,0x6c,0x65,0x20,0x49,0x6e,0x63,0x2e,0x3c,0x2f,0x72, 0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x64,0x63,0x3a,0x72,0x69,0x67,0x68, 0x74,0x73,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x70,0x68, 0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65, 0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x70,0x68,0x6f,0x74, 0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65,0x3e,0x0a, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63, 0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64, 0x66,0x3a,0x52,0x44,0x46,0x3e,0x0a,0x3c,0x2f,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x3e,0x0a,0xa0,0x50,0x98,0x64,0x00,0x00,0x02,0xa0,0x50,0x4c,0x54,0x45, 0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xff, 0xff,0xff,0xfc,0xfc,0xfc,0xff,0xff,0xff,0x00,0x00,0x00,0x01,0x01,0x01,0x02,0x02, 0x02,0x03,0x03,0x03,0x04,0x04,0x04,0x05,0x05,0x05,0x06,0x06,0x06,0x07,0x07,0x07, 0x08,0x08,0x08,0x09,0x09,0x09,0x0a,0x0a,0x0a,0x0b,0x0b,0x0b,0x0c,0x0c,0x0c,0x0d, 0x0d,0x0d,0x0f,0x0f,0x0f,0x10,0x10,0x10,0x11,0x11,0x11,0x12,0x12,0x12,0x13,0x13, 0x13,0x14,0x14,0x14,0x15,0x15,0x15,0x16,0x16,0x16,0x18,0x18,0x18,0x19,0x19,0x19, 0x1c,0x1c,0x1c,0x1d,0x1d,0x1d,0x1e,0x1e,0x1e,0x1f,0x1f,0x1f,0x20,0x20,0x20,0x21, 0x21,0x21,0x22,0x22,0x22,0x23,0x23,0x23,0x24,0x24,0x24,0x25,0x25,0x25,0x26,0x26, 0x26,0x27,0x27,0x27,0x28,0x28,0x28,0x29,0x29,0x29,0x2a,0x2a,0x2a,0x2c,0x2c,0x2c, 0x2d,0x2d,0x2d,0x2d,0x2e,0x39,0x2e,0x2e,0x2e,0x2e,0x2e,0x39,0x2e,0x2f,0x35,0x2f, 0x2f,0x2f,0x2f,0x2f,0x3a,0x30,0x30,0x30,0x31,0x31,0x31,0x32,0x32,0x32,0x33,0x33, 0x33,0x34,0x34,0x34,0x35,0x35,0x35,0x36,0x36,0x36,0x37,0x37,0x37,0x38,0x38,0x38, 0x38,0x3c,0x55,0x39,0x39,0x39,0x3a,0x3a,0x3a,0x3a,0x3a,0x3c,0x3b,0x3b,0x3b,0x3c, 0x3c,0x3c,0x3d,0x3d,0x3d,0x3e,0x3e,0x3e,0x3e,0x43,0x60,0x3f,0x3f,0x3f,0x40,0x40, 0x40,0x41,0x41,0x41,0x41,0x42,0x45,0x41,0x44,0x4c,0x42,0x42,0x42,0x43,0x43,0x43, 0x44,0x44,0x44,0x45,0x45,0x45,0x46,0x46,0x46,0x47,0x47,0x47,0x48,0x48,0x48,0x49, 0x49,0x49,0x4a,0x4a,0x4a,0x4b,0x4b,0x4b,0x4c,0x4c,0x4c,0x4d,0x4d,0x4d,0x4e,0x4e, 0x4e,0x4f,0x4f,0x4f,0x50,0x50,0x50,0x51,0x51,0x51,0x52,0x52,0x52,0x53,0x53,0x53, 0x54,0x54,0x54,0x55,0x55,0x55,0x56,0x56,0x56,0x57,0x57,0x57,0x58,0x58,0x58,0x59, 0x59,0x59,0x5a,0x5a,0x5a,0x5b,0x5b,0x5b,0x5c,0x5c,0x5c,0x5e,0x5e,0x5e,0x5f,0x5f, 0x5f,0x5f,0x6e,0x90,0x60,0x60,0x60,0x60,0x69,0xa2,0x61,0x61,0x61,0x62,0x62,0x62, 0x63,0x63,0x63,0x65,0x65,0x65,0x66,0x66,0x66,0x67,0x67,0x67,0x68,0x68,0x68,0x6a, 0x6a,0x6a,0x6a,0x7a,0xa0,0x6b,0x6b,0x6b,0x6c,0x6c,0x6c,0x6d,0x6d,0x6d,0x71,0x71, 0x71,0x71,0x82,0xab,0x71,0x83,0xac,0x72,0x72,0x72,0x74,0x74,0x74,0x76,0x76,0x76, 0x77,0x77,0x77,0x79,0x79,0x79,0x7c,0x7c,0x7c,0x7d,0x7d,0x7d,0x7f,0x7f,0x7f,0x80, 0x80,0x80,0x81,0x81,0x81,0x82,0x82,0x82,0x83,0x83,0x83,0x84,0x84,0x84,0x85,0x85, 0x85,0x86,0x86,0x86,0x87,0x87,0x87,0x8a,0x8a,0x8a,0x8c,0x8c,0x8c,0x8d,0x8d,0x8d, 0x8e,0x8e,0x8e,0x90,0x90,0x90,0x91,0x91,0x91,0x92,0x92,0x92,0x93,0x93,0x93,0x96, 0x96,0x96,0x98,0x98,0x98,0x9b,0x9b,0x9b,0x9d,0x9d,0x9d,0x9f,0x9f,0x9f,0xa0,0xa0, 0xa0,0xa2,0xa2,0xa2,0xa3,0xa3,0xa3,0xa6,0xa6,0xa6,0xa7,0xa7,0xa7,0xa8,0xa8,0xa8, 0xaa,0xaa,0xaa,0xab,0xab,0xab,0xad,0xad,0xad,0xae,0xae,0xae,0xaf,0xaf,0xaf,0xb0, 0xb0,0xb0,0xb2,0xb2,0xb2,0xb4,0xb4,0xb4,0xb7,0xb7,0xb7,0xb9,0xb9,0xb9,0xba,0xba, 0xba,0xbb,0xbb,0xbb,0xbc,0xbc,0xbc,0xbd,0xbd,0xbd,0xbe,0xbe,0xbe,0xc0,0xc0,0xc0, 0xc2,0xc2,0xc2,0xc3,0xc3,0xc3,0xc4,0xc4,0xc4,0xc5,0xc5,0xc5,0xc6,0xc6,0xc6,0xc7, 0xc7,0xc7,0xc9,0xc9,0xc9,0xca,0xca,0xca,0xcc,0xcc,0xcc,0xcd,0xcd,0xcd,0xce,0xce, 0xce,0xd0,0xd0,0xd0,0xd1,0xd1,0xd1,0xd4,0xd4,0xd4,0xd8,0xd8,0xd8,0xd9,0xd9,0xd9, 0xda,0xda,0xda,0xdb,0xdb,0xdb,0xdc,0xdc,0xdc,0xdd,0xdd,0xdd,0xde,0xde,0xde,0xdf, 0xdf,0xdf,0xe0,0xe0,0xe0,0xe2,0xe2,0xe2,0xe3,0xe3,0xe3,0xe5,0xe5,0xe5,0xe6,0xe6, 0xe6,0xe9,0xe9,0xe9,0xea,0xea,0xea,0xeb,0xeb,0xeb,0xed,0xed,0xed,0xee,0xee,0xee, 0xef,0xef,0xef,0xf0,0xf0,0xf0,0xf1,0xf1,0xf1,0xf2,0xf2,0xf2,0xf3,0xf3,0xf3,0xf4, 0xf4,0xf4,0xf6,0xf6,0xf6,0xf7,0xf7,0xf7,0xf8,0xf8,0xf8,0xf9,0xf9,0xf9,0xfa,0xfa, 0xfa,0xfb,0xfb,0xfb,0xfc,0xfc,0xfc,0xfd,0xfd,0xfd,0xfe,0xfe,0xfe,0xff,0xff,0xff, 0x96,0xb7,0x1b,0xef,0x00,0x00,0x00,0x08,0x74,0x52,0x4e,0x53,0x00,0x08,0x7f,0xc4, 0xdc,0xdc,0xfc,0xfc,0x86,0xfa,0x37,0x3a,0x00,0x00,0x03,0x97,0x49,0x44,0x41,0x54, 0x18,0x19,0x95,0xc1,0x6f,0x68,0xd4,0x75,0x1c,0xc0,0xf1,0xf7,0xe7,0xfb,0xfb,0xfe, 0xee,0xcf,0xe6,0xb1,0x73,0x53,0xdb,0xfa,0xc3,0xc2,0x1d,0x35,0xcc,0x1c,0x4a,0x60, 0x89,0x3e,0x50,0xfa,0x43,0x52,0x4a,0x52,0x94,0x48,0x33,0x0c,0x1f,0x84,0x21,0x3d, 0xe8,0x0f,0xe1,0xa3,0x20,0x0c,0x83,0x11,0x42,0x04,0xd2,0x1f,0xb0,0x7a,0x12,0x14, 0x66,0xd1,0x13,0x35,0x08,0x4b,0x4b,0x54,0xc4,0xd4,0x5c,0x63,0x78,0xe8,0x6a,0x59, 0x6a,0xdb,0xed,0x76,0xdb,0xfd,0xee,0xee,0xf7,0xfd,0xf4,0xbb,0x6d,0xa2,0x79,0x3a, 0xcf,0xd7,0x4b,0x10,0xf1,0x4c,0x2f,0xf5,0xe8,0x74,0xa1,0xaa,0x88,0xe9,0xa7,0x7e, 0x19,0x67,0xe4,0xf0,0xaf,0xd4,0xaf,0x5f,0x8c,0x37,0x36,0xc0,0x2d,0xf0,0xac,0xa9, 0x8c,0xd1,0x73,0xcf,0x2f,0xab,0x16,0x1f,0xb8,0x74,0xac,0x7d,0xf5,0xcc,0x93,0xbb, 0x16,0x3c,0xf1,0xc1,0x86,0xc6,0x3d,0x6d,0xb3,0x76,0xf9,0x6b,0x5a,0xa8,0x61,0x4c, 0x6f,0xe1,0x08,0x9f,0x8d,0x3c,0xf7,0x6a,0xe9,0xfc,0xce,0x55,0x43,0x7b,0x83,0x2d, 0x2f,0x1d,0x3f,0x65,0x0e,0xba,0xf7,0xdb,0x7b,0x96,0xb7,0xed,0xa3,0x56,0xaf,0x25, 0x92,0x5c,0x47,0x7b,0x96,0x75,0x0b,0x83,0xdd,0x99,0x0b,0xef,0x5c,0x1c,0x5c,0xbe, 0xa3,0x69,0x59,0x7c,0xaf,0x16,0xe6,0x0d,0xf6,0xc0,0x83,0xcf,0xf0,0x3f,0x96,0x88, 0x2b,0xc6,0x06,0xdb,0x4f,0x16,0xf9,0xa7,0xab,0x63,0xc6,0x36,0x0b,0xd9,0x1d,0xaf, 0xc4,0xbb,0x36,0xcd,0x85,0x1e,0x6a,0x58,0x22,0xe1,0xd6,0x73,0x9b,0x13,0x7c,0x7d, 0xac,0xfc,0x7a,0xd3,0xcb,0x2f,0xb6,0x3e,0xf2,0x70,0xf7,0xa7,0xf7,0xb3,0x79,0x5b, 0x3a,0xb3,0x91,0x5a,0x92,0x05,0x1e,0xfa,0xb9,0x98,0xe0,0x2b,0x59,0x99,0x00,0x2a, 0xe5,0x24,0x93,0xf2,0x29,0xae,0xc3,0x12,0x79,0x96,0x04,0xb4,0x49,0x82,0x88,0xb5, 0x4c,0x49,0x71,0x3d,0x92,0xe5,0xd6,0x18,0x6e,0x91,0xe1,0xc6,0x8e,0x0f,0x53,0xcb, 0x70,0x63,0x03,0xe3,0x4c,0xf8,0x84,0xab,0x58,0x6a,0x7c,0x91,0xda,0xbf,0xec,0xf1, 0x81,0x1f,0x87,0x17,0x15,0x2a,0x67,0x0f,0x94,0xb2,0x1b,0xb2,0xef,0x9d,0x5b,0x9f, 0xd8,0xe5,0xaf,0x69,0xe9,0xe9,0x18,0x5f,0x8b,0xa1,0xc6,0xe1,0x43,0x2f,0x7c,0x7e, 0xaa,0xb0,0x7d,0xc9,0xc2,0xc3,0x85,0xc2,0xbb,0x99,0xfb,0xbe,0x5f,0xd2,0xf8,0x5a, 0x7b,0xcf,0xf2,0xb6,0x7d,0xec,0xf4,0x56,0x82,0x65,0x8a,0x73,0x0a,0x82,0x88,0xb0, 0xb6,0xf3,0xd1,0xfe,0x7b,0x57,0x2c,0x22,0xf2,0xd8,0xd2,0x83,0x87,0x62,0xd2,0x18, 0xec,0xd5,0xc2,0x3c,0x1a,0x9f,0x04,0x2c,0x13,0xb4,0xd2,0xff,0xe5,0x88,0xb1,0x5e, 0x43,0x73,0x6b,0xa7,0x16,0x39,0xf3,0x34,0x57,0xf1,0x82,0x78,0xd7,0xa6,0xb9,0x4c, 0xb2,0x44,0x34,0x1c,0xf9,0xb6,0x8f,0x18,0x12,0x8e,0xe6,0x8e,0xfc,0xe0,0x3e,0x72, 0xed,0xf3,0x7f,0xe7,0x8a,0xe7,0xdf,0x7c,0x63,0xf3,0xb6,0x74,0x66,0xa3,0x10,0x91, 0x2c,0x1a,0x9e,0xf9,0x69,0x80,0x2a,0x1d,0x1d,0x6b,0xca,0xcd,0xba,0xb8,0xa9,0x23, 0x01,0xaa,0xea,0xb4,0x70,0x62,0xe6,0x7c,0x81,0xe1,0x34,0xe4,0x53,0x4c,0xb0,0x50, 0xd9,0xff,0x21,0x53,0x32,0x7a,0x36,0xd7,0xfc,0x40,0xd2,0x2f,0xeb,0xd8,0xf1,0xd3, 0x47,0x7f,0xcb,0xb9,0xa7,0xb6,0xa8,0x40,0x1a,0x48,0x31,0xc9,0xe2,0x8a,0xdf,0x71, 0x99,0xeb,0x1b,0xaf,0x54,0x5a,0xf7,0x1c,0x3d,0x9d,0xab,0x58,0x5f,0xc6,0x1a,0xb6, 0x76,0x71,0x2d,0x8b,0x2b,0x0e,0x72,0x99,0x1b,0x2d,0xbb,0x6f,0x76,0x83,0xe7,0x25, 0x5c,0xe0,0x56,0x74,0xb7,0x18,0x57,0x12,0x2e,0x13,0xf1,0x0c,0x16,0x57,0x62,0x4a, 0x30,0x32,0x98,0x0f,0xed,0x0c,0xdf,0x7a,0x7e,0xcc,0x4b,0xfa,0x7e,0xe9,0x63,0x15, 0xae,0x08,0x0b,0xa9,0xed,0x09,0x63,0xa1,0xc2,0xa4,0x20,0x48,0xde,0x19,0x36,0x59, 0xae,0x6f,0xd8,0xcd,0x69,0xd6,0x51,0xdf,0x58,0x54,0x99,0x14,0x8f,0x13,0x70,0x89, 0x1b,0xb8,0x0b,0x55,0x2d,0x2a,0x96,0x2a,0xef,0x76,0x95,0xa1,0x7c,0xd9,0xc8,0x1d, 0x56,0x14,0x51,0xe1,0x1a,0xa5,0xbf,0x55,0x41,0x9d,0x62,0x89,0xd8,0xbb,0x8d,0x14, 0xfc,0xc5,0x70,0x22,0x96,0x04,0x54,0x94,0x2a,0x51,0x41,0x45,0x89,0x5c,0xc0,0x89, 0x52,0x65,0x89,0xa4,0x1b,0xe0,0xdf,0x8e,0x26,0x2d,0xa7,0xd2,0x5c,0x45,0x54,0x50, 0x51,0x60,0x30,0xef,0x2b,0x4a,0x95,0x25,0x92,0x68,0x74,0x6e,0xf6,0x5f,0x7f,0x3a, 0x3b,0xdb,0x29,0xaa,0xa2,0xa2,0x22,0x88,0x08,0x46,0xc4,0x9a,0x7c,0xdf,0x25,0xdf, 0xc7,0x81,0x02,0x96,0xc8,0x1f,0xd9,0xc0,0xa9,0xa2,0x0a,0x28,0x53,0x04,0x04,0x41, 0x04,0x35,0x80,0x03,0x42,0xc0,0x52,0xe5,0x7b,0x65,0xa6,0x63,0x7c,0x20,0x54,0x01, 0x2c,0x13,0x4c,0x9c,0x9b,0x08,0x15,0x71,0x80,0xa5,0x4e,0xaa,0x28,0x11,0x4b,0x9d, 0xd4,0xa1,0x02,0x18,0xea,0xe4,0x50,0x14,0xb0,0x40,0x91,0x3a,0x9c,0xbf,0x4d,0x95, 0x88,0x05,0x12,0xd4,0x21,0xe5,0x84,0x2a,0x4b,0xbd,0x1c,0x04,0x80,0xa5,0x4e,0x61, 0x09,0x19,0x17,0xb0,0xd4,0x29,0x07,0x41,0xe8,0x09,0x16,0x31,0x4d,0x39,0x6e,0x2e, 0x20,0xf0,0xde,0x8a,0x1b,0x4c,0xa7,0xd8,0xa5,0xdc,0xdc,0x50,0xb9,0x65,0xfd,0xdb, 0xad,0x0d,0x5e,0xa7,0x75,0x26,0xbe,0x40,0x0f,0xe4,0x98,0x5e,0xbe,0xb9,0x7b,0x56, 0x3a,0x95,0x4a,0x88,0xb3,0xa1,0x69,0x98,0xb3,0x28,0x53,0x72,0x4c,0x47,0x6c,0x43, 0x7a,0x46,0x32,0xee,0x1b,0x42,0x11,0xd3,0x17,0x8c,0x05,0x65,0x65,0x3a,0x62,0x63, 0xc9,0x98,0x35,0x90,0x71,0x82,0x88,0x31,0x27,0x55,0x99,0x96,0x18,0x4f,0xe8,0x74, 0xa1,0xea,0x7f,0x66,0xc2,0x6f,0x17,0x59,0xdf,0xbf,0x1b,0x00,0x00,0x00,0x00,0x49, 0x45,0x4e,0x44,0xae,0x42,0x60,0x82, }; cups-2.4.7/tools/printer-png.h0000644000175000017500000011040714502571342016142 0ustar zdohnalzdohnalstatic const unsigned char printer_png[] = { 0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52, 0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x08,0x06,0x00,0x00,0x00,0xc3,0x3e,0x61, 0xcb,0x00,0x00,0x04,0x19,0x69,0x43,0x43,0x50,0x6b,0x43,0x47,0x43,0x6f,0x6c,0x6f, 0x72,0x53,0x70,0x61,0x63,0x65,0x47,0x65,0x6e,0x65,0x72,0x69,0x63,0x52,0x47,0x42, 0x00,0x00,0x38,0x8d,0x8d,0x55,0x5d,0x68,0x1c,0x55,0x14,0x3e,0xbb,0x73,0x67,0x23, 0x24,0xce,0x53,0x6c,0x34,0x85,0x74,0xa8,0x3f,0x0d,0x25,0x0d,0x93,0x56,0x34,0xa1, 0xb4,0xba,0x7f,0xdd,0xdd,0x36,0x6e,0x96,0x49,0x36,0xda,0x22,0xe8,0x64,0xf6,0xee, 0xce,0x98,0xc9,0xce,0x38,0x33,0xbb,0xfd,0xa1,0x4f,0x45,0x50,0x7c,0x31,0xea,0x9b, 0x14,0xc4,0xbf,0xb7,0x80,0x20,0x28,0xf5,0x0f,0xdb,0x3e,0xb4,0x2f,0x95,0x0a,0x25, 0xda,0xd4,0x20,0x28,0x3e,0xb4,0xf8,0x83,0x50,0xe8,0x8b,0xa6,0xeb,0x99,0x3b,0x33, 0x99,0x69,0xba,0xb1,0xde,0x65,0xee,0x7c,0xf3,0x9d,0xef,0x9e,0x7b,0xee,0xb9,0x67, 0xef,0x05,0xe8,0xb9,0xaa,0x58,0x96,0x91,0x14,0x01,0x16,0x9a,0xae,0x2d,0x17,0x32, 0xe2,0x73,0x87,0x8f,0x88,0x3d,0x2b,0x90,0x84,0x87,0xa0,0x17,0x06,0xa1,0x57,0x51, 0x1d,0x2b,0x5d,0xa9,0x4c,0x02,0x36,0x4f,0x0b,0x77,0xb5,0x5b,0xdf,0x43,0xc2,0x7b, 0x5f,0xd9,0xd5,0xdd,0xfe,0x9f,0xad,0xb7,0x46,0x1d,0x15,0x20,0x71,0x1f,0x62,0xb3, 0xe6,0xa8,0x0b,0x88,0x8f,0x01,0xf0,0xa7,0x55,0xcb,0x76,0x01,0x7a,0xfa,0x91,0x1f, 0x3f,0xea,0x5a,0x1e,0xf6,0x62,0xe8,0xb7,0x31,0x40,0xc4,0x2f,0x7a,0xb8,0xe1,0x63, 0xd7,0xc3,0x73,0x3e,0x7e,0x8d,0x69,0x66,0xe4,0x2c,0xe2,0xd3,0x88,0x05,0x55,0x53, 0x6a,0x88,0x97,0x10,0x8f,0xcc,0xc5,0xf8,0x46,0x0c,0xfb,0x31,0xb0,0xd6,0x5f,0xa0, 0x4d,0x6a,0xeb,0xaa,0xe8,0xe5,0xa2,0x62,0x9b,0x75,0xdd,0xa0,0xb1,0x70,0xef,0x61, 0xfe,0x9f,0x6d,0xc1,0x68,0x85,0xf3,0x6d,0xc3,0xa7,0xcf,0x99,0x9f,0x3e,0x84,0xef, 0x61,0x5c,0xfb,0x2b,0x35,0x25,0xe7,0xe1,0x51,0xc4,0x4b,0xaa,0x92,0x9f,0x46,0xfc, 0x08,0xe2,0x6b,0x6d,0x7d,0xb6,0x1c,0xe0,0xdb,0x96,0x9b,0x91,0x11,0x3f,0x06,0x90, 0xdc,0xde,0x9a,0xaf,0xa6,0x11,0xef,0x44,0x5c,0xac,0xdb,0x07,0xaa,0xbe,0x9f,0xa4, 0xad,0xb5,0x8a,0x21,0x7e,0xe7,0x84,0x36,0xf3,0x2c,0xe2,0x2d,0x88,0xcf,0x37,0xe7, 0xca,0x53,0xc1,0xd8,0xab,0xaa,0x93,0xc5,0x9c,0xc1,0x76,0xc4,0xb7,0x35,0x5a,0xf2, 0xf2,0x3b,0x04,0xc0,0x89,0xba,0x5b,0x9a,0xf1,0xc7,0x72,0xfb,0x6d,0x53,0x9e,0xf2, 0xe7,0xe5,0xea,0x35,0x9a,0xcb,0x7b,0x79,0x44,0xfc,0xfa,0xbc,0x79,0x48,0xf6,0x7d, 0x72,0x9f,0x39,0xed,0xe9,0x7c,0xe8,0xf3,0x84,0x96,0x2d,0x07,0xfc,0xa5,0x97,0x94, 0x83,0x15,0xc4,0x83,0x88,0x7f,0xa1,0x46,0x41,0xf6,0xe7,0xe2,0xfe,0xb1,0xdc,0x4a, 0x10,0x03,0x19,0x6a,0x1a,0xe5,0x49,0x7f,0x2e,0x92,0xa3,0x0e,0x5b,0x2f,0xe3,0x5d, 0x6d,0xa6,0xe8,0xcf,0x4b,0x0c,0x17,0x37,0xd4,0x1f,0x4b,0x16,0xeb,0xfa,0x81,0x52, 0xa0,0xff,0x44,0xb3,0x8b,0x72,0x80,0xaf,0x59,0x06,0xab,0x51,0x8c,0x8d,0x4f,0xda, 0x2d,0xb9,0xea,0xeb,0xf9,0x51,0xc5,0xce,0x17,0x7c,0x9f,0x7c,0x85,0x36,0xab,0x81, 0x7f,0xbe,0x0d,0xb3,0x09,0x05,0x28,0x98,0x30,0x87,0xbd,0x0a,0x4d,0x58,0x03,0x11, 0x64,0x28,0x40,0x06,0xdf,0x16,0xd8,0x68,0xa9,0x83,0x0e,0x06,0x32,0x14,0xad,0x14, 0x19,0x8a,0x5f,0xa1,0x66,0x17,0x1b,0xe7,0xc0,0x3c,0xf2,0x3a,0xb4,0x99,0xcd,0xc1, 0xbe,0xc2,0x94,0xfe,0xc8,0xc8,0x5f,0x83,0xf9,0xb8,0xce,0xb4,0x2a,0x64,0x87,0x3e, 0x82,0x16,0xb2,0x1a,0xfc,0x8e,0xac,0x16,0xd3,0x65,0xf1,0xab,0x85,0x5c,0x63,0x13, 0x3f,0x7e,0x2c,0x37,0x02,0x3f,0x26,0x19,0x20,0x12,0xd9,0x83,0xcf,0x5e,0x32,0x49, 0xf6,0x91,0x71,0x32,0x01,0x22,0x79,0x8a,0x3c,0x4d,0xf6,0x93,0x1c,0xb2,0x13,0x64, 0xef,0xfa,0xd8,0x4a,0x6c,0x45,0x5e,0x3c,0x37,0xd6,0xfd,0xbc,0x8c,0x33,0x52,0xa6, 0x9b,0x45,0xdd,0x39,0xb4,0xbb,0xa0,0x60,0xff,0x33,0x2a,0x4c,0x5c,0x53,0xd7,0xac, 0x2c,0x0e,0xb6,0x86,0x23,0xcb,0x29,0xfb,0x05,0x5d,0xbd,0xfc,0xc6,0x5f,0xb1,0x5c, 0xe9,0x2c,0x37,0x51,0xb6,0xe2,0x19,0x9d,0xba,0x57,0xce,0xf9,0x5f,0xf9,0xeb,0xfc, 0x32,0xf6,0x2b,0xfc,0x6a,0xa4,0xe0,0x7f,0xe4,0x57,0xf1,0xb7,0x72,0xc7,0x5a,0xcc, 0xbb,0xb2,0x4c,0xc3,0xec,0x6c,0x58,0x73,0x77,0x55,0x1a,0x6d,0x06,0xe3,0x16,0xf0, 0xd1,0x99,0xc5,0x89,0xc5,0x1d,0xf3,0x71,0xf1,0xe4,0x57,0x0f,0x46,0x7e,0x96,0xc9, 0x99,0xe7,0xaf,0xf4,0x5d,0x3c,0x59,0x6f,0x2e,0x0e,0x46,0xac,0x97,0x05,0xfa,0x6a, 0xf9,0x56,0x19,0x4e,0x8d,0x44,0xac,0xf4,0x83,0xf4,0x87,0xb4,0x2c,0xbd,0x27,0x7d, 0x28,0xfd,0xc6,0xbd,0xcd,0x7d,0xca,0x7d,0xcd,0x7d,0xce,0x7d,0xc1,0x5d,0x02,0x91, 0x3b,0xcb,0x9d,0xe3,0xbe,0xe1,0x2e,0x70,0x1f,0x73,0x5f,0xc6,0xf6,0x6a,0xf3,0x1a, 0x5a,0xdf,0x7b,0x16,0x79,0x18,0xb7,0x67,0xe9,0x96,0x6b,0xac,0x4a,0x21,0x23,0x6c, 0x15,0x1e,0x16,0x72,0xc2,0x36,0xe1,0x51,0x61,0x32,0xf2,0x27,0x0c,0x08,0x63,0x42, 0x51,0xd8,0x81,0x96,0xad,0xeb,0xfb,0x16,0x9f,0x2f,0x9e,0x3d,0x1d,0x0e,0x63,0x1f, 0xe6,0xa7,0xfb,0x5c,0xbe,0x2e,0x56,0x01,0x89,0xfb,0xb1,0x02,0xf4,0x4d,0xfe,0x55, 0x55,0x54,0xe9,0x70,0x94,0x29,0x1d,0x56,0x6f,0x4d,0x38,0xbe,0x41,0x13,0x8c,0x24, 0x43,0x64,0x8c,0x94,0x36,0x54,0xf7,0xb8,0x57,0xf3,0xa1,0x22,0x95,0x4f,0xe5,0x52, 0x69,0x10,0x53,0x3b,0x53,0x13,0xa9,0xb1,0xd4,0x41,0x0f,0x87,0xb3,0xa6,0x76,0xa0, 0x6d,0x02,0xfb,0xfc,0x1d,0xd5,0xa9,0x6e,0xb2,0x52,0xea,0xd2,0x63,0xde,0x7d,0x02, 0x59,0xd3,0x3a,0x6e,0xeb,0x0d,0xcd,0x15,0x77,0x4b,0xd2,0x93,0x62,0x1a,0xaf,0x36, 0x2a,0x96,0x9a,0xea,0xe8,0x88,0xa8,0x18,0x86,0xc8,0x4c,0x8e,0x68,0x53,0x87,0xda, 0x6d,0x5a,0x1b,0x05,0xef,0xde,0xf4,0x8f,0xf4,0x9b,0x32,0xbb,0x0f,0x13,0x5b,0x2e, 0x47,0x9c,0xfb,0x0c,0xc0,0xbe,0x3f,0xf1,0xec,0xfb,0x2e,0xe2,0x8e,0xb4,0x00,0x96, 0x1c,0x80,0x81,0xc7,0x23,0x6e,0x18,0xcf,0xca,0x07,0xde,0x05,0x38,0xf3,0x84,0xda, 0xb2,0xdb,0xc1,0x1d,0x91,0x48,0x7c,0x0b,0xe0,0xd4,0xf7,0xec,0xf6,0xbf,0xfa,0x32, 0x78,0x7e,0xfd,0xd4,0xe9,0xdc,0xc4,0x73,0xac,0xe7,0x2d,0x80,0xb5,0x37,0x3b,0x9d, 0xbf,0xdf,0xef,0x74,0xd6,0x3e,0x40,0xff,0xab,0x00,0x67,0x8d,0x7f,0x01,0xa0,0x9f, 0x7c,0x55,0x03,0x5c,0x0b,0xef,0x00,0x00,0x00,0x38,0x65,0x58,0x49,0x66,0x4d,0x4d, 0x00,0x2a,0x00,0x00,0x00,0x08,0x00,0x01,0x87,0x69,0x00,0x04,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x00,0x00,0x02,0xa0,0x02,0x00,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x80,0xa0,0x03,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x80,0x00,0x00,0x00,0x00,0x6b,0x46,0x26,0x4d,0x00,0x00,0x03,0x62,0x69,0x54, 0x58,0x74,0x58,0x4d,0x4c,0x3a,0x63,0x6f,0x6d,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x78,0x6d,0x70,0x00,0x00,0x00,0x00,0x00,0x3c,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x78,0x3d,0x22,0x61,0x64,0x6f,0x62, 0x65,0x3a,0x6e,0x73,0x3a,0x6d,0x65,0x74,0x61,0x2f,0x22,0x20,0x78,0x3a,0x78,0x6d, 0x70,0x74,0x6b,0x3d,0x22,0x58,0x4d,0x50,0x20,0x43,0x6f,0x72,0x65,0x20,0x35,0x2e, 0x34,0x2e,0x30,0x22,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x52,0x44, 0x46,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x72,0x64,0x66,0x3d,0x22,0x68,0x74,0x74, 0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x77,0x33,0x2e,0x6f,0x72,0x67,0x2f,0x31, 0x39,0x39,0x39,0x2f,0x30,0x32,0x2f,0x32,0x32,0x2d,0x72,0x64,0x66,0x2d,0x73,0x79, 0x6e,0x74,0x61,0x78,0x2d,0x6e,0x73,0x23,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x3c,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, 0x6e,0x20,0x72,0x64,0x66,0x3a,0x61,0x62,0x6f,0x75,0x74,0x3d,0x22,0x22,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73, 0x3a,0x64,0x63,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x70,0x75,0x72,0x6c, 0x2e,0x6f,0x72,0x67,0x2f,0x64,0x63,0x2f,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73, 0x2f,0x31,0x2e,0x31,0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x49,0x70,0x74,0x63,0x34,0x78,0x6d, 0x70,0x45,0x78,0x74,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x69,0x70,0x74, 0x63,0x2e,0x6f,0x72,0x67,0x2f,0x73,0x74,0x64,0x2f,0x49,0x70,0x74,0x63,0x34,0x78, 0x6d,0x70,0x45,0x78,0x74,0x2f,0x32,0x30,0x30,0x38,0x2d,0x30,0x32,0x2d,0x32,0x39, 0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78, 0x6d,0x6c,0x6e,0x73,0x3a,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3d,0x22, 0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x6e,0x73,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x63,0x6f,0x6d,0x2f,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x2f,0x31,0x2e, 0x30,0x2f,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64, 0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x53,0x65,0x71,0x3e, 0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x4d,0x69,0x63,0x68,0x61,0x65,0x6c,0x20, 0x53,0x77,0x65,0x65,0x74,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66, 0x3a,0x53,0x65,0x71,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c, 0x2f,0x64,0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64,0x63,0x3a,0x72,0x69,0x67,0x68,0x74,0x73, 0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72, 0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x20,0x78, 0x6d,0x6c,0x3a,0x6c,0x61,0x6e,0x67,0x3d,0x22,0x78,0x2d,0x64,0x65,0x66,0x61,0x75, 0x6c,0x74,0x22,0x3e,0x43,0x6f,0x70,0x79,0x72,0x69,0x67,0x68,0x74,0x20,0x32,0x30, 0x31,0x30,0x20,0x41,0x70,0x70,0x6c,0x65,0x20,0x49,0x6e,0x63,0x2e,0x3c,0x2f,0x72, 0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x64,0x63,0x3a,0x72,0x69,0x67,0x68, 0x74,0x73,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x70,0x68, 0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65, 0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x70,0x68,0x6f,0x74, 0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65,0x3e,0x0a, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63, 0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64, 0x66,0x3a,0x52,0x44,0x46,0x3e,0x0a,0x3c,0x2f,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x3e,0x0a,0xa0,0x50,0x98,0x64,0x00,0x00,0x13,0xdb,0x49,0x44,0x41,0x54, 0x78,0xda,0xed,0x9d,0x07,0x90,0x55,0x35,0x17,0xc7,0xd7,0x5e,0xc7,0xde,0xd7,0x55, 0xec,0xbd,0x0b,0x0a,0x28,0x88,0x88,0xae,0x05,0x7b,0xd7,0xc1,0xbe,0x2a,0x28,0x22, 0xba,0xe8,0x88,0x8d,0xcf,0x82,0x34,0xa5,0x0a,0xa2,0x28,0xae,0xa8,0x58,0x41,0x71, 0x64,0x11,0x07,0xc5,0x2e,0xa2,0xa0,0xa8,0xe8,0x88,0xd8,0x16,0x15,0xb0,0x20,0x56, 0x14,0xcd,0xb7,0xbf,0xb8,0xe7,0x9a,0xcd,0xe6,0xbe,0x77,0xef,0x6b,0xbb,0xdc,0x97, 0xcc,0xfc,0x27,0xf7,0xdd,0x92,0x77,0x6f,0xce,0x3f,0x27,0x27,0xc9,0x49,0x52,0x52, 0x92,0x22,0x28,0xa5,0xca,0x6a,0x51,0x59,0x8b,0xea,0x5a,0xd4,0xd4,0x62,0x89,0xf2, 0xa1,0xa9,0x87,0x25,0x75,0xb2,0xaa,0xae,0x93,0x5d,0x59,0x49,0xdc,0x50,0xfb,0x50, 0x69,0x2d,0xaa,0x6a,0xb1,0xd4,0xe7,0xe7,0x32,0x1f,0x96,0xd6,0xc9,0xb2,0x34,0xaa, 0xf0,0xcb,0x6b,0xb1,0xc8,0xe7,0x5b,0xe2,0x02,0x32,0x2d,0x4f,0x27,0xfc,0x0a,0x5f, 0xea,0x13,0xaf,0x0d,0x2a,0x52,0x95,0x7c,0x2f,0xfc,0xe2,0x20,0x41,0xb9,0xab,0xce, 0xf7,0x6a,0xbf,0xb8,0xaa,0x83,0x52,0x93,0x00,0x55,0xf6,0x1d,0x7b,0xee,0xb9,0xa7, 0xda,0x7c,0xf3,0xcd,0xd5,0x4d,0x37,0xdd,0xe4,0xb3,0x2b,0x99,0xa1,0xca,0x6c,0xea, 0x35,0x50,0xfd,0x1b,0x6c,0xb0,0x81,0xe2,0xf2,0xe5,0x97,0x5f,0xee,0xb3,0x2a,0xb9, 0x55,0x41,0x59,0x49,0x5d,0x5b,0xb1,0x41,0xe8,0xd1,0xa3,0x87,0xba,0xe8,0xa2,0x8b, 0xd4,0x13,0x4f,0x3c,0xe1,0xb3,0x2a,0xb9,0xa1,0xb2,0xa4,0xae,0xc3,0xc0,0x87,0xe2, 0x0c,0xd5,0x10,0xa0,0xc6,0x75,0x65,0xe8,0xd0,0xa1,0xaa,0x4f,0x9f,0x3e,0xea,0xc5, 0x17,0x5f,0xac,0x77,0x7e,0xe6,0xcc,0x99,0xfa,0x7c,0xdf,0xbe,0x7d,0xd5,0x9f,0x7f, 0xfe,0xa9,0xe6,0xcf,0x9f,0xaf,0xaa,0xaa,0xaa,0x54,0xa7,0x4e,0x9d,0xd4,0x29,0xa7, 0x9c,0xa2,0xfa,0xf5,0xeb,0xa7,0xe6,0xcd,0x9b,0xa7,0xd2,0xa5,0xf9,0xcf,0x3f,0xff, 0xa8,0x57,0x5f,0x7d,0x55,0xdd,0x78,0xe3,0x8d,0xea,0xa8,0xa3,0x8e,0xd2,0x55,0xcd, 0xd3,0x4f,0x3f,0x9d,0xf2,0x6d,0xbf,0xfc,0xf2,0x4b,0x75,0xfb,0xed,0xb7,0xab,0xd3, 0x4e,0x3b,0x4d,0x1d,0x77,0xdc,0x71,0xda,0x3e,0xf9,0xe4,0x93,0x4f,0xea,0xdd,0x33, 0x78,0xf0,0x60,0xfd,0x1f,0xcf,0x3d,0xf7,0x5c,0x68,0x3a,0xcf,0x3f,0xff,0xbc,0xbe, 0x67,0xf4,0xe8,0xd1,0x0d,0xae,0x8d,0x1f,0x3f,0x5e,0x5d,0x79,0xe5,0x95,0xaa,0xbc, 0xbc,0x5c,0x5d,0x7c,0xf1,0xc5,0xea,0xc1,0x07,0x1f,0xd4,0xef,0x9a,0xd0,0x50,0x03, 0x01,0x9c,0xdd,0xbb,0x61,0x36,0x00,0x42,0xe4,0x3c,0x80,0x0c,0x9b,0x6c,0xb2,0x49, 0xf0,0x5b,0xc0,0xb9,0xd7,0x5e,0x7b,0x2d,0x65,0x9a,0x57,0x5d,0x75,0x55,0x83,0xe7, 0xc0,0xf9,0xe7,0x9f,0xaf,0x89,0xd5,0x80,0xaa,0xd5,0xd5,0x6a,0xbd,0xf5,0xd6,0x6b, 0x70,0xff,0xda,0x6b,0xaf,0xad,0xaf,0x49,0x40,0x70,0x9c,0xdf,0x76,0xdb,0x6d,0x43, 0xbf,0x7a,0xfb,0xed,0xb7,0xd7,0xf7,0x74,0xee,0xdc,0x39,0x38,0xf7,0xf3,0xcf,0x3f, 0x6b,0x02,0xbb,0xde,0x09,0xb2,0xfd,0xf6,0xdb,0x6f,0x49,0x24,0xc0,0x92,0x92,0xb0, 0x2b,0x51,0x08,0xb0,0xe9,0xa6,0x9b,0xaa,0xe5,0x97,0x5f,0x5e,0xb5,0x68,0xd1,0x42, 0x67,0x66,0xbb,0x76,0xed,0x82,0x6b,0x65,0x65,0x65,0x6a,0xc9,0x92,0x25,0xce,0x34, 0xd7,0x59,0x67,0x1d,0x1d,0xf3,0x9b,0x4c,0x3f,0xef,0xbc,0xf3,0x82,0x6b,0xe0,0xce, 0x3b,0xef,0xac,0xf7,0xdc,0x87,0x1f,0x7e,0xa8,0x56,0x58,0x61,0x05,0x7d,0xed,0xd0, 0x43,0x0f,0x55,0x13,0x26,0x4c,0x50,0x4f,0x3e,0xf9,0xa4,0xda,0x7d,0xf7,0xdd,0xf5, 0xb9,0x0d,0x37,0xdc,0x30,0x10,0xd0,0xc3,0x0f,0x3f,0x1c,0xa4,0x83,0x86,0xb1,0xc3, 0x4b,0x2f,0xbd,0x14,0x5c,0x9f,0x31,0x63,0x46,0x70,0xfe,0xf4,0xd3,0x4f,0xd7,0xe7, 0xd6,0x5c,0x73,0x4d,0xad,0x65,0xd0,0x12,0xd7,0x5e,0x7b,0x6d,0xf0,0xbf,0x68,0xb6, 0x24,0x86,0xac,0x08,0x40,0xe9,0x9b,0x34,0x69,0x52,0xbd,0xeb,0x10,0x41,0xae,0xdf, 0x75,0xd7,0x5d,0xce,0x34,0xc1,0x09,0x27,0x9c,0xa0,0x7e,0xfd,0xf5,0xd7,0xe0,0x1a, 0xaa,0x7c,0xad,0xb5,0xd6,0x0a,0xc8,0xf3,0xd7,0x5f,0x7f,0x05,0xd7,0x8e,0x3c,0xf2, 0x48,0x7d,0x7e,0xe7,0x9d,0x77,0x56,0x4b,0x97,0xfe,0xd7,0x60,0xf9,0xfa,0xeb,0xaf, 0xd5,0xca,0x2b,0xaf,0xac,0xaf,0x0d,0x1b,0x36,0x4c,0x9f,0xfb,0xfd,0xf7,0xdf,0xf5, 0x7b,0x71,0xee,0xc2,0x0b,0x2f,0x6c,0xf0,0x5d,0x67,0x9d,0x75,0x96,0xbe,0xd6,0xbc, 0x79,0xf3,0xe0,0xdc,0xb4,0x69,0xd3,0xd4,0x72,0xcb,0x2d,0xa7,0xcf,0x43,0x20,0x33, 0x5c,0x72,0xc9,0x25,0x01,0xd9,0xcd,0x77,0xf2,0x04,0xa8,0xc5,0x3b,0xef,0xbc,0xd3, 0xe0,0x39,0xea,0x7f,0x29,0x35,0x67,0x9e,0x79,0xa6,0x33,0xcd,0x63,0x8f,0x3d,0xd6, 0x59,0xaf,0xd2,0xea,0x90,0xb4,0xe7,0xcc,0x99,0xa3,0xcf,0x2d,0x5c,0xb8,0x30,0x38, 0xd7,0xbf,0x7f,0xff,0x06,0xcf,0xb4,0x6e,0xdd,0x5a,0x5f,0xc3,0x06,0x91,0x50,0x51, 0x51,0x11,0x68,0x9a,0x3f,0xfe,0xf8,0x23,0x38,0xff,0xd3,0x4f,0x3f,0xa9,0xd5,0x57, 0x5f,0x5d,0x5f,0x1b,0x39,0x72,0x64,0x03,0x21,0x43,0x40,0xfb,0xbd,0x26,0x4f,0x9e, 0x1c,0xfc,0xff,0xdc,0xb9,0x73,0x3d,0x01,0x4c,0x02,0x90,0xa1,0xae,0xb0,0xc5,0x16, 0x5b,0xe8,0xeb,0x08,0x27,0x4e,0xdf,0xc2,0xbd,0xf7,0xde,0x1b,0xa4,0x4d,0xc6,0x13, 0x50,0xe3,0x72,0x6e,0x8f,0x3d,0xf6,0x50,0xc7,0x1f,0x7f,0x7c,0x3d,0xac,0xbf,0xfe, 0xfa,0xfa,0xda,0x41,0x07,0x1d,0x14,0xa4,0x63,0x3e,0xf3,0xe8,0xa3,0x8f,0x06,0xe7, 0x47,0x8c,0x18,0x11,0xa8,0x79,0xea,0x7c,0x09,0x1d,0x3a,0x74,0xd0,0xe7,0x57,0x5a, 0x69,0xa5,0x06,0xe9,0x1f,0x70,0xc0,0x01,0x41,0x5a,0xa6,0x41,0x3c,0x76,0xec,0x58, 0xfd,0x9f,0xe9,0x70,0xd9,0x65,0x97,0x15,0x1f,0x01,0xf6,0xde,0x7b,0x6f,0x7d,0x7d, 0x87,0x1d,0x76,0x88,0x45,0x00,0x5a,0x01,0x92,0xb6,0xa8,0xe2,0x07,0x1e,0x78,0xc0, 0x69,0x98,0xd9,0xa0,0x7a,0x30,0xc3,0x76,0xdb,0x6d,0xa7,0xcf,0x53,0x7d,0x48,0xd8, 0x77,0xdf,0x7d,0x03,0x43,0xd3,0x0c,0xdb,0x6c,0xb3,0x4d,0xa4,0xff,0x30,0xc9,0xd4, 0xbb,0x77,0xef,0x48,0xcf,0xd8,0x85,0xa0,0x28,0x08,0x80,0x05,0xce,0xf5,0xf6,0xed, 0xdb,0xc7,0x22,0xc0,0x98,0x31,0x63,0x82,0xb4,0x5f,0x7e,0xf9,0xe5,0xc0,0xfa,0x97, 0x73,0xbd,0x7a,0xf5,0x52,0x2f,0xbc,0xf0,0x82,0x13,0xd4,0xe3,0x66,0xa0,0x89,0xc8, 0x33,0x2b,0xae,0xb8,0xa2,0xfa,0xf6,0xdb,0x6f,0x75,0x8b,0x45,0xd2,0x79,0xf3,0xcd, 0x37,0xeb,0xdd,0xbb,0xff,0xfe,0xfb,0xeb,0xf3,0x5b,0x6d,0xb5,0x55,0x68,0xfa,0x60, 0xc1,0x82,0x05,0xc1,0x33,0xdf,0x7d,0xf7,0x9d,0x7a,0xf7,0xdd,0x77,0xd3,0xa2,0xa9, 0x57,0x1b,0x39,0x27,0x00,0x86,0xd2,0x1a,0x6b,0xac,0xe1,0x2c,0x69,0xe9,0x08,0x70, 0xeb,0xad,0xb7,0x06,0x69,0xd7,0xd4,0xd4,0x04,0x6d,0x7f,0x39,0x47,0x9f,0x41,0xd4, 0xf0,0xf9,0xe7,0x9f,0x07,0x86,0x1d,0x56,0xfd,0xa5,0x97,0x5e,0xaa,0x8f,0x69,0x39, 0xd8,0xe1,0xdc,0x73,0xcf,0xd5,0xd7,0x56,0x5d,0x75,0xd5,0x7a,0x36,0x43,0x31,0x84, 0xac,0x08,0x80,0x81,0xe6,0xea,0x48,0x91,0xeb,0xf7,0xdd,0x77,0x9f,0x33,0xcd,0x2e, 0x5d,0xba,0x38,0xff,0x93,0x01,0x28,0x29,0x89,0xa6,0x31,0xd6,0xac,0x59,0x33,0x7d, 0x7e,0xe3,0x8d,0x37,0x56,0x3f,0xfe,0xf8,0x63,0xe4,0x8f,0x3b,0xf8,0xe0,0x83,0xf5, 0x73,0x3b,0xee,0xb8,0xa3,0x5a,0x77,0xdd,0x75,0xf5,0xf1,0x90,0x21,0x43,0x1a,0xdc, 0xc7,0x7b,0xca,0x3b,0x43,0x42,0x4f,0x80,0x88,0x04,0xd8,0x69,0xa7,0x9d,0xd4,0x5b, 0x6f,0xbd,0x55,0xaf,0xa7,0x8e,0x7a,0x9f,0x6b,0x08,0xcd,0x6e,0x36,0x49,0x9a,0xb4, 0x12,0xae,0xbe,0xfa,0xea,0x7a,0xfd,0x04,0xf4,0xcc,0x49,0xba,0x77,0xdf,0x7d,0x77, 0xbd,0xe7,0x68,0xf7,0xcb,0x35,0x0c,0x2b,0x4a,0xb7,0x04,0x9a,0x85,0xb4,0xe7,0xed, 0xe6,0x28,0xe1,0xfe,0xfb,0xef,0xaf,0x57,0x1f,0xaf,0xb6,0xda,0x6a,0x4e,0x02,0xfd, 0xfd,0xf7,0xdf,0xba,0x59,0x28,0x5a,0x80,0xe6,0xab,0x49,0x40,0x54,0x3f,0xef,0x40, 0xb3,0xd3,0x13,0xc0,0x20,0x80,0x00,0xa1,0x1f,0x78,0xe0,0x81,0x81,0xea,0x5f,0x65, 0x95,0x55,0x9c,0xdd,0xba,0x66,0x3f,0x80,0x58,0xe3,0x6d,0xdb,0xb6,0x0d,0x6c,0x06, 0xd0,0xa6,0x4d,0x1b,0x67,0x4f,0xa0,0xa8,0x70,0x40,0xdb,0x9f,0x16,0x01,0x1d,0x50, 0xf2,0x9f,0x1c,0xdb,0xe1,0x97,0x5f,0x7e,0xd1,0xff,0x21,0xcf,0x99,0x4d,0x45,0x3b, 0xbc,0xf7,0xde,0x7b,0xaa,0xb4,0xb4,0xb4,0x5e,0x27,0x17,0x06,0x9c,0x69,0x20,0x3e, 0xfb,0xec,0xb3,0xc5,0x43,0x80,0x8d,0x36,0xda,0x48,0x7f,0xf4,0x15,0x57,0x5c,0x11, 0x4a,0x80,0x29,0x53,0xa6,0x68,0x2d,0x60,0x0a,0x95,0x0c,0x7b,0xe5,0x95,0x57,0x52, 0x92,0x8a,0x76,0x37,0xfd,0xed,0x94,0x36,0x79,0x8e,0xe3,0x0b,0x2e,0xb8,0xa0,0x41, 0xef,0xa1,0x19,0x9e,0x7a,0xea,0xa9,0x7a,0x64,0x11,0x23,0x8f,0x16,0x00,0x5d,0xcb, 0xae,0x20,0x1d,0x3f,0xa6,0x61,0x19,0x16,0x7e,0xf8,0xe1,0x07,0xdd,0x77,0x21,0x7d, 0x05,0x02,0x9a,0x9a,0x68,0x1e,0x8c,0xba,0xa2,0x21,0x40,0x58,0x70,0x19,0x81,0x58, 0xd9,0x08,0xfd,0x9b,0x6f,0xbe,0x49,0xf9,0xac,0xad,0x55,0x28,0xe9,0xa8,0x6f,0xe0, 0x2a,0xf5,0x61,0x61,0xd1,0xa2,0x45,0xea,0x8d,0x37,0xde,0xd0,0xcf,0xe5,0xc3,0x68, 0xa3,0x4a,0xf8,0xf8,0xe3,0x8f,0x35,0x61,0x92,0xa8,0xf6,0x73,0x4e,0x80,0xa8,0xc1, 0x3b,0x99,0x78,0x02,0x78,0x02,0x78,0x02,0x78,0x02,0x2c,0xd3,0x04,0x98,0x35,0x6b, 0x96,0x1a,0x38,0x70,0xa0,0x1a,0x34,0x68,0x50,0xec,0xd1,0x31,0x9a,0x77,0x3c,0x9b, 0xce,0x18,0xf3,0xa1,0x09,0x13,0xc0,0x07,0x4f,0x00,0x1f,0x3c,0x01,0x7c,0xf0,0x04, 0xf0,0xc1,0x13,0xc0,0x07,0x4f,0x00,0x1f,0x3c,0x01,0x8a,0x23,0x24,0x75,0xae,0xa4, 0x27,0x40,0xc4,0x90,0xcf,0x4e,0x2c,0xc6,0x1e,0x3c,0x01,0x9a,0x78,0xc8,0xc7,0x5c, 0x49,0x26,0x9c,0xe0,0xb9,0x6c,0x7b,0x4f,0x7b,0x02,0x14,0x49,0xd8,0x65,0x97,0x5d, 0xb4,0x56,0x61,0x52,0x8a,0x27,0x40,0x96,0x21,0xd3,0x79,0x87,0xf6,0x5c,0xc7,0xaf, 0xbe,0xfa,0x4a,0xcf,0x4c,0xc2,0x25,0x7c,0xf8,0xf0,0xe1,0xce,0xf4,0x53,0x3d,0xcf, 0x0c,0x25,0xbc,0x87,0x70,0x60,0x39,0xfa,0xe8,0xa3,0x55,0xcf,0x9e,0x3d,0xb5,0x03, 0xa9,0x19,0x66,0xcf,0x9e,0xad,0x9f,0x91,0x6a,0x05,0x3f,0x45,0x7e,0x03,0xba,0xd8, 0xed,0x10,0x65,0x4e,0x64,0xdc,0xef,0x49,0x1c,0x01,0x32,0x9d,0x77,0x68,0x0e,0x6e, 0xe1,0x63,0x20,0xd3,0xd6,0xec,0xb9,0x83,0x51,0x3c,0xa4,0x3e,0xfb,0xec,0xb3,0xc0, 0xf5,0xdc,0x04,0xde,0x45,0xa6,0xff,0xa4,0xe9,0xfd,0x6c,0x03,0x0f,0x26,0x33,0x44, 0x9d,0x13,0x19,0xf7,0x7b,0x12,0x4b,0x80,0xb8,0xf3,0x0e,0xcd,0x0c,0x63,0x8e,0xa1, 0x4c,0x40,0x21,0xb3,0x10,0x54,0x1c,0x02,0x88,0xb7,0x12,0x02,0x87,0x6c,0xbb,0xee, 0xba,0x6b,0x70,0x0d,0x0f,0x28,0x53,0x03,0xdc,0x76,0xdb,0x6d,0x41,0x9a,0xbb,0xed, 0xb6,0x9b,0xfe,0x0d,0x18,0x2c,0x93,0x10,0x67,0x4e,0x64,0xdc,0xef,0x49,0x2c,0x01, 0xe2,0xce,0x3b,0x34,0x33,0x8c,0x89,0xae,0xe3,0xc6,0x8d,0x8b,0xd5,0x0a,0xb0,0x7d, 0x24,0xbb,0x77,0xef,0x1e,0x58,0xf5,0xc4,0xe2,0x93,0xc8,0xc4,0xd9,0xb8,0x36,0x40, 0x9c,0x39,0x91,0x71,0xbf,0x27,0xb1,0x04,0x88,0x33,0xef,0xd0,0xce,0xb0,0x01,0x03, 0x06,0xc4,0x6e,0x06,0x9a,0xcf,0x33,0xbf,0xc0,0x0e,0x38,0xb9,0x86,0xcd,0x47,0x48, 0x45,0x80,0x4c,0xe6,0x44,0xc6,0xf9,0x9e,0x44,0xdb,0x00,0xae,0xe0,0x9a,0x77,0x68, 0x67,0x58,0x2a,0x07,0x97,0x28,0x04,0x70,0xb9,0x9c,0x9f,0x7c,0xf2,0xc9,0x19,0x11, 0x20,0x93,0x39,0x91,0x71,0xbe,0xa7,0xe8,0x08,0xe0,0x9a,0x77,0x98,0x6b,0x02,0xb8, 0x9e,0xcf,0x94,0x00,0x99,0xce,0x89,0xf4,0x04,0x88,0x31,0xef,0xb0,0x29,0x13,0x20, 0xd3,0x39,0x91,0x9e,0x00,0x31,0xe6,0x1d,0x36,0x15,0x02,0xd0,0xbe,0x77,0xb5,0xfd, 0x33,0x99,0x13,0x59,0xf4,0x04,0x88,0x3b,0xef,0xb0,0x31,0x09,0x20,0xcd,0x39,0xd7, 0xac,0x26,0x42,0x26,0x73,0x22,0x8b,0x9e,0x00,0x71,0xe7,0x1d,0x36,0x26,0x01,0x30, 0xe6,0xe4,0x9d,0x59,0x6d,0xcd,0x0e,0x99,0xcc,0x89,0x6c,0x92,0x04,0xa0,0x3d,0xcc, 0x8a,0x1a,0x0c,0x7a,0x1c,0x7e,0xf8,0xe1,0x01,0x0e,0x3b,0xec,0x30,0xbd,0x3a,0x07, 0xb3,0x78,0x01,0xeb,0x09,0x00,0xce,0xd1,0x85,0x7b,0xe2,0x89,0x27,0xea,0x66,0x4e, 0xd7,0xae,0x5d,0xd5,0x0d,0x37,0xdc,0xa0,0x67,0xf6,0xd2,0x11,0x32,0x7d,0xfa,0x74, 0x3d,0x8d,0x2b,0xac,0x1f,0x20,0xce,0xbc,0xc3,0xc6,0x24,0x80,0x39,0x2b,0x99,0x4e, 0x1b,0xbe,0x99,0x2e,0x64,0x33,0xc4,0x9d,0x13,0xd9,0x64,0x08,0x80,0x9a,0x9d,0x3a, 0x75,0xaa,0xee,0x94,0x81,0xbd,0x22,0x74,0x96,0x71,0x93,0xd8,0x05,0xf3,0x9e,0xb0, 0xfb,0x5b,0xb5,0x6a,0xa5,0x3b,0x56,0x20,0x96,0xa8,0xf3,0x4c,0xe7,0x1d,0xd2,0x33, 0x28,0xf7,0x2d,0x5e,0xbc,0x38,0xf4,0x7b,0xc2,0xe6,0x4a,0xa6,0x7b,0x9e,0xfa,0x9d, 0x6b,0x54,0x41,0xae,0x70,0xdd,0x75,0xd7,0xd5,0x9b,0x94,0xba,0xdf,0x7e,0xfb,0x35, 0xb8,0x27,0xce,0x9c,0xc8,0xa8,0xdf,0x93,0x37,0x02,0x20,0x10,0xea,0x2b,0x98,0x4f, 0x69,0xa6,0x37,0xcb,0x04,0x2c,0x97,0xd8,0x3c,0x0e,0xbb,0x6e,0x82,0xf5,0x7a,0x10, 0x3e,0xa4,0x02,0xac,0x08,0x86,0x2a,0xe4,0x3f,0x73,0x35,0xef,0xb0,0x31,0x02,0xef, 0xcf,0xec,0x64,0x96,0xb0,0xb3,0x35,0x9b,0x19,0xf2,0x31,0x27,0x32,0xa7,0x04,0x40, 0xe5,0xd0,0x7e,0x3d,0xe6,0x98,0x63,0xf4,0x48,0x58,0xae,0x80,0xe0,0x99,0xbf,0x4f, 0x2f,0x9f,0xd9,0x19,0xc2,0x28,0x1b,0x19,0x81,0x26,0xf0,0xb3,0x8e,0x1a,0x91,0x00, 0x2c,0xa0,0x30,0x6a,0xd4,0xa8,0x60,0xb8,0x32,0x57,0x60,0xcd,0x81,0xbd,0xf6,0xda, 0x4b,0x75,0xec,0xd8,0xb1,0x41,0x4f,0x18,0xc0,0x28,0x62,0xb5,0x2f,0xb4,0x80,0x27, 0x40,0x81,0x09,0x40,0xa6,0xd3,0xa1,0x42,0x1d,0x84,0xba,0x17,0xb5,0x8c,0xe1,0x26, 0xb1,0x0b,0xe6,0x3d,0xae,0xfb,0xc5,0x66,0xa0,0x8d,0x4c,0x7d,0x4f,0xa9,0x37,0x49, 0x41,0x55,0x00,0x31,0x38,0x66,0x54,0x8d,0xea,0x86,0xc1,0x1d,0x4f,0x80,0x02,0x10, 0x80,0xba,0xea,0xed,0xb7,0xdf,0x56,0xdd,0xba,0x75,0xd3,0x82,0x61,0xb8,0xd5,0x06, 0x64,0x90,0xd8,0x05,0xf3,0x1e,0xfb,0x7e,0x84,0xcb,0x3a,0xbe,0xb4,0x08,0x10,0xb0, 0x08,0x9f,0x98,0xaa,0x00,0x62,0xb0,0x04,0x1d,0x96,0x30,0xe7,0xa8,0x37,0xbf,0xff, 0xfe,0x7b,0x4d,0x00,0x3f,0xef,0x30,0xcf,0x04,0xc0,0xe0,0xc2,0xbb,0x05,0x6b,0x36, 0x9f,0x40,0xb0,0x26,0xb0,0x27,0x30,0x26,0x71,0xb4,0x40,0xf0,0x8c,0xb1,0xb3,0x2a, 0x09,0xe7,0x59,0xb1,0x03,0x3b,0x20,0x89,0x4b,0xb8,0x36,0x19,0x02,0x50,0xea,0x11, 0x3e,0xcd,0xa8,0x7c,0x0b,0x1f,0x20,0x58,0x01,0x4e,0x10,0x18,0x7f,0x22,0x78,0x56, 0xfb,0x42,0x43,0x6c,0xbd,0xf5,0xd6,0x8d,0x4e,0x00,0xaa,0x40,0x56,0x44,0xf9,0xe8, 0xa3,0x8f,0x92,0x4b,0x00,0x84,0x4f,0xe6,0xe2,0xa9,0x52,0x08,0xe1,0x03,0x54,0x3d, 0x75,0x7f,0xcb,0x96,0x2d,0x03,0x75,0x2f,0x82,0x67,0xfd,0xa1,0x2d,0xb7,0xdc,0x52, 0xfb,0xe7,0xe7,0x8b,0x00,0xd8,0x14,0xd8,0x16,0x0c,0xb4,0x30,0x6a,0x88,0x2f,0x1e, 0xfd,0x0a,0x27,0x9d,0x74,0x92,0x7e,0x27,0xc8,0x87,0xd7,0x11,0x1d,0x4d,0x54,0x85, 0x38,0x67,0x2c,0xcb,0xfb,0x09,0x94,0xa4,0x63,0x39,0x6e,0x49,0x58,0xe2,0x85,0x22, 0x00,0x16,0x3f,0x82,0xe7,0x58,0xd4,0xbd,0x29,0x78,0xf6,0x22,0xa0,0x53,0x86,0xfb, 0xa2,0x12,0x00,0x0d,0x86,0xbf,0xde,0xeb,0xaf,0xbf,0xae,0x7b,0x12,0xe9,0x2c,0xb9, 0xfe,0xfa,0xeb,0xf5,0x02,0x52,0xd8,0x1b,0xfc,0x07,0x3d,0x71,0xac,0x15,0xcc,0x0a, 0x67,0x08,0x18,0xa3,0x12,0xb0,0xbe,0x20,0xc2,0x06,0xf4,0xc4,0x71,0x0f,0xab,0x90, 0x7f,0xfa,0xe9,0xa7,0xda,0x1d,0x8b,0xce,0x25,0xe9,0x8b,0x48,0x14,0x01,0x68,0x5b, 0xd3,0xc6,0xbe,0xe5,0x96,0x5b,0x0a,0x26,0x7c,0x21,0x80,0x08,0x5e,0xd4,0x3d,0xc2, 0xc7,0xcf,0x0e,0x21,0xe1,0x08,0x81,0x43,0x24,0x06,0x23,0x3d,0x8d,0x74,0x9e,0x3c, 0xf3,0xcc,0x33,0xda,0xe1,0x83,0x11,0x3f,0x76,0xf9,0xa0,0x23,0x09,0xd2,0xd2,0xc3, 0xc6,0xda,0x80,0xf4,0x9a,0xe1,0x12,0x86,0x40,0x21,0x0f,0xe9,0x90,0x06,0xc2,0xe5, 0x1c,0x83,0x2d,0x9b,0x6d,0xb6,0x99,0x76,0x17,0x63,0xa1,0x6b,0x13,0xa4,0xc1,0x7f, 0xb2,0x72,0x18,0xfe,0x85,0xac,0x8b,0x48,0xf3,0x93,0x92,0x8f,0x01,0x8a,0xeb,0x19, 0x1d,0x4d,0x89,0x23,0x00,0xa5,0x8a,0x8e,0x1d,0xac,0xf0,0x42,0x13,0x80,0x85,0x9e, 0x45,0xf0,0x08,0x00,0xe1,0x8b,0xe0,0x11,0x1e,0x02,0xc3,0xdf,0x8d,0xfe,0x70,0xce, 0xa3,0x15,0x38,0x27,0xa5,0x56,0x04,0x8a,0x00,0x19,0xfd,0xa3,0x1b,0x35,0x2a,0xf8, 0x6f,0x62,0x9e,0x83,0x2c,0x08,0xfe,0xec,0xb3,0xcf,0xd6,0x24,0x63,0x25,0x34,0xd6, 0x19,0xa6,0xf5,0x81,0x06,0x60,0x75,0x34,0xfa,0x21,0x12,0x47,0x00,0x3e,0x86,0xd2, 0xcf,0x07,0x32,0xd8,0x50,0x48,0x02,0x50,0xb2,0x45,0xdd,0x23,0x78,0x84,0x80,0x5b, 0x34,0x82,0x46,0x35,0xa3,0x82,0x39,0xc7,0xe2,0x94,0xf4,0x15,0xd0,0x1f,0x2e,0xb1, 0x79,0x4c,0x6c,0x83,0xf3,0x3c,0x27,0x55,0x0a,0xe4,0x22,0x2d,0xfe,0x07,0xc2,0x40, 0x24,0x08,0x84,0xba,0xa7,0x2a,0x60,0xf0,0x8a,0xd5,0x46,0x99,0x0d,0x84,0x47,0x11, 0xfb,0x10,0xe1,0xaa,0x05,0x01,0xd0,0x02,0x54,0x3f,0x68,0x00,0x0a,0x4b,0xa2,0x08, 0x80,0xfa,0x67,0x95,0x4d,0x3e,0xb2,0x90,0xc2,0x07,0x47,0x1c,0x71,0x44,0x50,0xcf, 0x23,0x78,0x31,0xb8,0x50,0xe5,0x94,0x68,0x8c,0x42,0xd4,0xbb,0x40,0x6c,0x05,0x0c, 0x45,0x11,0x2c,0xc2,0xe4,0x79,0xd1,0x1a,0x94,0x62,0x88,0xc3,0xe2,0xd1,0xc4,0xa4, 0x47,0xda,0xdc,0x87,0xa6,0xa1,0xba,0x21,0x1d,0x06,0x62,0x18,0x31,0x94,0xd1,0x48, 0xb4,0x51,0x18,0x30,0x56,0x25,0x36,0x8f,0xa3,0xde,0x6f,0x23,0xdd,0xf3,0x71,0xc0, 0x40,0x19,0xdd,0xe7,0x51,0x48,0x59,0x12,0x66,0xfc,0x31,0xf0,0xc0,0x62,0x89,0x8d, 0x41,0x00,0x11,0x3c,0x82,0x43,0xd5,0x53,0x2a,0x11,0xbe,0x59,0x15,0xd8,0x42,0xa5, 0x3a,0xa0,0x4e,0x47,0xfd,0x73,0x2f,0x6a,0x9c,0x12,0x0f,0x49,0x10,0x2c,0xbd,0x87, 0xf4,0x27,0x1c,0x72,0xc8,0x21,0x91,0x00,0x09,0x24,0x36,0x8f,0x73,0x75,0x7f,0x5c, 0xd8,0xe9,0xdb,0xe0,0x1a,0xe4,0x45,0x63,0xcb,0x48,0x2a,0x5a,0xdc,0x74,0x27,0x8f, 0x4c,0x00,0x54,0x1a,0xa3,0x52,0xef,0xbf,0xff,0x7e,0x41,0x85,0x4f,0x29,0xc6,0x10, 0xa3,0xb4,0x63,0x71,0x53,0x52,0xa5,0x8e,0xa7,0x44,0x73,0x8d,0x3a,0x1a,0xc1,0x72, 0x3f,0x7d,0x04,0x8c,0x0e,0xe2,0x22,0x0d,0xe3,0x25,0x36,0x8f,0x89,0x5d,0xd7,0x6d, 0x14,0xfa,0x7e,0x1b,0xe9,0xde,0x3f,0x15,0xd8,0xef,0x80,0x96,0x13,0xfe,0x15,0xe6, 0x50,0x3a,0x32,0x84,0x04,0xa9,0x34,0x41,0x28,0x01,0xb0,0x70,0xa9,0xeb,0x0a,0x25, 0x7c,0x1c,0x26,0xa8,0x9f,0x69,0x96,0xc9,0x47,0xf0,0x41,0x30,0x1a,0xf0,0x91,0xb9, 0x04,0x5a,0x41,0x62,0xf3,0x38,0x57,0xf7,0x17,0x02,0xfc,0x3f,0xf9,0x46,0xe9,0x37, 0x1d,0x6d,0xc4,0x6f,0x02,0xbf,0x42,0x19,0x2c,0x8b,0x4d,0x00,0xd9,0x11,0xa3,0xd0, 0x55,0x80,0x7c,0x00,0xec,0x47,0xa5,0x09,0xf0,0xee,0x91,0xd8,0x3c,0x0e,0xbb,0x9e, 0x0e,0xd9,0x3e,0x1f,0x37,0x7d,0x1b,0xe9,0xbe,0x27,0xdd,0xfd,0x54,0x6d,0xd4,0xf5, 0x61,0x0e,0x36,0x14,0x1e,0x7a,0x29,0x65,0xb0,0x6c,0x99,0x20,0x00,0xfd,0xfd,0x7c, 0x14,0x5d,0xc0,0xd4,0x6b,0x12,0xbb,0x60,0xde,0xe3,0xba,0x3f,0xdb,0xeb,0xe9,0x10, 0x37,0x7d,0x1b,0x99,0xbe,0x0f,0x25,0x1f,0x7b,0x26,0xcc,0xa3,0xca,0x84,0x39,0x58, 0xb6,0xcc,0x68,0x00,0x8f,0xd4,0x48,0x25,0x70,0x4a,0xbd,0xd8,0x01,0xc4,0x51,0x7a, 0x4a,0x3d,0x01,0x96,0x61,0x02,0x98,0xc2,0xb6,0x81,0xf6,0xf0,0x04,0x48,0x28,0x01, 0x5c,0x02,0x17,0xa1,0x4b,0x9c,0x77,0x02,0x60,0x99,0x47,0xad,0x2f,0x3d,0xe2,0x03, 0x43,0xcf,0x95,0xef,0xb6,0xc0,0x6d,0xa1,0x9b,0xc8,0x1b,0x01,0xb0,0x40,0x79,0x49, 0x3a,0x6d,0x4c,0x30,0x08,0x23,0xb1,0x79,0x4c,0x8c,0x71,0x67,0x36,0xa3,0xc2,0x80, 0xd7,0x8f,0x9d,0xee,0xb2,0x82,0x54,0xdf,0x1f,0x17,0x61,0x5d,0xf0,0x22,0x70,0x57, 0x89,0xb7,0x0d,0xc9,0xbc,0x11,0x80,0xce,0x07,0xba,0x1c,0xa5,0xbb,0xd4,0xe5,0xc2, 0x6d,0xba,0x7d,0xef,0xdb,0xbc,0x8d,0xda,0xaf,0xd5,0x99,0xaa,0xfd,0x61,0xd7,0xa8, 0x83,0x0f,0xfd,0x17,0x72,0x4c,0xac,0x51,0x7b,0xdc,0xb6,0x7d,0x77,0xb5,0xf3,0x2e, 0xad,0xf5,0x47,0xb8,0xba,0x38,0xed,0xff,0x33,0xcf,0xe5,0xe3,0x7e,0x1b,0xf6,0xf3, 0x51,0xbe,0x3f,0xd5,0xf3,0x61,0xe0,0xfb,0xc3,0x34,0x6f,0x2a,0xa1,0xdb,0xad,0x88, 0xbc,0x11,0x80,0x76,0xa7,0xe9,0xb9,0x93,0x0a,0xad,0x5a,0xb7,0x53,0x47,0x9f,0x78, 0xb3,0xba,0xa8,0xdb,0x04,0x75,0x61,0xb7,0xa7,0x75,0xac,0x71,0xb9,0x11,0x1b,0x68, 0x79,0xc0,0xa9,0xfa,0xe5,0xa3,0xa6,0x9f,0x4b,0x88,0x0b,0x9a,0xe9,0x8e,0x26,0x71, 0x21,0x81,0x26,0x4c,0x45,0x00,0x57,0x93,0xd2,0x6e,0x4e,0xe6,0x8d,0x00,0xa8,0xf1, 0x30,0x8f,0x5f,0x1b,0x7c,0x4c,0xcb,0x36,0x27,0xa8,0x2b,0x6f,0x7c,0x41,0x55,0xfe, 0x6f,0x6a,0x5a,0x5c,0xd6,0x73,0xa2,0x6a,0xd1,0xaa,0x3c,0xa5,0x57,0xb1,0x09,0xbc, 0x74,0x24,0x36,0x8f,0xa3,0xbe,0x5f,0x63,0xc3,0xf5,0xfe,0x94,0x6e,0x06,0xb7,0xc2, 0x08,0x60,0x97,0x72,0x7b,0xec,0xc1,0x3c,0xce,0x0b,0x01,0x48,0x38,0xcc,0x03,0xd8, 0xf6,0xf8,0x6d,0x7f,0x48,0x07,0x75,0x41,0xf7,0x7b,0x54,0xdf,0x51,0xb3,0x23,0x81, 0x7b,0x79,0x26,0x2c,0xbd,0x5c,0x7a,0x20,0x67,0x92,0x7e,0x21,0xd2,0xc3,0xbe,0x92, 0xb1,0x8e,0x30,0x02,0x84,0x0d,0x06,0xd9,0x83,0x4f,0x79,0x21,0x00,0x2a,0x91,0x71, 0x72,0x17,0xce,0x38,0xe3,0x8c,0x20,0x06,0x6d,0xdb,0x77,0x54,0xb7,0x8c,0x9c,0xa6, 0x86,0x3f,0x39,0xaf,0x21,0xc6,0x7d,0xfd,0x5f,0x5c,0x8b,0x01,0x0f,0x7c,0xa8,0x3a, 0x1c,0x79,0xba,0x9e,0x5c,0x12,0x96,0x9e,0x79,0x2e,0x1f,0xc8,0xf6,0xff,0xb2,0x7d, 0x9e,0xe1,0x60,0xbc,0xa0,0x18,0x14,0x0b,0x23,0x80,0x5d,0xd2,0xc3,0xc0,0xc8,0x67, 0x5e,0x08,0x20,0x33,0x76,0xa3,0xa0,0x6d,0xbb,0x0e,0xea,0xec,0xae,0xfd,0x54,0xcf, 0x81,0x13,0xd5,0x35,0x77,0x3c,0x1b,0xc4,0xfa,0xd8,0x88,0xbb,0xf5,0xaa,0x52,0x87, 0x1f,0xd7,0x29,0x6d,0xda,0xf8,0xf0,0x49,0x6c,0x1e,0x47,0x7d,0x9f,0x7c,0xa7,0x97, 0xcd,0xff,0x41,0x00,0x06,0x76,0x20,0x00,0xc0,0xef,0x21,0x4c,0x03,0xb8,0x4a,0xbb, 0x3d,0xd4,0x9d,0x37,0x02,0x60,0x00,0x9e,0x73,0xce,0x39,0x91,0xc0,0x47,0xd1,0xa4, 0x09,0xeb,0xb9,0x92,0xf3,0x30,0x9f,0x8c,0xb0,0x9f,0xc7,0x15,0x4b,0x62,0xf3,0x38, 0xea,0xff,0xa7,0x43,0xbe,0xd3,0x8f,0xfa,0x7f,0x10,0x00,0x8f,0x25,0x11,0x3e,0x80, 0x0c,0x61,0x1a,0xc0,0x55,0xda,0x5d,0xc8,0x0b,0x01,0x18,0x8f,0x47,0x60,0x2c,0x89, 0xc6,0x5c,0x81,0x8a,0x8a,0x0a,0x1d,0xbb,0x20,0xd7,0x88,0x5d,0xb0,0x9f,0xb7,0xef, 0x8f,0x7b,0x3d,0xdd,0xff,0xa7,0x4b,0x2f,0xdb,0xf7,0x8b,0xfb,0xfd,0x90,0x9e,0x82, 0x80,0x17,0x13,0xde,0x4c,0x26,0x01,0xc2,0x0c,0x41,0x5b,0xe8,0x36,0x01,0xcc,0xb5, 0x16,0xf2,0x46,0x00,0x9c,0x33,0x80,0xb8,0x4d,0xe3,0xc1,0x93,0x09,0xe4,0x59,0x62, 0xf3,0x38,0xea,0xf5,0xb8,0xe9,0x15,0xfa,0xfe,0x28,0xdf,0x8f,0x93,0xab,0x2d,0x7c, 0x10,0x66,0x08,0xda,0xa5,0x5c,0x84,0x6d,0x2e,0xb0,0x21,0x24,0xc8,0x0b,0x01,0xa8, 0x9b,0xf0,0xa3,0xc3,0x3d,0x0b,0xf7,0x2b,0x3c,0x76,0xc4,0x69,0x33,0x15,0xc4,0x63, 0xd7,0x06,0x19,0x90,0x6b,0x08,0x41,0xc5,0x05,0xdc,0x3c,0xce,0x16,0x61,0xdf,0x21, 0x48,0x97,0x0f,0x22,0x7c,0xd2,0x12,0x0f,0x27,0x5b,0xf8,0x80,0x2a,0x21,0x2e,0x01, 0x4c,0xd0,0xf3,0x5a,0x90,0xc1,0x20,0xf1,0xe4,0x71,0x7d,0x84,0x47,0xe6,0x08,0xb3, 0x01,0x52,0x09,0xdc,0x3e,0x2e,0xd8,0x68,0x20,0x5a,0x41,0x5c,0xae,0xbd,0xf0,0xb2, 0x03,0x4d,0x40,0x16,0x8f,0x0e,0xcb,0x6b,0x5b,0xf0,0xa6,0xd0,0x6d,0xf8,0xe1,0xe0, 0x04,0xc2,0x55,0xea,0x6d,0xc1,0x33,0xa0,0x06,0x3c,0x01,0x12,0x4a,0x00,0x57,0x69, 0x17,0xc1,0x7b,0x02,0x24,0x1c,0xae,0x92,0x6e,0x1e,0x03,0x7c,0x09,0x3c,0x01,0x12, 0x0a,0x5b,0xe0,0x2e,0xe1,0x7b,0x02,0x14,0x01,0x01,0x44,0xc8,0x66,0x89,0x37,0x63, 0xe0,0x09,0x90,0x50,0x02,0x98,0xc2,0x36,0x05,0xee,0x09,0x50,0x04,0x08,0x13,0xbc, 0x6b,0x92,0x89,0x27,0x40,0x42,0x09,0x10,0x75,0x26,0x92,0x27,0x40,0x02,0x61,0x97, 0xf4,0x30,0x30,0x7b,0xc8,0x13,0x20,0xa1,0x1a,0x20,0x4c,0xe0,0x9e,0x00,0x45,0xa2, 0x01,0x5c,0xc2,0x77,0xc1,0x13,0x20,0xc1,0x04,0x10,0x21,0xdb,0x04,0x90,0xf5,0x05, 0x3c,0x01,0x12,0x0a,0xbb,0x94,0x8b,0xb0,0x25,0x36,0x49,0xe0,0x09,0x50,0x24,0x04, 0x08,0x5b,0x91,0x24,0x27,0x04,0xc0,0x35,0xc9,0xa3,0xe9,0xc0,0x2c,0xf1,0xae,0x25, 0x68,0xcc,0x63,0xaf,0x01,0x12,0x88,0x54,0x25,0xde,0x86,0x27,0x40,0xc2,0x09,0x10, 0xb6,0x90,0x14,0x0b,0x67,0x01,0x4f,0x80,0x84,0x12,0x20,0x6c,0xb5,0x30,0x59,0x31, 0xcd,0x13,0x20,0xc1,0x70,0x95,0x74,0xf3,0x18,0xb0,0xaa,0xb9,0x27,0x40,0x42,0x61, 0x0b,0xdc,0x16,0xbe,0xb9,0x8c,0x9d,0x27,0x40,0x82,0x09,0x20,0xa5,0x5c,0x84,0x2e, 0x8b,0x6f,0xb0,0xd2,0x1a,0x0b,0x68,0x12,0x7b,0x02,0x24,0x94,0x00,0xa6,0xd0,0x81, 0x29,0x74,0x56,0x0c,0x95,0x75,0x94,0x3d,0x01,0x12,0x08,0x11,0xbc,0x08,0x1c,0x98, 0x8b,0x67,0x33,0x9f,0x00,0xb7,0x72,0x62,0x4f,0x80,0x04,0x42,0x04,0x6f,0x0b,0x5d, 0x20,0xcb,0xe2,0xb3,0xcd,0x8d,0x27,0x40,0x02,0xe1,0x2a,0xe9,0xe6,0x3e,0x09,0x4c, 0xce,0x61,0x06,0x37,0xfb,0x0d,0xcf,0x9a,0x35,0x2b,0xfb,0x95,0x42,0xa9,0x6f,0x7c, 0xc6,0x37,0x0d,0x88,0xc0,0xcd,0x0d,0x30,0x88,0x99,0x4d,0x84,0xe0,0x01,0xc6,0x21, 0x7b,0x28,0x56,0x57,0x57,0xeb,0xb5,0x82,0x59,0xf6,0x3f,0xab,0xc5,0xa2,0x0b,0xbd, 0x65,0x8c,0x47,0x38,0xd8,0xd8,0x02,0x81,0x8b,0xb0,0x45,0xf0,0xb2,0xdd,0x0d,0x2b, 0xb2,0x0d,0x19,0x32,0x44,0x8d,0x1d,0x3b,0x56,0xef,0x6c,0xf2,0xc5,0x17,0x5f,0xe8, 0x8d,0x3f,0xd8,0x00,0x24,0xe3,0xe5,0xe2,0xd9,0x5d,0xcb,0x67,0x7e,0xe3,0x83,0x81, 0x20,0x11,0xba,0xec,0x6b,0x24,0x7b,0x1c,0xb1,0xbf,0x51,0x97,0x2e,0x5d,0xd4,0xa0, 0x41,0x83,0xf4,0xe6,0xdd,0x93,0x27,0x4f,0xd6,0xbb,0xbd,0x51,0x88,0xd9,0xd5,0x2c, 0xa3,0xfd,0x02,0xd8,0x6c,0xe0,0x83,0x0f,0x3e,0xd0,0x6c,0xda,0x67,0x9f,0x7d,0xbc, 0x10,0x1a,0x59,0xf8,0xe6,0xc6,0x56,0x08,0x1c,0x30,0x29,0xb7,0x73,0xe7,0xce,0x7a, 0xb7,0xb4,0xc1,0x83,0x07,0x6b,0xe1,0x4f,0x9a,0x34,0x49,0x17,0x5c,0x36,0xb5,0x64, 0x3f,0xa3,0x8c,0x76,0x0c,0xe1,0x21,0x76,0x0c,0x63,0xcb,0x18,0x12,0x2c,0xc4,0x96, 0xb1,0x1e,0x6e,0x50,0xcf,0x8b,0xd0,0x59,0x97,0x01,0x50,0x2d,0xa3,0x99,0xd9,0xd0, 0x73,0xc0,0x80,0x01,0x6a,0xf8,0xf0,0xe1,0xea,0xa1,0x87,0x1e,0xd2,0x25,0x9f,0x6a, 0x9b,0x2d,0xed,0x50,0xfd,0x51,0x36,0xb3,0x82,0x00,0x4b,0x52,0x6d,0x1a,0xc5,0xbe, 0x7c,0x30,0xab,0x50,0x5b,0xc7,0x7a,0xd4,0xdf,0x42,0x47,0x4a,0x3b,0x6d,0x7f,0x76, 0x2a,0xed,0xdd,0xbb,0xb7,0xea,0xdb,0xb7,0xaf,0xba,0xe3,0x8e,0x3b,0xb4,0xe0,0xd9, 0xd5,0x6c,0xdc,0xb8,0x71,0x7a,0x0f,0x45,0x34,0x36,0x25,0x3f,0xaa,0xf0,0x91,0x3d, 0x04,0xa8,0x09,0xdb,0x36,0x6e,0xfe,0xfc,0xf9,0x6a,0xc6,0x8c,0x19,0xba,0x49,0x31, 0x62,0xc4,0x08,0xd5,0xa3,0x47,0x0f,0x5f,0x1d,0x14,0x50,0xf8,0xcd,0x9a,0x35,0xd3, 0x6b,0x00,0xf5,0xea,0xd5,0x2b,0x28,0xed,0x18,0x79,0xf7,0xdc,0x73,0x8f,0x2e,0xf1, 0xc8,0x65,0xca,0x94,0x29,0x7a,0x47,0xf7,0x39,0x73,0xe6,0xa8,0x05,0x0b,0x16,0xc4, 0xdd,0xc6,0xae,0x06,0x02,0x54,0xa7,0xda,0x38,0x72,0xee,0xdc,0xb9,0x7a,0x4b,0xf6, 0x47,0x1e,0x79,0x44,0x0d,0x1b,0x36,0x4c,0xf5,0xeb,0xd7,0x4f,0x55,0x56,0x56,0xfe, 0xbb,0x0c,0xac,0x6f,0x22,0xe6,0x65,0xb8,0x97,0x25,0xe0,0x4e,0x3d,0xf5,0x54,0x5d, 0xb7,0x53,0xda,0x07,0x0e,0x1c,0xa8,0x0b,0x20,0xa5,0xfd,0xf1,0xc7,0x1f,0xd7,0x4d, 0x3c,0x36,0xb1,0x9c,0x39,0x73,0xa6,0x16,0x3c,0xa5,0x9e,0xe6,0x9e,0xec,0x12,0x16, 0x63,0x0f,0xc3,0x6a,0x08,0x50,0x99,0x6a,0xf3,0xc8,0x85,0x0b,0x17,0x06,0x9b,0x29, 0x43,0x02,0x5e,0x84,0x0d,0x95,0xfb,0xf4,0xe9,0xa3,0x5f,0x90,0xad,0x65,0xc1,0xcd, 0x37,0xdf,0xec,0x91,0x05,0x24,0x1f,0xc9,0x53,0x4a,0x7b,0xff,0xfe,0xfd,0xb5,0x61, 0x47,0x9b,0x9e,0xd2,0x3e,0x61,0xc2,0x04,0x2d,0x83,0xe9,0xd3,0xa7,0x6b,0x79,0xd0, 0xc4,0xa3,0xc4,0x53,0x48,0xd9,0x1b,0x99,0x02,0x9b,0xaa,0xb9,0x17,0x12,0x2a,0x21, 0x40,0x19,0x76,0x5f,0x98,0x31,0xc8,0x06,0xc9,0x54,0x05,0xfc,0x29,0x9a,0x00,0xb5, 0x33,0x66,0xcc,0x18,0xfd,0x62,0x6c,0xc2,0x3c,0x74,0xe8,0x50,0xad,0x96,0x3c,0xb2, 0x07,0x79,0x49,0x9e,0x8e,0x1c,0x39,0x52,0x8d,0x1e,0x3d,0x5a,0x3d,0xf6,0xd8,0x63, 0x6a,0xe2,0xc4,0x89,0xc1,0x6e,0xa5,0x6c,0x57,0x4b,0x69,0xa7,0x85,0x46,0x3d,0x9f, 0xe5,0xc6,0xd5,0xc8,0xbc,0xac,0x84,0x50,0x7b,0x50,0x15,0xa6,0x05,0x84,0x04,0x68, 0x02,0xaa,0x03,0x6c,0x02,0x0c,0x43,0x5a,0x07,0xb0,0x72,0xfc,0xf8,0xf1,0xda,0x08, 0x61,0x57,0x6e,0x8f,0xcc,0x41,0x1e,0x92,0x97,0x6c,0x51,0x8b,0xd0,0x29,0xed,0xd3, 0xa6,0x4d,0xd3,0xed,0x79,0x4a,0x3b,0xf9,0xbf,0x78,0xf1,0xe2,0x7a,0xa5,0x3d,0xcb, 0xed,0x6a,0xab,0x4a,0x24,0xd4,0xfe,0x28,0xad,0xc5,0xa2,0x54,0x24,0xa0,0x3a,0x40, 0xdd,0xb0,0x9f,0x30,0xad,0x03,0x9a,0x88,0x6c,0x2c,0x09,0x33,0x69,0x7a,0x78,0x64, 0x0f,0xf2,0x92,0x3c,0x45,0xdb,0x52,0xd8,0xe6,0xcd,0x9b,0xa7,0x3b,0xe4,0x72,0x50, 0xda,0xed,0x80,0xac,0x4b,0x4b,0xcc,0x50,0x7b,0xa2,0x3c,0xac,0x2a,0x10,0x22,0xc0, 0x3c,0x88,0xc0,0x0b,0x41,0x06,0x54,0x11,0x2f,0x08,0xe8,0x75,0xf2,0xc8,0x1c,0x92, 0x8f,0xe4,0x29,0x06,0x1d,0x1b,0x3e,0x52,0xda,0xd9,0x99,0x3c,0x07,0xa5,0xdd,0x56, 0xfd,0xe5,0x25,0xae,0x50,0x7b,0xa1,0x22,0x15,0x09,0x84,0x08,0xbc,0x10,0x6c,0x84, 0x10,0x1e,0xb9,0x07,0x79,0x9b,0x63,0xa1,0x9b,0xc2,0xaf,0x28,0x49,0x15,0xea,0x34, 0xc1,0x22,0xe5,0x43,0xd2,0xc2,0xa2,0xd0,0x92,0xef,0x20,0x41,0x69,0x9d,0x61,0xb8, 0xd4,0xe7,0xdb,0x32,0x1f,0x96,0xd6,0xc9,0xb2,0xb4,0x24,0x6e,0xa8,0x6b,0x22,0x56, 0xd6,0x75,0x16,0xd5,0xb8,0xba,0x8d,0x7d,0x68,0x72,0x61,0x49,0x9d,0xac,0xaa,0xeb, 0x64,0x57,0x96,0x4a,0xc6,0xff,0x07,0x09,0xd2,0xdd,0xcf,0xb2,0x57,0xe1,0x2d,0x00, 0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82, }; cups-2.4.7/tools/printer-lg.png0000644000175000017500000007152114502571342016320 0ustar zdohnalzdohnalPNG  IHDRxiCCPkCGColorSpaceGenericRGB8U]hU>sg#$Sl4t? % V46nI6"dΘ83OEP|1Ŀ (>/ % (>P苦;3ie|{g蹪X-2s=+WQ+]L6O w[C{_F qb Uvz?Zb1@/zcs>~if,ӈUSjF 1_Mjbuݠpamhmçϙ>a\+5%QKFkm}ۖ?ޚD\!~6,-7SثŜvķ5Z;[rmS5{yDyH}r9|-ăFAJjI.[/]mK 7KRDrYQO-Q||6 (0 MXd(@h2_f<:”_δ*d>e\c?~,7?& ك^2Iq2"y@g|U\ 8eXIfMM*i(0biTXtXML:com.adobe.xmp Michael Sweet Copyright 2010 Apple Inc. New Image New Image PdkAIDATxUOz@ I TFz.RBST/(~QQl(yQAA7@:H) $Fz~2orrΜ33ϓwvfδ}O'UR*Jn6V1m=KuQgnu[f6M)ME^ԩӢ2| ~em5¿341E Q>,h{@ Aݎm_ݺq@ BtN20-/vn= Yۍ]GZVB_u;[9<ź]-h~9_9N&vVnjj@ -e}CW@!QZ?@fDv TdjSx_Q@mH]7z~y"S^#c;%a'¸]/ho+Zfr\/>H+SjYIMCZo_C W/6sPWD>FWEUCk6u9hRN`=P lhmoP&OqI{RPF$;`,ADkduA C(7V /}q\J #e+j4 V h:Ƭ=RHNaw#@ӱ\լ eZrJ5weuȩȗ_Q<|饗3<3uݻe˖qhh~"˗ Tt@3^9^-kdW8cRheg@K1hIN*Z3_$GxЭ'%F֯˱hi:d}WO?~` R۷/x -FMh b`@[N/* u/B?@ 2[o;@[87oz7[oիWCÇaÆQF>}h"5uT5}tF .TC mĈjM6Q:sΌ`L[2ezRrǖb;+WT7x~^x.ߵkW:Jqޚe9eg(gVz}ݧVX(3҇#U3Fj<^)/7mގ~xU~TF[_f駏'V?VL7޸rwԴ/sN1{v|Gһw}c7s̖:")&pM7U\+ٴW*V*l~Xti{^GC@+ӦMj{m\pu;N_~wDhڹp]$vVwb!=$p<6}رc 郴[K/Uomw[ne]vŻ?Xe>lՎ2~i>; x+j V}/_N?k'P4iRaۘ5k:k˼ꩧ*KLO?R|pK (۱gW\QvNu1DO;?:蠃LyeCdN%}O*]_bUwp. ]W_mO"*xGbP ,MnѣՎ;z(, :3FB,zJ-[?.#QYL袊d([ M 80sԻqL{_~~f@&VtXvu.yE[Tt:ҮOʆnܗk&kֻ}?mhwyНɓ'W8zG+Eso6{Y3O<1h{;CEyS[38#hRN%*~РAGߧ]( v. S;+rK dNny 7]<*|'h3_w-KoYi+:N-x-#+믿~>P|ede F|ɠ_:{snfۜ @Z5mgb(C?/ҠqzH;YmKeZֹN;z7WQNksnz.(a ojaܸqJ'+QJu]N^5GQǏ.wUWeZoHM]HGi)s|w+]=/uaM7ms7y[zv*zm8lAro=hzB\smy5xL 빝-ۓ v;`-~(}:e}kAJE?-hw6L>ٳg2s̉fa EI_r(YM]FRosnNГרO?uK%P|Ƕc?uz,ǝV[m]ϴ/| eͽ[s-(<Ӵ [TR(O_R%/ĺBH_ OӪA»VBJ~K_ʴV:PB'X)Zh~Jvm\2f̘܅N޽nLum7a[\ @]u=YБ1#Fڗ~yy37$`Jکznu!ȗ-"hsOrWZH'&L.Swby5JYN]Nf<餓2J?̀<~.{x>PD%K^zO.dfϞγ ۬9QvQVb+"B2tkυ̐(ǫ rFOm]9՛zLYA+oV$:"[nJ|.p$W>AK??$l4X2R%//Fi.jϼϭz.4Vx);՞`@] ?uQ @(I k׮s Ymվ>:XXlY4F߾}_BUem<j6Im;#]wupqM7ytpmv -Z$/--t4jX =!7mHw]͚5Z c{z}{$. 2Q)0u9 HM?u'Ҋ3ό(_n n.]όB'PL)oΝ@w}zbùBYCPw?@BG"<2M } )|ls(㛘%f7 XYCBʆTOhliAe; @h`eUN;Y" !I&is(%grKc9&!;#7I.A; ȕyԛ](_rwygd}6#2~{8d{Q|u\@nH>0t(%~=KoM{BJϘ1Cs=rūdȹ9C"9iu\y7pt6lw9 7rG l+}SN8㌠D ^s5My]HޭM\v;(mҥK YXi{w-R}sO{-{9w})wC_}rniTi0o\ "z{y-w'O{nr/3-_N>loEH~ù@h{(9Ċ .S8ȤVWDjuYl@?KU݃#A5sB߭[n5 (\:T /K^1FmTcUmSe9׃|ݣ3㐩G`5o[O[*g+:rUϸu]zh{ nZE^Ypw[/rE][Vy䑺fgA/suHiVhmM4_Ue:uMBos)B6˹hOn֧OR{jYik#rK~(ER= zjn%Zۭ_~y/Ro$-N$n}QlI'߻whsFA~U'?hYfeZJ~hs@zjzhn.vg]뮻6EZ:>z+SNh ouۖTRK@v倫~QGՒd59rȺk v .(|;ƍSv[G?kW^!gZ Iz3 [ҁIly]qv2ӟTh<Ȓ?|pO}ő(k^UԶv[O /a;S׿)r%HdXC~z9"* @e@Pth :*2~h?Tƀ$]c] vg(:srWF9L+4]KWtŊR[_A'O.e@Q+ v %\MPx-Y$rij8IGZre4ߺ8 w#F$c\~:tŒGMwҷe˖)-H=y&i#ܣsxy%OY\2hk3g/W7q@C! RhE&ru9|sPPPPPPP #-3V[mweK?4*@{ (3+WTsM][nj,h~ߩ3<3uݻe˖q2˗ pPP% MY`z76eʔuڴisUmZ竓O>CϞ=ۺXƏ6`eˁ `ɒ%n@ ѣGO<3 4)d4yuay뭷իСCհaԨQT>}v6yIUz_u޽mu|~mչsgG[lEtϢEԩSջ.\P 2$g1Bm&SN;(!7<c=6u+WoQwS/oή]վ:(uGxs_]g?SߣtR.;DzW=#nM]vegUsM]~R|W <_u̙3~we˖e殻fܯK)Vt뭷믿^w}jŊ߈B%̑GcեKwT /XBos`'#GִX9+P~>SD~ի袋*mQU[n|+-k3X/~Q9s*ߔi:#h9QK+ڽ]cnlαp5qƌA utdO?NIqAJNE+!uv}@Nkzr-߇N!O^{Kc]KӅ|*ӟZWrC׫JZJpA T%_)ޡ@Iq\]$"dH9qtGFV툌K׿"?yϵTvR!zek܇TE"1㪫jh佃PK/EHAjkѣGXu\:6D4B&ozUdFzQ{ '$O&( r)ST۞k6t\YO+tlN!1!522;(9/u)MZ/Z3fm}ivt.PQCz(ewP*(sknvl\. av]A(۽$zNTSO=]Ff˓d„ e1a@h1@h^zqР4A + 2c@YUњr:Af$  (Pɰݼ(-)Q9XP*a7(MD޽2! @=hիW@9 kFMqFh"-Zԩ(F@<P6[oʢd 4Lʄ AR|Hճ.]p)=VT!㨸H ^{6|sByȐ!&N<(( vevɻ 9X(-BйQ~Ay睑'Pڞ_=FXlY!~l7N 8C8XP3n1s`/v:/ ZSN`ӦM+l8㌠$kᤡK^{m8'HI;{{c=s F @n}뭷r_y'ITֽo{nrR裏V˗/{.sC<]gϞs'e'|}8n? m΄ ( aVk{YglQmf-KU݃#a̙J 0~p U:ꨣr?򑏨x"4S;Pa!*~_/wY]{A1>͛xQvmvBWnDs_믿zzW;B?~c=i>OG9W^yE};Q7|s6$+PݺuC'=k/G.~Cx ')7ա<ˠoo=RnDH+E^Ԕ)Sa-|?CYlCNbɺWiE*InCҌzd\:V8b%E۷o*M歏D(K4.tˎDKcpGcmp ar4i?iݧzj`GwHa)_E Aybh#Uwݪ/^z)7"xI'Eg&DE9# ͝;7R¥ T(MA,`*L!dI!)|[x=>dYYD '{B\^( F(g{X߿C)-_0Iyaâ5,ϯkn%\kEw~/l ??SO= /D PZJ/X@z뭑32N~gS|~my&^ ?~#F0$T QaĈjё=v転.\#RMM<$ce@|09A()E6,־TJZ6M=  "Laxf̘_|1N^qREHƍn?"Q&LRʀ(~P?8Au%KDq>ER+vik잏_]C,fg}g/… ȑ##@2n!nyo}K*}WH@2& n[}{?뮻2*M_|E]YXv=f{Z !ÇGO /| Qid~\xX _Wr K]uU]gQj~: +/byW_2f knn/f}p8}h_Ay3T*Gy$JbgNg}62X$2|zW#^QB'ɂx~F)bj= W^8(ƧV8\Rb[v XAewJ#cdl_\Ē馛]4jC/Ń"B|b"$5H t>;ӹ6aqkJ@<$O `I[eB1y0ĉ@<əTi2$)Haj̘1QaIC4z\rR-cKڠdEI,#N%GQd$CH^IrP/~' ֠*ջpB%\m~߇x|ObI/.~.T\1[~bzr}e @ }yȿ7'q ZWe"R˼/Dy/3.rǂ?0(M(%졇R__3LӦM։qyj+-[,2c 񤐷<d @. /Pw}jc\(1}O~g^7(MyE!Aq.xqLW)Uf(+@+BgB>D໾}I ڷ M90=q?Z+8<F3Aҽ\~7O LzPJuFSBk( %ҢO緹m\ `E]o"sKxRWO*:q` Xptڨ4iu$/Yז .1cF{nq̓?^wq( 0/KP{D?OZoRL!T&L)h-2ŅL ?3TFdens}p_&h}S`!䶠9s&&Cܹsގ^G> ( /pΜ9@ʙh?~ڲ|V~ZMao .LVPM'NU(bE2.?epǖrP@2x:$B_TGyիWY,Y+?' 믿ΙhbLp\g$H.#`FRz뭷:Ń>ذcfK Zm 1,޼yO_җaz$ MS+4%W^,4oZYeH.֭>|x$T}6An~&tQgy,s/-M|CQ=zXGǯI}Jq.P4igŔ80O+HZC /rM-Ǥ07n` 1zS@gM/p_ {l?i'~EEP@oYh|/ @Z @h) kIfs7L}x'yk}?4./DΑ~ L>죺wホO*RfC\z@Y@L>b$=i.$Br%"߅EHBk Z &E9/Zk>yZTѹ\?i%me4|@(7I67 wMdYD[X I-"ƂNS9 u7_!3};Z|6o-`S|P2(i^e20iɇgb wUcCUaJl5X!Cy督O nSQrY\s؄M3,(5 3"<~ I}Mx!!&/EX&6x-cZyX=!Mͱ>я%]nَ)]iPe 'htӓT9OR'NDi6!&1뭷^$fq! |)P v"ToK盯o9WRdn2z?bĈH) m&7+$-/d So"?믿~o٪Suy26a,m<v~h>R2ڦf]oKj^zvd+% 2%q~E5eO bO }7z;i؅z[RB&{whe1?y&gLG N2ǬeV0n8(Nn\ُ8>%)c^6w bZlN6GCi/myWO\Bb3oӅBlܘm,]?,kСVܶ+-)m*׸IX`GVV | * >?/";9pu|3:oHLO9U,?,_N^96,l7^~ 7[Ik<)c.UC<!3,&s շ9Y`T!7NHU{DtM9``5ɩӦ/{ڗIq3S%ԥO wP} .O+1ۼ+m}gY ~۔ Wz+eߦ @Z… H.ϒB=^)ET3Ef")mZEQolߌyGR.oSrZjyMΓb>Zh-/־LcKk["mC ؤÇ=]UFc% GM ͅt3gΌ{Ѝ?w uMKJxlfa' }ԫ KL!>rTA&m(Ҵ4¿y+|Qu+HEp_R_mqzH%(7lCd]!kZJs{/Ƌ$ji'H$mZ. 0T9"Y%Is2d YrCO\z 7 rWo,HL]h.۴A6 ˿IfU\q 8C vQ\VK~ac{f 6/@9X ȲKPڏx\">4֌]G}-cifeQO,x(/4] iٛ˸gqxS%Go<[ .Yr&ߦe'dk-(|?d|/ŒUW=\UҔsaq[\K ,E' z B-k#"c?ŭ_,~ 1b׋`߄Ό V-@n}G*KFKO~\~y좦b%g]ZMۋ5R@=gb@ki>_esIfuy=x1)byl~HZ*SA<(EM3@s-C?Ͽ" ~Owq'N*g! @)=figsq=JZoy7xco=vSu}O?f{2y ߕ1/mj z] &74]#O?>-[V w)4?ކ@[={̬h;wδ|]j_t"4%-Uod9eWZ^ӧNxڴ> E&tY"CP'tzմ`D^hQtC-_\^cM޽۷߿tCJr6š/ϫzᚰ¾PGD0U뒫e ,Psε\'~b>@ 6CxUyzO\XreݬY| C:Ⱥ} bKiwՙN^14}ҥj̙k4hAvn]r֬/P;%>s-/e1OUt[j>}z#??w_xq]JYC YPGqV2+rv̼{J.]S Ѣk6:6ķy}cԅWU+Z}0@Z95ٳg 7ܰYo<\:7{O wy@> @O +u1?g݇[ֽ2dշPm]B[mjZB-YХkսp05y#jTC?h*Ef=e+{u_7գ#Z^kѐO:FZیzC]xѮj->i{UV%lU4$PYJ"XiGY]e>J%G<߾7)LRV;Nڭ&Ff%nn=11>!?EsfiEgrZ]m?j$.nsw< Q`"˚[˅&ڣψk>57դ_Gu3g^ϊ2bZEcEQV|'A2Xoa:կϵ!LBPzI 3KDvSGjΝnڟ|ənZc`׋W-eP>?ef5f9RX&A&*OP~>":OϞ=S5$bg𑛫zM,W^za_L%}-WZ/?^U J5kZN_)<WkcZրoS2_Q*w>FDQ66LuT)-0!HΫ~/]8#hȐ!5NXvX:2_%!iz.mW~Q8B5joȼte?ɕ޳{?hQ >_6Up gի࿅Ѭ̋LRK)f:R%If꥘ }Jڬ/CZ! $vkͪ:;hddEoݹzy' i}lG(@/2 TMN;tNv}={:?}% Bu' ^~+OOVV H_R ye}@*O,nz ++m(9ңGAYky5;Ɉ"K:us gN 0b'<^y!@~Qѣ2 CwUt H,LCn|Z독EsԪ }ՋC-^2_l;է ggT˗.VsgPVN&DU̝fMI__EsIf} @Zj^%V )j*(PYٿBtd\gx*N~i5E1EXx9mN)/cƌYk%k

Y?7mS\.!o*!%CP"ɺl޳uuM >\j Ǫ>n=zG遝nԚU+W+fjNl iL4%i3Ofu8R|ʗ+1k1j/\H\x=-pS_Z=,2ßPb!l\{:J#*lC)!' .(b@<]߆nБJ|_ ⡐)+EdU! ysݟeP2{}JNk&?eoE q͏2)YWľMA > @̜93rqS???Ww߿~EOR$B > HNFmT Χ!*kY4g?a„2jV׿(* Zaق[xҤIQjDgIVy!OKK&OcN^y`IY6A*|MwL3vmW.ܹsk>keeOϩL?oK4- [o`i ((j"n-&` **Ayؾ4A쪽_'6g hƄ\>e )oB% J2P>5,pb@V[4!E/D ht<B Zzdyl־j:v_$D3<K0@>V?TlC&B@ hyjEE%mYd͝* l+PbDSzY*2Z;KfW0@3,P,Z\\ZM׫N[Weo*&rBh%@ٞ2ZofoV|Zmmei\̒b ɚZϗm˹B۾P E9B *x"!itq]|mAB]^d@NfΖnkү680MmJ 4+h}"Yf*4>-} w 1Vt'o+  m7kءb(дֿ7Zۄk(9xW3o\- Qr$r%C~)k> @^)x}7-'f(5Z @="*ku f4!oM# ނcAe}  >+ڒ2  4U!\/4(^ؼkz^Խ.O]s@K(5nm9MH U Mm"mN7o۾3P $Z߇kbj(y\;Mp\L߬XyPiŞVǜe0Ye(2uEߖ6l Q%l.oCgK4@h)\e~&@)`< li%Cmxr}\x|sv]^2xj$)MWeg )ewy @BؐMۼ (Ϳ4zT+?m;m! sYϲ}<9 Ş=pUt pe gǦʁtM>z }&@hIlB]YmeJԖ~Z^ f]/k=hzKf5-ȯP״;|_Yj2lmd'L۾me!hZ/56HOi]ViW}<9{vm<9[iV}o]In*헹 &]M2x \\6op@A_}~S>WQr**\qG `Oy~2A "`Zi>Oz]Mi(E<Y\lwy&P _C^Pl>DU}F @fowHUض24"x]-v GA f͛|V?-(0m f\CY ʕ+j sF J-cZ!ﳺ]I @VZ+/)C m5<L3}iUl6E!T)Qrm|Vymy4C]2oA|բdYWJ^hjr.%}rV'~Z' /@HOx۾Yi _F e& ay\r3@[>k o<zC^Wͭo iVk&DiyzZ@`_m˥ղ]ɅPRps=_?Y=ɀB( @z\RU'j N &1{6mAeuwK0o@xeg6onqf -IZ~SH d8Q 0W+c@@Ė2;_ڬYR }Yz5 @ֽY iU } UǐM0]Ioڮ;L~ro yw}`:ȪTWm T8i!V}O>׬qx2ry B p75rP T!+k= @V56`K0\hg&9e`p@YcU L7)mnWs[p :Ʀ,tA = ZOf`w o[QTB<P!UO -f7 @J+u϶|h~k8T[i @҄r{0@' LlLJ< ɿ^>o2&( >׼3R*"gPRX('CscUKiY5i/5oHlk]>Z}-|x)YyӂwYI\w!]쨣RlMryܒ[I@,rii9lv5{-2U)()> 0g ~3 ~1bu]f3I~V/%ZF H+k q}S '\qΝ;*>Mm?g綀Asz_߲|ܒ53|u']ZM)h$ W@T#b3g!R4\۷/W2dVn5߻ !ٳgG~ .]tTLE  Wzŕ XjՒwo y籂(xITLߖr%@M @2` xi۔yjرyi2-hr%@&B,!3K/}Kk]?6`& p 6JLI3 Bޕ\> =zXzp`С\,c=m2|s`W:j+{5ݺu*(@F<&xBY{!FmEػ)IE%1\KH+WuMW7@ڧ?鵄RH {M hd&@ ޱɭޚضз}fV41{yS@Ge7l3pp 077sߔuqCIo6ʀ zvmǕk +V%m){.>~uEKzO Rap)i:_Hǖ^)ֽk&8xqu'#']iUnYc6)0rH5m4|6o TI~2/)Me?G?ţ;U%&M 4@! ym־~ꪫhso 7-~/h,~Iߟc M}4= l$6Lm&jm˭Y'im={vMm馑@9/կ˿  @o9Ht˹m f']oy1Xq0eQV_Ya @X￟;M,imz6,'cX_\6)M< tߜU g1qD5uT 6*}6o<'B&̙\g oz- U|־MJ-5hEhM/@?1bD4z뭥 ɢPR''IZZF+2 O4ȫԣ:J]s51hN-[wMcO N{<.7^&Y]tNH_Sj~ E gW[yLm)o߾#T7x#w @ Vr%c-K؄Okrߧmud'0,)JpE4/# =Puwp/ʹͿ͘D}FZk}z C?DH XI؉ؼY[Dׯ?~ hB|vf4]v oSl7_R/!A&iI/Tp:C=D @ 3r?^\?v}|I dr7}we4Q)mB_b@ZDŽkh Q,Y$rtoG@_LH@Umߥ؄$_" ꪸ XJ `,9wz'Ք)SJ(%~\O8k=}B?Dp}V+c@ފ+@yR M_H.vaSOwy;_[mU͟L߫%rO{Ӭ&‹W'Wk7u `fĥ Y,d6@u$+yWՄ ,c!/qƩ6hxҪ}_p_fnTL L  UB}^l_oFp]@@NH,ēRe hl?z7믿2P/8mɱ4'6?t|2$_xIx.GP$ MAӄqѤ*G>(T~+ڨ9sfߋ-^ҴPO<;f̘u/&CXBEj2ɀ-3OiڣK=z58MBa!ڌ;s9~5B?Y>8 ~ }Э[=I ج4/?Vdd Ԧ)E f,4V̊52C@wb 2>T"LWR2~T=M y }"Ả+IiqV@,ӂmOq}WTx$un=$dF-϶ [ a3& )mC!p |= sU45~m@wp|7귟EHV 42nfA[1P"C-P 4egM>`؍"m"dY`SM 0P|' LO "&yn{NY!Z6H8h~s=3 MH^T"CҒJ "R-a__~(61ψw*kX}1%8pϦ #O*T/m極Mɛo+Sm@_Z6پy=2AEM'tR'zRۚm&A0)nE~WP}U#l: h=zy'=>y!y҄> `=iA!̜g  !/W6O@p2mMczNSݺ7J ).6-P%05k=~V붽>&ھr_[\u]Z_r w 4PZ?*}X%S=kbookomyi?@?R Rfnc*`@]< )0M H*Ѐk aS#XeFfK'Re@C U\W'$ U,t`w |W4?~M%A ߦ_w/LE Mp)mB%:lCWGй 'uۈ<.\Gp ~2Oi޺0I񛓫F0J0c kT\C ? dX?f6N) ~yHKY(~< tE ў,g9S G5(;͐h蜃';nsN Edn \5J5V *#4+5s\8@ # mtp.b5t!~L}9-uݬFHij7je~9@uCmU1 #t{TtW eرo A_a:v2RW`n6X^u׭ 4UT%IqYMSKEk;f3y<] IENDB`cups-2.4.7/tools/printer-lg-png.h0000644000175000017500000045315514502571342016554 0ustar zdohnalzdohnalstatic const unsigned char printer_lg_png[] = { 0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52, 0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x08,0x06,0x00,0x00,0x00,0xf4,0x78,0xd4, 0xfa,0x00,0x00,0x04,0x19,0x69,0x43,0x43,0x50,0x6b,0x43,0x47,0x43,0x6f,0x6c,0x6f, 0x72,0x53,0x70,0x61,0x63,0x65,0x47,0x65,0x6e,0x65,0x72,0x69,0x63,0x52,0x47,0x42, 0x00,0x00,0x38,0x8d,0x8d,0x55,0x5d,0x68,0x1c,0x55,0x14,0x3e,0xbb,0x73,0x67,0x23, 0x24,0xce,0x53,0x6c,0x34,0x85,0x74,0xa8,0x3f,0x0d,0x25,0x0d,0x93,0x56,0x34,0xa1, 0xb4,0xba,0x7f,0xdd,0xdd,0x36,0x6e,0x96,0x49,0x36,0xda,0x22,0xe8,0x64,0xf6,0xee, 0xce,0x98,0xc9,0xce,0x38,0x33,0xbb,0xfd,0xa1,0x4f,0x45,0x50,0x7c,0x31,0xea,0x9b, 0x14,0xc4,0xbf,0xb7,0x80,0x20,0x28,0xf5,0x0f,0xdb,0x3e,0xb4,0x2f,0x95,0x0a,0x25, 0xda,0xd4,0x20,0x28,0x3e,0xb4,0xf8,0x83,0x50,0xe8,0x8b,0xa6,0xeb,0x99,0x3b,0x33, 0x99,0x69,0xba,0xb1,0xde,0x65,0xee,0x7c,0xf3,0x9d,0xef,0x9e,0x7b,0xee,0xb9,0x67, 0xef,0x05,0xe8,0xb9,0xaa,0x58,0x96,0x91,0x14,0x01,0x16,0x9a,0xae,0x2d,0x17,0x32, 0xe2,0x73,0x87,0x8f,0x88,0x3d,0x2b,0x90,0x84,0x87,0xa0,0x17,0x06,0xa1,0x57,0x51, 0x1d,0x2b,0x5d,0xa9,0x4c,0x02,0x36,0x4f,0x0b,0x77,0xb5,0x5b,0xdf,0x43,0xc2,0x7b, 0x5f,0xd9,0xd5,0xdd,0xfe,0x9f,0xad,0xb7,0x46,0x1d,0x15,0x20,0x71,0x1f,0x62,0xb3, 0xe6,0xa8,0x0b,0x88,0x8f,0x01,0xf0,0xa7,0x55,0xcb,0x76,0x01,0x7a,0xfa,0x91,0x1f, 0x3f,0xea,0x5a,0x1e,0xf6,0x62,0xe8,0xb7,0x31,0x40,0xc4,0x2f,0x7a,0xb8,0xe1,0x63, 0xd7,0xc3,0x73,0x3e,0x7e,0x8d,0x69,0x66,0xe4,0x2c,0xe2,0xd3,0x88,0x05,0x55,0x53, 0x6a,0x88,0x97,0x10,0x8f,0xcc,0xc5,0xf8,0x46,0x0c,0xfb,0x31,0xb0,0xd6,0x5f,0xa0, 0x4d,0x6a,0xeb,0xaa,0xe8,0xe5,0xa2,0x62,0x9b,0x75,0xdd,0xa0,0xb1,0x70,0xef,0x61, 0xfe,0x9f,0x6d,0xc1,0x68,0x85,0xf3,0x6d,0xc3,0xa7,0xcf,0x99,0x9f,0x3e,0x84,0xef, 0x61,0x5c,0xfb,0x2b,0x35,0x25,0xe7,0xe1,0x51,0xc4,0x4b,0xaa,0x92,0x9f,0x46,0xfc, 0x08,0xe2,0x6b,0x6d,0x7d,0xb6,0x1c,0xe0,0xdb,0x96,0x9b,0x91,0x11,0x3f,0x06,0x90, 0xdc,0xde,0x9a,0xaf,0xa6,0x11,0xef,0x44,0x5c,0xac,0xdb,0x07,0xaa,0xbe,0x9f,0xa4, 0xad,0xb5,0x8a,0x21,0x7e,0xe7,0x84,0x36,0xf3,0x2c,0xe2,0x2d,0x88,0xcf,0x37,0xe7, 0xca,0x53,0xc1,0xd8,0xab,0xaa,0x93,0xc5,0x9c,0xc1,0x76,0xc4,0xb7,0x35,0x5a,0xf2, 0xf2,0x3b,0x04,0xc0,0x89,0xba,0x5b,0x9a,0xf1,0xc7,0x72,0xfb,0x6d,0x53,0x9e,0xf2, 0xe7,0xe5,0xea,0x35,0x9a,0xcb,0x7b,0x79,0x44,0xfc,0xfa,0xbc,0x79,0x48,0xf6,0x7d, 0x72,0x9f,0x39,0xed,0xe9,0x7c,0xe8,0xf3,0x84,0x96,0x2d,0x07,0xfc,0xa5,0x97,0x94, 0x83,0x15,0xc4,0x83,0x88,0x7f,0xa1,0x46,0x41,0xf6,0xe7,0xe2,0xfe,0xb1,0xdc,0x4a, 0x10,0x03,0x19,0x6a,0x1a,0xe5,0x49,0x7f,0x2e,0x92,0xa3,0x0e,0x5b,0x2f,0xe3,0x5d, 0x6d,0xa6,0xe8,0xcf,0x4b,0x0c,0x17,0x37,0xd4,0x1f,0x4b,0x16,0xeb,0xfa,0x81,0x52, 0xa0,0xff,0x44,0xb3,0x8b,0x72,0x80,0xaf,0x59,0x06,0xab,0x51,0x8c,0x8d,0x4f,0xda, 0x2d,0xb9,0xea,0xeb,0xf9,0x51,0xc5,0xce,0x17,0x7c,0x9f,0x7c,0x85,0x36,0xab,0x81, 0x7f,0xbe,0x0d,0xb3,0x09,0x05,0x28,0x98,0x30,0x87,0xbd,0x0a,0x4d,0x58,0x03,0x11, 0x64,0x28,0x40,0x06,0xdf,0x16,0xd8,0x68,0xa9,0x83,0x0e,0x06,0x32,0x14,0xad,0x14, 0x19,0x8a,0x5f,0xa1,0x66,0x17,0x1b,0xe7,0xc0,0x3c,0xf2,0x3a,0xb4,0x99,0xcd,0xc1, 0xbe,0xc2,0x94,0xfe,0xc8,0xc8,0x5f,0x83,0xf9,0xb8,0xce,0xb4,0x2a,0x64,0x87,0x3e, 0x82,0x16,0xb2,0x1a,0xfc,0x8e,0xac,0x16,0xd3,0x65,0xf1,0xab,0x85,0x5c,0x63,0x13, 0x3f,0x7e,0x2c,0x37,0x02,0x3f,0x26,0x19,0x20,0x12,0xd9,0x83,0xcf,0x5e,0x32,0x49, 0xf6,0x91,0x71,0x32,0x01,0x22,0x79,0x8a,0x3c,0x4d,0xf6,0x93,0x1c,0xb2,0x13,0x64, 0xef,0xfa,0xd8,0x4a,0x6c,0x45,0x5e,0x3c,0x37,0xd6,0xfd,0xbc,0x8c,0x33,0x52,0xa6, 0x9b,0x45,0xdd,0x39,0xb4,0xbb,0xa0,0x60,0xff,0x33,0x2a,0x4c,0x5c,0x53,0xd7,0xac, 0x2c,0x0e,0xb6,0x86,0x23,0xcb,0x29,0xfb,0x05,0x5d,0xbd,0xfc,0xc6,0x5f,0xb1,0x5c, 0xe9,0x2c,0x37,0x51,0xb6,0xe2,0x19,0x9d,0xba,0x57,0xce,0xf9,0x5f,0xf9,0xeb,0xfc, 0x32,0xf6,0x2b,0xfc,0x6a,0xa4,0xe0,0x7f,0xe4,0x57,0xf1,0xb7,0x72,0xc7,0x5a,0xcc, 0xbb,0xb2,0x4c,0xc3,0xec,0x6c,0x58,0x73,0x77,0x55,0x1a,0x6d,0x06,0xe3,0x16,0xf0, 0xd1,0x99,0xc5,0x89,0xc5,0x1d,0xf3,0x71,0xf1,0xe4,0x57,0x0f,0x46,0x7e,0x96,0xc9, 0x99,0xe7,0xaf,0xf4,0x5d,0x3c,0x59,0x6f,0x2e,0x0e,0x46,0xac,0x97,0x05,0xfa,0x6a, 0xf9,0x56,0x19,0x4e,0x8d,0x44,0xac,0xf4,0x83,0xf4,0x87,0xb4,0x2c,0xbd,0x27,0x7d, 0x28,0xfd,0xc6,0xbd,0xcd,0x7d,0xca,0x7d,0xcd,0x7d,0xce,0x7d,0xc1,0x5d,0x02,0x91, 0x3b,0xcb,0x9d,0xe3,0xbe,0xe1,0x2e,0x70,0x1f,0x73,0x5f,0xc6,0xf6,0x6a,0xf3,0x1a, 0x5a,0xdf,0x7b,0x16,0x79,0x18,0xb7,0x67,0xe9,0x96,0x6b,0xac,0x4a,0x21,0x23,0x6c, 0x15,0x1e,0x16,0x72,0xc2,0x36,0xe1,0x51,0x61,0x32,0xf2,0x27,0x0c,0x08,0x63,0x42, 0x51,0xd8,0x81,0x96,0xad,0xeb,0xfb,0x16,0x9f,0x2f,0x9e,0x3d,0x1d,0x0e,0x63,0x1f, 0xe6,0xa7,0xfb,0x5c,0xbe,0x2e,0x56,0x01,0x89,0xfb,0xb1,0x02,0xf4,0x4d,0xfe,0x55, 0x55,0x54,0xe9,0x70,0x94,0x29,0x1d,0x56,0x6f,0x4d,0x38,0xbe,0x41,0x13,0x8c,0x24, 0x43,0x64,0x8c,0x94,0x36,0x54,0xf7,0xb8,0x57,0xf3,0xa1,0x22,0x95,0x4f,0xe5,0x52, 0x69,0x10,0x53,0x3b,0x53,0x13,0xa9,0xb1,0xd4,0x41,0x0f,0x87,0xb3,0xa6,0x76,0xa0, 0x6d,0x02,0xfb,0xfc,0x1d,0xd5,0xa9,0x6e,0xb2,0x52,0xea,0xd2,0x63,0xde,0x7d,0x02, 0x59,0xd3,0x3a,0x6e,0xeb,0x0d,0xcd,0x15,0x77,0x4b,0xd2,0x93,0x62,0x1a,0xaf,0x36, 0x2a,0x96,0x9a,0xea,0xe8,0x88,0xa8,0x18,0x86,0xc8,0x4c,0x8e,0x68,0x53,0x87,0xda, 0x6d,0x5a,0x1b,0x05,0xef,0xde,0xf4,0x8f,0xf4,0x9b,0x32,0xbb,0x0f,0x13,0x5b,0x2e, 0x47,0x9c,0xfb,0x0c,0xc0,0xbe,0x3f,0xf1,0xec,0xfb,0x2e,0xe2,0x8e,0xb4,0x00,0x96, 0x1c,0x80,0x81,0xc7,0x23,0x6e,0x18,0xcf,0xca,0x07,0xde,0x05,0x38,0xf3,0x84,0xda, 0xb2,0xdb,0xc1,0x1d,0x91,0x48,0x7c,0x0b,0xe0,0xd4,0xf7,0xec,0xf6,0xbf,0xfa,0x32, 0x78,0x7e,0xfd,0xd4,0xe9,0xdc,0xc4,0x73,0xac,0xe7,0x2d,0x80,0xb5,0x37,0x3b,0x9d, 0xbf,0xdf,0xef,0x74,0xd6,0x3e,0x40,0xff,0xab,0x00,0x67,0x8d,0x7f,0x01,0xa0,0x9f, 0x7c,0x55,0x03,0x5c,0x0b,0xef,0x00,0x00,0x00,0x38,0x65,0x58,0x49,0x66,0x4d,0x4d, 0x00,0x2a,0x00,0x00,0x00,0x08,0x00,0x01,0x87,0x69,0x00,0x04,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x00,0x00,0x02,0xa0,0x02,0x00,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x02,0x00,0xa0,0x03,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x02,0x00,0x00,0x00,0x00,0x00,0x28,0x30,0x97,0xbf,0x00,0x00,0x03,0x62,0x69,0x54, 0x58,0x74,0x58,0x4d,0x4c,0x3a,0x63,0x6f,0x6d,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x78,0x6d,0x70,0x00,0x00,0x00,0x00,0x00,0x3c,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x78,0x3d,0x22,0x61,0x64,0x6f,0x62, 0x65,0x3a,0x6e,0x73,0x3a,0x6d,0x65,0x74,0x61,0x2f,0x22,0x20,0x78,0x3a,0x78,0x6d, 0x70,0x74,0x6b,0x3d,0x22,0x58,0x4d,0x50,0x20,0x43,0x6f,0x72,0x65,0x20,0x35,0x2e, 0x34,0x2e,0x30,0x22,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x52,0x44, 0x46,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x72,0x64,0x66,0x3d,0x22,0x68,0x74,0x74, 0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x77,0x33,0x2e,0x6f,0x72,0x67,0x2f,0x31, 0x39,0x39,0x39,0x2f,0x30,0x32,0x2f,0x32,0x32,0x2d,0x72,0x64,0x66,0x2d,0x73,0x79, 0x6e,0x74,0x61,0x78,0x2d,0x6e,0x73,0x23,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x3c,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, 0x6e,0x20,0x72,0x64,0x66,0x3a,0x61,0x62,0x6f,0x75,0x74,0x3d,0x22,0x22,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73, 0x3a,0x64,0x63,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x70,0x75,0x72,0x6c, 0x2e,0x6f,0x72,0x67,0x2f,0x64,0x63,0x2f,0x65,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x73, 0x2f,0x31,0x2e,0x31,0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x78,0x6d,0x6c,0x6e,0x73,0x3a,0x49,0x70,0x74,0x63,0x34,0x78,0x6d, 0x70,0x45,0x78,0x74,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x69,0x70,0x74, 0x63,0x2e,0x6f,0x72,0x67,0x2f,0x73,0x74,0x64,0x2f,0x49,0x70,0x74,0x63,0x34,0x78, 0x6d,0x70,0x45,0x78,0x74,0x2f,0x32,0x30,0x30,0x38,0x2d,0x30,0x32,0x2d,0x32,0x39, 0x2f,0x22,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x78, 0x6d,0x6c,0x6e,0x73,0x3a,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3d,0x22, 0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x6e,0x73,0x2e,0x61,0x64,0x6f,0x62,0x65,0x2e, 0x63,0x6f,0x6d,0x2f,0x70,0x68,0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x2f,0x31,0x2e, 0x30,0x2f,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64, 0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x53,0x65,0x71,0x3e, 0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x4d,0x69,0x63,0x68,0x61,0x65,0x6c,0x20, 0x53,0x77,0x65,0x65,0x74,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66, 0x3a,0x53,0x65,0x71,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c, 0x2f,0x64,0x63,0x3a,0x63,0x72,0x65,0x61,0x74,0x6f,0x72,0x3e,0x0a,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64,0x63,0x3a,0x72,0x69,0x67,0x68,0x74,0x73, 0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72, 0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x72,0x64,0x66,0x3a,0x6c,0x69,0x20,0x78, 0x6d,0x6c,0x3a,0x6c,0x61,0x6e,0x67,0x3d,0x22,0x78,0x2d,0x64,0x65,0x66,0x61,0x75, 0x6c,0x74,0x22,0x3e,0x43,0x6f,0x70,0x79,0x72,0x69,0x67,0x68,0x74,0x20,0x32,0x30, 0x31,0x30,0x20,0x41,0x70,0x70,0x6c,0x65,0x20,0x49,0x6e,0x63,0x2e,0x3c,0x2f,0x72, 0x64,0x66,0x3a,0x6c,0x69,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20, 0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x41,0x6c,0x74,0x3e,0x0a,0x20,0x20, 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x64,0x63,0x3a,0x72,0x69,0x67,0x68, 0x74,0x73,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x49,0x70, 0x74,0x63,0x34,0x78,0x6d,0x70,0x45,0x78,0x74,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69, 0x6e,0x65,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x70,0x68, 0x6f,0x74,0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65, 0x3e,0x4e,0x65,0x77,0x20,0x49,0x6d,0x61,0x67,0x65,0x3c,0x2f,0x70,0x68,0x6f,0x74, 0x6f,0x73,0x68,0x6f,0x70,0x3a,0x48,0x65,0x61,0x64,0x6c,0x69,0x6e,0x65,0x3e,0x0a, 0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64,0x66,0x3a,0x44,0x65,0x73,0x63, 0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x3e,0x0a,0x20,0x20,0x20,0x3c,0x2f,0x72,0x64, 0x66,0x3a,0x52,0x44,0x46,0x3e,0x0a,0x3c,0x2f,0x78,0x3a,0x78,0x6d,0x70,0x6d,0x65, 0x74,0x61,0x3e,0x0a,0xa0,0x50,0x98,0x64,0x00,0x00,0x6b,0x41,0x49,0x44,0x41,0x54, 0x78,0xda,0xed,0x9d,0x07,0xfc,0x1c,0x55,0xb9,0xb0,0x4f,0x7a,0xef,0x40,0x0a,0x49, 0x20,0x10,0x9a,0x54,0xe9,0x46,0x7a,0x13,0x14,0x2e,0x52,0x42,0x53,0x54,0x04,0x2f, 0x28,0x02,0xf7,0x7e,0x82,0x15,0x51,0x51,0x11,0x14,0x6c,0x28,0xc2,0xfd,0x79,0x51, 0x41,0x41,0xa4,0x37,0xf9,0x40,0x3a,0x48,0x07,0x29,0x86,0x96,0x90,0x00,0x09,0x24, 0x90,0x46,0x7a,0xcf,0x7e,0xe7,0x1d,0x32,0xff,0x6f,0x72,0x72,0xce,0x9c,0x33,0xbb, 0x33,0xbb,0xb3,0xbb,0xcf,0x93,0xdf,0xc9,0xee,0x7f,0x77,0x76,0x66,0xce,0xb4,0xb7, 0x9c,0xf7,0x7d,0x4f,0x27,0x55,0x52,0x2a,0x95,0x4a,0x1f,0xfd,0xb2,0xad,0x6e,0xdb, 0xe9,0x36,0x56,0xb7,0x31,0xba,0x8d,0xd4,0x6d,0x3d,0xdd,0x06,0xeb,0xd6,0x4b,0xb7, 0xee,0xba,0x75,0x51,0x00,0x00,0x00,0xf5,0x67,0x95,0x6e,0xcb,0x75,0x5b,0xa2,0xdb, 0x1c,0xdd,0x66,0xe9,0x36,0x4d,0xb7,0x29,0xba,0x4d,0xd2,0xed,0x45,0xdd,0x5e,0xea, 0xd4,0xa9,0xd3,0xa2,0x32,0xee,0x7c,0xa7,0x12,0x09,0xfc,0x7e,0xfa,0x65,0x7f,0xdd, 0x0e,0xd0,0x6d,0x8f,0x35,0xc2,0xbf,0x33,0xd7,0x17,0x00,0x00,0x34,0x31,0xab,0x45, 0x09,0xd0,0xed,0x51,0xdd,0xee,0xd5,0xed,0x3e,0xad,0x10,0x2c,0x68,0x7b,0x05,0x40, 0x0b,0xfd,0x41,0xfa,0xe5,0x08,0xdd,0x8e,0xd5,0x6d,0x5f,0xdd,0xba,0x71,0xad,0x00, 0x00,0x40,0x0b,0xb3,0x42,0xb7,0x07,0x74,0xbb,0x4e,0xb7,0x9b,0xb5,0x32,0x30,0xb7, 0xad,0x14,0x00,0x2d,0xf8,0xf7,0xd4,0x2f,0xa7,0xea,0x76,0xb4,0x6e,0x3d,0xb8,0x1e, 0x00,0x00,0xa0,0x0d,0x59,0xaa,0xdb,0x8d,0xba,0x5d,0xa1,0x15,0x81,0x47,0x5a,0x56, 0x01,0xd0,0x42,0x5f,0xdc,0xf9,0xe3,0x75,0x3b,0x5b,0xb7,0x9d,0x39,0xef,0x00,0x00, 0x00,0x1d,0x3c,0xa3,0xdb,0xc5,0xba,0x5d,0xaf,0x95,0x81,0xd5,0x2d,0xa3,0x00,0x68, 0xe1,0x7f,0xa4,0x7e,0x39,0x5f,0xb7,0xad,0x39,0xc7,0x00,0x00,0x00,0x4e,0x26,0xe8, 0x76,0x9e,0x56,0x02,0x6e,0x6a,0x6a,0x05,0x40,0x0b,0xfe,0x2d,0xf5,0xcb,0x65,0xea, 0xc3,0xf1,0x7d,0x00,0x00,0x00,0x08,0x43,0xe2,0x04,0xbe,0xa2,0x15,0x81,0x57,0x8b, 0xda,0x40,0x21,0x51,0xf6,0x5a,0xf0,0xf7,0xd6,0xed,0x02,0xfd,0xf6,0x05,0x84,0x3f, 0x00,0x00,0x40,0x66,0x44,0x76,0xbe,0x20,0xb2,0x54,0x64,0x6a,0x53,0x78,0x00,0xf4, 0x8e,0xee,0xae,0x5f,0xae,0x51,0x1f,0xe6,0xed,0x03,0x00,0x00,0x40,0x6d,0x48,0x5d, 0x81,0x13,0xb4,0x37,0xe0,0x89,0xd2,0x7a,0x00,0xb4,0xf0,0xff,0x9a,0x7e,0x79,0x18, 0xe1,0x0f,0x00,0x00,0x90,0x1b,0x22,0x53,0x1f,0x5e,0x23,0x63,0xcb,0xe5,0x01,0xd0, 0x3b,0x25,0x95,0xf9,0xfe,0xa8,0xdb,0x61,0x9c,0x27,0x00,0x00,0x80,0xc2,0xb8,0x5d, 0xb7,0x2f,0x68,0x6f,0xc0,0x9c,0x86,0x2b,0x00,0x5a,0xf8,0x8b,0x66,0x72,0x8f,0xfa, 0xb0,0x5c,0x2f,0x00,0x00,0x00,0x14,0x8b,0x94,0x19,0x3e,0x48,0x2b,0x01,0x53,0x6a, 0x59,0x49,0x4d,0x43,0x00,0x5a,0xf8,0x6f,0xaf,0x5f,0x1e,0x43,0xf8,0x03,0x00,0x00, 0xd4,0x0d,0x91,0xb9,0x8f,0xad,0x91,0xc1,0xf5,0x57,0x00,0xf4,0x86,0xf7,0xd6,0x2f, 0x0f,0xe9,0x36,0x8c,0x73,0x01,0x00,0x00,0x50,0x57,0x44,0xf6,0x3e,0xb4,0x46,0x16, 0x57,0x45,0x55,0x43,0x00,0x6b,0x36,0xf8,0x7f,0x75,0xeb,0xc9,0x39,0x00,0x00,0x00, 0x68,0x18,0x52,0x4e,0xf8,0x60,0x3d,0x1c,0xf0,0x50,0xe1,0x0a,0xc0,0x1a,0x97,0x83, 0x6c,0x68,0x00,0xc7,0x1d,0x00,0x00,0xa0,0xe1,0xcc,0xd3,0x6d,0x6f,0xad,0x04,0xbc, 0x50,0x98,0x02,0xb0,0x26,0xe0,0x4f,0xc6,0xfc,0x71,0xfb,0x03,0x00,0x00,0x94,0x87, 0x19,0xba,0x8d,0xcb,0x12,0x18,0x18,0xac,0x00,0xac,0x49,0xf5,0x7b,0x52,0x11,0xf0, 0x07,0x00,0x00,0x50,0x46,0x24,0x3b,0x60,0xb7,0xd0,0x14,0xc1,0x2c,0x41,0x80,0x7f, 0x44,0xf8,0x03,0x00,0x00,0x94,0x96,0xb1,0x6b,0x64,0x75,0x10,0x41,0x0a,0xc0,0x9a, 0xea,0x43,0x14,0xf9,0x01,0x00,0x00,0x28,0x37,0x87,0x85,0x56,0x0c,0xf4,0x0e,0x01, 0xac,0xa9,0xed,0x2f,0xe5,0x7d,0xbb,0x71,0x5c,0x01,0x00,0x00,0x4a,0xcf,0x0a,0xdd, 0xf6,0xf2,0xcd,0x1d,0xd0,0xc9,0x23,0xfc,0x65,0x06,0xa2,0x7f,0x2b,0x6a,0xfb,0x03, 0x00,0x00,0x34,0x13,0x12,0x0c,0xb8,0x8d,0x56,0x02,0x16,0xbb,0x16,0xf0,0x0d,0x01, 0x9c,0x8b,0xf0,0x07,0x00,0x00,0x68,0x3a,0xc6,0xac,0x91,0xe1,0xd9,0x3d,0x00,0xda, 0xfa,0xdf,0x52,0xbf,0x48,0x4e,0x61,0x77,0x8e,0x23,0x00,0x00,0x40,0xd3,0xb1,0x5c, 0xb7,0xed,0xb5,0x17,0xe0,0xd5,0xac,0x0a,0xc0,0xfd,0xfa,0x65,0xdf,0x5a,0xb7,0xbe, 0x72,0xe5,0x4a,0x35,0x77,0xee,0xdc,0xd4,0x65,0xba,0x75,0xeb,0xa6,0x06,0x0e,0x1c, 0xc8,0xa9,0x02,0x00,0x00,0xc8,0x97,0x07,0xb4,0x02,0xb0,0x5f,0xb0,0x02,0xa0,0x85, 0xff,0x51,0xfa,0xe5,0x86,0x3c,0xb6,0x7c,0xe9,0xa5,0x97,0xaa,0x33,0xcf,0x3c,0x33, 0x75,0x99,0xee,0xdd,0xbb,0xab,0x65,0xcb,0x96,0x71,0x9a,0x00,0x00,0x00,0xf2,0xe7, 0x68,0xad,0x04,0xdc,0x68,0x7e,0xd8,0xd9,0x22,0xfc,0xe5,0xb3,0x1f,0xe4,0xb5,0xd5, 0xe5,0xcb,0x97,0xe7,0xb2,0x0c,0x00,0x00,0x00,0x54,0xc5,0x0f,0xd6,0xc8,0xf6,0x74, 0x05,0x40,0x33,0x5e,0xb7,0xad,0x39,0x5e,0x00,0x00,0x00,0x2d,0xc1,0xd6,0x6b,0x64, 0xbb,0x57,0x01,0x38,0x9b,0x63,0x05,0x00,0x00,0xd0,0x52,0x9c,0x9d,0xaa,0x00,0x68, 0x17,0xc1,0x9e,0xfa,0x65,0x67,0x8e,0x13,0x00,0x00,0x40,0x4b,0xb1,0xf3,0x1a,0x19, 0xef,0xf4,0x00,0x9c,0xca,0x31,0x02,0x00,0x00,0x68,0x49,0x4e,0xb5,0x2a,0x00,0x5a, 0x33,0x18,0xa4,0x5f,0x8e,0xe2,0xf8,0x00,0x00,0x00,0xb4,0x24,0x47,0xad,0x91,0xf5, 0xeb,0x78,0x00,0x8e,0xd0,0xad,0x27,0xc7,0x07,0x00,0x00,0xa0,0x25,0xe9,0xb9,0x46, 0xd6,0xaf,0xa3,0x00,0x1c,0xcb,0xb1,0x01,0x00,0x00,0x68,0x69,0x3a,0x64,0x7d,0x57, 0xf9,0x4f,0xbb,0x04,0xfa,0xa9,0x1c,0xaa,0xfe,0xd9,0x18,0x3f,0x7e,0xbc,0xda,0x60, 0x83,0x0d,0x52,0x97,0xe9,0xdb,0xb7,0x2f,0xa7,0x04,0x00,0x00,0xa0,0x78,0xf6,0x15, 0x99,0xaf,0x0b,0x03,0x2d,0xe8,0xb4,0x46,0x01,0x10,0x97,0xc0,0x4d,0x1c,0x17,0x00, 0x00,0x80,0x96,0xe7,0x08,0xad,0x00,0xdc,0x12,0x0f,0x01,0xec,0xcf,0xf1,0x00,0x00, 0x00,0x68,0x0b,0x0e,0x90,0xff,0x62,0x05,0x60,0x0f,0x8e,0x07,0x00,0x00,0x40,0x5b, 0x10,0xc9,0xfc,0x4e,0xda,0xfd,0x2f,0x03,0xf0,0xf3,0x94,0xbd,0x2a,0x20,0x00,0x00, 0x00,0xb4,0x16,0xab,0x75,0xeb,0x2f,0x42,0x7f,0x1b,0x84,0x3f,0x00,0x00,0x40,0xdb, 0x20,0x32,0x7f,0x5b,0xf9,0x6f,0x3b,0x8e,0x05,0x00,0x00,0x40,0x5b,0xb1,0x9d,0xa4, 0x01,0x8e,0xe5,0x38,0xb8,0x99,0x37,0x6f,0x9e,0x7a,0xf3,0xcd,0x37,0xa3,0xf6,0xd6, 0x5b,0x6f,0xa9,0xd5,0xab,0x57,0xab,0xa1,0x43,0x87,0xaa,0xe1,0xc3,0x87,0xab,0x61, 0xc3,0x86,0xa9,0x51,0xa3,0x46,0xa9,0x3e,0x7d,0xfa,0xd0,0xcf,0x12,0xb0,0x68,0xd1, 0x22,0x35,0x75,0xea,0x54,0x35,0x7d,0xfa,0x74,0xf5,0xee,0xbb,0xef,0x46,0xaf,0x0b, 0x17,0x2e,0x54,0x43,0x86,0x0c,0x89,0xfa,0x20,0x6d,0xc4,0x88,0x11,0x6a,0x93,0x4d, 0x36,0x51,0x3a,0x02,0x96,0x8b,0x9b,0x73,0x01,0xd0,0xce,0x8c,0x15,0x05,0x60,0x4c, 0x91,0x5b,0x98,0x32,0x65,0x8a,0x7a,0xe0,0x81,0x07,0x52,0x97,0x11,0xc1,0x72,0xec, 0xb1,0xc7,0x96,0x62,0x3b,0x2b,0x57,0xae,0x54,0x37,0xde,0x78,0xa3,0xfa,0xdd,0xef, 0x7e,0xa7,0x5e,0x78,0xe1,0x05,0xf5,0xc1,0x07,0x1f,0xa4,0x2e,0xdf,0xb5,0x6b,0x57, 0xb5,0xef,0xbe,0xfb,0xaa,0xa3,0x8e,0x3a,0x4a,0x1d,0x71,0xc4,0x11,0xde,0x9a,0x07, 0x65,0x39,0x9e,0x65,0xef,0x67,0x28,0xb3,0x67,0xcf,0x56,0xb7,0xde,0x7a,0xab,0xba, 0xfe,0xfa,0xeb,0xd5,0x7d,0xf7,0xdd,0xa7,0x56,0xac,0x58,0xe1,0xfd,0x8d,0x28,0x33, 0xd2,0x87,0x23,0x8f,0x3c,0x52,0xed,0xb1,0xc7,0x1e,0xaa,0x4b,0x97,0x2e,0x35,0xed, 0xc3,0x8b,0x2f,0xbe,0xa8,0x9e,0x79,0xe6,0x99,0xd4,0x65,0x06,0x0c,0x18,0x10,0x1d, 0xbb,0x7a,0x72,0xd7,0x5d,0x77,0x45,0x82,0xd7,0x45,0xe7,0xce,0x9d,0xd5,0xe7,0x3e, 0xf7,0xb9,0xe8,0xb5,0x55,0xce,0x05,0x00,0x04,0x33,0x46,0x6a,0x00,0x3c,0x5e,0x29, 0x90,0x8b,0x2f,0xbe,0xb8,0xa2,0x37,0xe4,0x6d,0x8d,0xde,0x8e,0x7e,0x78,0x55,0x7e, 0xf2,0x93,0x9f,0x54,0x46,0x8e,0x1c,0x19,0xb4,0x1e,0x5b,0xd3,0x0f,0xd2,0xca,0xf1, 0xc7,0x1f,0x5f,0xd1,0x0f,0xdd,0xd2,0x1e,0xcf,0x66,0xe9,0xa7,0x8f,0x89,0x13,0x27, 0x56,0x0e,0x3f,0xfc,0xf0,0x8a,0x56,0x4c,0xaa,0xee,0x87,0xb4,0x8d,0x37,0xde,0xb8, 0x72,0xc7,0x1d,0x77,0xd4,0xb4,0x2f,0xe7,0x9c,0x73,0x4e,0xd0,0x31,0x7b,0xfb,0xed, 0xb7,0xeb,0x76,0x7c,0xb4,0x47,0xa7,0xd2,0xbb,0x77,0xef,0xd4,0x7d,0x92,0x63,0x37, 0x73,0xe6,0xcc,0x96,0x3a,0x17,0x00,0x10,0xcc,0xe3,0x22,0x29,0x26,0xb6,0xbb,0x02, 0x70,0xd3,0x4d,0x37,0x55,0xb4,0xd5,0x5c,0xd3,0xc3,0x2b,0xd9,0xb4,0xb5,0x57,0xb9, 0xec,0xb2,0xcb,0x2a,0xab,0x56,0xad,0x2a,0xd5,0xf1,0x6c,0xa6,0x7e,0xba,0x58,0xba, 0x74,0x69,0xe5,0x7b,0xdf,0xfb,0x5e,0xa5,0x47,0x8f,0x1e,0xb9,0xf5,0x43,0x9a,0xb6, 0x40,0x2b,0xd3,0xa6,0x4d,0xab,0x6a,0x9f,0x9e,0x7b,0xee,0xb9,0xa0,0x6d,0x5c,0x70, 0xc1,0x05,0x75,0x3b,0x4e,0x97,0x5f,0x7e,0xb9,0x77,0x7f,0x44,0x68,0xb7,0xda,0xb9, 0x00,0x80,0x70,0xdd,0x5d,0x24,0xc5,0xec,0x76,0x56,0x00,0xe4,0x77,0x62,0x9d,0xe5, 0xf9,0x00,0x8b,0xdb,0x21,0x87,0x1c,0x12,0x3d,0x24,0xcb,0x70,0x3c,0x9b,0xad,0x9f, 0x36,0x9e,0x7d,0xf6,0xd9,0xca,0xd8,0xb1,0x63,0x0b,0xe9,0x83,0xb4,0xf5,0xd6,0x5b, 0xaf,0xf2,0xd2,0x4b,0x2f,0x55,0xb5,0x6f,0xdb,0x6d,0xb7,0x9d,0x77,0xfd,0x5b,0x6e, 0xb9,0x65,0xdd,0xee,0xec,0x5d,0x76,0xd9,0xc5,0xbb,0x3f,0xb5,0x58,0xdb,0x65,0x3e, 0x17,0x00,0x10,0xc4,0x6c,0x19,0xfc,0xeb,0xd5,0x8e,0x83,0x1f,0x32,0x06,0x7e,0xda, 0x69,0xa7,0xa9,0xb3,0xcf,0x3e,0x3b,0x0a,0x78,0x2b,0x6a,0x0c,0x56,0xc6,0x7d,0x97, 0x2f,0x5f,0x4e,0x3f,0x6b,0xe4,0x89,0x27,0x9e,0x50,0xfb,0xed,0xb7,0x9f,0x9a,0x34, 0x69,0x52,0x61,0xdb,0x98,0x35,0x6b,0x96,0x3a,0xe0,0x80,0x03,0xd4,0x6b,0xaf,0xbd, 0x96,0xf9,0xb7,0x9f,0xff,0xfc,0xe7,0xbd,0xcb,0xbc,0xfa,0xea,0xab,0xea,0xa9,0xa7, 0x9e,0x2a,0xfc,0x9c,0x4b,0x4c,0xc2,0xd3,0x4f,0x3f,0x9d,0xba,0x8c,0x1e,0x02,0x52, 0x07,0x1f,0x7c,0x70,0x4b,0x9e,0x0b,0x00,0x08,0xa2,0x97,0x28,0x00,0xdd,0xdb,0xb1, 0xe7,0x9f,0xfd,0xec,0x67,0xd5,0x15,0x57,0x5c,0x51,0xf8,0x76,0xee,0xbc,0xf3,0x4e, 0x75,0xcc,0x31,0xc7,0x04,0x05,0x44,0xd1,0x4f,0x3b,0x0f,0x3f,0xfc,0xb0,0x3a,0xe8, 0xa0,0x83,0xa2,0x4c,0x85,0xa2,0x79,0xef,0xbd,0xf7,0xd4,0xfe,0xfb,0xef,0x1f,0x65, 0x43,0x64,0xe1,0x84,0x13,0x4e,0x88,0x02,0x25,0x7d,0xfc,0xe9,0x4f,0x7f,0x2a,0xbc, 0x0f,0xff,0xfb,0xbf,0xff,0xeb,0x5d,0xe6,0x8b,0x5f,0xfc,0x62,0x55,0x01,0x77,0xcd, 0x70,0x2e,0x00,0x20,0x88,0xee,0xa2,0x00,0xb4,0x5d,0xd8,0xed,0xd5,0x57,0x5f,0xad, 0xae,0xbb,0xee,0xba,0xba,0x6d,0x4f,0x22,0xa3,0x7f,0xf4,0xa3,0x1f,0xd1,0xcf,0x2a, 0x78,0xf4,0xd1,0x47,0x95,0x1e,0x62,0x50,0x0b,0x16,0x2c,0x08,0xfe,0x4d,0xb7,0x6e, 0xdd,0xd4,0xe8,0xd1,0xa3,0xd5,0x8e,0x3b,0xee,0xa8,0xb6,0xde,0x7a,0xeb,0x28,0xf5, 0x2c,0x0b,0xef,0xbc,0xf3,0x8e,0x3a,0xf9,0xe4,0x93,0x33,0xfd,0x46,0xd2,0xda,0x42, 0x2c,0xea,0xbf,0xfe,0xf5,0xaf,0x85,0x7a,0x4a,0x96,0x2d,0x5b,0xa6,0xfe,0xfc,0xe7, 0x3f,0xa7,0x2e,0x23,0x51,0xff,0x59,0xfb,0xd7,0x4c,0xe7,0x02,0x00,0x82,0xe8,0xa2, 0x8a,0x1e,0x64,0x28,0x5b,0x0c,0x80,0xce,0x4d,0xae,0x0c,0x1c,0x38,0x30,0x73,0xd4, 0xbb,0xaa,0x71,0x4c,0xb3,0x7b,0xf7,0xee,0x95,0x97,0x5f,0x7e,0x99,0x7e,0x66,0x40, 0xa7,0x26,0x56,0x74,0x9a,0x58,0xd0,0x76,0x75,0x2e,0x79,0x45,0x5b,0xe1,0x15,0xad, 0x84,0x54,0x74,0x0e,0xfa,0x3a,0xeb,0xd2,0xae,0xe4,0xca,0x4f,0x7f,0xfa,0xd3,0xca, 0x86,0x1b,0x6e,0x18,0xdc,0x97,0x6b,0xae,0xb9,0x26,0xd3,0xfe,0xea,0xf4,0xb7,0xa0, 0xf5,0xea,0xf4,0xcb,0xc2,0xee,0xb7,0x6b,0xaf,0xbd,0xd6,0xbb,0x7d,0xad,0xa8,0xb4, 0xfc,0xb9,0x00,0x00,0x3f,0x6d,0xa7,0x00,0x68,0xf7,0xa5,0x77,0x19,0x79,0xd0,0x9d, 0x7f,0xfe,0xf9,0x95,0x7f,0xfc,0xe3,0x1f,0x95,0xc9,0x93,0x27,0x57,0xf4,0x38,0x7a, 0x47,0xd4,0xf3,0x2b,0xaf,0xbc,0x12,0x45,0x73,0x6f,0xb3,0xcd,0x36,0x99,0x85,0xe3, 0x9e,0x7b,0xee,0x59,0xd1,0xe3,0xf0,0xf4,0x33,0x90,0x13,0x4f,0x3c,0x31,0x68,0x7b, 0x3b,0xec,0xb0,0x43,0x45,0x8f,0x79,0x07,0xad,0x53,0x5b,0xaf,0x95,0x33,0xce,0x38, 0x23,0x68,0xbd,0xba,0x08,0x52,0x94,0x4e,0x97,0x25,0x2a,0x7e,0xd0,0xa0,0x41,0x85, 0x47,0xdf,0xa7,0xa1,0x5d,0xe6,0x85,0x28,0x20,0xcd,0x76,0x2e,0x00,0x00,0x05,0x20, 0x53,0x3b,0xf0,0xc0,0x03,0x2b,0xb7,0xdc,0x72,0x4b,0x87,0x20,0xf4,0xa1,0x8b,0xe8, 0x64,0x4e,0xab,0xd3,0x6e,0x79,0xfa,0x19,0xc0,0x0d,0x37,0xdc,0x10,0xb4,0x1d,0x5d, 0x3c,0xa6,0x2a,0xc1,0xf0,0x9d,0xef,0x7c,0x27,0x68,0xfd,0xdf,0xff,0xfe,0xf7,0x33, 0xad,0xf7,0xcb,0x5f,0xfe,0xb2,0x77,0x9d,0xda,0x2d,0x9e,0x4b,0xfe,0xbd,0xc9,0x1b, 0x6f,0xbc,0x11,0x59,0xdf,0x69,0xdb,0xd6,0xd5,0x1d,0x2b,0x3a,0x4e,0xa3,0x2d,0xce, 0x05,0x00,0xa0,0x00,0x78,0x9b,0x1e,0x97,0xac,0xda,0x2d,0xab,0x23,0xbb,0x2b,0xeb, 0xaf,0xbf,0x7e,0xf0,0xb6,0x3e,0xf6,0xb1,0x8f,0xd1,0xcf,0x00,0xcb,0x50,0xd2,0xc0, 0x7c,0xdb,0xd0,0x65,0x64,0xa3,0x65,0xab,0xe5,0xb0,0xc3,0x0e,0x0b,0xda,0x46,0x16, 0x9e,0x7c,0xf2,0xc9,0xa0,0xe3,0xf3,0xeb,0x5f,0xff,0x3a,0xf7,0x7b,0xed,0xdc,0x73, 0xcf,0xf5,0x6e,0xf7,0x9b,0xdf,0xfc,0x66,0xdb,0x9c,0x0b,0x00,0x40,0x01,0xf0,0x8e, 0x87,0xea,0x5a,0xe5,0x35,0x6d,0xfb,0x9f,0xff,0xfc,0x67,0xa6,0x62,0x28,0xb5,0x8c, 0x91,0xb7,0x43,0x3f,0x2f,0xbd,0xf4,0xd2,0xa0,0x71,0xe6,0x87,0x1e,0x7a,0xa8,0xa6, 0xfe,0x48,0x05,0x3b,0x89,0x59,0xf0,0x6d,0x4b,0x07,0xbf,0x65,0x5a,0xaf,0xe4,0xfb, 0xfb,0xd6,0xb9,0xd3,0x4e,0x3b,0xe5,0x7a,0x9f,0x89,0x37,0xc7,0x57,0xdd,0x51,0x8e, 0x99,0x4e,0xdd,0x6b,0xab,0x73,0x01,0x00,0x6e,0xda,0x7a,0x1a,0xe0,0x8b,0x2e,0xba, 0x28,0xca,0x61,0x97,0x09,0x6f,0x6a,0x61,0xdc,0xb8,0x71,0x4a,0xbb,0x27,0x83,0x97, 0xbf,0xf2,0xca,0x2b,0xe9,0xa7,0x03,0x51,0x4a,0xb5,0x75,0xec,0x5d,0x4e,0xea,0xc7, 0xef,0xb5,0xd7,0x5e,0x35,0xf5,0x47,0x17,0xb2,0x51,0xe3,0xc7,0x8f,0xf7,0x2e,0x77, 0xd5,0x55,0x57,0x65,0x5a,0x6f,0x48,0x4d,0x00,0x5d,0x48,0x47,0x69,0x05,0x29,0xb7, 0x73,0x7c,0xf7,0xdd,0x77,0x2b,0x5d,0x3d,0x2f,0x75,0x19,0x99,0xcb,0x61,0xd3,0x4d, 0x37,0x6d,0xab,0x73,0x01,0x00,0xe9,0x37,0x79,0x5b,0x7a,0x00,0xf2,0x76,0xc1,0xea, 0x99,0xce,0x2a,0x7a,0x82,0x9c,0xa0,0x6d,0xcb,0x38,0x6c,0xb5,0x41,0x72,0xad,0xde, 0xcf,0xdb,0x6f,0xbf,0x3d,0x68,0xdd,0x7a,0x42,0xa4,0x5c,0xfa,0x73,0xdb,0x6d,0xb7, 0x79,0xb7,0x35,0x78,0xf0,0xe0,0x4c,0xfd,0x90,0x0c,0x8c,0x90,0x8c,0x8a,0xaf,0x7f, 0xfd,0xeb,0xb9,0x9d,0x17,0x2d,0x84,0xbd,0xdb,0x93,0x0c,0x81,0x76,0x3b,0x17,0x00, 0x80,0x07,0x60,0x2d,0x7e,0xf3,0x9b,0xdf,0x28,0x1d,0x7d,0x9c,0xeb,0x3a,0x65,0x06, 0xbe,0xaf,0x7d,0xed,0x6b,0x41,0xcb,0x4a,0x81,0x13,0x1d,0xb0,0x45,0x3f,0x2d,0x68, 0x97,0xb3,0x77,0x99,0xcd,0x36,0xdb,0x4c,0xed,0xb3,0xcf,0x3e,0xb9,0xf4,0xe7,0x13, 0x9f,0xf8,0x84,0xea,0xd9,0xb3,0x67,0xea,0x32,0x73,0xe6,0xcc,0x89,0x66,0x61,0x0c, 0x45,0xaa,0xec,0x49,0x01,0x1b,0x1f,0x7f,0xf9,0xcb,0x5f,0x72,0xa9,0xce,0x28,0xc7, 0x59,0x97,0xf5,0x4d,0x5d,0x46,0xf2,0xef,0xc5,0x52,0x6f,0xb7,0x73,0x01,0x00,0x6e, 0xda,0x4e,0x01,0xd0,0x93,0xd7,0xa8,0xd3,0x4f,0x3f,0xbd,0x90,0x75,0x4b,0x25,0xbc, 0x50,0x7c,0xd3,0xc7,0xb6,0x63,0x3f,0x75,0x1a,0x9d,0x7a,0xf0,0xc1,0x07,0xbd,0xcb, 0xe9,0x2c,0x86,0xdc,0xfa,0xa2,0xc7,0x9d,0xd5,0x56,0x5b,0x6d,0xe5,0x5d,0xee,0xf9, 0xe7,0x9f,0xcf,0xb4,0xde,0x2f,0x7c,0xe1,0x0b,0xde,0x65,0xa4,0xc8,0xcd,0xbd,0xf7, 0xde,0x5b,0x73,0x1f,0xc4,0x2d,0xee,0xab,0xc0,0x28,0xd3,0xfe,0xea,0xf8,0x8d,0xb6, 0x3c,0x17,0x00,0x80,0x02,0x10,0xa1,0xd3,0xb4,0x0a,0x5b,0xb7,0x9e,0xce,0x54,0xe9, 0xbc,0xf9,0x52,0x28,0x00,0xcd,0xd8,0x4f,0xa9,0x5f,0x1f,0x52,0x25,0x2f,0xc4,0xba, 0xce,0x42,0x48,0x5f,0xb2,0x0a,0x9d,0x4f,0x7f,0xfa,0xd3,0xaa,0x7f,0xff,0xfe,0x41, 0xc2,0xbb,0x56,0x42,0x4a,0xff,0x7e,0xe9,0x4b,0x5f,0xca,0xb4,0xce,0x56,0x3a,0x17, 0x00,0x80,0x02,0x50,0x17,0x42,0x27,0x58,0x29,0x5a,0x01,0x68,0xc6,0x7e,0x4a,0xa9, 0xd9,0x10,0x76,0xdb,0x6d,0xb7,0x5c,0xfb,0x32,0x66,0xcc,0x98,0xdc,0x85,0x4e,0xef, 0xde,0xbd,0x83,0x82,0xda,0x6e,0xbe,0xf9,0xe6,0x4c,0xa5,0x75,0x6d,0xc7,0xcc,0x37, 0x61,0x8e,0xce,0xcf,0x0f,0xb2,0xac,0x5b,0xf5,0x5c,0x00,0x00,0x0a,0x40,0x5d,0x08, 0xb5,0x8c,0x75,0xa5,0x3d,0xfa,0x59,0x85,0xd0,0x91,0x31,0xe2,0x11,0x23,0x46,0xe4, 0xda,0x97,0x7e,0xfd,0xfa,0x79,0x97,0x79,0xfd,0xf5,0xd7,0x33,0xaf,0x37,0x24,0x1b, 0x60,0xf1,0xe2,0xc5,0x4a,0x17,0xda,0xa9,0x7a,0xdf,0x7f,0xff,0xfb,0xdf,0xe7,0x6e, 0xfd,0xb7,0xe2,0xb9,0x00,0x80,0x75,0xe9,0xca,0x21,0xc8,0x97,0x2d,0xb6,0xd8,0x22, 0x68,0xb9,0xb9,0x73,0xe7,0xd2,0x4f,0x83,0x90,0xa9,0x72,0x57,0xad,0x5a,0x15,0xcd, 0x48,0x97,0x27,0x13,0x26,0x4c,0xf0,0x2e,0x53,0xcd,0xec,0x77,0x62,0x79,0xeb,0xe2, 0x35,0x4a,0x97,0x59,0x4e,0x5d,0x4e,0x66,0x08,0x3c,0xe9,0xa4,0x93,0x32,0xaf,0x7f, 0xfe,0xfc,0xf9,0x4a,0xcf,0x3f,0x90,0xba,0xcc,0x80,0x01,0x03,0x82,0x3c,0x11,0xad, 0x7e,0x2e,0xfe,0xfe,0xf7,0xbf,0xab,0xc7,0x1e,0x7b,0xac,0xb4,0xf7,0x93,0x78,0x3e, 0x98,0xf4,0x08,0x50,0x00,0xda,0x44,0x01,0x90,0xa0,0xad,0x25,0x4b,0x96,0xa8,0x5e, 0xbd,0x7a,0xd1,0x4f,0x8d,0x2e,0x64,0xa3,0x66,0xcf,0x9e,0x1d,0xb4,0xbe,0xbc,0xa2, 0xce,0xb3,0x0a,0xdb,0xac,0xe8,0x02,0x39,0x51,0xf0,0x9d,0xaf,0x76,0x82,0x08,0x51, 0x99,0xf2,0x56,0x62,0x2b,0xb2,0xa0,0xd3,0xfa,0x22,0x0f,0x42,0x1a,0x32,0x1d,0x74, 0xd6,0x6b,0xac,0x15,0xcf,0x85,0xcc,0x90,0x28,0xc7,0xab,0xac,0xc8,0x10,0x0d,0x0a, 0x00,0xd4,0x1b,0x86,0x00,0x72,0x46,0x4f,0x06,0x13,0x1c,0x6d,0x5d,0x8f,0x39,0xd5, 0x9b,0xa5,0x9f,0x7a,0xb6,0xb9,0xa8,0xf0,0x4c,0x59,0x11,0x41,0x2b,0x16,0x6f,0x56, 0xf4,0x24,0x3a,0x91,0x22,0x90,0x86,0xf4,0x5b,0xa6,0x6e,0xce,0x4a,0x11,0xc1,0x7f, 0xad,0x7c,0x2e,0x00,0x00,0x05,0xa0,0x70,0x24,0x57,0x3e,0xf4,0x41,0x4b,0x3f,0x3f, 0x24,0xc4,0xe2,0x6c,0x34,0xd5,0x58,0x9e,0x32,0x04,0x10,0x52,0x25,0x2f,0xab,0x02, 0xf0,0xe2,0x8b,0x2f,0x46,0x91,0xfa,0x69,0xec,0xb2,0xcb,0x2e,0x6a,0xfb,0xed,0xb7, 0xcf,0xbc,0xcf,0xad,0x7a,0x2e,0x00,0x00,0x05,0xa0,0x34,0x82,0xb1,0x96,0xe8,0xef, 0x56,0xeb,0xa7,0x14,0x78,0x29,0x3b,0xd5,0x9e,0xaf,0x90,0x60,0x40,0x5d,0x0b,0x3f, 0xd3,0x18,0x75,0x51,0xd6,0x7f,0xab,0x9f,0x0b,0x00,0x40,0x01,0x28,0x14,0x49,0x01, 0x0b,0xa1,0x6b,0xd7,0xae,0xf4,0x73,0x0d,0xcd,0x10,0x14,0x59,0x6d,0xd5,0xbe,0xa3, 0x8f,0x3e,0x3a,0xe8,0x58,0x85,0xd6,0x04,0x58,0xb6,0x6c,0x59,0x34,0xa6,0x9d,0x46, 0xdf,0xbe,0x7d,0xd5,0xf1,0xc7,0x1f,0x5f,0xd5,0xfe,0xb6,0xf2,0xb9,0x00,0x00,0x14, 0x80,0x42,0xf1,0x55,0x65,0x8b,0x91,0x08,0x6d,0xfa,0xd9,0x3c,0x0f,0xf4,0x6a,0x15, 0x36,0x49,0x6d,0x3b,0xf2,0xc8,0x23,0xbd,0xcb,0x5d,0x77,0xdd,0x75,0x91,0x70,0xf7, 0x71,0xd3,0x4d,0x37,0x79,0xad,0x74,0x11,0xfe,0xa2,0x04,0xb4,0xaa,0x70,0x6d,0x76, 0xe5,0x19,0xa0,0x14,0xf7,0x11,0x87,0x20,0x7f,0x16,0x2d,0x5a,0x14,0xb4,0xdc,0xc0, 0x81,0x03,0xe9,0xe7,0x1a,0xf4,0x24,0x2f,0x2d,0x2d,0x74,0xa4,0x34,0xb0,0xcf,0x6a, 0x97,0x58,0x09,0x3d,0x21,0x8e,0x37,0x6d,0xaf,0x48,0xf7,0x7f,0xab,0x9e,0x8b,0xdd, 0x77,0xdf,0x5d,0xcd,0x9a,0x35,0xab,0xb4,0xfd,0xc9,0x5a,0xa8,0x09,0x00,0x05,0xa0, 0xc9,0x05,0x63,0xb3,0x7b,0x00,0xf2,0xec,0xe7,0x7a,0xeb,0xad,0x17,0xb4,0xae,0xef, 0x7d,0xef,0x7b,0x99,0xa6,0x24,0x2e,0x0b,0x32,0x15,0xef,0xa8,0x51,0xa3,0x94,0x9e, 0x29,0x30,0x75,0x39,0xa9,0x09,0x90,0xa6,0x00,0x48,0x4d,0x81,0xfb,0xef,0xbf,0x3f, 0x75,0x1d,0x12,0xf8,0x27,0x01,0x80,0xd5,0xd2,0x8a,0xe7,0xe2,0xcc,0x33,0xcf,0x8c, 0x1a,0x00,0xfc,0x7f,0x18,0x02,0x28,0x00,0x5f,0x6e,0xb6,0x20,0x6e,0xe1,0x2e,0x5d, 0xba,0xd0,0xcf,0x8c,0x42,0x27,0xa4,0x50,0x4c,0x29,0x6f,0xb4,0xce,0x9d,0xa3,0x94, 0x40,0x1f,0x77,0xdf,0x7d,0xb7,0x7a,0xff,0xfd,0xf7,0x9d,0xdf,0xff,0xe1,0x0f,0x7f, 0xf0,0xa6,0xe8,0xd5,0x62,0xfd,0xb7,0xc3,0xb9,0x00,0x00,0x14,0x80,0x42,0x90,0xa9, 0x59,0x43,0xc6,0x50,0x9b,0xdd,0xfd,0x9f,0x77,0x3f,0xa5,0xae,0x40,0x88,0xa2,0xd0, 0xcc,0x42,0x47,0x8a,0x02,0xf9,0x90,0x22,0x3c,0x32,0x4d,0xb0,0x0d,0xc9,0x7d,0x17, 0x05,0x20,0x0d,0x29,0xfa,0xf3,0x99,0xcf,0x7c,0xa6,0xa6,0xfd,0x6c,0x87,0x73,0x01, 0x00,0x28,0x00,0xb9,0xe3,0x9b,0x98,0x25,0x66,0xf3,0xcd,0x37,0xa7,0x9f,0x09,0xa4, 0x58,0x8e,0xcc,0x59,0xef,0x43,0xd2,0xe5,0x42,0x87,0x1e,0xca,0x86,0x54,0x4f,0x94, 0xb1,0x68,0x1f,0xae,0x6c,0x00,0xf1,0x0e,0xc8,0x14,0xc2,0x69,0xc8,0xf0,0x41,0xad, 0xca,0x65,0x3b,0x9c,0x0b,0x00,0x40,0x01,0x68,0x98,0x60,0xac,0x65,0x8c,0xb6,0x55, 0xfb,0xb9,0xd3,0x4e,0x3b,0x05,0x59,0xc8,0x22,0x08,0x9b,0x15,0x09,0x06,0xf4,0x21, 0xb3,0xdd,0x49,0xa1,0x1f,0x93,0xa2,0x26,0xfe,0x69,0xd7,0x73,0x01,0x80,0x02,0x00, 0x28,0x00,0x25,0xe9,0x67,0xe8,0xdc,0xf2,0xb7,0xdc,0x72,0x4b,0xd3,0x1e,0xb7,0x63, 0x8e,0x39,0x26,0xa8,0x84,0xb2,0xe9,0x05,0x90,0x21,0x97,0x3b,0xee,0xb8,0x23,0xf5, 0x37,0x12,0x49,0x2e,0x13,0x10,0xe5,0x41,0x3b,0x9c,0x0b,0x00,0x14,0x00,0xc8,0x95, 0xd0,0x79,0xd4,0x9b,0x5d,0x01,0x28,0xa2,0x9f,0xfb,0xed,0xb7,0x5f,0xd0,0x72,0x77, 0xde,0x79,0x67,0x64,0x7d,0x36,0x23,0x32,0xbe,0x7e,0xf8,0xe1,0x87,0x7b,0x97,0x93, 0x38,0x80,0x64,0xbd,0x7b,0x51,0x08,0x7c,0x75,0x17,0xf2,0xb2,0xfe,0xdb,0xe5,0x5c, 0x00,0xa0,0x00,0x40,0x6e,0x48,0xf4,0xb6,0xaf,0x3e,0xbb,0x30,0x74,0xe8,0xd0,0x28, 0x25,0x8c,0x7e,0xae,0x8d,0xa4,0xaf,0x85,0x8c,0x3d,0x4b,0x11,0x9c,0xbf,0xfd,0xed, 0x6f,0x4d,0x7b,0xfc,0x42,0x4a,0x03,0xcf,0x98,0x31,0x43,0xdd,0x73,0xcf,0x3d,0x1d, 0x7f,0xfb,0x72,0xff,0xc5,0xab,0x10,0x12,0x64,0xc8,0xb9,0x00,0x00,0x14,0x80,0x02, 0x90,0x39,0xc7,0x43,0x22,0xe3,0x0f,0x39,0xe4,0x10,0xfa,0x69,0xbb,0x18,0x75,0xaa, 0x5c,0xa8,0xe5,0x79,0xfe,0xf9,0xe7,0x37,0xed,0x8c,0x70,0x07,0x1d,0x74,0x90,0x1a, 0x36,0x6c,0x98,0x77,0x39,0xa9,0x09,0x20,0x88,0xb7,0xc5,0x37,0xe4,0x72,0xc4,0x11, 0x47,0x04,0x09,0x6c,0xce,0x05,0x00,0xa0,0x00,0x14,0x80,0x2b,0x7d,0xcb,0xe4,0x94, 0x53,0x4e,0xa1,0x9f,0x0e,0xce,0x38,0xe3,0x8c,0xa0,0xe5,0x44,0x20,0x5e,0x73,0xcd, 0x35,0x4d,0x79,0xfc,0xa4,0x8a,0x5d,0x48,0xaa,0xde,0xad,0xb7,0xde,0x1a,0x4d,0xa5, 0x5c,0xcf,0xe0,0xbf,0x76,0x3b,0x17,0x00,0x28,0x00,0x6d,0xc4,0xd2,0xa5,0x4b,0x0b, 0x59,0xaf,0x58,0x69,0xf7,0xde,0x7b,0xaf,0x77,0xb9,0x2d,0xb7,0xdc,0x52,0x7d,0xfc, 0xe3,0x1f,0xa7,0x9f,0x0e,0xf6,0xdc,0x73,0x4f,0xb5,0xf7,0xde,0x7b,0x07,0x2d,0x7b, 0xce,0x39,0xe7,0xa8,0x77,0xdf,0x7d,0xb7,0x29,0xaf,0xc3,0x10,0x77,0xbd,0x9c,0x43, 0x11,0xfe,0xd7,0x5f,0x7f,0x7d,0xea,0x72,0x9b,0x6e,0xba,0x69,0x54,0x69,0x30,0x6f, 0xda,0xe5,0x5c,0x00,0xa0,0x00,0xb4,0x09,0x22,0x94,0xde,0x7a,0xeb,0xad,0xdc,0xd7, 0x7b,0xde,0x79,0xe7,0x05,0x2d,0x77,0xf2,0xc9,0x27,0xd3,0x4f,0x0f,0xe7,0x9e,0x7b, 0x6e,0xd0,0x72,0x12,0x19,0x2f,0x33,0xed,0x2d,0x5f,0xbe,0xbc,0xe9,0xae,0xc3,0xed, 0xb6,0xdb,0x4e,0xed,0xb8,0xe3,0x8e,0xde,0xe5,0xce,0x3e,0xfb,0x6c,0x6f,0xc5,0x45, 0xf1,0xb4,0x48,0xee,0x7e,0x11,0xb4,0xc3,0xb9,0x00,0x40,0x01,0x68,0x13,0x9e,0x7b, 0xee,0xb9,0x28,0xc7,0x39,0xc4,0x8a,0x0d,0xe5,0xb2,0xcb,0x2e,0x53,0x0f,0x3c,0xf0, 0x80,0x77,0xb9,0x9e,0x3d,0x7b,0xe6,0x1a,0xa8,0xd5,0xaa,0xfd,0x3c,0xe0,0x80,0x03, 0xd4,0x6e,0xbb,0xed,0x16,0xb4,0xec,0xe3,0x8f,0x3f,0x1e,0x09,0xc0,0xd0,0x99,0x09, 0xcb,0x44,0x48,0x30,0xa0,0x0f,0x19,0x4e,0x08,0xa9,0x2d,0xc0,0xb9,0x00,0x80,0xb6, 0x57,0x00,0x84,0xd9,0xb3,0x67,0xab,0x83,0x0f,0x3e,0x38,0x9a,0xc8,0xa4,0x56,0x57, 0xb9,0x44,0x6a,0x9f,0x75,0xd6,0x59,0xc1,0xd6,0xd4,0x06,0x1b,0x6c,0x40,0x3f,0x03, 0xb8,0xf4,0xd2,0x4b,0x55,0xf7,0xee,0xdd,0x83,0x96,0xbd,0xfa,0xea,0xab,0x23,0x41, 0x35,0x73,0xe6,0xcc,0x42,0x8e,0xa3,0x04,0xb8,0xf9,0xa6,0xdf,0xad,0x06,0x99,0xb2, 0xb7,0x5b,0xb7,0x6e,0x35,0xad,0xe3,0xb0,0xc3,0x0e,0x0b,0x0a,0x28,0xe4,0x5c,0x00, 0xc0,0x3a,0x54,0x0a,0xe6,0xe2,0x8b,0x2f,0x96,0x99,0x4b,0xbc,0xad,0x5e,0xdb,0x31, 0xdb,0x46,0x1b,0x6d,0x54,0xd1,0x63,0xac,0x55,0x6d,0x53,0xd7,0x65,0xaf,0xe8,0x39, 0xd7,0x83,0xb6,0xf3,0x91,0x8f,0x7c,0xa4,0xa2,0xdd,0xa3,0xf4,0x33,0x03,0xda,0xe3, 0x90,0xa9,0x8f,0xa3,0x47,0x8f,0xae,0xe8,0x60,0xb4,0x8a,0x16,0x12,0x35,0x6f,0x5b, 0x4f,0xcd,0x5b,0xb9,0xee,0xba,0xeb,0x2a,0x9f,0xfd,0xec,0x67,0x2b,0x3a,0xba,0xbe, 0xb2,0xe1,0x86,0x1b,0x16,0x72,0x7f,0xe8,0x9a,0x00,0x55,0x9d,0xcf,0xb8,0xdd,0x75, 0xd7,0x5d,0x95,0x7a,0xd0,0x0e,0xe7,0x02,0xa0,0xdd,0x68,0x7b,0x05,0x20,0x6e,0xba, 0x82,0x5a,0x45,0xcf,0xd7,0x5e,0x59,0xb8,0x70,0xa1,0x77,0x5b,0x2f,0xbf,0xfc,0x72, 0x45,0xa7,0x5d,0x05,0xaf,0x5b,0x8f,0xcf,0x56,0x1e,0x79,0xe4,0x91,0xba,0x1e,0xcf, 0x66,0xef,0x67,0x8c,0x9e,0x41,0x2f,0x73,0x1f,0x75,0xcd,0xfd,0x48,0x69,0xd1,0x56, 0x68,0xa6,0x6d,0x4d,0x9a,0x34,0xa9,0xf2,0x8b,0x5f,0xfc,0xa2,0xa2,0xab,0xe0,0x55, 0xb4,0x65,0xbe,0xd6,0x3a,0x75,0x4d,0x83,0x42,0xee,0x8f,0x9b,0x6f,0xbe,0xb9,0xea, 0x73,0x29,0x42,0x36,0x0f,0x01,0xcb,0xb9,0x00,0x68,0x4f,0xba,0xe2,0x03,0xf9,0x10, 0x89,0x6e,0x97,0xd6,0xa7,0x4f,0x9f,0xa8,0x52,0x9b,0x8c,0x7b,0x6a,0xab,0x59,0x69, 0x6b,0x23,0x72,0x9f,0x4b,0x84,0xb3,0x7e,0x28,0x45,0x11,0xd9,0x52,0xab,0x3d,0x0b, 0xa7,0x9e,0x7a,0x6a,0x6e,0x25,0x5a,0xdb,0xad,0x9f,0x97,0x5f,0x7e,0x79,0xb4,0x1f, 0x2f,0xbd,0xf4,0x52,0xf0,0x6f,0x24,0x2d,0xed,0xa4,0x93,0x4e,0x8a,0x02,0xe3,0x24, 0xd8,0x6e,0x9f,0x7d,0xf6,0x51,0x9b,0x6c,0xb2,0x49,0x94,0x27,0xdf,0xbb,0x77,0xef, 0x68,0x02,0x9b,0xb9,0x73,0xe7,0x46,0x41,0x92,0xd2,0xde,0x7e,0xfb,0xed,0xe8,0x55, 0x02,0xd9,0xea,0xcd,0x27,0x3f,0xf9,0xc9,0x68,0xfa,0xdd,0x59,0xb3,0x66,0x65,0xfe, 0xad,0x04,0x5a,0x4a,0xbe,0x7e,0xbd,0x68,0xf5,0x73,0x01,0xc0,0x10,0x40,0x9b,0x7a, 0x00,0x8a,0x6a,0x87,0x1e,0x7a,0x68,0x6e,0x2e,0xf1,0x76,0xea,0x67,0x12,0x5d,0x15, 0xaf,0xb2,0xeb,0xae,0xbb,0x36,0xb4,0x7f,0x45,0x5a,0x9d,0x3a,0xdf,0x3e,0xf3,0xfe, 0xe8,0xe9,0x7a,0x2b,0x53,0xa7,0x4e,0xad,0xbb,0xc5,0xd0,0xea,0xe7,0x02,0xa0,0x9d, 0x68,0xbb,0x20,0xc0,0x6f,0x7f,0xfb,0xdb,0x75,0xdb,0x96,0x54,0x52,0x13,0x4b,0xba, 0xd6,0x40,0xaf,0x76,0xef,0xa7,0x94,0x14,0x7e,0xf0,0xc1,0x07,0xd5,0x51,0x47,0x1d, 0xd5,0x92,0xd7,0x64,0x35,0xd9,0x00,0x12,0xdc,0x39,0x72,0xe4,0xc8,0xba,0xef,0x6b, 0xab,0x9f,0x0b,0x80,0x76,0xa2,0xed,0x14,0x80,0x1f,0xff,0xf8,0xc7,0xea,0x82,0x0b, 0x2e,0x28,0x7c,0x3b,0xe3,0xc6,0x8d,0x53,0xb7,0xdd,0x76,0x5b,0x94,0x12,0x47,0x3f, 0x6b,0xa7,0x57,0xaf,0x5e,0x91,0x92,0x21,0x05,0x67,0x5a,0x0d,0x49,0xd7,0xdc,0x7a, 0xeb,0xad,0x33,0xfd,0xa6,0x88,0xca,0x7f,0x9c,0x0b,0x00,0x14,0x80,0x96,0xe7,0x5b, 0xdf,0xfa,0x96,0xd2,0x81,0x49,0xd1,0xcc,0x6c,0x79,0xa3,0x5d,0xb3,0xea,0x1b,0xdf, 0xf8,0x86,0xba,0xef,0xbe,0xfb,0xa2,0x71,0x76,0xfa,0x99,0x1f,0x32,0x8e,0xfc,0xd3, 0x9f,0xfe,0x54,0xe9,0xc8,0xf7,0x68,0x3c,0xb9,0x95,0xc8,0x92,0xcb,0x3f,0x7c,0xf8, 0x70,0xf5,0xa9,0x4f,0x7d,0xaa,0xa1,0xfb,0xdb,0xca,0xe7,0x02,0x00,0x05,0xa0,0xc5, 0x91,0x07,0xae,0x04,0x28,0xc9,0x6b,0x5e,0x55,0xd4,0xb6,0xdd,0x76,0x5b,0xf5,0xe4, 0x93,0x4f,0xaa,0x0b,0x2f,0xbc,0xb0,0x61,0x96,0x7f,0x3b,0xf4,0x53,0xdc,0xdf,0xff, 0xfa,0xd7,0xbf,0xa2,0x29,0x72,0x25,0x80,0xb1,0x48,0x64,0x58,0x43,0xbc,0x1c,0xa7, 0x9f,0x7e,0x7a,0xa1,0xdb,0x39,0xe1,0x84,0x13,0x22,0xa5,0x2a,0x04,0x09,0xaa,0x93, 0x02,0x40,0x65,0xa0,0x15,0xcf,0x05,0x40,0xdb,0x50,0x74,0x90,0x81,0x8e,0x1c,0xf6, 0x06,0xf5,0x68,0x0b,0xb2,0xa1,0xc1,0x86,0x3a,0x2a,0xbe,0x32,0x7e,0xfc,0xf8,0x68, 0x3f,0x54,0xc6,0x80,0x24,0x1d,0x85,0x5d,0xd1,0x63,0xe0,0x15,0x5d,0xb3,0xbd,0xb0, 0x20,0xb8,0x76,0xec,0x67,0x28,0x3a,0x73,0xa1,0x72,0xe5,0x95,0x57,0x46,0xe9,0x8a, 0xfd,0xfa,0xf5,0xab,0x39,0xc0,0x4c,0x2b,0x34,0x15,0x5d,0xff,0xbe,0xa2,0x4b,0x1e, 0x57,0x74,0x15,0xc5,0x8a,0x8e,0x52,0xaf,0x5b,0x5f,0xf4,0xec,0x89,0x41,0xa9,0x96, 0x93,0x27,0x4f,0x2e,0x65,0x40,0x51,0x2b,0x9d,0x0b,0x80,0x76,0xa0,0x93,0xfc,0xd7, 0x0a,0x8a,0xcc,0x25,0x97,0x5c,0x12,0xd5,0x4d,0x0f,0x50,0x78,0x9c,0xdf,0x2d,0x59, 0xb2,0x24,0x72,0x69,0xea,0xdc,0xec,0xc8,0x6a,0x96,0x94,0x38,0x49,0x47,0x5a,0xb9, 0x72,0x65,0x34,0xdf,0xba,0x94,0x38,0x95,0x0a,0x77,0x23,0x46,0x8c,0x88,0x02,0xb0, 0x24,0xf8,0xed,0x98,0x63,0x8e,0x89,0x5c,0xb2,0xf4,0xb3,0xf1,0xc8,0x7e,0xeb,0x3a, 0x04,0xd1,0x74,0xc5,0x92,0xaa,0xf6,0xfe,0xfb,0xef,0x47,0x4d,0xaa,0xd2,0xc9,0x77, 0xd2,0xb7,0x65,0xcb,0x96,0x29,0x2d,0x9c,0xa2,0xbe,0x48,0x05,0x3d,0x79,0x95,0x26, 0x69,0x90,0x92,0x12,0xa9,0x23,0xdc,0xa3,0xe5,0x80,0x73,0x01,0xd0,0xea,0xa0,0x00, 0x78,0x90,0x79,0xef,0x25,0x4f,0x59,0x5c,0xae,0x32,0xd6,0xdd,0x68,0xd7,0x6b,0xbb, 0xf4,0x33,0x67,0x2f,0x57,0xd4,0x37,0x71,0xb1,0xc7,0xfd,0x03,0xce,0x05,0x40,0xbb, 0x43,0x21,0x20,0x0f,0x52,0x68,0x45,0x8a,0x96,0xd0,0xcf,0x26,0xd6,0x72,0x75,0xec, 0xc3,0xe0,0xc1,0x83,0xb9,0x98,0x39,0x17,0x00,0x90,0x7c,0xee,0x73,0x08,0x00,0x00, 0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00, 0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00, 0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x50,0x00,0x00, 0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x05,0x00, 0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x20,0x23,0x2d,0x33,0x1d,0xf0,0x56,0x5b, 0x6d,0xa5,0xf6,0xdd,0x77,0xdf,0xd4,0x65,0xfa,0xf6,0xed,0x4b,0x3f,0x01,0x00,0x00, 0x34,0x9d,0x2a,0x1a,0x0e,0x03,0x00,0x00,0x40,0x7b,0xc1,0x10,0x00,0x00,0x00,0x00, 0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00, 0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00, 0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00, 0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00, 0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00, 0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0x0a,0x00,0x00, 0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00, 0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00, 0x00,0x00,0x00,0x94,0x8a,0xae,0x1c,0x02,0x00,0x28,0x33,0x2b,0x57,0xae,0x54,0x73, 0xe7,0xce,0x4d,0x5d,0xa6,0x5b,0xb7,0x6e,0x6a,0xe0,0xc0,0x81,0x1c,0x2c,0x00,0x14, 0x00,0x00,0x68,0x15,0x7e,0xf7,0xbb,0xdf,0xa9,0x33,0xcf,0x3c,0x33,0x75,0x99,0xee, 0xdd,0xbb,0xab,0x65,0xcb,0x96,0x71,0xb0,0x00,0x32,0xc0,0x10,0x00,0x00,0x94,0x9a, 0xe5,0xcb,0x97,0xe7,0xb2,0x0c,0x00,0xa0,0x00,0x00,0x00,0x00,0xa0,0x00,0x70,0x08, 0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x50,0x00, 0x00,0x00,0x00,0xa0,0x25,0x20,0x0d,0x10,0x00,0xa0,0x4d,0x59,0xb0,0x60,0x81,0x7a, 0xf3,0xcd,0x37,0xa3,0x36,0x65,0xca,0x94,0xe8,0x75,0xda,0xb4,0x69,0xea,0xdc,0x73, 0xcf,0x55,0xdb,0x6d,0xb7,0x1d,0x07,0x08,0x05,0x00,0x00,0x00,0x5a,0x81,0xf9,0xf3, 0xe7,0xab,0x93,0x4f,0x3e,0xb9,0x43,0xe0,0xcf,0x9e,0x3d,0xdb,0xba,0xdc,0xe1,0x87, 0x1f,0x8e,0x02,0x80,0x02,0x00,0x00,0xd0,0x58,0xc6,0x8f,0x1f,0xaf,0x36,0xd8,0x60, 0x83,0xd4,0x65,0xfa,0xf6,0xed,0xcb,0x81,0x0a,0x60,0xc9,0x92,0x25,0xea,0x86,0x1b, 0x6e,0xe0,0x40,0x00,0x0a,0x00,0x00,0x94,0x9f,0xd1,0xa3,0x47,0xab,0x13,0x4f,0x3c, 0x91,0x03,0x01,0x90,0x33,0x04,0x01,0x02,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00, 0x0a,0x00,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00, 0x34,0x29,0x64,0x01,0x00,0x34,0x88,0x79,0xf3,0xe6,0x75,0x14,0x61,0x79,0xeb,0xad, 0xb7,0xd4,0xea,0xd5,0xab,0xd5,0xd0,0xa1,0x43,0xd5,0xf0,0xe1,0xc3,0xd5,0xb0,0x61, 0xc3,0xd4,0xa8,0x51,0xa3,0x54,0x9f,0x3e,0x7d,0x9a,0xba,0x8f,0x92,0x76,0x36,0x79, 0xf2,0xe4,0xa8,0x49,0xde,0xf9,0xaa,0x55,0xab,0xd4,0x7a,0xeb,0xad,0x17,0xb5,0xfd, 0xf7,0xdf,0x5f,0x75,0xef,0xde,0xbd,0x6d,0xce,0x75,0x7c,0x1c,0xde,0x7e,0xfb,0x6d, 0xd5,0xb9,0x73,0x67,0xb5,0xfe,0xfa,0xeb,0x47,0xe9,0x8d,0x5b,0x6c,0xb1,0x45,0x74, 0xae,0xc1,0xcf,0xa2,0x45,0x8b,0xd4,0xd4,0xa9,0x53,0xd5,0xf4,0xe9,0xd3,0xd5,0xbb, 0xef,0xbe,0x1b,0xbd,0x2e,0x5c,0xb8,0x50,0x0d,0x19,0x32,0x24,0xba,0x67,0xa4,0x8d, 0x18,0x31,0x42,0x6d,0xb2,0xc9,0x26,0xaa,0x53,0xa7,0x4e,0xdc,0x3b,0x28,0x00,0x00, 0xb5,0x21,0x37,0xdf,0x03,0x0f,0x3c,0x90,0xba,0x8c,0x08,0xea,0x63,0x8f,0x3d,0x36, 0x75,0x99,0x95,0x2b,0x57,0xaa,0x1b,0x6f,0xbc,0x51,0xfd,0xee,0x77,0xbf,0x53,0x2f, 0xbc,0xf0,0x82,0xfa,0xe0,0x83,0x0f,0xd2,0x6f,0xce,0xae,0x5d,0xd5,0xbe,0xfb,0xee, 0xab,0x8e,0x3a,0xea,0x28,0x75,0xc4,0x11,0x47,0x78,0x73,0xe1,0xcb,0xd2,0xcf,0xd7, 0x5f,0x7f,0x5d,0xfd,0xec,0x67,0x3f,0x53,0x7f,0xff,0xfb,0xdf,0xa3,0x07,0x74,0xa5, 0x52,0xb1,0x2e,0xf7,0xce,0x3b,0xef,0x44,0x0f,0xeb,0x7a,0xed,0x57,0x3d,0xb7,0x23, 0x0f,0xeb,0xdb,0x6e,0xbb,0x4d,0x5d,0x76,0xd9,0x65,0xea,0xd9,0x67,0x9f,0x55,0x73, 0xe7,0xce,0x4d,0x5d,0x7e,0xab,0xad,0xb6,0x52,0x07,0x1f,0x7c,0xb0,0xfa,0xea,0x57, 0xbf,0x1a,0x09,0xaf,0x3c,0x84,0xc7,0x5f,0xff,0xfa,0xd7,0x75,0x8e,0xfd,0xcc,0x99, 0x33,0x83,0x7e,0x7f,0xe7,0x9d,0x77,0xaa,0x65,0xcb,0x96,0x65,0xda,0xe6,0xae,0xbb, 0xee,0xaa,0xb6,0xd9,0x66,0x9b,0xdc,0xaf,0x4b,0x29,0x56,0x74,0xeb,0xad,0xb7,0xaa, 0xeb,0xaf,0xbf,0x5e,0xdd,0x77,0xdf,0x7d,0x6a,0xc5,0x8a,0x15,0xde,0xdf,0x88,0x42, 0x25,0xf7,0xcc,0x91,0x47,0x1e,0xa9,0xf6,0xd8,0x63,0x0f,0xd5,0xa5,0x4b,0x97,0xb6, 0xbc,0x77,0xbc,0x54,0x00,0x20,0x95,0x8b,0x2f,0xbe,0x58,0xee,0x42,0x6f,0x73,0xa1, 0x1f,0x60,0x95,0x9f,0xfc,0xe4,0x27,0x95,0x91,0x23,0x47,0x06,0xad,0xc7,0xd6,0xb4, 0xc5,0x58,0x39,0xfe,0xf8,0xe3,0x2b,0xfa,0xa1,0x50,0xda,0x7e,0x3e,0xf5,0xd4,0x53, 0x15,0xad,0xac,0x44,0xfb,0x1a,0xb2,0x1e,0xfd,0x10,0xab,0xcb,0x7e,0xd5,0xab,0xff, 0xf1,0xb9,0xbe,0xe8,0xa2,0x8b,0x2a,0x1b,0x6d,0xb4,0x51,0x55,0xe7,0xb9,0x5b,0xb7, 0x6e,0x95,0xaf,0x7c,0xe5,0x2b,0x15,0x2d,0xa8,0x6b,0xea,0xcb,0x33,0xcf,0x3c,0x53, 0xf5,0xb5,0x56,0x6d,0x3b,0xeb,0xac,0xb3,0x72,0xbd,0x1e,0x27,0x4e,0x9c,0x58,0xd1, 0x15,0x09,0x2b,0x5a,0x11,0xae,0x69,0xbf,0x36,0xde,0x78,0xe3,0xca,0x1d,0x77,0xdc, 0x51,0xea,0x67,0x44,0x51,0xf7,0x8e,0x0f,0x62,0x00,0x00,0x0a,0xe4,0xe6,0x9b,0x6f, 0x8e,0x0a,0xd9,0x7c,0xeb,0x5b,0xdf,0x8a,0x6a,0xac,0x57,0x8b,0x0c,0x0f,0x5c,0x7b, 0xed,0xb5,0x6a,0xcb,0x2d,0xb7,0x8c,0x3c,0x08,0xf2,0x77,0x59,0x90,0x7d,0x39,0xfd, 0xf4,0xd3,0x23,0x0b,0x50,0x3c,0x1c,0x65,0xda,0xb7,0x7a,0xf2,0xe7,0x3f,0xff,0x39, 0x3a,0xd7,0xdf,0xf8,0xc6,0x37,0xa2,0x21,0x9d,0x6a,0x10,0xeb,0x56,0xbc,0x06,0xbb, 0xec,0xb2,0x8b,0x7a,0xf9,0xe5,0x97,0xdb,0xf2,0x38,0x8a,0xe7,0xe1,0xfb,0xdf,0xff, 0x7e,0xe4,0x4d,0x10,0xcb,0x5f,0x3c,0x67,0xb5,0x20,0x43,0x6c,0x87,0x1e,0x7a,0x68, 0xe4,0x49,0x13,0xcb,0xb9,0x4c,0x34,0xfa,0xde,0x41,0x01,0x00,0x28,0x88,0x4b,0x2e, 0xb9,0x44,0x1d,0x7d,0xf4,0xd1,0xd1,0xb8,0x65,0x5e,0xc8,0x58,0xb2,0xb6,0x10,0xa3, 0x07,0x5a,0x56,0x17,0x6d,0x51,0x0f,0x6b,0x71,0x6b,0x8a,0xd0,0x6a,0x57,0x44,0x68, 0x8b,0xeb,0x5e,0xaa,0x15,0xe6,0x75,0xae,0x45,0x68,0x8d,0x1b,0x37,0x4e,0x3d,0xfe, 0xf8,0xe3,0x6d,0x75,0x2c,0x9f,0x7b,0xee,0xb9,0x48,0xf0,0xff,0xe0,0x07,0x3f,0xc8, 0xfd,0xfa,0xbe,0xe9,0xa6,0x9b,0xd4,0x0e,0x3b,0xec,0xa0,0xfe,0xfd,0xef,0x7f,0x97, 0x46,0xd1,0x69,0xf4,0xbd,0x83,0x02,0x00,0x90,0x33,0x62,0xb1,0x9c,0x76,0xda,0x69, 0xea,0xec,0xb3,0xcf,0x2e,0x4c,0xa3,0xbf,0xeb,0xae,0xbb,0x22,0x8b,0x66,0xf9,0xf2, 0xe5,0x0d,0xeb,0xa7,0x4c,0x2c,0x73,0xc8,0x21,0x87,0xb4,0x75,0x6d,0x79,0xb1,0x28, 0xf7,0xde,0x7b,0x6f,0xf5,0xdb,0xdf,0xfe,0x36,0xf7,0x75,0x8b,0xb2,0x27,0x0a,0x64, 0xe8,0xb8,0x7d,0xb3,0xf3,0xc4,0x13,0x4f,0xa8,0xfd,0xf6,0xdb,0x4f,0x4d,0x9a,0x34, 0xa9,0xb0,0x6d,0xcc,0x9a,0x35,0x4b,0x1d,0x70,0xc0,0x01,0xea,0xb5,0xd7,0x5e,0x6b, 0x68,0x5f,0xcb,0x72,0xef,0xa0,0x00,0x00,0xe4,0xcc,0x67,0x3f,0xfb,0x59,0x75,0xc5, 0x15,0x57,0x14,0xbe,0x1d,0x09,0xd4,0x3a,0xe6,0x98,0x63,0x82,0x82,0xa2,0xf2,0x46, 0x82,0xdc,0x24,0x68,0xcd,0x17,0xf8,0xd4,0xca,0xbc,0xf1,0xc6,0x1b,0x6a,0xa7,0x9d, 0x76,0x2a,0xd4,0x4a,0x97,0x48,0x77,0xb9,0x9e,0x5a,0x9d,0x87,0x1f,0x7e,0x58,0x1d, 0x74,0xd0,0x41,0x91,0xd2,0x53,0x34,0xef,0xbd,0xf7,0x5e,0x14,0x45,0x2f,0x5e,0x96, 0x46,0x50,0xa6,0x7b,0x07,0x05,0x00,0x20,0x47,0xae,0xbe,0xfa,0x6a,0x75,0xdd,0x75, 0xd7,0xd5,0x6d,0x7b,0x32,0x46,0xfa,0xa3,0x1f,0xfd,0xa8,0xee,0xfd,0xfc,0xf9,0xcf, 0x7f,0xde,0x76,0xee,0x69,0xd3,0x82,0x3b,0xec,0xb0,0xc3,0x22,0x61,0x52,0x34,0xf7, 0xdc,0x73,0x8f,0xfa,0xc7,0x3f,0xfe,0xd1,0xb2,0xc7,0xf2,0xd1,0x47,0x1f,0x8d,0xac, 0xe1,0x05,0x0b,0x16,0x04,0xff,0x46,0x07,0x4b,0x46,0xf1,0x16,0x3b,0xee,0xb8,0xa3, 0xda,0x7a,0xeb,0xad,0xa3,0x34,0xc0,0x2c,0x88,0xe7,0x46,0xa6,0x45,0x6e,0x04,0x65, 0xba,0x77,0x48,0x03,0x04,0xc8,0x09,0x09,0xf2,0x3b,0xf3,0xcc,0x33,0xb3,0x69,0xe0, 0x3a,0x1f,0xbc,0xd6,0x61,0x82,0x0b,0x2f,0xbc,0x50,0x1d,0x77,0xdc,0x71,0x51,0x2a, 0x59,0x3d,0xd0,0xd1,0xd9,0xea,0xbc,0xf3,0xce,0xcb,0xf4,0x1b,0xc9,0x59,0x6e,0xe4, 0x70,0x45,0x9e,0xc8,0xf9,0xd2,0x19,0x19,0xea,0x95,0x57,0x5e,0xc9,0xf4,0x3b,0xc9, 0xfb,0x97,0xdf,0x4a,0x5a,0x5b,0x35,0xe7,0xf8,0xc0,0x03,0x0f,0x0c,0x5e,0x7e,0xd0, 0xa0,0x41,0x6a,0xec,0xd8,0xb1,0xeb,0xa4,0x91,0x2d,0x5e,0xbc,0x38,0x4a,0x2f,0xf3, 0xd1,0xbb,0x77,0xef,0xa8,0x1e,0x45,0x16,0x74,0xe6,0x43,0xe6,0x7e,0x89,0xc5,0x7f, 0xc2,0x09,0x27,0x44,0xfb,0xe5,0x43,0xf2,0xfa,0xe5,0xb8,0xcb,0xb8,0xb9,0xb8,0xf1, 0x65,0x1f,0x93,0x48,0x0a,0x9d,0x28,0xc4,0xbf,0xfa,0xd5,0xaf,0x82,0x82,0xfd,0xee, 0xbf,0xff,0xfe,0x28,0xb0,0x56,0xd6,0x59,0x2f,0x4a,0x77,0xef,0x90,0xe4,0x05,0x90, 0x4f,0x8a,0x8f,0x76,0x61,0x7a,0x97,0xd1,0xf9,0xc9,0x95,0xf3,0xcf,0x3f,0xbf,0xa2, 0x2d,0xba,0x8a,0x2e,0xf0,0x51,0xd1,0xf1,0x02,0xd1,0x36,0x96,0x2e,0x5d,0x5a,0xd1, 0x02,0xa5,0x72,0xc1,0x05,0x17,0x54,0x74,0x10,0x54,0xe6,0x54,0xa7,0x3d,0xf7,0xdc, 0xb3,0xa2,0x85,0x4b,0x5d,0xfa,0x29,0xdb,0xf2,0x2d,0xb3,0xd7,0x5e,0x7b,0x55,0xf4, 0xb8,0x78,0x45,0xe7,0x6d,0x77,0xa4,0x2c,0xe9,0x5c,0xf8,0xca,0x83,0x0f,0x3e,0x58, 0xf9,0xc5,0x2f,0x7e,0x51,0x39,0xe7,0x9c,0x73,0x2a,0xfa,0xa1,0xdf,0x94,0x69,0x80, 0x3a,0xb6,0x23,0x68,0x39,0x9d,0xb1,0x51,0xb9,0xf4,0xd2,0x4b,0x2b,0xda,0xbd,0x5d, 0xd1,0x63,0xcf,0x1d,0xdb,0xd1,0x6e,0xfd,0x8a,0xce,0xf3,0xae,0x6c,0xbf,0xfd,0xf6, 0x99,0xce,0xb1,0x16,0x70,0x35,0xf7,0x71,0xc6,0x8c,0x19,0x41,0xdb,0xd2,0x19,0x0d, 0x75,0xb9,0xb7,0x74,0xe0,0x64,0xd0,0xfe,0xe8,0xe0,0xbd,0xca,0xd3,0x4f,0x3f,0x1d, 0xb4,0x4e,0xed,0x49,0xa8,0x9c,0x71,0xc6,0x19,0x41,0xeb,0xd5,0x4a,0x4e,0x45,0x2b, 0x21,0x75,0xbb,0x76,0xea,0x7d,0xef,0xf8,0x40,0x01,0x00,0xc8,0xe9,0xe6,0x4e,0x6b, 0xda,0x7a,0xab,0xdc,0x72,0xcb,0x2d,0x1d,0x02,0xdf,0x87,0x4e,0xf5,0xab,0xe8,0xc2, 0x21,0x99,0xb6,0xa1,0x87,0x1f,0x1a,0xde,0x4f,0x1d,0xb9,0x5e,0xb9,0xf7,0xde,0x7b, 0x4b,0x95,0x63,0x5d,0xcf,0xfe,0x4b,0xd3,0x85,0x7c,0x2a,0x7f,0xfa,0xd3,0x9f,0xbc, 0xe7,0x5a,0x57,0xb0,0x8b,0x72,0xbf,0x43,0xd7,0xab,0xe3,0x4a,0x5a,0x4a,0x01,0xd0, 0x01,0x70,0x41,0xfb,0xa2,0x0b,0xf9,0x54,0x25,0xa4,0xbf,0xf3,0x9d,0xef,0x04,0xad, 0x5f,0xa7,0x1c,0x96,0xe2,0xda,0x29,0xe2,0xde,0xa1,0x0e,0x00,0x40,0x03,0x91,0xb1, 0x49,0xc9,0xef,0x95,0x71,0x5c,0x5d,0xd4,0x24,0xb8,0x22,0x99,0x64,0x11,0x48,0x05, 0x39,0x71,0x1b,0x87,0xd2,0xc8,0x74,0xa2,0xfe,0xfd,0xfb,0x47,0x95,0xef,0xfe,0xf9, 0xcf,0x7f,0x46,0x01,0x56,0xed,0x88,0x8c,0x4b,0xff,0xfa,0xd7,0xbf,0x8e,0x22,0xcc, 0x3f,0xf7,0xb9,0xcf,0x79,0xcf,0xb5,0x54,0x86,0x93,0xea,0x76,0x52,0xdb,0x21,0x84, 0x87,0x1e,0x7a,0xa8,0x65,0x8e,0x95,0x94,0xef,0x95,0x6b,0xdc,0x87,0x54,0x45,0x94, 0x8c,0x17,0xb9,0xbe,0xb2,0x22,0xb1,0x31,0x12,0xa7,0xe1,0xe3,0xaa,0xab,0xae,0x6a, 0xe8,0xb1,0x68,0xe4,0xbd,0x83,0x02,0x00,0x50,0x10,0x12,0xe9,0xfb,0xd2,0x4b,0x2f, 0x45,0xe5,0x48,0xab,0x41,0x6a,0xc4,0x6b,0xaf,0x81,0xea,0xd1,0xa3,0x47,0xd0,0xf2, 0x12,0x58,0x94,0x75,0x5c,0x3a,0x0f,0xa4,0x36,0xb9,0x44,0x34,0x87,0x3c,0x6c,0x5b, 0x95,0x7e,0xfd,0xfa,0x45,0x59,0x19,0xda,0xf5,0x1c,0x95,0x70,0x0e,0x45,0xc6,0xb5, 0xbf,0xf8,0xc5,0x2f,0x06,0x2d,0x2b,0xe5,0xa3,0x5b,0x85,0x3f,0xfe,0xf1,0x8f,0x51, 0x4a,0x9e,0xef,0xd8,0xfc,0xe1,0x0f,0x7f,0x50,0x7d,0xfb,0xf6,0xad,0x7a,0x3b,0x12, 0x70,0xe7,0xab,0x99,0x2f,0xb5,0xf6,0x45,0xf8,0x36,0x82,0x46,0xdf,0x3b,0x28,0x00, 0x00,0x05,0xa0,0xcb,0xc1,0x46,0x96,0x4b,0xd6,0x40,0x2a,0x13,0x29,0x06,0x23,0x55, 0xd1,0x42,0xb9,0xf2,0xca,0x2b,0xeb,0xda,0x4f,0x5d,0xde,0x58,0x3d,0xf2,0xc8,0x23, 0x51,0x34,0x76,0xbb,0x22,0x35,0xd9,0xe5,0x18,0x64,0x09,0xd2,0x4b,0x22,0xde,0x82, 0x10,0xa5,0xa1,0x9a,0xe0,0xc1,0x32,0x22,0x43,0xcf,0xe2,0x29,0xf1,0x21,0xb5,0xfc, 0xf5,0x78,0x78,0x4d,0xdb,0x92,0x40,0xc8,0xf1,0xe3,0xc7,0x97,0xd2,0x0b,0x50,0x86, 0x7b,0x07,0x05,0x00,0x20,0x67,0xe4,0xe1,0xf6,0xf5,0xaf,0x7f,0x3d,0xb7,0xf5,0x89, 0x55,0x19,0x3a,0x11,0x90,0xa4,0x21,0x56,0x1c,0x13,0x88,0xe4,0x8d,0xcc,0xbc,0x26, 0x96,0x53,0xa8,0x0b,0xbb,0x15,0x91,0xbe,0x4b,0x01,0x1b,0x1d,0xd0,0x57,0xf5,0x3a, 0x64,0x06,0xc8,0x10,0x21,0x30,0x67,0xce,0x9c,0x96,0x38,0x66,0xe2,0x29,0x91,0x68, 0xf8,0x90,0xeb,0x3e,0x0f,0x42,0x26,0x6f,0x92,0x82,0x3c,0xf5,0xba,0x6f,0xca,0x74, 0xef,0xa0,0x00,0x00,0xe4,0xc8,0x6f,0x7e,0xf3,0x9b,0xdc,0x1e,0x5c,0x31,0x32,0x56, 0xfc,0xb5,0xaf,0x7d,0x2d,0x68,0x59,0xc9,0x4b,0x97,0x02,0x35,0xf5,0xe0,0xf7,0xbf, 0xff,0x7d,0x94,0x8b,0xdd,0xae,0x0c,0x1c,0x38,0x50,0xe9,0x49,0x66,0x72,0x99,0xca, 0x57,0x04,0x82,0x0f,0x49,0x05,0x93,0x59,0xfe,0x9a,0x1d,0x9d,0x19,0xe1,0x5d,0x66, 0xb3,0xcd,0x36,0x53,0xfb,0xec,0xb3,0x4f,0x2e,0xdb,0xfb,0xc4,0x27,0x3e,0xa1,0x7a, 0xf6,0xec,0xe9,0x55,0xae,0x64,0x46,0xbf,0x7a,0x51,0x96,0x7b,0x07,0x05,0x00,0x20, 0x27,0x24,0x08,0x4f,0x26,0xf6,0x28,0x02,0xa9,0xf8,0x17,0x8a,0x9e,0x09,0xae,0xf0, 0xbe,0x9e,0x72,0xca,0x29,0xea,0x53,0x9f,0xfa,0x54,0xdb,0x9e,0x6b,0x19,0x9f,0x96, 0xc9,0x7f,0x36,0xdd,0x74,0xd3,0x5c,0xd6,0x17,0x1a,0xec,0x59,0x4f,0x2b,0xb5,0x08, 0x74,0xba,0xab,0xd2,0xe9,0x6c,0xde,0xe5,0xaa,0x1d,0x4e,0xb1,0x21,0x31,0x00,0x21, 0x35,0x32,0x9e,0x7f,0xfe,0xf9,0xba,0x1c,0x83,0x32,0xdd,0x3b,0x28,0x00,0x00,0x39, 0xf1,0xe5,0x2f,0x7f,0xb9,0xb0,0x75,0xeb,0x29,0x4d,0x83,0xe7,0x5a,0x2f,0x5a,0x01, 0x18,0x33,0x66,0x8c,0xd2,0xf9,0xc8,0x6d,0x7d,0xae,0xbf,0xfb,0xdd,0xef,0xe6,0xfa, 0x10,0x0f,0x1d,0xe2,0x69,0x76,0x74,0x2e,0x7f,0x50,0x51,0x9b,0xbc,0xa3,0xe1,0x43, 0xee,0x9d,0x7a,0x28,0x00,0x65,0xbb,0x77,0x50,0x00,0x00,0x9a,0x04,0xc9,0x2a,0x28, 0x83,0x02,0xa0,0x73,0xdc,0x6b,0x8a,0xcc,0x6e,0x76,0xa4,0x6c,0xed,0xf7,0xbe,0xf7, 0xbd,0x5c,0xd7,0xd9,0x2e,0x0a,0x80,0x94,0xfd,0x0d,0x61,0xb7,0xdd,0x76,0xcb,0x5d, 0xf0,0x96,0x41,0x01,0x28,0xdb,0xbd,0x83,0x02,0x00,0xd0,0x24,0x84,0x7a,0x00,0x8a, 0x4e,0x05,0xd4,0xd5,0xcc,0xda,0xfa,0x3c,0xfc,0xe5,0x2f,0x7f,0x89,0x4a,0x38,0xe7, 0x89,0x6f,0x8c,0xba,0x9d,0x14,0x00,0x39,0x16,0x92,0x59,0x91,0x27,0x92,0xa6,0xe9, 0x43,0x4a,0x09,0x17,0x4d,0xd9,0xee,0x1d,0xe6,0x02,0x00,0x68,0x12,0xa4,0x2e,0x40, 0x08,0xba,0x6c,0x28,0x07,0xab,0x40,0xa4,0xce,0x3e,0x54,0xc7,0x53,0x4f,0x3d,0xe5, 0x5d,0x46,0x66,0xcb,0x93,0xd9,0x01,0xf3,0x64,0xc2,0x84,0x09,0xde,0x65,0xea,0x31, 0x13,0x61,0xd9,0x40,0x01,0x00,0x68,0x31,0x05,0x40,0xa6,0x07,0x96,0x68,0xf1,0x5e, 0xbd,0x7a,0x71,0xd0,0xa0,0x34,0xe8,0xd2,0xc8,0x41,0xb5,0x0c,0xe4,0xfa,0xcd,0x2b, 0x03,0x20,0x0b,0x32,0xc3,0x63,0xbb,0xc1,0x10,0x00,0x40,0x13,0x59,0x9e,0xa1,0x55, 0x01,0xdb,0xd1,0x9a,0x81,0x72,0xf3,0xc1,0x07,0x1f,0x94,0x3a,0x8b,0x41,0x66,0x24, 0x14,0xef,0x03,0x0a,0x00,0x00,0x94,0x12,0xa9,0x09,0x10,0xfa,0xb0,0x05,0x28,0x13, 0xcd,0x50,0xc9,0xb0,0xdd,0xbc,0x00,0x28,0x00,0x00,0x2d,0xa8,0x00,0xe8,0x29,0x51, 0x39,0x58,0x50,0x2a,0x9a,0xa1,0x92,0x61,0xbb,0xdd,0x37,0x28,0x00,0x00,0x4d,0x44, 0xef,0xde,0xbd,0x83,0x96,0xcb,0x32,0x21,0x0d,0x40,0x3d,0x68,0x86,0xe0,0xd4,0xd5, 0xab,0x57,0xa3,0x00,0x00,0x40,0x39,0x91,0x00,0xa9,0x10,0x06,0x0c,0x18,0xc0,0xc1, 0x02,0x84,0x6b,0x46,0xda,0x4d,0x71,0x46,0x01,0x00,0x68,0x22,0x16,0x2d,0x5a,0x14, 0xb4,0x9c,0xd4,0xa9,0x07,0x28,0x13,0x83,0x07,0x0f,0x46,0x01,0x40,0x01,0x00,0x80, 0xa2,0x15,0x00,0x3c,0x00,0x50,0x36,0xd6,0x5b,0x6f,0xbd,0xa0,0xe5,0xa4,0xca,0xa2, 0x64,0x0b,0x34,0xa2,0x85,0x4c,0xca,0x84,0x02,0x00,0x00,0x0d,0x41,0x52,0x95,0x7c, 0x48,0xd5,0xb3,0x2e,0x5d,0xba,0x70,0xb0,0xa0,0x29,0x15,0x80,0x90,0xa2,0x3d,0x80, 0x02,0x00,0xd0,0x56,0xc8,0x54,0xbf,0x21,0xe3,0xa8,0xb8,0xff,0xa1,0x8c,0x48,0x1d, 0x8b,0x10,0xc5,0x14,0x05,0x00,0x05,0x00,0x00,0x0c,0x5e,0x7b,0xed,0xb5,0xa0,0xe5, 0x36,0xdf,0x7c,0x73,0x0e,0x16,0x94,0x0e,0x99,0x42,0x79,0xc8,0x90,0x21,0xde,0xe5, 0x26,0x4e,0x9c,0x18,0x3c,0xd4,0x05,0x28,0x00,0x00,0x28,0x00,0x09,0x76,0xd9,0x65, 0x17,0x0e,0x16,0x94,0x92,0x9d,0x76,0xda,0xc9,0xbb,0x8c,0x94,0x0c,0xbe,0xfb,0xee, 0xbb,0x39,0x58,0x28,0x00,0x00,0x80,0x02,0x00,0xad,0xc2,0xfe,0xfb,0xef,0x1f,0xb4, 0xdc,0x2d,0xb7,0xdc,0xc2,0xc1,0x42,0x01,0x00,0x80,0x98,0xd0,0xb9,0xd4,0x51,0x00, 0xa0,0xac,0xec,0xb7,0xdf,0x7e,0x41,0xcb,0xdd,0x79,0xe7,0x9d,0x91,0x27,0x00,0x50, 0x00,0x00,0xda,0x9e,0xf7,0xdf,0x7f,0x5f,0x3d,0xfd,0xf4,0xd3,0xde,0xe5,0x86,0x0e, 0x1d,0xaa,0x46,0x8d,0x1a,0xc5,0x01,0x83,0x9a,0x58,0xb6,0x6c,0x59,0x21,0xeb,0xdd, 0x7e,0xfb,0xed,0x83,0xe2,0x00,0xa4,0x6c,0xf0,0xdf,0xfe,0xf6,0x37,0x4e,0x04,0x0a, 0x00,0x00,0xfc,0xfd,0xef,0x7f,0x0f,0xca,0x00,0x38,0xe4,0x90,0x43,0x38,0x58,0x50, 0x33,0xef,0xbe,0xfb,0x6e,0x31,0x02,0xa7,0x73,0xe7,0x60,0x2f,0xc0,0xf9,0xe7,0x9f, 0xdf,0x76,0xb3,0xf3,0xa1,0x00,0x00,0xc0,0x3a,0xfc,0xe5,0x2f,0x7f,0x09,0x5a,0xee, 0x94,0x53,0x4e,0xe1,0x60,0x81,0x93,0xd0,0xfa,0x10,0xd3,0xa6,0x4d,0x2b,0x6c,0x1f, 0xce,0x38,0xe3,0x8c,0xa0,0xe5,0x24,0xe6,0xe5,0x9a,0x6b,0xae,0xe1,0xa4,0xa1,0x00, 0x00,0x94,0x9f,0xa5,0x4b,0x97,0x16,0xb2,0x5e,0x19,0xfb,0xbf,0xf7,0xde,0x7b,0xbd, 0xcb,0x6d,0xb9,0xe5,0x96,0xea,0xe3,0x1f,0xff,0x38,0x27,0x02,0x9c,0x48,0x8d,0x08, 0x49,0xc7,0xf3,0xf1,0xce,0x3b,0xef,0x14,0xb6,0x0f,0x7b,0xee,0xb9,0xa7,0xda,0x7b, 0xef,0xbd,0x83,0x96,0x3d,0xe7,0x9c,0x73,0x0a,0xf3,0x46,0x00,0x0a,0x00,0x40,0x6e, 0x88,0xf0,0x7d,0xeb,0xad,0xb7,0x72,0x5f,0xef,0x79,0xe7,0x9d,0x17,0xb4,0xdc,0xc9, 0x27,0x9f,0xcc,0x49,0x80,0x54,0xa4,0xd6,0xbd,0x14,0xe4,0xf1,0xf1,0xe6,0x9b,0x6f, 0x16,0xba,0x1f,0xe7,0x9e,0x7b,0x6e,0xd0,0x72,0x52,0xfc,0xea,0xe8,0xa3,0x8f,0x56, 0xcb,0x97,0x2f,0xe7,0xe4,0xa1,0x00,0x00,0x94,0x97,0xe7,0x9e,0x7b,0x2e,0xca,0x73, 0x0e,0xb1,0xd6,0x43,0xb9,0xec,0xb2,0xcb,0xd4,0x03,0x0f,0x3c,0xe0,0x5d,0xae,0x67, 0xcf,0x9e,0xea,0x73,0x9f,0xfb,0x1c,0x27,0x01,0xbc,0xac,0xbf,0xfe,0xfa,0xde,0x65, 0xfe,0xfd,0xef,0x7f,0xab,0x27,0x9f,0x7c,0xb2,0xb0,0x7d,0x38,0xe0,0x80,0x03,0xd4, 0x6e,0xbb,0xed,0x16,0xb4,0xec,0xe3,0x8f,0x3f,0x1e,0x0d,0x6d,0x85,0xce,0x84,0x09, 0x28,0x00,0x00,0x0d,0x61,0xf6,0xec,0xd9,0xea,0xe0,0x83,0x0f,0x56,0xdf,0xff,0xfe, 0xf7,0x6b,0x1e,0x12,0xb8,0xe7,0x9e,0x7b,0xd4,0x59,0x67,0x9d,0x15,0x6c,0x51,0x6d, 0xb0,0xc1,0x06,0x9c,0x00,0xf0,0xb2,0xd9,0x66,0x9b,0x05,0x2d,0xf7,0xa3,0x1f,0xfd, 0xa8,0xd0,0xfd,0xb8,0xf4,0xd2,0x4b,0x55,0xf7,0xee,0xdd,0x83,0x96,0xbd,0xfa,0xea, 0xab,0x23,0xa5,0x61,0xe6,0xcc,0x99,0x85,0xec,0x8b,0x04,0x1b,0x4a,0xe6,0x01,0x0a, 0x00,0x00,0xd4,0xfc,0x30,0xf9,0xc1,0x0f,0x7e,0x10,0x8d,0xc9,0xdf,0x70,0xc3,0x0d, 0x55,0xad,0xe3,0x8f,0x7f,0xfc,0xa3,0x3a,0xea,0xa8,0xa3,0x82,0x72,0xa1,0x3f,0xf2, 0x91,0x8f,0xa8,0xaf,0x7f,0xfd,0xeb,0x1c,0x78,0x08,0x22,0x34,0x53,0xe4,0x8e,0x3b, 0xee,0x50,0xf7,0xdf,0x7f,0x7f,0x61,0xfb,0x21,0xf5,0x2a,0x7e,0xf9,0xcb,0x5f,0x06, 0x2f,0xff,0xf0,0xc3,0x0f,0xab,0x9d,0x77,0xde,0x59,0x5d,0x7b,0xed,0xb5,0x41,0x19, 0x31,0x3e,0xe6,0xcd,0x9b,0x17,0xa5,0x1a,0x9e,0x78,0xe2,0x89,0x51,0xfa,0xec,0x76, 0xdb,0x6d,0xd7,0x76,0xd7,0x42,0x57,0x6e,0x87,0xe6,0x44,0xdc,0x73,0x7f,0xfd,0xeb, 0x5f,0xd5,0xeb,0xaf,0xbf,0xae,0xfa,0xf4,0xe9,0xa3,0x7a,0xf7,0xee,0xad,0x7a,0xf5, 0xea,0x15,0xbd,0x97,0x57,0xf9,0x3b,0xd9,0x42,0xbe,0x93,0x14,0x1d,0xc8,0x0f,0x89, 0x07,0x18,0x3f,0x7e,0xbc,0xda,0x63,0x8f,0x3d,0xd4,0x69,0xa7,0x9d,0xa6,0x3e,0xfd, 0xe9,0x4f,0x47,0xc7,0x39,0x8d,0x57,0x5e,0x79,0x45,0x7d,0xe7,0x3b,0xdf,0x51,0x37, 0xdf,0x7c,0x73,0xd0,0x36,0x24,0xa0,0xeb,0x8a,0x2b,0xae,0x50,0xdd,0xba,0x75,0xe3, 0x80,0x43,0x10,0x9f,0xfc,0xe4,0x27,0x83,0x97,0x3d,0xf0,0xc0,0x03,0xa3,0xa8,0xfd, 0x1f,0xff,0xf8,0xc7,0xde,0x6b,0xb7,0x1a,0xbe,0xfc,0xe5,0x2f,0x47,0x2e,0x7e,0xb1, 0xf0,0x43,0x78,0xfb,0xed,0xb7,0xd5,0x09,0x27,0x9c,0x10,0x29,0xd8,0xdf,0xfc,0xe6, 0x37,0xd5,0xa1,0x87,0x1e,0x1a,0x3c,0xcb,0xa0,0xf0,0xc6,0x1b,0x6f,0xa8,0xdb,0x6f, 0xbf,0x3d,0x52,0x6e,0x44,0xa1,0x48,0x0e,0x2b,0x88,0x12,0x80,0x02,0x00,0xa5,0x45, 0xb4,0x5e,0x19,0x0f,0xbe,0xee,0xba,0xeb,0xd4,0x94,0x29,0x53,0xa2,0x87,0xbf,0xcc, 0x61,0x2d,0x17,0xf1,0x07,0x1f,0x7c,0x10,0xbd,0x8f,0x3f,0x8b,0x85,0x43,0xfc,0x59, 0x08,0xb2,0xac,0x6c,0x43,0xac,0x4e,0xb1,0x62,0xa5,0xc9,0xba,0xe3,0x57,0x69,0xb1, 0x45,0x2a,0xcb,0xc5,0xdb,0x49,0x6e,0x43,0xd2,0x8c,0x7a,0xf4,0xe8,0x11,0xb9,0xf6, 0x64,0x5c,0x3a,0x56,0x38,0x62,0x25,0x45,0xa6,0xaa,0xed,0xdb,0xb7,0x6f,0xf4,0x2a, 0x4d,0xe6,0xad,0x8f,0x9b,0x44,0x28,0x4b,0x80,0x92,0x34,0xf9,0x2e,0x74,0xbf,0xcb, 0x8e,0x44,0xf1,0x4b,0x93,0x63,0x70,0xf8,0xe1,0x87,0x47,0x63,0x9f,0x1b,0x6d,0xb4, 0x91,0xda,0x70,0xc3,0x0d,0xa3,0x61,0x02,0x89,0x72,0x9e,0x34,0x69,0x92,0xba,0xfe, 0xfa,0xeb,0xd5,0xf3,0xcf,0x3f,0x9f,0x69,0xdd,0xa7,0x9e,0x7a,0x6a,0xa4,0x60,0x00, 0x84,0xb2,0xf1,0xc6,0x1b,0x47,0xd6,0x77,0x48,0x61,0x29,0xb9,0xcf,0x7f,0xf5,0xab, 0x5f,0x45,0x0a,0xe9,0x41,0x07,0x1d,0x14,0x79,0xb5,0xb6,0xd8,0x62,0x8b,0x68,0x1d, 0xe2,0x8e,0x7f,0xf9,0xe5,0x97,0x23,0xa5,0x55,0x84,0xe7,0x77,0xbf,0xfb,0xdd,0xaa, 0xf6,0xe7,0xf2,0xcb,0x2f,0x8f,0xae,0xfb,0x97,0x5e,0x7a,0x29,0xf8,0x37,0x92,0x22, 0x78,0xd2,0x49,0x27,0x45,0xcf,0x08,0xb1,0xdc,0xf7,0xd9,0x67,0x1f,0xb5,0xc9,0x26, 0x9b,0x44,0x45,0x86,0xe4,0x39,0x23,0x93,0x09,0xcd,0x9d,0x3b,0x37,0x52,0xc2,0xa5, 0x89,0xe2,0x20,0xaf,0x12,0x54,0x08,0x28,0x00,0x4d,0x41,0x2c,0x60,0xa5,0x2a,0x97, 0x4c,0x8e,0x21,0xee,0x64,0xa9,0x08,0x97,0x14,0xb8,0x49,0x21,0x29,0x16,0xbc,0x7c, 0x17,0x5b,0xf2,0xf1,0xfb,0x78,0x3d,0x3e,0x64,0x59,0x59,0x9f,0x44,0x0a,0x27,0x05, 0x7b,0xa8,0x42,0x91,0x5c,0x5e,0x9a,0x28,0x0b,0xd2,0xe4,0x46,0x94,0x87,0x85,0x28, 0x12,0xf1,0x67,0xf1,0x7b,0xf3,0xb3,0x58,0xe1,0x90,0xdf,0xf7,0xef,0xdf,0xbf,0x43, 0x29,0x10,0x2d,0x5f,0x9a,0x04,0x30,0x49,0x93,0x07,0x8e,0x8c,0x79,0xcb,0xeb,0xb0, 0x61,0xc3,0xa2,0xef,0xca,0xee,0xc1,0x90,0x87,0x92,0xe4,0x35,0xe7,0x95,0xdb,0x2c, 0xd6,0xcf,0xaf,0x7f,0xfd,0x6b,0x6e,0x14,0xc8,0xcc,0x25,0x97,0x5c,0xa2,0xf6,0xda, 0x6b,0xaf,0xe0,0xe5,0x45,0x80,0xfe,0xfe,0xf7,0xbf,0x77,0x7e,0x2f,0xca,0x6c,0xb5, 0x0a,0x80,0x08,0xec,0x7f,0xfc,0xe3,0x1f,0xea,0x3f,0xfe,0xe3,0x3f,0xd4,0x53,0x4f, 0x3d,0x95,0xf9,0x19,0xf9,0xc2,0x0b,0x2f,0x44,0x0d,0x50,0x00,0x5a,0x4a,0xf0,0x2f, 0x58,0xb0,0x40,0xdd,0x7a,0xeb,0xad,0x91,0xf6,0x9d,0x9c,0x1e,0x33,0xcd,0x32,0x4e, 0x7e,0x67,0x53,0x12,0x7c,0xf8,0x7e,0x1f,0xb2,0x6d,0x79,0x95,0x26,0x5e,0x80,0xd0, 0x20,0x1f,0xdf,0xf1,0x98,0x3f,0x7f,0x7e,0x14,0xa4,0x23,0xd6,0x46,0xac,0x30,0x24, 0x15,0x08,0xb1,0x54,0xc4,0xdb,0x20,0x9e,0x03,0x51,0x1a,0xc4,0x12,0x10,0x05,0x61, 0xc4,0x88,0x11,0x6a,0xf4,0xe8,0xd1,0x91,0xc5,0x3d,0x76,0xec,0xd8,0xe8,0xbb,0xa2, 0xf8,0xf6,0xb7,0xbf,0xad,0x2e,0xb8,0xe0,0x82,0xba,0x5c,0x23,0x52,0x4d,0x4d,0x3c, 0x06,0xb8,0xfe,0xa1,0x1a,0x24,0x17,0xff,0xd8,0x63,0x8f,0x8d,0xbc,0x89,0x65,0x40, 0x14,0xf9,0x07,0x1f,0x7c,0x30,0x1a,0x8f,0xbf,0xf1,0xc6,0x1b,0x39,0x41,0x28,0x00, 0xed,0x29,0xf4,0x45,0xa0,0x89,0x36,0x2c,0xd6,0xbe,0x54,0xe3,0x4a,0x5a,0xe0,0x36, 0x81,0x9b,0xb4,0xc8,0x4d,0x8b,0x3d,0xeb,0xf2,0xd5,0x0c,0x19,0xd4,0xf2,0xfb,0xd0, 0xf5,0x0b,0x22,0xe8,0x4c,0x61,0xe7,0xea,0x8f,0x78,0x11,0x66,0xcc,0x98,0x11,0xb5, 0x17,0x5f,0x7c,0x31,0xfa,0x4e,0x14,0x08,0x19,0x92,0x88,0x83,0x9a,0x8a,0x18,0x5e, 0x90,0x71,0x52,0x19,0xde,0x10,0x45,0xa0,0x48,0xc6,0x8d,0x1b,0xa7,0x6e,0xbb,0xed, 0xb6,0xa8,0x3f,0x00,0xd5,0x22,0x51,0xf8,0x13,0x26,0x4c,0x88,0x52,0xfe,0xca,0x80, 0x28,0xf0,0xa2,0xd4,0x7e,0xe3,0x1b,0xdf,0x50,0x3f,0xfb,0xd9,0xcf,0x38,0x41,0x75, 0x80,0xa8,0xaf,0x12,0x08,0xfe,0x25,0x4b,0x96,0x44,0x17,0xfe,0x71,0xc7,0x1d,0xa7, 0x3e,0xf6,0xb1,0x8f,0x45,0x91,0xb1,0x52,0x89,0x2b,0x76,0x69,0xcb,0x6b,0xec,0x9e, 0x8f,0x5f,0x5d,0x43,0x00,0xb5,0x2c,0x9f,0xfc,0xcc,0x66,0xd1,0x67,0xfd,0x7d,0xcd, 0x17,0x67,0x0e,0xfd,0x17,0x2f,0xca,0xc2,0x85,0x0b,0xd5,0xc8,0x91,0x23,0x23,0xaf, 0x40,0x32,0x6e,0x21,0x6e,0x79,0xf2,0xad,0x6f,0x7d,0x4b,0xfd,0xe1,0x0f,0x7f,0x08, 0x2a,0xb6,0x92,0x15,0x89,0xaf,0x90,0x87,0xe3,0x7d,0xf7,0xdd,0x57,0x48,0x40,0x16, 0xb4,0x17,0x32,0x94,0x26,0x0a,0xf1,0xb6,0xdb,0x6e,0x5b,0x9a,0x7d,0x92,0x7b,0xf6, 0xa7,0x3f,0xfd,0xa9,0xba,0xeb,0xae,0xbb,0xda,0x32,0x2a,0x1f,0x05,0xa0,0x4d,0x84, 0xbe,0xb4,0x7f,0xfe,0xf3,0x9f,0xea,0x8b,0x5f,0xfc,0xa2,0xda,0x7c,0xf3,0xcd,0xd5, 0x45,0x17,0x5d,0x14,0x59,0xa9,0xf1,0x58,0x76,0x9a,0xfb,0x3d,0x16,0x80,0x66,0xcb, 0x7b,0xf9,0x5a,0xbf,0xaf,0xb5,0xd5,0xd2,0x1f,0x09,0x8a,0x94,0x21,0x83,0xe1,0xc3, 0x87,0x47,0xc3,0x00,0xe6,0xb1,0x4f,0x0a,0xfe,0xbc,0x95,0x80,0x2f,0x7c,0xe1,0x0b, 0x51,0x90,0x92,0xbc,0xe6,0xe5,0x69,0x90,0x87,0xb4,0x64,0x7e,0x5c,0x78,0xe1,0x85, 0x58,0xfe,0x90,0xab,0x12,0x20,0x81,0xc5,0x5f,0xf9,0xca,0x57,0x72,0x19,0xae,0xcb, 0x0b,0xa9,0xa5,0xf1,0xaf,0x7f,0xfd,0x4b,0x5d,0x75,0xd5,0x55,0xd1,0xf0,0x5d,0x91, 0x88,0x67,0x51,0xbc,0x6a,0xa7,0x9f,0x7e,0x3a,0x0a,0x00,0x14,0x2b,0xf4,0xc5,0xc5, 0x2f,0xb9,0xa7,0x62,0xe9,0x1f,0x79,0xe4,0x91,0xea,0xd5,0x57,0x5f,0x8d,0x1e,0xee, 0x32,0x06,0x66,0x0a,0xb4,0xa4,0xd5,0x6b,0xb3,0x80,0xf3,0x6e,0xb5,0x6e,0x2f,0xef, 0xfd,0xad,0x66,0x7d,0x12,0x70,0x38,0x7d,0xfa,0xf4,0x68,0xfc,0x5f,0xc6,0xfe,0x93, 0x41,0x89,0xf1,0x79,0x88,0x33,0x18,0xcc,0xcf,0xf3,0x54,0x04,0xe4,0xc1,0x2a,0x9e, 0x80,0x47,0x1e,0x79,0x24,0x4a,0x05,0xac,0xc6,0x62,0x8f,0x67,0x4e,0x93,0xe0,0xab, 0x67,0x9f,0x7d,0x36,0xaa,0x32,0x58,0x24,0x32,0x7c,0xe1,0xa3,0x11,0x9e,0x87,0x7a, 0xed,0x57,0x23,0xfb,0x1f,0xb2,0x5e,0x51,0xfc,0x42,0x27,0xf3,0xc9,0x82,0x78,0xc6, 0x7e,0xfb,0xdb,0xdf,0x46,0x29,0xc5,0x62,0x90,0x14,0xb1,0x8d,0x6a,0x3d,0x80,0x12, 0x13,0x20,0xca,0xf4,0x95,0x57,0x5e,0xa9,0x8e,0x38,0xe2,0x88,0x28,0xc6,0xa7,0x56, 0xe4,0x38,0xca,0x5c,0x04,0x52,0x62,0x5b,0xaa,0x76,0x8a,0xb1,0x20,0xc6,0x58,0xb5, 0x41,0x8c,0x65,0xbe,0x77,0xbc,0x1e,0x97,0x4a,0xde,0xe6,0x0f,0xac,0x23,0xf8,0x63, 0x64,0x6c,0x5f,0x5c,0xc4,0x92,0x8a,0xb2,0xe9,0xa6,0x9b,0x06,0x5d,0x34,0xf5,0xde, 0xd7,0x6a,0xa3,0xfe,0x43,0x96,0x2f,0x12,0xb1,0xf6,0xc5,0x83,0x22,0xd6,0x42,0x7c, 0xa3,0xd9,0x62,0x22,0x24,0x02,0xdf,0xe6,0x35,0x48,0x0b,0x74,0x94,0x88,0xe9,0xb3, 0xcf,0x3e,0x3b,0xd3,0xb9,0x36,0x91,0x61,0x1e,0x71,0x6b,0x4a,0x40,0xa7,0x3c,0xd0, 0x24,0xf5,0x4f,0xae,0x03,0x09,0x60,0x94,0xb4,0x49,0x89,0x5b,0x88,0x83,0x16,0x65, 0xb8,0x42,0x04,0xff,0x31,0xc7,0x1c,0x13,0x79,0x30,0x00,0xea,0xc9,0xc4,0x89,0x13, 0xa3,0x40,0x3c,0xc9,0x99,0x97,0xf4,0x54,0x69,0x32,0x24,0x29,0x1e,0x02,0xc9,0x48, 0x12,0x05,0x61,0xf0,0xe0,0xc1,0x6a,0xcc,0x98,0x31,0x51,0x61,0x1e,0x49,0x43,0x95, 0x34,0xbc,0x7a,0x5c,0xab,0x72,0x9f,0x88,0x52,0x2d,0xd3,0x63,0x4b,0xda,0xa0,0x64, 0x45,0x49,0x93,0x2c,0x23,0xf9,0x4e,0xee,0x25,0xd9,0x47,0x51,0x14,0x64,0x7f,0x24, 0x43,0x48,0x5e,0xa5,0x49,0xa6,0x82,0xa4,0xe0,0xee,0xba,0xeb,0xae,0xd1,0x72,0x80, 0x02,0x50,0x17,0xc1,0x2f,0x0f,0xfa,0xaf,0x7e,0xf5,0xab,0x91,0x15,0x27,0xb9,0xaa, 0xb1,0x0b,0xb7,0xd6,0xa0,0x3c,0xdf,0xf2,0x59,0x83,0x02,0x6b,0x5d,0x7f,0xbd,0x83, 0x12,0xe5,0xbb,0x38,0xc5,0x50,0xf2,0x92,0xa5,0x96,0x80,0x0f,0x29,0x38,0x92,0xe6, 0x45,0x28,0x4a,0x01,0xb0,0x21,0x9e,0x08,0xd9,0x7f,0x49,0xbb,0x14,0xa5,0x25,0x4e, 0xbf,0x04,0x28,0x1b,0x52,0xaf,0x42,0x04,0xab,0x5c,0xb3,0xa1,0x33,0x0a,0xd6,0xfb, 0x79,0x2b,0xf7,0x92,0x28,0x27,0xf1,0xfd,0x04,0x7e,0x78,0xe2,0x14,0x28,0xf8,0xe5, 0xfd,0x2d,0xb7,0xdc,0xa2,0x7e,0xf8,0xc3,0x1f,0x46,0xd6,0xdd,0x36,0xdb,0x6c,0xb3, 0x8e,0xc0,0x4b,0xe6,0xe9,0x9b,0x02,0xc8,0x7c,0xb5,0x09,0xc8,0xb4,0x57,0x9b,0x30, 0xb3,0x09,0x61,0xdf,0x77,0xae,0xf5,0x65,0xfd,0xde,0x26,0xf0,0xab,0xed,0xbf,0x58, 0xfc,0x62,0x95,0x88,0x9b,0x7f,0xfb,0xed,0xb7,0xcf,0x24,0x74,0xe3,0x75,0xda,0x02, 0x16,0xeb,0xe9,0xc5,0x90,0xed,0x8b,0xfb,0x15,0xa0,0xec,0x88,0xd1,0x52,0xe6,0xd8, 0x13,0xb9,0x5f,0xc5,0x2b,0x01,0x28,0x00,0xa5,0x10,0xfc,0x62,0x95,0x4a,0x49,0x57, 0x71,0xf5,0x8a,0x4b,0x37,0x54,0xe0,0x9a,0xc2,0x27,0x4b,0x5e,0x7f,0xde,0x16,0x7b, 0x11,0x69,0x81,0xb5,0xf6,0x5f,0x04,0xbf,0x54,0xf4,0x12,0x57,0xb9,0x54,0x33,0x33, 0x8f,0xbb,0xaf,0x7f,0x71,0x91,0x21,0x33,0x6b,0xc1,0x3c,0x06,0x00,0x00,0x28,0x00, 0x10,0x2c,0xfc,0xe5,0x55,0x2a,0x66,0xdd,0x74,0xd3,0x4d,0x51,0x51,0x0b,0x41,0x5c, 0x52,0xd5,0x16,0xee,0xa9,0x46,0x20,0x9b,0xdf,0xf9,0x2c,0xf2,0x5a,0x3c,0x08,0xd5, 0x78,0x24,0xaa,0xed,0xbf,0x08,0xfe,0xc9,0x93,0x27,0x47,0x9e,0x14,0x11,0xfc,0x49, 0xcf,0x41,0x16,0x85,0x46,0xc6,0xdc,0xcd,0x20,0x27,0x9b,0x17,0x02,0x45,0x00,0x00, 0x50,0x00,0x20,0x48,0xf0,0x4b,0x60,0x97,0x08,0xfe,0xb8,0x94,0x65,0x2c,0x78,0xd2, 0x4a,0xf1,0xd6,0xea,0x62,0x0f,0x59,0x9f,0x8f,0x5a,0x84,0x5c,0x56,0x17,0x7f,0x35, 0xfd,0x97,0xe9,0x75,0x25,0x08,0x49,0xc6,0x1d,0x45,0xf0,0x27,0x8b,0x01,0x85,0xc4, 0x1c,0x98,0xdb,0xb6,0xcd,0xae,0x67,0xfe,0x06,0xc1,0x0f,0x00,0x28,0x00,0x90,0x2a, 0xf8,0x85,0x67,0x9e,0x79,0x26,0x12,0xfc,0x32,0x29,0x46,0x1e,0x02,0x39,0xeb,0x7e, 0x14,0xe9,0xd2,0xaf,0x45,0x29,0xa8,0xb5,0xff,0x22,0xf8,0x45,0xa9,0x92,0x3a,0xe1, 0x92,0xfe,0x26,0x55,0xc2,0xd2,0x14,0x30,0xdb,0xb9,0xb1,0x1d,0x0f,0x51,0x00,0xcc, 0xe8,0x7f,0x89,0x0b,0x70,0x29,0x31,0x00,0x00,0x28,0x00,0xd0,0x21,0x5c,0x44,0x60, 0xc8,0x54,0x92,0x92,0xd2,0x25,0xe3,0xd1,0x59,0x2c,0x52,0x9f,0xf0,0xcc,0x1a,0x45, 0x9f,0x66,0x41,0xfb,0x26,0x07,0xaa,0x75,0x7f,0x6b,0xdd,0x7f,0xdb,0xef,0x67,0xcd, 0x9a,0x15,0x09,0x7e,0x71,0xd3,0x4b,0x70,0x5f,0x48,0x64,0x7f,0x88,0x87,0x26,0xe9, 0x01,0xb0,0x15,0x14,0x92,0x73,0x2a,0xdb,0x44,0xf8,0x03,0x00,0x0a,0x00,0xac,0x23, 0x48,0x96,0x2f,0x5f,0x1e,0xe5,0xf2,0x4b,0x1d,0x76,0x09,0xf2,0xb3,0xb9,0xb8,0x8b, 0x9e,0x8c,0x27,0xab,0xc0,0xad,0x25,0x6a,0xbf,0x88,0xed,0xa5,0x59,0xfc,0x52,0x14, 0x49,0x04,0xb4,0x64,0x4b,0xc8,0x58,0x7f,0x11,0xc8,0xfa,0x93,0x45,0x85,0x62,0xeb, 0x1f,0xcb,0x1f,0x00,0x50,0x00,0x60,0x1d,0xab,0x51,0xea,0xc9,0x4b,0xe1,0x09,0x29, 0xe4,0x32,0x6f,0xde,0xbc,0x60,0x01,0x19,0xb2,0x8d,0x5a,0x5d,0xf4,0x59,0xa3,0xea, 0xb3,0x1e,0x83,0x5a,0x3c,0x18,0x21,0xeb,0x8f,0x67,0xf8,0x5b,0xbc,0x78,0xb1,0xda, 0x7a,0xeb,0xad,0xa3,0x8c,0x89,0x22,0xb3,0x12,0x92,0x0a,0x80,0x58,0xfc,0xa2,0x00, 0xc4,0x4a,0x9c,0x59,0x1d,0x10,0x65,0x00,0x00,0x50,0x00,0xda,0x54,0xf0,0x8b,0x3b, 0xfa,0xf6,0xdb,0x6f,0x8f,0xac,0x7e,0x29,0x84,0xe1,0x2a,0x18,0x93,0x25,0xe8,0x2d, 0xcf,0x34,0x3f,0x13,0x9f,0xcb,0xbf,0x1a,0x01,0x9e,0x25,0x8b,0x20,0x4b,0xff,0xe5, 0xd8,0x8a,0xc5,0x2f,0x0a,0xd5,0x16,0x5b,0x6c,0x11,0x55,0x46,0x34,0xf3,0xf2,0x7d, 0x1e,0x8b,0x6a,0x14,0x04,0x49,0x03,0x94,0x26,0xc2,0x5f,0x5e,0x63,0x2f,0x40,0x96, 0xe3,0x04,0x00,0x80,0x02,0xd0,0xa2,0x82,0x7f,0xea,0xd4,0xa9,0xea,0xd6,0x5b,0x6f, 0x8d,0xc6,0xf9,0x45,0x48,0x84,0x08,0xe7,0xac,0xcb,0x84,0x08,0xb8,0x22,0xd6,0x9f, 0xc5,0xa3,0x50,0xc4,0xfe,0xc5,0xae,0x7e,0xb1,0xfc,0xa5,0x2a,0xe2,0xee,0xbb,0xef, 0xde,0x51,0x01,0x2f,0xab,0x00,0xce,0x9a,0x05,0x10,0x07,0x01,0xc6,0xc2,0x3f,0x1e, 0xf3,0x37,0xe7,0x04,0x00,0x00,0x40,0x01,0x68,0x33,0xc1,0x2f,0x82,0x49,0x2a,0xf7, 0x49,0xc9,0xde,0x32,0xb8,0x81,0x8b,0xae,0xcd,0x5f,0xcf,0x2c,0x01,0xb1,0xf8,0xc5, 0xd5,0x2f,0xaf,0xa3,0x46,0x8d,0x52,0x07,0x1e,0x78,0x60,0x14,0xe1,0x5f,0x4b,0xa1, 0xa2,0xb4,0x2c,0x00,0x89,0xd7,0x88,0x67,0x57,0x4c,0x2a,0x0c,0xb1,0x07,0x20,0x9e, 0x10,0xc8,0x35,0x31,0x10,0x31,0x01,0x00,0x80,0x02,0xd0,0x06,0x82,0x5f,0x04,0xbe, 0x08,0x7e,0x51,0x00,0x42,0x2c,0xdd,0x7a,0x91,0x87,0x05,0x9e,0xe7,0xf2,0xd5,0x0a, 0x7e,0x49,0x91,0x94,0xa0,0x49,0x09,0xec,0x93,0x49,0x6e,0xfa,0xf7,0xef,0xef,0x15, 0xe0,0x21,0xdf,0xdb,0xfa,0x23,0x13,0x82,0xc8,0xb0,0xc2,0xa2,0x45,0x8b,0xd6,0x0a, 0xee,0x8b,0x7f,0x1b,0x0b,0xff,0xb8,0xe5,0x3d,0x0b,0x20,0x00,0x00,0x0a,0x40,0xc9, 0x05,0xbf,0x3c,0xfc,0x1f,0x7d,0xf4,0xd1,0xc8,0xd5,0x2f,0xd5,0xfb,0xaa,0xb1,0x80, 0xeb,0x9d,0x67,0x9f,0x77,0x50,0x9c,0x4d,0x80,0xe6,0xd5,0xff,0x58,0xf0,0xcb,0x4c, 0x5d,0x52,0xc4,0x47,0x66,0x0c,0x13,0x6b,0xbc,0xa8,0xe3,0x25,0x82,0x5d,0x2c,0x7e, 0x09,0xd8,0x4c,0x4e,0x01,0x6c,0xf6,0xd5,0x26,0xfc,0x6d,0x01,0x80,0x00,0x00,0x28, 0x00,0x2d,0x26,0xf8,0x65,0x5a,0xd6,0xeb,0xaf,0xbf,0x3e,0x2a,0xd5,0xbb,0x70,0xe1, 0x42,0xab,0x25,0x5c,0x6d,0x1e,0x7e,0xd6,0xdf,0x87,0x78,0x00,0x7c,0xb5,0xf4,0xab, 0x19,0xdf,0x4f,0xcb,0x62,0xa8,0xb5,0xff,0x49,0xc1,0x2f,0x2e,0x7e,0x99,0x2e,0x54, 0x5c,0xfe,0xb6,0xdf,0xe5,0x31,0x5b,0xa0,0x08,0x7e,0x11,0xfa,0x62,0xf1,0xbb,0x84, 0x7a,0x72,0x7d,0xc9,0x65,0xf0,0x00,0x00,0x00,0x0a,0x40,0x0b,0x0b,0x7d,0x79,0xc8, 0xbf,0xf8,0xe2,0x8b,0xea,0xf1,0xc7,0x1f,0x8f,0xca,0xf4,0x8a,0xd0,0x37,0x27,0x80, 0x71,0x09,0xd4,0x5a,0xa3,0xf2,0xf3,0xa8,0x04,0x98,0x57,0x65,0xbd,0x22,0xb6,0x97, 0xec,0x7f,0x52,0xf0,0xcb,0xbc,0xe1,0x92,0xcb,0x2f,0x91,0xfd,0xb5,0x44,0xed,0xa7, 0x05,0xf5,0xc9,0x79,0x15,0xa1,0x2f,0xe7,0x33,0x2e,0xef,0x1b,0x9f,0xef,0xe4,0x72, 0xb6,0xdf,0xc7,0x82,0x3f,0xb9,0x9c,0xa9,0x08,0x30,0xfe,0x0f,0x00,0x28,0x00,0x4d, 0x28,0xf4,0x25,0x00,0xec,0xa1,0x87,0x1e,0x52,0x0f,0x3c,0xf0,0x80,0x7a,0xf2,0xc9, 0x27,0xa3,0x68,0xef,0x78,0x0e,0xeb,0x64,0xaa,0x59,0x1e,0x41,0x72,0x59,0x26,0xf3, 0xa9,0xc6,0xc2,0xad,0x65,0xff,0x6a,0x75,0xf9,0x87,0xec,0x8f,0x08,0xfe,0x09,0x13, 0x26,0x44,0x82,0x5f,0x8e,0xf3,0x66,0x9b,0x6d,0xa6,0x36,0xdf,0x7c,0xf3,0xb5,0x6a, 0xf6,0xe7,0x55,0xaa,0x38,0xb6,0xe0,0xa5,0x66,0x80,0x8c,0xf3,0x8b,0xf5,0x9f,0x74, 0xf7,0x9b,0x0a,0x42,0xf2,0xef,0xa4,0x90,0xf7,0x45,0xfe,0x9b,0xfb,0xb0,0xd5,0x56, 0x5b,0xa9,0x7d,0xf7,0xdd,0x37,0xf5,0xba,0xeb,0xdb,0xb7,0x2f,0x4f,0x13,0x00,0x40, 0x01,0x68,0x84,0xd0,0x17,0x9e,0x7f,0xfe,0xf9,0xa8,0x3c,0xef,0xfd,0xf7,0xdf,0x1f, 0x05,0x83,0xc9,0xfc,0xd0,0xeb,0xaf,0xbf,0x7e,0xb0,0xc5,0x6b,0xe2,0xcb,0xab,0x0f, 0x29,0xb5,0x6b,0xbe,0xa6,0x4d,0x96,0x93,0x75,0x48,0xa1,0xd6,0xd9,0xfc,0x6a,0xe9, 0xbf,0x08,0x61,0x49,0xe9,0x13,0xcf,0x8a,0xac,0x63,0xf4,0xe8,0xd1,0x91,0xa0,0xb4, 0xd5,0xec,0x37,0xcf,0x53,0xb5,0x41,0x7f,0x62,0xf1,0xcb,0x38,0xbf,0x9c,0xdb,0xa4, 0xe0,0x77,0x59,0xf4,0x2e,0x85,0xc7,0x54,0x06,0x6c,0xfb,0x98,0xe4,0x93,0x9f,0xfc, 0x64,0xd4,0x00,0x00,0x50,0x00,0x4a,0x24,0xf4,0xe5,0xe1,0x7f,0xef,0xbd,0xf7,0xaa, 0xab,0xaf,0xbe,0x3a,0xb2,0x44,0x45,0x00,0x0d,0x19,0x32,0x44,0xf5,0xe9,0xd3,0xa7, 0x2a,0x8b,0x36,0x4d,0x40,0x56,0x13,0x65,0xef,0x1b,0xc3,0xcf,0xb2,0x7c,0x9e,0xd3, 0xeb,0x56,0xdb,0x7f,0x11,0xfc,0x62,0xf5,0x4b,0x2c,0x85,0x20,0x91,0xfd,0x52,0xc1, 0xcf,0x56,0xb3,0x3f,0xaf,0x20,0x49,0x29,0xc2,0x24,0x16,0xbf,0xb8,0xfa,0xd3,0x82, 0xf7,0x62,0x65,0x20,0xf6,0x14,0x98,0xa4,0x8d,0xf9,0x13,0x07,0x00,0x00,0x28,0x00, 0x4d,0x22,0xf8,0x05,0xb1,0x3e,0x7f,0xf5,0xab,0x5f,0xa9,0xd7,0x5f,0x7f,0xbd,0xe3, 0x33,0x11,0x4c,0xd3,0xa6,0x4d,0xe3,0xcc,0xd6,0x89,0x71,0xe3,0xc6,0x79,0x95,0x87, 0x6a,0x2b,0xf9,0x2d,0x5b,0xb6,0x2c,0x12,0xfc,0x32,0xa4,0x63,0x0a,0xf1,0xa4,0x90, 0xb7,0x8d,0xfd,0xbb,0x3c,0x00,0x00,0x00,0xd0,0x64,0x0a,0x40,0xf2,0x81,0x2e,0xae, 0xe7,0x0b,0x2f,0xbc,0x50,0xdd,0x77,0xdf,0x7d,0x9c,0xc1,0x12,0x9c,0x97,0x6a,0x63, 0x0e,0x5c,0x1e,0x8a,0xb8,0x88,0x8f,0x28,0x00,0xb6,0x31,0x7d,0x9b,0xb5,0x1f,0xbf, 0x4f,0x7e,0x67,0x5e,0x37,0x28,0x00,0x00,0x00,0x4d,0xa4,0x00,0x98,0xe3,0xc1,0x92, 0xbb,0x7f,0xde,0x79,0xe7,0x45,0x96,0x21,0x94,0x9b,0xac,0x41,0x89,0x71,0x2e,0xbf, 0x78,0x71,0x4c,0x57,0xbe,0x29,0xf8,0x93,0x9f,0x99,0x55,0xfd,0xd2,0x66,0x28,0x04, 0x00,0x80,0x92,0x2b,0x00,0xb6,0x40,0xb0,0x2b,0xae,0xb8,0x42,0xfd,0xcf,0xff,0xfc, 0x0f,0x67,0xad,0x84,0x42,0x3e,0x44,0xe0,0xbb,0xbe,0x97,0xb1,0x7d,0x49,0xe7,0x93, 0x20,0xbf,0xd8,0xda,0xb7,0x09,0xfa,0xf8,0xbd,0x4d,0x39,0x30,0x3d,0x00,0x71,0xd5, 0x3f,0xf3,0x5a,0x02,0x00,0x80,0x12,0x2b,0x00,0xe6,0x38,0xae,0x3c,0xc8,0x7f,0xf8, 0xc3,0x1f,0x46,0x33,0xf3,0x41,0xf9,0x15,0xb5,0xd0,0xd2,0xbd,0xc9,0x5c,0x7e,0x9b, 0x90,0x37,0xd7,0xe9,0x1a,0xe7,0x4f,0x0b,0x0a,0x4c,0x7a,0x00,0x50,0x04,0x00,0x00, 0x4a,0xac,0x00,0x98,0x0f,0x75,0xb1,0x0e,0xbf,0xfb,0xdd,0xef,0x46,0x53,0xf2,0x42, 0x6b,0x28,0x0b,0xa2,0xd0,0x25,0x05,0x7f,0xd2,0xa2,0x4f,0xcb,0xe7,0xb7,0xb9,0xfe, 0x6d,0xd5,0xfd,0x5c,0xb5,0x01,0x00,0x00,0xa0,0x84,0x0a,0x80,0xab,0x60,0xcb,0x45, 0x17,0x5d,0x84,0xf0,0x6f,0x22,0x01,0xef,0x73,0xf9,0x4b,0x1a,0xa1,0x08,0xfe,0x78, 0x52,0x1e,0x57,0xe0,0x9e,0xcd,0xda,0x4f,0x2a,0x05,0xbe,0x3a,0x00,0x71,0x60,0x20, 0x00,0x00,0x94,0x58,0x01,0x70,0xb9,0x74,0xaf,0xbd,0xf6,0xda,0xa8,0xb0,0x0f,0x34, 0x07,0x69,0x75,0x07,0x24,0xb0,0x2f,0x59,0xb6,0xd7,0x96,0xcf,0xef,0xf2,0x04,0xb8, 0x14,0x04,0xd7,0xf0,0x80,0xd9,0x18,0x02,0x00,0x09,0x2e,0x9d,0x31,0x63,0x46,0xd4, 0xde,0x7b,0xef,0xbd,0x8e,0xf7,0x71,0x93,0xcc,0x93,0xe3,0x8f,0x3f,0x5e,0x1d,0x77, 0xdc,0x71,0xd1,0x1c,0x16,0x00,0x28,0x00,0x0d,0x12,0xfe,0xf2,0x30,0x7f,0xec,0xb1, 0xc7,0xd4,0x2f,0x7f,0xf9,0x4b,0xce,0x50,0x93,0x7b,0x00,0x44,0xf0,0x8b,0xbb,0x3f, 0xce,0xe5,0x4f,0x5a,0xef,0xf1,0xfb,0xb8,0xa4,0x6f,0x52,0x80,0xbb,0xb2,0x00,0x4c, 0x21,0x9f,0x54,0x26,0x4c,0x0f,0x80,0x29,0xf0,0xc9,0x06,0x68,0x2d,0xe4,0x9a,0x32, 0x05,0xb9,0xab,0xc5,0x85,0xab,0x4c,0x06,0x0d,0x1a,0xa4,0xfe,0xcf,0xff,0xf9,0x3f, 0xea,0xcc,0x33,0xcf,0x54,0xfd,0xfa,0xf5,0xe3,0x1a,0x01,0x14,0x80,0x46,0x08,0xff, 0x64,0x93,0xb9,0xe3,0x65,0xdc,0x1f,0x17,0x6e,0x73,0x08,0x7d,0xdb,0xdf,0xf2,0x70, 0x16,0x8b,0x5f,0xca,0xf6,0x26,0xdd,0xf1,0xb6,0x68,0x7d,0x53,0x60,0xbb,0xaa,0xfd, 0x99,0xc3,0x02,0xbe,0x21,0x83,0xe4,0xb6,0xa0,0x39,0x90,0x73,0x26,0x95,0x26,0x43, 0x84,0xfa,0xdc,0xb9,0x73,0xab,0xde,0x8e,0x08,0xfe,0xff,0xfe,0xef,0xff,0x5e,0x47, 0xf0,0x93,0x3e,0x0a,0x28,0x00,0x0d,0x14,0xfe,0xf2,0x00,0x90,0x88,0x7f,0x99,0xe2, 0x15,0x9a,0x03,0xd3,0xe5,0x2f,0xe7,0x70,0xce,0x9c,0x39,0xce,0x40,0x3c,0x9b,0x80, 0x77,0x09,0x74,0xdb,0xb0,0x80,0x29,0xd8,0x6d,0xf1,0x01,0xb1,0xd2,0xc1,0x10,0x40, 0x39,0x48,0xba,0xe0,0xd3,0x9a,0x4c,0x2a,0x15,0xa7,0x6f,0x16,0x41,0x2c,0xf8,0xbf, 0xfa,0xd5,0xaf,0xaa,0xfe,0xfd,0xfb,0xaf,0xf3,0x3c,0xb2,0x55,0xaa,0x04,0x40,0x01, 0x28,0x48,0xf8,0x27,0x1f,0xe0,0xf2,0xc0,0x96,0xea,0x7e,0x4f,0x3c,0xf1,0x04,0x67, 0xa6,0x49,0xbd,0x00,0xbe,0x4a,0x7d,0x49,0xc1,0x6e,0x73,0xf3,0x9b,0x02,0xdd,0xe7, 0x11,0xf0,0xa5,0x04,0x22,0xf8,0x8b,0x23,0x0f,0x17,0x7c,0xbd,0x10,0xc1,0xff,0x5f, 0xff,0xf5,0x5f,0xea,0xf4,0xd3,0x4f,0xef,0x10,0xfc,0x69,0xd7,0x85,0xa9,0xd4,0x02, 0xa0,0x00,0x14,0xe8,0x01,0x90,0x87,0xb9,0x3c,0x24,0x18,0xf7,0x6f,0x5e,0x05,0x20, 0x39,0xb6,0x6f,0x56,0xe7,0xf3,0xa5,0xe9,0xb9,0x82,0xf7,0x42,0x32,0x03,0xd2,0xd6, 0x05,0xd9,0xa8,0x97,0x0b,0xbe,0xde,0x82,0xff,0xb4,0xd3,0x4e,0xeb,0x10,0xfc,0xc9, 0x6b,0x30,0xf9,0x6a,0xfb,0x0c,0x25,0x00,0x50,0x00,0x0a,0xb4,0x16,0x63,0x61,0x21, 0xed,0xa6,0x9b,0x6e,0x8a,0xc6,0xff,0xa1,0xb9,0x30,0x1f,0x94,0xe2,0xc2,0xb5,0x59, 0xe8,0x36,0xeb,0xdd,0x54,0x0a,0x6c,0x31,0x02,0xae,0xc0,0xc0,0xb4,0xba,0x01,0xb6, 0x99,0xff,0xda,0xf9,0x21,0x5e,0x16,0x17,0x7c,0xe8,0xf5,0x24,0xd3,0x4e,0xbb,0x9a, 0x7c,0x2f,0x33,0x44,0x26,0xe7,0x8a,0xb0,0x09,0xfe,0xb3,0xce,0x3a,0x4b,0x9d,0x7a, 0xea,0xa9,0xaa,0x6f,0xdf,0xbe,0x6b,0x05,0x9b,0xc6,0x2d,0xde,0x96,0x39,0x59,0x95, 0x4d,0x09,0x00,0x40,0x01,0xc8,0xd9,0xea,0x4f,0x36,0xb9,0xa1,0xff,0xfc,0xe7,0x3f, 0x73,0x46,0x5a,0x40,0x11,0xb0,0x09,0x77,0x5b,0x10,0xa0,0x2b,0x9f,0xdf,0x15,0x1f, 0x10,0x62,0xed,0xb7,0x53,0x10,0x60,0x33,0xb9,0xe0,0x85,0x58,0x80,0x77,0xe9,0xd2, 0x65,0x1d,0xa1,0x2e,0x9f,0xc5,0x82,0xdf,0x14,0xba,0xc9,0x6b,0x44,0xea,0x48,0x48, 0x4b,0x13,0xfc,0x12,0xd8,0x77,0xca,0x29,0xa7,0x38,0x05,0xbf,0xa9,0x04,0xd8,0xae, 0x63,0x53,0xf8,0xa3,0x0c,0x00,0x0a,0x40,0x4e,0x4a,0x40,0xf2,0x81,0x2f,0x4d,0x6e, 0xd0,0x7b,0xee,0xb9,0xa7,0x29,0x5c,0x8a,0xe0,0xf6,0xe8,0xc4,0xc4,0x45,0x7e,0x4c, 0x45,0x20,0x79,0xfe,0x5d,0x13,0xf8,0xd8,0xd2,0xfe,0xd2,0x84,0xbd,0x2b,0x33,0x20, 0xb9,0xed,0x66,0x0a,0x02,0x6c,0x36,0x17,0xbc,0x29,0xc4,0x6d,0x7f,0xcb,0xf1,0x97, 0xf7,0xae,0x02,0x51,0xb6,0x6b,0xca,0x0c,0xf2,0x94,0x54,0x52,0x9f,0xe0,0x3f,0xe3, 0x8c,0x33,0xd4,0x49,0x27,0x9d,0xa4,0xfa,0xf4,0xe9,0xd3,0x31,0xc7,0x84,0x4b,0xf0, 0xc7,0xfb,0x15,0xbf,0xf7,0x79,0xb5,0x00,0x50,0x00,0x72,0x12,0x14,0x36,0x25,0x80, 0x82,0x3f,0xad,0xe1,0x01,0xc8,0x9a,0xba,0x67,0xfb,0x4d,0xda,0xf2,0x49,0x2f,0x82, 0x99,0x19,0x60,0x7a,0x18,0x7c,0xb3,0x0f,0xd6,0x93,0x66,0x73,0xc1,0x27,0x85,0xb9, 0xeb,0x7d,0x52,0x88,0x86,0x4c,0x02,0x15,0x0b,0xda,0xf8,0x7d,0xda,0xb4,0xd1,0x49, 0xc1,0x2f,0x2d,0x4d,0xf0,0x4b,0x60,0xdf,0x89,0x27,0x9e,0x18,0x59,0xfc,0x42,0x5c, 0x6c,0x2a,0x4d,0xe0,0xc7,0xfb,0x20,0x4d,0xae,0x99,0xa4,0x12,0x80,0xf0,0x07,0x14, 0x80,0x3a,0x59,0xff,0xd2,0x26,0x4f,0x9e,0xac,0x5e,0x7b,0xed,0x35,0xce,0x46,0x8b, 0x78,0x03,0xe4,0x01,0x9c,0xf4,0x00,0x98,0x82,0xd9,0xb4,0xd0,0x6d,0x4a,0x81,0x4d, 0x71,0x08,0xcd,0x02,0xb0,0x0d,0x17,0x14,0x41,0x33,0xb9,0xe0,0x63,0xc1,0x17,0x0b, 0x70,0x79,0x75,0xbd,0x77,0xb9,0xe0,0x43,0xa7,0x75,0xce,0xe3,0x3a,0x92,0x34,0x60, 0x69,0x69,0x82,0xff,0x2b,0x5f,0xf9,0x8a,0x3a,0xe1,0x84,0x13,0x3a,0x2a,0xf7,0x49, 0xcd,0x09,0x53,0xf0,0xc7,0xfd,0x8e,0x85,0x7c,0x2c,0xe8,0x93,0x7d,0x4c,0x2a,0x23, 0xa6,0xe2,0x02,0x80,0x02,0x90,0xa3,0xe0,0x37,0x1f,0xe0,0x62,0xed,0x3c,0xfc,0xf0, 0xc3,0x9c,0x89,0x16,0x22,0x1e,0x02,0xf0,0x95,0xe8,0x75,0x55,0xef,0x73,0x95,0x05, 0x0e,0x59,0x97,0x4d,0x29,0xc8,0x7a,0xad,0x8a,0x15,0x2e,0xc1,0xa8,0x52,0x32,0xd6, 0x56,0x36,0xb6,0x6c,0x2e,0xf8,0x58,0x80,0xc7,0x42,0xbc,0x6b,0xd7,0xae,0xd6,0xcf, 0x6b,0xb9,0x7f,0x93,0x42,0x32,0x69,0x41,0xe7,0x89,0x9c,0x3b,0x11,0xfa,0xe2,0x2d, 0x49,0x13,0xfc,0x12,0xd1,0x7f,0xcc,0x31,0xc7,0x74,0x08,0x7e,0x51,0xc4,0x92,0x63, 0xfa,0xa6,0xb5,0x1f,0x0b,0xff,0xe4,0xb5,0x12,0x0f,0x49,0x98,0x59,0x27,0x21,0x43, 0x13,0x00,0x28,0x00,0x35,0x2a,0x03,0x49,0x0f,0xc0,0xa3,0x8f,0x3e,0xca,0x99,0x68, 0x01,0xcb,0x3f,0x7e,0x80,0xda,0xb2,0x00,0x7c,0x56,0x7e,0x5a,0xb3,0xb9,0xfe,0x4d, 0x61,0x6f,0x0b,0x2e,0x4c,0x56,0x92,0x14,0xeb,0x50,0x02,0x4d,0x27,0x4e,0x9c,0x18, 0x55,0x28,0xfc,0xe0,0x83,0x0f,0xa2,0x62,0x45,0x32,0xde,0x2e,0x02,0x3f,0x16,0xf6, 0x65,0x70,0xc1,0xc7,0x96,0xaa,0x08,0x72,0x9f,0x50,0xaf,0x87,0x40,0x32,0xe7,0x78, 0xc8,0xdb,0x3a,0x96,0xf3,0x24,0x42,0x5f,0x84,0xbf,0xab,0xfa,0xa7,0x08,0xfe,0xff, 0xfc,0xcf,0xff,0x54,0x47,0x1e,0x79,0xa4,0xea,0xd5,0xab,0x57,0x87,0xe0,0xb7,0x59, 0xfc,0xc9,0x2c,0x02,0x59,0x9f,0x1c,0x2b,0xb3,0x3f,0xae,0xe1,0x27,0x02,0x00,0x01, 0x05,0xa0,0x00,0xe1,0xe0,0x0a,0xfe,0x93,0x07,0xf1,0xeb,0xaf,0xbf,0xce,0x99,0x68, 0x62,0x4c,0xd7,0x70,0x5c,0xfe,0xd7,0x67,0xe5,0xa7,0x05,0xf5,0xa5,0xcd,0x01,0xe0, 0xca,0x24,0x48,0x2e,0x23,0x81,0x60,0xa3,0x46,0x8d,0x52,0xaf,0xbe,0xfa,0xaa,0x7a, 0xeb,0xad,0xb7,0x3a,0x84,0xc5,0x83,0x0f,0x3e,0xd8,0xb0,0x63,0x94,0x14,0xde,0x66, 0x4b,0x0a,0xf8,0xd8,0x5a,0x6d,0x94,0xd0,0x09,0x99,0xd5,0x31,0xed,0xfb,0x2c,0x82, 0x7f,0xde,0xbc,0x79,0x91,0xf0,0x4f,0x13,0xfc,0x5f,0xfa,0xd2,0x97,0xd4,0x61,0x87, 0x1d,0xa6,0x7a,0xf6,0xec,0x19,0x24,0xf8,0x93,0x0a,0x80,0x4d,0xf8,0x53,0x2b,0x02, 0xa0,0x8e,0x1e,0x80,0x34,0x25,0xe0,0x95,0x57,0x5e,0xe1,0x2c,0x34,0xb9,0xf5,0x6f, 0x5a,0x88,0xb1,0x07,0xc0,0x1c,0x8f,0xb7,0x59,0xfb,0xa6,0x65,0xef,0x8a,0x15,0x48, 0x2e,0x17,0xbf,0xb7,0x15,0x19,0xea,0xd6,0xad,0x9b,0x1a,0x3e,0x7c,0x78,0x24,0x54, 0x9e,0x7d,0xf6,0xd9,0xc2,0x1f,0xf0,0x36,0x41,0x6e,0x7e,0x26,0xfb,0x94,0x74,0x51, 0x87,0x8c,0xa1,0x67,0x11,0xa6,0x79,0x8f,0xd1,0xfb,0x2c,0xfe,0xac,0x1e,0x01,0x73, 0xff,0xe4,0xfa,0x10,0xc1,0x2f,0x2d,0x4d,0xf0,0x9f,0x7c,0xf2,0xc9,0xea,0x90,0x43, 0x0e,0x51,0x3d,0x7a,0xf4,0x58,0x47,0xf0,0xc7,0xaf,0x49,0x81,0x9f,0x14,0xfc,0xb6, 0x7d,0xb5,0x15,0xa0,0x4a,0xbe,0xe6,0x71,0x2e,0x00,0x50,0x00,0x02,0x04,0x7f,0xec, 0x01,0x98,0x34,0x69,0x12,0x67,0xa1,0xc5,0x94,0x81,0x38,0x08,0x30,0xc4,0xca,0x4f, 0x2b,0xfa,0x13,0xe2,0x01,0x48,0x5a,0xa1,0x43,0x86,0x0c,0x89,0xdc,0xc8,0x2f,0xbf, 0xfc,0x72,0x4d,0xfd,0x88,0x2d,0xc7,0xa4,0x30,0x37,0xdf,0xc7,0x6e,0xf9,0x10,0xe1, 0x60,0x0a,0xe4,0xbc,0xc7,0xd0,0xcd,0x31,0x7a,0x53,0x40,0x67,0x4d,0xbb,0xcb,0xdb, 0xe2,0x8f,0xf7,0x2f,0xf6,0xf8,0xf9,0x04,0xbf,0xa4,0xf2,0x1d,0x70,0xc0,0x01,0x1d, 0x82,0x5f,0x0a,0xfe,0x98,0xc5,0x7b,0x6c,0x82,0x3f,0x69,0xed,0x27,0x05,0x7e,0x16, 0x45,0x07,0x45,0x00,0x50,0x00,0xea,0xa0,0x04,0xc8,0xc3,0x40,0xda,0xdb,0x6f,0xbf, 0xcd,0x59,0x68,0x01,0xc1,0x9f,0x7c,0x2f,0x0a,0x40,0x5a,0x0c,0x40,0x68,0xb3,0x29, 0x0c,0xb6,0x6b,0x49,0x66,0x73,0x13,0x8b,0xff,0xcd,0x37,0xdf,0x4c,0x7d,0x78,0x27, 0x05,0x79,0xda,0x6b,0xde,0x0f,0xfa,0xa2,0xc7,0xd0,0x7d,0x02,0x3f,0x34,0xed,0x2e, 0x2f,0x8b,0xdf,0x44,0xce,0x91,0x08,0x7e,0x09,0x9a,0x4c,0x13,0xfc,0x9f,0xff,0xfc, 0xe7,0xd5,0x3e,0xfb,0xec,0xa3,0xba,0x77,0xef,0xbe,0x8e,0xc5,0xef,0x1a,0xe3,0x4f, 0x2a,0x52,0x66,0xff,0x43,0x5c,0xfc,0xb6,0x8a,0x80,0x08,0x7a,0x40,0x01,0xc8,0x59, 0x40,0x98,0xd6,0x7f,0xac,0x04,0x4c,0x9f,0x3e,0x9d,0xb3,0xd0,0x62,0x24,0x3d,0x00, 0x69,0x2e,0xfd,0xac,0xb9,0xfe,0xe6,0xb5,0x24,0x82,0x42,0x72,0xc4,0x25,0x22,0xdf, 0x85,0xb8,0xdf,0x45,0xb8,0x48,0x1d,0xf8,0xd8,0x42,0xcc,0x6b,0x0c,0xbb,0x5a,0x0b, 0xda,0x26,0x84,0xf2,0x1c,0xf3,0xf7,0x45,0xed,0xe7,0x39,0x86,0x2f,0xe7,0x5a,0x9a, 0xdc,0xcb,0xf1,0x6b,0xfc,0x3e,0xf9,0x79,0x5a,0x54,0xbf,0xe4,0xf0,0xef,0xb1,0xc7, 0x1e,0xd1,0xb9,0x92,0xe5,0x5c,0x82,0x3f,0x69,0xed,0x9b,0x25,0x9e,0x6d,0x65,0x9f, 0xb3,0x34,0xac,0x7c,0x40,0x01,0x28,0xd8,0xf2,0x37,0x03,0x00,0xa5,0x49,0x14,0x36, 0xb4,0x96,0x37,0x20,0x8e,0xa2,0x77,0x4d,0x02,0x64,0xcb,0x02,0xb0,0x59,0xf7,0xae, 0xef,0x44,0x00,0x88,0x5b,0x58,0x84,0xbf,0x0b,0x49,0x11,0x13,0xe1,0x12,0x97,0x83, 0x2d,0xd2,0x22,0xaf,0xc6,0x82,0x4e,0x53,0x00,0x1a,0x39,0x86,0x1f,0x0b,0x75,0x9b, 0x10,0x37,0xdf,0xd7,0x12,0x5f,0x21,0xe7,0xe6,0x33,0x9f,0xf9,0x8c,0xda,0x7d,0xf7, 0xdd,0x3b,0x04,0x7f,0x5a,0x1e,0x7f,0xac,0xbc,0x98,0xe9,0x7c,0x36,0x81,0x6f,0xa6, 0x01,0xa6,0xcd,0x2d,0x60,0x53,0x04,0x7c,0xa5,0x82,0x01,0x50,0x00,0x32,0x28,0x01, 0x69,0x5e,0x00,0x19,0xb3,0x85,0xe6,0x16,0xf8,0xc9,0x07,0x65,0x32,0x05,0x30,0x69, 0xc9,0x87,0xb8,0xfa,0xcd,0xc0,0xc0,0xe4,0xe7,0xf1,0x67,0x62,0x1d,0xa6,0x09,0x9f, 0x01,0x03,0x06,0xa8,0xc1,0x83,0x07,0x77,0xa4,0x8a,0x55,0x63,0xf1,0xd6,0xdb,0x43, 0x90,0x55,0x61,0xc8,0x4a,0xac,0x6c,0x8b,0x80,0x35,0xad,0xf5,0x58,0x98,0xe7,0x21, 0xd4,0x43,0x05,0xbf,0x14,0xef,0xd9,0x79,0xe7,0x9d,0xa3,0xe1,0x16,0x97,0xe0,0x4f, 0x0a,0x6e,0x53,0x51,0x72,0x59,0xf8,0xb6,0xf9,0x05,0x5c,0x73,0x0f,0xd8,0x84,0xbf, 0x4d,0xe8,0x33,0x2c,0x00,0x28,0x00,0x35,0x0a,0x08,0x33,0x22,0x3c,0x7e,0x20,0x49, 0x8b,0xdd,0x7d,0xd0,0x1a,0xb8,0x02,0x00,0x4d,0x97,0xbe,0xaf,0x78,0x8f,0xe9,0x01, 0x10,0x21,0x21,0xcd,0x26,0xa0,0xe4,0x01,0x2f,0x82,0x45,0x04,0xbf,0x58,0x93,0x26, 0x36,0x17,0x78,0x2d,0x63,0xe2,0xb5,0x5a,0xe4,0x79,0x58,0xfc,0xa6,0xab,0x3d,0xad, 0x95,0x21,0xd5,0x4d,0xce,0xcd,0xb1,0xc7,0x1e,0xab,0x3e,0xfa,0xd1,0x8f,0xae,0x25, 0xf8,0x5d,0x6e,0xfe,0xf8,0xbc,0xd9,0x8e,0xa1,0x29,0xec,0x5d,0x69,0x95,0xae,0x94, 0xcb,0x50,0x65,0x00,0x00,0x05,0x20,0x27,0xe1,0xef,0xca,0x02,0x68,0x74,0xd1,0x15, 0xc8,0xd7,0xd3,0x93,0x54,0x00,0x92,0x1e,0x80,0xf8,0xbd,0x39,0xf9,0x4f,0x52,0xc8, 0x27,0xd7,0x15,0xff,0x4e,0x14,0x44,0x69,0x36,0x21,0x26,0x31,0x00,0xeb,0xad,0xb7, 0x5e,0x24,0xfc,0x93,0xc2,0xc2,0x66,0x71,0xa7,0xbd,0xd6,0xea,0x21,0xb0,0x09,0x7c, 0x9f,0x80,0xb7,0x29,0x17,0xb1,0x50,0xf4,0x09,0x76,0x97,0x22,0x54,0x6f,0xe4,0x98, 0x4b,0xa4,0xbe,0xe4,0xe7,0x9b,0xaf,0xf1,0xfb,0xf8,0x6f,0x39,0x57,0x52,0x64,0xe9, 0xee,0xbb,0xef,0x6e,0xb8,0xb7,0xaa,0x9e,0x9e,0x9d,0x32,0x7a,0xeb,0xe8,0x7f,0xfd, 0xfb,0x3f,0x62,0xc4,0x88,0x48,0x29,0xfd,0xf9,0xcf,0x7f,0xde,0xfa,0x0a,0x80,0x6d, 0x26,0x37,0xd3,0xf5,0x1f,0x2b,0x00,0xd0,0xfc,0x24,0x05,0x98,0x2d,0xf8,0x2f,0x64, 0x82,0x20,0x53,0xf0,0x8b,0xa0,0x13,0xc1,0x6f,0x8b,0x1a,0x97,0x22,0x3f,0xeb,0xaf, 0xbf,0x7e,0x14,0xfd,0x6f,0xbb,0xd9,0xaa,0xc9,0x53,0xaf,0x75,0x79,0xd7,0x32,0x36, 0x61,0x1e,0xbb,0xe2,0xcb,0x2c,0xd4,0x6d,0x82,0xdd,0xfc,0x3c,0x8e,0xd6,0x0f,0xc1, 0x76,0x1e,0xeb,0x91,0x7e,0x68,0xfe,0x3e,0xa9,0x90,0xd6,0x52,0x32,0xda,0xa6,0xfc, 0x66,0x5d,0x1f,0xfd,0x6f,0xfd,0xfe,0x4b,0x6a,0xb2,0xb4,0x97,0x5e,0x7a,0xc9,0x1a, 0xb7,0xd2,0x76,0x1e,0x80,0x64,0x1a,0xa0,0x2b,0x25,0x08,0x9a,0xd7,0x03,0x10,0x0b, 0x32,0x9b,0xeb,0xdf,0x25,0xec,0xcd,0xe5,0xe3,0x71,0x7e,0x13,0xb1,0xf4,0x45,0xf0, 0xc7,0x35,0xe0,0xeb,0x65,0x89,0x98,0xeb,0x4f,0x0a,0xf5,0xd8,0x62,0x4f,0x0a,0xf5, 0xf8,0x7d,0x99,0x84,0xba,0x08,0xeb,0xd8,0x12,0x37,0x05,0x7a,0xdc,0xe4,0x3b,0x69, 0xa1,0x9e,0x8d,0xd8,0x85,0x1f,0xda,0xc7,0x7a,0x5b,0x9c,0x8d,0xf0,0xec,0xd0,0x7f, 0xfa,0x1f,0xdf,0x1b,0x52,0xef,0x42,0x26,0x01,0x7b,0xf7,0xdd,0x77,0x9d,0xfb,0xd2, 0x68,0x65,0xa0,0xae,0x31,0x00,0xa6,0x85,0x88,0x02,0xd0,0x1a,0xc2,0x3f,0x79,0xf1, 0x26,0x67,0x02,0x4c,0x9e,0x7f,0x9f,0x47,0x20,0x4e,0xff,0x32,0xc7,0xac,0x65,0xcc, 0x56,0x84,0xbe,0xb8,0xfa,0xe3,0xc2,0x30,0xb5,0xa6,0xdd,0xd9,0x6e,0xec,0x38,0x28, 0x4e,0x6e,0x5c,0xd9,0x8f,0x38,0x3e,0x25,0x29,0xd4,0x63,0xc1,0x5e,0x86,0xeb,0x36, 0x16,0xea,0xa6,0x00,0x77,0x09,0xf5,0xd0,0x07,0x62,0x5a,0xdf,0x6c,0x16,0x4e,0x16, 0x05,0xc7,0x36,0x47,0x43,0x96,0x07,0xac,0x69,0xc1,0x85,0xac,0x2f,0x6d,0x79,0x57, 0xdd,0x7f,0xfa,0x4f,0xff,0xab,0xed,0x7f,0x5c,0xf3,0x42,0xbc,0x93,0x62,0xb0,0x98, 0xbf,0x33,0x97,0x6f,0xf4,0xd4,0xd3,0x85,0xa7,0x01,0x9a,0x42,0xc0,0x6c,0xd0,0xdc, 0x98,0x17,0x6d,0x2c,0xc0,0x5d,0xd1,0xfc,0xb6,0x80,0x3f,0x11,0xb4,0xa6,0xb5,0x2c, 0xc2,0x6b,0xe8,0xd0,0xa1,0x91,0xfb,0xcc,0x56,0xcf,0xdd,0xdc,0xb6,0x2b,0xa5,0x2d, 0x29,0xb8,0x6d,0xef,0xcb,0x2a,0xd4,0xcd,0xd7,0xb8,0x49,0x90,0xa3,0x58,0xf0,0xb6, 0x60,0x47,0x9f,0xfb,0xbd,0x56,0x8b,0xad,0x56,0x0b,0xc9,0x7c,0x20,0xd7,0x2a,0x20, 0xb2,0x3e,0xb0,0xe9,0x3f,0xfd,0x2f,0xb2,0xff,0x22,0xf8,0xc5,0x3b,0x39,0x70,0xe0, 0xc0,0x75,0xac,0x7c,0x33,0x05,0x3a,0x6f,0xef,0x48,0xa9,0x87,0x00,0x4c,0x4f,0x80, 0x39,0x55,0x2c,0xb4,0x86,0xfb,0x3f,0x16,0xe6,0xa6,0x07,0xc0,0x2c,0xe8,0x13,0x5f, 0x07,0xb1,0x00,0x4e,0x5e,0x07,0xa2,0x39,0x0f,0x1b,0x36,0x2c,0xba,0x89,0x6c,0x37, 0x5e,0xec,0x7e,0x8f,0xad,0xf3,0xa4,0x20,0x37,0x5b,0x99,0xdc,0xef,0x49,0x6b,0x3c, 0x29,0xd8,0x63,0x81,0x2e,0x7f,0xc7,0x55,0x08,0x43,0x3c,0x1b,0x21,0xf1,0x33,0xb5, 0x8e,0xa9,0xda,0x2c,0x26,0x73,0x0c,0xd5,0xb7,0xbe,0xe4,0x39,0xf0,0x59,0x60,0xbe, 0xf5,0xf9,0x04,0x04,0xfd,0xa7,0xff,0x8d,0xe8,0xbf,0x54,0x21,0x95,0xfb,0x37,0xb6, 0xf8,0x93,0x9e,0x4e,0xb3,0x48,0x55,0xfc,0x7b,0xb3,0xee,0x44,0xc8,0x74,0xd4,0x4d, 0x39,0x04,0x60,0x1b,0x06,0x60,0x08,0xa0,0x35,0xbd,0x00,0xc9,0xa9,0x80,0xd3,0xa6, 0xe9,0x8d,0xdd,0xec,0xc9,0xf3,0x2f,0x05,0x7b,0xc4,0xda,0x97,0x1b,0x49,0xbe,0x97, 0x71,0x33,0x53,0xa0,0xbb,0xb2,0x01,0x1a,0x25,0xd4,0xa5,0x89,0x00,0x4f,0x0a,0x77, 0xb3,0x89,0x50,0x0f,0x7d,0x20,0xc5,0xc7,0x2e,0x4f,0x8b,0x2b,0xcf,0x31,0xdb,0xbc, 0x2b,0x1e,0x96,0x6d,0x7d,0xf4,0x9f,0xfe,0x67,0x59,0xbf,0x8c,0xef,0x0b,0xb1,0xc5, 0xef,0xf2,0x7e,0xdb,0x94,0x0a,0x57,0x8d,0x8b,0x7a,0x2b,0x01,0x85,0x65,0x01,0x98, 0x82,0xdf,0xa6,0x08,0xa0,0x00,0xb4,0x9e,0x17,0x20,0xad,0x0e,0x40,0x5a,0x80,0xdf, 0xc2,0x85,0x0b,0xa3,0xd6,0x48,0xa1,0x2e,0xc2,0xdc,0x14,0xe0,0xb6,0xcf,0x92,0x42, 0x3d,0xd4,0xfd,0x5e,0xc4,0x03,0x29,0xab,0x45,0x54,0xab,0x8b,0x33,0x0f,0x45,0x91, 0xfe,0xd3,0xff,0x66,0xef,0x7f,0x3c,0x64,0x29,0x71,0x49,0xe6,0xba,0xcc,0xe7,0xa2, 0x29,0xc8,0x45,0xc9,0x4f,0xd6,0xba,0x48,0x2a,0x02,0x2d,0x1b,0x03,0xe0,0xf2,0x02, 0x30,0x17,0x77,0x6b,0xb1,0x74,0xe9,0xd2,0x8e,0xb9,0xdd,0x4d,0xa5,0x4f,0x4a,0xf7, 0xd6,0xbb,0x28,0x4d,0x52,0xa8,0x27,0x05,0xb9,0x29,0xd4,0xe5,0xef,0xa4,0xfb,0xdd, 0xf7,0x40,0x08,0x75,0x61,0x16,0xfd,0x40,0xf2,0xb9,0x64,0xab,0xd9,0x7e,0x96,0xf5, 0xd1,0x7f,0xfa,0xdf,0x4e,0xfd,0x97,0xe7,0x97,0x3c,0xe3,0x24,0x28,0x59,0xe2,0x92, 0x7c,0xc1,0x90,0xb6,0x00,0x3f,0x59,0x47,0x5c,0x8c,0x2a,0x7e,0x46,0xd9,0x02,0x03, 0xeb,0xe5,0x05,0xa8,0x6b,0x16,0x80,0x4d,0x11,0x80,0xe6,0xb7,0xfe,0xa5,0x9c,0xf3, 0x94,0x29,0x53,0x22,0xb7,0x7d,0x5c,0x7b,0x3f,0x3e,0xb7,0x22,0xf8,0xf3,0x1c,0x8f, 0x8f,0x85,0xba,0x29,0xd8,0x6d,0xaf,0xd5,0x5a,0xea,0x45,0x51,0x6f,0x8b,0xab,0x6c, 0xd0,0x7f,0xfa,0xdf,0x8c,0xfd,0x97,0xfd,0x93,0x79,0x47,0xc4,0xe2,0x97,0x52,0xe3, 0x2e,0x81,0x6f,0xeb,0x53,0x72,0x5a,0x6a,0x79,0x4d,0xce,0x93,0x62,0x3e,0xd7,0x5a, 0xc2,0x03,0x90,0xa6,0x15,0xe1,0x01,0x68,0x2d,0xc1,0x2f,0xd6,0xbe,0x4c,0xe7,0x3c, 0x67,0xce,0x9c,0x75,0xbe,0x8b,0xdd,0x64,0x21,0x82,0x35,0x2e,0x3e,0x63,0x4b,0x6b, 0x13,0x8d,0x5b,0xd6,0x13,0x97,0xf9,0xcd,0x22,0xd4,0x6d,0x43,0x0d,0x00,0x00,0xa1, 0x88,0xe0,0x97,0xd8,0xa4,0xe1,0xc3,0x87,0x07,0x3d,0x13,0x5d,0x55,0x46,0x63,0x25, 0x20,0xf6,0x82,0xc6,0x1e,0x47,0xd7,0xd4,0xd5,0x4d,0x1d,0x03,0x90,0xc5,0x0b,0x00, 0xcd,0x85,0x08,0x74,0x11,0xf8,0x33,0x67,0xce,0x8c,0xac,0x7b,0x9b,0xd0,0x8d,0x3f, 0x77,0x09,0x75,0xf3,0xbd,0x4d,0xa8,0x4b,0x4a,0x8d,0x78,0x16,0x92,0xe3,0x6c,0x66, 0x1a,0x61,0xbd,0x27,0xf5,0x09,0x7d,0x00,0xd4,0xab,0x20,0x11,0xfd,0xa7,0xff,0xf4, 0xbf,0x98,0xfe,0x4b,0x80,0x9f,0x4c,0x21,0x3e,0x72,0xe4,0xc8,0x54,0x41,0x9f,0x26, 0xf4,0x6d,0x1e,0x8e,0xd8,0x28,0xf1,0xcd,0x0f,0xd2,0xb4,0x1e,0x80,0x34,0x8f,0x00, 0xc2,0xbf,0x79,0x11,0x2b,0x7c,0xf6,0xec,0xd9,0x51,0x75,0x2b,0xb9,0x48,0x45,0x70, 0x8b,0xbb,0x5f,0x52,0x5f,0x92,0xa9,0x6d,0x71,0x8e,0x7a,0x48,0x9e,0xba,0xcd,0x25, 0x28,0x37,0x9e,0x6c,0x43,0xc6,0xc9,0x64,0x5d,0xa6,0x07,0x21,0x6b,0xe9,0xd1,0x5a, 0x4a,0x95,0xe6,0xe5,0x01,0xcb,0x73,0x7b,0xf4,0x9f,0xfe,0xd3,0xff,0xe2,0xfa,0x2f, 0xc6,0x8b,0xcc,0x24,0x6a,0x13,0xfc,0x69,0xbf,0xf5,0xd5,0x27,0x48,0xc6,0x00,0x24, 0xd3,0x00,0x6d,0x05,0xd2,0x5a,0x2e,0x0d,0x30,0x54,0x39,0x80,0xf2,0x22,0x02,0x59, 0xf2,0xf3,0xa5,0x25,0x49,0x73,0x8d,0xf9,0xc6,0xfc,0x92,0xaf,0x32,0x64,0x20,0x59, 0x00,0x72,0x43,0xb8,0xdc,0xfc,0x8c,0xa1,0xd2,0x7f,0xfa,0x4f,0xff,0x8b,0xe8,0x7f, 0x5c,0xd6,0x7a,0xc3,0x0d,0x37,0xb4,0x0a,0x72,0x57,0x8d,0x03,0x9b,0xa5,0x6f,0xfb, 0x2c,0x19,0x48,0x98,0x4c,0x03,0x94,0xe7,0x5d,0x1c,0x08,0x68,0x2e,0xdb,0xb4,0x41, 0x80,0x36,0x0b,0x1f,0xcb,0xbf,0xb9,0x49,0xe6,0xac,0x66,0x55,0xf0,0x5c,0xaf,0x71, 0x09,0xde,0x38,0x43,0x20,0x9e,0x9a,0xd5,0x76,0x83,0x95,0xe1,0x81,0x51,0xf4,0xfa, 0x5c,0x56,0x05,0xfd,0xa7,0xff,0xf4,0xbf,0x98,0xfd,0x8d,0x4b,0x7e,0x8b,0x61,0x63, 0x7b,0xf6,0xb8,0x66,0xed,0x0c,0x11,0xce,0x36,0x2f,0x40,0xf2,0x39,0x17,0xb7,0x58, 0x09,0xc8,0xb2,0xee,0xa6,0xf0,0x00,0xa4,0xb9,0x4b,0x50,0x06,0xda,0x8f,0xe4,0x78, 0x97,0x5c,0xf4,0x22,0xf8,0xcd,0xe2,0x3e,0xc9,0x1b,0x34,0xd6,0x8c,0x5d,0xca,0x47, 0xc8,0x18,0x9f,0xed,0x7d,0x2d,0x63,0x86,0x69,0xeb,0xab,0x66,0xcc,0xd1,0x65,0x51, 0xd0,0x7f,0xfa,0x4f,0xff,0x8b,0xeb,0xbf,0x2c,0xb7,0x78,0xf1,0xe2,0x28,0xa5,0x2f, 0x1e,0xae,0x34,0xc7,0xf3,0x5d,0x0a,0x88,0x69,0xd9,0x9b,0xcb,0xb8,0x9e,0x67,0x71, 0x10,0xa0,0x78,0x53,0xa5,0x25,0xa7,0x47,0x6f,0x94,0x3c,0xac,0x5b,0x10,0x20,0xb4, 0x2e,0x59,0x83,0x72,0xc4,0xdd,0x26,0xc2,0xdf,0xa6,0x65,0x9b,0xcb,0x27,0xf3,0x64, 0x6b,0x2d,0xed,0xe9,0xb3,0x28,0x7c,0x0f,0x1c,0xdf,0xfa,0xcc,0xdf,0xfb,0xf6,0x3f, 0x64,0xfd,0xf4,0x9f,0xfe,0xd3,0xff,0x7c,0xfb,0x2f,0xc1,0xc5,0x92,0x55,0x14,0x57, 0xf0,0xb3,0x3d,0x87,0x5c,0x55,0xf9,0xd2,0x94,0x01,0x73,0x9a,0x61,0xdb,0xf2,0xe2, 0x71,0x88,0x5b,0x5c,0x4b,0xc0,0xd6,0xea,0x15,0x14,0xd8,0x15,0xf1,0x05,0xb5,0x0a, 0xff,0x2c,0xb5,0xbc,0x45,0xf0,0x27,0x0b,0xe9,0x84,0x7a,0x0c,0x42,0x2d,0x9a,0x10, 0x6b,0x23,0xd4,0x22,0xc9,0xe2,0xd1,0xc8,0x63,0xff,0xe8,0x3f,0xfd,0xa7,0xff,0xc5, 0xad,0x5f,0x2c,0x7e,0x09,0xf0,0x1b,0x31,0x62,0x84,0xd7,0x8b,0x60,0x13,0xf0,0xb6, 0xdf,0x84,0xce,0x8c,0x98,0xac,0x03,0x20,0xcd,0x56,0x2d,0xb5,0x11,0xa0,0x00,0x40, 0xcd,0x6e,0x7d,0x9f,0x86,0x1e,0xcf,0xca,0x17,0x47,0xbc,0x9a,0xb3,0xfb,0x99,0xeb, 0x2a,0x4b,0xed,0xf2,0x46,0x1d,0x4b,0xfa,0x4f,0xff,0xe9,0x7f,0x7e,0xfd,0x97,0x5c, 0x7e,0x79,0xe6,0xc8,0xec,0xa2,0xa6,0xd1,0x62,0xfe,0xd6,0x25,0xdc,0xcd,0x67,0x5d, 0x5a,0xaa,0x9f,0x4d,0xf0,0xc7,0xdb,0x8b,0x85,0x7f,0xb2,0x35,0x52,0x11,0x40,0x01, 0x80,0x9a,0x3d,0x00,0xe6,0xfb,0xe4,0x67,0xc9,0x62,0x40,0xa6,0x6b,0xd1,0xf6,0x80, 0xf2,0x69,0xfc,0x3e,0x17,0x5f,0xd2,0x65,0xe8,0x73,0x49,0x66,0x75,0x79,0x16,0xe5, 0x3d,0xa1,0xff,0xf4,0x9f,0xfe,0xe7,0xdf,0xff,0x78,0x02,0x31,0x29,0xe4,0x13,0x62, 0xf1,0xa7,0x79,0x02,0x6c,0x16,0x7e,0x48,0x5a,0xa1,0xcd,0x18,0x2a,0x53,0x41,0x3c, 0x14,0x00,0x28,0x04,0xb9,0xd0,0x45,0xdb,0x4d,0x1b,0xe3,0x0f,0x19,0x33,0xcc,0xf2, 0x40,0xa8,0xc6,0xe2,0xc9,0x73,0x8c,0x2d,0xab,0x05,0x43,0xff,0xe9,0x3f,0xfd,0xcf, 0xbf,0xff,0x22,0xf8,0xe3,0x0a,0x7e,0xae,0xe7,0x4f,0x9a,0x80,0x77,0xd5,0xf5,0x0f, 0x71,0xf1,0xbb,0xde,0x27,0xff,0x4e,0x2a,0x01,0xf1,0x67,0x21,0x13,0x09,0xa1,0x00, 0x40,0x29,0x3d,0x00,0x66,0x90,0x8c,0x69,0xf1,0x67,0x19,0x73,0xcc,0xd3,0xe2,0x71, 0x3d,0x3c,0x8a,0xbc,0xb1,0xb2,0x6e,0x8f,0xfe,0xd3,0x7f,0xfa,0x9f,0x4f,0xff,0x65, 0x39,0x29,0x22,0x26,0xc1,0x7d,0x32,0xd6,0x1f,0x52,0x99,0xaf,0x16,0xeb,0x3f,0x4d, 0xe0,0x9b,0x25,0x80,0x93,0x53,0xa2,0xbb,0xac,0x7f,0x73,0x78,0x01,0x0f,0x00,0x94, 0x16,0x29,0xd6,0xd3,0xa7,0x4f,0x1f,0xeb,0x0d,0xec,0x1a,0xe3,0xaf,0x37,0x14,0x4e, 0xa1,0xff,0xf4,0xbf,0x3d,0xfa,0x3f,0x77,0xee,0x5c,0xd5,0xbb,0x77,0xef,0x75,0x4a, 0x87,0x9b,0xc7,0xc1,0xf5,0x59,0x68,0x30,0x5f,0x9a,0xa2,0x63,0x4b,0x23,0x74,0x6d, 0xcb,0x65,0xfd,0x13,0x03,0x00,0xa5,0x46,0x72,0x66,0xa5,0x04,0xb0,0x94,0xe9,0x8d, 0xc7,0xb4,0xcc,0x22,0x16,0x79,0xd5,0xea,0xce,0xe3,0xfb,0x34,0x97,0x62,0xad,0x69, 0x53,0x79,0xa7,0x65,0xd1,0x7f,0xfa,0x4f,0xff,0xb3,0xf5,0x4f,0x26,0x24,0x93,0x3e, 0x4a,0x5a,0x9f,0x6f,0x3c,0xdd,0x66,0xe1,0xfb,0xac,0xfe,0x2c,0xfb,0x1e,0x32,0x4c, 0xe0,0xb3,0xfe,0xeb,0x6e,0xc8,0x21,0xd2,0x20,0x0b,0x32,0xbe,0x26,0xda,0x36,0x00, 0x40,0xa3,0x89,0x4b,0x91,0xbb,0x02,0x0a,0x93,0x82,0xd6,0x15,0xdd,0xef,0x12,0xc0, 0x21,0x63,0xfa,0x69,0x93,0x02,0xd9,0xb6,0x5f,0x36,0x3a,0x73,0x09,0x01,0x00,0x40, 0xb3,0x62,0x0b,0xde,0xb3,0x09,0x5e,0xdf,0xb8,0xbe,0xb9,0x2e,0x9f,0x77,0xc0,0x15, 0x34,0x68,0x5a,0xf8,0xae,0xed,0xa3,0x00,0x00,0x00,0x00,0xd4,0x28,0xfc,0xd3,0x8a, 0x01,0xa5,0x0d,0x61,0x98,0xcb,0x25,0xad,0x78,0xdf,0x04,0x3f,0x69,0xef,0x43,0xb6, 0x8f,0x02,0x00,0x00,0x00,0x90,0x93,0x22,0x10,0x62,0xe9,0xa7,0xd5,0xed,0x37,0xbd, 0x00,0xa1,0xc3,0x06,0x65,0x18,0xcf,0x47,0x01,0x00,0x00,0x00,0x70,0x58,0xfa,0x69, 0x15,0xfb,0xd2,0xfe,0xb6,0xb9,0xf1,0xd3,0x52,0x18,0x51,0x00,0x00,0x00,0x00,0x1a, 0xe4,0x09,0x30,0x3f,0xb3,0x15,0xe5,0xb1,0xa5,0xe8,0xd9,0x52,0xf9,0xd2,0x3c,0x05, 0xc9,0xed,0xf8,0xb6,0x8f,0x02,0x00,0x00,0x00,0x50,0xb0,0x22,0xe0,0x4a,0x7f,0x0c, 0x15,0xc4,0xa1,0xde,0x82,0x50,0x4f,0x01,0x59,0x00,0x00,0x00,0x00,0x39,0x5b,0xfc, 0x36,0xeb,0xdd,0x54,0x06,0xcc,0xc9,0x7e,0x4c,0x2f,0x80,0x4d,0xc0,0xa7,0xd5,0x01, 0x48,0xfb,0xcc,0xdc,0x46,0xa3,0x6b,0xfe,0xa3,0x00,0x00,0x00,0x40,0x4b,0x61,0x96, 0xdd,0x4d,0x0a,0x63,0xb3,0x70,0x50,0x48,0x3a,0x60,0x35,0x11,0xfc,0xb6,0xe8,0x7f, 0x5b,0x49,0x60,0x3c,0x00,0x00,0x00,0x00,0x39,0x7a,0x00,0xcc,0x48,0xfd,0x34,0x4b, 0xbc,0x1a,0xcb,0xde,0xf4,0x34,0x98,0xca,0x84,0x2b,0x7b,0x20,0xb9,0x7d,0x3c,0x00, 0x00,0x00,0x00,0x05,0x79,0x02,0x6c,0x02,0xd9,0x25,0xf4,0x43,0x2d,0x7b,0x5b,0x1c, 0x41,0xc8,0xac,0x80,0xe6,0x90,0x43,0x9a,0xd2,0x81,0x02,0x00,0x00,0x00,0x50,0x85, 0xe0,0x37,0x05,0xad,0xab,0x86,0x7f,0x56,0x0b,0xdc,0xcc,0x18,0xb0,0x09,0xf8,0x90, 0xed,0x93,0x05,0x00,0x00,0x00,0x50,0x20,0xb5,0x14,0xe3,0xf1,0x15,0xf5,0x31,0x2d, 0x7f,0x9f,0x82,0xe1,0xaa,0x23,0x50,0x36,0xda,0x76,0x32,0xa0,0x85,0x0b,0x17,0xaa, 0x19,0x33,0x66,0x70,0xd7,0x00,0x00,0x14,0x44,0x8f,0x1e,0x3d,0xd4,0xa8,0x51,0xa3, 0x0a,0x17,0xfa,0xae,0xb2,0xbc,0xe6,0xb2,0x69,0x13,0xfc,0x98,0x16,0x7e,0xb2,0x1c, 0xb0,0x6b,0x08,0x20,0x74,0xfb,0x65,0xad,0x0e,0xd8,0x16,0x0a,0x80,0xcc,0x5d,0x3f, 0x70,0xe0,0xc0,0xb5,0x3e,0x93,0x79,0xa3,0x37,0xde,0x78,0x63,0xe7,0x6f,0x1a,0x3d, 0x97,0x76,0xad,0x53,0x75,0xe6,0xbd,0x7d,0xfa,0x4f,0xff,0xe9,0x3f,0xfd,0xaf,0x66, 0x7b,0x32,0x83,0xe8,0xbc,0x79,0xf3,0x0a,0xdd,0xcf,0x10,0xeb,0xdf,0x95,0x31,0xe0, 0x9a,0xd1,0x2f,0x6d,0x1e,0x80,0x6a,0xb6,0x8f,0x02,0xd0,0x20,0x7a,0xf7,0xee,0x5d, 0x95,0x0b,0x26,0xed,0x37,0xbe,0x1b,0x34,0xaf,0x8b,0xdb,0xf7,0x5d,0x23,0xb7,0x4f, 0xff,0xe9,0x3f,0xfd,0xa7,0xff,0x3e,0x96,0x2d,0x5b,0x56,0xb8,0x07,0x20,0xd4,0xca, 0x77,0x29,0x34,0xe6,0xe4,0x3f,0xa1,0xde,0x86,0x90,0x80,0x40,0x14,0x80,0x06,0x5b, 0xff,0x3d,0x7b,0xf6,0xcc,0xac,0xe1,0x86,0x68,0xe0,0x9d,0x3b,0x77,0xce,0xb4,0x7c, 0xd6,0xf5,0xa7,0x5d,0x90,0xb5,0x6a,0xe8,0xf4,0x9f,0xfe,0xd3,0x7f,0xfa,0x5f,0x74, 0xff,0xe5,0xb3,0x22,0x15,0x80,0x34,0xa5,0x25,0x2d,0x55,0xcf,0xd5,0x7f,0xdb,0x6f, 0xcd,0xdf,0x64,0x39,0xc6,0x65,0x57,0x04,0x5a,0x5e,0x01,0xe8,0xd3,0xa7,0x8f,0xf3, 0xe0,0xdb,0x4e,0x78,0xda,0xb4,0x92,0x3e,0x0d,0x3c,0xcf,0xe5,0xe3,0x9b,0x4b,0x5e, 0x5d,0x37,0x78,0xf2,0xf7,0x21,0xcb,0xd3,0x7f,0xfa,0x4f,0xff,0xe9,0x7f,0x3d,0xfb, 0xbf,0x64,0xc9,0x92,0xc2,0x5d,0xe2,0x3e,0x45,0x26,0x74,0x1c,0xdf,0xe5,0x59,0xc8, 0x22,0xf8,0x43,0xb6,0x8f,0x02,0x50,0x27,0xba,0x74,0xe9,0xa2,0x7a,0xf5,0xea,0xd5, 0xb4,0xfb,0x9f,0xbc,0x60,0x44,0x8b,0x5e,0xb4,0x68,0x51,0x74,0x43,0x2d,0x5f,0xbe, 0x5c,0xad,0x5e,0xbd,0xba,0xe1,0x63,0x4d,0xf2,0xb0,0xe9,0xde,0xbd,0xbb,0xea,0xdb, 0xb7,0xaf,0xea,0xdf,0xbf,0x7f,0x74,0xbc,0x8b,0xd6,0xe6,0x43,0x1e,0x4a,0xf5,0x72, 0x91,0x36,0xc2,0x9a,0xa1,0xff,0xf4,0xbf,0x99,0xfa,0x2f,0xcf,0xab,0x7a,0xe1,0x9a, 0xb0,0xc7,0x14,0xc2,0xbe,0xc0,0xbd,0x10,0x05,0xc1,0xa7,0x88,0xb8,0xb6,0x8f,0x02, 0x50,0x47,0x44,0x30,0x55,0xeb,0x92,0xab,0xd5,0x65,0x97,0xd7,0xf2,0x0b,0x16,0x2c, 0x50,0x73,0xe7,0xce,0xb5,0xba,0xd1,0x5c,0xa5,0x27,0xf3,0xd8,0x7e,0xc8,0xfa,0x62, 0xf7,0x9e,0xb4,0x0f,0x3e,0xf8,0x40,0x0d,0x1b,0x36,0xac,0x43,0xe1,0xca,0xfb,0x78, 0x55,0xa3,0x79,0x17,0xdd,0xff,0x7a,0x9c,0x7f,0xfa,0x4f,0xff,0x9b,0xb5,0xff,0xf2, 0x5c,0x58,0xb9,0x72,0x65,0xdd,0xac,0xff,0xb4,0x59,0xfe,0x7c,0x0a,0x43,0x16,0x81, 0xef,0x1a,0x3a,0xc8,0xba,0x7d,0x14,0x80,0x82,0xad,0x7f,0x09,0xfe,0xcb,0xe2,0x62, 0x4b,0x8e,0x69,0xf9,0xbe,0x77,0xd5,0x99,0x4e,0x5e,0x04,0xbe,0x31,0xb2,0x34,0x8d, 0x7d,0xe9,0xd2,0xa5,0x6a,0xe6,0xcc,0x99,0x6b,0x34,0x68,0xad,0x41,0x76,0x1e,0xa0, 0xbf,0x13,0x85,0xa6,0x97,0x6e,0x5d,0xa3,0xcf,0x72,0xbc,0x8d,0xd6,0xac,0x2f,0xbe, 0x50,0x3b,0x25,0x3e,0x73,0x2d,0x2f,0x1e,0x88,0x65,0xda,0x13,0x31,0x4f,0x55,0x74, 0x5b,0xb5,0x6a,0x95,0x9a,0x3e,0x7d,0x7a,0x94,0xf2,0x23,0xa9,0x3f,0xb5,0xf6,0x3f, 0xeb,0x03,0xc8,0x77,0xfc,0x9b,0xed,0xfc,0xd3,0x7f,0xfa,0xdf,0xec,0xfd,0x5f,0xbc, 0x78,0x71,0x5d,0xad,0xff,0xb4,0x4a,0x7f,0x59,0xc7,0xef,0x43,0xbc,0x0c,0x59,0xb7, 0x8f,0x02,0x50,0x47,0xfa,0xf5,0xeb,0xd7,0x71,0xf1,0x56,0xeb,0x32,0x2b,0x72,0x8c, 0xcc,0x76,0xe3,0xc4,0x17,0x91,0xa4,0xcc,0xbc,0xf7,0xde,0x7b,0x4a,0xae,0xa1,0x2e, 0x5d,0xd7,0x53,0x9d,0xbb,0x0c,0xd1,0xa2,0xb8,0x6b,0x87,0x80,0x36,0xc5,0xf5,0x3a, 0xdb,0x36,0xc4,0xb7,0x7f,0x79,0x7d,0x63,0xeb,0x7f,0x9d,0xd6,0xd4,0x85,0x8a,0xdf, 0x57,0x1c,0xbf,0xd0,0xea,0x88,0xfe,0xa6,0xb3,0xfe,0xd7,0x55,0x2b,0x5a,0x7d,0xb4, 0x12,0x30,0x40,0xad,0x5a,0x39,0x35,0xda,0xff,0xd9,0xb3,0x67,0xab,0x0d,0x37,0xdc, 0xb0,0xa6,0xfe,0xdb,0x1e,0x80,0x59,0x6f,0xa2,0x3c,0x5c,0xa6,0x8d,0x3a,0xff,0xf4, 0x9f,0xfe,0x37,0x7b,0xff,0xeb,0x15,0xfc,0x97,0xe6,0xda,0x4f,0x9b,0x07,0x20,0xab, 0x20,0x77,0x79,0x40,0xab,0xd9,0x3e,0x0a,0x40,0xc1,0x88,0xe0,0x4f,0x0b,0xfe,0x2b, 0x83,0xcb,0xce,0x75,0x31,0x8b,0xd5,0x3f,0x67,0xce,0x1c,0xdd,0x87,0x1e,0xaa,0x5b, 0x8f,0xd1,0xfa,0xb5,0xa7,0xea,0xd6,0xbd,0x97,0x1a,0x32,0x64,0x13,0xd5,0xb7,0xff, 0x50,0x6d,0x5d,0xf7,0xd5,0x42,0xb7,0x5b,0x6d,0xdb,0xce,0x6a,0xf0,0x1b,0xac,0x5a, 0xb5,0x42,0x2d,0x59,0x3c,0x57,0xbd,0x37,0xe3,0x15,0xb5,0x68,0xe1,0x2c,0xd5,0x45, 0x89,0x77,0x42,0xbb,0xfb,0x56,0xbc,0x17,0x69,0xfd,0xe2,0x0d,0x90,0xec,0x8b,0x6a, 0xfa,0x9f,0xe5,0x01,0x96,0x87,0xc5,0x50,0xb6,0xf3,0x4f,0xff,0xe9,0x7f,0x2b,0xf4, 0x5f,0xe2,0x95,0xea,0x29,0xf4,0x7c,0x81,0x7c,0x21,0x9f,0xdb,0x3c,0x30,0xbe,0xac, 0x82,0x6a,0xbc,0x05,0x28,0x00,0x75,0xb0,0xfe,0xcd,0x13,0x54,0x6f,0x97,0x5d,0x9a, 0xa6,0xea,0xba,0xa1,0x44,0xf8,0xcb,0x78,0x7f,0x97,0xae,0xfd,0x54,0xf7,0x9e,0x1b, 0xe9,0xfd,0xe9,0xa6,0x86,0x0d,0xdf,0x5a,0xad,0x3f,0x74,0x33,0xfd,0x7d,0x9e,0x55, 0x9b,0x3d,0x3e,0x02,0x8f,0x82,0xd0,0xa5,0x6b,0x17,0xd5,0xbd,0xc7,0x70,0xd5,0x7f, 0xe0,0x30,0x35,0x79,0xd2,0x23,0x6a,0xc1,0xfc,0xf7,0x54,0xd7,0xee,0x43,0xb4,0x17, 0xe0,0xfd,0xa8,0x3f,0x12,0xa4,0x68,0x2a,0x00,0x45,0x8f,0xb1,0x66,0x3d,0xfe,0x65, 0x3c,0xff,0xf4,0x9f,0xfe,0xb7,0x4a,0xff,0xeb,0xe5,0xfe,0xb7,0xf5,0x3b,0x4b,0xb4, 0x7e,0x9a,0xa5,0xef,0x2b,0xfe,0x13,0xb2,0x7d,0x62,0x00,0xea,0x8c,0x1c,0x70,0x57, 0xf0,0x5f,0xd6,0xb4,0x9b,0xac,0x63,0x62,0x69,0x2e,0x3d,0xdb,0xf6,0x93,0x7f,0x8b, 0xdb,0x5f,0x2c,0xff,0x2e,0x5d,0xfb,0xaa,0xee,0xbd,0xc6,0xa8,0x6e,0xdd,0x7a,0xab, 0x4d,0x37,0xdb,0x53,0xf5,0xee,0x33,0xd8,0x2b,0x91,0x65,0x35,0xb2,0x1b,0xf1,0xea, 0xe2,0xf7,0xa1,0xd7,0x9d,0xef,0xf7,0x69,0xea,0xc2,0x88,0x91,0xdb,0xaa,0x89,0xaf, 0xce,0xd4,0xef,0xba,0xeb,0x0f,0xbb,0xea,0xcf,0x57,0xae,0x75,0xbc,0x42,0xfb,0x1f, 0x32,0x06,0x9a,0xf6,0x1a,0x62,0x2d,0x95,0xf9,0xfc,0xd3,0x7f,0xfa,0xdf,0x2a,0xfd, 0x97,0xf8,0xa5,0xa2,0x83,0xff,0xf2,0xb4,0xb4,0x6d,0xe7,0xc9,0x54,0x02,0x5c,0xdb, 0xb2,0x0d,0xd3,0x34,0x53,0x55,0xc0,0x96,0x53,0x00,0xc4,0xf5,0x5f,0x6d,0x3a,0x9a, 0x6f,0x8c,0x2e,0xcf,0x1b,0x2e,0xb9,0x3e,0x19,0x2b,0x7b,0xff,0xfd,0xf7,0x75,0xa0, 0x5f,0x37,0xd5,0xa3,0xf7,0x87,0xc2,0x7f,0xf3,0x8f,0xec,0xaf,0x23,0xea,0x07,0x04, 0x5a,0x0f,0x1e,0x01,0x5e,0x6b,0xd1,0x90,0x14,0x05,0xa0,0x4f,0xbf,0xc1,0x3a,0x46, 0xa1,0xf3,0x5a,0xdb,0x8c,0xad,0xff,0x3c,0xc7,0x48,0xeb,0xe1,0x32,0x6d,0xd4,0xf9, 0xa7,0xff,0xf4,0xbf,0x95,0xfa,0x2f,0x99,0x4b,0x65,0xc3,0x56,0xe3,0x3f,0xcd,0xb3, 0x92,0x66,0xc1,0x9b,0xb3,0x00,0x86,0x0e,0x3b,0x50,0x07,0xa0,0x0e,0x48,0x3e,0x7a, 0x11,0xc5,0x17,0xaa,0xd1,0xf8,0x43,0x5d,0x78,0xe2,0xfa,0x97,0xf7,0xbd,0xfb,0x8d, 0xd1,0xae,0xf4,0x1e,0x6a,0xd3,0x2d,0x3e,0xae,0x06,0x0e,0xde,0xc0,0x69,0x81,0x7b, 0xa3,0xfc,0x8c,0xef,0xd7,0x55,0x08,0xd6,0x56,0x18,0xd6,0xdd,0xd9,0xf4,0xf5,0x25, 0xbf,0xef,0xb4,0x6c,0x55,0x34,0x24,0x50,0x59,0xbd,0x4a,0xff,0xbd,0xaa,0xa3,0xf6, 0x82,0xad,0x22,0x58,0x9e,0x69,0x47,0x59,0x5d,0xa4,0x65,0x3e,0xff,0xf4,0x9f,0xfe, 0xb7,0x4a,0xff,0x25,0xfe,0x47,0x3c,0x00,0x8d,0x16,0xf4,0xe6,0xdf,0xbe,0xf3,0xe4, 0x9a,0xe2,0x37,0xcd,0xf5,0x1f,0xe2,0xe6,0xb7,0xc5,0x12,0xa0,0x00,0x14,0x84,0x08, 0x1e,0x29,0x4c,0x13,0xe2,0x52,0xab,0x56,0x3b,0x4e,0x8b,0xda,0xad,0x26,0xed,0x46, 0x66,0x25,0x94,0x80,0x99,0x6e,0xdd,0xfb,0xab,0x6e,0x3d,0x07,0xaa,0x01,0x03,0x86, 0xe9,0x31,0xff,0x31,0x1e,0x81,0xed,0x93,0xf0,0x3e,0x05,0x21,0x9b,0xcf,0x3f,0xed, 0xeb,0x45,0x73,0x66,0x69,0xcf,0x45,0x67,0xb5,0x72,0xf9,0xdc,0xd4,0xe1,0x97,0x5a, 0x5d,0x8c,0xb6,0xf3,0x91,0xe7,0x18,0x6d,0xa3,0xce,0x3f,0xfd,0xa7,0xff,0xad,0xd4, 0x7f,0xc9,0x02,0x6a,0x24,0x2e,0xc1,0x6e,0x73,0xed,0xbb,0xbe,0x77,0x1d,0xab,0x3c, 0x82,0x0a,0x51,0x00,0xea,0x60,0xfd,0xe7,0xe1,0x22,0xcb,0x9a,0x96,0xe3,0x5b,0xbf, 0xcb,0x85,0x26,0xe3,0xfe,0xf2,0xda,0xa3,0xcf,0x88,0xe8,0x06,0x1a,0xb9,0xf1,0xf6, 0xaa,0x6b,0xb7,0xae,0x3e,0x35,0x37,0xd5,0xa4,0x5f,0x47,0xfe,0x9b,0xfb,0xee,0x75, 0x01,0x84,0x33,0x67,0xf6,0x9b,0xaa,0xb3,0x5e,0xcf,0x8a,0xe5,0x1f,0xde,0xf8,0x32, 0xeb,0x62,0x5a,0xfc,0x45,0xb5,0x63,0xa2,0x45,0xaf,0xaf,0x51,0xe7,0x9f,0xfe,0xd3, 0xff,0x56,0xe9,0xbf,0x7c,0x27,0x41,0xcc,0x32,0x04,0x58,0x6f,0x61,0x17,0x3a,0xd5, 0xaf,0xcf,0xb5,0xef,0x12,0xea,0x21,0x13,0x05,0x85,0x4c,0x42,0x84,0x02,0x50,0x10, 0xe2,0x7a,0x96,0xf1,0xff,0xa2,0xb4,0x49,0xdf,0x0d,0x14,0xe2,0x82,0x33,0xdf,0x4b, 0xb4,0xbc,0x44,0xcb,0x76,0xe9,0xda,0x53,0x47,0xfd,0x0f,0xd4,0x1e,0x8c,0xfe,0x6a, 0xc8,0x06,0xeb,0xce,0x9d,0xbd,0x6e,0x96,0xde,0xda,0x9f,0x7c,0x98,0xb7,0xdf,0xc9, 0x99,0xb7,0x9f,0xfd,0x6e,0x5a,0xdb,0x63,0xb0,0x8e,0xc3,0x60,0xcd,0xd7,0x8b,0x17, 0xcf,0x57,0xf3,0xe7,0xcd,0xd0,0xdf,0x2d,0xd7,0x1e,0x80,0xf9,0x1d,0x65,0x81,0xab, 0xb1,0x50,0x8a,0x3e,0x3f,0x65,0x3c,0xff,0xf4,0x9f,0xfe,0xb7,0x52,0xff,0x65,0xec, 0x5f,0xa6,0xfe,0x15,0x43,0x26,0xef,0xb2,0xe0,0x59,0x85,0xbf,0xad,0x04,0xb0,0x4d, 0x90,0x87,0x94,0x02,0x8e,0x97,0x0b,0x55,0x32,0x5c,0xdb,0xa7,0x14,0x70,0x81,0xc4, 0xae,0xe7,0x22,0xf3,0x74,0xf3,0xbe,0x61,0xa4,0x7c,0xae,0xbc,0xf6,0xea,0x33,0x3c, 0xd2,0x9a,0x47,0x8d,0xd9,0x56,0xf5,0xe8,0xd9,0xc3,0x27,0x8f,0xbd,0x31,0x01,0xbe, 0x11,0x01,0xef,0xfa,0x4d,0x07,0x81,0x23,0x4b,0x70,0xea,0xdb,0x93,0x55,0x67,0x3d, 0xfe,0xbf,0x64,0xd1,0xcc,0xe8,0xf3,0xc1,0x83,0x07,0xa7,0x06,0x0d,0x65,0x7d,0x60, 0x56,0xf3,0x10,0x68,0xa6,0xf3,0x4f,0xff,0xe9,0x7f,0x2b,0xf5,0x5f,0xbc,0x99,0x82, 0x64,0x00,0xd4,0x53,0x01,0xb0,0x29,0x02,0x2e,0x81,0xee,0x1a,0x0e,0x08,0x89,0xdc, 0xb7,0x05,0x11,0x26,0xcf,0xb1,0x6f,0xfb,0x0c,0x01,0x14,0x48,0x32,0xf8,0x2f,0xe4, 0xa0,0xe7,0xad,0x95,0x65,0x1d,0xc3,0x93,0xcf,0x25,0xf5,0xaf,0x73,0xe7,0xae,0xaa, 0x57,0xbf,0xa1,0xda,0x0b,0xd0,0x4d,0x8d,0x18,0xbd,0x95,0xea,0xa2,0xdd,0xff,0x99, 0x03,0x86,0x3c,0x02,0xde,0x94,0xe8,0x59,0x7f,0x6f,0x53,0x40,0x56,0xad,0x5a,0xa9, 0x66,0xce,0x98,0xa4,0xd7,0xa3,0xf3,0xfe,0x17,0xcf,0x8a,0x14,0x98,0x41,0x83,0x06, 0x75,0xdc,0xf8,0x21,0x63,0x98,0x3e,0x17,0x66,0x35,0x0f,0xdf,0x66,0x39,0xff,0xf4, 0x9f,0xfe,0xb7,0x52,0xff,0xc5,0xf2,0x97,0x58,0x26,0x41,0x26,0x2a,0xab,0xa7,0xd0, 0x4f,0xfb,0xdb,0xf7,0xbb,0x50,0xb7,0x7e,0x88,0xc2,0x15,0xb2,0x3e,0x14,0x80,0x22, 0x3a,0xa1,0x85,0x4f,0xcf,0x9e,0x3d,0x53,0x35,0xf2,0x90,0x1b,0xb0,0x9e,0x16,0x80, 0xb8,0xcb,0x24,0x62,0xb6,0x67,0x1f,0x11,0xfe,0xdd,0xd5,0xf0,0x91,0x9b,0xab,0x9e, 0xbd,0x7a,0xdb,0x4d,0xfa,0x8c,0x95,0xfa,0x2c,0x57,0x5e,0x7a,0x61,0x00,0x5f,0x4c, 0x80,0x25,0xe6,0xe0,0x7d,0x2d,0xfc,0x57,0xad,0x5a,0xae,0x96,0x2f,0x9d,0xad,0x3f, 0x5e,0xa9,0x83,0x17,0x07,0xae,0x55,0xfc,0xa7,0x0c,0xb3,0x91,0x95,0xf9,0xfc,0xd3, 0x7f,0xfa,0xdf,0x4a,0xfd,0x9f,0x35,0x6b,0xd6,0x5a,0x82,0x4e,0x94,0x00,0x5f,0x29, 0xf6,0x3c,0xfb,0x99,0x16,0xdc,0x57,0x6b,0xe0,0x63,0x5a,0xd6,0x80,0xcb,0xf5,0x6f, 0x53,0x32,0xf0,0x00,0x14,0x84,0xad,0xf2,0x5f,0x51,0xee,0xa5,0xbc,0x2a,0x77,0xc5, 0xee,0xb2,0x3e,0x03,0x46,0x44,0x51,0xf4,0xa3,0x36,0xd9,0x36,0xb2,0xfe,0x83,0x4c, 0xf0,0x75,0xae,0x54,0x95,0x29,0x2d,0x30,0x8e,0x17,0xe8,0xe4,0x8a,0x21,0x08,0x48, 0x03,0x9c,0xfe,0xce,0xab,0xd1,0x7e,0x2f,0x5d,0x38,0x23,0xfa,0x68,0xc8,0x90,0x21, 0x35,0xcd,0x4e,0x58,0x76,0xca,0x58,0x3a,0x96,0xfe,0xd3,0xff,0x32,0xf4,0x5f,0x84, 0xbd,0x04,0xff,0x25,0xa9,0x97,0x02,0xe0,0x12,0xf4,0x21,0x69,0x7a,0x2e,0xa1,0x6d, 0xf6,0xd3,0x57,0x10,0xc8,0xdc,0x7e,0x51,0x13,0x11,0xa1,0x00,0x38,0x88,0x03,0xcf, 0x42,0x35,0xb4,0x6a,0x6f,0xc8,0xbc,0xa2,0x74,0x65,0x86,0x3f,0xc9,0x95,0xed,0xde, 0xb3,0xbf,0xea,0xd9,0x7b,0xa0,0xea,0x3f,0x68,0x03,0xb5,0xfe,0xb0,0x51,0x89,0x20, 0x3e,0xa3,0xd2,0x5f,0x36,0xf9,0xee,0xbf,0x99,0x55,0x70,0x9a,0xbf,0xf5,0xfb,0x0f, 0xe6,0xea,0x9a,0xff,0x0b,0x67,0xab,0xd5,0xab,0x16,0xeb,0xe0,0xbf,0x85,0xd1,0xac, 0x8b,0xe6,0xcc,0x8b,0xd5,0x4c,0x1e,0x52,0x4b,0x29,0xd5,0x66,0x3a,0xff,0xf4,0x9f, 0xfe,0xb7,0x52,0xff,0x25,0x96,0x49,0xbc,0x99,0x66,0x7f,0xea,0xa5,0x98,0xa4,0x09, 0xf9,0xb4,0x7d,0xb1,0xa5,0x4a,0xda,0xac,0xff,0x10,0x2f,0x43,0x5a,0x10,0x21,0xa5, 0x80,0x0b,0x24,0x9e,0xf8,0xc7,0x76,0xe0,0x6b,0x99,0xcd,0xaa,0xd6,0x1b,0x3a,0x8d, 0xd8,0xfa,0xef,0x3b,0x68,0x64,0x64,0x45,0x6f,0x3c,0x76,0x87,0xa8,0x98,0x8e,0x5b, 0x40,0xa7,0x5b,0xec,0xd9,0x67,0xff,0xab,0x6d,0x7d,0xd3,0xdf,0x7e,0x39,0xda,0xef, 0xc5,0xf3,0xdf,0xb5,0x5a,0xff,0xb5,0xb8,0xdb,0x42,0x2b,0x9f,0xd9,0xc6,0x5c,0x9b, 0xe5,0xfc,0xd3,0x7f,0xfa,0xdf,0x4a,0xfd,0x4f,0xba,0xff,0x93,0x1e,0x80,0x7a,0x7b, 0x28,0x42,0x2c,0xfc,0xe4,0xe7,0xe6,0x7b,0x97,0x3b,0xdf,0x65,0xbd,0xbb,0x84,0x7c, 0x33,0x4c,0x02,0xd4,0x32,0x0a,0x80,0x59,0x75,0xae,0x2c,0xb3,0x67,0xb9,0x10,0x4d, 0x79,0xfe,0xfc,0xf9,0xfa,0xc6,0xd5,0x69,0x8b,0xfd,0x87,0xe9,0x71,0x73,0x3d,0xfe, 0xbf,0xd1,0x16,0x5a,0x01,0xe8,0x9a,0x10,0xc0,0x6b,0x0b,0xe8,0xec,0x4f,0x93,0x8c, 0x1a,0x41,0x06,0x9f,0xc2,0xd2,0xc5,0x0b,0xd4,0xf4,0x77,0x27,0xea,0xca,0x7f,0xcb, 0xd5,0x92,0x05,0xef,0x45,0xa9,0x7f,0xae,0xdc,0xff,0x7a,0xb8,0xff,0xb2,0x3c,0x40, 0xcb,0x70,0xfe,0xe9,0x3f,0xfd,0x6f,0xa5,0xfe,0x4b,0xe0,0x9f,0x6d,0xe2,0x9f,0x7a, 0x2b,0x00,0xa1,0x4a,0x4b,0xd6,0x69,0x80,0x4d,0x8f,0x4a,0xda,0xd0,0x42,0xd9,0x27, 0xfe,0x69,0x49,0x05,0x20,0x76,0x3d,0x17,0x3d,0xdb,0x96,0xef,0x86,0x0b,0x8d,0xdc, 0x97,0xca,0x7f,0x72,0x73,0xf4,0xec,0x33,0x44,0xd7,0xd0,0xef,0xaa,0x06,0x0e,0x19, 0xa6,0x03,0x18,0x7b,0xa7,0xbb,0xef,0x7c,0x63,0xf4,0xb5,0xdf,0x29,0xc1,0xb3,0x09, 0xbd,0x36,0xe1,0x51,0xb9,0xbd,0xd5,0xfc,0xd9,0x53,0xa2,0x1d,0x18,0x3a,0x74,0x68, 0x14,0xf9,0x9f,0xf7,0x6c,0x65,0x79,0xbb,0x48,0xcb,0x72,0xfe,0xe9,0x3f,0xfd,0x6f, 0xa5,0xfe,0x4f,0x9f,0x3e,0xdd,0xb9,0xbe,0x7a,0x06,0x02,0xfa,0x04,0x79,0x9a,0x27, 0x20,0xad,0xef,0x69,0xa5,0x7f,0x7d,0xb5,0x02,0x6c,0xdb,0x47,0x01,0x28,0x40,0x01, 0x88,0x2f,0x32,0xdf,0x0d,0x9a,0xa5,0x54,0xa7,0x4d,0x9b,0x4e,0xfb,0x3b,0x74,0xb6, 0xac,0xb8,0x4e,0x76,0xf7,0x9e,0x7d,0xa2,0x8a,0x7f,0x3d,0x7b,0xeb,0xf2,0xc5,0x3a, 0xf7,0x3f,0x7d,0xf6,0xbe,0xb5,0x25,0xfe,0xba,0x0a,0x42,0xb6,0x98,0x80,0x75,0xe4, 0xbb,0x27,0xe9,0x20,0x5e,0x7e,0xd2,0x2b,0x4f,0xab,0xf7,0xa7,0x4f,0x56,0xcb,0x16, 0xcf,0x56,0x8b,0xe6,0xbd,0x1b,0x0d,0xbd,0x48,0xea,0x5f,0x96,0xfe,0x87,0x96,0x52, 0x0d,0x79,0x00,0x65,0x7d,0x40,0x97,0xe1,0xfc,0xd3,0x7f,0xfa,0xdf,0x2a,0xfd,0x17, 0x4f,0xa6,0xb4,0x2c,0x6e,0xf9,0x7a,0x0f,0x09,0xf8,0xf2,0xf5,0xb3,0x0e,0x2b,0x84, 0xf6,0x2b,0x6d,0xfb,0x28,0x00,0x39,0xd2,0xa3,0x47,0x8f,0xaa,0xdc,0x41,0x59,0x6b, 0x79,0xe7,0x35,0x3b,0x97,0x14,0xc9,0x88,0x22,0x4b,0xf5,0xb6,0x3a,0x75,0xd6,0x1e, 0x81,0x05,0x73,0xa2,0xf1,0xff,0x0f,0x17,0x0b,0xf3,0xd9,0x67,0x4e,0x0a,0xf0,0xcd, 0x0e,0xe8,0xf1,0x30,0xc8,0x62,0x13,0x27,0x3c,0xa5,0x5e,0x79,0xe1,0x21,0x1d,0xf4, 0xb7,0x40,0xcd,0x7e,0xe7,0xdf,0x51,0xca,0xdf,0xe8,0xd1,0xa3,0x9d,0x0f,0x8c,0x3c, 0x8e,0x57,0x91,0x63,0x98,0x8d,0x3a,0xff,0xf4,0x9f,0xfe,0xb7,0x42,0xff,0xc5,0xba, 0x7f,0xfb,0xed,0xb7,0x53,0xb7,0x29,0xcb,0x14,0x5d,0x10,0x28,0xab,0xf5,0x6e,0x5a, 0xe3,0x36,0xcf,0x4a,0xa8,0x80,0x77,0x79,0x5d,0x6c,0xdb,0x60,0x08,0xa0,0xa0,0x31, 0x1e,0x19,0x83,0x0e,0xd5,0xe6,0xb2,0xce,0xaf,0x9d,0xd7,0x85,0x98,0x44,0x6e,0x08, 0xf9,0x6c,0xc5,0xd2,0x85,0xfa,0x55,0xa7,0xd1,0x2d,0x59,0xa4,0xa6,0x4e,0x7e,0x49, 0x6d,0xbc,0xf9,0x0e,0xa5,0x4c,0x29,0x5a,0xb2,0x68,0xbe,0x7a,0xf1,0xe9,0x7b,0xd5, 0xbb,0x6f,0xbf,0xa6,0xf7,0x79,0x81,0x9a,0x31,0xe5,0x99,0x48,0x55,0xd8,0x64,0x93, 0x4d,0xd6,0xaa,0xbd,0x90,0xb7,0xcb,0xb1,0x1e,0x95,0xd2,0x1a,0x71,0xfe,0xe9,0x3f, 0xfd,0x6f,0x85,0xfe,0xbf,0xf5,0xd6,0x5b,0xd1,0x34,0xe6,0x3e,0x05,0xa0,0x1e,0x32, 0xc0,0xe6,0x09,0xb1,0xb9,0xf7,0x43,0xa6,0xf0,0xcd,0xea,0xaa,0x77,0x55,0x07,0x74, 0x05,0x20,0xa2,0x00,0xe4,0x48,0x2c,0x4c,0x43,0x6e,0xa0,0xac,0x95,0xba,0x7c,0x17, 0x5a,0xb5,0xeb,0x8f,0x85,0xe6,0xd2,0x45,0x73,0xd4,0xaa,0x15,0x8b,0xf5,0x0c,0x80, 0x7d,0xd5,0x8b,0xcf,0xfc,0x43,0x2d,0x5e,0x32,0x5f,0x8d,0xd9,0x6c,0x3b,0xd5,0xa7, 0xef,0x20,0x1d,0x1b,0xd0,0xc5,0x67,0xd3,0x67,0xf2,0x10,0xac,0x1b,0x54,0xb8,0xf6, 0x12,0xe6,0xf2,0xcb,0x97,0x2e,0x56,0x73,0x67,0xcf,0x50,0xef,0xbc,0xf9,0x8a,0x56, 0x4e,0x26,0x44,0x55,0xff,0x16,0xcc,0x9d,0xa6,0x66,0x4d,0x9d,0xa0,0xfb,0xd4,0x49, 0x8d,0xd1,0xc2,0x5f,0xdc,0xff,0xb5,0x1c,0x5f,0x9f,0x45,0xe3,0x73,0x49,0x66,0x7d, 0x80,0x96,0xe5,0xfc,0xd3,0x7f,0xfa,0xdf,0xec,0xfd,0x7f,0xff,0xfd,0xf7,0xa3,0xe6, 0xa3,0x1e,0x0a,0x40,0x5a,0x6a,0x5e,0x9a,0x25,0x9e,0x56,0x1b,0x20,0xc4,0xe2,0xf7, 0x29,0x6a,0xd5,0x2a,0x14,0x28,0x00,0x19,0xb5,0xbf,0x50,0x97,0x59,0x88,0x8b,0xad, 0xd6,0xd9,0xbf,0x42,0xd2,0x74,0x64,0xcc,0x5c,0x02,0x67,0xe4,0xe6,0x78,0xef,0xad, 0x7f,0xa9,0x91,0x9b,0x8f,0x8b,0x2a,0x01,0x4e,0x7e,0xf5,0x69,0x35,0x45,0xb7,0x10, 0x17,0x7f,0xee,0xc7,0x31,0x45,0xbd,0x58,0xb6,0x78,0x9e,0x9a,0x39,0x6d,0x82,0x4e, 0xf9,0x9b,0x15,0x29,0x2f,0x63,0xc6,0x8c,0x59,0x6b,0xd8,0x25,0x6b,0xff,0xb3,0x3c, 0x70,0x92,0xaf,0x3e,0x0b,0xa6,0x59,0xce,0x3f,0xfd,0xa7,0xff,0xcd,0xdc,0x7f,0xc9, 0xf9,0x7f,0xe3,0x8d,0x37,0x82,0xbd,0xae,0xf5,0xb2,0x80,0x6d,0x53,0xf9,0xfa,0x5c, 0xff,0x2e,0x21,0x6f,0x2a,0x03,0x21,0x25,0xe6,0x43,0xb7,0x8f,0x02,0x50,0x80,0xf6, 0x97,0xe5,0x22,0xc9,0xba,0x6c,0xde,0xb3,0x75,0x75,0xeb,0xd6,0x4d,0x0d,0x1f,0x3e, 0x5c,0xbd,0xfb,0xee,0xbb,0x6a,0xf9,0x92,0x05,0xea,0xad,0x09,0x0f,0xa8,0xc1,0xc3, 0xc7,0xaa,0x3e,0x03,0x87,0xa9,0x6e,0x3d,0x7a,0x47,0xe9,0x81,0x9d,0x12,0x82,0xb9, 0x6e,0xca,0xd4,0x9a,0xd7,0x55,0x2b,0x57,0xa8,0x95,0x2b,0x96,0xa8,0xc5,0xf3,0x66, 0x6a,0xab,0x7f,0xba,0x4e,0xf5,0x9b,0x1d,0xed,0xfb,0x06,0x1b,0x6c,0xa0,0x86,0x0d, 0x1b,0x96,0x69,0x4c,0xaf,0xd6,0x34,0x25,0xdf,0xf8,0x69,0x33,0x9e,0x7f,0xfa,0x4f, 0xff,0x9b,0xb5,0xff,0x92,0xc1,0xf4,0xec,0xb3,0xcf,0x66,0x9a,0x75,0xb5,0xe8,0x38, 0x00,0x9b,0xf5,0xed,0x52,0xb6,0x7c,0xca,0x97,0x2b,0xe8,0x31,0x6b,0x31,0xa0,0x6a, 0xb7,0x8f,0x02,0x90,0x91,0xb8,0xfa,0x94,0x2f,0x95,0xa3,0x1a,0x17,0x5c,0x91,0x48, 0xea,0x5c,0xe4,0x01,0x78,0xef,0x3d,0x2d,0x70,0x97,0xab,0x99,0x53,0x5f,0x8e,0x5a, 0x19,0x3d,0x2c,0x32,0xc3,0x9f,0x08,0x7f,0xa9,0xb7,0x50,0x86,0xfd,0xc9,0x62,0x21, 0x95,0xf5,0xfc,0xd3,0x7f,0xfa,0xdf,0x6c,0xfd,0x97,0x5c,0xff,0xc7,0x1e,0x7b,0xcc, 0x3a,0xe7,0x4a,0x23,0x15,0x00,0x97,0x80,0xcd,0x2a,0x6c,0x43,0xa7,0xfa,0xb5,0x29, 0x1e,0x21,0xdb,0x27,0x0d,0xb0,0xa0,0x13,0x2e,0x81,0x28,0xc9,0x62,0x40,0xb5,0xb8, 0xb8,0xaa,0xd1,0x3c,0xab,0x5d,0xdf,0x86,0x1b,0x6e,0x18,0x15,0xd0,0x91,0xaa,0x80, 0x92,0x4a,0xb3,0x7c,0xf9,0xf2,0x86,0x5f,0x20,0xb2,0xff,0xe2,0xa1,0x90,0xe3,0x29, 0xf3,0x2b,0xc8,0xfe,0xc9,0xdf,0x45,0xf4,0xbf,0x9a,0x3c,0x69,0xdf,0xf9,0x6d,0xa6, 0xf3,0x4f,0xff,0xe9,0x7f,0xb3,0xf4,0x7f,0xf6,0xec,0xd9,0xea,0xc9,0x27,0x9f,0xec, 0x78,0x3e,0x64,0x55,0x00,0xea,0x21,0xf4,0xd3,0xc6,0xe1,0xb3,0x0a,0x79,0x73,0xac, 0xdf,0x15,0xdd,0x9f,0x65,0xfb,0xcc,0x05,0x50,0x10,0xe2,0x96,0x32,0xeb,0xd0,0x17, 0xe5,0x92,0xcb,0x7b,0x7d,0xe2,0x4a,0xcb,0xe2,0x4e,0x6b,0x26,0x8b,0xa4,0x11,0xe7, 0xa3,0xd9,0xce,0x3f,0xfd,0xa7,0xff,0x65,0xef,0xff,0x9b,0x6f,0xbe,0xa9,0xfe,0xf5, 0xaf,0x7f,0x45,0xb1,0x0c,0x71,0xcd,0x8f,0x32,0x29,0x00,0x59,0xac,0x7f,0x57,0xc4, 0xbe,0x4d,0x41,0xf0,0xa5,0x16,0x9a,0xeb,0x0c,0xdd,0x3e,0x0a,0x40,0xce,0xcc,0x9c, 0x39,0x33,0x72,0xa9,0xe7,0x71,0x01,0x15,0x99,0x96,0x53,0xf6,0xd9,0xc1,0xe8,0x3f, 0xfd,0xa7,0xff,0xf4,0x3f,0xde,0x3f,0xa9,0x57,0xf2,0xfc,0xf3,0xcf,0x77,0xe4,0xfa, 0xf7,0xef,0xdf,0xbf,0xaa,0xaa,0x7e,0x45,0x07,0x02,0x86,0xd6,0xf9,0x4f,0xab,0x02, 0xe8,0x52,0x24,0x42,0xbc,0x0d,0xbe,0xe5,0xcb,0x3e,0xac,0xd4,0xf4,0x0a,0x80,0x0c, 0x01,0x48,0x4e,0xea,0x46,0x1b,0x6d,0x54,0x93,0x0b,0xce,0xa7,0x21,0xfb,0x2a,0x6b, 0x85,0xdc,0xd0,0x59,0x34,0xf0,0xbc,0x67,0x07,0xa3,0xff,0xf4,0x9f,0xfe,0xd3,0xff, 0x90,0xfe,0x8b,0xd5,0x3f,0x61,0xc2,0x84,0x8e,0xaa,0xa5,0x32,0xdb,0x6a,0x56,0xd7, 0xbf,0xe9,0x05,0x28,0x2a,0x0e,0x20,0xad,0x5a,0x61,0xa8,0xf0,0xf7,0x05,0xf7,0xd9, 0x82,0xfc,0xb2,0xec,0x5b,0x99,0x15,0x81,0x96,0x98,0x0e,0x78,0xd2,0xa4,0x49,0x51, 0x6a,0x9a,0x44,0xd7,0x67,0x49,0xbb,0xa9,0xa5,0xd2,0x56,0xde,0x79,0xbf,0x21,0xeb, 0x4f,0x4b,0x4b,0xaa,0x26,0xed,0x88,0xfe,0xd3,0x7f,0xfa,0x4f,0xff,0x63,0xa6,0x4e, 0x9d,0xaa,0x5e,0x79,0xe5,0x15,0xb5,0x60,0xc1,0x82,0x8e,0xdf,0x49,0x3c,0x50,0xe8, 0x10,0x6b,0x23,0x14,0x00,0x97,0xa5,0x6f,0xa6,0xf0,0xf9,0xdc,0xfb,0xa6,0x35,0x1f, 0x5a,0xfb,0x3f,0xc4,0x53,0x54,0xe6,0x82,0x40,0x2d,0xa1,0x00,0xc8,0x81,0x7d,0xea, 0xa9,0xa7,0xd4,0xa6,0x9b,0x6e,0xaa,0xb6,0xdc,0x72,0xcb,0xb5,0xaa,0x03,0x16,0x55, 0x59,0x2b,0xab,0x46,0x5f,0x8d,0x8b,0xd0,0x67,0x81,0xd4,0xba,0x3c,0xfd,0xa7,0xff, 0xf4,0xbf,0xbd,0xfb,0x2f,0x79,0xfd,0xd3,0xa6,0x4d,0x8b,0xac,0xfe,0xd8,0xe2,0x8f, 0xbf,0x17,0xa3,0x4a,0xac,0xff,0x5a,0x69,0x44,0x1c,0x80,0x4b,0xd0,0xfb,0x52,0xf8, 0xcc,0xf7,0x69,0x6e,0x7e,0xf3,0x5c,0xa7,0x4d,0x2d,0x4c,0x16,0x40,0x91,0x9d,0xd0, 0x75,0xe9,0xe5,0x00,0x4f,0x9e,0x3c,0x39,0x1a,0x0e,0x18,0x31,0x62,0x44,0x94,0xba, 0x26,0x91,0xec,0x12,0x64,0x27,0xdf,0x9b,0x13,0x06,0xf9,0x5c,0x78,0xb5,0xce,0xee, 0x95,0xd5,0x65,0x97,0xb5,0xf2,0x57,0xc8,0xe4,0x23,0xb6,0x0b,0x92,0xfe,0xd3,0x7f, 0xfa,0xdf,0x7e,0xfd,0x97,0x94,0x69,0x19,0x2e,0x95,0xa0,0x69,0xc9,0x3a,0x92,0xc8, 0xfe,0x59,0xb3,0x66,0x59,0xa7,0xf2,0x15,0xc4,0x88,0x92,0xe7,0x67,0x1e,0x56,0x6b, 0x91,0x0a,0x80,0xcf,0x0a,0x4f,0x73,0xdb,0xbb,0x84,0xbc,0x39,0x4f,0x40,0x88,0xc7, 0xc1,0xa5,0x6c,0x51,0x09,0xb0,0x0e,0x24,0x2b,0xd3,0xc9,0x85,0x2e,0xae,0x2c,0x69, 0x69,0x48,0x90,0x4b,0xb3,0xcd,0xdd,0x0c,0x00,0x50,0x34,0xe2,0xf6,0x8f,0x4b,0x7d, 0xe7,0x25,0xa4,0xeb,0xed,0x02,0x0f,0x89,0xd6,0xcf,0xe2,0xe1,0xf1,0x79,0x03,0x5c, 0x55,0x04,0x6d,0xde,0x88,0x32,0xd1,0xb9,0x15,0x2e,0x58,0xb1,0xf0,0xa5,0x55,0xeb, 0xbe,0x03,0x00,0x68,0x77,0xe4,0x99,0x28,0x56,0xbf,0xb8,0xfd,0xf3,0x7e,0x3e,0x16, 0xe5,0x05,0xb0,0x59,0xfa,0x36,0x41,0x1c,0x2a,0x7c,0xd3,0xf2,0xf7,0x4d,0x77,0xbe, 0xcb,0xd3,0xd0,0x4c,0x33,0x02,0x76,0x6d,0x95,0x8b,0x57,0x2e,0xdc,0xb9,0x73,0xe7, 0x86,0x6b,0x3e,0x6b,0xdc,0x65,0x65,0x4f,0xcf,0xa9,0x87,0xa6,0x4c,0xff,0xe9,0x3f, 0xfd,0x6f,0xef,0xfe,0x4b,0x90,0x9e,0x3c,0x43,0xb3,0x1a,0x52,0x65,0xea,0x47,0x11, 0xc7,0x25,0x2d,0xab,0xc0,0x17,0x27,0xd0,0x0c,0x1e,0xe6,0x96,0x51,0x00,0xc4,0x6d, 0xb5,0x64,0xc9,0x92,0x68,0x9c,0x2b,0xcb,0x0d,0xdc,0x8c,0x25,0x41,0xf3,0xd6,0xa0, 0xe9,0x3f,0xfd,0xa7,0xff,0xed,0xd9,0x7f,0x31,0x84,0x24,0xca,0x5f,0x4a,0xfc,0x36, 0x63,0xbf,0x43,0x85,0xb1,0xeb,0x77,0xe6,0x6f,0x5c,0x53,0x08,0xdb,0xbc,0x0e,0x21, 0xdb,0x27,0x06,0xa0,0x8e,0x48,0xe9,0x5a,0xf1,0x02,0x48,0x59,0xdd,0x90,0x1b,0x5f, 0x2e,0xfe,0x7a,0x45,0xa8,0x02,0x00,0x94,0x49,0xf1,0x11,0xa3,0x49,0x04,0x7f,0x35, 0x05,0x7e,0x5a,0xc9,0xfa,0xb7,0xd5,0x43,0xb0,0x05,0x17,0xc6,0xcb,0xa6,0x15,0x0f, 0xaa,0x46,0x19,0x41,0x01,0xc8,0x51,0x9b,0x95,0xc9,0x6b,0x16,0x2d,0x5a,0x14,0x45, 0xbb,0xfa,0x0e,0x7e,0x72,0x18,0x00,0x00,0xa0,0xd5,0x91,0x82,0x3e,0x12,0x34,0x2d, 0xad,0x9e,0x16,0x7f,0xa3,0x95,0x0c,0x5b,0x8d,0x7f,0x9b,0x05,0x6f,0xab,0xb5,0x60, 0x93,0x0f,0x69,0xf3,0x0d,0x84,0x28,0x19,0x28,0x00,0x05,0x6a,0xb6,0x12,0xc4,0x22, 0x6e,0x2d,0x19,0x0e,0x90,0x26,0x11,0xff,0x92,0x1d,0x60,0x0a,0xfb,0xd8,0x0b,0x10, 0xcf,0x2a,0x08,0x00,0xd0,0x2a,0xcf,0x41,0x79,0xb6,0xc9,0xd8,0xbe,0x34,0x19,0xdb, 0x17,0xe1,0xdf,0x08,0x41,0xec,0xaa,0xbd,0x5f,0x94,0x27,0xc0,0x36,0x8d,0xaf,0x19, 0x98,0x67,0xab,0x20,0x68,0xc6,0x84,0xf9,0x5c,0xff,0x3e,0x65,0x20,0x29,0xf8,0xa9, 0x04,0xd8,0x00,0x6f,0x80,0xb8,0xb8,0x42,0xa6,0xb1,0x15,0x25,0xa1,0x0c,0x4a,0x00, 0x9e,0x88,0xda,0x1e,0x32,0x00,0x50,0x3e,0xea,0x35,0x1d,0xb0,0xab,0x2c,0x70,0xd6, 0x62,0x40,0xa1,0xf3,0x04,0x84,0x56,0x5b,0x34,0x15,0x13,0x14,0x80,0x92,0x21,0x45, 0x2f,0x44,0x09,0x68,0x74,0x3c,0x00,0x42,0x0c,0x00,0x5a,0x8d,0x7a,0x64,0x16,0x98, 0xc5,0x79,0x6c,0xd6,0xbe,0xcf,0x6a,0xcf,0x3a,0x76,0x5f,0xcd,0x24,0x44,0xa5,0x33, 0x94,0xb9,0x3c,0xff,0x7f,0xd9,0x4b,0x04,0x30,0x00,0x40,0xbe,0xd6,0x7f,0xd1,0xc3, 0x0e,0x3e,0xe1,0x9b,0x56,0xd7,0x3f,0x8b,0xd7,0xd5,0x54,0x10,0x6c,0x15,0x03,0x43, 0x26,0x15,0x42,0x01,0x40,0x09,0x00,0x00,0x68,0x79,0x6a,0x99,0x45,0xb0,0x16,0x45, 0xc0,0x25,0x90,0x6d,0xe3,0xfa,0x59,0x64,0x84,0xcd,0x9d,0xef,0x2a,0x0b,0x6c,0x2b, 0x16,0x84,0x02,0x50,0x62,0x44,0x53,0x95,0xb4,0x98,0x7a,0x8d,0x59,0x01,0x00,0xb4, 0x2a,0x32,0xb4,0x5a,0x0f,0xeb,0xdf,0xfc,0x3b,0x4b,0x66,0x57,0xe8,0x30,0x40,0xda, 0xf8,0xbf,0xcd,0x33,0xd0,0x2c,0x85,0x81,0x50,0x00,0x2c,0x5a,0x9e,0x5c,0xb8,0xf5, 0xd4,0x5c,0x01,0x00,0x5a,0x4d,0xf8,0xd7,0xab,0xaa,0xa0,0xcd,0xc2,0x4e,0xab,0xcb, 0xef,0x5b,0x57,0x9a,0x65,0x6f,0xf3,0x2a,0xd8,0x26,0x9e,0x72,0x15,0x19,0x42,0x01, 0x68,0x12,0x25,0x40,0x14,0x00,0xbc,0x01,0x00,0x00,0xd9,0x9e,0x9d,0x32,0x94,0x5a, 0x6f,0xe1,0x9f,0x66,0xb1,0xbb,0x04,0x6f,0xda,0xef,0x92,0x56,0x7c,0x5a,0x6d,0x00, 0xdb,0xf6,0x6d,0xe9,0xe6,0x65,0xf5,0x00,0x90,0x05,0x90,0xa6,0x1d,0x69,0xf7,0x95, 0x5c,0xcc,0x92,0x1d,0xb0,0x62,0xc5,0x0a,0xea,0x05,0x00,0x00,0xb8,0x84,0xc9,0x9a, 0x5a,0x03,0x8d,0x98,0xf5,0xcf,0x97,0x8b,0xef,0xb3,0xf6,0x6d,0xcb,0xb9,0xac,0xfc, 0xb4,0x14,0x42,0xdb,0xbe,0x50,0x0a,0xb8,0x45,0x14,0x01,0x39,0x91,0xa2,0x04,0x88, 0x42,0x20,0x8d,0x2a,0x82,0x00,0xd0,0xce,0xcf,0xc5,0x78,0x22,0x21,0x69,0x8d,0x74, 0x71,0xbb,0xc6,0xdc,0x5d,0xe5,0x7c,0x6d,0x41,0x82,0xae,0xcf,0x42,0xc6,0xf4,0x5d, 0x5e,0x84,0xb2,0x07,0x95,0xa3,0x00,0x64,0x40,0x4e,0x66,0xb3,0xce,0x96,0x05,0x00, 0xd0,0x6e,0xcf,0x6b,0xd3,0xd2,0xaf,0x36,0x38,0x30,0x4d,0x11,0xf0,0x6d,0xbf,0xd4, 0x4a,0x1c,0x97,0x09,0x00,0x00,0x34,0x2b,0xbe,0x68,0x7d,0xd3,0x22,0xf7,0x59,0xfa, 0x66,0x2a,0x9f,0xb9,0xde,0x34,0xc1,0xee,0xdb,0x3e,0x1e,0x00,0x00,0x00,0x80,0x9c, 0x2d,0x7d,0x9b,0x20,0x0e,0x89,0xea,0x77,0x09,0xe7,0xac,0x31,0x05,0xa1,0xdb,0xc7, 0x03,0x00,0x00,0x00,0x90,0x93,0xf5,0x9f,0x56,0x74,0x27,0x99,0x9b,0x6f,0x2b,0x0c, 0x14,0xa2,0x0c,0xa4,0x6d,0x37,0xf9,0x99,0x6b,0xd8,0xa1,0xac,0xf1,0x62,0x28,0x00, 0x00,0x00,0xd0,0xb4,0xd6,0xbf,0xe9,0xda,0x37,0xdd,0xfa,0xb6,0xea,0x80,0xd5,0x5a, 0xff,0xae,0xed,0xdb,0x84,0xbe,0x6b,0xfb,0x28,0x00,0x00,0x00,0x00,0x39,0x78,0x00, 0xd2,0xea,0xfb,0x57,0x33,0x8e,0x6f,0xfb,0xde,0x5c,0x87,0x2d,0x8e,0x20,0xcb,0xf6, 0x51,0x00,0x00,0x00,0x00,0x72,0xf2,0x04,0x24,0x05,0x72,0xfc,0xde,0x25,0xf4,0x43, 0xac,0x7e,0xb3,0x18,0x90,0x29,0xd0,0x6b,0xd9,0x3e,0x0a,0x00,0x00,0x00,0x40,0x0e, 0x5e,0x80,0x90,0x29,0x78,0x7d,0xae,0x7f,0xf3,0x37,0xf1,0xb0,0x82,0x2d,0x93,0xc0, 0x8c,0x27,0xa8,0x66,0xfb,0x28,0x00,0x00,0x00,0x00,0x35,0x5a,0xfe,0xa6,0x80,0x0d, 0x11,0xb6,0xb6,0x40,0x3d,0xdb,0xfb,0xa4,0x22,0x10,0x2a,0xe0,0x6b,0x99,0x75,0x10, 0x05,0x00,0x00,0x00,0x20,0xc0,0xfa,0xaf,0x66,0xd9,0x34,0x21,0x6f,0xa6,0xee,0xa5, 0xd5,0xf5,0x0f,0x4d,0xf7,0x23,0x0b,0x00,0x00,0x00,0xa0,0x81,0xde,0x82,0xa4,0xc0, 0xb6,0x05,0xfa,0x99,0x63,0xfd,0xb6,0xb4,0x41,0x9b,0x65,0x1f,0xe2,0x7d,0x20,0x06, 0x00,0x00,0x00,0xa0,0x20,0x0f,0x80,0xaf,0x3e,0xbf,0xf9,0xb7,0x2b,0xf0,0xaf,0xda, 0x92,0xc1,0xcd,0x32,0x09,0x10,0x0a,0x00,0x00,0x00,0x34,0xbd,0x55,0x9f,0x14,0xb6, 0x21,0x95,0xff,0x5c,0xb3,0xfa,0xb9,0xdc,0xf8,0xd5,0xd6,0xff,0x2f,0xf3,0x34,0xc0, 0x28,0x00,0x00,0x00,0xd0,0x12,0x5e,0x00,0xdb,0xd8,0xbc,0x6b,0x7a,0x5e,0xd7,0xd4, 0xbd,0x2e,0xeb,0xdd,0xe5,0xba,0x4f,0xfb,0x5d,0xda,0xf6,0xcb,0x04,0x73,0x01,0x00, 0x00,0x40,0x4b,0x28,0x02,0xa6,0x35,0x6e,0xb3,0xf2,0x6d,0x82,0x39,0x4d,0x48,0x87, 0x8e,0xe9,0xa7,0x05,0x0b,0x96,0x55,0x09,0xc0,0x03,0x00,0x00,0x00,0x4d,0x6d,0xfd, 0xdb,0x22,0xf9,0x6d,0x9e,0x01,0x97,0xc0,0x4e,0xfb,0xde,0x37,0xce,0x6f,0xdb,0xbe, 0xcb,0x33,0x81,0x02,0x00,0x00,0x00,0x50,0xa0,0x17,0x20,0x24,0x5a,0xdf,0x87,0x6b, 0x62,0x9f,0x6a,0xbd,0x11,0x28,0x00,0x00,0x00,0x00,0x05,0x79,0x01,0x5c,0x02,0x3b, 0x4d,0x70,0xfb,0xb2,0x05,0x5c,0xf5,0x02,0x4c,0xeb,0xdf,0xac,0x08,0x58,0xf6,0x79, 0x00,0x50,0x00,0x00,0x00,0xa0,0x69,0xc9,0xc3,0xc5,0x9e,0x56,0xb8,0xc7,0x9c,0x65, 0x30,0xa9,0x08,0xa4,0x59,0xfc,0x65,0x16,0xfa,0x28,0x00,0x00,0x00,0xd0,0x32,0xd6, 0x7f,0x88,0xe0,0x75,0x45,0xeb,0x9b,0x02,0xdf,0x96,0x36,0x98,0x6c,0xbe,0xb2,0xc0, 0xcd,0x20,0xf8,0x51,0x00,0x00,0x00,0xa0,0x25,0x94,0x80,0x90,0xcf,0x6c,0x96,0xbe, 0x19,0xc0,0x97,0xfc,0xcc,0x14,0xf0,0x2e,0x6f,0x43,0xd9,0x67,0xfc,0x4b,0x83,0x34, 0x40,0x00,0x00,0x68,0x29,0x5c,0x65,0x7e,0xb3,0xa4,0x00,0xba,0xea,0xfe,0xa7,0xfd, 0x26,0xcd,0xfb,0x40,0x29,0x60,0x00,0x00,0x80,0x82,0x3c,0x01,0xae,0x09,0x7f,0x6c, 0x11,0xfd,0xbe,0xf7,0x69,0x25,0x81,0x43,0x84,0xbf,0x6d,0xfb,0x78,0x00,0x00,0x00, 0x00,0x72,0x14,0xfc,0xb6,0xc9,0x7d,0x5c,0xc5,0x78,0x7c,0x9e,0x00,0x73,0x19,0xdf, 0x76,0x5d,0x5e,0x87,0xb4,0x32,0xc5,0x78,0x00,0x00,0x00,0x00,0x6a,0x24,0x29,0xb8, 0x4d,0xcb,0xdb,0x57,0xa0,0xc7,0x65,0xc1,0x87,0x04,0xf2,0xb9,0xea,0x03,0xf8,0xb6, 0x8f,0x02,0x00,0x00,0x00,0x90,0xb3,0x07,0xc0,0xac,0xbe,0x67,0x9b,0x07,0x20,0x29, 0xb0,0xb3,0x08,0x65,0x9f,0x90,0x77,0x79,0x05,0x98,0x0c,0x08,0x00,0x00,0xa0,0x0e, 0x8a,0x40,0x9a,0xa0,0xaf,0xa5,0x42,0x9f,0xab,0xd8,0x90,0x4d,0xf8,0xdb,0xbc,0x12, 0x0c,0x01,0x00,0x00,0x00,0xe4,0x28,0xf4,0xcd,0xbf,0xcd,0xe0,0xbd,0x34,0xc1,0xbb, 0x7a,0xf5,0xea,0x54,0x2b,0x3f,0x6d,0x3b,0xa6,0x90,0xf7,0x6d,0x9f,0x21,0x00,0x00, 0x00,0x80,0x1c,0xb1,0x15,0xef,0x09,0xad,0xdf,0xef,0x0a,0xdc,0x73,0x59,0xf6,0xa6, 0xf0,0xcf,0xb2,0x7d,0x3c,0x00,0x00,0x00,0x00,0x39,0x0b,0x7f,0x9f,0xc5,0x9e,0xe6, 0x3d,0x70,0x55,0x08,0x74,0xd5,0x09,0x70,0x65,0x11,0xb8,0xb6,0x8f,0x07,0x00,0x00, 0x00,0x20,0x67,0xf2,0x9c,0x03,0xc0,0x16,0x1f,0xe0,0x9a,0xf4,0xc7,0xa6,0x08,0x84, 0xae,0x17,0x05,0x00,0x00,0x00,0xa0,0x0e,0xca,0x81,0xab,0x74,0xaf,0x4d,0xb8,0x9b, 0x82,0x3e,0xcd,0x7a,0xf7,0xc5,0x0b,0x94,0x7d,0x26,0x40,0x14,0x00,0x00,0x00,0x68, 0x49,0x6c,0xd5,0xff,0x42,0x83,0x03,0x5d,0xd9,0x02,0x59,0x84,0xb9,0x6d,0xfb,0x65, 0x83,0x4a,0x80,0x00,0x00,0xd0,0xd4,0x96,0x7e,0x5a,0xc0,0x5e,0x9a,0x20,0xb7,0xb9, 0xf6,0x93,0xcb,0x66,0xb5,0xe2,0x5d,0xdb,0x2f,0x6b,0x3d,0x00,0x14,0x00,0x00,0x00, 0x68,0x7a,0x4b,0xdf,0x66,0xc1,0xbb,0xa6,0xf7,0x35,0x05,0xb2,0x2d,0xc8,0xaf,0x16, 0x81,0x1d,0x12,0x1b,0x50,0x06,0x18,0x02,0x00,0x00,0x80,0xa6,0xb5,0xfe,0xe3,0xd7, 0xb4,0xa2,0x3b,0xc9,0xfc,0x7c,0x5f,0x59,0xe0,0x6a,0x32,0x08,0x6c,0xf1,0x04,0xb6, 0x6d,0xa3,0x00,0x00,0x00,0x00,0xe4,0x64,0xfd,0x27,0x03,0xf8,0xd2,0xea,0xfe,0xbb, 0xc6,0xf1,0xb3,0x4c,0xeb,0xeb,0xdb,0xbe,0xf9,0x99,0x6d,0xfb,0x65,0x82,0x21,0x00, 0x00,0x00,0x68,0x5a,0x0f,0x80,0x2f,0x35,0xcf,0x36,0x8e,0xef,0x1b,0x93,0xf7,0x8d, 0xe3,0xbb,0xe6,0x1b,0x48,0xab,0x19,0x80,0x07,0x00,0x00,0x00,0xa0,0x00,0x4f,0x80, 0x69,0xf1,0xa7,0xb9,0xdd,0x5d,0x56,0xbf,0xad,0xac,0xaf,0x69,0xdd,0x57,0xbb,0x7d, 0x3c,0x00,0x00,0x00,0x00,0x39,0x7b,0x01,0x92,0xd6,0x76,0xb5,0x11,0xfb,0xae,0xb2, 0xc0,0xbe,0x8c,0x01,0xdb,0xf6,0x6d,0x1e,0x06,0x3c,0x00,0x00,0x00,0x00,0x39,0x5b, 0xfe,0x69,0x56,0x7d,0xe8,0x6f,0x5d,0x01,0x85,0x49,0xe1,0x6e,0x2a,0x0e,0xae,0xed, 0x97,0xb9,0xf8,0x0f,0x0a,0x00,0x00,0x00,0xb4,0x8c,0xf5,0x9f,0x26,0xe4,0x5d,0xb5, 0xfa,0x4d,0x81,0xee,0x9b,0xd4,0xc7,0xe6,0x15,0xc8,0x32,0xd1,0x0f,0x1e,0x00,0x00, 0x00,0x80,0x06,0x78,0x09,0x5c,0xb5,0xfb,0x93,0x02,0xda,0x5c,0x36,0xb4,0xac,0x6f, 0x88,0x70,0xa7,0x0e,0x00,0x00,0x00,0x40,0x41,0x1e,0x00,0x5f,0x7d,0x7e,0x53,0xd8, 0xdb,0x3e,0xcf,0x12,0xbc,0x57,0xed,0xf6,0x51,0x00,0x00,0x00,0x00,0x72,0xb0,0xee, 0xd3,0x2a,0xef,0xf9,0x2a,0x01,0xfa,0x5c,0xff,0xa1,0x71,0x04,0xa1,0xdb,0x47,0x01, 0x00,0x00,0x00,0xc8,0xc9,0x0b,0x60,0x1b,0x9b,0x0f,0xc9,0xcd,0x4f,0x8b,0x11,0xf0, 0x79,0x00,0xd2,0x7e,0x97,0xb6,0xfd,0x32,0x41,0x1a,0x20,0x00,0x00,0xb4,0x84,0x22, 0x60,0x5a,0xe3,0x69,0x82,0x3e,0xad,0x80,0x4f,0xda,0x7a,0x5d,0x8a,0x81,0x4d,0x69, 0x28,0xbb,0x12,0x80,0x07,0x00,0x00,0x00,0x9a,0xda,0xfa,0xb7,0x45,0xf2,0xdb,0x3c, 0x03,0x59,0xd2,0xf6,0x5c,0x81,0x7f,0xe6,0xef,0x6c,0xdb,0x77,0x79,0x26,0x50,0x00, 0x00,0x00,0x00,0x0a,0xf4,0x02,0xf8,0xa6,0x01,0x0e,0xc1,0x97,0xeb,0x5f,0xcd,0xf6, 0xcb,0x06,0x43,0x00,0x00,0x00,0xd0,0x12,0x5e,0x80,0x50,0x81,0x6c,0xfb,0xbd,0xf9, 0x3e,0x44,0x91,0xb0,0x55,0x07,0xb4,0x7d,0x46,0x0c,0x00,0x00,0x00,0x40,0x8e,0xd8, 0xca,0xff,0x66,0x1d,0x6f,0x77,0xd5,0x04,0x48,0xfb,0xce,0x55,0x0e,0xd8,0xb6,0x8e, 0x32,0xc3,0x10,0x00,0x00,0x00,0x34,0xb5,0xf5,0x1f,0x22,0x78,0x5d,0xd1,0xfa,0xf1, 0xab,0x2d,0x76,0x20,0xf9,0x9d,0xad,0xce,0x7f,0xb5,0xdb,0x47,0x01,0x00,0x00,0x00, 0xc8,0x41,0x09,0x08,0xf9,0xcc,0x66,0xcd,0x9b,0x01,0x7c,0xa6,0x07,0xc1,0x56,0xf7, 0x3f,0x2d,0x28,0x30,0x6d,0xac,0x9f,0xd9,0x00,0x01,0x00,0x00,0x0a,0xc6,0x66,0x95, 0xbb,0xd2,0xfe,0x5c,0x43,0x06,0xae,0xba,0xff,0x59,0x95,0x11,0x97,0xa7,0x00,0x05, 0x20,0xc1,0xca,0x95,0x2b,0xb9,0x6a,0x01,0x00,0x20,0x98,0xb9,0x73,0xe7,0x46,0xaf, 0x83,0x06,0x0d,0x4a,0x2d,0xfc,0x63,0x5a,0xfc,0x21,0xef,0xb3,0xba,0xec,0x5d,0x01, 0x84,0x49,0xef,0x02,0x0a,0x00,0x00,0x00,0x40,0x81,0x56,0x7f,0x5a,0xbe,0xbf,0x2b, 0x80,0x2f,0x29,0xf8,0x43,0x02,0x09,0x6d,0x35,0x00,0xd2,0x3c,0x08,0x4c,0x06,0x04, 0x00,0x00,0x90,0x33,0xe6,0xcc,0x7d,0x69,0x55,0xff,0x6c,0xe3,0xfa,0x36,0x45,0x21, 0x54,0xe1,0xb0,0x29,0x14,0xae,0xa9,0x86,0x51,0x00,0x00,0x00,0x00,0x72,0xb6,0xfe, 0x6d,0xd5,0xff,0x7c,0x56,0x79,0x16,0xa1,0xec,0x13,0xf2,0xb6,0x6d,0x96,0x79,0x1e, 0x00,0xa1,0x34,0x43,0x00,0x5d,0xbb,0x32,0x1a,0x01,0x00,0x00,0xe1,0xf4,0xeb,0xd7, 0x6f,0x1d,0x41,0x9c,0x7c,0xb5,0xa5,0xfb,0xd5,0xa2,0x64,0xa4,0x59,0xf4,0xb6,0xed, 0x9b,0xdf,0xe1,0x01,0x00,0x00,0x00,0xc8,0x01,0x57,0x4a,0x5e,0x68,0x6a,0x9e,0xaf, 0xce,0x7f,0xda,0x72,0x2e,0x25,0xc0,0xb5,0x7d,0x86,0x00,0x00,0x00,0x00,0x72,0xc4, 0x56,0xbc,0x27,0xb4,0x7e,0x7f,0x5a,0xa0,0x9e,0x19,0x14,0xe8,0x12,0xfe,0xa1,0xdb, 0x27,0x0d,0x10,0x00,0x00,0xa0,0x00,0x2f,0x40,0x48,0x10,0x9f,0x4f,0x78,0xdb,0xbe, 0xb7,0x59,0xf4,0x69,0xd3,0x0c,0xbb,0xb6,0x5f,0x46,0x0f,0x00,0x0a,0x00,0x00,0x00, 0xb4,0x8d,0xb7,0xc0,0x65,0x8d,0xdb,0x26,0xfe,0x09,0x99,0xf4,0xa7,0x99,0x61,0x08, 0x00,0x00,0x00,0x9a,0xda,0xfa,0xf7,0x79,0x06,0x5c,0xf3,0x00,0xd8,0x72,0xf9,0xf3, 0x9a,0xec,0xa7,0xec,0x33,0x01,0xa2,0x00,0x00,0x00,0x40,0xd3,0x5b,0xf4,0x3e,0x6b, 0xdf,0xe5,0xca,0xf7,0x09,0x6f,0xdf,0x3c,0x00,0xd5,0x7a,0x1b,0xca,0x02,0x43,0x00, 0x00,0x00,0xd0,0xd4,0x5e,0x00,0x57,0x1e,0xbe,0xcd,0xad,0x6f,0x0a,0xf8,0xb4,0xca, 0x7f,0x69,0x56,0xbc,0x6b,0x26,0xc0,0xd0,0x00,0x44,0x14,0x00,0x00,0x00,0x80,0x9c, 0xbd,0x00,0x69,0x11,0xfa,0x79,0x05,0xe8,0x85,0x7a,0x10,0xca,0x5a,0x03,0x40,0x60, 0x08,0x00,0x00,0x00,0x9a,0xd6,0xfa,0x8f,0x5f,0x6d,0x95,0xf9,0x92,0xcb,0xa5,0xa5, 0xf4,0xd5,0xb2,0xdd,0xe4,0xfa,0x5d,0x02,0xbf,0x9a,0xc9,0x85,0x50,0x00,0x00,0x00, 0x00,0x52,0xac,0x70,0x73,0xd6,0x3d,0x5f,0xdd,0xff,0xb4,0xe2,0x3f,0x59,0x3d,0x02, 0xb6,0xc9,0x80,0x42,0xe6,0x1d,0x28,0x0b,0x0c,0x01,0x00,0x00,0x40,0xd3,0x7a,0x00, 0x5c,0xd3,0xf7,0xd6,0x52,0xf7,0xdf,0x55,0xc8,0x27,0xeb,0xfb,0x6a,0xb7,0x8f,0x07, 0x00,0x00,0x00,0x20,0xa3,0xc0,0x4e,0x0a,0xee,0xac,0x93,0xfd,0xd8,0x26,0xfc,0x31, 0xad,0x7b,0xdb,0x36,0x6d,0x41,0x88,0x65,0x75,0xfb,0xe3,0x01,0x00,0x00,0x80,0x96, 0xf1,0x02,0x98,0xd6,0x77,0x16,0xef,0x81,0x4b,0x89,0x08,0xcd,0x18,0x30,0xbf,0x6f, 0xa6,0xe2,0x40,0x78,0x00,0x00,0x00,0xa0,0x65,0x14,0x01,0xdf,0x67,0x36,0x81,0x6f, 0x06,0x11,0x9a,0x6e,0xfb,0x90,0x71,0xfd,0x66,0xac,0x0a,0x88,0x02,0x00,0x00,0x00, 0x2d,0x49,0x5a,0xad,0x7e,0x53,0xa0,0xbb,0xe6,0x05,0x48,0xf3,0x0a,0x64,0xf5,0x38, 0xa0,0x00,0x00,0x00,0x00,0xd4,0x51,0x09,0x30,0x95,0x01,0x57,0x9a,0x9e,0x2b,0x63, 0xa0,0xd6,0x40,0xbe,0xb2,0xd6,0x02,0x40,0x01,0x00,0x00,0x80,0xa6,0xc4,0x96,0xd2, 0x17,0x32,0x3b,0x5f,0xda,0xac,0x7f,0x59,0xc6,0xf1,0xd3,0x52,0x0a,0xcd,0x7d,0x59, 0xbd,0x7a,0x35,0x0a,0x00,0x00,0x00,0x40,0x9e,0xd6,0xbd,0x59,0x0b,0x20,0x69,0xf1, 0xbb,0x8a,0xff,0xa4,0x55,0xeb,0x0b,0xb5,0xd6,0x7d,0xb3,0x0a,0x96,0x55,0xf0,0xc7, 0x90,0x05,0x00,0x00,0x00,0x4d,0xed,0x05,0x30,0xc7,0xed,0x5d,0xb9,0xf8,0x49,0x81, 0x6f,0xbe,0xf7,0xcd,0xfe,0xe7,0xda,0xae,0xf9,0x3b,0xf9,0x4c,0x84,0x7e,0x72,0xbf, 0xe4,0x6f,0x0a,0x01,0x01,0x00,0x00,0x14,0xa4,0x08,0x98,0xd6,0x79,0x9a,0xa0,0x77, 0x7d,0x1f,0xba,0x1d,0xd3,0xc3,0x60,0x1b,0x3a,0xc8,0xaa,0x54,0xd4,0x1b,0x86,0x00, 0x00,0x00,0xa0,0xa9,0xad,0x7f,0x57,0xae,0xbe,0x6d,0x88,0x20,0x54,0x38,0x9b,0x69, 0x81,0xa6,0x02,0x21,0x56,0x7d,0xec,0xde,0x4f,0xfe,0x3e,0xb6,0xfe,0xe3,0xd7,0xac, 0x71,0x05,0x78,0x00,0x00,0x00,0x00,0x32,0xe0,0x72,0xe7,0xa7,0x79,0x09,0x42,0xbd, 0x09,0xa6,0x70,0x37,0x97,0x35,0x15,0x11,0x9b,0x72,0x81,0x02,0x00,0x00,0x00,0x50, 0xa0,0x17,0x20,0x54,0xe0,0x9b,0x9e,0x02,0x9b,0x17,0x21,0x19,0xc0,0xe7,0x2b,0xf3, 0x6b,0xfb,0xcc,0xfc,0x3d,0x0a,0x00,0x00,0x00,0x40,0x8e,0x56,0x7f,0x35,0xc2,0xd5, 0x36,0x1c,0x60,0x9b,0xde,0xd7,0xf6,0xb9,0x4b,0xc9,0x30,0xe3,0x01,0x5c,0xd3,0x03, 0xa3,0x00,0x00,0x00,0x00,0xd4,0x68,0xfd,0x67,0xf5,0x10,0xd8,0xca,0xfa,0x26,0x05, 0xb6,0x39,0xae,0x9f,0x65,0xfa,0x60,0xd7,0x70,0x40,0x59,0x63,0x00,0x08,0x02,0x04, 0x00,0x80,0x96,0x55,0x0c,0x4c,0x37,0xbf,0x29,0x8c,0x6d,0x6e,0xfa,0xb4,0x57,0x73, 0x1d,0xb6,0xb8,0x00,0x5b,0x70,0x20,0x1e,0x00,0x00,0x00,0x80,0x3a,0x92,0x14,0xc6, 0xa6,0x85,0x1e,0xe7,0xe7,0xbb,0x2c,0x74,0xd7,0x04,0x41,0xb6,0xdf,0xd8,0x0a,0xfe, 0x94,0x3d,0x0d,0x10,0x05,0x00,0x00,0x00,0x5a,0xc6,0xea,0x4f,0x13,0xe8,0x66,0x60, 0x9f,0xcd,0xca,0x77,0x09,0x6f,0x5b,0x51,0xa1,0xd0,0x54,0x42,0x3c,0x00,0x00,0x00, 0x00,0x05,0x08,0xfd,0x50,0x21,0xec,0x9b,0xdc,0xc7,0x55,0x4f,0x20,0x2d,0x66,0xc0, 0x37,0xe7,0x00,0x0a,0x00,0x00,0x00,0x40,0x81,0x4a,0x80,0x2b,0x75,0xcf,0xb6,0x7c, 0x68,0xce,0x7e,0xb2,0x84,0xaf,0x6b,0x38,0xc0,0xa5,0x00,0x54,0x5b,0x69,0x10,0x05, 0x00,0x00,0x00,0x20,0x40,0xf8,0xbb,0xd2,0xf5,0xd2,0x84,0x72,0x9a,0x7b,0xdf,0x14, 0xd6,0xc9,0x18,0x02,0xd7,0x30,0x40,0x9a,0x27,0x20,0xa9,0x4c,0xa0,0x00,0x00,0x00, 0x00,0xe4,0x6c,0xfd,0x87,0x4c,0xff,0xeb,0xf2,0x0e,0xd8,0x4a,0xfd,0xfa,0xaa,0xf9, 0xd9,0x3c,0x09,0xc9,0xbf,0xcb,0x5e,0x04,0x08,0x05,0x00,0x00,0x00,0x9a,0x16,0x9b, 0x8b,0x3e,0x8b,0xd5,0x6f,0xce,0xd2,0x17,0x32,0x9e,0x9f,0xfc,0x9d,0x99,0x02,0x98, 0x26,0xf4,0x19,0x02,0x00,0x00,0x00,0x28,0xc0,0x0b,0xe0,0x12,0xba,0x3e,0xd7,0xbc, 0xed,0x33,0x9b,0x52,0xe1,0xf2,0x14,0x84,0x2a,0x22,0x9f,0xf9,0xcc,0x67,0x50,0x00, 0x00,0x00,0x00,0x8a,0x52,0x00,0x92,0xae,0xfe,0x58,0x28,0x27,0xf3,0xfd,0x43,0x14, 0x88,0xb4,0xd8,0x02,0x73,0xfd,0xbe,0xcc,0x02,0xe1,0xd8,0x63,0x8f,0x55,0xbb,0xec, 0xb2,0x4b,0xe9,0x8e,0x1d,0x95,0x00,0x01,0x00,0xa0,0x69,0x85,0xbf,0x59,0x91,0xcf, 0x35,0x69,0x8f,0x2f,0x8a,0xdf,0x35,0xe5,0x6f,0x48,0x6c,0x80,0x6b,0x5d,0xf2,0xfb, 0xa3,0x8f,0x3e,0x5a,0x7d,0xf4,0xa3,0x1f,0x2d,0xe5,0x7c,0x00,0x78,0x00,0x00,0x00, 0xa0,0x29,0xb1,0x59,0xf6,0xc9,0xf1,0x79,0xd3,0x82,0x77,0x59,0xec,0x49,0xa5,0xc1, 0x5c,0xa7,0xf9,0x77,0x9a,0x17,0x21,0xb9,0x5d,0xf9,0xec,0xa8,0xa3,0x8e,0x52,0xdb, 0x6c,0xb3,0x4d,0xc7,0x72,0xf2,0x79,0xdc,0x92,0xc4,0x7f,0xd7,0x5b,0x49,0x40,0x01, 0x00,0x00,0x80,0x96,0xf0,0x02,0xb8,0x2c,0xf3,0xe4,0x72,0x69,0x69,0x83,0xbe,0x39, 0x00,0x6c,0xdb,0x76,0xcd,0x35,0xb0,0xf7,0xde,0x7b,0xab,0x2d,0xb7,0xdc,0x32,0x55, 0xe8,0xa7,0x29,0x03,0x28,0x00,0x00,0x00,0x00,0x29,0xc2,0xdf,0xf6,0x3e,0xe9,0x0d, 0x30,0xbf,0xb3,0xcd,0xfe,0x67,0xce,0x0d,0x90,0xb6,0x7e,0x33,0x06,0x20,0x7e,0x9f, 0xcc,0x00,0x18,0x31,0x62,0x84,0xda,0x75,0xd7,0x5d,0xd7,0x12,0xf2,0x66,0x33,0x49, 0x7e,0x56,0x2f,0x25,0x00,0x05,0x00,0x00,0x00,0x5a,0x46,0x09,0x48,0x2b,0xd5,0x6b, 0x0a,0xea,0x90,0x71,0x7d,0x53,0x20,0x27,0x87,0x18,0x5c,0xeb,0x91,0x71,0xff,0xce, 0x9d,0x3b,0xa7,0x2a,0x00,0x3e,0x85,0xa0,0x1e,0x10,0x04,0x08,0x00,0x00,0x4d,0x89, 0x6d,0xa6,0x3f,0xdb,0x67,0xf1,0xe7,0xb6,0x80,0x41,0x73,0x7a,0x5f,0xdb,0xdf,0xb2, 0x7c,0xdc,0x92,0xdb,0x35,0xd7,0x33,0x7f,0xfe,0x7c,0x75,0xf2,0xc9,0x27,0xab,0xae, 0x5d,0xbb,0x5a,0x85,0xbc,0x4d,0x29,0x68,0x24,0x0d,0x57,0x00,0xe4,0x40,0x01,0x00, 0x00,0x54,0x23,0xfc,0xcd,0x62,0x3c,0xa6,0x62,0x60,0xbe,0xda,0x04,0xbd,0x2b,0x86, 0xc0,0x35,0xee,0x6f,0xcb,0x3e,0x98,0x33,0x67,0x8e,0xfa,0xc2,0x17,0xbe,0xa0,0xfa, 0xf4,0xe9,0xd3,0x21,0xec,0xcd,0xe6,0x52,0x02,0x1a,0xa5,0x10,0x34,0x5c,0x01,0xe8, 0xdb,0xb7,0x2f,0x57,0x32,0x00,0x00,0x64,0x56,0x00,0x92,0x6e,0xf8,0xa4,0x35,0xee, 0xb2,0xe4,0xd3,0xd2,0xfe,0xe2,0xdf,0xbb,0xbc,0x0a,0xa6,0x17,0x21,0xf9,0xfb,0xd9, 0xb3,0x67,0x47,0x85,0x7e,0x86,0x0f,0x1f,0x1e,0x09,0xf8,0x2e,0x5d,0xba,0x74,0xbc, 0xc6,0xcd,0x54,0x02,0x4c,0x45,0x20,0xa6,0x9e,0x19,0x01,0x0d,0x57,0x00,0x7a,0xf5, 0xea,0xc5,0x95,0x0c,0x00,0x00,0x99,0x58,0xb5,0x6a,0x95,0xd5,0x92,0x77,0xb5,0xa4, 0x05,0x6f,0x0a,0x79,0xdb,0xe7,0xb1,0x82,0xe1,0xab,0x06,0x28,0x96,0xbf,0x14,0xfa, 0xd9,0x78,0xe3,0x8d,0xd7,0x11,0xfe,0x49,0xeb,0xdf,0x54,0x06,0x4c,0xe1,0xdf,0x96, 0x1e,0x80,0x81,0x03,0x07,0x72,0x25,0x03,0x00,0x40,0x4d,0x0a,0x40,0x88,0x32,0x60, 0x0a,0x78,0xf3,0xf7,0x69,0x7f,0xdb,0x94,0x85,0x79,0xf3,0xe6,0xa9,0xcf,0x7f,0xfe, 0xf3,0x6a,0xec,0xd8,0xb1,0xeb,0x08,0x79,0x69,0x32,0xc4,0x2d,0xcd,0xf4,0x02,0x98, 0xc3,0x02,0x8d,0x8a,0x07,0x68,0xb8,0x02,0xb0,0xe1,0x86,0x1b,0x72,0x25,0x03,0x00, 0x40,0x26,0x42,0x2c,0xfe,0xb4,0x21,0x80,0xf8,0x33,0xc1,0x15,0x14,0x98,0xf6,0xfb, 0xa5,0x4b,0x97,0xaa,0x2f,0x7d,0xe9,0x4b,0x6b,0xb9,0xfd,0x5d,0x82,0x3f,0xf9,0xde, 0x36,0x1c,0x60,0xba,0xfd,0xdb,0x26,0x0d,0x70,0x83,0x0d,0x36,0xe0,0x4a,0x06,0x00, 0x80,0x4c,0xd6,0x7f,0xf7,0xee,0xdd,0xd7,0x49,0xf7,0x33,0x0b,0xf3,0x98,0x42,0xde, 0x95,0xef,0x9f,0x5c,0xce,0xf5,0x3e,0xb9,0x1e,0x09,0xf4,0x93,0x80,0xbf,0x1e,0x3d, 0x7a,0x58,0x05,0xbf,0xad,0xb9,0xbc,0x00,0xb6,0xa1,0x80,0x7a,0xd1,0x70,0x05,0x60, 0xe8,0xd0,0xa1,0x5c,0xcd,0x00,0x00,0x10,0x2c,0xfc,0x63,0x8b,0x3d,0x6d,0x32,0x9e, 0x90,0x7c,0x7f,0x73,0xaa,0x60,0x57,0xc9,0xdf,0xe4,0x3a,0xb7,0xda,0x6a,0x2b,0xb5, 0xe7,0x9e,0x7b,0xae,0x35,0xd6,0xef,0x12,0xfa,0xdd,0xba,0x75,0xf3,0x2a,0x02,0x8d, 0xcc,0x02,0x28,0x85,0x07,0x40,0x0e,0x46,0x3c,0x9e,0x03,0x00,0x00,0x90,0x26,0xfc, 0x93,0xc5,0x78,0x42,0xa6,0xe5,0xf5,0x59,0xf5,0xf1,0x7b,0x9b,0x17,0x21,0xb9,0xcc, 0xc1,0x07,0x1f,0xac,0x46,0x8f,0x1e,0x6d,0xb5,0xf8,0x45,0xd8,0xbb,0x9a,0x29,0xfc, 0x93,0x81,0x80,0x49,0x45,0xa0,0xde,0xd4,0x25,0x06,0xc0,0xd5,0x31,0xf9,0x5c,0x0e, 0x8e,0xd4,0x4b,0x06,0x00,0x00,0x48,0x13,0xfe,0x2b,0x57,0xae,0xb4,0x96,0xf7,0x75, 0xa5,0xe7,0xb9,0xc6,0xf1,0x4d,0xcb,0xdf,0x57,0x37,0x40,0xda,0xa7,0x3f,0xfd,0xe9, 0xb5,0x84,0x7f,0x52,0x01,0x48,0x0a,0x7b,0x19,0x9a,0x88,0x9b,0x4d,0x09,0x90,0x96, 0xcc,0x12,0x68,0x64,0x26,0x40,0xa1,0x0a,0x80,0xab,0xde,0xb1,0xd9,0xc9,0xad,0xb7, 0xde,0x9a,0xab,0x1b,0x00,0x00,0xac,0x88,0xe0,0x97,0x96,0x14,0xd8,0xb6,0xbc,0x7f, 0x9b,0xd0,0xb7,0x7d,0x66,0x56,0x05,0x34,0x97,0x31,0x97,0x17,0xe1,0xbf,0xfe,0xfa, 0xeb,0x7b,0x85,0xbf,0xcf,0x03,0xe0,0x1b,0x02,0xf0,0x19,0xcd,0x79,0x53,0xc8,0x10, 0x40,0xda,0xcc,0x47,0xb6,0x65,0x37,0xdb,0x6c,0x33,0xae,0x70,0x00,0x00,0x70,0x0a, 0xff,0xa4,0x30,0x37,0x05,0xbb,0xe9,0xaa,0x37,0x95,0x02,0x73,0xd2,0x1f,0xdf,0x94, 0xc0,0xc9,0x75,0x1d,0x71,0xc4,0x11,0x1d,0x43,0xd5,0x49,0xe1,0x6f,0x13,0xf4,0x36, 0xeb,0xdf,0x14,0xfe,0xb6,0xca,0x80,0x8d,0xb0,0xfe,0x0b,0xf7,0x00,0x84,0x7a,0x01, 0xa4,0x18,0xd0,0x76,0xdb,0x6d,0xc7,0x95,0x0e,0x00,0x00,0x6b,0x09,0xff,0x15,0x2b, 0x56,0xac,0x25,0xa4,0x6d,0x29,0x7b,0x2e,0x8b,0x3e,0x7e,0x75,0xe5,0xff,0xbb,0xaa, 0x07,0xc6,0xef,0x45,0xf8,0x4b,0xa0,0x7a,0x9a,0xf0,0x4f,0x0a,0xfd,0xa4,0xf0,0xb7, 0x0d,0x01,0xb8,0x52,0x01,0x1b,0x61,0xfd,0x17,0xe6,0x01,0x70,0x29,0x01,0x69,0x9e, 0x01,0x99,0x3a,0xf1,0xc5,0x17,0x5f,0xe4,0x8a,0x07,0x00,0x80,0x48,0xf0,0xc7,0x96, 0xbf,0xad,0x5e,0xbf,0x29,0xe4,0x93,0xd6,0xbd,0x6b,0x26,0xc0,0xb4,0x38,0x81,0x78, 0xf9,0xfe,0xfd,0xfb,0xab,0x71,0xe3,0xc6,0x75,0x8c,0xf7,0x27,0x23,0xfd,0xe5,0xd5, 0x27,0xfc,0x5d,0xe3,0xff,0x69,0x95,0x00,0x1b,0x55,0x08,0xa8,0x6e,0x59,0x00,0xa6, 0x86,0x63,0x36,0x29,0xa6,0x30,0x72,0xe4,0x48,0x35,0x6d,0xda,0x34,0xae,0x7c,0x00, 0x80,0x36,0x17,0xfe,0xb1,0xe5,0x6f,0x0a,0xef,0xe4,0x54,0xbc,0x49,0xd7,0x7e,0x32, 0xed,0x2f,0x29,0xd8,0x4d,0x65,0xc0,0x1c,0x06,0x88,0x3f,0xfb,0xe8,0x47,0x3f,0x1a, 0xc5,0xa3,0xf5,0xee,0xdd,0x3b,0xfa,0xcc,0x55,0xdc,0xc7,0x25,0xfc,0xa5,0x26,0x80, 0x4d,0x09,0xf0,0x0d,0x01,0x34,0xaa,0x06,0x40,0x21,0x0a,0x80,0x79,0xa0,0x6d,0xd6, 0xbe,0xab,0xed,0xb7,0xdf,0x7e,0xea,0xaa,0xab,0xae,0xe2,0xea,0x07,0x00,0x68,0x73, 0xe1,0x6f,0x0a,0xe8,0x18,0xd3,0xc5,0xef,0xca,0xdd,0x37,0x2d,0x7e,0x9b,0xe5,0x2f, 0x95,0x68,0xc5,0xfb,0x2c,0x01,0x7e,0x49,0x19,0x95,0xac,0xdf,0x9f,0xb4,0xfc,0x63, 0x05,0x20,0x4d,0xf8,0xdb,0x02,0x00,0x7d,0xf3,0x00,0x34,0x8a,0xc2,0x3d,0x00,0xae, 0x09,0x0f,0x6c,0xf3,0x24,0x0f,0x1b,0x36,0x4c,0x6d,0xb2,0xc9,0x26,0x6a,0xf2,0xe4, 0xc9,0xdc,0x05,0x00,0x00,0x6d,0xc6,0xf2,0xe5,0xcb,0xad,0x96,0xbf,0x59,0xac,0x27, 0x69,0xf5,0xbb,0x02,0x00,0x6d,0x7f,0xcb,0xfb,0x9e,0x3d,0x7b,0xaa,0xdd,0x76,0xdb, 0x4d,0x6d,0xba,0xe9,0xa6,0x91,0x40,0x8e,0x89,0x05,0xb3,0x39,0x93,0x9f,0x2f,0xd5, 0xaf,0x1a,0xcb,0xbf,0x0c,0xd6,0x7f,0xa1,0x0a,0x40,0x88,0xf5,0x6f,0x1e,0x04,0x39, 0x48,0x07,0x1d,0x74,0x90,0xba,0xfc,0xf2,0xcb,0xb9,0x13,0x00,0x00,0xda,0xd0,0xf2, 0x8f,0x05,0xb5,0x6d,0x0c,0xdf,0x66,0xd5,0x27,0x5d,0xff,0xae,0xdf,0x08,0x9b,0x6f, 0xbe,0x79,0xe4,0xe6,0x97,0x31,0xfe,0x58,0x71,0x30,0x65,0x51,0x56,0xe1,0x5f,0xcd, 0xd8,0x7f,0x59,0x84,0x7f,0x61,0x0a,0x40,0xb2,0x8a,0x92,0xaf,0x99,0x1a,0x91,0xd4, 0x58,0x96,0xa1,0x80,0xfb,0xef,0xbf,0x9f,0x3b,0x02,0x00,0xa0,0x4d,0x2c,0x7f,0x69, 0xa6,0xf0,0xb7,0xb9,0xf0,0x6d,0xa9,0x7a,0x36,0x17,0xbf,0x2c,0x27,0xc2,0xfe,0x63, 0x1f,0xfb,0x58,0x14,0x5f,0x96,0x5c,0x36,0x29,0x84,0x4d,0xcb,0x3c,0xe9,0xf6,0xb7, 0x09,0xff,0xf8,0xd5,0x74,0xfb,0x9b,0xc2,0xdf,0x9c,0x19,0xd0,0x55,0xf6,0xb7,0x91, 0xc3,0x00,0x0d,0xc9,0x02,0xb0,0x1d,0xf4,0xe4,0x67,0x12,0x88,0x31,0x71,0xe2,0x44, 0x35,0x75,0xea,0x54,0xee,0x0c,0x00,0x80,0x36,0x10,0xfe,0xb6,0x2a,0x7d,0x36,0x81, 0x6f,0xab,0xe7,0x9f,0xfc,0x3c,0x19,0xd0,0x27,0x42,0xda,0x26,0x83,0xcc,0x99,0xf8, 0x5c,0x96,0xbf,0x19,0xf4,0x97,0x96,0xf6,0x67,0x0a,0x7f,0xd3,0xf5,0x6f,0x7a,0xbd, 0x1b,0x2d,0xfc,0x0b,0x55,0x00,0x7c,0xd6,0xbe,0x4d,0xeb,0x4a,0xfe,0x2d,0x35,0x97, 0xaf,0xbe,0xfa,0xea,0x68,0xca,0x45,0x00,0x00,0x68,0x4d,0xe1,0x2f,0xcf,0xf8,0xa4, 0x40,0xf4,0x05,0xf2,0x99,0xc2,0x3f,0x1e,0x02,0x18,0x31,0x62,0x44,0x34,0xb6,0xbf, 0xde,0x7a,0xeb,0xad,0xa5,0x0c,0xa4,0xc9,0xa2,0x50,0xe1,0xef,0x52,0x00,0x92,0x9f, 0x27,0x27,0xff,0x49,0x5a,0xfd,0xf2,0x5a,0x46,0xe1,0x1f,0x2b,0x00,0x32,0x0b,0x4f, 0x97,0xa2,0xad,0xff,0x34,0x97,0x8b,0xa9,0x04,0xc8,0xab,0x1c,0xd4,0xa3,0x8e,0x3a, 0x4a,0x5d,0x73,0xcd,0x35,0xce,0x31,0x1d,0x00,0x00,0x68,0x4e,0x96,0x2d,0x5b,0xd6, 0xe1,0xf6,0x77,0x4d,0xe2,0x63,0x8b,0xf4,0x4f,0x0a,0x4e,0x91,0x13,0xbb,0xef,0xbe, 0x7b,0x14,0x3c,0x2e,0x82,0x37,0x5e,0x26,0x59,0x5d,0xcf,0x74,0xbd,0xdb,0xe4,0x4e, 0x48,0x89,0x5f,0x53,0xe0,0xbb,0x6a,0xfd,0xdb,0xc6,0xfb,0xcd,0xc9,0x7e,0xca,0x20, 0xfc,0x45,0xf6,0x8b,0x02,0x20,0x67,0xa0,0x57,0x91,0x5b,0xf1,0x79,0x01,0x4c,0x6d, 0x29,0xfe,0xbc,0x6f,0xdf,0xbe,0xea,0xc8,0x23,0x8f,0x54,0x37,0xde,0x78,0x23,0x77, 0x0b,0x00,0x40,0x8b,0x20,0x56,0x7f,0x72,0xcc,0xdf,0x25,0xf8,0xcd,0xef,0x63,0x8b, 0x7f,0x8b,0x2d,0xb6,0xe8,0x08,0xe8,0x4b,0x0e,0x03,0xd8,0x84,0xbd,0x4f,0xf6,0xc8, 0x6b,0x72,0xcc,0xdf,0xa7,0x00,0x98,0xef,0x6d,0x75,0xfe,0xcd,0xd9,0xfe,0xca,0x64, 0xf5,0x27,0x1d,0x30,0xa2,0x00,0x2c,0x29,0x4a,0x01,0x70,0x45,0xfd,0xbb,0x34,0x2f, 0xd3,0x15,0x23,0xef,0x07,0x0d,0x1a,0xa4,0x0e,0x3d,0xf4,0x50,0x75,0xc7,0x1d,0x77, 0x70,0xd7,0x00,0x00,0xb4,0x80,0xe5,0x2f,0xcd,0xb4,0xec,0xcd,0xbf,0xcd,0x98,0x80, 0x01,0x03,0x06,0x44,0x01,0x7d,0xa3,0x46,0x8d,0x5a,0x6b,0x7d,0xae,0xaa,0x7a,0xa6, 0xbc,0x09,0xb5,0xfc,0x43,0x14,0x00,0x97,0xcb,0x3f,0x44,0xf8,0x97,0x48,0x09,0x58, 0xd2,0x49,0x1f,0xd8,0x89,0xfa,0xcd,0xd8,0xbc,0xd7,0x1c,0xd7,0x59,0x8e,0x5b,0x3c, 0x95,0x63,0x9c,0xea,0x11,0x5f,0x04,0xd2,0x44,0x1b,0x34,0x5b,0xfc,0x5d,0x9c,0x17, 0x3a,0x6f,0xde,0x3c,0x75,0xf3,0xcd,0x37,0x33,0x1c,0x00,0x00,0xd0,0xc4,0x96,0xbf, 0x3c,0xd7,0x6d,0x81,0x7c,0xb6,0xb2,0xbe,0xf2,0xba,0xe3,0x8e,0x3b,0xa6,0x06,0xf4, 0xb9,0x02,0xfb,0x42,0x05,0xbf,0x2d,0xea,0x3f,0xa9,0x00,0xd8,0x94,0x01,0x53,0x59, 0x30,0x3d,0xd8,0x4d,0x20,0xfc,0x85,0x49,0xe2,0x01,0x98,0x55,0x84,0x02,0x60,0x3b, 0x41,0x3e,0xeb,0xdf,0xd5,0x44,0x81,0xe8,0xd7,0xaf,0x9f,0x1a,0x3f,0x7e,0xbc,0xba, 0xed,0xb6,0xdb,0x08,0x0c,0x04,0x00,0x68,0x42,0xe1,0x9f,0x7c,0x76,0xbb,0x66,0xea, 0x13,0xa4,0x34,0xbc,0x8c,0xed,0x87,0x06,0xf4,0xf9,0x04,0xbf,0xe9,0x5d,0x76,0x09, 0xff,0xa4,0xf5,0x6f,0x53,0x02,0x6c,0x82,0xdf,0x37,0xe6,0x5f,0x52,0xe1,0x2f,0xcc, 0x12,0x05,0xa0,0xd0,0xe2,0xfb,0x21,0xc1,0x17,0xe6,0x41,0x95,0x26,0x1e,0x03,0x69, 0x49,0x2f,0x82,0x54,0x70,0x3a,0xfa,0xe8,0xa3,0xd5,0x43,0x0f,0x3d,0x44,0x8a,0x20, 0x00,0x40,0x93,0x09,0x7f,0x33,0x72,0x3f,0xf9,0x5e,0x5c,0xec,0x12,0xc5,0x3f,0x76, 0xec,0xd8,0xcc,0x01,0x7d,0xa6,0x7c,0x49,0x0a,0x64,0xdb,0xf0,0x72,0x9a,0xf0,0x37, 0x95,0x00,0xf3,0x7d,0xf2,0x77,0x65,0xad,0xf0,0x17,0xc8,0x34,0x51,0x00,0xa6,0x14, 0x29,0xfc,0x6d,0x05,0x81,0x42,0xc6,0x5f,0x62,0x05,0x40,0x5a,0xec,0x05,0x88,0xc7, 0x84,0xf6,0xda,0x6b,0xaf,0x68,0xd2,0x20,0x51,0x04,0x00,0x00,0xa0,0xbc,0x2c,0x59, 0xb2,0x24,0x72,0xfb,0xbb,0xca,0xf6,0xca,0x74,0xbb,0xfb,0xee,0xbb,0x6f,0x47,0x40, 0x5f,0x4c,0x48,0x40,0x9f,0xe9,0x55,0x0e,0xb1,0xf8,0x6d,0xc2,0xdf,0xa5,0x04,0xd8, 0x84,0xbe,0xcf,0xe5,0xdf,0x24,0xc2,0x5f,0x98,0x22,0x0a,0xc0,0xa4,0xa2,0x85,0x7f, 0xfc,0xea,0xaa,0xb8,0x14,0x0b,0xfa,0x58,0xd3,0x4a,0x0a,0xff,0xd8,0x0b,0x60,0xce, 0xfb,0x2c,0x39,0x9f,0xc7,0x1d,0x77,0x9c,0x7a,0xf2,0xc9,0x27,0xd5,0x94,0x29,0x53, 0xb8,0xcb,0x00,0x00,0x4a,0x28,0xfc,0xa5,0x25,0x05,0x7e,0x5c,0x89,0x4f,0x82,0xf9, 0x0e,0x38,0xe0,0x00,0x6b,0x3d,0xfe,0xac,0x01,0x7d,0xa1,0x42,0x3f,0x44,0x01,0x70, 0x7d,0xe7,0xca,0x56,0x2b,0x63,0x85,0xbf,0x40,0xa2,0x18,0x80,0x17,0x8b,0xde,0x8a, 0x2b,0x06,0x40,0x84,0x79,0x52,0x09,0x88,0x85,0x7f,0xfc,0x1a,0xbb,0xfe,0x4d,0xe1, 0x1f,0x5f,0x48,0xf2,0xf7,0x2e,0xbb,0xec,0xa2,0x76,0xd8,0x61,0x07,0xf5,0xd4,0x53, 0x4f,0xa9,0x77,0xde,0x79,0x87,0x3b,0x0e,0x00,0xa0,0xa4,0xc2,0x5f,0x9e,0xed,0x5b, 0x6d,0xb5,0x55,0x14,0xcd,0x9f,0x4c,0xdf,0xab,0x25,0xa0,0xcf,0x14,0xfa,0xe6,0xf0, 0x72,0x9a,0xf0,0x4f,0x7b,0xef,0xb2,0xf6,0xd3,0xac,0xfe,0x26,0x12,0xfe,0xc2,0x8b, 0x92,0x05,0xd0,0x57,0xbf,0x99,0x27,0xca,0x57,0xde,0x6b,0x37,0x85,0x75,0x9c,0x0d, 0x60,0x66,0x04,0xc4,0xa5,0x20,0x93,0x59,0x01,0xc9,0x2c,0x81,0x64,0x36,0x40,0xdc, 0xe2,0x75,0x24,0xd7,0x2b,0xdb,0x79,0xf5,0xd5,0x57,0xd5,0x84,0x09,0x13,0xb8,0xfb, 0x00,0x00,0x1a,0x2c,0xfc,0x63,0x21,0x2f,0xee,0xfd,0x71,0xe3,0xc6,0xa9,0x8d,0x36, 0xda,0x68,0x9d,0x89,0x78,0xd2,0xaa,0xf4,0x85,0x08,0x7d,0x5f,0x70,0x5f,0xe8,0xe7, 0xae,0x66,0x6e,0xd7,0x54,0x4c,0x92,0x0a,0x4c,0x13,0x09,0x7f,0x09,0xbc,0xe8,0xdf, 0x55,0xef,0xec,0x42,0x7d,0x92,0x5e,0xd2,0x7f,0x6c,0x5f,0x84,0xe5,0x6f,0x46,0x70, 0xca,0x01,0x8b,0x5d,0x40,0xb1,0x17,0x40,0x4e,0x48,0x2c,0xc4,0x93,0xaf,0xa6,0x07, 0xc0,0x9c,0x16,0x52,0x90,0x65,0x93,0x0a,0x87,0x68,0x97,0xdb,0x6c,0xb3,0x8d,0x9a, 0x3f,0x7f,0xbe,0x7a,0xf3,0xcd,0x37,0xd5,0xeb,0xaf,0xbf,0xbe,0xd6,0x32,0x00,0x00, 0x50,0x1c,0x8b,0x17,0x2f,0x8e,0x8c,0x38,0x99,0xd8,0x6d,0xfb,0xed,0xb7,0x8f,0x9e, 0xc9,0xb1,0xa0,0x34,0x27,0xe2,0xa9,0x36,0x8a,0x3f,0x74,0x7c,0xdf,0xf5,0xb9,0xaf, 0x0e,0x8d,0xcd,0xcd,0x1f,0x32,0xd6,0xdf,0x24,0xc2,0x5f,0x78,0x49,0xef,0xeb,0xa2, 0x78,0x2e,0x80,0x47,0x8b,0x50,0x00,0x92,0x8a,0x80,0xa9,0x04,0x24,0x15,0x80,0xa4, 0x12,0x20,0x4d,0xa2,0x41,0xd3,0x84,0xbe,0xa9,0x71,0xc5,0x7f,0xc7,0xd1,0xa4,0xf2, 0x2a,0x17,0xdf,0x47,0x3e,0xf2,0x91,0x28,0x7f,0x54,0x7e,0x2b,0xda,0xa8,0xd4,0x12, 0x98,0x39,0x73,0x66,0xa4,0x1c,0xc8,0xdf,0x8b,0x16,0x2d,0x8a,0xbc,0x08,0x00,0x00, 0x90,0x1d,0xc9,0xcd,0x17,0xeb,0x5e,0xd2,0xb4,0xa5,0x50,0x4f,0x3c,0xac,0x3b,0x66, 0xcc,0x98,0x75,0x02,0xc0,0xe3,0xe7,0xb4,0x2f,0x98,0xcf,0x26,0xf4,0x43,0xc7,0xf6, 0xb3,0x58,0xf7,0xa6,0x42,0x91,0x45,0xe8,0x9b,0xfd,0x6a,0x32,0xe1,0x1f,0xcb,0xfc, 0x8e,0xc9,0x80,0xee,0xd5,0xed,0xf4,0xa2,0x84,0xbf,0x2d,0x8f,0x33,0xf6,0x04,0xc8, 0x01,0x4f,0x8e,0xf1,0xc7,0x16,0xbf,0x69,0xfd,0xc7,0xda,0xa3,0x4b,0xa9,0x88,0x3d, 0x07,0xf1,0xf6,0x92,0xbf,0x95,0xcf,0x7a,0xf5,0xea,0x15,0x35,0x89,0x38,0x4d,0x42, 0x61,0x21,0x00,0x80,0xda,0x8c,0x3b,0xd7,0x73,0x39,0xeb,0xd8,0x7e,0x35,0x42,0x3f, 0x8b,0xf0,0xf7,0x59,0xf8,0xb6,0xc0,0x3e,0xdf,0x38,0x7f,0x93,0x09,0x7e,0x95,0x90, 0xf9,0x1d,0x0a,0xc0,0x7d,0xba,0xad,0xd0,0xad,0x5b,0x3d,0xbd,0x00,0x49,0x05,0x20, 0xf6,0x02,0xd8,0xac,0xfe,0x34,0xc1,0x2f,0x16,0xbc,0xbc,0xc6,0xc2,0x3f,0x56,0x1c, 0x64,0xfd,0xe6,0xf0,0x81,0xb9,0xae,0x64,0x10,0x0a,0x00,0x00,0xd4,0xa6,0x04,0xa4, 0x29,0x00,0x45,0x8d,0xeb,0xa7,0x09,0xfe,0xb4,0xb9,0x66,0xd2,0x2c,0xfd,0x34,0xa1, 0xdf,0xc4,0x56,0x7f,0xcc,0x8a,0x35,0x32,0xff,0x43,0x05,0x40,0x77,0x62,0x81,0x16, 0x86,0x0f,0xe8,0xb7,0x07,0xd5,0xc3,0x0b,0x90,0x1c,0x0f,0x32,0xbd,0x00,0x3e,0x05, 0xc0,0x54,0x22,0x4c,0x57,0x52,0x32,0x7e,0xc0,0x54,0x02,0x92,0xdb,0xc4,0x03,0x00, 0x00,0x90,0xbf,0xe0,0xf7,0x3d,0xa3,0xab,0x4d,0xdd,0x0b,0x15,0xfe,0x79,0x0a,0x7d, 0x97,0xb5,0xdf,0xe4,0x86,0xe3,0x03,0x22,0xf3,0x93,0x1e,0x00,0xe1,0xba,0xa2,0x14, 0x00,0xd7,0x05,0x13,0x2b,0x02,0x49,0xc1,0xec,0x1a,0xf7,0xf7,0x69,0x94,0x71,0x56, 0x40,0x2c,0xf4,0xd3,0x82,0x08,0x6d,0x9e,0x00,0x00,0x00,0xc8,0xd7,0xf2,0x4f,0xab, 0xd2,0xe7,0xab,0xce,0x17,0xf2,0x99,0xed,0xf7,0xa1,0xee,0xfd,0xb4,0x71,0x7d,0x57, 0x54,0x7f,0x8b,0x78,0x8c,0xaf,0x8b,0xdf,0x24,0x15,0x80,0x9b,0x75,0xfb,0xad,0x6e, 0x3d,0x8b,0xf6,0x02,0x24,0x15,0x80,0x64,0x46,0x80,0x2d,0xd8,0xcf,0xb6,0x1e,0xdb, 0x05,0x15,0x0b,0x7f,0x5b,0x09,0x61,0x33,0x26,0x20,0x29,0xf4,0x6d,0xdb,0x43,0x21, 0x00,0x00,0x70,0x0b,0x7c,0x9f,0xe0,0x0f,0x99,0xfe,0x3d,0xc4,0xd2,0x0f,0x0d,0xea, 0x73,0x55,0x02,0x34,0x15,0x90,0x90,0x80,0xbe,0x16,0x16,0xfc,0xc2,0xd2,0x35,0xb2, 0x7e,0x6d,0x05,0x40,0x77,0x70,0xae,0x16,0x7c,0x37,0xea,0xb7,0x9f,0xa9,0xe7,0x45, 0x94,0x1c,0x0e,0x48,0x56,0x84,0xb2,0x09,0xfd,0x34,0x8d,0x32,0x6e,0x66,0x05,0x41, 0x5b,0x31,0xa1,0xa4,0xc7,0x01,0xa1,0x0f,0x00,0x50,0x9b,0xf5,0x1f,0x22,0xfc,0x43, 0x2d,0xfe,0x50,0x05,0x20,0x34,0x65,0xcf,0x15,0xd0,0x67,0xee,0xbb,0x4d,0x3e,0xb5, 0x60,0x8c,0xd8,0x8d,0x22,0xeb,0x6d,0x1e,0x00,0xe1,0x8a,0x22,0x15,0x80,0x64,0x59, 0x60,0x53,0x01,0x08,0xb1,0xfa,0x4d,0x05,0x20,0xbe,0x10,0xa4,0x30,0x50,0x7c,0xb1, 0x88,0x27,0x20,0xa9,0x00,0xc4,0x05,0x82,0x4c,0x4f,0x80,0xcb,0x0b,0x80,0x22,0x00, 0x00,0x10,0x26,0xf8,0x93,0xcf,0xe7,0xf8,0x79,0x6e,0x7b,0x4e,0xa7,0x59,0xfe,0x21, 0x95,0xf8,0xb2,0x8c,0xed,0xdb,0x04,0x7f,0x9b,0x5a,0xfb,0x36,0xae,0x48,0xfe,0xd1, 0xd5,0x38,0xb9,0x8f,0x68,0x01,0xf8,0x8c,0x7e,0xbb,0x73,0x3d,0x95,0x00,0x33,0x1e, 0x20,0x4d,0x01,0x48,0x5e,0x54,0x22,0xf8,0x93,0x43,0x00,0xd2,0x92,0x4a,0x80,0x19, 0x0b,0x10,0x12,0x0f,0x80,0x22,0x00,0x00,0xa0,0x52,0x2d,0x61,0x5f,0xd0,0x5f,0x16, 0xb7,0xbf,0xad,0xde,0x7e,0x88,0x9b,0xbf,0xd6,0x28,0xfe,0x36,0x12,0xfa,0x31,0xcf, 0x88,0x8c,0x77,0x2a,0x00,0x6b,0xb8,0x58,0xb7,0xbf,0x16,0x7d,0x31,0x25,0x95,0x80, 0x38,0x70,0xcf,0xa6,0x04,0xa4,0xb9,0x95,0xe2,0x0b,0x23,0x16,0xfe,0xb1,0xe0,0x4f, 0x2a,0x00,0xe6,0x9c,0x02,0xc4,0x02,0x00,0x00,0x54,0x2f,0xfc,0x6d,0x82,0xdf,0xe6, 0xa5,0xb5,0x4d,0xc9,0x9b,0xc5,0xfd,0x6f,0x2b,0xd4,0x53,0x6d,0x40,0x5f,0x9b,0x5a, 0xfb,0x36,0xd9,0xbe,0xf6,0x79,0xb4,0x08,0x3d,0x91,0xc2,0x32,0x41,0xd0,0xd6,0x45, 0xee,0x89,0x4d,0x00,0x27,0x85,0x74,0x52,0x80,0x27,0x85,0x7a,0x52,0xd8,0xdb,0x9a, 0x6d,0x26,0x41,0xdf,0x30,0x80,0x29,0xe8,0x11,0xfc,0x00,0x00,0x6e,0x45,0xc0,0xa7, 0x00,0x84,0xa6,0xfa,0xb9,0xac,0x7e,0x57,0x50,0x1f,0x01,0x7d,0x55,0x23,0x13,0xe4, 0x6c,0xa7,0xfb,0xbe,0x3a,0xd5,0x03,0x20,0x0b,0x68,0x01,0xf8,0x3d,0xfd,0xf6,0x86, 0x7a,0x79,0x01,0x92,0xd3,0x05,0x27,0x3d,0x01,0x3e,0xf7,0x92,0x79,0x21,0xb9,0x14, 0x80,0x90,0x79,0x05,0xd2,0x84,0x3e,0x0a,0x01,0x00,0x60,0xf9,0xfb,0x3d,0x00,0x69, 0x41,0xda,0x21,0x19,0x00,0xa1,0x82,0x9f,0x80,0xbe,0xcc,0x9c,0x67,0x0a,0x7f,0xab, 0x07,0x20,0x21,0xf4,0xee,0xd7,0x2f,0xfb,0x16,0xbd,0x57,0x36,0x4f,0x40,0xb2,0x14, 0x70,0xb2,0x99,0xc2,0xdd,0xf4,0x0e,0xf8,0x84,0x7f,0xa8,0x02,0x80,0xc0,0x07,0x00, 0xc8,0xc7,0x03,0x10,0x32,0x6d,0xaf,0x4d,0xf0,0x63,0xed,0xe7,0x86,0x14,0xfe,0xd9, 0xcf,0x7a,0x4e,0x53,0x04,0xf3,0x96,0xfa,0xe5,0x05,0xdd,0xba,0x37,0x4a,0x09,0xf0, 0x29,0x02,0x2e,0xa5,0xc0,0x36,0xa3,0xa0,0x2d,0x06,0x00,0xe1,0x0f,0x00,0x50,0xbd, 0x12,0x90,0x25,0x08,0x30,0xed,0x35,0x6b,0x3d,0x7e,0xdb,0xf6,0x11,0xfa,0x56,0x96, 0xeb,0xb6,0xbd,0x3e,0x26,0xaf,0xda,0xbe,0xec,0x9a,0x72,0xa2,0x5f,0xd5,0xc2,0xf0, 0x12,0xfd,0xf6,0x5b,0xf5,0xb8,0xa8,0x5c,0x75,0xf9,0x5d,0x5a,0x5f,0x72,0xb8,0x20, 0xce,0xff,0x77,0x09,0xfe,0x34,0xeb,0x1f,0xe1,0x0f,0x00,0x50,0x9b,0x12,0x10,0x5a, 0xf3,0x3f,0x8f,0x2a,0x7d,0x58,0xfb,0x99,0xb8,0xc4,0x25,0xfc,0x53,0x3d,0x00,0x6b, 0x04,0x62,0x6f,0xfd,0xf2,0x6f,0xdd,0xc6,0xd4,0x6b,0x6f,0x6d,0xc1,0x79,0xa6,0xe5, 0xee,0x12,0xf0,0x69,0x82,0x1f,0xf7,0x3f,0x00,0x40,0xbe,0xc2,0x3f,0xab,0x12,0xe0, 0x52,0x0c,0xd2,0x52,0xf8,0xb0,0xf6,0xab,0x66,0x8a,0x6e,0xdb,0xe8,0x63,0xb4,0xb8, 0x2a,0x05,0x60,0x8d,0x40,0xdc,0x5d,0xbf,0x3c,0xac,0x0a,0x9c,0x29,0x30,0x4d,0x09, 0x48,0x2a,0x03,0xe6,0xd0,0x80,0x6b,0x0a,0x61,0x53,0xe8,0x23,0xfc,0x01,0x00,0x1a, 0xa7,0x04,0xd8,0xc6,0xf3,0xb3,0x58,0xfb,0x04,0xf4,0x65,0x46,0x66,0xfc,0xdb,0x4b, 0x1f,0xa7,0x27,0x52,0xcf,0x65,0xa0,0x40,0xfe,0x9a,0xb2,0xe4,0x10,0xd6,0x43,0x09, 0x08,0x55,0x04,0x5c,0x02,0xdf,0x57,0xfc,0x27,0x24,0x0b,0x00,0x00,0x00,0x94,0x55, 0xf0,0xdb,0x2c,0x74,0x9b,0x60,0x77,0x09,0x7c,0x57,0x34,0x3f,0xd6,0x7e,0x4d,0x9c, 0xad,0x8f,0xd7,0x25,0xde,0xf3,0x98,0x41,0x20,0xdf,0xa6,0x5f,0x0e,0xab,0x77,0x2f, 0x4c,0x45,0x20,0x4d,0x19,0x70,0x29,0x07,0xb6,0xe5,0x6d,0x42,0x1f,0x25,0x00,0x00, 0xa0,0x3a,0x0f,0x80,0xcb,0x13,0x10,0xda,0x6c,0xeb,0x43,0xf0,0x57,0xc5,0xed,0xfa, 0x98,0xfd,0x47,0xd0,0xb9,0xcc,0x20,0x88,0x07,0xeb,0x97,0x27,0x75,0x1b,0xdb,0x88, 0x1e,0xf9,0x3c,0x02,0x2e,0xa5,0xc0,0xb5,0x5c,0x9a,0xd0,0x47,0x11,0x00,0x00,0x70, 0x0b,0x7e,0x97,0x32,0x90,0x96,0x93,0x4f,0x69,0xde,0xba,0x30,0x49,0xb7,0xdd,0xf4, 0xf1,0x9b,0x93,0xab,0x02,0xb0,0x46,0x30,0x4a,0x30,0xe0,0x63,0xba,0x0d,0x6b,0x54, 0xef,0x5c,0x8a,0x80,0xcd,0x43,0x90,0xf6,0x19,0x02,0x1f,0x00,0x20,0x3f,0x85,0x20, 0x64,0x58,0xc0,0xb5,0x1c,0x82,0x3f,0x17,0x66,0xe8,0x36,0x4e,0x1f,0xc3,0x29,0xc1, 0xe7,0xb0,0x0a,0x01,0xbc,0xbd,0x7e,0x79,0x48,0xb7,0x01,0x8d,0xec,0xa9,0x4b,0x88, 0xa7,0x59,0xf9,0xa1,0x01,0x7f,0x28,0x04,0x00,0x00,0x7e,0x0f,0x80,0xcb,0x13,0xe0, 0x13,0xf0,0x04,0xf5,0xe5,0xce,0x3c,0xdd,0xf6,0xd6,0xc7,0xf1,0x85,0x4c,0xe7,0xb4, 0x4a,0xe1,0xbb,0xb7,0x7e,0xf9,0xbf,0xba,0xf5,0x2c,0x43,0xcf,0x7d,0x16,0x7d,0x88, 0xe0,0x47,0xe8,0x03,0x00,0xd4,0xa6,0x0c,0xa4,0x59,0xf3,0x08,0xfd,0xc2,0x58,0xaa, 0xdb,0xc1,0xfa,0x78,0x3e,0x94,0xf9,0x3c,0xd6,0x20,0x74,0x45,0x09,0xb8,0xb5,0xd1, 0x9e,0x80,0x2c,0xc2,0x3c,0x54,0xc8,0xa3,0x0c,0x00,0x00,0x84,0x7b,0x00,0xb2,0x2a, 0x07,0x90,0xab,0xe5,0x7f,0x78,0x35,0xc2,0xbf,0x26,0x05,0x60,0x8d,0xa0,0xdc,0x7e, 0x8d,0x27,0x60,0x58,0x33,0x1d,0x31,0x04,0x3c,0x00,0x40,0x63,0x14,0x04,0xc8,0x8d, 0x19,0x6b,0x2c,0xff,0x17,0xaa,0x3e,0x67,0x39,0x08,0x53,0x09,0x0c,0xbc,0x47,0x35, 0x28,0x3b,0x00,0x00,0x00,0xa0,0xcd,0x90,0x68,0xff,0x83,0xb2,0x04,0xfc,0xd9,0xe8, 0x9c,0x83,0xd6,0x27,0x3b,0xb0,0x9b,0x6e,0xb7,0x73,0x4e,0x00,0x00,0x00,0x0a,0x45, 0x64,0xed,0x6e,0xb5,0x0a,0xff,0x5c,0x14,0x80,0x35,0x4a,0xc0,0x9c,0x35,0x85,0x07, 0xce,0x56,0x1f,0x96,0x20,0x04,0x00,0x00,0x80,0xfc,0x10,0xd9,0x2a,0x15,0xfe,0xfe, 0x23,0x34,0xcf,0xdf,0x2b,0xbb,0xf3,0xde,0xc3,0x35,0x73,0x07,0x5c,0xa3,0xea,0x38, 0x81,0x10,0x00,0x00,0x40,0x0b,0x23,0xd6,0xfe,0x09,0xbe,0xda,0xfe,0x0d,0xf1,0x00, 0x18,0xde,0x00,0xd9,0xc1,0x6d,0x74,0xfb,0x89,0xfa,0x70,0x2e,0x62,0x00,0x00,0x00, 0xc8,0xce,0xf2,0x35,0xb2,0x74,0x9b,0xbc,0x85,0x7f,0x21,0x1e,0x00,0xc3,0x1b,0xb0, 0xa5,0x7e,0xb9,0x4c,0xb7,0x7d,0x39,0x8f,0x00,0x00,0x00,0xc1,0x3c,0xa0,0xdb,0x57, 0xb4,0xe0,0x7f,0xb5,0xa8,0x0d,0x74,0x2e,0x72,0xef,0x65,0xc7,0x75,0xdb,0x4f,0xbf, 0x3d,0x5a,0xb7,0x09,0x9c,0x4f,0x00,0x00,0x80,0x54,0x44,0x56,0x1e,0x2d,0xb2,0xb3, 0x48,0xe1,0x5f,0xb8,0x07,0xc0,0xf0,0x06,0x88,0xb2,0x31,0x5e,0x7d,0x18,0x28,0xb8, 0x33,0xe7,0x18,0x00,0x00,0xa0,0x83,0x67,0x74,0xbb,0x58,0xb7,0xeb,0xb5,0xe0,0x5f, 0x5d,0x8f,0x0d,0x36,0xa4,0x72,0x83,0x56,0x06,0xf6,0xd4,0x2f,0xa7,0xea,0x76,0x94, 0x2a,0x49,0x39,0x61,0x00,0x00,0x80,0x3a,0x23,0x65,0x7c,0x6f,0xd4,0xed,0x0a,0x2d, 0xf4,0x1f,0xa9,0xf7,0xc6,0x1b,0x5a,0xba,0x49,0x2b,0x02,0x83,0xf4,0xcb,0x11,0xba, 0x1d,0xab,0x3e,0x8c,0x13,0xe8,0xc6,0xf5,0x00,0x00,0x00,0x2d,0x8c,0xa4,0xf3,0xc9, 0xf8,0xfe,0x75,0xba,0xdd,0xac,0x05,0xff,0xdc,0x46,0xed,0x48,0x69,0x6a,0x37,0x6a, 0x65,0xa0,0x9f,0x7e,0x39,0x40,0xb7,0xfd,0x75,0xdb,0x43,0xb7,0x6d,0x55,0xc1,0x31, 0x0a,0x00,0x00,0x00,0x05,0x23,0xee,0xfc,0x97,0x74,0x7b,0x54,0xb7,0xfb,0x74,0xbb, 0x57,0x0b,0xfd,0x05,0x65,0xd8,0xb1,0xd2,0x16,0x6f,0xd6,0x0a,0x41,0x5f,0xf5,0x61, 0x3a,0xe1,0x76,0xea,0xc3,0x32,0xc3,0x52,0x57,0x60,0xa4,0x6e,0xeb,0xe9,0x36,0x58, 0xb7,0x5e,0xba,0x75,0xd7,0xad,0x0b,0xd7,0x17,0x00,0x00,0x34,0x80,0x55,0xea,0xc3, 0x54,0xbd,0x25,0xba,0x49,0x71,0x9e,0x59,0xba,0x4d,0x53,0x1f,0xe6,0xed,0x4b,0xb9, 0xde,0x17,0x45,0xf8,0x6b,0x81,0xbf,0xa8,0x8c,0x3b,0xff,0xff,0x00,0xa9,0xd9,0x66, 0x33,0x79,0x3c,0x5d,0x0d,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60, 0x82, }; cups-2.4.7/tools/ipptool.c0000644000175000017500000054616714502571342015376 0ustar zdohnalzdohnal/* * ipptool command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2020 by The Printer Working Group. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #ifdef _WIN32 # include # ifndef R_OK # define R_OK 0 # endif /* !R_OK */ #else # include # include #endif /* _WIN32 */ #ifndef O_BINARY # define O_BINARY 0 #endif /* !O_BINARY */ /* * Limits... */ #define MAX_EXPECT 200 // Maximum number of EXPECT directives #define MAX_DISPLAY 200 // Maximum number of DISPLAY directives #define MAX_MONITOR 10 // Maximum number of MONITOR-PRINTER-STATE EXPECT directives /* * Types... */ typedef enum ipptool_transfer_e /**** How to send request data ****/ { IPPTOOL_TRANSFER_AUTO, /* Chunk for files, length for static */ IPPTOOL_TRANSFER_CHUNKED, /* Chunk always */ IPPTOOL_TRANSFER_LENGTH /* Length always */ } ipptool_transfer_t; typedef enum ipptool_output_e /**** Output mode ****/ { IPPTOOL_OUTPUT_QUIET, /* No output */ IPPTOOL_OUTPUT_TEST, /* Traditional CUPS test output */ IPPTOOL_OUTPUT_PLIST, /* XML plist test output */ IPPTOOL_OUTPUT_IPPSERVER, /* ippserver attribute file output */ IPPTOOL_OUTPUT_LIST, /* Tabular list output */ IPPTOOL_OUTPUT_CSV, /* Comma-separated values output */ IPPTOOL_OUTPUT_JSON /* JSON output */ } ipptool_output_t; typedef enum ipptool_with_e /**** WITH flags ****/ { IPPTOOL_WITH_LITERAL = 0, /* Match string is a literal value */ IPPTOOL_WITH_ALL = 1, /* Must match all values */ IPPTOOL_WITH_REGEX = 2, /* Match string is a regular expression */ IPPTOOL_WITH_HOSTNAME = 4, /* Match string is a URI hostname */ IPPTOOL_WITH_RESOURCE = 8, /* Match string is a URI resource */ IPPTOOL_WITH_SCHEME = 16 /* Match string is a URI scheme */ } ipptool_with_t; typedef struct ipptool_expect_s /**** Expected attribute info ****/ { int optional, /* Optional attribute? */ not_expect, /* Don't expect attribute? */ expect_all; /* Expect all attributes to match/not match */ char *name, /* Attribute name */ *of_type, /* Type name */ *same_count_as, /* Parallel attribute name */ *if_defined, /* Only required if variable defined */ *if_not_defined, /* Only required if variable is not defined */ *with_value, /* Attribute must include this value */ *with_value_from, /* Attribute must have one of the values in this attribute */ *define_match, /* Variable to define on match */ *define_no_match, /* Variable to define on no-match */ *define_value, /* Variable to define with value */ *display_match; /* Message to display on a match */ int repeat_limit, /* Maximum number of times to repeat */ repeat_match, /* Repeat test on match */ repeat_no_match, /* Repeat test on no match */ with_distinct, /* WITH-DISTINCT-VALUES? */ with_flags, /* WITH flags */ count; /* Expected count if > 0 */ ipp_tag_t in_group; /* IN-GROUP value */ } ipptool_expect_t; typedef struct ipptool_status_s /**** Status info ****/ { ipp_status_t status; /* Expected status code */ char *if_defined, /* Only if variable is defined */ *if_not_defined, /* Only if variable is not defined */ *define_match, /* Variable to define on match */ *define_no_match, /* Variable to define on no-match */ *define_value; /* Variable to define with value */ int repeat_limit, /* Maximum number of times to repeat */ repeat_match, /* Repeat the test when it does not match */ repeat_no_match; /* Repeat the test when it matches */ } ipptool_status_t; typedef struct ipptool_test_s /**** Test Data ****/ { /* Global Options */ _ipp_vars_t *vars; /* Variables */ http_encryption_t encryption; /* Encryption for connection */ int family; /* Address family */ ipptool_output_t output; /* Output mode */ int repeat_on_busy; /* Repeat tests on server-error-busy */ int stop_after_include_error; /* Stop after include errors? */ double timeout; /* Timeout for connection */ int validate_headers, /* Validate HTTP headers in response? */ verbosity; /* Show all attributes? */ /* Test Defaults */ int def_ignore_errors; /* Default IGNORE-ERRORS value */ ipptool_transfer_t def_transfer; /* Default TRANSFER value */ int def_version; /* Default IPP version */ /* Global State */ http_t *http; /* HTTP connection to printer/server */ cups_file_t *outfile; /* Output file */ int show_header, /* Show the test header? */ xml_header; /* 1 if XML plist header was written */ int pass, /* Have we passed all tests? */ test_count, /* Number of tests (total) */ pass_count, /* Number of tests that passed */ fail_count, /* Number of tests that failed */ skip_count; /* Number of tests that were skipped */ /* Per-Test State */ cups_array_t *errors; /* Errors array */ int prev_pass, /* Result of previous test */ skip_previous; /* Skip on previous test failure? */ char compression[16]; /* COMPRESSION value */ useconds_t delay; /* Initial delay */ int num_displayed; /* Number of displayed attributes */ char *displayed[MAX_DISPLAY];/* Displayed attributes */ int num_expects; /* Number of expected attributes */ ipptool_expect_t expects[MAX_EXPECT], /* Expected attributes */ *expect, /* Current expected attribute */ *last_expect; /* Last EXPECT (for predicates) */ char file[1024], /* Data filename */ file_id[1024]; /* File identifier */ int ignore_errors; /* Ignore test failures? */ char name[1024]; /* Test name */ char pause[1024]; /* PAUSE value */ useconds_t repeat_interval; /* Repeat interval (delay) */ int request_id; /* Current request ID */ char resource[512]; /* Resource for request */ int pass_test, /* Pass this test? */ skip_test, /* Skip this test? */ num_statuses; /* Number of valid status codes */ ipptool_status_t statuses[100], /* Valid status codes */ *last_status; /* Last STATUS (for predicates) */ char test_id[1024]; /* Test identifier */ ipptool_transfer_t transfer; /* To chunk or not to chunk */ int version; /* IPP version number to use */ _cups_thread_t monitor_thread; /* Monitoring thread ID */ int monitor_done; /* Set to 1 to stop monitor thread */ char *monitor_uri; /* MONITOR-PRINTER-STATE URI */ useconds_t monitor_delay, /* MONITOR-PRINTER-STATE DELAY value, if any */ monitor_interval; /* MONITOR-PRINTER-STATE DELAY interval */ int num_monitor_expects; /* Number MONITOR-PRINTER-STATE EXPECTs */ ipptool_expect_t monitor_expects[MAX_MONITOR]; /* MONITOR-PRINTER-STATE EXPECTs */ } ipptool_test_t; /* * Globals... */ static int Cancel = 0; /* Cancel test? */ /* * Local functions... */ static void add_stringf(cups_array_t *a, const char *s, ...) _CUPS_FORMAT(2, 3); static int compare_uris(const char *a, const char *b); static void copy_hex_string(char *buffer, unsigned char *data, int datalen, size_t bufsize); static void *do_monitor_printer_state(ipptool_test_t *data); static int do_test(_ipp_file_t *f, ipptool_test_t *data); static int do_tests(const char *testfile, ipptool_test_t *data); static int error_cb(_ipp_file_t *f, ipptool_test_t *data, const char *error); static int expect_matches(ipptool_expect_t *expect, ipp_attribute_t *attr); static char *get_filename(const char *testfile, char *dst, const char *src, size_t dstsize); static const char *get_string(ipp_attribute_t *attr, int element, int flags, char *buffer, size_t bufsize); static void init_data(ipptool_test_t *data); static char *iso_date(const ipp_uchar_t *date); static int parse_monitor_printer_state(_ipp_file_t *f, ipptool_test_t *data); static void pause_message(const char *message); static void print_attr(cups_file_t *outfile, ipptool_output_t output, ipp_attribute_t *attr, ipp_tag_t *group); static ipp_attribute_t *print_csv(ipptool_test_t *data, ipp_t *ipp, ipp_attribute_t *attr, int num_displayed, char **displayed, size_t *widths); static void print_fatal_error(ipptool_test_t *data, const char *s, ...) _CUPS_FORMAT(2, 3); static void print_ippserver_attr(ipptool_test_t *data, ipp_attribute_t *attr, int indent); static void print_ippserver_string(ipptool_test_t *data, const char *s, size_t len); static void print_json_attr(ipptool_test_t *data, ipp_attribute_t *attr, int indent); static void print_json_string(ipptool_test_t *data, const char *s, size_t len); static ipp_attribute_t *print_line(ipptool_test_t *data, ipp_t *ipp, ipp_attribute_t *attr, int num_displayed, char **displayed, size_t *widths); static void print_xml_header(ipptool_test_t *data); static void print_xml_string(cups_file_t *outfile, const char *element, const char *s); static void print_xml_trailer(ipptool_test_t *data, int success, const char *message); #ifndef _WIN32 static void sigterm_handler(int sig); #endif /* _WIN32 */ static int timeout_cb(http_t *http, void *user_data); static int token_cb(_ipp_file_t *f, _ipp_vars_t *vars, ipptool_test_t *data, const char *token); static void usage(void) _CUPS_NORETURN; static int with_distinct_values(cups_array_t *errors, ipp_attribute_t *attr); static const char *with_flags_string(int flags); static int with_value(ipptool_test_t *data, cups_array_t *errors, char *value, int flags, ipp_attribute_t *attr, char *matchbuf, size_t matchlen); static int with_value_from(cups_array_t *errors, ipp_attribute_t *fromattr, ipp_attribute_t *attr, char *matchbuf, size_t matchlen); /* * 'main()' - Parse options and do tests. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int status; /* Status of tests... */ char *opt, /* Current option */ name[1024], /* Name/value buffer */ *value, /* Pointer to value */ filename[1024], /* Real filename */ testname[1024]; /* Real test filename */ const char *ext, /* Extension on filename */ *testfile; /* Test file to use */ int interval, /* Test interval in microseconds */ repeat; /* Repeat count */ _ipp_vars_t vars; /* Variables */ ipptool_test_t data; /* Test data */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ #ifndef _WIN32 /* * Catch SIGINT and SIGTERM... */ signal(SIGINT, sigterm_handler); signal(SIGTERM, sigterm_handler); #endif /* !_WIN32 */ /* * Initialize the locale and variables... */ _cupsSetLocale(argv); init_data(&data); _ippVarsInit(&vars, NULL, (_ipp_ferror_cb_t)error_cb, (_ipp_ftoken_cb_t)token_cb); data.vars = &vars; _ippVarsSet(data.vars, "date-start", iso_date(ippTimeToDate(time(NULL)))); /* * We need at least: * * ipptool URI testfile */ interval = 0; repeat = 0; status = 0; testfile = NULL; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) { usage(); } else if (!strcmp(argv[i], "--ippserver")) { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("ipptool: Missing filename for \"--ippserver\".")); usage(); } if (data.outfile != cupsFileStdout()) usage(); if ((data.outfile = cupsFileOpen(argv[i], "w")) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to open \"%s\": %s"), "ipptool", argv[i], strerror(errno)); exit(1); } data.output = IPPTOOL_OUTPUT_IPPSERVER; } else if (!strcmp(argv[i], "--stop-after-include-error")) { data.stop_after_include_error = 1; } else if (!strcmp(argv[i], "--version")) { puts(CUPS_SVERSION); return (0); } else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case '4' : /* Connect using IPv4 only */ data.family = AF_INET; break; #ifdef AF_INET6 case '6' : /* Connect using IPv6 only */ data.family = AF_INET6; break; #endif /* AF_INET6 */ case 'C' : /* Enable HTTP chunking */ data.def_transfer = IPPTOOL_TRANSFER_CHUNKED; break; case 'E' : /* Encrypt with TLS */ #ifdef HAVE_TLS data.encryption = HTTP_ENCRYPT_REQUIRED; #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'I' : /* Ignore errors */ data.def_ignore_errors = 1; break; case 'L' : /* Disable HTTP chunking */ data.def_transfer = IPPTOOL_TRANSFER_LENGTH; break; case 'P' : /* Output to plist file */ i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Missing filename for \"-P\"."), "ipptool"); usage(); } if (data.outfile != cupsFileStdout()) usage(); if ((data.outfile = cupsFileOpen(argv[i], "w")) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to open \"%s\": %s"), "ipptool", argv[i], strerror(errno)); exit(1); } data.output = IPPTOOL_OUTPUT_PLIST; if (interval || repeat) { _cupsLangPuts(stderr, _("ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\".")); usage(); } break; case 'R' : /* Repeat on server-error-busy */ data.repeat_on_busy = 1; break; case 'S' : /* Encrypt with SSL */ #ifdef HAVE_TLS data.encryption = HTTP_ENCRYPT_ALWAYS; #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), "ipptool"); #endif /* HAVE_TLS */ break; case 'T' : /* Set timeout */ i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Missing timeout for \"-T\"."), "ipptool"); usage(); } data.timeout = _cupsStrScand(argv[i], NULL, localeconv()); break; case 'V' : /* Set IPP version */ i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Missing version for \"-V\"."), "ipptool"); usage(); } if (!strcmp(argv[i], "1.0")) { data.def_version = 10; } else if (!strcmp(argv[i], "1.1")) { data.def_version = 11; } else if (!strcmp(argv[i], "2.0")) { data.def_version = 20; } else if (!strcmp(argv[i], "2.1")) { data.def_version = 21; } else if (!strcmp(argv[i], "2.2")) { data.def_version = 22; } else { _cupsLangPrintf(stderr, _("%s: Bad version %s for \"-V\"."), "ipptool", argv[i]); usage(); } break; case 'X' : /* Produce XML output */ data.output = IPPTOOL_OUTPUT_PLIST; if (interval || repeat) { _cupsLangPuts(stderr, _("ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\".")); usage(); } break; case 'c' : /* CSV output */ data.output = IPPTOOL_OUTPUT_CSV; break; case 'd' : /* Define a variable */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("ipptool: Missing name=value for \"-d\".")); usage(); } strlcpy(name, argv[i], sizeof(name)); if ((value = strchr(name, '=')) != NULL) *value++ = '\0'; else value = name + strlen(name); _ippVarsSet(data.vars, name, value); break; case 'f' : /* Set the default test filename */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("ipptool: Missing filename for \"-f\".")); usage(); } if (access(argv[i], 0)) { /* * Try filename.gz... */ snprintf(filename, sizeof(filename), "%s.gz", argv[i]); if (access(filename, 0) && filename[0] != '/' #ifdef _WIN32 && (!isalpha(filename[0] & 255) || filename[1] != ':') #endif /* _WIN32 */ ) { snprintf(filename, sizeof(filename), "%s/ipptool/%s", cg->cups_datadir, argv[i]); if (access(filename, 0)) { snprintf(filename, sizeof(filename), "%s/ipptool/%s.gz", cg->cups_datadir, argv[i]); if (access(filename, 0)) strlcpy(filename, argv[i], sizeof(filename)); } } } else strlcpy(filename, argv[i], sizeof(filename)); _ippVarsSet(data.vars, "filename", filename); if ((ext = strrchr(filename, '.')) != NULL) { /* * Guess the MIME media type based on the extension... */ if (!_cups_strcasecmp(ext, ".gif")) _ippVarsSet(data.vars, "filetype", "image/gif"); else if (!_cups_strcasecmp(ext, ".htm") || !_cups_strcasecmp(ext, ".htm.gz") || !_cups_strcasecmp(ext, ".html") || !_cups_strcasecmp(ext, ".html.gz")) _ippVarsSet(data.vars, "filetype", "text/html"); else if (!_cups_strcasecmp(ext, ".jpg") || !_cups_strcasecmp(ext, ".jpeg")) _ippVarsSet(data.vars, "filetype", "image/jpeg"); else if (!_cups_strcasecmp(ext, ".pcl") || !_cups_strcasecmp(ext, ".pcl.gz")) _ippVarsSet(data.vars, "filetype", "application/vnd.hp-PCL"); else if (!_cups_strcasecmp(ext, ".pdf")) _ippVarsSet(data.vars, "filetype", "application/pdf"); else if (!_cups_strcasecmp(ext, ".png")) _ippVarsSet(data.vars, "filetype", "image/png"); else if (!_cups_strcasecmp(ext, ".ps") || !_cups_strcasecmp(ext, ".ps.gz")) _ippVarsSet(data.vars, "filetype", "application/postscript"); else if (!_cups_strcasecmp(ext, ".pwg") || !_cups_strcasecmp(ext, ".pwg.gz") || !_cups_strcasecmp(ext, ".ras") || !_cups_strcasecmp(ext, ".ras.gz")) _ippVarsSet(data.vars, "filetype", "image/pwg-raster"); else if (!_cups_strcasecmp(ext, ".tif") || !_cups_strcasecmp(ext, ".tiff")) _ippVarsSet(data.vars, "filetype", "image/tiff"); else if (!_cups_strcasecmp(ext, ".txt") || !_cups_strcasecmp(ext, ".txt.gz")) _ippVarsSet(data.vars, "filetype", "text/plain"); else if (!_cups_strcasecmp(ext, ".urf") || !_cups_strcasecmp(ext, ".urf.gz")) _ippVarsSet(data.vars, "filetype", "image/urf"); else if (!_cups_strcasecmp(ext, ".xps")) _ippVarsSet(data.vars, "filetype", "application/openxps"); else _ippVarsSet(data.vars, "filetype", "application/octet-stream"); } else { /* * Use the "auto-type" MIME media type... */ _ippVarsSet(data.vars, "filetype", "application/octet-stream"); } break; case 'h' : /* Validate response headers */ data.validate_headers = 1; break; case 'i' : /* Test every N seconds */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("ipptool: Missing seconds for \"-i\".")); usage(); } else { interval = (int)(_cupsStrScand(argv[i], NULL, localeconv()) * 1000000.0); if (interval <= 0) { _cupsLangPuts(stderr, _("ipptool: Invalid seconds for \"-i\".")); usage(); } } if ((data.output == IPPTOOL_OUTPUT_PLIST || data.output == IPPTOOL_OUTPUT_IPPSERVER) && interval) { _cupsLangPuts(stderr, _("ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", and \"-X\".")); usage(); } break; case 'j' : /* JSON output */ data.output = IPPTOOL_OUTPUT_JSON; break; case 'l' : /* List as a table */ data.output = IPPTOOL_OUTPUT_LIST; break; case 'n' : /* Repeat count */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("ipptool: Missing count for \"-n\".")); usage(); } else repeat = atoi(argv[i]); if ((data.output == IPPTOOL_OUTPUT_PLIST || data.output == IPPTOOL_OUTPUT_IPPSERVER) && repeat) { _cupsLangPuts(stderr, _("ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", and \"-X\".")); usage(); } break; case 'q' : /* Be quiet */ data.output = IPPTOOL_OUTPUT_QUIET; break; case 't' : /* CUPS test output */ data.output = IPPTOOL_OUTPUT_TEST; break; case 'v' : /* Be verbose */ data.verbosity ++; break; default : _cupsLangPrintf(stderr, _("%s: Unknown option \"-%c\"."), "ipptool", *opt); usage(); } } } else if (!strncmp(argv[i], "ipp://", 6) || !strncmp(argv[i], "http://", 7) #ifdef HAVE_TLS || !strncmp(argv[i], "ipps://", 7) || !strncmp(argv[i], "https://", 8) #endif /* HAVE_TLS */ ) { /* * Set URI... */ if (data.vars->uri) { _cupsLangPuts(stderr, _("ipptool: May only specify a single URI.")); usage(); } #ifdef HAVE_TLS if (!strncmp(argv[i], "ipps://", 7) || !strncmp(argv[i], "https://", 8)) data.encryption = HTTP_ENCRYPT_ALWAYS; #endif /* HAVE_TLS */ if (!_ippVarsSet(data.vars, "uri", argv[i])) { _cupsLangPrintf(stderr, _("ipptool: Bad URI \"%s\"."), argv[i]); return (1); } if (data.vars->username[0] && data.vars->password) cupsSetPasswordCB2(_ippVarsPasswordCB, data.vars); } else { /* * Run test... */ if (!data.vars->uri) { _cupsLangPuts(stderr, _("ipptool: URI required before test file.")); _cupsLangPuts(stderr, argv[i]); usage(); } if (access(argv[i], 0) && argv[i][0] != '/' #ifdef _WIN32 && (!isalpha(argv[i][0] & 255) || argv[i][1] != ':') #endif /* _WIN32 */ ) { snprintf(testname, sizeof(testname), "%s/ipptool/%s", cg->cups_datadir, argv[i]); if (access(testname, 0)) testfile = argv[i]; else testfile = testname; } else testfile = argv[i]; if (access(testfile, 0)) { _cupsLangPrintf(stderr, _("%s: Unable to open \"%s\": %s"), "ipptool", testfile, strerror(errno)); status = 1; } else if (!do_tests(testfile, &data)) status = 1; } } if (!data.vars->uri || !testfile) usage(); /* * Loop if the interval is set... */ if (data.output == IPPTOOL_OUTPUT_PLIST) print_xml_trailer(&data, !status, NULL); else if (interval > 0 && repeat > 0) { while (repeat > 1) { usleep((useconds_t)interval); do_tests(testfile, &data); repeat --; } } else if (interval > 0) { for (;;) { usleep((useconds_t)interval); do_tests(testfile, &data); } } if ((data.output == IPPTOOL_OUTPUT_TEST || (data.output == IPPTOOL_OUTPUT_PLIST && data.outfile)) && data.test_count > 1) { /* * Show a summary report if there were multiple tests... */ cupsFilePrintf(cupsFileStdout(), "\nSummary: %d tests, %d passed, %d failed, %d skipped\nScore: %d%%\n", data.test_count, data.pass_count, data.fail_count, data.skip_count, 100 * (data.pass_count + data.skip_count) / data.test_count); } cupsFileClose(data.outfile); /* * Exit... */ return (status); } /* * 'add_stringf()' - Add a formatted string to an array. */ static void add_stringf(cups_array_t *a, /* I - Array */ const char *s, /* I - Printf-style format string */ ...) /* I - Additional args as needed */ { char buffer[10240]; /* Format buffer */ va_list ap; /* Argument pointer */ /* * Don't bother is the array is NULL... */ if (!a) return; /* * Format the message... */ va_start(ap, s); vsnprintf(buffer, sizeof(buffer), s, ap); va_end(ap); /* * Add it to the array... */ cupsArrayAdd(a, buffer); } /* * 'compare_uris()' - Compare two URIs... */ static int /* O - Result of comparison */ compare_uris(const char *a, /* I - First URI */ const char *b) /* I - Second URI */ { char ascheme[32], /* Components of first URI */ auserpass[256], ahost[256], aresource[256]; int aport; char bscheme[32], /* Components of second URI */ buserpass[256], bhost[256], bresource[256]; int bport; char *ptr; /* Pointer into string */ int result; /* Result of comparison */ /* * Separate the URIs into their components... */ if (httpSeparateURI(HTTP_URI_CODING_ALL, a, ascheme, sizeof(ascheme), auserpass, sizeof(auserpass), ahost, sizeof(ahost), &aport, aresource, sizeof(aresource)) < HTTP_URI_STATUS_OK) return (-1); if (httpSeparateURI(HTTP_URI_CODING_ALL, b, bscheme, sizeof(bscheme), buserpass, sizeof(buserpass), bhost, sizeof(bhost), &bport, bresource, sizeof(bresource)) < HTTP_URI_STATUS_OK) return (-1); /* * Strip trailing dots from the host components, if present... */ if ((ptr = ahost + strlen(ahost) - 1) > ahost && *ptr == '.') *ptr = '\0'; if ((ptr = bhost + strlen(bhost) - 1) > bhost && *ptr == '.') *ptr = '\0'; /* * Compare each component... */ if ((result = _cups_strcasecmp(ascheme, bscheme)) != 0) return (result); if ((result = strcmp(auserpass, buserpass)) != 0) return (result); if ((result = _cups_strcasecmp(ahost, bhost)) != 0) return (result); if (aport != bport) return (aport - bport); if (!_cups_strcasecmp(ascheme, "mailto") || !_cups_strcasecmp(ascheme, "urn")) return (_cups_strcasecmp(aresource, bresource)); else return (strcmp(aresource, bresource)); } /* * 'copy_hex_string()' - Copy an octetString to a C string and encode as hex if * needed. */ static void copy_hex_string(char *buffer, /* I - String buffer */ unsigned char *data, /* I - octetString data */ int datalen, /* I - octetString length */ size_t bufsize) /* I - Size of string buffer */ { char *bufptr, /* Pointer into string buffer */ *bufend = buffer + bufsize - 2; /* End of string buffer */ unsigned char *dataptr, /* Pointer into octetString data */ *dataend = data + datalen; /* End of octetString data */ static const char *hexdigits = "0123456789ABCDEF"; /* Hex digits */ /* * First see if there are any non-ASCII bytes in the octetString... */ for (dataptr = data; dataptr < dataend; dataptr ++) if (*dataptr < 0x20 || *dataptr >= 0x7f) break; if (dataptr < dataend) { /* * Yes, encode as hex... */ *buffer = '<'; for (bufptr = buffer + 1, dataptr = data; bufptr < bufend && dataptr < dataend; dataptr ++) { *bufptr++ = hexdigits[*dataptr >> 4]; *bufptr++ = hexdigits[*dataptr & 15]; } if (bufptr < bufend) *bufptr++ = '>'; *bufptr = '\0'; } else { /* * No, copy as a string... */ if ((size_t)datalen > bufsize) datalen = (int)bufsize - 1; memcpy(buffer, data, (size_t)datalen); buffer[datalen] = '\0'; } } /* * 'do_monitor_printer_state()' - Do the MONITOR-PRINTER-STATE tests in the background. */ static void * // O - Thread exit status do_monitor_printer_state( ipptool_test_t *data) // I - Test data { int i, j; // Looping vars char scheme[32], // URI scheme userpass[32], // URI username:password host[256], // URI hostname/IP address resource[256]; // URI resource path int port; // URI port number http_encryption_t encryption; // Encryption to use http_t *http; // Connection to printer ipp_t *request, // IPP request *response = NULL; // IPP response http_status_t status; // Request status ipp_attribute_t *found; // Found attribute ipptool_expect_t *expect; // Current EXPECT test char buffer[131072]; // Copy buffer int num_pattrs; // Number of printer attributes const char *pattrs[100]; // Printer attributes we care about // Connect to the printer... if (httpSeparateURI(HTTP_URI_CODING_ALL, data->monitor_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { print_fatal_error(data, "Bad printer URI \"%s\".", data->monitor_uri); return (NULL); } if (!_cups_strcasecmp(scheme, "https") || !_cups_strcasecmp(scheme, "ipps") || port == 443) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = data->encryption; if ((http = httpConnect2(host, port, NULL, data->family, encryption, 1, 30000, NULL)) == NULL) { print_fatal_error(data, "Unable to connect to \"%s\" on port %d - %s", host, port, cupsLastErrorString()); return (0); } #ifdef HAVE_LIBZ httpSetDefaultField(http, HTTP_FIELD_ACCEPT_ENCODING, "deflate, gzip, identity"); #else httpSetDefaultField(http, HTTP_FIELD_ACCEPT_ENCODING, "identity"); #endif /* HAVE_LIBZ */ if (data->timeout > 0.0) httpSetTimeout(http, data->timeout, timeout_cb, NULL); // Wait for the initial delay as needed... if (data->monitor_delay) usleep(data->monitor_delay); // Create a query request that we'll reuse... request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetRequestId(request, data->request_id * 100 - 1); ippSetVersion(request, data->version / 10, data->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, data->monitor_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); for (i = data->num_monitor_expects, expect = data->monitor_expects, num_pattrs = 0; i > 0; i --, expect ++) { // Add EXPECT attribute names... for (j = 0; j < num_pattrs; j ++) { if (!strcmp(expect->name, pattrs[j])) break; } if (j >= num_pattrs && num_pattrs < (int)(sizeof(pattrs) / sizeof(pattrs[0]))) pattrs[num_pattrs ++] = expect->name; } if (num_pattrs > 0) ippAddStrings(request, IPP_TAG_OPERATION, IPP_CONST_TAG(IPP_TAG_KEYWORD), "requested-attributes", num_pattrs, NULL, pattrs); // Loop until we need to stop... while (!data->monitor_done && !Cancel) { // Poll the printer state... ippSetRequestId(request, ippGetRequestId(request) + 1); if ((status = cupsSendRequest(http, request, resource, ippLength(request))) != HTTP_STATUS_ERROR) { response = cupsGetResponse(http, resource); status = httpGetStatus(http); } if (!data->monitor_done && !Cancel && status == HTTP_STATUS_ERROR && httpError(data->http) != EINVAL && #ifdef _WIN32 httpError(data->http) != WSAETIMEDOUT) #else httpError(data->http) != ETIMEDOUT) #endif // _WIN32 { if (httpReconnect2(http, 30000, NULL)) break; } else if (status == HTTP_STATUS_ERROR || status == HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED) { break; } else if (status != HTTP_STATUS_OK) { httpFlush(http); if (status == HTTP_STATUS_UNAUTHORIZED) continue; break; } for (i = data->num_monitor_expects, expect = data->monitor_expects; i > 0; i --, expect ++) { if (expect->if_defined && !_ippVarsGet(data->vars, expect->if_defined)) continue; if (expect->if_not_defined && _ippVarsGet(data->vars, expect->if_not_defined)) continue; found = ippFindAttribute(response, expect->name, IPP_TAG_ZERO); if ((found && expect->not_expect) || (!found && !(expect->not_expect || expect->optional)) || (found && !expect_matches(expect, found)) || (expect->in_group && ippGetGroupTag(found) != expect->in_group) || (expect->with_distinct && !with_distinct_values(NULL, found))) { if (expect->define_no_match) { _ippVarsSet(data->vars, expect->define_no_match, "1"); data->monitor_done = 1; } break; } if (found) ippAttributeString(found, buffer, sizeof(buffer)); if (found && !with_value(data, NULL, expect->with_value, expect->with_flags, found, buffer, sizeof(buffer))) { if (expect->define_no_match) { _ippVarsSet(data->vars, expect->define_no_match, "1"); data->monitor_done = 1; } break; } if (found && expect->count > 0 && ippGetCount(found) != expect->count) { if (expect->define_no_match) { _ippVarsSet(data->vars, expect->define_no_match, "1"); data->monitor_done = 1; } break; } if (found && expect->display_match && (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout()))) cupsFilePrintf(cupsFileStdout(), "CONT]\n\n%s\n\n %-68.68s [", expect->display_match, data->name); if (found && expect->define_match) { _ippVarsSet(data->vars, expect->define_match, "1"); data->monitor_done = 1; } if (found && expect->define_value) { if (!expect->with_value) { int last = ippGetCount(found) - 1; // Last element in attribute switch (ippGetValueTag(found)) { case IPP_TAG_ENUM : case IPP_TAG_INTEGER : snprintf(buffer, sizeof(buffer), "%d", ippGetInteger(found, last)); break; case IPP_TAG_BOOLEAN : if (ippGetBoolean(found, last)) strlcpy(buffer, "true", sizeof(buffer)); else strlcpy(buffer, "false", sizeof(buffer)); break; case IPP_TAG_CHARSET : case IPP_TAG_KEYWORD : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_URI : case IPP_TAG_URISCHEME : strlcpy(buffer, ippGetString(found, last, NULL), sizeof(buffer)); break; default : ippAttributeString(found, buffer, sizeof(buffer)); break; } } _ippVarsSet(data->vars, expect->define_value, buffer); data->monitor_done = 1; } } if (i == 0) data->monitor_done = 1; // All tests passed ippDelete(response); response = NULL; // Sleep between requests... if (data->monitor_done || Cancel) break; usleep(data->monitor_interval); } // Close the connection to the printer and return... httpClose(http); ippDelete(request); ippDelete(response); return (NULL); } /* * 'do_test()' - Do a single test from the test file. */ static int /* O - 1 on success, 0 on failure */ do_test(_ipp_file_t *f, /* I - IPP data file */ ipptool_test_t *data) /* I - Test data */ { int i, /* Looping var */ status_ok, /* Did we get a matching status? */ repeat_count = 0, /* Repeat count */ repeat_test; /* Repeat the test? */ ipptool_expect_t *expect; /* Current expected attribute */ ipp_t *request, /* IPP request */ *response; /* IPP response */ size_t length; /* Length of IPP request */ http_status_t status; /* HTTP status */ cups_array_t *a; /* Duplicate attribute array */ ipp_tag_t group; /* Current group */ ipp_attribute_t *attrptr, /* Attribute pointer */ *found; /* Found attribute */ char temp[1024]; /* Temporary string */ cups_file_t *reqfile; /* File to send */ ssize_t bytes; /* Bytes read/written */ char buffer[1024 * 1024]; /* Copy buffer */ size_t widths[200]; /* Width of columns */ const char *error; /* Current error */ if (Cancel) return (0); /* * Show any PAUSE message, as needed... */ if (data->pause[0]) { if (!data->skip_test && !data->pass_test) pause_message(data->pause); data->pause[0] = '\0'; } /* * Start the background thread as needed... */ if (data->monitor_uri) { data->monitor_done = 0; data->monitor_thread = _cupsThreadCreate((_cups_thread_func_t)do_monitor_printer_state, data); } /* * Take over control of the attributes in the request... */ request = f->attrs; f->attrs = NULL; /* * Submit the IPP request... */ data->test_count ++; ippSetVersion(request, data->version / 10, data->version % 10); ippSetRequestId(request, data->request_id); if (data->output == IPPTOOL_OUTPUT_PLIST) { cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "Name\n"); print_xml_string(data->outfile, "string", data->name); if (data->file_id[0]) { cupsFilePuts(data->outfile, "FileId\n"); print_xml_string(data->outfile, "string", data->file_id); } if (data->test_id[0]) { cupsFilePuts(data->outfile, "TestId\n"); print_xml_string(data->outfile, "string", data->test_id); } cupsFilePuts(data->outfile, "Version\n"); cupsFilePrintf(data->outfile, "%d.%d\n", data->version / 10, data->version % 10); cupsFilePuts(data->outfile, "Operation\n"); print_xml_string(data->outfile, "string", ippOpString(ippGetOperation(request))); cupsFilePuts(data->outfile, "RequestId\n"); cupsFilePrintf(data->outfile, "%d\n", data->request_id); cupsFilePuts(data->outfile, "RequestAttributes\n"); cupsFilePuts(data->outfile, "\n"); if (ippFirstAttribute(request)) { cupsFilePuts(data->outfile, "\n"); for (attrptr = ippFirstAttribute(request), group = ippGetGroupTag(attrptr); attrptr; attrptr = ippNextAttribute(request)) print_attr(data->outfile, data->output, attrptr, &group); cupsFilePuts(data->outfile, "\n"); } cupsFilePuts(data->outfile, "\n"); } if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { if (data->verbosity) { cupsFilePrintf(cupsFileStdout(), " %s:\n", ippOpString(ippGetOperation(request))); for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) print_attr(cupsFileStdout(), IPPTOOL_OUTPUT_TEST, attrptr, NULL); } cupsFilePrintf(cupsFileStdout(), " %-68.68s [", data->name); } if ((data->skip_previous && !data->prev_pass) || data->skip_test || data->pass_test) { if (!data->pass_test) data->skip_count ++; ippDelete(request); request = NULL; response = NULL; if (data->output == IPPTOOL_OUTPUT_PLIST) { cupsFilePuts(data->outfile, "Successful\n"); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "Skipped\n"); if (data->pass_test) cupsFilePuts(data->outfile, "\n"); else cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "StatusCode\n"); if (data->pass_test) print_xml_string(data->outfile, "string", "pass"); else print_xml_string(data->outfile, "string", "skip"); cupsFilePuts(data->outfile, "ResponseAttributes\n"); cupsFilePuts(data->outfile, "\n"); } if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { if (data->pass_test) cupsFilePuts(cupsFileStdout(), "PASS]\n"); else cupsFilePuts(cupsFileStdout(), "SKIP]\n"); } goto skip_error; } data->vars->password_tries = 0; do { if (data->delay > 0) usleep(data->delay); data->delay = data->repeat_interval; repeat_count ++; status = HTTP_STATUS_OK; if (data->transfer == IPPTOOL_TRANSFER_CHUNKED || (data->transfer == IPPTOOL_TRANSFER_AUTO && data->file[0])) { /* * Send request using chunking - a 0 length means "chunk". */ length = 0; } else { /* * Send request using content length... */ length = ippLength(request); if (data->file[0] && (reqfile = cupsFileOpen(data->file, "r")) != NULL) { /* * Read the file to get the uncompressed file size... */ while ((bytes = cupsFileRead(reqfile, buffer, sizeof(buffer))) > 0) length += (size_t)bytes; cupsFileClose(reqfile); } } /* * Send the request... */ data->prev_pass = 1; repeat_test = 0; response = NULL; if (status != HTTP_STATUS_ERROR) { while (!response && !Cancel && data->prev_pass) { ippSetRequestId(request, ++ data->request_id); status = cupsSendRequest(data->http, request, data->resource, length); #ifdef HAVE_LIBZ if (data->compression[0]) httpSetField(data->http, HTTP_FIELD_CONTENT_ENCODING, data->compression); #endif /* HAVE_LIBZ */ if (!Cancel && status == HTTP_STATUS_CONTINUE && ippGetState(request) == IPP_DATA && data->file[0]) { if ((reqfile = cupsFileOpen(data->file, "r")) != NULL) { while (!Cancel && (bytes = cupsFileRead(reqfile, buffer, sizeof(buffer))) > 0) { if ((status = cupsWriteRequestData(data->http, buffer, (size_t)bytes)) != HTTP_STATUS_CONTINUE) break; } cupsFileClose(reqfile); } else { snprintf(buffer, sizeof(buffer), "%s: %s", data->file, strerror(errno)); _cupsSetError(IPP_INTERNAL_ERROR, buffer, 0); status = HTTP_STATUS_ERROR; } } /* * Get the server's response... */ if (!Cancel && status != HTTP_STATUS_ERROR) { response = cupsGetResponse(data->http, data->resource); status = httpGetStatus(data->http); } if (!Cancel && status == HTTP_STATUS_ERROR && httpError(data->http) != EINVAL && #ifdef _WIN32 httpError(data->http) != WSAETIMEDOUT) #else httpError(data->http) != ETIMEDOUT) #endif /* _WIN32 */ { if (httpReconnect2(data->http, 30000, NULL)) data->prev_pass = 0; } else if (status == HTTP_STATUS_ERROR || status == HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED) { data->prev_pass = 0; break; } else if (status != HTTP_STATUS_OK) { httpFlush(data->http); if (status == HTTP_STATUS_UNAUTHORIZED) continue; break; } } } if (!Cancel && status == HTTP_STATUS_ERROR && httpError(data->http) != EINVAL && #ifdef _WIN32 httpError(data->http) != WSAETIMEDOUT) #else httpError(data->http) != ETIMEDOUT) #endif /* _WIN32 */ { if (httpReconnect2(data->http, 30000, NULL)) data->prev_pass = 0; } else if (status == HTTP_STATUS_ERROR) { if (!Cancel) httpReconnect2(data->http, 30000, NULL); data->prev_pass = 0; } else if (status != HTTP_STATUS_OK) { httpFlush(data->http); data->prev_pass = 0; } /* * Check results of request... */ cupsArrayClear(data->errors); if (httpGetVersion(data->http) != HTTP_1_1) { int version = (int)httpGetVersion(data->http); add_stringf(data->errors, "Bad HTTP version (%d.%d)", version / 100, version % 100); } if (data->validate_headers) { const char *header; /* HTTP header value */ if ((header = httpGetField(data->http, HTTP_FIELD_CONTENT_TYPE)) == NULL || _cups_strcasecmp(header, "application/ipp")) add_stringf(data->errors, "Bad HTTP Content-Type in response (%s)", header && *header ? header : ""); if ((header = httpGetField(data->http, HTTP_FIELD_DATE)) != NULL && *header && httpGetDateTime(header) == 0) add_stringf(data->errors, "Bad HTTP Date in response (%s)", header); } if (!response) { /* * No response, log error... */ add_stringf(data->errors, "IPP request failed with status %s (%s)", ippErrorString(cupsLastError()), cupsLastErrorString()); } else { /* * Collect common attribute values... */ if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) != NULL) { snprintf(temp, sizeof(temp), "%d", ippGetInteger(attrptr, 0)); _ippVarsSet(data->vars, "job-id", temp); } if ((attrptr = ippFindAttribute(response, "job-uri", IPP_TAG_URI)) != NULL) _ippVarsSet(data->vars, "job-uri", ippGetString(attrptr, 0, NULL)); if ((attrptr = ippFindAttribute(response, "notify-subscription-id", IPP_TAG_INTEGER)) != NULL) { snprintf(temp, sizeof(temp), "%d", ippGetInteger(attrptr, 0)); _ippVarsSet(data->vars, "notify-subscription-id", temp); } /* * Check response, validating groups and attributes and logging errors * as needed... */ if (ippGetState(response) != IPP_DATA) add_stringf(data->errors, "Missing end-of-attributes-tag in response (RFC 2910 section 3.5.1)"); if (data->version) { int major, minor; /* IPP version */ major = ippGetVersion(response, &minor); if (major != (data->version / 10) || minor != (data->version % 10)) add_stringf(data->errors, "Bad version %d.%d in response - expected %d.%d (RFC 8011 section 4.1.8).", major, minor, data->version / 10, data->version % 10); } if (ippGetRequestId(response) != data->request_id) add_stringf(data->errors, "Bad request ID %d in response - expected %d (RFC 8011 section 4.1.1)", ippGetRequestId(response), data->request_id); attrptr = ippFirstAttribute(response); if (!attrptr) { add_stringf(data->errors, "Missing first attribute \"attributes-charset (charset)\" in group operation-attributes-tag (RFC 8011 section 4.1.4)."); } else { if (!ippGetName(attrptr) || ippGetValueTag(attrptr) != IPP_TAG_CHARSET || ippGetGroupTag(attrptr) != IPP_TAG_OPERATION || ippGetCount(attrptr) != 1 ||strcmp(ippGetName(attrptr), "attributes-charset")) add_stringf(data->errors, "Bad first attribute \"%s (%s%s)\" in group %s, expected \"attributes-charset (charset)\" in group operation-attributes-tag (RFC 8011 section 4.1.4).", ippGetName(attrptr) ? ippGetName(attrptr) : "(null)", ippGetCount(attrptr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attrptr)), ippTagString(ippGetGroupTag(attrptr))); attrptr = ippNextAttribute(response); if (!attrptr) add_stringf(data->errors, "Missing second attribute \"attributes-natural-language (naturalLanguage)\" in group operation-attributes-tag (RFC 8011 section 4.1.4)."); else if (!ippGetName(attrptr) || ippGetValueTag(attrptr) != IPP_TAG_LANGUAGE || ippGetGroupTag(attrptr) != IPP_TAG_OPERATION || ippGetCount(attrptr) != 1 || strcmp(ippGetName(attrptr), "attributes-natural-language")) add_stringf(data->errors, "Bad first attribute \"%s (%s%s)\" in group %s, expected \"attributes-natural-language (naturalLanguage)\" in group operation-attributes-tag (RFC 8011 section 4.1.4).", ippGetName(attrptr) ? ippGetName(attrptr) : "(null)", ippGetCount(attrptr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attrptr)), ippTagString(ippGetGroupTag(attrptr))); } if ((attrptr = ippFindAttribute(response, "status-message", IPP_TAG_ZERO)) != NULL) { const char *status_message = ippGetString(attrptr, 0, NULL); /* String value */ if (ippGetValueTag(attrptr) != IPP_TAG_TEXT) add_stringf(data->errors, "status-message (text(255)) has wrong value tag %s (RFC 8011 section 4.1.6.2).", ippTagString(ippGetValueTag(attrptr))); if (ippGetGroupTag(attrptr) != IPP_TAG_OPERATION) add_stringf(data->errors, "status-message (text(255)) has wrong group tag %s (RFC 8011 section 4.1.6.2).", ippTagString(ippGetGroupTag(attrptr))); if (ippGetCount(attrptr) != 1) add_stringf(data->errors, "status-message (text(255)) has %d values (RFC 8011 section 4.1.6.2).", ippGetCount(attrptr)); if (status_message && strlen(status_message) > 255) add_stringf(data->errors, "status-message (text(255)) has bad length %d (RFC 8011 section 4.1.6.2).", (int)strlen(status_message)); } if ((attrptr = ippFindAttribute(response, "detailed-status-message", IPP_TAG_ZERO)) != NULL) { const char *detailed_status_message = ippGetString(attrptr, 0, NULL); /* String value */ if (ippGetValueTag(attrptr) != IPP_TAG_TEXT) add_stringf(data->errors, "detailed-status-message (text(MAX)) has wrong value tag %s (RFC 8011 section 4.1.6.3).", ippTagString(ippGetValueTag(attrptr))); if (ippGetGroupTag(attrptr) != IPP_TAG_OPERATION) add_stringf(data->errors, "detailed-status-message (text(MAX)) has wrong group tag %s (RFC 8011 section 4.1.6.3).", ippTagString(ippGetGroupTag(attrptr))); if (ippGetCount(attrptr) != 1) add_stringf(data->errors, "detailed-status-message (text(MAX)) has %d values (RFC 8011 section 4.1.6.3).", ippGetCount(attrptr)); if (detailed_status_message && strlen(detailed_status_message) > 1023) add_stringf(data->errors, "detailed-status-message (text(MAX)) has bad length %d (RFC 8011 section 4.1.6.3).", (int)strlen(detailed_status_message)); } a = cupsArrayNew((cups_array_func_t)strcmp, NULL); for (attrptr = ippFirstAttribute(response), group = ippGetGroupTag(attrptr); attrptr; attrptr = ippNextAttribute(response)) { if (ippGetGroupTag(attrptr) != group) { int out_of_order = 0; /* Are attribute groups out-of-order? */ cupsArrayClear(a); switch (ippGetGroupTag(attrptr)) { case IPP_TAG_ZERO : break; case IPP_TAG_OPERATION : out_of_order = 1; break; case IPP_TAG_UNSUPPORTED_GROUP : if (group != IPP_TAG_OPERATION) out_of_order = 1; break; case IPP_TAG_JOB : case IPP_TAG_PRINTER : if (group != IPP_TAG_OPERATION && group != IPP_TAG_UNSUPPORTED_GROUP) out_of_order = 1; break; case IPP_TAG_SUBSCRIPTION : if (group > ippGetGroupTag(attrptr) && group != IPP_TAG_DOCUMENT) out_of_order = 1; break; default : if (group > ippGetGroupTag(attrptr)) out_of_order = 1; break; } if (out_of_order) add_stringf(data->errors, "Attribute groups out of order (%s < %s)", ippTagString(ippGetGroupTag(attrptr)), ippTagString(group)); if (ippGetGroupTag(attrptr) != IPP_TAG_ZERO) group = ippGetGroupTag(attrptr); } if (!ippValidateAttribute(attrptr)) cupsArrayAdd(data->errors, (void *)cupsLastErrorString()); if (ippGetName(attrptr)) { if (cupsArrayFind(a, (void *)ippGetName(attrptr)) && data->output < IPPTOOL_OUTPUT_LIST) add_stringf(data->errors, "Duplicate \"%s\" attribute in %s group", ippGetName(attrptr), ippTagString(group)); cupsArrayAdd(a, (void *)ippGetName(attrptr)); } } cupsArrayDelete(a); /* * Now check the test-defined expected status-code and attribute * values... */ if (ippGetStatusCode(response) == IPP_STATUS_ERROR_BUSY && data->repeat_on_busy) { // Repeat on a server-error-busy status code... status_ok = 1; repeat_test = 1; } else { for (i = 0, status_ok = 0; i < data->num_statuses; i ++) { if (data->statuses[i].if_defined && !_ippVarsGet(data->vars, data->statuses[i].if_defined)) continue; if (data->statuses[i].if_not_defined && _ippVarsGet(data->vars, data->statuses[i].if_not_defined)) continue; if (ippGetStatusCode(response) == data->statuses[i].status) { status_ok = 1; if (data->statuses[i].repeat_match && repeat_count < data->statuses[i].repeat_limit) repeat_test = 1; if (data->statuses[i].define_match) _ippVarsSet(data->vars, data->statuses[i].define_match, "1"); } else { if (data->statuses[i].repeat_no_match && repeat_count < data->statuses[i].repeat_limit) repeat_test = 1; if (data->statuses[i].define_no_match) { _ippVarsSet(data->vars, data->statuses[i].define_no_match, "1"); status_ok = 1; } } } } if (!status_ok && data->num_statuses > 0) { for (i = 0; i < data->num_statuses; i ++) { if (data->statuses[i].if_defined && !_ippVarsGet(data->vars, data->statuses[i].if_defined)) continue; if (data->statuses[i].if_not_defined && _ippVarsGet(data->vars, data->statuses[i].if_not_defined)) continue; if (!data->statuses[i].repeat_match || repeat_count >= data->statuses[i].repeat_limit) add_stringf(data->errors, "EXPECTED: STATUS %s (got %s)", ippErrorString(data->statuses[i].status), ippErrorString(cupsLastError())); } if ((attrptr = ippFindAttribute(response, "status-message", IPP_TAG_TEXT)) != NULL) add_stringf(data->errors, "status-message=\"%s\"", ippGetString(attrptr, 0, NULL)); } for (i = data->num_expects, expect = data->expects; i > 0; i --, expect ++) { ipp_attribute_t *group_found; /* Found parent attribute for group tests */ if (expect->if_defined && !_ippVarsGet(data->vars, expect->if_defined)) continue; if (expect->if_not_defined && _ippVarsGet(data->vars, expect->if_not_defined)) continue; if ((found = ippFindAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL && expect->in_group && expect->in_group != ippGetGroupTag(found)) { while ((found = ippFindNextAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL) if (expect->in_group == ippGetGroupTag(found)) break; } do { group_found = found; if (expect->in_group && strchr(expect->name, '/')) { char group_name[256],/* Parent attribute name */ *group_ptr; /* Pointer into parent attribute name */ strlcpy(group_name, expect->name, sizeof(group_name)); if ((group_ptr = strchr(group_name, '/')) != NULL) *group_ptr = '\0'; group_found = ippFindAttribute(response, group_name, IPP_TAG_ZERO); } if ((found && expect->not_expect) || (!found && !(expect->not_expect || expect->optional)) || (found && !expect_matches(expect, found)) || (group_found && expect->in_group && ippGetGroupTag(group_found) != expect->in_group) || (expect->with_distinct && !with_distinct_values(NULL, found))) { if (expect->define_no_match) _ippVarsSet(data->vars, expect->define_no_match, "1"); else if (!expect->define_match && !expect->define_value) { if (found && expect->not_expect && !expect->with_value && !expect->with_value_from) add_stringf(data->errors, "NOT EXPECTED: %s", expect->name); else if (!found && !(expect->not_expect || expect->optional)) add_stringf(data->errors, "EXPECTED: %s", expect->name); else if (found) { if (!expect_matches(expect, found)) add_stringf(data->errors, "EXPECTED: %s OF-TYPE %s (got %s)", expect->name, expect->of_type, ippTagString(ippGetValueTag(found))); if (expect->in_group && ippGetGroupTag(group_found) != expect->in_group) add_stringf(data->errors, "EXPECTED: %s IN-GROUP %s (got %s).", expect->name, ippTagString(expect->in_group), ippTagString(ippGetGroupTag(group_found))); if (expect->with_distinct) with_distinct_values(data->errors, found); } } if (expect->repeat_no_match && repeat_count < expect->repeat_limit) repeat_test = 1; break; } if (found) ippAttributeString(found, buffer, sizeof(buffer)); if (found && expect->with_value_from && !with_value_from(NULL, ippFindAttribute(response, expect->with_value_from, IPP_TAG_ZERO), found, buffer, sizeof(buffer))) { if (expect->define_no_match) _ippVarsSet(data->vars, expect->define_no_match, "1"); else if (!expect->define_match && !expect->define_value && ((!expect->repeat_match && !expect->repeat_no_match) || repeat_count >= expect->repeat_limit)) { add_stringf(data->errors, "EXPECTED: %s WITH-VALUES-FROM %s", expect->name, expect->with_value_from); with_value_from(data->errors, ippFindAttribute(response, expect->with_value_from, IPP_TAG_ZERO), found, buffer, sizeof(buffer)); } if (expect->repeat_no_match && repeat_count < expect->repeat_limit) repeat_test = 1; break; } else if (found && !with_value(data, NULL, expect->with_value, expect->with_flags, found, buffer, sizeof(buffer))) { if (expect->define_no_match) _ippVarsSet(data->vars, expect->define_no_match, "1"); else if (!expect->define_match && !expect->define_value && !expect->repeat_match && (!expect->repeat_no_match || repeat_count >= expect->repeat_limit)) { if (expect->with_flags & IPPTOOL_WITH_REGEX) add_stringf(data->errors, "EXPECTED: %s %s /%s/", expect->name, with_flags_string(expect->with_flags), expect->with_value); else add_stringf(data->errors, "EXPECTED: %s %s \"%s\"", expect->name, with_flags_string(expect->with_flags), expect->with_value); with_value(data, data->errors, expect->with_value, expect->with_flags, found, buffer, sizeof(buffer)); } if (expect->repeat_no_match && repeat_count < expect->repeat_limit) repeat_test = 1; break; } if (found && expect->count > 0 && ippGetCount(found) != expect->count) { if (expect->define_no_match) _ippVarsSet(data->vars, expect->define_no_match, "1"); else if (!expect->define_match && !expect->define_value) { add_stringf(data->errors, "EXPECTED: %s COUNT %d (got %d)", expect->name, expect->count, ippGetCount(found)); } if (expect->repeat_no_match && repeat_count < expect->repeat_limit) repeat_test = 1; break; } if (found && expect->same_count_as) { attrptr = ippFindAttribute(response, expect->same_count_as, IPP_TAG_ZERO); if (!attrptr || ippGetCount(attrptr) != ippGetCount(found)) { if (expect->define_no_match) _ippVarsSet(data->vars, expect->define_no_match, "1"); else if (!expect->define_match && !expect->define_value) { if (!attrptr) add_stringf(data->errors, "EXPECTED: %s (%d values) SAME-COUNT-AS %s (not returned)", expect->name, ippGetCount(found), expect->same_count_as); else if (ippGetCount(attrptr) != ippGetCount(found)) add_stringf(data->errors, "EXPECTED: %s (%d values) SAME-COUNT-AS %s (%d values)", expect->name, ippGetCount(found), expect->same_count_as, ippGetCount(attrptr)); } if (expect->repeat_no_match && repeat_count < expect->repeat_limit) repeat_test = 1; break; } } if (found && expect->display_match && (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout()))) cupsFilePrintf(cupsFileStdout(), "\n%s\n\n", expect->display_match); if (found && expect->define_match) _ippVarsSet(data->vars, expect->define_match, "1"); if (found && expect->define_value) { if (!expect->with_value) { int last = ippGetCount(found) - 1; /* Last element in attribute */ switch (ippGetValueTag(found)) { case IPP_TAG_ENUM : case IPP_TAG_INTEGER : snprintf(buffer, sizeof(buffer), "%d", ippGetInteger(found, last)); break; case IPP_TAG_BOOLEAN : if (ippGetBoolean(found, last)) strlcpy(buffer, "true", sizeof(buffer)); else strlcpy(buffer, "false", sizeof(buffer)); break; case IPP_TAG_RESOLUTION : { int xres, /* Horizontal resolution */ yres; /* Vertical resolution */ ipp_res_t units; /* Resolution units */ xres = ippGetResolution(found, last, &yres, &units); if (xres == yres) snprintf(buffer, sizeof(buffer), "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(buffer, sizeof(buffer), "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_CHARSET : case IPP_TAG_KEYWORD : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_URI : case IPP_TAG_URISCHEME : strlcpy(buffer, ippGetString(found, last, NULL), sizeof(buffer)); break; default : ippAttributeString(found, buffer, sizeof(buffer)); break; } } _ippVarsSet(data->vars, expect->define_value, buffer); } if (found && expect->repeat_match && repeat_count < expect->repeat_limit) repeat_test = 1; } while (expect->expect_all && (found = ippFindNextAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL); } } /* * If we are going to repeat this test, display intermediate results... */ if (repeat_test) { if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { cupsFilePrintf(cupsFileStdout(), "%04d]\n", repeat_count); \ if (data->num_displayed > 0) { for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) { const char *attrname = ippGetName(attrptr); if (attrname) { for (i = 0; i < data->num_displayed; i ++) { if (!strcmp(data->displayed[i], attrname)) { print_attr(cupsFileStdout(), IPPTOOL_OUTPUT_TEST, attrptr, NULL); break; } } } } } } if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { cupsFilePrintf(cupsFileStdout(), " %-68.68s [", data->name); } ippDelete(response); response = NULL; } } while (repeat_test); ippDelete(request); request = NULL; if (cupsArrayCount(data->errors) > 0) data->prev_pass = data->pass = 0; if (data->prev_pass) data->pass_count ++; else data->fail_count ++; if (data->output == IPPTOOL_OUTPUT_PLIST) { cupsFilePuts(data->outfile, "Successful\n"); cupsFilePuts(data->outfile, data->prev_pass ? "\n" : "\n"); cupsFilePuts(data->outfile, "StatusCode\n"); print_xml_string(data->outfile, "string", ippErrorString(cupsLastError())); cupsFilePuts(data->outfile, "ResponseAttributes\n"); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); for (attrptr = ippFirstAttribute(response), group = ippGetGroupTag(attrptr); attrptr; attrptr = ippNextAttribute(response)) print_attr(data->outfile, data->output, attrptr, &group); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); } else if (data->output == IPPTOOL_OUTPUT_IPPSERVER && response) { for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) { if (!ippGetName(attrptr) || ippGetGroupTag(attrptr) != IPP_TAG_PRINTER) continue; print_ippserver_attr(data, attrptr, 0); } } else if (data->output == IPPTOOL_OUTPUT_JSON && response) { ipp_tag_t cur_tag = IPP_TAG_ZERO, /* Current group tag */ group_tag; /* Attribute's group tag */ cupsFilePuts(data->outfile, "[\n"); attrptr = ippFirstAttribute(response); while (attrptr) { group_tag = ippGetGroupTag(attrptr); if (group_tag && ippGetName(attrptr)) { if (group_tag != cur_tag) { if (cur_tag) cupsFilePuts(data->outfile, " },\n"); cupsFilePrintf(data->outfile, " {\n \"group-tag\": \"%s\",\n", ippTagString(group_tag)); cur_tag = group_tag; } print_json_attr(data, attrptr, 8); attrptr = ippNextAttribute(response); cupsFilePuts(data->outfile, ippGetName(attrptr) && ippGetGroupTag(attrptr) == cur_tag ? ",\n" : "\n"); } else { attrptr = ippNextAttribute(response); } } if (cur_tag) cupsFilePuts(data->outfile, " }\n"); cupsFilePuts(data->outfile, "]\n"); } if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { cupsFilePuts(cupsFileStdout(), data->prev_pass ? "PASS]\n" : "FAIL]\n"); if (!data->prev_pass || (data->verbosity && response)) { cupsFilePrintf(cupsFileStdout(), " RECEIVED: %lu bytes in response\n", (unsigned long)ippLength(response)); cupsFilePrintf(cupsFileStdout(), " status-code = %s (%s)\n", ippErrorString(cupsLastError()), cupsLastErrorString()); if (data->verbosity && response) { for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) print_attr(cupsFileStdout(), IPPTOOL_OUTPUT_TEST, attrptr, NULL); } } } else if (!data->prev_pass && data->output != IPPTOOL_OUTPUT_QUIET) fprintf(stderr, "%s\n", cupsLastErrorString()); if (data->prev_pass && data->output >= IPPTOOL_OUTPUT_LIST && !data->verbosity && data->num_displayed > 0) { size_t width; /* Length of value */ for (i = 0; i < data->num_displayed; i ++) { widths[i] = strlen(data->displayed[i]); for (attrptr = ippFindAttribute(response, data->displayed[i], IPP_TAG_ZERO); attrptr; attrptr = ippFindNextAttribute(response, data->displayed[i], IPP_TAG_ZERO)) { width = ippAttributeString(attrptr, NULL, 0); if (width > widths[i]) widths[i] = width; } } if (data->output == IPPTOOL_OUTPUT_CSV) print_csv(data, NULL, NULL, data->num_displayed, data->displayed, widths); else print_line(data, NULL, NULL, data->num_displayed, data->displayed, widths); attrptr = ippFirstAttribute(response); while (attrptr) { while (attrptr && ippGetGroupTag(attrptr) <= IPP_TAG_OPERATION) attrptr = ippNextAttribute(response); if (attrptr) { if (data->output == IPPTOOL_OUTPUT_CSV) attrptr = print_csv(data, response, attrptr, data->num_displayed, data->displayed, widths); else attrptr = print_line(data, response, attrptr, data->num_displayed, data->displayed, widths); while (attrptr && ippGetGroupTag(attrptr) > IPP_TAG_OPERATION) attrptr = ippNextAttribute(response); } } } else if (!data->prev_pass) { if (data->output == IPPTOOL_OUTPUT_PLIST) { cupsFilePuts(data->outfile, "Errors\n"); cupsFilePuts(data->outfile, "\n"); for (error = (char *)cupsArrayFirst(data->errors); error; error = (char *)cupsArrayNext(data->errors)) print_xml_string(data->outfile, "string", error); cupsFilePuts(data->outfile, "\n"); } if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) { for (error = (char *)cupsArrayFirst(data->errors); error; error = (char *)cupsArrayNext(data->errors)) cupsFilePrintf(cupsFileStdout(), " %s\n", error); } } if (data->num_displayed > 0 && !data->verbosity && response && (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout()))) { for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) { if (ippGetName(attrptr)) { for (i = 0; i < data->num_displayed; i ++) { if (!strcmp(data->displayed[i], ippGetName(attrptr))) { print_attr(data->outfile, data->output, attrptr, NULL); break; } } } } } skip_error: if (data->monitor_thread) { data->monitor_done = 1; _cupsThreadWait(data->monitor_thread); } if (data->output == IPPTOOL_OUTPUT_PLIST) cupsFilePuts(data->outfile, "\n"); ippDelete(response); response = NULL; for (i = 0; i < data->num_statuses; i ++) { free(data->statuses[i].if_defined); free(data->statuses[i].if_not_defined); free(data->statuses[i].define_match); free(data->statuses[i].define_no_match); } data->num_statuses = 0; for (i = data->num_expects, expect = data->expects; i > 0; i --, expect ++) { free(expect->name); free(expect->of_type); free(expect->same_count_as); free(expect->if_defined); free(expect->if_not_defined); free(expect->with_value); free(expect->define_match); free(expect->define_no_match); free(expect->define_value); free(expect->display_match); } data->num_expects = 0; for (i = 0; i < data->num_displayed; i ++) free(data->displayed[i]); data->num_displayed = 0; free(data->monitor_uri); data->monitor_uri = NULL; for (i = data->num_monitor_expects, expect = data->monitor_expects; i > 0; i --, expect ++) { free(expect->name); free(expect->of_type); free(expect->same_count_as); free(expect->if_defined); free(expect->if_not_defined); free(expect->with_value); free(expect->define_match); free(expect->define_no_match); free(expect->define_value); free(expect->display_match); } data->num_monitor_expects = 0; return (data->ignore_errors || data->prev_pass); } /* * 'do_tests()' - Do tests as specified in the test file. */ static int /* O - 1 on success, 0 on failure */ do_tests(const char *testfile, /* I - Test file to use */ ipptool_test_t *data) /* I - Test data */ { http_encryption_t encryption; /* Encryption mode */ /* * Connect to the printer/server... */ if (!_cups_strcasecmp(data->vars->scheme, "https") || !_cups_strcasecmp(data->vars->scheme, "ipps") || data->vars->port == 443) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = data->encryption; if ((data->http = httpConnect2(data->vars->host, data->vars->port, NULL, data->family, encryption, 1, 30000, NULL)) == NULL) { print_fatal_error(data, "Unable to connect to \"%s\" on port %d - %s", data->vars->host, data->vars->port, cupsLastErrorString()); return (0); } #ifdef HAVE_LIBZ httpSetDefaultField(data->http, HTTP_FIELD_ACCEPT_ENCODING, "deflate, gzip, identity"); #else httpSetDefaultField(data->http, HTTP_FIELD_ACCEPT_ENCODING, "identity"); #endif /* HAVE_LIBZ */ if (data->timeout > 0.0) httpSetTimeout(data->http, data->timeout, timeout_cb, NULL); /* * Run tests... */ _ippFileParse(data->vars, testfile, (void *)data); /* * Close connection and return... */ httpClose(data->http); data->http = NULL; return (data->pass); } /* * 'error_cb()' - Print/add an error message. */ static int /* O - 1 to continue, 0 to stop */ error_cb(_ipp_file_t *f, /* I - IPP file data */ ipptool_test_t *data, /* I - Test data */ const char *error) /* I - Error message */ { (void)f; print_fatal_error(data, "%s", error); return (1); } /* * 'expect_matches()' - Return true if the tag matches the specification. */ static int /* O - 1 if matches, 0 otherwise */ expect_matches( ipptool_expect_t *expect, /* I - Expected attribute */ ipp_attribute_t *attr) /* I - Attribute */ { int i, /* Looping var */ count, /* Number of values */ match; /* Match? */ char *of_type, /* Type name to match */ *paren, /* Pointer to opening parenthesis */ *next, /* Next name to match */ sep; /* Separator character */ ipp_tag_t value_tag; /* Syntax/value tag */ int lower, upper; /* Lower and upper bounds for syntax */ /* * If we don't expect a particular type, return immediately... */ if (!expect->of_type) return (1); /* * Parse the "of_type" value since the string can contain multiple attribute * types separated by "," or "|"... */ value_tag = ippGetValueTag(attr); count = ippGetCount(attr); for (of_type = expect->of_type, match = 0; !match && *of_type; of_type = next) { /* * Find the next separator, and set it (temporarily) to nul if present. */ for (next = of_type; *next && *next != '|' && *next != ','; next ++); if ((sep = *next) != '\0') *next = '\0'; /* * Support some meta-types to make it easier to write the test file. */ if ((paren = strchr(of_type, '(')) != NULL) { char *ptr; // Pointer into syntax string *paren = '\0'; if (!strncmp(paren + 1, "MIN:", 4)) { lower = INT_MIN; ptr = paren + 5; } else if ((ptr = strchr(paren + 1, ':')) != NULL) { lower = atoi(paren + 1); } else { lower = 0; ptr = paren + 1; } if (!strcmp(ptr, "MAX)")) upper = INT_MAX; else upper = atoi(ptr); } else { lower = INT_MIN; upper = INT_MAX; } if (!strcmp(of_type, "text")) { if (upper == INT_MAX) upper = 1023; if (value_tag == IPP_TAG_TEXTLANG || value_tag == IPP_TAG_TEXT) { for (i = 0; i < count; i ++) { if (strlen(ippGetString(attr, i, NULL)) > (size_t)upper) break; } match = (i == count); } } else if (!strcmp(of_type, "name")) { if (upper == INT_MAX) upper = 255; if (value_tag == IPP_TAG_NAMELANG || value_tag == IPP_TAG_NAME) { for (i = 0; i < count; i ++) { if (strlen(ippGetString(attr, i, NULL)) > (size_t)upper) break; } match = (i == count); } } else if (!strcmp(of_type, "collection")) { match = value_tag == IPP_TAG_BEGIN_COLLECTION; } else if (value_tag == ippTagValue(of_type)) { switch (value_tag) { case IPP_TAG_KEYWORD : case IPP_TAG_URI : if (upper == INT_MAX) { if (value_tag == IPP_TAG_KEYWORD) upper = 255; else upper = 1023; } for (i = 0; i < count; i ++) { if (strlen(ippGetString(attr, i, NULL)) > (size_t)upper) break; } match = (i == count); break; case IPP_TAG_STRING : if (upper == INT_MAX) upper = 1023; for (i = 0; i < count; i ++) { int datalen; // Length of octetString value ippGetOctetString(attr, i, &datalen); if (datalen > upper) break; } match = (i == count); break; case IPP_TAG_INTEGER : for (i = 0; i < count; i ++) { int value = ippGetInteger(attr, i); // Integer value if (value < lower || value > upper) break; } match = (i == count); break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int vupper, vlower = ippGetRange(attr, i, &vupper); // Range value if (vlower < lower || vlower > upper || vupper < lower || vupper > upper) break; } match = (i == count); break; default : // No other constraints, so this is a match match = 1; break; } } /* * Restore the separators if we have them... */ if (paren) *paren = '('; if (sep) *next++ = sep; } return (match); } /* * 'get_filename()' - Get a filename based on the current test file. */ static char * /* O - Filename */ get_filename(const char *testfile, /* I - Current test file */ char *dst, /* I - Destination filename */ const char *src, /* I - Source filename */ size_t dstsize) /* I - Size of destination buffer */ { char *dstptr; /* Pointer into destination */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ if (*src == '<' && src[strlen(src) - 1] == '>') { /* * Map to CUPS_DATADIR/ipptool/filename... */ snprintf(dst, dstsize, "%s/ipptool/%s", cg->cups_datadir, src + 1); dstptr = dst + strlen(dst) - 1; if (*dstptr == '>') *dstptr = '\0'; } else if (!access(src, R_OK) || *src == '/' #ifdef _WIN32 || (isalpha(*src & 255) && src[1] == ':') #endif /* _WIN32 */ ) { /* * Use the path as-is... */ strlcpy(dst, src, dstsize); } else { /* * Make path relative to testfile... */ strlcpy(dst, testfile, dstsize); if ((dstptr = strrchr(dst, '/')) != NULL) dstptr ++; else dstptr = dst; /* Should never happen */ strlcpy(dstptr, src, dstsize - (size_t)(dstptr - dst)); #if _WIN32 if (_access(dst, 0)) { /* * Not available relative to the testfile, see if it can be found on the * desktop... */ const char *userprofile = getenv("USERPROFILE"); /* User home directory */ if (userprofile) snprintf(dst, dstsize, "%s/Desktop/%s", userprofile, src); } #endif /* _WIN32 */ } return (dst); } /* * 'get_string()' - Get a pointer to a string value or the portion of interest. */ static const char * /* O - Pointer to string */ get_string(ipp_attribute_t *attr, /* I - IPP attribute */ int element, /* I - Element to fetch */ int flags, /* I - Value ("with") flags */ char *buffer, /* I - Temporary buffer */ size_t bufsize) /* I - Size of temporary buffer */ { const char *value; /* Value */ char *ptr, /* Pointer into value */ scheme[256], /* URI scheme */ userpass[256], /* Username/password */ hostname[256], /* Hostname */ resource[1024]; /* Resource */ int port; /* Port number */ value = ippGetString(attr, element, NULL); if (flags & IPPTOOL_WITH_HOSTNAME) { if (httpSeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), buffer, (int)bufsize, &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) buffer[0] = '\0'; ptr = buffer + strlen(buffer) - 1; if (ptr >= buffer && *ptr == '.') *ptr = '\0'; /* Drop trailing "." */ return (buffer); } else if (flags & IPPTOOL_WITH_RESOURCE) { if (httpSeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, buffer, (int)bufsize) < HTTP_URI_STATUS_OK) buffer[0] = '\0'; return (buffer); } else if (flags & IPPTOOL_WITH_SCHEME) { if (httpSeparateURI(HTTP_URI_CODING_ALL, value, buffer, (int)bufsize, userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) buffer[0] = '\0'; return (buffer); } else if (ippGetValueTag(attr) == IPP_TAG_URI && (!strncmp(value, "ipp://", 6) || !strncmp(value, "http://", 7) || !strncmp(value, "ipps://", 7) || !strncmp(value, "https://", 8))) { http_uri_status_t status = httpSeparateURI(HTTP_URI_CODING_ALL, value, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (status < HTTP_URI_STATUS_OK) { /* * Bad URI... */ buffer[0] = '\0'; } else { /* * Normalize URI with no trailing dot... */ if ((ptr = hostname + strlen(hostname) - 1) >= hostname && *ptr == '.') *ptr = '\0'; httpAssembleURI(HTTP_URI_CODING_ALL, buffer, (int)bufsize, scheme, userpass, hostname, port, resource); } return (buffer); } else return (value); } /* * 'init_data()' - Initialize test data. */ static void init_data(ipptool_test_t *data) /* I - Data */ { memset(data, 0, sizeof(ipptool_test_t)); data->output = IPPTOOL_OUTPUT_LIST; data->outfile = cupsFileStdout(); data->family = AF_UNSPEC; data->def_transfer = IPPTOOL_TRANSFER_AUTO; data->def_version = 11; data->errors = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); data->pass = 1; data->prev_pass = 1; data->request_id = (CUPS_RAND() % 1000) * 137; data->show_header = 1; } /* * 'iso_date()' - Return an ISO 8601 date/time string for the given IPP dateTime * value. */ static char * /* O - ISO 8601 date/time string */ iso_date(const ipp_uchar_t *date) /* I - IPP (RFC 1903) date/time value */ { time_t utctime; /* UTC time since 1970 */ struct tm utcdate; /* UTC date/time */ static char buffer[255]; /* String buffer */ utctime = ippDateToTime(date); gmtime_r(&utctime, &utcdate); snprintf(buffer, sizeof(buffer), "%04d-%02d-%02dT%02d:%02d:%02dZ", utcdate.tm_year + 1900, utcdate.tm_mon + 1, utcdate.tm_mday, utcdate.tm_hour, utcdate.tm_min, utcdate.tm_sec); return (buffer); } /* * 'parse_monitor_printer_state()' - Parse the MONITOR-PRINTER-STATE directive. * * MONITOR-PRINTER-STATE [printer-uri] { * DELAY nnn * EXPECT attribute-name ... * } */ static int /* O - 1 to continue, 0 to stop */ parse_monitor_printer_state( _ipp_file_t *f, /* I - IPP file data */ ipptool_test_t *data) /* I - Test data */ { char token[256], /* Token string */ name[1024], /* Name string */ temp[1024], /* Temporary string */ value[1024], /* Value string */ *ptr; /* Pointer into value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing printer URI on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (strcmp(temp, "{")) { // Got a printer URI so copy it... _ippVarsExpand(data->vars, value, temp, sizeof(value)); data->monitor_uri = strdup(value); // Then see if we have an opening brace... if (!_ippFileReadToken(f, temp, sizeof(temp)) || strcmp(temp, "{")) { print_fatal_error(data, "Missing opening brace on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else { // Use the default printer URI... data->monitor_uri = strdup(data->vars->uri); } // Loop until we get a closing brace... while (_ippFileReadToken(f, token, sizeof(token))) { if (_cups_strcasecmp(token, "COUNT") && _cups_strcasecmp(token, "DEFINE-MATCH") && _cups_strcasecmp(token, "DEFINE-NO-MATCH") && _cups_strcasecmp(token, "DEFINE-VALUE") && _cups_strcasecmp(token, "DISPLAY-MATCH") && _cups_strcasecmp(token, "IF-DEFINED") && _cups_strcasecmp(token, "IF-NOT-DEFINED") && _cups_strcasecmp(token, "IN-GROUP") && _cups_strcasecmp(token, "OF-TYPE") && _cups_strcasecmp(token, "WITH-DISTINCT-VALUES") && _cups_strcasecmp(token, "WITH-VALUE")) data->last_expect = NULL; if (!strcmp(token, "}")) return (1); else if (!_cups_strcasecmp(token, "EXPECT")) { /* * Expected attributes... */ if (data->num_monitor_expects >= (int)(sizeof(data->monitor_expects) / sizeof(data->monitor_expects[0]))) { print_fatal_error(data, "Too many EXPECT's on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (!_ippFileReadToken(f, name, sizeof(name))) { print_fatal_error(data, "Missing EXPECT name on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->last_expect = data->monitor_expects + data->num_monitor_expects; data->num_monitor_expects ++; memset(data->last_expect, 0, sizeof(ipptool_expect_t)); data->last_expect->repeat_limit = 1000; if (name[0] == '!') { data->last_expect->not_expect = 1; data->last_expect->name = strdup(name + 1); } else if (name[0] == '?') { data->last_expect->optional = 1; data->last_expect->name = strdup(name + 1); } else data->last_expect->name = strdup(name); } else if (!_cups_strcasecmp(token, "COUNT")) { int count; /* Count value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing COUNT number on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((count = atoi(temp)) <= 0) { print_fatal_error(data, "Bad COUNT \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->count = count; } else { print_fatal_error(data, "COUNT without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-MATCH variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_match = strdup(temp); } else { print_fatal_error(data, "DEFINE-MATCH without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-NO-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-NO-MATCH variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_no_match = strdup(temp); } else { print_fatal_error(data, "DEFINE-NO-MATCH without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-VALUE")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-VALUE variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_value = strdup(temp); } else { print_fatal_error(data, "DEFINE-VALUE without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DISPLAY-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DISPLAY-MATCH message on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->display_match = strdup(temp); } else { print_fatal_error(data, "DISPLAY-MATCH without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DELAY")) { /* * Delay before operation... */ double dval; /* Delay value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DELAY value on line %d of \"%s\".", f->linenum, f->filename); return (0); } _ippVarsExpand(data->vars, value, temp, sizeof(value)); if ((dval = _cupsStrScand(value, &ptr, localeconv())) < 0.0 || (*ptr && *ptr != ',')) { print_fatal_error(data, "Bad DELAY value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } data->monitor_delay = (useconds_t)(1000000.0 * dval); if (*ptr == ',') { if ((dval = _cupsStrScand(ptr + 1, &ptr, localeconv())) <= 0.0 || *ptr) { print_fatal_error(data, "Bad DELAY value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } data->monitor_interval = (useconds_t)(1000000.0 * dval); } else data->monitor_interval = data->monitor_delay; } else if (!_cups_strcasecmp(token, "OF-TYPE")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing OF-TYPE value tag(s) on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->of_type = strdup(temp); } else { print_fatal_error(data, "OF-TYPE without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IN-GROUP")) { ipp_tag_t in_group; /* IN-GROUP value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IN-GROUP group tag on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((in_group = ippTagValue(temp)) == IPP_TAG_ZERO || in_group >= IPP_TAG_UNSUPPORTED_VALUE) { print_fatal_error(data, "Bad IN-GROUP group tag \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } else if (data->last_expect) { data->last_expect->in_group = in_group; } else { print_fatal_error(data, "IN-GROUP without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IF-DEFINED")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IF-DEFINED name on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->if_defined = strdup(temp); } else { print_fatal_error(data, "IF-DEFINED without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IF-NOT-DEFINED")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IF-NOT-DEFINED name on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->if_not_defined = strdup(temp); } else { print_fatal_error(data, "IF-NOT-DEFINED without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "WITH-DISTINCT-VALUES")) { if (data->last_expect) { data->last_expect->with_distinct = 1; } else { print_fatal_error(data, "%s without a preceding EXPECT on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "WITH-VALUE")) { off_t lastpos; /* Last file position */ int lastline; /* Last line number */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing %s value on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } /* * Read additional comma-delimited values - needed since legacy test files * will have unquoted WITH-VALUE values with commas... */ ptr = temp + strlen(temp); for (;;) { lastpos = cupsFileTell(f->fp); lastline = f->linenum; ptr += strlen(ptr); if (!_ippFileReadToken(f, ptr, (sizeof(temp) - (size_t)(ptr - temp)))) break; if (!strcmp(ptr, ",")) { /* * Append a value... */ ptr += strlen(ptr); if (!_ippFileReadToken(f, ptr, (sizeof(temp) - (size_t)(ptr - temp)))) break; } else { /* * Not another value, stop here... */ cupsFileSeek(f->fp, lastpos); f->linenum = lastline; *ptr = '\0'; break; } } if (data->last_expect) { /* * Expand any variables in the value and then save it. */ _ippVarsExpand(data->vars, value, temp, sizeof(value)); ptr = value + strlen(value) - 1; if (value[0] == '/' && ptr > value && *ptr == '/') { /* * WITH-VALUE is a POSIX extended regular expression. */ data->last_expect->with_value = calloc(1, (size_t)(ptr - value)); data->last_expect->with_flags |= IPPTOOL_WITH_REGEX; if (data->last_expect->with_value) memcpy(data->last_expect->with_value, value + 1, (size_t)(ptr - value - 1)); } else { /* * WITH-VALUE is a literal value... */ for (ptr = value; *ptr; ptr ++) { if (*ptr == '\\' && ptr[1]) { /* * Remove \ from \foo... */ _cups_strcpy(ptr, ptr + 1); } } data->last_expect->with_value = strdup(value); data->last_expect->with_flags |= IPPTOOL_WITH_LITERAL; } } else { print_fatal_error(data, "%s without a preceding EXPECT on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } } print_fatal_error(data, "Missing closing brace on line %d of \"%s\".", f->linenum, f->filename); return (0); } /* * 'pause_message()' - Display the message and pause until the user presses a key. */ static void pause_message(const char *message) /* I - Message */ { #ifdef _WIN32 HANDLE tty; /* Console handle */ DWORD mode; /* Console mode */ char key; /* Key press */ DWORD bytes; /* Bytes read for key press */ /* * Disable input echo and set raw input... */ if ((tty = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) return; if (!GetConsoleMode(tty, &mode)) return; if (!SetConsoleMode(tty, 0)) return; #else int tty; /* /dev/tty - never read from stdin */ struct termios original, /* Original input mode */ noecho; /* No echo input mode */ char key; /* Current key press */ /* * Disable input echo and set raw input... */ if ((tty = open("/dev/tty", O_RDONLY)) < 0) return; if (tcgetattr(tty, &original)) { close(tty); return; } noecho = original; noecho.c_lflag &= (tcflag_t)~(ICANON | ECHO | ECHOE | ISIG); if (tcsetattr(tty, TCSAFLUSH, &noecho)) { close(tty); return; } #endif /* _WIN32 */ /* * Display the prompt... */ cupsFilePrintf(cupsFileStdout(), "\n%s\n\n---- PRESS ANY KEY ----", message); #ifdef _WIN32 /* * Read a key... */ ReadFile(tty, &key, 1, &bytes, NULL); /* * Cleanup... */ SetConsoleMode(tty, mode); #else /* * Read a key... */ read(tty, &key, 1); /* * Cleanup... */ tcsetattr(tty, TCSAFLUSH, &original); close(tty); #endif /* _WIN32 */ /* * Erase the "press any key" prompt... */ cupsFilePuts(cupsFileStdout(), "\r \r"); } /* * 'print_attr()' - Print an attribute on the screen. */ static void print_attr(cups_file_t *outfile, /* I - Output file */ ipptool_output_t output, /* I - Output format */ ipp_attribute_t *attr, /* I - Attribute to print */ ipp_tag_t *group) /* IO - Current group */ { int i, /* Looping var */ count; /* Number of values */ ipp_attribute_t *colattr; /* Collection attribute */ if (output == IPPTOOL_OUTPUT_PLIST) { if (!ippGetName(attr) || (group && *group != ippGetGroupTag(attr))) { if (ippGetGroupTag(attr) != IPP_TAG_ZERO) { cupsFilePuts(outfile, "\n"); cupsFilePuts(outfile, "\n"); } if (group) *group = ippGetGroupTag(attr); } if (!ippGetName(attr)) return; print_xml_string(outfile, "key", ippGetName(attr)); if ((count = ippGetCount(attr)) > 1) cupsFilePuts(outfile, "\n"); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : for (i = 0; i < count; i ++) cupsFilePrintf(outfile, "%d\n", ippGetInteger(attr, i)); break; case IPP_TAG_BOOLEAN : for (i = 0; i < count; i ++) cupsFilePuts(outfile, ippGetBoolean(attr, i) ? "\n" : "\n"); break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int lower, upper; /* Lower and upper ranges */ lower = ippGetRange(attr, i, &upper); cupsFilePrintf(outfile, "lower%dupper%d\n", lower, upper); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { int xres, yres; /* Resolution values */ ipp_res_t units; /* Resolution units */ xres = ippGetResolution(attr, i, &yres, &units); cupsFilePrintf(outfile, "xres%dyres%dunits%s\n", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_DATE : for (i = 0; i < count; i ++) cupsFilePrintf(outfile, "%s\n", iso_date(ippGetDate(attr, i))); break; case IPP_TAG_STRING : for (i = 0; i < count; i ++) { int datalen; /* Length of data */ void *data = ippGetOctetString(attr, i, &datalen); /* Data */ char buffer[IPP_MAX_LENGTH * 5 / 4 + 1]; /* Base64 output buffer */ cupsFilePrintf(outfile, "%s\n", httpEncode64_2(buffer, sizeof(buffer), data, datalen)); } break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < count; i ++) print_xml_string(outfile, "string", ippGetString(attr, i, NULL)); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : for (i = 0; i < count; i ++) { const char *s, /* String */ *lang; /* Language */ s = ippGetString(attr, i, &lang); cupsFilePuts(outfile, "language"); print_xml_string(outfile, NULL, lang); cupsFilePuts(outfile, "string"); print_xml_string(outfile, NULL, s); cupsFilePuts(outfile, "\n"); } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0; i < count; i ++) { ipp_t *col = ippGetCollection(attr, i); /* Collection value */ cupsFilePuts(outfile, "\n"); for (colattr = ippFirstAttribute(col); colattr; colattr = ippNextAttribute(col)) print_attr(outfile, output, colattr, NULL); cupsFilePuts(outfile, "\n"); } break; default : cupsFilePrintf(outfile, "<<%s>>\n", ippTagString(ippGetValueTag(attr))); break; } if (count > 1) cupsFilePuts(outfile, "\n"); } else { char buffer[131072]; /* Value buffer */ if (output == IPPTOOL_OUTPUT_TEST) { if (!ippGetName(attr)) { cupsFilePuts(outfile, " -- separator --\n"); return; } cupsFilePrintf(outfile, " %s (%s%s) = ", ippGetName(attr), ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr))); } ippAttributeString(attr, buffer, sizeof(buffer)); cupsFilePrintf(outfile, "%s\n", buffer); } } /* * 'print_csv()' - Print a line of CSV text. */ static ipp_attribute_t * /* O - Next attribute */ print_csv( ipptool_test_t *data, /* I - Test data */ ipp_t *ipp, /* I - Response message */ ipp_attribute_t *attr, /* I - First attribute for line */ int num_displayed, /* I - Number of attributes to display */ char **displayed, /* I - Attributes to display */ size_t *widths) /* I - Column widths */ { int i; /* Looping var */ size_t maxlength; /* Max length of all columns */ ipp_attribute_t *current = attr; /* Current attribute */ char *values[MAX_DISPLAY], /* Strings to display */ *valptr; /* Pointer into value */ /* * Get the maximum string length we have to show and allocate... */ for (i = 1, maxlength = widths[0]; i < num_displayed; i ++) if (widths[i] > maxlength) maxlength = widths[i]; maxlength += 2; /* * Loop through the attributes to display... */ if (attr) { // Collect the values... memset(values, 0, sizeof(values)); for (; current; current = ippNextAttribute(ipp)) { if (!ippGetName(current)) break; for (i = 0; i < num_displayed; i ++) { if (!strcmp(ippGetName(current), displayed[i])) { if ((values[i] = (char *)calloc(1, maxlength)) != NULL) ippAttributeString(current, values[i], maxlength); break; } } } // Output the line... for (i = 0; i < num_displayed; i ++) { if (i) cupsFilePutChar(data->outfile, ','); if (!values[i]) continue; if (strchr(values[i], ',') != NULL || strchr(values[i], '\"') != NULL || strchr(values[i], '\\') != NULL) { // Quoted value... cupsFilePutChar(data->outfile, '\"'); for (valptr = values[i]; *valptr; valptr ++) { if (*valptr == '\\' || *valptr == '\"') cupsFilePutChar(data->outfile, '\\'); cupsFilePutChar(data->outfile, *valptr); } cupsFilePutChar(data->outfile, '\"'); } else { // Unquoted value... cupsFilePuts(data->outfile, values[i]); } free(values[i]); } cupsFilePutChar(data->outfile, '\n'); } else { // Show column headings... for (i = 0; i < num_displayed; i ++) { if (i) cupsFilePutChar(data->outfile, ','); cupsFilePuts(data->outfile, displayed[i]); } cupsFilePutChar(data->outfile, '\n'); } return (current); } /* * 'print_fatal_error()' - Print a fatal error message. */ static void print_fatal_error( ipptool_test_t *data, /* I - Test data */ const char *s, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { char buffer[10240]; /* Format buffer */ va_list ap; /* Pointer to arguments */ /* * Format the error message... */ va_start(ap, s); vsnprintf(buffer, sizeof(buffer), s, ap); va_end(ap); /* * Then output it... */ if (data->output == IPPTOOL_OUTPUT_PLIST) { print_xml_header(data); print_xml_trailer(data, 0, buffer); } _cupsLangPrintf(stderr, "ipptool: %s", buffer); } /* * 'print_ippserver_attr()' - Print an attribute suitable for use by ippserver. */ static void print_ippserver_attr( ipptool_test_t *data, /* I - Test data */ ipp_attribute_t *attr, /* I - Attribute to print */ int indent) /* I - Indentation level */ { int i, /* Looping var */ count = ippGetCount(attr); /* Number of values */ ipp_attribute_t *colattr; /* Collection attribute */ if (indent == 0) cupsFilePrintf(data->outfile, "ATTR %s %s", ippTagString(ippGetValueTag(attr)), ippGetName(attr)); else cupsFilePrintf(data->outfile, "%*sMEMBER %s %s", indent, "", ippTagString(ippGetValueTag(attr)), ippGetName(attr)); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : for (i = 0; i < count; i ++) cupsFilePrintf(data->outfile, "%s%d", i ? "," : " ", ippGetInteger(attr, i)); break; case IPP_TAG_BOOLEAN : cupsFilePuts(data->outfile, ippGetBoolean(attr, 0) ? " true" : " false"); for (i = 1; i < count; i ++) cupsFilePuts(data->outfile, ippGetBoolean(attr, 1) ? ",true" : ",false"); break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int upper, lower = ippGetRange(attr, i, &upper); cupsFilePrintf(data->outfile, "%s%d-%d", i ? "," : " ", lower, upper); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { ipp_res_t units; int yres, xres = ippGetResolution(attr, i, &yres, &units); cupsFilePrintf(data->outfile, "%s%dx%d%s", i ? "," : " ", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_DATE : for (i = 0; i < count; i ++) cupsFilePrintf(data->outfile, "%s%s", i ? "," : " ", iso_date(ippGetDate(attr, i))); break; case IPP_TAG_STRING : for (i = 0; i < count; i ++) { int len; const char *s = (const char *)ippGetOctetString(attr, i, &len); cupsFilePuts(data->outfile, i ? "," : " "); print_ippserver_string(data, s, (size_t)len); } break; case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < count; i ++) { const char *s = ippGetString(attr, i, NULL); cupsFilePuts(data->outfile, i ? "," : " "); print_ippserver_string(data, s, strlen(s)); } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0; i < count; i ++) { ipp_t *col = ippGetCollection(attr, i); cupsFilePuts(data->outfile, i ? ",{\n" : " {\n"); for (colattr = ippFirstAttribute(col); colattr; colattr = ippNextAttribute(col)) print_ippserver_attr(data, colattr, indent + 4); cupsFilePrintf(data->outfile, "%*s}", indent, ""); } break; default : /* Out-of-band value */ break; } cupsFilePuts(data->outfile, "\n"); } /* * 'print_ippserver_string()' - Print a string suitable for use by ippserver. */ static void print_ippserver_string( ipptool_test_t *data, /* I - Test data */ const char *s, /* I - String to print */ size_t len) /* I - Length of string */ { cupsFilePutChar(data->outfile, '\"'); while (len > 0) { if (*s == '\"' || *s == '\\') cupsFilePutChar(data->outfile, '\\'); cupsFilePutChar(data->outfile, *s); s ++; len --; } cupsFilePutChar(data->outfile, '\"'); } /* * 'print_json_attr()' - Print an attribute in JSON format. */ static void print_json_attr( ipptool_test_t *data, /* I - Test data */ ipp_attribute_t *attr, /* I - IPP attribute */ int indent) /* I - Indentation */ { const char *name = ippGetName(attr); /* Name of attribute */ int i, /* Looping var */ count = ippGetCount(attr); /* Number of values */ ipp_attribute_t *colattr; /* Collection attribute */ cupsFilePrintf(data->outfile, "%*s", indent, ""); print_json_string(data, name, strlen(name)); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : if (count == 1) { cupsFilePrintf(data->outfile, ": %d", ippGetInteger(attr, 0)); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) cupsFilePrintf(data->outfile, "%*s%d%s", indent + 4, "", ippGetInteger(attr, i), (i + 1) < count ? ",\n" : "\n"); cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_BOOLEAN : if (count == 1) { cupsFilePrintf(data->outfile, ": %s", ippGetBoolean(attr, 0) ? "true" : "false"); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) cupsFilePrintf(data->outfile, "%*s%s%s", indent + 4, "", ippGetBoolean(attr, i) ? "true" : "false", (i + 1) < count ? ",\n" : "\n"); cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_RANGE : if (count == 1) { int upper, lower = ippGetRange(attr, 0, &upper); cupsFilePrintf(data->outfile, ": {\n%*s\"lower\": %d,\n%*s\"upper\":%d\n%*s}", indent + 4, "", lower, indent + 4, "", upper, indent, ""); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) { int upper, lower = ippGetRange(attr, i, &upper); cupsFilePrintf(data->outfile, "%*s{\n%*s\"lower\": %d,\n%*s\"upper\":%d\n%*s},\n", indent + 4, "", indent + 8, "", lower, indent + 8, "", upper, indent + 4, ""); } cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_RESOLUTION : if (count == 1) { ipp_res_t units; int yres, xres = ippGetResolution(attr, 0, &yres, &units); cupsFilePrintf(data->outfile, ": {\n%*s\"units\": \"%s\",\n%*s\"xres\": %d,\n%*s\"yres\":%d\n%*s}", indent + 4, "", units == IPP_RES_PER_INCH ? "dpi" : "dpcm", indent + 4, "", xres, indent + 4, "", yres, indent, ""); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) { ipp_res_t units; int yres, xres = ippGetResolution(attr, i, &yres, &units); cupsFilePrintf(data->outfile, "%*s{\n%*s\"units\": \"%s\",\n%*s\"xres\": %d,\n%*s\"yres\":%d\n%*s},\n", indent + 4, "", indent + 8, "", units == IPP_RES_PER_INCH ? "dpi" : "dpcm", indent + 8, "", xres, indent + 8, "", yres, indent + 4, ""); } cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_DATE : if (count == 1) { cupsFilePrintf(data->outfile, ": \"%s\"", iso_date(ippGetDate(attr, 0))); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) cupsFilePrintf(data->outfile, "%*s\"%s\"%s", indent + 4, "", iso_date(ippGetDate(attr, i)), (i + 1) < count ? ",\n" : "\n"); cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_STRING : if (count == 1) { int len; const char *s = (const char *)ippGetOctetString(attr, 0, &len); cupsFilePuts(data->outfile, ": \""); while (len > 0) { cupsFilePrintf(data->outfile, "%02X", *s++ & 255); len --; } cupsFilePuts(data->outfile, "\""); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) { int len; const char *s = (const char *)ippGetOctetString(attr, i, &len); cupsFilePrintf(data->outfile, "%*s\"", indent + 4, ""); while (len > 0) { cupsFilePrintf(data->outfile, "%02X", *s++ & 255); len --; } cupsFilePuts(data->outfile, (i + 1) < count ? "\",\n" : "\"\n"); } cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : if (count == 1) { const char *s = ippGetString(attr, 0, NULL); cupsFilePuts(data->outfile, ": "); print_json_string(data, s, strlen(s)); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) { const char *s = ippGetString(attr, i, NULL); cupsFilePrintf(data->outfile, "%*s", indent + 4, ""); print_json_string(data, s, strlen(s)); cupsFilePuts(data->outfile, (i + 1) < count ? ",\n" : "\n"); } cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; case IPP_TAG_BEGIN_COLLECTION : if (count == 1) { ipp_t *col = ippGetCollection(attr, 0); cupsFilePuts(data->outfile, ": {\n"); colattr = ippFirstAttribute(col); while (colattr) { print_json_attr(data, colattr, indent + 4); colattr = ippNextAttribute(col); cupsFilePuts(data->outfile, colattr ? ",\n" : "\n"); } cupsFilePrintf(data->outfile, "%*s}", indent, ""); } else { cupsFilePuts(data->outfile, ": [\n"); for (i = 0; i < count; i ++) { ipp_t *col = ippGetCollection(attr, i); cupsFilePrintf(data->outfile, "%*s{\n", indent + 4, ""); colattr = ippFirstAttribute(col); while (colattr) { print_json_attr(data, colattr, indent + 8); colattr = ippNextAttribute(col); cupsFilePuts(data->outfile, colattr ? ",\n" : "\n"); } cupsFilePrintf(data->outfile, "%*s}%s", indent + 4, "", (i + 1) < count ? ",\n" : "\n"); } cupsFilePrintf(data->outfile, "%*s]", indent, ""); } break; default : /* Out-of-band value */ cupsFilePrintf(data->outfile, ": null"); break; } } /* * 'print_json_string()' - Print a string in JSON format. */ static void print_json_string( ipptool_test_t *data, /* I - Test data */ const char *s, /* I - String to print */ size_t len) /* I - Length of string */ { cupsFilePutChar(data->outfile, '\"'); while (len > 0) { switch (*s) { case '\"' : case '\\' : cupsFilePutChar(data->outfile, '\\'); cupsFilePutChar(data->outfile, *s); break; case '\n' : cupsFilePuts(data->outfile, "\\n"); break; case '\r' : cupsFilePuts(data->outfile, "\\r"); break; case '\t' : cupsFilePuts(data->outfile, "\\t"); break; default : if (*s < ' ' && *s >= 0) cupsFilePrintf(data->outfile, "\\%03o", *s); else cupsFilePutChar(data->outfile, *s); break; } s ++; len --; } cupsFilePutChar(data->outfile, '\"'); } /* * 'print_line()' - Print a line of formatted or CSV text. */ static ipp_attribute_t * /* O - Next attribute */ print_line( ipptool_test_t *data, /* I - Test data */ ipp_t *ipp, /* I - Response message */ ipp_attribute_t *attr, /* I - First attribute for line */ int num_displayed, /* I - Number of attributes to display */ char **displayed, /* I - Attributes to display */ size_t *widths) /* I - Column widths */ { int i; /* Looping var */ size_t maxlength; /* Max length of all columns */ ipp_attribute_t *current = attr; /* Current attribute */ char *values[MAX_DISPLAY]; /* Strings to display */ /* * Get the maximum string length we have to show and allocate... */ for (i = 1, maxlength = widths[0]; i < num_displayed; i ++) if (widths[i] > maxlength) maxlength = widths[i]; maxlength += 2; /* * Loop through the attributes to display... */ if (attr) { // Collect the values... memset(values, 0, sizeof(values)); for (; current; current = ippNextAttribute(ipp)) { if (!ippGetName(current)) break; for (i = 0; i < num_displayed; i ++) { if (!strcmp(ippGetName(current), displayed[i])) { if ((values[i] = (char *)calloc(1, maxlength)) != NULL) ippAttributeString(current, values[i], maxlength); break; } } } // Output the line... for (i = 0; i < num_displayed; i ++) { if (i) cupsFilePutChar(data->outfile, ' '); cupsFilePrintf(data->outfile, "%*s", (int)-widths[i], values[i] ? values[i] : ""); free(values[i]); } cupsFilePutChar(data->outfile, '\n'); } else { // Show column headings... char *buffer = (char *)malloc(maxlength); // Buffer for separator lines if (!buffer) return (current); for (i = 0; i < num_displayed; i ++) { if (i) cupsFilePutChar(data->outfile, ' '); cupsFilePrintf(data->outfile, "%*s", (int)-widths[i], displayed[i]); } cupsFilePutChar(data->outfile, '\n'); for (i = 0; i < num_displayed; i ++) { if (i) cupsFilePutChar(data->outfile, ' '); memset(buffer, '-', widths[i]); buffer[widths[i]] = '\0'; cupsFilePuts(data->outfile, buffer); } cupsFilePutChar(data->outfile, '\n'); free(buffer); } return (current); } /* * 'print_xml_header()' - Print a standard XML plist header. */ static void print_xml_header(ipptool_test_t *data)/* I - Test data */ { if (!data->xml_header) { cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "ipptoolVersion\n"); cupsFilePuts(data->outfile, "" CUPS_SVERSION "\n"); cupsFilePuts(data->outfile, "Transfer\n"); cupsFilePrintf(data->outfile, "%s\n", data->transfer == IPPTOOL_TRANSFER_AUTO ? "auto" : data->transfer == IPPTOOL_TRANSFER_CHUNKED ? "chunked" : "length"); cupsFilePuts(data->outfile, "Tests\n"); cupsFilePuts(data->outfile, "\n"); data->xml_header = 1; } } /* * 'print_xml_string()' - Print an XML string with escaping. */ static void print_xml_string(cups_file_t *outfile, /* I - Test data */ const char *element, /* I - Element name or NULL */ const char *s) /* I - String to print */ { if (element) cupsFilePrintf(outfile, "<%s>", element); while (*s) { if (*s == '&') cupsFilePuts(outfile, "&"); else if (*s == '<') cupsFilePuts(outfile, "<"); else if (*s == '>') cupsFilePuts(outfile, ">"); else if ((*s & 0xe0) == 0xc0) { /* * Validate UTF-8 two-byte sequence... */ if ((s[1] & 0xc0) != 0x80) { cupsFilePutChar(outfile, '?'); s ++; } else { cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s); } } else if ((*s & 0xf0) == 0xe0) { /* * Validate UTF-8 three-byte sequence... */ if ((s[1] & 0xc0) != 0x80 || (s[2] & 0xc0) != 0x80) { cupsFilePutChar(outfile, '?'); s += 2; } else { cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s); } } else if ((*s & 0xf8) == 0xf0) { /* * Validate UTF-8 four-byte sequence... */ if ((s[1] & 0xc0) != 0x80 || (s[2] & 0xc0) != 0x80 || (s[3] & 0xc0) != 0x80) { cupsFilePutChar(outfile, '?'); s += 3; } else { cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s++); cupsFilePutChar(outfile, *s); } } else if ((*s & 0x80) || (*s < ' ' && !isspace(*s & 255))) { /* * Invalid control character... */ cupsFilePutChar(outfile, '?'); } else cupsFilePutChar(outfile, *s); s ++; } if (element) cupsFilePrintf(outfile, "\n", element); } /* * 'print_xml_trailer()' - Print the XML trailer with success/fail value. */ static void print_xml_trailer( ipptool_test_t *data, /* I - Test data */ int success, /* I - 1 on success, 0 on failure */ const char *message) /* I - Error message or NULL */ { if (data->xml_header) { cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "Successful\n"); cupsFilePuts(data->outfile, success ? "\n" : "\n"); if (message) { cupsFilePuts(data->outfile, "ErrorMessage\n"); print_xml_string(data->outfile, "string", message); } cupsFilePuts(data->outfile, "\n"); cupsFilePuts(data->outfile, "\n"); data->xml_header = 0; } } #ifndef _WIN32 /* * 'sigterm_handler()' - Handle SIGINT and SIGTERM. */ static void sigterm_handler(int sig) /* I - Signal number (unused) */ { (void)sig; Cancel = 1; signal(SIGINT, SIG_DFL); signal(SIGTERM, SIG_DFL); } #endif /* !_WIN32 */ /* * 'timeout_cb()' - Handle HTTP timeouts. */ static int /* O - 1 to continue, 0 to cancel */ timeout_cb(http_t *http, /* I - Connection to server */ void *user_data) /* I - User data (unused) */ { int buffered = 0; /* Bytes buffered but not yet sent */ (void)user_data; /* * If the socket still have data waiting to be sent to the printer (as can * happen if the printer runs out of paper), continue to wait until the output * buffer is empty... */ #ifdef SO_NWRITE /* macOS and some versions of Linux */ socklen_t len = sizeof(buffered); /* Size of return value */ if (getsockopt(httpGetFd(http), SOL_SOCKET, SO_NWRITE, &buffered, &len)) buffered = 0; #elif defined(SIOCOUTQ) /* Others except Windows */ if (ioctl(httpGetFd(http), SIOCOUTQ, &buffered)) buffered = 0; #else /* Windows (not possible) */ (void)http; #endif /* SO_NWRITE */ return (buffered > 0); } /* * 'token_cb()' - Parse test file-specific tokens and run tests. */ static int /* O - 1 to continue, 0 to stop */ token_cb(_ipp_file_t *f, /* I - IPP file data */ _ipp_vars_t *vars, /* I - IPP variables */ ipptool_test_t *data, /* I - Test data */ const char *token) /* I - Current token */ { char name[1024], /* Name string */ temp[1024], /* Temporary string */ value[1024], /* Value string */ *ptr; /* Pointer into value */ if (!token) { /* * Initialize state as needed (nothing for now...) */ return (1); } else if (f->attrs) { /* * Parse until we see a close brace... */ if (_cups_strcasecmp(token, "COUNT") && _cups_strcasecmp(token, "DEFINE-MATCH") && _cups_strcasecmp(token, "DEFINE-NO-MATCH") && _cups_strcasecmp(token, "DEFINE-VALUE") && _cups_strcasecmp(token, "DISPLAY-MATCH") && _cups_strcasecmp(token, "IF-DEFINED") && _cups_strcasecmp(token, "IF-NOT-DEFINED") && _cups_strcasecmp(token, "IN-GROUP") && _cups_strcasecmp(token, "OF-TYPE") && _cups_strcasecmp(token, "REPEAT-LIMIT") && _cups_strcasecmp(token, "REPEAT-MATCH") && _cups_strcasecmp(token, "REPEAT-NO-MATCH") && _cups_strcasecmp(token, "SAME-COUNT-AS") && _cups_strcasecmp(token, "WITH-ALL-VALUES") && _cups_strcasecmp(token, "WITH-ALL-HOSTNAMES") && _cups_strcasecmp(token, "WITH-ALL-RESOURCES") && _cups_strcasecmp(token, "WITH-ALL-SCHEMES") && _cups_strcasecmp(token, "WITH-DISTINCT-VALUES") && _cups_strcasecmp(token, "WITH-HOSTNAME") && _cups_strcasecmp(token, "WITH-RESOURCE") && _cups_strcasecmp(token, "WITH-SCHEME") && _cups_strcasecmp(token, "WITH-VALUE") && _cups_strcasecmp(token, "WITH-VALUE-FROM")) data->last_expect = NULL; if (_cups_strcasecmp(token, "DEFINE-MATCH") && _cups_strcasecmp(token, "DEFINE-NO-MATCH") && _cups_strcasecmp(token, "IF-DEFINED") && _cups_strcasecmp(token, "IF-NOT-DEFINED") && _cups_strcasecmp(token, "REPEAT-LIMIT") && _cups_strcasecmp(token, "REPEAT-MATCH") && _cups_strcasecmp(token, "REPEAT-NO-MATCH")) data->last_status = NULL; if (!strcmp(token, "}")) { return (do_test(f, data)); } else if (!strcmp(token, "MONITOR-PRINTER-STATE")) { if (data->monitor_uri) { print_fatal_error(data, "Extra MONITOR-PRINTER-STATE seen on line %d of \"%s\".", f->linenum, f->filename); return (0); } return (parse_monitor_printer_state(f, data)); } else if (!strcmp(token, "COMPRESSION")) { /* * COMPRESSION none * COMPRESSION deflate * COMPRESSION gzip */ if (_ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsExpand(vars, data->compression, temp, sizeof(data->compression)); #ifdef HAVE_LIBZ if (strcmp(data->compression, "none") && strcmp(data->compression, "deflate") && strcmp(data->compression, "gzip")) #else if (strcmp(data->compression, "none")) #endif /* HAVE_LIBZ */ { print_fatal_error(data, "Unsupported COMPRESSION value \"%s\" on line %d of \"%s\".", data->compression, f->linenum, f->filename); return (0); } if (!strcmp(data->compression, "none")) data->compression[0] = '\0'; } else { print_fatal_error(data, "Missing COMPRESSION value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "DEFINE")) { /* * DEFINE name value */ if (_ippFileReadToken(f, name, sizeof(name)) && _ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsExpand(vars, value, temp, sizeof(value)); _ippVarsSet(vars, name, value); } else { print_fatal_error(data, "Missing DEFINE name and/or value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "IGNORE-ERRORS")) { /* * IGNORE-ERRORS yes * IGNORE-ERRORS no */ if (_ippFileReadToken(f, temp, sizeof(temp)) && (!_cups_strcasecmp(temp, "yes") || !_cups_strcasecmp(temp, "no"))) { data->ignore_errors = !_cups_strcasecmp(temp, "yes"); } else { print_fatal_error(data, "Missing IGNORE-ERRORS value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "NAME")) { /* * Name of test... */ if (_ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsExpand(vars, data->name, temp, sizeof(data->name)); } else { print_fatal_error(data, "Missing NAME string on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "PAUSE")) { /* * Pause with a message... */ if (_ippFileReadToken(f, temp, sizeof(temp))) { strlcpy(data->pause, temp, sizeof(data->pause)); } else { print_fatal_error(data, "Missing PAUSE message on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "REQUEST-ID")) { /* * REQUEST-ID # * REQUEST-ID random */ if (_ippFileReadToken(f, temp, sizeof(temp))) { if (isdigit(temp[0] & 255)) { data->request_id = atoi(temp) - 1; } else if (!_cups_strcasecmp(temp, "random")) { data->request_id = (CUPS_RAND() % 1000) * 137; } else { print_fatal_error(data, "Bad REQUEST-ID value \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Missing REQUEST-ID value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "PASS-IF-DEFINED")) { /* * PASS-IF-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (_ippVarsGet(vars, name)) data->pass_test = 1; } else { print_fatal_error(data, "Missing PASS-IF-DEFINED value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "PASS-IF-NOT-DEFINED")) { /* * PASS-IF-NOT-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (!_ippVarsGet(vars, name)) data->pass_test = 1; } else { print_fatal_error(data, "Missing PASS-IF-NOT-DEFINED value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "SKIP-IF-DEFINED")) { /* * SKIP-IF-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (_ippVarsGet(vars, name)) data->skip_test = 1; } else { print_fatal_error(data, "Missing SKIP-IF-DEFINED value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "SKIP-IF-MISSING")) { /* * SKIP-IF-MISSING filename */ if (_ippFileReadToken(f, temp, sizeof(temp))) { char filename[1024]; /* Filename */ _ippVarsExpand(vars, value, temp, sizeof(value)); get_filename(f->filename, filename, temp, sizeof(filename)); if (access(filename, R_OK)) data->skip_test = 1; } else { print_fatal_error(data, "Missing SKIP-IF-MISSING filename on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "SKIP-IF-NOT-DEFINED")) { /* * SKIP-IF-NOT-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (!_ippVarsGet(vars, name)) data->skip_test = 1; } else { print_fatal_error(data, "Missing SKIP-IF-NOT-DEFINED value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "SKIP-PREVIOUS-ERROR")) { /* * SKIP-PREVIOUS-ERROR yes * SKIP-PREVIOUS-ERROR no */ if (_ippFileReadToken(f, temp, sizeof(temp)) && (!_cups_strcasecmp(temp, "yes") || !_cups_strcasecmp(temp, "no"))) { data->skip_previous = !_cups_strcasecmp(temp, "yes"); } else { print_fatal_error(data, "Missing SKIP-PREVIOUS-ERROR value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "TEST-ID")) { /* * TEST-ID "string" */ if (_ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsExpand(vars, data->test_id, temp, sizeof(data->test_id)); } else { print_fatal_error(data, "Missing TEST-ID value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "TRANSFER")) { /* * TRANSFER auto * TRANSFER chunked * TRANSFER length */ if (_ippFileReadToken(f, temp, sizeof(temp))) { if (!strcmp(temp, "auto")) { data->transfer = IPPTOOL_TRANSFER_AUTO; } else if (!strcmp(temp, "chunked")) { data->transfer = IPPTOOL_TRANSFER_CHUNKED; } else if (!strcmp(temp, "length")) { data->transfer = IPPTOOL_TRANSFER_LENGTH; } else { print_fatal_error(data, "Bad TRANSFER value \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Missing TRANSFER value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "VERSION")) { if (_ippFileReadToken(f, temp, sizeof(temp))) { if (!strcmp(temp, "0.0")) { data->version = 0; } else if (!strcmp(temp, "1.0")) { data->version = 10; } else if (!strcmp(temp, "1.1")) { data->version = 11; } else if (!strcmp(temp, "2.0")) { data->version = 20; } else if (!strcmp(temp, "2.1")) { data->version = 21; } else if (!strcmp(temp, "2.2")) { data->version = 22; } else { print_fatal_error(data, "Bad VERSION \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Missing VERSION number on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "RESOURCE")) { /* * Resource name... */ if (!_ippFileReadToken(f, data->resource, sizeof(data->resource))) { print_fatal_error(data, "Missing RESOURCE path on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "OPERATION")) { /* * Operation... */ ipp_op_t op; /* Operation code */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing OPERATION code on line %d of \"%s\".", f->linenum, f->filename); return (0); } _ippVarsExpand(vars, value, temp, sizeof(value)); if ((op = ippOpValue(value)) == (ipp_op_t)-1 && (op = (ipp_op_t)strtol(value, NULL, 0)) == 0) { print_fatal_error(data, "Bad OPERATION code \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } ippSetOperation(f->attrs, op); } else if (!_cups_strcasecmp(token, "GROUP")) { /* * Attribute group... */ ipp_tag_t group_tag; /* Group tag */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing GROUP tag on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((group_tag = ippTagValue(temp)) == IPP_TAG_ZERO || group_tag >= IPP_TAG_UNSUPPORTED_VALUE) { print_fatal_error(data, "Bad GROUP tag \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } if (group_tag == f->group_tag) ippAddSeparator(f->attrs); f->group_tag = group_tag; } else if (!_cups_strcasecmp(token, "DELAY")) { /* * Delay before operation... */ double dval; /* Delay value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DELAY value on line %d of \"%s\".", f->linenum, f->filename); return (0); } _ippVarsExpand(vars, value, temp, sizeof(value)); if ((dval = _cupsStrScand(value, &ptr, localeconv())) < 0.0 || (*ptr && *ptr != ',')) { print_fatal_error(data, "Bad DELAY value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } data->delay = (useconds_t)(1000000.0 * dval); if (*ptr == ',') { if ((dval = _cupsStrScand(ptr + 1, &ptr, localeconv())) <= 0.0 || *ptr) { print_fatal_error(data, "Bad DELAY value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } data->repeat_interval = (useconds_t)(1000000.0 * dval); } else data->repeat_interval = data->delay; } else if (!_cups_strcasecmp(token, "FILE")) { /* * File... */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing FILE filename on line %d of \"%s\".", f->linenum, f->filename); return (0); } _ippVarsExpand(vars, value, temp, sizeof(value)); get_filename(f->filename, data->file, value, sizeof(data->file)); if (access(data->file, R_OK)) { print_fatal_error(data, "Filename \"%s\" (mapped to \"%s\") on line %d of \"%s\" cannot be read.", value, data->file, f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "STATUS")) { /* * Status... */ if (data->num_statuses >= (int)(sizeof(data->statuses) / sizeof(data->statuses[0]))) { print_fatal_error(data, "Too many STATUS's on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing STATUS code on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((data->statuses[data->num_statuses].status = ippErrorValue(temp)) == (ipp_status_t)-1 && (data->statuses[data->num_statuses].status = (ipp_status_t)strtol(temp, NULL, 0)) == 0) { print_fatal_error(data, "Bad STATUS code \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } data->last_status = data->statuses + data->num_statuses; data->num_statuses ++; data->last_status->define_match = NULL; data->last_status->define_no_match = NULL; data->last_status->if_defined = NULL; data->last_status->if_not_defined = NULL; data->last_status->repeat_limit = 1000; data->last_status->repeat_match = 0; data->last_status->repeat_no_match = 0; } else if (!_cups_strcasecmp(token, "EXPECT") || !_cups_strcasecmp(token, "EXPECT-ALL")) { /* * Expected attributes... */ int expect_all = !_cups_strcasecmp(token, "EXPECT-ALL"); if (data->num_expects >= (int)(sizeof(data->expects) / sizeof(data->expects[0]))) { print_fatal_error(data, "Too many EXPECT's on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (!_ippFileReadToken(f, name, sizeof(name))) { print_fatal_error(data, "Missing EXPECT name on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->last_expect = data->expects + data->num_expects; data->num_expects ++; memset(data->last_expect, 0, sizeof(ipptool_expect_t)); data->last_expect->repeat_limit = 1000; data->last_expect->expect_all = expect_all; if (name[0] == '!') { data->last_expect->not_expect = 1; data->last_expect->name = strdup(name + 1); } else if (name[0] == '?') { data->last_expect->optional = 1; data->last_expect->name = strdup(name + 1); } else data->last_expect->name = strdup(name); } else if (!_cups_strcasecmp(token, "COUNT")) { int count; /* Count value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing COUNT number on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((count = atoi(temp)) <= 0) { print_fatal_error(data, "Bad COUNT \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->count = count; } else { print_fatal_error(data, "COUNT without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-MATCH variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_match = strdup(temp); } else if (data->last_status) { data->last_status->define_match = strdup(temp); } else { print_fatal_error(data, "DEFINE-MATCH without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-NO-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-NO-MATCH variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_no_match = strdup(temp); } else if (data->last_status) { data->last_status->define_no_match = strdup(temp); } else { print_fatal_error(data, "DEFINE-NO-MATCH without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DEFINE-VALUE")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DEFINE-VALUE variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->define_value = strdup(temp); } else { print_fatal_error(data, "DEFINE-VALUE without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DISPLAY-MATCH")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DISPLAY-MATCH mesaage on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->display_match = strdup(temp); } else { print_fatal_error(data, "DISPLAY-MATCH without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "OF-TYPE")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing OF-TYPE value tag(s) on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->of_type = strdup(temp); } else { print_fatal_error(data, "OF-TYPE without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IN-GROUP")) { ipp_tag_t in_group; /* IN-GROUP value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IN-GROUP group tag on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((in_group = ippTagValue(temp)) == IPP_TAG_ZERO || in_group >= IPP_TAG_UNSUPPORTED_VALUE) { print_fatal_error(data, "Bad IN-GROUP group tag \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } else if (data->last_expect) { data->last_expect->in_group = in_group; } else { print_fatal_error(data, "IN-GROUP without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "REPEAT-LIMIT")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing REPEAT-LIMIT value on line %d of \"%s\".", f->linenum, f->filename); return (0); } else if (atoi(temp) <= 0) { print_fatal_error(data, "Bad REPEAT-LIMIT value on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_status) { data->last_status->repeat_limit = atoi(temp); } else if (data->last_expect) { data->last_expect->repeat_limit = atoi(temp); } else { print_fatal_error(data, "REPEAT-LIMIT without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "REPEAT-MATCH")) { if (data->last_status) { data->last_status->repeat_match = 1; } else if (data->last_expect) { data->last_expect->repeat_match = 1; } else { print_fatal_error(data, "REPEAT-MATCH without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "REPEAT-NO-MATCH")) { if (data->last_status) { data->last_status->repeat_no_match = 1; } else if (data->last_expect) { data->last_expect->repeat_no_match = 1; } else { print_fatal_error(data, "REPEAT-NO-MATCH without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "SAME-COUNT-AS")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing SAME-COUNT-AS name on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->same_count_as = strdup(temp); } else { print_fatal_error(data, "SAME-COUNT-AS without a preceding EXPECT on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IF-DEFINED")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IF-DEFINED name on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->if_defined = strdup(temp); } else if (data->last_status) { data->last_status->if_defined = strdup(temp); } else { print_fatal_error(data, "IF-DEFINED without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "IF-NOT-DEFINED")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing IF-NOT-DEFINED name on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (data->last_expect) { data->last_expect->if_not_defined = strdup(temp); } else if (data->last_status) { data->last_status->if_not_defined = strdup(temp); } else { print_fatal_error(data, "IF-NOT-DEFINED without a preceding EXPECT or STATUS on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "WITH-DISTINCT-VALUES")) { if (data->last_expect) { data->last_expect->with_distinct = 1; } else { print_fatal_error(data, "%s without a preceding EXPECT on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "WITH-ALL-VALUES") || !_cups_strcasecmp(token, "WITH-ALL-HOSTNAMES") || !_cups_strcasecmp(token, "WITH-ALL-RESOURCES") || !_cups_strcasecmp(token, "WITH-ALL-SCHEMES") || !_cups_strcasecmp(token, "WITH-HOSTNAME") || !_cups_strcasecmp(token, "WITH-RESOURCE") || !_cups_strcasecmp(token, "WITH-SCHEME") || !_cups_strcasecmp(token, "WITH-VALUE")) { off_t lastpos; /* Last file position */ int lastline; /* Last line number */ if (data->last_expect) { if (!_cups_strcasecmp(token, "WITH-ALL-HOSTNAMES") || !_cups_strcasecmp(token, "WITH-HOSTNAME")) data->last_expect->with_flags = IPPTOOL_WITH_HOSTNAME; else if (!_cups_strcasecmp(token, "WITH-ALL-RESOURCES") || !_cups_strcasecmp(token, "WITH-RESOURCE")) data->last_expect->with_flags = IPPTOOL_WITH_RESOURCE; else if (!_cups_strcasecmp(token, "WITH-ALL-SCHEMES") || !_cups_strcasecmp(token, "WITH-SCHEME")) data->last_expect->with_flags = IPPTOOL_WITH_SCHEME; if (!_cups_strncasecmp(token, "WITH-ALL-", 9)) data->last_expect->with_flags |= IPPTOOL_WITH_ALL; } if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing %s value on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } /* * Read additional comma-delimited values - needed since legacy test files * will have unquoted WITH-VALUE values with commas... */ ptr = temp + strlen(temp); for (;;) { lastpos = cupsFileTell(f->fp); lastline = f->linenum; ptr += strlen(ptr); if (!_ippFileReadToken(f, ptr, (sizeof(temp) - (size_t)(ptr - temp)))) break; if (!strcmp(ptr, ",")) { /* * Append a value... */ ptr += strlen(ptr); if (!_ippFileReadToken(f, ptr, (sizeof(temp) - (size_t)(ptr - temp)))) break; } else { /* * Not another value, stop here... */ cupsFileSeek(f->fp, lastpos); f->linenum = lastline; *ptr = '\0'; break; } } if (data->last_expect) { /* * Expand any variables in the value and then save it. */ _ippVarsExpand(vars, value, temp, sizeof(value)); ptr = value + strlen(value) - 1; if (value[0] == '/' && ptr > value && *ptr == '/') { /* * WITH-VALUE is a POSIX extended regular expression. */ data->last_expect->with_value = calloc(1, (size_t)(ptr - value)); data->last_expect->with_flags |= IPPTOOL_WITH_REGEX; if (data->last_expect->with_value) memcpy(data->last_expect->with_value, value + 1, (size_t)(ptr - value - 1)); } else { /* * WITH-VALUE is a literal value... */ for (ptr = value; *ptr; ptr ++) { if (*ptr == '\\' && ptr[1]) { /* * Remove \ from \foo... */ _cups_strcpy(ptr, ptr + 1); } } data->last_expect->with_value = strdup(value); data->last_expect->with_flags |= IPPTOOL_WITH_LITERAL; } } else { print_fatal_error(data, "%s without a preceding EXPECT on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "WITH-VALUE-FROM")) { if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing %s value on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } if (data->last_expect) { /* * Expand any variables in the value and then save it. */ _ippVarsExpand(vars, value, temp, sizeof(value)); data->last_expect->with_value_from = strdup(value); data->last_expect->with_flags = IPPTOOL_WITH_LITERAL; } else { print_fatal_error(data, "%s without a preceding EXPECT on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } else if (!_cups_strcasecmp(token, "DISPLAY")) { /* * Display attributes... */ if (data->num_displayed >= (int)(sizeof(data->displayed) / sizeof(data->displayed[0]))) { print_fatal_error(data, "Too many DISPLAY's on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (!_ippFileReadToken(f, temp, sizeof(temp))) { print_fatal_error(data, "Missing DISPLAY name on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->displayed[data->num_displayed] = strdup(temp); data->num_displayed ++; } else { print_fatal_error(data, "Unexpected token %s seen on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } else { /* * Scan for the start of a test (open brace)... */ if (!strcmp(token, "{")) { /* * Start new test... */ if (data->show_header) { if (data->output == IPPTOOL_OUTPUT_PLIST) print_xml_header(data); if (data->output == IPPTOOL_OUTPUT_TEST || (data->output == IPPTOOL_OUTPUT_PLIST && data->outfile != cupsFileStdout())) cupsFilePrintf(cupsFileStdout(), "\"%s\":\n", f->filename); data->show_header = 0; } data->compression[0] = '\0'; data->delay = 0; data->num_expects = 0; data->last_expect = NULL; data->file[0] = '\0'; data->ignore_errors = data->def_ignore_errors; strlcpy(data->name, f->filename, sizeof(data->name)); if ((ptr = strrchr(data->name, '.')) != NULL) *ptr = '\0'; data->repeat_interval = 5000000; strlcpy(data->resource, data->vars->resource, sizeof(data->resource)); data->skip_previous = 0; data->pass_test = 0; data->skip_test = 0; data->num_statuses = 0; data->last_status = NULL; data->test_id[0] = '\0'; data->transfer = data->def_transfer; data->version = data->def_version; free(data->monitor_uri); data->monitor_uri = NULL; data->monitor_delay = 0; data->monitor_interval = 5000000; data->num_monitor_expects = 0; _ippVarsSet(vars, "date-current", iso_date(ippTimeToDate(time(NULL)))); f->attrs = ippNew(); f->group_tag = IPP_TAG_ZERO; } else if (!strcmp(token, "DEFINE")) { /* * DEFINE name value */ if (_ippFileReadToken(f, name, sizeof(name)) && _ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsSet(vars, "date-current", iso_date(ippTimeToDate(time(NULL)))); _ippVarsExpand(vars, value, temp, sizeof(value)); _ippVarsSet(vars, name, value); } else { print_fatal_error(data, "Missing DEFINE name and/or value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "DEFINE-DEFAULT")) { /* * DEFINE-DEFAULT name value */ if (_ippFileReadToken(f, name, sizeof(name)) && _ippFileReadToken(f, temp, sizeof(temp))) { if (!_ippVarsGet(vars, name)) { _ippVarsSet(vars, "date-current", iso_date(ippTimeToDate(time(NULL)))); _ippVarsExpand(vars, value, temp, sizeof(value)); _ippVarsSet(vars, name, value); } } else { print_fatal_error(data, "Missing DEFINE-DEFAULT name and/or value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "FILE-ID")) { /* * FILE-ID "string" */ if (_ippFileReadToken(f, temp, sizeof(temp))) { _ippVarsSet(vars, "date-current", iso_date(ippTimeToDate(time(NULL)))); _ippVarsExpand(vars, data->file_id, temp, sizeof(data->file_id)); } else { print_fatal_error(data, "Missing FILE-ID value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "IGNORE-ERRORS")) { /* * IGNORE-ERRORS yes * IGNORE-ERRORS no */ if (_ippFileReadToken(f, temp, sizeof(temp)) && (!_cups_strcasecmp(temp, "yes") || !_cups_strcasecmp(temp, "no"))) { data->def_ignore_errors = !_cups_strcasecmp(temp, "yes"); } else { print_fatal_error(data, "Missing IGNORE-ERRORS value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "INCLUDE")) { /* * INCLUDE "filename" * INCLUDE */ if (_ippFileReadToken(f, temp, sizeof(temp))) { /* * Map the filename to and then run the tests... */ ipptool_test_t inc_data; /* Data for included file */ char filename[1024]; /* Mapped filename */ memcpy(&inc_data, data, sizeof(inc_data)); inc_data.http = NULL; inc_data.pass = 1; inc_data.prev_pass = 1; inc_data.show_header = 1; if (!do_tests(get_filename(f->filename, filename, temp, sizeof(filename)), &inc_data) && data->stop_after_include_error) { data->pass = data->prev_pass = 0; return (0); } } else { print_fatal_error(data, "Missing INCLUDE filename on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->show_header = 1; } else if (!strcmp(token, "INCLUDE-IF-DEFINED")) { /* * INCLUDE-IF-DEFINED name "filename" * INCLUDE-IF-DEFINED name */ if (_ippFileReadToken(f, name, sizeof(name)) && _ippFileReadToken(f, temp, sizeof(temp))) { /* * Map the filename to and then run the tests... */ ipptool_test_t inc_data; /* Data for included file */ char filename[1024]; /* Mapped filename */ memcpy(&inc_data, data, sizeof(inc_data)); inc_data.http = NULL; inc_data.pass = 1; inc_data.prev_pass = 1; inc_data.show_header = 1; if (!do_tests(get_filename(f->filename, filename, temp, sizeof(filename)), &inc_data) && data->stop_after_include_error) { data->pass = data->prev_pass = 0; return (0); } } else { print_fatal_error(data, "Missing INCLUDE-IF-DEFINED name or filename on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->show_header = 1; } else if (!strcmp(token, "INCLUDE-IF-NOT-DEFINED")) { /* * INCLUDE-IF-NOT-DEFINED name "filename" * INCLUDE-IF-NOT-DEFINED name */ if (_ippFileReadToken(f, name, sizeof(name)) && _ippFileReadToken(f, temp, sizeof(temp))) { /* * Map the filename to and then run the tests... */ ipptool_test_t inc_data; /* Data for included file */ char filename[1024]; /* Mapped filename */ memcpy(&inc_data, data, sizeof(inc_data)); inc_data.http = NULL; inc_data.pass = 1; inc_data.prev_pass = 1; inc_data.show_header = 1; if (!do_tests(get_filename(f->filename, filename, temp, sizeof(filename)), &inc_data) && data->stop_after_include_error) { data->pass = data->prev_pass = 0; return (0); } } else { print_fatal_error(data, "Missing INCLUDE-IF-NOT-DEFINED name or filename on line %d of \"%s\".", f->linenum, f->filename); return (0); } data->show_header = 1; } else if (!strcmp(token, "SKIP-IF-DEFINED")) { /* * SKIP-IF-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (_ippVarsGet(vars, name)) data->skip_test = 1; } else { print_fatal_error(data, "Missing SKIP-IF-DEFINED variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "SKIP-IF-NOT-DEFINED")) { /* * SKIP-IF-NOT-DEFINED variable */ if (_ippFileReadToken(f, name, sizeof(name))) { if (!_ippVarsGet(vars, name)) data->skip_test = 1; } else { print_fatal_error(data, "Missing SKIP-IF-NOT-DEFINED variable on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "STOP-AFTER-INCLUDE-ERROR")) { /* * STOP-AFTER-INCLUDE-ERROR yes * STOP-AFTER-INCLUDE-ERROR no */ if (_ippFileReadToken(f, temp, sizeof(temp)) && (!_cups_strcasecmp(temp, "yes") || !_cups_strcasecmp(temp, "no"))) { data->stop_after_include_error = !_cups_strcasecmp(temp, "yes"); } else { print_fatal_error(data, "Missing STOP-AFTER-INCLUDE-ERROR value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "TRANSFER")) { /* * TRANSFER auto * TRANSFER chunked * TRANSFER length */ if (_ippFileReadToken(f, temp, sizeof(temp))) { if (!strcmp(temp, "auto")) data->def_transfer = IPPTOOL_TRANSFER_AUTO; else if (!strcmp(temp, "chunked")) data->def_transfer = IPPTOOL_TRANSFER_CHUNKED; else if (!strcmp(temp, "length")) data->def_transfer = IPPTOOL_TRANSFER_LENGTH; else { print_fatal_error(data, "Bad TRANSFER value \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Missing TRANSFER value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else if (!strcmp(token, "VERSION")) { if (_ippFileReadToken(f, temp, sizeof(temp))) { if (!strcmp(temp, "1.0")) data->def_version = 10; else if (!strcmp(temp, "1.1")) data->def_version = 11; else if (!strcmp(temp, "2.0")) data->def_version = 20; else if (!strcmp(temp, "2.1")) data->def_version = 21; else if (!strcmp(temp, "2.2")) data->def_version = 22; else { print_fatal_error(data, "Bad VERSION \"%s\" on line %d of \"%s\".", temp, f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Missing VERSION number on line %d of \"%s\".", f->linenum, f->filename); return (0); } } else { print_fatal_error(data, "Unexpected token %s seen on line %d of \"%s\".", token, f->linenum, f->filename); return (0); } } return (1); } /* * 'usage()' - Show program usage. */ static void usage(void) { _cupsLangPuts(stderr, _("Usage: ipptool [options] URI filename [ ... filenameN ]")); _cupsLangPuts(stderr, _("Options:")); _cupsLangPuts(stderr, _("--ippserver filename Produce ippserver attribute file")); _cupsLangPuts(stderr, _("--stop-after-include-error\n" " Stop tests after a failed INCLUDE")); _cupsLangPuts(stderr, _("--version Show version")); _cupsLangPuts(stderr, _("-4 Connect using IPv4")); _cupsLangPuts(stderr, _("-6 Connect using IPv6")); _cupsLangPuts(stderr, _("-C Send requests using chunking (default)")); _cupsLangPuts(stderr, _("-E Test with encryption using HTTP Upgrade to TLS")); _cupsLangPuts(stderr, _("-I Ignore errors")); _cupsLangPuts(stderr, _("-L Send requests using content-length")); _cupsLangPuts(stderr, _("-P filename.plist Produce XML plist to a file and test report to standard output")); _cupsLangPuts(stderr, _("-R Repeat tests on server-error-busy")); _cupsLangPuts(stderr, _("-S Test with encryption using HTTPS")); _cupsLangPuts(stderr, _("-T seconds Set the receive/send timeout in seconds")); _cupsLangPuts(stderr, _("-V version Set default IPP version")); _cupsLangPuts(stderr, _("-X Produce XML plist instead of plain text")); _cupsLangPuts(stderr, _("-c Produce CSV output")); _cupsLangPuts(stderr, _("-d name=value Set named variable to value")); _cupsLangPuts(stderr, _("-f filename Set default request filename")); _cupsLangPuts(stderr, _("-h Validate HTTP response headers")); _cupsLangPuts(stderr, _("-i seconds Repeat the last file with the given time interval")); _cupsLangPuts(stderr, _("-l Produce plain text output")); _cupsLangPuts(stderr, _("-n count Repeat the last file the given number of times")); _cupsLangPuts(stderr, _("-q Run silently")); _cupsLangPuts(stderr, _("-t Produce a test report")); _cupsLangPuts(stderr, _("-v Be verbose")); exit(1); } /* * 'with_distinct_values()' - Verify that an attribute contains unique values. */ static int // O - 1 if distinct, 0 if duplicate with_distinct_values( cups_array_t *errors, // I - Array of errors ipp_attribute_t *attr) // I - Attribute to test { int i, // Looping var count; // Number of values ipp_tag_t value_tag; // Value syntax const char *value; // Current value char buffer[8192]; // Temporary buffer cups_array_t *values; // Array of values as strings // If there is only 1 value, it must be distinct if ((count = ippGetCount(attr)) == 1) return (1); // Only check integers, enums, rangeOfInteger, resolution, and nul-terminated // strings... switch (value_tag = ippGetValueTag(attr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : case IPP_TAG_RANGE : case IPP_TAG_RESOLUTION : case IPP_TAG_KEYWORD : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : case IPP_TAG_BEGIN_COLLECTION : break; default : add_stringf(errors, "WITH-DISTINCT-VALUES %s not supported for 1setOf %s", ippGetName(attr), ippTagString(value_tag)); return (0); } // Collect values and determine they are all unique... values = cupsArrayNew3((cups_array_func_t)strcmp, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); for (i = 0; i < count; i ++) { switch (value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : snprintf(buffer, sizeof(buffer), "%d", ippGetInteger(attr, i)); value = buffer; break; case IPP_TAG_RANGE : { int upper, lower = ippGetRange(attr, i, &upper); // Range values snprintf(buffer, sizeof(buffer), "%d-%d", lower, upper); value = buffer; } break; case IPP_TAG_RESOLUTION : { ipp_res_t units; // Resolution units int yres, xres = ippGetResolution(attr, i, &yres, &units); // Resolution values if (xres == yres) snprintf(buffer, sizeof(buffer), "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(buffer, sizeof(buffer), "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); value = buffer; } break; case IPP_TAG_KEYWORD : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : value = ippGetString(attr, i, NULL); break; case IPP_TAG_BEGIN_COLLECTION : { ipp_t *col = ippGetCollection(attr, i); // Collection value ipp_attribute_t *member; // Member attribute char *bufptr, // Pointer into buffer *bufend, // End of buffer prefix; // Prefix character for (prefix = '{', bufptr = buffer, bufend = buffer + sizeof(buffer) - 2, member = ippFirstAttribute(col); member && bufptr < bufend; member = ippNextAttribute(col)) { *bufptr++ = prefix; prefix = ' '; ippAttributeString(member, bufptr, (size_t)(bufend - bufptr)); bufptr += strlen(bufptr); } *bufptr++ = '}'; *bufptr = '\0'; value = buffer; } break; default : // Should never happen value = "unsupported"; break; } if (cupsArrayFind(values, (void *)value)) add_stringf(errors, "DUPLICATE: %s=%s", ippGetName(attr), value); else cupsArrayAdd(values, (void *)value); } // Cleanup... i = cupsArrayCount(values) == count; cupsArrayDelete(values); return (i); } /* * 'with_flags_string()' - Return the "WITH-xxx" predicate that corresponds to * the flags. */ static const char * /* O - WITH-xxx string */ with_flags_string(int flags) /* I - WITH flags */ { if (flags & IPPTOOL_WITH_ALL) { if (flags & IPPTOOL_WITH_HOSTNAME) return ("WITH-ALL-HOSTNAMES"); else if (flags & IPPTOOL_WITH_RESOURCE) return ("WITH-ALL-RESOURCES"); else if (flags & IPPTOOL_WITH_SCHEME) return ("WITH-ALL-SCHEMES"); else return ("WITH-ALL-VALUES"); } else if (flags & IPPTOOL_WITH_HOSTNAME) return ("WITH-HOSTNAME"); else if (flags & IPPTOOL_WITH_RESOURCE) return ("WITH-RESOURCE"); else if (flags & IPPTOOL_WITH_SCHEME) return ("WITH-SCHEME"); else return ("WITH-VALUE"); } /* * 'with_value()' - Test a WITH-VALUE predicate. */ static int /* O - 1 on match, 0 on non-match */ with_value(ipptool_test_t *data, /* I - Test data */ cups_array_t *errors, /* I - Errors array */ char *value, /* I - Value string */ int flags, /* I - Flags for match */ ipp_attribute_t *attr, /* I - Attribute to compare */ char *matchbuf, /* I - Buffer to hold matching value */ size_t matchlen) /* I - Length of match buffer */ { int i, /* Looping var */ count, /* Number of values */ match; /* Match? */ char temp[1024], /* Temporary value string */ *valptr; /* Pointer into value */ const char *name; /* Attribute name */ *matchbuf = '\0'; match = (flags & IPPTOOL_WITH_ALL) ? 1 : 0; /* * NULL matches everything. */ if (!value || !*value) return (1); /* * Compare the value string to the attribute value. */ name = ippGetName(attr); count = ippGetCount(attr); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : for (i = 0; i < count; i ++) { char op, /* Comparison operator */ *nextptr; /* Next pointer */ int intvalue, /* Integer value */ attrvalue = ippGetInteger(attr, i), /* Attribute value */ valmatch = 0; /* Does the current value match? */ valptr = value; while (isspace(*valptr & 255) || isdigit(*valptr & 255) || *valptr == '-' || *valptr == ',' || *valptr == '<' || *valptr == '=' || *valptr == '>') { op = '='; while (*valptr && !isdigit(*valptr & 255) && *valptr != '-') { if (*valptr == '<' || *valptr == '>' || *valptr == '=') op = *valptr; valptr ++; } if (!*valptr) break; intvalue = (int)strtol(valptr, &nextptr, 0); if (nextptr == valptr) break; valptr = nextptr; if ((op == '=' && attrvalue == intvalue) || (op == '<' && attrvalue < intvalue) || (op == '>' && attrvalue > intvalue)) { if (!matchbuf[0]) snprintf(matchbuf, matchlen, "%d", attrvalue); valmatch = 1; break; } } if (flags & IPPTOOL_WITH_ALL) { if (!valmatch) { match = 0; break; } } else if (valmatch) { match = 1; break; } } if (!match && errors) { for (i = 0; i < count; i ++) add_stringf(data->errors, "GOT: %s=%d", name, ippGetInteger(attr, i)); } break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { char op, /* Comparison operator */ *nextptr; /* Next pointer */ int intvalue, /* Integer value */ lower, /* Lower range */ upper, /* Upper range */ valmatch = 0; /* Does the current value match? */ lower = ippGetRange(attr, i, &upper); valptr = value; while (isspace(*valptr & 255) || isdigit(*valptr & 255) || *valptr == '-' || *valptr == ',' || *valptr == '<' || *valptr == '=' || *valptr == '>') { op = '='; while (*valptr && !isdigit(*valptr & 255) && *valptr != '-') { if (*valptr == '<' || *valptr == '>' || *valptr == '=') op = *valptr; valptr ++; } if (!*valptr) break; intvalue = (int)strtol(valptr, &nextptr, 0); if (nextptr == valptr) break; valptr = nextptr; if ((op == '=' && (lower == intvalue || upper == intvalue)) || (op == '<' && upper < intvalue) || (op == '>' && upper > intvalue)) { if (!matchbuf[0]) snprintf(matchbuf, matchlen, "%d-%d", lower, upper); valmatch = 1; break; } } if (flags & IPPTOOL_WITH_ALL) { if (!valmatch) { match = 0; break; } } else if (valmatch) { match = 1; break; } } if (!match && errors) { for (i = 0; i < count; i ++) { int lower, upper; /* Range values */ lower = ippGetRange(attr, i, &upper); add_stringf(data->errors, "GOT: %s=%d-%d", name, lower, upper); } } break; case IPP_TAG_BOOLEAN : for (i = 0; i < count; i ++) { if ((!strcmp(value, "true") || !strcmp(value, "1")) == ippGetBoolean(attr, i)) { if (!matchbuf[0]) strlcpy(matchbuf, value, matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } if (!match && errors) { for (i = 0; i < count; i ++) add_stringf(data->errors, "GOT: %s=%s", name, ippGetBoolean(attr, i) ? "true" : "false"); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { int xres, yres; /* Resolution values */ ipp_res_t units; /* Resolution units */ xres = ippGetResolution(attr, i, &yres, &units); if (xres == yres) snprintf(temp, sizeof(temp), "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(temp, sizeof(temp), "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); if (!strcmp(value, temp)) { if (!matchbuf[0]) strlcpy(matchbuf, value, matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } if (!match && errors) { for (i = 0; i < count; i ++) { int xres, yres; /* Resolution values */ ipp_res_t units; /* Resolution units */ xres = ippGetResolution(attr, i, &yres, &units); if (xres == yres) snprintf(temp, sizeof(temp), "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(temp, sizeof(temp), "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); if (strcmp(value, temp)) add_stringf(data->errors, "GOT: %s=%s", name, temp); } } break; case IPP_TAG_NOVALUE : case IPP_TAG_UNKNOWN : return (1); case IPP_TAG_CHARSET : case IPP_TAG_KEYWORD : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_URI : case IPP_TAG_URISCHEME : if (flags & IPPTOOL_WITH_REGEX) { /* * Value is an extended, case-sensitive POSIX regular expression... */ regex_t re; /* Regular expression */ if ((i = regcomp(&re, value, REG_EXTENDED | REG_NOSUB)) != 0) { regerror(i, &re, temp, sizeof(temp)); print_fatal_error(data, "Unable to compile WITH-VALUE regular expression \"%s\" - %s", value, temp); return (0); } /* * See if ALL of the values match the given regular expression. */ for (i = 0; i < count; i ++) { if (!regexec(&re, get_string(attr, i, flags, temp, sizeof(temp)), 0, NULL, 0)) { if (!matchbuf[0]) strlcpy(matchbuf, get_string(attr, i, flags, temp, sizeof(temp)), matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } regfree(&re); } else if (ippGetValueTag(attr) == IPP_TAG_URI && !(flags & (IPPTOOL_WITH_SCHEME | IPPTOOL_WITH_HOSTNAME | IPPTOOL_WITH_RESOURCE))) { /* * Value is a literal URI string, see if the value(s) match... */ for (i = 0; i < count; i ++) { if (!compare_uris(value, get_string(attr, i, flags, temp, sizeof(temp)))) { if (!matchbuf[0]) strlcpy(matchbuf, get_string(attr, i, flags, temp, sizeof(temp)), matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } } else { /* * Value is a literal string, see if the value(s) match... */ for (i = 0; i < count; i ++) { int result; switch (ippGetValueTag(attr)) { case IPP_TAG_URI : /* * Some URI components are case-sensitive, some not... */ if (flags & (IPPTOOL_WITH_SCHEME | IPPTOOL_WITH_HOSTNAME)) result = _cups_strcasecmp(value, get_string(attr, i, flags, temp, sizeof(temp))); else result = strcmp(value, get_string(attr, i, flags, temp, sizeof(temp))); break; case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : /* * mimeMediaType, nameWithoutLanguage, nameWithLanguage, * textWithoutLanguage, and textWithLanguage are defined to * be case-insensitive strings... */ result = _cups_strcasecmp(value, get_string(attr, i, flags, temp, sizeof(temp))); break; default : /* * Other string syntaxes are defined as lowercased so we use * case-sensitive comparisons to catch problems... */ result = strcmp(value, get_string(attr, i, flags, temp, sizeof(temp))); break; } if (!result) { if (!matchbuf[0]) strlcpy(matchbuf, get_string(attr, i, flags, temp, sizeof(temp)), matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } } if (!match && errors) { for (i = 0; i < count; i ++) add_stringf(data->errors, "GOT: %s=\"%s\"", name, ippGetString(attr, i, NULL)); } break; case IPP_TAG_STRING : if (flags & IPPTOOL_WITH_REGEX) { /* * Value is an extended, case-sensitive POSIX regular expression... */ void *adata; /* Pointer to octetString data */ int adatalen; /* Length of octetString */ regex_t re; /* Regular expression */ if ((i = regcomp(&re, value, REG_EXTENDED | REG_NOSUB)) != 0) { regerror(i, &re, temp, sizeof(temp)); print_fatal_error(data, "Unable to compile WITH-VALUE regular expression \"%s\" - %s", value, temp); return (0); } /* * See if ALL of the values match the given regular expression. */ for (i = 0; i < count; i ++) { if ((adata = ippGetOctetString(attr, i, &adatalen)) == NULL || adatalen >= (int)sizeof(temp)) { match = 0; break; } memcpy(temp, adata, (size_t)adatalen); temp[adatalen] = '\0'; if (!regexec(&re, temp, 0, NULL, 0)) { if (!matchbuf[0]) strlcpy(matchbuf, temp, matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } regfree(&re); if (!match && errors) { for (i = 0; i < count; i ++) { adata = ippGetOctetString(attr, i, &adatalen); copy_hex_string(temp, adata, adatalen, sizeof(temp)); add_stringf(data->errors, "GOT: %s=\"%s\"", name, temp); } } } else { /* * Value is a literal or hex-encoded string... */ unsigned char withdata[1023], /* WITH-VALUE data */ *adata; /* Pointer to octetString data */ int withlen, /* Length of WITH-VALUE data */ adatalen; /* Length of octetString */ if (*value == '<') { /* * Grab hex-encoded value... */ if ((withlen = (int)strlen(value)) & 1 || withlen > (int)(2 * (sizeof(withdata) + 1))) { print_fatal_error(data, "Bad WITH-VALUE hex value."); return (0); } withlen = withlen / 2 - 1; for (valptr = value + 1, adata = withdata; *valptr; valptr += 2) { int ch; /* Current character/byte */ if (isdigit(valptr[0])) ch = (valptr[0] - '0') << 4; else if (isalpha(valptr[0])) ch = (tolower(valptr[0]) - 'a' + 10) << 4; else break; if (isdigit(valptr[1])) ch |= valptr[1] - '0'; else if (isalpha(valptr[1])) ch |= tolower(valptr[1]) - 'a' + 10; else break; *adata++ = (unsigned char)ch; } if (*valptr) { print_fatal_error(data, "Bad WITH-VALUE hex value."); return (0); } } else { /* * Copy literal string value... */ withlen = (int)strlen(value); memcpy(withdata, value, (size_t)withlen); } for (i = 0; i < count; i ++) { adata = ippGetOctetString(attr, i, &adatalen); if (withlen == adatalen && !memcmp(withdata, adata, (size_t)withlen)) { if (!matchbuf[0]) copy_hex_string(matchbuf, adata, adatalen, matchlen); if (!(flags & IPPTOOL_WITH_ALL)) { match = 1; break; } } else if (flags & IPPTOOL_WITH_ALL) { match = 0; break; } } if (!match && errors) { for (i = 0; i < count; i ++) { adata = ippGetOctetString(attr, i, &adatalen); copy_hex_string(temp, adata, adatalen, sizeof(temp)); add_stringf(data->errors, "GOT: %s=\"%s\"", name, temp); } } } break; default : break; } return (match); } /* * 'with_value_from()' - Test a WITH-VALUE-FROM predicate. */ static int /* O - 1 on match, 0 on non-match */ with_value_from( cups_array_t *errors, /* I - Errors array */ ipp_attribute_t *fromattr, /* I - "From" attribute */ ipp_attribute_t *attr, /* I - Attribute to compare */ char *matchbuf, /* I - Buffer to hold matching value */ size_t matchlen) /* I - Length of match buffer */ { int i, j, /* Looping vars */ count = ippGetCount(attr), /* Number of attribute values */ match = 1; /* Match? */ *matchbuf = '\0'; /* * Compare the from value(s) to the attribute value(s)... */ switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : if (ippGetValueTag(fromattr) != IPP_TAG_INTEGER && ippGetValueTag(fromattr) != IPP_TAG_RANGE) goto wrong_value_tag; for (i = 0; i < count; i ++) { int value = ippGetInteger(attr, i); /* Current integer value */ if (ippContainsInteger(fromattr, value)) { if (!matchbuf[0]) snprintf(matchbuf, matchlen, "%d", value); } else { add_stringf(errors, "GOT: %s=%d", ippGetName(attr), value); match = 0; } } break; case IPP_TAG_ENUM : if (ippGetValueTag(fromattr) != IPP_TAG_ENUM) goto wrong_value_tag; for (i = 0; i < count; i ++) { int value = ippGetInteger(attr, i); /* Current integer value */ if (ippContainsInteger(fromattr, value)) { if (!matchbuf[0]) snprintf(matchbuf, matchlen, "%d", value); } else { add_stringf(errors, "GOT: %s=%d", ippGetName(attr), value); match = 0; } } break; case IPP_TAG_RESOLUTION : if (ippGetValueTag(fromattr) != IPP_TAG_RESOLUTION) goto wrong_value_tag; for (i = 0; i < count; i ++) { int xres, yres; ipp_res_t units; int fromcount = ippGetCount(fromattr); int fromxres, fromyres; ipp_res_t fromunits; xres = ippGetResolution(attr, i, &yres, &units); for (j = 0; j < fromcount; j ++) { fromxres = ippGetResolution(fromattr, j, &fromyres, &fromunits); if (fromxres == xres && fromyres == yres && fromunits == units) break; } if (j < fromcount) { if (!matchbuf[0]) { if (xres == yres) snprintf(matchbuf, matchlen, "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(matchbuf, matchlen, "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } } else { if (xres == yres) add_stringf(errors, "GOT: %s=%d%s", ippGetName(attr), xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else add_stringf(errors, "GOT: %s=%dx%d%s", ippGetName(attr), xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); match = 0; } } break; case IPP_TAG_NOVALUE : case IPP_TAG_UNKNOWN : return (1); case IPP_TAG_CHARSET : case IPP_TAG_KEYWORD : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : case IPP_TAG_URISCHEME : for (i = 0; i < count; i ++) { const char *value = ippGetString(attr, i, NULL); /* Current string value */ if (ippContainsString(fromattr, value)) { if (!matchbuf[0]) strlcpy(matchbuf, value, matchlen); } else { add_stringf(errors, "GOT: %s='%s'", ippGetName(attr), value); match = 0; } } break; case IPP_TAG_URI : for (i = 0; i < count; i ++) { const char *value = ippGetString(attr, i, NULL); /* Current string value */ int fromcount = ippGetCount(fromattr); for (j = 0; j < fromcount; j ++) { if (!compare_uris(value, ippGetString(fromattr, j, NULL))) { if (!matchbuf[0]) strlcpy(matchbuf, value, matchlen); break; } } if (j >= fromcount) { add_stringf(errors, "GOT: %s='%s'", ippGetName(attr), value); match = 0; } } break; default : match = 0; break; } return (match); /* value tag mismatch between fromattr and attr */ wrong_value_tag : add_stringf(errors, "GOT: %s OF-TYPE %s", ippGetName(attr), ippTagString(ippGetValueTag(attr))); return (0); } cups-2.4.7/tools/ippfind.c0000644000175000017500000023145214502571342015325 0ustar zdohnalzdohnal/* * Utility to find IPP printers via Bonjour/DNS-SD and optionally run * commands such as IPP and Bonjour conformance tests. This tool is * inspired by the UNIX "find" command, thus its name. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2020 by the IEEE-ISTO Printer Working Group * Copyright © 2008-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #define _CUPS_NO_DEPRECATED #include #ifdef _WIN32 # include # include #else # include #endif /* _WIN32 */ #include #ifdef HAVE_MDNSRESPONDER # include #elif defined(HAVE_AVAHI) # include # include # include # include # include # include # define kDNSServiceMaxDomainName AVAHI_DOMAIN_NAME_MAX #endif /* HAVE_MDNSRESPONDER */ #ifndef _WIN32 extern char **environ; /* Process environment variables */ #endif /* !_WIN32 */ /* * Structures... */ typedef enum ippfind_exit_e /* Exit codes */ { IPPFIND_EXIT_TRUE = 0, /* OK and result is true */ IPPFIND_EXIT_FALSE, /* OK but result is false*/ IPPFIND_EXIT_BONJOUR, /* Browse/resolve failure */ IPPFIND_EXIT_SYNTAX, /* Bad option or syntax error */ IPPFIND_EXIT_MEMORY /* Out of memory */ } ippfind_exit_t; typedef enum ippfind_op_e /* Operations for expressions */ { /* "Evaluation" operations */ IPPFIND_OP_NONE, /* No operation */ IPPFIND_OP_AND, /* Logical AND of all children */ IPPFIND_OP_OR, /* Logical OR of all children */ IPPFIND_OP_TRUE, /* Always true */ IPPFIND_OP_FALSE, /* Always false */ IPPFIND_OP_IS_LOCAL, /* Is a local service */ IPPFIND_OP_IS_REMOTE, /* Is a remote service */ IPPFIND_OP_DOMAIN_REGEX, /* Domain matches regular expression */ IPPFIND_OP_NAME_REGEX, /* Name matches regular expression */ IPPFIND_OP_NAME_LITERAL, /* Name matches literal string */ IPPFIND_OP_HOST_REGEX, /* Hostname matches regular expression */ IPPFIND_OP_PORT_RANGE, /* Port matches range */ IPPFIND_OP_PATH_REGEX, /* Path matches regular expression */ IPPFIND_OP_TXT_EXISTS, /* TXT record key exists */ IPPFIND_OP_TXT_REGEX, /* TXT record key matches regular expression */ IPPFIND_OP_URI_REGEX, /* URI matches regular expression */ /* "Output" operations */ IPPFIND_OP_EXEC, /* Execute when true */ IPPFIND_OP_LIST, /* List when true */ IPPFIND_OP_PRINT_NAME, /* Print URI when true */ IPPFIND_OP_PRINT_URI, /* Print name when true */ IPPFIND_OP_QUIET /* No output when true */ } ippfind_op_t; typedef struct ippfind_expr_s /* Expression */ { struct ippfind_expr_s *prev, /* Previous expression */ *next, /* Next expression */ *parent, /* Parent expressions */ *child; /* Child expressions */ ippfind_op_t op; /* Operation code (see above) */ int invert; /* Invert the result */ char *name; /* TXT record key or literal name */ regex_t re; /* Regular expression for matching */ int range[2]; /* Port number range */ int num_args; /* Number of arguments for exec */ char **args; /* Arguments for exec */ } ippfind_expr_t; typedef struct ippfind_srv_s /* Service information */ { #ifdef HAVE_MDNSRESPONDER DNSServiceRef ref; /* Service reference for query */ #elif defined(HAVE_AVAHI) AvahiServiceResolver *ref; /* Resolver */ #endif /* HAVE_MDNSRESPONDER */ char *name, /* Service name */ *domain, /* Domain name */ *regtype, /* Registration type */ *fullName, /* Full name */ *host, /* Hostname */ *resource, /* Resource path */ *uri; /* URI */ int num_txt; /* Number of TXT record keys */ cups_option_t *txt; /* TXT record keys */ int port, /* Port number */ is_local, /* Is a local service? */ is_processed, /* Did we process the service? */ is_resolved; /* Got the resolve data? */ } ippfind_srv_t; /* * Local globals... */ #ifdef HAVE_MDNSRESPONDER static DNSServiceRef dnssd_ref; /* Master service reference */ #elif defined(HAVE_AVAHI) static AvahiClient *avahi_client = NULL;/* Client information */ static int avahi_got_data = 0; /* Got data from poll? */ static AvahiSimplePoll *avahi_poll = NULL; /* Poll information */ #endif /* HAVE_MDNSRESPONDER */ static int address_family = AF_UNSPEC; /* Address family for LIST */ static int bonjour_error = 0; /* Error browsing/resolving? */ static double bonjour_timeout = 1.0; /* Timeout in seconds */ static int ipp_version = 20; /* IPP version for LIST */ /* * Local functions... */ #ifdef HAVE_MDNSRESPONDER static void DNSSD_API browse_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context) _CUPS_NONNULL(1,5,6,7,8); static void DNSSD_API browse_local_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context) _CUPS_NONNULL(1,5,6,7,8); #elif defined(HAVE_AVAHI) static void browse_callback(AvahiServiceBrowser *browser, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *serviceName, const char *regtype, const char *replyDomain, AvahiLookupResultFlags flags, void *context); static void client_callback(AvahiClient *client, AvahiClientState state, void *context); #endif /* HAVE_MDNSRESPONDER */ static int compare_services(ippfind_srv_t *a, ippfind_srv_t *b); static const char *dnssd_error_string(int error); static int eval_expr(ippfind_srv_t *service, ippfind_expr_t *expressions); static int exec_program(ippfind_srv_t *service, int num_args, char **args); static ippfind_srv_t *get_service(cups_array_t *services, const char *serviceName, const char *regtype, const char *replyDomain) _CUPS_NONNULL(1,2,3,4); static double get_time(void); static int list_service(ippfind_srv_t *service); static ippfind_expr_t *new_expr(ippfind_op_t op, int invert, const char *value, const char *regex, char **args); #ifdef HAVE_MDNSRESPONDER static void DNSSD_API resolve_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullName, const char *hostTarget, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context) _CUPS_NONNULL(1,5,6,9, 10); #elif defined(HAVE_AVAHI) static int poll_callback(struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context); static void resolve_callback(AvahiServiceResolver *res, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *serviceName, const char *regtype, const char *replyDomain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void *context); #endif /* HAVE_MDNSRESPONDER */ static void set_service_uri(ippfind_srv_t *service); static void show_usage(void) _CUPS_NORETURN; static void show_version(void) _CUPS_NORETURN; /* * 'main()' - Browse for printers. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, /* Looping var */ have_output = 0,/* Have output expression */ status = IPPFIND_EXIT_FALSE; /* Exit status */ const char *opt, /* Option character */ *search; /* Current browse/resolve string */ cups_array_t *searches; /* Things to browse/resolve */ cups_array_t *services; /* Service array */ ippfind_srv_t *service; /* Current service */ ippfind_expr_t *expressions = NULL, /* Expression tree */ *temp = NULL, /* New expression */ *parent = NULL, /* Parent expression */ *current = NULL,/* Current expression */ *parens[100]; /* Markers for parenthesis */ int num_parens = 0; /* Number of parenthesis */ ippfind_op_t logic = IPPFIND_OP_AND; /* Logic for next expression */ int invert = 0; /* Invert expression? */ int err; /* DNS-SD error */ #ifdef HAVE_MDNSRESPONDER fd_set sinput; /* Input set for select() */ struct timeval stimeout; /* Timeout for select() */ #endif /* HAVE_MDNSRESPONDER */ double endtime; /* End time */ static const char * const ops[] = /* Node operation names */ { "NONE", "AND", "OR", "TRUE", "FALSE", "IS_LOCAL", "IS_REMOTE", "DOMAIN_REGEX", "NAME_REGEX", "NAME_LITERAL", "HOST_REGEX", "PORT_RANGE", "PATH_REGEX", "TXT_EXISTS", "TXT_REGEX", "URI_REGEX", "EXEC", "LIST", "PRINT_NAME", "PRINT_URI", "QUIET" }; /* * Initialize the locale... */ _cupsSetLocale(argv); /* * Create arrays to track services and things we want to browse/resolve... */ searches = cupsArrayNew(NULL, NULL); services = cupsArrayNew((cups_array_func_t)compare_services, NULL); /* * Parse command-line... */ if (getenv("IPPFIND_DEBUG")) for (i = 1; i < argc; i ++) fprintf(stderr, "argv[%d]=\"%s\"\n", i, argv[i]); for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { if (argv[i][1] == '-') { /* * Parse --option options... */ if (!strcmp(argv[i], "--and")) { if (logic == IPPFIND_OP_OR) { _cupsLangPuts(stderr, _("ippfind: Cannot use --and after --or.")); show_usage(); } if (!current) { _cupsLangPuts(stderr, _("ippfind: Missing expression before \"--and\".")); show_usage(); } temp = NULL; } else if (!strcmp(argv[i], "--domain")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), "--domain"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_DOMAIN_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--exec")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Expected program after %s."), "--exec"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_EXEC, invert, NULL, NULL, argv + i)) == NULL) return (IPPFIND_EXIT_MEMORY); while (i < argc) if (!strcmp(argv[i], ";")) break; else i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Expected semi-colon after %s."), "--exec"); show_usage(); } have_output = 1; } else if (!strcmp(argv[i], "--false")) { if ((temp = new_expr(IPPFIND_OP_FALSE, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--help")) { show_usage(); } else if (!strcmp(argv[i], "--host")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), "--host"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_HOST_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--ls")) { if ((temp = new_expr(IPPFIND_OP_LIST, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; } else if (!strcmp(argv[i], "--local")) { if ((temp = new_expr(IPPFIND_OP_IS_LOCAL, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--literal-name")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing name after %s."), "--literal-name"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_NAME_LITERAL, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--name")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), "--name"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_NAME_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--not")) { invert = 1; } else if (!strcmp(argv[i], "--or")) { if (!current) { _cupsLangPuts(stderr, _("ippfind: Missing expression before \"--or\".")); show_usage(); } logic = IPPFIND_OP_OR; if (parent && parent->op == IPPFIND_OP_OR) { /* * Already setup to do "foo --or bar --or baz"... */ temp = NULL; } else if (!current->prev && parent) { /* * Change parent node into an OR node... */ parent->op = IPPFIND_OP_OR; temp = NULL; } else if (!current->prev) { /* * Need to group "current" in a new OR node... */ if ((temp = new_expr(IPPFIND_OP_OR, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); temp->parent = parent; temp->child = current; current->parent = temp; if (parent) parent->child = temp; else expressions = temp; parent = temp; temp = NULL; } else { /* * Need to group previous expressions in an AND node, and then * put that in an OR node... */ if ((temp = new_expr(IPPFIND_OP_AND, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); while (current->prev) { current->parent = temp; current = current->prev; } current->parent = temp; temp->child = current; current = temp; if ((temp = new_expr(IPPFIND_OP_OR, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); temp->parent = parent; current->parent = temp; if (parent) parent->child = temp; else expressions = temp; parent = temp; temp = NULL; } } else if (!strcmp(argv[i], "--path")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), "--path"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_PATH_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--port")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Expected port range after %s."), "--port"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_PORT_RANGE, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--print")) { if ((temp = new_expr(IPPFIND_OP_PRINT_URI, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; } else if (!strcmp(argv[i], "--print-name")) { if ((temp = new_expr(IPPFIND_OP_PRINT_NAME, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; } else if (!strcmp(argv[i], "--quiet")) { if ((temp = new_expr(IPPFIND_OP_QUIET, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; } else if (!strcmp(argv[i], "--remote")) { if ((temp = new_expr(IPPFIND_OP_IS_REMOTE, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--true")) { if ((temp = new_expr(IPPFIND_OP_TRUE, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--txt")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Expected key name after %s."), "--txt"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_TXT_EXISTS, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strncmp(argv[i], "--txt-", 6)) { const char *key = argv[i] + 6;/* TXT key */ i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), argv[i - 1]); show_usage(); } if ((temp = new_expr(IPPFIND_OP_TXT_REGEX, invert, key, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--uri")) { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after %s."), "--uri"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_URI_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); } else if (!strcmp(argv[i], "--version")) { show_version(); } else { _cupsLangPrintf(stderr, _("%s: Unknown option \"%s\"."), "ippfind", argv[i]); show_usage(); } if (temp) { /* * Add new expression... */ if (logic == IPPFIND_OP_AND && current && current->prev && parent && parent->op != IPPFIND_OP_AND) { /* * Need to re-group "current" in a new AND node... */ ippfind_expr_t *tempand; /* Temporary AND node */ if ((tempand = new_expr(IPPFIND_OP_AND, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); /* * Replace "current" with new AND node at the end of this list... */ current->prev->next = tempand; tempand->prev = current->prev; tempand->parent = parent; /* * Add "current to the new AND node... */ tempand->child = current; current->parent = tempand; current->prev = NULL; parent = tempand; } /* * Add the new node at current level... */ temp->parent = parent; temp->prev = current; if (current) current->next = temp; else if (parent) parent->child = temp; else expressions = temp; current = temp; invert = 0; logic = IPPFIND_OP_AND; temp = NULL; } } else { /* * Parse -o options */ for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case '4' : address_family = AF_INET; break; case '6' : address_family = AF_INET6; break; case 'N' : /* Literal name */ i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing name after %s."), "-N"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_NAME_LITERAL, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'P' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Expected port range after %s."), "-P"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_PORT_RANGE, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'T' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Missing timeout for \"-T\"."), "ippfind"); show_usage(); } bonjour_timeout = atof(argv[i]); break; case 'V' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Missing version for \"-V\"."), "ippfind"); show_usage(); } if (!strcmp(argv[i], "1.1")) ipp_version = 11; else if (!strcmp(argv[i], "2.0")) ipp_version = 20; else if (!strcmp(argv[i], "2.1")) ipp_version = 21; else if (!strcmp(argv[i], "2.2")) ipp_version = 22; else { _cupsLangPrintf(stderr, _("%s: Bad version %s for \"-V\"."), "ippfind", argv[i]); show_usage(); } break; case 'd' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after " "%s."), "-d"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_DOMAIN_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'h' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after " "%s."), "-h"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_HOST_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'l' : if ((temp = new_expr(IPPFIND_OP_LIST, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; break; case 'n' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after " "%s."), "-n"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_NAME_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'p' : if ((temp = new_expr(IPPFIND_OP_PRINT_URI, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; break; case 'q' : if ((temp = new_expr(IPPFIND_OP_QUIET, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; break; case 'r' : if ((temp = new_expr(IPPFIND_OP_IS_REMOTE, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 's' : if ((temp = new_expr(IPPFIND_OP_PRINT_NAME, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); have_output = 1; break; case 't' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing key name after %s."), "-t"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_TXT_EXISTS, invert, argv[i], NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'u' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing regular expression after " "%s."), "-u"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_URI_REGEX, invert, NULL, argv[i], NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); break; case 'x' : i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing program after %s."), "-x"); show_usage(); } if ((temp = new_expr(IPPFIND_OP_EXEC, invert, NULL, NULL, argv + i)) == NULL) return (IPPFIND_EXIT_MEMORY); while (i < argc) if (!strcmp(argv[i], ";")) break; else i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("ippfind: Missing semi-colon after %s."), "-x"); show_usage(); } have_output = 1; break; default : _cupsLangPrintf(stderr, _("%s: Unknown option \"-%c\"."), "ippfind", *opt); show_usage(); } if (temp) { /* * Add new expression... */ if (logic == IPPFIND_OP_AND && current && current->prev && parent && parent->op != IPPFIND_OP_AND) { /* * Need to re-group "current" in a new AND node... */ ippfind_expr_t *tempand; /* Temporary AND node */ if ((tempand = new_expr(IPPFIND_OP_AND, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); /* * Replace "current" with new AND node at the end of this list... */ current->prev->next = tempand; tempand->prev = current->prev; tempand->parent = parent; /* * Add "current to the new AND node... */ tempand->child = current; current->parent = tempand; current->prev = NULL; parent = tempand; } /* * Add the new node at current level... */ temp->parent = parent; temp->prev = current; if (current) current->next = temp; else if (parent) parent->child = temp; else expressions = temp; current = temp; invert = 0; logic = IPPFIND_OP_AND; temp = NULL; } } } } else if (!strcmp(argv[i], "(")) { if (num_parens >= 100) { _cupsLangPuts(stderr, _("ippfind: Too many parenthesis.")); show_usage(); } if ((temp = new_expr(IPPFIND_OP_AND, invert, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); parens[num_parens++] = temp; if (current) { temp->parent = current->parent; current->next = temp; temp->prev = current; } else expressions = temp; parent = temp; current = NULL; invert = 0; logic = IPPFIND_OP_AND; } else if (!strcmp(argv[i], ")")) { if (num_parens <= 0) { _cupsLangPuts(stderr, _("ippfind: Missing open parenthesis.")); show_usage(); } current = parens[--num_parens]; parent = current->parent; invert = 0; logic = IPPFIND_OP_AND; } else if (!strcmp(argv[i], "!")) { invert = 1; } else { /* * _regtype._tcp[,subtype][.domain] * * OR * * service-name[._regtype._tcp[.domain]] */ cupsArrayAdd(searches, argv[i]); } } if (num_parens > 0) { _cupsLangPuts(stderr, _("ippfind: Missing close parenthesis.")); show_usage(); } if (!have_output) { /* * Add an implicit --print-uri to the end... */ if ((temp = new_expr(IPPFIND_OP_PRINT_URI, 0, NULL, NULL, NULL)) == NULL) return (IPPFIND_EXIT_MEMORY); if (current) { while (current->parent) current = current->parent; current->next = temp; temp->prev = current; } else expressions = temp; } if (cupsArrayCount(searches) == 0) { /* * Add an implicit browse for IPP printers ("_ipp._tcp")... */ cupsArrayAdd(searches, "_ipp._tcp"); } if (getenv("IPPFIND_DEBUG")) { int indent = 4; /* Indentation */ puts("Expression tree:"); current = expressions; while (current) { /* * Print the current node... */ printf("%*s%s%s\n", indent, "", current->invert ? "!" : "", ops[current->op]); /* * Advance to the next node... */ if (current->child) { current = current->child; indent += 4; } else if (current->next) current = current->next; else if (current->parent) { while (current->parent) { indent -= 4; current = current->parent; if (current->next) break; } current = current->next; } else current = NULL; } puts("\nSearch items:"); for (search = (const char *)cupsArrayFirst(searches); search; search = (const char *)cupsArrayNext(searches)) printf(" %s\n", search); } /* * Start up browsing/resolving... */ #ifdef HAVE_MDNSRESPONDER if ((err = DNSServiceCreateConnection(&dnssd_ref)) != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("ippfind: Unable to use Bonjour: %s"), dnssd_error_string(err)); return (IPPFIND_EXIT_BONJOUR); } #elif defined(HAVE_AVAHI) if ((avahi_poll = avahi_simple_poll_new()) == NULL) { _cupsLangPrintf(stderr, _("ippfind: Unable to use Bonjour: %s"), strerror(errno)); return (IPPFIND_EXIT_BONJOUR); } avahi_simple_poll_set_func(avahi_poll, poll_callback, NULL); avahi_client = avahi_client_new(avahi_simple_poll_get(avahi_poll), 0, client_callback, avahi_poll, &err); if (!avahi_client) { _cupsLangPrintf(stderr, _("ippfind: Unable to use Bonjour: %s"), dnssd_error_string(err)); return (IPPFIND_EXIT_BONJOUR); } #endif /* HAVE_MDNSRESPONDER */ for (search = (const char *)cupsArrayFirst(searches); search; search = (const char *)cupsArrayNext(searches)) { char buf[1024], /* Full name string */ *name = NULL, /* Service instance name */ *regtype, /* Registration type */ *domain; /* Domain, if any */ strlcpy(buf, search, sizeof(buf)); if (!strncmp(buf, "_http._", 7) || !strncmp(buf, "_https._", 8) || !strncmp(buf, "_ipp._", 6) || !strncmp(buf, "_ipps._", 7)) { regtype = buf; } else if ((regtype = strstr(buf, "._")) != NULL) { if (strcmp(regtype, "._tcp")) { /* * "something._protocol._tcp" -> search for something with the given * protocol... */ name = buf; *regtype++ = '\0'; } else { /* * "_protocol._tcp" -> search for everything with the given protocol... */ /* name = NULL; */ regtype = buf; } } else { /* * "something" -> search for something with IPP protocol... */ name = buf; regtype = "_ipp._tcp"; } for (domain = regtype; *domain; domain ++) { if (*domain == '.' && domain[1] != '_') { *domain++ = '\0'; break; } } if (!*domain) domain = NULL; if (name) { /* * Resolve the given service instance name, regtype, and domain... */ if (!domain) domain = "local."; service = get_service(services, name, regtype, domain); if (getenv("IPPFIND_DEBUG")) fprintf(stderr, "Resolving name=\"%s\", regtype=\"%s\", domain=\"%s\"\n", name, regtype, domain); #ifdef HAVE_MDNSRESPONDER service->ref = dnssd_ref; err = DNSServiceResolve(&(service->ref), kDNSServiceFlagsShareConnection, 0, name, regtype, domain, resolve_callback, service); #elif defined(HAVE_AVAHI) service->ref = avahi_service_resolver_new(avahi_client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, name, regtype, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback, service); if (service->ref) err = 0; else err = avahi_client_errno(avahi_client); #endif /* HAVE_MDNSRESPONDER */ } else { /* * Browse for services of the given type... */ if (getenv("IPPFIND_DEBUG")) fprintf(stderr, "Browsing for regtype=\"%s\", domain=\"%s\"\n", regtype, domain); #ifdef HAVE_MDNSRESPONDER DNSServiceRef ref; /* Browse reference */ ref = dnssd_ref; err = DNSServiceBrowse(&ref, kDNSServiceFlagsShareConnection, 0, regtype, domain, browse_callback, services); if (!err) { ref = dnssd_ref; err = DNSServiceBrowse(&ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, regtype, domain, browse_local_callback, services); } #elif defined(HAVE_AVAHI) char *subtype, /* Sub-type, if any */ subtype_buf[256]; /* Sub-type buffer */ if ((subtype = strstr(regtype, ",_")) != NULL) { *subtype++ = '\0'; snprintf(subtype_buf, sizeof(subtype_buf), "%s._sub.%s", subtype, regtype); regtype = subtype_buf; } if (avahi_service_browser_new(avahi_client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, regtype, domain, 0, browse_callback, services)) err = 0; else err = avahi_client_errno(avahi_client); #endif /* HAVE_MDNSRESPONDER */ } if (err) { _cupsLangPrintf(stderr, _("ippfind: Unable to browse or resolve: %s"), dnssd_error_string(err)); return (IPPFIND_EXIT_BONJOUR); } } /* * Process browse/resolve requests... */ if (bonjour_timeout > 1.0) endtime = get_time() + bonjour_timeout; else endtime = get_time() + 300.0; while (get_time() < endtime) { int process = 0; /* Process services? */ #ifdef HAVE_MDNSRESPONDER int fd = DNSServiceRefSockFD(dnssd_ref); /* File descriptor for DNS-SD */ FD_ZERO(&sinput); FD_SET(fd, &sinput); stimeout.tv_sec = 0; stimeout.tv_usec = 500000; if (select(fd + 1, &sinput, NULL, NULL, &stimeout) < 0) continue; if (FD_ISSET(fd, &sinput)) { /* * Process responses... */ DNSServiceProcessResult(dnssd_ref); } else { /* * Time to process services... */ process = 1; } #elif defined(HAVE_AVAHI) avahi_got_data = 0; if (avahi_simple_poll_iterate(avahi_poll, 500) > 0) { /* * We've been told to exit the loop. Perhaps the connection to * Avahi failed. */ return (IPPFIND_EXIT_BONJOUR); } if (!avahi_got_data) { /* * Time to process services... */ process = 1; } #endif /* HAVE_MDNSRESPONDER */ if (process) { /* * Process any services that we have found... */ int active = 0, /* Number of active resolves */ processed = 0; /* Number of processed services */ for (service = (ippfind_srv_t *)cupsArrayFirst(services); service; service = (ippfind_srv_t *)cupsArrayNext(services)) { if (service->is_processed) processed ++; if (!service->ref && !service->is_resolved) { /* * Found a service, now resolve it (but limit to 50 active resolves...) */ if (active < 50) { #ifdef HAVE_MDNSRESPONDER service->ref = dnssd_ref; err = DNSServiceResolve(&(service->ref), kDNSServiceFlagsShareConnection, 0, service->name, service->regtype, service->domain, resolve_callback, service); #elif defined(HAVE_AVAHI) service->ref = avahi_service_resolver_new(avahi_client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, service->name, service->regtype, service->domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback, service); if (service->ref) err = 0; else err = avahi_client_errno(avahi_client); #endif /* HAVE_MDNSRESPONDER */ if (err) { _cupsLangPrintf(stderr, _("ippfind: Unable to browse or resolve: %s"), dnssd_error_string(err)); return (IPPFIND_EXIT_BONJOUR); } active ++; } } else if (service->is_resolved && !service->is_processed) { /* * Resolved, not process this service against the expressions... */ if (service->ref) { #ifdef HAVE_MDNSRESPONDER DNSServiceRefDeallocate(service->ref); #else avahi_service_resolver_free(service->ref); #endif /* HAVE_MDNSRESPONDER */ service->ref = NULL; } if (eval_expr(service, expressions)) status = IPPFIND_EXIT_TRUE; service->is_processed = 1; } else if (service->ref) active ++; } /* * If we have processed all services we have discovered, then we are done. */ if (processed == cupsArrayCount(services) && bonjour_timeout <= 1.0) break; } } if (bonjour_error) return (IPPFIND_EXIT_BONJOUR); else return (status); } #ifdef HAVE_MDNSRESPONDER /* * 'browse_callback()' - Browse devices. */ static void DNSSD_API browse_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Option flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain, /* I - Service domain */ void *context) /* I - Services array */ { /* * Only process "add" data... */ (void)sdRef; (void)interfaceIndex; if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; /* * Get the device... */ get_service((cups_array_t *)context, serviceName, regtype, replyDomain); } /* * 'browse_local_callback()' - Browse local devices. */ static void DNSSD_API browse_local_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Option flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain, /* I - Service domain */ void *context) /* I - Services array */ { ippfind_srv_t *service; /* Service */ /* * Only process "add" data... */ (void)sdRef; (void)interfaceIndex; if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; /* * Get the device... */ service = get_service((cups_array_t *)context, serviceName, regtype, replyDomain); service->is_local = 1; } #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI /* * 'browse_callback()' - Browse devices. */ static void browse_callback( AvahiServiceBrowser *browser, /* I - Browser */ AvahiIfIndex interface, /* I - Interface index (unused) */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiBrowserEvent event, /* I - What happened */ const char *name, /* I - Service name */ const char *type, /* I - Registration type */ const char *domain, /* I - Domain */ AvahiLookupResultFlags flags, /* I - Flags */ void *context) /* I - Services array */ { AvahiClient *client = avahi_service_browser_get_client(browser); /* Client information */ ippfind_srv_t *service; /* Service information */ (void)interface; (void)protocol; (void)context; switch (event) { case AVAHI_BROWSER_FAILURE: fprintf(stderr, "DEBUG: browse_callback: %s\n", avahi_strerror(avahi_client_errno(client))); bonjour_error = 1; avahi_simple_poll_quit(avahi_poll); break; case AVAHI_BROWSER_NEW: /* * This object is new on the network. Create a device entry for it if * it doesn't yet exist. */ service = get_service((cups_array_t *)context, name, type, domain); if (flags & AVAHI_LOOKUP_RESULT_LOCAL) service->is_local = 1; break; case AVAHI_BROWSER_REMOVE: case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: break; } } /* * 'client_callback()' - Avahi client callback function. */ static void client_callback( AvahiClient *client, /* I - Client information (unused) */ AvahiClientState state, /* I - Current state */ void *context) /* I - User data (unused) */ { (void)client; (void)context; /* * If the connection drops, quit. */ if (state == AVAHI_CLIENT_FAILURE) { fputs("DEBUG: Avahi connection failed.\n", stderr); bonjour_error = 1; avahi_simple_poll_quit(avahi_poll); } } #endif /* HAVE_AVAHI */ /* * 'compare_services()' - Compare two devices. */ static int /* O - Result of comparison */ compare_services(ippfind_srv_t *a, /* I - First device */ ippfind_srv_t *b) /* I - Second device */ { return (strcmp(a->name, b->name)); } /* * 'dnssd_error_string()' - Return an error string for an error code. */ static const char * /* O - Error message */ dnssd_error_string(int error) /* I - Error number */ { # ifdef HAVE_MDNSRESPONDER switch (error) { case kDNSServiceErr_NoError : return ("OK."); default : case kDNSServiceErr_Unknown : return ("Unknown error."); case kDNSServiceErr_NoSuchName : return ("Service not found."); case kDNSServiceErr_NoMemory : return ("Out of memory."); case kDNSServiceErr_BadParam : return ("Bad parameter."); case kDNSServiceErr_BadReference : return ("Bad service reference."); case kDNSServiceErr_BadState : return ("Bad state."); case kDNSServiceErr_BadFlags : return ("Bad flags."); case kDNSServiceErr_Unsupported : return ("Unsupported."); case kDNSServiceErr_NotInitialized : return ("Not initialized."); case kDNSServiceErr_AlreadyRegistered : return ("Already registered."); case kDNSServiceErr_NameConflict : return ("Name conflict."); case kDNSServiceErr_Invalid : return ("Invalid name."); case kDNSServiceErr_Firewall : return ("Firewall prevents registration."); case kDNSServiceErr_Incompatible : return ("Client library incompatible."); case kDNSServiceErr_BadInterfaceIndex : return ("Bad interface index."); case kDNSServiceErr_Refused : return ("Server prevents registration."); case kDNSServiceErr_NoSuchRecord : return ("Record not found."); case kDNSServiceErr_NoAuth : return ("Authentication required."); case kDNSServiceErr_NoSuchKey : return ("Encryption key not found."); case kDNSServiceErr_NATTraversal : return ("Unable to traverse NAT boundary."); case kDNSServiceErr_DoubleNAT : return ("Unable to traverse double-NAT boundary."); case kDNSServiceErr_BadTime : return ("Bad system time."); case kDNSServiceErr_BadSig : return ("Bad signature."); case kDNSServiceErr_BadKey : return ("Bad encryption key."); case kDNSServiceErr_Transient : return ("Transient error occurred - please try again."); case kDNSServiceErr_ServiceNotRunning : return ("Server not running."); case kDNSServiceErr_NATPortMappingUnsupported : return ("NAT doesn't support NAT-PMP or UPnP."); case kDNSServiceErr_NATPortMappingDisabled : return ("NAT supports NAT-PNP or UPnP but it is disabled."); case kDNSServiceErr_NoRouter : return ("No Internet/default router configured."); case kDNSServiceErr_PollingMode : return ("Service polling mode error."); #ifndef _WIN32 case kDNSServiceErr_Timeout : return ("Service timeout."); #endif /* !_WIN32 */ } # elif defined(HAVE_AVAHI) return (avahi_strerror(error)); # endif /* HAVE_MDNSRESPONDER */ } /* * 'eval_expr()' - Evaluate the expressions against the specified service. * * Returns 1 for true and 0 for false. */ static int /* O - Result of evaluation */ eval_expr(ippfind_srv_t *service, /* I - Service */ ippfind_expr_t *expressions) /* I - Expressions */ { ippfind_op_t logic; /* Logical operation */ int result; /* Result of current expression */ ippfind_expr_t *expression; /* Current expression */ const char *val; /* TXT value */ /* * Loop through the expressions... */ if (expressions && expressions->parent) logic = expressions->parent->op; else logic = IPPFIND_OP_AND; for (expression = expressions; expression; expression = expression->next) { switch (expression->op) { default : case IPPFIND_OP_AND : case IPPFIND_OP_OR : if (expression->child) result = eval_expr(service, expression->child); else result = expression->op == IPPFIND_OP_AND; break; case IPPFIND_OP_TRUE : result = 1; break; case IPPFIND_OP_FALSE : result = 0; break; case IPPFIND_OP_IS_LOCAL : result = service->is_local; break; case IPPFIND_OP_IS_REMOTE : result = !service->is_local; break; case IPPFIND_OP_DOMAIN_REGEX : result = !regexec(&(expression->re), service->domain, 0, NULL, 0); break; case IPPFIND_OP_NAME_REGEX : result = !regexec(&(expression->re), service->name, 0, NULL, 0); break; case IPPFIND_OP_NAME_LITERAL : result = !_cups_strcasecmp(expression->name, service->name); break; case IPPFIND_OP_HOST_REGEX : result = !regexec(&(expression->re), service->host, 0, NULL, 0); break; case IPPFIND_OP_PORT_RANGE : result = service->port >= expression->range[0] && service->port <= expression->range[1]; break; case IPPFIND_OP_PATH_REGEX : result = !regexec(&(expression->re), service->resource, 0, NULL, 0); break; case IPPFIND_OP_TXT_EXISTS : result = cupsGetOption(expression->name, service->num_txt, service->txt) != NULL; break; case IPPFIND_OP_TXT_REGEX : val = cupsGetOption(expression->name, service->num_txt, service->txt); if (val) result = !regexec(&(expression->re), val, 0, NULL, 0); else result = 0; if (getenv("IPPFIND_DEBUG")) printf("TXT_REGEX of \"%s\": %d\n", val, result); break; case IPPFIND_OP_URI_REGEX : result = !regexec(&(expression->re), service->uri, 0, NULL, 0); break; case IPPFIND_OP_EXEC : result = exec_program(service, expression->num_args, expression->args); break; case IPPFIND_OP_LIST : result = list_service(service); break; case IPPFIND_OP_PRINT_NAME : _cupsLangPuts(stdout, service->name); result = 1; break; case IPPFIND_OP_PRINT_URI : _cupsLangPuts(stdout, service->uri); result = 1; break; case IPPFIND_OP_QUIET : result = 1; break; } if (expression->invert) result = !result; if (logic == IPPFIND_OP_AND && !result) return (0); else if (logic == IPPFIND_OP_OR && result) return (1); } return (logic == IPPFIND_OP_AND); } /* * 'exec_program()' - Execute a program for a service. */ static int /* O - 1 if program terminated successfully, 0 otherwise. */ exec_program(ippfind_srv_t *service, /* I - Service */ int num_args, /* I - Number of command-line args */ char **args) /* I - Command-line arguments */ { char **myargv, /* Command-line arguments */ **myenvp, /* Environment variables */ *ptr, /* Pointer into variable */ domain[1024], /* IPPFIND_SERVICE_DOMAIN */ hostname[1024], /* IPPFIND_SERVICE_HOSTNAME */ name[256], /* IPPFIND_SERVICE_NAME */ port[32], /* IPPFIND_SERVICE_PORT */ regtype[256], /* IPPFIND_SERVICE_REGTYPE */ scheme[128], /* IPPFIND_SERVICE_SCHEME */ uri[1024], /* IPPFIND_SERVICE_URI */ txt[100][256]; /* IPPFIND_TXT_foo */ int i, /* Looping var */ myenvc, /* Number of environment variables */ status; /* Exit status of program */ #ifndef _WIN32 char program[1024]; /* Program to execute */ int pid; /* Process ID */ #endif /* !_WIN32 */ /* * Environment variables... */ snprintf(domain, sizeof(domain), "IPPFIND_SERVICE_DOMAIN=%s", service->domain); snprintf(hostname, sizeof(hostname), "IPPFIND_SERVICE_HOSTNAME=%s", service->host); snprintf(name, sizeof(name), "IPPFIND_SERVICE_NAME=%s", service->name); snprintf(port, sizeof(port), "IPPFIND_SERVICE_PORT=%d", service->port); snprintf(regtype, sizeof(regtype), "IPPFIND_SERVICE_REGTYPE=%s", service->regtype); snprintf(scheme, sizeof(scheme), "IPPFIND_SERVICE_SCHEME=%s", !strncmp(service->regtype, "_http._tcp", 10) ? "http" : !strncmp(service->regtype, "_https._tcp", 11) ? "https" : !strncmp(service->regtype, "_ipp._tcp", 9) ? "ipp" : !strncmp(service->regtype, "_ipps._tcp", 10) ? "ipps" : "lpd"); snprintf(uri, sizeof(uri), "IPPFIND_SERVICE_URI=%s", service->uri); for (i = 0; i < service->num_txt && i < 100; i ++) { snprintf(txt[i], sizeof(txt[i]), "IPPFIND_TXT_%s=%s", service->txt[i].name, service->txt[i].value); for (ptr = txt[i] + 12; *ptr && *ptr != '='; ptr ++) *ptr = (char)_cups_toupper(*ptr); } for (i = 0, myenvc = 7 + service->num_txt; environ[i]; i ++) if (strncmp(environ[i], "IPPFIND_", 8)) myenvc ++; if ((myenvp = calloc((size_t)(myenvc + 1), sizeof(char *))) == NULL) { _cupsLangPuts(stderr, _("ippfind: Out of memory.")); exit(IPPFIND_EXIT_MEMORY); } for (i = 0, myenvc = 0; environ[i]; i ++) if (strncmp(environ[i], "IPPFIND_", 8)) myenvp[myenvc++] = environ[i]; myenvp[myenvc++] = domain; myenvp[myenvc++] = hostname; myenvp[myenvc++] = name; myenvp[myenvc++] = port; myenvp[myenvc++] = regtype; myenvp[myenvc++] = scheme; myenvp[myenvc++] = uri; for (i = 0; i < service->num_txt && i < 100; i ++) myenvp[myenvc++] = txt[i]; /* * Allocate and copy command-line arguments... */ if ((myargv = calloc((size_t)(num_args + 1), sizeof(char *))) == NULL) { _cupsLangPuts(stderr, _("ippfind: Out of memory.")); exit(IPPFIND_EXIT_MEMORY); } for (i = 0; i < num_args; i ++) { if (strchr(args[i], '{')) { char temp[2048], /* Temporary string */ *tptr, /* Pointer into temporary string */ keyword[256], /* {keyword} */ *kptr; /* Pointer into keyword */ for (ptr = args[i], tptr = temp; *ptr; ptr ++) { if (*ptr == '{') { /* * Do a {var} substitution... */ for (kptr = keyword, ptr ++; *ptr && *ptr != '}'; ptr ++) if (kptr < (keyword + sizeof(keyword) - 1)) *kptr++ = *ptr; if (*ptr != '}') { _cupsLangPuts(stderr, _("ippfind: Missing close brace in substitution.")); exit(IPPFIND_EXIT_SYNTAX); } *kptr = '\0'; if (!keyword[0] || !strcmp(keyword, "service_uri")) strlcpy(tptr, service->uri, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_domain")) strlcpy(tptr, service->domain, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_hostname")) strlcpy(tptr, service->host, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_name")) strlcpy(tptr, service->name, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_path")) strlcpy(tptr, service->resource, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_port")) strlcpy(tptr, port + 21, sizeof(temp) - (size_t)(tptr - temp)); else if (!strcmp(keyword, "service_scheme")) strlcpy(tptr, scheme + 22, sizeof(temp) - (size_t)(tptr - temp)); else if (!strncmp(keyword, "txt_", 4)) { const char *val = cupsGetOption(keyword + 4, service->num_txt, service->txt); if (val) strlcpy(tptr, val, sizeof(temp) - (size_t)(tptr - temp)); else *tptr = '\0'; } else { _cupsLangPrintf(stderr, _("ippfind: Unknown variable \"{%s}\"."), keyword); exit(IPPFIND_EXIT_SYNTAX); } tptr += strlen(tptr); } else if (tptr < (temp + sizeof(temp) - 1)) *tptr++ = *ptr; } *tptr = '\0'; myargv[i] = strdup(temp); } else myargv[i] = strdup(args[i]); } #ifdef _WIN32 if (getenv("IPPFIND_DEBUG")) { printf("\nProgram:\n %s\n", args[0]); puts("\nArguments:"); for (i = 0; i < num_args; i ++) printf(" %s\n", myargv[i]); puts("\nEnvironment:"); for (i = 0; i < myenvc; i ++) printf(" %s\n", myenvp[i]); } status = _spawnvpe(_P_WAIT, args[0], myargv, myenvp); #else /* * Execute the program... */ if (strchr(args[0], '/') && !access(args[0], X_OK)) strlcpy(program, args[0], sizeof(program)); else if (!cupsFileFind(args[0], getenv("PATH"), 1, program, sizeof(program))) { _cupsLangPrintf(stderr, _("ippfind: Unable to execute \"%s\": %s"), args[0], strerror(ENOENT)); exit(IPPFIND_EXIT_SYNTAX); } if (getenv("IPPFIND_DEBUG")) { printf("\nProgram:\n %s\n", program); puts("\nArguments:"); for (i = 0; i < num_args; i ++) printf(" %s\n", myargv[i]); puts("\nEnvironment:"); for (i = 0; i < myenvc; i ++) printf(" %s\n", myenvp[i]); } if ((pid = fork()) == 0) { /* * Child comes here... */ execve(program, myargv, myenvp); exit(1); } else if (pid < 0) { _cupsLangPrintf(stderr, _("ippfind: Unable to execute \"%s\": %s"), args[0], strerror(errno)); exit(IPPFIND_EXIT_SYNTAX); } else { /* * Wait for it to complete... */ while (wait(&status) != pid) ; } #endif /* _WIN32 */ /* * Free memory... */ for (i = 0; i < num_args; i ++) free(myargv[i]); free(myargv); free(myenvp); /* * Return whether the program succeeded or crashed... */ if (getenv("IPPFIND_DEBUG")) { #ifdef _WIN32 printf("Exit Status: %d\n", status); #else if (WIFEXITED(status)) printf("Exit Status: %d\n", WEXITSTATUS(status)); else printf("Terminating Signal: %d\n", WTERMSIG(status)); #endif /* _WIN32 */ } return (status == 0); } /* * 'get_service()' - Create or update a device. */ static ippfind_srv_t * /* O - Service */ get_service(cups_array_t *services, /* I - Service array */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain) /* I - Service domain */ { ippfind_srv_t key, /* Search key */ *service; /* Service */ char fullName[kDNSServiceMaxDomainName]; /* Full name for query */ /* * See if this is a new device... */ key.name = (char *)serviceName; key.regtype = (char *)regtype; for (service = cupsArrayFind(services, &key); service; service = cupsArrayNext(services)) if (_cups_strcasecmp(service->name, key.name)) break; else if (!strcmp(service->regtype, key.regtype)) return (service); /* * Yes, add the service... */ if ((service = calloc(1, sizeof(ippfind_srv_t))) == NULL) return (NULL); service->name = strdup(serviceName); service->domain = strdup(replyDomain); service->regtype = strdup(regtype); cupsArrayAdd(services, service); /* * Set the "full name" of this service, which is used for queries and * resolves... */ #ifdef HAVE_MDNSRESPONDER DNSServiceConstructFullName(fullName, serviceName, regtype, replyDomain); #else /* HAVE_AVAHI */ avahi_service_name_join(fullName, kDNSServiceMaxDomainName, serviceName, regtype, replyDomain); #endif /* HAVE_MDNSRESPONDER */ service->fullName = strdup(fullName); return (service); } /* * 'get_time()' - Get the current time-of-day in seconds. */ static double get_time(void) { #ifdef _WIN32 struct _timeb curtime; /* Current Windows time */ _ftime(&curtime); return (curtime.time + 0.001 * curtime.millitm); #else struct timeval curtime; /* Current UNIX time */ if (gettimeofday(&curtime, NULL)) return (0.0); else return (curtime.tv_sec + 0.000001 * curtime.tv_usec); #endif /* _WIN32 */ } /* * 'list_service()' - List the contents of a service. */ static int /* O - 1 if successful, 0 otherwise */ list_service(ippfind_srv_t *service) /* I - Service */ { http_addrlist_t *addrlist; /* Address(es) of service */ char port[10]; /* Port number of service */ snprintf(port, sizeof(port), "%d", service->port); if ((addrlist = httpAddrGetList(service->host, address_family, port)) == NULL) { _cupsLangPrintf(stdout, "%s unreachable", service->uri); return (0); } if (!strncmp(service->regtype, "_ipp._tcp", 9) || !strncmp(service->regtype, "_ipps._tcp", 10)) { /* * IPP/IPPS printer */ http_t *http; /* HTTP connection */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ int i, /* Looping var */ count, /* Number of values */ version, /* IPP version */ paccepting; /* printer-is-accepting-jobs value */ ipp_pstate_t pstate; /* printer-state value */ char preasons[1024], /* Comma-delimited printer-state-reasons */ *ptr, /* Pointer into reasons */ *end; /* End of reasons buffer */ static const char * const rattrs[] =/* Requested attributes */ { "printer-is-accepting-jobs", "printer-state", "printer-state-reasons" }; /* * Connect to the printer... */ http = httpConnect2(service->host, service->port, addrlist, address_family, !strncmp(service->regtype, "_ipps._tcp", 10) ? HTTP_ENCRYPTION_ALWAYS : HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL); httpAddrFreeList(addrlist); if (!http) { _cupsLangPrintf(stdout, "%s unavailable", service->uri); return (0); } /* * Get the current printer state... */ response = NULL; version = ipp_version; do { request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, service->uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(rattrs) / sizeof(rattrs[0])), NULL, rattrs); response = cupsDoRequest(http, request, service->resource); if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST && version > 11) version = 11; } while (cupsLastError() > IPP_STATUS_OK_EVENTS_COMPLETE && version > 11); /* * Show results... */ if (cupsLastError() > IPP_STATUS_OK_EVENTS_COMPLETE) { _cupsLangPrintf(stdout, "%s: unavailable", service->uri); return (0); } if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) pstate = (ipp_pstate_t)ippGetInteger(attr, 0); else pstate = IPP_PSTATE_STOPPED; if ((attr = ippFindAttribute(response, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN)) != NULL) paccepting = ippGetBoolean(attr, 0); else paccepting = 0; if ((attr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) != NULL) { strlcpy(preasons, ippGetString(attr, 0, NULL), sizeof(preasons)); for (i = 1, count = ippGetCount(attr), ptr = preasons + strlen(preasons), end = preasons + sizeof(preasons) - 1; i < count && ptr < end; i ++, ptr += strlen(ptr)) { *ptr++ = ','; strlcpy(ptr, ippGetString(attr, i, NULL), (size_t)(end - ptr + 1)); } } else strlcpy(preasons, "none", sizeof(preasons)); ippDelete(response); httpClose(http); _cupsLangPrintf(stdout, "%s %s %s %s", service->uri, ippEnumString("printer-state", (int)pstate), paccepting ? "accepting-jobs" : "not-accepting-jobs", preasons); } else if (!strncmp(service->regtype, "_http._tcp", 10) || !strncmp(service->regtype, "_https._tcp", 11)) { /* * HTTP/HTTPS web page */ http_t *http; /* HTTP connection */ http_status_t status; /* HEAD status */ /* * Connect to the web server... */ http = httpConnect2(service->host, service->port, addrlist, address_family, !strncmp(service->regtype, "_ipps._tcp", 10) ? HTTP_ENCRYPTION_ALWAYS : HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL); httpAddrFreeList(addrlist); if (!http) { _cupsLangPrintf(stdout, "%s unavailable", service->uri); return (0); } if (httpGet(http, service->resource)) { _cupsLangPrintf(stdout, "%s unavailable", service->uri); return (0); } do { status = httpUpdate(http); } while (status == HTTP_STATUS_CONTINUE); httpFlush(http); httpClose(http); if (status >= HTTP_STATUS_BAD_REQUEST) { _cupsLangPrintf(stdout, "%s unavailable", service->uri); return (0); } _cupsLangPrintf(stdout, "%s available", service->uri); } else if (!strncmp(service->regtype, "_printer._tcp", 13)) { /* * LPD printer */ int sock; /* Socket */ if (!httpAddrConnect(addrlist, &sock)) { _cupsLangPrintf(stdout, "%s unavailable", service->uri); httpAddrFreeList(addrlist); return (0); } _cupsLangPrintf(stdout, "%s available", service->uri); httpAddrFreeList(addrlist); httpAddrClose(NULL, sock); } else { _cupsLangPrintf(stdout, "%s unsupported", service->uri); httpAddrFreeList(addrlist); return (0); } return (1); } /* * 'new_expr()' - Create a new expression. */ static ippfind_expr_t * /* O - New expression */ new_expr(ippfind_op_t op, /* I - Operation */ int invert, /* I - Invert result? */ const char *value, /* I - TXT key or port range */ const char *regex, /* I - Regular expression */ char **args) /* I - Pointer to argument strings */ { ippfind_expr_t *temp; /* New expression */ if ((temp = calloc(1, sizeof(ippfind_expr_t))) == NULL) return (NULL); temp->op = op; temp->invert = invert; if (op == IPPFIND_OP_TXT_EXISTS || op == IPPFIND_OP_TXT_REGEX || op == IPPFIND_OP_NAME_LITERAL) temp->name = (char *)value; else if (op == IPPFIND_OP_PORT_RANGE) { /* * Pull port number range of the form "number", "-number" (0-number), * "number-" (number-65535), and "number-number". */ if (*value == '-') { temp->range[1] = atoi(value + 1); } else if (strchr(value, '-')) { if (sscanf(value, "%d-%d", temp->range, temp->range + 1) == 1) temp->range[1] = 65535; } else { temp->range[0] = temp->range[1] = atoi(value); } } if (regex) { int err = regcomp(&(temp->re), regex, REG_NOSUB | REG_ICASE | REG_EXTENDED); if (err) { char message[256]; /* Error message */ regerror(err, &(temp->re), message, sizeof(message)); _cupsLangPrintf(stderr, _("ippfind: Bad regular expression: %s"), message); exit(IPPFIND_EXIT_SYNTAX); } } if (args) { int num_args; /* Number of arguments */ for (num_args = 1; args[num_args]; num_args ++) if (!strcmp(args[num_args], ";")) break; temp->num_args = num_args; temp->args = malloc((size_t)num_args * sizeof(char *)); if (temp->args == NULL) return (NULL); memcpy(temp->args, args, (size_t)num_args * sizeof(char *)); } return (temp); } #ifdef HAVE_AVAHI /* * 'poll_callback()' - Wait for input on the specified file descriptors. * * Note: This function is needed because avahi_simple_poll_iterate is broken * and always uses a timeout of 0 (!) milliseconds. * (Avahi Ticket #364) */ static int /* O - Number of file descriptors matching */ poll_callback( struct pollfd *pollfds, /* I - File descriptors */ unsigned int num_pollfds, /* I - Number of file descriptors */ int timeout, /* I - Timeout in milliseconds (unused) */ void *context) /* I - User data (unused) */ { int val; /* Return value */ (void)timeout; (void)context; val = poll(pollfds, num_pollfds, 500); if (val > 0) avahi_got_data = 1; return (val); } #endif /* HAVE_AVAHI */ /* * 'resolve_callback()' - Process resolve data. */ #ifdef HAVE_MDNSRESPONDER static void DNSSD_API resolve_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Data flags */ uint32_t interfaceIndex, /* I - Interface */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *fullName, /* I - Full service name */ const char *hostTarget, /* I - Hostname */ uint16_t port, /* I - Port number (network byte order) */ uint16_t txtLen, /* I - Length of TXT record data */ const unsigned char *txtRecord, /* I - TXT record data */ void *context) /* I - Service */ { char key[256], /* TXT key value */ *value; /* Value from TXT record */ const unsigned char *txtEnd; /* End of TXT record */ uint8_t valueLen; /* Length of value */ ippfind_srv_t *service = (ippfind_srv_t *)context; /* Service */ /* * Only process "add" data... */ (void)sdRef; (void)flags; (void)interfaceIndex; (void)fullName; if (errorCode != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("ippfind: Unable to browse or resolve: %s"), dnssd_error_string(errorCode)); bonjour_error = 1; return; } service->is_resolved = 1; service->host = strdup(hostTarget); service->port = ntohs(port); value = service->host + strlen(service->host) - 1; if (value >= service->host && *value == '.') *value = '\0'; /* * Loop through the TXT key/value pairs and add them to an array... */ for (txtEnd = txtRecord + txtLen; txtRecord < txtEnd; txtRecord += valueLen) { /* * Ignore bogus strings... */ valueLen = *txtRecord++; memcpy(key, txtRecord, valueLen); key[valueLen] = '\0'; if ((value = strchr(key, '=')) == NULL) continue; *value++ = '\0'; /* * Add to array of TXT values... */ service->num_txt = cupsAddOption(key, value, service->num_txt, &(service->txt)); } set_service_uri(service); } #elif defined(HAVE_AVAHI) static void resolve_callback( AvahiServiceResolver *resolver, /* I - Resolver */ AvahiIfIndex interface, /* I - Interface */ AvahiProtocol protocol, /* I - Address protocol */ AvahiResolverEvent event, /* I - Event */ const char *serviceName,/* I - Service name */ const char *regtype, /* I - Registration type */ const char *replyDomain,/* I - Domain name */ const char *hostTarget, /* I - FQDN */ const AvahiAddress *address, /* I - Address */ uint16_t port, /* I - Port number */ AvahiStringList *txt, /* I - TXT records */ AvahiLookupResultFlags flags, /* I - Lookup flags */ void *context) /* I - Service */ { char key[256], /* TXT key */ *value; /* TXT value */ ippfind_srv_t *service = (ippfind_srv_t *)context; /* Service */ AvahiStringList *current; /* Current TXT key/value pair */ (void)address; if (event != AVAHI_RESOLVER_FOUND) { bonjour_error = 1; avahi_service_resolver_free(resolver); avahi_simple_poll_quit(avahi_poll); return; } service->is_resolved = 1; service->host = strdup(hostTarget); service->port = port; value = service->host + strlen(service->host) - 1; if (value >= service->host && *value == '.') *value = '\0'; /* * Loop through the TXT key/value pairs and add them to an array... */ for (current = txt; current; current = current->next) { /* * Ignore bogus strings... */ if (current->size > (sizeof(key) - 1)) continue; memcpy(key, current->text, current->size); key[current->size] = '\0'; if ((value = strchr(key, '=')) == NULL) continue; *value++ = '\0'; /* * Add to array of TXT values... */ service->num_txt = cupsAddOption(key, value, service->num_txt, &(service->txt)); } set_service_uri(service); } #endif /* HAVE_MDNSRESPONDER */ /* * 'set_service_uri()' - Set the URI of the service. */ static void set_service_uri(ippfind_srv_t *service) /* I - Service */ { char uri[1024]; /* URI */ const char *path, /* Resource path */ *scheme; /* URI scheme */ if (!strncmp(service->regtype, "_http.", 6)) { scheme = "http"; path = cupsGetOption("path", service->num_txt, service->txt); } else if (!strncmp(service->regtype, "_https.", 7)) { scheme = "https"; path = cupsGetOption("path", service->num_txt, service->txt); } else if (!strncmp(service->regtype, "_ipp.", 5)) { scheme = "ipp"; path = cupsGetOption("rp", service->num_txt, service->txt); } else if (!strncmp(service->regtype, "_ipps.", 6)) { scheme = "ipps"; path = cupsGetOption("rp", service->num_txt, service->txt); } else if (!strncmp(service->regtype, "_printer.", 9)) { scheme = "lpd"; path = cupsGetOption("rp", service->num_txt, service->txt); } else return; if (!path || !*path) path = "/"; if (*path == '/') { service->resource = strdup(path); } else { snprintf(uri, sizeof(uri), "/%s", path); service->resource = strdup(uri); } httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), scheme, NULL, service->host, service->port, service->resource); service->uri = strdup(uri); } /* * 'show_usage()' - Show program usage. */ static void show_usage(void) { _cupsLangPuts(stderr, _("Usage: ippfind [options] regtype[,subtype]" "[.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] " "... [expression]\n" " ippfind --help\n" " ippfind --version")); _cupsLangPuts(stderr, _("Options:")); _cupsLangPuts(stderr, _("-4 Connect using IPv4")); _cupsLangPuts(stderr, _("-6 Connect using IPv6")); _cupsLangPuts(stderr, _("-T seconds Set the browse timeout in seconds")); _cupsLangPuts(stderr, _("-V version Set default IPP version")); _cupsLangPuts(stderr, _("--version Show program version")); _cupsLangPuts(stderr, _("Expressions:")); _cupsLangPuts(stderr, _("-P number[-number] Match port to number or range")); _cupsLangPuts(stderr, _("-d regex Match domain to regular expression")); _cupsLangPuts(stderr, _("-h regex Match hostname to regular expression")); _cupsLangPuts(stderr, _("-l List attributes")); _cupsLangPuts(stderr, _("-n regex Match service name to regular expression")); _cupsLangPuts(stderr, _("-N name Match service name to literal name value")); _cupsLangPuts(stderr, _("-p Print URI if true")); _cupsLangPuts(stderr, _("-q Quietly report match via exit code")); _cupsLangPuts(stderr, _("-r True if service is remote")); _cupsLangPuts(stderr, _("-s Print service name if true")); _cupsLangPuts(stderr, _("-t key True if the TXT record contains the key")); _cupsLangPuts(stderr, _("-u regex Match URI to regular expression")); _cupsLangPuts(stderr, _("-x utility [argument ...] ;\n" " Execute program if true")); _cupsLangPuts(stderr, _("--domain regex Match domain to regular expression")); _cupsLangPuts(stderr, _("--exec utility [argument ...] ;\n" " Execute program if true")); _cupsLangPuts(stderr, _("--host regex Match hostname to regular expression")); _cupsLangPuts(stderr, _("--literal-name name Match service name to literal name value")); _cupsLangPuts(stderr, _("--local True if service is local")); _cupsLangPuts(stderr, _("--ls List attributes")); _cupsLangPuts(stderr, _("--name regex Match service name to regular expression")); _cupsLangPuts(stderr, _("--path regex Match resource path to regular expression")); _cupsLangPuts(stderr, _("--port number[-number] Match port to number or range")); _cupsLangPuts(stderr, _("--print Print URI if true")); _cupsLangPuts(stderr, _("--print-name Print service name if true")); _cupsLangPuts(stderr, _("--quiet Quietly report match via exit code")); _cupsLangPuts(stderr, _("--remote True if service is remote")); _cupsLangPuts(stderr, _("--txt key True if the TXT record contains the key")); _cupsLangPuts(stderr, _("--txt-* regex Match TXT record key to regular expression")); _cupsLangPuts(stderr, _("--uri regex Match URI to regular expression")); _cupsLangPuts(stderr, _("Modifiers:")); _cupsLangPuts(stderr, _("( expressions ) Group expressions")); _cupsLangPuts(stderr, _("! expression Unary NOT of expression")); _cupsLangPuts(stderr, _("--not expression Unary NOT of expression")); _cupsLangPuts(stderr, _("--false Always false")); _cupsLangPuts(stderr, _("--true Always true")); _cupsLangPuts(stderr, _("expression expression Logical AND")); _cupsLangPuts(stderr, _("expression --and expression\n" " Logical AND")); _cupsLangPuts(stderr, _("expression --or expression\n" " Logical OR")); _cupsLangPuts(stderr, _("Substitutions:")); _cupsLangPuts(stderr, _("{} URI")); _cupsLangPuts(stderr, _("{service_domain} Domain name")); _cupsLangPuts(stderr, _("{service_hostname} Fully-qualified domain name")); _cupsLangPuts(stderr, _("{service_name} Service instance name")); _cupsLangPuts(stderr, _("{service_port} Port number")); _cupsLangPuts(stderr, _("{service_regtype} DNS-SD registration type")); _cupsLangPuts(stderr, _("{service_scheme} URI scheme")); _cupsLangPuts(stderr, _("{service_uri} URI")); _cupsLangPuts(stderr, _("{txt_*} Value of TXT record key")); _cupsLangPuts(stderr, _("Environment Variables:")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_DOMAIN Domain name")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_NAME Service instance name")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_PORT Port number")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_REGTYPE DNS-SD registration type")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_SCHEME URI scheme")); _cupsLangPuts(stderr, _("IPPFIND_SERVICE_URI URI")); _cupsLangPuts(stderr, _("IPPFIND_TXT_* Value of TXT record key")); exit(IPPFIND_EXIT_TRUE); } /* * 'show_version()' - Show program version. */ static void show_version(void) { _cupsLangPuts(stderr, CUPS_SVERSION); exit(IPPFIND_EXIT_TRUE); } cups-2.4.7/tools/ippeveps.c0000644000175000017500000006540214502571342015527 0ustar zdohnalzdohnal/* * Generic Adobe PostScript printer command for ippeveprinter/CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "ippevecommon.h" #if !CUPS_LITE # include #endif /* !CUPS_LITE */ #include #include #ifdef __APPLE__ # define PDFTOPS CUPS_SERVERBIN "/filter/cgpdftops" #else # define PDFTOPS CUPS_SERVERBIN "/filter/pdftops" #endif /* __APPLE__ */ /* * Local globals... */ #if !CUPS_LITE static ppd_file_t *ppd = NULL; /* PPD file data */ static _ppd_cache_t *ppd_cache = NULL; /* IPP to PPD cache data */ #endif /* !CUPS_LITE */ /* * Local functions... */ static void ascii85(const unsigned char *data, int length, int eod); static void dsc_header(int num_pages); static void dsc_page(int page); static void dsc_trailer(int num_pages); static int get_options(cups_option_t **options); static int jpeg_to_ps(const char *filename, int copies); static int pdf_to_ps(const char *filename, int copies, int num_options, cups_option_t *options); static int ps_to_ps(const char *filename, int copies); static int raster_to_ps(const char *filename); /* * 'main()' - Main entry for PostScript printer command. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { const char *content_type, /* Content type to print */ *ipp_copies; /* IPP_COPIES value */ int copies; /* Number of copies */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ /* * Get print options... */ num_options = get_options(&options); if ((ipp_copies = getenv("IPP_COPIES")) != NULL) { if ((copies = atoi(ipp_copies)) < 1) copies = 1; } else copies = 1; /* * Print it... */ if (argc > 2) { fputs("ERROR: Too many arguments supplied, aborting.\n", stderr); return (1); } else if ((content_type = getenv("CONTENT_TYPE")) == NULL) { fputs("ERROR: CONTENT_TYPE environment variable not set, aborting.\n", stderr); return (1); } else if (!strcasecmp(content_type, "application/pdf")) { return (pdf_to_ps(argv[1], copies, num_options, options)); } else if (!strcasecmp(content_type, "application/postscript")) { return (ps_to_ps(argv[1], copies)); } else if (!strcasecmp(content_type, "image/jpeg")) { return (jpeg_to_ps(argv[1], copies)); } else if (!strcasecmp(content_type, "image/pwg-raster") || !strcasecmp(content_type, "image/urf")) { return (raster_to_ps(argv[1])); } else { fprintf(stderr, "ERROR: CONTENT_TYPE %s not supported.\n", content_type); return (1); } } /* * 'ascii85()' - Write binary data using a Base85 encoding... */ static void ascii85(const unsigned char *data, /* I - Data to write */ int length, /* I - Number of bytes to write */ int eod) /* I - 1 if this is the end, 0 otherwise */ { unsigned b = 0; /* Current 32-bit word */ unsigned char c[5]; /* Base-85 encoded characters */ static int col = 0; /* Column */ static unsigned char leftdata[4]; /* Leftover data at the end */ static int leftcount = 0; /* Size of leftover data */ length += leftcount; while (length > 3) { switch (leftcount) { case 0 : b = (unsigned)((data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3]); break; case 1 : b = (unsigned)((leftdata[0] << 24) | (data[0] << 16) | (data[1] << 8) | data[2]); break; case 2 : b = (unsigned)((leftdata[0] << 24) | (leftdata[1] << 16) | (data[0] << 8) | data[1]); break; case 3 : b = (unsigned)((leftdata[0] << 24) | (leftdata[1] << 16) | (leftdata[2] << 8) | data[0]); break; } if (col >= 76) { col = 0; putchar('\n'); } if (b == 0) { putchar('z'); col ++; } else { c[4] = (unsigned char) ((b % 85) + '!'); b /= 85; c[3] = (unsigned char) ((b % 85) + '!'); b /= 85; c[2] = (unsigned char) ((b % 85) + '!'); b /= 85; c[1] = (unsigned char) ((b % 85) + '!'); b /= 85; c[0] = (unsigned char)(b + '!'); fwrite(c, 1, 5, stdout); col += 5; } data += 4 - leftcount; length -= 4 - leftcount; leftcount = 0; } if (length > 0) { // Copy any remainder into the leftdata array... if (length > leftcount) memcpy(leftdata + leftcount, data, (size_t)(length - leftcount)); memset(leftdata + length, 0, (size_t)(4 - length)); leftcount = length; } if (eod) { // Do the end-of-data dance... if (col >= 76) { col = 0; putchar('\n'); } if (leftcount > 0) { // Write the remaining bytes as needed... b = (unsigned)((leftdata[0] << 24) | (leftdata[1] << 16) | (leftdata[2] << 8) | leftdata[3]); c[4] = (unsigned char) ((b % 85) + '!'); b /= 85; c[3] = (unsigned char) ((b % 85) + '!'); b /= 85; c[2] = (unsigned char) ((b % 85) + '!'); b /= 85; c[1] = (unsigned char) ((b % 85) + '!'); b /= 85; c[0] = (unsigned char)(b + '!'); fwrite(c, (size_t)(leftcount + 1), 1, stdout); leftcount = 0; } puts("~>"); col = 0; } } /* * 'dsc_header()' - Write out a standard Document Structuring Conventions * PostScript header. */ static void dsc_header(int num_pages) /* I - Number of pages or 0 if not known */ { const char *job_name = getenv("IPP_JOB_NAME"); /* job-name value */ #if !CUPS_LITE const char *job_id = getenv("IPP_JOB_ID"); /* job-id value */ ppdEmitJCL(ppd, stdout, job_id ? atoi(job_id) : 0, cupsUser(), job_name ? job_name : "Unknown"); #endif /* !CUPS_LITE */ puts("%!PS-Adobe-3.0"); puts("%%LanguageLevel: 2"); printf("%%%%Creator: ippeveps/%d.%d.%d\n", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR, CUPS_VERSION_PATCH); if (job_name) { fputs("%%Title: ", stdout); while (*job_name) { if (*job_name >= 0x20 && *job_name < 0x7f) putchar(*job_name); else putchar('?'); job_name ++; } putchar('\n'); } if (num_pages > 0) printf("%%%%Pages: %d\n", num_pages); else puts("%%Pages: (atend)"); puts("%%EndComments"); #if !CUPS_LITE if (ppd) { puts("%%BeginProlog"); if (ppd->patches) { puts("%%BeginFeature: *JobPatchFile 1"); puts(ppd->patches); puts("%%EndFeature"); } ppdEmit(ppd, stdout, PPD_ORDER_PROLOG); puts("%%EndProlog"); puts("%%BeginSetup"); ppdEmit(ppd, stdout, PPD_ORDER_DOCUMENT); ppdEmit(ppd, stdout, PPD_ORDER_ANY); puts("%%EndSetup"); } #endif /* !CUPS_LITE */ } /* * 'dsc_page()' - Mark the start of a page. */ static void dsc_page(int page) /* I - Page number (1-based) */ { printf("%%%%Page: (%d) %d\n", page, page); fprintf(stderr, "ATTR: job-impressions-completed=%d\n", page); #if !CUPS_LITE if (ppd) { puts("%%BeginPageSetup"); ppdEmit(ppd, stdout, PPD_ORDER_PAGE); puts("%%EndPageSetup"); } #endif /* !CUPS_LITE */ } /* * 'dsc_trailer()' - Mark the end of the document. */ static void dsc_trailer(int num_pages) /* I - Number of pages */ { if (num_pages > 0) { puts("%%Trailer"); printf("%%%%Pages: %d\n", num_pages); puts("%%EOF"); } #if !CUPS_LITE if (ppd && ppd->jcl_end) ppdEmitJCLEnd(ppd, stdout); else #endif /* !CUPS_LITE */ putchar(0x04); } /* * 'get_options()' - Get the PPD options corresponding to the IPP Job Template * attributes. */ static int /* O - Number of options */ get_options(cups_option_t **options) /* O - Options */ { int num_options = 0; /* Number of options */ const char *value; /* Option value */ pwg_media_t *media = NULL; /* Media mapping */ int num_media_col = 0; /* Number of media-col values */ cups_option_t *media_col = NULL; /* media-col values */ #if !CUPS_LITE const char *choice; /* PPD choice */ #endif /* !CUPS_LITE */ /* * No options to start... */ *options = NULL; /* * Media... */ if ((value = getenv("IPP_MEDIA")) == NULL) if ((value = getenv("IPP_MEDIA_COL")) == NULL) if ((value = getenv("IPP_MEDIA_DEFAULT")) == NULL) value = getenv("IPP_MEDIA_COL_DEFAULT"); if (value) { if (*value == '{') { /* * media-col value... */ num_media_col = cupsParseOptions(value, 0, &media_col); } else { /* * media value - map to media-col.media-size-name... */ num_media_col = cupsAddOption("media-size-name", value, 0, &media_col); } } if ((value = cupsGetOption("media-size-name", num_media_col, media_col)) != NULL) { media = pwgMediaForPWG(value); } else if ((value = cupsGetOption("media-size", num_media_col, media_col)) != NULL) { int num_media_size; /* Number of media-size values */ cups_option_t *media_size; /* media-size values */ const char *x_dimension, /* x-dimension value */ *y_dimension; /* y-dimension value */ num_media_size = cupsParseOptions(value, 0, &media_size); if ((x_dimension = cupsGetOption("x-dimension", num_media_size, media_size)) != NULL && (y_dimension = cupsGetOption("y-dimension", num_media_size, media_size)) != NULL) media = pwgMediaForSize(atoi(x_dimension), atoi(y_dimension)); cupsFreeOptions(num_media_size, media_size); } if (media) num_options = cupsAddOption("PageSize", media->ppd, num_options, options); #if !CUPS_LITE /* * Load PPD file and the corresponding IPP <-> PPD cache data... */ if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL && (ppd_cache = _ppdCacheCreateWithPPD(ppd)) != NULL) { /* TODO: Fix me - values are names, not numbers... Also need to support finishings-col */ if ((value = getenv("IPP_FINISHINGS")) == NULL) value = getenv("IPP_FINISHINGS_DEFAULT"); if (value) { char *ptr; /* Pointer into value */ long fin; /* Current value */ for (fin = strtol(value, &ptr, 10); fin > 0; fin = strtol(ptr + 1, &ptr, 10)) { num_options = _ppdCacheGetFinishingOptions(ppd_cache, NULL, (ipp_finishings_t)fin, num_options, options); if (*ptr != ',') break; } } if ((value = cupsGetOption("media-source", num_media_col, media_col)) != NULL) { if ((choice = _ppdCacheGetInputSlot(ppd_cache, NULL, value)) != NULL) num_options = cupsAddOption("InputSlot", choice, num_options, options); } if ((value = cupsGetOption("media-type", num_media_col, media_col)) != NULL) { if ((choice = _ppdCacheGetMediaType(ppd_cache, NULL, value)) != NULL) num_options = cupsAddOption("MediaType", choice, num_options, options); } if ((value = getenv("IPP_OUTPUT_BIN")) == NULL) value = getenv("IPP_OUTPUT_BIN_DEFAULT"); if (value) { if ((choice = _ppdCacheGetOutputBin(ppd_cache, value)) != NULL) num_options = cupsAddOption("OutputBin", choice, num_options, options); } if ((value = getenv("IPP_SIDES")) == NULL) value = getenv("IPP_SIDES_DEFAULT"); if (value && ppd_cache->sides_option) { if (!strcmp(value, "one-sided") && ppd_cache->sides_1sided) num_options = cupsAddOption(ppd_cache->sides_option, ppd_cache->sides_1sided, num_options, options); else if (!strcmp(value, "two-sided-long-edge") && ppd_cache->sides_2sided_long) num_options = cupsAddOption(ppd_cache->sides_option, ppd_cache->sides_2sided_long, num_options, options); else if (!strcmp(value, "two-sided-short-edge") && ppd_cache->sides_2sided_short) num_options = cupsAddOption(ppd_cache->sides_option, ppd_cache->sides_2sided_short, num_options, options); } if ((value = getenv("IPP_PRINT_QUALITY")) == NULL) value = getenv("IPP_PRINT_QUALITY_DEFAULT"); if (value) { int i; /* Looping var */ int pq; /* Print quality (0-2) */ int pcm = 1; /* Print color model (0 = mono, 1 = color) */ int num_presets; /* Number of presets */ cups_option_t *presets; /* Presets */ if (!strcmp(value, "draft")) pq = 0; else if (!strcmp(value, "high")) pq = 2; else pq = 1; if ((value = getenv("IPP_PRINT_COLOR_MODE")) == NULL) value = getenv("IPP_PRINT_COLOR_MODE_DEFAULT"); if (value && !strcmp(value, "monochrome")) pcm = 0; num_presets = ppd_cache->num_presets[pcm][pq]; presets = ppd_cache->presets[pcm][pq]; for (i = 0; i < num_presets; i ++) num_options = cupsAddOption(presets[i].name, presets[i].value, num_options, options); } /* * Mark the PPD with the options... */ ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, *options); } #endif /* !CUPS_LITE */ cupsFreeOptions(num_media_col, media_col); return (num_options); } /* * 'jpeg_to_ps()' - Convert a JPEG file to PostScript. */ static int /* O - Exit status */ jpeg_to_ps(const char *filename, /* I - Filename */ int copies) /* I - Number of copies */ { int fd; /* JPEG file descriptor */ int copy; /* Current copy */ int width = 0, /* Width */ height = 0, /* Height */ depth = 0; /* Number of colors */ ssize_t length; /* Length of marker */ unsigned char buffer[65536], /* Copy buffer */ *bufptr, /* Pointer info buffer */ *bufend; /* End of buffer */ ssize_t bytes; /* Bytes in buffer */ const char *decode; /* Decode array */ float page_left, /* Left margin */ page_top, /* Top margin */ page_width, /* Page width in points */ page_height, /* Page height in points */ x_factor, /* X image scaling factor */ y_factor, /* Y image scaling factor */ page_scaling; /* Image scaling factor */ #if !CUPS_LITE ppd_size_t *page_size; /* Current page size */ #endif /* !CUPS_LITE */ /* * Open the input file... */ if (filename) { if ((fd = open(filename, O_RDONLY)) < 0) { fprintf(stderr, "ERROR: Unable to open \"%s\": %s\n", filename, strerror(errno)); return (1); } } else { fd = 0; copies = 1; } /* * Read the JPEG dimensions... */ bytes = read(fd, buffer, sizeof(buffer)); if (bytes < 3 || memcmp(buffer, "\377\330\377", 3)) { fputs("ERROR: Not a JPEG image.\n", stderr); if (fd > 0) close(fd); return (1); } for (bufptr = buffer + 2, bufend = buffer + bytes; bufptr < bufend;) { /* * Scan the file for a SOFn marker, then we can get the dimensions... */ if (*bufptr == 0xff) { bufptr ++; if (bufptr >= bufend) { /* * If we are at the end of the current buffer, re-fill and continue... */ if ((bytes = read(fd, buffer, sizeof(buffer))) <= 0) break; bufptr = buffer; bufend = buffer + bytes; } if (*bufptr == 0xff) continue; if ((bufptr + 16) >= bufend) { /* * Read more of the marker... */ bytes = bufend - bufptr; memmove(buffer, bufptr, (size_t)bytes); bufptr = buffer; bufend = buffer + bytes; if ((bytes = read(fd, bufend, sizeof(buffer) - (size_t)bytes)) <= 0) break; bufend += bytes; } length = (ssize_t)((bufptr[1] << 8) | bufptr[2]); if ((*bufptr >= 0xc0 && *bufptr <= 0xc3) || (*bufptr >= 0xc5 && *bufptr <= 0xc7) || (*bufptr >= 0xc9 && *bufptr <= 0xcb) || (*bufptr >= 0xcd && *bufptr <= 0xcf)) { /* * SOFn marker, look for dimensions... */ width = (bufptr[6] << 8) | bufptr[7]; height = (bufptr[4] << 8) | bufptr[5]; depth = bufptr[8]; break; } /* * Skip past this marker... */ bufptr ++; bytes = bufend - bufptr; while (length >= bytes) { length -= bytes; if ((bytes = read(fd, buffer, sizeof(buffer))) <= 0) break; bufptr = buffer; bufend = buffer + bytes; } if (length > bytes) break; bufptr += length; } } fprintf(stderr, "DEBUG: JPEG dimensions are %dx%dx%d\n", width, height, depth); if (width <= 0 || height <= 0 || depth <= 0) { fputs("ERROR: No valid image data in JPEG file.\n", stderr); if (fd > 0) close(fd); return (1); } fputs("ATTR: job-impressions=1\n", stderr); /* * Figure out the dimensions/scaling of the final image... */ #if CUPS_LITE page_left = 18.0f; page_top = 756.0f; page_width = 576.0f; page_height = 720.0f; #else if ((page_size = ppdPageSize(ppd, NULL)) != NULL) { page_left = page_size->left; page_top = page_size->top; page_width = page_size->right - page_left; page_height = page_top - page_size->bottom; } else { page_left = 18.0f; page_top = 756.0f; page_width = 576.0f; page_height = 720.0f; } #endif /* CUPS_LITE */ fprintf(stderr, "DEBUG: page_left=%.2f, page_top=%.2f, page_width=%.2f, page_height=%.2f\n", page_left, page_top, page_width, page_height); /* TODO: Support orientation/rotation, different print-scaling modes */ x_factor = page_width / width; y_factor = page_height / height; if (x_factor > y_factor && (height * x_factor) <= page_height) page_scaling = x_factor; else page_scaling = y_factor; fprintf(stderr, "DEBUG: Scaled dimensions are %.2fx%.2f\n", width * page_scaling, height * page_scaling); /* * Write pages... */ dsc_header(copies); for (copy = 1; copy <= copies; copy ++) { dsc_page(copy); if (depth == 1) { puts("/DeviceGray setcolorspace"); decode = "0 1"; } else if (depth == 3) { puts("/DeviceRGB setcolorspace"); decode = "0 1 0 1 0 1"; } else { puts("/DeviceCMYK setcolorspace"); decode = "0 1 0 1 0 1 0 1"; } printf("gsave %.3f %.3f translate %.3f %.3f scale\n", page_left + 0.5f * (page_width - width * page_scaling), page_top - 0.5f * (page_height - height * page_scaling), page_scaling, page_scaling); printf("<>image\n", width, height, decode); if (fd > 0) lseek(fd, 0, SEEK_SET); while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) ascii85(buffer, (int)bytes, 0); ascii85(buffer, 0, 1); puts("grestore showpage"); } dsc_trailer(0); return (0); } /* * 'pdf_to_ps()' - Convert a PDF file to PostScript. */ static int /* O - Exit status */ pdf_to_ps(const char *filename, /* I - Filename */ int copies, /* I - Number of copies */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - options */ { int status; /* Exit status */ char tempfile[1024]; /* Temporary file */ int tempfd; /* Temporary file descriptor */ int pid; /* Process ID */ const char *pdf_argv[8]; /* Command-line arguments */ char pdf_options[1024]; /* Options */ const char *value; /* Option value */ const char *job_id, /* job-id value */ *job_name; /* job-name value */ /* * Create a temporary file for the PostScript version... */ if ((tempfd = cupsTempFd(tempfile, sizeof(tempfile))) < 0) { fprintf(stderr, "ERROR: Unable to create temporary file: %s\n", strerror(errno)); return (1); } /* * Run cgpdftops or pdftops in the filter directory... */ if ((value = cupsGetOption("PageSize", num_options, options)) != NULL) snprintf(pdf_options, sizeof(pdf_options), "PageSize=%s", value); else pdf_options[0] = '\0'; if ((job_id = getenv("IPP_JOB_ID")) == NULL) job_id = "42"; if ((job_name = getenv("IPP_JOB_NAME")) == NULL) job_name = "untitled"; pdf_argv[0] = "printer"; pdf_argv[1] = job_id; pdf_argv[2] = cupsUser(); pdf_argv[3] = job_name; pdf_argv[4] = "1"; pdf_argv[5] = pdf_options; pdf_argv[6] = filename; pdf_argv[7] = NULL; if ((pid = fork()) == 0) { /* * Child comes here... */ close(1); dup2(tempfd, 1); close(tempfd); execv(PDFTOPS, (char * const *)pdf_argv); exit(errno); } else if (pid < 0) { /* * Unable to fork process... */ perror("ERROR: Unable to start PDF filter"); close(tempfd); unlink(tempfile); return (1); } else { /* * Wait for the filter to complete... */ close(tempfd); # ifdef HAVE_WAITPID while (waitpid(pid, &status, 0) < 0); # else while (wait(&status) < 0); # endif /* HAVE_WAITPID */ if (status) { if (WIFEXITED(status)) fprintf(stderr, "ERROR: " PDFTOPS " exited with status %d.\n", WEXITSTATUS(status)); else fprintf(stderr, "ERROR: " PDFTOPS " terminated with signal %d.\n", WTERMSIG(status)); unlink(tempfile); return (1); } } /* * Copy the PostScript output from the command... */ status = ps_to_ps(tempfile, copies); unlink(tempfile); return (status); } /* * 'ps_to_ps()' - Copy PostScript to the standard output. */ static int /* O - Exit status */ ps_to_ps(const char *filename, /* I - Filename */ int copies) /* I - Number of copies */ { FILE *fp; /* File to read from */ int copy, /* Current copy */ page, /* Current page number */ num_pages = 0, /* Total number of pages */ first_page, /* First page */ last_page; /* Last page */ const char *page_ranges; /* page-ranges option */ long first_pos; /* Offset for first page */ char line[1024]; /* Line from file */ /* * Open the print file... */ if (filename) { if ((fp = fopen(filename, "rb")) == NULL) { fprintf(stderr, "ERROR: Unable to open \"%s\": %s\n", filename, strerror(errno)); return (1); } } else { copies = 1; fp = stdin; } /* * Check page ranges... */ if ((page_ranges = getenv("IPP_PAGE_RANGES")) != NULL) { if (sscanf(page_ranges, "%d-%d", &first_page, &last_page) != 2) { first_page = 1; last_page = INT_MAX; } } else { first_page = 1; last_page = INT_MAX; } /* * Write the PostScript header for the document... */ dsc_header(0); first_pos = 0; while (fgets(line, sizeof(line), fp)) { if (!strncmp(line, "%%Page:", 7)) break; if ((first_pos = ftell(fp)) < 0) { perror("DEBUG: ftell failed"); first_pos = 0; } if (line[0] != '%') fputs(line, stdout); } if (!strncmp(line, "%%Page:", 7)) { for (copy = 0; copy < copies; copy ++) { int copy_page = 0; /* Do we copy the page data? */ if (fp != stdin) { if (fseek(fp, first_pos, SEEK_SET) < 0) { perror("ERROR: Unable to seek within PostScript file"); break; } } page = 0; while (fgets(line, sizeof(line), fp)) { if (!strncmp(line, "%%Page:", 7)) { page ++; copy_page = page >= first_page && page <= last_page; if (copy_page) { num_pages ++; dsc_page(num_pages); } } else if (copy_page) fputs(line, stdout); } } } dsc_trailer(num_pages); fprintf(stderr, "ATTR: job-impressions=%d\n", num_pages / copies); if (fp != stdin) fclose(fp); return (0); } /* * 'raster_to_ps()' - Convert PWG Raster/Apple Raster to PostScript. * * The current implementation locally-decodes the raster data and then writes * whole, non-blank lines as 1-line high images with base-85 encoding, resulting * in between 10 and 20 times larger output. An alternate implementation (if it * is deemed necessary) would be to implement a PostScript decode procedure that * handles the modified packbits decompression so that we just have the base-85 * encoding overhead (25%). Furthermore, Level 3 PostScript printers also * support Flate compression. * * That said, the most efficient path with the highest quality is for Clients * to supply PDF files and us to use the existing PDF to PostScript conversion * filters. */ static int /* O - Exit status */ raster_to_ps(const char *filename) /* I - Filename */ { int fd; /* Input file */ cups_raster_t *ras; /* Raster stream */ cups_page_header2_t header; /* Page header */ int page = 0; /* Current page */ unsigned y; /* Current line */ unsigned char *line; /* Line buffer */ unsigned char white; /* White color */ const char *decode; /* Image decode array */ /* * Open the input file... */ if (filename) { if ((fd = open(filename, O_RDONLY)) < 0) { fprintf(stderr, "ERROR: Unable to open \"%s\": %s\n", filename, strerror(errno)); return (1); } } else { fd = 0; } /* * Open the raster stream and send pages... */ if ((ras = cupsRasterOpen(fd, CUPS_RASTER_READ)) == NULL) { fputs("ERROR: Unable to read raster data, aborting.\n", stderr); return (1); } dsc_header(0); while (cupsRasterReadHeader2(ras, &header)) { page ++; fprintf(stderr, "DEBUG: Page %d: %ux%ux%u\n", page, header.cupsWidth, header.cupsHeight, header.cupsBitsPerPixel); if (header.cupsColorSpace != CUPS_CSPACE_W && header.cupsColorSpace != CUPS_CSPACE_SW && header.cupsColorSpace != CUPS_CSPACE_K && header.cupsColorSpace != CUPS_CSPACE_RGB && header.cupsColorSpace != CUPS_CSPACE_SRGB) { fputs("ERROR: Unsupported color space, aborting.\n", stderr); break; } else if (header.cupsBitsPerColor != 1 && header.cupsBitsPerColor != 8) { fputs("ERROR: Unsupported bit depth, aborting.\n", stderr); break; } line = malloc(header.cupsBytesPerLine); dsc_page(page); puts("gsave"); printf("%.6f %.6f scale\n", 72.0f / header.HWResolution[0], 72.0f / header.HWResolution[1]); switch (header.cupsColorSpace) { case CUPS_CSPACE_W : case CUPS_CSPACE_SW : decode = "0 1"; puts("/DeviceGray setcolorspace"); white = 255; break; case CUPS_CSPACE_K : decode = "0 1"; puts("/DeviceGray setcolorspace"); white = 0; break; default : decode = "0 1 0 1 0 1"; puts("/DeviceRGB setcolorspace"); white = 255; break; } printf("gsave /L{grestore gsave 0 exch translate <>image}bind def\n", header.cupsWidth, header.cupsBitsPerColor, decode); for (y = header.cupsHeight; y > 0; y --) { if (cupsRasterReadPixels(ras, line, header.cupsBytesPerLine)) { if (line[0] != white || memcmp(line, line + 1, header.cupsBytesPerLine - 1)) { printf("%d L\n", y - 1); ascii85(line, (int)header.cupsBytesPerLine, 1); } } else break; } fprintf(stderr, "DEBUG: y=%u at end...\n", y); puts("grestore grestore"); puts("showpage"); free(line); } cupsRasterClose(ras); dsc_trailer(page); fprintf(stderr, "ATTR: job-impressions=%d\n", page); return (0); } cups-2.4.7/tools/ippeveprinter.c0000644000175000017500000103002614502571342016563 0ustar zdohnalzdohnal/* * IPP Everywhere printer application for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2020 by the IEEE-ISTO Printer Working Group. * Copyright © 2010-2021 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * Note: This program began life as the "ippserver" sample code that first * appeared in CUPS 1.4. The name has been changed in order to distinguish it * from the PWG's much more ambitious "ippserver" program, which supports * different kinds of IPP services and multiple services per instance - the * "ippeveprinter" program exposes a single print service conforming to the * current IPP Everywhere specification, thus the new name. */ /* * Include necessary headers... */ #include #include #if !CUPS_LITE # include #endif /* !CUPS_LITE */ #include #include #include #ifdef _WIN32 # include # include # define WEXITSTATUS(s) (s) # include typedef ULONG nfds_t; # define poll WSAPoll #else extern char **environ; # include # include # include #endif /* _WIN32 */ #ifndef O_BINARY # define O_BINARY 0 /* Windows "binary file" nonsense */ #endif /* !O_BINARY */ #ifdef HAVE_MDNSRESPONDER # include #elif defined(HAVE_AVAHI) # include # include # include # include # include # include #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_SYS_MOUNT_H # include #endif /* HAVE_SYS_MOUNT_H */ #ifdef HAVE_SYS_STATFS_H # include #endif /* HAVE_SYS_STATFS_H */ #ifdef HAVE_SYS_STATVFS_H # include #endif /* HAVE_SYS_STATVFS_H */ #ifdef HAVE_SYS_VFS_H # include #endif /* HAVE_SYS_VFS_H */ #if HAVE_LIBPAM # ifdef HAVE_PAM_PAM_APPL_H # include # else # include # endif /* HAVE_PAM_PAM_APPL_H */ #endif /* HAVE_LIBPAM */ #include "printer-png.h" #include "printer-lg-png.h" #include "printer-sm-png.h" /* * Constants... */ enum ippeve_preason_e /* printer-state-reasons bit values */ { IPPEVE_PREASON_NONE = 0x0000, /* none */ IPPEVE_PREASON_OTHER = 0x0001, /* other */ IPPEVE_PREASON_COVER_OPEN = 0x0002, /* cover-open */ IPPEVE_PREASON_INPUT_TRAY_MISSING = 0x0004, /* input-tray-missing */ IPPEVE_PREASON_MARKER_SUPPLY_EMPTY = 0x0008, /* marker-supply-empty */ IPPEVE_PREASON_MARKER_SUPPLY_LOW = 0x0010, /* marker-supply-low */ IPPEVE_PREASON_MARKER_WASTE_ALMOST_FULL = 0x0020, /* marker-waste-almost-full */ IPPEVE_PREASON_MARKER_WASTE_FULL = 0x0040, /* marker-waste-full */ IPPEVE_PREASON_MEDIA_EMPTY = 0x0080, /* media-empty */ IPPEVE_PREASON_MEDIA_JAM = 0x0100, /* media-jam */ IPPEVE_PREASON_MEDIA_LOW = 0x0200, /* media-low */ IPPEVE_PREASON_MEDIA_NEEDED = 0x0400, /* media-needed */ IPPEVE_PREASON_MOVING_TO_PAUSED = 0x0800, /* moving-to-paused */ IPPEVE_PREASON_PAUSED = 0x1000, /* paused */ IPPEVE_PREASON_SPOOL_AREA_FULL = 0x2000,/* spool-area-full */ IPPEVE_PREASON_TONER_EMPTY = 0x4000, /* toner-empty */ IPPEVE_PREASON_TONER_LOW = 0x8000 /* toner-low */ }; typedef unsigned int ippeve_preason_t; /* Bitfield for printer-state-reasons */ static const char * const ippeve_preason_strings[] = { /* Strings for each bit */ /* "none" is implied for no bits set */ "other", "cover-open", "input-tray-missing", "marker-supply-empty", "marker-supply-low", "marker-waste-almost-full", "marker-waste-full", "media-empty", "media-jam", "media-low", "media-needed", "moving-to-paused", "paused", "spool-area-full", "toner-empty", "toner-low" }; /* * URL scheme for web resources... */ #ifdef HAVE_TLS # define WEB_SCHEME "https" #else # define WEB_SCHEME "http" #endif /* HAVE_TLS */ /* * Structures... */ #ifdef HAVE_MDNSRESPONDER typedef DNSServiceRef ippeve_srv_t; /* Service reference */ typedef TXTRecordRef ippeve_txt_t; /* TXT record */ #elif defined(HAVE_AVAHI) typedef AvahiEntryGroup *ippeve_srv_t; /* Service reference */ typedef AvahiStringList *ippeve_txt_t; /* TXT record */ #else typedef void *ippeve_srv_t; /* Service reference */ typedef void *ippeve_txt_t; /* TXT record */ #endif /* HAVE_MDNSRESPONDER */ #if HAVE_LIBPAM typedef struct ippeve_authdata_s /* Authentication data */ { char username[HTTP_MAX_VALUE], /* Username string */ *password; /* Password string */ } ippeve_authdata_t; #endif /* HAVE_LIBPAM */ typedef struct ippeve_filter_s /**** Attribute filter ****/ { cups_array_t *ra; /* Requested attributes */ ipp_tag_t group_tag; /* Group to copy */ } ippeve_filter_t; typedef struct ippeve_job_s ippeve_job_t; typedef struct ippeve_printer_s /**** Printer data ****/ { /* TODO: One IPv4 and one IPv6 listener are really not sufficient */ int ipv4, /* IPv4 listener */ ipv6; /* IPv6 listener */ #ifdef HAVE_MDNSRESPONDER ippeve_srv_t ipp_ref, /* DNS-SD IPP service */ ipps_ref, /* DNS-SD IPPS service */ http_ref, /* DNS-SD HTTP service */ printer_ref; /* DNS-SD LPD service */ #elif defined(HAVE_AVAHI) ippeve_srv_t dnssd_ref; /* DNS-SD services */ #endif /* HAVE_MDNSRESPONDER */ char *dnssd_subtypes;/* DNS-SD subtypes */ int dnssd_collision;/* Name collision? */ char *dnssd_name, /* printer-dns-sd-name */ *name, /* printer-name */ *icons[3], /* Icon filenames */ *strings, /* Strings filename */ *directory, /* Spool directory */ *hostname, /* Hostname */ *device_uri, /* Device URI (if any) */ *output_format, /* Output format */ #if !CUPS_LITE *ppdfile, /* PPD file (if any) */ #endif /* !CUPS_LITE */ *command; /* Command to run with job file */ int port; /* Port */ int web_forms; /* Enable web interface forms? */ size_t urilen; /* Length of printer URI */ ipp_t *attrs; /* Static attributes */ time_t start_time; /* Startup time */ time_t config_time; /* printer-config-change-time */ ipp_pstate_t state; /* printer-state value */ ippeve_preason_t state_reasons; /* printer-state-reasons values */ time_t state_time; /* printer-state-change-time */ cups_array_t *jobs; /* Jobs */ ippeve_job_t *active_job; /* Current active/pending job */ int next_job_id; /* Next job-id value */ _cups_rwlock_t rwlock; /* Printer lock */ } ippeve_printer_t; struct ippeve_job_s /**** Job data ****/ { int id; /* Job ID */ const char *name, /* job-name */ *username, /* job-originating-user-name */ *format; /* document-format */ ipp_jstate_t state; /* job-state value */ char *message; /* job-state-message value */ int msglevel; /* job-state-message log level (0=error, 1=info) */ time_t created, /* time-at-creation value */ processing, /* time-at-processing value */ completed; /* time-at-completed value */ int impressions, /* job-impressions value */ impcompleted; /* job-impressions-completed value */ ipp_t *attrs; /* Static attributes */ int cancel; /* Non-zero when job canceled */ char *filename; /* Print file name */ int fd; /* Print file descriptor */ ippeve_printer_t *printer; /* Printer */ }; typedef struct ippeve_client_s /**** Client data ****/ { http_t *http; /* HTTP connection */ ipp_t *request, /* IPP request */ *response; /* IPP response */ time_t start; /* Request start time */ http_state_t operation; /* Request operation */ ipp_op_t operation_id; /* IPP operation-id */ char uri[1024], /* Request URI */ *options, /* URI options */ host_field[HTTP_MAX_VALUE]; /* Host: header */ int host_port; /* Port number from Host: header */ http_addr_t addr; /* Client address */ char hostname[256], /* Client hostname */ username[HTTP_MAX_VALUE]; /* Authenticated username, if any */ ippeve_printer_t *printer; /* Printer */ ippeve_job_t *job; /* Current job, if any */ } ippeve_client_t; /* * Local functions... */ static http_status_t authenticate_request(ippeve_client_t *client); static void clean_jobs(ippeve_printer_t *printer); static int compare_jobs(ippeve_job_t *a, ippeve_job_t *b); static void copy_attributes(ipp_t *to, ipp_t *from, cups_array_t *ra, ipp_tag_t group_tag, int quickcopy); static void copy_job_attributes(ippeve_client_t *client, ippeve_job_t *job, cups_array_t *ra); static ippeve_client_t *create_client(ippeve_printer_t *printer, int sock); static ippeve_job_t *create_job(ippeve_client_t *client); static int create_job_file(ippeve_job_t *job, char *fname, size_t fnamesize, const char *dir, const char *ext); static int create_listener(const char *name, int port, int family); static ipp_t *create_media_col(const char *media, const char *source, const char *type, int width, int length, int bottom, int left, int right, int top); static ipp_t *create_media_size(int width, int length); static ippeve_printer_t *create_printer(const char *servername, int serverport, const char *name, const char *location, const char *icons, const char *strings, cups_array_t *docformats, const char *subtypes, const char *directory, const char *command, const char *device_uri, const char *output_format, ipp_t *attrs); static void debug_attributes(const char *title, ipp_t *ipp, int response); static void delete_client(ippeve_client_t *client); static void delete_job(ippeve_job_t *job); static void delete_printer(ippeve_printer_t *printer); #ifdef HAVE_MDNSRESPONDER static void DNSSD_API dnssd_callback(DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *name, const char *regtype, const char *domain, ippeve_printer_t *printer); #elif defined(HAVE_AVAHI) static void dnssd_callback(AvahiEntryGroup *p, AvahiEntryGroupState state, void *context); static void dnssd_client_cb(AvahiClient *c, AvahiClientState state, void *userdata); #endif /* HAVE_MDNSRESPONDER */ static void dnssd_init(void); static int filter_cb(ippeve_filter_t *filter, ipp_t *dst, ipp_attribute_t *attr); static ippeve_job_t *find_job(ippeve_client_t *client); static void finish_document_data(ippeve_client_t *client, ippeve_job_t *job); static void finish_document_uri(ippeve_client_t *client, ippeve_job_t *job); static void flush_document_data(ippeve_client_t *client); static int have_document_data(ippeve_client_t *client); static void html_escape(ippeve_client_t *client, const char *s, size_t slen); static void html_footer(ippeve_client_t *client); static void html_header(ippeve_client_t *client, const char *title, int refresh); static void html_printf(ippeve_client_t *client, const char *format, ...) _CUPS_FORMAT(2, 3); static void ipp_cancel_job(ippeve_client_t *client); static void ipp_cancel_my_jobs(ippeve_client_t *client); static void ipp_close_job(ippeve_client_t *client); static void ipp_create_job(ippeve_client_t *client); static void ipp_get_job_attributes(ippeve_client_t *client); static void ipp_get_jobs(ippeve_client_t *client); static void ipp_get_printer_attributes(ippeve_client_t *client); static void ipp_identify_printer(ippeve_client_t *client); static void ipp_print_job(ippeve_client_t *client); static void ipp_print_uri(ippeve_client_t *client); static void ipp_send_document(ippeve_client_t *client); static void ipp_send_uri(ippeve_client_t *client); static void ipp_validate_job(ippeve_client_t *client); static ipp_t *load_ippserver_attributes(const char *servername, int serverport, const char *filename, cups_array_t *docformats); static ipp_t *load_legacy_attributes(const char *make, const char *model, int ppm, int ppm_color, int duplex, cups_array_t *docformats); #if !CUPS_LITE static ipp_t *load_ppd_attributes(const char *ppdfile, cups_array_t *docformats); #endif /* !CUPS_LITE */ #if HAVE_LIBPAM static int pam_func(int, const struct pam_message **, struct pam_response **, void *); #endif /* HAVE_LIBPAM */ static int parse_options(ippeve_client_t *client, cups_option_t **options); static void process_attr_message(ippeve_job_t *job, char *message); static void *process_client(ippeve_client_t *client); static int process_http(ippeve_client_t *client); static int process_ipp(ippeve_client_t *client); static void *process_job(ippeve_job_t *job); static void process_state_message(ippeve_job_t *job, char *message); static int register_printer(ippeve_printer_t *printer); static int respond_http(ippeve_client_t *client, http_status_t code, const char *content_coding, const char *type, size_t length); static void respond_ignored(ippeve_client_t *client, ipp_attribute_t *attr); static void respond_ipp(ippeve_client_t *client, ipp_status_t status, const char *message, ...) _CUPS_FORMAT(3, 4); static void respond_unsupported(ippeve_client_t *client, ipp_attribute_t *attr); static void run_printer(ippeve_printer_t *printer); static int show_media(ippeve_client_t *client); static int show_status(ippeve_client_t *client); static int show_supplies(ippeve_client_t *client); #ifndef _WIN32 static void signal_handler(int signum); #endif // !_WIN32 static char *time_string(time_t tv, char *buffer, size_t bufsize); static void usage(int status) _CUPS_NORETURN; static int valid_doc_attributes(ippeve_client_t *client); static int valid_job_attributes(ippeve_client_t *client); /* * Globals... */ #ifdef HAVE_MDNSRESPONDER static DNSServiceRef DNSSDMaster = NULL; #elif defined(HAVE_AVAHI) static AvahiThreadedPoll *DNSSDMaster = NULL; static AvahiClient *DNSSDClient = NULL; #endif /* HAVE_MDNSRESPONDER */ static int KeepFiles = 0, /* Keep spooled job files? */ MaxVersion = 20,/* Maximum IPP version (20 = 2.0, 11 = 1.1, etc.) */ Verbosity = 0; /* Verbosity level */ static const char *PAMService = NULL; /* PAM service */ #ifndef _WIN32 static int StopPrinter = 0;/* Stop the printer server? */ #endif // !_WIN32 /* * 'main()' - Main entry to the sample server. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *opt, /* Current option character */ *attrfile = NULL, /* ippserver attributes file */ *command = NULL, /* Command to run with job files */ *device_uri = NULL, /* Device URI */ *output_format = NULL, /* Output format */ *icon = NULL, /* Icon file */ #ifdef HAVE_TLS *keypath = NULL, /* Keychain path */ #endif /* HAVE_TLS */ *location = "", /* Location of printer */ *make = "Example", /* Manufacturer */ *model = "Printer", /* Model */ *name = NULL, /* Printer name */ #if !CUPS_LITE *ppdfile = NULL, /* PPD file */ #endif /* !CUPS_LITE */ *strings = NULL, /* Strings file */ *subtypes = "_print"; /* DNS-SD service subtype */ int legacy = 0, /* Legacy mode? */ duplex = 0, /* Duplex mode */ ppm = 10, /* Pages per minute for mono */ ppm_color = 0, /* Pages per minute for color */ web_forms = 1; /* Enable website forms? */ ipp_t *attrs = NULL; /* Printer attributes */ char directory[1024] = ""; /* Spool directory */ cups_array_t *docformats = NULL; /* Supported formats */ const char *servername = NULL; /* Server host name */ int serverport = 0; /* Server port number (0 = auto) */ ippeve_printer_t *printer; /* Printer object */ /* * Parse command-line arguments... */ for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) { usage(0); } else if (!strcmp(argv[i], "--no-web-forms")) { web_forms = 0; } else if (!strcmp(argv[i], "--pam-service")) { i ++; if (i >= argc) usage(1); PAMService = argv[i]; } else if (!strcmp(argv[i], "--version")) { puts(CUPS_SVERSION); return (0); } else if (!strncmp(argv[i], "--", 2)) { _cupsLangPrintf(stderr, _("%s: Unknown option \"%s\"."), argv[0], argv[i]); usage(1); } else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case '2' : /* -2 (enable 2-sided printing) */ duplex = 1; legacy = 1; break; case 'A' : /* -A (enable authentication) */ if (!PAMService) PAMService = "cups"; break; case 'D' : /* -D device-uri */ i ++; if (i >= argc) usage(1); device_uri = argv[i]; break; case 'F' : /* -F output/format */ i ++; if (i >= argc) usage(1); output_format = argv[i]; break; #ifdef HAVE_TLS case 'K' : /* -K keypath */ i ++; if (i >= argc) usage(1); keypath = argv[i]; break; #endif /* HAVE_TLS */ case 'M' : /* -M manufacturer */ i ++; if (i >= argc) usage(1); make = argv[i]; legacy = 1; break; #if !CUPS_LITE case 'P' : /* -P filename.ppd */ i ++; if (i >= argc) usage(1); ppdfile = argv[i]; break; #endif /* !CUPS_LITE */ case 'S' : /* -S filename.strings */ i ++; if (i >= argc) usage(1); strings = argv[i]; break; case 'V' : /* -V max-version */ i ++; if (i >= argc) usage(1); if (!strcmp(argv[i], "2.0")) MaxVersion = 20; else if (!strcmp(argv[i], "1.1")) MaxVersion = 11; else usage(1); break; case 'a' : /* -a attributes-file */ i ++; if (i >= argc) usage(1); attrfile = argv[i]; break; case 'c' : /* -c command */ i ++; if (i >= argc) usage(1); command = argv[i]; break; case 'd' : /* -d spool-directory */ i ++; if (i >= argc) usage(1); strlcpy(directory, argv[i], sizeof(directory)); break; case 'f' : /* -f type/subtype[,...] */ i ++; if (i >= argc) usage(1); docformats = _cupsArrayNewStrings(argv[i], ','); legacy = 1; break; case 'i' : /* -i icon.png */ i ++; if (i >= argc) usage(1); icon = argv[i]; break; case 'k' : /* -k (keep files) */ KeepFiles = 1; break; case 'l' : /* -l location */ i ++; if (i >= argc) usage(1); location = argv[i]; break; case 'm' : /* -m model */ i ++; if (i >= argc) usage(1); model = argv[i]; legacy = 1; break; case 'n' : /* -n hostname */ i ++; if (i >= argc) usage(1); servername = argv[i]; break; case 'p' : /* -p port */ i ++; if (i >= argc || !isdigit(argv[i][0] & 255)) usage(1); serverport = atoi(argv[i]); break; case 'r' : /* -r subtype */ i ++; if (i >= argc) usage(1); subtypes = argv[i]; break; case 's' : /* -s speed[,color-speed] */ i ++; if (i >= argc) usage(1); if (sscanf(argv[i], "%d,%d", &ppm, &ppm_color) < 1) usage(1); legacy = 1; break; case 'v' : /* -v (be verbose) */ Verbosity ++; break; default : /* Unknown */ _cupsLangPrintf(stderr, _("%s: Unknown option \"-%c\"."), argv[0], *opt); usage(1); } } } else if (!name) { name = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Unknown option \"%s\"."), argv[0], argv[i]); usage(1); } } if (!name) usage(1); #if CUPS_LITE if (attrfile != NULL && legacy) usage(1); #else if (((ppdfile != NULL) + (attrfile != NULL) + legacy) > 1) usage(1); #endif /* CUPS_LITE */ /* * Apply defaults as needed... */ if (!directory[0]) { const char *tmpdir; /* Temporary directory */ #ifdef _WIN32 if ((tmpdir = getenv("TEMP")) == NULL) tmpdir = "C:/TEMP"; #elif defined(__APPLE__) && TARGET_OS_OSX if ((tmpdir = getenv("TMPDIR")) == NULL) tmpdir = "/private/tmp"; #else if ((tmpdir = getenv("TMPDIR")) == NULL) tmpdir = "/tmp"; #endif /* _WIN32 */ snprintf(directory, sizeof(directory), "%s/ippeveprinter.%d", tmpdir, (int)getpid()); if (mkdir(directory, 0755) && errno != EEXIST) { _cupsLangPrintf(stderr, _("Unable to create spool directory \"%s\": %s"), directory, strerror(errno)); usage(1); } if (Verbosity) _cupsLangPrintf(stderr, _("Using spool directory \"%s\"."), directory); } /* * Initialize DNS-SD... */ dnssd_init(); /* * Create the printer... */ if (!docformats) docformats = _cupsArrayNewStrings(ppm_color > 0 ? "image/jpeg,image/pwg-raster,image/urf": "image/pwg-raster,image/urf", ','); if (attrfile) attrs = load_ippserver_attributes(servername, serverport, attrfile, docformats); #if !CUPS_LITE else if (ppdfile) { attrs = load_ppd_attributes(ppdfile, docformats); if (!command) command = "ippeveps"; if (!output_format) output_format = "application/postscript"; } #endif /* !CUPS_LITE */ else attrs = load_legacy_attributes(make, model, ppm, ppm_color, duplex, docformats); if ((printer = create_printer(servername, serverport, name, location, icon, strings, docformats, subtypes, directory, command, device_uri, output_format, attrs)) == NULL) return (1); printer->web_forms = web_forms; #if !CUPS_LITE if (ppdfile) printer->ppdfile = strdup(ppdfile); #endif /* !CUPS_LITE */ #ifdef HAVE_TLS cupsSetServerCredentials(keypath, printer->hostname, 1); #endif /* HAVE_TLS */ /* * Run the print service... */ run_printer(printer); /* * Destroy the printer and exit... */ delete_printer(printer); return (0); } /* * 'authenticate_request()' - Try to authenticate the request. */ static http_status_t /* O - HTTP_STATUS_CONTINUE to keep going, otherwise status to return */ authenticate_request( ippeve_client_t *client) /* I - Client */ { #if HAVE_LIBPAM /* * If PAM isn't enabled, return 'continue' now... */ const char *authorization; /* Pointer into Authorization string */ int userlen; /* Username:password length */ pam_handle_t *pamh; /* PAM authentication handle */ int pamerr; /* PAM error code */ struct pam_conv pamdata; /* PAM conversation data */ ippeve_authdata_t data; /* Authentication data */ if (!PAMService) return (HTTP_STATUS_CONTINUE); /* * Try authenticating using PAM... */ authorization = httpGetField(client->http, HTTP_FIELD_AUTHORIZATION); if (!*authorization) return (HTTP_STATUS_UNAUTHORIZED); if (strncmp(authorization, "Basic ", 6)) { fputs("Unsupported scheme in Authorization header.\n", stderr); return (HTTP_STATUS_BAD_REQUEST); } authorization += 5; while (isspace(*authorization & 255)) authorization ++; userlen = sizeof(data.username); httpDecode64_2(data.username, &userlen, authorization); if ((data.password = strchr(data.username, ':')) == NULL) { fputs("No password in Authorization header.\n", stderr); return (HTTP_STATUS_BAD_REQUEST); } *(data.password)++ = '\0'; if (!data.username[0]) { fputs("No username in Authorization header.\n", stderr); return (HTTP_STATUS_BAD_REQUEST); } pamdata.conv = pam_func; pamdata.appdata_ptr = &data; if ((pamerr = pam_start(PAMService, data.username, &pamdata, &pamh)) != PAM_SUCCESS) { fprintf(stderr, "pam_start() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); return (HTTP_STATUS_SERVER_ERROR); } if ((pamerr = pam_authenticate(pamh, PAM_SILENT)) != PAM_SUCCESS) { fprintf(stderr, "pam_authenticate() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); pam_end(pamh, 0); return (HTTP_STATUS_UNAUTHORIZED); } if ((pamerr = pam_acct_mgmt(pamh, PAM_SILENT)) != PAM_SUCCESS) { fprintf(stderr, "pam_acct_mgmt() returned %d (%s)\n", pamerr, pam_strerror(pamh, pamerr)); pam_end(pamh, 0); return (HTTP_STATUS_SERVER_ERROR); } strlcpy(client->username, data.username, sizeof(client->username)); pam_end(pamh, PAM_SUCCESS); return (HTTP_STATUS_CONTINUE); #else /* * No authentication support built-in, return 'continue'... */ return (HTTP_STATUS_CONTINUE); #endif /* HAVE_LIBPAM */ } /* * 'clean_jobs()' - Clean out old (completed) jobs. */ static void clean_jobs(ippeve_printer_t *printer) /* I - Printer */ { ippeve_job_t *job; /* Current job */ time_t cleantime; /* Clean time */ if (cupsArrayCount(printer->jobs) == 0) return; cleantime = time(NULL) - 60; _cupsRWLockWrite(&(printer->rwlock)); for (job = (ippeve_job_t *)cupsArrayFirst(printer->jobs); job; job = (ippeve_job_t *)cupsArrayNext(printer->jobs)) if (job->completed && job->completed < cleantime) { cupsArrayRemove(printer->jobs, job); delete_job(job); } else break; _cupsRWUnlock(&(printer->rwlock)); } /* * 'compare_jobs()' - Compare two jobs. */ static int /* O - Result of comparison */ compare_jobs(ippeve_job_t *a, /* I - First job */ ippeve_job_t *b) /* I - Second job */ { return (b->id - a->id); } /* * 'copy_attributes()' - Copy attributes from one request to another. */ static void copy_attributes(ipp_t *to, /* I - Destination request */ ipp_t *from, /* I - Source request */ cups_array_t *ra, /* I - Requested attributes */ ipp_tag_t group_tag, /* I - Group to copy */ int quickcopy) /* I - Do a quick copy? */ { ippeve_filter_t filter; /* Filter data */ filter.ra = ra; filter.group_tag = group_tag; ippCopyAttributes(to, from, quickcopy, (ipp_copycb_t)filter_cb, &filter); } /* * 'copy_job_attrs()' - Copy job attributes to the response. */ static void copy_job_attributes( ippeve_client_t *client, /* I - Client */ ippeve_job_t *job, /* I - Job */ cups_array_t *ra) /* I - requested-attributes */ { copy_attributes(client->response, job->attrs, ra, IPP_TAG_JOB, 0); if (!ra || cupsArrayFind(ra, "date-time-at-completed")) { if (job->completed) ippAddDate(client->response, IPP_TAG_JOB, "date-time-at-completed", ippTimeToDate(job->completed)); else ippAddOutOfBand(client->response, IPP_TAG_JOB, IPP_TAG_NOVALUE, "date-time-at-completed"); } if (!ra || cupsArrayFind(ra, "date-time-at-processing")) { if (job->processing) ippAddDate(client->response, IPP_TAG_JOB, "date-time-at-processing", ippTimeToDate(job->processing)); else ippAddOutOfBand(client->response, IPP_TAG_JOB, IPP_TAG_NOVALUE, "date-time-at-processing"); } if (!ra || cupsArrayFind(ra, "job-impressions")) ippAddInteger(client->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-impressions", job->impressions); if (!ra || cupsArrayFind(ra, "job-impressions-completed")) ippAddInteger(client->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-impressions-completed", job->impcompleted); if (!ra || cupsArrayFind(ra, "job-printer-up-time")) ippAddInteger(client->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-printer-up-time", (int)(time(NULL) - client->printer->start_time)); if (!ra || cupsArrayFind(ra, "job-state")) ippAddInteger(client->response, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", (int)job->state); if (!ra || cupsArrayFind(ra, "job-state-message")) { if (job->message) { ippAddString(client->response, IPP_TAG_JOB, IPP_TAG_TEXT, "job-state-message", NULL, job->message); } else { switch (job->state) { case IPP_JSTATE_PENDING : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job pending."); break; case IPP_JSTATE_HELD : if (job->fd >= 0) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job incoming."); else if (ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_ZERO)) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job held."); else ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job created."); break; case IPP_JSTATE_PROCESSING : if (job->cancel) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job canceling."); else ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job printing."); break; case IPP_JSTATE_STOPPED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job stopped."); break; case IPP_JSTATE_CANCELED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job canceled."); break; case IPP_JSTATE_ABORTED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job aborted."); break; case IPP_JSTATE_COMPLETED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job completed."); break; } } } if (!ra || cupsArrayFind(ra, "job-state-reasons")) { switch (job->state) { case IPP_JSTATE_PENDING : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "none"); break; case IPP_JSTATE_HELD : if (job->fd >= 0) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-incoming"); else if (ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_ZERO)) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-hold-until-specified"); else ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-data-insufficient"); break; case IPP_JSTATE_PROCESSING : if (job->cancel) ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "processing-to-stop-point"); else ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-printing"); break; case IPP_JSTATE_STOPPED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-stopped"); break; case IPP_JSTATE_CANCELED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-canceled-by-user"); break; case IPP_JSTATE_ABORTED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "aborted-by-system"); break; case IPP_JSTATE_COMPLETED : ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-state-reasons", NULL, "job-completed-successfully"); break; } } if (!ra || cupsArrayFind(ra, "time-at-completed")) ippAddInteger(client->response, IPP_TAG_JOB, job->completed ? IPP_TAG_INTEGER : IPP_TAG_NOVALUE, "time-at-completed", (int)(job->completed - client->printer->start_time)); if (!ra || cupsArrayFind(ra, "time-at-processing")) ippAddInteger(client->response, IPP_TAG_JOB, job->processing ? IPP_TAG_INTEGER : IPP_TAG_NOVALUE, "time-at-processing", (int)(job->processing - client->printer->start_time)); } /* * 'create_client()' - Accept a new network connection and create a client * object. */ static ippeve_client_t * /* O - Client */ create_client(ippeve_printer_t *printer, /* I - Printer */ int sock) /* I - Listen socket */ { ippeve_client_t *client; /* Client */ if ((client = calloc(1, sizeof(ippeve_client_t))) == NULL) { perror("Unable to allocate memory for client"); return (NULL); } client->printer = printer; /* * Accept the client and get the remote address... */ if ((client->http = httpAcceptConnection(sock, 1)) == NULL) { perror("Unable to accept client connection"); free(client); return (NULL); } httpGetHostname(client->http, client->hostname, sizeof(client->hostname)); if (Verbosity) fprintf(stderr, "Accepted connection from %s\n", client->hostname); return (client); } /* * 'create_job()' - Create a new job object from a Print-Job or Create-Job * request. */ static ippeve_job_t * /* O - Job */ create_job(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job */ ipp_attribute_t *attr; /* Job attribute */ char uri[1024], /* job-uri value */ uuid[64]; /* job-uuid value */ _cupsRWLockWrite(&(client->printer->rwlock)); if (client->printer->active_job && client->printer->active_job->state < IPP_JSTATE_CANCELED) { /* * Only accept a single job at a time... */ _cupsRWUnlock(&(client->printer->rwlock)); return (NULL); } /* * Allocate and initialize the job object... */ if ((job = calloc(1, sizeof(ippeve_job_t))) == NULL) { perror("Unable to allocate memory for job"); _cupsRWUnlock(&(client->printer->rwlock)); return (NULL); } job->printer = client->printer; job->attrs = ippNew(); job->state = IPP_JSTATE_HELD; job->fd = -1; /* * Copy all of the job attributes... */ copy_attributes(job->attrs, client->request, NULL, IPP_TAG_JOB, 0); /* * Get the requesting-user-name, document format, and priority... */ if ((attr = ippFindAttribute(client->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) job->username = ippGetString(attr, 0, NULL); else job->username = "anonymous"; ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-originating-user-name", NULL, job->username); if (ippGetOperation(client->request) != IPP_OP_CREATE_JOB) { if ((attr = ippFindAttribute(job->attrs, "document-format-detected", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else if ((attr = ippFindAttribute(job->attrs, "document-format-supplied", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else job->format = "application/octet-stream"; } if ((attr = ippFindAttribute(client->request, "job-impressions", IPP_TAG_INTEGER)) != NULL) job->impressions = ippGetInteger(attr, 0); if ((attr = ippFindAttribute(client->request, "job-name", IPP_TAG_NAME)) != NULL) job->name = ippGetString(attr, 0, NULL); /* * Add job description attributes and add to the jobs array... */ job->id = client->printer->next_job_id ++; if ((attr = ippFindAttribute(client->request, "printer-uri", IPP_TAG_URI)) != NULL) snprintf(uri, sizeof(uri), "%s/%d", ippGetString(attr, 0, NULL), job->id); else httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, client->printer->hostname, client->printer->port, "/ipp/print/%d", job->id); httpAssembleUUID(client->printer->hostname, client->printer->port, client->printer->name, job->id, uuid, sizeof(uuid)); ippAddDate(job->attrs, IPP_TAG_JOB, "date-time-at-creation", ippTimeToDate(time(&job->created))); ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-uuid", NULL, uuid); if ((attr = ippFindAttribute(client->request, "printer-uri", IPP_TAG_URI)) != NULL) { ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL, ippGetString(attr, 0, NULL)); } else { char printer_uri[1024]; /* job-printer-uri value */ httpAssembleURI(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri), "ipp", NULL, client->printer->hostname, client->printer->port, "/ipp/print"); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL, printer_uri); } ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "time-at-creation", (int)(job->created - client->printer->start_time)); cupsArrayAdd(client->printer->jobs, job); client->printer->active_job = job; _cupsRWUnlock(&(client->printer->rwlock)); return (job); } /* * 'create_job_file()' - Create a file for the document in a job. */ static int /* O - File descriptor or -1 on error */ create_job_file( ippeve_job_t *job, /* I - Job */ char *fname, /* I - Filename buffer */ size_t fnamesize, /* I - Size of filename buffer */ const char *directory, /* I - Directory to store in */ const char *ext) /* I - Extension (`NULL` for default) */ { char name[256], /* "Safe" filename */ *nameptr; /* Pointer into filename */ const char *job_name; /* job-name value */ /* * Make a name from the job-name attribute... */ if ((job_name = ippGetString(ippFindAttribute(job->attrs, "job-name", IPP_TAG_NAME), 0, NULL)) == NULL) job_name = "untitled"; for (nameptr = name; *job_name && nameptr < (name + sizeof(name) - 1); job_name ++) { if (isalnum(*job_name & 255) || *job_name == '-') { *nameptr++ = (char)tolower(*job_name & 255); } else { *nameptr++ = '_'; while (job_name[1] && !isalnum(job_name[1] & 255) && job_name[1] != '-') job_name ++; } } *nameptr = '\0'; /* * Figure out the extension... */ if (!ext) { if (!strcasecmp(job->format, "image/jpeg")) ext = "jpg"; else if (!strcasecmp(job->format, "image/png")) ext = "png"; else if (!strcasecmp(job->format, "image/pwg-raster")) ext = "pwg"; else if (!strcasecmp(job->format, "image/urf")) ext = "urf"; else if (!strcasecmp(job->format, "application/pdf")) ext = "pdf"; else if (!strcasecmp(job->format, "application/postscript")) ext = "ps"; else if (!strcasecmp(job->format, "application/vnd.hp-pcl")) ext = "pcl"; else ext = "dat"; } /* * Create a filename with the job-id, job-name, and document-format (extension)... */ snprintf(fname, fnamesize, "%s/%d-%s.%s", directory, job->id, name, ext); return (open(fname, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666)); } /* * 'create_listener()' - Create a listener socket. */ static int /* O - Listener socket or -1 on error */ create_listener(const char *name, /* I - Host name (`NULL` for any address) */ int port, /* I - Port number */ int family) /* I - Address family */ { int sock; /* Listener socket */ http_addrlist_t *addrlist; /* Listen address */ char service[255]; /* Service port */ snprintf(service, sizeof(service), "%d", port); if ((addrlist = httpAddrGetList(name, family, service)) == NULL) return (-1); sock = httpAddrListen(&(addrlist->addr), port); httpAddrFreeList(addrlist); return (sock); } /* * 'create_media_col()' - Create a media-col value. */ static ipp_t * /* O - media-col collection */ create_media_col(const char *media, /* I - Media name */ const char *source, /* I - Media source, if any */ const char *type, /* I - Media type, if any */ int width, /* I - x-dimension in 2540ths */ int length, /* I - y-dimension in 2540ths */ int bottom, /* I - Bottom margin in 2540ths */ int left, /* I - Left margin in 2540ths */ int right, /* I - Right margin in 2540ths */ int top) /* I - Top margin in 2540ths */ { ipp_t *media_col = ippNew(), /* media-col value */ *media_size = create_media_size(width, length); /* media-size value */ char media_key[256]; /* media-key value */ const char *media_key_suffix = ""; /* media-key suffix */ if (bottom == 0 && left == 0 && right == 0 && top == 0) media_key_suffix = "_borderless"; if (type && source) snprintf(media_key, sizeof(media_key), "%s_%s_%s%s", media, source, type, media_key_suffix); else if (type) snprintf(media_key, sizeof(media_key), "%s__%s%s", media, type, media_key_suffix); else if (source) snprintf(media_key, sizeof(media_key), "%s_%s%s", media, source, media_key_suffix); else snprintf(media_key, sizeof(media_key), "%s%s", media, media_key_suffix); ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-key", NULL, media_key); ippAddCollection(media_col, IPP_TAG_PRINTER, "media-size", media_size); ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-size-name", NULL, media); if (bottom >= 0) ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin", bottom); if (left >= 0) ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin", left); if (right >= 0) ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin", right); if (top >= 0) ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin", top); if (source) ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-source", NULL, source); if (type) ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-type", NULL, type); ippDelete(media_size); return (media_col); } /* * 'create_media_size()' - Create a media-size value. */ static ipp_t * /* O - media-col collection */ create_media_size(int width, /* I - x-dimension in 2540ths */ int length) /* I - y-dimension in 2540ths */ { ipp_t *media_size = ippNew(); /* media-size value */ ippAddInteger(media_size, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "x-dimension", width); ippAddInteger(media_size, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "y-dimension", length); return (media_size); } /* * 'create_printer()' - Create, register, and listen for connections to a * printer object. */ static ippeve_printer_t * /* O - Printer */ create_printer( const char *servername, /* I - Server hostname (NULL for default) */ int serverport, /* I - Server port */ const char *name, /* I - printer-name */ const char *location, /* I - printer-location */ const char *icons, /* I - printer-icons */ const char *strings, /* I - printer-strings-uri */ cups_array_t *docformats, /* I - document-format-supported */ const char *subtypes, /* I - DNS-SD service subtype(s) */ const char *directory, /* I - Spool directory */ const char *command, /* I - Command to run on job files, if any */ const char *device_uri, /* I - Output device, if any */ const char *output_format, /* I - Output format, if any */ ipp_t *attrs) /* I - Capability attributes */ { ippeve_printer_t *printer; /* Printer */ int i; /* Looping var */ #ifndef _WIN32 char path[1024]; /* Full path to command */ #endif /* !_WIN32 */ unsigned char sha256[32]; /* SHA-256 digest/sum */ char uuid_data[1024],/* Data to hash for printer-uuid */ uuid[128], /* printer-uuid */ *iconsptr; /* Pointer into icons string */ int k_supported; /* Maximum file size supported */ int num_formats; /* Number of supported document formats */ const char *formats[100], /* Supported document formats */ *format; /* Current format */ int num_sup_attrs; /* Number of supported attributes */ const char *sup_attrs[100];/* Supported attributes */ char xxx_supported[256]; /* Name of -supported attribute */ _cups_globals_t *cg = _cupsGlobals(); /* Global path values */ #ifdef HAVE_STATVFS struct statvfs spoolinfo; /* FS info for spool directory */ double spoolsize; /* FS size */ #elif defined(HAVE_STATFS) struct statfs spoolinfo; /* FS info for spool directory */ double spoolsize; /* FS size */ #endif /* HAVE_STATVFS */ static const char * const versions[] =/* ipp-versions-supported values */ { "1.1", "2.0" }; static const char * const features[] =/* ipp-features-supported values */ { "ipp-everywhere" }; static const int ops[] = /* operations-supported values */ { IPP_OP_PRINT_JOB, IPP_OP_PRINT_URI, IPP_OP_VALIDATE_JOB, IPP_OP_CREATE_JOB, IPP_OP_SEND_DOCUMENT, IPP_OP_SEND_URI, IPP_OP_CANCEL_JOB, IPP_OP_GET_JOB_ATTRIBUTES, IPP_OP_GET_JOBS, IPP_OP_GET_PRINTER_ATTRIBUTES, IPP_OP_CANCEL_MY_JOBS, IPP_OP_CLOSE_JOB, IPP_OP_IDENTIFY_PRINTER }; static const char * const charsets[] =/* charset-supported values */ { "us-ascii", "utf-8" }; static const char * const compressions[] =/* compression-supported values */ { #ifdef HAVE_LIBZ "deflate", "gzip", #endif /* HAVE_LIBZ */ "none" }; static const char * const identify_actions[] = { "display", "sound" }; static const char * const job_creation[] = { /* job-creation-attributes-supported values */ "copies", "document-access", "document-charset", "document-format", "document-message", "document-metadata", "document-name", "document-natural-language", "document-password", "finishings", "finishings-col", "ipp-attribute-fidelity", "job-account-id", "job-account-type", "job-accouunting-sheets", "job-accounting-user-id", "job-authorization-uri", "job-error-action", "job-error-sheet", "job-hold-until", "job-hold-until-time", "job-mandatory-attributes", "job-message-to-operator", "job-name", "job-pages-per-set", "job-password", "job-password-encryption", "job-phone-number", "job-priority", "job-recipient-name", "job-resource-ids", "job-sheet-message", "job-sheets", "job-sheets-col", "media", "media-col", "multiple-document-handling", "number-up", "orientation-requested", "output-bin", "output-device", "overrides", "page-delivery", "page-ranges", "presentation-direction-number-up", "print-color-mode", "print-content-optimize", "print-quality", "print-rendering-intent", "print-scaling", "printer-resolution", "proof-print", "separator-sheets", "sides", "x-image-position", "x-image-shift", "x-side1-image-shift", "x-side2-image-shift", "y-image-position", "y-image-shift", "y-side1-image-shift", "y-side2-image-shift" }; static const char * const media_col_supported[] = { /* media-col-supported values */ "media-bottom-margin", "media-left-margin", "media-right-margin", "media-size", "media-size-name", "media-source", "media-top-margin", "media-type" }; static const char * const multiple_document_handling[] = { /* multiple-document-handling-supported values */ "separate-documents-uncollated-copies", "separate-documents-collated-copies" }; static const char * const reference_uri_schemes_supported[] = { /* reference-uri-schemes-supported */ "file", "ftp", "http" #ifdef HAVE_TLS , "https" #endif /* HAVE_TLS */ }; #ifdef HAVE_TLS static const char * const uri_authentication_supported[] = { /* uri-authentication-supported values */ "none", "none" }; static const char * const uri_authentication_basic[] = { /* uri-authentication-supported values with authentication */ "basic", "basic" }; static const char * const uri_security_supported[] = { /* uri-security-supported values */ "none", "tls" }; #endif /* HAVE_TLS */ static const char * const which_jobs[] = { /* which-jobs-supported values */ "completed", "not-completed", "aborted", "all", "canceled", "pending", "pending-held", "processing", "processing-stopped" }; #ifndef _WIN32 /* * If a command was specified, make sure it exists and is executable... */ if (command) { if (*command == '/' || !strncmp(command, "./", 2)) { if (access(command, X_OK)) { _cupsLangPrintf(stderr, _("Unable to execute command \"%s\": %s"), command, strerror(errno)); return (NULL); } } else { snprintf(path, sizeof(path), "%s/command/%s", cg->cups_serverbin, command); if (access(path, X_OK)) { _cupsLangPrintf(stderr, _("Unable to execute command \"%s\": %s"), path, strerror(errno)); return (NULL); } command = path; } } #endif /* !_WIN32 */ /* * Allocate memory for the printer... */ if ((printer = calloc(1, sizeof(ippeve_printer_t))) == NULL) { _cupsLangPrintError(NULL, _("Unable to allocate memory for printer")); return (NULL); } printer->ipv4 = -1; printer->ipv6 = -1; printer->name = strdup(name); printer->dnssd_name = strdup(name); printer->dnssd_subtypes = subtypes ? strdup(subtypes) : NULL; printer->command = command ? strdup(command) : NULL; printer->device_uri = device_uri ? strdup(device_uri) : NULL; printer->output_format = output_format ? strdup(output_format) : NULL; printer->directory = strdup(directory); printer->icons[0] = icons ? strdup(icons) : NULL; printer->strings = strings ? strdup(strings) : NULL; printer->port = serverport; printer->start_time = time(NULL); printer->config_time = printer->start_time; printer->state = IPP_PSTATE_IDLE; printer->state_reasons = IPPEVE_PREASON_NONE; printer->state_time = printer->start_time; printer->jobs = cupsArrayNew((cups_array_func_t)compare_jobs, NULL); printer->next_job_id = 1; if (printer->icons[0]) { /* * Extract up to 3 icons... */ for (i = 1, iconsptr = strchr(printer->icons[0], ','); iconsptr && i < 3; i ++, iconsptr = strchr(iconsptr, ',')) { *iconsptr++ = '\0'; printer->icons[i] = iconsptr; } if (iconsptr) *iconsptr = '\0'; /* Strip any icons after the third... */ while (i < 3) { printer->icons[i] = printer->icons[i - 1]; i ++; } } if (servername) { printer->hostname = strdup(servername); } else { char temp[1024], /* Temporary string */ *tempptr; /* Pointer into temporary string */ #ifdef HAVE_AVAHI const char *avahi_name = avahi_client_get_host_name_fqdn(DNSSDClient); if (avahi_name) strlcpy(temp, avahi_name, sizeof(temp)); else #endif /* HAVE_AVAHI */ if ((tempptr = strstr(httpGetHostname(NULL, temp, sizeof(temp)), ".lan")) != NULL && !tempptr[5]) strlcpy(tempptr, ".local", sizeof(temp) - (size_t)(tempptr - temp)); printer->hostname = strdup(temp); } _cupsRWInit(&(printer->rwlock)); /* * Create the listener sockets... */ if (printer->port) { if ((printer->ipv4 = create_listener(servername, printer->port, AF_INET)) < 0) { perror("Unable to create IPv4 listener"); goto bad_printer; } } else { #ifdef _WIN32 /* * Windows is almost always used as a single user system, so use a default * port number of 8631. */ serverport = 8631; #else /* * Use 8000 + UID mod 1000 for the default port number... */ serverport = 8000 + ((int)getuid() % 1000); #endif /* _WIN32 */ while (serverport < 10000) { if ((printer->ipv4 = create_listener(servername, serverport, AF_INET)) >= 0) break; serverport ++; } if (serverport < 10000) { _cupsLangPrintf(stderr, _("Listening on port %d."), serverport); printer->port = serverport; } else { perror("Unable to create IPv4 listener"); goto bad_printer; } } if ((printer->ipv6 = create_listener(servername, printer->port, AF_INET6)) < 0) { perror("Unable to create IPv6 listener"); goto bad_printer; } /* * Prepare values for the printer attributes... */ snprintf(uuid_data, sizeof(uuid_data), "_IPPEVEPRINTER_:%s:%d:%s", printer->hostname, printer->port, printer->name); cupsHashData("sha2-256", (unsigned char *)uuid_data, strlen(uuid_data), sha256, sizeof(sha256)); snprintf(uuid, sizeof(uuid), "urn:uuid:%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", sha256[0], sha256[1], sha256[3], sha256[4], sha256[5], sha256[6], (sha256[10] & 15) | 0x30, sha256[11], (sha256[15] & 0x3f) | 0x40, sha256[16], sha256[20], sha256[21], sha256[25], sha256[26], sha256[30], sha256[31]); if (Verbosity) { #ifdef HAVE_TLS fprintf(stderr, "printer-uri-supported=\"ipp://%s:%d/ipp/print\",\"ipps://%s:%d/ipp/print\"\n", printer->hostname, printer->port, printer->hostname, printer->port); #else fprintf(stderr, "printer-uri-supported=\"ipp://%s:%d/ipp/print\"\n", printer->hostname, printer->port); #endif /* HAVE_TLS */ fprintf(stderr, "printer-uuid=\"%s\"\n", uuid); } /* * Get the maximum spool size based on the size of the filesystem used for * the spool directory. If the host OS doesn't support the statfs call * or the filesystem is larger than 2TiB, always report INT_MAX. */ #ifdef HAVE_STATVFS if (statvfs(printer->directory, &spoolinfo)) k_supported = INT_MAX; else if ((spoolsize = (double)spoolinfo.f_frsize * spoolinfo.f_blocks / 1024) > INT_MAX) k_supported = INT_MAX; else k_supported = (int)spoolsize; #elif defined(HAVE_STATFS) if (statfs(printer->directory, &spoolinfo)) k_supported = INT_MAX; else if ((spoolsize = (double)spoolinfo.f_bsize * spoolinfo.f_blocks / 1024) > INT_MAX) k_supported = INT_MAX; else k_supported = (int)spoolsize; #else k_supported = INT_MAX; #endif /* HAVE_STATVFS */ /* * Assemble the final list of document formats... */ if (!cupsArrayFind(docformats, (void *)"application/octet-stream")) cupsArrayAdd(docformats, (void *)"application/octet-stream"); for (num_formats = 0, format = (const char *)cupsArrayFirst(docformats); format && num_formats < (int)(sizeof(formats) / sizeof(formats[0])); format = (const char *)cupsArrayNext(docformats)) formats[num_formats ++] = format; /* * Get the list of attributes that can be used when creating a job... */ num_sup_attrs = 0; sup_attrs[num_sup_attrs ++] = "document-access"; sup_attrs[num_sup_attrs ++] = "document-charset"; sup_attrs[num_sup_attrs ++] = "document-format"; sup_attrs[num_sup_attrs ++] = "document-message"; sup_attrs[num_sup_attrs ++] = "document-metadata"; sup_attrs[num_sup_attrs ++] = "document-name"; sup_attrs[num_sup_attrs ++] = "document-natural-language"; sup_attrs[num_sup_attrs ++] = "ipp-attribute-fidelity"; sup_attrs[num_sup_attrs ++] = "job-name"; sup_attrs[num_sup_attrs ++] = "job-priority"; for (i = 0; i < (int)(sizeof(job_creation) / sizeof(job_creation[0])) && num_sup_attrs < (int)(sizeof(sup_attrs) / sizeof(sup_attrs[0])); i ++) { snprintf(xxx_supported, sizeof(xxx_supported), "%s-supported", job_creation[i]); if (ippFindAttribute(attrs, xxx_supported, IPP_TAG_ZERO)) sup_attrs[num_sup_attrs ++] = job_creation[i]; } /* * Fill out the rest of the printer attributes. */ printer->attrs = attrs; /* charset-configured */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_CHARSET), "charset-configured", NULL, "utf-8"); /* charset-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_CHARSET), "charset-supported", sizeof(charsets) / sizeof(charsets[0]), NULL, charsets); /* compression-supported */ if (!ippFindAttribute(printer->attrs, "compression-supported", IPP_TAG_ZERO)) ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "compression-supported", (int)(sizeof(compressions) / sizeof(compressions[0])), NULL, compressions); /* document-format-default */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_MIMETYPE), "document-format-default", NULL, "application/octet-stream"); /* document-format-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_MIMETYPE, "document-format-supported", num_formats, NULL, formats); /* generated-natural-language-supported */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_LANGUAGE), "generated-natural-language-supported", NULL, "en"); /* identify-actions-default */ ippAddString (printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "identify-actions-default", NULL, "sound"); /* identify-actions-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "identify-actions-supported", sizeof(identify_actions) / sizeof(identify_actions[0]), NULL, identify_actions); /* ipp-features-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-features-supported", sizeof(features) / sizeof(features[0]), NULL, features); /* ipp-versions-supported */ if (MaxVersion == 11) ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-versions-supported", NULL, "1.1"); else ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-versions-supported", (int)(sizeof(versions) / sizeof(versions[0])), NULL, versions); /* job-creation-attributes-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-creation-attributes-supported", num_sup_attrs, NULL, sup_attrs); /* job-ids-supported */ ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "job-ids-supported", 1); /* job-k-octets-supported */ ippAddRange(printer->attrs, IPP_TAG_PRINTER, "job-k-octets-supported", 0, k_supported); /* job-priority-default */ ippAddInteger(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-priority-default", 50); /* job-priority-supported */ ippAddInteger(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-priority-supported", 1); /* job-sheets-default */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-sheets-default", NULL, "none"); /* job-sheets-supported */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-sheets-supported", NULL, "none"); /* media-col-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-col-supported", (int)(sizeof(media_col_supported) / sizeof(media_col_supported[0])), NULL, media_col_supported); /* multiple-document-handling-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "multiple-document-handling-supported", sizeof(multiple_document_handling) / sizeof(multiple_document_handling[0]), NULL, multiple_document_handling); /* multiple-document-jobs-supported */ ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "multiple-document-jobs-supported", 0); /* multiple-operation-time-out */ ippAddInteger(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "multiple-operation-time-out", 60); /* multiple-operation-time-out-action */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "multiple-operation-time-out-action", NULL, "abort-job"); /* natural-language-configured */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_LANGUAGE), "natural-language-configured", NULL, "en"); /* operations-supported */ ippAddIntegers(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "operations-supported", sizeof(ops) / sizeof(ops[0]), ops); /* pdl-override-supported */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pdl-override-supported", NULL, "attempted"); /* preferred-attributes-supported */ ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "preferred-attributes-supported", 0); /* printer-get-attributes-supported */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "printer-get-attributes-supported", NULL, "document-format"); /* printer-geo-location */ ippAddOutOfBand(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_UNKNOWN, "printer-geo-location"); /* printer-is-accepting-jobs */ ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1); /* printer-info */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, name); /* printer-location */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location", NULL, location); /* printer-name */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-name", NULL, name); /* printer-organization */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-organization", NULL, ""); /* printer-organizational-unit */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-organizational-unit", NULL, ""); /* printer-strings-languages-supported */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_LANGUAGE, "printer-strings-languages-supported", NULL, "en"); /* printer-uuid */ ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-uuid", NULL, uuid); /* reference-uri-scheme-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_URISCHEME), "reference-uri-schemes-supported", (int)(sizeof(reference_uri_schemes_supported) / sizeof(reference_uri_schemes_supported[0])), NULL, reference_uri_schemes_supported); /* uri-authentication-supported */ #ifdef HAVE_TLS if (PAMService) ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-authentication-supported", 2, NULL, uri_authentication_basic); else ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-authentication-supported", 2, NULL, uri_authentication_supported); #else if (PAMService) ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-authentication-supported", NULL, "basic"); else ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-authentication-supported", NULL, "none"); #endif /* HAVE_TLS */ /* uri-security-supported */ #ifdef HAVE_TLS ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-security-supported", 2, NULL, uri_security_supported); #else ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "uri-security-supported", NULL, "none"); #endif /* HAVE_TLS */ /* which-jobs-supported */ ippAddStrings(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "which-jobs-supported", sizeof(which_jobs) / sizeof(which_jobs[0]), NULL, which_jobs); debug_attributes("Printer", printer->attrs, 0); /* * Register the printer with DNS-SD... */ if (!register_printer(printer)) goto bad_printer; /* * Return it! */ return (printer); /* * If we get here we were unable to create the printer... */ bad_printer: delete_printer(printer); return (NULL); } /* * 'debug_attributes()' - Print attributes in a request or response. */ static void debug_attributes(const char *title, /* I - Title */ ipp_t *ipp, /* I - Request/response */ int type) /* I - 0 = object, 1 = request, 2 = response */ { ipp_tag_t group_tag; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[2048]; /* String buffer for value */ int major, minor; /* Version */ if (Verbosity <= 1) return; fprintf(stderr, "%s:\n", title); major = ippGetVersion(ipp, &minor); fprintf(stderr, " version=%d.%d\n", major, minor); if (type == 1) fprintf(stderr, " operation-id=%s(%04x)\n", ippOpString(ippGetOperation(ipp)), ippGetOperation(ipp)); else if (type == 2) fprintf(stderr, " status-code=%s(%04x)\n", ippErrorString(ippGetStatusCode(ipp)), ippGetStatusCode(ipp)); fprintf(stderr, " request-id=%d\n\n", ippGetRequestId(ipp)); for (attr = ippFirstAttribute(ipp), group_tag = IPP_TAG_ZERO; attr; attr = ippNextAttribute(ipp)) { if (ippGetGroupTag(attr) != group_tag) { group_tag = ippGetGroupTag(attr); fprintf(stderr, " %s\n", ippTagString(group_tag)); } if (ippGetName(attr)) { ippAttributeString(attr, buffer, sizeof(buffer)); fprintf(stderr, " %s (%s%s) %s\n", ippGetName(attr), ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr)), buffer); } } } /* * 'delete_client()' - Close the socket and free all memory used by a client * object. */ static void delete_client(ippeve_client_t *client) /* I - Client */ { if (Verbosity) fprintf(stderr, "Closing connection from %s\n", client->hostname); /* * Flush pending writes before closing... */ httpFlushWrite(client->http); /* * Free memory... */ httpClose(client->http); ippDelete(client->request); ippDelete(client->response); free(client); } /* * 'delete_job()' - Remove from the printer and free all memory used by a job * object. */ static void delete_job(ippeve_job_t *job) /* I - Job */ { if (Verbosity) fprintf(stderr, "[Job %d] Removing job from history.\n", job->id); ippDelete(job->attrs); if (job->message) free(job->message); if (job->filename) { if (!KeepFiles) unlink(job->filename); free(job->filename); } free(job); } /* * 'delete_printer()' - Unregister, close listen sockets, and free all memory * used by a printer object. */ static void delete_printer(ippeve_printer_t *printer) /* I - Printer */ { if (printer->ipv4 >= 0) close(printer->ipv4); if (printer->ipv6 >= 0) close(printer->ipv6); #if HAVE_MDNSRESPONDER if (printer->printer_ref) DNSServiceRefDeallocate(printer->printer_ref); if (printer->ipp_ref) DNSServiceRefDeallocate(printer->ipp_ref); if (printer->ipps_ref) DNSServiceRefDeallocate(printer->ipps_ref); if (printer->http_ref) DNSServiceRefDeallocate(printer->http_ref); #elif defined(HAVE_AVAHI) avahi_threaded_poll_lock(DNSSDMaster); if (printer->dnssd_ref) avahi_entry_group_free(printer->dnssd_ref); avahi_threaded_poll_unlock(DNSSDMaster); #endif /* HAVE_MDNSRESPONDER */ if (printer->dnssd_name) free(printer->dnssd_name); if (printer->name) free(printer->name); if (printer->icons[0]) free(printer->icons[0]); if (printer->strings) free(printer->strings); if (printer->command) free(printer->command); if (printer->device_uri) free(printer->device_uri); #if !CUPS_LITE if (printer->ppdfile) free(printer->ppdfile); #endif /* !CUPS_LITE */ if (printer->directory) free(printer->directory); if (printer->hostname) free(printer->hostname); ippDelete(printer->attrs); cupsArrayDelete(printer->jobs); free(printer); } #ifdef HAVE_MDNSRESPONDER /* * 'dnssd_callback()' - Handle DNS-SD registration events. */ static void DNSSD_API dnssd_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Status flags */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *name, /* I - Service name */ const char *regtype, /* I - Service type */ const char *domain, /* I - Domain for service */ ippeve_printer_t *printer) /* I - Printer */ { (void)sdRef; (void)flags; (void)domain; (void)name; if (errorCode == kDNSServiceErr_NameConflict) { fputs("DNS-SD service name collision detected.\n", stderr); printer->dnssd_collision = 1; } else if (errorCode) { fprintf(stderr, "DNSServiceRegister for %s failed with error %d.\n", regtype, (int)errorCode); return; } } #elif defined(HAVE_AVAHI) /* * 'dnssd_callback()' - Handle DNS-SD registration events. */ static void dnssd_callback( AvahiEntryGroup *srv, /* I - Service */ AvahiEntryGroupState state, /* I - Registration state */ void *context) /* I - Printer */ { ippeve_printer_t *printer = (ippeve_printer_t *)context; /* Printer */ (void)srv; if (state == AVAHI_ENTRY_GROUP_COLLISION) { fputs("DNS-SD service name collision detected.\n", stderr); printer->dnssd_collision = 1; } } /* * 'dnssd_client_cb()' - Client callback for Avahi. * * Called whenever the client or server state changes... */ static void dnssd_client_cb( AvahiClient *c, /* I - Client */ AvahiClientState state, /* I - Current state */ void *userdata) /* I - User data (printer) */ { if (!c) return; if (state == AVAHI_CLIENT_FAILURE) { if (avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED) { fputs("Avahi server crashed, exiting.\n", stderr); exit(1); } } else { fprintf(stderr, "Ignored Avahi state %d.\n", state); } } #endif /* HAVE_MDNSRESPONDER */ /* * 'dnssd_init()' - Initialize the DNS-SD service connections... */ static void dnssd_init(void) { #ifdef HAVE_MDNSRESPONDER if (DNSServiceCreateConnection(&DNSSDMaster) != kDNSServiceErr_NoError) { fputs("Error: Unable to initialize DNS-SD.\n", stderr); exit(1); } #elif defined(HAVE_AVAHI) int error; /* Error code, if any */ if ((DNSSDMaster = avahi_threaded_poll_new()) == NULL) { fputs("Error: Unable to initialize DNS-SD.\n", stderr); exit(1); } if ((DNSSDClient = avahi_client_new(avahi_threaded_poll_get(DNSSDMaster), AVAHI_CLIENT_NO_FAIL, dnssd_client_cb, NULL, &error)) == NULL) { fputs("Error: Unable to initialize DNS-SD.\n", stderr); exit(1); } avahi_threaded_poll_start(DNSSDMaster); #endif /* HAVE_MDNSRESPONDER */ } /* * 'filter_cb()' - Filter printer attributes based on the requested array. */ static int /* O - 1 to copy, 0 to ignore */ filter_cb(ippeve_filter_t *filter, /* I - Filter parameters */ ipp_t *dst, /* I - Destination (unused) */ ipp_attribute_t *attr) /* I - Source attribute */ { /* * Filter attributes as needed... */ #ifndef _WIN32 /* Avoid MS compiler bug */ (void)dst; #endif /* !_WIN32 */ ipp_tag_t group = ippGetGroupTag(attr); const char *name = ippGetName(attr); if ((filter->group_tag != IPP_TAG_ZERO && group != filter->group_tag && group != IPP_TAG_ZERO) || !name || (!strcmp(name, "media-col-database") && !cupsArrayFind(filter->ra, (void *)name))) return (0); return (!filter->ra || cupsArrayFind(filter->ra, (void *)name) != NULL); } /* * 'find_job()' - Find a job specified in a request. */ static ippeve_job_t * /* O - Job or NULL */ find_job(ippeve_client_t *client) /* I - Client */ { ipp_attribute_t *attr; /* job-id or job-uri attribute */ ippeve_job_t key, /* Job search key */ *job; /* Matching job, if any */ if ((attr = ippFindAttribute(client->request, "job-uri", IPP_TAG_URI)) != NULL) { const char *uri = ippGetString(attr, 0, NULL); /* URI value */ const char *uriptr = strrchr(uri, '/'); /* Pointer to the last slash in the URI */ if (uriptr && isdigit(uriptr[1] & 255)) key.id = atoi(uriptr + 1); else return (NULL); } else if ((attr = ippFindAttribute(client->request, "job-id", IPP_TAG_INTEGER)) != NULL) key.id = ippGetInteger(attr, 0); _cupsRWLockRead(&(client->printer->rwlock)); job = (ippeve_job_t *)cupsArrayFind(client->printer->jobs, &key); _cupsRWUnlock(&(client->printer->rwlock)); return (job); } /* * 'finish_document()' - Finish receiving a document file and start processing. */ static void finish_document_data( ippeve_client_t *client, /* I - Client */ ippeve_job_t *job) /* I - Job */ { char filename[1024], /* Filename buffer */ buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes read */ cups_array_t *ra; /* Attributes to send in response */ _cups_thread_t t; /* Thread */ /* * Create a file for the request data... * * TODO: Update code to support piping large raster data to the print command. */ if ((job->fd = create_job_file(job, filename, sizeof(filename), client->printer->directory, NULL)) < 0) { respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to create print file: %s", strerror(errno)); goto abort_job; } if (Verbosity) fprintf(stderr, "Created job file \"%s\", format \"%s\".\n", filename, job->format); while ((bytes = httpRead2(client->http, buffer, sizeof(buffer))) > 0) { if (write(job->fd, buffer, (size_t)bytes) < bytes) { int error = errno; /* Write error */ close(job->fd); job->fd = -1; unlink(filename); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to write print file: %s", strerror(error)); goto abort_job; } } if (bytes < 0) { /* * Got an error while reading the print data, so abort this job. */ close(job->fd); job->fd = -1; unlink(filename); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to read print file."); goto abort_job; } if (close(job->fd)) { int error = errno; /* Write error */ job->fd = -1; unlink(filename); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to write print file: %s", strerror(error)); goto abort_job; } job->fd = -1; job->filename = strdup(filename); job->state = IPP_JSTATE_PENDING; /* * Process the job... */ t = _cupsThreadCreate((_cups_thread_func_t)process_job, job); if (t) { _cupsThreadDetach(t); } else { respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to process job."); goto abort_job; } /* * Return the job info... */ respond_ipp(client, IPP_STATUS_OK, NULL); ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-state"); cupsArrayAdd(ra, "job-state-message"); cupsArrayAdd(ra, "job-state-reasons"); cupsArrayAdd(ra, "job-uri"); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); return; /* * If we get here we had to abort the job... */ abort_job: job->state = IPP_JSTATE_ABORTED; job->completed = time(NULL); ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-state"); cupsArrayAdd(ra, "job-state-reasons"); cupsArrayAdd(ra, "job-uri"); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); } /* * 'finish_uri()' - Finish fetching a document URI and start processing. */ static void finish_document_uri( ippeve_client_t *client, /* I - Client */ ippeve_job_t *job) /* I - Job */ { ipp_attribute_t *uri; /* document-uri */ char scheme[256], /* URI scheme */ userpass[256], /* Username and password info */ hostname[256], /* Hostname */ resource[1024]; /* Resource path */ int port; /* Port number */ http_uri_status_t uri_status; /* URI decode status */ http_encryption_t encryption; /* Encryption to use, if any */ http_t *http; /* Connection for http/https URIs */ http_status_t status; /* Access status for http/https URIs */ int infile; /* Input file for local file URIs */ char filename[1024], /* Filename buffer */ buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes read */ ipp_attribute_t *attr; /* Current attribute */ cups_array_t *ra; /* Attributes to send in response */ /* * Do we have a file to print? */ if (have_document_data(client)) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Unexpected document data following request."); goto abort_job; } /* * Do we have a document URI? */ if ((uri = ippFindAttribute(client->request, "document-uri", IPP_TAG_URI)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Missing document-uri."); goto abort_job; } if (ippGetCount(uri) != 1) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Too many document-uri values."); goto abort_job; } uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, ippGetString(uri, 0, NULL), scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (uri_status < HTTP_URI_STATUS_OK) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Bad document-uri: %s", httpURIStatusString(uri_status)); goto abort_job; } if (strcmp(scheme, "file") && #ifdef HAVE_TLS strcmp(scheme, "https") && #endif /* HAVE_TLS */ strcmp(scheme, "http")) { respond_ipp(client, IPP_STATUS_ERROR_URI_SCHEME, "URI scheme \"%s\" not supported.", scheme); goto abort_job; } if (!strcmp(scheme, "file") && access(resource, R_OK)) { respond_ipp(client, IPP_STATUS_ERROR_DOCUMENT_ACCESS, "Unable to access URI: %s", strerror(errno)); goto abort_job; } /* * Get the document format for the job... */ _cupsRWLockWrite(&(client->printer->rwlock)); if ((attr = ippFindAttribute(job->attrs, "document-format", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else job->format = "application/octet-stream"; /* * Create a file for the request data... */ if ((job->fd = create_job_file(job, filename, sizeof(filename), client->printer->directory, NULL)) < 0) { _cupsRWUnlock(&(client->printer->rwlock)); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to create print file: %s", strerror(errno)); goto abort_job; } _cupsRWUnlock(&(client->printer->rwlock)); if (!strcmp(scheme, "file")) { if ((infile = open(resource, O_RDONLY | O_BINARY)) < 0) { respond_ipp(client, IPP_STATUS_ERROR_DOCUMENT_ACCESS, "Unable to access URI: %s", strerror(errno)); goto abort_job; } do { if ((bytes = read(infile, buffer, sizeof(buffer))) < 0 && (errno == EAGAIN || errno == EINTR)) { bytes = 1; } else if (bytes > 0 && write(job->fd, buffer, (size_t)bytes) < bytes) { int error = errno; /* Write error */ close(job->fd); job->fd = -1; unlink(filename); close(infile); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to write print file: %s", strerror(error)); goto abort_job; } } while (bytes > 0); close(infile); } else { #ifdef HAVE_TLS if (port == 443 || !strcmp(scheme, "https")) encryption = HTTP_ENCRYPTION_ALWAYS; else #endif /* HAVE_TLS */ encryption = HTTP_ENCRYPTION_IF_REQUESTED; if ((http = httpConnect2(hostname, port, NULL, AF_UNSPEC, encryption, 1, 30000, NULL)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_DOCUMENT_ACCESS, "Unable to connect to %s: %s", hostname, cupsLastErrorString()); close(job->fd); job->fd = -1; unlink(filename); goto abort_job; } httpClearFields(http); httpSetField(http, HTTP_FIELD_ACCEPT_LANGUAGE, "en"); if (httpGet(http, resource)) { respond_ipp(client, IPP_STATUS_ERROR_DOCUMENT_ACCESS, "Unable to GET URI: %s", strerror(errno)); close(job->fd); job->fd = -1; unlink(filename); httpClose(http); goto abort_job; } while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE); if (status != HTTP_STATUS_OK) { respond_ipp(client, IPP_STATUS_ERROR_DOCUMENT_ACCESS, "Unable to GET URI: %s", httpStatus(status)); close(job->fd); job->fd = -1; unlink(filename); httpClose(http); goto abort_job; } while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) { if (write(job->fd, buffer, (size_t)bytes) < bytes) { int error = errno; /* Write error */ close(job->fd); job->fd = -1; unlink(filename); httpClose(http); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to write print file: %s", strerror(error)); goto abort_job; } } httpClose(http); } if (close(job->fd)) { int error = errno; /* Write error */ job->fd = -1; unlink(filename); respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to write print file: %s", strerror(error)); goto abort_job; } _cupsRWLockWrite(&(client->printer->rwlock)); job->fd = -1; job->filename = strdup(filename); job->state = IPP_JSTATE_PENDING; _cupsRWUnlock(&(client->printer->rwlock)); /* * Process the job... */ process_job(job); /* * Return the job info... */ respond_ipp(client, IPP_STATUS_OK, NULL); ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-state"); cupsArrayAdd(ra, "job-state-reasons"); cupsArrayAdd(ra, "job-uri"); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); return; /* * If we get here we had to abort the job... */ abort_job: job->state = IPP_JSTATE_ABORTED; job->completed = time(NULL); ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-state"); cupsArrayAdd(ra, "job-state-reasons"); cupsArrayAdd(ra, "job-uri"); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); } /* * 'flush_document_data()' - Safely flush remaining document data. */ static void flush_document_data( ippeve_client_t *client) /* I - Client */ { char buffer[8192]; /* Read buffer */ if (httpGetState(client->http) == HTTP_STATE_POST_RECV) { while (httpRead2(client->http, buffer, sizeof(buffer)) > 0); } } /* * 'have_document_data()' - Determine whether we have more document data. */ static int /* O - 1 if data is present, 0 otherwise */ have_document_data( ippeve_client_t *client) /* I - Client */ { char temp; /* Data */ if (httpGetState(client->http) != HTTP_STATE_POST_RECV) return (0); else return (httpPeek(client->http, &temp, 1) > 0); } /* * 'html_escape()' - Write a HTML-safe string. */ static void html_escape(ippeve_client_t *client, /* I - Client */ const char *s, /* I - String to write */ size_t slen) /* I - Number of characters to write */ { const char *start, /* Start of segment */ *end; /* End of string */ start = s; end = s + (slen > 0 ? slen : strlen(s)); while (*s && s < end) { if (*s == '&' || *s == '<') { if (s > start) httpWrite2(client->http, start, (size_t)(s - start)); if (*s == '&') httpWrite2(client->http, "&", 5); else httpWrite2(client->http, "<", 4); start = s + 1; } s ++; } if (s > start) httpWrite2(client->http, start, (size_t)(s - start)); } /* * 'html_footer()' - Show the web interface footer. * * This function also writes the trailing 0-length chunk. */ static void html_footer(ippeve_client_t *client) /* I - Client */ { html_printf(client, "\n" "\n" "\n"); httpWrite2(client->http, "", 0); } /* * 'html_header()' - Show the web interface header and title. */ static void html_header(ippeve_client_t *client, /* I - Client */ const char *title, /* I - Title */ int refresh) /* I - Refresh timer, if any */ { html_printf(client, "\n" "\n" "\n" "%s\n" "\n" "\n" "\n", title); if (refresh > 0) html_printf(client, "\n", refresh); html_printf(client, "\n" "\n" "\n" "\n" "" "" "" "" "
StatusSuppliesMedia
\n" "

\n", !strcmp(client->uri, "/") ? " sel" : "", !strcmp(client->uri, "/supplies") ? " sel" : "", !strcmp(client->uri, "/media") ? " sel" : ""); } /* * 'html_printf()' - Send formatted text to the client, quoting as needed. */ static void html_printf(ippeve_client_t *client, /* I - Client */ const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to arguments */ const char *start; /* Start of string */ char size, /* Size character (h, l, L) */ type; /* Format type character */ int width, /* Width of field */ prec; /* Number of characters of precision */ char tformat[100], /* Temporary format string for sprintf() */ *tptr, /* Pointer into temporary format */ temp[1024]; /* Buffer for formatted numbers */ char *s; /* Pointer to string */ /* * Loop through the format string, formatting as needed... */ va_start(ap, format); start = format; while (*format) { if (*format == '%') { if (format > start) httpWrite2(client->http, start, (size_t)(format - start)); tptr = tformat; *tptr++ = *format++; if (*format == '%') { httpWrite2(client->http, "%", 1); format ++; start = format; continue; } else if (strchr(" -+#\'", *format)) *tptr++ = *format++; if (*format == '*') { /* * Get width from argument... */ format ++; width = va_arg(ap, int); snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", width); tptr += strlen(tptr); } else { width = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; width = width * 10 + *format++ - '0'; } } if (*format == '.') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; format ++; if (*format == '*') { /* * Get precision from argument... */ format ++; prec = va_arg(ap, int); snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", prec); tptr += strlen(tptr); } else { prec = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; prec = prec * 10 + *format++ - '0'; } } } if (*format == 'l' && format[1] == 'l') { size = 'L'; if (tptr < (tformat + sizeof(tformat) - 2)) { *tptr++ = 'l'; *tptr++ = 'l'; } format += 2; } else if (*format == 'h' || *format == 'l' || *format == 'L') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; size = *format++; } else size = 0; if (!*format) { start = format; break; } if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; type = *format++; *tptr = '\0'; start = format; switch (type) { case 'E' : /* Floating point formats */ case 'G' : case 'e' : case 'f' : case 'g' : if ((size_t)(width + 2) > sizeof(temp)) break; snprintf(temp, sizeof(temp), tformat, va_arg(ap, double)); httpWrite2(client->http, temp, strlen(temp)); break; case 'B' : /* Integer formats */ case 'X' : case 'b' : case 'd' : case 'i' : case 'o' : case 'u' : case 'x' : if ((size_t)(width + 2) > sizeof(temp)) break; # ifdef HAVE_LONG_LONG if (size == 'L') snprintf(temp, sizeof(temp), tformat, va_arg(ap, long long)); else # endif /* HAVE_LONG_LONG */ if (size == 'l') snprintf(temp, sizeof(temp), tformat, va_arg(ap, long)); else snprintf(temp, sizeof(temp), tformat, va_arg(ap, int)); httpWrite2(client->http, temp, strlen(temp)); break; case 'p' : /* Pointer value */ if ((size_t)(width + 2) > sizeof(temp)) break; snprintf(temp, sizeof(temp), tformat, va_arg(ap, void *)); httpWrite2(client->http, temp, strlen(temp)); break; case 'c' : /* Character or character array */ if (width <= 1) { temp[0] = (char)va_arg(ap, int); temp[1] = '\0'; html_escape(client, temp, 1); } else html_escape(client, va_arg(ap, char *), (size_t)width); break; case 's' : /* String */ if ((s = va_arg(ap, char *)) == NULL) s = "(null)"; html_escape(client, s, strlen(s)); break; } } else format ++; } if (format > start) httpWrite2(client->http, start, (size_t)(format - start)); va_end(ap); } /* * 'ipp_cancel_job()' - Cancel a job. */ static void ipp_cancel_job(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job information */ /* * Get the job... */ if ((job = find_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "Job does not exist."); return; } /* * See if the job is already completed, canceled, or aborted; if so, * we can't cancel... */ switch (job->state) { case IPP_JSTATE_CANCELED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is already canceled - can\'t cancel.", job->id); break; case IPP_JSTATE_ABORTED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is already aborted - can\'t cancel.", job->id); break; case IPP_JSTATE_COMPLETED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is already completed - can\'t cancel.", job->id); break; default : /* * Cancel the job... */ _cupsRWLockWrite(&(client->printer->rwlock)); if (job->state == IPP_JSTATE_PROCESSING || (job->state == IPP_JSTATE_HELD && job->fd >= 0)) job->cancel = 1; else { job->state = IPP_JSTATE_CANCELED; job->completed = time(NULL); } _cupsRWUnlock(&(client->printer->rwlock)); respond_ipp(client, IPP_STATUS_OK, NULL); break; } } /* * 'ipp_cancel_my_jobs()' - Cancel all jobs. * * Note: Since ippeveprinter doesn't do spooling, this really just cancels the * current job. */ static void ipp_cancel_my_jobs( ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job information */ _cupsRWLockWrite(&client->printer->rwlock); if ((job = client->printer->active_job) != NULL) { /* * See if the job is already completed, canceled, or aborted; if so, * we can't cancel... */ if (job->state < IPP_JSTATE_CANCELED) { /* * Cancel the job... */ if (job->state == IPP_JSTATE_PROCESSING || (job->state == IPP_JSTATE_HELD && job->fd >= 0)) { job->cancel = 1; } else { job->state = IPP_JSTATE_CANCELED; job->completed = time(NULL); } } } respond_ipp(client, IPP_STATUS_OK, NULL); _cupsRWUnlock(&client->printer->rwlock); } /* * 'ipp_close_job()' - Close an open job. */ static void ipp_close_job(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job information */ /* * Get the job... */ if ((job = find_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "Job does not exist."); return; } /* * See if the job is already completed, canceled, or aborted; if so, * we can't cancel... */ switch (job->state) { case IPP_JSTATE_CANCELED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is canceled - can\'t close.", job->id); break; case IPP_JSTATE_ABORTED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is aborted - can\'t close.", job->id); break; case IPP_JSTATE_COMPLETED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is completed - can\'t close.", job->id); break; case IPP_JSTATE_PROCESSING : case IPP_JSTATE_STOPPED : respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job #%d is already closed.", job->id); break; default : respond_ipp(client, IPP_STATUS_OK, NULL); break; } } /* * 'ipp_create_job()' - Create a job object. */ static void ipp_create_job(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* New job */ cups_array_t *ra; /* Attributes to send in response */ /* * Do we have a file to print? */ if (have_document_data(client)) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Unexpected document data following request."); return; } /* * Validate print job attributes... */ if (!valid_job_attributes(client)) return; /* * Create the job... */ if ((job = create_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BUSY, "Currently printing another job."); return; } /* * Return the job info... */ respond_ipp(client, IPP_STATUS_OK, NULL); ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-state"); cupsArrayAdd(ra, "job-state-message"); cupsArrayAdd(ra, "job-state-reasons"); cupsArrayAdd(ra, "job-uri"); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); } /* * 'ipp_get_job_attributes()' - Get the attributes for a job object. */ static void ipp_get_job_attributes( ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job */ cups_array_t *ra; /* requested-attributes */ if ((job = find_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "Job not found."); return; } respond_ipp(client, IPP_STATUS_OK, NULL); ra = ippCreateRequestedArray(client->request); copy_job_attributes(client, job, ra); cupsArrayDelete(ra); } /* * 'ipp_get_jobs()' - Get a list of job objects. */ static void ipp_get_jobs(ippeve_client_t *client) /* I - Client */ { ipp_attribute_t *attr; /* Current attribute */ const char *which_jobs = NULL; /* which-jobs values */ int job_comparison; /* Job comparison */ ipp_jstate_t job_state; /* job-state value */ int first_job_id, /* First job ID */ limit, /* Maximum number of jobs to return */ count; /* Number of jobs that match */ const char *username; /* Username */ ippeve_job_t *job; /* Current job pointer */ cups_array_t *ra; /* Requested attributes array */ /* * See if the "which-jobs" attribute have been specified... */ if ((attr = ippFindAttribute(client->request, "which-jobs", IPP_TAG_KEYWORD)) != NULL) { which_jobs = ippGetString(attr, 0, NULL); fprintf(stderr, "%s Get-Jobs which-jobs=%s", client->hostname, which_jobs); } if (!which_jobs || !strcmp(which_jobs, "not-completed")) { job_comparison = -1; job_state = IPP_JSTATE_STOPPED; } else if (!strcmp(which_jobs, "completed")) { job_comparison = 1; job_state = IPP_JSTATE_CANCELED; } else if (!strcmp(which_jobs, "aborted")) { job_comparison = 0; job_state = IPP_JSTATE_ABORTED; } else if (!strcmp(which_jobs, "all")) { job_comparison = 1; job_state = IPP_JSTATE_PENDING; } else if (!strcmp(which_jobs, "canceled")) { job_comparison = 0; job_state = IPP_JSTATE_CANCELED; } else if (!strcmp(which_jobs, "pending")) { job_comparison = 0; job_state = IPP_JSTATE_PENDING; } else if (!strcmp(which_jobs, "pending-held")) { job_comparison = 0; job_state = IPP_JSTATE_HELD; } else if (!strcmp(which_jobs, "processing")) { job_comparison = 0; job_state = IPP_JSTATE_PROCESSING; } else if (!strcmp(which_jobs, "processing-stopped")) { job_comparison = 0; job_state = IPP_JSTATE_STOPPED; } else { respond_ipp(client, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, "The which-jobs value \"%s\" is not supported.", which_jobs); ippAddString(client->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_KEYWORD, "which-jobs", NULL, which_jobs); return; } /* * See if they want to limit the number of jobs reported... */ if ((attr = ippFindAttribute(client->request, "limit", IPP_TAG_INTEGER)) != NULL) { limit = ippGetInteger(attr, 0); fprintf(stderr, "%s Get-Jobs limit=%d", client->hostname, limit); } else limit = 0; if ((attr = ippFindAttribute(client->request, "first-job-id", IPP_TAG_INTEGER)) != NULL) { first_job_id = ippGetInteger(attr, 0); fprintf(stderr, "%s Get-Jobs first-job-id=%d", client->hostname, first_job_id); } else first_job_id = 1; /* * See if we only want to see jobs for a specific user... */ username = NULL; if ((attr = ippFindAttribute(client->request, "my-jobs", IPP_TAG_BOOLEAN)) != NULL) { int my_jobs = ippGetBoolean(attr, 0); fprintf(stderr, "%s Get-Jobs my-jobs=%s\n", client->hostname, my_jobs ? "true" : "false"); if (my_jobs) { if ((attr = ippFindAttribute(client->request, "requesting-user-name", IPP_TAG_NAME)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Need requesting-user-name with my-jobs."); return; } username = ippGetString(attr, 0, NULL); fprintf(stderr, "%s Get-Jobs requesting-user-name=\"%s\"\n", client->hostname, username); } } /* * OK, build a list of jobs for this printer... */ ra = ippCreateRequestedArray(client->request); respond_ipp(client, IPP_STATUS_OK, NULL); _cupsRWLockRead(&(client->printer->rwlock)); for (count = 0, job = (ippeve_job_t *)cupsArrayFirst(client->printer->jobs); (limit <= 0 || count < limit) && job; job = (ippeve_job_t *)cupsArrayNext(client->printer->jobs)) { /* * Filter out jobs that don't match... */ if ((job_comparison < 0 && job->state > job_state) || (job_comparison == 0 && job->state != job_state) || (job_comparison > 0 && job->state < job_state) || job->id < first_job_id || (username && job->username && strcasecmp(username, job->username))) continue; if (count > 0) ippAddSeparator(client->response); count ++; copy_job_attributes(client, job, ra); } cupsArrayDelete(ra); _cupsRWUnlock(&(client->printer->rwlock)); } /* * 'ipp_get_printer_attributes()' - Get the attributes for a printer object. */ static void ipp_get_printer_attributes( ippeve_client_t *client) /* I - Client */ { cups_array_t *ra; /* Requested attributes array */ ippeve_printer_t *printer; /* Printer */ /* * Send the attributes... */ ra = ippCreateRequestedArray(client->request); printer = client->printer; respond_ipp(client, IPP_STATUS_OK, NULL); _cupsRWLockRead(&(printer->rwlock)); copy_attributes(client->response, printer->attrs, ra, IPP_TAG_ZERO, IPP_TAG_CUPS_CONST); if (!ra || cupsArrayFind(ra, "printer-config-change-date-time")) ippAddDate(client->response, IPP_TAG_PRINTER, "printer-config-change-date-time", ippTimeToDate(printer->config_time)); if (!ra || cupsArrayFind(ra, "printer-config-change-time")) ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-config-change-time", (int)(printer->config_time - printer->start_time)); if (!ra || cupsArrayFind(ra, "printer-current-time")) ippAddDate(client->response, IPP_TAG_PRINTER, "printer-current-time", ippTimeToDate(time(NULL))); if (!ra || cupsArrayFind(ra, "printer-icons")) { char uris[3][1024]; /* Buffers for URIs */ const char *values[3]; /* Values for attribute */ httpAssembleURI(HTTP_URI_CODING_ALL, uris[0], sizeof(uris[0]), WEB_SCHEME, NULL, client->host_field, client->host_port, "/icon-sm.png"); httpAssembleURI(HTTP_URI_CODING_ALL, uris[1], sizeof(uris[1]), WEB_SCHEME, NULL, client->host_field, client->host_port, "/icon.png"); httpAssembleURI(HTTP_URI_CODING_ALL, uris[2], sizeof(uris[2]), WEB_SCHEME, NULL, client->host_field, client->host_port, "/icon-lg.png"); values[0] = uris[0]; values[1] = uris[1]; values[2] = uris[2]; ippAddStrings(client->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-icons", 3, NULL, values); } if (!ra || cupsArrayFind(ra, "printer-more-info")) { char uri[1024]; /* URI value */ httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), WEB_SCHEME, NULL, client->host_field, client->host_port, "/"); ippAddString(client->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-more-info", NULL, uri); } if (!ra || cupsArrayFind(ra, "printer-state")) ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", (int)printer->state); if (!ra || cupsArrayFind(ra, "printer-state-change-date-time")) ippAddDate(client->response, IPP_TAG_PRINTER, "printer-state-change-date-time", ippTimeToDate(printer->state_time)); if (!ra || cupsArrayFind(ra, "printer-state-change-time")) ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-state-change-time", (int)(printer->state_time - printer->start_time)); if (!ra || cupsArrayFind(ra, "printer-state-message")) { static const char * const messages[] = { "Idle.", "Printing.", "Stopped." }; ippAddString(client->response, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-state-message", NULL, messages[printer->state - IPP_PSTATE_IDLE]); } if (!ra || cupsArrayFind(ra, "printer-state-reasons")) { if (printer->state_reasons == IPPEVE_PREASON_NONE) { ippAddString(client->response, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "printer-state-reasons", NULL, "none"); } else { ipp_attribute_t *attr = NULL; /* printer-state-reasons */ ippeve_preason_t bit; /* Reason bit */ int i; /* Looping var */ char reason[32]; /* Reason string */ for (i = 0, bit = 1; i < (int)(sizeof(ippeve_preason_strings) / sizeof(ippeve_preason_strings[0])); i ++, bit *= 2) { if (printer->state_reasons & bit) { snprintf(reason, sizeof(reason), "%s-%s", ippeve_preason_strings[i], printer->state == IPP_PSTATE_IDLE ? "report" : printer->state == IPP_PSTATE_PROCESSING ? "warning" : "error"); if (attr) ippSetString(client->response, &attr, ippGetCount(attr), reason); else attr = ippAddString(client->response, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-state-reasons", NULL, reason); } } } } if (!ra || cupsArrayFind(ra, "printer-strings-uri")) { char uri[1024]; /* URI value */ httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), WEB_SCHEME, NULL, client->host_field, client->host_port, "/en.strings"); ippAddString(client->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-strings-uri", NULL, uri); } if (!ra || cupsArrayFind(ra, "printer-supply-info-uri")) { char uri[1024]; /* URI value */ httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), WEB_SCHEME, NULL, client->host_field, client->host_port, "/supplies"); ippAddString(client->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-supply-info-uri", NULL, uri); } if (!ra || cupsArrayFind(ra, "printer-up-time")) ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-up-time", (int)(time(NULL) - printer->start_time)); if (!ra || cupsArrayFind(ra, "printer-uri-supported")) { char uris[2][1024]; /* Buffers for URIs */ const char *values[2]; /* Values for attribute */ int num_values = 0; /* Number of values */ httpAssembleURI(HTTP_URI_CODING_ALL, uris[0], sizeof(uris[0]), "ipp", NULL, client->host_field, client->host_port, "/ipp/print"); values[num_values ++] = uris[0]; #ifdef HAVE_TLS httpAssembleURI(HTTP_URI_CODING_ALL, uris[1], sizeof(uris[1]), "ipps", NULL, client->host_field, client->host_port, "/ipp/print"); values[num_values ++] = uris[1]; #endif /* HAVE_TLS */ ippAddStrings(client->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-uri-supported", num_values, NULL, values); } if (!ra || cupsArrayFind(ra, "queued-job-count")) ippAddInteger(client->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "queued-job-count", printer->active_job && printer->active_job->state < IPP_JSTATE_CANCELED); _cupsRWUnlock(&(printer->rwlock)); cupsArrayDelete(ra); } /* * 'ipp_identify_printer()' - Beep or display a message. */ static void ipp_identify_printer( ippeve_client_t *client) /* I - Client */ { ipp_attribute_t *actions, /* identify-actions */ *message; /* message */ actions = ippFindAttribute(client->request, "identify-actions", IPP_TAG_KEYWORD); message = ippFindAttribute(client->request, "message", IPP_TAG_TEXT); if (!actions || ippContainsString(actions, "sound")) { #ifdef __APPLE__ pid_t pid; /* Process ID for "afplay" utility */ static const char * const afplay[3] = { /* Arguments for "afplay" utility */ "/usr/bin/afplay", "/System/Library/Sounds/Ping.aiff", NULL }; posix_spawn(&pid, afplay[0], NULL, NULL, (char **)afplay, NULL); #else putchar(0x07); fflush(stdout); #endif /* __APPLE__ */ } if (ippContainsString(actions, "display")) printf("IDENTIFY from %s: %s\n", client->hostname, message ? ippGetString(message, 0, NULL) : "No message supplied"); respond_ipp(client, IPP_STATUS_OK, NULL); } /* * 'ipp_print_job()' - Create a job object with an attached document. */ static void ipp_print_job(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* New job */ /* * Validate print job attributes... */ if (!valid_job_attributes(client)) { flush_document_data(client); return; } /* * Do we have a file to print? */ if (!have_document_data(client)) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "No file in request."); return; } /* * Create the job... */ if ((job = create_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BUSY, "Currently printing another job."); return; } /* * Then finish getting the document data and process things... */ finish_document_data(client, job); } /* * 'ipp_print_uri()' - Create a job object with a referenced document. */ static void ipp_print_uri(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* New job */ /* * Validate print job attributes... */ if (!valid_job_attributes(client)) { flush_document_data(client); return; } /* * Create the job... */ if ((job = create_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BUSY, "Currently printing another job."); return; } /* * Then finish getting the document data and process things... */ finish_document_uri(client, job); } /* * 'ipp_send_document()' - Add an attached document to a job object created with * Create-Job. */ static void ipp_send_document( ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job information */ ipp_attribute_t *attr; /* Current attribute */ int have_data; /* Have document data? */ /* * Get the job... */ if ((job = find_job(client)) == NULL) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "Job does not exist."); return; } /* * See if we already have a document for this job or the job has already * in a terminating state... */ have_data = have_document_data(client); if ((job->filename || job->fd >= 0) && have_data) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, "Multiple document jobs are not supported."); return; } else if (job->state > IPP_JSTATE_HELD && have_data) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job is not in a pending state."); return; } /* * Make sure we have the "last-document" operation attribute... */ if ((attr = ippFindAttribute(client->request, "last-document", IPP_TAG_ZERO)) == NULL) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Missing required last-document attribute."); return; } else if (ippGetGroupTag(attr) != IPP_TAG_OPERATION) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "The last-document attribute is not in the operation group."); return; } else if (ippGetValueTag(attr) != IPP_TAG_BOOLEAN || ippGetCount(attr) != 1) { flush_document_data(client); respond_unsupported(client, attr); return; } /* * Validate document attributes... */ if (have_data && !valid_doc_attributes(client)) { flush_document_data(client); return; } if (!have_data && !job->filename) job->state = IPP_JSTATE_ABORTED; /* * Then finish getting the document data and process things... */ _cupsRWLockWrite(&(client->printer->rwlock)); copy_attributes(job->attrs, client->request, NULL, IPP_TAG_JOB, 0); if ((attr = ippFindAttribute(job->attrs, "document-format-detected", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else if ((attr = ippFindAttribute(job->attrs, "document-format-supplied", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else job->format = "application/octet-stream"; _cupsRWUnlock(&(client->printer->rwlock)); if (have_data) finish_document_data(client, job); } /* * 'ipp_send_uri()' - Add a referenced document to a job object created with * Create-Job. */ static void ipp_send_uri(ippeve_client_t *client) /* I - Client */ { ippeve_job_t *job; /* Job information */ ipp_attribute_t *attr; /* Current attribute */ /* * Get the job... */ if ((job = find_job(client)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "Job does not exist."); return; } /* * See if we already have a document for this job or the job has already * in a non-terminating state... */ if (job->filename || job->fd >= 0) { respond_ipp(client, IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, "Multiple document jobs are not supported."); return; } else if (job->state > IPP_JSTATE_HELD) { flush_document_data(client); respond_ipp(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Job is not in a pending state."); return; } if ((attr = ippFindAttribute(client->request, "last-document", IPP_TAG_ZERO)) == NULL) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Missing required last-document attribute."); return; } else if (ippGetGroupTag(attr) != IPP_TAG_OPERATION) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "The last-document attribute is not in the operation group."); return; } else if (ippGetValueTag(attr) != IPP_TAG_BOOLEAN || ippGetCount(attr) != 1) { respond_unsupported(client, attr); return; } /* * Validate document attributes... */ if (!valid_doc_attributes(client)) { flush_document_data(client); return; } /* * Then finish getting the document data and process things... */ _cupsRWLockWrite(&(client->printer->rwlock)); copy_attributes(job->attrs, client->request, NULL, IPP_TAG_JOB, 0); if ((attr = ippFindAttribute(job->attrs, "document-format-detected", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else if ((attr = ippFindAttribute(job->attrs, "document-format-supplied", IPP_TAG_MIMETYPE)) != NULL) job->format = ippGetString(attr, 0, NULL); else job->format = "application/octet-stream"; _cupsRWUnlock(&(client->printer->rwlock)); finish_document_uri(client, job); } /* * 'ipp_validate_job()' - Validate job creation attributes. */ static void ipp_validate_job(ippeve_client_t *client) /* I - Client */ { if (valid_job_attributes(client)) respond_ipp(client, IPP_STATUS_OK, NULL); } /* * 'ippserver_attr_cb()' - Determine whether an attribute should be loaded. */ static int /* O - 1 to use, 0 to ignore */ ippserver_attr_cb( _ipp_file_t *f, /* I - IPP file */ void *user_data, /* I - User data pointer (unused) */ const char *attr) /* I - Attribute name */ { int i, /* Current element */ result; /* Result of comparison */ static const char * const ignored[] = { /* Ignored attributes */ "attributes-charset", "attributes-natural-language", "charset-configured", "charset-supported", "device-service-count", "device-uuid", "document-format-varying-attributes", "generated-natural-language-supported", "identify-actions-default", "identify-actions-supported", "ipp-features-supported", "ipp-versions-supproted", "ippget-event-life", "job-hold-until-supported", "job-hold-until-time-supported", "job-ids-supported", "job-k-octets-supported", "job-settable-attributes-supported", "multiple-document-jobs-supported", "multiple-operation-time-out", "multiple-operation-time-out-action", "natural-language-configured", "notify-attributes-supported", "notify-events-default", "notify-events-supported", "notify-lease-duration-default", "notify-lease-duration-supported", "notify-max-events-supported", "notify-pull-method-supported", "operations-supported", "printer-alert", "printer-alert-description", "printer-camera-image-uri", "printer-charge-info", "printer-charge-info-uri", "printer-config-change-date-time", "printer-config-change-time", "printer-current-time", "printer-detailed-status-messages", "printer-dns-sd-name", "printer-fax-log-uri", "printer-get-attributes-supported", "printer-icons", "printer-id", "printer-info", "printer-is-accepting-jobs", "printer-message-date-time", "printer-message-from-operator", "printer-message-time", "printer-more-info", "printer-service-type", "printer-settable-attributes-supported", "printer-state", "printer-state-message", "printer-state-reasons", "printer-static-resource-directory-uri", "printer-static-resource-k-octets-free", "printer-static-resource-k-octets-supported", "printer-strings-languages-supported", "printer-strings-uri", "printer-supply-info-uri", "printer-up-time", "printer-uri-supported", "printer-xri-supported", "queued-job-count", "reference-uri-scheme-supported", "uri-authentication-supported", "uri-security-supported", "which-jobs-supported", "xri-authentication-supported", "xri-security-supported", "xri-uri-scheme-supported" }; (void)f; (void)user_data; for (i = 0, result = 1; i < (int)(sizeof(ignored) / sizeof(ignored[0])); i ++) { if ((result = strcmp(attr, ignored[i])) <= 0) break; } return (result != 0); } /* * 'ippserver_error_cb()' - Log an error message. */ static int /* O - 1 to continue, 0 to stop */ ippserver_error_cb( _ipp_file_t *f, /* I - IPP file data */ void *user_data, /* I - User data pointer (unused) */ const char *error) /* I - Error message */ { (void)f; (void)user_data; _cupsLangPrintf(stderr, "%s\n", error); return (1); } /* * 'ippserver_token_cb()' - Process ippserver-specific config file tokens. */ static int /* O - 1 to continue, 0 to stop */ ippserver_token_cb( _ipp_file_t *f, /* I - IPP file data */ _ipp_vars_t *vars, /* I - IPP variables */ void *user_data, /* I - User data pointer (unused) */ const char *token) /* I - Current token */ { (void)vars; (void)user_data; if (!token) { /* * NULL token means do the initial setup - create an empty IPP message and * return... */ f->attrs = ippNew(); f->group_tag = IPP_TAG_PRINTER; } else { _cupsLangPrintf(stderr, _("Unknown directive \"%s\" on line %d of \"%s\" ignored."), token, f->linenum, f->filename); } return (1); } /* * 'load_ippserver_attributes()' - Load IPP attributes from an ippserver file. */ static ipp_t * /* O - IPP attributes or `NULL` on error */ load_ippserver_attributes( const char *servername, /* I - Server name or `NULL` for default */ int serverport, /* I - Server port number */ const char *filename, /* I - ippserver attribute filename */ cups_array_t *docformats) /* I - document-format-supported values */ { ipp_t *attrs; /* IPP attributes */ _ipp_vars_t vars; /* IPP variables */ char temp[256]; /* Temporary string */ (void)docformats; /* for now */ /* * Setup callbacks and variables for the printer configuration file... * * The following additional variables are supported: * * - SERVERNAME: The host name of the server. * - SERVERPORT: The default port of the server. */ _ippVarsInit(&vars, (_ipp_fattr_cb_t)ippserver_attr_cb, (_ipp_ferror_cb_t)ippserver_error_cb, (_ipp_ftoken_cb_t)ippserver_token_cb); if (servername) { _ippVarsSet(&vars, "SERVERNAME", servername); } else { httpGetHostname(NULL, temp, sizeof(temp)); _ippVarsSet(&vars, "SERVERNAME", temp); } snprintf(temp, sizeof(temp), "%d", serverport); _ippVarsSet(&vars, "SERVERPORT", temp); /* * Load attributes and values for the printer... */ attrs = _ippFileParse(&vars, filename, NULL); /* * Free memory and return... */ _ippVarsDeinit(&vars); return (attrs); } /* * 'load_legacy_attributes()' - Load IPP attributes using the old ippserver * options. */ static ipp_t * /* O - IPP attributes or `NULL` on error */ load_legacy_attributes( const char *make, /* I - Manufacturer name */ const char *model, /* I - Model name */ int ppm, /* I - pages-per-minute */ int ppm_color, /* I - pages-per-minute-color */ int duplex, /* I - Duplex support? */ cups_array_t *docformats) /* I - document-format-supported values */ { int i; /* Looping var */ ipp_t *attrs, /* IPP attributes */ *col; /* Collection value */ ipp_attribute_t *attr; /* Current attribute */ char device_id[1024],/* printer-device-id */ *ptr, /* Pointer into device ID */ make_model[128];/* printer-make-and-model */ const char *format, /* Current document format */ *prefix; /* Prefix for device ID */ int num_media; /* Number of media */ const char * const *media; /* List of media */ int num_ready; /* Number of loaded media */ const char * const *ready; /* List of loaded media */ pwg_media_t *pwg; /* PWG media size information */ static const char * const media_supported[] = { /* media-supported values */ "na_letter_8.5x11in", /* Letter */ "na_legal_8.5x14in", /* Legal */ "iso_a4_210x297mm", /* A4 */ "na_number-10_4.125x9.5in", /* #10 Envelope */ "iso_dl_110x220mm" /* DL Envelope */ }; static const char * const media_supported_color[] = { /* media-supported values */ "na_letter_8.5x11in", /* Letter */ "na_legal_8.5x14in", /* Legal */ "iso_a4_210x297mm", /* A4 */ "na_number-10_4.125x9.5in", /* #10 Envelope */ "iso_dl_110x220mm", /* DL Envelope */ "na_index-3x5_3x5in", /* Photo 3x5 */ "oe_photo-l_3.5x5in", /* Photo L */ "na_index-4x6_4x6in", /* Photo 4x6 */ "iso_a6_105x148mm", /* A6 */ "na_5x7_5x7in", /* Photo 5x7 aka 2L */ "iso_a5_148x210mm", /* A5 */ }; static const char * const media_ready[] = { /* media-ready values */ "na_letter_8.5x11in", /* Letter */ "na_number-10_4.125x9.5in" /* #10 */ }; static const char * const media_ready_color[] = { /* media-ready values */ "na_letter_8.5x11in", /* Letter */ "na_index-4x6_4x6in" /* Photo 4x6 */ }; static const char * const media_source_supported[] = { /* media-source-supported values */ "auto", "main", "manual", "by-pass-tray" /* AKA multi-purpose tray */ }; static const char * const media_source_supported_color[] = { /* media-source-supported values */ "auto", "main", "photo" }; static const char * const media_type_supported[] = { /* media-type-supported values */ "auto", "cardstock", "envelope", "labels", "other", "stationery", "stationery-letterhead", "transparency" }; static const char * const media_type_supported_color[] = { /* media-type-supported values */ "auto", "cardstock", "envelope", "labels", "other", "stationery", "stationery-letterhead", "transparency", "photographic-glossy", "photographic-high-gloss", "photographic-matte", "photographic-satin", "photographic-semi-gloss" }; static const int media_bottom_margin_supported[] = { /* media-bottom-margin-supported values */ 635 /* 1/4" */ }; static const int media_bottom_margin_supported_color[] = { /* media-bottom/top-margin-supported values */ 0, /* Borderless */ 1168 /* 0.46" (common HP inkjet bottom margin) */ }; static const int media_lr_margin_supported[] = { /* media-left/right-margin-supported values */ 340, /* 3.4mm (historical HP PCL A4 margin) */ 635 /* 1/4" */ }; static const int media_lr_margin_supported_color[] = { /* media-left/right-margin-supported values */ 0, /* Borderless */ 340, /* 3.4mm (historical HP PCL A4 margin) */ 635 /* 1/4" */ }; static const int media_top_margin_supported[] = { /* media-top-margin-supported values */ 635 /* 1/4" */ }; static const int media_top_margin_supported_color[] = { /* media-top/top-margin-supported values */ 0, /* Borderless */ 102 /* 0.04" (common HP inkjet top margin */ }; static const int orientation_requested_supported[4] = { /* orientation-requested-supported values */ IPP_ORIENT_PORTRAIT, IPP_ORIENT_LANDSCAPE, IPP_ORIENT_REVERSE_LANDSCAPE, IPP_ORIENT_REVERSE_PORTRAIT }; static const char * const overrides_supported[] = { /* overrides-supported values */ "document-numbers", "media", "media-col", "orientation-requested", "pages" }; static const char * const print_color_mode_supported[] = { /* print-color-mode-supported values */ "monochrome" }; static const char * const print_color_mode_supported_color[] = { /* print-color-mode-supported values */ "auto", "color", "monochrome" }; static const int print_quality_supported[] = { /* print-quality-supported values */ IPP_QUALITY_DRAFT, IPP_QUALITY_NORMAL, IPP_QUALITY_HIGH }; static const char * const printer_input_tray[] = { /* printer-input-tray values */ "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=-2;level=-2;status=0;name=auto", "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=250;level=100;status=0;name=main", "type=sheetFeedManual;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=-2;status=0;name=manual", "type=sheetFeedAutoNonRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=25;level=-2;status=0;name=by-pass-tray" }; static const char * const printer_input_tray_color[] = { /* printer-input-tray values */ "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=-2;level=-2;status=0;name=auto", "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=250;level=-2;status=0;name=main", "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=25;level=-2;status=0;name=photo" }; static const char * const printer_supply[] = { /* printer-supply values */ "index=1;class=receptacleThatIsFilled;type=wasteToner;unit=percent;" "maxcapacity=100;level=25;colorantname=unknown;", "index=2;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=75;colorantname=black;" }; static const char * const printer_supply_color[] = { /* printer-supply values */ "index=1;class=receptacleThatIsFilled;type=wasteInk;unit=percent;" "maxcapacity=100;level=25;colorantname=unknown;", "index=2;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=75;colorantname=black;", "index=3;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=50;colorantname=cyan;", "index=4;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=33;colorantname=magenta;", "index=5;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=67;colorantname=yellow;" }; static const char * const printer_supply_description[] = { /* printer-supply-description values */ "Toner Waste Tank", "Black Toner" }; static const char * const printer_supply_description_color[] = { /* printer-supply-description values */ "Ink Waste Tank", "Black Ink", "Cyan Ink", "Magenta Ink", "Yellow Ink" }; static const int pwg_raster_document_resolution_supported[] = { 300, 600 }; static const char * const pwg_raster_document_type_supported[] = { "black_1", "sgray_8" }; static const char * const pwg_raster_document_type_supported_color[] = { "black_1", "sgray_8", "srgb_8", "srgb_16" }; static const char * const sides_supported[] = { /* sides-supported values */ "one-sided", "two-sided-long-edge", "two-sided-short-edge" }; static const char * const urf_supported[] = { /* urf-supported values */ "CP1", "IS1-4-5-19", "MT1-2-3-4-5-6", "RS600", "V1.4", "W8" }; static const char * const urf_supported_color[] = { /* urf-supported values */ "CP1", "IS1-4-5-7-19", "MT1-2-3-4-5-6-8-9-10-11-12-13", "RS600", "SRGB24", "V1.4", "W8" }; static const char * const urf_supported_color_duplex[] = { /* urf-supported values */ "CP1", "IS1-4-5-7-19", "MT1-2-3-4-5-6-8-9-10-11-12-13", "RS600", "SRGB24", "V1.4", "W8", "DM3" }; static const char * const urf_supported_duplex[] = { /* urf-supported values */ "CP1", "IS1-4-5-19", "MT1-2-3-4-5-6", "RS600", "V1.4", "W8", "DM1" }; attrs = ippNew(); if (ppm_color > 0) { num_media = (int)(sizeof(media_supported_color) / sizeof(media_supported_color[0])); media = media_supported_color; num_ready = (int)(sizeof(media_ready_color) / sizeof(media_ready_color[0])); ready = media_ready_color; } else { num_media = (int)(sizeof(media_supported) / sizeof(media_supported[0])); media = media_supported; num_ready = (int)(sizeof(media_ready) / sizeof(media_ready[0])); ready = media_ready; } /* color-supported */ ippAddBoolean(attrs, IPP_TAG_PRINTER, "color-supported", ppm_color > 0); /* copies-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "copies-default", 1); /* copies-supported */ ippAddRange(attrs, IPP_TAG_PRINTER, "copies-supported", 1, (cupsArrayFind(docformats, (void *)"application/pdf") != NULL || cupsArrayFind(docformats, (void *)"image/jpeg") != NULL) ? 999 : 1); /* document-password-supported */ if (cupsArrayFind(docformats, (void *)"application/pdf")) ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "document-password-supported", 1023); /* finishing-template-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishing-template-supported", NULL, "none"); /* finishings-col-database */ col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishing-template", NULL, "none"); ippAddCollection(attrs, IPP_TAG_PRINTER, "finishings-col-database", col); ippDelete(col); /* finishings-col-default */ col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishing-template", NULL, "none"); ippAddCollection(attrs, IPP_TAG_PRINTER, "finishings-col-default", col); ippDelete(col); /* finishings-col-ready */ col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishing-template", NULL, "none"); ippAddCollection(attrs, IPP_TAG_PRINTER, "finishings-col-ready", col); ippDelete(col); /* finishings-col-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishings-col-supported", NULL, "finishing-template"); /* finishings-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-default", IPP_FINISHINGS_NONE); /* finishings-ready */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-ready", IPP_FINISHINGS_NONE); /* finishings-supported */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-supported", IPP_FINISHINGS_NONE); /* media-bottom-margin-supported */ if (ppm_color > 0) ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin-supported", (int)(sizeof(media_bottom_margin_supported) / sizeof(media_bottom_margin_supported[0])), media_bottom_margin_supported); else ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin-supported", (int)(sizeof(media_bottom_margin_supported_color) / sizeof(media_bottom_margin_supported_color[0])), media_bottom_margin_supported_color); /* media-col-database and media-col-default */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "media-col-database", num_media, NULL); for (i = 0; i < num_media; i ++) { int bottom, left, /* media-xxx-margins */ right, top; const char *source; /* media-source, if any */ pwg = pwgMediaForPWG(media[i]); if (pwg->width < 21000 && pwg->length < 21000) { source = "photo"; /* Photo size media from photo tray */ bottom = /* Borderless margins */ left = right = top = 0; } else if (pwg->width < 21000) { source = "by-pass-tray"; /* Envelopes from multi-purpose tray */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are standard */ right = media_lr_margin_supported[1]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } else if (pwg->width == 21000) { source = NULL; /* A4 from any tray */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are reduced */ right = media_lr_margin_supported[0]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } else { source = NULL; /* Other size media from any tray */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are standard */ right = media_lr_margin_supported[1]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } col = create_media_col(media[i], source, NULL, pwg->width, pwg->length, bottom, left, right, top); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* media-col-default */ pwg = pwgMediaForPWG(ready[0]); if (pwg->width == 21000) col = create_media_col(ready[0], "main", "stationery", pwg->width, pwg->length, ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0], media_lr_margin_supported[0], media_lr_margin_supported[0], ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]); else col = create_media_col(ready[0], "main", "stationery", pwg->width, pwg->length, ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0], media_lr_margin_supported[1], media_lr_margin_supported[1], ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]); ippAddCollection(attrs, IPP_TAG_PRINTER, "media-col-default", col); ippDelete(col); /* media-col-ready */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "media-col-ready", num_ready, NULL); for (i = 0; i < num_ready; i ++) { int bottom, left, /* media-xxx-margins */ right, top; const char *source, /* media-source */ *type; /* media-type */ pwg = pwgMediaForPWG(ready[i]); if (pwg->width < 21000 && pwg->length < 21000) { source = "photo"; /* Photo size media from photo tray */ type = "photographic-glossy"; /* Glossy photo paper */ bottom = /* Borderless margins */ left = right = top = 0; } else if (pwg->width < 21000) { source = "by-pass-tray"; /* Envelopes from multi-purpose tray */ type = "envelope"; /* Envelope */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are standard */ right = media_lr_margin_supported[1]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } else if (pwg->width == 21000) { source = "main"; /* A4 from main tray */ type = "stationery"; /* Plain paper */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are reduced */ right = media_lr_margin_supported[0]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } else { source = "main"; /* A4 from main tray */ type = "stationery"; /* Plain paper */ bottom = ppm_color > 0 ? media_bottom_margin_supported_color[1] : media_bottom_margin_supported[0]; left = /* Left/right margins are standard */ right = media_lr_margin_supported[1]; top = ppm_color > 0 ? media_top_margin_supported_color[1] : media_top_margin_supported[0]; } col = create_media_col(ready[i], source, type, pwg->width, pwg->length, bottom, left, right, top); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* media-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-default", NULL, media[0]); /* media-left/right-margin-supported */ if (ppm_color > 0) { ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin-supported", (int)(sizeof(media_lr_margin_supported_color) / sizeof(media_lr_margin_supported_color[0])), media_lr_margin_supported_color); ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin-supported", (int)(sizeof(media_lr_margin_supported_color) / sizeof(media_lr_margin_supported_color[0])), media_lr_margin_supported_color); } else { ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin-supported", (int)(sizeof(media_lr_margin_supported) / sizeof(media_lr_margin_supported[0])), media_lr_margin_supported); ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin-supported", (int)(sizeof(media_lr_margin_supported) / sizeof(media_lr_margin_supported[0])), media_lr_margin_supported); } /* media-ready */ ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-ready", num_ready, NULL, ready); /* media-supported */ ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-supported", num_media, NULL, media); /* media-size-supported */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "media-size-supported", num_media, NULL); for (i = 0; i < num_media; i ++) { pwg = pwgMediaForPWG(media[i]); col = create_media_size(pwg->width, pwg->length); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* media-source-supported */ if (ppm_color > 0) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-source-supported", (int)(sizeof(media_source_supported_color) / sizeof(media_source_supported_color[0])), NULL, media_source_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-source-supported", (int)(sizeof(media_source_supported) / sizeof(media_source_supported[0])), NULL, media_source_supported); /* media-top-margin-supported */ if (ppm_color > 0) ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin-supported", (int)(sizeof(media_top_margin_supported) / sizeof(media_top_margin_supported[0])), media_top_margin_supported); else ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin-supported", (int)(sizeof(media_top_margin_supported_color) / sizeof(media_top_margin_supported_color[0])), media_top_margin_supported_color); /* media-type-supported */ if (ppm_color > 0) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-type-supported", (int)(sizeof(media_type_supported_color) / sizeof(media_type_supported_color[0])), NULL, media_type_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-type-supported", (int)(sizeof(media_type_supported) / sizeof(media_type_supported[0])), NULL, media_type_supported); /* orientation-requested-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-default", IPP_ORIENT_PORTRAIT); /* orientation-requested-supported */ if (cupsArrayFind(docformats, (void *)"application/pdf") || cupsArrayFind(docformats, (void *)"image/jpeg")) ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-supported", (int)(sizeof(orientation_requested_supported) / sizeof(orientation_requested_supported[0])), orientation_requested_supported); else ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-supported", IPP_ORIENT_PORTRAIT); /* output-bin-default */ if (ppm_color > 0) ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-default", NULL, "face-up"); else ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-default", NULL, "face-down"); /* output-bin-supported */ if (ppm_color > 0) ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-supported", NULL, "face-up"); else ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-supported", NULL, "face-down"); /* overrides-supported */ if (cupsArrayFind(docformats, (void *)"application/pdf")) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "overrides-supported", (int)(sizeof(overrides_supported) / sizeof(overrides_supported[0])), NULL, overrides_supported); /* page-ranges-supported */ ippAddBoolean(attrs, IPP_TAG_PRINTER, "page-ranges-supported", cupsArrayFind(docformats, (void *)"application/pdf") != NULL); /* pages-per-minute */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute", ppm); /* pages-per-minute-color */ if (ppm_color > 0) ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute-color", ppm_color); /* print-color-mode-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-default", NULL, ppm_color > 0 ? "auto" : "monochrome"); /* print-color-mode-supported */ if (ppm_color > 0) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-supported", (int)(sizeof(print_color_mode_supported_color) / sizeof(print_color_mode_supported_color[0])), NULL, print_color_mode_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-supported", (int)(sizeof(print_color_mode_supported) / sizeof(print_color_mode_supported[0])), NULL, print_color_mode_supported); /* print-content-optimize-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-content-optimize-default", NULL, "auto"); /* print-content-optimize-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-content-optimize-supported", NULL, "auto"); /* print-quality-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-default", IPP_QUALITY_NORMAL); /* print-quality-supported */ ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-supported", (int)(sizeof(print_quality_supported) / sizeof(print_quality_supported[0])), print_quality_supported); /* print-rendering-intent-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-rendering-intent-default", NULL, "auto"); /* print-rendering-intent-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-rendering-intent-supported", NULL, "auto"); /* printer-device-id */ snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;", make, model); ptr = device_id + strlen(device_id); prefix = "CMD:"; for (format = (const char *)cupsArrayFirst(docformats); format; format = (const char *)cupsArrayNext(docformats)) { if (!strcasecmp(format, "application/pdf")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sPDF", prefix); else if (!strcasecmp(format, "application/postscript")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sPS", prefix); else if (!strcasecmp(format, "application/vnd.hp-PCL")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sPCL", prefix); else if (!strcasecmp(format, "image/jpeg")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sJPEG", prefix); else if (!strcasecmp(format, "image/png")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sPNG", prefix); else if (!strcasecmp(format, "image/pwg-raster")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sPWG", prefix); else if (!strcasecmp(format, "image/urf")) snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%sURF", prefix); else continue; ptr += strlen(ptr); prefix = ","; } if (ptr < (device_id + sizeof(device_id) - 1)) { *ptr++ = ';'; *ptr = '\0'; } ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-device-id", NULL, device_id); /* printer-input-tray */ if (ppm_color > 0) { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-input-tray", printer_input_tray_color[0], (int)strlen(printer_input_tray_color[0])); for (i = 1; i < (int)(sizeof(printer_input_tray_color) / sizeof(printer_input_tray_color[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_input_tray_color[i], (int)strlen(printer_input_tray_color[i])); } else { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-input-tray", printer_input_tray[0], (int)strlen(printer_input_tray[0])); for (i = 1; i < (int)(sizeof(printer_input_tray) / sizeof(printer_input_tray[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_input_tray[i], (int)strlen(printer_input_tray[i])); } /* printer-make-and-model */ snprintf(make_model, sizeof(make_model), "%s %s", make, model); ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, make_model); /* printer-resolution-default */ ippAddResolution(attrs, IPP_TAG_PRINTER, "printer-resolution-default", IPP_RES_PER_INCH, 600, 600); /* printer-resolution-supported */ ippAddResolution(attrs, IPP_TAG_PRINTER, "printer-resolution-supported", IPP_RES_PER_INCH, 600, 600); /* printer-supply and printer-supply-description */ if (ppm_color > 0) { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-supply", printer_supply_color[0], (int)strlen(printer_supply_color[0])); for (i = 1; i < (int)(sizeof(printer_supply_color) / sizeof(printer_supply_color[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_supply_color[i], (int)strlen(printer_supply_color[i])); ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-supply-description", (int)(sizeof(printer_supply_description_color) / sizeof(printer_supply_description_color[0])), NULL, printer_supply_description_color); } else { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-supply", printer_supply[0], (int)strlen(printer_supply[0])); for (i = 1; i < (int)(sizeof(printer_supply) / sizeof(printer_supply[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_supply[i], (int)strlen(printer_supply[i])); ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-supply-description", (int)(sizeof(printer_supply_description) / sizeof(printer_supply_description[0])), NULL, printer_supply_description); } /* pwg-raster-document-xxx-supported */ if (cupsArrayFind(docformats, (void *)"image/pwg-raster")) { ippAddResolutions(attrs, IPP_TAG_PRINTER, "pwg-raster-document-resolution-supported", (int)(sizeof(pwg_raster_document_resolution_supported) / sizeof(pwg_raster_document_resolution_supported[0])), IPP_RES_PER_INCH, pwg_raster_document_resolution_supported, pwg_raster_document_resolution_supported); if (ppm_color > 0 && duplex) ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-sheet-back", NULL, "rotated"); else if (duplex) ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-sheet-back", NULL, "normal"); if (ppm_color > 0) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-type-supported", (int)(sizeof(pwg_raster_document_type_supported_color) / sizeof(pwg_raster_document_type_supported_color[0])), NULL, pwg_raster_document_type_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-type-supported", (int)(sizeof(pwg_raster_document_type_supported) / sizeof(pwg_raster_document_type_supported[0])), NULL, pwg_raster_document_type_supported); } /* sides-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-default", NULL, "one-sided"); /* sides-supported */ if (duplex) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-supported", (int)(sizeof(sides_supported) / sizeof(sides_supported[0])), NULL, sides_supported); else ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-supported", NULL, "one-sided"); /* urf-supported */ if (cupsArrayFind(docformats, (void *)"image/urf")) { if (ppm_color > 0) { if (duplex) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", (int)(sizeof(urf_supported_color_duplex) / sizeof(urf_supported_color_duplex[0])), NULL, urf_supported_color_duplex); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", (int)(sizeof(urf_supported_color) / sizeof(urf_supported_color[0])), NULL, urf_supported_color); } else if (duplex) { ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", (int)(sizeof(urf_supported_duplex) / sizeof(urf_supported_duplex[0])), NULL, urf_supported_duplex); } else { ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", (int)(sizeof(urf_supported) / sizeof(urf_supported[0])), NULL, urf_supported); } } return (attrs); } #if !CUPS_LITE /* * 'load_ppd_attributes()' - Load IPP attributes from a PPD file. */ static ipp_t * /* O - IPP attributes or `NULL` on error */ load_ppd_attributes( const char *ppdfile, /* I - PPD filename */ cups_array_t *docformats) /* I - document-format-supported values */ { int i, j; /* Looping vars */ ipp_t *attrs; /* Attributes */ ipp_attribute_t *attr; /* Current attribute */ ipp_t *col; /* Current collection value */ ppd_file_t *ppd; /* PPD data */ ppd_attr_t *ppd_attr; /* PPD attribute */ ppd_choice_t *ppd_choice; /* PPD choice */ ppd_size_t *ppd_size; /* Default PPD size */ pwg_size_t *pwg_size, /* Current PWG size */ *default_size = NULL; /* Default PWG size */ const char *default_source = NULL, /* Default media source */ *default_type = NULL; /* Default media type */ pwg_map_t *pwg_map; /* Mapping from PWG to PPD keywords */ _ppd_cache_t *pc; /* PPD cache */ _pwg_finishings_t *finishings; /* Current finishings value */ const char *template; /* Current finishings-template value */ int num_margins; /* Number of media-xxx-margin-supported values */ int margins[10]; /* media-xxx-margin-supported values */ int xres, /* Default horizontal resolution */ yres; /* Default vertical resolution */ int num_urf; /* Number of urf-supported values */ const char *urf[10]; /* urf-supported values */ char urf_rs[32]; /* RS value */ static const int orientation_requested_supported[4] = { /* orientation-requested-supported values */ IPP_ORIENT_PORTRAIT, IPP_ORIENT_LANDSCAPE, IPP_ORIENT_REVERSE_LANDSCAPE, IPP_ORIENT_REVERSE_PORTRAIT }; static const char * const overrides_supported[] = { /* overrides-supported */ "document-numbers", "media", "media-col", "orientation-requested", "pages" }; static const char * const print_color_mode_supported[] = { /* print-color-mode-supported values */ "monochrome" }; static const char * const print_color_mode_supported_color[] = { /* print-color-mode-supported values */ "auto", "color", "monochrome" }; static const int print_quality_supported[] = { /* print-quality-supported values */ IPP_QUALITY_DRAFT, IPP_QUALITY_NORMAL, IPP_QUALITY_HIGH }; static const char * const printer_supply[] = { /* printer-supply values */ "index=1;class=receptacleThatIsFilled;type=wasteToner;unit=percent;" "maxcapacity=100;level=25;colorantname=unknown;", "index=2;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=75;colorantname=black;" }; static const char * const printer_supply_color[] = { /* printer-supply values */ "index=1;class=receptacleThatIsFilled;type=wasteInk;unit=percent;" "maxcapacity=100;level=25;colorantname=unknown;", "index=2;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=75;colorantname=black;", "index=3;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=50;colorantname=cyan;", "index=4;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=33;colorantname=magenta;", "index=5;class=supplyThatIsConsumed;type=ink;unit=percent;" "maxcapacity=100;level=67;colorantname=yellow;" }; static const char * const printer_supply_description[] = { /* printer-supply-description values */ "Toner Waste Tank", "Black Toner" }; static const char * const printer_supply_description_color[] = { /* printer-supply-description values */ "Ink Waste Tank", "Black Ink", "Cyan Ink", "Magenta Ink", "Yellow Ink" }; static const char * const pwg_raster_document_type_supported[] = { "black_1", "sgray_8" }; static const char * const pwg_raster_document_type_supported_color[] = { "black_1", "sgray_8", "srgb_8", "srgb_16" }; static const char * const sides_supported[] = { /* sides-supported values */ "one-sided", "two-sided-long-edge", "two-sided-short-edge" }; /* * Open the PPD file... */ if ((ppd = ppdOpenFile(ppdfile)) == NULL) { ppd_status_t status; /* Load error */ status = ppdLastError(&i); _cupsLangPrintf(stderr, _("ippeveprinter: Unable to open \"%s\": %s on line %d."), ppdfile, ppdErrorString(status), i); return (NULL); } ppdMarkDefaults(ppd); pc = _ppdCacheCreateWithPPD(ppd); if ((ppd_size = ppdPageSize(ppd, NULL)) != NULL) { /* * Look up default size... */ for (i = 0, pwg_size = pc->sizes; i < pc->num_sizes; i ++, pwg_size ++) { if (!strcmp(pwg_size->map.ppd, ppd_size->name)) { default_size = pwg_size; break; } } } if (!default_size) { /* * Default to A4 or Letter... */ for (i = 0, pwg_size = pc->sizes; i < pc->num_sizes; i ++, pwg_size ++) { if (!strcmp(pwg_size->map.ppd, "Letter") || !strcmp(pwg_size->map.ppd, "A4")) { default_size = pwg_size; break; } } if (!default_size) default_size = pc->sizes; /* Last resort: first size */ } if ((ppd_choice = ppdFindMarkedChoice(ppd, "InputSlot")) != NULL) default_source = _ppdCacheGetSource(pc, ppd_choice->choice); if ((ppd_choice = ppdFindMarkedChoice(ppd, "MediaType")) != NULL) default_source = _ppdCacheGetType(pc, ppd_choice->choice); if ((ppd_attr = ppdFindAttr(ppd, "DefaultResolution", NULL)) != NULL) { /* * Use the PPD-defined default resolution... */ if ((i = sscanf(ppd_attr->value, "%dx%d", &xres, &yres)) == 1) yres = xres; else if (i < 0) xres = yres = 300; } else { /* * Use default of 300dpi... */ xres = yres = 300; } snprintf(urf_rs, sizeof(urf_rs), "RS%d", yres < xres ? yres : xres); num_urf = 0; urf[num_urf ++] = "V1.4"; urf[num_urf ++] = "CP1"; urf[num_urf ++] = urf_rs; urf[num_urf ++] = "W8"; if (pc->sides_2sided_long) urf[num_urf ++] = "DM1"; if (ppd->color_device) urf[num_urf ++] = "SRGB24"; /* * PostScript printers accept PDF via one of the CUPS PDF to PostScript * filters, along with PostScript (of course) and JPEG... */ cupsArrayAdd(docformats, "application/pdf"); cupsArrayAdd(docformats, "application/postscript"); cupsArrayAdd(docformats, "image/jpeg"); /* * Create the attributes... */ attrs = ippNew(); /* color-supported */ ippAddBoolean(attrs, IPP_TAG_PRINTER, "color-supported", (char)ppd->color_device); /* copies-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "copies-default", 1); /* copies-supported */ ippAddRange(attrs, IPP_TAG_PRINTER, "copies-supported", 1, 999); /* document-password-supported */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "document-password-supported", 127); /* finishing-template-supported */ attr = ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template-supported", cupsArrayCount(pc->templates) + 1, NULL, NULL); ippSetString(attrs, &attr, 0, "none"); for (i = 1, template = (const char *)cupsArrayFirst(pc->templates); template; i ++, template = (const char *)cupsArrayNext(pc->templates)) ippSetString(attrs, &attr, i, template); /* finishings-col-database */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "finishings-col-database", cupsArrayCount(pc->templates) + 1, NULL); col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, "none"); ippSetCollection(attrs, &attr, 0, col); ippDelete(col); for (i = 1, template = (const char *)cupsArrayFirst(pc->templates); template; i ++, template = (const char *)cupsArrayNext(pc->templates)) { col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, template); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* finishings-col-default */ col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, "none"); ippAddCollection(attrs, IPP_TAG_PRINTER, "finishings-col-default", col); ippDelete(col); /* finishings-col-ready */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "finishings-col-ready", cupsArrayCount(pc->templates) + 1, NULL); col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, "none"); ippSetCollection(attrs, &attr, 0, col); ippDelete(col); for (i = 1, template = (const char *)cupsArrayFirst(pc->templates); template; i ++, template = (const char *)cupsArrayNext(pc->templates)) { col = ippNew(); ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, template); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* finishings-col-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "finishings-col-supported", NULL, "finishing-template"); /* finishings-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-default", IPP_FINISHINGS_NONE); /* finishings-ready */ attr = ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-ready", cupsArrayCount(pc->finishings) + 1, NULL); ippSetInteger(attrs, &attr, 0, IPP_FINISHINGS_NONE); for (i = 1, finishings = (_pwg_finishings_t *)cupsArrayFirst(pc->finishings); finishings; i ++, finishings = (_pwg_finishings_t *)cupsArrayNext(pc->finishings)) ippSetInteger(attrs, &attr, i, (int)finishings->value); /* finishings-supported */ attr = ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-supported", cupsArrayCount(pc->finishings) + 1, NULL); ippSetInteger(attrs, &attr, 0, IPP_FINISHINGS_NONE); for (i = 1, finishings = (_pwg_finishings_t *)cupsArrayFirst(pc->finishings); finishings; i ++, finishings = (_pwg_finishings_t *)cupsArrayNext(pc->finishings)) ippSetInteger(attrs, &attr, i, (int)finishings->value); /* media-bottom-margin-supported */ for (i = 0, num_margins = 0, pwg_size = pc->sizes; i < pc->num_sizes && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i ++, pwg_size ++) { for (j = 0; j < num_margins; j ++) { if (margins[j] == pwg_size->bottom) break; } if (j >= num_margins) margins[num_margins ++] = pwg_size->bottom; } for (i = 0; i < (num_margins - 1); i ++) { for (j = i + 1; j < num_margins; j ++) { if (margins[i] > margins[j]) { int mtemp = margins[i]; margins[i] = margins[j]; margins[j] = mtemp; } } } ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin-supported", num_margins, margins); /* media-col-database */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "media-col-database", pc->num_sizes, NULL); for (i = 0, pwg_size = pc->sizes; i < pc->num_sizes; i ++, pwg_size ++) { col = create_media_col(pwg_size->map.pwg, NULL, NULL, pwg_size->width, pwg_size->length, pwg_size->bottom, pwg_size->left, pwg_size->right, pwg_size->top); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* media-col-default */ col = create_media_col(default_size->map.pwg, default_source, default_type, default_size->width, default_size->length, default_size->bottom, default_size->left, default_size->right, default_size->top); ippAddCollection(attrs, IPP_TAG_PRINTER, "media-col-default", col); ippDelete(col); /* media-col-ready */ col = create_media_col(default_size->map.pwg, default_source, default_type, default_size->width, default_size->length, default_size->bottom, default_size->left, default_size->right, default_size->top); ippAddCollection(attrs, IPP_TAG_PRINTER, "media-col-ready", col); ippDelete(col); /* media-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-default", NULL, default_size->map.pwg); /* media-left-margin-supported */ for (i = 0, num_margins = 0, pwg_size = pc->sizes; i < pc->num_sizes && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i ++, pwg_size ++) { for (j = 0; j < num_margins; j ++) { if (margins[j] == pwg_size->left) break; } if (j >= num_margins) margins[num_margins ++] = pwg_size->left; } for (i = 0; i < (num_margins - 1); i ++) { for (j = i + 1; j < num_margins; j ++) { if (margins[i] > margins[j]) { int mtemp = margins[i]; margins[i] = margins[j]; margins[j] = mtemp; } } } ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin-supported", num_margins, margins); /* media-ready */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-ready", NULL, default_size->map.pwg); /* media-right-margin-supported */ for (i = 0, num_margins = 0, pwg_size = pc->sizes; i < pc->num_sizes && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i ++, pwg_size ++) { for (j = 0; j < num_margins; j ++) { if (margins[j] == pwg_size->right) break; } if (j >= num_margins) margins[num_margins ++] = pwg_size->right; } for (i = 0; i < (num_margins - 1); i ++) { for (j = i + 1; j < num_margins; j ++) { if (margins[i] > margins[j]) { int mtemp = margins[i]; margins[i] = margins[j]; margins[j] = mtemp; } } } ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin-supported", num_margins, margins); /* media-supported */ attr = ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-supported", pc->num_sizes, NULL, NULL); for (i = 0, pwg_size = pc->sizes; i < pc->num_sizes; i ++, pwg_size ++) ippSetString(attrs, &attr, i, pwg_size->map.pwg); /* media-size-supported */ attr = ippAddCollections(attrs, IPP_TAG_PRINTER, "media-size-supported", pc->num_sizes, NULL); for (i = 0, pwg_size = pc->sizes; i < pc->num_sizes; i ++, pwg_size ++) { col = create_media_size(pwg_size->width, pwg_size->length); ippSetCollection(attrs, &attr, i, col); ippDelete(col); } /* media-source-supported */ if (pc->num_sources > 0) { attr = ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-source-supported", pc->num_sources, NULL, NULL); for (i = 0, pwg_map = pc->sources; i < pc->num_sources; i ++, pwg_map ++) ippSetString(attrs, &attr, i, pwg_map->pwg); } else { ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-source-supported", NULL, "auto"); } /* media-top-margin-supported */ for (i = 0, num_margins = 0, pwg_size = pc->sizes; i < pc->num_sizes && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i ++, pwg_size ++) { for (j = 0; j < num_margins; j ++) { if (margins[j] == pwg_size->top) break; } if (j >= num_margins) margins[num_margins ++] = pwg_size->top; } for (i = 0; i < (num_margins - 1); i ++) { for (j = i + 1; j < num_margins; j ++) { if (margins[i] > margins[j]) { int mtemp = margins[i]; margins[i] = margins[j]; margins[j] = mtemp; } } } ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin-supported", num_margins, margins); /* media-type-supported */ if (pc->num_types > 0) { attr = ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-type-supported", pc->num_types, NULL, NULL); for (i = 0, pwg_map = pc->types; i < pc->num_types; i ++, pwg_map ++) ippSetString(attrs, &attr, i, pwg_map->pwg); } else { ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-type-supported", NULL, "auto"); } /* orientation-requested-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-default", IPP_ORIENT_PORTRAIT); /* orientation-requested-supported */ ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-supported", (int)(sizeof(orientation_requested_supported) / sizeof(orientation_requested_supported[0])), orientation_requested_supported); /* output-bin-default */ if (pc->num_bins > 0) ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-default", NULL, pc->bins->pwg); else ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-default", NULL, "face-down"); /* output-bin-supported */ if (pc->num_bins > 0) { attr = ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-supported", pc->num_bins, NULL, NULL); for (i = 0, pwg_map = pc->bins; i < pc->num_bins; i ++, pwg_map ++) ippSetString(attrs, &attr, i, pwg_map->pwg); } else { ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "output-bin-supported", NULL, "face-down"); } /* overrides-supported */ ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "overrides-supported", (int)(sizeof(overrides_supported) / sizeof(overrides_supported[0])), NULL, overrides_supported); /* page-ranges-supported */ ippAddBoolean(attrs, IPP_TAG_PRINTER, "page-ranges-supported", 1); /* pages-per-minute */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute", ppd->throughput); /* pages-per-minute-color */ if (ppd->color_device) ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute-color", ppd->throughput); /* print-color-mode-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-default", NULL, ppd->color_device ? "auto" : "monochrome"); /* print-color-mode-supported */ if (ppd->color_device) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-supported", (int)(sizeof(print_color_mode_supported_color) / sizeof(print_color_mode_supported_color[0])), NULL, print_color_mode_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-color-mode-supported", (int)(sizeof(print_color_mode_supported) / sizeof(print_color_mode_supported[0])), NULL, print_color_mode_supported); /* print-content-optimize-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-content-optimize-default", NULL, "auto"); /* print-content-optimize-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-content-optimize-supported", NULL, "auto"); /* print-quality-default */ ippAddInteger(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-default", IPP_QUALITY_NORMAL); /* print-quality-supported */ ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-supported", (int)(sizeof(print_quality_supported) / sizeof(print_quality_supported[0])), print_quality_supported); /* print-rendering-intent-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-rendering-intent-default", NULL, "auto"); /* print-rendering-intent-supported */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-rendering-intent-supported", NULL, "auto"); /* printer-device-id */ if ((ppd_attr = ppdFindAttr(ppd, "1284DeviceId", NULL)) != NULL) { /* * Use the device ID string from the PPD... */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-device-id", NULL, ppd_attr->value); } else { /* * Synthesize a device ID string... */ char device_id[1024]; /* Device ID string */ snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;CMD:PS;", ppd->manufacturer, ppd->modelname); ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-device-id", NULL, device_id); } /* printer-input-tray */ if (pc->num_sources > 0) { for (i = 0, attr = NULL; i < pc->num_sources; i ++) { char input_tray[1024]; /* printer-input-tray value */ if (!strcmp(pc->sources[i].pwg, "manual") || strstr(pc->sources[i].pwg, "-man") != NULL) snprintf(input_tray, sizeof(input_tray), "type=sheetFeedManual;mediafeed=0;mediaxfeed=0;maxcapacity=1;level=-2;status=0;name=%s", pc->sources[i].pwg); else snprintf(input_tray, sizeof(input_tray), "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=250;level=125;status=0;name=%s", pc->sources[i].pwg); if (attr) ippSetOctetString(attrs, &attr, i, input_tray, (int)strlen(input_tray)); else attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-input-tray", input_tray, (int)strlen(input_tray)); } } else { static const char *printer_input_tray = "type=sheetFeedAutoRemovableTray;mediafeed=0;mediaxfeed=0;maxcapacity=-2;level=-2;status=0;name=auto"; ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-input-tray", printer_input_tray, (int)strlen(printer_input_tray)); } /* printer-make-and-model */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, ppd->nickname); /* printer-resolution-default */ ippAddResolution(attrs, IPP_TAG_PRINTER, "printer-resolution-default", IPP_RES_PER_INCH, xres, yres); /* printer-resolution-supported */ ippAddResolution(attrs, IPP_TAG_PRINTER, "printer-resolution-supported", IPP_RES_PER_INCH, xres, yres); /* printer-supply and printer-supply-description */ if (ppd->color_device) { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-supply", printer_supply_color[0], (int)strlen(printer_supply_color[0])); for (i = 1; i < (int)(sizeof(printer_supply_color) / sizeof(printer_supply_color[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_supply_color[i], (int)strlen(printer_supply_color[i])); ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-supply-description", (int)(sizeof(printer_supply_description_color) / sizeof(printer_supply_description_color[0])), NULL, printer_supply_description_color); } else { attr = ippAddOctetString(attrs, IPP_TAG_PRINTER, "printer-supply", printer_supply[0], (int)strlen(printer_supply[0])); for (i = 1; i < (int)(sizeof(printer_supply) / sizeof(printer_supply[0])); i ++) ippSetOctetString(attrs, &attr, i, printer_supply[i], (int)strlen(printer_supply[i])); ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-supply-description", (int)(sizeof(printer_supply_description) / sizeof(printer_supply_description[0])), NULL, printer_supply_description); } /* pwg-raster-document-xxx-supported */ if (cupsArrayFind(docformats, (void *)"image/pwg-raster")) { ippAddResolution(attrs, IPP_TAG_PRINTER, "pwg-raster-document-resolution-supported", IPP_RES_PER_INCH, xres, yres); if (pc->sides_2sided_long) ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-sheet-back", NULL, "normal"); if (ppd->color_device) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-type-supported", (int)(sizeof(pwg_raster_document_type_supported_color) / sizeof(pwg_raster_document_type_supported_color[0])), NULL, pwg_raster_document_type_supported_color); else ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pwg-raster-document-type-supported", (int)(sizeof(pwg_raster_document_type_supported) / sizeof(pwg_raster_document_type_supported[0])), NULL, pwg_raster_document_type_supported); } /* sides-default */ ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-default", NULL, "one-sided"); /* sides-supported */ if (pc->sides_2sided_long) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-supported", (int)(sizeof(sides_supported) / sizeof(sides_supported[0])), NULL, sides_supported); else ippAddString(attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "sides-supported", NULL, "one-sided"); /* urf-supported */ if (cupsArrayFind(docformats, (void *)"image/urf")) ippAddStrings(attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", num_urf, NULL, urf); /* * Free the PPD file and return the attributes... */ _ppdCacheDestroy(pc); ppdClose(ppd); return (attrs); } #endif /* !CUPS_LITE */ #if HAVE_LIBPAM /* * 'pam_func()' - PAM conversation function. */ static int /* O - Success or failure */ pam_func( int num_msg, /* I - Number of messages */ const struct pam_message **msg, /* I - Messages */ struct pam_response **resp, /* O - Responses */ void *appdata_ptr) /* I - Pointer to connection */ { int i; /* Looping var */ struct pam_response *replies; /* Replies */ ippeve_authdata_t *data; /* Pointer to auth data */ /* * Allocate memory for the responses... */ if ((replies = malloc(sizeof(struct pam_response) * (size_t)num_msg)) == NULL) return (PAM_CONV_ERR); /* * Answer all of the messages... */ data = (ippeve_authdata_t *)appdata_ptr; for (i = 0; i < num_msg; i ++) { switch (msg[i]->msg_style) { case PAM_PROMPT_ECHO_ON: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = strdup(data->username); break; case PAM_PROMPT_ECHO_OFF: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = strdup(data->password); break; case PAM_TEXT_INFO: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = NULL; break; case PAM_ERROR_MSG: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = NULL; break; default: free(replies); return (PAM_CONV_ERR); } } /* * Return the responses back to PAM... */ *resp = replies; return (PAM_SUCCESS); } #endif /* HAVE_LIBPAM */ /* * 'parse_options()' - Parse URL options into CUPS options. * * The client->options string is destroyed by this function. */ static int /* O - Number of options */ parse_options(ippeve_client_t *client, /* I - Client */ cups_option_t **options)/* O - Options */ { char *name, /* Name */ *value, /* Value */ *next; /* Next name=value pair */ int num_options = 0; /* Number of options */ *options = NULL; for (name = client->options; name && *name; name = next) { if ((value = strchr(name, '=')) == NULL) break; *value++ = '\0'; if ((next = strchr(value, '&')) != NULL) *next++ = '\0'; num_options = cupsAddOption(name, value, num_options, options); } return (num_options); } /* * 'process_attr_message()' - Process an ATTR: message from a command. */ static void process_attr_message( ippeve_job_t *job, /* I - Job */ char *message) /* I - Message */ { int i, /* Looping var */ num_options = 0; /* Number of name=value pairs */ cups_option_t *options = NULL, /* name=value pairs from message */ *option; /* Current option */ ipp_attribute_t *attr; /* Current attribute */ /* * Grab attributes from the message line... */ num_options = cupsParseOptions(message + 5, num_options, &options); /* * Loop through the options and record them in the printer or job objects... */ for (i = num_options, option = options; i > 0; i --, option ++) { if (!strcmp(option->name, "job-impressions")) { /* * Update job-impressions attribute... */ job->impressions = atoi(option->value); } else if (!strcmp(option->name, "job-impressions-completed")) { /* * Update job-impressions-completed attribute... */ job->impcompleted = atoi(option->value); } else if (!strncmp(option->name, "marker-", 7) || !strcmp(option->name, "printer-alert") || !strcmp(option->name, "printer-alert-description") || !strcmp(option->name, "printer-supply") || !strcmp(option->name, "printer-supply-description")) { /* * Update Printer Status attribute... */ _cupsRWLockWrite(&job->printer->rwlock); if ((attr = ippFindAttribute(job->printer->attrs, option->name, IPP_TAG_ZERO)) != NULL) ippDeleteAttribute(job->printer->attrs, attr); cupsEncodeOption(job->printer->attrs, IPP_TAG_PRINTER, option->name, option->value); _cupsRWUnlock(&job->printer->rwlock); } else { /* * Something else that isn't currently supported... */ fprintf(stderr, "[Job %d] Ignoring update of attribute \"%s\" with value \"%s\".\n", job->id, option->name, option->value); } } cupsFreeOptions(num_options, options); } /* * 'process_client()' - Process client requests on a thread. */ static void * /* O - Exit status */ process_client(ippeve_client_t *client) /* I - Client */ { /* * Loop until we are out of requests or timeout (30 seconds)... */ #ifdef HAVE_TLS int first_time = 1; /* First time request? */ #endif /* HAVE_TLS */ while (httpWait(client->http, 30000)) { #ifdef HAVE_TLS if (first_time) { /* * See if we need to negotiate a TLS connection... */ char buf[1]; /* First byte from client */ if (recv(httpGetFd(client->http), buf, 1, MSG_PEEK) == 1 && (!buf[0] || !strchr("DGHOPT", buf[0]))) { fprintf(stderr, "%s Starting HTTPS session.\n", client->hostname); if (httpEncryption(client->http, HTTP_ENCRYPTION_ALWAYS)) { fprintf(stderr, "%s Unable to encrypt connection: %s\n", client->hostname, cupsLastErrorString()); break; } fprintf(stderr, "%s Connection now encrypted.\n", client->hostname); } first_time = 0; } #endif /* HAVE_TLS */ if (!process_http(client)) break; } /* * Close the connection to the client and return... */ delete_client(client); return (NULL); } /* * 'process_http()' - Process a HTTP request. */ int /* O - 1 on success, 0 on failure */ process_http(ippeve_client_t *client) /* I - Client connection */ { char uri[1024]; /* URI */ http_state_t http_state; /* HTTP state */ http_status_t http_status; /* HTTP status */ ipp_state_t ipp_state; /* State of IPP transfer */ char scheme[32], /* Method/scheme */ userpass[128], /* Username:password */ hostname[HTTP_MAX_HOST], /* Hostname */ *ptr; /* Pointer into value */ int port; /* Port number */ static const char * const http_states[] = { /* Strings for logging HTTP method */ "WAITING", "OPTIONS", "GET", "GET_SEND", "HEAD", "POST", "POST_RECV", "POST_SEND", "PUT", "PUT_RECV", "DELETE", "TRACE", "CONNECT", "STATUS", "UNKNOWN_METHOD", "UNKNOWN_VERSION" }; /* * Clear state variables... */ client->username[0] = '\0'; ippDelete(client->request); ippDelete(client->response); client->request = NULL; client->response = NULL; client->operation = HTTP_STATE_WAITING; /* * Read a request from the connection... */ while ((http_state = httpReadRequest(client->http, uri, sizeof(uri))) == HTTP_STATE_WAITING) usleep(1); /* * Parse the request line... */ if (http_state == HTTP_STATE_ERROR) { if (httpError(client->http) == EPIPE) fprintf(stderr, "%s Client closed connection.\n", client->hostname); else fprintf(stderr, "%s Bad request line (%s).\n", client->hostname, strerror(httpError(client->http))); return (0); } else if (http_state == HTTP_STATE_UNKNOWN_METHOD) { fprintf(stderr, "%s Bad/unknown operation.\n", client->hostname); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } else if (http_state == HTTP_STATE_UNKNOWN_VERSION) { fprintf(stderr, "%s Bad HTTP version.\n", client->hostname); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } fprintf(stderr, "%s %s %s\n", client->hostname, http_states[http_state], uri); /* * Separate the URI into its components... */ if (httpSeparateURI(HTTP_URI_CODING_MOST, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, client->uri, sizeof(client->uri)) < HTTP_URI_STATUS_OK && (http_state != HTTP_STATE_OPTIONS || strcmp(uri, "*"))) { fprintf(stderr, "%s Bad URI \"%s\".\n", client->hostname, uri); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } if ((client->options = strchr(client->uri, '?')) != NULL) *(client->options)++ = '\0'; /* * Process the request... */ client->start = time(NULL); client->operation = httpGetState(client->http); /* * Parse incoming parameters until the status changes... */ while ((http_status = httpUpdate(client->http)) == HTTP_STATUS_CONTINUE); if (http_status != HTTP_STATUS_OK) { respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } /* * Validate the host header... */ if (!httpGetField(client->http, HTTP_FIELD_HOST)[0] && httpGetVersion(client->http) >= HTTP_VERSION_1_1) { /* * HTTP/1.1 and higher require the "Host:" field... */ fprintf(stderr, "%s Missing Host: header.\n", client->hostname); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } strlcpy(client->host_field, httpGetField(client->http, HTTP_FIELD_HOST), sizeof(client->host_field)); if ((ptr = strrchr(client->host_field, ':')) != NULL) { /* * Grab port number from Host: header... */ *ptr++ = '\0'; client->host_port = atoi(ptr); } else { /* * Use the default port number... */ client->host_port = client->printer->port; } if ((ptr = strstr(client->host_field, ".local")) == NULL) ptr = strrchr(client->host_field, '.'); if (!isdigit(client->host_field[0] & 255) && client->host_field[0] != '[' && strcmp(client->host_field, client->printer->hostname) && strcmp(client->host_field, "localhost") && (!ptr || (strcmp(ptr, ".local") && strcmp(ptr, ".local.")))) { fprintf(stderr, "%s Bad Host: header '%s'.\n", client->hostname, client->host_field); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } /* * Handle HTTP Upgrade... */ if (!strcasecmp(httpGetField(client->http, HTTP_FIELD_CONNECTION), "Upgrade")) { #ifdef HAVE_TLS if (strstr(httpGetField(client->http, HTTP_FIELD_UPGRADE), "TLS/") != NULL && !httpIsEncrypted(client->http)) { if (!respond_http(client, HTTP_STATUS_SWITCHING_PROTOCOLS, NULL, NULL, 0)) return (0); fprintf(stderr, "%s Upgrading to encrypted connection.\n", client->hostname); if (httpEncryption(client->http, HTTP_ENCRYPTION_REQUIRED)) { fprintf(stderr, "%s Unable to encrypt connection: %s\n", client->hostname, cupsLastErrorString()); return (0); } fprintf(stderr, "%s Connection now encrypted.\n", client->hostname); } else #endif /* HAVE_TLS */ if (!respond_http(client, HTTP_STATUS_NOT_IMPLEMENTED, NULL, NULL, 0)) return (0); } /* * Handle new transfers... */ switch (client->operation) { case HTTP_STATE_OPTIONS : /* * Do OPTIONS command... */ return (respond_http(client, HTTP_STATUS_OK, NULL, NULL, 0)); case HTTP_STATE_HEAD : if (!strcmp(client->uri, "/en.strings")) return (respond_http(client, HTTP_STATUS_OK, NULL, "text/strings", 0)); else if (!strcmp(client->uri, "/icon.png") || !strcmp(client->uri, "/icon-lg.png") || !strcmp(client->uri, "/icon-sm.png")) return (respond_http(client, HTTP_STATUS_OK, NULL, "image/png", 0)); else if (!strcmp(client->uri, "/") || !strcmp(client->uri, "/media") || !strcmp(client->uri, "/supplies")) return (respond_http(client, HTTP_STATUS_OK, NULL, "text/html", 0)); else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); case HTTP_STATE_GET : if (!strcmp(client->uri, "/en.strings")) { /* * Send strings file. */ if (client->printer->strings) { int fd; /* Icon file */ struct stat fileinfo; /* Icon file information */ char buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes */ if (!stat(client->printer->strings, &fileinfo) && (fd = open(client->printer->strings, O_RDONLY | O_BINARY)) >= 0) { if (!respond_http(client, HTTP_STATUS_OK, NULL, "text/strings", (size_t)fileinfo.st_size)) { close(fd); return (0); } while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) httpWrite2(client->http, buffer, (size_t)bytes); httpFlushWrite(client->http); close(fd); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } else if (!strcmp(client->uri, "/icon.png")) { /* * Send medium PNG icon file. */ if (client->printer->icons[1]) { int fd; /* Icon file */ struct stat fileinfo; /* Icon file information */ char buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes */ if (!stat(client->printer->icons[1], &fileinfo) && (fd = open(client->printer->icons[1], O_RDONLY | O_BINARY)) >= 0) { if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", (size_t)fileinfo.st_size)) { close(fd); return (0); } while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) httpWrite2(client->http, buffer, (size_t)bytes); httpFlushWrite(client->http); close(fd); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } else { fputs("Icon file is internal printer.png.\n", stderr); if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", sizeof(printer_png))) return (0); httpWrite2(client->http, (const char *)printer_png, sizeof(printer_png)); httpFlushWrite(client->http); } } else if (!strcmp(client->uri, "/icon-lg.png")) { /* * Send large PNG icon file. */ if (client->printer->icons[2]) { int fd; /* Icon file */ struct stat fileinfo; /* Icon file information */ char buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes */ if (!stat(client->printer->icons[2], &fileinfo) && (fd = open(client->printer->icons[2], O_RDONLY | O_BINARY)) >= 0) { if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", (size_t)fileinfo.st_size)) { close(fd); return (0); } while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) httpWrite2(client->http, buffer, (size_t)bytes); httpFlushWrite(client->http); close(fd); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } else { fputs("Icon file is internal printer-lg.png.\n", stderr); if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", sizeof(printer_lg_png))) return (0); httpWrite2(client->http, (const char *)printer_lg_png, sizeof(printer_lg_png)); httpFlushWrite(client->http); } } else if (!strcmp(client->uri, "/icon-sm.png")) { /* * Send small PNG icon file. */ if (client->printer->icons[0]) { int fd; /* Icon file */ struct stat fileinfo; /* Icon file information */ char buffer[4096]; /* Copy buffer */ ssize_t bytes; /* Bytes */ if (!stat(client->printer->icons[0], &fileinfo) && (fd = open(client->printer->icons[0], O_RDONLY | O_BINARY)) >= 0) { if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", (size_t)fileinfo.st_size)) { close(fd); return (0); } while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) httpWrite2(client->http, buffer, (size_t)bytes); httpFlushWrite(client->http); close(fd); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } else { fputs("Icon file is internal printer-sm.png.\n", stderr); if (!respond_http(client, HTTP_STATUS_OK, NULL, "image/png", sizeof(printer_sm_png))) return (0); httpWrite2(client->http, (const char *)printer_sm_png, sizeof(printer_sm_png)); httpFlushWrite(client->http); } } else { /* * Authenticate if needed... */ if ((http_status = authenticate_request(client)) != HTTP_STATUS_CONTINUE) { return (respond_http(client, http_status, NULL, NULL, 0)); } if (!strcmp(client->uri, "/")) { /* * Show web status page... */ return (show_status(client)); } else if (!strcmp(client->uri, "/media")) { /* * Show web media page... */ return (show_media(client)); } else if (!strcmp(client->uri, "/supplies")) { /* * Show web supplies page... */ return (show_supplies(client)); } else return (respond_http(client, HTTP_STATUS_NOT_FOUND, NULL, NULL, 0)); } break; case HTTP_STATE_POST : if (strcmp(httpGetField(client->http, HTTP_FIELD_CONTENT_TYPE), "application/ipp")) { /* * Not an IPP request... */ return (respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0)); } /* * Read the IPP request... */ client->request = ippNew(); while ((ipp_state = ippRead(client->http, client->request)) != IPP_STATE_DATA) { if (ipp_state == IPP_STATE_ERROR) { fprintf(stderr, "%s IPP read error (%s).\n", client->hostname, cupsLastErrorString()); respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } } /* * Now that we have the IPP request, process the request... */ return (process_ipp(client)); default : break; /* Anti-compiler-warning-code */ } return (1); } /* * 'process_ipp()' - Process an IPP request. */ static int /* O - 1 on success, 0 on error */ process_ipp(ippeve_client_t *client) /* I - Client */ { ipp_tag_t group; /* Current group tag */ ipp_attribute_t *attr; /* Current attribute */ ipp_attribute_t *charset; /* Character set attribute */ ipp_attribute_t *language; /* Language attribute */ ipp_attribute_t *uri; /* Printer URI attribute */ int major, minor; /* Version number */ const char *name; /* Name of attribute */ http_status_t status; /* Authentication status */ debug_attributes("Request", client->request, 1); /* * First build an empty response message for this request... */ client->operation_id = ippGetOperation(client->request); client->response = ippNewResponse(client->request); /* * Then validate the request header and required attributes... */ major = ippGetVersion(client->request, &minor); if (major < 1 || major > 2) { /* * Return an error, since we only support IPP 1.x and 2.x. */ respond_ipp(client, IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, "Bad request version number %d.%d.", major, minor); } else if ((major * 10 + minor) > MaxVersion) { if (httpGetState(client->http) != HTTP_STATE_POST_SEND) httpFlush(client->http); /* Flush trailing (junk) data */ respond_http(client, HTTP_STATUS_BAD_REQUEST, NULL, NULL, 0); return (0); } else if (ippGetRequestId(client->request) <= 0) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Bad request-id %d.", ippGetRequestId(client->request)); } else if (!ippFirstAttribute(client->request)) { respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "No attributes in request."); } else { /* * Make sure that the attributes are provided in the correct order and * don't repeat groups... */ for (attr = ippFirstAttribute(client->request), group = ippGetGroupTag(attr); attr; attr = ippNextAttribute(client->request)) { if (ippGetGroupTag(attr) < group && ippGetGroupTag(attr) != IPP_TAG_ZERO) { /* * Out of order; return an error... */ respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Attribute groups are out of order (%x < %x).", ippGetGroupTag(attr), group); break; } else group = ippGetGroupTag(attr); } if (!attr) { /* * Then make sure that the first three attributes are: * * attributes-charset * attributes-natural-language * printer-uri/job-uri */ attr = ippFirstAttribute(client->request); name = ippGetName(attr); if (attr && name && !strcmp(name, "attributes-charset") && ippGetValueTag(attr) == IPP_TAG_CHARSET) charset = attr; else charset = NULL; attr = ippNextAttribute(client->request); name = ippGetName(attr); if (attr && name && !strcmp(name, "attributes-natural-language") && ippGetValueTag(attr) == IPP_TAG_LANGUAGE) language = attr; else language = NULL; if ((attr = ippFindAttribute(client->request, "printer-uri", IPP_TAG_URI)) != NULL) uri = attr; else if ((attr = ippFindAttribute(client->request, "job-uri", IPP_TAG_URI)) != NULL) uri = attr; else uri = NULL; if (charset && strcasecmp(ippGetString(charset, 0, NULL), "us-ascii") && strcasecmp(ippGetString(charset, 0, NULL), "utf-8")) { /* * Bad character set... */ respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Unsupported character set \"%s\".", ippGetString(charset, 0, NULL)); } else if (!charset || !language || !uri) { /* * Return an error, since attributes-charset, * attributes-natural-language, and printer-uri/job-uri are required * for all operations. */ respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Missing required attributes."); } else { char scheme[32], /* URI scheme */ userpass[32], /* Username/password in URI */ host[256], /* Host name in URI */ resource[256]; /* Resource path in URI */ int port; /* Port number in URI */ name = ippGetName(uri); if (httpSeparateURI(HTTP_URI_CODING_ALL, ippGetString(uri, 0, NULL), scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) respond_ipp(client, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, "Bad %s value '%s'.", name, ippGetString(uri, 0, NULL)); else if ((!strcmp(name, "job-uri") && strncmp(resource, "/ipp/print/", 11)) || (!strcmp(name, "printer-uri") && strcmp(resource, "/ipp/print") && (strcmp(resource, "/") || ippGetOperation(client->request) != IPP_OP_GET_PRINTER_ATTRIBUTES))) respond_ipp(client, IPP_STATUS_ERROR_NOT_FOUND, "%s %s not found.", name, ippGetString(uri, 0, NULL)); else if (client->operation_id != IPP_OP_GET_PRINTER_ATTRIBUTES && (status = authenticate_request(client)) != HTTP_STATUS_CONTINUE) { flush_document_data(client); return (respond_http(client, status, NULL, NULL, 0)); } else { /* * Handle HTTP Expect... */ if (httpGetExpect(client->http)) { if (httpGetExpect(client->http) == HTTP_STATUS_CONTINUE) { /* * Send 100-continue header... */ if (!respond_http(client, HTTP_STATUS_CONTINUE, NULL, NULL, 0)) return (0); } else { /* * Send 417-expectation-failed header... */ if (!respond_http(client, HTTP_STATUS_EXPECTATION_FAILED, NULL, NULL, 0)) return (0); flush_document_data(client); return (1); } } /* * Try processing the operation... */ switch (client->operation_id) { case IPP_OP_PRINT_JOB : ipp_print_job(client); break; case IPP_OP_PRINT_URI : ipp_print_uri(client); break; case IPP_OP_VALIDATE_JOB : ipp_validate_job(client); break; case IPP_OP_CREATE_JOB : ipp_create_job(client); break; case IPP_OP_SEND_DOCUMENT : ipp_send_document(client); break; case IPP_OP_SEND_URI : ipp_send_uri(client); break; case IPP_OP_CANCEL_JOB : ipp_cancel_job(client); break; case IPP_OP_CANCEL_MY_JOBS : ipp_cancel_my_jobs(client); break; case IPP_OP_GET_JOB_ATTRIBUTES : ipp_get_job_attributes(client); break; case IPP_OP_GET_JOBS : ipp_get_jobs(client); break; case IPP_OP_GET_PRINTER_ATTRIBUTES : ipp_get_printer_attributes(client); break; case IPP_OP_CLOSE_JOB : ipp_close_job(client); break; case IPP_OP_IDENTIFY_PRINTER : ipp_identify_printer(client); break; default : respond_ipp(client, IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, "Operation not supported."); break; } } } } } /* * Send the HTTP header and return... */ if (httpGetState(client->http) != HTTP_STATE_POST_SEND) httpFlush(client->http); /* Flush trailing (junk) data */ return (respond_http(client, HTTP_STATUS_OK, NULL, "application/ipp", ippLength(client->response))); } /* * 'process_job()' - Process a print job. */ static void * /* O - Thread exit status */ process_job(ippeve_job_t *job) /* I - Job */ { job->state = IPP_JSTATE_PROCESSING; job->printer->state = IPP_PSTATE_PROCESSING; job->processing = time(NULL); while (job->printer->state_reasons & IPPEVE_PREASON_MEDIA_EMPTY) { job->printer->state_reasons |= IPPEVE_PREASON_MEDIA_NEEDED; sleep(1); } job->printer->state_reasons &= (ippeve_preason_t)~IPPEVE_PREASON_MEDIA_NEEDED; if (job->printer->command) { /* * Execute a command with the job spool file and wait for it to complete... */ int pid, /* Process ID */ status; /* Exit status */ struct timeval start, /* Start time */ end; /* End time */ char *myargv[3], /* Command-line arguments */ *myenvp[400]; /* Environment variables */ int myenvc; /* Number of environment variables */ ipp_attribute_t *attr; /* Job attribute */ char val[1280], /* IPP_NAME=value */ *valptr; /* Pointer into string */ #ifndef _WIN32 int mystdout = -1; /* File for stdout */ int mypipe[2]; /* Pipe for stderr */ char line[2048], /* Line from stderr */ *ptr, /* Pointer into line */ *endptr; /* End of line */ ssize_t bytes; /* Bytes read */ #endif /* !_WIN32 */ fprintf(stderr, "[Job %d] Running command \"%s %s\".\n", job->id, job->printer->command, job->filename); gettimeofday(&start, NULL); /* * Setup the command-line arguments... */ myargv[0] = job->printer->command; myargv[1] = job->filename; myargv[2] = NULL; /* * Copy the current environment, then add environment variables for every * Job attribute and Printer -default attributes... */ for (myenvc = 0; environ[myenvc] && myenvc < (int)(sizeof(myenvp) / sizeof(myenvp[0]) - 1); myenvc ++) myenvp[myenvc] = strdup(environ[myenvc]); if (myenvc > (int)(sizeof(myenvp) / sizeof(myenvp[0]) - 32)) { fprintf(stderr, "[Job %d] Too many environment variables to process job.\n", job->id); job->state = IPP_JSTATE_ABORTED; goto error; } snprintf(val, sizeof(val), "CONTENT_TYPE=%s", job->format); myenvp[myenvc ++] = strdup(val); if (job->printer->device_uri) { snprintf(val, sizeof(val), "DEVICE_URI=%s", job->printer->device_uri); myenvp[myenvc ++] = strdup(val); } if (job->printer->output_format) { snprintf(val, sizeof(val), "OUTPUT_TYPE=%s", job->printer->output_format); myenvp[myenvc ++] = strdup(val); } #if !CUPS_LITE if (job->printer->ppdfile) { snprintf(val, sizeof(val), "PPD=%s", job->printer->ppdfile); myenvp[myenvc++] = strdup(val); } #endif /* !CUPS_LITE */ for (attr = ippFirstAttribute(job->printer->attrs); attr && myenvc < (int)(sizeof(myenvp) / sizeof(myenvp[0]) - 1); attr = ippNextAttribute(job->printer->attrs)) { /* * Convert "attribute-name-default" to "IPP_ATTRIBUTE_NAME_DEFAULT=" and * "pwg-xxx" to "IPP_PWG_XXX", then add the value(s) from the attribute. */ const char *name = ippGetName(attr), /* Attribute name */ *suffix = strstr(name, "-default"); /* Suffix on attribute name */ if (strncmp(name, "pwg-", 4) && (!suffix || suffix[8])) continue; valptr = val; *valptr++ = 'I'; *valptr++ = 'P'; *valptr++ = 'P'; *valptr++ = '_'; while (*name && valptr < (val + sizeof(val) - 2)) { if (*name == '-') *valptr++ = '_'; else *valptr++ = (char)toupper(*name & 255); name ++; } *valptr++ = '='; ippAttributeString(attr, valptr, sizeof(val) - (size_t)(valptr - val)); myenvp[myenvc++] = strdup(val); } for (attr = ippFirstAttribute(job->attrs); attr && myenvc < (int)(sizeof(myenvp) / sizeof(myenvp[0]) - 1); attr = ippNextAttribute(job->attrs)) { /* * Convert "attribute-name" to "IPP_ATTRIBUTE_NAME=" and then add the * value(s) from the attribute. */ const char *name = ippGetName(attr); /* Attribute name */ if (!name) continue; valptr = val; *valptr++ = 'I'; *valptr++ = 'P'; *valptr++ = 'P'; *valptr++ = '_'; while (*name && valptr < (val + sizeof(val) - 2)) { if (*name == '-') *valptr++ = '_'; else *valptr++ = (char)toupper(*name & 255); name ++; } *valptr++ = '='; ippAttributeString(attr, valptr, sizeof(val) - (size_t)(valptr - val)); myenvp[myenvc++] = strdup(val); } if (attr) { fprintf(stderr, "[Job %d] Too many environment variables to process job.\n", job->id); job->state = IPP_JSTATE_ABORTED; goto error; } myenvp[myenvc] = NULL; /* * Now run the program... */ #ifdef _WIN32 status = _spawnvpe(_P_WAIT, job->printer->command, myargv, myenvp); #else if (job->printer->device_uri) { char scheme[32], /* URI scheme */ userpass[256], /* username:password (unused) */ host[256], /* Hostname or IP address */ resource[256]; /* Resource path */ int port; /* Port number */ if (httpSeparateURI(HTTP_URI_CODING_ALL, job->printer->device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { fprintf(stderr, "[Job %d] Bad device URI \"%s\".\n", job->id, job->printer->device_uri); } else if (!strcmp(scheme, "file")) { struct stat fileinfo; /* See if this is a file or directory... */ if (stat(resource, &fileinfo)) { if (errno == ENOENT) { if ((mystdout = open(resource, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666)) >= 0) fprintf(stderr, "[Job %d] Saving print command output to \"%s\".\n", job->id, resource); else fprintf(stderr, "[Job %d] Unable to create \"%s\": %s\n", job->id, resource, strerror(errno)); } else fprintf(stderr, "[Job %d] Unable to access \"%s\": %s\n", job->id, resource, strerror(errno)); } else if (S_ISDIR(fileinfo.st_mode)) { if ((mystdout = create_job_file(job, line, sizeof(line), resource, "prn")) >= 0) fprintf(stderr, "[Job %d] Saving print command output to \"%s\".\n", job->id, line); else fprintf(stderr, "[Job %d] Unable to create \"%s\": %s\n", job->id, line, strerror(errno)); } else if (!S_ISREG(fileinfo.st_mode)) { if ((mystdout = open(resource, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666)) >= 0) fprintf(stderr, "[Job %d] Saving print command output to \"%s\".\n", job->id, resource); else fprintf(stderr, "[Job %d] Unable to create \"%s\": %s\n", job->id, resource, strerror(errno)); } else if ((mystdout = open(resource, O_WRONLY | O_BINARY)) >= 0) fprintf(stderr, "[Job %d] Saving print command output to \"%s\".\n", job->id, resource); else fprintf(stderr, "[Job %d] Unable to open \"%s\": %s\n", job->id, resource, strerror(errno)); } else if (!strcmp(scheme, "socket")) { http_addrlist_t *addrlist; /* List of addresses */ char service[32]; /* Service number */ snprintf(service, sizeof(service), "%d", port); if ((addrlist = httpAddrGetList(host, AF_UNSPEC, service)) == NULL) fprintf(stderr, "[Job %d] Unable to find \"%s\": %s\n", job->id, host, cupsLastErrorString()); else if (!httpAddrConnect2(addrlist, &mystdout, 30000, &(job->cancel))) fprintf(stderr, "[Job %d] Unable to connect to \"%s\": %s\n", job->id, host, cupsLastErrorString()); httpAddrFreeList(addrlist); } else { fprintf(stderr, "[Job %d] Unsupported device URI scheme \"%s\".\n", job->id, scheme); } } else if ((mystdout = create_job_file(job, line, sizeof(line), job->printer->directory, "prn")) >= 0) { fprintf(stderr, "[Job %d] Saving print command output to \"%s\".\n", job->id, line); } if (mystdout < 0) { if ((mystdout = open("/dev/null", O_WRONLY | O_BINARY)) < 0) fprintf(stderr, "[Job %d] Unable to redirect command output to /dev/null: %s", job->id, strerror(errno)); } if (pipe(mypipe)) { fprintf(stderr, "[Job %d] Unable to create pipe for stderr: %s\n", job->id, strerror(errno)); mypipe[0] = mypipe[1] = -1; } if ((pid = fork()) == 0) { /* * Child comes here... */ if (mystdout >= 0) { close(1); dup2(mystdout, 1); close(mystdout); } if (mypipe[1] >= 0) { close(2); dup2(mypipe[1], 2); close(mypipe[0]); close(mypipe[1]); } execve(job->printer->command, myargv, myenvp); exit(errno); } else if (pid < 0) { /* * Unable to fork process... */ fprintf(stderr, "[Job %d] Unable to start job processing command: %s\n", job->id, strerror(errno)); status = -1; close(mystdout); close(mypipe[0]); close(mypipe[1]); /* * Free memory used for environment... */ while (myenvc > 0) free(myenvp[-- myenvc]); } else { /* * Free memory used for environment... */ while (myenvc > 0) free(myenvp[-- myenvc]); /* * Close the output file in the parent process... */ close(mystdout); /* * If the pipe exists, read from it until EOF... */ if (mypipe[0] >= 0) { close(mypipe[1]); endptr = line; while ((bytes = read(mypipe[0], endptr, sizeof(line) - (size_t)(endptr - line) - 1)) > 0) { endptr += bytes; *endptr = '\0'; while ((ptr = strchr(line, '\n')) != NULL) { int level = 3; /* Message log level */ *ptr++ = '\0'; if (!strncmp(line, "ATTR:", 5)) { /* * Process job/printer attribute updates. */ process_attr_message(job, line); } else if (!strncmp(line, "DEBUG:", 6)) { /* * Debug message... */ level = 2; } else if (!strncmp(line, "ERROR:", 6)) { /* * Error message... */ level = 0; job->message = strdup(line + 6); job->msglevel = 0; } else if (!strncmp(line, "INFO:", 5)) { /* * Informational/progress message... */ level = 1; if (job->msglevel) { job->message = strdup(line + 5); job->msglevel = 1; } } else if (!strncmp(line, "STATE:", 6)) { /* * Process printer-state-reasons keywords. */ process_state_message(job, line); } if (Verbosity >= level) fprintf(stderr, "[Job %d] Command - %s\n", job->id, line); bytes = ptr - line; if (ptr < endptr) memmove(line, ptr, (size_t)(endptr - ptr)); endptr -= bytes; *endptr = '\0'; } } close(mypipe[0]); } /* * Wait for child to complete... */ # ifdef HAVE_WAITPID while (waitpid(pid, &status, 0) < 0); # else while (wait(&status) < 0); # endif /* HAVE_WAITPID */ } #endif /* _WIN32 */ if (status) { #ifndef _WIN32 if (WIFEXITED(status)) #endif /* !_WIN32 */ fprintf(stderr, "[Job %d] Command \"%s\" exited with status %d.\n", job->id, job->printer->command, WEXITSTATUS(status)); #ifndef _WIN32 else fprintf(stderr, "[Job %d] Command \"%s\" terminated with signal %d.\n", job->id, job->printer->command, WTERMSIG(status)); #endif /* !_WIN32 */ job->state = IPP_JSTATE_ABORTED; } else fprintf(stderr, "[Job %d] Command \"%s\" completed successfully.\n", job->id, job->printer->command); /* * Report the total processing time... */ gettimeofday(&end, NULL); fprintf(stderr, "[Job %d] Processing time was %.3f seconds.\n", job->id, end.tv_sec - start.tv_sec + 0.000001 * (end.tv_usec - start.tv_usec)); } else { /* * Sleep for a random amount of time to simulate job processing. */ sleep((unsigned)(5 + (CUPS_RAND() % 11))); } if (job->cancel) job->state = IPP_JSTATE_CANCELED; else if (job->state == IPP_JSTATE_PROCESSING) job->state = IPP_JSTATE_COMPLETED; error: job->completed = time(NULL); job->printer->state = IPP_PSTATE_IDLE; job->printer->active_job = NULL; return (NULL); } /* * 'process_state_message()' - Process a STATE: message from a command. */ static void process_state_message( ippeve_job_t *job, /* I - Job */ char *message) /* I - Message */ { int i; /* Looping var */ ippeve_preason_t state_reasons, /* printer-state-reasons values */ bit; /* Current reason bit */ char *ptr, /* Pointer into message */ *next; /* Next keyword in message */ int remove; /* Non-zero if we are removing keywords */ /* * Skip leading "STATE:" and any whitespace... */ for (message += 6; *message; message ++) if (*message != ' ' && *message != '\t') break; /* * Support the following forms of message: * * "keyword[,keyword,...]" to set the printer-state-reasons value(s). * * "-keyword[,keyword,...]" to remove keywords. * * "+keyword[,keyword,...]" to add keywords. * * Keywords may or may not have a suffix (-report, -warning, -error) per * RFC 8011. */ if (*message == '-') { remove = 1; state_reasons = job->printer->state_reasons; message ++; } else if (*message == '+') { remove = 0; state_reasons = job->printer->state_reasons; message ++; } else { remove = 0; state_reasons = IPPEVE_PREASON_NONE; } while (*message) { if ((next = strchr(message, ',')) != NULL) *next++ = '\0'; if ((ptr = strstr(message, "-error")) != NULL) *ptr = '\0'; else if ((ptr = strstr(message, "-report")) != NULL) *ptr = '\0'; else if ((ptr = strstr(message, "-warning")) != NULL) *ptr = '\0'; for (i = 0, bit = 1; i < (int)(sizeof(ippeve_preason_strings) / sizeof(ippeve_preason_strings[0])); i ++, bit *= 2) { if (!strcmp(message, ippeve_preason_strings[i])) { if (remove) state_reasons &= ~bit; else state_reasons |= bit; } } if (next) message = next; else break; } job->printer->state_reasons = state_reasons; } /* * 'register_printer()' - Register a printer object via DNS-SD. */ static int /* O - 1 on success, 0 on error */ register_printer( ippeve_printer_t *printer) /* I - Printer */ { #ifdef HAVE_DNSSD ippeve_txt_t ipp_txt; /* DNS-SD IPP TXT record */ int i, /* Looping var */ count; /* Number of values */ ipp_attribute_t *color_supported, *document_format_supported, *printer_location, *printer_make_and_model, *printer_uuid, *sides_supported, *urf_supported; /* Printer attributes */ const char *value; /* Value string */ char adminurl[247], /* adminurl value */ formats[252], /* List of supported formats */ urf[252], /* List of supported URF values */ *ptr; /* Pointer into string */ if (printer->dnssd_subtypes && !strcmp(printer->dnssd_subtypes, "off")) return (1); color_supported = ippFindAttribute(printer->attrs, "color-supported", IPP_TAG_BOOLEAN); document_format_supported = ippFindAttribute(printer->attrs, "document-format-supported", IPP_TAG_MIMETYPE); printer_location = ippFindAttribute(printer->attrs, "printer-location", IPP_TAG_TEXT); printer_make_and_model = ippFindAttribute(printer->attrs, "printer-make-and-model", IPP_TAG_TEXT); printer_uuid = ippFindAttribute(printer->attrs, "printer-uuid", IPP_TAG_URI); sides_supported = ippFindAttribute(printer->attrs, "sides-supported", IPP_TAG_KEYWORD); urf_supported = ippFindAttribute(printer->attrs, "urf-supported", IPP_TAG_KEYWORD); httpAssembleURI(HTTP_URI_CODING_ALL, adminurl, sizeof(adminurl), WEB_SCHEME, NULL, printer->hostname, printer->port, "/"); for (i = 0, count = ippGetCount(document_format_supported), ptr = formats; i < count; i ++) { value = ippGetString(document_format_supported, i, NULL); if (!strcasecmp(value, "application/octet-stream")) continue; if (ptr > formats && ptr < (formats + sizeof(formats) - 1)) *ptr++ = ','; strlcpy(ptr, value, sizeof(formats) - (size_t)(ptr - formats)); ptr += strlen(ptr); if (ptr >= (formats + sizeof(formats) - 1)) break; } urf[0] = '\0'; for (i = 0, count = ippGetCount(urf_supported), ptr = urf; i < count; i ++) { value = ippGetString(urf_supported, i, NULL); if (ptr > urf && ptr < (urf + sizeof(urf) - 1)) *ptr++ = ','; strlcpy(ptr, value, sizeof(urf) - (size_t)(ptr - urf)); ptr += strlen(ptr); if (ptr >= (urf + sizeof(urf) - 1)) break; } /* * Rename the service as needed... */ if (printer->dnssd_collision) { char new_dnssd_name[256]; /* New DNS-SD name */ const char *uuid = ippGetString(printer_uuid, 0, NULL); /* "printer-uuid" value */ _cupsRWLockWrite(&printer->rwlock); snprintf(new_dnssd_name, sizeof(new_dnssd_name), "%s (%c%c%c%c%c%c)", printer->dnssd_name, toupper(uuid[39]), toupper(uuid[40]), toupper(uuid[41]), toupper(uuid[42]), toupper(uuid[43]), toupper(uuid[44])); free(printer->dnssd_name); printer->dnssd_name = strdup(new_dnssd_name); fprintf(stderr, "DNS-SD name collision, trying new DNS-SD service name '%s'.\n", printer->dnssd_name); _cupsRWUnlock(&printer->rwlock); printer->dnssd_collision = 0; } #endif /* HAVE_DNSSD */ #ifdef HAVE_MDNSRESPONDER DNSServiceErrorType error; /* Error from DNS-SD */ char regtype[256]; /* DNS-SD service type */ uint32_t ifindex; /* Interface index */ /* * Build the TXT record for IPP... */ TXTRecordCreate(&ipp_txt, 1024, NULL); TXTRecordSetValue(&ipp_txt, "rp", 9, "ipp/print"); if ((value = ippGetString(printer_make_and_model, 0, NULL)) != NULL) TXTRecordSetValue(&ipp_txt, "ty", (uint8_t)strlen(value), value); TXTRecordSetValue(&ipp_txt, "adminurl", (uint8_t)strlen(adminurl), adminurl); if ((value = ippGetString(printer_location, 0, NULL)) != NULL) TXTRecordSetValue(&ipp_txt, "note", (uint8_t)strlen(value), value); TXTRecordSetValue(&ipp_txt, "pdl", (uint8_t)strlen(formats), formats); TXTRecordSetValue(&ipp_txt, "Color", 1, ippGetBoolean(color_supported, 0) ? "T" : "F"); TXTRecordSetValue(&ipp_txt, "Duplex", 1, ippGetCount(sides_supported) > 1 ? "T" : "F"); if ((value = ippGetString(printer_uuid, 0, NULL)) != NULL) TXTRecordSetValue(&ipp_txt, "UUID", (uint8_t)strlen(value) - 9, value + 9); # ifdef HAVE_TLS TXTRecordSetValue(&ipp_txt, "TLS", 3, "1.2"); # endif /* HAVE_TLS */ if (urf[0]) TXTRecordSetValue(&ipp_txt, "URF", (uint8_t)strlen(urf), urf); TXTRecordSetValue(&ipp_txt, "txtvers", 1, "1"); TXTRecordSetValue(&ipp_txt, "qtotal", 1, "1"); /* * Register the _printer._tcp (LPD) service type with a port number of 0 to * defend our service name but not actually support LPD... */ ifindex = !strcmp(printer->hostname, "localhost") ? kDNSServiceInterfaceIndexLocalOnly : kDNSServiceInterfaceIndexAny; if (printer->printer_ref) DNSServiceRefDeallocate(printer->printer_ref); printer->printer_ref = DNSSDMaster; if ((error = DNSServiceRegister(&(printer->printer_ref), kDNSServiceFlagsShareConnection | kDNSServiceFlagsNoAutoRename, ifindex, printer->dnssd_name, "_printer._tcp", NULL /* domain */, NULL /* host */, 0 /* port */, 0 /* txtLen */, NULL /* txtRecord */, (DNSServiceRegisterReply)dnssd_callback, printer)) != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("Unable to register \"%s.%s\": %d"), printer->dnssd_name, "_printer._tcp", error); return (0); } /* * Then register the _ipp._tcp (IPP) service type with the real port number to * advertise our IPP printer... */ if (printer->ipp_ref) DNSServiceRefDeallocate(printer->ipp_ref); printer->ipp_ref = DNSSDMaster; if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) snprintf(regtype, sizeof(regtype), "_ipp._tcp,%s", printer->dnssd_subtypes); else strlcpy(regtype, "_ipp._tcp", sizeof(regtype)); if ((error = DNSServiceRegister(&(printer->ipp_ref), kDNSServiceFlagsShareConnection | kDNSServiceFlagsNoAutoRename, ifindex, printer->dnssd_name, regtype, NULL /* domain */, NULL /* host */, htons(printer->port), TXTRecordGetLength(&ipp_txt), TXTRecordGetBytesPtr(&ipp_txt), (DNSServiceRegisterReply)dnssd_callback, printer)) != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("Unable to register \"%s.%s\": %d"), printer->dnssd_name, regtype, error); return (0); } # ifdef HAVE_TLS /* * Then register the _ipps._tcp (IPP) service type with the real port number to * advertise our IPPS printer... */ if (printer->ipps_ref) DNSServiceRefDeallocate(printer->ipps_ref); printer->ipps_ref = DNSSDMaster; if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) snprintf(regtype, sizeof(regtype), "_ipps._tcp,%s", printer->dnssd_subtypes); else strlcpy(regtype, "_ipps._tcp", sizeof(regtype)); if ((error = DNSServiceRegister(&(printer->ipps_ref), kDNSServiceFlagsShareConnection | kDNSServiceFlagsNoAutoRename, ifindex, printer->dnssd_name, regtype, NULL /* domain */, NULL /* host */, htons(printer->port), TXTRecordGetLength(&ipp_txt), TXTRecordGetBytesPtr(&ipp_txt), (DNSServiceRegisterReply)dnssd_callback, printer)) != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("Unable to register \"%s.%s\": %d"), printer->dnssd_name, regtype, error); return (0); } # endif /* HAVE_TLS */ /* * Similarly, register the _http._tcp,_printer (HTTP) service type with the * real port number to advertise our IPP printer... */ if (printer->http_ref) DNSServiceRefDeallocate(printer->http_ref); printer->http_ref = DNSSDMaster; if ((error = DNSServiceRegister(&(printer->http_ref), kDNSServiceFlagsShareConnection | kDNSServiceFlagsNoAutoRename, ifindex, printer->dnssd_name, "_http._tcp,_printer", NULL /* domain */, NULL /* host */, htons(printer->port), 0 /* txtLen */, NULL /* txtRecord */, (DNSServiceRegisterReply)dnssd_callback, printer)) != kDNSServiceErr_NoError) { _cupsLangPrintf(stderr, _("Unable to register \"%s.%s\": %d"), printer->dnssd_name, "_http._tcp,_printer", error); return (0); } TXTRecordDeallocate(&ipp_txt); #elif defined(HAVE_AVAHI) char temp[256]; /* Subtype service string */ /* * Create the TXT record... */ ipp_txt = NULL; ipp_txt = avahi_string_list_add_printf(ipp_txt, "rp=ipp/print"); if ((value = ippGetString(printer_make_and_model, 0, NULL)) != NULL) ipp_txt = avahi_string_list_add_printf(ipp_txt, "ty=%s", value); ipp_txt = avahi_string_list_add_printf(ipp_txt, "adminurl=%s", adminurl); if ((value = ippGetString(printer_location, 0, NULL)) != NULL) ipp_txt = avahi_string_list_add_printf(ipp_txt, "note=%s", value); ipp_txt = avahi_string_list_add_printf(ipp_txt, "pdl=%s", formats); ipp_txt = avahi_string_list_add_printf(ipp_txt, "Color=%s", ippGetBoolean(color_supported, 0) ? "T" : "F"); ipp_txt = avahi_string_list_add_printf(ipp_txt, "Duplex=%s", ippGetCount(sides_supported) > 1 ? "T" : "F"); if ((value = ippGetString(printer_uuid, 0, NULL)) != NULL) ipp_txt = avahi_string_list_add_printf(ipp_txt, "UUID=%s", value + 9); # ifdef HAVE_TLS ipp_txt = avahi_string_list_add_printf(ipp_txt, "TLS=1.2"); # endif /* HAVE_TLS */ if (urf[0]) ipp_txt = avahi_string_list_add_printf(ipp_txt, "URF=%s", urf); ipp_txt = avahi_string_list_add_printf(ipp_txt, "txtvers=1"); ipp_txt = avahi_string_list_add_printf(ipp_txt, "qtotal=1"); /* * Register _printer._tcp (LPD) with port 0 to reserve the service name... */ avahi_threaded_poll_lock(DNSSDMaster); if (printer->dnssd_ref) avahi_entry_group_free(printer->dnssd_ref); printer->dnssd_ref = avahi_entry_group_new(DNSSDClient, dnssd_callback, printer); avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_printer._tcp", NULL, NULL, 0, NULL); /* * Then register the _ipp._tcp (IPP)... */ avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipp._tcp", NULL, NULL, printer->port, ipp_txt); if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) { char *temptypes = strdup(printer->dnssd_subtypes), *start, *end; for (start = temptypes; *start; start = end) { if ((end = strchr(start, ',')) != NULL) *end++ = '\0'; else end = start + strlen(start); snprintf(temp, sizeof(temp), "%s._sub._ipp._tcp", start); avahi_entry_group_add_service_subtype(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipp._tcp", NULL, temp); } free(temptypes); } #ifdef HAVE_TLS /* * _ipps._tcp (IPPS) for secure printing... */ avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipps._tcp", NULL, NULL, printer->port, ipp_txt); if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) { char *temptypes = strdup(printer->dnssd_subtypes), *start, *end; for (start = temptypes; *start; start = end) { if ((end = strchr(start, ',')) != NULL) *end++ = '\0'; else end = start + strlen(start); snprintf(temp, sizeof(temp), "%s._sub._ipps._tcp", start); avahi_entry_group_add_service_subtype(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipps._tcp", NULL, temp); } free(temptypes); } #endif /* HAVE_TLS */ /* * Finally _http.tcp (HTTP) for the web interface... */ avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_http._tcp", NULL, NULL, printer->port, NULL); avahi_entry_group_add_service_subtype(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_http._tcp", NULL, "_printer._sub._http._tcp"); /* * Commit it... */ avahi_entry_group_commit(printer->dnssd_ref); avahi_threaded_poll_unlock(DNSSDMaster); avahi_string_list_free(ipp_txt); #endif /* HAVE_MDNSRESPONDER */ return (1); } /* * 'respond_http()' - Send a HTTP response. */ int /* O - 1 on success, 0 on failure */ respond_http( ippeve_client_t *client, /* I - Client */ http_status_t code, /* I - HTTP status of response */ const char *content_encoding, /* I - Content-Encoding of response */ const char *type, /* I - MIME media type of response */ size_t length) /* I - Length of response */ { char message[1024]; /* Text message */ fprintf(stderr, "%s %s\n", client->hostname, httpStatus(code)); if (code == HTTP_STATUS_CONTINUE) { /* * 100-continue doesn't send any headers... */ return (httpWriteResponse(client->http, HTTP_STATUS_CONTINUE) == 0); } /* * Format an error message... */ if (!type && !length && code != HTTP_STATUS_OK && code != HTTP_STATUS_SWITCHING_PROTOCOLS) { snprintf(message, sizeof(message), "%d - %s\n", code, httpStatus(code)); type = "text/plain"; length = strlen(message); } else message[0] = '\0'; /* * Send the HTTP response header... */ httpClearFields(client->http); if (code == HTTP_STATUS_METHOD_NOT_ALLOWED || client->operation == HTTP_STATE_OPTIONS) httpSetField(client->http, HTTP_FIELD_ALLOW, "GET, HEAD, OPTIONS, POST"); if (code == HTTP_STATUS_UNAUTHORIZED) { char value[256]; /* WWW-Authenticate value */ snprintf(value, sizeof(value), "Basic realm=\"%s\"", PAMService); httpSetField(client->http, HTTP_FIELD_WWW_AUTHENTICATE, value); } if (type) { if (!strcmp(type, "text/html")) httpSetField(client->http, HTTP_FIELD_CONTENT_TYPE, "text/html; charset=utf-8"); else httpSetField(client->http, HTTP_FIELD_CONTENT_TYPE, type); if (content_encoding) httpSetField(client->http, HTTP_FIELD_CONTENT_ENCODING, content_encoding); } httpSetLength(client->http, length); if (httpWriteResponse(client->http, code) < 0) return (0); /* * Send the response data... */ if (message[0]) { /* * Send a plain text message. */ if (httpPrintf(client->http, "%s", message) < 0) return (0); if (httpWrite2(client->http, "", 0) < 0) return (0); } else if (client->response) { /* * Send an IPP response... */ debug_attributes("Response", client->response, 2); ippSetState(client->response, IPP_STATE_IDLE); if (ippWrite(client->http, client->response) != IPP_STATE_DATA) return (0); } return (1); } /* * 'respond_ignored()' - Respond with an ignored attribute. */ static void respond_ignored( ippeve_client_t *client, /* I - Client */ ipp_attribute_t *attr) /* I - Attribute */ { ipp_attribute_t *temp; /* Copy of attribute */ if (!ippGetStatusCode(client->response)) respond_ipp(client, IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, "Unsupported %s %s%s value.", ippGetName(attr), ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr))); temp = ippCopyAttribute(client->response, attr, 0); ippSetGroupTag(client->response, &temp, IPP_TAG_UNSUPPORTED_GROUP); } /* * 'respond_ipp()' - Send an IPP response. */ static void respond_ipp(ippeve_client_t *client, /* I - Client */ ipp_status_t status, /* I - status-code */ const char *message, /* I - printf-style status-message */ ...) /* I - Additional args as needed */ { const char *formatted = NULL; /* Formatted message */ ippSetStatusCode(client->response, status); if (message) { va_list ap; /* Pointer to additional args */ ipp_attribute_t *attr; /* New status-message attribute */ va_start(ap, message); if ((attr = ippFindAttribute(client->response, "status-message", IPP_TAG_TEXT)) != NULL) ippSetStringfv(client->response, &attr, 0, message, ap); else attr = ippAddStringfv(client->response, IPP_TAG_OPERATION, IPP_TAG_TEXT, "status-message", NULL, message, ap); va_end(ap); formatted = ippGetString(attr, 0, NULL); } if (formatted) fprintf(stderr, "%s %s %s (%s)\n", client->hostname, ippOpString(client->operation_id), ippErrorString(status), formatted); else fprintf(stderr, "%s %s %s\n", client->hostname, ippOpString(client->operation_id), ippErrorString(status)); } /* * 'respond_unsupported()' - Respond with an unsupported attribute. */ static void respond_unsupported( ippeve_client_t *client, /* I - Client */ ipp_attribute_t *attr) /* I - Attribute */ { ipp_attribute_t *temp; /* Copy of attribute */ respond_ipp(client, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, "Unsupported %s %s%s value.", ippGetName(attr), ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr))); temp = ippCopyAttribute(client->response, attr, 0); ippSetGroupTag(client->response, &temp, IPP_TAG_UNSUPPORTED_GROUP); } /* * 'run_printer()' - Run the printer service. */ static void run_printer(ippeve_printer_t *printer) /* I - Printer */ { int num_fds; /* Number of file descriptors */ struct pollfd polldata[3]; /* poll() data */ ippeve_client_t *client; /* New client */ #ifndef _WIN32 /* * Set signal handlers for SIGINT and SIGTERM... */ signal(SIGINT, signal_handler); signal(SIGTERM, signal_handler); #endif // !_WIN32 /* * Setup poll() data for the DNS-SD service socket and IPv4/6 listeners... */ polldata[0].fd = printer->ipv4; polldata[0].events = POLLIN; polldata[1].fd = printer->ipv6; polldata[1].events = POLLIN; num_fds = 2; #ifdef HAVE_MDNSRESPONDER polldata[num_fds ].fd = DNSServiceRefSockFD(DNSSDMaster); polldata[num_fds ++].events = POLLIN; #endif /* HAVE_MDNSRESPONDER */ /* * Loop until we are killed or have a hard error... */ for (;;) { if (poll(polldata, (nfds_t)num_fds, 1000) < 0 && errno != EINTR) { perror("poll() failed"); break; } #ifndef _WIN32 if (StopPrinter) break; #endif // !_WIN32 if (polldata[0].revents & POLLIN) { if ((client = create_client(printer, printer->ipv4)) != NULL) { _cups_thread_t t = _cupsThreadCreate((_cups_thread_func_t)process_client, client); if (t) { _cupsThreadDetach(t); } else { perror("Unable to create client thread"); delete_client(client); } } } if (polldata[1].revents & POLLIN) { if ((client = create_client(printer, printer->ipv6)) != NULL) { _cups_thread_t t = _cupsThreadCreate((_cups_thread_func_t)process_client, client); if (t) { _cupsThreadDetach(t); } else { perror("Unable to create client thread"); delete_client(client); } } } /* * Process DNS-SD messages... */ #ifdef HAVE_MDNSRESPONDER if (polldata[2].revents & POLLIN) DNSServiceProcessResult(DNSSDMaster); #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_DNSSD if (printer->dnssd_collision) register_printer(printer); #endif /* HAVE_DNSSD */ /* * Clean out old jobs... */ clean_jobs(printer); } } /* * 'show_media()' - Show media load state. */ static int /* O - 1 on success, 0 on failure */ show_media(ippeve_client_t *client) /* I - Client connection */ { ippeve_printer_t *printer = client->printer; /* Printer */ int i, j, /* Looping vars */ num_ready, /* Number of ready media */ num_sizes, /* Number of media sizes */ num_sources, /* Number of media sources */ num_types; /* Number of media types */ ipp_attribute_t *media_col_ready,/* media-col-ready attribute */ *media_ready, /* media-ready attribute */ *media_sizes, /* media-supported attribute */ *media_sources, /* media-source-supported attribute */ *media_types, /* media-type-supported attribute */ *input_tray; /* printer-input-tray attribute */ ipp_t *media_col; /* media-col value */ const char *media_size, /* media value */ *media_source, /* media-source value */ *media_type, /* media-type value */ *ready_size, /* media-col-ready media-size[-name] value */ *ready_source, /* media-col-ready media-source value */ *ready_tray, /* printer-input-tray value */ *ready_type; /* media-col-ready media-type value */ char tray_str[1024], /* printer-input-tray string value */ *tray_ptr; /* Pointer into value */ int tray_len; /* Length of printer-input-tray value */ int ready_sheets; /* printer-input-tray sheets value */ int num_options = 0;/* Number of form options */ cups_option_t *options = NULL;/* Form options */ static const int sheets[] = /* Number of sheets */ { 250, 125, 50, 25, 5, 0, -2 }; if (!respond_http(client, HTTP_STATUS_OK, NULL, "text/html", 0)) return (0); html_header(client, printer->name, 0); if ((media_col_ready = ippFindAttribute(printer->attrs, "media-col-ready", IPP_TAG_BEGIN_COLLECTION)) == NULL) { html_printf(client, "

Error: No media-col-ready defined for printer.

\n"); html_footer(client); return (1); } media_ready = ippFindAttribute(printer->attrs, "media-ready", IPP_TAG_ZERO); if ((media_sizes = ippFindAttribute(printer->attrs, "media-supported", IPP_TAG_ZERO)) == NULL) { html_printf(client, "

Error: No media-supported defined for printer.

\n"); html_footer(client); return (1); } if ((media_sources = ippFindAttribute(printer->attrs, "media-source-supported", IPP_TAG_ZERO)) == NULL) { html_printf(client, "

Error: No media-source-supported defined for printer.

\n"); html_footer(client); return (1); } if ((media_types = ippFindAttribute(printer->attrs, "media-type-supported", IPP_TAG_ZERO)) == NULL) { html_printf(client, "

Error: No media-type-supported defined for printer.

\n"); html_footer(client); return (1); } if ((input_tray = ippFindAttribute(printer->attrs, "printer-input-tray", IPP_TAG_STRING)) == NULL) { html_printf(client, "

Error: No printer-input-tray defined for printer.

\n"); html_footer(client); return (1); } num_sources = ippGetCount(media_sources); /* * Make sure the number of trays is consistent. */ if (num_sources != ippGetCount(input_tray)) { html_printf(client, "

Error: Different number of trays in media-source-supported and printer-input-tray defined for printer.

\n"); html_footer(client); return (1); } num_ready = ippGetCount(media_col_ready); num_sizes = ippGetCount(media_sizes); num_types = ippGetCount(media_types); /* * Process form data if present... */ if (printer->web_forms) num_options = parse_options(client, &options); if (num_options > 0) { /* * WARNING: A real printer/server implementation MUST NOT implement * media updates via a GET request - GET requests are supposed to be * idempotent (without side-effects) and we obviously are not * authenticating access here. This form is provided solely to * enable testing and development! */ char name[255]; /* Form name */ const char *val; /* Form value */ pwg_media_t *media; /* Media info */ _cupsRWLockWrite(&printer->rwlock); ippDeleteAttribute(printer->attrs, media_col_ready); media_col_ready = NULL; if (media_ready) { ippDeleteAttribute(printer->attrs, media_ready); media_ready = NULL; } printer->state_reasons &= (ippeve_preason_t)~(IPPEVE_PREASON_MEDIA_LOW | IPPEVE_PREASON_MEDIA_EMPTY | IPPEVE_PREASON_MEDIA_NEEDED); for (i = 0; i < num_sources; i ++) { media_source = ippGetString(media_sources, i, NULL); if (!strcmp(media_source, "auto") || !strcmp(media_source, "manual") || strstr(media_source, "-man") != NULL) continue; snprintf(name, sizeof(name), "size%d", i); if ((media_size = cupsGetOption(name, num_options, options)) != NULL && (media = pwgMediaForPWG(media_size)) != NULL) { snprintf(name, sizeof(name), "type%d", i); if ((media_type = cupsGetOption(name, num_options, options)) != NULL && !*media_type) media_type = NULL; if (media_ready) ippSetString(printer->attrs, &media_ready, ippGetCount(media_ready), media_size); else media_ready = ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-ready", NULL, media_size); media_col = create_media_col(media_size, media_source, media_type, media->width, media->length, -1, -1, -1, -1); if (media_col_ready) ippSetCollection(printer->attrs, &media_col_ready, ippGetCount(media_col_ready), media_col); else media_col_ready = ippAddCollection(printer->attrs, IPP_TAG_PRINTER, "media-col-ready", media_col); ippDelete(media_col); } else media = NULL; snprintf(name, sizeof(name), "level%d", i); if ((val = cupsGetOption(name, num_options, options)) != NULL) ready_sheets = atoi(val); else ready_sheets = 0; snprintf(tray_str, sizeof(tray_str), "type=sheetFeedAuto%sRemovableTray;mediafeed=%d;mediaxfeed=%d;maxcapacity=%d;level=%d;status=0;name=%s;", !strcmp(media_source, "by-pass-tray") ? "Non" : "", media ? media->length : 0, media ? media->width : 0, strcmp(media_source, "by-pass-tray") ? 250 : 25, ready_sheets, media_source); ippSetOctetString(printer->attrs, &input_tray, i, tray_str, (int)strlen(tray_str)); if (ready_sheets == 0) { printer->state_reasons |= IPPEVE_PREASON_MEDIA_EMPTY; if (printer->active_job) printer->state_reasons |= IPPEVE_PREASON_MEDIA_NEEDED; } else if (ready_sheets < 25 && ready_sheets > 0) printer->state_reasons |= IPPEVE_PREASON_MEDIA_LOW; } if (!media_col_ready) media_col_ready = ippAddOutOfBand(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_NOVALUE, "media-col-ready"); if (!media_ready) media_ready = ippAddOutOfBand(printer->attrs, IPP_TAG_PRINTER, IPP_TAG_NOVALUE, "media-ready"); _cupsRWUnlock(&printer->rwlock); } if (printer->web_forms) html_printf(client, "
\n"); html_printf(client, "\n"); for (i = 0; i < num_sources; i ++) { media_source = ippGetString(media_sources, i, NULL); if (!strcmp(media_source, "auto") || !strcmp(media_source, "manual") || strstr(media_source, "-man") != NULL) continue; for (j = 0, ready_size = NULL, ready_type = NULL; j < num_ready; j ++) { media_col = ippGetCollection(media_col_ready, j); ready_size = ippGetString(ippFindAttribute(media_col, "media-size-name", IPP_TAG_ZERO), 0, NULL); ready_source = ippGetString(ippFindAttribute(media_col, "media-source", IPP_TAG_ZERO), 0, NULL); ready_type = ippGetString(ippFindAttribute(media_col, "media-type", IPP_TAG_ZERO), 0, NULL); if (ready_source && !strcmp(ready_source, media_source)) break; ready_source = NULL; ready_size = NULL; ready_type = NULL; } html_printf(client, "", media_source); /* * Media size... */ if (printer->web_forms) { html_printf(client, "\n"); } else if (ready_sheets == 1) html_printf(client, ", 1 sheet\n"); else if (ready_sheets > 0) html_printf(client, ", %d sheets\n", ready_sheets); else html_printf(client, "\n"); } if (printer->web_forms) { html_printf(client, "
%s:"); } else html_printf(client, "%s", ready_size); /* * Media type... */ if (printer->web_forms) { html_printf(client, " "); } else if (ready_type) html_printf(client, ", %s", ready_type); /* * Level/sheets loaded... */ if ((ready_tray = ippGetOctetString(input_tray, i, &tray_len)) != NULL) { if (tray_len > (int)(sizeof(tray_str) - 1)) tray_len = (int)sizeof(tray_str) - 1; memcpy(tray_str, ready_tray, (size_t)tray_len); tray_str[tray_len] = '\0'; if ((tray_ptr = strstr(tray_str, "level=")) != NULL) ready_sheets = atoi(tray_ptr + 6); else ready_sheets = 0; } else ready_sheets = 0; if (printer->web_forms) { html_printf(client, "
"); if (num_options > 0) html_printf(client, " Media updated.\n"); html_printf(client, "
\n"); if (num_options > 0) html_printf(client, "\n"); } else html_printf(client, "\n"); cupsFreeOptions(num_options, options); html_footer(client); return (1); } /* * 'show_status()' - Show printer/system state. */ static int /* O - 1 on success, 0 on failure */ show_status(ippeve_client_t *client) /* I - Client connection */ { ippeve_printer_t *printer = client->printer; /* Printer */ ippeve_job_t *job; /* Current job */ int i; /* Looping var */ ippeve_preason_t reason; /* Current reason */ static const char * const reasons[] = /* Reason strings */ { "Other", "Cover Open", "Input Tray Missing", "Marker Supply Empty", "Marker Supply Low", "Marker Waste Almost Full", "Marker Waste Full", "Media Empty", "Media Jam", "Media Low", "Media Needed", "Moving to Paused", "Paused", "Spool Area Full", "Toner Empty", "Toner Low" }; static const char * const state_colors[] = { /* State colors */ "#0C0", /* Idle */ "#EE0", /* Processing */ "#C00" /* Stopped */ }; if (!respond_http(client, HTTP_STATUS_OK, NULL, "text/html", 0)) return (0); html_header(client, printer->name, printer->state == IPP_PSTATE_PROCESSING ? 5 : 15); html_printf(client, "

%s Jobs

\n", state_colors[printer->state - IPP_PSTATE_IDLE], printer->name); html_printf(client, "

%s, %d job(s).", printer->state == IPP_PSTATE_IDLE ? "Idle" : printer->state == IPP_PSTATE_PROCESSING ? "Printing" : "Stopped", cupsArrayCount(printer->jobs)); for (i = 0, reason = 1; i < (int)(sizeof(reasons) / sizeof(reasons[0])); i ++, reason <<= 1) if (printer->state_reasons & reason) html_printf(client, "\n
    %s", reasons[i]); html_printf(client, "

\n"); if (cupsArrayCount(printer->jobs) > 0) { _cupsRWLockRead(&(printer->rwlock)); html_printf(client, "\n"); for (job = (ippeve_job_t *)cupsArrayFirst(printer->jobs); job; job = (ippeve_job_t *)cupsArrayNext(printer->jobs)) { char when[256], /* When job queued/started/finished */ hhmmss[64]; /* Time HH:MM:SS */ switch (job->state) { case IPP_JSTATE_PENDING : case IPP_JSTATE_HELD : snprintf(when, sizeof(when), "Queued at %s", time_string(job->created, hhmmss, sizeof(hhmmss))); break; case IPP_JSTATE_PROCESSING : case IPP_JSTATE_STOPPED : snprintf(when, sizeof(when), "Started at %s", time_string(job->processing, hhmmss, sizeof(hhmmss))); break; case IPP_JSTATE_ABORTED : snprintf(when, sizeof(when), "Aborted at %s", time_string(job->completed, hhmmss, sizeof(hhmmss))); break; case IPP_JSTATE_CANCELED : snprintf(when, sizeof(when), "Canceled at %s", time_string(job->completed, hhmmss, sizeof(hhmmss))); break; case IPP_JSTATE_COMPLETED : snprintf(when, sizeof(when), "Completed at %s", time_string(job->completed, hhmmss, sizeof(hhmmss))); break; } html_printf(client, "\n", job->id, job->name, job->username, when); } html_printf(client, "
Job #NameOwnerStatus
%d%s%s%s
\n"); _cupsRWUnlock(&(printer->rwlock)); } html_footer(client); return (1); } /* * 'show_supplies()' - Show printer supplies. */ static int /* O - 1 on success, 0 on failure */ show_supplies( ippeve_client_t *client) /* I - Client connection */ { ippeve_printer_t *printer = client->printer; /* Printer */ int i, /* Looping var */ num_supply; /* Number of supplies */ ipp_attribute_t *supply, /* printer-supply attribute */ *supply_desc; /* printer-supply-description attribute */ int num_options = 0; /* Number of form options */ cups_option_t *options = NULL; /* Form options */ int supply_len, /* Length of supply value */ level; /* Supply level */ const char *supply_value; /* Supply value */ char supply_text[1024], /* Supply string */ *supply_ptr; /* Pointer into supply string */ static const char * const printer_supply[] = { /* printer-supply values */ "index=1;class=receptacleThatIsFilled;type=wasteToner;unit=percent;" "maxcapacity=100;level=%d;colorantname=unknown;", "index=2;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=%d;colorantname=black;", "index=3;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=%d;colorantname=cyan;", "index=4;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=%d;colorantname=magenta;", "index=5;class=supplyThatIsConsumed;type=toner;unit=percent;" "maxcapacity=100;level=%d;colorantname=yellow;" }; static const char * const backgrounds[] = { /* Background colors for the supply-level bars */ "#777 linear-gradient(#333,#777)", "#000 linear-gradient(#666,#000)", "#0FF linear-gradient(#6FF,#0FF)", "#F0F linear-gradient(#F6F,#F0F)", "#CC0 linear-gradient(#EE6,#EE0)" }; static const char * const colors[] = /* Text colors for the supply-level bars */ { "#fff", "#fff", "#000", "#000", "#000" }; if (!respond_http(client, HTTP_STATUS_OK, NULL, "text/html", 0)) return (0); html_header(client, printer->name, 0); if ((supply = ippFindAttribute(printer->attrs, "printer-supply", IPP_TAG_STRING)) == NULL) { html_printf(client, "

Error: No printer-supply defined for printer.

\n"); html_footer(client); return (1); } num_supply = ippGetCount(supply); if ((supply_desc = ippFindAttribute(printer->attrs, "printer-supply-description", IPP_TAG_TEXT)) == NULL) { html_printf(client, "

Error: No printer-supply-description defined for printer.

\n"); html_footer(client); return (1); } if (num_supply != ippGetCount(supply_desc)) { html_printf(client, "

Error: Different number of values for printer-supply and printer-supply-description defined for printer.

\n"); html_footer(client); return (1); } if (printer->web_forms) num_options = parse_options(client, &options); if (num_options > 0) { /* * WARNING: A real printer/server implementation MUST NOT implement * supply updates via a GET request - GET requests are supposed to be * idempotent (without side-effects) and we obviously are not * authenticating access here. This form is provided solely to * enable testing and development! */ char name[64]; /* Form field */ const char *val; /* Form value */ _cupsRWLockWrite(&printer->rwlock); ippDeleteAttribute(printer->attrs, supply); supply = NULL; printer->state_reasons &= (ippeve_preason_t)~(IPPEVE_PREASON_MARKER_SUPPLY_EMPTY | IPPEVE_PREASON_MARKER_SUPPLY_LOW | IPPEVE_PREASON_MARKER_WASTE_ALMOST_FULL | IPPEVE_PREASON_MARKER_WASTE_FULL | IPPEVE_PREASON_TONER_EMPTY | IPPEVE_PREASON_TONER_LOW); for (i = 0; i < num_supply; i ++) { snprintf(name, sizeof(name), "supply%d", i); if ((val = cupsGetOption(name, num_options, options)) != NULL) { level = atoi(val); /* New level */ snprintf(supply_text, sizeof(supply_text), printer_supply[i], level); if (supply) ippSetOctetString(printer->attrs, &supply, ippGetCount(supply), supply_text, (int)strlen(supply_text)); else supply = ippAddOctetString(printer->attrs, IPP_TAG_PRINTER, "printer-supply", supply_text, (int)strlen(supply_text)); if (i == 0) { if (level == 100) printer->state_reasons |= IPPEVE_PREASON_MARKER_WASTE_FULL; else if (level > 90) printer->state_reasons |= IPPEVE_PREASON_MARKER_WASTE_ALMOST_FULL; } else { if (level == 0) printer->state_reasons |= IPPEVE_PREASON_TONER_EMPTY; else if (level < 10) printer->state_reasons |= IPPEVE_PREASON_TONER_LOW; } } } _cupsRWUnlock(&printer->rwlock); } if (printer->web_forms) html_printf(client, "
\n"); html_printf(client, "\n"); for (i = 0; i < num_supply; i ++) { supply_value = ippGetOctetString(supply, i, &supply_len); if (supply_len > (int)(sizeof(supply_text) - 1)) supply_len = (int)sizeof(supply_text) - 1; memcpy(supply_text, supply_value, (size_t)supply_len); supply_text[supply_len] = '\0'; if ((supply_ptr = strstr(supply_text, "level=")) != NULL) level = atoi(supply_ptr + 6); else level = 50; if (printer->web_forms) html_printf(client, "", ippGetString(supply_desc, i, NULL), i, level); else html_printf(client, "", ippGetString(supply_desc, i, NULL)); if (level < 10) html_printf(client, "\n", backgrounds[i], level * 2, level); else html_printf(client, "\n", backgrounds[i], colors[i], level * 2, level); } if (printer->web_forms) { html_printf(client, "\n
%s:
%s: %d%%
%d%%
"); if (num_options > 0) html_printf(client, " Supplies updated.\n"); html_printf(client, "
\n
\n"); if (num_options > 0) html_printf(client, "\n"); } else html_printf(client, "\n"); cupsFreeOptions(num_options, options); html_footer(client); return (1); } #ifndef _WIN32 /* * 'signal_handler()' - Handle termination signals. */ static void signal_handler(int signum) /* I - Signal number (not used) */ { (void)signum; StopPrinter = 1; } #endif // !_WIN32 /* * 'time_string()' - Return the local time in hours, minutes, and seconds. */ static char * time_string(time_t tv, /* I - Time value */ char *buffer, /* I - Buffer */ size_t bufsize) /* I - Size of buffer */ { struct tm date; /* Local time and date */ localtime_r(&tv, &date); strftime(buffer, bufsize, "%X", &date); return (buffer); } /* * 'usage()' - Show program usage. */ static void usage(int status) /* O - Exit status */ { _cupsLangPuts(stdout, _("Usage: ippeveprinter [options] \"name\"")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("--help Show program help")); _cupsLangPuts(stdout, _("--no-web-forms Disable web forms for media and supplies")); _cupsLangPuts(stdout, _("--pam-service service Use the named PAM service")); _cupsLangPuts(stdout, _("--version Show program version")); _cupsLangPuts(stdout, _("-2 Set 2-sided printing support (default=1-sided)")); _cupsLangPuts(stdout, _("-A Enable authentication")); _cupsLangPuts(stdout, _("-D device-uri Set the device URI for the printer")); _cupsLangPuts(stdout, _("-F output-type/subtype Set the output format for the printer")); #ifdef HAVE_TLS _cupsLangPuts(stdout, _("-K keypath Set location of server X.509 certificates and keys.")); #endif /* HAVE_TLS */ _cupsLangPuts(stdout, _("-M manufacturer Set manufacturer name (default=Test)")); #if !CUPS_LITE _cupsLangPuts(stdout, _("-P filename.ppd Load printer attributes from PPD file")); #endif /* !CUPS_LITE */ _cupsLangPuts(stdout, _("-S filename.strings Set strings file")); _cupsLangPuts(stdout, _("-V version Set default IPP version")); _cupsLangPuts(stdout, _("-a filename.conf Load printer attributes from conf file")); _cupsLangPuts(stdout, _("-c command Set print command")); _cupsLangPuts(stdout, _("-d spool-directory Set spool directory")); _cupsLangPuts(stdout, _("-f type/subtype[,...] Set supported file types")); _cupsLangPuts(stdout, _("-i iconfile.png[,...] Set icon file(s)")); _cupsLangPuts(stdout, _("-k Keep job spool files")); _cupsLangPuts(stdout, _("-l location Set location of printer")); _cupsLangPuts(stdout, _("-m model Set model name (default=Printer)")); _cupsLangPuts(stdout, _("-n hostname Set hostname for printer")); _cupsLangPuts(stdout, _("-p port Set port number for printer")); _cupsLangPuts(stdout, _("-r subtype,[subtype] Set DNS-SD service subtype")); _cupsLangPuts(stdout, _("-s speed[,color-speed] Set speed in pages per minute")); _cupsLangPuts(stdout, _("-v Be verbose")); exit(status); } /* * 'valid_doc_attributes()' - Determine whether the document attributes are * valid. * * When one or more document attributes are invalid, this function adds a * suitable response and attributes to the unsupported group. */ static int /* O - 1 if valid, 0 if not */ valid_doc_attributes( ippeve_client_t *client) /* I - Client */ { int valid = 1; /* Valid attributes? */ ipp_op_t op = ippGetOperation(client->request); /* IPP operation */ const char *op_name = ippOpString(op); /* IPP operation name */ ipp_attribute_t *attr, /* Current attribute */ *supported; /* xxx-supported attribute */ const char *compression = NULL, /* compression value */ *format = NULL; /* document-format value */ /* * Check operation attributes... */ if ((attr = ippFindAttribute(client->request, "compression", IPP_TAG_ZERO)) != NULL) { /* * If compression is specified, only accept a supported value in a Print-Job * or Send-Document request... */ compression = ippGetString(attr, 0, NULL); supported = ippFindAttribute(client->printer->attrs, "compression-supported", IPP_TAG_KEYWORD); if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_KEYWORD || ippGetGroupTag(attr) != IPP_TAG_OPERATION || (op != IPP_OP_PRINT_JOB && op != IPP_OP_SEND_DOCUMENT && op != IPP_OP_VALIDATE_JOB) || !ippContainsString(supported, compression)) { respond_unsupported(client, attr); valid = 0; } else { fprintf(stderr, "%s %s compression=\"%s\"\n", client->hostname, op_name, compression); ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "compression-supplied", NULL, compression); if (strcmp(compression, "none")) { if (Verbosity) fprintf(stderr, "Receiving job file with \"%s\" compression.\n", compression); httpSetField(client->http, HTTP_FIELD_CONTENT_ENCODING, compression); } } } /* * Is it a format we support? */ if ((attr = ippFindAttribute(client->request, "document-format", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_MIMETYPE || ippGetGroupTag(attr) != IPP_TAG_OPERATION) { respond_unsupported(client, attr); valid = 0; } else { format = ippGetString(attr, 0, NULL); fprintf(stderr, "%s %s document-format=\"%s\"\n", client->hostname, op_name, format); ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-supplied", NULL, format); } } else { format = ippGetString(ippFindAttribute(client->printer->attrs, "document-format-default", IPP_TAG_MIMETYPE), 0, NULL); if (!format) format = "application/octet-stream"; /* Should never happen */ attr = ippAddString(client->request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, format); } if (format && !strcmp(format, "application/octet-stream") && (ippGetOperation(client->request) == IPP_OP_PRINT_JOB || ippGetOperation(client->request) == IPP_OP_SEND_DOCUMENT)) { /* * Auto-type the file using the first 8 bytes of the file... */ unsigned char header[8]; /* First 8 bytes of file */ memset(header, 0, sizeof(header)); httpPeek(client->http, (char *)header, sizeof(header)); fprintf(stderr, "%s %s Auto-type header: %02X%02X%02X%02X%02X%02X%02X%02X\n", client->hostname, op_name, header[0], header[1], header[2], header[3], header[4], header[5], header[6], header[7]); if (!memcmp(header, "%PDF", 4)) format = "application/pdf"; else if (!memcmp(header, "%!", 2)) format = "application/postscript"; else if (!memcmp(header, "\377\330\377", 3) && header[3] >= 0xe0 && header[3] <= 0xef) format = "image/jpeg"; else if (!memcmp(header, "\211PNG", 4)) format = "image/png"; else if (!memcmp(header, "RaS2PwgR", 8)) format = "image/pwg-raster"; else if (!memcmp(header, "UNIRAST", 8)) format = "image/urf"; else format = NULL; if (format) { fprintf(stderr, "%s %s Auto-typed document-format=\"%s\"\n", client->hostname, op_name, format); ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-detected", NULL, format); } } if (op != IPP_OP_CREATE_JOB && (supported = ippFindAttribute(client->printer->attrs, "document-format-supported", IPP_TAG_MIMETYPE)) != NULL && !ippContainsString(supported, format)) { respond_unsupported(client, attr); valid = 0; } /* * document-name */ if ((attr = ippFindAttribute(client->request, "document-name", IPP_TAG_NAME)) != NULL) ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_NAME, "document-name-supplied", NULL, ippGetString(attr, 0, NULL)); return (valid); } /* * 'valid_job_attributes()' - Determine whether the job attributes are valid. * * When one or more job attributes are invalid, this function adds a suitable * response and attributes to the unsupported group. */ static int /* O - 1 if valid, 0 if not */ valid_job_attributes( ippeve_client_t *client) /* I - Client */ { int i, /* Looping var */ count, /* Number of values */ fidelity, /* "ipp-attribute-fidelity" value */ valid = 1; /* Valid attributes? */ ipp_attribute_t *attr, /* Current attribute */ *supported; /* xxx-supported attribute */ /* * Check operation attributes... */ valid = valid_doc_attributes(client); /* * Check the various job template attributes... */ if ((attr = ippFindAttribute(client->request, "ipp-attribute-fidelity", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_BOOLEAN) { respond_unsupported(client, attr); valid = 0; } } fidelity = ippGetBoolean(attr, 0); if ((attr = ippFindAttribute(client->request, "copies", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_INTEGER || ippGetInteger(attr, 0) < 1 || ippGetInteger(attr, 0) > 999) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } if ((attr = ippFindAttribute(client->request, "job-hold-until", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || (ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG && ippGetValueTag(attr) != IPP_TAG_KEYWORD) || strcmp(ippGetString(attr, 0, NULL), "no-hold")) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "job-impressions", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_INTEGER || ippGetInteger(attr, 0) < 0) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "job-name", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || (ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG)) { respond_unsupported(client, attr); valid = 0; } ippSetGroupTag(client->request, &attr, IPP_TAG_JOB); } else { ippAddString(client->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, "Untitled"); } if ((attr = ippFindAttribute(client->request, "job-priority", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_INTEGER || ippGetInteger(attr, 0) < 1 || ippGetInteger(attr, 0) > 100) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "job-sheets", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || (ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG && ippGetValueTag(attr) != IPP_TAG_KEYWORD) || strcmp(ippGetString(attr, 0, NULL), "none")) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "media", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || (ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG && ippGetValueTag(attr) != IPP_TAG_KEYWORD)) { respond_unsupported(client, attr); valid = 0; } else { supported = ippFindAttribute(client->printer->attrs, "media-supported", IPP_TAG_KEYWORD); if (!ippContainsString(supported, ippGetString(attr, 0, NULL))) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } } if ((attr = ippFindAttribute(client->request, "media-col", IPP_TAG_ZERO)) != NULL) { ipp_t *col, /* media-col collection */ *size; /* media-size collection */ ipp_attribute_t *member, /* Member attribute */ *x_dim, /* x-dimension */ *y_dim; /* y-dimension */ int x_value, /* y-dimension value */ y_value; /* x-dimension value */ if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_BEGIN_COLLECTION) { respond_unsupported(client, attr); valid = 0; } col = ippGetCollection(attr, 0); if ((member = ippFindAttribute(col, "media-size-name", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(member) != 1 || (ippGetValueTag(member) != IPP_TAG_NAME && ippGetValueTag(member) != IPP_TAG_NAMELANG && ippGetValueTag(member) != IPP_TAG_KEYWORD)) { respond_unsupported(client, attr); valid = 0; } else { supported = ippFindAttribute(client->printer->attrs, "media-supported", IPP_TAG_KEYWORD); if (!ippContainsString(supported, ippGetString(member, 0, NULL))) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } } else if ((member = ippFindAttribute(col, "media-size", IPP_TAG_BEGIN_COLLECTION)) != NULL) { if (ippGetCount(member) != 1) { respond_unsupported(client, attr); valid = 0; } else { size = ippGetCollection(member, 0); if ((x_dim = ippFindAttribute(size, "x-dimension", IPP_TAG_INTEGER)) == NULL || ippGetCount(x_dim) != 1 || (y_dim = ippFindAttribute(size, "y-dimension", IPP_TAG_INTEGER)) == NULL || ippGetCount(y_dim) != 1) { respond_unsupported(client, attr); valid = 0; } else { x_value = ippGetInteger(x_dim, 0); y_value = ippGetInteger(y_dim, 0); supported = ippFindAttribute(client->printer->attrs, "media-size-supported", IPP_TAG_BEGIN_COLLECTION); count = ippGetCount(supported); for (i = 0; i < count ; i ++) { int x_min, x_max; // Min/max width int y_min, y_max; // Min/max length size = ippGetCollection(supported, i); x_dim = ippFindAttribute(size, "x-dimension", IPP_TAG_ZERO); y_dim = ippFindAttribute(size, "y-dimension", IPP_TAG_ZERO); if (ippGetValueTag(x_dim) == IPP_TAG_INTEGER) { x_min = ippGetInteger(x_dim, 0) - 100; x_max = ippGetInteger(x_dim, 0) + 100; } else { x_min = ippGetRange(x_dim, 0, &x_max); } if (ippGetValueTag(y_dim) == IPP_TAG_INTEGER) { y_min = ippGetInteger(y_dim, 0) - 100; y_max = ippGetInteger(y_dim, 0) + 100; } else { y_min = ippGetRange(y_dim, 0, &y_max); } if ((x_value < x_min || x_value > x_max) && (y_value < y_min || y_value > y_max)) break; } if (i >= count) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } } } } if ((attr = ippFindAttribute(client->request, "multiple-document-handling", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_KEYWORD || (strcmp(ippGetString(attr, 0, NULL), "separate-documents-uncollated-copies") && strcmp(ippGetString(attr, 0, NULL), "separate-documents-collated-copies"))) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "orientation-requested", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_ENUM || ippGetInteger(attr, 0) < IPP_ORIENT_PORTRAIT || ippGetInteger(attr, 0) > IPP_ORIENT_REVERSE_PORTRAIT) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "page-ranges", IPP_TAG_ZERO)) != NULL) { if (ippGetValueTag(attr) != IPP_TAG_RANGE) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "print-quality", IPP_TAG_ZERO)) != NULL) { if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_ENUM || ippGetInteger(attr, 0) < IPP_QUALITY_DRAFT || ippGetInteger(attr, 0) > IPP_QUALITY_HIGH) { respond_unsupported(client, attr); valid = 0; } } if ((attr = ippFindAttribute(client->request, "printer-resolution", IPP_TAG_ZERO)) != NULL) { supported = ippFindAttribute(client->printer->attrs, "printer-resolution-supported", IPP_TAG_RESOLUTION); if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_RESOLUTION || !supported) { respond_unsupported(client, attr); valid = 0; } else { int xdpi, /* Horizontal resolution for job template attribute */ ydpi, /* Vertical resolution for job template attribute */ sydpi; /* Vertical resolution for supported value */ ipp_res_t units, /* Units for job template attribute */ sunits; /* Units for supported value */ xdpi = ippGetResolution(attr, 0, &ydpi, &units); count = ippGetCount(supported); for (i = 0; i < count; i ++) { if (xdpi == ippGetResolution(supported, i, &sydpi, &sunits) && ydpi == sydpi && units == sunits) break; } if (i >= count) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } } if ((attr = ippFindAttribute(client->request, "sides", IPP_TAG_ZERO)) != NULL) { const char *sides = ippGetString(attr, 0, NULL); /* "sides" value... */ if (ippGetCount(attr) != 1 || ippGetValueTag(attr) != IPP_TAG_KEYWORD) { respond_unsupported(client, attr); valid = 0; } else if ((supported = ippFindAttribute(client->printer->attrs, "sides-supported", IPP_TAG_KEYWORD)) != NULL) { if (!ippContainsString(supported, sides)) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } else if (strcmp(sides, "one-sided")) { if (fidelity) { respond_unsupported(client, attr); valid = 0; } else { respond_ignored(client, attr); ippDeleteAttribute(client->request, attr); } } } return (valid); } cups-2.4.7/tools/ippevepcl.c0000644000175000017500000002501514502571342015657 0ustar zdohnalzdohnal/* * Generic HP PCL printer command for ippeveprinter/CUPS. * * Copyright © 2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "ippevecommon.h" #include "dither.h" /* * Local globals... */ static unsigned pcl_bottom, /* Bottom line */ pcl_left, /* Left offset in line */ pcl_right, /* Right offset in line */ pcl_top, /* Top line */ pcl_blanks; /* Number of blank lines to skip */ static unsigned char pcl_white, /* White color */ *pcl_line, /* Line buffer */ *pcl_comp; /* Compression buffer */ /* * Local functions... */ static void pcl_end_page(cups_page_header2_t *header, unsigned page); static void pcl_start_page(cups_page_header2_t *header, unsigned page); static int pcl_to_pcl(const char *filename); static void pcl_write_line(cups_page_header2_t *header, unsigned y, const unsigned char *line); static int raster_to_pcl(const char *filename); /* * 'main()' - Main entry for PCL printer command. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { const char *content_type; /* Content type to print */ /* * Print it... */ if (argc > 2) { fputs("ERROR: Too many arguments supplied, aborting.\n", stderr); return (1); } else if ((content_type = getenv("CONTENT_TYPE")) == NULL) { fputs("ERROR: CONTENT_TYPE environment variable not set, aborting.\n", stderr); return (1); } else if (!strcasecmp(content_type, "application/vnd.hp-pcl")) { return (pcl_to_pcl(argv[1])); } else if (!strcasecmp(content_type, "image/pwg-raster") || !strcasecmp(content_type, "image/urf")) { return (raster_to_pcl(argv[1])); } else { fprintf(stderr, "ERROR: CONTENT_TYPE %s not supported.\n", content_type); return (1); } } /* * 'pcl_end_page()' - End of PCL page. */ static void pcl_end_page( cups_page_header2_t *header, /* I - Page header */ unsigned page) /* I - Current page */ { /* * End graphics... */ fputs("\033*r0B", stdout); /* * Formfeed as needed... */ if (!(header->Duplex && (page & 1))) putchar('\f'); /* * Free the output buffers... */ free(pcl_line); free(pcl_comp); } /* * 'pcl_start_page()' - Start a PCL page. */ static void pcl_start_page( cups_page_header2_t *header, /* I - Page header */ unsigned page) /* I - Current page */ { /* * Setup margins to be 1/6" top and bottom and 1/4" or .135" on the * left and right. */ pcl_top = header->HWResolution[1] / 6; pcl_bottom = header->cupsHeight - header->HWResolution[1] / 6 - 1; if (header->PageSize[1] == 842) { /* A4 gets special side margins to expose an 8" print area */ pcl_left = (header->cupsWidth - 8 * header->HWResolution[0]) / 2; pcl_right = pcl_left + 8 * header->HWResolution[0] - 1; } else { /* All other sizes get 1/4" margins */ pcl_left = header->HWResolution[0] / 4; pcl_right = header->cupsWidth - header->HWResolution[0] / 4 - 1; } if (!header->Duplex || (page & 1)) { /* * Set the media size... */ printf("\033&l12D\033&k12H"); /* Set 12 LPI, 10 CPI */ printf("\033&l0O"); /* Set portrait orientation */ switch (header->PageSize[1]) { case 540 : /* Monarch Envelope */ printf("\033&l80A"); break; case 595 : /* A5 */ printf("\033&l25A"); break; case 624 : /* DL Envelope */ printf("\033&l90A"); break; case 649 : /* C5 Envelope */ printf("\033&l91A"); break; case 684 : /* COM-10 Envelope */ printf("\033&l81A"); break; case 709 : /* B5 Envelope */ printf("\033&l100A"); break; case 756 : /* Executive */ printf("\033&l1A"); break; default : case 792 : /* Letter */ printf("\033&l2A"); break; case 842 : /* A4 */ printf("\033&l26A"); break; case 1008 : /* Legal */ printf("\033&l3A"); break; case 1191 : /* A3 */ printf("\033&l27A"); break; case 1224 : /* Tabloid */ printf("\033&l6A"); break; } /* * Set top margin and turn off perforation skip... */ printf("\033&l%uE\033&l0L", 12 * pcl_top / header->HWResolution[1]); if (header->Duplex) { int mode = header->Duplex ? 1 + (header->Tumble != 0) : 0; printf("\033&l%dS", mode); /* Set duplex mode */ } } else if (header->Duplex) printf("\033&a2G"); /* Print on back side */ /* * Set graphics mode... */ printf("\033*t%uR", header->HWResolution[0]); /* Set resolution */ printf("\033*r%uS", pcl_right - pcl_left + 1); /* Set width */ printf("\033*r%uT", pcl_bottom - pcl_top + 1); /* Set height */ printf("\033&a0H\033&a%uV", 720 * pcl_top / header->HWResolution[1]); /* Set position */ printf("\033*b2M"); /* Use PackBits compression */ printf("\033*r1A"); /* Start graphics */ /* * Allocate the output buffers... */ pcl_white = header->cupsBitsPerColor == 1 ? 0 : 255; pcl_blanks = 0; pcl_line = malloc(header->cupsWidth / 8 + 1); pcl_comp = malloc(2 * header->cupsBytesPerLine + 2); fprintf(stderr, "ATTR: job-impressions-completed=%d\n", page); } /* * 'pcl_to_pcl()' - Pass through PCL data. */ static int /* O - Exit status */ pcl_to_pcl(const char *filename) /* I - File to print or NULL for stdin */ { int fd; /* File to read from */ char buffer[65536]; /* Copy buffer */ ssize_t bytes; /* Bytes to write */ /* * Open the input file... */ if (filename) { if ((fd = open(filename, O_RDONLY)) < 0) { fprintf(stderr, "ERROR: Unable to open \"%s\": %s\n", filename, strerror(errno)); return (1); } } else { fd = 0; } fputs("ATTR: job-impressions=unknown\n", stderr); /* * Copy to stdout... */ while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) write(1, buffer, (size_t)bytes); /* * Close the input file... */ if (fd > 0) close(fd); return (0); } /* * 'pcl_write_line()' - Write a line of raster data. */ static void pcl_write_line( cups_page_header2_t *header, /* I - Raster information */ unsigned y, /* I - Line number */ const unsigned char *line) /* I - Pixels on line */ { unsigned x; /* Column number */ unsigned char bit, /* Current bit */ byte, /* Current byte */ *outptr, /* Pointer into output buffer */ *outend, /* End of output buffer */ *start, /* Start of sequence */ *compptr; /* Pointer into compression buffer */ unsigned count; /* Count of bytes for output */ const unsigned char *ditherline; /* Pointer into dither table */ if (line[0] == pcl_white && !memcmp(line, line + 1, header->cupsBytesPerLine - 1)) { /* * Skip blank line... */ pcl_blanks ++; return; } if (header->cupsBitsPerPixel == 1) { /* * B&W bitmap data can be used directly... */ outend = (unsigned char *)line + (pcl_right + 7) / 8; outptr = (unsigned char *)line + pcl_left / 8; } else { /* * Dither 8-bit grayscale to B&W... */ y &= 63; ditherline = threshold[y]; for (x = pcl_left, bit = 128, byte = 0, outptr = pcl_line; x <= pcl_right; x ++, line ++) { if (*line <= ditherline[x & 63]) byte |= bit; if (bit == 1) { *outptr++ = byte; byte = 0; bit = 128; } else bit >>= 1; } if (bit != 128) *outptr++ = byte; outend = outptr; outptr = pcl_line; } /* * Apply compression... */ compptr = pcl_comp; while (outptr < outend) { if ((outptr + 1) >= outend) { /* * Single byte on the end... */ *compptr++ = 0x00; *compptr++ = *outptr++; } else if (outptr[0] == outptr[1]) { /* * Repeated sequence... */ outptr ++; count = 2; while (outptr < (outend - 1) && outptr[0] == outptr[1] && count < 127) { outptr ++; count ++; } *compptr++ = (unsigned char)(257 - count); *compptr++ = *outptr++; } else { /* * Non-repeated sequence... */ start = outptr; outptr ++; count = 1; while (outptr < (outend - 1) && outptr[0] != outptr[1] && count < 127) { outptr ++; count ++; } *compptr++ = (unsigned char)(count - 1); memcpy(compptr, start, count); compptr += count; } } /* * Output the line... */ if (pcl_blanks > 0) { /* * Skip blank lines first... */ printf("\033*b%dY", pcl_blanks); pcl_blanks = 0; } printf("\033*b%dW", (int)(compptr - pcl_comp)); fwrite(pcl_comp, 1, (size_t)(compptr - pcl_comp), stdout); } /* * 'raster_to_pcl()' - Convert raster data to PCL. */ static int /* O - Exit status */ raster_to_pcl(const char *filename) /* I - File to print (NULL for stdin) */ { int fd; /* Input file */ cups_raster_t *ras; /* Raster stream */ cups_page_header2_t header; /* Page header */ unsigned page = 0, /* Current page */ y; /* Current line */ unsigned char *line; /* Line buffer */ /* * Open the input file... */ if (filename) { if ((fd = open(filename, O_RDONLY)) < 0) { fprintf(stderr, "ERROR: Unable to open \"%s\": %s\n", filename, strerror(errno)); return (1); } } else { fd = 0; } /* * Open the raster stream and send pages... */ if ((ras = cupsRasterOpen(fd, CUPS_RASTER_READ)) == NULL) { fputs("ERROR: Unable to read raster data, aborting.\n", stderr); return (1); } fputs("\033E", stdout); while (cupsRasterReadHeader2(ras, &header)) { page ++; if (header.cupsColorSpace != CUPS_CSPACE_W && header.cupsColorSpace != CUPS_CSPACE_SW && header.cupsColorSpace != CUPS_CSPACE_K) { fputs("ERROR: Unsupported color space, aborting.\n", stderr); break; } else if (header.cupsBitsPerColor != 1 && header.cupsBitsPerColor != 8) { fputs("ERROR: Unsupported bit depth, aborting.\n", stderr); break; } line = malloc(header.cupsBytesPerLine); pcl_start_page(&header, page); for (y = 0; y < header.cupsHeight; y ++) { if (cupsRasterReadPixels(ras, line, header.cupsBytesPerLine)) pcl_write_line(&header, y, line); else break; } pcl_end_page(&header, page); free(line); } cupsRasterClose(ras); fprintf(stderr, "ATTR: job-impressions=%u\n", page); return (0); } cups-2.4.7/tools/ippevecommon.h0000644000175000017500000000067414502571342016402 0ustar zdohnalzdohnal/* * Common header for IPP Everywhere printer commands for CUPS. * * Copyright © 2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #include /* * Prototypes... */ cups-2.4.7/tools/dither.h0000644000175000017500000005073114502571342015157 0ustar zdohnalzdohnal/* Simple ordered dither threshold matrix */ const unsigned char threshold[64][64] = { { 0, 235, 138, 22, 45, 98, 217, 2, 45, 98, 7, 185, 45, 97, 6, 192, 110, 37, 110, 37, 97, 45, 18, 148, 109, 37, 97, 45, 7, 185, 45, 97, 6, 192, 109, 37, 57, 82, 165, 12, 26, 130, 190, 6, 119, 31, 97, 45, 179, 8, 109, 37, 97, 45, 140, 22, 109, 37, 57, 82, 9, 177, 24, 135 }, { 109, 37, 57, 82, 20, 143, 57, 82, 146, 19, 57, 82, 15, 158, 87, 53, 20, 144, 13, 162, 138, 22, 53, 87, 162, 13, 138, 22, 57, 82, 22, 140, 57, 82, 153, 16, 119, 31, 109, 37, 109, 37, 57, 81, 19, 147, 213, 2, 53, 87, 21, 142, 13, 164, 53, 87, 187, 6, 152, 17, 119, 32, 110, 37 }, { 24, 135, 12, 167, 97, 45, 17, 151, 45, 97, 32, 119, 26, 130, 119, 32, 81, 58, 30, 121, 81, 58, 181, 8, 119, 32, 97, 45, 17, 151, 45, 97, 161, 14, 45, 97, 213, 2, 135, 24, 7, 183, 138, 22, 109, 37, 58, 81, 121, 30, 109, 37, 58, 81, 30, 121, 58, 81, 127, 27, 58, 81, 165, 12 }, { 58, 81, 31, 119, 5, 197, 58, 81, 9, 175, 206, 3, 58, 81, 10, 174, 222, 1, 45, 97, 206, 3, 124, 29, 58, 81, 4, 200, 58, 81, 2, 217, 58, 81, 27, 127, 108, 37, 58, 81, 30, 121, 58, 81, 167, 12, 25, 132, 15, 158, 5, 197, 135, 24, 206, 3, 142, 21, 45, 97, 203, 3, 119, 32 }, { 6, 190, 108, 38, 97, 45, 143, 20, 108, 38, 97, 45, 148, 18, 108, 38, 58, 81, 148, 18, 119, 32, 97, 45, 16, 153, 97, 45, 143, 20, 46, 97, 32, 119, 6, 187, 25, 132, 13, 164, 46, 97, 1, 222, 119, 32, 108, 38, 108, 38, 108, 38, 108, 38, 108, 38, 58, 81, 8, 179, 123, 29, 97, 46 }, { 58, 81, 161, 14, 147, 19, 53, 87, 22, 138, 14, 159, 87, 53, 22, 138, 14, 159, 108, 38, 87, 53, 177, 9, 53, 87, 14, 161, 58, 81, 22, 137, 12, 167, 108, 38, 108, 38, 81, 58, 153, 16, 123, 29, 53, 87, 187, 6, 162, 13, 132, 25, 11, 168, 25, 132, 12, 165, 119, 32, 81, 58, 14, 161 }, { 140, 22, 108, 38, 81, 58, 8, 181, 108, 38, 97, 46, 8, 181, 58, 81, 31, 119, 7, 185, 147, 19, 58, 81, 127, 27, 97, 46, 8, 179, 108, 38, 58, 81, 21, 142, 13, 162, 5, 194, 108, 38, 58, 81, 15, 156, 87, 53, 30, 121, 108, 38, 108, 38, 58, 81, 127, 27, 97, 46, 16, 153, 97, 46 }, { 58, 81, 2, 217, 123, 29, 36, 111, 1, 227, 138, 22, 97, 46, 4, 203, 108, 38, 108, 38, 97, 46, 23, 137, 222, 1, 112, 36, 58, 81, 6, 192, 137, 23, 53, 87, 30, 121, 58, 80, 23, 137, 183, 7, 36, 111, 26, 130, 59, 80, 0, 235, 130, 26, 192, 6, 46, 97, 222, 1, 53, 87, 194, 5 }, { 17, 151, 46, 97, 172, 10, 59, 80, 27, 127, 59, 80, 18, 148, 59, 80, 172, 10, 24, 135, 4, 200, 80, 59, 36, 112, 167, 12, 137, 23, 108, 38, 97, 46, 0, 235, 46, 97, 144, 20, 46, 97, 127, 27, 53, 87, 3, 206, 147, 19, 108, 38, 108, 38, 80, 59, 151, 17, 80, 59, 27, 127, 96, 46 }, { 58, 81, 126, 27, 96, 46, 15, 156, 46, 97, 172, 10, 46, 96, 14, 159, 119, 32, 59, 80, 32, 119, 156, 15, 53, 87, 27, 127, 59, 80, 21, 142, 10, 172, 80, 59, 177, 9, 80, 59, 2, 213, 59, 80, 14, 161, 108, 38, 59, 79, 23, 137, 11, 168, 137, 23, 46, 96, 32, 119, 13, 164, 140, 22 }, { 6, 190, 152, 17, 112, 36, 59, 79, 6, 187, 59, 79, 30, 121, 108, 38, 96, 46, 15, 156, 46, 96, 29, 123, 183, 7, 46, 96, 209, 3, 46, 96, 32, 118, 26, 130, 96, 46, 15, 158, 46, 96, 16, 153, 46, 96, 32, 118, 10, 172, 108, 38, 108, 38, 59, 79, 179, 8, 141, 21, 59, 79, 32, 119 }, { 87, 53, 36, 112, 203, 4, 137, 23, 96, 46, 23, 137, 4, 200, 24, 135, 235, 0, 87, 53, 8, 179, 108, 38, 87, 53, 15, 156, 53, 87, 156, 15, 59, 79, 156, 15, 119, 32, 59, 79, 30, 121, 59, 79, 6, 190, 151, 17, 59, 79, 187, 6, 26, 130, 3, 206, 108, 38, 96, 46, 206, 3, 110, 37 }, { 142, 21, 59, 79, 28, 126, 59, 79, 144, 20, 59, 79, 119, 32, 60, 79, 32, 118, 27, 129, 87, 53, 3, 209, 118, 32, 60, 79, 126, 28, 96, 46, 5, 194, 46, 96, 197, 5, 134, 24, 7, 183, 137, 23, 46, 96, 36, 112, 28, 126, 108, 38, 108, 38, 60, 79, 148, 18, 118, 32, 60, 79, 167, 12 }, { 37, 109, 174, 10, 46, 95, 10, 174, 47, 95, 170, 11, 47, 95, 9, 177, 47, 95, 14, 159, 118, 32, 60, 79, 170, 11, 134, 24, 183, 7, 112, 36, 79, 60, 140, 22, 108, 38, 107, 38, 107, 39, 79, 60, 17, 149, 60, 79, 213, 2, 24, 135, 177, 9, 159, 14, 47, 95, 9, 175, 137, 23, 47, 95 }, { 0, 235, 60, 79, 18, 149, 87, 53, 217, 2, 53, 87, 156, 15, 86, 53, 16, 153, 54, 86, 167, 12, 137, 23, 107, 39, 60, 79, 36, 112, 172, 10, 147, 19, 47, 95, 19, 147, 9, 175, 132, 25, 1, 227, 36, 110, 9, 175, 112, 36, 60, 79, 30, 121, 60, 79, 126, 28, 112, 36, 60, 79, 19, 147 }, { 37, 109, 140, 22, 47, 95, 30, 121, 60, 78, 30, 121, 61, 78, 32, 118, 61, 78, 200, 4, 112, 36, 61, 78, 19, 147, 227, 1, 47, 95, 27, 129, 86, 54, 2, 217, 54, 86, 28, 126, 61, 78, 126, 28, 61, 78, 129, 26, 95, 47, 15, 158, 47, 95, 20, 144, 1, 222, 95, 47, 6, 190, 47, 95 }, { 13, 164, 61, 78, 4, 200, 162, 13, 24, 134, 183, 7, 24, 134, 213, 2, 142, 21, 123, 29, 95, 47, 192, 6, 107, 39, 86, 54, 153, 16, 54, 86, 30, 121, 61, 78, 30, 121, 95, 47, 170, 11, 47, 95, 10, 172, 47, 94, 179, 8, 61, 78, 4, 200, 107, 39, 61, 78, 22, 140, 61, 78, 23, 137 }, { 37, 109, 31, 120, 107, 39, 107, 39, 107, 39, 107, 39, 61, 78, 121, 30, 107, 39, 61, 78, 19, 146, 86, 54, 23, 137, 13, 164, 61, 77, 200, 4, 159, 14, 131, 25, 13, 164, 4, 200, 86, 54, 18, 148, 54, 86, 203, 4, 94, 47, 19, 146, 47, 94, 23, 137, 13, 161, 47, 94, 17, 151, 47, 94 }, { 26, 131, 6, 187, 158, 15, 26, 131, 4, 203, 26, 131, 177, 9, 47, 94, 14, 159, 10, 174, 94, 47, 151, 17, 61, 77, 32, 118, 27, 129, 118, 32, 107, 39, 107, 39, 86, 54, 126, 28, 118, 32, 61, 77, 31, 120, 77, 61, 126, 28, 86, 54, 14, 161, 107, 39, 77, 61, 6, 190, 61, 77, 3, 206 }, { 107, 39, 61, 77, 121, 30, 86, 54, 121, 30, 107, 39, 61, 77, 16, 153, 107, 39, 86, 54, 1, 222, 94, 47, 8, 179, 47, 94, 174, 10, 54, 86, 11, 168, 5, 194, 144, 20, 86, 54, 17, 152, 3, 209, 162, 13, 134, 24, 12, 167, 123, 29, 61, 77, 7, 185, 136, 23, 47, 94, 32, 118, 27, 127 }, { 164, 13, 144, 20, 94, 47, 174, 10, 61, 77, 11, 170, 123, 29, 37, 110, 5, 194, 123, 29, 86, 54, 20, 143, 61, 77, 3, 206, 61, 77, 18, 148, 118, 32, 85, 54, 32, 118, 177, 9, 85, 55, 28, 126, 106, 39, 106, 39, 61, 77, 0, 235, 118, 32, 106, 39, 61, 77, 19, 147, 177, 9, 81, 58 }, { 106, 39, 77, 61, 222, 1, 94, 47, 18, 149, 48, 93, 227, 1, 85, 55, 29, 123, 168, 11, 112, 36, 85, 55, 33, 117, 27, 129, 117, 33, 106, 39, 94, 47, 149, 18, 77, 61, 27, 129, 117, 33, 61, 77, 20, 144, 6, 190, 117, 33, 55, 85, 159, 14, 26, 131, 3, 209, 117, 32, 94, 47, 16, 153 }, { 5, 194, 123, 29, 55, 85, 19, 146, 62, 77, 126, 28, 37, 110, 156, 15, 62, 77, 36, 112, 17, 151, 194, 5, 151, 17, 77, 62, 17, 152, 2, 217, 175, 9, 93, 47, 227, 0, 48, 93, 6, 192, 168, 11, 117, 33, 77, 62, 161, 14, 140, 22, 106, 39, 106, 39, 106, 39, 62, 77, 28, 126, 81, 58 }, { 47, 94, 153, 16, 123, 29, 85, 55, 5, 197, 152, 17, 62, 77, 29, 123, 10, 174, 48, 93, 28, 126, 106, 39, 93, 48, 8, 181, 106, 39, 62, 77, 33, 117, 144, 20, 62, 77, 18, 148, 106, 39, 106, 39, 93, 48, 18, 147, 48, 93, 33, 117, 192, 6, 164, 13, 131, 26, 14, 158, 227, 1, 140, 22 }, { 13, 164, 85, 55, 10, 174, 117, 33, 106, 39, 93, 48, 10, 172, 106, 39, 62, 77, 2, 209, 62, 77, 161, 14, 142, 21, 62, 77, 33, 117, 143, 20, 106, 39, 93, 48, 22, 138, 48, 93, 158, 15, 131, 26, 1, 217, 85, 55, 200, 4, 106, 39, 105, 39, 105, 40, 105, 40, 105, 40, 105, 40, 87, 53 }, { 85, 55, 120, 31, 62, 77, 6, 187, 142, 21, 123, 29, 85, 55, 5, 194, 123, 29, 37, 110, 179, 8, 117, 33, 85, 55, 23, 136, 6, 192, 62, 77, 10, 174, 5, 197, 62, 77, 8, 179, 105, 40, 105, 40, 85, 55, 120, 31, 62, 77, 167, 12, 26, 131, 15, 158, 5, 194, 168, 11, 147, 19, 118, 32 }, { 135, 24, 3, 209, 136, 23, 105, 40, 62, 76, 209, 3, 123, 29, 63, 76, 15, 155, 63, 76, 27, 129, 93, 48, 0, 235, 105, 40, 93, 48, 17, 151, 48, 93, 33, 116, 16, 155, 37, 110, 4, 203, 162, 13, 24, 134, 11, 168, 136, 23, 105, 40, 105, 40, 105, 40, 63, 76, 126, 28, 85, 55, 6, 190 }, { 37, 109, 33, 117, 63, 76, 21, 142, 12, 165, 48, 93, 16, 155, 123, 29, 93, 48, 11, 170, 48, 93, 16, 155, 55, 85, 170, 11, 136, 23, 63, 76, 146, 19, 63, 76, 27, 129, 76, 63, 27, 129, 116, 33, 76, 63, 33, 117, 63, 76, 19, 147, 217, 2, 168, 11, 142, 21, 48, 93, 120, 31, 80, 59 }, { 175, 9, 93, 49, 10, 172, 105, 40, 63, 76, 125, 28, 85, 55, 8, 179, 117, 33, 84, 55, 197, 5, 55, 84, 27, 129, 116, 33, 93, 49, 213, 2, 49, 93, 11, 170, 49, 93, 172, 10, 105, 40, 93, 49, 5, 194, 49, 93, 192, 6, 116, 33, 63, 76, 120, 31, 63, 76, 3, 206, 162, 13, 26, 131 }, { 37, 109, 18, 149, 63, 76, 0, 235, 131, 26, 187, 6, 116, 33, 84, 55, 1, 222, 140, 22, 63, 76, 33, 116, 8, 179, 84, 55, 158, 15, 55, 84, 27, 129, 84, 55, 217, 2, 55, 84, 20, 144, 10, 174, 55, 84, 149, 18, 122, 29, 93, 49, 20, 143, 49, 93, 15, 158, 116, 33, 105, 40, 80, 59 }, { 138, 22, 93, 49, 22, 138, 105, 40, 105, 40, 63, 76, 159, 14, 136, 23, 63, 75, 33, 116, 164, 13, 144, 20, 93, 49, 5, 194, 63, 75, 33, 116, 185, 7, 116, 33, 75, 63, 31, 120, 104, 40, 75, 63, 31, 120, 104, 41, 75, 63, 181, 8, 84, 55, 6, 192, 104, 41, 84, 55, 21, 142, 217, 2 }, { 84, 55, 197, 5, 55, 84, 19, 146, 13, 164, 140, 22, 104, 41, 93, 49, 18, 149, 49, 93, 28, 125, 63, 75, 125, 28, 93, 49, 21, 141, 11, 168, 63, 75, 165, 12, 24, 134, 15, 158, 209, 3, 26, 131, 15, 158, 1, 227, 144, 20, 49, 93, 16, 153, 63, 75, 23, 136, 10, 172, 63, 75, 120, 30 }, { 14, 161, 75, 63, 177, 8, 116, 33, 75, 63, 33, 116, 2, 213, 175, 9, 63, 75, 190, 6, 92, 49, 2, 213, 152, 17, 111, 36, 63, 75, 36, 112, 27, 129, 111, 36, 104, 41, 104, 41, 104, 41, 104, 41, 104, 41, 104, 41, 75, 63, 125, 28, 92, 49, 14, 161, 104, 41, 92, 49, 7, 185, 49, 92 }, { 47, 94, 144, 20, 122, 30, 92, 49, 5, 197, 49, 92, 28, 125, 92, 49, 143, 20, 49, 92, 18, 149, 75, 63, 36, 112, 11, 168, 222, 1, 49, 92, 203, 4, 55, 84, 190, 6, 162, 13, 26, 130, 190, 6, 164, 13, 26, 130, 13, 162, 206, 3, 122, 30, 84, 55, 0, 235, 122, 30, 84, 55, 16, 152 }, { 6, 192, 116, 33, 75, 63, 16, 155, 63, 74, 15, 156, 64, 74, 20, 143, 84, 55, 22, 138, 92, 49, 143, 20, 49, 92, 27, 129, 55, 84, 156, 15, 56, 84, 16, 155, 116, 33, 104, 41, 104, 41, 104, 41, 104, 41, 104, 41, 103, 41, 64, 74, 181, 8, 115, 33, 64, 74, 152, 17, 122, 30, 80, 59 }, { 103, 41, 92, 49, 213, 2, 49, 92, 28, 125, 92, 49, 6, 185, 92, 49, 3, 206, 64, 74, 7, 185, 64, 74, 190, 6, 64, 74, 31, 120, 64, 74, 33, 117, 103, 41, 64, 74, 20, 144, 8, 181, 24, 134, 15, 158, 5, 197, 141, 21, 122, 30, 56, 84, 19, 146, 13, 164, 50, 91, 203, 4, 112, 36 }, { 24, 134, 12, 167, 56, 84, 34, 115, 172, 10, 136, 23, 64, 74, 18, 149, 92, 49, 18, 149, 91, 49, 15, 156, 50, 91, 20, 144, 7, 183, 24, 134, 183, 7, 24, 134, 235, 0, 50, 91, 31, 120, 64, 74, 125, 28, 115, 34, 64, 74, 161, 14, 115, 34, 103, 41, 64, 74, 125, 28, 37, 110, 165, 12 }, { 103, 41, 64, 74, 23, 136, 185, 7, 103, 41, 91, 50, 20, 143, 50, 91, 22, 138, 56, 84, 31, 120, 64, 74, 31, 120, 103, 41, 103, 41, 64, 74, 31, 120, 103, 41, 64, 74, 125, 28, 91, 50, 217, 2, 103, 41, 91, 50, 10, 174, 50, 91, 22, 140, 200, 4, 134, 24, 7, 183, 65, 74, 28, 126 }, { 227, 1, 146, 19, 103, 41, 65, 74, 21, 142, 227, 1, 65, 74, 6, 190, 65, 74, 9, 175, 0, 235, 24, 134, 206, 3, 162, 13, 130, 26, 213, 2, 50, 91, 13, 162, 131, 26, 185, 7, 152, 17, 65, 74, 170, 11, 144, 20, 56, 84, 1, 222, 103, 41, 103, 41, 103, 41, 91, 50, 175, 9, 50, 91 }, { 49, 93, 33, 116, 6, 187, 136, 23, 50, 91, 33, 116, 18, 149, 50, 91, 19, 147, 103, 41, 103, 41, 102, 41, 102, 42, 102, 42, 102, 42, 65, 74, 21, 141, 102, 42, 102, 42, 65, 74, 125, 28, 115, 34, 102, 42, 65, 74, 31, 119, 65, 74, 167, 12, 26, 130, 12, 165, 115, 34, 84, 56, 151, 17 }, { 148, 18, 102, 42, 102, 42, 84, 56, 174, 10, 102, 42, 65, 74, 22, 140, 65, 74, 159, 14, 131, 26, 11, 168, 26, 131, 15, 158, 7, 185, 159, 14, 50, 91, 5, 197, 168, 11, 141, 21, 50, 91, 179, 8, 24, 134, 4, 203, 162, 13, 142, 21, 102, 42, 102, 42, 65, 74, 2, 217, 140, 22, 80, 59 }, { 49, 92, 9, 175, 24, 133, 3, 209, 65, 74, 19, 146, 185, 7, 90, 50, 3, 209, 102, 42, 65, 74, 31, 120, 102, 42, 65, 74, 31, 120, 65, 73, 34, 115, 27, 129, 115, 34, 56, 84, 203, 4, 111, 36, 65, 73, 125, 28, 102, 42, 65, 73, 23, 136, 192, 6, 136, 23, 102, 42, 90, 50, 6, 187 }, { 31, 119, 102, 42, 102, 42, 90, 50, 138, 22, 102, 42, 65, 73, 125, 28, 65, 73, 21, 141, 194, 5, 50, 90, 192, 6, 141, 21, 50, 90, 21, 141, 6, 187, 102, 42, 65, 73, 16, 155, 122, 30, 90, 50, 14, 161, 50, 90, 34, 115, 200, 4, 102, 42, 102, 42, 84, 56, 18, 149, 115, 34, 79, 59 }, { 209, 3, 25, 133, 6, 187, 146, 19, 65, 73, 203, 4, 134, 24, 11, 168, 111, 36, 102, 42, 65, 73, 19, 147, 102, 42, 65, 73, 1, 227, 102, 42, 65, 73, 19, 146, 217, 2, 115, 34, 56, 84, 17, 152, 73, 65, 177, 9, 151, 17, 73, 65, 165, 12, 131, 26, 175, 9, 73, 65, 9, 174, 24, 134 }, { 33, 117, 102, 42, 65, 73, 34, 115, 11, 170, 115, 34, 65, 73, 36, 111, 181, 7, 168, 11, 136, 23, 50, 90, 161, 14, 146, 19, 50, 90, 159, 14, 136, 23, 102, 42, 102, 42, 73, 65, 7, 183, 90, 50, 1, 227, 50, 90, 36, 111, 27, 129, 115, 34, 72, 65, 34, 115, 27, 127, 111, 36, 79, 59 }, { 50, 90, 164, 13, 141, 21, 102, 42, 102, 42, 90, 50, 15, 156, 50, 90, 27, 127, 115, 34, 66, 72, 2, 217, 102, 42, 66, 72, 22, 138, 102, 42, 66, 72, 167, 12, 133, 25, 12, 165, 37, 110, 28, 125, 72, 66, 143, 20, 72, 66, 179, 8, 90, 50, 235, 0, 51, 90, 203, 4, 90, 50, 7, 183 }, { 17, 152, 101, 42, 66, 72, 235, 0, 25, 133, 8, 181, 66, 72, 222, 1, 101, 43, 90, 50, 17, 152, 51, 90, 23, 136, 185, 7, 51, 90, 9, 175, 203, 4, 114, 34, 72, 66, 125, 28, 72, 66, 172, 10, 146, 19, 90, 51, 209, 3, 51, 90, 153, 16, 56, 84, 16, 155, 56, 84, 16, 155, 87, 53 }, { 84, 56, 6, 192, 151, 17, 114, 35, 72, 66, 35, 114, 27, 127, 37, 110, 17, 152, 197, 5, 84, 56, 14, 161, 101, 43, 72, 66, 18, 149, 72, 66, 125, 28, 90, 51, 190, 6, 51, 90, 3, 206, 51, 90, 35, 114, 11, 170, 66, 72, 159, 14, 66, 72, 28, 125, 66, 72, 31, 119, 66, 72, 127, 27 }, { 111, 36, 66, 72, 124, 28, 90, 51, 16, 155, 51, 90, 16, 155, 66, 72, 29, 124, 66, 72, 124, 29, 66, 72, 5, 192, 136, 23, 51, 90, 144, 19, 51, 90, 149, 18, 56, 83, 18, 149, 66, 72, 142, 20, 101, 43, 84, 56, 31, 119, 83, 56, 35, 114, 170, 10, 25, 133, 183, 7, 133, 25, 1, 222 }, { 172, 10, 141, 21, 51, 90, 170, 11, 83, 56, 4, 200, 89, 51, 11, 170, 52, 89, 21, 141, 183, 7, 114, 35, 101, 43, 66, 72, 2, 213, 66, 72, 8, 179, 66, 72, 22, 140, 52, 89, 147, 19, 52, 89, 203, 4, 133, 25, 8, 181, 25, 133, 4, 200, 101, 43, 66, 72, 114, 35, 83, 56, 36, 111 }, { 28, 126, 66, 72, 3, 206, 37, 110, 29, 124, 72, 66, 31, 119, 71, 66, 4, 203, 101, 43, 67, 71, 167, 12, 25, 133, 12, 165, 52, 89, 29, 124, 89, 52, 0, 235, 52, 89, 177, 9, 56, 83, 11, 170, 114, 35, 67, 71, 35, 114, 101, 43, 67, 71, 35, 114, 2, 213, 52, 89, 177, 9, 79, 59 }, { 51, 90, 15, 156, 122, 30, 67, 71, 8, 181, 133, 25, 185, 7, 141, 21, 52, 89, 16, 155, 114, 35, 101, 43, 101, 43, 67, 71, 36, 111, 165, 12, 136, 23, 56, 83, 31, 119, 67, 71, 35, 114, 127, 27, 89, 52, 15, 156, 52, 89, 167, 12, 133, 25, 12, 165, 83, 56, 16, 155, 89, 52, 15, 156 }, { 6, 192, 101, 43, 89, 52, 148, 18, 101, 43, 101, 43, 101, 43, 67, 71, 124, 29, 67, 71, 0, 235, 25, 133, 200, 4, 133, 25, 183, 7, 101, 43, 67, 71, 19, 146, 187, 6, 133, 25, 217, 2, 67, 71, 8, 181, 67, 71, 1, 222, 114, 35, 101, 43, 67, 71, 31, 119, 67, 71, 31, 119, 79, 59 }, { 51, 90, 23, 135, 10, 172, 67, 71, 24, 135, 222, 1, 26, 130, 15, 158, 10, 174, 114, 35, 100, 43, 67, 71, 31, 119, 67, 70, 35, 114, 21, 141, 5, 194, 114, 35, 100, 43, 100, 43, 89, 52, 16, 155, 52, 89, 27, 127, 122, 30, 56, 83, 197, 5, 132, 25, 8, 181, 25, 133, 206, 3, 137, 23 }, { 18, 149, 100, 43, 89, 52, 194, 5, 100, 43, 100, 43, 100, 43, 100, 43, 68, 70, 7, 185, 26, 131, 175, 9, 52, 88, 11, 170, 100, 43, 100, 43, 100, 43, 68, 70, 21, 141, 12, 165, 111, 36, 68, 70, 35, 113, 16, 155, 56, 83, 16, 155, 113, 35, 68, 70, 35, 113, 68, 70, 113, 35, 79, 59 }, { 52, 88, 227, 1, 135, 24, 68, 70, 167, 12, 26, 130, 13, 162, 209, 3, 135, 24, 100, 43, 100, 43, 83, 56, 18, 148, 56, 83, 1, 222, 162, 13, 132, 25, 12, 167, 52, 88, 35, 113, 7, 183, 25, 133, 4, 203, 56, 83, 175, 9, 122, 30, 88, 52, 15, 156, 52, 88, 168, 11, 52, 88, 181, 8 }, { 27, 129, 113, 35, 88, 52, 20, 143, 100, 43, 100, 43, 100, 43, 99, 43, 68, 70, 19, 146, 5, 194, 113, 35, 68, 70, 35, 113, 29, 124, 99, 44, 99, 44, 68, 70, 2, 213, 68, 70, 29, 124, 99, 44, 68, 70, 31, 119, 99, 44, 70, 68, 177, 9, 70, 68, 227, 1, 83, 56, 16, 153, 56, 83 }, { 170, 11, 70, 68, 10, 174, 68, 70, 19, 146, 197, 5, 158, 15, 130, 26, 175, 9, 113, 35, 56, 83, 21, 140, 3, 209, 152, 17, 56, 83, 21, 141, 4, 197, 122, 30, 88, 52, 16, 153, 52, 88, 165, 12, 132, 25, 183, 7, 25, 132, 213, 2, 88, 52, 143, 20, 52, 88, 119, 31, 68, 70, 32, 118 }, { 88, 52, 19, 147, 88, 52, 213, 2, 99, 44, 99, 44, 99, 44, 99, 44, 99, 44, 68, 70, 161, 14, 111, 36, 99, 44, 68, 70, 7, 183, 99, 44, 70, 68, 16, 153, 122, 30, 70, 68, 5, 197, 113, 35, 68, 70, 35, 113, 68, 70, 35, 113, 29, 124, 68, 70, 24, 135, 187, 6, 25, 132, 3, 209 }, { 31, 119, 70, 68, 124, 29, 82, 57, 21, 141, 13, 164, 132, 25, 187, 6, 25, 132, 217, 2, 122, 30, 70, 68, 18, 148, 122, 30, 37, 110, 16, 153, 122, 30, 56, 82, 10, 172, 113, 35, 99, 44, 88, 52, 0, 235, 52, 88, 14, 159, 52, 88, 17, 152, 5, 194, 99, 44, 99, 44, 99, 44, 79, 60 }, { 13, 162, 200, 4, 167, 11, 111, 36, 68, 70, 119, 31, 68, 70, 119, 31, 98, 44, 98, 45, 87, 52, 6, 190, 53, 87, 9, 177, 57, 82, 30, 122, 8, 179, 113, 35, 69, 68, 7, 185, 132, 25, 12, 164, 57, 82, 17, 152, 69, 69, 177, 9, 69, 69, 35, 113, 165, 12, 26, 130, 11, 168, 132, 25 }, { 37, 109, 69, 69, 36, 111, 17, 151, 190, 6, 53, 87, 1, 227, 53, 87, 10, 174, 130, 26, 14, 159, 69, 69, 20, 143, 69, 69, 206, 3, 98, 45, 69, 69, 1, 227, 142, 21, 98, 45, 98, 45, 69, 69, 124, 29, 37, 110, 5, 197, 87, 53, 20, 143, 53, 87, 29, 124, 98, 45, 98, 45, 79, 60 }, { 26, 130, 14, 159, 53, 87, 29, 124, 82, 57, 18, 148, 82, 57, 18, 148, 98, 45, 98, 45, 87, 53, 138, 22, 53, 87, 124, 29, 37, 110, 165, 12, 142, 21, 98, 45, 69, 69, 24, 135, 3, 209, 132, 25, 181, 8, 82, 57, 27, 127, 113, 35, 82, 57, 177, 9, 57, 82, 213, 2, 25, 132, 6, 187 }, { 37, 109, 61, 78, 8, 179, 61, 78, 20, 143, 66, 72, 22, 138, 66, 72, 24, 135, 4, 200, 175, 9, 72, 66, 1, 227, 151, 17, 72, 66, 29, 124, 68, 70, 24, 135, 181, 8, 98, 45, 98, 45, 98, 45, 68, 70, 18, 148, 70, 68, 17, 151, 222, 1, 70, 68, 18, 148, 112, 35, 98, 45, 78, 61 } }; cups-2.4.7/tools/Makefile0000644000175000017500000001007314502571342015162 0ustar zdohnalzdohnal# # IPP tools makefile for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs OBJS = \ ippevepcl.o \ ippeveprinter.o \ ippeveps.o \ ippfind.o \ ipptool.o IPPTOOLS = \ ippeveprinter \ $(IPPFIND_BIN) \ ipptool TARGETS = \ $(IPPEVECOMMANDS) \ $(IPPTOOLS) \ $(LOCALTARGET) # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(IPPTOOLS) $(IPPEVECOMMANDS) $(OBJS) $(RM) ippeveprinter-static ippfind-static ipptool-static # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: echo Installing IPP tools in $(BINDIR)... $(INSTALL_DIR) -m 755 $(BINDIR) for file in $(IPPTOOLS); do \ $(INSTALL_BIN) $$file $(BINDIR); \ done echo Installing printer commands in $(SERVERBIN)/command... $(INSTALL_DIR) -m 755 $(SERVERBIN)/command for file in $(IPPEVECOMMANDS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/command; \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(IPPTOOLS) $(IPPEVECOMMANDS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done; \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Unnstall all targets... # uninstall: echo Uninstalling IPP tools from $(BINDIR)... for file in $(IPPTOOLS); do \ $(RM) $(BINDIR)/$$file; \ done -$(RMDIR) $(BINDIR) echo Uninstalling print commands from $(SERVERBIN)/command... for file in $(IPPEVECOMMANDS); do \ $(RM) $(SERVERBIN)/command/$$file; \ done -$(RMDIR) $(SERVERBIN)/ippeveprinter # # Local programs (not built when cross-compiling...) # local: ippeveprinter-static ipptool-static # # ippeveprinter # ippeveprinter: ippeveprinter.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ippeveprinter.o $(DNSSDLIBS) $(PAMLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ippeveprinter-static # ippeveprinter-static: ippeveprinter.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ippeveprinter.o $(PAMLIBS) $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ippevepcl # ippevepcl: ippevepcl.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ippevepcl.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ippeveps # ippeveps: ippeveps.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ippeveps.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ippfind # ippfind: ippfind.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ippfind.o $(DNSSDLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ippfind-static # ippfind-static: ippfind.o ../cups/$(LIBCUPSSTATIC) echo Linking $@ $(LD_CC) $(ALL_LDFLAGS) -o $@ ippfind.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ipptool # ipptool: ipptool.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ipptool.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ipptool-static # ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ ipptool.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Generate the header containing the data for printer.png... # pngheader: echo "Generating printer-png.h from printer.png..." echo "static const unsigned char printer_png[] =" >printer-png.h echo "{" >>printer-png.h od -t x1 printer.png | cut -b12- | awk '{printf(" "); for (i = 1; i <= NF; i ++) printf("0x%s,", $$i); print "";}' >>printer-png.h echo "};" >>printer-png.h # # Dependencies... # include Dependencies cups-2.4.7/tools/Dependencies0000644000175000017500000000351314502571342016034 0ustar zdohnalzdohnalippevepcl.o: ippevepcl.c ippevecommon.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h ../cups/raster.h \ ../cups/string-private.h ../config.h dither.h ippeveprinter.o: ippeveprinter.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/debug-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h printer-png.h printer-lg-png.h \ printer-sm-png.h ippeveps.o: ippeveps.c ippevecommon.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h ../cups/raster.h \ ../cups/string-private.h ../config.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/pwg-private.h ippfind.o: ippfind.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ipptool.o: ipptool.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h cups-2.4.7/test/0000755000175000017500000000000014502571342013340 5ustar zdohnalzdohnalcups-2.4.7/test/waitjobs.sh0000755000175000017500000000174014502571342015523 0ustar zdohnalzdohnal#!/bin/sh # # Script to wait for jobs to complete. # # Copyright © 2008-2019 by Apple Inc. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Get timeout from command-line # if test $# = 1; then timeout=$1 else timeout=360 fi # # Figure out the proper echo options... # if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then ac_n=-n ac_c= else ac_n= ac_c='\c' fi # # Check whether we have any jobs to wait for... # jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '` if test $jobs = 0; then exit 0 fi # # We do, let the tester know what is going on... # echo $ac_n "Waiting for jobs to complete...$ac_c" oldjobs=0 while test $timeout -gt 0; do jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '` if test $jobs = 0; then break fi if test $jobs != $oldjobs; then echo $ac_n "$jobs...$ac_c" oldjobs=$jobs fi sleep 5 timeout=`expr $timeout - 5` done echo "" cups-2.4.7/test/testps.ppd0000644000175000017500000002057514502571342015400 0ustar zdohnalzdohnal*PPD-Adobe: "4.3" *% *% Test PS PPD file for CUPS. *% *% Copyright © 2007-2018 by Apple Inc. *% Copyright © 1997-2005 by Easy Software Products. *% *% Licensed under Apache License v2.0. See the file "LICENSE" for more *% information. *% *FormatVersion: "4.3" *FileVersion: "2.3" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "TESTPS.PPD" *Manufacturer: "Apple" *Product: "(CUPS v2.3)" *ModelName: "Test PS Printer" *ShortNickName: "Test PS Printer" *NickName: "Test PS Printer CUPS v2.3" *PSVersion: "(3010.000) 550" *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "1" *LandscapeOrientation: Plus90 *VariablePaperSize: False *TTRasterizer: Type42 *UIConstraints: *PageSize Executive *InputSlot Envelope *UIConstraints: *PageSize Letter *InputSlot Envelope *UIConstraints: *PageSize Legal *InputSlot Envelope *UIConstraints: *PageSize Tabloid *InputSlot Envelope *UIConstraints: *PageSize A3 *InputSlot Envelope *UIConstraints: *PageSize A4 *InputSlot Envelope *UIConstraints: *PageSize A5 *InputSlot Envelope *UIConstraints: *PageSize B5 *InputSlot Envelope *UIConstraints: *Resolution 600dpi *ColorModel CMYK *OpenUI *PageSize/Media Size: PickOne *OrderDependency: 10 AnySetup *PageSize *DefaultPageSize: Letter *PageSize Letter/US Letter: "<>setpagedevice" *PageSize Legal/US Legal: "<>setpagedevice" *PageSize Executive/US Executive: "<>setpagedevice" *PageSize Tabloid/US Tabloid: "<>setpagedevice" *PageSize A3/A3: "<>setpagedevice" *PageSize A4/A4: "<>setpagedevice" *PageSize A5/A5: "<>setpagedevice" *PageSize B5/B5 (JIS): "<>setpagedevice" *PageSize EnvISOB5/Envelope B5: "<>setpagedevice" *PageSize Env10/Envelope #10: "<>setpagedevice" *PageSize EnvC5/Envelope C5: "<>setpagedevice" *PageSize EnvDL/Envelope DL: "<>setpagedevice" *PageSize EnvMonarch/Envelope Monarch: "<>setpagedevice" *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 10 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion Letter/US Letter: "<>setpagedevice" *PageRegion Legal/US Legal: "<>setpagedevice" *PageRegion Executive/US Executive: "<>setpagedevice" *PageRegion Tabloid/US Tabloid: "<>setpagedevice" *PageRegion A3/A3: "<>setpagedevice" *PageRegion A4/A4: "<>setpagedevice" *PageRegion A5/A5: "<>setpagedevice" *PageRegion B5/B5 (JIS): "<>setpagedevice" *PageRegion EnvISOB5/Envelope B5: "<>setpagedevice" *PageRegion Env10/Envelope #10: "<>setpagedevice" *PageRegion EnvC5/Envelope C5: "<>setpagedevice" *PageRegion EnvDL/Envelope DL: "<>setpagedevice" *PageRegion EnvMonarch/Envelope Monarch: "<>setpagedevice" *CloseUI: *PageRegion *DefaultImageableArea: Letter *ImageableArea Letter/US Letter: "18 36 594 756" *ImageableArea Legal/US Legal: "18 36 594 972" *ImageableArea Executive/US Executive: "18 36 504 684" *ImageableArea Tabloid/US Tabloid: "18 36 774 1188" *ImageableArea A3/A3: "18 36 824 1155" *ImageableArea A4/A4: "18 36 577 806" *ImageableArea A5/A5: "18 36 403 559" *ImageableArea B5/JIS B5: "18 36 498 693" *ImageableArea EnvISOB5/B5 (ISO): "18 36 463 673" *ImageableArea Env10/Com-10: "18 36 279 648" *ImageableArea EnvC5/EnvC5: "18 36 441 613" *ImageableArea EnvDL/EnvDL: "18 36 294 588" *ImageableArea EnvMonarch/Envelope Monarch: "18 36 261 504" *DefaultPaperDimension: Letter *PaperDimension Letter/US Letter: "612 792" *PaperDimension Legal/US Legal: "612 1008" *PaperDimension Executive/US Executive: "522 756" *PaperDimension Tabloid/US Tabloid: "792 1224" *PaperDimension A3/A3: "842 1191" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "421 595" *PaperDimension B5/B5 (JIS): "516 729" *PaperDimension EnvISOB5/Envelope B5: "499 709" *PaperDimension Env10/Envelope #10: "297 684" *PaperDimension EnvC5/Envelope C5: "459 649" *PaperDimension EnvDL/Envelope DL: "312 624" *PaperDimension EnvMonarch/Envelope Monarch: "279 540" *OpenUI *MediaType/Media Type: PickOne *OrderDependency: 10 AnySetup *MediaType *DefaultMediaType: Plain *MediaType Plain/Plain Paper: "<>setpagedevice" *MediaType Bond/Bond Paper: "<>setpagedevice" *MediaType Special/Special Paper: "<>setpagedevice" *MediaType Transparency/Transparency: "<>setpagedevice" *MediaType Glossy/Glossy Paper: "<>setpagedevice" *CloseUI: *MediaType *OpenUI *InputSlot/Media Source: PickOne *OrderDependency: 10 AnySetup *InputSlot *DefaultInputSlot: Tray *InputSlot Tray/Tray: "<>setpagedevice" *InputSlot Manual/Manual Feed: "<>setpagedevice" *InputSlot Envelope/Envelope Feed: "<>setpagedevice" *CloseUI: *InputSlot *OpenUI *Resolution/Output Resolution: PickOne *OrderDependency: 20 AnySetup *Resolution *DefaultResolution: 100dpi *Resolution 75dpi/75 DPI: "<>setpagedevice" *Resolution 100dpi/100 DPI: "<>setpagedevice" *CloseUI: *Resolution *OpenUI *ColorModel/Output Mode: PickOne *OrderDependency: 10 AnySetup *ColorModel *DefaultColorModel: CMYK *ColorModel CMYK/CMYK Color: "<>setpagedevice" *ColorModel RGB/CMY Color: "<>setpagedevice" *ColorModel Gray/Grayscale: "<>setpagedevice" *CloseUI: *ColorModel *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM cups-2.4.7/test/testhp.ppd0000644000175000017500000002117114502571342015356 0ustar zdohnalzdohnal*PPD-Adobe: "4.3" *% *% Test HP PPD file for CUPS. *% *% Copyright © 2007-2018 by Apple Inc. *% Copyright © 1997-2005 by Easy Software Products. *% *% Licensed under Apache License v2.0. See the file "LICENSE" for more *% information. *% *FormatVersion: "4.3" *FileVersion: "2.3" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "TESTHP.PPD" *Manufacturer: "ESP" *Product: "(CUPS v2.3)" *cupsVersion: 2.3 *cupsManualCopies: True *cupsFilter: "application/vnd.cups-raster 50 rastertohp" *cupsFilter2: "application/vnd.cups-raster application/vnd.hp-pcl 50 rastertohp" *ModelName: "Test HP Printer" *ShortNickName: "Test HP Printer" *NickName: "Test HP Printer CUPS v2.3" *PSVersion: "(3010.000) 550" *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "1" *LandscapeOrientation: Plus90 *VariablePaperSize: False *TTRasterizer: Type42 *UIConstraints: *PageSize Executive *InputSlot Envelope *UIConstraints: *PageSize Letter *InputSlot Envelope *UIConstraints: *PageSize Legal *InputSlot Envelope *UIConstraints: *PageSize Tabloid *InputSlot Envelope *UIConstraints: *PageSize A3 *InputSlot Envelope *UIConstraints: *PageSize A4 *InputSlot Envelope *UIConstraints: *PageSize A5 *InputSlot Envelope *UIConstraints: *PageSize B5 *InputSlot Envelope *UIConstraints: *Resolution 600dpi *ColorModel CMYK *OpenUI *PageSize/Media Size: PickOne *OrderDependency: 10 AnySetup *PageSize *DefaultPageSize: Letter *PageSize Letter/US Letter: "<>setpagedevice" *PageSize Legal/US Legal: "<>setpagedevice" *PageSize Executive/US Executive: "<>setpagedevice" *PageSize Tabloid/US Tabloid: "<>setpagedevice" *PageSize A3/A3: "<>setpagedevice" *PageSize A4/A4: "<>setpagedevice" *PageSize A5/A5: "<>setpagedevice" *PageSize B5/B5 (JIS): "<>setpagedevice" *PageSize EnvISOB5/Envelope B5: "<>setpagedevice" *PageSize Env10/Envelope #10: "<>setpagedevice" *PageSize EnvC5/Envelope C5: "<>setpagedevice" *PageSize EnvDL/Envelope DL: "<>setpagedevice" *PageSize EnvMonarch/Envelope Monarch: "<>setpagedevice" *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 10 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion Letter/US Letter: "<>setpagedevice" *PageRegion Legal/US Legal: "<>setpagedevice" *PageRegion Executive/US Executive: "<>setpagedevice" *PageRegion Tabloid/US Tabloid: "<>setpagedevice" *PageRegion A3/A3: "<>setpagedevice" *PageRegion A4/A4: "<>setpagedevice" *PageRegion A5/A5: "<>setpagedevice" *PageRegion B5/B5 (JIS): "<>setpagedevice" *PageRegion EnvISOB5/Envelope B5: "<>setpagedevice" *PageRegion Env10/Envelope #10: "<>setpagedevice" *PageRegion EnvC5/Envelope C5: "<>setpagedevice" *PageRegion EnvDL/Envelope DL: "<>setpagedevice" *PageRegion EnvMonarch/Envelope Monarch: "<>setpagedevice" *CloseUI: *PageRegion *DefaultImageableArea: Letter *ImageableArea Letter/US Letter: "18 36 594 756" *ImageableArea Legal/US Legal: "18 36 594 972" *ImageableArea Executive/US Executive: "18 36 504 684" *ImageableArea Tabloid/US Tabloid: "18 36 774 1188" *ImageableArea A3/A3: "18 36 824 1155" *ImageableArea A4/A4: "18 36 577 806" *ImageableArea A5/A5: "18 36 403 559" *ImageableArea B5/JIS B5: "18 36 498 693" *ImageableArea EnvISOB5/B5 (ISO): "18 36 463 673" *ImageableArea Env10/Com-10: "18 36 279 648" *ImageableArea EnvC5/EnvC5: "18 36 441 613" *ImageableArea EnvDL/EnvDL: "18 36 294 588" *ImageableArea EnvMonarch/Envelope Monarch: "18 36 261 504" *DefaultPaperDimension: Letter *PaperDimension Letter/US Letter: "612 792" *PaperDimension Legal/US Legal: "612 1008" *PaperDimension Executive/US Executive: "522 756" *PaperDimension Tabloid/US Tabloid: "792 1224" *PaperDimension A3/A3: "842 1191" *PaperDimension A4/A4: "595 842" *PaperDimension A5/A5: "421 595" *PaperDimension B5/B5 (JIS): "516 729" *PaperDimension EnvISOB5/Envelope B5: "499 709" *PaperDimension Env10/Envelope #10: "297 684" *PaperDimension EnvC5/Envelope C5: "459 649" *PaperDimension EnvDL/Envelope DL: "312 624" *PaperDimension EnvMonarch/Envelope Monarch: "279 540" *OpenUI *MediaType/Media Type: PickOne *OrderDependency: 10 AnySetup *MediaType *DefaultMediaType: Plain *MediaType Plain/Plain Paper: "<>setpagedevice" *MediaType Bond/Bond Paper: "<>setpagedevice" *MediaType Special/Special Paper: "<>setpagedevice" *MediaType Transparency/Transparency: "<>setpagedevice" *MediaType Glossy/Glossy Paper: "<>setpagedevice" *CloseUI: *MediaType *OpenUI *InputSlot/Media Source: PickOne *OrderDependency: 10 AnySetup *InputSlot *DefaultInputSlot: Tray *InputSlot Tray/Tray: "<>setpagedevice" *InputSlot Manual/Manual Feed: "<>setpagedevice" *InputSlot Envelope/Envelope Feed: "<>setpagedevice" *CloseUI: *InputSlot *OpenUI *Resolution/Output Resolution: PickOne *OrderDependency: 20 AnySetup *Resolution *DefaultResolution: 300dpi *Resolution 150dpi/150 DPI: "<>setpagedevice" *Resolution 300dpi/300 DPI: "<>setpagedevice" *Resolution 600dpi/600 DPI: "<>setpagedevice" *CloseUI: *Resolution *OpenUI *ColorModel/Output Mode: PickOne *OrderDependency: 10 AnySetup *ColorModel *DefaultColorModel: CMYK *ColorModel CMYK/CMYK Color: "<>setpagedevice" *ColorModel RGB/CMY Color: "<>setpagedevice" *ColorModel Gray/Grayscale: "<>setpagedevice" *CloseUI: *ColorModel *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM cups-2.4.7/test/test.convs0000644000175000017500000000056114502571342015373 0ustar zdohnalzdohnal# Test file listing potential filters for conversions application/pdf application/vnd.cups-pdf 100 pdftopdf application/pdf application/postscript 100 pdftops application/pdf application/vnd.cups-raster 100 pdftoraster application/postscript application/vnd.cups-raster 100 pstoraster image/jpeg application/pdf 100 imagetopdf text/plain application/pdf 100 texttopdf cups-2.4.7/test/str-trailer.html0000644000175000017500000000002214502571342016470 0ustar zdohnalzdohnal cups-2.4.7/test/str-header.html0000644000175000017500000000244114502571342016265 0ustar zdohnalzdohnal CUPS Software Test Report

CUPS Software Test Report

This software test report provides detailed test results that are used to evaluate the stability and standards compliance of the CUPS software.

Document Overview

This software test plan is organized into the following sections:

cups-2.4.7/test/run-stp-tests.sh0000755000175000017500000010207014502571342016447 0ustar zdohnalzdohnal#!/bin/sh # # Perform the complete set of IPP compliance tests specified in the # CUPS Software Test Plan. # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2021 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # argcount=$# # # Don't allow "make check" or "make test" to be run by root... # if test "x`id -u`" = x0; then echo Please run this as a normal user. Not supported when run as root. exit 1 fi # # Force the permissions of the files we create... # umask 022 # # Make the IPP test program... # make # # Solaris has a non-POSIX grep in /bin... # if test -x /usr/xpg4/bin/grep; then GREP=/usr/xpg4/bin/grep else GREP=grep fi # # Figure out the proper echo options... # if (echo "testing\c"; echo 1,2,3) | $GREP c >/dev/null; then ac_n=-n ac_c= else ac_n= ac_c='\c' fi # # Greet the tester... # echo "Welcome to the CUPS Automated Test Script." echo "" echo "Before we begin, it is important that you understand that the larger" echo "tests require significant amounts of RAM and disk space. If you" echo "attempt to run one of the big tests on a system that lacks sufficient" echo "disk and virtual memory, the UNIX kernel might decide to kill one or" echo "more system processes that you've grown attached to, like the X" echo "server. The question you may want to ask yourself before running a" echo "large test is: Do you feel lucky?" echo "" echo "OK, now that we have the Dirty Harry quote out of the way, please" echo "choose the type of test you wish to perform:" echo "" echo "0 - No testing, keep the scheduler running for me (all systems)" echo "1 - Basic conformance test, no load testing (all systems)" echo "2 - Basic conformance test, some load testing (minimum 256MB VM, 50MB disk)" echo "3 - Basic conformance test, extreme load testing (minimum 1GB VM, 500MB disk)" echo "4 - Basic conformance test, torture load testing (minimum 2GB VM, 1GB disk)" echo "" echo $ac_n "Enter the number of the test you wish to perform: [1] $ac_c" if test $# -gt 0; then testtype=$1 shift else read testtype fi echo "" case "$testtype" in 0) echo "Running in test mode (0)" nprinters=0 pjobs=0 pprinters=0 loglevel="debug2" ;; 2) echo "Running the medium tests (2)" nprinters=20 pjobs=20 pprinters=10 loglevel="debug" ;; 3) echo "Running the extreme tests (3)" nprinters=1000 pjobs=100 pprinters=50 loglevel="debug" ;; 4) echo "Running the torture tests (4)" nprinters=20000 pjobs=200 pprinters=100 loglevel="debug" ;; *) echo "Running the timid tests (1)" nprinters=0 pjobs=10 pprinters=0 loglevel="debug2" testtype="1" ;; esac # # See if we want to do SSL testing... # echo "" echo "Now you can choose whether to create a SSL/TLS encryption key and" echo "certificate for testing:" echo "" echo "0 - Do not do SSL/TLS encryption tests" echo "1 - Test but do not require encryption" echo "2 - Test and require encryption" echo "" echo $ac_n "Enter the number of the SSL/TLS tests to perform: [0] $ac_c" if test $# -gt 0; then ssltype=$1 shift else read ssltype fi echo "" case "$ssltype" in 1) echo "Will test but not require encryption (1)" ;; 2) echo "Will test and require encryption (2)" ;; *) echo "Not using SSL/TLS (0)" ssltype=0 ;; esac # # Information for the server/tests... # user="$USER" if test -z "$user"; then if test -x /usr/ucb/whoami; then user=`/usr/ucb/whoami` else user=`whoami` fi if test -z "$user"; then user="unknown" fi fi port="${CUPS_TESTPORT:=8631}" cwd=`pwd` root=`dirname $cwd` CUPS_TESTROOT="$root"; export CUPS_TESTROOT BASE="${CUPS_TESTBASE:=}" if test -z "$BASE"; then if test -d /private/tmp; then BASE=/private/tmp/cups-$user else BASE=/tmp/cups-$user fi fi export BASE # # Make sure that the LPDEST and PRINTER environment variables are # not included in the environment that is passed to the tests. These # will usually cause tests to fail erroneously... # unset LPDEST unset PRINTER # # See if we want to use valgrind... # echo "" echo "This test script can use the Valgrind software from:" echo "" echo " http://developer.kde.org/~sewardj/" echo "" echo $ac_n "Enter Y to use Valgrind or N to not use Valgrind: [N] $ac_c" if test $# -gt 0; then usevalgrind=$1 shift else read usevalgrind fi echo "" case "$usevalgrind" in Y* | y*) VALGRIND="valgrind --tool=memcheck --log-file=$BASE/log/valgrind.%p --error-limit=no --leak-check=yes --trace-children=yes" if test `uname` = Darwin; then VALGRIND="$VALGRIND --dsymutil=yes" fi export VALGRIND echo "Using Valgrind; log files can be found in $BASE/log..." ;; *) VALGRIND="" export VALGRIND ;; esac # # See if we want to do debug logging of the libraries... # echo "" echo "If CUPS was built with the --enable-debug-printfs configure option, you" echo "can enable debug logging of the libraries." echo "" echo $ac_n "Enter Y or a number from 0 to 9 to enable debug logging or N to not: [N] $ac_c" if test $# -gt 0; then usedebugprintfs=$1 shift else read usedebugprintfs fi echo "" case "$usedebugprintfs" in Y* | y*) echo "Enabling debug printfs (level 5); log files can be found in $BASE/log..." CUPS_DEBUG_LOG="$BASE/log/debug_printfs.%d"; export CUPS_DEBUG_LOG CUPS_DEBUG_LEVEL=5; export CUPS_DEBUG_LEVEL CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend).*$'; export CUPS_DEBUG_FILTER ;; 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) echo "Enabling debug printfs (level $usedebugprintfs); log files can be found in $BASE/log..." CUPS_DEBUG_LOG="$BASE/log/debug_printfs.%d"; export CUPS_DEBUG_LOG CUPS_DEBUG_LEVEL="$usedebugprintfs"; export CUPS_DEBUG_LEVEL CUPS_DEBUG_FILTER='^(http|_http|ipp|_ipp|cups.*Request|cupsGetResponse|cupsSend).*$'; export CUPS_DEBUG_FILTER ;; *) ;; esac # # Start by creating temporary directories for the tests... # echo "Creating directories for test..." rm -rf $BASE mkdir $BASE mkdir $BASE/bin mkdir $BASE/bin/backend mkdir $BASE/bin/driver mkdir $BASE/bin/filter mkdir $BASE/certs mkdir $BASE/share mkdir $BASE/share/banners mkdir $BASE/share/drv mkdir $BASE/share/locale for file in ../locale/cups_*.po; do loc=`basename $file .po | cut -c 6-` mkdir $BASE/share/locale/$loc ln -s $root/locale/cups_$loc.po $BASE/share/locale/$loc done mkdir $BASE/share/locale/en ln -s $root/locale/cups.pot $BASE/share/locale/en/cups_en.po mkdir $BASE/share/mime mkdir $BASE/share/model mkdir $BASE/share/ppdc mkdir $BASE/interfaces mkdir $BASE/log mkdir $BASE/ppd mkdir $BASE/spool mkdir $BASE/spool/temp mkdir $BASE/ssl ln -s $root/backend/dnssd $BASE/bin/backend ln -s $root/backend/http $BASE/bin/backend ln -s $root/backend/ipp $BASE/bin/backend ln -s ipp $BASE/bin/backend/ipps ln -s $root/backend/lpd $BASE/bin/backend ln -s $root/backend/mdns $BASE/bin/backend ln -s $root/backend/pseudo $BASE/bin/backend ln -s $root/backend/snmp $BASE/bin/backend ln -s $root/backend/socket $BASE/bin/backend ln -s $root/backend/usb $BASE/bin/backend ln -s $root/cgi-bin $BASE/bin ln -s $root/monitor $BASE/bin ln -s $root/notifier $BASE/bin ln -s $root/scheduler $BASE/bin/daemon ln -s $root/filter/commandtops $BASE/bin/filter ln -s $root/filter/gziptoany $BASE/bin/filter ln -s $root/filter/pstops $BASE/bin/filter ln -s $root/filter/rastertoepson $BASE/bin/filter ln -s $root/filter/rastertohp $BASE/bin/filter ln -s $root/filter/rastertolabel $BASE/bin/filter ln -s $root/filter/rastertopwg $BASE/bin/filter cat >$BASE/share/banners/standard <$BASE/share/banners/classified <"$BASE/bin/filter/$dst" </dev/null case "\$5" in *media=a4* | *media=iso_a4* | *PageSize=A4*) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-a4.pdf" ;; *) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-letter.pdf" ;; esac EOF chmod +x "$BASE/bin/filter/$dst" ;; ps) cat >"$BASE/bin/filter/$dst" </dev/null case "\$5" in *media=a4* | *media=iso_a4* | *PageSize=A4*) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-a4.ps" ;; *) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-letter.ps" ;; esac EOF chmod +x "$BASE/bin/filter/$dst" ;; raster) cat >"$BASE/bin/filter/$dst" </dev/null case "\$5" in *media=a4* | *media=iso_a4* | *PageSize=A4*) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-a4-300-black-1.pwg" ;; *) gziptoany "$1" "$2" "$3" "$4" "$5" "$root/examples/onepage-letter-300-black-1.pwg" ;; esac EOF chmod +x "$BASE/bin/filter/$dst" ;; esac } ln -s $root/test/test.convs $BASE/share/mime if test `uname` = Darwin; then instfilter cgimagetopdf imagetopdf pdf instfilter cgpdftopdf pdftopdf passthru instfilter cgpdftops pdftops ps instfilter cgpdftoraster pdftoraster raster instfilter cgtexttopdf texttopdf pdf instfilter pstocupsraster pstoraster raster else instfilter imagetopdf imagetopdf pdf instfilter pdftopdf pdftopdf passthru instfilter pdftops pdftops ps instfilter pdftoraster pdftoraster raster instfilter pstoraster pstoraster raster instfilter texttopdf texttopdf pdf if test -d /usr/share/cups/charsets; then ln -s /usr/share/cups/charsets $BASE/share fi fi # # Then create the necessary config files... # echo "Creating cupsd.conf for test..." if test $ssltype = 2; then encryption="Encryption Required" else encryption="" fi if test $testtype = 0; then jobhistory="30m" jobfiles="5m" else jobhistory="30" jobfiles="Off" fi cat >$BASE/cupsd.conf < Order Allow,Deny $encryption EOF if test $testtype = 0; then echo WebInterface yes >>$BASE/cupsd.conf fi cat >$BASE/cups-files.conf <> $BASE/cups-files.conf fi # # Setup lots of test queues with PPD files... # echo "Creating printers.conf for test..." i=1 while test $i -le $nprinters; do cat >>$BASE/printers.conf < Accepting Yes DeviceURI file:/dev/null Info Test PS printer $i JobSheets none none Location CUPS test suite State Idle StateMessage Printer $1 is idle. EOF cp testps.ppd $BASE/ppd/test-$i.ppd i=`expr $i + 1` done if test -f $BASE/printers.conf; then cp $BASE/printers.conf $BASE/printers.conf.orig else touch $BASE/printers.conf.orig fi # # Create a helper script to run programs with... # echo "Setting up environment variables for test..." if test "x$ASAN_OPTIONS" = x; then # AddressSanitizer on Linux reports memory leaks from the main function # which is basically useless - in general, programs do not need to free # every object before exit since the OS will recover the process's # memory. ASAN_OPTIONS="detect_leaks=false" export ASAN_OPTIONS fi if test -f "$root/cups/libcups.so.2"; then if test "x$LD_LIBRARY_PATH" = x; then LD_LIBRARY_PATH="$root/cups" else LD_LIBRARY_PATH="$root/cups:$LD_LIBRARY_PATH" fi LD_PRELOAD="$root/cups/libcups.so.2:$root/cups/libcupsimage.so.2" if test `uname` = SunOS -a -r /usr/lib/libCrun.so.1; then LD_PRELOAD="/usr/lib/libCrun.so.1:$LD_PRELOAD" fi fi if test -f "$root/cups/libcups.2.dylib"; then if test "x$DYLD_INSERT_LIBRARIES" = x; then DYLD_INSERT_LIBRARIES="$root/cups/libcups.2.dylib:$root/cups/libcupsimage.2.dylib" else DYLD_INSERT_LIBRARIES="$root/cups/libcups.2.dylib:$root/cups/libcupsimage.2.dylib:$DYLD_INSERT_LIBRARIES" fi if test "x$DYLD_LIBRARY_PATH" = x; then DYLD_LIBRARY_PATH="$root/cups" else DYLD_LIBRARY_PATH="$root/cups:$DYLD_LIBRARY_PATH" fi fi # These get exported because they don't have side-effects... CUPS_DISABLE_APPLE_DEFAULT=yes; export CUPS_DISABLE_APPLE_DEFAULT CUPS_SERVER=localhost:$port; export CUPS_SERVER CUPS_SERVERROOT=$BASE; export CUPS_SERVERROOT CUPS_STATEDIR=$BASE; export CUPS_STATEDIR CUPS_DATADIR=$BASE/share; export CUPS_DATADIR IPP_PORT=$port; export IPP_PORT LOCALEDIR=$BASE/share/locale; export LOCALEDIR echo "Creating wrapper script..." runcups="$BASE/runcups"; export runcups echo "#!/bin/sh" >$runcups echo "# Helper script for running CUPS test instance." >>$runcups echo "" >>$runcups echo "# Set required environment variables..." >>$runcups echo "CUPS_DATADIR=\"$CUPS_DATADIR\"; export CUPS_DATADIR" >>$runcups echo "CUPS_SERVER=\"$CUPS_SERVER\"; export CUPS_SERVER" >>$runcups echo "CUPS_SERVERROOT=\"$CUPS_SERVERROOT\"; export CUPS_SERVERROOT" >>$runcups echo "CUPS_STATEDIR=\"$CUPS_STATEDIR\"; export CUPS_STATEDIR" >>$runcups echo "DYLD_INSERT_LIBRARIES=\"$DYLD_INSERT_LIBRARIES\"; export DYLD_INSERT_LIBRARIES" >>$runcups echo "DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH\"; export DYLD_LIBRARY_PATH" >>$runcups # IPP_PORT=$port; export IPP_PORT echo "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\"; export LD_LIBRARY_PATH" >>$runcups echo "LD_PRELOAD=\"$LD_PRELOAD\"; export LD_PRELOAD" >>$runcups echo "LOCALEDIR=\"$LOCALEDIR\"; export LOCALEDIR" >>$runcups if test "x$CUPS_DEBUG_LEVEL" != x; then echo "CUPS_DEBUG_FILTER='$CUPS_DEBUG_FILTER'; export CUPS_DEBUG_FILTER" >>$runcups echo "CUPS_DEBUG_LEVEL=$CUPS_DEBUG_LEVEL; export CUPS_DEBUG_LEVEL" >>$runcups echo "CUPS_DEBUG_LOG='$CUPS_DEBUG_LOG'; export CUPS_DEBUG_LOG" >>$runcups fi echo "" >>$runcups echo "# Run command..." >>$runcups echo "exec \"\$@\"" >>$runcups chmod +x $runcups # # Set a new home directory to avoid getting user options mixed in... # HOME=$BASE export HOME # # Force POSIX locale for tests... # LANG=C export LANG LC_MESSAGES=C export LC_MESSAGES # # Start the server; run as foreground daemon in the background... # echo "Starting scheduler:" echo " $runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &" echo "" $runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 & cupsd=$! if test "x$testtype" = x0; then # Not running tests... echo "Scheduler is PID $cupsd and is listening on port $port." echo "" echo "The $runcups helper script can be used to test programs" echo "with the server." exit 0 fi if test $argcount -eq 0; then echo "Scheduler is PID $cupsd; run debugger now if you need to." echo "" echo $ac_n "Press ENTER to continue... $ac_c" read junk else echo "Scheduler is PID $cupsd." sleep 2 fi tries=0 while test $tries -lt 30; do running=`$runcups ../systemv/lpstat -r 2>/dev/null` if test "x$running" = "xscheduler is running"; then break fi echo "Waiting for scheduler to become ready..." sleep 10 tries=`expr $tries + 1` done # # Create the test report source file... # date=`date "+%Y-%m-%d"` strfile=$BASE/cups-str-$date-$user.html rm -f $strfile cat str-header.html >$strfile # # Run the IPP tests... # echo "" echo "Running IPP compliance tests..." echo "

1 - IPP Compliance Tests

" >>$strfile echo "

This section provides the results to the IPP compliance tests" >>$strfile echo " outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile echo " $date by $user on `hostname`." >>$strfile echo "

" >>$strfile

fail=0
for file in 4*.test ../examples/ipp-2.1.test; do
	echo $ac_n "Performing `basename $file`: $ac_c"
	echo "" >>$strfile
        echo $ac_n "`date '+[%d/%b/%Y:%H:%M:%S %z]'` $ac_c" >>$strfile

	if test $file = ../examples/ipp-2.1.test; then
		uri="ipp://localhost:$port/printers/Test1"
		options="-V 2.1 -d NOPRINT=1 -f testfile.ps"
	else
		uri="ipp://localhost:$port/printers"
		options=""
	fi
	$runcups $VALGRIND ../tools/ipptool -tI $options $uri $file >> $strfile
	status=$?

	if test $status != 0; then
		echo FAIL
		fail=`expr $fail + 1`
	else
		echo PASS
	fi
done

echo "    
" >>$strfile # # Run the command tests... # echo "" echo "Running command tests..." echo "

2 - Command Tests

" >>$strfile echo "

This section provides the results to the command tests" >>$strfile echo " outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile echo " $date by $user on `hostname`." >>$strfile echo "

" >>$strfile

for file in 5*.sh; do
	# Wait for jobs from the previous test to complete before running the
	# next test...
	if test $file != 5.1-lpadmin.sh; then
		./waitjobs.sh 1800
	fi

	# Run the test...
	echo $ac_n "Performing $file: $ac_c"
	echo "" >>$strfile
        echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"$file\":" >>$strfile

	sh $file $pjobs $pprinters >> $strfile
	status=$?

	if test $status != 0; then
		echo FAIL
		fail=`expr $fail + 1`
	else
		echo PASS
	fi
done

#
# Restart the server...
#

echo $ac_n "Performing restart test: $ac_c"
echo "" >>$strfile
echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"5.10-restart\":" >>$strfile

kill -HUP $cupsd

while true; do
	sleep 10

	running=`$runcups ../systemv/lpstat -r 2>/dev/null`
	if test "x$running" = "xscheduler is running"; then
		break
	fi
done

description="`$runcups ../systemv/lpstat -l -p Test1 | grep Description | sed -e '1,$s/^[^:]*: //g'`"
if test "x$description" != "xTest Printer 1"; then
	echo "Failed, printer-info for Test1 is '$description', expected 'Test Printer 1'." >>$strfile
	echo "FAIL (got '$description', expected 'Test Printer 1')"
	fail=`expr $fail + 1`
else
	echo "Passed." >>$strfile
	echo PASS
fi


#
# Perform job history test...
#

echo $ac_n "Starting history test: $ac_c"
echo "" >>$strfile
echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"5.11-history\":" >>$strfile

echo "    lp -d Test1 testfile.jpg" >>$strfile

$runcups ../systemv/lp -d Test1 ../examples/testfile.jpg 2>&1 >>$strfile
if test $? != 0; then
	echo "FAIL (unable to queue test job)"
	echo "    FAILED" >>$strfile
	fail=`expr $fail + 1`
else
	echo "PASS"
	echo "    PASSED" >>$strfile

	sleep 5
	./waitjobs.sh >>$strfile

        echo $ac_n "Verifying that history still exists: $ac_c"

	echo "    ls -l $BASE/spool" >>$strfile
	count=`ls -1 $BASE/spool | wc -l`
	if test $count = 1; then
		echo "FAIL (job control files not present)"
		ls -l $BASE/spool
		echo "    FAILED (job control files not present)" >>$strfile
		ls -l $BASE/spool >>$strfile
		fail=`expr $fail + 1`
	else
		echo "PASS"
		echo "    PASSED" >>$strfile

		echo $ac_n "Waiting for job history to expire: $ac_c"
		echo "" >>$strfile
		echo "    sleep 35" >>$strfile
		sleep 35

		echo "    lpstat" >>$strfile
		$runcups ../systemv/lpstat 2>&1 >>$strfile

		echo "    ls -l $BASE/spool" >>$strfile
		count=`ls -1 $BASE/spool | wc -l`
		if test $count != 1; then
			echo "FAIL (job control files still present)"
			ls -l $BASE/spool
			echo "    FAILED (job control files still present)" >>$strfile
			ls -l $BASE/spool >>$strfile
			fail=`expr $fail + 1`
		else
			echo "PASS"
			echo "    PASSED" >>$strfile
		fi
	fi
fi


#
# Perform job history test with cupsd restart...
#

echo $ac_n "Starting history test with cupsd restart: $ac_c"
echo "" >>$strfile
echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"5.11-history-cupsd-restart\":" >>$strfile

echo "    lp -d Test1 testfile.jpg" >>$strfile

$runcups ../systemv/lp -d Test1 ../examples/testfile.jpg 2>&1 >>$strfile
if test $? != 0; then
	echo "FAIL (unable to queue test job)"
	echo "    FAILED" >>$strfile
	fail=`expr $fail + 1`
else
	echo "PASS"
	echo "    PASSED" >>$strfile

	sleep 5
	./waitjobs.sh >>$strfile

        echo $ac_n "Verifying that history still exists: $ac_c"

	echo "    ls -l $BASE/spool" >>$strfile
	count=`ls -1 $BASE/spool | wc -l`
	if test $count = 1; then
		echo "FAIL (job control files not present)"
		ls -l $BASE/spool
		echo "    FAILED (job control files not present)" >>$strfile
		ls -l $BASE/spool >>$strfile
		fail=`expr $fail + 1`
	else
		echo "PASS"
		echo "    PASSED" >>$strfile

		echo "Restarting cupsd:"
		echo "" >>$strfile
		kill $cupsd
		wait $cupsd

		echo "    $runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >>$BASE/log/debug_log 2>&1 &"
		echo ""

		$runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >>$BASE/log/debug_log 2>&1 &

		cupsd=$!

		echo $ac_n "Waiting for job history to expire: $ac_c"
		echo "" >>$strfile
		echo "    sleep 35" >>$strfile
		sleep 35

		echo "    ls -l $BASE/spool" >>$strfile
		count=`ls -1 $BASE/spool | wc -l`
		if test $count != 1; then
			echo "FAIL (job control files still present)"
			ls -l $BASE/spool
			echo "    FAILED (job control files still present)" >>$strfile
			ls -l $BASE/spool >>$strfile
			fail=`expr $fail + 1`
		else
			echo "PASS"
			echo "    PASSED" >>$strfile
		fi
	fi
fi


#
# Stop the server...
#

echo "    
" >>$strfile kill $cupsd wait $cupsd cupsdstatus=$? # # Verify counts... # echo "Test Summary" echo "" echo "

3 - Test Summary

" >>$strfile if test $cupsdstatus != 0; then echo "FAIL: cupsd failed with exit status $cupsdstatus." echo "

FAIL: cupsd failed with exit status $cupsdstatus.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: cupsd exited with no errors." echo "

PASS: cupsd exited with no errors.

" >>$strfile fi # Job control files count=`ls -1 $BASE/spool | wc -l` count=`expr $count - 1` if test $count != 0; then echo "FAIL: $count job control files were not purged." echo "

FAIL: $count job control files were not purged.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: All job control files purged." echo "

PASS: All job control files purged.

" >>$strfile fi # Pages printed on Test1 (within 1 page for timing-dependent cancel issues) count=`$GREP '^Test1 ' $BASE/log/page_log | awk 'BEGIN{count=0}{count=count+$7}END{print count}'` # expected numbers of pages from page ranges tests: # - 5 pages for the job with a lower limit undefined (-5) # - 4 pages for the job with a upper limit undefined (5-) expected=`expr $pjobs \* 2 + 34 + 5 + 4` expected2=`expr $expected + 2` if test $count -lt $expected -a $count -gt $expected2; then echo "FAIL: Printer 'Test1' produced $count page(s), expected $expected." echo "

FAIL: Printer 'Test1' produced $count page(s), expected $expected.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: Printer 'Test1' correctly produced $count page(s)." echo "

PASS: Printer 'Test1' correctly produced $count page(s).

" >>$strfile fi # Paged printed on Test2 count=`$GREP '^Test2 ' $BASE/log/page_log | awk 'BEGIN{count=0}{count=count+$7}END{print count}'` expected=`expr $pjobs \* 2 + 3` if test $count != $expected; then echo "FAIL: Printer 'Test2' produced $count page(s), expected $expected." echo "

FAIL: Printer 'Test2' produced $count page(s), expected $expected.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: Printer 'Test2' correctly produced $count page(s)." echo "

PASS: Printer 'Test2' correctly produced $count page(s).

" >>$strfile fi # Paged printed on Test3 count=`$GREP '^Test3 ' $BASE/log/page_log | awk 'BEGIN{count=0}{count=count+$7}END{print count}'` expected=2 if test $count != $expected; then echo "FAIL: Printer 'Test3' produced $count page(s), expected $expected." echo "

FAIL: Printer 'Test3' produced $count page(s), expected $expected.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: Printer 'Test3' correctly produced $count page(s)." echo "

PASS: Printer 'Test3' correctly produced $count page(s).

" >>$strfile fi # Number of requests from 5.1-lpadmin.sh: cupsSNMP/IPPSupplies tests - total 5 in 'expected': # - 2 requests for creating a queue - CUPS-Get-PPD and CUPS-Add-Modify-Printer # - 1 request for setting cupsSNMP/IPPSupplies to True - CUPS-Add-Modify-Printer # - 1 request for setting cupsSNMP/IPPSupplies to False - CUPS-Add-Modify-Printer # - 1 request for deleting the queue - CUPS-Delete-Printer # Number of requests related to undefined page range limits - total 4 in 'expected' # 2 requests (Create-Job, Send-Document) * number of jobs (2 - one for undefined # low limit, one for undefined upper limit) # Requests logged count=`wc -l $BASE/log/access_log | awk '{print $1}'` expected=`expr 35 + 18 + 30 + $pjobs \* 8 + $pprinters \* $pjobs \* 4 + 2 + 2 + 5 + 4` if test $count != $expected; then echo "FAIL: $count requests logged, expected $expected." echo "

FAIL: $count requests logged, expected $expected.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count requests logged." echo "

PASS: $count requests logged.

" >>$strfile fi # Did CUPS-Get-Default get logged? if $GREP -q CUPS-Get-Default $BASE/log/access_log; then echo "FAIL: CUPS-Get-Default logged with 'AccessLogLevel actions'" echo "

FAIL: CUPS-Get-Default logged with 'AccessLogLevel actions'

" >>$strfile echo "
" >>$strfile
	$GREP CUPS-Get-Default $BASE/log/access_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: CUPS-Get-Default not logged." echo "

PASS: CUPS-Get-Default not logged.

" >>$strfile fi # Emergency log messages count=`$GREP '^X ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count != 0; then echo "FAIL: $count emergency messages, expected 0." $GREP '^X ' $BASE/log/error_log echo "

FAIL: $count emergency messages, expected 0.

" >>$strfile echo "
" >>$strfile
	$GREP '^X ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count emergency messages." echo "

PASS: $count emergency messages.

" >>$strfile fi # Alert log messages count=`$GREP '^A ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count != 0; then echo "FAIL: $count alert messages, expected 0." $GREP '^A ' $BASE/log/error_log echo "

FAIL: $count alert messages, expected 0.

" >>$strfile echo "
" >>$strfile
	$GREP '^A ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count alert messages." echo "

PASS: $count alert messages.

" >>$strfile fi # Critical log messages count=`$GREP '^C ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count != 0; then echo "FAIL: $count critical messages, expected 0." $GREP '^C ' $BASE/log/error_log echo "

FAIL: $count critical messages, expected 0.

" >>$strfile echo "
" >>$strfile
	$GREP '^C ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count critical messages." echo "

PASS: $count critical messages.

" >>$strfile fi # Error log messages count=`$GREP '^E ' $BASE/log/error_log | $GREP -v 'Unknown default SystemGroup' | wc -l | awk '{print $1}'` if test $count != 33; then echo "FAIL: $count error messages, expected 33." $GREP '^E ' $BASE/log/error_log echo "

FAIL: $count error messages, expected 33.

" >>$strfile echo "
" >>$strfile
	$GREP '^E ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count error messages." echo "

PASS: $count error messages.

" >>$strfile fi # Warning log messages count=`$GREP '^W ' $BASE/log/error_log | $GREP -v CreateProfile | $GREP -v 'libusb error' | $GREP -v ColorManager | $GREP -v 'Avahi client failed' | wc -l | awk '{print $1}'` if test $count != 14; then echo "FAIL: $count warning messages, expected 14." $GREP '^W ' $BASE/log/error_log echo "

FAIL: $count warning messages, expected 14.

" >>$strfile echo "
" >>$strfile
	$GREP '^W ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count warning messages." echo "

PASS: $count warning messages.

" >>$strfile fi # Notice log messages count=`$GREP '^N ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count != 0; then echo "FAIL: $count notice messages, expected 0." $GREP '^N ' $BASE/log/error_log echo "

FAIL: $count notice messages, expected 0.

" >>$strfile echo "
" >>$strfile
	$GREP '^N ' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
	echo "    
" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count notice messages." echo "

PASS: $count notice messages.

" >>$strfile fi # Info log messages count=`$GREP '^I ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count = 0; then echo "FAIL: $count info messages, expected more than 0." echo "

FAIL: $count info messages, expected more than 0.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count info messages." echo "

PASS: $count info messages.

" >>$strfile fi # Debug log messages count=`$GREP '^D ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count = 0; then echo "FAIL: $count debug messages, expected more than 0." echo "

FAIL: $count debug messages, expected more than 0.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count debug messages." echo "

PASS: $count debug messages.

" >>$strfile fi # Debug2 log messages count=`$GREP '^d ' $BASE/log/error_log | wc -l | awk '{print $1}'` if test $count = 0 -a $loglevel = debug2; then echo "FAIL: $count debug2 messages, expected more than 0." echo "

FAIL: $count debug2 messages, expected more than 0.

" >>$strfile fail=`expr $fail + 1` elif test $count != 0 -a $loglevel = debug; then echo "FAIL: $count debug2 messages, expected 0." echo "

FAIL: $count debug2 messages, expected 0.

" >>$strfile fail=`expr $fail + 1` else echo "PASS: $count debug2 messages." echo "

PASS: $count debug2 messages.

" >>$strfile fi # # Log files... # echo "

4 - Log Files

" >>$strfile for file in $BASE/log/*_log; do baselog=`basename $file` echo "

$baselog

" >>$strfile case $baselog in error_log) echo "
Note: debug2 messages have been filtered out of the HTML report.
" >>$strfile echo "
" >>$strfile
                        $GREP -v '^d' $BASE/log/error_log | sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
                        echo "    
" >>$strfile ;; *) echo "
" >>$strfile
                        sed -e '1,$s/&/&/g' -e '1,$s/>$strfile
                        echo "    
" >>$strfile ;; esac done # # Format the reports and tell the user where to find them... # cat str-trailer.html >>$strfile echo "" for file in $BASE/log/*_log; do baselog=`basename $file` cp $file $baselog-$date-$user echo "Copied log file \"$baselog-$date-$user\" to test directory." done cp $strfile . echo "Copied report file \"cups-str-$date-$user.html\" to test directory." # Clean out old failure log files after 1 week... find . -name \*_log-\*-$user -a -mtime +7 -print -exec rm -f '{}' \; | awk '{print "Removed old log file \"" substr($1,3) "\" from test directory."}' find . -name cups-str-\*-$user.html -a -mtime +7 -print -exec rm -f '{}' \; | awk '{print "Removed old report file \"" $1 "\" from test directory."}' echo "" if test $fail != 0; then echo "$fail tests failed." exit 1 else echo "All tests were successful." fi cups-2.4.7/test/5.9-lpinfo.sh0000644000175000017500000000151514502571342015476 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpinfo command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPINFO Devices Test" echo "" echo " lpinfo -v" $runcups $VALGRIND ../systemv/lpinfo -v 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPINFO Drivers Test" echo "" echo " lpinfo -m" $runcups $VALGRIND ../systemv/lpinfo -m 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPINFO Drivers Test" echo "" echo " lpinfo -m | grep -q sample.drv" $runcups $VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.8-cancel.sh0000644000175000017500000000172014502571342015431 0ustar zdohnalzdohnal#!/bin/sh # # Test the cancel command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "Cancel Destination Test" echo "" echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg" $runcups $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 echo " cancel Test1" $runcups $VALGRIND ../systemv/cancel Test1 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Cancel All Test" echo "" echo " cancel -a" $runcups $VALGRIND ../systemv/cancel -a 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Purge All Test" echo "" echo " cancel -a -x" $runcups $VALGRIND ../systemv/cancel -a -x 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.7-lprm.sh0000644000175000017500000000164114502571342015157 0ustar zdohnalzdohnal#!/bin/sh # # Test the lprm command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPRM Current Test" echo "" echo " lpr -o job-hold-until=indefinite testfile.jpg" $runcups $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 echo " lprm" $runcups $VALGRIND ../berkeley/lprm 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPRM Destination Test" echo "" echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg" $runcups $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 echo " lprm Test1" $runcups $VALGRIND ../berkeley/lprm Test1 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.6-lpr.sh0000644000175000017500000000316014502571342014777 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpr command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPR Default Test" echo "" echo " lpr testfile.pdf" $runcups $VALGRIND ../berkeley/lpr ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPR Destination Test" echo "" echo " lpr -P Test3 -o fit-to-page testfile.jpg" $runcups $VALGRIND ../berkeley/lpr -P Test3 -o fit-to-page ../examples/testfile.jpg 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPR Options Test" echo "" echo " lpr -P Test1 -o number-up=4 -o job-sheets=standard,none testfile.pdf" $runcups $VALGRIND ../berkeley/lpr -P Test1 -o number-up=4 -o job-sheets=standard,none ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPR Flood Test ($1 times in parallel)" echo "" echo " lpr -P Test1 testfile.jpg" echo " lpr -P Test2 testfile.jpg" i=0 pids="" while test $i -lt $1; do j=1 while test $j -le $2; do $runcups $VALGRIND ../berkeley/lpr -P test-$j ../examples/testfile.jpg 2>&1 j=`expr $j + 1` done $runcups $VALGRIND ../berkeley/lpr -P Test1 ../examples/testfile.jpg 2>&1 & pids="$pids $!" $runcups $VALGRIND ../berkeley/lpr -P Test2 ../examples/testfile.jpg 2>&1 & pids="$pids $!" i=`expr $i + 1` done wait $pids if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" ./waitjobs.sh cups-2.4.7/test/5.5-lp.sh0000644000175000017500000000467014502571342014623 0ustar zdohnalzdohnal#!/bin/sh # # Test the lp command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LP Default Test" echo "" echo " lp testfile.pdf" $runcups $VALGRIND ../systemv/lp ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LP Destination Test" echo "" echo " lp -d Test3 -o fit-to-page testfile.jpg" $runcups $VALGRIND ../systemv/lp -d Test3 -o fit-to-page ../examples/testfile.jpg 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LP Options Test" echo "" echo " lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf" $runcups $VALGRIND ../systemv/lp -d Test1 -P 1-4 -o job-sheets=classified,classified ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LP Page ranges Test - undefined low page limit" echo "" echo " lp -d Test1 -P -5 testfile.pdf" $runcups $VALGRIND ../systemv/lp -d Test1 -P -5 ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LP Page ranges Test - undefined upper page limit" echo "" echo " lp -d Test1 -P 5- -o job-sheets=classified,classified testfile.pdf" $runcups $VALGRIND ../systemv/lp -d Test1 -P 5- ../examples/testfile.pdf 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LP Flood Test ($1 times in parallel)" echo "" echo " lp -d Test1 testfile.jpg" echo " lp -d Test2 testfile.jpg" i=0 pids="" while test $i -lt $1; do j=1 while test $j -le $2; do $runcups $VALGRIND ../systemv/lp -d test-$j ../examples/testfile.jpg 2>&1 j=`expr $j + 1` done $runcups $VALGRIND ../systemv/lp -d Test1 ../examples/testfile.jpg 2>&1 & pids="$pids $!" $runcups $VALGRIND ../systemv/lp -d Test2 ../examples/testfile.jpg 2>&1 & pids="$pids $!" i=`expr $i + 1` done wait $pids if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" ./waitjobs.sh echo "LPSTAT Completed Jobs Order Test" echo "" echo " lpstat -W completed -o" $runcups $VALGRIND ../systemv/lpstat -W completed -o | tee $BASE/lpstat-completed.txt if test "`uniq -d $BASE/lpstat-completed.txt`" != ""; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.4-lpstat.sh0000644000175000017500000000170014502571342015505 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpstat command. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPSTAT Basic Test" echo "" echo " lpstat -t" $runcups $VALGRIND ../systemv/lpstat -t 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "LPSTAT Enumeration Test" echo "" echo " lpstat -e" printers="`$runcups $VALGRIND ../systemv/lpstat -e 2>&1`" if test $? != 0 -o "x$printers" = x; then echo " FAILED" exit 1 else for printer in $printers; do echo $printer done echo " PASSED" fi echo "" echo "LPSTAT Get Host Test" echo "" echo " lpstat -H" server="`$runcups $VALGRIND ../systemv/lpstat -H 2>&1`" if test $? != 0 -o "x$server" != x$CUPS_SERVER; then echo " FAILED ($server)" exit 1 else echo " PASSED ($server)" fi echo "" cups-2.4.7/test/5.3-lpq.sh0000644000175000017500000000064314502571342014776 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpq command. # # Copyright © 2007 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPQ Test" echo "" echo " lpq -P Test1" $runcups $VALGRIND ../berkeley/lpq -P Test1 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.2-lpc.sh0000644000175000017500000000063714502571342014762 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpc command. # # Copyright © 2007 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "LPC Test" echo "" echo " lpc status" $runcups $VALGRIND ../berkeley/lpc status 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/5.1-lpadmin.sh0000644000175000017500000000564714502571342015635 0ustar zdohnalzdohnal#!/bin/sh # # Test the lpadmin command. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 1997-2005 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # echo "Add Printer Test" echo "" echo " lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd" $runcups $VALGRIND ../systemv/lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd 2>&1 if test $? != 0; then echo " FAILED" exit 1 else if test -f $CUPS_SERVERROOT/ppd/Test3.ppd; then echo " PASSED" else echo " FAILED (No PPD)" exit 1 fi fi echo "" echo "Modify Printer Test" echo "" echo " lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4" $runcups $VALGRIND ../systemv/lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Delete Printer Test" echo "" echo " lpadmin -x Test3" $runcups $VALGRIND ../systemv/lpadmin -x Test3 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Add Shared Printer Test" echo "" echo " lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere" $runcups $VALGRIND ../systemv/lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Add a printer for cupSNMP/IPPSupplies test" echo "" echo " lpadmin -p Test4 -E -v file:/dev/null -m drv:///sample.drv/zebra.ppd" $runcups $VALGRIND ../systemv/lpadmin -p Test4 -E -v file:/dev/null -m drv:///sample.drv/zebra.ppd 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Turn on cupsSNMP/IPPSupplies option" echo "" echo " lpadmin -p Test4 -o cupsSNMPSupplies=true -o cupsIPPSupplies=true" $runcups $VALGRIND ../systemv/lpadmin -p Test4 -o cupsSNMPSupplies=true -o cupsIPPSupplies=true 2>&1 grep '*cupsSNMPSupplies: True' $BASE/ppd/Test4.ppd if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi grep '*cupsIPPSupplies: True' $BASE/ppd/Test4.ppd if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Turn on cupsSNMP/IPPSupplies option" echo "" echo " lpadmin -p Test4 -o cupsSNMPSupplies=false -o cupsIPPSupplies=false" $runcups $VALGRIND ../systemv/lpadmin -p Test4 -o cupsSNMPSupplies=false -o cupsIPPSupplies=false 2>&1 grep '*cupsSNMPSupplies: False' $BASE/ppd/Test4.ppd if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi grep '*cupsIPPSupplies: False' $BASE/ppd/Test4.ppd if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" echo "Delete the printer with cupsSNMP/IPPSupplies" echo "" echo " lpadmin -x Test4" $runcups $VALGRIND ../systemv/lpadmin -x Test4 2>&1 if test $? != 0; then echo " FAILED" exit 1 else echo " PASSED" fi echo "" cups-2.4.7/test/4.4-subscription-ops.test0000644000175000017500000000755614502571342020104 0ustar zdohnalzdohnal# # Verify that the CUPS subscription operations work. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2001-2006 by Easy Software Products. All rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # { # The name of the test... NAME "Add Printer Subscription w/Lease" # The operation to use OPERATION Create-Printer-Subscription RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user GROUP subscription ATTR uri notify-recipient-uri testnotify:// ATTR keyword notify-events printer-state-changed ATTR integer notify-lease-duration 5 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT notify-subscription-id DISPLAY notify-subscription-id } { # The name of the test... NAME "Verify Subscription Expiration" # Delay test for 7 seconds to allow lease to expire... DELAY 7 # The operation to use OPERATION Get-Subscription-Attributes RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1 ATTR integer notify-subscription-id $notify-subscription-id ATTR name requesting-user-name $user # What statuses are OK? STATUS client-error-not-found # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Add 2 Printer Subscriptions w/Lease" # The operation to use OPERATION Create-Printer-Subscription RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user GROUP subscription ATTR uri notify-recipient-uri testnotify:// ATTR keyword notify-events printer-state-changed ATTR integer notify-lease-duration 5 GROUP subscription ATTR uri notify-recipient-uri testnotify:// ATTR keyword notify-events printer-config-changed ATTR integer notify-lease-duration 5 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT notify-subscription-id DISPLAY notify-subscription-id } { # The name of the test... NAME "List Printer Subscriptions" # The operation to use OPERATION Get-Subscriptions RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT notify-subscription-id DISPLAY notify-subscription-id EXPECT notify-printer-uri DISPLAY notify-printer-uri EXPECT notify-events DISPLAY notify-events } { # The name of the test... NAME "Check MaxSubscriptions limits" # The operation to use OPERATION Create-Printer-Subscription RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user GROUP subscription ATTR uri notify-recipient-uri testnotify:// ATTR keyword notify-events printer-state-changed ATTR integer notify-lease-duration 5 # What statuses are OK? STATUS client-error-too-many-subscriptions # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } cups-2.4.7/test/4.3-job-ops.test0000644000175000017500000001643714502571342016127 0ustar zdohnalzdohnal# # Verify that the IPP job operations work. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2001-2006 by Easy Software Products. All rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # { # The name of the test... NAME "Print PostScript Job with bad job-sheets value to Test1" # The operation to use OPERATION print-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user ATTR name job-sheets "none\,none" FILE ../examples/testfile.ps # What statuses are OK? STATUS client-error-bad-request } { # The name of the test... NAME "Print PostScript Job to Test1" # The operation to use OPERATION print-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user FILE ../examples/testfile.ps # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id } { # The name of the test... NAME "Get Job Attributes" # The operation to use OPERATION get-job-attributes RESOURCE /jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR integer job-id $job-id # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id EXPECT job-uri EXPECT job-state } { # The name of the test... NAME "Print JPEG Job to Test2" # The operation to use OPERATION print-job RESOURCE /printers/Test2 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test2 ATTR name requesting-user-name $user GROUP subscription ATTR uri notify-recipient-uri testnotify:/// FILE ../examples/testfile.jpg # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id EXPECT notify-subscription-id } { # The name of the test... NAME "Get Job Attributes" # The operation to use OPERATION get-job-attributes RESOURCE /jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test2 ATTR integer job-id $job-id # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id EXPECT job-uri EXPECT job-state } { # The name of the test... NAME "Print Text Job to Test1" # The operation to use OPERATION print-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user FILE ../examples/testfile.txt # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id } { # The name of the test... NAME "Print PDF Job to Test1" # The operation to use OPERATION print-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user GROUP job ATTR keyword job-hold-until weekend FILE ../examples/testfile.pdf # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id } { # The name of the test... NAME "Hold Job on Test1" # The operation to use OPERATION hold-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR integer job-id $job-id ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Release Job on Test1" # The operation to use OPERATION release-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR integer job-id $job-id ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Print Held Image Job to Test1" # The operation to use OPERATION print-job RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 ATTR name requesting-user-name $user GROUP job ATTR keyword job-hold-until indefinite FILE ../examples/testfile.jpg # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-id } { # The name of the test... NAME "Cancel Job" # The operation to use OPERATION cancel-job RESOURCE /jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri job-uri $method://$hostname:$port/jobs/$job-id ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Get Job List on Test1" # The operation to use OPERATION get-jobs RESOURCE /printers/Test1 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT !job-printer-uri } { # The name of the test... NAME "Get All Jobs" # The operation to use OPERATION get-jobs RESOURCE /jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $scheme://$hostname:$port/ ATTR keyword requested-attributes all # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT job-uri EXPECT job-id EXPECT job-state EXPECT job-printer-uri } cups-2.4.7/test/4.2-cups-printer-ops.test0000644000175000017500000001631614502571342020003 0ustar zdohnalzdohnal# # Verify that the CUPS printer operations work. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2001-2006 by Easy Software Products. All rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # { # The name of the test... NAME "Add Printer Test1" # The operation to use OPERATION cups-add-printer RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 FILE testhp.ppd # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Verify Printer Test1 Added" # The operation to use OPERATION get-printer-attributes RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Delete Printer Test1" # The operation to use OPERATION cups-delete-printer RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Verify Printer Test1 Deleted" # The operation to use OPERATION get-printer-attributes RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS client-error-not-found # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Subscribe to Printer Events" # The operation to use OPERATION Create-Printer-Subscription RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/ ATTR name requesting-user-name $user GROUP subscription ATTR uri notify-recipient-uri testnotify:// ATTR keyword notify-events printer-added,printer-modified,printer-deleted # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT notify-subscription-id } { # The name of the test... NAME "Add Printer Test2" # The operation to use OPERATION cups-add-printer RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test2 FILE testhp.ppd # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Verify Printer Test2 Added" # The operation to use OPERATION get-printer-attributes RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test2 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Modify Printer Test2" # The operation to use OPERATION cups-add-printer RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test2 GROUP printer ATTR uri device-uri file:/tmp/Test2 ATTR enum printer-state 3 ATTR boolean printer-is-accepting-jobs true # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Re-Add Printer Test1" # The operation to use OPERATION cups-add-printer RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 GROUP printer ATTR uri device-uri file:/tmp/Test1 ATTR enum printer-state 3 ATTR boolean printer-is-accepting-jobs true ATTR text printer-info "Test Printer 1" FILE testps.ppd # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Verify Printer Test1 Re-Added" # The operation to use OPERATION get-printer-attributes RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Get Default Printer with no default set" # The operation to use OPERATION cups-get-default RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en # What statuses are OK? STATUS client-error-not-found # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Set Default Printer to Test1" # The operation to use OPERATION cups-set-default RESOURCE /admin/ # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Get Default Printer" # The operation to use OPERATION cups-get-default RESOURCE / # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language EXPECT printer-name EXPECT printer-uri-supported } { # The name of the test... NAME "Get IPP/2.x Attributes for Printer Test1" # The operation to use OPERATION get-printer-attributes RESOURCE / # The IPP version to use VERSION 2.0 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $method://$hostname:$port/printers/Test1 # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT media-col-default } cups-2.4.7/test/4.1-requests.test0000644000175000017500000000647214502571342016425 0ustar zdohnalzdohnal# # Verify that the server requires the following attributes: # # attributes-charset # attributes-natural-language # printer-uri/job-uri # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2001-2006 by Easy Software Products. All rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # { # The name of the test... NAME "No Attributes" # The operation to use OPERATION get-jobs # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Charset Attribute" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Language Attribute" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR language attributes-natural-language en # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Language + Charset Attributes" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR language attributes-natural-language en ATTR charset attributes-charset utf-8 # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Charset + Language Attributes" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Charset + Language + Printer URI Attributes" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri # What statuses are OK? STATUS successful-ok # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Charset + Language + Job URI Attributes" # The operation to use OPERATION get-jobs # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri job-uri $scheme://$hostname:$port/jobs # What statuses are OK? STATUS client-error-bad-request # What attributes do we expect? EXPECT attributes-charset EXPECT attributes-natural-language } { # The name of the test... NAME "Bad IPP Version" # The operation to use OPERATION get-jobs # The version number to use VERSION 0.0 # The attributes to send GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri ipp://localhost/printers # What statuses are OK? STATUS server-error-version-not-supported } # # End of "$Id$" # cups-2.4.7/templates/0000755000175000017500000000000014502571342014357 5ustar zdohnalzdohnalcups-2.4.7/templates/users.tmpl0000644000175000017500000000204314502571342016415 0ustar zdohnalzdohnal
{IS_CLASS?:}

Allowed Users For {printer_name}

Users:
cups-2.4.7/templates/trailer.tmpl0000644000175000017500000000021314502571342016713 0ustar zdohnalzdohnal
cups-2.4.7/templates/test-page.tmpl0000644000175000017500000000023514502571342017146 0ustar zdohnalzdohnal

Print Test Page On {printer_name}

Test page sent; job ID is {printer_name}-{job_id}.

cups-2.4.7/templates/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342022660 0ustar zdohnalzdohnal cups-2.4.7/templates/set-printer-options-header.tmpl0000644000175000017500000000147514502571342022457 0ustar zdohnalzdohnal

Set Default Options for {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/search.tmpl0000644000175000017500000000102214502571342016515 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Search in {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?Classes:{SECTION=jobs?Jobs:Printers}}}:

cups-2.4.7/templates/ru/0000755000175000017500000000000014502571342015005 5ustar zdohnalzdohnalcups-2.4.7/templates/ru/users.tmpl0000644000175000017500000000224514502571342017047 0ustar zdohnalzdohnal
{IS_CLASS?:}

Доступ пользователей на {printer_name}

Пользователи:
cups-2.4.7/templates/ru/trailer.tmpl0000644000175000017500000000023214502571342017342 0ustar zdohnalzdohnal
cups-2.4.7/templates/ru/test-page.tmpl0000644000175000017500000000040314502571342017571 0ustar zdohnalzdohnal

Печать пробной страницы на {printer_name}

Пробная страница отправлена на печать;Номер задания {printer_name}-{job_id}.

cups-2.4.7/templates/ru/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023306 0ustar zdohnalzdohnal cups-2.4.7/templates/ru/set-printer-options-header.tmpl0000644000175000017500000000163414502571342023102 0ustar zdohnalzdohnal

Установить параметры по умолчанию для {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/ru/search.tmpl0000644000175000017500000000107114502571342017147 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Поиск {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?группы:{SECTION=jobs?задания:принтера}}}:

cups-2.4.7/templates/ru/restart.tmpl0000644000175000017500000000515314502571342017373 0ustar zdohnalzdohnal

Применение изменений параметров

Ожидание Дождитесь перезапуска сервера...

cups-2.4.7/templates/ru/printers.tmpl0000644000175000017500000000113514502571342017551 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
НаименованиеОписаниеРасположениеДрайверСтатус
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?ожидает:{printer_state=4?печатает:приостановлен}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/ru/printers-header.tmpl0000644000175000017500000000014714502571342021001 0ustar zdohnalzdohnal

{total=0?Нет принтеров:Принтер {#printer_name} из {total}}.

cups-2.4.7/templates/ru/printer.tmpl0000644000175000017500000000631614502571342017374 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?ожидает:{printer_state=4?печать:приостановлен}}, {printer_is_accepting_jobs=0?не принимает задания:принимает задания}, {server_is_sharing_printers=0?нет совместного доступа:{printer_is_shared=0?нет совместного доступа:разрешен совместный доступ}} {default_name={printer_name}?, По умолчанию:})

Описание:{printer_info}
Расположение:{printer_location}
Драйвер:{printer_make_and_model} ({color_supported=1?цветной:черно-белый}{sides_supported=one-sided?:, дуплексная печать})
Подключение:{device_uri}
По умолчанию:job-sheets={job_sheets_default} media={media_default?{media_default}:unknown} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/ru/printer-stop.tmpl0000644000175000017500000000046414502571342020355 0ustar zdohnalzdohnal

Приостановить {is_class?группу:принтер} {printer_name}

{is_class?Группа:Принтер} {printer_name} {is_class?была приостановлена:был приостановлен}.

cups-2.4.7/templates/ru/printer-start.tmpl0000644000175000017500000000043314502571342020521 0ustar zdohnalzdohnal

Возобновить работу {is_class?группы:принтера} {printer_name}

{is_class?Группа:Принтер} {printer_name} теперь принимает задания.

cups-2.4.7/templates/ru/printer-reject.tmpl0000644000175000017500000000043714502571342020644 0ustar zdohnalzdohnal

Отмена заданий для {is_class?группы:принтера} {printer_name}

{is_class?Группа:Принтер} {printer_name} больше не принимает задания.

cups-2.4.7/templates/ru/printer-modified.tmpl0000644000175000017500000000031014502571342021136 0ustar zdohnalzdohnal

Изменение принтера {printer_name}

Параметры принтера {printer_name} успешно изменены.cups-2.4.7/templates/ru/printer-jobs-header.tmpl0000644000175000017500000000004614502571342021547 0ustar zdohnalzdohnal

Задания

cups-2.4.7/templates/ru/printer-deleted.tmpl0000644000175000017500000000020714502571342020771 0ustar zdohnalzdohnal

Удаление принтера {printer_name}

Принтер {printer_name} успешно удален. cups-2.4.7/templates/ru/printer-default.tmpl0000644000175000017500000000101514502571342021005 0ustar zdohnalzdohnal

Установка {is_class?группы:принтера} {printer_name} по умолчанию

{is_class?Группа:Принтер} {printer_name} установлены на сервере по умолчанию для новых заданий.

Примечания: вы можете переопределить это поведение с помощью команды lpoptions.
cups-2.4.7/templates/ru/printer-confirm.tmpl0000644000175000017500000000102514502571342021017 0ustar zdohnalzdohnal

Удаление принтера {printer_name}

Предупреждение: вы действительно хотите удалить принтер {printer_name}?

cups-2.4.7/templates/ru/printer-configured.tmpl0000644000175000017500000000046614502571342021517 0ustar zdohnalzdohnal

Настройки по умолчанию для {printer_name}

{OP=set-class-options?Группа :Принтер }{printer_name} теперь использует параметры по умолчанию. cups-2.4.7/templates/ru/printer-cancel-jobs.tmpl0000644000175000017500000000040414502571342021542 0ustar zdohnalzdohnal

Отмена заданий для {is_class?Class:Printer} {printer_name}

Все задания для {is_class?class:printer} {printer_name} были отменены.

cups-2.4.7/templates/ru/printer-added.tmpl0000644000175000017500000000024114502571342020422 0ustar zdohnalzdohnal

Добавить принтер

Принтер {printer_name} успешно добавлен. cups-2.4.7/templates/ru/printer-accept.tmpl0000644000175000017500000000042714502571342020626 0ustar zdohnalzdohnal

Прием заданий {is_class?в группу:на принтер} {printer_name}

{is_class?Группа:Принтер} {printer_name} теперь принимает задания.

cups-2.4.7/templates/ru/pager.tmpl0000644000175000017500000000234214502571342017002 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/ru/option-trailer.tmpl0000644000175000017500000000015314502571342020652 0ustar zdohnalzdohnal

cups-2.4.7/templates/ru/option-pickone.tmpl0000644000175000017500000000173114502571342020643 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/ru/option-pickmany.tmpl0000644000175000017500000000037714502571342021033 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/ru/option-header.tmpl0000644000175000017500000000013114502571342020434 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/ru/option-conflict.tmpl0000644000175000017500000000047514502571342021020 0ustar zdohnalzdohnal

Ошибка: следующие параметры конфликтуют:

Измените один или несколько параметров для того, чтобы избежать конфликта.

cups-2.4.7/templates/ru/option-boolean.tmpl0000644000175000017500000000043214502571342020627 0ustar zdohnalzdohnal cups-2.4.7/templates/ru/norestart.tmpl0000644000175000017500000000032414502571342017723 0ustar zdohnalzdohnal

Применение изменений

Сервер не был перезапущен,поскольку не произошло изменений в конфигурации...

cups-2.4.7/templates/ru/modify-printer.tmpl0000644000175000017500000000314014502571342020651 0ustar zdohnalzdohnal

Изменение принтера {printer_name}

{keytext}: {[choices]}
Описание:
(расширенное описание принтера, например, "HP LaserJet с дуплексной печатью")
Расположение:
(местоположение принтера, например, "Кабинет 55")
Подключение: {device_uri}
Совместный доступ:
cups-2.4.7/templates/ru/modify-class.tmpl0000644000175000017500000000163714502571342020304 0ustar zdohnalzdohnal

Изменение группы {printer_name}

Описание:
Расположение:
Состав группы:
cups-2.4.7/templates/ru/list-available-printers.tmpl0000644000175000017500000000134114502571342022437 0ustar zdohnalzdohnal

Доступные принтеры

{#device_uri=0?

Не обнаружено ни одного принтера.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/ru/jobs.tmpl0000644000175000017500000000567614502571342016656 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
НомерНазваниеПользовательРазмерСтраницСтатусУправление
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Неизвестное:{job_name}}  {?job_originating_user_name=?Приостановлено пользователем:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Неизвестно:{?job_impressions_completed}}  {job_state=3?В очереди
{?time_at_creation=?Unknown:{time_at_creation}}:{job_state=4?Приостановлено с
{?time_at_creation=?Unknown:{time_at_creation}}: {job_state=5?Создано
{?time_at_processing=?Unknown:{time_at_processing}}:{job_state=6?Остановлено: {job_state=7?Отменено
{?time_at_completed=?Unknown:{time_at_completed}}:{job_state=8?Прервано:Завершено
{?time_at_completed=?Unknown:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/ru/jobs-header.tmpl0000644000175000017500000000152614502571342020072 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Active jobs listed in processing order▼; held jobs appear first.:{which_jobs=all?Jobs in sequential order▼:Completed jobs in order of completion or cancellation▲}}

cups-2.4.7/templates/ru/job-restart.tmpl0000644000175000017500000000023714502571342020141 0ustar zdohnalzdohnal

Перезапуск задания {job_id}

Задание {job_id} запущено заново. cups-2.4.7/templates/ru/job-release.tmpl0000644000175000017500000000025014502571342020070 0ustar zdohnalzdohnal

Разблокирование задания {job_id}

Задание {job_id} разблокировано. cups-2.4.7/templates/ru/job-moved.tmpl0000644000175000017500000000052314502571342017565 0ustar zdohnalzdohnal

{job_id?Перемещение задания {job_id}:Перемещение всех заданий}

{job_id?Задание {job_id}:Все задания} перемещены на {job_printer_name}.

cups-2.4.7/templates/ru/job-move.tmpl0000644000175000017500000000136714502571342017430 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Перемещение задания {job_id}:Перемещение всех заданий}

Переместить на принтер:
cups-2.4.7/templates/ru/job-hold.tmpl0000644000175000017500000000024214502571342017377 0ustar zdohnalzdohnal

Приостановка задания {job_id}

Задание {job_id} приостановлено. cups-2.4.7/templates/ru/job-cancel.tmpl0000644000175000017500000000021214502571342017673 0ustar zdohnalzdohnal

Отмена задания {job_id}

Задание {job_id} отменено. cups-2.4.7/templates/ru/help-trailer.tmpl0000644000175000017500000000000014502571342020261 0ustar zdohnalzdohnalcups-2.4.7/templates/ru/help-printable.tmpl0000644000175000017500000000056214502571342020614 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/ru/help-header.tmpl0000644000175000017500000000424614502571342020067 0ustar zdohnalzdohnal

{TOPIC?:}

Поиск {HELPTITLE?в {HELPTITLE}:{TOPIC?в {TOPIC}:по справке}}:

{QUERY?

Результаты поиска в {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:всей справке}}\:

{QTEXT?:} :

Не найдено совпадений.

}
:} {HELPTITLE?
:

Справка

Это справка CUPS. Введите выше слова для поиска в справке и нажмите "Поиск", чтобы показать результаты поиска.

Если вы пока мало знакомы с CUPS, прочтите раздел "Введение в CUPS". Опытные пользователи могут обратиться к разделу "Что нового в CUPS 1.6".

Веб-сайт CUPS так же содержит большое количество ресурсов для пользователей, включая форум, ответы на часто задаваемые вопросы и форму для регистрации ошибок и пожеланий.

} cups-2.4.7/templates/ru/header.tmpl.in0000644000175000017500000000347314502571342017547 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/ru/error.tmpl0000644000175000017500000000021414502571342017031 0ustar zdohnalzdohnal

{?title} {?printer_name} - ошибка

{?message?{message}:Ошибка}:

{error}
cups-2.4.7/templates/ru/error-op.tmpl0000644000175000017500000000024014502571342017444 0ustar zdohnalzdohnal

{?title} {?printer_name} - ошибка

Ошибка:

Неизвестная операция "{op}"!
cups-2.4.7/templates/ru/edit-config.tmpl0000644000175000017500000000121714502571342020074 0ustar zdohnalzdohnal

Редактирование файла конфигурации

cups-2.4.7/templates/ru/command.tmpl0000644000175000017500000000101114502571342017312 0ustar zdohnalzdohnal

{title} для {printer_name}

{job_state>5?:Ожидание }Обработка задания {job_state=3?в очереди:{job_state=4?удерживается: {job_state=5?обрабатывается:{job_state=6?остановлено: {job_state=7?отменено:{job_state=8?прервано:завершено}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/ru/classes.tmpl0000644000175000017500000000116214502571342017340 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
НаименованиеОписаниеРасположениеСоставСтатус
{printer_name}{printer_info}{printer_location}{?member_uris=?Нет принтеров:{member_uris}}{printer_state=3?ожидает:{printer_state=4?печатает:приостановлен}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/ru/classes-header.tmpl0000644000175000017500000000017314502571342020567 0ustar zdohnalzdohnal

{total=0?Нет групп:Показать {#printer_name} из {total} группы{total=1?:es}}.

cups-2.4.7/templates/ru/class.tmpl0000644000175000017500000000551714502571342017020 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?ожидает:{printer_state=4?печать:приостановлен}}, {printer_is_accepting_jobs=0?не принимает задания:принимает задания}, {server_is_sharing_printers=0?нет совместного доступа:{printer_is_shared=0?нет совместного доступа:разрешен совместный доступ}} {default_name={printer_name}?, Сервер по умолчанию:})

Описание:{printer_info}
Расположение:{printer_location}
Состав:{?member_uris=?Нет принтеров:{member_uris}}
По умолчанию:job-sheets={job_sheets_default} media={media_default?{media_default}:неизвестный} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/ru/class-modified.tmpl0000644000175000017500000000025514502571342020570 0ustar zdohnalzdohnal

Изменение группы {printer_name}

Группа {printer_name} успешно изменена. cups-2.4.7/templates/ru/class-jobs-header.tmpl0000644000175000017500000000004614502571342021171 0ustar zdohnalzdohnal

Задания

cups-2.4.7/templates/ru/class-deleted.tmpl0000644000175000017500000000020314502571342020407 0ustar zdohnalzdohnal

Удаление группы {printer_name}

Группа {printer_name} успешно удалена. cups-2.4.7/templates/ru/class-confirm.tmpl0000644000175000017500000000101314502571342020436 0ustar zdohnalzdohnal

Удаление группы {printer_name}

Предупреждение: Вы действительно хотите удалить группу {printer_name}?

cups-2.4.7/templates/ru/class-added.tmpl0000644000175000017500000000023014502571342020042 0ustar zdohnalzdohnal

Новая группа

Группа {printer_name} успешно добавлена. cups-2.4.7/templates/ru/choose-uri.tmpl0000644000175000017500000000226114502571342017761 0ustar zdohnalzdohnal

{op=modify-printer?Изменение {printer_name}:Добавление принтера}

{printer_name?:}
Подключение:
Примеры:
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

Смотрите раздел "Сетевые принтеры" для выяснения правильного адреса вашего принтера.

cups-2.4.7/templates/ru/choose-serial.tmpl0000644000175000017500000000302114502571342020434 0ustar zdohnalzdohnal

{op=modify-printer?Изменение {printer_name}:Добавление принтера}

{printer_name?:}
Подключение: {device_uri}
Скорость передачи:
Четность:
Биты данных:
Управление:
cups-2.4.7/templates/ru/choose-model.tmpl0000644000175000017500000000504114502571342020261 0ustar zdohnalzdohnal

{op=modify-printer?Изменение {printer_name}:Добавление принтера}

{printer_name?:} {op=modify-printer?:}
Название: {printer_name}
Описание: {printer_info}
Расположение: {printer_location}
Подключение: {device_uri}
Совместный доступ: {?printer_is_shared=?Нет совместного доступа:{?printer_is_shared=0?Нет совместного доступа:Разрешить совместный доступ}} к этому принтеру
Создать: {PPD_MAKE}
Модель:
или использовать файл PPD:
cups-2.4.7/templates/ru/choose-make.tmpl0000644000175000017500000000424214502571342020100 0ustar zdohnalzdohnal

{op=modify-printer?Изменение {printer_name}:Добавление принтера}

{printer_name?:} {op=modify-printer?:}
Название: {printer_name}
Описание: {printer_info}
Расположение: {printer_location}
Подключение: {device_uri}
Совместный доступ: {?printer_is_shared=?Нет совместного доступа:{?printer_is_shared=0?Нет совместного доступа:Разрешить совместный доступ}} к этому принтеру
Создать:
 
или использовать файл PPD:
cups-2.4.7/templates/ru/choose-device.tmpl0000644000175000017500000000441614502571342020425 0ustar zdohnalzdohnal

{op=modify-printer?Изменение {printer_name}:Добавление принтера}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Сейчас подключен\:
Установленные принтеры\: {[device_uri]{device_class!network?
:}}
Найденные сетевые принтеры\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Другие сетевые принтеры\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Ожидание Поиск принтеров...

} cups-2.4.7/templates/ru/admin.tmpl0000644000175000017500000001470314502571342017000 0ustar zdohnalzdohnal

Принтеры

Группы

Задания

Сервер

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Параметры сервера\:

Дополнительные параметры

        Максимум клиентов\:
        
        

{have_gssapi?
:}

        Количество заданий (0 без ограничений)\:
        Записывать метаданные(Retain Metadata)\:
        Существующие документы(Retain Documents)\:

        Максимальный размер журнала\:

:

Параметры сервера:

Дополнительные параметры

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/ru/add-printer.tmpl0000644000175000017500000000372014502571342020116 0ustar zdohnalzdohnal

Добавление принтера

{?current_make!?:} {?current_make_and_model!?:}
Название:
(может содержать любые символы, кроме "/","#" и пробела)
Описание:
(расширенное описание, например, "HP LaserJet с дуплексной печатью")
Расположение:
(месторасположение принтера, например, "Кабинет 55")
Подключение: {device_uri}
Совместный доступ:
cups-2.4.7/templates/ru/add-class.tmpl0000644000175000017500000000236514502571342017544 0ustar zdohnalzdohnal

Новая группа

Название:
(может содержать любые символы, кроме "/", "#" и пробела)
Описание:
(Расширенное описание группы, например, "Дуплексный принтер")
Расположение:
(Месторасположение группы, например, "Кабинет 55")
Состав группы:
cups-2.4.7/templates/restart.tmpl0000644000175000017500000000505514502571342016746 0ustar zdohnalzdohnal

Change Settings

Busy Indicator Please stand by while the server restarts...

cups-2.4.7/templates/pt_BR/0000755000175000017500000000000014502571342015365 5ustar zdohnalzdohnalcups-2.4.7/templates/pt_BR/users.tmpl0000644000175000017500000000214614502571342017427 0ustar zdohnalzdohnal
{IS_CLASS?:}

Usuários permitidos para {printer_name}

Usuários:
cups-2.4.7/templates/pt_BR/trailer.tmpl0000644000175000017500000000022414502571342017723 0ustar zdohnalzdohnal
cups-2.4.7/templates/pt_BR/test-page.tmpl0000644000175000017500000000031514502571342020153 0ustar zdohnalzdohnal

Imprimir página de teste em {printer_name}

Página de teste enviada; o ID do trabalho é {printer_name}-{job_id}.

cups-2.4.7/templates/pt_BR/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023666 0ustar zdohnalzdohnal cups-2.4.7/templates/pt_BR/set-printer-options-header.tmpl0000644000175000017500000000156114502571342023461 0ustar zdohnalzdohnal

Definir opções padrões para {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/pt_BR/search.tmpl0000644000175000017500000000104114502571342017524 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Pesquisar em {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?classes:{SECTION=jobs?trabalhos:impressoras}}}:

cups-2.4.7/templates/pt_BR/restart.tmpl0000644000175000017500000000512214502571342017747 0ustar zdohnalzdohnal

Alterar configurações

Busy Indicator Por favor, aguarde enquanto o servidor é reiniciado...

cups-2.4.7/templates/pt_BR/printers.tmpl0000644000175000017500000000105014502571342020125 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nome da filaDescriçãoLocalizaçãoMarca e modeloEstado
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Ociosa:{printer_state=4?Processando:Pausada}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/pt_BR/printers-header.tmpl0000644000175000017500000000016014502571342021354 0ustar zdohnalzdohnal

{total=0?Nenhuma impressora:Mostrando {#printer_name} de {total} impressora{total=1?:s}}.

cups-2.4.7/templates/pt_BR/printer.tmpl0000644000175000017500000000542014502571342017747 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?ociosa:{printer_state=4?processando:pausada}}, {printer_is_accepting_jobs=0?rejeitando trabalhos:aceitando trabalhos}, {server_is_sharing_printers=0?não compartilhada:{printer_is_shared=0?não compartilhada:compartilhada}} {default_name={printer_name}?, padrão do servidor:})

Descrição:{printer_info}
Localização:{printer_location}
Driver:{printer_make_and_model} ({color_supported=1?color:grayscale}{sides_supported?, 2-sided printing:})
Conexão:{device_uri}
Padrões:job-sheets={job_sheets_default} media={media_default?{media_default}:desconhecido} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/pt_BR/printer-stop.tmpl0000644000175000017500000000031014502571342020723 0ustar zdohnalzdohnal

Pausar a {is_class?classe:impressora} {printer_name}

A {is_class?classe:impressora} {printer_name} foi pausada.

cups-2.4.7/templates/pt_BR/printer-start.tmpl0000644000175000017500000000032614502571342021102 0ustar zdohnalzdohnal

Resumir a {is_class?classe:impressora} {printer_name}

A {is_class?classe:impressora} {printer_name} foi resumida com sucesso.

cups-2.4.7/templates/pt_BR/printer-reject.tmpl0000644000175000017500000000037214502571342021222 0ustar zdohnalzdohnal

Rejeitar trabalhos na {is_class?classe:impressora} {printer_name}

A {is_class?classe:impressora} {printer_name} não está mais aceitando trabalhos.

cups-2.4.7/templates/pt_BR/printer-modified.tmpl0000644000175000017500000000023514502571342021524 0ustar zdohnalzdohnal

Modificar impressora {printer_name}

A impressora {printer_name} foi modificada com sucesso.cups-2.4.7/templates/pt_BR/printer-jobs-header.tmpl0000644000175000017500000000004114502571342022122 0ustar zdohnalzdohnal

Trabalhos

cups-2.4.7/templates/pt_BR/printer-deleted.tmpl0000644000175000017500000000017114502571342021351 0ustar zdohnalzdohnal

Excluir Impressora {printer_name}

A impressora {printer_name} foi excluída com sucesso.cups-2.4.7/templates/pt_BR/printer-default.tmpl0000644000175000017500000000072514502571342021374 0ustar zdohnalzdohnal

Definir a {is_class?classe:impressora} {printer_name} como padrão

A {is_class?classe:impressora} {printer_name} foi definida como a impressora padrão no servidor.

Nota: O padrão de qualquer usuário que tenha sido configurado via do comando lpoptions vai sobrepor esta configuração padrão.
cups-2.4.7/templates/pt_BR/printer-confirm.tmpl0000644000175000017500000000070514502571342021403 0ustar zdohnalzdohnal

Excluir impressora {printer_name}

Aviso: Tem certeza que deseja excluir a impressora {printer_name}?

cups-2.4.7/templates/pt_BR/printer-configured.tmpl0000644000175000017500000000045114502571342022071 0ustar zdohnalzdohnal

Configurar opções padrão para {printer_name}

As opções padrões da {OP=set-class-options?classe :impressora }{printer_name} foram configuradas com sucesso. cups-2.4.7/templates/pt_BR/printer-cancel-jobs.tmpl0000644000175000017500000000035714502571342022131 0ustar zdohnalzdohnal

Cancelar trabalhos na {is_class?classe:impressora} {printer_name}

Todos os trabalhos da {is_class?classe:impressora} {printer_name} foram cancelados.

cups-2.4.7/templates/pt_BR/printer-added.tmpl0000644000175000017500000000021714502571342021005 0ustar zdohnalzdohnal

Adicionar impressora

A impressora {printer_name} foi adicionada com sucesso. cups-2.4.7/templates/pt_BR/printer-accept.tmpl0000644000175000017500000000035714502571342021210 0ustar zdohnalzdohnal

Aceitar trabalhos na {is_class?classe:impressora} {printer_name}

A {is_class?classe:impressora} {printer_name} agora está aceitando trabalhos.

cups-2.4.7/templates/pt_BR/pager.tmpl0000644000175000017500000000233214502571342017361 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/pt_BR/option-trailer.tmpl0000644000175000017500000000016014502571342021230 0ustar zdohnalzdohnal

cups-2.4.7/templates/pt_BR/option-pickone.tmpl0000644000175000017500000000171314502571342021223 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/pt_BR/option-pickmany.tmpl0000644000175000017500000000037714502571342021413 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/pt_BR/option-header.tmpl0000644000175000017500000000013114502571342021014 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/pt_BR/option-conflict.tmpl0000644000175000017500000000037014502571342021372 0ustar zdohnalzdohnal

Erro: As seguintes opções estão conflitando:

Por favor, altere uma ou mais opções para resolver os conflitos.

cups-2.4.7/templates/pt_BR/option-boolean.tmpl0000644000175000017500000000043214502571342021207 0ustar zdohnalzdohnal cups-2.4.7/templates/pt_BR/norestart.tmpl0000644000175000017500000000027214502571342020305 0ustar zdohnalzdohnal

Alterar configurações

O servidor não foi reiniciado porque nenhuma alteração foi feita na configuração...

cups-2.4.7/templates/pt_BR/modify-printer.tmpl0000644000175000017500000000271614502571342021241 0ustar zdohnalzdohnal

Modificar {printer_name}

{keytext}: {[choices]}
Descrição:
(Descrição legível para humanos, tal como "HP LaserJet com Duplexador")
Localização:
(Localização legível para humanos, tal como "Laboratório 1")
Conexão: {device_uri}
Compartilhamento:
cups-2.4.7/templates/pt_BR/modify-class.tmpl0000644000175000017500000000157114502571342020661 0ustar zdohnalzdohnal

Modificar classe {printer_name}

Descrição:
Localização:
Membros:
cups-2.4.7/templates/pt_BR/list-available-printers.tmpl0000644000175000017500000000123214502571342023016 0ustar zdohnalzdohnal

Impressoras disponíveis

{#device_uri=0?

Nenhuma impressora encontrada.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/pt_BR/jobs.tmpl0000644000175000017500000000540614502571342017225 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNomeUsuárioTamanhoPáginasEstadoControle
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Desconhecido:{job_name}}  {?job_originating_user_name=?Retido:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Desconhecido:{?job_impressions_completed}}  {job_state=3?Pendente desde
{?time_at_creation=?Unknown:{time_at_creation}}:{job_state=4?Retido desde
{?time_at_creation=?Unknown:{time_at_creation}}: {job_state=5?Processando desde
{?time_at_processing=?Unknown:{time_at_processing}}:{job_state=6?parado: {job_state=7?Cancelado em
{?time_at_completed=?Unknown:{time_at_completed}}:{job_state=8?Abortado:Concluído em
{?time_at_completed=?Unknown:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/pt_BR/jobs-header.tmpl0000644000175000017500000000143414502571342020450 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Active jobs listed in processing order▼; held jobs appear first.:{which_jobs=all?Jobs in sequential order▼:Completed jobs in order of completion or cancellation▲}}

cups-2.4.7/templates/pt_BR/job-restart.tmpl0000644000175000017500000000017214502571342020517 0ustar zdohnalzdohnal

Reimprimir trabalho {job_id}

Trabalho {job_id} foi reiniciado. cups-2.4.7/templates/pt_BR/job-release.tmpl0000644000175000017500000000021314502571342020447 0ustar zdohnalzdohnal

Liberar trabalho {job_id}

Trabalho {job_id} foi liberado para impressão. cups-2.4.7/templates/pt_BR/job-moved.tmpl0000644000175000017500000000041014502571342020140 0ustar zdohnalzdohnal

{job_id?Mover trabalho {job_id}:Mover trabalhos}

{job_id?Trabalho {job_id} for movido:Todos trabalhos foram movidos} para {job_printer_name}.

cups-2.4.7/templates/pt_BR/job-move.tmpl0000644000175000017500000000116514502571342020004 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Mover trabalho {job_id}:Mover todos trabalhos}

Novo destino:
cups-2.4.7/templates/pt_BR/job-hold.tmpl0000644000175000017500000000021614502571342017760 0ustar zdohnalzdohnal

Reter trabalho {job_id}

Trabalho {job_id} foi retido para não ser impresso. cups-2.4.7/templates/pt_BR/job-cancel.tmpl0000644000175000017500000000016714502571342020264 0ustar zdohnalzdohnal

Cancelar trabalho {job_id}

Trabalho {job_id} foi cancelado. cups-2.4.7/templates/pt_BR/help-trailer.tmpl0000644000175000017500000000000014502571342020641 0ustar zdohnalzdohnalcups-2.4.7/templates/pt_BR/help-printable.tmpl0000644000175000017500000000056214502571342021174 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/pt_BR/help-header.tmpl0000644000175000017500000000363414502571342020447 0ustar zdohnalzdohnal

{TOPIC?:}

Pesquisar em {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:todos os documentos}}:

{QUERY?

Pesquisar resultados em {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:Todos os documentos}}\:

{QTEXT?:} :

Nenhum resultado encontrado.

}
:} {HELPTITLE?

{HELPTITLE}

:

Ajuda online

Essa é a interface de ajuda online do CUPS. Forneça expressões de pesquisa acima ou clique em qualquer um dos links de documentação para mostrar a informação de ajuda online.

Se você é novo no CUPS, leia a página "Visão geral do CUPS".

A página inicial do CUPS também fornece muitos recursos incluindo fórums de discussão de usuários, respostas a perguntas frequentes e um formulário para enviar registros de erros e pedidos de melhorias.

} cups-2.4.7/templates/pt_BR/header.tmpl.in0000644000175000017500000000336114502571342020123 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/pt_BR/error.tmpl0000644000175000017500000000017214502571342017414 0ustar zdohnalzdohnal

Erro {?title} {?printer_name}

{?message?{message}:Erro}:

{error}
cups-2.4.7/templates/pt_BR/error-op.tmpl0000644000175000017500000000021114502571342020022 0ustar zdohnalzdohnal

Erro {?title} {?printer_name}

Erro:

Operação desconhecida "{op}"!
cups-2.4.7/templates/pt_BR/edit-config.tmpl0000644000175000017500000000121214502571342020447 0ustar zdohnalzdohnal

Editar arquivo de configuração

cups-2.4.7/templates/pt_BR/command.tmpl0000644000175000017500000000065614502571342017710 0ustar zdohnalzdohnal

{title} em {printer_name}

{job_state>5?:Busy Indicator }Trabalho de comando de impressora {job_state=3?pendente:{job_state=4?retido: {job_state=5?processando:{job_state=6?parado: {job_state=7?cancelado:{job_state=8?abortado:completo}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/pt_BR/classes.tmpl0000644000175000017500000000104314502571342017716 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nome da filaDescriçãoLocalizaçãoMembrosEstado
{printer_name}{printer_info}{printer_location}{?member_uris=?Nenhum:{member_uris}}{printer_state=3?ociosa:{printer_state=4?processando:pausada}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/pt_BR/classes-header.tmpl0000644000175000017500000000015014502571342021142 0ustar zdohnalzdohnal

{total=0?Nenhuma classe:Mostrando {#printer_name} de {total} classe{total=1?:s}}.

cups-2.4.7/templates/pt_BR/class.tmpl0000644000175000017500000000465514502571342017402 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?ociosa:{printer_state=4?processando:pausada}}, {printer_is_accepting_jobs=0?rejeitando trabalhos:aceitando trabalhos}, {server_is_sharing_printers=0?não compartilhada:{printer_is_shared=0?não compartilhada:compartilhada}} {default_name={printer_name}?, padrão do servidor:})

Descrição:{printer_info}
Localização:{printer_location}
Membros:{?member_uris=?None:{member_uris}}
Padrões:job-sheets={job_sheets_default} media={media_default?{media_default}:desconhecido} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/pt_BR/class-modified.tmpl0000644000175000017500000000022514502571342021145 0ustar zdohnalzdohnal

Modificar classe {printer_name}

A classe {printer_name} foi modificada com sucesso. cups-2.4.7/templates/pt_BR/class-jobs-header.tmpl0000644000175000017500000000004114502571342021544 0ustar zdohnalzdohnal

Trabalhos

cups-2.4.7/templates/pt_BR/class-deleted.tmpl0000644000175000017500000000016214502571342020773 0ustar zdohnalzdohnal

Excluir classe {printer_name}

A classe {printer_name} foi excluída com sucesso. cups-2.4.7/templates/pt_BR/class-confirm.tmpl0000644000175000017500000000070014502571342021020 0ustar zdohnalzdohnal

Excluir classe {printer_name}

Aviso: Você tem certeza que quer excluir a classe {printer_name}?

cups-2.4.7/templates/pt_BR/class-added.tmpl0000644000175000017500000000020614502571342020425 0ustar zdohnalzdohnal

Adicionar classe

A classe {printer_name} foi adicionada com sucesso. cups-2.4.7/templates/pt_BR/choose-uri.tmpl0000644000175000017500000000205514502571342020342 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Adicionar impressora}

{printer_name?:}
Conexão:
Exemplos:
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

Veja "Network Printers" para a URI correta a ser usada para sua impressora.

cups-2.4.7/templates/pt_BR/choose-serial.tmpl0000644000175000017500000000265514502571342021030 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Adicionar impressora}

{printer_name?:}
Conexão: {device_uri}
Taxa de dados (Baud Rate):
Paridade:
Bits de Dados:
Controle de Fluxo:
cups-2.4.7/templates/pt_BR/choose-model.tmpl0000644000175000017500000000451314502571342020644 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Adicionar impressora}

{printer_name?:} {op=modify-printer?:}
Nome: {printer_name}
Descrição: {printer_info}
Localização: {printer_location}
Conexão: {device_uri}
Compartilhamento: {?printer_is_shared=?Não compartilhar:{?printer_is_shared=0?Não compartilhar:Compartilhar}} esta impressora
Fabricante: {PPD_MAKE}
Modelo:
Ou forneça um arquivo PPD:
cups-2.4.7/templates/pt_BR/choose-make.tmpl0000644000175000017500000000374614502571342020470 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Adicionar impressora}

{printer_name?:} {op=modify-printer?:}
Nome: {printer_name}
Descrição: {printer_info}
Localização: {printer_location}
Conexão: {device_uri}
Compartilhamento: {?printer_is_shared=?Não compartilhar:{?printer_is_shared=0?Não compartilhar:Compartilhar}} esta impressora
Fabricante:
 
Ou forneça um arquivo PPD:
cups-2.4.7/templates/pt_BR/choose-device.tmpl0000644000175000017500000000422014502571342020776 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Adicionar impressora}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Conexão atual\:
Impressoras locais\: {[device_uri]{device_class!network?
:}}
Impressoras de rede descobertas\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Outras impressoras de rede\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Ocupado Procurando impressoras...

} cups-2.4.7/templates/pt_BR/admin.tmpl0000644000175000017500000001352314502571342017357 0ustar zdohnalzdohnal

Impressoras

Classes

Trabalhos

Servidor

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Configurações do servidor\:

Avançado

        Máximo de clientes\:
        
        

{have_gssapi?
:}

        Máximo de trabalhos (0 para sem limite)\:
        Reter metadados\:
        Reter documentos\:

        Tamanho máximo do arquivo de log\:

:

Configurações do servidor:

Avançado

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/pt_BR/add-printer.tmpl0000644000175000017500000000350414502571342020476 0ustar zdohnalzdohnal

Adicionar impressora

{?current_make!?:} {?current_make_and_model!?:}
Nome:
(Pode conter qualquer caractere imprimível, exceto "/", "#" e espaço em branco)
Descrição:
(Descrição legível para humanos, tal como "HP LaserJet com Duplexador")
Localização:
(Localização legível para humanos, tal como "Laboratório 1")
Conexão: {device_uri}
Compartilhamento:
cups-2.4.7/templates/pt_BR/add-class.tmpl0000644000175000017500000000226614502571342020124 0ustar zdohnalzdohnal

Adicionar classe

Nome:
(Pode conter qualquer caractere imprimível, exceto "/", "#", e espaço em branco)
Descrição:
(Descrição legível para humanos, tal como "HP LaserJet com Duplexador")
Localização:
(Localização legível para humanos, tal como "Laboratório 1")
Membros:
cups-2.4.7/templates/printers.tmpl0000644000175000017500000000077514502571342017134 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Queue NameDescriptionLocationMake and ModelStatus
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Idle:{printer_state=4?Processing:Paused}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/printers-header.tmpl0000644000175000017500000000014414502571342020350 0ustar zdohnalzdohnal

{total=0?No printers:Showing {#printer_name} of {total} printer{total=1?:s}}.

cups-2.4.7/templates/printer.tmpl0000644000175000017500000000475114502571342016747 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Idle:{printer_state=4?Processing:Paused}}, {printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs}, {server_is_sharing_printers=0?Not:{printer_is_shared=0?Not:}} Shared{default_name={printer_name}?, Server Default:})

Description:{printer_info}
Location:{printer_location}
Driver:{printer_make_and_model} ({color_supported=1?color:grayscale}{sides_supported=one-sided?:, 2-sided printing})
Connection:{device_uri}
Defaults:job-sheets={job_sheets_default} media={media_default?{media_default}:unknown} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/printer-stop.tmpl0000644000175000017500000000030014502571342017714 0ustar zdohnalzdohnal

Pause {is_class?Class:Printer} {printer_name}

{is_class?Class:Printer} {printer_name} has been paused.

cups-2.4.7/templates/printer-start.tmpl0000644000175000017500000000030214502571342020066 0ustar zdohnalzdohnal

Resume {is_class?Class:Printer} {printer_name}

{is_class?Class:Printer} {printer_name} has been resumed.

cups-2.4.7/templates/printer-reject.tmpl0000644000175000017500000000032514502571342020212 0ustar zdohnalzdohnal

Reject Jobs On {is_class?Class:Printer} {printer_name}

{is_class?Class:Printer} {printer_name} is no longer accepting jobs.

cups-2.4.7/templates/printer-modified.tmpl0000644000175000017500000000022714502571342020517 0ustar zdohnalzdohnal

Modify Printer {printer_name}

Printer {printer_name} has been modified successfully. cups-2.4.7/templates/printer-jobs-header.tmpl0000644000175000017500000000003414502571342021116 0ustar zdohnalzdohnal

Jobs

cups-2.4.7/templates/printer-deleted.tmpl0000644000175000017500000000015714502571342020347 0ustar zdohnalzdohnal

Delete Printer {printer_name}

Printer {printer_name} has been deleted successfully. cups-2.4.7/templates/printer-default.tmpl0000644000175000017500000000057214502571342020366 0ustar zdohnalzdohnal

Set {is_class?Class:Printer} {printer_name} As Default

{is_class?Class:Printer} {printer_name} has been made the default printer on the server.

Note: Any user default that has been set via the lpoptions command will override this default setting.
cups-2.4.7/templates/printer-confirm.tmpl0000644000175000017500000000067314502571342020401 0ustar zdohnalzdohnal

Delete Printer {printer_name}

Warning: Are you sure you want to delete printer {printer_name}?

cups-2.4.7/templates/printer-configured.tmpl0000644000175000017500000000035414502571342021065 0ustar zdohnalzdohnal

Set Default Options for {printer_name}

{OP=set-class-options?Class :Printer }{printer_name} default options have been set successfully. cups-2.4.7/templates/printer-cancel-jobs.tmpl0000644000175000017500000000033014502571342021112 0ustar zdohnalzdohnal

Cancel Jobs On {is_class?Class:Printer} {printer_name}

All jobs on {is_class?class:printer} {printer_name} have been canceled.

cups-2.4.7/templates/printer-added.tmpl0000644000175000017500000000107014502571342017775 0ustar zdohnalzdohnal

Add Printer {printer_name}

Printer {printer_name} has been added successfully.

Note:Printer drivers and raw queues are deprecated and will stop working in a future version of CUPS.
cups-2.4.7/templates/printer-accept.tmpl0000644000175000017500000000031714502571342020176 0ustar zdohnalzdohnal

Accept Jobs On {is_class?Class:Printer} {printer_name}

{is_class?Class:Printer} {printer_name} is now accepting jobs.

cups-2.4.7/templates/pager.tmpl0000644000175000017500000000234714502571342016361 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/option-trailer.tmpl0000644000175000017500000000013114502571342020220 0ustar zdohnalzdohnal

cups-2.4.7/templates/option-pickone.tmpl0000644000175000017500000000166514502571342020223 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/option-pickmany.tmpl0000644000175000017500000000037714502571342020405 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/option-header.tmpl0000644000175000017500000000013114502571342020006 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/option-conflict.tmpl0000644000175000017500000000033014502571342020360 0ustar zdohnalzdohnal

Error: The following options are conflicting:

Please change one or more of the options to resolve the conflicts.

cups-2.4.7/templates/option-boolean.tmpl0000644000175000017500000000043214502571342020201 0ustar zdohnalzdohnal cups-2.4.7/templates/norestart.tmpl0000644000175000017500000000020114502571342017267 0ustar zdohnalzdohnal

Change Settings

The server was not restarted because no changes were made to the configuration...

cups-2.4.7/templates/modify-printer.tmpl0000644000175000017500000000251314502571342020226 0ustar zdohnalzdohnal

Modify {printer_name}

{keytext}: {[choices]}
Description:
(Human-readable description such as "HP LaserJet with Duplexer")
Location:
(Human-readable location such as "Lab 1")
Connection: {device_uri}
Sharing:
cups-2.4.7/templates/modify-class.tmpl0000644000175000017500000000152414502571342017651 0ustar zdohnalzdohnal

Modify Class {printer_name}

Description:
Location:
Members:
cups-2.4.7/templates/list-available-printers.tmpl0000644000175000017500000000117114502571342022012 0ustar zdohnalzdohnal

Available Printers

{#device_uri=0?

No printers found.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/jobs.tmpl0000644000175000017500000000534614502571342016222 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNameUserSizePagesStateControl
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Unknown:{job_name}}  {?job_originating_user_name=?Withheld:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Unknown:{?job_impressions_completed}}  {job_state=3?pending since
{?time_at_creation=?Unknown:{time_at_creation}}:{job_state=4?held since
{?time_at_creation=?Unknown:{time_at_creation}}: {job_state=5?processing since
{?time_at_processing=?Unknown:{time_at_processing}}:{job_state=6?stopped: {job_state=7?canceled at
{?time_at_completed=?Unknown:{time_at_completed}}:{job_state=8?aborted:completed at
{?time_at_completed=?Unknown:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?{job_hold_until=auth-info-required?Held for authentication.:
:}:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/jobs-header.tmpl0000644000175000017500000000137214502571342017443 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Active jobs listed in processing order▼; held jobs appear first.:{which_jobs=all?Jobs in sequential order▼:Completed jobs in order of completion or cancellation▲}}

cups-2.4.7/templates/job-restart.tmpl0000644000175000017500000000016114502571342017507 0ustar zdohnalzdohnal

Reprint Job {job_id}

Job {job_id} has been restarted. cups-2.4.7/templates/job-release.tmpl0000644000175000017500000000017514502571342017450 0ustar zdohnalzdohnal

Release Job {job_id}

Job {job_id} has been released for printing. cups-2.4.7/templates/job-moved.tmpl0000644000175000017500000000033714502571342017142 0ustar zdohnalzdohnal

{job_id?Move Job {job_id}:Move All Jobs}

{job_id?Job {job_id}:All jobs} moved to {job_printer_name}.

cups-2.4.7/templates/job-move.tmpl0000644000175000017500000000113614502571342016774 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Move Job {job_id}:Move All Jobs}

New Destination:
cups-2.4.7/templates/job-hold.tmpl0000644000175000017500000000016714502571342016757 0ustar zdohnalzdohnal

Hold Job {job_id}

Job {job_id} has been held from printing. cups-2.4.7/templates/job-cancel.tmpl0000644000175000017500000000015714502571342017255 0ustar zdohnalzdohnal

Cancel Job {job_id}

Job {job_id} has been canceled. cups-2.4.7/templates/ja/0000755000175000017500000000000014502571342014751 5ustar zdohnalzdohnalcups-2.4.7/templates/ja/users.tmpl0000644000175000017500000000213514502571342017011 0ustar zdohnalzdohnal

{IS_CLASS?:}

{printer_name} に許可するユーザー

ユーザー:
cups-2.4.7/templates/ja/trailer.tmpl0000644000175000017500000000021314502571342017305 0ustar zdohnalzdohnal
cups-2.4.7/templates/ja/test-page.tmpl0000644000175000017500000000031714502571342017541 0ustar zdohnalzdohnal

{printer_name} のテストページ印刷

テストページを送信しました; ジョブ ID は {printer_name}-{job_id} です。

cups-2.4.7/templates/ja/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023252 0ustar zdohnalzdohnal cups-2.4.7/templates/ja/set-printer-options-header.tmpl0000644000175000017500000000156414502571342023050 0ustar zdohnalzdohnal

{printer_name} のデフォルトオプションの変更

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/ja/search.tmpl0000644000175000017500000000105014502571342017110 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

{SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?クラス:{SECTION=jobs?ジョブ:プリンター}}} 内を検索:

cups-2.4.7/templates/ja/restart.tmpl0000644000175000017500000000510614502571342017335 0ustar zdohnalzdohnal

設定の変更

Busy Indicator サーバーが再起動する間しばらくお待ちください...

cups-2.4.7/templates/ja/printers.tmpl0000644000175000017500000000102214502571342017510 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
キュー名説明場所メーカーとモデル状態
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?待機中:{printer_state=4?処理中:停止}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/ja/printers-header.tmpl0000644000175000017500000000021414502571342020740 0ustar zdohnalzdohnal

{total=0?プリンターはありません:{total} 台のプリンターのうち {#printer_name} 台を表示中}。

cups-2.4.7/templates/ja/printer.tmpl0000644000175000017500000000542514502571342017340 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?待機中:{printer_state=4?処理中:一時停止中}}, {printer_is_accepting_jobs=0?ジョブを拒否中:ジョブを受け付け中}, {server_is_sharing_printers=0?非:{printer_is_shared=0?非:}} 共有{default_name={printer_name}?, サーバーのデフォルト:})

説明:{printer_info}
場所:{printer_location}
プリンタードライバー:{printer_make_and_model} ({color_supported=1?カラー:白黒}{sides_supported=one-sided?:, 両面可})
接続:{device_uri}
デフォルト設定:バナー={job_sheets_default} 用紙サイズ={media_default?{media_default}:不明} {sides_default?両面指定={sides_default}:}
cups-2.4.7/templates/ja/printer-stop.tmpl0000644000175000017500000000034414502571342020316 0ustar zdohnalzdohnal

{is_class?クラス:プリンター} {printer_name} の停止

{is_class?クラス:プリンター} {printer_name} は停止しました。

cups-2.4.7/templates/ja/printer-start.tmpl0000644000175000017500000000034414502571342020466 0ustar zdohnalzdohnal

{is_class?クラス:プリンター} {printer_name} の再開

{is_class?クラス:プリンター} {printer_name} は再開しました。

cups-2.4.7/templates/ja/printer-reject.tmpl0000644000175000017500000000041314502571342020602 0ustar zdohnalzdohnal

{is_class?クラス:プリンター} {printer_name} のジョブの拒否

{is_class?クラス:プリンター} {printer_name} はジョブを受け付けなくなりました。

cups-2.4.7/templates/ja/printer-modified.tmpl0000644000175000017500000000025714502571342021114 0ustar zdohnalzdohnal

プリンター {printer_name} の変更

プリンター {printer_name} は正しく変更されました。 cups-2.4.7/templates/ja/printer-jobs-header.tmpl0000644000175000017500000000004114502571342021506 0ustar zdohnalzdohnal

ジョブ

cups-2.4.7/templates/ja/printer-deleted.tmpl0000644000175000017500000000021014502571342020727 0ustar zdohnalzdohnal

プリンター {printer_name} の削除

プリンター {printer_name} は正しく削除されました。 cups-2.4.7/templates/ja/printer-default.tmpl0000644000175000017500000000075014502571342020756 0ustar zdohnalzdohnal

{is_class?クラス:プリンター} {printer_name} をデフォルトに設定

{is_class?クラス:プリンター} {printer_name} をサーバーのデフォルトプリンターに設定しました。

注意: lpoptions コマンドで設定されたユーザーのデフォルトは、 このサーバーのデフォルト設定を上書きします。
cups-2.4.7/templates/ja/printer-confirm.tmpl0000644000175000017500000000074114502571342020767 0ustar zdohnalzdohnal

プリンター {printer_name} の削除

警告: 本当にプリンター {printer_name} を削除してよいですか?

cups-2.4.7/templates/ja/printer-configured.tmpl0000644000175000017500000000044514502571342021460 0ustar zdohnalzdohnal

{printer_name} のデフォルトオプションの設定

{OP=set-class-options?クラス :プリンター }{printer_name} のデフォルトオプションは正しく設定されました。 cups-2.4.7/templates/ja/printer-cancel-jobs.tmpl0000644000175000017500000000045414502571342021513 0ustar zdohnalzdohnal

Cancel Jobs On {is_class?クラス:プリンター} {printer_name} のジョブのキャンセル

{is_class?クラス:プリンター} {printer_name} のすべてのジョブはキャンセルされました。

cups-2.4.7/templates/ja/printer-added.tmpl0000644000175000017500000000024014502571342020365 0ustar zdohnalzdohnal

プリンターの追加

プリンター {printer_name} は正しく追加されました。 cups-2.4.7/templates/ja/printer-accept.tmpl0000644000175000017500000000042714502571342020572 0ustar zdohnalzdohnal

{is_class?クラス:プリンター} {printer_name} のジョブの受け付け

{is_class?クラス:プリンター} {printer_name} はジョブを受け付けるようになりました。

cups-2.4.7/templates/ja/pager.tmpl0000644000175000017500000000226614502571342016753 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/ja/option-trailer.tmpl0000644000175000017500000000015514502571342020620 0ustar zdohnalzdohnal

cups-2.4.7/templates/ja/option-pickone.tmpl0000644000175000017500000000173514502571342020613 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/ja/option-pickmany.tmpl0000644000175000017500000000037714502571342020777 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/ja/option-header.tmpl0000644000175000017500000000013114502571342020400 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/ja/option-conflict.tmpl0000644000175000017500000000037314502571342020761 0ustar zdohnalzdohnal

エラー: 以下のオプションは競合します:

競合を解決するために、1 つ以上のオプションを変更してください。

cups-2.4.7/templates/ja/option-boolean.tmpl0000644000175000017500000000043214502571342020573 0ustar zdohnalzdohnal cups-2.4.7/templates/ja/norestart.tmpl0000644000175000017500000000022714502571342017671 0ustar zdohnalzdohnal

設定変更

設定に何も変更が行われなかったため、サーバーは再起動されませんでした...

cups-2.4.7/templates/ja/modify-printer.tmpl0000644000175000017500000000254514502571342020625 0ustar zdohnalzdohnal

{printer_name} の変更

{keytext}: {[choices]}
説明:
("両面ありHP LaserJet" のように人が読みやすい説明)
場所:
("研究室1" のように人が読みやすい場所)
接続: {device_uri}
共有:
cups-2.4.7/templates/ja/modify-class.tmpl0000644000175000017500000000153714502571342020247 0ustar zdohnalzdohnal

クラス {printer_name} の変更

説明:
場所:
メンバー:
cups-2.4.7/templates/ja/list-available-printers.tmpl0000644000175000017500000000125314502571342022405 0ustar zdohnalzdohnal

利用可能なプリンター

{#device_uri=0?

プリンターが見つかりません。

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/ja/jobs.tmpl0000644000175000017500000000540514502571342016610 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
ID名前ユーザーサイズページ状態制御
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?未知:{job_name}}  {?job_originating_user_name=?隠匿:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?不明:{?job_impressions_completed}}  {job_state=3?{?time_at_creation=?Unknown:{time_at_creation}}
から保留中:{job_state=4?{?time_at_creation=?Unknown:{time_at_creation}}
から保留中: {job_state=5?{?time_at_processing=?Unknown:{time_at_processing}}
から処理中:{job_state=6?に停止: {job_state=7?{?time_at_completed=?Unknown:{time_at_completed}}
にキャンセル:{job_state=8?に中断:{?time_at_completed=?Unknown:{time_at_completed}}
に完了}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/ja/jobs-header.tmpl0000644000175000017500000000145214502571342020034 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Active jobs listed in processing order▼; held jobs appear first.:{which_jobs=all?Jobs in sequential order▼:Completed jobs in order of completion or cancellation▲}}

cups-2.4.7/templates/ja/job-restart.tmpl0000644000175000017500000000021514502571342020101 0ustar zdohnalzdohnal

ジョブ {job_id} の再印刷

ジョブ {job_id} は再印刷されました。 cups-2.4.7/templates/ja/job-release.tmpl0000644000175000017500000000022314502571342020034 0ustar zdohnalzdohnal

ジョブ {job_id} の解放

ジョブ {job_id} は印刷から解放されました。 cups-2.4.7/templates/ja/job-moved.tmpl0000644000175000017500000000044214502571342017531 0ustar zdohnalzdohnal

{job_id?ジョブ {job_id} の移動:すべてのジョブの移動}

{job_id?ジョブ {job_id}:すべてのジョブ} は {job_printer_name} に移動しました。

cups-2.4.7/templates/ja/job-move.tmpl0000644000175000017500000000121514502571342017364 0ustar zdohnalzdohnal
{job_id?:}

{job_id?ジョブ {job_id} の移動:すべてのジョブの移動}

新しい宛先:
cups-2.4.7/templates/ja/job-hold.tmpl0000644000175000017500000000022014502571342017337 0ustar zdohnalzdohnal

ジョブ {job_id} の保留

ジョブ {job_id} は印刷を保留されました。 cups-2.4.7/templates/ja/job-cancel.tmpl0000644000175000017500000000023114502571342017640 0ustar zdohnalzdohnal

ジョブ {job_id} のキャンセル

ジョブ {job_id} はキャンセルされました。 cups-2.4.7/templates/ja/help-trailer.tmpl0000644000175000017500000000000014502571342020225 0ustar zdohnalzdohnalcups-2.4.7/templates/ja/help-printable.tmpl0000644000175000017500000000056214502571342020560 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/ja/help-header.tmpl0000644000175000017500000000374614502571342020037 0ustar zdohnalzdohnal

{TOPIC?:}

{HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:すべてのドキュメント}}内を検索:

{QUERY?

{HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:すべてのドキュメント}}の検索結果\:

{QTEXT?:} :

マッチするものは見つかりませんでした。

}
:} {HELPTITLE?
:

オンラインヘルプ

これは、CUPS のオンラインヘルプインターフェイスです。 オンラインヘルプ情報を表示するには、検索語句を上に入力するか、 ドキュメントリンクのいずれかをクリックしてください。

あなたが CUPS について初心者なら、 "CUPS の概要" ページを読んでください。

CUPS ホームページ でも、 ユーザーディスカッションフォーラム、FAQ、 バグ報告や機能リクエストを申請するフォームといった、 多くのリソースを提供しています。

} cups-2.4.7/templates/ja/header.tmpl.in0000644000175000017500000000277014502571342017512 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/ja/error.tmpl0000644000175000017500000000020714502571342016777 0ustar zdohnalzdohnal

{?title} {?printer_name} のエラー

{?message?{message}:エラー}:

{error}
cups-2.4.7/templates/ja/error-op.tmpl0000644000175000017500000000021414502571342017411 0ustar zdohnalzdohnal

{?title} {?printer_name} のエラー

エラー:

"{op}" は未知の操作です!
cups-2.4.7/templates/ja/edit-config.tmpl0000644000175000017500000000113614502571342020040 0ustar zdohnalzdohnal

設定ファイルの編集

cups-2.4.7/templates/ja/command.tmpl0000644000175000017500000000071314502571342017266 0ustar zdohnalzdohnal

{printer_name} の {title}

{job_state>5?:Busy Indicator }プリンターコマンドジョブ {job_state=3?ペンディング中:{job_state=4?ホールド中: {job_state=5?処理中:{job_state=6?停止中: {job_state=7?キャンセル:{job_state=8?破棄:完了}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/ja/classes.tmpl0000644000175000017500000000101414502571342017300 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
キュー名説明場所メンバー状態
{printer_name}{printer_info}{printer_location}{?member_uris=?なし:{member_uris}}{printer_state=3?待機中:{printer_state=4?処理中:停止}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/ja/classes-header.tmpl0000644000175000017500000000020014502571342020522 0ustar zdohnalzdohnal

{total=0?クラスはありません:{total} 個のクラスのうち {#printer_name} 個を表示中}。

cups-2.4.7/templates/ja/class.tmpl0000644000175000017500000000457214502571342016764 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?待機中:{printer_state=4?処理中:停止}}, {printer_is_accepting_jobs=0?ジョブを拒否中:ジョブを受け付け中}, {server_is_sharing_printers=0?非:{printer_is_shared=0?非:}} 共有{default_name={printer_name}?, サーバーのデフォルト:})

説明:{printer_info}
場所:{printer_location}
メンバー:{?member_uris=?なし:{member_uris}}
デフォルト:job-sheets={job_sheets_default} media={media_default?{media_default}:不明} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/ja/class-modified.tmpl0000644000175000017500000000024214502571342020530 0ustar zdohnalzdohnal

クラス {printer_name} の変更

クラス {printer_name} は正しく変更されました。 cups-2.4.7/templates/ja/class-jobs-header.tmpl0000644000175000017500000000004114502571342021130 0ustar zdohnalzdohnal

ジョブ

cups-2.4.7/templates/ja/class-deleted.tmpl0000644000175000017500000000017414502571342020362 0ustar zdohnalzdohnal

クラス {printer_name} の削除

クラス {printer_name} は正しく削除されました。 cups-2.4.7/templates/ja/class-confirm.tmpl0000644000175000017500000000072114502571342020407 0ustar zdohnalzdohnal

クラス {printer_name} の削除

警告: 本当にクラス {printer_name} を削除してもよいですか?

cups-2.4.7/templates/ja/class-added.tmpl0000644000175000017500000000022214502571342020007 0ustar zdohnalzdohnal

クラスの追加

クラス {printer_name} は正しく追加されました。 cups-2.4.7/templates/ja/choose-uri.tmpl0000644000175000017500000000213514502571342017725 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name}の変更:プリンターの追加}

{printer_name?:}
接続:
例:
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

あなたのプリンターにふさわしい URI については、"ネットワークプリンター"を参照してください。

cups-2.4.7/templates/ja/choose-serial.tmpl0000644000175000017500000000270014502571342020403 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name}の変更:プリンターの追加}

{printer_name?:}
接続: {device_uri}
ボーレート:
パリティ:
データビット:
フロー制御:
cups-2.4.7/templates/ja/choose-model.tmpl0000644000175000017500000000445514502571342020235 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name}の変更:プリンターの追加}

{printer_name?:} {op=modify-printer?:}
名前: {printer_name}
説明: {printer_info}
場所: {printer_location}
接続: {device_uri}
共有: このプリンターを共有{?printer_is_shared=?しない:{?printer_is_shared=0?しない:する}}
メーカー: {PPD_MAKE}
モデル:
または PPD ファイルを提供:
cups-2.4.7/templates/ja/choose-make.tmpl0000644000175000017500000000365614502571342020054 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name}の変更:プリンターの追加}

{printer_name?:} {op=modify-printer?:}
名前: {printer_name}
説明: {printer_info}
場所: {printer_location}
接続: {device_uri}
共有: このプリンターを共有{?printer_is_shared=?しない:{?printer_is_shared=0?しない:する}}
メーカー:
 
または PPD ファイルを提供:
cups-2.4.7/templates/ja/choose-device.tmpl0000644000175000017500000000432114502571342020364 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} の変更:プリンターの追加}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
現在の接続\:
ローカルプリンター\: {[device_uri]{device_class!network?
:}}
発見されたネットワークプリンター\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
その他のネットワークプリンター\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Busy Indicator プリンターを探しています...

} cups-2.4.7/templates/ja/admin.tmpl0000644000175000017500000001320414502571342016737 0ustar zdohnalzdohnal

プリンター

クラス

ジョブ

サーバー

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

サーバー設定\:

詳細

        最大クライアント数\:
        
        

{have_gssapi?
:}

        最大ジョブ数 (0 は無制限)\:
        メタデータを保持\:
        ドキュメントを保持\:

        最大ログファイルサイズ\:

:

サーバー設定:

詳細

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/ja/add-printer.tmpl0000644000175000017500000000334414502571342020064 0ustar zdohnalzdohnal

新しいプリンターの追加

{?current_make!?:} {?current_make_and_model!?:}
名前:
("/"、"#"、スペースを除く表示可能文字を含めることができます)
説明:
("両面ありHP LaserJet" のように人が読みやすい説明)
場所:
("研究室1" のように人が読みやすい場所)
接続: {device_uri}
共有:
cups-2.4.7/templates/ja/add-class.tmpl0000644000175000017500000000213114502571342017477 0ustar zdohnalzdohnal

クラスの追加

名前:
説明:
("両面ありHP LaserJet" のように人が読みやすい説明)
場所:
("研究室1" のように人が読みやすい場所)
メンバー:
cups-2.4.7/templates/help-trailer.tmpl0000644000175000017500000000000014502571342017633 0ustar zdohnalzdohnalcups-2.4.7/templates/help-printable.tmpl0000644000175000017500000000056214502571342020166 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/help-header.tmpl0000644000175000017500000000322414502571342017434 0ustar zdohnalzdohnal
{TOPIC?:}

Search in {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:All Documents}}:

{QUERY?

Search Results in {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:All Documents}}\:

{QTEXT?:} :

No matches found.

}
:} {HELPTITLE?
:

Online Help

This is the CUPS online help interface. Enter search words above or click on any of the documentation links to display online help information.

If you are new to CUPS, read the "Overview of CUPS" page.

The CUPS home page also provides many resources including user discussion forums, answers to frequently-asked questions, and a form for submitting bug reports and feature requests.

} cups-2.4.7/templates/header.tmpl.in0000644000175000017500000000333614502571342017117 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/fr/0000755000175000017500000000000014502571342014766 5ustar zdohnalzdohnalcups-2.4.7/templates/fr/users.tmpl0000644000175000017500000000216514502571342017031 0ustar zdohnalzdohnal
{IS_CLASS?:}

Utilisateurs autorisés à utiliser {printer_name}

Utilisateurs :
cups-2.4.7/templates/fr/trailer.tmpl0000644000175000017500000000023214502571342017323 0ustar zdohnalzdohnal
cups-2.4.7/templates/fr/test-page.tmpl0000644000175000017500000000034614502571342017560 0ustar zdohnalzdohnal

Imprimer une Page de Test sur {printer_name}

La page de test a été envoyée; l'identifiant de la tâche est {printer_name}-{job_id}.

cups-2.4.7/templates/fr/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023267 0ustar zdohnalzdohnal
cups-2.4.7/templates/fr/set-printer-options-header.tmpl0000644000175000017500000000152314502571342023060 0ustar zdohnalzdohnal

Définir les Options pour {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/fr/search.tmpl0000644000175000017500000000106614502571342017134 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Rechercher dans {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?les classes:{SECTION=jobs?les tâches:les imprimantes}}} :

cups-2.4.7/templates/fr/restart.tmpl0000644000175000017500000000511514502571342017352 0ustar zdohnalzdohnal

Modifier les paramètres

Busy Indicator Veuillez patienter pendant que le serveur redémarre...

cups-2.4.7/templates/fr/printers.tmpl0000644000175000017500000000105014502571342017526 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nom de la fileDescriptionEmplacementMarque et modèleÉtat
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Inoccupée:{printer_state=4?En cours d'impression:En pause}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/fr/printers-header.tmpl0000644000175000017500000000016214502571342020757 0ustar zdohnalzdohnal

{total=0?Pas d'imprimante:Affichage de {#printer_name} sur {total} imprimante{total=1?:s}}.

cups-2.4.7/templates/fr/printer.tmpl0000644000175000017500000000527414502571342017357 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Inoccupée :{printer_state=4?En cours d'impression:En pause}}, {printer_is_accepting_jobs=0?Rejette les tâches:Accepte les tâches}, {server_is_sharing_printers=0?non:{printer_is_shared=0?non:}} partagée{default_name={printer_name}?, imprimante par défaut :})

Description :{printer_info}
Emplacement :{printer_location}
Pilote :{printer_make_and_model} ({color_supported=1?color:grayscale}{sides_supported=one-sided?:, 2-sided printing})
Connexion :{device_uri}
Par défaut :job-sheets={job_sheets_default} media={media_default?{media_default}:inconnu} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/fr/printer-stop.tmpl0000644000175000017500000000036314502571342020334 0ustar zdohnalzdohnal

Arrêter {is_class?La classe:l'imprimante} {printer_name}

{is_class?La classe:l'imprimante} {printer_name} a été arrêtée.

cups-2.4.7/templates/fr/printer-start.tmpl0000644000175000017500000000036714502571342020510 0ustar zdohnalzdohnal

Démarrer {is_class?La classe:l'imprimante} {printer_name}

{is_class?La classe:l'imprimante} {printer_name} a été démarrée.

cups-2.4.7/templates/fr/printer-reject.tmpl0000644000175000017500000000040114502571342020614 0ustar zdohnalzdohnal

Rejeter les Tâches sur {is_class?Classe:Imprimante} {printer_name}

{is_class?La classe:L'imprimante} {printer_name} n'accepte plus les tâches d'impression.

cups-2.4.7/templates/fr/printer-modified.tmpl0000644000175000017500000000027314502571342021127 0ustar zdohnalzdohnal

Modifier l'Imprimante {printer_name}

L'imprimante {printer_name} a été modifiée avec succès. cups-2.4.7/templates/fr/printer-jobs-header.tmpl0000644000175000017500000000003714502571342021530 0ustar zdohnalzdohnal

Tâches

cups-2.4.7/templates/fr/printer-deleted.tmpl0000644000175000017500000000022614502571342020753 0ustar zdohnalzdohnal

Supprimer l'imprimante {printer_name}

L'imprimante {printer_name} a été supprimée avec succès. cups-2.4.7/templates/fr/printer-default.tmpl0000644000175000017500000000104114502571342020765 0ustar zdohnalzdohnal

Définir {is_class?la classe:l'imprimante} {printer_name} comme {is_class?classe:imprimante} par défaut

{is_class?La classe:L'imprimante} {printer_name} a été définie comme {is_class?classe:imprimante} par défaut du serveur.

Note: Tout paramètre utilisateur défini via la commande lpoptions sera prioritaire sur le paramètre défini içi.
cups-2.4.7/templates/fr/printer-confirm.tmpl0000644000175000017500000000075114502571342021005 0ustar zdohnalzdohnal

Supprimer l'imprimante {printer_name}

Avertissement : Êtes-vous sûr(e) de vouloir supprimer l'imprimante {printer_name} ?

cups-2.4.7/templates/fr/printer-configured.tmpl0000644000175000017500000000043214502571342021471 0ustar zdohnalzdohnal

Définir les options par défaut pour {printer_name}

{OP=set-class-options?Class :L'imprimante }{printer_name} a été configurée avec succès. cups-2.4.7/templates/fr/printer-cancel-jobs.tmpl0000644000175000017500000000042314502571342021524 0ustar zdohnalzdohnal

Annuler la tâche sur {is_class?la classe:l'imprimante} {printer_name}

Toutes les tâches sur {is_class?la classe:l'imprimante} {printer_name} ont été annulée.

cups-2.4.7/templates/fr/printer-added.tmpl0000644000175000017500000000025414502571342020407 0ustar zdohnalzdohnal

Ajouter une imprimante

L'imprimante {printer_name} a été ajoutée avec succès. cups-2.4.7/templates/fr/printer-accept.tmpl0000644000175000017500000000041714502571342020606 0ustar zdohnalzdohnalH2 CLASS="title">Accepte les Tâches sur {is_class?la classe:l'imprimante} {printer_name}

{is_class?La classe:L'imprimante} {printer_name} accepte désormais les tâches d'impression.

cups-2.4.7/templates/fr/pager.tmpl0000644000175000017500000000244314502571342016765 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/fr/option-trailer.tmpl0000644000175000017500000000016314502571342020634 0ustar zdohnalzdohnal

cups-2.4.7/templates/fr/option-pickone.tmpl0000644000175000017500000000171514502571342020626 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/fr/option-pickmany.tmpl0000644000175000017500000000037714502571342021014 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/fr/option-header.tmpl0000644000175000017500000000013114502571342020415 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/fr/option-conflict.tmpl0000644000175000017500000000037414502571342020777 0ustar zdohnalzdohnal

Error: Les options suivantes sont incompatibles entre elles :

Veuillez modifier une ou plusieurs de ces options pour résoudre les conflits.

cups-2.4.7/templates/fr/option-boolean.tmpl0000644000175000017500000000043214502571342020610 0ustar zdohnalzdohnal cups-2.4.7/templates/fr/norestart.tmpl0000644000175000017500000000027514502571342017711 0ustar zdohnalzdohnal

Modifier les paramètres

Le serveur n'a pas été redémarré car la configuration n'a pas été modifiée...

cups-2.4.7/templates/fr/modify-printer.tmpl0000644000175000017500000000255614502571342020644 0ustar zdohnalzdohnal

Modifier {printer_name}

{keytext}: {[choices]}
Description :
(Description compréhensible comme "HP LaserJet Recto/Verso")
Emplacement :
(Emplacement compréhensible comme "Lab 1")
Connexion : {device_uri}
Partage :
cups-2.4.7/templates/fr/modify-class.tmpl0000644000175000017500000000155414502571342020263 0ustar zdohnalzdohnal

Modifier la classe {printer_name}

Description :
Emplacement :
Membres :
cups-2.4.7/templates/fr/list-available-printers.tmpl0000644000175000017500000000121714502571342022422 0ustar zdohnalzdohnal

Imprimantes disponibles

{#device_uri=0?

Aucune imprimante trouvée.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/fr/jobs.tmpl0000644000175000017500000000553514502571342016631 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNomUtilisateurTaillePagesÉtatContrôle
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Inconnu:{job_name}}  {?job_originating_user_name=?Caché:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Inconnu:{?job_impressions_completed}}  {job_state=3?en attente depuis
{?time_at_creation=?Inconnu:{time_at_creation}}:{job_state=4?retenu depuis le
{?time_at_creation=?Inconnu:{time_at_creation}}: {job_state=5?en cours d'impression depuis
{?time_at_processing=?Inconnu:{time_at_processing}}:{job_state=6?arrêté: {job_state=7?annulé depuis
{?time_at_completed=?Inconnu:{time_at_completed}}:{job_state=8?annulé:terminé depuis
{?time_at_completed=?Inconnu:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/fr/jobs-header.tmpl0000644000175000017500000000153714502571342020055 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Affichage des tâches en ordre d'impression; les tâches maintenues apparaissent en premier.:{which_jobs=all?Affichage des tâches dans l'ordre croissant.:Affichage des tâches dans l'ordre décroissant.}}

cups-2.4.7/templates/fr/job-restart.tmpl0000644000175000017500000000024214502571342020116 0ustar zdohnalzdohnal

Réimprimer la Tâche {job_id}

La tâche {job_id} a été relancée. cups-2.4.7/templates/fr/job-release.tmpl0000644000175000017500000000024514502571342020055 0ustar zdohnalzdohnal

Libérer la Tâche {job_id}

La tâche {job_id} a été libérée. cups-2.4.7/templates/fr/job-moved.tmpl0000644000175000017500000000050214502571342017543 0ustar zdohnalzdohnal

{job_id?Transférer la tâche {job_id}:Transférer toutes les tâches}

{job_id?Tâche {job_id}:Toutes les tâches} transférée(s) vers {job_printer_name}.

cups-2.4.7/templates/fr/job-move.tmpl0000644000175000017500000000131014502571342017375 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Transférer la tâche {job_id}:Transférer toutes les tâches}

Nouvelle destination:
cups-2.4.7/templates/fr/job-hold.tmpl0000644000175000017500000000022014502571342017354 0ustar zdohnalzdohnal

Retenir la tâche {job_id}

La tâche {job_id} a été retenue. cups-2.4.7/templates/fr/job-cancel.tmpl0000644000175000017500000000022714502571342017662 0ustar zdohnalzdohnal

Annuler la Tâche {job_id}

La tâche {job_id} a été annulée. cups-2.4.7/templates/fr/help-trailer.tmpl0000644000175000017500000000000014502571342020242 0ustar zdohnalzdohnalcups-2.4.7/templates/fr/help-printable.tmpl0000644000175000017500000000056214502571342020575 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/fr/help-header.tmpl0000644000175000017500000000334614502571342020050 0ustar zdohnalzdohnal

{TOPIC?:}

Rechercher dans {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:Tous les documents}}:

{QUERY?

Résultats de la recherche dans {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:Tous les documents}}\:

{QTEXT?:} :

Aucun résultat.

}
:} {HELPTITLE?
:

Aide en ligne

Ceci est l'interface d'aide en ligne de CUPS. Entrez vos termes de recherch ci-dessus ou cliquez sur un des liens vers la documentation pour voir les informations d'aide en ligne.

Si vous êtes un nouvel utilisateur de CUPS, lisez la page "Aperçu de CUPS".

La page d'accueil CUPS procure aussi beaucoup de ressources dont des forums, des FAQ, et un formulaire pour les rapports de bugs et les demandes de fonctionnalités.

} cups-2.4.7/templates/fr/header.tmpl.in0000644000175000017500000000340314502571342017521 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/fr/error.tmpl0000644000175000017500000000017614502571342017021 0ustar zdohnalzdohnal

{?title} {?printer_name} Erreur

{?message?{message}:Erreur}:

{error}
cups-2.4.7/templates/fr/error-op.tmpl0000644000175000017500000000020314502571342017424 0ustar zdohnalzdohnal

{?title} {?printer_name} Erreur

Erreur:

Opération inconnue "{op}"!
cups-2.4.7/templates/fr/edit-config.tmpl0000644000175000017500000000117514502571342020060 0ustar zdohnalzdohnal

Édition du fichier de configuration

cups-2.4.7/templates/fr/command.tmpl0000644000175000017500000000072014502571342017301 0ustar zdohnalzdohnal

{title} sur {printer_name}

{job_state>5?:Busy Indicator }Commandes de tâche d'impression {job_state=3?en attente:{job_state=4?retenu: {job_state=5?en cours d'impression:{job_state=6?annulé: {job_state=7?canceled:{job_state=8?annulé:terminé}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/fr/classes.tmpl0000644000175000017500000000104514502571342017321 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nom de la fileDescriptionEmplacementMembresÉtat
{printer_name}{printer_info}{printer_location}{?member_uris=?Aucun:{member_uris}}{printer_state=3?Inoccupée:{printer_state=4?En cours d'impression:En pause}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/fr/classes-header.tmpl0000644000175000017500000000015414502571342020547 0ustar zdohnalzdohnal

{total=0?Pas de classes:Affichage de {#printer_name} sur {total} classe{total=1?:s}}.

cups-2.4.7/templates/fr/class.tmpl0000644000175000017500000000467114502571342017001 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?En attente:{printer_state=4?En cours d'impression:Arrêtée}}, {printer_is_accepting_jobs=0?rejette les tâches:accepte les tâches}, {server_is_sharing_printers=0?Non p:{printer_is_shared=0?Non p:P}}artagée{default_name={printer_name}?, imprimante par défaut:})

Description :{printer_info}
Emplacement :{printer_location}
Membres :{?member_uris=?Aucun:{member_uris}}
Par défaut :job-sheets={job_sheets_default} media={media_default?{media_default}:inconnu} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/fr/class-modified.tmpl0000644000175000017500000000026414502571342020551 0ustar zdohnalzdohnal

Modifier la classe {printer_name}

La classe {printer_name} a été modifiée avec succès. cups-2.4.7/templates/fr/class-jobs-header.tmpl0000644000175000017500000000003714502571342021152 0ustar zdohnalzdohnal

Tâches

cups-2.4.7/templates/fr/class-deleted.tmpl0000644000175000017500000000022014502571342020367 0ustar zdohnalzdohnal

Supprimer la classe {printer_name}

La classe {printer_name} a été supprimée avec succès. cups-2.4.7/templates/fr/class-confirm.tmpl0000644000175000017500000000071714502571342020431 0ustar zdohnalzdohnal

Supprimer la classe {printer_name}

Attention: Êtes-vous sur(e) de vouloir supprimer la classe {printer_name}?

cups-2.4.7/templates/fr/class-added.tmpl0000644000175000017500000000024414502571342020030 0ustar zdohnalzdohnal

Ajouter une classe

La classe {printer_name} a été ajoutée avec succès. cups-2.4.7/templates/fr/choose-uri.tmpl0000644000175000017500000000207014502571342017740 0ustar zdohnalzdohnal

{op=modify-printer?Modifier {printer_name}:Ajouter une imprimante}

{printer_name?:}
Connexion :
Exemples :
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

Voir "Imprimantes réseaux" pour construire l'URI à employer avec votre imprimante.

cups-2.4.7/templates/fr/choose-serial.tmpl0000644000175000017500000000264414502571342020427 0ustar zdohnalzdohnal

{op=modify-printer?Modifier {printer_name}:Ajouter une imprimante}

{printer_name?:}
Connexion : {device_uri}
Baud/s :
Parité :
Bits de données :
Contrôle de flux :
cups-2.4.7/templates/fr/choose-model.tmpl0000644000175000017500000000442614502571342020250 0ustar zdohnalzdohnal

{op=modify-printer?Modifier {printer_name}:Ajouter une imprimante}

{printer_name?:} {op=modify-printer?:}
Nom : {printer_name}
Description : {printer_info}
Emplacement : {printer_location}
Connexion : {device_uri}
Partage : {?printer_is_shared=?Ne pas p:{?printer_is_shared=0?Ne pas p:P}}artager cette imprimante
Marque : {PPD_MAKE}
Modèle :
Ou donner un fichier PPD :
cups-2.4.7/templates/fr/choose-make.tmpl0000755000175000017500000000364614502571342020073 0ustar zdohnalzdohnal

{op=modify-printer?Modifier {printer_name}:Ajouter une imprimante}

{printer_name?:} {op=modify-printer?:}
Nom : {printer_name}
Description : {printer_info}
Emplacement : {printer_location}
Connexion : {device_uri}
Partage : {?printer_is_shared=?Ne pas:{?printer_is_shared=0?Do Not:}} partager cette imprimante
Marque :
 
Ou donner un fichier PPD :
cups-2.4.7/templates/fr/choose-device.tmpl0000644000175000017500000000427314502571342020407 0ustar zdohnalzdohnal

{op=modify-printer?Modifier {printer_name}:Ajouter une imprimante}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Connexion courante \:
Imprimantes locales \: {[device_uri]{device_class!network?
:}}
Imprimantes réseau découvertes \: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Autres imprimantes réseau \: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Indicateur d'occupation Recherche en cours...

} cups-2.4.7/templates/fr/admin.tmpl0000644000175000017500000001355614502571342016766 0ustar zdohnalzdohnal

Imprimantes

Classes

Tâches

Serveur

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Paramètres du serveur \:

Avancé

        Nombre maximum de clients \:
        
        

{have_gssapi?
:}

        Nombre maximum de tâches (0 pour aucune limite)\:
        Conserver les méta-données \:
        Conserver les documents \:

        Taille maximum du journal système \:

:

Paramètres du serveur \:

Avancé

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/fr/add-printer.tmpl0000644000175000017500000000332614502571342020101 0ustar zdohnalzdohnal

Ajouter une imprimante

{?current_make!?:} {?current_make_and_model!?:}
Nom \:
(Peut contenir n'importe quel caractère sauf "/", "#", et espace)
Description :
(Description compréhensible comme "HP LaserJet Recto/Verso")
Emplacement :
(Emplacement compréhensible comme "Lab 1")
Connexion : {device_uri}
Partage :
cups-2.4.7/templates/fr/add-class.tmpl0000644000175000017500000000212414502571342017516 0ustar zdohnalzdohnal

Ajouter une classe

Nom :
(Peut contenir n'importe quel caractère sauf "/", "#", et espace)
Description :
(Description compréhensible comme "HP LaserJet Recto/Verso")
Emplacement :
(Emplacement compréhensible comme "Lab 1")
Membres :
cups-2.4.7/templates/es/0000755000175000017500000000000014502571342014766 5ustar zdohnalzdohnalcups-2.4.7/templates/es/users.tmpl0000644000175000017500000000210314502571342017021 0ustar zdohnalzdohnal
{IS_CLASS?:}

Usuarios permitidos para {printer_name}

Usuarios:
cups-2.4.7/templates/es/trailer.tmpl0000644000175000017500000000023514502571342017326 0ustar zdohnalzdohnal
cups-2.4.7/templates/es/test-page.tmpl0000644000175000017500000000033014502571342017551 0ustar zdohnalzdohnal

Imprimir página de prueba en {printer_name}

Página de prueba enviada; el número del trabajo es el {printer_name}-{job_id}.

cups-2.4.7/templates/es/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023267 0ustar zdohnalzdohnal cups-2.4.7/templates/es/set-printer-options-header.tmpl0000644000175000017500000000154014502571342023057 0ustar zdohnalzdohnal

Establecer opciones predeterminadas de {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/es/search.tmpl0000644000175000017500000000103014502571342017123 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Buscar en {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?clases:{SECTION=jobs?trabajos:impresoras}}}:

cups-2.4.7/templates/es/restart.tmpl0000644000175000017500000000510414502571342017350 0ustar zdohnalzdohnal

Cambiar especificaciones

Indicador de ocupado Por favor espere mientras se reinicia el servidor...

cups-2.4.7/templates/es/printers.tmpl0000644000175000017500000000104014502571342017525 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nombre de la colaDescripciónUbicaciónMarca y modeloEstado
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Inactiva:{printer_state=4?Procesando:En pausa}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/es/printers-header.tmpl0000644000175000017500000000015614502571342020762 0ustar zdohnalzdohnal

{total=0?No hay impresoras:Mostrando {#printer_name} de {total} impresora{total=1?:s}}.

cups-2.4.7/templates/es/printer.tmpl0000644000175000017500000000533114502571342017351 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?inactiva:{printer_state=4?procesando:en pausa}}, {printer_is_accepting_jobs=0?rechazando trabajos:aceptando trabajos}, {server_is_sharing_printers=0?no:{printer_is_shared=0?no:}} compartida{default_name={printer_name}?, predeterminada del servidor:})

Descripción:{printer_info}
Ubicación:{printer_location}
Controlador:{printer_make_and_model} ({color_supported=1?color:escala de grises}{sides_supported=one-sided?:, dúplex})
Conexión:{device_uri}
Opciones predeterminadas:rótulos={job_sheets_default} papel={media_default?{media_default}:desconocido} {sides_default?caras={sides_default}:}
cups-2.4.7/templates/es/printer-stop.tmpl0000644000175000017500000000032314502571342020330 0ustar zdohnalzdohnal

Pausar la {is_class?clase:impresora} {printer_name}

La {is_class?clase:impresora} {printer_name} ha sido puesta en pausa.

cups-2.4.7/templates/es/printer-start.tmpl0000644000175000017500000000031714502571342020503 0ustar zdohnalzdohnal

Reanudar la {is_class?clase:impresora} {printer_name}

La {is_class?clase:impresora} {printer_name} ha sido reanudada.

cups-2.4.7/templates/es/printer-reject.tmpl0000644000175000017500000000033714502571342020624 0ustar zdohnalzdohnal

Rechazar trabajos de la {is_class?clase:impresora} {printer_name}

La {is_class?clase:impresora} {printer_name} ya no acepta trabajos.

cups-2.4.7/templates/es/printer-modified.tmpl0000644000175000017500000000024414502571342021125 0ustar zdohnalzdohnal

Modificar impresora {printer_name}

Se ha modificado con éxito la impresora {printer_name}. cups-2.4.7/templates/es/printer-jobs-header.tmpl0000644000175000017500000000004014502571342021522 0ustar zdohnalzdohnal

Trabajos

cups-2.4.7/templates/es/printer-deleted.tmpl0000644000175000017500000000016714502571342020757 0ustar zdohnalzdohnal

Borrar impresora {printer_name}

Se ha borrado con éxito la impresora {printer_name}. cups-2.4.7/templates/es/printer-default.tmpl0000644000175000017500000000071414502571342020773 0ustar zdohnalzdohnal

Poner la {is_class?clase:impresora} {printer_name} como predeterminada

Se ha puesto como predeterminada en el servidor la {is_class?clase:impresora} {printer_name}.

Nota: cualquier opción de usuario que haya sido activada por mediación del comando lpoptions tiene mayor preferencia que este ajuste predeterminado.
cups-2.4.7/templates/es/printer-confirm.tmpl0000644000175000017500000000072414502571342021005 0ustar zdohnalzdohnal

Borrar impresora {printer_name}

Advertencia: ¿Está seguro de querer borrar la impresora {printer_name}?

cups-2.4.7/templates/es/printer-configured.tmpl0000644000175000017500000000042614502571342021474 0ustar zdohnalzdohnal

Cambiar opciones predeterminadas de {printer_name}

Se han establecido con éxito las opciones predeterminadas de la {OP=set-class-options?clase :impresora }{printer_name}. cups-2.4.7/templates/es/printer-cancel-jobs.tmpl0000644000175000017500000000035514502571342021530 0ustar zdohnalzdohnal

Cancelar trabajos en {is_class?clase:impresora} {printer_name}

Se han cancelado todos los trabajos de la {is_class?clase:impresora} {printer_name}.

cups-2.4.7/templates/es/printer-added.tmpl0000644000175000017500000000023514502571342020406 0ustar zdohnalzdohnal

Añadir impresora

Se ha añadido con éxito la impresora {printer_name}. cups-2.4.7/templates/es/printer-accept.tmpl0000644000175000017500000000033614502571342020606 0ustar zdohnalzdohnal

Aceptar trabajos de la {is_class?clase:impresora} {printer_name}

La {is_class?clase:impresora} {printer_name} ahora acepta trabajos.

cups-2.4.7/templates/es/pager.tmpl0000644000175000017500000000242514502571342016765 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/es/option-trailer.tmpl0000644000175000017500000000014614502571342020635 0ustar zdohnalzdohnal

cups-2.4.7/templates/es/option-pickone.tmpl0000644000175000017500000000170414502571342020624 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/es/option-pickmany.tmpl0000644000175000017500000000037714502571342021014 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/es/option-header.tmpl0000644000175000017500000000013114502571342020415 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/es/option-conflict.tmpl0000644000175000017500000000034414502571342020774 0ustar zdohnalzdohnal

Error: Las siguientes opciones están en conflicto:

Cambie una o más de las opciones para resolver el problema.

cups-2.4.7/templates/es/option-boolean.tmpl0000644000175000017500000000043214502571342020610 0ustar zdohnalzdohnal cups-2.4.7/templates/es/norestart.tmpl0000644000175000017500000000023314502571342017703 0ustar zdohnalzdohnal

Cambiar especificaciones

No se ha reiniciado el servidor debido a que no se han hecho cambios en la configuración...

cups-2.4.7/templates/es/modify-printer.tmpl0000644000175000017500000000263714502571342020644 0ustar zdohnalzdohnal

Modificar {printer_name}

{keytext}: {[choices]}
Descripción:
(Descripción fácilmente leíble tal como "HP LaserJet de doble cara")
Ubicación:
(Ubicación fácilmente leíble tal como "Lab 1")
Conexión: {device_uri}
Compartida:
cups-2.4.7/templates/es/modify-class.tmpl0000644000175000017500000000155214502571342020261 0ustar zdohnalzdohnal

Modificar clase {printer_name}

Descripción:
Ubicación:
Miembros:
cups-2.4.7/templates/es/list-available-printers.tmpl0000644000175000017500000000122314502571342022417 0ustar zdohnalzdohnal

Impresoras disponibles

{#device_uri=0?

No se encuentran impresoras.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/es/jobs.tmpl0000644000175000017500000000537314502571342016631 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNombreUsuarioTamañoPáginasEstadoControl
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Desconocido:{job_name}}  {?job_originating_user_name=?Retenido:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Desconocido:{?job_impressions_completed}}  {job_state=3?pendiente desde
{?time_at_creation=?Unknown:{time_at_creation}}:{job_state=4?retenido desde
{?time_at_creation=?Unknown:{time_at_creation}}: {job_state=5?en proceso desde
{?time_at_processing=?Unknown:{time_at_processing}}:{job_state=6?parado: {job_state=7?cancelado el
{?time_at_completed=?Unknown:{time_at_completed}}:{job_state=8?interrumpido:completado el
{?time_at_completed=?Unknown:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/es/jobs-header.tmpl0000644000175000017500000000143014502571342020045 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Active jobs listed in processing order▼; held jobs appear first.:{which_jobs=all?Jobs in sequential order▼:Completed jobs in order of completion or cancellation▲}}

cups-2.4.7/templates/es/job-restart.tmpl0000644000175000017500000000017514502571342020123 0ustar zdohnalzdohnal

Reimprimir trabajo {job_id}

Se ha reiniciado el Trabajo {job_id}. cups-2.4.7/templates/es/job-release.tmpl0000644000175000017500000000017014502571342020052 0ustar zdohnalzdohnal

Liberar trabajo {job_id}

Se ha liberado el Trabajo {job_id}. cups-2.4.7/templates/es/job-moved.tmpl0000644000175000017500000000042114502571342017543 0ustar zdohnalzdohnal

{job_id?Mover trabajo {job_id}:Mover todos los trabajos}

Se {job_id?ha movido el Trabajo {job_id}:han movido todos los trabajos} a {job_printer_name}.

cups-2.4.7/templates/es/job-move.tmpl0000644000175000017500000000116614502571342017406 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Mover trabajo {job_id}:Mover todos los trabajos}

Nuevo destino:
cups-2.4.7/templates/es/job-hold.tmpl0000644000175000017500000000017014502571342017360 0ustar zdohnalzdohnal

Retener trabajo {job_id}

Se ha retenido el Trabajo {job_id}. cups-2.4.7/templates/es/job-cancel.tmpl0000644000175000017500000000017214502571342017661 0ustar zdohnalzdohnal

Cancelar trabajo {job_id}

Se ha cancelado el Trabajo {job_id}. cups-2.4.7/templates/es/help-trailer.tmpl0000644000175000017500000000000014502571342020242 0ustar zdohnalzdohnalcups-2.4.7/templates/es/help-printable.tmpl0000644000175000017500000000056214502571342020575 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/es/help-header.tmpl0000644000175000017500000000361214502571342020044 0ustar zdohnalzdohnal

{TOPIC?:}

Buscar en {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:todos los documentos}}:

{QUERY?

Buscar resultados en {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:todos los documentos}}\:

{QTEXT?:} :

No hay coincidencias.

}
:} {HELPTITLE?
:

Ayuda en línea

Esta es la interfaz de ayuda en línea de CUPS. Introduzca las palabras a buscar aquí encima o haga clic en cualquiera de los enlaces de la documentación para visualizar la información de ayuda en línea.

Si es nuevo en CUPS, lea la página "Información general de CUPS".

La página de inicio de CUPS también proporciona muchos recursos, incluyendo foros de discusión de usuarios, respuestas a preguntas frecuentes, y un formulario para el envío de informes de errores y peticiones de mejoras.

} cups-2.4.7/templates/es/header.tmpl.in0000644000175000017500000000341114502571342017520 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/es/error.tmpl0000644000175000017500000000020014502571342017005 0ustar zdohnalzdohnal

Error en {?printer_name}: {?title}

{?message?{message}:Error}:

{error}
cups-2.4.7/templates/es/error-op.tmpl0000644000175000017500000000021714502571342017431 0ustar zdohnalzdohnal

Error en {?printer_name}: {?title}

Error:

¡Operación desconocida "{op}"!
cups-2.4.7/templates/es/edit-config.tmpl0000644000175000017500000000115714502571342020060 0ustar zdohnalzdohnal

Editar archivo de configuración

cups-2.4.7/templates/es/command.tmpl0000644000175000017500000000067214502571342017307 0ustar zdohnalzdohnal

{title} en {printer_name}

{job_state>5?:Indicador de ocupado }Trabajo de comando de impresora {job_state=3?pendiente:{job_state=4?retenido: {job_state=5?procesando:{job_state=6?parado: {job_state=7?cancelado:{job_state=8?interrumpido:completado}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/es/classes.tmpl0000644000175000017500000000104314502571342017317 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Nombre de la colaDescripciónUbicaciónMiembrosEstado
{printer_name}{printer_info}{printer_location}{?member_uris=?Ninguna:{member_uris}}{printer_state=3?Inactiva:{printer_state=4?Procesando:En pausa}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/es/classes-header.tmpl0000644000175000017500000000014614502571342020550 0ustar zdohnalzdohnal

{total=0?No hay clases:Mostrando {#printer_name} de {total} clase{total=1?:s}}.

cups-2.4.7/templates/es/class.tmpl0000644000175000017500000000454614502571342017002 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?inactiva:{printer_state=4?procesando:en pausa}}, {printer_is_accepting_jobs=0?rechazando trabajos:aceptando trabajos}, {server_is_sharing_printers=0?no:{printer_is_shared=0?no:}} compartida{default_name={printer_name}?, predeterminada del servidor:})

Descripción:{printer_info}
Ubicación:{printer_location}
Miembros:{?member_uris=?Ninguno:{member_uris}}
Opciones predeterminadas:job-sheets={job_sheets_default} media={media_default?{media_default}:desconocido} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/es/class-modified.tmpl0000644000175000017500000000023314502571342020545 0ustar zdohnalzdohnal

Modificar clase {printer_name}

Se ha modificado con éxito la clase {printer_name}. cups-2.4.7/templates/es/class-jobs-header.tmpl0000644000175000017500000000004014502571342021144 0ustar zdohnalzdohnal

Trabajos

cups-2.4.7/templates/es/class-deleted.tmpl0000644000175000017500000000015714502571342020400 0ustar zdohnalzdohnal

Borrar clase {printer_name}

Se ha borrado con éxito la clase {printer_name}. cups-2.4.7/templates/es/class-confirm.tmpl0000644000175000017500000000070614502571342020427 0ustar zdohnalzdohnal

Borrar clase {printer_name}

Advertencia: ¿Está seguro de querer borrar la clase {printer_name}?

cups-2.4.7/templates/es/class-added.tmpl0000644000175000017500000000022514502571342020027 0ustar zdohnalzdohnal

Añadir clase

Se ha añadido con éxito la clase {printer_name}. cups-2.4.7/templates/es/choose-uri.tmpl0000644000175000017500000000215614502571342017745 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Añadir impresora}

{printer_name?:}
Conexión:
Ejemplos:
    http://nombre_ordenador:631/ipp/
    http://nombre_ordenador:631/ipp/puerto1

    ipp://nombre_ordenador/ipp/
    ipp://nombre_ordenador/ipp/puerto1

    lpd://nombre_ordenador/cola

    socket://nombre_ordenador
    socket://nombre_ordenador:9100

Vea "Impresoras en red" para escoger el URI adecuado a usar con su impresora.

cups-2.4.7/templates/es/choose-serial.tmpl0000644000175000017500000000263414502571342020426 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Añadir impresora}

{printer_name?:}
Conexión: {device_uri}
Baudios:
Paridad:
Bits de datos:
Control de flujo:
cups-2.4.7/templates/es/choose-model.tmpl0000644000175000017500000000443614502571342020251 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Añadir impresora}

{printer_name?:} {op=modify-printer?:}
Nombre: {printer_name}
Descripción: {printer_info}
Ubicación: {printer_location}
Conexión: {device_uri}
Compartición: {?printer_is_shared=?No:{?printer_is_shared=0?No:}} compartir esta impresora
Marca: {PPD_MAKE}
Modelo:
O proporcione un archivo PPD:
cups-2.4.7/templates/es/choose-make.tmpl0000644000175000017500000000365514502571342020070 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Añadir impresora}

{printer_name?:} {op=modify-printer?:}
Nombre: {printer_name}
Descripción: {printer_info}
Ubicación: {printer_location}
Conexión: {device_uri}
Compartición: {?printer_is_shared=?No:{?printer_is_shared=0?No:}} compartir esta impresora
Marca:
 
O proporcione un archivo PPD:
cups-2.4.7/templates/es/choose-device.tmpl0000644000175000017500000000423314502571342020403 0ustar zdohnalzdohnal

{op=modify-printer?Modificar {printer_name}:Añadir impresora}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Conexión actual\:
Impresoras locales\: {[device_uri]{device_class!network?
:}}
Impresoras en red descubiertas\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Otras impresoras en red\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Indicador de ocupado Buscando impresoras...

} cups-2.4.7/templates/es/admin.tmpl0000644000175000017500000001336414502571342016763 0ustar zdohnalzdohnal

Impresoras

Clases

Trabajos

Servidor

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Configuración del servidor\:

Avanzada

        Número máximo de clientes\:
        
        

{have_gssapi?
:}

        Número máximo de trabajos (0 sin límite)\:
        Retener metadatos\:
        Retener documentos\:

        Tamaño máximo del archivo de registro\:

:

Configuración del servidor:

Avanzada

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/es/add-printer.tmpl0000644000175000017500000000343014502571342020075 0ustar zdohnalzdohnal

Añadir impresora

{?current_make!?:} {?current_make_and_model!?:}
Nombre:
(Puede contener cualquier carácter imprimible excepto "/", "#", y espacio)
Descripción:
(Descripción fácilmente leíble tal como "HP LaserJet de doble cara")
Ubicación:
(Ubicación fácilmente leíble tal como "Lab 1")
Conexión: {device_uri}
Compartición:
cups-2.4.7/templates/es/add-class.tmpl0000644000175000017500000000221414502571342017516 0ustar zdohnalzdohnal

Añadir clase

Nombre:
(Puede contener cualquier carácter imprimible excepto "/", "#", y espacio)
Descripción:
(Descripción fácilmente leíble tal como "HP LaserJet de doble cara")
Ubicación:
(Ubicación fácilmente leíble tal como "Lab 1")
Miembros:
cups-2.4.7/templates/error.tmpl0000644000175000017500000000017414502571342016410 0ustar zdohnalzdohnal

{?title} {?printer_name} Error

{?message?{message}:Error}:

{error}
cups-2.4.7/templates/error-op.tmpl0000644000175000017500000000017114502571342017021 0ustar zdohnalzdohnal

{?title} {?printer_name} Error

Error:

Unknown operation "{op}"!
cups-2.4.7/templates/edit-config.tmpl0000644000175000017500000000111014502571342017436 0ustar zdohnalzdohnal

Edit Configuration File

cups-2.4.7/templates/de/0000755000175000017500000000000014502571342014747 5ustar zdohnalzdohnalcups-2.4.7/templates/de/users.tmpl0000644000175000017500000000210514502571342017004 0ustar zdohnalzdohnal
{IS_CLASS?:}

Erlaubte Benutzer für {printer_name}

Benutzer:
cups-2.4.7/templates/de/trailer.tmpl0000644000175000017500000000021714502571342017307 0ustar zdohnalzdohnal
cups-2.4.7/templates/de/test-page.tmpl0000644000175000017500000000026714502571342017543 0ustar zdohnalzdohnal

Testseite für Drucker {printer_name}

Testseite wurde gesendet; Auftragsnummer lautet {printer_name}-{job_id}.

cups-2.4.7/templates/de/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023250 0ustar zdohnalzdohnal cups-2.4.7/templates/de/set-printer-options-header.tmpl0000644000175000017500000000152514502571342023043 0ustar zdohnalzdohnal

Standardeinstellungen für {printer_name} festlegen

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/de/search.tmpl0000644000175000017500000000103014502571342017104 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Suche in {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?Klassen:{SECTION=jobs?Aufträgen:Druckern}}}:

cups-2.4.7/templates/de/restart.tmpl0000644000175000017500000000510314502571342017330 0ustar zdohnalzdohnal

Einstellungen ändern

Beschäftigungsanzeige Bitte warten Sie bis der Server neu gestartet ist…

cups-2.4.7/templates/de/printers.tmpl0000644000175000017500000000101514502571342017510 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
WarteschlangeBeschreibungOrtHersteller und ModellStatus
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Leerlauf:{printer_state=4?Beschäftigt:Angehalten}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/de/printers-header.tmpl0000644000175000017500000000014514502571342020741 0ustar zdohnalzdohnal

{total=0?Keine Drucker:Zeige {#printer_name} von {total} Drucker{total=1?:n}}.

cups-2.4.7/templates/de/printer.tmpl0000644000175000017500000000523414502571342017334 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Leerlauf:{printer_state=4?Beschäftigt:Angehalten}}, {printer_is_accepting_jobs=0?Aufträge ablehnen:Aufträge annehmen}, {server_is_sharing_printers=0?keine:{printer_is_shared=0?keine:}} Netzwerkfreigabe{default_name={printer_name}?, Standarddrucker:}, {printer_is_colormanaged=0?kein Farbmanagement:Farbmanagement})

Beschreibung:{printer_info}
Ort:{printer_location}
Treiber:{printer_make_and_model} ({color_supported=1?farbig:schwarz-weiß}{sides_supported?, 2-seitiges Drucken:})
Verbindung:{device_uri}
Standardeinstellungen:job-sheets={job_sheets_default} media={media_default?{media_default}:unbekannt} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/de/printer-stop.tmpl0000644000175000017500000000031614502571342020313 0ustar zdohnalzdohnal

{is_class?Klasse:Drucker} {printer_name} anhalten

{is_class?Die Klasse:Der Drucker} {printer_name} wurde angehalten.

cups-2.4.7/templates/de/printer-start.tmpl0000644000175000017500000000031314502571342020460 0ustar zdohnalzdohnal

{is_class?Klasse:Drucker} {printer_name} starten

{is_class?Die Klasse:Der Drucker} {printer_name} wird gestartet.

cups-2.4.7/templates/de/printer-reject.tmpl0000644000175000017500000000036014502571342020601 0ustar zdohnalzdohnal

Aufträge für {is_class?Klasse:Drucker} {printer_name} ablehnen

{is_class?Die Klasse:Der Drucker} {printer_name} akzeptiert keine weiteren Aufträge.

cups-2.4.7/templates/de/printer-modified.tmpl0000644000175000017500000000022514502571342021105 0ustar zdohnalzdohnal

Drucker {printer_name} ändern

Drucker {printer_name} wurde erfolgreich geändert. cups-2.4.7/templates/de/printer-jobs-header.tmpl0000644000175000017500000000004114502571342021504 0ustar zdohnalzdohnal

Aufträge

cups-2.4.7/templates/de/printer-deleted.tmpl0000644000175000017500000000015714502571342020737 0ustar zdohnalzdohnal

Drucker {printer_name} löschen

Drucker {printer_name} wurde erfolgreich gelöscht. cups-2.4.7/templates/de/printer-default.tmpl0000644000175000017500000000074714502571342020762 0ustar zdohnalzdohnal

{is_class?Klasse:Drucker} {printer_name} als Standard festlegen

{is_class?Die Klasse:Der Drucker} {printer_name} wurde {is_class?zur Standardklasse:zum Standarddrucker} gemacht.

Hinweis: Die Einstellungen {is_class?der Standardklasse:des Standarddruckers} welche von Benutzern mittels dem lpoptions Befehl gesetzt wurden, überschreiben diese Einstellung.
cups-2.4.7/templates/de/printer-confirm.tmpl0000644000175000017500000000073014502571342020763 0ustar zdohnalzdohnal

Drucker {printer_name} löschen

Warnung: Sind Sie sicher, dass Sie den Drucker {printer_name} wirklich löschen möchten?

cups-2.4.7/templates/de/printer-configured.tmpl0000644000175000017500000000040514502571342021452 0ustar zdohnalzdohnal

Standardeinstellungen für {printer_name} festlegen

Standardeinstellungen für {OP=set-class-options?Klasse :Drucker }{printer_name} wurden erfolgreich gesetzt. cups-2.4.7/templates/de/printer-cancel-jobs.tmpl0000644000175000017500000000034514502571342021510 0ustar zdohnalzdohnal

Aufträge auf {is_class?Class:Printer} {printer_name} löschen

Alle Aufträge auf {is_class?class:printer} {printer_name} wurden gelöscht.

cups-2.4.7/templates/de/printer-added.tmpl0000644000175000017500000000021314502571342020363 0ustar zdohnalzdohnal

Drucker hinzufügen

Drucker {printer_name} wurde erfolgreich hinzufügt. cups-2.4.7/templates/de/printer-accept.tmpl0000644000175000017500000000034514502571342020567 0ustar zdohnalzdohnal

Aufträge für {is_class?Klasse:Drucker} {printer_name} annehmen

{is_class?Die Klasse:Der Drucker} {printer_name} nimmt jetzt Aufträge an.

cups-2.4.7/templates/de/pager.tmpl0000644000175000017500000000232114502571342016741 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/de/option-trailer.tmpl0000644000175000017500000000014514502571342020615 0ustar zdohnalzdohnal

cups-2.4.7/templates/de/option-pickone.tmpl0000644000175000017500000000166014502571342020606 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/de/option-pickmany.tmpl0000644000175000017500000000037714502571342020775 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/de/option-header.tmpl0000644000175000017500000000013114502571342020376 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/de/option-conflict.tmpl0000644000175000017500000000035014502571342020752 0ustar zdohnalzdohnal

Fehler: Die folgenden Optionen stehen im Konflikt:

Bitte ändern Sie eine oder mehrere Einstellungen um die Konflikte zu lösen.

cups-2.4.7/templates/de/option-boolean.tmpl0000644000175000017500000000043214502571342020571 0ustar zdohnalzdohnal cups-2.4.7/templates/de/norestart.tmpl0000644000175000017500000000021114502571342017660 0ustar zdohnalzdohnal

Einstellungen ändern

Der Server wurde nicht neu gestartet, da die Konfiguration nicht geändert wurde…

cups-2.4.7/templates/de/modify-printer.tmpl0000644000175000017500000000252414502571342020620 0ustar zdohnalzdohnal

{printer_name} ändern

{keytext}: {[choices]}
Beschreibung:
(Menschenlesbare Beschreibung wie etwa "HP LaserJet mit Duplexer")
Ort:
(Menschenlesbarer Ort wie etwa "Labor 1")
Verbindung: {device_uri}
Freigabe:
cups-2.4.7/templates/de/modify-class.tmpl0000644000175000017500000000152714502571342020244 0ustar zdohnalzdohnal

Klasse {printer_name} ändern

Beschreibung:
Ort:
Mitglieder:
cups-2.4.7/templates/de/list-available-printers.tmpl0000644000175000017500000000121114502571342022375 0ustar zdohnalzdohnal

Verfügbare Drucker

{#device_uri=0?

Keine Drucker gefunden.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/de/jobs.tmpl0000644000175000017500000000537014502571342016607 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNameBenutzerGrößeSeitenStatusSteuerung
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Unbekannt:{job_name}}  {?job_originating_user_name=?Zurückbehalten:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Unbekannt:{?job_impressions_completed}}  {job_state=3?unerledigt seit
{?time_at_creation=?Unknown:{time_at_creation}}:{job_state=4?angehalten seit
{?time_at_creation=?Unknown:{time_at_creation}}: {job_state=5?verarbeitet seit
{?time_at_processing=?Unknown:{time_at_processing}}:{job_state=6?angehalten: {job_state=7?gelöscht am
{?time_at_completed=?Unknown:{time_at_completed}}:{job_state=8?abgebrochen:beendet am
{?time_at_completed=?Unknown:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/de/jobs-header.tmpl0000644000175000017500000000143214502571342020030 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Aktive Aufträge in Reihenfolge der Abarbeitung▼:{which_jobs=all?Aufträge in sequenzieller Reihenfolge▼:Aufträge in der Reihenfolge der Fertigstellung oder Abbruch▲}}

cups-2.4.7/templates/de/job-restart.tmpl0000644000175000017500000000017614502571342020105 0ustar zdohnalzdohnal

Auftrag {job_id} neu starten

Auftrag {job_id} wurde neu gestartet. cups-2.4.7/templates/de/job-release.tmpl0000644000175000017500000000020614502571342020033 0ustar zdohnalzdohnal

Auftrag {job_id} freigeben

Auftrag {job_id} wurde zum Drucken freigegeben. cups-2.4.7/templates/de/job-moved.tmpl0000644000175000017500000000035214502571342017527 0ustar zdohnalzdohnal

{job_id?Auftrag {job_id} verschieben:Alle Aufträge verschieben}

{job_id?Auftrag {job_id}:Alle Aufträge} nach {job_printer_name} verschoben.

cups-2.4.7/templates/de/job-move.tmpl0000644000175000017500000000121014502571342017355 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Auftrag {job_id} verschieben:Alle Aufträge verschieben}

Neues Ziel:
cups-2.4.7/templates/de/job-hold.tmpl0000644000175000017500000000020414502571342017337 0ustar zdohnalzdohnal

Auftrag {job_id} anhalten

Auftrag {job_id} wurde vom Drucken abgehalten. cups-2.4.7/templates/de/job-cancel.tmpl0000644000175000017500000000016714502571342017646 0ustar zdohnalzdohnal

Auftrag {job_id} löschen

Auftrag {job_id} wurde gelöscht. cups-2.4.7/templates/de/help-trailer.tmpl0000644000175000017500000000000014502571342020223 0ustar zdohnalzdohnalcups-2.4.7/templates/de/help-printable.tmpl0000644000175000017500000000056214502571342020556 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/de/help-header.tmpl0000644000175000017500000000354214502571342020027 0ustar zdohnalzdohnal

{TOPIC?:}

Suche in {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:allen Dokumenten}}:

{QUERY?

Suchergebnisse in {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:allen Dokumenten}}\:

{QTEXT?:} :

Keine Übereinstimmung gefunden.

}
:} {HELPTITLE?
:

CUPS-Hilfesystem

Dies ist das CUPS-Hilfesystem. Geben Sie Ihren Suchbegriff bzw. Ihre Suchbegriffe oben ein oder klicken Sie auf einen der Dokumentationslinks um einen bestimmten Bereich der Dokumentation anzuzeigen.

Wenn Sie noch unerfahren im Umgang mit CUPS sind, lesen Sie die "CUPS-Übersicht". Erfahrene Benutzer sollten "Was ist neu in CUPS 2.0" lesen.

Die CUPS-Webseite bietet ebenfalls viele Informationen, einschließlich Diskussionsforen für Benutzer, Antworten auf häufig gestellte Fragen sowie ein Formular für Fehlerberichte und Wünsche.

} cups-2.4.7/templates/de/header.tmpl.in0000644000175000017500000000340714502571342017506 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/de/error.tmpl0000644000175000017500000000017514502571342017001 0ustar zdohnalzdohnal

{?title} {?printer_name} Error

{?message?{message}:Fehler:}

{error}
cups-2.4.7/templates/de/error-op.tmpl0000644000175000017500000000017714502571342017417 0ustar zdohnalzdohnal

{?title} {?printer_name} Fehler

Fehler:

Unbekannte Operation "{op}"!
cups-2.4.7/templates/de/edit-config.tmpl0000644000175000017500000000113714502571342020037 0ustar zdohnalzdohnal

Konfigurationsdatei bearbeiten

cups-2.4.7/templates/de/command.tmpl0000644000175000017500000000066314502571342017270 0ustar zdohnalzdohnal

{title} auf {printer_name}

{job_state>5?:Beschäftigungsanzeige }Drucker Befehlsauftrag {job_state=3?unerledigt:{job_state=4?gehalten: {job_state=5?verarbeite:{job_state=6?gestoppt: {job_state=7?gelöscht:{job_state=8?abgebrochen:beendet}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/de/classes.tmpl0000644000175000017500000000100614502571342017277 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
KlasseBeschreibungOrtMitgliederStatus
{printer_name}{printer_info}{printer_location}{?member_uris=?Keine:{member_uris}}{printer_state=3?Leerlauf:{printer_state=4?Beschäftigt:Angehalten}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/de/classes-header.tmpl0000644000175000017500000000014414502571342020527 0ustar zdohnalzdohnal

{total=0?Keine Klassen:Zeige {#printer_name} von {total} Klasse{total=1?:n}}.

cups-2.4.7/templates/de/class.tmpl0000644000175000017500000000444614502571342016762 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Leerlauf:{printer_state=4?Beschäftigt:Angehalten}}, {printer_is_accepting_jobs=0?Aufträge ablehnen:Aufträge annehmen}, {server_is_sharing_printers=0?keine:{printer_is_shared=0?keine:}} Netzwerkfreigabe{default_name={printer_name}?, Standardklasse:})

Beschreibung:{printer_info}
Ort:{printer_location}
Mitglieder:{?member_uris=?Keine:{member_uris}}
Standardeinstellungen:job-sheets={job_sheets_default} media={media_default?{media_default}:unbekannt} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/de/class-modified.tmpl0000644000175000017500000000022614502571342020530 0ustar zdohnalzdohnal

Klasse {printer_name} ändern

Die Klasse {printer_name} wurde erfolgreich geändert. cups-2.4.7/templates/de/class-jobs-header.tmpl0000644000175000017500000000004114502571342021126 0ustar zdohnalzdohnal

Aufträge

cups-2.4.7/templates/de/class-deleted.tmpl0000644000175000017500000000016114502571342020354 0ustar zdohnalzdohnal

Klasse {printer_name} löschen

Die Klasse {printer_name} wurde erfolgreich gelöscht. cups-2.4.7/templates/de/class-confirm.tmpl0000644000175000017500000000072314502571342020407 0ustar zdohnalzdohnal

Klasse {printer_name} löschen

Warnung: Sind Sie sicher, dass Sie die Klasse {printer_name} wirklich löschen möchten?

cups-2.4.7/templates/de/class-added.tmpl0000644000175000017500000000021614502571342020010 0ustar zdohnalzdohnal

Klasse hinzufügen

Die Klasse {printer_name} wurde erfolgreich hinzugefügt. cups-2.4.7/templates/de/choose-uri.tmpl0000644000175000017500000000206414502571342017724 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} ändern:Drucker hinzufügen (Schritt 2/5)}

{printer_name?:}
Verbindung:
Beispiele:
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

Beispiele und gängige URIs finden sich in der Hilfe unter "Netzwerkdrucker".

cups-2.4.7/templates/de/choose-serial.tmpl0000644000175000017500000000261014502571342020401 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} ändern:Drucker hinzufügen}

{printer_name?:}
Verbindung: {device_uri}
Baudrate:
Parität:
Datenbits:
Flusskontrolle:
cups-2.4.7/templates/de/choose-model.tmpl0000644000175000017500000000441014502571342020222 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} ändern:Drucker hinzufügen (Schritt 5/5)}

{printer_name?:} {op=modify-printer?:}
Name: {printer_name}
Beschreibung: {printer_info}
Ort: {printer_location}
Verbindung: {device_uri}
Freigabe: Drucker {?printer_is_shared=?nicht:{?printer_is_shared=0?nicht:}} im Netzwerk freigeben
Hersteller: {PPD_MAKE}
Modell:
Oder PPD-Datei bereitstellen:
cups-2.4.7/templates/de/choose-make.tmpl0000644000175000017500000000362514502571342020046 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} ändern:Drucker hinzufügen (Schritt 4/5)}

{printer_name?:} {op=modify-printer?:}
Name: {printer_name}
Beschreibung: {printer_info}
Ort: {printer_location}
Verbindung: {device_uri}
Freigabe: Drucker {?printer_is_shared=?nicht:{?printer_is_shared=0?nicht:}} im Netzwerk freigeben
Hersteller:
 
Oder PPD-Datei bereitstellen:
cups-2.4.7/templates/de/choose-device.tmpl0000644000175000017500000000422514502571342020365 0ustar zdohnalzdohnal

{op=modify-printer?{printer_name} ändern:Drucker hinzufügen (Schritt 1/5)}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Aktuelle Verbindung\:
Lokale Drucker\: {[device_uri]{device_class!network?
:}}
Gefundene Netzwerkdrucker\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Andere Netzwerkdrucker\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Beschäftigungsanzeige Suche nach Druckern…

} cups-2.4.7/templates/de/admin.tmpl0000644000175000017500000001277214502571342016746 0ustar zdohnalzdohnal

Drucker

Klassen

Aufträge

Server

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Server-Einstellungen\:

Erweitert

        Maximale Anzahl an Clients\:
        
        

{have_gssapi?
:}

        Maximale Auftragsanzahl (0 für unbegrenzt)\:
        Metadaten aufbewahren\:
        Dokumente aufbewahren\:

        Maximale Protokoll-Dateigröße\:

:

Server-Einstellungen:

Erweitert

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/de/add-printer.tmpl0000644000175000017500000000330614502571342020060 0ustar zdohnalzdohnal

Drucker hinzufügen (Schritt 3/5)

{?current_make!?:} {?current_make_and_model!?:}
Name:
(Darf alle druckbaren Zeichen außer "/", "#", und Leerzeichen enthalten)
Beschreibung:
(Menschenlesbare Beschreibung wie etwa "HP LaserJet mit Duplexer")
Ort:
(Menschenlesbarer Ort wie etwa "Labor 1")
Verbindung: {device_uri}
Freigabe:
cups-2.4.7/templates/de/add-class.tmpl0000644000175000017500000000207614502571342017505 0ustar zdohnalzdohnal

Klasse hinzufügen

Name:
(Darf alle druckbaren Zeichen außer "/", "#", und Leerzeichen enthalten)
Beschreibung:
(Menschenlesbare Beschreibung wie etwa "HP LaserJet mit Duplexer")
Ort:
(Menschenlesbarer Ort wie etwa "Labor 1")
Mitglieder:
cups-2.4.7/templates/da/0000755000175000017500000000000014502571342014743 5ustar zdohnalzdohnalcups-2.4.7/templates/da/users.tmpl0000644000175000017500000000207214502571342017003 0ustar zdohnalzdohnal
{IS_CLASS?:}

Tilladte brugere for {printer_name}

Brugere:
cups-2.4.7/templates/da/trailer.tmpl0000644000175000017500000000022314502571342017300 0ustar zdohnalzdohnal
cups-2.4.7/templates/da/test-page.tmpl0000644000175000017500000000024314502571342017531 0ustar zdohnalzdohnal

Udskriv testside på {printer_name}

Testside sendt - job-ID'et er {printer_name}-{job_id}.

cups-2.4.7/templates/da/set-printer-options-trailer.tmpl0000644000175000017500000000070114502571342023244 0ustar zdohnalzdohnal cups-2.4.7/templates/da/set-printer-options-header.tmpl0000644000175000017500000000150614502571342023036 0ustar zdohnalzdohnal

Indstil standardtilvalg for {printer_name}

{HAVE_AUTOCONFIGURE?:}

{[group_id] {group}     }

cups-2.4.7/templates/da/search.tmpl0000644000175000017500000000101314502571342017101 0ustar zdohnalzdohnal {WHICH_JOBS?:} {ORDER?:}

Søg i {SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?klasser:{SECTION=jobs?jobs:printere}}}:

cups-2.4.7/templates/da/restart.tmpl0000644000175000017500000000506214502571342017330 0ustar zdohnalzdohnal

Skift indstillinger

Optaget-indikator Vent venligst, mens serveren genstartes...

cups-2.4.7/templates/da/printers.tmpl0000644000175000017500000000101014502571342017477 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
KønavnBeskrivelsePlaceringProducent og modelStatus
{printer_name}{printer_info}{printer_location}{printer_make_and_model}{printer_state=3?Inaktiv:{printer_state=4?Behandler:Sat på pause}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/da/printers-header.tmpl0000644000175000017500000000014514502571342020735 0ustar zdohnalzdohnal

{total=0?Ingen printere:Viser {#printer_name} af {total} printer{total=1?:e}}.

cups-2.4.7/templates/da/printer.tmpl0000644000175000017500000000503514502571342017327 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Inaktiv:{printer_state=4?Behandler:Sat på pause}}, {printer_is_accepting_jobs=0?Afviser jobs:Accepterer jobs}, {server_is_sharing_printers=0?Ikke:{printer_is_shared=0?Ikke:}} Delt{default_name={printer_name}?, Server Default:})

Beskrivelse:{printer_info}
Placering:{printer_location}
Driver:{printer_make_and_model} ({color_supported=1?farve:gråtone}{sides_supported=one-sided?:, tosidet udskrivning})
Forbindelse:{device_uri}
Standarder:job-sheets={job_sheets_default} media={media_default?{media_default}:ukendt} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/da/printer-stop.tmpl0000644000175000017500000000032414502571342020306 0ustar zdohnalzdohnal

Sæt {is_class?klassen:printeren} {printer_name} på pause

{is_class?Klassen:Printeren} {printer_name} blev sat på pause.

cups-2.4.7/templates/da/printer-start.tmpl0000644000175000017500000000031314502571342020454 0ustar zdohnalzdohnal

Genoptag {is_class?klassen:printeren} {printer_name}

{is_class?Klassen:Printeren} {printer_name} blev genoptaget.

cups-2.4.7/templates/da/printer-reject.tmpl0000644000175000017500000000033714502571342020601 0ustar zdohnalzdohnal

Afvis jobs på {is_class?klassen:printeren} {printer_name}

{is_class?Klassen:Printeren} {printer_name} accepterer ikke længere jobs.

cups-2.4.7/templates/da/printer-modified.tmpl0000644000175000017500000000021214502571342021075 0ustar zdohnalzdohnal

Rediger printeren {printer_name}

Printeren {printer_name} blev ændret. cups-2.4.7/templates/da/printer-jobs-header.tmpl0000644000175000017500000000003414502571342021502 0ustar zdohnalzdohnal

Jobs

cups-2.4.7/templates/da/printer-deleted.tmpl0000644000175000017500000000014014502571342020723 0ustar zdohnalzdohnal

Slet printeren {printer_name}

Printeren {printer_name} blev slettet. cups-2.4.7/templates/da/printer-default.tmpl0000644000175000017500000000061414502571342020747 0ustar zdohnalzdohnal

Indstil {is_class?klassen:printeren} {printer_name} som standard

{is_class?Klassen:Printeren} {printer_name} blev gjort til standardprinteren på serveren.

Bemærk: Brugerstandarder som blev indstillet via lpoptions-kommandoen tilsidesætter standardindstillingen.
cups-2.4.7/templates/da/printer-confirm.tmpl0000644000175000017500000000067714502571342020771 0ustar zdohnalzdohnal

Slet printeren {printer_name}

Advarsel: Er du sikker på, at du vil slette printeren {printer_name}?

cups-2.4.7/templates/da/printer-configured.tmpl0000644000175000017500000000034614502571342021452 0ustar zdohnalzdohnal

Indstil standardtilvalg for {printer_name}

{OP=set-class-options?Klasse :Printer }{printer_name} standardtilvalg blev indstillet. cups-2.4.7/templates/da/printer-cancel-jobs.tmpl0000644000175000017500000000034214502571342021501 0ustar zdohnalzdohnal

Annuller jobs på {is_class?klassen:printeren} {printer_name}

Alle jobs på {is_class?klassen:printeren} {printer_name} blev annulleret.

cups-2.4.7/templates/da/printer-added.tmpl0000644000175000017500000000017314502571342020364 0ustar zdohnalzdohnal

Tilføj printer

Printeren {printer_name} blev tilføjet. cups-2.4.7/templates/da/printer-accept.tmpl0000644000175000017500000000032714502571342020563 0ustar zdohnalzdohnal

Accepter jobs på {is_class?klassen:printeren} {printer_name}

{is_class?Klassen:Printeren} {printer_name} accepterer nu jobs.

cups-2.4.7/templates/da/pager.tmpl0000644000175000017500000000235114502571342016740 0ustar zdohnalzdohnal
{PREV?{PREV>0?
:}
: }
{NEXT?
: } {LAST?
:}
cups-2.4.7/templates/da/option-trailer.tmpl0000644000175000017500000000013514502571342020610 0ustar zdohnalzdohnal

cups-2.4.7/templates/da/option-pickone.tmpl0000644000175000017500000000166214502571342020604 0ustar zdohnalzdohnal {keytext}: {iscustom=1?{[params] }
{paramtext}: {params=Units?:}
:} cups-2.4.7/templates/da/option-pickmany.tmpl0000644000175000017500000000037714502571342020771 0ustar zdohnalzdohnal {keytext}: cups-2.4.7/templates/da/option-header.tmpl0000644000175000017500000000013114502571342020372 0ustar zdohnalzdohnal

{group}

cups-2.4.7/templates/da/option-conflict.tmpl0000644000175000017500000000032514502571342020750 0ustar zdohnalzdohnal

Fejl: Følgende tilvalg er i konflikt:

Ændr venligst en eller flere af tilvalgene for at løse konflikterne.

cups-2.4.7/templates/da/option-boolean.tmpl0000644000175000017500000000043214502571342020565 0ustar zdohnalzdohnal cups-2.4.7/templates/da/norestart.tmpl0000644000175000017500000000022514502571342017661 0ustar zdohnalzdohnal

Skift indstillinger

Serveren blev ikke genstartet fordi der ikke blev foretaget nogen ændringer i konfigurationen...

cups-2.4.7/templates/da/modify-printer.tmpl0000644000175000017500000000254214502571342020614 0ustar zdohnalzdohnal

Rediger {printer_name}

{keytext}: {[choices]}
Beskrivelse:
(beskrivelse der kan læses af mennesker, såsom "HP LaserJet med Duplexer")
Placering:
(placering der kan læses af mennesker, såsom "Rum 1")
Forbindelse: {device_uri}
Deling:
cups-2.4.7/templates/da/modify-class.tmpl0000644000175000017500000000153414502571342020236 0ustar zdohnalzdohnal

Rediger klassen {printer_name}

Beskrivelse:
Placering:
Medlemmer:
cups-2.4.7/templates/da/list-available-printers.tmpl0000644000175000017500000000120214502571342022371 0ustar zdohnalzdohnal

Tilgængelige printere

{#device_uri=0?

Ingen printere fundet.

:
    {[device_uri]
  • {device_make_and_model} ({device_info})
  • }
} cups-2.4.7/templates/da/jobs.tmpl0000644000175000017500000000531214502571342016577 0ustar zdohnalzdohnal{#job_id=0?: {[job_id] }
IDNavnBrugerStørrelseSiderTilstandStyring
{job_printer_name}-{job_id}{?phone? ({phone}):}  {?job_name=?Ukendt:{job_name}}  {?job_originating_user_name=?Tilbageholdt:{job_originating_user_name}}  {job_k_octets}k  {job_impressions_completed=0?Ukendt:{?job_impressions_completed}}  {job_state=3?afventer siden
{?time_at_creation=?Ukendt:{time_at_creation}}:{job_state=4?tilbageholdt siden
{?time_at_creation=?Ukendt:{time_at_creation}}: {job_state=5?behandler siden
{?time_at_processing=?Ukendt:{time_at_processing}}:{job_state=6?stoppet: {job_state=7?annulleret ved
{?time_at_completed=?Ukendt:{time_at_completed}}:{job_state=8?afbrudt:fuldtført ved
{?time_at_completed=?Ukendt:{time_at_completed}}}}}}}} {job_printer_state_message?
"{job_printer_state_message}":}
{job_preserved>0?{job_state>5?
:}:} {job_state=4?
:} {job_state=3?
:} {job_state<7?
:}  
} cups-2.4.7/templates/da/jobs-header.tmpl0000644000175000017500000000137314502571342020030 0ustar zdohnalzdohnal{?which_jobs=?:
} {?which_jobs=completed?:
} {?which_jobs=all?:
}

{?which_jobs=?Jobs oplistet i udskrivningsrækkefølge - tilbageholdte jobs vises først.:{which_jobs=all?Jobs oplistes i stigende rækkefølge.:Jobs oplistes i faldende rækkefølge.}}

cups-2.4.7/templates/da/job-restart.tmpl0000644000175000017500000000017114502571342020074 0ustar zdohnalzdohnal

Udskriv jobbet {job_id} igen

Jobbet {job_id} blev genstartet. cups-2.4.7/templates/da/job-release.tmpl0000644000175000017500000000020114502571342020022 0ustar zdohnalzdohnal

Frigiv jobbet {job_id}

Jobbet {job_id} blev frigivet til udskrivning. cups-2.4.7/templates/da/job-moved.tmpl0000644000175000017500000000035214502571342017523 0ustar zdohnalzdohnal

{job_id?Flyt jobbet {job_id}:Flyt alle jobs}

{job_id?Jobbet {job_id}:Alle jobs} flyttet til {job_printer_name}.

cups-2.4.7/templates/da/job-move.tmpl0000644000175000017500000000114114502571342017354 0ustar zdohnalzdohnal
{job_id?:}

{job_id?Flyt jobbet {job_id}:Flyt alle jobs}

Ny destination:
cups-2.4.7/templates/da/job-hold.tmpl0000644000175000017500000000021214502571342017332 0ustar zdohnalzdohnal

Tilbagehold jobbet {job_id}

Jobbet {job_id} blev tilbageholdt fra udskrivning. cups-2.4.7/templates/da/job-cancel.tmpl0000644000175000017500000000016514502571342017640 0ustar zdohnalzdohnal

Annuller jobbet {job_id}

Jobbet {job_id} blev annulleret. cups-2.4.7/templates/da/help-trailer.tmpl0000644000175000017500000000000014502571342020217 0ustar zdohnalzdohnalcups-2.4.7/templates/da/help-printable.tmpl0000644000175000017500000000056214502571342020552 0ustar zdohnalzdohnal {HELPTITLE} cups-2.4.7/templates/da/help-header.tmpl0000644000175000017500000000331314502571342020017 0ustar zdohnalzdohnal

{TOPIC?:}

Søg i {HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:Alle dokumenter}}:

{QUERY?

Søg efter resultater i {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:Alle dokumenter}}\:

{QTEXT?:} :

Ingen match fundet.

}
:} {HELPTITLE?
:

Onlinehjælp

Dette er grænsefladen til CUPS-onlinehjælp. Indtast søgeord ovenfor eller klik på dokumentationenslinkene for at vise information om onlinehjælp.

Hvis CUPS er nyt for dig, så læs "Oversigt over CUPS"-siden.

CUPS-hjemmesiden giver også mange ressourcer, inklusiv fora til brugerdiskussion, svar på oftest stillede spørgsmål, og en formular til indsendelse af fejlrapporter og anmodninger om funktionaliteter.

} cups-2.4.7/templates/da/header.tmpl.in0000644000175000017500000000335214502571342017501 0ustar zdohnalzdohnal {refresh_page?:} {title} - CUPS @CUPS_VERSION@

{title}

cups-2.4.7/templates/da/error.tmpl0000644000175000017500000000017614502571342016776 0ustar zdohnalzdohnal

Fejl ved {?title} {?printer_name}

{?message?{message}:Fejl}:

{error}
cups-2.4.7/templates/da/error-op.tmpl0000644000175000017500000000017114502571342017405 0ustar zdohnalzdohnal

Fejl ved {?title} {?printer_name}

Fejl:

Ukendt handling "{op}"!
cups-2.4.7/templates/da/edit-config.tmpl0000644000175000017500000000111414502571342020026 0ustar zdohnalzdohnal

Rediger konfigurationsfil

cups-2.4.7/templates/da/command.tmpl0000644000175000017500000000065114502571342017261 0ustar zdohnalzdohnal

{title} på {printer_name}

{job_state>5?:Optaget-indikator }Printerkommandojob {job_state=3?afventer:{job_state=4?tilbageholdt: {job_state=5?behandler:{job_state=6?stoppet: {job_state=7?annulleret:{job_state=8?afbrudt:fuldført}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/da/classes.tmpl0000644000175000017500000000101114502571342017267 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
KønavnBeskrivelsePlaceringMedlemmerStatus
{printer_name}{printer_info}{printer_location}{?member_uris=?Ingen:{member_uris}}{printer_state=3?Inaktiv:{printer_state=4?Behandler:Sat på pause}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/da/classes-header.tmpl0000644000175000017500000000014314502571342020522 0ustar zdohnalzdohnal

{total=0?Ingen klasser:Viser {#printer_name} af {total} klasse{total=1?:r}}.

cups-2.4.7/templates/da/class.tmpl0000644000175000017500000000434714502571342016756 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Inaktiv:{printer_state=4?Behandler:Sat på pause}}, {printer_is_accepting_jobs=0?Afviser jobs:Accepterer jobs}, {server_is_sharing_printers=0?Ikke:{printer_is_shared=0?Ikke:}} Delt{default_name={printer_name}?, Server Default:})

Beskrivelse:{printer_info}
Placering:{printer_location}
Medlemmer:{?member_uris=?None:{member_uris}}
Standarder:job-sheets={job_sheets_default} media={media_default?{media_default}:ukendt} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/da/class-modified.tmpl0000644000175000017500000000020514502571342020521 0ustar zdohnalzdohnal

Rediger klassen {printer_name}

Klassen {printer_name} blev ændret. cups-2.4.7/templates/da/class-jobs-header.tmpl0000644000175000017500000000003414502571342021124 0ustar zdohnalzdohnal

Jobs

cups-2.4.7/templates/da/class-deleted.tmpl0000644000175000017500000000013414502571342020350 0ustar zdohnalzdohnal

Slet klassen {printer_name}

Klassen {printer_name} blev slettet. cups-2.4.7/templates/da/class-confirm.tmpl0000644000175000017500000000067014502571342020404 0ustar zdohnalzdohnal

Slet klassen {printer_name}

Advarsel: Er du sikker på, at du vil slette klassen {printer_name}?

cups-2.4.7/templates/da/class-added.tmpl0000644000175000017500000000016714502571342020011 0ustar zdohnalzdohnal

Tilføj klasse

Klassen {printer_name} blev tilføjet. cups-2.4.7/templates/da/choose-uri.tmpl0000644000175000017500000000205214502571342017715 0ustar zdohnalzdohnal

{op=modify-printer?Rediger {printer_name}:Tilføj printer}

{printer_name?:}
Forbindelse:
Eksempler:
    http://værtsnavn:631/ipp/
    http://værtsnavn:631/ipp/port1

    ipp://værtsnavn/ipp/
    ipp://værtsnavn/ipp/port1

    lpd://værtsnavn/kø

    socket://værtsnavn
    socket://værtsnavn:9100

Se "Netværksprintere " for den korrekte URI til brug med din printer.

cups-2.4.7/templates/da/choose-serial.tmpl0000644000175000017500000000260014502571342020374 0ustar zdohnalzdohnal

{op=modify-printer?Rediger {printer_name}:Tilføj printer}

{printer_name?:}
Forbindelse: {device_uri}
Baudhastighed:
Parity:
Databit:
Flowstyring:
cups-2.4.7/templates/da/choose-model.tmpl0000644000175000017500000000432414502571342020222 0ustar zdohnalzdohnal

{op=modify-printer?Rediger {printer_name}:Tilføj printer}

{printer_name?:} {op=modify-printer?:}
Navn: {printer_name}
Beskrivelse: {printer_info}
Placering: {printer_location}
Forbindelse: {device_uri}
Deling: Del {?printer_is_shared=?ikke:{?printer_is_shared=0?ikke:}} printeren
Producent: {PPD_MAKE}
Model:
Eller angiv en PPD-fil:
cups-2.4.7/templates/da/choose-make.tmpl0000644000175000017500000000355414502571342020043 0ustar zdohnalzdohnal

{op=modify-printer?Rediger {printer_name}:Tilføj printer}

{printer_name?:} {op=modify-printer?:}
Navn: {printer_name}
Beskrivelse: {printer_info}
Placering: {printer_location}
Forbindelse: {device_uri}
Deling: Del {?printer_is_shared=?ikke:{?printer_is_shared=0?ikke:}} printeren
Producent:
 
Eller angiv en PPD-fil:
cups-2.4.7/templates/da/choose-device.tmpl0000644000175000017500000000420414502571342020356 0ustar zdohnalzdohnal

{op=modify-printer?Rediger {printer_name}:Tilføj printer}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Nuværende forbindelse\:
Lokale printere\: {[device_uri]{device_class!network?
:}}
Opdagede netværksprintere\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Andre netværksprintere\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Optaget-indikator Leder efter printere...

} cups-2.4.7/templates/da/admin.tmpl0000644000175000017500000001260514502571342016735 0ustar zdohnalzdohnal

Printere

Klasser

Jobs

Server

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Serverindstillinger\:

Avanceret

        Maks. klienter\:
        
        

{have_gssapi?
:}

        Maksimum jobs (0 for ubegrænset)\:
        Bevar metadata\:
        Bevar dokumenter\:

        Maks. størrelse på logfil\:

:

Serverindstillinger:

Avanceret

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/da/add-printer.tmpl0000644000175000017500000000330414502571342020052 0ustar zdohnalzdohnal

Tilføj printer

{?current_make!?:} {?current_make_and_model!?:}
Navn:
(må indeholde alle tegn der kan udskrives, undtagen "/", "#" og mellemrum)
Beskrivelse:
(beskrivelse der kan læses af mennesker, såsom "HP LaserJet med Duplexer")
Placering:
(placering der kan læses af mennesker, såsom "Rum 1")
Forbindelse: {device_uri}
Deling:
cups-2.4.7/templates/da/add-class.tmpl0000644000175000017500000000212414502571342017473 0ustar zdohnalzdohnal

Tilføj klasse

Navn:
(må indeholde alle tegn der kan udskrives, undtagen "/", "#" og mellemrum)
Beskrivelse:
(beskrivelse der kan læses af mennesker, såsom "HP LaserJet med Duplexer")
Placering:
(placering der kan læses af mennesker, såsom "Rum 1")
Medlemmer:
cups-2.4.7/templates/command.tmpl0000644000175000017500000000063414502571342016676 0ustar zdohnalzdohnal

{title} On {printer_name}

{job_state>5?:Busy Indicator }Printer command job {job_state=3?pending:{job_state=4?held: {job_state=5?processing:{job_state=6?stopped: {job_state=7?canceled:{job_state=8?aborted:completed}}}}}}{job_state=9?:{job_printer_state_message?, "{job_printer_state_message}":}}

cups-2.4.7/templates/classes.tmpl0000644000175000017500000000077614502571342016724 0ustar zdohnalzdohnal{#printer_name=0?: {[printer_name] }
Queue NameDescriptionLocationMembersStatus
{printer_name}{printer_info}{printer_location}{?member_uris=?None:{member_uris}}{printer_state=3?Idle:{printer_state=4?Processing:Paused}}{printer_state_message? - "{printer_state_message}":}
} cups-2.4.7/templates/classes-header.tmpl0000644000175000017500000000014214502571342020135 0ustar zdohnalzdohnal

{total=0?No classes:Showing {#printer_name} of {total} class{total=1?:es}}.

cups-2.4.7/templates/class.tmpl0000644000175000017500000000426114502571342016365 0ustar zdohnalzdohnal

{printer_name} ({printer_state=3?Idle:{printer_state=4?Processing:Paused}}, {printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs}, {server_is_sharing_printers=0?Not:{printer_is_shared=0?Not:}} Shared{default_name={printer_name}?, Server Default:})

Description:{printer_info}
Location:{printer_location}
Members:{?member_uris=?None:{member_uris}}
Defaults:job-sheets={job_sheets_default} media={media_default?{media_default}:unknown} {sides_default?sides={sides_default}:}
cups-2.4.7/templates/class-modified.tmpl0000644000175000017500000000022214502571342020134 0ustar zdohnalzdohnal

Modify Class {printer_name}

Class {printer_name} has been modified successfully. cups-2.4.7/templates/class-jobs-header.tmpl0000644000175000017500000000003414502571342020540 0ustar zdohnalzdohnal

Jobs

cups-2.4.7/templates/class-deleted.tmpl0000644000175000017500000000015314502571342017765 0ustar zdohnalzdohnal

Delete Class {printer_name}

Class {printer_name} has been deleted successfully. cups-2.4.7/templates/class-confirm.tmpl0000644000175000017500000000066314502571342020022 0ustar zdohnalzdohnal

Delete Class {printer_name}

Warning: Are you sure you want to delete class {printer_name}?

cups-2.4.7/templates/class-added.tmpl0000644000175000017500000000017514502571342017424 0ustar zdohnalzdohnal

Add Class

Class {printer_name} has been added successfully. cups-2.4.7/templates/choose-uri.tmpl0000644000175000017500000000202514502571342017331 0ustar zdohnalzdohnal

{op=modify-printer?Modify {printer_name}:Add Printer}

{printer_name?:}
Connection:
Examples:
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

See "Network Printers" for the correct URI to use with your printer.

cups-2.4.7/templates/choose-serial.tmpl0000644000175000017500000000256514502571342020022 0ustar zdohnalzdohnal

{op=modify-printer?Modify {printer_name}:Add Printer}

{printer_name?:}
Connection: {device_uri}
Baud Rate:
Parity:
Data Bits:
Flow Control:
cups-2.4.7/templates/choose-model.tmpl0000644000175000017500000000432114502571342017633 0ustar zdohnalzdohnal

{op=modify-printer?Modify {printer_name}:Add Printer}

{printer_name?:} {op=modify-printer?:}
Name: {printer_name}
Description: {printer_info}
Location: {printer_location}
Connection: {device_uri}
Sharing: {?printer_is_shared=?Do Not:{?printer_is_shared=0?Do Not:}} Share This Printer
Make: {PPD_MAKE}
Model:
Or Provide a PPD File:
cups-2.4.7/templates/choose-make.tmpl0000644000175000017500000000354414502571342017456 0ustar zdohnalzdohnal

{op=modify-printer?Modify {printer_name}:Add Printer}

{printer_name?:} {op=modify-printer?:}
Name: {printer_name}
Description: {printer_info}
Location: {printer_location}
Connection: {device_uri}
Sharing: {?printer_is_shared=?Do Not:{?printer_is_shared=0?Do Not:}} Share This Printer
Make:
 
Or Provide a PPD File:
cups-2.4.7/templates/choose-device.tmpl0000644000175000017500000000417214502571342017776 0ustar zdohnalzdohnal

{op=modify-printer?Modify {printer_name}:Add Printer}

{CUPS_GET_DEVICES_DONE?
{printer_name?:} {op=add-printer?:}
Current Connection\:
Local Printers\: {[device_uri]{device_class!network?
:}}
Discovered Network Printers\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?
:}:}}
Other Network Printers\: {[device_uri]{device_class=network?{device_uri~[a-z]+://?:
}:}}
:

Busy Indicator Looking for printers...

} cups-2.4.7/templates/admin.tmpl0000644000175000017500000001247514502571342016356 0ustar zdohnalzdohnal

Printers

Classes

Jobs

Server

{SETTINGS_ERROR?

{SETTINGS_MESSAGE}

{SETTINGS_ERROR}
:
{ADVANCEDSETTINGS?

Server Settings\:

Advanced

        Max clients\:
        
        

{have_gssapi?
:}

        Maximum jobs (0 for no limit)\:
        Retain Metadata\:
        Retain Documents\:

        Max log file size\:

:

Server Settings:

Advanced

        

{have_gssapi?
:}

}

}
cups-2.4.7/templates/add-printer.tmpl0000644000175000017500000000324014502571342017465 0ustar zdohnalzdohnal

Add Printer

{?current_make!?:} {?current_make_and_model!?:}
Name:
(May contain any printable characters except "/", "#", and space)
Description:
(Human-readable description such as "HP LaserJet with Duplexer")
Location:
(Human-readable location such as "Lab 1")
Connection: {device_uri}
Sharing:
cups-2.4.7/templates/add-class.tmpl0000644000175000017500000000204314502571342017107 0ustar zdohnalzdohnal

Add Class

Name:
(May contain any printable characters except "/", "#", and space)
Description:
(Human-readable description such as "HP LaserJet with Duplexer")
Location:
(Human-readable location such as "Lab 1")
Members:
cups-2.4.7/templates/Makefile0000644000175000017500000000564614502571342016032 0ustar zdohnalzdohnal# # Template makefile for CUPS. # # Copyright 2007-2017 by Apple Inc. # Copyright 1993-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs # # Template files... # FILES = \ add-class.tmpl \ add-printer.tmpl \ admin.tmpl \ choose-device.tmpl \ choose-make.tmpl \ choose-model.tmpl \ choose-serial.tmpl \ choose-uri.tmpl \ class.tmpl \ class-added.tmpl \ class-confirm.tmpl \ class-deleted.tmpl \ class-jobs-header.tmpl \ class-modified.tmpl \ classes.tmpl \ classes-header.tmpl \ command.tmpl \ edit-config.tmpl \ error.tmpl \ error-op.tmpl \ header.tmpl \ help-header.tmpl \ help-trailer.tmpl \ help-printable.tmpl \ job-cancel.tmpl \ job-hold.tmpl \ job-move.tmpl \ job-moved.tmpl \ job-release.tmpl \ job-restart.tmpl \ jobs.tmpl \ jobs-header.tmpl \ list-available-printers.tmpl \ modify-class.tmpl \ modify-printer.tmpl \ norestart.tmpl \ option-boolean.tmpl \ option-conflict.tmpl \ option-header.tmpl \ option-pickmany.tmpl \ option-pickone.tmpl \ option-trailer.tmpl \ pager.tmpl \ printer.tmpl \ printer-accept.tmpl \ printer-added.tmpl \ printer-cancel-jobs.tmpl \ printer-configured.tmpl \ printer-confirm.tmpl \ printer-default.tmpl \ printer-deleted.tmpl \ printer-jobs-header.tmpl \ printer-modified.tmpl \ printer-reject.tmpl \ printer-start.tmpl \ printer-stop.tmpl \ printers.tmpl \ printers-header.tmpl \ restart.tmpl \ search.tmpl \ set-printer-options-header.tmpl \ set-printer-options-trailer.tmpl \ test-page.tmpl \ trailer.tmpl \ users.tmpl # # Make everything... # all: # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: # # Dummy depend... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_LANGUAGES) $(INSTALL_DIR) -m 755 $(DATADIR)/templates for file in $(FILES); do \ $(INSTALL_DATA) $$file $(DATADIR)/templates; \ done install-languages: for lang in $(LANGUAGES); do \ if test -d $$lang; then \ $(INSTALL_DIR) -m 755 $(DATADIR)/templates/$$lang; \ for file in $(FILES); do \ $(INSTALL_DATA) $$lang/$$file $(DATADIR)/templates/$$lang >/dev/null 2>&1 || true; \ done \ fi \ done install-langbundle: # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: $(UNINSTALL_LANGUAGES) for file in $(FILES); do \ $(RM) $(DATADIR)/templates/$$file; \ done -$(RMDIR) $(DATADIR)/templates uninstall-languages: for lang in $(LANGUAGES); do \ for file in $(FILES); do \ $(RM) $(DATADIR)/templates/$$lang/$$file; \ done \ $(RMDIR) $(DATADIR)/templates/$$lang; \ done uninstall-langbundle: cups-2.4.7/systemv/0000755000175000017500000000000014502571342014073 5ustar zdohnalzdohnalcups-2.4.7/systemv/lpstat.c0000644000175000017500000015527514502571342015565 0ustar zdohnalzdohnal/* * "lpstat" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * Local functions... */ static void check_dest(const char *command, const char *name, int *num_dests, cups_dest_t **dests); static int match_list(const char *list, const char *name); static int show_accepting(const char *printers, int num_dests, cups_dest_t *dests); static int show_classes(const char *dests); static void show_default(cups_dest_t *dest); static int show_devices(const char *printers, int num_dests, cups_dest_t *dests); static int show_jobs(const char *dests, const char *users, int long_status, int ranking, const char *which); static int show_printers(const char *printers, int num_dests, cups_dest_t *dests, int long_status); static int show_scheduler(void); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and show status information. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i, /* Looping var */ status; /* Exit status */ char *opt; /* Option pointer */ int num_dests; /* Number of user destinations */ cups_dest_t *dests; /* User destinations */ int long_status; /* Long status report? */ int ranking; /* Show job ranking? */ const char *which; /* Which jobs to show? */ char op; /* Last operation on command-line */ _cupsSetLocale(argv); /* * Parse command-line options... */ num_dests = 0; dests = NULL; long_status = 0; ranking = 0; status = 0; which = "not-completed"; op = 0; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'D' : /* Show description */ long_status = 1; break; case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'H' : /* Show server and port */ if (cupsServer()[0] == '/') _cupsLangPuts(stdout, cupsServer()); else _cupsLangPrintf(stdout, "%s:%d", cupsServer(), ippPort()); op = 'H'; break; case 'P' : /* Show paper types */ op = 'P'; break; case 'R' : /* Show ranking */ ranking = 1; break; case 'S' : /* Show charsets */ op = 'S'; if (!argv[i][2]) i ++; break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'W' : /* Show which jobs? */ if (opt[1] != '\0') { which = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" option."), argv[0]); usage(); } which = argv[i]; } if (strcmp(which, "completed") && strcmp(which, "not-completed") && strcmp(which, "all")) { _cupsLangPrintf(stderr, _("%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" option."), argv[0]); usage(); } break; case 'a' : /* Show acceptance status */ op = 'a'; if (opt[1] != '\0') { check_dest(argv[0], opt + 1, &num_dests, &dests); status |= show_accepting(opt + 1, num_dests, dests); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; check_dest(argv[0], argv[i], &num_dests, &dests); status |= show_accepting(argv[i], num_dests, dests); } else { if (num_dests <= 1) { cupsFreeDests(num_dests, dests); num_dests = cupsGetDests(&dests); if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } status |= show_accepting(NULL, num_dests, dests); } break; case 'c' : /* Show classes and members */ op = 'c'; if (opt[1] != '\0') { check_dest(argv[0], opt + 1, &num_dests, &dests); status |= show_classes(opt + 1); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; check_dest(argv[0], argv[i], &num_dests, &dests); status |= show_classes(argv[i]); } else status |= show_classes(NULL); break; case 'd' : /* Show default destination */ op = 'd'; if (num_dests != 1 || !dests[0].is_default) { cupsFreeDests(num_dests, dests); dests = cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); num_dests = dests ? 1 : 0; if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } show_default(dests); break; case 'e' : /* List destinations */ { cups_dest_t *temp = NULL, *dest; int j, num_temp = cupsGetDests(&temp); op = 'e'; for (j = num_temp, dest = temp; j > 0; j --, dest ++) { if (dest->instance) printf("%s/%s", dest->name, dest->instance); else fputs(dest->name, stdout); if (long_status) { const char *printer_uri_supported = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); const char *printer_is_temporary = cupsGetOption("printer-is-temporary", dest->num_options, dest->options); const char *type = "network"; if (printer_is_temporary && !strcmp(printer_is_temporary, "true")) type = "temporary"; else if (printer_uri_supported) type = "permanent"; printf(" %s %s %s\n", type, printer_uri_supported ? printer_uri_supported : "none", cupsGetOption("device-uri", dest->num_options, dest->options)); } else putchar('\n'); } cupsFreeDests(num_temp, temp); } break; case 'f' : /* Show forms */ op = 'f'; if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) return (1); } break; case 'h' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), argv[0]); return (1); } cupsSetServer(argv[i]); } break; case 'l' : /* Long status or long job status */ long_status = 2; break; case 'o' : /* Show jobs by destination */ op = 'o'; if (opt[1]) { check_dest(argv[0], opt + 1, &num_dests, &dests); status |= show_jobs(opt + 1, NULL, long_status, ranking, which); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; check_dest(argv[0], argv[i], &num_dests, &dests); status |= show_jobs(argv[i], NULL, long_status, ranking, which); } else status |= show_jobs(NULL, NULL, long_status, ranking, which); break; case 'p' : /* Show printers */ op = 'p'; if (opt[1] != '\0') { check_dest(argv[0], opt + 1, &num_dests, &dests); status |= show_printers(opt + 1, num_dests, dests, long_status); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; check_dest(argv[0], argv[i], &num_dests, &dests); status |= show_printers(argv[i], num_dests, dests, long_status); } else { if (num_dests <= 1) { cupsFreeDests(num_dests, dests); num_dests = cupsGetDests(&dests); if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } status |= show_printers(NULL, num_dests, dests, long_status); } break; case 'r' : /* Show scheduler status */ op = 'r'; if (!show_scheduler()) return (0); break; case 's' : /* Show summary */ op = 's'; if (num_dests <= 1) { cupsFreeDests(num_dests, dests); num_dests = cupsGetDests(&dests); if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } show_default(cupsGetDest(NULL, NULL, num_dests, dests)); status |= show_classes(NULL); status |= show_devices(NULL, num_dests, dests); break; case 't' : /* Show all info */ op = 't'; if (num_dests <= 1) { cupsFreeDests(num_dests, dests); num_dests = cupsGetDests(&dests); if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } if (!show_scheduler()) return (0); show_default(cupsGetDest(NULL, NULL, num_dests, dests)); status |= show_classes(NULL); status |= show_devices(NULL, num_dests, dests); status |= show_accepting(NULL, num_dests, dests); status |= show_printers(NULL, num_dests, dests, long_status); status |= show_jobs(NULL, NULL, long_status, ranking, which); break; case 'u' : /* Show jobs by user */ op = 'u'; if (opt[1] != '\0') { status |= show_jobs(NULL, opt + 1, long_status, ranking, which); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; status |= show_jobs(NULL, argv[i], long_status, ranking, which); } else status |= show_jobs(NULL, NULL, long_status, ranking, which); break; case 'v' : /* Show printer devices */ op = 'v'; if (opt[1] != '\0') { check_dest(argv[0], opt + 1, &num_dests, &dests); status |= show_devices(opt + 1, num_dests, dests); opt += strlen(opt) - 1; } else if ((i + 1) < argc && argv[i + 1][0] != '-') { i ++; check_dest(argv[0], argv[i], &num_dests, &dests); status |= show_devices(argv[i], num_dests, dests); } else { if (num_dests <= 1) { cupsFreeDests(num_dests, dests); num_dests = cupsGetDests(&dests); if (num_dests == 0 && (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } } status |= show_devices(NULL, num_dests, dests); } break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], argv[i][1]); usage(); } } } else { status |= show_jobs(argv[i], NULL, long_status, ranking, which); op = 'o'; } } if (!op) status |= show_jobs(NULL, cupsUser(), long_status, ranking, which); return (status); } /* * 'check_dest()' - Verify that the named destination(s) exists. */ static void check_dest(const char *command, /* I - Command name */ const char *name, /* I - List of printer/class names */ int *num_dests, /* IO - Number of destinations */ cups_dest_t **dests) /* IO - Destinations */ { const char *dptr; /* Pointer into name */ char *pptr, /* Pointer into printer */ printer[1024]; /* Current printer/class name */ /* * Load the destination list as necessary... */ if (*num_dests <= 1) { if (*num_dests) cupsFreeDests(*num_dests, *dests); if (strchr(name, ',')) *num_dests = cupsGetDests(dests); else { strlcpy(printer, name, sizeof(printer)); if ((pptr = strchr(printer, '/')) != NULL) *pptr++ = '\0'; if ((*dests = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer, pptr)) == NULL) { if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), command); else _cupsLangPrintf(stderr, _("%s: Invalid destination name in list \"%s\"."), command, name); exit(1); } else { *num_dests = 1; return; } } } /* * Scan the name string for printer/class name(s)... */ for (dptr = name; *dptr;) { /* * Skip leading whitespace and commas... */ while (isspace(*dptr & 255) || *dptr == ',') dptr ++; if (!*dptr) break; /* * Extract a single destination name from the name string... */ for (pptr = printer; !isspace(*dptr & 255) && *dptr != ',' && *dptr;) { if ((size_t)(pptr - printer) < (sizeof(printer) - 1)) *pptr++ = *dptr++; else { _cupsLangPrintf(stderr, _("%s: Invalid destination name in list \"%s\"."), command, name); exit(1); } } *pptr = '\0'; /* * Check the destination... */ if (!cupsGetDest(printer, NULL, *num_dests, *dests)) { if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), command); else _cupsLangPrintf(stderr, _("%s: Unknown destination \"%s\"."), command, printer); exit(1); } } } /* * 'match_list()' - Match a name from a list of comma or space-separated names. */ static int /* O - 1 on match, 0 on no match */ match_list(const char *list, /* I - List of names */ const char *name) /* I - Name to find */ { const char *nameptr; /* Pointer into name */ /* * An empty list always matches... */ if (!list || !*list) return (1); if (!name) return (0); do { /* * Skip leading whitespace and commas... */ while (isspace(*list & 255) || *list == ',') list ++; if (!*list) break; /* * Compare names... */ for (nameptr = name; *nameptr && *list && tolower(*nameptr & 255) == tolower(*list & 255); nameptr ++, list ++); if (!*nameptr && (!*list || *list == ',' || isspace(*list & 255))) return (1); while (*list && !isspace(*list & 255) && *list != ',') list ++; } while (*list); return (0); } /* * 'show_accepting()' - Show acceptance status. */ static int /* O - 0 on success, 1 on fail */ show_accepting(const char *printers, /* I - Destinations */ int num_dests, /* I - Number of user-defined dests */ cups_dest_t *dests) /* I - User-defined destinations */ { int i; /* Looping var */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ const char *printer, /* Printer name */ *message; /* Printer device URI */ int accepting; /* Accepting requests? */ time_t ptime; /* Printer state time */ char printer_state_time[255];/* Printer state time */ static const char *pattrs[] = /* Attributes we need for printers... */ { "printer-name", "printer-state-change-time", "printer-state-message", "printer-is-accepting-jobs" }; if (printers != NULL && !strcmp(printers, "all")) printers = NULL; /* * Build a CUPS_GET_PRINTERS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * requested-attributes * requesting-user-name */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/"); if (cupsLastError() == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { _cupsLangPrintf(stderr, _("%s: Scheduler is not running."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } if (response) { /* * Loop through the printers returned in the list and display * their devices... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a printer... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this printer... */ printer = NULL; message = NULL; accepting = 1; ptime = 0; while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-state-change-time") && attr->value_tag == IPP_TAG_INTEGER) ptime = (time_t)attr->values[0].integer; else if (!strcmp(attr->name, "printer-state-message") && attr->value_tag == IPP_TAG_TEXT) message = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-is-accepting-jobs") && attr->value_tag == IPP_TAG_BOOLEAN) accepting = attr->values[0].boolean; attr = attr->next; } /* * See if we have everything needed... */ if (printer == NULL) { if (attr == NULL) break; else continue; } /* * Display the printer entry if needed... */ if (match_list(printers, printer)) { _cupsStrDate(printer_state_time, sizeof(printer_state_time), ptime); if (accepting) _cupsLangPrintf(stdout, _("%s accepting requests since %s"), printer, printer_state_time); else { _cupsLangPrintf(stdout, _("%s not accepting requests since %s -"), printer, printer_state_time); _cupsLangPrintf(stdout, _("\t%s"), (message && *message) ? message : "reason unknown"); } for (i = 0; i < num_dests; i ++) if (!_cups_strcasecmp(dests[i].name, printer) && dests[i].instance) { if (accepting) _cupsLangPrintf(stdout, _("%s/%s accepting requests since %s"), printer, dests[i].instance, printer_state_time); else { _cupsLangPrintf(stdout, _("%s/%s not accepting requests since %s -"), printer, dests[i].instance, printer_state_time); _cupsLangPrintf(stdout, _("\t%s"), (message && *message) ? message : "reason unknown"); } } } if (attr == NULL) break; } ippDelete(response); } return (0); } /* * 'show_classes()' - Show printer classes. */ static int /* O - 0 on success, 1 on fail */ show_classes(const char *dests) /* I - Destinations */ { int i; /* Looping var */ ipp_t *request, /* IPP Request */ *response, /* IPP Response */ *response2; /* IPP response from remote server */ http_t *http2; /* Remote server */ ipp_attribute_t *attr; /* Current attribute */ const char *printer, /* Printer class name */ *printer_uri; /* Printer class URI */ ipp_attribute_t *members; /* Printer members */ char method[HTTP_MAX_URI], /* Request method */ username[HTTP_MAX_URI], /* Username:password */ server[HTTP_MAX_URI], /* Server name */ resource[HTTP_MAX_URI]; /* Resource name */ int port; /* Port number */ static const char *cattrs[] = /* Attributes we need for classes... */ { "printer-name", "printer-uri-supported", "member-names" }; if (dests != NULL && !strcmp(dests, "all")) dests = NULL; /* * Build a CUPS_GET_CLASSES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * requested-attributes * requesting-user-name */ request = ippNewRequest(CUPS_GET_CLASSES); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(cattrs) / sizeof(cattrs[0]), NULL, cattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/"); if (cupsLastError() == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { _cupsLangPrintf(stderr, _("%s: Scheduler is not running."), "lpstat"); ippDelete(response); return (1); } if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } if (response) { if (response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } /* * Loop through the printers returned in the list and display * their devices... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ printer = NULL; printer_uri = NULL; members = NULL; do { if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer = attr->values[0].string.text; if (!strcmp(attr->name, "printer-uri-supported") && attr->value_tag == IPP_TAG_URI) printer_uri = attr->values[0].string.text; if (!strcmp(attr->name, "member-names") && attr->value_tag == IPP_TAG_NAME) members = attr; attr = attr->next; } while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER); /* * If this is a remote class, grab the class info from the * remote server... */ response2 = NULL; if (members == NULL && printer_uri != NULL) { httpSeparateURI(HTTP_URI_CODING_ALL, printer_uri, method, sizeof(method), username, sizeof(username), server, sizeof(server), &port, resource, sizeof(resource)); if (!_cups_strcasecmp(server, cupsServer())) http2 = CUPS_HTTP_DEFAULT; else http2 = httpConnectEncrypt(server, port, cupsEncryption()); /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the * following attributes: * * attributes-charset * attributes-natural-language * printer-uri * requested-attributes */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(cattrs) / sizeof(cattrs[0]), NULL, cattrs); if ((response2 = cupsDoRequest(http2, request, "/")) != NULL) members = ippFindAttribute(response2, "member-names", IPP_TAG_NAME); if (http2) httpClose(http2); } /* * See if we have everything needed... */ if (printer == NULL) { if (response2) ippDelete(response2); if (attr == NULL) break; else continue; } /* * Display the printer entry if needed... */ if (match_list(dests, printer)) { _cupsLangPrintf(stdout, _("members of class %s:"), printer); if (members) { for (i = 0; i < members->num_values; i ++) _cupsLangPrintf(stdout, "\t%s", members->values[i].string.text); } else _cupsLangPuts(stdout, "\tunknown"); } if (response2) ippDelete(response2); if (attr == NULL) break; } ippDelete(response); } return (0); } /* * 'show_default()' - Show default destination. */ static void show_default(cups_dest_t *dest) /* I - Default destination */ { const char *printer, /* Printer name */ *val; /* Environment variable name */ if (dest) { if (dest->instance) _cupsLangPrintf(stdout, _("system default destination: %s/%s"), dest->name, dest->instance); else _cupsLangPrintf(stdout, _("system default destination: %s"), dest->name); } else { val = NULL; if ((printer = getenv("LPDEST")) == NULL) { if ((printer = getenv("PRINTER")) != NULL) { if (!strcmp(printer, "lp")) printer = NULL; else val = "PRINTER"; } } else val = "LPDEST"; if (printer) _cupsLangPrintf(stdout, _("lpstat: error - %s environment variable names " "non-existent destination \"%s\"."), val, printer); else _cupsLangPuts(stdout, _("no system default destination")); } } /* * 'show_devices()' - Show printer devices. */ static int /* O - 0 on success, 1 on fail */ show_devices(const char *printers, /* I - Destinations */ int num_dests, /* I - Number of user-defined dests */ cups_dest_t *dests) /* I - User-defined destinations */ { int i; /* Looping var */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ const char *printer, /* Printer name */ *uri, /* Printer URI */ *device; /* Printer device URI */ static const char *pattrs[] = /* Attributes we need for printers... */ { "printer-name", "printer-uri-supported", "device-uri" }; if (printers != NULL && !strcmp(printers, "all")) printers = NULL; /* * Build a CUPS_GET_PRINTERS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * requested-attributes * requesting-user-name */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/"); if (cupsLastError() == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { _cupsLangPrintf(stderr, _("%s: Scheduler is not running."), "lpstat"); ippDelete(response); return (1); } if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } if (response) { /* * Loop through the printers returned in the list and display * their devices... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ printer = NULL; device = NULL; uri = NULL; while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer = attr->values[0].string.text; if (!strcmp(attr->name, "printer-uri-supported") && attr->value_tag == IPP_TAG_URI) uri = attr->values[0].string.text; if (!strcmp(attr->name, "device-uri") && attr->value_tag == IPP_TAG_URI) device = attr->values[0].string.text; attr = attr->next; } /* * See if we have everything needed... */ if (printer == NULL) { if (attr == NULL) break; else continue; } /* * Display the printer entry if needed... */ if (match_list(printers, printer)) { if (device == NULL) _cupsLangPrintf(stdout, _("device for %s: %s"), printer, uri); else if (!strncmp(device, "file:", 5)) _cupsLangPrintf(stdout, _("device for %s: %s"), printer, device + 5); else _cupsLangPrintf(stdout, _("device for %s: %s"), printer, device); for (i = 0; i < num_dests; i ++) { if (!_cups_strcasecmp(printer, dests[i].name) && dests[i].instance) { if (device == NULL) _cupsLangPrintf(stdout, _("device for %s/%s: %s"), printer, dests[i].instance, uri); else if (!strncmp(device, "file:", 5)) _cupsLangPrintf(stdout, _("device for %s/%s: %s"), printer, dests[i].instance, device + 5); else _cupsLangPrintf(stdout, _("device for %s/%s: %s"), printer, dests[i].instance, device); } } } if (attr == NULL) break; } ippDelete(response); } return (0); } /* * 'show_jobs()' - Show active print jobs. */ static int /* O - 0 on success, 1 on fail */ show_jobs(const char *dests, /* I - Destinations */ const char *users, /* I - Users */ int long_status, /* I - Show long status? */ int ranking, /* I - Show job ranking? */ const char *which) /* I - Show which jobs? */ { int i; /* Looping var */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr, /* Current attribute */ *reasons; /* Job state reasons attribute */ const char *dest, /* Pointer into job-printer-uri */ *username, /* Pointer to job-originating-user-name */ *message, /* Pointer to job-printer-state-message */ *time_at; /* time-at-xxx attribute name to use */ int rank, /* Rank in queue */ jobid, /* job-id */ size; /* job-k-octets */ time_t jobtime; /* time-at-creation */ char temp[255], /* Temporary buffer */ date[255]; /* Date buffer */ static const char *jattrs[] = /* Attributes we need for jobs... */ { "job-id", "job-k-octets", "job-name", "job-originating-user-name", "job-printer-state-message", "job-printer-uri", "job-state-reasons", "time-at-creation", "time-at-completed" }; if (dests != NULL && !strcmp(dests, "all")) dests = NULL; /* * Build a IPP_GET_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requested-attributes * requesting-user-name * which-jobs */ request = ippNewRequest(IPP_GET_JOBS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/"); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(jattrs) / sizeof(jattrs[0]), NULL, jattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "which-jobs", NULL, which); /* * Do the request and get back a response... */ response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/"); if (cupsLastError() == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { _cupsLangPrintf(stderr, _("%s: Scheduler is not running."), "lpstat"); ippDelete(response); return (1); } if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } if (response) { /* * Loop through the job list and display them... */ if (!strcmp(which, "aborted") || !strcmp(which, "canceled") || !strcmp(which, "completed")) time_at = "time-at-completed"; else time_at = "time-at-creation"; rank = -1; for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_JOB) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ jobid = 0; size = 0; username = NULL; dest = NULL; jobtime = 0; message = NULL; reasons = NULL; while (attr != NULL && attr->group_tag == IPP_TAG_JOB) { if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) jobid = attr->values[0].integer; else if (!strcmp(attr->name, "job-k-octets") && attr->value_tag == IPP_TAG_INTEGER) size = attr->values[0].integer; else if (!strcmp(attr->name, time_at) && attr->value_tag == IPP_TAG_INTEGER) jobtime = attr->values[0].integer; else if (!strcmp(attr->name, "job-printer-state-message") && attr->value_tag == IPP_TAG_TEXT) message = attr->values[0].string.text; else if (!strcmp(attr->name, "job-printer-uri") && attr->value_tag == IPP_TAG_URI) { if ((dest = strrchr(attr->values[0].string.text, '/')) != NULL) dest ++; } else if (!strcmp(attr->name, "job-originating-user-name") && attr->value_tag == IPP_TAG_NAME) username = attr->values[0].string.text; else if (!strcmp(attr->name, "job-state-reasons") && attr->value_tag == IPP_TAG_KEYWORD) reasons = attr; attr = attr->next; } /* * See if we have everything needed... */ if (dest == NULL || jobid == 0) { if (attr == NULL) break; else continue; } /* * Display the job... */ rank ++; if (match_list(dests, dest) && match_list(users, username)) { snprintf(temp, sizeof(temp), "%s-%d", dest, jobid); _cupsStrDate(date, sizeof(date), jobtime); if (ranking) _cupsLangPrintf(stdout, "%3d %-21s %-13s %8.0f %s", rank, temp, username ? username : "unknown", 1024.0 * size, date); else _cupsLangPrintf(stdout, "%-23s %-13s %8.0f %s", temp, username ? username : "unknown", 1024.0 * size, date); if (long_status) { if (message) _cupsLangPrintf(stdout, _("\tStatus: %s"), message); if (reasons) { char alerts[1024], /* Alerts string */ *aptr; /* Pointer into alerts string */ for (i = 0, aptr = alerts; i < reasons->num_values; i ++) { if (i) snprintf(aptr, sizeof(alerts) - (size_t)(aptr - alerts), " %s", reasons->values[i].string.text); else strlcpy(alerts, reasons->values[i].string.text, sizeof(alerts)); aptr += strlen(aptr); } _cupsLangPrintf(stdout, _("\tAlerts: %s"), alerts); } _cupsLangPrintf(stdout, _("\tqueued for %s"), dest); } } if (attr == NULL) break; } ippDelete(response); } return (0); } /* * 'show_printers()' - Show printers. */ static int /* O - 0 on success, 1 on fail */ show_printers(const char *printers, /* I - Destinations */ int num_dests, /* I - Number of user-defined dests */ cups_dest_t *dests, /* I - User-defined destinations */ int long_status) /* I - Show long status? */ { int i, j; /* Looping vars */ ipp_t *request, /* IPP Request */ *response, /* IPP Response */ *jobs; /* IPP Get Jobs response */ ipp_attribute_t *attr, /* Current attribute */ *jobattr, /* Job ID attribute */ *reasons; /* Job state reasons attribute */ const char *printer, /* Printer name */ *message, /* Printer state message */ *description, /* Description of printer */ *location, /* Location of printer */ *make_model, /* Make and model of printer */ *uri; /* URI of printer */ ipp_attribute_t *allowed, /* requesting-user-name-allowed */ *denied; /* requestint-user-name-denied */ ipp_pstate_t pstate; /* Printer state */ cups_ptype_t ptype; /* Printer type */ time_t ptime; /* Printer state time */ int jobid; /* Job ID of current job */ char printer_uri[HTTP_MAX_URI], /* Printer URI */ printer_state_time[255];/* Printer state time */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ static const char *pattrs[] = /* Attributes we need for printers... */ { "printer-name", "printer-state", "printer-state-message", "printer-state-reasons", "printer-state-change-time", "printer-type", "printer-info", "printer-location", "printer-make-and-model", "printer-uri-supported", "requesting-user-name-allowed", "requesting-user-name-denied" }; static const char *jattrs[] = /* Attributes we need for jobs... */ { "job-id", "job-state" }; if (printers != NULL && !strcmp(printers, "all")) printers = NULL; /* * Build a CUPS_GET_PRINTERS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * requested-attributes * requesting-user-name */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/"); if (cupsLastError() == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { _cupsLangPrintf(stderr, _("%s: Scheduler is not running."), "lpstat"); ippDelete(response); return (1); } if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), "lpstat"); ippDelete(response); return (1); } else if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, "lpstat: %s", cupsLastErrorString()); ippDelete(response); return (1); } if (response) { /* * Loop through the printers returned in the list and display * their status... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ printer = NULL; ptime = 0; ptype = CUPS_PRINTER_LOCAL; pstate = IPP_PRINTER_IDLE; message = NULL; description = NULL; location = NULL; make_model = NULL; reasons = NULL; uri = NULL; jobid = 0; allowed = NULL; denied = NULL; while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-state") && attr->value_tag == IPP_TAG_ENUM) pstate = (ipp_pstate_t)attr->values[0].integer; else if (!strcmp(attr->name, "printer-type") && attr->value_tag == IPP_TAG_ENUM) ptype = (cups_ptype_t)attr->values[0].integer; else if (!strcmp(attr->name, "printer-state-message") && attr->value_tag == IPP_TAG_TEXT) message = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-state-change-time") && attr->value_tag == IPP_TAG_INTEGER) ptime = (time_t)attr->values[0].integer; else if (!strcmp(attr->name, "printer-info") && attr->value_tag == IPP_TAG_TEXT) description = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-location") && attr->value_tag == IPP_TAG_TEXT) location = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-make-and-model") && attr->value_tag == IPP_TAG_TEXT) make_model = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-uri-supported") && attr->value_tag == IPP_TAG_URI) uri = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-state-reasons") && attr->value_tag == IPP_TAG_KEYWORD) reasons = attr; else if (!strcmp(attr->name, "requesting-user-name-allowed") && attr->value_tag == IPP_TAG_NAME) allowed = attr; else if (!strcmp(attr->name, "requesting-user-name-denied") && attr->value_tag == IPP_TAG_NAME) denied = attr; attr = attr->next; } /* * See if we have everything needed... */ if (printer == NULL) { if (attr == NULL) break; else continue; } /* * Display the printer entry if needed... */ if (match_list(printers, printer)) { /* * If the printer state is "IPP_PRINTER_PROCESSING", then grab the * current job for the printer. */ if (pstate == IPP_PRINTER_PROCESSING) { /* * Build an IPP_GET_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * limit * requested-attributes */ request = ippNewRequest(IPP_GET_JOBS); request->request.op.operation_id = IPP_GET_JOBS; request->request.op.request_id = 1; ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(jattrs) / sizeof(jattrs[0]), NULL, jattrs); httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); if ((jobs = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/")) != NULL) { /* * Get the current active job on this queue... */ ipp_jstate_t jobstate = IPP_JOB_PENDING; jobid = 0; for (jobattr = jobs->attrs; jobattr; jobattr = jobattr->next) { if (!jobattr->name) { if (jobstate == IPP_JOB_PROCESSING) break; else continue; } if (!strcmp(jobattr->name, "job-id") && jobattr->value_tag == IPP_TAG_INTEGER) jobid = jobattr->values[0].integer; else if (!strcmp(jobattr->name, "job-state") && jobattr->value_tag == IPP_TAG_ENUM) jobstate = (ipp_jstate_t)jobattr->values[0].integer; } if (jobstate != IPP_JOB_PROCESSING) jobid = 0; ippDelete(jobs); } } /* * Display it... */ _cupsStrDate(printer_state_time, sizeof(printer_state_time), ptime); switch (pstate) { case IPP_PRINTER_IDLE : if (ippContainsString(reasons, "hold-new-jobs")) _cupsLangPrintf(stdout, _("printer %s is holding new jobs. enabled since %s"), printer, printer_state_time); else _cupsLangPrintf(stdout, _("printer %s is idle. enabled since %s"), printer, printer_state_time); break; case IPP_PRINTER_PROCESSING : _cupsLangPrintf(stdout, _("printer %s now printing %s-%d. enabled since %s"), printer, printer, jobid, printer_state_time); break; case IPP_PRINTER_STOPPED : _cupsLangPrintf(stdout, _("printer %s disabled since %s -"), printer, printer_state_time); break; } if ((message && *message) || pstate == IPP_PRINTER_STOPPED) { if (message && *message) _cupsLangPrintf(stdout, "\t%s", message); else _cupsLangPuts(stdout, _("\treason unknown")); } if (long_status > 1) { _cupsLangPuts(stdout, _("\tForm mounted:")); _cupsLangPuts(stdout, _("\tContent types: any")); _cupsLangPuts(stdout, _("\tPrinter types: unknown")); } if (long_status) { _cupsLangPrintf(stdout, _("\tDescription: %s"), description ? description : ""); if (reasons) { char alerts[1024], /* Alerts string */ *aptr; /* Pointer into alerts string */ for (i = 0, aptr = alerts; i < reasons->num_values; i ++) { if (i) snprintf(aptr, sizeof(alerts) - (size_t)(aptr - alerts), " %s", reasons->values[i].string.text); else strlcpy(alerts, reasons->values[i].string.text, sizeof(alerts)); aptr += strlen(aptr); } _cupsLangPrintf(stdout, _("\tAlerts: %s"), alerts); } } if (long_status > 1) { _cupsLangPrintf(stdout, _("\tLocation: %s"), location ? location : ""); if (ptype & CUPS_PRINTER_REMOTE) { _cupsLangPuts(stdout, _("\tConnection: remote")); if (make_model && !strstr(make_model, "System V Printer") && !strstr(make_model, "Raw Printer") && uri) _cupsLangPrintf(stdout, _("\tInterface: %s.ppd"), uri); } else { _cupsLangPuts(stdout, _("\tConnection: direct")); if (make_model && !strstr(make_model, "Raw Printer")) _cupsLangPrintf(stdout, _("\tInterface: %s/ppd/%s.ppd"), cg->cups_serverroot, printer); } _cupsLangPuts(stdout, _("\tOn fault: no alert")); _cupsLangPuts(stdout, _("\tAfter fault: continue")); /* TODO update to use printer-error-policy */ if (allowed) { _cupsLangPuts(stdout, _("\tUsers allowed:")); for (j = 0; j < allowed->num_values; j ++) _cupsLangPrintf(stdout, "\t\t%s", allowed->values[j].string.text); } else if (denied) { _cupsLangPuts(stdout, _("\tUsers denied:")); for (j = 0; j < denied->num_values; j ++) _cupsLangPrintf(stdout, "\t\t%s", denied->values[j].string.text); } else { _cupsLangPuts(stdout, _("\tUsers allowed:")); _cupsLangPuts(stdout, _("\t\t(all)")); } _cupsLangPuts(stdout, _("\tForms allowed:")); _cupsLangPuts(stdout, _("\t\t(none)")); _cupsLangPuts(stdout, _("\tBanner required")); _cupsLangPuts(stdout, _("\tCharset sets:")); _cupsLangPuts(stdout, _("\t\t(none)")); _cupsLangPuts(stdout, _("\tDefault pitch:")); _cupsLangPuts(stdout, _("\tDefault page size:")); _cupsLangPuts(stdout, _("\tDefault port settings:")); } for (i = 0; i < num_dests; i ++) if (!_cups_strcasecmp(printer, dests[i].name) && dests[i].instance) { switch (pstate) { case IPP_PRINTER_IDLE : _cupsLangPrintf(stdout, _("printer %s/%s is idle. " "enabled since %s"), printer, dests[i].instance, printer_state_time); break; case IPP_PRINTER_PROCESSING : _cupsLangPrintf(stdout, _("printer %s/%s now printing %s-%d. " "enabled since %s"), printer, dests[i].instance, printer, jobid, printer_state_time); break; case IPP_PRINTER_STOPPED : _cupsLangPrintf(stdout, _("printer %s/%s disabled since %s -"), printer, dests[i].instance, printer_state_time); break; } if ((message && *message) || pstate == IPP_PRINTER_STOPPED) { if (message && *message) _cupsLangPrintf(stdout, "\t%s", message); else _cupsLangPuts(stdout, _("\treason unknown")); } if (long_status > 1) { _cupsLangPuts(stdout, _("\tForm mounted:")); _cupsLangPuts(stdout, _("\tContent types: any")); _cupsLangPuts(stdout, _("\tPrinter types: unknown")); } if (long_status) { _cupsLangPrintf(stdout, _("\tDescription: %s"), description ? description : ""); if (reasons) { char alerts[1024], /* Alerts string */ *aptr; /* Pointer into alerts string */ for (i = 0, aptr = alerts; i < reasons->num_values; i ++) { if (i) snprintf(aptr, sizeof(alerts) - (size_t)(aptr - alerts), " %s", reasons->values[i].string.text); else strlcpy(alerts, reasons->values[i].string.text, sizeof(alerts)); aptr += strlen(aptr); } _cupsLangPrintf(stdout, _("\tAlerts: %s"), alerts); } } if (long_status > 1) { _cupsLangPrintf(stdout, _("\tLocation: %s"), location ? location : ""); if (ptype & CUPS_PRINTER_REMOTE) { _cupsLangPuts(stdout, _("\tConnection: remote")); if (make_model && !strstr(make_model, "System V Printer") && !strstr(make_model, "Raw Printer") && uri) _cupsLangPrintf(stdout, _("\tInterface: %s.ppd"), uri); } else { _cupsLangPuts(stdout, _("\tConnection: direct")); if (make_model && !strstr(make_model, "Raw Printer")) _cupsLangPrintf(stdout, _("\tInterface: %s/ppd/%s.ppd"), cg->cups_serverroot, printer); } _cupsLangPuts(stdout, _("\tOn fault: no alert")); _cupsLangPuts(stdout, _("\tAfter fault: continue")); /* TODO update to use printer-error-policy */ if (allowed) { _cupsLangPuts(stdout, _("\tUsers allowed:")); for (j = 0; j < allowed->num_values; j ++) _cupsLangPrintf(stdout, "\t\t%s", allowed->values[j].string.text); } else if (denied) { _cupsLangPuts(stdout, _("\tUsers denied:")); for (j = 0; j < denied->num_values; j ++) _cupsLangPrintf(stdout, "\t\t%s", denied->values[j].string.text); } else { _cupsLangPuts(stdout, _("\tUsers allowed:")); _cupsLangPuts(stdout, _("\t\t(all)")); } _cupsLangPuts(stdout, _("\tForms allowed:")); _cupsLangPuts(stdout, _("\t\t(none)")); _cupsLangPuts(stdout, _("\tBanner required")); _cupsLangPuts(stdout, _("\tCharset sets:")); _cupsLangPuts(stdout, _("\t\t(none)")); _cupsLangPuts(stdout, _("\tDefault pitch:")); _cupsLangPuts(stdout, _("\tDefault page size:")); _cupsLangPuts(stdout, _("\tDefault port settings:")); } } } if (attr == NULL) break; } ippDelete(response); } return (0); } /* * 'show_scheduler()' - Show scheduler status. */ static int /* 1 on success, 0 on failure */ show_scheduler(void) { http_t *http; /* Connection to server */ if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) != NULL) { _cupsLangPuts(stdout, _("scheduler is running")); httpClose(http); return (1); } else { _cupsLangPuts(stdout, _("scheduler is not running")); return (0); } } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpstat [options]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-l Show verbose (long) output")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); _cupsLangPuts(stdout, _("-H Show the default server and port")); _cupsLangPuts(stdout, _("-W completed Show completed jobs")); _cupsLangPuts(stdout, _("-W not-completed Show pending jobs")); _cupsLangPuts(stdout, _("-a [destination(s)] Show the accepting state of destinations")); _cupsLangPuts(stdout, _("-c [class(es)] Show classes and their member printers")); _cupsLangPuts(stdout, _("-d Show the default destination")); _cupsLangPuts(stdout, _("-e Show available destinations on the network")); _cupsLangPuts(stdout, _("-o [destination(s)] Show jobs")); _cupsLangPuts(stdout, _("-p [printer(s)] Show the processing state of destinations")); _cupsLangPuts(stdout, _("-r Show whether the CUPS server is running")); _cupsLangPuts(stdout, _("-R Show the ranking of jobs")); _cupsLangPuts(stdout, _("-s Show a status summary")); _cupsLangPuts(stdout, _("-t Show all status information")); _cupsLangPuts(stdout, _("-u [user(s)] Show jobs queued by the current or specified users")); _cupsLangPuts(stdout, _("-v [printer(s)] Show the devices for each destination")); exit(1); } cups-2.4.7/systemv/lpoptions.c0000644000175000017500000003245214502571342016274 0ustar zdohnalzdohnal/* * Printer option program for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static void list_group(ppd_file_t *ppd, ppd_group_t *group); static void list_options(cups_dest_t *dest); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i, j; /* Looping vars */ int changes; /* Did we make changes? */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ int num_dests; /* Number of destinations */ cups_dest_t *dests; /* Destinations */ cups_dest_t *dest; /* Current destination */ char *opt, /* Option pointer */ *printer, /* Printer name */ *instance, /* Instance name */ *option; /* Current option */ _cupsSetLocale(argv); /* * Loop through the command-line arguments... */ dest = NULL; num_dests = 0; dests = NULL; num_options = 0; options = NULL; changes = 0; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'd' : /* -d printer */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); printer = argv[i]; } if ((instance = strrchr(printer, '/')) != NULL) *instance++ = '\0'; if (num_dests == 0) num_dests = cupsGetDests(&dests); if (num_dests == 0 || !dests || (dest = cupsGetDest(printer, instance, num_dests, dests)) == NULL) { _cupsLangPuts(stderr, _("lpoptions: Unknown printer or class.")); return (1); } /* * Set the default destination... */ for (j = 0; j < num_dests; j ++) dests[j].is_default = 0; dest->is_default = 1; cupsSetDests(num_dests, dests); for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); break; case 'h' : /* -h server */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); cupsSetServer(argv[i]); } break; case 'E' : /* Encrypt connection */ cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); break; case 'l' : /* -l (list options) */ if (dest == NULL) { if (num_dests == 0) num_dests = cupsGetDests(&dests); if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL) dest = dests; } if (dest == NULL) _cupsLangPuts(stderr, _("lpoptions: No printers.")); else list_options(dest); changes = -1; break; case 'o' : /* -o option[=value] */ if (dest == NULL) { if (num_dests == 0) num_dests = cupsGetDests(&dests); if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL) dest = dests; if (dest == NULL) { _cupsLangPuts(stderr, _("lpoptions: No printers.")); return (1); } for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } if (opt[1] != '\0') { num_options = cupsParseOptions(opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); num_options = cupsParseOptions(argv[i], num_options, &options); } changes = 1; break; case 'p' : /* -p printer */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); printer = argv[i]; } if ((instance = strrchr(printer, '/')) != NULL) *instance++ = '\0'; if (num_dests == 0) num_dests = cupsGetDests(&dests); if ((dest = cupsGetDest(printer, instance, num_dests, dests)) == NULL) { num_dests = cupsAddDest(printer, instance, num_dests, &dests); dest = cupsGetDest(printer, instance, num_dests, dests); if (dest == NULL) { _cupsLangPrintf(stderr, _("lpoptions: Unable to add printer or instance: %s"), strerror(errno)); return (1); } } for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); break; case 'r' : /* -r option (remove) */ if (dest == NULL) { if (num_dests == 0) num_dests = cupsGetDests(&dests); if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL) dest = dests; if (dest == NULL) { _cupsLangPuts(stderr, _("lpoptions: No printers.")); return (1); } for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } if (opt[1] != '\0') { option = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); option = argv[i]; } num_options = cupsRemoveOption(option, num_options, &options); changes = 1; break; case 'x' : /* -x printer */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) usage(); printer = argv[i]; } if ((instance = strrchr(printer, '/')) != NULL) *instance++ = '\0'; if (num_dests == 0) num_dests = cupsGetDests(&dests); num_dests = cupsRemoveDest(printer, instance, num_dests, &dests); cupsSetDests(num_dests, dests); dest = NULL; changes = -1; break; default : usage(); } } } else { usage(); } } if (num_dests == 0) num_dests = cupsGetDests(&dests); if (dest == NULL) { if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) != NULL) { for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } } if (dest == NULL) return (0); if (changes > 0) { /* * Set printer options... */ cupsFreeOptions(dest->num_options, dest->options); dest->num_options = num_options; dest->options = options; cupsSetDests(num_dests, dests); } else if (changes == 0) { char buffer[10240], /* String for options */ *ptr; /* Pointer into string */ num_options = dest->num_options; options = dest->options; for (i = 0, ptr = buffer; ptr < (buffer + sizeof(buffer) - 1) && i < num_options; i ++) { if (i) *ptr++ = ' '; if (!options[i].value[0]) strlcpy(ptr, options[i].name, sizeof(buffer) - (size_t)(ptr - buffer)); else if (strchr(options[i].value, ' ') != NULL || strchr(options[i].value, '\t') != NULL) snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), "%s=\'%s\'", options[i].name, options[i].value); else snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), "%s=%s", options[i].name, options[i].value); ptr += strlen(ptr); } _cupsLangPuts(stdout, buffer); } return (0); } /* * 'list_group()' - List printer-specific options from the PPD group. */ static void list_group(ppd_file_t *ppd, /* I - PPD file */ ppd_group_t *group) /* I - Group to show */ { int i, j; /* Looping vars */ ppd_option_t *option; /* Current option */ ppd_choice_t *choice; /* Current choice */ ppd_group_t *subgroup; /* Current subgroup */ char buffer[10240], /* Option string buffer */ *ptr; /* Pointer into option string */ for (i = group->num_options, option = group->options; i > 0; i --, option ++) { if (!_cups_strcasecmp(option->keyword, "PageRegion")) continue; snprintf(buffer, sizeof(buffer), "%s/%s:", option->keyword, option->text); for (j = option->num_choices, choice = option->choices, ptr = buffer + strlen(buffer); j > 0 && ptr < (buffer + sizeof(buffer) - 1); j --, choice ++) { if (!_cups_strcasecmp(choice->choice, "Custom")) { ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ static const char * const types[] = { /* Parameter types */ "CURVE", "INTEGER", "INVCURVE", "PASSCODE", "PASSWORD", "POINTS", "REAL", "STRING" }; if ((coption = ppdFindCustomOption(ppd, option->keyword)) == NULL || cupsArrayCount(coption->params) == 0) snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), " %sCustom", choice->marked ? "*" : ""); else if (!_cups_strcasecmp(option->keyword, "PageSize") || !_cups_strcasecmp(option->keyword, "PageRegion")) snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), " %sCustom.WIDTHxHEIGHT", choice->marked ? "*" : ""); else { cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); if (cupsArrayCount(coption->params) == 1) snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), " %sCustom.%s", choice->marked ? "*" : "", types[cparam->type]); else { const char *prefix; /* Prefix string */ if (choice->marked) prefix = " *{"; else prefix = " {"; while (cparam) { snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), "%s%s=%s", prefix, cparam->name, types[cparam->type]); cparam = (ppd_cparam_t *)cupsArrayNext(coption->params); prefix = " "; ptr += strlen(ptr); } if (ptr < (buffer + sizeof(buffer) - 1)) strlcpy(ptr, "}", sizeof(buffer) - (size_t)(ptr - buffer)); } } } else if (choice->marked) snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), " *%s", choice->choice); else snprintf(ptr, sizeof(buffer) - (size_t)(ptr - buffer), " %s", choice->choice); ptr += strlen(ptr); } _cupsLangPuts(stdout, buffer); } for (i = group->num_subgroups, subgroup = group->subgroups; i > 0; i --, subgroup ++) list_group(ppd, subgroup); } /* * 'list_options()' - List printer-specific options from the PPD file. */ static void list_options(cups_dest_t *dest) /* I - Destination to list */ { http_t *http; /* Connection to destination */ char resource[1024]; /* Resource path */ int i; /* Looping var */ const char *filename; /* PPD filename */ ppd_file_t *ppd; /* PPD data */ ppd_group_t *group; /* Current group */ if ((http = cupsConnectDest(dest, CUPS_DEST_FLAGS_NONE, 30000, NULL, resource, sizeof(resource), NULL, NULL)) == NULL) { _cupsLangPrintf(stderr, _("lpoptions: Unable to get PPD file for %s: %s"), dest->name, cupsLastErrorString()); return; } if ((filename = cupsGetPPD2(http, dest->name)) == NULL) { httpClose(http); _cupsLangPrintf(stderr, _("lpoptions: Unable to get PPD file for %s: %s"), dest->name, cupsLastErrorString()); return; } httpClose(http); if ((ppd = ppdOpenFile(filename)) == NULL) { unlink(filename); _cupsLangPrintf(stderr, _("lpoptions: Unable to open PPD file for %s."), dest->name); return; } ppdMarkDefaults(ppd); cupsMarkOptions(ppd, dest->num_options, dest->options); for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) list_group(ppd, group); ppdClose(ppd); unlink(filename); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-d destination Set default destination")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-l Show supported options and values")); _cupsLangPuts(stdout, _("-o name[=value] Set default option and value")); _cupsLangPuts(stdout, _("-p destination Specify a destination")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); _cupsLangPuts(stdout, _("-x destination Remove default options for destination")); exit(1); } cups-2.4.7/systemv/lpmove.c0000644000175000017500000001231414502571342015542 0ustar zdohnalzdohnal/* * "lpmove" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * Local functions... */ static int move_job(http_t *http, const char *src, int jobid, const char *dest); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and show status information. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ http_t *http; /* Connection to server */ const char *opt, /* Option pointer */ *job; /* Job name */ int jobid; /* Job ID */ int num_dests; /* Number of destinations */ cups_dest_t *dests; /* Destinations */ const char *src, /* Original queue */ *dest; /* New destination */ _cupsSetLocale(argv); dest = NULL; dests = NULL; job = NULL; jobid = 0; num_dests = 0; src = NULL; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'h' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("Error: need hostname after \"-h\" option.")); usage(); } cupsSetServer(argv[i]); } break; default : _cupsLangPrintf(stderr, _("%s: Unknown option \"%c\"."), argv[0], *opt); usage(); } } } else if (!jobid && !src) { if (num_dests == 0) num_dests = cupsGetDests(&dests); if ((job = strrchr(argv[i], '-')) != NULL && cupsGetDest(argv[i], NULL, num_dests, dests) == NULL) jobid = atoi(job + 1); else if (isdigit(argv[i][0] & 255) && !cupsGetDest(argv[i], NULL, num_dests, dests)) jobid = atoi(argv[i]); else src = argv[i]; } else if (dest == NULL) dest = argv[i]; else { _cupsLangPrintf(stderr, _("lpmove: Unknown argument \"%s\"."), argv[i]); usage(); } } if ((!jobid && !src) || !dest) usage(); http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); if (http == NULL) { _cupsLangPrintf(stderr, _("lpmove: Unable to connect to server: %s"), strerror(errno)); return (1); } return (move_job(http, src, jobid, dest)); } /* * 'move_job()' - Move a job. */ static int /* O - 0 on success, 1 on error */ move_job(http_t *http, /* I - HTTP connection to server */ const char *src, /* I - Source queue */ int jobid, /* I - Job ID */ const char *dest) /* I - Destination queue */ { ipp_t *request; /* IPP Request */ char job_uri[HTTP_MAX_URI], /* job-uri */ printer_uri[HTTP_MAX_URI]; /* job-printer-uri */ if (!http) return (1); /* * Build a CUPS_MOVE_JOB request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * job-uri/printer-uri * job-printer-uri * requesting-user-name */ request = ippNewRequest(CUPS_MOVE_JOB); if (jobid) { snprintf(job_uri, sizeof(job_uri), "ipp://localhost/jobs/%d", jobid); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, job_uri); } else { httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, "localhost", 0, "/printers/%s", src); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, job_uri); } ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL, printer_uri); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/jobs")); if (cupsLastError() > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "lpmove: %s", cupsLastErrorString()); return (1); } else return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); exit(1); } cups-2.4.7/systemv/lpinfo.c0000644000175000017500000003261014502571342015530 0ustar zdohnalzdohnal/* * "lpinfo" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static void device_cb(const char *device_class, const char *device_id, const char *device_info, const char *device_make_and_model, const char *device_uri, const char *device_location, void *user_data); static int show_devices(int long_status, int timeout, const char *include_schemes, const char *exclude_schemes); static int show_models(int long_status, const char *device_id, const char *language, const char *make_model, const char *product, const char *include_schemes, const char *exclude_schemes); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and show status information. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int long_status; /* Long listing? */ const char *opt, /* Option pointer */ *device_id, /* 1284 device ID */ *language, /* Language */ *make_model, /* Make and model */ *product, /* Product */ *include_schemes, /* Schemes to include */ *exclude_schemes; /* Schemes to exclude */ int timeout; /* Device timeout */ _cupsSetLocale(argv); long_status = 0; device_id = NULL; language = NULL; make_model = NULL; product = NULL; include_schemes = CUPS_INCLUDE_ALL; exclude_schemes = CUPS_EXCLUDE_NONE; timeout = CUPS_TIMEOUT_DEFAULT; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--device-id")) { i ++; if (i < argc) device_id = argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected 1284 device ID string after \"--device-id\".")); usage(); } } else if (!strncmp(argv[i], "--device-id=", 12) && argv[i][12]) { device_id = argv[i] + 12; } else if (!strcmp(argv[i], "--exclude-schemes")) { i ++; if (i < argc) exclude_schemes = argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected scheme list after \"--exclude-schemes\".")); usage(); } } else if (!strncmp(argv[i], "--exclude-schemes=", 18) && argv[i][18]) { exclude_schemes = argv[i] + 18; } else if (!strcmp(argv[i], "--help")) usage(); else if (!strcmp(argv[i], "--include-schemes")) { i ++; if (i < argc) include_schemes = argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected scheme list after \"--include-schemes\".")); usage(); } } else if (!strncmp(argv[i], "--include-schemes=", 18) && argv[i][18]) { include_schemes = argv[i] + 18; } else if (!strcmp(argv[i], "--language")) { i ++; if (i < argc) language = argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected language after \"--language\".")); usage(); } } else if (!strncmp(argv[i], "--language=", 11) && argv[i][11]) { language = argv[i] + 11; } else if (!strcmp(argv[i], "--make-and-model")) { i ++; if (i < argc) make_model= argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected make and model after \"--make-and-model\".")); usage(); } } else if (!strncmp(argv[i], "--make-and-model=", 17) && argv[i][17]) { make_model = argv[i] + 17; } else if (!strcmp(argv[i], "--product")) { i ++; if (i < argc) product = argv[i]; else { _cupsLangPuts(stderr, _("lpinfo: Expected product string after \"--product\".")); usage(); } } else if (!strncmp(argv[i], "--product=", 10) && argv[i][10]) { product = argv[i] + 10; } else if (!strcmp(argv[i], "--timeout")) { i ++; if (i < argc) timeout = atoi(argv[i]); else { _cupsLangPuts(stderr, _("lpinfo: Expected timeout after \"--timeout\".")); usage(); } } else if (!strncmp(argv[i], "--timeout=", 10) && argv[i][10]) { timeout = atoi(argv[i] + 10); } else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'h' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("Error: need hostname after \"-h\" option.")); usage(); } cupsSetServer(argv[i]); } break; case 'l' : /* Show long listing */ long_status = 1; break; case 'm' : /* Show models */ if (show_models(long_status, device_id, language, make_model, product, include_schemes, exclude_schemes)) return (1); break; case 'v' : /* Show available devices */ if (show_devices(long_status, timeout, include_schemes, exclude_schemes)) return (1); break; default : _cupsLangPrintf(stderr, _("%s: Unknown option \"%c\"."), argv[0], *opt); usage(); } } } else { _cupsLangPrintf(stderr, _("%s: Unknown argument \"%s\"."), argv[0], argv[i]); usage(); } } return (0); } /* * 'device_cb()' - Device callback. */ static void device_cb( const char *device_class, /* I - device-class string */ const char *device_id, /* I - device-id string */ const char *device_info, /* I - device-info string */ const char *device_make_and_model, /* I - device-make-and-model string */ const char *device_uri, /* I - device-uri string */ const char *device_location, /* I - device-location string */ void *user_data) /* I - User data */ { int *long_status; /* Show verbose info? */ /* * Display the device... */ long_status = (int *)user_data; if (*long_status) { _cupsLangPrintf(stdout, _("Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s"), device_uri, device_class, device_info, device_make_and_model, device_id, device_location); } else _cupsLangPrintf(stdout, "%s %s", device_class, device_uri); } /* * 'show_devices()' - Show available devices. */ static int /* O - 0 on success, 1 on failure */ show_devices( int long_status, /* I - Long status report? */ int timeout, /* I - Timeout */ const char *include_schemes, /* I - List of schemes to include */ const char *exclude_schemes) /* I - List of schemes to exclude */ { if (cupsGetDevices(CUPS_HTTP_DEFAULT, timeout, include_schemes, exclude_schemes, device_cb, &long_status) != IPP_OK) { _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString()); return (1); } return (0); } /* * 'show_models()' - Show available PPDs. */ static int /* O - 0 on success, 1 on failure */ show_models( int long_status, /* I - Long status report? */ const char *device_id, /* I - 1284 device ID */ const char *language, /* I - Language */ const char *make_model, /* I - Make and model */ const char *product, /* I - Product */ const char *include_schemes, /* I - List of schemes to include */ const char *exclude_schemes) /* I - List of schemes to exclude */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ const char *ppd_device_id, /* Pointer to ppd-device-id */ *ppd_language, /* Pointer to ppd-natural-language */ *ppd_make_model, /* Pointer to ppd-make-and-model */ *ppd_name; /* Pointer to ppd-name */ cups_option_t option; /* in/exclude-schemes option */ /* * Build a CUPS_GET_PPDS request... */ request = ippNewRequest(CUPS_GET_PPDS); if (device_id) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "ppd-device-id", NULL, device_id); if (language) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "ppd-language", NULL, language); if (make_model) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "ppd-make-and-model", NULL, make_model); if (product) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "ppd-product", NULL, product); if (include_schemes) { option.name = "include-schemes"; option.value = (char *)include_schemes; cupsEncodeOptions2(request, 1, &option, IPP_TAG_OPERATION); } if (exclude_schemes) { option.name = "exclude-schemes"; option.value = (char *)exclude_schemes; cupsEncodeOptions2(request, 1, &option, IPP_TAG_OPERATION); } /* * Do the request and get back a response... */ if ((response = cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/")) != NULL) { /* * Loop through the device list and display them... */ if (response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString()); ippDelete(response); return (1); } for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a PPD... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this PPD... */ ppd_device_id = "NONE"; ppd_language = NULL; ppd_make_model = NULL; ppd_name = NULL; while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "ppd-device-id") && attr->value_tag == IPP_TAG_TEXT) ppd_device_id = attr->values[0].string.text; else if (!strcmp(attr->name, "ppd-natural-language") && attr->value_tag == IPP_TAG_LANGUAGE) ppd_language = attr->values[0].string.text; else if (!strcmp(attr->name, "ppd-make-and-model") && attr->value_tag == IPP_TAG_TEXT) ppd_make_model = attr->values[0].string.text; else if (!strcmp(attr->name, "ppd-name") && attr->value_tag == IPP_TAG_NAME) ppd_name = attr->values[0].string.text; attr = attr->next; } /* * See if we have everything needed... */ if (ppd_language == NULL || ppd_make_model == NULL || ppd_name == NULL) { if (attr == NULL) break; else continue; } /* * Display the device... */ if (long_status) { _cupsLangPrintf(stdout, _("Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s"), ppd_name, ppd_language, ppd_make_model, ppd_device_id); } else _cupsLangPrintf(stdout, "%s %s", ppd_name, ppd_make_model); if (attr == NULL) break; } ippDelete(response); /* * Show the "everywhere" model, which is handled by the lpadmin command... */ if ((!include_schemes || strstr(include_schemes, "everywhere")) && (!exclude_schemes || !strstr(exclude_schemes, "everywhere"))) { if (long_status) { _cupsLangPrintf(stdout, _("Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s"), "everywhere", cupsLangDefault()->language, "IPP Everywhere™", "CMD:PwgRaster"); } else _cupsLangPuts(stdout, "everywhere IPP Everywhere"); } } else { _cupsLangPrintf(stderr, "lpinfo: %s", cupsLastErrorString()); return (1); } return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpinfo [options] -m\n" " lpinfo [options] -v")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-l Show verbose (long) output")); _cupsLangPuts(stdout, _("-m Show models")); _cupsLangPuts(stdout, _("-v Show devices")); _cupsLangPuts(stdout, _("--device-id device-id Show models matching the given IEEE 1284 device ID")); _cupsLangPuts(stdout, _("--exclude-schemes scheme-list\n" " Exclude the specified URI schemes")); _cupsLangPuts(stdout, _("--include-schemes scheme-list\n" " Include only the specified URI schemes")); _cupsLangPuts(stdout, _("--language locale Show models matching the given locale")); _cupsLangPuts(stdout, _("--make-and-model name Show models matching the given make and model name")); _cupsLangPuts(stdout, _("--product name Show models matching the given PostScript product")); _cupsLangPuts(stdout, _("--timeout seconds Specify the maximum number of seconds to discover devices")); exit(1); } cups-2.4.7/systemv/lpadmin.c0000644000175000017500000012302614502571342015667 0ustar zdohnalzdohnal/* * "lpadmin" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static int add_printer_to_class(http_t *http, char *printer, char *pclass); static int default_printer(http_t *http, char *printer); static int delete_printer(http_t *http, char *printer); static int delete_printer_from_class(http_t *http, char *printer, char *pclass); static int delete_printer_option(http_t *http, char *printer, char *option); static int enable_printer(http_t *http, char *printer); static cups_ptype_t get_printer_type(http_t *http, char *printer, char *uri, size_t urisize); static int set_printer_options(http_t *http, char *printer, int num_options, cups_option_t *options, char *file, int enable); static void usage(void) _CUPS_NORETURN; static int validate_name(const char *name); /* * 'main()' - Parse options and configure the scheduler. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ http_t *http; /* Connection to server */ char *printer, /* Destination printer */ *pclass, /* Printer class name */ *opt, /* Option pointer */ *val; /* Pointer to allow/deny value */ int enable = 0; /* Enable/resume printer? */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ char *file, /* New PPD file */ evefile[1024] = ""; /* IPP Everywhere PPD */ const char *ppd_name, /* ppd-name value */ *device_uri; /* device-uri value */ _cupsSetLocale(argv); http = NULL; printer = NULL; num_options = 0; options = NULL; file = NULL; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'c' : /* Add printer to class */ if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (printer == NULL) { _cupsLangPuts(stderr, _("lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first.")); return (1); } if (opt[1] != '\0') { pclass = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected class name after \"-c\" option.")); usage(); } pclass = argv[i]; } if (!validate_name(pclass)) { _cupsLangPuts(stderr, _("lpadmin: Class name can only contain printable " "characters.")); return (1); } if (add_printer_to_class(http, printer, pclass)) return (1); break; case 'd' : /* Set as default destination */ if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected printer name after \"-d\" option.")); usage(); } printer = argv[i]; } if (!validate_name(printer)) { _cupsLangPuts(stderr, _("lpadmin: Printer name can only contain printable characters.")); return (1); } if (default_printer(http, printer)) return (1); i = argc; break; case 'h' : /* Connect to host */ if (http) { httpClose(http); http = NULL; } if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected hostname after \"-h\" option.")); usage(); } cupsSetServer(argv[i]); } break; case 'P' : /* Use the specified PPD file */ case 'i' : /* Use the specified PPD file */ if (opt[1] != '\0') { file = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("lpadmin: Expected PPD after \"-%c\" option."), argv[i - 1][1]); usage(); } file = argv[i]; } if (*opt == 'i') { /* * Check to see that the specified file is, in fact, a PPD... */ cups_file_t *fp = cupsFileOpen(file, "r"); char line[256]; if (!cupsFileGets(fp, line, sizeof(line)) || strncmp(line, "*PPD-Adobe", 10)) { _cupsLangPuts(stderr, _("lpadmin: System V interface scripts are no longer supported for security reasons.")); cupsFileClose(fp); return (1); } cupsFileClose(fp); } break; case 'E' : /* Enable the printer/enable encryption */ if (printer == NULL) { #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPTION_REQUIRED); if (http) httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; } if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } enable = 1; break; case 'm' : /* Use the specified standard script/PPD file */ if (opt[1] != '\0') { num_options = cupsAddOption("ppd-name", opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected model after \"-m\" option.")); usage(); } num_options = cupsAddOption("ppd-name", argv[i], num_options, &options); } break; case 'o' : /* Set option */ if (opt[1] != '\0') { num_options = cupsParseOptions(opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected name=value after \"-o\" option.")); usage(); } num_options = cupsParseOptions(argv[i], num_options, &options); } break; case 'p' : /* Add/modify a printer */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected printer after \"-p\" option.")); usage(); } printer = argv[i]; } if (!validate_name(printer)) { _cupsLangPuts(stderr, _("lpadmin: Printer name can only contain printable characters.")); return (1); } break; case 'r' : /* Remove printer from class */ if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (printer == NULL) { _cupsLangPuts(stderr, _("lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first.")); return (1); } if (opt[1] != '\0') { pclass = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected class after \"-r\" option.")); usage(); } pclass = argv[i]; } if (!validate_name(pclass)) { _cupsLangPuts(stderr, _("lpadmin: Class name can only contain printable characters.")); return (1); } if (delete_printer_from_class(http, printer, pclass)) return (1); break; case 'R' : /* Remove option */ if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (printer == NULL) { _cupsLangPuts(stderr, _("lpadmin: Unable to delete option:\n" " You must specify a printer name first.")); return (1); } if (opt[1] != '\0') { val = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected name after \"-R\" option.")); usage(); } val = argv[i]; } if (delete_printer_option(http, printer, val)) return (1); break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'u' : /* Allow/deny users */ if (opt[1] != '\0') { val = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected allow/deny:userlist after \"-u\" option.")); usage(); } val = argv[i]; } if (!_cups_strncasecmp(val, "allow:", 6)) num_options = cupsAddOption("requesting-user-name-allowed", val + 6, num_options, &options); else if (!_cups_strncasecmp(val, "deny:", 5)) num_options = cupsAddOption("requesting-user-name-denied", val + 5, num_options, &options); else { _cupsLangPrintf(stderr, _("lpadmin: Unknown allow/deny option \"%s\"."), val); return (1); } break; case 'v' : /* Set the device-uri attribute */ if (opt[1] != '\0') { num_options = cupsAddOption("device-uri", opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected device URI after \"-v\" option.")); usage(); } num_options = cupsAddOption("device-uri", argv[i], num_options, &options); } break; case 'x' : /* Delete a printer */ if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected printer or class after \"-x\" option.")); usage(); } printer = argv[i]; } if (!validate_name(printer)) { _cupsLangPuts(stderr, _("lpadmin: Printer name can only contain printable characters.")); return (1); } if (delete_printer(http, printer)) return (1); i = argc; break; case 'D' : /* Set the printer-info attribute */ if (opt[1] != '\0') { num_options = cupsAddOption("printer-info", opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected description after \"-D\" option.")); usage(); } num_options = cupsAddOption("printer-info", argv[i], num_options, &options); } break; case 'I' : /* Set the supported file types (ignored) */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected file type(s) after \"-I\" option.")); usage(); } _cupsLangPuts(stderr, _("lpadmin: Warning - content type list ignored.")); break; case 'L' : /* Set the printer-location attribute */ if (opt[1] != '\0') { num_options = cupsAddOption("printer-location", opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPuts(stderr, _("lpadmin: Expected location after \"-L\" option.")); usage(); } num_options = cupsAddOption("printer-location", argv[i], num_options, &options); } break; default : _cupsLangPrintf(stderr, _("lpadmin: Unknown option \"%c\"."), *opt); usage(); } } } else { _cupsLangPrintf(stderr, _("lpadmin: Unknown argument \"%s\"."), argv[i]); usage(); } } /* * Set options as needed... */ ppd_name = cupsGetOption("ppd-name", num_options, options); device_uri = cupsGetOption("device-uri", num_options, options); if (ppd_name && !strcmp(ppd_name, "raw")) { #ifdef __APPLE__ _cupsLangPuts(stderr, _("lpadmin: Raw queues are no longer supported on macOS.")); #else _cupsLangPuts(stderr, _("lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS.")); #endif /* __APPLE__ */ if (device_uri && (!strncmp(device_uri, "ipp://", 6) || !strncmp(device_uri, "ipps://", 7)) && strstr(device_uri, "/printers/")) _cupsLangPuts(stderr, _("lpadmin: Use the 'everywhere' model for shared printers.")); #ifdef __APPLE__ return (1); #endif /* __APPLE__ */ } else if ((ppd_name && strcmp(ppd_name, "everywhere") && strncmp(ppd_name, "driverless:", 11)) || file) { _cupsLangPuts(stderr, _("lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.")); } if (num_options || file) { if (printer == NULL) { _cupsLangPuts(stderr, _("lpadmin: Unable to set the printer options:\n" " You must specify a printer name first.")); return (1); } if (!http) { http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (http == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to connect to server: %s"), strerror(errno)); return (1); } } if (set_printer_options(http, printer, num_options, options, file, enable)) return (1); } else if (enable && enable_printer(http, printer)) return (1); if (evefile[0]) unlink(evefile); if (printer == NULL) usage(); if (http) httpClose(http); return (0); } /* * 'add_printer_to_class()' - Add a printer to a class. */ static int /* O - 0 on success, 1 on fail */ add_printer_to_class(http_t *http, /* I - Server connection */ char *printer, /* I - Printer to add */ char *pclass) /* I - Class to add to */ { int i; /* Looping var */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr, /* Current attribute */ *members; /* Members in class */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Build an IPP_OP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", pclass); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ response = cupsDoRequest(http, request, "/"); /* * Build a CUPS-Add-Modify-Class request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name * member-uris */ request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_CLASS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * See if the printer is already in the class... */ if (response != NULL && (members = ippFindAttribute(response, "member-names", IPP_TAG_NAME)) != NULL) for (i = 0; i < members->num_values; i ++) if (_cups_strcasecmp(printer, members->values[i].string.text) == 0) { _cupsLangPrintf(stderr, _("lpadmin: Printer %s is already a member of class " "%s."), printer, pclass); ippDelete(request); ippDelete(response); return (0); } /* * OK, the printer isn't part of the class, so add it... */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); if (response != NULL && (members = ippFindAttribute(response, "member-uris", IPP_TAG_URI)) != NULL) { /* * Add the printer to the existing list... */ attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", members->num_values + 1, NULL, NULL); for (i = 0; i < members->num_values; i ++) attr->values[i].string.text = _cupsStrAlloc(members->values[i].string.text); attr->values[i].string.text = _cupsStrAlloc(uri); } else ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", NULL, uri); /* * Then send the request... */ ippDelete(response); ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); } /* * 'default_printer()' - Set the default printing destination. */ static int /* O - 0 on success, 1 on fail */ default_printer(http_t *http, /* I - Server connection */ char *printer) /* I - Printer name */ { ipp_t *request; /* IPP Request */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Build a CUPS-Set-Default request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); request = ippNewRequest(IPP_OP_CUPS_SET_DEFAULT); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); } /* * 'delete_printer()' - Delete a printer from the system... */ static int /* O - 0 on success, 1 on fail */ delete_printer(http_t *http, /* I - Server connection */ char *printer) /* I - Printer to delete */ { ipp_t *request; /* IPP Request */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Build a CUPS-Delete-Printer request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_CUPS_DELETE_PRINTER); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); } /* * 'delete_printer_from_class()' - Delete a printer from a class. */ static int /* O - 0 on success, 1 on fail */ delete_printer_from_class( http_t *http, /* I - Server connection */ char *printer, /* I - Printer to remove */ char *pclass) /* I - Class to remove from */ { int i, j, k; /* Looping vars */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr, /* Current attribute */ *members; /* Members in class */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Build an IPP_OP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", pclass); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/classes/")) == NULL || response->request.status.status_code == IPP_STATUS_ERROR_NOT_FOUND) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); ippDelete(response); return (1); } /* * See if the printer is already in the class... */ if ((members = ippFindAttribute(response, "member-names", IPP_TAG_NAME)) == NULL) { _cupsLangPuts(stderr, _("lpadmin: No member names were seen.")); ippDelete(response); return (1); } for (i = 0; i < members->num_values; i ++) if (!_cups_strcasecmp(printer, members->values[i].string.text)) break; if (i >= members->num_values) { _cupsLangPrintf(stderr, _("lpadmin: Printer %s is not a member of class %s."), printer, pclass); ippDelete(response); return (1); } if (members->num_values == 1) { /* * Build a CUPS-Delete-Class request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_CUPS_DELETE_CLASS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); } else { /* * Build a IPP_OP_CUPS_ADD_MODIFY_CLASS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name * member-uris */ request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_CLASS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Delete the printer from the class... */ members = ippFindAttribute(response, "member-uris", IPP_TAG_URI); attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", members->num_values - 1, NULL, NULL); for (j = 0, k = 0; j < members->num_values; j ++) if (j != i) attr->values[k ++].string.text = _cupsStrAlloc(members->values[j].string.text); } /* * Then send the request... */ ippDelete(response); ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); } /* * 'delete_printer_option()' - Delete a printer option. */ static int /* O - 0 on success, 1 on fail */ delete_printer_option(http_t *http, /* I - Server connection */ char *printer, /* I - Printer */ char *option) /* I - Option to delete */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Build a IPP_OP_CUPS_ADD_MODIFY_PRINTER or IPP_OP_CUPS_ADD_MODIFY_CLASS request, which * requires the following attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name * option with deleteAttr tag */ if (get_printer_type(http, printer, uri, sizeof(uri)) & CUPS_PRINTER_CLASS) request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_CLASS); else request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddInteger(request, IPP_TAG_PRINTER, IPP_TAG_DELETEATTR, option, 0); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); } /* * 'enable_printer()' - Enable a printer... */ static int /* O - 0 on success, 1 on fail */ enable_printer(http_t *http, /* I - Server connection */ char *printer) /* I - Printer to enable */ { ipp_t *request; /* IPP Request */ char uri[HTTP_MAX_URI]; /* URI for printer/class */ /* * Send IPP_OP_ENABLE_PRINTER and IPP_OP_RESUME_PRINTER requests, which * require the following attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_ENABLE_PRINTER); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } request = ippNewRequest(IPP_OP_RESUME_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } return (0); } /* * 'get_printer_type()' - Determine the printer type and URI. */ static cups_ptype_t /* O - printer-type value */ get_printer_type(http_t *http, /* I - Server connection */ char *printer, /* I - Printer name */ char *uri, /* I - URI buffer */ size_t urisize) /* I - Size of URI buffer */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* printer-type attribute */ cups_ptype_t type; /* printer-type value */ /* * Build a GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requested-attributes * requesting-user-name */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, (int)urisize, "ipp", NULL, "localhost", ippPort(), "/printers/%s", printer); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "printer-type"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Do the request... */ response = cupsDoRequest(http, request, "/"); if ((attr = ippFindAttribute(response, "printer-type", IPP_TAG_ENUM)) != NULL) { type = (cups_ptype_t)attr->values[0].integer; if (type & CUPS_PRINTER_CLASS) httpAssembleURIf(HTTP_URI_CODING_ALL, uri, (int)urisize, "ipp", NULL, "localhost", ippPort(), "/classes/%s", printer); } else type = CUPS_PRINTER_LOCAL; ippDelete(response); return (type); } /* * 'set_printer_options()' - Set the printer options. */ static int /* O - 0 on success, 1 on fail */ set_printer_options( http_t *http, /* I - Server connection */ char *printer, /* I - Printer */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ char *file, /* I - PPD file */ int enable) /* I - Enable printer? */ { ipp_t *request; /* IPP Request */ const char *ppdfile; /* PPD filename */ int ppdchanged = 0; /* PPD changed? */ ppd_file_t *ppd; /* PPD file */ ppd_choice_t *choice; /* Marked choice */ char uri[HTTP_MAX_URI], /* URI for printer/class */ line[1024], /* Line from PPD file */ keyword[1024], /* Keyword from Default line */ *keyptr, /* Pointer into keyword... */ tempfile[1024]; /* Temporary filename */ cups_file_t *in, /* PPD file */ *out; /* Temporary file */ const char *ppdname, /* ppd-name value */ *protocol, /* Old protocol option */ *customval, /* Custom option value */ *boolval; /* Boolean value */ int wrote_ipp_supplies = 0, /* Wrote cupsIPPSupplies keyword? */ wrote_snmp_supplies = 0,/* Wrote cupsSNMPSupplies keyword? */ copied_options = 0; /* Copied options? */ /* * Build a CUPS-Add-Modify-Printer or CUPS-Add-Modify-Class request, * which requires the following attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name * other options */ if (get_printer_type(http, printer, uri, sizeof(uri)) & CUPS_PRINTER_CLASS) request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_CLASS); else request = ippNewRequest(IPP_OP_CUPS_ADD_MODIFY_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); /* * Add the options... */ if (file) ppdfile = file; else if ((ppdname = cupsGetOption("ppd-name", num_options, options)) != NULL && strcmp(ppdname, "everywhere") && strcmp(ppdname, "raw") && num_options > 1) { if ((ppdfile = cupsGetServerPPD(http, ppdname)) != NULL) { /* * Copy options array and remove ppd-name from it... */ cups_option_t *temp = NULL, *optr; int i, num_temp = 0; for (i = num_options, optr = options; i > 0; i --, optr ++) if (strcmp(optr->name, "ppd-name")) num_temp = cupsAddOption(optr->name, optr->value, num_temp, &temp); copied_options = 1; ppdchanged = 1; num_options = num_temp; options = temp; } } else if (request->request.op.operation_id == IPP_OP_CUPS_ADD_MODIFY_PRINTER) ppdfile = cupsGetPPD(printer); else ppdfile = NULL; cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); if (enable) { ippAddInteger(request, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", IPP_PSTATE_IDLE); ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1); } cupsEncodeOptions2(request, num_options, options, IPP_TAG_PRINTER); if ((protocol = cupsGetOption("protocol", num_options, options)) != NULL) { if (!_cups_strcasecmp(protocol, "bcp")) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "port-monitor", NULL, "bcp"); else if (!_cups_strcasecmp(protocol, "tbcp")) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "port-monitor", NULL, "tbcp"); } if (ppdfile) { /* * Set default options in the PPD file... */ if ((ppd = ppdOpenFile(ppdfile)) == NULL) { int linenum; /* Line number of error */ ppd_status_t status = ppdLastError(&linenum); /* Status code */ _cupsLangPrintf(stderr, _("lpadmin: Unable to open PPD \"%s\": %s on line %d."), ppdfile, ppdErrorString(status), linenum); goto error; } ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); if ((out = cupsTempFile2(tempfile, sizeof(tempfile))) == NULL) { _cupsLangPrintError(NULL, _("lpadmin: Unable to create temporary file")); goto error; } if ((in = cupsFileOpen(ppdfile, "r")) == NULL) { _cupsLangPrintf(stderr, _("lpadmin: Unable to open PPD \"%s\": %s"), ppdfile, strerror(errno)); cupsFileClose(out); unlink(tempfile); goto error; } while (cupsFileGets(in, line, sizeof(line))) { if (!strncmp(line, "*cupsIPPSupplies:", 17) && (boolval = cupsGetOption("cupsIPPSupplies", num_options, options)) != NULL) { ppdchanged = 1; wrote_ipp_supplies = 1; cupsFilePrintf(out, "*cupsIPPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || !_cups_strcasecmp(boolval, "on")) ? "True" : "False"); } else if (!strncmp(line, "*cupsSNMPSupplies:", 18) && (boolval = cupsGetOption("cupsSNMPSupplies", num_options, options)) != NULL) { ppdchanged = 1; wrote_snmp_supplies = 1; cupsFilePrintf(out, "*cupsSNMPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || !_cups_strcasecmp(boolval, "on")) ? "True" : "False"); } else if (strncmp(line, "*Default", 8)) cupsFilePrintf(out, "%s\n", line); else { /* * Get default option name... */ strlcpy(keyword, line + 8, sizeof(keyword)); for (keyptr = keyword; *keyptr; keyptr ++) if (*keyptr == ':' || isspace(*keyptr & 255)) break; *keyptr++ = '\0'; while (isspace(*keyptr & 255)) keyptr ++; if (!strcmp(keyword, "PageRegion") || !strcmp(keyword, "PageSize") || !strcmp(keyword, "PaperDimension") || !strcmp(keyword, "ImageableArea")) { if ((choice = ppdFindMarkedChoice(ppd, "PageSize")) == NULL) choice = ppdFindMarkedChoice(ppd, "PageRegion"); } else choice = ppdFindMarkedChoice(ppd, keyword); if (choice && strcmp(choice->choice, keyptr)) { if (strcmp(choice->choice, "Custom")) { cupsFilePrintf(out, "*Default%s: %s\n", keyword, choice->choice); ppdchanged = 1; } else if ((customval = cupsGetOption(keyword, num_options, options)) != NULL) { cupsFilePrintf(out, "*Default%s: %s\n", keyword, customval); ppdchanged = 1; } else cupsFilePrintf(out, "%s\n", line); } else cupsFilePrintf(out, "%s\n", line); } } if (!wrote_ipp_supplies && (boolval = cupsGetOption("cupsIPPSupplies", num_options, options)) != NULL) { ppdchanged = 1; cupsFilePrintf(out, "*cupsIPPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || !_cups_strcasecmp(boolval, "on")) ? "True" : "False"); } if (!wrote_snmp_supplies && (boolval = cupsGetOption("cupsSNMPSupplies", num_options, options)) != NULL) { ppdchanged = 1; cupsFilePrintf(out, "*cupsSNMPSupplies: %s\n", (!_cups_strcasecmp(boolval, "true") || !_cups_strcasecmp(boolval, "yes") || !_cups_strcasecmp(boolval, "on")) ? "True" : "False"); } cupsFileClose(in); cupsFileClose(out); ppdClose(ppd); /* * Do the request... */ ippDelete(cupsDoFileRequest(http, request, "/admin/", ppdchanged ? tempfile : file)); /* * Clean up temp files... (TODO: catch signals in case we CTRL-C during * lpadmin) */ if (ppdfile != file) unlink(ppdfile); unlink(tempfile); } else { /* * No PPD file - just set the options... */ ippDelete(cupsDoRequest(http, request, "/admin/")); } if (copied_options) cupsFreeOptions(num_options, options); /* * Check the response... */ if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { _cupsLangPrintf(stderr, _("%s: %s"), "lpadmin", cupsLastErrorString()); return (1); } else return (0); /* * Error handling... */ error: ippDelete(request); if (ppdfile != file) unlink(ppdfile); if (copied_options) cupsFreeOptions(num_options, options); return (1); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-c class Add the named destination to a class")); _cupsLangPuts(stdout, _("-d destination Set the named destination as the server default")); _cupsLangPuts(stdout, _("-D description Specify the textual description of the printer")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-E Enable and accept jobs on the printer (after -p)")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-i ppd-file Specify a PPD file for the printer")); _cupsLangPuts(stdout, _("-L location Specify the textual location of the printer")); _cupsLangPuts(stdout, _("-m model Specify a standard model/PPD file for the printer")); _cupsLangPuts(stdout, _("-m everywhere Specify the printer is compatible with IPP Everywhere")); _cupsLangPuts(stdout, _("-o name-default=value Specify the default value for the named option")); _cupsLangPuts(stdout, _("-o Name=Value Specify the default value for the named PPD option ")); _cupsLangPuts(stdout, _("-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP")); _cupsLangPuts(stdout, _("-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP")); _cupsLangPuts(stdout, _("-o job-k-limit=N Specify the kilobyte limit for per-user quotas")); _cupsLangPuts(stdout, _("-o job-page-limit=N Specify the page limit for per-user quotas")); _cupsLangPuts(stdout, _("-o job-quota-period=N Specify the per-user quota period in seconds")); _cupsLangPuts(stdout, _("-o printer-error-policy=name\n" " Specify the printer error policy")); _cupsLangPuts(stdout, _("-o printer-is-shared=true\n" " Share the printer")); _cupsLangPuts(stdout, _("-o printer-op-policy=name\n" " Specify the printer operation policy")); _cupsLangPuts(stdout, _("-p destination Specify/add the named destination")); _cupsLangPuts(stdout, _("-r class Remove the named destination from a class")); _cupsLangPuts(stdout, _("-R name-default Remove the default value for the named option")); _cupsLangPuts(stdout, _("-u allow:all Allow all users to print")); _cupsLangPuts(stdout, _("-u allow:list Allow the list of users or groups (@name) to print")); _cupsLangPuts(stdout, _("-u deny:list Prevent the list of users or groups (@name) to print")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); _cupsLangPuts(stdout, _("-v device-uri Specify the device URI for the printer")); _cupsLangPuts(stdout, _("-x destination Remove the named destination")); exit(1); } /* * 'validate_name()' - Make sure the printer name only contains valid chars. */ static int /* O - 0 if name is no good, 1 if name is good */ validate_name(const char *name) /* I - Name to check */ { const char *ptr; /* Pointer into name */ /* * Scan the whole name... */ for (ptr = name; *ptr; ptr ++) if (*ptr == '@') break; else if ((*ptr >= 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '\\' || *ptr == '?' || *ptr == '\'' || *ptr == '\"' || *ptr == '#') return (0); /* * All the characters are good; validate the length, too... */ return ((ptr - name) < 128); } cups-2.4.7/systemv/lp.c0000644000175000017500000005050714502571342014661 0ustar zdohnalzdohnal/* * "lp" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * Local functions. */ static int restart_job(const char *command, int job_id, const char *job_hold_until); static int set_job_attrs(const char *command, int job_id, int num_options, cups_option_t *options); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and send files for printing. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i, j; /* Looping vars */ int job_id; /* Job ID */ char *printer, /* Printer name */ *instance, /* Instance name */ *opt, /* Option pointer */ *val, /* Option value */ *title; /* Job title */ int priority; /* Job priority (1-100) */ int num_copies; /* Number of copies per file */ int num_files; /* Number of files to print */ const char *files[1000]; /* Files to print */ cups_dest_t *dest; /* Selected destination */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ int end_options; /* No more options? */ int silent; /* Silent or verbose output? */ char buffer[8192]; /* Copy buffer */ #ifdef __sun /* * Solaris does some rather strange things to re-queue remote print * jobs. On bootup, the "lp" command is run as "printd" to re-spool * any remote jobs in /var/spool/print. Since CUPS doesn't need this * nonsense, we just need to add the necessary check here to prevent * lp from causing boot problems... */ if ((val = strrchr(argv[0], '/')) != NULL) val ++; else val = argv[0]; if (!strcmp(val, "printd")) return (0); #endif /* __sun */ _cupsSetLocale(argv); silent = 0; printer = NULL; dest = NULL; num_options = 0; options = NULL; num_files = 0; title = NULL; job_id = 0; end_options = 0; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-' && argv[i][1] && !end_options) { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'c' : /* Copy to spool dir (always enabled) */ break; case 'd' : /* Destination printer or class */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected destination after \"-d\" option."), argv[0]); usage(); } printer = argv[i]; } if ((instance = strrchr(printer, '/')) != NULL) *instance++ = '\0'; if ((dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer, instance)) != NULL) { for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } else if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server " "name."), argv[0]); return (1); } else if (cupsLastError() == IPP_STATUS_ERROR_NOT_FOUND) { _cupsLangPrintf(stderr, _("%s: Error - The printer or class does not exist."), argv[0]); return (1); } break; case 'f' : /* Form */ if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected form after \"-f\" option."), argv[0]); usage(); } } _cupsLangPrintf(stderr, _("%s: Warning - form option ignored."), argv[0]); break; case 'h' : /* Destination host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), argv[0]); usage(); } cupsSetServer(argv[i]); } break; case 'i' : /* Change job */ if (opt[1] != '\0') { val = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Expected job ID after \"-i\" option."), argv[0]); usage(); } val = argv[i]; } if (num_files > 0) { _cupsLangPrintf(stderr, _("%s: Error - cannot print files and alter jobs simultaneously."), argv[0]); return (1); } if (strrchr(val, '-') != NULL) job_id = atoi(strrchr(val, '-') + 1); else job_id = atoi(val); if (job_id < 0) { _cupsLangPrintf(stderr, _("%s: Error - bad job ID."), argv[0]); break; } break; case 'm' : /* Send email when job is done */ #ifdef __sun case 'p' : /* Notify on completion */ #endif /* __sun */ case 'w' : /* Write to console or email */ { char email[1024]; /* EMail address */ snprintf(email, sizeof(email), "mailto:%s@%s", cupsUser(), httpGetHostname(NULL, buffer, sizeof(buffer))); num_options = cupsAddOption("notify-recipient-uri", email, num_options, &options); } silent = 1; break; case 'n' : /* Number of copies */ if (opt[1] != '\0') { num_copies = atoi(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected copies after \"-n\" option."), argv[0]); usage(); } num_copies = atoi(argv[i]); } if (num_copies < 1) { _cupsLangPrintf(stderr, _("%s: Error - copies must be 1 or more."), argv[0]); return (1); } num_options = cupsAddIntegerOption("copies", num_copies, num_options, &options); break; case 'o' : /* Option */ if (opt[1] != '\0') { num_options = cupsParseOptions(opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected option=value after \"-o\" option."), argv[0]); usage(); } num_options = cupsParseOptions(argv[i], num_options, &options); } break; #ifndef __sun case 'p' : /* Queue priority */ #endif /* !__sun */ case 'q' : /* Queue priority */ if (opt[1] != '\0') { priority = atoi(opt + 1); opt += strlen(opt) - 1; } else { if ((i + 1) >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected priority after \"-%c\" option."), argv[0], *opt); usage(); } i ++; priority = atoi(argv[i]); } /* * For 100% Solaris compatibility, need to add: * * priority = 99 * (39 - priority) / 39 + 1; * * However, to keep CUPS lp the same across all platforms * we will break compatibility this far... */ if (priority < 1 || priority > 100) { _cupsLangPrintf(stderr, _("%s: Error - priority must be between 1 and 100."), argv[0]); return (1); } num_options = cupsAddIntegerOption("job-priority", priority, num_options, &options); break; case 's' : /* Silent */ silent = 1; break; case 't' : /* Title */ if (opt[1] != '\0') { title = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected title after \"-t\" option."), argv[0]); usage(); } title = argv[i]; } break; case 'y' : /* mode-list */ if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected mode list after \"-y\" option."), argv[0]); usage(); } } _cupsLangPrintf(stderr, _("%s: Warning - mode option ignored."), argv[0]); break; case 'H' : /* Hold job */ if (opt[1] != '\0') { val = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hold name after \"-H\" option."), argv[0]); usage(); } val = argv[i]; } if (!strcmp(val, "hold")) num_options = cupsAddOption("job-hold-until", "indefinite", num_options, &options); else if (!strcmp(val, "resume") || !strcmp(val, "release")) num_options = cupsAddOption("job-hold-until", "no-hold", num_options, &options); else if (!strcmp(val, "immediate")) { num_options = cupsAddOption("job-hold-until", "no-hold", num_options, &options); num_options = cupsAddOption("job-priority", "100", num_options, &options); } else if (!strcmp(val, "restart")) { if (job_id < 1) { _cupsLangPrintf(stderr, _("%s: Need job ID (\"-i jobid\") before \"-H restart\"."), argv[0]); return (1); } if (restart_job(argv[0], job_id, cupsGetOption("job-hold-until", num_options, options))) return (1); } else num_options = cupsAddOption("job-hold-until", val, num_options, &options); break; case 'P' : /* Page list */ if (opt[1] != '\0') { val = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected page list after \"-P\" option."), argv[0]); usage(); } val = argv[i]; } num_options = cupsAddOption("page-ranges", val, num_options, &options); break; case 'S' : /* character set */ if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected character set after \"-S\" option."), argv[0]); usage(); } } _cupsLangPrintf(stderr, _("%s: Warning - character set option ignored."), argv[0]); break; case 'T' : /* Content-Type */ if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected content type after \"-T\" option."), argv[0]); usage(); } } _cupsLangPrintf(stderr, _("%s: Warning - content type option ignored."), argv[0]); break; case '-' : /* Stop processing options */ if (opt[1] != '\0') { _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%s\"."), argv[0], argv[i]); usage(); } end_options = 1; break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], *opt); usage(); } } } else if (!strcmp(argv[i], "-")) { if (num_files || job_id) { _cupsLangPrintf(stderr, _("%s: Error - cannot print from stdin if files or a " "job ID are provided."), argv[0]); return (1); } break; } else if (num_files < 1000 && job_id == 0) { /* * Print a file... */ if (access(argv[i], R_OK) != 0) { _cupsLangPrintf(stderr, _("%s: Error - unable to access \"%s\" - %s"), argv[0], argv[i], strerror(errno)); return (1); } files[num_files] = argv[i]; num_files ++; if (title == NULL) { if ((title = strrchr(argv[i], '/')) != NULL) title ++; else title = argv[i]; } } else { _cupsLangPrintf(stderr, _("%s: Error - too many files - \"%s\"."), argv[0], argv[i]); } } /* * See if we are altering an existing job... */ if (job_id) return (set_job_attrs(argv[0], job_id, num_options, options)); /* * See if we have any files to print; if not, print from stdin... */ if (printer == NULL) { if ((dest = cupsGetNamedDest(NULL, NULL, NULL)) != NULL) { printer = dest->name; for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } else if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server " "name."), argv[0]); return (1); } } if (printer == NULL) { if (!cupsGetNamedDest(NULL, NULL, NULL) && cupsLastError() == IPP_STATUS_ERROR_NOT_FOUND) _cupsLangPrintf(stderr, _("%s: Error - %s"), argv[0], cupsLastErrorString()); else _cupsLangPrintf(stderr, _("%s: Error - scheduler not responding."), argv[0]); return (1); } if (num_files > 0) job_id = cupsPrintFiles(printer, num_files, files, title, num_options, options); else if ((job_id = cupsCreateJob(CUPS_HTTP_DEFAULT, printer, title ? title : "(stdin)", num_options, options)) > 0) { http_status_t status; /* Write status */ const char *format; /* Document format */ ssize_t bytes; /* Bytes read */ if (cupsGetOption("raw", num_options, options)) format = CUPS_FORMAT_RAW; else if ((format = cupsGetOption("document-format", num_options, options)) == NULL) format = CUPS_FORMAT_AUTO; status = cupsStartDocument(CUPS_HTTP_DEFAULT, printer, job_id, NULL, format, 1); while (status == HTTP_CONTINUE && (bytes = read(0, buffer, sizeof(buffer))) > 0) status = cupsWriteRequestData(CUPS_HTTP_DEFAULT, buffer, (size_t)bytes); if (status != HTTP_CONTINUE) { _cupsLangPrintf(stderr, _("%s: Error - unable to queue from stdin - %s."), argv[0], httpStatus(status)); cupsFinishDocument(CUPS_HTTP_DEFAULT, printer); cupsCancelJob2(CUPS_HTTP_DEFAULT, printer, job_id, 0); return (1); } if (cupsFinishDocument(CUPS_HTTP_DEFAULT, printer) != IPP_OK) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); cupsCancelJob2(CUPS_HTTP_DEFAULT, printer, job_id, 0); return (1); } } if (job_id < 1) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); return (1); } else if (!silent) _cupsLangPrintf(stdout, _("request id is %s-%d (%d file(s))"), printer, job_id, num_files); return (0); } /* * 'restart_job()' - Restart a job. */ static int /* O - Exit status */ restart_job(const char *command, /* I - Command name */ int job_id, /* I - Job ID */ const char *job_hold_until) /* I - "job-hold-until" value, if any */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* URI for job */ request = ippNewRequest(IPP_RESTART_JOB); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (job_hold_until) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "job-hold-until", NULL, job_hold_until); ippDelete(cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/jobs")); if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server " "name."), command); return (1); } else if (cupsLastError() > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); return (1); } return (0); } /* * 'set_job_attrs()' - Set job attributes. */ static int /* O - Exit status */ set_job_attrs( const char *command, /* I - Command name */ int job_id, /* I - Job ID */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* URI for job */ if (num_options == 0) return (0); request = ippNewRequest(IPP_SET_JOB_ATTRIBUTES); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); cupsEncodeOptions(request, num_options, options); ippDelete(cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/jobs")); if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server " "name."), command); return (1); } else if (cupsLastError() > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); return (1); } return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-c Make a copy of the print file(s)")); _cupsLangPuts(stdout, _("-d destination Specify the destination")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-H HH:MM Hold the job until the specified UTC time")); _cupsLangPuts(stdout, _("-H hold Hold the job until released/resumed")); _cupsLangPuts(stdout, _("-H immediate Print the job as soon as possible")); _cupsLangPuts(stdout, _("-H restart Reprint the job")); _cupsLangPuts(stdout, _("-H resume Resume a held job")); _cupsLangPuts(stdout, _("-i id Specify an existing job ID to modify")); _cupsLangPuts(stdout, _("-m Send an email notification when the job completes")); _cupsLangPuts(stdout, _("-n num-copies Specify the number of copies to print")); _cupsLangPuts(stdout, _("-o option[=value] Specify a printer-specific option")); _cupsLangPuts(stdout, _("-o job-sheets=standard Print a banner page with the job")); _cupsLangPuts(stdout, _("-o media=size Specify the media size to use")); _cupsLangPuts(stdout, _("-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)")); _cupsLangPuts(stdout, _("-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation")); _cupsLangPuts(stdout, _("-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)")); _cupsLangPuts(stdout, _("-o sides=one-sided Specify 1-sided printing")); _cupsLangPuts(stdout, _("-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing")); _cupsLangPuts(stdout, _("-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing")); _cupsLangPuts(stdout, _("-P page-list Specify a list of pages to print")); _cupsLangPuts(stdout, _("-q priority Specify the priority from low (1) to high (100)")); _cupsLangPuts(stdout, _("-s Be silent")); _cupsLangPuts(stdout, _("-t title Specify the job title")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); exit(1); } cups-2.4.7/systemv/cupstestppd.c0000644000175000017500000030415114502571342016621 0ustar zdohnalzdohnal/* * PPD test program for CUPS. * * THIS PROGRAM IS DEPRECATED AND WILL BE REMOVED IN A FUTURE VERSION OF CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers... */ #include #include #include #include #include #ifdef _WIN32 # define X_OK 0 #endif /* _WIN32 */ /* * Error warning overrides... */ enum { WARN_NONE = 0, WARN_CONSTRAINTS = 1, WARN_DEFAULTS = 2, WARN_FILTERS = 4, WARN_PROFILES = 8, WARN_TRANSLATIONS = 16, WARN_DUPLEX = 32, WARN_SIZES = 64, WARN_FILENAME = 128, WARN_ALL = 255 }; /* * Error codes... */ enum { ERROR_NONE = 0, ERROR_USAGE, ERROR_FILE_OPEN, ERROR_PPD_FORMAT, ERROR_CONFORMANCE }; /* * Line endings... */ enum { EOL_NONE = 0, EOL_CR, EOL_LF, EOL_CRLF }; /* * File permissions... */ #define MODE_WRITE 0022 /* Group/other write */ #define MODE_MASK 0555 /* Owner/group/other read+exec/search */ #define MODE_DATAFILE 0444 /* Owner/group/other read */ #define MODE_DIRECTORY 0555 /* Owner/group/other read+search */ #define MODE_PROGRAM 0555 /* Owner/group/other read+exec */ /* * Local functions... */ static void check_basics(const char *filename); static int check_constraints(ppd_file_t *ppd, int errors, int verbose, int warn); static int check_case(ppd_file_t *ppd, int errors, int verbose); static int check_defaults(ppd_file_t *ppd, int errors, int verbose, int warn); static int check_duplex(ppd_file_t *ppd, int errors, int verbose, int warn); static int check_filters(ppd_file_t *ppd, const char *root, int errors, int verbose, int warn); static int check_profiles(ppd_file_t *ppd, const char *root, int errors, int verbose, int warn); static int check_sizes(ppd_file_t *ppd, int errors, int verbose, int warn); static int check_translations(ppd_file_t *ppd, int errors, int verbose, int warn); static void show_conflicts(ppd_file_t *ppd, const char *prefix); static int test_raster(ppd_file_t *ppd, int verbose); static void usage(void) _CUPS_NORETURN; static int valid_path(const char *keyword, const char *path, int errors, int verbose, int warn); static int valid_utf8(const char *s); /* * 'main()' - Main entry for test program. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, j, k, m, n; /* Looping vars */ size_t len; /* Length of option name */ char *opt; /* Option character */ const char *ptr; /* Pointer into string */ cups_file_t *fp; /* PPD file */ int files; /* Number of files */ int verbose; /* Want verbose output? */ int warn; /* Which errors to just warn about */ int ignore; /* Which errors to ignore */ int status; /* Exit status */ int errors; /* Number of conformance errors */ int ppdversion; /* PPD spec version in PPD file */ ppd_status_t error; /* Status of ppdOpen*() */ int line; /* Line number for error */ char *root; /* Root directory */ int xdpi, /* X resolution */ ydpi; /* Y resolution */ ppd_file_t *ppd; /* PPD file record */ ppd_attr_t *attr; /* PPD attribute */ ppd_size_t *size; /* Size record */ ppd_group_t *group; /* UI group */ ppd_option_t *option; /* Standard UI option */ ppd_group_t *group2; /* UI group */ ppd_option_t *option2; /* Standard UI option */ ppd_choice_t *choice; /* Standard UI option choice */ struct lconv *loc; /* Locale data */ static char *uis[] = { "BOOLEAN", "PICKONE", "PICKMANY" }; static char *sections[] = { "ANY", "DOCUMENT", "EXIT", "JCL", "PAGE", "PROLOG" }; _cupsSetLocale(argv); loc = localeconv(); /* * Display PPD files for each file listed on the command-line... */ ppdSetConformance(PPD_CONFORM_STRICT); verbose = 0; ppd = NULL; files = 0; status = ERROR_NONE; root = ""; warn = WARN_NONE; ignore = WARN_NONE; for (i = 1; i < argc; i ++) if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-' && argv[i][1]) { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'I' : /* Ignore errors */ i ++; if (i >= argc) usage(); if (!strcmp(argv[i], "none")) ignore = WARN_NONE; else if (!strcmp(argv[i], "filename")) ignore |= WARN_FILENAME; else if (!strcmp(argv[i], "filters")) ignore |= WARN_FILTERS; else if (!strcmp(argv[i], "profiles")) ignore |= WARN_PROFILES; else if (!strcmp(argv[i], "all")) ignore = WARN_FILTERS | WARN_PROFILES; else usage(); break; case 'R' : /* Alternate root directory */ i ++; if (i >= argc) usage(); root = argv[i]; break; case 'W' : /* Turn errors into warnings */ i ++; if (i >= argc) usage(); if (!strcmp(argv[i], "none")) warn = WARN_NONE; else if (!strcmp(argv[i], "constraints")) warn |= WARN_CONSTRAINTS; else if (!strcmp(argv[i], "defaults")) warn |= WARN_DEFAULTS; else if (!strcmp(argv[i], "duplex")) warn |= WARN_DUPLEX; else if (!strcmp(argv[i], "filters")) warn |= WARN_FILTERS; else if (!strcmp(argv[i], "profiles")) warn |= WARN_PROFILES; else if (!strcmp(argv[i], "sizes")) warn |= WARN_SIZES; else if (!strcmp(argv[i], "translations")) warn |= WARN_TRANSLATIONS; else if (!strcmp(argv[i], "all")) warn = WARN_ALL; else usage(); break; case 'q' : /* Quiet mode */ if (verbose > 0) { _cupsLangPuts(stderr, _("cupstestppd: The -q option is incompatible " "with the -v option.")); return (1); } verbose --; break; case 'r' : /* Relaxed mode */ ppdSetConformance(PPD_CONFORM_RELAXED); break; case 'v' : /* Verbose mode */ if (verbose < 0) { _cupsLangPuts(stderr, _("cupstestppd: The -v option is incompatible " "with the -q option.")); return (1); } verbose ++; break; default : usage(); } } else { /* * Open the PPD file... */ if (files && verbose >= 0) puts(""); files ++; if (argv[i][0] == '-') { /* * Read from stdin... */ ppd = _ppdOpen(cupsFileStdin(), _PPD_LOCALIZATION_ALL); if (verbose >= 0) printf("%s:", (ppd && ppd->pcfilename) ? ppd->pcfilename : "(stdin)"); } else { /* * Read from a file... */ if (verbose >= 0) printf("%s:", argv[i]); if ((fp = cupsFileOpen(argv[i], "r")) != NULL) { ppd = _ppdOpen(fp, _PPD_LOCALIZATION_ALL); cupsFileClose(fp); } else { status = ERROR_FILE_OPEN; if (verbose >= 0) { _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Unable to open PPD file - %s on " "line %d."), strerror(errno), 0); continue; } } } if (ppd == NULL) { error = ppdLastError(&line); if (error <= PPD_ALLOC_ERROR) { status = ERROR_FILE_OPEN; if (verbose >= 0) { _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Unable to open PPD file - %s on " "line %d."), strerror(errno), 0); } } else { status = ERROR_PPD_FORMAT; if (verbose >= 0) { _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Unable to open PPD file - " "%s on line %d."), ppdErrorString(error), line); switch (error) { case PPD_MISSING_PPDADOBE4 : _cupsLangPuts(stdout, _(" REF: Page 42, section " "5.2.")); break; case PPD_MISSING_VALUE : _cupsLangPuts(stdout, _(" REF: Page 20, section " "3.4.")); break; case PPD_BAD_OPEN_GROUP : case PPD_NESTED_OPEN_GROUP : _cupsLangPuts(stdout, _(" REF: Pages 45-46, section " "5.2.")); break; case PPD_BAD_OPEN_UI : case PPD_NESTED_OPEN_UI : _cupsLangPuts(stdout, _(" REF: Pages 42-45, section " "5.2.")); break; case PPD_BAD_ORDER_DEPENDENCY : _cupsLangPuts(stdout, _(" REF: Pages 48-49, section " "5.2.")); break; case PPD_BAD_UI_CONSTRAINTS : _cupsLangPuts(stdout, _(" REF: Pages 52-54, section " "5.2.")); break; case PPD_MISSING_ASTERISK : _cupsLangPuts(stdout, _(" REF: Page 15, section " "3.2.")); break; case PPD_LINE_TOO_LONG : _cupsLangPuts(stdout, _(" REF: Page 15, section " "3.1.")); break; case PPD_ILLEGAL_CHARACTER : _cupsLangPuts(stdout, _(" REF: Page 15, section " "3.1.")); break; case PPD_ILLEGAL_MAIN_KEYWORD : _cupsLangPuts(stdout, _(" REF: Pages 16-17, section " "3.2.")); break; case PPD_ILLEGAL_OPTION_KEYWORD : _cupsLangPuts(stdout, _(" REF: Page 19, section " "3.3.")); break; case PPD_ILLEGAL_TRANSLATION : _cupsLangPuts(stdout, _(" REF: Page 27, section " "3.5.")); break; default : break; } check_basics(argv[i]); } } continue; } /* * Show the header and then perform basic conformance tests (limited * only by what the CUPS PPD functions actually load...) */ errors = 0; ppdversion = 43; if (verbose > 0) _cupsLangPuts(stdout, _("\n DETAILED CONFORMANCE TEST RESULTS")); if ((attr = ppdFindAttr(ppd, "FormatVersion", NULL)) != NULL && attr->value) ppdversion = (int)(10 * _cupsStrScand(attr->value, NULL, loc) + 0.5); if ((attr = ppdFindAttr(ppd, "cupsFilter2", NULL)) != NULL) { do { if (strstr(attr->value, "application/vnd.cups-raster")) { if (!test_raster(ppd, verbose)) errors ++; break; } } while ((attr = ppdFindNextAttr(ppd, "cupsFilter2", NULL)) != NULL); } else { for (j = 0; j < ppd->num_filters; j ++) if (strstr(ppd->filters[j], "application/vnd.cups-raster")) { if (!test_raster(ppd, verbose)) errors ++; break; } } /* * Look for default keywords with no matching option... */ if (!(warn & WARN_DEFAULTS)) errors = check_defaults(ppd, errors, verbose, 0); if ((attr = ppdFindAttr(ppd, "DefaultImageableArea", NULL)) == NULL) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15.")); } errors ++; } else if (ppdPageSize(ppd, attr->value) == NULL && strcmp(attr->value, "Unknown")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15."), attr->value); } errors ++; } else { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS DefaultImageableArea")); } if ((attr = ppdFindAttr(ppd, "DefaultPaperDimension", NULL)) == NULL) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15.")); } errors ++; } else if (ppdPageSize(ppd, attr->value) == NULL && strcmp(attr->value, "Unknown")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15."), attr->value); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS DefaultPaperDimension")); for (j = 0, group = ppd->groups; j < ppd->num_groups; j ++, group ++) for (k = 0, option = group->options; k < group->num_options; k ++, option ++) { /* * Verify that we have a default choice... */ if (option->defchoice[0]) { if (ppdFindChoice(option, option->defchoice) == NULL && strcmp(option->defchoice, "Unknown")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5."), option->keyword, option->defchoice); } errors ++; } else if (verbose > 0) _cupsLangPrintf(stdout, _(" PASS Default%s"), option->keyword); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5."), option->keyword); } errors ++; } } if ((attr = ppdFindAttr(ppd, "FileVersion", NULL)) != NULL) { for (ptr = attr->value; *ptr; ptr ++) if (!isdigit(*ptr & 255) && *ptr != '.') break; if (*ptr) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3."), attr->value); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS FileVersion")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3.")); } errors ++; } if ((attr = ppdFindAttr(ppd, "FormatVersion", NULL)) != NULL) { ptr = attr->value; if (*ptr == '4' && ptr[1] == '.') { for (ptr += 2; *ptr; ptr ++) if (!isdigit(*ptr & 255)) break; } if (*ptr) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3."), attr->value); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS FormatVersion")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3.")); } errors ++; } if (ppd->lang_encoding != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS LanguageEncoding")); } else if (ppdversion > 40) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3.")); } errors ++; } if (ppd->lang_version != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS LanguageVersion")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3.")); } errors ++; } if (ppd->manufacturer != NULL) { if (!_cups_strncasecmp(ppd->manufacturer, "Hewlett-Packard", 15) || !_cups_strncasecmp(ppd->manufacturer, "Hewlett Packard", 15)) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad Manufacturer (should be " "\"%s\")\n" " REF: Page 211, table D.1."), "HP"); } errors ++; } else if (!_cups_strncasecmp(ppd->manufacturer, "OkiData", 7) || !_cups_strncasecmp(ppd->manufacturer, "Oki Data", 8)) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad Manufacturer (should be " "\"%s\")\n" " REF: Page 211, table D.1."), "Oki"); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS Manufacturer")); } else if (ppdversion >= 43) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3.")); } errors ++; } if (ppd->modelname != NULL) { for (ptr = ppd->modelname; *ptr; ptr ++) if (!isalnum(*ptr & 255) && !strchr(" ./-+", *ptr)) break; if (*ptr) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad ModelName - \"%c\" not " "allowed in string.\n" " REF: Pages 59-60, section 5.3."), *ptr); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS ModelName")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3.")); } errors ++; } if (ppd->nickname != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS NickName")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3.")); } errors ++; } if (ppdFindOption(ppd, "PageSize") != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS PageSize")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14.")); } errors ++; } if (ppdFindOption(ppd, "PageRegion") != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS PageRegion")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14.")); } errors ++; } if (ppd->pcfilename != NULL) { if (verbose > 0) _cupsLangPuts(stdout, _(" PASS PCFileName")); } else if (!(ignore & WARN_FILENAME)) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3.")); } errors ++; } if (ppd->product != NULL) { if (ppd->product[0] != '(' || ppd->product[strlen(ppd->product) - 1] != ')') { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3.")); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS Product")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3.")); } errors ++; } if ((attr = ppdFindAttr(ppd, "PSVersion", NULL)) != NULL && attr->value != NULL) { char junkstr[255]; /* Temp string */ int junkint; /* Temp integer */ if (sscanf(attr->value, "(%254[^)\n])%d", junkstr, &junkint) != 2) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** Bad PSVersion - not \"(string) " "int\".\n" " REF: Pages 62-64, section 5.3.")); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS PSVersion")); } else { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3.")); } errors ++; } if (ppd->shortnickname != NULL) { if (strlen(ppd->shortnickname) > 31) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** Bad ShortNickName - longer " "than 31 chars.\n" " REF: Pages 64-65, section 5.3.")); } errors ++; } else if (verbose > 0) _cupsLangPuts(stdout, _(" PASS ShortNickName")); } else if (ppdversion >= 43) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3.")); } errors ++; } if (ppd->patches != NULL && strchr(ppd->patches, '\"') && strstr(ppd->patches, "*End")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4.")); } errors ++; } /* * Check for page sizes without the corresponding ImageableArea or * PaperDimension values... */ if (ppd->num_sizes == 0) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPuts(stdout, _(" **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14.")); } errors ++; } else { for (j = 0, size = ppd->sizes; j < ppd->num_sizes; j ++, size ++) { /* * Don't check custom size... */ if (!strcmp(size->name, "Custom")) continue; /* * Check for ImageableArea... */ if (size->left == 0.0 && size->bottom == 0.0 && size->right == 0.0 && size->top == 0.0) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** REQUIRED ImageableArea for " "PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15."), size->name); } errors ++; } /* * Check for PaperDimension... */ if (size->width <= 0.0 && size->length <= 0.0) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** REQUIRED PaperDimension " "for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15."), size->name); } errors ++; } } } /* * Check for valid Resolution, JCLResolution, or SetResolution values... */ if ((option = ppdFindOption(ppd, "Resolution")) == NULL) if ((option = ppdFindOption(ppd, "JCLResolution")) == NULL) option = ppdFindOption(ppd, "SetResolution"); if (option != NULL) { for (j = option->num_choices, choice = option->choices; j > 0; j --, choice ++) { /* * Verify that all resolution options are of the form NNNdpi * or NNNxNNNdpi... */ xdpi = strtol(choice->choice, (char **)&ptr, 10); if (ptr > choice->choice && xdpi > 0) { if (*ptr == 'x') ydpi = strtol(ptr + 1, (char **)&ptr, 10); else ydpi = xdpi; } else ydpi = xdpi; if (xdpi <= 0 || xdpi > 99999 || ydpi <= 0 || ydpi > 99999 || strcmp(ptr, "dpi")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9"), option->keyword, choice->choice); } errors ++; } } } if ((attr = ppdFindAttr(ppd, "1284DeviceID", NULL)) && strcmp(attr->name, "1284DeviceID")) { if (verbose >= 0) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5"), attr->name); } errors ++; } errors = check_case(ppd, errors, verbose); if (!(warn & WARN_CONSTRAINTS)) errors = check_constraints(ppd, errors, verbose, 0); if (!(warn & WARN_FILTERS) && !(ignore & WARN_FILTERS)) errors = check_filters(ppd, root, errors, verbose, 0); if (!(warn & WARN_PROFILES) && !(ignore & WARN_PROFILES)) errors = check_profiles(ppd, root, errors, verbose, 0); if (!(warn & WARN_SIZES)) errors = check_sizes(ppd, errors, verbose, 0); if (!(warn & WARN_TRANSLATIONS)) errors = check_translations(ppd, errors, verbose, 0); if (!(warn & WARN_DUPLEX)) errors = check_duplex(ppd, errors, verbose, 0); if ((attr = ppdFindAttr(ppd, "cupsLanguages", NULL)) != NULL && attr->value) { /* * This file contains localizations, check for conformance of the * base translation... */ if ((attr = ppdFindAttr(ppd, "LanguageEncoding", NULL)) != NULL) { if (!attr->value || strcmp(attr->value, "ISOLatin1")) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Bad LanguageEncoding %s - " "must be ISOLatin1."), attr->value ? attr->value : "(null)"); errors ++; } if (!ppd->lang_version || strcmp(ppd->lang_version, "English")) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Bad LanguageVersion %s - " "must be English."), ppd->lang_version ? ppd->lang_version : "(null)"); errors ++; } /* * Loop through all options and choices... */ for (option = ppdFirstOption(ppd); option; option = ppdNextOption(ppd)) { /* * Check for special characters outside A0 to BF, F7, or F8 * that are used for languages other than English. */ for (ptr = option->text; *ptr; ptr ++) if ((*ptr & 0x80) && (*ptr & 0xe0) != 0xa0 && (*ptr & 0xff) != 0xf7 && (*ptr & 0xff) != 0xf8) break; if (*ptr) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Default translation " "string for option %s contains 8-bit " "characters."), option->keyword); errors ++; } for (j = 0; j < option->num_choices; j ++) { /* * Check for special characters outside A0 to BF, F7, or F8 * that are used for languages other than English. */ for (ptr = option->choices[j].text; *ptr; ptr ++) if ((*ptr & 0x80) && (*ptr & 0xe0) != 0xa0 && (*ptr & 0xff) != 0xf7 && (*ptr & 0xff) != 0xf8) break; if (*ptr) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Default translation " "string for option %s choice %s contains " "8-bit characters."), option->keyword, option->choices[j].choice); errors ++; } } } } } /* * Final pass/fail notification... */ if (errors) status = ERROR_CONFORMANCE; else if (!verbose) _cupsLangPuts(stdout, _(" PASS")); if (verbose >= 0) { check_basics(argv[i]); if (warn & WARN_DEFAULTS) errors = check_defaults(ppd, errors, verbose, 1); if (warn & WARN_CONSTRAINTS) errors = check_constraints(ppd, errors, verbose, 1); if ((warn & WARN_FILTERS) && !(ignore & WARN_FILTERS)) errors = check_filters(ppd, root, errors, verbose, 1); if ((warn & WARN_PROFILES) && !(ignore & WARN_PROFILES)) errors = check_profiles(ppd, root, errors, verbose, 1); if (warn & WARN_SIZES) errors = check_sizes(ppd, errors, verbose, 1); else errors = check_sizes(ppd, errors, verbose, 2); if (warn & WARN_TRANSLATIONS) errors = check_translations(ppd, errors, verbose, 1); if (warn & WARN_DUPLEX) errors = check_duplex(ppd, errors, verbose, 1); /* * Look for legacy duplex keywords... */ if ((option = ppdFindOption(ppd, "JCLDuplex")) == NULL) if ((option = ppdFindOption(ppd, "EFDuplex")) == NULL) option = ppdFindOption(ppd, "KD03Duplex"); if (option) _cupsLangPrintf(stdout, _(" WARN Duplex option keyword %s may not " "work as expected and should be named Duplex.\n" " REF: Page 122, section 5.17"), option->keyword); /* * Look for default keywords with no corresponding option... */ for (j = 0; j < ppd->num_attrs; j ++) { attr = ppd->attrs[j]; if (!strcmp(attr->name, "DefaultColorSpace") || !strcmp(attr->name, "DefaultColorSep") || !strcmp(attr->name, "DefaultFont") || !strcmp(attr->name, "DefaultHalftoneType") || !strcmp(attr->name, "DefaultImageableArea") || !strcmp(attr->name, "DefaultLeadingEdge") || !strcmp(attr->name, "DefaultOutputOrder") || !strcmp(attr->name, "DefaultPaperDimension") || !strcmp(attr->name, "DefaultResolution") || !strcmp(attr->name, "DefaultScreenProc") || !strcmp(attr->name, "DefaultTransfer")) continue; if (!strncmp(attr->name, "Default", 7) && !ppdFindOption(ppd, attr->name + 7)) _cupsLangPrintf(stdout, _(" WARN %s has no corresponding " "options."), attr->name); } if (ppdversion < 43) { _cupsLangPrintf(stdout, _(" WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2."), 0.1f * ppdversion); } if (!ppd->lang_encoding && ppdversion < 41) { _cupsLangPuts(stdout, _(" WARN LanguageEncoding required by PPD " "4.3 spec.\n" " REF: Pages 56-57, section 5.3.")); } if (!ppd->manufacturer && ppdversion < 43) { _cupsLangPuts(stdout, _(" WARN Manufacturer required by PPD " "4.3 spec.\n" " REF: Pages 58-59, section 5.3.")); } /* * Treat a PCFileName attribute longer than 12 characters as * a warning and not a hard error... */ if (!(ignore & WARN_FILENAME) && ppd->pcfilename) { if (strlen(ppd->pcfilename) > 12) { _cupsLangPuts(stdout, _(" WARN PCFileName longer than 8.3 in " "violation of PPD spec.\n" " REF: Pages 61-62, section " "5.3.")); } if (!_cups_strcasecmp(ppd->pcfilename, "unused.ppd")) _cupsLangPuts(stdout, _(" WARN PCFileName should contain a " "unique filename.\n" " REF: Pages 61-62, section " "5.3.")); } if (!ppd->shortnickname && ppdversion < 43) { _cupsLangPuts(stdout, _(" WARN ShortNickName required by PPD " "4.3 spec.\n" " REF: Pages 64-65, section 5.3.")); } /* * Check the Protocols line and flag PJL + BCP since TBCP is * usually used with PJL... */ if (ppd->protocols) { if (strstr(ppd->protocols, "PJL") && strstr(ppd->protocols, "BCP") && !strstr(ppd->protocols, "TBCP")) { _cupsLangPuts(stdout, _(" WARN Protocols contains both PJL " "and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7.")); } if (strstr(ppd->protocols, "PJL") && (!ppd->jcl_begin || !ppd->jcl_end || !ppd->jcl_ps)) { _cupsLangPuts(stdout, _(" WARN Protocols contains PJL but JCL " "attributes are not set.\n" " REF: Pages 78-79, section 5.7.")); } } /* * Check for options with a common prefix, e.g. Duplex and Duplexer, * which are errors according to the spec but won't cause problems * with CUPS specifically... */ for (j = 0, group = ppd->groups; j < ppd->num_groups; j ++, group ++) for (k = 0, option = group->options; k < group->num_options; k ++, option ++) { len = strlen(option->keyword); for (m = 0, group2 = ppd->groups; m < ppd->num_groups; m ++, group2 ++) for (n = 0, option2 = group2->options; n < group2->num_options; n ++, option2 ++) if (option != option2 && len < strlen(option2->keyword) && !strncmp(option->keyword, option2->keyword, len)) { _cupsLangPrintf(stdout, _(" WARN %s shares a common " "prefix with %s\n" " REF: Page 15, section " "3.2."), option->keyword, option2->keyword); } } } if (verbose > 0) { if (errors) _cupsLangPrintf(stdout, _(" %d ERRORS FOUND"), errors); else _cupsLangPuts(stdout, _(" NO ERRORS FOUND")); } /* * Then list the options, if "-v" was provided... */ if (verbose > 1) { _cupsLangPrintf(stdout, "\n" " language_level = %d\n" " color_device = %s\n" " variable_sizes = %s\n" " landscape = %d", ppd->language_level, ppd->color_device ? "TRUE" : "FALSE", ppd->variable_sizes ? "TRUE" : "FALSE", ppd->landscape); switch (ppd->colorspace) { case PPD_CS_CMYK : _cupsLangPuts(stdout, " colorspace = PPD_CS_CMYK"); break; case PPD_CS_CMY : _cupsLangPuts(stdout, " colorspace = PPD_CS_CMY"); break; case PPD_CS_GRAY : _cupsLangPuts(stdout, " colorspace = PPD_CS_GRAY"); break; case PPD_CS_RGB : _cupsLangPuts(stdout, " colorspace = PPD_CS_RGB"); break; default : _cupsLangPuts(stdout, " colorspace = "); break; } _cupsLangPrintf(stdout, " num_emulations = %d", ppd->num_emulations); for (j = 0; j < ppd->num_emulations; j ++) _cupsLangPrintf(stdout, " emulations[%d] = %s", j, ppd->emulations[j].name); _cupsLangPrintf(stdout, " lang_encoding = %s", ppd->lang_encoding); _cupsLangPrintf(stdout, " lang_version = %s", ppd->lang_version); _cupsLangPrintf(stdout, " modelname = %s", ppd->modelname); _cupsLangPrintf(stdout, " ttrasterizer = %s", ppd->ttrasterizer == NULL ? "None" : ppd->ttrasterizer); _cupsLangPrintf(stdout, " manufacturer = %s", ppd->manufacturer); _cupsLangPrintf(stdout, " product = %s", ppd->product); _cupsLangPrintf(stdout, " nickname = %s", ppd->nickname); _cupsLangPrintf(stdout, " shortnickname = %s", ppd->shortnickname); _cupsLangPrintf(stdout, " patches = %d bytes", ppd->patches == NULL ? 0 : (int)strlen(ppd->patches)); _cupsLangPrintf(stdout, " num_groups = %d", ppd->num_groups); for (j = 0, group = ppd->groups; j < ppd->num_groups; j ++, group ++) { _cupsLangPrintf(stdout, " group[%d] = %s", j, group->text); for (k = 0, option = group->options; k < group->num_options; k ++, option ++) { _cupsLangPrintf(stdout, " options[%d] = %s (%s) %s %s %.0f " "(%d choices)", k, option->keyword, option->text, uis[option->ui], sections[option->section], option->order, option->num_choices); if (!strcmp(option->keyword, "PageSize") || !strcmp(option->keyword, "PageRegion")) { for (m = option->num_choices, choice = option->choices; m > 0; m --, choice ++) { size = ppdPageSize(ppd, choice->choice); if (size == NULL) _cupsLangPrintf(stdout, " %s (%s) = ERROR%s", choice->choice, choice->text, !strcmp(option->defchoice, choice->choice) ? " *" : ""); else _cupsLangPrintf(stdout, " %s (%s) = %.2fx%.2fin " "(%.1f,%.1f,%.1f,%.1f)%s", choice->choice, choice->text, size->width / 72.0, size->length / 72.0, size->left / 72.0, size->bottom / 72.0, size->right / 72.0, size->top / 72.0, !strcmp(option->defchoice, choice->choice) ? " *" : ""); } } else { for (m = option->num_choices, choice = option->choices; m > 0; m --, choice ++) { _cupsLangPrintf(stdout, " %s (%s)%s", choice->choice, choice->text, !strcmp(option->defchoice, choice->choice) ? " *" : ""); } } } } _cupsLangPrintf(stdout, " num_consts = %d", ppd->num_consts); for (j = 0; j < ppd->num_consts; j ++) _cupsLangPrintf(stdout, " consts[%d] = *%s %s *%s %s", j, ppd->consts[j].option1, ppd->consts[j].choice1, ppd->consts[j].option2, ppd->consts[j].choice2); _cupsLangPrintf(stdout, " num_profiles = %d", ppd->num_profiles); for (j = 0; j < ppd->num_profiles; j ++) _cupsLangPrintf(stdout, " profiles[%d] = %s/%s %.3f %.3f " "[ %.3f %.3f %.3f %.3f %.3f %.3f %.3f %.3f %.3f ]", j, ppd->profiles[j].resolution, ppd->profiles[j].media_type, ppd->profiles[j].gamma, ppd->profiles[j].density, ppd->profiles[j].matrix[0][0], ppd->profiles[j].matrix[0][1], ppd->profiles[j].matrix[0][2], ppd->profiles[j].matrix[1][0], ppd->profiles[j].matrix[1][1], ppd->profiles[j].matrix[1][2], ppd->profiles[j].matrix[2][0], ppd->profiles[j].matrix[2][1], ppd->profiles[j].matrix[2][2]); _cupsLangPrintf(stdout, " num_fonts = %d", ppd->num_fonts); for (j = 0; j < ppd->num_fonts; j ++) _cupsLangPrintf(stdout, " fonts[%d] = %s", j, ppd->fonts[j]); _cupsLangPrintf(stdout, " num_attrs = %d", ppd->num_attrs); for (j = 0; j < ppd->num_attrs; j ++) _cupsLangPrintf(stdout, " attrs[%d] = %s %s%s%s: \"%s\"", j, ppd->attrs[j]->name, ppd->attrs[j]->spec, ppd->attrs[j]->text[0] ? "/" : "", ppd->attrs[j]->text, ppd->attrs[j]->value ? ppd->attrs[j]->value : "(null)"); } ppdClose(ppd); } if (!files) usage(); return (status); } /* * 'check_basics()' - Check for CR LF, mixed line endings, and blank lines. */ static void check_basics(const char *filename) /* I - PPD file to check */ { cups_file_t *fp; /* File pointer */ int ch; /* Current character */ int col, /* Current column */ whitespace; /* Only seen whitespace? */ int eol; /* Line endings */ int linenum; /* Line number */ int mixed; /* Mixed line endings? */ if ((fp = cupsFileOpen(filename, "r")) == NULL) return; linenum = 1; col = 0; eol = EOL_NONE; mixed = 0; whitespace = 1; while ((ch = cupsFileGetChar(fp)) != EOF) { if (ch == '\r' || ch == '\n') { if (ch == '\n') { if (eol == EOL_NONE) eol = EOL_LF; else if (eol != EOL_LF) mixed = 1; } else if (ch == '\r') { if (cupsFilePeekChar(fp) == '\n') { cupsFileGetChar(fp); if (eol == EOL_NONE) eol = EOL_CRLF; else if (eol != EOL_CRLF) mixed = 1; } else if (eol == EOL_NONE) eol = EOL_CR; else if (eol != EOL_CR) mixed = 1; } if (col > 0 && whitespace) _cupsLangPrintf(stdout, _(" WARN Line %d only contains whitespace."), linenum); linenum ++; col = 0; whitespace = 1; } else { if (ch != ' ' && ch != '\t') whitespace = 0; col ++; } } if (mixed) _cupsLangPuts(stdout, _(" WARN File contains a mix of CR, LF, and " "CR LF line endings.")); if (eol == EOL_CRLF) _cupsLangPuts(stdout, _(" WARN Non-Windows PPD files should use lines " "ending with only LF, not CR LF.")); cupsFileClose(fp); } /* * 'check_constraints()' - Check UIConstraints in the PPD file. */ static int /* O - Errors found */ check_constraints(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int i; /* Looping var */ const char *prefix; /* WARN/FAIL prefix */ ppd_const_t *c; /* Current UIConstraints data */ ppd_attr_t *constattr; /* Current cupsUIConstraints attribute */ const char *vptr; /* Pointer into constraint value */ char option[PPD_MAX_NAME], /* Option name/MainKeyword */ choice[PPD_MAX_NAME], /* Choice/OptionKeyword */ *ptr; /* Pointer into option or choice */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ ppd_option_t *o; /* PPD option */ prefix = warn ? " WARN " : "**FAIL**"; /* * See what kind of constraint data we have in the PPD... */ if ((constattr = ppdFindAttr(ppd, "cupsUIConstraints", NULL)) != NULL) { /* * Check new-style cupsUIConstraints data... */ for (; constattr; constattr = ppdFindNextAttr(ppd, "cupsUIConstraints", NULL)) { if (!constattr->value) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Empty cupsUIConstraints %s"), prefix, constattr->spec); if (!warn) errors ++; continue; } for (i = 0, vptr = strchr(constattr->value, '*'); vptr; i ++, vptr = strchr(vptr + 1, '*')); if (i == 0) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Bad cupsUIConstraints %s: \"%s\""), prefix, constattr->spec, constattr->value); if (!warn) errors ++; continue; } cupsArraySave(ppd->sorted_attrs); if (constattr->spec[0] && !ppdFindAttr(ppd, "cupsUIResolver", constattr->spec)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing cupsUIResolver %s"), prefix, constattr->spec); if (!warn) errors ++; } cupsArrayRestore(ppd->sorted_attrs); num_options = 0; options = NULL; for (vptr = strchr(constattr->value, '*'); vptr; vptr = strchr(vptr, '*')) { /* * Extract "*Option Choice" or just "*Option"... */ for (vptr ++, ptr = option; *vptr && !isspace(*vptr & 255); vptr ++) if (ptr < (option + sizeof(option) - 1)) *ptr++ = *vptr; *ptr = '\0'; while (isspace(*vptr & 255)) vptr ++; if (*vptr == '*') choice[0] = '\0'; else { for (ptr = choice; *vptr && !isspace(*vptr & 255); vptr ++) if (ptr < (choice + sizeof(choice) - 1)) *ptr++ = *vptr; *ptr = '\0'; } if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) { _cups_strcpy(option, option + 6); strlcpy(choice, "Custom", sizeof(choice)); } if ((o = ppdFindOption(ppd, option)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing option %s in " "cupsUIConstraints %s: \"%s\""), prefix, option, constattr->spec, constattr->value); if (!warn) errors ++; continue; } if (choice[0] && !ppdFindChoice(o, choice)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing choice *%s %s in " "cupsUIConstraints %s: \"%s\""), prefix, option, choice, constattr->spec, constattr->value); if (!warn) errors ++; continue; } if (choice[0]) num_options = cupsAddOption(option, choice, num_options, &options); else { for (i = 0; i < o->num_choices; i ++) if (_cups_strcasecmp(o->choices[i].choice, "None") && _cups_strcasecmp(o->choices[i].choice, "Off") && _cups_strcasecmp(o->choices[i].choice, "False")) { num_options = cupsAddOption(option, o->choices[i].choice, num_options, &options); break; } } } /* * Resolvers must list at least two options... */ if (num_options < 2) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s cupsUIResolver %s does not list at least " "two different options."), prefix, constattr->spec); if (!warn) errors ++; } /* * Test the resolver... */ if (!cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s cupsUIResolver %s causes a loop."), prefix, constattr->spec); if (!warn) errors ++; } cupsFreeOptions(num_options, options); } } else { /* * Check old-style [Non]UIConstraints data... */ for (i = ppd->num_consts, c = ppd->consts; i > 0; i --, c ++) { if (!_cups_strncasecmp(c->option1, "Custom", 6) && !_cups_strcasecmp(c->choice1, "True")) { strlcpy(option, c->option1 + 6, sizeof(option)); strlcpy(choice, "Custom", sizeof(choice)); } else { strlcpy(option, c->option1, sizeof(option)); strlcpy(choice, c->choice1, sizeof(choice)); } if ((o = ppdFindOption(ppd, option)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing option %s in " "UIConstraints \"*%s %s *%s %s\"."), prefix, c->option1, c->option1, c->choice1, c->option2, c->choice2); if (!warn) errors ++; } else if (choice[0] && !ppdFindChoice(o, choice)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing choice *%s %s in " "UIConstraints \"*%s %s *%s %s\"."), prefix, c->option1, c->choice1, c->option1, c->choice1, c->option2, c->choice2); if (!warn) errors ++; } if (!_cups_strncasecmp(c->option2, "Custom", 6) && !_cups_strcasecmp(c->choice2, "True")) { strlcpy(option, c->option2 + 6, sizeof(option)); strlcpy(choice, "Custom", sizeof(choice)); } else { strlcpy(option, c->option2, sizeof(option)); strlcpy(choice, c->choice2, sizeof(choice)); } if ((o = ppdFindOption(ppd, option)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing option %s in " "UIConstraints \"*%s %s *%s %s\"."), prefix, c->option2, c->option1, c->choice1, c->option2, c->choice2); if (!warn) errors ++; } else if (choice[0] && !ppdFindChoice(o, choice)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Missing choice *%s %s in " "UIConstraints \"*%s %s *%s %s\"."), prefix, c->option2, c->choice2, c->option1, c->choice1, c->option2, c->choice2); if (!warn) errors ++; } } } return (errors); } /* * 'check_case()' - Check that there are no duplicate groups, options, * or choices that differ only by case. */ static int /* O - Errors found */ check_case(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Errors found */ int verbose) /* I - Verbosity level */ { int i, j; /* Looping vars */ ppd_group_t *groupa, /* First group */ *groupb; /* Second group */ ppd_option_t *optiona, /* First option */ *optionb; /* Second option */ ppd_choice_t *choicea, /* First choice */ *choiceb; /* Second choice */ /* * Check that the groups do not have any duplicate names... */ for (i = ppd->num_groups, groupa = ppd->groups; i > 1; i --, groupa ++) for (j = i - 1, groupb = groupa + 1; j > 0; j --, groupb ++) if (!_cups_strcasecmp(groupa->name, groupb->name)) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Group names %s and %s differ only " "by case."), groupa->name, groupb->name); errors ++; } /* * Check that the options do not have any duplicate names... */ for (optiona = ppdFirstOption(ppd); optiona; optiona = ppdNextOption(ppd)) { cupsArraySave(ppd->options); for (optionb = ppdNextOption(ppd); optionb; optionb = ppdNextOption(ppd)) if (!_cups_strcasecmp(optiona->keyword, optionb->keyword)) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Option names %s and %s differ only " "by case."), optiona->keyword, optionb->keyword); errors ++; } cupsArrayRestore(ppd->options); /* * Then the choices... */ for (i = optiona->num_choices, choicea = optiona->choices; i > 1; i --, choicea ++) for (j = i - 1, choiceb = choicea + 1; j > 0; j --, choiceb ++) if (!strcmp(choicea->choice, choiceb->choice)) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Multiple occurrences of " "option %s choice name %s."), optiona->keyword, choicea->choice); errors ++; choicea ++; i --; break; } else if (!_cups_strcasecmp(choicea->choice, choiceb->choice)) { if (!errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Option %s choice names %s and " "%s differ only by case."), optiona->keyword, choicea->choice, choiceb->choice); errors ++; } } /* * Return the number of errors found... */ return (errors); } /* * 'check_defaults()' - Check default option keywords in the PPD file. */ static int /* O - Errors found */ check_defaults(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int j, k; /* Looping vars */ ppd_attr_t *attr; /* PPD attribute */ ppd_option_t *option; /* Standard UI option */ const char *prefix; /* WARN/FAIL prefix */ prefix = warn ? " WARN " : "**FAIL**"; ppdMarkDefaults(ppd); if (ppdConflicts(ppd)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Default choices conflicting."), prefix); show_conflicts(ppd, prefix); if (!warn) errors ++; } for (j = 0; j < ppd->num_attrs; j ++) { attr = ppd->attrs[j]; if (!strcmp(attr->name, "DefaultColorSpace") || !strcmp(attr->name, "DefaultFont") || !strcmp(attr->name, "DefaultHalftoneType") || !strcmp(attr->name, "DefaultImageableArea") || !strcmp(attr->name, "DefaultLeadingEdge") || !strcmp(attr->name, "DefaultOutputOrder") || !strcmp(attr->name, "DefaultPaperDimension") || !strcmp(attr->name, "DefaultResolution") || !strcmp(attr->name, "DefaultTransfer")) continue; if (!strncmp(attr->name, "Default", 7)) { if ((option = ppdFindOption(ppd, attr->name + 7)) != NULL && strcmp(attr->value, "Unknown")) { /* * Check that the default option value matches a choice... */ for (k = 0; k < option->num_choices; k ++) if (!strcmp(option->choices[k].choice, attr->value)) break; if (k >= option->num_choices) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s %s %s does not exist."), prefix, attr->name, attr->value); if (!warn) errors ++; } } } } return (errors); } /* * 'check_duplex()' - Check duplex keywords in the PPD file. */ static int /* O - Errors found */ check_duplex(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Error found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int i; /* Looping var */ ppd_option_t *option; /* PPD option */ ppd_choice_t *choice; /* Current choice */ const char *prefix; /* Message prefix */ prefix = warn ? " WARN " : "**FAIL**"; /* * Check for a duplex option, and for standard values... */ if ((option = ppdFindOption(ppd, "Duplex")) != NULL) { if (!ppdFindChoice(option, "None")) { if (verbose >= 0) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s REQUIRED %s does not define " "choice None.\n" " REF: Page 122, section 5.17"), prefix, option->keyword); } if (!warn) errors ++; } for (i = option->num_choices, choice = option->choices; i > 0; i --, choice ++) if (strcmp(choice->choice, "None") && strcmp(choice->choice, "DuplexNoTumble") && strcmp(choice->choice, "DuplexTumble") && strcmp(choice->choice, "SimplexTumble")) { if (verbose >= 0) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); _cupsLangPrintf(stdout, _(" %s Bad %s choice %s.\n" " REF: Page 122, section 5.17"), prefix, option->keyword, choice->choice); } if (!warn) errors ++; } } return (errors); } /* * 'check_filters()' - Check filters in the PPD file. */ static int /* O - Errors found */ check_filters(ppd_file_t *ppd, /* I - PPD file */ const char *root, /* I - Root directory */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { ppd_attr_t *attr; /* PPD attribute */ const char *ptr; /* Pointer into string */ char super[16], /* Super-type for filter */ type[256], /* Type for filter */ dstsuper[16], /* Destination super-type for filter */ dsttype[256], /* Destination type for filter */ program[1024], /* Program/filter name */ pathprog[1024]; /* Complete path to program/filter */ int cost; /* Cost of filter */ const char *prefix; /* WARN/FAIL prefix */ struct stat fileinfo; /* File information */ prefix = warn ? " WARN " : "**FAIL**"; /* * cupsFilter */ for (attr = ppdFindAttr(ppd, "cupsFilter", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsFilter", NULL)) { if (strcmp(attr->name, "cupsFilter")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "cupsFilter"); if (!warn) errors ++; } if (!attr->value || sscanf(attr->value, "%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, &cost, program) != 4) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsFilter value \"%s\"."), prefix, attr->value); if (!warn) errors ++; continue; } if (!strncmp(program, "maxsize(", 8)) { char *mptr; /* Pointer into maxsize(nnnn) program */ strtoll(program + 8, &mptr, 10); if (*mptr != ')') { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsFilter value \"%s\"."), prefix, attr->value); if (!warn) errors ++; continue; } mptr ++; while (_cups_isspace(*mptr)) mptr ++; _cups_strcpy(program, mptr); } if (strcmp(program, "-")) { if (program[0] == '/') snprintf(pathprog, sizeof(pathprog), "%s%s", root, program); else { if ((ptr = getenv("CUPS_SERVERBIN")) == NULL) ptr = CUPS_SERVERBIN; if (*ptr == '/' || !*root) snprintf(pathprog, sizeof(pathprog), "%s%s/filter/%s", root, ptr, program); else snprintf(pathprog, sizeof(pathprog), "%s/%s/filter/%s", root, ptr, program); } if (stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "cupsFilter", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_PROGRAM) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "cupsFilter", pathprog); if (!warn) errors ++; } else errors = valid_path("cupsFilter", pathprog, errors, verbose, warn); } } /* * cupsFilter2 */ for (attr = ppdFindAttr(ppd, "cupsFilter2", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsFilter2", NULL)) { if (strcmp(attr->name, "cupsFilter2")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "cupsFilter2"); if (!warn) errors ++; } if (!attr->value || sscanf(attr->value, "%15[^/]/%255s%*[ \t]%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, dstsuper, dsttype, &cost, program) != 6) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsFilter2 value \"%s\"."), prefix, attr->value); if (!warn) errors ++; continue; } if (!strncmp(program, "maxsize(", 8)) { char *mptr; /* Pointer into maxsize(nnnn) program */ strtoll(program + 8, &mptr, 10); if (*mptr != ')') { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsFilter2 value \"%s\"."), prefix, attr->value); if (!warn) errors ++; continue; } mptr ++; while (_cups_isspace(*mptr)) mptr ++; _cups_strcpy(program, mptr); } if (strcmp(program, "-")) { if (strncmp(program, "maxsize(", 8) && (ptr = strchr(program + 8, ')')) != NULL) { ptr ++; while (_cups_isspace(*ptr)) ptr ++; _cups_strcpy(program, ptr); } if (program[0] == '/') snprintf(pathprog, sizeof(pathprog), "%s%s", root, program); else { if ((ptr = getenv("CUPS_SERVERBIN")) == NULL) ptr = CUPS_SERVERBIN; if (*ptr == '/' || !*root) snprintf(pathprog, sizeof(pathprog), "%s%s/filter/%s", root, ptr, program); else snprintf(pathprog, sizeof(pathprog), "%s/%s/filter/%s", root, ptr, program); } if (stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "cupsFilter2", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_PROGRAM) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "cupsFilter2", pathprog); if (!warn) errors ++; } else errors = valid_path("cupsFilter2", pathprog, errors, verbose, warn); } } /* * cupsPreFilter */ for (attr = ppdFindAttr(ppd, "cupsPreFilter", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsPreFilter", NULL)) { if (strcmp(attr->name, "cupsPreFilter")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "cupsPreFilter"); if (!warn) errors ++; } if (!attr->value || sscanf(attr->value, "%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, &cost, program) != 4) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsPreFilter value \"%s\"."), prefix, attr->value ? attr->value : ""); if (!warn) errors ++; } else if (strcmp(program, "-")) { if (program[0] == '/') snprintf(pathprog, sizeof(pathprog), "%s%s", root, program); else { if ((ptr = getenv("CUPS_SERVERBIN")) == NULL) ptr = CUPS_SERVERBIN; if (*ptr == '/' || !*root) snprintf(pathprog, sizeof(pathprog), "%s%s/filter/%s", root, ptr, program); else snprintf(pathprog, sizeof(pathprog), "%s/%s/filter/%s", root, ptr, program); } if (stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "cupsPreFilter", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_PROGRAM) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "cupsPreFilter", pathprog); if (!warn) errors ++; } else errors = valid_path("cupsPreFilter", pathprog, errors, verbose, warn); } } #ifdef __APPLE__ /* * APDialogExtension */ for (attr = ppdFindAttr(ppd, "APDialogExtension", NULL); attr != NULL; attr = ppdFindNextAttr(ppd, "APDialogExtension", NULL)) { if (strcmp(attr->name, "APDialogExtension")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "APDialogExtension"); if (!warn) errors ++; } snprintf(pathprog, sizeof(pathprog), "%s%s", root, attr->value ? attr->value : "(null)"); if (!attr->value || stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "APDialogExtension", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DIRECTORY) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "APDialogExtension", pathprog); if (!warn) errors ++; } else errors = valid_path("APDialogExtension", pathprog, errors, verbose, warn); } /* * APPrinterIconPath */ if ((attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL) { if (strcmp(attr->name, "APPrinterIconPath")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "APPrinterIconPath"); if (!warn) errors ++; } snprintf(pathprog, sizeof(pathprog), "%s%s", root, attr->value ? attr->value : "(null)"); if (!attr->value || stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "APPrinterIconPath", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DATAFILE) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "APPrinterIconPath", pathprog); if (!warn) errors ++; } else errors = valid_path("APPrinterIconPath", pathprog, errors, verbose, warn); } /* * APPrinterLowInkTool */ if ((attr = ppdFindAttr(ppd, "APPrinterLowInkTool", NULL)) != NULL) { if (strcmp(attr->name, "APPrinterLowInkTool")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "APPrinterLowInkTool"); if (!warn) errors ++; } snprintf(pathprog, sizeof(pathprog), "%s%s", root, attr->value ? attr->value : "(null)"); if (!attr->value || stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "APPrinterLowInkTool", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DIRECTORY) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "APPrinterLowInkTool", pathprog); if (!warn) errors ++; } else errors = valid_path("APPrinterLowInkTool", pathprog, errors, verbose, warn); } /* * APPrinterUtilityPath */ if ((attr = ppdFindAttr(ppd, "APPrinterUtilityPath", NULL)) != NULL) { if (strcmp(attr->name, "APPrinterUtilityPath")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "APPrinterUtilityPath"); if (!warn) errors ++; } snprintf(pathprog, sizeof(pathprog), "%s%s", root, attr->value ? attr->value : "(null)"); if (!attr->value || stat(pathprog, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "APPrinterUtilityPath", pathprog); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DIRECTORY) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "APPrinterUtilityPath", pathprog); if (!warn) errors ++; } else errors = valid_path("APPrinterUtilityPath", pathprog, errors, verbose, warn); } /* * APScanAppBundleID and APScanAppPath */ if ((attr = ppdFindAttr(ppd, "APScanAppPath", NULL)) != NULL) { if (strcmp(attr->name, "APScanAppPath")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad spelling of %s - should be %s."), prefix, attr->name, "APScanAppPath"); if (!warn) errors ++; } if (!attr->value || stat(attr->value, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "APScanAppPath", attr->value ? attr->value : ""); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DIRECTORY) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "APScanAppPath", attr->value); if (!warn) errors ++; } else errors = valid_path("APScanAppPath", attr->value, errors, verbose, warn); if (ppdFindAttr(ppd, "APScanAppBundleID", NULL)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Cannot provide both " "APScanAppPath and APScanAppBundleID."), prefix); if (!warn) errors ++; } } #endif /* __APPLE__ */ return (errors); } /* * 'check_profiles()' - Check ICC color profiles in the PPD file. */ static int /* O - Errors found */ check_profiles(ppd_file_t *ppd, /* I - PPD file */ const char *root, /* I - Root directory */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int i; /* Looping var */ ppd_attr_t *attr; /* PPD attribute */ const char *ptr; /* Pointer into string */ const char *prefix; /* WARN/FAIL prefix */ char filename[1024]; /* Profile filename */ struct stat fileinfo; /* File information */ int num_profiles = 0; /* Number of profiles */ unsigned hash, /* Current hash value */ hashes[1000]; /* Hash values of profile names */ const char *specs[1000]; /* Specifiers for profiles */ prefix = warn ? " WARN " : "**FAIL**"; for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) { /* * Check for valid selector... */ for (i = 0, ptr = strchr(attr->spec, '.'); ptr; ptr = strchr(ptr + 1, '.')) i ++; if (!attr->value || i < 2) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad cupsICCProfile %s."), prefix, attr->spec); if (!warn) errors ++; continue; } /* * Check for valid profile filename... */ if (attr->value[0] == '/') snprintf(filename, sizeof(filename), "%s%s", root, attr->value); else { if ((ptr = getenv("CUPS_DATADIR")) == NULL) ptr = CUPS_DATADIR; if (*ptr == '/' || !*root) snprintf(filename, sizeof(filename), "%s%s/profiles/%s", root, ptr, attr->value); else snprintf(filename, sizeof(filename), "%s/%s/profiles/%s", root, ptr, attr->value); } if (stat(filename, &fileinfo)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing %s file \"%s\"."), prefix, "cupsICCProfile", filename); if (!warn) errors ++; } else if (fileinfo.st_uid != 0 || (fileinfo.st_mode & MODE_WRITE) || (fileinfo.st_mode & MODE_MASK) != MODE_DATAFILE) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad permissions on %s file \"%s\"."), prefix, "cupsICCProfile", filename); if (!warn) errors ++; } else errors = valid_path("cupsICCProfile", filename, errors, verbose, warn); /* * Check for hash collisions... */ hash = _ppdHashName(attr->spec); if (num_profiles > 0) { for (i = 0; i < num_profiles; i ++) if (hashes[i] == hash) break; if (i < num_profiles) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s cupsICCProfile %s hash value " "collides with %s."), prefix, attr->spec, specs[i]); if (!warn) errors ++; } } /* * Remember up to 1000 profiles... */ if (num_profiles < 1000) { hashes[num_profiles] = hash; specs[num_profiles] = attr->spec; num_profiles ++; } } return (errors); } /* * 'check_sizes()' - Check media sizes in the PPD file. */ static int /* O - Errors found */ check_sizes(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int i; /* Looping var */ ppd_size_t *size; /* Current size */ int width, /* Custom width */ length; /* Custom length */ const char *prefix; /* WARN/FAIL prefix */ ppd_option_t *page_size, /* PageSize option */ *page_region; /* PageRegion option */ pwg_media_t *pwg_media; /* PWG media */ char buf[PPD_MAX_NAME]; /* PapeSize name that is supposed to be */ const char *ptr; /* Pointer into string */ int width_2540ths, /* PageSize width in 2540ths */ length_2540ths; /* PageSize length in 2540ths */ int is_ok; /* Flag for PageSize name verification */ double width_tmp, /* Width after rounded up */ length_tmp, /* Length after rounded up */ width_inch, /* Width in inches */ length_inch, /* Length in inches */ width_mm, /* Width in millimeters */ length_mm; /* Length in millimeters */ prefix = warn ? " WARN " : "**FAIL**"; if ((page_size = ppdFindOption(ppd, "PageSize")) == NULL && warn != 2) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14."), prefix); if (!warn) errors ++; } if ((page_region = ppdFindOption(ppd, "PageRegion")) == NULL && warn != 2) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14."), prefix); if (!warn) errors ++; } for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) { /* * Check that the size name is standard... */ if (!strcmp(size->name, "Custom")) { /* * Skip custom page size... */ continue; } if (warn != 2 && size->name[0] == 'w' && sscanf(size->name, "w%dh%d", &width, &length) == 2) { /* * Validate device-specific size wNNNhNNN should have proper width and * length... */ if (fabs(width - size->width) >= 1.0 || fabs(length - size->length) >= 1.0) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Size \"%s\" has unexpected dimensions " "(%gx%g)."), prefix, size->name, size->width, size->length); if (!warn) errors ++; } } /* * Verify that the size is defined for both PageSize and PageRegion... */ if (warn != 2 && !ppdFindChoice(page_size, size->name)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Size \"%s\" defined for %s but not for " "%s."), prefix, size->name, "PageRegion", "PageSize"); if (!warn) errors ++; } else if (warn != 2 && !ppdFindChoice(page_region, size->name)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Size \"%s\" defined for %s but not for " "%s."), prefix, size->name, "PageSize", "PageRegion"); if (!warn) errors ++; } /* * Verify that the size name is Adobe standard name if it's a standard size * and the dimensional name if it's not a standard size. Suffix should be * .Fullbleed, etc., or numeric, e.g., Letter, Letter.Fullbleed, * Letter.Transverse, Letter1, Letter2, 4x8, 55x91mm, 55x91mm.Fullbleed, etc. */ if (warn != 0) { is_ok = 1; width_2540ths = (size->length > size->width) ? PWG_FROM_POINTS(size->width) : PWG_FROM_POINTS(size->length); length_2540ths = (size->length > size->width) ? PWG_FROM_POINTS(size->length) : PWG_FROM_POINTS(size->width); pwg_media = pwgMediaForSize(width_2540ths, length_2540ths); if (pwg_media && (abs(pwg_media->width - width_2540ths) > 34 || abs(pwg_media->length - length_2540ths) > 34)) pwg_media = NULL; /* Only flag matches within a point */ if (pwg_media && pwg_media->ppd && (pwg_media->ppd[0] < 'a' || pwg_media->ppd[0] > 'z')) { size_t ppdlen = strlen(pwg_media->ppd); /* Length of standard PPD name */ strlcpy(buf, pwg_media->ppd, sizeof(buf)); if (strcmp(size->name, buf) && size->width > size->length) { if (!strcmp(pwg_media->ppd, "DoublePostcardRotated")) strlcpy(buf, "DoublePostcard", sizeof(buf)); else if (strstr(size->name, ".Transverse")) snprintf(buf, sizeof(buf), "%s.Transverse", pwg_media->ppd); else snprintf(buf, sizeof(buf), "%sRotated", pwg_media->ppd); ppdlen = strlen(buf); } if (size->left == 0 && size->bottom == 0 && size->right == size->width && size->top == size->length) { strlcat(buf, ".Fullbleed", sizeof(buf) - strlen(buf)); if (_cups_strcasecmp(size->name, buf)) { /* * Allow an additional qualifier such as ".WithTab"... */ size_t buflen = strlen(buf);/* Length of full bleed name */ if (_cups_strncasecmp(size->name, buf, buflen) || size->name[buflen] != '.') is_ok = 0; } } else if (!strncmp(size->name, pwg_media->ppd, ppdlen)) { /* * Check for a proper qualifier (number, "Small", or .something)... */ ptr = size->name + ppdlen; if (isdigit(*ptr & 255)) { for (ptr ++; *ptr; ptr ++) { if (!isdigit(*ptr & 255)) { is_ok = 0; break; } } } else if (*ptr != '.' && *ptr && strcmp(ptr, "Small")) is_ok = 0; } else { /* * Check for EnvSizeName as well... */ if (strncmp(pwg_media->ppd, "Env", 3) && !strncmp(size->name, "Env", 3)) snprintf(buf, sizeof(buf), "Env%s", pwg_media->ppd); if (strcmp(size->name, buf)) is_ok = 0; } if (!is_ok) _cupsLangPrintf(stdout, _(" %s Size \"%s\" should be the Adobe " "standard name \"%s\"."), prefix, size->name, buf); } else { width_tmp = (fabs(size->width - ceil(size->width)) < 0.1) ? ceil(size->width) : size->width; length_tmp = (fabs(size->length - ceil(size->length)) < 0.1) ? ceil(size->length) : size->length; if (fmod(width_tmp, 9.0) == 0.0 && fmod(length_tmp, 9.0) == 0.0) { width_inch = width_tmp / 72.0; length_inch = length_tmp / 72.0; snprintf(buf, sizeof(buf), "%gx%g", width_inch, length_inch); } else { width_mm = size->width / 72.0 * 25.4; length_mm = size->length / 72.0 * 25.4; snprintf(buf, sizeof(buf), "%.0fx%.0fmm", width_mm, length_mm); } if (size->left == 0 && size->bottom == 0 && size->right == size->width && size->top == size->length) strlcat(buf, ".Fullbleed", sizeof(buf)); else if (size->width > size->length) strlcat(buf, ".Transverse", sizeof(buf)); if (_cups_strcasecmp(size->name, buf)) { size_t buflen = strlen(buf); /* Length of proposed name */ if (_cups_strncasecmp(size->name, buf, buflen) || (strcmp(size->name + buflen, "in") && size->name[buflen] != '.')) { char altbuf[PPD_MAX_NAME]; /* Alternate "wNNNhNNN" name */ size_t altlen; /* Length of alternate name */ snprintf(altbuf, sizeof(altbuf), "w%.0fh%.0f", size->width, size->length); altlen = strlen(altbuf); if (_cups_strncasecmp(size->name, altbuf, altlen) || (size->name[altlen] && size->name[altlen] != '.')) _cupsLangPrintf(stdout, _(" %s Size \"%s\" should be \"%s\"."), prefix, size->name, buf); } } } } } return (errors); } /* * 'check_translations()' - Check translations in the PPD file. */ static int /* O - Errors found */ check_translations(ppd_file_t *ppd, /* I - PPD file */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { int j; /* Looping var */ ppd_attr_t *attr; /* PPD attribute */ cups_array_t *languages; /* Array of languages */ int langlen; /* Length of language */ char *language, /* Current language */ keyword[PPD_MAX_NAME], /* Localization keyword (full) */ llkeyword[PPD_MAX_NAME],/* Localization keyword (base) */ ckeyword[PPD_MAX_NAME], /* Custom option keyword (full) */ cllkeyword[PPD_MAX_NAME]; /* Custom option keyword (base) */ ppd_option_t *option; /* Standard UI option */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ char ll[3]; /* Base language */ const char *prefix; /* WARN/FAIL prefix */ const char *text; /* Pointer into UI text */ prefix = warn ? " WARN " : "**FAIL**"; if ((languages = _ppdGetLanguages(ppd)) != NULL) { /* * This file contains localizations, check them... */ for (language = (char *)cupsArrayFirst(languages); language; language = (char *)cupsArrayNext(languages)) { langlen = (int)strlen(language); if (langlen != 2 && langlen != 5) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad language \"%s\"."), prefix, language); if (!warn) errors ++; continue; } if (!strcmp(language, "en")) continue; strlcpy(ll, language, sizeof(ll)); /* * Loop through all options and choices... */ for (option = ppdFirstOption(ppd); option; option = ppdNextOption(ppd)) { if (!strcmp(option->keyword, "PageRegion")) continue; snprintf(keyword, sizeof(keyword), "%s.Translation", language); snprintf(llkeyword, sizeof(llkeyword), "%s.Translation", ll); if ((attr = ppdFindAttr(ppd, keyword, option->keyword)) == NULL && (attr = ppdFindAttr(ppd, llkeyword, option->keyword)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing \"%s\" translation " "string for option %s."), prefix, language, option->keyword); if (!warn) errors ++; } else if (!valid_utf8(attr->text)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad UTF-8 \"%s\" translation " "string for option %s."), prefix, language, option->keyword); if (!warn) errors ++; } snprintf(keyword, sizeof(keyword), "%s.%s", language, option->keyword); snprintf(llkeyword, sizeof(llkeyword), "%s.%s", ll, option->keyword); for (j = 0; j < option->num_choices; j ++) { /* * First see if this choice is a number; if so, don't require * translation... */ for (text = option->choices[j].text; *text; text ++) if (!strchr("0123456789-+.", *text)) break; if (!*text) continue; /* * Check custom choices differently... */ if (!_cups_strcasecmp(option->choices[j].choice, "Custom") && (coption = ppdFindCustomOption(ppd, option->keyword)) != NULL) { snprintf(ckeyword, sizeof(ckeyword), "%s.Custom%s", language, option->keyword); if ((attr = ppdFindAttr(ppd, ckeyword, "True")) != NULL && !valid_utf8(attr->text)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad UTF-8 \"%s\" " "translation string for option %s, " "choice %s."), prefix, language, ckeyword + 1 + strlen(language), "True"); if (!warn) errors ++; } if (_cups_strcasecmp(option->keyword, "PageSize")) { for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { snprintf(ckeyword, sizeof(ckeyword), "%s.ParamCustom%s", language, option->keyword); snprintf(cllkeyword, sizeof(cllkeyword), "%s.ParamCustom%s", ll, option->keyword); if ((attr = ppdFindAttr(ppd, ckeyword, cparam->name)) == NULL && (attr = ppdFindAttr(ppd, cllkeyword, cparam->name)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing \"%s\" " "translation string for option %s, " "choice %s."), prefix, language, ckeyword + 1 + strlen(language), cparam->name); if (!warn) errors ++; } else if (!valid_utf8(attr->text)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad UTF-8 \"%s\" " "translation string for option %s, " "choice %s."), prefix, language, ckeyword + 1 + strlen(language), cparam->name); if (!warn) errors ++; } } } } else if ((attr = ppdFindAttr(ppd, keyword, option->choices[j].choice)) == NULL && (attr = ppdFindAttr(ppd, llkeyword, option->choices[j].choice)) == NULL) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Missing \"%s\" " "translation string for option %s, " "choice %s."), prefix, language, option->keyword, option->choices[j].choice); if (!warn) errors ++; } else if (!valid_utf8(attr->text)) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s Bad UTF-8 \"%s\" " "translation string for option %s, " "choice %s."), prefix, language, option->keyword, option->choices[j].choice); if (!warn) errors ++; } } } } /* * Verify that we have the base language for each localized one... */ for (language = (char *)cupsArrayFirst(languages); language; language = (char *)cupsArrayNext(languages)) if (language[2]) { /* * Lookup the base language... */ cupsArraySave(languages); strlcpy(ll, language, sizeof(ll)); if (!cupsArrayFind(languages, ll) && strcmp(ll, "zh") && strcmp(ll, "en")) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s No base translation \"%s\" " "is included in file."), prefix, ll); if (!warn) errors ++; } cupsArrayRestore(languages); } /* * Free memory used for the languages... */ _ppdFreeLanguages(languages); } return (errors); } /* * 'show_conflicts()' - Show option conflicts in a PPD file. */ static void show_conflicts(ppd_file_t *ppd, /* I - PPD to check */ const char *prefix) /* I - Prefix string */ { int i, j; /* Looping variables */ ppd_const_t *c; /* Current constraint */ ppd_option_t *o1, *o2; /* Options */ ppd_choice_t *c1, *c2; /* Choices */ /* * Loop through all of the UI constraints and report any options * that conflict... */ for (i = ppd->num_consts, c = ppd->consts; i > 0; i --, c ++) { /* * Grab pointers to the first option... */ o1 = ppdFindOption(ppd, c->option1); if (o1 == NULL) continue; else if (c->choice1[0] != '\0') { /* * This constraint maps to a specific choice. */ c1 = ppdFindChoice(o1, c->choice1); } else { /* * This constraint applies to any choice for this option. */ for (j = o1->num_choices, c1 = o1->choices; j > 0; j --, c1 ++) if (c1->marked) break; if (j == 0 || !_cups_strcasecmp(c1->choice, "None") || !_cups_strcasecmp(c1->choice, "Off") || !_cups_strcasecmp(c1->choice, "False")) c1 = NULL; } /* * Grab pointers to the second option... */ o2 = ppdFindOption(ppd, c->option2); if (o2 == NULL) continue; else if (c->choice2[0] != '\0') { /* * This constraint maps to a specific choice. */ c2 = ppdFindChoice(o2, c->choice2); } else { /* * This constraint applies to any choice for this option. */ for (j = o2->num_choices, c2 = o2->choices; j > 0; j --, c2 ++) if (c2->marked) break; if (j == 0 || !_cups_strcasecmp(c2->choice, "None") || !_cups_strcasecmp(c2->choice, "Off") || !_cups_strcasecmp(c2->choice, "False")) c2 = NULL; } /* * If both options are marked then there is a conflict... */ if (c1 != NULL && c1->marked && c2 != NULL && c2->marked) _cupsLangPrintf(stdout, _(" %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")."), prefix, o1->keyword, c1->choice, o2->keyword, c2->choice, c->option1, c->choice1, c->option2, c->choice2); } } /* * 'test_raster()' - Test PostScript commands for raster printers. */ static int /* O - 1 on success, 0 on failure */ test_raster(ppd_file_t *ppd, /* I - PPD file */ int verbose) /* I - Verbosity */ { cups_page_header2_t header; /* Page header */ ppdMarkDefaults(ppd); if (cupsRasterInterpretPPD(&header, ppd, 0, NULL, 0)) { if (!verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Default option code cannot be " "interpreted: %s"), cupsRasterErrorString()); return (0); } /* * Try a test of custom page size code, if available... */ if (!ppdPageSize(ppd, "Custom.612x792")) return (1); ppdMarkOption(ppd, "PageSize", "Custom.612x792"); if (cupsRasterInterpretPPD(&header, ppd, 0, NULL, 0)) { if (!verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" **FAIL** Default option code cannot be " "interpreted: %s"), cupsRasterErrorString()); return (0); } return (1); } /* * 'usage()' - Show program usage. */ static void usage(void) { _cupsLangPuts(stdout, _("Warning: This program will be removed in a future version of CUPS.")); _cupsLangPuts(stdout, _("Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-I {filename,filters,none,profiles}\n" " Ignore specific warnings")); _cupsLangPuts(stdout, _("-R root-directory Set alternate root")); _cupsLangPuts(stdout, _("-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n" " Issue warnings instead of errors")); _cupsLangPuts(stdout, _("-q Run silently")); _cupsLangPuts(stdout, _("-r Use 'relaxed' open mode")); _cupsLangPuts(stdout, _("-v Be verbose")); _cupsLangPuts(stdout, _("-vv Be very verbose")); exit(ERROR_USAGE); } /* * 'valid_path()' - Check whether a path has the correct capitalization. */ static int /* O - Errors found */ valid_path(const char *keyword, /* I - Keyword using path */ const char *path, /* I - Path to check */ int errors, /* I - Errors found */ int verbose, /* I - Verbosity level */ int warn) /* I - Warnings only? */ { cups_dir_t *dir; /* Current directory */ cups_dentry_t *dentry; /* Current directory entry */ char temp[1024], /* Temporary path */ *ptr; /* Pointer into temporary path */ const char *prefix; /* WARN/FAIL prefix */ prefix = warn ? " WARN " : "**FAIL**"; /* * Loop over the components of the path, checking that the entry exists with * the same capitalization... */ strlcpy(temp, path, sizeof(temp)); while ((ptr = strrchr(temp, '/')) != NULL) { /* * Chop off the trailing component so temp == dirname and ptr == basename. */ *ptr++ = '\0'; /* * Try opening the directory containing the base name... */ if (temp[0]) dir = cupsDirOpen(temp); else dir = cupsDirOpen("/"); if (!dir) dentry = NULL; else { while ((dentry = cupsDirRead(dir)) != NULL) { if (!strcmp(dentry->filename, ptr)) break; } cupsDirClose(dir); } /* * Display an error if the filename doesn't exist with the same * capitalization... */ if (!dentry) { if (!warn && !errors && !verbose) _cupsLangPuts(stdout, _(" FAIL")); if (verbose >= 0) _cupsLangPrintf(stdout, _(" %s %s file \"%s\" has the wrong " "capitalization."), prefix, keyword, path); if (!warn) errors ++; break; } } return (errors); } /* * 'valid_utf8()' - Check whether a string contains valid UTF-8 text. */ static int /* O - 1 if valid, 0 if not */ valid_utf8(const char *s) /* I - String to check */ { while (*s) { if (*s & 0x80) { /* * Check for valid UTF-8 sequence... */ if ((*s & 0xc0) == 0x80) return (0); /* Illegal suffix byte */ else if ((*s & 0xe0) == 0xc0) { /* * 2-byte sequence... */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ } else if ((*s & 0xf0) == 0xe0) { /* * 3-byte sequence... */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ } else if ((*s & 0xf8) == 0xf0) { /* * 4-byte sequence... */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ s ++; if ((*s & 0xc0) != 0x80) return (0); /* Missing suffix byte */ } else return (0); /* Bad sequence */ } s ++; } return (1); } cups-2.4.7/systemv/cupsctl.c0000644000175000017500000001476214502571342015726 0ustar zdohnalzdohnal/* * Scheduler control program for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static void usage(const char *opt) _CUPS_NORETURN; /* * 'main()' - Get/set server settings. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, j, /* Looping vars */ num_settings; /* Number of settings */ cups_option_t *settings, /* Settings */ *setting; /* Current setting */ const char *opt; /* Current option character */ http_t *http; /* Connection to server */ static const char * const disallowed[] = { /* List of disallowed directives for cupsd.conf */ "AccessLog", "CacheDir", "ConfigFilePerm", "DataDir", "DocumentRoot", "ErrorLog", "FatalErrors", "FileDevice", "Group", "Listen", "LogFilePerm", "PageLog", "PassEnv", "Port", "Printcap", "PrintcapFormat", "RemoteRoot", "RequestRoot", "ServerBin", "ServerCertificate", "ServerKey", "ServerKeychain", "ServerRoot", "SetEnv", "StateDir", "SystemGroup", "SystemGroupAuthKey", "TempDir", "User" }; /* * Process the command-line... */ _cupsSetLocale(argv); num_settings = 0; settings = NULL; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(NULL); else if (argv[i][0] == '-') { if (argv[i][1] == '-') { if (!strcmp(argv[i], "--debug-logging")) num_settings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, "1", num_settings, &settings); else if (!strcmp(argv[i], "--no-debug-logging")) num_settings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, "0", num_settings, &settings); else if (!strcmp(argv[i], "--remote-admin")) num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, "1", num_settings, &settings); else if (!strcmp(argv[i], "--no-remote-admin")) num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, "0", num_settings, &settings); else if (!strcmp(argv[i], "--remote-any")) num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, "1", num_settings, &settings); else if (!strcmp(argv[i], "--no-remote-any")) num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, "0", num_settings, &settings); else if (!strcmp(argv[i], "--share-printers")) num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, "1", num_settings, &settings); else if (!strcmp(argv[i], "--no-share-printers")) num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, "0", num_settings, &settings); else if (!strcmp(argv[i], "--user-cancel-any")) num_settings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, "1", num_settings, &settings); else if (!strcmp(argv[i], "--no-user-cancel-any")) num_settings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, "0", num_settings, &settings); else usage(argv[i]); } else { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'E' : cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); break; case 'U' : i ++; if (i >= argc) usage(NULL); cupsSetUser(argv[i]); break; case 'h' : i ++; if (i >= argc) usage(NULL); cupsSetServer(argv[i]); break; default : usage(opt); } } } else if (strchr(argv[i], '=')) num_settings = cupsParseOptions(argv[i], num_settings, &settings); else usage(argv[i]); } for (i = num_settings, setting = settings; i > 0; i --, setting ++) { for (j = 0; j < (int)(sizeof(disallowed) / sizeof(disallowed[0])); j ++) { if (!_cups_strcasecmp(setting->name, disallowed[j])) { _cupsLangPrintf(stderr, _("cupsctl: Cannot set %s directly."), disallowed[j]); return (1); } } } /* * Connect to the server using the defaults... */ if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) == NULL) { _cupsLangPrintf(stderr, _("cupsctl: Unable to connect to server: %s"), strerror(errno)); return (1); } /* * Set the current configuration if we have anything on the command-line... */ if (num_settings > 0) { if (!cupsAdminSetServerSettings(http, num_settings, settings)) { _cupsLangPrintf(stderr, "cupsctl: %s", cupsLastErrorString()); return (1); } } else if (!cupsAdminGetServerSettings(http, &num_settings, &settings)) { _cupsLangPrintf(stderr, "cupsctl: %s", cupsLastErrorString()); return (1); } else { for (i = 0; i < num_settings; i ++) _cupsLangPrintf(stdout, "%s=%s", settings[i].name, settings[i].value); } cupsFreeOptions(num_settings, settings); return (0); } /* * 'usage()' - Show program usage. */ static void usage(const char *opt) /* I - Option character/string */ { if (opt) { if (*opt == '-') _cupsLangPrintf(stderr, _("cupsctl: Unknown option \"%s\""), opt); else _cupsLangPrintf(stderr, _("cupsctl: Unknown option \"-%c\""), *opt); } _cupsLangPuts(stdout, _("Usage: cupsctl [options] [param=value ... paramN=valueN]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-U username Specify username to use for authentication")); _cupsLangPuts(stdout, _("--[no-]debug-logging Turn debug logging on/off")); _cupsLangPuts(stdout, _("--[no-]remote-admin Turn remote administration on/off")); _cupsLangPuts(stdout, _("--[no-]remote-any Allow/prevent access from the Internet")); _cupsLangPuts(stdout, _("--[no-]share-printers Turn printer sharing on/off")); _cupsLangPuts(stdout, _("--[no-]user-cancel-any Allow/prevent users to cancel any job")); exit(1); } cups-2.4.7/systemv/cupsaccept.c0000644000175000017500000001347014502571342016376 0ustar zdohnalzdohnal/* * "cupsaccept", "cupsdisable", "cupsenable", and "cupsreject" commands for * CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * Local functions... */ static void usage(const char *command) _CUPS_NORETURN; /* * 'main()' - Parse options and accept/reject jobs or disable/enable printers. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ char *command, /* Command to do */ *opt, /* Option pointer */ uri[1024], /* Printer URI */ *reason; /* Reason for reject/disable */ ipp_t *request; /* IPP request */ ipp_op_t op; /* Operation */ int cancel; /* Cancel jobs? */ _cupsSetLocale(argv); /* * See what operation we're supposed to do... */ if ((command = strrchr(argv[0], '/')) != NULL) command ++; else command = argv[0]; cancel = 0; if (!strcmp(command, "cupsaccept")) op = CUPS_ACCEPT_JOBS; else if (!strcmp(command, "cupsreject")) op = CUPS_REJECT_JOBS; else if (!strcmp(command, "cupsdisable")) op = IPP_PAUSE_PRINTER; else if (!strcmp(command, "cupsenable")) op = IPP_RESUME_PRINTER; else { _cupsLangPrintf(stderr, _("%s: Don't know what to do."), command); return (1); } reason = NULL; /* * Process command-line arguments... */ for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(command); else if (!strcmp(argv[i], "--hold")) op = IPP_HOLD_NEW_JOBS; else if (!strcmp(argv[i], "--release")) op = IPP_RELEASE_HELD_NEW_JOBS; else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), command); #endif /* HAVE_TLS */ break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), command); usage(command); } cupsSetUser(argv[i]); } break; case 'c' : /* Cancel jobs */ cancel = 1; break; case 'h' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), command); usage(command); } cupsSetServer(argv[i]); } break; case 'r' : /* Reason for cancellation */ if (opt[1] != '\0') { reason = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected reason text after \"-r\" option."), command); usage(command); } reason = argv[i]; } break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), command, *opt); usage(command); } } } else { /* * Accept/disable/enable/reject a destination... */ request = ippNewRequest(op); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", argv[i]); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (reason != NULL) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "printer-state-message", NULL, reason); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/admin/")); if (cupsLastError() > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, _("%s: Operation failed: %s"), command, ippErrorString(cupsLastError())); return (1); } /* * Cancel all jobs if requested... */ if (cancel) { /* * Build an IPP_PURGE_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_PURGE_JOBS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippDelete(cupsDoRequest(CUPS_HTTP_DEFAULT, request, "/admin/")); if (cupsLastError() > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); return (1); } } } } return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(const char *command) /* I - Command name */ { _cupsLangPrintf(stdout, _("Usage: %s [options] destination(s)"), command); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-r reason Specify a reason message that others can see")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); if (!strcmp(command, "cupsdisable")) _cupsLangPuts(stdout, _("--hold Hold new jobs")); if (!strcmp(command, "cupsenable")) _cupsLangPuts(stdout, _("--release Release previously held jobs")); exit(1); } cups-2.4.7/systemv/cancel.c0000644000175000017500000002251414502571342015470 0ustar zdohnalzdohnal/* * "cancel" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * Local functions... */ static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and cancel jobs. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { http_t *http; /* HTTP connection to server */ int i; /* Looping var */ int job_id; /* Job ID */ int num_dests; /* Number of destinations */ cups_dest_t *dests; /* Destinations */ char *opt, /* Option pointer */ *dest, /* Destination printer */ *job, /* Job ID pointer */ *user; /* Cancel jobs for a user */ int purge; /* Purge or cancel jobs? */ char uri[1024]; /* Printer or job URI */ ipp_t *request; /* IPP request */ ipp_t *response; /* IPP response */ ipp_op_t op; /* Operation */ _cupsSetLocale(argv); /* * Setup to cancel individual print jobs... */ op = IPP_CANCEL_JOB; purge = 0; dest = NULL; user = NULL; http = NULL; num_dests = 0; dests = NULL; /* * Process command-line arguments... */ for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-' && argv[i][1]) { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); if (http) httpEncryption(http, HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'a' : /* Cancel all jobs */ op = purge ? IPP_PURGE_JOBS : IPP_CANCEL_JOBS; break; case 'h' : /* Connect to host */ if (http != NULL) { httpClose(http); http = NULL; } if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), argv[0]); usage(); } else cupsSetServer(argv[i]); } break; case 'u' : /* Username */ op = IPP_CANCEL_MY_JOBS; if (opt[1] != '\0') { user = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-u\" option."), argv[0]); usage(); } else user = argv[i]; } break; case 'x' : /* Purge job(s) */ purge = 1; if (op == IPP_CANCEL_JOBS) op = IPP_PURGE_JOBS; break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], *opt); return (1); } } } else { /* * Cancel a job or printer... */ if (num_dests == 0) num_dests = cupsGetDests(&dests); if (!strcmp(argv[i], "-")) { /* * Delete the current job... */ dest = ""; job_id = 0; } else if (cupsGetDest(argv[i], NULL, num_dests, dests) != NULL) { /* * Delete the current job on the named destination... */ dest = argv[i]; job_id = 0; } else if ((job = strrchr(argv[i], '-')) != NULL && isdigit(job[1] & 255)) { /* * Delete the specified job ID. */ dest = NULL; op = IPP_CANCEL_JOB; job_id = atoi(job + 1); } else if (isdigit(argv[i][0] & 255)) { /* * Delete the specified job ID. */ dest = NULL; op = IPP_CANCEL_JOB; job_id = atoi(argv[i]); } else { /* * Bad printer name! */ _cupsLangPrintf(stderr, _("%s: Error - unknown destination \"%s\"."), argv[0], argv[i]); return (1); } /* * For Solaris LP compatibility, ignore a destination name after * cancelling a specific job ID... */ if (job_id && (i + 1) < argc && cupsGetDest(argv[i + 1], NULL, num_dests, dests) != NULL) i ++; /* * Open a connection to the server... */ if (http == NULL) if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to connect to server."), argv[0]); return (1); } /* * Build an IPP request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri + job-id *or* job-uri * [requesting-user-name] */ request = ippNewRequest(op); if (dest) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); } else { snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); } if (user) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1); if (op == IPP_CANCEL_JOBS) op = IPP_CANCEL_MY_JOBS; } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (purge) ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", (char)purge); /* * Do the request and get back a response... */ if (op == IPP_CANCEL_JOBS && (!user || _cups_strcasecmp(user, cupsUser()))) response = cupsDoRequest(http, request, "/admin/"); else response = cupsDoRequest(http, request, "/jobs/"); if (response == NULL || response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, _("%s: %s failed: %s"), argv[0], op == IPP_PURGE_JOBS ? "purge-jobs" : "cancel-job", cupsLastErrorString()); ippDelete(response); return (1); } ippDelete(response); } } if (num_dests == 0 && op != IPP_CANCEL_JOB) { /* * Open a connection to the server... */ if (http == NULL) if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to contact server."), argv[0]); return (1); } /* * Build an IPP request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri + job-id *or* job-uri * [requesting-user-name] */ request = ippNewRequest(op); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/"); if (user) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1); } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", (char)purge); /* * Do the request and get back a response... */ response = cupsDoRequest(http, request, "/admin/"); if (response == NULL || response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, _("%s: %s failed: %s"), argv[0], op == IPP_PURGE_JOBS ? "purge-jobs" : "cancel-job", cupsLastErrorString()); ippDelete(response); return (1); } ippDelete(response); } return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-a Cancel all jobs")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-u owner Specify the owner to use for jobs")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); _cupsLangPuts(stdout, _("-x Purge jobs rather than just canceling")); exit(1); } cups-2.4.7/systemv/Makefile0000644000175000017500000001073714502571342015543 0ustar zdohnalzdohnal# # System V commands makefile for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs TARGETS = cancel cupsaccept cupsctl cupstestppd \ lp lpadmin lpinfo lpmove lpoptions lpstat OBJS = cancel.o cupsaccept.o cupsctl.o \ cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \ lpstat.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) $(RM) cupsdisable cupsenable cupsreject # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: echo Installing System V admin printing commands in $(SBINDIR) $(INSTALL_DIR) -m 755 $(SBINDIR) $(INSTALL_BIN) cupsaccept $(SBINDIR) $(INSTALL_BIN) cupsctl $(SBINDIR) $(INSTALL_BIN) lpadmin $(SBINDIR) $(INSTALL_BIN) lpinfo $(SBINDIR) $(INSTALL_BIN) lpmove $(SBINDIR) $(RM) $(SBINDIR)/cupsdisable $(LN) cupsaccept $(SBINDIR)/cupsdisable $(RM) $(SBINDIR)/cupsenable $(LN) cupsaccept $(SBINDIR)/cupsenable $(RM) $(SBINDIR)/cupsreject $(LN) cupsaccept $(SBINDIR)/cupsreject echo Installing System V user printing commands in $(BINDIR) $(INSTALL_DIR) -m 755 $(BINDIR) $(INSTALL_BIN) cancel $(BINDIR) $(INSTALL_BIN) cupstestppd $(BINDIR) $(INSTALL_BIN) lp $(BINDIR) $(INSTALL_BIN) lpoptions $(BINDIR) $(INSTALL_BIN) lpstat $(BINDIR) if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(TARGETS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: $(RM) $(BINDIR)/cancel $(RM) $(BINDIR)/cupstestppd $(RM) $(BINDIR)/lp $(RM) $(BINDIR)/lpoptions $(RM) $(BINDIR)/lpstat -$(RMDIR) $(BINDIR) $(RM) $(SBINDIR)/cupsaccept $(RM) $(SBINDIR)/cupsaccept $(RM) $(SBINDIR)/cupsdisable $(RM) $(SBINDIR)/cupsenable $(RM) $(SBINDIR)/cupsreject $(RM) $(SBINDIR)/lpadmin $(RM) $(SBINDIR)/lpinfo $(RM) $(SBINDIR)/lpmove -$(RMDIR) $(SBINDIR) # # cancel # cancel: cancel.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cancel cancel.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # cupsaccept # cupsaccept: cupsaccept.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsaccept cupsaccept.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ for file in cupsenable cupsdisable cupsreject; do \ $(RM) $$file; \ $(LN) cupsaccept $$file; \ done # # cupsctl # cupsctl: cupsctl.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsctl cupsctl.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # cupstestppd # cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ cupstestppd.o -lm $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ cupstestppd-static: cupstestppd.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lp # lp: lp.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lp lp.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpadmin # lpadmin: lpadmin.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpadmin lpadmin.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpinfo # lpinfo: lpinfo.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpinfo lpinfo.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpmove # lpmove: lpmove.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpmove lpmove.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpoptions # lpoptions: lpoptions.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpoptions lpoptions.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpstat # lpstat: lpstat.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpstat lpstat.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies cups-2.4.7/systemv/Dependencies0000644000175000017500000001010314502571342016377 0ustar zdohnalzdohnalcancel.o: cancel.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h cupsaccept.o: cupsaccept.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h cupsctl.o: cupsctl.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/adminutil.h cupstestppd.o: cupstestppd.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/dir.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h lp.o: lp.c ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h lpadmin.o: lpadmin.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h lpinfo.o: lpinfo.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/adminutil.h lpmove.o: lpmove.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h lpoptions.o: lpoptions.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h lpstat.o: lpstat.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h cups-2.4.7/scheduler/0000755000175000017500000000000014502571342014337 5ustar zdohnalzdohnalcups-2.4.7/scheduler/util.h0000644000175000017500000000256414502571342015474 0ustar zdohnalzdohnal/* * Mini-daemon utility definitions for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPSD_UTIL_H_ # define _CUPSD_UTIL_H_ /* * Include necessary headers... */ # include # include # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types... */ typedef int (*cupsd_compare_func_t)(const void *, const void *); /* * Prototypes... */ extern int cupsdCompareNames(const char *s, const char *t); extern cups_array_t *cupsdCreateStringsArray(const char *s); extern int cupsdExec(const char *command, char **argv); extern cups_file_t *cupsdPipeCommand(int *pid, const char *command, char **argv, uid_t user); extern void cupsdSendIPPGroup(ipp_tag_t group_tag); extern void cupsdSendIPPHeader(ipp_status_t status_code, int request_id); extern void cupsdSendIPPInteger(ipp_tag_t value_tag, const char *name, int value); extern void cupsdSendIPPString(ipp_tag_t value_tag, const char *name, const char *value); extern void cupsdSendIPPTrailer(void); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPSD_UTIL_H_ */ cups-2.4.7/scheduler/util.c0000644000175000017500000002106714502571342015466 0ustar zdohnalzdohnal/* * Mini-daemon utility functions for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "util.h" #include #include #include #ifdef __APPLE__ # include extern char **environ; #endif /* __APPLE__ */ /* * 'cupsdCompareNames()' - Compare two names. * * This function basically does a _cups_strcasecmp() of the two strings, * but is also aware of numbers so that "a2" < "a100". */ int /* O - Result of comparison */ cupsdCompareNames(const char *s, /* I - First string */ const char *t) /* I - Second string */ { int diff, /* Difference between digits */ digits; /* Number of digits */ /* * Loop through both names, returning only when a difference is * seen. Also, compare whole numbers rather than just characters, too! */ while (*s && *t) { if (isdigit(*s & 255) && isdigit(*t & 255)) { /* * Got a number; start by skipping leading 0's... */ while (*s == '0') s ++; while (*t == '0') t ++; /* * Skip equal digits... */ while (isdigit(*s & 255) && *s == *t) { s ++; t ++; } /* * Bounce out if *s and *t aren't both digits... */ if (isdigit(*s & 255) && !isdigit(*t & 255)) return (1); else if (!isdigit(*s & 255) && isdigit(*t & 255)) return (-1); else if (!isdigit(*s & 255) || !isdigit(*t & 255)) continue; if (*s < *t) diff = -1; else diff = 1; /* * Figure out how many more digits there are... */ digits = 0; s ++; t ++; while (isdigit(*s & 255)) { digits ++; s ++; } while (isdigit(*t & 255)) { digits --; t ++; } /* * Return if the number or value of the digits is different... */ if (digits < 0) return (-1); else if (digits > 0) return (1); else return (diff); } else if (tolower(*s) < tolower(*t)) return (-1); else if (tolower(*s) > tolower(*t)) return (1); else { s ++; t ++; } } /* * Return the results of the final comparison... */ if (*s) return (1); else if (*t) return (-1); else return (0); } /* * 'cupsdCreateStringsArray()' - Create a CUPS array of strings. */ cups_array_t * /* O - CUPS array */ cupsdCreateStringsArray(const char *s) /* I - Comma-delimited strings */ { if (s && *s) return (_cupsArrayNewStrings(s, ',')); else return (NULL); } /* * 'cupsdExec()' - Run a program with the correct environment. * * On macOS, we need to update the CFProcessPath environment variable that * is passed in the environment so the child can access its bundled resources. */ int /* O - exec() status */ cupsdExec(const char *command, /* I - Full path to program */ char **argv) /* I - Command-line arguments */ { #ifdef __APPLE__ size_t i, j; /* Looping vars */ char *envp[500], /* Array of environment variables */ cfprocesspath[1024], /* CFProcessPath environment variable */ linkpath[1024]; /* Link path for symlinks... */ ssize_t linkbytes; /* Bytes for link path */ /* * Some macOS programs are bundled and need the CFProcessPath environment * variable defined. If the command is a symlink, resolve the link and point * to the resolved location, otherwise, use the command path itself. */ if ((linkbytes = readlink(command, linkpath, sizeof(linkpath) - 1)) > 0) { /* * Yes, this is a symlink to the actual program, nul-terminate and * use it... */ linkpath[linkbytes] = '\0'; if (linkpath[0] == '/') snprintf(cfprocesspath, sizeof(cfprocesspath), "CFProcessPath=%s", linkpath); else snprintf(cfprocesspath, sizeof(cfprocesspath), "CFProcessPath=%s/%s", dirname((char *)command), linkpath); } else snprintf(cfprocesspath, sizeof(cfprocesspath), "CFProcessPath=%s", command); envp[0] = cfprocesspath; /* * Copy the rest of the environment except for any CFProcessPath that may * already be there... */ for (i = 1, j = 0; environ[j] && i < (sizeof(envp) / sizeof(envp[0]) - 1); j ++) if (strncmp(environ[j], "CFProcessPath=", 14)) envp[i ++] = environ[j]; envp[i] = NULL; /* * Use execve() to run the program... */ return (execve(command, argv, envp)); #else /* * On other operating systems, just call execv() to use the same environment * variables as the parent... */ return (execv(command, argv)); #endif /* __APPLE__ */ } /* * 'cupsdPipeCommand()' - Read output from a command. */ cups_file_t * /* O - CUPS file or NULL on error */ cupsdPipeCommand(int *pid, /* O - Process ID or 0 on error */ const char *command, /* I - Command to run */ char **argv, /* I - Arguments to pass to command */ uid_t user) /* I - User to run as or 0 for current */ { int fd, /* Temporary file descriptor */ fds[2]; /* Pipe file descriptors */ /* * First create the pipe... */ if (pipe(fds)) { *pid = 0; return (NULL); } /* * Set the "close on exec" flag on each end of the pipe... */ if (fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); *pid = 0; return (NULL); } if (fcntl(fds[1], F_SETFD, fcntl(fds[1], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); *pid = 0; return (NULL); } /* * Then run the command... */ if ((*pid = fork()) < 0) { /* * Unable to fork! */ *pid = 0; close(fds[0]); close(fds[1]); return (NULL); } else if (!*pid) { /* * Child comes here... */ if (!getuid() && user) setuid(user); /* Run as restricted user */ if ((fd = open("/dev/null", O_RDONLY)) > 0) { dup2(fd, 0); /* pipe */ close(fds[1]); cupsdExec(command, argv); exit(errno); } /* * Parent comes here, open the input side of the pipe... */ close(fds[1]); return (cupsFileOpenFd(fds[0], "r")); } /* * 'cupsdSendIPPGroup()' - Send a group tag. */ void cupsdSendIPPGroup(ipp_tag_t group_tag) /* I - Group tag */ { /* * Send IPP group tag (1 byte)... */ putchar(group_tag); } /* * 'cupsdSendIPPHeader()' - Send the IPP response header. */ void cupsdSendIPPHeader( ipp_status_t status_code, /* I - Status code */ int request_id) /* I - Request ID */ { /* * Send IPP/1.1 response header: version number (2 bytes), status code * (2 bytes), and request ID (4 bytes)... * * TODO: Add version number (IPP/2.x and IPP/1.0) support. */ putchar(1); putchar(1); putchar(status_code >> 8); putchar(status_code); putchar(request_id >> 24); putchar(request_id >> 16); putchar(request_id >> 8); putchar(request_id); } /* * 'cupsdSendIPPInteger()' - Send an integer attribute. */ void cupsdSendIPPInteger( ipp_tag_t value_tag, /* I - Value tag */ const char *name, /* I - Attribute name */ int value) /* I - Attribute value */ { size_t len; /* Length of attribute name */ /* * Send IPP integer value: value tag (1 byte), name length (2 bytes), * name string (without nul), value length (2 bytes), and value (4 bytes)... */ putchar(value_tag); len = strlen(name); putchar((int)(len >> 8)); putchar((int)len); fputs(name, stdout); putchar(0); putchar(4); putchar(value >> 24); putchar(value >> 16); putchar(value >> 8); putchar(value); } /* * 'cupsdSendIPPString()' - Send a string attribute. */ void cupsdSendIPPString( ipp_tag_t value_tag, /* I - Value tag */ const char *name, /* I - Attribute name */ const char *value) /* I - Attribute value */ { size_t len; /* Length of attribute name */ /* * Send IPP string value: value tag (1 byte), name length (2 bytes), * name string (without nul), value length (2 bytes), and value string * (without nul)... */ putchar(value_tag); len = strlen(name); putchar((int)(len >> 8)); putchar((int)len); fputs(name, stdout); len = strlen(value); putchar((int)(len >> 8)); putchar((int)len); fputs(value, stdout); } /* * 'cupsdSendIPPTrailer()' - Send the end-of-message tag. */ void cupsdSendIPPTrailer(void) { putchar(IPP_TAG_END); fflush(stdout); } cups-2.4.7/scheduler/type.c0000644000175000017500000007661514502571342015503 0ustar zdohnalzdohnal/* * MIME typing routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include "mime.h" /* * Debug macros that used to be private API... */ #define DEBUG_puts(x) #define DEBUG_printf(...) /* * Local types... */ typedef struct _mime_filebuf_s /**** File buffer for MIME typing ****/ { cups_file_t *fp; /* File pointer */ int offset, /* Offset in file */ length; /* Length of buffered data */ unsigned char buffer[MIME_MAX_BUFFER];/* Buffered data */ } _mime_filebuf_t; /* * Local functions... */ static int mime_compare_types(mime_type_t *t0, mime_type_t *t1); static int mime_check_rules(const char *filename, _mime_filebuf_t *fb, mime_magic_t *rules); static int mime_patmatch(const char *s, const char *pat); /* * Local globals... */ #ifdef MIME_DEBUG static const char * const debug_ops[] = { /* Test names... */ "NOP", /* No operation */ "AND", /* Logical AND of all children */ "OR", /* Logical OR of all children */ "MATCH", /* Filename match */ "ASCII", /* ASCII characters in range */ "PRINTABLE", /* Printable characters (32-255) */ "STRING", /* String matches */ "CHAR", /* Character/byte matches */ "SHORT", /* Short/16-bit word matches */ "INT", /* Integer/32-bit word matches */ "LOCALE", /* Current locale matches string */ "CONTAINS", /* File contains a string */ "ISTRING", /* Case-insensitive string matches */ "REGEX" /* Regular expression matches */ }; #endif /* DEBUG */ /* * 'mimeAddType()' - Add a MIME type to a database. */ mime_type_t * /* O - New (or existing) MIME type */ mimeAddType(mime_t *mime, /* I - MIME database */ const char *super, /* I - Super-type name */ const char *type) /* I - Type name */ { mime_type_t *temp; /* New MIME type */ size_t typelen; /* Length of type name */ DEBUG_printf(("mimeAddType(mime=%p, super=\"%s\", type=\"%s\")", mime, super, type)); /* * Range check input... */ if (!mime || !super || !type) { DEBUG_puts("1mimeAddType: Returning NULL (bad arguments)."); return (NULL); } /* * See if the type already exists; if so, return the existing type... */ if ((temp = mimeType(mime, super, type)) != NULL) { DEBUG_printf(("1mimeAddType: Returning %p (existing).", temp)); return (temp); } /* * The type doesn't exist; add it... */ if (!mime->types) mime->types = cupsArrayNew((cups_array_func_t)mime_compare_types, NULL); if (!mime->types) { DEBUG_puts("1mimeAddType: Returning NULL (no types)."); return (NULL); } typelen = strlen(type) + 1; if ((temp = calloc(1, sizeof(mime_type_t) - MIME_MAX_TYPE + typelen)) == NULL) { DEBUG_puts("1mimeAddType: Returning NULL (out of memory)."); return (NULL); } strlcpy(temp->super, super, sizeof(temp->super)); memcpy(temp->type, type, typelen); temp->priority = 100; cupsArrayAdd(mime->types, temp); DEBUG_printf(("1mimeAddType: Returning %p (new).", temp)); return (temp); } /* * 'mimeAddTypeRule()' - Add a detection rule for a file type. */ int /* O - 0 on success, -1 on failure */ mimeAddTypeRule(mime_type_t *mt, /* I - Type to add to */ const char *rule) /* I - Rule to add */ { int num_values, /* Number of values seen */ op, /* Operation code */ logic, /* Logic for next rule */ invert; /* Invert following rule? */ char name[255], /* Name in rule string */ value[3][255], /* Value in rule string */ *ptr, /* Position in name or value */ quote; /* Quote character */ int length[3]; /* Length of each parameter */ mime_magic_t *temp, /* New rule */ *current; /* Current rule */ DEBUG_printf(("mimeAddTypeRule(mt=%p(%s/%s), rule=\"%s\")", mt, mt ? mt->super : "???", mt ? mt->type : "???", rule)); /* * Range check input... */ if (!mt || !rule) return (-1); /* * Find the last rule in the top-level of the rules tree. */ for (current = mt->rules; current; current = current->next) if (!current->next) break; /* * Parse the rules string. Most rules are either a file extension or a * comparison function: * * extension * function(parameters) */ logic = MIME_MAGIC_NOP; invert = 0; while (*rule != '\0') { while (isspace(*rule & 255)) rule ++; if (*rule == '(') { DEBUG_puts("1mimeAddTypeRule: New parenthesis group"); logic = MIME_MAGIC_NOP; rule ++; } else if (*rule == ')') { DEBUG_puts("1mimeAddTypeRule: Close paren..."); if (current == NULL || current->parent == NULL) return (-1); current = current->parent; if (current->parent == NULL) logic = MIME_MAGIC_OR; else logic = current->parent->op; rule ++; } else if (*rule == '+' && current != NULL) { if (logic != MIME_MAGIC_AND && current->prev != NULL) { /* * OK, we have more than 1 rule in the current tree level... Make a * new group tree and move the previous rule to it... */ if ((temp = calloc(1, sizeof(mime_magic_t))) == NULL) return (-1); temp->op = MIME_MAGIC_AND; temp->child = current; temp->parent = current->parent; current->prev->next = temp; temp->prev = current->prev; current->prev = NULL; current->parent = temp; DEBUG_printf(("1mimeAddTypeRule: Creating new AND group %p.", temp)); } else if (current->parent) { DEBUG_printf(("1mimeAddTypeRule: Setting group %p op to AND.", current->parent)); current->parent->op = MIME_MAGIC_AND; } logic = MIME_MAGIC_AND; rule ++; } else if (*rule == ',') { if (logic != MIME_MAGIC_OR && current != NULL) { /* * OK, we have two possibilities; either this is the top-level rule or * we have a bunch of AND rules at this level. */ if (current->parent == NULL) { /* * This is the top-level rule; we have to move *all* of the AND rules * down a level, as AND has precedence over OR. */ if ((temp = calloc(1, sizeof(mime_magic_t))) == NULL) return (-1); DEBUG_printf(("1mimeAddTypeRule: Creating new AND group %p inside OR " "group.", temp)); while (current->prev != NULL) { current->parent = temp; current = current->prev; } current->parent = temp; temp->op = MIME_MAGIC_AND; temp->child = current; mt->rules = current = temp; } else { /* * This isn't the top rule, so go up one level... */ DEBUG_puts("1mimeAddTypeRule: Going up one level."); current = current->parent; } } logic = MIME_MAGIC_OR; rule ++; } else if (*rule == '!') { DEBUG_puts("1mimeAddTypeRule: NOT"); invert = 1; rule ++; } else if (isalnum(*rule & 255)) { /* * Read an extension name or a function... */ ptr = name; while (isalnum(*rule & 255) && (size_t)(ptr - name) < (sizeof(name) - 1)) *ptr++ = *rule++; *ptr = '\0'; if (*rule == '(') { /* * Read function parameters... */ rule ++; for (num_values = 0; num_values < (int)(sizeof(value) / sizeof(value[0])); num_values ++) { ptr = value[num_values]; while ((size_t)(ptr - value[num_values]) < (sizeof(value[0]) - 1) && *rule != '\0' && *rule != ',' && *rule != ')') { if (isspace(*rule & 255)) { /* * Ignore whitespace... */ rule ++; continue; } else if (*rule == '\"' || *rule == '\'') { /* * Copy quoted strings literally... */ quote = *rule++; while (*rule != '\0' && *rule != quote && (size_t)(ptr - value[num_values]) < (sizeof(value[0]) - 1)) *ptr++ = *rule++; if (*rule == quote) rule ++; else return (-1); } else if (*rule == '<') { rule ++; while (*rule != '>' && *rule != '\0' && (size_t)(ptr - value[num_values]) < (sizeof(value[0]) - 1)) { if (isxdigit(rule[0] & 255) && isxdigit(rule[1] & 255)) { if (isdigit(*rule)) *ptr = (char)((*rule++ - '0') << 4); else *ptr = (char)((tolower(*rule++) - 'a' + 10) << 4); if (isdigit(*rule)) *ptr++ |= *rule++ - '0'; else *ptr++ |= tolower(*rule++) - 'a' + 10; } else return (-1); } if (*rule == '>') rule ++; else return (-1); } else *ptr++ = *rule++; } *ptr = '\0'; length[num_values] = ptr - value[num_values]; if (*rule != ',') { num_values ++; break; } rule ++; } if (*rule != ')') return (-1); rule ++; /* * Figure out the function... */ if (!strcmp(name, "match")) op = MIME_MAGIC_MATCH; else if (!strcmp(name, "ascii")) op = MIME_MAGIC_ASCII; else if (!strcmp(name, "printable")) op = MIME_MAGIC_PRINTABLE; else if (!strcmp(name, "regex")) op = MIME_MAGIC_REGEX; else if (!strcmp(name, "string")) op = MIME_MAGIC_STRING; else if (!strcmp(name, "istring")) op = MIME_MAGIC_ISTRING; else if (!strcmp(name, "char")) op = MIME_MAGIC_CHAR; else if (!strcmp(name, "short")) op = MIME_MAGIC_SHORT; else if (!strcmp(name, "int")) op = MIME_MAGIC_INT; else if (!strcmp(name, "locale")) op = MIME_MAGIC_LOCALE; else if (!strcmp(name, "contains")) op = MIME_MAGIC_CONTAINS; else if (!strcmp(name, "priority") && num_values == 1) { mt->priority = atoi(value[0]); continue; } else return (-1); } else { /* * This is just a filename match on the extension... */ snprintf(value[0], sizeof(value[0]), "*.%s", name); length[0] = (int)strlen(value[0]); op = MIME_MAGIC_MATCH; num_values = 1; } /* * Add a rule for this operation. */ if ((temp = calloc(1, sizeof(mime_magic_t))) == NULL) return (-1); temp->invert = (short)invert; if (current != NULL) { temp->parent = current->parent; current->next = temp; } else mt->rules = temp; temp->prev = current; if (logic == MIME_MAGIC_NOP) { /* * Add parenthetical grouping... */ DEBUG_printf(("1mimeAddTypeRule: Making new OR group %p for " "parenthesis.", temp)); temp->op = MIME_MAGIC_OR; if ((temp->child = calloc(1, sizeof(mime_magic_t))) == NULL) return (-1); temp->child->parent = temp; temp->child->invert = temp->invert; temp->invert = 0; temp = temp->child; logic = MIME_MAGIC_OR; } DEBUG_printf(("1mimeAddTypeRule: Adding %p: %s, op=MIME_MAGIC_%s(%d), " "logic=MIME_MAGIC_%s, invert=%d.", temp, name, debug_ops[op], op, debug_ops[logic], invert)); /* * Fill in data for the rule... */ current = temp; temp->op = (short)op; invert = 0; switch (op) { case MIME_MAGIC_MATCH : if ((size_t)length[0] > (sizeof(temp->value.matchv) - 1)) return (-1); strlcpy(temp->value.matchv, value[0], sizeof(temp->value.matchv)); break; case MIME_MAGIC_ASCII : case MIME_MAGIC_PRINTABLE : temp->offset = strtol(value[0], NULL, 0); temp->length = strtol(value[1], NULL, 0); if (temp->length > MIME_MAX_BUFFER) temp->length = MIME_MAX_BUFFER; break; case MIME_MAGIC_REGEX : temp->offset = strtol(value[0], NULL, 0); temp->length = MIME_MAX_BUFFER; if (regcomp(&(temp->value.rev), value[1], REG_NOSUB | REG_EXTENDED)) return (-1); break; case MIME_MAGIC_STRING : case MIME_MAGIC_ISTRING : temp->offset = strtol(value[0], NULL, 0); if (num_values < 2 || (size_t)length[1] > sizeof(temp->value.stringv)) return (-1); temp->length = length[1]; memcpy(temp->value.stringv, value[1], (size_t)length[1]); break; case MIME_MAGIC_CHAR : temp->offset = strtol(value[0], NULL, 0); if (num_values < 2) return (-1); else if (length[1] == 1) temp->value.charv = (unsigned char)value[1][0]; else temp->value.charv = (unsigned char)strtol(value[1], NULL, 0); DEBUG_printf(("1mimeAddTypeRule: CHAR(%d,0x%02x)", temp->offset, temp->value.charv)); break; case MIME_MAGIC_SHORT : temp->offset = strtol(value[0], NULL, 0); temp->value.shortv = (unsigned short)strtol(value[1], NULL, 0); break; case MIME_MAGIC_INT : temp->offset = strtol(value[0], NULL, 0); temp->value.intv = (unsigned)strtol(value[1], NULL, 0); break; case MIME_MAGIC_LOCALE : if ((size_t)length[0] > (sizeof(temp->value.localev) - 1)) return (-1); strlcpy(temp->value.localev, value[0], sizeof(temp->value.localev)); break; case MIME_MAGIC_CONTAINS : temp->offset = strtol(value[0], NULL, 0); temp->region = strtol(value[1], NULL, 0); if (num_values < 3 || (size_t)length[2] > sizeof(temp->value.stringv)) return (-1); temp->length = length[2]; memcpy(temp->value.stringv, value[2], (size_t)length[2]); break; } } else break; } return (0); } /* * 'mimeFileType()' - Determine the type of a file. */ mime_type_t * /* O - Type of file */ mimeFileType(mime_t *mime, /* I - MIME database */ const char *pathname, /* I - Name of file to check on disk */ const char *filename, /* I - Original filename or NULL */ int *compression) /* O - Is the file compressed? */ { _mime_filebuf_t fb; /* File buffer */ const char *base; /* Base filename of file */ mime_type_t *type, /* File type */ *best; /* Best match */ DEBUG_printf(("mimeFileType(mime=%p, pathname=\"%s\", filename=\"%s\", " "compression=%p)", mime, pathname, filename, compression)); /* * Range check input parameters... */ if (!mime || !pathname) { DEBUG_puts("1mimeFileType: Returning NULL."); return (NULL); } /* * Try to open the file... */ if ((fb.fp = cupsFileOpen(pathname, "r")) == NULL) { DEBUG_printf(("1mimeFileType: Unable to open \"%s\": %s", pathname, strerror(errno))); DEBUG_puts("1mimeFileType: Returning NULL."); return (NULL); } /* * Then preload the first MIME_MAX_BUFFER bytes of the file into the file * buffer, returning an error if we can't read anything... */ fb.offset = 0; fb.length = (int)cupsFileRead(fb.fp, (char *)fb.buffer, MIME_MAX_BUFFER); if (fb.length <= 0) { DEBUG_printf(("1mimeFileType: Unable to read from \"%s\": %s", pathname, strerror(errno))); DEBUG_puts("1mimeFileType: Returning NULL."); cupsFileClose(fb.fp); return (NULL); } /* * Figure out the base filename (without directory portion)... */ if (filename) { if ((base = strrchr(filename, '/')) != NULL) base ++; else base = filename; } else if ((base = strrchr(pathname, '/')) != NULL) base ++; else base = pathname; /* * Then check it against all known types... */ for (type = (mime_type_t *)cupsArrayFirst(mime->types), best = NULL; type; type = (mime_type_t *)cupsArrayNext(mime->types)) if (mime_check_rules(base, &fb, type->rules)) { if (!best || type->priority > best->priority) best = type; } /* * Finally, close the file and return a match (if any)... */ if (compression) { *compression = cupsFileCompression(fb.fp); DEBUG_printf(("1mimeFileType: *compression=%d", *compression)); } cupsFileClose(fb.fp); DEBUG_printf(("1mimeFileType: Returning %p(%s/%s).", best, best ? best->super : "???", best ? best->type : "???")); return (best); } /* * 'mimeType()' - Lookup a file type. */ mime_type_t * /* O - Matching file type definition */ mimeType(mime_t *mime, /* I - MIME database */ const char *super, /* I - Super-type name */ const char *type) /* I - Type name */ { mime_type_t key, /* MIME type search key */ *mt; /* Matching type */ DEBUG_printf(("mimeType(mime=%p, super=\"%s\", type=\"%s\")", mime, super, type)); /* * Range check input... */ if (!mime || !super || !type) { DEBUG_puts("1mimeType: Returning NULL."); return (NULL); } /* * Lookup the type in the array... */ strlcpy(key.super, super, sizeof(key.super)); strlcpy(key.type, type, sizeof(key.type)); mt = (mime_type_t *)cupsArrayFind(mime->types, &key); DEBUG_printf(("1mimeType: Returning %p.", mt)); return (mt); } /* * 'mime_compare_types()' - Compare two MIME super/type names. */ static int /* O - Result of comparison */ mime_compare_types(mime_type_t *t0, /* I - First type */ mime_type_t *t1) /* I - Second type */ { int i; /* Result of comparison */ if ((i = _cups_strcasecmp(t0->super, t1->super)) == 0) i = _cups_strcasecmp(t0->type, t1->type); return (i); } /* * 'mime_check_rules()' - Check each rule in a list. */ static int /* O - 1 if match, 0 if no match */ mime_check_rules( const char *filename, /* I - Filename */ _mime_filebuf_t *fb, /* I - File to check */ mime_magic_t *rules) /* I - Rules to check */ { int n; /* Looping var */ int region; /* Region to look at */ int logic, /* Logic to apply */ result; /* Result of test */ unsigned intv; /* Integer value */ short shortv; /* Short value */ unsigned char *bufptr; /* Pointer into buffer */ DEBUG_printf(("4mime_check_rules(filename=\"%s\", fb=%p, rules=%p)", filename, fb, rules)); if (rules == NULL) return (0); if (rules->parent == NULL) logic = MIME_MAGIC_OR; else logic = rules->parent->op; result = 0; while (rules != NULL) { /* * Compute the result of this rule... */ switch (rules->op) { case MIME_MAGIC_MATCH : result = mime_patmatch(filename, rules->value.matchv); break; case MIME_MAGIC_ASCII : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->length) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_ASCII fb->length=%d", fb->length)); } /* * Test for ASCII printable characters plus standard control chars. */ if ((rules->offset + rules->length) > (fb->offset + fb->length)) n = fb->offset + fb->length - rules->offset; else n = rules->length; bufptr = fb->buffer + rules->offset - fb->offset; while (n > 0) if ((*bufptr >= 32 && *bufptr <= 126) || (*bufptr >= 8 && *bufptr <= 13) || *bufptr == 26 || *bufptr == 27) { n --; bufptr ++; } else break; result = (n == 0); break; case MIME_MAGIC_PRINTABLE : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->length) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_PRINTABLE fb->length=%d", fb->length)); } /* * Test for 8-bit printable characters plus standard control chars. */ if ((rules->offset + rules->length) > (fb->offset + fb->length)) n = fb->offset + fb->length - rules->offset; else n = rules->length; bufptr = fb->buffer + rules->offset - fb->offset; while (n > 0) if (*bufptr >= 128 || (*bufptr >= 32 && *bufptr <= 126) || (*bufptr >= 8 && *bufptr <= 13) || *bufptr == 26 || *bufptr == 27) { n --; bufptr ++; } else break; result = (n == 0); break; case MIME_MAGIC_REGEX : DEBUG_printf(("5mime_check_rules: regex(%d, \"%s\")", rules->offset, rules->value.stringv)); /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->length) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_REGEX fb->length=%d", fb->length)); DEBUG_printf(("5mime_check_rules: loaded %d byte fb->buffer at %d, starts " "with \"%c%c%c%c\".", fb->length, fb->offset, fb->buffer[0], fb->buffer[1], fb->buffer[2], fb->buffer[3])); } /* * Compare the buffer against the string. If the file is too * short then don't compare - it can't match... */ if (fb->length > 0) { char temp[MIME_MAX_BUFFER + 1]; /* Temporary buffer */ memcpy(temp, fb->buffer, (size_t)fb->length); temp[fb->length] = '\0'; result = !regexec(&(rules->value.rev), temp, 0, NULL, 0); } DEBUG_printf(("5mime_check_rules: result=%d", result)); break; case MIME_MAGIC_STRING : DEBUG_printf(("5mime_check_rules: string(%d, \"%s\")", rules->offset, rules->value.stringv)); /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->length) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_STRING fb->length=%d", fb->length)); DEBUG_printf(("5mime_check_rules: loaded %d byte fb->buffer at %d, starts " "with \"%c%c%c%c\".", fb->length, fb->offset, fb->buffer[0], fb->buffer[1], fb->buffer[2], fb->buffer[3])); } /* * Compare the buffer against the string. If the file is too * short then don't compare - it can't match... */ if ((rules->offset + rules->length) > (fb->offset + fb->length)) result = 0; else result = !memcmp(fb->buffer + rules->offset - fb->offset, rules->value.stringv, (size_t)rules->length); DEBUG_printf(("5mime_check_rules: result=%d", result)); break; case MIME_MAGIC_ISTRING : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->length) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_ISTRING fb->length=%d", fb->length)); } /* * Compare the buffer against the string. If the file is too * short then don't compare - it can't match... */ if ((rules->offset + rules->length) > (fb->offset + fb->length)) result = 0; else result = !_cups_strncasecmp((char *)fb->buffer + rules->offset - fb->offset, rules->value.stringv, (size_t)rules->length); break; case MIME_MAGIC_CHAR : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_CHAR fb->length=%d", fb->length)); } /* * Compare the character values; if the file is too short, it * can't match... */ if (fb->length < 1) result = 0; else result = (fb->buffer[rules->offset - fb->offset] == rules->value.charv); break; case MIME_MAGIC_SHORT : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + 2) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_SHORT fb->length=%d", fb->length)); } /* * Compare the short values; if the file is too short, it * can't match... */ if (fb->length < 2) { result = 0; } else { bufptr = fb->buffer + rules->offset - fb->offset; shortv = (short)((bufptr[0] << 8) | bufptr[1]); result = (shortv == rules->value.shortv); } break; case MIME_MAGIC_INT : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + 4) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_INT fb->length=%d", fb->length)); } /* * Compare the int values; if the file is too short, it * can't match... */ if (fb->length < 4) { result = 0; } else { bufptr = fb->buffer + rules->offset - fb->offset; intv = (unsigned)((bufptr[0] << 24) | (bufptr[1] << 16) | (bufptr[2] << 8) | bufptr[3]); result = (intv == rules->value.intv); } break; case MIME_MAGIC_LOCALE : #if defined(_WIN32) || defined(__EMX__) || defined(__APPLE__) result = !strcmp(rules->value.localev, setlocale(LC_ALL, "")); #else result = !strcmp(rules->value.localev, setlocale(LC_MESSAGES, "")); #endif /* __APPLE__ */ break; case MIME_MAGIC_CONTAINS : /* * Load the buffer if necessary... */ if (fb->offset < 0 || rules->offset < fb->offset || (rules->offset + rules->region) > (fb->offset + fb->length)) { /* * Reload file buffer... */ if (cupsFileSeek(fb->fp, rules->offset) < 0) { fb->length = 0; fb->offset = 0; } else { fb->length = cupsFileRead(fb->fp, (char *)fb->buffer, sizeof(fb->buffer)); fb->offset = rules->offset; } DEBUG_printf(("4mime_check_rules: MIME_MAGIC_CONTAINS fb->length=%d", fb->length)); } /* * Compare the buffer against the string. If the file is too * short then don't compare - it can't match... */ result = 0; if ((rules->offset + rules->length) <= (fb->offset + fb->length)) { if (fb->length > rules->region) region = rules->region - rules->length; else region = fb->length - rules->length; for (n = 0; n < region; n ++) if (!memcmp(fb->buffer + rules->offset - fb->offset + n, rules->value.stringv, (size_t)rules->length)) { result = 1; break; } } break; default : if (rules->child != NULL) result = mime_check_rules(filename, fb, rules->child); else result = 0; break; } /* * If the logic is inverted, invert the result... */ if (rules->invert) result = !result; /* * OK, now if the current logic is OR and this result is true, this * rule set is true. If the current logic is AND and this result is false, * the rule set is false... */ DEBUG_printf(("5mime_check_rules: result of test %p (MIME_MAGIC_%s) is %d", rules, debug_ops[rules->op], result)); if ((result && logic == MIME_MAGIC_OR) || (!result && logic == MIME_MAGIC_AND)) return (result); /* * Otherwise the jury is still out on this one, so move to the next rule. */ rules = rules->next; } return (result); } /* * 'mime_patmatch()' - Pattern matching. */ static int /* O - 1 if match, 0 if no match */ mime_patmatch(const char *s, /* I - String to match against */ const char *pat) /* I - Pattern to match against */ { /* * Range check the input... */ if (s == NULL || pat == NULL) return (0); /* * Loop through the pattern and match strings, and stop if we come to a * point where the strings don't match or we find a complete match. */ while (*s != '\0' && *pat != '\0') { if (*pat == '*') { /* * Wildcard - 0 or more characters... */ pat ++; if (*pat == '\0') return (1); /* Last pattern char is *, so everything matches... */ /* * Test all remaining combinations until we get to the end of the string. */ while (*s != '\0') { if (mime_patmatch(s, pat)) return (1); s ++; } } else if (*pat == '?') { /* * Wildcard - 1 character... */ pat ++; s ++; continue; } else if (*pat == '[') { /* * Match a character from the input set [chars]... */ pat ++; while (*pat != ']' && *pat != '\0') if (*s == *pat) break; else pat ++; if (*pat == ']' || *pat == '\0') return (0); while (*pat != ']' && *pat != '\0') pat ++; if (*pat == ']') pat ++; continue; } else if (*pat == '\\') { /* * Handle quoted characters... */ pat ++; } /* * Stop if the pattern and string don't match... */ if (*pat++ != *s++) return (0); } /* * Done parsing the pattern and string; return 1 if the last character * matches and 0 otherwise... */ return (*s == *pat); } cups-2.4.7/scheduler/testsub.c0000644000175000017500000002764314502571342016210 0ustar zdohnalzdohnal/* * Scheduler notification tester for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 2006-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include /* TODO: Update so we don't need this */ /* * Local globals... */ static int terminate = 0; /* * Local functions... */ static void print_attributes(ipp_t *ipp, int indent); static void sigterm_handler(int sig); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Subscribe to the . */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *uri; /* URI to use */ int num_events; /* Number of events */ const char *events[100]; /* Events */ int subscription_id, /* notify-subscription-id */ sequence_number, /* notify-sequence-number */ interval; /* Interval between polls */ http_t *http; /* HTTP connection */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Current attribute */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Parse command-line... */ num_events = 0; uri = NULL; for (i = 1; i < argc; i ++) if (!strcmp(argv[i], "-E")) cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); else if (!strcmp(argv[i], "-e")) { i ++; if (i >= argc || num_events >= 100) usage(); events[num_events] = argv[i]; num_events ++; } else if (!strcmp(argv[i], "-h")) { i ++; if (i >= argc) usage(); cupsSetServer(argv[i]); } else if (uri || strncmp(argv[i], "ipp://", 6)) usage(); else uri = argv[i]; if (!uri) usage(); if (num_events == 0) { events[0] = "all"; num_events = 1; } /* * Connect to the server... */ if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) == NULL) { perror(cupsServer()); return (1); } /* * Catch CTRL-C and SIGTERM... */ #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGINT, sigterm_handler); sigset(SIGTERM, sigterm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = sigterm_handler; sigaction(SIGINT, &action, NULL); sigaction(SIGTERM, &action, NULL); #else signal(SIGINT, sigterm_handler); signal(SIGTERM, sigterm_handler); #endif /* HAVE_SIGSET */ /* * Create the subscription... */ if (strstr(uri, "/jobs/")) { request = ippNewRequest(IPP_CREATE_JOB_SUBSCRIPTION); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); } else { request = ippNewRequest(IPP_CREATE_PRINTER_SUBSCRIPTION); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); } ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_SUBSCRIPTION, IPP_TAG_KEYWORD, "notify-events", num_events, NULL, events); ippAddString(request, IPP_TAG_SUBSCRIPTION, IPP_TAG_KEYWORD, "notify-pull-method", NULL, "ippget"); response = cupsDoRequest(http, request, uri); if (cupsLastError() >= IPP_BAD_REQUEST) { fprintf(stderr, "Create-%s-Subscription: %s\n", strstr(uri, "/jobs") ? "Job" : "Printer", cupsLastErrorString()); ippDelete(response); httpClose(http); return (1); } if ((attr = ippFindAttribute(response, "notify-subscription-id", IPP_TAG_INTEGER)) == NULL) { fputs("ERROR: No notify-subscription-id in response!\n", stderr); ippDelete(response); httpClose(http); return (1); } subscription_id = attr->values[0].integer; printf("Create-%s-Subscription: notify-subscription-id=%d\n", strstr(uri, "/jobs/") ? "Job" : "Printer", subscription_id); ippDelete(response); /* * Monitor for events... */ sequence_number = 0; while (!terminate) { /* * Get the current events... */ printf("\nGet-Notifications(%d,%d):", subscription_id, sequence_number); fflush(stdout); request = ippNewRequest(IPP_GET_NOTIFICATIONS); if (strstr(uri, "/jobs/")) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "notify-subscription-ids", subscription_id); if (sequence_number) ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "notify-sequence-numbers", sequence_number + 1); response = cupsDoRequest(http, request, uri); printf(" %s\n", ippErrorString(cupsLastError())); if (cupsLastError() >= IPP_BAD_REQUEST) fprintf(stderr, "Get-Notifications: %s\n", cupsLastErrorString()); else if (response) { print_attributes(response, 0); for (attr = ippFindAttribute(response, "notify-sequence-number", IPP_TAG_INTEGER); attr; attr = ippFindNextAttribute(response, "notify-sequence-number", IPP_TAG_INTEGER)) if (attr->values[0].integer > sequence_number) sequence_number = attr->values[0].integer; } if ((attr = ippFindAttribute(response, "notify-get-interval", IPP_TAG_INTEGER)) != NULL && attr->values[0].integer > 0) interval = attr->values[0].integer; else interval = 5; ippDelete(response); sleep((unsigned)interval); } /* * Cancel the subscription... */ printf("\nCancel-Subscription:"); fflush(stdout); request = ippNewRequest(IPP_CANCEL_SUBSCRIPTION); if (strstr(uri, "/jobs/")) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "notify-subscription-id", subscription_id); ippDelete(cupsDoRequest(http, request, uri)); printf(" %s\n", ippErrorString(cupsLastError())); if (cupsLastError() >= IPP_BAD_REQUEST) fprintf(stderr, "Cancel-Subscription: %s\n", cupsLastErrorString()); /* * Close the connection and return... */ httpClose(http); return (0); } /* * 'print_attributes()' - Print the attributes in a request... */ static void print_attributes(ipp_t *ipp, /* I - IPP request */ int indent) /* I - Indentation */ { int i; /* Looping var */ ipp_tag_t group; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ _ipp_value_t *val; /* Current value */ static const char * const tags[] = /* Value/group tag strings */ { "reserved-00", "operation-attributes-tag", "job-attributes-tag", "end-of-attributes-tag", "printer-attributes-tag", "unsupported-attributes-tag", "subscription-attributes-tag", "event-attributes-tag", "reserved-08", "reserved-09", "reserved-0A", "reserved-0B", "reserved-0C", "reserved-0D", "reserved-0E", "reserved-0F", "unsupported", "default", "unknown", "no-value", "reserved-14", "not-settable", "delete-attr", "admin-define", "reserved-18", "reserved-19", "reserved-1A", "reserved-1B", "reserved-1C", "reserved-1D", "reserved-1E", "reserved-1F", "reserved-20", "integer", "boolean", "enum", "reserved-24", "reserved-25", "reserved-26", "reserved-27", "reserved-28", "reserved-29", "reserved-2a", "reserved-2b", "reserved-2c", "reserved-2d", "reserved-2e", "reserved-2f", "octetString", "dateTime", "resolution", "rangeOfInteger", "begCollection", "textWithLanguage", "nameWithLanguage", "endCollection", "reserved-38", "reserved-39", "reserved-3a", "reserved-3b", "reserved-3c", "reserved-3d", "reserved-3e", "reserved-3f", "reserved-40", "textWithoutLanguage", "nameWithoutLanguage", "reserved-43", "keyword", "uri", "uriScheme", "charset", "naturalLanguage", "mimeMediaType", "memberName" }; for (group = IPP_TAG_ZERO, attr = ipp->attrs; attr; attr = attr->next) { if ((attr->group_tag == IPP_TAG_ZERO && indent <= 8) || !attr->name) { group = IPP_TAG_ZERO; putchar('\n'); continue; } if (group != attr->group_tag) { group = attr->group_tag; putchar('\n'); for (i = 4; i < indent; i ++) putchar(' '); printf("%s:\n\n", tags[group]); } for (i = 0; i < indent; i ++) putchar(' '); printf("%s (", attr->name); if (attr->num_values > 1) printf("1setOf "); printf("%s):", tags[attr->value_tag]); switch (attr->value_tag) { case IPP_TAG_ENUM : case IPP_TAG_INTEGER : for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" %d", val->integer); putchar('\n'); break; case IPP_TAG_BOOLEAN : for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" %s", val->boolean ? "true" : "false"); putchar('\n'); break; case IPP_TAG_RANGE : for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" %d-%d", val->range.lower, val->range.upper); putchar('\n'); break; case IPP_TAG_DATE : { char vstring[256]; /* Formatted time */ for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" (%s)", _cupsStrDate(vstring, sizeof(vstring), ippDateToTime(val->date))); } putchar('\n'); break; case IPP_TAG_RESOLUTION : for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" %dx%d%s", val->resolution.xres, val->resolution.yres, val->resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); putchar('\n'); break; case IPP_TAG_STRING : case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) printf(" \"%s\"", val->string.text); putchar('\n'); break; case IPP_TAG_BEGIN_COLLECTION : putchar('\n'); for (i = 0, val = attr->values; i < attr->num_values; i ++, val ++) { if (i) putchar('\n'); print_attributes(val->collection, indent + 4); } break; default : printf("UNKNOWN (%d values)\n", attr->num_values); break; } } } /* * 'sigterm_handler()' - Flag when the user hits CTRL-C... */ static void sigterm_handler(int sig) /* I - Signal number (unused) */ { (void)sig; terminate = 1; } /* * 'usage()' - Show program usage... */ static void usage(void) { puts("Usage: testsub [-E] [-e event ... -e eventN] [-h hostname] URI"); exit(0); } cups-2.4.7/scheduler/testspeed.c0000644000175000017500000002035414502571342016507 0ustar zdohnalzdohnal/* * Scheduler speed test for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include /* * Local functions... */ static int do_test(const char *server, int port, http_encryption_t encryption, int requests, const char *opstring, int verbose); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Send multiple IPP requests and report on the average response * time. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ char *server, /* Server to use */ *ptr; /* Pointer to port in server */ int port; /* Port to use */ http_encryption_t encryption; /* Encryption to use */ int requests; /* Number of requests to send */ int children; /* Number of children to fork */ int good_children; /* Number of children that exited normally */ int pid; /* Child PID */ int status; /* Child status */ time_t start, /* Start time */ end; /* End time */ double elapsed; /* Elapsed time */ int verbose; /* Verbosity */ const char *opstring; /* Operation name */ /* * Parse command-line options... */ requests = 100; children = 5; server = (char *)cupsServer(); port = ippPort(); encryption = HTTP_ENCRYPT_IF_REQUESTED; verbose = 0; opstring = NULL; for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (ptr = argv[i] + 1; *ptr; ptr ++) switch (*ptr) { case 'E' : /* Enable encryption */ encryption = HTTP_ENCRYPT_REQUIRED; break; case 'c' : /* Number of children */ i ++; if (i >= argc) usage(); children = atoi(argv[i]); break; case 'o' : /* Operation */ i ++; if (i >= argc) usage(); opstring = argv[i]; break; case 'r' : /* Number of requests */ i ++; if (i >= argc) usage(); requests = atoi(argv[i]); break; case 'v' : /* Verbose logging */ verbose ++; break; default : usage(); break; } } else { server = argv[i]; if (server[0] != '/' && (ptr = strrchr(server, ':')) != NULL) { *ptr++ = '\0'; port = atoi(ptr); } } /* * Then create child processes to act as clients... */ if (children > 0) { printf("testspeed: Simulating %d clients with %d requests to %s with " "%sencryption...\n", children, requests, server, encryption == HTTP_ENCRYPT_IF_REQUESTED ? "no " : ""); } start = time(NULL); if (children < 1) return (do_test(server, port, encryption, requests, opstring, verbose)); else if (children == 1) good_children = do_test(server, port, encryption, requests, opstring, verbose) ? 0 : 1; else { char options[255], /* Command-line options for child */ reqstr[255], /* Requests string for child */ serverstr[255]; /* Server:port string for child */ snprintf(reqstr, sizeof(reqstr), "%d", requests); if (port == 631 || server[0] == '/') strlcpy(serverstr, server, sizeof(serverstr)); else snprintf(serverstr, sizeof(serverstr), "%s:%d", server, port); strlcpy(options, "-cr", sizeof(options)); if (encryption == HTTP_ENCRYPT_REQUIRED) strlcat(options, "E", sizeof(options)); if (verbose) strlcat(options, "v", sizeof(options)); for (i = 0; i < children; i ++) { fflush(stdout); if ((pid = fork()) == 0) { /* * Child goes here... */ if (opstring) execlp(argv[0], argv[0], options, "0", reqstr, "-o", opstring, serverstr, (char *)NULL); else execlp(argv[0], argv[0], options, "0", reqstr, serverstr, (char *)NULL); exit(errno); } else if (pid < 0) { printf("testspeed: Fork failed: %s\n", strerror(errno)); break; } else printf("testspeed: Started child %d...\n", pid); } /* * Wait for children to finish... */ puts("testspeed: Waiting for children to finish..."); for (good_children = 0;;) { pid = wait(&status); if (pid < 0 && errno != EINTR) break; printf("testspeed: Ended child %d (%d)...\n", pid, status / 256); if (!status) good_children ++; } } /* * Compute the total run time... */ if (good_children > 0) { end = time(NULL); elapsed = end - start; i = good_children * requests; printf("testspeed: %dx%d=%d requests in %.1fs (%.3fs/r, %.1fr/s)\n", good_children, requests, i, elapsed, elapsed / i, i / elapsed); } /* * Exit with no errors... */ return (0); } /* * 'do_test()' - Run a test on a specific host... */ static int /* O - Exit status */ do_test(const char *server, /* I - Server to use */ int port, /* I - Port number to use */ http_encryption_t encryption, /* I - Encryption to use */ int requests, /* I - Number of requests to send */ const char *opstring, /* I - Operation string */ int verbose) /* I - Verbose output? */ { int i; /* Looping var */ http_t *http; /* Connection to server */ ipp_t *request; /* IPP Request */ struct timeval start, /* Start time */ end; /* End time */ double reqtime, /* Time for this request */ elapsed; /* Elapsed time */ int op; /* Current operation */ static ipp_op_t ops[5] = /* Operations to test... */ { IPP_PRINT_JOB, CUPS_GET_DEFAULT, CUPS_GET_PRINTERS, CUPS_GET_CLASSES, IPP_GET_JOBS }; /* * Connect to the server... */ if ((http = httpConnectEncrypt(server, port, encryption)) == NULL) { printf("testspeed(%d): unable to connect to server - %s\n", (int)getpid(), strerror(errno)); return (1); } /* * Do multiple requests... */ for (elapsed = 0.0, i = 0; i < requests; i ++) { /* * Build a request which requires the following attributes: * * attributes-charset * attributes-natural-language * * In addition, IPP_GET_JOBS needs a printer-uri attribute. */ if (opstring) op = ippOpValue(opstring); else op = ops[i % (int)(sizeof(ops) / sizeof(ops[0]))]; request = ippNewRequest(op); gettimeofday(&start, NULL); if (verbose) printf("testspeed(%d): %.6f %s ", (int)getpid(), elapsed, ippOpString(op)); switch (op) { case IPP_GET_JOBS : ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/"); default : ippDelete(cupsDoRequest(http, request, "/")); break; case IPP_PRINT_JOB : ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/test"); ippDelete(cupsDoFileRequest(http, request, "/printers/test", "../data/testprint.ps")); break; } gettimeofday(&end, NULL); reqtime = (end.tv_sec - start.tv_sec) + 0.000001 * (end.tv_usec - start.tv_usec); elapsed += reqtime; switch (cupsLastError()) { case IPP_OK : case IPP_NOT_FOUND : if (verbose) { printf("succeeded: %s (%.6f)\n", cupsLastErrorString(), reqtime); fflush(stdout); } break; default : if (!verbose) printf("testspeed(%d): %s ", (int)getpid(), ippOpString(ops[i & 3])); printf("failed: %s\n", cupsLastErrorString()); httpClose(http); return (1); } } httpClose(http); printf("testspeed(%d): %d requests in %.1fs (%.3fs/r, %.1fr/s)\n", (int)getpid(), i, elapsed, elapsed / i, i / elapsed); return (0); } /* * 'usage()' - Show program usage... */ static void usage(void) { puts("Usage: testspeed [-c children] [-h] [-o operation] [-r requests] [-v] " "[-E] hostname[:port]"); exit(0); } cups-2.4.7/scheduler/testmime.c0000644000175000017500000003007214502571342016334 0ustar zdohnalzdohnal/* * MIME test program for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include "mime.h" /* * Local functions... */ static void add_ppd_filter(mime_t *mime, mime_type_t *filtertype, const char *filter); static void add_ppd_filters(mime_t *mime, ppd_file_t *ppd); static void print_rules(mime_magic_t *rules); static void type_dir(mime_t *mime, const char *dirname); /* * 'main()' - Main entry for the test program. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping vars */ const char *filter_path; /* Filter path */ char super[MIME_MAX_SUPER], /* Super-type name */ type[MIME_MAX_TYPE]; /* Type name */ int compression; /* Compression of file */ int cost; /* Cost of filters */ mime_t *mime; /* MIME database */ mime_type_t *src, /* Source type */ *dst; /* Destination type */ struct stat srcinfo; /* Source information */ ppd_file_t *ppd; /* PPD file */ cups_array_t *filters; /* Filters for the file */ mime_filter_t *filter; /* Current filter */ mime = NULL; src = NULL; dst = NULL; ppd = NULL; filter_path = "../filter:" CUPS_SERVERBIN "/filter"; srcinfo.st_size = 0; for (i = 1; i < argc; i ++) if (!strcmp(argv[i], "-d")) { i ++; if (i < argc) { mime = mimeLoad(argv[i], filter_path); if (ppd) add_ppd_filters(mime, ppd); } } else if (!strcmp(argv[i], "-f")) { i ++; if (i < argc) filter_path = argv[i]; } else if (!strcmp(argv[i], "-p")) { i ++; if (i < argc) { ppd = ppdOpenFile(argv[i]); if (mime) add_ppd_filters(mime, ppd); } } else if (!src) { if (!mime) mime = mimeLoad("../conf", filter_path); if (ppd) add_ppd_filters(mime, ppd); src = mimeFileType(mime, argv[i], NULL, &compression); stat(argv[i], &srcinfo); if (src) printf("%s: %s/%s%s\n", argv[i], src->super, src->type, compression ? " (gzipped)" : ""); else if ((src = mimeType(mime, "application", "octet-stream")) != NULL) printf("%s: application/octet-stream\n", argv[i]); else { printf("%s: unknown\n", argv[i]); if (mime) mimeDelete(mime); return (1); } } else { sscanf(argv[i], "%15[^/]/%255s", super, type); dst = mimeType(mime, super, type); filters = mimeFilter2(mime, src, (size_t)srcinfo.st_size, dst, &cost); if (!filters) { printf("No filters to convert from %s/%s to %s.\n", src->super, src->type, argv[i]); } else { int first = 1; /* First filter shown? */ printf("Filter cost = %d\n", cost); for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) { if (!strcmp(filter->filter, "-")) continue; if (first) { first = 0; fputs(filter->filter, stdout); } else printf(" | %s", filter->filter); } putchar('\n'); cupsArrayDelete(filters); } } if (!mime) { mime = mimeLoad("../conf", filter_path); if (ppd) add_ppd_filters(mime, ppd); } if (!src) { puts("MIME database types:"); for (src = mimeFirstType(mime); src; src = mimeNextType(mime)) { printf("\t%s/%s (%d):\n", src->super, src->type, src->priority); print_rules(src->rules); puts(""); } puts(""); puts("MIME database filters:"); for (filter = mimeFirstFilter(mime); filter; filter = mimeNextFilter(mime)) printf("\t%s/%s to %s/%s: %s (%d)\n", filter->src->super, filter->src->type, filter->dst->super, filter->dst->type, filter->filter, filter->cost); type_dir(mime, "../doc"); } return (0); } /* * 'add_printer_filter()' - Add a printer filter from a PPD. */ static void add_ppd_filter(mime_t *mime, /* I - MIME database */ mime_type_t *filtertype, /* I - Filter or prefilter MIME type */ const char *filter) /* I - Filter to add */ { char super[MIME_MAX_SUPER], /* Super-type for filter */ type[MIME_MAX_TYPE], /* Type for filter */ dsuper[MIME_MAX_SUPER], /* Destination super-type for filter */ dtype[MIME_MAX_TYPE], /* Destination type for filter */ dest[MIME_MAX_SUPER + MIME_MAX_TYPE + 2], /* Destination super/type */ program[1024]; /* Program/filter name */ int cost; /* Cost of filter */ size_t maxsize = 0; /* Maximum supported file size */ mime_type_t *temptype, /* MIME type looping var */ *desttype; /* Destination MIME type */ mime_filter_t *filterptr; /* MIME filter */ /* * Parse the filter string; it should be in one of the following formats: * * source/type cost program * source/type cost maxsize(nnnn) program * source/type dest/type cost program * source/type dest/type cost maxsize(nnnn) program */ if (sscanf(filter, "%15[^/]/%255s%*[ \t]%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, dsuper, dtype, &cost, program) == 6) { snprintf(dest, sizeof(dest), "test/%s/%s", dsuper, dtype); if ((desttype = mimeType(mime, "printer", dest)) == NULL) desttype = mimeAddType(mime, "printer", dest); } else { if (sscanf(filter, "%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, &cost, program) == 4) { desttype = filtertype; } else { printf("testmime: Invalid filter string \"%s\".\n", filter); return; } } if (!strncmp(program, "maxsize(", 8)) { char *ptr; /* Pointer into maxsize(nnnn) program */ maxsize = (size_t)strtoll(program + 8, &ptr, 10); if (*ptr != ')') { printf("testmime: Invalid filter string \"%s\".\n", filter); return; } ptr ++; while (_cups_isspace(*ptr)) ptr ++; _cups_strcpy(program, ptr); } /* * Add the filter to the MIME database, supporting wildcards as needed... */ for (temptype = mimeFirstType(mime); temptype; temptype = mimeNextType(mime)) if (((super[0] == '*' && _cups_strcasecmp(temptype->super, "printer")) || !_cups_strcasecmp(temptype->super, super)) && (type[0] == '*' || !_cups_strcasecmp(temptype->type, type))) { if (desttype != filtertype) { filterptr = mimeAddFilter(mime, temptype, desttype, cost, program); if (!mimeFilterLookup(mime, desttype, filtertype)) mimeAddFilter(mime, desttype, filtertype, 0, "-"); } else filterptr = mimeAddFilter(mime, temptype, filtertype, cost, program); if (filterptr) filterptr->maxsize = maxsize; } } /* * 'add_ppd_filters()' - Add all filters from a PPD. */ static void add_ppd_filters(mime_t *mime, /* I - MIME database */ ppd_file_t *ppd) /* I - PPD file */ { _ppd_cache_t *pc; /* Cache data for PPD */ const char *value; /* Filter definition value */ mime_type_t *filter, /* Filter type */ *prefilter; /* Pre-filter type */ pc = _ppdCacheCreateWithPPD(ppd); if (!pc) return; filter = mimeAddType(mime, "printer", "test"); if (pc->filters) { for (value = (const char *)cupsArrayFirst(pc->filters); value; value = (const char *)cupsArrayNext(pc->filters)) add_ppd_filter(mime, filter, value); } else { add_ppd_filter(mime, filter, "application/vnd.cups-raw 0 -"); add_ppd_filter(mime, filter, "application/vnd.cups-postscript 0 -"); } if (pc->prefilters) { prefilter = mimeAddType(mime, "prefilter", "test"); for (value = (const char *)cupsArrayFirst(pc->prefilters); value; value = (const char *)cupsArrayNext(pc->prefilters)) add_ppd_filter(mime, prefilter, value); } } /* * 'print_rules()' - Print the rules for a file type... */ static void print_rules(mime_magic_t *rules) /* I - Rules to print */ { int i; /* Looping var */ static char indent[255] = "\t"; /* Indentation for rules */ if (rules == NULL) return; while (rules != NULL) { printf("%s[%p] ", indent, rules); if (rules->invert) printf("NOT "); switch (rules->op) { case MIME_MAGIC_MATCH : printf("match(%s)", rules->value.matchv); break; case MIME_MAGIC_LOCALE : printf("locale(%s)", rules->value.localev); break; case MIME_MAGIC_ASCII : printf("ascii(%d,%d)", rules->offset, rules->length); break; case MIME_MAGIC_PRINTABLE : printf("printable(%d,%d)", rules->offset, rules->length); break; case MIME_MAGIC_STRING : printf("string(%d,", rules->offset); for (i = 0; i < rules->length; i ++) if (rules->value.stringv[i] < ' ' || rules->value.stringv[i] > 126) printf("<%02X>", rules->value.stringv[i]); else putchar(rules->value.stringv[i]); putchar(')'); break; case MIME_MAGIC_CHAR : printf("char(%d,%d)", rules->offset, rules->value.charv); break; case MIME_MAGIC_SHORT : printf("short(%d,%d)", rules->offset, rules->value.shortv); break; case MIME_MAGIC_INT : printf("int(%d,%d)", rules->offset, rules->value.intv); break; case MIME_MAGIC_CONTAINS : printf("contains(%d,%d,", rules->offset, rules->region); for (i = 0; i < rules->length; i ++) if (rules->value.stringv[i] < ' ' || rules->value.stringv[i] > 126) printf("<%02X>", rules->value.stringv[i]); else putchar(rules->value.stringv[i]); putchar(')'); break; default : break; } if (rules->child != NULL) { if (rules->op == MIME_MAGIC_OR) puts("OR ("); else puts("AND ("); strcat(indent, "\t"); print_rules(rules->child); indent[strlen(indent) - 1] = '\0'; printf("%s)\n", indent); } else putchar('\n'); rules = rules->next; } } /* * 'type_dir()' - Show the MIME types for a given directory. */ static void type_dir(mime_t *mime, /* I - MIME database */ const char *dirname) /* I - Directory */ { cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ char filename[1024]; /* File to type */ mime_type_t *filetype; /* File type */ int compression; /* Compressed file? */ mime_type_t *pstype; /* application/vnd.cups-postscript */ cups_array_t *filters; /* Filters to pstype */ mime_filter_t *filter; /* Current filter */ int cost; /* Filter cost */ dir = cupsDirOpen(dirname); if (!dir) return; pstype = mimeType(mime, "application", "vnd.cups-postscript"); while ((dent = cupsDirRead(dir)) != NULL) { if (dent->filename[0] == '.') continue; snprintf(filename, sizeof(filename), "%s/%s", dirname, dent->filename); if (S_ISDIR(dent->fileinfo.st_mode)) type_dir(mime, filename); if (!S_ISREG(dent->fileinfo.st_mode)) continue; filetype = mimeFileType(mime, filename, NULL, &compression); if (filetype) { printf("%s: %s/%s%s\n", filename, filetype->super, filetype->type, compression ? " (compressed)" : ""); filters = mimeFilter(mime, filetype, pstype, &cost); if (!filters) puts(" No filters to convert application/vnd.cups-postscript."); else { printf(" Filter cost = %d\n", cost); filter = (mime_filter_t *)cupsArrayFirst(filters); printf(" %s", filter->filter); for (filter = (mime_filter_t *)cupsArrayNext(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) printf(" | %s", filter->filter); putchar('\n'); cupsArrayDelete(filters); } } else printf("%s: unknown%s\n", filename, compression ? " (compressed)" : ""); } cupsDirClose(dir); } cups-2.4.7/scheduler/testlpd.c0000644000175000017500000002650714502571342016174 0ustar zdohnalzdohnal/* * cups-lpd test program for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include /* * Local functions... */ static int do_command(int outfd, int infd, const char *command); static int print_job(int outfd, int infd, char *dest, char **args) _CUPS_NONNULL(4); static int print_waiting(int outfd, int infd, char *dest); static int remove_job(int outfd, int infd, char *dest, char **args) _CUPS_NONNULL(4); static int status_long(int outfd, int infd, char *dest, char **args) _CUPS_NONNULL(4); static int status_short(int outfd, int infd, char *dest, char **args) _CUPS_NONNULL(4); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Simulate an LPD client. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int status; /* Test status */ char *op, /* Operation to test */ **opargs, /* Remaining arguments */ *dest; /* Destination */ int cupslpd_argc; /* Argument count for cups-lpd */ char *cupslpd_argv[1000]; /* Arguments for cups-lpd */ int cupslpd_stdin[2], /* Standard input for cups-lpd */ cupslpd_stdout[2], /* Standard output for cups-lpd */ cupslpd_pid, /* Process ID for cups-lpd */ cupslpd_status; /* Status of cups-lpd process */ /* * Collect command-line arguments... */ op = NULL; opargs = argv + argc; dest = NULL; cupslpd_argc = 1; cupslpd_argv[0] = (char *)"cups-lpd"; for (i = 1; i < argc; i ++) if (!strncmp(argv[i], "-o", 2)) { cupslpd_argv[cupslpd_argc++] = argv[i]; if (!argv[i][2]) { i ++; if (i >= argc) usage(); cupslpd_argv[cupslpd_argc++] = argv[i]; } } else if (argv[i][0] == '-') usage(); else if (!op) op = argv[i]; else if (!dest) dest = argv[i]; else { opargs = argv + i; break; } if (!op || (!strcmp(op, "print-job") && (!dest || !opargs)) || (!strcmp(op, "remove-job") && (!dest || !opargs)) || (strcmp(op, "print-job") && strcmp(op, "print-waiting") && strcmp(op, "remove-job") && strcmp(op, "status-long") && strcmp(op, "status-short"))) { printf("op=\"%s\", dest=\"%s\", opargs=%p\n", op, dest, opargs); usage(); } /* * Run the cups-lpd program using pipes... */ cupslpd_argv[cupslpd_argc] = NULL; pipe(cupslpd_stdin); pipe(cupslpd_stdout); if ((cupslpd_pid = fork()) < 0) { /* * Error! */ perror("testlpd: Unable to fork"); return (1); } else if (cupslpd_pid == 0) { /* * Child goes here... */ dup2(cupslpd_stdin[0], 0); close(cupslpd_stdin[0]); close(cupslpd_stdin[1]); dup2(cupslpd_stdout[1], 1); close(cupslpd_stdout[0]); close(cupslpd_stdout[1]); execv("./cups-lpd", cupslpd_argv); perror("testlpd: Unable to exec ./cups-lpd"); exit(errno); } else { close(cupslpd_stdin[0]); close(cupslpd_stdout[1]); } /* * Do the operation test... */ if (!strcmp(op, "print-job")) status = print_job(cupslpd_stdin[1], cupslpd_stdout[0], dest, opargs); else if (!strcmp(op, "print-waiting")) status = print_waiting(cupslpd_stdin[1], cupslpd_stdout[0], dest); else if (!strcmp(op, "remove-job")) status = remove_job(cupslpd_stdin[1], cupslpd_stdout[0], dest, opargs); else if (!strcmp(op, "status-long")) status = status_long(cupslpd_stdin[1], cupslpd_stdout[0], dest, opargs); else if (!strcmp(op, "status-short")) status = status_short(cupslpd_stdin[1], cupslpd_stdout[0], dest, opargs); else { printf("Unknown operation \"%s\"!\n", op); status = 1; } /* * Kill the test program... */ close(cupslpd_stdin[1]); close(cupslpd_stdout[0]); while (wait(&cupslpd_status) != cupslpd_pid); printf("cups-lpd exit status was %d...\n", cupslpd_status); /* * Return the test status... */ return (status); } /* * 'do_command()' - Send the LPD command and wait for a response. */ static int /* O - Status from cups-lpd */ do_command(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ const char *command) /* I - Command line to send */ { size_t len; /* Length of command line */ char status; /* Status byte */ printf("COMMAND: %02X %s", command[0], command + 1); len = strlen(command); if ((size_t)write(outfd, command, len) < len) { puts(" Write failed!"); return (-1); } if (read(infd, &status, 1) < 1) puts("STATUS: ERROR"); else printf("STATUS: %d\n", status); return (status); } /* * 'print_job()' - Submit a file for printing. */ static int /* O - Status from cups-lpd */ print_job(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ char *dest, /* I - Destination */ char **args) /* I - Arguments */ { int fd; /* Print file descriptor */ char command[1024], /* Command buffer */ control[1024], /* Control file */ buffer[8192]; /* Print buffer */ int status; /* Status of command */ struct stat fileinfo; /* File information */ char *jobname; /* Job name */ int sequence; /* Sequence number */ ssize_t bytes; /* Bytes read/written */ /* * Check the print file... */ if (stat(args[0], &fileinfo)) { perror(args[0]); return (-1); } if ((fd = open(args[0], O_RDONLY)) < 0) { perror(args[0]); return (-1); } /* * Send the "receive print job" command... */ snprintf(command, sizeof(command), "\002%s\n", dest); if ((status = do_command(outfd, infd, command)) != 0) { close(fd); return (status); } /* * Format a control file string that will be used to submit the job... */ if ((jobname = strrchr(args[0], '/')) != NULL) jobname ++; else jobname = args[0]; sequence = (int)getpid() % 1000; snprintf(control, sizeof(control), "Hlocalhost\n" "P%s\n" "J%s\n" "ldfA%03dlocalhost\n" "UdfA%03dlocalhost\n" "N%s\n", cupsUser(), jobname, sequence, sequence, jobname); /* * Send the control file... */ bytes = (ssize_t)strlen(control); snprintf(command, sizeof(command), "\002%d cfA%03dlocalhost\n", (int)bytes, sequence); if ((status = do_command(outfd, infd, command)) != 0) { close(fd); return (status); } bytes ++; if (write(outfd, control, (size_t)bytes) < bytes) { printf("CONTROL: Unable to write %d bytes!\n", (int)bytes); close(fd); return (-1); } printf("CONTROL: Wrote %d bytes.\n", (int)bytes); if (read(infd, command, 1) < 1) { puts("STATUS: ERROR"); close(fd); return (-1); } else { status = command[0]; printf("STATUS: %d\n", status); } /* * Send the data file... */ snprintf(command, sizeof(command), "\003%d dfA%03dlocalhost\n", (int)fileinfo.st_size, sequence); if ((status = do_command(outfd, infd, command)) != 0) { close(fd); return (status); } while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) { if (write(outfd, buffer, (size_t)bytes) < bytes) { printf("DATA: Unable to write %d bytes!\n", (int)bytes); close(fd); return (-1); } } write(outfd, "", 1); close(fd); printf("DATA: Wrote %d bytes.\n", (int)fileinfo.st_size); if (read(infd, command, 1) < 1) { puts("STATUS: ERROR"); close(fd); return (-1); } else { status = command[0]; printf("STATUS: %d\n", status); } return (status); } /* * 'print_waiting()' - Print waiting jobs. */ static int /* O - Status from cups-lpd */ print_waiting(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ char *dest) /* I - Destination */ { char command[1024]; /* Command buffer */ /* * Send the "print waiting jobs" command... */ snprintf(command, sizeof(command), "\001%s\n", dest); return (do_command(outfd, infd, command)); } /* * 'remove_job()' - Cancel a print job. */ static int /* O - Status from cups-lpd */ remove_job(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ char *dest, /* I - Destination */ char **args) /* I - Arguments */ { int i; /* Looping var */ char command[1024]; /* Command buffer */ /* * Send the "remove jobs" command... */ snprintf(command, sizeof(command), "\005%s", dest); for (i = 0; args[i]; i ++) { strlcat(command, " ", sizeof(command)); strlcat(command, args[i], sizeof(command)); } strlcat(command, "\n", sizeof(command)); return (do_command(outfd, infd, command)); } /* * 'status_long()' - Show the long printer status. */ static int /* O - Status from cups-lpd */ status_long(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ char *dest, /* I - Destination */ char **args) /* I - Arguments */ { char command[1024], /* Command buffer */ buffer[8192]; /* Status buffer */ ssize_t bytes; /* Bytes read/written */ /* * Send the "send short status" command... */ if (args[0]) snprintf(command, sizeof(command), "\004%s %s\n", dest, args[0]); else snprintf(command, sizeof(command), "\004%s\n", dest); bytes = (ssize_t)strlen(command); if (write(outfd, command, (size_t)bytes) < bytes) return (-1); /* * Read the status back... */ while ((bytes = read(infd, buffer, sizeof(buffer))) > 0) { fwrite(buffer, 1, (size_t)bytes, stdout); fflush(stdout); } return (0); } /* * 'status_short()' - Show the short printer status. */ static int /* O - Status from cups-lpd */ status_short(int outfd, /* I - Command file descriptor */ int infd, /* I - Response file descriptor */ char *dest, /* I - Destination */ char **args) /* I - Arguments */ { char command[1024], /* Command buffer */ buffer[8192]; /* Status buffer */ ssize_t bytes; /* Bytes read/written */ /* * Send the "send short status" command... */ if (args[0]) snprintf(command, sizeof(command), "\003%s %s\n", dest, args[0]); else snprintf(command, sizeof(command), "\003%s\n", dest); bytes = (ssize_t)strlen(command); if (write(outfd, command, (size_t)bytes) < bytes) return (-1); /* * Read the status back... */ while ((bytes = read(infd, buffer, sizeof(buffer))) > 0) { fwrite(buffer, 1, (size_t)bytes, stdout); fflush(stdout); } return (0); } /* * 'usage()' - Show program usage... */ static void usage(void) { puts("Usage: testlpd [options] print-job printer filename [... filename]"); puts(" testlpd [options] print-waiting [printer or user]"); puts(" testlpd [options] remove-job printer [user [job-id]]"); puts(" testlpd [options] status-long [printer or user]"); puts(" testlpd [options] status-short [printer or user]"); puts(""); puts("Options:"); puts(" -o name=value"); exit(0); } cups-2.4.7/scheduler/sysman.h0000644000175000017500000000307214502571342016024 0ustar zdohnalzdohnal/* * System management definitions for the CUPS scheduler. * * Copyright 2007-2017 by Apple Inc. * Copyright 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Constants... */ #define CUPSD_DIRTY_NONE 0 /* Nothing is dirty */ #define CUPSD_DIRTY_PRINTERS 1 /* printers.conf is dirty */ #define CUPSD_DIRTY_CLASSES 2 /* classes.conf is dirty */ #define CUPSD_DIRTY_PRINTCAP 4 /* printcap is dirty */ #define CUPSD_DIRTY_JOBS 8 /* jobs.cache or "c" file(s) are dirty */ #define CUPSD_DIRTY_SUBSCRIPTIONS 16 /* subscriptions.conf is dirty */ /* * Globals... */ VAR int DirtyFiles VALUE(CUPSD_DIRTY_NONE), /* What files are dirty? */ DirtyCleanInterval VALUE(DEFAULT_KEEPALIVE); /* How often do we write dirty files? */ VAR time_t DirtyCleanTime VALUE(0); /* When to clean dirty files next */ VAR int ACPower VALUE(-1), /* Is the system on AC power? */ Sleeping VALUE(0); /* Non-zero if machine is entering or * * in a sleep state... */ VAR time_t SleepJobs VALUE(0); /* Time when all jobs must be * * canceled for system sleep. */ #ifdef __APPLE__ VAR int SysEventPipes[2] VALUE2(-1,-1); /* System event notification pipes */ #endif /* __APPLE__ */ /* * Prototypes... */ extern void cupsdAllowSleep(void); extern void cupsdCleanDirty(void); extern void cupsdMarkDirty(int what); extern void cupsdSetBusyState(int working); extern void cupsdStartSystemMonitor(void); extern void cupsdStopSystemMonitor(void); cups-2.4.7/scheduler/sysman.c0000644000175000017500000006667114502571342016035 0ustar zdohnalzdohnal/* * System management functions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright @ 2007-2018 by Apple Inc. * Copyright @ 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #ifdef __APPLE__ # include #endif /* __APPLE__ */ /* * The system management functions cover disk and power management which * are primarily used for portable computers. * * Disk management involves delaying the write of certain configuration * and state files to minimize the number of times the disk has to spin * up or flash to be written to. * * Power management support is currently only implemented on macOS, but * essentially we use four functions to let the OS know when it is OK to * put the system to sleep, typically when we are not in the middle of * printing a job. And on macOS we can also "sleep print" - basically the * system only wakes up long enough to service network requests and process * print jobs. */ /* * 'cupsdCleanDirty()' - Write dirty config and state files. */ void cupsdCleanDirty(void) { if (DirtyFiles & CUPSD_DIRTY_PRINTERS) cupsdSaveAllPrinters(); if (DirtyFiles & CUPSD_DIRTY_CLASSES) cupsdSaveAllClasses(); if (DirtyFiles & CUPSD_DIRTY_PRINTCAP) cupsdWritePrintcap(); if (DirtyFiles & CUPSD_DIRTY_JOBS) { cupsd_job_t *job; /* Current job */ cupsdSaveAllJobs(); for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) if (job->dirty) cupsdSaveJob(job); } if (DirtyFiles & CUPSD_DIRTY_SUBSCRIPTIONS) cupsdSaveAllSubscriptions(); DirtyFiles = CUPSD_DIRTY_NONE; DirtyCleanTime = 0; cupsdSetBusyState(0); } /* * 'cupsdMarkDirty()' - Mark config or state files as needing a write. */ void cupsdMarkDirty(int what) /* I - What file(s) are dirty? */ { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdMarkDirty(%c%c%c%c%c)", (what & CUPSD_DIRTY_PRINTERS) ? 'P' : '-', (what & CUPSD_DIRTY_CLASSES) ? 'C' : '-', (what & CUPSD_DIRTY_PRINTCAP) ? 'p' : '-', (what & CUPSD_DIRTY_JOBS) ? 'J' : '-', (what & CUPSD_DIRTY_SUBSCRIPTIONS) ? 'S' : '-'); if (what == CUPSD_DIRTY_PRINTCAP && !Printcap) return; DirtyFiles |= what; if (!DirtyCleanTime) DirtyCleanTime = time(NULL) + DirtyCleanInterval; cupsdSetBusyState(0); } /* * 'cupsdSetBusyState()' - Let the system know when we are busy doing something. */ void cupsdSetBusyState(int working) /* I - Doing significant work? */ { int i; /* Looping var */ cupsd_job_t *job; /* Current job */ cupsd_printer_t *p; /* Current printer */ int newbusy; /* New busy state */ static int busy = 0; /* Current busy state */ static const char * const busy_text[] = { /* Text for busy states */ "Not busy", "Dirty files", "Printing jobs", "Printing jobs and dirty files", "Active clients", "Active clients and dirty files", "Active clients and printing jobs", "Active clients, printing jobs, and dirty files" }; #ifdef __APPLE__ static IOPMAssertionID keep_awake = 0;/* Keep the system awake while printing */ #endif /* __APPLE__ */ /* * Figure out how busy we are... */ newbusy = (DirtyCleanTime ? 1 : 0) | ((working || cupsArrayCount(ActiveClients) > 0) ? 4 : 0); for (job = (cupsd_job_t *)cupsArrayFirst(PrintingJobs); job; job = (cupsd_job_t *)cupsArrayNext(PrintingJobs)) { if ((p = job->printer) != NULL) { for (i = 0; i < p->num_reasons; i ++) if (!strcmp(p->reasons[i], "connecting-to-device")) break; if (!p->num_reasons || i >= p->num_reasons) break; } } if (job) newbusy |= 2; cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdSetBusyState: newbusy=\"%s\", busy=\"%s\"", busy_text[newbusy], busy_text[busy]); /* * Manage state changes... */ if (newbusy != busy) busy = newbusy; #ifdef __APPLE__ if (cupsArrayCount(PrintingJobs) > 0 && !keep_awake) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Asserting NetworkClientActive."); IOPMAssertionCreateWithName(kIOPMAssertNetworkClientActive, kIOPMAssertionLevelOn, CFSTR("org.cups.cupsd"), &keep_awake); } else if (cupsArrayCount(PrintingJobs) == 0 && keep_awake) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Releasing power assertion."); IOPMAssertionRelease(keep_awake); keep_awake = 0; } #endif /* __APPLE__ */ } #ifdef __APPLE__ /* * This is the Apple-specific system event code. It works by creating * a worker thread that waits for events from the OS and relays them * to the main thread via a traditional pipe. */ /* * Include MacOS-specific headers... */ # include # include # include # include # include # include # include /* * Constants... */ # define SYSEVENT_CANSLEEP 0x1 /* Decide whether to allow sleep or not */ # define SYSEVENT_WILLSLEEP 0x2 /* Computer will go to sleep */ # define SYSEVENT_WOKE 0x4 /* Computer woke from sleep */ # define SYSEVENT_NETCHANGED 0x8 /* Network changed */ # define SYSEVENT_NAMECHANGED 0x10 /* Computer name changed */ /* * Structures... */ typedef struct cupsd_sysevent_s /*** System event data ****/ { unsigned char event; /* Event bit field */ io_connect_t powerKernelPort; /* Power context data */ long powerNotificationID; /* Power event data */ } cupsd_sysevent_t; typedef struct cupsd_thread_data_s /*** Thread context data ****/ { cupsd_sysevent_t sysevent; /* System event */ CFRunLoopTimerRef timerRef; /* Timer to delay some change * * notifications */ } cupsd_thread_data_t; /* * Local globals... */ static pthread_t SysEventThread = NULL; /* Thread to host a runloop */ static pthread_mutex_t SysEventThreadMutex = { 0 }; /* Coordinates access to shared gloabals */ static pthread_cond_t SysEventThreadCond = { 0 }; /* Thread initialization complete condition */ static CFRunLoopRef SysEventRunloop = NULL; /* The runloop. Access must be protected! */ static CFStringRef ComputerNameKey = NULL, /* Computer name key */ BTMMKey = NULL, /* Back to My Mac key */ NetworkGlobalKeyIPv4 = NULL, /* Network global IPv4 key */ NetworkGlobalKeyIPv6 = NULL, /* Network global IPv6 key */ NetworkGlobalKeyDNS = NULL, /* Network global DNS key */ HostNamesKey = NULL, /* Host name key */ NetworkInterfaceKeyIPv4 = NULL, /* Network interface key */ NetworkInterfaceKeyIPv6 = NULL; /* Network interface key */ static cupsd_sysevent_t LastSysEvent; /* Last system event (for delayed sleep) */ static int NameChanged = 0;/* Did we get a 'name changed' event during sleep? */ static int PSToken = 0; /* Power source notifications */ /* * Local functions... */ static void *sysEventThreadEntry(void); static void sysEventPowerNotifier(void *context, io_service_t service, natural_t messageType, void *messageArgument); static void sysEventConfigurationNotifier(SCDynamicStoreRef store, CFArrayRef changedKeys, void *context); static void sysEventTimerNotifier(CFRunLoopTimerRef timer, void *context); static void sysUpdate(void); static void sysUpdateNames(void); /* * 'cupsdAllowSleep()' - Tell the OS it is now OK to sleep. */ void cupsdAllowSleep(void) { cupsdCleanDirty(); cupsdLogMessage(CUPSD_LOG_DEBUG, "Allowing system sleep."); IOAllowPowerChange(LastSysEvent.powerKernelPort, LastSysEvent.powerNotificationID); } /* * 'cupsdStartSystemMonitor()' - Start monitoring for system change. */ void cupsdStartSystemMonitor(void) { int flags; /* fcntl flags on pipe */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartSystemMonitor()"); if (cupsdOpenPipe(SysEventPipes)) { cupsdLogMessage(CUPSD_LOG_ERROR, "System event monitor pipe() failed - %s!", strerror(errno)); return; } cupsdAddSelect(SysEventPipes[0], (cupsd_selfunc_t)sysUpdate, NULL, NULL); /* * Set non-blocking mode on the descriptor we will be receiving notification * events on. */ flags = fcntl(SysEventPipes[0], F_GETFL, 0); fcntl(SysEventPipes[0], F_SETFL, flags | O_NONBLOCK); /* * Start the thread that runs the runloop... */ pthread_mutex_init(&SysEventThreadMutex, NULL); pthread_cond_init(&SysEventThreadCond, NULL); pthread_create(&SysEventThread, NULL, (void *(*)(void *))sysEventThreadEntry, NULL); /* * Monitor for power source changes via dispatch queue... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartSystemMonitor: IOPSGetTimeRemainingEstimate=%f", IOPSGetTimeRemainingEstimate()); ACPower = IOPSGetTimeRemainingEstimate() == kIOPSTimeRemainingUnlimited; notify_register_dispatch(kIOPSNotifyPowerSource, &PSToken, dispatch_get_main_queue(), ^(int t) { (void)t; ACPower = IOPSGetTimeRemainingEstimate() == kIOPSTimeRemainingUnlimited; }); } /* * 'cupsdStopSystemMonitor()' - Stop monitoring for system change. */ void cupsdStopSystemMonitor(void) { CFRunLoopRef rl; /* The event handler runloop */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStopSystemMonitor()"); if (SysEventThread) { /* * Make sure the thread has completed it's initialization and * stored it's runloop reference in the shared global. */ pthread_mutex_lock(&SysEventThreadMutex); if (!SysEventRunloop) pthread_cond_wait(&SysEventThreadCond, &SysEventThreadMutex); rl = SysEventRunloop; SysEventRunloop = NULL; pthread_mutex_unlock(&SysEventThreadMutex); if (rl) CFRunLoopStop(rl); pthread_join(SysEventThread, NULL); pthread_mutex_destroy(&SysEventThreadMutex); pthread_cond_destroy(&SysEventThreadCond); } if (SysEventPipes[0] >= 0) { cupsdRemoveSelect(SysEventPipes[0]); cupsdClosePipe(SysEventPipes); } if (PSToken != 0) { notify_cancel(PSToken); PSToken = 0; } } /* * 'sysEventThreadEntry()' - A thread to receive power and computer name * change notifications. */ static void * /* O - Return status/value */ sysEventThreadEntry(void) { io_object_t powerNotifierObj; /* Power notifier object */ IONotificationPortRef powerNotifierPort; /* Power notifier port */ SCDynamicStoreRef store = NULL;/* System Config dynamic store */ CFRunLoopSourceRef powerRLS = NULL,/* Power runloop source */ storeRLS = NULL;/* System Config runloop source */ CFStringRef key[6], /* System Config keys */ pattern[2]; /* System Config patterns */ CFArrayRef keys = NULL, /* System Config key array*/ patterns = NULL;/* System Config pattern array */ SCDynamicStoreContext storeContext; /* Dynamic store context */ CFRunLoopTimerContext timerContext; /* Timer context */ cupsd_thread_data_t threadData; /* Thread context data for the * * runloop notifiers */ /* * Register for power state change notifications */ memset(&threadData, 0, sizeof(threadData)); threadData.sysevent.powerKernelPort = IORegisterForSystemPower(&threadData, &powerNotifierPort, sysEventPowerNotifier, &powerNotifierObj); if (threadData.sysevent.powerKernelPort) { powerRLS = IONotificationPortGetRunLoopSource(powerNotifierPort); CFRunLoopAddSource(CFRunLoopGetCurrent(), powerRLS, kCFRunLoopDefaultMode); } /* * Register for system configuration change notifications */ memset(&storeContext, 0, sizeof(storeContext)); storeContext.info = &threadData; store = SCDynamicStoreCreate(kCFAllocatorDefault, CFSTR("cupsd"), sysEventConfigurationNotifier, &storeContext); if (!ComputerNameKey) ComputerNameKey = SCDynamicStoreKeyCreateComputerName(kCFAllocatorDefault); if (!BTMMKey) BTMMKey = SCDynamicStoreKeyCreate(kCFAllocatorDefault, CFSTR("Setup:/Network/BackToMyMac")); if (!NetworkGlobalKeyIPv4) NetworkGlobalKeyIPv4 = SCDynamicStoreKeyCreateNetworkGlobalEntity(kCFAllocatorDefault, kSCDynamicStoreDomainState, kSCEntNetIPv4); if (!NetworkGlobalKeyIPv6) NetworkGlobalKeyIPv6 = SCDynamicStoreKeyCreateNetworkGlobalEntity(kCFAllocatorDefault, kSCDynamicStoreDomainState, kSCEntNetIPv6); if (!NetworkGlobalKeyDNS) NetworkGlobalKeyDNS = SCDynamicStoreKeyCreateNetworkGlobalEntity(kCFAllocatorDefault, kSCDynamicStoreDomainState, kSCEntNetDNS); if (!HostNamesKey) HostNamesKey = SCDynamicStoreKeyCreateHostNames(kCFAllocatorDefault); if (!NetworkInterfaceKeyIPv4) NetworkInterfaceKeyIPv4 = SCDynamicStoreKeyCreateNetworkInterfaceEntity(kCFAllocatorDefault, kSCDynamicStoreDomainState, kSCCompAnyRegex, kSCEntNetIPv4); if (!NetworkInterfaceKeyIPv6) NetworkInterfaceKeyIPv6 = SCDynamicStoreKeyCreateNetworkInterfaceEntity(kCFAllocatorDefault, kSCDynamicStoreDomainState, kSCCompAnyRegex, kSCEntNetIPv6); if (store && ComputerNameKey && HostNamesKey && NetworkGlobalKeyIPv4 && NetworkGlobalKeyIPv6 && NetworkGlobalKeyDNS && NetworkInterfaceKeyIPv4 && NetworkInterfaceKeyIPv6) { key[0] = ComputerNameKey; key[1] = BTMMKey; key[2] = NetworkGlobalKeyIPv4; key[3] = NetworkGlobalKeyIPv6; key[4] = NetworkGlobalKeyDNS; key[5] = HostNamesKey; pattern[0] = NetworkInterfaceKeyIPv4; pattern[1] = NetworkInterfaceKeyIPv6; keys = CFArrayCreate(kCFAllocatorDefault, (const void **)key, sizeof(key) / sizeof(key[0]), &kCFTypeArrayCallBacks); patterns = CFArrayCreate(kCFAllocatorDefault, (const void **)pattern, sizeof(pattern) / sizeof(pattern[0]), &kCFTypeArrayCallBacks); if (keys && patterns && SCDynamicStoreSetNotificationKeys(store, keys, patterns)) { if ((storeRLS = SCDynamicStoreCreateRunLoopSource(kCFAllocatorDefault, store, 0)) != NULL) { CFRunLoopAddSource(CFRunLoopGetCurrent(), storeRLS, kCFRunLoopDefaultMode); } } } if (keys) CFRelease(keys); if (patterns) CFRelease(patterns); /* * Set up a timer to delay the wake change notifications. * * The initial time is set a decade or so into the future, we'll adjust * this later. */ memset(&timerContext, 0, sizeof(timerContext)); timerContext.info = &threadData; threadData.timerRef = CFRunLoopTimerCreate(kCFAllocatorDefault, CFAbsoluteTimeGetCurrent() + (86400L * 365L * 10L), 86400L * 365L * 10L, 0, 0, sysEventTimerNotifier, &timerContext); CFRunLoopAddTimer(CFRunLoopGetCurrent(), threadData.timerRef, kCFRunLoopDefaultMode); /* * Store our runloop in a global so the main thread can use it to stop us. */ pthread_mutex_lock(&SysEventThreadMutex); SysEventRunloop = CFRunLoopGetCurrent(); pthread_cond_signal(&SysEventThreadCond); pthread_mutex_unlock(&SysEventThreadMutex); /* * Disappear into the runloop until it's stopped by the main thread. */ CFRunLoopRun(); /* * Clean up before exiting. */ if (threadData.timerRef) { CFRunLoopRemoveTimer(CFRunLoopGetCurrent(), threadData.timerRef, kCFRunLoopDefaultMode); CFRelease(threadData.timerRef); } if (threadData.sysevent.powerKernelPort) { CFRunLoopRemoveSource(CFRunLoopGetCurrent(), powerRLS, kCFRunLoopDefaultMode); IODeregisterForSystemPower(&powerNotifierObj); IOServiceClose(threadData.sysevent.powerKernelPort); IONotificationPortDestroy(powerNotifierPort); } if (storeRLS) { CFRunLoopRemoveSource(CFRunLoopGetCurrent(), storeRLS, kCFRunLoopDefaultMode); CFRunLoopSourceInvalidate(storeRLS); CFRelease(storeRLS); } if (store) CFRelease(store); pthread_exit(NULL); } /* * 'sysEventPowerNotifier()' - Handle power notification events. */ static void sysEventPowerNotifier( void *context, /* I - Thread context data */ io_service_t service, /* I - Unused service info */ natural_t messageType, /* I - Type of message */ void *messageArgument) /* I - Message data */ { int sendit = 1; /* Send event to main thread? * * (0 = no, 1 = yes, 2 = delayed */ cupsd_thread_data_t *threadData; /* Thread context data */ threadData = (cupsd_thread_data_t *)context; (void)service; /* anti-compiler-warning-code */ switch (messageType) { case kIOMessageCanSystemPowerOff : case kIOMessageCanSystemSleep : threadData->sysevent.event |= SYSEVENT_CANSLEEP; break; case kIOMessageSystemWillRestart : case kIOMessageSystemWillPowerOff : case kIOMessageSystemWillSleep : threadData->sysevent.event |= SYSEVENT_WILLSLEEP; threadData->sysevent.event &= ~SYSEVENT_WOKE; break; case kIOMessageSystemHasPoweredOn : /* * Because powered on is followed by a net-changed event, delay * before sending it. */ sendit = 2; threadData->sysevent.event |= SYSEVENT_WOKE; break; case kIOMessageSystemWillNotPowerOff : case kIOMessageSystemWillNotSleep : # ifdef kIOMessageSystemWillPowerOn case kIOMessageSystemWillPowerOn : # endif /* kIOMessageSystemWillPowerOn */ default: sendit = 0; break; } switch (messageType) { case kIOMessageCanSystemPowerOff : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageCanSystemPowerOff message."); break; case kIOMessageCanSystemSleep : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageCannSystemSleep message."); break; case kIOMessageSystemWillRestart : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillRestart message."); break; case kIOMessageSystemWillPowerOff : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillPowerOff message."); break; case kIOMessageSystemWillSleep : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillSleep message."); break; case kIOMessageSystemHasPoweredOn : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemHasPoweredOn message."); break; case kIOMessageSystemWillNotPowerOff : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillNotPowerOff message."); break; case kIOMessageSystemWillNotSleep : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillNotSleep message."); break; # ifdef kIOMessageSystemWillPowerOn case kIOMessageSystemWillPowerOn : cupsdLogMessage(CUPSD_LOG_DEBUG, "Got kIOMessageSystemWillPowerOn message."); break; # endif /* kIOMessageSystemWillPowerOn */ default: cupsdLogMessage(CUPSD_LOG_DEBUG, "Got unknown power message %d.", (int)messageType); break; } if (sendit == 0) IOAllowPowerChange(threadData->sysevent.powerKernelPort, (long)messageArgument); else { threadData->sysevent.powerNotificationID = (long)messageArgument; if (sendit == 1) { /* * Send the event to the main thread now. */ write(SysEventPipes[1], &threadData->sysevent, sizeof(threadData->sysevent)); threadData->sysevent.event = 0; } else { /* * Send the event to the main thread after 1 to 2 seconds. */ CFRunLoopTimerSetNextFireDate(threadData->timerRef, CFAbsoluteTimeGetCurrent() + 2); } } } /* * 'sysEventConfigurationNotifier()' - Network configuration change notification * callback. */ static void sysEventConfigurationNotifier( SCDynamicStoreRef store, /* I - System data (unused) */ CFArrayRef changedKeys, /* I - Changed data */ void *context) /* I - Thread context data */ { cupsd_thread_data_t *threadData; /* Thread context data */ threadData = (cupsd_thread_data_t *)context; (void)store; /* anti-compiler-warning-code */ CFRange range = CFRangeMake(0, CFArrayGetCount(changedKeys)); if (CFArrayContainsValue(changedKeys, range, ComputerNameKey) || CFArrayContainsValue(changedKeys, range, BTMMKey)) threadData->sysevent.event |= SYSEVENT_NAMECHANGED; else { threadData->sysevent.event |= SYSEVENT_NETCHANGED; /* * Indicate the network interface list needs updating... */ NetIFUpdate = 1; } /* * Because we registered for several different kinds of change notifications * this callback usually gets called several times in a row. We use a timer to * de-bounce these so we only end up generating one event for the main thread. */ CFRunLoopTimerSetNextFireDate(threadData->timerRef, CFAbsoluteTimeGetCurrent() + 5); } /* * 'sysEventTimerNotifier()' - Handle delayed event notifications. */ static void sysEventTimerNotifier( CFRunLoopTimerRef timer, /* I - Timer information */ void *context) /* I - Thread context data */ { cupsd_thread_data_t *threadData; /* Thread context data */ (void)timer; threadData = (cupsd_thread_data_t *)context; /* * If an event is still pending send it to the main thread. */ if (threadData->sysevent.event) { write(SysEventPipes[1], &threadData->sysevent, sizeof(threadData->sysevent)); threadData->sysevent.event = 0; } } /* * 'sysUpdate()' - Update the current system state. */ static void sysUpdate(void) { int i; /* Looping var */ cupsd_sysevent_t sysevent; /* The system event */ cupsd_printer_t *p; /* Printer information */ /* * Drain the event pipe... */ while (read(SysEventPipes[0], &sysevent, sizeof(sysevent)) == sizeof(sysevent)) { if (sysevent.event & SYSEVENT_CANSLEEP) { /* * If there are active printers that don't have the connecting-to-device * or cups-waiting-for-job-completed printer-state-reason then cancel the * sleep request, i.e., these reasons indicate a job that is not actively * doing anything... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { if (p->job) { for (i = 0; i < p->num_reasons; i ++) if (!strcmp(p->reasons[i], "connecting-to-device") || !strcmp(p->reasons[i], "cups-waiting-for-job-completed")) break; if (!p->num_reasons || i >= p->num_reasons) break; } } if (p) { cupsdLogMessage(CUPSD_LOG_INFO, "System sleep canceled because printer %s is active.", p->name); IOCancelPowerChange(sysevent.powerKernelPort, sysevent.powerNotificationID); } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "System wants to sleep."); IOAllowPowerChange(sysevent.powerKernelPort, sysevent.powerNotificationID); } } if (sysevent.event & SYSEVENT_WILLSLEEP) { cupsdLogMessage(CUPSD_LOG_DEBUG, "System going to sleep."); Sleeping = 1; cupsdCleanDirty(); /* * If we have no printing jobs, allow the power change immediately. * Otherwise set the SleepJobs time to 10 seconds in the future when * we'll take more drastic measures... */ if (cupsArrayCount(PrintingJobs) == 0) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Allowing system sleep."); IOAllowPowerChange(sysevent.powerKernelPort, sysevent.powerNotificationID); } else { /* * If there are active printers that don't have the connecting-to-device * or cups-waiting-for-job-completed printer-state-reasons then delay the * sleep request, i.e., these reasons indicate a job is active... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { if (p->job) { for (i = 0; i < p->num_reasons; i ++) if (!strcmp(p->reasons[i], "connecting-to-device") || !strcmp(p->reasons[i], "cups-waiting-for-job-completed")) break; if (!p->num_reasons || i >= p->num_reasons) break; } } if (p) { cupsdLogMessage(CUPSD_LOG_INFO, "System sleep delayed because printer %s is active.", p->name); LastSysEvent = sysevent; SleepJobs = time(NULL) + 10; } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "Allowing system sleep."); IOAllowPowerChange(sysevent.powerKernelPort, sysevent.powerNotificationID); } } } if (sysevent.event & SYSEVENT_WOKE) { cupsdLogMessage(CUPSD_LOG_DEBUG, "System woke from sleep."); IOAllowPowerChange(sysevent.powerKernelPort, sysevent.powerNotificationID); Sleeping = 0; /* * Make sure jobs that were queued prior to the system going to sleep don't * get canceled right away... */ if (MaxJobTime > 0) { cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) { if (job->cancel_time) { ipp_attribute_t *cancel_after = ippFindAttribute(job->attrs, "job-cancel-after", IPP_TAG_INTEGER); if (cancel_after) job->cancel_time = time(NULL) + ippGetInteger(cancel_after, 0); else job->cancel_time = time(NULL) + MaxJobTime; } } } if (NameChanged) sysUpdateNames(); cupsdCheckJobs(); } if (sysevent.event & SYSEVENT_NETCHANGED) { if (Sleeping) cupsdLogMessage(CUPSD_LOG_DEBUG, "System network configuration changed - " "ignored while sleeping."); else cupsdLogMessage(CUPSD_LOG_DEBUG, "System network configuration changed."); } if (sysevent.event & SYSEVENT_NAMECHANGED) { if (Sleeping) { NameChanged = 1; cupsdLogMessage(CUPSD_LOG_DEBUG, "Computer name or BTMM domains changed - ignored while " "sleeping."); } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "Computer name or BTMM domains changed."); sysUpdateNames(); } } } } /* * 'sysUpdateNames()' - Update computer and/or BTMM domains. */ static void sysUpdateNames(void) { cupsd_printer_t *p; /* Current printer */ NameChanged = 0; /* * De-register the individual printers... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) cupsdDeregisterPrinter(p, 1); # ifdef HAVE_DNSSD /* * Update the computer name and BTMM domain list... */ cupsdUpdateDNSSDName(); # endif /* HAVE_DNSSD */ /* * Now re-register them... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) cupsdRegisterPrinter(p); } #endif /* __APPLE__ */ cups-2.4.7/scheduler/subscriptions.h0000644000175000017500000001314014502571342017416 0ustar zdohnalzdohnal/* * Subscription definitions for the CUPS scheduler. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Event mask enumeration... */ typedef enum { /* Individual printer events... */ CUPSD_EVENT_PRINTER_STATE = 0x0001, /* Sent after generic printer state change */ CUPSD_EVENT_PRINTER_RESTARTED = 0x0002, /* Sent after printer restarted */ CUPSD_EVENT_PRINTER_SHUTDOWN = 0x0004,/* Sent after printer shutdown */ CUPSD_EVENT_PRINTER_STOPPED = 0x0008, /* Sent after printer stopped */ CUPSD_EVENT_PRINTER_CONFIG = 0x0010, /* Send after add/modify changes attrs */ CUPSD_EVENT_PRINTER_FINISHINGS_CHANGED = 0x0020, /* Sent after finishings-supported changed */ CUPSD_EVENT_PRINTER_MEDIA_CHANGED = 0x0040, /* Sent after media-supported changed */ CUPSD_EVENT_PRINTER_ADDED = 0x0080, /* Sent after printer added */ CUPSD_EVENT_PRINTER_DELETED = 0x0100, /* Sent after printer deleted */ CUPSD_EVENT_PRINTER_MODIFIED = 0x0200,/* Sent after printer modified */ CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED = 0x0400, /* Sent when the order of jobs is changed */ /* Convenience printer event groupings... */ CUPSD_EVENT_PRINTER_STATE_CHANGED = 0x000f, /* STATE + RESTARTED + SHUTDOWN + STOPPED */ CUPSD_EVENT_PRINTER_CONFIG_CHANGED = 0x0070, /* CONFIG + FINISHINGS_CHANGED + MEDIA_CHANGED */ CUPSD_EVENT_PRINTER_CHANGED = 0x07ff, /* All of the above */ /* Individual job events... */ CUPSD_EVENT_JOB_STATE = 0x0800, /* Any state change */ CUPSD_EVENT_JOB_CREATED = 0x1000, /* Send after job is created */ CUPSD_EVENT_JOB_COMPLETED = 0x2000, /* Sent after job is completed */ CUPSD_EVENT_JOB_STOPPED = 0x4000, /* Sent after job is stopped */ CUPSD_EVENT_JOB_CONFIG_CHANGED = 0x8000, /* Sent after set-job-attributes */ CUPSD_EVENT_JOB_PROGRESS = 0x10000, /* Sent for each page */ /* Convenience job event grouping... */ CUPSD_EVENT_JOB_STATE_CHANGED = 0x7800, /* STATE + CREATED + COMPLETED + STOPPED */ /* Server events... */ CUPSD_EVENT_SERVER_RESTARTED = 0x20000,/* Sent after server restarts */ CUPSD_EVENT_SERVER_STARTED = 0x40000, /* Sent when server first starts */ CUPSD_EVENT_SERVER_STOPPED = 0x80000, /* Sent when server is stopped */ CUPSD_EVENT_SERVER_AUDIT = 0x100000, /* Security-related stuff */ /* Everything and nothing... */ CUPSD_EVENT_NONE = 0, /* Nothing */ CUPSD_EVENT_ALL = 0x1fffff /* Everything */ } cupsd_eventmask_t; /* * Notification support structures... */ typedef struct cupsd_event_s /**** Event structure ****/ { cupsd_eventmask_t event; /* Event */ time_t time; /* Time of event */ ipp_t *attrs; /* Notification message */ cupsd_printer_t *dest; /* Associated printer, if any */ cupsd_job_t *job; /* Associated job, if any */ } cupsd_event_t; typedef struct cupsd_subscription_s /**** Subscription structure ****/ { int id; /* subscription-id */ unsigned mask; /* Event mask */ char *owner; /* notify-subscriber-user-name */ char *recipient; /* notify-recipient-uri, if applicable */ unsigned char user_data[64]; /* notify-user-data */ int user_data_len; /* Length of notify-user-data */ int lease; /* notify-lease-duration */ int interval; /* notify-time-interval */ cupsd_printer_t *dest; /* notify-printer-uri, if any */ cupsd_job_t *job; /* notify-job-id, if any */ int pid; /* Process ID of notifier */ int pipe; /* Pipe to notifier */ int status; /* Exit status of notifier */ time_t last; /* Time of last notification */ time_t expire; /* Lease expiration time */ int first_event_id, /* First event-id in cache */ next_event_id; /* Next event-id to use */ cups_array_t *events; /* Cached events */ } cupsd_subscription_t; /* * Globals... */ VAR int MaxSubscriptions VALUE(100), /* Overall subscription limit */ MaxSubscriptionsPerJob VALUE(0), /* Per-job subscription limit */ MaxSubscriptionsPerPrinter VALUE(0), /* Per-printer subscription limit */ MaxSubscriptionsPerUser VALUE(0), /* Per-user subscription limit */ NextSubscriptionId VALUE(1), /* Next subscription ID */ DefaultLeaseDuration VALUE(86400), /* Default notify-lease-duration */ MaxLeaseDuration VALUE(0); /* Maximum notify-lease-duration */ VAR cups_array_t *Subscriptions VALUE(NULL); /* Active subscriptions */ VAR int MaxEvents VALUE(100); /* Maximum number of events */ VAR unsigned LastEvent VALUE(0); /* Last event(s) processed */ VAR int NotifierPipes[2] VALUE2(-1, -1); /* Pipes for notifier error/debug output */ VAR cupsd_statbuf_t *NotifierStatusBuffer VALUE(NULL); /* Status buffer for pipes */ /* * Prototypes... */ extern void cupsdAddEvent(cupsd_eventmask_t event, cupsd_printer_t *dest, cupsd_job_t *job, const char *text, ...); extern cupsd_subscription_t * cupsdAddSubscription(unsigned mask, cupsd_printer_t *dest, cupsd_job_t *job, const char *uri, int sub_id); extern void cupsdDeleteAllSubscriptions(void); extern void cupsdDeleteSubscription(cupsd_subscription_t *sub, int update); extern const char * cupsdEventName(cupsd_eventmask_t event); extern cupsd_eventmask_t cupsdEventValue(const char *name); extern cupsd_subscription_t * cupsdFindSubscription(int id); extern void cupsdExpireSubscriptions(cupsd_printer_t *dest, cupsd_job_t *job); extern void cupsdLoadAllSubscriptions(void); extern void cupsdSaveAllSubscriptions(void); extern void cupsdStopAllNotifiers(void); cups-2.4.7/scheduler/subscriptions.c0000644000175000017500000011103214502571342017410 0ustar zdohnalzdohnal/* * Subscription routines for the CUPS scheduler. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #ifdef HAVE_DBUS # include # ifdef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND # define dbus_message_append_iter_init dbus_message_iter_init_append # define dbus_message_iter_append_string(i,v) dbus_message_iter_append_basic(i, DBUS_TYPE_STRING, &(v)) # define dbus_message_iter_append_uint32(i,v) dbus_message_iter_append_basic(i, DBUS_TYPE_UINT32, &(v)) # endif /* HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */ #endif /* HAVE_DBUS */ /* * Local functions... */ static int cupsd_compare_subscriptions(cupsd_subscription_t *first, cupsd_subscription_t *second, void *unused); static void cupsd_delete_event(cupsd_event_t *event); #ifdef HAVE_DBUS static void cupsd_send_dbus(cupsd_eventmask_t event, cupsd_printer_t *dest, cupsd_job_t *job); #endif /* HAVE_DBUS */ static void cupsd_send_notification(cupsd_subscription_t *sub, cupsd_event_t *event); static void cupsd_start_notifier(cupsd_subscription_t *sub); static void cupsd_update_notifier(void); /* * 'cupsdAddEvent()' - Add an event to the global event cache. */ void cupsdAddEvent( cupsd_eventmask_t event, /* I - Event */ cupsd_printer_t *dest, /* I - Printer associated with event */ cupsd_job_t *job, /* I - Job associated with event */ const char *text, /* I - Notification text */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to additional arguments */ char ftext[1024]; /* Formatted text buffer */ ipp_attribute_t *attr; /* Printer/job attribute */ cupsd_event_t *temp; /* New event pointer */ cupsd_subscription_t *sub; /* Current subscription */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddEvent(event=%s, dest=%p(%s), job=%p(%d), text=\"%s\", ...)", cupsdEventName(event), dest, dest ? dest->name : "", job, job ? job->id : 0, text); /* * Keep track of events with any OS-supplied notification mechanisms... */ LastEvent |= event; #ifdef HAVE_DBUS cupsd_send_dbus(event, dest, job); #endif /* HAVE_DBUS */ /* * Return if we aren't keeping events... */ if (MaxEvents <= 0) { cupsdLogMessage(CUPSD_LOG_WARN, "cupsdAddEvent: Discarding %s event since MaxEvents is %d!", cupsdEventName(event), MaxEvents); return; } /* * Then loop through the subscriptions and add the event to the corresponding * caches... */ for (temp = NULL, sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) { /* * Check if this subscription requires this event... */ if ((sub->mask & event) != 0 && (sub->dest == dest || !sub->dest || sub->job == job)) { /* * Need this event, so create a new event record... */ if ((temp = (cupsd_event_t *)calloc(1, sizeof(cupsd_event_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to allocate memory for event - %s", strerror(errno)); return; } temp->event = event; temp->time = time(NULL); temp->attrs = ippNew(); temp->job = job; if (dest) temp->dest = dest; else if (job) temp->dest = dest = cupsdFindPrinter(job->dest); /* * Add common event notification attributes... */ ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_CHARSET, "notify-charset", NULL, "utf-8"); ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_LANGUAGE, "notify-natural-language", NULL, "en-US"); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "notify-subscription-id", sub->id); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "notify-sequence-number", sub->next_event_id); ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "notify-subscribed-event", NULL, cupsdEventName(event)); if (sub->user_data_len > 0) ippAddOctetString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, "notify-user-data", sub->user_data, sub->user_data_len); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "printer-up-time", time(NULL)); va_start(ap, text); vsnprintf(ftext, sizeof(ftext), text, ap); va_end(ap); ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_TEXT, "notify-text", NULL, ftext); if (dest) { /* * Add printer attributes... */ ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_URI, "notify-printer-uri", NULL, dest->uri); ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_NAME, "printer-name", NULL, dest->name); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_ENUM, "printer-state", (int)dest->state); if (dest->num_reasons == 0) ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "printer-state-reasons", NULL, dest->state == IPP_PRINTER_STOPPED ? "paused" : "none"); else ippAddStrings(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "printer-state-reasons", dest->num_reasons, NULL, (const char * const *)dest->reasons); ippAddBoolean(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, "printer-is-accepting-jobs", (char)dest->accepting); } if (job) { /* * Add job attributes... */ ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "notify-job-id", job->id); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_ENUM, "job-state", (int)job->state_value); if ((attr = ippFindAttribute(job->attrs, "job-name", IPP_TAG_NAME)) != NULL) ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_NAME, "job-name", NULL, attr->values[0].string.text); switch (job->state_value) { case IPP_JOB_PENDING : if (dest && dest->state == IPP_PRINTER_STOPPED) ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "printer-stopped"); else ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "none"); break; case IPP_JOB_HELD : if (ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD) != NULL || ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME) != NULL) ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-hold-until-specified"); else ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-incoming"); break; case IPP_JOB_PROCESSING : ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-printing"); break; case IPP_JOB_STOPPED : ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-stopped"); break; case IPP_JOB_CANCELED : ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-canceled-by-user"); break; case IPP_JOB_ABORTED : ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "aborted-by-system"); break; case IPP_JOB_COMPLETED : ippAddString(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-completed-successfully"); break; } ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "job-impressions-completed", job->sheets ? job->sheets->values[0].integer : 0); } /* * Send the notification for this subscription... */ cupsd_send_notification(sub, temp); } } if (temp) cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); else cupsdLogMessage(CUPSD_LOG_DEBUG, "Discarding unused %s event...", cupsdEventName(event)); } /* * 'cupsdAddSubscription()' - Add a new subscription object. */ cupsd_subscription_t * /* O - New subscription object */ cupsdAddSubscription( unsigned mask, /* I - Event mask */ cupsd_printer_t *dest, /* I - Printer, if any */ cupsd_job_t *job, /* I - Job, if any */ const char *uri, /* I - notify-recipient-uri, if any */ int sub_id) /* I - notify-subscription-id or 0 */ { cupsd_subscription_t *temp; /* New subscription object */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAddSubscription(mask=%x, dest=%p(%s), job=%p(%d), " "uri=\"%s\")", mask, dest, dest ? dest->name : "", job, job ? job->id : 0, uri ? uri : "(null)"); if (!Subscriptions) Subscriptions = cupsArrayNew((cups_array_func_t)cupsd_compare_subscriptions, NULL); if (!Subscriptions) { cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to allocate memory for subscriptions - %s", strerror(errno)); return (NULL); } /* * Limit the number of subscriptions... */ if (MaxSubscriptions > 0 && cupsArrayCount(Subscriptions) >= MaxSubscriptions) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAddSubscription: Reached MaxSubscriptions %d " "(count=%d)", MaxSubscriptions, cupsArrayCount(Subscriptions)); return (NULL); } if (MaxSubscriptionsPerJob > 0 && job) { int count; /* Number of job subscriptions */ for (temp = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions), count = 0; temp; temp = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if (temp->job == job) count ++; if (count >= MaxSubscriptionsPerJob) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAddSubscription: Reached MaxSubscriptionsPerJob %d " "for job #%d (count=%d)", MaxSubscriptionsPerJob, job->id, count); return (NULL); } } if (MaxSubscriptionsPerPrinter > 0 && dest) { int count; /* Number of printer subscriptions */ for (temp = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions), count = 0; temp; temp = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if (temp->dest == dest) count ++; if (count >= MaxSubscriptionsPerPrinter) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAddSubscription: Reached " "MaxSubscriptionsPerPrinter %d for %s (count=%d)", MaxSubscriptionsPerPrinter, dest->name, count); return (NULL); } } /* * Allocate memory for this subscription... */ if ((temp = calloc(1, sizeof(cupsd_subscription_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to allocate memory for subscription object - %s", strerror(errno)); return (NULL); } /* * Fill in common data... */ if (sub_id) { temp->id = sub_id; if (sub_id >= NextSubscriptionId) NextSubscriptionId = sub_id + 1; } else { temp->id = NextSubscriptionId; NextSubscriptionId ++; } temp->mask = mask; temp->dest = dest; temp->job = job; temp->pipe = -1; temp->first_event_id = 1; temp->next_event_id = 1; cupsdSetString(&(temp->recipient), uri); /* * Add the subscription to the array... */ cupsArrayAdd(Subscriptions, temp); /* * For RSS subscriptions, run the notifier immediately... */ if (uri && !strncmp(uri, "rss:", 4)) cupsd_start_notifier(temp); return (temp); } /* * 'cupsdDeleteAllSubscriptions()' - Delete all subscriptions. */ void cupsdDeleteAllSubscriptions(void) { cupsd_subscription_t *sub; /* Subscription */ if (!Subscriptions) return; for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) cupsdDeleteSubscription(sub, 0); cupsArrayDelete(Subscriptions); Subscriptions = NULL; } /* * 'cupsdDeleteSubscription()' - Delete a subscription object. */ void cupsdDeleteSubscription( cupsd_subscription_t *sub, /* I - Subscription object */ int update) /* I - 1 = update subscriptions.conf */ { /* * Close the pipe to the notifier as needed... */ if (sub->pipe >= 0) close(sub->pipe); /* * Remove subscription from array... */ cupsArrayRemove(Subscriptions, sub); /* * Free memory... */ cupsdClearString(&(sub->owner)); cupsdClearString(&(sub->recipient)); cupsArrayDelete(sub->events); free(sub); /* * Update the subscriptions as needed... */ if (update) cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); } /* * 'cupsdEventName()' - Return a single event name. */ const char * /* O - Event name */ cupsdEventName( cupsd_eventmask_t event) /* I - Event value */ { switch (event) { default : return (NULL); case CUPSD_EVENT_PRINTER_RESTARTED : return ("printer-restarted"); case CUPSD_EVENT_PRINTER_SHUTDOWN : return ("printer-shutdown"); case CUPSD_EVENT_PRINTER_STOPPED : return ("printer-stopped"); case CUPSD_EVENT_PRINTER_FINISHINGS_CHANGED : return ("printer-finishings-changed"); case CUPSD_EVENT_PRINTER_MEDIA_CHANGED : return ("printer-media-changed"); case CUPSD_EVENT_PRINTER_ADDED : return ("printer-added"); case CUPSD_EVENT_PRINTER_DELETED : return ("printer-deleted"); case CUPSD_EVENT_PRINTER_MODIFIED : return ("printer-modified"); case CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED : return ("printer-queue-order-changed"); case CUPSD_EVENT_PRINTER_STATE : case CUPSD_EVENT_PRINTER_STATE_CHANGED : return ("printer-state-changed"); case CUPSD_EVENT_PRINTER_CONFIG : case CUPSD_EVENT_PRINTER_CONFIG_CHANGED : return ("printer-config-changed"); case CUPSD_EVENT_PRINTER_CHANGED : return ("printer-changed"); case CUPSD_EVENT_JOB_CREATED : return ("job-created"); case CUPSD_EVENT_JOB_COMPLETED : return ("job-completed"); case CUPSD_EVENT_JOB_STOPPED : return ("job-stopped"); case CUPSD_EVENT_JOB_CONFIG_CHANGED : return ("job-config-changed"); case CUPSD_EVENT_JOB_PROGRESS : return ("job-progress"); case CUPSD_EVENT_JOB_STATE : case CUPSD_EVENT_JOB_STATE_CHANGED : return ("job-state-changed"); case CUPSD_EVENT_SERVER_RESTARTED : return ("server-restarted"); case CUPSD_EVENT_SERVER_STARTED : return ("server-started"); case CUPSD_EVENT_SERVER_STOPPED : return ("server-stopped"); case CUPSD_EVENT_SERVER_AUDIT : return ("server-audit"); case CUPSD_EVENT_ALL : return ("all"); } } /* * 'cupsdEventValue()' - Return the event mask value for a name. */ cupsd_eventmask_t /* O - Event mask value */ cupsdEventValue(const char *name) /* I - Name of event */ { if (!strcmp(name, "all")) return (CUPSD_EVENT_ALL); else if (!strcmp(name, "printer-restarted")) return (CUPSD_EVENT_PRINTER_RESTARTED); else if (!strcmp(name, "printer-shutdown")) return (CUPSD_EVENT_PRINTER_SHUTDOWN); else if (!strcmp(name, "printer-stopped")) return (CUPSD_EVENT_PRINTER_STOPPED); else if (!strcmp(name, "printer-finishings-changed")) return (CUPSD_EVENT_PRINTER_FINISHINGS_CHANGED); else if (!strcmp(name, "printer-media-changed")) return (CUPSD_EVENT_PRINTER_MEDIA_CHANGED); else if (!strcmp(name, "printer-added")) return (CUPSD_EVENT_PRINTER_ADDED); else if (!strcmp(name, "printer-deleted")) return (CUPSD_EVENT_PRINTER_DELETED); else if (!strcmp(name, "printer-modified")) return (CUPSD_EVENT_PRINTER_MODIFIED); else if (!strcmp(name, "printer-queue-order-changed")) return (CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED); else if (!strcmp(name, "printer-state-changed")) return (CUPSD_EVENT_PRINTER_STATE_CHANGED); else if (!strcmp(name, "printer-config-changed")) return (CUPSD_EVENT_PRINTER_CONFIG_CHANGED); else if (!strcmp(name, "printer-changed")) return (CUPSD_EVENT_PRINTER_CHANGED); else if (!strcmp(name, "job-created")) return (CUPSD_EVENT_JOB_CREATED); else if (!strcmp(name, "job-completed")) return (CUPSD_EVENT_JOB_COMPLETED); else if (!strcmp(name, "job-stopped")) return (CUPSD_EVENT_JOB_STOPPED); else if (!strcmp(name, "job-config-changed")) return (CUPSD_EVENT_JOB_CONFIG_CHANGED); else if (!strcmp(name, "job-progress")) return (CUPSD_EVENT_JOB_PROGRESS); else if (!strcmp(name, "job-state-changed")) return (CUPSD_EVENT_JOB_STATE_CHANGED); else if (!strcmp(name, "server-restarted")) return (CUPSD_EVENT_SERVER_RESTARTED); else if (!strcmp(name, "server-started")) return (CUPSD_EVENT_SERVER_STARTED); else if (!strcmp(name, "server-stopped")) return (CUPSD_EVENT_SERVER_STOPPED); else if (!strcmp(name, "server-audit")) return (CUPSD_EVENT_SERVER_AUDIT); else return (CUPSD_EVENT_NONE); } /* * 'cupsdExpireSubscriptions()' - Expire old subscription objects. */ void cupsdExpireSubscriptions( cupsd_printer_t *dest, /* I - Printer, if any */ cupsd_job_t *job) /* I - Job, if any */ { cupsd_subscription_t *sub; /* Current subscription */ int update; /* Update subscriptions.conf? */ time_t curtime; /* Current time */ if (cupsArrayCount(Subscriptions) == 0) return; curtime = time(NULL); update = 0; cupsdLogMessage(CUPSD_LOG_DEBUG, "Expiring subscriptions..."); for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if ((!sub->job && !dest && sub->expire && sub->expire <= curtime) || (dest && sub->dest == dest) || (job && sub->job == job)) { cupsdLogMessage(CUPSD_LOG_INFO, "Subscription %d has expired...", sub->id); cupsdDeleteSubscription(sub, 0); update = 1; } if (update) cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); } /* * 'cupsdFindSubscription()' - Find a subscription by ID. */ cupsd_subscription_t * /* O - Subscription object */ cupsdFindSubscription(int id) /* I - Subscription ID */ { cupsd_subscription_t sub; /* Subscription template */ sub.id = id; return ((cupsd_subscription_t *)cupsArrayFind(Subscriptions, &sub)); } /* * 'cupsdLoadAllSubscriptions()' - Load all subscriptions from the .conf file. */ void cupsdLoadAllSubscriptions(void) { int i; /* Looping var */ cups_file_t *fp; /* subscriptions.conf file */ int linenum; /* Current line number */ char line[1024], /* Line from file */ *value, /* Pointer to value */ *valueptr; /* Pointer into value */ cupsd_subscription_t *sub; /* Current subscription */ int hex; /* Non-zero if reading hex data */ int delete_sub; /* Delete subscription? */ /* * Open the subscriptions.conf file... */ snprintf(line, sizeof(line), "%s/subscriptions.conf", ServerRoot); if ((fp = cupsdOpenConfFile(line)) == NULL) return; /* * Read all of the lines from the file... */ linenum = 0; sub = NULL; delete_sub = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "NextSubscriptionId") && value) { /* * NextSubscriptionId NNN */ i = atoi(value); if (i >= NextSubscriptionId && i > 0) NextSubscriptionId = i; } else if (!_cups_strcasecmp(line, " */ if (!sub && value && isdigit(value[0] & 255)) { sub = cupsdAddSubscription(CUPSD_EVENT_NONE, NULL, NULL, NULL, atoi(value)); } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "")) { if (!sub) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } if (delete_sub) cupsdDeleteSubscription(sub, 0); sub = NULL; delete_sub = 0; } else if (!sub) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); } else if (!_cups_strcasecmp(line, "Events")) { /* * Events name * Events name name name ... */ if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } while (*value) { /* * Separate event names... */ for (valueptr = value; !isspace(*valueptr) && *valueptr; valueptr ++); while (isspace(*valueptr & 255)) *valueptr++ = '\0'; /* * See if the name exists... */ if ((sub->mask |= cupsdEventValue(value)) == CUPSD_EVENT_NONE) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown event name \'%s\' on line %d of subscriptions.conf.", value, linenum); break; } value = valueptr; } } else if (!_cups_strcasecmp(line, "Owner")) { /* * Owner */ if (value) cupsdSetString(&sub->owner, value); else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "Recipient")) { /* * Recipient uri */ if (value) cupsdSetString(&sub->recipient, value); else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "JobId")) { /* * JobId # */ if (value && isdigit(*value & 255)) { if ((sub->job = cupsdFindJob(atoi(value))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Job %s not found on line %d of subscriptions.conf.", value, linenum); delete_sub = 1; } } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "PrinterName")) { /* * PrinterName name */ if (value) { if ((sub->dest = cupsdFindDest(value)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Printer \'%s\' not found on line %d of subscriptions.conf.", value, linenum); delete_sub = 1; } } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "UserData")) { /* * UserData encoded-string */ if (value) { for (i = 0, valueptr = value, hex = 0; i < 63 && *valueptr; i ++) { if (*valueptr == '<' && !hex) { hex = 1; valueptr ++; } if (hex) { if (isxdigit(valueptr[0]) && isxdigit(valueptr[1])) { if (isdigit(valueptr[0])) sub->user_data[i] = (unsigned char)((valueptr[0] - '0') << 4); else sub->user_data[i] = (unsigned char)((tolower(valueptr[0]) - 'a' + 10) << 4); if (isdigit(valueptr[1])) sub->user_data[i] |= valueptr[1] - '0'; else sub->user_data[i] |= tolower(valueptr[1]) - 'a' + 10; valueptr += 2; if (*valueptr == '>') { hex = 0; valueptr ++; } } else break; } else sub->user_data[i] = (unsigned char)*valueptr++; } if (*valueptr) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad UserData \'%s\' on line %d of subscriptions.conf.", value, linenum); } else sub->user_data_len = i; } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "LeaseDuration")) { /* * LeaseDuration # */ if (value && isdigit(*value & 255)) { sub->lease = atoi(value); sub->expire = sub->lease ? time(NULL) + sub->lease : 0; } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "Interval")) { /* * Interval # */ if (value && isdigit(*value & 255)) sub->interval = atoi(value); else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "ExpirationTime")) { /* * ExpirationTime # */ if (value && isdigit(*value & 255)) sub->expire = atoi(value); else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else if (!_cups_strcasecmp(line, "NextEventId")) { /* * NextEventId # */ if (value && isdigit(*value & 255)) sub->next_event_id = sub->first_event_id = atoi(value); else { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of subscriptions.conf.", linenum); break; } } else { /* * Something else we don't understand... */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown configuration directive %s on line %d of subscriptions.conf.", line, linenum); } } cupsFileClose(fp); } /* * 'cupsdSaveAllSubscriptions()' - Save all subscriptions to the .conf file. */ void cupsdSaveAllSubscriptions(void) { int i; /* Looping var */ cups_file_t *fp; /* subscriptions.conf file */ char filename[1024]; /* subscriptions.conf filename */ cupsd_subscription_t *sub; /* Current subscription */ unsigned mask; /* Current event mask */ const char *name; /* Current event name */ int hex; /* Non-zero if we are writing hex data */ /* * Create the subscriptions.conf file... */ snprintf(filename, sizeof(filename), "%s/subscriptions.conf", ServerRoot); if ((fp = cupsdCreateConfFile(filename, ConfigFilePerm)) == NULL) return; cupsdLogMessage(CUPSD_LOG_INFO, "Saving subscriptions.conf..."); /* * Write a small header to the file... */ cupsFilePuts(fp, "# Subscription configuration file for " CUPS_SVERSION "\n"); cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePrintf(fp, "NextSubscriptionId %d\n", NextSubscriptionId); /* * Write every subscription known to the system... */ for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) { cupsFilePrintf(fp, "\n", sub->id); if ((name = cupsdEventName((cupsd_eventmask_t)sub->mask)) != NULL) { /* * Simple event list... */ cupsFilePrintf(fp, "Events %s\n", name); } else { /* * Complex event list... */ cupsFilePuts(fp, "Events"); for (mask = 1; mask < CUPSD_EVENT_ALL; mask <<= 1) if (sub->mask & mask) cupsFilePrintf(fp, " %s", cupsdEventName((cupsd_eventmask_t)mask)); cupsFilePuts(fp, "\n"); } if (sub->owner) cupsFilePrintf(fp, "Owner %s\n", sub->owner); if (sub->recipient) cupsFilePrintf(fp, "Recipient %s\n", sub->recipient); if (sub->job) cupsFilePrintf(fp, "JobId %d\n", sub->job->id); if (sub->dest) cupsFilePrintf(fp, "PrinterName %s\n", sub->dest->name); if (sub->user_data_len > 0) { cupsFilePuts(fp, "UserData "); for (i = 0, hex = 0; i < sub->user_data_len; i ++) { if (sub->user_data[i] < ' ' || sub->user_data[i] > 0x7f || sub->user_data[i] == '<') { if (!hex) { cupsFilePrintf(fp, "<%02X", sub->user_data[i]); hex = 1; } else cupsFilePrintf(fp, "%02X", sub->user_data[i]); } else { if (hex) { cupsFilePrintf(fp, ">%c", sub->user_data[i]); hex = 0; } else cupsFilePutChar(fp, sub->user_data[i]); } } if (hex) cupsFilePuts(fp, ">\n"); else cupsFilePutChar(fp, '\n'); } cupsFilePrintf(fp, "LeaseDuration %d\n", sub->lease); cupsFilePrintf(fp, "Interval %d\n", sub->interval); cupsFilePrintf(fp, "ExpirationTime %ld\n", (long)sub->expire); cupsFilePrintf(fp, "NextEventId %d\n", sub->next_event_id); cupsFilePuts(fp, "\n"); } cupsdCloseCreatedConfFile(fp, filename); } /* * 'cupsdStopAllNotifiers()' - Stop all notifier processes. */ void cupsdStopAllNotifiers(void) { cupsd_subscription_t *sub; /* Current subscription */ /* * See if we have started any notifiers... */ if (!NotifierStatusBuffer) return; /* * Yes, kill any processes that are left... */ for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if (sub->pid) { cupsdEndProcess(sub->pid, 0); close(sub->pipe); sub->pipe = -1; } /* * Close the status pipes... */ if (NotifierPipes[0] >= 0) { cupsdRemoveSelect(NotifierPipes[0]); cupsdStatBufDelete(NotifierStatusBuffer); close(NotifierPipes[0]); close(NotifierPipes[1]); NotifierPipes[0] = -1; NotifierPipes[1] = -1; NotifierStatusBuffer = NULL; } } /* * 'cupsd_compare_subscriptions()' - Compare two subscriptions. */ static int /* O - Result of comparison */ cupsd_compare_subscriptions( cupsd_subscription_t *first, /* I - First subscription object */ cupsd_subscription_t *second, /* I - Second subscription object */ void *unused) /* I - Unused user data pointer */ { (void)unused; return (first->id - second->id); } /* * 'cupsd_delete_event()' - Delete a single event... * * Oldest events must be deleted first, otherwise the subscription cache * flushing code will not work properly. */ static void cupsd_delete_event(cupsd_event_t *event)/* I - Event to delete */ { /* * Free memory... */ ippDelete(event->attrs); free(event); } #ifdef HAVE_DBUS /* * 'cupsd_send_dbus()' - Send a DBUS notification... */ static void cupsd_send_dbus(cupsd_eventmask_t event,/* I - Event to send */ cupsd_printer_t *dest,/* I - Destination, if any */ cupsd_job_t *job) /* I - Job, if any */ { DBusError error; /* Error, if any */ DBusMessage *message; /* Message to send */ DBusMessageIter iter; /* Iterator for message data */ const char *what; /* What to send */ static DBusConnection *con = NULL; /* Connection to DBUS server */ /* * Figure out what to send, if anything... */ if (event & CUPSD_EVENT_PRINTER_ADDED) what = "PrinterAdded"; else if (event & CUPSD_EVENT_PRINTER_DELETED) what = "PrinterRemoved"; else if (event & CUPSD_EVENT_PRINTER_CHANGED) what = "QueueChanged"; else if (event & CUPSD_EVENT_JOB_CREATED) what = "JobQueuedLocal"; else if ((event & CUPSD_EVENT_JOB_STATE) && job && job->state_value == IPP_JOB_PROCESSING) what = "JobStartedLocal"; else return; /* * Verify connection to DBUS server... */ if (con && !dbus_connection_get_is_connected(con)) { dbus_connection_unref(con); con = NULL; } if (!con) { dbus_error_init(&error); con = dbus_bus_get(getuid() ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error); if (!con) { dbus_error_free(&error); return; } } /* * Create and send the new message... */ message = dbus_message_new_signal("/com/redhat/PrinterSpooler", "com.redhat.PrinterSpooler", what); dbus_message_append_iter_init(message, &iter); if (dest) dbus_message_iter_append_string(&iter, dest->name); if (job) { dbus_message_iter_append_uint32(&iter, job->id); dbus_message_iter_append_string(&iter, job->username); } dbus_connection_send(con, message, NULL); dbus_connection_flush(con); dbus_message_unref(message); } #endif /* HAVE_DBUS */ /* * 'cupsd_send_notification()' - Send a notification for the specified event. */ static void cupsd_send_notification( cupsd_subscription_t *sub, /* I - Subscription object */ cupsd_event_t *event) /* I - Event to send */ { ipp_state_t state; /* IPP event state */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsd_send_notification(sub=%p(%d), event=%p(%s))", sub, sub->id, event, cupsdEventName(event->event)); /* * Allocate the events array as needed... */ if (!sub->events) { sub->events = cupsArrayNew3((cups_array_func_t)NULL, NULL, (cups_ahash_func_t)NULL, 0, (cups_acopy_func_t)NULL, (cups_afree_func_t)cupsd_delete_event); if (!sub->events) { cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to allocate memory for subscription #%d!", sub->id); return; } } /* * Purge an old event as needed... */ if (cupsArrayCount(sub->events) >= MaxEvents) { /* * Purge the oldest event in the cache... */ cupsArrayRemove(sub->events, cupsArrayFirst(sub->events)); sub->first_event_id ++; } /* * Add the event to the subscription. Since the events array is * always MaxEvents in length, and since we will have already * removed an event from the subscription cache if we hit the * event cache limit, we don't need to check for overflow here... */ cupsArrayAdd(sub->events, event); /* * Deliver the event... */ if (sub->recipient) { for (;;) { if (sub->pipe < 0) cupsd_start_notifier(sub); cupsdLogMessage(CUPSD_LOG_DEBUG2, "sub->pipe=%d", sub->pipe); if (sub->pipe < 0) break; event->attrs->state = IPP_IDLE; while ((state = ippWriteFile(sub->pipe, event->attrs)) != IPP_DATA) if (state == IPP_ERROR) break; if (state == IPP_ERROR) { if (errno == EPIPE) { /* * Notifier died, try restarting it... */ cupsdLogMessage(CUPSD_LOG_WARN, "Notifier for subscription %d (%s) went away, " "retrying!", sub->id, sub->recipient); cupsdEndProcess(sub->pid, 0); close(sub->pipe); sub->pipe = -1; continue; } cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to send event for subscription %d (%s)!", sub->id, sub->recipient); } /* * If we get this far, break out of the loop... */ break; } } /* * Bump the event sequence number... */ sub->next_event_id ++; } /* * 'cupsd_start_notifier()' - Start a notifier subprocess... */ static void cupsd_start_notifier( cupsd_subscription_t *sub) /* I - Subscription object */ { int pid; /* Notifier process ID */ int fds[2]; /* Pipe file descriptors */ char *argv[4], /* Command-line arguments */ *envp[MAX_ENV], /* Environment variables */ user_data[128], /* Base-64 encoded user data */ scheme[256], /* notify-recipient-uri scheme */ *ptr, /* Pointer into scheme */ command[1024]; /* Notifier command */ /* * Extract the scheme name from the recipient URI and point to the * notifier program... */ strlcpy(scheme, sub->recipient, sizeof(scheme)); if ((ptr = strchr(scheme, ':')) != NULL) *ptr = '\0'; snprintf(command, sizeof(command), "%s/notifier/%s", ServerBin, scheme); /* * Base-64 encode the user data... */ httpEncode64_2(user_data, sizeof(user_data), (char *)sub->user_data, sub->user_data_len); /* * Setup the argument array... */ argv[0] = command; argv[1] = sub->recipient; argv[2] = user_data; argv[3] = NULL; /* * Setup the environment... */ cupsdLoadEnv(envp, (int)(sizeof(envp) / sizeof(envp[0]))); /* * Create pipes as needed... */ if (!NotifierStatusBuffer) { /* * Create the status pipe... */ if (cupsdOpenPipe(NotifierPipes)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create pipes for notifier status - %s", strerror(errno)); return; } NotifierStatusBuffer = cupsdStatBufNew(NotifierPipes[0], "[Notifier]"); cupsdAddSelect(NotifierPipes[0], (cupsd_selfunc_t)cupsd_update_notifier, NULL, NULL); } if (cupsdOpenPipe(fds)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create pipes for notifier %s - %s", scheme, strerror(errno)); return; } /* * Make sure the delivery pipe is non-blocking... */ fcntl(fds[1], F_SETFL, fcntl(fds[1], F_GETFL) | O_NONBLOCK); /* * Create the notifier process... */ if (cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1], -1, -1, 0, DefaultProfile, NULL, &pid) < 0) { /* * Error - can't fork! */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to fork for notifier %s - %s", scheme, strerror(errno)); cupsdClosePipe(fds); } else { /* * Fork successful - return the PID... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Notifier %s started - PID = %d", scheme, pid); sub->pid = pid; sub->pipe = fds[1]; sub->status = 0; close(fds[0]); } } /* * 'cupsd_update_notifier()' - Read messages from notifiers. */ void cupsd_update_notifier(void) { char message[1024]; /* Pointer to message text */ int loglevel; /* Log level for message */ while (cupsdStatBufUpdate(NotifierStatusBuffer, &loglevel, message, sizeof(message))) { if (loglevel == CUPSD_LOG_INFO) cupsdLogMessage(CUPSD_LOG_INFO, "%s", message); if (!strchr(NotifierStatusBuffer->buffer, '\n')) break; } } cups-2.4.7/scheduler/statbuf.h0000644000175000017500000000163414502571342016164 0ustar zdohnalzdohnal/* * Status buffer definitions for the CUPS scheduler. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Constants... */ #define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */ /* * Types and structures... */ typedef struct /**** Status buffer */ { int fd; /* File descriptor to read from */ char prefix[64]; /* Prefix for log messages */ int bufused; /* How much is used in buffer */ char buffer[CUPSD_SB_BUFFER_SIZE]; /* Buffer */ } cupsd_statbuf_t; /* * Prototypes... */ extern void cupsdStatBufDelete(cupsd_statbuf_t *sb); extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...); extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel, char *line, int linelen); cups-2.4.7/scheduler/statbuf.c0000644000175000017500000001413214502571342016154 0ustar zdohnalzdohnal/* * Status buffer routines for the CUPS scheduler. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" #include /* * 'cupsdStatBufDelete()' - Destroy a status buffer. */ void cupsdStatBufDelete(cupsd_statbuf_t *sb) /* I - Status buffer */ { /* * Range check input... */ if (!sb) return; /* * Close the status pipe and free memory used... */ close(sb->fd); free(sb); } /* * 'cupsdStatBufNew()' - Create a new status buffer. */ cupsd_statbuf_t * /* O - New status buffer */ cupsdStatBufNew(int fd, /* I - File descriptor of pipe */ const char *prefix, /* I - Printf-style prefix string */ ...) /* I - Additional args as needed */ { cupsd_statbuf_t *sb; /* New status buffer */ va_list ap; /* Argument list */ /* * Range check input... */ if (fd < 0) return (NULL); /* * Allocate the status buffer... */ if ((sb = calloc(1, sizeof(cupsd_statbuf_t))) != NULL) { /* * Assign the file descriptor... */ sb->fd = fd; /* * Format the prefix string, if any. This is usually "[Job 123]" * or "[Sub 123]", and so forth. */ if (prefix) { /* * Printf-style prefix string... */ va_start(ap, prefix); vsnprintf(sb->prefix, sizeof(sb->prefix), prefix, ap); va_end(ap); } else { /* * No prefix string... */ sb->prefix[0] = '\0'; } } return (sb); } /* * 'cupsdStatBufUpdate()' - Update the status buffer. */ char * /* O - Line from buffer, "", or NULL */ cupsdStatBufUpdate( cupsd_statbuf_t *sb, /* I - Status buffer */ int *loglevel, /* O - Log level */ char *line, /* I - Line buffer */ int linelen) /* I - Size of line buffer */ { int bytes; /* Number of bytes read */ char *lineptr, /* Pointer to end of line in buffer */ *message; /* Pointer to message text */ /* * Check if the buffer already contains a full line... */ if ((lineptr = strchr(sb->buffer, '\n')) == NULL) { /* * No, read more data... */ if ((bytes = read(sb->fd, sb->buffer + sb->bufused, (size_t)(CUPSD_SB_BUFFER_SIZE - sb->bufused - 1))) > 0) { sb->bufused += bytes; sb->buffer[sb->bufused] = '\0'; /* * Guard against a line longer than the max buffer size... */ if ((lineptr = strchr(sb->buffer, '\n')) == NULL && sb->bufused == (CUPSD_SB_BUFFER_SIZE - 1)) lineptr = sb->buffer + sb->bufused; } else if (bytes < 0 && errno == EINTR) { /* * Return an empty line if we are interrupted... */ *loglevel = CUPSD_LOG_NONE; line[0] = '\0'; return (line); } else { /* * End-of-file, so use the whole buffer... */ lineptr = sb->buffer + sb->bufused; *lineptr = '\0'; } /* * Final check for end-of-file... */ if (sb->bufused == 0 && bytes == 0) lineptr = NULL; } if (!lineptr) { /* * End of file... */ *loglevel = CUPSD_LOG_NONE; line[0] = '\0'; return (NULL); } /* * Terminate the line and process it... */ *lineptr++ = '\0'; /* * Figure out the logging level... */ if (!strncmp(sb->buffer, "EMERG:", 6)) { *loglevel = CUPSD_LOG_EMERG; message = sb->buffer + 6; } else if (!strncmp(sb->buffer, "ALERT:", 6)) { *loglevel = CUPSD_LOG_ALERT; message = sb->buffer + 6; } else if (!strncmp(sb->buffer, "CRIT:", 5)) { *loglevel = CUPSD_LOG_CRIT; message = sb->buffer + 5; } else if (!strncmp(sb->buffer, "ERROR:", 6)) { *loglevel = CUPSD_LOG_ERROR; message = sb->buffer + 6; } else if (!strncmp(sb->buffer, "WARNING:", 8)) { *loglevel = CUPSD_LOG_WARN; message = sb->buffer + 8; } else if (!strncmp(sb->buffer, "NOTICE:", 7)) { *loglevel = CUPSD_LOG_NOTICE; message = sb->buffer + 7; } else if (!strncmp(sb->buffer, "INFO:", 5)) { *loglevel = CUPSD_LOG_INFO; message = sb->buffer + 5; } else if (!strncmp(sb->buffer, "DEBUG:", 6)) { *loglevel = CUPSD_LOG_DEBUG; message = sb->buffer + 6; } else if (!strncmp(sb->buffer, "DEBUG2:", 7)) { *loglevel = CUPSD_LOG_DEBUG2; message = sb->buffer + 7; } else if (!strncmp(sb->buffer, "PAGE:", 5)) { *loglevel = CUPSD_LOG_PAGE; message = sb->buffer + 5; } else if (!strncmp(sb->buffer, "STATE:", 6)) { *loglevel = CUPSD_LOG_STATE; message = sb->buffer + 6; } else if (!strncmp(sb->buffer, "JOBSTATE:", 9)) { *loglevel = CUPSD_LOG_JOBSTATE; message = sb->buffer + 9; } else if (!strncmp(sb->buffer, "ATTR:", 5)) { *loglevel = CUPSD_LOG_ATTR; message = sb->buffer + 5; } else if (!strncmp(sb->buffer, "PPD:", 4)) { *loglevel = CUPSD_LOG_PPD; message = sb->buffer + 4; } else { *loglevel = CUPSD_LOG_DEBUG; message = sb->buffer; } /* * Skip leading whitespace in the message... */ while (isspace(*message & 255)) message ++; /* * Send it to the log file as needed... */ if (sb->prefix[0]) { if (*loglevel > CUPSD_LOG_NONE && (*loglevel != CUPSD_LOG_INFO || LogLevel >= CUPSD_LOG_DEBUG)) { /* * General status message; send it to the error_log file... */ if (message[0] == '[') cupsdLogMessage(*loglevel, "%s", message); else cupsdLogMessage(*loglevel, "%s %s", sb->prefix, message); } else if (*loglevel < CUPSD_LOG_NONE && LogLevel >= CUPSD_LOG_DEBUG) cupsdLogMessage(CUPSD_LOG_DEBUG2, "%s %s", sb->prefix, sb->buffer); } /* * Copy the message to the line buffer... */ strlcpy(line, message, (size_t)linelen); /* * Copy over the buffer data we've used up... */ if (lineptr < sb->buffer + sb->bufused) _cups_strcpy(sb->buffer, lineptr); sb->bufused -= lineptr - sb->buffer; if (sb->bufused < 0) sb->bufused = 0; return (line); } cups-2.4.7/scheduler/server.c0000644000175000017500000000620614502571342016015 0ustar zdohnalzdohnal/* * Server start/stop routines for the CUPS scheduler. * * Copyright 2007-2019 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include "cupsd.h" #include #ifdef HAVE_NOTIFY_H # include #endif /* HAVE_NOTIFY_H */ /* * Local globals... */ static int started = 0; /* Did we start the server already? */ /* * 'cupsdStartServer()' - Start the server. */ void cupsdStartServer(void) { /* * Create the default security profile... */ DefaultProfile = cupsdCreateProfile(0, 1); #ifdef HAVE_SANDBOX_H if (!DefaultProfile && UseSandboxing && Sandboxing != CUPSD_SANDBOXING_OFF) { /* * Failure to create the sandbox profile means something really bad has * happened and we need to shutdown immediately. */ return; } #endif /* HAVE_SANDBOX_H */ /* * Start color management (as needed)... */ cupsdStartColor(); /* * Startup all the networking stuff... */ cupsdStartListening(); cupsdStartBrowsing(); /* * Create a pipe for CGI processes... */ if (cupsdOpenPipe(CGIPipes)) cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdStartServer: Unable to create pipes for CGI status!"); else { CGIStatusBuffer = cupsdStatBufNew(CGIPipes[0], "[CGI]"); cupsdAddSelect(CGIPipes[0], (cupsd_selfunc_t)cupsdUpdateCGI, NULL, NULL); } /* * Mark that the server has started and printers and jobs may be changed... */ LastEvent = CUPSD_EVENT_PRINTER_CHANGED | CUPSD_EVENT_JOB_STATE_CHANGED | CUPSD_EVENT_SERVER_STARTED; started = 1; cupsdSetBusyState(0); } /* * 'cupsdStopServer()' - Stop the server. */ void cupsdStopServer(void) { if (!started) return; /* * Stop color management (as needed)... */ cupsdStopColor(); /* * Close all network clients... */ cupsdCloseAllClients(); cupsdStopListening(); cupsdStopBrowsing(); cupsdStopAllNotifiers(); cupsdDeleteAllCerts(); if (Clients) { cupsArrayDelete(Clients); Clients = NULL; } /* * Close the pipe for CGI processes... */ if (CGIPipes[0] >= 0) { cupsdRemoveSelect(CGIPipes[0]); cupsdStatBufDelete(CGIStatusBuffer); close(CGIPipes[1]); CGIPipes[0] = -1; CGIPipes[1] = -1; } /* * Close all log files... */ if (AccessFile != NULL) { if (AccessFile != LogStderr) cupsFileClose(AccessFile); AccessFile = NULL; } if (ErrorFile != NULL) { if (ErrorFile != LogStderr) cupsFileClose(ErrorFile); ErrorFile = NULL; } if (PageFile != NULL) { if (PageFile != LogStderr) cupsFileClose(PageFile); PageFile = NULL; } /* * Delete the default security profile... */ cupsdDestroyProfile(DefaultProfile); DefaultProfile = NULL; /* * Expire subscriptions and clean out old jobs... */ cupsdExpireSubscriptions(NULL, NULL); if (JobHistoryUpdate) cupsdCleanJobs(); /* * Write out any dirty files... */ if (DirtyFiles) cupsdCleanDirty(); started = 0; } cups-2.4.7/scheduler/select.c0000644000175000017500000005562314502571342015775 0ustar zdohnalzdohnal/* * Select abstraction functions for the CUPS scheduler. * * Copyright 2007-2016 by Apple Inc. * Copyright 2006-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" #ifdef HAVE_EPOLL # include # include #elif defined(HAVE_KQUEUE) # include # include #elif defined(HAVE_POLL) # include #else # include #endif /* HAVE_EPOLL */ /* * Design Notes for Poll/Select API in CUPSD * ----------------------------------------- * * SUPPORTED APIS * * OS select poll epoll kqueue /dev/poll * -------------- ------ ------ ------ ------ --------- * AIX YES YES NO NO NO * FreeBSD YES YES NO YES NO * HP-UX YES YES NO NO NO * Linux YES YES YES NO NO * macOS YES YES NO YES NO * NetBSD YES YES NO YES NO * OpenBSD YES YES NO YES NO * Solaris YES YES NO NO YES * Tru64 YES YES NO NO NO * Windows YES NO NO NO NO * * * HIGH-LEVEL API * * typedef void (*cupsd_selfunc_t)(void *data); * * void cupsdStartSelect(void); * void cupsdStopSelect(void); * void cupsdAddSelect(int fd, cupsd_selfunc_t read_cb, * cupsd_selfunc_t write_cb, void *data); * void cupsdRemoveSelect(int fd); * int cupsdDoSelect(int timeout); * * * IMPLEMENTATION STRATEGY * * 0. Common Stuff * a. CUPS array of file descriptor to callback functions * and data + temporary array of removed fd's. * b. cupsdStartSelect() creates the arrays * c. cupsdStopSelect() destroys the arrays and all elements. * d. cupsdAddSelect() adds to the array and allocates a * new callback element. * e. cupsdRemoveSelect() removes from the active array and * adds to the inactive array. * f. _cupsd_fd_t provides a reference-counted structure for * tracking file descriptors that are monitored. * g. cupsdDoSelect() frees all inactive FDs. * * 1. select() O(n) * a. Input/Output fd_set variables, copied to working * copies and then used with select(). * b. Loop through CUPS array, using FD_ISSET and calling * the read/write callbacks as needed. * c. cupsdRemoveSelect() clears fd_set bit from main and * working sets. * d. cupsdStopSelect() frees all of the memory used by the * CUPS array and fd_set's. * * 2. poll() - O(n log n) * a. Regular array of pollfd, sorted the same as the CUPS * array. * b. Loop through pollfd array, call the corresponding * read/write callbacks as needed. * c. cupsdAddSelect() adds first to CUPS array and flags the * pollfd array as invalid. * d. cupsdDoSelect() rebuilds pollfd array as needed, calls * poll(), then loops through the pollfd array looking up * as needed. * e. cupsdRemoveSelect() flags the pollfd array as invalid. * f. cupsdStopSelect() frees all of the memory used by the * CUPS array and pollfd array. * * 3. epoll() - O(n) * a. cupsdStartSelect() creates epoll file descriptor using * epoll_create() with the maximum fd count, and * allocates an events buffer for the maximum fd count. * b. cupsdAdd/RemoveSelect() uses epoll_ctl() to add * (EPOLL_CTL_ADD) or remove (EPOLL_CTL_DEL) a single * event using the level-triggered semantics. The event * user data field is a pointer to the new callback array * element. * c. cupsdDoSelect() uses epoll_wait() with the global event * buffer allocated in cupsdStartSelect() and then loops * through the events, using the user data field to find * the callback record. * d. cupsdStopSelect() closes the epoll file descriptor and * frees all of the memory used by the event buffer. * * 4. kqueue() - O(n) * b. cupsdStartSelect() creates kqueue file descriptor * using kqueue() function and allocates a global event * buffer. * c. cupsdAdd/RemoveSelect() uses EV_SET and kevent() to * register the changes. The event user data field is a * pointer to the new callback array element. * d. cupsdDoSelect() uses kevent() to poll for events and * loops through the events, using the user data field to * find the callback record. * e. cupsdStopSelect() closes the kqueue() file descriptor * and frees all of the memory used by the event buffer. * * 5. /dev/poll - O(n log n) - NOT YET IMPLEMENTED * a. cupsdStartSelect() opens /dev/poll and allocates an * array of pollfd structs; on failure to open /dev/poll, * revert to poll() system call. * b. cupsdAddSelect() writes a single pollfd struct to * /dev/poll with the new file descriptor and the * POLLIN/POLLOUT flags. * c. cupsdRemoveSelect() writes a single pollfd struct to * /dev/poll with the file descriptor and the POLLREMOVE * flag. * d. cupsdDoSelect() uses the DP_POLL ioctl to retrieve * events from /dev/poll and then loops through the * returned pollfd array, looking up the file descriptors * as needed. * e. cupsdStopSelect() closes /dev/poll and frees the * pollfd array. * * PERFORMANCE * * In tests using the "make test" target with option 0 (keep cupsd * running) and the "testspeed" program with "-c 50 -r 1000", epoll() * performed 5.5% slower than select(), followed by kqueue() at 16% * slower than select() and poll() at 18% slower than select(). Similar * results were seen with twice the number of client connections. * * The epoll() and kqueue() performance is likely limited by the * number of system calls used to add/modify/remove file * descriptors dynamically. Further optimizations may be possible * in the area of limiting use of cupsdAddSelect() and * cupsdRemoveSelect(), however extreme care will be needed to avoid * excess CPU usage and deadlock conditions. * * We may be able to improve the poll() implementation simply by * keeping the pollfd array sync'd with the _cupsd_fd_t array, as that * will eliminate the rebuilding of the array whenever there is a * change and eliminate the fd array lookups in the inner loop of * cupsdDoSelect(). * * Since /dev/poll will never be able to use a shadow array, it may * not make sense to implement support for it. ioctl() overhead will * impact performance as well, so my guess would be that, for CUPS, * /dev/poll will yield a net performance loss. */ /* * Local structures... */ typedef struct _cupsd_fd_s { int fd, /* File descriptor */ use; /* Use count */ cupsd_selfunc_t read_cb, /* Read callback */ write_cb; /* Write callback */ void *data; /* Data pointer for callbacks */ } _cupsd_fd_t; /* * Local globals... */ static cups_array_t *cupsd_fds = NULL; #if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE) static cups_array_t *cupsd_inactive_fds = NULL; static int cupsd_in_select = 0; #endif /* HAVE_EPOLL || HAVE_KQUEUE */ #ifdef HAVE_KQUEUE static int cupsd_kqueue_fd = -1; static struct kevent *cupsd_kqueue_events = NULL; #elif defined(HAVE_POLL) static int cupsd_alloc_pollfds = 0, cupsd_update_pollfds = 0; static struct pollfd *cupsd_pollfds = NULL; # ifdef HAVE_EPOLL static int cupsd_epoll_fd = -1; static struct epoll_event *cupsd_epoll_events = NULL; # endif /* HAVE_EPOLL */ #else /* select() */ static fd_set cupsd_global_input, cupsd_global_output, cupsd_current_input, cupsd_current_output; #endif /* HAVE_KQUEUE */ /* * Local functions... */ static int compare_fds(_cupsd_fd_t *a, _cupsd_fd_t *b); static _cupsd_fd_t *find_fd(int fd); #define release_fd(f) { \ (f)->use --; \ if (!(f)->use) free((f));\ } #define retain_fd(f) (f)->use++ /* * 'cupsdAddSelect()' - Add a file descriptor to the list. */ int /* O - 1 on success, 0 on error */ cupsdAddSelect(int fd, /* I - File descriptor */ cupsd_selfunc_t read_cb, /* I - Read callback */ cupsd_selfunc_t write_cb,/* I - Write callback */ void *data) /* I - Data to pass to callback */ { _cupsd_fd_t *fdptr; /* File descriptor record */ #ifdef HAVE_EPOLL int added; /* 1 if added, 0 if modified */ #endif /* HAVE_EPOLL */ /* * Range check input... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddSelect(fd=%d, read_cb=%p, write_cb=%p, data=%p)", fd, read_cb, write_cb, data); if (fd < 0) return (0); /* * See if this FD has already been added... */ if ((fdptr = find_fd(fd)) == NULL) { /* * No, add a new entry... */ if ((fdptr = calloc(1, sizeof(_cupsd_fd_t))) == NULL) return (0); fdptr->fd = fd; fdptr->use = 1; if (!cupsArrayAdd(cupsd_fds, fdptr)) { cupsdLogMessage(CUPSD_LOG_EMERG, "Unable to add fd %d to array!", fd); free(fdptr); return (0); } #ifdef HAVE_EPOLL added = 1; } else added = 0; #else } #endif /* HAVE_EPOLL */ #ifdef HAVE_KQUEUE { struct kevent event; /* Event data */ struct timespec timeout; /* Timeout value */ timeout.tv_sec = 0; timeout.tv_nsec = 0; if (fdptr->read_cb != read_cb) { if (read_cb) EV_SET(&event, fd, EVFILT_READ, EV_ADD, 0, 0, fdptr); else EV_SET(&event, fd, EVFILT_READ, EV_DELETE, 0, 0, fdptr); if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); return (0); } } if (fdptr->write_cb != write_cb) { if (write_cb) EV_SET(&event, fd, EVFILT_WRITE, EV_ADD, 0, 0, fdptr); else EV_SET(&event, fd, EVFILT_WRITE, EV_DELETE, 0, 0, fdptr); if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); return (0); } } } #elif defined(HAVE_POLL) # ifdef HAVE_EPOLL if (cupsd_epoll_fd >= 0) { struct epoll_event event; /* Event data */ event.events = 0; if (read_cb) event.events |= EPOLLIN; if (write_cb) event.events |= EPOLLOUT; event.data.ptr = fdptr; if (epoll_ctl(cupsd_epoll_fd, added ? EPOLL_CTL_ADD : EPOLL_CTL_MOD, fd, &event)) { close(cupsd_epoll_fd); cupsd_epoll_fd = -1; cupsd_update_pollfds = 1; } } else # endif /* HAVE_EPOLL */ cupsd_update_pollfds = 1; #else /* select() */ /* * Add or remove the file descriptor in the input and output sets * for select()... */ if (read_cb) FD_SET(fd, &cupsd_global_input); else { FD_CLR(fd, &cupsd_global_input); FD_CLR(fd, &cupsd_current_input); } if (write_cb) FD_SET(fd, &cupsd_global_output); else { FD_CLR(fd, &cupsd_global_output); FD_CLR(fd, &cupsd_current_output); } #endif /* HAVE_KQUEUE */ /* * Save the (new) read and write callbacks... */ fdptr->read_cb = read_cb; fdptr->write_cb = write_cb; fdptr->data = data; return (1); } /* * 'cupsdDoSelect()' - Do a select-like operation. */ int /* O - Number of files or -1 on error */ cupsdDoSelect(long timeout) /* I - Timeout in seconds */ { int nfds; /* Number of file descriptors */ _cupsd_fd_t *fdptr; /* Current file descriptor */ #ifdef HAVE_KQUEUE int i; /* Looping var */ struct kevent *event; /* Current event */ struct timespec ktimeout; /* kevent() timeout */ cupsd_in_select = 1; if (timeout >= 0 && timeout < 86400) { ktimeout.tv_sec = timeout; ktimeout.tv_nsec = 0; nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, &ktimeout); } else nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, NULL); for (i = nfds, event = cupsd_kqueue_events; i > 0; i --, event ++) { fdptr = (_cupsd_fd_t *)event->udata; if (cupsArrayFind(cupsd_inactive_fds, fdptr)) continue; retain_fd(fdptr); if (fdptr->read_cb && event->filter == EVFILT_READ) (*(fdptr->read_cb))(fdptr->data); if (fdptr->use > 1 && fdptr->write_cb && event->filter == EVFILT_WRITE && !cupsArrayFind(cupsd_inactive_fds, fdptr)) (*(fdptr->write_cb))(fdptr->data); release_fd(fdptr); } #elif defined(HAVE_POLL) struct pollfd *pfd; /* Current pollfd structure */ int count; /* Number of file descriptors */ # ifdef HAVE_EPOLL cupsd_in_select = 1; if (cupsd_epoll_fd >= 0) { int i; /* Looping var */ struct epoll_event *event; /* Current event */ if (timeout >= 0 && timeout < 86400) nfds = epoll_wait(cupsd_epoll_fd, cupsd_epoll_events, MaxFDs, timeout * 1000); else nfds = epoll_wait(cupsd_epoll_fd, cupsd_epoll_events, MaxFDs, -1); if (nfds < 0 && errno != EINTR) { close(cupsd_epoll_fd); cupsd_epoll_fd = -1; } else { for (i = nfds, event = cupsd_epoll_events; i > 0; i --, event ++) { fdptr = (_cupsd_fd_t *)event->data.ptr; if (cupsArrayFind(cupsd_inactive_fds, fdptr)) continue; retain_fd(fdptr); if (fdptr->read_cb && (event->events & (EPOLLIN | EPOLLERR | EPOLLHUP))) (*(fdptr->read_cb))(fdptr->data); if (fdptr->use > 1 && fdptr->write_cb && (event->events & (EPOLLOUT | EPOLLERR | EPOLLHUP)) && !cupsArrayFind(cupsd_inactive_fds, fdptr)) (*(fdptr->write_cb))(fdptr->data); release_fd(fdptr); } goto release_inactive; } } # endif /* HAVE_EPOLL */ count = cupsArrayCount(cupsd_fds); if (cupsd_update_pollfds) { /* * Update the cupsd_pollfds array to match the current FD array... */ cupsd_update_pollfds = 0; /* * (Re)allocate memory as needed... */ if (count > cupsd_alloc_pollfds) { int allocfds = count + 16; if (cupsd_pollfds) pfd = realloc(cupsd_pollfds, (size_t)allocfds * sizeof(struct pollfd)); else pfd = malloc((size_t)allocfds * sizeof(struct pollfd)); if (!pfd) { cupsdLogMessage(CUPSD_LOG_EMERG, "Unable to allocate %d bytes for polling.", (int)((size_t)allocfds * sizeof(struct pollfd))); return (-1); } cupsd_pollfds = pfd; cupsd_alloc_pollfds = allocfds; } /* * Rebuild the array... */ for (fdptr = (_cupsd_fd_t *)cupsArrayFirst(cupsd_fds), pfd = cupsd_pollfds; fdptr; fdptr = (_cupsd_fd_t *)cupsArrayNext(cupsd_fds), pfd ++) { pfd->fd = fdptr->fd; pfd->events = 0; if (fdptr->read_cb) pfd->events |= POLLIN; if (fdptr->write_cb) pfd->events |= POLLOUT; } } if (timeout >= 0 && timeout < 86400) nfds = poll(cupsd_pollfds, (nfds_t)count, timeout * 1000); else nfds = poll(cupsd_pollfds, (nfds_t)count, -1); if (nfds > 0) { /* * Do callbacks for each file descriptor... */ for (pfd = cupsd_pollfds; count > 0; pfd ++, count --) { if (!pfd->revents) continue; if ((fdptr = find_fd(pfd->fd)) == NULL) continue; retain_fd(fdptr); if (fdptr->read_cb && (pfd->revents & (POLLIN | POLLERR | POLLHUP))) (*(fdptr->read_cb))(fdptr->data); if (fdptr->use > 1 && fdptr->write_cb && (pfd->revents & (POLLOUT | POLLERR | POLLHUP))) (*(fdptr->write_cb))(fdptr->data); release_fd(fdptr); } } #else /* select() */ struct timeval stimeout; /* Timeout for select() */ int maxfd; /* Maximum file descriptor */ /* * Figure out the highest file descriptor number... */ if ((fdptr = (_cupsd_fd_t *)cupsArrayLast(cupsd_fds)) == NULL) maxfd = 1; else maxfd = fdptr->fd + 1; /* * Do the select()... */ cupsd_current_input = cupsd_global_input; cupsd_current_output = cupsd_global_output; if (timeout >= 0 && timeout < 86400) { stimeout.tv_sec = timeout; stimeout.tv_usec = 0; nfds = select(maxfd, &cupsd_current_input, &cupsd_current_output, NULL, &stimeout); } else nfds = select(maxfd, &cupsd_current_input, &cupsd_current_output, NULL, NULL); if (nfds > 0) { /* * Do callbacks for each file descriptor... */ for (fdptr = (_cupsd_fd_t *)cupsArrayFirst(cupsd_fds); fdptr; fdptr = (_cupsd_fd_t *)cupsArrayNext(cupsd_fds)) { retain_fd(fdptr); if (fdptr->read_cb && FD_ISSET(fdptr->fd, &cupsd_current_input)) (*(fdptr->read_cb))(fdptr->data); if (fdptr->use > 1 && fdptr->write_cb && FD_ISSET(fdptr->fd, &cupsd_current_output)) (*(fdptr->write_cb))(fdptr->data); release_fd(fdptr); } } #endif /* HAVE_KQUEUE */ #if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE) /* * Release all inactive file descriptors... */ # ifndef HAVE_KQUEUE release_inactive: # endif /* !HAVE_KQUEUE */ cupsd_in_select = 0; for (fdptr = (_cupsd_fd_t *)cupsArrayFirst(cupsd_inactive_fds); fdptr; fdptr = (_cupsd_fd_t *)cupsArrayNext(cupsd_inactive_fds)) { cupsArrayRemove(cupsd_inactive_fds, fdptr); release_fd(fdptr); } #endif /* HAVE_EPOLL || HAVE_KQUEUE */ /* * Return the number of file descriptors handled... */ return (nfds); } #ifdef CUPSD_IS_SELECTING /* * 'cupsdIsSelecting()' - Determine whether we are monitoring a file * descriptor. */ int /* O - 1 if selecting, 0 otherwise */ cupsdIsSelecting(int fd) /* I - File descriptor */ { return (find_fd(fd) != NULL); } #endif /* CUPSD_IS_SELECTING */ /* * 'cupsdRemoveSelect()' - Remove a file descriptor from the list. */ void cupsdRemoveSelect(int fd) /* I - File descriptor */ { _cupsd_fd_t *fdptr; /* File descriptor record */ #ifdef HAVE_EPOLL struct epoll_event event; /* Event data */ #elif defined(HAVE_KQUEUE) struct kevent event; /* Event data */ struct timespec timeout; /* Timeout value */ #elif defined(HAVE_POLL) /* No variables for poll() */ #endif /* HAVE_EPOLL */ /* * Range check input... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRemoveSelect(fd=%d)", fd); if (fd < 0) return; /* * Find the file descriptor... */ if ((fdptr = find_fd(fd)) == NULL) return; #ifdef HAVE_EPOLL if (epoll_ctl(cupsd_epoll_fd, EPOLL_CTL_DEL, fd, &event)) { close(cupsd_epoll_fd); cupsd_epoll_fd = -1; cupsd_update_pollfds = 1; } #elif defined(HAVE_KQUEUE) timeout.tv_sec = 0; timeout.tv_nsec = 0; if (fdptr->read_cb) { EV_SET(&event, fd, EVFILT_READ, EV_DELETE, 0, 0, fdptr); if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); goto cleanup; } } if (fdptr->write_cb) { EV_SET(&event, fd, EVFILT_WRITE, EV_DELETE, 0, 0, fdptr); if (kevent(cupsd_kqueue_fd, &event, 1, NULL, 0, &timeout)) { cupsdLogMessage(CUPSD_LOG_EMERG, "kevent() returned %s", strerror(errno)); goto cleanup; } } #elif defined(HAVE_POLL) /* * Update the pollfds array... */ cupsd_update_pollfds = 1; #else /* select() */ FD_CLR(fd, &cupsd_global_input); FD_CLR(fd, &cupsd_global_output); FD_CLR(fd, &cupsd_current_input); FD_CLR(fd, &cupsd_current_output); #endif /* HAVE_EPOLL */ #ifdef HAVE_KQUEUE cleanup: #endif /* HAVE_KQUEUE */ /* * Remove the file descriptor from the active array and add to the * inactive array (or release, if we don't need the inactive array...) */ cupsArrayRemove(cupsd_fds, fdptr); #if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE) if (cupsd_in_select) cupsArrayAdd(cupsd_inactive_fds, fdptr); else #endif /* HAVE_EPOLL || HAVE_KQUEUE */ release_fd(fdptr); } /* * 'cupsdStartSelect()' - Initialize the file polling engine. */ void cupsdStartSelect(void) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdStartSelect()"); cupsd_fds = cupsArrayNew((cups_array_func_t)compare_fds, NULL); #if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE) cupsd_inactive_fds = cupsArrayNew((cups_array_func_t)compare_fds, NULL); #endif /* HAVE_EPOLL || HAVE_KQUEUE */ #ifdef HAVE_EPOLL cupsd_epoll_fd = epoll_create(MaxFDs); cupsd_epoll_events = calloc((size_t)MaxFDs, sizeof(struct epoll_event)); cupsd_update_pollfds = 0; #elif defined(HAVE_KQUEUE) cupsd_kqueue_fd = kqueue(); cupsd_kqueue_events = calloc((size_t)MaxFDs, sizeof(struct kevent)); #elif defined(HAVE_POLL) cupsd_update_pollfds = 0; #else /* select() */ FD_ZERO(&cupsd_global_input); FD_ZERO(&cupsd_global_output); #endif /* HAVE_EPOLL */ } /* * 'cupsdStopSelect()' - Shutdown the file polling engine. */ void cupsdStopSelect(void) { _cupsd_fd_t *fdptr; /* Current file descriptor */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdStopSelect()"); for (fdptr = (_cupsd_fd_t *)cupsArrayFirst(cupsd_fds); fdptr; fdptr = (_cupsd_fd_t *)cupsArrayNext(cupsd_fds)) free(fdptr); cupsArrayDelete(cupsd_fds); cupsd_fds = NULL; #if defined(HAVE_EPOLL) || defined(HAVE_KQUEUE) cupsArrayDelete(cupsd_inactive_fds); cupsd_inactive_fds = NULL; #endif /* HAVE_EPOLL || HAVE_KQUEUE */ #ifdef HAVE_KQUEUE if (cupsd_kqueue_events) { free(cupsd_kqueue_events); cupsd_kqueue_events = NULL; } if (cupsd_kqueue_fd >= 0) { close(cupsd_kqueue_fd); cupsd_kqueue_fd = -1; } #elif defined(HAVE_POLL) # ifdef HAVE_EPOLL if (cupsd_epoll_events) { free(cupsd_epoll_events); cupsd_epoll_events = NULL; } if (cupsd_epoll_fd >= 0) { close(cupsd_epoll_fd); cupsd_epoll_fd = -1; } # endif /* HAVE_EPOLL */ if (cupsd_pollfds) { free(cupsd_pollfds); cupsd_pollfds = NULL; cupsd_alloc_pollfds = 0; } cupsd_update_pollfds = 0; #else /* select() */ FD_ZERO(&cupsd_global_input); FD_ZERO(&cupsd_global_output); #endif /* HAVE_EPOLL */ } /* * 'compare_fds()' - Compare file descriptors. */ static int /* O - Result of comparison */ compare_fds(_cupsd_fd_t *a, /* I - First file descriptor */ _cupsd_fd_t *b) /* I - Second file descriptor */ { return (a->fd - b->fd); } /* * 'find_fd()' - Find an existing file descriptor record. */ static _cupsd_fd_t * /* O - FD record pointer or NULL */ find_fd(int fd) /* I - File descriptor */ { _cupsd_fd_t *fdptr, /* Matching record (if any) */ key; /* Search key */ cupsArraySave(cupsd_fds); key.fd = fd; fdptr = (_cupsd_fd_t *)cupsArrayFind(cupsd_fds, &key); cupsArrayRestore(cupsd_fds); return (fdptr); } cups-2.4.7/scheduler/quotas.c0000644000175000017500000001240114502571342016015 0ustar zdohnalzdohnal/* * Quota routines for the CUPS scheduler. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" /* * Local functions... */ static cupsd_quota_t *add_quota(cupsd_printer_t *p, const char *username); static int compare_quotas(const cupsd_quota_t *q1, const cupsd_quota_t *q2); /* * 'cupsdFindQuota()' - Find a quota record. */ cupsd_quota_t * /* O - Quota data */ cupsdFindQuota( cupsd_printer_t *p, /* I - Printer */ const char *username) /* I - User */ { cupsd_quota_t *q, /* Quota data pointer */ match; /* Search data */ char *ptr; /* Pointer into username */ if (!p || !username) return (NULL); strlcpy(match.username, username, sizeof(match.username)); if ((ptr = strchr(match.username, '@')) != NULL) *ptr = '\0'; /* Strip @domain/@KDC */ if ((q = (cupsd_quota_t *)cupsArrayFind(p->quotas, &match)) != NULL) return (q); else return (add_quota(p, username)); } /* * 'cupsdFreeQuotas()' - Free quotas for a printer. */ void cupsdFreeQuotas(cupsd_printer_t *p) /* I - Printer */ { cupsd_quota_t *q; /* Current quota record */ if (!p) return; for (q = (cupsd_quota_t *)cupsArrayFirst(p->quotas); q; q = (cupsd_quota_t *)cupsArrayNext(p->quotas)) free(q); cupsArrayDelete(p->quotas); p->quotas = NULL; } /* * 'cupsdUpdateQuota()' - Update quota data for the specified printer and user. */ cupsd_quota_t * /* O - Quota data */ cupsdUpdateQuota( cupsd_printer_t *p, /* I - Printer */ const char *username, /* I - User */ int pages, /* I - Number of pages */ int k) /* I - Number of kilobytes */ { cupsd_quota_t *q; /* Quota data */ cupsd_job_t *job; /* Current job */ time_t curtime; /* Current time */ ipp_attribute_t *attr; /* Job attribute */ if (!p || !username) return (NULL); if (!p->k_limit && !p->page_limit) return (NULL); if ((q = cupsdFindQuota(p, username)) == NULL) return (NULL); cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdUpdateQuota: p=%s username=%s pages=%d k=%d", p->name, username, pages, k); curtime = time(NULL); if (curtime < q->next_update) { q->page_count += pages; q->k_count += k; return (q); } if (p->quota_period) curtime -= p->quota_period; else curtime = 0; q->next_update = 0; q->page_count = 0; q->k_count = 0; for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { /* * We only care about the current printer/class and user... */ if (_cups_strcasecmp(job->dest, p->name) != 0 || _cups_strcasecmp(job->username, q->username) != 0) continue; /* * Make sure attributes are loaded; we always call cupsdLoadJob() to ensure * the access_time member is updated so the job isn't unloaded right away... */ if (!cupsdLoadJob(job)) continue; if ((attr = ippFindAttribute(job->attrs, "time-at-completion", IPP_TAG_INTEGER)) == NULL) if ((attr = ippFindAttribute(job->attrs, "time-at-processing", IPP_TAG_INTEGER)) == NULL) attr = ippFindAttribute(job->attrs, "time-at-creation", IPP_TAG_INTEGER); if (attr->values[0].integer < curtime) { /* * This job is too old to count towards the quota, ignore it... */ if (JobAutoPurge && !job->printer && job->state_value > IPP_JOB_STOPPED) cupsdDeleteJob(job, CUPSD_JOB_PURGE); continue; } if (q->next_update == 0) q->next_update = attr->values[0].integer + p->quota_period; if ((attr = ippFindAttribute(job->attrs, "job-media-sheets-completed", IPP_TAG_INTEGER)) != NULL) q->page_count += attr->values[0].integer; if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) q->k_count += attr->values[0].integer; } return (q); } /* * 'add_quota()' - Add a quota record for this printer and user. */ static cupsd_quota_t * /* O - Quota data */ add_quota(cupsd_printer_t *p, /* I - Printer */ const char *username) /* I - User */ { cupsd_quota_t *q; /* New quota data */ char *ptr; /* Pointer into username */ if (!p || !username) return (NULL); if (!p->quotas) p->quotas = cupsArrayNew((cups_array_func_t)compare_quotas, NULL); if (!p->quotas) return (NULL); if ((q = calloc(1, sizeof(cupsd_quota_t))) == NULL) return (NULL); strlcpy(q->username, username, sizeof(q->username)); if ((ptr = strchr(q->username, '@')) != NULL) *ptr = '\0'; /* Strip @domain/@KDC */ cupsArrayAdd(p->quotas, q); return (q); } /* * 'compare_quotas()' - Compare two quota records... */ static int /* O - Result of comparison */ compare_quotas(const cupsd_quota_t *q1, /* I - First quota record */ const cupsd_quota_t *q2) /* I - Second quota record */ { return (_cups_strcasecmp(q1->username, q2->username)); } cups-2.4.7/scheduler/process.c0000644000175000017500000006050314502571342016165 0ustar zdohnalzdohnal/* * Process management routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef __APPLE__ # include #endif /* __APPLE__ */ #ifdef HAVE_POSIX_SPAWN # include extern char **environ; /* Don't use posix_spawn on systems with bugs in their implementations... */ # if defined(OpenBSD) && OpenBSD < 201505 # define USE_POSIX_SPAWN 0 # elif defined(__UCLIBC__) && __UCLIBC_MAJOR__ == 1 && __UCLIBC_MINOR__ == 0 && __UCLIBC_SUBLEVEL__ < 27 # define USE_POSIX_SPAWN 0 # elif defined(__UCLIBC__) && __UCLIBC_MAJOR__ < 1 # define USE_POSIX_SPAWN 0 # else /* All other platforms */ # define USE_POSIX_SPAWN 1 # endif /* ... */ #else # define USE_POSIX_SPAWN 0 #endif /* HAVE_POSIX_SPAWN */ /* * Process structure... */ typedef struct { int pid, /* Process ID */ job_id; /* Job associated with process */ char name[1]; /* Name of process */ } cupsd_proc_t; /* * Local globals... */ static cups_array_t *process_array = NULL; /* * Local functions... */ static int compare_procs(cupsd_proc_t *a, cupsd_proc_t *b); #ifdef HAVE_SANDBOX_H static char *cupsd_requote(char *dst, const char *src, size_t dstsize); #endif /* HAVE_SANDBOX_H */ /* * 'cupsdCreateProfile()' - Create an execution profile for a subprocess. */ void * /* O - Profile or NULL on error */ cupsdCreateProfile(int job_id, /* I - Job ID or 0 for none */ int allow_networking)/* I - Allow networking off machine? */ { #ifdef HAVE_SANDBOX_H cups_file_t *fp; /* File pointer */ char profile[1024], /* File containing the profile */ bin[1024], /* Quoted ServerBin */ cache[1024], /* Quoted CacheDir */ domain[1024], /* Domain socket, if any */ request[1024], /* Quoted RequestRoot */ root[1024], /* Quoted ServerRoot */ state[1024], /* Quoted StateDir */ temp[1024]; /* Quoted TempDir */ const char *nodebug; /* " (with no-log)" for no debug */ cupsd_listener_t *lis; /* Current listening socket */ if (!UseSandboxing || Sandboxing == CUPSD_SANDBOXING_OFF) { /* * Only use sandbox profiles as root... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCreateProfile(job_id=%d, allow_networking=%d) = NULL", job_id, allow_networking); return (NULL); } if ((fp = cupsTempFile2(profile, sizeof(profile))) == NULL) { /* * This should never happen, and is fatal when sandboxing is enabled. */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCreateProfile(job_id=%d, allow_networking=%d) = NULL", job_id, allow_networking); cupsdLogMessage(CUPSD_LOG_EMERG, "Unable to create security profile: %s", strerror(errno)); kill(getpid(), SIGTERM); return (NULL); } fchown(cupsFileNumber(fp), RunUser, Group); fchmod(cupsFileNumber(fp), 0640); cupsd_requote(bin, ServerBin, sizeof(bin)); cupsd_requote(cache, CacheDir, sizeof(cache)); cupsd_requote(request, RequestRoot, sizeof(request)); cupsd_requote(root, ServerRoot, sizeof(root)); cupsd_requote(state, StateDir, sizeof(state)); cupsd_requote(temp, TempDir, sizeof(temp)); nodebug = LogLevel < CUPSD_LOG_DEBUG ? " (with no-log)" : ""; cupsFilePuts(fp, "(version 1)\n"); if (Sandboxing == CUPSD_SANDBOXING_STRICT) cupsFilePuts(fp, "(deny default)\n"); else cupsFilePuts(fp, "(allow default)\n"); if (LogLevel >= CUPSD_LOG_DEBUG) cupsFilePuts(fp, "(debug deny)\n"); cupsFilePuts(fp, "(import \"system.sb\")\n"); cupsFilePuts(fp, "(import \"com.apple.corefoundation.sb\")\n"); cupsFilePuts(fp, "(system-network)\n"); cupsFilePuts(fp, "(allow mach-per-user-lookup)\n"); cupsFilePuts(fp, "(allow ipc-posix-sem)\n"); cupsFilePuts(fp, "(allow ipc-posix-shm)\n"); cupsFilePuts(fp, "(allow ipc-sysv-shm)\n"); cupsFilePuts(fp, "(allow mach-lookup)\n"); if (!RunUser) cupsFilePrintf(fp, "(deny file-write* file-read-data file-read-metadata\n" " (regex" " #\"^/Users$\"" " #\"^/Users/\"" ")%s)\n", nodebug); cupsFilePrintf(fp, "(deny file-write*\n" " (regex" " #\"^%s$\"" /* ServerRoot */ " #\"^%s/\"" /* ServerRoot/... */ " #\"^/private/etc$\"" " #\"^/private/etc/\"" " #\"^/usr/local/etc$\"" " #\"^/usr/local/etc/\"" " #\"^/Library$\"" " #\"^/Library/\"" " #\"^/System$\"" " #\"^/System/\"" ")%s)\n", root, root, nodebug); /* Specifically allow applications to stat RequestRoot and some other system folders */ cupsFilePrintf(fp, "(allow file-read-metadata\n" " (regex" " #\"^/$\"" /* / */ " #\"^/usr$\"" /* /usr */ " #\"^/Library$\"" /* /Library */ " #\"^/Library/Printers$\"" /* /Library/Printers */ " #\"^%s$\"" /* RequestRoot */ "))\n", request); /* Read and write TempDir, CacheDir, and other common folders */ cupsFilePuts(fp, "(allow file-write* file-read-data file-read-metadata\n" " (regex" " #\"^/private/var/db/\"" " #\"^/private/var/folders/\"" " #\"^/private/var/lib/\"" " #\"^/private/var/log/\"" " #\"^/private/var/mysql/\"" " #\"^/private/var/run/\"" " #\"^/private/var/spool/\"" " #\"^/Library/Application Support/\"" " #\"^/Library/Caches/\"" " #\"^/Library/Logs/\"" " #\"^/Library/Preferences/\"" " #\"^/Library/WebServer/\"" " #\"^/Users/Shared/\"" "))\n"); cupsFilePrintf(fp, "(deny file-write*\n" " (regex #\"^%s$\")%s)\n", request, nodebug); cupsFilePrintf(fp, "(deny file-write* file-read-data file-read-metadata\n" " (regex #\"^%s/\")%s)\n", request, nodebug); cupsFilePrintf(fp, "(allow file-write* file-read-data file-read-metadata\n" " (regex" " #\"^%s$\"" /* TempDir */ " #\"^%s/\"" /* TempDir/... */ " #\"^%s$\"" /* CacheDir */ " #\"^%s/\"" /* CacheDir/... */ "))\n", temp, temp, cache, cache); /* Read common folders */ cupsFilePrintf(fp, "(allow file-read-data file-read-metadata\n" " (regex" " #\"^/AppleInternal$\"" " #\"^/AppleInternal/\"" " #\"^/bin$\"" /* /bin */ " #\"^/bin/\"" /* /bin/... */ " #\"^/private$\"" " #\"^/private/etc$\"" " #\"^/private/etc/\"" " #\"^/private/tmp$\"" " #\"^/private/tmp/\"" " #\"^/private/var$\"" " #\"^/private/var/db$\"" " #\"^/private/var/folders$\"" " #\"^/private/var/lib$\"" " #\"^/private/var/log$\"" " #\"^/private/var/mysql$\"" " #\"^/private/var/run$\"" " #\"^/private/var/spool$\"" " #\"^/private/var/tmp$\"" " #\"^/private/var/tmp/\"" " #\"^/usr/bin$\"" /* /usr/bin */ " #\"^/usr/bin/\"" /* /usr/bin/... */ " #\"^/usr/libexec/cups$\"" /* /usr/libexec/cups */ " #\"^/usr/libexec/cups/\"" /* /usr/libexec/cups/... */ " #\"^/usr/libexec/fax$\"" /* /usr/libexec/fax */ " #\"^/usr/libexec/fax/\"" /* /usr/libexec/fax/... */ " #\"^/usr/sbin$\"" /* /usr/sbin */ " #\"^/usr/sbin/\"" /* /usr/sbin/... */ " #\"^/Library$\"" /* /Library */ " #\"^/Library/\"" /* /Library/... */ " #\"^/System$\"" /* /System */ " #\"^/System/\"" /* /System/... */ " #\"^%s/Library$\"" /* RequestRoot/Library */ " #\"^%s/Library/\"" /* RequestRoot/Library/... */ " #\"^%s$\"" /* ServerBin */ " #\"^%s/\"" /* ServerBin/... */ " #\"^%s$\"" /* ServerRoot */ " #\"^%s/\"" /* ServerRoot/... */ " #\"^%s$\"" /* StateDir */ " #\"^%s/\"" /* StateDir/... */ "))\n", request, request, bin, bin, root, root, state, state); if (Sandboxing == CUPSD_SANDBOXING_RELAXED) { /* Limited write access to /Library/Printers/... */ cupsFilePuts(fp, "(allow file-write*\n" " (regex" " #\"^/Library/Printers/.*/\"" "))\n"); cupsFilePrintf(fp, "(deny file-write*\n" " (regex" " #\"^/Library/Printers/PPDs$\"" " #\"^/Library/Printers/PPDs/\"" " #\"^/Library/Printers/PPD Plugins$\"" " #\"^/Library/Printers/PPD Plugins/\"" ")%s)\n", nodebug); } /* Allow execution of child processes as long as the programs are not in a user directory */ cupsFilePuts(fp, "(allow process*)\n"); cupsFilePuts(fp, "(deny process-exec (regex #\"^/Users/\"))\n"); if (RunUser && getenv("CUPS_TESTROOT")) { /* Allow source directory access in "make test" environment */ char testroot[1024]; /* Root directory of test files */ cupsd_requote(testroot, getenv("CUPS_TESTROOT"), sizeof(testroot)); cupsFilePrintf(fp, "(allow file-write* file-read-data file-read-metadata\n" " (regex" " #\"^%s$\"" /* CUPS_TESTROOT */ " #\"^%s/\"" /* CUPS_TESTROOT/... */ "))\n", testroot, testroot); cupsFilePrintf(fp, "(allow process-exec\n" " (regex" " #\"^%s/\"" /* CUPS_TESTROOT/... */ "))\n", testroot); cupsFilePrintf(fp, "(allow sysctl*)\n"); } if (job_id) { /* Allow job filters to read the current job files... */ cupsFilePrintf(fp, "(allow file-read-data file-read-metadata\n" " (regex #\"^%s/([ac]%05d|d%05d-[0-9][0-9][0-9])$\"))\n", request, job_id, job_id); } else { /* Allow email notifications from notifiers... */ cupsFilePuts(fp, "(allow process-exec\n" " (literal \"/usr/sbin/sendmail\")\n" " (with no-sandbox))\n"); } /* Allow access to Bluetooth, USB, and notify_post. */ cupsFilePuts(fp, "(allow iokit*)\n"); cupsFilePuts(fp, "(allow distributed-notification-post)\n"); /* Allow outbound networking to local services */ cupsFilePuts(fp, "(allow network-outbound" "\n (regex #\"^/private/var/run/\" #\"^/private/tmp/\" #\"^/private/var/tmp/\")"); for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { if (httpAddrFamily(&(lis->address)) == AF_LOCAL) { httpAddrString(&(lis->address), domain, sizeof(domain)); cupsFilePrintf(fp, "\n (literal \"%s\")", domain); } } if (allow_networking) { /* Allow TCP and UDP networking off the machine... */ cupsFilePuts(fp, "\n (remote tcp))\n"); cupsFilePuts(fp, "(allow network-bind)\n"); /* for LPD resvport */ cupsFilePuts(fp, "(allow network*\n" " (local udp \"*:*\")\n" " (remote udp \"*:*\"))\n"); /* Also allow access to device files... */ cupsFilePuts(fp, "(allow file-write* file-read-data file-read-metadata file-ioctl\n" " (regex #\"^/dev/\"))\n"); /* And allow kernel extensions to be loaded, e.g., SMB */ cupsFilePuts(fp, "(allow system-kext-load)\n"); } else { /* Only allow SNMP (UDP) and LPD (TCP) off the machine... */ cupsFilePuts(fp, ")\n"); cupsFilePuts(fp, "(allow network-outbound\n" " (remote udp \"*:161\")\n" " (remote tcp \"*:515\"))\n"); cupsFilePuts(fp, "(allow network-inbound\n" " (local udp \"localhost:*\"))\n"); } cupsFileClose(fp); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCreateProfile(job_id=%d,allow_networking=%d) = \"%s\"", job_id, allow_networking, profile); return ((void *)strdup(profile)); #else cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCreateProfile(job_id=%d, allow_networking=%d) = NULL", job_id, allow_networking); return (NULL); #endif /* HAVE_SANDBOX_H */ } /* * 'cupsdDestroyProfile()' - Delete an execution profile. */ void cupsdDestroyProfile(void *profile) /* I - Profile */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeleteProfile(profile=\"%s\")", profile ? (char *)profile : "(null)"); #ifdef HAVE_SANDBOX_H if (profile) { unlink((char *)profile); free(profile); } #endif /* HAVE_SANDBOX_H */ } /* * 'cupsdEndProcess()' - End a process. */ int /* O - 0 on success, -1 on failure */ cupsdEndProcess(int pid, /* I - Process ID */ int force) /* I - Force child to die */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdEndProcess(pid=%d, force=%d)", pid, force); if (!pid) return (0); if (!RunUser) { /* * When running as root, cupsd puts child processes in their own process * group. Using "-pid" sends a signal to all processes in the group. */ pid = -pid; } if (force) return (kill(pid, SIGKILL)); else return (kill(pid, SIGTERM)); } /* * 'cupsdFinishProcess()' - Finish a process and get its name. */ const char * /* O - Process name */ cupsdFinishProcess(int pid, /* I - Process ID */ char *name, /* I - Name buffer */ size_t namelen, /* I - Size of name buffer */ int *job_id) /* O - Job ID pointer or NULL */ { cupsd_proc_t key, /* Search key */ *proc; /* Matching process */ key.pid = pid; if ((proc = (cupsd_proc_t *)cupsArrayFind(process_array, &key)) != NULL) { if (job_id) *job_id = proc->job_id; strlcpy(name, proc->name, namelen); cupsArrayRemove(process_array, proc); free(proc); } else { if (job_id) *job_id = 0; strlcpy(name, "unknown", namelen); } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFinishProcess(pid=%d, name=%p, namelen=" CUPS_LLFMT ", job_id=%p(%d)) = \"%s\"", pid, name, CUPS_LLCAST namelen, job_id, job_id ? *job_id : 0, name); return (name); } /* * 'cupsdStartProcess()' - Start a process. */ int /* O - Process ID or 0 */ cupsdStartProcess( const char *command, /* I - Full path to command */ char *argv[], /* I - Command-line arguments */ char *envp[], /* I - Environment */ int infd, /* I - Standard input file descriptor */ int outfd, /* I - Standard output file descriptor */ int errfd, /* I - Standard error file descriptor */ int backfd, /* I - Backchannel file descriptor */ int sidefd, /* I - Sidechannel file descriptor */ int root, /* I - Run as root? */ void *profile, /* I - Security profile to use */ cupsd_job_t *job, /* I - Job associated with process */ int *pid) /* O - Process ID */ { int i; /* Looping var */ const char *exec_path = command; /* Command to be exec'd */ char *real_argv[110], /* Real command-line arguments */ cups_exec[1024], /* Path to "cups-exec" program */ user_str[16], /* User string */ group_str[16], /* Group string */ nice_str[16]; /* FilterNice string */ uid_t user; /* Command UID */ cupsd_proc_t *proc; /* New process record */ #if USE_POSIX_SPAWN posix_spawn_file_actions_t actions; /* Spawn file actions */ posix_spawnattr_t attrs; /* Spawn attributes */ sigset_t defsignals; /* Default signals */ #elif defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* POSIX signal handler */ #endif /* USE_POSIX_SPAWN */ #if defined(__APPLE__) char processPath[1024], /* CFProcessPath environment variable */ linkpath[1024]; /* Link path for symlinks... */ int linkbytes; /* Bytes for link path */ #endif /* __APPLE__ */ *pid = 0; /* * Figure out the UID for the child process... */ if (RunUser) user = RunUser; else if (root) user = 0; else user = User; /* * Check the permissions of the command we are running... */ if (_cupsFileCheck(command, _CUPS_FILE_CHECK_PROGRAM, !RunUser, cupsdLogFCMessage, job ? job->printer : NULL)) return (0); #if defined(__APPLE__) if (envp) { /* * Add special voodoo magic for macOS - this allows macOS programs to access * their bundle resources properly... */ if ((linkbytes = readlink(command, linkpath, sizeof(linkpath) - 1)) > 0) { /* * Yes, this is a symlink to the actual program, nul-terminate and * use it... */ linkpath[linkbytes] = '\0'; if (linkpath[0] == '/') snprintf(processPath, sizeof(processPath), "CFProcessPath=%s", linkpath); else snprintf(processPath, sizeof(processPath), "CFProcessPath=%s/%s", dirname((char *)command), linkpath); } else snprintf(processPath, sizeof(processPath), "CFProcessPath=%s", command); envp[0] = processPath; /* Replace string */ } #endif /* __APPLE__ */ /* * Use helper program when we have a sandbox profile... */ #if !USE_POSIX_SPAWN if (profile) #endif /* !USE_POSIX_SPAWN */ { snprintf(cups_exec, sizeof(cups_exec), "%s/daemon/cups-exec", ServerBin); snprintf(user_str, sizeof(user_str), "%d", user); snprintf(group_str, sizeof(group_str), "%d", Group); snprintf(nice_str, sizeof(nice_str), "%d", FilterNice); real_argv[0] = cups_exec; real_argv[1] = (char *)"-g"; real_argv[2] = group_str; real_argv[3] = (char *)"-n"; real_argv[4] = nice_str; real_argv[5] = (char *)"-u"; real_argv[6] = user_str; real_argv[7] = profile ? profile : "none"; real_argv[8] = (char *)command; for (i = 0; i < (int)(sizeof(real_argv) / sizeof(real_argv[0]) - 10) && argv[i]; i ++) real_argv[i + 9] = argv[i]; real_argv[i + 9] = NULL; argv = real_argv; exec_path = cups_exec; } if (LogLevel == CUPSD_LOG_DEBUG2) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: Preparing to start \"%s\", arguments:", command); for (i = 0; argv[i]; i ++) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: argv[%d] = \"%s\"", i, argv[i]); } #if USE_POSIX_SPAWN /* * Setup attributes and file actions for the spawn... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: Setting spawn attributes."); sigemptyset(&defsignals); sigaddset(&defsignals, SIGTERM); sigaddset(&defsignals, SIGCHLD); sigaddset(&defsignals, SIGPIPE); posix_spawnattr_init(&attrs); posix_spawnattr_setflags(&attrs, POSIX_SPAWN_SETPGROUP | POSIX_SPAWN_SETSIGDEF); posix_spawnattr_setpgroup(&attrs, 0); posix_spawnattr_setsigdefault(&attrs, &defsignals); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: Setting file actions."); posix_spawn_file_actions_init(&actions); if (infd != 0) { if (infd < 0) posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0); else posix_spawn_file_actions_adddup2(&actions, infd, 0); } if (outfd != 1) { if (outfd < 0) posix_spawn_file_actions_addopen(&actions, 1, "/dev/null", O_WRONLY, 0); else posix_spawn_file_actions_adddup2(&actions, outfd, 1); } if (errfd != 2) { if (errfd < 0) posix_spawn_file_actions_addopen(&actions, 2, "/dev/null", O_WRONLY, 0); else posix_spawn_file_actions_adddup2(&actions, errfd, 2); } if (backfd != 3 && backfd >= 0) posix_spawn_file_actions_adddup2(&actions, backfd, 3); if (sidefd != 4 && sidefd >= 0) posix_spawn_file_actions_adddup2(&actions, sidefd, 4); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: Calling posix_spawn."); if (posix_spawn(pid, exec_path, &actions, &attrs, argv, envp ? envp : environ)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to fork %s - %s.", command, strerror(errno)); *pid = 0; } else cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess: pid=%d", (int)*pid); posix_spawn_file_actions_destroy(&actions); posix_spawnattr_destroy(&attrs); #else /* * Block signals before forking... */ cupsdHoldSignals(); if ((*pid = fork()) == 0) { /* * Child process goes here; update stderr as needed... */ if (errfd != 2) { if (errfd < 0) errfd = open("/dev/null", O_WRONLY); if (errfd != 2) { dup2(errfd, 2); close(errfd); } } /* * Put this process in its own process group so that we can kill any child * processes it creates. */ # ifdef HAVE_SETPGID if (!RunUser && setpgid(0, 0)) exit(errno + 100); # else if (!RunUser && setpgrp()) exit(errno + 100); # endif /* HAVE_SETPGID */ /* * Update the remaining file descriptors as needed... */ if (infd != 0) { if (infd < 0) infd = open("/dev/null", O_RDONLY); if (infd != 0) { dup2(infd, 0); close(infd); } } if (outfd != 1) { if (outfd < 0) outfd = open("/dev/null", O_WRONLY); if (outfd != 1) { dup2(outfd, 1); close(outfd); } } if (backfd != 3 && backfd >= 0) { dup2(backfd, 3); close(backfd); fcntl(3, F_SETFL, O_NDELAY); } if (sidefd != 4 && sidefd >= 0) { dup2(sidefd, 4); close(sidefd); fcntl(4, F_SETFL, O_NDELAY); } /* * Change the priority of the process based on the FilterNice setting. * (this is not done for root processes...) */ if (!root) nice(FilterNice); /* * Reset group membership to just the main one we belong to. */ if (!RunUser && setgid(Group)) exit(errno + 100); # if CUPS_SNAP if (!RunUser && setgroups(0, NULL)) # else if (!RunUser && setgroups(1, &Group)) # endif /* CUPS_SNAP */ exit(errno + 100); /* * Change user to something "safe"... */ if (!RunUser && user && setuid(user)) exit(errno + 100); /* * Change umask to restrict permissions on created files... */ umask(077); /* * Unblock signals before doing the exec... */ # ifdef HAVE_SIGSET sigset(SIGTERM, SIG_DFL); sigset(SIGCHLD, SIG_DFL); sigset(SIGPIPE, SIG_DFL); # elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = SIG_DFL; sigaction(SIGTERM, &action, NULL); sigaction(SIGCHLD, &action, NULL); sigaction(SIGPIPE, &action, NULL); # else signal(SIGTERM, SIG_DFL); signal(SIGCHLD, SIG_DFL); signal(SIGPIPE, SIG_DFL); # endif /* HAVE_SIGSET */ cupsdReleaseSignals(); /* * Execute the command; if for some reason this doesn't work, log an error * exit with a non-zero value... */ if (envp) execve(exec_path, argv, envp); else execv(exec_path, argv); exit(errno + 100); } else if (*pid < 0) { /* * Error - couldn't fork a new process! */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to fork %s - %s.", command, strerror(errno)); *pid = 0; } cupsdReleaseSignals(); #endif /* USE_POSIX_SPAWN */ if (*pid) { if (!process_array) process_array = cupsArrayNew((cups_array_func_t)compare_procs, NULL); if (process_array) { if ((proc = calloc(1, sizeof(cupsd_proc_t) + strlen(command))) != NULL) { proc->pid = *pid; proc->job_id = job ? job->id : 0; _cups_strcpy(proc->name, command); cupsArrayAdd(process_array, proc); } } } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartProcess(command=\"%s\", argv=%p, envp=%p, " "infd=%d, outfd=%d, errfd=%d, backfd=%d, sidefd=%d, root=%d, " "profile=%p, job=%p(%d), pid=%p) = %d", command, argv, envp, infd, outfd, errfd, backfd, sidefd, root, profile, job, job ? job->id : 0, pid, *pid); return (*pid); } /* * 'compare_procs()' - Compare two processes. */ static int /* O - Result of comparison */ compare_procs(cupsd_proc_t *a, /* I - First process */ cupsd_proc_t *b) /* I - Second process */ { return (a->pid - b->pid); } #ifdef HAVE_SANDBOX_H /* * 'cupsd_requote()' - Make a regular-expression version of a string. */ static char * /* O - Quoted string */ cupsd_requote(char *dst, /* I - Destination buffer */ const char *src, /* I - Source string */ size_t dstsize) /* I - Size of destination buffer */ { int ch; /* Current character */ char *dstptr, /* Current position in buffer */ *dstend; /* End of destination buffer */ dstptr = dst; dstend = dst + dstsize - 2; while (*src && dstptr < dstend) { ch = *src++; if (ch == '/' && !*src) break; /* Don't add trailing slash */ if (strchr(".?*()[]^$\\\"", ch)) *dstptr++ = '\\'; *dstptr++ = (char)ch; } *dstptr = '\0'; return (dst); } #endif /* HAVE_SANDBOX_H */ cups-2.4.7/scheduler/printers.h0000644000175000017500000001574414502571342016371 0ustar zdohnalzdohnal/* * Printer definitions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright @ 2007-2017 by Apple Inc. * Copyright @ 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifdef HAVE_MDNSRESPONDER # include #elif defined(HAVE_AVAHI) # include # include # include # include #endif /* HAVE_MDNSRESPONDER */ #include /* * Quota data... */ typedef struct { char username[33]; /* User data */ time_t next_update; /* Next update time */ int page_count, /* Count of pages */ k_count; /* Count of kilobytes */ } cupsd_quota_t; /* * DNS-SD types to make the code cleaner/clearer... */ #ifdef HAVE_MDNSRESPONDER typedef DNSServiceRef cupsd_srv_t; /* Service reference */ typedef TXTRecordRef cupsd_txt_t; /* TXT record */ #elif defined(HAVE_AVAHI) typedef AvahiEntryGroup *cupsd_srv_t; /* Service reference */ typedef AvahiStringList *cupsd_txt_t; /* TXT record */ #endif /* HAVE_MDNSRESPONDER */ /* * Printer/class information structure... */ typedef struct cupsd_job_s cupsd_job_t; struct cupsd_printer_s { _cups_rwlock_t lock; /* Concurrency lock for background updates */ int printer_id; /* Printer ID */ char *uri, /* Printer URI */ *uuid, /* Printer UUID */ *hostname, /* Host printer resides on */ *name, /* Printer name */ *location, /* Location string */ *geo_location, /* Geographic location URI */ *make_model, /* Make and model */ *info, /* Description */ *organization, /* Organization name */ *organizational_unit, /* Organizational unit (department, etc.) */ *strings, /* Strings file, if any */ *op_policy, /* Operation policy name */ *error_policy; /* Error policy */ cupsd_policy_t *op_policy_ptr; /* Pointer to operation policy */ int shared; /* Shared? */ int temporary; /* Temporary queue? */ int accepting; /* Accepting jobs? */ int holding_new_jobs; /* Holding new jobs for printing? */ int in_implicit_class; /* In an implicit class? */ ipp_pstate_t state; /* Printer state */ char state_message[1024]; /* Printer state message */ int num_reasons; /* Number of printer-state-reasons */ char *reasons[64]; /* printer-state-reasons strings */ time_t config_time, /* Time at this configuration */ state_time; /* Time at this state */ char *job_sheets[2]; /* Banners/job sheets */ cups_ptype_t type; /* Printer type (color, small, etc.) */ char *device_uri; /* Device URI */ char *sanitized_device_uri; /* Sanitized device URI */ char *port_monitor; /* Port monitor */ int raw; /* Raw queue? */ int remote; /* Remote queue? */ mime_type_t *filetype, /* Pseudo-filetype for printer */ *prefiltertype; /* Pseudo-filetype for pre-filters */ cups_array_t *filetypes, /* Supported file types */ *dest_types; /* Destination types for queue */ cupsd_job_t *job; /* Current job in queue */ ipp_t *attrs, /* Attributes supported by this printer */ *ppd_attrs; /* Attributes based on the PPD */ int num_printers, /* Number of printers in class */ last_printer; /* Last printer job was sent to */ struct cupsd_printer_s **printers; /* Printers in class */ int quota_period, /* Period for quotas */ page_limit, /* Maximum number of pages */ k_limit; /* Maximum number of kilobytes */ cups_array_t *quotas; /* Quota records */ int deny_users; /* 1 = deny, 0 = allow */ cups_array_t *users; /* Allowed/denied users */ int sequence_number; /* Increasing sequence number */ int num_options; /* Number of default options */ cups_option_t *options; /* Default options */ int num_auth_info_required; /* Number of required auth fields */ const char *auth_info_required[4]; /* Required authentication fields */ char *alert, /* PSX printer-alert value */ *alert_description; /* PSX printer-alert-description value */ time_t marker_time; /* Last time marker attributes were updated */ _ppd_cache_t *pc; /* PPD cache and mapping data */ #ifdef HAVE_DNSSD char *reg_name, /* Name used for service registration */ *pdl; /* pdl value for TXT record */ cupsd_srv_t ipp_srv; /* IPP service(s) */ # ifdef HAVE_MDNSRESPONDER # ifdef HAVE_TLS cupsd_srv_t ipps_srv; /* IPPS service(s) */ # endif /* HAVE_TLS */ cupsd_srv_t printer_srv; /* LPD service */ # endif /* HAVE_MDNSRESPONDER */ #endif /* HAVE_DNSSD */ }; /* * Globals... */ VAR ipp_t *CommonData VALUE(NULL); /* Common printer object attrs */ VAR cups_array_t *CommonDefaults VALUE(NULL); /* Common -default option names */ VAR int NextPrinterId VALUE(1); /* Next printer-id value */ VAR cups_array_t *Printers VALUE(NULL); /* Printer list */ VAR cupsd_printer_t *DefaultPrinter VALUE(NULL); /* Default printer */ VAR char *DefaultPolicy VALUE(NULL); /* Default policy name */ VAR cupsd_policy_t *DefaultPolicyPtr VALUE(NULL); /* Pointer to default policy */ /* * Prototypes... */ extern cupsd_printer_t *cupsdAddPrinter(const char *name); extern void cupsdCreateCommonData(void); extern void cupsdDeleteAllPrinters(void); extern int cupsdDeletePrinter(cupsd_printer_t *p, int update); extern void cupsdDeleteTemporaryPrinters(int force); extern cupsd_printer_t *cupsdFindDest(const char *name); extern cupsd_printer_t *cupsdFindPrinter(const char *name); extern cupsd_quota_t *cupsdFindQuota(cupsd_printer_t *p, const char *username); extern void cupsdFreeQuotas(cupsd_printer_t *p); extern void cupsdLoadAllPrinters(void); extern void cupsdRenamePrinter(cupsd_printer_t *p, const char *name); extern void cupsdSaveAllPrinters(void); extern int cupsdSetAuthInfoRequired(cupsd_printer_t *p, const char *values, ipp_attribute_t *attr); extern void cupsdSetDeviceURI(cupsd_printer_t *p, const char *uri); extern void cupsdSetPrinterAttr(cupsd_printer_t *p, const char *name, const char *value); extern void cupsdSetPrinterAttrs(cupsd_printer_t *p); extern int cupsdSetPrinterReasons(cupsd_printer_t *p, const char *s); extern void cupsdSetPrinterState(cupsd_printer_t *p, ipp_pstate_t s, int update); #define cupsdStartPrinter(p,u) cupsdSetPrinterState((p), \ IPP_PRINTER_IDLE, (u)) extern void cupsdStopPrinter(cupsd_printer_t *p, int update); extern int cupsdUpdatePrinterPPD(cupsd_printer_t *p, int num_keywords, cups_option_t *keywords); extern void cupsdUpdatePrinters(void); extern cupsd_quota_t *cupsdUpdateQuota(cupsd_printer_t *p, const char *username, int pages, int k); extern const char *cupsdValidateDest(const char *uri, cups_ptype_t *dtype, cupsd_printer_t **printer); extern void cupsdWritePrintcap(void); cups-2.4.7/scheduler/printers.c0000644000175000017500000045563014502571342016366 0ustar zdohnalzdohnal/* * Printer routines for the CUPS scheduler. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef HAVE_APPLICATIONSERVICES_H # include #endif /* HAVE_APPLICATIONSERVICES_H */ #ifdef HAVE_SYS_MOUNT_H # include #endif /* HAVE_SYS_MOUNT_H */ #ifdef HAVE_SYS_STATVFS_H # include #elif defined(HAVE_SYS_STATFS_H) # include #endif /* HAVE_SYS_STATVFS_H */ #ifdef HAVE_SYS_VFS_H # include #endif /* HAVE_SYS_VFS_H */ #ifdef __APPLE__ # include #endif /* __APPLE__ */ /* * Local functions... */ static void add_printer_defaults(cupsd_printer_t *p); static void add_printer_filter(cupsd_printer_t *p, mime_type_t *type, const char *filter); static void add_printer_formats(cupsd_printer_t *p); static int compare_printers(void *first, void *second, void *data); static void delete_printer_filters(cupsd_printer_t *p); static void dirty_printer(cupsd_printer_t *p); static void load_ppd(cupsd_printer_t *p); static ipp_t *new_media_col(pwg_size_t *size); static void write_xml_string(cups_file_t *fp, const char *s); /* * 'cupsdAddPrinter()' - Add a printer to the system. */ cupsd_printer_t * /* O - New printer */ cupsdAddPrinter(const char *name) /* I - Name of printer */ { cupsd_printer_t *p; /* New printer */ char uri[1024], /* Printer URI */ uuid[64]; /* Printer UUID */ /* * Range check input... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddPrinter(\"%s\")", name); /* * Create a new printer entity... */ if ((p = calloc(1, sizeof(cupsd_printer_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to allocate memory for printer - %s", strerror(errno)); return (NULL); } _cupsRWInit(&p->lock); cupsdSetString(&p->name, name); cupsdSetString(&p->info, name); cupsdSetString(&p->hostname, ServerName); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, ServerName, RemotePort, "/printers/%s", name); cupsdSetString(&p->uri, uri); cupsdSetString(&p->uuid, httpAssembleUUID(ServerName, RemotePort, name, 0, uuid, sizeof(uuid))); cupsdSetDeviceURI(p, "file:///dev/null"); p->config_time = time(NULL); p->state = IPP_PRINTER_STOPPED; p->state_time = time(NULL); p->accepting = 0; p->shared = DefaultShared; _cupsRWLockWrite(&MimeDatabase->lock); p->filetype = mimeAddType(MimeDatabase, "printer", name); _cupsRWUnlock(&MimeDatabase->lock); cupsdSetString(&p->job_sheets[0], "none"); cupsdSetString(&p->job_sheets[1], "none"); cupsdSetString(&p->error_policy, ErrorPolicy); cupsdSetString(&p->op_policy, DefaultPolicy); p->op_policy_ptr = DefaultPolicyPtr; /* * Insert the printer in the printer list alphabetically... */ if (!Printers) Printers = cupsArrayNew(compare_printers, NULL); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddPrinter: Adding %s to Printers", p->name); cupsArrayAdd(Printers, p); /* * Return the new printer... */ return (p); } /* * 'cupsdCreateCommonData()' - Create the common printer data. */ void cupsdCreateCommonData(void) { int i; /* Looping var */ ipp_attribute_t *attr; /* Attribute data */ cups_dir_t *dir; /* Notifier directory */ cups_dentry_t *dent; /* Notifier directory entry */ cups_array_t *notifiers; /* Notifier array */ char filename[1024], /* Filename */ *notifier; /* Current notifier */ cupsd_policy_t *p; /* Current policy */ int k_supported; /* Maximum file size supported */ #ifdef HAVE_STATVFS struct statvfs spoolinfo; /* FS info for spool directory */ double spoolsize; /* FS size */ #elif defined(HAVE_STATFS) struct statfs spoolinfo; /* FS info for spool directory */ double spoolsize; /* FS size */ #endif /* HAVE_STATVFS */ static const char * const page_delivery[] = { /* page-delivery-supported values */ "reverse-order", "same-order" }; static const char * const print_scaling[] = { /* print-scaling-supported values */ "auto", "auto-fit", "fill", "fit", "none" }; static const int number_up[] = /* number-up-supported values */ { 1, 2, 4, 6, 9, 16 }; static const char * const number_up_layout[] = { /* number-up-layout-supported values */ "btlr", "btrl", "lrbt", "lrtb", "rlbt", "rltb", "tblr", "tbrl" }; static const int orients[4] =/* orientation-requested-supported values */ { IPP_PORTRAIT, IPP_LANDSCAPE, IPP_REVERSE_LANDSCAPE, IPP_REVERSE_PORTRAIT }; static const char * const holds[] = /* job-hold-until-supported values */ { "no-hold", "indefinite", "day-time", "evening", "night", "second-shift", "third-shift", "weekend" }; static const char * const versions[] =/* ipp-versions-supported values */ { "1.0", "1.1", "2.0", "2.1" }; static const int ops[] = /* operations-supported values */ { IPP_OP_PRINT_JOB, IPP_OP_VALIDATE_JOB, IPP_OP_CREATE_JOB, IPP_OP_SEND_DOCUMENT, IPP_OP_CANCEL_JOB, IPP_OP_GET_JOB_ATTRIBUTES, IPP_OP_GET_JOBS, IPP_OP_GET_PRINTER_ATTRIBUTES, IPP_OP_HOLD_JOB, IPP_OP_RELEASE_JOB, IPP_OP_PAUSE_PRINTER, IPP_OP_RESUME_PRINTER, IPP_OP_PURGE_JOBS, IPP_OP_SET_PRINTER_ATTRIBUTES, IPP_OP_SET_JOB_ATTRIBUTES, IPP_OP_GET_PRINTER_SUPPORTED_VALUES, IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, IPP_OP_CREATE_JOB_SUBSCRIPTIONS, IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, IPP_OP_GET_SUBSCRIPTIONS, IPP_OP_RENEW_SUBSCRIPTION, IPP_OP_CANCEL_SUBSCRIPTION, IPP_OP_GET_NOTIFICATIONS, IPP_OP_ENABLE_PRINTER, IPP_OP_DISABLE_PRINTER, IPP_OP_HOLD_NEW_JOBS, IPP_OP_RELEASE_HELD_NEW_JOBS, IPP_OP_CANCEL_JOBS, IPP_OP_CANCEL_MY_JOBS, IPP_OP_CLOSE_JOB, IPP_OP_CUPS_GET_DEFAULT, IPP_OP_CUPS_GET_PRINTERS, IPP_OP_CUPS_ADD_MODIFY_PRINTER, IPP_OP_CUPS_DELETE_PRINTER, IPP_OP_CUPS_GET_CLASSES, IPP_OP_CUPS_ADD_MODIFY_CLASS, IPP_OP_CUPS_DELETE_CLASS, IPP_OP_CUPS_ACCEPT_JOBS, IPP_OP_CUPS_REJECT_JOBS, IPP_OP_CUPS_SET_DEFAULT, IPP_OP_CUPS_GET_DEVICES, IPP_OP_CUPS_GET_PPDS, IPP_OP_CUPS_MOVE_JOB, IPP_OP_CUPS_AUTHENTICATE_JOB, IPP_OP_CUPS_GET_PPD, IPP_OP_CUPS_GET_DOCUMENT, IPP_OP_RESTART_JOB }; static const char * const charsets[] =/* charset-supported values */ { "us-ascii", "utf-8" }; static const char * const compressions[] = { /* document-compression-supported values */ "none" #ifdef HAVE_LIBZ ,"gzip" #endif /* HAVE_LIBZ */ }; static const char * const media_col_supported[] = { /* media-col-supported values */ "media-bottom-margin", "media-left-margin", "media-right-margin", "media-size", "media-source", "media-top-margin", "media-type" }; static const char * const multiple_document_handling[] = { /* multiple-document-handling-supported values */ "separate-documents-uncollated-copies", "separate-documents-collated-copies" }; static const char * const notify_attrs[] = { /* notify-attributes-supported values */ "printer-state-change-time", "notify-lease-expiration-time", "notify-subscriber-user-name" }; static const char * const notify_events[] = { /* notify-events-supported values */ "job-completed", "job-config-changed", "job-created", "job-progress", "job-state-changed", "job-stopped", "printer-added", "printer-changed", "printer-config-changed", "printer-deleted", "printer-finishings-changed", "printer-media-changed", "printer-modified", "printer-restarted", "printer-shutdown", "printer-state-changed", "printer-stopped", "server-audit", "server-restarted", "server-started", "server-stopped" }; static const char * const job_settable[] = { /* job-settable-attributes-supported */ "copies", "finishings", "job-hold-until", "job-name", "job-priority", "media", "media-col", "multiple-document-handling", "number-up", "output-bin", "orientation-requested", "page-ranges", "print-color-mode", "print-quality", "printer-resolution", "sides" }; static const char * const pdf_versions[] = { /* pdf-versions-supported */ "adobe-1.2", "adobe-1.3", "adobe-1.4", "adobe-1.5", "adobe-1.6", "adobe-1.7", "iso-19005-1_2005", "iso-32000-1_2008", "pwg-5102.3" }; static const char * const printer_settable[] = { /* printer-settable-attributes-supported */ "printer-geo-location", "printer-info", "printer-location", "printer-organization", "printer-organizational-unit" }; static const char * const which_jobs[] = { /* which-jobs-supported values */ "completed", "not-completed", "aborted", "all", "canceled", "pending", "pending-held", "processing", "processing-stopped" }; if (CommonData) ippDelete(CommonData); CommonData = ippNew(); /* * Get the maximum spool size based on the size of the filesystem used for * the RequestRoot directory. If the host OS doesn't support the statfs call * or the filesystem is larger than 2TiB, always report INT_MAX. */ #ifdef HAVE_STATVFS if (statvfs(RequestRoot, &spoolinfo)) k_supported = INT_MAX; else if ((spoolsize = (double)spoolinfo.f_frsize * spoolinfo.f_blocks / 1024) > INT_MAX) k_supported = INT_MAX; else k_supported = (int)spoolsize; #elif defined(HAVE_STATFS) if (statfs(RequestRoot, &spoolinfo)) k_supported = INT_MAX; else if ((spoolsize = (double)spoolinfo.f_bsize * spoolinfo.f_blocks / 1024) > INT_MAX) k_supported = INT_MAX; else k_supported = (int)spoolsize; #else k_supported = INT_MAX; #endif /* HAVE_STATVFS */ /* * This list of attributes is sorted to improve performance when the * client provides a requested-attributes attribute... */ /* charset-configured */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_CHARSET), "charset-configured", NULL, "utf-8"); /* charset-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_CHARSET), "charset-supported", sizeof(charsets) / sizeof(charsets[0]), NULL, charsets); /* compression-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "compression-supported", sizeof(compressions) / sizeof(compressions[0]), NULL, compressions); /* cups-version */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "cups-version", NULL, &CUPS_SVERSION[6]); /* generated-natural-language-supported (not const) */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_TAG_LANGUAGE, "generated-natural-language-supported", NULL, DefaultLanguage); /* ipp-versions-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-versions-supported", sizeof(versions) / sizeof(versions[0]), NULL, versions); /* ippget-event-life */ ippAddInteger(CommonData, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "ippget-event-life", 15); /* job-cancel-after-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "job-cancel-after-supported", 0, INT_MAX); /* job-hold-until-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-hold-until-supported", sizeof(holds) / sizeof(holds[0]), NULL, holds); /* job-ids-supported */ ippAddBoolean(CommonData, IPP_TAG_PRINTER, "job-ids-supported", 1); /* job-k-octets-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "job-k-octets-supported", 0, k_supported); /* job-priority-supported */ ippAddInteger(CommonData, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-priority-supported", 100); /* job-settable-attributes-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-settable-attributes-supported", sizeof(job_settable) / sizeof(job_settable[0]), NULL, job_settable); /* job-sheets-supported */ if (cupsArrayCount(Banners) > 0) { /* * Setup the job-sheets-supported attribute... */ if (Classification && !ClassifyOverride) attr = ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-sheets-supported", NULL, Classification); else attr = ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-sheets-supported", cupsArrayCount(Banners) + 1, NULL, NULL); if (attr == NULL) { cupsdLogMessage(CUPSD_LOG_EMERG, "Unable to allocate memory for job-sheets-supported attribute: %s!", strerror(errno)); } else if (!Classification || ClassifyOverride) { cupsd_banner_t *banner; /* Current banner */ attr->values[0].string.text = _cupsStrAlloc("none"); for (i = 1, banner = (cupsd_banner_t *)cupsArrayFirst(Banners); banner; i ++, banner = (cupsd_banner_t *)cupsArrayNext(Banners)) attr->values[i].string.text = banner->name; } } else { ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-sheets-supported", NULL, "none"); } /* jpeg-k-octets-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "jpeg-k-octets-supported", 0, k_supported); /* jpeg-x-dimension-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "jpeg-x-dimension-supported", 0, 65535); /* jpeg-y-dimension-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "jpeg-y-dimension-supported", 1, 65535); /* media-col-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "media-col-supported", sizeof(media_col_supported) / sizeof(media_col_supported[0]), NULL, media_col_supported); /* multiple-document-handling-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "multiple-document-handling-supported", sizeof(multiple_document_handling) / sizeof(multiple_document_handling[0]), NULL, multiple_document_handling); /* multiple-document-jobs-supported */ ippAddBoolean(CommonData, IPP_TAG_PRINTER, "multiple-document-jobs-supported", 1); /* multiple-operation-time-out */ ippAddInteger(CommonData, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "multiple-operation-time-out", MultipleOperationTimeout); /* multiple-operation-time-out-action */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "multiple-operation-time-out-action", NULL, "process-job"); /* natural-language-configured (not const) */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_TAG_LANGUAGE, "natural-language-configured", NULL, DefaultLanguage); /* notify-attributes-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "notify-attributes-supported", (int)(sizeof(notify_attrs) / sizeof(notify_attrs[0])), NULL, notify_attrs); /* notify-lease-duration-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "notify-lease-duration-supported", 0, MaxLeaseDuration ? MaxLeaseDuration : 2147483647); /* notify-max-events-supported */ ippAddInteger(CommonData, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "notify-max-events-supported", MaxEvents); /* notify-events-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "notify-events-supported", (int)(sizeof(notify_events) / sizeof(notify_events[0])), NULL, notify_events); /* notify-pull-method-supported */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "notify-pull-method-supported", NULL, "ippget"); /* notify-schemes-supported */ snprintf(filename, sizeof(filename), "%s/notifier", ServerBin); if ((dir = cupsDirOpen(filename)) != NULL) { notifiers = cupsArrayNew((cups_array_func_t)strcmp, NULL); while ((dent = cupsDirRead(dir)) != NULL) { if (S_ISREG(dent->fileinfo.st_mode) && (dent->fileinfo.st_mode & S_IXOTH) != 0) cupsArrayAdd(notifiers, _cupsStrAlloc(dent->filename)); } if (cupsArrayCount(notifiers) > 0) { attr = ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "notify-schemes-supported", cupsArrayCount(notifiers), NULL, NULL); for (i = 0, notifier = (char *)cupsArrayFirst(notifiers); notifier; i ++, notifier = (char *)cupsArrayNext(notifiers)) attr->values[i].string.text = notifier; } cupsArrayDelete(notifiers); cupsDirClose(dir); } /* number-up-supported */ ippAddIntegers(CommonData, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "number-up-supported", sizeof(number_up) / sizeof(number_up[0]), number_up); /* number-up-layout-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "number-up-layout-supported", sizeof(number_up_layout) / sizeof(number_up_layout[0]), NULL, number_up_layout); /* operations-supported */ ippAddIntegers(CommonData, IPP_TAG_PRINTER, IPP_TAG_ENUM, "operations-supported", sizeof(ops) / sizeof(ops[0]), ops); /* orientation-requested-supported */ ippAddIntegers(CommonData, IPP_TAG_PRINTER, IPP_TAG_ENUM, "orientation-requested-supported", 4, orients); /* page-delivery-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "page-delivery-supported", sizeof(page_delivery) / sizeof(page_delivery[0]), NULL, page_delivery); /* page-ranges-supported */ ippAddBoolean(CommonData, IPP_TAG_PRINTER, "page-ranges-supported", 1); /* pdf-k-octets-supported */ ippAddRange(CommonData, IPP_TAG_PRINTER, "pdf-k-octets-supported", 0, k_supported); /* pdf-versions-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pdf-versions-supported", sizeof(pdf_versions) / sizeof(pdf_versions[0]), NULL, pdf_versions); /* pdl-override-supported */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "pdl-override-supported", NULL, "attempted"); /* print-scaling-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "print-scaling-supported", sizeof(print_scaling) / sizeof(print_scaling[0]), NULL, print_scaling); /* printer-get-attributes-supported */ ippAddString(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "printer-get-attributes-supported", NULL, "document-format"); /* printer-op-policy-supported */ attr = ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "printer-op-policy-supported", cupsArrayCount(Policies), NULL, NULL); for (i = 0, p = (cupsd_policy_t *)cupsArrayFirst(Policies); p; i ++, p = (cupsd_policy_t *)cupsArrayNext(Policies)) attr->values[i].string.text = p->name; /* printer-settable-attributes-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "printer-settable-attributes-supported", sizeof(printer_settable) / sizeof(printer_settable[0]), NULL, printer_settable); /* server-is-sharing-printers */ ippAddBoolean(CommonData, IPP_TAG_PRINTER, "server-is-sharing-printers", BrowseLocalProtocols != 0 && Browsing); /* which-jobs-supported */ ippAddStrings(CommonData, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "which-jobs-supported", sizeof(which_jobs) / sizeof(which_jobs[0]), NULL, which_jobs); } /* * 'cupsdDeleteAllPrinters()' - Delete all printers from the system. */ void cupsdDeleteAllPrinters(void) { cupsd_printer_t *p; /* Pointer to current printer/class */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { p->op_policy_ptr = DefaultPolicyPtr; cupsdDeletePrinter(p, 0); } } /* * 'cupsdDeletePrinter()' - Delete a printer from the system. */ int /* O - 1 if classes affected, 0 otherwise */ cupsdDeletePrinter( cupsd_printer_t *p, /* I - Printer to delete */ int update) /* I - Update printers.conf? */ { int i, /* Looping var */ changed = 0; /* Class changed? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeletePrinter(p=%p(%s), update=%d)", p, p->name, update); /* * Save the current position in the Printers array... */ cupsArraySave(Printers); /* * Stop printing on this printer... */ cupsdSetPrinterState(p, IPP_PRINTER_STOPPED, update); p->state = IPP_PRINTER_STOPPED; /* Force for browsed printers */ if (p->job) cupsdSetJobState(p->job, IPP_JOB_PENDING, CUPSD_JOB_FORCE, update ? "Job stopped due to printer being deleted." : "Job stopped."); /* * Remove the printer from the list... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeletePrinter: Removing %s from Printers", p->name); cupsArrayRemove(Printers, p); /* * If p is the default printer, assign a different one... */ if (p == DefaultPrinter) DefaultPrinter = NULL; /* * Remove this printer from any classes... */ changed = cupsdDeletePrinterFromClasses(p); /* * Deregister from any browse protocols... */ cupsdDeregisterPrinter(p, 1); /* * Remove support files if this is a temporary queue and deregister color * profiles... */ if (p->temporary) { char filename[1024]; /* Script/PPD filename */ /* * Remove any old PPD or script files... */ snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd", ServerRoot, p->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd.O", ServerRoot, p->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/%s.png", CacheDir, p->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/%s.data", CacheDir, p->name); unlink(filename); /* * Unregister color profiles... */ cupsdUnregisterColor(p); } /* * Free all memory used by the printer... */ if (p->printers != NULL) free(p->printers); _cupsRWLockWrite(&MimeDatabase->lock); delete_printer_filters(p); for (i = 0; i < p->num_reasons; i ++) _cupsStrFree(p->reasons[i]); ippDelete(p->attrs); ippDelete(p->ppd_attrs); _ppdCacheDestroy(p->pc); mimeDeleteType(MimeDatabase, p->filetype); mimeDeleteType(MimeDatabase, p->prefiltertype); _cupsRWUnlock(&MimeDatabase->lock); cupsdFreeStrings(&(p->users)); cupsdFreeQuotas(p); cupsdClearString(&p->uuid); cupsdClearString(&p->uri); cupsdClearString(&p->hostname); cupsdClearString(&p->name); cupsdClearString(&p->location); cupsdClearString(&p->geo_location); cupsdClearString(&p->make_model); cupsdClearString(&p->info); cupsdClearString(&p->job_sheets[0]); cupsdClearString(&p->job_sheets[1]); cupsdClearString(&p->device_uri); cupsdClearString(&p->sanitized_device_uri); cupsdClearString(&p->port_monitor); cupsdClearString(&p->op_policy); cupsdClearString(&p->error_policy); cupsdClearString(&p->strings); cupsdClearString(&p->alert); cupsdClearString(&p->alert_description); #ifdef HAVE_DNSSD cupsdClearString(&p->pdl); cupsdClearString(&p->reg_name); #endif /* HAVE_DNSSD */ cupsArrayDelete(p->filetypes); cupsFreeOptions(p->num_options, p->options); free(p); /* * Restore the previous position in the Printers array... */ cupsArrayRestore(Printers); return (changed); } /* * 'cupsdDeleteTemporaryPrinters()' - Delete unneeded temporary printers. */ void cupsdDeleteTemporaryPrinters(int force) /* I - Force deletion instead of auto? */ { cupsd_printer_t *p; /* Current printer */ time_t unused_time; /* Last time for printer state change */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeleteTemporaryPrinters: Removing unused temporary printers"); /* * Allow temporary printers to stick around for 60 seconds after the last job * completes. */ unused_time = time(NULL) - 60; for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { if (p->temporary && (force || (p->state_time < unused_time && p->state != IPP_PSTATE_PROCESSING))) cupsdDeletePrinter(p, 0); } } /* * 'cupsdFindDest()' - Find a destination in the list. */ cupsd_printer_t * /* O - Destination in list */ cupsdFindDest(const char *name) /* I - Name of printer or class to find */ { cupsd_printer_t key; /* Search key */ key.name = (char *)name; return ((cupsd_printer_t *)cupsArrayFind(Printers, &key)); } /* * 'cupsdFindPrinter()' - Find a printer in the list. */ cupsd_printer_t * /* O - Printer in list */ cupsdFindPrinter(const char *name) /* I - Name of printer to find */ { cupsd_printer_t *p; /* Printer in list */ if ((p = cupsdFindDest(name)) != NULL && (p->type & CUPS_PRINTER_CLASS)) return (NULL); else return (p); } /* * 'cupsdLoadAllPrinters()' - Load printers from the printers.conf file. */ void cupsdLoadAllPrinters(void) { int i; /* Looping var */ cups_file_t *fp; /* printers.conf file */ int linenum; /* Current line number */ char line[4096], /* Line from file */ *value, /* Pointer to value */ *valueptr; /* Pointer into value */ cupsd_printer_t *p; /* Current printer */ int found_raw = 0; /* Flag whether raw queue is installed */ int found_driver = 0; /* Flag whether queue with classic driver is installed */ /* * Open the printers.conf file... */ snprintf(line, sizeof(line), "%s/printers.conf", ServerRoot); if ((fp = cupsdOpenConfFile(line)) == NULL) return; /* * Read printer configurations until we hit EOF... */ linenum = 0; p = NULL; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode the directive... */ if (!_cups_strcasecmp(line, "NextPrinterId")) { if (value && (i = atoi(value)) > 0) NextPrinterId = i; else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, " or */ if (p == NULL && value) { /* * Add the printer and a base file type... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Loading printer %s...", value); p = cupsdAddPrinter(value); p->accepting = 1; p->state = IPP_PRINTER_IDLE; /* * Set the default printer as needed... */ if (!_cups_strcasecmp(line, "") || !_cups_strcasecmp(line, "")) { if (p != NULL) { /* * Close out the current printer... */ if (!p->printer_id) { p->printer_id = NextPrinterId ++; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } cupsdSetPrinterAttrs(p); if ((p->device_uri && strncmp(p->device_uri, "ipp:", 4) && strncmp(p->device_uri, "ipps:", 5) && strncmp(p->device_uri, "implicitclass:", 14)) || !p->make_model || (p->make_model && strstr(p->make_model, "IPP Everywhere") == NULL && strstr(p->make_model, "driverless") == NULL)) { /* * Warn users about printer drivers and raw queues will be deprecated. * It will warn users in the following scenarios: * - the queue doesn't use ipp, ipps or implicitclass backend, which means * it doesn't communicate via IPP and is raw or uses a driver for sure * - the queue doesn't have make_model - it is raw * - the queue uses a correct backend, but the model is not IPP Everywhere/driverless */ if (!p->make_model) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Queue %s is a raw queue, which is deprecated.", p->name); found_raw = 1; } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "Queue %s uses a printer driver, which is deprecated.", p->name); found_driver = 1; } } if (strncmp(p->device_uri, "file:", 5) && p->state != IPP_PRINTER_STOPPED) { /* * See if the backend exists... */ snprintf(line, sizeof(line), "%s/backend/%s", ServerBin, p->device_uri); if ((valueptr = strchr(line + strlen(ServerBin), ':')) != NULL) *valueptr = '\0'; /* Chop everything but URI scheme */ if (access(line, 0)) { /* * Backend does not exist, stop printer... */ p->state = IPP_PRINTER_STOPPED; snprintf(p->state_message, sizeof(p->state_message), "Backend %s does not exist!", line); } } p = NULL; } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!p) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "PrinterId")) { if (value && (i = atoi(value)) > 0) p->printer_id = i; else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad PrinterId on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "UUID")) { if (value && !strncmp(value, "urn:uuid:", 9)) cupsdSetString(&(p->uuid), value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad UUID on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "AuthInfoRequired")) { if (!cupsdSetAuthInfoRequired(p, value, NULL)) cupsdLogMessage(CUPSD_LOG_ERROR, "Bad AuthInfoRequired on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Info")) { cupsdSetString(&p->info, value ? value : ""); } else if (!_cups_strcasecmp(line, "MakeModel")) { if (value) cupsdSetString(&p->make_model, value); } else if (!_cups_strcasecmp(line, "Location")) { cupsdSetString(&p->location, value ? value : ""); } else if (!_cups_strcasecmp(line, "GeoLocation")) { cupsdSetString(&p->geo_location, value ? value : ""); } else if (!_cups_strcasecmp(line, "Organization")) { cupsdSetString(&p->organization, value ? value : ""); } else if (!_cups_strcasecmp(line, "OrganizationalUnit")) { cupsdSetString(&p->organizational_unit, value ? value : ""); } else if (!_cups_strcasecmp(line, "DeviceURI")) { if (value) cupsdSetDeviceURI(p, value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Option") && value) { /* * Option name value */ for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (!*valueptr) cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); else { for (; *valueptr && isspace(*valueptr & 255); *valueptr++ = '\0'); p->num_options = cupsAddOption(value, valueptr, p->num_options, &(p->options)); } } else if (!_cups_strcasecmp(line, "PortMonitor")) { if (value && strcmp(value, "none")) cupsdSetString(&p->port_monitor, value); else if (value) cupsdClearString(&p->port_monitor); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Reason")) { if (value && strcmp(value, "connecting-to-device") && strcmp(value, "cups-insecure-filter-warning") && strcmp(value, "cups-missing-filter-warning")) { for (i = 0 ; i < p->num_reasons; i ++) if (!strcmp(value, p->reasons[i])) break; if (i >= p->num_reasons && p->num_reasons < (int)(sizeof(p->reasons) / sizeof(p->reasons[0]))) { p->reasons[p->num_reasons] = _cupsStrAlloc(value); p->num_reasons ++; } } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "State")) { /* * Set the initial queue state... */ if (value && !_cups_strcasecmp(value, "idle")) p->state = IPP_PRINTER_IDLE; else if (value && !_cups_strcasecmp(value, "stopped")) { p->state = IPP_PRINTER_STOPPED; for (i = 0 ; i < p->num_reasons; i ++) if (!strcmp("paused", p->reasons[i])) break; if (i >= p->num_reasons && p->num_reasons < (int)(sizeof(p->reasons) / sizeof(p->reasons[0]))) { p->reasons[p->num_reasons] = _cupsStrAlloc("paused"); p->num_reasons ++; } } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "StateMessage")) { /* * Set the initial queue state message... */ if (value) strlcpy(p->state_message, value, sizeof(p->state_message)); } else if (!_cups_strcasecmp(line, "StateTime")) { /* * Set the state time... */ if (value) p->state_time = (time_t)strtol(value, NULL, 10); } else if (!_cups_strcasecmp(line, "ConfigTime")) { /* * Set the config time... */ if (value) p->config_time = (time_t)strtol(value, NULL, 10); } else if (!_cups_strcasecmp(line, "Accepting")) { /* * Set the initial accepting state... */ if (value && (!_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "true"))) p->accepting = 1; else if (value && (!_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "false"))) p->accepting = 0; else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Type")) { if (value) p->type = (cups_ptype_t)strtoul(value, NULL, 10); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Shared")) { /* * Set the initial shared state... */ if (value && (!_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "true"))) p->shared = 1; else if (value && (!_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "false"))) p->shared = 0; else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "JobSheets")) { /* * Set the initial job sheets... */ if (value) { for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (*valueptr) *valueptr++ = '\0'; cupsdSetString(&p->job_sheets[0], value); while (isspace(*valueptr & 255)) valueptr ++; if (*valueptr) { for (value = valueptr; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (*valueptr) *valueptr = '\0'; cupsdSetString(&p->job_sheets[1], value); } } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "AllowUser")) { if (value) { p->deny_users = 0; cupsdAddString(&(p->users), value); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "DenyUser")) { if (value) { p->deny_users = 1; cupsdAddString(&(p->users), value); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "QuotaPeriod")) { if (value) p->quota_period = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "PageLimit")) { if (value) p->page_limit = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "KLimit")) { if (value) p->k_limit = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "OpPolicy")) { if (value) { cupsd_policy_t *pol; /* Policy */ if ((pol = cupsdFindPolicy(value)) != NULL) { cupsdSetString(&p->op_policy, value); p->op_policy_ptr = pol; } else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad policy \"%s\" on line %d of printers.conf", value, linenum); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "ErrorPolicy")) { if (value) { if (strcmp(value, "retry-current-job") && strcmp(value, "abort-job") && strcmp(value, "retry-job") && strcmp(value, "stop-printer")) cupsdLogMessage(CUPSD_LOG_ALERT, "Invalid ErrorPolicy \"%s\" on line %d or printers.conf.", ErrorPolicy, linenum); else cupsdSetString(&p->error_policy, value); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); } else if (!_cups_strcasecmp(line, "Attribute") && value) { for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (!*valueptr) cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of printers.conf.", linenum); else { for (; *valueptr && isspace(*valueptr & 255); *valueptr++ = '\0'); if (!p->attrs) cupsdSetPrinterAttrs(p); if (!strcmp(value, "marker-change-time")) p->marker_time = (time_t)strtol(valueptr, NULL, 10); else cupsdSetPrinterAttr(p, value, valueptr); } } else if (_cups_strcasecmp(line, "Filter") && _cups_strcasecmp(line, "Prefilter") && _cups_strcasecmp(line, "Product")) { /* * Something else we don't understand (and that wasn't used in a prior * release of CUPS... */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown configuration directive %s on line %d of " "printers.conf.", line, linenum); } } if (found_raw) cupsdLogMessage(CUPSD_LOG_WARN, "Raw queues are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103"); if (found_driver) cupsdLogMessage(CUPSD_LOG_WARN, "Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103"); cupsFileClose(fp); } /* * 'cupsdRenamePrinter()' - Rename a printer. */ void cupsdRenamePrinter( cupsd_printer_t *p, /* I - Printer */ const char *name) /* I - New name */ { /* * Remove the printer from the array(s) first... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRenamePrinter: Removing %s from Printers", p->name); cupsArrayRemove(Printers, p); /* * Rename the printer type... */ _cupsRWLockWrite(&MimeDatabase->lock); mimeDeleteType(MimeDatabase, p->filetype); p->filetype = mimeAddType(MimeDatabase, "printer", name); if (p->prefiltertype) { mimeDeleteType(MimeDatabase, p->prefiltertype); p->prefiltertype = mimeAddType(MimeDatabase, "prefilter", name); } _cupsRWUnlock(&MimeDatabase->lock); /* * Rename the printer... */ cupsdSetString(&p->name, name); /* * Reset printer attributes... */ cupsdSetPrinterAttrs(p); /* * Add the printer back to the printer array(s)... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRenamePrinter: Adding %s to Printers", p->name); cupsArrayAdd(Printers, p); } /* * 'cupsdSaveAllPrinters()' - Save all printer definitions to the printers.conf * file. */ void cupsdSaveAllPrinters(void) { int i; /* Looping var */ cups_file_t *fp; /* printers.conf file */ char filename[1024], /* printers.conf filename */ value[2048], /* Value string */ *ptr, /* Pointer into value */ *name; /* Current user/group name */ cupsd_printer_t *printer; /* Current printer class */ cups_option_t *option; /* Current option */ ipp_attribute_t *marker; /* Current marker attribute */ /* * Create the printers.conf file... */ snprintf(filename, sizeof(filename), "%s/printers.conf", ServerRoot); if ((fp = cupsdCreateConfFile(filename, ConfigFilePerm & 0600)) == NULL) return; cupsdLogMessage(CUPSD_LOG_INFO, "Saving printers.conf..."); /* * Write a small header to the file... */ cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n"); cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n"); cupsFilePrintf(fp, "NextPrinterId %d\n", NextPrinterId); /* * Write each local printer known to the system... */ for (printer = (cupsd_printer_t *)cupsArrayFirst(Printers); printer; printer = (cupsd_printer_t *)cupsArrayNext(Printers)) { /* * Skip printer classes and temporary queues... */ if ((printer->type & CUPS_PRINTER_CLASS) || printer->temporary) continue; /* * Write printers as needed... */ if (printer == DefaultPrinter) cupsFilePrintf(fp, "\n", printer->name); else cupsFilePrintf(fp, "\n", printer->name); if (printer->printer_id) cupsFilePrintf(fp, "PrinterId %d\n", printer->printer_id); cupsFilePrintf(fp, "UUID %s\n", printer->uuid); if (printer->num_auth_info_required > 0) { switch (printer->num_auth_info_required) { case 1 : strlcpy(value, printer->auth_info_required[0], sizeof(value)); break; case 2 : snprintf(value, sizeof(value), "%s,%s", printer->auth_info_required[0], printer->auth_info_required[1]); break; case 3 : default : snprintf(value, sizeof(value), "%s,%s,%s", printer->auth_info_required[0], printer->auth_info_required[1], printer->auth_info_required[2]); break; } cupsFilePutConf(fp, "AuthInfoRequired", value); } if (printer->info) cupsFilePutConf(fp, "Info", printer->info); if (printer->location) cupsFilePutConf(fp, "Location", printer->location); if (printer->geo_location) cupsFilePutConf(fp, "GeoLocation", printer->geo_location); if (printer->make_model) cupsFilePutConf(fp, "MakeModel", printer->make_model); if (printer->organization) cupsFilePutConf(fp, "Organization", printer->organization); if (printer->organizational_unit) cupsFilePutConf(fp, "OrganizationalUnit", printer->organizational_unit); cupsFilePutConf(fp, "DeviceURI", printer->device_uri); if (printer->port_monitor) cupsFilePutConf(fp, "PortMonitor", printer->port_monitor); if (printer->state == IPP_PRINTER_STOPPED) { cupsFilePuts(fp, "State Stopped\n"); if (printer->state_message[0]) cupsFilePutConf(fp, "StateMessage", printer->state_message); } else cupsFilePuts(fp, "State Idle\n"); cupsFilePrintf(fp, "StateTime %d\n", (int)printer->state_time); cupsFilePrintf(fp, "ConfigTime %d\n", (int)printer->config_time); for (i = 0; i < printer->num_reasons; i ++) if (strcmp(printer->reasons[i], "connecting-to-device") && strcmp(printer->reasons[i], "cups-insecure-filter-warning") && strcmp(printer->reasons[i], "cups-missing-filter-warning")) cupsFilePutConf(fp, "Reason", printer->reasons[i]); cupsFilePrintf(fp, "Type %d\n", printer->type); if (printer->accepting) cupsFilePuts(fp, "Accepting Yes\n"); else cupsFilePuts(fp, "Accepting No\n"); if (printer->shared) cupsFilePuts(fp, "Shared Yes\n"); else cupsFilePuts(fp, "Shared No\n"); snprintf(value, sizeof(value), "%s %s", printer->job_sheets[0], printer->job_sheets[1]); cupsFilePutConf(fp, "JobSheets", value); cupsFilePrintf(fp, "QuotaPeriod %d\n", printer->quota_period); cupsFilePrintf(fp, "PageLimit %d\n", printer->page_limit); cupsFilePrintf(fp, "KLimit %d\n", printer->k_limit); for (name = (char *)cupsArrayFirst(printer->users); name; name = (char *)cupsArrayNext(printer->users)) cupsFilePutConf(fp, printer->deny_users ? "DenyUser" : "AllowUser", name); if (printer->op_policy) cupsFilePutConf(fp, "OpPolicy", printer->op_policy); if (printer->error_policy) cupsFilePutConf(fp, "ErrorPolicy", printer->error_policy); for (i = printer->num_options, option = printer->options; i > 0; i --, option ++) { snprintf(value, sizeof(value), "%s %s", option->name, option->value); cupsFilePutConf(fp, "Option", value); } if ((marker = ippFindAttribute(printer->attrs, "marker-colors", IPP_TAG_NAME)) != NULL) { snprintf(value, sizeof(value), "%s ", marker->name); for (i = 0, ptr = value + strlen(value); i < marker->num_values && ptr < (value + sizeof(value) - 1); i ++) { if (i) *ptr++ = ','; strlcpy(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr)); ptr += strlen(ptr); } *ptr = '\0'; cupsFilePutConf(fp, "Attribute", value); } if ((marker = ippFindAttribute(printer->attrs, "marker-levels", IPP_TAG_INTEGER)) != NULL) { cupsFilePrintf(fp, "Attribute %s %d", marker->name, marker->values[0].integer); for (i = 1; i < marker->num_values; i ++) cupsFilePrintf(fp, ",%d", marker->values[i].integer); cupsFilePuts(fp, "\n"); } if ((marker = ippFindAttribute(printer->attrs, "marker-low-levels", IPP_TAG_INTEGER)) != NULL) { cupsFilePrintf(fp, "Attribute %s %d", marker->name, marker->values[0].integer); for (i = 1; i < marker->num_values; i ++) cupsFilePrintf(fp, ",%d", marker->values[i].integer); cupsFilePuts(fp, "\n"); } if ((marker = ippFindAttribute(printer->attrs, "marker-high-levels", IPP_TAG_INTEGER)) != NULL) { cupsFilePrintf(fp, "Attribute %s %d", marker->name, marker->values[0].integer); for (i = 1; i < marker->num_values; i ++) cupsFilePrintf(fp, ",%d", marker->values[i].integer); cupsFilePuts(fp, "\n"); } if ((marker = ippFindAttribute(printer->attrs, "marker-message", IPP_TAG_TEXT)) != NULL) { snprintf(value, sizeof(value), "%s %s", marker->name, marker->values[0].string.text); cupsFilePutConf(fp, "Attribute", value); } if ((marker = ippFindAttribute(printer->attrs, "marker-names", IPP_TAG_NAME)) != NULL) { snprintf(value, sizeof(value), "%s ", marker->name); for (i = 0, ptr = value + strlen(value); i < marker->num_values && ptr < (value + sizeof(value) - 1); i ++) { if (i) *ptr++ = ','; strlcpy(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr)); ptr += strlen(ptr); } *ptr = '\0'; cupsFilePutConf(fp, "Attribute", value); } if ((marker = ippFindAttribute(printer->attrs, "marker-types", IPP_TAG_KEYWORD)) != NULL) { snprintf(value, sizeof(value), "%s ", marker->name); for (i = 0, ptr = value + strlen(value); i < marker->num_values && ptr < (value + sizeof(value) - 1); i ++) { if (i) *ptr++ = ','; strlcpy(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr)); ptr += strlen(ptr); } *ptr = '\0'; cupsFilePutConf(fp, "Attribute", value); } if (printer->marker_time) cupsFilePrintf(fp, "Attribute marker-change-time %ld\n", (long)printer->marker_time); if (printer == DefaultPrinter) cupsFilePuts(fp, "\n"); else cupsFilePuts(fp, "\n"); } cupsdCloseCreatedConfFile(fp, filename); } /* * 'cupsdSetAuthInfoRequired()' - Set the required authentication info. */ int /* O - 1 if value OK, 0 otherwise */ cupsdSetAuthInfoRequired( cupsd_printer_t *p, /* I - Printer */ const char *values, /* I - Plain text value (or NULL) */ ipp_attribute_t *attr) /* I - IPP attribute value (or NULL) */ { int i; /* Looping var */ p->num_auth_info_required = 0; /* * Do we have a plain text value? */ if (values) { /* * Yes, grab the keywords... */ const char *end; /* End of current value */ while (*values && p->num_auth_info_required < 4) { if ((end = strchr(values, ',')) == NULL) end = values + strlen(values); if ((end - values) == 4 && !strncmp(values, "none", 4)) { if (p->num_auth_info_required != 0 || *end) return (0); p->auth_info_required[p->num_auth_info_required] = "none"; p->num_auth_info_required ++; return (1); } else if ((end - values) == 9 && !strncmp(values, "negotiate", 9)) { if (p->num_auth_info_required != 0 || *end) return (0); p->auth_info_required[p->num_auth_info_required] = "negotiate"; p->num_auth_info_required ++; /* * Don't allow sharing of queues that require Kerberos authentication. */ if (p->shared) { cupsdDeregisterPrinter(p, 1); p->shared = 0; } } else if ((end - values) == 6 && !strncmp(values, "domain", 6)) { p->auth_info_required[p->num_auth_info_required] = "domain"; p->num_auth_info_required ++; } else if ((end - values) == 8 && !strncmp(values, "password", 8)) { p->auth_info_required[p->num_auth_info_required] = "password"; p->num_auth_info_required ++; } else if ((end - values) == 8 && !strncmp(values, "username", 8)) { p->auth_info_required[p->num_auth_info_required] = "username"; p->num_auth_info_required ++; } else return (0); values = (*end) ? end + 1 : end; } if (p->num_auth_info_required == 0) { p->auth_info_required[0] = "none"; p->num_auth_info_required = 1; } /* * Update the printer-type value as needed... */ if (p->num_auth_info_required > 1 || strcmp(p->auth_info_required[0], "none")) p->type |= CUPS_PRINTER_AUTHENTICATED; else p->type &= (cups_ptype_t)~CUPS_PRINTER_AUTHENTICATED; return (1); } /* * Grab values from an attribute instead... */ if (!attr || attr->num_values > 4) return (0); for (i = 0; i < attr->num_values; i ++) { if (!strcmp(attr->values[i].string.text, "none")) { if (p->num_auth_info_required != 0 || attr->num_values != 1) return (0); p->auth_info_required[p->num_auth_info_required] = "none"; p->num_auth_info_required ++; return (1); } else if (!strcmp(attr->values[i].string.text, "negotiate")) { if (p->num_auth_info_required != 0 || attr->num_values != 1) return (0); p->auth_info_required[p->num_auth_info_required] = "negotiate"; p->num_auth_info_required ++; /* * Don't allow sharing of queues that require Kerberos authentication. */ if (p->shared) { cupsdDeregisterPrinter(p, 1); p->shared = 0; } return (1); } else if (!strcmp(attr->values[i].string.text, "domain")) { p->auth_info_required[p->num_auth_info_required] = "domain"; p->num_auth_info_required ++; } else if (!strcmp(attr->values[i].string.text, "password")) { p->auth_info_required[p->num_auth_info_required] = "password"; p->num_auth_info_required ++; } else if (!strcmp(attr->values[i].string.text, "username")) { p->auth_info_required[p->num_auth_info_required] = "username"; p->num_auth_info_required ++; } else return (0); } return (1); } /* * 'cupsdSetDeviceURI()' - Set the device URI for a printer. */ void cupsdSetDeviceURI(cupsd_printer_t *p, /* I - Printer */ const char *uri) /* I - Device URI */ { char buffer[1024], /* URI buffer */ *start, /* Start of data after scheme */ *slash, /* First slash after scheme:// */ *ptr; /* Pointer into user@host:port part */ /* * Set the full device URI.. */ cupsdSetString(&(p->device_uri), uri); /* * Copy the device URI to a temporary buffer so we can sanitize any auth * info in it... */ strlcpy(buffer, uri, sizeof(buffer)); /* * Find the end of the scheme:// part... */ if ((ptr = strchr(buffer, ':')) != NULL) { for (start = ptr + 1; *start; start ++) if (*start != '/') break; /* * Find the next slash (/) in the URI... */ if ((slash = strchr(start, '/')) == NULL) slash = start + strlen(start); /* No slash, point to the end */ /* * Check for an @ sign before the slash... */ if ((ptr = strchr(start, '@')) != NULL && ptr < slash) { /* * Found an @ sign and it is before the resource part, so we have * an authentication string. Copy the remaining URI over the * authentication string... */ _cups_strcpy(start, ptr + 1); } } /* * Save the sanitized URI... */ cupsdSetString(&(p->sanitized_device_uri), buffer); } /* * 'cupsdSetPrinterAttr()' - Set a printer attribute. */ void cupsdSetPrinterAttr( cupsd_printer_t *p, /* I - Printer */ const char *name, /* I - Attribute name */ const char *value) /* I - Attribute value string */ { ipp_attribute_t *attr; /* Attribute */ int i, /* Looping var */ count; /* Number of values */ char *temp, /* Temporary copy of value string */ *ptr, /* Pointer into value */ *start, /* Start of value */ quote; /* Quote character */ ipp_tag_t value_tag; /* Value tag for this attribute */ /* * Don't allow empty values... */ if (!*value && strcmp(name, "marker-message")) { cupsdLogMessage(CUPSD_LOG_ERROR, "Ignoring empty \"%s\" attribute", name); return; } /* * Copy the value string so we can do what we want with it... */ if ((temp = strdup(value)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to duplicate value for \"%s\" attribute.", name); return; } /* * Count the number of values... */ for (count = 1, quote = '\0', ptr = temp; *ptr; ptr ++) { if (*ptr == quote) quote = '\0'; else if (quote) continue; else if (*ptr == '\\' && ptr[1]) ptr ++; else if (*ptr == '\'' || *ptr == '\"') quote = *ptr; else if (*ptr == ',') count ++; } /* * Then add or update the attribute as needed... */ if (!strcmp(name, "marker-levels") || !strcmp(name, "marker-low-levels") || !strcmp(name, "marker-high-levels")) { /* * Integer values... */ if ((attr = ippFindAttribute(p->attrs, name, IPP_TAG_INTEGER)) != NULL && attr->num_values < count) { ippDeleteAttribute(p->attrs, attr); attr = NULL; } if (attr) attr->num_values = count; else attr = ippAddIntegers(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, name, count, NULL); if (!attr) { free(temp); cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for printer attribute " "(%d values)", count); return; } for (i = 0, start = temp; i < count; i ++) { if ((ptr = strchr(start, ',')) != NULL) *ptr++ = '\0'; attr->values[i].integer = atoi(start); if (ptr) start = ptr; } } else { /* * Name or keyword values... */ if (!strcmp(name, "marker-types")) value_tag = IPP_TAG_KEYWORD; else if (!strcmp(name, "marker-message")) value_tag = IPP_TAG_TEXT; else value_tag = IPP_TAG_NAME; if ((attr = ippFindAttribute(p->attrs, name, value_tag)) != NULL && attr->num_values < count) { ippDeleteAttribute(p->attrs, attr); attr = NULL; } if (attr) { for (i = 0; i < attr->num_values; i ++) _cupsStrFree(attr->values[i].string.text); attr->num_values = count; } else attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, value_tag, name, count, NULL, NULL); if (!attr) { free(temp); cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for printer attribute " "(%d values)", count); return; } for (i = 0, quote = '\0', ptr = temp; i < count; i ++) { for (start = ptr; *ptr; ptr ++) { if (*ptr == quote) *ptr = quote = '\0'; else if (quote) continue; else if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); else if (*ptr == '\'' || *ptr == '\"') { quote = *ptr; if (ptr == start) start ++; else _cups_strcpy(ptr, ptr + 1); } else if (*ptr == ',') { *ptr++ = '\0'; break; } } attr->values[i].string.text = _cupsStrAlloc(start); } } free(temp); /* * Update the printer-supply and printer-supply-description, as needed... */ if (!strcmp(name, "marker-names")) { ipp_attribute_t *supply_desc = ippFindAttribute(p->attrs, "printer-supply-description", IPP_TAG_TEXT); /* printer-supply-description attribute */ if (supply_desc != NULL) ippDeleteAttribute(p->attrs, supply_desc); supply_desc = ippCopyAttribute(p->attrs, attr, 0); ippSetName(p->attrs, &supply_desc, "printer-supply-description"); ippSetValueTag(p->attrs, &supply_desc, IPP_TAG_TEXT); } else if (!strcmp(name, "marker-colors") || !strcmp(name, "marker-levels") || !strcmp(name, "marker-types")) { char buffer[256], /* printer-supply values */ pstype[64], /* printer-supply type value */ *psptr; /* Pointer into type */ const char *color, /* marker-colors value */ *type; /* marker-types value */ int level; /* marker-levels value */ ipp_attribute_t *colors = ippFindAttribute(p->attrs, "marker-colors", IPP_TAG_NAME); /* marker-colors attribute */ ipp_attribute_t *levels = ippFindAttribute(p->attrs, "marker-levels", IPP_TAG_INTEGER); /* marker-levels attribute */ ipp_attribute_t *types = ippFindAttribute(p->attrs, "marker-types", IPP_TAG_KEYWORD); /* marker-types attribute */ ipp_attribute_t *supply = ippFindAttribute(p->attrs, "printer-supply", IPP_TAG_STRING); /* printer-supply attribute */ if (supply != NULL) { ippDeleteAttribute(p->attrs, supply); supply = NULL; } if (!colors || !levels || !types) return; count = ippGetCount(colors); if (count != ippGetCount(levels) || count != ippGetCount(types)) return; for (i = 0; i < count; i ++) { color = ippGetString(colors, i, NULL); level = ippGetInteger(levels, i); type = ippGetString(types, i, NULL); for (psptr = pstype; *type && psptr < (pstype + sizeof(pstype) - 1); type ++) if (*type == '-') { type ++; *psptr++ = (char)toupper(*type & 255); } else *psptr++ = *type; *psptr = '\0'; snprintf(buffer, sizeof(buffer), "index=%d;class=%s;type=%s;unit=percent;maxcapacity=100;level=%d;colorantname=%s;", i + 1, strncmp(pstype, "waste", 5) ? "supplyThatIsConsumed" : "receptacleThatIsFilled", pstype, level, color); if (!i) supply = ippAddOctetString(p->attrs, IPP_TAG_PRINTER, "printer-supply", buffer, (int)strlen(buffer)); else ippSetOctetString(p->attrs, &supply, i, buffer, (int)strlen(buffer)); } } } /* * 'cupsdSetPrinterAttrs()' - Set printer attributes based upon the PPD file. */ void cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */ { int i; /* Looping var */ char resource[HTTP_MAX_URI]; /* Resource portion of URI */ cupsd_location_t *auth; /* Pointer to authentication element */ const char *auth_supported; /* Authentication supported */ ipp_t *oldattrs; /* Old printer attributes */ ipp_attribute_t *attr; /* Attribute data */ char *name, /* Current user/group name */ *filter; /* Current filter */ /* * Make sure that we have the common attributes defined... */ if (!CommonData) cupsdCreateCommonData(); _cupsRWLockWrite(&p->lock); _cupsRWLockWrite(&MimeDatabase->lock); /* * Clear out old filters, if any... */ delete_printer_filters(p); /* * Figure out the authentication that is required for the printer. */ auth_supported = "requesting-user-name"; if (p->type & CUPS_PRINTER_CLASS) snprintf(resource, sizeof(resource), "/classes/%s", p->name); else snprintf(resource, sizeof(resource), "/printers/%s", p->name); if ((auth = cupsdFindBest(resource, HTTP_POST)) == NULL || auth->type == CUPSD_AUTH_NONE) auth = cupsdFindPolicyOp(p->op_policy_ptr, IPP_PRINT_JOB); if (auth) { int auth_type; /* Authentication type */ if ((auth_type = auth->type) == CUPSD_AUTH_DEFAULT) auth_type = cupsdDefaultAuthType(); if (auth_type == CUPSD_AUTH_BASIC) auth_supported = "basic"; #ifdef HAVE_GSSAPI else if (auth_type == CUPSD_AUTH_NEGOTIATE) auth_supported = "negotiate"; #endif /* HAVE_GSSAPI */ if (auth_type != CUPSD_AUTH_NONE) p->type |= CUPS_PRINTER_AUTHENTICATED; else p->type &= (cups_ptype_t)~CUPS_PRINTER_AUTHENTICATED; } else p->type &= (cups_ptype_t)~CUPS_PRINTER_AUTHENTICATED; /* * Create the required IPP attributes for a printer... */ oldattrs = p->attrs; p->attrs = ippNew(); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "uri-authentication-supported", NULL, auth_supported); if (p->printer_id) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-id", p->printer_id); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-name", NULL, p->name); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location", NULL, p->location ? p->location : ""); if (p->geo_location) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-geo-location", NULL, p->geo_location); else ippAddOutOfBand(p->attrs, IPP_TAG_PRINTER, IPP_TAG_UNKNOWN, "printer-geo-location"); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, p->info ? p->info : ""); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-organization", NULL, p->organization ? p->organization : ""); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-organizational-unit", NULL, p->organizational_unit ? p->organizational_unit : ""); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-uuid", NULL, p->uuid); if (cupsArrayCount(p->users) > 0) { if (p->deny_users) attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "requesting-user-name-denied", cupsArrayCount(p->users), NULL, NULL); else attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "requesting-user-name-allowed", cupsArrayCount(p->users), NULL, NULL); for (i = 0, name = (char *)cupsArrayFirst(p->users); name; i ++, name = (char *)cupsArrayNext(p->users)) attr->values[i].string.text = _cupsStrAlloc(name); } ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-quota-period", p->quota_period); ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-k-limit", p->k_limit); ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-page-limit", p->page_limit); if (p->num_auth_info_required > 0 && strcmp(p->auth_info_required[0], "none")) ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "auth-info-required", p->num_auth_info_required, NULL, p->auth_info_required); if (cupsArrayCount(Banners) > 0) { /* * Setup the job-sheets-default attribute... */ attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "job-sheets-default", 2, NULL, NULL); if (attr != NULL) { attr->values[0].string.text = _cupsStrAlloc(Classification ? Classification : p->job_sheets[0]); attr->values[1].string.text = _cupsStrAlloc(Classification ? Classification : p->job_sheets[1]); } } p->raw = 0; p->remote = 0; /* * Assign additional attributes depending on whether this is a printer * or class... */ if (p->type & CUPS_PRINTER_CLASS) { p->raw = 1; p->type &= (cups_ptype_t)~CUPS_PRINTER_OPTIONS; /* * Add class-specific attributes... */ ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, "Local Printer Class"); ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "device-uri", NULL, "file:///dev/null"); if (p->num_printers > 0) { /* * Add a list of member names; URIs are added in copy_printer_attrs... */ attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "member-names", p->num_printers, NULL, NULL); p->type |= CUPS_PRINTER_OPTIONS; for (i = 0; i < p->num_printers; i ++) { if (attr != NULL) attr->values[i].string.text = _cupsStrAlloc(p->printers[i]->name); p->type &= (cups_ptype_t)~CUPS_PRINTER_OPTIONS | p->printers[i]->type; } } } else { /* * Add printer-specific attributes... */ ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "device-uri", NULL, p->sanitized_device_uri); /* * Assign additional attributes from the PPD file (if any)... */ load_ppd(p); /* * Add filters for printer... */ cupsdSetPrinterReasons(p, "-cups-missing-filter-warning," "cups-insecure-filter-warning"); if (p->pc && p->pc->filters) { for (filter = (char *)cupsArrayFirst(p->pc->filters); filter; filter = (char *)cupsArrayNext(p->pc->filters)) add_printer_filter(p, p->filetype, filter); } else if (!(p->type & CUPS_PRINTER_REMOTE)) { /* * Add a filter from application/vnd.cups-raw to printer/name to * handle "raw" printing by users. */ add_printer_filter(p, p->filetype, "application/vnd.cups-raw 0 -"); /* * Add a PostScript filter, since this is still possibly PS printer. */ add_printer_filter(p, p->filetype, "application/vnd.cups-postscript 0 -"); } if (p->pc && p->pc->prefilters) { if (!p->prefiltertype) p->prefiltertype = mimeAddType(MimeDatabase, "prefilter", p->name); for (filter = (char *)cupsArrayFirst(p->pc->prefilters); filter; filter = (char *)cupsArrayNext(p->pc->prefilters)) add_printer_filter(p, p->prefiltertype, filter); } } /* * Copy marker attributes as needed... */ if (oldattrs) { ipp_attribute_t *oldattr; /* Old attribute */ if ((oldattr = ippFindAttribute(oldattrs, "marker-colors", IPP_TAG_NAME)) != NULL) { if ((attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "marker-colors", oldattr->num_values, NULL, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].string.text = _cupsStrAlloc(oldattr->values[i].string.text); } } if ((oldattr = ippFindAttribute(oldattrs, "marker-levels", IPP_TAG_INTEGER)) != NULL) { if ((attr = ippAddIntegers(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "marker-levels", oldattr->num_values, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].integer = oldattr->values[i].integer; } } if ((oldattr = ippFindAttribute(oldattrs, "marker-message", IPP_TAG_TEXT)) != NULL) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "marker-message", NULL, oldattr->values[0].string.text); if ((oldattr = ippFindAttribute(oldattrs, "marker-low-levels", IPP_TAG_INTEGER)) != NULL) { if ((attr = ippAddIntegers(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "marker-low-levels", oldattr->num_values, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].integer = oldattr->values[i].integer; } } if ((oldattr = ippFindAttribute(oldattrs, "marker-high-levels", IPP_TAG_INTEGER)) != NULL) { if ((attr = ippAddIntegers(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "marker-high-levels", oldattr->num_values, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].integer = oldattr->values[i].integer; } } if ((oldattr = ippFindAttribute(oldattrs, "marker-names", IPP_TAG_NAME)) != NULL) { if ((attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "marker-names", oldattr->num_values, NULL, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].string.text = _cupsStrAlloc(oldattr->values[i].string.text); } } if ((oldattr = ippFindAttribute(oldattrs, "marker-types", IPP_TAG_KEYWORD)) != NULL) { if ((attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "marker-types", oldattr->num_values, NULL, NULL)) != NULL) { for (i = 0; i < oldattr->num_values; i ++) attr->values[i].string.text = _cupsStrAlloc(oldattr->values[i].string.text); } } ippDelete(oldattrs); } /* * Force sharing off for remote queues... */ if (p->type & CUPS_PRINTER_REMOTE) p->shared = 0; /* * Populate the document-format-supported attribute... */ add_printer_formats(p); _cupsRWUnlock(&MimeDatabase->lock); /* * Add name-default attributes... */ add_printer_defaults(p); _cupsRWUnlock(&p->lock); /* * Let the browse protocols reflect the change */ cupsdRegisterPrinter(p); } /* * 'cupsdSetPrinterReasons()' - Set/update the reasons strings. */ int /* O - 1 if something changed, 0 otherwise */ cupsdSetPrinterReasons( cupsd_printer_t *p, /* I - Printer */ const char *s) /* I - Reasons strings */ { int i, /* Looping var */ changed = 0; /* Did something change? */ const char *sptr; /* Pointer into reasons */ char reason[255], /* Reason string */ *rptr; /* Pointer into reason */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSetPrinterReasons(p=%p(%s),s=\"%s\"", p, p->name, s); if (s[0] == '-' || s[0] == '+') { /* * Add/remove reasons... */ sptr = s + 1; } else { /* * Replace reasons... */ sptr = s; for (i = 0; i < p->num_reasons; i ++) _cupsStrFree(p->reasons[i]); p->num_reasons = 0; changed = 1; dirty_printer(p); } if (!strcmp(s, "none")) return (changed); /* * Loop through all of the reasons... */ while (*sptr) { /* * Skip leading whitespace and commas... */ while (isspace(*sptr & 255) || *sptr == ',') sptr ++; for (rptr = reason; *sptr && !isspace(*sptr & 255) && *sptr != ','; sptr ++) if (rptr < (reason + sizeof(reason) - 1)) *rptr++ = *sptr; if (rptr == reason) break; *rptr = '\0'; if (s[0] == '-') { /* * Remove reason... */ for (i = 0; i < p->num_reasons; i ++) if (!strcmp(reason, p->reasons[i])) { /* * Found a match, so remove it... */ p->num_reasons --; changed = 1; _cupsStrFree(p->reasons[i]); if (i < p->num_reasons) memmove(p->reasons + i, p->reasons + i + 1, (size_t)(p->num_reasons - i) * sizeof(char *)); if (!strcmp(reason, "paused") && p->state == IPP_PRINTER_STOPPED) cupsdSetPrinterState(p, IPP_PRINTER_IDLE, 1); if (!strcmp(reason, "cups-waiting-for-job-completed") && p->job) p->job->completed = 0; if (strcmp(reason, "connecting-to-device")) dirty_printer(p); break; } } else if (p->num_reasons < (int)(sizeof(p->reasons) / sizeof(p->reasons[0]))) { /* * Add reason... */ for (i = 0; i < p->num_reasons; i ++) if (!strcmp(reason, p->reasons[i])) break; if (i >= p->num_reasons) { if (i >= (int)(sizeof(p->reasons) / sizeof(p->reasons[0]))) { cupsdLogMessage(CUPSD_LOG_ALERT, "Too many printer-state-reasons values for %s (%d)", p->name, i + 1); return (changed); } p->reasons[i] = _cupsStrAlloc(reason); p->num_reasons ++; changed = 1; if (!strcmp(reason, "paused") && p->state != IPP_PRINTER_STOPPED) cupsdSetPrinterState(p, IPP_PRINTER_STOPPED, 1); if (!strcmp(reason, "cups-waiting-for-job-completed") && p->job) p->job->completed = 1; if (strcmp(reason, "connecting-to-device")) dirty_printer(p); } } } return (changed); } /* * 'cupsdSetPrinterState()' - Update the current state of a printer. */ void cupsdSetPrinterState( cupsd_printer_t *p, /* I - Printer to change */ ipp_pstate_t s, /* I - New state */ int update) /* I - Update printers.conf? */ { cupsd_job_t *job; /* Current job */ ipp_pstate_t old_state; /* Old printer state */ static const char * const printer_states[] = { /* State strings */ "idle", "processing", "stopped" }; /* * Set the new state... */ old_state = p->state; p->state = s; if (old_state != s) { cupsdAddEvent(s == IPP_PRINTER_STOPPED ? CUPSD_EVENT_PRINTER_STOPPED : CUPSD_EVENT_PRINTER_STATE, p, NULL, "%s \"%s\" state changed to %s.", (p->type & CUPS_PRINTER_CLASS) ? "Class" : "Printer", p->name, printer_states[p->state - IPP_PRINTER_IDLE]); /* * Let the browse code know this needs to be updated... */ p->state_time = time(NULL); } /* * Set/clear the paused reason as needed... */ if (s == IPP_PRINTER_STOPPED) cupsdSetPrinterReasons(p, "+paused"); else cupsdSetPrinterReasons(p, "-paused"); if (old_state != s) { for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (job->reasons && job->state_value == IPP_JOB_PENDING && !_cups_strcasecmp(job->dest, p->name)) ippSetString(job->attrs, &job->reasons, 0, s == IPP_PRINTER_STOPPED ? "printer-stopped" : "none"); } /* * Clear the message for the queue when going to processing... */ if (s == IPP_PRINTER_PROCESSING) p->state_message[0] = '\0'; /* * Let the browse protocols reflect the change... */ if (update) cupsdRegisterPrinter(p); /* * Save the printer configuration if a printer goes from idle or processing * to stopped (or visa-versa)... */ if (update && (old_state == IPP_PRINTER_STOPPED) != (s == IPP_PRINTER_STOPPED)) dirty_printer(p); } /* * 'cupsdStopPrinter()' - Stop a printer from printing any jobs... */ void cupsdStopPrinter(cupsd_printer_t *p, /* I - Printer to stop */ int update)/* I - Update printers.conf? */ { /* * Set the printer state... */ cupsdSetPrinterState(p, IPP_PRINTER_STOPPED, update); /* * See if we have a job printing on this printer... */ if (p->job && p->job->state_value == IPP_JOB_PROCESSING) cupsdSetJobState(p->job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job stopped due to printer being paused."); } /* * 'cupsdUpdatePrinterPPD()' - Update keywords in a printer's PPD file. */ int /* O - 1 if successful, 0 otherwise */ cupsdUpdatePrinterPPD( cupsd_printer_t *p, /* I - Printer */ int num_keywords, /* I - Number of keywords */ cups_option_t *keywords) /* I - Keywords */ { int i; /* Looping var */ cups_file_t *src, /* Original file */ *dst; /* New file */ char srcfile[1024], /* Original filename */ dstfile[1024], /* New filename */ line[1024], /* Line from file */ keystring[41]; /* Keyword from line */ cups_option_t *keyword; /* Current keyword */ cupsdLogMessage(CUPSD_LOG_INFO, "Updating keywords in PPD file for %s...", p->name); /* * Get the old and new PPD filenames... */ snprintf(srcfile, sizeof(srcfile), "%s/ppd/%s.ppd.O", ServerRoot, p->name); snprintf(dstfile, sizeof(srcfile), "%s/ppd/%s.ppd", ServerRoot, p->name); /* * Rename the old file and open the old and new... */ if (rename(dstfile, srcfile)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to backup PPD file for %s: %s", p->name, strerror(errno)); return (0); } if ((src = cupsFileOpen(srcfile, "r")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open PPD file \"%s\": %s", srcfile, strerror(errno)); rename(srcfile, dstfile); return (0); } if ((dst = cupsFileOpen(dstfile, "w")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create PPD file \"%s\": %s", dstfile, strerror(errno)); cupsFileClose(src); rename(srcfile, dstfile); return (0); } /* * Copy the first line and then write out all of the keywords... */ if (!cupsFileGets(src, line, sizeof(line))) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to read PPD file \"%s\": %s", srcfile, strerror(errno)); cupsFileClose(src); cupsFileClose(dst); rename(srcfile, dstfile); return (0); } cupsFilePrintf(dst, "%s\n", line); for (i = num_keywords, keyword = keywords; i > 0; i --, keyword ++) { cupsdLogMessage(CUPSD_LOG_DEBUG, "*%s: %s", keyword->name, keyword->value); cupsFilePrintf(dst, "*%s: %s\n", keyword->name, keyword->value); } /* * Then copy the rest of the PPD file, dropping any keywords we changed. */ while (cupsFileGets(src, line, sizeof(line))) { /* * Skip keywords we've already set... */ if (sscanf(line, "*%40[^:]:", keystring) == 1 && cupsGetOption(keystring, num_keywords, keywords)) continue; /* * Otherwise write the line... */ cupsFilePrintf(dst, "%s\n", line); } /* * Close files and return... */ cupsFileClose(src); cupsFileClose(dst); return (1); } /* * 'cupsdUpdatePrinters()' - Update printers after a partial reload. */ void cupsdUpdatePrinters(void) { cupsd_printer_t *p; /* Current printer */ /* * Loop through the printers and recreate the printer attributes * for any local printers since the policy and/or access control * stuff may have changed. Also, if browsing is disabled, remove * any remote printers... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { /* * Update the operation policy pointer... */ if ((p->op_policy_ptr = cupsdFindPolicy(p->op_policy)) == NULL) p->op_policy_ptr = DefaultPolicyPtr; /* * Update printer attributes... */ cupsdSetPrinterAttrs(p); } } /* * 'cupsdValidateDest()' - Validate a printer/class destination. */ const char * /* O - Printer or class name */ cupsdValidateDest( const char *uri, /* I - Printer URI */ cups_ptype_t *dtype, /* O - Type (printer or class) */ cupsd_printer_t **printer) /* O - Printer pointer */ { cupsd_printer_t *p; /* Current printer */ char localname[1024],/* Localized hostname */ *lptr, /* Pointer into localized hostname */ *sptr, /* Pointer into server name */ *rptr, /* Pointer into resource */ scheme[32], /* Scheme portion of URI */ username[64], /* Username portion of URI */ hostname[HTTP_MAX_HOST], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ /* * Initialize return values... */ if (printer) *printer = NULL; if (dtype) *dtype = (cups_ptype_t)0; /* * Pull the hostname and resource from the URI... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); /* * See if the resource is a class or printer... */ if (!strncmp(resource, "/classes/", 9)) { /* * Class... */ rptr = resource + 9; } else if (!strncmp(resource, "/printers/", 10)) { /* * Printer... */ rptr = resource + 10; } else { /* * Bad resource name... */ return (NULL); } /* * See if the printer or class name exists... */ p = cupsdFindDest(rptr); if (p == NULL && strchr(rptr, '@') == NULL) return (NULL); else if (p != NULL) { if (printer) *printer = p; if (dtype) *dtype = p->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE); return (p->name); } /* * Change localhost to the server name... */ if (!_cups_strcasecmp(hostname, "localhost")) strlcpy(hostname, ServerName, sizeof(hostname)); strlcpy(localname, hostname, sizeof(localname)); if (!_cups_strcasecmp(hostname, ServerName)) { /* * Localize the hostname... */ lptr = strchr(localname, '.'); sptr = strchr(ServerName, '.'); if (sptr != NULL && lptr != NULL) { /* * Strip the common domain name components... */ while (lptr != NULL) { if (!_cups_strcasecmp(lptr, sptr)) { *lptr = '\0'; break; } else lptr = strchr(lptr + 1, '.'); } } } /* * Find a matching printer or class... */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) if (!_cups_strcasecmp(p->hostname, localname) && !_cups_strcasecmp(p->name, rptr)) { if (printer) *printer = p; if (dtype) *dtype = p->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE); return (p->name); } return (NULL); } /* * 'cupsdWritePrintcap()' - Write a pseudo-printcap file for older applications * that need it... */ void cupsdWritePrintcap(void) { int i; /* Looping var */ cups_file_t *fp; /* Printcap file */ cupsd_printer_t *p; /* Current printer */ /* * See if we have a printcap file; if not, don't bother writing it. */ if (!Printcap || !*Printcap) return; cupsdLogMessage(CUPSD_LOG_INFO, "Generating printcap %s...", Printcap); /* * Open the printcap file... */ if ((fp = cupsFileOpen(Printcap, "w")) == NULL) return; /* * Put a comment header at the top so that users will know where the * data has come from... */ if (PrintcapFormat != PRINTCAP_PLIST) cupsFilePrintf(fp, "# This file was automatically generated by cupsd(8) " "from the\n" "# %s/printers.conf file. All changes to this file\n" "# will be lost.\n", ServerRoot); /* * Write a new printcap with the current list of printers. */ switch (PrintcapFormat) { case PRINTCAP_BSD : /* * Each printer is put in the file as: * * Printer1: * Printer2: * Printer3: * ... * PrinterN: */ if (DefaultPrinter) cupsFilePrintf(fp, "%s|%s:rm=%s:rp=%s:\n", DefaultPrinter->name, DefaultPrinter->info, ServerName, DefaultPrinter->name); for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) if (p != DefaultPrinter) cupsFilePrintf(fp, "%s|%s:rm=%s:rp=%s:\n", p->name, p->info, ServerName, p->name); break; case PRINTCAP_PLIST : /* * Each printer is written as a dictionary in a plist file. * Currently the printer-name, printer-info, printer-is-accepting-jobs, * printer-location, printer-make-and-model, printer-state, * printer-state-reasons, printer-type, and (sanitized) device-uri. */ cupsFilePuts(fp, "\n" "\n" "\n" "\n"); for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { cupsFilePuts(fp, "\t\n" "\t\tprinter-name\n" "\t\t"); write_xml_string(fp, p->name); cupsFilePuts(fp, "\n" "\t\tprinter-info\n" "\t\t"); write_xml_string(fp, p->info); cupsFilePrintf(fp, "\n" "\t\tprinter-is-accepting-jobs\n" "\t\t<%s/>\n" "\t\tprinter-location\n" "\t\t", p->accepting ? "true" : "false"); write_xml_string(fp, p->location); cupsFilePuts(fp, "\n" "\t\tprinter-make-and-model\n" "\t\t"); write_xml_string(fp, p->make_model); cupsFilePrintf(fp, "\n" "\t\tprinter-state\n" "\t\t%d\n" "\t\tprinter-state-reasons\n" "\t\t\n", p->state); for (i = 0; i < p->num_reasons; i ++) { cupsFilePuts(fp, "\t\t\t"); write_xml_string(fp, p->reasons[i]); cupsFilePuts(fp, "\n"); } cupsFilePrintf(fp, "\t\t\n" "\t\tprinter-type\n" "\t\t%d\n" "\t\tdevice-uri\n" "\t\t", p->type); write_xml_string(fp, p->sanitized_device_uri); cupsFilePuts(fp, "\n" "\t\n"); } cupsFilePuts(fp, "\n" "\n"); break; case PRINTCAP_SOLARIS : /* * Each printer is put in the file as: * * _all:all=Printer1,Printer2,Printer3,...,PrinterN * _default:use=DefaultPrinter * Printer1:\ * :bsdaddr=ServerName,Printer1:\ * :description=Description: * Printer2: * :bsdaddr=ServerName,Printer2:\ * :description=Description: * Printer3: * :bsdaddr=ServerName,Printer3:\ * :description=Description: * ... * PrinterN: * :bsdaddr=ServerName,PrinterN:\ * :description=Description: */ cupsFilePuts(fp, "_all:all="); for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayCurrent(Printers)) cupsFilePrintf(fp, "%s%c", p->name, cupsArrayNext(Printers) ? ',' : '\n'); if (DefaultPrinter) cupsFilePrintf(fp, "_default:use=%s\n", DefaultPrinter->name); for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) cupsFilePrintf(fp, "%s:\\\n" "\t:bsdaddr=%s,%s:\\\n" "\t:description=%s:\n", p->name, ServerName, p->name, p->info ? p->info : ""); break; } /* * Close the file... */ cupsFileClose(fp); } /* * 'add_printer_defaults()' - Add name-default attributes to the printer attributes. */ static void add_printer_defaults(cupsd_printer_t *p)/* I - Printer */ { int i; /* Looping var */ int num_options; /* Number of default options */ cups_option_t *options, /* Default options */ *option; /* Current option */ char name[256]; /* name-default */ /* * Maintain a common array of default attribute names... */ if (!CommonDefaults) { CommonDefaults = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("copies-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("document-format-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("finishings-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-account-id-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-accounting-user-id-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-cancel-after-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-hold-until-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-priority-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("job-sheets-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("media-col-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("notify-lease-duration-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("notify-events-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("number-up-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("orientation-requested-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("print-color-mode-default")); cupsArrayAdd(CommonDefaults, _cupsStrAlloc("print-quality-default")); } /* * Add all of the default options from the .conf files... */ for (num_options = 0, options = NULL, i = p->num_options, option = p->options; i > 0; i --, option ++) { if (strcmp(option->name, "ipp-options") && strcmp(option->name, "job-sheets") && strcmp(option->name, "lease-duration")) { snprintf(name, sizeof(name), "%s-default", option->name); num_options = cupsAddOption(name, option->value, num_options, &options); if (!cupsArrayFind(CommonDefaults, name)) cupsArrayAdd(CommonDefaults, _cupsStrAlloc(name)); } } /* * Convert options to IPP attributes... */ cupsEncodeOptions2(p->attrs, num_options, options, IPP_TAG_PRINTER); cupsFreeOptions(num_options, options); /* * Add standard -default attributes as needed... */ if (!cupsGetOption("copies", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "copies-default", 1); if (!cupsGetOption("document-format", p->num_options, p->options)) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_MIMETYPE, "document-format-default", NULL, "application/octet-stream"); if (!cupsGetOption("job-cancel-after", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, MaxJobTime > 0 ? IPP_TAG_INTEGER : IPP_TAG_NOVALUE, "job-cancel-after-default", MaxJobTime); if (!cupsGetOption("job-hold-until", p->num_options, p->options)) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "job-hold-until-default", NULL, "no-hold"); if (!cupsGetOption("job-priority", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-priority-default", 50); if (!cupsGetOption("number-up", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "number-up-default", 1); if (!cupsGetOption("notify-lease-duration", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "notify-lease-duration-default", DefaultLeaseDuration); if (!cupsGetOption("notify-events", p->num_options, p->options)) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "notify-events-default", NULL, "job-completed"); if (!cupsGetOption("orientation-requested", p->num_options, p->options)) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_NOVALUE, "orientation-requested-default", NULL, NULL); if (!cupsGetOption("print-color-mode", p->num_options, p->options)) ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "print-color-mode-default", NULL, (p->type & CUPS_PRINTER_COLOR) ? "color" : "monochrome"); if (!cupsGetOption("print-quality", p->num_options, p->options)) ippAddInteger(p->attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-default", IPP_QUALITY_NORMAL); } /* * 'add_printer_filter()' - Add a MIME filter for a printer. */ static void add_printer_filter( cupsd_printer_t *p, /* I - Printer to add to */ mime_type_t *filtertype, /* I - Filter or prefilter MIME type */ const char *filter) /* I - Filter to add */ { char super[MIME_MAX_SUPER], /* Super-type for filter */ type[MIME_MAX_TYPE], /* Type for filter */ dsuper[MIME_MAX_SUPER], /* Destination super-type for filter */ dtype[MIME_MAX_TYPE], /* Destination type for filter */ dest[MIME_MAX_SUPER + MIME_MAX_TYPE + 2], /* Destination super/type */ program[1024]; /* Program/filter name */ int cost; /* Cost of filter */ size_t maxsize = 0; /* Maximum supported file size */ mime_type_t *temptype, /* MIME type looping var */ *desttype; /* Destination MIME type */ mime_filter_t *filterptr; /* MIME filter */ char filename[1024]; /* Full filter filename */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_filter(p=%p(%s), filtertype=%p(%s/%s), " "filter=\"%s\")", p, p->name, filtertype, filtertype->super, filtertype->type, filter); /* * Parse the filter string; it should be in one of the following formats: * * source/type cost program * source/type cost maxsize(nnnn) program * source/type dest/type cost program * source/type dest/type cost maxsize(nnnn) program */ if (sscanf(filter, "%15[^/]/%255s%*[ \t]%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, dsuper, dtype, &cost, program) == 6) { snprintf(dest, sizeof(dest), "%s/%s/%s", p->name, dsuper, dtype); if ((desttype = mimeType(MimeDatabase, "printer", dest)) == NULL) { desttype = mimeAddType(MimeDatabase, "printer", dest); if (!p->dest_types) p->dest_types = cupsArrayNew(NULL, NULL); cupsArrayAdd(p->dest_types, desttype); } } else { if (sscanf(filter, "%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, &cost, program) == 4) { desttype = filtertype; } else { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: invalid filter string \"%s\"!", p->name, filter); return; } } if (!strncmp(program, "maxsize(", 8)) { char *ptr; /* Pointer into maxsize(nnnn) program */ maxsize = (size_t)strtoll(program + 8, &ptr, 10); if (*ptr != ')') { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: invalid filter string \"%s\"!", p->name, filter); return; } do { ptr ++; } while (_cups_isspace(*ptr)); _cups_strcpy(program, ptr); } /* * Check permissions on the filter and its containing directory... */ if (strcmp(program, "-")) { if (program[0] == '/') strlcpy(filename, program, sizeof(filename)); else snprintf(filename, sizeof(filename), "%s/filter/%s", ServerBin, program); _cupsFileCheck(filename, _CUPS_FILE_CHECK_PROGRAM, !RunUser, cupsdLogFCMessage, p); } /* * Add the filter to the MIME database, supporting wildcards as needed... */ for (temptype = mimeFirstType(MimeDatabase); temptype; temptype = mimeNextType(MimeDatabase)) if (((super[0] == '*' && _cups_strcasecmp(temptype->super, "printer")) || !_cups_strcasecmp(temptype->super, super)) && (type[0] == '*' || !_cups_strcasecmp(temptype->type, type))) { if (desttype != filtertype) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_filter: %s: adding filter %s/%s %s/%s %d " "%s", p->name, temptype->super, temptype->type, desttype->super, desttype->type, cost, program); filterptr = mimeAddFilter(MimeDatabase, temptype, desttype, cost, program); if (!mimeFilterLookup(MimeDatabase, desttype, filtertype)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_filter: %s: adding filter %s/%s %s/%s " "0 -", p->name, desttype->super, desttype->type, filtertype->super, filtertype->type); mimeAddFilter(MimeDatabase, desttype, filtertype, 0, "-"); } } else { cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_filter: %s: adding filter %s/%s %s/%s %d " "%s", p->name, temptype->super, temptype->type, filtertype->super, filtertype->type, cost, program); filterptr = mimeAddFilter(MimeDatabase, temptype, filtertype, cost, program); } if (filterptr) filterptr->maxsize = maxsize; } } /* * 'add_printer_formats()' - Add document-format-supported values for a printer. */ static void add_printer_formats(cupsd_printer_t *p) /* I - Printer */ { int i; /* Looping var */ mime_type_t *type; /* Current MIME type */ cups_array_t *filters; /* Filters */ ipp_attribute_t *attr; /* document-format-supported attribute */ char mimetype[MIME_MAX_SUPER + MIME_MAX_TYPE + 2]; /* MIME type name */ const char *preferred = "image/urf"; /* document-format-preferred value */ /* * Raw (and remote) queues advertise all of the supported MIME * types... */ cupsArrayDelete(p->filetypes); p->filetypes = NULL; if (p->raw) { ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_MIMETYPE), "document-format-supported", NumMimeTypes, NULL, MimeTypes); return; } /* * Otherwise, loop through the supported MIME types and see if there * are filters for them... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_formats: %d types, %d filters", mimeNumTypes(MimeDatabase), mimeNumFilters(MimeDatabase)); p->filetypes = cupsArrayNew(NULL, NULL); for (type = mimeFirstType(MimeDatabase); type; type = mimeNextType(MimeDatabase)) { if (!_cups_strcasecmp(type->super, "printer")) continue; snprintf(mimetype, sizeof(mimetype), "%s/%s", type->super, type->type); if ((filters = mimeFilter(MimeDatabase, type, p->filetype, NULL)) != NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_formats: %s: %s needs %d filters", p->name, mimetype, cupsArrayCount(filters)); cupsArrayDelete(filters); cupsArrayAdd(p->filetypes, type); if (!strcasecmp(mimetype, "application/pdf")) preferred = "application/pdf"; } else cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_formats: %s: %s not supported", p->name, mimetype); } /* * Add the file formats that can be filtered... */ if ((type = mimeType(MimeDatabase, "application", "octet-stream")) == NULL || !cupsArrayFind(p->filetypes, type)) i = 1; else i = 0; cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_formats: %s: %d supported types", p->name, cupsArrayCount(p->filetypes) + i); attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_MIMETYPE, "document-format-supported", cupsArrayCount(p->filetypes) + i, NULL, NULL); if (i) attr->values[0].string.text = _cupsStrAlloc("application/octet-stream"); for (type = (mime_type_t *)cupsArrayFirst(p->filetypes); type; i ++, type = (mime_type_t *)cupsArrayNext(p->filetypes)) { snprintf(mimetype, sizeof(mimetype), "%s/%s", type->super, type->type); attr->values[i].string.text = _cupsStrAlloc(mimetype); } ippAddString(p->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_MIMETYPE), "document-format-preferred", NULL, preferred); #ifdef HAVE_DNSSD { char pdl[1024]; /* Buffer to build pdl list */ mime_filter_t *filter; /* MIME filter looping var */ /* * We only support raw printing if this is not a Tioga PrintJobMgr based * queue and if application/octet-stream is a known type... */ for (filter = (mime_filter_t *)cupsArrayFirst(MimeDatabase->filters); filter; filter = (mime_filter_t *)cupsArrayNext(MimeDatabase->filters)) { if (filter->dst == p->filetype && strstr(filter->filter, "PrintJobMgr")) break; } pdl[0] = '\0'; /* * Then list a bunch of formats that are supported by the printer... */ for (type = (mime_type_t *)cupsArrayFirst(p->filetypes); type; type = (mime_type_t *)cupsArrayNext(p->filetypes)) { if (!_cups_strcasecmp(type->super, "application")) { if (!_cups_strcasecmp(type->type, "pdf")) strlcat(pdl, "application/pdf,", sizeof(pdl)); else if (!_cups_strcasecmp(type->type, "postscript")) strlcat(pdl, "application/postscript,", sizeof(pdl)); } else if (!_cups_strcasecmp(type->super, "image")) { if (!_cups_strcasecmp(type->type, "jpeg")) strlcat(pdl, "image/jpeg,", sizeof(pdl)); else if (!_cups_strcasecmp(type->type, "png")) strlcat(pdl, "image/png,", sizeof(pdl)); else if (!_cups_strcasecmp(type->type, "pwg-raster")) strlcat(pdl, "image/pwg-raster,", sizeof(pdl)); else if (!_cups_strcasecmp(type->type, "urf")) strlcat(pdl, "image/urf,", sizeof(pdl)); } } if (pdl[0]) pdl[strlen(pdl) - 1] = '\0'; /* Remove trailing comma */ cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: pdl='%s'", p->name, pdl); cupsdSetString(&p->pdl, pdl); } #endif /* HAVE_DNSSD */ } /* * 'compare_printers()' - Compare two printers. */ static int /* O - Result of comparison */ compare_printers(void *first, /* I - First printer */ void *second, /* I - Second printer */ void *data) /* I - App data (not used) */ { (void)data; return (_cups_strcasecmp(((cupsd_printer_t *)first)->name, ((cupsd_printer_t *)second)->name)); } /* * 'delete_printer_filters()' - Delete all MIME filters for a printer. */ static void delete_printer_filters( cupsd_printer_t *p) /* I - Printer to remove from */ { mime_filter_t *filter; /* MIME filter looping var */ mime_type_t *type; /* Destination types for filters */ /* * Range check input... */ if (p == NULL) return; /* * Remove all filters from the MIME database that have a destination * type == printer... */ for (filter = mimeFirstFilter(MimeDatabase); filter; filter = mimeNextFilter(MimeDatabase)) if (filter->dst == p->filetype || filter->dst == p->prefiltertype || cupsArrayFind(p->dest_types, filter->dst)) { /* * Delete the current filter... */ mimeDeleteFilter(MimeDatabase, filter); } for (type = (mime_type_t *)cupsArrayFirst(p->dest_types); type; type = (mime_type_t *)cupsArrayNext(p->dest_types)) mimeDeleteType(MimeDatabase, type); cupsArrayDelete(p->dest_types); p->dest_types = NULL; cupsdSetPrinterReasons(p, "-cups-insecure-filter-warning" ",cups-missing-filter-warning"); } /* * 'dirty_printer()' - Mark config and state files dirty for the specified * printer. */ static void dirty_printer(cupsd_printer_t *p) /* I - Printer */ { if (p->type & CUPS_PRINTER_CLASS) cupsdMarkDirty(CUPSD_DIRTY_CLASSES); else cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); if (PrintcapFormat == PRINTCAP_PLIST) cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); } /* * 'load_ppd()' - Load a cached PPD file, updating the cache as needed. */ static void load_ppd(cupsd_printer_t *p) /* I - Printer */ { int i, j; /* Looping vars */ char cache_name[1024]; /* Cache filename */ struct stat cache_info; /* Cache file info */ struct stat conf_info; /* cupsd.conf file info */ ppd_file_t *ppd; /* PPD file */ char ppd_name[1024]; /* PPD filename */ struct stat ppd_info; /* PPD file info */ char strings_name[1024]; /* Strings filename */ int num_media; /* Number of media values */ ppd_size_t *size; /* Current PPD size */ ppd_option_t *duplex, /* Duplex option */ *output_bin, /* OutputBin option */ *output_mode, /* OutputMode option */ *resolution; /* (Set|JCL|)Resolution option */ ppd_choice_t *choice; /* Current PPD choice */ ppd_attr_t *ppd_attr; /* PPD attribute */ int xdpi, /* Horizontal resolution */ ydpi; /* Vertical resolution */ const char *resptr; /* Pointer into resolution keyword */ pwg_size_t *pwgsize; /* Current PWG size */ pwg_map_t *pwgsource, /* Current PWG source */ *pwgtype; /* Current PWG type */ ipp_attribute_t *attr; /* Attribute data */ _ipp_value_t *val; /* Attribute value */ int num_finishings, /* Number of finishings */ finishings[100]; /* finishings-supported values */ int num_qualities, /* Number of print-quality values */ qualities[3]; /* print-quality values */ int num_margins, /* Number of media-*-margin-supported values */ margins[16]; /* media-*-margin-supported values */ const char *filter, /* Current filter */ *mandatory; /* Current mandatory attribute */ ipp_attribute_t *media_col_ready, /* media-col-ready attribute */ *media_ready; /* media-ready attribute */ int num_urf; /* Number of urf-supported values */ const char *urf[16], /* urf-supported values */ *urf_prefix; /* Prefix string for value */ char *urf_ptr, /* Pointer into value */ urf_fn[64], /* FN (finishings) value */ urf_pq[32], /* PQ (print-quality) value */ urf_rs[32]; /* RS (resolution) value */ static const char * const cover_sheet_info[] = { /* cover-sheet-info-supported values */ "from-name", "subject", "to-name" }; static const char * const features_print[] = { /* ipp-features-supported values */ "ipp-everywhere", "ipp-everywhere-server", "subscription-object" }; static const char * const features_faxout[] = { /* ipp-features-supported values */ "faxout", "subscription-object" }; static const char * const job_creation_print[] = { /* job-creation-attributes-supported */ "copies", "finishings", "finishings-col", "ipp-attribute-fidelity", "job-hold-until", "job-name", "job-priority", "job-sheets", "media", "media-col", "multiple-document-handling", "number-up", "number-up-layout", "orientation-requested", "output-bin", "page-delivery", "page-ranges", "print-color-mode", "print-quality", "print-scaling", "printer-resolution", "sides" }; static const char * const job_creation_faxout[] = { /* job-creation-attributes-supported */ "confirmation-sheet-print", "copies", "cover-sheet-info", "destination-uris", "ipp-attribute-fidelity", "job-hold-until", "job-name", "job-priority", "job-sheets", "media", "media-col", "multiple-document-handling", "number-of-retries", "number-up", "number-up-layout", "orientation-requested", "page-ranges", "print-color-mode", "print-quality", "print-scaling", "printer-resolution", "retry-interval", "retry-time-out" }; static const char * const pwg_raster_document_types[] = { /* pwg-raster-document-type-supported values */ "black_1", "sgray_8", "srgb_8" }; static const char * const sides[3] = /* sides-supported values */ { "one-sided", "two-sided-long-edge", "two-sided-short-edge" }; static const char * const standard_commands[] = { /* Standard CUPS commands */ "AutoConfigure", "Clean", "PrintSelfTestPage" }; /* * Check to see if the cache is up-to-date... */ if (stat(ConfigurationFile, &conf_info)) conf_info.st_mtime = 0; snprintf(cache_name, sizeof(cache_name), "%s/%s.data", CacheDir, p->name); if (stat(cache_name, &cache_info)) cache_info.st_mtime = 0; snprintf(ppd_name, sizeof(ppd_name), "%s/ppd/%s.ppd", ServerRoot, p->name); if (stat(ppd_name, &ppd_info)) ppd_info.st_mtime = 1; snprintf(strings_name, sizeof(strings_name), "%s/%s.strings", CacheDir, p->name); ippDelete(p->ppd_attrs); p->ppd_attrs = NULL; _ppdCacheDestroy(p->pc); p->pc = NULL; if (cache_info.st_mtime >= ppd_info.st_mtime && cache_info.st_mtime >= conf_info.st_mtime) { cupsdLogMessage(CUPSD_LOG_DEBUG, "load_ppd: Loading %s...", cache_name); if ((p->pc = _ppdCacheCreateWithFile(cache_name, &p->ppd_attrs)) != NULL && p->ppd_attrs) { /* * Loaded successfully! */ /* * Set `strings` (source for printer-strings-uri IPP attribute) * if printer's .strings file with localization exists. */ if (!access(strings_name, R_OK)) cupsdSetString(&p->strings, strings_name); else cupsdClearString(&p->strings); return; } } /* * Reload PPD attributes from disk... */ cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); cupsdLogMessage(CUPSD_LOG_DEBUG, "load_ppd: Loading %s...", ppd_name); cupsdClearString(&(p->make_model)); p->type &= (cups_ptype_t)~CUPS_PRINTER_OPTIONS; p->type |= CUPS_PRINTER_BW; finishings[0] = IPP_FINISHINGS_NONE; num_finishings = 1; p->ppd_attrs = ippNew(); if (p->type & CUPS_PRINTER_FAX) { /* confirmation-sheet-print-default */ ippAddBoolean(p->ppd_attrs, IPP_TAG_PRINTER, "confirmation-sheet-default", 0); /* copies-supported */ ippAddRange(p->ppd_attrs, IPP_TAG_PRINTER, "copies-supported", 1, 1); /* cover-sheet-info-default */ ippAddOutOfBand(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_NOVALUE, "cover-sheet-info-default"); /* cover-sheet-info-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "cover-sheet-info-supported", sizeof(cover_sheet_info) / sizeof(cover_sheet_info[0]), NULL, cover_sheet_info); /* destination-uri-schemes-supported */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_URISCHEME), "destination-uri-schemes-supported", NULL, "tel"); /* destination-uri-supported */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "destination-uri-supported", NULL, "destination-uri"); /* from-name-supported */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "from-name-supported", 1023); /* ipp-features-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-features-supported", sizeof(features_faxout) / sizeof(features_faxout[0]), NULL, features_faxout); /* job-creation-attributes-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-creation-attributes-supported", sizeof(job_creation_faxout) / sizeof(job_creation_faxout[0]), NULL, job_creation_faxout); /* message-supported */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "message-supported", 1023); /* multiple-destination-uris-supported */ ippAddBoolean(p->ppd_attrs, IPP_TAG_PRINTER, "multiple-destination-uris-supported", 0); /* number-of-retries-default */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "number-of-retries-default", 3); /* number-of-retries-supported */ ippAddRange(p->ppd_attrs, IPP_TAG_PRINTER, "number-of-retries-supported", 0, 99); /* retry-interval-default */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "retry-interval-default", 60); /* retry-interval-supported */ ippAddRange(p->ppd_attrs, IPP_TAG_PRINTER, "retry-interval-supported", 30, 300); /* retry-time-out-default */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "retry-time-out-default", 60); /* retry-time-out-supported */ ippAddRange(p->ppd_attrs, IPP_TAG_PRINTER, "retry-time-out-supported", 30, 300); /* subject-supported */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "subject-supported", 1023); /* to-name-supported */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "to-name-supported", 1023); } else { /* copies-supported */ ippAddRange(p->ppd_attrs, IPP_TAG_PRINTER, "copies-supported", 1, MaxCopies); /* ipp-features-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "ipp-features-supported", sizeof(features_print) / sizeof(features_print[0]), NULL, features_print); /* job-creation-attributes-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "job-creation-attributes-supported", sizeof(job_creation_print) / sizeof(job_creation_print[0]), NULL, job_creation_print); } if ((ppd = _ppdOpenFile(ppd_name, _PPD_LOCALIZATION_NONE)) != NULL) { /* * Add make/model and other various attributes... */ p->pc = _ppdCacheCreateWithPPD(ppd); if (!p->pc) cupsdLogMessage(CUPSD_LOG_WARN, "Unable to create cache of \"%s\": %s", ppd_name, cupsLastErrorString()); ppdMarkDefaults(ppd); if (ppd->color_device) p->type |= CUPS_PRINTER_COLOR; if (ppd->variable_sizes) p->type |= CUPS_PRINTER_VARIABLE; if (!ppd->manual_copies) p->type |= CUPS_PRINTER_COPIES; if ((ppd_attr = ppdFindAttr(ppd, "cupsFax", NULL)) != NULL) if (ppd_attr->value && !_cups_strcasecmp(ppd_attr->value, "true")) p->type |= CUPS_PRINTER_FAX; ippAddBoolean(p->ppd_attrs, IPP_TAG_PRINTER, "color-supported", (char)ppd->color_device); if (p->pc && p->pc->charge_info_uri) ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-charge-info-uri", NULL, p->pc->charge_info_uri); if (p->pc && p->pc->account_id) ippAddBoolean(p->ppd_attrs, IPP_TAG_PRINTER, "job-account-id-supported", 1); if (p->pc && p->pc->accounting_user_id) ippAddBoolean(p->ppd_attrs, IPP_TAG_PRINTER, "job-accounting-user-id-supported", 1); if (p->pc && p->pc->password) { ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "job-password-encryption-supported", NULL, "none"); ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "job-password-supported", (int)strlen(p->pc->password)); } if (ppd->throughput) { ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute", ppd->throughput); if (ppd->color_device) ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute-color", ppd->throughput); } else { /* * When there is no speed information, just say "1 page per minute". */ ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute", 1); if (ppd->color_device) ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "pages-per-minute-color", 1); } if ((ppd_attr = ppdFindAttr(ppd, "1284DeviceId", NULL)) != NULL) ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-device-id", NULL, ppd_attr->value); num_qualities = 0; if ((output_mode = ppdFindOption(ppd, "OutputMode")) || (output_mode = ppdFindOption(ppd, "cupsPrintQuality"))) { if (ppdFindChoice(output_mode, "draft") || ppdFindChoice(output_mode, "fast")) qualities[num_qualities ++] = IPP_QUALITY_DRAFT; qualities[num_qualities ++] = IPP_QUALITY_NORMAL; if (ppdFindChoice(output_mode, "best") || ppdFindChoice(output_mode, "high")) qualities[num_qualities ++] = IPP_QUALITY_HIGH; } else if ((ppd_attr = ppdFindAttr(ppd, "APPrinterPreset", NULL)) != NULL) { do { if (strstr(ppd_attr->spec, "draft") || strstr(ppd_attr->spec, "Draft")) { qualities[num_qualities ++] = IPP_QUALITY_DRAFT; break; } } while ((ppd_attr = ppdFindNextAttr(ppd, "APPrinterPreset", NULL)) != NULL); qualities[num_qualities ++] = IPP_QUALITY_NORMAL; qualities[num_qualities ++] = IPP_QUALITY_HIGH; } else qualities[num_qualities ++] = IPP_QUALITY_NORMAL; ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "print-quality-supported", num_qualities, qualities); if (ppd->nickname) { /* * The NickName can be localized in the character set specified * by the LanugageEncoding attribute. However, ppdOpen2() has * already converted the ppd->nickname member to UTF-8 for us * (the original attribute value is available separately) */ cupsdSetString(&p->make_model, ppd->nickname); } else if (ppd->modelname) { /* * Model name can only contain specific characters... */ cupsdSetString(&p->make_model, ppd->modelname); } else cupsdSetString(&p->make_model, "Bad PPD File"); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, p->make_model); if (p->pc && p->pc->strings) _cupsMessageSave(strings_name, _CUPS_MESSAGE_STRINGS, p->pc->strings); if (!access(strings_name, R_OK)) cupsdSetString(&p->strings, strings_name); else cupsdClearString(&p->strings); num_urf = 0; urf[num_urf ++] = "V1.4"; urf[num_urf ++] = "CP1"; urf[num_urf ++] = "W8"; for (i = 0, urf_ptr = urf_pq, urf_prefix = "PQ"; i < num_qualities; i ++) { snprintf(urf_ptr, sizeof(urf_pq) - (size_t)(urf_ptr - urf_pq), "%s%d", urf_prefix, qualities[i]); urf_prefix = "-"; urf_ptr += strlen(urf_ptr); } urf[num_urf ++] = urf_pq; /* * Add media options from the PPD file... */ if (ppd->num_sizes == 0 || !p->pc) { if (!ppdFindAttr(ppd, "APScannerOnly", NULL) && !ppdFindAttr(ppd, "cups3D", NULL)) cupsdLogMessage(CUPSD_LOG_CRIT, "The PPD file for printer %s contains no media " "options and is therefore invalid.", p->name); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-default", NULL, "unknown"); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-supported", NULL, "unknown"); } else { /* * media-default */ if ((size = ppdPageSize(ppd, NULL)) != NULL) pwgsize = _ppdCacheGetSize(p->pc, size->name); else pwgsize = NULL; ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-default", NULL, pwgsize ? pwgsize->map.pwg : "unknown"); /* * media-col-default */ if (pwgsize) { ipp_t *col; /* Collection value */ col = new_media_col(pwgsize); if ((ppd_attr = ppdFindAttr(ppd, "DefaultMediaType", NULL)) != NULL) { for (i = p->pc->num_types, pwgtype = p->pc->types; i > 0; i --, pwgtype ++) { if (!strcmp(pwgtype->ppd, ppd_attr->value)) { ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-type", NULL, pwgtype->pwg); break; } } } if ((ppd_attr = ppdFindAttr(ppd, "DefaultInputSlot", NULL)) != NULL) { for (i = p->pc->num_sources, pwgsource = p->pc->sources; i > 0; i --, pwgsource ++) { if (!strcmp(pwgsource->ppd, ppd_attr->value)) { ippAddString(col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-source", NULL, pwgsource->pwg); break; } } } ippAddCollection(p->ppd_attrs, IPP_TAG_PRINTER, "media-col-default", col); ippDelete(col); } /* * media-supported */ num_media = p->pc->num_sizes; if (p->pc->custom_min_keyword) num_media += 2; if ((attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-supported", num_media, NULL, NULL)) != NULL) { val = attr->values; for (i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize ++, val ++) val->string.text = _cupsStrAlloc(pwgsize->map.pwg); if (p->pc->custom_min_keyword) { val->string.text = _cupsStrAlloc(p->pc->custom_min_keyword); val ++; val->string.text = _cupsStrAlloc(p->pc->custom_max_keyword); } } /* * media-size-supported */ num_media = p->pc->num_sizes; if (p->pc->custom_min_keyword) num_media ++; if ((attr = ippAddCollections(p->ppd_attrs, IPP_TAG_PRINTER, "media-size-supported", num_media, NULL)) != NULL) { val = attr->values; for (i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize ++, val ++) { val->collection = ippNew(); ippAddInteger(val->collection, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "x-dimension", pwgsize->width); ippAddInteger(val->collection, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "y-dimension", pwgsize->length); } if (p->pc->custom_min_keyword) { val->collection = ippNew(); ippAddRange(val->collection, IPP_TAG_PRINTER, "x-dimension", p->pc->custom_min_width, p->pc->custom_max_width); ippAddRange(val->collection, IPP_TAG_PRINTER, "y-dimension", p->pc->custom_min_length, p->pc->custom_max_length); } } /* * media-source-supported */ if (p->pc->num_sources > 0 && (attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-source-supported", p->pc->num_sources, NULL, NULL)) != NULL) { for (i = p->pc->num_sources, pwgsource = p->pc->sources, val = attr->values; i > 0; i --, pwgsource ++, val ++) val->string.text = _cupsStrAlloc(pwgsource->pwg); } /* * media-type-supported */ if (p->pc->num_types > 0 && (attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-type-supported", p->pc->num_types, NULL, NULL)) != NULL) { for (i = p->pc->num_types, pwgtype = p->pc->types, val = attr->values; i > 0; i --, pwgtype ++, val ++) val->string.text = _cupsStrAlloc(pwgtype->pwg); } /* * media-*-margin-supported */ for (i = p->pc->num_sizes, pwgsize = p->pc->sizes, num_margins = 0; i > 0 && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i --, pwgsize ++) { for (j = 0; j < num_margins; j ++) if (pwgsize->bottom == margins[j]) break; if (j >= num_margins) { margins[num_margins] = pwgsize->bottom; num_margins ++; } } if (num_margins > 0) ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin-supported", num_margins, margins); else ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin-supported", 0); for (i = p->pc->num_sizes, pwgsize = p->pc->sizes, num_margins = 0; i > 0 && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i --, pwgsize ++) { for (j = 0; j < num_margins; j ++) if (pwgsize->left == margins[j]) break; if (j >= num_margins) { margins[num_margins] = pwgsize->left; num_margins ++; } } if (num_margins > 0) ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin-supported", num_margins, margins); else ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin-supported", 0); for (i = p->pc->num_sizes, pwgsize = p->pc->sizes, num_margins = 0; i > 0 && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i --, pwgsize ++) { for (j = 0; j < num_margins; j ++) if (pwgsize->right == margins[j]) break; if (j >= num_margins) { margins[num_margins] = pwgsize->right; num_margins ++; } } if (num_margins > 0) ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin-supported", num_margins, margins); else ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin-supported", 0); for (i = p->pc->num_sizes, pwgsize = p->pc->sizes, num_margins = 0; i > 0 && num_margins < (int)(sizeof(margins) / sizeof(margins[0])); i --, pwgsize ++) { for (j = 0; j < num_margins; j ++) if (pwgsize->top == margins[j]) break; if (j >= num_margins) { margins[num_margins] = pwgsize->top; num_margins ++; } } if (num_margins > 0) ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin-supported", num_margins, margins); else ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin-supported", 0); /* * media-col-database */ num_media = p->pc->num_sizes; if (p->pc->custom_min_keyword) num_media ++; if ((attr = ippAddCollections(p->ppd_attrs, IPP_TAG_PRINTER, "media-col-database", num_media, NULL)) != NULL) { /* * Add each page size without source or type... */ for (i = 0, pwgsize = p->pc->sizes; i < p->pc->num_sizes; i ++, pwgsize ++) { ipp_t *col = new_media_col(pwgsize); ippSetCollection(p->ppd_attrs, &attr, i, col); ippDelete(col); } /* * Add a range if the printer supports custom sizes. */ if (p->pc->custom_min_keyword) { ipp_t *media_col = ippNew(); ipp_t *media_size = ippNew(); ippAddRange(media_size, IPP_TAG_PRINTER, "x-dimension", p->pc->custom_min_width, p->pc->custom_max_width); ippAddRange(media_size, IPP_TAG_PRINTER, "y-dimension", p->pc->custom_min_length, p->pc->custom_max_length); ippAddCollection(media_col, IPP_TAG_PRINTER, "media-size", media_size); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin", p->pc->custom_size.bottom); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin", p->pc->custom_size.left); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin", p->pc->custom_size.right); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin", p->pc->custom_size.top); ippSetCollection(p->ppd_attrs, &attr, i, media_col); ippDelete(media_size); ippDelete(media_col); } } /* * media[-col]-ready */ for (media_col_ready = NULL, media_ready = NULL, i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize ++) { ipp_t *col; // media-col-ready value // Skip printer sizes that don't have a PPD size or aren't in the ready // sizes array... if (!pwgsize->map.ppd || !cupsArrayFind(ReadyPaperSizes, pwgsize->map.ppd)) continue; // Add or append a media-ready value if (media_ready) ippSetString(p->ppd_attrs, &media_ready, ippGetCount(media_ready), pwgsize->map.pwg); else media_ready = ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-ready", NULL, pwgsize->map.pwg); // Add or append a media-col-ready value col = new_media_col(pwgsize); if (media_col_ready) ippSetCollection(p->ppd_attrs, &media_col_ready, ippGetCount(media_col_ready), col); else media_col_ready = ippAddCollection(p->ppd_attrs, IPP_TAG_PRINTER, "media-col-ready", col); ippDelete(col); } } ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "mopria-certified", NULL, "1.3"); /* * Output bin... */ if (p->pc && p->pc->num_bins > 0) { attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-supported", p->pc->num_bins, NULL, NULL); if (attr != NULL) { for (i = 0, val = attr->values; i < p->pc->num_bins; i ++, val ++) val->string.text = _cupsStrAlloc(p->pc->bins[i].pwg); } if ((output_bin = ppdFindOption(ppd, "OutputBin")) != NULL) { for (i = 0; i < p->pc->num_bins; i ++) if (!strcmp(p->pc->bins[i].ppd, output_bin->defchoice)) break; if (i >= p->pc->num_bins) i = 0; ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-default", NULL, p->pc->bins[i].pwg); } else ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-default", NULL, p->pc->bins[0].pwg); } else if (((ppd_attr = ppdFindAttr(ppd, "DefaultOutputOrder", NULL)) != NULL && !_cups_strcasecmp(ppd_attr->value, "Reverse")) || (!ppd_attr && ppd->manufacturer && /* "Compatibility heuristic" */ (!_cups_strcasecmp(ppd->manufacturer, "epson") || !_cups_strcasecmp(ppd->manufacturer, "lexmark")))) { /* * Report that this printer has a single output bin that leaves pages face * up. */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-supported", NULL, "face-up"); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-default", NULL, "face-up"); urf[num_urf ++] = "OFU0"; } else { ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-supported", NULL, "face-down"); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "output-bin-default", NULL, "face-down"); } /* * print-color-mode... */ if (ppd->color_device) { static const char * const color_modes[] = { "monochrome", "color" }; ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "print-color-mode-supported", 2, NULL, color_modes); ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "pwg-raster-document-type-supported", 3, NULL, pwg_raster_document_types); urf[num_urf ++] = "SRGB24"; if (!cupsGetOption("print-color-mode", p->num_options, p->options)) { // If the default color mode isn't set, use the default from the PPD // file... ppd_option_t *color_model = ppdFindOption(ppd, "ColorModel"); // ColorModel PPD option if (color_model && strcmp(color_model->defchoice, "RGB") && strcmp(color_model->defchoice, "CMYK")) p->num_options = cupsAddOption("print-color-mode", "monochrome", p->num_options, &p->options); } } else { ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "print-color-mode-supported", NULL, "monochrome"); ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "pwg-raster-document-type-supported", 2, NULL, pwg_raster_document_types); } /* * Mandatory job attributes, if any... */ if (p->pc && cupsArrayCount(p->pc->mandatory) > 0) { int count = cupsArrayCount(p->pc->mandatory); /* Number of mandatory attributes */ attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-mandatory-job-attributes", count, NULL, NULL); for (val = attr->values, mandatory = (char *)cupsArrayFirst(p->pc->mandatory); mandatory; val ++, mandatory = (char *)cupsArrayNext(p->pc->mandatory)) val->string.text = _cupsStrAlloc(mandatory); } /* * Printer resolutions... */ if ((resolution = ppdFindOption(ppd, "Resolution")) == NULL) if ((resolution = ppdFindOption(ppd, "JCLResolution")) == NULL) if ((resolution = ppdFindOption(ppd, "SetResolution")) == NULL) resolution = ppdFindOption(ppd, "CNRes_PGP"); if (resolution) { /* * Report all supported resolutions... */ attr = ippAddResolutions(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-supported", resolution->num_choices, IPP_RES_PER_INCH, NULL, NULL); for (i = 0, choice = resolution->choices; i < resolution->num_choices; i ++, choice ++) { xdpi = ydpi = (int)strtol(choice->choice, (char **)&resptr, 10); if (resptr > choice->choice && xdpi > 0 && *resptr == 'x') ydpi = (int)strtol(resptr + 1, (char **)&resptr, 10); if (xdpi <= 0 || ydpi <= 0) { cupsdLogMessage(CUPSD_LOG_WARN, "Bad resolution \"%s\" for printer %s.", choice->choice, p->name); xdpi = ydpi = 300; } attr->values[i].resolution.xres = xdpi; attr->values[i].resolution.yres = ydpi; attr->values[i].resolution.units = IPP_RES_PER_INCH; if (choice->marked) ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-default", IPP_RES_PER_INCH, xdpi, ydpi); if (i == 0) { ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "pwg-raster-document-resolution-supported", IPP_RES_PER_INCH, xdpi, ydpi); snprintf(urf_rs, sizeof(urf_rs), "RS%d", xdpi); urf[num_urf ++] = urf_rs; } } } else if ((ppd_attr = ppdFindAttr(ppd, "DefaultResolution", NULL)) != NULL && ppd_attr->value) { /* * Just the DefaultResolution to report... */ xdpi = ydpi = (int)strtol(ppd_attr->value, (char **)&resptr, 10); if (resptr > ppd_attr->value && xdpi > 0) { if (*resptr == 'x') ydpi = (int)strtol(resptr + 1, (char **)&resptr, 10); else ydpi = xdpi; } if (xdpi <= 0 || ydpi <= 0) { cupsdLogMessage(CUPSD_LOG_WARN, "Bad default resolution \"%s\" for printer %s.", ppd_attr->value, p->name); xdpi = ydpi = 300; } ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-default", IPP_RES_PER_INCH, xdpi, ydpi); ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-supported", IPP_RES_PER_INCH, xdpi, ydpi); ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "pwg-raster-document-resolution-supported", IPP_RES_PER_INCH, xdpi, ydpi); snprintf(urf_rs, sizeof(urf_rs), "RS%d", xdpi); urf[num_urf ++] = urf_rs; } else { /* * No resolutions in PPD - make one up... */ ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-default", IPP_RES_PER_INCH, 300, 300); ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "printer-resolution-supported", IPP_RES_PER_INCH, 300, 300); ippAddResolution(p->ppd_attrs, IPP_TAG_PRINTER, "pwg-raster-document-resolution-supported", IPP_RES_PER_INCH, 300, 300); strlcpy(urf_rs, "RS300", sizeof(urf_rs)); urf[num_urf ++] = urf_rs; } /* * Duplexing, etc... */ ppdMarkDefaults(ppd); if ((duplex = ppdFindOption(ppd, "Duplex")) == NULL) if ((duplex = ppdFindOption(ppd, "EFDuplex")) == NULL) if ((duplex = ppdFindOption(ppd, "EFDuplexing")) == NULL) if ((duplex = ppdFindOption(ppd, "KD03Duplex")) == NULL) duplex = ppdFindOption(ppd, "JCLDuplex"); if (duplex && duplex->num_choices > 1 && !ppdInstallableConflict(ppd, duplex->keyword, "DuplexTumble")) { p->type |= CUPS_PRINTER_DUPLEX; ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "pwg-raster-document-sheet-back", NULL, "normal"); urf[num_urf ++] = "DM1"; ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-supported", 3, NULL, sides); if (!_cups_strcasecmp(duplex->defchoice, "DuplexTumble")) ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-default", NULL, "two-sided-short-edge"); else if (!_cups_strcasecmp(duplex->defchoice, "DuplexNoTumble")) ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-default", NULL, "two-sided-long-edge"); else ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-default", NULL, "one-sided"); } else { ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-supported", NULL, "one-sided"); ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "sides-default", NULL, "one-sided"); } if (ppdFindOption(ppd, "Collate") != NULL) p->type |= CUPS_PRINTER_COLLATE; if (p->pc && p->pc->finishings) { _pwg_finishings_t *fin; /* Current finishing value */ for (fin = (_pwg_finishings_t *)cupsArrayFirst(p->pc->finishings), urf_ptr = urf_fn, urf_prefix = "FN"; fin; fin = (_pwg_finishings_t *)cupsArrayNext(p->pc->finishings)) { if (num_finishings < (int)(sizeof(finishings) / sizeof(finishings[0]))) finishings[num_finishings++] = (int)fin->value; snprintf(urf_ptr, sizeof(urf_fn) - (size_t)(urf_ptr - urf_fn), "%s%d", urf_prefix, fin->value); urf_prefix = "-"; urf_ptr += strlen(urf_ptr); switch (fin->value) { case IPP_FINISHINGS_BIND : case IPP_FINISHINGS_BIND_LEFT : case IPP_FINISHINGS_BIND_TOP : case IPP_FINISHINGS_BIND_RIGHT : case IPP_FINISHINGS_BIND_BOTTOM : case IPP_FINISHINGS_EDGE_STITCH : case IPP_FINISHINGS_EDGE_STITCH_LEFT : case IPP_FINISHINGS_EDGE_STITCH_TOP : case IPP_FINISHINGS_EDGE_STITCH_RIGHT : case IPP_FINISHINGS_EDGE_STITCH_BOTTOM : p->type |= CUPS_PRINTER_BIND; break; case IPP_FINISHINGS_COVER : p->type |= CUPS_PRINTER_COVER; break; case IPP_FINISHINGS_PUNCH : case IPP_FINISHINGS_PUNCH_TOP_LEFT : case IPP_FINISHINGS_PUNCH_BOTTOM_LEFT : case IPP_FINISHINGS_PUNCH_TOP_RIGHT : case IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT : case IPP_FINISHINGS_PUNCH_DUAL_LEFT : case IPP_FINISHINGS_PUNCH_DUAL_TOP : case IPP_FINISHINGS_PUNCH_DUAL_RIGHT : case IPP_FINISHINGS_PUNCH_DUAL_BOTTOM : case IPP_FINISHINGS_PUNCH_TRIPLE_LEFT : case IPP_FINISHINGS_PUNCH_TRIPLE_TOP : case IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT : case IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM : case IPP_FINISHINGS_PUNCH_QUAD_LEFT : case IPP_FINISHINGS_PUNCH_QUAD_TOP : case IPP_FINISHINGS_PUNCH_QUAD_RIGHT : case IPP_FINISHINGS_PUNCH_QUAD_BOTTOM : p->type |= CUPS_PRINTER_PUNCH; break; case IPP_FINISHINGS_STAPLE : case IPP_FINISHINGS_STAPLE_TOP_LEFT : case IPP_FINISHINGS_STAPLE_BOTTOM_LEFT : case IPP_FINISHINGS_STAPLE_TOP_RIGHT : case IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT : case IPP_FINISHINGS_STAPLE_DUAL_LEFT : case IPP_FINISHINGS_STAPLE_DUAL_TOP : case IPP_FINISHINGS_STAPLE_DUAL_RIGHT : case IPP_FINISHINGS_STAPLE_DUAL_BOTTOM : case IPP_FINISHINGS_STAPLE_TRIPLE_LEFT : case IPP_FINISHINGS_STAPLE_TRIPLE_TOP : case IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT : case IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM : p->type |= CUPS_PRINTER_STAPLE; break; default : break; } } if (urf_ptr > urf_fn) urf[num_urf ++] = urf_fn; } else urf[num_urf ++] = "FN3"; /* urf-supported */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "urf-supported", num_urf, NULL, urf); if (p->pc && p->pc->templates) { const char *template; /* Finishing template */ ipp_attribute_t *fin_col_db; /* finishings-col-database attribute */ ipp_t *fin_col; /* finishings-col value */ fin_col_db = ippAddCollections(p->ppd_attrs, IPP_TAG_PRINTER, "finishings-col-database", cupsArrayCount(p->pc->templates), NULL); for (i = 0, template = (const char *)cupsArrayFirst(p->pc->templates); template; i ++, template = (const char *)cupsArrayNext(p->pc->templates)) { fin_col = ippNew(); ippAddString(fin_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "finishing-template", NULL, template); ippSetCollection(p->ppd_attrs, &fin_col_db, i, fin_col); ippDelete(fin_col); } } for (i = 0; i < ppd->num_sizes; i ++) if (ppd->sizes[i].length > 1728) p->type |= CUPS_PRINTER_LARGE; else if (ppd->sizes[i].length > 1008) p->type |= CUPS_PRINTER_MEDIUM; else p->type |= CUPS_PRINTER_SMALL; if ((ppd_attr = ppdFindAttr(ppd, "APICADriver", NULL)) != NULL && ppd_attr->value && !_cups_strcasecmp(ppd_attr->value, "true")) { if ((ppd_attr = ppdFindAttr(ppd, "APScannerOnly", NULL)) != NULL && ppd_attr->value && !_cups_strcasecmp(ppd_attr->value, "true")) p->type |= CUPS_PRINTER_SCANNER; else p->type |= CUPS_PRINTER_MFP; } /* * Scan the filters in the PPD file... */ if (p->pc) { for (filter = (const char *)cupsArrayFirst(p->pc->filters); filter; filter = (const char *)cupsArrayNext(p->pc->filters)) { if (!_cups_strncasecmp(filter, "application/vnd.cups-command", 28) && _cups_isspace(filter[28])) { p->type |= CUPS_PRINTER_COMMANDS; break; } } } if (p->type & CUPS_PRINTER_COMMANDS) { char *commands, /* Copy of commands */ *start, /* Start of name */ *end; /* End of name */ int count; /* Number of commands */ if ((ppd_attr = ppdFindAttr(ppd, "cupsCommands", NULL)) != NULL) { for (count = 0, start = ppd_attr->value; *start; count ++) { while (_cups_isspace(*start)) start ++; if (!*start) break; while (*start && !isspace(*start & 255)) start ++; } } else count = 0; if (count > 0) { /* * Make a copy of the commands string and count how many commands there * are... */ attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-commands", count, NULL, NULL); commands = strdup(ppd_attr->value); for (count = 0, start = commands; *start; count ++) { while (isspace(*start & 255)) start ++; if (!*start) break; end = start; while (*end && !isspace(*end & 255)) end ++; if (*end) *end++ = '\0'; attr->values[count].string.text = _cupsStrAlloc(start); start = end; } free(commands); } else { /* * Add the standard list of commands... */ ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-commands", (int)(sizeof(standard_commands) / sizeof(standard_commands[0])), NULL, standard_commands); } } else { /* * No commands supported... */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-commands", NULL, "none"); } /* * Show current and available port monitors for this printer... */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "port-monitor", NULL, p->port_monitor ? p->port_monitor : "none"); for (i = 1, ppd_attr = ppdFindAttr(ppd, "cupsPortMonitor", NULL); ppd_attr; i ++, ppd_attr = ppdFindNextAttr(ppd, "cupsPortMonitor", NULL)); if (ppd->protocols) { if (strstr(ppd->protocols, "TBCP")) i ++; else if (strstr(ppd->protocols, "BCP")) i ++; } attr = ippAddStrings(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_NAME, "port-monitor-supported", i, NULL, NULL); attr->values[0].string.text = _cupsStrAlloc("none"); for (i = 1, ppd_attr = ppdFindAttr(ppd, "cupsPortMonitor", NULL); ppd_attr; i ++, ppd_attr = ppdFindNextAttr(ppd, "cupsPortMonitor", NULL)) attr->values[i].string.text = _cupsStrAlloc(ppd_attr->value); if (ppd->protocols) { if (strstr(ppd->protocols, "TBCP")) attr->values[i].string.text = _cupsStrAlloc("tbcp"); else if (strstr(ppd->protocols, "BCP")) attr->values[i].string.text = _cupsStrAlloc("bcp"); } if (ppdFindAttr(ppd, "APRemoteQueueID", NULL)) p->type |= CUPS_PRINTER_REMOTE; #ifdef HAVE_APPLICATIONSERVICES_H /* * Convert the file referenced in APPrinterIconPath to a 128x128 PNG * and save it as cacheDir/printername.png */ if ((ppd_attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL && ppd_attr->value && !_cupsFileCheck(ppd_attr->value, _CUPS_FILE_CHECK_FILE, !RunUser, cupsdLogFCMessage, p)) { CGImageRef imageRef = NULL;/* Current icon image */ CGImageRef biggestIconRef = NULL; /* Biggest icon image */ CGImageRef closestTo128IconRef = NULL; /* Icon image closest to and >= 128 */ CGImageSourceRef sourceRef; /* The file's image source */ char outPath[HTTP_MAX_URI]; /* The path to the PNG file */ CFURLRef outUrl; /* The URL made from the outPath */ CFURLRef icnsFileUrl; /* The URL of the original ICNS icon file */ CGImageDestinationRef destRef; /* The image destination to write */ size_t bytesPerRow; /* The bytes per row used for resizing */ CGContextRef context; /* The CG context used for resizing */ snprintf(outPath, sizeof(outPath), "%s/%s.png", CacheDir, p->name); outUrl = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)outPath, (CFIndex)strlen(outPath), FALSE); icnsFileUrl = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)ppd_attr->value, (CFIndex)strlen(ppd_attr->value), FALSE); if (outUrl && icnsFileUrl) { sourceRef = CGImageSourceCreateWithURL(icnsFileUrl, NULL); if (sourceRef) { size_t index; const size_t count = CGImageSourceGetCount(sourceRef); for (index = 0; index < count; index ++) { imageRef = CGImageSourceCreateImageAtIndex(sourceRef, index, NULL); if (!imageRef) continue; if (CGImageGetWidth(imageRef) == CGImageGetHeight(imageRef)) { /* * Loop through remembering the icon closest to 128 but >= 128 * and then remember the largest icon. */ if (CGImageGetWidth(imageRef) >= 128 && (!closestTo128IconRef || CGImageGetWidth(imageRef) < CGImageGetWidth(closestTo128IconRef))) { CGImageRelease(closestTo128IconRef); CGImageRetain(imageRef); closestTo128IconRef = imageRef; } if (!biggestIconRef || CGImageGetWidth(imageRef) > CGImageGetWidth(biggestIconRef)) { CGImageRelease(biggestIconRef); CGImageRetain(imageRef); biggestIconRef = imageRef; } } CGImageRelease(imageRef); } if (biggestIconRef) { /* * If biggestIconRef is NULL, we found no icons. Otherwise we first * want the closest to 128, but if none are larger than 128, we want * the largest icon available. */ imageRef = closestTo128IconRef ? closestTo128IconRef : biggestIconRef; CGImageRetain(imageRef); CGImageRelease(biggestIconRef); if (closestTo128IconRef) CGImageRelease(closestTo128IconRef); destRef = CGImageDestinationCreateWithURL(outUrl, kUTTypePNG, 1, NULL); if (destRef) { if (CGImageGetWidth(imageRef) != 128) { bytesPerRow = CGImageGetBytesPerRow(imageRef) / CGImageGetWidth(imageRef) * 128; context = CGBitmapContextCreate(NULL, 128, 128, CGImageGetBitsPerComponent(imageRef), bytesPerRow, CGImageGetColorSpace(imageRef), kCGImageAlphaPremultipliedFirst); if (context) { CGContextDrawImage(context, CGRectMake(0, 0, 128, 128), imageRef); CGImageRelease(imageRef); imageRef = CGBitmapContextCreateImage(context); CGContextRelease(context); } } CGImageDestinationAddImage(destRef, imageRef, NULL); CGImageDestinationFinalize(destRef); CFRelease(destRef); } CGImageRelease(imageRef); } CFRelease(sourceRef); } } if (outUrl) CFRelease(outUrl); if (icnsFileUrl) CFRelease(icnsFileUrl); } #endif /* HAVE_APPLICATIONSERVICES_H */ /* * Close the PPD and set the type... */ ppdClose(ppd); } else if (!access(ppd_name, 0)) { int pline; /* PPD line number */ ppd_status_t pstatus; /* PPD load status */ pstatus = ppdLastError(&pline); cupsdLogMessage(CUPSD_LOG_ERROR, "PPD file for %s cannot be loaded.", p->name); if (pstatus <= PPD_ALLOC_ERROR) cupsdLogMessage(CUPSD_LOG_ERROR, "%s: %s", ppd_name, strerror(errno)); else cupsdLogMessage(CUPSD_LOG_ERROR, "%s on line %d of %s.", ppdErrorString(pstatus), pline, ppd_name); cupsdLogMessage(CUPSD_LOG_INFO, "Hint: Run \"cupstestppd %s\" and fix any errors.", ppd_name); } else { if (((!strncmp(p->device_uri, "ipp://", 6) || !strncmp(p->device_uri, "ipps://", 7)) && (strstr(p->device_uri, "/printers/") != NULL || strstr(p->device_uri, "/classes/") != NULL)) || ((strstr(p->device_uri, "._ipp.") != NULL || strstr(p->device_uri, "._ipps.") != NULL) && !strcmp(p->device_uri + strlen(p->device_uri) - 5, "/cups"))) { /* * Tell the client this is really a hard-wired remote printer. */ p->type |= CUPS_PRINTER_REMOTE; /* * Then set the make-and-model accordingly... */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, "Remote Printer"); /* * Print all files directly... */ p->raw = 1; p->remote = 1; } else { /* * Otherwise we have neither - treat this as a "dumb" printer * with no PPD file... */ ippAddString(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-make-and-model", NULL, "Local Raw Printer"); p->raw = 1; } } ippAddIntegers(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-supported", num_finishings, finishings); ippAddInteger(p->ppd_attrs, IPP_TAG_PRINTER, IPP_TAG_ENUM, "finishings-default", IPP_FINISHINGS_NONE); if (ppd && p->pc) { /* * Save cached PPD attributes to disk... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "load_ppd: Saving %s...", cache_name); _ppdCacheWriteFile(p->pc, cache_name, p->ppd_attrs); } else { /* * Remove cache files... */ if (cache_info.st_mtime) unlink(cache_name); } } /* * 'new_media_col()' - Create a media-col collection value. */ static ipp_t * /* O - Collection value */ new_media_col(pwg_size_t *size) /* I - media-size/margin values */ { ipp_t *media_col, /* Collection value */ *media_size; /* media-size value */ media_col = ippNew(); media_size = ippNew(); ippAddInteger(media_size, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "x-dimension", size->width); ippAddInteger(media_size, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "y-dimension", size->length); ippAddCollection(media_col, IPP_TAG_PRINTER, "media-size", media_size); ippDelete(media_size); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-bottom-margin", size->bottom); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-left-margin", size->left); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-right-margin", size->right); ippAddInteger(media_col, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "media-top-margin", size->top); return (media_col); } /* * 'write_xml_string()' - Write a string with XML escaping. */ static void write_xml_string(cups_file_t *fp, /* I - File to write to */ const char *s) /* I - String to write */ { const char *start; /* Start of current sequence */ if (!s) return; for (start = s; *s; s ++) { if (*s == '&') { if (s > start) cupsFileWrite(fp, start, (size_t)(s - start)); cupsFilePuts(fp, "&"); start = s + 1; } else if (*s == '<') { if (s > start) cupsFileWrite(fp, start, (size_t)(s - start)); cupsFilePuts(fp, "<"); start = s + 1; } } if (s > start) cupsFilePuts(fp, start); } cups-2.4.7/scheduler/policy.h0000644000175000017500000000265414502571342016016 0ustar zdohnalzdohnal/* * Policy definitions for the CUPS scheduler. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Policy structure... */ typedef struct { char *name; /* Policy name */ cups_array_t *job_access, /* Private users/groups for jobs */ *job_attrs, /* Private attributes for jobs */ *sub_access, /* Private users/groups for subscriptions */ *sub_attrs, /* Private attributes for subscriptions */ *ops; /* Operations */ } cupsd_policy_t; typedef struct cupsd_printer_s cupsd_printer_t; /* * Globals... */ VAR cups_array_t *Policies VALUE(NULL); /* Policies */ /* * Prototypes... */ extern cupsd_policy_t *cupsdAddPolicy(const char *policy); extern cupsd_location_t *cupsdAddPolicyOp(cupsd_policy_t *p, cupsd_location_t *po, ipp_op_t op); extern http_status_t cupsdCheckPolicy(cupsd_policy_t *p, cupsd_client_t *con, const char *owner); extern void cupsdDeleteAllPolicies(void); extern cupsd_policy_t *cupsdFindPolicy(const char *policy); extern cupsd_location_t *cupsdFindPolicyOp(cupsd_policy_t *p, ipp_op_t op); extern cups_array_t *cupsdGetPrivateAttrs(cupsd_policy_t *p, cupsd_client_t *con, cupsd_printer_t *printer, const char *owner); cups-2.4.7/scheduler/policy.c0000644000175000017500000002546514502571342016016 0ustar zdohnalzdohnal/* * Policy routines for the CUPS scheduler. * * Copyright 2007-2011, 2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" #include /* * Local functions... */ static int compare_ops(cupsd_location_t *a, cupsd_location_t *b); static int compare_policies(cupsd_policy_t *a, cupsd_policy_t *b); static void free_policy(cupsd_policy_t *p); static int hash_op(cupsd_location_t *op); /* * 'cupsdAddPolicy()' - Add a policy to the system. */ cupsd_policy_t * /* O - Policy */ cupsdAddPolicy(const char *policy) /* I - Name of policy */ { cupsd_policy_t *temp; /* Pointer to policy */ if (!policy) return (NULL); if (!Policies) Policies = cupsArrayNew3((cups_array_func_t)compare_policies, NULL, (cups_ahash_func_t)NULL, 0, (cups_acopy_func_t)NULL, (cups_afree_func_t)free_policy); if (!Policies) return (NULL); if ((temp = calloc(1, sizeof(cupsd_policy_t))) != NULL) { cupsdSetString(&temp->name, policy); cupsArrayAdd(Policies, temp); } return (temp); } /* * 'cupsdAddPolicyOp()' - Add an operation to a policy. */ cupsd_location_t * /* O - New policy operation */ cupsdAddPolicyOp(cupsd_policy_t *p, /* I - Policy */ cupsd_location_t *po, /* I - Policy operation to copy */ ipp_op_t op) /* I - IPP operation code */ { cupsd_location_t *temp; /* New policy operation */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddPolicyOp(p=%p, po=%p, op=%x(%s))", p, po, op, ippOpString(op)); if (!p) return (NULL); if (!p->ops) p->ops = cupsArrayNew3((cups_array_func_t)compare_ops, NULL, (cups_ahash_func_t)hash_op, 128, (cups_acopy_func_t)NULL, (cups_afree_func_t)cupsdFreeLocation); if (!p->ops) return (NULL); if ((temp = cupsdCopyLocation(po)) != NULL) { temp->op = op; temp->limit = CUPSD_AUTH_LIMIT_IPP; cupsArrayAdd(p->ops, temp); } return (temp); } /* * 'cupsdCheckPolicy()' - Check the IPP operation and username against a policy. */ http_status_t /* I - 1 if OK, 0 otherwise */ cupsdCheckPolicy(cupsd_policy_t *p, /* I - Policy */ cupsd_client_t *con, /* I - Client connection */ const char *owner) /* I - Owner of object */ { cupsd_location_t *po; /* Current policy operation */ /* * Range check... */ if (!p || !con) { cupsdLogMessage(CUPSD_LOG_CRIT, "cupsdCheckPolicy: p=%p, con=%p.", p, con); return (HTTP_STATUS_SERVER_ERROR); } /* * Find a match for the operation... */ if ((po = cupsdFindPolicyOp(p, con->request->request.op.operation_id)) == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCheckPolicy: No matching operation, returning 0."); return (HTTP_STATUS_OK); } con->best = po; /* * Return the status of the check... */ return (cupsdIsAuthorized(con, owner)); } /* * 'cupsdDeleteAllPolicies()' - Delete all policies in memory. */ void cupsdDeleteAllPolicies(void) { cupsd_printer_t *printer; /* Current printer */ if (!Policies) return; /* * First clear the policy pointers for all printers... */ for (printer = (cupsd_printer_t *)cupsArrayFirst(Printers); printer; printer = (cupsd_printer_t *)cupsArrayNext(Printers)) printer->op_policy_ptr = NULL; DefaultPolicyPtr = NULL; /* * Then free all of the policies... */ cupsArrayDelete(Policies); Policies = NULL; } /* * 'cupsdFindPolicy()' - Find a named policy. */ cupsd_policy_t * /* O - Policy */ cupsdFindPolicy(const char *policy) /* I - Name of policy */ { cupsd_policy_t key; /* Search key */ /* * Range check... */ if (!policy) return (NULL); /* * Look it up... */ key.name = (char *)policy; return ((cupsd_policy_t *)cupsArrayFind(Policies, &key)); } /* * 'cupsdFindPolicyOp()' - Find a policy operation. */ cupsd_location_t * /* O - Policy operation */ cupsdFindPolicyOp(cupsd_policy_t *p, /* I - Policy */ ipp_op_t op) /* I - IPP operation */ { cupsd_location_t key, /* Search key... */ *po; /* Current policy operation */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindPolicyOp(p=%p, op=%x(%s))", p, op, ippOpString(op)); /* * Range check... */ if (!p) return (NULL); /* * Check the operation against the available policies... */ key.op = op; if ((po = (cupsd_location_t *)cupsArrayFind(p->ops, &key)) != NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindPolicyOp: Found exact match..."); return (po); } key.op = IPP_ANY_OPERATION; if ((po = (cupsd_location_t *)cupsArrayFind(p->ops, &key)) != NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindPolicyOp: Found wildcard match..."); return (po); } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindPolicyOp: No match found."); return (NULL); } /* * 'cupsdGetPrivateAttrs()' - Get the private attributes for the current * request. */ cups_array_t * /* O - Array or NULL for no restrictions */ cupsdGetPrivateAttrs( cupsd_policy_t *policy, /* I - Policy */ cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *printer, /* I - Printer, if any */ const char *owner) /* I - Owner of object */ { char *name; /* Current name in access list */ cups_array_t *access_ptr, /* Access array */ *attrs_ptr; /* Attributes array */ const char *username; /* Username associated with request */ ipp_attribute_t *attr; /* Attribute from request */ struct passwd *pw; /* User info */ #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs(policy=%p(%s), con=%p(%d), " "printer=%p(%s), owner=\"%s\")", policy, policy ? policy->name : "", con, con->number, printer, printer ? printer->name : "", owner); #endif /* DEBUG */ if (!policy) { cupsdLogMessage(CUPSD_LOG_CRIT, "cupsdGetPrivateAttrs: policy=%p, con=%p, printer=%p, owner=\"%s\", DefaultPolicyPtr=%p: This should never happen, please report a bug.", policy, con, printer, owner, DefaultPolicyPtr); policy = DefaultPolicyPtr; } /* * Get the access and attributes lists that correspond to the request... */ #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: %s", ippOpString(con->request->request.op.operation_id)); #endif /* DEBUG */ switch (con->request->request.op.operation_id) { case IPP_GET_SUBSCRIPTIONS : case IPP_GET_SUBSCRIPTION_ATTRIBUTES : case IPP_GET_NOTIFICATIONS : access_ptr = policy->sub_access; attrs_ptr = policy->sub_attrs; break; default : access_ptr = policy->job_access; attrs_ptr = policy->job_attrs; break; } /* * If none of the attributes are private, return NULL now... */ if ((name = (char *)cupsArrayFirst(attrs_ptr)) != NULL && !_cups_strcasecmp(name, "none")) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning NULL."); #endif /* DEBUG */ return (NULL); } /* * Otherwise check the user against the access list... */ if (con->username[0]) username = con->username; else if ((attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) username = attr->values[0].string.text; else username = "anonymous"; if (username[0]) { pw = getpwnam(username); endpwent(); } else pw = NULL; #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: username=\"%s\"", username); #endif /* DEBUG */ /* * Otherwise check the user against the access list... */ for (name = (char *)cupsArrayFirst(access_ptr); name; name = (char *)cupsArrayNext(access_ptr)) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: name=%s", name); #endif /* DEBUG */ if (printer && !_cups_strcasecmp(name, "@ACL")) { char *acl; /* Current ACL user/group */ for (acl = (char *)cupsArrayFirst(printer->users); acl; acl = (char *)cupsArrayNext(printer->users)) { if (acl[0] == '@') { /* * Check group membership... */ if (cupsdCheckGroup(username, pw, acl + 1)) break; } else if (acl[0] == '#') { /* * Check UUID... */ if (cupsdCheckGroup(username, pw, acl)) break; } else if (!_cups_strcasecmp(username, acl)) break; } } else if (owner && !_cups_strcasecmp(name, "@OWNER") && !_cups_strcasecmp(username, owner)) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning NULL."); #endif /* DEBUG */ return (NULL); } else if (!_cups_strcasecmp(name, "@SYSTEM")) { int i; /* Looping var */ for (i = 0; i < NumSystemGroups; i ++) if (cupsdCheckGroup(username, pw, SystemGroups[i])) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning NULL."); #endif /* DEBUG */ return (NULL); } } else if (name[0] == '@') { if (cupsdCheckGroup(username, pw, name + 1)) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning NULL."); #endif /* DEBUG */ return (NULL); } } else if (!_cups_strcasecmp(username, name)) { #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning NULL."); #endif /* DEBUG */ return (NULL); } } /* * No direct access, so return private attributes list... */ #ifdef DEBUG cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdGetPrivateAttrs: Returning list."); #endif /* DEBUG */ return (attrs_ptr); } /* * 'compare_ops()' - Compare two operations. */ static int /* O - Result of comparison */ compare_ops(cupsd_location_t *a, /* I - First operation */ cupsd_location_t *b) /* I - Second operation */ { return (a->op - b->op); } /* * 'compare_policies()' - Compare two policies. */ static int /* O - Result of comparison */ compare_policies(cupsd_policy_t *a, /* I - First policy */ cupsd_policy_t *b) /* I - Second policy */ { return (_cups_strcasecmp(a->name, b->name)); } /* * 'free_policy()' - Free the memory used by a policy. */ static void free_policy(cupsd_policy_t *p) /* I - Policy to free */ { cupsArrayDelete(p->job_access); cupsArrayDelete(p->job_attrs); cupsArrayDelete(p->sub_access); cupsArrayDelete(p->sub_attrs); cupsArrayDelete(p->ops); cupsdClearString(&p->name); free(p); } /* * 'hash_op()' - Generate a lookup hash for the operation. */ static int /* O - Hash value */ hash_op(cupsd_location_t *op) /* I - Operation */ { return (((op->op >> 6) & 0x40) | (op->op & 0x3f)); } cups-2.4.7/scheduler/org.cups.cupsd.plist0000644000175000017500000000226114502571342020272 0ustar zdohnalzdohnal Label org.cups.cupsd ProcessType Interactive EnableTransactions TransactionTimeLimitEnabled ExitTimeOut 60 KeepAlive PathState /private/var/spool/cups/cache/org.cups.cupsd ProgramArguments /usr/sbin/cupsd -l EnvironmentVariables CUPS_DEBUG_LOG /var/log/cups/debug_log CUPS_DEBUG_LEVEL 3 CUPS_DEBUG_FILTER ^(cupsDo|cupsGet|cupsMake|cupsSet|http|_http|ipp|_ipp|mime).* Sockets Listeners SockPathMode 49663 SockPathName /private/var/run/cupsd cups-2.4.7/scheduler/org.cups.cups-lpd.plist.in0000644000175000017500000000161714502571342021314 0ustar zdohnalzdohnal Disabled Label org.cups.cups-lpd ProcessType Adaptive EnableTransactions EnablePressuredExit ProgramArguments /usr/libexec/cups/daemon/cups-lpd -o document-format=application/octet-stream Sockets Listeners SockServiceName printer SockType stream UserName @CUPS_USER@ inetdCompatibility Wait cups-2.4.7/scheduler/network.h0000644000175000017500000000202014502571342016173 0ustar zdohnalzdohnal/* * Network interface definitions for the CUPS scheduler. * * Copyright © 2007-2010 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Structures... */ typedef struct cupsd_netif_s /**** Network interface data ****/ { int is_local, /* Local (not point-to-point) interface? */ port; /* Listen port */ http_addr_t address, /* Network address */ mask, /* Network mask */ broadcast; /* Broadcast address */ size_t hostlen; /* Length of hostname */ char name[32], /* Network interface name */ hostname[1]; /* Hostname associated with interface */ } cupsd_netif_t; /* * Globals... */ VAR int NetIFUpdate VALUE(1); /* Network interface list needs updating */ VAR cups_array_t *NetIFList VALUE(NULL); /* Array of network interfaces */ /* * Prototypes... */ extern cupsd_netif_t *cupsdNetIFFind(const char *name); extern void cupsdNetIFUpdate(void); cups-2.4.7/scheduler/network.c0000644000175000017500000001566214502571342016206 0ustar zdohnalzdohnal/* * Network interface functions for the CUPS scheduler. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include #include "cupsd.h" #include /* * Local functions... */ static void cupsdNetIFFree(void); static int compare_netif(cupsd_netif_t *a, cupsd_netif_t *b); /* * 'cupsdNetIFFind()' - Find a network interface. */ cupsd_netif_t * /* O - Network interface data */ cupsdNetIFFind(const char *name) /* I - Name of interface */ { cupsd_netif_t key; /* Search key */ /* * Update the interface list as needed... */ if (NetIFUpdate) cupsdNetIFUpdate(); /* * Search for the named interface... */ strlcpy(key.name, name, sizeof(key.name)); return ((cupsd_netif_t *)cupsArrayFind(NetIFList, &key)); } /* * 'cupsdNetIFFree()' - Free the current network interface list. */ static void cupsdNetIFFree(void) { cupsd_netif_t *current; /* Current interface in array */ /* * Loop through the interface list and free all the records... */ for (current = (cupsd_netif_t *)cupsArrayFirst(NetIFList); current; current = (cupsd_netif_t *)cupsArrayNext(NetIFList)) { cupsArrayRemove(NetIFList, current); free(current); } } /* * 'cupsdNetIFUpdate()' - Update the network interface list as needed... */ void cupsdNetIFUpdate(void) { int match; /* Matching address? */ cupsd_listener_t *lis; /* Listen address */ cupsd_netif_t *temp; /* New interface */ struct ifaddrs *addrs, /* Interface address list */ *addr; /* Current interface address */ char hostname[1024]; /* Hostname for address */ size_t hostlen; /* Length of hostname */ /* * Only update the list if we need to... */ if (!NetIFUpdate) return; NetIFUpdate = 0; /* * Free the old interfaces... */ cupsdNetIFFree(); /* * Make sure we have an array... */ if (!NetIFList) NetIFList = cupsArrayNew((cups_array_func_t)compare_netif, NULL); if (!NetIFList) return; /* * Grab a new list of interfaces... */ if (getifaddrs(&addrs) < 0) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdNetIFUpdate: Unable to get interface list - %s", strerror(errno)); return; } for (addr = addrs; addr != NULL; addr = addr->ifa_next) { /* * See if this interface address is IPv4 or IPv6... */ if (addr->ifa_addr == NULL || (addr->ifa_addr->sa_family != AF_INET #ifdef AF_INET6 && addr->ifa_addr->sa_family != AF_INET6 #endif ) || addr->ifa_netmask == NULL || addr->ifa_name == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdNetIFUpdate: Ignoring \"%s\".", addr->ifa_name); continue; } /* * Try looking up the hostname for the address as needed... */ if (HostNameLookups) httpAddrLookup((http_addr_t *)(addr->ifa_addr), hostname, sizeof(hostname)); else { /* * Map the default server address and localhost to the server name * and localhost, respectively; for all other addresses, use the * numeric address... */ if (httpAddrLocalhost((http_addr_t *)(addr->ifa_addr))) strlcpy(hostname, "localhost", sizeof(hostname)); else httpAddrString((http_addr_t *)(addr->ifa_addr), hostname, sizeof(hostname)); } /* * Create a new address element... */ hostlen = strlen(hostname); if ((temp = calloc(1, sizeof(cupsd_netif_t) + hostlen)) == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdNetIFUpdate: Unable to allocate memory for interface."); break; } /* * Copy all of the information... */ strlcpy(temp->name, addr->ifa_name, sizeof(temp->name)); temp->hostlen = hostlen; memcpy(temp->hostname, hostname, hostlen + 1); if (addr->ifa_addr->sa_family == AF_INET) { /* * Copy IPv4 addresses... */ memcpy(&(temp->address), addr->ifa_addr, sizeof(struct sockaddr_in)); memcpy(&(temp->mask), addr->ifa_netmask, sizeof(struct sockaddr_in)); if (addr->ifa_dstaddr) memcpy(&(temp->broadcast), addr->ifa_dstaddr, sizeof(struct sockaddr_in)); } #ifdef AF_INET6 else { /* * Copy IPv6 addresses... */ memcpy(&(temp->address), addr->ifa_addr, sizeof(struct sockaddr_in6)); memcpy(&(temp->mask), addr->ifa_netmask, sizeof(struct sockaddr_in6)); if (addr->ifa_dstaddr) memcpy(&(temp->broadcast), addr->ifa_dstaddr, sizeof(struct sockaddr_in6)); } #endif /* AF_INET6 */ if (!(addr->ifa_flags & IFF_POINTOPOINT) && !httpAddrLocalhost(&(temp->address))) temp->is_local = 1; /* * Determine which port to use when advertising printers... */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { match = 0; if (httpAddrAny(&(lis->address))) match = 1; else if (addr->ifa_addr->sa_family == AF_INET && lis->address.addr.sa_family == AF_INET && (lis->address.ipv4.sin_addr.s_addr & temp->mask.ipv4.sin_addr.s_addr) == (temp->address.ipv4.sin_addr.s_addr & temp->mask.ipv4.sin_addr.s_addr)) match = 1; #ifdef AF_INET6 else if (addr->ifa_addr->sa_family == AF_INET6 && lis->address.addr.sa_family == AF_INET6 && (lis->address.ipv6.sin6_addr.s6_addr[0] & temp->mask.ipv6.sin6_addr.s6_addr[0]) == (temp->address.ipv6.sin6_addr.s6_addr[0] & temp->mask.ipv6.sin6_addr.s6_addr[0]) && (lis->address.ipv6.sin6_addr.s6_addr[1] & temp->mask.ipv6.sin6_addr.s6_addr[1]) == (temp->address.ipv6.sin6_addr.s6_addr[1] & temp->mask.ipv6.sin6_addr.s6_addr[1]) && (lis->address.ipv6.sin6_addr.s6_addr[2] & temp->mask.ipv6.sin6_addr.s6_addr[2]) == (temp->address.ipv6.sin6_addr.s6_addr[2] & temp->mask.ipv6.sin6_addr.s6_addr[2]) && (lis->address.ipv6.sin6_addr.s6_addr[3] & temp->mask.ipv6.sin6_addr.s6_addr[3]) == (temp->address.ipv6.sin6_addr.s6_addr[3] & temp->mask.ipv6.sin6_addr.s6_addr[3])) match = 1; #endif /* AF_INET6 */ if (match) { temp->port = httpAddrPort(&(lis->address)); break; } } /* * Add it to the array... */ cupsArrayAdd(NetIFList, temp); cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdNetIFUpdate: \"%s\" = %s:%d", temp->name, temp->hostname, temp->port); } freeifaddrs(addrs); } /* * 'compare_netif()' - Compare two network interfaces. */ static int /* O - Result of comparison */ compare_netif(cupsd_netif_t *a, /* I - First network interface */ cupsd_netif_t *b) /* I - Second network interface */ { return (strcmp(a->name, b->name)); } cups-2.4.7/scheduler/mime.h0000644000175000017500000001234314502571342015442 0ustar zdohnalzdohnal/* * MIME type/conversion database definitions for CUPS. * * Copyright 2007-2013 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_MIME_H_ # define _CUPS_MIME_H_ # include # include # include # include # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define MIME_MAX_SUPER 16 /* Maximum size of supertype name */ # define MIME_MAX_TYPE IPP_MAX_NAME /* Maximum size of type name */ # define MIME_MAX_FILTER 256 /* Maximum size of filter pathname */ # define MIME_MAX_BUFFER 4096 /* Maximum size of file buffer */ /* * Types/structures... */ typedef enum { MIME_MAGIC_NOP, /* No operation */ MIME_MAGIC_AND, /* Logical AND of all children */ MIME_MAGIC_OR, /* Logical OR of all children */ MIME_MAGIC_MATCH, /* Filename match */ MIME_MAGIC_ASCII, /* ASCII characters in range */ MIME_MAGIC_PRINTABLE, /* Printable characters (32-255) in range */ MIME_MAGIC_STRING, /* String matches */ MIME_MAGIC_CHAR, /* Character/byte matches */ MIME_MAGIC_SHORT, /* Short/16-bit word matches */ MIME_MAGIC_INT, /* Integer/32-bit word matches */ MIME_MAGIC_LOCALE, /* Current locale matches string */ MIME_MAGIC_CONTAINS, /* File contains a string */ MIME_MAGIC_ISTRING, /* Case-insensitive string matches */ MIME_MAGIC_REGEX /* Regular expression matches */ } mime_op_t; typedef struct _mime_magic_s /**** MIME Magic Data ****/ { struct _mime_magic_s *prev, /* Previous rule */ *next, /* Next rule */ *parent, /* Parent rules */ *child; /* Child rules */ short op, /* Operation code (see above) */ invert; /* Invert the result */ int offset, /* Offset in file */ region, /* Region length */ length; /* Length of data */ union { char matchv[64]; /* Match value */ char localev[64]; /* Locale value */ char stringv[64]; /* String value */ unsigned char charv; /* Byte value */ unsigned short shortv; /* Short value */ unsigned intv; /* Integer value */ regex_t rev; /* Regular expression value */ } value; } mime_magic_t; typedef struct _mime_type_s /**** MIME Type Data ****/ { mime_magic_t *rules; /* Rules used to detect this type */ int priority; /* Priority of this type */ char super[MIME_MAX_SUPER], /* Super-type name ("image", "application", etc.) */ type[MIME_MAX_TYPE]; /* Type name ("png", "postscript", etc.) */ } mime_type_t; typedef struct _mime_filter_s /**** MIME Conversion Filter Data ****/ { mime_type_t *src, /* Source type */ *dst; /* Destination type */ int cost; /* Relative cost */ char filter[MIME_MAX_FILTER];/* Filter program to use */ size_t maxsize; /* Maximum file size for this filter */ } mime_filter_t; typedef void (*mime_error_cb_t)(void *ctx, const char *message); typedef struct _mime_s /**** MIME Database ****/ { cups_array_t *types; /* File types */ cups_array_t *filters; /* Type conversion filters */ cups_array_t *srcs; /* Filters sorted by source type */ mime_error_cb_t error_cb; /* Error message callback */ void *error_ctx; /* Pointer for callback */ _cups_rwlock_t lock; /* Read/write lock for guarding data for background updates */ } mime_t; /* * Functions... */ extern void mimeDelete(mime_t *mime); extern mime_t *mimeNew(void) _CUPS_API_1_5; extern mime_t *mimeLoad(const char *pathname, const char *filterpath); extern mime_t *mimeLoadFilters(mime_t *mime, const char *pathname, const char *filterpath); extern mime_t *mimeLoadTypes(mime_t *mime, const char *pathname); extern mime_type_t *mimeAddType(mime_t *mime, const char *super, const char *type); extern int mimeAddTypeRule(mime_type_t *mt, const char *rule); extern void mimeDeleteType(mime_t *mime, mime_type_t *mt); extern mime_type_t *mimeFileType(mime_t *mime, const char *pathname, const char *filename, int *compression); extern mime_type_t *mimeFirstType(mime_t *mime); extern mime_type_t *mimeNextType(mime_t *mime); extern int mimeNumTypes(mime_t *mime); extern mime_type_t *mimeType(mime_t *mime, const char *super, const char *type); extern mime_filter_t *mimeAddFilter(mime_t *mime, mime_type_t *src, mime_type_t *dst, int cost, const char *filter); extern void mimeDeleteFilter(mime_t *mime, mime_filter_t *filter); extern cups_array_t *mimeFilter(mime_t *mime, mime_type_t *src, mime_type_t *dst, int *cost); extern cups_array_t *mimeFilter2(mime_t *mime, mime_type_t *src, size_t srcsize, mime_type_t *dst, int *cost); extern mime_filter_t *mimeFilterLookup(mime_t *mime, mime_type_t *src, mime_type_t *dst); extern mime_filter_t *mimeFirstFilter(mime_t *mime); extern mime_filter_t *mimeNextFilter(mime_t *mime); extern int mimeNumFilters(mime_t *mime); extern void mimeSetErrorCallback(mime_t *mime, mime_error_cb_t cb, void *context) _CUPS_API_1_5; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_MIME_H_ */ cups-2.4.7/scheduler/mime.c0000644000175000017500000005255214502571342015443 0ustar zdohnalzdohnal/* * MIME database file routines for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include "mime-private.h" /* * Debug macros that used to be private API... */ #define DEBUG_puts(x) #define DEBUG_printf(...) /* * Local types... */ typedef struct _mime_fcache_s /**** Filter cache structure ****/ { char *name, /* Filter name */ *path; /* Full path to filter if available */ } _mime_fcache_t; /* * Local functions... */ static const char *mime_add_fcache(cups_array_t *filtercache, const char *name, const char *filterpath); static int mime_compare_fcache(_mime_fcache_t *a, _mime_fcache_t *b); static void mime_delete_fcache(cups_array_t *filtercache); static void mime_delete_rules(mime_magic_t *rules); static void mime_load_convs(mime_t *mime, const char *filename, const char *filterpath, cups_array_t *filtercache); static void mime_load_types(mime_t *mime, const char *filename); /* * 'mimeDelete()' - Delete (free) a MIME database. */ void mimeDelete(mime_t *mime) /* I - MIME database */ { mime_type_t *type; /* Current type */ mime_filter_t *filter; /* Current filter */ DEBUG_printf(("mimeDelete(mime=%p)", mime)); if (!mime) return; /* * Loop through filters and free them... */ for (filter = (mime_filter_t *)cupsArrayFirst(mime->filters); filter; filter = (mime_filter_t *)cupsArrayNext(mime->filters)) mimeDeleteFilter(mime, filter); /* * Loop through the file types and delete any rules... */ for (type = (mime_type_t *)cupsArrayFirst(mime->types); type; type = (mime_type_t *)cupsArrayNext(mime->types)) mimeDeleteType(mime, type); /* * Free the types and filters arrays, and then the MIME database structure. */ cupsArrayDelete(mime->types); cupsArrayDelete(mime->filters); cupsArrayDelete(mime->srcs); free(mime); } /* * 'mimeDeleteFilter()' - Delete a filter from the MIME database. */ void mimeDeleteFilter(mime_t *mime, /* I - MIME database */ mime_filter_t *filter) /* I - Filter */ { DEBUG_printf(("mimeDeleteFilter(mime=%p, filter=%p(%s/%s->%s/%s, cost=%d, " "maxsize=" CUPS_LLFMT "))", mime, filter, filter ? filter->src->super : "???", filter ? filter->src->type : "???", filter ? filter->dst->super : "???", filter ? filter->dst->super : "???", filter ? filter->cost : -1, filter ? CUPS_LLCAST filter->maxsize : CUPS_LLCAST -1)); if (!mime || !filter) return; #ifdef DEBUG if (!cupsArrayFind(mime->filters, filter)) DEBUG_puts("1mimeDeleteFilter: Filter not in MIME database."); #endif /* DEBUG */ cupsArrayRemove(mime->filters, filter); free(filter); /* * Deleting a filter invalidates the source lookup cache used by * mimeFilter()... */ if (mime->srcs) { DEBUG_puts("1mimeDeleteFilter: Deleting source lookup cache."); cupsArrayDelete(mime->srcs); mime->srcs = NULL; } } /* * 'mimeDeleteType()' - Delete a type from the MIME database. */ void mimeDeleteType(mime_t *mime, /* I - MIME database */ mime_type_t *mt) /* I - Type */ { DEBUG_printf(("mimeDeleteType(mime=%p, mt=%p(%s/%s))", mime, mt, mt ? mt->super : "???", mt ? mt->type : "???")); if (!mime || !mt) return; #ifdef DEBUG if (!cupsArrayFind(mime->types, mt)) DEBUG_puts("1mimeDeleteFilter: Type not in MIME database."); #endif /* DEBUG */ cupsArrayRemove(mime->types, mt); mime_delete_rules(mt->rules); free(mt); } /* * '_mimeError()' - Show an error message. */ void _mimeError(mime_t *mime, /* I - MIME database */ const char *message, /* I - Printf-style message string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Argument pointer */ char buffer[8192]; /* Message buffer */ if (mime->error_cb) { va_start(ap, message); vsnprintf(buffer, sizeof(buffer), message, ap); va_end(ap); (*mime->error_cb)(mime->error_ctx, buffer); } } /* * 'mimeFirstFilter()' - Get the first filter in the MIME database. */ mime_filter_t * /* O - Filter or NULL */ mimeFirstFilter(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("6mimeFirstFilter(mime=%p)", mime)); if (!mime) { DEBUG_puts("7mimeFirstFilter: Returning NULL."); return (NULL); } else { mime_filter_t *first = (mime_filter_t *)cupsArrayFirst(mime->filters); /* First filter */ DEBUG_printf(("7mimeFirstFilter: Returning %p.", first)); return (first); } } /* * 'mimeFirstType()' - Get the first type in the MIME database. */ mime_type_t * /* O - Type or NULL */ mimeFirstType(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("6mimeFirstType(mime=%p)", mime)); if (!mime) { DEBUG_puts("7mimeFirstType: Returning NULL."); return (NULL); } else { mime_type_t *first = (mime_type_t *)cupsArrayFirst(mime->types); /* First type */ DEBUG_printf(("7mimeFirstType: Returning %p.", first)); return (first); } } /* * 'mimeLoad()' - Create a new MIME database from disk. * * This function uses @link mimeLoadFilters@ and @link mimeLoadTypes@ to * create a MIME database from a single directory. */ mime_t * /* O - New MIME database */ mimeLoad(const char *pathname, /* I - Directory to load */ const char *filterpath) /* I - Directory to load */ { mime_t *mime; /* New MIME database */ DEBUG_printf(("mimeLoad(pathname=\"%s\", filterpath=\"%s\")", pathname, filterpath)); mime = mimeLoadFilters(mimeLoadTypes(NULL, pathname), pathname, filterpath); DEBUG_printf(("1mimeLoad: Returning %p.", mime)); return (mime); } /* * 'mimeLoadFilters()' - Load filter definitions from disk. * * This function loads all of the .convs files from the specified directory. * Use @link mimeLoadTypes@ to load all types before you load the filters. */ mime_t * /* O - MIME database */ mimeLoadFilters(mime_t *mime, /* I - MIME database */ const char *pathname, /* I - Directory to load from */ const char *filterpath) /* I - Default filter program directory */ { cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ char filename[1024]; /* Full filename of .convs file */ cups_array_t *filtercache; /* Filter cache */ DEBUG_printf(("mimeLoadFilters(mime=%p, pathname=\"%s\", filterpath=\"%s\")", mime, pathname, filterpath)); /* * Range check input... */ if (!mime || !pathname || !filterpath) { DEBUG_puts("1mimeLoadFilters: Bad arguments."); return (mime); } /* * Then open the directory specified by pathname... */ if ((dir = cupsDirOpen(pathname)) == NULL) { DEBUG_printf(("1mimeLoadFilters: Unable to open \"%s\": %s", pathname, strerror(errno))); _mimeError(mime, "Unable to open \"%s\": %s", pathname, strerror(errno)); return (mime); } /* * Read all the .convs files... */ filtercache = cupsArrayNew((cups_array_func_t)mime_compare_fcache, NULL); while ((dent = cupsDirRead(dir)) != NULL) { if (strlen(dent->filename) > 6 && !strcmp(dent->filename + strlen(dent->filename) - 6, ".convs")) { /* * Load a mime.convs file... */ snprintf(filename, sizeof(filename), "%s/%s", pathname, dent->filename); DEBUG_printf(("1mimeLoadFilters: Loading \"%s\".", filename)); mime_load_convs(mime, filename, filterpath, filtercache); } } mime_delete_fcache(filtercache); cupsDirClose(dir); return (mime); } /* * 'mimeLoadTypes()' - Load type definitions from disk. * * This function loads all of the .types files from the specified directory. * Use @link mimeLoadFilters@ to load all filters after you load the types. */ mime_t * /* O - MIME database */ mimeLoadTypes(mime_t *mime, /* I - MIME database or @code NULL@ to create a new one */ const char *pathname) /* I - Directory to load from */ { cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ char filename[1024]; /* Full filename of .types file */ DEBUG_printf(("mimeLoadTypes(mime=%p, pathname=\"%s\")", mime, pathname)); /* * First open the directory specified by pathname... */ if ((dir = cupsDirOpen(pathname)) == NULL) { DEBUG_printf(("1mimeLoadTypes: Unable to open \"%s\": %s", pathname, strerror(errno))); DEBUG_printf(("1mimeLoadTypes: Returning %p.", mime)); _mimeError(mime, "Unable to open \"%s\": %s", pathname, strerror(errno)); return (mime); } /* * If "mime" is NULL, make a new, empty database... */ if (!mime) mime = mimeNew(); if (!mime) { cupsDirClose(dir); DEBUG_puts("1mimeLoadTypes: Returning NULL."); return (NULL); } /* * Read all the .types files... */ while ((dent = cupsDirRead(dir)) != NULL) { if (strlen(dent->filename) > 6 && !strcmp(dent->filename + strlen(dent->filename) - 6, ".types")) { /* * Load a mime.types file... */ snprintf(filename, sizeof(filename), "%s/%s", pathname, dent->filename); DEBUG_printf(("1mimeLoadTypes: Loading \"%s\".", filename)); mime_load_types(mime, filename); } } cupsDirClose(dir); DEBUG_printf(("1mimeLoadTypes: Returning %p.", mime)); return (mime); } /* * 'mimeNew()' - Create a new, empty MIME database. */ mime_t * /* O - MIME database */ mimeNew(void) { return ((mime_t *)calloc(1, sizeof(mime_t))); } /* * 'mimeNextFilter()' - Get the next filter in the MIME database. */ mime_filter_t * /* O - Filter or NULL */ mimeNextFilter(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("6mimeNextFilter(mime=%p)", mime)); if (!mime) { DEBUG_puts("7mimeNextFilter: Returning NULL."); return (NULL); } else { mime_filter_t *next = (mime_filter_t *)cupsArrayNext(mime->filters); /* Next filter */ DEBUG_printf(("7mimeNextFilter: Returning %p.", next)); return (next); } } /* * 'mimeNextType()' - Get the next type in the MIME database. */ mime_type_t * /* O - Type or NULL */ mimeNextType(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("6mimeNextType(mime=%p)", mime)); if (!mime) { DEBUG_puts("7mimeNextType: Returning NULL."); return (NULL); } else { mime_type_t *next = (mime_type_t *)cupsArrayNext(mime->types); /* Next type */ DEBUG_printf(("7mimeNextType: Returning %p.", next)); return (next); } } /* * 'mimeNumFilters()' - Get the number of filters in a MIME database. */ int mimeNumFilters(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("mimeNumFilters(mime=%p)", mime)); if (!mime) { DEBUG_puts("1mimeNumFilters: Returning 0."); return (0); } else { DEBUG_printf(("1mimeNumFilters: Returning %d.", cupsArrayCount(mime->filters))); return (cupsArrayCount(mime->filters)); } } /* * 'mimeNumTypes()' - Get the number of types in a MIME database. */ int mimeNumTypes(mime_t *mime) /* I - MIME database */ { DEBUG_printf(("mimeNumTypes(mime=%p)", mime)); if (!mime) { DEBUG_puts("1mimeNumTypes: Returning 0."); return (0); } else { DEBUG_printf(("1mimeNumTypes: Returning %d.", cupsArrayCount(mime->types))); return (cupsArrayCount(mime->types)); } } /* * 'mimeSetErrorCallback()' - Set the callback for error messages. */ void mimeSetErrorCallback( mime_t *mime, /* I - MIME database */ mime_error_cb_t cb, /* I - Callback function */ void *ctx) /* I - Context pointer for callback */ { if (mime) { mime->error_cb = cb; mime->error_ctx = ctx; } } /* * 'mime_add_fcache()' - Add a filter to the filter cache. */ static const char * /* O - Full path to filter or NULL */ mime_add_fcache( cups_array_t *filtercache, /* I - Filter cache */ const char *name, /* I - Filter name */ const char *filterpath) /* I - Filter path */ { _mime_fcache_t key, /* Search key */ *temp; /* New filter cache */ char path[1024]; /* Full path to filter */ DEBUG_printf(("2mime_add_fcache(filtercache=%p, name=\"%s\", " "filterpath=\"%s\")", filtercache, name, filterpath)); key.name = (char *)name; if ((temp = (_mime_fcache_t *)cupsArrayFind(filtercache, &key)) != NULL) { DEBUG_printf(("3mime_add_fcache: Returning \"%s\".", temp->path)); return (temp->path); } if ((temp = calloc(1, sizeof(_mime_fcache_t))) == NULL) { DEBUG_puts("3mime_add_fcache: Returning NULL."); return (NULL); } temp->name = strdup(name); if (cupsFileFind(name, filterpath, 1, path, sizeof(path))) temp->path = strdup(path); cupsArrayAdd(filtercache, temp); DEBUG_printf(("3mime_add_fcache: Returning \"%s\".", temp->path)); return (temp->path); } /* * 'mime_compare_fcache()' - Compare two filter cache entries. */ static int /* O - Result of comparison */ mime_compare_fcache(_mime_fcache_t *a, /* I - First entry */ _mime_fcache_t *b) /* I - Second entry */ { return (strcmp(a->name, b->name)); } /* * 'mime_delete_fcache()' - Free all memory used by the filter cache. */ static void mime_delete_fcache( cups_array_t *filtercache) /* I - Filter cache */ { _mime_fcache_t *current; /* Current cache entry */ DEBUG_printf(("2mime_delete_fcache(filtercache=%p)", filtercache)); for (current = (_mime_fcache_t *)cupsArrayFirst(filtercache); current; current = (_mime_fcache_t *)cupsArrayNext(filtercache)) { free(current->name); if (current->path) free(current->path); free(current); } cupsArrayDelete(filtercache); } /* * 'mime_delete_rules()' - Free all memory for the given rule tree. */ static void mime_delete_rules(mime_magic_t *rules) /* I - Rules to free */ { mime_magic_t *next; /* Next rule to free */ DEBUG_printf(("2mime_delete_rules(rules=%p)", rules)); /* * Free the rules list, descending recursively to free any child rules. */ while (rules != NULL) { next = rules->next; if (rules->child != NULL) mime_delete_rules(rules->child); if (rules->op == MIME_MAGIC_REGEX) regfree(&(rules->value.rev)); free(rules); rules = next; } } /* * 'mime_load_convs()' - Load a xyz.convs file. */ static void mime_load_convs( mime_t *mime, /* I - MIME database */ const char *filename, /* I - Convs file to load */ const char *filterpath, /* I - Path for filters */ cups_array_t *filtercache) /* I - Filter program cache */ { cups_file_t *fp; /* Convs file */ char line[1024], /* Input line from file */ *lineptr, /* Current position in line */ super[MIME_MAX_SUPER], /* Super-type name */ type[MIME_MAX_TYPE], /* Type name */ *temp, /* Temporary pointer */ *filter; /* Filter program */ mime_type_t *temptype, /* MIME type looping var */ *dsttype; /* Destination MIME type */ int cost; /* Cost of filter */ DEBUG_printf(("2mime_load_convs(mime=%p, filename=\"%s\", filterpath=\"%s\", " "filtercache=%p)", mime, filename, filterpath, filtercache)); /* * First try to open the file... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { DEBUG_printf(("3mime_load_convs: Unable to open \"%s\": %s", filename, strerror(errno))); _mimeError(mime, "Unable to open \"%s\": %s", filename, strerror(errno)); return; } /* * Then read each line from the file, skipping any comments in the file... */ while (cupsFileGets(fp, line, sizeof(line)) != NULL) { /* * Skip blank lines and lines starting with a #... */ if (!line[0] || line[0] == '#') continue; /* * Strip trailing whitespace... */ for (lineptr = line + strlen(line) - 1; lineptr >= line && isspace(*lineptr & 255); lineptr --) *lineptr = '\0'; /* * Extract the destination super-type and type names from the middle of * the line. */ lineptr = line; while (*lineptr != ' ' && *lineptr != '\t' && *lineptr != '\0') lineptr ++; while (*lineptr == ' ' || *lineptr == '\t') lineptr ++; temp = super; while (*lineptr != '/' && *lineptr != '\n' && *lineptr != '\0' && (temp - super + 1) < MIME_MAX_SUPER) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; if (*lineptr != '/') continue; lineptr ++; temp = type; while (*lineptr != ' ' && *lineptr != '\t' && *lineptr != '\n' && *lineptr != '\0' && (temp - type + 1) < MIME_MAX_TYPE) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; if (*lineptr == '\0' || *lineptr == '\n') continue; if ((dsttype = mimeType(mime, super, type)) == NULL) { DEBUG_printf(("3mime_load_convs: Destination type %s/%s not found.", super, type)); continue; } /* * Then get the cost and filter program... */ while (*lineptr == ' ' || *lineptr == '\t') lineptr ++; if (*lineptr < '0' || *lineptr > '9') continue; cost = atoi(lineptr); while (*lineptr != ' ' && *lineptr != '\t' && *lineptr != '\0') lineptr ++; while (*lineptr == ' ' || *lineptr == '\t') lineptr ++; if (*lineptr == '\0' || *lineptr == '\n') continue; filter = lineptr; if (strcmp(filter, "-")) { /* * Verify that the filter exists and is executable... */ if (!mime_add_fcache(filtercache, filter, filterpath)) { DEBUG_printf(("mime_load_convs: Filter %s not found in %s.", filter, filterpath)); _mimeError(mime, "Filter \"%s\" not found.", filter); continue; } } /* * Finally, get the source super-type and type names from the beginning of * the line. We do it here so we can support wildcards... */ lineptr = line; temp = super; while (*lineptr != '/' && *lineptr != '\n' && *lineptr != '\0' && (temp - super + 1) < MIME_MAX_SUPER) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; if (*lineptr != '/') continue; lineptr ++; temp = type; while (*lineptr != ' ' && *lineptr != '\t' && *lineptr != '\n' && *lineptr != '\0' && (temp - type + 1) < MIME_MAX_TYPE) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; if (!strcmp(super, "*") && !strcmp(type, "*")) { /* * Force * / * to be "application/octet-stream"... */ strlcpy(super, "application", sizeof(super)); strlcpy(type, "octet-stream", sizeof(type)); } /* * Add the filter to the MIME database, supporting wildcards as needed... */ for (temptype = (mime_type_t *)cupsArrayFirst(mime->types); temptype; temptype = (mime_type_t *)cupsArrayNext(mime->types)) if ((super[0] == '*' || !strcmp(temptype->super, super)) && (type[0] == '*' || !strcmp(temptype->type, type))) mimeAddFilter(mime, temptype, dsttype, cost, filter); } cupsFileClose(fp); } /* * 'mime_load_types()' - Load a xyz.types file. */ static void mime_load_types(mime_t *mime, /* I - MIME database */ const char *filename) /* I - Types file to load */ { cups_file_t *fp; /* Types file */ size_t linelen; /* Length of line */ char line[32768], /* Input line from file */ *lineptr, /* Current position in line */ super[MIME_MAX_SUPER], /* Super-type name */ type[MIME_MAX_TYPE], /* Type name */ *temp; /* Temporary pointer */ mime_type_t *typeptr; /* New MIME type */ DEBUG_printf(("2mime_load_types(mime=%p, filename=\"%s\")", mime, filename)); /* * First try to open the file... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { DEBUG_printf(("3mime_load_types: Unable to open \"%s\": %s", filename, strerror(errno))); _mimeError(mime, "Unable to open \"%s\": %s", filename, strerror(errno)); return; } /* * Then read each line from the file, skipping any comments in the file... */ while (cupsFileGets(fp, line, sizeof(line)) != NULL) { /* * Skip blank lines and lines starting with a #... */ if (!line[0] || line[0] == '#') continue; /* * While the last character in the line is a backslash, continue on to the * next line (and the next, etc.) */ linelen = strlen(line); while (line[linelen - 1] == '\\') { linelen --; if (cupsFileGets(fp, line + linelen, sizeof(line) - linelen) == NULL) line[linelen] = '\0'; else linelen += strlen(line + linelen); } /* * Extract the super-type and type names from the beginning of the line. */ lineptr = line; temp = super; while (*lineptr != '/' && *lineptr != '\n' && *lineptr != '\0' && (temp - super + 1) < MIME_MAX_SUPER) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; if (*lineptr != '/') continue; lineptr ++; temp = type; while (*lineptr != ' ' && *lineptr != '\t' && *lineptr != '\n' && *lineptr != '\0' && (temp - type + 1) < MIME_MAX_TYPE) *temp++ = (char)tolower(*lineptr++ & 255); *temp = '\0'; /* * Add the type and rules to the MIME database... */ typeptr = mimeAddType(mime, super, type); mimeAddTypeRule(typeptr, lineptr); } cupsFileClose(fp); } cups-2.4.7/scheduler/mime-private.h0000644000175000017500000000107514502571342017112 0ustar zdohnalzdohnal/* * Private MIME type/conversion database definitions for CUPS. * * Copyright © 2011-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_MIME_PRIVATE_H_ # define _CUPS_MIME_PRIVATE_H_ # include "mime.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Prototypes... */ extern void _mimeError(mime_t *mime, const char *format, ...) _CUPS_FORMAT(2, 3); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_MIME_PRIVATE_H_ */ cups-2.4.7/scheduler/main.c0000644000175000017500000014430414502571342015435 0ustar zdohnalzdohnal/* * Main loop for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #define _MAIN_C_ #include "cupsd.h" #include #ifdef __APPLE__ # include # include #endif /* __APPLE__ */ #ifdef HAVE_ASL_H # include #elif defined(HAVE_SYSTEMD_SD_JOURNAL_H) # define SD_JOURNAL_SUPPRESS_LOCATION # include #endif /* HAVE_ASL_H */ #include #include #ifdef HAVE_LAUNCH_H # include #endif /* HAVE_LAUNCH_H */ #ifdef HAVE_SYSTEMD # include #endif /* HAVE_SYSTEMD */ #ifdef HAVE_ONDEMAND # define CUPS_KEEPALIVE CUPS_CACHEDIR "/org.cups.cupsd" /* Name of the KeepAlive file */ #endif /* HAVE_ONDEMAND */ #if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO) # include #endif /* HAVE_MALLOC_H && HAVE_MALLINFO */ #ifdef HAVE_NOTIFY_H # include #endif /* HAVE_NOTIFY_H */ #ifdef HAVE_DBUS # include #endif /* HAVE_DBUS */ #ifdef HAVE_SYS_PARAM_H # include #endif /* HAVE_SYS_PARAM_H */ /* * Local functions... */ static void parent_handler(int sig); static void process_children(void); static void sigchld_handler(int sig); static void sighup_handler(int sig); static void sigterm_handler(int sig); static long select_timeout(int fds); static void service_checkin(void); static void service_checkout(int shutdown); static void usage(int status) _CUPS_NORETURN; /* * Local globals... */ static int parent_signal = 0; /* Set to signal number from child */ static int holdcount = 0; /* Number of times "hold" was called */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) static sigset_t holdmask; /* Old POSIX signal mask */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ static int dead_children = 0; /* Dead children? */ static int stop_scheduler = 0; /* Should the scheduler stop? */ static time_t local_timeout = 0; /* Next local printer timeout */ /* * 'main()' - Main entry for the CUPS scheduler. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ char *opt; /* Option character */ int close_all = 1, /* Close all file descriptors? */ disconnect = 1, /* Disconnect from controlling terminal? */ fg = 0, /* Run in foreground? */ run_as_child = 0, /* Running as child process? */ print_profile = 0; /* Print the sandbox profile to stdout? */ int fds; /* Number of ready descriptors */ cupsd_client_t *con; /* Current client */ cupsd_job_t *job; /* Current job */ cupsd_listener_t *lis; /* Current listener */ time_t current_time, /* Current time */ activity, /* Client activity timer */ senddoc_time, /* Send-Document time */ expire_time, /* Subscription expire time */ report_time, /* Malloc/client/job report time */ event_time; /* Last event notification time */ long timeout; /* Timeout for cupsdDoSelect() */ struct rlimit limit; /* Runtime limit */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ #ifdef __APPLE__ int use_sysman = 1; /* Use system management functions? */ #else time_t netif_time = 0; /* Time since last network update */ #endif /* __APPLE__ */ #if defined(HAVE_ONDEMAND) int service_idle_exit = 0; /* Idle exit on select timeout? */ #endif /* HAVE_ONDEMAND */ #ifdef HAVE_GETEUID /* * Check for setuid invocation, which we do not support! */ if (getuid() != geteuid()) { fputs("cupsd: Cannot run as a setuid program.\n", stderr); return (1); } #endif /* HAVE_GETEUID */ /* * Check for command-line arguments... */ fg = 0; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(0); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt != '\0'; opt ++) { switch (*opt) { case 'C' : /* Run as child with config file */ run_as_child = 1; fg = 1; close_all = 0; case 'c' : /* Configuration file */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("cupsd: Expected config filename " "after \"-c\" option.")); usage(1); } if (argv[i][0] == '/') { /* * Absolute directory... */ cupsdSetString(&ConfigurationFile, argv[i]); } else { /* * Relative directory... */ char *current; /* Current directory */ /* * Allocate a buffer for the current working directory to * reduce run-time stack usage; this approximates the * behavior of some implementations of getcwd() when they * are passed a NULL pointer. */ if ((current = malloc(1024)) == NULL) { _cupsLangPuts(stderr, _("cupsd: Unable to get current directory.")); return (1); } if (!getcwd(current, 1024)) { _cupsLangPuts(stderr, _("cupsd: Unable to get current directory.")); free(current); return (1); } cupsdSetStringf(&ConfigurationFile, "%s/%s", current, argv[i]); free(current); } break; case 'f' : /* Run in foreground... */ fg = 1; disconnect = 0; close_all = 0; break; case 'F' : /* Run in foreground, but disconnect from terminal... */ fg = 1; close_all = 0; break; case 'h' : /* Show usage/help */ usage(0); case 'l' : /* Started by launchd/systemd/upstart... */ #ifdef HAVE_ONDEMAND OnDemand = 1; fg = 1; close_all = 0; disconnect = 0; #else _cupsLangPuts(stderr, _("cupsd: On-demand support not compiled " "in, running in normal mode.")); fg = 0; disconnect = 1; close_all = 1; #endif /* HAVE_ONDEMAND */ break; case 'p' : /* Stop immediately for profiling */ fputs("cupsd: -p (startup profiling) is for internal testing " "use only!\n", stderr); stop_scheduler = 1; fg = 1; disconnect = 0; close_all = 0; break; case 'P' : /* Disable security profiles */ fputs("cupsd: -P (disable sandboxing) is for internal testing use only.\n", stderr); UseSandboxing = 0; break; case 's' : /* Set cups-files.conf location */ i ++; if (i >= argc) { _cupsLangPuts(stderr, _("cupsd: Expected cups-files.conf " "filename after \"-s\" option.")); usage(1); } if (argv[i][0] != '/') { /* * Relative filename not allowed... */ _cupsLangPuts(stderr, _("cupsd: Relative cups-files.conf " "filename not allowed.")); usage(1); } cupsdSetString(&CupsFilesFile, argv[i]); break; #ifdef __APPLE__ case 'S' : /* Disable system management functions */ fputs("cupsd: -S (disable system management) for internal " "testing use only!\n", stderr); use_sysman = 0; break; #endif /* __APPLE__ */ case 't' : /* Test the cupsd.conf file... */ TestConfigFile = 1; fg = 1; disconnect = 0; close_all = 0; break; case 'T' : /* Print security profile */ print_profile = 1; fg = 1; disconnect = 0; close_all = 0; break; default : /* Unknown option */ _cupsLangPrintf(stderr, _("cupsd: Unknown option \"%c\" - " "aborting."), *opt); usage(1); } } } else { _cupsLangPrintf(stderr, _("cupsd: Unknown argument \"%s\" - aborting."), argv[i]); usage(1); } } if (!ConfigurationFile) cupsdSetString(&ConfigurationFile, CUPS_SERVERROOT "/cupsd.conf"); if (!CupsFilesFile) { char *filename, /* Copy of cupsd.conf filename */ *slash; /* Final slash in cupsd.conf filename */ size_t len; /* Size of buffer */ len = strlen(ConfigurationFile) + 15; if ((filename = malloc(len)) == NULL) { _cupsLangPrintf(stderr, _("cupsd: Unable to get path to " "cups-files.conf file.")); return (1); } strlcpy(filename, ConfigurationFile, len); if ((slash = strrchr(filename, '/')) == NULL) { free(filename); _cupsLangPrintf(stderr, _("cupsd: Unable to get path to " "cups-files.conf file.")); return (1); } strlcpy(slash, "/cups-files.conf", len - (size_t)(slash - filename)); cupsdSetString(&CupsFilesFile, filename); free(filename); } if (disconnect) { /* * Make sure we aren't tying up any filesystems... */ chdir("/"); /* * Disconnect from the controlling terminal... */ setsid(); } if (close_all) { /* * Close all open files... */ getrlimit(RLIMIT_NOFILE, &limit); for (i = 0; i < (int)limit.rlim_cur && i < 1024; i ++) close(i); /* * Redirect stdin/out/err to /dev/null... */ if ((i = open("/dev/null", O_RDONLY)) != 0) { dup2(i, 0); close(i); } if ((i = open("/dev/null", O_WRONLY)) != 1) { dup2(i, 1); close(i); } if ((i = open("/dev/null", O_WRONLY)) != 2) { dup2(i, 2); close(i); } } else LogStderr = cupsFileStderr(); /* * Run in the background as needed... */ if (!fg) { /* * Setup signal handlers for the parent... */ #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGUSR1, parent_handler); sigset(SIGCHLD, parent_handler); sigset(SIGHUP, SIG_IGN); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGUSR1); action.sa_handler = parent_handler; sigaction(SIGUSR1, &action, NULL); sigaction(SIGCHLD, &action, NULL); sigemptyset(&action.sa_mask); action.sa_handler = SIG_IGN; sigaction(SIGHUP, &action, NULL); #else signal(SIGUSR1, parent_handler); signal(SIGCLD, parent_handler); signal(SIGHUP, SIG_IGN); #endif /* HAVE_SIGSET */ if (fork() > 0) { /* * OK, wait for the child to startup and send us SIGUSR1 or to crash * and the OS send us SIGCHLD... We also need to ignore SIGHUP which * might be sent by the init script to restart the scheduler... */ for (; parent_signal == 0;) sleep(1); if (parent_signal == SIGUSR1) return (0); if (wait(&i) < 0) { perror("cupsd"); return (1); } else if (WIFEXITED(i)) { fprintf(stderr, "cupsd: Child exited with status %d\n", WEXITSTATUS(i)); return (2); } else { fprintf(stderr, "cupsd: Child exited on signal %d\n", WTERMSIG(i)); return (3); } } #if defined(__OpenBSD__) && OpenBSD < 201211 /* * Call _thread_sys_closefrom() so the child process doesn't reset the * parent's file descriptors to be blocking. This is a workaround for a * limitation of userland libpthread on older versions of OpenBSD. */ _thread_sys_closefrom(0); #endif /* __OpenBSD__ && OpenBSD < 201211 */ /* * Since many system libraries create fork-unsafe data on execution of a * program, we need to re-execute the background cupsd with the "-C" and "-s" * options to avoid problems. Unfortunately, we also have to assume that * argv[0] contains the name of the cupsd executable - there is no portable * way to get the real pathname... */ execlp(argv[0], argv[0], "-C", ConfigurationFile, "-s", CupsFilesFile, (char *)0); exit(errno); } /* * Let the system know we are busy while we bring up cupsd... */ cupsdSetBusyState(1); /* * Set the timezone info... */ tzset(); #ifdef LC_TIME setlocale(LC_TIME, ""); #endif /* LC_TIME */ #ifdef HAVE_DBUS_THREADS_INIT /* * Enable threading support for D-BUS... */ dbus_threads_init_default(); #endif /* HAVE_DBUS_THREADS_INIT */ /* * Set the maximum number of files... */ getrlimit(RLIMIT_NOFILE, &limit); #if !defined(HAVE_POLL) && !defined(HAVE_EPOLL) && !defined(HAVE_KQUEUE) if (limit.rlim_max > FD_SETSIZE) MaxFDs = FD_SETSIZE; else #endif /* !HAVE_POLL && !HAVE_EPOLL && !HAVE_KQUEUE */ #ifdef RLIM_INFINITY if (limit.rlim_max == RLIM_INFINITY) MaxFDs = 16384; else #endif /* RLIM_INFINITY */ MaxFDs = limit.rlim_max; limit.rlim_cur = (rlim_t)MaxFDs; setrlimit(RLIMIT_NOFILE, &limit); cupsdStartSelect(); /* * Read configuration... */ if (!cupsdReadConfiguration()) return (1); else if (TestConfigFile) { printf("\"%s\" is OK.\n", CupsFilesFile); printf("\"%s\" is OK.\n", ConfigurationFile); return (0); } else if (print_profile) { cups_file_t *fp; /* File pointer */ const char *profile = cupsdCreateProfile(42, 0); /* Profile */ char line[1024]; /* Line from file */ if ((fp = cupsFileOpen(profile, "r")) == NULL) { printf("Unable to open profile file \"%s\": %s\n", profile ? profile : "(null)", strerror(errno)); return (1); } while (cupsFileGets(fp, line, sizeof(line))) puts(line); cupsFileClose(fp); return (0); } /* * Clean out old temp files and printer cache data. */ if (!RequestRoot || !strncmp(TempDir, RequestRoot, strlen(RequestRoot))) cupsdCleanFiles(TempDir, NULL); cupsdCleanFiles(CacheDir, "*.ipp"); /* * If we were started on demand by launchd or systemd get the listen sockets * file descriptors... */ service_checkin(); service_checkout(0); /* * Startup the server... */ httpInitialize(); cupsdStartServer(); /* * Catch hangup and child signals and ignore broken pipes... */ #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGCHLD, sigchld_handler); sigset(SIGHUP, sighup_handler); sigset(SIGPIPE, SIG_IGN); sigset(SIGTERM, sigterm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGTERM); sigaddset(&action.sa_mask, SIGCHLD); action.sa_handler = sigchld_handler; sigaction(SIGCHLD, &action, NULL); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGHUP); action.sa_handler = sighup_handler; sigaction(SIGHUP, &action, NULL); sigemptyset(&action.sa_mask); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGTERM); sigaddset(&action.sa_mask, SIGCHLD); action.sa_handler = sigterm_handler; sigaction(SIGTERM, &action, NULL); #else signal(SIGCLD, sigchld_handler); /* No, SIGCLD isn't a typo... */ signal(SIGHUP, sighup_handler); signal(SIGPIPE, SIG_IGN); signal(SIGTERM, sigterm_handler); #endif /* HAVE_SIGSET */ /* * Initialize authentication certificates... */ cupsdInitCerts(); /* * If we are running in the background, signal the parent process that * we are up and running... */ if (!fg || run_as_child) { /* * Send a signal to the parent process, but only if the parent is * not PID 1 (init). This avoids accidentally shutting down the * system on OpenBSD if you CTRL-C the server before it is up... */ i = getppid(); /* Save parent PID to avoid race condition */ if (i != 1) kill(i, SIGUSR1); } #ifdef __APPLE__ /* * Start power management framework... */ if (use_sysman) cupsdStartSystemMonitor(); #endif /* __APPLE__ */ /* * Send server-started event... */ #ifdef HAVE_ONDEMAND if (OnDemand) { cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started on demand."); # ifdef HAVE_SYSTEMD sd_notifyf(0, "READY=1\n" "STATUS=Scheduler is running...\n" "MAINPID=%lu", (unsigned long)getpid()); # endif /* HAVE_SYSTEMD */ } else #endif /* HAVE_ONDEMAND */ if (fg) cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started in foreground."); else cupsdAddEvent(CUPSD_EVENT_SERVER_STARTED, NULL, NULL, "Scheduler started in background."); cupsdSetBusyState(0); /* * Start any pending print jobs... */ cupsdCheckJobs(); /* * Loop forever... */ current_time = time(NULL); event_time = current_time; expire_time = current_time; local_timeout = 0; fds = 1; report_time = 0; senddoc_time = current_time; while (!stop_scheduler) { /* * Check if there are dead children to handle... */ if (dead_children) process_children(); /* * Check if we need to load the server configuration file... */ if (NeedReload) { /* * Close any idle clients... */ if (cupsArrayCount(Clients) > 0) { for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) if (httpGetState(con->http) == HTTP_WAITING) cupsdCloseClient(con); else con->http->keep_alive = HTTP_KEEPALIVE_OFF; cupsdPauseListening(); } /* * Restart if all clients are closed and all jobs finished, or * if the reload timeout has elapsed... */ if ((cupsArrayCount(Clients) == 0 && (cupsArrayCount(PrintingJobs) == 0 || NeedReload != RELOAD_ALL)) || (time(NULL) - ReloadTime) >= ReloadTimeout) { /* * Shutdown the server... */ #ifdef HAVE_ONDEMAND if (OnDemand) { # ifndef HAVE_SYSTEMD /* Issue #5640: systemd doesn't actually support launch-on-demand services, need to fake it */ stop_scheduler = 1; # endif /* HAVE_SYSTEMD */ break; } #endif /* HAVE_ONDEMAND */ DoingShutdown = 1; cupsdStopServer(); /* * Read configuration... */ if (!cupsdReadConfiguration()) { #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to read configuration file \"%s\" - exiting.", ConfigurationFile); #else syslog(LOG_LPR, "Unable to read configuration file \'%s\' - exiting.", ConfigurationFile); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ break; } /* * Startup the server... */ DoingShutdown = 0; cupsdStartServer(); /* * Send a server-restarted event... */ cupsdAddEvent(CUPSD_EVENT_SERVER_RESTARTED, NULL, NULL, "Scheduler restarted."); } } /* * Check for available input or ready output. If cupsdDoSelect() * returns 0 or -1, something bad happened and we should exit * immediately. * * Note that we at least have one listening socket open at all * times. */ if ((timeout = select_timeout(fds)) > 1 && LastEvent) timeout = 1; #ifdef HAVE_ONDEMAND /* * If no other work is scheduled and we're being controlled by launchd, * systemd, etc. then timeout after 'IdleExitTimeout' seconds of * inactivity... */ if (timeout == 86400 && OnDemand && IdleExitTimeout && # ifdef HAVE_SYSTEMD !WebInterface && # endif /* HAVE_SYSTEMD */ !cupsArrayCount(ActiveJobs)) { cupsd_printer_t *p = NULL; /* Current printer */ if (Browsing && BrowseLocalProtocols) { for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) if (p->shared) break; } if (!p) { timeout = IdleExitTimeout; service_idle_exit = 1; } } else service_idle_exit = 0; #endif /* HAVE_ONDEMAND */ if ((fds = cupsdDoSelect(timeout)) < 0) { /* * Got an error from select! */ #ifdef HAVE_DNSSD cupsd_printer_t *p; /* Current printer */ #endif /* HAVE_DNSSD */ if (errno == EINTR) /* Just interrupted by a signal */ continue; /* * Log all sorts of debug info to help track down the problem. */ cupsdLogMessage(CUPSD_LOG_EMERG, "cupsdDoSelect() failed - %s!", strerror(errno)); for (i = 0, con = (cupsd_client_t *)cupsArrayFirst(Clients); con; i ++, con = (cupsd_client_t *)cupsArrayNext(Clients)) cupsdLogMessage(CUPSD_LOG_EMERG, "Clients[%d] = %d, file = %d, state = %d", i, con->number, con->file, httpGetState(con->http)); for (i = 0, lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; i ++, lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) cupsdLogMessage(CUPSD_LOG_EMERG, "Listeners[%d] = %d", i, lis->fd); cupsdLogMessage(CUPSD_LOG_EMERG, "CGIPipes[0] = %d", CGIPipes[0]); #ifdef __APPLE__ cupsdLogMessage(CUPSD_LOG_EMERG, "SysEventPipes[0] = %d", SysEventPipes[0]); #endif /* __APPLE__ */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) cupsdLogMessage(CUPSD_LOG_EMERG, "Jobs[%d] = %d < [%d %d] > [%d %d]", job->id, job->status_buffer ? job->status_buffer->fd : -1, job->print_pipes[0], job->print_pipes[1], job->back_pipes[0], job->back_pipes[1]); #ifdef HAVE_DNSSD for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) cupsdLogMessage(CUPSD_LOG_EMERG, "printer[%s] reg_name=\"%s\"", p->name, p->reg_name ? p->reg_name : "(null)"); #endif /* HAVE_DNSSD */ break; } current_time = time(NULL); /* * Write dirty config/state files... */ if (DirtyCleanTime && current_time >= DirtyCleanTime) cupsdCleanDirty(); #ifdef __APPLE__ /* * If we are going to sleep and still have pending jobs, stop them after * a period of time... */ if (SleepJobs > 0 && current_time >= SleepJobs && cupsArrayCount(PrintingJobs) > 0) { SleepJobs = 0; cupsdStopAllJobs(CUPSD_JOB_DEFAULT, 5); } #endif /* __APPLE__ */ #ifndef __APPLE__ /* * Update the network interfaces once a minute... */ if ((current_time - netif_time) >= 60) { netif_time = current_time; NetIFUpdate = 1; } #endif /* !__APPLE__ */ #ifdef HAVE_ONDEMAND /* * If no other work was scheduled and we're being controlled by launchd, * systemd, or upstart then timeout after 'LaunchdTimeout' seconds of * inactivity... */ if (!fds && service_idle_exit) { cupsdLogMessage(CUPSD_LOG_INFO, "Printer sharing is off and there are no jobs pending, " "will restart on demand."); stop_scheduler = 1; break; } #endif /* HAVE_ONDEMAND */ /* * Resume listening for new connections as needed... */ if (ListeningPaused && ListeningPaused <= current_time && cupsArrayCount(Clients) < MaxClients) cupsdResumeListening(); /* * Expire subscriptions and unload completed jobs as needed... */ if (current_time > expire_time) { cupsdExpireSubscriptions(NULL, NULL); cupsdUnloadCompletedJobs(); expire_time = current_time; } /* * Delete stale local printers... */ if (current_time >= local_timeout) { cupsdDeleteTemporaryPrinters(0); local_timeout = 0; } #ifndef HAVE_AUTHORIZATION_H /* * Update the root certificate once every 5 minutes if we have client * connections... */ if ((current_time - RootCertTime) >= RootCertDuration && RootCertDuration && !RunUser && cupsArrayCount(Clients)) { /* * Update the root certificate... */ cupsdDeleteCert(0); cupsdAddCert(0, "root", cupsdDefaultAuthType()); } #endif /* !HAVE_AUTHORIZATION_H */ /* * Clean job history... */ if (JobHistoryUpdate && current_time >= JobHistoryUpdate) cupsdCleanJobs(); /* * Update any pending multi-file documents... */ if ((current_time - senddoc_time) >= 10) { cupsdCheckJobs(); senddoc_time = current_time; } /* * Check for new data on the client sockets... */ for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) { /* * Process pending data in the input buffer... */ if (httpGetReady(con->http)) { cupsdReadClient(con); continue; } /* * Check the activity and close old clients... */ activity = current_time - Timeout; if (httpGetActivity(con->http) < activity && !con->pipe_pid) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Closing client %d after %d seconds of inactivity.", con->number, Timeout); cupsdCloseClient(con); continue; } } /* * Log statistics at most once a minute when in debug mode... */ if ((current_time - report_time) >= 60 && LogLevel >= CUPSD_LOG_DEBUG) { size_t string_count, /* String count */ alloc_bytes, /* Allocated string bytes */ total_bytes; /* Total string bytes */ #ifdef HAVE_MALLINFO struct mallinfo mem; /* Malloc information */ mem = mallinfo(); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: malloc-arena=%lu", mem.arena); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: malloc-used=%lu", mem.usmblks + mem.uordblks); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: malloc-free=%lu", mem.fsmblks + mem.fordblks); #endif /* HAVE_MALLINFO */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: clients=%d", cupsArrayCount(Clients)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: jobs=%d", cupsArrayCount(Jobs)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: jobs-active=%d", cupsArrayCount(ActiveJobs)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: printers=%d", cupsArrayCount(Printers)); string_count = _cupsStrStatistics(&alloc_bytes, &total_bytes); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: stringpool-string-count=" CUPS_LLFMT, CUPS_LLCAST string_count); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: stringpool-alloc-bytes=" CUPS_LLFMT, CUPS_LLCAST alloc_bytes); cupsdLogMessage(CUPSD_LOG_DEBUG, "Report: stringpool-total-bytes=" CUPS_LLFMT, CUPS_LLCAST total_bytes); report_time = current_time; } /* * Handle OS-specific event notification for any events that have * accumulated. Don't send these more than once a second... */ if (LastEvent && (current_time - event_time) >= 1) { #ifdef HAVE_NOTIFY_POST if (LastEvent & (CUPSD_EVENT_PRINTER_ADDED | CUPSD_EVENT_PRINTER_DELETED | CUPSD_EVENT_PRINTER_MODIFIED)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "notify_post(\"com.apple.printerListChange\")"); notify_post("com.apple.printerListChange"); } if (LastEvent & CUPSD_EVENT_PRINTER_STATE_CHANGED) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "notify_post(\"com.apple.printerHistoryChange\")"); notify_post("com.apple.printerHistoryChange"); } if (LastEvent & (CUPSD_EVENT_JOB_STATE_CHANGED | CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_PROGRESS)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "notify_post(\"com.apple.jobChange\")"); notify_post("com.apple.jobChange"); } #endif /* HAVE_NOTIFY_POST */ /* * Reset the accumulated events... */ LastEvent = CUPSD_EVENT_NONE; event_time = current_time; } } /* * Log a message based on what happened... */ if (stop_scheduler) { cupsdLogMessage(CUPSD_LOG_INFO, "Scheduler shutting down normally."); cupsdAddEvent(CUPSD_EVENT_SERVER_STOPPED, NULL, NULL, "Scheduler shutting down normally."); } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Scheduler shutting down due to program error."); cupsdAddEvent(CUPSD_EVENT_SERVER_STOPPED, NULL, NULL, "Scheduler shutting down due to program error."); } /* * Close all network clients... */ DoingShutdown = 1; cupsdStopServer(); /* * Update the KeepAlive/PID file as needed... */ service_checkout(1); /* * Stop all jobs... */ cupsdFreeAllJobs(); /* * Delete all temporary printers... */ cupsdDeleteTemporaryPrinters(1); #ifdef __APPLE__ /* * Stop monitoring system event monitoring... */ if (use_sysman) cupsdStopSystemMonitor(); #endif /* __APPLE__ */ cupsdStopSelect(); return (!stop_scheduler); } /* * 'cupsdAddString()' - Copy and add a string to an array. */ int /* O - 1 on success, 0 on failure */ cupsdAddString(cups_array_t **a, /* IO - String array */ const char *s) /* I - String to copy and add */ { if (!*a) *a = cupsArrayNew3((cups_array_func_t)strcmp, NULL, (cups_ahash_func_t)NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); return (cupsArrayAdd(*a, (char *)s)); } /* * 'cupsdCheckProcess()' - Tell the main loop to check for dead children. */ void cupsdCheckProcess(void) { /* * Flag that we have dead children... */ dead_children = 1; } /* * 'cupsdClearString()' - Clear a string. */ void cupsdClearString(char **s) /* O - String value */ { if (s && *s) { free(*s); *s = NULL; } } /* * 'cupsdFreeStrings()' - Free an array of strings. */ void cupsdFreeStrings(cups_array_t **a) /* IO - String array */ { if (*a) { cupsArrayDelete(*a); *a = NULL; } } /* * 'cupsdHoldSignals()' - Hold child and termination signals. */ void cupsdHoldSignals(void) { #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) sigset_t newmask; /* New POSIX signal mask */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ holdcount ++; if (holdcount > 1) return; #ifdef HAVE_SIGSET sighold(SIGTERM); sighold(SIGCHLD); #elif defined(HAVE_SIGACTION) sigemptyset(&newmask); sigaddset(&newmask, SIGTERM); sigaddset(&newmask, SIGCHLD); sigprocmask(SIG_BLOCK, &newmask, &holdmask); #endif /* HAVE_SIGSET */ } /* * 'cupsdReleaseSignals()' - Release signals for delivery. */ void cupsdReleaseSignals(void) { holdcount --; if (holdcount > 0) return; #ifdef HAVE_SIGSET sigrelse(SIGTERM); sigrelse(SIGCHLD); #elif defined(HAVE_SIGACTION) sigprocmask(SIG_SETMASK, &holdmask, NULL); #endif /* HAVE_SIGSET */ } /* * 'cupsdSetString()' - Set a string value. */ void cupsdSetString(char **s, /* O - New string */ const char *v) /* I - String value */ { if (!s || *s == v) return; if (*s) free(*s); if (v) *s = strdup(v); else *s = NULL; } /* * 'cupsdSetStringf()' - Set a formatted string value. */ void cupsdSetStringf(char **s, /* O - New string */ const char *f, /* I - Printf-style format string */ ...) /* I - Additional args as needed */ { char v[65536 + 64]; /* Formatting string value */ va_list ap; /* Argument pointer */ char *olds; /* Old string */ if (!s) return; olds = *s; if (f) { va_start(ap, f); vsnprintf(v, sizeof(v), f, ap); va_end(ap); *s = strdup(v); } else *s = NULL; if (olds) free(olds); } /* * 'parent_handler()' - Catch USR1/CHLD signals... */ static void parent_handler(int sig) /* I - Signal */ { /* * Store the signal we got from the OS and return... */ parent_signal = sig; } /* * 'process_children()' - Process all dead children... */ static void process_children(void) { int status; /* Exit status of child */ int pid, /* Process ID of child */ job_id; /* Job ID of child */ cupsd_job_t *job; /* Current job */ size_t i; /* Looping var */ char name[1024]; /* Process name */ const char *type; /* Type of program */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "process_children()"); /* * Reset the dead_children flag... */ dead_children = 0; /* * Collect the exit status of some children... */ #ifdef HAVE_WAITPID while ((pid = waitpid(-1, &status, WNOHANG)) > 0) #elif defined(HAVE_WAIT3) while ((pid = wait3(&status, WNOHANG, NULL)) > 0) #else if ((pid = wait(&status)) > 0) #endif /* HAVE_WAITPID */ { /* * Collect the name of the process that finished... */ cupsdFinishProcess(pid, name, sizeof(name), &job_id); /* * Delete certificates for CGI processes... */ cupsdDeleteCert(pid); /* * Handle completed job filters... */ if (job_id > 0) job = cupsdFindJob(job_id); else job = NULL; if (job) { for (i = 0; job->filters[i]; i ++) if (job->filters[i] == pid) break; if (job->filters[i] || job->backend == pid) { /* * OK, this process has gone away; what's left? */ if (job->filters[i]) { job->filters[i] = -pid; type = "Filter"; } else { job->backend = -pid; type = "Backend"; } if (status && status != SIGTERM && status != SIGKILL && status != SIGPIPE) { /* * An error occurred; save the exit status so we know to stop * the printer or cancel the job when all of the filters finish... * * A negative status indicates that the backend failed and the * printer needs to be stopped. * * In order to preserve the most serious status, we always log * when a process dies due to a signal (e.g. SIGABRT, SIGSEGV, * and SIGBUS) and prefer to log the backend exit status over a * filter's. */ int old_status = abs(job->status); if (WIFSIGNALED(status) || /* This process crashed, or */ !job->status || /* No process had a status, or */ (!job->filters[i] && WIFEXITED(old_status))) { /* Backend and filter didn't crash */ if (job->filters[i]) { job->status = status; /* Filter failed */ } else { job->status = -status; /* Backend failed */ if (job->current_file < job->num_files) cupsdSetJobState(job, IPP_JOB_ABORTED, CUPSD_JOB_FORCE, "Canceling multi-file job due to backend failure."); } } if (job->state_value == IPP_JOB_PROCESSING && job->status_level > CUPSD_LOG_ERROR && (job->filters[i] || !WIFEXITED(status))) { char message[1024]; /* New printer-state-message */ job->status_level = CUPSD_LOG_ERROR; snprintf(message, sizeof(message), "%s failed", type); if (job->printer) { strlcpy(job->printer->state_message, message, sizeof(job->printer->state_message)); } if (!job->attrs) cupsdLoadJob(job); if (!job->printer_message && job->attrs) { if ((job->printer_message = ippFindAttribute(job->attrs, "job-printer-state-message", IPP_TAG_TEXT)) == NULL) job->printer_message = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_TEXT, "job-printer-state-message", NULL, NULL); } if (job->printer_message) ippSetString(job->attrs, &job->printer_message, 0, message); } } /* * If this is not the last file in a job, see if all of the * filters are done, and if so move to the next file. */ if (job->state_value >= IPP_JOB_CANCELED) { /* * Remove the job from the active list if there are no processes still * running for it... */ for (i = 0; job->filters[i] < 0; i++); if (!job->filters[i] && job->backend <= 0) cupsArrayRemove(ActiveJobs, job); } else if (job->current_file < job->num_files && job->printer) { for (i = 0; job->filters[i] < 0; i ++); if (!job->filters[i] && (!job->printer->pc || !job->printer->pc->single_file || job->backend <= 0)) { /* * Process the next file... */ cupsdContinueJob(job); } } } } /* * Show the exit status as needed, ignoring SIGTERM and SIGKILL errors * since they come when we kill/end a process... */ if (status == SIGTERM || status == SIGKILL) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) was terminated normally with signal %d.", pid, name, status); } else if (status == SIGPIPE) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) did not catch or ignore signal %d.", pid, name, status); } else if (status) { if (WIFEXITED(status)) { int code = WEXITSTATUS(status); /* Exit code */ if (code > 100) cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) stopped with status %d (%s)", pid, name, code, strerror(code - 100)); else cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) stopped with status %d.", pid, name, code); } else cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) crashed on signal %d.", pid, name, WTERMSIG(status)); if (LogLevel < CUPSD_LOG_DEBUG) cupsdLogJob(job, CUPSD_LOG_INFO, "Hint: Try setting the LogLevel to \"debug\" to find out " "more."); } else cupsdLogJob(job, CUPSD_LOG_DEBUG, "PID %d (%s) exited with no errors.", pid, name); } /* * If wait*() is interrupted by a signal, tell main() to call us again... */ if (pid && errno == EINTR) dead_children = 1; } /* * 'select_timeout()' - Calculate the select timeout value. * */ static long /* O - Number of seconds */ select_timeout(int fds) /* I - Number of descriptors returned */ { long timeout; /* Timeout for select */ time_t now; /* Current time */ cupsd_client_t *con; /* Client information */ cupsd_job_t *job; /* Job information */ const char *why; /* Debugging aid */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "select_timeout: JobHistoryUpdate=%ld", (long)JobHistoryUpdate); /* * Check to see if any of the clients have pending data to be * processed; if so, the timeout should be 0... */ for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) if (httpGetReady(con->http)) return (0); /* * If select has been active in the last second (fds > 0) or we have * many resources in use then don't bother trying to optimize the * timeout, just make it 1 second. */ if (fds > 0 || cupsArrayCount(Clients) > 50) return (1); /* * Otherwise, check all of the possible events that we need to wake for... */ now = time(NULL); timeout = now + 86400; /* 86400 == 1 day */ why = "do nothing"; #ifdef __APPLE__ /* * When going to sleep, wake up to abort jobs that don't complete in time. */ if (SleepJobs > 0 && SleepJobs < timeout) { timeout = SleepJobs; why = "abort jobs before sleeping"; } #endif /* __APPLE__ */ /* * Check whether we are accepting new connections... */ if (ListeningPaused > 0 && cupsArrayCount(Clients) < MaxClients && ListeningPaused < timeout) { if (ListeningPaused <= now) timeout = now; else timeout = ListeningPaused; why = "resume listening"; } /* * Check the activity and close old clients... */ for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) if ((httpGetActivity(con->http) + Timeout) < timeout) { timeout = httpGetActivity(con->http) + Timeout; why = "timeout a client connection"; } /* * Write out changes to configuration and state files... */ if (DirtyCleanTime && timeout > DirtyCleanTime) { timeout = DirtyCleanTime; why = "write dirty config/state files"; } /* * Check for any job activity... */ if (JobHistoryUpdate && timeout > JobHistoryUpdate) { timeout = JobHistoryUpdate; why = "update job history"; } for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) { if (job->cancel_time && job->cancel_time < timeout) { timeout = job->cancel_time; why = "cancel stuck jobs"; } if (job->kill_time && job->kill_time < timeout) { timeout = job->kill_time; why = "kill unresponsive jobs"; } if (job->state_value == IPP_JOB_HELD && job->hold_until < timeout) { timeout = job->hold_until; why = "release held jobs"; } if (job->state_value == IPP_JOB_PENDING && timeout > (now + 10)) { timeout = now + 10; why = "start pending jobs"; break; } } /* * Adjust from absolute to relative time. We add 1 second to the timeout since * events occur after the timeout expires, and limit the timeout to 86400 * seconds (1 day) to avoid select() timeout limits present on some operating * systems... */ timeout = timeout - now + 1; if (timeout < 1) timeout = 1; else if (timeout > 86400) timeout = 86400; /* * Log and return the timeout value... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "select_timeout(%d): %ld seconds to %s", fds, timeout, why); return (timeout); } /* * 'sigchld_handler()' - Handle 'child' signals from old processes. */ static void sigchld_handler(int sig) /* I - Signal number */ { (void)sig; /* * Flag that we have dead children... */ dead_children = 1; /* * Reset the signal handler as needed... */ #if !defined(HAVE_SIGSET) && !defined(HAVE_SIGACTION) signal(SIGCLD, sigchld_handler); #endif /* !HAVE_SIGSET && !HAVE_SIGACTION */ } /* * 'sighup_handler()' - Handle 'hangup' signals to reconfigure the scheduler. */ static void sighup_handler(int sig) /* I - Signal number */ { (void)sig; NeedReload = RELOAD_ALL; ReloadTime = time(NULL); #if !defined(HAVE_SIGSET) && !defined(HAVE_SIGACTION) signal(SIGHUP, sighup_handler); #endif /* !HAVE_SIGSET && !HAVE_SIGACTION */ } /* * 'sigterm_handler()' - Handle 'terminate' signals that stop the scheduler. */ static void sigterm_handler(int sig) /* I - Signal number */ { (void)sig; /* remove compiler warnings... */ /* * Flag that we should stop and return... */ stop_scheduler = 1; } #ifdef HAVE_ONDEMAND /* * 'service_add_listener()' - Bind an open fd as a Listener. */ static void service_add_listener(int fd, /* I - Socket file descriptor */ int idx) /* I - Listener number, for logging */ { cupsd_listener_t *lis; /* Listeners array */ http_addr_t addr; /* Address variable */ socklen_t addrlen; /* Length of address */ char s[256]; /* String address */ addrlen = sizeof(addr); if (getsockname(fd, (struct sockaddr *)&addr, &addrlen)) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_add_listener: Unable to get local address for listener #%d: %s", idx + 1, strerror(errno)); return; } cupsdLogMessage(CUPSD_LOG_DEBUG, "service_add_listener: Listener #%d at fd %d, \"%s\".", idx + 1, fd, httpAddrString(&addr, s, sizeof(s))); /* * Try to match the on-demand socket address to one of the listeners... */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) if (httpAddrEqual(&lis->address, &addr)) break; /* * Add a new listener If there's no match... */ if (lis) { cupsdLogMessage(CUPSD_LOG_DEBUG, "service_add_listener: Matched existing listener #%d to %s.", idx + 1, httpAddrString(&(lis->address), s, sizeof(s))); } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "service_add_listener: Adding new listener #%d for %s.", idx + 1, httpAddrString(&addr, s, sizeof(s))); if ((lis = calloc(1, sizeof(cupsd_listener_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_add_listener: Unable to allocate listener: %s.", strerror(errno)); exit(EXIT_FAILURE); } cupsArrayAdd(Listeners, lis); memcpy(&lis->address, &addr, sizeof(lis->address)); } lis->fd = fd; lis->on_demand = 1; # ifdef HAVE_TLS if (httpAddrPort(&(lis->address)) == 443) lis->encryption = HTTP_ENCRYPT_ALWAYS; # endif /* HAVE_TLS */ } #endif /* HAVE_ONDEMAND */ /* * 'service_checkin()' - Check-in with launchd and collect the listening fds. */ static void service_checkin(void) { cupsdLogMessage(CUPSD_LOG_DEBUG, "service_checkin: pid=%d", (int)getpid()); #ifdef HAVE_LAUNCHD if (OnDemand) { int error; /* Check-in error, if any */ size_t i, /* Looping var */ count; /* Number of listeners */ int *ld_sockets; /* Listener sockets */ # ifdef __APPLE__ /* * Force "user initiated" priority for the main thread... */ pthread_set_qos_class_self_np(QOS_CLASS_USER_INITIATED, 0); # endif /* __APPLE__ */ /* * Check-in with launchd... */ if ((error = launch_activate_socket("Listeners", &ld_sockets, &count)) != 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: Unable to get listener sockets: %s", strerror(error)); exit(EXIT_FAILURE); } /* * Try to match the launchd sockets to the cupsd listeners... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "service_checkin: %d listeners.", (int)count); for (i = 0; i < count; i ++) service_add_listener(ld_sockets[i], (int)i); free(ld_sockets); # ifdef __APPLE__ xpc_transaction_begin(); # endif /* __APPLE__ */ } #elif defined(HAVE_SYSTEMD) if (OnDemand) { int i, /* Looping var */ count; /* Number of listeners */ /* * Check-in with systemd... */ if ((count = sd_listen_fds(0)) < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: Unable to get listener sockets: %s", strerror(-count)); exit(EXIT_FAILURE); } /* * Try to match the systemd sockets to the cupsd listeners... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "service_checkin: %d listeners.", count); for (i = 0; i < count; i ++) service_add_listener(SD_LISTEN_FDS_START + i, i); } #elif defined(HAVE_UPSTART) if (OnDemand) { const char *e; /* Environment var */ int fd; /* File descriptor */ if (!(e = getenv("UPSTART_EVENTS"))) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: We did not get started via Upstart."); exit(EXIT_FAILURE); } if (strcasecmp(e, "socket")) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: We did not get triggered via an Upstart socket event."); exit(EXIT_FAILURE); } if ((e = getenv("UPSTART_FDS")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: Unable to get listener sockets from UPSTART_FDS."); exit(EXIT_FAILURE); } cupsdLogMessage(CUPSD_LOG_DEBUG, "service_checkin: UPSTART_FDS=%s", e); fd = atoi(e); if (fd < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "service_checkin: Could not parse UPSTART_FDS: %s", strerror(errno)); exit(EXIT_FAILURE); } /* * Upstart only supports a single on-demand socket file descriptor... */ service_add_listener(fd, 0); } #endif /* HAVE_LAUNCHD */ } /* * 'service_checkout()' - Update the KeepAlive/PID file as needed. */ static void service_checkout(int shutdown) /* I - Shutting down? */ { cups_file_t *fp; /* File */ char pidfile[1024]; /* PID/KeepAlive file */ /* * When running on-demand, use the KeepAlive file, otherwise write a PID file * to StateDir... */ #ifdef HAVE_ONDEMAND if (OnDemand) { int shared_printers = 0; /* Do we have shared printers? */ strlcpy(pidfile, CUPS_KEEPALIVE, sizeof(pidfile)); /* * If printer sharing is on see if there are any actual shared printers... */ if (Browsing && BrowseLocalProtocols) { cupsd_printer_t *p = NULL; /* Current printer */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) { if (p->shared) break; } shared_printers = (p != NULL); } if (cupsArrayCount(ActiveJobs) || /* Active jobs */ WebInterface || /* Web interface enabled */ NeedReload || /* Doing a reload */ shared_printers) /* Printers being shared */ { /* * Create or remove the "keep-alive" file based on whether there are active * jobs or shared printers to advertise... */ shutdown = 0; } } else #endif /* HAVE_ONDEMAND */ snprintf(pidfile, sizeof(pidfile), "%s/cupsd.pid", StateDir); if (shutdown) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Removing KeepAlive/PID file \"%s\".", pidfile); unlink(pidfile); } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "Creating KeepAlive/PID file \"%s\".", pidfile); if ((fp = cupsFileOpen(pidfile, "w")) != NULL) { /* * Save the PID in the file... */ cupsFilePrintf(fp, "%d\n", (int)getpid()); cupsFileClose(fp); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create KeepAlive/PID file \"%s\": %s", pidfile, strerror(errno)); } # ifdef __APPLE__ if (OnDemand && shutdown) xpc_transaction_end(); # endif /* __APPLE__ */ } /* * 'usage()' - Show scheduler usage. */ static void usage(int status) /* O - Exit status */ { FILE *fp = status ? stderr : stdout; /* Output file */ _cupsLangPuts(fp, _("Usage: cupsd [options]")); _cupsLangPuts(fp, _("Options:")); _cupsLangPuts(fp, _("-c cupsd.conf Set cupsd.conf file to use.")); _cupsLangPuts(fp, _("-f Run in the foreground.")); _cupsLangPuts(fp, _("-F Run in the foreground but detach from console.")); _cupsLangPuts(fp, _("-h Show this usage message.")); #ifdef HAVE_ONDEMAND _cupsLangPuts(fp, _("-l Run cupsd on demand.")); #endif /* HAVE_ONDEMAND */ _cupsLangPuts(fp, _("-s cups-files.conf Set cups-files.conf file to use.")); _cupsLangPuts(fp, _("-t Test the configuration file.")); exit(status); } cups-2.4.7/scheduler/log.c0000644000175000017500000010316014502571342015265 0ustar zdohnalzdohnal/* * Log file routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef HAVE_ASL_H # include #elif defined(HAVE_SYSTEMD_SD_JOURNAL_H) # define SD_JOURNAL_SUPPRESS_LOCATION # include #endif /* HAVE_ASL_H */ #include #ifndef va_copy # define va_copy(__list1, __list2) ((void)(__list1 = __list2)) #endif /* * Constants for log keys from PWG 5110.3 (PWG Common Log Format)... */ #define PWG_DeviceUUID "DUU" #define PWG_Event "E" #define PWG_LogNaturalLanguage "NL" #define PWG_Status "S" #define PWG_ServiceURI "URI" #define PWG_UserHost "UH" #define PWG_UserName "UN" #define PWG_UserURI "UU" #define PWG_ServiceIsAcceptingJobs "IAJ" #define PWG_ServiceState "ST" #define PWG_ServiceStateReasons "SR" #define PWG_ServiceUUID "SUU" #define PWG_JobID "JID" #define PWG_JobUUID "JUU" #define PWG_JobImagesCompleted "JIM" #define PWG_JobImpressionsCompleted "JIC" #define PWG_JobDestinationURI "JD" #define PWG_JobState "JS" #define PWG_JobStateReasons "JR" #define PWG_JobAccountingID "JA" #define PWG_JobAcountingUserName "JAUN" #define PWG_JobAccountingUserURI "JAUU" /* * Local globals... */ static _cups_mutex_t log_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for logging */ static size_t log_linesize = 0; /* Size of line for output file */ static char *log_line = NULL; /* Line for output file */ #ifdef HAVE_ASL_H static const int log_levels[] = /* ASL levels... */ { ASL_LEVEL_EMERG, ASL_LEVEL_EMERG, ASL_LEVEL_ALERT, ASL_LEVEL_CRIT, ASL_LEVEL_ERR, ASL_LEVEL_WARNING, ASL_LEVEL_NOTICE, ASL_LEVEL_INFO, ASL_LEVEL_DEBUG, ASL_LEVEL_DEBUG }; #elif defined(HAVE_VSYSLOG) || defined(HAVE_SYSTEMD_SD_JOURNAL_H) static const int log_levels[] = /* SYSLOG levels... */ { 0, LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG, LOG_DEBUG }; #endif /* HAVE_ASL_H */ /* * Local functions... */ static int format_log_line(const char *message, va_list ap); /* * 'cupsdCheckLogFile()' - Open/rotate a log file if it needs it. */ int /* O - 1 if log file open */ cupsdCheckLogFile(cups_file_t **lf, /* IO - Log file */ const char *logname) /* I - Log filename */ { char backname[1024], /* Backup log filename */ filename[1024], /* Formatted log filename */ *ptr; /* Pointer into filename */ const char *logptr; /* Pointer into log filename */ /* * See if we have a log file to check... */ if (!lf || !logname || !logname[0]) return (1); /* * Handle logging to stderr... */ if (!strcmp(logname, "stderr")) { *lf = LogStderr; return (1); } /* * Format the filename as needed... */ if (!*lf || (strncmp(logname, "/dev/", 5) && cupsFileTell(*lf) > MaxLogSize && MaxLogSize > 0)) { /* * Handle format strings... */ filename[sizeof(filename) - 1] = '\0'; if (logname[0] != '/') { strlcpy(filename, ServerRoot, sizeof(filename)); strlcat(filename, "/", sizeof(filename)); } else filename[0] = '\0'; for (logptr = logname, ptr = filename + strlen(filename); *logptr && ptr < (filename + sizeof(filename) - 1); logptr ++) if (*logptr == '%') { /* * Format spec... */ logptr ++; if (*logptr == 's') { /* * Insert the server name... */ strlcpy(ptr, ServerName, sizeof(filename) - (size_t)(ptr - filename)); ptr += strlen(ptr); } else { /* * Otherwise just insert the character... */ *ptr++ = *logptr; } } else *ptr++ = *logptr; *ptr = '\0'; } /* * See if the log file is open... */ if (!*lf) { /* * Nope, open the log file... */ if ((*lf = cupsFileOpen(filename, "a")) == NULL) { /* * If the file is in CUPS_LOGDIR then try to create a missing directory... */ if (!strncmp(filename, CUPS_LOGDIR, strlen(CUPS_LOGDIR))) { /* * Try updating the permissions of the containing log directory, using * the log file permissions as a basis... */ mode_t log_dir_perm = (mode_t)(0300 | LogFilePerm); /* LogFilePerm + owner write/search */ if (log_dir_perm & 0040) log_dir_perm |= 0010; /* Add group search */ if (log_dir_perm & 0004) log_dir_perm |= 0001; /* Add other search */ cupsdCheckPermissions(CUPS_LOGDIR, NULL, log_dir_perm, RunUser, Group, 1, -1); *lf = cupsFileOpen(filename, "a"); } if (*lf == NULL) { #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to open log file \"%s\" - %s", filename, strerror(errno)); #else syslog(LOG_ERR, "Unable to open log file \"%s\" - %s", filename, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ if (FatalErrors & CUPSD_FATAL_LOG) cupsdEndProcess(getpid(), 0); return (0); } } if (strncmp(filename, "/dev/", 5)) { /* * Change ownership and permissions of non-device logs... */ fchown(cupsFileNumber(*lf), RunUser, LogFileGroup); fchmod(cupsFileNumber(*lf), LogFilePerm); } } /* * Do we need to rotate the log? */ if (strncmp(logname, "/dev/", 5) && cupsFileTell(*lf) > MaxLogSize && MaxLogSize > 0) { /* * Rotate log file... */ cupsFileClose(*lf); strlcpy(backname, filename, sizeof(backname)); strlcat(backname, ".O", sizeof(backname)); unlink(backname); rename(filename, backname); if ((*lf = cupsFileOpen(filename, "a")) == NULL) { #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to open log file \"%s\" - %s", filename, strerror(errno)); #else syslog(LOG_ERR, "Unable to open log file \"%s\" - %s", filename, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ if (FatalErrors & CUPSD_FATAL_LOG) cupsdEndProcess(getpid(), 0); return (0); } /* * Change ownership and permissions of non-device logs... */ fchown(cupsFileNumber(*lf), RunUser, LogFileGroup); fchmod(cupsFileNumber(*lf), LogFilePerm); } return (1); } /* * 'cupsdGetDateTime()' - Returns a pointer to a date/time string. */ char * /* O - Date/time string */ cupsdGetDateTime(struct timeval *t, /* I - Time value or NULL for current */ cupsd_time_t format) /* I - Format to use */ { struct timeval curtime; /* Current time value */ struct tm date; /* Date/time value */ static struct timeval last_time = { 0, 0 }; /* Last time we formatted */ static char s[1024]; /* Date/time string */ static const char * const months[12] =/* Months */ { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; /* * Make sure we have a valid time... */ if (!t) { gettimeofday(&curtime, NULL); t = &curtime; } if (t->tv_sec != last_time.tv_sec || (LogTimeFormat == CUPSD_TIME_USECS && t->tv_usec != last_time.tv_usec)) { last_time = *t; /* * Get the date and time from the UNIX time value, and then format it * into a string. Note that we *can't* use the strftime() function since * it is localized and will seriously confuse automatic programs if the * month names are in the wrong language! * * Also, we use the "timezone" variable that contains the current timezone * offset from GMT in seconds so that we are reporting local time in the * log files. If you want GMT, set the TZ environment variable accordingly * before starting the scheduler. * * (*BSD and Darwin store the timezone offset in the tm structure) */ localtime_r(&(t->tv_sec), &date); if (format == CUPSD_TIME_STANDARD) snprintf(s, sizeof(s), "[%02d/%s/%04d:%02d:%02d:%02d %+03ld%02ld]", date.tm_mday, months[date.tm_mon], 1900 + date.tm_year, date.tm_hour, date.tm_min, date.tm_sec, #ifdef HAVE_TM_GMTOFF date.tm_gmtoff / 3600, (date.tm_gmtoff / 60) % 60); #else timezone / 3600, (timezone / 60) % 60); #endif /* HAVE_TM_GMTOFF */ else snprintf(s, sizeof(s), "[%02d/%s/%04d:%02d:%02d:%02d.%06d %+03ld%02ld]", date.tm_mday, months[date.tm_mon], 1900 + date.tm_year, date.tm_hour, date.tm_min, date.tm_sec, (int)t->tv_usec, #ifdef HAVE_TM_GMTOFF date.tm_gmtoff / 3600, (date.tm_gmtoff / 60) % 60); #else timezone / 3600, (timezone / 60) % 60); #endif /* HAVE_TM_GMTOFF */ } return (s); } /* * 'cupsdLogFCMessage()' - Log a file checking message. */ void cupsdLogFCMessage( void *context, /* I - Printer (if any) */ _cups_fc_result_t result, /* I - Check result */ const char *message) /* I - Message to log */ { cupsd_printer_t *p = (cupsd_printer_t *)context; /* Printer */ cupsd_loglevel_t level; /* Log level */ if (result == _CUPS_FILE_CHECK_OK) level = CUPSD_LOG_DEBUG2; else level = CUPSD_LOG_ERROR; if (p) { cupsdLogMessage(level, "%s: %s", p->name, message); if (result == _CUPS_FILE_CHECK_MISSING || result == _CUPS_FILE_CHECK_WRONG_TYPE) { strlcpy(p->state_message, message, sizeof(p->state_message)); if (cupsdSetPrinterReasons(p, "+cups-missing-filter-warning")) cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, p, NULL, "%s", message); } else if (result == _CUPS_FILE_CHECK_PERMISSIONS || result == _CUPS_FILE_CHECK_RELATIVE_PATH) { strlcpy(p->state_message, message, sizeof(p->state_message)); if (cupsdSetPrinterReasons(p, "+cups-insecure-filter-warning")) cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, p, NULL, "%s", message); } } else cupsdLogMessage(level, "%s", message); } #ifdef HAVE_GSSAPI /* * 'cupsdLogGSSMessage()' - Log a GSSAPI error... */ int /* O - 1 on success, 0 on error */ cupsdLogGSSMessage( int level, /* I - Log level */ OM_uint32 major_status, /* I - Major GSSAPI status */ OM_uint32 minor_status, /* I - Minor GSSAPI status */ const char *message, /* I - printf-style message string */ ...) /* I - Additional args as needed */ { OM_uint32 err_major_status, /* Major status code for display */ err_minor_status; /* Minor status code for display */ OM_uint32 msg_ctx; /* Message context */ gss_buffer_desc major_status_string = GSS_C_EMPTY_BUFFER, /* Major status message */ minor_status_string = GSS_C_EMPTY_BUFFER; /* Minor status message */ int ret; /* Return value */ char buffer[8192]; /* Buffer for vsnprintf */ if (strchr(message, '%')) { /* * Format the message string... */ va_list ap; /* Pointer to arguments */ va_start(ap, message); vsnprintf(buffer, sizeof(buffer), message, ap); va_end(ap); message = buffer; } msg_ctx = 0; err_major_status = gss_display_status(&err_minor_status, major_status, GSS_C_GSS_CODE, GSS_C_NO_OID, &msg_ctx, &major_status_string); if (!GSS_ERROR(err_major_status)) gss_display_status(&err_minor_status, minor_status, GSS_C_MECH_CODE, GSS_C_NULL_OID, &msg_ctx, &minor_status_string); ret = cupsdLogMessage(level, "%s: %s, %s", message, (char *)major_status_string.value, (char *)minor_status_string.value); gss_release_buffer(&err_minor_status, &major_status_string); gss_release_buffer(&err_minor_status, &minor_status_string); return (ret); } #endif /* HAVE_GSSAPI */ /* * 'cupsdLogClient()' - Log a client message. */ int /* O - 1 on success, 0 on error */ cupsdLogClient(cupsd_client_t *con, /* I - Client connection */ int level, /* I - Log level */ const char *message, /* I - Printf-style message string */ ...) /* I - Additional arguments as needed */ { va_list ap, ap2; /* Argument pointers */ char clientmsg[1024];/* Format string for client message */ int status; /* Formatting status */ /* * See if we want to log this message... */ if (TestConfigFile || !ErrorLog) return (1); if (level > LogLevel) return (1); /* * Format and write the log message... */ if (con) snprintf(clientmsg, sizeof(clientmsg), "[Client %d] %s", con->number, message); else strlcpy(clientmsg, message, sizeof(clientmsg)); va_start(ap, message); do { va_copy(ap2, ap); status = format_log_line(clientmsg, ap2); va_end(ap2); } while (status == 0); va_end(ap); if (status > 0) return (cupsdWriteErrorLog(level, log_line)); else return (cupsdWriteErrorLog(CUPSD_LOG_ERROR, "Unable to allocate memory for log line.")); } /* * 'cupsdLogJob()' - Log a job message. */ int /* O - 1 on success, 0 on error */ cupsdLogJob(cupsd_job_t *job, /* I - Job */ int level, /* I - Log level */ const char *message, /* I - Printf-style message string */ ...) /* I - Additional arguments as needed */ { va_list ap, ap2; /* Argument pointers */ char jobmsg[1024]; /* Format string for job message */ int status; /* Formatting status */ /* * See if we want to log this message... */ if (TestConfigFile || !ErrorLog) return (1); if (level > LogLevel && LogDebugHistory <= 0) return (1); /* * Format and write the log message... */ if (job) snprintf(jobmsg, sizeof(jobmsg), "[Job %d] %s", job->id, message); else strlcpy(jobmsg, message, sizeof(jobmsg)); va_start(ap, message); do { va_copy(ap2, ap); status = format_log_line(jobmsg, ap2); va_end(ap2); } while (status == 0); va_end(ap); if (status > 0) { if (job && level > LogLevel && LogDebugHistory > 0) { /* * Add message to the job history... */ cupsd_joblog_t *temp; /* Copy of log message */ size_t log_len = strlen(log_line); /* Length of log message */ if ((temp = malloc(sizeof(cupsd_joblog_t) + log_len)) != NULL) { temp->time = time(NULL); memcpy(temp->message, log_line, log_len + 1); } if (!job->history) job->history = cupsArrayNew(NULL, NULL); if (job->history && temp) { cupsArrayAdd(job->history, temp); if (cupsArrayCount(job->history) > LogDebugHistory) { /* * Remove excess messages... */ temp = cupsArrayFirst(job->history); cupsArrayRemove(job->history, temp); free(temp); } } else if (temp) free(temp); return (1); } else if (level <= LogLevel) { #ifdef HAVE_SYSTEMD_SD_JOURNAL_H if (!strcmp(ErrorLog, "syslog")) { cupsd_printer_t *printer = job ? (job->printer ? job->printer : (job->dest ? cupsdFindDest(job->dest) : NULL)) : NULL; static const char * const job_states[] = { /* job-state strings */ "Pending", "PendingHeld", "Processing", "ProcessingStopped", "Canceled", "Aborted", "Completed" }; if (job) sd_journal_send("MESSAGE=%s", log_line, "PRIORITY=%i", log_levels[level], PWG_Event"=JobStateChanged", PWG_ServiceURI"=%s", printer ? printer->uri : "", PWG_JobID"=%d", job->id, PWG_JobState"=%s", job->state_value < IPP_JSTATE_PENDING ? "" : job_states[job->state_value - IPP_JSTATE_PENDING], PWG_JobImpressionsCompleted"=%d", ippGetInteger(job->impressions, 0), NULL); else sd_journal_send("MESSAGE=%s", log_line, "PRIORITY=%i", log_levels[level], NULL); return (1); } else #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (cupsdWriteErrorLog(level, log_line)); } else return (1); } else return (cupsdWriteErrorLog(CUPSD_LOG_ERROR, "Unable to allocate memory for log line.")); } /* * 'cupsdLogMessage()' - Log a message to the error log file. */ int /* O - 1 on success, 0 on error */ cupsdLogMessage(int level, /* I - Log level */ const char *message, /* I - printf-style message string */ ...) /* I - Additional args as needed */ { va_list ap, ap2; /* Argument pointers */ int status; /* Formatting status */ /* * See if we want to log this message... */ if (TestConfigFile && level <= CUPSD_LOG_WARN) { va_start(ap, message); vfprintf(stderr, message, ap); putc('\n', stderr); va_end(ap); return (1); } else if (!ErrorLog && level <= CUPSD_LOG_WARN) { va_start(ap, message); #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_printv(log_levels[level], message, ap); #elif defined(HAVE_VSYSLOG) vsyslog(LOG_LPR | log_levels[level], message, ap); #else vfprintf(stderr, message, ap); putc('\n', stderr); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ va_end(ap); return (1); } else if (level > LogLevel || !ErrorLog) return (1); #ifdef HAVE_SYSTEMD_SD_JOURNAL_H else if (!strcmp(ErrorLog, "syslog")) { va_start(ap, message); sd_journal_printv(log_levels[level], message, ap); va_end(ap); return (1); } #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Format and write the log message... */ va_start(ap, message); do { va_copy(ap2, ap); status = format_log_line(message, ap2); va_end(ap2); } while (status == 0); va_end(ap); if (status > 0) return (cupsdWriteErrorLog(level, log_line)); else return (cupsdWriteErrorLog(CUPSD_LOG_ERROR, "Unable to allocate memory for log line!")); } /* * 'cupsdLogPage()' - Log a page to the page log file. */ int /* O - 1 on success, 0 on error */ cupsdLogPage(cupsd_job_t *job, /* I - Job being printed */ const char *page) /* I - Page being printed */ { int i; /* Looping var */ char buffer[2048], /* Buffer for page log */ *bufptr, /* Pointer into buffer */ name[256]; /* Attribute name */ const char *format, /* Pointer into PageLogFormat */ *nameend; /* End of attribute name */ ipp_attribute_t *attr; /* Current attribute */ char number[256]; /* Page number */ int copies; /* Number of copies */ /* * Format the line going into the page log... */ if (!PageLogFormat) return (1); strlcpy(number, "1", sizeof(number)); copies = 1; sscanf(page, "%255s%d", number, &copies); for (format = PageLogFormat, bufptr = buffer; *format; format ++) { if (*format == '%') { format ++; switch (*format) { case '%' : /* Literal % */ if (bufptr < (buffer + sizeof(buffer) - 1)) *bufptr++ = '%'; break; case 'p' : /* Printer name */ strlcpy(bufptr, job->dest, sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; case 'j' : /* Job ID */ snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), "%d", job->id); bufptr += strlen(bufptr); break; case 'u' : /* Username */ strlcpy(bufptr, job->username ? job->username : "-", sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; case 'T' : /* Date and time */ strlcpy(bufptr, cupsdGetDateTime(NULL, LogTimeFormat), sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; case 'P' : /* Page number */ strlcpy(bufptr, number, sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; case 'C' : /* Number of copies */ snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), "%d", copies); bufptr += strlen(bufptr); break; case '{' : /* {attribute} */ if ((nameend = strchr(format, '}')) != NULL && (size_t)(nameend - format - 2) < (sizeof(name) - 1)) { /* * Pull the name from inside the brackets... */ memcpy(name, format + 1, (size_t)(nameend - format - 1)); name[nameend - format - 1] = '\0'; format = nameend; attr = ippFindAttribute(job->attrs, name, IPP_TAG_ZERO); if (!attr && !strcmp(name, "job-billing")) { /* * Handle alias "job-account-id" (which was standardized after * "job-billing" was defined for CUPS... */ attr = ippFindAttribute(job->attrs, "job-account-id", IPP_TAG_ZERO); } else if (!attr && !strcmp(name, "media")) { /* * Handle alias "media-col" which uses dimensions instead of * names... */ attr = ippFindAttribute(job->attrs, "media-col/media-size", IPP_TAG_BEGIN_COLLECTION); } if (attr) { /* * Add the attribute value... */ for (i = 0; i < attr->num_values && bufptr < (buffer + sizeof(buffer) - 1); i ++) { if (i) *bufptr++ = ','; switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), "%d", attr->values[i].integer); bufptr += strlen(bufptr); break; case IPP_TAG_BOOLEAN : snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), "%d", attr->values[i].boolean); bufptr += strlen(bufptr); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : strlcpy(bufptr, attr->values[i].string.text, sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; case IPP_TAG_BEGIN_COLLECTION : if (!strcmp(attr->name, "media-size")) { ipp_attribute_t *x_dimension = ippFindAttribute(ippGetCollection(attr, 0), "x-dimension", IPP_TAG_INTEGER); ipp_attribute_t *y_dimension = ippFindAttribute(ippGetCollection(attr, 0), "y-dimension", IPP_TAG_INTEGER); /* Media dimensions */ if (x_dimension && y_dimension) { pwg_media_t *pwg = pwgMediaForSize(ippGetInteger(x_dimension, 0), ippGetInteger(y_dimension, 0)); /* PWG media name */ if (pwg) { strlcpy(bufptr, pwg->pwg, sizeof(buffer) - (size_t)(bufptr - buffer)); break; } } } default : strlcpy(bufptr, "???", sizeof(buffer) - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); break; } } } else if (bufptr < (buffer + sizeof(buffer) - 1)) *bufptr++ = '-'; break; } default : if (bufptr < (buffer + sizeof(buffer) - 2)) { *bufptr++ = '%'; *bufptr++ = *format; } break; } } else if (bufptr < (buffer + sizeof(buffer) - 1)) *bufptr++ = *format; } *bufptr = '\0'; #ifdef HAVE_SYSTEMD_SD_JOURNAL_H if (!strcmp(PageLog, "syslog")) { static const char * const job_states[] = { /* job-state strings */ "Pending", "PendingHeld", "Processing", "ProcessingStopped", "Canceled", "Aborted", "Completed" }; sd_journal_send("MESSAGE=%s", buffer, "PRIORITY=%i", LOG_INFO, PWG_Event"=JobStateChanged", PWG_ServiceURI"=%s", job->printer->uri, PWG_JobID"=%d", job->id, PWG_JobState"=%s", job_states[job->state_value - IPP_JSTATE_PENDING], PWG_JobImpressionsCompleted"=%d", ippGetInteger(job->impressions, 0), NULL); return (1); } #elif defined(HAVE_VSYSLOG) /* * See if we are logging pages via syslog... */ if (!strcmp(PageLog, "syslog")) { syslog(LOG_INFO, "%s", buffer); return (1); } #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Not using syslog; check the log file... */ if (!cupsdCheckLogFile(&PageFile, PageLog)) return (0); /* * Print a page log entry of the form: * * printer user job-id [DD/MON/YYYY:HH:MM:SS +TTTT] page num-copies \ * billing hostname */ cupsFilePrintf(PageFile, "%s\n", buffer); cupsFileFlush(PageFile); return (1); } /* * 'cupsdLogRequest()' - Log an HTTP request in Common Log Format. */ int /* O - 1 on success, 0 on error */ cupsdLogRequest(cupsd_client_t *con, /* I - Request to log */ http_status_t code) /* I - Response code */ { char temp[2048]; /* Temporary string for URI */ static const char * const states[] = /* HTTP client states... */ { "WAITING", "OPTIONS", "GET", "GET", "HEAD", "POST", "POST", "POST", "PUT", "PUT", "DELETE", "TRACE", "CLOSE", "STATUS" }; /* * Filter requests as needed... */ if (AccessLogLevel == CUPSD_ACCESSLOG_NONE || !AccessLog) return (1); else if (AccessLogLevel < CUPSD_ACCESSLOG_ALL) { /* * Eliminate simple GET, POST, and PUT requests... */ if ((con->operation == HTTP_GET && strncmp(con->uri, "/admin/conf", 11) && strncmp(con->uri, "/admin/log", 10)) || (con->operation == HTTP_POST && !con->request && strncmp(con->uri, "/admin", 6)) || (con->operation != HTTP_GET && con->operation != HTTP_POST && con->operation != HTTP_PUT)) return (1); if (con->request && con->response && (con->response->request.status.status_code < IPP_REDIRECTION_OTHER_SITE || con->response->request.status.status_code == IPP_NOT_FOUND)) { /* * Check successful requests... */ ipp_op_t op = con->request->request.op.operation_id; static cupsd_accesslog_t standard_ops[] = { CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_ACTIONS,/* Print-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Print-URI */ CUPSD_ACCESSLOG_ACTIONS,/* Validate-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Create-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Send-Document */ CUPSD_ACCESSLOG_ACTIONS,/* Send-URI */ CUPSD_ACCESSLOG_ACTIONS,/* Cancel-Job */ CUPSD_ACCESSLOG_ALL, /* Get-Job-Attributes */ CUPSD_ACCESSLOG_ALL, /* Get-Jobs */ CUPSD_ACCESSLOG_ALL, /* Get-Printer-Attributes */ CUPSD_ACCESSLOG_ACTIONS,/* Hold-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Release-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Restart-Job */ CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_CONFIG, /* Pause-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Resume-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Purge-Jobs */ CUPSD_ACCESSLOG_CONFIG, /* Set-Printer-Attributes */ CUPSD_ACCESSLOG_ACTIONS,/* Set-Job-Attributes */ CUPSD_ACCESSLOG_CONFIG, /* Get-Printer-Supported-Values */ CUPSD_ACCESSLOG_ACTIONS,/* Create-Printer-Subscription */ CUPSD_ACCESSLOG_ACTIONS,/* Create-Job-Subscription */ CUPSD_ACCESSLOG_ALL, /* Get-Subscription-Attributes */ CUPSD_ACCESSLOG_ALL, /* Get-Subscriptions */ CUPSD_ACCESSLOG_ACTIONS,/* Renew-Subscription */ CUPSD_ACCESSLOG_ACTIONS,/* Cancel-Subscription */ CUPSD_ACCESSLOG_ALL, /* Get-Notifications */ CUPSD_ACCESSLOG_ACTIONS,/* Send-Notifications */ CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_ALL, /* reserved */ CUPSD_ACCESSLOG_ALL, /* Get-Print-Support-Files */ CUPSD_ACCESSLOG_CONFIG, /* Enable-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Disable-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Pause-Printer-After-Current-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Hold-New-Jobs */ CUPSD_ACCESSLOG_ACTIONS,/* Release-Held-New-Jobs */ CUPSD_ACCESSLOG_CONFIG, /* Deactivate-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Activate-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Restart-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Shutdown-Printer */ CUPSD_ACCESSLOG_CONFIG, /* Startup-Printer */ CUPSD_ACCESSLOG_ACTIONS,/* Reprocess-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Cancel-Current-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Suspend-Current-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Resume-Job */ CUPSD_ACCESSLOG_ACTIONS,/* Promote-Job */ CUPSD_ACCESSLOG_ACTIONS /* Schedule-Job-After */ }; static cupsd_accesslog_t cups_ops[] = { CUPSD_ACCESSLOG_ALL, /* CUPS-Get-Default */ CUPSD_ACCESSLOG_ALL, /* CUPS-Get-Printers */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Add-Modify-Printer */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Delete-Printer */ CUPSD_ACCESSLOG_ALL, /* CUPS-Get-Classes */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Add-Modify-Class */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Delete-Class */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Accept-Jobs */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Reject-Jobs */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Set-Default */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Get-Devices */ CUPSD_ACCESSLOG_CONFIG, /* CUPS-Get-PPDs */ CUPSD_ACCESSLOG_ACTIONS,/* CUPS-Move-Job */ CUPSD_ACCESSLOG_ACTIONS,/* CUPS-Authenticate-Job */ CUPSD_ACCESSLOG_ALL /* CUPS-Get-PPD */ }; if ((op <= IPP_SCHEDULE_JOB_AFTER && standard_ops[op] > AccessLogLevel) || (op >= CUPS_GET_DEFAULT && op <= CUPS_GET_PPD && cups_ops[op - CUPS_GET_DEFAULT] > AccessLogLevel)) return (1); } } #ifdef HAVE_SYSTEMD_SD_JOURNAL_H if (!strcmp(AccessLog, "syslog")) { sd_journal_print(LOG_INFO, "REQUEST %s - %s \"%s %s HTTP/%d.%d\" %d " CUPS_LLFMT " %s %s", con->http->hostname, con->username[0] != '\0' ? con->username : "-", states[con->operation], _httpEncodeURI(temp, con->uri, sizeof(temp)), con->http->version / 100, con->http->version % 100, code, CUPS_LLCAST con->bytes, con->request ? ippOpString(con->request->request.op.operation_id) : "-", con->response ? ippErrorString(con->response->request.status.status_code) : "-"); return (1); } #elif defined(HAVE_VSYSLOG) /* * See if we are logging accesses via syslog... */ if (!strcmp(AccessLog, "syslog")) { syslog(LOG_INFO, "REQUEST %s - %s \"%s %s HTTP/%d.%d\" %d " CUPS_LLFMT " %s %s\n", con->http->hostname, con->username[0] != '\0' ? con->username : "-", states[con->operation], _httpEncodeURI(temp, con->uri, sizeof(temp)), con->http->version / 100, con->http->version % 100, code, CUPS_LLCAST con->bytes, con->request ? ippOpString(con->request->request.op.operation_id) : "-", con->response ? ippErrorString(con->response->request.status.status_code) : "-"); return (1); } #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Not using syslog; check the log file... */ if (!cupsdCheckLogFile(&AccessFile, AccessLog)) return (0); /* * Write a log of the request in "common log format"... */ cupsFilePrintf(AccessFile, "%s - %s %s \"%s %s HTTP/%d.%d\" %d " CUPS_LLFMT " %s %s\n", con->http->hostname, con->username[0] != '\0' ? con->username : "-", cupsdGetDateTime(&(con->start), LogTimeFormat), states[con->operation], _httpEncodeURI(temp, con->uri, sizeof(temp)), con->http->version / 100, con->http->version % 100, code, CUPS_LLCAST con->bytes, con->request ? ippOpString(con->request->request.op.operation_id) : "-", con->response ? ippErrorString(con->response->request.status.status_code) : "-"); cupsFileFlush(AccessFile); return (1); } /* * 'cupsdWriteErrorLog()' - Write a line to the ErrorLog. */ int /* O - 1 on success, 0 on failure */ cupsdWriteErrorLog(int level, /* I - Log level */ const char *message) /* I - Message string */ { int ret = 1; /* Return value */ static const char levels[] = /* Log levels... */ { ' ', 'X', 'A', 'C', 'E', 'W', 'N', 'I', 'D', 'd' }; #ifdef HAVE_SYSTEMD_SD_JOURNAL_H if (!strcmp(ErrorLog, "syslog")) { sd_journal_print(log_levels[level], "%s", message); return (1); } #elif defined(HAVE_VSYSLOG) /* * See if we are logging errors via syslog... */ if (!strcmp(ErrorLog, "syslog")) { syslog(log_levels[level], "%s", message); return (1); } #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Not using syslog; check the log file... */ _cupsMutexLock(&log_mutex); if (!cupsdCheckLogFile(&ErrorFile, ErrorLog)) { ret = 0; } else { /* * Write the log message... */ cupsFilePrintf(ErrorFile, "%c %s %s\n", levels[level], cupsdGetDateTime(NULL, LogTimeFormat), message); cupsFileFlush(ErrorFile); } _cupsMutexUnlock(&log_mutex); return (ret); } /* * 'format_log_line()' - Format a line for a log file. * * This function resizes a global string buffer as needed. Each call returns * a pointer to this buffer, so the contents are only good until the next call * to format_log_line()... */ static int /* O - -1 for fatal, 0 for retry, 1 for success */ format_log_line(const char *message, /* I - Printf-style format string */ va_list ap) /* I - Argument list */ { ssize_t len; /* Length of formatted line */ /* * Allocate the line buffer as needed... */ if (!log_linesize) { log_linesize = 8192; log_line = malloc(log_linesize); if (!log_line) return (-1); } /* * Format the log message... */ len = _cups_safe_vsnprintf(log_line, log_linesize, message, ap); /* * Resize the buffer as needed... */ if ((size_t)len >= log_linesize && log_linesize < 65536) { char *temp; /* Temporary string pointer */ len ++; if (len < 8192) len = 8192; else if (len > 65536) len = 65536; temp = realloc(log_line, (size_t)len); if (temp) { log_line = temp; log_linesize = (size_t)len; return (0); } } return (1); } cups-2.4.7/scheduler/listen.c0000644000175000017500000001472614502571342016013 0ustar zdohnalzdohnal/* * Server listening routines for the CUPS scheduler. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" /* * Make sure the IPV6_V6ONLY is defined on Linux - older versions of * glibc don't define it even if the kernel supports it... */ #if defined(__linux) && !defined(IPV6_V6ONLY) # define IPV6_V6ONLY 26 #endif /* __linux && !IPV6_V6ONLY */ /* * 'cupsdDeleteAllListeners()' - Delete all listeners. */ void cupsdDeleteAllListeners(void) { cupsd_listener_t *lis; /* Current listening socket */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) #ifdef HAVE_ONDEMAND if (!lis->on_demand) #endif /* HAVE_ONDEMAND */ { cupsArrayRemove(Listeners, lis); free(lis); } if (cupsArrayCount(Listeners) == 0) { cupsArrayDelete(Listeners); Listeners = NULL; } } /* * 'cupsdPauseListening()' - Clear input polling on all listening sockets... */ void cupsdPauseListening(void) { cupsd_listener_t *lis; /* Current listening socket */ if (cupsArrayCount(Listeners) < 1) return; if (cupsArrayCount(Clients) == MaxClients) cupsdLogMessage(CUPSD_LOG_WARN, "Max clients reached, holding new connections..."); else if (errno == ENFILE || errno == EMFILE) cupsdLogMessage(CUPSD_LOG_WARN, "Too many open files, holding new connections for " "30 seconds..."); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdPauseListening: Clearing input bits..."); for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) cupsdRemoveSelect(lis->fd); ListeningPaused = time(NULL) + 30; } /* * 'cupsdResumeListening()' - Set input polling on all listening sockets... */ void cupsdResumeListening(void) { cupsd_listener_t *lis; /* Current listening socket */ if (cupsArrayCount(Listeners) < 1) return; cupsdLogMessage(CUPSD_LOG_INFO, "Resuming new connection processing..."); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdResumeListening: Setting input bits..."); for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) cupsdAddSelect(lis->fd, (cupsd_selfunc_t)cupsdAcceptClient, NULL, lis); ListeningPaused = 0; } /* * 'cupsdStartListening()' - Create all listening sockets... */ void cupsdStartListening(void) { int p; /* Port number */ cupsd_listener_t *lis; /* Current listening socket */ char s[256]; /* String address */ const char *have_domain; /* Have a domain socket? */ static const char * const encryptions[] = { /* Encryption values */ "IfRequested", "Never", "Required", "Always" }; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStartListening: %d Listeners", cupsArrayCount(Listeners)); /* * Setup socket listeners... */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners), LocalPort = 0, have_domain = NULL; lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { httpAddrString(&(lis->address), s, sizeof(s)); p = httpAddrPort(&(lis->address)); /* * If needed, create a socket for listening... */ if (lis->fd == -1) { /* * Create a socket for listening... */ lis->fd = httpAddrListen(&(lis->address), p); if (lis->fd == -1) { cupsdLogMessage(errno == EAFNOSUPPORT ? CUPSD_LOG_INFO : CUPSD_LOG_ERROR, "Unable to open listen socket for address %s:%d - %s.", s, p, strerror(errno)); #ifdef AF_INET6 /* * IPv6 is often disabled while DNS returns IPv6 addresses... */ if (lis->address.addr.sa_family != AF_INET6 && (FatalErrors & CUPSD_FATAL_LISTEN)) cupsdEndProcess(getpid(), 0); #else if (FatalErrors & CUPSD_FATAL_LISTEN) cupsdEndProcess(getpid(), 0); #endif /* AF_INET6 */ continue; } } if (p) cupsdLogMessage(CUPSD_LOG_INFO, "Listening to %s:%d on fd %d...", s, p, lis->fd); else cupsdLogMessage(CUPSD_LOG_INFO, "Listening to %s on fd %d...", s, lis->fd); /* * Save the first port that is bound to the local loopback or * "any" address... */ if ((!LocalPort || LocalEncryption == HTTP_ENCRYPT_ALWAYS) && p > 0 && (httpAddrLocalhost(&(lis->address)) || httpAddrAny(&(lis->address)))) { LocalPort = p; LocalEncryption = lis->encryption; } #ifdef AF_LOCAL if (lis->address.addr.sa_family == AF_LOCAL && !have_domain) have_domain = lis->address.un.sun_path; #endif /* AF_LOCAL */ } /* * Make sure that we are listening on localhost! */ if (!LocalPort && !have_domain) { cupsdLogMessage(CUPSD_LOG_EMERG, "No Listen or Port lines were found to allow access via " "localhost."); if (FatalErrors & (CUPSD_FATAL_CONFIG | CUPSD_FATAL_LISTEN)) cupsdEndProcess(getpid(), 0); } /* * Set the CUPS_SERVER, IPP_PORT, and CUPS_ENCRYPTION variables based on * the listeners... */ if (have_domain) { /* * Use domain sockets for the local connection... */ cupsdSetEnv("CUPS_SERVER", have_domain); LocalEncryption = HTTP_ENCRYPT_IF_REQUESTED; } else { /* * Use the default local loopback address for the server... */ cupsdSetEnv("CUPS_SERVER", "localhost"); } cupsdSetEnv("CUPS_ENCRYPTION", encryptions[LocalEncryption]); if (LocalPort) cupsdSetEnvf("IPP_PORT", "%d", LocalPort); /* * Resume listening for connections... */ cupsdResumeListening(); } /* * 'cupsdStopListening()' - Close all listening sockets... */ void cupsdStopListening(void) { cupsd_listener_t *lis; /* Current listening socket */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdStopListening: closing all listen sockets."); cupsdPauseListening(); for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { #ifdef HAVE_ONDEMAND if (!lis->on_demand && lis->fd != -1) { httpAddrClose(&(lis->address), lis->fd); lis->fd = -1; } #else if (lis->fd != -1) { httpAddrClose(&(lis->address), lis->fd); lis->fd = -1; } #endif /* HAVE_ONDEMAND */ } } cups-2.4.7/scheduler/libcupsmime.exp0000644000175000017500000000050314502571342017364 0ustar zdohnalzdohnal_mimeAddFilter _mimeAddType _mimeAddTypeRule _mimeDelete _mimeDeleteFilter _mimeDeleteType _mimeFileType _mimeFilter _mimeFilter2 _mimeFilterLookup _mimeFirstFilter _mimeFirstType _mimeLoad _mimeLoadFilters _mimeLoadTypes _mimeNew _mimeNextFilter _mimeNextType _mimeNumFilters _mimeNumTypes _mimeSetErrorCallback _mimeType cups-2.4.7/scheduler/job.h0000644000175000017500000001417714502571342015274 0ustar zdohnalzdohnal/* * Print job definitions for the CUPS scheduler. * * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Constants... */ typedef enum cupsd_jobaction_e /**** Actions for state changes ****/ { CUPSD_JOB_DEFAULT, /* Use default action */ CUPSD_JOB_FORCE, /* Force the change */ CUPSD_JOB_PURGE /* Force the change and purge */ } cupsd_jobaction_t; /* * Job request structure... */ struct cupsd_job_s /**** Job request ****/ { int id, /* Job ID */ priority, /* Job priority */ dirty; /* Do we need to write the "c" file? */ ipp_jstate_t state_value; /* Cached job-state */ int pending_timeout;/* Non-zero if the job was created and * waiting on files */ char *username; /* Printing user */ char *dest; /* Destination printer or class */ char *name; /* Job name/title */ int koctets; /* job-k-octets */ cups_ptype_t dtype; /* Destination type */ cupsd_printer_t *printer; /* Printer this job is assigned to */ int num_files; /* Number of files in job */ mime_type_t **filetypes; /* File types */ int *compressions; /* Compression status of each file */ ipp_attribute_t *impressions, /* job-impressions-completed */ *sheets; /* job-media-sheets-completed */ time_t access_time, /* Last access time */ cancel_time, /* When to cancel/send SIGTERM */ creation_time, /* When job was created */ completed_time, /* When job was completed (0 if not) */ file_time, /* Job file retain time */ history_time, /* Job history retain time */ hold_until, /* Hold expiration date/time */ kill_time; /* When to send SIGKILL */ ipp_attribute_t *state; /* Job state */ ipp_attribute_t *reasons; /* Job state reasons */ ipp_attribute_t *job_sheets; /* Job sheets (NULL if none) */ ipp_attribute_t *printer_message, /* job-printer-state-message */ *printer_reasons; /* job-printer-state-reasons */ int current_file; /* Current file in job */ ipp_t *attrs; /* Job attributes */ int print_pipes[2], /* Print data pipes */ back_pipes[2], /* Backchannel pipes */ side_pipes[2], /* Sidechannel pipes */ status_pipes[2];/* Status pipes */ cupsd_statbuf_t *status_buffer; /* Status buffer for this job */ int status_level; /* Highest log level in a status * message */ int cost; /* Filtering cost */ int pending_cost; /* Waiting for FilterLimit */ int filters[MAX_FILTERS + 1]; /* Filter process IDs, 0 terminated */ int backend; /* Backend process ID */ int status; /* Status code from filters */ int tries; /* Number of tries for this job */ int completed; /* cups-waiting-for-job-completed seen */ int retry_as_raster;/* Need to retry the job as raster */ char *auth_env[3], /* AUTH_xxx environment variables, * if any */ *auth_uid; /* AUTH_UID environment variable */ void *profile, /* Security profile for filters */ *bprofile; /* Security profile for backend */ cups_array_t *history; /* Debug log history */ int progress; /* Printing progress */ int num_keywords; /* Number of PPD keywords */ cups_option_t *keywords; /* PPD keywords */ }; typedef struct cupsd_joblog_s /**** Job log message ****/ { time_t time; /* Time of message */ char message[1]; /* Message string */ } cupsd_joblog_t; /* * Globals... */ VAR int JobHistory VALUE(INT_MAX); /* Preserve job history? */ VAR int JobFiles VALUE(86400); /* Preserve job files? */ VAR time_t JobHistoryUpdate VALUE(0); /* Time for next job history update */ VAR int MaxJobs VALUE(0), /* Max number of jobs */ MaxActiveJobs VALUE(0), /* Max number of active jobs */ MaxHoldTime VALUE(0), /* Max time for indefinite hold */ MaxJobsPerUser VALUE(0), /* Max jobs per user */ MaxJobsPerPrinter VALUE(0), /* Max jobs per printer */ MaxJobTime VALUE(3 * 60 * 60); /* Max time for a job */ VAR int JobAutoPurge VALUE(0); /* Automatically purge jobs */ VAR cups_array_t *Jobs VALUE(NULL), /* List of current jobs */ *ActiveJobs VALUE(NULL), /* List of active jobs */ *PrintingJobs VALUE(NULL); /* List of jobs that are printing */ VAR int NextJobId VALUE(1); /* Next job ID to use */ VAR int JobKillDelay VALUE(DEFAULT_TIMEOUT), /* Delay before killing jobs */ JobRetryLimit VALUE(5), /* Max number of tries */ JobRetryInterval VALUE(300); /* Seconds between retries */ /* * Prototypes... */ extern cupsd_job_t *cupsdAddJob(int priority, const char *dest); extern void cupsdCancelJobs(const char *dest, const char *username, int purge); extern void cupsdCheckJobs(void); extern void cupsdCleanJobs(void); extern void cupsdContinueJob(cupsd_job_t *job); extern void cupsdDeleteJob(cupsd_job_t *job, cupsd_jobaction_t action); extern cupsd_job_t *cupsdFindJob(int id); extern void cupsdFreeAllJobs(void); extern cups_array_t *cupsdGetCompletedJobs(cupsd_printer_t *p); extern int cupsdGetPrinterJobCount(const char *dest); extern int cupsdGetUserJobCount(const char *username); extern void cupsdLoadAllJobs(void); extern int cupsdLoadJob(cupsd_job_t *job); extern void cupsdMoveJob(cupsd_job_t *job, cupsd_printer_t *p); extern void cupsdReleaseJob(cupsd_job_t *job); extern void cupsdRestartJob(cupsd_job_t *job); extern void cupsdSaveAllJobs(void); extern void cupsdSaveJob(cupsd_job_t *job); extern void cupsdSetJobHoldUntil(cupsd_job_t *job, const char *when, int update); extern void cupsdSetJobPriority(cupsd_job_t *job, int priority); extern void cupsdSetJobState(cupsd_job_t *job, ipp_jstate_t newstate, cupsd_jobaction_t action, const char *message, ...) __attribute__((__format__(__printf__, 4, 5))); extern void cupsdStopAllJobs(cupsd_jobaction_t action, int kill_delay); extern int cupsdTimeoutJob(cupsd_job_t *job); extern void cupsdUnloadCompletedJobs(void); extern void cupsdUpdateJobs(void); cups-2.4.7/scheduler/job.c0000644000175000017500000044354414502571342015273 0ustar zdohnalzdohnal/* * Job management routines for the CUPS scheduler. * * Copyright © 2022-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #include #include #ifdef __APPLE__ # include # ifdef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H # include # endif /* HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H */ #endif /* __APPLE__ */ /* * Design Notes for Job Management * ------------------------------- * * STATE CHANGES * * pending Do nothing/check jobs * pending-held Send SIGTERM to filters and backend * processing Do nothing/start job * stopped Send SIGKILL to filters and backend * canceled Send SIGTERM to filters and backend * aborted Finalize * completed Finalize * * Finalize clears the printer <-> job association, deletes the status * buffer, closes all of the pipes, etc. and doesn't get run until all of * the print processes are finished. * * UNLOADING OF JOBS (cupsdUnloadCompletedJobs) * * We unload the job attributes when they are not needed to reduce overall * memory consumption. We don't unload jobs where job->state_value < * IPP_JOB_STOPPED, job->printer != NULL, or job->access_time is recent. * * STARTING OF JOBS (start_job) * * When a job is started, a status buffer, several pipes, a security * profile, and a backend process are created for the life of that job. * These are shared for every file in a job. For remote print jobs, the * IPP backend is provided with every file in the job and no filters are * run. * * The job->printer member tracks which printer is printing a job, which * can be different than the destination in job->dest for classes. The * printer object also has a job pointer to track which job is being * printed. * * PRINTING OF JOB FILES (cupsdContinueJob) * * Each file in a job is filtered by 0 or more programs. After getting the * list of filters needed and the total cost, the job is either passed or * put back to the processing state until the current FilterLevel comes down * enough to allow printing. * * If we can print, we build a string for the print options and run each of * the filters, piping the output from one into the next. * * JOB STATUS UPDATES (update_job) * * The update_job function gets called whenever there are pending messages * on the status pipe. These generally are updates to the marker-*, * printer-state-message, or printer-state-reasons attributes. On EOF, * finalize_job is called to clean up. * * FINALIZING JOBS (finalize_job) * * When all filters and the backend are done, we set the job state to * completed (no errors), aborted (filter errors or abort-job policy), * pending-held (auth required or retry-job policy), or pending * (retry-current-job or stop-printer policies) as appropriate. * * Then we close the pipes and free the status buffers and profiles. * * JOB FILE COMPLETION (process_children in main.c) * * For multiple-file jobs, process_children (in main.c) sees that all * filters have exited and calls in to print the next file if there are * more files in the job, otherwise it waits for the backend to exit and * update_job to do the cleanup. */ /* * Local globals... */ static mime_filter_t gziptoany_filter = { NULL, /* Source type */ NULL, /* Destination type */ 0, /* Cost */ "gziptoany" /* Filter program to run */ }; /* * Local functions... */ static int compare_active_jobs(void *first, void *second, void *data); static int compare_completed_jobs(void *first, void *second, void *data); static int compare_jobs(void *first, void *second, void *data); static void dump_job_history(cupsd_job_t *job); static void finalize_job(cupsd_job_t *job, int set_job_state); static void free_job_history(cupsd_job_t *job); static char *get_options(cupsd_job_t *job, int banner_page, char *copies, size_t copies_size, char *title, size_t title_size); static size_t ipp_length(ipp_t *ipp); static void load_job_cache(const char *filename); static void load_next_job_id(const char *filename); static void load_request_root(void); static void remove_job_files(cupsd_job_t *job); static void remove_job_history(cupsd_job_t *job); static void set_time(cupsd_job_t *job, const char *name); static void start_job(cupsd_job_t *job, cupsd_printer_t *printer); static void stop_job(cupsd_job_t *job, cupsd_jobaction_t action); static void unload_job(cupsd_job_t *job); static void update_job(cupsd_job_t *job); static void update_job_attrs(cupsd_job_t *job, int do_message); /* * 'cupsdAddJob()' - Add a new job to the job queue. */ cupsd_job_t * /* O - New job record */ cupsdAddJob(int priority, /* I - Job priority */ const char *dest) /* I - Job destination */ { cupsd_job_t *job; /* New job record */ if ((job = calloc(1, sizeof(cupsd_job_t))) == NULL) return (NULL); job->id = NextJobId ++; job->priority = priority; job->back_pipes[0] = -1; job->back_pipes[1] = -1; job->print_pipes[0] = -1; job->print_pipes[1] = -1; job->side_pipes[0] = -1; job->side_pipes[1] = -1; job->status_pipes[0] = -1; job->status_pipes[1] = -1; cupsdSetString(&job->dest, dest); /* * Add the new job to the "all jobs" and "active jobs" lists... */ cupsArrayAdd(Jobs, job); cupsArrayAdd(ActiveJobs, job); return (job); } /* * 'cupsdCancelJobs()' - Cancel all jobs for the given destination/user. */ void cupsdCancelJobs(const char *dest, /* I - Destination to cancel */ const char *username, /* I - Username or NULL */ int purge) /* I - Purge jobs? */ { cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { if ((!job->dest || !job->username) && !cupsdLoadJob(job)) continue; if ((!dest || !strcmp(job->dest, dest)) && (!username || !strcmp(job->username, username))) { /* * Cancel all jobs matching this destination/user... */ if (purge) cupsdSetJobState(job, IPP_JOB_CANCELED, CUPSD_JOB_PURGE, "Job purged by user."); else if (job->state_value < IPP_JOB_CANCELED) cupsdSetJobState(job, IPP_JOB_CANCELED, CUPSD_JOB_DEFAULT, "Job canceled by user."); } } } /* * 'cupsdCheckJobs()' - Check the pending jobs and start any if the destination * is available. */ void cupsdCheckJobs(void) { cupsd_job_t *job; /* Current job in queue */ cupsd_printer_t *printer, /* Printer destination */ *pclass; /* Printer class destination */ ipp_attribute_t *attr; /* Job attribute */ time_t curtime; /* Current time */ const char *reasons; /* job-state-reasons value */ curtime = time(NULL); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCheckJobs: %d active jobs, sleeping=%d, ac-power=%d, reload=%d, curtime=%ld", cupsArrayCount(ActiveJobs), Sleeping, ACPower, NeedReload, (long)curtime); for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCheckJobs: Job %d - dest=\"%s\", printer=%p, " "state=%d, cancel_time=%ld, hold_until=%ld, kill_time=%ld, " "pending_cost=%d, pending_timeout=%ld", job->id, job->dest, job->printer, job->state_value, (long)job->cancel_time, (long)job->hold_until, (long)job->kill_time, job->pending_cost, (long)job->pending_timeout); /* * Kill jobs if they are unresponsive... */ if (job->kill_time && job->kill_time <= curtime) { if (!job->completed) cupsdLogJob(job, CUPSD_LOG_ERROR, "Stopping unresponsive job."); stop_job(job, CUPSD_JOB_FORCE); continue; } /* * Cancel stuck jobs... */ if (job->cancel_time && job->cancel_time <= curtime) { int cancel_after; /* job-cancel-after value */ attr = ippFindAttribute(job->attrs, "job-cancel-after", IPP_TAG_INTEGER); cancel_after = attr ? ippGetInteger(attr, 0) : MaxJobTime; if (job->completed) cupsdSetJobState(job, IPP_JOB_CANCELED, CUPSD_JOB_FORCE, "Marking stuck job as completed after %d seconds.", cancel_after); else cupsdSetJobState(job, IPP_JOB_CANCELED, CUPSD_JOB_DEFAULT, "Canceling stuck job after %d seconds.", cancel_after); continue; } /* * Start held jobs if they are ready... */ if (job->state_value == IPP_JOB_HELD && job->hold_until && job->hold_until < curtime) { if (job->pending_timeout) { /* * This job is pending; check that we don't have an active Send-Document * operation in progress on any of the client connections, then timeout * the job so we can start printing... */ cupsd_client_t *con; /* Current client connection */ for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) if (con->request && con->request->request.op.operation_id == IPP_SEND_DOCUMENT) break; if (con) continue; if (cupsdTimeoutJob(job)) continue; cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job submission timed out."); cupsdLogJob(job, CUPSD_LOG_ERROR, "Job submission timed out."); } else cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job hold expired."); } /* * Continue jobs that are waiting on the FilterLimit... */ if (job->pending_cost > 0 && ((FilterLevel + job->pending_cost) < FilterLimit || FilterLevel == 0)) cupsdContinueJob(job); /* * Skip jobs that where held-on-create */ reasons = ippGetString(job->reasons, 0, NULL); if (reasons && !strcmp(reasons, "job-held-on-create")) { /* * Check whether the printer is still holding new jobs... */ printer = cupsdFindDest(job->dest); if (printer->holding_new_jobs) continue; ippSetString(job->attrs, &job->reasons, 0, "none"); } /* * Start pending jobs if the destination is available... */ if (job->state_value == IPP_JOB_PENDING && !NeedReload && (!Sleeping || ACPower) && !DoingShutdown && !job->printer) { printer = cupsdFindDest(job->dest); pclass = NULL; while (printer && (printer->type & CUPS_PRINTER_CLASS)) { /* * If the class is remote, just pass it to the remote server... */ pclass = printer; if (pclass->state == IPP_PRINTER_STOPPED) printer = NULL; else if (pclass->type & CUPS_PRINTER_REMOTE) break; else printer = cupsdFindAvailablePrinter(printer->name); } if (!printer && !pclass) { /* * Whoa, the printer and/or class for this destination went away; * cancel the job... */ cupsdSetJobState(job, IPP_JOB_ABORTED, CUPSD_JOB_PURGE, "Job aborted because the destination printer/class " "has gone away."); } else if (printer) { /* * See if the printer is available or remote and not printing a job; * if so, start the job... */ if (pclass) { /* * Add/update a job-printer-uri-actual attribute for this job * so that we know which printer actually printed the job... */ if ((attr = ippFindAttribute(job->attrs, "job-printer-uri-actual", IPP_TAG_URI)) != NULL) ippSetString(job->attrs, &attr, 0, printer->uri); else ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri-actual", NULL, printer->uri); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } if (!printer->job && printer->state == IPP_PRINTER_IDLE) { /* * Start the job... */ cupsArraySave(ActiveJobs); start_job(job, printer); cupsArrayRestore(ActiveJobs); } } } } } /* * 'cupsdCleanJobs()' - Clean out old jobs. */ void cupsdCleanJobs(void) { cupsd_job_t *job; /* Current job */ time_t curtime; /* Current time */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCleanJobs: MaxJobs=%d, JobHistory=%d, JobFiles=%d", MaxJobs, JobHistory, JobFiles); if (MaxJobs <= 0 && JobHistory == INT_MAX && JobFiles == INT_MAX) return; curtime = time(NULL); JobHistoryUpdate = 0; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCleanJobs: curtime=%d", (int)curtime); for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCleanJobs: Job %d, state=%d, printer=%p, history_time=%d, file_time=%d, num_files=%d", job->id, (int)job->state_value, (void *)job->printer, (int)job->history_time, (int)job->file_time, (int)job->num_files); if ((job->history_time && job->history_time < JobHistoryUpdate) || !JobHistoryUpdate) JobHistoryUpdate = job->history_time; if (job->num_files > 0 && ((job->file_time && job->file_time < JobHistoryUpdate) || !JobHistoryUpdate)) JobHistoryUpdate = job->file_time; if (job->state_value >= IPP_JOB_CANCELED && !job->printer) { /* * Expire old jobs (or job files)... */ if ((MaxJobs > 0 && cupsArrayCount(Jobs) >= MaxJobs) || (job->history_time && job->history_time <= curtime)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing from history."); cupsdDeleteJob(job, CUPSD_JOB_PURGE); } else if (job->file_time && job->file_time <= curtime && job->num_files > 0) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Removing document files."); remove_job_files(job); cupsdMarkDirty(CUPSD_DIRTY_JOBS); } } } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCleanJobs: JobHistoryUpdate=%ld", (long)JobHistoryUpdate); } /* * 'cupsdContinueJob()' - Continue printing with the next file in a job. */ void cupsdContinueJob(cupsd_job_t *job) /* I - Job */ { int i; /* Looping var */ int slot; /* Pipe slot */ cups_array_t *filters = NULL,/* Filters for job */ *prefilters; /* Filters with prefilters */ mime_filter_t *filter, /* Current filter */ *prefilter, /* Prefilter */ port_monitor; /* Port monitor filter */ char scheme[255]; /* Device URI scheme */ ipp_attribute_t *attr; /* Current attribute */ const char *ptr, /* Pointer into value */ *abort_message; /* Abort message */ ipp_jstate_t abort_state = IPP_JOB_STOPPED; /* New job state on abort */ struct stat backinfo; /* Backend file information */ int backroot; /* Run backend as root? */ int pid; /* Process ID of new filter process */ int banner_page; /* 1 if banner page, 0 otherwise */ int raw_file; /* 1 if file type is vnd.cups-raw */ int filterfds[2][2] = { { -1, -1 }, { -1, -1 } }; /* Pipes used between filters */ int envc; /* Number of environment variables */ struct stat fileinfo; /* Job file information */ int argc = 0; /* Number of arguments */ char **argv = NULL, /* Filter command-line arguments */ filename[1024], /* Job filename */ command[1024], /* Full path to command */ jobid[255], /* Job ID string */ title[IPP_MAX_NAME], /* Job title string */ copies[255], /* # copies string */ *options, /* Options string */ *envp[MAX_ENV + 21], /* Environment variables */ charset[255], /* CHARSET env variable */ class_name[255],/* CLASS env variable */ classification[1024], /* CLASSIFICATION env variable */ content_type[1024], /* CONTENT_TYPE env variable */ device_uri[1024], /* DEVICE_URI env variable */ final_content_type[1024] = "", /* FINAL_CONTENT_TYPE env variable */ lang[255], /* LANG env variable */ #ifdef __APPLE__ apple_language[255], /* APPLE_LANGUAGE env variable */ #endif /* __APPLE__ */ auth_info_required[255], /* AUTH_INFO_REQUIRED env variable */ ppd[1024], /* PPD env variable */ printer_info[255], /* PRINTER_INFO env variable */ printer_location[255], /* PRINTER_LOCATION env variable */ printer_name[255], /* PRINTER env variable */ *printer_state_reasons = NULL; /* PRINTER_STATE_REASONS env var */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdContinueJob(job=%p(%d)): current_file=%d, num_files=%d", job, job->id, job->current_file, job->num_files); /* * Figure out what filters are required to convert from * the source to the destination type... */ FilterLevel -= job->cost; job->cost = 0; job->pending_cost = 0; memset(job->filters, 0, sizeof(job->filters)); if (job->printer->raw) { /* * Remote jobs and raw queues go directly to the printer without * filtering... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Sending job to queue tagged as raw..."); } else { /* * Local jobs get filtered... */ mime_type_t *dst = job->printer->filetype; /* Destination file type */ snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->current_file + 1); if (stat(filename, &fileinfo)) fileinfo.st_size = 0; _cupsRWLockWrite(&MimeDatabase->lock); if (job->retry_as_raster) { /* * Need to figure out whether the printer supports image/pwg-raster or * image/urf, and use the corresponding type... */ char type[MIME_MAX_TYPE]; /* MIME media type for printer */ snprintf(type, sizeof(type), "%s/image/urf", job->printer->name); if ((dst = mimeType(MimeDatabase, "printer", type)) == NULL) { snprintf(type, sizeof(type), "%s/image/pwg-raster", job->printer->name); dst = mimeType(MimeDatabase, "printer", type); } if (dst) cupsdLogJob(job, CUPSD_LOG_DEBUG, "Retrying job as \"%s\".", strchr(dst->type, '/') + 1); else cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to retry job using a supported raster format."); } filters = mimeFilter2(MimeDatabase, job->filetypes[job->current_file], (size_t)fileinfo.st_size, dst, &(job->cost)); if (!filters) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to convert file %d to printable format.", job->current_file); abort_message = "Aborting job because it cannot be printed."; abort_state = IPP_JOB_ABORTED; ippSetString(job->attrs, &job->reasons, 0, "document-unprintable-error"); _cupsRWUnlock(&MimeDatabase->lock); goto abort_job; } /* * Figure out the final content type... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "%d filters for job:", cupsArrayCount(filters)); for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) cupsdLogJob(job, CUPSD_LOG_DEBUG, "%s (%s/%s to %s/%s, cost %d)", filter->filter, filter->src ? filter->src->super : "???", filter->src ? filter->src->type : "???", filter->dst ? filter->dst->super : "???", filter->dst ? filter->dst->type : "???", filter->cost); if (!job->printer->remote) { for (filter = (mime_filter_t *)cupsArrayLast(filters); filter && filter->dst; filter = (mime_filter_t *)cupsArrayPrev(filters)) if (strcmp(filter->dst->super, "printer") || strcmp(filter->dst->type, job->printer->name)) break; if (filter && filter->dst) { if ((ptr = strchr(filter->dst->type, '/')) != NULL) snprintf(final_content_type, sizeof(final_content_type), "FINAL_CONTENT_TYPE=%s", ptr + 1); else snprintf(final_content_type, sizeof(final_content_type), "FINAL_CONTENT_TYPE=%s/%s", filter->dst->super, filter->dst->type); } else snprintf(final_content_type, sizeof(final_content_type), "FINAL_CONTENT_TYPE=printer/%s", job->printer->name); } /* * Remove NULL ("-") filters... */ for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) if (!strcmp(filter->filter, "-")) cupsArrayRemove(filters, filter); if (cupsArrayCount(filters) == 0) { cupsArrayDelete(filters); filters = NULL; } /* * If this printer has any pre-filters, insert the required pre-filter * in the filters array... */ if (job->printer->prefiltertype && filters) { prefilters = cupsArrayNew(NULL, NULL); for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) { if ((prefilter = mimeFilterLookup(MimeDatabase, filter->src, job->printer->prefiltertype))) { cupsArrayAdd(prefilters, prefilter); job->cost += prefilter->cost; } cupsArrayAdd(prefilters, filter); } cupsArrayDelete(filters); filters = prefilters; } _cupsRWUnlock(&MimeDatabase->lock); } /* * Set a minimum cost of 100 for all jobs so that FilterLimit * works with raw queues and other low-cost paths. */ if (job->cost < 100) job->cost = 100; /* * See if the filter cost is too high... */ if ((FilterLevel + job->cost) > FilterLimit && FilterLevel > 0 && FilterLimit > 0) { /* * Don't print this job quite yet... */ cupsArrayDelete(filters); cupsdLogJob(job, CUPSD_LOG_INFO, "Holding because filter limit has been reached."); cupsdLogJob(job, CUPSD_LOG_DEBUG2, "cupsdContinueJob: file=%d, cost=%d, level=%d, limit=%d", job->current_file, job->cost, FilterLevel, FilterLimit); job->pending_cost = job->cost; job->cost = 0; return; } FilterLevel += job->cost; /* * Add decompression/raw filter as needed... */ raw_file = !strcmp(job->filetypes[job->current_file]->super, "application") && !strcmp(job->filetypes[job->current_file]->type, "vnd.cups-raw"); if ((job->compressions[job->current_file] && (!job->printer->remote || job->num_files == 1)) || (!job->printer->remote && (job->printer->raw || raw_file) && job->num_files > 1)) { /* * Add gziptoany filter to the front of the list... */ if (!filters) filters = cupsArrayNew(NULL, NULL); if (!cupsArrayInsert(filters, &gziptoany_filter)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unable to add decompression filter - %s", strerror(errno)); cupsArrayDelete(filters); abort_message = "Stopping job because the scheduler ran out of memory."; goto abort_job; } } /* * Add port monitor, if any... */ if (job->printer->port_monitor) { /* * Add port monitor to the end of the list... */ if (!filters) filters = cupsArrayNew(NULL, NULL); port_monitor.src = NULL; port_monitor.dst = NULL; port_monitor.cost = 0; snprintf(port_monitor.filter, sizeof(port_monitor.filter), "%s/monitor/%s", ServerBin, job->printer->port_monitor); if (!cupsArrayAdd(filters, &port_monitor)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unable to add port monitor - %s", strerror(errno)); abort_message = "Stopping job because the scheduler ran out of memory."; goto abort_job; } } /* * Make sure we don't go over the "MAX_FILTERS" limit... */ if (cupsArrayCount(filters) > MAX_FILTERS) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Too many filters (%d > %d), unable to print.", cupsArrayCount(filters), MAX_FILTERS); abort_message = "Aborting job because it needs too many filters to print."; abort_state = IPP_JOB_ABORTED; ippSetString(job->attrs, &job->reasons, 0, "document-unprintable-error"); goto abort_job; } /* * Determine if we are printing a banner page or not... */ if (job->job_sheets == NULL) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "No job-sheets attribute."); if ((job->job_sheets = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) != NULL) cupsdLogJob(job, CUPSD_LOG_DEBUG, "... but someone added one without setting job_sheets."); } else if (job->job_sheets->num_values == 1) cupsdLogJob(job, CUPSD_LOG_DEBUG, "job-sheets=%s", job->job_sheets->values[0].string.text); else cupsdLogJob(job, CUPSD_LOG_DEBUG, "job-sheets=%s,%s", job->job_sheets->values[0].string.text, job->job_sheets->values[1].string.text); if (job->printer->type & CUPS_PRINTER_REMOTE) banner_page = 0; else if (job->job_sheets == NULL) banner_page = 0; else if (_cups_strcasecmp(job->job_sheets->values[0].string.text, "none") != 0 && job->current_file == 0) banner_page = 1; else if (job->job_sheets->num_values > 1 && _cups_strcasecmp(job->job_sheets->values[1].string.text, "none") != 0 && job->current_file == (job->num_files - 1)) banner_page = 1; else banner_page = 0; if ((options = get_options(job, banner_page, copies, sizeof(copies), title, sizeof(title))) == NULL) { abort_message = "Stopping job because the scheduler ran out of memory."; goto abort_job; } /* * Build the command-line arguments for the filters. Each filter * has 6 or 7 arguments: * * argv[0] = printer * argv[1] = job ID * argv[2] = username * argv[3] = title * argv[4] = # copies * argv[5] = options * argv[6] = filename (optional; normally stdin) * * This allows legacy printer drivers that use the old System V * printing interface to be used by CUPS. * * For remote jobs, we send all of the files in the argument list. */ if (job->printer->remote) argc = 6 + job->num_files; else argc = 7; if ((argv = calloc((size_t)argc + 1, sizeof(char *))) == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Unable to allocate argument array - %s", strerror(errno)); abort_message = "Stopping job because the scheduler ran out of memory."; goto abort_job; } snprintf(jobid, sizeof(jobid), "%d", job->id); argv[0] = job->printer->name; argv[1] = jobid; argv[2] = job->username; argv[3] = title; argv[4] = copies; argv[5] = options; if (job->printer->remote && job->num_files > 1) { for (i = 0; i < job->num_files; i ++) { snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, i + 1); argv[6 + i] = strdup(filename); } } else { snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->current_file + 1); argv[6] = strdup(filename); } for (i = 0; argv[i]; i ++) cupsdLogJob(job, CUPSD_LOG_DEBUG, "argv[%d]=\"%s\"", i, argv[i]); /* * Create environment variable strings for the filters... */ attr = ippFindAttribute(job->attrs, "attributes-natural-language", IPP_TAG_LANGUAGE); #ifdef __APPLE__ strlcpy(apple_language, "APPLE_LANGUAGE=", sizeof(apple_language)); _cupsAppleLanguage(attr->values[0].string.text, apple_language + 15, sizeof(apple_language) - 15); #endif /* __APPLE__ */ switch (strlen(attr->values[0].string.text)) { default : /* * This is an unknown or badly formatted language code; use * the POSIX locale... */ strlcpy(lang, "LANG=C", sizeof(lang)); break; case 2 : /* * Just the language code (ll)... */ snprintf(lang, sizeof(lang), "LANG=%s.UTF-8", attr->values[0].string.text); break; case 5 : /* * Language and country code (ll-cc)... */ snprintf(lang, sizeof(lang), "LANG=%c%c_%c%c.UTF-8", attr->values[0].string.text[0], attr->values[0].string.text[1], toupper(attr->values[0].string.text[3] & 255), toupper(attr->values[0].string.text[4] & 255)); break; } if ((attr = ippFindAttribute(job->attrs, "document-format", IPP_TAG_MIMETYPE)) != NULL && (ptr = strstr(attr->values[0].string.text, "charset=")) != NULL) snprintf(charset, sizeof(charset), "CHARSET=%s", ptr + 8); else strlcpy(charset, "CHARSET=utf-8", sizeof(charset)); snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s/%s", job->filetypes[job->current_file]->super, job->filetypes[job->current_file]->type); snprintf(device_uri, sizeof(device_uri), "DEVICE_URI=%s", job->printer->device_uri); snprintf(ppd, sizeof(ppd), "PPD=%s/ppd/%s.ppd", ServerRoot, job->printer->name); snprintf(printer_info, sizeof(printer_name), "PRINTER_INFO=%s", job->printer->info ? job->printer->info : ""); snprintf(printer_location, sizeof(printer_name), "PRINTER_LOCATION=%s", job->printer->location ? job->printer->location : ""); snprintf(printer_name, sizeof(printer_name), "PRINTER=%s", job->printer->name); if (job->printer->num_reasons > 0) { char *psrptr; /* Pointer into PRINTER_STATE_REASONS */ size_t psrlen; /* Size of PRINTER_STATE_REASONS */ for (psrlen = 22, i = 0; i < job->printer->num_reasons; i ++) psrlen += strlen(job->printer->reasons[i]) + 1; if ((printer_state_reasons = malloc(psrlen)) != NULL) { /* * All of these strcpy's are safe because we allocated the psr string... */ strlcpy(printer_state_reasons, "PRINTER_STATE_REASONS=", psrlen); for (psrptr = printer_state_reasons + 22, i = 0; i < job->printer->num_reasons; i ++) { if (i) *psrptr++ = ','; strlcpy(psrptr, job->printer->reasons[i], psrlen - (size_t)(psrptr - printer_state_reasons)); psrptr += strlen(psrptr); } } } if (job->printer->num_auth_info_required == 1) snprintf(auth_info_required, sizeof(auth_info_required), "AUTH_INFO_REQUIRED=%s", job->printer->auth_info_required[0]); else if (job->printer->num_auth_info_required == 2) snprintf(auth_info_required, sizeof(auth_info_required), "AUTH_INFO_REQUIRED=%s,%s", job->printer->auth_info_required[0], job->printer->auth_info_required[1]); else if (job->printer->num_auth_info_required == 3) snprintf(auth_info_required, sizeof(auth_info_required), "AUTH_INFO_REQUIRED=%s,%s,%s", job->printer->auth_info_required[0], job->printer->auth_info_required[1], job->printer->auth_info_required[2]); else if (job->printer->num_auth_info_required == 4) snprintf(auth_info_required, sizeof(auth_info_required), "AUTH_INFO_REQUIRED=%s,%s,%s,%s", job->printer->auth_info_required[0], job->printer->auth_info_required[1], job->printer->auth_info_required[2], job->printer->auth_info_required[3]); else strlcpy(auth_info_required, "AUTH_INFO_REQUIRED=none", sizeof(auth_info_required)); envc = cupsdLoadEnv(envp, (int)(sizeof(envp) / sizeof(envp[0]))); envp[envc ++] = charset; envp[envc ++] = lang; #ifdef __APPLE__ envp[envc ++] = apple_language; #endif /* __APPLE__ */ envp[envc ++] = ppd; envp[envc ++] = content_type; envp[envc ++] = device_uri; envp[envc ++] = printer_info; envp[envc ++] = printer_location; envp[envc ++] = printer_name; envp[envc ++] = printer_state_reasons ? printer_state_reasons : "PRINTER_STATE_REASONS=none"; envp[envc ++] = banner_page ? "CUPS_FILETYPE=job-sheet" : "CUPS_FILETYPE=document"; if (final_content_type[0]) envp[envc ++] = final_content_type; if (Classification && !banner_page) { if ((attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME)) == NULL) snprintf(classification, sizeof(classification), "CLASSIFICATION=%s", Classification); else if (attr->num_values > 1 && strcmp(attr->values[1].string.text, "none") != 0) snprintf(classification, sizeof(classification), "CLASSIFICATION=%s", attr->values[1].string.text); else snprintf(classification, sizeof(classification), "CLASSIFICATION=%s", attr->values[0].string.text); envp[envc ++] = classification; } if (job->dtype & CUPS_PRINTER_CLASS) { snprintf(class_name, sizeof(class_name), "CLASS=%s", job->dest); envp[envc ++] = class_name; } envp[envc ++] = auth_info_required; for (i = 0; i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) if (job->auth_env[i]) envp[envc ++] = job->auth_env[i]; else break; if (job->auth_uid) envp[envc ++] = job->auth_uid; envp[envc] = NULL; for (i = 0; i < envc; i ++) if (!strncmp(envp[i], "AUTH_", 5)) cupsdLogJob(job, CUPSD_LOG_DEBUG, "envp[%d]=\"AUTH_%c****\"", i, envp[i][5]); else if (strncmp(envp[i], "DEVICE_URI=", 11)) cupsdLogJob(job, CUPSD_LOG_DEBUG, "envp[%d]=\"%s\"", i, envp[i]); else cupsdLogJob(job, CUPSD_LOG_DEBUG, "envp[%d]=\"DEVICE_URI=%s\"", i, job->printer->sanitized_device_uri); if (job->printer->remote) job->current_file = job->num_files; else job->current_file ++; /* * Now create processes for all of the filters... */ for (i = 0, slot = 0, filter = (mime_filter_t *)cupsArrayFirst(filters); filter; i ++, filter = (mime_filter_t *)cupsArrayNext(filters)) { if (filter->filter[0] != '/') snprintf(command, sizeof(command), "%s/filter/%s", ServerBin, filter->filter); else strlcpy(command, filter->filter, sizeof(command)); if (i < (cupsArrayCount(filters) - 1)) { if (cupsdOpenPipe(filterfds[slot])) { abort_message = "Stopping job because the scheduler could not create " "the filter pipes."; goto abort_job; } } else { if (job->current_file == 1 || (job->printer->pc && job->printer->pc->single_file)) { if (strncmp(job->printer->device_uri, "file:", 5) != 0) { if (cupsdOpenPipe(job->print_pipes)) { abort_message = "Stopping job because the scheduler could not " "create the backend pipes."; goto abort_job; } } else { job->print_pipes[0] = -1; if (!strcmp(job->printer->device_uri, "file:/dev/null") || !strcmp(job->printer->device_uri, "file:///dev/null")) job->print_pipes[1] = -1; else { if (!strncmp(job->printer->device_uri, "file:/dev/", 10)) job->print_pipes[1] = open(job->printer->device_uri + 5, O_WRONLY | O_EXCL); else if (!strncmp(job->printer->device_uri, "file:///dev/", 12)) job->print_pipes[1] = open(job->printer->device_uri + 7, O_WRONLY | O_EXCL); else if (!strncmp(job->printer->device_uri, "file:///", 8)) job->print_pipes[1] = open(job->printer->device_uri + 7, O_WRONLY | O_CREAT | O_TRUNC, 0600); else job->print_pipes[1] = open(job->printer->device_uri + 5, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (job->print_pipes[1] < 0) { abort_message = "Stopping job because the scheduler could not " "open the output file."; goto abort_job; } fcntl(job->print_pipes[1], F_SETFD, fcntl(job->print_pipes[1], F_GETFD) | FD_CLOEXEC); } } } filterfds[slot][0] = job->print_pipes[0]; filterfds[slot][1] = job->print_pipes[1]; } pid = cupsdStartProcess(command, argv, envp, filterfds[slot ^ 1][0], filterfds[slot][1], job->status_pipes[1], job->back_pipes[0], job->side_pipes[0], 0, job->profile, job, job->filters + i); cupsdClosePipe(filterfds[slot ^ 1]); if (pid == 0) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to start filter \"%s\" - %s.", filter->filter, strerror(errno)); abort_message = "Stopping job because the scheduler could not execute a " "filter."; goto abort_job; } cupsdLogJob(job, CUPSD_LOG_INFO, "Started filter %s (PID %d)", command, pid); if (argv[6]) { free(argv[6]); argv[6] = NULL; } slot ^= 1; } cupsArrayDelete(filters); filters = NULL; /* * Finally, pipe the final output into a backend process if needed... */ if (strncmp(job->printer->device_uri, "file:", 5) != 0) { if (job->current_file == 1 || job->printer->remote || (job->printer->pc && job->printer->pc->single_file)) { sscanf(job->printer->device_uri, "%254[^:]", scheme); snprintf(command, sizeof(command), "%s/backend/%s", ServerBin, scheme); /* * See if the backend needs to run as root... */ if (RunUser) backroot = 0; else if (stat(command, &backinfo)) backroot = 0; else backroot = !(backinfo.st_mode & (S_IWGRP | S_IWOTH | S_IXOTH)); argv[0] = job->printer->sanitized_device_uri; filterfds[slot][0] = -1; filterfds[slot][1] = -1; pid = cupsdStartProcess(command, argv, envp, filterfds[slot ^ 1][0], filterfds[slot][1], job->status_pipes[1], job->back_pipes[1], job->side_pipes[1], backroot, job->bprofile, job, &(job->backend)); if (pid == 0) { abort_message = "Stopping job because the scheduler could not execute " "the backend."; goto abort_job; } else { cupsdLogJob(job, CUPSD_LOG_INFO, "Started backend %s (PID %d)", command, pid); } } if (job->current_file == job->num_files || (job->printer->pc && job->printer->pc->single_file)) cupsdClosePipe(job->print_pipes); if (job->current_file == job->num_files) { cupsdClosePipe(job->back_pipes); cupsdClosePipe(job->side_pipes); close(job->status_pipes[1]); job->status_pipes[1] = -1; } } else { filterfds[slot][0] = -1; filterfds[slot][1] = -1; if (job->current_file == job->num_files || (job->printer->pc && job->printer->pc->single_file)) cupsdClosePipe(job->print_pipes); if (job->current_file == job->num_files) { close(job->status_pipes[1]); job->status_pipes[1] = -1; } } cupsdClosePipe(filterfds[slot]); for (i = 6; i < argc; i ++) free(argv[i]); free(argv); if (printer_state_reasons) free(printer_state_reasons); cupsdAddSelect(job->status_buffer->fd, (cupsd_selfunc_t)update_job, NULL, job); cupsdAddEvent(CUPSD_EVENT_JOB_STATE, job->printer, job, "Job #%d started.", job->id); return; /* * If we get here, we need to abort the current job and close out all * files and pipes... */ abort_job: FilterLevel -= job->cost; job->cost = 0; cupsdClosePipe(filterfds[0]); cupsdClosePipe(filterfds[1]); cupsArrayDelete(filters); if (argv) { for (i = 6; i < argc; i ++) free(argv[i]); free(argv); } if (printer_state_reasons) free(printer_state_reasons); cupsdClosePipe(job->print_pipes); cupsdClosePipe(job->back_pipes); cupsdClosePipe(job->side_pipes); cupsdRemoveSelect(job->status_pipes[0]); cupsdClosePipe(job->status_pipes); cupsdStatBufDelete(job->status_buffer); job->status_buffer = NULL; /* * Update the printer and job state. */ cupsdSetJobState(job, abort_state, CUPSD_JOB_DEFAULT, "%s", abort_message); cupsdSetPrinterState(job->printer, IPP_PRINTER_IDLE, 0); update_job_attrs(job, 0); if (job->history) free_job_history(job); cupsArrayRemove(PrintingJobs, job); /* * Clear the printer <-> job association... */ job->printer->job = NULL; job->printer = NULL; } /* * 'cupsdDeleteJob()' - Free all memory used by a job. */ void cupsdDeleteJob(cupsd_job_t *job, /* I - Job */ cupsd_jobaction_t action)/* I - Action */ { int i; /* Looping var */ if (job->printer) finalize_job(job, 1); if (action == CUPSD_JOB_PURGE) remove_job_history(job); cupsdClearString(&job->username); cupsdClearString(&job->dest); for (i = 0; i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) cupsdClearString(job->auth_env + i); cupsdClearString(&job->auth_uid); if (action == CUPSD_JOB_PURGE) remove_job_files(job); else if (job->num_files > 0) { free(job->compressions); free(job->filetypes); job->num_files = 0; } if (job->history) free_job_history(job); unload_job(job); cupsArrayRemove(Jobs, job); cupsArrayRemove(ActiveJobs, job); cupsArrayRemove(PrintingJobs, job); free(job); } /* * 'cupsdFreeAllJobs()' - Free all jobs from memory. */ void cupsdFreeAllJobs(void) { cupsd_job_t *job; /* Current job */ if (!Jobs) return; cupsdHoldSignals(); cupsdStopAllJobs(CUPSD_JOB_FORCE, 0); cupsdSaveAllJobs(); for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) cupsdDeleteJob(job, CUPSD_JOB_DEFAULT); cupsdReleaseSignals(); } /* * 'cupsdFindJob()' - Find the specified job. */ cupsd_job_t * /* O - Job data */ cupsdFindJob(int id) /* I - Job ID */ { cupsd_job_t key; /* Search key */ key.id = id; return ((cupsd_job_t *)cupsArrayFind(Jobs, &key)); } /* * 'cupsdGetCompletedJobs()'- Generate a completed jobs list. */ cups_array_t * /* O - Array of jobs */ cupsdGetCompletedJobs( cupsd_printer_t *p) /* I - Printer */ { cups_array_t *list; /* Array of jobs */ cupsd_job_t *job; /* Current job */ list = cupsArrayNew(compare_completed_jobs, NULL); for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) if ((!p || !_cups_strcasecmp(p->name, job->dest)) && job->state_value >= IPP_JOB_STOPPED && job->completed_time) cupsArrayAdd(list, job); return (list); } /* * 'cupsdGetPrinterJobCount()' - Get the number of pending, processing, * or held jobs in a printer or class. */ int /* O - Job count */ cupsdGetPrinterJobCount( const char *dest) /* I - Printer or class name */ { int count; /* Job count */ cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs), count = 0; job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (job->dest && !_cups_strcasecmp(job->dest, dest)) count ++; return (count); } /* * 'cupsdGetUserJobCount()' - Get the number of pending, processing, * or held jobs for a user. */ int /* O - Job count */ cupsdGetUserJobCount( const char *username) /* I - Username */ { int count; /* Job count */ cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs), count = 0; job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (!_cups_strcasecmp(job->username, username)) count ++; return (count); } /* * 'cupsdLoadAllJobs()' - Load all jobs from disk. */ void cupsdLoadAllJobs(void) { char filename[1024]; /* Full filename of job.cache file */ struct stat fileinfo; /* Information on job.cache file */ cups_dir_t *dir; /* RequestRoot dir */ cups_dentry_t *dent; /* Entry in RequestRoot */ int load_cache = 1; /* Load the job.cache file? */ /* * Create the job arrays as needed... */ if (!Jobs) Jobs = cupsArrayNew(compare_jobs, NULL); if (!ActiveJobs) ActiveJobs = cupsArrayNew(compare_active_jobs, NULL); if (!PrintingJobs) PrintingJobs = cupsArrayNew(compare_jobs, NULL); /* * See whether the job.cache file is older than the RequestRoot directory... */ snprintf(filename, sizeof(filename), "%s/job.cache", CacheDir); if (stat(filename, &fileinfo)) { /* * No job.cache file... */ load_cache = 0; if (errno != ENOENT) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to get file information for \"%s\" - %s", filename, strerror(errno)); } else if ((dir = cupsDirOpen(RequestRoot)) == NULL) { /* * No spool directory... */ load_cache = 0; } else { while ((dent = cupsDirRead(dir)) != NULL) { if (strlen(dent->filename) >= 6 && dent->filename[0] == 'c' && dent->fileinfo.st_mtime > fileinfo.st_mtime) { /* * Job history file is newer than job.cache file... */ load_cache = 0; break; } } cupsDirClose(dir); } /* * Load the most recent source for job data... */ if (load_cache) { /* * Load the job.cache file... */ load_job_cache(filename); } else { /* * Load the job history files... */ load_request_root(); load_next_job_id(filename); } /* * Clean out old jobs as needed... */ if (MaxJobs > 0 && cupsArrayCount(Jobs) >= MaxJobs) cupsdCleanJobs(); } /* * 'cupsdLoadJob()' - Load a single job. */ int /* O - 1 on success, 0 on failure */ cupsdLoadJob(cupsd_job_t *job) /* I - Job */ { int i; /* Looping var */ char jobfile[1024]; /* Job filename */ cups_file_t *fp; /* Job file */ int fileid; /* Current file ID */ ipp_attribute_t *attr; /* Job attribute */ const char *dest; /* Destination name */ cupsd_printer_t *destptr; /* Pointer to destination */ mime_type_t **filetypes; /* New filetypes array */ int *compressions; /* New compressions array */ if (job->attrs) { if (job->state_value > IPP_JOB_STOPPED) job->access_time = time(NULL); return (1); } if ((job->attrs = ippNew()) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Ran out of memory for job attributes."); return (0); } /* * Load job attributes... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Loading attributes..."); snprintf(jobfile, sizeof(jobfile), "%s/c%05d", RequestRoot, job->id); if ((fp = cupsdOpenConfFile(jobfile)) == NULL) goto error; if (ippReadIO(fp, (ipp_iocb_t)cupsFileRead, 1, NULL, job->attrs) != IPP_DATA) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to read job control file \"%s\".", jobfile); cupsFileClose(fp); goto error; } cupsFileClose(fp); /* * Copy attribute data to the job object... */ if (!ippFindAttribute(job->attrs, "time-at-creation", IPP_TAG_INTEGER)) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Missing or bad time-at-creation attribute in control file."); goto error; } if ((job->state = ippFindAttribute(job->attrs, "job-state", IPP_TAG_ENUM)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Missing or bad job-state attribute in control file."); goto error; } job->state_value = (ipp_jstate_t)job->state->values[0].integer; job->file_time = 0; job->history_time = 0; if ((attr = ippFindAttribute(job->attrs, "time-at-creation", IPP_TAG_INTEGER)) != NULL) job->creation_time = attr->values[0].integer; if (job->state_value >= IPP_JOB_CANCELED && (attr = ippFindAttribute(job->attrs, "time-at-completed", IPP_TAG_INTEGER)) != NULL) { job->completed_time = attr->values[0].integer; if (JobHistory < INT_MAX) job->history_time = job->completed_time + JobHistory; else job->history_time = INT_MAX; if (job->history_time < time(NULL)) goto error; /* Expired, remove from history */ if (job->history_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->history_time; if (JobFiles < INT_MAX) job->file_time = job->completed_time + JobFiles; else job->file_time = INT_MAX; cupsdLogJob(job, CUPSD_LOG_DEBUG2, "cupsdLoadJob: job->file_time=%ld, time-at-completed=%ld, JobFiles=%d", (long)job->file_time, (long)attr->values[0].integer, JobFiles); if (job->file_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->file_time; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdLoadJob: JobHistoryUpdate=%ld", (long)JobHistoryUpdate); } if (!job->dest) { if ((attr = ippFindAttribute(job->attrs, "job-printer-uri", IPP_TAG_URI)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "No job-printer-uri attribute in control file."); goto error; } if ((dest = cupsdValidateDest(attr->values[0].string.text, &(job->dtype), &destptr)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to queue job for destination \"%s\".", attr->values[0].string.text); goto error; } cupsdSetString(&job->dest, dest); } else if ((destptr = cupsdFindDest(job->dest)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to queue job for destination \"%s\".", job->dest); goto error; } if ((job->reasons = ippFindAttribute(job->attrs, "job-state-reasons", IPP_TAG_KEYWORD)) == NULL) { const char *reason; /* job-state-reason keyword */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Adding missing job-state-reasons attribute to control file."); switch (job->state_value) { default : case IPP_JOB_PENDING : if (destptr->state == IPP_PRINTER_STOPPED) reason = "printer-stopped"; else reason = "none"; break; case IPP_JOB_HELD : if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_ZERO)) != NULL && (attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_NAMELANG || attr->value_tag == IPP_TAG_KEYWORD) && strcmp(attr->values[0].string.text, "no-hold")) reason = "job-hold-until-specified"; else reason = "job-incoming"; break; case IPP_JOB_PROCESSING : reason = "job-printing"; break; case IPP_JOB_STOPPED : reason = "job-stopped"; break; case IPP_JOB_CANCELED : reason = "job-canceled-by-user"; break; case IPP_JOB_ABORTED : reason = "aborted-by-system"; break; case IPP_JOB_COMPLETED : reason = "job-completed-successfully"; break; } job->reasons = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, reason); } else if (job->state_value == IPP_JOB_PENDING) { if (destptr->state == IPP_PRINTER_STOPPED) ippSetString(job->attrs, &job->reasons, 0, "printer-stopped"); else ippSetString(job->attrs, &job->reasons, 0, "none"); } job->impressions = ippFindAttribute(job->attrs, "job-impressions-completed", IPP_TAG_INTEGER); job->sheets = ippFindAttribute(job->attrs, "job-media-sheets-completed", IPP_TAG_INTEGER); job->job_sheets = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME); if (!job->impressions) job->impressions = ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-impressions-completed", 0); if (!job->sheets) job->sheets = ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-media-sheets-completed", 0); if (!job->priority) { if ((attr = ippFindAttribute(job->attrs, "job-priority", IPP_TAG_INTEGER)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Missing or bad job-priority attribute in control file."); goto error; } job->priority = attr->values[0].integer; } if (!job->username) { if ((attr = ippFindAttribute(job->attrs, "job-originating-user-name", IPP_TAG_NAME)) == NULL) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Missing or bad job-originating-user-name " "attribute in control file."); goto error; } cupsdSetString(&job->username, attr->values[0].string.text); } if (!job->name) { if ((attr = ippFindAttribute(job->attrs, "job-name", IPP_TAG_NAME)) != NULL) cupsdSetString(&job->name, attr->values[0].string.text); } /* * Set the job hold-until time and state... */ if (job->state_value == IPP_JOB_HELD) { if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (attr) cupsdSetJobHoldUntil(job, attr->values[0].string.text, CUPSD_JOB_DEFAULT); else { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; } } else if (job->state_value == IPP_JOB_PROCESSING) { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; } if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) job->koctets = attr->values[0].integer; if (!job->num_files) { /* * Find all the d##### files... */ _cupsRWLockRead(&MimeDatabase->lock); for (fileid = 1; fileid < 10000; fileid ++) { snprintf(jobfile, sizeof(jobfile), "%s/d%05d-%03d", RequestRoot, job->id, fileid); if (access(jobfile, 0)) break; cupsdLogJob(job, CUPSD_LOG_DEBUG, "Auto-typing document file \"%s\"...", jobfile); if (fileid > job->num_files) { if (job->num_files == 0) { compressions = (int *)calloc((size_t)fileid, sizeof(int)); filetypes = (mime_type_t **)calloc((size_t)fileid, sizeof(mime_type_t *)); } else { compressions = (int *)realloc(job->compressions, sizeof(int) * (size_t)fileid); filetypes = (mime_type_t **)realloc(job->filetypes, sizeof(mime_type_t *) * (size_t)fileid); } if (compressions) job->compressions = compressions; if (filetypes) job->filetypes = filetypes; if (!compressions || !filetypes) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Ran out of memory for job file types."); ippDelete(job->attrs); job->attrs = NULL; if (job->compressions) { free(job->compressions); job->compressions = NULL; } if (job->filetypes) { free(job->filetypes); job->filetypes = NULL; } job->num_files = 0; return (0); } job->num_files = fileid; } job->filetypes[fileid - 1] = mimeFileType(MimeDatabase, jobfile, NULL, job->compressions + fileid - 1); if (!job->filetypes[fileid - 1]) job->filetypes[fileid - 1] = mimeType(MimeDatabase, "application", "vnd.cups-raw"); } _cupsRWUnlock(&MimeDatabase->lock); } /* * Load authentication information as needed... */ if (job->state_value < IPP_JOB_STOPPED) { snprintf(jobfile, sizeof(jobfile), "%s/a%05d", RequestRoot, job->id); for (i = 0; i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) cupsdClearString(job->auth_env + i); cupsdClearString(&job->auth_uid); if ((fp = cupsFileOpen(jobfile, "r")) != NULL) { int bytes, /* Size of auth data */ linenum = 1; /* Current line number */ char line[65536], /* Line from file */ *value, /* Value from line */ data[65536]; /* Decoded data */ if (cupsFileGets(fp, line, sizeof(line)) && !strcmp(line, "CUPSD-AUTH-V3")) { i = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode value... */ if (strcmp(line, "negotiate") && strcmp(line, "uid")) { bytes = sizeof(data); httpDecode64_2(data, &bytes, value); } /* * Assign environment variables... */ if (!strcmp(line, "uid")) { cupsdSetStringf(&job->auth_uid, "AUTH_UID=%s", value); continue; } else if (i >= (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0]))) break; if (!strcmp(line, "username")) cupsdSetStringf(job->auth_env + i, "AUTH_USERNAME=%s", data); else if (!strcmp(line, "domain")) cupsdSetStringf(job->auth_env + i, "AUTH_DOMAIN=%s", data); else if (!strcmp(line, "password")) cupsdSetStringf(job->auth_env + i, "AUTH_PASSWORD=%s", data); else if (!strcmp(line, "negotiate")) cupsdSetStringf(job->auth_env + i, "AUTH_NEGOTIATE=%s", value); else continue; i ++; } } cupsFileClose(fp); } } job->access_time = time(NULL); return (1); /* * If we get here then something bad happened... */ error: ippDelete(job->attrs); job->attrs = NULL; remove_job_history(job); remove_job_files(job); return (0); } /* * 'cupsdMoveJob()' - Move the specified job to a different destination. */ void cupsdMoveJob(cupsd_job_t *job, /* I - Job */ cupsd_printer_t *p) /* I - Destination printer or class */ { ipp_attribute_t *attr; /* job-printer-uri attribute */ const char *olddest; /* Old destination */ cupsd_printer_t *oldp; /* Old pointer */ /* * Don't move completed jobs... */ if (job->state_value > IPP_JOB_STOPPED) return; /* * Get the old destination... */ olddest = job->dest; if (job->printer) oldp = job->printer; else oldp = cupsdFindDest(olddest); /* * Change the destination information... */ if (job->state_value > IPP_JOB_HELD) cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Stopping job prior to move."); cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED, oldp, job, "Job #%d moved from %s to %s.", job->id, olddest, p->name); cupsdSetString(&job->dest, p->name); job->dtype = p->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE); if ((attr = ippFindAttribute(job->attrs, "job-printer-uri", IPP_TAG_URI)) != NULL) ippSetString(job->attrs, &attr, 0, p->uri); cupsdAddEvent(CUPSD_EVENT_JOB_STOPPED, p, job, "Job #%d moved from %s to %s.", job->id, olddest, p->name); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } /* * 'cupsdReleaseJob()' - Release the specified job. */ void cupsdReleaseJob(cupsd_job_t *job) /* I - Job */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReleaseJob(job=%p(%d))", job, job->id); if (job->state_value == IPP_JOB_HELD) { /* * Add trailing banner as needed... */ if (job->pending_timeout) cupsdTimeoutJob(job); cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job released by user."); } } /* * 'cupsdRestartJob()' - Restart the specified job. */ void cupsdRestartJob(cupsd_job_t *job) /* I - Job */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRestartJob(job=%p(%d))", job, job->id); if (job->state_value == IPP_JOB_STOPPED || job->num_files) cupsdSetJobState(job, IPP_JOB_PENDING, CUPSD_JOB_DEFAULT, "Job restarted by user."); } /* * 'cupsdSaveAllJobs()' - Save a summary of all jobs to disk. */ void cupsdSaveAllJobs(void) { int i; /* Looping var */ cups_file_t *fp; /* job.cache file */ char filename[1024]; /* job.cache filename */ cupsd_job_t *job; /* Current job */ snprintf(filename, sizeof(filename), "%s/job.cache", CacheDir); if ((fp = cupsdCreateConfFile(filename, ConfigFilePerm)) == NULL) return; cupsdLogMessage(CUPSD_LOG_INFO, "Saving job.cache..."); /* * Write a small header to the file... */ cupsFilePuts(fp, "# Job cache file for " CUPS_SVERSION "\n"); cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePrintf(fp, "NextJobId %d\n", NextJobId); /* * Write each job known to the system... */ for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { if (job->printer && job->printer->temporary) { /* * Don't save jobs on temporary printers... */ continue; } cupsFilePrintf(fp, "\n", job->id); cupsFilePrintf(fp, "State %d\n", job->state_value); cupsFilePrintf(fp, "Created %ld\n", (long)job->creation_time); if (job->completed_time) cupsFilePrintf(fp, "Completed %ld\n", (long)job->completed_time); cupsFilePrintf(fp, "Priority %d\n", job->priority); if (job->hold_until) cupsFilePrintf(fp, "HoldUntil %ld\n", (long)job->hold_until); cupsFilePrintf(fp, "Username %s\n", job->username); if (job->name) cupsFilePutConf(fp, "Name", job->name); cupsFilePrintf(fp, "Destination %s\n", job->dest); cupsFilePrintf(fp, "DestType %d\n", job->dtype); cupsFilePrintf(fp, "KOctets %d\n", job->koctets); cupsFilePrintf(fp, "NumFiles %d\n", job->num_files); for (i = 0; i < job->num_files; i ++) cupsFilePrintf(fp, "File %d %s/%s %d\n", i + 1, job->filetypes[i]->super, job->filetypes[i]->type, job->compressions[i]); cupsFilePuts(fp, "\n"); } cupsdCloseCreatedConfFile(fp, filename); } /* * 'cupsdSaveJob()' - Save a job to disk. */ void cupsdSaveJob(cupsd_job_t *job) /* I - Job */ { char filename[1024]; /* Job control filename */ cups_file_t *fp; /* Job file */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSaveJob(job=%p(%d)): job->attrs=%p", job, job->id, job->attrs); if (job->printer && job->printer->temporary) { /* * Don't save jobs on temporary printers... */ job->dirty = 0; return; } snprintf(filename, sizeof(filename), "%s/c%05d", RequestRoot, job->id); if ((fp = cupsdCreateConfFile(filename, ConfigFilePerm & 0600)) == NULL) return; fchown(cupsFileNumber(fp), RunUser, Group); job->attrs->state = IPP_IDLE; if (ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL, job->attrs) != IPP_DATA) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to write job control file."); cupsFileClose(fp); return; } if (!cupsdCloseCreatedConfFile(fp, filename)) { /* * Remove backup file and mark this job as clean... */ strlcat(filename, ".O", sizeof(filename)); unlink(filename); job->dirty = 0; } } /* * 'cupsdSetJobHoldUntil()' - Set the hold time for a job. */ void cupsdSetJobHoldUntil(cupsd_job_t *job, /* I - Job */ const char *when, /* I - When to resume */ int update)/* I - Update job-hold-until attr? */ { time_t curtime; /* Current time */ struct tm curdate; /* Current date */ int hour; /* Hold hour */ int minute; /* Hold minute */ int second = 0; /* Hold second */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSetJobHoldUntil(job=%p(%d), when=\"%s\", update=%d)", job, job->id, when, update); if (update) { /* * Update the job-hold-until attribute... */ ipp_attribute_t *attr; /* job-hold-until attribute */ if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (attr) ippSetString(job->attrs, &attr, 0, when); else attr = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-hold-until", NULL, when); if (attr) { if (isdigit(when[0] & 255)) attr->value_tag = IPP_TAG_NAME; else attr->value_tag = IPP_TAG_KEYWORD; job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } } if (strcmp(when, "no-hold")) ippSetString(job->attrs, &job->reasons, 0, "job-hold-until-specified"); else ippSetString(job->attrs, &job->reasons, 0, "none"); /* * Update the hold time... */ job->cancel_time = 0; if (!strcmp(when, "indefinite") || !strcmp(when, "auth-info-required")) { /* * Hold indefinitely... */ job->hold_until = 0; if (MaxHoldTime > 0) job->cancel_time = time(NULL) + MaxHoldTime; } else if (!strcmp(when, "day-time")) { /* * Hold to 6am the next morning unless local time is < 6pm. */ time(&curtime); localtime_r(&curtime, &curdate); if (curdate.tm_hour < 18) job->hold_until = curtime; else job->hold_until = curtime + ((29 - curdate.tm_hour) * 60 + 59 - curdate.tm_min) * 60 + 60 - curdate.tm_sec; } else if (!strcmp(when, "evening") || !strcmp(when, "night")) { /* * Hold to 6pm unless local time is > 6pm or < 6am. */ time(&curtime); localtime_r(&curtime, &curdate); if (curdate.tm_hour < 6 || curdate.tm_hour >= 18) job->hold_until = curtime; else job->hold_until = curtime + ((17 - curdate.tm_hour) * 60 + 59 - curdate.tm_min) * 60 + 60 - curdate.tm_sec; } else if (!strcmp(when, "second-shift")) { /* * Hold to 4pm unless local time is > 4pm. */ time(&curtime); localtime_r(&curtime, &curdate); if (curdate.tm_hour >= 16) job->hold_until = curtime; else job->hold_until = curtime + ((15 - curdate.tm_hour) * 60 + 59 - curdate.tm_min) * 60 + 60 - curdate.tm_sec; } else if (!strcmp(when, "third-shift")) { /* * Hold to 12am unless local time is < 8am. */ time(&curtime); localtime_r(&curtime, &curdate); if (curdate.tm_hour < 8) job->hold_until = curtime; else job->hold_until = curtime + ((23 - curdate.tm_hour) * 60 + 59 - curdate.tm_min) * 60 + 60 - curdate.tm_sec; } else if (!strcmp(when, "weekend")) { /* * Hold to weekend unless we are in the weekend. */ time(&curtime); localtime_r(&curtime, &curdate); if (curdate.tm_wday == 0 || curdate.tm_wday == 6) job->hold_until = curtime; else job->hold_until = curtime + (((5 - curdate.tm_wday) * 24 + (17 - curdate.tm_hour)) * 60 + 59 - curdate.tm_min) * 60 + 60 - curdate.tm_sec; } else if (sscanf(when, "%d:%d:%d", &hour, &minute, &second) >= 2) { /* * Hold to specified GMT time (HH:MM or HH:MM:SS)... */ time(&curtime); gmtime_r(&curtime, &curdate); job->hold_until = curtime + ((hour - curdate.tm_hour) * 60 + minute - curdate.tm_min) * 60 + second - curdate.tm_sec; /* * Hold until next day as needed... */ if (job->hold_until < curtime) job->hold_until += 24 * 60 * 60; } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSetJobHoldUntil: hold_until=%d", (int)job->hold_until); } /* * 'cupsdSetJobPriority()' - Set the priority of a job, moving it up/down in * the list as needed. */ void cupsdSetJobPriority( cupsd_job_t *job, /* I - Job ID */ int priority) /* I - New priority (0 to 100) */ { ipp_attribute_t *attr; /* Job attribute */ /* * Don't change completed jobs... */ if (job->state_value >= IPP_JOB_PROCESSING) return; /* * Set the new priority and re-add the job into the active list... */ cupsArrayRemove(ActiveJobs, job); job->priority = priority; if ((attr = ippFindAttribute(job->attrs, "job-priority", IPP_TAG_INTEGER)) != NULL) attr->values[0].integer = priority; else ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-priority", priority); cupsArrayAdd(ActiveJobs, job); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } /* * 'cupsdSetJobState()' - Set the state of the specified print job. */ void cupsdSetJobState( cupsd_job_t *job, /* I - Job to cancel */ ipp_jstate_t newstate, /* I - New job state */ cupsd_jobaction_t action, /* I - Action to take */ const char *message, /* I - Message to log */ ...) /* I - Additional arguments as needed */ { int i; /* Looping var */ ipp_jstate_t oldstate; /* Old state */ char filename[1024]; /* Job filename */ ipp_attribute_t *attr; /* Job attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSetJobState(job=%p(%d), state=%d, newstate=%d, " "action=%d, message=\"%s\")", job, job->id, job->state_value, newstate, action, message ? message : "(null)"); /* * Make sure we have the job attributes... */ if (!cupsdLoadJob(job)) return; /* * Don't do anything if the state is unchanged and we aren't purging the * job... */ oldstate = job->state_value; if (newstate == oldstate && action != CUPSD_JOB_PURGE) return; /* * Stop any processes that are working on the current job... */ if (oldstate == IPP_JOB_PROCESSING) stop_job(job, action); /* * Set the new job state... */ job->state_value = newstate; if (job->state) job->state->values[0].integer = (int)newstate; switch (newstate) { case IPP_JOB_PENDING : /* * Update job-hold-until as needed... */ if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (attr) { ippSetValueTag(job->attrs, &attr, IPP_TAG_KEYWORD); ippSetString(job->attrs, &attr, 0, "no-hold"); } default : break; case IPP_JOB_ABORTED : case IPP_JOB_CANCELED : case IPP_JOB_COMPLETED : set_time(job, "time-at-completed"); ippSetString(job->attrs, &job->reasons, 0, "processing-to-stop-point"); break; } /* * Log message as needed... */ if (message) { char buffer[2048]; /* Message buffer */ va_list ap; /* Pointer to additional arguments */ va_start(ap, message); vsnprintf(buffer, sizeof(buffer), message, ap); va_end(ap); if (newstate > IPP_JOB_STOPPED) cupsdAddEvent(CUPSD_EVENT_JOB_COMPLETED, job->printer, job, "%s", buffer); else cupsdAddEvent(CUPSD_EVENT_JOB_STATE, job->printer, job, "%s", buffer); if (newstate == IPP_JOB_STOPPED || newstate == IPP_JOB_ABORTED) cupsdLogJob(job, CUPSD_LOG_ERROR, "%s", buffer); else cupsdLogJob(job, CUPSD_LOG_INFO, "%s", buffer); } /* * Handle post-state-change actions... */ switch (newstate) { case IPP_JOB_PROCESSING : /* * Add the job to the "printing" list... */ if (!cupsArrayFind(PrintingJobs, job)) cupsArrayAdd(PrintingJobs, job); /* * Set the processing time... */ set_time(job, "time-at-processing"); case IPP_JOB_PENDING : case IPP_JOB_HELD : case IPP_JOB_STOPPED : /* * Make sure the job is in the active list... */ if (!cupsArrayFind(ActiveJobs, job)) cupsArrayAdd(ActiveJobs, job); /* * Save the job state to disk... */ job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); break; case IPP_JOB_ABORTED : case IPP_JOB_CANCELED : case IPP_JOB_COMPLETED : if (newstate == IPP_JOB_CANCELED) { /* * Remove the job from the active list if there are no processes still * running for it... */ for (i = 0; job->filters[i] < 0; i++); if (!job->filters[i] && job->backend <= 0) cupsArrayRemove(ActiveJobs, job); } else { /* * Otherwise just remove the job from the active list immediately... */ cupsArrayRemove(ActiveJobs, job); } /* * Expire job subscriptions since the job is now "completed"... */ cupsdExpireSubscriptions(NULL, job); #ifdef __APPLE__ /* * If we are going to sleep and the PrintingJobs count is now 0, allow the * sleep to happen immediately... */ if (Sleeping && cupsArrayCount(PrintingJobs) == 0) cupsdAllowSleep(); #endif /* __APPLE__ */ /* * Remove any authentication data... */ snprintf(filename, sizeof(filename), "%s/a%05d", RequestRoot, job->id); if (cupsdRemoveFile(filename) && errno != ENOENT) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to remove authentication cache: %s", strerror(errno)); for (i = 0; i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) cupsdClearString(job->auth_env + i); cupsdClearString(&job->auth_uid); /* * Remove the print file for good if we aren't preserving jobs or * files... */ if (!JobHistory || !JobFiles || action == CUPSD_JOB_PURGE) remove_job_files(job); if (JobHistory && action != CUPSD_JOB_PURGE) { /* * Save job state info... */ job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } else if (!job->printer) { /* * Delete the job immediately if not actively printing... */ cupsdDeleteJob(job, CUPSD_JOB_PURGE); job = NULL; } break; } /* * Finalize the job immediately if we forced things... */ if (action >= CUPSD_JOB_FORCE && job && job->printer) finalize_job(job, 0); /* * Update the server "busy" state... */ cupsdSetBusyState(0); } /* * 'cupsdStopAllJobs()' - Stop all print jobs. */ void cupsdStopAllJobs( cupsd_jobaction_t action, /* I - Action */ int kill_delay) /* I - Number of seconds before we kill */ { cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(PrintingJobs); job; job = (cupsd_job_t *)cupsArrayNext(PrintingJobs)) { if (job->completed) { cupsdSetJobState(job, IPP_JOB_COMPLETED, CUPSD_JOB_FORCE, NULL); } else { if (kill_delay) job->kill_time = time(NULL) + kill_delay; cupsdSetJobState(job, IPP_JOB_PENDING, action, NULL); } } } /* * 'cupsdUnloadCompletedJobs()' - Flush completed job history from memory. */ void cupsdUnloadCompletedJobs(void) { cupsd_job_t *job; /* Current job */ time_t expire; /* Expiration time */ expire = time(NULL) - 60; for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) if (job->attrs && job->state_value >= IPP_JOB_STOPPED && !job->printer && job->access_time < expire) { if (job->dirty) cupsdSaveJob(job); if (!job->dirty) unload_job(job); } } /* * 'cupsdUpdateJobs()' - Update the history/file files for all jobs. */ void cupsdUpdateJobs(void) { cupsd_job_t *job; /* Current job */ time_t curtime; /* Current time */ ipp_attribute_t *attr; /* time-at-completed attribute */ curtime = time(NULL); JobHistoryUpdate = 0; for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { if (job->state_value >= IPP_JOB_CANCELED && (attr = ippFindAttribute(job->attrs, "time-at-completed", IPP_TAG_INTEGER)) != NULL) { /* * Update history/file expiration times... */ job->completed_time = attr->values[0].integer; if (JobHistory < INT_MAX) job->history_time = job->completed_time + JobHistory; else job->history_time = INT_MAX; if (job->history_time < curtime) { cupsdDeleteJob(job, CUPSD_JOB_PURGE); continue; } if (job->history_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->history_time; if (JobFiles < INT_MAX) job->file_time = job->completed_time + JobFiles; else job->file_time = INT_MAX; cupsdLogJob(job, CUPSD_LOG_DEBUG2, "cupsdUpdateJobs: job->file_time=%ld, time-at-completed=%ld, JobFiles=%d", (long)job->file_time, (long)attr->values[0].integer, JobFiles); if (job->file_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->file_time; } } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdUpdateJobs: JobHistoryUpdate=%ld", (long)JobHistoryUpdate); } /* * 'compare_active_jobs()' - Compare the job IDs and priorities of two jobs. */ static int /* O - Difference */ compare_active_jobs(void *first, /* I - First job */ void *second, /* I - Second job */ void *data) /* I - App data (not used) */ { int diff; /* Difference */ (void)data; if ((diff = ((cupsd_job_t *)second)->priority - ((cupsd_job_t *)first)->priority) != 0) return (diff); else return (((cupsd_job_t *)first)->id - ((cupsd_job_t *)second)->id); } /* * 'compare_completed_jobs()' - Compare the job IDs and completion times of two jobs. */ static int /* O - Difference */ compare_completed_jobs(void *first, /* I - First job */ void *second, /* I - Second job */ void *data) /* I - App data (not used) */ { int diff; /* Difference */ (void)data; if ((diff = ((cupsd_job_t *)second)->completed_time - ((cupsd_job_t *)first)->completed_time) != 0) return (diff); else return (((cupsd_job_t *)first)->id - ((cupsd_job_t *)second)->id); } /* * 'compare_jobs()' - Compare the job IDs of two jobs. */ static int /* O - Difference */ compare_jobs(void *first, /* I - First job */ void *second, /* I - Second job */ void *data) /* I - App data (not used) */ { (void)data; return (((cupsd_job_t *)first)->id - ((cupsd_job_t *)second)->id); } /* * 'dump_job_history()' - Dump any debug messages for a job. */ static void dump_job_history(cupsd_job_t *job) /* I - Job */ { int i, /* Looping var */ oldsize; /* Current MaxLogSize */ struct tm date; /* Date/time value */ cupsd_joblog_t *message; /* Current message */ char temp[2048], /* Log message */ *ptr, /* Pointer into log message */ start[256], /* Start time */ end[256]; /* End time */ cupsd_printer_t *printer; /* Printer for job */ /* * See if we have anything to dump... */ if (!job->history) return; /* * Disable log rotation temporarily... */ oldsize = MaxLogSize; MaxLogSize = 0; /* * Copy the debug messages to the log... */ message = (cupsd_joblog_t *)cupsArrayFirst(job->history); localtime_r(&(message->time), &date); strftime(start, sizeof(start), "%X", &date); message = (cupsd_joblog_t *)cupsArrayLast(job->history); localtime_r(&(message->time), &date); strftime(end, sizeof(end), "%X", &date); snprintf(temp, sizeof(temp), "[Job %d] The following messages were recorded from %s to %s", job->id, start, end); cupsdWriteErrorLog(CUPSD_LOG_DEBUG, temp); for (message = (cupsd_joblog_t *)cupsArrayFirst(job->history); message; message = (cupsd_joblog_t *)cupsArrayNext(job->history)) cupsdWriteErrorLog(CUPSD_LOG_DEBUG, message->message); snprintf(temp, sizeof(temp), "[Job %d] End of messages", job->id); cupsdWriteErrorLog(CUPSD_LOG_DEBUG, temp); /* * Log the printer state values... */ if ((printer = job->printer) == NULL) printer = cupsdFindDest(job->dest); if (printer) { snprintf(temp, sizeof(temp), "[Job %d] printer-state=%d(%s)", job->id, printer->state, printer->state == IPP_PRINTER_IDLE ? "idle" : printer->state == IPP_PRINTER_PROCESSING ? "processing" : "stopped"); cupsdWriteErrorLog(CUPSD_LOG_DEBUG, temp); snprintf(temp, sizeof(temp), "[Job %d] printer-state-message=\"%s\"", job->id, printer->state_message); cupsdWriteErrorLog(CUPSD_LOG_DEBUG, temp); snprintf(temp, sizeof(temp), "[Job %d] printer-state-reasons=", job->id); ptr = temp + strlen(temp); if (printer->num_reasons == 0) strlcpy(ptr, "none", sizeof(temp) - (size_t)(ptr - temp)); else { for (i = 0; i < printer->num_reasons && ptr < (temp + sizeof(temp) - 2); i ++) { if (i) *ptr++ = ','; strlcpy(ptr, printer->reasons[i], sizeof(temp) - (size_t)(ptr - temp)); ptr += strlen(ptr); } } cupsdWriteErrorLog(CUPSD_LOG_DEBUG, temp); } /* * Restore log file rotation... */ MaxLogSize = oldsize; /* * Free all messages... */ free_job_history(job); } /* * 'free_job_history()' - Free any log history. */ static void free_job_history(cupsd_job_t *job) /* I - Job */ { char *message; /* Current message */ if (!job->history) return; for (message = (char *)cupsArrayFirst(job->history); message; message = (char *)cupsArrayNext(job->history)) free(message); cupsArrayDelete(job->history); job->history = NULL; } /* * 'finalize_job()' - Cleanup after job filter processes and support data. */ static void finalize_job(cupsd_job_t *job, /* I - Job */ int set_job_state) /* I - 1 = set the job state */ { ipp_pstate_t printer_state; /* New printer state value */ ipp_jstate_t job_state; /* New job state value */ const char *message; /* Message for job state */ char buffer[1024]; /* Buffer for formatted messages */ char scheme[255]; /* Device URI scheme */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "finalize_job(job=%p(%d))", job, job->id); sscanf(job->printer->device_uri, "%254[^:]", scheme); /* * Clear the "connecting-to-device" and "cups-waiting-for-job-completed" * reasons, which are only valid when a printer is processing, along with any * remote printing job state... */ cupsdSetPrinterReasons(job->printer, "-connecting-to-device," "cups-waiting-for-job-completed," "cups-remote-pending," "cups-remote-pending-held," "cups-remote-processing," "cups-remote-stopped," "cups-remote-canceled," "cups-remote-aborted," "cups-remote-completed"); /* * Similarly, clear the "offline-report" reason for non-USB devices since we * rarely have current information for network devices... */ if (!strstr(job->printer->device_uri, "usb:")) cupsdSetPrinterReasons(job->printer, "-offline-report"); /* * Free the security profile... */ cupsdDestroyProfile(job->profile); job->profile = NULL; cupsdDestroyProfile(job->bprofile); job->bprofile = NULL; /* * Clear the unresponsive job watchdog timers... */ job->cancel_time = 0; job->kill_time = 0; /* * Close pipes and status buffer... */ cupsdClosePipe(job->print_pipes); cupsdClosePipe(job->back_pipes); cupsdClosePipe(job->side_pipes); cupsdRemoveSelect(job->status_pipes[0]); cupsdClosePipe(job->status_pipes); cupsdStatBufDelete(job->status_buffer); job->status_buffer = NULL; /* * Log the final impression (page) count... */ snprintf(buffer, sizeof(buffer), "total %d", ippGetInteger(job->impressions, 0)); cupsdLogPage(job, buffer); /* * Process the exit status... */ if (job->printer->state == IPP_PRINTER_PROCESSING) printer_state = IPP_PRINTER_IDLE; else printer_state = job->printer->state; switch (job_state = job->state_value) { case IPP_JOB_PENDING : message = "Job paused."; break; case IPP_JOB_HELD : message = "Job held."; break; default : case IPP_JOB_PROCESSING : case IPP_JOB_COMPLETED : job_state = IPP_JOB_COMPLETED; message = "Job completed."; if (!job->status) ippSetString(job->attrs, &job->reasons, 0, "job-completed-successfully"); break; case IPP_JOB_STOPPED : message = "Job stopped."; ippSetString(job->attrs, &job->reasons, 0, "job-stopped"); break; case IPP_JOB_CANCELED : message = "Job canceled."; ippSetString(job->attrs, &job->reasons, 0, "job-canceled-by-user"); break; case IPP_JOB_ABORTED : message = "Job aborted."; break; } if (job->status < 0) { /* * Backend had errors... */ int exit_code; /* Exit code from backend */ /* * Convert the status to an exit code. Due to the way the W* macros are * implemented on macOS (bug?), we have to store the exit status in a * variable first and then convert... */ exit_code = -job->status; if (WIFEXITED(exit_code)) exit_code = WEXITSTATUS(exit_code); else { ippSetString(job->attrs, &job->reasons, 0, "cups-backend-crashed"); exit_code = job->status; } cupsdLogJob(job, CUPSD_LOG_WARN, "Backend %s returned status %d (%s)", scheme, exit_code, exit_code == CUPS_BACKEND_FAILED ? "failed" : exit_code == CUPS_BACKEND_AUTH_REQUIRED ? "authentication required" : exit_code == CUPS_BACKEND_HOLD ? "hold job" : exit_code == CUPS_BACKEND_STOP ? "stop printer" : exit_code == CUPS_BACKEND_CANCEL ? "cancel job" : exit_code == CUPS_BACKEND_RETRY ? "retry job later" : exit_code == CUPS_BACKEND_RETRY_CURRENT ? "retry job immediately" : exit_code < 0 ? "crashed" : "unknown"); /* * Do what needs to be done... */ switch (exit_code) { default : case CUPS_BACKEND_FAILED : /* * Backend failure, use the error-policy to determine how to * act... */ if (job->dtype & CUPS_PRINTER_CLASS) { /* * Queued on a class - mark the job as pending and we'll retry on * another printer... */ if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_PENDING; message = "Retrying job on another printer."; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } } else if (!strcmp(job->printer->error_policy, "retry-current-job")) { /* * The error policy is "retry-current-job" - mark the job as pending * and we'll retry on the same printer... */ if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_PENDING; message = "Retrying job on same printer."; ippSetString(job->attrs, &job->reasons, 0, "none"); } } else if ((job->printer->type & CUPS_PRINTER_FAX) || !strcmp(job->printer->error_policy, "retry-job")) { if (job_state == IPP_JOB_COMPLETED) { /* * The job was queued on a fax or the error policy is "retry-job" - * hold the job if the number of retries is less than the * JobRetryLimit, otherwise abort the job. */ job->tries ++; if (job->tries > JobRetryLimit && JobRetryLimit > 0) { /* * Too many tries... */ snprintf(buffer, sizeof(buffer), "Job aborted after %d unsuccessful attempts.", JobRetryLimit); job_state = IPP_JOB_ABORTED; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); } else { /* * Try again in N seconds... */ snprintf(buffer, sizeof(buffer), "Job held for %d seconds since it could not be sent.", JobRetryInterval); job->hold_until = time(NULL) + JobRetryInterval; job_state = IPP_JOB_HELD; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } } } else if (!strcmp(job->printer->error_policy, "abort-job") && job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_ABORTED; if (ErrorLog) { snprintf(buffer, sizeof(buffer), "Job aborted due to backend errors; please consult the %s file for details.", ErrorLog); message = buffer; } else message = "Job aborted due to backend errors."; ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); } else if (job->state_value == IPP_JOB_PROCESSING) { job_state = IPP_JOB_PENDING; printer_state = IPP_PRINTER_STOPPED; if (ErrorLog) { snprintf(buffer, sizeof(buffer), "Printer stopped due to backend errors; please consult the %s file for details.", ErrorLog); message = buffer; } else message = "Printer stopped due to backend errors."; ippSetString(job->attrs, &job->reasons, 0, "none"); } break; case CUPS_BACKEND_CANCEL : /* * Cancel the job... */ if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_CANCELED; message = "Job canceled at printer."; ippSetString(job->attrs, &job->reasons, 0, "canceled-at-device"); } break; case CUPS_BACKEND_HOLD : if (job_state == IPP_JOB_COMPLETED) { /* * Hold the job... */ const char *reason = ippGetString(job->reasons, 0, NULL); cupsdLogJob(job, CUPSD_LOG_DEBUG, "job-state-reasons=\"%s\"", reason); if (!reason || strncmp(reason, "account-", 8)) { cupsdSetJobHoldUntil(job, "indefinite", 1); ippSetString(job->attrs, &job->reasons, 0, "job-hold-until-specified"); if (ErrorLog) { snprintf(buffer, sizeof(buffer), "Job held indefinitely due to backend errors; please consult the %s file for details.", ErrorLog); message = buffer; } else message = "Job held indefinitely due to backend errors."; } else if (!strcmp(reason, "account-info-needed")) { cupsdSetJobHoldUntil(job, "indefinite", 0); message = "Job held indefinitely - account information is required."; } else if (!strcmp(reason, "account-closed")) { cupsdSetJobHoldUntil(job, "indefinite", 0); message = "Job held indefinitely - account has been closed."; } else if (!strcmp(reason, "account-limit-reached")) { cupsdSetJobHoldUntil(job, "indefinite", 0); message = "Job held indefinitely - account limit has been reached."; } else { cupsdSetJobHoldUntil(job, "indefinite", 0); message = "Job held indefinitely - account authorization failed."; } job_state = IPP_JOB_HELD; } break; case CUPS_BACKEND_STOP : /* * Stop the printer... */ if (job_state == IPP_JSTATE_CANCELED || job_state == IPP_JSTATE_ABORTED) { cupsdLogJob(job, CUPSD_LOG_INFO, "Ignored STOP from backend since the job is %s.", job_state == IPP_JSTATE_CANCELED ? "canceled" : "aborted"); break; } printer_state = IPP_PRINTER_STOPPED; if (ErrorLog) { snprintf(buffer, sizeof(buffer), "Printer stopped due to backend errors; please consult the %s file for details.", ErrorLog); message = buffer; } else message = "Printer stopped due to backend errors."; if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_PENDING; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } break; case CUPS_BACKEND_AUTH_REQUIRED : /* * Hold the job for authentication... */ if (job_state == IPP_JOB_COMPLETED) { cupsdSetJobHoldUntil(job, "auth-info-required", 1); job_state = IPP_JOB_HELD; message = "Job held for authentication."; if (strncmp(job->reasons->values[0].string.text, "account-", 8)) ippSetString(job->attrs, &job->reasons, 0, "cups-held-for-authentication"); if (job->printer->num_auth_info_required == 1 && !strcmp(job->printer->auth_info_required[0], "none")) { // Default to "username,password" authentication if none is specified... cupsdSetAuthInfoRequired(job->printer, "username,password", NULL); } } break; case CUPS_BACKEND_RETRY : if (job_state == IPP_JOB_COMPLETED) { /* * Hold the job if the number of retries is less than the * JobRetryLimit, otherwise abort the job. */ job->tries ++; if (job->tries > JobRetryLimit && JobRetryLimit > 0) { /* * Too many tries... */ snprintf(buffer, sizeof(buffer), "Job aborted after %d unsuccessful attempts.", JobRetryLimit); job_state = IPP_JOB_ABORTED; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); } else { /* * Try again in N seconds... */ snprintf(buffer, sizeof(buffer), "Job held for %d seconds since it could not be sent.", JobRetryInterval); job->hold_until = time(NULL) + JobRetryInterval; job_state = IPP_JOB_HELD; message = buffer; ippSetString(job->attrs, &job->reasons, 0, "resources-are-not-ready"); } } break; case CUPS_BACKEND_RETRY_CURRENT : /* * Mark the job as pending and retry on the same printer... */ if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_PENDING; message = "Retrying job on same printer."; ippSetString(job->attrs, &job->reasons, 0, "none"); } break; } } else if (job->status > 0) { /* * Filter had errors; stop job... */ if (job_state == IPP_JOB_COMPLETED) { job_state = IPP_JOB_STOPPED; if (ErrorLog) { snprintf(buffer, sizeof(buffer), "Job stopped due to filter errors; please consult the %s file for details.", ErrorLog); message = buffer; } else message = "Job stopped due to filter errors."; if (WIFSIGNALED(job->status)) ippSetString(job->attrs, &job->reasons, 0, "cups-filter-crashed"); else ippSetString(job->attrs, &job->reasons, 0, "job-completed-with-errors"); } } /* * Update the printer and job state. */ if (set_job_state && job_state != job->state_value) cupsdSetJobState(job, job_state, CUPSD_JOB_DEFAULT, "%s", message); cupsdSetPrinterState(job->printer, printer_state, printer_state == IPP_PRINTER_STOPPED); update_job_attrs(job, 0); if (job->history) { if (job->status && (job->state_value == IPP_JOB_ABORTED || job->state_value == IPP_JOB_STOPPED)) dump_job_history(job); else free_job_history(job); } cupsArrayRemove(PrintingJobs, job); /* * Clear informational messages... */ if (job->status_level > CUPSD_LOG_ERROR) job->printer->state_message[0] = '\0'; /* * Apply any PPD updates... */ if (job->num_keywords) { if (cupsdUpdatePrinterPPD(job->printer, job->num_keywords, job->keywords)) cupsdSetPrinterAttrs(job->printer); cupsFreeOptions(job->num_keywords, job->keywords); job->num_keywords = 0; job->keywords = NULL; } /* * Clear the printer <-> job association... */ job->printer->job = NULL; job->printer = NULL; } /* * 'get_options()' - Get a string containing the job options. */ static char * /* O - Options string */ get_options(cupsd_job_t *job, /* I - Job */ int banner_page, /* I - Printing a banner page? */ char *copies, /* I - Copies buffer */ size_t copies_size, /* I - Size of copies buffer */ char *title, /* I - Title buffer */ size_t title_size) /* I - Size of title buffer */ { int i; /* Looping var */ size_t newlength; /* New option buffer length */ char *optptr, /* Pointer to options */ *valptr; /* Pointer in value string */ ipp_attribute_t *attr; /* Current attribute */ _ppd_cache_t *pc; /* PPD cache and mapping data */ int num_pwgppds; /* Number of PWG->PPD options */ cups_option_t *pwgppds, /* PWG->PPD options */ *pwgppd, /* Current PWG->PPD option */ *preset; /* Current preset option */ int print_color_mode, /* Output mode (if any) */ print_quality; /* Print quality (if any) */ const char *ppd; /* PPD option choice */ int exact; /* Did we get an exact match? */ static char *options = NULL;/* Full list of options */ static size_t optlength = 0; /* Length of option buffer */ /* * Building the options string is harder than it needs to be, but for the * moment we need to pass strings for command-line args and not IPP attribute * pointers... :) * * First build an options array for any PWG->PPD mapped option/choice pairs. */ pc = job->printer->pc; num_pwgppds = 0; pwgppds = NULL; if (pc && !ippFindAttribute(job->attrs, "com.apple.print.DocumentTicket.PMSpoolFormat", IPP_TAG_ZERO) && !ippFindAttribute(job->attrs, "APPrinterPreset", IPP_TAG_ZERO) && (ippFindAttribute(job->attrs, "print-color-mode", IPP_TAG_ZERO) || ippFindAttribute(job->attrs, "print-quality", IPP_TAG_ZERO) || ippFindAttribute(job->attrs, "cupsPrintQuality", IPP_TAG_ZERO))) { /* * Map print-color-mode and print-quality to a preset... */ if ((attr = ippFindAttribute(job->attrs, "print-color-mode", IPP_TAG_KEYWORD)) != NULL && !strcmp(attr->values[0].string.text, "monochrome")) print_color_mode = _PWG_PRINT_COLOR_MODE_MONOCHROME; else print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; if ((attr = ippFindAttribute(job->attrs, "print-quality", IPP_TAG_ENUM)) != NULL) { ipp_quality_t pq = (ipp_quality_t)ippGetInteger(attr, 0); if (pq >= IPP_QUALITY_DRAFT && pq <= IPP_QUALITY_HIGH) print_quality = attr->values[0].integer - IPP_QUALITY_DRAFT; else print_quality = _PWG_PRINT_QUALITY_NORMAL; } else if ((attr = ippFindAttribute(job->attrs, "cupsPrintQuality", IPP_TAG_NAME)) != NULL) { const char *pq = ippGetString(attr, 0, NULL); if (!_cups_strcasecmp(pq, "draft")) print_quality = _PWG_PRINT_QUALITY_DRAFT; else if (!_cups_strcasecmp(pq, "high")) print_quality = _PWG_PRINT_QUALITY_HIGH; else print_quality = _PWG_PRINT_QUALITY_NORMAL; if (!ippFindAttribute(job->attrs, "print-quality", IPP_TAG_ENUM)) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping cupsPrintQuality=%s to print-quality=%d", pq, print_quality + IPP_QUALITY_DRAFT); num_pwgppds = cupsAddIntegerOption("print-quality", print_quality + IPP_QUALITY_DRAFT, num_pwgppds, &pwgppds); } } else { print_quality = _PWG_PRINT_QUALITY_NORMAL; } if (pc->num_presets[print_color_mode][print_quality] == 0) { /* * Try to find a preset that works so that we maximize the chances of us * getting a good print using IPP attributes. */ if (pc->num_presets[print_color_mode][_PWG_PRINT_QUALITY_NORMAL] > 0) print_quality = _PWG_PRINT_QUALITY_NORMAL; else if (pc->num_presets[_PWG_PRINT_COLOR_MODE_COLOR][print_quality] > 0) print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; else { print_quality = _PWG_PRINT_QUALITY_NORMAL; print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; } } if (pc->num_presets[print_color_mode][print_quality] > 0) { /* * Copy the preset options as long as the corresponding names are not * already defined in the IPP request... */ for (i = pc->num_presets[print_color_mode][print_quality], preset = pc->presets[print_color_mode][print_quality]; i > 0; i --, preset ++) { if (!ippFindAttribute(job->attrs, preset->name, IPP_TAG_ZERO)) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Adding preset option %s=%s", preset->name, preset->value); num_pwgppds = cupsAddOption(preset->name, preset->value, num_pwgppds, &pwgppds); } } } } if (pc) { if ((attr = ippFindAttribute(job->attrs, "print-quality", IPP_TAG_ENUM)) != NULL) { int pq = ippGetInteger(attr, 0); static const char * const pqs[] = { "Draft", "Normal", "High" }; if (pq >= IPP_QUALITY_DRAFT && pq <= IPP_QUALITY_HIGH) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping print-quality=%d to cupsPrintQuality=%s", pq, pqs[pq - IPP_QUALITY_DRAFT]); num_pwgppds = cupsAddOption("cupsPrintQuality", pqs[pq - IPP_QUALITY_DRAFT], num_pwgppds, &pwgppds); } } if (!ippFindAttribute(job->attrs, "InputSlot", IPP_TAG_ZERO) && !ippFindAttribute(job->attrs, "HPPaperSource", IPP_TAG_ZERO)) { if ((ppd = _ppdCacheGetInputSlot(pc, job->attrs, NULL)) != NULL) num_pwgppds = cupsAddOption(pc->source_option, ppd, num_pwgppds, &pwgppds); } if (!ippFindAttribute(job->attrs, "MediaType", IPP_TAG_ZERO) && (ppd = _ppdCacheGetMediaType(pc, job->attrs, NULL)) != NULL) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping media to MediaType=%s", ppd); num_pwgppds = cupsAddOption("MediaType", ppd, num_pwgppds, &pwgppds); } if (!ippFindAttribute(job->attrs, "PageRegion", IPP_TAG_ZERO) && !ippFindAttribute(job->attrs, "PageSize", IPP_TAG_ZERO) && (ppd = _ppdCacheGetPageSize(pc, job->attrs, NULL, &exact)) != NULL) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping media to Pagesize=%s", ppd); num_pwgppds = cupsAddOption("PageSize", ppd, num_pwgppds, &pwgppds); if (!ippFindAttribute(job->attrs, "media", IPP_TAG_ZERO)) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Adding media=%s", ppd); num_pwgppds = cupsAddOption("media", ppd, num_pwgppds, &pwgppds); } } if (!ippFindAttribute(job->attrs, "OutputBin", IPP_TAG_ZERO) && (attr = ippFindAttribute(job->attrs, "output-bin", IPP_TAG_ZERO)) != NULL && (attr->value_tag == IPP_TAG_KEYWORD || attr->value_tag == IPP_TAG_NAME) && (ppd = _ppdCacheGetOutputBin(pc, attr->values[0].string.text)) != NULL) { /* * Map output-bin to OutputBin option... */ cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping output-bin to OutputBin=%s", ppd); num_pwgppds = cupsAddOption("OutputBin", ppd, num_pwgppds, &pwgppds); } if (pc->sides_option && !ippFindAttribute(job->attrs, pc->sides_option, IPP_TAG_ZERO) && (attr = ippFindAttribute(job->attrs, "sides", IPP_TAG_KEYWORD)) != NULL) { /* * Map sides to duplex option... */ if (!strcmp(attr->values[0].string.text, "one-sided")) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping sizes to Duplex=%s", pc->sides_1sided); num_pwgppds = cupsAddOption(pc->sides_option, pc->sides_1sided, num_pwgppds, &pwgppds); } else if (!strcmp(attr->values[0].string.text, "two-sided-long-edge")) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping sizes to Duplex=%s", pc->sides_2sided_long); num_pwgppds = cupsAddOption(pc->sides_option, pc->sides_2sided_long, num_pwgppds, &pwgppds); } else if (!strcmp(attr->values[0].string.text, "two-sided-short-edge")) { cupsdLogJob(job, CUPSD_LOG_DEBUG2, "Mapping sizes to Duplex=%s", pc->sides_2sided_short); num_pwgppds = cupsAddOption(pc->sides_option, pc->sides_2sided_short, num_pwgppds, &pwgppds); } } /* * Map finishings values... */ num_pwgppds = _ppdCacheGetFinishingOptions(pc, job->attrs, IPP_FINISHINGS_NONE, num_pwgppds, &pwgppds); for (i = num_pwgppds, pwgppd = pwgppds; i > 0; i --, pwgppd ++) cupsdLogJob(job, CUPSD_LOG_DEBUG2, "After mapping finishings %s=%s", pwgppd->name, pwgppd->value); } /* * Map page-delivery values... */ if ((attr = ippFindAttribute(job->attrs, "page-delivery", IPP_TAG_KEYWORD)) != NULL && !ippFindAttribute(job->attrs, "outputorder", IPP_TAG_ZERO)) { const char *page_delivery = ippGetString(attr, 0, NULL); if (!strncmp(page_delivery, "same-order", 10)) num_pwgppds = cupsAddOption("OutputOrder", "Normal", num_pwgppds, &pwgppds); else if (!strncmp(page_delivery, "reverse-order", 13)) num_pwgppds = cupsAddOption("OutputOrder", "Reverse", num_pwgppds, &pwgppds); } /* * Map destination-uris value... */ if ((job->printer->type & CUPS_PRINTER_FAX) && (attr = ippFindAttribute(job->attrs, "destination-uris", IPP_TAG_BEGIN_COLLECTION)) != NULL) { ipp_t *ipp = ippGetCollection(attr, 0); // Collection value const char *destination_uri = ippGetString(ippFindAttribute(ipp, "destination-uri", IPP_TAG_URI), 0, NULL); const char *pre_dial_string = ippGetString(ippFindAttribute(ipp, "pre-dial-string", IPP_TAG_TEXT), 0, NULL); if (destination_uri && !strncmp(destination_uri, "tel:", 4)) num_pwgppds = cupsAddOption("phone", destination_uri + 4, num_pwgppds, &pwgppds); if (pre_dial_string) num_pwgppds = cupsAddOption("faxPrefix", pre_dial_string, num_pwgppds, &pwgppds); } /* * Figure out how much room we need... */ newlength = ipp_length(job->attrs); for (i = num_pwgppds, pwgppd = pwgppds; i > 0; i --, pwgppd ++) newlength += 1 + strlen(pwgppd->name) + 1 + strlen(pwgppd->value); /* * Then allocate/reallocate the option buffer as needed... */ if (newlength > optlength || !options) { if (!options) optptr = malloc(newlength); else optptr = realloc(options, newlength); if (!optptr) { cupsdLogJob(job, CUPSD_LOG_CRIT, "Unable to allocate " CUPS_LLFMT " bytes for option buffer.", CUPS_LLCAST newlength); return (NULL); } options = optptr; optlength = newlength; } /* * Now loop through the attributes and convert them to the textual * representation used by the filters... */ optptr = options; *optptr = '\0'; snprintf(title, title_size, "%s-%d", job->printer->name, job->id); strlcpy(copies, "1", copies_size); for (attr = job->attrs->attrs; attr != NULL; attr = attr->next) { if (!strcmp(attr->name, "copies") && attr->value_tag == IPP_TAG_INTEGER) { /* * Don't use the # copies attribute if we are printing the job sheets... */ if (!banner_page) snprintf(copies, copies_size, "%d", attr->values[0].integer); } else if (!strcmp(attr->name, "job-name") && (attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_NAMELANG)) strlcpy(title, attr->values[0].string.text, title_size); else if (attr->group_tag == IPP_TAG_JOB) { /* * Filter out other unwanted attributes... */ if (attr->value_tag == IPP_TAG_NOVALUE || attr->value_tag == IPP_TAG_MIMETYPE || attr->value_tag == IPP_TAG_NAMELANG || attr->value_tag == IPP_TAG_TEXTLANG || (attr->value_tag == IPP_TAG_URI && strcmp(attr->name, "job-uuid") && strcmp(attr->name, "job-authorization-uri")) || attr->value_tag == IPP_TAG_URISCHEME || attr->value_tag == IPP_TAG_BEGIN_COLLECTION) /* Not yet supported */ continue; if (!strcmp(attr->name, "job-hold-until") || !strcmp(attr->name, "job-id") || !strcmp(attr->name, "job-k-octets") || !strcmp(attr->name, "job-media-sheets") || !strcmp(attr->name, "job-media-sheets-completed") || !strcmp(attr->name, "job-state") || !strcmp(attr->name, "job-state-reasons")) continue; if (!strncmp(attr->name, "job-", 4) && strcmp(attr->name, "job-account-id") && strcmp(attr->name, "job-accounting-user-id") && strcmp(attr->name, "job-authorization-uri") && strcmp(attr->name, "job-billing") && strcmp(attr->name, "job-impressions") && strcmp(attr->name, "job-originating-host-name") && strcmp(attr->name, "job-password") && strcmp(attr->name, "job-password-encryption") && strcmp(attr->name, "job-uuid") && !(job->printer->type & CUPS_PRINTER_REMOTE)) continue; if ((!strcmp(attr->name, "job-impressions") || !strcmp(attr->name, "page-label") || !strcmp(attr->name, "page-border") || !strncmp(attr->name, "number-up", 9) || !strcmp(attr->name, "page-ranges") || !strcmp(attr->name, "page-set") || !_cups_strcasecmp(attr->name, "AP_FIRSTPAGE_InputSlot") || !_cups_strcasecmp(attr->name, "AP_FIRSTPAGE_ManualFeed") || !_cups_strcasecmp(attr->name, "com.apple.print.PrintSettings." "PMTotalSidesImaged..n.") || !_cups_strcasecmp(attr->name, "com.apple.print.PrintSettings." "PMTotalBeginPages..n.")) && banner_page) continue; /* * Otherwise add them to the list... */ if (optptr > options) strlcat(optptr, " ", optlength - (size_t)(optptr - options)); if (attr->value_tag != IPP_TAG_BOOLEAN) { strlcat(optptr, attr->name, optlength - (size_t)(optptr - options)); strlcat(optptr, "=", optlength - (size_t)(optptr - options)); } for (i = 0; i < attr->num_values; i ++) { if (i) strlcat(optptr, ",", optlength - (size_t)(optptr - options)); optptr += strlen(optptr); switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : snprintf(optptr, optlength - (size_t)(optptr - options), "%d", attr->values[i].integer); break; case IPP_TAG_BOOLEAN : if (!attr->values[i].boolean) strlcat(optptr, "no", optlength - (size_t)(optptr - options)); strlcat(optptr, attr->name, optlength - (size_t)(optptr - options)); break; case IPP_TAG_RANGE : if (attr->values[i].range.lower == attr->values[i].range.upper) snprintf(optptr, optlength - (size_t)(optptr - options) - 1, "%d", attr->values[i].range.lower); else snprintf(optptr, optlength - (size_t)(optptr - options) - 1, "%d-%d", attr->values[i].range.lower, attr->values[i].range.upper); break; case IPP_TAG_RESOLUTION : snprintf(optptr, optlength - (size_t)(optptr - options) - 1, "%dx%d%s", attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); break; case IPP_TAG_STRING : { int length = attr->values[i].unknown.length; for (valptr = attr->values[i].unknown.data; length > 0; length --) { if ((*valptr & 255) < 0x20 || *valptr == 0x7f) break; } if (length > 0) { /* * Encode this string as hex characters... */ *optptr++ = '<'; for (valptr = attr->values[i].unknown.data, length = attr->values[i].unknown.length; length > 0; length --) { snprintf(optptr, optlength - (size_t)(optptr - options) - 1, "%02X", *valptr & 255); optptr += 2; } *optptr++ = '>'; } else { for (valptr = attr->values[i].unknown.data, length = attr->values[i].unknown.length; length > 0; length --) { if (strchr(" \t\n\\\'\"", *valptr)) *optptr++ = '\\'; *optptr++ = *valptr++; } } } *optptr = '\0'; break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_URI : for (valptr = attr->values[i].string.text; *valptr;) { if (strchr(" \t\n\\\'\"", *valptr)) *optptr++ = '\\'; *optptr++ = *valptr++; } *optptr = '\0'; break; default : break; /* anti-compiler-warning-code */ } } optptr += strlen(optptr); } } /* * Finally loop through the PWG->PPD mapped options and add them... */ for (i = num_pwgppds, pwgppd = pwgppds; i > 0; i --, pwgppd ++) { *optptr++ = ' '; strlcpy(optptr, pwgppd->name, optlength - (size_t)(optptr - options)); optptr += strlen(optptr); *optptr++ = '='; strlcpy(optptr, pwgppd->value, optlength - (size_t)(optptr - options)); optptr += strlen(optptr); } cupsFreeOptions(num_pwgppds, pwgppds); /* * Return the options string... */ return (options); } /* * 'ipp_length()' - Compute the size of the buffer needed to hold * the textual IPP attributes. */ static size_t /* O - Size of attribute buffer */ ipp_length(ipp_t *ipp) /* I - IPP request */ { size_t bytes; /* Number of bytes */ int i; /* Looping var */ ipp_attribute_t *attr; /* Current attribute */ /* * Loop through all attributes... */ bytes = 0; for (attr = ipp->attrs; attr != NULL; attr = attr->next) { /* * Skip attributes that won't be sent to filters... */ if (attr->value_tag == IPP_TAG_NOVALUE || attr->value_tag == IPP_TAG_MIMETYPE || attr->value_tag == IPP_TAG_NAMELANG || attr->value_tag == IPP_TAG_TEXTLANG || attr->value_tag == IPP_TAG_URI || attr->value_tag == IPP_TAG_URISCHEME) continue; /* * Add space for a leading space and commas between each value. * For the first attribute, the leading space isn't used, so the * extra byte can be used as the nul terminator... */ bytes ++; /* " " separator */ bytes += (size_t)attr->num_values; /* "," separators */ /* * Boolean attributes appear as "foo,nofoo,foo,nofoo", while * other attributes appear as "foo=value1,value2,...,valueN". */ if (attr->value_tag != IPP_TAG_BOOLEAN) bytes += strlen(attr->name); else bytes += (size_t)attr->num_values * strlen(attr->name); /* * Now add the size required for each value in the attribute... */ switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : /* * Minimum value of a signed integer is -2147483647, or 11 digits. */ bytes += (size_t)attr->num_values * 11; break; case IPP_TAG_BOOLEAN : /* * Add two bytes for each false ("no") value... */ for (i = 0; i < attr->num_values; i ++) if (!attr->values[i].boolean) bytes += 2; break; case IPP_TAG_RANGE : /* * A range is two signed integers separated by a hyphen, or * 23 characters max. */ bytes += (size_t)attr->num_values * 23; break; case IPP_TAG_RESOLUTION : /* * A resolution is two signed integers separated by an "x" and * suffixed by the units, or 26 characters max. */ bytes += (size_t)attr->num_values * 26; break; case IPP_TAG_STRING : /* * Octet strings can contain characters that need quoting. We need * at least 2 * len + 2 characters to cover the quotes and any * backslashes in the string. */ for (i = 0; i < attr->num_values; i ++) bytes += 2 * (size_t)attr->values[i].unknown.length + 2; break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_URI : /* * Strings can contain characters that need quoting. We need * at least 2 * len + 2 characters to cover the quotes and * any backslashes in the string. */ for (i = 0; i < attr->num_values; i ++) bytes += 2 * strlen(attr->values[i].string.text) + 2; break; default : break; /* anti-compiler-warning-code */ } } return (bytes); } /* * 'load_job_cache()' - Load jobs from the job.cache file. */ static void load_job_cache(const char *filename) /* I - job.cache filename */ { cups_file_t *fp; /* job.cache file */ char line[1024], /* Line buffer */ *value; /* Value on line */ int linenum; /* Line number in file */ cupsd_job_t *job; /* Current job */ int jobid; /* Job ID */ char jobfile[1024]; /* Job filename */ /* * Open the job.cache file... */ if ((fp = cupsdOpenConfFile(filename)) == NULL) { load_request_root(); return; } /* * Read entries from the job cache file and create jobs as needed. */ cupsdLogMessage(CUPSD_LOG_INFO, "Loading job cache file \"%s\"...", filename); linenum = 0; job = NULL; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "NextJobId")) { if (value) NextJobId = atoi(value); } else if (!_cups_strcasecmp(line, " directive on line %d of %s.", linenum, filename); continue; } if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing job ID on line %d of %s.", linenum, filename); continue; } jobid = atoi(value); if (jobid < 1) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad job ID %d on line %d of %s.", jobid, linenum, filename); continue; } snprintf(jobfile, sizeof(jobfile), "%s/c%05d", RequestRoot, jobid); if (access(jobfile, 0)) { snprintf(jobfile, sizeof(jobfile), "%s/c%05d.N", RequestRoot, jobid); if (access(jobfile, 0)) { cupsdLogMessage(CUPSD_LOG_ERROR, "[Job %d] Files have gone away.", jobid); /* * job.cache file is out-of-date compared to spool directory; load * that instead... */ cupsFileClose(fp); load_request_root(); return; } } job = calloc(1, sizeof(cupsd_job_t)); if (!job) { cupsdLogMessage(CUPSD_LOG_EMERG, "[Job %d] Unable to allocate memory for job.", jobid); break; } job->id = jobid; job->back_pipes[0] = -1; job->back_pipes[1] = -1; job->print_pipes[0] = -1; job->print_pipes[1] = -1; job->side_pipes[0] = -1; job->side_pipes[1] = -1; job->status_pipes[0] = -1; job->status_pipes[1] = -1; cupsdLogJob(job, CUPSD_LOG_DEBUG, "Loading from cache..."); } else if (!job) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing directive on line %d of %s.", linenum, filename); continue; } else if (!_cups_strcasecmp(line, "")) { cupsArrayAdd(Jobs, job); if (job->state_value <= IPP_JOB_STOPPED && cupsdLoadJob(job)) cupsArrayAdd(ActiveJobs, job); else if (job->state_value > IPP_JOB_STOPPED) { if (!job->completed_time || !job->creation_time || !job->name || !job->koctets) { cupsdLoadJob(job); unload_job(job); } } job = NULL; } else if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value on line %d of %s.", linenum, filename); continue; } else if (!_cups_strcasecmp(line, "State")) { job->state_value = (ipp_jstate_t)atoi(value); if (job->state_value < IPP_JOB_PENDING) job->state_value = IPP_JOB_PENDING; else if (job->state_value > IPP_JOB_COMPLETED) job->state_value = IPP_JOB_COMPLETED; } else if (!_cups_strcasecmp(line, "Name")) { cupsdSetString(&(job->name), value); } else if (!_cups_strcasecmp(line, "Created")) { job->creation_time = strtol(value, NULL, 10); } else if (!_cups_strcasecmp(line, "Completed")) { job->completed_time = strtol(value, NULL, 10); } else if (!_cups_strcasecmp(line, "HoldUntil")) { job->hold_until = strtol(value, NULL, 10); } else if (!_cups_strcasecmp(line, "Priority")) { job->priority = atoi(value); } else if (!_cups_strcasecmp(line, "Username")) { cupsdSetString(&job->username, value); } else if (!_cups_strcasecmp(line, "Destination")) { cupsdSetString(&job->dest, value); } else if (!_cups_strcasecmp(line, "DestType")) { job->dtype = (cups_ptype_t)atoi(value); } else if (!_cups_strcasecmp(line, "KOctets")) { job->koctets = atoi(value); } else if (!_cups_strcasecmp(line, "NumFiles")) { job->num_files = atoi(value); if (job->num_files < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad NumFiles value %d on line %d of %s.", job->num_files, linenum, filename); job->num_files = 0; continue; } if (job->num_files > 0) { snprintf(jobfile, sizeof(jobfile), "%s/d%05d-001", RequestRoot, job->id); if (access(jobfile, 0)) { cupsdLogJob(job, CUPSD_LOG_INFO, "Data files have gone away."); job->num_files = 0; continue; } job->filetypes = calloc((size_t)job->num_files, sizeof(mime_type_t *)); job->compressions = calloc((size_t)job->num_files, sizeof(int)); if (!job->filetypes || !job->compressions) { cupsdLogJob(job, CUPSD_LOG_EMERG, "Unable to allocate memory for %d files.", job->num_files); break; } } } else if (!_cups_strcasecmp(line, "File")) { int number, /* File number */ compression; /* Compression value */ char super[MIME_MAX_SUPER], /* MIME super type */ type[MIME_MAX_TYPE]; /* MIME type */ if (sscanf(value, "%d%*[ \t]%15[^/]/%255s%d", &number, super, type, &compression) != 4) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad File on line %d of %s.", linenum, filename); continue; } if (number < 1 || number > job->num_files) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad File number %d on line %d of %s.", number, linenum, filename); continue; } number --; _cupsRWLockRead(&MimeDatabase->lock); job->compressions[number] = compression; job->filetypes[number] = mimeType(MimeDatabase, super, type); if (!job->filetypes[number]) { /* * If the original MIME type is unknown, auto-type it! */ cupsdLogJob(job, CUPSD_LOG_ERROR, "Unknown MIME type %s/%s for file %d.", super, type, number + 1); snprintf(jobfile, sizeof(jobfile), "%s/d%05d-%03d", RequestRoot, job->id, number + 1); job->filetypes[number] = mimeFileType(MimeDatabase, jobfile, NULL, job->compressions + number); /* * If that didn't work, assume it is raw... */ if (!job->filetypes[number]) job->filetypes[number] = mimeType(MimeDatabase, "application", "vnd.cups-raw"); } _cupsRWUnlock(&MimeDatabase->lock); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown %s directive on line %d of %s.", line, linenum, filename); } if (job) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing directive on line %d of %s.", linenum, filename); cupsdDeleteJob(job, CUPSD_JOB_PURGE); } cupsFileClose(fp); } /* * 'load_next_job_id()' - Load the NextJobId value from the job.cache file. */ static void load_next_job_id(const char *filename) /* I - job.cache filename */ { cups_file_t *fp; /* job.cache file */ char line[1024], /* Line buffer */ *value; /* Value on line */ int linenum; /* Line number in file */ int next_job_id; /* NextJobId value from line */ /* * Read the NextJobId directive from the job.cache file and use * the value (if any). */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { if (errno != ENOENT) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open job cache file \"%s\": %s", filename, strerror(errno)); return; } cupsdLogMessage(CUPSD_LOG_INFO, "Loading NextJobId from job cache file \"%s\"...", filename); linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "NextJobId")) { if (value) { next_job_id = atoi(value); if (next_job_id > NextJobId) NextJobId = next_job_id; } break; } } cupsFileClose(fp); } /* * 'load_request_root()' - Load jobs from the RequestRoot directory. */ static void load_request_root(void) { cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ cupsd_job_t *job; /* New job */ /* * Open the requests directory... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Scanning %s for jobs...", RequestRoot); if ((dir = cupsDirOpen(RequestRoot)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open spool directory \"%s\": %s", RequestRoot, strerror(errno)); return; } /* * Read all the c##### files... */ while ((dent = cupsDirRead(dir)) != NULL) if (strlen(dent->filename) >= 6 && dent->filename[0] == 'c') { /* * Allocate memory for the job... */ if ((job = calloc(1, sizeof(cupsd_job_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Ran out of memory for jobs."); cupsDirClose(dir); return; } /* * Assign the job ID... */ job->id = atoi(dent->filename + 1); job->back_pipes[0] = -1; job->back_pipes[1] = -1; job->print_pipes[0] = -1; job->print_pipes[1] = -1; job->side_pipes[0] = -1; job->side_pipes[1] = -1; job->status_pipes[0] = -1; job->status_pipes[1] = -1; if (job->id >= NextJobId) NextJobId = job->id + 1; /* * Load the job... */ if (cupsdLoadJob(job)) { /* * Insert the job into the array, sorting by job priority and ID... */ cupsArrayAdd(Jobs, job); if (job->state_value <= IPP_JOB_STOPPED) cupsArrayAdd(ActiveJobs, job); else unload_job(job); } else free(job); } cupsDirClose(dir); } /* * 'remove_job_files()' - Remove the document files for a job. */ static void remove_job_files(cupsd_job_t *job) /* I - Job */ { int i; /* Looping var */ char filename[1024]; /* Document filename */ if (job->num_files <= 0) return; for (i = 1; i <= job->num_files; i ++) { snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, i); cupsdUnlinkOrRemoveFile(filename); } free(job->filetypes); free(job->compressions); job->file_time = 0; job->num_files = 0; job->filetypes = NULL; job->compressions = NULL; LastEvent |= CUPSD_EVENT_PRINTER_STATE_CHANGED; } /* * 'remove_job_history()' - Remove the control file for a job. */ static void remove_job_history(cupsd_job_t *job) /* I - Job */ { char filename[1024]; /* Control filename */ /* * Remove the job info file... */ snprintf(filename, sizeof(filename), "%s/c%05d", RequestRoot, job->id); cupsdUnlinkOrRemoveFile(filename); LastEvent |= CUPSD_EVENT_PRINTER_STATE_CHANGED; } /* * 'set_time()' - Set one of the "time-at-xyz" attributes. */ static void set_time(cupsd_job_t *job, /* I - Job to update */ const char *name) /* I - Name of attribute */ { char date_name[128]; /* date-time-at-xxx */ ipp_attribute_t *attr; /* Time attribute */ time_t curtime; /* Current time */ curtime = time(NULL); cupsdLogJob(job, CUPSD_LOG_DEBUG, "%s=%ld", name, (long)curtime); if ((attr = ippFindAttribute(job->attrs, name, IPP_TAG_ZERO)) != NULL) { attr->value_tag = IPP_TAG_INTEGER; attr->values[0].integer = curtime; } snprintf(date_name, sizeof(date_name), "date-%s", name); if ((attr = ippFindAttribute(job->attrs, date_name, IPP_TAG_ZERO)) != NULL) { attr->value_tag = IPP_TAG_DATE; ippSetDate(job->attrs, &attr, 0, ippTimeToDate(curtime)); } if (!strcmp(name, "time-at-completed")) { job->completed_time = curtime; if (JobHistory < INT_MAX && attr) job->history_time = job->completed_time + JobHistory; else job->history_time = INT_MAX; if (job->history_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->history_time; if (JobFiles < INT_MAX && attr) job->file_time = job->completed_time + JobFiles; else job->file_time = INT_MAX; if (job->file_time < JobHistoryUpdate || !JobHistoryUpdate) JobHistoryUpdate = job->file_time; cupsdLogMessage(CUPSD_LOG_DEBUG2, "set_time: JobHistoryUpdate=%ld", (long)JobHistoryUpdate); } } /* * 'start_job()' - Start a print job. */ static void start_job(cupsd_job_t *job, /* I - Job ID */ cupsd_printer_t *printer) /* I - Printer to print job */ { const char *filename; /* Support filename */ ipp_attribute_t *cancel_after = ippFindAttribute(job->attrs, "job-cancel-after", IPP_TAG_INTEGER); /* job-cancel-after attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "start_job(job=%p(%d), printer=%p(%s))", job, job->id, printer, printer->name); /* * Make sure we have some files around before we try to print... */ if (job->num_files == 0) { ippSetString(job->attrs, &job->reasons, 0, "aborted-by-system"); cupsdSetJobState(job, IPP_JOB_ABORTED, CUPSD_JOB_DEFAULT, "Aborting job because it has no files."); return; } /* * Update the printer and job state to "processing"... */ if (!cupsdLoadJob(job)) return; if (!job->printer_message) job->printer_message = ippFindAttribute(job->attrs, "job-printer-state-message", IPP_TAG_TEXT); if (job->printer_message) ippSetString(job->attrs, &job->printer_message, 0, ""); ippSetString(job->attrs, &job->reasons, 0, "job-printing"); cupsdSetJobState(job, IPP_JOB_PROCESSING, CUPSD_JOB_DEFAULT, NULL); cupsdSetPrinterState(printer, IPP_PRINTER_PROCESSING, 0); cupsdSetPrinterReasons(printer, "-cups-remote-pending," "cups-remote-pending-held," "cups-remote-processing," "cups-remote-stopped," "cups-remote-canceled," "cups-remote-aborted," "cups-remote-completed"); job->cost = 0; job->current_file = 0; job->file_time = 0; job->history_time = 0; job->progress = 0; job->printer = printer; printer->job = job; if (cancel_after) job->cancel_time = time(NULL) + ippGetInteger(cancel_after, 0); else if (MaxJobTime > 0) job->cancel_time = time(NULL) + MaxJobTime; else job->cancel_time = 0; /* * Check for support files... */ cupsdSetPrinterReasons(job->printer, "-cups-missing-filter-warning," "cups-insecure-filter-warning"); if (printer->pc) { for (filename = (const char *)cupsArrayFirst(printer->pc->support_files); filename; filename = (const char *)cupsArrayNext(printer->pc->support_files)) { if (_cupsFileCheck(filename, _CUPS_FILE_CHECK_FILE, !RunUser, cupsdLogFCMessage, printer)) break; } } /* * Setup the last exit status and security profiles... */ job->status = 0; job->profile = cupsdCreateProfile(job->id, 0); job->bprofile = cupsdCreateProfile(job->id, 1); #ifdef HAVE_SANDBOX_H if ((!job->profile || !job->bprofile) && UseSandboxing && Sandboxing != CUPSD_SANDBOXING_OFF) { /* * Failure to create the sandbox profile means something really bad has * happened and we need to shutdown immediately. */ return; } #endif /* HAVE_SANDBOX_H */ /* * Create the status pipes and buffer... */ if (cupsdOpenPipe(job->status_pipes)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unable to create job status pipes - %s.", strerror(errno)); cupsdSetJobState(job, IPP_JOB_STOPPED, CUPSD_JOB_DEFAULT, "Job stopped because the scheduler could not create the " "job status pipes."); cupsdDestroyProfile(job->profile); job->profile = NULL; cupsdDestroyProfile(job->bprofile); job->bprofile = NULL; return; } job->status_buffer = cupsdStatBufNew(job->status_pipes[0], NULL); job->status_level = CUPSD_LOG_INFO; /* * Create the backchannel pipes and make them non-blocking... */ if (cupsdOpenPipe(job->back_pipes)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unable to create back-channel pipes - %s.", strerror(errno)); cupsdSetJobState(job, IPP_JOB_STOPPED, CUPSD_JOB_DEFAULT, "Job stopped because the scheduler could not create the " "back-channel pipes."); cupsdClosePipe(job->status_pipes); cupsdStatBufDelete(job->status_buffer); job->status_buffer = NULL; cupsdDestroyProfile(job->profile); job->profile = NULL; cupsdDestroyProfile(job->bprofile); job->bprofile = NULL; return; } fcntl(job->back_pipes[0], F_SETFL, fcntl(job->back_pipes[0], F_GETFL) | O_NONBLOCK); fcntl(job->back_pipes[1], F_SETFL, fcntl(job->back_pipes[1], F_GETFL) | O_NONBLOCK); /* * Create the side-channel pipes and make them non-blocking... */ if (socketpair(AF_LOCAL, SOCK_STREAM, 0, job->side_pipes)) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unable to create side-channel pipes - %s.", strerror(errno)); cupsdSetJobState(job, IPP_JOB_STOPPED, CUPSD_JOB_DEFAULT, "Job stopped because the scheduler could not create the " "side-channel pipes."); cupsdClosePipe(job->back_pipes); cupsdClosePipe(job->status_pipes); cupsdStatBufDelete(job->status_buffer); job->status_buffer = NULL; cupsdDestroyProfile(job->profile); job->profile = NULL; cupsdDestroyProfile(job->bprofile); job->bprofile = NULL; return; } fcntl(job->side_pipes[0], F_SETFL, fcntl(job->side_pipes[0], F_GETFL) | O_NONBLOCK); fcntl(job->side_pipes[1], F_SETFL, fcntl(job->side_pipes[1], F_GETFL) | O_NONBLOCK); fcntl(job->side_pipes[0], F_SETFD, fcntl(job->side_pipes[0], F_GETFD) | FD_CLOEXEC); fcntl(job->side_pipes[1], F_SETFD, fcntl(job->side_pipes[1], F_GETFD) | FD_CLOEXEC); /* * Now start the first file in the job... */ cupsdContinueJob(job); } /* * 'stop_job()' - Stop a print job. */ static void stop_job(cupsd_job_t *job, /* I - Job */ cupsd_jobaction_t action) /* I - Action */ { int i; /* Looping var */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "stop_job(job=%p(%d), action=%d)", job, job->id, action); FilterLevel -= job->cost; job->cost = 0; if (action == CUPSD_JOB_DEFAULT && !job->kill_time && job->backend > 0) job->kill_time = time(NULL) + JobKillDelay; else if (action >= CUPSD_JOB_FORCE) job->kill_time = 0; for (i = 0; job->filters[i]; i ++) if (job->filters[i] > 0) { cupsdEndProcess(job->filters[i], action >= CUPSD_JOB_FORCE); if (action >= CUPSD_JOB_FORCE) job->filters[i] = -job->filters[i]; } if (job->backend > 0) { cupsdEndProcess(job->backend, action >= CUPSD_JOB_FORCE); if (action >= CUPSD_JOB_FORCE) job->backend = -job->backend; } if (action >= CUPSD_JOB_FORCE) { /* * Clear job status... */ job->status = 0; } } /* * 'unload_job()' - Unload a job from memory. */ static void unload_job(cupsd_job_t *job) /* I - Job */ { if (!job->attrs) return; cupsdLogJob(job, CUPSD_LOG_DEBUG, "Unloading..."); ippDelete(job->attrs); job->attrs = NULL; job->state = NULL; job->reasons = NULL; job->impressions = NULL; job->sheets = NULL; job->job_sheets = NULL; job->printer_message = NULL; job->printer_reasons = NULL; } /* * 'update_job()' - Read a status update from a job's filters. */ void update_job(cupsd_job_t *job) /* I - Job to check */ { int i; /* Looping var */ char message[CUPSD_SB_BUFFER_SIZE], /* Message text */ *ptr; /* Pointer update... */ int loglevel, /* Log level for message */ event = 0; /* Events? */ cupsd_printer_t *printer = job->printer; /* Printer */ static const char * const levels[] = /* Log levels */ { "NONE", "EMERG", "ALERT", "CRIT", "ERROR", "WARN", "NOTICE", "INFO", "DEBUG", "DEBUG2" }; /* * Get the printer associated with this job; if the printer is stopped for * any reason then job->printer will be reset to NULL, so make sure we have * a valid pointer... */ while ((ptr = cupsdStatBufUpdate(job->status_buffer, &loglevel, message, sizeof(message))) != NULL) { /* * Process page and printer state messages as needed... */ if (loglevel == CUPSD_LOG_PAGE) { int impressions = ippGetInteger(job->impressions, 0); /* Number of impressions printed */ int delta; /* Number of impressions added */ /* * Page message; send the message to the page_log file and update the * job sheet count... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "PAGE: %s", message); if (!_cups_strncasecmp(message, "total ", 6)) { /* * Got a total count of pages from a backend or filter... */ int total = atoi(message + 6); /* Total impressions */ if (total > impressions) { delta = total - impressions; impressions = total; } else delta = 0; } else { /* * Add the number of copies to the impression count... */ int copies; /* Number of copies */ if (!sscanf(message, "%*d%d", &copies) || copies <= 0) copies = 1; delta = copies; impressions += copies; } if (job->impressions) ippSetInteger(job->attrs, &job->impressions, 0, impressions); if (job->sheets) { const char *sides = ippGetString(ippFindAttribute(job->attrs, "sides", IPP_TAG_KEYWORD), 0, NULL); if (sides && strcmp(sides, "one-sided")) ippSetInteger(job->attrs, &job->sheets, 0, impressions / 2); else ippSetInteger(job->attrs, &job->sheets, 0, impressions); cupsdAddEvent(CUPSD_EVENT_JOB_PROGRESS, job->printer, job, "Printed %d page(s).", ippGetInteger(job->sheets, 0)); } job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); if (job->printer->page_limit) cupsdUpdateQuota(job->printer, job->username, delta, 0); } else if (loglevel == CUPSD_LOG_JOBSTATE) { /* * Support "keyword" to set job-state-reasons to the specified keyword. * This is sufficient for the current paid printing stuff. */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "JOBSTATE: %s", message); if (!strcmp(message, "cups-retry-as-raster")) job->retry_as_raster = 1; else ippSetString(job->attrs, &job->reasons, 0, message); } else if (loglevel == CUPSD_LOG_STATE) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "STATE: %s", message); if (!strcmp(message, "paused")) { cupsdStopPrinter(job->printer, 1); return; } else if (message[0] && cupsdSetPrinterReasons(job->printer, message)) { event |= CUPSD_EVENT_PRINTER_STATE; if (MaxJobTime > 0) { /* * Reset cancel time after connecting to the device... */ for (i = 0; i < job->printer->num_reasons; i ++) if (!strcmp(job->printer->reasons[i], "connecting-to-device")) break; if (i >= job->printer->num_reasons) { ipp_attribute_t *cancel_after = ippFindAttribute(job->attrs, "job-cancel-after", IPP_TAG_INTEGER); /* job-cancel-after attribute */ if (cancel_after) job->cancel_time = time(NULL) + ippGetInteger(cancel_after, 0); else if (MaxJobTime > 0) job->cancel_time = time(NULL) + MaxJobTime; else job->cancel_time = 0; } } } update_job_attrs(job, 0); } else if (loglevel == CUPSD_LOG_ATTR) { /* * Set attribute(s)... */ int num_attrs; /* Number of attributes */ cups_option_t *attrs; /* Attributes */ const char *attr; /* Attribute */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "ATTR: %s", message); num_attrs = cupsParseOptions(message, 0, &attrs); if ((attr = cupsGetOption("auth-info-default", num_attrs, attrs)) != NULL) { job->printer->num_options = cupsAddOption("auth-info", attr, job->printer->num_options, &(job->printer->options)); cupsdSetPrinterAttrs(job->printer); cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("auth-info-required", num_attrs, attrs)) != NULL) { cupsdSetAuthInfoRequired(job->printer, attr, NULL); cupsdSetPrinterAttrs(job->printer); cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("job-media-progress", num_attrs, attrs)) != NULL) { int progress = atoi(attr); if (progress >= 0 && progress <= 100) { job->progress = progress; if (job->sheets) cupsdAddEvent(CUPSD_EVENT_JOB_PROGRESS, job->printer, job, "Printing page %d, %d%%", job->sheets->values[0].integer, job->progress); } } if ((attr = cupsGetOption("printer-alert", num_attrs, attrs)) != NULL) { cupsdSetString(&job->printer->alert, attr); event |= CUPSD_EVENT_PRINTER_STATE; } if ((attr = cupsGetOption("printer-alert-description", num_attrs, attrs)) != NULL) { cupsdSetString(&job->printer->alert_description, attr); event |= CUPSD_EVENT_PRINTER_STATE; } if ((attr = cupsGetOption("marker-colors", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-colors", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-levels", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-levels", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-low-levels", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-low-levels", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-high-levels", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-high-levels", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-message", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-message", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-names", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-names", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if ((attr = cupsGetOption("marker-types", num_attrs, attrs)) != NULL) { cupsdSetPrinterAttr(job->printer, "marker-types", (char *)attr); job->printer->marker_time = time(NULL); event |= CUPSD_EVENT_PRINTER_STATE; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } cupsFreeOptions(num_attrs, attrs); } else if (loglevel == CUPSD_LOG_PPD) { /* * Set attribute(s)... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "PPD: %s", message); job->num_keywords = cupsParseOptions(message, job->num_keywords, &job->keywords); } else { /* * Strip legacy message prefix... */ if (!strncmp(message, "recoverable:", 12)) { ptr = message + 12; while (isspace(*ptr & 255)) ptr ++; } else if (!strncmp(message, "recovered:", 10)) { ptr = message + 10; while (isspace(*ptr & 255)) ptr ++; } else ptr = message; if (*ptr) cupsdLogJob(job, loglevel == CUPSD_LOG_INFO ? CUPSD_LOG_DEBUG : loglevel, "%s", ptr); if (loglevel < CUPSD_LOG_DEBUG && strcmp(job->printer->state_message, ptr)) { strlcpy(job->printer->state_message, ptr, sizeof(job->printer->state_message)); event |= CUPSD_EVENT_PRINTER_STATE | CUPSD_EVENT_JOB_PROGRESS; if (loglevel <= job->status_level && job->status_level > CUPSD_LOG_ERROR) { /* * Some messages show in the job-printer-state-message attribute... */ if (loglevel != CUPSD_LOG_NOTICE) job->status_level = loglevel; update_job_attrs(job, 1); cupsdLogJob(job, CUPSD_LOG_DEBUG, "Set job-printer-state-message to \"%s\", " "current level=%s", job->printer_message->values[0].string.text, levels[job->status_level]); } } } if (!strchr(job->status_buffer->buffer, '\n')) break; } if (event & CUPSD_EVENT_JOB_PROGRESS) cupsdAddEvent(CUPSD_EVENT_JOB_PROGRESS, job->printer, job, "%s", job->printer->state_message); if (event & CUPSD_EVENT_PRINTER_STATE) cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, job->printer, NULL, (job->printer->type & CUPS_PRINTER_CLASS) ? "Class \"%s\" state changed." : "Printer \"%s\" state changed.", job->printer->name); if (ptr == NULL && !job->status_buffer->bufused) { /* * See if all of the filters and the backend have returned their * exit statuses. */ for (i = 0; job->filters[i] < 0; i ++); if (job->filters[i]) { /* * EOF but we haven't collected the exit status of all filters... */ cupsdCheckProcess(); return; } if (job->current_file >= job->num_files && job->backend > 0) { /* * EOF but we haven't collected the exit status of the backend... */ cupsdCheckProcess(); return; } /* * Handle the end of job stuff... */ finalize_job(job, 1); /* * Try printing another job... */ if (printer->state != IPP_PRINTER_STOPPED) cupsdCheckJobs(); } } /* * 'update_job_attrs()' - Update the job-printer-* attributes. */ void update_job_attrs(cupsd_job_t *job, /* I - Job to update */ int do_message)/* I - 1 = copy job-printer-state message */ { int i; /* Looping var */ int num_reasons; /* Actual number of reasons */ const char * const *reasons; /* Reasons */ static const char *none = "none"; /* "none" reason */ /* * Get/create the job-printer-state-* attributes... */ if (!job->printer_message) { if ((job->printer_message = ippFindAttribute(job->attrs, "job-printer-state-message", IPP_TAG_TEXT)) == NULL) job->printer_message = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_TEXT, "job-printer-state-message", NULL, ""); } if (!job->printer_reasons) job->printer_reasons = ippFindAttribute(job->attrs, "job-printer-state-reasons", IPP_TAG_KEYWORD); /* * Copy or clear the printer-state-message value as needed... */ if (job->state_value != IPP_JOB_PROCESSING && job->status_level == CUPSD_LOG_INFO) { ippSetString(job->attrs, &job->printer_message, 0, ""); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } else if (job->printer->state_message[0] && do_message) { ippSetString(job->attrs, &job->printer_message, 0, job->printer->state_message); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } /* * ... and the printer-state-reasons value... */ if (job->printer->num_reasons == 0) { num_reasons = 1; reasons = &none; } else { num_reasons = job->printer->num_reasons; reasons = (const char * const *)job->printer->reasons; } if (!job->printer_reasons || job->printer_reasons->num_values != num_reasons) { /* * Replace/create a job-printer-state-reasons attribute... */ ippDeleteAttribute(job->attrs, job->printer_reasons); job->printer_reasons = ippAddStrings(job->attrs, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-printer-state-reasons", num_reasons, NULL, NULL); } else { /* * Don't bother clearing the reason strings if they are the same... */ for (i = 0; i < num_reasons; i ++) if (strcmp(job->printer_reasons->values[i].string.text, reasons[i])) break; if (i >= num_reasons) return; /* * Not the same, so free the current strings... */ for (i = 0; i < num_reasons; i ++) _cupsStrFree(job->printer_reasons->values[i].string.text); } /* * Copy the reasons... */ for (i = 0; i < num_reasons; i ++) job->printer_reasons->values[i].string.text = _cupsStrAlloc(reasons[i]); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } cups-2.4.7/scheduler/ipp.c0000644000175000017500000117411714502571342015307 0ustar zdohnalzdohnal/* * IPP routines for the CUPS scheduler. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by * Jelmer Vernooij. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef __APPLE__ # ifdef HAVE_MEMBERSHIP_H # include # endif /* HAVE_MEMBERSHIP_H */ extern int mbr_user_name_to_uuid(const char* name, uuid_t uu); extern int mbr_group_name_to_uuid(const char* name, uuid_t uu); extern int mbr_check_membership_by_id(uuid_t user, gid_t group, int* ismember); #endif /* __APPLE__ */ /* * Local functions... */ static void accept_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void add_class(cupsd_client_t *con, ipp_attribute_t *uri); static int add_file(cupsd_client_t *con, cupsd_job_t *job, mime_type_t *filetype, int compression); static cupsd_job_t *add_job(cupsd_client_t *con, cupsd_printer_t *printer, mime_type_t *filetype); static void add_job_subscriptions(cupsd_client_t *con, cupsd_job_t *job); static void add_job_uuid(cupsd_job_t *job); static void add_printer(cupsd_client_t *con, ipp_attribute_t *uri); static void add_printer_state_reasons(cupsd_client_t *con, cupsd_printer_t *p); static void add_queued_job_count(cupsd_client_t *con, cupsd_printer_t *p); static void apply_printer_defaults(cupsd_printer_t *printer, cupsd_job_t *job); static void authenticate_job(cupsd_client_t *con, ipp_attribute_t *uri); static void cancel_all_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void cancel_job(cupsd_client_t *con, ipp_attribute_t *uri); static void cancel_subscription(cupsd_client_t *con, int id); static int check_rss_recipient(const char *recipient); static int check_quotas(cupsd_client_t *con, cupsd_printer_t *p); static void close_job(cupsd_client_t *con, ipp_attribute_t *uri); static void copy_attrs(ipp_t *to, ipp_t *from, cups_array_t *ra, ipp_tag_t group, int quickcopy, cups_array_t *exclude); static int copy_banner(cupsd_client_t *con, cupsd_job_t *job, const char *name); static int copy_file(const char *from, const char *to, mode_t mode); static int copy_model(cupsd_client_t *con, const char *from, const char *to); static void copy_job_attrs(cupsd_client_t *con, cupsd_job_t *job, cups_array_t *ra, cups_array_t *exclude); static void copy_printer_attrs(cupsd_client_t *con, cupsd_printer_t *printer, cups_array_t *ra); static void copy_subscription_attrs(cupsd_client_t *con, cupsd_subscription_t *sub, cups_array_t *ra, cups_array_t *exclude); static void create_job(cupsd_client_t *con, ipp_attribute_t *uri); static void *create_local_bg_thread(cupsd_printer_t *printer); static void create_local_printer(cupsd_client_t *con); static cups_array_t *create_requested_array(ipp_t *request); static void create_subscriptions(cupsd_client_t *con, ipp_attribute_t *uri); static void delete_printer(cupsd_client_t *con, ipp_attribute_t *uri); static void get_default(cupsd_client_t *con); static void get_devices(cupsd_client_t *con); static void get_document(cupsd_client_t *con, ipp_attribute_t *uri); static void get_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void get_job_attrs(cupsd_client_t *con, ipp_attribute_t *uri); static void get_notifications(cupsd_client_t *con); static void get_ppd(cupsd_client_t *con, ipp_attribute_t *uri); static void get_ppds(cupsd_client_t *con); static void get_printers(cupsd_client_t *con, int type); static void get_printer_attrs(cupsd_client_t *con, ipp_attribute_t *uri); static void get_printer_supported(cupsd_client_t *con, ipp_attribute_t *uri); static void get_subscription_attrs(cupsd_client_t *con, int sub_id); static void get_subscriptions(cupsd_client_t *con, ipp_attribute_t *uri); static const char *get_username(cupsd_client_t *con); static void hold_job(cupsd_client_t *con, ipp_attribute_t *uri); static void hold_new_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void move_job(cupsd_client_t *con, ipp_attribute_t *uri); static int ppd_parse_line(const char *line, char *option, int olen, char *choice, int clen); static void print_job(cupsd_client_t *con, ipp_attribute_t *uri); static void read_job_ticket(cupsd_client_t *con); static void reject_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void release_held_new_jobs(cupsd_client_t *con, ipp_attribute_t *uri); static void release_job(cupsd_client_t *con, ipp_attribute_t *uri); static void renew_subscription(cupsd_client_t *con, int sub_id); static void restart_job(cupsd_client_t *con, ipp_attribute_t *uri); static void save_auth_info(cupsd_client_t *con, cupsd_job_t *job, ipp_attribute_t *auth_info); static void send_document(cupsd_client_t *con, ipp_attribute_t *uri); static void send_http_error(cupsd_client_t *con, http_status_t status, cupsd_printer_t *printer); static void send_ipp_status(cupsd_client_t *con, ipp_status_t status, const char *message, ...) _CUPS_FORMAT(3, 4); static void set_default(cupsd_client_t *con, ipp_attribute_t *uri); static void set_job_attrs(cupsd_client_t *con, ipp_attribute_t *uri); static void set_printer_attrs(cupsd_client_t *con, ipp_attribute_t *uri); static int set_printer_defaults(cupsd_client_t *con, cupsd_printer_t *printer); static void start_printer(cupsd_client_t *con, ipp_attribute_t *uri); static void stop_printer(cupsd_client_t *con, ipp_attribute_t *uri); static void url_encode_attr(ipp_attribute_t *attr, char *buffer, size_t bufsize); static char *url_encode_string(const char *s, char *buffer, size_t bufsize); static int user_allowed(cupsd_printer_t *p, const char *username); static void validate_job(cupsd_client_t *con, ipp_attribute_t *uri); static int validate_name(const char *name); static int validate_user(cupsd_job_t *job, cupsd_client_t *con, const char *owner, char *username, size_t userlen); /* * 'cupsdProcessIPPRequest()' - Process an incoming IPP request. */ int /* O - 1 on success, 0 on failure */ cupsdProcessIPPRequest( cupsd_client_t *con) /* I - Client connection */ { ipp_tag_t group; /* Current group tag */ ipp_attribute_t *attr; /* Current attribute */ ipp_attribute_t *charset; /* Character set attribute */ ipp_attribute_t *language; /* Language attribute */ ipp_attribute_t *uri = NULL; /* Printer or job URI attribute */ ipp_attribute_t *username; /* requesting-user-name attr */ int sub_id; /* Subscription ID */ int valid = 1; /* Valid request? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdProcessIPPRequest(%p[%d]): operation_id=%04x(%s)", con, con->number, con->request->request.op.operation_id, ippOpString(con->request->request.op.operation_id)); if (LogLevel >= CUPSD_LOG_DEBUG2) { for (group = IPP_TAG_ZERO, attr = ippFirstAttribute(con->request); attr; attr = ippNextAttribute(con->request)) { const char *name; /* Attribute name */ char value[1024]; /* Attribute value */ if (group != ippGetGroupTag(attr)) { group = ippGetGroupTag(attr); if (group != IPP_TAG_ZERO) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdProcessIPPRequest: %s", ippTagString(group)); } if ((name = ippGetName(attr)) == NULL) continue; ippAttributeString(attr, value, sizeof(value)); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdProcessIPPRequest: %s %s%s '%s'", name, ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr)), value); } } /* * First build an empty response message for this request... */ con->response = ippNew(); con->response->request.status.version[0] = con->request->request.op.version[0]; con->response->request.status.version[1] = con->request->request.op.version[1]; con->response->request.status.request_id = con->request->request.op.request_id; /* * Then validate the request header and required attributes... */ if (con->request->request.any.version[0] != 1 && con->request->request.any.version[0] != 2) { /* * Return an error, since we only support IPP 1.x and 2.x. */ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Bad request version number %d.%d.", IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, con->http->hostname, con->request->request.any.version[0], con->request->request.any.version[1]); send_ipp_status(con, IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, _("Bad request version number %d.%d."), con->request->request.any.version[0], con->request->request.any.version[1]); } else if (con->request->request.any.request_id < 1) { /* * Return an error, since request IDs must be between 1 and 2^31-1 */ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Bad request ID %d.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname, con->request->request.any.request_id); send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Bad request ID %d."), con->request->request.any.request_id); } else if (!con->request->attrs) { cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s No attributes in request.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("No attributes in request.")); } else { /* * Make sure that the attributes are provided in the correct order and * don't repeat groups... */ for (attr = con->request->attrs, group = attr->group_tag; attr; attr = attr->next) if (attr->group_tag < group && attr->group_tag != IPP_TAG_ZERO) { /* * Out of order; return an error... */ cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Attribute groups are out of order", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute groups are out of order (%x < %x)."), attr->group_tag, group); break; } else group = attr->group_tag; if (!attr) { /* * Then make sure that the first three attributes are: * * attributes-charset * attributes-natural-language * printer-uri/job-uri */ attr = con->request->attrs; if (attr && attr->name && !strcmp(attr->name, "attributes-charset") && (attr->value_tag & IPP_TAG_MASK) == IPP_TAG_CHARSET && attr->group_tag == IPP_TAG_OPERATION) charset = attr; else charset = NULL; if (attr) attr = attr->next; if (attr && attr->name && !strcmp(attr->name, "attributes-natural-language") && (attr->value_tag & IPP_TAG_MASK) == IPP_TAG_LANGUAGE && attr->group_tag == IPP_TAG_OPERATION) { language = attr; /* * Reset language for this request if different from Accept-Language. */ if (!con->language || strcmp(attr->values[0].string.text, con->language->language)) { cupsLangFree(con->language); con->language = cupsLangGet(attr->values[0].string.text); } } else language = NULL; if ((attr = ippFindAttribute(con->request, "printer-uri", IPP_TAG_URI)) != NULL && attr->group_tag == IPP_TAG_OPERATION) uri = attr; else if ((attr = ippFindAttribute(con->request, "job-uri", IPP_TAG_URI)) != NULL && attr->group_tag == IPP_TAG_OPERATION) uri = attr; else if (con->request->request.op.operation_id == CUPS_GET_PPD && (attr = ippFindAttribute(con->request, "ppd-name", IPP_TAG_NAME)) != NULL && attr->group_tag == IPP_TAG_OPERATION) uri = attr; else uri = NULL; if (charset) ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, charset->values[0].string.text); else ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); if (language) ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, language->values[0].string.text); else ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, DefaultLanguage); if (charset && _cups_strcasecmp(charset->values[0].string.text, "us-ascii") && _cups_strcasecmp(charset->values[0].string.text, "utf-8")) { /* * Bad character set... */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unsupported character set \"%s\"", charset->values[0].string.text); cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Unsupported attributes-charset value \"%s\".", IPP_STATUS_ERROR_CHARSET, con->http->hostname, charset->values[0].string.text); send_ipp_status(con, IPP_STATUS_ERROR_CHARSET, _("Unsupported character set \"%s\"."), charset->values[0].string.text); } else if (!charset || !language || (!uri && con->request->request.op.operation_id != CUPS_GET_DEFAULT && con->request->request.op.operation_id != CUPS_GET_PRINTERS && con->request->request.op.operation_id != CUPS_GET_CLASSES && con->request->request.op.operation_id != CUPS_GET_DEVICES && con->request->request.op.operation_id != CUPS_GET_PPDS)) { /* * Return an error, since attributes-charset, * attributes-natural-language, and printer-uri/job-uri are required * for all operations. */ if (!charset) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing attributes-charset attribute."); cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing attributes-charset attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); } if (!language) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing attributes-natural-language attribute."); cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing attributes-natural-language attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); } if (!uri) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing printer-uri, job-uri, or ppd-name attribute."); cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Missing printer-uri, job-uri, or ppd-name attribute.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); } cupsdLogMessage(CUPSD_LOG_DEBUG, "Request attributes follow..."); for (attr = con->request->attrs; attr; attr = attr->next) cupsdLogMessage(CUPSD_LOG_DEBUG, "attr \"%s\": group_tag = %x, value_tag = %x", attr->name ? attr->name : "(null)", attr->group_tag, attr->value_tag); cupsdLogMessage(CUPSD_LOG_DEBUG, "End of attributes..."); send_ipp_status(con, IPP_BAD_REQUEST, _("Missing required attributes.")); } else { /* * OK, all the checks pass so far; validate "requesting-user-name" * attribute value... */ if ((username = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_ZERO)) != NULL) { /* * Validate "requesting-user-name"... */ if (username->group_tag != IPP_TAG_OPERATION && StrictConformance) { cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s \"requesting-user-name\" attribute in wrong group.", IPP_STATUS_ERROR_BAD_REQUEST, con->http->hostname); send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("\"requesting-user-name\" attribute in wrong group.")); valid = 0; } else if (username->value_tag != IPP_TAG_NAME && username->value_tag != IPP_TAG_NAMELANG) { cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s \"requesting-user-name\" attribute with wrong syntax.", IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, con->http->hostname); send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("\"requesting-user-name\" attribute with wrong syntax.")); if ((attr = ippCopyAttribute(con->response, username, 0)) != NULL) attr->group_tag = IPP_TAG_UNSUPPORTED_GROUP; valid = 0; } else if (!ippValidateAttribute(username)) { cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s \"requesting-user-name\" attribute with bad value.", IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, con->http->hostname); if (StrictConformance) { /* * Throw an error... */ send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("\"requesting-user-name\" attribute with wrong syntax.")); if ((attr = ippCopyAttribute(con->response, username, 0)) != NULL) attr->group_tag = IPP_TAG_UNSUPPORTED_GROUP; valid = 0; } else { /* * Map bad "requesting-user-name" to 'anonymous'... */ ippSetString(con->request, &username, 0, "anonymous"); } } else if (!strcmp(username->values[0].string.text, "root") && _cups_strcasecmp(con->http->hostname, "localhost") && strcmp(con->username, "root")) { /* * Remote unauthenticated user masquerading as local root... */ ippSetString(con->request, &username, 0, RemoteRoot); } } if ((attr = ippFindAttribute(con->request, "notify-subscription-id", IPP_TAG_INTEGER)) != NULL) sub_id = attr->values[0].integer; else sub_id = 0; if (valid) { /* * Try processing the operation... */ if (uri) cupsdLogMessage(CUPSD_LOG_DEBUG, "%s %s", ippOpString(con->request->request.op.operation_id), uri->values[0].string.text); else cupsdLogMessage(CUPSD_LOG_DEBUG, "%s", ippOpString(con->request->request.op.operation_id)); switch (con->request->request.op.operation_id) { case IPP_OP_PRINT_JOB : print_job(con, uri); break; case IPP_OP_VALIDATE_JOB : validate_job(con, uri); break; case IPP_OP_CREATE_JOB : create_job(con, uri); break; case IPP_OP_SEND_DOCUMENT : send_document(con, uri); break; case IPP_OP_CANCEL_JOB : cancel_job(con, uri); break; case IPP_OP_GET_JOB_ATTRIBUTES : get_job_attrs(con, uri); break; case IPP_OP_GET_JOBS : get_jobs(con, uri); break; case IPP_OP_GET_PRINTER_ATTRIBUTES : get_printer_attrs(con, uri); break; case IPP_OP_GET_PRINTER_SUPPORTED_VALUES : get_printer_supported(con, uri); break; case IPP_OP_HOLD_JOB : hold_job(con, uri); break; case IPP_OP_RELEASE_JOB : release_job(con, uri); break; case IPP_OP_RESTART_JOB : restart_job(con, uri); break; case IPP_OP_PAUSE_PRINTER : stop_printer(con, uri); break; case IPP_OP_RESUME_PRINTER : start_printer(con, uri); break; case IPP_OP_PURGE_JOBS : case IPP_OP_CANCEL_JOBS : case IPP_OP_CANCEL_MY_JOBS : cancel_all_jobs(con, uri); break; case IPP_OP_SET_JOB_ATTRIBUTES : set_job_attrs(con, uri); break; case IPP_OP_SET_PRINTER_ATTRIBUTES : set_printer_attrs(con, uri); break; case IPP_OP_HOLD_NEW_JOBS : hold_new_jobs(con, uri); break; case IPP_OP_RELEASE_HELD_NEW_JOBS : release_held_new_jobs(con, uri); break; case IPP_OP_CLOSE_JOB : close_job(con, uri); break; case IPP_OP_CUPS_GET_DEFAULT : get_default(con); break; case IPP_OP_CUPS_GET_PRINTERS : get_printers(con, 0); break; case IPP_OP_CUPS_GET_CLASSES : get_printers(con, CUPS_PRINTER_CLASS); break; case IPP_OP_CUPS_ADD_MODIFY_PRINTER : add_printer(con, uri); break; case IPP_OP_CUPS_DELETE_PRINTER : delete_printer(con, uri); break; case IPP_OP_CUPS_ADD_MODIFY_CLASS : add_class(con, uri); break; case IPP_OP_CUPS_DELETE_CLASS : delete_printer(con, uri); break; case IPP_OP_CUPS_ACCEPT_JOBS : case IPP_OP_ENABLE_PRINTER : accept_jobs(con, uri); break; case IPP_OP_CUPS_REJECT_JOBS : case IPP_OP_DISABLE_PRINTER : reject_jobs(con, uri); break; case IPP_OP_CUPS_SET_DEFAULT : set_default(con, uri); break; case IPP_OP_CUPS_GET_DEVICES : get_devices(con); break; case IPP_OP_CUPS_GET_DOCUMENT : get_document(con, uri); break; case IPP_OP_CUPS_GET_PPD : get_ppd(con, uri); break; case IPP_OP_CUPS_GET_PPDS : get_ppds(con); break; case IPP_OP_CUPS_MOVE_JOB : move_job(con, uri); break; case IPP_OP_CUPS_AUTHENTICATE_JOB : authenticate_job(con, uri); break; case IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS : case IPP_OP_CREATE_JOB_SUBSCRIPTIONS : create_subscriptions(con, uri); break; case IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES : get_subscription_attrs(con, sub_id); break; case IPP_OP_GET_SUBSCRIPTIONS : get_subscriptions(con, uri); break; case IPP_OP_RENEW_SUBSCRIPTION : renew_subscription(con, sub_id); break; case IPP_OP_CANCEL_SUBSCRIPTION : cancel_subscription(con, sub_id); break; case IPP_OP_GET_NOTIFICATIONS : get_notifications(con); break; case IPP_OP_CUPS_CREATE_LOCAL_PRINTER : create_local_printer(con); break; default : cupsdAddEvent(CUPSD_EVENT_SERVER_AUDIT, NULL, NULL, "%04X %s Operation %04X (%s) not supported.", IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, con->http->hostname, con->request->request.op.operation_id, ippOpString(con->request->request.op.operation_id)); send_ipp_status(con, IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, _("%s not supported."), ippOpString(con->request->request.op.operation_id)); break; } } } } } if (con->response) { /* * Sending data from the scheduler... */ cupsdLogClient(con, con->response->request.status.status_code >= IPP_STATUS_ERROR_BAD_REQUEST && con->response->request.status.status_code != IPP_STATUS_ERROR_NOT_FOUND ? CUPSD_LOG_ERROR : CUPSD_LOG_DEBUG, "Returning IPP %s for %s (%s) from %s.", ippErrorString(con->response->request.status.status_code), ippOpString(con->request->request.op.operation_id), uri ? uri->values[0].string.text : "no URI", con->http->hostname); httpClearFields(con->http); #ifdef CUPSD_USE_CHUNKING /* * Because older versions of CUPS (1.1.17 and older) and some IPP * clients do not implement chunking properly, we cannot use * chunking by default. This may become the default in future * CUPS releases, or we might add a configuration directive for * it. */ if (con->http->version == HTTP_1_1) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Transfer-Encoding: chunked"); cupsdSetLength(con->http, 0); } else #endif /* CUPSD_USE_CHUNKING */ { size_t length; /* Length of response */ length = ippLength(con->response); if (con->file >= 0 && !con->pipe_pid) { struct stat fileinfo; /* File information */ if (!fstat(con->file, &fileinfo)) length += (size_t)fileinfo.st_size; } cupsdLogClient(con, CUPSD_LOG_DEBUG, "Content-Length: " CUPS_LLFMT, CUPS_LLCAST length); httpSetLength(con->http, length); } if (cupsdSendHeader(con, HTTP_OK, "application/ipp", CUPSD_AUTH_NONE)) { /* * Tell the caller the response header was sent successfully... */ cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, (cupsd_selfunc_t)cupsdWriteClient, con); return (1); } else { /* * Tell the caller the response header could not be sent... */ return (0); } } else { /* * Sending data from a subprocess like cups-deviced; tell the caller * everything is A-OK so far... */ return (1); } } /* * 'cupsdTimeoutJob()' - Timeout a job waiting on job files. */ int /* O - 0 on success, -1 on error */ cupsdTimeoutJob(cupsd_job_t *job) /* I - Job to timeout */ { cupsd_printer_t *printer; /* Destination printer or class */ ipp_attribute_t *attr; /* job-sheets attribute */ int kbytes; /* Kilobytes in banner */ job->pending_timeout = 0; /* * See if we need to add the ending sheet... */ if (!cupsdLoadJob(job)) return (-1); printer = cupsdFindDest(job->dest); attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME); if (printer && !(printer->type & CUPS_PRINTER_REMOTE) && attr && attr->num_values > 1) { /* * Yes... */ cupsdLogJob(job, CUPSD_LOG_INFO, "Adding end banner page \"%s\".", attr->values[1].string.text); if ((kbytes = copy_banner(NULL, job, attr->values[1].string.text)) < 0) return (-1); cupsdUpdateQuota(printer, job->username, 0, kbytes); } return (0); } /* * 'accept_jobs()' - Accept print jobs to a printer. */ static void accept_jobs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer or class URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "accept_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Accept jobs sent to the printer... */ printer->accepting = 1; printer->state_message[0] = '\0'; cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "Now accepting jobs."); if (dtype & CUPS_PRINTER_CLASS) { cupsdMarkDirty(CUPSD_DIRTY_CLASSES); cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" now accepting jobs (\"%s\").", printer->name, get_username(con)); } else { cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" now accepting jobs (\"%s\").", printer->name, get_username(con)); } /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'add_class()' - Add a class to the system. */ static void add_class(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - URI of class */ { http_status_t status; /* Policy status */ int i; /* Looping var */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_printer_t *pclass, /* Class */ *member; /* Member printer/class */ cups_ptype_t dtype; /* Destination type */ ipp_attribute_t *attr; /* Printer attribute */ int modify; /* Non-zero if we just modified */ int need_restart_job; /* Need to restart job? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_class(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Do we have a valid URI? */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/classes/", 9) || strlen(resource) == 9) { /* * No, return an error... */ send_ipp_status(con, IPP_BAD_REQUEST, _("The printer-uri must be of the form " "\"ipp://HOSTNAME/classes/CLASSNAME\".")); return; } /* * Do we have a valid printer name? */ if (!validate_name(resource + 9)) { /* * No, return an error... */ send_ipp_status(con, IPP_BAD_REQUEST, _("The printer-uri \"%s\" contains invalid characters."), uri->values[0].string.text); return; } /* * See if the class already exists; if not, create a new class... */ if ((pclass = cupsdFindClass(resource + 9)) == NULL) { /* * Class doesn't exist; see if we have a printer of the same name... */ if (cupsdFindPrinter(resource + 9)) { /* * Yes, return an error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("A printer named \"%s\" already exists."), resource + 9); return; } /* * No, check the default policy and then add the class... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } pclass = cupsdAddClass(resource + 9); modify = 0; pclass->printer_id = NextPrinterId ++; } else if ((status = cupsdCheckPolicy(pclass->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, pclass); return; } else modify = 1; /* * Look for attributes and copy them over as needed... */ need_restart_job = 0; if ((attr = ippFindAttribute(con->request, "printer-location", IPP_TAG_TEXT)) != NULL) cupsdSetString(&pclass->location, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-geo-location", IPP_TAG_URI)) != NULL && !strncmp(attr->values[0].string.text, "geo:", 4)) cupsdSetString(&pclass->geo_location, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-organization", IPP_TAG_TEXT)) != NULL) cupsdSetString(&pclass->organization, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-organizational-unit", IPP_TAG_TEXT)) != NULL) cupsdSetString(&pclass->organizational_unit, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-info", IPP_TAG_TEXT)) != NULL) cupsdSetString(&pclass->info, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN)) != NULL && attr->values[0].boolean != pclass->accepting) { cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-is-accepting-jobs to %d (was %d.)", pclass->name, attr->values[0].boolean, pclass->accepting); pclass->accepting = attr->values[0].boolean; cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, pclass, NULL, "%s accepting jobs.", pclass->accepting ? "Now" : "No longer"); } if ((attr = ippFindAttribute(con->request, "printer-is-shared", IPP_TAG_BOOLEAN)) != NULL) { if (pclass->type & CUPS_PRINTER_REMOTE) { /* * Cannot re-share remote printers. */ send_ipp_status(con, IPP_BAD_REQUEST, _("Cannot change printer-is-shared for remote queues.")); if (!modify) cupsdDeletePrinter(pclass, 0); return; } if (pclass->shared && !ippGetBoolean(attr, 0)) cupsdDeregisterPrinter(pclass, 1); cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-is-shared to %d (was %d.)", pclass->name, attr->values[0].boolean, pclass->shared); pclass->shared = ippGetBoolean(attr, 0); } if ((attr = ippFindAttribute(con->request, "printer-state", IPP_TAG_ENUM)) != NULL) { if (attr->values[0].integer != IPP_PRINTER_IDLE && attr->values[0].integer != IPP_PRINTER_STOPPED) { send_ipp_status(con, IPP_BAD_REQUEST, _("Attempt to set %s printer-state to bad value %d."), pclass->name, attr->values[0].integer); if (!modify) cupsdDeletePrinter(pclass, 0); return; } cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-state to %d (was %d.)", pclass->name, attr->values[0].integer, pclass->state); if (attr->values[0].integer == IPP_PRINTER_STOPPED) cupsdStopPrinter(pclass, 0); else { cupsdSetPrinterState(pclass, (ipp_pstate_t)(attr->values[0].integer), 0); need_restart_job = 1; } } if ((attr = ippFindAttribute(con->request, "printer-state-message", IPP_TAG_TEXT)) != NULL) { strlcpy(pclass->state_message, attr->values[0].string.text, sizeof(pclass->state_message)); cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, pclass, NULL, "%s", pclass->state_message); } if ((attr = ippFindAttribute(con->request, "member-uris", IPP_TAG_URI)) != NULL) { /* * Clear the printer array as needed... */ need_restart_job = 1; if (pclass->num_printers > 0) { free(pclass->printers); pclass->num_printers = 0; } /* * Add each printer or class that is listed... */ for (i = 0; i < attr->num_values; i ++) { /* * Search for the printer or class URI... */ if (!cupsdValidateDest(attr->values[i].string.text, &dtype, &member)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); if (!modify) cupsdDeletePrinter(pclass, 0); return; } else if (dtype & CUPS_PRINTER_CLASS) { send_ipp_status(con, IPP_BAD_REQUEST, _("Nested classes are not allowed.")); if (!modify) cupsdDeletePrinter(pclass, 0); return; } /* * Add it to the class... */ cupsdAddPrinterToClass(pclass, member); } } if (!set_printer_defaults(con, pclass)) { if (!modify) cupsdDeletePrinter(pclass, 0); return; } if ((attr = ippFindAttribute(con->request, "auth-info-required", IPP_TAG_KEYWORD)) != NULL) cupsdSetAuthInfoRequired(pclass, NULL, attr); pclass->config_time = time(NULL); /* * Update the printer class attributes and return... */ cupsdSetPrinterAttrs(pclass); cupsdMarkDirty(CUPSD_DIRTY_CLASSES); if (need_restart_job && pclass->job) { /* * Reset the current job to a "pending" status... */ cupsdSetJobState(pclass->job, IPP_JOB_PENDING, CUPSD_JOB_FORCE, "Job restarted because the class was modified."); } cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); if (modify) { cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED, pclass, NULL, "Class \"%s\" modified by \"%s\".", pclass->name, get_username(con)); cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" modified by \"%s\".", pclass->name, get_username(con)); } else { cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED, pclass, NULL, "New class \"%s\" added by \"%s\".", pclass->name, get_username(con)); cupsdLogMessage(CUPSD_LOG_INFO, "New class \"%s\" added by \"%s\".", pclass->name, get_username(con)); } con->response->request.status.status_code = IPP_OK; } /* * 'add_file()' - Add a file to a job. */ static int /* O - 0 on success, -1 on error */ add_file(cupsd_client_t *con, /* I - Connection to client */ cupsd_job_t *job, /* I - Job to add to */ mime_type_t *filetype, /* I - Type of file */ int compression) /* I - Compression */ { mime_type_t **filetypes; /* New filetypes array... */ int *compressions; /* New compressions array... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_file(con=%p[%d], job=%d, filetype=%s/%s, " "compression=%d)", con, con ? con->number : -1, job->id, filetype->super, filetype->type, compression); /* * Add the file to the job... */ if (job->num_files == 0) { compressions = (int *)malloc(sizeof(int)); filetypes = (mime_type_t **)malloc(sizeof(mime_type_t *)); } else { compressions = (int *)realloc(job->compressions, (size_t)(job->num_files + 1) * sizeof(int)); filetypes = (mime_type_t **)realloc(job->filetypes, (size_t)(job->num_files + 1) * sizeof(mime_type_t *)); } if (compressions) job->compressions = compressions; if (filetypes) job->filetypes = filetypes; if (!compressions || !filetypes) { cupsdSetJobState(job, IPP_JOB_ABORTED, CUPSD_JOB_PURGE, "Job aborted because the scheduler ran out of memory."); if (con) send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to allocate memory for file types.")); return (-1); } job->compressions[job->num_files] = compression; job->filetypes[job->num_files] = filetype; job->num_files ++; job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); return (0); } /* * 'add_job()' - Add a job to a print queue. */ static cupsd_job_t * /* O - Job object */ add_job(cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *printer, /* I - Destination printer */ mime_type_t *filetype) /* I - First print file type, if any */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr, /* Current attribute */ *auth_info; /* auth-info attribute */ const char *mandatory; /* Current mandatory job attribute */ const char *val; /* Default option value */ int priority; /* Job priority */ cupsd_job_t *job; /* Current job */ char job_uri[HTTP_MAX_URI]; /* Job URI */ int kbytes; /* Size of print file */ int i; /* Looping var */ int lowerpagerange; /* Page range bound */ int exact; /* Did we have an exact match? */ ipp_attribute_t *media_col, /* media-col attribute */ *media_margin; /* media-*-margin attribute */ ipp_t *unsup_col; /* media-col in unsupported response */ static const char * const readonly[] =/* List of read-only attributes */ { "date-time-at-completed", "date-time-at-creation", "date-time-at-processing", "job-detailed-status-messages", "job-document-access-errors", "job-id", "job-impressions-completed", "job-k-octets-completed", "job-media-sheets-completed", "job-pages-completed", "job-printer-up-time", "job-printer-uri", "job-state", "job-state-message", "job-state-reasons", "job-uri", "number-of-documents", "number-of-intervening-jobs", "output-device-assigned", "time-at-completed", "time-at-creation", "time-at-processing" }; cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_job(%p[%d], %p(%s), %p(%s/%s))", con, con->number, printer, printer->name, filetype, filetype ? filetype->super : "none", filetype ? filetype->type : "none"); /* * Check remote printing to non-shared printer... */ if (!printer->shared && _cups_strcasecmp(con->http->hostname, "localhost") && _cups_strcasecmp(con->http->hostname, ServerName)) { send_ipp_status(con, IPP_NOT_AUTHORIZED, _("The printer or class is not shared.")); return (NULL); } /* * Check policy... */ auth_info = ippFindAttribute(con->request, "auth-info", IPP_TAG_TEXT); if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return (NULL); } else if (printer->num_auth_info_required == 1 && !strcmp(printer->auth_info_required[0], "negotiate") && !con->username[0]) { send_http_error(con, HTTP_UNAUTHORIZED, printer); return (NULL); } #ifdef HAVE_TLS else if (auth_info && !con->http->tls && !httpAddrLocalhost(con->http->hostaddr)) { /* * Require encryption of auth-info over non-local connections... */ send_http_error(con, HTTP_UPGRADE_REQUIRED, printer); return (NULL); } #endif /* HAVE_TLS */ /* * See if the printer is accepting jobs... */ if (!printer->accepting) { send_ipp_status(con, IPP_NOT_ACCEPTING, _("Destination \"%s\" is not accepting jobs."), printer->name); return (NULL); } /* * Validate job template attributes; for now just document-format, * copies, job-sheets, number-up, page-ranges, mandatory attributes, and * media... */ for (i = 0; i < (int)(sizeof(readonly) / sizeof(readonly[0])); i ++) { if ((attr = ippFindAttribute(con->request, readonly[i], IPP_TAG_ZERO)) != NULL) { ippDeleteAttribute(con->request, attr); if (StrictConformance) { send_ipp_status(con, IPP_BAD_REQUEST, _("The '%s' Job Status attribute cannot be supplied in a job creation request."), readonly[i]); return (NULL); } cupsdLogMessage(CUPSD_LOG_INFO, "Unexpected '%s' Job Status attribute in a job creation request.", readonly[i]); } } if (printer->pc) { for (mandatory = (char *)cupsArrayFirst(printer->pc->mandatory); mandatory; mandatory = (char *)cupsArrayNext(printer->pc->mandatory)) { if (!ippFindAttribute(con->request, mandatory, IPP_TAG_ZERO)) { /* * Missing a required attribute... */ send_ipp_status(con, IPP_CONFLICT, _("The \"%s\" attribute is required for print jobs."), mandatory); return (NULL); } } } if (filetype && printer->filetypes && !cupsArrayFind(printer->filetypes, filetype)) { char mimetype[MIME_MAX_SUPER + MIME_MAX_TYPE + 2]; /* MIME media type string */ snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); send_ipp_status(con, IPP_DOCUMENT_FORMAT, _("Unsupported format \"%s\"."), mimetype); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_MIMETYPE, "document-format", NULL, mimetype); return (NULL); } if ((attr = ippFindAttribute(con->request, "copies", IPP_TAG_INTEGER)) != NULL) { if (attr->values[0].integer < 1 || attr->values[0].integer > MaxCopies) { send_ipp_status(con, IPP_ATTRIBUTES, _("Bad copies value %d."), attr->values[0].integer); ippAddInteger(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_INTEGER, "copies", attr->values[0].integer); return (NULL); } } if ((attr = ippFindAttribute(con->request, "job-sheets", IPP_TAG_ZERO)) != NULL) { if (attr->value_tag != IPP_TAG_KEYWORD && attr->value_tag != IPP_TAG_NAME) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-sheets value type.")); return (NULL); } if (attr->num_values > 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Too many job-sheets values (%d > 2)."), attr->num_values); return (NULL); } for (i = 0; i < attr->num_values; i ++) if (strcmp(attr->values[i].string.text, "none") && !cupsdFindBanner(attr->values[i].string.text)) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-sheets value \"%s\"."), attr->values[i].string.text); return (NULL); } } if ((attr = ippFindAttribute(con->request, "number-up", IPP_TAG_INTEGER)) != NULL) { if (attr->values[0].integer != 1 && attr->values[0].integer != 2 && attr->values[0].integer != 4 && attr->values[0].integer != 6 && attr->values[0].integer != 9 && attr->values[0].integer != 16) { send_ipp_status(con, IPP_ATTRIBUTES, _("Bad number-up value %d."), attr->values[0].integer); ippAddInteger(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_INTEGER, "number-up", attr->values[0].integer); return (NULL); } } if ((attr = ippFindAttribute(con->request, "page-ranges", IPP_TAG_RANGE)) != NULL) { for (i = 0, lowerpagerange = 1; i < attr->num_values; i ++) { if (attr->values[i].range.lower < lowerpagerange || attr->values[i].range.lower > attr->values[i].range.upper) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad page-ranges values %d-%d."), attr->values[i].range.lower, attr->values[i].range.upper); return (NULL); } lowerpagerange = attr->values[i].range.upper + 1; } } /* * Do media selection as needed... */ if (!ippFindAttribute(con->request, "PageRegion", IPP_TAG_ZERO) && !ippFindAttribute(con->request, "PageSize", IPP_TAG_ZERO) && _ppdCacheGetPageSize(printer->pc, con->request, NULL, &exact)) { if (!exact && (media_col = ippFindAttribute(con->request, "media-col", IPP_TAG_BEGIN_COLLECTION)) != NULL) { send_ipp_status(con, IPP_OK_SUBST, _("Unsupported margins.")); unsup_col = ippNew(); if ((media_margin = ippFindAttribute(media_col->values[0].collection, "media-bottom-margin", IPP_TAG_INTEGER)) != NULL) ippAddInteger(unsup_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-bottom-margin", media_margin->values[0].integer); if ((media_margin = ippFindAttribute(media_col->values[0].collection, "media-left-margin", IPP_TAG_INTEGER)) != NULL) ippAddInteger(unsup_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-left-margin", media_margin->values[0].integer); if ((media_margin = ippFindAttribute(media_col->values[0].collection, "media-right-margin", IPP_TAG_INTEGER)) != NULL) ippAddInteger(unsup_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-right-margin", media_margin->values[0].integer); if ((media_margin = ippFindAttribute(media_col->values[0].collection, "media-top-margin", IPP_TAG_INTEGER)) != NULL) ippAddInteger(unsup_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-top-margin", media_margin->values[0].integer); ippAddCollection(con->response, IPP_TAG_UNSUPPORTED_GROUP, "media-col", unsup_col); ippDelete(unsup_col); } } /* * Make sure we aren't over our limit... */ if (MaxJobs && cupsArrayCount(Jobs) >= MaxJobs) cupsdCleanJobs(); if (MaxJobs && cupsArrayCount(Jobs) >= MaxJobs) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Too many active jobs.")); return (NULL); } if ((i = check_quotas(con, printer)) < 0) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Quota limit reached.")); return (NULL); } else if (i == 0) { send_ipp_status(con, IPP_NOT_AUTHORIZED, _("Not allowed to print.")); return (NULL); } /* * Create the job and set things up... */ if ((attr = ippFindAttribute(con->request, "job-priority", IPP_TAG_INTEGER)) != NULL) priority = attr->values[0].integer; else { if ((val = cupsGetOption("job-priority", printer->num_options, printer->options)) != NULL) priority = atoi(val); else priority = 50; ippAddInteger(con->request, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-priority", priority); } if ((attr = ippFindAttribute(con->request, "job-name", IPP_TAG_ZERO)) == NULL) ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, "Untitled"); else if ((attr->value_tag != IPP_TAG_NAME && attr->value_tag != IPP_TAG_NAMELANG) || attr->num_values != 1) { send_ipp_status(con, IPP_ATTRIBUTES, _("Bad job-name value: Wrong type or count.")); if ((attr = ippCopyAttribute(con->response, attr, 0)) != NULL) attr->group_tag = IPP_TAG_UNSUPPORTED_GROUP; if (StrictConformance) return (NULL); /* Don't use invalid attribute */ ippDeleteAttribute(con->request, attr); ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, "Untitled"); } else if (!ippValidateAttribute(attr)) { send_ipp_status(con, IPP_ATTRIBUTES, _("Bad job-name value: %s"), cupsLastErrorString()); if ((attr = ippCopyAttribute(con->response, attr, 0)) != NULL) attr->group_tag = IPP_TAG_UNSUPPORTED_GROUP; if (StrictConformance) return (NULL); /* Don't use invalid attribute */ ippDeleteAttribute(con->request, attr); ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, "Untitled"); } attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME); if ((job = cupsdAddJob(priority, printer->name)) == NULL) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to add job for destination \"%s\"."), printer->name); return (NULL); } job->dtype = printer->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE); job->attrs = con->request; job->dirty = 1; con->request = ippNewRequest(job->attrs->request.op.operation_id); cupsdMarkDirty(CUPSD_DIRTY_JOBS); add_job_uuid(job); apply_printer_defaults(printer, job); if (con->username[0]) { cupsdSetString(&job->username, con->username); if (attr) ippSetString(job->attrs, &attr, 0, con->username); } else if (attr) { cupsdLogMessage(CUPSD_LOG_DEBUG, "add_job: requesting-user-name=\"%s\"", attr->values[0].string.text); cupsdSetString(&job->username, attr->values[0].string.text); } else cupsdSetString(&job->username, "anonymous"); if (!attr) ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-originating-user-name", NULL, job->username); else { ippSetGroupTag(job->attrs, &attr, IPP_TAG_JOB); ippSetName(job->attrs, &attr, "job-originating-user-name"); } if (con->username[0] || auth_info) { save_auth_info(con, job, auth_info); /* * Remove the auth-info attribute from the attribute data... */ if (auth_info) ippDeleteAttribute(job->attrs, auth_info); } if ((attr = ippFindAttribute(con->request, "job-name", IPP_TAG_NAME)) != NULL) cupsdSetString(&(job->name), attr->values[0].string.text); if ((attr = ippFindAttribute(job->attrs, "job-originating-host-name", IPP_TAG_ZERO)) != NULL) { /* * Request contains a job-originating-host-name attribute; validate it... */ if (attr->value_tag != IPP_TAG_NAME || attr->num_values != 1 || strcmp(con->http->hostname, "localhost")) { /* * Can't override the value if we aren't connected via localhost. * Also, we can only have 1 value and it must be a name value. */ ippDeleteAttribute(job->attrs, attr); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-originating-host-name", NULL, con->http->hostname); } else ippSetGroupTag(job->attrs, &attr, IPP_TAG_JOB); } else { /* * No job-originating-host-name attribute, so use the hostname from * the connection... */ ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-originating-host-name", NULL, con->http->hostname); } ippAddOutOfBand(job->attrs, IPP_TAG_JOB, IPP_TAG_NOVALUE, "date-time-at-completed"); ippAddDate(job->attrs, IPP_TAG_JOB, "date-time-at-creation", ippTimeToDate(time(NULL))); ippAddOutOfBand(job->attrs, IPP_TAG_JOB, IPP_TAG_NOVALUE, "date-time-at-processing"); ippAddOutOfBand(job->attrs, IPP_TAG_JOB, IPP_TAG_NOVALUE, "time-at-completed"); ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "time-at-creation", time(NULL)); ippAddOutOfBand(job->attrs, IPP_TAG_JOB, IPP_TAG_NOVALUE, "time-at-processing"); /* * Add remaining job attributes... */ ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id); job->state = ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", IPP_JOB_STOPPED); job->state_value = (ipp_jstate_t)job->state->values[0].integer; job->reasons = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-incoming"); job->impressions = ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-impressions-completed", 0); job->sheets = ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-media-sheets-completed", 0); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL, printer->uri); if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) attr->values[0].integer = 0; else ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-k-octets", 0); if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (!attr) { if ((val = cupsGetOption("job-hold-until", printer->num_options, printer->options)) == NULL) val = "no-hold"; attr = ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-hold-until", NULL, val); } if (printer->holding_new_jobs) { /* * Hold all new jobs on this printer... */ if (attr && strcmp(attr->values[0].string.text, "no-hold")) cupsdSetJobHoldUntil(job, ippGetString(attr, 0, NULL), 0); else cupsdSetJobHoldUntil(job, "indefinite", 0); job->state->values[0].integer = IPP_JOB_HELD; job->state_value = IPP_JOB_HELD; ippSetString(job->attrs, &job->reasons, 0, "job-held-on-create"); } else if (attr && strcmp(attr->values[0].string.text, "no-hold")) { /* * Hold job until specified time... */ cupsdSetJobHoldUntil(job, attr->values[0].string.text, 0); job->state->values[0].integer = IPP_JOB_HELD; job->state_value = IPP_JOB_HELD; ippSetString(job->attrs, &job->reasons, 0, "job-hold-until-specified"); } else if (job->attrs->request.op.operation_id == IPP_CREATE_JOB) { job->hold_until = time(NULL) + MultipleOperationTimeout; job->state->values[0].integer = IPP_JOB_HELD; job->state_value = IPP_JOB_HELD; } else { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; ippSetString(job->attrs, &job->reasons, 0, "none"); } if (!(printer->type & CUPS_PRINTER_REMOTE) || Classification) { /* * Add job sheets options... */ if ((attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Adding default job-sheets values \"%s,%s\"...", printer->job_sheets[0], printer->job_sheets[1]); attr = ippAddStrings(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "job-sheets", 2, NULL, NULL); ippSetString(job->attrs, &attr, 0, printer->job_sheets[0]); ippSetString(job->attrs, &attr, 1, printer->job_sheets[1]); } job->job_sheets = attr; /* * Enforce classification level if set... */ if (Classification) { cupsdLogMessage(CUPSD_LOG_INFO, "Classification=\"%s\", ClassifyOverride=%d", Classification ? Classification : "(null)", ClassifyOverride); if (ClassifyOverride) { if (!strcmp(attr->values[0].string.text, "none") && (attr->num_values == 1 || !strcmp(attr->values[1].string.text, "none"))) { /* * Force the leading banner to have the classification on it... */ ippSetString(job->attrs, &attr, 0, Classification); cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION FORCED " "job-sheets=\"%s,none\", " "job-originating-user-name=\"%s\"", Classification, job->username); } else if (attr->num_values == 2 && strcmp(attr->values[0].string.text, attr->values[1].string.text) && strcmp(attr->values[0].string.text, "none") && strcmp(attr->values[1].string.text, "none")) { /* * Can't put two different security markings on the same document! */ ippSetString(job->attrs, &attr, 1, attr->values[0].string.text); cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION FORCED " "job-sheets=\"%s,%s\", " "job-originating-user-name=\"%s\"", attr->values[0].string.text, attr->values[1].string.text, job->username); } else if (strcmp(attr->values[0].string.text, Classification) && strcmp(attr->values[0].string.text, "none") && (attr->num_values == 1 || (strcmp(attr->values[1].string.text, Classification) && strcmp(attr->values[1].string.text, "none")))) { if (attr->num_values == 1) cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION OVERRIDDEN " "job-sheets=\"%s\", " "job-originating-user-name=\"%s\"", attr->values[0].string.text, job->username); else cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION OVERRIDDEN " "job-sheets=\"%s,%s\",fffff " "job-originating-user-name=\"%s\"", attr->values[0].string.text, attr->values[1].string.text, job->username); } } else if (strcmp(attr->values[0].string.text, Classification) && (attr->num_values == 1 || strcmp(attr->values[1].string.text, Classification))) { /* * Force the banner to have the classification on it... */ if (attr->num_values > 1 && !strcmp(attr->values[0].string.text, attr->values[1].string.text)) { ippSetString(job->attrs, &attr, 0, Classification); ippSetString(job->attrs, &attr, 1, Classification); } else { if (attr->num_values == 1 || strcmp(attr->values[0].string.text, "none")) ippSetString(job->attrs, &attr, 0, Classification); if (attr->num_values > 1 && strcmp(attr->values[1].string.text, "none")) ippSetString(job->attrs, &attr, 1, Classification); } if (attr->num_values > 1) cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION FORCED " "job-sheets=\"%s,%s\", " "job-originating-user-name=\"%s\"", attr->values[0].string.text, attr->values[1].string.text, job->username); else cupsdLogJob(job, CUPSD_LOG_NOTICE, "CLASSIFICATION FORCED " "job-sheets=\"%s\", " "job-originating-user-name=\"%s\"", Classification, job->username); } } /* * See if we need to add the starting sheet... */ if (!(printer->type & CUPS_PRINTER_REMOTE)) { cupsdLogJob(job, CUPSD_LOG_INFO, "Adding start banner page \"%s\".", attr->values[0].string.text); if ((kbytes = copy_banner(con, job, attr->values[0].string.text)) < 0) { cupsdSetJobState(job, IPP_JOB_ABORTED, CUPSD_JOB_PURGE, "Aborting job because the start banner could not be " "copied."); return (NULL); } cupsdUpdateQuota(printer, job->username, 0, kbytes); } } else if ((attr = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_ZERO)) != NULL) job->job_sheets = attr; /* * Fill in the response info... */ httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, con->clientname, con->clientport, "/jobs/%d", job->id); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-uri", NULL, job_uri); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", (int)job->state_value); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_TEXT, "job-state-message", NULL, ""); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, job->reasons->values[0].string.text); con->response->request.status.status_code = IPP_OK; /* * Add any job subscriptions... */ add_job_subscriptions(con, job); /* * Set all but the first two attributes to the job attributes group... */ for (attr = job->attrs->attrs->next->next; attr; attr = attr->next) attr->group_tag = IPP_TAG_JOB; /* * Fire the "job created" event... */ cupsdAddEvent(CUPSD_EVENT_JOB_CREATED, printer, job, "Job created."); /* * Return the new job... */ return (job); } /* * 'add_job_subscriptions()' - Add any subscriptions for a job. */ static void add_job_subscriptions( cupsd_client_t *con, /* I - Client connection */ cupsd_job_t *job) /* I - Newly created job */ { int i; /* Looping var */ ipp_attribute_t *prev, /* Previous attribute */ *next, /* Next attribute */ *attr; /* Current attribute */ cupsd_subscription_t *sub; /* Subscription object */ const char *recipient, /* notify-recipient-uri */ *pullmethod; /* notify-pull-method */ ipp_attribute_t *user_data; /* notify-user-data */ int interval; /* notify-time-interval */ unsigned mask; /* notify-events */ /* * Find the first subscription group attribute; return if we have * none... */ for (attr = job->attrs->attrs; attr; attr = attr->next) if (attr->group_tag == IPP_TAG_SUBSCRIPTION) break; if (!attr) return; /* * Process the subscription attributes in the request... */ while (attr) { recipient = NULL; pullmethod = NULL; user_data = NULL; interval = 0; mask = CUPSD_EVENT_NONE; while (attr && attr->group_tag != IPP_TAG_ZERO) { if (!strcmp(attr->name, "notify-recipient-uri") && attr->value_tag == IPP_TAG_URI) { /* * Validate the recipient scheme against the ServerBin/notifier * directory... */ char notifier[1024], /* Notifier filename */ scheme[HTTP_MAX_URI], /* Scheme portion of URI */ userpass[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ struct stat info; /* File information */ recipient = attr->values[0].string.text; if (httpSeparateURI(HTTP_URI_CODING_ALL, recipient, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_OK) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad notify-recipient-uri \"%s\"."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_URI_SCHEME); return; } snprintf(notifier, sizeof(notifier), "%s/notifier/%s", ServerBin, scheme); if (access(notifier, X_OK) || stat(notifier, &info) || !S_ISREG(info.st_mode)) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("notify-recipient-uri URI \"%s\" uses unknown " "scheme."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_URI_SCHEME); return; } if (!strcmp(scheme, "rss") && !check_rss_recipient(recipient)) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("notify-recipient-uri URI \"%s\" is already used."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_ATTRIBUTES); return; } } else if (!strcmp(attr->name, "notify-pull-method") && attr->value_tag == IPP_TAG_KEYWORD) { pullmethod = attr->values[0].string.text; if (strcmp(pullmethod, "ippget")) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad notify-pull-method \"%s\"."), pullmethod); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_ATTRIBUTES); return; } } else if (!strcmp(attr->name, "notify-charset") && attr->value_tag == IPP_TAG_CHARSET && strcmp(attr->values[0].string.text, "us-ascii") && strcmp(attr->values[0].string.text, "utf-8")) { send_ipp_status(con, IPP_CHARSET, _("Character set \"%s\" not supported."), attr->values[0].string.text); return; } else if (!strcmp(attr->name, "notify-natural-language") && (attr->value_tag != IPP_TAG_LANGUAGE || strcmp(attr->values[0].string.text, DefaultLanguage))) { send_ipp_status(con, IPP_CHARSET, _("Language \"%s\" not supported."), attr->values[0].string.text); return; } else if (!strcmp(attr->name, "notify-user-data") && attr->value_tag == IPP_TAG_STRING) { if (attr->num_values > 1 || attr->values[0].unknown.length > 63) { send_ipp_status(con, IPP_REQUEST_VALUE, _("The notify-user-data value is too large " "(%d > 63 octets)."), attr->values[0].unknown.length); return; } user_data = attr; } else if (!strcmp(attr->name, "notify-events") && attr->value_tag == IPP_TAG_KEYWORD) { for (i = 0; i < attr->num_values; i ++) mask |= cupsdEventValue(attr->values[i].string.text); } else if (!strcmp(attr->name, "notify-lease-duration")) { send_ipp_status(con, IPP_BAD_REQUEST, _("The notify-lease-duration attribute cannot be " "used with job subscriptions.")); return; } else if (!strcmp(attr->name, "notify-time-interval") && attr->value_tag == IPP_TAG_INTEGER) interval = attr->values[0].integer; attr = attr->next; } if (!recipient && !pullmethod) break; if (mask == CUPSD_EVENT_NONE) mask = CUPSD_EVENT_JOB_COMPLETED; if ((sub = cupsdAddSubscription(mask, cupsdFindDest(job->dest), job, recipient, 0)) != NULL) { sub->interval = interval; cupsdSetString(&sub->owner, job->username); if (user_data) { sub->user_data_len = user_data->values[0].unknown.length; memcpy(sub->user_data, user_data->values[0].unknown.data, (size_t)sub->user_data_len); } ippAddSeparator(con->response); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-subscription-id", sub->id); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added subscription %d for job %d", sub->id, job->id); } if (attr) attr = attr->next; } cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); /* * Remove all of the subscription attributes from the job request... * * TODO: Optimize this since subscription groups have to come at the * end of the request... */ for (attr = job->attrs->attrs, prev = NULL; attr; attr = next) { next = attr->next; if (attr->group_tag == IPP_TAG_SUBSCRIPTION || attr->group_tag == IPP_TAG_ZERO) { /* * Free and remove this attribute... */ ippDeleteAttribute(NULL, attr); if (prev) prev->next = next; else job->attrs->attrs = next; } else prev = attr; } job->attrs->last = prev; job->attrs->current = prev; } /* * 'add_job_uuid()' - Add job-uuid attribute to a job. * * See RFC 4122 for the definition of UUIDs and the format. */ static void add_job_uuid(cupsd_job_t *job) /* I - Job */ { char uuid[64]; /* job-uuid string */ /* * Add a job-uuid attribute if none exists... */ if (!ippFindAttribute(job->attrs, "job-uuid", IPP_TAG_URI)) ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_URI, "job-uuid", NULL, httpAssembleUUID(ServerName, RemotePort, job->dest, job->id, uuid, sizeof(uuid))); } /* * 'add_printer()' - Add a printer to the system. */ static void add_printer(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - URI of printer */ { http_status_t status; /* Policy status */ int i = 0; /* Looping var */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_printer_t *printer; /* Printer/class */ ipp_attribute_t *attr; /* Printer attribute */ cups_file_t *fp; /* Script/PPD file */ char line[1024]; /* Line from file... */ char srcfile[1024], /* Source Script/PPD file */ dstfile[1024]; /* Destination Script/PPD file */ int modify; /* Non-zero if we are modifying */ int changed_driver, /* Changed the PPD? */ need_restart_job, /* Need to restart job? */ set_device_uri, /* Did we set the device URI? */ set_port_monitor; /* Did we set the port monitor? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Do we have a valid URI? */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/printers/", 10) || strlen(resource) == 10) { /* * No, return an error... */ send_ipp_status(con, IPP_BAD_REQUEST, _("The printer-uri must be of the form " "\"ipp://HOSTNAME/printers/PRINTERNAME\".")); return; } /* * Do we have a valid printer name? */ if (!validate_name(resource + 10)) { /* * No, return an error... */ send_ipp_status(con, IPP_BAD_REQUEST, _("The printer-uri \"%s\" contains invalid characters."), uri->values[0].string.text); return; } /* * See if the printer already exists; if not, create a new printer... */ if ((printer = cupsdFindPrinter(resource + 10)) == NULL) { /* * Printer doesn't exist; see if we have a class of the same name... */ if (cupsdFindClass(resource + 10)) { /* * Yes, return an error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("A class named \"%s\" already exists."), resource + 10); return; } /* * No, check the default policy then add the printer... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } printer = cupsdAddPrinter(resource + 10); modify = 0; printer->printer_id = NextPrinterId ++; } else if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } else modify = 1; /* * Look for attributes and copy them over as needed... */ changed_driver = 0; need_restart_job = 0; if ((attr = ippFindAttribute(con->request, "printer-is-temporary", IPP_TAG_BOOLEAN)) != NULL) printer->temporary = ippGetBoolean(attr, 0); if ((attr = ippFindAttribute(con->request, "printer-location", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->location, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-geo-location", IPP_TAG_URI)) != NULL && !strncmp(attr->values[0].string.text, "geo:", 4)) cupsdSetString(&printer->geo_location, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-organization", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->organization, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-organizational-unit", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->organizational_unit, attr->values[0].string.text); if ((attr = ippFindAttribute(con->request, "printer-info", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->info, attr->values[0].string.text); set_device_uri = 0; if ((attr = ippFindAttribute(con->request, "ColorModel", IPP_TAG_NAME)) != NULL) { const char * keyword = NULL; if (!strcmp(attr->values[0].string.text, "FastGray") || !strcmp(attr->values[0].string.text, "Gray") || !strcmp(attr->values[0].string.text, "DeviceGray")) keyword = "monochrome"; else keyword = "color"; printer->num_options = cupsAddOption("print-color-mode", keyword, printer->num_options, &printer->options); } if ((attr = ippFindAttribute(con->request, "device-uri", IPP_TAG_URI)) != NULL) { /* * Do we have a valid device URI? */ http_uri_status_t uri_status; /* URI separation status */ char old_device_uri[1024]; /* Old device URI */ need_restart_job = 1; uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); cupsdLogMessage(CUPSD_LOG_DEBUG, "%s device-uri: %s", printer->name, httpURIStatusString(uri_status)); if (uri_status < HTTP_URI_OK) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad device-uri \"%s\"."), attr->values[0].string.text); if (!modify) cupsdDeletePrinter(printer, 0); return; } if (!strcmp(scheme, "file")) { /* * See if the administrator has enabled file devices... */ if (!FileDevice && strcmp(resource, "/dev/null")) { /* * File devices are disabled and the URL is not file:/dev/null... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("File device URIs have been disabled. " "To enable, see the FileDevice directive in " "\"%s/cups-files.conf\"."), ServerRoot); if (!modify) cupsdDeletePrinter(printer, 0); return; } } else { /* * See if the backend exists and is executable... */ snprintf(srcfile, sizeof(srcfile), "%s/backend/%s", ServerBin, scheme); if (access(srcfile, X_OK)) { /* * Could not find device in list! */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad device-uri scheme \"%s\"."), scheme); if (!modify) cupsdDeletePrinter(printer, 0); return; } } if (printer->sanitized_device_uri) strlcpy(old_device_uri, printer->sanitized_device_uri, sizeof(old_device_uri)); else old_device_uri[0] = '\0'; cupsdSetDeviceURI(printer, attr->values[0].string.text); cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s device-uri to \"%s\" (was \"%s\".)", printer->name, printer->sanitized_device_uri, old_device_uri); set_device_uri = 1; } set_port_monitor = 0; if ((attr = ippFindAttribute(con->request, "port-monitor", IPP_TAG_NAME)) != NULL) { ipp_attribute_t *supported; /* port-monitor-supported attribute */ need_restart_job = 1; supported = ippFindAttribute(printer->ppd_attrs, "port-monitor-supported", IPP_TAG_NAME); if (supported) { for (i = 0; i < supported->num_values; i ++) if (!strcmp(supported->values[i].string.text, attr->values[0].string.text)) break; } if (!supported || i >= supported->num_values) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad port-monitor \"%s\"."), attr->values[0].string.text); if (!modify) cupsdDeletePrinter(printer, 0); return; } cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s port-monitor to \"%s\" (was \"%s\".)", printer->name, attr->values[0].string.text, printer->port_monitor ? printer->port_monitor : "none"); if (strcmp(attr->values[0].string.text, "none")) cupsdSetString(&printer->port_monitor, attr->values[0].string.text); else cupsdClearString(&printer->port_monitor); set_port_monitor = 1; } if ((attr = ippFindAttribute(con->request, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN)) != NULL && attr->values[0].boolean != printer->accepting) { cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-is-accepting-jobs to %d (was %d.)", printer->name, attr->values[0].boolean, printer->accepting); printer->accepting = attr->values[0].boolean; cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "%s accepting jobs.", printer->accepting ? "Now" : "No longer"); } if ((attr = ippFindAttribute(con->request, "printer-is-shared", IPP_TAG_BOOLEAN)) != NULL) { if (ippGetBoolean(attr, 0) && printer->num_auth_info_required == 1 && !strcmp(printer->auth_info_required[0], "negotiate")) { send_ipp_status(con, IPP_BAD_REQUEST, _("Cannot share a remote Kerberized printer.")); if (!modify) cupsdDeletePrinter(printer, 0); return; } if (printer->type & CUPS_PRINTER_REMOTE) { /* * Cannot re-share remote printers. */ send_ipp_status(con, IPP_BAD_REQUEST, _("Cannot change printer-is-shared for remote queues.")); if (!modify) cupsdDeletePrinter(printer, 0); return; } if (printer->shared && !ippGetBoolean(attr, 0)) cupsdDeregisterPrinter(printer, 1); cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-is-shared to %d (was %d.)", printer->name, attr->values[0].boolean, printer->shared); printer->shared = ippGetBoolean(attr, 0); if (printer->shared && printer->temporary) printer->temporary = 0; } if ((attr = ippFindAttribute(con->request, "printer-state", IPP_TAG_ENUM)) != NULL) { if (attr->values[0].integer != IPP_PRINTER_IDLE && attr->values[0].integer != IPP_PRINTER_STOPPED) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad printer-state value %d."), attr->values[0].integer); if (!modify) cupsdDeletePrinter(printer, 0); return; } cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-state to %d (was %d.)", printer->name, attr->values[0].integer, printer->state); if (attr->values[0].integer == IPP_PRINTER_STOPPED) cupsdStopPrinter(printer, 0); else { need_restart_job = 1; cupsdSetPrinterState(printer, (ipp_pstate_t)(attr->values[0].integer), 0); } } if ((attr = ippFindAttribute(con->request, "printer-state-message", IPP_TAG_TEXT)) != NULL) { strlcpy(printer->state_message, attr->values[0].string.text, sizeof(printer->state_message)); cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "%s", printer->state_message); } if ((attr = ippFindAttribute(con->request, "printer-state-reasons", IPP_TAG_KEYWORD)) != NULL) { if (attr->num_values > (int)(sizeof(printer->reasons) / sizeof(printer->reasons[0]))) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Too many printer-state-reasons values (%d > %d)."), attr->num_values, (int)(sizeof(printer->reasons) / sizeof(printer->reasons[0]))); if (!modify) cupsdDeletePrinter(printer, 0); return; } for (i = 0; i < printer->num_reasons; i ++) _cupsStrFree(printer->reasons[i]); printer->num_reasons = 0; for (i = 0; i < attr->num_values; i ++) { if (!strcmp(attr->values[i].string.text, "none")) continue; printer->reasons[printer->num_reasons] = _cupsStrAlloc(attr->values[i].string.text); printer->num_reasons ++; if (!strcmp(attr->values[i].string.text, "paused") && printer->state != IPP_PRINTER_STOPPED) { cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s printer-state to %d (was %d.)", printer->name, IPP_PRINTER_STOPPED, printer->state); cupsdStopPrinter(printer, 0); } } if (PrintcapFormat == PRINTCAP_PLIST) cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "Printer \"%s\" state changed.", printer->name); } if (!set_printer_defaults(con, printer)) { if (!modify) cupsdDeletePrinter(printer, 0); return; } if ((attr = ippFindAttribute(con->request, "auth-info-required", IPP_TAG_KEYWORD)) != NULL) cupsdSetAuthInfoRequired(printer, NULL, attr); /* * See if we have all required attributes... */ if (!printer->device_uri) cupsdSetString(&printer->device_uri, "file:///dev/null"); /* * See if we have a PPD file attached to the request... */ if (con->filename) { need_restart_job = 1; changed_driver = 1; strlcpy(srcfile, con->filename, sizeof(srcfile)); if ((fp = cupsFileOpen(srcfile, "rb"))) { /* * Yes; get the first line from it... */ line[0] = '\0'; cupsFileGets(fp, line, sizeof(line)); cupsFileClose(fp); /* * Then see what kind of file it is... */ if (strncmp(line, "*PPD-Adobe", 10)) { send_ipp_status(con, IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, _("Bad PPD file.")); if (!modify) cupsdDeletePrinter(printer, 0); return; } snprintf(dstfile, sizeof(dstfile), "%s/ppd/%s.ppd", ServerRoot, printer->name); /* * The new file is a PPD file, so move the file over to the ppd * directory... */ if (copy_file(srcfile, dstfile, ConfigFilePerm)) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to copy PPD file - %s"), strerror(errno)); if (!modify) cupsdDeletePrinter(printer, 0); return; } cupsdLogMessage(CUPSD_LOG_DEBUG, "Copied PPD file successfully"); } } else if ((attr = ippFindAttribute(con->request, "ppd-name", IPP_TAG_NAME)) != NULL) { const char *ppd_name = ippGetString(attr, 0, NULL); /* ppd-name value */ need_restart_job = 1; changed_driver = 1; if (!strcmp(ppd_name, "everywhere")) { // Create IPP Everywhere PPD... if (!printer->device_uri || (strncmp(printer->device_uri, "dnssd://", 8) && strncmp(printer->device_uri, "ipp://", 6) && strncmp(printer->device_uri, "ipps://", 7) && strncmp(printer->device_uri, "ippusb://", 9))) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("IPP Everywhere driver requires an IPP connection.")); if (!modify) cupsdDeletePrinter(printer, 0); return; } // Run a background thread to create the PPD... _cupsThreadCreate((_cups_thread_func_t)create_local_bg_thread, printer); } else if (!strcmp(ppd_name, "raw")) { /* * Raw driver, remove any existing PPD file. */ snprintf(dstfile, sizeof(dstfile), "%s/ppd/%s.ppd", ServerRoot, printer->name); unlink(dstfile); } else if (strstr(ppd_name, "../")) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Invalid ppd-name value.")); if (!modify) cupsdDeletePrinter(printer, 0); return; } else { /* * PPD model file... */ snprintf(dstfile, sizeof(dstfile), "%s/ppd/%s.ppd", ServerRoot, printer->name); if (copy_model(con, ppd_name, dstfile)) { if (!modify) cupsdDeletePrinter(printer, 0); return; } cupsdLogMessage(CUPSD_LOG_DEBUG, "Copied PPD file successfully"); } } if (changed_driver) { /* * If we changed the PPD, then remove the printer's cache file and clear the * printer-state-reasons... */ char cache_name[1024]; /* Cache filename for printer attrs */ snprintf(cache_name, sizeof(cache_name), "%s/%s.data", CacheDir, printer->name); unlink(cache_name); cupsdSetPrinterReasons(printer, "none"); /* * (Re)register color profiles... */ cupsdRegisterColor(printer); } /* * If we set the device URI but not the port monitor, check which port * monitor to use by default... */ if (set_device_uri && !set_port_monitor) { ppd_file_t *ppd; /* PPD file */ ppd_attr_t *ppdattr; /* cupsPortMonitor attribute */ httpSeparateURI(HTTP_URI_CODING_ALL, printer->device_uri, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); snprintf(srcfile, sizeof(srcfile), "%s/ppd/%s.ppd", ServerRoot, printer->name); if ((ppd = _ppdOpenFile(srcfile, _PPD_LOCALIZATION_NONE)) != NULL) { for (ppdattr = ppdFindAttr(ppd, "cupsPortMonitor", NULL); ppdattr; ppdattr = ppdFindNextAttr(ppd, "cupsPortMonitor", NULL)) if (!strcmp(scheme, ppdattr->spec)) { cupsdLogMessage(CUPSD_LOG_INFO, "Setting %s port-monitor to \"%s\" (was \"%s\".)", printer->name, ppdattr->value, printer->port_monitor ? printer->port_monitor : "none"); if (strcmp(ppdattr->value, "none")) cupsdSetString(&printer->port_monitor, ppdattr->value); else cupsdClearString(&printer->port_monitor); break; } ppdClose(ppd); } } printer->config_time = time(NULL); /* * Update the printer attributes and return... */ if (!printer->temporary) { if (!printer->printer_id) printer->printer_id = NextPrinterId ++; cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } cupsdSetPrinterAttrs(printer); if (need_restart_job && printer->job) { /* * Restart the current job... */ cupsdSetJobState(printer->job, IPP_JOB_PENDING, CUPSD_JOB_FORCE, "Job restarted because the printer was modified."); } cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); if (modify) { cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED, printer, NULL, "Printer \"%s\" modified by \"%s\".", printer->name, get_username(con)); cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" modified by \"%s\".", printer->name, get_username(con)); } else { cupsdAddEvent(CUPSD_EVENT_PRINTER_ADDED, printer, NULL, "New printer \"%s\" added by \"%s\".", printer->name, get_username(con)); cupsdLogMessage(CUPSD_LOG_INFO, "New printer \"%s\" added by \"%s\".", printer->name, get_username(con)); } con->response->request.status.status_code = IPP_OK; } /* * 'add_printer_state_reasons()' - Add the "printer-state-reasons" attribute * based upon the printer state... */ static void add_printer_state_reasons( cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *p) /* I - Printer info */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_printer_state_reasons(%p[%d], %p[%s])", con, con->number, p, p->name); if (p->num_reasons == 0) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-state-reasons", NULL, "none"); else ippAddStrings(con->response, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "printer-state-reasons", p->num_reasons, NULL, (const char * const *)p->reasons); } /* * 'add_queued_job_count()' - Add the "queued-job-count" attribute for * the specified printer or class. */ static void add_queued_job_count( cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *p) /* I - Printer or class */ { int count; /* Number of jobs on destination */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_queued_job_count(%p[%d], %p[%s])", con, con->number, p, p->name); count = cupsdGetPrinterJobCount(p->name); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "queued-job-count", count); } /* * 'apply_printer_defaults()' - Apply printer default options to a job. */ static void apply_printer_defaults( cupsd_printer_t *printer, /* I - Printer */ cupsd_job_t *job) /* I - Job */ { int i, /* Looping var */ num_options; /* Number of default options */ cups_option_t *options, /* Default options */ *option; /* Current option */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Applying default options..."); /* * Collect all of the default options and add the missing ones to the * job object... */ for (i = printer->num_options, num_options = 0, options = NULL, option = printer->options; i > 0; i --, option ++) if (!ippFindAttribute(job->attrs, option->name, IPP_TAG_ZERO)) { if (!strcmp(option->name, "media") && ippFindAttribute(job->attrs, "PageSize", IPP_TAG_NAME)) continue; /* Don't override PageSize */ if (!strcmp(option->name, "output-bin") && ippFindAttribute(job->attrs, "OutputBin", IPP_TAG_NAME)) continue; /* Don't override OutputBin */ if (!strcmp(option->name, "print-quality") && ippFindAttribute(job->attrs, "cupsPrintQuality", IPP_TAG_NAME)) continue; /* Don't override cupsPrintQuality */ if (!strcmp(option->name, "print-color-mode") && ippFindAttribute(job->attrs, "ColorModel", IPP_TAG_NAME)) continue; /* Don't override ColorModel */ if (!strcmp(option->name, "sides") && ippFindAttribute(job->attrs, "Duplex", IPP_TAG_NAME)) continue; /* Don't override Duplex */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Adding default %s=%s", option->name, option->value); num_options = cupsAddOption(option->name, option->value, num_options, &options); } /* * Encode these options as attributes in the job object... */ cupsEncodeOptions2(job->attrs, num_options, options, IPP_TAG_JOB); cupsFreeOptions(num_options, options); } /* * 'authenticate_job()' - Set job authentication info. */ static void authenticate_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job URI */ { ipp_attribute_t *attr, /* job-id attribute */ *auth_info; /* auth-info attribute */ int jobid; /* Job ID */ cupsd_job_t *job; /* Current job */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "authenticate_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Start with "everything is OK" status... */ con->response->request.status.status_code = IPP_OK; /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if the job has been completed... */ if (job->state_value != IPP_JOB_HELD) { /* * Return a "not-possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is not held for authentication."), jobid); return; } /* * See if we have already authenticated... */ auth_info = ippFindAttribute(con->request, "auth-info", IPP_TAG_TEXT); if (!con->username[0] && !auth_info) { cupsd_printer_t *printer; /* Job destination */ /* * No auth data. If we need to authenticate via Kerberos, send a * HTTP auth challenge, otherwise just return an IPP error... */ printer = cupsdFindDest(job->dest); if (printer && printer->num_auth_info_required > 0 && !strcmp(printer->auth_info_required[0], "negotiate")) send_http_error(con, HTTP_UNAUTHORIZED, printer); else send_ipp_status(con, IPP_NOT_AUTHORIZED, _("No authentication information provided.")); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * Save the authentication information for this job... */ save_auth_info(con, job, auth_info); /* * Reset the job-hold-until value to "no-hold"... */ if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (attr) { ippSetValueTag(job->attrs, &attr, IPP_TAG_KEYWORD); ippSetString(job->attrs, &attr, 0, "no-hold"); } /* * Release the job and return... */ cupsdReleaseJob(job); cupsdAddEvent(CUPSD_EVENT_JOB_STATE, NULL, job, "Job authenticated by user"); cupsdLogJob(job, CUPSD_LOG_INFO, "Authenticated by \"%s\".", con->username); cupsdCheckJobs(); } /* * 'cancel_all_jobs()' - Cancel all or selected print jobs. */ static void cancel_all_jobs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job or Printer URI */ { int i; /* Looping var */ http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ userpass[HTTP_MAX_URI], /* Username portion of URI */ hostname[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ ipp_attribute_t *attr; /* Attribute in request */ const char *username = NULL; /* Username */ cupsd_jobaction_t purge = CUPSD_JOB_DEFAULT; /* Purge? */ cupsd_printer_t *printer; /* Printer */ ipp_attribute_t *job_ids; /* job-ids attribute */ cupsd_job_t *job; /* Job */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cancel_all_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Get the jobs to cancel/purge... */ switch (con->request->request.op.operation_id) { case IPP_PURGE_JOBS : /* * Get the username (if any) for the jobs we want to cancel (only if * "my-jobs" is specified... */ if ((attr = ippFindAttribute(con->request, "my-jobs", IPP_TAG_BOOLEAN)) != NULL && attr->values[0].boolean) { if ((attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) username = attr->values[0].string.text; else { send_ipp_status(con, IPP_BAD_REQUEST, _("Missing requesting-user-name attribute.")); return; } } /* * Look for the "purge-jobs" attribute... */ if ((attr = ippFindAttribute(con->request, "purge-jobs", IPP_TAG_BOOLEAN)) != NULL) purge = attr->values[0].boolean ? CUPSD_JOB_PURGE : CUPSD_JOB_DEFAULT; else purge = CUPSD_JOB_PURGE; break; case IPP_CANCEL_MY_JOBS : if (con->username[0]) username = con->username; else if ((attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) username = attr->values[0].string.text; else { send_ipp_status(con, IPP_BAD_REQUEST, _("Missing requesting-user-name attribute.")); return; } default : break; } job_ids = ippFindAttribute(con->request, "job-ids", IPP_TAG_INTEGER); /* * See if we have a printer URI... */ if (strcmp(uri->name, "printer-uri")) { send_ipp_status(con, IPP_BAD_REQUEST, _("The printer-uri attribute is required.")); return; } /* * And if the destination is valid... */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI? */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if ((!strncmp(resource, "/printers/", 10) && resource[10]) || (!strncmp(resource, "/classes/", 9) && resource[9])) { send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } if (job_ids) { for (i = 0; i < job_ids->num_values; i ++) { if ((job = cupsdFindJob(job_ids->values[i].integer)) == NULL) break; if (con->request->request.op.operation_id == IPP_CANCEL_MY_JOBS && _cups_strcasecmp(job->username, username)) break; } if (i < job_ids->num_values) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), job_ids->values[i].integer); return; } for (i = 0; i < job_ids->num_values; i ++) { job = cupsdFindJob(job_ids->values[i].integer); cupsdSetJobState(job, IPP_JOB_CANCELED, purge, purge == CUPSD_JOB_PURGE ? "Job purged by user." : "Job canceled by user."); } cupsdLogMessage(CUPSD_LOG_INFO, "Selected jobs were %s by \"%s\".", purge == CUPSD_JOB_PURGE ? "purged" : "canceled", get_username(con)); } else { /* * Cancel all jobs on all printers... */ cupsdCancelJobs(NULL, username, purge != CUPSD_JOB_DEFAULT); cupsdLogMessage(CUPSD_LOG_INFO, "All jobs were %s by \"%s\".", purge == CUPSD_JOB_PURGE ? "purged" : "canceled", get_username(con)); } } else { /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } if (job_ids) { for (i = 0; i < job_ids->num_values; i ++) { if ((job = cupsdFindJob(job_ids->values[i].integer)) == NULL || _cups_strcasecmp(job->dest, printer->name)) break; if (con->request->request.op.operation_id == IPP_CANCEL_MY_JOBS && _cups_strcasecmp(job->username, username)) break; } if (i < job_ids->num_values) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), job_ids->values[i].integer); return; } for (i = 0; i < job_ids->num_values; i ++) { job = cupsdFindJob(job_ids->values[i].integer); cupsdSetJobState(job, IPP_JOB_CANCELED, purge, purge == CUPSD_JOB_PURGE ? "Job purged by user." : "Job canceled by user."); } cupsdLogMessage(CUPSD_LOG_INFO, "Selected jobs were %s by \"%s\".", purge == CUPSD_JOB_PURGE ? "purged" : "canceled", get_username(con)); } else { /* * Cancel all of the jobs on the named printer... */ cupsdCancelJobs(printer->name, username, purge != CUPSD_JOB_DEFAULT); cupsdLogMessage(CUPSD_LOG_INFO, "All jobs on \"%s\" were %s by \"%s\".", printer->name, purge == CUPSD_JOB_PURGE ? "purged" : "canceled", get_username(con)); } } con->response->request.status.status_code = IPP_OK; cupsdCheckJobs(); } /* * 'cancel_job()' - Cancel a print job. */ static void cancel_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job or Printer URI */ { ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_job_t *job; /* Job information */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ cupsd_jobaction_t purge; /* Purge the job? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cancel_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } if ((jobid = attr->values[0].integer) == 0) { /* * Find the current job on the specified printer... */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * See if there are any pending jobs... */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (job->state_value <= IPP_JOB_PROCESSING && !_cups_strcasecmp(job->dest, printer->name)) break; if (job) jobid = job->id; else { /* * No, try stopped jobs... */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs); job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (job->state_value == IPP_JOB_STOPPED && !_cups_strcasecmp(job->dest, printer->name)) break; if (job) jobid = job->id; else { send_ipp_status(con, IPP_NOT_POSSIBLE, _("No active jobs on %s."), printer->name); return; } } } } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * Look for the "purge-job" attribute... */ if ((attr = ippFindAttribute(con->request, "purge-job", IPP_TAG_BOOLEAN)) != NULL) purge = attr->values[0].boolean ? CUPSD_JOB_PURGE : CUPSD_JOB_DEFAULT; else purge = CUPSD_JOB_DEFAULT; /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * See if the job is already completed, canceled, or aborted; if so, * we can't cancel... */ if (job->state_value >= IPP_JOB_CANCELED && purge != CUPSD_JOB_PURGE) { switch (job->state_value) { case IPP_JOB_CANCELED : send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is already canceled - can\'t cancel."), jobid); break; case IPP_JOB_ABORTED : send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is already aborted - can\'t cancel."), jobid); break; default : send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is already completed - can\'t cancel."), jobid); break; } return; } /* * Cancel the job and return... */ cupsdSetJobState(job, IPP_JOB_CANCELED, purge, purge == CUPSD_JOB_PURGE ? "Job purged by \"%s\"" : "Job canceled by \"%s\"", username); cupsdCheckJobs(); if (purge == CUPSD_JOB_PURGE) cupsdLogMessage(CUPSD_LOG_INFO, "[Job %d] Purged by \"%s\".", jobid, username); else cupsdLogMessage(CUPSD_LOG_INFO, "[Job %d] Canceled by \"%s\".", jobid, username); con->response->request.status.status_code = IPP_OK; } /* * 'cancel_subscription()' - Cancel a subscription. */ static void cancel_subscription( cupsd_client_t *con, /* I - Client connection */ int sub_id) /* I - Subscription ID */ { http_status_t status; /* Policy status */ cupsd_subscription_t *sub; /* Subscription */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cancel_subscription(con=%p[%d], sub_id=%d)", con, con->number, sub_id); /* * Is the subscription ID valid? */ if ((sub = cupsdFindSubscription(sub_id)) == NULL) { /* * Bad subscription ID... */ send_ipp_status(con, IPP_NOT_FOUND, _("Subscription #%d does not exist."), sub_id); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(sub->dest ? sub->dest->op_policy_ptr : DefaultPolicyPtr, con, sub->owner)) != HTTP_OK) { send_http_error(con, status, sub->dest); return; } /* * Cancel the subscription... */ cupsdDeleteSubscription(sub, 1); con->response->request.status.status_code = IPP_OK; } /* * 'check_rss_recipient()' - Check that we do not have a duplicate RSS feed URI. */ static int /* O - 1 if OK, 0 if not */ check_rss_recipient( const char *recipient) /* I - Recipient URI */ { cupsd_subscription_t *sub; /* Current subscription */ for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions); sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if (sub->recipient) { /* * Compare the URIs up to the first ?... */ const char *r1, *r2; for (r1 = recipient, r2 = sub->recipient; *r1 == *r2 && *r1 && *r1 != '?' && *r2 && *r2 != '?'; r1 ++, r2 ++); if (*r1 == *r2) return (0); } return (1); } /* * 'check_quotas()' - Check quotas for a printer and user. */ static int /* O - 1 if OK, 0 if forbidden, -1 if limit reached */ check_quotas(cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *p) /* I - Printer or class */ { char username[33], /* Username */ *name; /* Current user name */ cupsd_quota_t *q; /* Quota data */ #ifdef HAVE_MBR_UID_TO_UUID /* * Use Apple membership APIs which require that all names represent * valid user account or group records accessible by the server. */ uuid_t usr_uuid; /* UUID for job requesting user */ uuid_t usr2_uuid; /* UUID for ACL user name entry */ uuid_t grp_uuid; /* UUID for ACL group name entry */ int mbr_err; /* Error from membership function */ int is_member; /* Is this user a member? */ #else /* * Use standard POSIX APIs for checking users and groups... */ struct passwd *pw; /* User password data */ #endif /* HAVE_MBR_UID_TO_UUID */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "check_quotas(%p[%d], %p[%s])", con, con->number, p, p->name); /* * Figure out who is printing... */ strlcpy(username, get_username(con), sizeof(username)); if ((name = strchr(username, '@')) != NULL) *name = '\0'; /* Strip @REALM */ /* * Check global active job limits for printers and users... */ if (MaxJobsPerPrinter) { /* * Check if there are too many pending jobs on this printer... */ if (cupsdGetPrinterJobCount(p->name) >= MaxJobsPerPrinter) { cupsdLogMessage(CUPSD_LOG_INFO, "Too many jobs for printer \"%s\"...", p->name); return (-1); } } if (MaxJobsPerUser) { /* * Check if there are too many pending jobs for this user... */ if (cupsdGetUserJobCount(username) >= MaxJobsPerUser) { cupsdLogMessage(CUPSD_LOG_INFO, "Too many jobs for user \"%s\"...", username); return (-1); } } /* * Check against users... */ if (cupsArrayCount(p->users) == 0 && p->k_limit == 0 && p->page_limit == 0) return (1); if (cupsArrayCount(p->users)) { #ifdef HAVE_MBR_UID_TO_UUID /* * Get UUID for job requesting user... */ if (mbr_user_name_to_uuid((char *)username, usr_uuid)) { /* * Unknown user... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "check_quotas: UUID lookup failed for user \"%s\"", username); cupsdLogMessage(CUPSD_LOG_INFO, "Denying user \"%s\" access to printer \"%s\" " "(unknown user)...", username, p->name); return (0); } #else /* * Get UID and GID of requesting user... */ pw = getpwnam(username); endpwent(); #endif /* HAVE_MBR_UID_TO_UUID */ for (name = (char *)cupsArrayFirst(p->users); name; name = (char *)cupsArrayNext(p->users)) if (name[0] == '@') { /* * Check group membership... */ #ifdef HAVE_MBR_UID_TO_UUID if (name[1] == '#') { if (uuid_parse(name + 2, grp_uuid)) uuid_clear(grp_uuid); } else if ((mbr_err = mbr_group_name_to_uuid(name + 1, grp_uuid)) != 0) { /* * Invalid ACL entries are ignored for matching; just record a * warning in the log... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "check_quotas: UUID lookup failed for ACL entry " "\"%s\" (err=%d)", name, mbr_err); cupsdLogMessage(CUPSD_LOG_WARN, "Access control entry \"%s\" not a valid group name; " "entry ignored", name); } if ((mbr_err = mbr_check_membership(usr_uuid, grp_uuid, &is_member)) != 0) { /* * At this point, there should be no errors, but check anyways... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "check_quotas: group \"%s\" membership check " "failed (err=%d)", name + 1, mbr_err); is_member = 0; } /* * Stop if we found a match... */ if (is_member) break; #else if (cupsdCheckGroup(username, pw, name + 1)) break; #endif /* HAVE_MBR_UID_TO_UUID */ } #ifdef HAVE_MBR_UID_TO_UUID else { if (name[0] == '#') { if (uuid_parse(name + 1, usr2_uuid)) uuid_clear(usr2_uuid); } else if ((mbr_err = mbr_user_name_to_uuid(name, usr2_uuid)) != 0) { /* * Invalid ACL entries are ignored for matching; just record a * warning in the log... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "check_quotas: UUID lookup failed for ACL entry " "\"%s\" (err=%d)", name, mbr_err); cupsdLogMessage(CUPSD_LOG_WARN, "Access control entry \"%s\" not a valid user name; " "entry ignored", name); } if (!uuid_compare(usr_uuid, usr2_uuid)) break; } #else else if (!_cups_strcasecmp(username, name)) break; #endif /* HAVE_MBR_UID_TO_UUID */ if ((name != NULL) == p->deny_users) { cupsdLogMessage(CUPSD_LOG_INFO, "Denying user \"%s\" access to printer \"%s\"...", username, p->name); return (0); } } /* * Check quotas... */ if (p->k_limit || p->page_limit) { if ((q = cupsdUpdateQuota(p, username, 0, 0)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate quota data for user \"%s\"", username); return (-1); } if ((q->k_count >= p->k_limit && p->k_limit) || (q->page_count >= p->page_limit && p->page_limit)) { cupsdLogMessage(CUPSD_LOG_INFO, "User \"%s\" is over the quota limit...", username); return (-1); } } /* * If we have gotten this far, we're done! */ return (1); } /* * 'close_job()' - Close a multi-file job. */ static void close_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { cupsd_job_t *job; /* Job */ ipp_attribute_t *attr; /* Attribute */ char job_uri[HTTP_MAX_URI], /* Job URI */ username[256]; /* User name */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "close_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (strcmp(uri->name, "printer-uri")) { /* * job-uri is not supported by Close-Job! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Close-Job doesn't support the job-uri attribute.")); return; } /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } if ((job = cupsdFindJob(attr->values[0].integer)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), attr->values[0].integer); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * Add any ending sheet... */ if (cupsdTimeoutJob(job)) return; if (job->state_value == IPP_JOB_STOPPED) { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; } else if (job->state_value == IPP_JOB_HELD) { if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (!attr || !strcmp(attr->values[0].string.text, "no-hold")) { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; } } job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); /* * Fill in the response info... */ httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, con->clientname, con->clientport, "/jobs/%d", job->id); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-uri", NULL, job_uri); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", (int)job->state_value); con->response->request.status.status_code = IPP_OK; /* * Start the job if necessary... */ cupsdCheckJobs(); } /* * 'copy_attrs()' - Copy attributes from one request to another. */ static void copy_attrs(ipp_t *to, /* I - Destination request */ ipp_t *from, /* I - Source request */ cups_array_t *ra, /* I - Requested attributes */ ipp_tag_t group, /* I - Group to copy */ int quickcopy, /* I - Do a quick copy? */ cups_array_t *exclude) /* I - Attributes to exclude? */ { ipp_attribute_t *fromattr; /* Source attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_attrs(to=%p, from=%p, ra=%p, group=%x, quickcopy=%d)", to, from, ra, group, quickcopy); if (!to || !from) return; for (fromattr = from->attrs; fromattr; fromattr = fromattr->next) { /* * Filter attributes as needed... */ if ((group != IPP_TAG_ZERO && fromattr->group_tag != group && fromattr->group_tag != IPP_TAG_ZERO) || !fromattr->name) continue; if (!strcmp(fromattr->name, "document-password") || !strcmp(fromattr->name, "job-authorization-uri") || !strcmp(fromattr->name, "job-password") || !strcmp(fromattr->name, "job-password-encryption") || !strcmp(fromattr->name, "job-printer-uri")) continue; if (exclude && (cupsArrayFind(exclude, fromattr->name) || cupsArrayFind(exclude, "all"))) { /* * We need to exclude this attribute for security reasons; we require the * job-id attribute regardless of the security settings for IPP * conformance. * * The job-printer-uri attribute is handled by copy_job_attrs(). * * Subscription attribute security is handled by copy_subscription_attrs(). */ if (strcmp(fromattr->name, "job-id")) continue; } if (!ra || cupsArrayFind(ra, fromattr->name)) { /* * Don't send collection attributes by default to IPP/1.x clients * since many do not support collections. Also don't send * media-col-database unless specifically requested by the client. */ if (fromattr->value_tag == IPP_TAG_BEGIN_COLLECTION && !ra && (to->request.status.version[0] == 1 || !strcmp(fromattr->name, "media-col-database"))) continue; ippCopyAttribute(to, fromattr, quickcopy); } } } /* * 'copy_banner()' - Copy a banner file to the requests directory for the * specified job. */ static int /* O - Size of banner file in kbytes */ copy_banner(cupsd_client_t *con, /* I - Client connection */ cupsd_job_t *job, /* I - Job information */ const char *name) /* I - Name of banner */ { int i; /* Looping var */ int kbytes; /* Size of banner file in kbytes */ char filename[1024]; /* Job filename */ cupsd_banner_t *banner; /* Pointer to banner */ cups_file_t *in; /* Input file */ cups_file_t *out; /* Output file */ int ch; /* Character from file */ char attrname[255], /* Name of attribute */ *s; /* Pointer into name */ ipp_attribute_t *attr; /* Attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_banner(con=%p[%d], job=%p[%d], name=\"%s\")", con, con ? con->number : -1, job, job->id, name ? name : "(null)"); /* * Find the banner; return if not found or "none"... */ if (!name || !strcmp(name, "none") || (banner = cupsdFindBanner(name)) == NULL) return (0); /* * Open the banner and job files... */ if (add_file(con, job, banner->filetype, 0)) return (-1); snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->num_files); if ((out = cupsFileOpen(filename, "w")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create banner job file %s - %s", filename, strerror(errno)); job->num_files --; return (0); } fchmod(cupsFileNumber(out), 0640); fchown(cupsFileNumber(out), RunUser, Group); /* * Try the localized banner file under the subdirectory... */ strlcpy(attrname, job->attrs->attrs->next->values[0].string.text, sizeof(attrname)); if (strlen(attrname) > 2 && attrname[2] == '-') { /* * Convert ll-cc to ll_CC... */ attrname[2] = '_'; attrname[3] = (char)toupper(attrname[3] & 255); attrname[4] = (char)toupper(attrname[4] & 255); } snprintf(filename, sizeof(filename), "%s/banners/%s/%s", DataDir, attrname, name); if (access(filename, 0) && strlen(attrname) > 2) { /* * Wasn't able to find "ll_CC" locale file; try the non-national * localization banner directory. */ attrname[2] = '\0'; snprintf(filename, sizeof(filename), "%s/banners/%s/%s", DataDir, attrname, name); } if (access(filename, 0)) { /* * Use the non-localized banner file. */ snprintf(filename, sizeof(filename), "%s/banners/%s", DataDir, name); } if ((in = cupsFileOpen(filename, "r")) == NULL) { cupsFileClose(out); unlink(filename); cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open banner template file %s - %s", filename, strerror(errno)); job->num_files --; return (0); } /* * Parse the file to the end... */ while ((ch = cupsFileGetChar(in)) != EOF) if (ch == '{') { /* * Get an attribute name... */ for (s = attrname; (ch = cupsFileGetChar(in)) != EOF;) if (!isalpha(ch & 255) && ch != '-' && ch != '?') break; else if (s < (attrname + sizeof(attrname) - 1)) *s++ = (char)ch; else break; *s = '\0'; if (ch != '}') { /* * Ignore { followed by stuff that is not an attribute name... */ cupsFilePrintf(out, "{%s%c", attrname, ch); continue; } /* * See if it is defined... */ if (attrname[0] == '?') s = attrname + 1; else s = attrname; if (!strcmp(s, "printer-name")) { cupsFilePuts(out, job->dest); continue; } else if ((attr = ippFindAttribute(job->attrs, s, IPP_TAG_ZERO)) == NULL) { /* * See if we have a leading question mark... */ if (attrname[0] != '?') { /* * Nope, write to file as-is; probably a PostScript procedure... */ cupsFilePrintf(out, "{%s}", attrname); } continue; } /* * Output value(s)... */ for (i = 0; i < attr->num_values; i ++) { if (i) cupsFilePutChar(out, ','); switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : if (!strncmp(s, "time-at-", 8)) { struct timeval tv; /* Time value */ tv.tv_sec = attr->values[i].integer; tv.tv_usec = 0; cupsFilePuts(out, cupsdGetDateTime(&tv, CUPSD_TIME_STANDARD)); } else cupsFilePrintf(out, "%d", attr->values[i].integer); break; case IPP_TAG_BOOLEAN : cupsFilePrintf(out, "%d", attr->values[i].boolean); break; case IPP_TAG_NOVALUE : cupsFilePuts(out, "novalue"); break; case IPP_TAG_RANGE : cupsFilePrintf(out, "%d-%d", attr->values[i].range.lower, attr->values[i].range.upper); break; case IPP_TAG_RESOLUTION : cupsFilePrintf(out, "%dx%d%s", attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); break; case IPP_TAG_URI : case IPP_TAG_STRING : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : if (!_cups_strcasecmp(banner->filetype->type, "postscript")) { /* * Need to quote strings for PS banners... */ const char *p; for (p = attr->values[i].string.text; *p; p ++) { if (*p == '(' || *p == ')' || *p == '\\') { cupsFilePutChar(out, '\\'); cupsFilePutChar(out, *p); } else if (*p < 32 || *p > 126) cupsFilePrintf(out, "\\%03o", *p & 255); else cupsFilePutChar(out, *p); } } else cupsFilePuts(out, attr->values[i].string.text); break; default : break; /* anti-compiler-warning-code */ } } } else if (ch == '\\') /* Quoted char */ { ch = cupsFileGetChar(in); if (ch != '{') /* Only do special handling for \{ */ cupsFilePutChar(out, '\\'); cupsFilePutChar(out, ch); } else cupsFilePutChar(out, ch); cupsFileClose(in); kbytes = (cupsFileTell(out) + 1023) / 1024; job->koctets += kbytes; if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) attr->values[0].integer += kbytes; cupsFileClose(out); return (kbytes); } /* * 'copy_file()' - Copy a PPD file... */ static int /* O - 0 = success, -1 = error */ copy_file(const char *from, /* I - Source file */ const char *to, /* I - Destination file */ mode_t mode) /* I - Permissions */ { cups_file_t *src, /* Source file */ *dst; /* Destination file */ int bytes; /* Bytes to read/write */ char buffer[2048]; /* Copy buffer */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_file(\"%s\", \"%s\")", from, to); /* * Open the source and destination file for a copy... */ if ((src = cupsFileOpen(from, "rb")) == NULL) return (-1); if ((dst = cupsdCreateConfFile(to, mode)) == NULL) { cupsFileClose(src); return (-1); } /* * Copy the source file to the destination... */ while ((bytes = cupsFileRead(src, buffer, sizeof(buffer))) > 0) if (cupsFileWrite(dst, buffer, (size_t)bytes) < bytes) { cupsFileClose(src); cupsFileClose(dst); return (-1); } /* * Close both files and return... */ cupsFileClose(src); return (cupsdCloseCreatedConfFile(dst, to)); } /* * 'copy_model()' - Copy a PPD model file, substituting default values * as needed... */ static int /* O - 0 = success, -1 = error */ copy_model(cupsd_client_t *con, /* I - Client connection */ const char *from, /* I - Source file */ const char *to) /* I - Destination file */ { fd_set input; /* select() input set */ struct timeval timeout; /* select() timeout */ int maxfd; /* Max file descriptor for select() */ char tempfile[1024]; /* Temporary PPD file */ int tempfd; /* Temporary PPD file descriptor */ int temppid; /* Process ID of cups-driverd */ int temppipe[2]; /* Temporary pipes */ char *argv[4], /* Command-line arguments */ *envp[MAX_ENV]; /* Environment */ cups_file_t *src, /* Source file */ *dst; /* Destination file */ ppd_file_t *ppd; /* PPD file */ int bytes, /* Bytes from pipe */ total; /* Total bytes from pipe */ char buffer[2048]; /* Copy buffer */ int i; /* Looping var */ char option[PPD_MAX_NAME], /* Option name */ choice[PPD_MAX_NAME]; /* Choice name */ ppd_size_t *size; /* Default size */ int num_defaults; /* Number of default options */ cups_option_t *defaults; /* Default options */ char cups_protocol[PPD_MAX_LINE]; /* cupsProtocol attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_model(con=%p, from=\"%s\", to=\"%s\")", con, from, to); /* * Run cups-driverd to get the PPD file... */ argv[0] = "cups-driverd"; argv[1] = "cat"; argv[2] = (char *)from; argv[3] = NULL; cupsdLoadEnv(envp, (int)(sizeof(envp) / sizeof(envp[0]))); snprintf(buffer, sizeof(buffer), "%s/daemon/cups-driverd", ServerBin); snprintf(tempfile, sizeof(tempfile), "%s/%d.ppd", TempDir, con->number); if ((tempfd = open(tempfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0) return (-1); if (cupsdOpenPipe(temppipe)) { close(tempfd); unlink(tempfile); return (-1); } cupsdLogMessage(CUPSD_LOG_DEBUG, "copy_model: Running \"cups-driverd cat %s\"...", from); if (!cupsdStartProcess(buffer, argv, envp, -1, temppipe[1], CGIPipes[1], -1, -1, 0, DefaultProfile, NULL, &temppid)) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to run cups-driverd: %s"), strerror(errno)); close(tempfd); unlink(tempfile); return (-1); } close(temppipe[1]); /* * Wait up to 30 seconds for the PPD file to be copied... */ total = 0; if (temppipe[0] > CGIPipes[0]) maxfd = temppipe[0] + 1; else maxfd = CGIPipes[0] + 1; for (;;) { /* * See if we have data ready... */ FD_ZERO(&input); FD_SET(temppipe[0], &input); FD_SET(CGIPipes[0], &input); timeout.tv_sec = 30; timeout.tv_usec = 0; if ((i = select(maxfd, &input, NULL, NULL, &timeout)) < 0) { if (errno == EINTR) continue; else break; } else if (i == 0) { /* * We have timed out... */ break; } if (FD_ISSET(temppipe[0], &input)) { /* * Read the PPD file from the pipe, and write it to the PPD file. */ if ((bytes = read(temppipe[0], buffer, sizeof(buffer))) > 0) { if (write(tempfd, buffer, (size_t)bytes) < bytes) break; total += bytes; } else break; } if (FD_ISSET(CGIPipes[0], &input)) cupsdUpdateCGI(); } close(temppipe[0]); close(tempfd); if (!total) { /* * No data from cups-deviced... */ cupsdLogMessage(CUPSD_LOG_ERROR, "copy_model: empty PPD file"); send_ipp_status(con, IPP_INTERNAL_ERROR, _("cups-driverd failed to get PPD file - see error_log for details.")); unlink(tempfile); return (-1); } /* * Open the source file for a copy... */ if ((src = cupsFileOpen(tempfile, "rb")) == NULL) { unlink(tempfile); return (-1); } /* * Read the source file and see what page sizes are supported... */ if ((ppd = _ppdOpen(src, _PPD_LOCALIZATION_NONE)) == NULL) { cupsFileClose(src); unlink(tempfile); return (-1); } /* * Open the destination (if possible) and set the default options... */ num_defaults = 0; defaults = NULL; cups_protocol[0] = '\0'; if ((dst = cupsFileOpen(to, "rb")) != NULL) { /* * Read all of the default lines from the old PPD... */ while (cupsFileGets(dst, buffer, sizeof(buffer))) if (!strncmp(buffer, "*Default", 8)) { /* * Add the default option... */ if (!ppd_parse_line(buffer, option, sizeof(option), choice, sizeof(choice))) { ppd_option_t *ppdo; /* PPD option */ /* * Only add the default if the default hasn't already been * set and the choice exists in the new PPD... */ if (!cupsGetOption(option, num_defaults, defaults) && (ppdo = ppdFindOption(ppd, option)) != NULL && ppdFindChoice(ppdo, choice)) num_defaults = cupsAddOption(option, choice, num_defaults, &defaults); } } else if (!strncmp(buffer, "*cupsProtocol:", 14)) strlcpy(cups_protocol, buffer, sizeof(cups_protocol)); cupsFileClose(dst); } else if ((size = ppdPageSize(ppd, DefaultPaperSize)) != NULL) { /* * Add the default media sizes... */ num_defaults = cupsAddOption("PageSize", size->name, num_defaults, &defaults); num_defaults = cupsAddOption("PageRegion", size->name, num_defaults, &defaults); num_defaults = cupsAddOption("PaperDimension", size->name, num_defaults, &defaults); num_defaults = cupsAddOption("ImageableArea", size->name, num_defaults, &defaults); } ppdClose(ppd); /* * Open the destination file for a copy... */ if ((dst = cupsdCreateConfFile(to, ConfigFilePerm)) == NULL) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to save PPD file: %s"), strerror(errno)); cupsFreeOptions(num_defaults, defaults); cupsFileClose(src); unlink(tempfile); return (-1); } /* * Copy the source file to the destination... */ cupsFileRewind(src); while (cupsFileGets(src, buffer, sizeof(buffer))) { if (!strncmp(buffer, "*Default", 8)) { /* * Check for an previous default option choice... */ if (!ppd_parse_line(buffer, option, sizeof(option), choice, sizeof(choice))) { const char *val; /* Default option value */ if ((val = cupsGetOption(option, num_defaults, defaults)) != NULL) { /* * Substitute the previous choice... */ snprintf(buffer, sizeof(buffer), "*Default%s: %s", option, val); } } } cupsFilePrintf(dst, "%s\n", buffer); } if (cups_protocol[0]) cupsFilePrintf(dst, "%s\n", cups_protocol); cupsFreeOptions(num_defaults, defaults); /* * Close both files and return... */ cupsFileClose(src); unlink(tempfile); if (cupsdCloseCreatedConfFile(dst, to)) { send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to commit PPD file: %s"), strerror(errno)); return (-1); } else { return (0); } } /* * 'copy_job_attrs()' - Copy job attributes. */ static void copy_job_attrs(cupsd_client_t *con, /* I - Client connection */ cupsd_job_t *job, /* I - Job */ cups_array_t *ra, /* I - Requested attributes array */ cups_array_t *exclude) /* I - Private attributes array */ { char job_uri[HTTP_MAX_URI]; /* Job URI */ /* * Send the requested attributes for each job... */ if (!cupsArrayFind(exclude, "all")) { if ((!exclude || !cupsArrayFind(exclude, "number-of-documents")) && (!ra || cupsArrayFind(ra, "number-of-documents"))) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "number-of-documents", job->num_files); if ((!exclude || !cupsArrayFind(exclude, "job-media-progress")) && (!ra || cupsArrayFind(ra, "job-media-progress"))) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-media-progress", job->progress); if ((!exclude || !cupsArrayFind(exclude, "job-more-info")) && (!ra || cupsArrayFind(ra, "job-more-info"))) { httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "http", NULL, con->clientname, con->clientport, "/jobs/%d", job->id); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-more-info", NULL, job_uri); } if (job->state_value > IPP_JOB_PROCESSING && (!exclude || !cupsArrayFind(exclude, "job-preserved")) && (!ra || cupsArrayFind(ra, "job-preserved"))) ippAddBoolean(con->response, IPP_TAG_JOB, "job-preserved", job->num_files > 0); if ((!exclude || !cupsArrayFind(exclude, "job-printer-up-time")) && (!ra || cupsArrayFind(ra, "job-printer-up-time"))) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-printer-up-time", time(NULL)); } if (!ra || cupsArrayFind(ra, "job-printer-uri")) { httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, con->clientname, con->clientport, (job->dtype & CUPS_PRINTER_CLASS) ? "/classes/%s" : "/printers/%s", job->dest); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri", NULL, job_uri); } if (!ra || cupsArrayFind(ra, "job-uri")) { httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, con->clientname, con->clientport, "/jobs/%d", job->id); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-uri", NULL, job_uri); } if (job->attrs) { copy_attrs(con->response, job->attrs, ra, IPP_TAG_JOB, 0, exclude); } else { /* * Generate attributes from the job structure... */ if (job->completed_time && (!ra || cupsArrayFind(ra, "date-time-at-completed"))) ippAddDate(con->response, IPP_TAG_JOB, "date-time-at-completed", ippTimeToDate(job->completed_time)); if (job->creation_time && (!ra || cupsArrayFind(ra, "date-time-at-creation"))) ippAddDate(con->response, IPP_TAG_JOB, "date-time-at-creation", ippTimeToDate(job->creation_time)); if (!ra || cupsArrayFind(ra, "job-id")) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id); if (!ra || cupsArrayFind(ra, "job-k-octets")) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-k-octets", job->koctets); if (job->name && (!ra || cupsArrayFind(ra, "job-name"))) ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_NAME, "job-name", NULL, job->name); if (job->username && (!ra || cupsArrayFind(ra, "job-originating-user-name"))) ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_NAME, "job-originating-user-name", NULL, job->username); if (!ra || cupsArrayFind(ra, "job-state")) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", (int)job->state_value); if (!ra || cupsArrayFind(ra, "job-state-reasons")) { switch (job->state_value) { default : /* Should never get here for processing, pending, held, or stopped jobs since they don't get unloaded... */ break; case IPP_JSTATE_ABORTED : ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-aborted-by-system"); break; case IPP_JSTATE_CANCELED : ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-canceled-by-user"); break; case IPP_JSTATE_COMPLETED : ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, "job-completed-successfully"); break; } } if (job->completed_time && (!ra || cupsArrayFind(ra, "time-at-completed"))) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "time-at-completed", (int)job->completed_time); if (job->creation_time && (!ra || cupsArrayFind(ra, "time-at-creation"))) ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "time-at-creation", (int)job->creation_time); } } /* * 'copy_printer_attrs()' - Copy printer attributes. */ static void copy_printer_attrs( cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *printer, /* I - Printer */ cups_array_t *ra) /* I - Requested attributes array */ { char uri[HTTP_MAX_URI]; /* URI value */ time_t curtime; /* Current time */ int i; /* Looping var */ int is_encrypted = httpIsEncrypted(con->http); /* Is the connection encrypted? */ /* * Copy the printer attributes to the response using requested-attributes * and document-format attributes that may be provided by the client. */ _cupsRWLockRead(&printer->lock); curtime = time(NULL); if (!ra || cupsArrayFind(ra, "marker-change-time")) ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "marker-change-time", printer->marker_time); if (printer->num_printers > 0 && (!ra || cupsArrayFind(ra, "member-uris"))) { ipp_attribute_t *member_uris; /* member-uris attribute */ cupsd_printer_t *p2; /* Printer in class */ ipp_attribute_t *p2_uri; /* printer-uri-supported for class printer */ if ((member_uris = ippAddStrings(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", printer->num_printers, NULL, NULL)) != NULL) { for (i = 0; i < printer->num_printers; i ++) { p2 = printer->printers[i]; if ((p2_uri = ippFindAttribute(p2->attrs, "printer-uri-supported", IPP_TAG_URI)) != NULL) { member_uris->values[i].string.text = _cupsStrAlloc(p2_uri->values[0].string.text); } else { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), is_encrypted ? "ipps" : "ipp", NULL, con->clientname, con->clientport, (p2->type & CUPS_PRINTER_CLASS) ? "/classes/%s" : "/printers/%s", p2->name); member_uris->values[i].string.text = _cupsStrAlloc(uri); } } } } if (printer->alert && (!ra || cupsArrayFind(ra, "printer-alert"))) ippAddOctetString(con->response, IPP_TAG_PRINTER, "printer-alert", printer->alert, (int)strlen(printer->alert)); if (printer->alert_description && (!ra || cupsArrayFind(ra, "printer-alert-description"))) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-alert-description", NULL, printer->alert_description); if (!ra || cupsArrayFind(ra, "printer-config-change-date-time")) ippAddDate(con->response, IPP_TAG_PRINTER, "printer-config-change-date-time", ippTimeToDate(printer->config_time)); if (!ra || cupsArrayFind(ra, "printer-config-change-time")) ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-config-change-time", printer->config_time); if (!ra || cupsArrayFind(ra, "printer-current-time")) ippAddDate(con->response, IPP_TAG_PRINTER, "printer-current-time", ippTimeToDate(curtime)); #ifdef HAVE_DNSSD if (!ra || cupsArrayFind(ra, "printer-dns-sd-name")) { if (printer->reg_name) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-dns-sd-name", NULL, printer->reg_name); else ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_NOVALUE, "printer-dns-sd-name", 0); } #endif /* HAVE_DNSSD */ if (!ra || cupsArrayFind(ra, "printer-error-policy")) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-error-policy", NULL, printer->error_policy); if (!ra || cupsArrayFind(ra, "printer-error-policy-supported")) { static const char * const errors[] =/* printer-error-policy-supported values */ { "abort-job", "retry-current-job", "retry-job", "stop-printer" }; if (printer->type & CUPS_PRINTER_CLASS) ippAddString(con->response, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "printer-error-policy-supported", NULL, "retry-current-job"); else ippAddStrings(con->response, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "printer-error-policy-supported", sizeof(errors) / sizeof(errors[0]), NULL, errors); } if (!ra || cupsArrayFind(ra, "printer-icons")) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), is_encrypted ? "https" : "http", NULL, con->clientname, con->clientport, "/icons/%s.png", printer->name); ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-icons", NULL, uri); cupsdLogMessage(CUPSD_LOG_DEBUG2, "printer-icons=\"%s\"", uri); } if (!ra || cupsArrayFind(ra, "printer-is-accepting-jobs")) ippAddBoolean(con->response, IPP_TAG_PRINTER, "printer-is-accepting-jobs", (char)printer->accepting); if (!ra || cupsArrayFind(ra, "printer-is-shared")) ippAddBoolean(con->response, IPP_TAG_PRINTER, "printer-is-shared", (char)printer->shared); if (!ra || cupsArrayFind(ra, "printer-is-temporary")) ippAddBoolean(con->response, IPP_TAG_PRINTER, "printer-is-temporary", (char)printer->temporary); if (!ra || cupsArrayFind(ra, "printer-more-info")) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), is_encrypted ? "https" : "http", NULL, con->clientname, con->clientport, (printer->type & CUPS_PRINTER_CLASS) ? "/classes/%s" : "/printers/%s", printer->name); ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-more-info", NULL, uri); } if (!ra || cupsArrayFind(ra, "printer-op-policy")) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-op-policy", NULL, printer->op_policy); if (!ra || cupsArrayFind(ra, "printer-state")) ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", (int)printer->state); if (!ra || cupsArrayFind(ra, "printer-state-change-date-time")) ippAddDate(con->response, IPP_TAG_PRINTER, "printer-state-change-date-time", ippTimeToDate(printer->state_time)); if (!ra || cupsArrayFind(ra, "printer-state-change-time")) ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-state-change-time", printer->state_time); if (!ra || cupsArrayFind(ra, "printer-state-message")) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-state-message", NULL, printer->state_message); if (!ra || cupsArrayFind(ra, "printer-state-reasons")) add_printer_state_reasons(con, printer); if (!ra || cupsArrayFind(ra, "printer-strings-uri")) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), is_encrypted ? "https" : "http", NULL, con->clientname, con->clientport, "/strings/%s.strings", printer->name); ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-strings-uri", NULL, uri); cupsdLogMessage(CUPSD_LOG_DEBUG2, "printer-strings-uri=\"%s\"", uri); } if (!ra || cupsArrayFind(ra, "printer-type")) { cups_ptype_t type; /* printer-type value */ /* * Add the CUPS-specific printer-type attribute... */ type = printer->type; if (printer == DefaultPrinter) type |= CUPS_PRINTER_DEFAULT; if (!printer->accepting) type |= CUPS_PRINTER_REJECTING; if (!printer->shared) type |= CUPS_PRINTER_NOT_SHARED; ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-type", (int)type); } if (!ra || cupsArrayFind(ra, "printer-up-time")) ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_INTEGER, "printer-up-time", curtime); if (!ra || cupsArrayFind(ra, "printer-uri-supported")) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), is_encrypted ? "ipps" : "ipp", NULL, con->clientname, con->clientport, (printer->type & CUPS_PRINTER_CLASS) ? "/classes/%s" : "/printers/%s", printer->name); ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-uri-supported", NULL, uri); cupsdLogMessage(CUPSD_LOG_DEBUG2, "printer-uri-supported=\"%s\"", uri); } if (!ra || cupsArrayFind(ra, "queued-job-count")) add_queued_job_count(con, printer); if (!ra || cupsArrayFind(ra, "uri-security-supported")) ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "uri-security-supported", NULL, is_encrypted ? "tls" : "none"); copy_attrs(con->response, printer->attrs, ra, IPP_TAG_ZERO, 0, NULL); if (printer->ppd_attrs) copy_attrs(con->response, printer->ppd_attrs, ra, IPP_TAG_ZERO, 0, NULL); copy_attrs(con->response, CommonData, ra, IPP_TAG_ZERO, IPP_TAG_COPY, NULL); _cupsRWUnlock(&printer->lock); } /* * 'copy_subscription_attrs()' - Copy subscription attributes. */ static void copy_subscription_attrs( cupsd_client_t *con, /* I - Client connection */ cupsd_subscription_t *sub, /* I - Subscription */ cups_array_t *ra, /* I - Requested attributes array */ cups_array_t *exclude) /* I - Private attributes array */ { ipp_attribute_t *attr; /* Current attribute */ char printer_uri[HTTP_MAX_URI]; /* Printer URI */ int count; /* Number of events */ unsigned mask; /* Current event mask */ const char *name; /* Current event name */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_subscription_attrs(con=%p, sub=%p, ra=%p, exclude=%p)", con, sub, ra, exclude); /* * Copy the subscription attributes to the response using the * requested-attributes attribute that may be provided by the client. */ if (!exclude || !cupsArrayFind(exclude, "all")) { if ((!exclude || !cupsArrayFind(exclude, "notify-events")) && (!ra || cupsArrayFind(ra, "notify-events"))) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "copy_subscription_attrs: notify-events"); if ((name = cupsdEventName((cupsd_eventmask_t)sub->mask)) != NULL) { /* * Simple event list... */ ippAddString(con->response, IPP_TAG_SUBSCRIPTION, IPP_CONST_TAG(IPP_TAG_KEYWORD), "notify-events", NULL, name); } else { /* * Complex event list... */ for (mask = 1, count = 0; mask < CUPSD_EVENT_ALL; mask <<= 1) if (sub->mask & mask) count ++; attr = ippAddStrings(con->response, IPP_TAG_SUBSCRIPTION, IPP_CONST_TAG(IPP_TAG_KEYWORD), "notify-events", count, NULL, NULL); for (mask = 1, count = 0; mask < CUPSD_EVENT_ALL; mask <<= 1) if (sub->mask & mask) { attr->values[count].string.text = (char *)cupsdEventName((cupsd_eventmask_t)mask); count ++; } } } if ((!exclude || !cupsArrayFind(exclude, "notify-lease-duration")) && (!sub->job && (!ra || cupsArrayFind(ra, "notify-lease-duration")))) ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-lease-duration", sub->lease); if ((!exclude || !cupsArrayFind(exclude, "notify-recipient-uri")) && (sub->recipient && (!ra || cupsArrayFind(ra, "notify-recipient-uri")))) ippAddString(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_URI, "notify-recipient-uri", NULL, sub->recipient); else if ((!exclude || !cupsArrayFind(exclude, "notify-pull-method")) && (!ra || cupsArrayFind(ra, "notify-pull-method"))) ippAddString(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_KEYWORD, "notify-pull-method", NULL, "ippget"); if ((!exclude || !cupsArrayFind(exclude, "notify-subscriber-user-name")) && (!ra || cupsArrayFind(ra, "notify-subscriber-user-name"))) ippAddString(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_NAME, "notify-subscriber-user-name", NULL, sub->owner); if ((!exclude || !cupsArrayFind(exclude, "notify-time-interval")) && (!ra || cupsArrayFind(ra, "notify-time-interval"))) ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-time-interval", sub->interval); if (sub->user_data_len > 0 && (!exclude || !cupsArrayFind(exclude, "notify-user-data")) && (!ra || cupsArrayFind(ra, "notify-user-data"))) ippAddOctetString(con->response, IPP_TAG_SUBSCRIPTION, "notify-user-data", sub->user_data, sub->user_data_len); } if (sub->job && (!ra || cupsArrayFind(ra, "notify-job-id"))) ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-job-id", sub->job->id); if (sub->dest && (!ra || cupsArrayFind(ra, "notify-printer-uri"))) { httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri), "ipp", NULL, con->clientname, con->clientport, "/printers/%s", sub->dest->name); ippAddString(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_URI, "notify-printer-uri", NULL, printer_uri); } if (!ra || cupsArrayFind(ra, "notify-subscription-id")) ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-subscription-id", sub->id); } /* * 'create_job()' - Print a file to a printer or class. */ static void create_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { int i; /* Looping var */ cupsd_printer_t *printer; /* Printer */ cupsd_job_t *job; /* New job */ static const char * const forbidden_attrs[] = { /* List of forbidden attributes */ "compression", "document-format", "document-name", "document-natural-language" }; cupsdLogMessage(CUPSD_LOG_DEBUG2, "create_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, NULL, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check for invalid Create-Job attributes and log a warning or error depending * on whether cupsd is running in "strict conformance" mode... */ for (i = 0; i < (int)(sizeof(forbidden_attrs) / sizeof(forbidden_attrs[0])); i ++) if (ippFindAttribute(con->request, forbidden_attrs[i], IPP_TAG_ZERO)) { if (StrictConformance) { send_ipp_status(con, IPP_BAD_REQUEST, _("The '%s' operation attribute cannot be supplied in a " "Create-Job request."), forbidden_attrs[i]); return; } cupsdLogMessage(CUPSD_LOG_WARN, "Unexpected '%s' operation attribute in a Create-Job " "request.", forbidden_attrs[i]); } /* * Create the job object... */ if ((job = add_job(con, printer, NULL)) == NULL) return; job->pending_timeout = 1; /* * Save and log the job... */ cupsdLogJob(job, CUPSD_LOG_INFO, "Queued on \"%s\" by \"%s\".", job->dest, job->username); } /* * 'create_local_bg_thread()' - Background thread for creating a local print queue. */ static void * /* O - Exit status */ create_local_bg_thread( cupsd_printer_t *printer) /* I - Printer */ { cups_file_t *from, /* Source file */ *to; /* Destination file */ char fromppd[1024], /* Source PPD */ toppd[1024], /* Destination PPD */ scheme[32], /* URI scheme */ userpass[256], /* User:pass */ host[256], /* Hostname */ resource[1024], /* Resource path */ uri[1024], /* Resolved URI, if needed */ line[1024]; /* Line from PPD */ int port; /* Port number */ http_encryption_t encryption; /* Type of encryption to use */ http_t *http; /* Connection to printer */ ipp_t *request, /* Request to printer */ *response; /* Response from printer */ ipp_attribute_t *attr; /* Attribute in response */ ipp_status_t status; /* Status code */ static const char * const pattrs[] = /* Printer attributes we need */ { "all", "media-col-database" }; /* * Try connecting to the printer... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: Generating PPD file from \"%s\"...", printer->name, printer->device_uri); if (strstr(printer->device_uri, "._tcp")) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "%s: Resolving mDNS URI \"%s\".", printer->name, printer->device_uri); if (!_httpResolveURI(printer->device_uri, uri, sizeof(uri), _HTTP_RESOLVE_DEFAULT, NULL, NULL)) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: Couldn't resolve mDNS URI \"%s\".", printer->name, printer->device_uri); return (NULL); } cupsdSetString(&printer->device_uri, uri); } if (httpSeparateURI(HTTP_URI_CODING_ALL, printer->device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: Bad device URI \"%s\".", printer->name, printer->device_uri); return (NULL); } if (!strcmp(scheme, "ipps") || port == 443) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = HTTP_ENCRYPTION_IF_REQUESTED; if ((http = httpConnect2(host, port, NULL, AF_UNSPEC, encryption, 1, 30000, NULL)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: Unable to connect to %s:%d: %s", printer->name, host, port, cupsLastErrorString()); return (NULL); } /* * Query the printer for its capabilities... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: Connected to %s:%d, sending Get-Printer-Attributes request...", printer->name, host, port); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 2, 0); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer->device_uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); response = cupsDoRequest(http, request, resource); status = cupsLastError(); cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: Get-Printer-Attributes returned %s (%s)", printer->name, ippErrorString(cupsLastError()), cupsLastErrorString()); if (status == IPP_STATUS_ERROR_BAD_REQUEST || status == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { /* * Try request using IPP/1.1, in case we are talking to an old CUPS server or * printer... */ ippDelete(response); cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: Re-sending Get-Printer-Attributes request using IPP/1.1...", printer->name); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 1, 1); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer->device_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "all"); response = cupsDoRequest(http, request, resource); cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: IPP/1.1 Get-Printer-Attributes returned %s (%s)", printer->name, ippErrorString(cupsLastError()), cupsLastErrorString()); } /* * If we did not succeed to obtain the "media-col-database" attribute * try to get it separately */ if (ippFindAttribute(response, "media-col-database", IPP_TAG_ZERO) == NULL) { ipp_t *response2; cupsdLogMessage(CUPSD_LOG_DEBUG, "Polling \"media-col-database\" attribute separately."); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, 2, 0); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "media-col-database"); response2 = cupsDoRequest(http, request, resource); //ipp_status = cupsLastError(); if (response2) { if ((attr = ippFindAttribute(response2, "media-col-database", IPP_TAG_ZERO)) != NULL) { /* * Copy "media-col-database" attribute into the original * IPP response */ cupsdLogMessage(CUPSD_LOG_DEBUG, "\"media-col-database\" attribute found."); ippCopyAttribute(response, attr, 0); } ippDelete(response2); } } // TODO: Grab printer icon file... httpClose(http); /* * Write the PPD for the queue... */ if (_ppdCreateFromIPP(fromppd, sizeof(fromppd), response)) { _cupsRWLockWrite(&printer->lock); if ((!printer->info || !*(printer->info)) && (attr = ippFindAttribute(response, "printer-info", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->info, ippGetString(attr, 0, NULL)); if ((!printer->location || !*(printer->location)) && (attr = ippFindAttribute(response, "printer-location", IPP_TAG_TEXT)) != NULL) cupsdSetString(&printer->location, ippGetString(attr, 0, NULL)); if ((!printer->geo_location || !*(printer->geo_location)) && (attr = ippFindAttribute(response, "printer-geo-location", IPP_TAG_URI)) != NULL) cupsdSetString(&printer->geo_location, ippGetString(attr, 0, NULL)); _cupsRWUnlock(&printer->lock); if ((from = cupsFileOpen(fromppd, "r")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: Unable to read generated PPD: %s", printer->name, strerror(errno)); ippDelete(response); return (NULL); } snprintf(toppd, sizeof(toppd), "%s/ppd/%s.ppd", ServerRoot, printer->name); if ((to = cupsdCreateConfFile(toppd, ConfigFilePerm)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: Unable to create PPD for printer: %s", printer->name, strerror(errno)); ippDelete(response); cupsFileClose(from); return (NULL); } while (cupsFileGets(from, line, sizeof(line))) cupsFilePrintf(to, "%s\n", line); cupsFileClose(from); if (!cupsdCloseCreatedConfFile(to, toppd)) { printer->config_time = time(NULL); printer->state = IPP_PSTATE_IDLE; printer->accepting = 1; cupsdSetPrinterAttrs(printer); cupsdAddEvent(CUPSD_EVENT_PRINTER_CONFIG, printer, NULL, "Printer \"%s\" is now available.", printer->name); cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" is now available.", printer->name); } } else cupsdLogMessage(CUPSD_LOG_ERROR, "%s: PPD creation failed: %s", printer->name, cupsLastErrorString()); ippDelete(response); return (NULL); } /* * 'create_local_printer()' - Create a local (temporary) print queue. */ static void create_local_printer( cupsd_client_t *con) /* I - Client connection */ { ipp_attribute_t *device_uri, /* device-uri attribute */ *printer_geo_location, /* printer-geo-location attribute */ *printer_info, /* printer-info attribute */ *printer_location, /* printer-location attribute */ *printer_name; /* printer-name attribute */ cupsd_printer_t *printer; /* New printer */ http_status_t status; /* Policy status */ char name[128], /* Sanitized printer name */ *nameptr, /* Pointer into name */ uri[1024]; /* printer-uri-supported value */ const char *ptr; /* Pointer into attribute value */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ userpass[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ /* * Require local access to create a local printer... */ if (!httpAddrLocalhost(httpGetAddress(con->http))) { send_ipp_status(con, IPP_STATUS_ERROR_FORBIDDEN, _("Only local users can create a local printer.")); return; } /* * Check any other policy limits... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Grab needed attributes... */ if ((printer_name = ippFindAttribute(con->request, "printer-name", IPP_TAG_ZERO)) == NULL || ippGetGroupTag(printer_name) != IPP_TAG_PRINTER || ippGetValueTag(printer_name) != IPP_TAG_NAME) { if (!printer_name) send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Missing required attribute \"%s\"."), "printer-name"); else if (ippGetGroupTag(printer_name) != IPP_TAG_PRINTER) send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute \"%s\" is in the wrong group."), "printer-name"); else send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute \"%s\" is the wrong value type."), "printer-name"); return; } for (nameptr = name, ptr = ippGetString(printer_name, 0, NULL); *ptr && nameptr < (name + sizeof(name) - 1); ptr ++) { /* * Sanitize the printer name... */ if (_cups_isalnum(*ptr)) *nameptr++ = *ptr; else if (nameptr == name || nameptr[-1] != '_') *nameptr++ = '_'; } *nameptr = '\0'; if ((device_uri = ippFindAttribute(con->request, "device-uri", IPP_TAG_ZERO)) == NULL || ippGetGroupTag(device_uri) != IPP_TAG_PRINTER || ippGetValueTag(device_uri) != IPP_TAG_URI) { if (!device_uri) send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Missing required attribute \"%s\"."), "device-uri"); else if (ippGetGroupTag(device_uri) != IPP_TAG_PRINTER) send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute \"%s\" is in the wrong group."), "device-uri"); else send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute \"%s\" is the wrong value type."), "device-uri"); return; } ptr = ippGetString(device_uri, 0, NULL); if (!ptr || !ptr[0]) { send_ipp_status(con, IPP_STATUS_ERROR_BAD_REQUEST, _("Attribute \"%s\" has empty value."), "device-uri"); return; } printer_geo_location = ippFindAttribute(con->request, "printer-geo-location", IPP_TAG_URI); printer_info = ippFindAttribute(con->request, "printer-info", IPP_TAG_TEXT); printer_location = ippFindAttribute(con->request, "printer-location", IPP_TAG_TEXT); /* * See if the printer already exists... */ if ((printer = cupsdFindDest(name)) != NULL) { send_ipp_status(con, IPP_STATUS_ERROR_NOT_POSSIBLE, _("Printer \"%s\" already exists."), name); goto add_printer_attributes; } /* * Create the printer... */ if ((printer = cupsdAddPrinter(name)) == NULL) { send_ipp_status(con, IPP_STATUS_ERROR_INTERNAL, _("Unable to create printer.")); return; } printer->shared = 0; printer->temporary = 1; /* * Check device URI if it has the same hostname as we have, if so, replace * the hostname by localhost. This way we assure that local-only services * like ipp-usb or Printer Applications always work. * * When comparing our hostname with the one in the device URI, * consider names with or without trailing dot ('.') the same. Also * compare case-insensitively. */ #ifdef HAVE_DNSSD if (DNSSDHostName) nameptr = DNSSDHostName; else #endif if (ServerName) nameptr = ServerName; else nameptr = NULL; if (nameptr) { size_t host_len, server_name_len; /* Get host name of device URI */ httpSeparateURI(HTTP_URI_CODING_ALL, ptr, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)); /* Take trailing dot out of comparison */ host_len = strlen(host); if (host_len > 1 && host[host_len - 1] == '.') host_len --; server_name_len = strlen(nameptr); if (server_name_len > 1 && nameptr[server_name_len - 1] == '.') server_name_len --; /* * If we have no DNSSDHostName but only a ServerName (if we are not * sharing printers, Browsing = Off) the ServerName has no ".local" * but the requested device URI has. Take this into account. */ if (nameptr == ServerName && host_len >= 6 && (server_name_len < 6 || strcmp(nameptr + server_name_len - 6, ".local") != 0) && strcmp(host + host_len - 6, ".local") == 0) host_len -= 6; if (host_len == server_name_len && strncasecmp(host, nameptr, host_len) == 0) ptr = "localhost"; else ptr = host; httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), scheme, userpass, ptr, port, resource); cupsdSetDeviceURI(printer, uri); } else cupsdSetDeviceURI(printer, ptr); if (printer_geo_location) cupsdSetString(&printer->geo_location, ippGetString(printer_geo_location, 0, NULL)); if (printer_info) cupsdSetString(&printer->info, ippGetString(printer_info, 0, NULL)); if (printer_location) cupsdSetString(&printer->location, ippGetString(printer_location, 0, NULL)); cupsdSetPrinterAttrs(printer); /* * Run a background thread to create the PPD... */ _cupsThreadCreate((_cups_thread_func_t)create_local_bg_thread, printer); /* * Return printer attributes... */ send_ipp_status(con, IPP_STATUS_OK, _("Local printer created.")); add_printer_attributes: ippAddBoolean(con->response, IPP_TAG_PRINTER, "printer-is-accepting-jobs", (char)printer->accepting); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", (int)printer->state); add_printer_state_reasons(con, printer); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), httpIsEncrypted(con->http) ? "ipps" : "ipp", NULL, con->clientname, con->clientport, "/printers/%s", printer->name); ippAddString(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "printer-uri-supported", NULL, uri); } /* * 'create_requested_array()' - Create an array for the requested-attributes. */ static cups_array_t * /* O - Array of attributes or NULL */ create_requested_array(ipp_t *request) /* I - IPP request */ { cups_array_t *ra; /* Requested attributes array */ /* * Create the array for standard attributes... */ ra = ippCreateRequestedArray(request); /* * Add CUPS defaults as needed... */ if (cupsArrayFind(ra, "printer-defaults")) { /* * Include user-set defaults... */ char *name; /* Option name */ cupsArrayRemove(ra, "printer-defaults"); for (name = (char *)cupsArrayFirst(CommonDefaults); name; name = (char *)cupsArrayNext(CommonDefaults)) if (!cupsArrayFind(ra, name)) cupsArrayAdd(ra, name); } return (ra); } /* * 'create_subscriptions()' - Create one or more notification subscriptions. */ static void create_subscriptions( cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ int i; /* Looping var */ ipp_attribute_t *attr; /* Current attribute */ cups_ptype_t dtype; /* Destination type (printer/class) */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ userpass[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_printer_t *printer; /* Printer/class */ cupsd_job_t *job; /* Job */ int jobid; /* Job ID */ cupsd_subscription_t *sub; /* Subscription object */ const char *username, /* requesting-user-name or authenticated username */ *recipient, /* notify-recipient-uri */ *pullmethod; /* notify-pull-method */ ipp_attribute_t *user_data; /* notify-user-data */ int interval, /* notify-time-interval */ lease; /* notify-lease-duration */ unsigned mask; /* notify-events */ ipp_attribute_t *notify_events,/* notify-events(-default) */ *notify_lease; /* notify-lease-duration(-default) */ #ifdef DEBUG for (attr = con->request->attrs; attr; attr = attr->next) { if (attr->group_tag != IPP_TAG_ZERO) cupsdLogMessage(CUPSD_LOG_DEBUG2, "g%04x v%04x %s", attr->group_tag, attr->value_tag, attr->name); else cupsdLogMessage(CUPSD_LOG_DEBUG2, "----SEP----"); } #endif /* DEBUG */ /* * Is the destination valid? */ cupsdLogMessage(CUPSD_LOG_DEBUG, "create_subscriptions(con=%p(%d), uri=\"%s\")", con, con->number, uri->values[0].string.text); httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)); if (!strcmp(resource, "/")) { dtype = (cups_ptype_t)0; printer = NULL; } else if (!strncmp(resource, "/printers", 9) && strlen(resource) <= 10) { dtype = (cups_ptype_t)0; printer = NULL; } else if (!strncmp(resource, "/classes", 8) && strlen(resource) <= 9) { dtype = CUPS_PRINTER_CLASS; printer = NULL; } else if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if (printer) { if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } } else if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Get the user that is requesting the subscription... */ username = get_username(con); /* * Find the first subscription group attribute; return if we have * none... */ for (attr = con->request->attrs; attr; attr = attr->next) if (attr->group_tag == IPP_TAG_SUBSCRIPTION) break; if (!attr) { send_ipp_status(con, IPP_BAD_REQUEST, _("No subscription attributes in request.")); return; } /* * Process the subscription attributes in the request... */ con->response->request.status.status_code = IPP_BAD_REQUEST; while (attr) { recipient = NULL; pullmethod = NULL; user_data = NULL; interval = 0; lease = DefaultLeaseDuration; jobid = 0; mask = CUPSD_EVENT_NONE; if (printer) { notify_events = ippFindAttribute(printer->attrs, "notify-events-default", IPP_TAG_KEYWORD); notify_lease = ippFindAttribute(printer->attrs, "notify-lease-duration-default", IPP_TAG_INTEGER); if (notify_lease) lease = notify_lease->values[0].integer; } else { notify_events = NULL; notify_lease = NULL; } while (attr && attr->group_tag != IPP_TAG_ZERO) { if (!strcmp(attr->name, "notify-recipient-uri") && attr->value_tag == IPP_TAG_URI) { /* * Validate the recipient scheme against the ServerBin/notifier * directory... */ char notifier[1024]; /* Notifier filename */ recipient = attr->values[0].string.text; if (httpSeparateURI(HTTP_URI_CODING_ALL, recipient, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_OK) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad notify-recipient-uri \"%s\"."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_URI_SCHEME); return; } snprintf(notifier, sizeof(notifier), "%s/notifier/%s", ServerBin, scheme); if (access(notifier, X_OK) || !strcmp(scheme, ".") || !strcmp(scheme, "..")) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("notify-recipient-uri URI \"%s\" uses unknown " "scheme."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_URI_SCHEME); return; } if (!strcmp(scheme, "rss") && !check_rss_recipient(recipient)) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("notify-recipient-uri URI \"%s\" is already used."), recipient); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_ATTRIBUTES); return; } } else if (!strcmp(attr->name, "notify-pull-method") && attr->value_tag == IPP_TAG_KEYWORD) { pullmethod = attr->values[0].string.text; if (strcmp(pullmethod, "ippget")) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad notify-pull-method \"%s\"."), pullmethod); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_ATTRIBUTES); return; } } else if (!strcmp(attr->name, "notify-charset") && attr->value_tag == IPP_TAG_CHARSET && strcmp(attr->values[0].string.text, "us-ascii") && strcmp(attr->values[0].string.text, "utf-8")) { send_ipp_status(con, IPP_CHARSET, _("Character set \"%s\" not supported."), attr->values[0].string.text); return; } else if (!strcmp(attr->name, "notify-natural-language") && (attr->value_tag != IPP_TAG_LANGUAGE || strcmp(attr->values[0].string.text, DefaultLanguage))) { send_ipp_status(con, IPP_CHARSET, _("Language \"%s\" not supported."), attr->values[0].string.text); return; } else if (!strcmp(attr->name, "notify-user-data") && attr->value_tag == IPP_TAG_STRING) { if (attr->num_values > 1 || attr->values[0].unknown.length > 63) { send_ipp_status(con, IPP_REQUEST_VALUE, _("The notify-user-data value is too large " "(%d > 63 octets)."), attr->values[0].unknown.length); return; } user_data = attr; } else if (!strcmp(attr->name, "notify-events") && attr->value_tag == IPP_TAG_KEYWORD) notify_events = attr; else if (!strcmp(attr->name, "notify-lease-duration") && attr->value_tag == IPP_TAG_INTEGER) lease = attr->values[0].integer; else if (!strcmp(attr->name, "notify-time-interval") && attr->value_tag == IPP_TAG_INTEGER) interval = attr->values[0].integer; else if (!strcmp(attr->name, "notify-job-id") && attr->value_tag == IPP_TAG_INTEGER) jobid = attr->values[0].integer; attr = attr->next; } if (notify_events) { for (i = 0; i < notify_events->num_values; i ++) mask |= cupsdEventValue(notify_events->values[i].string.text); } if (recipient) { cupsdLogMessage(CUPSD_LOG_DEBUG, "recipient=\"%s\"", recipient); if (!strncmp(recipient, "mailto:", 7) && user_data) { char temp[64]; /* Temporary string */ memcpy(temp, user_data->values[0].unknown.data, (size_t)user_data->values[0].unknown.length); temp[user_data->values[0].unknown.length] = '\0'; if (httpSeparateURI(HTTP_URI_CODING_ALL, temp, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_OK) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Bad notify-user-data \"%s\"."), temp); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_ENUM, "notify-status-code", IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES); return; } } } if (pullmethod) cupsdLogMessage(CUPSD_LOG_DEBUG, "pullmethod=\"%s\"", pullmethod); cupsdLogMessage(CUPSD_LOG_DEBUG, "notify-lease-duration=%d", lease); cupsdLogMessage(CUPSD_LOG_DEBUG, "notify-time-interval=%d", interval); if (!recipient && !pullmethod) break; if (mask == CUPSD_EVENT_NONE) { if (jobid) mask = CUPSD_EVENT_JOB_COMPLETED; else if (printer) mask = CUPSD_EVENT_PRINTER_STATE_CHANGED; else { send_ipp_status(con, IPP_BAD_REQUEST, _("notify-events not specified.")); return; } } if (MaxLeaseDuration && (lease == 0 || lease > MaxLeaseDuration)) { cupsdLogMessage(CUPSD_LOG_INFO, "create_subscriptions: Limiting notify-lease-duration to " "%d seconds.", MaxLeaseDuration); lease = MaxLeaseDuration; } if (jobid) { if ((job = cupsdFindJob(jobid)) == NULL) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } } else job = NULL; if ((sub = cupsdAddSubscription(mask, printer, job, recipient, 0)) == NULL) { send_ipp_status(con, IPP_TOO_MANY_SUBSCRIPTIONS, _("There are too many subscriptions.")); return; } if (job) cupsdLogMessage(CUPSD_LOG_DEBUG, "Added subscription #%d for job %d.", sub->id, job->id); else if (printer) cupsdLogMessage(CUPSD_LOG_DEBUG, "Added subscription #%d for printer \"%s\".", sub->id, printer->name); else cupsdLogMessage(CUPSD_LOG_DEBUG, "Added subscription #%d for server.", sub->id); sub->interval = interval; sub->lease = lease; sub->expire = lease ? time(NULL) + lease : 0; cupsdSetString(&sub->owner, username); if (user_data) { sub->user_data_len = user_data->values[0].unknown.length; memcpy(sub->user_data, user_data->values[0].unknown.data, (size_t)sub->user_data_len); } ippAddSeparator(con->response); ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-subscription-id", sub->id); con->response->request.status.status_code = IPP_OK; if (attr) attr = attr->next; } cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); } /* * 'delete_printer()' - Remove a printer or class from the system. */ static void delete_printer(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - URI of printer or class */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer/class */ char filename[1024]; /* Script/PPD filename */ int temporary; /* Temporary queue? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "delete_printer(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Do we have a valid URI? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Remove old jobs... */ cupsdCancelJobs(printer->name, NULL, 1); /* * Remove old subscriptions and send a "deleted printer" event... */ cupsdAddEvent(CUPSD_EVENT_PRINTER_DELETED, printer, NULL, "%s \"%s\" deleted by \"%s\".", (dtype & CUPS_PRINTER_CLASS) ? "Class" : "Printer", printer->name, get_username(con)); cupsdExpireSubscriptions(printer, NULL); /* * Remove any old PPD or script files... */ snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd", ServerRoot, printer->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd.O", ServerRoot, printer->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/%s.png", CacheDir, printer->name); unlink(filename); snprintf(filename, sizeof(filename), "%s/%s.data", CacheDir, printer->name); unlink(filename); /* * Unregister color profiles... */ cupsdUnregisterColor(printer); temporary = printer->temporary; if (dtype & CUPS_PRINTER_CLASS) { cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" deleted by \"%s\".", printer->name, get_username(con)); cupsdDeletePrinter(printer, 0); if (!temporary) cupsdMarkDirty(CUPSD_DIRTY_CLASSES); } else { cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" deleted by \"%s\".", printer->name, get_username(con)); if (cupsdDeletePrinter(printer, 0) && !temporary) cupsdMarkDirty(CUPSD_DIRTY_CLASSES); if (!temporary) cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); } if (!temporary) cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); /* * Return with no errors... */ con->response->request.status.status_code = IPP_OK; } /* * 'get_default()' - Get the default destination. */ static void get_default(cupsd_client_t *con) /* I - Client connection */ { http_status_t status; /* Policy status */ cups_array_t *ra; /* Requested attributes array */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_default(%p[%d])", con, con->number); /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } if (DefaultPrinter) { ra = create_requested_array(con->request); copy_printer_attrs(con, DefaultPrinter, ra); cupsArrayDelete(ra); con->response->request.status.status_code = IPP_OK; } else send_ipp_status(con, IPP_NOT_FOUND, _("No default printer.")); } /* * 'get_devices()' - Get the list of available devices on the local system. */ static void get_devices(cupsd_client_t *con) /* I - Client connection */ { http_status_t status; /* Policy status */ ipp_attribute_t *limit, /* limit attribute */ *timeout, /* timeout attribute */ *requested, /* requested-attributes attribute */ *exclude, /* exclude-schemes attribute */ *include; /* include-schemes attribute */ char command[1024], /* cups-deviced command */ options[2048], /* Options to pass to command */ requested_str[256], /* String for requested attributes */ exclude_str[512], /* String for excluded schemes */ include_str[512]; /* String for included schemes */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_devices(%p[%d])", con, con->number); /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Run cups-deviced command with the given options... */ limit = ippFindAttribute(con->request, "limit", IPP_TAG_INTEGER); timeout = ippFindAttribute(con->request, "timeout", IPP_TAG_INTEGER); requested = ippFindAttribute(con->request, "requested-attributes", IPP_TAG_KEYWORD); exclude = ippFindAttribute(con->request, "exclude-schemes", IPP_TAG_NAME); include = ippFindAttribute(con->request, "include-schemes", IPP_TAG_NAME); if (requested) url_encode_attr(requested, requested_str, sizeof(requested_str)); else strlcpy(requested_str, "requested-attributes=all", sizeof(requested_str)); if (exclude) url_encode_attr(exclude, exclude_str, sizeof(exclude_str)); else exclude_str[0] = '\0'; if (include) url_encode_attr(include, include_str, sizeof(include_str)); else include_str[0] = '\0'; snprintf(command, sizeof(command), "%s/daemon/cups-deviced", ServerBin); snprintf(options, sizeof(options), "%d+%d+%d+%d+%s%s%s%s%s", con->request->request.op.request_id, limit ? limit->values[0].integer : 0, timeout ? timeout->values[0].integer : 15, (int)User, requested_str, exclude_str[0] ? "%20" : "", exclude_str, include_str[0] ? "%20" : "", include_str); if (cupsdSendCommand(con, command, options, 1)) { /* * Command started successfully, don't send an IPP response here... */ ippDelete(con->response); con->response = NULL; } else { /* * Command failed, return "internal error" so the user knows something * went wrong... */ send_ipp_status(con, IPP_INTERNAL_ERROR, _("cups-deviced failed to execute.")); } } /* * 'get_document()' - Get a copy of a job file. */ static void get_document(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job URI */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ int docnum; /* Document number */ cupsd_job_t *job; /* Current job */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ char filename[1024], /* Filename for document */ format[1024]; /* Format for document */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_document(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, job->username)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Get the document number... */ if ((attr = ippFindAttribute(con->request, "document-number", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Missing document-number attribute.")); return; } if ((docnum = attr->values[0].integer) < 1 || docnum > job->num_files || attr->num_values > 1) { send_ipp_status(con, IPP_NOT_FOUND, _("Document #%d does not exist in job #%d."), docnum, jobid); return; } snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, jobid, docnum); if ((con->file = open(filename, O_RDONLY)) == -1) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open document %d in job %d - %s", docnum, jobid, strerror(errno)); send_ipp_status(con, IPP_NOT_FOUND, _("Unable to open document #%d in job #%d."), docnum, jobid); return; } fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); cupsdLoadJob(job); snprintf(format, sizeof(format), "%s/%s", job->filetypes[docnum - 1]->super, job->filetypes[docnum - 1]->type); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format", NULL, format); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "document-number", docnum); if ((attr = ippFindAttribute(job->attrs, "document-name", IPP_TAG_NAME)) != NULL) ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_NAME, "document-name", NULL, attr->values[0].string.text); } /* * 'get_job_attrs()' - Get job attributes. */ static void get_job_attrs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job URI */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ cupsd_job_t *job; /* Current job */ cupsd_printer_t *printer; /* Current printer */ cupsd_policy_t *policy; /* Current security policy */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cups_array_t *ra, /* Requested attributes array */ *exclude; /* Private attributes array */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_job_attrs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * Check policy... */ if ((printer = job->printer) == NULL) printer = cupsdFindDest(job->dest); if (printer) policy = printer->op_policy_ptr; else policy = DefaultPolicyPtr; if ((status = cupsdCheckPolicy(policy, con, job->username)) != HTTP_OK) { send_http_error(con, status, NULL); return; } exclude = cupsdGetPrivateAttrs(policy, con, printer, job->username); /* * Copy attributes... */ cupsdLoadJob(job); ra = create_requested_array(con->request); copy_job_attrs(con, job, ra, exclude); cupsArrayDelete(ra); con->response->request.status.status_code = IPP_OK; } /* * 'get_jobs()' - Get a list of jobs for the specified printer. */ static void get_jobs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ const char *dest; /* Destination */ cups_ptype_t dtype; /* Destination type (printer/class) */ cups_ptype_t dmask; /* Destination type mask */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ int job_comparison; /* Job comparison */ ipp_jstate_t job_state; /* job-state value */ int first_job_id = 1, /* First job ID */ first_index = 1, /* First index */ limit = 0, /* Maximum number of jobs to return */ count, /* Number of jobs that match */ need_load_job = 0; /* Do we need to load the job? */ const char *job_attr; /* Job attribute requested */ ipp_attribute_t *job_ids; /* job-ids attribute */ cupsd_job_t *job; /* Current job pointer */ cupsd_printer_t *printer; /* Printer */ cups_array_t *list; /* Which job list... */ int delete_list = 0; /* Delete the list afterwards? */ cups_array_t *ra, /* Requested attributes array */ *exclude; /* Private attributes array */ cupsd_policy_t *policy; /* Current policy */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (strcmp(uri->name, "printer-uri")) { send_ipp_status(con, IPP_BAD_REQUEST, _("No printer-uri in request.")); return; } httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (!strcmp(resource, "/") || !strcmp(resource, "/jobs")) { dest = NULL; dtype = (cups_ptype_t)0; dmask = (cups_ptype_t)0; printer = NULL; } else if (!strncmp(resource, "/printers", 9) && strlen(resource) <= 10) { dest = NULL; dtype = (cups_ptype_t)0; dmask = CUPS_PRINTER_CLASS; printer = NULL; } else if (!strncmp(resource, "/classes", 8) && strlen(resource) <= 9) { dest = NULL; dtype = CUPS_PRINTER_CLASS; dmask = CUPS_PRINTER_CLASS; printer = NULL; } else if ((dest = cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) == NULL) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } else { dtype &= CUPS_PRINTER_CLASS; dmask = CUPS_PRINTER_CLASS; } /* * Check policy... */ if (printer) policy = printer->op_policy_ptr; else policy = DefaultPolicyPtr; if ((status = cupsdCheckPolicy(policy, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } job_ids = ippFindAttribute(con->request, "job-ids", IPP_TAG_INTEGER); /* * See if the "which-jobs" attribute have been specified... */ if ((attr = ippFindAttribute(con->request, "which-jobs", IPP_TAG_KEYWORD)) != NULL && job_ids) { send_ipp_status(con, IPP_CONFLICT, _("The %s attribute cannot be provided with job-ids."), "which-jobs"); return; } else if (!attr || !strcmp(attr->values[0].string.text, "not-completed")) { job_comparison = -1; job_state = IPP_JOB_STOPPED; list = ActiveJobs; } else if (!strcmp(attr->values[0].string.text, "completed")) { job_comparison = 1; job_state = IPP_JOB_CANCELED; list = cupsdGetCompletedJobs(printer); delete_list = 1; } else if (!strcmp(attr->values[0].string.text, "aborted")) { job_comparison = 0; job_state = IPP_JOB_ABORTED; list = cupsdGetCompletedJobs(printer); delete_list = 1; } else if (!strcmp(attr->values[0].string.text, "all")) { job_comparison = 1; job_state = IPP_JOB_PENDING; list = Jobs; } else if (!strcmp(attr->values[0].string.text, "canceled")) { job_comparison = 0; job_state = IPP_JOB_CANCELED; list = cupsdGetCompletedJobs(printer); delete_list = 1; } else if (!strcmp(attr->values[0].string.text, "pending")) { job_comparison = 0; job_state = IPP_JOB_PENDING; list = ActiveJobs; } else if (!strcmp(attr->values[0].string.text, "pending-held")) { job_comparison = 0; job_state = IPP_JOB_HELD; list = ActiveJobs; } else if (!strcmp(attr->values[0].string.text, "processing")) { job_comparison = 0; job_state = IPP_JOB_PROCESSING; list = PrintingJobs; } else if (!strcmp(attr->values[0].string.text, "processing-stopped")) { job_comparison = 0; job_state = IPP_JOB_STOPPED; list = ActiveJobs; } else { send_ipp_status(con, IPP_ATTRIBUTES, _("The which-jobs value \"%s\" is not supported."), attr->values[0].string.text); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_KEYWORD, "which-jobs", NULL, attr->values[0].string.text); return; } /* * See if they want to limit the number of jobs reported... */ if ((attr = ippFindAttribute(con->request, "limit", IPP_TAG_INTEGER)) != NULL) { if (job_ids) { send_ipp_status(con, IPP_CONFLICT, _("The %s attribute cannot be provided with job-ids."), "limit"); return; } limit = attr->values[0].integer; } if ((attr = ippFindAttribute(con->request, "first-index", IPP_TAG_INTEGER)) != NULL) { if (job_ids) { send_ipp_status(con, IPP_CONFLICT, _("The %s attribute cannot be provided with job-ids."), "first-index"); return; } first_index = attr->values[0].integer; } else if ((attr = ippFindAttribute(con->request, "first-job-id", IPP_TAG_INTEGER)) != NULL) { if (job_ids) { send_ipp_status(con, IPP_CONFLICT, _("The %s attribute cannot be provided with job-ids."), "first-job-id"); return; } first_job_id = attr->values[0].integer; } /* * See if we only want to see jobs for a specific user... */ if ((attr = ippFindAttribute(con->request, "my-jobs", IPP_TAG_BOOLEAN)) != NULL && job_ids) { send_ipp_status(con, IPP_CONFLICT, _("The %s attribute cannot be provided with job-ids."), "my-jobs"); return; } else if (attr && attr->values[0].boolean) strlcpy(username, get_username(con), sizeof(username)); else username[0] = '\0'; ra = create_requested_array(con->request); for (job_attr = (char *)cupsArrayFirst(ra); job_attr; job_attr = (char *)cupsArrayNext(ra)) if (strcmp(job_attr, "job-id") && strcmp(job_attr, "job-k-octets") && strcmp(job_attr, "job-media-progress") && strcmp(job_attr, "job-more-info") && strcmp(job_attr, "job-name") && strcmp(job_attr, "job-originating-user-name") && strcmp(job_attr, "job-preserved") && strcmp(job_attr, "job-printer-up-time") && strcmp(job_attr, "job-printer-uri") && strcmp(job_attr, "job-state") && strcmp(job_attr, "job-state-reasons") && strcmp(job_attr, "job-uri") && strcmp(job_attr, "time-at-completed") && strcmp(job_attr, "time-at-creation") && strcmp(job_attr, "number-of-documents")) { need_load_job = 1; break; } if (need_load_job && (limit == 0 || limit > 500) && (list == Jobs || delete_list)) { /* * Limit expensive Get-Jobs for job history to 500 jobs... */ ippAddInteger(con->response, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "limit", 500); if (limit) ippAddInteger(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_INTEGER, "limit", limit); limit = 500; cupsdLogClient(con, CUPSD_LOG_INFO, "Limiting Get-Jobs response to %d jobs.", limit); } /* * OK, build a list of jobs for this printer... */ if (job_ids) { int i; /* Looping var */ for (i = 0; i < job_ids->num_values; i ++) { if (!cupsdFindJob(job_ids->values[i].integer)) break; } if (i < job_ids->num_values) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), job_ids->values[i].integer); cupsArrayDelete(ra); return; } for (i = 0; i < job_ids->num_values; i ++) { job = cupsdFindJob(job_ids->values[i].integer); if (need_load_job && !job->attrs) { cupsdLoadJob(job); if (!job->attrs) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_jobs: No attributes for job %d", job->id); continue; } } if (i > 0) ippAddSeparator(con->response); exclude = cupsdGetPrivateAttrs(job->printer ? job->printer->op_policy_ptr : policy, con, job->printer, job->username); copy_job_attrs(con, job, ra, exclude); } } else { if (first_index > 1) job = (cupsd_job_t *)cupsArrayIndex(list, first_index - 1); else job = (cupsd_job_t *)cupsArrayFirst(list); for (count = 0; (limit <= 0 || count < limit) && job; job = (cupsd_job_t *)cupsArrayNext(list)) { /* * Filter out jobs that don't match... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_jobs: job->id=%d, dest=\"%s\", username=\"%s\", " "state_value=%d, attrs=%p", job->id, job->dest, job->username, job->state_value, job->attrs); if (!job->dest || !job->username) cupsdLoadJob(job); if (!job->dest || !job->username) continue; if ((dest && strcmp(job->dest, dest)) && (!job->printer || !dest || strcmp(job->printer->name, dest))) continue; if ((job->dtype & dmask) != dtype && (!job->printer || (job->printer->type & dmask) != dtype)) continue; if ((job_comparison < 0 && job->state_value > job_state) || (job_comparison == 0 && job->state_value != job_state) || (job_comparison > 0 && job->state_value < job_state)) continue; if (job->id < first_job_id) continue; if (need_load_job && !job->attrs) { cupsdLoadJob(job); if (!job->attrs) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_jobs: No attributes for job %d", job->id); continue; } } if (username[0] && _cups_strcasecmp(username, job->username)) continue; if (count > 0) ippAddSeparator(con->response); count ++; exclude = cupsdGetPrivateAttrs(job->printer ? job->printer->op_policy_ptr : policy, con, job->printer, job->username); copy_job_attrs(con, job, ra, exclude); } cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_jobs: count=%d", count); } cupsArrayDelete(ra); if (delete_list) cupsArrayDelete(list); con->response->request.status.status_code = IPP_OK; } /* * 'get_notifications()' - Get events for a subscription. */ static void get_notifications(cupsd_client_t *con) /* I - Client connection */ { int i, j; /* Looping vars */ http_status_t status; /* Policy status */ cupsd_subscription_t *sub; /* Subscription */ ipp_attribute_t *ids, /* notify-subscription-ids */ *sequences; /* notify-sequence-numbers */ int min_seq; /* Minimum sequence number */ int interval; /* Poll interval */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_notifications(con=%p[%d])", con, con->number); /* * Get subscription attributes... */ ids = ippFindAttribute(con->request, "notify-subscription-ids", IPP_TAG_INTEGER); sequences = ippFindAttribute(con->request, "notify-sequence-numbers", IPP_TAG_INTEGER); if (!ids) { send_ipp_status(con, IPP_BAD_REQUEST, _("Missing notify-subscription-ids attribute.")); return; } /* * Are the subscription IDs valid? */ for (i = 0, interval = 60; i < ids->num_values; i ++) { if ((sub = cupsdFindSubscription(ids->values[i].integer)) == NULL) { /* * Bad subscription ID... */ send_ipp_status(con, IPP_NOT_FOUND, _("Subscription #%d does not exist."), ids->values[i].integer); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(sub->dest ? sub->dest->op_policy_ptr : DefaultPolicyPtr, con, sub->owner)) != HTTP_OK) { send_http_error(con, status, sub->dest); return; } /* * Check the subscription type and update the interval accordingly. */ if (sub->job && sub->job->state_value == IPP_JOB_PROCESSING && interval > 10) interval = 10; else if (sub->job && sub->job->state_value >= IPP_JOB_STOPPED) interval = 0; else if (sub->dest && sub->dest->state == IPP_PRINTER_PROCESSING && interval > 30) interval = 30; } /* * Tell the client to poll again in N seconds... */ if (interval > 0) ippAddInteger(con->response, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "notify-get-interval", interval); ippAddInteger(con->response, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "printer-up-time", time(NULL)); /* * Copy the subscription event attributes to the response. */ con->response->request.status.status_code = interval ? IPP_OK : IPP_OK_EVENTS_COMPLETE; for (i = 0; i < ids->num_values; i ++) { /* * Get the subscription and sequence number... */ sub = cupsdFindSubscription(ids->values[i].integer); if (sequences && i < sequences->num_values) min_seq = sequences->values[i].integer; else min_seq = 1; /* * If we don't have any new events, nothing to do here... */ if (min_seq > (sub->first_event_id + cupsArrayCount(sub->events))) continue; /* * Otherwise copy all of the new events... */ if (sub->first_event_id > min_seq) j = 0; else j = min_seq - sub->first_event_id; for (; j < cupsArrayCount(sub->events); j ++) { ippAddSeparator(con->response); copy_attrs(con->response, ((cupsd_event_t *)cupsArrayIndex(sub->events, j))->attrs, NULL, IPP_TAG_EVENT_NOTIFICATION, 0, NULL); } } } /* * 'get_ppd()' - Get a named PPD from the local system. */ static void get_ppd(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI or PPD name */ { http_status_t status; /* Policy status */ cupsd_printer_t *dest; /* Destination */ cups_ptype_t dtype; /* Destination type */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_ppd(%p[%d], %p[%s=%s])", con, con->number, uri, uri->name, uri->values[0].string.text); if (!strcmp(ippGetName(uri), "ppd-name")) { /* * Return a PPD file from cups-driverd... */ const char *ppd_name = ippGetString(uri, 0, NULL); /* ppd-name value */ char command[1024], /* cups-driverd command */ options[1024], /* Options to pass to command */ oppd_name[1024]; /* Escaped ppd-name */ /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Check ppd-name value... */ if (strstr(ppd_name, "../")) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Invalid ppd-name value.")); return; } /* * Run cups-driverd command with the given options... */ snprintf(command, sizeof(command), "%s/daemon/cups-driverd", ServerBin); url_encode_string(ppd_name, oppd_name, sizeof(oppd_name)); snprintf(options, sizeof(options), "get+%d+%s", ippGetRequestId(con->request), oppd_name); if (cupsdSendCommand(con, command, options, 0)) { /* * Command started successfully, don't send an IPP response here... */ ippDelete(con->response); con->response = NULL; } else { /* * Command failed, return "internal error" so the user knows something * went wrong... */ send_ipp_status(con, IPP_INTERNAL_ERROR, _("cups-driverd failed to execute.")); } } else if (!strcmp(ippGetName(uri), "printer-uri") && cupsdValidateDest(ippGetString(uri, 0, NULL), &dtype, &dest)) { int i; /* Looping var */ char filename[1024]; /* PPD filename */ /* * Check policy... */ if ((status = cupsdCheckPolicy(dest->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, dest); return; } /* * See if we need the PPD for a class or remote printer... */ snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd", ServerRoot, dest->name); if ((dtype & CUPS_PRINTER_REMOTE) && access(filename, 0)) { send_ipp_status(con, IPP_STATUS_CUPS_SEE_OTHER, _("See remote printer.")); ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, dest->uri); return; } else if (dtype & CUPS_PRINTER_CLASS) { for (i = 0; i < dest->num_printers; i ++) if (!(dest->printers[i]->type & CUPS_PRINTER_CLASS)) { snprintf(filename, sizeof(filename), "%s/ppd/%s.ppd", ServerRoot, dest->printers[i]->name); if (!access(filename, 0)) break; } if (i < dest->num_printers) dest = dest->printers[i]; else { send_ipp_status(con, IPP_STATUS_CUPS_SEE_OTHER, _("See remote printer.")); ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, dest->printers[0]->uri); return; } } /* * Found the printer with the PPD file, now see if there is one... */ if ((con->file = open(filename, O_RDONLY)) < 0) { send_ipp_status(con, IPP_STATUS_ERROR_NOT_FOUND, _("The PPD file \"%s\" could not be opened: %s"), ippGetString(uri, 0, NULL), strerror(errno)); return; } fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); con->pipe_pid = 0; ippSetStatusCode(con->response, IPP_STATUS_OK); } else send_ipp_status(con, IPP_STATUS_ERROR_NOT_FOUND, _("The PPD file \"%s\" could not be found."), ippGetString(uri, 0, NULL)); } /* * 'get_ppds()' - Get the list of PPD files on the local system. */ static void get_ppds(cupsd_client_t *con) /* I - Client connection */ { http_status_t status; /* Policy status */ ipp_attribute_t *limit, /* Limit attribute */ *device, /* ppd-device-id attribute */ *language, /* ppd-natural-language attribute */ *make, /* ppd-make attribute */ *model, /* ppd-make-and-model attribute */ *model_number, /* ppd-model-number attribute */ *product, /* ppd-product attribute */ *psversion, /* ppd-psverion attribute */ *type, /* ppd-type attribute */ *requested, /* requested-attributes attribute */ *exclude, /* exclude-schemes attribute */ *include; /* include-schemes attribute */ char command[1024], /* cups-driverd command */ options[4096], /* Options to pass to command */ device_str[256],/* Escaped ppd-device-id string */ language_str[256], /* Escaped ppd-natural-language */ make_str[256], /* Escaped ppd-make string */ model_str[256], /* Escaped ppd-make-and-model string */ model_number_str[256], /* ppd-model-number string */ product_str[256], /* Escaped ppd-product string */ psversion_str[256], /* Escaped ppd-psversion string */ type_str[256], /* Escaped ppd-type string */ requested_str[256], /* String for requested attributes */ exclude_str[512], /* String for excluded schemes */ include_str[512]; /* String for included schemes */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_ppds(%p[%d])", con, con->number); /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Run cups-driverd command with the given options... */ limit = ippFindAttribute(con->request, "limit", IPP_TAG_INTEGER); device = ippFindAttribute(con->request, "ppd-device-id", IPP_TAG_TEXT); language = ippFindAttribute(con->request, "ppd-natural-language", IPP_TAG_LANGUAGE); make = ippFindAttribute(con->request, "ppd-make", IPP_TAG_TEXT); model = ippFindAttribute(con->request, "ppd-make-and-model", IPP_TAG_TEXT); model_number = ippFindAttribute(con->request, "ppd-model-number", IPP_TAG_INTEGER); product = ippFindAttribute(con->request, "ppd-product", IPP_TAG_TEXT); psversion = ippFindAttribute(con->request, "ppd-psversion", IPP_TAG_TEXT); type = ippFindAttribute(con->request, "ppd-type", IPP_TAG_KEYWORD); requested = ippFindAttribute(con->request, "requested-attributes", IPP_TAG_KEYWORD); exclude = ippFindAttribute(con->request, "exclude-schemes", IPP_TAG_NAME); include = ippFindAttribute(con->request, "include-schemes", IPP_TAG_NAME); if (requested) url_encode_attr(requested, requested_str, sizeof(requested_str)); else strlcpy(requested_str, "requested-attributes=all", sizeof(requested_str)); if (device) url_encode_attr(device, device_str, sizeof(device_str)); else device_str[0] = '\0'; if (language) url_encode_attr(language, language_str, sizeof(language_str)); else language_str[0] = '\0'; if (make) url_encode_attr(make, make_str, sizeof(make_str)); else make_str[0] = '\0'; if (model) url_encode_attr(model, model_str, sizeof(model_str)); else model_str[0] = '\0'; if (model_number) snprintf(model_number_str, sizeof(model_number_str), "ppd-model-number=%d", model_number->values[0].integer); else model_number_str[0] = '\0'; if (product) url_encode_attr(product, product_str, sizeof(product_str)); else product_str[0] = '\0'; if (psversion) url_encode_attr(psversion, psversion_str, sizeof(psversion_str)); else psversion_str[0] = '\0'; if (type) url_encode_attr(type, type_str, sizeof(type_str)); else type_str[0] = '\0'; if (exclude) url_encode_attr(exclude, exclude_str, sizeof(exclude_str)); else exclude_str[0] = '\0'; if (include) url_encode_attr(include, include_str, sizeof(include_str)); else include_str[0] = '\0'; snprintf(command, sizeof(command), "%s/daemon/cups-driverd", ServerBin); snprintf(options, sizeof(options), "list+%d+%d+%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s", con->request->request.op.request_id, limit ? limit->values[0].integer : 0, requested_str, device ? "%20" : "", device_str, language ? "%20" : "", language_str, make ? "%20" : "", make_str, model ? "%20" : "", model_str, model_number ? "%20" : "", model_number_str, product ? "%20" : "", product_str, psversion ? "%20" : "", psversion_str, type ? "%20" : "", type_str, exclude_str[0] ? "%20" : "", exclude_str, include_str[0] ? "%20" : "", include_str); if (cupsdSendCommand(con, command, options, 0)) { /* * Command started successfully, don't send an IPP response here... */ ippDelete(con->response); con->response = NULL; } else { /* * Command failed, return "internal error" so the user knows something * went wrong... */ send_ipp_status(con, IPP_INTERNAL_ERROR, _("cups-driverd failed to execute.")); } } /* * 'get_printer_attrs()' - Get printer attributes. */ static void get_printer_attrs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer/class */ cups_array_t *ra; /* Requested attributes array */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_printer_attrs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Send the attributes... */ ra = create_requested_array(con->request); copy_printer_attrs(con, printer, ra); cupsArrayDelete(ra); con->response->request.status.status_code = IPP_OK; } /* * 'get_printer_supported()' - Get printer supported values. */ static void get_printer_supported( cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer/class */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_printer_supported(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Return a list of attributes that can be set via Set-Printer-Attributes. */ ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ADMINDEFINE, "printer-geo-location", 0); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ADMINDEFINE, "printer-info", 0); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ADMINDEFINE, "printer-location", 0); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ADMINDEFINE, "printer-organization", 0); ippAddInteger(con->response, IPP_TAG_PRINTER, IPP_TAG_ADMINDEFINE, "printer-organizational-unit", 0); con->response->request.status.status_code = IPP_OK; } /* * 'get_printers()' - Get a list of printers or classes. */ static void get_printers(cupsd_client_t *con, /* I - Client connection */ int type) /* I - 0 or CUPS_PRINTER_CLASS */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ int limit; /* Max number of printers to return */ int count; /* Number of printers that match */ int printer_id; /* Printer we are interested in */ cupsd_printer_t *printer; /* Current printer pointer */ cups_ptype_t printer_type, /* printer-type attribute */ printer_mask; /* printer-type-mask attribute */ char *location; /* Location string */ const char *username; /* Current user */ char *first_printer_name; /* first-printer-name attribute */ cups_array_t *ra; /* Requested attributes array */ int local; /* Local connection? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_printers(%p[%d], %x)", con, con->number, type); /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Check for printers... */ if (!Printers || !cupsArrayCount(Printers)) { send_ipp_status(con, IPP_NOT_FOUND, _("No destinations added.")); return; } /* * See if they want to limit the number of printers reported... */ if ((attr = ippFindAttribute(con->request, "limit", IPP_TAG_INTEGER)) != NULL) limit = attr->values[0].integer; else limit = 10000000; if ((attr = ippFindAttribute(con->request, "first-printer-name", IPP_TAG_NAME)) != NULL) first_printer_name = attr->values[0].string.text; else first_printer_name = NULL; /* * Support filtering... */ if ((attr = ippFindAttribute(con->request, "printer-id", IPP_TAG_INTEGER)) != NULL) { if ((printer_id = ippGetInteger(attr, 0)) <= 0) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Bad \"printer-id\" value %d."), printer_id); return; } } else printer_id = 0; if ((attr = ippFindAttribute(con->request, "printer-type", IPP_TAG_ENUM)) != NULL) printer_type = (cups_ptype_t)attr->values[0].integer; else printer_type = (cups_ptype_t)0; if ((attr = ippFindAttribute(con->request, "printer-type-mask", IPP_TAG_ENUM)) != NULL) printer_mask = (cups_ptype_t)attr->values[0].integer; else printer_mask = (cups_ptype_t)0; local = httpAddrLocalhost(&(con->clientaddr)); if ((attr = ippFindAttribute(con->request, "printer-location", IPP_TAG_TEXT)) != NULL) location = attr->values[0].string.text; else location = NULL; if (con->username[0]) username = con->username; else if ((attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) username = attr->values[0].string.text; else username = NULL; ra = create_requested_array(con->request); /* * OK, build a list of printers for this printer... */ if (first_printer_name) { if ((printer = cupsdFindDest(first_printer_name)) == NULL) printer = (cupsd_printer_t *)cupsArrayFirst(Printers); } else printer = (cupsd_printer_t *)cupsArrayFirst(Printers); for (count = 0; count < limit && printer; printer = (cupsd_printer_t *)cupsArrayNext(Printers)) { if (!local && !printer->shared) continue; if (printer_id && printer->printer_id != printer_id) continue; if ((!type || (printer->type & CUPS_PRINTER_CLASS) == type) && (printer->type & printer_mask) == printer_type && (!location || (printer->location && !_cups_strcasecmp(printer->location, location)))) { /* * If a username is specified, see if it is allowed or denied * access... */ if (cupsArrayCount(printer->users) && username && !user_allowed(printer, username)) continue; /* * Add the group separator as needed... */ if (count > 0) ippAddSeparator(con->response); count ++; /* * Send the attributes... */ copy_printer_attrs(con, printer, ra); } } cupsArrayDelete(ra); con->response->request.status.status_code = IPP_OK; } /* * 'get_subscription_attrs()' - Get subscription attributes. */ static void get_subscription_attrs( cupsd_client_t *con, /* I - Client connection */ int sub_id) /* I - Subscription ID */ { http_status_t status; /* Policy status */ cupsd_subscription_t *sub; /* Subscription */ cupsd_policy_t *policy; /* Current security policy */ cups_array_t *ra, /* Requested attributes array */ *exclude; /* Private attributes array */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_subscription_attrs(con=%p[%d], sub_id=%d)", con, con->number, sub_id); /* * Expire subscriptions as needed... */ cupsdExpireSubscriptions(NULL, NULL); /* * Is the subscription ID valid? */ if ((sub = cupsdFindSubscription(sub_id)) == NULL) { /* * Bad subscription ID... */ send_ipp_status(con, IPP_NOT_FOUND, _("Subscription #%d does not exist."), sub_id); return; } /* * Check policy... */ if (sub->dest) policy = sub->dest->op_policy_ptr; else policy = DefaultPolicyPtr; if ((status = cupsdCheckPolicy(policy, con, sub->owner)) != HTTP_OK) { send_http_error(con, status, sub->dest); return; } exclude = cupsdGetPrivateAttrs(policy, con, sub->dest, sub->owner); /* * Copy the subscription attributes to the response using the * requested-attributes attribute that may be provided by the client. */ ra = create_requested_array(con->request); copy_subscription_attrs(con, sub, ra, exclude); cupsArrayDelete(ra); con->response->request.status.status_code = IPP_OK; } /* * 'get_subscriptions()' - Get subscriptions. */ static void get_subscriptions(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer/job URI */ { http_status_t status; /* Policy status */ int count; /* Number of subscriptions */ int limit; /* Limit */ cupsd_subscription_t *sub; /* Subscription */ cups_array_t *ra; /* Requested attributes array */ ipp_attribute_t *attr; /* Attribute */ cups_ptype_t dtype; /* Destination type (printer/class) */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_job_t *job; /* Job pointer */ cupsd_printer_t *printer; /* Printer */ cupsd_policy_t *policy; /* Policy */ cups_array_t *exclude; /* Private attributes array */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_subscriptions(con=%p[%d], uri=%s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (!strcmp(resource, "/") || (!strncmp(resource, "/jobs", 5) && strlen(resource) <= 6) || (!strncmp(resource, "/printers", 9) && strlen(resource) <= 10) || (!strncmp(resource, "/classes", 8) && strlen(resource) <= 9)) { printer = NULL; job = NULL; } else if (!strncmp(resource, "/jobs/", 6) && resource[6]) { int job_id = atoi(resource + 6); printer = NULL; job = cupsdFindJob(job_id); if (!job) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), job_id); return; } } else if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } else if ((attr = ippFindAttribute(con->request, "notify-job-id", IPP_TAG_INTEGER)) != NULL) { job = cupsdFindJob(attr->values[0].integer); if (!job) { send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), attr->values[0].integer); return; } } else job = NULL; /* * Check policy... */ if (printer) policy = printer->op_policy_ptr; else policy = DefaultPolicyPtr; if ((status = cupsdCheckPolicy(policy, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Expire subscriptions as needed... */ cupsdExpireSubscriptions(NULL, NULL); /* * Copy the subscription attributes to the response using the * requested-attributes attribute that may be provided by the client. */ ra = create_requested_array(con->request); if ((attr = ippFindAttribute(con->request, "limit", IPP_TAG_INTEGER)) != NULL) limit = attr->values[0].integer; else limit = 0; /* * See if we only want to see subscriptions for a specific user... */ if ((attr = ippFindAttribute(con->request, "my-subscriptions", IPP_TAG_BOOLEAN)) != NULL && attr->values[0].boolean) strlcpy(username, get_username(con), sizeof(username)); else username[0] = '\0'; for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions), count = 0; sub; sub = (cupsd_subscription_t *)cupsArrayNext(Subscriptions)) if ((!printer || sub->dest == printer) && (!job || sub->job == job) && (!username[0] || !_cups_strcasecmp(username, sub->owner))) { ippAddSeparator(con->response); exclude = cupsdGetPrivateAttrs(sub->dest ? sub->dest->op_policy_ptr : policy, con, sub->dest, sub->owner); copy_subscription_attrs(con, sub, ra, exclude); count ++; if (limit && count >= limit) break; } cupsArrayDelete(ra); if (count) con->response->request.status.status_code = IPP_OK; else send_ipp_status(con, IPP_NOT_FOUND, _("No subscriptions found.")); } /* * 'get_username()' - Get the username associated with a request. */ static const char * /* O - Username */ get_username(cupsd_client_t *con) /* I - Connection */ { ipp_attribute_t *attr; /* Attribute */ if (con->username[0]) return (con->username); else if ((attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME)) != NULL) return (attr->values[0].string.text); else return ("anonymous"); } /* * 'hold_job()' - Hold a print job. */ static void hold_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job or Printer URI */ { ipp_attribute_t *attr; /* Current job-hold-until */ const char *when; /* New value */ int jobid; /* Job ID */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_job_t *job; /* Job information */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "hold_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * See if the job is in a state that allows holding... */ if (job->state_value > IPP_JOB_STOPPED) { /* * Return a "not-possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is finished and cannot be altered."), job->id); return; } /* * Hold the job and return... */ if ((attr = ippFindAttribute(con->request, "job-hold-until", IPP_TAG_ZERO)) != NULL) { if ((ippGetValueTag(attr) != IPP_TAG_KEYWORD && ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG) || ippGetCount(attr) != 1 || !ippValidateAttribute(attr)) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Unsupported 'job-hold-until' value.")); ippCopyAttribute(con->response, attr, 0); return; } when = ippGetString(attr, 0, NULL); cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED, cupsdFindDest(job->dest), job, "Job job-hold-until value changed by user."); } else when = "indefinite"; cupsdSetJobHoldUntil(job, when, 1); cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT, "Job held by \"%s\".", username); con->response->request.status.status_code = IPP_OK; } /* * 'hold_new_jobs()' - Hold pending/new jobs on a printer or class. */ static void hold_new_jobs(cupsd_client_t *con, /* I - Connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "hold_new_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Hold pending/new jobs sent to the printer... */ printer->holding_new_jobs = 1; cupsdSetPrinterReasons(printer, "+hold-new-jobs"); if (dtype & CUPS_PRINTER_CLASS) cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" now holding pending/new jobs (\"%s\").", printer->name, get_username(con)); else cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" now holding pending/new jobs (\"%s\").", printer->name, get_username(con)); /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'move_job()' - Move a job to a new destination. */ static void move_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job URI */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ cupsd_job_t *job; /* Current job */ const char *src; /* Source printer/class */ cups_ptype_t stype, /* Source type (printer or class) */ dtype; /* Destination type (printer/class) */ char scheme[HTTP_MAX_URI], /* Scheme portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_printer_t *sprinter, /* Source printer */ *dprinter; /* Destination printer */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "move_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Get the new printer or class... */ if ((attr = ippFindAttribute(con->request, "job-printer-uri", IPP_TAG_URI)) == NULL) { /* * Need job-printer-uri... */ send_ipp_status(con, IPP_BAD_REQUEST, _("job-printer-uri attribute missing.")); return; } if (!cupsdValidateDest(attr->values[0].string.text, &dtype, &dprinter)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * See if we have a job URI or a printer URI... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { /* * Move all jobs... */ if ((src = cupsdValidateDest(uri->values[0].string.text, &stype, &sprinter)) == NULL) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } job = NULL; } else { /* * Otherwise, just move a single job... */ if ((job = cupsdFindJob(attr->values[0].integer)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), attr->values[0].integer); return; } else { /* * Job found, initialize source pointers... */ src = NULL; sprinter = NULL; } } } else { /* * Got a job URI; parse it to get the job ID... */ if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } /* * See if the job exists... */ jobid = atoi(resource + 6); if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } else { /* * Job found, initialize source pointers... */ src = NULL; sprinter = NULL; } } /* * Check the policy of the destination printer... */ if ((status = cupsdCheckPolicy(dprinter->op_policy_ptr, con, job ? job->username : NULL)) != HTTP_OK) { send_http_error(con, status, dprinter); return; } /* * Now move the job or jobs... */ if (job) { /* * See if the job has been completed... */ if (job->state_value > IPP_JOB_STOPPED) { /* * Return a "not-possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is finished and cannot be altered."), job->id); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * Move the job to a different printer or class... */ cupsdMoveJob(job, dprinter); } else { /* * Got the source printer, now look through the jobs... */ for (job = (cupsd_job_t *)cupsArrayFirst(Jobs); job; job = (cupsd_job_t *)cupsArrayNext(Jobs)) { /* * See if the job is pointing at the source printer or has not been * completed... */ if (_cups_strcasecmp(job->dest, src) || job->state_value > IPP_JOB_STOPPED) continue; /* * See if the job can be moved by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) continue; /* * Move the job to a different printer or class... */ cupsdMoveJob(job, dprinter); } } /* * Start jobs if possible... */ cupsdCheckJobs(); /* * Return with "everything is OK" status... */ con->response->request.status.status_code = IPP_OK; } /* * 'ppd_parse_line()' - Parse a PPD default line. */ static int /* O - 0 on success, -1 on failure */ ppd_parse_line(const char *line, /* I - Line */ char *option, /* O - Option name */ int olen, /* I - Size of option name */ char *choice, /* O - Choice name */ int clen) /* I - Size of choice name */ { /* * Verify this is a default option line... */ if (strncmp(line, "*Default", 8)) return (-1); /* * Read the option name... */ for (line += 8, olen --; *line > ' ' && *line < 0x7f && *line != ':' && *line != '/'; line ++) if (olen > 0) { *option++ = *line; olen --; } *option = '\0'; /* * Skip everything else up to the colon (:)... */ while (*line && *line != ':') line ++; if (!*line) return (-1); line ++; /* * Now grab the option choice, skipping leading whitespace... */ while (isspace(*line & 255)) line ++; for (clen --; *line > ' ' && *line < 0x7f && *line != ':' && *line != '/'; line ++) if (clen > 0) { *choice++ = *line; clen --; } *choice = '\0'; /* * Return with no errors... */ return (0); } /* * 'print_job()' - Print a file to a printer or class. */ static void print_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { ipp_attribute_t *attr; /* Current attribute */ ipp_attribute_t *doc_name; /* document-name attribute */ ipp_attribute_t *format; /* Document-format attribute */ const char *default_format; /* document-format-default value */ cupsd_job_t *job; /* New job */ char filename[1024]; /* Job filename */ mime_type_t *filetype; /* Type of file */ char super[MIME_MAX_SUPER], /* Supertype of file */ type[MIME_MAX_TYPE], /* Subtype of file */ mimetype[MIME_MAX_SUPER + MIME_MAX_TYPE + 2]; /* Textual name of mime type */ cupsd_printer_t *printer; /* Printer data */ struct stat fileinfo; /* File information */ int kbytes; /* Size of file */ int compression; /* Document compression */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "print_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Validate print file attributes, for now just document-format and * compression (CUPS only supports "none" and "gzip")... */ compression = CUPS_FILE_NONE; if ((attr = ippFindAttribute(con->request, "compression", IPP_TAG_KEYWORD)) != NULL) { if (strcmp(attr->values[0].string.text, "none") #ifdef HAVE_LIBZ && strcmp(attr->values[0].string.text, "gzip") #endif /* HAVE_LIBZ */ ) { send_ipp_status(con, IPP_ATTRIBUTES, _("Unsupported compression \"%s\"."), attr->values[0].string.text); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_KEYWORD, "compression", NULL, attr->values[0].string.text); return; } #ifdef HAVE_LIBZ if (!strcmp(attr->values[0].string.text, "gzip")) compression = CUPS_FILE_GZIP; #endif /* HAVE_LIBZ */ } /* * Do we have a file to print? */ if (!con->filename) { send_ipp_status(con, IPP_BAD_REQUEST, _("No file in print request.")); return; } /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, NULL, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Is it a format we support? */ doc_name = ippFindAttribute(con->request, "document-name", IPP_TAG_NAME); if (doc_name) ippSetName(con->request, &doc_name, "document-name-supplied"); if ((format = ippFindAttribute(con->request, "document-format", IPP_TAG_MIMETYPE)) != NULL) { /* * Grab format from client... */ if (sscanf(format->values[0].string.text, "%15[^/]/%255[^;]", super, type) != 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad document-format \"%s\"."), format->values[0].string.text); return; } ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-supplied", NULL, ippGetString(format, 0, NULL)); } else if ((default_format = cupsGetOption("document-format", printer->num_options, printer->options)) != NULL) { /* * Use default document format... */ if (sscanf(default_format, "%15[^/]/%255[^;]", super, type) != 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad document-format \"%s\"."), default_format); return; } } else { /* * Auto-type it! */ strlcpy(super, "application", sizeof(super)); strlcpy(type, "octet-stream", sizeof(type)); } _cupsRWLockRead(&MimeDatabase->lock); if (!strcmp(super, "application") && !strcmp(type, "octet-stream")) { /* * Auto-type the file... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "[Job ???] Auto-typing file..."); filetype = mimeFileType(MimeDatabase, con->filename, doc_name ? doc_name->values[0].string.text : NULL, &compression); if (!filetype) filetype = mimeType(MimeDatabase, super, type); cupsdLogMessage(CUPSD_LOG_INFO, "[Job ???] Request file type is %s/%s.", filetype->super, filetype->type); snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-detected", NULL, mimetype); } else filetype = mimeType(MimeDatabase, super, type); _cupsRWUnlock(&MimeDatabase->lock); if (filetype && (!format || (!strcmp(super, "application") && !strcmp(type, "octet-stream")))) { /* * Replace the document-format attribute value with the auto-typed or * default one. */ snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); if (format) ippSetString(con->request, &format, 0, mimetype); else ippAddString(con->request, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format", NULL, mimetype); } else if (!filetype) { send_ipp_status(con, IPP_DOCUMENT_FORMAT, _("Unsupported document-format \"%s\"."), format ? format->values[0].string.text : "application/octet-stream"); cupsdLogMessage(CUPSD_LOG_INFO, "Hint: Do you have the raw file printing rules enabled?"); if (format) ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_MIMETYPE, "document-format", NULL, format->values[0].string.text); return; } /* * Read any embedded job ticket info from PS files... */ if (!_cups_strcasecmp(filetype->super, "application") && (!_cups_strcasecmp(filetype->type, "postscript") || !_cups_strcasecmp(filetype->type, "pdf"))) read_job_ticket(con); /* * Create the job object... */ if ((job = add_job(con, printer, filetype)) == NULL) return; /* * Update quota data... */ if (stat(con->filename, &fileinfo)) kbytes = 0; else kbytes = (fileinfo.st_size + 1023) / 1024; cupsdUpdateQuota(printer, job->username, 0, kbytes); job->koctets += kbytes; if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) attr->values[0].integer += kbytes; /* * Add the job file... */ if (add_file(con, job, filetype, compression)) return; snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->num_files); if (rename(con->filename, filename)) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to rename job document file \"%s\": %s", filename, strerror(errno)); send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to rename job document file.")); return; } cupsdClearString(&con->filename); /* * See if we need to add the ending sheet... */ if (cupsdTimeoutJob(job)) return; /* * Log and save the job... */ cupsdLogJob(job, CUPSD_LOG_INFO, "File of type %s/%s queued by \"%s\".", filetype->super, filetype->type, job->username); cupsdLogJob(job, CUPSD_LOG_DEBUG, "hold_until=%d", (int)job->hold_until); cupsdLogJob(job, CUPSD_LOG_INFO, "Queued on \"%s\" by \"%s\".", job->dest, job->username); /* * Start the job if possible... */ cupsdCheckJobs(); } /* * 'read_job_ticket()' - Read a job ticket embedded in a print file. * * This function only gets called when printing a single PDF or PostScript * file using the Print-Job operation. It doesn't work for Create-Job + * Send-File, since the job attributes need to be set at job creation * time for banners to work. The embedded job ticket stuff is here * primarily to allow the Windows printer driver for CUPS to pass in JCL * options and IPP attributes which otherwise would be lost. * * The format of a job ticket is simple: * * %cupsJobTicket: attr1=value1 attr2=value2 ... attrN=valueN * * %cupsJobTicket: attr1=value1 * %cupsJobTicket: attr2=value2 * ... * %cupsJobTicket: attrN=valueN * * Job ticket lines must appear immediately after the first line that * specifies PostScript (%!PS-Adobe-3.0) or PDF (%PDF) format, and CUPS * stops looking for job ticket info when it finds a line that does not begin * with "%cupsJobTicket:". * * The maximum length of a job ticket line, including the prefix, is * 255 characters to conform with the Adobe DSC. * * Read-only attributes are rejected with a notice to the error log in * case a malicious user tries anything. Since the job ticket is read * prior to attribute validation in print_job(), job ticket attributes * will go through the same validation as IPP attributes... */ static void read_job_ticket(cupsd_client_t *con) /* I - Client connection */ { cups_file_t *fp; /* File to read from */ char line[256]; /* Line data */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ ipp_t *ticket; /* New attributes */ ipp_attribute_t *attr, /* Current attribute */ *attr2, /* Job attribute */ *prev2; /* Previous job attribute */ /* * First open the print file... */ if ((fp = cupsFileOpen(con->filename, "rb")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open print file for job ticket - %s", strerror(errno)); return; } /* * Skip the first line... */ if (cupsFileGets(fp, line, sizeof(line)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to read from print file for job ticket - %s", strerror(errno)); cupsFileClose(fp); return; } if (strncmp(line, "%!PS-Adobe-", 11) && strncmp(line, "%PDF-", 5)) { /* * Not a DSC-compliant file, so no job ticket info will be available... */ cupsFileClose(fp); return; } /* * Read job ticket info from the file... */ num_options = 0; options = NULL; while (cupsFileGets(fp, line, sizeof(line))) { /* * Stop at the first non-ticket line... */ if (strncmp(line, "%cupsJobTicket:", 15)) break; /* * Add the options to the option array... */ num_options = cupsParseOptions(line + 15, num_options, &options); } /* * Done with the file; see if we have any options... */ cupsFileClose(fp); if (num_options == 0) return; /* * OK, convert the options to an attribute list, and apply them to * the request... */ ticket = ippNew(); cupsEncodeOptions(ticket, num_options, options); /* * See what the user wants to change. */ for (attr = ticket->attrs; attr; attr = attr->next) { if (attr->group_tag != IPP_TAG_JOB || !attr->name) continue; if (!strncmp(attr->name, "date-time-at-", 13) || !strcmp(attr->name, "job-impressions-completed") || !strcmp(attr->name, "job-media-sheets-completed") || !strncmp(attr->name, "job-k-octets", 12) || !strcmp(attr->name, "job-id") || !strcmp(attr->name, "job-originating-host-name") || !strcmp(attr->name, "job-originating-user-name") || !strcmp(attr->name, "job-pages-completed") || !strcmp(attr->name, "job-printer-uri") || !strncmp(attr->name, "job-state", 9) || !strcmp(attr->name, "job-uri") || !strncmp(attr->name, "time-at-", 8)) continue; /* Read-only attrs */ if ((attr2 = ippFindAttribute(con->request, attr->name, IPP_TAG_ZERO)) != NULL) { /* * Some other value; first free the old value... */ if (con->request->attrs == attr2) { con->request->attrs = attr2->next; prev2 = NULL; } else { for (prev2 = con->request->attrs; prev2; prev2 = prev2->next) if (prev2->next == attr2) { prev2->next = attr2->next; break; } } if (con->request->last == attr2) con->request->last = prev2; ippDeleteAttribute(NULL, attr2); } /* * Add new option by copying it... */ ippCopyAttribute(con->request, attr, 0); } /* * Then free the attribute list and option array... */ ippDelete(ticket); cupsFreeOptions(num_options, options); } /* * 'reject_jobs()' - Reject print jobs to a printer. */ static void reject_jobs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer or class URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ ipp_attribute_t *attr; /* printer-state-message text */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "reject_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Reject jobs sent to the printer... */ printer->accepting = 0; if ((attr = ippFindAttribute(con->request, "printer-state-message", IPP_TAG_TEXT)) == NULL) strlcpy(printer->state_message, "Rejecting Jobs", sizeof(printer->state_message)); else strlcpy(printer->state_message, attr->values[0].string.text, sizeof(printer->state_message)); cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "No longer accepting jobs."); if (dtype & CUPS_PRINTER_CLASS) { cupsdMarkDirty(CUPSD_DIRTY_CLASSES); cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" rejecting jobs (\"%s\").", printer->name, get_username(con)); } else { cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" rejecting jobs (\"%s\").", printer->name, get_username(con)); } /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'release_held_new_jobs()' - Release pending/new jobs on a printer or class. */ static void release_held_new_jobs( cupsd_client_t *con, /* I - Connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "release_held_new_jobs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Hold pending/new jobs sent to the printer... */ printer->holding_new_jobs = 0; cupsdSetPrinterReasons(printer, "-hold-new-jobs"); if (dtype & CUPS_PRINTER_CLASS) cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" now printing pending/new jobs (\"%s\").", printer->name, get_username(con)); else cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" now printing pending/new jobs (\"%s\").", printer->name, get_username(con)); cupsdCheckJobs(); /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'release_job()' - Release a held print job. */ static void release_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job or Printer URI */ { ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsd_job_t *job; /* Job information */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "release_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if job is "held"... */ if (job->state_value != IPP_JOB_HELD) { /* * Nope - return a "not possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is not held."), jobid); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * Reset the job-hold-until value to "no-hold"... */ if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (attr) { ippSetValueTag(job->attrs, &attr, IPP_TAG_KEYWORD); ippSetString(job->attrs, &attr, 0, "no-hold"); cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED, cupsdFindDest(job->dest), job, "Job job-hold-until value changed by user."); ippSetString(job->attrs, &job->reasons, 0, "none"); } /* * Release the job and return... */ cupsdReleaseJob(job); cupsdAddEvent(CUPSD_EVENT_JOB_STATE, cupsdFindDest(job->dest), job, "Job released by user."); cupsdLogJob(job, CUPSD_LOG_INFO, "Released by \"%s\".", username); con->response->request.status.status_code = IPP_OK; cupsdCheckJobs(); } /* * 'renew_subscription()' - Renew an existing subscription... */ static void renew_subscription( cupsd_client_t *con, /* I - Client connection */ int sub_id) /* I - Subscription ID */ { http_status_t status; /* Policy status */ cupsd_subscription_t *sub; /* Subscription */ ipp_attribute_t *lease; /* notify-lease-duration */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "renew_subscription(con=%p[%d], sub_id=%d)", con, con->number, sub_id); /* * Is the subscription ID valid? */ if ((sub = cupsdFindSubscription(sub_id)) == NULL) { /* * Bad subscription ID... */ send_ipp_status(con, IPP_NOT_FOUND, _("Subscription #%d does not exist."), sub_id); return; } if (sub->job) { /* * Job subscriptions cannot be renewed... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job subscriptions cannot be renewed.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(sub->dest ? sub->dest->op_policy_ptr : DefaultPolicyPtr, con, sub->owner)) != HTTP_OK) { send_http_error(con, status, sub->dest); return; } /* * Renew the subscription... */ lease = ippFindAttribute(con->request, "notify-lease-duration", IPP_TAG_INTEGER); sub->lease = lease ? lease->values[0].integer : DefaultLeaseDuration; if (MaxLeaseDuration && (sub->lease == 0 || sub->lease > MaxLeaseDuration)) { cupsdLogMessage(CUPSD_LOG_INFO, "renew_subscription: Limiting notify-lease-duration to " "%d seconds.", MaxLeaseDuration); sub->lease = MaxLeaseDuration; } sub->expire = sub->lease ? time(NULL) + sub->lease : 0; cupsdMarkDirty(CUPSD_DIRTY_SUBSCRIPTIONS); con->response->request.status.status_code = IPP_OK; ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER, "notify-lease-duration", sub->lease); } /* * 'restart_job()' - Restart an old print job. */ static void restart_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job or Printer URI */ { ipp_attribute_t *attr; /* Current attribute */ int jobid; /* Job ID */ cupsd_job_t *job; /* Job information */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "restart_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if job is in any of the "completed" states... */ if (job->state_value <= IPP_JOB_PROCESSING) { /* * Nope - return a "not possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is not complete."), jobid); return; } /* * See if we have retained the job files... */ cupsdLoadJob(job); if (!job->attrs || job->num_files == 0) { /* * Nope - return a "not possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d cannot be restarted - no files."), jobid); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * See if the job-hold-until attribute is specified... */ if ((attr = ippFindAttribute(con->request, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(con->request, "job-hold-until", IPP_TAG_NAME); if (attr && strcmp(attr->values[0].string.text, "no-hold")) { /* * Return the job to a held state... */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Restarted by \"%s\" with job-hold-until=%s.", username, attr->values[0].string.text); cupsdSetJobHoldUntil(job, attr->values[0].string.text, 1); cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT, "Job restarted by user with job-hold-until=%s", attr->values[0].string.text); } else { /* * Restart the job... */ cupsdRestartJob(job); cupsdCheckJobs(); } cupsdLogJob(job, CUPSD_LOG_INFO, "Restarted by \"%s\".", username); con->response->request.status.status_code = IPP_OK; } /* * 'save_auth_info()' - Save authentication information for a job. */ static void save_auth_info( cupsd_client_t *con, /* I - Client connection */ cupsd_job_t *job, /* I - Job */ ipp_attribute_t *auth_info) /* I - auth-info attribute, if any */ { int i; /* Looping var */ char filename[1024]; /* Job authentication filename */ cups_file_t *fp; /* Job authentication file */ char line[65536]; /* Line for file */ cupsd_printer_t *dest; /* Destination printer/class */ /* * This function saves the in-memory authentication information for * a job so that it can be used to authenticate with a remote host. * The information is stored in a file that is readable only by the * root user. The fields are Base-64 encoded, each on a separate line, * followed by random number (up to 1024) of newlines to limit the * amount of information that is exposed. * * Because of the potential for exposing of authentication information, * this functionality is only enabled when running cupsd as root. * * This caching only works for the Basic and BasicDigest authentication * types. Digest authentication cannot be cached this way, and in * the future Kerberos authentication may make all of this obsolete. * * Authentication information is saved whenever an authenticated * Print-Job, Create-Job, or CUPS-Authenticate-Job operation is * performed. * * This information is deleted after a job is completed or canceled, * so reprints may require subsequent re-authentication. */ if (RunUser) return; if ((dest = cupsdFindDest(job->dest)) == NULL) return; /* * Create the authentication file and change permissions... */ snprintf(filename, sizeof(filename), "%s/a%05d", RequestRoot, job->id); if ((fp = cupsFileOpen(filename, "w")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to save authentication info to \"%s\" - %s", filename, strerror(errno)); return; } fchown(cupsFileNumber(fp), 0, 0); fchmod(cupsFileNumber(fp), 0400); cupsFilePuts(fp, "CUPSD-AUTH-V3\n"); for (i = 0; i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) cupsdClearString(job->auth_env + i); if (auth_info && auth_info->num_values == dest->num_auth_info_required) { /* * Write 1 to 3 auth values... */ for (i = 0; i < auth_info->num_values && i < (int)(sizeof(job->auth_env) / sizeof(job->auth_env[0])); i ++) { if (strcmp(dest->auth_info_required[i], "negotiate")) { httpEncode64_2(line, sizeof(line), auth_info->values[i].string.text, (int)strlen(auth_info->values[i].string.text)); cupsFilePutConf(fp, dest->auth_info_required[i], line); } else cupsFilePutConf(fp, dest->auth_info_required[i], auth_info->values[i].string.text); if (!strcmp(dest->auth_info_required[i], "username")) cupsdSetStringf(job->auth_env + i, "AUTH_USERNAME=%s", auth_info->values[i].string.text); else if (!strcmp(dest->auth_info_required[i], "domain")) cupsdSetStringf(job->auth_env + i, "AUTH_DOMAIN=%s", auth_info->values[i].string.text); else if (!strcmp(dest->auth_info_required[i], "password")) cupsdSetStringf(job->auth_env + i, "AUTH_PASSWORD=%s", auth_info->values[i].string.text); else if (!strcmp(dest->auth_info_required[i], "negotiate")) cupsdSetStringf(job->auth_env + i, "AUTH_NEGOTIATE=%s", auth_info->values[i].string.text); else i --; } } else if (auth_info && auth_info->num_values == 2 && dest->num_auth_info_required == 1 && !strcmp(dest->auth_info_required[0], "negotiate")) { /* * Allow fallback to username+password for Kerberized queues... */ httpEncode64_2(line, sizeof(line), auth_info->values[0].string.text, (int)strlen(auth_info->values[0].string.text)); cupsFilePutConf(fp, "username", line); cupsdSetStringf(job->auth_env + 0, "AUTH_USERNAME=%s", auth_info->values[0].string.text); httpEncode64_2(line, sizeof(line), auth_info->values[1].string.text, (int)strlen(auth_info->values[1].string.text)); cupsFilePutConf(fp, "password", line); cupsdSetStringf(job->auth_env + 1, "AUTH_PASSWORD=%s", auth_info->values[1].string.text); } else if (con->username[0]) { /* * Write the authenticated username... */ httpEncode64_2(line, sizeof(line), con->username, (int)strlen(con->username)); cupsFilePutConf(fp, "username", line); cupsdSetStringf(job->auth_env + 0, "AUTH_USERNAME=%s", con->username); /* * Write the authenticated password... */ httpEncode64_2(line, sizeof(line), con->password, (int)strlen(con->password)); cupsFilePutConf(fp, "password", line); cupsdSetStringf(job->auth_env + 1, "AUTH_PASSWORD=%s", con->password); } #ifdef HAVE_GSSAPI if (con->gss_uid > 0) { cupsFilePrintf(fp, "uid %d\n", (int)con->gss_uid); cupsdSetStringf(&job->auth_uid, "AUTH_UID=%d", (int)con->gss_uid); } #endif /* HAVE_GSSAPI */ /* * Write a random number of newlines to the end of the file... */ for (i = (CUPS_RAND() % 1024); i >= 0; i --) cupsFilePutChar(fp, '\n'); /* * Close the file and return... */ cupsFileClose(fp); } /* * 'send_document()' - Send a file to a printer or class. */ static void send_document(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { ipp_attribute_t *attr; /* Current attribute */ ipp_attribute_t *format; /* Request's document-format attribute */ ipp_attribute_t *jformat; /* Job's document-format attribute */ const char *default_format;/* document-format-default value */ int jobid; /* Job ID number */ cupsd_job_t *job; /* Current job */ char job_uri[HTTP_MAX_URI], /* Job URI */ scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ mime_type_t *filetype; /* Type of file */ char super[MIME_MAX_SUPER], /* Supertype of file */ type[MIME_MAX_TYPE], /* Subtype of file */ mimetype[MIME_MAX_SUPER + MIME_MAX_TYPE + 2]; /* Textual name of mime type */ char filename[1024]; /* Job filename */ cupsd_printer_t *printer; /* Current printer */ struct stat fileinfo; /* File information */ int kbytes; /* Size of file */ int compression; /* Type of compression */ int start_job; /* Start the job? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "send_document(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } printer = cupsdFindDest(job->dest); /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * OK, see if the client is sending the document compressed - CUPS * only supports "none" and "gzip". */ compression = CUPS_FILE_NONE; if ((attr = ippFindAttribute(con->request, "compression", IPP_TAG_KEYWORD)) != NULL) { if (strcmp(attr->values[0].string.text, "none") #ifdef HAVE_LIBZ && strcmp(attr->values[0].string.text, "gzip") #endif /* HAVE_LIBZ */ ) { send_ipp_status(con, IPP_ATTRIBUTES, _("Unsupported compression \"%s\"."), attr->values[0].string.text); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_KEYWORD, "compression", NULL, attr->values[0].string.text); return; } #ifdef HAVE_LIBZ if (!strcmp(attr->values[0].string.text, "gzip")) compression = CUPS_FILE_GZIP; #endif /* HAVE_LIBZ */ } /* * Do we have a file to print? */ if ((attr = ippFindAttribute(con->request, "last-document", IPP_TAG_BOOLEAN)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Missing last-document attribute in request.")); return; } if (!con->filename) { /* * Check for an empty request with "last-document" set to true, which is * used to close an "open" job by RFC 2911, section 3.3.2. */ if (job->num_files > 0 && attr->values[0].boolean) goto last_document; send_ipp_status(con, IPP_BAD_REQUEST, _("No file in print request.")); return; } /* * Is it a format we support? */ cupsdLoadJob(job); if ((format = ippFindAttribute(con->request, "document-format", IPP_TAG_MIMETYPE)) != NULL) { /* * Grab format from client... */ if (sscanf(format->values[0].string.text, "%15[^/]/%255[^;]", super, type) != 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad document-format \"%s\"."), format->values[0].string.text); return; } ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-supplied", NULL, ippGetString(format, 0, NULL)); } else if ((default_format = cupsGetOption("document-format", printer->num_options, printer->options)) != NULL) { /* * Use default document format... */ if (sscanf(default_format, "%15[^/]/%255[^;]", super, type) != 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad document-format-default \"%s\"."), default_format); return; } } else { /* * No document format attribute? Auto-type it! */ strlcpy(super, "application", sizeof(super)); strlcpy(type, "octet-stream", sizeof(type)); } _cupsRWLockRead(&MimeDatabase->lock); if (!strcmp(super, "application") && !strcmp(type, "octet-stream")) { /* * Auto-type the file... */ ipp_attribute_t *doc_name; /* document-name attribute */ cupsdLogJob(job, CUPSD_LOG_DEBUG, "Auto-typing file..."); doc_name = ippFindAttribute(con->request, "document-name", IPP_TAG_NAME); filetype = mimeFileType(MimeDatabase, con->filename, doc_name ? doc_name->values[0].string.text : NULL, &compression); if (!filetype) filetype = mimeType(MimeDatabase, super, type); if (filetype) cupsdLogJob(job, CUPSD_LOG_DEBUG, "Request file type is %s/%s.", filetype->super, filetype->type); snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-detected", NULL, mimetype); } else filetype = mimeType(MimeDatabase, super, type); _cupsRWUnlock(&MimeDatabase->lock); if (filetype) { /* * Replace the document-format attribute value with the auto-typed or * default one. */ snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); if ((jformat = ippFindAttribute(job->attrs, "document-format", IPP_TAG_MIMETYPE)) != NULL) ippSetString(job->attrs, &jformat, 0, mimetype); else ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format", NULL, mimetype); } else if (!filetype) { send_ipp_status(con, IPP_DOCUMENT_FORMAT, _("Unsupported document-format \"%s/%s\"."), super, type); cupsdLogMessage(CUPSD_LOG_INFO, "Hint: Do you have the raw file printing rules enabled?"); if (format) ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_MIMETYPE, "document-format", NULL, format->values[0].string.text); return; } if (printer->filetypes && !cupsArrayFind(printer->filetypes, filetype)) { snprintf(mimetype, sizeof(mimetype), "%s/%s", filetype->super, filetype->type); send_ipp_status(con, IPP_DOCUMENT_FORMAT, _("Unsupported document-format \"%s\"."), mimetype); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_MIMETYPE, "document-format", NULL, mimetype); return; } /* * Add the file to the job... */ if (add_file(con, job, filetype, compression)) return; if ((attr = ippFindAttribute(con->request, "document-name", IPP_TAG_NAME)) != NULL) ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name-supplied", NULL, ippGetString(attr, 0, NULL)); if (stat(con->filename, &fileinfo)) kbytes = 0; else kbytes = (fileinfo.st_size + 1023) / 1024; cupsdUpdateQuota(printer, job->username, 0, kbytes); job->koctets += kbytes; if ((attr = ippFindAttribute(job->attrs, "job-k-octets", IPP_TAG_INTEGER)) != NULL) attr->values[0].integer += kbytes; snprintf(filename, sizeof(filename), "%s/d%05d-%03d", RequestRoot, job->id, job->num_files); if (rename(con->filename, filename)) { cupsdLogJob(job, CUPSD_LOG_ERROR, "Unable to rename job document file \"%s\": %s", filename, strerror(errno)); send_ipp_status(con, IPP_INTERNAL_ERROR, _("Unable to rename job document file.")); return; } cupsdClearString(&con->filename); cupsdLogJob(job, CUPSD_LOG_INFO, "File of type %s/%s queued by \"%s\".", filetype->super, filetype->type, job->username); /* * Start the job if this is the last document... */ last_document: if ((attr = ippFindAttribute(con->request, "last-document", IPP_TAG_BOOLEAN)) != NULL && attr->values[0].boolean) { /* * See if we need to add the ending sheet... */ if (cupsdTimeoutJob(job)) return; if (job->state_value == IPP_JOB_STOPPED) { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; ippSetString(job->attrs, &job->reasons, 0, "none"); } else if (job->state_value == IPP_JOB_HELD) { if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (!attr || !strcmp(attr->values[0].string.text, "no-hold")) { job->state->values[0].integer = IPP_JOB_PENDING; job->state_value = IPP_JOB_PENDING; ippSetString(job->attrs, &job->reasons, 0, "none"); } else ippSetString(job->attrs, &job->reasons, 0, "job-hold-until-specified"); } job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); start_job = 1; } else { if ((attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(job->attrs, "job-hold-until", IPP_TAG_NAME); if (!attr || !strcmp(attr->values[0].string.text, "no-hold")) { job->state->values[0].integer = IPP_JOB_HELD; job->state_value = IPP_JOB_HELD; job->hold_until = time(NULL) + MultipleOperationTimeout; ippSetString(job->attrs, &job->reasons, 0, "job-incoming"); job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); } start_job = 0; } /* * Fill in the response info... */ httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL, con->clientname, con->clientport, "/jobs/%d", jobid); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_URI, "job-uri", NULL, job_uri); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", jobid); ippAddInteger(con->response, IPP_TAG_JOB, IPP_TAG_ENUM, "job-state", (int)job->state_value); ippAddString(con->response, IPP_TAG_JOB, IPP_TAG_KEYWORD, "job-state-reasons", NULL, job->reasons->values[0].string.text); con->response->request.status.status_code = IPP_OK; /* * Start the job if necessary... */ if (start_job) cupsdCheckJobs(); } /* * 'send_http_error()' - Send a HTTP error back to the IPP client. */ static void send_http_error( cupsd_client_t *con, /* I - Client connection */ http_status_t status, /* I - HTTP status code */ cupsd_printer_t *printer) /* I - Printer, if any */ { ipp_attribute_t *uri; /* Request URI, if any */ if ((uri = ippFindAttribute(con->request, "printer-uri", IPP_TAG_URI)) == NULL) uri = ippFindAttribute(con->request, "job-uri", IPP_TAG_URI); cupsdLogMessage(status == HTTP_FORBIDDEN ? CUPSD_LOG_ERROR : CUPSD_LOG_DEBUG, "[Client %d] Returning HTTP %s for %s (%s) from %s", con->number, httpStatus(status), con->request ? ippOpString(con->request->request.op.operation_id) : "no operation-id", uri ? uri->values[0].string.text : "no URI", con->http->hostname); if (printer) { int auth_type; /* Type of authentication required */ auth_type = CUPSD_AUTH_NONE; if (status == HTTP_UNAUTHORIZED && printer->num_auth_info_required > 0 && !strcmp(printer->auth_info_required[0], "negotiate") && con->request && (con->request->request.op.operation_id == IPP_PRINT_JOB || con->request->request.op.operation_id == IPP_CREATE_JOB || con->request->request.op.operation_id == CUPS_AUTHENTICATE_JOB)) { /* * Creating and authenticating jobs requires Kerberos... */ auth_type = CUPSD_AUTH_NEGOTIATE; } else { /* * Use policy/location-defined authentication requirements... */ char resource[HTTP_MAX_URI]; /* Resource portion of URI */ cupsd_location_t *auth; /* Pointer to authentication element */ if (printer->type & CUPS_PRINTER_CLASS) snprintf(resource, sizeof(resource), "/classes/%s", printer->name); else snprintf(resource, sizeof(resource), "/printers/%s", printer->name); if ((auth = cupsdFindBest(resource, HTTP_POST)) == NULL || auth->type == CUPSD_AUTH_NONE) auth = cupsdFindPolicyOp(printer->op_policy_ptr, con->request ? con->request->request.op.operation_id : IPP_PRINT_JOB); if (auth) { if (auth->type == CUPSD_AUTH_DEFAULT) auth_type = cupsdDefaultAuthType(); else auth_type = auth->type; } } cupsdSendError(con, status, auth_type); } else cupsdSendError(con, status, CUPSD_AUTH_NONE); ippDelete(con->response); con->response = NULL; return; } /* * 'send_ipp_status()' - Send a status back to the IPP client. */ static void send_ipp_status(cupsd_client_t *con, /* I - Client connection */ ipp_status_t status, /* I - IPP status code */ const char *message,/* I - Status message */ ...) /* I - Additional args as needed */ { va_list ap; /* Pointer to additional args */ char formatted[1024]; /* Formatted error message */ va_start(ap, message); vsnprintf(formatted, sizeof(formatted), _cupsLangString(con->language, message), ap); va_end(ap); cupsdLogMessage(CUPSD_LOG_DEBUG, "%s %s: %s", ippOpString(con->request->request.op.operation_id), ippErrorString(status), formatted); con->response->request.status.status_code = status; if (ippFindAttribute(con->response, "attributes-charset", IPP_TAG_ZERO) == NULL) ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); if (ippFindAttribute(con->response, "attributes-natural-language", IPP_TAG_ZERO) == NULL) ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, DefaultLanguage); ippAddString(con->response, IPP_TAG_OPERATION, IPP_TAG_TEXT, "status-message", NULL, formatted); } /* * 'set_default()' - Set the default destination... */ static void set_default(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer, /* Printer */ *oldprinter; /* Old default printer */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "set_default(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(DefaultPolicyPtr, con, NULL)) != HTTP_OK) { send_http_error(con, status, NULL); return; } /* * Set it as the default... */ oldprinter = DefaultPrinter; DefaultPrinter = printer; if (oldprinter) cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, oldprinter, NULL, "%s is no longer the default printer.", oldprinter->name); cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL, "%s is now the default printer.", printer->name); cupsdMarkDirty(CUPSD_DIRTY_PRINTERS | CUPSD_DIRTY_CLASSES | CUPSD_DIRTY_PRINTCAP); cupsdLogMessage(CUPSD_LOG_INFO, "Default destination set to \"%s\" by \"%s\".", printer->name, get_username(con)); /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'set_job_attrs()' - Set job attributes. */ static void set_job_attrs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Job URI */ { ipp_attribute_t *attr, /* Current attribute */ *attr2; /* Job attribute */ int jobid; /* Job ID */ cupsd_job_t *job; /* Current job */ char scheme[HTTP_MAX_URI], /* Method portion of URI */ username[HTTP_MAX_URI], /* Username portion of URI */ host[HTTP_MAX_URI], /* Host portion of URI */ resource[HTTP_MAX_URI]; /* Resource portion of URI */ int port; /* Port portion of URI */ int event; /* Events? */ int check_jobs; /* Check jobs? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "set_job_attrs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Start with "everything is OK" status... */ con->response->request.status.status_code = IPP_OK; /* * See if we have a job URI or a printer URI... */ if (!strcmp(uri->name, "printer-uri")) { /* * Got a printer URI; see if we also have a job-id attribute... */ if ((attr = ippFindAttribute(con->request, "job-id", IPP_TAG_INTEGER)) == NULL) { send_ipp_status(con, IPP_BAD_REQUEST, _("Got a printer-uri attribute but no job-id.")); return; } jobid = attr->values[0].integer; } else { /* * Got a job URI; parse it to get the job ID... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri->values[0].string.text, scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)); if (strncmp(resource, "/jobs/", 6)) { /* * Not a valid URI! */ send_ipp_status(con, IPP_BAD_REQUEST, _("Bad job-uri \"%s\"."), uri->values[0].string.text); return; } jobid = atoi(resource + 6); } /* * See if the job exists... */ if ((job = cupsdFindJob(jobid)) == NULL) { /* * Nope - return a "not found" error... */ send_ipp_status(con, IPP_NOT_FOUND, _("Job #%d does not exist."), jobid); return; } /* * See if the job has been completed... */ if (job->state_value > IPP_JOB_STOPPED) { /* * Return a "not-possible" error... */ send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job #%d is finished and cannot be altered."), jobid); return; } /* * See if the job is owned by the requesting user... */ if (!validate_user(job, con, job->username, username, sizeof(username))) { send_http_error(con, con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED, cupsdFindDest(job->dest)); return; } /* * See what the user wants to change. */ cupsdLoadJob(job); check_jobs = 0; event = 0; for (attr = con->request->attrs; attr; attr = attr->next) { if (attr->group_tag != IPP_TAG_JOB || !attr->name) continue; if (!strcmp(attr->name, "attributes-charset") || !strcmp(attr->name, "attributes-natural-language") || !strncmp(attr->name, "date-time-at-", 13) || !strncmp(attr->name, "document-compression", 20) || !strncmp(attr->name, "document-format", 15) || !strcmp(attr->name, "job-detailed-status-messages") || !strcmp(attr->name, "job-document-access-errors") || !strcmp(attr->name, "job-id") || !strcmp(attr->name, "job-impressions-completed") || !strcmp(attr->name, "job-k-octets-completed") || !strcmp(attr->name, "job-media-sheets-completed") || !strcmp(attr->name, "job-originating-host-name") || !strcmp(attr->name, "job-originating-user-name") || !strcmp(attr->name, "job-pages-completed") || !strcmp(attr->name, "job-printer-up-time") || !strcmp(attr->name, "job-printer-uri") || !strcmp(attr->name, "job-sheets") || !strcmp(attr->name, "job-state-message") || !strcmp(attr->name, "job-state-reasons") || !strcmp(attr->name, "job-uri") || !strcmp(attr->name, "number-of-documents") || !strcmp(attr->name, "number-of-intervening-jobs") || !strcmp(attr->name, "output-device-assigned") || !strncmp(attr->name, "time-at-", 8)) { /* * Read-only attrs! */ send_ipp_status(con, IPP_ATTRIBUTES_NOT_SETTABLE, _("%s cannot be changed."), attr->name); attr2 = ippCopyAttribute(con->response, attr, 0); ippSetGroupTag(con->response, &attr2, IPP_TAG_UNSUPPORTED_GROUP); continue; } if (!ippValidateAttribute(attr)) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Bad '%s' value."), attr->name); ippCopyAttribute(con->response, attr, 0); return; } if (!strcmp(attr->name, "job-hold-until")) { const char *when = ippGetString(attr, 0, NULL); /* job-hold-until value */ if ((ippGetValueTag(attr) != IPP_TAG_KEYWORD && ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG) || ippGetCount(attr) != 1) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Unsupported 'job-hold-until' value.")); ippCopyAttribute(con->response, attr, 0); return; } cupsdLogJob(job, CUPSD_LOG_DEBUG, "Setting job-hold-until to %s", when); cupsdSetJobHoldUntil(job, when, 0); if (!strcmp(when, "no-hold")) { cupsdReleaseJob(job); check_jobs = 1; } else cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT, "Job held by \"%s\".", username); event |= CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_STATE; } else if (!strcmp(attr->name, "job-priority")) { /* * Change the job priority... */ if (attr->value_tag != IPP_TAG_INTEGER) { send_ipp_status(con, IPP_REQUEST_VALUE, _("Bad job-priority value.")); attr2 = ippCopyAttribute(con->response, attr, 0); ippSetGroupTag(con->response, &attr2, IPP_TAG_UNSUPPORTED_GROUP); } else if (job->state_value >= IPP_JOB_PROCESSING) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job is completed and cannot be changed.")); return; } else if (con->response->request.status.status_code == IPP_OK) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Setting job-priority to %d", attr->values[0].integer); cupsdSetJobPriority(job, attr->values[0].integer); check_jobs = 1; event |= CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED; } } else if (!strcmp(attr->name, "job-state")) { /* * Change the job state... */ if (attr->value_tag != IPP_TAG_ENUM) { send_ipp_status(con, IPP_REQUEST_VALUE, _("Bad job-state value.")); attr2 = ippCopyAttribute(con->response, attr, 0); ippSetGroupTag(con->response, &attr2, IPP_TAG_UNSUPPORTED_GROUP); } else { switch (attr->values[0].integer) { case IPP_JOB_PENDING : case IPP_JOB_HELD : if (job->state_value > IPP_JOB_HELD) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job state cannot be changed.")); return; } else if (con->response->request.status.status_code == IPP_OK) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Setting job-state to %d", attr->values[0].integer); cupsdSetJobState(job, (ipp_jstate_t)attr->values[0].integer, CUPSD_JOB_DEFAULT, "Job state changed by \"%s\"", username); check_jobs = 1; } break; case IPP_JOB_PROCESSING : case IPP_JOB_STOPPED : if (job->state_value != (ipp_jstate_t)attr->values[0].integer) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job state cannot be changed.")); return; } break; case IPP_JOB_CANCELED : case IPP_JOB_ABORTED : case IPP_JOB_COMPLETED : if (job->state_value > IPP_JOB_PROCESSING) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Job state cannot be changed.")); return; } else if (con->response->request.status.status_code == IPP_OK) { cupsdLogJob(job, CUPSD_LOG_DEBUG, "Setting job-state to %d", attr->values[0].integer); cupsdSetJobState(job, (ipp_jstate_t)attr->values[0].integer, CUPSD_JOB_DEFAULT, "Job state changed by \"%s\"", username); check_jobs = 1; } break; } } } else if (con->response->request.status.status_code != IPP_OK) continue; else if ((attr2 = ippFindAttribute(job->attrs, attr->name, IPP_TAG_ZERO)) != NULL) { /* * Some other value; first free the old value... */ if (job->attrs->prev) job->attrs->prev->next = attr2->next; else job->attrs->attrs = attr2->next; if (job->attrs->last == attr2) job->attrs->last = job->attrs->prev; ippDeleteAttribute(NULL, attr2); /* * Then copy the attribute... */ ippCopyAttribute(job->attrs, attr, 0); } else if (attr->value_tag == IPP_TAG_DELETEATTR) { /* * Delete the attribute... */ if ((attr2 = ippFindAttribute(job->attrs, attr->name, IPP_TAG_ZERO)) != NULL) { if (job->attrs->prev) job->attrs->prev->next = attr2->next; else job->attrs->attrs = attr2->next; if (attr2 == job->attrs->last) job->attrs->last = job->attrs->prev; ippDeleteAttribute(NULL, attr2); event |= CUPSD_EVENT_JOB_CONFIG_CHANGED; } } else { /* * Add new option by copying it... */ ippCopyAttribute(job->attrs, attr, 0); event |= CUPSD_EVENT_JOB_CONFIG_CHANGED; } } /* * Save the job... */ job->dirty = 1; cupsdMarkDirty(CUPSD_DIRTY_JOBS); /* * Send events as needed... */ if (event & CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED) cupsdAddEvent(CUPSD_EVENT_PRINTER_QUEUE_ORDER_CHANGED, cupsdFindDest(job->dest), job, "Job priority changed by user."); if (event & CUPSD_EVENT_JOB_STATE) cupsdAddEvent(CUPSD_EVENT_JOB_STATE, cupsdFindDest(job->dest), job, job->state_value == IPP_JOB_HELD ? "Job held by user." : "Job restarted by user."); if (event & CUPSD_EVENT_JOB_CONFIG_CHANGED) cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED, cupsdFindDest(job->dest), job, "Job options changed by user."); /* * Start jobs if possible... */ if (check_jobs) cupsdCheckJobs(); } /* * 'set_printer_attrs()' - Set printer attributes. */ static void set_printer_attrs(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer/class */ ipp_attribute_t *attr; /* Printer attribute */ int changed = 0; /* Was anything changed? */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "set_printer_attrs(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Return a list of attributes that can be set via Set-Printer-Attributes. */ if ((attr = ippFindAttribute(con->request, "printer-location", IPP_TAG_TEXT)) != NULL) { cupsdSetString(&printer->location, attr->values[0].string.text); changed = 1; } if ((attr = ippFindAttribute(con->request, "printer-geo-location", IPP_TAG_URI)) != NULL && !strncmp(attr->values[0].string.text, "geo:", 4)) { cupsdSetString(&printer->geo_location, attr->values[0].string.text); changed = 1; } if ((attr = ippFindAttribute(con->request, "printer-organization", IPP_TAG_TEXT)) != NULL) { cupsdSetString(&printer->organization, attr->values[0].string.text); changed = 1; } if ((attr = ippFindAttribute(con->request, "printer-organizational-unit", IPP_TAG_TEXT)) != NULL) { cupsdSetString(&printer->organizational_unit, attr->values[0].string.text); changed = 1; } if ((attr = ippFindAttribute(con->request, "printer-info", IPP_TAG_TEXT)) != NULL) { cupsdSetString(&printer->info, attr->values[0].string.text); changed = 1; } /* * Update the printer attributes and return... */ if (changed) { printer->config_time = time(NULL); cupsdSetPrinterAttrs(printer); cupsdMarkDirty(CUPSD_DIRTY_PRINTERS); cupsdAddEvent(CUPSD_EVENT_PRINTER_CONFIG, printer, NULL, "Printer \"%s\" description or location changed by \"%s\".", printer->name, get_username(con)); cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" description or location changed by \"%s\".", printer->name, get_username(con)); } con->response->request.status.status_code = IPP_OK; } /* * 'set_printer_defaults()' - Set printer default options from a request. */ static int /* O - 1 on success, 0 on failure */ set_printer_defaults( cupsd_client_t *con, /* I - Client connection */ cupsd_printer_t *printer) /* I - Printer */ { int i; /* Looping var */ ipp_attribute_t *attr; /* Current attribute */ size_t namelen; /* Length of attribute name */ char name[256], /* New attribute name */ value[256]; /* String version of integer attrs */ for (attr = con->request->attrs; attr; attr = attr->next) { /* * Skip non-printer attributes... */ if (attr->group_tag != IPP_TAG_PRINTER || !attr->name) continue; cupsdLogMessage(CUPSD_LOG_DEBUG2, "set_printer_defaults: %s", attr->name); if (!strcmp(attr->name, "job-sheets-default")) { /* * Only allow keywords and names... */ if (attr->value_tag != IPP_TAG_NAME && attr->value_tag != IPP_TAG_KEYWORD) continue; /* * Only allow job-sheets-default to be set when running without a * system high classification level... */ if (Classification) continue; cupsdSetString(&printer->job_sheets[0], attr->values[0].string.text); if (attr->num_values > 1) cupsdSetString(&printer->job_sheets[1], attr->values[1].string.text); else cupsdSetString(&printer->job_sheets[1], "none"); } else if (!strcmp(attr->name, "requesting-user-name-allowed")) { cupsdFreeStrings(&(printer->users)); printer->deny_users = 0; if (attr->value_tag == IPP_TAG_NAME && (attr->num_values > 1 || strcmp(attr->values[0].string.text, "all"))) { for (i = 0; i < attr->num_values; i ++) cupsdAddString(&(printer->users), attr->values[i].string.text); } } else if (!strcmp(attr->name, "requesting-user-name-denied")) { cupsdFreeStrings(&(printer->users)); printer->deny_users = 1; if (attr->value_tag == IPP_TAG_NAME && (attr->num_values > 1 || strcmp(attr->values[0].string.text, "none"))) { for (i = 0; i < attr->num_values; i ++) cupsdAddString(&(printer->users), attr->values[i].string.text); } } else if (!strcmp(attr->name, "job-quota-period")) { if (attr->value_tag != IPP_TAG_INTEGER) continue; cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting job-quota-period to %d...", attr->values[0].integer); cupsdFreeQuotas(printer); printer->quota_period = attr->values[0].integer; } else if (!strcmp(attr->name, "job-k-limit")) { if (attr->value_tag != IPP_TAG_INTEGER) continue; cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting job-k-limit to %d...", attr->values[0].integer); cupsdFreeQuotas(printer); printer->k_limit = attr->values[0].integer; } else if (!strcmp(attr->name, "job-page-limit")) { if (attr->value_tag != IPP_TAG_INTEGER) continue; cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting job-page-limit to %d...", attr->values[0].integer); cupsdFreeQuotas(printer); printer->page_limit = attr->values[0].integer; } else if (!strcmp(attr->name, "printer-op-policy")) { cupsd_policy_t *p; /* Policy */ if (attr->value_tag != IPP_TAG_NAME) continue; if ((p = cupsdFindPolicy(attr->values[0].string.text)) != NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting printer-op-policy to \"%s\"...", attr->values[0].string.text); cupsdSetString(&printer->op_policy, attr->values[0].string.text); printer->op_policy_ptr = p; } else { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Unknown printer-op-policy \"%s\"."), attr->values[0].string.text); return (0); } } else if (!strcmp(attr->name, "printer-error-policy")) { if (attr->value_tag != IPP_TAG_NAME && attr->value_tag != IPP_TAG_KEYWORD) continue; if (strcmp(attr->values[0].string.text, "retry-current-job") && ((printer->type & CUPS_PRINTER_CLASS) || (strcmp(attr->values[0].string.text, "abort-job") && strcmp(attr->values[0].string.text, "retry-job") && strcmp(attr->values[0].string.text, "stop-printer")))) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Unknown printer-error-policy \"%s\"."), attr->values[0].string.text); return (0); } cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting printer-error-policy to \"%s\"...", attr->values[0].string.text); cupsdSetString(&printer->error_policy, attr->values[0].string.text); } /* * Skip any other non-default attributes... */ namelen = strlen(attr->name); if (namelen < 9 || strcmp(attr->name + namelen - 8, "-default") || namelen > (sizeof(name) - 1) || attr->num_values != 1) continue; /* * OK, anything else must be a user-defined default... */ strlcpy(name, attr->name, sizeof(name)); name[namelen - 8] = '\0'; /* Strip "-default" */ switch (attr->value_tag) { case IPP_TAG_DELETEATTR : printer->num_options = cupsRemoveOption(name, printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Deleting %s", attr->name); break; case IPP_TAG_NAME : case IPP_TAG_TEXT : case IPP_TAG_KEYWORD : case IPP_TAG_URI : printer->num_options = cupsAddOption(name, attr->values[0].string.text, printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting %s to \"%s\"...", attr->name, attr->values[0].string.text); break; case IPP_TAG_BOOLEAN : printer->num_options = cupsAddOption(name, attr->values[0].boolean ? "true" : "false", printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting %s to %s...", attr->name, attr->values[0].boolean ? "true" : "false"); break; case IPP_TAG_INTEGER : case IPP_TAG_ENUM : printer->num_options = cupsAddIntegerOption(name, attr->values[0].integer, printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting %s to %s...", attr->name, value); break; case IPP_TAG_RANGE : snprintf(value, sizeof(value), "%d-%d", attr->values[0].range.lower, attr->values[0].range.upper); printer->num_options = cupsAddOption(name, value, printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting %s to %s...", attr->name, value); break; case IPP_TAG_RESOLUTION : snprintf(value, sizeof(value), "%dx%d%s", attr->values[0].resolution.xres, attr->values[0].resolution.yres, attr->values[0].resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); printer->num_options = cupsAddOption(name, value, printer->num_options, &(printer->options)); cupsdLogMessage(CUPSD_LOG_DEBUG, "Setting %s to %s...", attr->name, value); break; default : /* Do nothing for other values */ break; } } return (1); } /* * 'start_printer()' - Start a printer. */ static void start_printer(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { int i; /* Temporary variable */ http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "start_printer(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Start the printer... */ printer->state_message[0] = '\0'; cupsdStartPrinter(printer, 1); if (dtype & CUPS_PRINTER_CLASS) cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" started by \"%s\".", printer->name, get_username(con)); else cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" started by \"%s\".", printer->name, get_username(con)); cupsdCheckJobs(); /* * Check quotas... */ if ((i = check_quotas(con, printer)) < 0) { send_ipp_status(con, IPP_NOT_POSSIBLE, _("Quota limit reached.")); return; } else if (i == 0) { send_ipp_status(con, IPP_NOT_AUTHORIZED, _("Not allowed to print.")); return; } /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'stop_printer()' - Stop a printer. */ static void stop_printer(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ cups_ptype_t dtype; /* Destination type (printer/class) */ cupsd_printer_t *printer; /* Printer data */ ipp_attribute_t *attr; /* printer-state-message attribute */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "stop_printer(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } /* * Stop the printer... */ if ((attr = ippFindAttribute(con->request, "printer-state-message", IPP_TAG_TEXT)) == NULL) strlcpy(printer->state_message, "Paused", sizeof(printer->state_message)); else { strlcpy(printer->state_message, attr->values[0].string.text, sizeof(printer->state_message)); } cupsdStopPrinter(printer, 1); if (dtype & CUPS_PRINTER_CLASS) cupsdLogMessage(CUPSD_LOG_INFO, "Class \"%s\" stopped by \"%s\".", printer->name, get_username(con)); else cupsdLogMessage(CUPSD_LOG_INFO, "Printer \"%s\" stopped by \"%s\".", printer->name, get_username(con)); /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'url_encode_attr()' - URL-encode a string attribute. */ static void url_encode_attr(ipp_attribute_t *attr, /* I - Attribute */ char *buffer,/* I - String buffer */ size_t bufsize)/* I - Size of buffer */ { int i; /* Looping var */ char *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ strlcpy(buffer, attr->name, bufsize); bufptr = buffer + strlen(buffer); bufend = buffer + bufsize - 1; for (i = 0; i < attr->num_values; i ++) { if (bufptr >= bufend) break; if (i) *bufptr++ = ','; else *bufptr++ = '='; if (bufptr >= bufend) break; *bufptr++ = '\''; bufptr = url_encode_string(attr->values[i].string.text, bufptr, (size_t)(bufend - bufptr + 1)); if (bufptr >= bufend) break; *bufptr++ = '\''; } *bufptr = '\0'; } /* * 'url_encode_string()' - URL-encode a string. */ static char * /* O - End of string */ url_encode_string(const char *s, /* I - String */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of buffer */ { char *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ static const char *hex = "0123456789ABCDEF"; /* Hex digits */ bufptr = buffer; bufend = buffer + bufsize - 1; while (*s && bufptr < bufend) { if (*s == ' ' || *s == '%' || *s == '+') { if (bufptr >= (bufend - 2)) break; *bufptr++ = '%'; *bufptr++ = hex[(*s >> 4) & 15]; *bufptr++ = hex[*s & 15]; s ++; } else if (*s == '\'' || *s == '\\') { if (bufptr >= (bufend - 1)) break; *bufptr++ = '\\'; *bufptr++ = *s++; } else *bufptr++ = *s++; } *bufptr = '\0'; return (bufptr); } /* * 'user_allowed()' - See if a user is allowed to print to a queue. */ static int /* O - 0 if not allowed, 1 if allowed */ user_allowed(cupsd_printer_t *p, /* I - Printer or class */ const char *username) /* I - Username */ { struct passwd *pw; /* User password data */ char baseuser[256], /* Base username */ *baseptr, /* Pointer to "@" in base username */ *name; /* Current user name */ if (cupsArrayCount(p->users) == 0) return (1); if (!strcmp(username, "root")) return (1); if (strchr(username, '@')) { /* * Strip @REALM for username check... */ strlcpy(baseuser, username, sizeof(baseuser)); if ((baseptr = strchr(baseuser, '@')) != NULL) *baseptr = '\0'; username = baseuser; } pw = getpwnam(username); endpwent(); for (name = (char *)cupsArrayFirst(p->users); name; name = (char *)cupsArrayNext(p->users)) { if (name[0] == '@') { /* * Check group membership... */ if (cupsdCheckGroup(username, pw, name + 1)) break; } else if (name[0] == '#') { /* * Check UUID... */ if (cupsdCheckGroup(username, pw, name)) break; } else if (!_cups_strcasecmp(username, name)) break; } return ((name != NULL) != p->deny_users); } /* * 'validate_job()' - Validate printer options and destination. */ static void validate_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { http_status_t status; /* Policy status */ ipp_attribute_t *attr; /* Current attribute */ #ifdef HAVE_TLS ipp_attribute_t *auth_info; /* auth-info attribute */ #endif /* HAVE_TLS */ ipp_attribute_t *format, /* Document-format attribute */ *name; /* Job-name attribute */ cups_ptype_t dtype; /* Destination type (printer/class) */ char super[MIME_MAX_SUPER], /* Supertype of file */ type[MIME_MAX_TYPE]; /* Subtype of file */ cupsd_printer_t *printer; /* Printer */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "validate_job(%p[%d], %s)", con, con->number, uri->values[0].string.text); /* * OK, see if the client is sending the document compressed - CUPS * doesn't support compression yet... */ if ((attr = ippFindAttribute(con->request, "compression", IPP_TAG_KEYWORD)) != NULL) { if (strcmp(attr->values[0].string.text, "none") #ifdef HAVE_LIBZ && strcmp(attr->values[0].string.text, "gzip") #endif /* HAVE_LIBZ */ ) { send_ipp_status(con, IPP_ATTRIBUTES, _("Unsupported 'compression' value \"%s\"."), attr->values[0].string.text); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_KEYWORD, "compression", NULL, attr->values[0].string.text); return; } } /* * Is it a format we support? */ if ((format = ippFindAttribute(con->request, "document-format", IPP_TAG_MIMETYPE)) != NULL) { if (sscanf(format->values[0].string.text, "%15[^/]/%255[^;]", super, type) != 2) { send_ipp_status(con, IPP_BAD_REQUEST, _("Bad 'document-format' value \"%s\"."), format->values[0].string.text); return; } _cupsRWLockRead(&MimeDatabase->lock); if ((strcmp(super, "application") || strcmp(type, "octet-stream")) && !mimeType(MimeDatabase, super, type)) { cupsdLogMessage(CUPSD_LOG_INFO, "Hint: Do you have the raw file printing rules enabled?"); send_ipp_status(con, IPP_DOCUMENT_FORMAT, _("Unsupported 'document-format' value \"%s\"."), format->values[0].string.text); ippAddString(con->response, IPP_TAG_UNSUPPORTED_GROUP, IPP_TAG_MIMETYPE, "document-format", NULL, format->values[0].string.text); _cupsRWUnlock(&MimeDatabase->lock); return; } _cupsRWUnlock(&MimeDatabase->lock); } /* * Is the job-hold-until value valid? */ if ((attr = ippFindAttribute(con->request, "job-hold-until", IPP_TAG_ZERO)) != NULL && ((ippGetValueTag(attr) != IPP_TAG_KEYWORD && ippGetValueTag(attr) != IPP_TAG_NAME && ippGetValueTag(attr) != IPP_TAG_NAMELANG) || ippGetCount(attr) != 1 || !ippValidateAttribute(attr))) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Unsupported 'job-hold-until' value.")); ippCopyAttribute(con->response, attr, 0); return; } /* * Is the job-name valid? */ if ((name = ippFindAttribute(con->request, "job-name", IPP_TAG_ZERO)) != NULL) { if ((name->value_tag != IPP_TAG_NAME && name->value_tag != IPP_TAG_NAMELANG) || name->num_values != 1 || !ippValidateAttribute(name)) { if (StrictConformance) { send_ipp_status(con, IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES, _("Unsupported 'job-name' value.")); ippCopyAttribute(con->response, name, 0); return; } else { cupsdLogMessage(CUPSD_LOG_WARN, "Unsupported 'job-name' value, deleting from request."); ippDeleteAttribute(con->request, name); } } } /* * Is the destination valid? */ if (!cupsdValidateDest(uri->values[0].string.text, &dtype, &printer)) { /* * Bad URI... */ send_ipp_status(con, IPP_NOT_FOUND, _("The printer or class does not exist.")); return; } /* * Check policy... */ #ifdef HAVE_TLS auth_info = ippFindAttribute(con->request, "auth-info", IPP_TAG_TEXT); #endif /* HAVE_TLS */ if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK) { send_http_error(con, status, printer); return; } else if (printer->num_auth_info_required == 1 && !strcmp(printer->auth_info_required[0], "negotiate") && !con->username[0]) { send_http_error(con, HTTP_UNAUTHORIZED, printer); return; } #ifdef HAVE_TLS else if (auth_info && !con->http->tls && !httpAddrLocalhost(con->http->hostaddr)) { /* * Require encryption of auth-info over non-local connections... */ send_http_error(con, HTTP_UPGRADE_REQUIRED, printer); return; } #endif /* HAVE_TLS */ /* * Everything was ok, so return OK status... */ con->response->request.status.status_code = IPP_OK; } /* * 'validate_name()' - Make sure the printer name only contains valid chars. */ static int /* O - 0 if name is no good, 1 if good */ validate_name(const char *name) /* I - Name to check */ { const char *ptr; /* Pointer into name */ /* * Scan the whole name... */ for (ptr = name; *ptr; ptr ++) if ((*ptr > 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '#') return (0); /* * All the characters are good; validate the length, too... */ return ((ptr - name) < 128); } /* * 'validate_user()' - Validate the user for the request. */ static int /* O - 1 if permitted, 0 otherwise */ validate_user(cupsd_job_t *job, /* I - Job */ cupsd_client_t *con, /* I - Client connection */ const char *owner, /* I - Owner of job/resource */ char *username, /* O - Authenticated username */ size_t userlen) /* I - Length of username */ { cupsd_printer_t *printer; /* Printer for job */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "validate_user(job=%d, con=%d, owner=\"%s\", username=%p, userlen=" CUPS_LLFMT ")", job->id, con ? con->number : 0, owner ? owner : "(null)", username, CUPS_LLCAST userlen); /* * Validate input... */ if (!con || !owner || !username || userlen <= 0) return (0); /* * Get the best authenticated username that is available. */ strlcpy(username, get_username(con), userlen); /* * Check the username against the owner... */ printer = cupsdFindDest(job->dest); return (cupsdCheckPolicy(printer ? printer->op_policy_ptr : DefaultPolicyPtr, con, owner) == HTTP_OK); } cups-2.4.7/scheduler/filter.c0000644000175000017500000003032314502571342015771 0ustar zdohnalzdohnal/* * File type conversion routines for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include "mime.h" /* * Debug macros that used to be private API... */ #define DEBUG_puts(x) #define DEBUG_printf(...) /* * Local types... */ typedef struct _mime_typelist_s /**** List of source types ****/ { struct _mime_typelist_s *next; /* Next source type */ mime_type_t *src; /* Source type */ } _mime_typelist_t; /* * Local functions... */ static int mime_compare_filters(mime_filter_t *, mime_filter_t *); static int mime_compare_srcs(mime_filter_t *, mime_filter_t *); static cups_array_t *mime_find_filters(mime_t *mime, mime_type_t *src, size_t srcsize, mime_type_t *dst, int *cost, _mime_typelist_t *visited); /* * 'mimeAddFilter()' - Add a filter to the current MIME database. */ mime_filter_t * /* O - New filter */ mimeAddFilter(mime_t *mime, /* I - MIME database */ mime_type_t *src, /* I - Source type */ mime_type_t *dst, /* I - Destination type */ int cost, /* I - Relative time/resource cost */ const char *filter) /* I - Filter program to run */ { mime_filter_t *temp; /* New filter */ DEBUG_printf(("mimeAddFilter(mime=%p, src=%p(%s/%s), dst=%p(%s/%s), cost=%d, " "filter=\"%s\")", mime, src, src ? src->super : "???", src ? src->type : "???", dst, dst ? dst->super : "???", dst ? dst->type : "???", cost, filter)); /* * Range-check the input... */ if (!mime || !src || !dst || !filter) { DEBUG_puts("1mimeAddFilter: Returning NULL."); return (NULL); } /* * See if we already have an existing filter for the given source and * destination... */ if ((temp = mimeFilterLookup(mime, src, dst)) != NULL) { /* * Yup, does the existing filter have a higher cost? If so, copy the * filter and cost to the existing filter entry and return it... */ if (temp->cost > cost) { DEBUG_printf(("1mimeAddFilter: Replacing filter \"%s\", cost %d.", temp->filter, temp->cost)); temp->cost = cost; strlcpy(temp->filter, filter, sizeof(temp->filter)); } } else { /* * Nope, add a new one... */ if (!mime->filters) mime->filters = cupsArrayNew((cups_array_func_t)mime_compare_filters, NULL); if (!mime->filters) return (NULL); if ((temp = calloc(1, sizeof(mime_filter_t))) == NULL) return (NULL); /* * Copy the information over and sort if necessary... */ temp->src = src; temp->dst = dst; temp->cost = cost; strlcpy(temp->filter, filter, sizeof(temp->filter)); DEBUG_puts("1mimeAddFilter: Adding new filter."); cupsArrayAdd(mime->filters, temp); cupsArrayAdd(mime->srcs, temp); } /* * Return the new/updated filter... */ DEBUG_printf(("1mimeAddFilter: Returning %p.", temp)); return (temp); } /* * 'mimeFilter()' - Find the fastest way to convert from one type to another. */ cups_array_t * /* O - Array of filters to run */ mimeFilter(mime_t *mime, /* I - MIME database */ mime_type_t *src, /* I - Source file type */ mime_type_t *dst, /* I - Destination file type */ int *cost) /* O - Cost of filters */ { DEBUG_printf(("mimeFilter(mime=%p, src=%p(%s/%s), dst=%p(%s/%s), " "cost=%p(%d))", mime, src, src ? src->super : "???", src ? src->type : "???", dst, dst ? dst->super : "???", dst ? dst->type : "???", cost, cost ? *cost : 0)); return (mimeFilter2(mime, src, 0, dst, cost)); } /* * 'mimeFilter2()' - Find the fastest way to convert from one type to another, * including file size. */ cups_array_t * /* O - Array of filters to run */ mimeFilter2(mime_t *mime, /* I - MIME database */ mime_type_t *src, /* I - Source file type */ size_t srcsize, /* I - Size of source file */ mime_type_t *dst, /* I - Destination file type */ int *cost) /* O - Cost of filters */ { cups_array_t *filters; /* Array of filters to run */ /* * Range-check the input... */ DEBUG_printf(("mimeFilter2(mime=%p, src=%p(%s/%s), srcsize=" CUPS_LLFMT ", dst=%p(%s/%s), cost=%p(%d))", mime, src, src ? src->super : "???", src ? src->type : "???", CUPS_LLCAST srcsize, dst, dst ? dst->super : "???", dst ? dst->type : "???", cost, cost ? *cost : 0)); if (cost) *cost = 0; if (!mime || !src || !dst) return (NULL); /* * (Re)build the source lookup array as needed... */ if (!mime->srcs) { mime_filter_t *current; /* Current filter */ mime->srcs = cupsArrayNew((cups_array_func_t)mime_compare_srcs, NULL); for (current = mimeFirstFilter(mime); current; current = mimeNextFilter(mime)) cupsArrayAdd(mime->srcs, current); } /* * Find the filters... */ filters = mime_find_filters(mime, src, srcsize, dst, cost, NULL); DEBUG_printf(("1mimeFilter2: Returning %d filter(s), cost %d:", cupsArrayCount(filters), cost ? *cost : -1)); #ifdef DEBUG { mime_filter_t *filter; /* Current filter */ for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) DEBUG_printf(("1mimeFilter2: %s/%s %s/%s %d %s", filter->src->super, filter->src->type, filter->dst->super, filter->dst->type, filter->cost, filter->filter)); } #endif /* DEBUG */ return (filters); } /* * 'mimeFilterLookup()' - Lookup a filter. */ mime_filter_t * /* O - Filter for src->dst */ mimeFilterLookup(mime_t *mime, /* I - MIME database */ mime_type_t *src, /* I - Source type */ mime_type_t *dst) /* I - Destination type */ { mime_filter_t key, /* Key record for filter search */ *filter; /* Matching filter */ DEBUG_printf(("2mimeFilterLookup(mime=%p, src=%p(%s/%s), dst=%p(%s/%s))", mime, src, src ? src->super : "???", src ? src->type : "???", dst, dst ? dst->super : "???", dst ? dst->type : "???")); key.src = src; key.dst = dst; filter = (mime_filter_t *)cupsArrayFind(mime->filters, &key); DEBUG_printf(("3mimeFilterLookup: Returning %p(%s).", filter, filter ? filter->filter : "???")); return (filter); } /* * 'mime_compare_filters()' - Compare two filters. */ static int /* O - Comparison result */ mime_compare_filters(mime_filter_t *f0, /* I - First filter */ mime_filter_t *f1) /* I - Second filter */ { int i; /* Result of comparison */ if ((i = strcmp(f0->src->super, f1->src->super)) == 0) if ((i = strcmp(f0->src->type, f1->src->type)) == 0) if ((i = strcmp(f0->dst->super, f1->dst->super)) == 0) i = strcmp(f0->dst->type, f1->dst->type); return (i); } /* * 'mime_compare_srcs()' - Compare two filter source types. */ static int /* O - Comparison result */ mime_compare_srcs(mime_filter_t *f0, /* I - First filter */ mime_filter_t *f1) /* I - Second filter */ { int i; /* Result of comparison */ if ((i = strcmp(f0->src->super, f1->src->super)) == 0) i = strcmp(f0->src->type, f1->src->type); return (i); } /* * 'mime_find_filters()' - Find the filters to convert from one type to another. */ static cups_array_t * /* O - Array of filters to run */ mime_find_filters( mime_t *mime, /* I - MIME database */ mime_type_t *src, /* I - Source file type */ size_t srcsize, /* I - Size of source file */ mime_type_t *dst, /* I - Destination file type */ int *cost, /* O - Cost of filters */ _mime_typelist_t *list) /* I - Source types we've used */ { int tempcost, /* Temporary cost */ mincost; /* Current minimum */ cups_array_t *temp, /* Temporary filter */ *mintemp; /* Current minimum */ mime_filter_t *current, /* Current filter */ srckey; /* Source type key */ _mime_typelist_t listnode, /* New list node */ *listptr; /* Pointer in list */ DEBUG_printf(("2mime_find_filters(mime=%p, src=%p(%s/%s), srcsize=" CUPS_LLFMT ", dst=%p(%s/%s), cost=%p, list=%p)", mime, src, src->super, src->type, CUPS_LLCAST srcsize, dst, dst->super, dst->type, cost, list)); /* * See if there is a filter that can convert the files directly... */ if ((current = mimeFilterLookup(mime, src, dst)) != NULL && (current->maxsize == 0 || srcsize <= current->maxsize)) { /* * Got a direct filter! */ DEBUG_puts("3mime_find_filters: Direct filter found."); if ((mintemp = cupsArrayNew(NULL, NULL)) == NULL) { DEBUG_puts("3mime_find_filters: Returning NULL (out of memory)."); return (NULL); } cupsArrayAdd(mintemp, current); mincost = current->cost; if (!cost) { DEBUG_printf(("3mime_find_filters: Returning 1 filter, cost %d:", mincost)); DEBUG_printf(("3mime_find_filters: %s/%s %s/%s %d %s", current->src->super, current->src->type, current->dst->super, current->dst->type, current->cost, current->filter)); return (mintemp); } } else { /* * No direct filter... */ mintemp = NULL; mincost = 9999999; } /* * Initialize this node in the type list... */ listnode.next = list; /* * OK, now look for filters from the source type to any other type... */ srckey.src = src; for (current = (mime_filter_t *)cupsArrayFind(mime->srcs, &srckey); current && current->src == src; current = (mime_filter_t *)cupsArrayNext(mime->srcs)) { /* * See if we have already tried the destination type as a source * type (this avoids extra filter looping...) */ mime_type_t *current_dst; /* Current destination type */ if (current->maxsize > 0 && srcsize > current->maxsize) continue; for (listptr = list, current_dst = current->dst; listptr; listptr = listptr->next) if (current_dst == listptr->src) break; if (listptr) continue; /* * See if we have any filters that can convert from the destination type * of this filter to the final type... */ listnode.src = current->src; cupsArraySave(mime->srcs); temp = mime_find_filters(mime, current->dst, srcsize, dst, &tempcost, &listnode); cupsArrayRestore(mime->srcs); if (!temp) continue; if (!cost) { DEBUG_printf(("3mime_find_filters: Returning %d filter(s), cost %d:", cupsArrayCount(temp), tempcost)); #ifdef DEBUG for (current = (mime_filter_t *)cupsArrayFirst(temp); current; current = (mime_filter_t *)cupsArrayNext(temp)) DEBUG_printf(("3mime_find_filters: %s/%s %s/%s %d %s", current->src->super, current->src->type, current->dst->super, current->dst->type, current->cost, current->filter)); #endif /* DEBUG */ return (temp); } /* * Found a match; see if this one is less costly than the last (if * any...) */ tempcost += current->cost; if (tempcost < mincost) { cupsArrayDelete(mintemp); /* * Hey, we got a match! Add the current filter to the beginning of the * filter list... */ mintemp = temp; mincost = tempcost; cupsArrayInsert(mintemp, current); } else cupsArrayDelete(temp); } if (mintemp) { /* * Hey, we got a match! */ DEBUG_printf(("3mime_find_filters: Returning %d filter(s), cost %d:", cupsArrayCount(mintemp), mincost)); #ifdef DEBUG for (current = (mime_filter_t *)cupsArrayFirst(mintemp); current; current = (mime_filter_t *)cupsArrayNext(mintemp)) DEBUG_printf(("3mime_find_filters: %s/%s %s/%s %d %s", current->src->super, current->src->type, current->dst->super, current->dst->type, current->cost, current->filter)); #endif /* DEBUG */ if (cost) *cost = mincost; return (mintemp); } DEBUG_puts("3mime_find_filters: Returning NULL (no matches)."); return (NULL); } cups-2.4.7/scheduler/file.c0000644000175000017500000002127114502571342015425 0ustar zdohnalzdohnal/* * File functions for the CUPS scheduler. * * Copyright © 2007-2014 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #include #ifdef HAVE_REMOVEFILE # include #else static int overwrite_data(int fd, const char *buffer, int bufsize, int filesize); #endif /* HAVE_REMOVEFILE */ /* * 'cupsdCleanFiles()' - Clean out old files. */ void cupsdCleanFiles(const char *path, /* I - Directory to clean */ const char *pattern) /* I - Filename pattern or NULL */ { cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ char filename[1024]; /* Filename */ int status; /* Status from unlink/rmdir */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdCleanFiles(path=\"%s\", pattern=\"%s\")", path, pattern ? pattern : "(null)"); if ((dir = cupsDirOpen(path)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open directory \"%s\" - %s", path, strerror(errno)); return; } cupsdLogMessage(CUPSD_LOG_INFO, "Cleaning out old files in \"%s\".", path); while ((dent = cupsDirRead(dir)) != NULL) { if (pattern && fnmatch(pattern, dent->filename, 0)) continue; snprintf(filename, sizeof(filename), "%s/%s", path, dent->filename); if (S_ISDIR(dent->fileinfo.st_mode)) { cupsdCleanFiles(filename, pattern); status = rmdir(filename); } else status = cupsdUnlinkOrRemoveFile(filename); if (status) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to remove \"%s\" - %s", filename, strerror(errno)); } cupsDirClose(dir); } /* * 'cupsdCloseCreatedConfFile()' - Close a created configuration file and move * into place. */ int /* O - 0 on success, -1 on error */ cupsdCloseCreatedConfFile( cups_file_t *fp, /* I - File to close */ const char *filename) /* I - Filename */ { char newfile[1024], /* filename.N */ oldfile[1024]; /* filename.O */ /* * Synchronize changes to disk if SyncOnClose is enabled. */ if (SyncOnClose) { if (cupsFileFlush(fp)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to write changes to \"%s\": %s", filename, strerror(errno)); cupsFileClose(fp); return (-1); } if (fsync(cupsFileNumber(fp))) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to sync changes to \"%s\": %s", filename, strerror(errno)); cupsFileClose(fp); return (-1); } } /* * First close the file... */ if (cupsFileClose(fp)) return (-1); /* * Then remove "filename.O", rename "filename" to "filename.O", and rename * "filename.N" to "filename". */ snprintf(newfile, sizeof(newfile), "%s.N", filename); snprintf(oldfile, sizeof(oldfile), "%s.O", filename); if ((cupsdUnlinkOrRemoveFile(oldfile) && errno != ENOENT) || (rename(filename, oldfile) && errno != ENOENT) || rename(newfile, filename)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to finalize \"%s\": %s", filename, strerror(errno)); return (-1); } return (0); } /* * 'cupsdClosePipe()' - Close a pipe as necessary. */ void cupsdClosePipe(int *fds) /* I - Pipe file descriptors (2) */ { /* * Close file descriptors as needed... */ if (fds[0] >= 0) { close(fds[0]); fds[0] = -1; } if (fds[1] >= 0) { close(fds[1]); fds[1] = -1; } } /* * 'cupsdCreateConfFile()' - Create a configuration file safely. */ cups_file_t * /* O - File pointer */ cupsdCreateConfFile( const char *filename, /* I - Filename */ mode_t mode) /* I - Permissions */ { cups_file_t *fp; /* File pointer */ char newfile[1024]; /* filename.N */ snprintf(newfile, sizeof(newfile), "%s.N", filename); if ((fp = cupsFileOpen(newfile, "w")) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create \"%s\": %s", newfile, strerror(errno)); } else { if (!getuid() && fchown(cupsFileNumber(fp), getuid(), Group)) cupsdLogMessage(CUPSD_LOG_WARN, "Unable to change group for \"%s\": %s", newfile, strerror(errno)); if (fchmod(cupsFileNumber(fp), mode)) cupsdLogMessage(CUPSD_LOG_WARN, "Unable to change permissions for \"%s\": %s", newfile, strerror(errno)); } return (fp); } /* * 'cupsdOpenConfFile()' - Open a configuration file. * * This function looks for "filename.O" if "filename" does not exist and does * a rename as needed. */ cups_file_t * /* O - File pointer */ cupsdOpenConfFile(const char *filename) /* I - Filename */ { cups_file_t *fp; /* File pointer */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { if (errno == ENOENT) { /* * Try opening the backup file... */ char oldfile[1024]; /* filename.O */ snprintf(oldfile, sizeof(oldfile), "%s.O", filename); fp = cupsFileOpen(oldfile, "r"); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to open \"%s\": %s", filename, strerror(errno)); } return (fp); } /* * 'cupsdOpenPipe()' - Create a pipe which is closed on exec. */ int /* O - 0 on success, -1 on error */ cupsdOpenPipe(int *fds) /* O - Pipe file descriptors (2) */ { /* * Create the pipe... */ if (pipe(fds)) { fds[0] = -1; fds[1] = -1; return (-1); } /* * Set the "close on exec" flag on each end of the pipe... */ if (fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); fds[0] = -1; fds[1] = -1; return (-1); } if (fcntl(fds[1], F_SETFD, fcntl(fds[1], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); fds[0] = -1; fds[1] = -1; return (-1); } /* * Return 0 indicating success... */ return (0); } /* * 'cupsdRemoveFile()' - Remove a file securely. */ int /* O - 0 on success, -1 on error */ cupsdRemoveFile(const char *filename) /* I - File to remove */ { #ifdef HAVE_REMOVEFILE /* * See if the file exists... */ if (access(filename, 0)) return (0); cupsdLogMessage(CUPSD_LOG_DEBUG, "Securely removing \"%s\".", filename); /* * Remove the file... */ return (removefile(filename, NULL, REMOVEFILE_SECURE_1_PASS)); #else int fd; /* File descriptor */ struct stat info; /* File information */ char buffer[512]; /* Data buffer */ size_t i; /* Looping var */ /* * See if the file exists... */ if (access(filename, 0)) return (0); cupsdLogMessage(CUPSD_LOG_DEBUG, "Securely removing \"%s\".", filename); /* * First open the file for writing in exclusive mode. */ if ((fd = open(filename, O_WRONLY | O_EXCL)) < 0) return (-1); /* * Delete the file now - it will still be around as long as the file is * open... */ if (unlink(filename)) { close(fd); return (-1); } /* * Then get the file size... */ if (fstat(fd, &info)) { close(fd); return (-1); } /* * Overwrite the file with random data. */ CUPS_SRAND(time(NULL)); for (i = 0; i < sizeof(buffer); i ++) buffer[i] = CUPS_RAND(); if (overwrite_data(fd, buffer, sizeof(buffer), (int)info.st_size)) { close(fd); return (-1); } /* * Close the file, which will lead to the actual deletion, and return... */ return (close(fd)); #endif /* HAVE_REMOVEFILE */ } /* * 'cupsdUnlinkOrRemoveFile()' - Unlink or securely remove a file depending * on the configuration. */ int /* O - 0 on success, -1 on error */ cupsdUnlinkOrRemoveFile( const char *filename) /* I - Filename */ { if (Classification) return (cupsdRemoveFile(filename)); else return (unlink(filename)); } #ifndef HAVE_REMOVEFILE /* * 'overwrite_data()' - Overwrite the data in a file. */ static int /* O - 0 on success, -1 on error */ overwrite_data(int fd, /* I - File descriptor */ const char *buffer, /* I - Buffer to write */ int bufsize, /* I - Size of buffer */ int filesize) /* I - Size of file */ { int bytes; /* Bytes to write/written */ /* * Start at the beginning of the file... */ if (lseek(fd, 0, SEEK_SET) < 0) return (-1); /* * Fill the file with the provided data... */ while (filesize > 0) { if (filesize > bufsize) bytes = bufsize; else bytes = filesize; if ((bytes = write(fd, buffer, (size_t)bytes)) < 0) return (-1); filesize -= bytes; } /* * Force the changes to disk... */ return (fsync(fd)); } #endif /* HAVE_REMOVEFILE */ cups-2.4.7/scheduler/env.c0000644000175000017500000001307714502571342015303 0ustar zdohnalzdohnal/* * Environment management routines for the CUPS scheduler. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2016 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" /* * Local globals... */ static int num_common_env = 0; /* Number of common env vars */ static char *common_env[MAX_ENV]; /* Common env vars */ /* * Local functions... */ static void clear_env(void); static int find_env(const char *name); /* * 'cupsdInitEnv()' - Initialize the current environment with standard variables. */ void cupsdInitEnv(void) { /* * Clear existing environment variables... */ clear_env(); #if defined(__APPLE__) /* * Add special voodoo magic for macOS - this allows macOS * programs to access their bundle resources properly... * * This string is replaced in cupsdStartProcess()... */ cupsdSetString(common_env, ""); num_common_env = 1; #endif /* __APPLE__ */ } /* * 'cupsdLoadEnv()' - Copy common environment variables into an array. */ int /* O - Number of environment variables */ cupsdLoadEnv(char *envp[], /* I - Environment array */ int envmax) /* I - Maximum number of elements */ { int i; /* Looping var */ /* * Leave room for a NULL pointer at the end... */ envmax --; /* * Copy pointers to the environment... */ for (i = 0; i < num_common_env && i < envmax; i ++) envp[i] = common_env[i]; /* * NULL terminate the environment array and return the number of * elements we added... */ envp[i] = NULL; return (i); } /* * 'cupsdSetEnv()' - Set a common environment variable. */ void cupsdSetEnv(const char *name, /* I - Name of variable */ const char *value) /* I - Value of variable */ { int i; /* Index into environment array */ /* * If "value" is NULL, try getting value from current environment... */ if (!value) value = getenv(name); if (!value) return; /* * Do not allow dynamic linker variables when running as root outside a Snap... */ #if !CUPS_SNAP if (!RunUser && (!strncmp(name, "DYLD_", 5) || !strncmp(name, "LD_", 3))) return; #endif /* !CUPS_SNAP */ /* * See if this variable has already been defined... */ if ((i = find_env(name)) < 0) { /* * Check for room... */ if (num_common_env >= (int)(sizeof(common_env) / sizeof(common_env[0]))) { cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdSetEnv: Too many environment variables set!"); return; } i = num_common_env; num_common_env ++; } /* * Set the new environment variable... */ cupsdSetStringf(common_env + i, "%s=%s", name, value); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSetEnv: %s", common_env[i]); } /* * 'cupsdSetEnvf()' - Set a formatted common environment variable. */ void cupsdSetEnvf(const char *name, /* I - Name of variable */ const char *value, /* I - Printf-style value of variable */ ...) /* I - Additional args as needed */ { char v[4096]; /* Formatting string value */ va_list ap; /* Argument pointer */ /* * Format the value string... */ va_start(ap, value); vsnprintf(v, sizeof(v), value, ap); va_end(ap); /* * Set the env variable... */ cupsdSetEnv(name, v); } /* * 'cupsdUpdateEnv()' - Update the environment for the configured directories. */ void cupsdUpdateEnv(void) { /* * Set common variables... */ #define set_if_undefined(name,value) if (find_env(name) < 0) cupsdSetEnv(name,value) set_if_undefined("CUPS_CACHEDIR", CacheDir); set_if_undefined("CUPS_DATADIR", DataDir); set_if_undefined("CUPS_DOCROOT", DocumentRoot); set_if_undefined("CUPS_REQUESTROOT", RequestRoot); set_if_undefined("CUPS_SERVERBIN", ServerBin); set_if_undefined("CUPS_SERVERROOT", ServerRoot); set_if_undefined("CUPS_STATEDIR", StateDir); set_if_undefined("DYLD_INSERT_LIBRARIES", NULL); set_if_undefined("DYLD_LIBRARY_PATH", NULL); set_if_undefined("HOME", TempDir); set_if_undefined("LD_ASSUME_KERNEL", NULL); set_if_undefined("LD_LIBRARY_PATH", NULL); set_if_undefined("LD_PRELOAD", NULL); set_if_undefined("NLSPATH", NULL); if (find_env("PATH") < 0) { #if CUPS_SNAP const char *path; // PATH environment variable if ((path = getenv("PATH")) != NULL) cupsdSetEnvf("PATH", "%s/filter:%s", ServerBin, path); else #endif /* CUPS_SNAP */ cupsdSetEnvf("PATH", "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":/bin:/usr/bin", ServerBin); } set_if_undefined("SERVER_ADMIN", ServerAdmin); set_if_undefined("SHLIB_PATH", NULL); set_if_undefined("SOFTWARE", CUPS_MINIMAL); set_if_undefined("TMPDIR", TempDir); set_if_undefined("TZ", NULL); set_if_undefined("USER", "root"); set_if_undefined("VG_ARGS", NULL); cupsdSetEnvf("CUPS_MAX_MESSAGE", "%d", CUPSD_SB_BUFFER_SIZE - 1); } /* * 'clear_env()' - Clear common environment variables. */ static void clear_env(void) { int i; /* Looping var */ for (i = 0; i < num_common_env; i ++) cupsdClearString(common_env + i); num_common_env = 0; } /* * 'find_env()' - Find a common environment variable. */ static int /* O - Index or -1 if not found */ find_env(const char *name) /* I - Variable name */ { int i; /* Looping var */ size_t namelen; /* Length of name */ for (i = 0, namelen = strlen(name); i < num_common_env; i ++) if (!strncmp(common_env[i], name, namelen) && common_env[i][namelen] == '=') return (i); return (-1); } cups-2.4.7/scheduler/dirsvc.h0000644000175000017500000000363514502571342016011 0ustar zdohnalzdohnal/* * Directory services definitions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Browse protocols... */ #define BROWSE_DNSSD 1 /* DNS Service Discovery (aka Bonjour) */ #define BROWSE_ALL 1 /* All protocols */ /* * Globals... */ VAR int Browsing VALUE(TRUE), /* Whether or not browsing is enabled */ BrowseWebIF VALUE(FALSE), /* Whether the web interface is advertised */ BrowseLocalProtocols VALUE(BROWSE_ALL); /* Protocols to support for local printers */ #ifdef HAVE_DNSSD VAR char *DNSSDComputerName VALUE(NULL), /* Computer/server name */ *DNSSDHostName VALUE(NULL), /* Hostname */ *DNSSDSubTypes VALUE(NULL); /* Bonjour registration subtypes */ VAR cups_array_t *DNSSDAlias VALUE(NULL); /* List of dynamic ServerAlias's */ VAR int DNSSDPort VALUE(0); /* Port number to register */ VAR cups_array_t *DNSSDPrinters VALUE(NULL); /* Printers we have registered */ # ifdef HAVE_MDNSRESPONDER VAR DNSServiceRef DNSSDMaster VALUE(NULL); /* Master DNS-SD service reference */ # else /* HAVE_AVAHI */ VAR AvahiThreadedPoll *DNSSDMaster VALUE(NULL); /* Master polling interface for Avahi */ VAR AvahiClient *DNSSDClient VALUE(NULL); /* Client information */ # endif /* HAVE_MDNSRESPONDER */ VAR cupsd_srv_t WebIFSrv VALUE(NULL); /* Service reference for the web interface */ #endif /* HAVE_DNSSD */ /* * Prototypes... */ extern void cupsdDeregisterPrinter(cupsd_printer_t *p, int removeit); extern void cupsdRegisterPrinter(cupsd_printer_t *p); extern void cupsdStartBrowsing(void); extern void cupsdStopBrowsing(void); #ifdef HAVE_DNSSD extern void cupsdUpdateDNSSDName(void); #endif /* HAVE_DNSSD */ cups-2.4.7/scheduler/dirsvc.c0000644000175000017500000012003514502571342015776 0ustar zdohnalzdohnal/* * Directory services routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #if defined(HAVE_MDNSRESPONDER) && defined(__APPLE__) # include # include # include #endif /* HAVE_MDNSRESPONDER && __APPLE__ */ /* * Local globals... */ #ifdef HAVE_AVAHI static int avahi_running = 0; #endif /* HAVE_AVAHI */ /* * Local functions... */ #ifdef HAVE_DNSSD static char *get_auth_info_required(cupsd_printer_t *p, char *buffer, size_t bufsize); # ifdef __APPLE__ static void dnssdAddAlias(const void *key, const void *value, void *context); # endif /* __APPLE__ */ static cupsd_txt_t dnssdBuildTxtRecord(cupsd_printer_t *p); # ifdef HAVE_AVAHI static void dnssdClientCallback(AvahiClient *c, AvahiClientState state, void *userdata); # endif /* HAVE_AVAHI */ static void dnssdDeregisterAllPrinters(int from_callback); static void dnssdDeregisterInstance(cupsd_srv_t *srv, int from_callback); static void dnssdDeregisterPrinter(cupsd_printer_t *p, int clear_name, int from_callback); static const char *dnssdErrorString(int error); static void dnssdFreeTxtRecord(cupsd_txt_t *txt); static void dnssdRegisterAllPrinters(int from_callback); # ifdef HAVE_MDNSRESPONDER static void dnssdRegisterCallback(DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *name, const char *regtype, const char *domain, void *context); # else static void dnssdRegisterCallback(AvahiEntryGroup *p, AvahiEntryGroupState state, void *context); # endif /* HAVE_MDNSRESPONDER */ static int dnssdRegisterInstance(cupsd_srv_t *srv, cupsd_printer_t *p, char *name, const char *type, const char *subtypes, int port, cupsd_txt_t *txt, int commit, int from_callback); static void dnssdRegisterPrinter(cupsd_printer_t *p, int from_callback); static void dnssdStop(void); # ifdef HAVE_MDNSRESPONDER static void dnssdUpdate(void); # endif /* HAVE_MDNSRESPONDER */ static void dnssdUpdateDNSSDName(int from_callback); #endif /* HAVE_DNSSD */ /* * 'cupsdDeregisterPrinter()' - Stop sending broadcast information for a * local printer and remove any pending * references to remote printers. */ void cupsdDeregisterPrinter( cupsd_printer_t *p, /* I - Printer to register */ int removeit) /* I - Printer being permanently removed */ { /* * Only deregister if browsing is enabled and it's a local printer... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdDeregisterPrinter(p=%p(%s), removeit=%d)", p, p->name, removeit); if (!Browsing || !p->shared || (p->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_SCANNER))) return; /* * Announce the deletion... */ #ifdef HAVE_DNSSD if (removeit && (BrowseLocalProtocols & BROWSE_DNSSD) && DNSSDMaster) dnssdDeregisterPrinter(p, 1, 0); #endif /* HAVE_DNSSD */ } /* * 'cupsdRegisterPrinter()' - Start sending broadcast information for a * printer or update the broadcast contents. */ void cupsdRegisterPrinter(cupsd_printer_t *p)/* I - Printer */ { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdRegisterPrinter(p=%p(%s))", p, p->name); if (!Browsing || !BrowseLocalProtocols || (p->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_SCANNER))) return; #ifdef HAVE_DNSSD if ((BrowseLocalProtocols & BROWSE_DNSSD) && DNSSDMaster) dnssdRegisterPrinter(p, 0); #endif /* HAVE_DNSSD */ } /* * 'cupsdStartBrowsing()' - Start sending and receiving broadcast information. */ void cupsdStartBrowsing(void) { if (!Browsing || !BrowseLocalProtocols) return; #ifdef HAVE_DNSSD if (BrowseLocalProtocols & BROWSE_DNSSD) { # ifdef HAVE_MDNSRESPONDER DNSServiceErrorType error; /* Error from service creation */ /* * First create a "master" connection for all registrations... */ if ((error = DNSServiceCreateConnection(&DNSSDMaster)) != kDNSServiceErr_NoError) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create master DNS-SD reference: %d", error); if (FatalErrors & CUPSD_FATAL_BROWSE) cupsdEndProcess(getpid(), 0); } else { /* * Add the master connection to the select list... */ int fd = DNSServiceRefSockFD(DNSSDMaster); fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); cupsdAddSelect(fd, (cupsd_selfunc_t)dnssdUpdate, NULL, NULL); } /* * Set the computer name and register the web interface... */ DNSSDPort = 0; cupsdUpdateDNSSDName(); # else /* HAVE_AVAHI */ if ((DNSSDMaster = avahi_threaded_poll_new()) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create DNS-SD thread."); if (FatalErrors & CUPSD_FATAL_BROWSE) cupsdEndProcess(getpid(), 0); } else { int error; /* Error code, if any */ DNSSDClient = avahi_client_new(avahi_threaded_poll_get(DNSSDMaster), AVAHI_CLIENT_NO_FAIL, dnssdClientCallback, NULL, &error); if (DNSSDClient == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to communicate with avahi-daemon: %s", dnssdErrorString(error)); if (FatalErrors & CUPSD_FATAL_BROWSE) cupsdEndProcess(getpid(), 0); avahi_threaded_poll_free(DNSSDMaster); DNSSDMaster = NULL; } else avahi_threaded_poll_start(DNSSDMaster); } # endif /* HAVE_MDNSRESPONDER */ } /* * Register the individual printers */ dnssdRegisterAllPrinters(0); #endif /* HAVE_DNSSD */ } /* * 'cupsdStopBrowsing()' - Stop sending and receiving broadcast information. */ void cupsdStopBrowsing(void) { if (!Browsing || !BrowseLocalProtocols) return; #ifdef HAVE_DNSSD /* * De-register the individual printers */ dnssdDeregisterAllPrinters(0); /* * Shut down browsing sockets... */ if ((BrowseLocalProtocols & BROWSE_DNSSD) && DNSSDMaster) dnssdStop(); #endif /* HAVE_DNSSD */ } #ifdef HAVE_DNSSD /* * 'cupsdUpdateDNSSDName()' - Update the computer name we use for browsing... */ void cupsdUpdateDNSSDName(void) { dnssdUpdateDNSSDName(0); } # ifdef __APPLE__ /* * 'dnssdAddAlias()' - Add a DNS-SD alias name. */ static void dnssdAddAlias(const void *key, /* I - Key */ const void *value, /* I - Value (domain) */ void *context) /* I - Unused */ { char valueStr[1024], /* Domain string */ hostname[1024], /* Complete hostname */ *hostptr; /* Pointer into hostname */ (void)key; (void)context; if (CFGetTypeID((CFStringRef)value) == CFStringGetTypeID() && CFStringGetCString((CFStringRef)value, valueStr, sizeof(valueStr), kCFStringEncodingUTF8)) { snprintf(hostname, sizeof(hostname), "%s.%s", DNSSDHostName, valueStr); hostptr = hostname + strlen(hostname) - 1; if (*hostptr == '.') *hostptr = '\0'; /* Strip trailing dot */ if (!DNSSDAlias) DNSSDAlias = cupsArrayNew(NULL, NULL); cupsdAddAlias(DNSSDAlias, hostname); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added Back to My Mac ServerAlias %s", hostname); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad Back to My Mac domain in dynamic store!"); } # endif /* __APPLE__ */ /* * 'dnssdBuildTxtRecord()' - Build a TXT record from printer info. */ static cupsd_txt_t /* O - TXT record */ dnssdBuildTxtRecord( cupsd_printer_t *p) /* I - Printer information */ { int i, /* Looping var */ count; /* Count of key/value pairs */ char admin_hostname[256], /* Hostname for admin page */ adminurl_str[256], /* URL for the admin page */ type_str[32], /* Type to string buffer */ rp_str[256], /* Queue name string buffer */ air_str[256], /* auth-info-required string buffer */ urf_str[256], /* URF string buffer */ *keyvalue[32][2], /* Table of key/value pairs */ *ptr; /* Pointer in string */ cupsd_txt_t txt; /* TXT record */ cupsd_listener_t *lis; /* Current listener */ const char *admin_scheme = "http"; /* Admin page URL scheme */ ipp_attribute_t *urf_supported; /* urf-supported attribute */ /* * Load up the key value pairs... */ count = 0; keyvalue[count ][0] = "txtvers"; keyvalue[count++][1] = "1"; keyvalue[count ][0] = "qtotal"; keyvalue[count++][1] = "1"; keyvalue[count ][0] = "rp"; keyvalue[count++][1] = rp_str; snprintf(rp_str, sizeof(rp_str), "%s/%s", (p->type & CUPS_PRINTER_CLASS) ? "classes" : "printers", p->name); keyvalue[count ][0] = "ty"; keyvalue[count++][1] = p->make_model ? p->make_model : "Unknown"; /* * Get the hostname for the admin page... */ if (strchr(DNSSDHostName, '.')) { /* * Use the provided hostname, but make sure it ends with a period... */ if ((ptr = DNSSDHostName + strlen(DNSSDHostName) - 1) >= DNSSDHostName && *ptr == '.') strlcpy(admin_hostname, DNSSDHostName, sizeof(admin_hostname)); else snprintf(admin_hostname, sizeof(admin_hostname), "%s.", DNSSDHostName); } else { /* * Unqualified hostname gets ".local." added to it... */ snprintf(admin_hostname, sizeof(admin_hostname), "%s.local.", DNSSDHostName); } /* * Get the URL scheme for the admin page... */ # ifdef HAVE_TLS for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { if (lis->encryption != HTTP_ENCRYPTION_NEVER) { admin_scheme = "https"; break; } } # endif /* HAVE_TLS */ httpAssembleURIf(HTTP_URI_CODING_ALL, adminurl_str, sizeof(adminurl_str), admin_scheme, NULL, admin_hostname, DNSSDPort, "/%s/%s", (p->type & CUPS_PRINTER_CLASS) ? "classes" : "printers", p->name); keyvalue[count ][0] = "adminurl"; keyvalue[count++][1] = adminurl_str; if (p->location) { keyvalue[count ][0] = "note"; keyvalue[count++][1] = p->location; } keyvalue[count ][0] = "priority"; keyvalue[count++][1] = "0"; keyvalue[count ][0] = "product"; keyvalue[count++][1] = p->pc && p->pc->product ? p->pc->product : "Unknown"; keyvalue[count ][0] = "pdl"; keyvalue[count++][1] = p->pdl ? p->pdl : "application/postscript"; if (get_auth_info_required(p, air_str, sizeof(air_str))) { keyvalue[count ][0] = "air"; keyvalue[count++][1] = air_str; } keyvalue[count ][0] = "UUID"; keyvalue[count++][1] = p->uuid + 9; #ifdef HAVE_TLS keyvalue[count ][0] = "TLS"; keyvalue[count++][1] = "1.2"; #endif /* HAVE_TLS */ if ((urf_supported = ippFindAttribute(p->ppd_attrs, "urf-supported", IPP_TAG_KEYWORD)) != NULL) { int urf_count = ippGetCount(urf_supported); // Number of URF values urf_str[0] = '\0'; for (i = 0, ptr = urf_str; i < urf_count; i ++) { const char *value = ippGetString(urf_supported, i, NULL); if (ptr > urf_str && ptr < (urf_str + sizeof(urf_str) - 1)) *ptr++ = ','; strlcpy(ptr, value, sizeof(urf_str) - (size_t)(ptr - urf_str)); ptr += strlen(ptr); if (ptr >= (urf_str + sizeof(urf_str) - 1)) break; } keyvalue[count ][0] = "URF"; keyvalue[count++][1] = urf_str; } keyvalue[count ][0] = "mopria-certified"; keyvalue[count++][1] = "1.3"; if (p->type & CUPS_PRINTER_FAX) { keyvalue[count ][0] = "Fax"; keyvalue[count++][1] = "T"; keyvalue[count ][0] = "rfo"; keyvalue[count++][1] = rp_str; } if (p->type & CUPS_PRINTER_COLOR) { keyvalue[count ][0] = "Color"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_COLOR) ? "T" : "F"; } if (p->type & CUPS_PRINTER_DUPLEX) { keyvalue[count ][0] = "Duplex"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_DUPLEX) ? "T" : "F"; } if (p->type & CUPS_PRINTER_STAPLE) { keyvalue[count ][0] = "Staple"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_STAPLE) ? "T" : "F"; } if (p->type & CUPS_PRINTER_COPIES) { keyvalue[count ][0] = "Copies"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_COPIES) ? "T" : "F"; } if (p->type & CUPS_PRINTER_COLLATE) { keyvalue[count ][0] = "Collate"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_COLLATE) ? "T" : "F"; } if (p->type & CUPS_PRINTER_PUNCH) { keyvalue[count ][0] = "Punch"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_PUNCH) ? "T" : "F"; } if (p->type & CUPS_PRINTER_BIND) { keyvalue[count ][0] = "Bind"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_BIND) ? "T" : "F"; } if (p->type & CUPS_PRINTER_SORT) { keyvalue[count ][0] = "Sort"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_SORT) ? "T" : "F"; } if (p->type & CUPS_PRINTER_MFP) { keyvalue[count ][0] = "Scan"; keyvalue[count++][1] = (p->type & CUPS_PRINTER_MFP) ? "T" : "F"; } snprintf(type_str, sizeof(type_str), "0x%X", p->type | CUPS_PRINTER_REMOTE); keyvalue[count ][0] = "printer-type"; keyvalue[count++][1] = type_str; /* * Then pack them into a proper txt record... */ # ifdef HAVE_MDNSRESPONDER TXTRecordCreate(&txt, 0, NULL); for (i = 0; i < count; i ++) { size_t len = strlen(keyvalue[i][1]); if (len < 256) TXTRecordSetValue(&txt, keyvalue[i][0], (uint8_t)len, keyvalue[i][1]); } # else for (i = 0, txt = NULL; i < count; i ++) txt = avahi_string_list_add_printf(txt, "%s=%s", keyvalue[i][0], keyvalue[i][1]); # endif /* HAVE_MDNSRESPONDER */ return (txt); } # ifdef HAVE_AVAHI /* * 'dnssdClientCallback()' - Client callback for Avahi. * * Called whenever the client or server state changes... */ static void dnssdClientCallback( AvahiClient *c, /* I - Client */ AvahiClientState state, /* I - Current state */ void *userdata) /* I - User data (unused) */ { int error; /* Error code, if any */ (void)userdata; if (!c) return; /* * Make sure DNSSDClient is already set also if this callback function is * already running before avahi_client_new() in dnssdStartBrowsing() * finishes. */ if (!DNSSDClient) DNSSDClient = c; switch (state) { case AVAHI_CLIENT_S_REGISTERING: case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_S_COLLISION: cupsdLogMessage(CUPSD_LOG_DEBUG, "Avahi server connection now available, registering printers for Bonjour broadcasting."); /* * Mark that Avahi server is running... */ avahi_running = 1; /* * Set the computer name and register the web interface... */ DNSSDPort = 0; dnssdUpdateDNSSDName(1); /* * Register the individual printers */ dnssdRegisterAllPrinters(1); break; case AVAHI_CLIENT_FAILURE: if (avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Avahi server disappeared, unregistering printers for Bonjour broadcasting."); /* * Unregister everything and close the client... */ dnssdDeregisterAllPrinters(1); dnssdDeregisterInstance(&WebIFSrv, 1); avahi_client_free(DNSSDClient); DNSSDClient = NULL; /* * Mark that Avahi server is not running... */ avahi_running = 0; /* * Renew Avahi client... */ DNSSDClient = avahi_client_new(avahi_threaded_poll_get(DNSSDMaster), AVAHI_CLIENT_NO_FAIL, dnssdClientCallback, NULL, &error); if (!DNSSDClient) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to communicate with avahi-daemon: %s", dnssdErrorString(error)); if (FatalErrors & CUPSD_FATAL_BROWSE) cupsdEndProcess(getpid(), 0); } } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Communication with avahi-daemon has failed: %s", avahi_strerror(avahi_client_errno(c))); if (FatalErrors & CUPSD_FATAL_BROWSE) cupsdEndProcess(getpid(), 0); } break; default: break; } } # endif /* HAVE_AVAHI */ /* * 'dnssdDeregisterAllPrinters()' - Deregister all printers. */ static void dnssdDeregisterAllPrinters( int from_callback) /* I - Deregistering because of callback? */ { cupsd_printer_t *p; /* Current printer */ if (!DNSSDMaster) return; for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) if (!(p->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_SCANNER))) dnssdDeregisterPrinter(p, 1, from_callback); } /* * 'dnssdDeregisterInstance()' - Deregister a DNS-SD service instance. */ static void dnssdDeregisterInstance( cupsd_srv_t *srv, /* I - Service */ int from_callback) /* I - Called from callback? */ { if (!srv || !*srv) return; # ifdef HAVE_MDNSRESPONDER (void)from_callback; DNSServiceRefDeallocate(*srv); *srv = NULL; # else /* HAVE_AVAHI */ if (!from_callback) avahi_threaded_poll_lock(DNSSDMaster); if (*srv) { avahi_entry_group_free(*srv); *srv = NULL; } if (!from_callback) avahi_threaded_poll_unlock(DNSSDMaster); # endif /* HAVE_MDNSRESPONDER */ } /* * 'dnssdDeregisterPrinter()' - Deregister all services for a printer. */ static void dnssdDeregisterPrinter( cupsd_printer_t *p, /* I - Printer */ int clear_name, /* I - Clear the name? */ int from_callback) /* I - Called from callback? */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "dnssdDeregisterPrinter(p=%p(%s), clear_name=%d)", p, p->name, clear_name); if (p->ipp_srv) { dnssdDeregisterInstance(&p->ipp_srv, from_callback); # ifdef HAVE_MDNSRESPONDER # ifdef HAVE_TLS dnssdDeregisterInstance(&p->ipps_srv, from_callback); # endif /* HAVE_TLS */ dnssdDeregisterInstance(&p->printer_srv, from_callback); # endif /* HAVE_MDNSRESPONDER */ } /* * Remove the printer from the array of DNS-SD printers but keep the * registered name... */ cupsArrayRemove(DNSSDPrinters, p); /* * Optionally clear the service name... */ if (clear_name) cupsdClearString(&p->reg_name); } /* * 'dnssdErrorString()' - Return an error string for an error code. */ static const char * /* O - Error message */ dnssdErrorString(int error) /* I - Error number */ { # ifdef HAVE_MDNSRESPONDER switch (error) { case kDNSServiceErr_NoError : return ("OK."); default : case kDNSServiceErr_Unknown : return ("Unknown error."); case kDNSServiceErr_NoSuchName : return ("Service not found."); case kDNSServiceErr_NoMemory : return ("Out of memory."); case kDNSServiceErr_BadParam : return ("Bad parameter."); case kDNSServiceErr_BadReference : return ("Bad service reference."); case kDNSServiceErr_BadState : return ("Bad state."); case kDNSServiceErr_BadFlags : return ("Bad flags."); case kDNSServiceErr_Unsupported : return ("Unsupported."); case kDNSServiceErr_NotInitialized : return ("Not initialized."); case kDNSServiceErr_AlreadyRegistered : return ("Already registered."); case kDNSServiceErr_NameConflict : return ("Name conflict."); case kDNSServiceErr_Invalid : return ("Invalid name."); case kDNSServiceErr_Firewall : return ("Firewall prevents registration."); case kDNSServiceErr_Incompatible : return ("Client library incompatible."); case kDNSServiceErr_BadInterfaceIndex : return ("Bad interface index."); case kDNSServiceErr_Refused : return ("Server prevents registration."); case kDNSServiceErr_NoSuchRecord : return ("Record not found."); case kDNSServiceErr_NoAuth : return ("Authentication required."); case kDNSServiceErr_NoSuchKey : return ("Encryption key not found."); case kDNSServiceErr_NATTraversal : return ("Unable to traverse NAT boundary."); case kDNSServiceErr_DoubleNAT : return ("Unable to traverse double-NAT boundary."); case kDNSServiceErr_BadTime : return ("Bad system time."); case kDNSServiceErr_BadSig : return ("Bad signature."); case kDNSServiceErr_BadKey : return ("Bad encryption key."); case kDNSServiceErr_Transient : return ("Transient error occurred - please try again."); case kDNSServiceErr_ServiceNotRunning : return ("Server not running."); case kDNSServiceErr_NATPortMappingUnsupported : return ("NAT doesn't support NAT-PMP or UPnP."); case kDNSServiceErr_NATPortMappingDisabled : return ("NAT supports NAT-PNP or UPnP but it is disabled."); case kDNSServiceErr_NoRouter : return ("No Internet/default router configured."); case kDNSServiceErr_PollingMode : return ("Service polling mode error."); case kDNSServiceErr_Timeout : return ("Service timeout."); } # else /* HAVE_AVAHI */ return (avahi_strerror(error)); # endif /* HAVE_MDNSRESPONDER */ } /* * 'dnssdRegisterCallback()' - Free a TXT record. */ static void dnssdFreeTxtRecord(cupsd_txt_t *txt) /* I - TXT record */ { # ifdef HAVE_MDNSRESPONDER TXTRecordDeallocate(txt); # else /* HAVE_AVAHI */ avahi_string_list_free(*txt); *txt = NULL; # endif /* HAVE_MDNSRESPONDER */ } /* * 'dnssdRegisterAllPrinters()' - Register all printers. */ static void dnssdRegisterAllPrinters(int from_callback) /* I - Called from callback? */ { cupsd_printer_t *p; /* Current printer */ if (!DNSSDMaster) return; for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) if (!(p->type & (CUPS_PRINTER_REMOTE | CUPS_PRINTER_SCANNER))) dnssdRegisterPrinter(p, from_callback); } /* * 'dnssdRegisterCallback()' - DNSServiceRegister callback. */ # ifdef HAVE_MDNSRESPONDER static void dnssdRegisterCallback( DNSServiceRef sdRef, /* I - DNS Service reference */ DNSServiceFlags flags, /* I - Reserved for future use */ DNSServiceErrorType errorCode, /* I - Error code */ const char *name, /* I - Service name */ const char *regtype, /* I - Service type */ const char *domain, /* I - Domain. ".local" for now */ void *context) /* I - Printer */ { cupsd_printer_t *p = (cupsd_printer_t *)context; /* Current printer */ (void)sdRef; (void)flags; (void)domain; cupsdLogMessage(CUPSD_LOG_DEBUG2, "dnssdRegisterCallback(%s, %s) for %s (%s)", name, regtype, p ? p->name : "Web Interface", p ? (p->reg_name ? p->reg_name : "(null)") : "NA"); if (errorCode) { cupsdLogMessage(CUPSD_LOG_ERROR, "DNSServiceRegister failed with error %d", (int)errorCode); return; } else if (p && (!p->reg_name || _cups_strcasecmp(name, p->reg_name))) { cupsdLogMessage(CUPSD_LOG_INFO, "Using service name \"%s\" for \"%s\"", name, p->name); cupsArrayRemove(DNSSDPrinters, p); cupsdSetString(&p->reg_name, name); cupsArrayAdd(DNSSDPrinters, p); LastEvent |= CUPSD_EVENT_PRINTER_MODIFIED; } } # else /* HAVE_AVAHI */ static void dnssdRegisterCallback( AvahiEntryGroup *srv, /* I - Service */ AvahiEntryGroupState state, /* I - Registration state */ void *context) /* I - Printer */ { cupsd_printer_t *p = (cupsd_printer_t *)context; /* Current printer */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "dnssdRegisterCallback(srv=%p, state=%d, context=%p) " "for %s (%s)", srv, state, context, p ? p->name : "Web Interface", p ? (p->reg_name ? p->reg_name : "(null)") : "NA"); /* TODO: Handle collisions with avahi_alternate_service_name(p->reg_name)? */ } # endif /* HAVE_MDNSRESPONDER */ /* * 'dnssdRegisterInstance()' - Register an instance of a printer service. */ static int /* O - 1 on success, 0 on failure */ dnssdRegisterInstance( cupsd_srv_t *srv, /* O - Service */ cupsd_printer_t *p, /* I - Printer */ char *name, /* I - DNS-SD service name */ const char *type, /* I - DNS-SD service type */ const char *subtypes, /* I - Subtypes to register or NULL */ int port, /* I - Port number or 0 */ cupsd_txt_t *txt, /* I - TXT record */ int commit, /* I - Commit registration? */ int from_callback) /* I - Called from callback? */ { char temp[256], /* Temporary string */ *ptr; /* Pointer into string */ int error; /* Any error */ # ifdef HAVE_MDNSRESPONDER (void)from_callback; # endif /* HAVE_MDNSRESPONDER */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Registering \"%s\" with DNS-SD type \"%s\".", name, type); if (p && !srv) { /* * Assign the correct pointer for "srv"... */ # ifdef HAVE_MDNSRESPONDER if (!strcmp(type, "_printer._tcp")) srv = &p->printer_srv; /* Target LPD service */ # ifdef HAVE_TLS else if (!strcmp(type, "_ipps._tcp")) srv = &p->ipps_srv; /* Target IPPS service */ # endif /* HAVE_TLS */ else srv = &p->ipp_srv; /* Target IPP service */ # else /* HAVE_AVAHI */ srv = &p->ipp_srv; /* Target service group */ # endif /* HAVE_MDNSRESPONDER */ } # ifdef HAVE_MDNSRESPONDER (void)commit; # else /* HAVE_AVAHI */ if (!from_callback) avahi_threaded_poll_lock(DNSSDMaster); if (!*srv) *srv = avahi_entry_group_new(DNSSDClient, dnssdRegisterCallback, NULL); if (!*srv) { if (!from_callback) avahi_threaded_poll_unlock(DNSSDMaster); cupsdLogMessage(CUPSD_LOG_WARN, "DNS-SD registration of \"%s\" failed: %s", name, dnssdErrorString(avahi_client_errno(DNSSDClient))); return (0); } # endif /* HAVE_MDNSRESPONDER */ /* * Make sure the name is <= 63 octets, and when we truncate be sure to * properly truncate any UTF-8 characters... */ ptr = name + strlen(name); while ((ptr - name) > 63) { do { ptr --; } while (ptr > name && (*ptr & 0xc0) == 0x80); if (ptr > name) *ptr = '\0'; } /* * Register the service... */ # ifdef HAVE_MDNSRESPONDER if (subtypes) snprintf(temp, sizeof(temp), "%s,%s", type, subtypes); else strlcpy(temp, type, sizeof(temp)); *srv = DNSSDMaster; error = DNSServiceRegister(srv, kDNSServiceFlagsShareConnection, 0, name, temp, NULL, DNSSDHostName, htons(port), txt ? TXTRecordGetLength(txt) : 0, txt ? TXTRecordGetBytesPtr(txt) : NULL, dnssdRegisterCallback, p); # else /* HAVE_AVAHI */ if (txt) { AvahiStringList *temptxt; for (temptxt = *txt; temptxt; temptxt = temptxt->next) cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS_SD \"%s\" %s", name, temptxt->text); } error = avahi_entry_group_add_service_strlst(*srv, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, type, NULL, DNSSDHostName, port, txt ? *txt : NULL); if (error) cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD service add for \"%s\" failed.", name); if (!error && subtypes) { /* * Register all of the subtypes... */ char *start, /* Start of subtype */ subtype[256]; /* Subtype string */ strlcpy(temp, subtypes, sizeof(temp)); for (start = temp; *start; start = ptr) { /* * Skip leading whitespace... */ while (*start && isspace(*start & 255)) start ++; /* * Grab everything up to the next comma or the end of the string... */ for (ptr = start; *ptr && *ptr != ','; ptr ++); if (*ptr) *ptr++ = '\0'; if (!*start) break; /* * Register the subtype... */ snprintf(subtype, sizeof(subtype), "%s._sub.%s", start, type); error = avahi_entry_group_add_service_subtype(*srv, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, type, NULL, subtype); if (error) { cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD subtype %s registration for \"%s\" failed." , subtype, name); break; } } } if (!error && commit) { if ((error = avahi_entry_group_commit(*srv)) != 0) cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD commit of \"%s\" failed.", name); } if (!from_callback) avahi_threaded_poll_unlock(DNSSDMaster); # endif /* HAVE_MDNSRESPONDER */ if (error) { cupsdLogMessage(CUPSD_LOG_WARN, "DNS-SD registration of \"%s\" failed: %s", name, dnssdErrorString(error)); cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD type: %s", type); if (subtypes) cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD sub-types: %s", subtypes); } return (!error); } /* * 'dnssdRegisterPrinter()' - Start sending broadcast information for a printer * or update the broadcast contents. */ static void dnssdRegisterPrinter( cupsd_printer_t *p, /* I - Printer */ int from_callback) /* I - Called from callback? */ { char name[256]; /* Service name */ int status; /* Registration status */ cupsd_txt_t ipp_txt; /* IPP(S) TXT record */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "dnssdRegisterPrinter(%s) %s", p->name, !p->ipp_srv ? "new" : "update"); # ifdef HAVE_AVAHI if (!avahi_running) return; # endif /* HAVE_AVAHI */ /* * Remove the current registrations if we have them and then return if * per-printer sharing was just disabled... */ dnssdDeregisterPrinter(p, 0, from_callback); if (!p->shared) return; /* * Set the registered name as needed; the registered name takes the form of * " @ "... */ if (!p->reg_name) { if (p->info && strlen(p->info) > 0) { if (DNSSDComputerName) snprintf(name, sizeof(name), "%s @ %s", p->info, DNSSDComputerName); else strlcpy(name, p->info, sizeof(name)); } else if (DNSSDComputerName) snprintf(name, sizeof(name), "%s @ %s", p->name, DNSSDComputerName); else strlcpy(name, p->name, sizeof(name)); } else strlcpy(name, p->reg_name, sizeof(name)); /* * Register IPP and LPD... * * We always must register the "_printer" service type in order to reserve * our name, but use port number 0 so that we don't have clients using LPD... */ ipp_txt = dnssdBuildTxtRecord(p); status = dnssdRegisterInstance(NULL, p, name, "_printer._tcp", NULL, 0, NULL, 0, from_callback); # ifdef HAVE_TLS if (status) dnssdRegisterInstance(NULL, p, name, "_ipps._tcp", DNSSDSubTypes, DNSSDPort, &ipp_txt, 0, from_callback); # endif /* HAVE_TLS */ if (status) { /* * Use the "_fax-ipp" service type for fax queues, otherwise use "_ipp"... */ if (p->type & CUPS_PRINTER_FAX) status = dnssdRegisterInstance(NULL, p, name, "_fax-ipp._tcp", DNSSDSubTypes, DNSSDPort, &ipp_txt, 1, from_callback); else status = dnssdRegisterInstance(NULL, p, name, "_ipp._tcp", DNSSDSubTypes, DNSSDPort, &ipp_txt, 1, from_callback); } dnssdFreeTxtRecord(&ipp_txt); if (status) { /* * Save the registered name and add the printer to the array of DNS-SD * printers... */ cupsdSetString(&p->reg_name, name); cupsArrayAdd(DNSSDPrinters, p); } else { /* * Registration failed for this printer... */ dnssdDeregisterInstance(&p->ipp_srv, from_callback); # ifdef HAVE_MDNSRESPONDER # ifdef HAVE_TLS dnssdDeregisterInstance(&p->ipps_srv, from_callback); # endif /* HAVE_TLS */ dnssdDeregisterInstance(&p->printer_srv, from_callback); # endif /* HAVE_MDNSRESPONDER */ } } /* * 'dnssdStop()' - Stop all DNS-SD registrations. */ static void dnssdStop(void) { cupsd_printer_t *p; /* Current printer */ /* * De-register the individual printers */ for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) dnssdDeregisterPrinter(p, 1, 0); /* * Shutdown the rest of the service refs... */ dnssdDeregisterInstance(&WebIFSrv, 0); # ifdef HAVE_MDNSRESPONDER cupsdRemoveSelect(DNSServiceRefSockFD(DNSSDMaster)); DNSServiceRefDeallocate(DNSSDMaster); DNSSDMaster = NULL; # else /* HAVE_AVAHI */ if (DNSSDMaster) avahi_threaded_poll_stop(DNSSDMaster); if (DNSSDClient) { avahi_client_free(DNSSDClient); DNSSDClient = NULL; } if (DNSSDMaster) { avahi_threaded_poll_free(DNSSDMaster); DNSSDMaster = NULL; } # endif /* HAVE_MDNSRESPONDER */ cupsArrayDelete(DNSSDPrinters); DNSSDPrinters = NULL; DNSSDPort = 0; } # ifdef HAVE_MDNSRESPONDER /* * 'dnssdUpdate()' - Handle DNS-SD queries. */ static void dnssdUpdate(void) { DNSServiceErrorType sdErr; /* Service discovery error */ if ((sdErr = DNSServiceProcessResult(DNSSDMaster)) != kDNSServiceErr_NoError) { cupsdLogMessage(CUPSD_LOG_ERROR, "DNS Service Discovery registration error %d!", sdErr); dnssdStop(); } } # endif /* HAVE_MDNSRESPONDER */ /* * 'dnssdUpdateDNSSDName()' - Update the listen port, computer name, and web interface registration. */ static void dnssdUpdateDNSSDName(int from_callback) /* I - Called from callback? */ { char webif[1024]; /* Web interface share name */ # ifdef __APPLE__ SCDynamicStoreRef sc; /* Context for dynamic store */ CFDictionaryRef btmm; /* Back-to-My-Mac domains */ CFStringEncoding nameEncoding; /* Encoding of computer name */ CFStringRef nameRef; /* Host name CFString */ char nameBuffer[1024]; /* C-string buffer */ # endif /* __APPLE__ */ /* * Only share the web interface and printers when non-local listening is * enabled... */ if (!DNSSDPort) { /* * Get the port we use for registrations. If we are not listening on any * non-local ports, there is no sense sharing local printers via Bonjour... */ cupsd_listener_t *lis; /* Current listening socket */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) { if (httpAddrLocalhost(&(lis->address))) continue; DNSSDPort = httpAddrPort(&(lis->address)); break; } } if (!DNSSDPort) return; /* * Get the computer name as a c-string... */ # ifdef __APPLE__ sc = SCDynamicStoreCreate(kCFAllocatorDefault, CFSTR("cupsd"), NULL, NULL); if (sc) { /* * Get the computer name from the dynamic store... */ cupsdClearString(&DNSSDComputerName); if ((nameRef = SCDynamicStoreCopyComputerName(sc, &nameEncoding)) != NULL) { if (CFStringGetCString(nameRef, nameBuffer, sizeof(nameBuffer), kCFStringEncodingUTF8)) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Dynamic store computer name is \"%s\".", nameBuffer); cupsdSetString(&DNSSDComputerName, nameBuffer); } CFRelease(nameRef); } if (!DNSSDComputerName) { /* * Use the ServerName instead... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Using ServerName \"%s\" as computer name.", ServerName); cupsdSetString(&DNSSDComputerName, ServerName); } if (!DNSSDHostName) { /* * Get the local hostname from the dynamic store... */ if ((nameRef = SCDynamicStoreCopyLocalHostName(sc)) != NULL) { if (CFStringGetCString(nameRef, nameBuffer, sizeof(nameBuffer), kCFStringEncodingUTF8)) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Dynamic store host name is \"%s\".", nameBuffer); if (strchr(nameBuffer, '.')) cupsdSetString(&DNSSDHostName, nameBuffer); else cupsdSetStringf(&DNSSDHostName, "%s.local", nameBuffer); cupsdLogMessage(CUPSD_LOG_INFO, "Defaulting to \"DNSSDHostName %s\".", DNSSDHostName); } CFRelease(nameRef); } } if (!DNSSDHostName) { /* * Use the ServerName instead... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "Using ServerName \"%s\" as host name.", ServerName); cupsdSetString(&DNSSDHostName, ServerName); cupsdLogMessage(CUPSD_LOG_INFO, "Defaulting to \"DNSSDHostName %s\".", DNSSDHostName); } /* * Get any Back-to-My-Mac domains and add them as aliases... */ cupsdFreeAliases(DNSSDAlias); DNSSDAlias = NULL; btmm = SCDynamicStoreCopyValue(sc, CFSTR("Setup:/Network/BackToMyMac")); if (btmm && CFGetTypeID(btmm) == CFDictionaryGetTypeID()) { cupsdLogMessage(CUPSD_LOG_DEBUG, "%d Back to My Mac aliases to add.", (int)CFDictionaryGetCount(btmm)); CFDictionaryApplyFunction(btmm, dnssdAddAlias, NULL); } else if (btmm) cupsdLogMessage(CUPSD_LOG_ERROR, "Bad Back to My Mac data in dynamic store!"); else cupsdLogMessage(CUPSD_LOG_DEBUG, "No Back to My Mac aliases to add."); if (btmm) CFRelease(btmm); CFRelease(sc); } else # endif /* __APPLE__ */ # ifdef HAVE_AVAHI if (DNSSDClient) { const char *host_name = avahi_client_get_host_name(DNSSDClient); cupsdSetString(&DNSSDComputerName, host_name ? host_name : ServerName); if (!DNSSDHostName) { const char *host_fqdn = avahi_client_get_host_name_fqdn(DNSSDClient); if (host_fqdn) cupsdSetString(&DNSSDHostName, host_fqdn); else if (strchr(ServerName, '.')) cupsdSetString(&DNSSDHostName, ServerName); else cupsdSetStringf(&DNSSDHostName, "%s.local", ServerName); cupsdLogMessage(CUPSD_LOG_INFO, "Defaulting to \"DNSSDHostName %s\".", DNSSDHostName); } } else # endif /* HAVE_AVAHI */ { cupsdSetString(&DNSSDComputerName, ServerName); if (!DNSSDHostName) { if (strchr(ServerName, '.')) cupsdSetString(&DNSSDHostName, ServerName); else cupsdSetStringf(&DNSSDHostName, "%s.local", ServerName); cupsdLogMessage(CUPSD_LOG_INFO, "Defaulting to \"DNSSDHostName %s\".", DNSSDHostName); } } /* * Then (re)register the web interface if enabled... */ if (BrowseWebIF) { if (DNSSDComputerName) snprintf(webif, sizeof(webif), "CUPS @ %s", DNSSDComputerName); else strlcpy(webif, "CUPS", sizeof(webif)); dnssdDeregisterInstance(&WebIFSrv, from_callback); dnssdRegisterInstance(&WebIFSrv, NULL, webif, "_http._tcp", "_printer", DNSSDPort, NULL, 1, from_callback); } } /* * 'get_auth_info_required()' - Get the auth-info-required value to advertise. */ static char * /* O - String or NULL if none */ get_auth_info_required( cupsd_printer_t *p, /* I - Printer */ char *buffer, /* I - Value buffer */ size_t bufsize) /* I - Size of value buffer */ { cupsd_location_t *auth; /* Pointer to authentication element */ char resource[1024]; /* Printer/class resource path */ /* * If auth-info-required is set for this printer, return that... */ if (p->num_auth_info_required > 0 && strcmp(p->auth_info_required[0], "none")) { int i; /* Looping var */ char *bufptr; /* Pointer into buffer */ for (i = 0, bufptr = buffer; i < p->num_auth_info_required; i ++) { if (bufptr >= (buffer + bufsize - 2)) break; if (i) *bufptr++ = ','; strlcpy(bufptr, p->auth_info_required[i], bufsize - (size_t)(bufptr - buffer)); bufptr += strlen(bufptr); } return (buffer); } /* * Figure out the authentication data requirements to advertise... */ if (p->type & CUPS_PRINTER_CLASS) snprintf(resource, sizeof(resource), "/classes/%s", p->name); else snprintf(resource, sizeof(resource), "/printers/%s", p->name); if ((auth = cupsdFindBest(resource, HTTP_POST)) == NULL || auth->type == CUPSD_AUTH_NONE) auth = cupsdFindPolicyOp(p->op_policy_ptr, IPP_PRINT_JOB); if (auth) { int auth_type; /* Authentication type */ if ((auth_type = auth->type) == CUPSD_AUTH_DEFAULT) auth_type = cupsdDefaultAuthType(); switch (auth_type) { case CUPSD_AUTH_NONE : return (NULL); case CUPSD_AUTH_NEGOTIATE : strlcpy(buffer, "negotiate", bufsize); break; default : strlcpy(buffer, "username,password", bufsize); break; } return (buffer); } return ("none"); } #endif /* HAVE_DNSSD */ cups-2.4.7/scheduler/cupsfilter.c0000644000175000017500000011532714502571342016674 0ustar zdohnalzdohnal/* * Filtering program for CUPS. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2016 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include "mime.h" #include #include #include #include #include #if defined(__APPLE__) # include #endif /* __APPLE__ */ /* * Local globals... */ static char *DataDir = NULL;/* CUPS_DATADIR environment variable */ static mime_filter_t GZIPFilter = /* gziptoany filter */ { NULL, /* Source type */ NULL, /* Destination type */ 0, /* Cost */ "gziptoany" /* Filter program to run */ }; static char *Path = NULL; /* PATH environment variable */ static char *ServerBin = NULL; /* CUPS_SERVERBIN environment variable */ static char *ServerRoot = NULL; /* CUPS_SERVERROOT environment variable */ static char TempFile[1024] = ""; /* Temporary file */ /* * Local functions... */ static void add_printer_filter(const char *command, mime_t *mime, mime_type_t *printer_type, const char *filter); static mime_type_t *add_printer_filters(const char *command, mime_t *mime, const char *printer, const char *ppdfile, mime_type_t **prefilter_type); static void check_cb(void *context, _cups_fc_result_t result, const char *message); static int compare_pids(mime_filter_t *a, mime_filter_t *b); static char *escape_options(int num_options, cups_option_t *options); static int exec_filter(const char *filter, char **argv, char **envp, int infd, int outfd); static int exec_filters(mime_type_t *srctype, cups_array_t *filters, const char *infile, const char *outfile, const char *ppdfile, const char *printer, const char *user, const char *title, int num_options, cups_option_t *options); static void get_job_file(const char *job); static int open_pipe(int *fds); static int read_cups_files_conf(const char *filename); static void set_string(char **s, const char *val); static void sighandler(int sig); static void usage(const char *opt) _CUPS_NORETURN; /* * 'main()' - Main entry for the test program. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, /* Looping vars */ list_filters = 0; /* Just list the filters? */ const char *command, /* Command name */ *opt, /* Current option */ *printer; /* Printer name */ mime_type_t *printer_type, /* Printer MIME type */ *prefilter_type; /* Printer prefilter MIME type */ char *srctype, /* Source type */ *dsttype, /* Destination type */ super[MIME_MAX_SUPER], /* Super-type name */ type[MIME_MAX_TYPE]; /* Type name */ int compression; /* Compression of file */ int cost; /* Cost of filters */ mime_t *mime; /* MIME database */ char mimedir[1024]; /* MIME directory */ char *infile, /* File to filter */ *outfile; /* File to create */ char cupsfilesconf[1024]; /* cups-files.conf file */ const char *server_root; /* CUPS_SERVERROOT environment variable */ mime_type_t *src, /* Source type */ *dst; /* Destination type */ cups_array_t *filters; /* Filters for the file */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ const char *ppdfile; /* PPD file */ const char *title, /* Title string */ *user; /* Username */ int all_filters, /* Use all filters */ removeppd, /* Remove PPD file */ removeinfile; /* Remove input file */ int status; /* Execution status */ /* * Setup defaults... */ if ((command = strrchr(argv[0], '/')) != NULL) command ++; else command = argv[0]; printer = !strcmp(command, "convert") ? "tofile" : "cupsfilter"; mime = NULL; srctype = NULL; compression = 0; dsttype = "application/pdf"; infile = NULL; outfile = NULL; num_options = 0; options = NULL; ppdfile = NULL; title = NULL; user = cupsUser(); all_filters = 0; removeppd = 0; removeinfile = 0; if ((server_root = getenv("CUPS_SERVERROOT")) == NULL) server_root = CUPS_SERVERROOT; snprintf(cupsfilesconf, sizeof(cupsfilesconf), "%s/cups-files.conf", server_root); /* * Process command-line arguments... */ _cupsSetLocale(argv); for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { if (!strcmp(argv[i], "--list-filters")) { list_filters = 1; } else if (!strcmp(argv[i], "--")) { i ++; if (i < argc && !infile) infile = argv[i]; else usage(NULL); } else { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'a' : /* Specify option... */ i ++; if (i < argc) { num_options = cupsParseOptions(argv[i], num_options, &options); } else { _cupsLangPrintf(stderr, _("%s: Error - expected name=value after \"-a\" option."), argv[0]); usage(opt); } break; case 'c' : /* Specify cups-files.conf file location... */ i ++; if (i < argc) { if (!strcmp(command, "convert")) num_options = cupsAddOption("copies", argv[i], num_options, &options); else strlcpy(cupsfilesconf, argv[i], sizeof(cupsfilesconf)); } else { _cupsLangPrintf(stderr, _("%s: Error - expected filename after \"-c\" option."), argv[0]); usage(NULL); } break; case 'd' : /* Specify the real printer name */ i ++; if (i < argc) { printer = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected printer name after \"-d\" option."), argv[0]); usage(NULL); } break; case 'D' : /* Delete input file after conversion */ removeinfile = 1; break; case 'e' : /* Use every filter from the PPD file */ all_filters = 1; break; case 'f' : /* Specify input file... */ i ++; if (i < argc && !infile) { infile = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected input file after \"-f\" option."), argv[0]); usage(NULL); } break; case 'i' : /* Specify source MIME type... */ i ++; if (i < argc) { if (sscanf(argv[i], "%15[^/]/%255s", super, type) != 2) usage(opt); srctype = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected source MIME type after \"-i\" option."), argv[0]); usage(NULL); } break; case 'j' : /* Get job file or specify destination MIME type... */ if (strcmp(command, "convert")) { i ++; if (i < argc) { get_job_file(argv[i]); infile = TempFile; } else { _cupsLangPrintf(stdout, _("%s: Error - expected job-id after \"-j\" option."), argv[0]); usage(NULL); } break; } case 'm' : /* Specify destination MIME type... */ i ++; if (i < argc) { if (sscanf(argv[i], "%15[^/]/%255s", super, type) != 2) usage(opt); dsttype = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected destination MIME type after \"-m\" option."), argv[0]); usage(NULL); } break; case 'n' : /* Specify number of copies... */ i ++; if (i < argc) { num_options = cupsAddOption("copies", argv[i], num_options, &options); } else { _cupsLangPrintf(stderr, _("%s: Error - expected number of copies after \"-n\" option."), argv[0]); usage(NULL); } break; case 'o' : /* Specify option(s) or output filename */ i ++; if (i < argc) { if (!strcmp(command, "convert")) { if (outfile) usage(NULL); else outfile = argv[i]; } else { num_options = cupsParseOptions(argv[i], num_options, &options); } } else { _cupsLangPrintf(stderr, _("%s: Error - expected name=value after \"-o\" option."), argv[0]); usage(NULL); } break; case 'p' : /* Specify PPD file... */ case 'P' : /* Specify PPD file... */ i ++; if (i < argc) { ppdfile = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected PPD file after \"-%c\" option."), argv[0], *opt); usage(NULL); } break; case 't' : /* Specify title... */ case 'J' : /* Specify title... */ i ++; if (i < argc) { title = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected title after \"-%c\" option."), argv[0], *opt); usage(NULL); } break; case 'u' : /* Delete PPD file after conversion */ removeppd = 1; break; case 'U' : /* Specify username... */ i ++; if (i < argc) { user = argv[i]; } else { _cupsLangPrintf(stderr, _("%s: Error - expected \"username\" after \"-U\" option."), argv[0]); usage(NULL); } break; default : /* Something we don't understand... */ _cupsLangPrintf(stderr, _("%s: Error - unknown option \"-%c\"."), argv[0], *opt); usage(NULL); } } } } else if (!infile) { if (strcmp(command, "convert")) infile = argv[i]; else usage(NULL); } else { _cupsLangPuts(stderr, _("cupsfilter: Only one filename can be specified.")); usage(NULL); } } if (!infile && !srctype) usage(NULL); if (!title) { if (!infile) title = "(stdin)"; else if ((title = strrchr(infile, '/')) != NULL) title ++; else title = infile; } /* * Load the cups-files.conf file and create the MIME database... */ if (read_cups_files_conf(cupsfilesconf)) return (1); snprintf(mimedir, sizeof(mimedir), "%s/mime", DataDir); mime = mimeLoadTypes(NULL, mimedir); mime = mimeLoadTypes(mime, ServerRoot); mime = mimeLoadFilters(mime, mimedir, Path); mime = mimeLoadFilters(mime, ServerRoot, Path); if (!mime) { _cupsLangPrintf(stderr, _("%s: Unable to read MIME database from \"%s\" or \"%s\"."), command, mimedir, ServerRoot); return (1); } prefilter_type = NULL; if (all_filters) printer_type = add_printer_filters(command, mime, printer, ppdfile, &prefilter_type); else printer_type = mimeType(mime, "application", "vnd.cups-postscript"); /* * Get the source and destination types... */ if (srctype) { /* sscanf return value already checked above */ sscanf(srctype, "%15[^/]/%255s", super, type); if ((src = mimeType(mime, super, type)) == NULL) { _cupsLangPrintf(stderr, _("%s: Unknown source MIME type %s/%s."), command, super, type); return (1); } } else if ((src = mimeFileType(mime, infile, infile, &compression)) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to determine MIME type of \"%s\"."), command, infile); return (1); } /* sscanf return value already checked above */ sscanf(dsttype, "%15[^/]/%255s", super, type); if (!_cups_strcasecmp(super, "printer")) dst = printer_type; else if ((dst = mimeType(mime, super, type)) == NULL) { _cupsLangPrintf(stderr, _("%s: Unknown destination MIME type %s/%s."), command, super, type); return (1); } /* * Figure out how to filter the file... */ if (src == dst) { /* * Special case - no filtering needed... */ filters = cupsArrayNew(NULL, NULL); cupsArrayAdd(filters, &GZIPFilter); GZIPFilter.src = src; GZIPFilter.dst = dst; } else if ((filters = mimeFilter(mime, src, dst, &cost)) == NULL) { _cupsLangPrintf(stderr, _("%s: No filter to convert from %s/%s to %s/%s."), command, src->super, src->type, dst->super, dst->type); return (1); } else if (compression) cupsArrayInsert(filters, &GZIPFilter); if (prefilter_type) { /* * Add pre-filters... */ mime_filter_t *filter, /* Current filter */ *prefilter; /* Current pre-filter */ cups_array_t *prefilters = cupsArrayNew(NULL, NULL); /* New filters array */ for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) { if ((prefilter = mimeFilterLookup(mime, filter->src, prefilter_type)) != NULL) cupsArrayAdd(prefilters, prefilter); cupsArrayAdd(prefilters, filter); } cupsArrayDelete(filters); filters = prefilters; } if (list_filters) { /* * List filters... */ mime_filter_t *filter; /* Current filter */ for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) if (strcmp(filter->filter, "-")) _cupsLangPuts(stdout, filter->filter); status = 0; } else { /* * Run filters... */ status = exec_filters(src, filters, infile, outfile, ppdfile, printer, user, title, num_options, options); } /* * Remove files as needed, then exit... */ if (TempFile[0]) unlink(TempFile); if (removeppd && ppdfile) unlink(ppdfile); if (removeinfile && infile) unlink(infile); return (status); } /* * 'add_printer_filter()' - Add a single filters from a PPD file. */ static void add_printer_filter( const char *command, /* I - Command name */ mime_t *mime, /* I - MIME database */ mime_type_t *filtertype, /* I - Printer or prefilter MIME type */ const char *filter) /* I - Filter to add */ { char super[MIME_MAX_SUPER], /* Super-type for filter */ type[MIME_MAX_TYPE], /* Type for filter */ dsuper[MIME_MAX_SUPER], /* Destination super-type for filter */ dtype[MIME_MAX_TYPE], /* Destination type for filter */ dest[MIME_MAX_SUPER + MIME_MAX_TYPE + 2], /* Destination super/type */ program[1024]; /* Program/filter name */ int cost; /* Cost of filter */ size_t maxsize = 0; /* Maximum supported file size */ mime_type_t *temptype, /* MIME type looping var */ *desttype; /* Destination MIME type */ mime_filter_t *filterptr; /* MIME filter */ /* * Parse the filter string; it should be in one of the following formats: * * source/type cost program * source/type cost maxsize(nnnn) program * source/type dest/type cost program * source/type dest/type cost maxsize(nnnn) program */ if (sscanf(filter, "%15[^/]/%255s%*[ \t]%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, dsuper, dtype, &cost, program) == 6) { snprintf(dest, sizeof(dest), "%s/%s/%s", filtertype->type, dsuper, dtype); if ((desttype = mimeType(mime, "printer", dest)) == NULL) desttype = mimeAddType(mime, "printer", dest); } else { if (sscanf(filter, "%15[^/]/%255s%d%*[ \t]%1023[^\n]", super, type, &cost, program) == 4) { desttype = filtertype; } else { _cupsLangPrintf(stderr, _("%s: Invalid filter string \"%s\"."), command, filter); return; } } if (!strncmp(program, "maxsize(", 8)) { char *ptr; /* Pointer into maxsize(nnnn) program */ maxsize = (size_t)strtoll(program + 8, &ptr, 10); if (*ptr != ')') { printf("testmime: Invalid filter string \"%s\".\n", filter); return; } ptr ++; while (_cups_isspace(*ptr)) ptr ++; _cups_strcpy(program, ptr); } /* * See if the filter program exists; if not, stop the printer and flag * the error! */ if (strcmp(program, "-")) { char filename[1024]; /* Full path to program */ if (program[0] == '/') strlcpy(filename, program, sizeof(filename)); else snprintf(filename, sizeof(filename), "%s/filter/%s", ServerBin, program); if (_cupsFileCheck(filename, _CUPS_FILE_CHECK_PROGRAM, !geteuid(), check_cb, (void *)command)) return; } /* * Add the filter to the MIME database, supporting wildcards as needed... */ for (temptype = mimeFirstType(mime); temptype; temptype = mimeNextType(mime)) if (((super[0] == '*' && _cups_strcasecmp(temptype->super, "printer")) || !_cups_strcasecmp(temptype->super, super)) && (type[0] == '*' || !_cups_strcasecmp(temptype->type, type))) { if (desttype != filtertype) { filterptr = mimeAddFilter(mime, temptype, desttype, cost, program); if (!mimeFilterLookup(mime, desttype, filtertype)) mimeAddFilter(mime, desttype, filtertype, 0, "-"); } else filterptr = mimeAddFilter(mime, temptype, filtertype, cost, program); if (filterptr) filterptr->maxsize = maxsize; } } /* * 'add_printer_filters()' - Add filters from a PPD file. */ static mime_type_t * /* O - Printer type or NULL on error */ add_printer_filters( const char *command, /* I - Command name */ mime_t *mime, /* I - MIME database */ const char *printer, /* I - Printer name */ const char *ppdfile, /* I - PPD file */ mime_type_t **prefilter_type) /* O - Prefilter type */ { ppd_file_t *ppd; /* PPD file data */ _ppd_cache_t *pc; /* Cache data for PPD */ const char *value; /* Filter definition value */ mime_type_t *printer_type; /* Printer filter type */ if ((ppd = _ppdOpenFile(ppdfile, _PPD_LOCALIZATION_NONE)) == NULL) { ppd_status_t status; /* PPD load status */ int linenum; /* Line number */ status = ppdLastError(&linenum); _cupsLangPrintf(stderr, _("%s: Unable to open PPD file: %s on line %d."), command, ppdErrorString(status), linenum); return (NULL); } pc = _ppdCacheCreateWithPPD(ppd); if (!pc) return (NULL); printer_type = mimeAddType(mime, "printer", printer); *prefilter_type = NULL; if (pc->filters) { for (value = (const char *)cupsArrayFirst(pc->filters); value; value = (const char *)cupsArrayNext(pc->filters)) add_printer_filter(command, mime, printer_type, value); } else { add_printer_filter(command, mime, printer_type, "application/vnd.cups-raw 0 -"); add_printer_filter(command, mime, printer_type, "application/vnd.cups-postscript 0 -"); } if (pc->prefilters) { *prefilter_type = mimeAddType(mime, "prefilter", printer); for (value = (const char *)cupsArrayFirst(pc->prefilters); value; value = (const char *)cupsArrayNext(pc->prefilters)) add_printer_filter(command, mime, *prefilter_type, value); } return (printer_type); } /* * 'check_cb()' - Callback function for _cupsFileCheck. */ static void check_cb(void *context, /* I - Context (command name) */ _cups_fc_result_t result, /* I - Result of check */ const char *message) /* I - Localized message */ { (void)result; _cupsLangPrintf(stderr, _("%s: %s"), (char *)context, message); } /* * 'compare_pids()' - Compare two filter PIDs... */ static int /* O - Result of comparison */ compare_pids(mime_filter_t *a, /* I - First filter */ mime_filter_t *b) /* I - Second filter */ { /* * Because we're particularly lazy, we store the process ID in the "cost" * variable... */ return (a->cost - b->cost); } /* * 'escape_options()' - Convert an options array to a string. */ static char * /* O - Option string */ escape_options( int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int i; /* Looping var */ cups_option_t *option; /* Current option */ size_t bytes; /* Number of bytes needed */ char *s, /* Option string */ *sptr, /* Pointer into string */ *vptr; /* Pointer into value */ /* * Figure out the worst-case number of bytes we need for the option string. */ for (i = num_options, option = options, bytes = 1; i > 0; i --, option ++) bytes += 2 * (strlen(option->name) + strlen(option->value)) + 2; if ((s = malloc(bytes)) == NULL) return (NULL); /* * Copy the options to the string... */ for (i = num_options, option = options, sptr = s; i > 0; i --, option ++) { if (!strcmp(option->name, "copies")) continue; if (sptr > s) *sptr++ = ' '; strlcpy(sptr, option->name, bytes - (size_t)(sptr - s)); sptr += strlen(sptr); *sptr++ = '='; for (vptr = option->value; *vptr;) { if (strchr("\\ \t\n", *vptr)) *sptr++ = '\\'; *sptr++ = *vptr++; } } *sptr = '\0'; return (s); } /* * 'exec_filter()' - Execute a single filter. */ static int /* O - Process ID or -1 on error */ exec_filter(const char *filter, /* I - Filter to execute */ char **argv, /* I - Argument list */ char **envp, /* I - Environment list */ int infd, /* I - Stdin file descriptor */ int outfd) /* I - Stdout file descriptor */ { int pid, /* Process ID */ fd; /* Temporary file descriptor */ #if defined(__APPLE__) char processPath[1024], /* CFProcessPath environment variable */ linkpath[1024]; /* Link path for symlinks... */ int linkbytes; /* Bytes for link path */ /* * Add special voodoo magic for macOS - this allows macOS * programs to access their bundle resources properly... */ if ((linkbytes = readlink(filter, linkpath, sizeof(linkpath) - 1)) > 0) { /* * Yes, this is a symlink to the actual program, nul-terminate and * use it... */ linkpath[linkbytes] = '\0'; if (linkpath[0] == '/') snprintf(processPath, sizeof(processPath), "CFProcessPath=%s", linkpath); else snprintf(processPath, sizeof(processPath), "CFProcessPath=%s/%s", dirname((char *)filter), linkpath); } else snprintf(processPath, sizeof(processPath), "CFProcessPath=%s", filter); envp[0] = processPath; /* Replace string */ #endif /* __APPLE__ */ if ((pid = fork()) == 0) { /* * Child process goes here... * * Update stdin/stdout/stderr as needed... */ if (infd != 0) { if (infd < 0) infd = open("/dev/null", O_RDONLY); if (infd > 0) { dup2(infd, 0); close(infd); } } if (outfd != 1) { if (outfd < 0) outfd = open("/dev/null", O_WRONLY); if (outfd > 1) { dup2(outfd, 1); close(outfd); } } if ((fd = open("/dev/null", O_RDWR)) > 3) { dup2(fd, 3); close(fd); } fcntl(3, F_SETFL, O_NDELAY); if ((fd = open("/dev/null", O_RDWR)) > 4) { dup2(fd, 4); close(fd); } fcntl(4, F_SETFL, O_NDELAY); /* * Execute command... */ execve(filter, argv, envp); perror(filter); exit(errno); } return (pid); } /* * 'exec_filters()' - Execute filters for the given file and options. */ static int /* O - 0 on success, 1 on error */ exec_filters(mime_type_t *srctype, /* I - Source type */ cups_array_t *filters, /* I - Array of filters to run */ const char *infile, /* I - File to filter */ const char *outfile, /* I - File to create */ const char *ppdfile, /* I - PPD file, if any */ const char *printer, /* I - Printer name */ const char *user, /* I - Username */ const char *title, /* I - Job title */ int num_options, /* I - Number of filter options */ cups_option_t *options) /* I - Filter options */ { int i; /* Looping var */ const char *argv[8], /* Command-line arguments */ *envp[21], /* Environment variables */ *temp; /* Temporary string */ char *optstr, /* Filter options */ content_type[1024], /* CONTENT_TYPE */ cups_datadir[1024], /* CUPS_DATADIR */ cups_fontpath[1024], /* CUPS_FONTPATH */ cups_serverbin[1024], /* CUPS_SERVERBIN */ cups_serverroot[1024], /* CUPS_SERVERROOT */ final_content_type[1024] = "", /* FINAL_CONTENT_TYPE */ lang[1024], /* LANG */ path[1024], /* PATH */ ppd[1024], /* PPD */ printer_info[255], /* PRINTER_INFO env variable */ printer_location[255], /* PRINTER_LOCATION env variable */ printer_name[255], /* PRINTER env variable */ userenv[1024], /* USER */ #if CUPS_SNAP fontconfig_file[1024], /* FONTCONFIG_FILE */ fontconfig_path[1024], /* FONTCONFIG_PATH */ fontconfig_sysroot[1024], /* FONTCONFIG_SYSROOT */ ld_library_path[2048], /* LD_LIBRARY_PATH */ #endif /* CUPS_SNAP */ program[1024]; /* Program to run */ mime_filter_t *filter, /* Current filter */ *next; /* Next filter */ int current, /* Current filter */ filterfds[2][2], /* Pipes for filters */ pid, /* Process ID of filter */ status, /* Exit status */ retval; /* Return value */ cups_array_t *pids; /* Executed filters array */ mime_filter_t key; /* Search key for filters */ cups_lang_t *language; /* Current language */ cups_dest_t *dest; /* Destination information */ /* * Figure out the final content type... */ for (filter = (mime_filter_t *)cupsArrayLast(filters); filter && filter->dst; filter = (mime_filter_t *)cupsArrayPrev(filters)) if (strcmp(filter->dst->super, "printer")) break; if (filter && filter->dst) { const char *ptr; /* Pointer in type name */ if ((ptr = strchr(filter->dst->type, '/')) != NULL) snprintf(final_content_type, sizeof(final_content_type), "FINAL_CONTENT_TYPE=%s", ptr + 1); else snprintf(final_content_type, sizeof(final_content_type), "FINAL_CONTENT_TYPE=%s/%s", filter->dst->super, filter->dst->type); } /* * Remove NULL ("-") filters... */ for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = (mime_filter_t *)cupsArrayNext(filters)) if (!strcmp(filter->filter, "-")) cupsArrayRemove(filters, filter); /* * Setup the filter environment and command-line... */ optstr = escape_options(num_options, options); snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s/%s", srctype->super, srctype->type); snprintf(cups_datadir, sizeof(cups_datadir), "CUPS_DATADIR=%s", DataDir); snprintf(cups_serverbin, sizeof(cups_serverbin), "CUPS_SERVERBIN=%s", ServerBin); snprintf(cups_serverroot, sizeof(cups_serverroot), "CUPS_SERVERROOT=%s", ServerRoot); language = cupsLangDefault(); snprintf(lang, sizeof(lang), "LANG=%s.UTF8", language->language); snprintf(path, sizeof(path), "PATH=%s", Path); if (ppdfile) snprintf(ppd, sizeof(ppd), "PPD=%s", ppdfile); else if ((temp = getenv("PPD")) != NULL) snprintf(ppd, sizeof(ppd), "PPD=%s", temp); else #ifdef __APPLE__ if (!access("/System/Library/Frameworks/ApplicationServices.framework/" "Versions/A/Frameworks/PrintCore.framework/Versions/A/" "Resources/English.lproj/Generic.ppd", 0)) strlcpy(ppd, "PPD=/System/Library/Frameworks/ApplicationServices.framework/" "Versions/A/Frameworks/PrintCore.framework/Versions/A/" "Resources/English.lproj/Generic.ppd", sizeof(ppd)); else strlcpy(ppd, "PPD=/System/Library/Frameworks/ApplicationServices.framework/" "Versions/A/Frameworks/PrintCore.framework/Versions/A/" "Resources/Generic.ppd", sizeof(ppd)); #else snprintf(ppd, sizeof(ppd), "PPD=%s/model/laserjet.ppd", DataDir); #endif /* __APPLE__ */ snprintf(userenv, sizeof(userenv), "USER=%s", user); if (printer && (dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, printer, NULL)) != NULL) { if ((temp = cupsGetOption("printer-info", dest->num_options, dest->options)) != NULL) snprintf(printer_info, sizeof(printer_info), "PRINTER_INFO=%s", temp); else snprintf(printer_info, sizeof(printer_info), "PRINTER_INFO=%s", printer); if ((temp = cupsGetOption("printer-location", dest->num_options, dest->options)) != NULL) snprintf(printer_location, sizeof(printer_location), "PRINTER_LOCATION=%s", temp); else strlcpy(printer_location, "PRINTER_LOCATION=Unknown", sizeof(printer_location)); } else { snprintf(printer_info, sizeof(printer_info), "PRINTER_INFO=%s", printer ? printer : "Unknown"); strlcpy(printer_location, "PRINTER_LOCATION=Unknown", sizeof(printer_location)); } snprintf(printer_name, sizeof(printer_name), "PRINTER=%s", printer ? printer : "Unknown"); argv[0] = (char *)printer; argv[1] = "1"; argv[2] = user; argv[3] = title; argv[4] = cupsGetOption("copies", num_options, options); argv[5] = optstr; argv[6] = infile; argv[7] = NULL; if (!argv[4]) argv[4] = "1"; for (i = 0; argv[i]; i ++) fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]); i = 0; #ifdef __APPLE__ envp[i ++] = ""; #endif /* __APPLE__ */ envp[i ++] = content_type; envp[i ++] = cups_datadir; envp[i ++] = cups_fontpath; envp[i ++] = cups_serverbin; envp[i ++] = cups_serverroot; envp[i ++] = lang; envp[i ++] = path; envp[i ++] = ppd; envp[i ++] = printer_info; envp[i ++] = printer_location; envp[i ++] = printer_name; envp[i ++] = userenv; envp[i ++] = "CHARSET=utf-8"; if (final_content_type[0]) envp[i ++] = final_content_type; #if CUPS_SNAP if ((temp = getenv("FONTCONFIG_FILE")) != NULL) { snprintf(fontconfig_file, sizeof(fontconfig_file), "FONTCONFIG_FILE=%s", temp); envp[i ++] = fontconfig_file; } if ((temp = getenv("FONTCONFIG_PATH")) != NULL) { snprintf(fontconfig_path, sizeof(fontconfig_path), "FONTCONFIG_PATH=%s", temp); envp[i ++] = fontconfig_path; } if ((temp = getenv("FONTCONFIG_SYSROOT")) != NULL) { snprintf(fontconfig_sysroot, sizeof(fontconfig_sysroot), "FONTCONFIG_SYSROOT=%s", temp); envp[i ++] = fontconfig_sysroot; } if ((temp = getenv("LD_LIBRARY_PATH")) != NULL) { snprintf(ld_library_path, sizeof(ld_library_path), "LD_LIBRARY_PATH=%s", temp); envp[i ++] = ld_library_path; } #endif /* CUPS_SNAP */ envp[i] = NULL; for (i = 0; envp[i]; i ++) fprintf(stderr, "DEBUG: envp[%d]=\"%s\"\n", i, envp[i]); /* * Execute all of the filters... */ pids = cupsArrayNew((cups_array_func_t)compare_pids, NULL); current = 1; filterfds[0][0] = infile ? -1 : 0; filterfds[0][1] = -1; filterfds[1][0] = -1; filterfds[1][1] = -1; for (filter = (mime_filter_t *)cupsArrayFirst(filters); filter; filter = next, current ^= 1) { next = (mime_filter_t *)cupsArrayNext(filters); if (filter->filter[0] == '/') strlcpy(program, filter->filter, sizeof(program)); else snprintf(program, sizeof(program), "%s/filter/%s", ServerBin, filter->filter); if (filterfds[current][1] > 1) { close(filterfds[current][0]); close(filterfds[current][1]); filterfds[current][0] = -1; filterfds[current][1] = -1; } if (next) open_pipe(filterfds[current]); else if (outfile) { filterfds[current][1] = open(outfile, O_CREAT | O_TRUNC | O_WRONLY, 0666); if (filterfds[current][1] < 0) fprintf(stderr, "ERROR: Unable to create \"%s\" - %s\n", outfile, strerror(errno)); } else filterfds[current][1] = 1; pid = exec_filter(program, (char **)argv, (char **)envp, filterfds[current ^ 1][0], filterfds[current][1]); if (pid > 0) { fprintf(stderr, "INFO: %s (PID %d) started.\n", filter->filter, pid); filter->cost = pid; cupsArrayAdd(pids, filter); } else break; argv[6] = NULL; } /* * Close remaining pipes... */ if (filterfds[0][1] > 1) { close(filterfds[0][0]); close(filterfds[0][1]); } if (filterfds[1][1] > 1) { close(filterfds[1][0]); close(filterfds[1][1]); } /* * Wait for the children to exit... */ retval = 0; while (cupsArrayCount(pids) > 0) { if ((pid = wait(&status)) < 0) continue; key.cost = pid; if ((filter = (mime_filter_t *)cupsArrayFind(pids, &key)) != NULL) { cupsArrayRemove(pids, filter); if (status) { if (WIFEXITED(status)) fprintf(stderr, "ERROR: %s (PID %d) stopped with status %d\n", filter->filter, pid, WEXITSTATUS(status)); else fprintf(stderr, "ERROR: %s (PID %d) crashed on signal %d\n", filter->filter, pid, WTERMSIG(status)); retval = 1; } else fprintf(stderr, "INFO: %s (PID %d) exited with no errors.\n", filter->filter, pid); } } cupsArrayDelete(pids); return (retval); } /* * 'get_job_file()' - Get the specified job file. */ static void get_job_file(const char *job) /* I - Job ID */ { long jobid, /* Job ID */ docnum; /* Document number */ const char *jobptr; /* Pointer into job ID string */ char uri[1024]; /* job-uri */ http_t *http; /* Connection to server */ ipp_t *request; /* Request data */ int tempfd; /* Temporary file */ /* * Get the job ID and document number, if any... */ if ((jobptr = strrchr(job, '-')) != NULL) jobptr ++; else jobptr = job; jobid = strtol(jobptr, (char **)&jobptr, 10); if (*jobptr == ',') docnum = strtol(jobptr + 1, NULL, 10); else docnum = 1; if (jobid < 1 || jobid > INT_MAX) { _cupsLangPrintf(stderr, _("cupsfilter: Invalid job ID %d."), (int)jobid); exit(1); } if (docnum < 1 || docnum > INT_MAX) { _cupsLangPrintf(stderr, _("cupsfilter: Invalid document number %d."), (int)docnum); exit(1); } /* * Ask the server for the document file... */ if ((http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption())) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to connect to server."), "cupsfilter"); exit(1); } request = ippNewRequest(CUPS_GET_DOCUMENT); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", (int)jobid); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "document-number", (int)docnum); if ((tempfd = cupsTempFd(TempFile, sizeof(TempFile))) == -1) { _cupsLangPrintError("ERROR", _("Unable to create temporary file")); httpClose(http); exit(1); } signal(SIGTERM, sighandler); ippDelete(cupsDoIORequest(http, request, "/", -1, tempfd)); close(tempfd); httpClose(http); if (cupsLastError() != IPP_OK) { _cupsLangPrintf(stderr, _("cupsfilter: Unable to get job file - %s"), cupsLastErrorString()); unlink(TempFile); exit(1); } } /* * 'open_pipe()' - Create a pipe which is closed on exec. */ static int /* O - 0 on success, -1 on error */ open_pipe(int *fds) /* O - Pipe file descriptors (2) */ { /* * Create the pipe... */ if (pipe(fds)) { fds[0] = -1; fds[1] = -1; return (-1); } /* * Set the "close on exec" flag on each end of the pipe... */ if (fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); fds[0] = -1; fds[1] = -1; return (-1); } if (fcntl(fds[1], F_SETFD, fcntl(fds[1], F_GETFD) | FD_CLOEXEC)) { close(fds[0]); close(fds[1]); fds[0] = -1; fds[1] = -1; return (-1); } /* * Return 0 indicating success... */ return (0); } /* * 'read_cups_files_conf()' - Read the cups-files.conf file to get the filter settings. */ static int /* O - 0 on success, 1 on error */ read_cups_files_conf( const char *filename) /* I - File to read */ { cups_file_t *fp; /* cups-files.conf file */ const char *temp; /* Temporary string */ char line[1024], /* Line from file */ *ptr; /* Pointer into line */ int linenum; /* Current line number */ if ((temp = getenv("CUPS_DATADIR")) != NULL) set_string(&DataDir, temp); else set_string(&DataDir, CUPS_DATADIR); if ((temp = getenv("CUPS_SERVERBIN")) != NULL) set_string(&ServerBin, temp); else set_string(&ServerBin, CUPS_SERVERBIN); strlcpy(line, filename, sizeof(line)); if ((ptr = strrchr(line, '/')) != NULL) *ptr = '\0'; else getcwd(line, sizeof(line)); set_string(&ServerRoot, line); if ((fp = cupsFileOpen(filename, "r")) != NULL) { linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &ptr, &linenum)) { if (!_cups_strcasecmp(line, "DataDir")) set_string(&DataDir, ptr); else if (!_cups_strcasecmp(line, "ServerBin")) set_string(&ServerBin, ptr); else if (!_cups_strcasecmp(line, "ServerRoot")) set_string(&ServerRoot, ptr); } cupsFileClose(fp); } #if CUPS_SNAP if ((temp = getenv("PATH")) != NULL) snprintf(line, sizeof(line), "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":%s", ServerBin, temp); else #endif /* CUPS_SNAP */ snprintf(line, sizeof(line), "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":/bin:/usr/bin", ServerBin); set_string(&Path, line); return (0); } /* * 'set_string()' - Copy and set a string. */ static void set_string(char **s, /* O - Copy of string */ const char *val) /* I - String to copy */ { if (*s) free(*s); *s = strdup(val); } /* * 'sighandler()' - Signal catcher for when we print from stdin... */ static void sighandler(int s) /* I - Signal number */ { /* * Remove the temporary file we're using to print a job file... */ if (TempFile[0]) unlink(TempFile); /* * Exit... */ exit(s); } /* * 'usage()' - Show program usage... */ static void usage(const char *opt) /* I - Incorrect option, if any */ { if (opt) _cupsLangPrintf(stderr, _("%s: Unknown option \"%c\"."), "cupsfilter", *opt); _cupsLangPuts(stdout, _("Usage: cupsfilter [ options ] [ -- ] filename")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" --list-filters List filters that will be used.")); _cupsLangPuts(stdout, _(" -D Remove the input file when finished.")); _cupsLangPuts(stdout, _(" -P filename.ppd Set PPD file.")); _cupsLangPuts(stdout, _(" -U username Specify username.")); _cupsLangPuts(stdout, _(" -c cups-files.conf Set cups-files.conf file to use.")); _cupsLangPuts(stdout, _(" -d printer Use the named printer.")); _cupsLangPuts(stdout, _(" -e Use every filter from the PPD file.")); _cupsLangPuts(stdout, _(" -i mime/type Set input MIME type (otherwise auto-typed).")); _cupsLangPuts(stdout, _(" -j job-id[,N] Filter file N from the specified job (default is file 1).")); _cupsLangPuts(stdout, _(" -m mime/type Set output MIME type (otherwise application/pdf).")); _cupsLangPuts(stdout, _(" -n copies Set number of copies.")); _cupsLangPuts(stdout, _(" -o name=value Set option(s).")); _cupsLangPuts(stdout, _(" -p filename.ppd Set PPD file.")); _cupsLangPuts(stdout, _(" -t title Set title.")); _cupsLangPuts(stdout, _(" -u Remove the PPD file when finished.")); exit(1); } cups-2.4.7/scheduler/cupsd.h0000644000175000017500000001246514502571342015636 0ustar zdohnalzdohnal/* * Main header file for the CUPS scheduler. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include #include #include #include #include #include #include #include #include #include #include #include #ifdef _WIN32 # include #else # include #endif /* _WIN32 */ #include "mime.h" #if defined(HAVE_CDSASSL) # include #endif /* HAVE_CDSASSL */ /* * Some OS's don't have hstrerror(), most notably Solaris... */ #ifndef HAVE_HSTRERROR # ifdef hstrerror # undef hstrerror # endif /* hstrerror */ # define hstrerror cups_hstrerror extern const char *cups_hstrerror(int); #endif /* !HAVE_HSTRERROR */ /* * Common constants. */ #ifndef FALSE # define FALSE 0 # define TRUE (!FALSE) #endif /* !FALSE */ /* * Implementation limits... */ #define MAX_ENV 100 /* Maximum number of environment strings */ #define MAX_USERPASS 33 /* Maximum size of username/password */ #define MAX_FILTERS 20 /* Maximum number of filters */ #define MAX_SYSTEM_GROUPS 32 /* Maximum number of system groups */ /* * Defaults... */ #define DEFAULT_HISTORY INT_MAX /* Preserve job history? */ #define DEFAULT_FILES 86400 /* Preserve job files? */ #define DEFAULT_TIMEOUT 300 /* Timeout during requests/updates */ #define DEFAULT_KEEPALIVE 30 /* Timeout between requests */ /* * Global variable macros... */ #ifdef _MAIN_C_ # define VAR # define VALUE(x) =x # define VALUE2(x,y) ={x,y} #else # define VAR extern # define VALUE(x) # define VALUE2(x,y) #endif /* _MAIN_C */ /* * Other stuff for the scheduler... */ #include "sysman.h" #include "statbuf.h" #include "cert.h" #include "auth.h" #include "client.h" #include "policy.h" #include "printers.h" #include "classes.h" #include "job.h" #include "colorman.h" #include "conf.h" #include "banners.h" #include "dirsvc.h" #include "network.h" #include "subscriptions.h" /* * Reload types... */ #define RELOAD_NONE 0 /* No reload needed */ #define RELOAD_ALL 1 /* Reload everything */ #define RELOAD_CUPSD 2 /* Reload only cupsd.conf */ /* * Select callback function type... */ typedef void (*cupsd_selfunc_t)(void *data); /* * Globals... */ VAR int TestConfigFile VALUE(0); /* Test the cupsd.conf file? */ VAR int MaxFDs VALUE(0); /* Maximum number of files */ VAR time_t ReloadTime VALUE(0); /* Time of reload request... */ VAR int NeedReload VALUE(RELOAD_ALL), /* Need to load configuration? */ DoingShutdown VALUE(0); /* Shutting down the scheduler? */ VAR void *DefaultProfile VALUE(0); /* Default security profile */ #ifdef HAVE_ONDEMAND VAR int OnDemand VALUE(0); /* Launched on demand */ #endif /* HAVE_ONDEMAND */ /* * Prototypes... */ /* env.c */ extern void cupsdInitEnv(void); extern int cupsdLoadEnv(char *envp[], int envmax); extern void cupsdSetEnv(const char *name, const char *value); extern void cupsdSetEnvf(const char *name, const char *value, ...) _CUPS_FORMAT(2, 3); extern void cupsdUpdateEnv(void); /* file.c */ extern void cupsdCleanFiles(const char *path, const char *pattern); extern int cupsdCloseCreatedConfFile(cups_file_t *fp, const char *filename); extern void cupsdClosePipe(int *fds); extern cups_file_t *cupsdCreateConfFile(const char *filename, mode_t mode); extern cups_file_t *cupsdOpenConfFile(const char *filename); extern int cupsdOpenPipe(int *fds); extern int cupsdRemoveFile(const char *filename); extern int cupsdUnlinkOrRemoveFile(const char *filename); /* main.c */ extern int cupsdAddString(cups_array_t **a, const char *s); extern void cupsdCheckProcess(void); extern void cupsdClearString(char **s); extern void cupsdFreeStrings(cups_array_t **a); extern void cupsdHoldSignals(void); extern char *cupsdMakeUUID(const char *name, int number, char *buffer, size_t bufsize); extern void cupsdReleaseSignals(void); extern void cupsdSetString(char **s, const char *v); extern void cupsdSetStringf(char **s, const char *f, ...) __attribute__ ((__format__ (__printf__, 2, 3))); /* process.c */ extern void *cupsdCreateProfile(int job_id, int allow_networking); extern void cupsdDestroyProfile(void *profile); extern int cupsdEndProcess(int pid, int force); extern const char *cupsdFinishProcess(int pid, char *name, size_t namelen, int *job_id); extern int cupsdStartProcess(const char *command, char *argv[], char *envp[], int infd, int outfd, int errfd, int backfd, int sidefd, int root, void *profile, cupsd_job_t *job, int *pid); /* select.c */ extern int cupsdAddSelect(int fd, cupsd_selfunc_t read_cb, cupsd_selfunc_t write_cb, void *data); extern int cupsdDoSelect(long timeout); #ifdef CUPSD_IS_SELECTING extern int cupsdIsSelecting(int fd); #endif /* CUPSD_IS_SELECTING */ extern void cupsdRemoveSelect(int fd); extern void cupsdStartSelect(void); extern void cupsdStopSelect(void); /* server.c */ extern void cupsdStartServer(void); extern void cupsdStopServer(void); cups-2.4.7/scheduler/cups.xml.in0000644000175000017500000001353114502571342016443 0ustar zdohnalzdohnal cups-2.4.7/scheduler/cups.socket.in0000644000175000017500000000023414502571342017127 0ustar zdohnalzdohnal[Unit] Description=CUPS Scheduler PartOf=cups.service [Socket] ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@ RemoveOnStop=on [Install] WantedBy=sockets.target cups-2.4.7/scheduler/cups.sh.in0000644000175000017500000000635714502571342016265 0ustar zdohnalzdohnal#!/bin/sh # # Startup/shutdown script for CUPS. # # Copyright © 2007-2013 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # #### OS-Dependent Information # # Linux chkconfig stuff: # # chkconfig: 235 99 00 # description: Startup/shutdown script for CUPS. # # # NetBSD 1.5+ rcorder script lines. The format of the following two # lines is very strict -- please don't add additional spaces! # # PROVIDE: cups # REQUIRE: DAEMON # #### OS-Dependent Configuration case "`uname`" in *BSD*) IS_ON=: ECHO=echo ECHO_OK=: ECHO_ERROR=: ;; Darwin*) . /etc/rc.common if test "${CUPS:=-YES-}" = "-NO-"; then exit 0 fi IS_ON=: ECHO=ConsoleMessage ECHO_OK=: ECHO_ERROR=: ;; Linux*) IS_ON=/bin/true if test -f /etc/init.d/functions; then . /etc/init.d/functions ECHO=echo ECHO_OK="echo_success" ECHO_ERROR="echo_failure" else ECHO=echo ECHO_OK=: ECHO_ERROR=: fi ;; *) IS_ON=/bin/true ECHO=echo ECHO_OK=: ECHO_ERROR=: ;; esac #### OS-Independent Stuff # # Set the timezone, if possible... This allows the scheduler and # all child processes to know the local timezone when reporting # dates and times to the user. If no timezone information is # found, then Greenwich Mean Time (GMT) will probably be used. # for file in /etc/TIMEZONE /etc/rc.config /etc/sysconfig/clock; do if test -f $file; then . $file fi done if test "x$ZONE" != x; then TZ="$ZONE" fi if test "x$TIMEZONE" != x; then TZ="$TIMEZONE" fi if test "x$TZ" != x; then export TZ fi # # Don't use TMPDIR environment variable from init script, as that can # cause cupsd to set TempDir to a user's temporary directory instead # of the default... # unset TMPDIR # # Make sure we have the standard program directories in the path # since some operating systems don't provide a standard path on boot-up... # if test "x$PATH" = x; then PATH="/bin:/usr/bin:/sbin:/usr/sbin" else PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH" fi export PATH # # See if the CUPS server (cupsd) is running... # case "`uname`" in SunOS*) pid=`ps -e | nawk '{if (match($4, ".*/cupsd$") || $4 == "cupsd") print $1}'` ;; Linux* | *BSD* | Darwin*) pid=`ps ax | awk '{if (match($5, ".*/cupsd$") || $5 == "cupsd") print $1}'` ;; *) pid="" ;; esac # # Start or stop the CUPS server based upon the first argument to the script. # case $1 in start | restart | reload) if $IS_ON cups; then if test -x /sbin/portrelease; then /sbin/portrelease cups fi if test "$pid" != ""; then kill -HUP $pid else prefix=@prefix@ exec_prefix=@exec_prefix@ @sbindir@/cupsd if test $? != 0; then $ECHO_FAIL $ECHO "cups: unable to $1 scheduler." exit 1 fi fi $ECHO_OK $ECHO "cups: ${1}ed scheduler." fi ;; stop) if test "$pid" != ""; then kill $pid $ECHO_OK $ECHO "cups: stopped scheduler." fi ;; status) if test "$pid" != ""; then echo "cups: scheduler is running." else echo "cups: scheduler is not running." fi ;; *) echo "Usage: cups {reload|restart|start|status|stop}" exit 1 ;; esac # # Exit with no errors. # exit 0 cups-2.4.7/scheduler/cups.service.in0000644000175000017500000000045014502571342017277 0ustar zdohnalzdohnal[Unit] Description=CUPS Scheduler Documentation=man:cupsd(8) After=network.target nss-user-lookup.target nslcd.service Requires=cups.socket [Service] ExecStart=@sbindir@/cupsd -l Type=notify Restart=on-failure @TIMEOUTSTARTSEC@ [Install] Also=cups.socket cups.path WantedBy=@SYSTEMD_WANTED_BY@ cups-2.4.7/scheduler/cups.path.in0000644000175000017500000000021614502571342016573 0ustar zdohnalzdohnal[Unit] Description=CUPS Scheduler PartOf=cups.service [Path] PathExists=@CUPS_CACHEDIR@/org.cups.cupsd [Install] WantedBy=multi-user.target cups-2.4.7/scheduler/cups-lpdAT.service.in0000644000175000017500000000023714502571342020304 0ustar zdohnalzdohnal[Unit] Description=CUPS LPD server Documentation=man:cups-lpd(8) [Service] ExecStart=-@CUPS_SERVERBIN@/daemon/cups-lpd StandardInput=socket User=@CUPS_USER@ cups-2.4.7/scheduler/cups-lpd.xinetd.in0000644000175000017500000000035714502571342017715 0ustar zdohnalzdohnalservice printer { disable = yes socket_type = stream protocol = tcp wait = no user = @CUPS_USER@ group = @CUPS_GROUP@ passenv = server = @CUPS_SERVERBIN@/daemon/cups-lpd server_args = -o document-format=application/octet-stream } cups-2.4.7/scheduler/cups-lpd.socket0000644000175000017500000000021314502571342017274 0ustar zdohnalzdohnal[Unit] Description=CUPS LPD Server Socket PartOf=cups-lpd.service [Socket] ListenStream=515 Accept=yes [Install] WantedBy=sockets.target cups-2.4.7/scheduler/cups-lpd.c0000644000175000017500000011740414502571342016241 0ustar zdohnalzdohnal/* * Line Printer Daemon interface for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2016 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #define _CUPS_NO_DEPRECATED #include #include #include #include #include #include #include #include #ifdef HAVE_INTTYPES_H # include #endif /* HAVE_INTTYPES_H */ #ifdef __APPLE__ # include #endif /* __APPLE__ */ /* * LPD "mini-daemon" for CUPS. This program must be used in conjunction * with inetd or another similar program that monitors ports and starts * daemons for each client connection. A typical configuration is: * * printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd * * This daemon implements most of RFC 1179 (the unofficial LPD specification) * except for: * * - This daemon does not check to make sure that the source port is * between 721 and 731, since it isn't necessary for proper * functioning and port-based security is no security at all! * * - The "Print any waiting jobs" command is a no-op. * * The LPD-to-IPP mapping is as defined in RFC 2569. The report formats * currently match the Solaris LPD mini-daemon. */ /* * Prototypes... */ static int create_job(http_t *http, const char *dest, const char *title, const char *user, int num_options, cups_option_t *options); static int get_printer(http_t *http, const char *name, char *dest, size_t destsize, cups_option_t **options, int *accepting, int *shared, ipp_pstate_t *state); static int print_file(http_t *http, int id, const char *filename, const char *docname, const char *user, const char *format, int last); static int recv_print_job(const char *name, int num_defaults, cups_option_t *defaults); static int remove_jobs(const char *name, const char *agent, const char *list); static int send_state(const char *name, const char *list, int longstatus); static char *smart_gets(char *s, int len, FILE *fp); static void smart_strlcpy(char *dst, const char *src, size_t dstsize); /* * 'main()' - Process an incoming LPD request... */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int num_defaults; /* Number of default options */ cups_option_t *defaults; /* Default options */ char line[256], /* Command string */ command, /* Command code */ *dest, /* Pointer to destination */ *list, /* Pointer to list */ *agent, /* Pointer to user */ status; /* Status for client */ socklen_t hostlen; /* Size of client address */ http_addr_t hostaddr; /* Address of client */ char hostname[256], /* Name of client */ hostip[256], /* IP address */ *hostfamily; /* Address family */ int hostlookups; /* Do hostname lookups? */ #ifdef __APPLE__ xpc_transaction_begin(); #endif /* __APPLE__ */ /* * Don't buffer the output... */ setbuf(stdout, NULL); /* * Log things using the "cups-lpd" name... */ openlog("cups-lpd", LOG_PID, LOG_LPR); /* * Scan the command-line for options... */ num_defaults = 0; defaults = NULL; hostlookups = 1; for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { switch (argv[i][1]) { case 'h' : /* -h hostname[:port] */ if (argv[i][2]) cupsSetServer(argv[i] + 2); else { i ++; if (i < argc) cupsSetServer(argv[i]); else syslog(LOG_WARNING, "Expected hostname string after -h option!"); } break; case 'o' : /* Option */ if (argv[i][2]) num_defaults = cupsParseOptions(argv[i] + 2, num_defaults, &defaults); else { i ++; if (i < argc) num_defaults = cupsParseOptions(argv[i], num_defaults, &defaults); else syslog(LOG_WARNING, "Expected option string after -o option!"); } break; case 'n' : /* Don't do hostname lookups */ hostlookups = 0; break; default : syslog(LOG_WARNING, "Unknown option \"%c\" ignored!", argv[i][1]); break; } } else syslog(LOG_WARNING, "Unknown command-line option \"%s\" ignored!", argv[i]); /* * Get the address of the client... */ hostlen = sizeof(hostaddr); if (getpeername(0, (struct sockaddr *)&hostaddr, &hostlen)) { syslog(LOG_WARNING, "Unable to get client address - %s", strerror(errno)); strlcpy(hostname, "unknown", sizeof(hostname)); } else { httpAddrString(&hostaddr, hostip, sizeof(hostip)); if (hostlookups) httpAddrLookup(&hostaddr, hostname, sizeof(hostname)); else strlcpy(hostname, hostip, sizeof(hostname)); #ifdef AF_INET6 if (hostaddr.addr.sa_family == AF_INET6) hostfamily = "IPv6"; else #endif /* AF_INET6 */ hostfamily = "IPv4"; syslog(LOG_INFO, "Connection from %s (%s %s)", hostname, hostfamily, hostip); } num_defaults = cupsAddOption("job-originating-host-name", hostname, num_defaults, &defaults); /* * RFC1179 specifies that only 1 daemon command can be received for * every connection. */ if (smart_gets(line, sizeof(line), stdin) == NULL) { /* * Unable to get command from client! Send an error status and return. */ syslog(LOG_ERR, "Unable to get command line from client!"); putchar(1); #ifdef __APPLE__ xpc_transaction_end(); #endif /* __APPLE__ */ return (1); } /* * The first byte is the command byte. After that will be the queue name, * resource list, and/or user name. */ if ((command = line[0]) == '\0') dest = line; else dest = line + 1; if (command == 0x02) list = NULL; else { for (list = dest; *list && !isspace(*list & 255); list ++); while (isspace(*list & 255)) *list++ = '\0'; } /* * Do the command... */ switch (command) { default : /* Unknown command */ syslog(LOG_ERR, "Unknown LPD command 0x%02X!", command); syslog(LOG_ERR, "Command line = %s", line + 1); putchar(1); status = 1; break; case 0x01 : /* Print any waiting jobs */ syslog(LOG_INFO, "Print waiting jobs (no-op)"); putchar(0); status = 0; break; case 0x02 : /* Receive a printer job */ syslog(LOG_INFO, "Receive print job for %s", dest); /* recv_print_job() sends initial status byte */ status = (char)recv_print_job(dest, num_defaults, defaults); break; case 0x03 : /* Send queue state (short) */ syslog(LOG_INFO, "Send queue state (short) for %s %s", dest, list); /* no status byte for this command */ status = (char)send_state(dest, list, 0); break; case 0x04 : /* Send queue state (long) */ syslog(LOG_INFO, "Send queue state (long) for %s %s", dest, list); /* no status byte for this command */ status = (char)send_state(dest, list, 1); break; case 0x05 : /* Remove jobs */ /* * Grab the agent and skip to the list of users and/or jobs. */ agent = list; for (; *list && !isspace(*list & 255); list ++); while (isspace(*list & 255)) *list++ = '\0'; syslog(LOG_INFO, "Remove jobs %s on %s by %s", list, dest, agent); status = (char)remove_jobs(dest, agent, list); putchar(status); break; } syslog(LOG_INFO, "Closing connection"); closelog(); #ifdef __APPLE__ xpc_transaction_end(); #endif /* __APPLE__ */ return (status); } /* * 'create_job()' - Create a new print job. */ static int /* O - Job ID or -1 on error */ create_job(http_t *http, /* I - HTTP connection */ const char *dest, /* I - Destination name */ const char *title, /* I - job-name */ const char *user, /* I - requesting-user-name */ int num_options, /* I - Number of options for job */ cups_option_t *options) /* I - Options for job */ { ipp_t *request; /* IPP request */ ipp_t *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ char uri[HTTP_MAX_URI]; /* Printer URI */ int id; /* Job ID */ /* * Setup the Create-Job request... */ request = ippNewRequest(IPP_OP_CREATE_JOB); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); if (title[0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, title); cupsEncodeOptions(request, num_options, options); /* * Do the request... */ snprintf(uri, sizeof(uri), "/printers/%s", dest); response = cupsDoRequest(http, request, uri); if (!response || cupsLastError() > IPP_STATUS_OK_CONFLICTING) { syslog(LOG_ERR, "Unable to create job - %s", cupsLastErrorString()); ippDelete(response); return (-1); } /* * Get the job-id value from the response and return it... */ if ((attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { id = -1; syslog(LOG_ERR, "No job-id attribute found in response from server!"); } else { id = attr->values[0].integer; syslog(LOG_INFO, "Print file - job ID = %d", id); } ippDelete(response); return (id); } /* * 'get_printer()' - Get the named printer and its options. */ static int /* O - Number of options or -1 on error */ get_printer(http_t *http, /* I - HTTP connection */ const char *name, /* I - Printer name from request */ char *dest, /* I - Destination buffer */ size_t destsize, /* I - Size of destination buffer */ cups_option_t **options, /* O - Printer options */ int *accepting, /* O - printer-is-accepting-jobs value */ int *shared, /* O - printer-is-shared value */ ipp_pstate_t *state) /* O - printer-state value */ { int num_options; /* Number of options */ cups_file_t *fp; /* lpoptions file */ char line[1024], /* Line from lpoptions file */ *value, /* Pointer to value on line */ *optptr; /* Pointer to options on line */ int linenum; /* Line number in file */ const char *cups_serverroot; /* CUPS_SERVERROOT env var */ ipp_t *request; /* IPP request */ ipp_t *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ char uri[HTTP_MAX_URI]; /* Printer URI */ static const char * const requested[] = { /* Requested attributes */ "printer-info", "printer-is-accepting-jobs", "printer-is-shared", "printer-name", "printer-state" }; /* * Initialize everything... */ if (accepting) *accepting = 0; if (shared) *shared = 0; if (state) *state = IPP_PSTATE_STOPPED; if (options) *options = NULL; /* * See if the name is a queue name optionally with an instance name. */ strlcpy(dest, name, destsize); if ((value = strchr(dest, '/')) != NULL) *value = '\0'; /* * Setup the Get-Printer-Attributes request... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(requested) / sizeof(requested[0])), NULL, requested); /* * Do the request... */ response = cupsDoRequest(http, request, "/"); if (!response || cupsLastError() > IPP_STATUS_OK_CONFLICTING) { /* * If we can't find the printer by name, look up the printer-name * using the printer-info values... */ ipp_attribute_t *accepting_attr,/* printer-is-accepting-jobs */ *info_attr, /* printer-info */ *name_attr, /* printer-name */ *shared_attr, /* printer-is-shared */ *state_attr; /* printer-state */ ippDelete(response); /* * Setup the CUPS-Get-Printers request... */ request = ippNewRequest(IPP_OP_CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(requested) / sizeof(requested[0])), NULL, requested); /* * Do the request... */ response = cupsDoRequest(http, request, "/"); if (!response || cupsLastError() > IPP_STATUS_OK_CONFLICTING) { syslog(LOG_ERR, "Unable to get list of printers - %s", cupsLastErrorString()); ippDelete(response); return (-1); } /* * Scan the response for printers... */ *dest = '\0'; attr = response->attrs; while (attr) { /* * Skip to the next printer... */ while (attr && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (!attr) break; /* * Get all of the attributes for the current printer... */ accepting_attr = NULL; info_attr = NULL; name_attr = NULL; shared_attr = NULL; state_attr = NULL; while (attr && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "printer-is-accepting-jobs") && attr->value_tag == IPP_TAG_BOOLEAN) accepting_attr = attr; else if (!strcmp(attr->name, "printer-info") && attr->value_tag == IPP_TAG_TEXT) info_attr = attr; else if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) name_attr = attr; else if (!strcmp(attr->name, "printer-is-shared") && attr->value_tag == IPP_TAG_BOOLEAN) shared_attr = attr; else if (!strcmp(attr->name, "printer-state") && attr->value_tag == IPP_TAG_ENUM) state_attr = attr; attr = attr->next; } if (info_attr && name_attr && !_cups_strcasecmp(name, info_attr->values[0].string.text)) { /* * Found a match, use this one! */ strlcpy(dest, name_attr->values[0].string.text, destsize); if (accepting && accepting_attr) *accepting = accepting_attr->values[0].boolean; if (shared && shared_attr) *shared = shared_attr->values[0].boolean; if (state && state_attr) *state = (ipp_pstate_t)state_attr->values[0].integer; break; } } ippDelete(response); if (!*dest) { syslog(LOG_ERR, "Unable to find \"%s\" in list of printers!", name); return (-1); } name = dest; } else { /* * Get values from the response... */ if (accepting) { if ((attr = ippFindAttribute(response, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN)) == NULL) syslog(LOG_ERR, "No printer-is-accepting-jobs attribute found in " "response from server!"); else *accepting = attr->values[0].boolean; } if (shared) { if ((attr = ippFindAttribute(response, "printer-is-shared", IPP_TAG_BOOLEAN)) == NULL) { syslog(LOG_ERR, "No printer-is-shared attribute found in " "response from server!"); *shared = 1; } else *shared = attr->values[0].boolean; } if (state) { if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) syslog(LOG_ERR, "No printer-state attribute found in " "response from server!"); else *state = (ipp_pstate_t)attr->values[0].integer; } ippDelete(response); } /* * Next look for the printer in the lpoptions file... */ num_options = 0; if (options && shared && accepting) { if ((cups_serverroot = getenv("CUPS_SERVERROOT")) == NULL) cups_serverroot = CUPS_SERVERROOT; snprintf(line, sizeof(line), "%s/lpoptions", cups_serverroot); if ((fp = cupsFileOpen(line, "r")) != NULL) { linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Make sure we have "Dest name options" or "Default name options"... */ if ((_cups_strcasecmp(line, "Dest") && _cups_strcasecmp(line, "Default")) || !value) continue; /* * Separate destination name from options... */ for (optptr = value; *optptr && !isspace(*optptr & 255); optptr ++); while (*optptr == ' ') *optptr++ = '\0'; /* * If this is our destination, parse the options and break out of * the loop - we're done! */ if (!_cups_strcasecmp(value, name)) { num_options = cupsParseOptions(optptr, num_options, options); break; } } cupsFileClose(fp); } } else if (options) *options = NULL; /* * Return the number of options for this destination... */ return (num_options); } /* * 'print_file()' - Add a file to the current job. */ static int /* O - 0 on success, -1 on failure */ print_file(http_t *http, /* I - HTTP connection */ int id, /* I - Job ID */ const char *filename, /* I - File to print */ const char *docname, /* I - document-name */ const char *user, /* I - requesting-user-name */ const char *format, /* I - document-format */ int last) /* I - 1 = last file in job */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Printer URI */ /* * Setup the Send-Document request... */ request = ippNewRequest(IPP_OP_SEND_DOCUMENT); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); if (docname) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name", NULL, docname); if (format) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, format); ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", (char)last); /* * Do the request... */ snprintf(uri, sizeof(uri), "/jobs/%d", id); ippDelete(cupsDoFileRequest(http, request, uri, filename)); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { syslog(LOG_ERR, "Unable to send document - %s", cupsLastErrorString()); return (-1); } return (0); } /* * 'recv_print_job()' - Receive a print job from the client. */ static int /* O - Command status */ recv_print_job( const char *queue, /* I - Printer name */ int num_defaults, /* I - Number of default options */ cups_option_t *defaults) /* I - Default options */ { http_t *http; /* HTTP connection */ int i; /* Looping var */ int status; /* Command status */ int fd; /* Temporary file */ FILE *fp; /* File pointer */ char filename[1024]; /* Temporary filename */ ssize_t bytes; /* Bytes received */ size_t total; /* Total bytes */ char line[256], /* Line from file/stdin */ command, /* Command from line */ *count, /* Number of bytes */ *name; /* Name of file */ const char *job_sheets; /* Job sheets */ int num_data; /* Number of data files */ char control[1024], /* Control filename */ data[100][256], /* Data files */ temp[100][1024]; /* Temporary files */ char user[1024], /* User name */ title[1024], /* Job title */ docname[1024], /* Document name */ dest[256]; /* Printer/class queue */ int accepting, /* printer-is-accepting */ shared, /* printer-is-shared */ num_options; /* Number of options */ cups_option_t *options; /* Options */ int id; /* Job ID */ int docnumber, /* Current document number */ doccount; /* Count of documents */ /* * Connect to the server... */ http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); if (!http) { syslog(LOG_ERR, "Unable to connect to server: %s", strerror(errno)); putchar(1); return (1); } /* * See if the printer is available... */ num_options = get_printer(http, queue, dest, sizeof(dest), &options, &accepting, &shared, NULL); if (num_options < 0 || !accepting || !shared) { if (dest[0]) syslog(LOG_INFO, "Rejecting job because \"%s\" is not %s", dest, !accepting ? "accepting jobs" : "shared"); else syslog(LOG_ERR, "Unable to get printer information for \"%s\"", queue); httpClose(http); putchar(1); return (1); } putchar(0); /* OK so far... */ /* * Read the request... */ status = 0; num_data = 0; fd = -1; control[0] = '\0'; while (smart_gets(line, sizeof(line), stdin) != NULL) { if (strlen(line) < 2) { status = 1; break; } command = line[0]; count = line + 1; for (name = count + 1; *name && !isspace(*name & 255); name ++); while (isspace(*name & 255)) *name++ = '\0'; switch (command) { default : case 0x01 : /* Abort */ status = 1; break; case 0x02 : /* Receive control file */ if (strlen(name) < 2) { syslog(LOG_ERR, "Bad control file name \"%s\"", name); putchar(1); status = 1; break; } if (control[0]) { /* * Append to the existing control file - the LPD spec is * not entirely clear, but at least the OS/2 LPD code sends * multiple control files per connection... */ if ((fd = open(control, O_WRONLY)) < 0) { syslog(LOG_ERR, "Unable to append to temporary control file \"%s\" - %s", control, strerror(errno)); putchar(1); status = 1; break; } lseek(fd, 0, SEEK_END); } else { if ((fd = cupsTempFd(control, sizeof(control))) < 0) { syslog(LOG_ERR, "Unable to open temporary control file \"%s\" - %s", control, strerror(errno)); putchar(1); status = 1; break; } strlcpy(filename, control, sizeof(filename)); } break; case 0x03 : /* Receive data file */ if (strlen(name) < 2) { syslog(LOG_ERR, "Bad data file name \"%s\"", name); putchar(1); status = 1; break; } if (num_data >= (int)(sizeof(data) / sizeof(data[0]))) { /* * Too many data files... */ syslog(LOG_ERR, "Too many data files (%d)", num_data); putchar(1); status = 1; break; } strlcpy(data[num_data], name, sizeof(data[0])); if ((fd = cupsTempFd(temp[num_data], sizeof(temp[0]))) < 0) { syslog(LOG_ERR, "Unable to open temporary data file \"%s\" - %s", temp[num_data], strerror(errno)); putchar(1); status = 1; break; } strlcpy(filename, temp[num_data], sizeof(filename)); num_data ++; break; } putchar(status); if (status) break; /* * Copy the data or control file from the client... */ for (total = (size_t)strtoll(count, NULL, 10); total > 0; total -= (size_t)bytes) { if (total > sizeof(line)) bytes = (ssize_t)sizeof(line); else bytes = (ssize_t)total; if ((bytes = (ssize_t)fread(line, 1, (size_t)bytes, stdin)) > 0) bytes = write(fd, line, (size_t)bytes); if (bytes < 1) { syslog(LOG_ERR, "Error while reading file - %s", strerror(errno)); status = 1; break; } } /* * Read trailing nul... */ if (!status) { if (fread(line, 1, 1, stdin) < 1) { status = 1; syslog(LOG_ERR, "Error while reading trailing nul - %s", strerror(errno)); } else if (line[0]) { status = 1; syslog(LOG_ERR, "Trailing character after file is not nul (%02X)!", line[0]); } } /* * Close the file and send an acknowledgement... */ close(fd); putchar(status); if (status) break; } if (!status) { /* * Process the control file and print stuff... */ if ((fp = fopen(control, "rb")) == NULL) status = 1; else { /* * Copy the default options... */ for (i = 0; i < num_defaults; i ++) num_options = cupsAddOption(defaults[i].name, defaults[i].value, num_options, &options); /* * Grab the job information... */ title[0] = '\0'; user[0] = '\0'; docname[0] = '\0'; doccount = 0; while (smart_gets(line, sizeof(line), fp) != NULL) { /* * Process control lines... */ switch (line[0]) { case 'J' : /* Job name */ smart_strlcpy(title, line + 1, sizeof(title)); break; case 'N' : /* Document name */ smart_strlcpy(docname, line + 1, sizeof(docname)); break; case 'P' : /* User identification */ smart_strlcpy(user, line + 1, sizeof(user)); break; case 'L' : /* Print banner page */ /* * If a banner was requested and it's not overridden by a * command line option and the destination's default is none * then add the standard banner... */ if (cupsGetOption("job-sheets", num_defaults, defaults) == NULL && ((job_sheets = cupsGetOption("job-sheets", num_options, options)) == NULL || !strcmp(job_sheets, "none,none"))) { num_options = cupsAddOption("job-sheets", "standard", num_options, &options); } break; case 'c' : /* Plot CIF file */ case 'd' : /* Print DVI file */ case 'f' : /* Print formatted file */ case 'g' : /* Plot file */ case 'l' : /* Print file leaving control characters (raw) */ case 'n' : /* Print ditroff output file */ case 'o' : /* Print PostScript output file */ case 'p' : /* Print file with 'pr' format (prettyprint) */ case 'r' : /* File to print with FORTRAN carriage control */ case 't' : /* Print troff output file */ case 'v' : /* Print raster file */ doccount ++; if (line[0] == 'l' && !cupsGetOption("document-format", num_options, options)) num_options = cupsAddOption("raw", "", num_options, &options); if (line[0] == 'p') num_options = cupsAddOption("prettyprint", "", num_options, &options); break; } } /* * Check that we have a username... */ if (!user[0]) { syslog(LOG_WARNING, "No username specified by client! " "Using \"anonymous\"..."); strlcpy(user, "anonymous", sizeof(user)); } /* * Create the job... */ if ((id = create_job(http, dest, title, user, num_options, options)) < 0) status = 1; else { /* * Then print the job files... */ rewind(fp); docname[0] = '\0'; docnumber = 0; while (smart_gets(line, sizeof(line), fp) != NULL) { /* * Process control lines... */ switch (line[0]) { case 'N' : /* Document name */ smart_strlcpy(docname, line + 1, sizeof(docname)); break; case 'c' : /* Plot CIF file */ case 'd' : /* Print DVI file */ case 'f' : /* Print formatted file */ case 'g' : /* Plot file */ case 'l' : /* Print file leaving control characters (raw) */ case 'n' : /* Print ditroff output file */ case 'o' : /* Print PostScript output file */ case 'p' : /* Print file with 'pr' format (prettyprint) */ case 'r' : /* File to print with FORTRAN carriage control */ case 't' : /* Print troff output file */ case 'v' : /* Print raster file */ /* * Figure out which file we are printing... */ for (i = 0; i < num_data; i ++) if (!strcmp(data[i], line + 1)) break; if (i >= num_data) { status = 1; break; } /* * Send the print file... */ docnumber ++; if (print_file(http, id, temp[i], docname, user, cupsGetOption("document-format", num_options, options), docnumber == doccount)) status = 1; else status = 0; break; } if (status) break; } } fclose(fp); } } cupsFreeOptions(num_options, options); httpClose(http); /* * Clean up all temporary files and return... */ unlink(control); for (i = 0; i < num_data; i ++) unlink(temp[i]); return (status); } /* * 'remove_jobs()' - Cancel one or more jobs. */ static int /* O - Command status */ remove_jobs(const char *dest, /* I - Destination */ const char *agent, /* I - User agent */ const char *list) /* I - List of jobs or users */ { int id; /* Job ID */ http_t *http; /* HTTP server connection */ ipp_t *request; /* IPP Request */ char uri[HTTP_MAX_URI]; /* Job URI */ (void)dest; /* Suppress compiler warnings... */ /* * Try connecting to the local server... */ if ((http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL)) == NULL) { syslog(LOG_ERR, "Unable to connect to server %s: %s", cupsServer(), strerror(errno)); return (1); } /* * Loop for each job... */ while ((id = atoi(list)) > 0) { /* * Skip job ID in list... */ while (isdigit(*list & 255)) list ++; while (isspace(*list & 255)) list ++; /* * Build an IPP_OP_CANCEL_JOB request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * job-uri * requesting-user-name */ request = ippNewRequest(IPP_OP_CANCEL_JOB); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, agent); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/jobs")); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { syslog(LOG_WARNING, "Cancel of job ID %d failed: %s\n", id, cupsLastErrorString()); httpClose(http); return (1); } else syslog(LOG_INFO, "Job ID %d canceled", id); } httpClose(http); return (0); } /* * 'send_state()' - Send the queue state. */ static int /* O - Command status */ send_state(const char *queue, /* I - Destination */ const char *list, /* I - Job or user */ int longstatus) /* I - List of jobs or users */ { int id; /* Job ID from list */ http_t *http; /* HTTP server connection */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ ipp_pstate_t state; /* Printer state */ const char *jobdest, /* Pointer into job-printer-uri */ *jobuser, /* Pointer to job-originating-user-name */ *jobname; /* Pointer to job-name */ ipp_jstate_t jobstate; /* job-state */ int jobid, /* job-id */ jobsize, /* job-k-octets */ jobcount, /* Number of jobs */ jobcopies, /* Number of copies */ rank; /* Rank of job */ char rankstr[255]; /* Rank string */ char namestr[1024]; /* Job name string */ char uri[HTTP_MAX_URI]; /* Printer URI */ char dest[256]; /* Printer/class queue */ static const char * const ranks[10] = /* Ranking strings */ { "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th" }; static const char * const requested[] = { /* Requested attributes */ "job-id", "job-k-octets", "job-state", "job-printer-uri", "job-originating-user-name", "job-name", "copies" }; /* * Try connecting to the local server... */ if ((http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL)) == NULL) { syslog(LOG_ERR, "Unable to connect to server %s: %s", cupsServer(), strerror(errno)); printf("Unable to connect to server %s: %s", cupsServer(), strerror(errno)); return (1); } /* * Get the actual destination name and printer state... */ if (get_printer(http, queue, dest, sizeof(dest), NULL, NULL, NULL, &state)) { syslog(LOG_ERR, "Unable to get printer %s: %s", queue, cupsLastErrorString()); printf("Unable to get printer %s: %s", queue, cupsLastErrorString()); return (1); } /* * Show the queue state... */ switch (state) { case IPP_PSTATE_IDLE : printf("%s is ready\n", dest); break; case IPP_PSTATE_PROCESSING : printf("%s is ready and printing\n", dest); break; case IPP_PSTATE_STOPPED : printf("%s is not ready\n", dest); break; } /* * Build an IPP_OP_GET_JOBS or IPP_OP_GET_JOB_ATTRIBUTES request, which requires * the following attributes: * * attributes-charset * attributes-natural-language * job-uri or printer-uri */ id = atoi(list); request = ippNewRequest(id ? IPP_OP_GET_JOB_ATTRIBUTES : IPP_OP_GET_JOBS); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); if (id) ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", id); else { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, list); ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1); } ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(requested) / sizeof(requested[0]), NULL, requested); /* * Do the request and get back a response... */ jobcount = 0; response = cupsDoRequest(http, request, "/"); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { printf("get-jobs failed: %s\n", cupsLastErrorString()); ippDelete(response); return (1); } /* * Loop through the job list and display them... */ for (attr = response->attrs, rank = 1; attr; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr && (attr->group_tag != IPP_TAG_JOB || !attr->name)) attr = attr->next; if (!attr) break; /* * Pull the needed attributes from this job... */ jobid = 0; jobsize = 0; jobstate = IPP_JSTATE_PENDING; jobname = "untitled"; jobuser = NULL; jobdest = NULL; jobcopies = 1; while (attr && attr->group_tag == IPP_TAG_JOB) { if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) jobid = attr->values[0].integer; if (!strcmp(attr->name, "job-k-octets") && attr->value_tag == IPP_TAG_INTEGER) jobsize = attr->values[0].integer; if (!strcmp(attr->name, "job-state") && attr->value_tag == IPP_TAG_ENUM) jobstate = (ipp_jstate_t)attr->values[0].integer; if (!strcmp(attr->name, "job-printer-uri") && attr->value_tag == IPP_TAG_URI) if ((jobdest = strrchr(attr->values[0].string.text, '/')) != NULL) jobdest ++; if (!strcmp(attr->name, "job-originating-user-name") && attr->value_tag == IPP_TAG_NAME) jobuser = attr->values[0].string.text; if (!strcmp(attr->name, "job-name") && attr->value_tag == IPP_TAG_NAME) jobname = attr->values[0].string.text; if (!strcmp(attr->name, "copies") && attr->value_tag == IPP_TAG_INTEGER) jobcopies = attr->values[0].integer; attr = attr->next; } /* * See if we have everything needed... */ if (!jobdest || !jobid) { if (!attr) break; else continue; } if (!longstatus && jobcount == 0) puts("Rank Owner Job File(s) Total Size"); jobcount ++; /* * Display the job... */ if (jobstate == IPP_JSTATE_PROCESSING) strlcpy(rankstr, "active", sizeof(rankstr)); else { snprintf(rankstr, sizeof(rankstr), "%d%s", rank, ranks[rank % 10]); rank ++; } if (longstatus) { puts(""); if (jobcopies > 1) snprintf(namestr, sizeof(namestr), "%d copies of %s", jobcopies, jobname); else strlcpy(namestr, jobname, sizeof(namestr)); printf("%s: %-33.33s [job %d localhost]\n", jobuser, rankstr, jobid); printf(" %-39.39s %.0f bytes\n", namestr, 1024.0 * jobsize); } else printf("%-7s %-7.7s %-7d %-31.31s %.0f bytes\n", rankstr, jobuser, jobid, jobname, 1024.0 * jobsize); if (!attr) break; } ippDelete(response); if (jobcount == 0) puts("no entries"); httpClose(http); return (0); } /* * 'smart_gets()' - Get a line of text, removing the trailing CR and/or LF. */ static char * /* O - Line read or NULL */ smart_gets(char *s, /* I - Pointer to line buffer */ int len, /* I - Size of line buffer */ FILE *fp) /* I - File to read from */ { char *ptr, /* Pointer into line */ *end; /* End of line */ int ch; /* Character from file */ /* * Read the line; unlike fgets(), we read the entire line but dump * characters that go past the end of the buffer. Also, we accept * CR, LF, or CR LF for the line endings to be "safe", although * RFC 1179 specifically says "just use LF". */ ptr = s; end = s + len - 1; while ((ch = getc(fp)) != EOF) { if (ch == '\n') break; else if (ch == '\r') { /* * See if a LF follows... */ ch = getc(fp); if (ch != '\n') ungetc(ch, fp); break; } else if (ptr < end) *ptr++ = (char)ch; } *ptr = '\0'; if (ch == EOF && ptr == s) return (NULL); else return (s); } /* * 'smart_strlcpy()' - Copy a string and convert from ISO-8859-1 to UTF-8 as needed. */ static void smart_strlcpy(char *dst, /* I - Output buffer */ const char *src, /* I - Input string */ size_t dstsize) /* I - Size of output buffer */ { const unsigned char *srcptr; /* Pointer into input string */ unsigned char *dstptr, /* Pointer into output buffer */ *dstend; /* End of output buffer */ int saw_8859 = 0; /* Saw an extended character that was not UTF-8? */ for (srcptr = (unsigned char *)src, dstptr = (unsigned char *)dst, dstend = dstptr + dstsize - 1; *srcptr;) { if (*srcptr < 0x80) *dstptr++ = *srcptr++; /* ASCII */ else if (saw_8859) { /* * Map ISO-8859-1 (most likely character set for legacy LPD clients) to * UTF-8... */ if (dstptr > (dstend - 2)) break; *dstptr++ = 0xc0 | (*srcptr >> 6); *dstptr++ = 0x80 | (*srcptr++ & 0x3f); } else if ((*srcptr & 0xe0) == 0xc0 && (srcptr[1] & 0xc0) == 0x80) { /* * 2-byte UTF-8 sequence... */ if (dstptr > (dstend - 2)) break; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; } else if ((*srcptr & 0xf0) == 0xe0 && (srcptr[1] & 0xc0) == 0x80 && (srcptr[2] & 0xc0) == 0x80) { /* * 3-byte UTF-8 sequence... */ if (dstptr > (dstend - 3)) break; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; } else if ((*srcptr & 0xf8) == 0xf0 && (srcptr[1] & 0xc0) == 0x80 && (srcptr[2] & 0xc0) == 0x80 && (srcptr[3] & 0xc0) == 0x80) { /* * 4-byte UTF-8 sequence... */ if (dstptr > (dstend - 4)) break; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; *dstptr++ = *srcptr++; } else { /* * Bad UTF-8 sequence, this must be an ISO-8859-1 string... */ saw_8859 = 1; if (dstptr > (dstend - 2)) break; *dstptr++ = 0xc0 | (*srcptr >> 6); *dstptr++ = 0x80 | (*srcptr++ & 0x3f); } } *dstptr = '\0'; } cups-2.4.7/scheduler/cups-exec.c0000644000175000017500000000770414502571342016407 0ustar zdohnalzdohnal/* * Sandbox helper for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2014 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * Usage: * * cups-exec /path/to/profile [-u UID] [-g GID] [-n NICE] /path/to/program argv0 argv1 ... argvN */ /* * Include necessary headers... */ #include #include #include #include #include #include #ifdef HAVE_SANDBOX_H # include # ifndef SANDBOX_NAMED_EXTERNAL # define SANDBOX_NAMED_EXTERNAL 0x0003 # endif /* !SANDBOX_NAMED_EXTERNAL */ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif /* HAVE_SANDBOX_H */ /* * Local functions... */ static void usage(void) _CUPS_NORETURN; /* * 'main()' - Apply sandbox profile and execute program. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *opt; /* Current option character */ uid_t uid = getuid(); /* UID */ gid_t gid = getgid(); /* GID */ int niceval = 0; /* Nice value */ #ifdef HAVE_SANDBOX_H char *sandbox_error = NULL; /* Sandbox error, if any */ #endif /* HAVE_SANDBOX_H */ /* * Parse command-line... */ for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'g' : /* -g gid */ i ++; if (i >= argc) usage(); gid = (gid_t)strtoul(argv[i], NULL, 10); break; case 'n' : /* -n nice-value */ i ++; if (i >= argc) usage(); niceval = atoi(argv[i]); break; case 'u' : /* -g gid */ i ++; if (i >= argc) usage(); uid = (uid_t)strtoul(argv[i], NULL, 10); break; default : fprintf(stderr, "cups-exec: Unknown option '-%c'.\n", *opt); usage(); } } } else break; } /* * Check that we have enough arguments... */ if ((i + 3) > argc) { fputs("cups-exec: Insufficient arguments.\n", stderr); usage(); } /* * Make sure side and back channel FDs are non-blocking... */ fcntl(3, F_SETFL, O_NDELAY); fcntl(4, F_SETFL, O_NDELAY); /* * Change UID, GID, and nice value... */ if (uid) nice(niceval); if (!getuid()) { if (setgid(gid)) exit(errno + 100); # if CUPS_SNAP if (setgroups(0, NULL)) # else if (setgroups(1, &gid)) # endif /* CUPS_SNAP */ exit(errno + 100); if (uid && setuid(uid)) exit(errno + 100); } umask(077); #ifdef HAVE_SANDBOX_H /* * Run in a separate security profile... */ if (strcmp(argv[i], "none") && sandbox_init(argv[i], SANDBOX_NAMED_EXTERNAL, &sandbox_error)) { cups_file_t *fp; /* File */ char line[1024]; /* Line from file */ unsigned linenum = 0; /* Line number in file */ fprintf(stderr, "DEBUG: sandbox_init failed: %s (%s)\n", sandbox_error, strerror(errno)); sandbox_free_error(sandbox_error); if ((fp = cupsFileOpen(argv[i], "r")) != NULL) { while (cupsFileGets(fp, line, sizeof(line))) { linenum ++; fprintf(stderr, "DEBUG: %4u %s\n", linenum, line); } cupsFileClose(fp); } return (100 + EINVAL); } #endif /* HAVE_SANDBOX_H */ /* * Execute the program... */ execv(argv[i + 1], argv + i + 2); /* * If we get here, execv() failed... */ fprintf(stderr, "DEBUG: execv failed: %s\n", strerror(errno)); return (errno + 100); } /* * 'usage()' - Show program usage. */ static void usage(void) { fputs("Usage: cups-exec [-g gid] [-n nice-value] [-u uid] /path/to/profile /path/to/program argv0 argv1 ... argvN\n", stderr); exit(1); } cups-2.4.7/scheduler/cups-driverd.cxx0000644000175000017500000023327214502571342017503 0ustar zdohnalzdohnal/* * PPD/driver support for CUPS. * * This program handles listing and installing static PPD files, PPD files * created from driver information files, and dynamically generated PPD files * using driver helper programs. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "util.h" #include #include #include #include #include /* * Constants... */ #define PPD_SYNC 0x50504441 /* Sync word for ppds.dat (PPDA) */ #define PPD_MAX_LANG 32 /* Maximum languages */ #define PPD_MAX_PROD 32 /* Maximum products */ #define PPD_MAX_VERS 32 /* Maximum versions */ #define PPD_TYPE_POSTSCRIPT 0 /* PostScript PPD */ #define PPD_TYPE_PDF 1 /* PDF PPD */ #define PPD_TYPE_RASTER 2 /* CUPS raster PPD */ #define PPD_TYPE_FAX 3 /* Facsimile/MFD PPD */ #define PPD_TYPE_UNKNOWN 4 /* Other/hybrid PPD */ #define PPD_TYPE_DRV 5 /* Driver info file */ #define PPD_TYPE_ARCHIVE 6 /* Archive file */ #define TAR_BLOCK 512 /* Number of bytes in a block */ #define TAR_BLOCKS 10 /* Blocking factor */ #define TAR_MAGIC "ustar" /* 5 chars and a null */ #define TAR_VERSION "00" /* POSIX tar version */ #define TAR_OLDNORMAL '\0' /* Normal disk file, Unix compat */ #define TAR_NORMAL '0' /* Normal disk file */ #define TAR_LINK '1' /* Link to previously dumped file */ #define TAR_SYMLINK '2' /* Symbolic link */ #define TAR_CHR '3' /* Character special file */ #define TAR_BLK '4' /* Block special file */ #define TAR_DIR '5' /* Directory */ #define TAR_FIFO '6' /* FIFO special file */ #define TAR_CONTIG '7' /* Contiguous file */ /* * PPD information structures... */ typedef struct /**** PPD record ****/ { time_t mtime; /* Modification time */ off_t size; /* Size in bytes */ int model_number; /* cupsModelNumber */ int type; /* ppd-type */ char filename[512], /* Filename */ name[256], /* PPD name */ languages[PPD_MAX_LANG][6], /* LanguageVersion/cupsLanguages */ products[PPD_MAX_PROD][128], /* Product strings */ psversions[PPD_MAX_VERS][32], /* PSVersion strings */ make[128], /* Manufacturer */ make_and_model[128], /* NickName/ModelName */ device_id[256], /* IEEE 1284 Device ID */ scheme[128]; /* PPD scheme */ } ppd_rec_t; typedef struct /**** In-memory record ****/ { int found; /* 1 if PPD is found */ int matches; /* Match count */ ppd_rec_t record; /* PPDs.dat record */ } ppd_info_t; typedef union /**** TAR record format ****/ { unsigned char all[TAR_BLOCK]; /* Raw data block */ struct { char pathname[100], /* Destination path */ mode[8], /* Octal file permissions */ uid[8], /* Octal user ID */ gid[8], /* Octal group ID */ size[12], /* Octal size in bytes */ mtime[12], /* Octal modification time */ chksum[8], /* Octal checksum value */ linkflag, /* File type */ linkname[100], /* Source path for link */ magic[6], /* Magic string */ version[2], /* Format version */ uname[32], /* User name */ gname[32], /* Group name */ devmajor[8], /* Octal device major number */ devminor[8], /* Octal device minor number */ prefix[155]; /* Prefix for long filenames */ } header; } tar_rec_t; /* * Globals... */ static cups_array_t *Inodes = NULL, /* Inodes of directories we've visited */ *PPDsByName = NULL, /* PPD files sorted by filename and name */ *PPDsByMakeModel = NULL; /* PPD files sorted by make and model */ static int ChangedPPD; /* Did we change the PPD database? */ static const char * const PPDTypes[] = /* ppd-type values */ { "postscript", "pdf", "raster", "fax", "object", "object-direct", "object-storage", "unknown", "drv", "archive" }; /* * Local functions... */ static ppd_info_t *add_ppd(const char *filename, const char *name, const char *language, const char *make, const char *make_and_model, const char *device_id, const char *product, const char *psversion, time_t mtime, size_t size, int model_number, int type, const char *scheme); static int cat_drv(const char *name, int request_id); static void cat_ppd(const char *name, int request_id) _CUPS_NORETURN; static int cat_static(const char *name, int request_id); static int cat_tar(const char *name, int request_id); static int compare_inodes(struct stat *a, struct stat *b); static int compare_matches(const ppd_info_t *p0, const ppd_info_t *p1); static int compare_names(const ppd_info_t *p0, const ppd_info_t *p1); static int compare_ppds(const ppd_info_t *p0, const ppd_info_t *p1); static void dump_ppds_dat(const char *filename) _CUPS_NORETURN; static void free_array(cups_array_t *a); static cups_file_t *get_file(const char *name, int request_id, const char *subdir, char *buffer, size_t bufsize, char **subfile); static void list_ppds(int request_id, int limit, const char *opt) _CUPS_NORETURN; static int load_drivers(cups_array_t *include, cups_array_t *exclude); static int load_drv(const char *filename, const char *name, cups_file_t *fp, time_t mtime, off_t size); static void load_ppd(const char *filename, const char *name, const char *scheme, struct stat *fileinfo, ppd_info_t *ppd, cups_file_t *fp, off_t end); static int load_ppds(const char *d, const char *p, int descend); static void load_ppds_dat(char *filename, size_t filesize, int verbose); static int load_tar(const char *filename, const char *name, cups_file_t *fp, time_t mtime, off_t size); static int read_tar(cups_file_t *fp, char *name, size_t namesize, struct stat *info); static regex_t *regex_device_id(const char *device_id); static regex_t *regex_string(const char *s); /* * 'main()' - Scan for drivers and return an IPP response. * * Usage: * * cups-driverd request_id limit options */ int /* O - Exit code */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { /* * Install or list PPDs... */ if (argc == 3 && !strcmp(argv[1], "cat")) cat_ppd(argv[2], 0); else if ((argc == 2 || argc == 3) && !strcmp(argv[1], "dump")) dump_ppds_dat(argv[2]); else if (argc == 4 && !strcmp(argv[1], "get")) cat_ppd(argv[3], atoi(argv[2])); else if (argc == 5 && !strcmp(argv[1], "list")) list_ppds(atoi(argv[2]), atoi(argv[3]), argv[4]); else { fputs("Usage: cups-driverd cat ppd-name\n", stderr); fputs("Usage: cups-driverd dump\n", stderr); fputs("Usage: cups-driverd get request_id ppd-name\n", stderr); fputs("Usage: cups-driverd list request_id limit options\n", stderr); return (1); } } /* * 'add_ppd()' - Add a PPD file. */ static ppd_info_t * /* O - PPD */ add_ppd(const char *filename, /* I - PPD filename */ const char *name, /* I - PPD name */ const char *language, /* I - LanguageVersion */ const char *make, /* I - Manufacturer */ const char *make_and_model, /* I - NickName/ModelName */ const char *device_id, /* I - 1284DeviceID */ const char *product, /* I - Product */ const char *psversion, /* I - PSVersion */ time_t mtime, /* I - Modification time */ size_t size, /* I - File size */ int model_number, /* I - Model number */ int type, /* I - Driver type */ const char *scheme) /* I - PPD scheme */ { ppd_info_t *ppd; /* PPD */ char *recommended; /* Foomatic driver string */ /* * Add a new PPD file... */ if ((ppd = (ppd_info_t *)calloc(1, sizeof(ppd_info_t))) == NULL) { fprintf(stderr, "ERROR: [cups-driverd] Ran out of memory for %d PPD files!\n", cupsArrayCount(PPDsByName)); return (NULL); } /* * Zero-out the PPD data and copy the values over... */ ppd->found = 1; ppd->record.mtime = mtime; ppd->record.size = (off_t)size; ppd->record.model_number = model_number; ppd->record.type = type; strlcpy(ppd->record.filename, filename, sizeof(ppd->record.filename)); strlcpy(ppd->record.name, name, sizeof(ppd->record.name)); strlcpy(ppd->record.languages[0], language, sizeof(ppd->record.languages[0])); strlcpy(ppd->record.products[0], product, sizeof(ppd->record.products[0])); strlcpy(ppd->record.psversions[0], psversion, sizeof(ppd->record.psversions[0])); strlcpy(ppd->record.make, make, sizeof(ppd->record.make)); strlcpy(ppd->record.make_and_model, make_and_model, sizeof(ppd->record.make_and_model)); strlcpy(ppd->record.device_id, device_id, sizeof(ppd->record.device_id)); strlcpy(ppd->record.scheme, scheme, sizeof(ppd->record.scheme)); /* * Strip confusing (and often wrong) "recommended" suffix added by * Foomatic drivers... */ if ((recommended = strstr(ppd->record.make_and_model, " (recommended)")) != NULL) *recommended = '\0'; /* * Add the PPD to the PPD arrays... */ cupsArrayAdd(PPDsByName, ppd); cupsArrayAdd(PPDsByMakeModel, ppd); /* * Return the new PPD pointer... */ return (ppd); } /* * 'cat_drv()' - Generate a PPD from a driver info file. */ static int /* O - Exit code */ cat_drv(const char *name, /* I - PPD name */ int request_id) /* I - Request ID for response? */ { cups_file_t *fp; // File pointer ppdcSource *src; // PPD source file data ppdcDriver *d; // Current driver cups_file_t *out; // Stdout via CUPS file API char message[2048], // status-message filename[1024], // Full path to .drv file(s) scheme[32], // URI scheme ("drv") userpass[256], // User/password info (unused) host[2], // Hostname (unused) resource[1024], // Resource path (/dir/to/filename.drv) *pc_file_name; // Filename portion of URI int port; // Port number (unused) // Pull out the path to the .drv file... if (httpSeparateURI(HTTP_URI_CODING_ALL, name, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_OK) { fprintf(stderr, "ERROR: Bad PPD name \"%s\".\n", name); if (request_id) { snprintf(message, sizeof(message), "Bad PPD name \"%s\".", name); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", message); cupsdSendIPPTrailer(); } return (1); } if ((fp = get_file(resource, request_id, "drv", filename, sizeof(filename), &pc_file_name)) == NULL || !pc_file_name) return (1); src = new ppdcSource(filename, fp); for (d = (ppdcDriver *)src->drivers->first(); d; d = (ppdcDriver *)src->drivers->next()) if (!strcmp(pc_file_name, d->pc_file_name->value) || (d->file_name && !strcmp(pc_file_name, d->file_name->value))) break; if (d) { ppdcArray *locales; // Locale names ppdcCatalog *catalog; // Message catalog in .drv file fprintf(stderr, "DEBUG2: [cups-driverd] %u locales defined in \"%s\"...\n", (unsigned)src->po_files->count, filename); locales = new ppdcArray(); for (catalog = (ppdcCatalog *)src->po_files->first(); catalog; catalog = (ppdcCatalog *)src->po_files->next()) { fprintf(stderr, "DEBUG2: [cups-driverd] Adding locale \"%s\"...\n", catalog->locale->value); catalog->locale->retain(); locales->add(catalog->locale); } if (request_id) { cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPTrailer(); fflush(stdout); } out = cupsFileStdout(); d->write_ppd_file(out, NULL, locales, src, PPDC_LFONLY); cupsFileClose(out); locales->release(); } else { fprintf(stderr, "ERROR: PPD \"%s\" not found.\n", name); if (request_id) { snprintf(message, sizeof(message), "PPD \"%s\" not found.", name); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", message); cupsdSendIPPTrailer(); } } src->release(); cupsFileClose(fp); return (!d); } /* * 'cat_ppd()' - Copy a PPD file to stdout. */ static void cat_ppd(const char *name, /* I - PPD name */ int request_id) /* I - Request ID for response? */ { char scheme[256], /* Scheme from PPD name */ *sptr, /* Pointer into scheme */ line[1024], /* Line/filename */ message[2048]; /* status-message */ /* * Figure out if this is a static or dynamic PPD file... */ if (strstr(name, "../")) { fputs("ERROR: Invalid PPD name.\n", stderr); exit(1); } strlcpy(scheme, name, sizeof(scheme)); if ((sptr = strchr(scheme, ':')) != NULL) { *sptr = '\0'; if (!strcmp(scheme, "file")) { /* * "file:name" == "name"... */ name += 5; while (*name == '/') name ++; if (!strstr(name, ".tar/") && !strstr(name, ".tar.gz/")) scheme[0] = '\0'; } } else scheme[0] = '\0'; if (request_id > 0) puts("Content-Type: application/ipp\n"); if (!scheme[0]) exit(cat_static(name, request_id)); else if (!strcmp(scheme, "drv")) exit(cat_drv(name, request_id)); else if (!strcmp(scheme, "file")) exit(cat_tar(name, request_id)); else { /* * Dynamic PPD, see if we have a driver program to support it... */ const char *serverbin; /* CUPS_SERVERBIN env var */ char *argv[4]; /* Arguments for program */ if ((serverbin = getenv("CUPS_SERVERBIN")) == NULL) serverbin = CUPS_SERVERBIN; snprintf(line, sizeof(line), "%s/driver/%s", serverbin, scheme); if (access(line, X_OK)) { /* * File does not exist or is not executable... */ fprintf(stderr, "ERROR: [cups-driverd] Unable to access \"%s\" - %s\n", line, strerror(errno)); if (request_id > 0) { snprintf(message, sizeof(message), "Unable to access \"%s\" - %s", line, strerror(errno)); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", message); cupsdSendIPPTrailer(); } exit(1); } /* * Yes, let it cat the PPD file... */ if (request_id) { cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPTrailer(); } argv[0] = scheme; argv[1] = (char *)"cat"; argv[2] = (char *)name; argv[3] = NULL; if (cupsdExec(line, argv)) { /* * Unable to execute driver... */ fprintf(stderr, "ERROR: [cups-driverd] Unable to execute \"%s\" - %s\n", line, strerror(errno)); exit(1); } } /* * Exit with no errors... */ exit(0); } /* * 'copy_static()' - Copy a static PPD file to stdout. */ static int /* O - Exit code */ cat_static(const char *name, /* I - PPD name */ int request_id) /* I - Request ID for response? */ { cups_file_t *fp; /* PPD file */ char filename[1024], /* PPD filename */ line[1024]; /* Line buffer */ if ((fp = get_file(name, request_id, "model", filename, sizeof(filename), NULL)) == NULL) return (1); if (request_id) { cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPTrailer(); } /* * Now copy the file to stdout... */ while (cupsFileGets(fp, line, sizeof(line))) puts(line); cupsFileClose(fp); return (0); } /* * 'cat_tar()' - Copy an archived PPD file to stdout. */ static int /* O - Exit code */ cat_tar(const char *name, /* I - PPD name */ int request_id) /* I - Request ID */ { cups_file_t *fp; /* Archive file pointer */ char filename[1024], /* Archive filename */ *ppdname, /* PPD filename in archive */ curname[256], /* Current name in archive */ buffer[8192]; /* Copy buffer */ struct stat curinfo; /* Current file info in archive */ off_t total, /* Total bytes copied */ next; /* Offset for next record in archive */ ssize_t bytes; /* Bytes read */ /* * Open the archive file... */ if ((fp = get_file(name, request_id, "model", filename, sizeof(filename), &ppdname)) == NULL || !ppdname) return (1); /* * Scan the archive for the PPD... */ while (read_tar(fp, curname, sizeof(curname), &curinfo)) { next = cupsFileTell(fp) + ((curinfo.st_size + TAR_BLOCK - 1) & ~(TAR_BLOCK - 1)); if (!strcmp(ppdname, curname)) { if (request_id) { cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPTrailer(); } for (total = 0; total < curinfo.st_size; total += bytes) { if ((size_t)(bytes = (curinfo.st_size - total)) > sizeof(buffer)) bytes = sizeof(buffer); if ((bytes = cupsFileRead(fp, buffer, (size_t)bytes)) < 0) { if (errno == EINTR || errno == EAGAIN) { bytes = 0; } else { perror("ERROR: [cups-driverd] Read error"); break; } } else if (bytes > 0 && fwrite(buffer, (size_t)bytes, 1, stdout) != 1) break; } cupsFileClose(fp); return (0); } if (cupsFileTell(fp) != next) { if (cupsFileSeek(fp, next) != next) break; } } cupsFileClose(fp); fprintf(stderr, "ERROR: PPD \"%s\" not found.\n", name); if (request_id) { snprintf(buffer, sizeof(buffer), "PPD \"%s\" not found.", name); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", buffer); cupsdSendIPPTrailer(); } return (1); } /* * 'compare_inodes()' - Compare two inodes. */ static int /* O - Result of comparison */ compare_inodes(struct stat *a, /* I - First inode */ struct stat *b) /* I - Second inode */ { if (a->st_dev != b->st_dev) return (a->st_dev - b->st_dev); else return (a->st_ino - b->st_ino); } /* * 'compare_matches()' - Compare PPD match scores for sorting. */ static int compare_matches(const ppd_info_t *p0, /* I - First PPD */ const ppd_info_t *p1) /* I - Second PPD */ { if (p1->matches != p0->matches) return (p1->matches - p0->matches); else return (cupsdCompareNames(p0->record.make_and_model, p1->record.make_and_model)); } /* * 'compare_names()' - Compare PPD filenames for sorting. */ static int /* O - Result of comparison */ compare_names(const ppd_info_t *p0, /* I - First PPD file */ const ppd_info_t *p1) /* I - Second PPD file */ { int diff; /* Difference between strings */ if ((diff = strcmp(p0->record.filename, p1->record.filename)) != 0) return (diff); else return (strcmp(p0->record.name, p1->record.name)); } /* * 'compare_ppds()' - Compare PPD file make and model names for sorting. */ static int /* O - Result of comparison */ compare_ppds(const ppd_info_t *p0, /* I - First PPD file */ const ppd_info_t *p1) /* I - Second PPD file */ { int diff; /* Difference between strings */ /* * First compare manufacturers... */ if ((diff = _cups_strcasecmp(p0->record.make, p1->record.make)) != 0) return (diff); else if ((diff = cupsdCompareNames(p0->record.make_and_model, p1->record.make_and_model)) != 0) return (diff); else if ((diff = strcmp(p0->record.languages[0], p1->record.languages[0])) != 0) return (diff); else return (compare_names(p0, p1)); } /* * 'dump_ppds_dat()' - Dump the contents of the ppds.dat file. */ static void dump_ppds_dat(const char *filename) /* I - Filename */ { char temp[1024]; /* ppds.dat filename */ ppd_info_t *ppd; /* Current PPD */ /* * See if we a PPD database file... */ if (filename) strlcpy(temp, filename, sizeof(temp)); else temp[0] = '\0'; load_ppds_dat(temp, sizeof(temp), 0); puts("mtime,size,model_number,type,filename,name,languages0,products0," "psversions0,make,make_and_model,device_id,scheme"); for (ppd = (ppd_info_t *)cupsArrayFirst(PPDsByName); ppd; ppd = (ppd_info_t *)cupsArrayNext(PPDsByName)) printf("%d,%ld,%d,%d,\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"," "\"%s\",\"%s\"\n", (int)ppd->record.mtime, (long)ppd->record.size, ppd->record.model_number, ppd->record.type, ppd->record.filename, ppd->record.name, ppd->record.languages[0], ppd->record.products[0], ppd->record.psversions[0], ppd->record.make, ppd->record.make_and_model, ppd->record.device_id, ppd->record.scheme); exit(0); } /* * 'free_array()' - Free an array of strings. */ static void free_array(cups_array_t *a) /* I - Array to free */ { char *ptr; /* Pointer to string */ for (ptr = (char *)cupsArrayFirst(a); ptr; ptr = (char *)cupsArrayNext(a)) free(ptr); cupsArrayDelete(a); } /* * 'get_file()' - Get the filename associated with a request. */ static cups_file_t * /* O - File pointer or NULL */ get_file(const char *name, /* I - Name */ int request_id, /* I - Request ID */ const char *subdir, /* I - Subdirectory for file */ char *buffer, /* I - Filename buffer */ size_t bufsize, /* I - Size of filename buffer */ char **subfile) /* O - Sub-filename */ { cups_file_t *fp; /* File pointer */ const char *datadir; /* CUPS_DATADIR env var */ char *bufptr, /* Pointer into filename buffer */ message[2048]; /* status-message */ #ifdef __APPLE__ const char *printerDriver, /* Pointer to .printerDriver extension */ *slash; /* Pointer to next slash */ #endif /* __APPLE__ */ if (subfile) *subfile = NULL; while (*name == '/') name ++; if (strstr(name, "../") || strstr(name, "/..")) { /* * Bad name... */ fprintf(stderr, "ERROR: [cups-driverd] Bad PPD name \"%s\".\n", name); if (request_id) { snprintf(message, sizeof(message), "Bad PPD name \"%s\".", name); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", message); cupsdSendIPPTrailer(); } return (NULL); } /* * Try opening the file... */ #ifdef __APPLE__ if (!strncmp(name, "System/Library/Printers/PPDs/Contents/Resources/", 48) || !strncmp(name, "Library/Printers/PPDs/Contents/Resources/", 41) || (!strncmp(name, "System/Library/Printers/", 24) && (printerDriver = strstr(name + 24, ".printerDriver/Contents/Resources/PPDs")) != NULL && (slash = strchr(name + 24, '/')) != NULL && slash > printerDriver) || (!strncmp(name, "Library/Printers/", 17) && (printerDriver = strstr(name + 17, ".printerDriver/Contents/Resources/PPDs")) != NULL && (slash = strchr(name + 17, '/')) != NULL && slash > printerDriver)) { /* * Map ppd-name to macOS standard locations... */ snprintf(buffer, bufsize, "/%s", name); } else #elif defined(__linux) if (!strncmp(name, "lsb/usr/", 8)) { /* * Map ppd-name to LSB standard /usr/share/ppd location... */ snprintf(buffer, bufsize, "/usr/share/ppd/%s", name + 8); } else if (!strncmp(name, "lsb/opt/", 8)) { /* * Map ppd-name to LSB standard /opt/share/ppd location... */ snprintf(buffer, bufsize, "/opt/share/ppd/%s", name + 8); } else if (!strncmp(name, "lsb/local/", 10)) { /* * Map ppd-name to LSB standard /usr/local/share/ppd location... */ snprintf(buffer, bufsize, "/usr/local/share/ppd/%s", name + 10); } else #endif /* __APPLE__ */ { if ((datadir = getenv("CUPS_DATADIR")) == NULL) datadir = CUPS_DATADIR; snprintf(buffer, bufsize, "%s/%s/%s", datadir, subdir, name); } /* * Strip anything after ".drv/", ".drv.gz/", ".tar/", or ".tar.gz/"... */ if (subfile) { if ((bufptr = strstr(buffer, ".drv/")) != NULL) bufptr += 4; else if ((bufptr = strstr(buffer, ".drv.gz/")) != NULL) bufptr += 7; else if ((bufptr = strstr(buffer, ".tar/")) != NULL) bufptr += 4; else if ((bufptr = strstr(buffer, ".tar.gz/")) != NULL) bufptr += 7; if (bufptr) { *bufptr++ = '\0'; *subfile = bufptr; } } /* * Try opening the file... */ if ((fp = cupsFileOpen(buffer, "r")) == NULL) { fprintf(stderr, "ERROR: [cups-driverd] Unable to open \"%s\" - %s\n", buffer, strerror(errno)); if (request_id) { snprintf(message, sizeof(message), "Unable to open \"%s\" - %s", buffer, strerror(errno)); cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); cupsdSendIPPString(IPP_TAG_TEXT, "status-message", message); cupsdSendIPPTrailer(); } return (NULL); } return (fp); } /* * 'list_ppds()' - List PPD files. */ static void list_ppds(int request_id, /* I - Request ID */ int limit, /* I - Limit */ const char *opt) /* I - Option argument */ { int i; /* Looping vars */ int count; /* Number of PPDs to send */ ppd_info_t *ppd; /* Current PPD file */ cups_file_t *fp; /* ppds.dat file */ char filename[1024], /* ppds.dat filename */ model[1024]; /* Model directory */ const char *cups_datadir; /* CUPS_DATADIR environment variable */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ cups_array_t *requested, /* requested-attributes values */ *include, /* PPD schemes to include */ *exclude; /* PPD schemes to exclude */ const char *device_id, /* ppd-device-id option */ *language, /* ppd-natural-language option */ *make, /* ppd-make option */ *make_and_model, /* ppd-make-and-model option */ *model_number_str, /* ppd-model-number option */ *product, /* ppd-product option */ *psversion, /* ppd-psversion option */ *type_str; /* ppd-type option */ int model_number, /* ppd-model-number value */ type, /* ppd-type value */ send_device_id, /* Send ppd-device-id? */ send_make, /* Send ppd-make? */ send_make_and_model, /* Send ppd-make-and-model? */ send_model_number, /* Send ppd-model-number? */ send_name, /* Send ppd-name? */ send_natural_language, /* Send ppd-natural-language? */ send_product, /* Send ppd-product? */ send_psversion, /* Send ppd-psversion? */ send_type, /* Send ppd-type? */ sent_header; /* Sent the IPP header? */ size_t make_and_model_len, /* Length of ppd-make-and-model */ product_len; /* Length of ppd-product */ regex_t *device_id_re, /* Regular expression for matching device ID */ *make_and_model_re; /* Regular expression for matching make and model */ regmatch_t re_matches[6]; /* Regular expression matches */ cups_array_t *matches; /* Matching PPDs */ fprintf(stderr, "DEBUG2: [cups-driverd] list_ppds(request_id=%d, limit=%d, " "opt=\"%s\"\n", request_id, limit, opt); /* * See if we a PPD database file... */ filename[0] = '\0'; load_ppds_dat(filename, sizeof(filename), 1); /* * Load all PPDs in the specified directory and below... */ if ((cups_datadir = getenv("CUPS_DATADIR")) == NULL) cups_datadir = CUPS_DATADIR; Inodes = cupsArrayNew((cups_array_func_t)compare_inodes, NULL); snprintf(model, sizeof(model), "%s/model", cups_datadir); load_ppds(model, "", 1); snprintf(model, sizeof(model), "%s/drv", cups_datadir); load_ppds(model, "", 1); #ifdef __APPLE__ /* * Load PPDs from standard macOS locations... */ load_ppds("/Library/Printers", "Library/Printers", 0); load_ppds("/Library/Printers/PPDs/Contents/Resources", "Library/Printers/PPDs/Contents/Resources", 0); load_ppds("/Library/Printers/PPDs/Contents/Resources/en.lproj", "Library/Printers/PPDs/Contents/Resources/en.lproj", 0); load_ppds("/System/Library/Printers", "System/Library/Printers", 0); load_ppds("/System/Library/Printers/PPDs/Contents/Resources", "System/Library/Printers/PPDs/Contents/Resources", 0); load_ppds("/System/Library/Printers/PPDs/Contents/Resources/en.lproj", "System/Library/Printers/PPDs/Contents/Resources/en.lproj", 0); #elif defined(__linux) /* * Load PPDs from LSB-defined locations... */ if (!access("/usr/local/share/ppd", 0)) load_ppds("/usr/local/share/ppd", "lsb/local", 1); if (!access("/usr/share/ppd", 0)) load_ppds("/usr/share/ppd", "lsb/usr", 1); if (!access("/opt/share/ppd", 0)) load_ppds("/opt/share/ppd", "lsb/opt", 1); #endif /* __APPLE__ */ /* * Cull PPD files that are no longer present... */ for (ppd = (ppd_info_t *)cupsArrayFirst(PPDsByName); ppd; ppd = (ppd_info_t *)cupsArrayNext(PPDsByName)) if (!ppd->found) { /* * Remove this PPD file from the list... */ cupsArrayRemove(PPDsByName, ppd); cupsArrayRemove(PPDsByMakeModel, ppd); free(ppd); ChangedPPD = 1; } /* * Write the new ppds.dat file... */ fprintf(stderr, "DEBUG: [cups-driverd] ChangedPPD=%d\n", ChangedPPD); if (ChangedPPD) { char newname[1024]; /* New filename */ snprintf(newname, sizeof(newname), "%s.%d", filename, (int)getpid()); if ((fp = cupsFileOpen(newname, "w")) != NULL) { unsigned ppdsync = PPD_SYNC; /* Sync word */ cupsFileWrite(fp, (char *)&ppdsync, sizeof(ppdsync)); for (ppd = (ppd_info_t *)cupsArrayFirst(PPDsByName); ppd; ppd = (ppd_info_t *)cupsArrayNext(PPDsByName)) cupsFileWrite(fp, (char *)&(ppd->record), sizeof(ppd_rec_t)); cupsFileClose(fp); if (rename(newname, filename)) fprintf(stderr, "ERROR: [cups-driverd] Unable to rename \"%s\" - %s\n", newname, strerror(errno)); else fprintf(stderr, "INFO: [cups-driverd] Wrote \"%s\", %d PPDs...\n", filename, cupsArrayCount(PPDsByName)); } else fprintf(stderr, "ERROR: [cups-driverd] Unable to write \"%s\" - %s\n", filename, strerror(errno)); } else fputs("INFO: [cups-driverd] No new or changed PPDs...\n", stderr); /* * Scan for dynamic PPD files... */ num_options = cupsParseOptions(opt, 0, &options); exclude = cupsdCreateStringsArray(cupsGetOption("exclude-schemes", num_options, options)); include = cupsdCreateStringsArray(cupsGetOption("include-schemes", num_options, options)); load_drivers(include, exclude); /* * Add the raw driver... */ add_ppd("", "raw", "en", "Raw", "Raw Queue", "", "", "", 0, 0, 0, PPD_TYPE_UNKNOWN, "raw"); /* * Send IPP attributes... */ requested = cupsdCreateStringsArray( cupsGetOption("requested-attributes", num_options, options)); device_id = cupsGetOption("ppd-device-id", num_options, options); language = cupsGetOption("ppd-natural-language", num_options, options); make = cupsGetOption("ppd-make", num_options, options); make_and_model = cupsGetOption("ppd-make-and-model", num_options, options); model_number_str = cupsGetOption("ppd-model-number", num_options, options); product = cupsGetOption("ppd-product", num_options, options); psversion = cupsGetOption("ppd-psversion", num_options, options); type_str = cupsGetOption("ppd-type", num_options, options); if (make_and_model) make_and_model_len = strlen(make_and_model); else make_and_model_len = 0; if (product) product_len = strlen(product); else product_len = 0; if (model_number_str) model_number = atoi(model_number_str); else model_number = 0; if (type_str) { for (type = 0; type < (int)(sizeof(PPDTypes) / sizeof(PPDTypes[0])); type ++) if (!strcmp(type_str, PPDTypes[type])) break; if (type >= (int)(sizeof(PPDTypes) / sizeof(PPDTypes[0]))) { fprintf(stderr, "ERROR: [cups-driverd] Bad ppd-type=\"%s\" ignored!\n", type_str); type_str = NULL; } } else type = 0; for (i = 0; i < num_options; i ++) fprintf(stderr, "DEBUG2: [cups-driverd] %s=\"%s\"\n", options[i].name, options[i].value); if (!requested || cupsArrayFind(requested, (void *)"all") != NULL) { send_name = 1; send_make = 1; send_make_and_model = 1; send_model_number = 1; send_natural_language = 1; send_device_id = 1; send_product = 1; send_psversion = 1; send_type = 1; } else { send_name = cupsArrayFind(requested, (void *)"ppd-name") != NULL; send_make = cupsArrayFind(requested, (void *)"ppd-make") != NULL; send_make_and_model = cupsArrayFind(requested, (void *)"ppd-make-and-model") != NULL; send_model_number = cupsArrayFind(requested, (void *)"ppd-model-number") != NULL; send_natural_language = cupsArrayFind(requested, (void *)"ppd-natural-language") != NULL; send_device_id = cupsArrayFind(requested, (void *)"ppd-device-id") != NULL; send_product = cupsArrayFind(requested, (void *)"ppd-product") != NULL; send_psversion = cupsArrayFind(requested, (void *)"ppd-psversion") != NULL; send_type = cupsArrayFind(requested, (void *)"ppd-type") != NULL; } /* * Send the content type header to the scheduler; request_id can only be * 0 when run manually since the scheduler enforces the IPP requirement for * a request ID from 1 to 2^31-1... */ if (request_id > 0) puts("Content-Type: application/ipp\n"); sent_header = 0; if (limit <= 0 || limit > cupsArrayCount(PPDsByMakeModel)) count = cupsArrayCount(PPDsByMakeModel); else count = limit; if (device_id || language || make || make_and_model || model_number_str || product) { matches = cupsArrayNew((cups_array_func_t)compare_matches, NULL); if (device_id) device_id_re = regex_device_id(device_id); else device_id_re = NULL; if (make_and_model) make_and_model_re = regex_string(make_and_model); else make_and_model_re = NULL; for (ppd = (ppd_info_t *)cupsArrayFirst(PPDsByMakeModel); ppd; ppd = (ppd_info_t *)cupsArrayNext(PPDsByMakeModel)) { /* * Filter PPDs based on make, model, product, language, model number, * and/or device ID using the "matches" score value. An exact match * for product, make-and-model, or device-id adds 3 to the score. * Partial matches for make-and-model yield 1 or 2 points, and matches * for the make and language add a single point. Results are then sorted * by score, highest score first. */ if (ppd->record.type < PPD_TYPE_POSTSCRIPT || ppd->record.type >= PPD_TYPE_DRV) continue; if (cupsArrayFind(exclude, ppd->record.scheme) || (include && !cupsArrayFind(include, ppd->record.scheme))) continue; ppd->matches = 0; if (device_id_re && !regexec(device_id_re, ppd->record.device_id, (size_t)(sizeof(re_matches) / sizeof(re_matches[0])), re_matches, 0)) { /* * Add the number of matching values from the device ID - it will be * at least 2 (manufacturer and model), and as much as 3 (command set). */ for (i = 1; i < (int)(sizeof(re_matches) / sizeof(re_matches[0])); i ++) if (re_matches[i].rm_so >= 0) ppd->matches ++; } if (language) { for (i = 0; i < PPD_MAX_LANG; i ++) if (!ppd->record.languages[i][0]) break; else if (!strcmp(ppd->record.languages[i], language)) { ppd->matches ++; break; } } if (make && !_cups_strcasecmp(ppd->record.make, make)) ppd->matches ++; if (make_and_model_re && !regexec(make_and_model_re, ppd->record.make_and_model, (size_t)(sizeof(re_matches) / sizeof(re_matches[0])), re_matches, 0)) { // See how much of the make-and-model string we matched... if (re_matches[0].rm_so == 0) { if ((size_t)re_matches[0].rm_eo == make_and_model_len) ppd->matches += 3; // Exact match else ppd->matches += 2; // Prefix match } else ppd->matches ++; // Infix match } if (model_number_str && ppd->record.model_number == model_number) ppd->matches ++; if (product) { for (i = 0; i < PPD_MAX_PROD; i ++) if (!ppd->record.products[i][0]) break; else if (!_cups_strcasecmp(ppd->record.products[i], product)) { ppd->matches += 3; break; } else if (!_cups_strncasecmp(ppd->record.products[i], product, product_len)) { ppd->matches += 2; break; } } if (psversion) { for (i = 0; i < PPD_MAX_VERS; i ++) if (!ppd->record.psversions[i][0]) break; else if (!_cups_strcasecmp(ppd->record.psversions[i], psversion)) { ppd->matches ++; break; } } if (type_str && ppd->record.type == type) ppd->matches ++; if (ppd->matches) { fprintf(stderr, "DEBUG2: [cups-driverd] %s matches with score %d!\n", ppd->record.name, ppd->matches); cupsArrayAdd(matches, ppd); } } } else if (include || exclude) { matches = cupsArrayNew((cups_array_func_t)compare_ppds, NULL); for (ppd = (ppd_info_t *)cupsArrayFirst(PPDsByMakeModel); ppd; ppd = (ppd_info_t *)cupsArrayNext(PPDsByMakeModel)) { /* * Filter PPDs based on the include/exclude lists. */ if (ppd->record.type < PPD_TYPE_POSTSCRIPT || ppd->record.type >= PPD_TYPE_DRV) continue; if (cupsArrayFind(exclude, ppd->record.scheme) || (include && !cupsArrayFind(include, ppd->record.scheme))) continue; cupsArrayAdd(matches, ppd); } } else matches = PPDsByMakeModel; for (ppd = (ppd_info_t *)cupsArrayFirst(matches); count > 0 && ppd; ppd = (ppd_info_t *)cupsArrayNext(matches)) { /* * Skip invalid PPDs... */ if (ppd->record.type < PPD_TYPE_POSTSCRIPT || ppd->record.type >= PPD_TYPE_DRV) continue; /* * Send this PPD... */ if (!sent_header) { sent_header = 1; if (request_id) { cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); } } fprintf(stderr, "DEBUG2: [cups-driverd] Sending %s (%s)...\n", ppd->record.name, ppd->record.make_and_model); count --; if (request_id) { cupsdSendIPPGroup(IPP_TAG_PRINTER); if (send_name) cupsdSendIPPString(IPP_TAG_NAME, "ppd-name", ppd->record.name); if (send_natural_language) { cupsdSendIPPString(IPP_TAG_LANGUAGE, "ppd-natural-language", ppd->record.languages[0]); for (i = 1; i < PPD_MAX_LANG && ppd->record.languages[i][0]; i ++) cupsdSendIPPString(IPP_TAG_LANGUAGE, "", ppd->record.languages[i]); } if (send_make) cupsdSendIPPString(IPP_TAG_TEXT, "ppd-make", ppd->record.make); if (send_make_and_model) cupsdSendIPPString(IPP_TAG_TEXT, "ppd-make-and-model", ppd->record.make_and_model); if (send_device_id) cupsdSendIPPString(IPP_TAG_TEXT, "ppd-device-id", ppd->record.device_id); if (send_product) { cupsdSendIPPString(IPP_TAG_TEXT, "ppd-product", ppd->record.products[0]); for (i = 1; i < PPD_MAX_PROD && ppd->record.products[i][0]; i ++) cupsdSendIPPString(IPP_TAG_TEXT, "", ppd->record.products[i]); } if (send_psversion) { cupsdSendIPPString(IPP_TAG_TEXT, "ppd-psversion", ppd->record.psversions[0]); for (i = 1; i < PPD_MAX_VERS && ppd->record.psversions[i][0]; i ++) cupsdSendIPPString(IPP_TAG_TEXT, "", ppd->record.psversions[i]); } if (send_type) { if (ppd->record.type < PPD_TYPE_POSTSCRIPT || ppd->record.type > PPD_TYPE_ARCHIVE) { /* * This cache file is corrupted, remove it! */ unlink(filename); cupsdSendIPPString(IPP_TAG_KEYWORD, "ppd-type", PPDTypes[PPD_TYPE_UNKNOWN]); } else cupsdSendIPPString(IPP_TAG_KEYWORD, "ppd-type", PPDTypes[ppd->record.type]); } if (send_model_number) cupsdSendIPPInteger(IPP_TAG_INTEGER, "ppd-model-number", ppd->record.model_number); } else printf("%s (%s)\n", ppd->record.name, ppd->record.make_and_model); /* * If we have only requested the ppd-make attribute, then skip * the remaining PPDs with this make... */ if (cupsArrayFind(requested, (void *)"ppd-make") && cupsArrayCount(requested) == 1) { const char *this_make; /* This ppd-make */ for (this_make = ppd->record.make, ppd = (ppd_info_t *)cupsArrayNext(matches); ppd; ppd = (ppd_info_t *)cupsArrayNext(matches)) if (_cups_strcasecmp(this_make, ppd->record.make)) break; cupsArrayPrev(matches); } } if (!sent_header && request_id) { cupsdSendIPPHeader(IPP_NOT_FOUND, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); } if (request_id) cupsdSendIPPTrailer(); exit(0); } /* * 'load_drv()' - Load the PPDs from a driver information file. */ static int /* O - 1 on success, 0 on failure */ load_drv(const char *filename, /* I - Actual filename */ const char *name, /* I - Name to the rest of the world */ cups_file_t *fp, /* I - File to read from */ time_t mtime, /* I - Mod time of driver info file */ off_t size) /* I - Size of driver info file */ { ppdcSource *src; // Driver information file ppdcDriver *d; // Current driver ppdcAttr *device_id, // 1284DeviceID attribute *product, // Current product value *ps_version, // PSVersion attribute *cups_fax, // cupsFax attribute *nick_name; // NickName attribute ppdcFilter *filter; // Current filter ppd_info_t *ppd; // Current PPD int products_found; // Number of products found char uri[1024], // Driver URI make_model[1024]; // Make and model int type; // Driver type /* * Load the driver info file... */ src = new ppdcSource(filename, fp); if (src->drivers->count == 0) { fprintf(stderr, "ERROR: [cups-driverd] Bad driver information file \"%s\"!\n", filename); src->release(); return (0); } /* * Add a dummy entry for the file... */ add_ppd(name, name, "", "", "", "", "", "", mtime, (size_t)size, 0, PPD_TYPE_DRV, "drv"); ChangedPPD = 1; /* * Then the drivers in the file... */ for (d = (ppdcDriver *)src->drivers->first(); d; d = (ppdcDriver *)src->drivers->next()) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "drv", "", "", 0, "/%s/%s", name, d->file_name ? d->file_name->value : d->pc_file_name->value); device_id = d->find_attr("1284DeviceID", NULL); ps_version = d->find_attr("PSVersion", NULL); nick_name = d->find_attr("NickName", NULL); if (nick_name) strlcpy(make_model, nick_name->value->value, sizeof(make_model)); else if (_cups_strncasecmp(d->model_name->value, d->manufacturer->value, strlen(d->manufacturer->value))) snprintf(make_model, sizeof(make_model), "%s %s, %s", d->manufacturer->value, d->model_name->value, d->version->value); else snprintf(make_model, sizeof(make_model), "%s, %s", d->model_name->value, d->version->value); if ((cups_fax = d->find_attr("cupsFax", NULL)) != NULL && !_cups_strcasecmp(cups_fax->value->value, "true")) type = PPD_TYPE_FAX; else if (d->type == PPDC_DRIVER_PS) type = PPD_TYPE_POSTSCRIPT; else if (d->type != PPDC_DRIVER_CUSTOM) type = PPD_TYPE_RASTER; else { for (filter = (ppdcFilter *)d->filters->first(), type = PPD_TYPE_POSTSCRIPT; filter; filter = (ppdcFilter *)d->filters->next()) if (_cups_strcasecmp(filter->mime_type->value, "application/vnd.cups-raster")) type = PPD_TYPE_RASTER; else if (_cups_strcasecmp(filter->mime_type->value, "application/vnd.cups-pdf")) type = PPD_TYPE_PDF; } for (product = (ppdcAttr *)d->attrs->first(), products_found = 0, ppd = NULL; product; product = (ppdcAttr *)d->attrs->next()) if (!strcmp(product->name->value, "Product")) { if (!products_found) ppd = add_ppd(name, uri, "en", d->manufacturer->value, make_model, device_id ? device_id->value->value : "", product->value->value, ps_version ? ps_version->value->value : "(3010) 0", mtime, (size_t)size, d->model_number, type, "drv"); else if (products_found < PPD_MAX_PROD) strlcpy(ppd->record.products[products_found], product->value->value, sizeof(ppd->record.products[0])); else break; products_found ++; } if (!products_found) add_ppd(name, uri, "en", d->manufacturer->value, make_model, device_id ? device_id->value->value : "", d->model_name->value, ps_version ? ps_version->value->value : "(3010) 0", mtime, (size_t)size, d->model_number, type, "drv"); } src->release(); return (1); } /* * 'load_drivers()' - Load driver-generated PPD files. */ static int /* O - 1 on success, 0 on failure */ load_drivers(cups_array_t *include, /* I - Drivers to include */ cups_array_t *exclude) /* I - Drivers to exclude */ { int i; /* Looping var */ char *start, /* Start of value */ *ptr; /* Pointer into string */ const char *server_bin, /* CUPS_SERVERBIN env variable */ *scheme, /* Scheme for this driver */ *scheme_end; /* Pointer to end of scheme */ char drivers[1024]; /* Location of driver programs */ int pid; /* Process ID for driver program */ cups_file_t *fp; /* Pipe to driver program */ cups_dir_t *dir; /* Directory pointer */ cups_dentry_t *dent; /* Directory entry */ char *argv[3], /* Arguments for command */ filename[1024], /* Name of driver */ line[2048], /* Line from driver */ name[256], /* ppd-name */ make[128], /* ppd-make */ make_and_model[128], /* ppd-make-and-model */ device_id[256], /* ppd-device-id */ languages[128], /* ppd-natural-language */ product[128], /* ppd-product */ psversion[128], /* ppd-psversion */ type_str[128]; /* ppd-type */ int type; /* PPD type */ ppd_info_t *ppd; /* Newly added PPD */ /* * Try opening the driver directory... */ if ((server_bin = getenv("CUPS_SERVERBIN")) == NULL) server_bin = CUPS_SERVERBIN; snprintf(drivers, sizeof(drivers), "%s/driver", server_bin); if ((dir = cupsDirOpen(drivers)) == NULL) { fprintf(stderr, "ERROR: [cups-driverd] Unable to open driver directory " "\"%s\": %s\n", drivers, strerror(errno)); return (0); } /* * Loop through all of the device drivers... */ argv[1] = (char *)"list"; argv[2] = NULL; while ((dent = cupsDirRead(dir)) != NULL) { /* * Only look at executable files... */ if (!(dent->fileinfo.st_mode & 0111) || !S_ISREG(dent->fileinfo.st_mode)) continue; /* * Include/exclude specific drivers... */ if (exclude) { /* * Look for "scheme" or "scheme*" (prefix match), and skip any matches. */ for (scheme = (char *)cupsArrayFirst(exclude); scheme; scheme = (char *)cupsArrayNext(exclude)) { fprintf(stderr, "DEBUG: [cups-driverd] Exclude \"%s\" with \"%s\"?\n", dent->filename, scheme); scheme_end = scheme + strlen(scheme) - 1; if ((scheme_end > scheme && *scheme_end == '*' && !strncmp(scheme, dent->filename, (size_t)(scheme_end - scheme))) || !strcmp(scheme, dent->filename)) { fputs("DEBUG: [cups-driverd] Yes, exclude!\n", stderr); break; } } if (scheme) continue; } if (include) { /* * Look for "scheme" or "scheme*" (prefix match), and skip any non-matches. */ for (scheme = (char *)cupsArrayFirst(include); scheme; scheme = (char *)cupsArrayNext(include)) { fprintf(stderr, "DEBUG: [cups-driverd] Include \"%s\" with \"%s\"?\n", dent->filename, scheme); scheme_end = scheme + strlen(scheme) - 1; if ((scheme_end > scheme && *scheme_end == '*' && !strncmp(scheme, dent->filename, (size_t)(scheme_end - scheme))) || !strcmp(scheme, dent->filename)) { fputs("DEBUG: [cups-driverd] Yes, include!\n", stderr); break; } } if (!scheme) continue; } else scheme = dent->filename; /* * Run the driver with no arguments and collect the output... */ snprintf(filename, sizeof(filename), "%s/%s", drivers, dent->filename); if (_cupsFileCheck(filename, _CUPS_FILE_CHECK_PROGRAM, !geteuid(), _cupsFileCheckFilter, NULL)) continue; argv[0] = dent->filename; if ((fp = cupsdPipeCommand(&pid, filename, argv, 0)) != NULL) { while (cupsFileGets(fp, line, sizeof(line))) { /* * Each line is of the form: * * "ppd-name" ppd-natural-language "ppd-make" "ppd-make-and-model" \ * "ppd-device-id" "ppd-product" "ppd-psversion" */ device_id[0] = '\0'; product[0] = '\0'; psversion[0] = '\0'; strlcpy(type_str, "postscript", sizeof(type_str)); if (sscanf(line, "\"%255[^\"]\"%127s%*[ \t]\"%127[^\"]\"" "%*[ \t]\"%127[^\"]\"%*[ \t]\"%255[^\"]\"" "%*[ \t]\"%127[^\"]\"%*[ \t]\"%127[^\"]\"" "%*[ \t]\"%127[^\"]\"", name, languages, make, make_and_model, device_id, product, psversion, type_str) < 4) { /* * Bad format; strip trailing newline and write an error message. */ if (line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = '\0'; fprintf(stderr, "ERROR: [cups-driverd] Bad line from \"%s\": %s\n", dent->filename, line); break; } else { /* * Add the device to the array of available devices... */ if ((start = strchr(languages, ',')) != NULL) *start++ = '\0'; for (type = 0; type < (int)(sizeof(PPDTypes) / sizeof(PPDTypes[0])); type ++) if (!strcmp(type_str, PPDTypes[type])) break; if (type >= (int)(sizeof(PPDTypes) / sizeof(PPDTypes[0]))) { fprintf(stderr, "ERROR: [cups-driverd] Bad ppd-type \"%s\" ignored!\n", type_str); type = PPD_TYPE_UNKNOWN; } ppd = add_ppd(filename, name, languages, make, make_and_model, device_id, product, psversion, 0, 0, 0, type, scheme); if (!ppd) { cupsDirClose(dir); cupsFileClose(fp); return (0); } if (start && *start) { for (i = 1; i < PPD_MAX_LANG && *start; i ++) { if ((ptr = strchr(start, ',')) != NULL) *ptr++ = '\0'; else ptr = start + strlen(start); strlcpy(ppd->record.languages[i], start, sizeof(ppd->record.languages[0])); start = ptr; } } fprintf(stderr, "DEBUG2: [cups-driverd] Added dynamic PPD \"%s\"...\n", name); } } cupsFileClose(fp); } else fprintf(stderr, "WARNING: [cups-driverd] Unable to execute \"%s\": %s\n", filename, strerror(errno)); } cupsDirClose(dir); return (1); } /* * 'load_ppd()' - Load a PPD file. */ static void load_ppd(const char *filename, /* I - Real filename */ const char *name, /* I - Virtual filename */ const char *scheme, /* I - PPD scheme */ struct stat *fileinfo, /* I - File information */ ppd_info_t *ppd, /* I - Existing PPD file or NULL */ cups_file_t *fp, /* I - File to read from */ off_t end) /* I - End of file position or 0 */ { int i; /* Looping var */ char line[256], /* Line from file */ *ptr, /* Pointer into line */ lang_version[64], /* PPD LanguageVersion */ lang_encoding[64], /* PPD LanguageEncoding */ country[64], /* Country code */ manufacturer[256], /* Manufacturer */ make_model[256], /* Make and Model */ model_name[256], /* ModelName */ nick_name[256], /* NickName */ device_id[256], /* 1284DeviceID */ product[256], /* Product */ psversion[256], /* PSVersion */ temp[512]; /* Temporary make and model */ int install_group, /* In the installable options group? */ model_number, /* cupsModelNumber */ type; /* ppd-type */ cups_array_t *products, /* Product array */ *psversions, /* PSVersion array */ *cups_languages; /* cupsLanguages array */ struct /* LanguageVersion translation table */ { const char *version, /* LanguageVersion string */ *language; /* Language code */ } languages[] = { { "chinese", "zh" }, { "czech", "cs" }, { "danish", "da" }, { "dutch", "nl" }, { "english", "en" }, { "finnish", "fi" }, { "french", "fr" }, { "german", "de" }, { "greek", "el" }, { "hungarian", "hu" }, { "italian", "it" }, { "japanese", "ja" }, { "korean", "ko" }, { "norwegian", "no" }, { "polish", "pl" }, { "portuguese", "pt" }, { "russian", "ru" }, { "simplified chinese", "zh_CN" }, { "slovak", "sk" }, { "spanish", "es" }, { "swedish", "sv" }, { "traditional chinese", "zh_TW" }, { "turkish", "tr" } }; /* * Now read until we get the required fields... */ cups_languages = cupsArrayNew(NULL, NULL); products = cupsArrayNew(NULL, NULL); psversions = cupsArrayNew(NULL, NULL); model_name[0] = '\0'; nick_name[0] = '\0'; manufacturer[0] = '\0'; device_id[0] = '\0'; lang_encoding[0] = '\0'; strlcpy(lang_version, "en", sizeof(lang_version)); model_number = 0; install_group = 0; type = PPD_TYPE_POSTSCRIPT; while ((end == 0 || cupsFileTell(fp) < end) && cupsFileGets(fp, line, sizeof(line))) { if (!strncmp(line, "*Manufacturer:", 14)) sscanf(line, "%*[^\"]\"%255[^\"]", manufacturer); else if (!strncmp(line, "*ModelName:", 11)) sscanf(line, "%*[^\"]\"%127[^\"]", model_name); else if (!strncmp(line, "*LanguageEncoding:", 18)) sscanf(line, "%*[^:]:%63s", lang_encoding); else if (!strncmp(line, "*LanguageVersion:", 17)) sscanf(line, "%*[^:]:%63s", lang_version); else if (!strncmp(line, "*NickName:", 10)) sscanf(line, "%*[^\"]\"%255[^\"]", nick_name); else if (!_cups_strncasecmp(line, "*1284DeviceID:", 14)) { sscanf(line, "%*[^\"]\"%255[^\"]", device_id); // Make sure device ID ends with a semicolon... if (device_id[0] && device_id[strlen(device_id) - 1] != ';') strlcat(device_id, ";", sizeof(device_id)); } else if (!strncmp(line, "*Product:", 9)) { if (sscanf(line, "%*[^\"]\"(%255[^\"]", product) == 1) { /* * Make sure the value ends with a right parenthesis - can't stop at * the first right paren since the product name may contain escaped * parenthesis... */ ptr = product + strlen(product) - 1; if (ptr > product && *ptr == ')') { /* * Yes, ends with a parenthesis, so remove it from the end and * add the product to the list... */ *ptr = '\0'; cupsArrayAdd(products, strdup(product)); } } } else if (!strncmp(line, "*PSVersion:", 11)) { sscanf(line, "%*[^\"]\"%255[^\"]", psversion); cupsArrayAdd(psversions, strdup(psversion)); } else if (!strncmp(line, "*cupsLanguages:", 15)) { char *start; /* Start of language */ for (start = line + 15; *start && isspace(*start & 255); start ++); if (*start++ == '\"') { while (*start) { for (ptr = start + 1; *ptr && *ptr != '\"' && !isspace(*ptr & 255); ptr ++); if (*ptr) { *ptr++ = '\0'; while (isspace(*ptr & 255)) *ptr++ = '\0'; } cupsArrayAdd(cups_languages, strdup(start)); start = ptr; } } } else if (!strncmp(line, "*cupsFax:", 9)) { for (ptr = line + 9; isspace(*ptr & 255); ptr ++); if (!_cups_strncasecmp(ptr, "true", 4)) type = PPD_TYPE_FAX; } else if ((!strncmp(line, "*cupsFilter:", 12) || !strncmp(line, "*cupsFilter2:", 13)) && type == PPD_TYPE_POSTSCRIPT) { if (strstr(line + 12, "application/vnd.cups-raster")) type = PPD_TYPE_RASTER; else if (strstr(line + 12, "application/vnd.cups-pdf")) type = PPD_TYPE_PDF; } else if (!strncmp(line, "*cupsModelNumber:", 17)) sscanf(line, "*cupsModelNumber:%d", &model_number); else if (!strncmp(line, "*OpenGroup: Installable", 23)) install_group = 1; else if (!strncmp(line, "*CloseGroup:", 12)) install_group = 0; else if (!strncmp(line, "*OpenUI", 7)) { /* * Stop early if we have a NickName or ModelName attributes * before the first non-installable OpenUI... */ if (!install_group && (model_name[0] || nick_name[0]) && cupsArrayCount(products) > 0 && cupsArrayCount(psversions) > 0) break; } } /* * See if we got all of the required info... */ if (nick_name[0]) cupsCharsetToUTF8((cups_utf8_t *)make_model, nick_name, sizeof(make_model), _ppdGetEncoding(lang_encoding)); else strlcpy(make_model, model_name, sizeof(make_model)); while (isspace(make_model[0] & 255)) _cups_strcpy(make_model, make_model + 1); if (!make_model[0] || cupsArrayCount(products) == 0 || cupsArrayCount(psversions) == 0) { /* * We don't have all the info needed, so skip this file... */ if (!make_model[0]) fprintf(stderr, "WARNING: Missing NickName and ModelName in %s!\n", filename); if (cupsArrayCount(products) == 0) fprintf(stderr, "WARNING: Missing Product in %s!\n", filename); if (cupsArrayCount(psversions) == 0) fprintf(stderr, "WARNING: Missing PSVersion in %s!\n", filename); free_array(products); free_array(psversions); free_array(cups_languages); return; } if (model_name[0]) cupsArrayAdd(products, strdup(model_name)); /* * Normalize the make and model string... */ while (isspace(manufacturer[0] & 255)) _cups_strcpy(manufacturer, manufacturer + 1); if (!_cups_strncasecmp(make_model, manufacturer, strlen(manufacturer))) strlcpy(temp, make_model, sizeof(temp)); else snprintf(temp, sizeof(temp), "%s %s", manufacturer, make_model); _ppdNormalizeMakeAndModel(temp, make_model, sizeof(make_model)); /* * See if we got a manufacturer... */ if (!manufacturer[0] || !strcmp(manufacturer, "ESP")) { /* * Nope, copy the first part of the make and model then... */ strlcpy(manufacturer, make_model, sizeof(manufacturer)); /* * Truncate at the first space, dash, or slash, or make the * manufacturer "Other"... */ for (ptr = manufacturer; *ptr; ptr ++) if (*ptr == ' ' || *ptr == '-' || *ptr == '/') break; if (*ptr && ptr > manufacturer) *ptr = '\0'; else strlcpy(manufacturer, "Other", sizeof(manufacturer)); } else if (!_cups_strncasecmp(manufacturer, "LHAG", 4) || !_cups_strncasecmp(manufacturer, "linotype", 8)) strlcpy(manufacturer, "LHAG", sizeof(manufacturer)); else if (!_cups_strncasecmp(manufacturer, "Hewlett", 7)) strlcpy(manufacturer, "HP", sizeof(manufacturer)); /* * Fix the lang_version as needed... */ if ((ptr = strchr(lang_version, '-')) != NULL) *ptr++ = '\0'; else if ((ptr = strchr(lang_version, '_')) != NULL) *ptr++ = '\0'; if (ptr) { /* * Set the country suffix... */ country[0] = '_'; _cups_strcpy(country + 1, ptr); } else { /* * No country suffix... */ country[0] = '\0'; } for (i = 0; i < (int)(sizeof(languages) / sizeof(languages[0])); i ++) if (!_cups_strcasecmp(languages[i].version, lang_version)) break; if (i < (int)(sizeof(languages) / sizeof(languages[0]))) { /* * Found a known language... */ snprintf(lang_version, sizeof(lang_version), "%s%s", languages[i].language, country); } else { /* * Unknown language; use "xx"... */ strlcpy(lang_version, "xx", sizeof(lang_version)); } /* * Record the PPD file... */ if (!ppd) { /* * Add new PPD file... */ fprintf(stderr, "DEBUG2: [cups-driverd] Adding ppd \"%s\"...\n", name); ppd = add_ppd(name, name, lang_version, manufacturer, make_model, device_id, (char *)cupsArrayFirst(products), (char *)cupsArrayFirst(psversions), fileinfo->st_mtime, (size_t)fileinfo->st_size, model_number, type, scheme); if (!ppd) return; } else { /* * Update existing record... */ fprintf(stderr, "DEBUG2: [cups-driverd] Updating ppd \"%s\"...\n", name); memset(ppd, 0, sizeof(ppd_info_t)); ppd->found = 1; ppd->record.mtime = fileinfo->st_mtime; ppd->record.size = fileinfo->st_size; ppd->record.model_number = model_number; ppd->record.type = type; strlcpy(ppd->record.filename, name, sizeof(ppd->record.filename)); strlcpy(ppd->record.name, name, sizeof(ppd->record.name)); strlcpy(ppd->record.languages[0], lang_version, sizeof(ppd->record.languages[0])); strlcpy(ppd->record.products[0], (char *)cupsArrayFirst(products), sizeof(ppd->record.products[0])); strlcpy(ppd->record.psversions[0], (char *)cupsArrayFirst(psversions), sizeof(ppd->record.psversions[0])); strlcpy(ppd->record.make, manufacturer, sizeof(ppd->record.make)); strlcpy(ppd->record.make_and_model, make_model, sizeof(ppd->record.make_and_model)); strlcpy(ppd->record.device_id, device_id, sizeof(ppd->record.device_id)); strlcpy(ppd->record.scheme, scheme, sizeof(ppd->record.scheme)); } /* * Add remaining products, versions, and languages... */ for (i = 1; i < PPD_MAX_PROD && (ptr = (char *)cupsArrayNext(products)) != NULL; i ++) strlcpy(ppd->record.products[i], ptr, sizeof(ppd->record.products[0])); for (i = 1; i < PPD_MAX_VERS && (ptr = (char *)cupsArrayNext(psversions)) != NULL; i ++) strlcpy(ppd->record.psversions[i], ptr, sizeof(ppd->record.psversions[0])); for (i = 1, ptr = (char *)cupsArrayFirst(cups_languages); i < PPD_MAX_LANG && ptr; i ++, ptr = (char *)cupsArrayNext(cups_languages)) strlcpy(ppd->record.languages[i], ptr, sizeof(ppd->record.languages[0])); /* * Free products, versions, and languages... */ free_array(cups_languages); free_array(products); free_array(psversions); ChangedPPD = 1; } /* * 'load_ppds()' - Load PPD files recursively. */ static int /* O - 1 on success, 0 on failure */ load_ppds(const char *d, /* I - Actual directory */ const char *p, /* I - Virtual path in name */ int descend) /* I - Descend into directories? */ { struct stat dinfo, /* Directory information */ *dinfoptr; /* Pointer to match */ cups_file_t *fp; /* Pointer to file */ cups_dir_t *dir; /* Directory pointer */ cups_dentry_t *dent; /* Directory entry */ char filename[1024], /* Name of PPD or directory */ line[256], /* Line from file */ *ptr, /* Pointer into name */ name[256]; /* Name of PPD file */ ppd_info_t *ppd, /* New PPD file */ key; /* Search key */ /* * See if we've loaded this directory before... */ if (stat(d, &dinfo)) { if (errno != ENOENT) fprintf(stderr, "ERROR: [cups-driverd] Unable to stat \"%s\": %s\n", d, strerror(errno)); return (0); } else if (cupsArrayFind(Inodes, &dinfo)) { fprintf(stderr, "ERROR: [cups-driverd] Skipping \"%s\": loop detected!\n", d); return (1); } /* * Nope, add it to the Inodes array and continue... */ if ((dinfoptr = (struct stat *)malloc(sizeof(struct stat))) == NULL) { fputs("ERROR: [cups-driverd] Unable to allocate memory for directory info.\n", stderr); exit(1); } memcpy(dinfoptr, &dinfo, sizeof(struct stat)); cupsArrayAdd(Inodes, dinfoptr); /* * Check permissions... */ if (_cupsFileCheck(d, _CUPS_FILE_CHECK_DIRECTORY, !geteuid(), _cupsFileCheckFilter, NULL)) return (0); if ((dir = cupsDirOpen(d)) == NULL) { if (errno != ENOENT) fprintf(stderr, "ERROR: [cups-driverd] Unable to open PPD directory \"%s\": %s\n", d, strerror(errno)); return (0); } fprintf(stderr, "DEBUG: [cups-driverd] Loading \"%s\"...\n", d); while ((dent = cupsDirRead(dir)) != NULL) { /* * Skip files/directories starting with "."... */ if (dent->filename[0] == '.') continue; /* * See if this is a file... */ snprintf(filename, sizeof(filename), "%s/%s", d, dent->filename); if (p[0]) snprintf(name, sizeof(name), "%s/%s", p, dent->filename); else strlcpy(name, dent->filename, sizeof(name)); if (S_ISDIR(dent->fileinfo.st_mode)) { /* * Do subdirectory... */ if (descend) { if (!load_ppds(filename, name, 1)) { cupsDirClose(dir); return (1); } } else if ((ptr = filename + strlen(filename) - 14) > filename && !strcmp(ptr, ".printerDriver")) { /* * Load PPDs in a printer driver bundle. */ if (_cupsFileCheck(filename, _CUPS_FILE_CHECK_DIRECTORY, !geteuid(), _cupsFileCheckFilter, NULL)) continue; strlcat(filename, "/Contents/Resources/PPDs", sizeof(filename)); strlcat(name, "/Contents/Resources/PPDs", sizeof(name)); load_ppds(filename, name, 0); } continue; } else if (strstr(filename, ".plist")) { /* * Skip plist files in the PPDs directory... */ continue; } else if (_cupsFileCheck(filename, _CUPS_FILE_CHECK_FILE_ONLY, !geteuid(), _cupsFileCheckFilter, NULL)) continue; /* * See if this file has been scanned before... */ strlcpy(key.record.filename, name, sizeof(key.record.filename)); strlcpy(key.record.name, name, sizeof(key.record.name)); ppd = (ppd_info_t *)cupsArrayFind(PPDsByName, &key); if (ppd && ppd->record.size == dent->fileinfo.st_size && ppd->record.mtime == dent->fileinfo.st_mtime) { /* * Rewind to the first entry for this file... */ while ((ppd = (ppd_info_t *)cupsArrayPrev(PPDsByName)) != NULL && !strcmp(ppd->record.filename, name)); /* * Then mark all of the matches for this file as found... */ while ((ppd = (ppd_info_t *)cupsArrayNext(PPDsByName)) != NULL && !strcmp(ppd->record.filename, name)) ppd->found = 1; continue; } /* * No, file is new/changed, so re-scan it... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) continue; /* * Now see if this is a PPD file... */ line[0] = '\0'; cupsFileGets(fp, line, sizeof(line)); if (!strncmp(line, "*PPD-Adobe:", 11)) { /* * Yes, load it... */ load_ppd(filename, name, "file", &dent->fileinfo, ppd, fp, 0); } else { /* * Nope, treat it as a driver information file or archive... */ cupsFileRewind(fp); if ((ptr = strstr(filename, ".tar")) != NULL && (!strcmp(ptr, ".tar") || !strcmp(ptr, ".tar.gz"))) load_tar(filename, name, fp, dent->fileinfo.st_mtime, dent->fileinfo.st_size); else load_drv(filename, name, fp, dent->fileinfo.st_mtime, dent->fileinfo.st_size); } /* * Close the file... */ cupsFileClose(fp); } cupsDirClose(dir); return (1); } /* * 'load_ppds_dat()' - Load the ppds.dat file. */ static void load_ppds_dat(char *filename, /* I - Filename buffer */ size_t filesize, /* I - Size of filename buffer */ int verbose) /* I - Be verbose? */ { ppd_info_t *ppd; /* Current PPD file */ cups_file_t *fp; /* ppds.dat file */ struct stat fileinfo; /* ppds.dat information */ const char *cups_cachedir; /* CUPS_CACHEDIR environment variable */ PPDsByName = cupsArrayNew((cups_array_func_t)compare_names, NULL); PPDsByMakeModel = cupsArrayNew((cups_array_func_t)compare_ppds, NULL); ChangedPPD = 0; if (!filename[0]) { if ((cups_cachedir = getenv("CUPS_CACHEDIR")) == NULL) cups_cachedir = CUPS_CACHEDIR; snprintf(filename, filesize, "%s/ppds.dat", cups_cachedir); } if ((fp = cupsFileOpen(filename, "r")) != NULL) { /* * See if we have the right sync word... */ unsigned ppdsync; /* Sync word */ int num_ppds; /* Number of PPDs */ if ((size_t)cupsFileRead(fp, (char *)&ppdsync, sizeof(ppdsync)) == sizeof(ppdsync) && ppdsync == PPD_SYNC && !stat(filename, &fileinfo) && (((size_t)fileinfo.st_size - sizeof(ppdsync)) % sizeof(ppd_rec_t)) == 0 && (num_ppds = ((size_t)fileinfo.st_size - sizeof(ppdsync)) / sizeof(ppd_rec_t)) > 0) { /* * We have a ppds.dat file, so read it! */ for (; num_ppds > 0; num_ppds --) { if ((ppd = (ppd_info_t *)calloc(1, sizeof(ppd_info_t))) == NULL) { fputs("ERROR: [cups-driverd] Unable to allocate memory for PPD!\n", stderr); exit(1); } if (cupsFileRead(fp, (char *)&(ppd->record), sizeof(ppd_rec_t)) > 0) { cupsArrayAdd(PPDsByName, ppd); cupsArrayAdd(PPDsByMakeModel, ppd); } else { free(ppd); break; } } if (verbose) fprintf(stderr, "INFO: [cups-driverd] Read \"%s\", %d PPDs...\n", filename, cupsArrayCount(PPDsByName)); } cupsFileClose(fp); } } /* * 'load_tar()' - Load archived PPD files. */ static int /* O - 1 on success, 0 on failure */ load_tar(const char *filename, /* I - Actual filename */ const char *name, /* I - Name to the rest of the world */ cups_file_t *fp, /* I - File to read from */ time_t mtime, /* I - Mod time of driver info file */ off_t size) /* I - Size of driver info file */ { char curname[256], /* Current archive file name */ uri[1024]; /* Virtual file URI */ const char *curext; /* Extension on file */ struct stat curinfo; /* Current archive file information */ off_t next; /* Position for next header */ /* * Add a dummy entry for the file... */ (void)filename; add_ppd(name, name, "", "", "", "", "", "", mtime, (size_t)size, 0, PPD_TYPE_ARCHIVE, "file"); ChangedPPD = 1; /* * Scan for PPDs in the archive... */ while (read_tar(fp, curname, sizeof(curname), &curinfo)) { next = cupsFileTell(fp) + ((curinfo.st_size + TAR_BLOCK - 1) & ~(TAR_BLOCK - 1)); if ((curext = strrchr(curname, '.')) != NULL && !_cups_strcasecmp(curext, ".ppd")) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "file", "", "", 0, "/%s/%s", name, curname); load_ppd(name, uri, "file", &curinfo, NULL, fp, next); } if (cupsFileTell(fp) != next) cupsFileSeek(fp, next); } return (1); } /* * 'read_tar()' - Read a file header from an archive. * * This function skips all directories and special files. */ static int /* O - 1 if found, 0 on EOF */ read_tar(cups_file_t *fp, /* I - Archive to read */ char *name, /* I - Filename buffer */ size_t namesize, /* I - Size of filename buffer */ struct stat *info) /* O - File information */ { tar_rec_t record; /* Record from file */ while ((size_t)cupsFileRead(fp, (char *)&record, sizeof(record)) == sizeof(record)) { /* * Check for a valid tar header... */ if (memcmp(record.header.magic, TAR_MAGIC, 6) || memcmp(record.header.version, TAR_VERSION, 2)) { if (record.header.magic[0] || memcmp(record.header.magic, record.header.magic + 1, 5)) fputs("ERROR: [cups-driverd] Bad tar magic/version.\n", stderr); break; } /* * Ignore non-files... */ if (record.header.linkflag != TAR_OLDNORMAL && record.header.linkflag != TAR_NORMAL) continue; /* * Grab size and name from tar header and return... */ if (record.header.prefix[0]) snprintf(name, namesize, "%s/%s", record.header.prefix, record.header.pathname); else strlcpy(name, record.header.pathname, namesize); info->st_mtime = strtol(record.header.mtime, NULL, 8); info->st_size = strtoll(record.header.size, NULL, 8); return (1); } return (0); } /* * 'regex_device_id()' - Compile a regular expression based on the 1284 device * ID. */ static regex_t * /* O - Regular expression */ regex_device_id(const char *device_id) /* I - IEEE-1284 device ID */ { char res[2048], /* Regular expression string */ *ptr; /* Pointer into string */ regex_t *re; /* Regular expression */ int cmd; /* Command set string? */ fprintf(stderr, "DEBUG: [cups-driverd] regex_device_id(\"%s\")\n", device_id); /* * Scan the device ID string and insert class, command set, manufacturer, and * model attributes to match. We assume that the device ID in the PPD and the * device ID reported by the device itself use the same attribute names and * order of attributes. */ ptr = res; while (*device_id && ptr < (res + sizeof(res) - 6)) { cmd = !_cups_strncasecmp(device_id, "COMMAND SET:", 12) || !_cups_strncasecmp(device_id, "CMD:", 4); if (cmd || !_cups_strncasecmp(device_id, "MANUFACTURER:", 13) || !_cups_strncasecmp(device_id, "MFG:", 4) || !_cups_strncasecmp(device_id, "MFR:", 4) || !_cups_strncasecmp(device_id, "MODEL:", 6) || !_cups_strncasecmp(device_id, "MDL:", 4)) { if (ptr > res) { *ptr++ = '.'; *ptr++ = '*'; } *ptr++ = '('; while (*device_id && *device_id != ';' && ptr < (res + sizeof(res) - 8)) { if (strchr("[]{}().*\\|", *device_id)) *ptr++ = '\\'; if (*device_id == ':') { /* * KEY:.*value */ *ptr++ = *device_id++; *ptr++ = '.'; *ptr++ = '*'; } else *ptr++ = *device_id++; } if (*device_id == ';' || !*device_id) { /* * KEY:.*value.*; */ *ptr++ = '.'; *ptr++ = '*'; *ptr++ = ';'; } *ptr++ = ')'; if (cmd) *ptr++ = '?'; } else if ((device_id = strchr(device_id, ';')) == NULL) break; else device_id ++; } *ptr = '\0'; fprintf(stderr, "DEBUG: [cups-driverd] regex_device_id: \"%s\"\n", res); /* * Compile the regular expression and return... */ if (res[0] && (re = (regex_t *)calloc(1, sizeof(regex_t))) != NULL) { if (!regcomp(re, res, REG_EXTENDED | REG_ICASE)) { fputs("DEBUG: [cups-driverd] regex_device_id: OK\n", stderr); return (re); } free(re); } return (NULL); } /* * 'regex_string()' - Construct a regular expression to compare a simple string. */ static regex_t * /* O - Regular expression */ regex_string(const char *s) /* I - String to compare */ { char res[2048], /* Regular expression string */ *ptr; /* Pointer into string */ regex_t *re; /* Regular expression */ fprintf(stderr, "DEBUG: [cups-driverd] regex_string(\"%s\")\n", s); /* * Convert the string to a regular expression, escaping special characters * as needed. */ ptr = res; while (*s && ptr < (res + sizeof(res) - 2)) { if (strchr("[]{}().*\\", *s)) *ptr++ = '\\'; *ptr++ = *s++; } *ptr = '\0'; fprintf(stderr, "DEBUG: [cups-driverd] regex_string: \"%s\"\n", res); /* * Create a case-insensitive regular expression... */ if (res[0] && (re = (regex_t *)calloc(1, sizeof(regex_t))) != NULL) { if (!regcomp(re, res, REG_ICASE)) { fputs("DEBUG: [cups-driverd] regex_string: OK\n", stderr); return (re); } free(re); } return (NULL); } cups-2.4.7/scheduler/cups-deviced.c0000644000175000017500000004355014502571342017065 0ustar zdohnalzdohnal/* * Device scanning mini-daemon for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "util.h" #include #include #include #include #include /* * Constants... */ #define MAX_BACKENDS 200 /* Maximum number of backends we'll run */ /* * Backend information... */ typedef struct { char *name; /* Name of backend */ int pid, /* Process ID */ status; /* Exit status */ cups_file_t *pipe; /* Pipe from backend stdout */ int count; /* Number of devices found */ } cupsd_backend_t; /* * Device information structure... */ typedef struct { char device_class[128], /* Device class */ device_info[128], /* Device info/description */ device_uri[1024]; /* Device URI */ } cupsd_device_t; /* * Local globals... */ static int num_backends = 0, /* Total backends */ active_backends = 0; /* Active backends */ static cupsd_backend_t backends[MAX_BACKENDS]; /* Array of backends */ static struct pollfd backend_fds[MAX_BACKENDS]; /* Array for poll() */ static cups_array_t *devices; /* Array of devices */ static uid_t normal_user; /* Normal user ID */ static int device_limit; /* Maximum number of devices */ static int send_class, /* Send device-class attribute? */ send_info, /* Send device-info attribute? */ send_make_and_model, /* Send device-make-and-model attribute? */ send_uri, /* Send device-uri attribute? */ send_id, /* Send device-id attribute? */ send_location; /* Send device-location attribute? */ static int dead_children = 0; /* Dead children? */ /* * Local functions... */ static int add_device(const char *device_class, const char *device_make_and_model, const char *device_info, const char *device_uri, const char *device_id, const char *device_location); static int compare_devices(cupsd_device_t *p0, cupsd_device_t *p1); static double get_current_time(void); static int get_device(cupsd_backend_t *backend); static void process_children(void); static void sigchld_handler(int sig); static int start_backend(const char *backend, int root); /* * 'main()' - Scan for devices and return an IPP response. * * Usage: * * cups-deviced request_id limit options */ int /* O - Exit code */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int request_id; /* Request ID */ int timeout; /* Timeout in seconds */ const char *server_bin; /* CUPS_SERVERBIN environment variable */ char filename[1024]; /* Backend directory filename */ cups_dir_t *dir; /* Directory pointer */ cups_dentry_t *dent; /* Directory entry */ double current_time, /* Current time */ end_time; /* Ending time */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ cups_array_t *requested, /* requested-attributes values */ *exclude, /* exclude-schemes values */ *include; /* include-schemes values */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ setbuf(stderr, NULL); /* * Check the command-line... */ if (argc != 6) { fputs("Usage: cups-deviced request-id limit timeout user-id options\n", stderr); return (1); } request_id = atoi(argv[1]); if (request_id < 1) { fprintf(stderr, "ERROR: [cups-deviced] Bad request ID %d!\n", request_id); return (1); } device_limit = atoi(argv[2]); if (device_limit < 0) { fprintf(stderr, "ERROR: [cups-deviced] Bad limit %d!\n", device_limit); return (1); } timeout = atoi(argv[3]); if (timeout < 1) { fprintf(stderr, "ERROR: [cups-deviced] Bad timeout %d!\n", timeout); return (1); } normal_user = (uid_t)strtoul(argv[4], NULL, 10); if (normal_user == 0) { fprintf(stderr, "ERROR: [cups-deviced] Bad user %u!\n", (unsigned)normal_user); return (1); } num_options = cupsParseOptions(argv[5], 0, &options); requested = cupsdCreateStringsArray(cupsGetOption("requested-attributes", num_options, options)); exclude = cupsdCreateStringsArray(cupsGetOption("exclude-schemes", num_options, options)); include = cupsdCreateStringsArray(cupsGetOption("include-schemes", num_options, options)); if (!requested || cupsArrayFind(requested, "all") != NULL) { send_class = send_info = send_make_and_model = send_uri = send_id = send_location = 1; } else { send_class = cupsArrayFind(requested, "device-class") != NULL; send_info = cupsArrayFind(requested, "device-info") != NULL; send_make_and_model = cupsArrayFind(requested, "device-make-and-model") != NULL; send_uri = cupsArrayFind(requested, "device-uri") != NULL; send_id = cupsArrayFind(requested, "device-id") != NULL; send_location = cupsArrayFind(requested, "device-location") != NULL; } /* * Listen to child signals... */ #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGCHLD, sigchld_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGCHLD); action.sa_handler = sigchld_handler; sigaction(SIGCHLD, &action, NULL); #else signal(SIGCLD, sigchld_handler); /* No, SIGCLD isn't a typo... */ #endif /* HAVE_SIGSET */ /* * Try opening the backend directory... */ if ((server_bin = getenv("CUPS_SERVERBIN")) == NULL) server_bin = CUPS_SERVERBIN; snprintf(filename, sizeof(filename), "%s/backend", server_bin); if ((dir = cupsDirOpen(filename)) == NULL) { fprintf(stderr, "ERROR: [cups-deviced] Unable to open backend directory " "\"%s\": %s", filename, strerror(errno)); return (1); } /* * Setup the devices array... */ devices = cupsArrayNew((cups_array_func_t)compare_devices, NULL); /* * Loop through all of the device backends... */ while ((dent = cupsDirRead(dir)) != NULL) { /* * Skip entries that are not executable files... */ if (!S_ISREG(dent->fileinfo.st_mode) || !isalnum(dent->filename[0] & 255) || (dent->fileinfo.st_mode & (S_IRUSR | S_IXUSR)) != (S_IRUSR | S_IXUSR)) continue; /* * Skip excluded or not included backends... */ if (cupsArrayFind(exclude, dent->filename) || (include && !cupsArrayFind(include, dent->filename))) continue; /* * Backends without permissions for normal users run as root, * all others run as the unprivileged user... */ start_backend(dent->filename, !(dent->fileinfo.st_mode & (S_IWGRP | S_IWOTH | S_IXOTH))); } cupsDirClose(dir); /* * Collect devices... */ if (getenv("SOFTWARE")) puts("Content-Type: application/ipp\n"); cupsdSendIPPHeader(IPP_OK, request_id); cupsdSendIPPGroup(IPP_TAG_OPERATION); cupsdSendIPPString(IPP_TAG_CHARSET, "attributes-charset", "utf-8"); cupsdSendIPPString(IPP_TAG_LANGUAGE, "attributes-natural-language", "en-US"); end_time = get_current_time() + timeout; while (active_backends > 0 && (current_time = get_current_time()) < end_time) { /* * Collect the output from the backends... */ timeout = (int)(1000 * (end_time - current_time)); if (poll(backend_fds, (nfds_t)num_backends, timeout) > 0) { for (i = 0; i < num_backends; i ++) if (backend_fds[i].revents && backends[i].pipe) { cups_file_t *bpipe = backends[i].pipe; /* Copy of pipe for backend... */ do { if (get_device(backends + i)) { backend_fds[i].fd = 0; backend_fds[i].events = 0; break; } } while (_cupsFilePeekAhead(bpipe, '\n')); } } /* * Get exit status from children... */ if (dead_children) process_children(); } cupsdSendIPPTrailer(); /* * Terminate any remaining backends and exit... */ if (active_backends > 0) { for (i = 0; i < num_backends; i ++) if (backends[i].pid) kill(backends[i].pid, SIGTERM); } return (0); } /* * 'add_device()' - Add a new device to the list. */ static int /* O - 0 on success, -1 on error */ add_device( const char *device_class, /* I - Device class */ const char *device_make_and_model, /* I - Device make and model */ const char *device_info, /* I - Device information */ const char *device_uri, /* I - Device URI */ const char *device_id, /* I - 1284 device ID */ const char *device_location) /* I - Physical location */ { cupsd_device_t *device; /* New device */ /* * Allocate memory for the device record... */ if ((device = calloc(1, sizeof(cupsd_device_t))) == NULL) { fputs("ERROR: [cups-deviced] Ran out of memory allocating a device!\n", stderr); return (-1); } /* * Copy the strings over... */ strlcpy(device->device_class, device_class, sizeof(device->device_class)); strlcpy(device->device_info, device_info, sizeof(device->device_info)); strlcpy(device->device_uri, device_uri, sizeof(device->device_uri)); /* * Add the device to the array and return... */ if (cupsArrayFind(devices, device)) { /* * Avoid duplicates! */ free(device); } else { cupsArrayAdd(devices, device); if (device_limit <= 0 || cupsArrayCount(devices) < device_limit) { /* * Send device info... */ cupsdSendIPPGroup(IPP_TAG_PRINTER); if (send_class) cupsdSendIPPString(IPP_TAG_KEYWORD, "device-class", device_class); if (send_info) cupsdSendIPPString(IPP_TAG_TEXT, "device-info", device_info); if (send_make_and_model) cupsdSendIPPString(IPP_TAG_TEXT, "device-make-and-model", device_make_and_model); if (send_uri) cupsdSendIPPString(IPP_TAG_URI, "device-uri", device_uri); if (send_id) cupsdSendIPPString(IPP_TAG_TEXT, "device-id", device_id ? device_id : ""); if (send_location) cupsdSendIPPString(IPP_TAG_TEXT, "device-location", device_location ? device_location : ""); fflush(stdout); fputs("DEBUG: Flushed attributes...\n", stderr); } } return (0); } /* * 'compare_devices()' - Compare device names to eliminate duplicates. */ static int /* O - Result of comparison */ compare_devices(cupsd_device_t *d0, /* I - First device */ cupsd_device_t *d1) /* I - Second device */ { int diff; /* Difference between strings */ /* * Sort devices by device-info, device-class, and device-uri... */ if ((diff = cupsdCompareNames(d0->device_info, d1->device_info)) != 0) return (diff); else if ((diff = _cups_strcasecmp(d0->device_class, d1->device_class)) != 0) return (diff); else return (_cups_strcasecmp(d0->device_uri, d1->device_uri)); } /* * 'get_current_time()' - Get the current time as a double value in seconds. */ static double /* O - Time in seconds */ get_current_time(void) { struct timeval curtime; /* Current time */ gettimeofday(&curtime, NULL); return (curtime.tv_sec + 0.000001 * curtime.tv_usec); } /* * 'get_device()' - Get a device from a backend. */ static int /* O - 0 on success, -1 on error */ get_device(cupsd_backend_t *backend) /* I - Backend to read from */ { char line[2048], /* Line from backend */ temp[2048], /* Copy of line */ *ptr, /* Pointer into line */ *dclass, /* Device class */ *uri, /* Device URI */ *make_model, /* Make and model */ *info, /* Device info */ *device_id, /* 1284 device ID */ *location; /* Physical location */ if (cupsFileGets(backend->pipe, line, sizeof(line))) { /* * Each line is of the form: * * class URI "make model" "name" ["1284 device ID"] ["location"] */ strlcpy(temp, line, sizeof(temp)); /* * device-class */ dclass = temp; for (ptr = temp; *ptr; ptr ++) if (isspace(*ptr & 255)) break; while (isspace(*ptr & 255)) *ptr++ = '\0'; /* * device-uri */ if (!*ptr) goto error; for (uri = ptr; *ptr; ptr ++) if (isspace(*ptr & 255)) break; while (isspace(*ptr & 255)) *ptr++ = '\0'; /* * device-make-and-model */ if (*ptr != '\"') goto error; for (ptr ++, make_model = ptr; *ptr && *ptr != '\"'; ptr ++) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); } if (*ptr != '\"') goto error; for (*ptr++ = '\0'; isspace(*ptr & 255); *ptr++ = '\0'); /* * device-info */ if (*ptr != '\"') goto error; for (ptr ++, info = ptr; *ptr && *ptr != '\"'; ptr ++) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); } if (*ptr != '\"') goto error; for (*ptr++ = '\0'; isspace(*ptr & 255); *ptr++ = '\0'); /* * device-id */ if (*ptr == '\"') { for (ptr ++, device_id = ptr; *ptr && *ptr != '\"'; ptr ++) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); } if (*ptr != '\"') goto error; for (*ptr++ = '\0'; isspace(*ptr & 255); *ptr++ = '\0'); /* * device-location */ if (*ptr == '\"') { for (ptr ++, location = ptr; *ptr && *ptr != '\"'; ptr ++) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); } if (*ptr != '\"') goto error; *ptr = '\0'; } else location = NULL; } else { device_id = NULL; location = NULL; } /* * Add the device to the array of available devices... */ if (!add_device(dclass, make_model, info, uri, device_id, location)) fprintf(stderr, "DEBUG: [cups-deviced] Found device \"%s\"...\n", uri); return (0); } /* * End of file... */ cupsFileClose(backend->pipe); backend->pipe = NULL; return (-1); /* * Bad format; strip trailing newline and write an error message. */ error: if (line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = '\0'; fprintf(stderr, "ERROR: [cups-deviced] Bad line from \"%s\": %s\n", backend->name, line); return (0); } /* * 'process_children()' - Process all dead children... */ static void process_children(void) { int i; /* Looping var */ int status; /* Exit status of child */ int pid; /* Process ID of child */ cupsd_backend_t *backend; /* Current backend */ const char *name; /* Name of process */ /* * Reset the dead_children flag... */ dead_children = 0; /* * Collect the exit status of some children... */ #ifdef HAVE_WAITPID while ((pid = waitpid(-1, &status, WNOHANG)) > 0) #elif defined(HAVE_WAIT3) while ((pid = wait3(&status, WNOHANG, NULL)) > 0) #else if ((pid = wait(&status)) > 0) #endif /* HAVE_WAITPID */ { if (status == SIGTERM) status = 0; for (i = num_backends, backend = backends; i > 0; i --, backend ++) if (backend->pid == pid) break; if (i > 0) { name = backend->name; backend->pid = 0; backend->status = status; active_backends --; } else name = "Unknown"; if (status) { if (WIFEXITED(status)) fprintf(stderr, "ERROR: [cups-deviced] PID %d (%s) stopped with status %d!\n", pid, name, WEXITSTATUS(status)); else fprintf(stderr, "ERROR: [cups-deviced] PID %d (%s) crashed on signal %d!\n", pid, name, WTERMSIG(status)); } else fprintf(stderr, "DEBUG: [cups-deviced] PID %d (%s) exited with no errors.\n", pid, name); } } /* * 'sigchld_handler()' - Handle 'child' signals from old processes. */ static void sigchld_handler(int sig) /* I - Signal number */ { (void)sig; /* * Flag that we have dead children... */ dead_children = 1; /* * Reset the signal handler as needed... */ #if !defined(HAVE_SIGSET) && !defined(HAVE_SIGACTION) signal(SIGCLD, sigchld_handler); #endif /* !HAVE_SIGSET && !HAVE_SIGACTION */ } /* * 'start_backend()' - Run a backend to gather the available devices. */ static int /* O - 0 on success, -1 on error */ start_backend(const char *name, /* I - Backend to run */ int root) /* I - Run as root? */ { const char *server_bin; /* CUPS_SERVERBIN environment variable */ char program[1024]; /* Full path to backend */ cupsd_backend_t *backend; /* Current backend */ char *argv[2]; /* Command-line arguments */ if (num_backends >= MAX_BACKENDS) { fprintf(stderr, "ERROR: Too many backends (%d)!\n", num_backends); return (-1); } if ((server_bin = getenv("CUPS_SERVERBIN")) == NULL) server_bin = CUPS_SERVERBIN; snprintf(program, sizeof(program), "%s/backend/%s", server_bin, name); if (_cupsFileCheck(program, _CUPS_FILE_CHECK_PROGRAM, !geteuid(), _cupsFileCheckFilter, NULL)) return (-1); backend = backends + num_backends; argv[0] = (char *)name; argv[1] = NULL; if ((backend->pipe = cupsdPipeCommand(&(backend->pid), program, argv, root ? 0 : normal_user)) == NULL) { fprintf(stderr, "ERROR: [cups-deviced] Unable to execute \"%s\" - %s\n", program, strerror(errno)); return (-1); } /* * Fill in the rest of the backend information... */ fprintf(stderr, "DEBUG: [cups-deviced] Started backend %s (PID %d)\n", program, backend->pid); backend_fds[num_backends].fd = cupsFileNumber(backend->pipe); backend_fds[num_backends].events = POLLIN; backend->name = strdup(name); backend->status = 0; backend->count = 0; active_backends ++; num_backends ++; return (0); } cups-2.4.7/scheduler/conf.h0000644000175000017500000002277714502571342015454 0ustar zdohnalzdohnal/* * Configuration file definitions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Log levels... */ typedef enum { CUPSD_LOG_PPD = -5, /* Used internally for PPD keywords */ CUPSD_LOG_ATTR, /* Used internally for attributes */ CUPSD_LOG_STATE, /* Used internally for printer-state-reasons */ CUPSD_LOG_JOBSTATE, /* Used internally for job-state-reasons */ CUPSD_LOG_PAGE, /* Used internally for page logging */ CUPSD_LOG_NONE, CUPSD_LOG_EMERG, /* Emergency issues */ CUPSD_LOG_ALERT, /* Something bad happened that needs attention */ CUPSD_LOG_CRIT, /* Critical error but server continues */ CUPSD_LOG_ERROR, /* Error condition */ CUPSD_LOG_WARN, /* Warning */ CUPSD_LOG_NOTICE, /* Normal condition that needs logging */ CUPSD_LOG_INFO, /* General information */ CUPSD_LOG_DEBUG, /* General debugging */ CUPSD_LOG_DEBUG2 /* Detailed debugging */ } cupsd_loglevel_t; typedef enum { CUPSD_ACCESSLOG_NONE, /* Log no requests */ CUPSD_ACCESSLOG_CONFIG, /* Log config requests */ CUPSD_ACCESSLOG_ACTIONS, /* Log config, print, and job management requests */ CUPSD_ACCESSLOG_ALL /* Log everything */ } cupsd_accesslog_t; typedef enum { CUPSD_TIME_STANDARD, /* "Standard" Apache/CLF format */ CUPSD_TIME_USECS /* Standard format with microseconds */ } cupsd_time_t; typedef enum { CUPSD_SANDBOXING_OFF, /* No sandboxing */ CUPSD_SANDBOXING_RELAXED, /* Relaxed sandboxing */ CUPSD_SANDBOXING_STRICT /* Strict sandboxing */ } cupsd_sandboxing_t; /* * FatalErrors flags... */ #define CUPSD_FATAL_NONE 0 /* No errors are fatal */ #define CUPSD_FATAL_BROWSE 1 /* Browse bind errors are fatal */ #define CUPSD_FATAL_CONFIG 2 /* Config file syntax errors are fatal */ #define CUPSD_FATAL_LISTEN 4 /* Listen/Port bind errors are fatal */ #define CUPSD_FATAL_LOG 8 /* Log file errors are fatal */ #define CUPSD_FATAL_PERMISSIONS 16 /* File permission errors are fatal */ #define CUPSD_FATAL_ALL ~0 /* All errors are fatal */ /* * Printcap formats... */ #define PRINTCAP_BSD 0 /* Berkeley LPD format */ #define PRINTCAP_SOLARIS 1 /* Solaris lpsched format */ #define PRINTCAP_PLIST 2 /* macOS plist format */ /* * ServerAlias data... */ typedef struct { size_t namelen; /* Length of alias name */ char name[1]; /* Alias name */ } cupsd_alias_t; /* * Globals... */ VAR char *ConfigurationFile VALUE(NULL), /* cupsd.conf file to use */ *CupsFilesFile VALUE(NULL), /* cups-files.conf file to use */ *ServerName VALUE(NULL), /* FQDN for server */ *ServerAdmin VALUE(NULL), /* Administrator's email */ *ServerRoot VALUE(NULL), /* Root directory for scheduler */ *ServerBin VALUE(NULL), /* Root directory for binaries */ *StateDir VALUE(NULL), /* Root directory for state data */ *RequestRoot VALUE(NULL), /* Directory for request files */ *DocumentRoot VALUE(NULL); /* Root directory for documents */ VAR cups_array_t *ServerAlias VALUE(NULL); /* Alias names for server */ VAR int ServerNameIsIP VALUE(0); /* Is the ServerName an IP address? */ VAR int NumSystemGroups VALUE(0); /* Number of system group names */ VAR char *SystemGroups[MAX_SYSTEM_GROUPS] VALUE({0}); /* System group names */ VAR gid_t SystemGroupIDs[MAX_SYSTEM_GROUPS] VALUE({0}); /* System group IDs */ VAR char *AccessLog VALUE(NULL), /* Access log filename */ *ErrorLog VALUE(NULL), /* Error log filename */ *PageLog VALUE(NULL), /* Page log filename */ *CacheDir VALUE(NULL), /* Cache file directory */ *DataDir VALUE(NULL), /* Data file directory */ *DefaultLanguage VALUE(NULL), /* Default language encoding */ *DefaultLocale VALUE(NULL), /* Default locale */ *DefaultPaperSize VALUE(NULL), /* Default paper size */ *ErrorPolicy VALUE(NULL), /* Default printer-error-policy */ *TempDir VALUE(NULL), /* Temporary directory */ *Printcap VALUE(NULL), /* Printcap file */ *RemoteRoot VALUE(NULL), /* Remote root user */ *Classification VALUE(NULL); /* Classification of system */ VAR cups_array_t *ReadyPaperSizes VALUE(NULL); /* List of paper sizes to list as ready */ VAR uid_t User VALUE(1), /* User ID for server */ RunUser VALUE(0); /* User to run as, used for files */ VAR gid_t Group VALUE(0); /* Group ID for server */ VAR cupsd_accesslog_t AccessLogLevel VALUE(CUPSD_ACCESSLOG_ACTIONS); /* Access log level */ VAR int ClassifyOverride VALUE(0), /* Allow overrides? */ LogDebugHistory VALUE(200), /* Amount of automatic debug history */ FatalErrors VALUE(CUPSD_FATAL_CONFIG), /* Which errors are fatal? */ StrictConformance VALUE(FALSE), /* Require strict IPP conformance? */ SyncOnClose VALUE(FALSE); /* Call fsync() when closing files? */ VAR mode_t ConfigFilePerm VALUE(0640U), /* Permissions for config files */ LogFilePerm VALUE(0644U); /* Permissions for log files */ VAR gid_t LogFileGroup VALUE(0); /* Group ID for log files */ VAR cupsd_loglevel_t LogLevel VALUE(CUPSD_LOG_WARN); /* Error log level */ VAR cupsd_time_t LogTimeFormat VALUE(CUPSD_TIME_STANDARD); /* Log file time format */ VAR cups_file_t *LogStderr VALUE(NULL); /* Stderr file, if any */ VAR cupsd_sandboxing_t Sandboxing VALUE(CUPSD_SANDBOXING_STRICT); /* Sandboxing level */ VAR int UseSandboxing VALUE(1); /* Use sandboxing for child procs? */ VAR int MaxClients VALUE(100), /* Maximum number of clients */ MaxClientsPerHost VALUE(0), /* Maximum number of clients per host */ MaxCopies VALUE(CUPS_DEFAULT_MAX_COPIES), /* Maximum number of copies per job */ MaxLogSize VALUE(1024 * 1024), /* Maximum size of log files */ MaxRequestSize VALUE(0), /* Maximum size of IPP requests */ HostNameLookups VALUE(FALSE), /* Do we do reverse lookups? */ Timeout VALUE(DEFAULT_TIMEOUT), /* Timeout during requests */ KeepAlive VALUE(TRUE), /* Support the Keep-Alive option? */ FileDevice VALUE(FALSE), /* Allow file: devices? */ FilterLimit VALUE(0), /* Max filter cost at any time */ FilterLevel VALUE(0), /* Current filter level */ FilterNice VALUE(0), /* Nice value for filters */ ReloadTimeout VALUE(DEFAULT_KEEPALIVE), /* Timeout before reload from SIGHUP */ RootCertDuration VALUE(300), /* Root certificate update interval */ PrintcapFormat VALUE(PRINTCAP_BSD), /* Format of printcap file? */ DefaultShared VALUE(TRUE), /* Share printers by default? */ MultipleOperationTimeout VALUE(DEFAULT_TIMEOUT), /* multiple-operation-time-out value */ WebInterface VALUE(CUPS_DEFAULT_WEBIF); /* Enable the web interface? */ VAR cups_file_t *AccessFile VALUE(NULL), /* Access log file */ *ErrorFile VALUE(NULL), /* Error log file */ *PageFile VALUE(NULL); /* Page log file */ VAR char *PageLogFormat VALUE(NULL); /* Page log format */ VAR mime_t *MimeDatabase VALUE(NULL); /* MIME type database */ VAR int NumMimeTypes VALUE(0); /* Number of MIME types */ VAR const char **MimeTypes VALUE(NULL); /* Array of MIME types */ #ifdef HAVE_TLS VAR int CreateSelfSignedCerts VALUE(TRUE); /* Automatically create self-signed certs? */ VAR char *ServerKeychain VALUE(NULL); /* Keychain holding cert + key */ #endif /* HAVE_TLS */ #ifdef HAVE_ONDEMAND VAR int IdleExitTimeout VALUE(60); /* Time after which an idle cupsd will exit */ #endif /* HAVE_ONDEMAND */ #ifdef HAVE_AUTHORIZATION_H VAR char *SystemGroupAuthKey VALUE(NULL); /* System group auth key */ #endif /* HAVE_AUTHORIZATION_H */ #ifdef HAVE_GSSAPI VAR char *GSSServiceName VALUE(NULL); /* GSS service name */ VAR int HaveServerCreds VALUE(0); /* Do we have server credentials? */ VAR gss_cred_id_t ServerCreds; /* Server's GSS credentials */ #endif /* HAVE_GSSAPI */ /* * Prototypes... */ extern void cupsdAddAlias(cups_array_t *aliases, const char *name); extern int cupsdCheckLogFile(cups_file_t **lf, const char *logname); extern int cupsdCheckPermissions(const char *filename, const char *suffix, mode_t mode, uid_t user, gid_t group, int is_dir, int create_dir); extern int cupsdCheckProgram(const char *filename, cupsd_printer_t *p); extern int cupsdDefaultAuthType(void); extern void cupsdFreeAliases(cups_array_t *aliases); extern char *cupsdGetDateTime(struct timeval *t, cupsd_time_t format); extern int cupsdLogClient(cupsd_client_t *con, int level, const char *message, ...) _CUPS_FORMAT(3, 4); extern void cupsdLogFCMessage(void *context, _cups_fc_result_t result, const char *message); #ifdef HAVE_GSSAPI extern int cupsdLogGSSMessage(int level, OM_uint32 major_status, OM_uint32 minor_status, const char *message, ...) _CUPS_FORMAT(4, 5); #endif /* HAVE_GSSAPI */ extern int cupsdLogJob(cupsd_job_t *job, int level, const char *message, ...) _CUPS_FORMAT(3, 4); extern int cupsdLogMessage(int level, const char *message, ...) _CUPS_FORMAT(2, 3); extern int cupsdLogPage(cupsd_job_t *job, const char *page); extern int cupsdLogRequest(cupsd_client_t *con, http_status_t code); extern int cupsdReadConfiguration(void); extern int cupsdWriteErrorLog(int level, const char *message); cups-2.4.7/scheduler/conf.c0000644000175000017500000034711614502571342015444 0ustar zdohnalzdohnal/* * Configuration routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #include #include #ifdef HAVE_ASL_H # include #elif defined(HAVE_SYSTEMD_SD_JOURNAL_H) # define SD_JOURNAL_SUPPRESS_LOCATION # include #endif /* HAVE_ASL_H */ #include #ifdef HAVE_LIBPAPER # include #endif /* HAVE_LIBPAPER */ /* * Possibly missing network definitions... */ #ifndef INADDR_NONE # define INADDR_NONE 0xffffffff #endif /* !INADDR_NONE */ /* * Configuration variable structure... */ typedef enum { CUPSD_VARTYPE_INTEGER, /* Integer option */ CUPSD_VARTYPE_TIME, /* Time interval option */ CUPSD_VARTYPE_STRING, /* String option */ CUPSD_VARTYPE_BOOLEAN, /* Boolean option */ CUPSD_VARTYPE_PATHNAME, /* File/directory name option */ CUPSD_VARTYPE_PERM /* File/directory permissions */ } cupsd_vartype_t; typedef struct { const char *name; /* Name of variable */ void *ptr; /* Pointer to variable */ cupsd_vartype_t type; /* Type (int, string, address) */ } cupsd_var_t; /* * Local globals... */ static const cupsd_var_t cupsd_vars[] = { { "AutoPurgeJobs", &JobAutoPurge, CUPSD_VARTYPE_BOOLEAN }, #ifdef HAVE_DNSSD { "BrowseDNSSDSubTypes", &DNSSDSubTypes, CUPSD_VARTYPE_STRING }, #endif /* HAVE_DNSSD */ { "BrowseWebIF", &BrowseWebIF, CUPSD_VARTYPE_BOOLEAN }, { "Browsing", &Browsing, CUPSD_VARTYPE_BOOLEAN }, { "Classification", &Classification, CUPSD_VARTYPE_STRING }, { "ClassifyOverride", &ClassifyOverride, CUPSD_VARTYPE_BOOLEAN }, { "DefaultLanguage", &DefaultLanguage, CUPSD_VARTYPE_STRING }, { "DefaultLeaseDuration", &DefaultLeaseDuration, CUPSD_VARTYPE_TIME }, { "DefaultPaperSize", &DefaultPaperSize, CUPSD_VARTYPE_STRING }, { "DefaultPolicy", &DefaultPolicy, CUPSD_VARTYPE_STRING }, { "DefaultShared", &DefaultShared, CUPSD_VARTYPE_BOOLEAN }, { "DirtyCleanInterval", &DirtyCleanInterval, CUPSD_VARTYPE_TIME }, #ifdef HAVE_DNSSD { "DNSSDHostName", &DNSSDHostName, CUPSD_VARTYPE_STRING }, #endif /* HAVE_DNSSD */ { "ErrorPolicy", &ErrorPolicy, CUPSD_VARTYPE_STRING }, { "FilterLimit", &FilterLimit, CUPSD_VARTYPE_INTEGER }, { "FilterNice", &FilterNice, CUPSD_VARTYPE_INTEGER }, #ifdef HAVE_GSSAPI { "GSSServiceName", &GSSServiceName, CUPSD_VARTYPE_STRING }, #endif /* HAVE_GSSAPI */ #ifdef HAVE_ONDEMAND { "IdleExitTimeout", &IdleExitTimeout, CUPSD_VARTYPE_TIME }, #endif /* HAVE_ONDEMAND */ { "JobKillDelay", &JobKillDelay, CUPSD_VARTYPE_TIME }, { "JobRetryLimit", &JobRetryLimit, CUPSD_VARTYPE_INTEGER }, { "JobRetryInterval", &JobRetryInterval, CUPSD_VARTYPE_TIME }, { "KeepAlive", &KeepAlive, CUPSD_VARTYPE_BOOLEAN }, #ifdef HAVE_LAUNCHD { "LaunchdTimeout", &IdleExitTimeout, CUPSD_VARTYPE_TIME }, #endif /* HAVE_LAUNCHD */ { "LimitRequestBody", &MaxRequestSize, CUPSD_VARTYPE_INTEGER }, { "LogDebugHistory", &LogDebugHistory, CUPSD_VARTYPE_INTEGER }, { "MaxActiveJobs", &MaxActiveJobs, CUPSD_VARTYPE_INTEGER }, { "MaxClients", &MaxClients, CUPSD_VARTYPE_INTEGER }, { "MaxClientsPerHost", &MaxClientsPerHost, CUPSD_VARTYPE_INTEGER }, { "MaxCopies", &MaxCopies, CUPSD_VARTYPE_INTEGER }, { "MaxEvents", &MaxEvents, CUPSD_VARTYPE_INTEGER }, { "MaxHoldTime", &MaxHoldTime, CUPSD_VARTYPE_TIME }, { "MaxJobs", &MaxJobs, CUPSD_VARTYPE_INTEGER }, { "MaxJobsPerPrinter", &MaxJobsPerPrinter, CUPSD_VARTYPE_INTEGER }, { "MaxJobsPerUser", &MaxJobsPerUser, CUPSD_VARTYPE_INTEGER }, { "MaxJobTime", &MaxJobTime, CUPSD_VARTYPE_TIME }, { "MaxLeaseDuration", &MaxLeaseDuration, CUPSD_VARTYPE_TIME }, { "MaxLogSize", &MaxLogSize, CUPSD_VARTYPE_INTEGER }, { "MaxRequestSize", &MaxRequestSize, CUPSD_VARTYPE_INTEGER }, { "MaxSubscriptions", &MaxSubscriptions, CUPSD_VARTYPE_INTEGER }, { "MaxSubscriptionsPerJob", &MaxSubscriptionsPerJob, CUPSD_VARTYPE_INTEGER }, { "MaxSubscriptionsPerPrinter",&MaxSubscriptionsPerPrinter, CUPSD_VARTYPE_INTEGER }, { "MaxSubscriptionsPerUser", &MaxSubscriptionsPerUser, CUPSD_VARTYPE_INTEGER }, { "MultipleOperationTimeout", &MultipleOperationTimeout, CUPSD_VARTYPE_TIME }, { "PageLogFormat", &PageLogFormat, CUPSD_VARTYPE_STRING }, { "PreserveJobFiles", &JobFiles, CUPSD_VARTYPE_TIME }, { "PreserveJobHistory", &JobHistory, CUPSD_VARTYPE_TIME }, { "ReloadTimeout", &ReloadTimeout, CUPSD_VARTYPE_TIME }, { "RootCertDuration", &RootCertDuration, CUPSD_VARTYPE_TIME }, { "ServerAdmin", &ServerAdmin, CUPSD_VARTYPE_STRING }, { "ServerName", &ServerName, CUPSD_VARTYPE_STRING }, { "StrictConformance", &StrictConformance, CUPSD_VARTYPE_BOOLEAN }, { "Timeout", &Timeout, CUPSD_VARTYPE_TIME }, { "WebInterface", &WebInterface, CUPSD_VARTYPE_BOOLEAN } }; static const cupsd_var_t cupsfiles_vars[] = { { "AccessLog", &AccessLog, CUPSD_VARTYPE_STRING }, { "CacheDir", &CacheDir, CUPSD_VARTYPE_STRING }, { "ConfigFilePerm", &ConfigFilePerm, CUPSD_VARTYPE_PERM }, #ifdef HAVE_TLS { "CreateSelfSignedCerts", &CreateSelfSignedCerts, CUPSD_VARTYPE_BOOLEAN }, #endif /* HAVE_TLS */ { "DataDir", &DataDir, CUPSD_VARTYPE_STRING }, { "DocumentRoot", &DocumentRoot, CUPSD_VARTYPE_STRING }, { "ErrorLog", &ErrorLog, CUPSD_VARTYPE_STRING }, { "FileDevice", &FileDevice, CUPSD_VARTYPE_BOOLEAN }, { "LogFilePerm", &LogFilePerm, CUPSD_VARTYPE_PERM }, { "PageLog", &PageLog, CUPSD_VARTYPE_STRING }, { "Printcap", &Printcap, CUPSD_VARTYPE_STRING }, { "RemoteRoot", &RemoteRoot, CUPSD_VARTYPE_STRING }, { "RequestRoot", &RequestRoot, CUPSD_VARTYPE_STRING }, { "ServerBin", &ServerBin, CUPSD_VARTYPE_PATHNAME }, #ifdef HAVE_TLS { "ServerKeychain", &ServerKeychain, CUPSD_VARTYPE_PATHNAME }, #endif /* HAVE_TLS */ { "ServerRoot", &ServerRoot, CUPSD_VARTYPE_PATHNAME }, { "StateDir", &StateDir, CUPSD_VARTYPE_STRING }, { "SyncOnClose", &SyncOnClose, CUPSD_VARTYPE_BOOLEAN }, #ifdef HAVE_AUTHORIZATION_H { "SystemGroupAuthKey", &SystemGroupAuthKey, CUPSD_VARTYPE_STRING }, #endif /* HAVE_AUTHORIZATION_H */ { "TempDir", &TempDir, CUPSD_VARTYPE_PATHNAME } }; static int default_auth_type = CUPSD_AUTH_AUTO; /* Default AuthType, if not specified */ static const unsigned ones[4] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff }; static const unsigned zeros[4] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000 }; /* * Local functions... */ static http_addrlist_t *get_address(const char *value, int defport); static int get_addr_and_mask(const char *value, unsigned *ip, unsigned *mask); static void mime_error_cb(void *ctx, const char *message); static int parse_aaa(cupsd_location_t *loc, char *line, char *value, int linenum); static int parse_fatal_errors(const char *s); static int parse_groups(const char *s, int linenum); static int parse_protocols(const char *s); static int parse_variable(const char *filename, int linenum, const char *line, const char *value, size_t num_vars, const cupsd_var_t *vars); static int read_cupsd_conf(cups_file_t *fp); static int read_cups_files_conf(cups_file_t *fp); static int read_location(cups_file_t *fp, char *name, int linenum); static int read_policy(cups_file_t *fp, char *name, int linenum); static void set_policy_defaults(cupsd_policy_t *pol); /* * 'cupsdAddAlias()' - Add a host alias. */ void cupsdAddAlias(cups_array_t *aliases, /* I - Array of aliases */ const char *name) /* I - Name to add */ { cupsd_alias_t *a; /* New alias */ size_t namelen; /* Length of name */ namelen = strlen(name); if ((a = (cupsd_alias_t *)malloc(sizeof(cupsd_alias_t) + namelen)) == NULL) return; a->namelen = namelen; memcpy(a->name, name, namelen + 1); /* OK since a->name is allocated */ cupsArrayAdd(aliases, a); } /* * 'cupsdCheckPermissions()' - Fix the mode and ownership of a file or directory. */ int /* O - 0 on success, -1 on error, 1 on warning */ cupsdCheckPermissions( const char *filename, /* I - File/directory name */ const char *suffix, /* I - Additional file/directory name */ mode_t mode, /* I - Permissions */ uid_t user, /* I - Owner */ gid_t group, /* I - Group */ int is_dir, /* I - 1 = directory, 0 = file */ int create_dir) /* I - 1 = create directory, -1 = create w/o logging, 0 = not */ { int dir_created = 0; /* Did we create a directory? */ char pathname[1024]; /* File name with prefix */ struct stat fileinfo; /* Stat buffer */ int is_symlink; /* Is "filename" a symlink? */ /* * Prepend the given root to the filename before testing it... */ if (suffix) { snprintf(pathname, sizeof(pathname), "%s/%s", filename, suffix); filename = pathname; } /* * See if we can stat the file/directory... */ if (lstat(filename, &fileinfo)) { if (errno == ENOENT && create_dir) { if (create_dir > 0) cupsdLogMessage(CUPSD_LOG_DEBUG, "Creating missing directory \"%s\"", filename); if (mkdir(filename, mode)) { if (create_dir > 0) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create directory \"%s\" - %s", filename, strerror(errno)); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to create directory \"%s\" - %s", filename, strerror(errno)); #else syslog(LOG_ERR, "Unable to create directory \"%s\" - %s", filename, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (-1); } dir_created = 1; fileinfo.st_mode = mode | S_IFDIR; } else return (create_dir ? -1 : 1); } if ((is_symlink = S_ISLNK(fileinfo.st_mode)) != 0) { if (stat(filename, &fileinfo)) { cupsdLogMessage(CUPSD_LOG_ERROR, "\"%s\" is a bad symlink - %s", filename, strerror(errno)); return (-1); } } /* * Make sure it's a regular file or a directory as needed... */ if (!dir_created && !is_dir && !S_ISREG(fileinfo.st_mode)) { cupsdLogMessage(CUPSD_LOG_ERROR, "\"%s\" is not a regular file.", filename); return (-1); } if (!dir_created && is_dir && !S_ISDIR(fileinfo.st_mode)) { if (create_dir >= 0) cupsdLogMessage(CUPSD_LOG_ERROR, "\"%s\" is not a directory.", filename); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "\"%s\" is not a directory.", filename); #else syslog(LOG_ERR, "\"%s\" is not a directory.", filename); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (-1); } /* * If the filename is a symlink, do not change permissions (STR #2937)... */ if (is_symlink) return (0); /* * Fix owner, group, and mode as needed... */ if (dir_created || fileinfo.st_uid != user || fileinfo.st_gid != group) { if (create_dir >= 0) cupsdLogMessage(CUPSD_LOG_DEBUG, "Repairing ownership of \"%s\"", filename); if (chown(filename, user, group) && !getuid()) { if (create_dir >= 0) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to change ownership of \"%s\" - %s", filename, strerror(errno)); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to change ownership of \"%s\" - %s", filename, strerror(errno)); #else syslog(LOG_ERR, "Unable to change ownership of \"%s\" - %s", filename, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (1); } } if (dir_created || (fileinfo.st_mode & 07777) != mode) { if (create_dir >= 0) cupsdLogMessage(CUPSD_LOG_DEBUG, "Repairing access permissions of \"%s\"", filename); if (chmod(filename, mode)) { if (create_dir >= 0) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to change permissions of \"%s\" - %s", filename, strerror(errno)); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to change permissions of \"%s\" - %s", filename, strerror(errno)); #else syslog(LOG_ERR, "Unable to change permissions of \"%s\" - %s", filename, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (1); } } /* * Everything is OK... */ return (0); } /* * 'cupsdDefaultAuthType()' - Get the default AuthType. * * When the default_auth_type is "auto", this function tries to get the GSS * credentials for the server. If that succeeds we use Kerberos authentication, * otherwise we do a fallback to Basic authentication against the local user * accounts. */ int /* O - Default AuthType value */ cupsdDefaultAuthType(void) { #ifdef HAVE_GSSAPI OM_uint32 major_status, /* Major status code */ minor_status; /* Minor status code */ gss_name_t server_name; /* Server name */ gss_buffer_desc token = GSS_C_EMPTY_BUFFER; /* Service name token */ char buf[1024]; /* Service name buffer */ #endif /* HAVE_GSSAPI */ /* * If we have already determined the correct default AuthType, use it... */ if (default_auth_type != CUPSD_AUTH_AUTO) return (default_auth_type); #ifdef HAVE_GSSAPI # ifdef __APPLE__ /* * If the weak-linked GSSAPI/Kerberos library is not present, don't try * to use it... */ if (&gss_init_sec_context == NULL) return (default_auth_type = CUPSD_AUTH_BASIC); # endif /* __APPLE__ */ /* * Try to obtain the server's GSS credentials (GSSServiceName@servername). If * that fails we must use Basic... */ snprintf(buf, sizeof(buf), "%s@%s", GSSServiceName, ServerName); token.value = buf; token.length = strlen(buf); server_name = GSS_C_NO_NAME; major_status = gss_import_name(&minor_status, &token, GSS_C_NT_HOSTBASED_SERVICE, &server_name); memset(&token, 0, sizeof(token)); if (GSS_ERROR(major_status)) { cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "cupsdDefaultAuthType: gss_import_name(%s) failed", buf); return (default_auth_type = CUPSD_AUTH_BASIC); } major_status = gss_display_name(&minor_status, server_name, &token, NULL); if (GSS_ERROR(major_status)) { cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "cupsdDefaultAuthType: gss_display_name(%s) failed", buf); return (default_auth_type = CUPSD_AUTH_BASIC); } cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdDefaultAuthType: Attempting to acquire Kerberos " "credentials for %s...", (char *)token.value); ServerCreds = GSS_C_NO_CREDENTIAL; major_status = gss_acquire_cred(&minor_status, server_name, GSS_C_INDEFINITE, GSS_C_NO_OID_SET, GSS_C_ACCEPT, &ServerCreds, NULL, NULL); if (GSS_ERROR(major_status)) { cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "cupsdDefaultAuthType: gss_acquire_cred(%s) failed", (char *)token.value); gss_release_name(&minor_status, &server_name); gss_release_buffer(&minor_status, &token); return (default_auth_type = CUPSD_AUTH_BASIC); } cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdDefaultAuthType: Kerberos credentials acquired " "successfully for %s.", (char *)token.value); gss_release_name(&minor_status, &server_name); gss_release_buffer(&minor_status, &token); HaveServerCreds = 1; return (default_auth_type = CUPSD_AUTH_NEGOTIATE); #else /* * No Kerberos support compiled in so just use Basic all the time... */ return (default_auth_type = CUPSD_AUTH_BASIC); #endif /* HAVE_GSSAPI */ } /* * 'cupsdFreeAliases()' - Free all of the alias entries. */ void cupsdFreeAliases(cups_array_t *aliases) /* I - Array of aliases */ { cupsd_alias_t *a; /* Current alias */ for (a = (cupsd_alias_t *)cupsArrayFirst(aliases); a; a = (cupsd_alias_t *)cupsArrayNext(aliases)) free(a); cupsArrayDelete(aliases); } /* * 'cupsdReadConfiguration()' - Read the cupsd.conf file. */ int /* O - 1 on success, 0 otherwise */ cupsdReadConfiguration(void) { int i; /* Looping var */ cups_file_t *fp; /* Configuration file */ int status; /* Return status */ char temp[1024], /* Temporary buffer */ mimedir[1024], /* MIME directory */ *slash; /* Directory separator */ cups_lang_t *language; /* Language */ struct passwd *user; /* Default user */ struct group *group; /* Default group */ char *old_serverroot, /* Old ServerRoot */ *old_requestroot; /* Old RequestRoot */ int old_remote_port; /* Old RemotePort */ const char *tmpdir; /* TMPDIR environment variable */ struct stat tmpinfo; /* Temporary directory info */ cupsd_policy_t *p; /* Policy */ /* * Save the old root paths... */ old_serverroot = NULL; cupsdSetString(&old_serverroot, ServerRoot); old_requestroot = NULL; cupsdSetString(&old_requestroot, RequestRoot); /* * Reset the server configuration data... */ cupsdDeleteAllLocations(); cupsdDeleteAllListeners(); old_remote_port = RemotePort; RemotePort = 0; /* * String options... */ cupsdFreeAliases(ServerAlias); ServerAlias = NULL; cupsdClearString(&ServerName); cupsdClearString(&ServerAdmin); cupsdSetString(&ServerBin, CUPS_SERVERBIN); cupsdSetString(&RequestRoot, CUPS_REQUESTS); cupsdSetString(&CacheDir, CUPS_CACHEDIR); cupsdSetString(&DataDir, CUPS_DATADIR); cupsdSetString(&DocumentRoot, CUPS_DOCROOT); cupsdSetString(&AccessLog, CUPS_LOGDIR "/access_log"); cupsdClearString(&ErrorLog); cupsdSetString(&PageLog, CUPS_LOGDIR "/page_log"); cupsdSetString(&PageLogFormat, "%p %u %j %T %P %C %{job-billing} " "%{job-originating-host-name} %{job-name} %{media} %{sides}"); cupsdSetString(&Printcap, CUPS_DEFAULT_PRINTCAP); cupsdSetString(&RemoteRoot, "remroot"); cupsdSetStringf(&ServerHeader, "CUPS/%d.%d IPP/2.1", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR); cupsdSetString(&StateDir, CUPS_STATEDIR); if (!strcmp(CUPS_DEFAULT_PRINTCAP, "/etc/printers.conf")) PrintcapFormat = PRINTCAP_SOLARIS; else if (!strcmp(CUPS_DEFAULT_PRINTCAP, "/Library/Preferences/org.cups.printers.plist")) PrintcapFormat = PRINTCAP_PLIST; else PrintcapFormat = PRINTCAP_BSD; strlcpy(temp, ConfigurationFile, sizeof(temp)); if ((slash = strrchr(temp, '/')) != NULL) *slash = '\0'; cupsdSetString(&ServerRoot, temp); cupsdClearString(&Classification); ClassifyOverride = 0; #ifdef HAVE_TLS # if defined HAVE_GNUTLS || defined HAVE_OPENSSL cupsdSetString(&ServerKeychain, "ssl"); # else cupsdSetString(&ServerKeychain, "/Library/Keychains/System.keychain"); # endif /* HAVE_GNUTLS || HAVE_OPENSSL */ _httpTLSSetOptions(_HTTP_TLS_NONE, _HTTP_TLS_1_0, _HTTP_TLS_MAX); #endif /* HAVE_TLS */ language = cupsLangDefault(); if (!strcmp(language->language, "C") || !strcmp(language->language, "POSIX")) cupsdSetString(&DefaultLanguage, "en"); else cupsdSetString(&DefaultLanguage, language->language); cupsdClearString(&DefaultPaperSize); cupsArrayDelete(ReadyPaperSizes); ReadyPaperSizes = NULL; cupsdSetString(&TempDir, NULL); #ifdef HAVE_GSSAPI cupsdSetString(&GSSServiceName, CUPS_DEFAULT_GSSSERVICENAME); if (HaveServerCreds) { OM_uint32 minor_status; /* Minor status code */ gss_release_cred(&minor_status, &ServerCreds); HaveServerCreds = 0; } ServerCreds = GSS_C_NO_CREDENTIAL; #endif /* HAVE_GSSAPI */ /* * Find the default user... */ if ((user = getpwnam(CUPS_DEFAULT_USER)) != NULL) User = user->pw_uid; else { /* * Use the (historical) NFS nobody user ID (-2 as a 16-bit twos- * complement number...) */ User = 65534; } endpwent(); /* * Find the default group... */ group = getgrnam(CUPS_DEFAULT_GROUP); endgrent(); if (group) Group = group->gr_gid; else { /* * Fallback to group "nobody"... */ group = getgrnam("nobody"); endgrent(); if (group) Group = group->gr_gid; else { /* * Use the (historical) NFS nobody group ID (-2 as a 16-bit twos- * complement number...) */ Group = 65534; } } /* * Numeric options... */ AccessLogLevel = CUPSD_ACCESSLOG_ACTIONS; ConfigFilePerm = CUPS_DEFAULT_CONFIG_FILE_PERM; FatalErrors = parse_fatal_errors(CUPS_DEFAULT_FATAL_ERRORS); default_auth_type = CUPSD_AUTH_BASIC; #ifdef HAVE_TLS CreateSelfSignedCerts = TRUE; DefaultEncryption = HTTP_ENCRYPT_REQUIRED; #endif /* HAVE_TLS */ DirtyCleanInterval = DEFAULT_KEEPALIVE; JobKillDelay = DEFAULT_TIMEOUT; JobRetryLimit = 5; JobRetryInterval = 300; FileDevice = FALSE; FilterLevel = 0; FilterLimit = 0; FilterNice = 0; HostNameLookups = FALSE; KeepAlive = TRUE; LogDebugHistory = 200; LogFilePerm = CUPS_DEFAULT_LOG_FILE_PERM; LogFileGroup = Group; LogLevel = CUPSD_LOG_WARN; LogTimeFormat = CUPSD_TIME_STANDARD; MaxClients = 100; MaxClientsPerHost = 0; MaxLogSize = 1024 * 1024; MaxRequestSize = 0; MultipleOperationTimeout = 900; NumSystemGroups = 0; ReloadTimeout = DEFAULT_KEEPALIVE; RootCertDuration = 300; Sandboxing = CUPSD_SANDBOXING_STRICT; StrictConformance = FALSE; #ifdef CUPS_DEFAULT_SYNC_ON_CLOSE SyncOnClose = TRUE; #else SyncOnClose = FALSE; #endif /* CUPS_DEFAULT_SYNC_ON_CLOSE */ Timeout = 900; WebInterface = CUPS_DEFAULT_WEBIF; BrowseLocalProtocols = parse_protocols(CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS); BrowseWebIF = FALSE; Browsing = CUPS_DEFAULT_BROWSING; DefaultShared = CUPS_DEFAULT_DEFAULT_SHARED; #ifdef HAVE_DNSSD cupsdSetString(&DNSSDSubTypes, "_cups,_print,_universal"); cupsdClearString(&DNSSDHostName); #endif /* HAVE_DNSSD */ cupsdSetString(&ErrorPolicy, CUPS_DEFAULT_ERROR_POLICY); JobHistory = DEFAULT_HISTORY; JobFiles = DEFAULT_FILES; JobAutoPurge = 0; MaxHoldTime = 0; MaxJobs = 500; MaxActiveJobs = 0; MaxJobsPerUser = 0; MaxJobsPerPrinter = 0; MaxJobTime = 3 * 60 * 60; /* 3 hours */ MaxCopies = CUPS_DEFAULT_MAX_COPIES; cupsdDeleteAllPolicies(); cupsdClearString(&DefaultPolicy); #ifdef HAVE_AUTHORIZATION_H cupsdSetString(&SystemGroupAuthKey, CUPS_DEFAULT_SYSTEM_AUTHKEY); #endif /* HAVE_AUTHORIZATION_H */ MaxSubscriptions = 100; MaxSubscriptionsPerJob = 0; MaxSubscriptionsPerPrinter = 0; MaxSubscriptionsPerUser = 0; DefaultLeaseDuration = 86400; MaxLeaseDuration = 0; #ifdef HAVE_ONDEMAND IdleExitTimeout = 60; #endif /* HAVE_ONDEMAND */ /* * Setup environment variables... */ cupsdInitEnv(); /* * Read the cups-files.conf file... */ if ((fp = cupsFileOpen(CupsFilesFile, "r")) != NULL) { status = read_cups_files_conf(fp); cupsFileClose(fp); if (!status) { if (TestConfigFile) printf("\"%s\" contains errors.\n", CupsFilesFile); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to read \"%s\" due to errors.", CupsFilesFile); #else syslog(LOG_LPR, "Unable to read \"%s\" due to errors.", CupsFilesFile); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (0); } } else if (errno == ENOENT) cupsdLogMessage(CUPSD_LOG_INFO, "No %s, using defaults.", CupsFilesFile); else { fprintf(stderr, "Unable to read \"%s\" - %s\n", CupsFilesFile, strerror(errno)); return (0); } if (!ErrorLog) cupsdSetString(&ErrorLog, CUPS_LOGDIR "/error_log"); /* * Read the cupsd.conf file... */ if ((fp = cupsFileOpen(ConfigurationFile, "r")) == NULL) { #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to open \"%s\" - %s", ConfigurationFile, strerror(errno)); #else syslog(LOG_LPR, "Unable to open \"%s\" - %s", ConfigurationFile, strerror(errno)); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (0); } status = read_cupsd_conf(fp); cupsFileClose(fp); if (!status) { if (TestConfigFile) printf("\"%s\" contains errors.\n", ConfigurationFile); else #ifdef HAVE_SYSTEMD_SD_JOURNAL_H sd_journal_print(LOG_ERR, "Unable to read \"%s\" due to errors.", ConfigurationFile); #else syslog(LOG_LPR, "Unable to read \"%s\" due to errors.", ConfigurationFile); #endif /* HAVE_SYSTEMD_SD_JOURNAL_H */ return (0); } RunUser = getuid(); cupsdLogMessage(CUPSD_LOG_INFO, "Remote access is %s.", RemotePort ? "enabled" : "disabled"); if (!RemotePort) BrowseLocalProtocols = 0; /* Disable sharing - no remote access */ /* * See if the ServerName is an IP address... */ if (ServerName) { if (!ServerAlias) ServerAlias = cupsArrayNew(NULL, NULL); cupsdAddAlias(ServerAlias, ServerName); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", ServerName); } else { if (gethostname(temp, sizeof(temp))) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to get hostname: %s", strerror(errno)); strlcpy(temp, "localhost", sizeof(temp)); } cupsdSetString(&ServerName, temp); if (!ServerAlias) ServerAlias = cupsArrayNew(NULL, NULL); cupsdAddAlias(ServerAlias, temp); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", temp); if (HostNameLookups) { struct hostent *host; /* Host entry to get FQDN */ if ((host = gethostbyname(temp)) != NULL) { if (_cups_strcasecmp(temp, host->h_name)) { cupsdSetString(&ServerName, host->h_name); cupsdAddAlias(ServerAlias, host->h_name); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", host->h_name); } if (host->h_aliases) { for (i = 0; host->h_aliases[i]; i ++) if (_cups_strcasecmp(temp, host->h_aliases[i])) { cupsdAddAlias(ServerAlias, host->h_aliases[i]); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", host->h_aliases[i]); } } } } /* * Make sure we have the base hostname added as an alias, too! */ if ((slash = strchr(temp, '.')) != NULL) { *slash = '\0'; cupsdAddAlias(ServerAlias, temp); cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", temp); } } for (slash = ServerName; isdigit(*slash & 255) || *slash == '.'; slash ++); ServerNameIsIP = !*slash; /* * Make sure ServerAdmin is initialized... */ if (!ServerAdmin) cupsdSetStringf(&ServerAdmin, "root@%s", ServerName); /* * Use the default system group if none was supplied in cupsd.conf... */ if (NumSystemGroups == 0) { if (!parse_groups(CUPS_DEFAULT_SYSTEM_GROUPS, 0)) { /* * Find the group associated with GID 0... */ group = getgrgid(0); endgrent(); if (group != NULL) cupsdSetString(&SystemGroups[0], group->gr_name); else cupsdSetString(&SystemGroups[0], "unknown"); SystemGroupIDs[0] = 0; NumSystemGroups = 1; } } /* * Make sure ConfigFilePerm and LogFilePerm have sane values... */ ConfigFilePerm &= 0664; LogFilePerm &= 0664; /* * Open the system log for cupsd if necessary... */ if (!LogStderr) { if (!strcmp(AccessLog, "stderr")) cupsdSetString(&AccessLog, "syslog"); if (!strcmp(ErrorLog, "stderr")) cupsdSetString(&ErrorLog, "syslog"); if (!strcmp(PageLog, "stderr")) cupsdSetString(&PageLog, "syslog"); } #if defined(HAVE_VSYSLOG) && !defined(HAVE_ASL_H) && !defined(HAVE_SYSTEMD_SD_JOURNAL_H) if (!strcmp(AccessLog, "syslog") || !strcmp(ErrorLog, "syslog") || !strcmp(PageLog, "syslog")) openlog("cupsd", LOG_PID | LOG_NOWAIT | LOG_NDELAY, LOG_LPR); #endif /* HAVE_VSYSLOG && !HAVE_ASL_H && !HAVE_SYSTEMD_SD_JOURNAL_H */ /* * Log the configuration file that was used... */ cupsdLogMessage(CUPSD_LOG_INFO, "Loaded configuration file \"%s\"", ConfigurationFile); /* * Validate the Group and SystemGroup settings - they cannot be the same, * otherwise the CGI programs will be able to authenticate as root without * a password! */ if (!RunUser) { for (i = 0; i < NumSystemGroups; i ++) if (Group == SystemGroupIDs[i]) break; if (i < NumSystemGroups) { /* * Log the error and reset the group to a safe value... */ cupsdLogMessage(CUPSD_LOG_ERROR, "Group and SystemGroup cannot use the same groups."); if (FatalErrors & (CUPSD_FATAL_CONFIG | CUPSD_FATAL_PERMISSIONS)) return (0); cupsdLogMessage(CUPSD_LOG_INFO, "Resetting Group to \"nobody\"..."); group = getgrnam("nobody"); endgrent(); if (group != NULL) Group = group->gr_gid; else { /* * Use the (historical) NFS nobody group ID (-2 as a 16-bit twos- * complement number...) */ Group = 65534; } } } /* * Check that we have at least one listen/port line; if not, report this * as an error and exit! */ if (cupsArrayCount(Listeners) == 0) { /* * No listeners! */ cupsdLogMessage(CUPSD_LOG_EMERG, "No valid Listen or Port lines were found in the " "configuration file."); /* * Commit suicide... */ cupsdEndProcess(getpid(), 0); } /* * Set the default locale using the language and charset... */ cupsdSetStringf(&DefaultLocale, "%s.UTF-8", DefaultLanguage); /* * Update all relative filenames to include the full path from ServerRoot... */ if (DocumentRoot[0] != '/') cupsdSetStringf(&DocumentRoot, "%s/%s", ServerRoot, DocumentRoot); if (RequestRoot[0] != '/') cupsdSetStringf(&RequestRoot, "%s/%s", ServerRoot, RequestRoot); if (ServerBin[0] != '/') cupsdSetStringf(&ServerBin, "%s/%s", ServerRoot, ServerBin); if (StateDir[0] != '/') cupsdSetStringf(&StateDir, "%s/%s", ServerRoot, StateDir); if (CacheDir[0] != '/') cupsdSetStringf(&CacheDir, "%s/%s", ServerRoot, CacheDir); #ifdef HAVE_TLS if (!_cups_strcasecmp(ServerKeychain, "internal")) cupsdClearString(&ServerKeychain); else if (ServerKeychain[0] != '/') cupsdSetStringf(&ServerKeychain, "%s/%s", ServerRoot, ServerKeychain); cupsdLogMessage(CUPSD_LOG_DEBUG, "Using keychain \"%s\" for server name \"%s\".", ServerKeychain ? ServerKeychain : "internal", ServerName); if (!CreateSelfSignedCerts) cupsdLogMessage(CUPSD_LOG_DEBUG, "Self-signed TLS certificate generation is disabled."); cupsSetServerCredentials(ServerKeychain, ServerName, CreateSelfSignedCerts); #endif /* HAVE_TLS */ /* * Make sure that directories and config files are owned and * writable by the user and group in the cupsd.conf file... */ snprintf(temp, sizeof(temp), "%s/rss", CacheDir); if ((cupsdCheckPermissions(RequestRoot, NULL, 0710, RunUser, Group, 1, 1) < 0 || cupsdCheckPermissions(CacheDir, NULL, 0770, RunUser, Group, 1, 1) < 0 || cupsdCheckPermissions(temp, NULL, 0775, RunUser, Group, 1, 1) < 0 || cupsdCheckPermissions(StateDir, NULL, 0755, RunUser, Group, 1, 1) < 0 || #if CUPS_SNAP cupsdCheckPermissions(StateDir, "certs", 0711, RunUser, 0, 1, 1) < 0 || #else cupsdCheckPermissions(StateDir, "certs", RunUser ? 0711 : 0511, User, SystemGroupIDs[0], 1, 1) < 0 || #endif /* CUPS_SNAP */ cupsdCheckPermissions(ServerRoot, NULL, 0755, RunUser, Group, 1, 0) < 0 || cupsdCheckPermissions(ServerRoot, "ppd", 0755, RunUser, Group, 1, 1) < 0 || cupsdCheckPermissions(ServerRoot, "ssl", 0700, RunUser, Group, 1, 0) < 0 || cupsdCheckPermissions(ConfigurationFile, NULL, ConfigFilePerm, RunUser, Group, 0, 0) < 0 || cupsdCheckPermissions(CupsFilesFile, NULL, ConfigFilePerm, RunUser, Group, 0, 0) < 0 || cupsdCheckPermissions(ServerRoot, "classes.conf", 0600, RunUser, Group, 0, 0) < 0 || cupsdCheckPermissions(ServerRoot, "printers.conf", 0600, RunUser, Group, 0, 0) < 0 || cupsdCheckPermissions(ServerRoot, "passwd.md5", 0600, User, Group, 0, 0) < 0) && (FatalErrors & CUPSD_FATAL_PERMISSIONS)) return (0); /* * Update TempDir to the default if it hasn't been set already... */ #ifdef __APPLE__ if (TempDir && !RunUser && (!strncmp(TempDir, "/private/tmp", 12) || !strncmp(TempDir, "/tmp", 4))) { cupsdLogMessage(CUPSD_LOG_ERROR, "Cannot use %s for TempDir.", TempDir); cupsdClearString(&TempDir); } #endif /* __APPLE__ */ if (!TempDir) { #ifdef __APPLE__ if ((tmpdir = getenv("TMPDIR")) != NULL && strncmp(tmpdir, "/private/tmp", 12) && strncmp(tmpdir, "/tmp", 4)) #else if ((tmpdir = getenv("TMPDIR")) != NULL) #endif /* __APPLE__ */ { /* * TMPDIR is defined, see if it is OK for us to use... */ if (stat(tmpdir, &tmpinfo)) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to access TMPDIR (%s): %s", tmpdir, strerror(errno)); else if (!S_ISDIR(tmpinfo.st_mode)) cupsdLogMessage(CUPSD_LOG_ERROR, "TMPDIR (%s) is not a directory.", tmpdir); else if ((tmpinfo.st_uid != User || !(tmpinfo.st_mode & S_IWUSR)) && (tmpinfo.st_gid != Group || !(tmpinfo.st_mode & S_IWGRP)) && !(tmpinfo.st_mode & S_IWOTH)) cupsdLogMessage(CUPSD_LOG_ERROR, "TMPDIR (%s) has the wrong permissions.", tmpdir); else cupsdSetString(&TempDir, tmpdir); } } if (!TempDir) { cupsdLogMessage(CUPSD_LOG_INFO, "Using default TempDir of %s/tmp...", RequestRoot); cupsdSetStringf(&TempDir, "%s/tmp", RequestRoot); } setenv("TMPDIR", TempDir, 1); /* * Make sure the temporary directory has the right permissions... */ if (!strncmp(TempDir, RequestRoot, strlen(RequestRoot)) || access(TempDir, 0)) { /* * Update ownership and permissions if the CUPS temp directory * is under the spool directory or does not exist... */ if (cupsdCheckPermissions(TempDir, NULL, 01770, RunUser, Group, 1, 1) < 0 && (FatalErrors & CUPSD_FATAL_PERMISSIONS)) return (0); } /* * Update environment variables... */ cupsdUpdateEnv(); /* * Validate the default error policy... */ if (strcmp(ErrorPolicy, "retry-current-job") && strcmp(ErrorPolicy, "abort-job") && strcmp(ErrorPolicy, "retry-job") && strcmp(ErrorPolicy, "stop-printer")) { cupsdLogMessage(CUPSD_LOG_ALERT, "Invalid ErrorPolicy \"%s\", resetting to \"stop-printer\".", ErrorPolicy); cupsdSetString(&ErrorPolicy, "stop-printer"); } /* * Update default paper size setting as needed... */ if (!DefaultPaperSize) { #ifdef HAVE_LIBPAPER char *paper_result; /* Paper size name from libpaper */ if ((paper_result = systempapername()) != NULL) { cupsdSetString(&DefaultPaperSize, paper_result); free(paper_result); } else #endif /* HAVE_LIBPAPER */ if (!DefaultLanguage || !_cups_strcasecmp(DefaultLanguage, "C") || !_cups_strcasecmp(DefaultLanguage, "POSIX") || !_cups_strcasecmp(DefaultLanguage, "en") || !_cups_strncasecmp(DefaultLanguage, "en.", 3) || !_cups_strncasecmp(DefaultLanguage, "en_US", 5) || !_cups_strncasecmp(DefaultLanguage, "en_CA", 5) || !_cups_strncasecmp(DefaultLanguage, "fr_CA", 5)) { /* * These are the only locales that will default to "letter" size... */ cupsdSetString(&DefaultPaperSize, "Letter"); } else cupsdSetString(&DefaultPaperSize, "A4"); } if (!ReadyPaperSizes) { // Build default list of common sizes for North America and worldwide... if (!strcasecmp(DefaultPaperSize, "Letter")) ReadyPaperSizes = _cupsArrayNewStrings("Letter,Legal,Tabloid,4x6,Env10", ','); else if (!strcasecmp(DefaultPaperSize, "A4")) ReadyPaperSizes = _cupsArrayNewStrings("A4,A3,A5,A6,EnvDL", ','); else ReadyPaperSizes = _cupsArrayNewStrings(DefaultPaperSize, ','); } /* * Update classification setting as needed... */ if (Classification && !_cups_strcasecmp(Classification, "none")) cupsdClearString(&Classification); if (Classification) cupsdLogMessage(CUPSD_LOG_INFO, "Security set to \"%s\"", Classification); /* * Check the MaxClients setting, and then allocate memory for it... */ if (MaxClients > (MaxFDs / 3) || MaxClients <= 0) { if (MaxClients > 0) cupsdLogMessage(CUPSD_LOG_INFO, "MaxClients limited to 1/3 (%d) of the file descriptor " "limit (%d)...", MaxFDs / 3, MaxFDs); MaxClients = MaxFDs / 3; } cupsdLogMessage(CUPSD_LOG_INFO, "Configured for up to %d clients.", MaxClients); /* * Check the MaxActiveJobs setting; limit to 1/3 the available * file descriptors, since we need a pipe for each job... */ if (MaxActiveJobs > (MaxFDs / 3)) MaxActiveJobs = MaxFDs / 3; /* * Update the MaxClientsPerHost value, as needed... */ if (MaxClientsPerHost <= 0) MaxClientsPerHost = MaxClients; if (MaxClientsPerHost > MaxClients) MaxClientsPerHost = MaxClients; cupsdLogMessage(CUPSD_LOG_INFO, "Allowing up to %d client connections per host.", MaxClientsPerHost); /* * Update the default policy, as needed... */ if (DefaultPolicy) DefaultPolicyPtr = cupsdFindPolicy(DefaultPolicy); else DefaultPolicyPtr = NULL; if (!DefaultPolicyPtr) { cupsd_location_t *po; /* New policy operation */ if (DefaultPolicy) cupsdLogMessage(CUPSD_LOG_ERROR, "Default policy \"%s\" not found.", DefaultPolicy); cupsdSetString(&DefaultPolicy, "default"); if ((DefaultPolicyPtr = cupsdFindPolicy("default")) != NULL) cupsdLogMessage(CUPSD_LOG_INFO, "Using policy \"default\" as the default."); else { cupsdLogMessage(CUPSD_LOG_INFO, "Creating CUPS default administrative policy:"); DefaultPolicyPtr = p = cupsdAddPolicy("default"); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, "JobPrivateAccess default"); cupsdAddString(&(p->job_access), "@OWNER"); cupsdAddString(&(p->job_access), "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_INFO, "JobPrivateValues default"); cupsdAddString(&(p->job_attrs), "job-name"); cupsdAddString(&(p->job_attrs), "job-originating-host-name"); cupsdAddString(&(p->job_attrs), "job-originating-user-name"); cupsdAddString(&(p->job_attrs), "phone"); cupsdLogMessage(CUPSD_LOG_INFO, "SubscriptionPrivateAccess default"); cupsdAddString(&(p->sub_access), "@OWNER"); cupsdAddString(&(p->sub_access), "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_INFO, "SubscriptionPrivateValues default"); cupsdAddString(&(p->job_attrs), "notify-events"); cupsdAddString(&(p->job_attrs), "notify-pull-method"); cupsdAddString(&(p->job_attrs), "notify-recipient-uri"); cupsdAddString(&(p->job_attrs), "notify-subscriber-user-name"); cupsdAddString(&(p->job_attrs), "notify-user-data"); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, IPP_CREATE_JOB); cupsdAddPolicyOp(p, po, IPP_PRINT_JOB); cupsdAddPolicyOp(p, po, IPP_PRINT_URI); cupsdAddPolicyOp(p, po, IPP_VALIDATE_JOB); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, IPP_SEND_DOCUMENT); cupsdAddPolicyOp(p, po, IPP_SEND_URI); cupsdAddPolicyOp(p, po, IPP_HOLD_JOB); cupsdAddPolicyOp(p, po, IPP_RELEASE_JOB); cupsdAddPolicyOp(p, po, IPP_RESTART_JOB); cupsdAddPolicyOp(p, po, IPP_PURGE_JOBS); cupsdAddPolicyOp(p, po, IPP_SET_JOB_ATTRIBUTES); cupsdAddPolicyOp(p, po, IPP_CREATE_JOB_SUBSCRIPTION); cupsdAddPolicyOp(p, po, IPP_RENEW_SUBSCRIPTION); cupsdAddPolicyOp(p, po, IPP_CANCEL_SUBSCRIPTION); cupsdAddPolicyOp(p, po, IPP_GET_NOTIFICATIONS); cupsdAddPolicyOp(p, po, IPP_REPROCESS_JOB); cupsdAddPolicyOp(p, po, IPP_CANCEL_CURRENT_JOB); cupsdAddPolicyOp(p, po, IPP_SUSPEND_CURRENT_JOB); cupsdAddPolicyOp(p, po, IPP_RESUME_JOB); cupsdAddPolicyOp(p, po, IPP_CANCEL_MY_JOBS); cupsdAddPolicyOp(p, po, IPP_CLOSE_JOB); cupsdAddPolicyOp(p, po, CUPS_MOVE_JOB); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, "Require user @OWNER @SYSTEM"); po->level = CUPSD_AUTH_USER; cupsdAddName(po, "@OWNER"); cupsdAddName(po, "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, CUPS_GET_DOCUMENT); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, "AuthType Default"); po->type = CUPSD_AUTH_DEFAULT; cupsdLogMessage(CUPSD_LOG_INFO, "Require user @OWNER @SYSTEM"); po->level = CUPSD_AUTH_USER; cupsdAddName(po, "@OWNER"); cupsdAddName(po, "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, IPP_PAUSE_PRINTER); cupsdAddPolicyOp(p, po, IPP_RESUME_PRINTER); cupsdAddPolicyOp(p, po, IPP_SET_PRINTER_ATTRIBUTES); cupsdAddPolicyOp(p, po, IPP_ENABLE_PRINTER); cupsdAddPolicyOp(p, po, IPP_DISABLE_PRINTER); cupsdAddPolicyOp(p, po, IPP_PAUSE_PRINTER_AFTER_CURRENT_JOB); cupsdAddPolicyOp(p, po, IPP_HOLD_NEW_JOBS); cupsdAddPolicyOp(p, po, IPP_RELEASE_HELD_NEW_JOBS); cupsdAddPolicyOp(p, po, IPP_DEACTIVATE_PRINTER); cupsdAddPolicyOp(p, po, IPP_ACTIVATE_PRINTER); cupsdAddPolicyOp(p, po, IPP_RESTART_PRINTER); cupsdAddPolicyOp(p, po, IPP_SHUTDOWN_PRINTER); cupsdAddPolicyOp(p, po, IPP_STARTUP_PRINTER); cupsdAddPolicyOp(p, po, IPP_PROMOTE_JOB); cupsdAddPolicyOp(p, po, IPP_SCHEDULE_JOB_AFTER); cupsdAddPolicyOp(p, po, IPP_CANCEL_JOBS); cupsdAddPolicyOp(p, po, CUPS_ADD_PRINTER); cupsdAddPolicyOp(p, po, CUPS_DELETE_PRINTER); cupsdAddPolicyOp(p, po, CUPS_ADD_CLASS); cupsdAddPolicyOp(p, po, CUPS_DELETE_CLASS); cupsdAddPolicyOp(p, po, CUPS_ACCEPT_JOBS); cupsdAddPolicyOp(p, po, CUPS_REJECT_JOBS); cupsdAddPolicyOp(p, po, CUPS_SET_DEFAULT); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, "AuthType Default"); po->type = CUPSD_AUTH_DEFAULT; cupsdLogMessage(CUPSD_LOG_INFO, "Require user @SYSTEM"); po->level = CUPSD_AUTH_USER; cupsdAddName(po, "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, IPP_CANCEL_JOB); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, "Require user @OWNER " CUPS_DEFAULT_PRINTOPERATOR_AUTH); po->level = CUPSD_AUTH_USER; cupsdAddName(po, "@OWNER"); cupsdAddName(po, CUPS_DEFAULT_PRINTOPERATOR_AUTH); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, CUPS_AUTHENTICATE_JOB); cupsdLogMessage(CUPSD_LOG_INFO, "AuthType Default"); po->type = CUPSD_AUTH_DEFAULT; cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, "Require user @OWNER " CUPS_DEFAULT_PRINTOPERATOR_AUTH); po->level = CUPSD_AUTH_USER; cupsdAddName(po, "@OWNER"); cupsdAddName(po, CUPS_DEFAULT_PRINTOPERATOR_AUTH); cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); po = cupsdAddPolicyOp(p, NULL, IPP_ANY_OPERATION); cupsdLogMessage(CUPSD_LOG_INFO, "Order Deny,Allow"); po->order_type = CUPSD_AUTH_ALLOW; cupsdLogMessage(CUPSD_LOG_INFO, ""); cupsdLogMessage(CUPSD_LOG_INFO, ""); } } if (LogLevel >= CUPSD_LOG_DEBUG2) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReadConfiguration: NumPolicies=%d", cupsArrayCount(Policies)); for (i = 0, p = (cupsd_policy_t *)cupsArrayFirst(Policies); p; i ++, p = (cupsd_policy_t *)cupsArrayNext(Policies)) { int j; /* Looping var */ cupsd_location_t *loc; /* Current location */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReadConfiguration: Policies[%d]=\"%s\"", i, p->name); for (j = 0, loc = (cupsd_location_t *)cupsArrayFirst(p->ops); loc; j ++, loc = (cupsd_location_t *)cupsArrayNext(p->ops)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReadConfiguration: ops[%d]=%s", j, ippOpString(loc->op)); } } } /* * If we are doing a full reload or the server root has changed, flush * the jobs, printers, etc. and start from scratch... */ if (NeedReload == RELOAD_ALL || old_remote_port != RemotePort || !old_serverroot || !ServerRoot || strcmp(old_serverroot, ServerRoot) || !old_requestroot || !RequestRoot || strcmp(old_requestroot, RequestRoot)) { mime_type_t *type; /* Current type */ char mimetype[MIME_MAX_SUPER + MIME_MAX_TYPE]; /* MIME type name */ cupsdLogMessage(CUPSD_LOG_INFO, "Full reload is required."); /* * Free all memory... */ cupsdDeleteAllSubscriptions(); cupsdFreeAllJobs(); cupsdDeleteAllPrinters(); DefaultPrinter = NULL; if (MimeDatabase != NULL) mimeDelete(MimeDatabase); if (NumMimeTypes) { for (i = 0; i < NumMimeTypes; i ++) _cupsStrFree(MimeTypes[i]); free(MimeTypes); } /* * Read the MIME type and conversion database... */ snprintf(temp, sizeof(temp), "%s/filter", ServerBin); snprintf(mimedir, sizeof(mimedir), "%s/mime", DataDir); MimeDatabase = mimeNew(); mimeSetErrorCallback(MimeDatabase, mime_error_cb, NULL); _cupsRWInit(&MimeDatabase->lock); _cupsRWLockWrite(&MimeDatabase->lock); MimeDatabase = mimeLoadTypes(MimeDatabase, mimedir); MimeDatabase = mimeLoadTypes(MimeDatabase, ServerRoot); MimeDatabase = mimeLoadFilters(MimeDatabase, mimedir, temp); MimeDatabase = mimeLoadFilters(MimeDatabase, ServerRoot, temp); _cupsRWUnlock(&MimeDatabase->lock); if (!MimeDatabase) { cupsdLogMessage(CUPSD_LOG_EMERG, "Unable to load MIME database from \"%s\" or \"%s\".", mimedir, ServerRoot); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } cupsdLogMessage(CUPSD_LOG_INFO, "Loaded MIME database from \"%s\" and \"%s\": %d types, " "%d filters...", mimedir, ServerRoot, mimeNumTypes(MimeDatabase), mimeNumFilters(MimeDatabase)); /* * Create a list of MIME types for the document-format-supported * attribute... */ NumMimeTypes = mimeNumTypes(MimeDatabase); if (!mimeType(MimeDatabase, "application", "octet-stream")) NumMimeTypes ++; if ((MimeTypes = calloc((size_t)NumMimeTypes, sizeof(const char *))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for %d MIME types.", NumMimeTypes); NumMimeTypes = 0; } else { for (i = 0, type = mimeFirstType(MimeDatabase); type; i ++, type = mimeNextType(MimeDatabase)) { snprintf(mimetype, sizeof(mimetype), "%s/%s", type->super, type->type); MimeTypes[i] = _cupsStrAlloc(mimetype); } if (i < NumMimeTypes) MimeTypes[i] = _cupsStrAlloc("application/octet-stream"); } if (LogLevel == CUPSD_LOG_DEBUG2) { mime_filter_t *filter; /* Current filter */ for (type = mimeFirstType(MimeDatabase); type; type = mimeNextType(MimeDatabase)) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReadConfiguration: type %s/%s", type->super, type->type); for (filter = mimeFirstFilter(MimeDatabase); filter; filter = mimeNextFilter(MimeDatabase)) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdReadConfiguration: filter %s/%s to %s/%s %d %s", filter->src->super, filter->src->type, filter->dst->super, filter->dst->type, filter->cost, filter->filter); } /* * Load banners... */ snprintf(temp, sizeof(temp), "%s/banners", DataDir); cupsdLoadBanners(temp); /* * Load printers and classes... */ cupsdLoadAllPrinters(); cupsdLoadAllClasses(); cupsdCreateCommonData(); /* * Update the printcap file as needed... */ if (Printcap && *Printcap && access(Printcap, 0)) cupsdWritePrintcap(); /* * Load queued jobs... */ cupsdLoadAllJobs(); /* * Load subscriptions... */ cupsdLoadAllSubscriptions(); cupsdLogMessage(CUPSD_LOG_INFO, "Full reload complete."); } else { /* * Not a full reload, so recreate the common printer attributes... */ cupsdCreateCommonData(); /* * Update all jobs as needed... */ cupsdUpdateJobs(); /* * Update all printers as needed... */ cupsdUpdatePrinters(); cupsdMarkDirty(CUPSD_DIRTY_PRINTCAP); cupsdLogMessage(CUPSD_LOG_INFO, "Partial reload complete."); } /* * Reset the reload state... */ NeedReload = RELOAD_NONE; cupsdClearString(&old_serverroot); cupsdClearString(&old_requestroot); return (1); } /* * 'get_address()' - Get an address + port number from a line. */ static http_addrlist_t * /* O - Pointer to list if address good, NULL if bad */ get_address(const char *value, /* I - Value string */ int defport) /* I - Default port */ { char buffer[1024], /* Hostname + port number buffer */ defpname[255], /* Default port name */ *hostname, /* Hostname or IP */ *portname; /* Port number or name */ http_addrlist_t *addrlist; /* Address list */ /* * Check for an empty value... */ if (!*value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad (empty) address."); return (NULL); } /* * Grab a hostname and port number; if there is no colon and the port name * is only digits, then we have a port number by itself... */ strlcpy(buffer, value, sizeof(buffer)); if ((portname = strrchr(buffer, ':')) != NULL && !strchr(portname, ']')) { *portname++ = '\0'; hostname = buffer; } else { for (portname = buffer; isdigit(*portname & 255); portname ++); if (*portname) { /* * Use the default port... */ snprintf(defpname, sizeof(defpname), "%d", defport); portname = defpname; hostname = buffer; } else { /* * The buffer contains just a port number... */ portname = buffer; hostname = NULL; } } if (hostname && !strcmp(hostname, "*")) hostname = NULL; /* * Now lookup the address using httpAddrGetList()... */ if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) cupsdLogMessage(CUPSD_LOG_ERROR, "Hostname lookup for \"%s\" failed.", hostname ? hostname : "(nil)"); return (addrlist); } /* * 'get_addr_and_mask()' - Get an IP address and netmask. */ static int /* O - 1 on success, 0 on failure */ get_addr_and_mask(const char *value, /* I - String from config file */ unsigned *ip, /* O - Address value */ unsigned *mask) /* O - Mask value */ { int i, j, /* Looping vars */ family, /* Address family */ ipcount; /* Count of fields in address */ unsigned ipval; /* Value */ const char *maskval, /* Pointer to start of mask value */ *ptr, /* Pointer into value */ *ptr2; /* ... */ /* * Get the address... */ ip[0] = ip[1] = ip[2] = ip[3] = 0x00000000; mask[0] = mask[1] = mask[2] = mask[3] = 0xffffffff; if ((maskval = strchr(value, '/')) != NULL) maskval ++; else maskval = value + strlen(value); #ifdef AF_INET6 /* * Check for an IPv6 address... */ if (*value == '[') { /* * Parse hexadecimal IPv6/IPv4 address... */ family = AF_INET6; for (i = 0, ptr = value + 1; *ptr && i < 8; i ++) { if (*ptr == ']') break; else if (!strncmp(ptr, "::", 2)) { for (ptr2 = strchr(ptr + 2, ':'), j = 0; ptr2; ptr2 = strchr(ptr2 + 1, ':'), j ++); i = 6 - j; ptr += 2; } else if (isdigit(*ptr & 255) && strchr(ptr + 1, '.') && i >= 6) { /* * Read IPv4 dotted quad... */ unsigned val[4] = { 0, 0, 0, 0 }; /* IPv4 address values */ ipcount = sscanf(ptr, "%u.%u.%u.%u", val + 0, val + 1, val + 2, val + 3); /* * Range check the IP numbers... */ for (i = 0; i < ipcount; i ++) if (val[i] > 255) return (0); /* * Merge everything into a 32-bit IPv4 address in ip[3]... */ ip[3] = (val[0] << 24) | (val[1] << 16) | (val[2] << 8) | val[3]; if (ipcount < 4) mask[3] = (0xffffffff << (32 - 8 * ipcount)) & 0xffffffff; /* * If the leading words are all 0's then this is an IPv4 address... */ if (!val[0] && !val[1] && !val[2]) family = AF_INET; while (isdigit(*ptr & 255) || *ptr == '.') ptr ++; break; } else if (isxdigit(*ptr & 255)) { ipval = strtoul(ptr, (char **)&ptr, 16); if (*ptr == ':' && ptr[1] != ':') ptr ++; if (ipval > 0xffff) return (0); if (i & 1) ip[i / 2] |= ipval; else ip[i / 2] |= ipval << 16; } else return (0); } if (*ptr != ']') return (0); ptr ++; if (*ptr && *ptr != '/') return (0); } else #endif /* AF_INET6 */ { /* * Parse dotted-decimal IPv4 address... */ unsigned val[4] = { 0, 0, 0, 0 }; /* IPv4 address values */ family = AF_INET; ipcount = sscanf(value, "%u.%u.%u.%u", val + 0, val + 1, val + 2, val + 3); /* * Range check the IP numbers... */ for (i = 0; i < ipcount; i ++) if (val[i] > 255) return (0); /* * Merge everything into a 32-bit IPv4 address in ip[3]... */ ip[3] = (val[0] << 24) | (val[1] << 16) | (val[2] << 8) | val[3]; if (ipcount < 4) mask[3] = (0xffffffff << (32 - 8 * ipcount)) & 0xffffffff; } if (*maskval) { /* * Get the netmask value(s)... */ memset(mask, 0, sizeof(unsigned) * 4); if (strchr(maskval, '.')) { /* * Get dotted-decimal mask... */ if (family != AF_INET) return (0); if (sscanf(maskval, "%u.%u.%u.%u", mask + 0, mask + 1, mask + 2, mask + 3) != 4) return (0); mask[3] |= (mask[0] << 24) | (mask[1] << 16) | (mask[2] << 8); mask[0] = mask[1] = mask[2] = 0; } else { /* * Get address/bits format... */ i = atoi(maskval); #ifdef AF_INET6 if (family == AF_INET6) { if (i > 128) return (0); i = 128 - i; if (i <= 96) mask[0] = 0xffffffff; else mask[0] = (0xffffffff << (i - 96)) & 0xffffffff; if (i <= 64) mask[1] = 0xffffffff; else if (i >= 96) mask[1] = 0; else mask[1] = (0xffffffff << (i - 64)) & 0xffffffff; if (i <= 32) mask[2] = 0xffffffff; else if (i >= 64) mask[2] = 0; else mask[2] = (0xffffffff << (i - 32)) & 0xffffffff; if (i == 0) mask[3] = 0xffffffff; else if (i >= 32) mask[3] = 0; else mask[3] = (0xffffffff << i) & 0xffffffff; } else #endif /* AF_INET6 */ { if (i > 32) return (0); mask[0] = 0xffffffff; mask[1] = 0xffffffff; mask[2] = 0xffffffff; if (i < 32) mask[3] = (0xffffffff << (32 - i)) & 0xffffffff; else mask[3] = 0xffffffff; } } } cupsdLogMessage(CUPSD_LOG_DEBUG2, "get_addr_and_mask(value=\"%s\", " "ip=[%08x:%08x:%08x:%08x], mask=[%08x:%08x:%08x:%08x])", value, ip[0], ip[1], ip[2], ip[3], mask[0], mask[1], mask[2], mask[3]); /* * Check for a valid netmask; no fallback like in CUPS 1.1.x! */ if ((ip[0] & ~mask[0]) != 0 || (ip[1] & ~mask[1]) != 0 || (ip[2] & ~mask[2]) != 0 || (ip[3] & ~mask[3]) != 0) return (0); return (1); } /* * 'mime_error_cb()' - Log a MIME error. */ static void mime_error_cb(void *ctx, /* I - Context pointer (unused) */ const char *message) /* I - Message */ { (void)ctx; cupsdLogMessage(CUPSD_LOG_ERROR, "%s", message); } /* * 'parse_aaa()' - Parse authentication, authorization, and access control lines. */ static int /* O - 1 on success, 0 on failure */ parse_aaa(cupsd_location_t *loc, /* I - Location */ char *line, /* I - Line from file */ char *value, /* I - Start of value data */ int linenum) /* I - Current line number */ { char *valptr; /* Pointer into value */ unsigned ip[4], /* IP address components */ mask[4]; /* IP netmask components */ if (!_cups_strcasecmp(line, "Encryption")) { /* * "Encryption xxx" - set required encryption level... */ if (!_cups_strcasecmp(value, "never")) loc->encryption = HTTP_ENCRYPT_NEVER; else if (!_cups_strcasecmp(value, "always")) { cupsdLogMessage(CUPSD_LOG_ERROR, "Encryption value \"%s\" on line %d of %s is invalid in this " "context. Using \"required\" instead.", value, linenum, ConfigurationFile); loc->encryption = HTTP_ENCRYPT_REQUIRED; } else if (!_cups_strcasecmp(value, "required")) loc->encryption = HTTP_ENCRYPT_REQUIRED; else if (!_cups_strcasecmp(value, "ifrequested")) loc->encryption = HTTP_ENCRYPT_IF_REQUESTED; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Encryption value %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } } else if (!_cups_strcasecmp(line, "Order")) { /* * "Order Deny,Allow" or "Order Allow,Deny"... */ if (!_cups_strncasecmp(value, "deny", 4)) loc->order_type = CUPSD_AUTH_ALLOW; else if (!_cups_strncasecmp(value, "allow", 5)) loc->order_type = CUPSD_AUTH_DENY; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Order value %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } } else if (!_cups_strcasecmp(line, "Allow") || !_cups_strcasecmp(line, "Deny")) { /* * Allow [From] host/ip... * Deny [From] host/ip... */ while (*value) { if (!_cups_strncasecmp(value, "from", 4)) { /* * Strip leading "from"... */ value += 4; while (_cups_isspace(*value)) value ++; if (!*value) break; } /* * Find the end of the value... */ for (valptr = value; *valptr && !_cups_isspace(*valptr); valptr ++); while (_cups_isspace(*valptr)) *valptr++ = '\0'; /* * Figure out what form the allow/deny address takes: * * All * None * *.domain.com * .domain.com * host.domain.com * nnn.* * nnn.nnn.* * nnn.nnn.nnn.* * nnn.nnn.nnn.nnn * nnn.nnn.nnn.nnn/mm * nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm */ if (!_cups_strcasecmp(value, "all")) { /* * All hosts... */ if (!_cups_strcasecmp(line, "Allow")) cupsdAddIPMask(&(loc->allow), zeros, zeros); else cupsdAddIPMask(&(loc->deny), zeros, zeros); } else if (!_cups_strcasecmp(value, "none")) { /* * No hosts... */ if (!_cups_strcasecmp(line, "Allow")) cupsdAddIPMask(&(loc->allow), ones, zeros); else cupsdAddIPMask(&(loc->deny), ones, zeros); } #ifdef AF_INET6 else if (value[0] == '*' || value[0] == '.' || (!isdigit(value[0] & 255) && value[0] != '[')) #else else if (value[0] == '*' || value[0] == '.' || !isdigit(value[0] & 255)) #endif /* AF_INET6 */ { /* * Host or domain name... */ if (value[0] == '*') value ++; if (!_cups_strcasecmp(line, "Allow")) cupsdAddNameMask(&(loc->allow), value); else cupsdAddNameMask(&(loc->deny), value); } else { /* * One of many IP address forms... */ if (!get_addr_and_mask(value, ip, mask)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad netmask value %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } if (!_cups_strcasecmp(line, "Allow")) cupsdAddIPMask(&(loc->allow), ip, mask); else cupsdAddIPMask(&(loc->deny), ip, mask); } /* * Advance to next value... */ value = valptr; } } else if (!_cups_strcasecmp(line, "AuthType")) { /* * AuthType {none,basic,digest,basicdigest,negotiate,default} */ if (!_cups_strcasecmp(value, "none")) { loc->type = CUPSD_AUTH_NONE; loc->level = CUPSD_AUTH_ANON; } else if (!_cups_strcasecmp(value, "basic")) { loc->type = CUPSD_AUTH_BASIC; if (loc->level == CUPSD_AUTH_ANON) loc->level = CUPSD_AUTH_USER; } else if (!_cups_strcasecmp(value, "default")) { loc->type = CUPSD_AUTH_DEFAULT; if (loc->level == CUPSD_AUTH_ANON) loc->level = CUPSD_AUTH_USER; } else if (!_cups_strcasecmp(value, "negotiate")) { loc->type = CUPSD_AUTH_NEGOTIATE; if (loc->level == CUPSD_AUTH_ANON) loc->level = CUPSD_AUTH_USER; } else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown authorization type %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } } else if (!_cups_strcasecmp(line, "AuthClass")) { /* * AuthClass anonymous, user, system, group */ if (!_cups_strcasecmp(value, "anonymous")) { loc->type = CUPSD_AUTH_NONE; loc->level = CUPSD_AUTH_ANON; cupsdLogMessage(CUPSD_LOG_WARN, "\"AuthClass %s\" is deprecated; consider removing " "it from line %d.", value, linenum); } else if (!_cups_strcasecmp(value, "user")) { loc->level = CUPSD_AUTH_USER; cupsdLogMessage(CUPSD_LOG_WARN, "\"AuthClass %s\" is deprecated; consider using " "\"Require valid-user\" on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(value, "group")) { loc->level = CUPSD_AUTH_GROUP; cupsdLogMessage(CUPSD_LOG_WARN, "\"AuthClass %s\" is deprecated; consider using " "\"Require user @groupname\" on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(value, "system")) { loc->level = CUPSD_AUTH_GROUP; cupsdAddName(loc, "@SYSTEM"); cupsdLogMessage(CUPSD_LOG_WARN, "\"AuthClass %s\" is deprecated; consider using " "\"Require user @SYSTEM\" on line %d of %s.", value, linenum, ConfigurationFile); } else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown authorization class %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } } else if (!_cups_strcasecmp(line, "AuthGroupName")) { cupsdAddName(loc, value); cupsdLogMessage(CUPSD_LOG_WARN, "\"AuthGroupName %s\" directive is deprecated; consider " "using \"Require user @%s\" on line %d of %s.", value, value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "Require")) { /* * Apache synonym for AuthClass and AuthGroupName... * * Get initial word: * * Require valid-user * Require group names * Require user names */ for (valptr = value; !_cups_isspace(*valptr) && *valptr; valptr ++); if (*valptr) *valptr++ = '\0'; if (!_cups_strcasecmp(value, "valid-user") || !_cups_strcasecmp(value, "user")) loc->level = CUPSD_AUTH_USER; else if (!_cups_strcasecmp(value, "group")) loc->level = CUPSD_AUTH_GROUP; else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown Require type %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } /* * Get the list of names from the line... */ for (value = valptr; *value;) { while (_cups_isspace(*value)) value ++; #ifdef HAVE_AUTHORIZATION_H if (!strncmp(value, "@AUTHKEY(", 9)) { /* * Grab "@AUTHKEY(name)" value... */ for (valptr = value + 9; *valptr != ')' && *valptr; valptr ++); if (*valptr) *valptr++ = '\0'; } else #endif /* HAVE_AUTHORIZATION_H */ if (*value == '\"' || *value == '\'') { /* * Grab quoted name... */ for (valptr = value + 1; *valptr != *value && *valptr; valptr ++); value ++; } else { /* * Grab literal name. */ for (valptr = value; !_cups_isspace(*valptr) && *valptr; valptr ++); } if (*valptr) *valptr++ = '\0'; cupsdAddName(loc, value); for (value = valptr; _cups_isspace(*value); value ++); } } else if (!_cups_strcasecmp(line, "Satisfy")) { if (!_cups_strcasecmp(value, "all")) loc->satisfy = CUPSD_AUTH_SATISFY_ALL; else if (!_cups_strcasecmp(value, "any")) loc->satisfy = CUPSD_AUTH_SATISFY_ANY; else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown Satisfy value %s on line %d of %s.", value, linenum, ConfigurationFile); return (0); } } else return (0); return (1); } /* * 'parse_fatal_errors()' - Parse FatalErrors values in a string. */ static int /* O - FatalErrors bits */ parse_fatal_errors(const char *s) /* I - FatalErrors string */ { int fatal; /* FatalErrors bits */ char value[1024], /* Value string */ *valstart, /* Pointer into value */ *valend; /* End of value */ /* * Empty FatalErrors line yields NULL pointer... */ if (!s) return (CUPSD_FATAL_NONE); /* * Loop through the value string,... */ strlcpy(value, s, sizeof(value)); fatal = CUPSD_FATAL_NONE; for (valstart = value; *valstart;) { /* * Get the current space/comma-delimited kind name... */ for (valend = valstart; *valend; valend ++) if (_cups_isspace(*valend) || *valend == ',') break; if (*valend) *valend++ = '\0'; /* * Add the error to the bitmask... */ if (!_cups_strcasecmp(valstart, "all")) fatal = CUPSD_FATAL_ALL; else if (!_cups_strcasecmp(valstart, "browse")) fatal |= CUPSD_FATAL_BROWSE; else if (!_cups_strcasecmp(valstart, "-browse")) fatal &= ~CUPSD_FATAL_BROWSE; else if (!_cups_strcasecmp(valstart, "config")) fatal |= CUPSD_FATAL_CONFIG; else if (!_cups_strcasecmp(valstart, "-config")) fatal &= ~CUPSD_FATAL_CONFIG; else if (!_cups_strcasecmp(valstart, "listen")) fatal |= CUPSD_FATAL_LISTEN; else if (!_cups_strcasecmp(valstart, "-listen")) fatal &= ~CUPSD_FATAL_LISTEN; else if (!_cups_strcasecmp(valstart, "log")) fatal |= CUPSD_FATAL_LOG; else if (!_cups_strcasecmp(valstart, "-log")) fatal &= ~CUPSD_FATAL_LOG; else if (!_cups_strcasecmp(valstart, "permissions")) fatal |= CUPSD_FATAL_PERMISSIONS; else if (!_cups_strcasecmp(valstart, "-permissions")) fatal &= ~CUPSD_FATAL_PERMISSIONS; else if (_cups_strcasecmp(valstart, "none")) cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown FatalErrors kind \"%s\" ignored.", valstart); for (valstart = valend; *valstart; valstart ++) if (!_cups_isspace(*valstart) || *valstart != ',') break; } return (fatal); } /* * 'parse_groups()' - Parse system group names in a string. */ static int /* O - 1 on success, 0 on failure */ parse_groups(const char *s, /* I - Space-delimited groups */ int linenum) /* I - Line number in cups-files.conf */ { int status; /* Return status */ char value[1024], /* Value string */ *valstart, /* Pointer into value */ *valend, /* End of value */ quote; /* Quote character */ struct group *group; /* Group */ /* * Make a copy of the string and parse out the groups... */ strlcpy(value, s, sizeof(value)); status = 1; valstart = value; while (*valstart && NumSystemGroups < MAX_SYSTEM_GROUPS) { if (*valstart == '\'' || *valstart == '\"') { /* * Scan quoted name... */ quote = *valstart++; for (valend = valstart; *valend; valend ++) if (*valend == quote) break; } else { /* * Scan space or comma-delimited name... */ for (valend = valstart; *valend; valend ++) if (_cups_isspace(*valend) || *valend == ',') break; } if (*valend) *valend++ = '\0'; group = getgrnam(valstart); if (group) { cupsdSetString(SystemGroups + NumSystemGroups, valstart); SystemGroupIDs[NumSystemGroups] = group->gr_gid; NumSystemGroups ++; } else { if (linenum) cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown SystemGroup \"%s\" on line %d of %s.", valstart, linenum, CupsFilesFile); else cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown default SystemGroup \"%s\".", valstart); status = 0; } endgrent(); valstart = valend; while (*valstart == ',' || _cups_isspace(*valstart)) valstart ++; } return (status); } /* * 'parse_protocols()' - Parse browse protocols in a string. */ static int /* O - Browse protocol bits */ parse_protocols(const char *s) /* I - Space-delimited protocols */ { int protocols; /* Browse protocol bits */ char value[1024], /* Value string */ *valstart, /* Pointer into value */ *valend; /* End of value */ /* * Empty protocol line yields NULL pointer... */ if (!s) return (0); /* * Loop through the value string,... */ strlcpy(value, s, sizeof(value)); protocols = 0; for (valstart = value; *valstart;) { /* * Get the current space/comma-delimited protocol name... */ for (valend = valstart; *valend; valend ++) if (_cups_isspace(*valend) || *valend == ',') break; if (*valend) *valend++ = '\0'; /* * Add the protocol to the bitmask... */ if (!_cups_strcasecmp(valstart, "dnssd") || !_cups_strcasecmp(valstart, "dns-sd") || !_cups_strcasecmp(valstart, "bonjour")) protocols |= BROWSE_DNSSD; else if (!_cups_strcasecmp(valstart, "all")) protocols |= BROWSE_ALL; else if (_cups_strcasecmp(valstart, "none")) cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown browse protocol \"%s\" ignored.", valstart); for (valstart = valend; *valstart; valstart ++) if (!_cups_isspace(*valstart) || *valstart != ',') break; } return (protocols); } /* * 'parse_variable()' - Parse a variable line. */ static int /* O - 1 on success, 0 on failure */ parse_variable( const char *filename, /* I - Name of configuration file */ int linenum, /* I - Line in configuration file */ const char *line, /* I - Line from configuration file */ const char *value, /* I - Value from configuration file */ size_t num_vars, /* I - Number of variables */ const cupsd_var_t *vars) /* I - Variables */ { size_t i; /* Looping var */ const cupsd_var_t *var; /* Variables */ char temp[1024]; /* Temporary string */ for (i = num_vars, var = vars; i; i --, var ++) if (!_cups_strcasecmp(line, var->name)) break; if (i == 0) { /* * Unknown directive! Output an error message and continue... */ if (!value) cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value for %s on line %d of %s.", line, linenum, filename); else cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown directive %s on line %d of %s.", line, linenum, filename); return (0); } switch (var->type) { case CUPSD_VARTYPE_INTEGER : if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing integer value for %s on line %d of %s.", line, linenum, filename); return (0); } else if (!isdigit(*value & 255)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad integer value for %s on line %d of %s.", line, linenum, filename); return (0); } else { int n; /* Number */ char *units; /* Units */ n = (int)strtol(value, &units, 0); if (units && *units) { if (tolower(units[0] & 255) == 'g') n *= 1024 * 1024 * 1024; else if (tolower(units[0] & 255) == 'm') n *= 1024 * 1024; else if (tolower(units[0] & 255) == 'k') n *= 1024; else if (tolower(units[0] & 255) == 't') n *= 262144; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown integer value for %s on line %d of %s.", line, linenum, filename); return (0); } } if (n < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad negative integer value for %s on line %d of " "%s.", line, linenum, filename); return (0); } else { *((int *)var->ptr) = n; } } break; case CUPSD_VARTYPE_PERM : if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing permissions value for %s on line %d of %s.", line, linenum, filename); return (0); } else if (!isdigit(*value & 255)) { /* TODO: Add chmod UGO syntax support */ cupsdLogMessage(CUPSD_LOG_ERROR, "Bad permissions value for %s on line %d of %s.", line, linenum, filename); return (0); } else { int n = (int)strtol(value, NULL, 8); /* Permissions value */ if (n < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad negative permissions value for %s on line %d of " "%s.", line, linenum, filename); return (0); } else { *((mode_t *)var->ptr) = (mode_t)n; } } break; case CUPSD_VARTYPE_TIME : if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing time interval value for %s on line %d of " "%s.", line, linenum, filename); return (0); } else if (!_cups_strncasecmp(line, "PreserveJob", 11) && (!_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "enabled") || !_cups_strcasecmp(value, "yes"))) { *((int *)var->ptr) = INT_MAX; } else if (!_cups_strcasecmp(value, "false") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "disabled") || !_cups_strcasecmp(value, "no")) { *((int *)var->ptr) = 0; } else if (!isdigit(*value & 255)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown time interval value for %s on line %d of " "%s.", line, linenum, filename); return (0); } else { double n; /* Number */ char *units; /* Units */ n = strtod(value, &units); if (units && *units) { if (tolower(units[0] & 255) == 'w') n *= 7 * 24 * 60 * 60; else if (tolower(units[0] & 255) == 'd') n *= 24 * 60 * 60; else if (tolower(units[0] & 255) == 'h') n *= 60 * 60; else if (tolower(units[0] & 255) == 'm') n *= 60; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown time interval value for %s on line " "%d of %s.", line, linenum, filename); return (0); } } if (n < 0.0 || n > INT_MAX) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad time value for %s on line %d of %s.", line, linenum, filename); return (0); } else { *((int *)var->ptr) = (int)n; } } break; case CUPSD_VARTYPE_BOOLEAN : if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing boolean value for %s on line %d of %s.", line, linenum, filename); return (0); } else if (!_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "enabled") || !_cups_strcasecmp(value, "yes") || atoi(value) != 0) { *((int *)var->ptr) = TRUE; } else if (!_cups_strcasecmp(value, "false") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "disabled") || !_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "0")) { *((int *)var->ptr) = FALSE; } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown boolean value %s on line %d of %s.", value, linenum, filename); return (0); } break; case CUPSD_VARTYPE_PATHNAME : if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing pathname value for %s on line %d of %s.", line, linenum, filename); return (0); } if (value[0] == '/') strlcpy(temp, value, sizeof(temp)); else snprintf(temp, sizeof(temp), "%s/%s", ServerRoot, value); if (access(temp, 0) && _cups_strcasecmp(value, "internal") && _cups_strcasecmp(line, "ServerKeychain")) { cupsdLogMessage(CUPSD_LOG_ERROR, "File or directory for \"%s %s\" on line %d of %s " "does not exist.", line, value, linenum, filename); return (0); } cupsdSetString((char **)var->ptr, temp); break; case CUPSD_VARTYPE_STRING : cupsdSetString((char **)var->ptr, value); break; } return (1); } /* * 'read_cupsd_conf()' - Read the cupsd.conf configuration file. */ static int /* O - 1 on success, 0 on failure */ read_cupsd_conf(cups_file_t *fp) /* I - File to read from */ { int linenum; /* Current line number */ char line[HTTP_MAX_BUFFER], /* Line from file */ temp[HTTP_MAX_BUFFER], /* Temporary buffer for value */ *value; /* Pointer to value */ http_addrlist_t *addrlist, /* Address list */ *addr; /* Current address */ /* * Loop through each line in the file... */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode the directive... */ if (!_cups_strcasecmp(line, " */ linenum = read_location(fp, value, linenum); if (linenum == 0) return (0); } else if (!_cups_strcasecmp(line, " */ linenum = read_policy(fp, value, linenum); if (linenum == 0) return (0); } else if (!_cups_strcasecmp(line, "FaxRetryInterval") && value) { JobRetryInterval = atoi(value); cupsdLogMessage(CUPSD_LOG_WARN, "FaxRetryInterval is deprecated; use " "JobRetryInterval on line %d of %s.", linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "FaxRetryLimit") && value) { JobRetryLimit = atoi(value); cupsdLogMessage(CUPSD_LOG_WARN, "FaxRetryLimit is deprecated; use " "JobRetryLimit on line %d of %s.", linenum, ConfigurationFile); } #ifdef HAVE_TLS else if (!_cups_strcasecmp(line, "SSLOptions")) { /* * SSLOptions [AllowRC4] [AllowSSL3] [AllowDH] [DenyCBC] [DenyTLS1.0] [None] */ int options = _HTTP_TLS_NONE,/* SSL/TLS options */ min_version = _HTTP_TLS_1_0, max_version = _HTTP_TLS_MAX; if (value) { char *start, /* Start of option */ *end; /* End of option */ for (start = value; *start; start = end) { /* * Find end of keyword... */ end = start; while (*end && !_cups_isspace(*end)) end ++; if (*end) *end++ = '\0'; /* * Compare... */ if (!_cups_strcasecmp(start, "AllowRC4")) options |= _HTTP_TLS_ALLOW_RC4; else if (!_cups_strcasecmp(start, "AllowSSL3")) min_version = _HTTP_TLS_SSL3; else if (!_cups_strcasecmp(start, "AllowDH")) options |= _HTTP_TLS_ALLOW_DH; else if (!_cups_strcasecmp(start, "DenyCBC")) options |= _HTTP_TLS_DENY_CBC; else if (!_cups_strcasecmp(start, "DenyTLS1.0")) min_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MaxTLS1.0")) max_version = _HTTP_TLS_1_0; else if (!_cups_strcasecmp(start, "MaxTLS1.1")) max_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MaxTLS1.2")) max_version = _HTTP_TLS_1_2; else if (!_cups_strcasecmp(start, "MaxTLS1.3")) max_version = _HTTP_TLS_1_3; else if (!_cups_strcasecmp(start, "MinTLS1.0")) min_version = _HTTP_TLS_1_0; else if (!_cups_strcasecmp(start, "MinTLS1.1")) min_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MinTLS1.2")) min_version = _HTTP_TLS_1_2; else if (!_cups_strcasecmp(start, "MinTLS1.3")) min_version = _HTTP_TLS_1_3; else if (!_cups_strcasecmp(start, "None")) options = _HTTP_TLS_NONE; else if (_cups_strcasecmp(start, "NoEmptyFragments")) cupsdLogMessage(CUPSD_LOG_WARN, "Unknown SSL option %s at line %d.", start, linenum); } } _httpTLSSetOptions(options, min_version, max_version); } #endif /* HAVE_TLS */ else if ((!_cups_strcasecmp(line, "Port") || !_cups_strcasecmp(line, "Listen") #ifdef HAVE_TLS || !_cups_strcasecmp(line, "SSLPort") || !_cups_strcasecmp(line, "SSLListen") #endif /* HAVE_TLS */ ) && value) { /* * Add listening address(es) to the list... */ cupsd_listener_t *lis; /* New listeners array */ /* * Get the address list... */ addrlist = get_address(value, IPP_PORT); if (!addrlist) { cupsdLogMessage(CUPSD_LOG_ERROR, "Bad %s address %s at line %d.", line, value, linenum); continue; } /* * Add each address... */ for (addr = addrlist; addr; addr = addr->next) { /* * See if this address is already present... */ for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); lis; lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) if (httpAddrEqual(&(addr->addr), &(lis->address)) && httpAddrPort(&(addr->addr)) == httpAddrPort(&(lis->address))) break; if (lis) { #ifdef HAVE_ONDEMAND if (!lis->on_demand) #endif /* HAVE_ONDEMAND */ { httpAddrString(&lis->address, temp, sizeof(temp)); cupsdLogMessage(CUPSD_LOG_WARN, "Duplicate listen address \"%s\" ignored.", temp); } continue; } /* * Allocate another listener... */ if (!Listeners) Listeners = cupsArrayNew(NULL, NULL); if (!Listeners) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate %s at line %d - %s.", line, linenum, strerror(errno)); break; } if ((lis = calloc(1, sizeof(cupsd_listener_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate %s at line %d - %s.", line, linenum, strerror(errno)); break; } cupsArrayAdd(Listeners, lis); /* * Copy the current address and log it... */ memcpy(&(lis->address), &(addr->addr), sizeof(lis->address)); lis->fd = -1; #ifdef HAVE_TLS if (!_cups_strcasecmp(line, "SSLPort") || !_cups_strcasecmp(line, "SSLListen")) lis->encryption = HTTP_ENCRYPT_ALWAYS; #endif /* HAVE_TLS */ httpAddrString(&lis->address, temp, sizeof(temp)); #ifdef AF_LOCAL if (lis->address.addr.sa_family == AF_LOCAL) cupsdLogMessage(CUPSD_LOG_INFO, "Listening to %s (Domain)", temp); else #endif /* AF_LOCAL */ cupsdLogMessage(CUPSD_LOG_INFO, "Listening to %s:%d (IPv%d)", temp, httpAddrPort(&(lis->address)), httpAddrFamily(&(lis->address)) == AF_INET ? 4 : 6); if (!httpAddrLocalhost(&(lis->address))) RemotePort = httpAddrPort(&(lis->address)); } /* * Free the list... */ httpAddrFreeList(addrlist); } else if (!_cups_strcasecmp(line, "BrowseProtocols") || !_cups_strcasecmp(line, "BrowseLocalProtocols")) { /* * "BrowseProtocols name [... name]" * "BrowseLocalProtocols name [... name]" */ int protocols = parse_protocols(value); if (protocols < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown browse protocol \"%s\" on line %d of %s.", value, linenum, ConfigurationFile); break; } BrowseLocalProtocols = protocols; } else if (!_cups_strcasecmp(line, "DefaultAuthType") && value) { /* * DefaultAuthType {basic,digest,basicdigest,negotiate} */ if (!_cups_strcasecmp(value, "none")) default_auth_type = CUPSD_AUTH_NONE; else if (!_cups_strcasecmp(value, "basic")) default_auth_type = CUPSD_AUTH_BASIC; else if (!_cups_strcasecmp(value, "negotiate")) default_auth_type = CUPSD_AUTH_NEGOTIATE; else if (!_cups_strcasecmp(value, "auto")) default_auth_type = CUPSD_AUTH_AUTO; else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown default authorization type %s on line %d of %s.", value, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } #ifdef HAVE_TLS else if (!_cups_strcasecmp(line, "DefaultEncryption")) { /* * DefaultEncryption {Never,IfRequested,Required} */ if (!value || !_cups_strcasecmp(value, "never")) DefaultEncryption = HTTP_ENCRYPT_NEVER; else if (!_cups_strcasecmp(value, "required")) DefaultEncryption = HTTP_ENCRYPT_REQUIRED; else if (!_cups_strcasecmp(value, "ifrequested")) DefaultEncryption = HTTP_ENCRYPT_IF_REQUESTED; else { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown default encryption %s on line %d of %s.", value, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } #endif /* HAVE_TLS */ else if (!_cups_strcasecmp(line, "HostNameLookups") && value) { /* * Do hostname lookups? */ if (!_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "false")) HostNameLookups = 0; else if (!_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true")) HostNameLookups = 1; else if (!_cups_strcasecmp(value, "double")) HostNameLookups = 2; else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown HostNameLookups %s on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "AccessLogLevel") && value) { /* * Amount of logging to do to access log... */ if (!_cups_strcasecmp(value, "all")) AccessLogLevel = CUPSD_ACCESSLOG_ALL; else if (!_cups_strcasecmp(value, "actions")) AccessLogLevel = CUPSD_ACCESSLOG_ACTIONS; else if (!_cups_strcasecmp(value, "config")) AccessLogLevel = CUPSD_ACCESSLOG_CONFIG; else if (!_cups_strcasecmp(value, "none")) AccessLogLevel = CUPSD_ACCESSLOG_NONE; else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown AccessLogLevel %s on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "LogLevel") && value) { /* * Amount of logging to do to error log... */ if (!_cups_strcasecmp(value, "debug2")) LogLevel = CUPSD_LOG_DEBUG2; else if (!_cups_strcasecmp(value, "debug")) LogLevel = CUPSD_LOG_DEBUG; else if (!_cups_strcasecmp(value, "info")) LogLevel = CUPSD_LOG_INFO; else if (!_cups_strcasecmp(value, "notice")) LogLevel = CUPSD_LOG_NOTICE; else if (!_cups_strcasecmp(value, "warn")) LogLevel = CUPSD_LOG_WARN; else if (!_cups_strcasecmp(value, "error")) LogLevel = CUPSD_LOG_ERROR; else if (!_cups_strcasecmp(value, "crit")) LogLevel = CUPSD_LOG_CRIT; else if (!_cups_strcasecmp(value, "alert")) LogLevel = CUPSD_LOG_ALERT; else if (!_cups_strcasecmp(value, "emerg")) LogLevel = CUPSD_LOG_EMERG; else if (!_cups_strcasecmp(value, "none")) LogLevel = CUPSD_LOG_NONE; else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown LogLevel %s on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "LogTimeFormat") && value) { /* * Amount of logging to do to error log... */ if (!_cups_strcasecmp(value, "standard")) LogTimeFormat = CUPSD_TIME_STANDARD; else if (!_cups_strcasecmp(value, "usecs")) LogTimeFormat = CUPSD_TIME_USECS; else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown LogTimeFormat %s on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "ReadyPaperSizes") && value) { /* * ReadyPaperSizes sizename[,sizename,...] */ if (ReadyPaperSizes) _cupsArrayAddStrings(ReadyPaperSizes, value, ','); else ReadyPaperSizes = _cupsArrayNewStrings(value, ','); } else if (!_cups_strcasecmp(line, "ServerTokens") && value) { /* * Set the string used for the Server header... */ struct utsname plat; /* Platform info */ uname(&plat); if (!_cups_strcasecmp(value, "ProductOnly")) cupsdSetString(&ServerHeader, "CUPS IPP"); else if (!_cups_strcasecmp(value, "Major")) cupsdSetStringf(&ServerHeader, "CUPS/%d IPP/2", CUPS_VERSION_MAJOR); else if (!_cups_strcasecmp(value, "Minor")) cupsdSetStringf(&ServerHeader, "CUPS/%d.%d IPP/2.1", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR); else if (!_cups_strcasecmp(value, "Minimal")) cupsdSetString(&ServerHeader, CUPS_MINIMAL " IPP/2.1"); else if (!_cups_strcasecmp(value, "OS")) cupsdSetStringf(&ServerHeader, CUPS_MINIMAL " (%s %s) IPP/2.1", plat.sysname, plat.release); else if (!_cups_strcasecmp(value, "Full")) cupsdSetStringf(&ServerHeader, CUPS_MINIMAL " (%s %s; %s) IPP/2.1", plat.sysname, plat.release, plat.machine); else if (!_cups_strcasecmp(value, "None")) cupsdSetString(&ServerHeader, ""); else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown ServerTokens %s on line %d of %s.", value, linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "ServerAlias") && value) { /* * ServerAlias name [... name] */ if (!ServerAlias) ServerAlias = cupsArrayNew(NULL, NULL); while (*value) { size_t valuelen; /* Length of value */ for (valuelen = 0; value[valuelen]; valuelen ++) if (_cups_isspace(value[valuelen]) || value[valuelen] == ',') { value[valuelen ++] = '\0'; break; } cupsdAddAlias(ServerAlias, value); for (value += valuelen; *value; value ++) if (!_cups_isspace(*value) || *value != ',') break; } } else if (!_cups_strcasecmp(line, "AccessLog") || !_cups_strcasecmp(line, "CacheDir") || !_cups_strcasecmp(line, "ConfigFilePerm") || !_cups_strcasecmp(line, "DataDir") || !_cups_strcasecmp(line, "DocumentRoot") || !_cups_strcasecmp(line, "ErrorLog") || !_cups_strcasecmp(line, "FatalErrors") || !_cups_strcasecmp(line, "FileDevice") || !_cups_strcasecmp(line, "Group") || !_cups_strcasecmp(line, "LogFilePerm") || !_cups_strcasecmp(line, "PageLog") || !_cups_strcasecmp(line, "PassEnv") || !_cups_strcasecmp(line, "Printcap") || !_cups_strcasecmp(line, "PrintcapFormat") || !_cups_strcasecmp(line, "RemoteRoot") || !_cups_strcasecmp(line, "RequestRoot") || !_cups_strcasecmp(line, "ServerBin") || !_cups_strcasecmp(line, "ServerCertificate") || !_cups_strcasecmp(line, "ServerKey") || !_cups_strcasecmp(line, "ServerKeychain") || !_cups_strcasecmp(line, "ServerRoot") || !_cups_strcasecmp(line, "SetEnv") || !_cups_strcasecmp(line, "StateDir") || !_cups_strcasecmp(line, "SystemGroup") || !_cups_strcasecmp(line, "SystemGroupAuthKey") || !_cups_strcasecmp(line, "TempDir") || !_cups_strcasecmp(line, "User")) { cupsdLogMessage(CUPSD_LOG_INFO, "Please move \"%s%s%s\" on line %d of %s to the %s file; " "this will become an error in a future release.", line, value ? " " : "", value ? value : "", linenum, ConfigurationFile, CupsFilesFile); } else parse_variable(ConfigurationFile, linenum, line, value, sizeof(cupsd_vars) / sizeof(cupsd_vars[0]), cupsd_vars); } return (1); } /* * 'read_cups_files_conf()' - Read the cups-files.conf configuration file. */ static int /* O - 1 on success, 0 on failure */ read_cups_files_conf(cups_file_t *fp) /* I - File to read from */ { size_t i; /* Looping var */ int linenum; /* Current line number */ char line[HTTP_MAX_BUFFER], /* Line from file */ *value; /* Value from line */ struct group *group; /* Group */ static const char * const prohibited_env[] = { /* Prohibited environment variables */ "APPLE_LANGUAGE", "AUTH_DOMAIN", "AUTH_INFO_REQUIRED", "AUTH_NEGOTIATE", "AUTH_PASSWORD", "AUTH_UID", "AUTH_USERNAME", "CHARSET", "CLASS", "CLASSIFICATION", "CONTENT_TYPE", "CUPS_CACHEDIR", "CUPS_DATADIR", "CUPS_DOCROOT", "CUPS_FILETYPE", "CUPS_FONTPATH", "CUPS_MAX_MESSAGE", "CUPS_REQUESTROOT", "CUPS_SERVERBIN", "CUPS_SERVERROOT", "CUPS_STATEDIR", "DEVICE_URI", "FINAL_CONTENT_TYPE", "HOME", "LANG", "PPD", "PRINTER", "PRINTER_INFO", "PRINTER_LOCATION", "PRINTER_STATE_REASONS", "RIP_CACHE", "SERVER_ADMIN", "SOFTWARE", "TMPDIR", "USER" }; /* * Loop through each line in the file... */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "FatalErrors")) FatalErrors = parse_fatal_errors(value); else if (!_cups_strcasecmp(line, "Group") && value) { /* * Group ID to run as... */ if (isdigit(value[0])) Group = (gid_t)strtoul(value, NULL, 10); else { endgrent(); group = getgrnam(value); if (group != NULL) Group = group->gr_gid; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Group \"%s\" on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } } else if (!_cups_strcasecmp(line, "LogFileGroup") && value) { /* * Group ID to log as... */ if (isdigit(value[0])) LogFileGroup = (gid_t)strtoul(value, NULL, 10); else { endgrent(); group = getgrnam(value); if (group != NULL) LogFileGroup = group->gr_gid; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown LogFileGroup \"%s\" on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } } else if (!_cups_strcasecmp(line, "PassEnv") && value) { /* * PassEnv variable [... variable] */ size_t valuelen; /* Length of variable name */ while (*value) { for (valuelen = 0; value[valuelen]; valuelen ++) if (_cups_isspace(value[valuelen]) || value[valuelen] == ',') break; if (value[valuelen]) { value[valuelen ++] = '\0'; } for (i = 0; i < (sizeof(prohibited_env) / sizeof(prohibited_env[0])); i ++) { if (!strcmp(value, prohibited_env[i])) { cupsdLogMessage(CUPSD_LOG_ERROR, "Environment variable \"%s\" cannot be passed through on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); else break; } } if (i >= sizeof(prohibited_env) / sizeof(prohibited_env[0])) cupsdSetEnv(value, NULL); for (value += valuelen; *value; value ++) if (!_cups_isspace(*value) || *value != ',') break; } } else if (!_cups_strcasecmp(line, "PrintcapFormat") && value) { /* * Format of printcap file? */ if (!_cups_strcasecmp(value, "bsd")) PrintcapFormat = PRINTCAP_BSD; else if (!_cups_strcasecmp(value, "plist")) PrintcapFormat = PRINTCAP_PLIST; else if (!_cups_strcasecmp(value, "solaris")) PrintcapFormat = PRINTCAP_SOLARIS; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown PrintcapFormat \"%s\" on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } else if (!_cups_strcasecmp(line, "Sandboxing") && value) { /* * Level of sandboxing? */ if (!_cups_strcasecmp(value, "off") && getuid()) Sandboxing = CUPSD_SANDBOXING_OFF; else if (!_cups_strcasecmp(value, "relaxed")) Sandboxing = CUPSD_SANDBOXING_RELAXED; else if (!_cups_strcasecmp(value, "strict")) Sandboxing = CUPSD_SANDBOXING_STRICT; else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Sandboxing \"%s\" on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } else if (!_cups_strcasecmp(line, "SetEnv") && value) { /* * SetEnv variable value */ char *valueptr; /* Pointer to environment variable value */ for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (*valueptr) { /* * Found a value... */ while (isspace(*valueptr & 255)) *valueptr++ = '\0'; for (i = 0; i < (sizeof(prohibited_env) / sizeof(prohibited_env[0])); i ++) { if (!strcmp(value, prohibited_env[i])) { cupsdLogMessage(CUPSD_LOG_ERROR, "Environment variable \"%s\" cannot be set on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); else break; } } if (i >= (sizeof(prohibited_env) / sizeof(prohibited_env[0]))) cupsdSetEnv(value, valueptr); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value for SetEnv directive on line %d of %s.", linenum, ConfigurationFile); } else if (!_cups_strcasecmp(line, "SystemGroup") && value) { /* * SystemGroup (admin) group(s)... */ if (!parse_groups(value, linenum)) { if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } else if (!_cups_strcasecmp(line, "User") && value) { /* * User ID to run as... */ if (isdigit(value[0] & 255)) { uid_t uid = (uid_t)strtoul(value, NULL, 10); if (!uid) { cupsdLogMessage(CUPSD_LOG_ERROR, "Will not use User 0 as specified on line %d of %s " "for security reasons. You must use a non-" "privileged account instead.", linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else User = uid; } else { struct passwd *p; /* Password information */ endpwent(); p = getpwnam(value); if (p) { if (!p->pw_uid) { cupsdLogMessage(CUPSD_LOG_ERROR, "Will not use User %s (UID=0) as specified on line " "%d of %s for security reasons. You must use a " "non-privileged account instead.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else User = p->pw_uid; } else { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown User \"%s\" on line %d of %s.", value, linenum, CupsFilesFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } } else if (!_cups_strcasecmp(line, "ServerCertificate") || !_cups_strcasecmp(line, "ServerKey")) { cupsdLogMessage(CUPSD_LOG_INFO, "The \"%s\" directive on line %d of %s is no longer " "supported; this will become an error in a future " "release.", line, linenum, CupsFilesFile); } else if (!parse_variable(CupsFilesFile, linenum, line, value, sizeof(cupsfiles_vars) / sizeof(cupsfiles_vars[0]), cupsfiles_vars) && (FatalErrors & CUPSD_FATAL_CONFIG)) return (0); } return (1); } /* * 'read_location()' - Read a definition. */ static int /* O - New line number or 0 on error */ read_location(cups_file_t *fp, /* I - Configuration file */ char *location, /* I - Location name/path */ int linenum) /* I - Current line number */ { cupsd_location_t *loc, /* New location */ *parent; /* Parent location */ char line[HTTP_MAX_BUFFER], /* Line buffer */ *value, /* Value for directive */ *valptr; /* Pointer into value */ if ((parent = cupsdFindLocation(location)) != NULL) cupsdLogMessage(CUPSD_LOG_WARN, "Duplicate on line %d of %s.", location, linenum, ConfigurationFile); else if ((parent = cupsdNewLocation(location)) == NULL) return (0); else { cupsdAddLocation(parent); parent->limit = CUPSD_AUTH_LIMIT_ALL; } loc = parent; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode the directive... */ if (!_cups_strcasecmp(line, "")) return (linenum); else if (!_cups_strcasecmp(line, "limit = 0; while (*value) { for (valptr = value; !isspace(*valptr & 255) && *valptr; valptr ++); if (*valptr) *valptr++ = '\0'; if (!strcmp(value, "ALL")) loc->limit = CUPSD_AUTH_LIMIT_ALL; else if (!strcmp(value, "GET")) loc->limit |= CUPSD_AUTH_LIMIT_GET; else if (!strcmp(value, "HEAD")) loc->limit |= CUPSD_AUTH_LIMIT_HEAD; else if (!strcmp(value, "OPTIONS")) loc->limit |= CUPSD_AUTH_LIMIT_OPTIONS; else if (!strcmp(value, "POST")) loc->limit |= CUPSD_AUTH_LIMIT_POST; else if (!strcmp(value, "PUT")) loc->limit |= CUPSD_AUTH_LIMIT_PUT; else if (!strcmp(value, "TRACE")) loc->limit |= CUPSD_AUTH_LIMIT_TRACE; else cupsdLogMessage(CUPSD_LOG_WARN, "Unknown request type %s on line %d of %s.", value, linenum, ConfigurationFile); for (value = valptr; isspace(*value & 255); value ++); } if (!_cups_strcasecmp(line, "limit = CUPSD_AUTH_LIMIT_ALL ^ loc->limit; parent->limit &= ~loc->limit; } else if (!_cups_strcasecmp(line, "") || !_cups_strcasecmp(line, "")) loc = parent; else if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value on line %d of %s.", linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else if (!parse_aaa(loc, line, value, linenum)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Location directive %s on line %d of %s.", line, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } cupsdLogMessage(CUPSD_LOG_ERROR, "Unexpected end-of-file at line %d while reading location.", linenum); return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum); } /* * 'read_policy()' - Read a definition. */ static int /* O - New line number or 0 on error */ read_policy(cups_file_t *fp, /* I - Configuration file */ char *policy, /* I - Location name/path */ int linenum) /* I - Current line number */ { int i; /* Looping var */ cupsd_policy_t *pol; /* Policy */ cupsd_location_t *op; /* Policy operation */ int num_ops; /* Number of IPP operations */ ipp_op_t ops[100]; /* Operations */ char line[HTTP_MAX_BUFFER], /* Line buffer */ *value, /* Value for directive */ *valptr; /* Pointer into value */ /* * Create the policy... */ if ((pol = cupsdFindPolicy(policy)) != NULL) cupsdLogMessage(CUPSD_LOG_WARN, "Duplicate on line %d of %s.", policy, linenum, ConfigurationFile); else if ((pol = cupsdAddPolicy(policy)) == NULL) return (0); /* * Read from the file... */ op = NULL; num_ops = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode the directive... */ if (!_cups_strcasecmp(line, "")) { if (op) cupsdLogMessage(CUPSD_LOG_WARN, "Missing before on line %d of %s.", linenum, ConfigurationFile); set_policy_defaults(pol); return (linenum); } else if (!_cups_strcasecmp(line, "") && op) { /* * Finish the current operation limit... */ if (num_ops > 1) { /* * Copy the policy to the other operations... */ for (i = 1; i < num_ops; i ++) cupsdAddPolicyOp(pol, op, ops[i]); } op = NULL; } else if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value on line %d of %s.", linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else if (!_cups_strcasecmp(line, "JobPrivateAccess") || !_cups_strcasecmp(line, "JobPrivateValues") || !_cups_strcasecmp(line, "SubscriptionPrivateAccess") || !_cups_strcasecmp(line, "SubscriptionPrivateValues")) { if (op) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s directive must appear outside ... " "on line %d of %s.", line, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else { /* * Pull out whitespace-delimited values... */ while (*value) { /* * Find the end of the current value... */ for (valptr = value; !isspace(*valptr & 255) && *valptr; valptr ++); if (*valptr) *valptr++ = '\0'; /* * Save it appropriately... */ if (!_cups_strcasecmp(line, "JobPrivateAccess")) { /* * JobPrivateAccess {all|default|user/group list|@@ACL} */ if (!_cups_strcasecmp(value, "default")) { cupsdAddString(&(pol->job_access), "@OWNER"); cupsdAddString(&(pol->job_access), "@SYSTEM"); } else cupsdAddString(&(pol->job_access), value); } else if (!_cups_strcasecmp(line, "JobPrivateValues")) { /* * JobPrivateValues {all|none|default|attribute list} */ if (!_cups_strcasecmp(value, "default")) { cupsdAddString(&(pol->job_attrs), "job-name"); cupsdAddString(&(pol->job_attrs), "job-originating-host-name"); cupsdAddString(&(pol->job_attrs), "job-originating-user-name"); cupsdAddString(&(pol->job_attrs), "phone"); } else cupsdAddString(&(pol->job_attrs), value); } else if (!_cups_strcasecmp(line, "SubscriptionPrivateAccess")) { /* * SubscriptionPrivateAccess {all|default|user/group list|@@ACL} */ if (!_cups_strcasecmp(value, "default")) { cupsdAddString(&(pol->sub_access), "@OWNER"); cupsdAddString(&(pol->sub_access), "@SYSTEM"); } else cupsdAddString(&(pol->sub_access), value); } else /* if (!_cups_strcasecmp(line, "SubscriptionPrivateValues")) */ { /* * SubscriptionPrivateValues {all|none|default|attribute list} */ if (!_cups_strcasecmp(value, "default")) { cupsdAddString(&(pol->sub_attrs), "notify-events"); cupsdAddString(&(pol->sub_attrs), "notify-pull-method"); cupsdAddString(&(pol->sub_attrs), "notify-recipient-uri"); cupsdAddString(&(pol->sub_attrs), "notify-subscriber-user-name"); cupsdAddString(&(pol->sub_attrs), "notify-user-data"); } else cupsdAddString(&(pol->sub_attrs), value); } /* * Find the next string on the line... */ for (value = valptr; isspace(*value & 255); value ++); } } } else if (!op) { cupsdLogMessage(CUPSD_LOG_ERROR, "Missing directive before %s on line %d of %s.", line, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } else if (!parse_aaa(op, line, value, linenum)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown Policy Limit directive %s on line %d of %s.", line, linenum, ConfigurationFile); if (FatalErrors & CUPSD_FATAL_CONFIG) return (0); } } cupsdLogMessage(CUPSD_LOG_ERROR, "Unexpected end-of-file at line %d while reading policy " "\"%s\".", linenum, policy); return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum); } /* * 'set_policy_defaults()' - Set default policy values as needed. */ static void set_policy_defaults(cupsd_policy_t *pol)/* I - Policy */ { cupsd_location_t *op; /* Policy operation */ /* * Verify that we have an explicit policy for Validate-Job, Cancel-Jobs, * Cancel-My-Jobs, Close-Job, and CUPS-Get-Document, which ensures that * upgrades do not introduce new security issues... * * CUPS STR #4659: Allow a lone policy. */ if (cupsArrayCount(pol->ops) > 1) { if ((op = cupsdFindPolicyOp(pol, IPP_VALIDATE_JOB)) == NULL || op->op == IPP_ANY_OPERATION) { if ((op = cupsdFindPolicyOp(pol, IPP_PRINT_JOB)) != NULL && op->op != IPP_ANY_OPERATION) { /* * Add a new limit for Validate-Job using the Print-Job limit as a * template... */ cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Validate-Job defined in policy %s - using Print-Job's policy.", pol->name); cupsdAddPolicyOp(pol, op, IPP_VALIDATE_JOB); } else cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Validate-Job defined in policy %s and no suitable template found.", pol->name); } if ((op = cupsdFindPolicyOp(pol, IPP_CANCEL_JOBS)) == NULL || op->op == IPP_ANY_OPERATION) { if ((op = cupsdFindPolicyOp(pol, IPP_PAUSE_PRINTER)) != NULL && op->op != IPP_ANY_OPERATION) { /* * Add a new limit for Cancel-Jobs using the Pause-Printer limit as a * template... */ cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Cancel-Jobs defined in policy %s - using Pause-Printer's policy.", pol->name); cupsdAddPolicyOp(pol, op, IPP_CANCEL_JOBS); } else cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Cancel-Jobs defined in policy %s and no suitable template found.", pol->name); } if ((op = cupsdFindPolicyOp(pol, IPP_CANCEL_MY_JOBS)) == NULL || op->op == IPP_ANY_OPERATION) { if ((op = cupsdFindPolicyOp(pol, IPP_SEND_DOCUMENT)) != NULL && op->op != IPP_ANY_OPERATION) { /* * Add a new limit for Cancel-My-Jobs using the Send-Document limit as * a template... */ cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Cancel-My-Jobs defined in policy %s - using Send-Document's policy.", pol->name); cupsdAddPolicyOp(pol, op, IPP_CANCEL_MY_JOBS); } else cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Cancel-My-Jobs defined in policy %s and no suitable template found.", pol->name); } if ((op = cupsdFindPolicyOp(pol, IPP_CLOSE_JOB)) == NULL || op->op == IPP_ANY_OPERATION) { if ((op = cupsdFindPolicyOp(pol, IPP_SEND_DOCUMENT)) != NULL && op->op != IPP_ANY_OPERATION) { /* * Add a new limit for Close-Job using the Send-Document limit as a * template... */ cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Close-Job defined in policy %s - using Send-Document's policy.", pol->name); cupsdAddPolicyOp(pol, op, IPP_CLOSE_JOB); } else cupsdLogMessage(CUPSD_LOG_WARN, "No limit for Close-Job defined in policy %s and no suitable template found.", pol->name); } if ((op = cupsdFindPolicyOp(pol, CUPS_GET_DOCUMENT)) == NULL || op->op == IPP_ANY_OPERATION) { if ((op = cupsdFindPolicyOp(pol, IPP_SEND_DOCUMENT)) != NULL && op->op != IPP_ANY_OPERATION) { /* * Add a new limit for CUPS-Get-Document using the Send-Document * limit as a template... */ cupsdLogMessage(CUPSD_LOG_WARN, "No limit for CUPS-Get-Document defined in policy %s - using Send-Document's policy.", pol->name); cupsdAddPolicyOp(pol, op, CUPS_GET_DOCUMENT); } else cupsdLogMessage(CUPSD_LOG_WARN, "No limit for CUPS-Get-Document defined in policy %s and no suitable template found.", pol->name); } } /* * Verify we have JobPrivateAccess, JobPrivateValues, * SubscriptionPrivateAccess, and SubscriptionPrivateValues in the policy. */ if (!pol->job_access) { cupsdLogMessage(CUPSD_LOG_WARN, "No JobPrivateAccess defined in policy %s - using defaults.", pol->name); cupsdAddString(&(pol->job_access), "@OWNER"); cupsdAddString(&(pol->job_access), "@SYSTEM"); } if (!pol->job_attrs) { cupsdLogMessage(CUPSD_LOG_WARN, "No JobPrivateValues defined in policy %s - using defaults.", pol->name); cupsdAddString(&(pol->job_attrs), "job-name"); cupsdAddString(&(pol->job_attrs), "job-originating-host-name"); cupsdAddString(&(pol->job_attrs), "job-originating-user-name"); cupsdAddString(&(pol->job_attrs), "phone"); } if (!pol->sub_access) { cupsdLogMessage(CUPSD_LOG_WARN, "No SubscriptionPrivateAccess defined in policy %s - using defaults.", pol->name); cupsdAddString(&(pol->sub_access), "@OWNER"); cupsdAddString(&(pol->sub_access), "@SYSTEM"); } if (!pol->sub_attrs) { cupsdLogMessage(CUPSD_LOG_WARN, "No SubscriptionPrivateValues defined in policy %s - using defaults.", pol->name); cupsdAddString(&(pol->sub_attrs), "notify-events"); cupsdAddString(&(pol->sub_attrs), "notify-pull-method"); cupsdAddString(&(pol->sub_attrs), "notify-recipient-uri"); cupsdAddString(&(pol->sub_attrs), "notify-subscriber-user-name"); cupsdAddString(&(pol->sub_attrs), "notify-user-data"); } } cups-2.4.7/scheduler/colorman.h0000644000175000017500000000071714502571342016327 0ustar zdohnalzdohnal/* * Color management definitions for the CUPS scheduler. * * Copyright 2007-2012 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Prototypes... */ extern void cupsdRegisterColor(cupsd_printer_t *p); extern void cupsdStartColor(void); extern void cupsdStopColor(void); extern void cupsdUnregisterColor(cupsd_printer_t *p); cups-2.4.7/scheduler/colorman.c0000644000175000017500000012216314502571342016322 0ustar zdohnalzdohnal/* * Color management routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2014 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * Original DBUS/colord code is Copyright © 2011 Red Hat, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef __APPLE__ # include extern CFUUIDRef ColorSyncCreateUUIDFromUInt32(unsigned id); # include #elif defined(HAVE_DBUS) # include /* * Defines used by colord. See the reference docs for further details: * * http://colord.hughsie.com/api/ref-dbus.html */ # define COLORD_SCOPE_NORMAL "normal" /* System scope */ # define COLORD_SCOPE_TEMP "temp" /* Process scope */ # define COLORD_SCOPE_DISK "disk" /* Lives forever, as stored in DB */ # define COLORD_RELATION_SOFT "soft" /* Mapping is not default */ # define COLORD_RELATION_HARD "hard" /* Explicitly mapped profile */ # define COLORD_SPACE_RGB "rgb" /* RGB colorspace */ # define COLORD_SPACE_CMYK "cmyk" /* CMYK colorspace */ # define COLORD_SPACE_GRAY "gray" /* Gray colorspace */ # define COLORD_SPACE_UNKNOWN "unknown" /* Unknown colorspace */ # define COLORD_MODE_PHYSICAL "physical" /* Actual device */ # define COLORD_MODE_VIRTUAL "virtual" /* Virtual device with no hardware */ # define COLORD_KIND_PRINTER "printer" /* printing output device */ # define COLORD_DBUS_SERVICE "org.freedesktop.ColorManager" # define COLORD_DBUS_INTERFACE "org.freedesktop.ColorManager" # define COLORD_DBUS_INTERFACE_DEVICE "org.freedesktop.ColorManager.Device" # define COLORD_DBUS_PATH "/org/freedesktop/ColorManager" /* Path for color management system */ # define COLORD_DBUS_TIMEOUT 5000 /* Timeout for connecting to colord in ms */ #endif /* __APPLE__ */ /* * Local globals... */ #if !defined(__APPLE__) && defined(HAVE_DBUS) static DBusConnection *colord_con = NULL; /* DBUS connection for colord */ #endif /* !__APPLE__ && HAVE_DBUS */ /* * Local functions... */ #ifdef __APPLE__ static void apple_init_profile(ppd_file_t *ppd, cups_array_t *languages, CFMutableDictionaryRef profile, unsigned id, const char *name, const char *text, const char *iccfile); static void apple_register_profiles(cupsd_printer_t *p); static void apple_unregister_profiles(cupsd_printer_t *p); #elif defined(HAVE_DBUS) static void colord_create_device(cupsd_printer_t *p, ppd_file_t *ppd, cups_array_t *profiles, const char *colorspace, char **format, const char *relation, const char *scope); static void colord_create_profile(cups_array_t *profiles, const char *printer_name, const char *qualifier, const char *colorspace, char **format, const char *iccfile, const char *scope); static void colord_delete_device(const char *device_id); static void colord_device_add_profile(const char *device_path, const char *profile_path, const char *relation); static void colord_dict_add_strings(DBusMessageIter *dict, const char *key, const char *value); static char *colord_find_device(const char *device_id); static void colord_get_qualifier_format(ppd_file_t *ppd, char *format[3]); static void colord_register_printer(cupsd_printer_t *p); static void colord_unregister_printer(cupsd_printer_t *p); #endif /* __APPLE__ */ /* * 'cupsdRegisterColor()' - Register vendor color profiles in a PPD file. */ void cupsdRegisterColor(cupsd_printer_t *p) /* I - Printer */ { #ifdef __APPLE__ if (!RunUser) { apple_unregister_profiles(p); apple_register_profiles(p); } #elif defined(HAVE_DBUS) if (!RunUser) { colord_unregister_printer(p); colord_register_printer(p); } #endif /* __APPLE__ */ } /* * 'cupsdStartColor()' - Initialize color management. */ void cupsdStartColor(void) { #if !defined(__APPLE__) && defined(HAVE_DBUS) cupsd_printer_t *p; /* Current printer */ colord_con = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers)) cupsdRegisterColor(p); #endif /* !__APPLE__ && HAVE_DBUS */ } /* * 'cupsdStopColor()' - Shutdown color management. */ void cupsdStopColor(void) { #if !defined(__APPLE__) && defined(HAVE_DBUS) if (colord_con) dbus_connection_unref(colord_con); colord_con = NULL; #endif /* !__APPLE__ && HAVE_DBUS */ } /* * 'cupsdUnregisterColor()' - Unregister vendor color profiles in a PPD file. */ void cupsdUnregisterColor(cupsd_printer_t *p)/* I - Printer */ { #ifdef __APPLE__ if (!RunUser) apple_unregister_profiles(p); #elif defined(HAVE_DBUS) if (!RunUser) colord_unregister_printer(p); #endif /* __APPLE__ */ } #ifdef __APPLE__ /* * 'apple_init_profile()' - Initialize a color profile. */ static void apple_init_profile( ppd_file_t *ppd, /* I - PPD file */ cups_array_t *languages, /* I - Languages in the PPD file */ CFMutableDictionaryRef profile, /* I - Profile dictionary */ unsigned id, /* I - Profile ID */ const char *name, /* I - Profile name */ const char *text, /* I - Profile UI text */ const char *iccfile) /* I - ICC filename */ { CFURLRef url; /* URL for profile filename */ CFMutableDictionaryRef dict; /* Dictionary for name */ char *language; /* Current language */ ppd_attr_t *attr; /* Profile attribute */ CFStringRef cflang, /* Language string */ cftext; /* Localized text */ (void)id; /* * Build the profile name dictionary... */ dict = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!dict) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to initialize profile \"%s\".", iccfile); return; } cftext = CFStringCreateWithCString(kCFAllocatorDefault, text, kCFStringEncodingUTF8); if (cftext) { CFDictionarySetValue(dict, CFSTR("en_US"), cftext); CFRelease(cftext); } if (languages) { /* * Find localized names for the color profiles... */ cupsArraySave(ppd->sorted_attrs); for (language = (char *)cupsArrayFirst(languages); language; language = (char *)cupsArrayNext(languages)) { if (iccfile) { if ((attr = _ppdLocalizedAttr(ppd, "cupsICCProfile", name, language)) == NULL) attr = _ppdLocalizedAttr(ppd, "APTiogaProfile", name, language); } else attr = _ppdLocalizedAttr(ppd, "ColorModel", name, language); if (attr && attr->text[0]) { cflang = CFStringCreateWithCString(kCFAllocatorDefault, language, kCFStringEncodingUTF8); cftext = CFStringCreateWithCString(kCFAllocatorDefault, attr->text, kCFStringEncodingUTF8); if (cflang && cftext) CFDictionarySetValue(dict, cflang, cftext); if (cflang) CFRelease(cflang); if (cftext) CFRelease(cftext); } } cupsArrayRestore(ppd->sorted_attrs); } /* * Fill in the profile data... */ if (iccfile && *iccfile) { url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (const UInt8 *)iccfile, (CFIndex)strlen(iccfile), false); if (url) { CFDictionarySetValue(profile, kColorSyncDeviceProfileURL, url); CFRelease(url); } } CFDictionarySetValue(profile, kColorSyncDeviceModeDescriptions, dict); CFRelease(dict); } /* * 'apple_register_profiles()' - Register color profiles for a printer. */ static void apple_register_profiles( cupsd_printer_t *p) /* I - Printer */ { int i; /* Looping var */ char ppdfile[1024], /* PPD filename */ iccfile[1024], /* ICC filename */ selector[PPD_MAX_NAME]; /* Profile selection string */ ppd_file_t *ppd; /* PPD file */ ppd_attr_t *attr, /* Profile attributes */ *profileid_attr,/* cupsProfileID attribute */ *q1_attr, /* ColorModel (or other) qualifier */ *q2_attr, /* MediaType (or other) qualifier */ *q3_attr; /* Resolution (or other) qualifier */ char q_keyword[PPD_MAX_NAME]; /* Qualifier keyword */ const char *q1_choice, /* ColorModel (or other) choice */ *q2_choice, /* MediaType (or other) choice */ *q3_choice; /* Resolution (or other) choice */ ppd_option_t *cm_option; /* Color model option */ ppd_choice_t *cm_choice; /* Color model choice */ int num_profiles; /* Number of profiles */ OSStatus error = 0; /* Last error */ unsigned device_id, /* Printer device ID */ profile_id = 0, /* Profile ID */ default_profile_id = 0; /* Default profile ID */ CFMutableDictionaryRef device_name; /* Printer device name dictionary */ CFStringRef printer_name; /* Printer name string */ cups_array_t *languages; /* Languages array */ CFMutableDictionaryRef profiles, /* Dictionary of profiles */ profile; /* Current profile info dictionary */ CFStringRef dict_key; /* Key in factory profile dictionary */ /* * Make sure ColorSync is available... */ if (&ColorSyncRegisterDevice == NULL) return; /* * Try opening the PPD file for this printer... */ snprintf(ppdfile, sizeof(ppdfile), "%s/ppd/%s.ppd", ServerRoot, p->name); if ((ppd = _ppdOpenFile(ppdfile, _PPD_LOCALIZATION_ICC_PROFILES)) == NULL) return; /* * See if we have any profiles... */ for (num_profiles = 0, attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) if (attr->spec[0] && attr->value && attr->value[0]) { if (attr->value[0] != '/') snprintf(iccfile, sizeof(iccfile), "%s/profiles/%s", DataDir, attr->value); else strlcpy(iccfile, attr->value, sizeof(iccfile)); if (access(iccfile, 0)) { cupsdLogMessage(CUPSD_LOG_ERROR, "%s: ICC Profile \"%s\" does not exist.", p->name, iccfile); cupsdSetPrinterReasons(p, "+cups-missing-filter-warning"); continue; } num_profiles ++; } /* * Create a dictionary for the factory profiles... */ profiles = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!profiles) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for factory profiles."); ppdClose(ppd); return; } /* * If we have profiles, add them... */ if (num_profiles > 0) { /* * For CUPS PPDs, figure out the default profile selector values... */ if ((attr = ppdFindAttr(ppd, "cupsICCQualifier1", NULL)) != NULL && attr->value && attr->value[0]) { snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value); q1_attr = ppdFindAttr(ppd, q_keyword, NULL); } else if ((q1_attr = ppdFindAttr(ppd, "DefaultColorModel", NULL)) == NULL) q1_attr = ppdFindAttr(ppd, "DefaultColorSpace", NULL); if (q1_attr && q1_attr->value && q1_attr->value[0]) q1_choice = q1_attr->value; else q1_choice = ""; if ((attr = ppdFindAttr(ppd, "cupsICCQualifier2", NULL)) != NULL && attr->value && attr->value[0]) { snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value); q2_attr = ppdFindAttr(ppd, q_keyword, NULL); } else q2_attr = ppdFindAttr(ppd, "DefaultMediaType", NULL); if (q2_attr && q2_attr->value && q2_attr->value[0]) q2_choice = q2_attr->value; else q2_choice = NULL; if ((attr = ppdFindAttr(ppd, "cupsICCQualifier3", NULL)) != NULL && attr->value && attr->value[0]) { snprintf(q_keyword, sizeof(q_keyword), "Default%s", attr->value); q3_attr = ppdFindAttr(ppd, q_keyword, NULL); } else q3_attr = ppdFindAttr(ppd, "DefaultResolution", NULL); if (q3_attr && q3_attr->value && q3_attr->value[0]) q3_choice = q3_attr->value; else q3_choice = NULL; /* * Loop through the profiles listed in the PPD... */ languages = _ppdGetLanguages(ppd); for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) if (attr->spec[0] && attr->value && attr->value[0]) { /* * Add this profile... */ if (attr->value[0] != '/') snprintf(iccfile, sizeof(iccfile), "%s/profiles/%s", DataDir, attr->value); else strlcpy(iccfile, attr->value, sizeof(iccfile)); if (_cupsFileCheck(iccfile, _CUPS_FILE_CHECK_FILE, !RunUser, cupsdLogFCMessage, p)) iccfile[0] = '\0'; cupsArraySave(ppd->sorted_attrs); if ((profileid_attr = ppdFindAttr(ppd, "cupsProfileID", attr->spec)) != NULL && profileid_attr->value && isdigit(profileid_attr->value[0] & 255)) profile_id = (unsigned)strtoul(profileid_attr->value, NULL, 10); else profile_id = _ppdHashName(attr->spec); cupsArrayRestore(ppd->sorted_attrs); profile = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!profile) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for color profile."); CFRelease(profiles); ppdClose(ppd); return; } apple_init_profile(ppd, languages, profile, profile_id, attr->spec, attr->text[0] ? attr->text : attr->spec, iccfile); dict_key = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), profile_id); if (dict_key) { CFDictionarySetValue(profiles, dict_key, profile); CFRelease(dict_key); } CFRelease(profile); /* * See if this is the default profile... */ if (!default_profile_id && q1_choice && q2_choice && q3_choice) { snprintf(selector, sizeof(selector), "%s.%s.%s", q1_choice, q2_choice, q3_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q1_choice && q2_choice) { snprintf(selector, sizeof(selector), "%s.%s.", q1_choice, q2_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q1_choice && q3_choice) { snprintf(selector, sizeof(selector), "%s..%s", q1_choice, q3_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q1_choice) { snprintf(selector, sizeof(selector), "%s..", q1_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q2_choice && q3_choice) { snprintf(selector, sizeof(selector), ".%s.%s", q2_choice, q3_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q2_choice) { snprintf(selector, sizeof(selector), ".%s.", q2_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } if (!default_profile_id && q3_choice) { snprintf(selector, sizeof(selector), "..%s", q3_choice); if (!strcmp(selector, attr->spec)) default_profile_id = profile_id; } } _ppdFreeLanguages(languages); } else if ((cm_option = ppdFindOption(ppd, "ColorModel")) != NULL) { /* * Extract profiles from ColorModel option... */ const char *profile_name; /* Name of generic profile */ num_profiles = cm_option->num_choices; for (i = cm_option->num_choices, cm_choice = cm_option->choices; i > 0; i --, cm_choice ++) { if (!strcmp(cm_choice->choice, "Gray") || !strcmp(cm_choice->choice, "Black")) profile_name = "Gray"; else if (!strcmp(cm_choice->choice, "RGB") || !strcmp(cm_choice->choice, "CMY")) profile_name = "RGB"; else if (!strcmp(cm_choice->choice, "CMYK") || !strcmp(cm_choice->choice, "KCMY")) profile_name = "CMYK"; else profile_name = "DeviceN"; snprintf(selector, sizeof(selector), "%s..", profile_name); profile_id = _ppdHashName(selector); profile = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!profile) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for color profile."); CFRelease(profiles); ppdClose(ppd); return; } apple_init_profile(ppd, NULL, profile, profile_id, cm_choice->choice, cm_choice->text, NULL); dict_key = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), profile_id); if (dict_key) { CFDictionarySetValue(profiles, dict_key, profile); CFRelease(dict_key); } CFRelease(profile); if (cm_choice->marked) default_profile_id = profile_id; } } else { /* * Use the default colorspace... */ attr = ppdFindAttr(ppd, "DefaultColorSpace", NULL); num_profiles = (attr && ppd->colorspace == PPD_CS_GRAY) ? 1 : 2; /* * Add the grayscale profile first. We always have a grayscale profile. */ profile = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!profile) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for color profile."); CFRelease(profiles); ppdClose(ppd); return; } profile_id = _ppdHashName("Gray.."); apple_init_profile(ppd, NULL, profile, profile_id, "Gray", "Gray", NULL); dict_key = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), profile_id); if (dict_key) { CFDictionarySetValue(profiles, dict_key, profile); CFRelease(dict_key); } CFRelease(profile); /* * Then add the RGB/CMYK/DeviceN color profile... */ profile = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!profile) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for color profile."); CFRelease(profiles); ppdClose(ppd); return; } switch (ppd->colorspace) { default : case PPD_CS_RGB : case PPD_CS_CMY : profile_id = _ppdHashName("RGB.."); apple_init_profile(ppd, NULL, profile, profile_id, "RGB", "RGB", NULL); break; case PPD_CS_RGBK : case PPD_CS_CMYK : profile_id = _ppdHashName("CMYK.."); apple_init_profile(ppd, NULL, profile, profile_id, "CMYK", "CMYK", NULL); break; case PPD_CS_GRAY : if (attr) break; case PPD_CS_N : profile_id = _ppdHashName("DeviceN.."); apple_init_profile(ppd, NULL, profile, profile_id, "DeviceN", "DeviceN", NULL); break; } if (CFDictionaryGetCount(profile) > 0) { dict_key = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), profile_id); if (dict_key) { CFDictionarySetValue(profiles, dict_key, profile); CFRelease(dict_key); } } CFRelease(profile); } if (num_profiles > 0) { /* * Make sure we have a default profile ID... */ if (!default_profile_id) default_profile_id = profile_id; /* Last profile */ dict_key = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), default_profile_id); if (dict_key) { CFDictionarySetValue(profiles, kColorSyncDeviceDefaultProfileID, dict_key); CFRelease(dict_key); } /* * Get the device ID hash and pathelogical name dictionary. */ cupsdLogMessage(CUPSD_LOG_INFO, "Registering ICC color profiles for \"%s\"", p->name); device_id = _ppdHashName(p->name); device_name = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); printer_name = CFStringCreateWithCString(kCFAllocatorDefault, p->name, kCFStringEncodingUTF8); if (device_name && printer_name) { /* * Register the device with ColorSync... */ CFTypeRef deviceDictKeys[] = { /* Device keys */ kColorSyncDeviceDescriptions, kColorSyncFactoryProfiles, kColorSyncDeviceUserScope, kColorSyncDeviceHostScope }; CFTypeRef deviceDictVals[] = { /* Device values */ device_name, profiles, kCFPreferencesAnyUser, kCFPreferencesCurrentHost }; CFDictionaryRef deviceDict; /* Device dictionary */ CFUUIDRef deviceUUID; /* Device UUID */ CFDictionarySetValue(device_name, CFSTR("en_US"), printer_name); deviceDict = CFDictionaryCreate(kCFAllocatorDefault, (const void **)deviceDictKeys, (const void **)deviceDictVals, sizeof(deviceDictKeys) / sizeof(deviceDictKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); deviceUUID = ColorSyncCreateUUIDFromUInt32(device_id); if (!deviceDict || !deviceUUID || !ColorSyncRegisterDevice(kColorSyncPrinterDeviceClass, deviceUUID, deviceDict)) error = 1001; if (deviceUUID) CFRelease(deviceUUID); if (deviceDict) CFRelease(deviceDict); } else error = 1000; /* * Clean up... */ if (error != noErr) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to register ICC color profiles for \"%s\": %d", p->name, (int)error); if (printer_name) CFRelease(printer_name); if (device_name) CFRelease(device_name); } /* * Free any memory we used... */ CFRelease(profiles); ppdClose(ppd); } /* * 'apple_unregister_profiles()' - Remove color profiles for the specified * printer. */ static void apple_unregister_profiles( cupsd_printer_t *p) /* I - Printer */ { /* * Make sure ColorSync is available... */ if (&ColorSyncUnregisterDevice != NULL) { CFUUIDRef deviceUUID; /* Device UUID */ deviceUUID = ColorSyncCreateUUIDFromUInt32(_ppdHashName(p->name)); if (deviceUUID) { ColorSyncUnregisterDevice(kColorSyncPrinterDeviceClass, deviceUUID); CFRelease(deviceUUID); } } } #elif defined(HAVE_DBUS) /* * 'colord_create_device()' - Create a device and register profiles. */ static void colord_create_device( cupsd_printer_t *p, /* I - Printer */ ppd_file_t *ppd, /* I - PPD file */ cups_array_t *profiles, /* I - Profiles array */ const char *colorspace, /* I - Device colorspace, e.g. 'rgb' */ char **format, /* I - Device qualifier format */ const char *relation, /* I - Profile relation, either 'soft' or 'hard' */ const char *scope) /* I - The scope of the device, e.g. 'normal', 'temp' or 'disk' */ { DBusMessage *message = NULL; /* D-Bus request */ DBusMessage *reply = NULL; /* D-Bus reply */ DBusMessageIter args; /* D-Bus method arguments */ DBusMessageIter dict; /* D-Bus method arguments */ DBusError error; /* D-Bus error */ const char *device_path; /* Device object path */ const char *profile_path; /* Profile path */ char device_id[1024]; /* Device ID as understood by colord */ char format_str[1024]; /* Qualifier format as a string */ /* * Create the device... */ snprintf(device_id, sizeof(device_id), "cups-%s", p->name); device_path = device_id; message = dbus_message_new_method_call(COLORD_DBUS_SERVICE, COLORD_DBUS_PATH, COLORD_DBUS_INTERFACE, "CreateDevice"); dbus_message_iter_init_append(message, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &device_path); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &scope); snprintf(format_str, sizeof(format_str), "%s.%s.%s", format[0], format[1], format[2]); dbus_message_iter_open_container(&args, DBUS_TYPE_ARRAY, "{ss}", &dict); colord_dict_add_strings(&dict, "Colorspace", colorspace); colord_dict_add_strings(&dict, "Mode", COLORD_MODE_PHYSICAL); if (ppd->manufacturer) colord_dict_add_strings(&dict, "Vendor", ppd->manufacturer); if (ppd->modelname) colord_dict_add_strings(&dict, "Model", ppd->modelname); if (p->sanitized_device_uri) colord_dict_add_strings(&dict, "Serial", p->sanitized_device_uri); colord_dict_add_strings(&dict, "Format", format_str); colord_dict_add_strings(&dict, "Kind", COLORD_KIND_PRINTER); dbus_message_iter_close_container(&args, &dict); /* * Send the CreateDevice request synchronously... */ dbus_error_init(&error); cupsdLogMessage(CUPSD_LOG_DEBUG, "Calling CreateDevice(%s,%s)", device_id, scope); reply = dbus_connection_send_with_reply_and_block(colord_con, message, COLORD_DBUS_TIMEOUT, &error); if (!reply) { cupsdLogMessage(CUPSD_LOG_WARN, "CreateDevice failed: %s:%s", error.name, error.message); dbus_error_free(&error); goto out; } /* * Get reply data... */ dbus_message_iter_init(reply, &args); if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_OBJECT_PATH) { cupsdLogMessage(CUPSD_LOG_WARN, "CreateDevice failed: Incorrect reply type."); goto out; } dbus_message_iter_get_basic(&args, &device_path); cupsdLogMessage(CUPSD_LOG_DEBUG, "Created device \"%s\".", device_path); /* * Add profiles... */ for (profile_path = cupsArrayFirst(profiles); profile_path; profile_path = cupsArrayNext(profiles)) { colord_device_add_profile(device_path, profile_path, relation); } out: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); } /* * 'colord_create_profile()' - Create a color profile for a printer. */ static void colord_create_profile( cups_array_t *profiles, /* I - Profiles array */ const char *printer_name, /* I - Printer name */ const char *qualifier, /* I - Profile qualifier */ const char *colorspace, /* I - Profile colorspace */ char **format, /* I - Profile qualifier format */ const char *iccfile, /* I - ICC filename */ const char *scope) /* I - The scope of the profile, e.g. 'normal', 'temp' or 'disk' */ { DBusMessage *message = NULL; /* D-Bus request */ DBusMessage *reply = NULL; /* D-Bus reply */ DBusMessageIter args; /* D-Bus method arguments */ DBusMessageIter dict; /* D-Bus method arguments */ DBusError error; /* D-Bus error */ char *idstr; /* Profile ID string */ size_t idstrlen; /* Profile ID allocated length */ const char *profile_path; /* Device object path */ char format_str[1024]; /* Qualifier format as a string */ /* * Create the profile... */ message = dbus_message_new_method_call(COLORD_DBUS_SERVICE, COLORD_DBUS_PATH, COLORD_DBUS_INTERFACE, "CreateProfile"); idstrlen = strlen(printer_name) + 1 + strlen(qualifier) + 1; if ((idstr = malloc(idstrlen)) == NULL) goto out; snprintf(idstr, idstrlen, "%s-%s", printer_name, qualifier); cupsdLogMessage(CUPSD_LOG_DEBUG, "Using profile ID \"%s\".", idstr); dbus_message_iter_init_append(message, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &idstr); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &scope); snprintf(format_str, sizeof(format_str), "%s.%s.%s", format[0], format[1], format[2]); dbus_message_iter_open_container(&args, DBUS_TYPE_ARRAY, "{ss}", &dict); colord_dict_add_strings(&dict, "Qualifier", qualifier); colord_dict_add_strings(&dict, "Format", format_str); colord_dict_add_strings(&dict, "Colorspace", colorspace); if (iccfile) colord_dict_add_strings(&dict, "Filename", iccfile); dbus_message_iter_close_container(&args, &dict); /* * Send the CreateProfile request synchronously... */ dbus_error_init(&error); cupsdLogMessage(CUPSD_LOG_DEBUG, "Calling CreateProfile(%s,%s)", idstr, scope); reply = dbus_connection_send_with_reply_and_block(colord_con, message, COLORD_DBUS_TIMEOUT, &error); if (!reply) { cupsdLogMessage(CUPSD_LOG_WARN, "CreateProfile failed: %s:%s", error.name, error.message); dbus_error_free(&error); goto out; } /* * Get reply data... */ dbus_message_iter_init(reply, &args); if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_OBJECT_PATH) { cupsdLogMessage(CUPSD_LOG_WARN, "CreateProfile failed: Incorrect reply type."); goto out; } dbus_message_iter_get_basic(&args, &profile_path); cupsdLogMessage(CUPSD_LOG_DEBUG, "Created profile \"%s\".", profile_path); cupsArrayAdd(profiles, strdup(profile_path)); out: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); if (idstr) free(idstr); } /* * 'colord_delete_device()' - Delete a device */ static void colord_delete_device( const char *device_id) /* I - Device ID string */ { DBusMessage *message = NULL; /* D-Bus request */ DBusMessage *reply = NULL; /* D-Bus reply */ DBusMessageIter args; /* D-Bus method arguments */ DBusError error; /* D-Bus error */ char *device_path; /* Device object path */ /* * Find the device... */ if ((device_path = colord_find_device(device_id)) == NULL) goto out; /* * Delete the device... */ message = dbus_message_new_method_call(COLORD_DBUS_SERVICE, COLORD_DBUS_PATH, COLORD_DBUS_INTERFACE, "DeleteDevice"); dbus_message_iter_init_append(message, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_OBJECT_PATH, &device_path); /* * Send the DeleteDevice request synchronously... */ dbus_error_init(&error); cupsdLogMessage(CUPSD_LOG_DEBUG, "Calling DeleteDevice(%s)", device_path); reply = dbus_connection_send_with_reply_and_block(colord_con, message, COLORD_DBUS_TIMEOUT, &error); if (!reply) { cupsdLogMessage(CUPSD_LOG_DEBUG, "DeleteDevice failed: %s:%s", error.name, error.message); dbus_error_free(&error); goto out; } out: if (device_path) free(device_path); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); } /* * 'colord_device_add_profile()' - Assign a profile to a device. */ static void colord_device_add_profile( const char *device_path, /* I - Device object path */ const char *profile_path, /* I - Profile object path */ const char *relation) /* I - Device relation, either 'soft' or 'hard' */ { DBusMessage *message = NULL; /* D-Bus request */ DBusMessage *reply = NULL; /* D-Bus reply */ DBusMessageIter args; /* D-Bus method arguments */ DBusError error; /* D-Bus error */ message = dbus_message_new_method_call(COLORD_DBUS_SERVICE, device_path, COLORD_DBUS_INTERFACE_DEVICE, "AddProfile"); dbus_message_iter_init_append(message, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &relation); dbus_message_iter_append_basic(&args, DBUS_TYPE_OBJECT_PATH, &profile_path); cupsdLogMessage(CUPSD_LOG_DEBUG, "Calling %s:AddProfile(%s) [%s]", device_path, profile_path, relation); /* * Send the AddProfile request synchronously... */ dbus_error_init(&error); reply = dbus_connection_send_with_reply_and_block(colord_con, message, COLORD_DBUS_TIMEOUT, &error); if (!reply) { cupsdLogMessage(CUPSD_LOG_WARN, "AddProfile failed: %s:%s", error.name, error.message); dbus_error_free(&error); goto out; } out: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); } /* * 'colord_dict_add_strings()' - Add two strings to a dictionary. */ static void colord_dict_add_strings( DBusMessageIter *dict, /* I - Dictionary */ const char *key, /* I - Key string */ const char *value) /* I - Value string */ { DBusMessageIter entry; /* Entry to add */ dbus_message_iter_open_container(dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry); dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &key); dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &value); dbus_message_iter_close_container(dict, &entry); } /* * 'colord_find_device()' - Finds a device */ static char * /* O - Device path or NULL */ colord_find_device( const char *device_id) /* I - Device ID string */ { DBusMessage *message = NULL; /* D-Bus request */ DBusMessage *reply = NULL; /* D-Bus reply */ DBusMessageIter args; /* D-Bus method arguments */ DBusError error; /* D-Bus error */ const char *device_path_tmp; /* Device object path */ char *device_path = NULL; /* Device object path */ message = dbus_message_new_method_call(COLORD_DBUS_SERVICE, COLORD_DBUS_PATH, COLORD_DBUS_INTERFACE, "FindDeviceById"); dbus_message_iter_init_append(message, &args); dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &device_id); /* * Send the FindDeviceById request synchronously... */ dbus_error_init(&error); cupsdLogMessage(CUPSD_LOG_DEBUG, "Calling FindDeviceById(%s)", device_id); reply = dbus_connection_send_with_reply_and_block(colord_con, message, COLORD_DBUS_TIMEOUT, &error); if (!reply) { cupsdLogMessage(CUPSD_LOG_DEBUG, "FindDeviceById failed: %s:%s", error.name, error.message); dbus_error_free(&error); goto out; } /* * Get reply data... */ dbus_message_iter_init(reply, &args); if (dbus_message_iter_get_arg_type(&args) != DBUS_TYPE_OBJECT_PATH) { cupsdLogMessage(CUPSD_LOG_WARN, "FindDeviceById failed: Incorrect reply type."); goto out; } dbus_message_iter_get_basic(&args, &device_path_tmp); if (device_path_tmp) device_path = strdup(device_path_tmp); out: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return (device_path); } /* * 'colord_get_qualifier_format()' - Get the qualifier format. * * Note: Returns a value of "ColorSpace.MediaType.Resolution" by default. */ static void colord_get_qualifier_format( ppd_file_t *ppd, /* I - PPD file data */ char *format[3]) /* I - Format tuple */ { const char *tmp; /* Temporary string */ ppd_attr_t *attr; /* Profile attributes */ /* * Get 1st section... */ if ((attr = ppdFindAttr(ppd, "cupsICCQualifier1", NULL)) != NULL) tmp = attr->value; else if (ppdFindAttr(ppd, "DefaultColorModel", NULL)) tmp = "ColorModel"; else if (ppdFindAttr(ppd, "DefaultColorSpace", NULL)) tmp = "ColorSpace"; else tmp = ""; format[0] = strdup(tmp); /* * Get 2nd section... */ if ((attr = ppdFindAttr(ppd, "cupsICCQualifier2", NULL)) != NULL) tmp = attr->value; else tmp = "MediaType"; format[1] = strdup(tmp); /* * Get 3rd section... */ if ((attr = ppdFindAttr(ppd, "cupsICCQualifier3", NULL)) != NULL) tmp = attr->value; else tmp = "Resolution"; format[2] = strdup(tmp); } /* * 'colord_register_printer()' - Register profiles for a printer. */ static void colord_register_printer( cupsd_printer_t *p) /* I - printer */ { char ppdfile[1024], /* PPD filename */ iccfile[1024]; /* ICC filename */ ppd_file_t *ppd; /* PPD file */ cups_array_t *profiles; /* Profile paths array */ ppd_attr_t *attr; /* Profile attributes */ const char *device_colorspace; /* Device colorspace */ char *format[3]; /* Qualifier format tuple */ /* * Ensure we have a D-Bus connection... */ if (!colord_con) return; /* * Try opening the PPD file for this printer... */ snprintf(ppdfile, sizeof(ppdfile), "%s/ppd/%s.ppd", ServerRoot, p->name); if ((ppd = _ppdOpenFile(ppdfile, _PPD_LOCALIZATION_ICC_PROFILES)) == NULL) return; /* * Find out the qualifier format */ colord_get_qualifier_format(ppd, format); /* * See if we have any embedded profiles... */ profiles = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) if (attr->spec[0] && attr->value && attr->value[0]) { if (attr->value[0] != '/') snprintf(iccfile, sizeof(iccfile), "%s/profiles/%s", DataDir, attr->value); else strlcpy(iccfile, attr->value, sizeof(iccfile)); if (_cupsFileCheck(iccfile, _CUPS_FILE_CHECK_FILE, !RunUser, cupsdLogFCMessage, p)) continue; colord_create_profile(profiles, p->name, attr->spec, COLORD_SPACE_UNKNOWN, format, iccfile, COLORD_SCOPE_TEMP); } /* * Add the grayscale profile first. We always have a grayscale profile. */ colord_create_profile(profiles, p->name, "Gray..", COLORD_SPACE_GRAY, format, NULL, COLORD_SCOPE_TEMP); /* * Then add the RGB/CMYK/DeviceN color profile... */ device_colorspace = "unknown"; switch (ppd->colorspace) { case PPD_CS_RGB : case PPD_CS_CMY : device_colorspace = COLORD_SPACE_RGB; colord_create_profile(profiles, p->name, "RGB..", COLORD_SPACE_RGB, format, NULL, COLORD_SCOPE_TEMP); break; case PPD_CS_RGBK : case PPD_CS_CMYK : device_colorspace = COLORD_SPACE_CMYK; colord_create_profile(profiles, p->name, "CMYK..", COLORD_SPACE_CMYK, format, NULL, COLORD_SCOPE_TEMP); break; case PPD_CS_GRAY : device_colorspace = COLORD_SPACE_GRAY; break; case PPD_CS_N : colord_create_profile(profiles, p->name, "DeviceN..", COLORD_SPACE_UNKNOWN, format, NULL, COLORD_SCOPE_TEMP); break; } /* * Register the device with colord. */ cupsdLogMessage(CUPSD_LOG_INFO, "Registering ICC color profiles for \"%s\".", p->name); colord_create_device(p, ppd, profiles, device_colorspace, format, COLORD_RELATION_SOFT, COLORD_SCOPE_TEMP); /* * Free any memory we used... */ cupsArrayDelete(profiles); free(format[0]); free(format[1]); free(format[2]); ppdClose(ppd); } /* * 'colord_unregister_printer()' - Unregister profiles for a printer. */ static void colord_unregister_printer( cupsd_printer_t *p) /* I - printer */ { char device_id[1024]; /* Device ID as understood by colord */ /* * Ensure we have a D-Bus connection... */ if (!colord_con) return; /* * Just delete the device itself, and leave the profiles registered */ snprintf(device_id, sizeof(device_id), "cups-%s", p->name); colord_delete_device(device_id); } #endif /* __APPLE__ */ cups-2.4.7/scheduler/client.h0000644000175000017500000001125414502571342015771 0ustar zdohnalzdohnal/* * Client definitions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifdef HAVE_AUTHORIZATION_H # include #endif /* HAVE_AUTHORIZATION_H */ /* * HTTP client structure... */ struct cupsd_client_s { int number; /* Connection number */ http_t *http; /* HTTP client connection */ ipp_t *request, /* IPP request information */ *response; /* IPP response information */ cupsd_location_t *best; /* Best match for AAA */ struct timeval start; /* Request start time */ http_state_t operation; /* Request operation */ off_t bytes; /* Bytes transferred for this request */ int is_browser; /* Is the client a web browser? */ int type; /* AuthType for username */ char username[HTTP_MAX_VALUE], /* Username from Authorization: line */ password[HTTP_MAX_VALUE], /* Password from Authorization: line */ uri[HTTP_MAX_URI], /* Localized URL/URI for GET/PUT */ *filename, /* Filename of output file */ *command, /* Command to run */ *options, /* Options for command */ *query_string; /* QUERY_STRING environment variable */ int file; /* Input/output file */ int file_ready; /* Input ready on file/pipe? */ int pipe_pid; /* Pipe process ID (or 0 if not a pipe) */ http_status_t pipe_status; /* HTTP status from pipe process */ int sent_header, /* Non-zero if sent HTTP header */ got_fields, /* Non-zero if all fields seen */ header_used; /* Number of header bytes used */ char header[2048]; /* Header from CGI program */ cups_lang_t *language; /* Language to use */ #ifdef HAVE_TLS int auto_ssl; /* Automatic test for SSL/TLS */ #endif /* HAVE_TLS */ http_addr_t clientaddr; /* Client's server address */ char clientname[256];/* Client's server name for connection */ int clientport; /* Client's server port for connection */ char servername[256];/* Server name for connection */ int serverport; /* Server port for connection */ #ifdef HAVE_GSSAPI int have_gss; /* Have GSS credentials? */ uid_t gss_uid; /* User ID for local prints */ #endif /* HAVE_GSSAPI */ #ifdef HAVE_AUTHORIZATION_H AuthorizationRef authref; /* Authorization ref */ #endif /* HAVE_AUTHORIZATION_H */ }; #define HTTP(con) ((con)->http) /* * HTTP listener structure... */ typedef struct { int fd; /* File descriptor for this server */ http_addr_t address; /* Bind address of socket */ http_encryption_t encryption; /* To encrypt or not to encrypt... */ #ifdef HAVE_ONDEMAND int on_demand; /* Is this a socket from launchd/systemd/upstart? */ #endif /* HAVE_ONDEMAND */ } cupsd_listener_t; /* * Globals... */ VAR int LastClientNumber VALUE(0), /* Last client connection number */ LocalPort VALUE(631), /* Local port to use */ RemotePort VALUE(0); /* Remote port to use */ VAR http_encryption_t LocalEncryption VALUE(HTTP_ENCRYPT_IF_REQUESTED); /* Local port encryption to use */ VAR cups_array_t *Listeners VALUE(NULL); /* Listening sockets */ VAR time_t ListeningPaused VALUE(0); /* Time when listening was paused */ VAR cups_array_t *Clients VALUE(NULL), /* HTTP clients */ *ActiveClients VALUE(NULL); /* Active HTTP clients */ VAR char *ServerHeader VALUE(NULL); /* Server header in requests */ VAR int CGIPipes[2] VALUE2(-1,-1); /* Pipes for CGI error/debug output */ VAR cupsd_statbuf_t *CGIStatusBuffer VALUE(NULL); /* Status buffer for pipes */ /* * Prototypes... */ extern void cupsdAcceptClient(cupsd_listener_t *lis); extern void cupsdCloseAllClients(void); extern int cupsdCloseClient(cupsd_client_t *con); extern void cupsdDeleteAllListeners(void); extern void cupsdPauseListening(void); extern int cupsdProcessIPPRequest(cupsd_client_t *con); extern void cupsdReadClient(cupsd_client_t *con); extern void cupsdResumeListening(void); extern int cupsdSendCommand(cupsd_client_t *con, char *command, char *options, int root); extern int cupsdSendError(cupsd_client_t *con, http_status_t code, int auth_type); extern int cupsdSendHeader(cupsd_client_t *con, http_status_t code, char *type, int auth_type); extern void cupsdShutdownClient(cupsd_client_t *con); extern void cupsdStartListening(void); extern void cupsdStopListening(void); extern void cupsdUpdateCGI(void); extern void cupsdWriteClient(cupsd_client_t *con); #ifdef HAVE_TLS extern int cupsdEndTLS(cupsd_client_t *con); extern int cupsdStartTLS(cupsd_client_t *con); #endif /* HAVE_TLS */ cups-2.4.7/scheduler/client.c0000644000175000017500000027573314502571342016002 0ustar zdohnalzdohnal/* * Client routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by * Jelmer Vernooij. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #define _CUPS_NO_DEPRECATED #define _HTTP_NO_PRIVATE #include "cupsd.h" #ifdef __APPLE__ # include #endif /* __APPLE__ */ #ifdef HAVE_TCPD_H # include #endif /* HAVE_TCPD_H */ /* * Local functions... */ static int check_if_modified(cupsd_client_t *con, struct stat *filestats); static int compare_clients(cupsd_client_t *a, cupsd_client_t *b, void *data); #ifdef HAVE_TLS static int cupsd_start_tls(cupsd_client_t *con, http_encryption_t e); #endif /* HAVE_TLS */ static char *get_file(cupsd_client_t *con, struct stat *filestats, char *filename, size_t len); static http_status_t install_cupsd_conf(cupsd_client_t *con); static int is_cgi(cupsd_client_t *con, const char *filename, struct stat *filestats, mime_type_t *type); static int is_path_absolute(const char *path); static int pipe_command(cupsd_client_t *con, int infile, int *outfile, char *command, char *options, int root); static int valid_host(cupsd_client_t *con); static int write_file(cupsd_client_t *con, http_status_t code, char *filename, char *type, struct stat *filestats); static void write_pipe(cupsd_client_t *con); /* * 'cupsdAcceptClient()' - Accept a new client. */ void cupsdAcceptClient(cupsd_listener_t *lis)/* I - Listener socket */ { const char *hostname; /* Hostname of client */ char name[256]; /* Hostname of client */ int count; /* Count of connections on a host */ cupsd_client_t *con, /* New client pointer */ *tempcon; /* Temporary client pointer */ socklen_t addrlen; /* Length of address */ http_addr_t temp; /* Temporary address variable */ static time_t last_dos = 0; /* Time of last DoS attack */ #ifdef HAVE_TCPD_H struct request_info wrap_req; /* TCP wrappers request information */ #endif /* HAVE_TCPD_H */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAcceptClient(lis=%p(%d)) Clients=%d", lis, lis->fd, cupsArrayCount(Clients)); /* * Make sure we don't have a full set of clients already... */ if (cupsArrayCount(Clients) == MaxClients) return; cupsdSetBusyState(1); /* * Get a pointer to the next available client... */ if (!Clients) Clients = cupsArrayNew(NULL, NULL); if (!Clients) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for clients array!"); cupsdPauseListening(); return; } if (!ActiveClients) ActiveClients = cupsArrayNew((cups_array_func_t)compare_clients, NULL); if (!ActiveClients) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for active clients array!"); cupsdPauseListening(); return; } if ((con = calloc(1, sizeof(cupsd_client_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for client!"); cupsdPauseListening(); return; } /* * Accept the client and get the remote address... */ con->number = ++ LastClientNumber; con->file = -1; if ((con->http = httpAcceptConnection(lis->fd, 0)) == NULL) { if (errno == ENFILE || errno == EMFILE) cupsdPauseListening(); cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to accept client connection - %s.", strerror(errno)); free(con); return; } /* * Save the connected address and port number... */ addrlen = sizeof(con->clientaddr); if (getsockname(httpGetFd(con->http), (struct sockaddr *)&con->clientaddr, &addrlen) || addrlen == 0) con->clientaddr = lis->address; cupsdLogClient(con, CUPSD_LOG_DEBUG, "Server address is \"%s\".", httpAddrString(&con->clientaddr, name, sizeof(name))); /* * Check the number of clients on the same address... */ for (count = 0, tempcon = (cupsd_client_t *)cupsArrayFirst(Clients); tempcon; tempcon = (cupsd_client_t *)cupsArrayNext(Clients)) if (httpAddrEqual(httpGetAddress(tempcon->http), httpGetAddress(con->http))) { count ++; if (count >= MaxClientsPerHost) break; } if (count >= MaxClientsPerHost) { if ((time(NULL) - last_dos) >= 60) { last_dos = time(NULL); cupsdLogMessage(CUPSD_LOG_WARN, "Possible DoS attack - more than %d clients connecting " "from %s.", MaxClientsPerHost, httpGetHostname(con->http, name, sizeof(name))); } httpClose(con->http); free(con); return; } /* * Get the hostname or format the IP address as needed... */ if (HostNameLookups) hostname = httpResolveHostname(con->http, NULL, 0); else hostname = httpGetHostname(con->http, NULL, 0); if (hostname == NULL && HostNameLookups == 2) { /* * Can't have an unresolved IP address with double-lookups enabled... */ cupsdLogClient(con, CUPSD_LOG_WARN, "Name lookup failed - closing connection from %s!", httpGetHostname(con->http, NULL, 0)); httpClose(con->http); free(con); return; } if (HostNameLookups == 2) { /* * Do double lookups as needed... */ http_addrlist_t *addrlist, /* List of addresses */ *addr; /* Current address */ if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, NULL)) != NULL) { /* * See if the hostname maps to the same IP address... */ for (addr = addrlist; addr; addr = addr->next) if (httpAddrEqual(httpGetAddress(con->http), &(addr->addr))) break; } else addr = NULL; httpAddrFreeList(addrlist); if (!addr) { /* * Can't have a hostname that doesn't resolve to the same IP address * with double-lookups enabled... */ cupsdLogClient(con, CUPSD_LOG_WARN, "IP lookup failed - closing connection from %s!", httpGetHostname(con->http, NULL, 0)); httpClose(con->http); free(con); return; } } #ifdef HAVE_TCPD_H /* * See if the connection is denied by TCP wrappers... */ request_init(&wrap_req, RQ_DAEMON, "cupsd", RQ_FILE, httpGetFd(con->http), NULL); fromhost(&wrap_req); if (!hosts_access(&wrap_req)) { cupsdLogClient(con, CUPSD_LOG_WARN, "Connection from %s refused by /etc/hosts.allow and " "/etc/hosts.deny rules.", httpGetHostname(con->http, NULL, 0)); httpClose(con->http); free(con); return; } #endif /* HAVE_TCPD_H */ #ifdef AF_LOCAL if (httpAddrFamily(httpGetAddress(con->http)) == AF_LOCAL) { # ifdef __APPLE__ socklen_t peersize; /* Size of peer credentials */ pid_t peerpid; /* Peer process ID */ char peername[256]; /* Name of process */ peersize = sizeof(peerpid); if (!getsockopt(httpGetFd(con->http), SOL_LOCAL, LOCAL_PEERPID, &peerpid, &peersize)) { if (!proc_name((int)peerpid, peername, sizeof(peername))) cupsdLogClient(con, CUPSD_LOG_DEBUG, "Accepted from %s (Domain ???[%d])", httpGetHostname(con->http, NULL, 0), (int)peerpid); else cupsdLogClient(con, CUPSD_LOG_DEBUG, "Accepted from %s (Domain %s[%d])", httpGetHostname(con->http, NULL, 0), peername, (int)peerpid); } else # endif /* __APPLE__ */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Accepted from %s (Domain)", httpGetHostname(con->http, NULL, 0)); } else #endif /* AF_LOCAL */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Accepted from %s:%d (IPv%d)", httpGetHostname(con->http, NULL, 0), httpAddrPort(httpGetAddress(con->http)), httpAddrFamily(httpGetAddress(con->http)) == AF_INET ? 4 : 6); /* * Get the local address the client connected to... */ addrlen = sizeof(temp); if (getsockname(httpGetFd(con->http), (struct sockaddr *)&temp, &addrlen)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to get local address - %s", strerror(errno)); strlcpy(con->servername, "localhost", sizeof(con->servername)); con->serverport = LocalPort; } #ifdef AF_LOCAL else if (httpAddrFamily(&temp) == AF_LOCAL) { strlcpy(con->servername, "localhost", sizeof(con->servername)); con->serverport = LocalPort; } #endif /* AF_LOCAL */ else { if (httpAddrLocalhost(&temp)) strlcpy(con->servername, "localhost", sizeof(con->servername)); else if (HostNameLookups) httpAddrLookup(&temp, con->servername, sizeof(con->servername)); else httpAddrString(&temp, con->servername, sizeof(con->servername)); con->serverport = httpAddrPort(&(lis->address)); } /* * Add the connection to the array of active clients... */ cupsArrayAdd(Clients, con); /* * Add the socket to the server select. */ cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, NULL, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Waiting for request."); /* * Temporarily suspend accept()'s until we lose a client... */ if (cupsArrayCount(Clients) == MaxClients) cupsdPauseListening(); #ifdef HAVE_TLS /* * See if we are connecting on a secure port... */ if (lis->encryption == HTTP_ENCRYPTION_ALWAYS) { /* * https connection; go secure... */ if (cupsd_start_tls(con, HTTP_ENCRYPTION_ALWAYS)) cupsdCloseClient(con); } else con->auto_ssl = 1; #endif /* HAVE_TLS */ } /* * 'cupsdCloseAllClients()' - Close all remote clients immediately. */ void cupsdCloseAllClients(void) { cupsd_client_t *con; /* Current client */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCloseAllClients() Clients=%d", cupsArrayCount(Clients)); for (con = (cupsd_client_t *)cupsArrayFirst(Clients); con; con = (cupsd_client_t *)cupsArrayNext(Clients)) if (cupsdCloseClient(con)) cupsdCloseClient(con); } /* * 'cupsdCloseClient()' - Close a remote client. */ int /* O - 1 if partial close, 0 if fully closed */ cupsdCloseClient(cupsd_client_t *con) /* I - Client to close */ { int partial; /* Do partial close for SSL? */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing connection."); /* * Flush pending writes before closing... */ httpFlushWrite(con->http); partial = 0; if (con->pipe_pid != 0) { /* * Stop any CGI process... */ cupsdEndProcess(con->pipe_pid, 1); con->pipe_pid = 0; } if (con->file >= 0) { cupsdRemoveSelect(con->file); close(con->file); con->file = -1; } /* * Close the socket and clear the file from the input set for select()... */ if (httpGetFd(con->http) >= 0) { cupsArrayRemove(ActiveClients, con); cupsdSetBusyState(0); #ifdef HAVE_TLS /* * Shutdown encryption as needed... */ if (httpIsEncrypted(con->http)) partial = 1; #endif /* HAVE_TLS */ if (partial) { /* * Only do a partial close so that the encrypted client gets everything. */ httpShutdown(con->http); cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, NULL, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Waiting for socket close."); } else { /* * Shut the socket down fully... */ cupsdRemoveSelect(httpGetFd(con->http)); httpClose(con->http); con->http = NULL; } } if (!partial) { /* * Free memory... */ cupsdRemoveSelect(httpGetFd(con->http)); httpClose(con->http); if (con->filename) { unlink(con->filename); cupsdClearString(&con->filename); } cupsdClearString(&con->command); cupsdClearString(&con->options); cupsdClearString(&con->query_string); if (con->request) { ippDelete(con->request); con->request = NULL; } if (con->response) { ippDelete(con->response); con->response = NULL; } if (con->language) { cupsLangFree(con->language); con->language = NULL; } #ifdef HAVE_AUTHORIZATION_H if (con->authref) { AuthorizationFree(con->authref, kAuthorizationFlagDefaults); con->authref = NULL; } #endif /* HAVE_AUTHORIZATION_H */ /* * Re-enable new client connections if we are going back under the * limit... */ if (cupsArrayCount(Clients) == MaxClients) cupsdResumeListening(); /* * Compact the list of clients as necessary... */ cupsArrayRemove(Clients, con); free(con); } return (partial); } /* * 'cupsdReadClient()' - Read data from a client. */ void cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */ { char line[32768], /* Line from client... */ locale[64], /* Locale */ *ptr; /* Pointer into strings */ http_status_t status; /* Transfer status */ ipp_state_t ipp_state; /* State of IPP transfer */ int bytes; /* Number of bytes to POST */ char *filename; /* Name of file for GET/HEAD */ char buf[1024]; /* Buffer for real filename */ struct stat filestats; /* File information */ mime_type_t *type; /* MIME type of file */ static unsigned request_id = 0; /* Request ID for temp files */ status = HTTP_STATUS_CONTINUE; cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cupsdReadClient: error=%d, used=%d, state=%s, data_encoding=HTTP_ENCODING_%s, data_remaining=" CUPS_LLFMT ", request=%p(%s), file=%d", httpError(con->http), (int)httpGetReady(con->http), httpStateString(httpGetState(con->http)), httpIsChunked(con->http) ? "CHUNKED" : "LENGTH", CUPS_LLCAST httpGetRemaining(con->http), con->request, con->request ? ippStateString(ippGetState(con->request)) : "", con->file); if (httpError(con->http) == EPIPE && !httpGetReady(con->http) && recv(httpGetFd(con->http), buf, 1, MSG_PEEK) < 1) { /* * Connection closed... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on EOF."); cupsdCloseClient(con); return; } if (httpGetState(con->http) == HTTP_STATE_GET_SEND || httpGetState(con->http) == HTTP_STATE_POST_SEND || httpGetState(con->http) == HTTP_STATE_STATUS) { /* * If we get called in the wrong state, then something went wrong with the * connection and we need to shut it down... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on unexpected HTTP read state %s.", httpStateString(httpGetState(con->http))); cupsdCloseClient(con); return; } #ifdef HAVE_TLS if (con->auto_ssl) { /* * Automatically check for a SSL/TLS handshake... */ con->auto_ssl = 0; if (recv(httpGetFd(con->http), buf, 1, MSG_PEEK) == 1 && (!buf[0] || !strchr("DGHOPT", buf[0]))) { /* * Encrypt this connection... */ cupsdLogClient(con, CUPSD_LOG_DEBUG2, "Saw first byte %02X, auto-negotiating SSL/TLS session.", buf[0] & 255); if (cupsd_start_tls(con, HTTP_ENCRYPTION_ALWAYS)) cupsdCloseClient(con); return; } } #endif /* HAVE_TLS */ switch (httpGetState(con->http)) { case HTTP_STATE_WAITING : /* * See if we've received a request line... */ con->operation = httpReadRequest(con->http, con->uri, sizeof(con->uri)); if (con->operation == HTTP_STATE_ERROR || con->operation == HTTP_STATE_UNKNOWN_METHOD || con->operation == HTTP_STATE_UNKNOWN_VERSION) { if (httpError(con->http)) cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_WAITING Closing for error %d (%s)", httpError(con->http), strerror(httpError(con->http))); else cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_WAITING Closing on error: %s", cupsLastErrorString()); cupsdCloseClient(con); return; } /* * Ignore blank request lines... */ if (con->operation == HTTP_STATE_WAITING) break; /* * Clear other state variables... */ con->bytes = 0; con->file = -1; con->file_ready = 0; con->pipe_pid = 0; con->username[0] = '\0'; con->password[0] = '\0'; cupsdClearString(&con->command); cupsdClearString(&con->options); cupsdClearString(&con->query_string); if (con->request) { ippDelete(con->request); con->request = NULL; } if (con->response) { ippDelete(con->response); con->response = NULL; } if (con->language) { cupsLangFree(con->language); con->language = NULL; } #ifdef HAVE_GSSAPI con->have_gss = 0; con->gss_uid = 0; #endif /* HAVE_GSSAPI */ /* * Handle full URLs in the request line... */ if (strcmp(con->uri, "*")) { char scheme[HTTP_MAX_URI], /* Method/scheme */ userpass[HTTP_MAX_URI], /* Username:password */ hostname[HTTP_MAX_URI], /* Hostname */ resource[HTTP_MAX_URI]; /* Resource path */ int port; /* Port number */ /* * Separate the URI into its components... */ if (httpSeparateURI(HTTP_URI_CODING_MOST, con->uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Bad URI \"%s\" in request.", con->uri); cupsdSendError(con, HTTP_STATUS_METHOD_NOT_ALLOWED, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } /* * Only allow URIs with the servername, localhost, or an IP * address... */ if (strcmp(scheme, "file") && _cups_strcasecmp(hostname, ServerName) && _cups_strcasecmp(hostname, "localhost") && !cupsArrayFind(ServerAlias, hostname) && !isdigit(hostname[0]) && hostname[0] != '[') { /* * Nope, we don't do proxies... */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Bad URI \"%s\" in request.", con->uri); cupsdSendError(con, HTTP_STATUS_METHOD_NOT_ALLOWED, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } /* * Copy the resource portion back into the URI; both resource and * con->uri are HTTP_MAX_URI bytes in size... */ strlcpy(con->uri, resource, sizeof(con->uri)); } /* * Process the request... */ gettimeofday(&(con->start), NULL); cupsdLogClient(con, CUPSD_LOG_DEBUG, "%s %s HTTP/%d.%d", httpStateString(con->operation) + 11, con->uri, httpGetVersion(con->http) / 100, httpGetVersion(con->http) % 100); if (!cupsArrayFind(ActiveClients, con)) { cupsArrayAdd(ActiveClients, con); cupsdSetBusyState(0); } case HTTP_STATE_OPTIONS : case HTTP_STATE_DELETE : case HTTP_STATE_GET : case HTTP_STATE_HEAD : case HTTP_STATE_POST : case HTTP_STATE_PUT : case HTTP_STATE_TRACE : /* * Parse incoming parameters until the status changes... */ while ((status = httpUpdate(con->http)) == HTTP_STATUS_CONTINUE) if (!httpGetReady(con->http)) break; if (status != HTTP_STATUS_OK && status != HTTP_STATUS_CONTINUE) { if (httpError(con->http) && httpError(con->http) != EPIPE) cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing for error %d (%s) while reading headers.", httpError(con->http), strerror(httpError(con->http))); else cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on EOF while reading headers."); cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } break; default : if (!httpGetReady(con->http) && recv(httpGetFd(con->http), buf, 1, MSG_PEEK) < 1) { /* * Connection closed... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on EOF."); cupsdCloseClient(con); return; } break; /* Anti-compiler-warning-code */ } /* * Handle new transfers... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Read: status=%d, state=%d", status, httpGetState(con->http)); if (status == HTTP_STATUS_OK) { /* * Record whether the client is a web browser. "Mozilla" was the original * and it seems that every web browser in existence now uses that as the * prefix with additional information identifying *which* browser. * * Chrome (at least) has problems with multiple WWW-Authenticate values in * a single header, so we only report Basic or Negotiate to web browsers and * leave the multiple choices to the native CUPS client... */ con->is_browser = !strncmp(httpGetField(con->http, HTTP_FIELD_USER_AGENT), "Mozilla/", 8); if (httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE)[0]) { /* * Figure out the locale from the Accept-Language and Content-Type * fields... */ if ((ptr = strchr(httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE), ',')) != NULL) *ptr = '\0'; if ((ptr = strchr(httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE), ';')) != NULL) *ptr = '\0'; if ((ptr = strstr(httpGetField(con->http, HTTP_FIELD_CONTENT_TYPE), "charset=")) != NULL) { /* * Combine language and charset, and trim any extra params in the * content-type. */ snprintf(locale, sizeof(locale), "%s.%s", httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE), ptr + 8); if ((ptr = strchr(locale, ',')) != NULL) *ptr = '\0'; } else snprintf(locale, sizeof(locale), "%s.UTF-8", httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE)); con->language = cupsLangGet(locale); } else con->language = cupsLangGet(DefaultLocale); cupsdAuthorize(con); if (!_cups_strncasecmp(httpGetField(con->http, HTTP_FIELD_CONNECTION), "Keep-Alive", 10) && KeepAlive) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_ON); else if (!_cups_strncasecmp(httpGetField(con->http, HTTP_FIELD_CONNECTION), "close", 5)) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_OFF); if (!httpGetField(con->http, HTTP_FIELD_HOST)[0] && httpGetVersion(con->http) >= HTTP_VERSION_1_1) { /* * HTTP/1.1 and higher require the "Host:" field... */ if (!cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Missing Host: field in request."); cupsdCloseClient(con); return; } } else if (!valid_host(con)) { /* * Access to localhost must use "localhost" or the corresponding IPv4 * or IPv6 values in the Host: field. */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Request from \"%s\" using invalid Host: field \"%s\".", httpGetHostname(con->http, NULL, 0), httpGetField(con->http, HTTP_FIELD_HOST)); if (!cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else if (con->operation == HTTP_STATE_OPTIONS) { /* * Do OPTIONS command... */ if (con->best && con->best->type != CUPSD_AUTH_NONE) { httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_UNAUTHORIZED, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } if (!_cups_strcasecmp(httpGetField(con->http, HTTP_FIELD_CONNECTION), "Upgrade") && strstr(httpGetField(con->http, HTTP_FIELD_UPGRADE), "TLS/") != NULL && !httpIsEncrypted(con->http)) { #ifdef HAVE_TLS /* * Do encryption stuff... */ httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_SWITCHING_PROTOCOLS, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } if (cupsd_start_tls(con, HTTP_ENCRYPTION_REQUIRED)) { cupsdCloseClient(con); return; } #else if (!cupsdSendError(con, HTTP_STATUS_NOT_IMPLEMENTED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } #endif /* HAVE_TLS */ } httpClearFields(con->http); httpSetField(con->http, HTTP_FIELD_CONTENT_LENGTH, "0"); if (!cupsdSendHeader(con, HTTP_STATUS_OK, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else if (!is_path_absolute(con->uri)) { /* * Protect against malicious users! */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Request for non-absolute resource \"%s\".", con->uri); if (!cupsdSendError(con, HTTP_STATUS_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else { if (!_cups_strcasecmp(httpGetField(con->http, HTTP_FIELD_CONNECTION), "Upgrade") && !httpIsEncrypted(con->http)) { #ifdef HAVE_TLS /* * Do encryption stuff... */ httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_SWITCHING_PROTOCOLS, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } if (cupsd_start_tls(con, HTTP_ENCRYPTION_REQUIRED)) { cupsdCloseClient(con); return; } #else if (!cupsdSendError(con, HTTP_STATUS_NOT_IMPLEMENTED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } #endif /* HAVE_TLS */ } if ((status = cupsdIsAuthorized(con, NULL)) != HTTP_STATUS_OK) { cupsdSendError(con, status, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } if (httpGetExpect(con->http) && (con->operation == HTTP_STATE_POST || con->operation == HTTP_STATE_PUT)) { if (httpGetExpect(con->http) == HTTP_STATUS_CONTINUE) { /* * Send 100-continue header... */ if (httpWriteResponse(con->http, HTTP_STATUS_CONTINUE)) { cupsdCloseClient(con); return; } } else { /* * Send 417-expectation-failed header... */ httpClearFields(con->http); httpSetField(con->http, HTTP_FIELD_CONTENT_LENGTH, "0"); cupsdSendError(con, HTTP_STATUS_EXPECTATION_FAILED, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } } switch (httpGetState(con->http)) { case HTTP_STATE_GET_SEND : cupsdLogClient(con, CUPSD_LOG_DEBUG, "Processing GET %s", con->uri); if ((filename = get_file(con, &filestats, buf, sizeof(buf))) != NULL) { _cupsRWLockRead(&MimeDatabase->lock); type = mimeFileType(MimeDatabase, filename, NULL, NULL); _cupsRWUnlock(&MimeDatabase->lock); cupsdLogClient(con, CUPSD_LOG_DEBUG, "filename=\"%s\", type=%s/%s", filename, type ? type->super : "", type ? type->type : ""); if (is_cgi(con, filename, &filestats, type)) { /* * Note: con->command and con->options were set by is_cgi()... */ if (!cupsdSendCommand(con, con->command, con->options, 0)) { if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else cupsdLogRequest(con, HTTP_STATUS_OK); if (httpGetVersion(con->http) <= HTTP_VERSION_1_0) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_OFF); break; } if (!check_if_modified(con, &filestats)) { if (!cupsdSendError(con, HTTP_STATUS_NOT_MODIFIED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else { if (type == NULL) strlcpy(line, "text/plain", sizeof(line)); else snprintf(line, sizeof(line), "%s/%s", type->super, type->type); if (!write_file(con, HTTP_STATUS_OK, filename, line, &filestats)) { cupsdCloseClient(con); return; } } } else if (!buf[0] && (!strncmp(con->uri, "/admin", 6) || !strncmp(con->uri, "/classes", 8) || !strncmp(con->uri, "/help", 5) || !strncmp(con->uri, "/jobs", 5) || !strncmp(con->uri, "/printers", 9))) { if (!WebInterface) { /* * Web interface is disabled. Show an appropriate message... */ if (!cupsdSendError(con, HTTP_STATUS_CUPS_WEBIF_DISABLED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } /* * Send CGI output... */ if (!strncmp(con->uri, "/admin", 6)) { cupsdSetStringf(&con->command, "%s/cgi-bin/admin.cgi", ServerBin); cupsdSetString(&con->options, strchr(con->uri + 6, '?')); } else if (!strncmp(con->uri, "/classes", 8)) { cupsdSetStringf(&con->command, "%s/cgi-bin/classes.cgi", ServerBin); if (con->uri[8] && con->uri[9]) cupsdSetString(&con->options, con->uri + 8); else cupsdSetString(&con->options, NULL); } else if (!strncmp(con->uri, "/jobs", 5)) { cupsdSetStringf(&con->command, "%s/cgi-bin/jobs.cgi", ServerBin); if (con->uri[5] && con->uri[6]) cupsdSetString(&con->options, con->uri + 5); else cupsdSetString(&con->options, NULL); } else if (!strncmp(con->uri, "/printers", 9)) { cupsdSetStringf(&con->command, "%s/cgi-bin/printers.cgi", ServerBin); if (con->uri[9] && con->uri[10]) cupsdSetString(&con->options, con->uri + 9); else cupsdSetString(&con->options, NULL); } else { cupsdSetStringf(&con->command, "%s/cgi-bin/help.cgi", ServerBin); if (con->uri[5] && con->uri[6]) cupsdSetString(&con->options, con->uri + 5); else cupsdSetString(&con->options, NULL); } if (!cupsdSendCommand(con, con->command, con->options, 0)) { if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else cupsdLogRequest(con, HTTP_STATUS_OK); if (httpGetVersion(con->http) <= HTTP_VERSION_1_0) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_OFF); } else { if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } break; case HTTP_STATE_POST_RECV : /* * See if the POST request includes a Content-Length field, and if * so check the length against any limits that are set... */ if (httpGetField(con->http, HTTP_FIELD_CONTENT_LENGTH)[0] && MaxRequestSize > 0 && httpGetLength2(con->http) > MaxRequestSize) { /* * Request too large... */ if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } else if (httpGetLength2(con->http) < 0) { /* * Negative content lengths are invalid! */ if (!cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } /* * See what kind of POST request this is; for IPP requests the * content-type field will be "application/ipp"... */ if (!strcmp(httpGetField(con->http, HTTP_FIELD_CONTENT_TYPE), "application/ipp")) { con->request = ippNew(); break; } else if (!WebInterface) { /* * Web interface is disabled. Show an appropriate message... */ if (!cupsdSendError(con, HTTP_STATUS_CUPS_WEBIF_DISABLED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } if ((filename = get_file(con, &filestats, buf, sizeof(buf))) != NULL) { /* * POST to a file... */ type = mimeFileType(MimeDatabase, filename, NULL, NULL); if (!is_cgi(con, filename, &filestats, type)) { /* * Only POST to CGI's... */ if (!cupsdSendError(con, HTTP_STATUS_UNAUTHORIZED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } } else if (!strncmp(con->uri, "/admin", 6) || !strncmp(con->uri, "/printers", 9) || !strncmp(con->uri, "/classes", 8) || !strncmp(con->uri, "/help", 5) || !strncmp(con->uri, "/jobs", 5)) { /* * CGI request... */ if (!strncmp(con->uri, "/admin", 6)) { cupsdSetStringf(&con->command, "%s/cgi-bin/admin.cgi", ServerBin); cupsdSetString(&con->options, strchr(con->uri + 6, '?')); } else if (!strncmp(con->uri, "/printers", 9)) { cupsdSetStringf(&con->command, "%s/cgi-bin/printers.cgi", ServerBin); if (con->uri[9] && con->uri[10]) cupsdSetString(&con->options, con->uri + 9); else cupsdSetString(&con->options, NULL); } else if (!strncmp(con->uri, "/classes", 8)) { cupsdSetStringf(&con->command, "%s/cgi-bin/classes.cgi", ServerBin); if (con->uri[8] && con->uri[9]) cupsdSetString(&con->options, con->uri + 8); else cupsdSetString(&con->options, NULL); } else if (!strncmp(con->uri, "/jobs", 5)) { cupsdSetStringf(&con->command, "%s/cgi-bin/jobs.cgi", ServerBin); if (con->uri[5] && con->uri[6]) cupsdSetString(&con->options, con->uri + 5); else cupsdSetString(&con->options, NULL); } else { cupsdSetStringf(&con->command, "%s/cgi-bin/help.cgi", ServerBin); if (con->uri[5] && con->uri[6]) cupsdSetString(&con->options, con->uri + 5); else cupsdSetString(&con->options, NULL); } if (httpGetVersion(con->http) <= HTTP_VERSION_1_0) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_OFF); } else { if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } break; case HTTP_STATE_PUT_RECV : /* * Validate the resource name... */ if (strcmp(con->uri, "/admin/conf/cupsd.conf")) { /* * PUT can only be done to the cupsd.conf file... */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Disallowed PUT request for \"%s\".", con->uri); if (!cupsdSendError(con, HTTP_STATUS_FORBIDDEN, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } /* * See if the PUT request includes a Content-Length field, and if * so check the length against any limits that are set... */ if (httpGetField(con->http, HTTP_FIELD_CONTENT_LENGTH)[0] && MaxRequestSize > 0 && httpGetLength2(con->http) > MaxRequestSize) { /* * Request too large... */ if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } else if (httpGetLength2(con->http) < 0) { /* * Negative content lengths are invalid! */ if (!cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } break; } /* * Open a temporary file to hold the request... */ cupsdSetStringf(&con->filename, "%s/%08x", RequestRoot, request_id ++); con->file = open(con->filename, O_WRONLY | O_CREAT | O_TRUNC, 0640); if (con->file < 0) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to create request file \"%s\": %s", con->filename, strerror(errno)); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } fchmod(con->file, 0640); fchown(con->file, RunUser, Group); fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); break; case HTTP_STATE_DELETE : case HTTP_STATE_TRACE : cupsdSendError(con, HTTP_STATUS_NOT_IMPLEMENTED, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; case HTTP_STATE_HEAD : if ((filename = get_file(con, &filestats, buf, sizeof(buf))) != NULL) { if (!check_if_modified(con, &filestats)) { if (!cupsdSendError(con, HTTP_STATUS_NOT_MODIFIED, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } cupsdLogRequest(con, HTTP_STATUS_NOT_MODIFIED); } else { /* * Serve a file... */ type = mimeFileType(MimeDatabase, filename, NULL, NULL); if (type == NULL) strlcpy(line, "text/plain", sizeof(line)); else snprintf(line, sizeof(line), "%s/%s", type->super, type->type); httpClearFields(con->http); httpSetField(con->http, HTTP_FIELD_LAST_MODIFIED, httpGetDateString(filestats.st_mtime)); httpSetLength(con->http, (size_t)filestats.st_size); if (!cupsdSendHeader(con, HTTP_STATUS_OK, line, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } cupsdLogRequest(con, HTTP_STATUS_OK); } } else if (!WebInterface) { httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_OK, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } cupsdLogRequest(con, HTTP_STATUS_OK); break; } if (!buf[0] && (!strncmp(con->uri, "/admin", 6) || !strncmp(con->uri, "/classes", 8) || !strncmp(con->uri, "/help", 5) || !strncmp(con->uri, "/jobs", 5) || !strncmp(con->uri, "/printers", 9))) { /* * CGI output... */ httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_OK, "text/html", CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } cupsdLogRequest(con, HTTP_STATUS_OK); } else { httpClearFields(con->http); if (!cupsdSendHeader(con, HTTP_STATUS_NOT_FOUND, "text/html", CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } cupsdLogRequest(con, HTTP_STATUS_NOT_FOUND); } break; default : break; /* Anti-compiler-warning-code */ } } } /* * Handle any incoming data... */ switch (httpGetState(con->http)) { case HTTP_STATE_PUT_RECV : do { if ((bytes = httpRead2(con->http, line, sizeof(line))) < 0) { if (httpError(con->http) && httpError(con->http) != EPIPE) cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_PUT_RECV Closing for error %d (%s)", httpError(con->http), strerror(httpError(con->http))); else cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_PUT_RECV Closing on EOF."); cupsdCloseClient(con); return; } else if (bytes > 0) { con->bytes += bytes; if (MaxRequestSize > 0 && con->bytes > MaxRequestSize) { close(con->file); con->file = -1; unlink(con->filename); cupsdClearString(&con->filename); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } if (write(con->file, line, (size_t)bytes) < bytes) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to write %d bytes to \"%s\": %s", bytes, con->filename, strerror(errno)); close(con->file); con->file = -1; unlink(con->filename); cupsdClearString(&con->filename); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } } else if (httpGetState(con->http) == HTTP_STATE_PUT_RECV) { cupsdCloseClient(con); return; } } while (httpGetState(con->http) == HTTP_STATE_PUT_RECV && httpGetReady(con->http)); if (httpGetState(con->http) == HTTP_STATE_STATUS) { /* * End of file, see how big it is... */ fstat(con->file, &filestats); close(con->file); con->file = -1; if (filestats.st_size > MaxRequestSize && MaxRequestSize > 0) { /* * Request is too big; remove it and send an error... */ unlink(con->filename); cupsdClearString(&con->filename); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } /* * Install the configuration file... */ status = install_cupsd_conf(con); /* * Return the status to the client... */ if (!cupsdSendError(con, status, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } break; case HTTP_STATE_POST_RECV : do { if (con->request && con->file < 0) { /* * Grab any request data from the connection... */ if (!httpWait(con->http, 0)) return; if ((ipp_state = ippRead(con->http, con->request)) == IPP_STATE_ERROR) { cupsdLogClient(con, CUPSD_LOG_ERROR, "IPP read error: %s", cupsLastErrorString()); cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } else if (ipp_state != IPP_STATE_DATA) { if (httpGetState(con->http) == HTTP_STATE_POST_SEND) { cupsdSendError(con, HTTP_STATUS_BAD_REQUEST, CUPSD_AUTH_NONE); cupsdCloseClient(con); return; } if (httpGetReady(con->http)) continue; break; } else { cupsdLogClient(con, CUPSD_LOG_DEBUG, "%d.%d %s %d", con->request->request.op.version[0], con->request->request.op.version[1], ippOpString(con->request->request.op.operation_id), con->request->request.op.request_id); con->bytes += (off_t)ippLength(con->request); } } if (con->file < 0 && httpGetState(con->http) != HTTP_STATE_POST_SEND) { /* * Create a file as needed for the request data... */ cupsdSetStringf(&con->filename, "%s/%08x", RequestRoot, request_id ++); con->file = open(con->filename, O_WRONLY | O_CREAT | O_TRUNC, 0640); if (con->file < 0) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to create request file \"%s\": %s", con->filename, strerror(errno)); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } fchmod(con->file, 0640); fchown(con->file, RunUser, Group); fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); } if (httpGetState(con->http) != HTTP_STATE_POST_SEND) { if (!httpWait(con->http, 0)) return; else if ((bytes = httpRead2(con->http, line, sizeof(line))) < 0) { if (httpError(con->http) && httpError(con->http) != EPIPE) cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_POST_SEND Closing for error %d (%s)", httpError(con->http), strerror(httpError(con->http))); else cupsdLogClient(con, CUPSD_LOG_DEBUG, "HTTP_STATE_POST_SEND Closing on EOF."); cupsdCloseClient(con); return; } else if (bytes > 0) { con->bytes += bytes; if (MaxRequestSize > 0 && con->bytes > MaxRequestSize) { close(con->file); con->file = -1; unlink(con->filename); cupsdClearString(&con->filename); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } if (write(con->file, line, (size_t)bytes) < bytes) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to write %d bytes to \"%s\": %s", bytes, con->filename, strerror(errno)); close(con->file); con->file = -1; unlink(con->filename); cupsdClearString(&con->filename); if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } } else if (httpGetState(con->http) == HTTP_STATE_POST_RECV) return; else if (httpGetState(con->http) != HTTP_STATE_POST_SEND) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on unexpected state %s.", httpStateString(httpGetState(con->http))); cupsdCloseClient(con); return; } } } while (httpGetState(con->http) == HTTP_STATE_POST_RECV && httpGetReady(con->http)); if (httpGetState(con->http) == HTTP_STATE_POST_SEND) { if (con->file >= 0) { if (fstat(con->file, &filestats)) filestats.st_size = 0; close(con->file); con->file = -1; if (filestats.st_size > MaxRequestSize && MaxRequestSize > 0) { /* * Request is too big; remove it and send an error... */ unlink(con->filename); cupsdClearString(&con->filename); if (con->request) { /* * Delete any IPP request data... */ ippDelete(con->request); con->request = NULL; } if (!cupsdSendError(con, HTTP_STATUS_REQUEST_TOO_LARGE, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else if (filestats.st_size == 0) { /* * Don't allow empty file... */ unlink(con->filename); cupsdClearString(&con->filename); } if (con->command) { if (!cupsdSendCommand(con, con->command, con->options, 0)) { if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else cupsdLogRequest(con, HTTP_STATUS_OK); } } if (con->request) { cupsdProcessIPPRequest(con); if (con->filename) { unlink(con->filename); cupsdClearString(&con->filename); } return; } } break; default : break; /* Anti-compiler-warning-code */ } if (httpGetState(con->http) == HTTP_STATE_WAITING) { if (!httpGetKeepAlive(con->http)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing because Keep-Alive is disabled."); cupsdCloseClient(con); } else { cupsArrayRemove(ActiveClients, con); cupsdSetBusyState(0); } } } /* * 'cupsdSendCommand()' - Send output from a command via HTTP. */ int /* O - 1 on success, 0 on failure */ cupsdSendCommand( cupsd_client_t *con, /* I - Client connection */ char *command, /* I - Command to run */ char *options, /* I - Command-line options */ int root) /* I - Run as root? */ { int fd; /* Standard input file descriptor */ if (con->filename) { fd = open(con->filename, O_RDONLY); if (fd < 0) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to open \"%s\" for reading: %s", con->filename ? con->filename : "/dev/null", strerror(errno)); return (0); } fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); } else fd = -1; con->pipe_pid = pipe_command(con, fd, &(con->file), command, options, root); con->pipe_status = HTTP_STATUS_OK; httpClearFields(con->http); if (fd >= 0) close(fd); cupsdLogClient(con, CUPSD_LOG_INFO, "Started \"%s\" (pid=%d, file=%d)", command, con->pipe_pid, con->file); if (con->pipe_pid == 0) return (0); fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); cupsdAddSelect(con->file, (cupsd_selfunc_t)write_pipe, NULL, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Waiting for CGI data."); con->sent_header = 0; con->file_ready = 0; con->got_fields = 0; con->header_used = 0; return (1); } /* * 'cupsdSendError()' - Send an error message via HTTP. */ int /* O - 1 if successful, 0 otherwise */ cupsdSendError(cupsd_client_t *con, /* I - Connection */ http_status_t code, /* I - Error code */ int auth_type)/* I - Authentication type */ { char location[HTTP_MAX_VALUE]; /* Location field */ cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cupsdSendError code=%d, auth_type=%d", code, auth_type); #ifdef HAVE_TLS /* * Force client to upgrade for authentication if that is how the * server is configured... */ if (code == HTTP_STATUS_UNAUTHORIZED && DefaultEncryption == HTTP_ENCRYPTION_REQUIRED && _cups_strcasecmp(httpGetHostname(con->http, NULL, 0), "localhost") && !httpIsEncrypted(con->http)) { code = HTTP_STATUS_UPGRADE_REQUIRED; } #endif /* HAVE_TLS */ /* * Put the request in the access_log file... */ cupsdLogRequest(con, code); /* * To work around bugs in some proxies, don't use Keep-Alive for some * error messages... * * Kerberos authentication doesn't work without Keep-Alive, so * never disable it in that case. */ strlcpy(location, httpGetField(con->http, HTTP_FIELD_LOCATION), sizeof(location)); httpClearFields(con->http); httpClearCookie(con->http); httpSetField(con->http, HTTP_FIELD_LOCATION, location); if (code >= HTTP_STATUS_BAD_REQUEST && con->type != CUPSD_AUTH_NEGOTIATE) httpSetKeepAlive(con->http, HTTP_KEEPALIVE_OFF); if (httpGetVersion(con->http) >= HTTP_VERSION_1_1 && httpGetKeepAlive(con->http) == HTTP_KEEPALIVE_OFF) httpSetField(con->http, HTTP_FIELD_CONNECTION, "close"); if (code >= HTTP_STATUS_BAD_REQUEST) { /* * Send a human-readable error message. */ char message[4096], /* Message for user */ urltext[1024], /* URL redirection text */ redirect[1024]; /* Redirection link */ const char *text; /* Status-specific text */ redirect[0] = '\0'; if (code == HTTP_STATUS_UNAUTHORIZED) { text = _cupsLangString(con->language, _("Enter your username and password or the " "root username and password to access this " "page. If you are using Kerberos authentication, " "make sure you have a valid Kerberos ticket.")); } else if (code == HTTP_STATUS_FORBIDDEN) { if (con->username[0]) text = _cupsLangString(con->language, _("Your account does not have the necessary privileges.")); else text = _cupsLangString(con->language, _("You cannot access this page.")); } else if (code == HTTP_STATUS_UPGRADE_REQUIRED) { text = urltext; snprintf(urltext, sizeof(urltext), _cupsLangString(con->language, _("You must access this page using the URL https://%s:%d%s.")), con->servername, con->serverport, con->uri); snprintf(redirect, sizeof(redirect), "\n", con->servername, con->serverport, con->uri); } else if (code == HTTP_STATUS_CUPS_WEBIF_DISABLED) text = _cupsLangString(con->language, _("The web interface is currently disabled. Run " "\"cupsctl WebInterface=yes\" to enable it.")); else text = ""; snprintf(message, sizeof(message), "\n" "\n" "\n" "\t\n" "\t%s - " CUPS_SVERSION "\n" "\t\n" "%s" "\n" "\n" "

%s

\n" "

%s

\n" "\n" "\n", _httpStatus(con->language, code), redirect, _httpStatus(con->language, code), text); /* * Send an error message back to the client. If the error code is a * 400 or 500 series, make sure the message contains some text, too! */ size_t length = strlen(message); /* Length of message */ httpSetLength(con->http, length); if (!cupsdSendHeader(con, code, "text/html", auth_type)) return (0); if (httpWrite2(con->http, message, length) < 0) return (0); if (httpFlushWrite(con->http) < 0) return (0); } else { httpSetField(con->http, HTTP_FIELD_CONTENT_LENGTH, "0"); if (!cupsdSendHeader(con, code, NULL, auth_type)) return (0); } return (1); } /* * 'cupsdSendHeader()' - Send an HTTP request. */ int /* O - 1 on success, 0 on failure */ cupsdSendHeader( cupsd_client_t *con, /* I - Client to send to */ http_status_t code, /* I - HTTP status code */ char *type, /* I - MIME type of document */ int auth_type) /* I - Type of authentication */ { char auth_str[1024]; /* Authorization string */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "cupsdSendHeader: code=%d, type=\"%s\", auth_type=%d", code, type, auth_type); /* * Send the HTTP status header... */ if (code == HTTP_STATUS_CUPS_WEBIF_DISABLED) { /* * Treat our special "web interface is disabled" status as "200 OK" for web * browsers. */ code = HTTP_STATUS_OK; } if (ServerHeader) httpSetField(con->http, HTTP_FIELD_SERVER, ServerHeader); if (code == HTTP_STATUS_METHOD_NOT_ALLOWED) httpSetField(con->http, HTTP_FIELD_ALLOW, "GET, HEAD, OPTIONS, POST, PUT"); if (code == HTTP_STATUS_UNAUTHORIZED) { if (auth_type == CUPSD_AUTH_NONE) { if (!con->best || con->best->type <= CUPSD_AUTH_NONE) auth_type = cupsdDefaultAuthType(); else auth_type = con->best->type; } auth_str[0] = '\0'; if (auth_type == CUPSD_AUTH_BASIC) { strlcpy(auth_str, "Basic realm=\"CUPS\"", sizeof(auth_str)); } else if (auth_type == CUPSD_AUTH_NEGOTIATE) { strlcpy(auth_str, "Negotiate", sizeof(auth_str)); } if (con->best && !con->is_browser && !_cups_strcasecmp(httpGetHostname(con->http, NULL, 0), "localhost")) { /* * Add a "trc" (try root certification) parameter for local * requests when the request requires system group membership - then the * client knows the root certificate can/should be used. * * Also, for macOS we also look for @AUTHKEY and add an "AuthRef key=foo" * method as needed... */ char *name, /* Current user name */ *auth_key; /* Auth key buffer */ size_t auth_size; /* Size of remaining buffer */ int need_local = 1; /* Do we need to list "Local" method? */ auth_key = auth_str + strlen(auth_str); auth_size = sizeof(auth_str) - (size_t)(auth_key - auth_str); #if defined(SO_PEERCRED) && defined(AF_LOCAL) if (httpAddrFamily(httpGetAddress(con->http)) == AF_LOCAL) { strlcpy(auth_key, ", PeerCred", auth_size); auth_key += 10; auth_size -= 10; } #endif /* SO_PEERCRED && AF_LOCAL */ for (name = (char *)cupsArrayFirst(con->best->names); name; name = (char *)cupsArrayNext(con->best->names)) { cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cupsdSendHeader: require \"%s\"", name); #ifdef HAVE_AUTHORIZATION_H if (!_cups_strncasecmp(name, "@AUTHKEY(", 9)) { snprintf(auth_key, auth_size, ", AuthRef key=\"%s\", Local trc=\"y\"", name + 9); need_local = 0; /* end parenthesis is stripped in conf.c */ break; } else #endif /* HAVE_AUTHORIZATION_H */ if (!_cups_strcasecmp(name, "@SYSTEM")) { #ifdef HAVE_AUTHORIZATION_H if (SystemGroupAuthKey) snprintf(auth_key, auth_size, ", AuthRef key=\"%s\", Local trc=\"y\"", SystemGroupAuthKey); else #endif /* HAVE_AUTHORIZATION_H */ strlcpy(auth_key, ", Local trc=\"y\"", auth_size); need_local = 0; break; } } if (need_local) strlcat(auth_key, ", Local", auth_size); } if (auth_str[0]) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "WWW-Authenticate: %s", auth_str); httpSetField(con->http, HTTP_FIELD_WWW_AUTHENTICATE, auth_str); } } if (con->language && strcmp(con->language->language, "C")) httpSetField(con->http, HTTP_FIELD_CONTENT_LANGUAGE, con->language->language); if (type) { if (!strcmp(type, "text/html")) httpSetField(con->http, HTTP_FIELD_CONTENT_TYPE, "text/html; charset=utf-8"); else httpSetField(con->http, HTTP_FIELD_CONTENT_TYPE, type); } return (!httpWriteResponse(con->http, code)); } /* * 'cupsdUpdateCGI()' - Read status messages from CGI scripts and programs. */ void cupsdUpdateCGI(void) { char *ptr, /* Pointer to end of line in buffer */ message[1024]; /* Pointer to message text */ int loglevel; /* Log level for message */ while ((ptr = cupsdStatBufUpdate(CGIStatusBuffer, &loglevel, message, sizeof(message))) != NULL) { if (loglevel == CUPSD_LOG_INFO) cupsdLogMessage(CUPSD_LOG_INFO, "%s", message); if (!strchr(CGIStatusBuffer->buffer, '\n')) break; } if (ptr == NULL && !CGIStatusBuffer->bufused) { /* * Fatal error on pipe - should never happen! */ cupsdLogMessage(CUPSD_LOG_CRIT, "cupsdUpdateCGI: error reading from CGI error pipe - %s", strerror(errno)); } } /* * 'cupsdWriteClient()' - Write data to a client as needed. */ void cupsdWriteClient(cupsd_client_t *con) /* I - Client connection */ { int bytes, /* Number of bytes written */ field_col; /* Current column */ char *bufptr, /* Pointer into buffer */ *bufend; /* Pointer to end of buffer */ ipp_state_t ipp_state; /* IPP state value */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "con->http=%p", con->http); cupsdLogClient(con, CUPSD_LOG_DEBUG, "cupsdWriteClient " "error=%d, " "used=%d, " "state=%s, " "data_encoding=HTTP_ENCODING_%s, " "data_remaining=" CUPS_LLFMT ", " "response=%p(%s), " "pipe_pid=%d, " "file=%d", httpError(con->http), (int)httpGetReady(con->http), httpStateString(httpGetState(con->http)), httpIsChunked(con->http) ? "CHUNKED" : "LENGTH", CUPS_LLCAST httpGetLength2(con->http), con->response, con->response ? ippStateString(ippGetState(con->request)) : "", con->pipe_pid, con->file); if (httpGetState(con->http) != HTTP_STATE_GET_SEND && httpGetState(con->http) != HTTP_STATE_POST_SEND) { /* * If we get called in the wrong state, then something went wrong with the * connection and we need to shut it down... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing on unexpected HTTP write state %s.", httpStateString(httpGetState(con->http))); cupsdCloseClient(con); return; } if (con->pipe_pid) { /* * Make sure we select on the CGI output... */ cupsdAddSelect(con->file, (cupsd_selfunc_t)write_pipe, NULL, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Waiting for CGI data."); if (!con->file_ready) { /* * Try again later when there is CGI output available... */ cupsdRemoveSelect(httpGetFd(con->http)); return; } con->file_ready = 0; } bytes = (ssize_t)(sizeof(con->header) - (size_t)con->header_used); if (!con->pipe_pid && bytes > (ssize_t)httpGetRemaining(con->http)) { /* * Limit GET bytes to original size of file (STR #3265)... */ bytes = (ssize_t)httpGetRemaining(con->http); } if (con->response && con->response->state != IPP_STATE_DATA) { size_t wused = httpGetPending(con->http); /* Previous write buffer use */ do { /* * Write a single attribute or the IPP message header... */ ipp_state = ippWrite(con->http, con->response); /* * If the write buffer has been flushed, stop buffering up attributes... */ if (httpGetPending(con->http) <= wused) break; } while (ipp_state != IPP_STATE_DATA && ipp_state != IPP_STATE_ERROR); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Writing IPP response, ipp_state=%s, old " "wused=" CUPS_LLFMT ", new wused=" CUPS_LLFMT, ippStateString(ipp_state), CUPS_LLCAST wused, CUPS_LLCAST httpGetPending(con->http)); if (httpGetPending(con->http) > 0) httpFlushWrite(con->http); bytes = ipp_state != IPP_STATE_ERROR && (con->file >= 0 || ipp_state != IPP_STATE_DATA); cupsdLogClient(con, CUPSD_LOG_DEBUG, "bytes=%d, http_state=%d, data_remaining=" CUPS_LLFMT, (int)bytes, httpGetState(con->http), CUPS_LLCAST httpGetLength2(con->http)); } else if ((bytes = read(con->file, con->header + con->header_used, (size_t)bytes)) > 0) { con->header_used += bytes; if (con->pipe_pid && !con->got_fields) { /* * Inspect the data for Content-Type and other fields. */ for (bufptr = con->header, bufend = con->header + con->header_used, field_col = 0; !con->got_fields && bufptr < bufend; bufptr ++) { if (*bufptr == '\n') { /* * Send line to client... */ if (bufptr > con->header && bufptr[-1] == '\r') bufptr[-1] = '\0'; *bufptr++ = '\0'; cupsdLogClient(con, CUPSD_LOG_DEBUG, "Script header: %s", con->header); if (!con->sent_header) { /* * Handle redirection and CGI status codes... */ http_field_t field; /* HTTP field */ char *value = strchr(con->header, ':'); /* Value of field */ if (value) { *value++ = '\0'; while (isspace(*value & 255)) value ++; } field = httpFieldValue(con->header); if (field != HTTP_FIELD_UNKNOWN && value) { httpSetField(con->http, field, value); if (field == HTTP_FIELD_LOCATION) { con->pipe_status = HTTP_STATUS_SEE_OTHER; con->sent_header = 2; } else con->sent_header = 1; } else if (!_cups_strcasecmp(con->header, "Status") && value) { con->pipe_status = (http_status_t)atoi(value); con->sent_header = 2; } else if (!_cups_strcasecmp(con->header, "Set-Cookie") && value) { httpSetCookie(con->http, value); con->sent_header = 1; } } /* * Update buffer... */ con->header_used -= bufptr - con->header; if (con->header_used > 0) memmove(con->header, bufptr, (size_t)con->header_used); bufptr = con->header - 1; /* * See if the line was empty... */ if (field_col == 0) { con->got_fields = 1; if (httpGetVersion(con->http) == HTTP_VERSION_1_1 && !httpGetField(con->http, HTTP_FIELD_CONTENT_LENGTH)[0]) httpSetLength(con->http, 0); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Sending status %d for CGI.", con->pipe_status); if (con->pipe_status == HTTP_STATUS_OK) { if (!cupsdSendHeader(con, con->pipe_status, NULL, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } else { if (!cupsdSendError(con, con->pipe_status, CUPSD_AUTH_NONE)) { cupsdCloseClient(con); return; } } } else field_col = 0; } else if (*bufptr != '\r') field_col ++; } if (!con->got_fields) return; } if (con->header_used > 0) { if (httpWrite2(con->http, con->header, (size_t)con->header_used) < 0) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing for error %d (%s)", httpError(con->http), strerror(httpError(con->http))); cupsdCloseClient(con); return; } if (httpIsChunked(con->http)) httpFlushWrite(con->http); con->bytes += con->header_used; if (httpGetState(con->http) == HTTP_STATE_WAITING) bytes = 0; else bytes = con->header_used; con->header_used = 0; } } if (bytes <= 0 || (httpGetState(con->http) != HTTP_STATE_GET_SEND && httpGetState(con->http) != HTTP_STATE_POST_SEND)) { if (!con->sent_header && con->pipe_pid) cupsdSendError(con, HTTP_STATUS_SERVER_ERROR, CUPSD_AUTH_NONE); else { cupsdLogRequest(con, HTTP_STATUS_OK); if (httpIsChunked(con->http) && (!con->pipe_pid || con->sent_header > 0)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Sending 0-length chunk."); if (httpWrite2(con->http, "", 0) < 0) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing for error %d (%s)", httpError(con->http), strerror(httpError(con->http))); cupsdCloseClient(con); return; } } cupsdLogClient(con, CUPSD_LOG_DEBUG, "Flushing write buffer."); httpFlushWrite(con->http); cupsdLogClient(con, CUPSD_LOG_DEBUG, "New state is %s", httpStateString(httpGetState(con->http))); } cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, NULL, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Waiting for request."); if (con->file >= 0) { cupsdRemoveSelect(con->file); if (con->pipe_pid) cupsdEndProcess(con->pipe_pid, 0); close(con->file); con->file = -1; con->pipe_pid = 0; } if (con->filename) { unlink(con->filename); cupsdClearString(&con->filename); } if (con->request) { ippDelete(con->request); con->request = NULL; } if (con->response) { ippDelete(con->response); con->response = NULL; } cupsdClearString(&con->command); cupsdClearString(&con->options); cupsdClearString(&con->query_string); if (!httpGetKeepAlive(con->http)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing because Keep-Alive is disabled."); cupsdCloseClient(con); return; } else { cupsArrayRemove(ActiveClients, con); cupsdSetBusyState(0); } } } /* * 'check_if_modified()' - Decode an "If-Modified-Since" line. */ static int /* O - 1 if modified since */ check_if_modified( cupsd_client_t *con, /* I - Client connection */ struct stat *filestats) /* I - File information */ { const char *ptr; /* Pointer into field */ time_t date; /* Time/date value */ off_t size; /* Size/length value */ size = 0; date = 0; ptr = httpGetField(con->http, HTTP_FIELD_IF_MODIFIED_SINCE); if (*ptr == '\0') return (1); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "check_if_modified: filestats=%p(" CUPS_LLFMT ", %d)) If-Modified-Since=\"%s\"", filestats, CUPS_LLCAST filestats->st_size, (int)filestats->st_mtime, ptr); while (*ptr != '\0') { while (isspace(*ptr) || *ptr == ';') ptr ++; if (_cups_strncasecmp(ptr, "length=", 7) == 0) { ptr += 7; size = strtoll(ptr, NULL, 10); while (isdigit(*ptr)) ptr ++; } else if (isalpha(*ptr)) { date = httpGetDateTime(ptr); while (*ptr != '\0' && *ptr != ';') ptr ++; } else ptr ++; } return ((size != filestats->st_size && size != 0) || (date < filestats->st_mtime && date != 0) || (size == 0 && date == 0)); } /* * 'compare_clients()' - Compare two client connections. */ static int /* O - Result of comparison */ compare_clients(cupsd_client_t *a, /* I - First client */ cupsd_client_t *b, /* I - Second client */ void *data) /* I - User data (not used) */ { (void)data; if (a == b) return (0); else if (a < b) return (-1); else return (1); } #ifdef HAVE_TLS /* * 'cupsd_start_tls()' - Start encryption on a connection. */ static int /* O - 0 on success, -1 on error */ cupsd_start_tls(cupsd_client_t *con, /* I - Client connection */ http_encryption_t e) /* I - Encryption mode */ { if (httpEncryption(con->http, e)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to encrypt connection: %s", cupsLastErrorString()); return (-1); } cupsdLogClient(con, CUPSD_LOG_DEBUG, "Connection now encrypted."); return (0); } #endif /* HAVE_TLS */ /* * 'get_file()' - Get a filename and state info. */ static char * /* O - Real filename */ get_file(cupsd_client_t *con, /* I - Client connection */ struct stat *filestats, /* O - File information */ char *filename, /* IO - Filename buffer */ size_t len) /* I - Buffer length */ { int status; /* Status of filesystem calls */ char *ptr; /* Pointer info filename */ size_t plen; /* Remaining length after pointer */ char language[7], /* Language subdirectory, if any */ dest[1024]; /* Destination name */ int perm_check = 1; /* Do permissions check? */ cupsd_printer_t *p; /* Printer */ /* * Figure out the real filename... */ filename[0] = '\0'; language[0] = '\0'; if (!strncmp(con->uri, "/help", 5) && (con->uri[5] == '/' || !con->uri[5])) { /* * All help files are served by the help.cgi program... */ return (NULL); } else if ((!strncmp(con->uri, "/ppd/", 5) || !strncmp(con->uri, "/printers/", 10) || !strncmp(con->uri, "/classes/", 9)) && !strcmp(con->uri + strlen(con->uri) - 4, ".ppd")) { strlcpy(dest, strchr(con->uri + 1, '/') + 1, sizeof(dest)); dest[strlen(dest) - 4] = '\0'; /* Strip .ppd */ if ((p = cupsdFindDest(dest)) == NULL) { strlcpy(filename, "/", len); cupsdLogClient(con, CUPSD_LOG_INFO, "No destination \"%s\" found.", dest); return (NULL); } if (p->type & CUPS_PRINTER_CLASS) { int i; /* Looping var */ for (i = 0; i < p->num_printers; i ++) { if (!(p->printers[i]->type & CUPS_PRINTER_CLASS)) { snprintf(filename, len, "%s/ppd/%s.ppd", ServerRoot, p->printers[i]->name); if (!access(filename, 0)) { p = p->printers[i]; break; } } } if (i >= p->num_printers) p = NULL; } else snprintf(filename, len, "%s/ppd/%s.ppd", ServerRoot, p->name); perm_check = 0; } else if ((!strncmp(con->uri, "/icons/", 7) || !strncmp(con->uri, "/printers/", 10) || !strncmp(con->uri, "/classes/", 9)) && !strcmp(con->uri + strlen(con->uri) - 4, ".png")) { strlcpy(dest, strchr(con->uri + 1, '/') + 1, sizeof(dest)); dest[strlen(dest) - 4] = '\0'; /* Strip .png */ if ((p = cupsdFindDest(dest)) == NULL) { strlcpy(filename, "/", len); cupsdLogClient(con, CUPSD_LOG_INFO, "No destination \"%s\" found.", dest); return (NULL); } if (p->type & CUPS_PRINTER_CLASS) { int i; /* Looping var */ for (i = 0; i < p->num_printers; i ++) { if (!(p->printers[i]->type & CUPS_PRINTER_CLASS)) { snprintf(filename, len, "%s/images/%s.png", CacheDir, p->printers[i]->name); if (!access(filename, 0)) { p = p->printers[i]; break; } } } if (i >= p->num_printers) p = NULL; } else snprintf(filename, len, "%s/images/%s.png", CacheDir, p->name); if (access(filename, F_OK) < 0) snprintf(filename, len, "%s/images/generic.png", DocumentRoot); perm_check = 0; } else if (!strcmp(con->uri, "/admin/conf/cupsd.conf")) { strlcpy(filename, ConfigurationFile, len); perm_check = 0; } else if (!strncmp(con->uri, "/admin/log/", 11)) { if (!strncmp(con->uri + 11, "access_log", 10) && AccessLog[0] == '/') strlcpy(filename, AccessLog, len); else if (!strncmp(con->uri + 11, "error_log", 9) && ErrorLog[0] == '/') strlcpy(filename, ErrorLog, len); else if (!strncmp(con->uri + 11, "page_log", 8) && PageLog[0] == '/') strlcpy(filename, PageLog, len); else return (NULL); perm_check = 0; } else if (!strncmp(con->uri, "/admin", 6) || !strncmp(con->uri, "/classes", 8) || !strncmp(con->uri, "/jobs", 5) || !strncmp(con->uri, "/printers", 9)) { /* * Admin/class/job/printer pages are served by CGI... */ return (NULL); } else if (!strncmp(con->uri, "/rss/", 5) && !strchr(con->uri + 5, '/')) snprintf(filename, len, "%s/rss/%s", CacheDir, con->uri + 5); else if (!strncmp(con->uri, "/strings/", 9) && !strcmp(con->uri + strlen(con->uri) - 8, ".strings")) { strlcpy(dest, con->uri + 9, sizeof(dest)); dest[strlen(dest) - 8] = '\0'; if ((p = cupsdFindDest(dest)) == NULL) { strlcpy(filename, "/", len); cupsdLogClient(con, CUPSD_LOG_INFO, "No destination \"%s\" found.", dest); return (NULL); } if (!p->strings) { strlcpy(filename, "/", len); cupsdLogClient(con, CUPSD_LOG_INFO, "No strings files for \"%s\".", dest); return (NULL); } strlcpy(filename, p->strings, len); perm_check = 0; } else if (con->language) { snprintf(language, sizeof(language), "/%s", con->language->language); snprintf(filename, len, "%s%s%s", DocumentRoot, language, con->uri); } else snprintf(filename, len, "%s%s", DocumentRoot, con->uri); if ((ptr = strchr(filename, '?')) != NULL) *ptr = '\0'; /* * Grab the status for this language; if there isn't a language-specific file * then fallback to the default one... */ if ((status = lstat(filename, filestats)) != 0 && language[0] && strncmp(con->uri, "/icons/", 7) && strncmp(con->uri, "/ppd/", 5) && strncmp(con->uri, "/rss/", 5) && strncmp(con->uri, "/strings/", 9) && strncmp(con->uri, "/admin/conf/", 12) && strncmp(con->uri, "/admin/log/", 11)) { /* * Drop the country code... */ language[3] = '\0'; snprintf(filename, len, "%s%s%s", DocumentRoot, language, con->uri); if ((ptr = strchr(filename, '?')) != NULL) *ptr = '\0'; if ((status = lstat(filename, filestats)) != 0) { /* * Drop the language prefix and try the root directory... */ language[0] = '\0'; snprintf(filename, len, "%s%s", DocumentRoot, con->uri); if ((ptr = strchr(filename, '?')) != NULL) *ptr = '\0'; status = lstat(filename, filestats); } } /* * If we've found a symlink, 404 the sucker to avoid disclosing information. */ if (!status && S_ISLNK(filestats->st_mode)) { cupsdLogClient(con, CUPSD_LOG_INFO, "Symlinks such as \"%s\" are not allowed.", filename); return (NULL); } /* * Similarly, if the file/directory does not have world read permissions, do * not allow access... */ if (!status && perm_check && !(filestats->st_mode & S_IROTH)) { cupsdLogClient(con, CUPSD_LOG_INFO, "Files/directories such as \"%s\" must be world-readable.", filename); return (NULL); } /* * If we've found a directory, get the index.html file instead... */ if (!status && S_ISDIR(filestats->st_mode)) { /* * Make sure the URI ends with a slash... */ if (con->uri[strlen(con->uri) - 1] != '/') strlcat(con->uri, "/", sizeof(con->uri)); /* * Find the directory index file, trying every language... */ do { if (status && language[0]) { /* * Try a different language subset... */ if (language[3]) language[3] = '\0'; /* Strip country code */ else language[0] = '\0'; /* Strip language */ } /* * Look for the index file... */ snprintf(filename, len, "%s%s%s", DocumentRoot, language, con->uri); if ((ptr = strchr(filename, '?')) != NULL) *ptr = '\0'; ptr = filename + strlen(filename); plen = len - (size_t)(ptr - filename); strlcpy(ptr, "index.html", plen); status = lstat(filename, filestats); } while (status && language[0]); /* * If we've found a symlink, 404 the sucker to avoid disclosing information. */ if (!status && S_ISLNK(filestats->st_mode)) { cupsdLogClient(con, CUPSD_LOG_INFO, "Symlinks such as \"%s\" are not allowed.", filename); return (NULL); } /* * Similarly, if the file/directory does not have world read permissions, do * not allow access... */ if (!status && perm_check && !(filestats->st_mode & S_IROTH)) { cupsdLogClient(con, CUPSD_LOG_INFO, "Files/directories such as \"%s\" must be world-readable.", filename); return (NULL); } } cupsdLogClient(con, CUPSD_LOG_DEBUG2, "get_file: filestats=%p, filename=%p, len=" CUPS_LLFMT ", returning \"%s\".", filestats, filename, CUPS_LLCAST len, status ? "(null)" : filename); if (status) return (NULL); else return (filename); } /* * 'install_cupsd_conf()' - Install a configuration file. */ static http_status_t /* O - Status */ install_cupsd_conf(cupsd_client_t *con) /* I - Connection */ { char filename[1024]; /* Configuration filename */ cups_file_t *in, /* Input file */ *out; /* Output file */ char buffer[16384]; /* Copy buffer */ ssize_t bytes; /* Number of bytes */ /* * Open the request file... */ if ((in = cupsFileOpen(con->filename, "rb")) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to open request file \"%s\": %s", con->filename, strerror(errno)); goto server_error; } /* * Open the new config file... */ if ((out = cupsdCreateConfFile(ConfigurationFile, ConfigFilePerm)) == NULL) { cupsFileClose(in); goto server_error; } cupsdLogClient(con, CUPSD_LOG_INFO, "Installing config file \"%s\"...", ConfigurationFile); /* * Copy from the request to the new config file... */ while ((bytes = cupsFileRead(in, buffer, sizeof(buffer))) > 0) if (cupsFileWrite(out, buffer, (size_t)bytes) < bytes) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to copy to config file \"%s\": %s", ConfigurationFile, strerror(errno)); cupsFileClose(in); cupsFileClose(out); snprintf(filename, sizeof(filename), "%s.N", ConfigurationFile); cupsdUnlinkOrRemoveFile(filename); goto server_error; } /* * Close the files... */ cupsFileClose(in); if (cupsdCloseCreatedConfFile(out, ConfigurationFile)) goto server_error; /* * Remove the request file... */ cupsdUnlinkOrRemoveFile(con->filename); cupsdClearString(&con->filename); /* * Set the NeedReload flag... */ NeedReload = RELOAD_CUPSD; ReloadTime = time(NULL); /* * Return that the file was created successfully... */ return (HTTP_STATUS_CREATED); /* * Common exit for errors... */ server_error: cupsdUnlinkOrRemoveFile(con->filename); cupsdClearString(&con->filename); return (HTTP_STATUS_SERVER_ERROR); } /* * 'is_cgi()' - Is the resource a CGI script/program? */ static int /* O - 1 = CGI, 0 = file */ is_cgi(cupsd_client_t *con, /* I - Client connection */ const char *filename, /* I - Real filename */ struct stat *filestats, /* I - File information */ mime_type_t *type) /* I - MIME type */ { const char *options; /* Options on URL */ /* * Get the options, if any... */ if ((options = strchr(con->uri, '?')) != NULL) { options ++; cupsdSetStringf(&(con->query_string), "QUERY_STRING=%s", options); } /* * Check for known types... */ if (!type || _cups_strcasecmp(type->super, "application")) { cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 0.", filename, filestats, type ? type->super : "unknown", type ? type->type : "unknown"); return (0); } if (!_cups_strcasecmp(type->type, "x-httpd-cgi") && (filestats->st_mode & 0111) && (getuid() || !(filestats->st_mode & 022))) { /* * "application/x-httpd-cgi" is a CGI script. */ cupsdSetString(&con->command, filename); if (options) cupsdSetStringf(&con->options, " %s", options); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); return (1); } cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 0.", filename, filestats, type->super, type->type); return (0); } /* * 'is_path_absolute()' - Is a path absolute and free of relative elements (i.e. ".."). */ static int /* O - 0 if relative, 1 if absolute */ is_path_absolute(const char *path) /* I - Input path */ { /* * Check for a leading slash... */ if (path[0] != '/') return (0); /* * Check for "<" or quotes in the path and reject since this is probably * someone trying to inject HTML... */ if (strchr(path, '<') != NULL || strchr(path, '\"') != NULL || strchr(path, '\'') != NULL) return (0); /* * Check for "/.." in the path... */ while ((path = strstr(path, "/..")) != NULL) { if (!path[3] || path[3] == '/') return (0); path ++; } /* * If we haven't found any relative paths, return 1 indicating an * absolute path... */ return (1); } /* * 'pipe_command()' - Pipe the output of a command to the remote client. */ static int /* O - Process ID */ pipe_command(cupsd_client_t *con, /* I - Client connection */ int infile, /* I - Standard input for command */ int *outfile, /* O - Standard output for command */ char *command, /* I - Command to run */ char *options, /* I - Options for command */ int root) /* I - Run as root? */ { int i; /* Looping var */ int pid; /* Process ID */ char *commptr, /* Command string pointer */ commch; /* Command string character */ char *uriptr; /* URI string pointer */ int fds[2]; /* Pipe FDs */ int argc; /* Number of arguments */ int envc; /* Number of environment variables */ char argbuf[10240], /* Argument buffer */ *argv[100], /* Argument strings */ *envp[MAX_ENV + 20]; /* Environment variables */ char auth_type[256], /* AUTH_TYPE environment variable */ content_length[1024], /* CONTENT_LENGTH environment variable */ content_type[1024], /* CONTENT_TYPE environment variable */ http_cookie[32768], /* HTTP_COOKIE environment variable */ http_referer[1024], /* HTTP_REFERER environment variable */ http_user_agent[1024], /* HTTP_USER_AGENT environment variable */ lang[1024], /* LANG environment variable */ path_info[1024], /* PATH_INFO environment variable */ remote_addr[1024], /* REMOTE_ADDR environment variable */ remote_host[1024], /* REMOTE_HOST environment variable */ remote_user[1024], /* REMOTE_USER environment variable */ script_filename[1024], /* SCRIPT_FILENAME environment variable */ script_name[1024], /* SCRIPT_NAME environment variable */ server_name[1024], /* SERVER_NAME environment variable */ server_port[1024]; /* SERVER_PORT environment variable */ ipp_attribute_t *attr; /* attributes-natural-language attribute */ /* * Parse a copy of the options string, which is of the form: * * argument+argument+argument * ?argument+argument+argument * param=value¶m=value * ?param=value¶m=value * /name?argument+argument+argument * /name?param=value¶m=value * * If the string contains an "=" character after the initial name, * then we treat it as a HTTP GET form request and make a copy of * the remaining string for the environment variable. * * The string is always parsed out as command-line arguments, to * be consistent with Apache... */ cupsdLogClient(con, CUPSD_LOG_DEBUG2, "pipe_command: infile=%d, outfile=%p, command=\"%s\", options=\"%s\", root=%d", infile, outfile, command, options ? options : "(null)", root); argv[0] = command; if (options) strlcpy(argbuf, options, sizeof(argbuf)); else argbuf[0] = '\0'; if (argbuf[0] == '/') { /* * Found some trailing path information, set PATH_INFO... */ if ((commptr = strchr(argbuf, '?')) == NULL) commptr = argbuf + strlen(argbuf); commch = *commptr; *commptr = '\0'; snprintf(path_info, sizeof(path_info), "PATH_INFO=%s", argbuf); *commptr = commch; } else { commptr = argbuf; path_info[0] = '\0'; if (*commptr == ' ') commptr ++; } if (*commptr == '?' && con->operation == HTTP_STATE_GET && !con->query_string) { commptr ++; cupsdSetStringf(&(con->query_string), "QUERY_STRING=%s", commptr); } argc = 1; if (*commptr) { argv[argc ++] = commptr; for (; *commptr && argc < 99; commptr ++) { /* * Break arguments whenever we see a + or space... */ if (*commptr == ' ' || *commptr == '+') { while (*commptr == ' ' || *commptr == '+') *commptr++ = '\0'; /* * If we don't have a blank string, save it as another argument... */ if (*commptr) { argv[argc] = commptr; argc ++; } else break; } else if (*commptr == '%' && isxdigit(commptr[1] & 255) && isxdigit(commptr[2] & 255)) { /* * Convert the %xx notation to the individual character. */ if (commptr[1] >= '0' && commptr[1] <= '9') *commptr = (char)((commptr[1] - '0') << 4); else *commptr = (char)((tolower(commptr[1]) - 'a' + 10) << 4); if (commptr[2] >= '0' && commptr[2] <= '9') *commptr |= commptr[2] - '0'; else *commptr |= tolower(commptr[2]) - 'a' + 10; _cups_strcpy(commptr + 1, commptr + 3); /* * Check for a %00 and break if that is the case... */ if (!*commptr) break; } } } argv[argc] = NULL; /* * Setup the environment variables as needed... */ if (con->username[0]) { snprintf(auth_type, sizeof(auth_type), "AUTH_TYPE=%s", httpGetField(con->http, HTTP_FIELD_AUTHORIZATION)); if ((uriptr = strchr(auth_type + 10, ' ')) != NULL) *uriptr = '\0'; } else auth_type[0] = '\0'; if (con->request && (attr = ippFindAttribute(con->request, "attributes-natural-language", IPP_TAG_LANGUAGE)) != NULL) { cups_lang_t *language = cupsLangGet(ippGetString(attr, 0, NULL)); snprintf(lang, sizeof(lang), "LANG=%s.UTF8", language->language); cupsLangFree(language); } else if (con->language) snprintf(lang, sizeof(lang), "LANG=%s.UTF8", con->language->language); else strlcpy(lang, "LANG=C", sizeof(lang)); strlcpy(remote_addr, "REMOTE_ADDR=", sizeof(remote_addr)); httpAddrString(httpGetAddress(con->http), remote_addr + 12, sizeof(remote_addr) - 12); snprintf(remote_host, sizeof(remote_host), "REMOTE_HOST=%s", httpGetHostname(con->http, NULL, 0)); snprintf(script_name, sizeof(script_name), "SCRIPT_NAME=%s", con->uri); if ((uriptr = strchr(script_name, '?')) != NULL) *uriptr = '\0'; snprintf(script_filename, sizeof(script_filename), "SCRIPT_FILENAME=%s%s", DocumentRoot, script_name + 12); snprintf(server_port, sizeof(server_port), "SERVER_PORT=%d", con->serverport); if (httpGetField(con->http, HTTP_FIELD_HOST)[0]) { char *nameptr; /* Pointer to ":port" */ snprintf(server_name, sizeof(server_name), "SERVER_NAME=%s", httpGetField(con->http, HTTP_FIELD_HOST)); if ((nameptr = strrchr(server_name, ':')) != NULL && !strchr(nameptr, ']')) *nameptr = '\0'; /* Strip trailing ":port" */ } else snprintf(server_name, sizeof(server_name), "SERVER_NAME=%s", con->servername); envc = cupsdLoadEnv(envp, (int)(sizeof(envp) / sizeof(envp[0]))); if (auth_type[0]) envp[envc ++] = auth_type; envp[envc ++] = lang; envp[envc ++] = "REDIRECT_STATUS=1"; envp[envc ++] = "GATEWAY_INTERFACE=CGI/1.1"; envp[envc ++] = server_name; envp[envc ++] = server_port; envp[envc ++] = remote_addr; envp[envc ++] = remote_host; envp[envc ++] = script_name; envp[envc ++] = script_filename; if (path_info[0]) envp[envc ++] = path_info; if (con->username[0]) { snprintf(remote_user, sizeof(remote_user), "REMOTE_USER=%s", con->username); envp[envc ++] = remote_user; } if (httpGetVersion(con->http) == HTTP_VERSION_1_1) envp[envc ++] = "SERVER_PROTOCOL=HTTP/1.1"; else if (httpGetVersion(con->http) == HTTP_VERSION_1_0) envp[envc ++] = "SERVER_PROTOCOL=HTTP/1.0"; else envp[envc ++] = "SERVER_PROTOCOL=HTTP/0.9"; if (httpGetCookie(con->http)) { snprintf(http_cookie, sizeof(http_cookie), "HTTP_COOKIE=%s", httpGetCookie(con->http)); envp[envc ++] = http_cookie; } if (httpGetField(con->http, HTTP_FIELD_USER_AGENT)[0]) { snprintf(http_user_agent, sizeof(http_user_agent), "HTTP_USER_AGENT=%s", httpGetField(con->http, HTTP_FIELD_USER_AGENT)); envp[envc ++] = http_user_agent; } if (httpGetField(con->http, HTTP_FIELD_REFERER)[0]) { snprintf(http_referer, sizeof(http_referer), "HTTP_REFERER=%s", httpGetField(con->http, HTTP_FIELD_REFERER)); envp[envc ++] = http_referer; } if (con->operation == HTTP_STATE_GET) { envp[envc ++] = "REQUEST_METHOD=GET"; if (con->query_string) { /* * Add GET form variables after ?... */ envp[envc ++] = con->query_string; } else envp[envc ++] = "QUERY_STRING="; } else { snprintf(content_length, sizeof(content_length), "CONTENT_LENGTH=" CUPS_LLFMT, CUPS_LLCAST con->bytes); snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s", httpGetField(con->http, HTTP_FIELD_CONTENT_TYPE)); envp[envc ++] = "REQUEST_METHOD=POST"; envp[envc ++] = content_length; envp[envc ++] = content_type; } /* * Tell the CGI if we are using encryption... */ if (httpIsEncrypted(con->http)) envp[envc ++] = "HTTPS=ON"; /* * Terminate the environment array... */ envp[envc] = NULL; if (LogLevel >= CUPSD_LOG_DEBUG) { for (i = 0; i < argc; i ++) cupsdLogMessage(CUPSD_LOG_DEBUG, "[CGI] argv[%d] = \"%s\"", i, argv[i]); for (i = 0; i < envc; i ++) cupsdLogMessage(CUPSD_LOG_DEBUG, "[CGI] envp[%d] = \"%s\"", i, envp[i]); } /* * Create a pipe for the output... */ if (cupsdOpenPipe(fds)) { cupsdLogMessage(CUPSD_LOG_ERROR, "[CGI] Unable to create pipe for %s - %s", argv[0], strerror(errno)); return (0); } /* * Then execute the command... */ if (cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1], -1, -1, root, DefaultProfile, NULL, &pid) < 0) { /* * Error - can't fork! */ cupsdLogMessage(CUPSD_LOG_ERROR, "[CGI] Unable to start %s - %s", argv[0], strerror(errno)); cupsdClosePipe(fds); pid = 0; } else { /* * Fork successful - return the PID... */ if (con->username[0]) cupsdAddCert(pid, con->username, con->type); cupsdLogMessage(CUPSD_LOG_DEBUG, "[CGI] Started %s (PID %d)", command, pid); *outfile = fds[0]; close(fds[1]); } return (pid); } /* * 'valid_host()' - Is the Host: field valid? */ static int /* O - 1 if valid, 0 if not */ valid_host(cupsd_client_t *con) /* I - Client connection */ { cupsd_alias_t *a; /* Current alias */ cupsd_netif_t *netif; /* Current network interface */ const char *end; /* End character */ char *ptr; /* Pointer into host value */ /* * Copy the Host: header for later use... */ strlcpy(con->clientname, httpGetField(con->http, HTTP_FIELD_HOST), sizeof(con->clientname)); if ((ptr = strrchr(con->clientname, ':')) != NULL && !strchr(ptr, ']')) { *ptr++ = '\0'; con->clientport = atoi(ptr); } else con->clientport = con->serverport; /* * Then validate... */ if (httpAddrLocalhost(httpGetAddress(con->http))) { /* * Only allow "localhost" or the equivalent IPv4 or IPv6 numerical * addresses when accessing CUPS via the loopback interface... */ return (!_cups_strcasecmp(con->clientname, "localhost") || !_cups_strcasecmp(con->clientname, "localhost.") || !strcmp(con->clientname, "127.0.0.1") || !strcmp(con->clientname, "[::1]")); } #ifdef HAVE_DNSSD /* * Check if the hostname is something.local (Bonjour); if so, allow it. */ if ((end = strrchr(con->clientname, '.')) != NULL && end > con->clientname && !end[1]) { /* * "." on end, work back to second-to-last "."... */ for (end --; end > con->clientname && *end != '.'; end --); } if (end && (!_cups_strcasecmp(end, ".local") || !_cups_strcasecmp(end, ".local."))) return (1); #endif /* HAVE_DNSSD */ /* * Check if the hostname is an IP address... */ if (isdigit(con->clientname[0] & 255) || con->clientname[0] == '[') { /* * Possible IPv4/IPv6 address... */ http_addrlist_t *addrlist; /* List of addresses */ if ((addrlist = httpAddrGetList(con->clientname, AF_UNSPEC, NULL)) != NULL) { /* * Good IPv4/IPv6 address... */ httpAddrFreeList(addrlist); return (1); } } /* * Check for (alias) name matches... */ for (a = (cupsd_alias_t *)cupsArrayFirst(ServerAlias); a; a = (cupsd_alias_t *)cupsArrayNext(ServerAlias)) { /* * "ServerAlias *" allows all host values through... */ if (!strcmp(a->name, "*")) return (1); if (!_cups_strncasecmp(con->clientname, a->name, a->namelen)) { /* * Prefix matches; check the character at the end - it must be "." or nul. */ end = con->clientname + a->namelen; if (!*end || (*end == '.' && !end[1])) return (1); } } #ifdef HAVE_DNSSD for (a = (cupsd_alias_t *)cupsArrayFirst(DNSSDAlias); a; a = (cupsd_alias_t *)cupsArrayNext(DNSSDAlias)) { /* * "ServerAlias *" allows all host values through... */ if (!strcmp(a->name, "*")) return (1); if (!_cups_strncasecmp(con->clientname, a->name, a->namelen)) { /* * Prefix matches; check the character at the end - it must be "." or nul. */ end = con->clientname + a->namelen; if (!*end || (*end == '.' && !end[1])) return (1); } } #endif /* HAVE_DNSSD */ /* * Check for interface hostname matches... */ for (netif = (cupsd_netif_t *)cupsArrayFirst(NetIFList); netif; netif = (cupsd_netif_t *)cupsArrayNext(NetIFList)) { if (!_cups_strncasecmp(con->clientname, netif->hostname, netif->hostlen)) { /* * Prefix matches; check the character at the end - it must be "." or nul. */ end = con->clientname + netif->hostlen; if (!*end || (*end == '.' && !end[1])) return (1); } } return (0); } /* * 'write_file()' - Send a file via HTTP. */ static int /* O - 0 on failure, 1 on success */ write_file(cupsd_client_t *con, /* I - Client connection */ http_status_t code, /* I - HTTP status */ char *filename, /* I - Filename */ char *type, /* I - File type */ struct stat *filestats) /* O - File information */ { con->file = open(filename, O_RDONLY); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "write_file: code=%d, filename=\"%s\" (%d), type=\"%s\", filestats=%p.", code, filename, con->file, type ? type : "(null)", filestats); if (con->file < 0) return (0); fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC); con->pipe_pid = 0; con->sent_header = 1; httpClearFields(con->http); httpSetLength(con->http, (size_t)filestats->st_size); httpSetField(con->http, HTTP_FIELD_LAST_MODIFIED, httpGetDateString(filestats->st_mtime)); if (!cupsdSendHeader(con, code, type, CUPSD_AUTH_NONE)) return (0); cupsdAddSelect(httpGetFd(con->http), NULL, (cupsd_selfunc_t)cupsdWriteClient, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Sending file."); return (1); } /* * 'write_pipe()' - Flag that data is available on the CGI pipe. */ static void write_pipe(cupsd_client_t *con) /* I - Client connection */ { cupsdLogClient(con, CUPSD_LOG_DEBUG2, "write_pipe: CGI output on fd %d.", con->file); con->file_ready = 1; cupsdRemoveSelect(con->file); cupsdAddSelect(httpGetFd(con->http), NULL, (cupsd_selfunc_t)cupsdWriteClient, con); cupsdLogClient(con, CUPSD_LOG_DEBUG, "CGI data ready to be sent."); } cups-2.4.7/scheduler/classes.h0000644000175000017500000000147414502571342016153 0ustar zdohnalzdohnal/* * Printer class definitions for the CUPS scheduler. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Prototypes... */ extern cupsd_printer_t *cupsdAddClass(const char *name); extern void cupsdAddPrinterToClass(cupsd_printer_t *c, cupsd_printer_t *p); extern int cupsdDeletePrinterFromClass(cupsd_printer_t *c, cupsd_printer_t *p); extern int cupsdDeletePrinterFromClasses(cupsd_printer_t *p); extern cupsd_printer_t *cupsdFindAvailablePrinter(const char *name); extern cupsd_printer_t *cupsdFindClass(const char *name); extern void cupsdLoadAllClasses(void); extern void cupsdSaveAllClasses(void); cups-2.4.7/scheduler/classes.c0000644000175000017500000004642014502571342016146 0ustar zdohnalzdohnal/* * Printer class routines for the CUPS scheduler. * * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" /* * 'cupsdAddClass()' - Add a class to the system. */ cupsd_printer_t * /* O - New class */ cupsdAddClass(const char *name) /* I - Name of class */ { cupsd_printer_t *c; /* New class */ char uri[1024]; /* Class URI */ /* * Add the printer and set the type to "class"... */ if ((c = cupsdAddPrinter(name)) != NULL) { /* * Change from a printer to a class... */ c->type = CUPS_PRINTER_CLASS; httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, ServerName, RemotePort, "/classes/%s", name); cupsdSetString(&c->uri, uri); cupsdSetString(&c->error_policy, "retry-current-job"); } return (c); } /* * 'cupsdAddPrinterToClass()' - Add a printer to a class... */ void cupsdAddPrinterToClass( cupsd_printer_t *c, /* I - Class to add to */ cupsd_printer_t *p) /* I - Printer to add */ { int i; /* Looping var */ cupsd_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... */ if (c->num_printers == 0) temp = malloc(sizeof(cupsd_printer_t *)); else temp = realloc(c->printers, sizeof(cupsd_printer_t *) * (size_t)(c->num_printers + 1)); if (temp == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to add printer %s to class %s!", p->name, c->name); return; } /* * Add the printer to the end of the array and update the number of printers. */ c->printers = temp; temp += c->num_printers; c->num_printers ++; *temp = p; } /* * 'cupsdDeletePrinterFromClass()' - Delete a printer from a class. */ int /* O - 1 if class changed, 0 otherwise */ cupsdDeletePrinterFromClass( cupsd_printer_t *c, /* I - Class to delete from */ cupsd_printer_t *p) /* I - Printer to delete */ { int i; /* Looping var */ /* * See if the printer is in the class... */ for (i = 0; i < c->num_printers; i ++) if (p == c->printers[i]) break; /* * If it is, remove it from the list... */ if (i < c->num_printers) { /* * Yes, remove the printer... */ c->num_printers --; if (i < c->num_printers) memmove(c->printers + i, c->printers + i + 1, (size_t)(c->num_printers - i) * sizeof(cupsd_printer_t *)); } else return (0); /* * Update the IPP attributes (have to do this for member-names)... */ cupsdSetPrinterAttrs(c); return (1); } /* * 'cupsdDeletePrinterFromClasses()' - Delete a printer from all classes. */ int /* O - 1 if class changed, 0 otherwise */ cupsdDeletePrinterFromClasses( cupsd_printer_t *p) /* I - Printer to delete */ { int changed = 0; /* Any class changed? */ cupsd_printer_t *c; /* Pointer to current class */ /* * Loop through the printer/class list and remove the printer * from each class listed... */ for (c = (cupsd_printer_t *)cupsArrayFirst(Printers); c; c = (cupsd_printer_t *)cupsArrayNext(Printers)) if (c->type & CUPS_PRINTER_CLASS) changed |= cupsdDeletePrinterFromClass(c, p); return (changed); } /* * 'cupsdFindAvailablePrinter()' - Find an available printer in a class. */ cupsd_printer_t * /* O - Available printer or NULL */ cupsdFindAvailablePrinter( const char *name) /* I - Class to check */ { int i; /* Looping var */ cupsd_printer_t *c; /* Printer class */ /* * Find the class... */ if ((c = cupsdFindClass(name)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to find class \"%s\"!", name); return (NULL); } if (c->num_printers == 0) return (NULL); /* * Make sure that the last printer is also a valid index into the printer * array. If not, reset the last printer to 0... */ if (c->last_printer >= c->num_printers) c->last_printer = 0; /* * Loop through the printers in the class and return the first idle * printer... We keep track of the last printer that we used so that * a "round robin" type of scheduling is realized (otherwise the first * server might be saturated with print jobs...) * * Thanks to Joel Fredrikson for helping us get this right! */ for (i = c->last_printer + 1; ; i ++) { if (i >= c->num_printers) i = 0; if (c->printers[i]->accepting && (c->printers[i]->state == IPP_PRINTER_IDLE || ((c->printers[i]->type & CUPS_PRINTER_REMOTE) && !c->printers[i]->job))) { c->last_printer = i; return (c->printers[i]); } if (i == c->last_printer) break; } return (NULL); } /* * 'cupsdFindClass()' - Find the named class. */ cupsd_printer_t * /* O - Matching class or NULL */ cupsdFindClass(const char *name) /* I - Name of class */ { cupsd_printer_t *c; /* Current class/printer */ if ((c = cupsdFindDest(name)) != NULL && (c->type & CUPS_PRINTER_CLASS)) return (c); else return (NULL); } /* * 'cupsdLoadAllClasses()' - Load classes from the classes.conf file. */ void cupsdLoadAllClasses(void) { int i; /* Looping var */ cups_file_t *fp; /* classes.conf file */ int linenum; /* Current line number */ char line[4096], /* Line from file */ *value, /* Pointer to value */ *valueptr; /* Pointer into value */ cupsd_printer_t *p, /* Current printer class */ *temp; /* Temporary pointer to printer */ /* * Open the classes.conf file... */ snprintf(line, sizeof(line), "%s/classes.conf", ServerRoot); if ((fp = cupsdOpenConfFile(line)) == NULL) return; /* * Read class configurations until we hit EOF... */ linenum = 0; p = NULL; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Decode the directive... */ if (!_cups_strcasecmp(line, " or */ if (p == NULL && value) { cupsdLogMessage(CUPSD_LOG_DEBUG, "Loading class %s...", value); /* * Since prior classes may have implicitly defined this class, * see if it already exists... */ if ((p = cupsdFindDest(value)) != NULL) { p->type = CUPS_PRINTER_CLASS; cupsdSetStringf(&p->uri, "ipp://%s:%d/classes/%s", ServerName, LocalPort, value); cupsdSetString(&p->error_policy, "retry-job"); } else p = cupsdAddClass(value); p->accepting = 1; p->state = IPP_PRINTER_IDLE; if (!_cups_strcasecmp(line, "") || !_cups_strcasecmp(line, "")) { if (p != NULL) { cupsdSetPrinterAttrs(p); p = NULL; } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!p) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "PrinterId")) { if (value && (i = atoi(value)) > 0) p->printer_id = i; else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad PrinterId on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "UUID")) { if (value && !strncmp(value, "urn:uuid:", 9)) cupsdSetString(&(p->uuid), value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad UUID on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "AuthInfoRequired")) { if (!cupsdSetAuthInfoRequired(p, value, NULL)) cupsdLogMessage(CUPSD_LOG_ERROR, "Bad AuthInfoRequired on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "Info")) { if (value) cupsdSetString(&p->info, value); } else if (!_cups_strcasecmp(line, "Location")) { if (value) cupsdSetString(&p->location, value); } else if (!_cups_strcasecmp(line, "Option") && value) { /* * Option name value */ for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (!*valueptr) cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); else { for (; *valueptr && isspace(*valueptr & 255); *valueptr++ = '\0'); p->num_options = cupsAddOption(value, valueptr, p->num_options, &(p->options)); } } else if (!_cups_strcasecmp(line, "Printer")) { if (!value) { cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); continue; } else if ((temp = cupsdFindPrinter(value)) == NULL) { cupsdLogMessage(CUPSD_LOG_WARN, "Unknown printer %s on line %d of classes.conf.", value, linenum); /* * Add the missing remote printer... */ if ((temp = cupsdAddPrinter(value)) != NULL) { cupsdSetString(&temp->make_model, "Remote Printer on unknown"); temp->state = IPP_PRINTER_STOPPED; temp->type |= CUPS_PRINTER_REMOTE; cupsdSetString(&temp->location, "Location Unknown"); cupsdSetString(&temp->info, "No Information Available"); temp->hostname[0] = '\0'; cupsdSetPrinterAttrs(temp); } } if (temp) cupsdAddPrinterToClass(p, temp); } else if (!_cups_strcasecmp(line, "State")) { /* * Set the initial queue state... */ if (!_cups_strcasecmp(value, "idle")) p->state = IPP_PRINTER_IDLE; else if (!_cups_strcasecmp(value, "stopped")) { p->state = IPP_PRINTER_STOPPED; for (i = 0 ; i < p->num_reasons; i ++) if (!strcmp("paused", p->reasons[i])) break; if (i >= p->num_reasons && p->num_reasons < (int)(sizeof(p->reasons) / sizeof(p->reasons[0]))) { p->reasons[p->num_reasons] = _cupsStrAlloc("paused"); p->num_reasons ++; } } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "StateMessage")) { /* * Set the initial queue state message... */ if (value) strlcpy(p->state_message, value, sizeof(p->state_message)); } else if (!_cups_strcasecmp(line, "StateTime")) { /* * Set the state time... */ if (value) p->state_time = atoi(value); } else if (!_cups_strcasecmp(line, "Accepting")) { /* * Set the initial accepting state... */ if (value && (!_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "true"))) p->accepting = 1; else if (value && (!_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "false"))) p->accepting = 0; else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "Shared")) { /* * Set the initial shared state... */ if (value && (!_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "true"))) p->shared = 1; else if (value && (!_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "false"))) p->shared = 0; else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "JobSheets")) { /* * Set the initial job sheets... */ if (value) { for (valueptr = value; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (*valueptr) *valueptr++ = '\0'; cupsdSetString(&p->job_sheets[0], value); while (isspace(*valueptr & 255)) valueptr ++; if (*valueptr) { for (value = valueptr; *valueptr && !isspace(*valueptr & 255); valueptr ++); if (*valueptr) *valueptr = '\0'; cupsdSetString(&p->job_sheets[1], value); } } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "AllowUser")) { if (value) { p->deny_users = 0; cupsdAddString(&(p->users), value); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "DenyUser")) { if (value) { p->deny_users = 1; cupsdAddString(&(p->users), value); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "QuotaPeriod")) { if (value) p->quota_period = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "PageLimit")) { if (value) p->page_limit = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "KLimit")) { if (value) p->k_limit = atoi(value); else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "OpPolicy")) { if (value) { cupsd_policy_t *pol; /* Policy */ if ((pol = cupsdFindPolicy(value)) != NULL) { cupsdSetString(&p->op_policy, value); p->op_policy_ptr = pol; } else cupsdLogMessage(CUPSD_LOG_ERROR, "Bad policy \"%s\" on line %d of classes.conf", value, linenum); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else if (!_cups_strcasecmp(line, "ErrorPolicy")) { if (value) { if (strcmp(value, "retry-current-job") && strcmp(value, "retry-job")) cupsdLogMessage(CUPSD_LOG_WARN, "ErrorPolicy %s ignored on line %d of classes.conf", value, linenum); } else cupsdLogMessage(CUPSD_LOG_ERROR, "Syntax error on line %d of classes.conf.", linenum); } else { /* * Something else we don't understand... */ cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown configuration directive %s on line %d of classes.conf.", line, linenum); } } cupsFileClose(fp); } /* * 'cupsdSaveAllClasses()' - Save classes to the classes.conf file. */ void cupsdSaveAllClasses(void) { cups_file_t *fp; /* classes.conf file */ char filename[1024], /* classes.conf filename */ value[2048], /* Value string */ *name; /* Current user name */ cupsd_printer_t *pclass; /* Current printer class */ int i; /* Looping var */ cups_option_t *option; /* Current option */ /* * Create the classes.conf file... */ snprintf(filename, sizeof(filename), "%s/classes.conf", ServerRoot); if ((fp = cupsdCreateConfFile(filename, ConfigFilePerm)) == NULL) return; cupsdLogMessage(CUPSD_LOG_INFO, "Saving classes.conf..."); /* * Write a small header to the file... */ cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n"); cupsFilePrintf(fp, "# Written by cupsd\n"); cupsFilePuts(fp, "# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING\n"); /* * Write each local class known to the system... */ for (pclass = (cupsd_printer_t *)cupsArrayFirst(Printers); pclass; pclass = (cupsd_printer_t *)cupsArrayNext(Printers)) { /* * Skip remote destinations and regular printers... */ if ((pclass->type & CUPS_PRINTER_REMOTE) || !(pclass->type & CUPS_PRINTER_CLASS)) continue; /* * Write printers as needed... */ if (pclass == DefaultPrinter) cupsFilePrintf(fp, "\n", pclass->name); else cupsFilePrintf(fp, "\n", pclass->name); if (pclass->printer_id) cupsFilePrintf(fp, "PrinterId %d\n", pclass->printer_id); cupsFilePrintf(fp, "UUID %s\n", pclass->uuid); if (pclass->num_auth_info_required > 0) { switch (pclass->num_auth_info_required) { case 1 : strlcpy(value, pclass->auth_info_required[0], sizeof(value)); break; case 2 : snprintf(value, sizeof(value), "%s,%s", pclass->auth_info_required[0], pclass->auth_info_required[1]); break; case 3 : default : snprintf(value, sizeof(value), "%s,%s,%s", pclass->auth_info_required[0], pclass->auth_info_required[1], pclass->auth_info_required[2]); break; } cupsFilePutConf(fp, "AuthInfoRequired", value); } if (pclass->info) cupsFilePutConf(fp, "Info", pclass->info); if (pclass->location) cupsFilePutConf(fp, "Location", pclass->location); if (pclass->state == IPP_PRINTER_STOPPED) cupsFilePuts(fp, "State Stopped\n"); else cupsFilePuts(fp, "State Idle\n"); cupsFilePrintf(fp, "StateTime %d\n", (int)pclass->state_time); if (pclass->accepting) cupsFilePuts(fp, "Accepting Yes\n"); else cupsFilePuts(fp, "Accepting No\n"); if (pclass->shared) cupsFilePuts(fp, "Shared Yes\n"); else cupsFilePuts(fp, "Shared No\n"); snprintf(value, sizeof(value), "%s %s", pclass->job_sheets[0], pclass->job_sheets[1]); cupsFilePutConf(fp, "JobSheets", value); for (i = 0; i < pclass->num_printers; i ++) cupsFilePrintf(fp, "Printer %s\n", pclass->printers[i]->name); cupsFilePrintf(fp, "QuotaPeriod %d\n", pclass->quota_period); cupsFilePrintf(fp, "PageLimit %d\n", pclass->page_limit); cupsFilePrintf(fp, "KLimit %d\n", pclass->k_limit); for (name = (char *)cupsArrayFirst(pclass->users); name; name = (char *)cupsArrayNext(pclass->users)) cupsFilePutConf(fp, pclass->deny_users ? "DenyUser" : "AllowUser", name); if (pclass->op_policy) cupsFilePutConf(fp, "OpPolicy", pclass->op_policy); if (pclass->error_policy) cupsFilePutConf(fp, "ErrorPolicy", pclass->error_policy); for (i = pclass->num_options, option = pclass->options; i > 0; i --, option ++) { snprintf(value, sizeof(value), "%s %s", option->name, option->value); cupsFilePutConf(fp, "Option", value); } if (pclass == DefaultPrinter) cupsFilePuts(fp, "\n"); else cupsFilePuts(fp, "\n"); } cupsdCloseCreatedConfFile(fp, filename); } cups-2.4.7/scheduler/cert.h0000644000175000017500000000202514502571342015444 0ustar zdohnalzdohnal/* * Authentication certificate definitions for the CUPS scheduler. * * Copyright 2007-2012 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Certificate structure... */ typedef struct cupsd_cert_s { struct cupsd_cert_s *next; /* Next certificate in list */ int pid; /* Process ID (0 for root certificate) */ char certificate[33]; /* 32 hex characters, or 128 bits */ char username[33]; /* Authenticated username */ int type; /* AuthType for username */ } cupsd_cert_t; /* * Globals... */ VAR cupsd_cert_t *Certs /* List of certificates */ VALUE(NULL); VAR time_t RootCertTime /* Root certificate update time */ VALUE(0); /* * Prototypes... */ extern void cupsdAddCert(int pid, const char *username, int type); extern void cupsdDeleteCert(int pid); extern void cupsdDeleteAllCerts(void); extern cupsd_cert_t *cupsdFindCert(const char *certificate); extern void cupsdInitCerts(void); cups-2.4.7/scheduler/cert.c0000644000175000017500000002444014502571342015444 0ustar zdohnalzdohnal/* * Authentication certificate routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2016 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #ifdef HAVE_ACL_INIT # include # ifdef HAVE_MEMBERSHIP_H # include # endif /* HAVE_MEMBERSHIP_H */ #endif /* HAVE_ACL_INIT */ /* * Local functions... */ static int ctcompare(const char *a, const char *b); /* * 'cupsdAddCert()' - Add a certificate. */ void cupsdAddCert(int pid, /* I - Process ID */ const char *username, /* I - Username */ int type) /* I - AuthType for username */ { int i; /* Looping var */ cupsd_cert_t *cert; /* Current certificate */ int fd; /* Certificate file */ char filename[1024]; /* Certificate filename */ static const char hex[] = "0123456789ABCDEF"; /* Hex constants... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdAddCert: Adding certificate for PID %d", pid); /* * Allocate memory for the certificate... */ if ((cert = calloc(1, sizeof(cupsd_cert_t))) == NULL) return; /* * Fill in the certificate information... */ cert->pid = pid; cert->type = type; strlcpy(cert->username, username, sizeof(cert->username)); for (i = 0; i < 32; i ++) cert->certificate[i] = hex[CUPS_RAND() & 15]; /* * Save the certificate to a file readable only by the User and Group * (or root and SystemGroup for PID == 0)... */ snprintf(filename, sizeof(filename), "%s/certs/%d", StateDir, pid); unlink(filename); if ((fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400)) < 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to create certificate file %s - %s", filename, strerror(errno)); free(cert); return; } if (pid == 0) { #if defined(HAVE_ACL_INIT) && !CUPS_SNAP acl_t acl; /* ACL information */ acl_entry_t entry; /* ACL entry */ acl_permset_t permset; /* Permissions */ # ifdef HAVE_MBR_UID_TO_UUID uuid_t group; /* Group ID */ # endif /* HAVE_MBR_UID_TO_UUID */ static int acls_not_supported = 0; /* Only warn once */ #endif /* HAVE_ACL_INIT && !CUPS_SNAP */ /* * Root certificate... */ fchmod(fd, 0440); /* ACLs do not work when cupsd is running in a Snap, and certificates need root as group owner to be only accessible for CUPS and not the unprivileged sub-processes */ #if CUPS_SNAP fchown(fd, RunUser, 0); #else fchown(fd, RunUser, SystemGroupIDs[0]); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddCert: NumSystemGroups=%d", NumSystemGroups); # ifdef HAVE_ACL_INIT if (NumSystemGroups > 1) { /* * Set POSIX ACLs for the root certificate so that all system * groups can access it... */ int j; /* Looping var */ # ifdef HAVE_MBR_UID_TO_UUID /* * On macOS, ACLs use UUIDs instead of GIDs... */ acl = acl_init(NumSystemGroups - 1); for (i = 1; i < NumSystemGroups; i ++) { /* * Add each group ID to the ACL... */ for (j = 0; j < i; j ++) if (SystemGroupIDs[j] == SystemGroupIDs[i]) break; if (j < i) continue; /* Skip duplicate groups */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, ACL_READ_DATA); acl_set_tag_type(entry, ACL_EXTENDED_ALLOW); mbr_gid_to_uuid((gid_t)SystemGroupIDs[i], group); acl_set_qualifier(entry, &group); acl_set_permset(entry, permset); } # else /* * POSIX ACLs need permissions for owner, group, other, and mask * in addition to the rest of the system groups... */ acl = acl_init(NumSystemGroups + 3); /* Owner */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, ACL_READ); acl_set_tag_type(entry, ACL_USER_OBJ); acl_set_permset(entry, permset); /* Group */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, ACL_READ); acl_set_tag_type(entry, ACL_GROUP_OBJ); acl_set_permset(entry, permset); /* Others */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, 0); acl_set_tag_type(entry, ACL_OTHER); acl_set_permset(entry, permset); /* Mask */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, ACL_READ); acl_set_tag_type(entry, ACL_MASK); acl_set_permset(entry, permset); for (i = 1; i < NumSystemGroups; i ++) { /* * Add each group ID to the ACL... */ for (j = 0; j < i; j ++) if (SystemGroupIDs[j] == SystemGroupIDs[i]) break; if (j < i) continue; /* Skip duplicate groups */ acl_create_entry(&acl, &entry); acl_get_permset(entry, &permset); acl_add_perm(permset, ACL_READ); acl_set_tag_type(entry, ACL_GROUP); acl_set_qualifier(entry, SystemGroupIDs + i); acl_set_permset(entry, permset); } if (acl_valid(acl)) { char *text, *textptr; /* Temporary string */ cupsdLogMessage(CUPSD_LOG_ERROR, "ACL did not validate: %s", strerror(errno)); text = acl_to_text(acl, NULL); for (textptr = strchr(text, '\n'); textptr; textptr = strchr(textptr + 1, '\n')) *textptr = ','; cupsdLogMessage(CUPSD_LOG_ERROR, "ACL: %s", text); acl_free(text); } # endif /* HAVE_MBR_UID_TO_UUID */ if (acl_set_fd(fd, acl)) { if (errno != EOPNOTSUPP || !acls_not_supported) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to set ACLs on root certificate \"%s\" - %s", filename, strerror(errno)); if (errno == EOPNOTSUPP) acls_not_supported = 1; } acl_free(acl); } # endif /* HAVE_ACL_INIT */ #endif /* CUPS_SNAP */ RootCertTime = time(NULL); } else { /* * CGI certificate... */ fchmod(fd, 0400); fchown(fd, User, Group); } write(fd, cert->certificate, strlen(cert->certificate)); close(fd); /* * Insert the certificate at the front of the list... */ cert->next = Certs; Certs = cert; } /* * 'cupsdDeleteCert()' - Delete a single certificate. */ void cupsdDeleteCert(int pid) /* I - Process ID */ { cupsd_cert_t *cert, /* Current certificate */ *prev; /* Previous certificate */ char filename[1024]; /* Certificate file */ for (prev = NULL, cert = Certs; cert != NULL; prev = cert, cert = cert->next) if (cert->pid == pid) { /* * Remove this certificate from the list... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeleteCert: Removing certificate for PID %d.", pid); if (prev == NULL) Certs = cert->next; else prev->next = cert->next; free(cert); /* * Delete the file and return... */ snprintf(filename, sizeof(filename), "%s/certs/%d", StateDir, pid); if (unlink(filename)) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to remove %s!", filename); return; } } /* * 'cupsdDeleteAllCerts()' - Delete all certificates... */ void cupsdDeleteAllCerts(void) { cupsd_cert_t *cert, /* Current certificate */ *next; /* Next certificate */ char filename[1024]; /* Certificate file */ /* * Loop through each certificate, deleting them... */ for (cert = Certs; cert != NULL; cert = next) { /* * Delete the file... */ snprintf(filename, sizeof(filename), "%s/certs/%d", StateDir, cert->pid); if (unlink(filename)) cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to remove %s!", filename); /* * Free memory... */ next = cert->next; free(cert); } Certs = NULL; RootCertTime = 0; } /* * 'cupsdFindCert()' - Find a certificate. */ cupsd_cert_t * /* O - Matching certificate or NULL */ cupsdFindCert(const char *certificate) /* I - Certificate */ { cupsd_cert_t *cert; /* Current certificate */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindCert(certificate=%s)", certificate); for (cert = Certs; cert != NULL; cert = cert->next) if (!ctcompare(certificate, cert->certificate)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindCert: Returning \"%s\".", cert->username); return (cert); } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindCert: Certificate not found."); return (NULL); } /* * 'cupsdInitCerts()' - Initialize the certificate "system" and root * certificate. */ void cupsdInitCerts(void) { #ifndef HAVE_ARC4RANDOM cups_file_t *fp; /* /dev/random file */ /* * Initialize the random number generator using the random device or * the current time, as available... */ if ((fp = cupsFileOpen("/dev/urandom", "rb")) == NULL) { struct timeval tod; /* Time of day */ /* * Get the time in usecs and use it as the initial seed... */ gettimeofday(&tod, NULL); CUPS_SRAND((unsigned)(tod.tv_sec + tod.tv_usec)); } else { unsigned seed; /* Seed for random number generator */ /* * Read 4 random characters from the random device and use * them as the seed... */ seed = (unsigned)cupsFileGetChar(fp); seed = (seed << 8) | (unsigned)cupsFileGetChar(fp); seed = (seed << 8) | (unsigned)cupsFileGetChar(fp); CUPS_SRAND((seed << 8) | (unsigned)cupsFileGetChar(fp)); cupsFileClose(fp); } #endif /* !HAVE_ARC4RANDOM */ /* * Create a root certificate and return... */ if (!RunUser) cupsdAddCert(0, "root", cupsdDefaultAuthType()); } /* * 'ctcompare()' - Compare two strings in constant time. */ static int /* O - 0 on match, non-zero on non-match */ ctcompare(const char *a, /* I - First string */ const char *b) /* I - Second string */ { int result = 0; /* Result */ while (*a && *b) { result |= *a ^ *b; a ++; b ++; } /* * The while loop finishes when *a == '\0' or *b == '\0' * so after the while loop either both *a and *b == '\0', * or one points inside a string, so when we apply bitwise OR on *a, * *b and result, we get a non-zero return value if the compared strings don't match. */ return (result | *a | *b); } cups-2.4.7/scheduler/banners.h0000644000175000017500000000123314502571342016137 0ustar zdohnalzdohnal/* * Banner definitions for the CUPS scheduler. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Banner information structure... */ typedef struct /**** Banner file information ****/ { char *name; /* Name of banner */ mime_type_t *filetype; /* Filetype for banner */ } cupsd_banner_t; /* * Globals... */ VAR cups_array_t *Banners VALUE(NULL); /* Available banner files */ /* * Prototypes... */ extern cupsd_banner_t *cupsdFindBanner(const char *name); extern void cupsdLoadBanners(const char *d); cups-2.4.7/scheduler/banners.c0000644000175000017500000001002014502571342016124 0ustar zdohnalzdohnal/* * Banner routines for the CUPS scheduler. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cupsd.h" #include /* * Local functions... */ static void add_banner(const char *name, const char *filename); static int compare_banners(const cupsd_banner_t *b0, const cupsd_banner_t *b1); static void free_banners(void); /* * 'cupsdFindBanner()' - Find a named banner. */ cupsd_banner_t * /* O - Pointer to banner or NULL */ cupsdFindBanner(const char *name) /* I - Name of banner */ { cupsd_banner_t key; /* Search key */ key.name = (char *)name; return ((cupsd_banner_t *)cupsArrayFind(Banners, &key)); } /* * 'cupsdLoadBanners()' - Load all available banner files... */ void cupsdLoadBanners(const char *d) /* I - Directory to search */ { cups_dir_t *dir; /* Directory pointer */ cups_dentry_t *dent; /* Directory entry */ char filename[1024], /* Name of banner */ *ext; /* Pointer to extension */ /* * Free old banner info... */ free_banners(); /* * Try opening the banner directory... */ if ((dir = cupsDirOpen(d)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "cupsdLoadBanners: Unable to open banner directory \"%s\": %s", d, strerror(errno)); return; } /* * Read entries, skipping directories and backup files. */ Banners = cupsArrayNew((cups_array_func_t)compare_banners, NULL); while ((dent = cupsDirRead(dir)) != NULL) { /* * Check the file to make sure it isn't a directory or a backup * file of some sort... */ snprintf(filename, sizeof(filename), "%s/%s", d, dent->filename); if (S_ISDIR(dent->fileinfo.st_mode)) continue; if (dent->filename[0] == '~' || dent->filename[strlen(dent->filename) - 1] == '~') continue; if ((ext = strrchr(dent->filename, '.')) != NULL) if (!strcmp(ext, ".bck") || !strcmp(ext, ".bak") || !strcmp(ext, ".sav")) continue; /* * Must be a valid file; add it! */ add_banner(dent->filename, filename); } /* * Close the directory... */ cupsDirClose(dir); } /* * 'add_banner()' - Add a banner to the array. */ static void add_banner(const char *name, /* I - Name of banner */ const char *filename) /* I - Filename for banner */ { mime_type_t *filetype; /* Filetype */ cupsd_banner_t *temp; /* New banner data */ /* * See what the filetype is... */ if ((filetype = mimeFileType(MimeDatabase, filename, NULL, NULL)) == NULL) { cupsdLogMessage(CUPSD_LOG_WARN, "add_banner: Banner \"%s\" (\"%s\") is of an unknown file " "type - skipping!", name, filename); return; } /* * Allocate memory... */ if ((temp = calloc(1, sizeof(cupsd_banner_t))) == NULL) { cupsdLogMessage(CUPSD_LOG_WARN, "add_banner: Unable to allocate memory for banner \"%s\" - " "skipping!", name); return; } /* * Copy the new banner data over... */ if ((temp->name = strdup(name)) == NULL) { cupsdLogMessage(CUPSD_LOG_WARN, "add_banner: Unable to allocate memory for banner \"%s\" - " "skipping!", name); free(temp); return; } temp->filetype = filetype; cupsArrayAdd(Banners, temp); } /* * 'compare_banners()' - Compare two banners. */ static int /* O - -1 if name0 < name1, etc. */ compare_banners( const cupsd_banner_t *b0, /* I - First banner */ const cupsd_banner_t *b1) /* I - Second banner */ { return (_cups_strcasecmp(b0->name, b1->name)); } /* * 'free_banners()' - Free all banners. */ static void free_banners(void) { cupsd_banner_t *temp; /* Current banner */ for (temp = (cupsd_banner_t *)cupsArrayFirst(Banners); temp; temp = (cupsd_banner_t *)cupsArrayNext(Banners)) { free(temp->name); free(temp); } cupsArrayDelete(Banners); Banners = NULL; } cups-2.4.7/scheduler/auth.h0000644000175000017500000001063114502571342015452 0ustar zdohnalzdohnal/* * Authorization definitions for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * HTTP authorization types and levels... */ #define CUPSD_AUTH_DEFAULT -1 /* Use DefaultAuthType */ #define CUPSD_AUTH_NONE 0 /* No authentication */ #define CUPSD_AUTH_BASIC 1 /* Basic authentication */ #define CUPSD_AUTH_NEGOTIATE 2 /* Kerberos authentication */ #define CUPSD_AUTH_AUTO 3 /* Kerberos or Basic, depending on configuration of server */ #define CUPSD_AUTH_ANON 0 /* Anonymous access */ #define CUPSD_AUTH_USER 1 /* Must have a valid username/password */ #define CUPSD_AUTH_GROUP 2 /* Must also be in a named group */ #define CUPSD_AUTH_ALLOW 0 /* Allow access */ #define CUPSD_AUTH_DENY 1 /* Deny access */ #define CUPSD_AUTH_NAME 0 /* Authorize host by name */ #define CUPSD_AUTH_IP 1 /* Authorize host by IP */ #define CUPSD_AUTH_INTERFACE 2 /* Authorize host by interface */ #define CUPSD_AUTH_SATISFY_ALL 0 /* Satisfy both address and auth */ #define CUPSD_AUTH_SATISFY_ANY 1 /* Satisfy either address or auth */ #define CUPSD_AUTH_LIMIT_DELETE 1 /* Limit DELETE requests */ #define CUPSD_AUTH_LIMIT_GET 2 /* Limit GET requests */ #define CUPSD_AUTH_LIMIT_HEAD 4 /* Limit HEAD requests */ #define CUPSD_AUTH_LIMIT_OPTIONS 8 /* Limit OPTIONS requests */ #define CUPSD_AUTH_LIMIT_POST 16 /* Limit POST requests */ #define CUPSD_AUTH_LIMIT_PUT 32 /* Limit PUT requests */ #define CUPSD_AUTH_LIMIT_TRACE 64 /* Limit TRACE requests */ #define CUPSD_AUTH_LIMIT_ALL 127 /* Limit all requests */ #define CUPSD_AUTH_LIMIT_IPP 128 /* Limit IPP requests */ #define IPP_ANY_OPERATION (ipp_op_t)0 /* Any IPP operation */ #define IPP_BAD_OPERATION (ipp_op_t)-1 /* No IPP operation */ /* * HTTP access control structures... */ typedef struct { unsigned address[4], /* IP address */ netmask[4]; /* IP netmask */ } cupsd_ipmask_t; typedef struct { size_t length; /* Length of name */ char *name; /* Name string */ } cupsd_namemask_t; typedef struct { int type; /* Mask type */ union { cupsd_namemask_t name; /* Host/Domain name */ cupsd_ipmask_t ip; /* IP address/network */ } mask; /* Mask data */ } cupsd_authmask_t; typedef struct { char *location; /* Location of resource */ size_t length; /* Length of location string */ ipp_op_t op; /* IPP operation */ int limit, /* Limit for these types of requests */ order_type, /* Allow or Deny */ type, /* Type of authentication */ level, /* Access level required */ satisfy; /* Satisfy any or all limits? */ cups_array_t *names, /* User or group names */ *allow, /* Allow lines */ *deny; /* Deny lines */ http_encryption_t encryption; /* To encrypt or not to encrypt... */ } cupsd_location_t; typedef struct cupsd_client_s cupsd_client_t; /* * Globals... */ VAR cups_array_t *Locations VALUE(NULL); /* Authorization locations */ #ifdef HAVE_TLS VAR http_encryption_t DefaultEncryption VALUE(HTTP_ENCRYPT_REQUIRED); /* Default encryption for authentication */ #endif /* HAVE_TLS */ /* * Prototypes... */ extern int cupsdAddIPMask(cups_array_t **masks, const unsigned address[4], const unsigned netmask[4]); extern void cupsdAddLocation(cupsd_location_t *loc); extern void cupsdAddName(cupsd_location_t *loc, char *name); extern int cupsdAddNameMask(cups_array_t **masks, char *name); extern void cupsdAuthorize(cupsd_client_t *con); extern int cupsdCheckAccess(unsigned ip[4], const char *name, size_t namelen, cupsd_location_t *loc); extern int cupsdCheckAuth(unsigned ip[4], const char *name, size_t namelen, cups_array_t *masks); extern int cupsdCheckGroup(const char *username, struct passwd *user, const char *groupname); extern cupsd_location_t *cupsdCopyLocation(cupsd_location_t *loc); extern void cupsdDeleteAllLocations(void); extern cupsd_location_t *cupsdFindBest(const char *path, http_state_t state); extern cupsd_location_t *cupsdFindLocation(const char *location); extern void cupsdFreeLocation(cupsd_location_t *loc); extern http_status_t cupsdIsAuthorized(cupsd_client_t *con, const char *owner); extern cupsd_location_t *cupsdNewLocation(const char *location); cups-2.4.7/scheduler/auth.c0000644000175000017500000016623014502571342015454 0ustar zdohnalzdohnal/* * Authorization routines for the CUPS scheduler. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by * Jelmer Vernooij. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cupsd.h" #include #ifdef HAVE_SHADOW_H # include #endif /* HAVE_SHADOW_H */ #ifdef HAVE_CRYPT_H # include #endif /* HAVE_CRYPT_H */ #if HAVE_LIBPAM # ifdef HAVE_PAM_PAM_APPL_H # include # else # include # endif /* HAVE_PAM_PAM_APPL_H */ #endif /* HAVE_LIBPAM */ #ifdef HAVE_MEMBERSHIP_H # include #endif /* HAVE_MEMBERSHIP_H */ #ifdef HAVE_AUTHORIZATION_H # include #endif /* HAVE_AUTHORIZATION_H */ #ifdef HAVE_SYS_PARAM_H # include #endif /* HAVE_SYS_PARAM_H */ #ifdef HAVE_SYS_UCRED_H # include typedef struct xucred cupsd_ucred_t; # define CUPSD_UCRED_UID(c) (c).cr_uid #else # ifndef __OpenBSD__ typedef struct ucred cupsd_ucred_t; # else typedef struct sockpeercred cupsd_ucred_t; # endif # define CUPSD_UCRED_UID(c) (c).uid #endif /* HAVE_SYS_UCRED_H */ #ifdef HAVE_LIBAPPARMOR # include #endif /* HAVE_LIBAPPARMOR */ #ifdef HAVE_LIBSNAPDGLIB # include # include #endif /* HAVE_LIBSNAPDGLIB */ /* * Local functions... */ static int check_admin_access(cupsd_client_t *con); #ifdef HAVE_AUTHORIZATION_H static int check_authref(cupsd_client_t *con, const char *right); #endif /* HAVE_AUTHORIZATION_H */ static int compare_locations(cupsd_location_t *a, cupsd_location_t *b); static cupsd_authmask_t *copy_authmask(cupsd_authmask_t *am, void *data); static void free_authmask(cupsd_authmask_t *am, void *data); #if HAVE_LIBPAM static int pam_func(int, const struct pam_message **, struct pam_response **, void *); #endif /* HAVE_LIBPAM */ /* * Local structures... */ #if HAVE_LIBPAM typedef struct cupsd_authdata_s /**** Authentication data ****/ { char username[HTTP_MAX_VALUE], /* Username string */ password[HTTP_MAX_VALUE]; /* Password string */ } cupsd_authdata_t; #endif /* HAVE_LIBPAM */ /* * 'cupsdAddIPMask()' - Add an IP address authorization mask. */ int /* O - 1 on success, 0 on failure */ cupsdAddIPMask( cups_array_t **masks, /* IO - Masks array (created as needed) */ const unsigned address[4], /* I - IP address */ const unsigned netmask[4]) /* I - IP netmask */ { cupsd_authmask_t temp; /* New host/domain mask */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddIPMask(masks=%p(%p), address=%x:%x:%x:%x, netmask=%x:%x:%x:%x)", masks, *masks, address[0], address[1], address[2], address[3], netmask[0], netmask[1], netmask[2], netmask[3]); temp.type = CUPSD_AUTH_IP; memcpy(temp.mask.ip.address, address, sizeof(temp.mask.ip.address)); memcpy(temp.mask.ip.netmask, netmask, sizeof(temp.mask.ip.netmask)); /* * Create the masks array as needed and add... */ if (!*masks) *masks = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)copy_authmask, (cups_afree_func_t)free_authmask); return (cupsArrayAdd(*masks, &temp)); } /* * 'cupsdAddLocation()' - Add a location for authorization. */ void cupsdAddLocation(cupsd_location_t *loc) /* I - Location to add */ { /* * Make sure the locations array is created... */ if (!Locations) Locations = cupsArrayNew3((cups_array_func_t)compare_locations, NULL, (cups_ahash_func_t)NULL, 0, (cups_acopy_func_t)NULL, (cups_afree_func_t)cupsdFreeLocation); if (Locations) { cupsArrayAdd(Locations, loc); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddLocation: Added location \"%s\"", loc->location ? loc->location : "(null)"); } } /* * 'cupsdAddName()' - Add a name to a location... */ void cupsdAddName(cupsd_location_t *loc, /* I - Location to add to */ char *name) /* I - Name to add */ { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddName(loc=%p, name=\"%s\")", loc, name); if (!loc->names) loc->names = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)_cupsStrAlloc, (cups_afree_func_t)_cupsStrFree); if (!cupsArrayAdd(loc->names, name)) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to duplicate name for location %s: %s", loc->location ? loc->location : "nil", strerror(errno)); return; } } /* * 'cupsdAddNameMask()' - Add a host or interface name authorization mask. */ int /* O - 1 on success, 0 on failure */ cupsdAddNameMask(cups_array_t **masks, /* IO - Masks array (created as needed) */ char *name) /* I - Host or interface name */ { cupsd_authmask_t temp; /* New host/domain mask */ char ifname[32], /* Interface name */ *ifptr; /* Pointer to end of name */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddNameMask(masks=%p(%p), name=\"%s\")", masks, *masks, name); if (!_cups_strcasecmp(name, "@LOCAL")) { /* * Deny *interface*... */ temp.type = CUPSD_AUTH_INTERFACE; temp.mask.name.name = (char *)"*"; } else if (!_cups_strncasecmp(name, "@IF(", 4)) { /* * Deny *interface*... */ strlcpy(ifname, name + 4, sizeof(ifname)); ifptr = ifname + strlen(ifname) - 1; if (ifptr >= ifname && *ifptr == ')') { *ifptr = '\0'; } temp.type = CUPSD_AUTH_INTERFACE; temp.mask.name.name = ifname; } else { /* * Deny name... */ if (*name == '*') name ++; temp.type = CUPSD_AUTH_NAME; temp.mask.name.name = (char *)name; } /* * Set the name length... */ temp.mask.name.length = strlen(temp.mask.name.name); /* * Create the masks array as needed and add... */ if (!*masks) *masks = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)copy_authmask, (cups_afree_func_t)free_authmask); return (cupsArrayAdd(*masks, &temp)); } /* * 'cupsdAuthorize()' - Validate any authorization credentials. */ void cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */ { int type; /* Authentication type */ const char *authorization; /* Pointer into Authorization string */ char *ptr, /* Pointer into string */ username[HTTP_MAX_VALUE], /* Username string */ password[HTTP_MAX_VALUE]; /* Password string */ cupsd_cert_t *localuser; /* Certificate username */ /* * Locate the best matching location so we know what kind of * authentication to expect... */ con->best = cupsdFindBest(con->uri, httpGetState(con->http)); con->type = CUPSD_AUTH_NONE; cupsdLogClient(con, CUPSD_LOG_DEBUG2, "con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con->best->location : ""); if (con->best && con->best->type != CUPSD_AUTH_NONE) { if (con->best->type == CUPSD_AUTH_DEFAULT) type = cupsdDefaultAuthType(); else type = con->best->type; } else type = cupsdDefaultAuthType(); /* * Decode the Authorization string... */ authorization = httpGetField(con->http, HTTP_FIELD_AUTHORIZATION); username[0] = '\0'; password[0] = '\0'; #ifdef HAVE_GSSAPI con->gss_uid = 0; #endif /* HAVE_GSSAPI */ #ifdef HAVE_AUTHORIZATION_H if (con->authref) { AuthorizationFree(con->authref, kAuthorizationFlagDefaults); con->authref = NULL; } #endif /* HAVE_AUTHORIZATION_H */ if (!*authorization) { /* * No authorization data provided, return early... */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "No authentication data provided."); return; } #ifdef HAVE_AUTHORIZATION_H else if (!strncmp(authorization, "AuthRef ", 8) && httpAddrLocalhost(httpGetAddress(con->http))) { OSStatus status; /* Status */ char authdata[HTTP_MAX_VALUE]; /* Nonce value from client */ int authlen; /* Auth string length */ AuthorizationItemSet *authinfo; /* Authorization item set */ /* * Get the Authorization Services data... */ authorization += 8; while (isspace(*authorization & 255)) authorization ++; authlen = sizeof(authdata); httpDecode64_2(authdata, &authlen, authorization); if (authlen != kAuthorizationExternalFormLength) { cupsdLogClient(con, CUPSD_LOG_ERROR, "External Authorization reference size is incorrect."); return; } if ((status = AuthorizationCreateFromExternalForm((AuthorizationExternalForm *)authdata, &con->authref)) != 0) { cupsdLogClient(con, CUPSD_LOG_ERROR, "AuthorizationCreateFromExternalForm returned %d", (int)status); return; } username[0] = '\0'; if (!AuthorizationCopyInfo(con->authref, kAuthorizationEnvironmentUsername, &authinfo)) { if (authinfo->count == 1 && authinfo->items[0].value && authinfo->items[0].valueLength >= 2) { strlcpy(username, authinfo->items[0].value, sizeof(username)); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using AuthRef.", username); } AuthorizationFreeItemSet(authinfo); } if (!username[0]) { /* * No username in AuthRef, grab username using peer credentials... */ struct passwd *pwd; /* Password entry for this user */ cupsd_ucred_t peercred; /* Peer credentials */ socklen_t peersize; /* Size of peer credentials */ peersize = sizeof(peercred); if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to get peer credentials - %s", strerror(errno)); return; } if ((pwd = getpwuid(CUPSD_UCRED_UID(peercred))) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to find UID %d for peer credentials.", (int)CUPSD_UCRED_UID(peercred)); return; } strlcpy(username, pwd->pw_name, sizeof(username)); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using AuthRef + PeerCred.", username); } con->type = CUPSD_AUTH_BASIC; } #endif /* HAVE_AUTHORIZATION_H */ #if defined(SO_PEERCRED) && defined(AF_LOCAL) else if (!strncmp(authorization, "PeerCred ", 9) && con->http->hostaddr->addr.sa_family == AF_LOCAL && con->best) { /* * Use peer credentials from domain socket connection... */ struct passwd *pwd; /* Password entry for this user */ cupsd_ucred_t peercred; /* Peer credentials */ socklen_t peersize; /* Size of peer credentials */ #ifdef HAVE_AUTHORIZATION_H const char *name; /* Authorizing name */ int no_peer = 0; /* Don't allow peer credentials? */ /* * See if we should allow peer credentials... */ for (name = (char *)cupsArrayFirst(con->best->names); name; name = (char *)cupsArrayNext(con->best->names)) { if (!_cups_strncasecmp(name, "@AUTHKEY(", 9) || !_cups_strcasecmp(name, "@SYSTEM")) { /* Normally don't want peer credentials if we need an auth key... */ no_peer = 1; } else if (!_cups_strcasecmp(name, "@OWNER")) { /* but if @OWNER is present then we allow it... */ no_peer = 0; break; } } if (no_peer) { cupsdLogClient(con, CUPSD_LOG_ERROR, "PeerCred authentication not allowed for resource per AUTHKEY policy."); return; } #endif /* HAVE_AUTHORIZATION_H */ if ((pwd = getpwnam(authorization + 9)) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "User \"%s\" does not exist.", authorization + 9); return; } peersize = sizeof(peercred); # ifdef __APPLE__ if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred, &peersize)) # endif /* __APPLE__ */ { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to get peer credentials - %s", strerror(errno)); return; } if (pwd->pw_uid != CUPSD_UCRED_UID(peercred)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Invalid peer credentials for \"%s\" - got %d, expected %d.", authorization + 9, CUPSD_UCRED_UID(peercred), pwd->pw_uid); # ifdef HAVE_SYS_UCRED_H cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cr_version=%d", peercred.cr_version); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cr_uid=%d", peercred.cr_uid); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cr_ngroups=%d", peercred.cr_ngroups); cupsdLogClient(con, CUPSD_LOG_DEBUG2, "cr_groups[0]=%d", peercred.cr_groups[0]); # endif /* HAVE_SYS_UCRED_H */ return; } strlcpy(username, authorization + 9, sizeof(username)); # ifdef HAVE_GSSAPI con->gss_uid = CUPSD_UCRED_UID(peercred); # endif /* HAVE_GSSAPI */ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as %s using PeerCred.", username); con->type = CUPSD_AUTH_BASIC; } #endif /* SO_PEERCRED && AF_LOCAL */ else if (!strncmp(authorization, "Local", 5) && httpAddrLocalhost(httpGetAddress(con->http))) { /* * Get Local certificate authentication data... */ authorization += 5; while (isspace(*authorization & 255)) authorization ++; if ((localuser = cupsdFindCert(authorization)) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Local authentication certificate not found."); return; } strlcpy(username, localuser->username, sizeof(username)); con->type = localuser->type; cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as %s using Local.", username); } else if (!strncmp(authorization, "Basic", 5)) { /* * Get the Basic authentication data... */ int userlen; /* Username:password length */ authorization += 5; while (isspace(*authorization & 255)) authorization ++; userlen = sizeof(username); httpDecode64_2(username, &userlen, authorization); /* * Pull the username and password out... */ if ((ptr = strchr(username, ':')) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Missing Basic password."); return; } *ptr++ = '\0'; if (!username[0]) { /* * Username must not be empty... */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Empty Basic username."); return; } if (!*ptr) { /* * Password must not be empty... */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Empty Basic password."); return; } strlcpy(password, ptr, sizeof(password)); /* * Validate the username and password... */ if (type == CUPSD_AUTH_BASIC) { #if HAVE_LIBPAM /* * Only use PAM to do authentication. This supports MD5 * passwords, among other things... */ pam_handle_t *pamh; /* PAM authentication handle */ int pamerr; /* PAM error code */ struct pam_conv pamdata; /* PAM conversation data */ cupsd_authdata_t data; /* Authentication data */ strlcpy(data.username, username, sizeof(data.username)); strlcpy(data.password, password, sizeof(data.password)); # ifdef __sun pamdata.conv = (int (*)(int, struct pam_message **, struct pam_response **, void *))pam_func; # else pamdata.conv = pam_func; # endif /* __sun */ pamdata.appdata_ptr = &data; pamerr = pam_start("cups", username, &pamdata, &pamh); if (pamerr != PAM_SUCCESS) { cupsdLogClient(con, CUPSD_LOG_ERROR, "pam_start() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); return; } # ifdef HAVE_PAM_SET_ITEM # ifdef PAM_RHOST pamerr = pam_set_item(pamh, PAM_RHOST, con->http->hostname); if (pamerr != PAM_SUCCESS) cupsdLogClient(con, CUPSD_LOG_WARN, "pam_set_item(PAM_RHOST) returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); # endif /* PAM_RHOST */ # ifdef PAM_TTY pamerr = pam_set_item(pamh, PAM_TTY, "cups"); if (pamerr != PAM_SUCCESS) cupsdLogClient(con, CUPSD_LOG_WARN, "pam_set_item(PAM_TTY) returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); # endif /* PAM_TTY */ # endif /* HAVE_PAM_SET_ITEM */ pamerr = pam_authenticate(pamh, PAM_SILENT); if (pamerr != PAM_SUCCESS) { cupsdLogClient(con, CUPSD_LOG_ERROR, "pam_authenticate() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); pam_end(pamh, 0); return; } # ifdef HAVE_PAM_SETCRED pamerr = pam_setcred(pamh, PAM_ESTABLISH_CRED | PAM_SILENT); if (pamerr != PAM_SUCCESS) cupsdLogClient(con, CUPSD_LOG_WARN, "pam_setcred() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); # endif /* HAVE_PAM_SETCRED */ pamerr = pam_acct_mgmt(pamh, PAM_SILENT); if (pamerr != PAM_SUCCESS) { cupsdLogClient(con, CUPSD_LOG_ERROR, "pam_acct_mgmt() returned %d (%s)", pamerr, pam_strerror(pamh, pamerr)); pam_end(pamh, 0); return; } pam_end(pamh, PAM_SUCCESS); #else /* * Use normal UNIX password file-based authentication... */ char *pass; /* Encrypted password */ struct passwd *pw; /* User password data */ # ifdef HAVE_SHADOW_H struct spwd *spw; /* Shadow password data */ # endif /* HAVE_SHADOW_H */ pw = getpwnam(username); /* Get the current password */ endpwent(); /* Close the password file */ if (!pw) { /* * No such user... */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Unknown username \"%s\".", username); return; } # ifdef HAVE_SHADOW_H spw = getspnam(username); endspent(); if (!spw && !strcmp(pw->pw_passwd, "x")) { /* * Don't allow blank passwords! */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Username \"%s\" has no shadow password.", username); return; } if (spw && !spw->sp_pwdp[0] && !pw->pw_passwd[0]) # else if (!pw->pw_passwd[0]) # endif /* HAVE_SHADOW_H */ { /* * Don't allow blank passwords! */ cupsdLogClient(con, CUPSD_LOG_ERROR, "Username \"%s\" has no password.", username); return; } /* * OK, the password isn't blank, so compare with what came from the * client... */ pass = crypt(password, pw->pw_passwd); if (!pass || strcmp(pw->pw_passwd, pass)) { # ifdef HAVE_SHADOW_H if (spw) { pass = crypt(password, spw->sp_pwdp); if (pass == NULL || strcmp(spw->sp_pwdp, pass)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\".", username); return; } } else # endif /* HAVE_SHADOW_H */ { cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\".", username); return; } } #endif /* HAVE_LIBPAM */ } cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using Basic.", username); con->type = type; } #ifdef HAVE_GSSAPI else if (!strncmp(authorization, "Negotiate", 9)) { int len; /* Length of authorization string */ gss_ctx_id_t context; /* Authorization context */ OM_uint32 major_status, /* Major status code */ minor_status; /* Minor status code */ gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER, /* Input token from string */ output_token = GSS_C_EMPTY_BUFFER; /* Output token for username */ gss_name_t client_name; /* Client name */ # ifdef __APPLE__ /* * If the weak-linked GSSAPI/Kerberos library is not present, don't try * to use it... */ if (&gss_init_sec_context == NULL) { cupsdLogClient(con, CUPSD_LOG_WARN, "GSSAPI/Kerberos authentication failed because the Kerberos framework is not present."); return; } # endif /* __APPLE__ */ /* * Find the start of the Kerberos input token... */ authorization += 9; while (isspace(*authorization & 255)) authorization ++; if (!*authorization) { cupsdLogClient(con, CUPSD_LOG_DEBUG2, "No authentication data specified."); return; } /* * Decode the authorization string to get the input token... */ len = (int)strlen(authorization) + 0; input_token.value = malloc((size_t)len); input_token.value = httpDecode64_2(input_token.value, &len, authorization); input_token.length = (size_t)len; /* * Accept the input token to get the authorization info... */ context = GSS_C_NO_CONTEXT; client_name = GSS_C_NO_NAME; major_status = gss_accept_sec_context(&minor_status, &context, ServerCreds, &input_token, GSS_C_NO_CHANNEL_BINDINGS, &client_name, NULL, &output_token, NULL, NULL, NULL); if (output_token.length > 0) gss_release_buffer(&minor_status, &output_token); if (GSS_ERROR(major_status)) { cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "[Client %d] Error accepting GSSAPI security context.", con->number); if (context != GSS_C_NO_CONTEXT) gss_delete_sec_context(&minor_status, &context, GSS_C_NO_BUFFER); return; } con->have_gss = 1; /* * Get the username associated with the client's credentials... */ if (major_status == GSS_S_CONTINUE_NEEDED) cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "[Client %d] Credentials not complete.", con->number); else if (major_status == GSS_S_COMPLETE) { major_status = gss_display_name(&minor_status, client_name, &output_token, NULL); if (GSS_ERROR(major_status)) { cupsdLogGSSMessage(CUPSD_LOG_DEBUG, major_status, minor_status, "[Client %d] Error getting username.", con->number); gss_release_name(&minor_status, &client_name); gss_delete_sec_context(&minor_status, &context, GSS_C_NO_BUFFER); return; } strlcpy(username, output_token.value, sizeof(username)); cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using Negotiate.", username); gss_release_name(&minor_status, &client_name); gss_release_buffer(&minor_status, &output_token); con->type = CUPSD_AUTH_NEGOTIATE; } gss_delete_sec_context(&minor_status, &context, GSS_C_NO_BUFFER); # if defined(SO_PEERCRED) && defined(AF_LOCAL) /* * Get the client's UID if we are printing locally - that allows a backend * to run as the correct user to get Kerberos credentials of its own. */ if (httpAddrFamily(con->http->hostaddr) == AF_LOCAL) { cupsd_ucred_t peercred; /* Peer credentials */ socklen_t peersize; /* Size of peer credentials */ peersize = sizeof(peercred); # ifdef __APPLE__ if (getsockopt(httpGetFd(con->http), 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(httpGetFd(con->http), SOL_SOCKET, SO_PEERCRED, &peercred, &peersize)) # endif /* __APPLE__ */ { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to get peer credentials - %s", strerror(errno)); } else { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Using credentials for UID %d.", CUPSD_UCRED_UID(peercred)); con->gss_uid = CUPSD_UCRED_UID(peercred); } } # endif /* SO_PEERCRED && AF_LOCAL */ } #endif /* HAVE_GSSAPI */ else { char scheme[256]; /* Auth scheme... */ if (sscanf(authorization, "%255s", scheme) != 1) strlcpy(scheme, "UNKNOWN", sizeof(scheme)); cupsdLogClient(con, CUPSD_LOG_ERROR, "Bad authentication data \"%s ...\".", scheme); return; } /* * If we get here, then we were able to validate the username and * password - copy the validated username and password to the client * data and return... */ strlcpy(con->username, username, sizeof(con->username)); strlcpy(con->password, password, sizeof(con->password)); } /* * 'cupsdCheckAccess()' - Check whether the given address is allowed to * access a location. */ int /* O - 1 if allowed, 0 otherwise */ cupsdCheckAccess( unsigned ip[4], /* I - Client address */ const char *name, /* I - Client hostname */ size_t namelen, /* I - Length of hostname */ cupsd_location_t *loc) /* I - Location to check */ { int allow; /* 1 if allowed, 0 otherwise */ if (!_cups_strcasecmp(name, "localhost")) { /* * Access from localhost (127.0.0.1 or ::1) is always allowed... */ return (1); } else { /* * Do authorization checks on the domain/address... */ switch (loc->order_type) { default : allow = 0; /* anti-compiler-warning-code */ break; case CUPSD_AUTH_ALLOW : /* Order Deny,Allow */ allow = 1; if (cupsdCheckAuth(ip, name, namelen, loc->deny)) allow = 0; if (cupsdCheckAuth(ip, name, namelen, loc->allow)) allow = 1; break; case CUPSD_AUTH_DENY : /* Order Allow,Deny */ allow = 0; if (cupsdCheckAuth(ip, name, namelen, loc->allow)) allow = 1; if (cupsdCheckAuth(ip, name, namelen, loc->deny)) allow = 0; break; } } return (allow); } /* * 'cupsdCheckAuth()' - Check authorization masks. */ int /* O - 1 if mask matches, 0 otherwise */ cupsdCheckAuth(unsigned ip[4], /* I - Client address */ const char *name, /* I - Client hostname */ size_t name_len, /* I - Length of hostname */ cups_array_t *masks) /* I - Masks */ { int i; /* Looping var */ cupsd_authmask_t *mask; /* Current mask */ cupsd_netif_t *iface; /* Network interface */ unsigned netip4; /* IPv4 network address */ #ifdef AF_INET6 unsigned netip6[4]; /* IPv6 network address */ #endif /* AF_INET6 */ for (mask = (cupsd_authmask_t *)cupsArrayFirst(masks); mask; mask = (cupsd_authmask_t *)cupsArrayNext(masks)) { switch (mask->type) { case CUPSD_AUTH_INTERFACE : /* * Check for a match with a network interface... */ netip4 = htonl(ip[3]); #ifdef AF_INET6 netip6[0] = htonl(ip[0]); netip6[1] = htonl(ip[1]); netip6[2] = htonl(ip[2]); netip6[3] = htonl(ip[3]); #endif /* AF_INET6 */ cupsdNetIFUpdate(); if (!strcmp(mask->mask.name.name, "*")) { #ifdef __APPLE__ /* * Allow Back-to-My-Mac addresses... */ if ((ip[0] & 0xff000000) == 0xfd000000) return (1); #endif /* __APPLE__ */ /* * Check against all local interfaces... */ for (iface = (cupsd_netif_t *)cupsArrayFirst(NetIFList); iface; iface = (cupsd_netif_t *)cupsArrayNext(NetIFList)) { /* * Only check local interfaces... */ if (!iface->is_local) continue; if (iface->address.addr.sa_family == AF_INET) { /* * Check IPv4 address... */ if ((netip4 & iface->mask.ipv4.sin_addr.s_addr) == (iface->address.ipv4.sin_addr.s_addr & iface->mask.ipv4.sin_addr.s_addr)) return (1); } #ifdef AF_INET6 else { /* * Check IPv6 address... */ for (i = 0; i < 4; i ++) if ((netip6[i] & iface->mask.ipv6.sin6_addr.s6_addr32[i]) != (iface->address.ipv6.sin6_addr.s6_addr32[i] & iface->mask.ipv6.sin6_addr.s6_addr32[i])) break; if (i == 4) return (1); } #endif /* AF_INET6 */ } } else { /* * Check the named interface... */ for (iface = (cupsd_netif_t *)cupsArrayFirst(NetIFList); iface; iface = (cupsd_netif_t *)cupsArrayNext(NetIFList)) { if (strcmp(mask->mask.name.name, iface->name)) continue; if (iface->address.addr.sa_family == AF_INET) { /* * Check IPv4 address... */ if ((netip4 & iface->mask.ipv4.sin_addr.s_addr) == (iface->address.ipv4.sin_addr.s_addr & iface->mask.ipv4.sin_addr.s_addr)) return (1); } #ifdef AF_INET6 else { /* * Check IPv6 address... */ for (i = 0; i < 4; i ++) if ((netip6[i] & iface->mask.ipv6.sin6_addr.s6_addr32[i]) != (iface->address.ipv6.sin6_addr.s6_addr32[i] & iface->mask.ipv6.sin6_addr.s6_addr32[i])) break; if (i == 4) return (1); } #endif /* AF_INET6 */ } } break; case CUPSD_AUTH_NAME : /* * Check for exact name match... */ if (!_cups_strcasecmp(name, mask->mask.name.name)) return (1); /* * Check for domain match... */ if (name_len >= mask->mask.name.length && mask->mask.name.name[0] == '.' && !_cups_strcasecmp(name + name_len - mask->mask.name.length, mask->mask.name.name)) return (1); break; case CUPSD_AUTH_IP : /* * Check for IP/network address match... */ for (i = 0; i < 4; i ++) if ((ip[i] & mask->mask.ip.netmask[i]) != mask->mask.ip.address[i]) break; if (i == 4) return (1); break; } } return (0); } /* * 'cupsdCheckGroup()' - Check for a user's group membership. */ int /* O - 1 if user is a member, 0 otherwise */ cupsdCheckGroup( const char *username, /* I - User name */ struct passwd *user, /* I - System user info */ const char *groupname) /* I - Group name */ { int i; /* Looping var */ struct group *group; /* Group info */ gid_t groupid; /* ID of named group */ #ifdef HAVE_MBR_UID_TO_UUID uuid_t useruuid, /* UUID for username */ groupuuid; /* UUID for groupname */ int is_member; /* True if user is a member of group */ #endif /* HAVE_MBR_UID_TO_UUID */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCheckGroup(username=\"%s\", user=%p, groupname=\"%s\")", username, user, groupname); /* * Validate input... */ if (!username || !groupname) return (0); /* * Check to see if the user is a member of the named group... */ group = getgrnam(groupname); endgrent(); if (group != NULL) { /* * Group exists, check it... */ groupid = group->gr_gid; for (i = 0; group->gr_mem[i]; i ++) { /* * User appears in the group membership... */ if (!_cups_strcasecmp(username, group->gr_mem[i])) return (1); } #ifdef HAVE_GETGROUPLIST /* * If the user isn't in the group membership list, try the results from * getgrouplist() which is supposed to return the full list of groups a user * belongs to... */ if (user) { int ngroups; /* Number of groups */ # ifdef __APPLE__ int groups[2048]; /* Groups that user belongs to */ # else gid_t groups[2048]; /* Groups that user belongs to */ # endif /* __APPLE__ */ ngroups = (int)(sizeof(groups) / sizeof(groups[0])); # ifdef __APPLE__ getgrouplist(username, (int)user->pw_gid, groups, &ngroups); # else getgrouplist(username, user->pw_gid, groups, &ngroups); #endif /* __APPLE__ */ for (i = 0; i < ngroups; i ++) if ((int)groupid == (int)groups[i]) return (1); } #endif /* HAVE_GETGROUPLIST */ } else groupid = (gid_t)-1; /* * Group doesn't exist or user not in group list, check the group ID * against the user's group ID... */ if (user && groupid == user->pw_gid) return (1); #ifdef HAVE_MBR_UID_TO_UUID /* * Check group membership through macOS membership API... */ if (user && !mbr_uid_to_uuid(user->pw_uid, useruuid)) { if (groupid != (gid_t)-1) { /* * Map group name to UUID and check membership... */ if (!mbr_gid_to_uuid(groupid, groupuuid)) if (!mbr_check_membership(useruuid, groupuuid, &is_member)) if (is_member) return (1); } else if (groupname[0] == '#') { /* * Use UUID directly and check for equality (user UUID) and * membership (group UUID)... */ if (!uuid_parse((char *)groupname + 1, groupuuid)) { if (!uuid_compare(useruuid, groupuuid)) return (1); else if (!mbr_check_membership(useruuid, groupuuid, &is_member)) if (is_member) return (1); } return (0); } } else if (groupname[0] == '#') return (0); #endif /* HAVE_MBR_UID_TO_UUID */ /* * If we get this far, then the user isn't part of the named group... */ return (0); } /* * 'cupsdCopyLocation()' - Make a copy of a location... */ cupsd_location_t * /* O - New location */ cupsdCopyLocation( cupsd_location_t *loc) /* I - Original location */ { cupsd_location_t *temp; /* New location */ /* * Make a copy of the original location... */ if ((temp = calloc(1, sizeof(cupsd_location_t))) == NULL) return (NULL); /* * Copy the information from the original location to the new one. */ if (!loc) return (temp); if (loc->location) temp->location = _cupsStrAlloc(loc->location); temp->length = loc->length; temp->limit = loc->limit; temp->order_type = loc->order_type; temp->type = loc->type; temp->level = loc->level; temp->satisfy = loc->satisfy; temp->encryption = loc->encryption; if (loc->names) { if ((temp->names = cupsArrayDup(loc->names)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for %d names: %s", cupsArrayCount(loc->names), strerror(errno)); cupsdFreeLocation(temp); return (NULL); } } if (loc->allow) { /* * Copy allow rules... */ if ((temp->allow = cupsArrayDup(loc->allow)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for %d allow rules: %s", cupsArrayCount(loc->allow), strerror(errno)); cupsdFreeLocation(temp); return (NULL); } } if (loc->deny) { /* * Copy deny rules... */ if ((temp->deny = cupsArrayDup(loc->deny)) == NULL) { cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to allocate memory for %d deny rules: %s", cupsArrayCount(loc->deny), strerror(errno)); cupsdFreeLocation(temp); return (NULL); } } return (temp); } /* * 'cupsdDeleteAllLocations()' - Free all memory used for location authorization. */ void cupsdDeleteAllLocations(void) { /* * Free the location array, which will free all of the locations... */ cupsArrayDelete(Locations); Locations = NULL; } /* * 'cupsdFindBest()' - Find the location entry that best matches the resource. */ cupsd_location_t * /* O - Location that matches */ cupsdFindBest(const char *path, /* I - Resource path */ http_state_t state) /* I - HTTP state/request */ { char uri[HTTP_MAX_URI], /* URI in request... */ *uriptr; /* Pointer into URI */ cupsd_location_t *loc, /* Current location */ *best; /* Best match for location so far */ size_t bestlen; /* Length of best match */ int limit; /* Limit field */ static const int limits[] = /* Map http_status_t to CUPSD_AUTH_LIMIT_xyz */ { CUPSD_AUTH_LIMIT_ALL, CUPSD_AUTH_LIMIT_OPTIONS, CUPSD_AUTH_LIMIT_GET, CUPSD_AUTH_LIMIT_GET, CUPSD_AUTH_LIMIT_HEAD, CUPSD_AUTH_LIMIT_POST, CUPSD_AUTH_LIMIT_POST, CUPSD_AUTH_LIMIT_POST, CUPSD_AUTH_LIMIT_PUT, CUPSD_AUTH_LIMIT_PUT, CUPSD_AUTH_LIMIT_DELETE, CUPSD_AUTH_LIMIT_TRACE, CUPSD_AUTH_LIMIT_ALL, CUPSD_AUTH_LIMIT_ALL, CUPSD_AUTH_LIMIT_ALL, CUPSD_AUTH_LIMIT_ALL }; /* * First copy the connection URI to a local string so we have drop * any .ppd extension from the pathname in /printers or /classes * URIs... */ strlcpy(uri, path, sizeof(uri)); if ((uriptr = strchr(uri, '?')) != NULL) *uriptr = '\0'; /* Drop trailing query string */ if ((uriptr = uri + strlen(uri) - 1) > uri && *uriptr == '/') *uriptr = '\0'; /* Remove trailing '/' */ if (!strncmp(uri, "/printers/", 10) || !strncmp(uri, "/classes/", 9)) { /* * Check if the URI has .ppd on the end... */ uriptr = uri + strlen(uri) - 4; /* len > 4 if we get here... */ if (!strcmp(uriptr, ".ppd")) *uriptr = '\0'; } /* * Loop through the list of locations to find a match... */ limit = limits[state]; best = NULL; bestlen = 0; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindBest: uri=\"%s\", limit=%x...", uri, limit); for (loc = (cupsd_location_t *)cupsArrayFirst(Locations); loc; loc = (cupsd_location_t *)cupsArrayNext(Locations)) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindBest: Location %s(%d) Limit %x", loc->location ? loc->location : "(null)", (int)loc->length, loc->limit); if (!strncmp(uri, "/printers/", 10) || !strncmp(uri, "/classes/", 9)) { /* * Use case-insensitive comparison for queue names... */ if (loc->length > bestlen && loc->location && !_cups_strncasecmp(uri, loc->location, loc->length) && loc->location[0] == '/' && (limit & loc->limit) != 0) { best = loc; bestlen = loc->length; } } else { /* * Use case-sensitive comparison for other URIs... */ if (loc->length > bestlen && loc->location && !strncmp(uri, loc->location, loc->length) && loc->location[0] == '/' && (limit & loc->limit) != 0) { best = loc; bestlen = loc->length; } } } /* * Return the match, if any... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdFindBest: best=%s", best ? best->location : "NONE"); return (best); } /* * 'cupsdFindLocation()' - Find the named location. */ cupsd_location_t * /* O - Location that matches */ cupsdFindLocation(const char *location) /* I - Connection */ { cupsd_location_t key; /* Search key */ key.location = (char *)location; return ((cupsd_location_t *)cupsArrayFind(Locations, &key)); } /* * 'cupsdFreeLocation()' - Free all memory used by a location. */ void cupsdFreeLocation(cupsd_location_t *loc)/* I - Location to free */ { cupsArrayDelete(loc->names); cupsArrayDelete(loc->allow); cupsArrayDelete(loc->deny); _cupsStrFree(loc->location); free(loc); } /* * 'cupsdIsAuthorized()' - Check to see if the user is authorized... */ http_status_t /* O - HTTP_OK if authorized or error code */ cupsdIsAuthorized(cupsd_client_t *con, /* I - Connection */ const char *owner)/* I - Owner of object */ { int i, /* Looping vars */ auth, /* Authorization status */ type; /* Type of authentication */ http_addr_t *hostaddr = httpGetAddress(con->http); /* Client address */ const char *hostname = httpGetHostname(con->http, NULL, 0); /* Client hostname */ unsigned address[4]; /* Authorization address */ cupsd_location_t *best; /* Best match for location so far */ size_t hostlen; /* Length of hostname */ char *name, /* Current username */ username[256], /* Username to authorize */ ownername[256], /* Owner name to authorize */ *ptr; /* Pointer into username */ struct passwd *pw; /* User password data */ static const char * const levels[] = /* Auth levels */ { "ANON", "USER", "GROUP" }; static const char * const types[] = /* Auth types */ { "None", "Basic", "Negotiate" }; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: con->uri=\"%s\", con->best=%p(%s)", con->uri, con->best, con->best ? con->best->location ? con->best->location : "(null)" : ""); if (owner) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: owner=\"%s\"", owner); /* * If there is no "best" authentication rule for this request, then * access is allowed from the local system and denied from other * addresses... */ if (!con->best) { if (httpAddrLocalhost(httpGetAddress(con->http)) || !strcmp(hostname, ServerName) || cupsArrayFind(ServerAlias, (void *)hostname)) return (HTTP_OK); else return (HTTP_FORBIDDEN); } best = con->best; if ((type = best->type) == CUPSD_AUTH_DEFAULT) type = cupsdDefaultAuthType(); cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: level=CUPSD_AUTH_%s, type=%s, satisfy=CUPSD_AUTH_SATISFY_%s, num_names=%d", levels[best->level], types[type], best->satisfy ? "ANY" : "ALL", cupsArrayCount(best->names)); if (best->limit == CUPSD_AUTH_LIMIT_IPP) cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: op=%x(%s)", best->op, ippOpString(best->op)); /* * Check host/ip-based accesses... */ #ifdef AF_INET6 if (httpAddrFamily(hostaddr) == AF_INET6) { /* * Copy IPv6 address... */ address[0] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[0]); address[1] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[1]); address[2] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[2]); address[3] = ntohl(hostaddr->ipv6.sin6_addr.s6_addr32[3]); } else #endif /* AF_INET6 */ if (con->http->hostaddr->addr.sa_family == AF_INET) { /* * Copy IPv4 address... */ address[0] = 0; address[1] = 0; address[2] = 0; address[3] = ntohl(hostaddr->ipv4.sin_addr.s_addr); } else memset(address, 0, sizeof(address)); hostlen = strlen(hostname); auth = cupsdCheckAccess(address, hostname, hostlen, best) ? CUPSD_AUTH_ALLOW : CUPSD_AUTH_DENY; cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: auth=CUPSD_AUTH_%s...", auth ? "DENY" : "ALLOW"); if (auth == CUPSD_AUTH_DENY && best->satisfy == CUPSD_AUTH_SATISFY_ALL) return (HTTP_FORBIDDEN); #ifdef HAVE_TLS /* * See if encryption is required... */ if ((best->encryption >= HTTP_ENCRYPT_REQUIRED && !con->http->tls && _cups_strcasecmp(hostname, "localhost") && !httpAddrLocalhost(hostaddr) && best->satisfy == CUPSD_AUTH_SATISFY_ALL) && !(type == CUPSD_AUTH_NEGOTIATE || (type == CUPSD_AUTH_NONE && cupsdDefaultAuthType() == CUPSD_AUTH_NEGOTIATE))) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdIsAuthorized: Need upgrade to TLS..."); return (HTTP_UPGRADE_REQUIRED); } #endif /* HAVE_TLS */ /* * Now see what access level is required... */ if (best->level == CUPSD_AUTH_ANON || /* Anonymous access - allow it */ (type == CUPSD_AUTH_NONE && cupsArrayCount(best->names) == 0)) return (HTTP_OK); if (!con->username[0] && type == CUPSD_AUTH_NONE && best->limit == CUPSD_AUTH_LIMIT_IPP) { /* * Check for unauthenticated username... */ ipp_attribute_t *attr; /* requesting-user-name attribute */ attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME); if (attr) { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdIsAuthorized: requesting-user-name=\"%s\"", attr->values[0].string.text); strlcpy(username, attr->values[0].string.text, sizeof(username)); } else if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) return (HTTP_UNAUTHORIZED); /* Non-anonymous needs user/pass */ else return (HTTP_OK); /* unless overridden with Satisfy */ } else { cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdIsAuthorized: username=\"%s\"", con->username); #ifdef HAVE_AUTHORIZATION_H if (!con->username[0] && !con->authref) #else if (!con->username[0]) #endif /* HAVE_AUTHORIZATION_H */ { if (best->satisfy == CUPSD_AUTH_SATISFY_ALL || auth == CUPSD_AUTH_DENY) return (HTTP_UNAUTHORIZED); /* Non-anonymous needs user/pass */ else return (HTTP_OK); /* unless overridden with Satisfy */ } if (con->type != type && type != CUPSD_AUTH_NONE && #ifdef HAVE_GSSAPI (type != CUPSD_AUTH_NEGOTIATE || con->gss_uid <= 0) && #endif /* HAVE_GSSAPI */ con->type != CUPSD_AUTH_BASIC) { cupsdLogMessage(CUPSD_LOG_ERROR, "Authorized using %s, expected %s.", types[con->type], types[type]); return (HTTP_UNAUTHORIZED); } strlcpy(username, con->username, sizeof(username)); } /* * OK, got a username. See if we need normal user access, or group * access... */ /* * Strip any @domain or @KDC from the username and owner... */ if ((ptr = strchr(username, '@')) != NULL) *ptr = '\0'; if (owner) { strlcpy(ownername, owner, sizeof(ownername)); if ((ptr = strchr(ownername, '@')) != NULL) *ptr = '\0'; } else ownername[0] = '\0'; /* * Get the user info... */ if (username[0]) { pw = getpwnam(username); endpwent(); } else pw = NULL; /* * For matching user and group memberships below we will first go * through all names except @SYSTEM to authorize the task as * non-administrative, like printing or deleting one's own job, if this * fails we will check whether we can authorize via the special name * @SYSTEM, as an administrative task, like creating a print queue or * deleting someone else's job. * Note that tasks are considered as administrative by the policies * in cupsd.conf, when they require the user or group @SYSTEM. * We do this separation because if the client is a Snap connecting via * domain socket, we need to additionally check whether it plugs to us * through the "cups-control" interface which allows administration and * not through the "cups" interface which allows only printing. */ if (best->level == CUPSD_AUTH_USER) { /* * If there are no names associated with this location, then * any valid user is OK... */ if (cupsArrayCount(best->names) == 0) return (HTTP_OK); /* * Otherwise check the user list and return OK if this user is * allowed... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: Checking user membership..."); #ifdef HAVE_AUTHORIZATION_H /* * If an authorization reference was supplied it must match a right name... */ if (con->authref) { for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strncasecmp(name, "@AUTHKEY(", 9) && check_authref(con, name + 9)) return (HTTP_OK); } for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strcasecmp(name, "@SYSTEM") && SystemGroupAuthKey && check_authref(con, SystemGroupAuthKey)) return (HTTP_OK); } return (HTTP_FORBIDDEN); } #endif /* HAVE_AUTHORIZATION_H */ for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strcasecmp(name, "@OWNER") && owner && !_cups_strcasecmp(username, ownername)) return (HTTP_OK); else if (!_cups_strcasecmp(name, "@SYSTEM")) { /* Do @SYSTEM later, when every other entry fails */ continue; } else if (name[0] == '@') { if (cupsdCheckGroup(username, pw, name + 1)) return (HTTP_OK); } else if (!_cups_strcasecmp(username, name)) return (HTTP_OK); } for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strcasecmp(name, "@SYSTEM")) { for (i = 0; i < NumSystemGroups; i ++) if (cupsdCheckGroup(username, pw, SystemGroups[i]) && check_admin_access(con)) return (HTTP_OK); } } return (con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED); } /* * Check to see if this user is in any of the named groups... */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: Checking group membership..."); /* * Check to see if this user is in any of the named groups... */ for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strcasecmp(name, "@SYSTEM")) { /* Do @SYSTEM later, when every other entry fails */ continue; } cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: Checking group \"%s\" membership...", name); if (cupsdCheckGroup(username, pw, name)) return (HTTP_OK); } for (name = (char *)cupsArrayFirst(best->names); name; name = (char *)cupsArrayNext(best->names)) { if (!_cups_strcasecmp(name, "@SYSTEM")) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdIsAuthorized: Checking group \"%s\" membership...", name); for (i = 0; i < NumSystemGroups; i ++) if (cupsdCheckGroup(username, pw, SystemGroups[i]) && check_admin_access(con)) return (HTTP_OK); } } /* * The user isn't part of the specified group, so deny access... */ cupsdLogMessage(CUPSD_LOG_DEBUG, "cupsdIsAuthorized: User not in group(s)."); return (con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED); } /* * 'cupsdNewLocation()' - Create a new location for authorization. * * Note: Still need to call cupsdAddLocation() to add it to the list of global * locations. */ cupsd_location_t * /* O - Pointer to new location record */ cupsdNewLocation(const char *location) /* I - Location path */ { cupsd_location_t *temp; /* New location */ /* * Try to allocate memory for the new location. */ if ((temp = calloc(1, sizeof(cupsd_location_t))) == NULL) return (NULL); /* * Initialize the record and copy the name over... */ if ((temp->location = _cupsStrAlloc(location)) == NULL) { free(temp); return (NULL); } temp->length = strlen(temp->location); /* * Return the new record... */ return (temp); } /* * 'check_admin_access()' - Verify that the client has administrative access. */ static int // O - 1 if authorized, 0 otherwise check_admin_access(cupsd_client_t *con) // I - Client connection { #if defined(HAVE_LIBAPPARMOR) && defined(HAVE_LIBSNAPDGLIB) /* * If the client accesses locally via domain socket, find out whether it * is a Snap. Grant access if it is not a Snap, if it is a classic Snap * or if it is a confined Snap which plugs "cups-control". Otherwise deny * access. */ int fd = httpGetFd(con->http); // Client socket file descriptor char *context = NULL; // AppArmor profile name of client SnapdClient *client = NULL; // Data structure of snapd access GError *error = NULL; // Glib error int ret = 1; // Return value # if !CUPS_SNAP SnapdSnap *snap = NULL; // Data structure of client Snap # endif // !CUPS_SNAP # ifdef AF_LOCAL // Only check domain sockets... if (httpAddrFamily(con->http->hostaddr) != AF_LOCAL) return (1); # endif // AF_LOCAL # if !CUPS_SNAP // If AppArmor is not enabled, then we can't identify the client... if (!aa_is_enabled()) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "AppArmor not in use."); return (1); } # endif /* !CUPS_SNAP */ // Get the client's AppArmor context using the socket... if (aa_getpeercon(fd, &context, NULL) < 0) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "AppArmor profile could not be retrieved: %s", strerror(errno)); return (1); } else { cupsdLogClient(con, CUPSD_LOG_DEBUG, "AppArmor profile is '%s'.", context); } // Allow access from "cups" snap... if (!strncmp(context, "snap.cups.", 10)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Client from the CUPS Snap itself - allowed."); goto done; } # if CUPS_SNAP && defined(HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC) /* * CUPS is snapped, so check whether the client is also snapped. If so, * determine whether the client snap has a "cups-control" plug which allows * the application to perform CUPS administrative tasks. */ const char *cookie; // snapd access cookie int status = 65535; // Status of client Snap context check const char *args[] = // snapctl arguments { "is-connected", "--apparmor-label", NULL, "cups-control", NULL }; // Connect to snapd if ((client = snapd_client_new()) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to connect to snapd."); ret = 0; goto done; } // snapctl commands are sent over a domain socket snapd_client_set_socket_path(client, "/run/snapd-snap.socket"); // Take cookie from the environment if available if ((cookie = g_getenv("SNAP_COOKIE")) == NULL) { cookie = ""; cupsdLogClient(con, CUPSD_LOG_WARN, "No SNAP_COOKIE set in the Snap environment."); } // Do the client Snap context check... args[2] = context; if (!snapd_client_run_snapctl2_sync(client, cookie, (char **)args, NULL, NULL, &status, NULL, &error)) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to check snap context: %s", error->message); ret = 0; goto done; } switch (status) { case 0 : // The client is a confined Snap and plugs cups-control cupsdLogClient(con, CUPSD_LOG_DEBUG, "Snap with cups-control plug - allowed."); break; case 1 : // The client is a confined Snap and does not plug cups-control cupsdLogClient(con, CUPSD_LOG_DEBUG, "Snap without cups-control plug - denied."); ret = 0; break; case 10 : // The client is a classic Snap cupsdLogClient(con, CUPSD_LOG_DEBUG, "Classic snap - allowed."); break; case 11 : // The client is not a Snap cupsdLogClient(con, CUPSD_LOG_DEBUG, "Not a snap - allowed."); break; default : // Unexpected status... cupsdLogClient(con, CUPSD_LOG_ERROR, "Snap check returned unexpected status %d - denied.", status); ret = 0; break; } # elif !CUPS_SNAP /* * If CUPS is not snapped, check whether the client is snapped and if it has * the "cups-control" plug. */ // Is the client a snapped application? if (strncmp(context, "snap.", 5)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Not a snap - allowed."); goto done; } // Extract the snap name from the context (snap.name.instance) char *snap_name = strdup(context + 5);// Snap name follows "snap." char *ptr = strchr(snap_name, '.'); // instance follows the name... if (!ptr) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Malformed snapd AppArmor profile name '%s' - denied.", context); free(snap_name); ret = 0; goto done; } *ptr = '\0'; cupsdLogClient(con, CUPSD_LOG_DEBUG, "Client snap is '%s'.", snap_name); // Connect to snapd if ((client = snapd_client_new()) == NULL) { cupsdLogClient(con, CUPSD_LOG_ERROR, "Unable to connect to snapd."); free(snap_name); ret = 0; goto done; } // Check whether the client Snap is under classic confinement GPtrArray *plugs = NULL; // List of plugs for snap if ((snap = snapd_client_get_snap_sync(client, snap_name, NULL, &error)) == NULL) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Unable to get client Snap data: %s", error->message); ret = 0; } // Snaps using classic confinement are granted access else if (snapd_snap_get_confinement(snap) == SNAPD_CONFINEMENT_CLASSIC) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Classic snap - allowed."); } // Check whether the client Snap has the cups-control plug else if (!snapd_client_get_connections2_sync(client, SNAPD_GET_CONNECTIONS_FLAGS_NONE, snap_name, "cups-control", NULL, NULL, &plugs, NULL, NULL, &error)) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Unable to get client Snap plugs: %s", error->message); ret = 0; } else if (!plugs || plugs->len <= 0) { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Snap without cups-control plug - denied."); ret = 0; } else { cupsdLogClient(con, CUPSD_LOG_DEBUG, "Snap with cups-control plug - allowed."); } if (plugs) g_ptr_array_unref(plugs); free(snap_name); g_clear_object(&snap); # endif // CUPS_SNAP done: free(context); g_clear_object(&client); return (ret); #else // No AppArmor/snapd to deal with... return (1); #endif // HAVE_LIBAPPARMOR && HAVE_LIBSNAPDGLIB } #ifdef HAVE_AUTHORIZATION_H /* * 'check_authref()' - Check if an authorization services reference has the * supplied right. */ static int /* O - 1 if right is valid, 0 otherwise */ check_authref(cupsd_client_t *con, /* I - Connection */ const char *right) /* I - Right name */ { OSStatus status; /* OS Status */ AuthorizationItem authright; /* Authorization right */ AuthorizationRights authrights; /* Authorization rights */ AuthorizationFlags authflags; /* Authorization flags */ /* * Check to see if the user is allowed to perform the task... */ if (!con->authref) return (0); authright.name = right; authright.valueLength = 0; authright.value = NULL; authright.flags = 0; authrights.count = 1; authrights.items = &authright; authflags = kAuthorizationFlagDefaults | kAuthorizationFlagExtendRights; if ((status = AuthorizationCopyRights(con->authref, &authrights, kAuthorizationEmptyEnvironment, authflags, NULL)) != 0) { cupsdLogMessage(CUPSD_LOG_ERROR, "AuthorizationCopyRights(\"%s\") returned %d", authright.name, (int)status); return (0); } cupsdLogMessage(CUPSD_LOG_DEBUG2, "AuthorizationCopyRights(\"%s\") succeeded.", authright.name); return (1); } #endif /* HAVE_AUTHORIZATION_H */ /* * 'compare_locations()' - Compare two locations. */ static int /* O - Result of comparison */ compare_locations(cupsd_location_t *a, /* I - First location */ cupsd_location_t *b) /* I - Second location */ { return (strcmp(b->location, a->location)); } /* * 'copy_authmask()' - Copy function for auth masks. */ static cupsd_authmask_t * /* O - New auth mask */ copy_authmask(cupsd_authmask_t *mask, /* I - Existing auth mask */ void *data) /* I - User data (unused) */ { cupsd_authmask_t *temp; /* New auth mask */ (void)data; if ((temp = malloc(sizeof(cupsd_authmask_t))) != NULL) { memcpy(temp, mask, sizeof(cupsd_authmask_t)); if (temp->type == CUPSD_AUTH_NAME || temp->type == CUPSD_AUTH_INTERFACE) { /* * Make a copy of the name... */ if ((temp->mask.name.name = _cupsStrAlloc(temp->mask.name.name)) == NULL) { /* * Failed to make copy... */ free(temp); temp = NULL; } } } return (temp); } /* * 'free_authmask()' - Free function for auth masks. */ static void free_authmask(cupsd_authmask_t *mask, /* I - Auth mask to free */ void *data) /* I - User data (unused) */ { (void)data; if (mask->type == CUPSD_AUTH_NAME || mask->type == CUPSD_AUTH_INTERFACE) _cupsStrFree(mask->mask.name.name); free(mask); } #if HAVE_LIBPAM /* * 'pam_func()' - PAM conversation function. */ static int /* O - Success or failure */ pam_func( int num_msg, /* I - Number of messages */ const struct pam_message **msg, /* I - Messages */ struct pam_response **resp, /* O - Responses */ void *appdata_ptr) /* I - Pointer to connection */ { int i; /* Looping var */ struct pam_response *replies; /* Replies */ cupsd_authdata_t *data; /* Pointer to auth data */ /* * Allocate memory for the responses... */ if ((replies = malloc(sizeof(struct pam_response) * (size_t)num_msg)) == NULL) return (PAM_CONV_ERR); /* * Answer all of the messages... */ data = (cupsd_authdata_t *)appdata_ptr; for (i = 0; i < num_msg; i ++) { switch (msg[i]->msg_style) { case PAM_PROMPT_ECHO_ON: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = strdup(data->username); break; case PAM_PROMPT_ECHO_OFF: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = strdup(data->password); break; case PAM_TEXT_INFO: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = NULL; break; case PAM_ERROR_MSG: replies[i].resp_retcode = PAM_SUCCESS; replies[i].resp = NULL; break; default: free(replies); return (PAM_CONV_ERR); } } /* * Return the responses back to PAM... */ *resp = replies; return (PAM_SUCCESS); } #endif /* HAVE_LIBPAM */ cups-2.4.7/scheduler/Makefile0000644000175000017500000002544314502571342016007 0ustar zdohnalzdohnal# # Scheduler Makefile for CUPS. # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs CUPSDOBJS = \ auth.o \ banners.o \ cert.o \ classes.o \ client.o \ colorman.o \ conf.o \ dirsvc.o \ env.o \ file.o \ main.o \ ipp.o \ listen.o \ job.o \ log.o \ network.o \ policy.o \ printers.o \ process.o \ quotas.o \ select.o \ server.o \ statbuf.o \ subscriptions.o \ sysman.o LIBOBJS = \ filter.o \ mime.o \ type.o COBJS = \ $(CUPSDOBJS) \ $(LIBOBJS) \ cupsfilter.o \ cups-deviced.o \ cups-exec.o \ cups-lpd.o \ testlpd.o \ testmime.o \ testspeed.o \ testsub.o \ util.o CXXOBJS = \ cups-driverd.o OBJS = \ $(COBJS) \ $(CXXOBJS) LIBTARGETS = \ libcupsmime.a UNITTARGETS = \ testlpd \ testmime \ testspeed \ testsub PROGRAMS = \ cupsd \ cupsfilter \ cups-deviced \ cups-driverd \ cups-exec \ cups-lpd TARGETS = \ $(LIBTARGETS) \ $(PROGRAMS) # # Make everything... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: $(UNITTARGETS) # # Clean all object files... # clean: $(RM) $(OBJS) $(RM) $(TARGETS) $(UNITTARGETS) convert # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(COBJS:.o=.c) >Dependencies $(CXX) -MM $(ALL_CXXFLAGS) $(CXXOBJS:.o=.cxx) >>Dependencies # # Run oclint to check code coverage... # oclint: oclint -o=oclint.html -html $(CUPSDOBJS:.o=.c) $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS) # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: echo Creating $(SERVERBIN)/driver... $(INSTALL_DIR) -m 755 $(SERVERBIN)/driver echo Creating $(SERVERROOT)... $(INSTALL_DIR) -m 755 -g $(CUPS_GROUP) $(SERVERROOT) echo Creating $(SERVERROOT)/ppd... $(INSTALL_DIR) -m 755 -g $(CUPS_GROUP) $(SERVERROOT)/ppd if test "x`uname`" != xDarwin; then \ echo Creating $(SERVERROOT)/ssl...; \ $(INSTALL_DIR) -m 700 -g $(CUPS_GROUP) $(SERVERROOT)/ssl; \ fi if test "$(STATEDIR)" != "$(SERVERROOT)"; then \ echo Creating $(STATEDIR)...; \ $(INSTALL_DIR) -m 755 $(STATEDIR); \ fi echo Creating $(STATEDIR)/certs... $(INSTALL_DIR) -m 511 -o $(CUPS_USER) -g $(CUPS_PRIMARY_SYSTEM_GROUP) \ $(STATEDIR)/certs echo Creating $(LOGDIR)... $(INSTALL_DIR) -m 755 $(LOGDIR) echo Creating $(REQUESTS)... $(INSTALL_DIR) -m 710 -g $(CUPS_GROUP) $(REQUESTS) echo Creating $(REQUESTS)/tmp... $(INSTALL_DIR) -m 1770 -g $(CUPS_GROUP) $(REQUESTS)/tmp echo Creating $(CACHEDIR)... $(INSTALL_DIR) -m 770 -g $(CUPS_GROUP) $(CACHEDIR) if test "x$(INITDIR)" != x; then \ echo Installing init scripts...; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/init.d; \ $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ for level in $(RCLEVELS); do \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc$${level}.d; \ $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc$${level}.d/S$(RCSTART)cups; \ $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc$${level}.d/K$(RCSTOP)cups; \ done; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDIR)/rc0.d; \ $(LN) ../init.d/cups $(BUILDROOT)$(INITDIR)/rc0.d/K$(RCSTOP)cups; \ fi if test "x$(INITDDIR)" != x; then \ echo Installing init script...; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(INITDDIR); \ $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR); \ fi if test "x$(LAUNCHD_DIR)" != x; then \ echo Installing launchd configuration files...; \ $(INSTALL_DIR) $(BUILDROOT)$(LAUNCHD_DIR); \ $(INSTALL_DATA) org.cups.cupsd.plist $(BUILDROOT)$(LAUNCHD_DIR); \ $(INSTALL_DATA) org.cups.cups-lpd.plist $(BUILDROOT)$(LAUNCHD_DIR); \ fi if test "x$(SMFMANIFESTDIR)" != x; then \ echo Installing SMF manifest in $(SMFMANIFESTDIR)...;\ $(INSTALL_DIR) $(BUILDROOT)/$(SMFMANIFESTDIR); \ $(INSTALL_SCRIPT) cups.xml $(BUILDROOT)$(SMFMANIFESTDIR)/cups.xml; \ fi if test "x$(SYSTEMD_DIR)" != x; then \ echo Installing systemd configuration files...; \ $(INSTALL_DIR) $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.path $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.service $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups.socket $(BUILDROOT)$(SYSTEMD_DIR); \ $(INSTALL_DATA) cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/cups-lpd@.service; \ $(INSTALL_DATA) cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR); \ fi if test "x$(XINETD)" != x; then \ echo Installing xinetd configuration file for cups-lpd...; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(XINETD); \ $(INSTALL_DATA) cups-lpd.xinetd $(BUILDROOT)$(XINETD)/cups-lpd; \ fi # # Install programs... # install-exec: echo Installing programs in $(SBINDIR)... $(INSTALL_DIR) -m 755 $(SBINDIR) $(INSTALL_BIN) -m $(CUPS_CUPSD_FILE_PERM) cupsd $(SBINDIR) $(INSTALL_BIN) cupsfilter $(SBINDIR) echo Installing programs in $(SERVERBIN)/daemon... $(INSTALL_DIR) -m 755 $(SERVERBIN) $(INSTALL_DIR) -m 755 $(SERVERBIN)/daemon $(INSTALL_BIN) cups-deviced $(SERVERBIN)/daemon $(INSTALL_BIN) cups-driverd $(SERVERBIN)/daemon $(INSTALL_BIN) cups-exec $(SERVERBIN)/daemon $(INSTALL_BIN) cups-lpd $(SERVERBIN)/daemon if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(PROGRAMS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall the scheduler... # uninstall: $(RM) $(SBINDIR)/cupsd $(RM) $(SBINDIR)/cupsfilter $(RM) $(SERVERBIN)/daemon/cups-deviced $(RM) $(SERVERBIN)/daemon/cups-driverd $(RM) $(SERVERBIN)/daemon/cups-exec $(RM) $(SERVERBIN)/daemon/cups-lpd -$(RMDIR) $(STATEDIR)/certs -$(RMDIR) $(STATEDIR) -$(RMDIR) $(SERVERROOT)/ppd -$(RMDIR) $(SERVERROOT)/interfaces -$(RMDIR) $(SERVERROOT) -$(RMDIR) $(SERVERBIN)/driver -$(RMDIR) $(SERVERBIN)/daemon -$(RMDIR) $(SERVERBIN) -$(RMDIR) $(SBINDIR) -$(RMDIR) $(REQUESTS)/tmp -$(RMDIR) $(REQUESTS) -$(RMDIR) $(LOGDIR) -$(RMDIR) $(CACHEDIR) if test "x$(INITDIR)" != x; then \ echo Uninstalling init scripts...; \ $(RM) $(BUILDROOT)$(INITDIR)/init.d/cups; \ $(RMDIR) $(BUILDROOT)$(INITDIR)/init.d; \ $(RM) $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ $(RMDIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ $(RM) $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ $(RMDIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ $(RM) $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ $(RMDIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ $(RM) $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ $(RMDIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ fi if test "x$(INITDDIR)" != x; then \ echo Uninstalling startup script...; \ $(RM) $(BUILDROOT)$(INITDDIR)/cups.sh; \ $(RMDIR) $(BUILDROOT)$(INITDDIR); \ fi if test "x$LAUNCHD_DIR" != x; then \ echo Uninstalling launchd files...; \ $(RM) $(BUILDROOT)$(LAUNCHD_DIR)/org.cups.cupsd.plist; \ $(RM) $(BUILDROOT)$(LAUNCHD_DIR)/org.cups.cups-lpd.plist; \ fi if test "x$SYSTEMD_DIR" != x; then \ echo Uninstalling systemd files...; \ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.path; \ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.service; \ $(RM) $(BUILDROOT)$(SYSTEMD_DIR)/cups.socket; \ fi if test "x$(SMFMANIFESTDIR)" != x; then \ echo Uninstalling SMF manifest file...;\ $(RM) $(BUILDROOT)$(SMFMANIFESTDIR)/cups.xml; \ fi if test "x$(XINETD)" != x; then \ echo Uninstalling xinetd configuration file for cups-lpd...; \ $(RM) $(BUILDROOT)$(XINETD)/cups-lpd; \ fi # # Make the scheduler executable, "cupsd". # cupsd: $(CUPSDOBJS) libcupsmime.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsd $(CUPSDOBJS) libcupsmime.a \ $(PAMLIBS) $(LIBPAPER) $(LIBMALLOC) $(DNSSDLIBS) $(SERVERLIBS) \ $(ONDEMANDLIBS) $(LIBWRAP) $(LIBGSSAPI) $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ cupsd-static: $(CUPSDOBJS) libcupsmime.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsd-static $(CUPSDOBJS) libcupsmime.a \ $(PAMLIBS) $(LIBPAPER) $(LIBMALLOC) $(SERVERLIBS) $(ONDEMANDLIBS) \ $(LIBWRAP) $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the cupsfilter utility. # cupsfilter: cupsfilter.o libcupsmime.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsfilter cupsfilter.o libcupsmime.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ $(RM) convert $(LN) cupsfilter convert cupsfilter-static: cupsfilter.o libcupsmime.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cupsfilter-static cupsfilter.o libcupsmime.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the device daemon, "cups-deviced". # cups-deviced: cups-deviced.o util.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cups-deviced cups-deviced.o util.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the driver daemon, "cups-driverd". # cups-driverd: cups-driverd.o util.o ../cups/$(LIBCUPS) ../ppdc/libcupsppdc.a echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o cups-driverd cups-driverd.o util.o \ ../ppdc/libcupsppdc.a $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the sandbox execution helper, "cups-exec". # cups-exec: cups-exec.o echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cups-exec cups-exec.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the line printer daemon, "cups-lpd". # cups-lpd: cups-lpd.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o cups-lpd cups-lpd.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # libcupsmime.a # libcupsmime.a: $(LIBOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ # # Make the test program, "testlpd". # testlpd: testlpd.o ../cups/$(LIBCUPSSTATIC) cups-lpd echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testlpd testlpd.o $(LINKCUPSSTATIC) # # testmime # testmime: testmime.o libcupsmime.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testmime.o libcupsmime.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running MIME tests... ./testmime # # Make the test program, "testspeed". # testspeed: testspeed.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testspeed testspeed.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Make the test program, "testsub". # testsub: testsub.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testsub testsub.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Lines of code computation... # sloc: echo "cupsd: \c" sloccount $(CUPSDOBJS:.o=.c) $(LIBOBJS:.o=.c) cups-driverd.cxx cups-lpd.c 2>/dev/null | grep "Total Physical" | awk '{print $$9}' # # Dependencies... # include Dependencies cups-2.4.7/scheduler/Dependencies0000644000175000017500000004665414502571342016667 0ustar zdohnalzdohnalauth.o: auth.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h banners.o: banners.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h ../cups/dir.h cert.o: cert.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h classes.o: classes.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h client.o: client.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h colorman.o: colorman.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h conf.o: conf.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h dirsvc.o: dirsvc.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h env.o: env.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h file.o: file.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h \ ../cups/dir.h main.o: main.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h ipp.o: ipp.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h listen.o: listen.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h job.o: job.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h \ ../cups/backend.h ../cups/dir.h log.o: log.c cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h network.o: network.c ../cups/http-private.h ../config.h \ ../cups/language.h ../cups/array.h ../cups/versioning.h ../cups/http.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/pwg.h cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../cups/array-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h \ ../cups/getifaddrs-internal.h policy.o: policy.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h printers.o: printers.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h ../cups/dir.h process.o: process.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h quotas.o: quotas.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h select.o: select.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h server.o: server.c ../cups/http-private.h ../config.h ../cups/language.h \ ../cups/array.h ../cups/versioning.h ../cups/http.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/pwg.h cupsd.h ../cups/cups-private.h ../cups/string-private.h \ ../cups/array-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/file-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h mime.h sysman.h \ statbuf.h cert.h auth.h client.h policy.h printers.h classes.h job.h \ colorman.h conf.h banners.h dirsvc.h network.h subscriptions.h statbuf.o: statbuf.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h subscriptions.o: subscriptions.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h sysman.o: sysman.c cupsd.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h sysman.h statbuf.h cert.h auth.h \ client.h policy.h printers.h classes.h job.h colorman.h conf.h \ banners.h dirsvc.h network.h subscriptions.h filter.o: filter.c ../cups/string-private.h ../config.h \ ../cups/versioning.h mime.h ../cups/array.h ../cups/ipp.h \ ../cups/http.h ../cups/file.h mime.o: mime.c ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/dir.h mime-private.h mime.h ../cups/array.h ../cups/ipp.h \ ../cups/http.h ../cups/file.h type.o: type.c ../cups/string-private.h ../config.h ../cups/versioning.h \ mime.h ../cups/array.h ../cups/ipp.h ../cups/http.h ../cups/file.h cupsfilter.o: cupsfilter.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/file-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h mime.h cups-deviced.o: cups-deviced.c util.h ../cups/array-private.h \ ../cups/array.h ../cups/versioning.h ../cups/file-private.h \ ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/dir.h cups-exec.o: cups-exec.c ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/file.h cups-lpd.o: cups-lpd.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h testlpd.o: testlpd.c ../cups/cups.h ../cups/file.h ../cups/versioning.h \ ../cups/ipp.h ../cups/http.h ../cups/array.h ../cups/language.h \ ../cups/pwg.h ../cups/string-private.h ../config.h testmime.o: testmime.c ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/dir.h ../cups/debug-private.h \ ../cups/ppd-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/array.h ../cups/language.h ../cups/pwg.h \ ../cups/ppd.h ../cups/raster.h ../cups/pwg-private.h mime.h testspeed.o: testspeed.c ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/array.h ../cups/language.h ../cups/pwg.h \ ../cups/debug-private.h testsub.o: testsub.c ../cups/cups.h ../cups/file.h ../cups/versioning.h \ ../cups/ipp.h ../cups/http.h ../cups/array.h ../cups/language.h \ ../cups/pwg.h ../cups/debug-private.h ../cups/string-private.h \ ../config.h ../cups/ipp-private.h util.o: util.c util.h ../cups/array-private.h ../cups/array.h \ ../cups/versioning.h ../cups/file-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h cups-driverd.o: cups-driverd.cxx util.h ../cups/array-private.h \ ../cups/array.h ../cups/versioning.h ../cups/file-private.h \ ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/dir.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h ../ppdc/ppdc.h cups-2.4.7/ppdc/0000755000175000017500000000000014502571342013307 5ustar zdohnalzdohnalcups-2.4.7/ppdc/testcatalog.cxx0000644000175000017500000000174414502571342016353 0ustar zdohnalzdohnal// // Test program for message catalog class. // // Copyright © 2008-2019 by Apple Inc. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'main()' - Open a message catalog // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { ppdcCatalog *catalog; // Message catalog ppdcMessage *m; // Current message if (argc != 2) { puts("Usage: testcatalog filename"); return (1); } // Scan the command-line... catalog = new ppdcCatalog(NULL, argv[1]); printf("%s: %u messages\n", argv[1], (unsigned)catalog->messages->count); for (m = (ppdcMessage *)catalog->messages->first(); m; m = (ppdcMessage *)catalog->messages->next()) printf("%s: %s\n", m->id->value, m->string->value); catalog->release(); // Return with no errors. return (0); } cups-2.4.7/ppdc/sample.drv0000644000175000017500000012062414502571342015312 0ustar zdohnalzdohnal// // Driver info file for CUPS-supplied PPDs. // // Copyright © 2021-2023 by OpenPrinting. // Copyright © 2007-2019 by Apple Inc. // Copyright © 1993-2006 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // Include necessary files... #include #include #include #include #include // Localizations are provided for all of the base languages supported by // CUPS... #po ar "" #po ca "" #po cs "" #po da "" #po de "" #po el "" #po es "" #po fi "" #po fr "" #po he "" #po hr "" #po hu "" #po id "" #po it "" #po ja "" #po ko "" #po ms "" #po no "" #po pl "" #po pt "" #po pt_PT "" #po ro "" #po ru "" #po sk "" #po sv "" #po th "" #po tr "" #po uk "" #po vi "" #po zh_CN "" #po zh_TW "" // MediaSize sizes used by label drivers... #media "w90h18/1.25x0.25\"" 90 18 #media "w90h162/1.25x2.25\"" 90 162 #media "w108h18/1.50x0.25\"" 108 18 #media "w108h36/1.50x0.50\"" 108 36 #media "w108h72/1.50x1.00\"" 108 72 #media "w108h144/1.50x2.00\"" 108 144 #media "w142h227/80x50mm" 142 227 #media "w144h26/2.00x0.37\"" 144 26 #media "w144h36/2.00x0.50\"" 144 36 #media "w144h72/2.00x1.00\"" 144 72 #media "w144h90/2.00x1.25\"" 144 90 #media "w144h144/2.00x2.00\"" 144 144 #media "w144h216/2.00x3.00\"" 144 216 #media "w144h288/2.00x4.00\"" 144 288 #media "w144h396/2.00x5.50\"" 144 396 #media "w162h36/2.25x0.50\"" 162 36 #media "w162h90/2.25x1.25\"" 162 90 #media "w162h225/30859 Paint Can Label" 162 225 #media "w162h288/2.25x4.00\"" 162 288 #media "w162h396/2.25x5.50\"" 162 396 #media "w171h396/2.38x5.50\"" 171 396 #media "w180h72/2.50x1.00\"" 180 72 #media "w180h144/2.50x2.00\"" 180 144 #media "w198h90/2.75x1.25\"" 198 90 #media "w209h72/2.9 x 1\"" 209 72 #media "w216h72/3.00x1.00\"" 216 72 #media "w216h90/3.00x1.25\"" 216 90 #media "w216h144/3.00x2.00\"" 216 144 #media "w216h216/3.00x3.00\"" 216 216 #media "w216h288/3.00x4.00\"" 216 288 #media "w216h360/3.00x5.00\"" 216 360 #media "w216h432/3.00x6.00\"" 216 432 #media "w216h576/3.00x8.00\"" 216 576 #media "w234h144/3.25x2.00\"" 234 144 #media "w234h360/3.25x5.00\"" 234 360 #media "w234h396/3.25x5.50\"" 234 396 #media "w234h419/3.25x5.83\"" 234 419 #media "w234h563/3.25x7.83\"" 234 563 #media "w252h72/3.50x1.00\"" 252 72 #media "w288h72/4.00x1.00\"" 288 72 #media "w288h144/4.00x2.00\"" 288 144 #media "w288h180/4.00x2.50\"" 288 180 #media "w288h216/4.00x3.00\"" 288 216 #media "w288h288/4.00x4.00\"" 288 288 #media "w288h360/4.00x5.00\"" 288 360 #media "w288h432/4.00x6.00\"" 288 432 #media "w288h468/4.00x6.50\"" 288 468 #media "w288h576/4.00x8.00\"" 288 576 #media "w288h936/4.00x13.00\"" 288 936 #media "w432h72/6.00x1.00\"" 432 72 #media "w432h144/6.00x2.00\"" 432 144 #media "w432h216/6.00x3.00\"" 432 216 #media "w432h288/6.00x4.00\"" 432 288 #media "w432h360/6.00x5.00\"" 432 360 #media "w432h432/6.00x6.00\"" 432 432 #media "w432h468/6.00x6.50\"" 432 468 #media "w432h576/6.00x8.00\"" 432 576 #media "w576h72/8.00x1.00\"" 576 72 #media "w576h144/8.00x2.00\"" 576 144 #media "w576h216/8.00x3.00\"" 576 216 #media "w576h288/8.00x4.00\"" 576 288 #media "w576h360/8.00x5.00\"" 576 360 #media "w576h432/8.00x6.00\"" 576 432 #media "w576h468/8.00x6.50\"" 576 468 #media "w595h72/8.26x1.00\"" 595 72 // Common stuff for all drivers... Attribute "cupsVersion" "" "2.4" Attribute "FileSystem" "" "False" Attribute "LandscapeOrientation" "" "Plus90" Attribute "TTRasterizer" "" "Type42" Copyright "Copyright (c) 2021-2023 by OpenPrinting." Copyright "Copyright (c) 2007-2019 by Apple Inc." Copyright "Copyright (c) 1997-2007 by Easy Software Products." Copyright "" Copyright "Licensed under Apache License v2.0. See the file \"LICENSE\" for more" Copyright "information." Font * Version "2.4" // DYMO Label Printer { Manufacturer "DYMO" ModelName "Label Printer" Attribute NickName "" "DYMO Label Printer" PCFileName "dymo.ppd" DriverType label ModelNumber $DYMO_3x0 Throughput 8 ManualCopies Yes ColorDevice No Attribute "cupsSNMPSupplies" "" "false" HWMargins 2 14.9 2 14.9 *MediaSize w81h252 MediaSize w101h252 MediaSize w54h144 MediaSize w162h225 MediaSize w162h288 MediaSize w162h540 MediaSize w162h504 MediaSize w41h248 MediaSize w41h144 MediaSize w153h198 Resolution k 1 0 0 0 136dpi Resolution k 1 0 0 0 203dpi *Resolution k 1 0 0 0 300dpi *InputSlot 0 "Roll/Main Roll" InputSlot 1 "Roll2/Second Roll (DUO/Twin Only)" Darkness 0 Light Darkness 1 Medium *Darkness 2 Normal Darkness 3 Dark } // Epson { Manufacturer "Epson" DriverType epson ManualCopies Yes ColorDevice No Throughput 1 HWMargins 0 0 0 0 VariablePaperSize Yes MinSize 36 36 MaxSize 1080 86400 // Epson 24-Pin Series { ModelName "24-Pin Series" Attribute NickName "" "Epson 24-Pin Series" PCFileName "epson24.ppd" ModelNumber $EPSON_24PIN HWMargins 18 18 18 18 *MediaSize Letter MediaSize Legal MediaSize A4 MediaSize FanFoldUS Resolution k 1 8 0 0 60dpi *Resolution k 1 8 0 0 120x60dpi Resolution k 1 24 0 0 180dpi Resolution k 1 24 0 0 360x180dpi Resolution k 1 48 0 0 360dpi } // Epson 9-Pin Series { ModelName "9-Pin Series" Attribute NickName "" "Epson 9-Pin Series" PCFileName "epson9.ppd" ModelNumber $EPSON_9PIN ColorDevice No HWMargins 18 18 18 18 *MediaSize Letter MediaSize Legal MediaSize A4 MediaSize FanFoldUS Resolution k 1 8 0 0 60x72dpi *Resolution k 1 8 0 0 120x72dpi Resolution k 1 8 0 0 240x72dpi } } // Generic drivers { Manufacturer "Generic" // Generic PCL Laser Printer { DriverType hp ModelName "PCL Laser Printer" Attribute NickName "" "Generic PCL Laser Printer" PCFileName "generpcl.ppd" Throughput 8 ModelNumber $HP_LASERJET ColorDevice No Attribute 1284DeviceID "" "CMD:PCL;" UIConstraints "*Duplex *Option1 False" UIConstraints "*PageSize A3 *InputSlot Envelope" UIConstraints "*PageSize A4 *InputSlot Envelope" UIConstraints "*PageSize A5 *InputSlot Envelope" UIConstraints "*PageSize B5 *InputSlot Envelope" UIConstraints "*PageSize Executive *InputSlot Envelope" UIConstraints "*PageSize Legal *InputSlot Envelope" UIConstraints "*PageSize Letter *InputSlot Envelope" UIConstraints "*PageSize Tabloid *InputSlot Envelope" HWMargins 18 12 18 12 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Tabloid MediaSize A3 MediaSize A4 MediaSize A5 MediaSize B5 MediaSize EnvISOB5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvMonarch *Resolution k 1 0 0 0 300dpi Resolution k 1 0 0 0 600dpi *InputSlot 0 "Default/Printer Default" InputSlot 8 "Tray1/Tray 1" InputSlot 1 "Tray2/Tray 2" InputSlot 4 "Tray3/Tray 3" InputSlot 5 "Tray4/Tray 4" InputSlot 2 "Manual/Manual Feed" InputSlot 3 "Envelope/Envelope Feed" Duplex Yes Installable "Option1/Duplexer" } // Generic PostScript Printer { DriverType ps ModelName "PostScript Printer" Attribute NickName "" "Generic PostScript Printer" PCFileName "generic.ppd" Throughput 8 ColorDevice Yes Attribute PSVersion "" "(2016.0) 0" Attribute LanguageLevel "" 2 Attribute 1284DeviceID "" "CMD:PS;" UIConstraints "*Duplex *Option1 False" HWMargins 12 12 12 12 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Tabloid MediaSize A3 MediaSize A4 MediaSize A5 MediaSize B5 MediaSize EnvISOB5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvMonarch Option "InputSlot/Media Source" PickOne AnySetup 10 *Choice "Default/Printer Default" "" Choice "Upper/Cassette" "<>setpagedevice" Choice "Manual/Manual Feed" "<>setpagedevice" Duplex Yes Installable "Option1/Duplexer" Attribute "?Option1" "" "save currentpagedevice/Duplex known{(True)}{(False)}ifelse = flush restore" } } // HP { Manufacturer "HP" DriverType hp // HP DeskJet Series { ModelName "DeskJet Series" Attribute NickName "" "HP DeskJet Series" PCFileName "deskjet.ppd" ModelNumber $HP_DESKJET ManualCopies Yes ColorDevice Yes Throughput 1 Attribute 1284DeviceID "" "MFG:HP;MDL:HP DeskJet;CMD:PCL;" UIConstraints "*PageSize A3 *InputSlot Envelope" UIConstraints "*PageSize A4 *InputSlot Envelope" UIConstraints "*PageSize A5 *InputSlot Envelope" UIConstraints "*PageSize B5 *InputSlot Envelope" UIConstraints "*PageSize Executive *InputSlot Envelope" UIConstraints "*PageSize Legal *InputSlot Envelope" UIConstraints "*PageSize Letter *InputSlot Envelope" UIConstraints "*PageSize Tabloid *InputSlot Envelope" HWMargins 18 36 18 36 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Tabloid MediaSize A3 MediaSize A4 MediaSize A5 MediaSize B5 MediaSize EnvISOB5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvMonarch ColorModel Gray/Grayscale k chunky 2 ColorModel RGB/Color cmy banded 2 *ColorModel CMYK kcmy banded 2 Resolution - 1 0 0 0 150dpi *Resolution - 1 0 0 0 300dpi Resolution - 1 0 0 0 600dpi *InputSlot 1 Tray InputSlot 2 "Manual/Manual Feed" InputSlot 3 "Envelope/Envelope Feed" *MediaType 0 "Plain/Plain Paper" MediaType 1 "Bond/Bond Paper" MediaType 2 "Special/Special Paper" MediaType 3 Transparency MediaType 4 "Glossy/Glossy Paper" } // HP LaserJet Series PCL 4/5 { ModelName "LaserJet Series PCL 4/5" Attribute NickName "" "HP LaserJet Series PCL 4/5" PCFileName "laserjet.ppd" Throughput 8 ModelNumber $HP_LASERJET ColorDevice No Attribute 1284DeviceID "" "MFG:HP;MDL:HP LaserJet;CMD:PCL;" UIConstraints "*Duplex *Option1 False" UIConstraints "*PageSize A3 *InputSlot Envelope" UIConstraints "*PageSize A4 *InputSlot Envelope" UIConstraints "*PageSize A5 *InputSlot Envelope" UIConstraints "*PageSize B5 *InputSlot Envelope" UIConstraints "*PageSize Executive *InputSlot Envelope" UIConstraints "*PageSize Legal *InputSlot Envelope" UIConstraints "*PageSize Letter *InputSlot Envelope" UIConstraints "*PageSize Tabloid *InputSlot Envelope" HWMargins 18 36 18 36 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Tabloid MediaSize A3 MediaSize A4 MediaSize A5 MediaSize B5 MediaSize EnvISOB5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvMonarch Resolution k 1 0 0 0 150dpi *Resolution k 1 0 0 0 300dpi Resolution k 1 0 0 0 600dpi *InputSlot 0 "Default/Printer Default" InputSlot 8 "Tray1/Tray 1" InputSlot 1 "Tray2/Tray 2" InputSlot 4 "Tray3/Tray 3" InputSlot 5 "Tray4/Tray 4" InputSlot 2 "Manual/Manual Feed" InputSlot 3 "Envelope/Envelope Feed" Duplex Yes Installable "Option1/Duplexer" } } // Intellitech IntelliBar Series Label Printer { Manufacturer "Intellitech" ModelName "IntelliBar Label Printer" Attribute ShortNickName "" "IntelliBar Label Printer" PCFileName "intelbar.ppd" DriverType label ModelNumber $INTELLITECH_PCL Throughput 8 ColorDevice No Attribute "cupsSNMPSupplies" "" "false" HWMargins 0 5.76 0 5.76 VariablePaperSize Yes MinSize 36 36 MaxSize 630 7128 UIConstraints "*inPrintMode Standard *inCutInterval" UIConstraints "*inPrintMode Tear *inCutInterval" UIConstraints "*inPrintMode Standard *inTearInterval" UIConstraints "*inPrintMode Cut *inTearInterval" *MediaSize w288h432 *Resolution k 1 0 0 0 300dpi Group "PrinterSettings/Printer Settings" Option "inPrintDensity/Print Density" PickOne DocumentSetup 20.0 *Choice "Default/Printer Default" "<>setpagedevice" Choice "-15/-15" "<>setpagedevice" Choice "-14/-14" "<>setpagedevice" Choice "-13/-13" "<>setpagedevice" Choice "-12/-12" "<>setpagedevice" Choice "-11/-11" "<>setpagedevice" Choice "-10/-10" "<>setpagedevice" Choice "-9/-9" "<>setpagedevice" Choice "-8/-8" "<>setpagedevice" Choice "-7/-7" "<>setpagedevice" Choice "-6/-6" "<>setpagedevice" Choice "-5/-5" "<>setpagedevice" Choice "-4/-4" "<>setpagedevice" Choice "-3/-3" "<>setpagedevice" Choice "-2/-2" "<>setpagedevice" Choice "-1/-1" "<>setpagedevice" Choice "0/0" "<>setpagedevice" Choice "1/1" "<>setpagedevice" Choice "2/2" "<>setpagedevice" Choice "3/3" "<>setpagedevice" Choice "4/4" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "6/6" "<>setpagedevice" Choice "7/7" "<>setpagedevice" Choice "8/8" "<>setpagedevice" Choice "9/9" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "11/11" "<>setpagedevice" Choice "12/12" "<>setpagedevice" Choice "13/13" "<>setpagedevice" Choice "14/14" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Option "inPrintRate/Print Speed" PickOne DocumentSetup 20.0 *Choice "Default/Printer Default" "<>setpagedevice" Choice "15/15 mm/sec." "<>setpagedevice" Choice "20/20 mm/sec." "<>setpagedevice" Choice "30/30 mm/sec." "<>setpagedevice" Choice "40/40 mm/sec." "<>setpagedevice" Choice "60/60 mm/sec." "<>setpagedevice" Choice "80/80 mm/sec." "<>setpagedevice" Choice "100/100 mm/sec." "<>setpagedevice" Choice "120/120 mm/sec." "<>setpagedevice" Choice "150/150 mm/sec." "<>setpagedevice" Choice "200/200 mm/sec." "<>setpagedevice" Choice "250/250 mm/sec." "<>setpagedevice" Choice "300/300 mm/sec." "<>setpagedevice" Option "inPrintMode/Print Mode" PickOne DocumentSetup 20.0 *Choice "Standard/Standard" "" Choice "Tear/Tear" "" Choice "Cut/Cut" "" Option "inTearInterval/Print and Tear" PickOne DocumentSetup 20.0 *Choice "None/Disabled" "<>setpagedevice" Choice "1/Every Label" "<>setpagedevice" Choice "2/Every 2 Labels" "<>setpagedevice" Choice "3/Every 3 Labels" "<>setpagedevice" Choice "4/Every 4 Labels" "<>setpagedevice" Choice "5/Every 5 Labels" "<>setpagedevice" Choice "6/Every 6 Labels" "<>setpagedevice" Choice "7/Every 7 Labels" "<>setpagedevice" Choice "8/Every 8 Labels" "<>setpagedevice" Choice "9/Every 9 Labels" "<>setpagedevice" Choice "10/Every 10 Labels" "<>setpagedevice" Attribute CustominTearInterval True "<>setpagedevice" Attribute ParamCustominTearInterval Interval "1 int 1 99" Option "inCutInterval/Print and Cut" PickOne DocumentSetup 20.0 *Choice "None/Disabled" "<>setpagedevice" Choice "1/Every Label" "<>setpagedevice" Choice "2/Every 2 Labels" "<>setpagedevice" Choice "3/Every 3 Labels" "<>setpagedevice" Choice "4/Every 4 Labels" "<>setpagedevice" Choice "5/Every 5 Labels" "<>setpagedevice" Choice "6/Every 6 Labels" "<>setpagedevice" Choice "7/Every 7 Labels" "<>setpagedevice" Choice "8/Every 8 Labels" "<>setpagedevice" Choice "9/Every 9 Labels" "<>setpagedevice" Choice "10/Every 10 Labels" "<>setpagedevice" Attribute CustominCutInterval True "<>setpagedevice" Attribute ParamCustominCutInterval Interval "1 int 1 99" } // Oki { Manufacturer "Oki" DriverType epson ManualCopies Yes ColorDevice No Throughput 1 HWMargins 18 18 18 18 *MediaSize Letter MediaSize Legal MediaSize A4 MediaSize FanFoldUS HWMargins 0 0 0 0 VariablePaperSize Yes MinSize 36 36 MaxSize 1080 86400 // Oki 24-Pin Series { ModelName "24-Pin Series" Attribute NickName "" "Oki 24-Pin Series" PCFileName "okidat24.ppd" ModelNumber $EPSON_24PIN Resolution k 1 8 0 0 60dpi *Resolution k 1 8 0 0 120x60dpi Resolution k 1 24 0 0 180dpi Resolution k 1 24 0 0 360x180dpi Resolution k 1 48 0 0 360dpi } // Oki 9-Pin Series { ModelName "9-Pin Series" Attribute NickName "" "Oki 9-Pin Series" PCFileName "okidata9.ppd" ModelNumber $EPSON_9PIN ColorDevice No Resolution k 1 8 0 0 60x72dpi *Resolution k 1 8 0 0 120x72dpi Resolution k 1 8 0 0 240x72dpi } } // Zebra { Manufacturer "Zebra" DriverType label Throughput 8 ColorDevice False Attribute "cupsSNMPSupplies" "" "false" // Zebra CPCL Label Printer { ModelName "CPCL Label Printer" Attribute NickName "" "Zebra CPCL Label Printer" PCFileName "zebracpl.ppd" ModelNumber $ZEBRA_CPCL HWMargins 0 0 0 0 MediaSize w144h72 MediaSize w144h90 MediaSize w144h144 MediaSize w144h216 MediaSize w209h72 HWMargins 0 0 1 0 MediaSize w288h144 MediaSize w288h216 MediaSize w288h288 *MediaSize w288h360 MediaSize w288h432 VariablePaperSize Yes HWMargins 0 0 1 0 MinSize 36 36 MaxSize 288 3600 *Resolution k 1 0 0 0 203dpi Group "General/General" Option "zeMediaTracking/Media Tracking" PickOne AnySetup 20.0 Choice "Continuous/Continuous" "" *Choice "Web/Non-continuous (Web sensing)" "" Choice "Mark/Non-continuous (Mark sensing)" "" Group "PrinterSettings/Printer Settings" Option "Darkness" PickOne AnySetup 20.0 *Choice "-1/Printer Default" "<>setpagedevice" Choice "1/1" "<>setpagedevice" Choice "2/2" "<>setpagedevice" Choice "3/3" "<>setpagedevice" Choice "4/4" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "6/6" "<>setpagedevice" Choice "7/7" "<>setpagedevice" Choice "8/8" "<>setpagedevice" Choice "9/9" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "11/11" "<>setpagedevice" Choice "12/12" "<>setpagedevice" Choice "13/13" "<>setpagedevice" Choice "14/14" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "16/16" "<>setpagedevice" Choice "17/17" "<>setpagedevice" Choice "18/18" "<>setpagedevice" Choice "19/19" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "21/21" "<>setpagedevice" Choice "22/22" "<>setpagedevice" Choice "23/23" "<>setpagedevice" Choice "24/24" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "26/26" "<>setpagedevice" Choice "27/27" "<>setpagedevice" Choice "28/28" "<>setpagedevice" Choice "29/29" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Option "zePrintRate/Print Rate" PickOne AnySetup 20.0 *Choice "Default/Printer Default" "" Choice "1/1 inch/sec." "" Choice "2/2 inches/sec." "" Choice "3/3 inches/sec." "" Choice "4/4 inches/sec." "" Option "zeTearOffPosition/Tear-Off Adjust Position" PickOne AnySetup 20.0 *Choice "1000/Printer Default" "<>setpagedevice" Choice "-120/-120" "<>setpagedevice" Choice "-115/-115" "<>setpagedevice" Choice "-110/-110" "<>setpagedevice" Choice "-105/-105" "<>setpagedevice" Choice "-100/-100" "<>setpagedevice" Choice "-95/-95" "<>setpagedevice" Choice "-90/-90" "<>setpagedevice" Choice "-85/-85" "<>setpagedevice" Choice "-80/-80" "<>setpagedevice" Choice "-75/-75" "<>setpagedevice" Choice "-70/-70" "<>setpagedevice" Choice "-65/-65" "<>setpagedevice" Choice "-60/-60" "<>setpagedevice" Choice "-55/-55" "<>setpagedevice" Choice "-50/-50" "<>setpagedevice" Choice "-45/-45" "<>setpagedevice" Choice "-40/-40" "<>setpagedevice" Choice "-35/-35" "<>setpagedevice" Choice "-30/-30" "<>setpagedevice" Choice "-25/-25" "<>setpagedevice" Choice "-20/-20" "<>setpagedevice" Choice "-15/-15" "<>setpagedevice" Choice "-10/-10" "<>setpagedevice" Choice "-5/-5" "<>setpagedevice" Choice "0/0" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Choice "35/35" "<>setpagedevice" Choice "40/40" "<>setpagedevice" Choice "45/45" "<>setpagedevice" Choice "50/50" "<>setpagedevice" Choice "55/55" "<>setpagedevice" Choice "60/60" "<>setpagedevice" Choice "65/65" "<>setpagedevice" Choice "70/70" "<>setpagedevice" Choice "75/75" "<>setpagedevice" Choice "80/80" "<>setpagedevice" Choice "85/85" "<>setpagedevice" Choice "90/90" "<>setpagedevice" Choice "95/95" "<>setpagedevice" Choice "100/100" "<>setpagedevice" Choice "105/105" "<>setpagedevice" Choice "110/110" "<>setpagedevice" Choice "115/115" "<>setpagedevice" Choice "120/120" "<>setpagedevice" Option "zeErrorReprint/Reprint After Error" PickOne AnySetup 20.0 *Choice "Saved/Printer Default" "" Choice "Always/Always" "" Choice "Never/Never" "" } // Zebra EPL1 Label Printer { ModelName "EPL1 Label Printer" Attribute NickName "" "Zebra EPL1 Label Printer" PCFileName "zebraep1.ppd" ModelNumber $ZEBRA_EPL_LINE HWMargins 0 0 0 0 VariablePaperSize Yes MinSize 36 36 MaxSize 288 3600 MediaSize w90h18 MediaSize w90h162 MediaSize w108h18 MediaSize w108h36 MediaSize w108h72 MediaSize w108h144 MediaSize w144h26 MediaSize w144h36 MediaSize w144h72 MediaSize w144h90 MediaSize w144h288 MediaSize w144h396 MediaSize w162h36 MediaSize w162h90 MediaSize w162h288 MediaSize w162h396 MediaSize w171h396 MediaSize w180h72 MediaSize w180h144 MediaSize w198h90 MediaSize w216h72 MediaSize w216h90 MediaSize w216h144 MediaSize w216h216 MediaSize w216h360 MediaSize w234h144 MediaSize w234h360 MediaSize w234h396 MediaSize w234h419 MediaSize w234h563 MediaSize w252h72 MediaSize w288h72 MediaSize w288h144 MediaSize w288h180 MediaSize w288h216 MediaSize w288h288 *MediaSize w288h360 MediaSize w288h432 MediaSize w288h468 MediaSize w288h936 *Resolution k 1 0 0 0 203dpi Resolution k 1 0 0 0 300dpi Resolution k 1 0 0 0 600dpi Group "PrinterSettings/Printer Settings" Option "Darkness" PickOne AnySetup 20.0 *Choice "-1/Printer Default" "<>setpagedevice" Choice "1/1" "<>setpagedevice" Choice "2/2" "<>setpagedevice" Choice "3/3" "<>setpagedevice" Choice "4/4" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "6/6" "<>setpagedevice" Choice "7/7" "<>setpagedevice" Choice "8/8" "<>setpagedevice" Choice "9/9" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "11/11" "<>setpagedevice" Choice "12/12" "<>setpagedevice" Choice "13/13" "<>setpagedevice" Choice "14/14" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "16/16" "<>setpagedevice" Choice "17/17" "<>setpagedevice" Choice "18/18" "<>setpagedevice" Choice "19/19" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "21/21" "<>setpagedevice" Choice "22/22" "<>setpagedevice" Choice "23/23" "<>setpagedevice" Choice "24/24" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "26/26" "<>setpagedevice" Choice "27/27" "<>setpagedevice" Choice "28/28" "<>setpagedevice" Choice "29/29" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Option "zePrintRate/Print Rate" PickOne AnySetup 20.0 *Choice "Default/Printer Default" "" Choice "1/1 inch/sec." "" Choice "1.5/1.5 inch/sec." "" Choice "2/2 inches/sec." "" Choice "2.5/2.5 inches/sec." "" } // Zebra EPL2 Label Printer { ModelName "EPL2 Label Printer" Attribute NickName "" "Zebra EPL2 Label Printer" PCFileName "zebraep2.ppd" ModelNumber $ZEBRA_EPL_PAGE HWMargins 0 0 0 0 VariablePaperSize Yes MinSize 36 36 MaxSize 288 3600 MediaSize w90h18 MediaSize w90h162 MediaSize w108h18 MediaSize w108h36 MediaSize w108h72 MediaSize w108h144 MediaSize w144h26 MediaSize w144h36 MediaSize w144h72 MediaSize w144h90 MediaSize w144h288 MediaSize w144h396 MediaSize w162h36 MediaSize w162h90 MediaSize w162h288 MediaSize w162h396 MediaSize w171h396 MediaSize w180h72 MediaSize w180h144 MediaSize w198h90 MediaSize w216h72 MediaSize w216h90 MediaSize w216h144 MediaSize w216h216 MediaSize w216h360 MediaSize w234h144 MediaSize w234h360 MediaSize w234h396 MediaSize w234h419 MediaSize w234h563 MediaSize w252h72 MediaSize w288h72 MediaSize w288h144 MediaSize w288h180 MediaSize w288h216 MediaSize w288h288 *MediaSize w288h360 MediaSize w288h432 MediaSize w288h468 MediaSize w288h936 *Resolution k 1 0 0 0 203dpi Resolution k 1 0 0 0 300dpi Resolution k 1 0 0 0 600dpi Group "General/General" Option "MediaType/Media Type" PickOne AnySetup 20.0 *Choice "Saved/Printer Default" "" Choice "Thermal/Thermal Transfer Media" "<>setpagedevice" Choice "Direct/Direct Thermal Media" "<>setpagedevice" Group "PrinterSettings/Printer Settings" Option "Darkness" PickOne AnySetup 20.0 *Choice "-1/Printer Default" "<>setpagedevice" Choice "1/1" "<>setpagedevice" Choice "2/2" "<>setpagedevice" Choice "3/3" "<>setpagedevice" Choice "4/4" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "6/6" "<>setpagedevice" Choice "7/7" "<>setpagedevice" Choice "8/8" "<>setpagedevice" Choice "9/9" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "11/11" "<>setpagedevice" Choice "12/12" "<>setpagedevice" Choice "13/13" "<>setpagedevice" Choice "14/14" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "16/16" "<>setpagedevice" Choice "17/17" "<>setpagedevice" Choice "18/18" "<>setpagedevice" Choice "19/19" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "21/21" "<>setpagedevice" Choice "22/22" "<>setpagedevice" Choice "23/23" "<>setpagedevice" Choice "24/24" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "26/26" "<>setpagedevice" Choice "27/27" "<>setpagedevice" Choice "28/28" "<>setpagedevice" Choice "29/29" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Option "zePrintRate/Print Rate" PickOne AnySetup 20.0 *Choice "Default/Printer Default" "" Choice "1/1 inch/sec." "" Choice "1.5/1.5 inch/sec." "" Choice "2/2 inches/sec." "" Choice "2.5/2.5 inches/sec." "" Choice "3/3 inches/sec." "" Choice "4/4 inches/sec." "" Choice "5/5 inches/sec." "" Choice "6/6 inches/sec." "" } // Zebra ZPL Label Printer { ModelName "ZPL Label Printer" Attribute NickName "" "Zebra ZPL Label Printer" PCFileName "zebra.ppd" ModelNumber $ZEBRA_ZPL HWMargins 0 0 0 0 VariablePaperSize Yes MinSize 36 36 MaxSize 576 3600 MediaSize A4 MediaSize A5 MediaSize A5Rotated MediaSize w90h18 MediaSize w90h162 MediaSize w108h18 MediaSize w108h36 MediaSize w108h72 MediaSize w108h144 MediaSize w142h227 MediaSize w144h26 MediaSize w144h36 MediaSize w144h72 MediaSize w144h90 MediaSize w144h288 MediaSize w144h396 MediaSize w162h36 MediaSize w162h90 MediaSize w162h288 MediaSize w162h396 MediaSize w171h396 MediaSize w180h72 MediaSize w180h144 MediaSize w198h90 MediaSize w216h72 MediaSize w216h90 MediaSize w216h144 MediaSize w216h288 MediaSize w216h216 MediaSize w216h360 MediaSize w216h432 MediaSize w216h576 MediaSize w234h144 MediaSize w234h360 MediaSize w234h396 MediaSize w234h419 MediaSize w234h563 MediaSize w252h72 MediaSize w288h72 MediaSize w288h144 MediaSize w288h180 MediaSize w288h216 MediaSize w288h288 *MediaSize w288h360 MediaSize w288h432 MediaSize w288h468 MediaSize w288h576 MediaSize w288h936 MediaSize w432h72 MediaSize w432h144 MediaSize w432h216 MediaSize w432h288 MediaSize w432h360 MediaSize w432h432 MediaSize w432h468 MediaSize w432h576 MediaSize w576h72 MediaSize w576h144 MediaSize w576h216 MediaSize w576h288 MediaSize w576h360 MediaSize w576h432 MediaSize w576h468 MediaSize w595h72 *Resolution k 1 0 0 0 203dpi Resolution k 1 0 0 0 300dpi Resolution k 1 0 0 0 600dpi Group "General/General" Option "zeMediaTracking/Media Tracking" PickOne AnySetup 20.0 Choice "Continuous/Continuous" "" *Choice "Web/Non-continuous (Web sensing)" "" Choice "Mark/Non-continuous (Mark sensing)" "" Option "MediaType/Media Type" PickOne AnySetup 20.0 *Choice "Saved/Printer Default" "" Choice "Thermal/Thermal Transfer Media" "<>setpagedevice" Choice "Direct/Direct Thermal Media" "<>setpagedevice" Group "PrinterSettings/Printer Settings" Option "Darkness" PickOne AnySetup 20.0 *Choice "-1/Printer Default" "<>setpagedevice" Choice "1/1" "<>setpagedevice" Choice "2/2" "<>setpagedevice" Choice "3/3" "<>setpagedevice" Choice "4/4" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "6/6" "<>setpagedevice" Choice "7/7" "<>setpagedevice" Choice "8/8" "<>setpagedevice" Choice "9/9" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "11/11" "<>setpagedevice" Choice "12/12" "<>setpagedevice" Choice "13/13" "<>setpagedevice" Choice "14/14" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "16/16" "<>setpagedevice" Choice "17/17" "<>setpagedevice" Choice "18/18" "<>setpagedevice" Choice "19/19" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "21/21" "<>setpagedevice" Choice "22/22" "<>setpagedevice" Choice "23/23" "<>setpagedevice" Choice "24/24" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "26/26" "<>setpagedevice" Choice "27/27" "<>setpagedevice" Choice "28/28" "<>setpagedevice" Choice "29/29" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Option "zePrintRate/Print Rate" PickOne AnySetup 20.0 *Choice "Default/Printer Default" "" Choice "1/1 inch/sec." "" Choice "2/2 inches/sec." "" Choice "3/3 inches/sec." "" Choice "4/4 inches/sec." "" Choice "5/5 inches/sec." "" Choice "6/6 inches/sec." "" Choice "7/7 inches/sec." "" Choice "8/8 inches/sec." "" Choice "9/9 inches/sec." "" Choice "10/10 inches/sec." "" Choice "11/11 inches/sec." "" Choice "12/12 inches/sec." "" Option "zeLabelTop/Label Top" PickOne AnySetup 20.0 *Choice "200/Printer Default" "<>setpagedevice" Choice "-120/-120" "<>setpagedevice" Choice "-115/-115" "<>setpagedevice" Choice "-110/-110" "<>setpagedevice" Choice "-105/-105" "<>setpagedevice" Choice "-100/-100" "<>setpagedevice" Choice "-95/-95" "<>setpagedevice" Choice "-90/-90" "<>setpagedevice" Choice "-85/-85" "<>setpagedevice" Choice "-80/-80" "<>setpagedevice" Choice "-75/-75" "<>setpagedevice" Choice "-70/-70" "<>setpagedevice" Choice "-65/-65" "<>setpagedevice" Choice "-60/-60" "<>setpagedevice" Choice "-55/-55" "<>setpagedevice" Choice "-50/-50" "<>setpagedevice" Choice "-45/-45" "<>setpagedevice" Choice "-40/-40" "<>setpagedevice" Choice "-35/-35" "<>setpagedevice" Choice "-30/-30" "<>setpagedevice" Choice "-25/-25" "<>setpagedevice" Choice "-20/-20" "<>setpagedevice" Choice "-15/-15" "<>setpagedevice" Choice "-10/-10" "<>setpagedevice" Choice "-5/-5" "<>setpagedevice" Choice "0/0" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Choice "35/35" "<>setpagedevice" Choice "40/40" "<>setpagedevice" Choice "45/45" "<>setpagedevice" Choice "50/50" "<>setpagedevice" Choice "55/55" "<>setpagedevice" Choice "60/60" "<>setpagedevice" Choice "65/65" "<>setpagedevice" Choice "70/70" "<>setpagedevice" Choice "75/75" "<>setpagedevice" Choice "80/80" "<>setpagedevice" Choice "85/85" "<>setpagedevice" Choice "90/90" "<>setpagedevice" Choice "95/95" "<>setpagedevice" Choice "100/100" "<>setpagedevice" Choice "105/105" "<>setpagedevice" Choice "110/110" "<>setpagedevice" Choice "115/115" "<>setpagedevice" Choice "120/120" "<>setpagedevice" Option "zePrintMode/Print Mode" PickOne AnySetup 20.0 *Choice "Saved/Printer Default" "" Choice "Tear/Tear-Off" "" Choice "Peel/Peel-Off" "" Choice "Rewind/Rewind" "" Choice "Applicator/Applicator" "" Choice "Cutter/Cutter" "" Option "zeTearOffPosition/Tear-Off Adjust Position" PickOne AnySetup 20.0 *Choice "1000/Printer Default" "<>setpagedevice" Choice "-120/-120" "<>setpagedevice" Choice "-115/-115" "<>setpagedevice" Choice "-110/-110" "<>setpagedevice" Choice "-105/-105" "<>setpagedevice" Choice "-100/-100" "<>setpagedevice" Choice "-95/-95" "<>setpagedevice" Choice "-90/-90" "<>setpagedevice" Choice "-85/-85" "<>setpagedevice" Choice "-80/-80" "<>setpagedevice" Choice "-75/-75" "<>setpagedevice" Choice "-70/-70" "<>setpagedevice" Choice "-65/-65" "<>setpagedevice" Choice "-60/-60" "<>setpagedevice" Choice "-55/-55" "<>setpagedevice" Choice "-50/-50" "<>setpagedevice" Choice "-45/-45" "<>setpagedevice" Choice "-40/-40" "<>setpagedevice" Choice "-35/-35" "<>setpagedevice" Choice "-30/-30" "<>setpagedevice" Choice "-25/-25" "<>setpagedevice" Choice "-20/-20" "<>setpagedevice" Choice "-15/-15" "<>setpagedevice" Choice "-10/-10" "<>setpagedevice" Choice "-5/-5" "<>setpagedevice" Choice "0/0" "<>setpagedevice" Choice "5/5" "<>setpagedevice" Choice "10/10" "<>setpagedevice" Choice "15/15" "<>setpagedevice" Choice "20/20" "<>setpagedevice" Choice "25/25" "<>setpagedevice" Choice "30/30" "<>setpagedevice" Choice "35/35" "<>setpagedevice" Choice "40/40" "<>setpagedevice" Choice "45/45" "<>setpagedevice" Choice "50/50" "<>setpagedevice" Choice "55/55" "<>setpagedevice" Choice "60/60" "<>setpagedevice" Choice "65/65" "<>setpagedevice" Choice "70/70" "<>setpagedevice" Choice "75/75" "<>setpagedevice" Choice "80/80" "<>setpagedevice" Choice "85/85" "<>setpagedevice" Choice "90/90" "<>setpagedevice" Choice "95/95" "<>setpagedevice" Choice "100/100" "<>setpagedevice" Choice "105/105" "<>setpagedevice" Choice "110/110" "<>setpagedevice" Choice "115/115" "<>setpagedevice" Choice "120/120" "<>setpagedevice" Option "zeErrorReprint/Reprint After Error" PickOne AnySetup 20.0 *Choice "Saved/Printer Default" "" Choice "Always/Always" "" Choice "Never/Never" "" } } cups-2.4.7/ppdc/ppdpo.cxx0000644000175000017500000001375614502571342015171 0ustar zdohnalzdohnal// // PPD file message catalog program for the CUPS PPD Compiler. // // Copyright 2007-2015 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" #include #include // // Local functions... // static void add_ui_strings(ppdcDriver *d, ppdcCatalog *catalog); static void usage(void) _CUPS_NORETURN; // // 'main()' - Main entry for the PPD compiler. // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { int i; // Looping var ppdcCatalog *catalog; // Message catalog ppdcSource *src; // PPD source file data ppdcDriver *d; // Current driver char *opt; // Current option int verbose; // Verbosity const char *outfile; // Output file char *value; // Value in option _cupsSetLocale(argv); // Scan the command-line... catalog = new ppdcCatalog("en"); src = new ppdcSource(); verbose = 0; outfile = 0; for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'D' : // Define variable i ++; if (i >= argc) usage(); if ((value = strchr(argv[i], '=')) != NULL) { *value++ = '\0'; src->set_variable(argv[i], value); } else src->set_variable(argv[i], "1"); break; case 'I' : // Include directory... i ++; if (i >= argc) usage(); if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Adding include directory \"%s\"."), argv[i]); ppdcSource::add_include(argv[i]); break; case 'o' : // Output file... i ++; if (i >= argc || outfile) usage(); outfile = argv[i]; catalog->load_messages(outfile); break; case 'v' : // Be verbose... verbose ++; break; default : // Unknown usage(); } } else { // Open and load the driver info file... if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Loading driver information file \"%s\"."), argv[i]); src->read_file(argv[i]); } // If no drivers have been loaded, display the program usage message. if ((d = (ppdcDriver *)src->drivers->first()) != NULL) { // Add UI strings... while (d != NULL) { if (verbose) _cupsLangPrintf(stderr, _("ppdc: Adding/updating UI text from %s."), argv[i]); add_ui_strings(d, catalog); d = (ppdcDriver *)src->drivers->next(); } } else usage(); // Delete the printer driver information... src->release(); // Write the message catalog... if (!outfile) usage(); else catalog->save_messages(outfile); catalog->release(); // Return with no errors. return (0); } // // 'add_ui_strings()' - Add all UI strings from the driver. // static void add_ui_strings(ppdcDriver *d, // I - Driver data ppdcCatalog *catalog) // I - Message catalog { // Add the make/model/language strings... catalog->add_message(d->manufacturer->value); catalog->add_message(d->model_name->value); // Add the media size strings... ppdcMediaSize *m; // Current media size for (m = (ppdcMediaSize *)d->sizes->first(); m; m = (ppdcMediaSize *)d->sizes->next()) catalog->add_message(m->text->value); // Add the group/option/choice strings... ppdcGroup *g; // Current group ppdcOption *o; // Current option ppdcChoice *c; // Current choice for (g = (ppdcGroup *)d->groups->first(); g; g = (ppdcGroup *)d->groups->next()) { if (!g->options->count) continue; if (_cups_strcasecmp(g->name->value, "General")) catalog->add_message(g->text->value); for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (!o->choices->count) continue; if (o->text->value) catalog->add_message(o->text->value); else catalog->add_message(o->name->value); for (c = (ppdcChoice *)o->choices->first(); c; c = (ppdcChoice *)o->choices->next()) if (c->text->value) catalog->add_message(c->text->value); else catalog->add_message(c->name->value); } } // Add profile and preset strings... ppdcAttr *a; // Current attribute for (a = (ppdcAttr *)d->attrs->first(); a; a = (ppdcAttr *)d->attrs->next()) if (a->text->value && a->text->value[0] && (a->localizable || !strncmp(a->name->value, "Custom", 6) || !strncmp(a->name->value, "ParamCustom", 11) || !strcmp(a->name->value, "APCustomColorMatchingName") || !strcmp(a->name->value, "APPrinterPreset") || !strcmp(a->name->value, "cupsICCProfile") || !strcmp(a->name->value, "cupsIPPReason") || !strcmp(a->name->value, "cupsMarkerName"))) { catalog->add_message(a->text->value); if ((a->localizable && a->value->value[0]) || !strcmp(a->name->value, "cupsIPPReason")) catalog->add_message(a->value->value); } else if (!strncmp(a->name->value, "Custom", 6) || !strncmp(a->name->value, "ParamCustom", 11)) catalog->add_message(a->name->value); } // // 'usage()' - Show usage and exit. // static void usage(void) { _cupsLangPuts(stdout, _("Usage: ppdpo [options] -o filename.po filename.drv " "[ ... filenameN.drv ]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" -D name=value Set named variable to " "value.")); _cupsLangPuts(stdout, _(" -I include-dir Add include directory to " "search path.")); _cupsLangPuts(stdout, _(" -v Be verbose.")); exit(1); } cups-2.4.7/ppdc/ppdmerge.cxx0000644000175000017500000002170314502571342015641 0ustar zdohnalzdohnal// // PPD file merge utility for the CUPS PPD Compiler. // // Copyright © 2007-2018 by Apple Inc. // Copyright © 2002-2007 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // // Include necessary headers... // #include #include #include // // Local functions... // static const char *ppd_locale(ppd_file_t *ppd); static void usage(void) _CUPS_NORETURN; // // 'main()' - Main entry for the PPD merge utility. // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { int i; // Looping var char *opt; // Current option ppd_file_t *ppd; // PPD file cups_array_t *ppds; // Array of PPD files const char *inname, // First input filename *outname; // Output filename (if any) char bckname[1024]; // Backup filename cups_file_t *infile, // Input file *outfile; // Output file cups_array_t *languages; // Languages in file const char *locale; // Current locale char line[1024]; // Line from file _cupsSetLocale(argv); // Scan the command-line... inname = NULL; outname = NULL; outfile = NULL; languages = NULL; ppds = cupsArrayNew(NULL, NULL); for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'o' : // Output file if (outname) usage(); i ++; if (i >= argc) usage(); outname = argv[i]; break; default : // Unknown usage(); } } else { // Open and load the PPD file... if ((infile = cupsFileOpen(argv[i], "r")) == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to open %s: %s"), "ppdmerge", argv[i], strerror(errno)); return (1); } // Open the PPD file... if ((ppd = ppdOpen2(infile)) == NULL) { ppd_status_t status; // PPD open status int curline, // Current line linenum; // Line number status = ppdLastError(&linenum); _cupsLangPrintf(stderr, _("%s: Unable to open PPD file: %s on line %d."), "ppdmerge", ppdErrorString(status), linenum); cupsFileRewind(infile); line[0] = '\0'; curline = 0; while (cupsFileGets(infile, line, sizeof(line))) { curline ++; if (curline >= linenum) break; } _cupsLangPrintf(stderr, "%d: %s", linenum, line); cupsFileClose(infile); return (1); } // Figure out the locale... if ((locale = ppd_locale(ppd)) == NULL) { _cupsLangPrintf(stderr, _("ppdmerge: Bad LanguageVersion \"%s\" in %s."), ppd->lang_version, argv[i]); cupsFileClose(infile); ppdClose(ppd); return (1); } if (!strcmp(locale, "en") && !inname && !outfile) { // Set the English PPD's filename... inname = argv[i]; languages = _ppdGetLanguages(ppd); if (outname && !strcmp(inname, outname)) { // Rename input filename so that we don't overwrite it... snprintf(bckname, sizeof(bckname), "%s.bck", inname); if (rename(inname, bckname)) { _cupsLangPrintf(stderr, _("ppdmerge: Unable to backup %s to %s - %s"), inname, bckname, strerror(errno)); return (1); } inname = bckname; } } else if (strcmp(locale, "en")) { // Save this PPD for later processing... cupsArrayAdd(ppds, ppd); } else { // Don't need this PPD... _cupsLangPrintf(stderr, _("ppdmerge: Ignoring PPD file %s."), argv[i]); ppdClose(ppd); } // Close and move on... cupsFileClose(infile); } // If no PPDs have been loaded, display the program usage message. if (!inname) usage(); // Loop through the PPD files we loaded to generate a new language list... if (!languages) languages = cupsArrayNew((cups_array_func_t)strcmp, NULL); for (ppd = (ppd_file_t *)cupsArrayFirst(ppds); ppd; ppd = (ppd_file_t *)cupsArrayNext(ppds)) { locale = ppd_locale(ppd); if (cupsArrayFind(languages, (void *)locale)) { // Already have this language, remove the PPD from the list. ppdClose(ppd); cupsArrayRemove(ppds, ppd); } else cupsArrayAdd(languages, (void *)locale); } // Copy the English PPD starting with a cupsLanguages line... infile = cupsFileOpen(inname, "r"); if (outname) { const char *ext = strrchr(outname, '.'); if (ext && !strcmp(ext, ".gz")) outfile = cupsFileOpen(outname, "w9"); else outfile = cupsFileOpen(outname, "w"); } else outfile = cupsFileStdout(); cupsFileGets(infile, line, sizeof(line)); cupsFilePrintf(outfile, "%s\n", line); if ((locale = (char *)cupsArrayFirst(languages)) != NULL) { cupsFilePrintf(outfile, "*cupsLanguages: \"%s", locale); while ((locale = (char *)cupsArrayNext(languages)) != NULL) cupsFilePrintf(outfile, " %s", locale); cupsFilePuts(outfile, "\"\n"); } while (cupsFileGets(infile, line, sizeof(line))) { if (strncmp(line, "*cupsLanguages:", 15)) cupsFilePrintf(outfile, "%s\n", line); } // Loop through the other PPD files we loaded to provide the translations... for (ppd = (ppd_file_t *)cupsArrayFirst(ppds); ppd; ppd = (ppd_file_t *)cupsArrayNext(ppds)) { // Output all of the UI text for this language... int j, k, l; // Looping vars ppd_group_t *g; // Option group ppd_option_t *o; // Option ppd_choice_t *c; // Choice ppd_coption_t *co; // Custom option ppd_cparam_t *cp; // Custom parameter ppd_attr_t *attr; // PPD attribute locale = ppd_locale(ppd); cupsFilePrintf(outfile, "*%% %s localization\n", ppd->lang_version); cupsFilePrintf(outfile, "*%s.Translation ModelName/%s: \"\"\n", locale, ppd->modelname); for (j = ppd->num_groups, g = ppd->groups; j > 0; j --, g ++) { cupsFilePrintf(outfile, "*%s.Translation %s/%s: \"\"\n", locale, g->name, g->text); for (k = g->num_options, o = g->options; k > 0; k --, o ++) { cupsFilePrintf(outfile, "*%s.Translation %s/%s: \"\"\n", locale, o->keyword, o->text); for (l = o->num_choices, c = o->choices; l > 0; l --, c ++) cupsFilePrintf(outfile, "*%s.%s %s/%s: \"\"\n", locale, o->keyword, c->choice, c->text); if ((co = ppdFindCustomOption(ppd, o->keyword)) != NULL) { snprintf(line, sizeof(line), "Custom%s", o->keyword); attr = ppdFindAttr(ppd, line, "True"); cupsFilePrintf(outfile, "*%s.Custom%s True/%s: \"\"\n", locale, o->keyword, attr->text); for (cp = ppdFirstCustomParam(co); cp; cp = ppdNextCustomParam(co)) cupsFilePrintf(outfile, "*%s.ParamCustom%s %s/%s: \"\"\n", locale, o->keyword, cp->name, cp->text); } } } ppdClose(ppd); } cupsArrayDelete(ppds); cupsFileClose(outfile); // Return with no errors. return (0); } // // 'ppd_locale()' - Return the locale associated with a PPD file. // static const char * // O - Locale string ppd_locale(ppd_file_t *ppd) // I - PPD file { int i; // Looping var size_t vlen; // Length of LanguageVersion string static char locale[255]; // Locale string static struct // LanguageVersion translation table { const char *version, // LanguageVersion string */ *language; // Language code */ } languages[] = { { "chinese", "zh" }, { "czech", "cs" }, { "danish", "da" }, { "dutch", "nl" }, { "english", "en" }, { "finnish", "fi" }, { "french", "fr" }, { "german", "de" }, { "greek", "el" }, { "hungarian", "hu" }, { "italian", "it" }, { "japanese", "ja" }, { "korean", "ko" }, { "norwegian", "no" }, { "polish", "pl" }, { "portuguese", "pt" }, { "russian", "ru" }, { "simplified chinese", "zh_CN" }, { "slovak", "sk" }, { "spanish", "es" }, { "swedish", "sv" }, { "traditional chinese", "zh_TW" }, { "turkish", "tr" } }; for (i = 0; i < (int)(sizeof(languages) / sizeof(languages[0])); i ++) { vlen = strlen(languages[i].version); if (!_cups_strncasecmp(ppd->lang_version, languages[i].version, vlen)) { if (ppd->lang_version[vlen] == '-' || ppd->lang_version[vlen] == '_') snprintf(locale, sizeof(locale), "%s_%s", languages[i].language, ppd->lang_version + vlen + 1); else strlcpy(locale, languages[i].language, sizeof(locale)); return (locale); } } return (NULL); } // // 'usage()' - Show usage and exit. // static void usage(void) { _cupsLangPuts(stdout, _("Usage: ppdmerge [options] filename.ppd [ ... " "filenameN.ppd ]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" -o filename.ppd[.gz] Set output file " "(otherwise stdout).")); exit(1); } cups-2.4.7/ppdc/ppdi.cxx0000644000175000017500000000465614502571342015002 0ustar zdohnalzdohnal// // PPD file import utility for the CUPS PPD Compiler. // // Copyright 2007-2011 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" #include #include #include // // Local functions... // static void usage(void) _CUPS_NORETURN; // // 'main()' - Main entry for the PPD import utility. // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { int i; // Looping var char *opt; // Current option const char *srcfile; // Output file ppdcSource *src; // PPD source file data _cupsSetLocale(argv); // Scan the command-line... srcfile = NULL; src = NULL; for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'o' : // Output file if (srcfile || src) usage(); i ++; if (i >= argc) usage(); srcfile = argv[i]; break; case 'I' : // Include dir i ++; if (i >= argc) usage(); ppdcSource::add_include(argv[i]); break; default : // Unknown usage(); } } else { // Open and load the driver info file... if (!srcfile) srcfile = "ppdi.drv"; if (!src) { if (access(srcfile, 0)) src = new ppdcSource(); else src = new ppdcSource(srcfile); } // Import the PPD file... src->import_ppd(argv[i]); } // If no drivers have been loaded, display the program usage message. if (!src) usage(); // Write the driver info file back to disk... src->write_file(srcfile); // Delete the printer driver information... src->release(); // Return with no errors. return (0); } // // 'usage()' - Show usage and exit. // static void usage(void) { _cupsLangPuts(stdout, _("Usage: ppdi [options] filename.ppd [ ... " "filenameN.ppd ]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" -I include-dir Add include directory to " "search path.")); _cupsLangPuts(stdout, _(" -o filename.drv Set driver information " "file (otherwise ppdi.drv).")); exit(1); } cups-2.4.7/ppdc/ppdhtml.cxx0000644000175000017500000001065414502571342015511 0ustar zdohnalzdohnal// // PPD to HTML utility for the CUPS PPD Compiler. // // Copyright 2007-2015 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" #include #include // // Local functions... // static void usage(void) _CUPS_NORETURN; // // 'main()' - Main entry for the PPD compiler. // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { int i; // Looping var ppdcSource *src; // PPD source file data ppdcDriver *d; // Current driver ppdcGroup *g, // Current group *composite; // Composite of all drivers ppdcOption *o, // Current option *compo; // Composite option ppdcChoice *c; // Current choice char *opt; // Current option char ppdcMediaSize *size; // Current media size char *value; // Value in option _cupsSetLocale(argv); // Scan the command-line... src = new ppdcSource(); for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'D' : // Define variable i ++; if (i >= argc) usage(); if ((value = strchr(argv[i], '=')) != NULL) { *value++ = '\0'; src->set_variable(argv[i], value); } else src->set_variable(argv[i], "1"); break; case 'I' : // Include directory... i ++; if (i >= argc) usage(); ppdcSource::add_include(argv[i]); break; default : // Unknown usage(); } } else { // Open and load the driver info file... src->read_file(argv[i]); } if ((d = (ppdcDriver *)src->drivers->first()) != NULL) { // Create a composite group with all of the features from the // drivers in the info file... composite = new ppdcGroup("", ""); while (d != NULL) { for (g = (ppdcGroup *)d->groups->first(); g; g = (ppdcGroup *)d->groups->next()) for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (!composite->find_option(o->name->value)) composite->add_option(new ppdcOption(o)); } d = (ppdcDriver *)src->drivers->next(); } puts(""); printf("Driver Summary for %s\n", argv[i]); printf("

Driver Summary for %s

\n", argv[i]); printf("

"); for (compo = (ppdcOption *)composite->options->first(); compo; compo = (ppdcOption *)composite->options->next()) printf("", compo->text->value); puts(""); // Write HTML summary... for (d = (ppdcDriver *)src->drivers->first(); d; d = (ppdcDriver *)src->drivers->next()) { // Write the summary for this driver... printf(""); for (compo = (ppdcOption *)composite->options->first(); compo; compo = (ppdcOption *)composite->options->next()) if ((o = d->find_option(compo->name->value)) != NULL) { printf(""); } else printf(""); puts(""); } puts("
PrinterMedia Size%s
%s", d->model_name->value); for (size = (ppdcMediaSize *)d->sizes->first(); size; size = (ppdcMediaSize *)d->sizes->next()) printf("%s
", size->text->value); printf("
"); for (c = (ppdcChoice *)o->choices->first(); c; c = (ppdcChoice *)o->choices->next()) printf("%s
", c->text->value); printf("
N/A

"); puts(""); puts(""); // Delete the printer driver information... composite->release(); } else { // If no drivers have been loaded, display the program usage message. usage(); } src->release(); // Return with no errors. return (0); } // // 'usage()' - Show usage and exit. // static void usage(void) { _cupsLangPuts(stdout, _("Usage: ppdhtml [options] filename.drv " ">filename.html")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" -D name=value Set named variable to " "value.")); _cupsLangPuts(stdout, _(" -I include-dir Add include directory " "to search path.")); exit(1); } cups-2.4.7/ppdc/ppdc.h0000644000175000017500000003134414502571342014413 0ustar zdohnalzdohnal// // Definitions for the CUPS PPD Compiler. // // Copyright 2007-2019 by Apple Inc. // Copyright 2002-2007 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // #ifndef _PPDC_H_ # define _PPDC_H_ // // Include necessary headers... // # include # include // // Macros... // # define PPDC_NAME(s) const char *class_name() { return (s); } // // Enumerations... // enum ppdcDrvType //// Driver type { PPDC_DRIVER_CUSTOM, // Custom driver PPDC_DRIVER_PS, // PostScript driver PPDC_DRIVER_ESCP, // rastertoescpx driver PPDC_DRIVER_PCL, // rastertopclx driver PPDC_DRIVER_LABEL, // rastertolabel/rastertodymo driver PPDC_DRIVER_EPSON, // rastertoepson driver PPDC_DRIVER_HP, // rastertohp driver PPDC_DRIVER_MAX // Number of driver types defined }; enum ppdcFontStatus //// Load status of font { PPDC_FONT_ROM, // Font is in ROM PPDC_FONT_DISK // Font is on disk }; enum ppdcOptSection //// Option section { PPDC_SECTION_ANY, // AnySetup PPDC_SECTION_DOCUMENT, // DocumentSetup PPDC_SECTION_EXIT, // ExitServer PPDC_SECTION_JCL, // JCLSetup PPDC_SECTION_PAGE, // PageSetup PPDC_SECTION_PROLOG // Prolog }; enum ppdcOptType //// Option type { PPDC_BOOLEAN, // True/false option PPDC_PICKONE, // Single choice from list PPDC_PICKMANY // Multiple choices from list }; enum ppdcLineEnding //// Line endings { PPDC_LFONLY, // LF only PPDC_CRONLY, // CR only PPDC_CRLF // CR + LF }; enum ppdcCondFlags //// Condition flags { PPDC_COND_NORMAL = 0, // Normal state PPDC_COND_SKIP = 1, // Skip state PPDC_COND_SATISFIED = 2 // At least one condition satisfied }; // // Printer description data... // class ppdcShared //// Shared Data Value { private: int use; // Use count (delete when 0) public: ppdcShared(); virtual ~ppdcShared(); virtual const char *class_name() = 0; void retain(); void release(); }; class ppdcArray //// Shared Array : public ppdcShared { public: size_t count, // Number of elements alloc, // Allocated elements current; // Current element ppdcShared **data; // Elements ppdcArray(ppdcArray *a = 0); ~ppdcArray(); PPDC_NAME("ppdcArray") void add(ppdcShared *d); ppdcShared *first(); ppdcShared *next(); void remove(ppdcShared *d); }; class ppdcString //// Shared String : public ppdcShared { public: char *value; // String value ppdcString(const char *v); ~ppdcString(); PPDC_NAME("ppdcString") }; class ppdcInteger //// Shared integer : public ppdcShared { public: int *value; // Integer value ppdcInteger(int *v) { value = v; } PPDC_NAME("ppdcInteger") }; class ppdcMessage //// Translation message : public ppdcShared { public: ppdcString *id, // Translation ID *string; // Translation string ppdcMessage(const char *i, const char *s); ~ppdcMessage(); PPDC_NAME("ppdcMessage") }; class ppdcCatalog //// Translation catalog : public ppdcShared { public: ppdcString *locale; // Name of locale ppdcString *filename; // Name of translation file ppdcArray *messages; // Array of translation messages ppdcCatalog(const char *l, const char *f = 0); ~ppdcCatalog(); PPDC_NAME("ppdcCatalog") void add_message(const char *id, const char *string = NULL); const char *find_message(const char *id); int load_messages(const char *f); int save_messages(const char *f); }; class ppdcAttr //// Attribute : public ppdcShared { public: ppdcString *name, // Name of attribute *selector, // Selector string *text, // Text string *value; // Value string bool localizable; // Should this attribute be localized? ppdcAttr(const char *n, const char *s, const char *t, const char *v, bool loc = false); ~ppdcAttr(); PPDC_NAME("ppdcAttr") }; class ppdcFont //// Shared Font : public ppdcShared { public: ppdcString *name, // Font name *encoding, // Font base encoding *version, // Font version *charset; // Font charset ppdcFontStatus status; // Font status (ROM or Disk) ppdcFont(const char *n, const char *e, const char *v, const char *c, ppdcFontStatus s); ~ppdcFont(); PPDC_NAME("ppdcFont") }; class ppdcChoice //// Option Choice : public ppdcShared { public: ppdcString *name, // Name of choice *text, // Human-readable text of choice *code; // PS code of choice ppdcChoice(const char *n, const char *t, const char *c); ~ppdcChoice(); PPDC_NAME("ppdcChoice") }; class ppdcOption //// Option : public ppdcShared { public: ppdcOptType type; // Type of option ppdcString *name, // Name of option *text; // Human-readable text of option ppdcOptSection section; // Section for option code float order; // Order number ppdcArray *choices; // Choices ppdcString *defchoice; // Default choice ppdcOption(ppdcOptType ot, const char *n, const char *t, ppdcOptSection s, float o); ppdcOption(ppdcOption *o); ~ppdcOption(); PPDC_NAME("ppdcOption") void add_choice(ppdcChoice *c) { choices->add(c); } ppdcChoice *find_choice(const char *n); void set_defchoice(ppdcChoice *c); }; class ppdcGroup //// Group of Options : public ppdcShared { public: ppdcString *name, // Name of option *text; // Human-readable text of option ppdcArray *options; // Options ppdcGroup(const char *n, const char *t); ppdcGroup(ppdcGroup *g); ~ppdcGroup(); PPDC_NAME("ppdcGroup") void add_option(ppdcOption *o) { options->add(o); } ppdcOption *find_option(const char *n); }; class ppdcConstraint //// Constraint : public ppdcShared { public: ppdcString *option1, // First option *choice1, // First choice *option2, // Second option *choice2; // Second choice ppdcConstraint(const char *o1, const char *c1, const char *o2, const char *c2); ~ppdcConstraint(); PPDC_NAME("ppdcConstraint") }; class ppdcFilter //// Filter Program : public ppdcShared { public: ppdcString *mime_type, // MIME type *program; // Filter program int cost; // Relative cost of filter ppdcFilter(const char *t, const char *p, int c); ~ppdcFilter(); PPDC_NAME("ppdcFilter") }; class ppdcMediaSize //// Media Size : public ppdcShared { public: ppdcString *name, // Name of size *text; // Human-readable text float width, // Width in points length, // Length in points left, // Left limit in points bottom, // Bottom limit in points right, // Right limit in points top; // Top limit in points ppdcString *size_code, // PageSize code, if any *region_code; // PageRegion code, if any ppdcMediaSize(const char *n, const char *t, float w, float l, float lm, float bm, float rm, float tm, const char *sc = 0, const char *rc = 0); ~ppdcMediaSize(); PPDC_NAME("ppdcMediaSize") }; class ppdcProfile //// Color Profile : public ppdcShared { public: ppdcString *resolution, // Resolution name *media_type; // Media type name float density, // Color profile density gamma, // Color profile gamma profile[9]; // Color profile matrix ppdcProfile(const char *r, const char *m, float d, float g, const float *p); ~ppdcProfile(); PPDC_NAME("ppdcProfile") }; class ppdcSource; class ppdcDriver //// Printer Driver Data : public ppdcShared { public: ppdcDrvType type; // Driver type ppdcArray *copyright; // Copyright strings ppdcString *manufacturer, // Manufacturer *model_name, // Name of printer model *file_name, // Output filename for PPD *pc_file_name, // 8 character PC filename for PPD *version; // Version number int model_number, // Model number for driver manual_copies, // Do manual copies? color_device, // Support color? throughput; // Throughput in pages per minute ppdcArray *attrs, // Attributes *constraints, // Constraints *filters, // Filters *fonts, // Fonts *groups, // Option groups *profiles, // Color profiles *sizes; // Fixed sizes ppdcString *default_font, // Default font *default_size; // Default size option int variable_paper_size; // Support variable sizes? ppdcString *custom_size_code; // Custom page size code, if any float left_margin, // Margins for device in points bottom_margin, right_margin, top_margin, max_width, // Maximum width (points) max_length, // Maximum length (points) min_width, // Minimum width (points) min_length; // Minimum length (points) ppdcDriver(ppdcDriver *d = 0); ~ppdcDriver(); PPDC_NAME("ppdcDriver") void add_attr(ppdcAttr *a) { attrs->add(a); } void add_constraint(ppdcConstraint *c) { constraints->add(c); } void add_copyright(const char *c) { copyright->add(new ppdcString(c)); } void add_filter(ppdcFilter *f) { filters->add(f); } void add_font(ppdcFont *f) { fonts->add(f); } void add_group(ppdcGroup *g) { groups->add(g); } void add_profile(ppdcProfile *p) { profiles->add(p); } void add_size(ppdcMediaSize *m) { sizes->add(m); } ppdcAttr *find_attr(const char *k, const char *s); ppdcGroup *find_group(const char *n); ppdcOption *find_option(const char *n); ppdcOption *find_option_group(const char *n, ppdcGroup **mg); void set_custom_size_code(const char *c); void set_default_font(ppdcFont *f); void set_default_size(ppdcMediaSize *m); void set_file_name(const char *f); void set_manufacturer(const char *m); void set_model_name(const char *m); void set_pc_file_name(const char *f); void set_version(const char *v); int write_ppd_file(cups_file_t *fp, ppdcCatalog *catalog, ppdcArray *locales, ppdcSource *src, ppdcLineEnding le); }; class ppdcVariable //// Variable Definition : public ppdcShared { public: ppdcString *name, // Name of variable *value; // Value of variable ppdcVariable(const char *n, const char *v); ~ppdcVariable(); PPDC_NAME("ppdcVariable") void set_value(const char *v); }; class ppdcFile //// File { public: bool close_on_delete; // Close file on delete? cups_file_t *fp; // File pointer const char *filename; // Filename int line; // Line in file ppdcFile(const char *f, cups_file_t *ffp = (cups_file_t *)0); ~ppdcFile(); int get(); int peek(); }; class ppdcSource //// Source File : public ppdcShared { public: static ppdcArray *includes; // Include directories static const char *driver_types[]; // Driver types ppdcString *filename; // Filename ppdcArray *base_fonts, // Base fonts *drivers, // Printer drivers *po_files, // Message catalogs *sizes, // Predefined media sizes *vars; // Defined variables int cond_state, // Cumulative conditional state *cond_current, // Current #if state cond_stack[101]; // #if state stack ppdcSource(const char *f = 0, cups_file_t *ffp = (cups_file_t *)0); ~ppdcSource(); PPDC_NAME("ppdcSource") static void add_include(const char *d); ppdcDriver *find_driver(const char *f); static char *find_include(const char *f, const char *base, char *n, int nlen); ppdcCatalog *find_po(const char *l); ppdcMediaSize *find_size(const char *s); ppdcVariable *find_variable(const char *n); ppdcAttr *get_attr(ppdcFile *fp, bool loc = false); int get_boolean(ppdcFile *fp); ppdcChoice *get_choice(ppdcFile *fp); ppdcChoice *get_color_model(ppdcFile *fp); int get_color_order(const char *co); ppdcProfile *get_color_profile(ppdcFile *fp); int get_color_space(const char *cs); ppdcConstraint *get_constraint(ppdcFile *fp); ppdcMediaSize *get_custom_size(ppdcFile *fp); void get_duplex(ppdcFile *fp, ppdcDriver *d); ppdcFilter *get_filter(ppdcFile *fp); float get_float(ppdcFile *fp); ppdcFont *get_font(ppdcFile *fp); ppdcChoice *get_generic(ppdcFile *fp, const char *keyword, const char *tattr, const char *nattr); ppdcGroup *get_group(ppdcFile *fp, ppdcDriver *d); ppdcOption *get_installable(ppdcFile *fp); int get_integer(const char *v); int get_integer(ppdcFile *fp); float get_measurement(ppdcFile *fp); ppdcOption *get_option(ppdcFile *fp, ppdcDriver *d, ppdcGroup *g); ppdcCatalog *get_po(ppdcFile *fp); ppdcChoice *get_resolution(ppdcFile *fp); ppdcProfile *get_simple_profile(ppdcFile *fp); ppdcMediaSize *get_size(ppdcFile *fp); char *get_token(ppdcFile *fp, char *buffer, int buflen); ppdcVariable *get_variable(ppdcFile *fp); int import_ppd(const char *f); int quotef(cups_file_t *fp, const char *format, ...); void read_file(const char *f, cups_file_t *ffp = (cups_file_t *)0); void scan_file(ppdcFile *fp, ppdcDriver *td = 0, bool inc = false); ppdcVariable *set_variable(const char *name, const char *value); int write_file(const char *f); }; #endif // !_PPDC_H_ cups-2.4.7/ppdc/ppdc.cxx0000644000175000017500000002546614502571342014776 0ustar zdohnalzdohnal// // PPD file compiler main entry for the CUPS PPD Compiler. // // Copyright 2007-2014 by Apple Inc. // Copyright 2002-2007 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" #include #include #include // // Local functions... // static void usage(void) _CUPS_NORETURN; // // 'main()' - Main entry for the PPD compiler. // int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { int i, j; // Looping vars ppdcCatalog *catalog; // Message catalog const char *outdir; // Output directory ppdcSource *src; // PPD source file data ppdcDriver *d; // Current driver cups_file_t *fp; // PPD file char *opt, // Current option *value, // Value in option *outname, // Output filename make_model[1024], // Make and model pcfilename[1024], // Lowercase pcfilename filename[1024]; // PPD filename int comp, // Compress do_test, // Test PPD files single_language,// Generate single-language files use_model_name, // Use ModelName for filename verbose; // Verbosity ppdcLineEnding le; // Line ending to use ppdcArray *locales; // List of locales cups_array_t *filenames; // List of generated filenames _cupsSetLocale(argv); // Scan the command-line... catalog = NULL; comp = 0; do_test = 0; le = PPDC_LFONLY; locales = NULL; outdir = "ppd"; single_language = 0; src = new ppdcSource(); use_model_name = 0; verbose = 0; filenames = cupsArrayNew((cups_array_func_t)_cups_strcasecmp, NULL); for (i = 1; i < argc; i ++) if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) switch (*opt) { case 'D' : // Define variable i ++; if (i >= argc) usage(); if ((value = strchr(argv[i], '=')) != NULL) { *value++ = '\0'; src->set_variable(argv[i], value); } else src->set_variable(argv[i], "1"); break; case 'I' : // Include directory... i ++; if (i >= argc) usage(); if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Adding include directory \"%s\"."), argv[i]); ppdcSource::add_include(argv[i]); break; case 'c' : // Message catalog... i ++; if (i >= argc) usage(); if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Loading messages from \"%s\"."), argv[i]); if (!catalog) catalog = new ppdcCatalog("en"); if (catalog->load_messages(argv[i])) { _cupsLangPrintf(stderr, _("ppdc: Unable to load localization file " "\"%s\" - %s"), argv[i], strerror(errno)); return (1); } break; case 'd' : // Output directory... i ++; if (i >= argc) usage(); if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Writing PPD files to directory " "\"%s\"."), argv[i]); outdir = argv[i]; break; case 'l' : // Language(s)... i ++; if (i >= argc) usage(); if (strchr(argv[i], ',')) { // Comma-delimited list of languages... char temp[1024], // Copy of language list *start, // Start of current locale name *end; // End of current locale name locales = new ppdcArray(); strlcpy(temp, argv[i], sizeof(temp)); for (start = temp; *start; start = end) { if ((end = strchr(start, ',')) != NULL) *end++ = '\0'; else end = start + strlen(start); if (end > start) locales->add(new ppdcString(start)); } } else { single_language = 1; if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Loading messages for locale " "\"%s\"."), argv[i]); if (catalog) catalog->release(); catalog = new ppdcCatalog(argv[i]); if (catalog->messages->count == 0 && strcmp(argv[i], "en")) { _cupsLangPrintf(stderr, _("ppdc: Unable to find localization for " "\"%s\" - %s"), argv[i], strerror(errno)); return (1); } } break; case 'm' : // Use ModelName for filename use_model_name = 1; break; case 't' : // Test PPDs instead of generating them do_test = 1; break; case 'v' : // Be verbose... verbose ++; break; case 'z' : // Compress files... comp = 1; break; case '-' : // --option if (!strcmp(opt, "-lf")) { le = PPDC_LFONLY; opt += strlen(opt) - 1; break; } else if (!strcmp(opt, "-cr")) { le = PPDC_CRONLY; opt += strlen(opt) - 1; break; } else if (!strcmp(opt, "-crlf")) { le = PPDC_CRLF; opt += strlen(opt) - 1; break; } default : // Unknown usage(); } } else { // Open and load the driver info file... if (verbose > 1) _cupsLangPrintf(stdout, _("ppdc: Loading driver information file \"%s\"."), argv[i]); src->read_file(argv[i]); } if (src->drivers->count > 0) { // Create the output directory... if (mkdir(outdir, 0777)) { if (errno != EEXIST) { _cupsLangPrintf(stderr, _("ppdc: Unable to create output directory %s: %s"), outdir, strerror(errno)); return (1); } } // Write PPD files... for (d = (ppdcDriver *)src->drivers->first(); d; d = (ppdcDriver *)src->drivers->next()) { if (do_test) { // Test the PPD file for this driver... int pid, // Process ID fds[2]; // Pipe file descriptors if (pipe(fds)) { _cupsLangPrintf(stderr, _("ppdc: Unable to create output pipes: %s"), strerror(errno)); return (1); } if ((pid = fork()) == 0) { // Child process comes here... dup2(fds[0], 0); close(fds[0]); close(fds[1]); execlp("cupstestppd", "cupstestppd", "-", (char *)0); _cupsLangPrintf(stderr, _("ppdc: Unable to execute cupstestppd: %s"), strerror(errno)); return (errno); } else if (pid < 0) { _cupsLangPrintf(stderr, _("ppdc: Unable to execute cupstestppd: %s"), strerror(errno)); return (errno); } close(fds[0]); fp = cupsFileOpenFd(fds[1], "w"); } else { // Write the PPD file for this driver... if (use_model_name) { if (!_cups_strncasecmp(d->model_name->value, d->manufacturer->value, strlen(d->manufacturer->value))) { // Model name already starts with the manufacturer... outname = d->model_name->value; } else { // Add manufacturer to the front of the model name... snprintf(make_model, sizeof(make_model), "%s %s", d->manufacturer->value, d->model_name->value); outname = make_model; } } else if (d->file_name) outname = d->file_name->value; else outname = d->pc_file_name->value; if (strstr(outname, ".PPD")) { // Convert PCFileName to lowercase... for (j = 0; outname[j] && j < (int)(sizeof(pcfilename) - 1); j ++) pcfilename[j] = (char)tolower(outname[j] & 255); pcfilename[j] = '\0'; } else { // Leave PCFileName as-is... strlcpy(pcfilename, outname, sizeof(pcfilename)); } // Open the PPD file for writing... if (comp) snprintf(filename, sizeof(filename), "%s/%s.gz", outdir, pcfilename); else snprintf(filename, sizeof(filename), "%s/%s", outdir, pcfilename); if (cupsArrayFind(filenames, filename)) _cupsLangPrintf(stderr, _("ppdc: Warning - overlapping filename \"%s\"."), filename); else cupsArrayAdd(filenames, strdup(filename)); fp = cupsFileOpen(filename, comp ? "w9" : "w"); if (!fp) { _cupsLangPrintf(stderr, _("ppdc: Unable to create PPD file \"%s\" - %s."), filename, strerror(errno)); return (1); } if (verbose) _cupsLangPrintf(stdout, _("ppdc: Writing %s."), filename); } /* * Write the PPD file... */ ppdcArray *templocales = locales; if (!templocales && !single_language) { templocales = new ppdcArray(); for (ppdcCatalog *tempcatalog = (ppdcCatalog *)src->po_files->first(); tempcatalog; tempcatalog = (ppdcCatalog *)src->po_files->next()) { tempcatalog->locale->retain(); templocales->add(tempcatalog->locale); } } if (d->write_ppd_file(fp, catalog, templocales, src, le)) { cupsFileClose(fp); return (1); } if (templocales && templocales != locales) templocales->release(); cupsFileClose(fp); } } else usage(); // Delete the printer driver information... src->release(); // Message catalog... if (catalog) catalog->release(); // Return with no errors. return (0); } // // 'usage()' - Show usage and exit. // static void usage(void) { _cupsLangPuts(stdout, _("Usage: ppdc [options] filename.drv [ ... " "filenameN.drv ]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _(" -D name=value Set named variable to " "value.")); _cupsLangPuts(stdout, _(" -I include-dir Add include directory to " "search path.")); _cupsLangPuts(stdout, _(" -c catalog.po Load the specified " "message catalog.")); _cupsLangPuts(stdout, _(" -d output-dir Specify the output " "directory.")); _cupsLangPuts(stdout, _(" -l lang[,lang,...] Specify the output " "language(s) (locale).")); _cupsLangPuts(stdout, _(" -m Use the ModelName value " "as the filename.")); _cupsLangPuts(stdout, _(" -t Test PPDs instead of " "generating them.")); _cupsLangPuts(stdout, _(" -v Be verbose.")); _cupsLangPuts(stdout, _(" -z Compress PPD files using " "GNU zip.")); _cupsLangPuts(stdout, _(" --cr End lines with CR (Mac " "OS 9).")); _cupsLangPuts(stdout, _(" --crlf End lines with CR + LF " "(Windows).")); _cupsLangPuts(stdout, _(" --lf End lines with LF " "(UNIX/Linux/macOS).")); exit(1); } cups-2.4.7/ppdc/ppdc-variable.cxx0000644000175000017500000000161314502571342016545 0ustar zdohnalzdohnal// // Variable class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcVariable::ppdcVariable()' - Create a variable. // ppdcVariable::ppdcVariable(const char *n, // I - Name of variable const char *v) // I - Value of variable : ppdcShared() { PPDC_NEW; name = new ppdcString(n); value = new ppdcString(v); } // // 'ppdcVariable::~ppdcVariable()' - Destroy a variable. // ppdcVariable::~ppdcVariable() { PPDC_DELETE; name->release(); value->release(); } // // 'ppdcVariable::set_value()' - Set the value of a variable. // void ppdcVariable::set_value(const char *v) { value->release(); value = new ppdcString(v); } cups-2.4.7/ppdc/ppdc-string.cxx0000644000175000017500000000135214502571342016266 0ustar zdohnalzdohnal// // Shared string class for the CUPS PPD Compiler. // // Copyright 2007-2012 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcString::ppdcString()' - Create a shared string. // ppdcString::ppdcString(const char *v) // I - String : ppdcShared() { PPDC_NEWVAL(v); if (v) { size_t vlen = strlen(v); value = new char[vlen + 1]; memcpy(value, v, vlen + 1); } else value = 0; } // // 'ppdcString::~ppdcString()' - Destroy a shared string. // ppdcString::~ppdcString() { PPDC_DELETEVAL(value); if (value) delete[] value; } cups-2.4.7/ppdc/ppdc-source.cxx0000644000175000017500000026203614502571342016270 0ustar zdohnalzdohnal// // Source class for the CUPS PPD Compiler. // // Copyright 2007-2018 by Apple Inc. // Copyright 2002-2007 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // // Include necessary headers... // #include "ppdc-private.h" #include #include #include #include #include "data/epson.h" #include "data/hp.h" #include "data/label.h" #ifndef _WIN32 # include #endif // !_WIN32 // // Class globals... // ppdcArray *ppdcSource::includes = 0; const char *ppdcSource::driver_types[] = { "custom", "ps", "escp", "pcl", "label", "epson", "hp" }; // // 'ppdcSource::ppdcSource()' - Load a driver source file. // ppdcSource::ppdcSource(const char *f, // I - File to read cups_file_t *ffp)// I - File pointer to use : ppdcShared() { PPDC_NEW; filename = new ppdcString(f); base_fonts = new ppdcArray(); drivers = new ppdcArray(); po_files = new ppdcArray(); sizes = new ppdcArray(); vars = new ppdcArray(); cond_state = PPDC_COND_NORMAL; cond_current = cond_stack; cond_stack[0] = PPDC_COND_NORMAL; // Add standard #define variables... #define MAKE_STRING(x) #x vars->add(new ppdcVariable("CUPS_VERSION", MAKE_STRING(CUPS_VERSION))); vars->add(new ppdcVariable("CUPS_VERSION_MAJOR", MAKE_STRING(CUPS_VERSION_MAJOR))); vars->add(new ppdcVariable("CUPS_VERSION_MINOR", MAKE_STRING(CUPS_VERSION_MINOR))); vars->add(new ppdcVariable("CUPS_VERSION_PATCH", MAKE_STRING(CUPS_VERSION_PATCH))); #ifdef _WIN32 vars->add(new ppdcVariable("PLATFORM_NAME", "Windows")); vars->add(new ppdcVariable("PLATFORM_ARCH", "X86")); #else struct utsname name; // uname information if (!uname(&name)) { vars->add(new ppdcVariable("PLATFORM_NAME", name.sysname)); vars->add(new ppdcVariable("PLATFORM_ARCH", name.machine)); } else { vars->add(new ppdcVariable("PLATFORM_NAME", "unknown")); vars->add(new ppdcVariable("PLATFORM_ARCH", "unknown")); } #endif // _WIN32 if (f) read_file(f, ffp); } // // 'ppdcSource::~ppdcSource()' - Free a driver source file. // ppdcSource::~ppdcSource() { PPDC_DELETE; filename->release(); base_fonts->release(); drivers->release(); po_files->release(); sizes->release(); vars->release(); } // // 'ppdcSource::add_include()' - Add an include directory. // void ppdcSource::add_include(const char *d) // I - Include directory { if (!d) return; if (!includes) includes = new ppdcArray(); includes->add(new ppdcString(d)); } // // 'ppdcSource::find_driver()' - Find a driver. // ppdcDriver * // O - Driver ppdcSource::find_driver(const char *f) // I - Driver file name { ppdcDriver *d; // Current driver for (d = (ppdcDriver *)drivers->first(); d; d = (ppdcDriver *)drivers->next()) if (!_cups_strcasecmp(f, d->pc_file_name->value)) return (d); return (NULL); } // // 'ppdcSource::find_include()' - Find an include file. // char * // O - Found path or NULL ppdcSource::find_include( const char *f, // I - Include filename const char *base, // I - Current directory char *n, // I - Path buffer int nlen) // I - Path buffer length { ppdcString *dir; // Include directory char temp[1024], // Temporary path *ptr; // Pointer to end of path // Range check input... if (!f || !*f || !n || nlen < 2) return (0); // Check the first character to see if we have or "name"... if (*f == '<') { // Remove the surrounding <> from the name... strlcpy(temp, f + 1, sizeof(temp)); ptr = temp + strlen(temp) - 1; if (*ptr != '>') { _cupsLangPrintf(stderr, _("ppdc: Invalid #include/#po filename \"%s\"."), n); return (0); } *ptr = '\0'; f = temp; } else { // Check for the local file relative to the current directory... if (base && *base && f[0] != '/') snprintf(n, (size_t)nlen, "%s/%s", base, f); else strlcpy(n, f, (size_t)nlen); if (!access(n, 0)) return (n); else if (*f == '/') { // Absolute path that doesn't exist... return (0); } } // Search the include directories, if any... if (includes) { for (dir = (ppdcString *)includes->first(); dir; dir = (ppdcString *)includes->next()) { snprintf(n, (size_t)nlen, "%s/%s", dir->value, f); if (!access(n, 0)) return (n); } } // Search the standard include directories... _cups_globals_t *cg = _cupsGlobals(); // Global data snprintf(n, (size_t)nlen, "%s/ppdc/%s", cg->cups_datadir, f); if (!access(n, 0)) return (n); snprintf(n, (size_t)nlen, "%s/po/%s", cg->cups_datadir, f); if (!access(n, 0)) return (n); else return (0); } // // 'ppdcSource::find_po()' - Find a message catalog for the given locale. // ppdcCatalog * // O - Message catalog or NULL ppdcSource::find_po(const char *l) // I - Locale name { ppdcCatalog *cat; // Current message catalog for (cat = (ppdcCatalog *)po_files->first(); cat; cat = (ppdcCatalog *)po_files->next()) if (!_cups_strcasecmp(l, cat->locale->value)) return (cat); return (NULL); } // // 'ppdcSource::find_size()' - Find a media size. // ppdcMediaSize * // O - Size ppdcSource::find_size(const char *s) // I - Size name { ppdcMediaSize *m; // Current media size for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) if (!_cups_strcasecmp(s, m->name->value)) return (m); return (NULL); } // // 'ppdcSource::find_variable()' - Find a variable. // ppdcVariable * // O - Variable ppdcSource::find_variable(const char *n)// I - Variable name { ppdcVariable *v; // Current variable for (v = (ppdcVariable *)vars->first(); v; v = (ppdcVariable *)vars->next()) if (!_cups_strcasecmp(n, v->name->value)) return (v); return (NULL); } // // 'ppdcSource::get_attr()' - Get an attribute. // ppdcAttr * // O - Attribute ppdcSource::get_attr(ppdcFile *fp, // I - File to read bool loc) // I - Localize this attribute? { char name[1024], // Name string selector[1024], // Selector string *text, // Text string value[1024]; // Value string // Get the attribute parameters: // // Attribute name selector value if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after %s on line %d of %s."), loc ? "LocAttribute" : "Attribute", fp->line, fp->filename); return (0); } if (!get_token(fp, selector, sizeof(selector))) { _cupsLangPrintf(stderr, _("ppdc: Expected selector after %s on line %d of %s."), loc ? "LocAttribute" : "Attribute", fp->line, fp->filename); return (0); } if ((text = strchr(selector, '/')) != NULL) *text++ = '\0'; if (!get_token(fp, value, sizeof(value))) { _cupsLangPrintf(stderr, _("ppdc: Expected value after %s on line %d of %s."), loc ? "LocAttribute" : "Attribute", fp->line, fp->filename); return (0); } return (new ppdcAttr(name, selector, text, value, loc)); } // // 'ppdcSource::get_boolean()' - Get a boolean value. // int // O - Boolean value ppdcSource::get_boolean(ppdcFile *fp) // I - File to read { char buffer[256]; // String buffer if (!get_token(fp, buffer, sizeof(buffer))) { _cupsLangPrintf(stderr, _("ppdc: Expected boolean value on line %d of %s."), fp->line, fp->filename); return (-1); } if (!_cups_strcasecmp(buffer, "on") || !_cups_strcasecmp(buffer, "yes") || !_cups_strcasecmp(buffer, "true")) return (1); else if (!_cups_strcasecmp(buffer, "off") || !_cups_strcasecmp(buffer, "no") || !_cups_strcasecmp(buffer, "false")) return (0); else { _cupsLangPrintf(stderr, _("ppdc: Bad boolean value (%s) on line %d of %s."), buffer, fp->line, fp->filename); return (-1); } } // // 'ppdcSource::get_choice()' - Get a choice. // ppdcChoice * // O - Choice data ppdcSource::get_choice(ppdcFile *fp) // I - File to read { char name[1024], // Name *text, // Text code[10240]; // Code // Read a choice from the file: // // Choice name/text code if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected choice name/text on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if (!get_token(fp, code, sizeof(code))) { _cupsLangPrintf(stderr, _("ppdc: Expected choice code on line %d of %s."), fp->line, fp->filename); return (NULL); } // Return the new choice return (new ppdcChoice(name, text, code)); } // // 'ppdcSource::get_color_model()' - Get an old-style color model option. // ppdcChoice * // O - Choice data ppdcSource::get_color_model(ppdcFile *fp) // I - File to read { char name[1024], // Option name *text, // Text option temp[256]; // Temporary string int color_space, // Colorspace color_order, // Color order compression; // Compression mode // Get the ColorModel parameters: // // ColorModel name/text colorspace colororder compression if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name/text combination for ColorModel on " "line %d of %s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected colorspace for ColorModel on line %d of " "%s."), fp->line, fp->filename); return (NULL); } if ((color_space = get_color_space(temp)) < 0) color_space = get_integer(temp); if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected color order for ColorModel on line %d of " "%s."), fp->line, fp->filename); return (NULL); } if ((color_order = get_color_order(temp)) < 0) color_order = get_integer(temp); if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected compression for ColorModel on line %d of " "%s."), fp->line, fp->filename); return (NULL); } compression = get_integer(temp); snprintf(temp, sizeof(temp), "<>" "setpagedevice", color_space, color_order, compression); return (new ppdcChoice(name, text, temp)); } // // 'ppdcSource::get_color_order()' - Get an old-style color order value. // int // O - Color order value ppdcSource::get_color_order( const char *co) // I - Color order string { if (!_cups_strcasecmp(co, "chunked") || !_cups_strcasecmp(co, "chunky")) return (CUPS_ORDER_CHUNKED); else if (!_cups_strcasecmp(co, "banded")) return (CUPS_ORDER_BANDED); else if (!_cups_strcasecmp(co, "planar")) return (CUPS_ORDER_PLANAR); else return (-1); } // // 'ppdcSource::get_color_profile()' - Get a color profile definition. // ppdcProfile * // O - Color profile ppdcSource::get_color_profile( ppdcFile *fp) // I - File to read { char resolution[1024], // Resolution/media type *media_type; // Media type int i; // Looping var float g, // Gamma value d, // Density value m[9]; // Transform matrix // Get the ColorProfile parameters: // // ColorProfile resolution/mediatype gamma density m00 m01 m02 ... m22 if (!get_token(fp, resolution, sizeof(resolution))) { _cupsLangPrintf(stderr, _("ppdc: Expected resolution/mediatype following " "ColorProfile on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((media_type = strchr(resolution, '/')) != NULL) *media_type++ = '\0'; else media_type = resolution; g = get_float(fp); d = get_float(fp); for (i = 0; i < 9; i ++) m[i] = get_float(fp); return (new ppdcProfile(resolution, media_type, d, g, m)); } // // 'ppdcSource::get_color_space()' - Get an old-style colorspace value. // int // O - Colorspace value ppdcSource::get_color_space( const char *cs) // I - Colorspace string { if (!_cups_strcasecmp(cs, "w")) return (CUPS_CSPACE_W); else if (!_cups_strcasecmp(cs, "rgb")) return (CUPS_CSPACE_RGB); else if (!_cups_strcasecmp(cs, "rgba")) return (CUPS_CSPACE_RGBA); else if (!_cups_strcasecmp(cs, "k")) return (CUPS_CSPACE_K); else if (!_cups_strcasecmp(cs, "cmy")) return (CUPS_CSPACE_CMY); else if (!_cups_strcasecmp(cs, "ymc")) return (CUPS_CSPACE_YMC); else if (!_cups_strcasecmp(cs, "cmyk")) return (CUPS_CSPACE_CMYK); else if (!_cups_strcasecmp(cs, "ymck")) return (CUPS_CSPACE_YMCK); else if (!_cups_strcasecmp(cs, "kcmy")) return (CUPS_CSPACE_KCMY); else if (!_cups_strcasecmp(cs, "kcmycm")) return (CUPS_CSPACE_KCMYcm); else if (!_cups_strcasecmp(cs, "gmck")) return (CUPS_CSPACE_GMCK); else if (!_cups_strcasecmp(cs, "gmcs")) return (CUPS_CSPACE_GMCS); else if (!_cups_strcasecmp(cs, "white")) return (CUPS_CSPACE_WHITE); else if (!_cups_strcasecmp(cs, "gold")) return (CUPS_CSPACE_GOLD); else if (!_cups_strcasecmp(cs, "silver")) return (CUPS_CSPACE_SILVER); else if (!_cups_strcasecmp(cs, "CIEXYZ")) return (CUPS_CSPACE_CIEXYZ); else if (!_cups_strcasecmp(cs, "CIELab")) return (CUPS_CSPACE_CIELab); else if (!_cups_strcasecmp(cs, "RGBW")) return (CUPS_CSPACE_RGBW); else if (!_cups_strcasecmp(cs, "ICC1")) return (CUPS_CSPACE_ICC1); else if (!_cups_strcasecmp(cs, "ICC2")) return (CUPS_CSPACE_ICC2); else if (!_cups_strcasecmp(cs, "ICC3")) return (CUPS_CSPACE_ICC3); else if (!_cups_strcasecmp(cs, "ICC4")) return (CUPS_CSPACE_ICC4); else if (!_cups_strcasecmp(cs, "ICC5")) return (CUPS_CSPACE_ICC5); else if (!_cups_strcasecmp(cs, "ICC6")) return (CUPS_CSPACE_ICC6); else if (!_cups_strcasecmp(cs, "ICC7")) return (CUPS_CSPACE_ICC7); else if (!_cups_strcasecmp(cs, "ICC8")) return (CUPS_CSPACE_ICC8); else if (!_cups_strcasecmp(cs, "ICC9")) return (CUPS_CSPACE_ICC9); else if (!_cups_strcasecmp(cs, "ICCA")) return (CUPS_CSPACE_ICCA); else if (!_cups_strcasecmp(cs, "ICCB")) return (CUPS_CSPACE_ICCB); else if (!_cups_strcasecmp(cs, "ICCC")) return (CUPS_CSPACE_ICCC); else if (!_cups_strcasecmp(cs, "ICCD")) return (CUPS_CSPACE_ICCD); else if (!_cups_strcasecmp(cs, "ICCE")) return (CUPS_CSPACE_ICCE); else if (!_cups_strcasecmp(cs, "ICCF")) return (CUPS_CSPACE_ICCF); else return (-1); } // // 'ppdcSource::get_constraint()' - Get a constraint. // ppdcConstraint * // O - Constraint ppdcSource::get_constraint(ppdcFile *fp)// I - File to read { char temp[1024], // One string to rule them all *ptr, // Pointer into string *option1, // Constraint option 1 *choice1, // Constraint choice 1 *option2, // Constraint option 2 *choice2; // Constraint choice 2 // Read the UIConstaints parameter in one of the following forms: // // UIConstraints "*Option1 *Option2" // UIConstraints "*Option1 Choice1 *Option2" // UIConstraints "*Option1 *Option2 Choice2" // UIConstraints "*Option1 Choice1 *Option2 Choice2" if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected constraints string for UIConstraints on " "line %d of %s."), fp->line, fp->filename); return (NULL); } for (ptr = temp; isspace(*ptr); ptr ++); if (*ptr != '*') { _cupsLangPrintf(stderr, _("ppdc: Option constraint must *name on line %d of %s."), fp->line, fp->filename); return (NULL); } option1 = ptr; for (; *ptr && !isspace(*ptr); ptr ++); for (; isspace(*ptr); *ptr++ = '\0'); if (*ptr != '*') { choice1 = ptr; for (; *ptr && !isspace(*ptr); ptr ++); for (; isspace(*ptr); *ptr++ = '\0'); } else choice1 = NULL; if (*ptr != '*') { _cupsLangPrintf(stderr, _("ppdc: Expected two option names on line %d of %s."), fp->line, fp->filename); return (NULL); } option2 = ptr; for (; *ptr && !isspace(*ptr); ptr ++); for (; isspace(*ptr); *ptr++ = '\0'); if (*ptr) choice2 = ptr; else choice2 = NULL; return (new ppdcConstraint(option1, choice1, option2, choice2)); } // // 'ppdcSource::get_custom_size()' - Get a custom media size definition from a file. // ppdcMediaSize * // O - Media size ppdcSource::get_custom_size(ppdcFile *fp) // I - File to read { char name[1024], // Name *text, // Text size_code[10240], // PageSize code region_code[10240]; // PageRegion float width, // Width length, // Length left, // Left margin bottom, // Bottom margin right, // Right margin top; // Top margin // Get the name, text, width, length, margins, and code: // // CustomMedia name/text width length left bottom right top size-code region-code if (!get_token(fp, name, sizeof(name))) return (NULL); if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if ((width = get_measurement(fp)) < 0.0f) return (NULL); if ((length = get_measurement(fp)) < 0.0f) return (NULL); if ((left = get_measurement(fp)) < 0.0f) return (NULL); if ((bottom = get_measurement(fp)) < 0.0f) return (NULL); if ((right = get_measurement(fp)) < 0.0f) return (NULL); if ((top = get_measurement(fp)) < 0.0f) return (NULL); if (!get_token(fp, size_code, sizeof(size_code))) return (NULL); if (!get_token(fp, region_code, sizeof(region_code))) return (NULL); // Return the new media size... return (new ppdcMediaSize(name, text, width, length, left, bottom, right, top, size_code, region_code)); } // // 'ppdcSource::get_duplex()' - Get a duplex option. // void ppdcSource::get_duplex(ppdcFile *fp, // I - File to read from ppdcDriver *d) // I - Current driver { char temp[256]; // Duplex keyword ppdcAttr *attr; // cupsFlipDuplex attribute ppdcGroup *g; // Current group ppdcOption *o; // Duplex option // Duplex {boolean|none|normal|flip} if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected duplex type after Duplex on line %d of " "%s."), fp->line, fp->filename); return; } if (cond_state) return; if (!_cups_strcasecmp(temp, "none") || !_cups_strcasecmp(temp, "false") || !_cups_strcasecmp(temp, "no") || !_cups_strcasecmp(temp, "off")) { g = d->find_group("General"); if ((o = g->find_option("Duplex")) != NULL) g->options->remove(o); for (attr = (ppdcAttr *)d->attrs->first(); attr; attr = (ppdcAttr *)d->attrs->next()) if (!strcmp(attr->name->value, "cupsFlipDuplex")) { d->attrs->remove(attr); break; } } else if (!_cups_strcasecmp(temp, "normal") || !_cups_strcasecmp(temp, "true") || !_cups_strcasecmp(temp, "yes") || !_cups_strcasecmp(temp, "on") || !_cups_strcasecmp(temp, "flip") || !_cups_strcasecmp(temp, "rotated") || !_cups_strcasecmp(temp, "manualtumble")) { g = d->find_group("General"); o = g->find_option("Duplex"); if (!o) { o = new ppdcOption(PPDC_PICKONE, "Duplex", "2-Sided Printing", !_cups_strcasecmp(temp, "flip") ? PPDC_SECTION_PAGE : PPDC_SECTION_ANY, 10.0f); o->add_choice(new ppdcChoice("None", "Off (1-Sided)", "<>setpagedevice")); o->add_choice(new ppdcChoice("DuplexNoTumble", "Long-Edge (Portrait)", "<>setpagedevice")); o->add_choice(new ppdcChoice("DuplexTumble", "Short-Edge (Landscape)", "<>setpagedevice")); g->add_option(o); } for (attr = (ppdcAttr *)d->attrs->first(); attr; attr = (ppdcAttr *)d->attrs->next()) if (!strcmp(attr->name->value, "cupsFlipDuplex")) { if (_cups_strcasecmp(temp, "flip")) d->attrs->remove(attr); break; } if (!_cups_strcasecmp(temp, "flip") && !attr) d->add_attr(new ppdcAttr("cupsFlipDuplex", NULL, NULL, "true")); for (attr = (ppdcAttr *)d->attrs->first(); attr; attr = (ppdcAttr *)d->attrs->next()) if (!strcmp(attr->name->value, "cupsBackSide")) { d->attrs->remove(attr); break; } if (!_cups_strcasecmp(temp, "flip")) d->add_attr(new ppdcAttr("cupsBackSide", NULL, NULL, "Flipped")); else if (!_cups_strcasecmp(temp, "rotated")) d->add_attr(new ppdcAttr("cupsBackSide", NULL, NULL, "Rotated")); else if (!_cups_strcasecmp(temp, "manualtumble")) d->add_attr(new ppdcAttr("cupsBackSide", NULL, NULL, "ManualTumble")); else d->add_attr(new ppdcAttr("cupsBackSide", NULL, NULL, "Normal")); } else _cupsLangPrintf(stderr, _("ppdc: Unknown duplex type \"%s\" on line %d of %s."), temp, fp->line, fp->filename); } // // 'ppdcSource::get_filter()' - Get a filter. // ppdcFilter * // O - Filter ppdcSource::get_filter(ppdcFile *fp) // I - File to read { char type[1024], // MIME type program[1024], // Filter program *ptr; // Pointer into MIME type int cost; // Relative cost // Read filter parameters in one of the following formats: // // Filter "type cost program" // Filter type cost program if (!get_token(fp, type, sizeof(type))) { _cupsLangPrintf(stderr, _("ppdc: Expected a filter definition on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((ptr = strchr(type, ' ')) != NULL) { // Old-style filter definition in one string... *ptr++ = '\0'; cost = strtol(ptr, &ptr, 10); while (isspace(*ptr)) ptr ++; strlcpy(program, ptr, sizeof(program)); } else { cost = get_integer(fp); if (!get_token(fp, program, sizeof(program))) { _cupsLangPrintf(stderr, _("ppdc: Expected a program name on line %d of %s."), fp->line, fp->filename); return (NULL); } } if (!type[0]) { _cupsLangPrintf(stderr, _("ppdc: Invalid empty MIME type for filter on line %d of " "%s."), fp->line, fp->filename); return (NULL); } if (cost < 0 || cost > 200) { _cupsLangPrintf(stderr, _("ppdc: Invalid cost for filter on line %d of %s."), fp->line, fp->filename); return (NULL); } if (!program[0]) { _cupsLangPrintf(stderr, _("ppdc: Invalid empty program name for filter on line %d " "of %s."), fp->line, fp->filename); return (NULL); } return (new ppdcFilter(type, program, cost)); } // // 'ppdcSource::get_float()' - Get a single floating-point number. // float // O - Number ppdcSource::get_float(ppdcFile *fp) // I - File to read { char temp[256], // String buffer *ptr; // Pointer into buffer float val; // Floating point value // Get the number from the file and range-check... if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected real number on line %d of %s."), fp->line, fp->filename); return (-1.0f); } val = (float)strtod(temp, &ptr); if (*ptr) { _cupsLangPrintf(stderr, _("ppdc: Unknown trailing characters in real number \"%s\" " "on line %d of %s."), temp, fp->line, fp->filename); return (-1.0f); } else return (val); } // // 'ppdcSource::get_font()' - Get a font definition. // ppdcFont * // O - Font data ppdcSource::get_font(ppdcFile *fp) // I - File to read { char name[256], // Font name encoding[256], // Font encoding version[256], // Font version charset[256], // Font charset temp[256]; // Font status string ppdcFontStatus status; // Font status enumeration // Read font parameters as follows: // // Font * // Font name encoding version charset status // %font name encoding version charset status // // "Name" is the PostScript font name. // // "Encoding" is the default encoding of the font: Standard, ISOLatin1, // Special, Expert, ExpertSubset, etc. // // "Version" is the version number string. // // "Charset" specifies the characters that are included in the font: // Standard, Special, Expert, Adobe-Identity, etc. // // "Status" is the keyword ROM or Disk. if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after Font on line %d of %s."), fp->line, fp->filename); return (0); } if (!strcmp(name, "*")) { // Include all base fonts... encoding[0] = '\0'; version[0] = '\0'; charset[0] = '\0'; status = PPDC_FONT_ROM; } else { // Load a full font definition... if (!get_token(fp, encoding, sizeof(encoding))) { _cupsLangPrintf(stderr, _("ppdc: Expected encoding after Font on line %d of " "%s."), fp->line, fp->filename); return (0); } if (!get_token(fp, version, sizeof(version))) { _cupsLangPrintf(stderr, _("ppdc: Expected version after Font on line %d of " "%s."), fp->line, fp->filename); return (0); } if (!get_token(fp, charset, sizeof(charset))) { _cupsLangPrintf(stderr, _("ppdc: Expected charset after Font on line %d of " "%s."), fp->line, fp->filename); return (0); } if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected status after Font on line %d of %s."), fp->line, fp->filename); return (0); } if (!_cups_strcasecmp(temp, "ROM")) status = PPDC_FONT_ROM; else if (!_cups_strcasecmp(temp, "Disk")) status = PPDC_FONT_DISK; else { _cupsLangPrintf(stderr, _("ppdc: Bad status keyword %s on line %d of %s."), temp, fp->line, fp->filename); return (0); } } // printf("Font %s %s %s %s %s\n", name, encoding, version, charset, temp); return (new ppdcFont(name, encoding, version, charset, status)); } // // 'ppdcSource::get_generic()' - Get a generic old-style option. // ppdcChoice * // O - Choice data ppdcSource::get_generic(ppdcFile *fp, // I - File to read const char *keyword, // I - Keyword name const char *tattr, // I - Text attribute const char *nattr) // I - Numeric attribute { char name[1024], // Name *text, // Text command[256]; // Command string int val; // Numeric value // Read one of the following parameters: // // Foo name/text // Foo integer name/text if (nattr) val = get_integer(fp); else val = 0; if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name/text after %s on line %d of %s."), keyword, fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if (nattr) { if (tattr) snprintf(command, sizeof(command), "<>setpagedevice", tattr, name, nattr, val); else snprintf(command, sizeof(command), "<>setpagedevice", nattr, val); } else snprintf(command, sizeof(command), "<>setpagedevice", tattr, name); return (new ppdcChoice(name, text, command)); } // // 'ppdcSource::get_group()' - Get an option group. // ppdcGroup * // O - Group ppdcSource::get_group(ppdcFile *fp, // I - File to read ppdcDriver *d) // I - Printer driver { char name[1024], // UI name *text; // UI text ppdcGroup *g; // Group // Read the Group parameters: // // Group name/text if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected group name/text on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; // See if the group already exists... if ((g = d->find_group(name)) == NULL) { // Nope, add a new one... g = new ppdcGroup(name, text); } return (g); } // // 'ppdcSource::get_installable()' - Get an installable option. // ppdcOption * // O - Option ppdcSource::get_installable(ppdcFile *fp) // I - File to read { char name[1024], // Name for installable option *text; // Text for installable option ppdcOption *o; // Option // Read the parameter for an installable option: // // Installable name/text if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name/text after Installable on line %d " "of %s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; // Create the option... o = new ppdcOption(PPDC_BOOLEAN, name, text, PPDC_SECTION_ANY, 10.0f); // Add the false and true choices... o->add_choice(new ppdcChoice("False", "Not Installed", "")); o->add_choice(new ppdcChoice("True", "Installed", "")); return (o); } // // 'ppdcSource::get_integer()' - Get an integer value from a string. // #define PPDC_XX -1 // Bad #define PPDC_EQ 0 // == #define PPDC_NE 1 // != #define PPDC_LT 2 // < #define PPDC_LE 3 // <= #define PPDC_GT 4 // > #define PPDC_GE 5 // >= int // O - Integer value ppdcSource::get_integer(const char *v) // I - Value string { long val; // Value long temp, // Temporary value temp2; // Second temporary value char *newv, // New value string pointer ch; // Temporary character ppdcVariable *var; // #define variable int compop; // Comparison operator // Parse the value string... if (!v) return (-1); if (isdigit(*v & 255) || *v == '-' || *v == '+') { // Return a simple integer value val = strtol(v, (char **)&v, 0); if (*v || val == LONG_MIN) return (-1); else return ((int)val); } else if (*v == '(') { // Evaluate and expression in any of the following formats: // // (number number ... number) Bitwise OR of all numbers // (NAME == value) 1 if equal, 0 otherwise // (NAME != value) 1 if not equal, 0 otherwise // (NAME < value) 1 if less than, 0 otherwise // (NAME <= value) 1 if less than or equal, 0 otherwise // (NAME > value) 1 if greater than, 0 otherwise // (NAME >= value) 1 if greater than or equal, 0 otherwise v ++; val = 0; while (*v && *v != ')') { // Skip leading whitespace... while (*v && isspace(*v & 255)) v ++; if (!*v || *v == ')') break; if (isdigit(*v & 255) || *v == '-' || *v == '+') { // Bitwise OR a number... temp = strtol(v, &newv, 0); if (!*newv || newv == v || !(isspace(*newv) || *newv == ')') || temp == LONG_MIN) return (-1); } else { // NAME logicop value for (newv = (char *)v + 1; *newv && (isalnum(*newv & 255) || *newv == '_'); newv ++) /* do nothing */; ch = *newv; *newv = '\0'; if ((var = find_variable(v)) != NULL) { if (!var->value || !var->value->value || !var->value->value[0]) temp = 0; else if (isdigit(var->value->value[0] & 255) || var->value->value[0] == '-' || var->value->value[0] == '+') temp = strtol(var->value->value, NULL, 0); else temp = 1; } else temp = 0; *newv = ch; while (isspace(*newv & 255)) newv ++; if (!strncmp(newv, "==", 2)) { compop = PPDC_EQ; newv += 2; } else if (!strncmp(newv, "!=", 2)) { compop = PPDC_NE; newv += 2; } else if (!strncmp(newv, "<=", 2)) { compop = PPDC_LE; newv += 2; } else if (*newv == '<') { compop = PPDC_LT; newv ++; } else if (!strncmp(newv, ">=", 2)) { compop = PPDC_GE; newv += 2; } else if (*newv == '>') { compop = PPDC_GT; newv ++; } else compop = PPDC_XX; if (compop != PPDC_XX) { while (isspace(*newv & 255)) newv ++; if (*newv == ')' || !*newv) return (-1); if (isdigit(*newv & 255) || *newv == '-' || *newv == '+') { // Get the second number... temp2 = strtol(newv, &newv, 0); if (!*newv || newv == v || !(isspace(*newv) || *newv == ')') || temp == LONG_MIN) return (-1); } else { // Lookup the second name... for (v = newv, newv ++; *newv && (isalnum(*newv & 255) || *newv == '_'); newv ++); ch = *newv; *newv = '\0'; if ((var = find_variable(v)) != NULL) { if (!var->value || !var->value->value || !var->value->value[0]) temp2 = 0; else if (isdigit(var->value->value[0] & 255) || var->value->value[0] == '-' || var->value->value[0] == '+') temp2 = strtol(var->value->value, NULL, 0); else temp2 = 1; } else temp2 = 0; *newv = ch; } // Do the comparison... switch (compop) { case PPDC_EQ : temp = temp == temp2; break; case PPDC_NE : temp = temp != temp2; break; case PPDC_LT : temp = temp < temp2; break; case PPDC_LE : temp = temp <= temp2; break; case PPDC_GT : temp = temp > temp2; break; case PPDC_GE : temp = temp >= temp2; break; } } } val |= temp; v = newv; } if (*v == ')' && !v[1]) return ((int)val); else return (-1); } else if ((var = find_variable(v)) != NULL) { // NAME by itself returns 1 if the #define variable is not blank and // not "0"... return (var->value->value && var->value->value[0] && strcmp(var->value->value, "0")); } else { // Anything else is an error... return (-1); } } // // 'ppdcSource::get_integer()' - Get an integer value from a file. // int // O - Integer value ppdcSource::get_integer(ppdcFile *fp) // I - File to read { char temp[1024]; // String buffer if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected integer on line %d of %s."), fp->line, fp->filename); return (-1); } else return (get_integer(temp)); } // // 'ppdcSource::get_measurement()' - Get a measurement value. // float // O - Measurement value in points ppdcSource::get_measurement(ppdcFile *fp) // I - File to read { char buffer[256], // Number buffer *ptr; // Pointer into buffer float val; // Measurement value // Grab a token from the file... if (!get_token(fp, buffer, sizeof(buffer))) return (-1.0f); // Get the floating point value of "s" and skip all digits and decimal points. val = (float)strtod(buffer, &ptr); // Check for a trailing unit specifier... if (!_cups_strcasecmp(ptr, "mm")) val *= 72.0f / 25.4f; else if (!_cups_strcasecmp(ptr, "cm")) val *= 72.0f / 2.54f; else if (!_cups_strcasecmp(ptr, "m")) val *= 72.0f / 0.0254f; else if (!_cups_strcasecmp(ptr, "in")) val *= 72.0f; else if (!_cups_strcasecmp(ptr, "ft")) val *= 72.0f * 12.0f; else if (_cups_strcasecmp(ptr, "pt") && *ptr) return (-1.0f); return (val); } // // 'ppdcSource::get_option()' - Get an option definition. // ppdcOption * // O - Option ppdcSource::get_option(ppdcFile *fp, // I - File to read ppdcDriver *d, // I - Printer driver ppdcGroup *g) // I - Current group { char name[1024], // UI name *text, // UI text type[256]; // UI type string ppdcOptType ot; // Option type value ppdcOptSection section; // Option section float order; // Option order ppdcOption *o; // Option ppdcGroup *mg; // Matching group, if any // Read the Option parameters: // // Option name/text type section order if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected option name/text on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if (!get_token(fp, type, sizeof(type))) { _cupsLangPrintf(stderr, _("ppdc: Expected option type on line %d of %s."), fp->line, fp->filename); return (NULL); } if (!_cups_strcasecmp(type, "boolean")) ot = PPDC_BOOLEAN; else if (!_cups_strcasecmp(type, "pickone")) ot = PPDC_PICKONE; else if (!_cups_strcasecmp(type, "pickmany")) ot = PPDC_PICKMANY; else { _cupsLangPrintf(stderr, _("ppdc: Invalid option type \"%s\" on line %d of %s."), type, fp->line, fp->filename); return (NULL); } if (!get_token(fp, type, sizeof(type))) { _cupsLangPrintf(stderr, _("ppdc: Expected option section on line %d of %s."), fp->line, fp->filename); return (NULL); } if (!_cups_strcasecmp(type, "AnySetup")) section = PPDC_SECTION_ANY; else if (!_cups_strcasecmp(type, "DocumentSetup")) section = PPDC_SECTION_DOCUMENT; else if (!_cups_strcasecmp(type, "ExitServer")) section = PPDC_SECTION_EXIT; else if (!_cups_strcasecmp(type, "JCLSetup")) section = PPDC_SECTION_JCL; else if (!_cups_strcasecmp(type, "PageSetup")) section = PPDC_SECTION_PAGE; else if (!_cups_strcasecmp(type, "Prolog")) section = PPDC_SECTION_PROLOG; else { _cupsLangPrintf(stderr, _("ppdc: Invalid option section \"%s\" on line %d of " "%s."), type, fp->line, fp->filename); return (NULL); } order = get_float(fp); // See if the option already exists... if ((o = d->find_option_group(name, &mg)) == NULL) { // Nope, add a new one... o = new ppdcOption(ot, name, text, section, order); } else if (o->type != ot) { _cupsLangPrintf(stderr, _("ppdc: Option %s redefined with a different type on line " "%d of %s."), name, fp->line, fp->filename); return (NULL); } else if (g != mg) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on line " "%d of %s."), name, fp->line, fp->filename); return (NULL); } return (o); } // // 'ppdcSource::get_po()' - Get a message catalog. // ppdcCatalog * // O - Message catalog ppdcSource::get_po(ppdcFile *fp) // I - File to read { char locale[32], // Locale name poname[1024], // Message catalog filename basedir[1024], // Base directory *baseptr, // Pointer into directory pofilename[1024]; // Full filename of message catalog ppdcCatalog *cat; // Message catalog // Read the #po parameters: // // #po locale "filename.po" if (!get_token(fp, locale, sizeof(locale))) { _cupsLangPrintf(stderr, _("ppdc: Expected locale after #po on line %d of %s."), fp->line, fp->filename); return (NULL); } if (!get_token(fp, poname, sizeof(poname))) { _cupsLangPrintf(stderr, _("ppdc: Expected filename after #po %s on line %d of " "%s."), locale, fp->line, fp->filename); return (NULL); } // See if the locale is already loaded... if (find_po(locale)) { _cupsLangPrintf(stderr, _("ppdc: Duplicate #po for locale %s on line %d of %s."), locale, fp->line, fp->filename); return (NULL); } // Figure out the current directory... strlcpy(basedir, fp->filename, sizeof(basedir)); if ((baseptr = strrchr(basedir, '/')) != NULL) *baseptr = '\0'; else strlcpy(basedir, ".", sizeof(basedir)); // Find the po file... pofilename[0] = '\0'; if (!poname[0] || find_include(poname, basedir, pofilename, sizeof(pofilename))) { // Found it, so load it... cat = new ppdcCatalog(locale, pofilename); // Reset the filename to the name supplied by the user... cat->filename->release(); cat->filename = new ppdcString(poname); // Return the catalog... return (cat); } else { _cupsLangPrintf(stderr, _("ppdc: Unable to find #po file %s on line %d of %s."), poname, fp->line, fp->filename); return (NULL); } } // // 'ppdcSource::get_resolution()' - Get an old-style resolution option. // ppdcChoice * // O - Choice data ppdcSource::get_resolution(ppdcFile *fp)// I - File to read { char name[1024], // Name *text, // Text temp[256], // Temporary string command[256], // Command string *commptr; // Pointer into command int xdpi, ydpi, // X + Y resolution color_order, // Color order color_space, // Colorspace compression, // Compression mode depth, // Bits per color row_count, // Row count row_feed, // Row feed row_step; // Row step/interval // Read the resolution parameters: // // Resolution colorspace bits row-count row-feed row-step name/text if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected override field after Resolution on line " "%d of %s."), fp->line, fp->filename); return (NULL); } color_order = get_color_order(temp); color_space = get_color_space(temp); compression = get_integer(temp); depth = get_integer(fp); row_count = get_integer(fp); row_feed = get_integer(fp); row_step = get_integer(fp); if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name/text after Resolution on line %d of " "%s."), fp->line, fp->filename); return (NULL); } if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; switch (sscanf(name, "%dx%d", &xdpi, &ydpi)) { case 1 : ydpi = xdpi; break; case 2 : break; default : _cupsLangPrintf(stderr, _("ppdc: Bad resolution name \"%s\" on line %d of " "%s."), name, fp->line, fp->filename); break; } // Create the necessary PS commands... snprintf(command, sizeof(command), "<= 0) { snprintf(commptr, sizeof(command) - (size_t)(commptr - command), "/cupsColorOrder %d", color_order); commptr += strlen(commptr); } if (color_space >= 0) { snprintf(commptr, sizeof(command) - (size_t)(commptr - command), "/cupsColorSpace %d", color_space); commptr += strlen(commptr); } if (compression >= 0) { snprintf(commptr, sizeof(command) - (size_t)(commptr - command), "/cupsCompression %d", compression); commptr += strlen(commptr); } snprintf(commptr, sizeof(command) - (size_t)(commptr - command), ">>setpagedevice"); // Return the new choice... return (new ppdcChoice(name, text, command)); } // // 'ppdcSource::get_simple_profile()' - Get a simple color profile definition. // ppdcProfile * // O - Color profile ppdcSource::get_simple_profile(ppdcFile *fp) // I - File to read { char resolution[1024], // Resolution/media type *media_type; // Media type float m[9]; // Transform matrix float kd, rd, g; // Densities and gamma float red, green, blue; // RGB adjustments float yellow; // Yellow density float color; // Color density values // Get the SimpleColorProfile parameters: // // SimpleColorProfile resolution/mediatype black-density yellow-density // red-density gamma red-adjust green-adjust blue-adjust if (!get_token(fp, resolution, sizeof(resolution))) { _cupsLangPrintf(stderr, _("ppdc: Expected resolution/mediatype following " "SimpleColorProfile on line %d of %s."), fp->line, fp->filename); return (NULL); } if ((media_type = strchr(resolution, '/')) != NULL) *media_type++ = '\0'; else media_type = resolution; // Collect the profile parameters... kd = get_float(fp); yellow = get_float(fp); rd = get_float(fp); g = get_float(fp); red = get_float(fp); green = get_float(fp); blue = get_float(fp); // Build the color profile... color = 0.5f * rd / kd - kd; m[0] = 1.0f; // C m[1] = color + blue; // C + M (blue) m[2] = color - green; // C + Y (green) m[3] = color - blue; // M + C (blue) m[4] = 1.0f; // M m[5] = color + red; // M + Y (red) m[6] = yellow * (color + green); // Y + C (green) m[7] = yellow * (color - red); // Y + M (red) m[8] = yellow; // Y if (m[1] > 0.0f) { m[3] -= m[1]; m[1] = 0.0f; } else if (m[3] > 0.0f) { m[1] -= m[3]; m[3] = 0.0f; } if (m[2] > 0.0f) { m[6] -= m[2]; m[2] = 0.0f; } else if (m[6] > 0.0f) { m[2] -= m[6]; m[6] = 0.0f; } if (m[5] > 0.0f) { m[7] -= m[5]; m[5] = 0.0f; } else if (m[7] > 0.0f) { m[5] -= m[7]; m[7] = 0.0f; } // Return the new profile... return (new ppdcProfile(resolution, media_type, kd, g, m)); } // // 'ppdcSource::get_size()' - Get a media size definition from a file. // ppdcMediaSize * // O - Media size ppdcSource::get_size(ppdcFile *fp) // I - File to read { char name[1024], // Name *text; // Text float width, // Width length; // Length // Get the name, text, width, and length: // // #media name/text width length if (!get_token(fp, name, sizeof(name))) return (NULL); if ((text = strchr(name, '/')) != NULL) *text++ = '\0'; else text = name; if ((width = get_measurement(fp)) < 0.0f) return (NULL); if ((length = get_measurement(fp)) < 0.0f) return (NULL); // Return the new media size... return (new ppdcMediaSize(name, text, width, length, 0.0f, 0.0f, 0.0f, 0.0f)); } // // 'ppdcSource::get_token()' - Get a token from a file. // char * // O - Token string or NULL ppdcSource::get_token(ppdcFile *fp, // I - File to read char *buffer, // I - Buffer int buflen) // I - Length of buffer { char *bufptr, // Pointer into string buffer *bufend; // End of string buffer int ch, // Character from file nextch, // Next char in file quote, // Quote character used... empty, // Empty input? startline; // Start line for quote char name[256], // Name string *nameptr; // Name pointer ppdcVariable *var; // Variable pointer // Mark the beginning and end of the buffer... bufptr = buffer; bufend = buffer + buflen - 1; // Loop intil we've read a token... quote = 0; startline = 0; empty = 1; while ((ch = fp->get()) != EOF) { if (isspace(ch) && !quote) { if (empty) continue; else break; } else if (ch == '$') { // Variable substitution empty = 0; for (nameptr = name; (ch = fp->peek()) != EOF;) { if (!isalnum(ch) && ch != '_') break; else if (nameptr < (name + sizeof(name) - 1)) *nameptr++ = (char)fp->get(); } if (nameptr == name) { // Just substitute this character... if (ch == '$') { // $$ = $ if (bufptr < bufend) *bufptr++ = (char)fp->get(); } else { // $ch = $ch _cupsLangPrintf(stderr, _("ppdc: Bad variable substitution ($%c) on line %d " "of %s."), ch, fp->line, fp->filename); if (bufptr < bufend) *bufptr++ = '$'; } } else { // Substitute the variable value... *nameptr = '\0'; var = find_variable(name); if (var) { strlcpy(bufptr, var->value->value, (size_t)(bufend - bufptr + 1)); bufptr += strlen(bufptr); } else { if (!(cond_state & PPDC_COND_SKIP)) _cupsLangPrintf(stderr, _("ppdc: Undefined variable (%s) on line %d of " "%s."), name, fp->line, fp->filename); snprintf(bufptr, (size_t)(bufend - bufptr + 1), "$%s", name); bufptr += strlen(bufptr); } } } else if (ch == '/' && !quote) { // Possibly a comment... nextch = fp->peek(); if (nextch == '*') { // C comment... fp->get(); ch = fp->get(); while ((nextch = fp->get()) != EOF) { if (ch == '*' && nextch == '/') break; ch = nextch; } if (nextch == EOF) break; } else if (nextch == '/') { // C++ comment... while ((nextch = fp->get()) != EOF) if (nextch == '\n') break; if (nextch == EOF) break; } else { // Not a comment... empty = 0; if (bufptr < bufend) *bufptr++ = (char)ch; } } else if (ch == '\'' || ch == '\"') { empty = 0; if (quote == ch) { // Ending the current quoted string... quote = 0; } else if (quote) { // Insert the opposing quote char... if (bufptr < bufend) *bufptr++ = (char)ch; } else { // Start a new quoted string... startline = fp->line; quote = ch; } } else if ((ch == '(' || ch == '<') && !quote) { empty = 0; quote = ch; startline = fp->line; if (bufptr < bufend) *bufptr++ = (char)ch; } else if ((ch == ')' && quote == '(') || (ch == '>' && quote == '<')) { quote = 0; if (bufptr < bufend) *bufptr++ = (char)ch; } else if (ch == '\\') { empty = 0; if ((ch = fp->get()) == EOF) break; if (bufptr < bufend) *bufptr++ = (char)ch; } else if (bufptr < bufend) { empty = 0; *bufptr++ = (char)ch; if ((ch == '{' || ch == '}') && !quote) break; } } if (quote) { _cupsLangPrintf(stderr, _("ppdc: Unterminated string starting with %c on line %d " "of %s."), quote, startline, fp->filename); return (NULL); } if (empty) return (NULL); else { *bufptr = '\0'; return (buffer); } } // // 'ppdcSource::get_variable()' - Get a variable definition. // ppdcVariable * // O - Variable ppdcSource::get_variable(ppdcFile *fp) // I - File to read { char name[1024], // Name value[1024]; // Value // Get the name and value: // // #define name value if (!get_token(fp, name, sizeof(name))) return (NULL); if (!get_token(fp, value, sizeof(value))) return (NULL); // Set the variable... return (set_variable(name, value)); } // // 'ppdcSource::quotef()' - Write a formatted, quoted string... // int // O - Number bytes on success, -1 on failure ppdcSource::quotef(cups_file_t *fp, // I - File to write to const char *format, // I - Printf-style format string ...) // I - Additional args as needed { va_list ap; // Pointer to additional arguments int bytes; // Bytes written char sign, // Sign of format width size, // Size character (h, l, L) type; // Format type character const char *bufformat; // Start of format int width, // Width of field prec; // Number of characters of precision char tformat[100]; // Temporary format string for fprintf() char *s; // Pointer to string int slen; // Length of string int i; // Looping var // Range check input... if (!fp || !format) return (-1); // Loop through the format string, formatting as needed... va_start(ap, format); bytes = 0; while (*format) { if (*format == '%') { bufformat = format; format ++; if (*format == '%') { cupsFilePutChar(fp, *format++); bytes ++; continue; } else if (strchr(" -+#\'", *format)) sign = *format++; else sign = 0; width = 0; while (isdigit(*format)) width = width * 10 + *format++ - '0'; if (*format == '.') { format ++; prec = 0; while (isdigit(*format)) prec = prec * 10 + *format++ - '0'; } else prec = -1; if (*format == 'l' && format[1] == 'l') { size = 'L'; format += 2; } else if (*format == 'h' || *format == 'l' || *format == 'L') size = *format++; else size = '\0'; if (!*format) break; type = *format++; switch (type) { case 'E' : // Floating point formats case 'G' : case 'e' : case 'f' : case 'g' : if ((format - bufformat + 1) > (int)sizeof(tformat)) break; memcpy(tformat, bufformat, (size_t)(format - bufformat)); tformat[format - bufformat] = '\0'; bytes += cupsFilePrintf(fp, tformat, va_arg(ap, double)); break; case 'B' : // Integer formats case 'X' : case 'b' : case 'd' : case 'i' : case 'o' : case 'u' : case 'x' : if ((format - bufformat + 1) > (int)sizeof(tformat)) break; memcpy(tformat, bufformat, (size_t)(format - bufformat)); tformat[format - bufformat] = '\0'; # ifdef HAVE_LONG_LONG if (size == 'L') bytes += cupsFilePrintf(fp, tformat, va_arg(ap, long long)); else # endif /* HAVE_LONG_LONG */ if (size == 'l') bytes += cupsFilePrintf(fp, tformat, va_arg(ap, long)); else bytes += cupsFilePrintf(fp, tformat, va_arg(ap, int)); break; case 'p' : // Pointer value if ((format - bufformat + 1) > (int)sizeof(tformat)) break; memcpy(tformat, bufformat, (size_t)(format - bufformat)); tformat[format - bufformat] = '\0'; bytes += cupsFilePrintf(fp, tformat, va_arg(ap, void *)); break; case 'c' : // Character or character array if (width <= 1) { bytes ++; cupsFilePutChar(fp, va_arg(ap, int)); } else { cupsFileWrite(fp, va_arg(ap, char *), (size_t)width); bytes += width; } break; case 's' : // String if ((s = va_arg(ap, char *)) == NULL) s = (char *)"(nil)"; slen = (int)strlen(s); if (slen > width && prec != width) width = slen; if (slen > width) slen = width; if (sign != '-') { for (i = width - slen; i > 0; i --, bytes ++) cupsFilePutChar(fp, ' '); } for (i = slen; i > 0; i --, s ++, bytes ++) { if (*s == '\\' || *s == '\"') { cupsFilePutChar(fp, '\\'); bytes ++; } cupsFilePutChar(fp, *s); } if (sign == '-') { for (i = width - slen; i > 0; i --, bytes ++) cupsFilePutChar(fp, ' '); } break; } } else { cupsFilePutChar(fp, *format++); bytes ++; } } va_end(ap); // Return the number of characters written. return (bytes); } // // 'ppdcSource::read_file()' - Read a driver source file. // void ppdcSource::read_file(const char *f, // I - File to read cups_file_t *ffp) // I - File pointer to use { ppdcFile *fp = new ppdcFile(f, ffp); scan_file(fp); delete fp; if (cond_current != cond_stack) _cupsLangPrintf(stderr, _("ppdc: Missing #endif at end of \"%s\"."), f); } // // 'ppdcSource::scan_file()' - Scan a driver source file. // void ppdcSource::scan_file(ppdcFile *fp, // I - File to read ppdcDriver *td, // I - Driver template bool inc) // I - Including? { ppdcDriver *d; // Current driver ppdcGroup *g, // Current group *mg, // Matching group *general, // General options group *install; // Installable options group ppdcOption *o; // Current option ppdcChoice *c; // Current choice char temp[256], // Token from file... *ptr; // Pointer into token int isdefault; // Default option? // Initialize things as needed... if (inc && td) { d = td; d->retain(); } else d = new ppdcDriver(td); if ((general = d->find_group("General")) == NULL) { general = new ppdcGroup("General", NULL); d->add_group(general); } if ((install = d->find_group("InstallableOptions")) == NULL) { install = new ppdcGroup("InstallableOptions", "Installable Options"); d->add_group(install); } // Loop until EOF or } o = 0; g = general; while (get_token(fp, temp, sizeof(temp))) { if (temp[0] == '*') { // Mark the next choice as the default isdefault = 1; for (ptr = temp; ptr[1]; ptr ++) *ptr = ptr[1]; *ptr = '\0'; } else { // Don't mark the next choice as the default isdefault = 0; } if (!_cups_strcasecmp(temp, "}")) { // Close this one out... break; } else if (!_cups_strcasecmp(temp, "{")) { // Open a new child... scan_file(fp, d); } else if (!_cups_strcasecmp(temp, "#if")) { if ((cond_current - cond_stack) >= 100) { _cupsLangPrintf(stderr, _("ppdc: Too many nested #if's on line %d of %s."), fp->line, fp->filename); break; } cond_current ++; if (get_integer(fp) > 0) *cond_current = PPDC_COND_SATISFIED; else { *cond_current = PPDC_COND_SKIP; cond_state |= PPDC_COND_SKIP; } } else if (!_cups_strcasecmp(temp, "#elif")) { if (cond_current == cond_stack) { _cupsLangPrintf(stderr, _("ppdc: Missing #if on line %d of %s."), fp->line, fp->filename); break; } if (*cond_current & PPDC_COND_SATISFIED) { get_integer(fp); *cond_current |= PPDC_COND_SKIP; } else if (get_integer(fp) > 0) { *cond_current |= PPDC_COND_SATISFIED; *cond_current &= ~PPDC_COND_SKIP; } else *cond_current |= PPDC_COND_SKIP; // Update the current state int *cond_temp = cond_current; // Temporary stack pointer cond_state = PPDC_COND_NORMAL; while (cond_temp > cond_stack) if (*cond_temp & PPDC_COND_SKIP) { cond_state = PPDC_COND_SKIP; break; } else cond_temp --; } else if (!_cups_strcasecmp(temp, "#else")) { if (cond_current == cond_stack) { _cupsLangPrintf(stderr, _("ppdc: Missing #if on line %d of %s."), fp->line, fp->filename); break; } if (*cond_current & PPDC_COND_SATISFIED) *cond_current |= PPDC_COND_SKIP; else { *cond_current |= PPDC_COND_SATISFIED; *cond_current &= ~PPDC_COND_SKIP; } // Update the current state int *cond_temp = cond_current; // Temporary stack pointer cond_state = PPDC_COND_NORMAL; while (cond_temp > cond_stack) if (*cond_temp & PPDC_COND_SKIP) { cond_state = PPDC_COND_SKIP; break; } else cond_temp --; } else if (!_cups_strcasecmp(temp, "#endif")) { if (cond_current == cond_stack) { _cupsLangPrintf(stderr, _("ppdc: Missing #if on line %d of %s."), fp->line, fp->filename); break; } cond_current --; // Update the current state int *cond_temp = cond_current; // Temporary stack pointer cond_state = PPDC_COND_NORMAL; while (cond_temp > cond_stack) if (*cond_temp & PPDC_COND_SKIP) { cond_state = PPDC_COND_SKIP; break; } else cond_temp --; } else if (!_cups_strcasecmp(temp, "#define")) { // Get the variable... get_variable(fp); } else if (!_cups_strcasecmp(temp, "#include")) { // #include filename char basedir[1024], // Base directory *baseptr, // Pointer into directory inctemp[1024], // Initial filename incname[1024]; // Include filename ppdcFile *incfile; // Include file int *old_current = cond_current; // Previous current stack // Get the include name... if (!get_token(fp, inctemp, sizeof(inctemp))) { _cupsLangPrintf(stderr, _("ppdc: Expected include filename on line %d of " "%s."), fp->line, fp->filename); break; } if (cond_state) continue; // Figure out the current directory... strlcpy(basedir, fp->filename, sizeof(basedir)); if ((baseptr = strrchr(basedir, '/')) != NULL) *baseptr = '\0'; else strlcpy(basedir, ".", sizeof(basedir)); // Find the include file... if (find_include(inctemp, basedir, incname, sizeof(incname))) { // Open the include file, scan it, and then close it... incfile = new ppdcFile(incname); scan_file(incfile, d, true); delete incfile; if (cond_current != old_current) _cupsLangPrintf(stderr, _("ppdc: Missing #endif at end of \"%s\"."), incname); } else { // Can't find it! _cupsLangPrintf(stderr, _("ppdc: Unable to find include file \"%s\" on line %d " "of %s."), inctemp, fp->line, fp->filename); break; } } else if (!_cups_strcasecmp(temp, "#media")) { ppdcMediaSize *m; // Media size // Get a media size... m = get_size(fp); if (m) { if (cond_state) m->release(); else sizes->add(m); } } else if (!_cups_strcasecmp(temp, "#po")) { ppdcCatalog *cat; // Message catalog // Get a message catalog... cat = get_po(fp); if (cat) { if (cond_state) cat->release(); else po_files->add(cat); } } else if (!_cups_strcasecmp(temp, "Attribute") || !_cups_strcasecmp(temp, "LocAttribute")) { ppdcAttr *a; // Attribute // Get an attribute... a = get_attr(fp, !_cups_strcasecmp(temp, "LocAttribute")); if (a) { if (cond_state) a->release(); else d->add_attr(a); } } else if (!_cups_strcasecmp(temp, "Choice")) { // Get a choice... c = get_choice(fp); if (!c) break; if (cond_state) { c->release(); continue; } // Add it to the current option... if (!o) { c->release(); _cupsLangPrintf(stderr, _("ppdc: Choice found on line %d of %s with no " "Option."), fp->line, fp->filename); break; } o->add_choice(c); if (isdefault) o->set_defchoice(c); } else if (!_cups_strcasecmp(temp, "ColorDevice")) { // ColorDevice boolean if (cond_state) get_boolean(fp); else d->color_device = get_boolean(fp); } else if (!_cups_strcasecmp(temp, "ColorModel")) { // Get the color model c = get_color_model(fp); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the ColorModel option... if ((o = d->find_option("ColorModel")) == NULL) { // Create the ColorModel option... o = new ppdcOption(PPDC_PICKONE, "ColorModel", "Color Mode", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "ColorProfile")) { ppdcProfile *p; // Color profile // Get the color profile... p = get_color_profile(fp); if (p) { if (cond_state) p->release(); else d->profiles->add(p); } } else if (!_cups_strcasecmp(temp, "Copyright")) { // Copyright string char copytemp[8192], // Copyright string *copyptr, // Pointer into string *copyend; // Pointer to end of string // Get the copyright string... if (!get_token(fp, copytemp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected string after Copyright on line %d " "of %s."), fp->line, fp->filename); break; } if (cond_state) continue; // Break it up into individual lines... for (copyptr = copytemp; copyptr; copyptr = copyend) { if ((copyend = strchr(copyptr, '\n')) != NULL) *copyend++ = '\0'; d->copyright->add(new ppdcString(copyptr)); } } else if (!_cups_strcasecmp(temp, "CustomMedia")) { ppdcMediaSize *m; // Media size // Get a custom media size... m = get_custom_size(fp); if (cond_state) { m->release(); continue; } if (m) d->sizes->add(m); if (isdefault) d->set_default_size(m); } else if (!_cups_strcasecmp(temp, "Cutter")) { // Cutter boolean int have_cutter; // Have a paper cutter? have_cutter = get_boolean(fp); if (have_cutter <= 0 || cond_state) continue; if (!d->find_option("CutMedia")) { o = new ppdcOption(PPDC_BOOLEAN, "CutMedia", "Cut Media", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); c = new ppdcChoice("False", NULL, "<>setpagedevice"); o->add_choice(c); o->set_defchoice(c); c = new ppdcChoice("True", NULL, "<>setpagedevice"); o->add_choice(c); o = NULL; } } else if (!_cups_strcasecmp(temp, "Darkness")) { // Get the darkness choice... c = get_generic(fp, "Darkness", NULL, "cupsCompression"); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the cupsDarkness option... if ((o = d->find_option_group("cupsDarkness", &mg)) == NULL) { // Create the cupsDarkness option... o = new ppdcOption(PPDC_PICKONE, "cupsDarkness", "Darkness", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } else if (mg != general) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on " "line %d of %s."), "cupsDarkness", fp->line, fp->filename); c->release(); continue; } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "DriverType")) { int i; // Looping var // DriverType keyword if (!get_token(fp, temp, sizeof(temp))) { _cupsLangPrintf(stderr, _("ppdc: Expected driver type keyword following " "DriverType on line %d of %s."), fp->line, fp->filename); continue; } if (cond_state) continue; for (i = 0; i < (int)(sizeof(driver_types) / sizeof(driver_types[0])); i ++) if (!_cups_strcasecmp(temp, driver_types[i])) break; if (i < (int)(sizeof(driver_types) / sizeof(driver_types[0]))) d->type = (ppdcDrvType)i; else if (!_cups_strcasecmp(temp, "dymo")) d->type = PPDC_DRIVER_LABEL; else _cupsLangPrintf(stderr, _("ppdc: Unknown driver type %s on line %d of %s."), temp, fp->line, fp->filename); } else if (!_cups_strcasecmp(temp, "Duplex")) get_duplex(fp, d); else if (!_cups_strcasecmp(temp, "Filter")) { ppdcFilter *f; // Filter // Get the filter value... f = get_filter(fp); if (f) { if (cond_state) f->release(); else d->filters->add(f); } } else if (!_cups_strcasecmp(temp, "Finishing")) { // Get the finishing choice... c = get_generic(fp, "Finishing", "OutputType", NULL); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the cupsFinishing option... if ((o = d->find_option_group("cupsFinishing", &mg)) == NULL) { // Create the cupsFinishing option... o = new ppdcOption(PPDC_PICKONE, "cupsFinishing", "Finishing", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } else if (mg != general) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on " "line %d of %s."), "cupsFinishing", fp->line, fp->filename); c->release(); continue; } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "Font") || !_cups_strcasecmp(temp, "#font")) { ppdcFont *f; // Font // Get a font... f = get_font(fp); if (f) { if (cond_state) f->release(); else { if (!_cups_strcasecmp(temp, "#font")) base_fonts->add(f); else d->add_font(f); if (isdefault) d->set_default_font(f); } } } else if (!_cups_strcasecmp(temp, "Group")) { // Get a group... ppdcGroup *tempg = get_group(fp, d); if (!tempg) break; if (cond_state) { if (!d->find_group(tempg->name->value)) tempg->release(); } else { if (!d->find_group(tempg->name->value)) d->add_group(tempg); g = tempg; } } else if (!_cups_strcasecmp(temp, "HWMargins")) { // HWMargins left bottom right top d->left_margin = get_measurement(fp); d->bottom_margin = get_measurement(fp); d->right_margin = get_measurement(fp); d->top_margin = get_measurement(fp); } else if (!_cups_strcasecmp(temp, "InputSlot")) { // Get the input slot choice... c = get_generic(fp, "InputSlot", NULL, "MediaPosition"); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the InputSlot option... if ((o = d->find_option_group("InputSlot", &mg)) == NULL) { // Create the InputSlot option... o = new ppdcOption(PPDC_PICKONE, "InputSlot", "Media Source", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } else if (mg != general) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on " "line %d of %s."), "InputSlot", fp->line, fp->filename); c->release(); continue; } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "Installable")) { // Get the installable option... o = get_installable(fp); // Add it as needed... if (o) { if (cond_state) o->release(); else install->add_option(o); o = NULL; } } else if (!_cups_strcasecmp(temp, "ManualCopies")) { // ManualCopies boolean if (cond_state) get_boolean(fp); else d->manual_copies = get_boolean(fp); } else if (!_cups_strcasecmp(temp, "Manufacturer")) { // Manufacturer name char name[256]; // Model name string if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after Manufacturer on line %d " "of %s."), fp->line, fp->filename); break; } if (!cond_state) d->set_manufacturer(name); } else if (!_cups_strcasecmp(temp, "MaxSize")) { // MaxSize width length if (cond_state) { get_measurement(fp); get_measurement(fp); } else { d->max_width = get_measurement(fp); d->max_length = get_measurement(fp); } } else if (!_cups_strcasecmp(temp, "MediaSize")) { // MediaSize keyword char name[41]; // Media size name ppdcMediaSize *m, // Matching media size... *dm; // Driver media size... if (get_token(fp, name, sizeof(name)) == NULL) { _cupsLangPrintf(stderr, _("ppdc: Expected name after MediaSize on line %d of " "%s."), fp->line, fp->filename); break; } if (cond_state) continue; m = find_size(name); if (!m) { _cupsLangPrintf(stderr, _("ppdc: Unknown media size \"%s\" on line %d of " "%s."), name, fp->line, fp->filename); break; } // Add this size to the driver... dm = new ppdcMediaSize(m->name->value, m->text->value, m->width, m->length, d->left_margin, d->bottom_margin, d->right_margin, d->top_margin); d->sizes->add(dm); if (isdefault) d->set_default_size(dm); } else if (!_cups_strcasecmp(temp, "MediaType")) { // Get the media type choice... c = get_generic(fp, "MediaType", "MediaType", "cupsMediaType"); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the MediaType option... if ((o = d->find_option_group("MediaType", &mg)) == NULL) { // Create the MediaType option... o = new ppdcOption(PPDC_PICKONE, "MediaType", "Media Type", PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } else if (mg != general) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on " "line %d of %s."), "MediaType", fp->line, fp->filename); c->release(); continue; } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "MinSize")) { // MinSize width length if (cond_state) { get_measurement(fp); get_measurement(fp); } else { d->min_width = get_measurement(fp); d->min_length = get_measurement(fp); } } else if (!_cups_strcasecmp(temp, "ModelName")) { // ModelName name char name[256]; // Model name string if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after ModelName on line %d of " "%s."), fp->line, fp->filename); break; } if (!cond_state) d->set_model_name(name); } else if (!_cups_strcasecmp(temp, "ModelNumber")) { // ModelNumber number if (cond_state) get_integer(fp); else d->model_number = get_integer(fp); } else if (!_cups_strcasecmp(temp, "Option")) { // Get an option... ppdcOption *tempo = get_option(fp, d, g); if (!tempo) break; if (cond_state) { if (!g->find_option(tempo->name->value)) tempo->release(); } else { if (!g->find_option(tempo->name->value)) g->add_option(tempo); o = tempo; } } else if (!_cups_strcasecmp(temp, "FileName")) { // FileName name char name[256]; // Filename string if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after FileName on line %d of " "%s."), fp->line, fp->filename); break; } if (!cond_state) d->set_file_name(name); } else if (!_cups_strcasecmp(temp, "PCFileName")) { // PCFileName name char name[256]; // PC filename string if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected name after PCFileName on line %d of " "%s."), fp->line, fp->filename); break; } if (!cond_state) d->set_pc_file_name(name); } else if (!_cups_strcasecmp(temp, "Resolution")) { // Get the resolution choice... c = get_resolution(fp); if (!c) continue; if (cond_state) { c->release(); continue; } // Add the choice to the Resolution option... if ((o = d->find_option_group("Resolution", &mg)) == NULL) { // Create the Resolution option... o = new ppdcOption(PPDC_PICKONE, "Resolution", NULL, PPDC_SECTION_ANY, 10.0f); g = general; g->add_option(o); } else if (mg != general) { _cupsLangPrintf(stderr, _("ppdc: Option %s defined in two different groups on " "line %d of %s."), "Resolution", fp->line, fp->filename); c->release(); continue; } o->add_choice(c); if (isdefault) o->set_defchoice(c); o = NULL; } else if (!_cups_strcasecmp(temp, "SimpleColorProfile")) { ppdcProfile *p; // Color profile // Get the color profile... p = get_simple_profile(fp); if (p) { if (cond_state) p->release(); else d->profiles->add(p); } } else if (!_cups_strcasecmp(temp, "Throughput")) { // Throughput number if (cond_state) get_integer(fp); else d->throughput = get_integer(fp); } else if (!_cups_strcasecmp(temp, "UIConstraints")) { ppdcConstraint *con; // Constraint con = get_constraint(fp); if (con) { if (cond_state) con->release(); else d->constraints->add(con); } } else if (!_cups_strcasecmp(temp, "VariablePaperSize")) { // VariablePaperSize boolean if (cond_state) get_boolean(fp); else d->variable_paper_size = get_boolean(fp); } else if (!_cups_strcasecmp(temp, "Version")) { // Version string char name[256]; // Model name string if (!get_token(fp, name, sizeof(name))) { _cupsLangPrintf(stderr, _("ppdc: Expected string after Version on line %d of " "%s."), fp->line, fp->filename); break; } if (!cond_state) d->set_version(name); } else { _cupsLangPrintf(stderr, _("ppdc: Unknown token \"%s\" seen on line %d of %s."), temp, fp->line, fp->filename); break; } } // Done processing this block, is there anything to save? if (!inc) { if (!d->pc_file_name || !d->model_name || !d->manufacturer || !d->version || !d->sizes->count) { // Nothing to save... d->release(); } else { // Got a driver, save it... drivers->add(d); } } else if (inc && td) td->release(); } // // 'ppdcSource::set_variable()' - Set a variable. // ppdcVariable * // O - Variable ppdcSource::set_variable( const char *name, // I - Name const char *value) // I - Value { ppdcVariable *v; // Variable // See if the variable exists already... v = find_variable(name); if (v) { // Change the variable value... v->set_value(value); } else { // Create a new variable and add it... v = new ppdcVariable(name, value); vars->add(v); } return (v); } // // 'ppdcSource::write_file()' - Write the current source data to a file. // int // O - 0 on success, -1 on error ppdcSource::write_file(const char *f) // I - File to write { cups_file_t *fp; // Output file char bckname[1024]; // Backup file ppdcDriver *d; // Current driver ppdcString *st; // Current string ppdcAttr *a; // Current attribute ppdcConstraint *co; // Current constraint ppdcFilter *fi; // Current filter ppdcFont *fo; // Current font ppdcGroup *g; // Current group ppdcOption *o; // Current option ppdcChoice *ch; // Current choice ppdcProfile *p; // Current color profile ppdcMediaSize *si; // Current media size float left, // Current left margin bottom, // Current bottom margin right, // Current right margin top; // Current top margin int dtused[PPDC_DRIVER_MAX];// Driver type usage... // Rename the current file, if any, to .bck... snprintf(bckname, sizeof(bckname), "%s.bck", f); rename(f, bckname); // Open the output file... fp = cupsFileOpen(f, "w"); if (!fp) { // Can't create file; restore backup and return... rename(bckname, f); return (-1); } cupsFilePuts(fp, "// CUPS PPD Compiler " CUPS_SVERSION "\n\n"); // Include standard files... cupsFilePuts(fp, "// Include necessary files...\n"); cupsFilePuts(fp, "#include \n"); cupsFilePuts(fp, "#include \n"); memset(dtused, 0, sizeof(dtused)); for (d = (ppdcDriver *)drivers->first(); d; d = (ppdcDriver *)drivers->next()) if (d->type > PPDC_DRIVER_PS && !dtused[d->type]) { cupsFilePrintf(fp, "#include <%s.h>\n", driver_types[d->type]); dtused[d->type] = 1; } // Output each driver... for (d = (ppdcDriver *)drivers->first(); d; d = (ppdcDriver *)drivers->next()) { // Start the driver... cupsFilePrintf(fp, "\n// %s %s\n", d->manufacturer->value, d->model_name->value); cupsFilePuts(fp, "{\n"); // Write the copyright strings... for (st = (ppdcString *)d->copyright->first(); st; st = (ppdcString *)d->copyright->next()) quotef(fp, " Copyright \"%s\"\n", st->value); // Write other strings and values... if (d->manufacturer && d->manufacturer->value) quotef(fp, " Manufacturer \"%s\"\n", d->manufacturer->value); if (d->model_name->value) quotef(fp, " ModelName \"%s\"\n", d->model_name->value); if (d->file_name && d->file_name->value) quotef(fp, " FileName \"%s\"\n", d->file_name->value); if (d->pc_file_name && d->pc_file_name->value) quotef(fp, " PCFileName \"%s\"\n", d->pc_file_name->value); if (d->version && d->version->value) quotef(fp, " Version \"%s\"\n", d->version->value); cupsFilePrintf(fp, " DriverType %s\n", driver_types[d->type]); if (d->model_number) { switch (d->type) { case PPDC_DRIVER_LABEL : cupsFilePuts(fp, " ModelNumber "); switch (d->model_number) { case DYMO_3x0 : cupsFilePuts(fp, "$DYMO_3x0\n"); break; case ZEBRA_EPL_LINE : cupsFilePuts(fp, "$ZEBRA_EPL_LINE\n"); break; case ZEBRA_EPL_PAGE : cupsFilePuts(fp, "$ZEBRA_EPL_PAGE\n"); break; case ZEBRA_ZPL : cupsFilePuts(fp, "$ZEBRA_ZPL\n"); break; case ZEBRA_CPCL : cupsFilePuts(fp, "$ZEBRA_CPCL\n"); break; case INTELLITECH_PCL : cupsFilePuts(fp, "$INTELLITECH_PCL\n"); break; default : cupsFilePrintf(fp, "%d\n", d->model_number); break; } break; case PPDC_DRIVER_EPSON : cupsFilePuts(fp, " ModelNumber "); switch (d->model_number) { case EPSON_9PIN : cupsFilePuts(fp, "$EPSON_9PIN\n"); break; case EPSON_24PIN : cupsFilePuts(fp, "$EPSON_24PIN\n"); break; case EPSON_COLOR : cupsFilePuts(fp, "$EPSON_COLOR\n"); break; case EPSON_PHOTO : cupsFilePuts(fp, "$EPSON_PHOTO\n"); break; case EPSON_ICOLOR : cupsFilePuts(fp, "$EPSON_ICOLOR\n"); break; case EPSON_IPHOTO : cupsFilePuts(fp, "$EPSON_IPHOTO\n"); break; default : cupsFilePrintf(fp, "%d\n", d->model_number); break; } break; case PPDC_DRIVER_HP : cupsFilePuts(fp, " ModelNumber "); switch (d->model_number) { case HP_LASERJET : cupsFilePuts(fp, "$HP_LASERJET\n"); break; case HP_DESKJET : cupsFilePuts(fp, "$HP_DESKJET\n"); break; case HP_DESKJET2 : cupsFilePuts(fp, "$HP_DESKJET2\n"); break; default : cupsFilePrintf(fp, "%d\n", d->model_number); break; } cupsFilePuts(fp, ")\n"); break; default : cupsFilePrintf(fp, " ModelNumber %d\n", d->model_number); break; } } if (d->manual_copies) cupsFilePuts(fp, " ManualCopies Yes\n"); if (d->color_device) cupsFilePuts(fp, " ColorDevice Yes\n"); if (d->throughput) cupsFilePrintf(fp, " Throughput %d\n", d->throughput); // Output all of the attributes... for (a = (ppdcAttr *)d->attrs->first(); a; a = (ppdcAttr *)d->attrs->next()) if (a->text->value && a->text->value[0]) quotef(fp, " Attribute \"%s\" \"%s/%s\" \"%s\"\n", a->name->value, a->selector->value ? a->selector->value : "", a->text->value, a->value->value ? a->value->value : ""); else quotef(fp, " Attribute \"%s\" \"%s\" \"%s\"\n", a->name->value, a->selector->value ? a->selector->value : "", a->value->value ? a->value->value : ""); // Output all of the constraints... for (co = (ppdcConstraint *)d->constraints->first(); co; co = (ppdcConstraint *)d->constraints->next()) { if (co->option1->value[0] == '*') cupsFilePrintf(fp, " UIConstraints \"%s %s", co->option1->value, co->choice1->value ? co->choice1->value : ""); else cupsFilePrintf(fp, " UIConstraints \"*%s %s", co->option1->value, co->choice1->value ? co->choice1->value : ""); if (co->option2->value[0] == '*') cupsFilePrintf(fp, " %s %s\"\n", co->option2->value, co->choice2->value ? co->choice2->value : ""); else cupsFilePrintf(fp, " *%s %s\"\n", co->option2->value, co->choice2->value ? co->choice2->value : ""); } // Output all of the filters... for (fi = (ppdcFilter *)d->filters->first(); fi; fi = (ppdcFilter *)d->filters->next()) cupsFilePrintf(fp, " Filter \"%s %d %s\"\n", fi->mime_type->value, fi->cost, fi->program->value); // Output all of the fonts... for (fo = (ppdcFont *)d->fonts->first(); fo; fo = (ppdcFont *)d->fonts->next()) if (!strcmp(fo->name->value, "*")) cupsFilePuts(fp, " Font *\n"); else cupsFilePrintf(fp, " Font \"%s\" \"%s\" \"%s\" \"%s\" %s\n", fo->name->value, fo->encoding->value, fo->version->value, fo->charset->value, fo->status == PPDC_FONT_ROM ? "ROM" : "Disk"); // Output all options... for (g = (ppdcGroup *)d->groups->first(); g; g = (ppdcGroup *)d->groups->next()) { if (g->options->count == 0) continue; if (g->text->value && g->text->value[0]) quotef(fp, " Group \"%s/%s\"\n", g->name->value, g->text->value); else cupsFilePrintf(fp, " Group \"%s\"\n", g->name->value); for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (o->choices->count == 0) continue; if (o->text->value && o->text->value[0]) quotef(fp, " Option \"%s/%s\"", o->name->value, o->text->value); else cupsFilePrintf(fp, " Option \"%s\"", o->name->value); cupsFilePrintf(fp, " %s %s %.1f\n", o->type == PPDC_BOOLEAN ? "Boolean" : o->type == PPDC_PICKONE ? "PickOne" : "PickMany", o->section == PPDC_SECTION_ANY ? "AnySetup" : o->section == PPDC_SECTION_DOCUMENT ? "DocumentSetup" : o->section == PPDC_SECTION_EXIT ? "ExitServer" : o->section == PPDC_SECTION_JCL ? "JCLSetup" : o->section == PPDC_SECTION_PAGE ? "PageSetup" : "Prolog", o->order); for (ch = (ppdcChoice *)o->choices->first(); ch; ch = (ppdcChoice *)o->choices->next()) { if (ch->text->value && ch->text->value[0]) quotef(fp, " %sChoice \"%s/%s\" \"%s\"\n", o->defchoice == ch->name ? "*" : "", ch->name->value, ch->text->value, ch->code->value ? ch->code->value : ""); else quotef(fp, " %sChoice \"%s\" \"%s\"\n", o->defchoice == ch->name ? "*" : "", ch->name->value, ch->code->value ? ch->code->value : ""); } } } // Output all of the color profiles... for (p = (ppdcProfile *)d->profiles->first(); p; p = (ppdcProfile *)d->profiles->next()) cupsFilePrintf(fp, " ColorProfile \"%s/%s\" %.3f %.3f " "%.3f %.3f %.3f %.3f %.3f %.3f %.3f %.3f %.3f\n", p->resolution->value, p->media_type->value, p->density, p->gamma, p->profile[0], p->profile[1], p->profile[2], p->profile[3], p->profile[4], p->profile[5], p->profile[6], p->profile[7], p->profile[8]); // Output all of the media sizes... left = 0.0; bottom = 0.0; right = 0.0; top = 0.0; for (si = (ppdcMediaSize *)d->sizes->first(); si; si = (ppdcMediaSize *)d->sizes->next()) if (si->size_code->value && si->region_code->value) { // Output a custom media size... quotef(fp, " %sCustomMedia \"%s/%s\" %.2f %.2f %.2f %.2f %.2f %.2f \"%s\" \"%s\"\n", si->name == d->default_size ? "*" : "", si->name->value, si->text->value, si->width, si->length, si->left, si->bottom, si->right, si->top, si->size_code->value, si->region_code->value); } else { // Output a standard media size... if (fabs(left - si->left) > 0.1 || fabs(bottom - si->bottom) > 0.1 || fabs(right - si->right) > 0.1 || fabs(top - si->top) > 0.1) { cupsFilePrintf(fp, " HWMargins %.2f %.2f %.2f %.2f\n", si->left, si->bottom, si->right, si->top); left = si->left; bottom = si->bottom; right = si->right; top = si->top; } cupsFilePrintf(fp, " %sMediaSize %s\n", si->name == d->default_size ? "*" : "", si->name->value); } if (d->variable_paper_size) { cupsFilePuts(fp, " VariablePaperSize Yes\n"); if (fabs(left - d->left_margin) > 0.1 || fabs(bottom - d->bottom_margin) > 0.1 || fabs(right - d->right_margin) > 0.1 || fabs(top - d->top_margin) > 0.1) { cupsFilePrintf(fp, " HWMargins %.2f %.2f %.2f %.2f\n", d->left_margin, d->bottom_margin, d->right_margin, d->top_margin); } cupsFilePrintf(fp, " MinSize %.2f %.2f\n", d->min_width, d->min_length); cupsFilePrintf(fp, " MaxSize %.2f %.2f\n", d->max_width, d->max_length); } // End the driver... cupsFilePuts(fp, "}\n"); } // Close the file and return... cupsFileClose(fp); return (0); } cups-2.4.7/ppdc/ppdc-shared.cxx0000644000175000017500000000162414502571342016230 0ustar zdohnalzdohnal// // Shared data class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcShared::ppdcShared()' - Create shared data. // ppdcShared::ppdcShared() { use = 1; } // // 'ppdcShared::~ppdcShared()' - Destroy shared data. // ppdcShared::~ppdcShared() { } // // 'ppdcShared::release()' - Decrement the use count and delete as needed. // void ppdcShared::release(void) { use --; #ifdef DEBUG if (use < 0) { fprintf(stderr, "ERROR: Over-release of %s: %p\n", class_name(), this); abort(); } #endif /* DEBUG */ if (use == 0) delete this; } // // 'ppdcShared::retain()' - Increment the use count for this data. // void ppdcShared::retain() { use ++; } cups-2.4.7/ppdc/ppdc-profile.cxx0000644000175000017500000000167414502571342016427 0ustar zdohnalzdohnal// // Color profile class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcProfile::ppdcProfile()' - Create a color profile. // ppdcProfile::ppdcProfile(const char *r, // I - Resolution name const char *m, // I - Media type name float d, // I - Density float g, // I - Gamma const float *p) // I - 3x3 transform matrix : ppdcShared() { PPDC_NEW; resolution = new ppdcString(r); media_type = new ppdcString(m); density = d; gamma = g; memcpy(profile, p, sizeof(profile)); } // // 'ppdcProfile::~ppdcProfile()' - Destroy a color profile. // ppdcProfile::~ppdcProfile() { PPDC_DELETE; resolution->release(); media_type->release(); } cups-2.4.7/ppdc/ppdc-private.h0000644000175000017500000000154114502571342016057 0ustar zdohnalzdohnal// // Private definitions for the CUPS PPD Compiler. // // Copyright 2009-2010 by Apple Inc. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // #ifndef _PPDC_PRIVATE_H_ # define _PPDC_PRIVATE_H_ // // Include necessary headers... // # include "ppdc.h" # include // // Macros... // # ifdef PPDC_DEBUG # define PPDC_NEW DEBUG_printf(("%s: %p new", class_name(), this)) # define PPDC_NEWVAL(s) DEBUG_printf(("%s(\"%s\"): %p new", class_name(), s, this)) # define PPDC_DELETE DEBUG_printf(("%s: %p delete", class_name(), this)) # define PPDC_DELETEVAL(s) DEBUG_printf(("%s(\"%s\"): %p delete", class_name(), s, this)) # else # define PPDC_NEW # define PPDC_NEWVAL(s) # define PPDC_DELETE # define PPDC_DELETEVAL(s) # endif /* PPDC_DEBUG */ #endif // !_PPDC_PRIVATE_H_ cups-2.4.7/ppdc/ppdc-option.cxx0000644000175000017500000000402214502571342016265 0ustar zdohnalzdohnal// // Option class for the CUPS PPD Compiler. // // Copyright 2007-2011 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcOption::ppdcOption()' - Create a new option. // ppdcOption::ppdcOption(ppdcOptType ot, // I - Option type const char *n, // I - Option name const char *t, // I - Option text ppdcOptSection s, // I - Section float o) // I - Ordering number : ppdcShared() { PPDC_NEW; type = ot; name = new ppdcString(n); text = new ppdcString(t); section = s; order = o; choices = new ppdcArray(); defchoice = 0; } // // 'ppdcOption::ppdcOption()' - Copy a new option. // ppdcOption::ppdcOption(ppdcOption *o) // I - Template option { PPDC_NEW; o->name->retain(); o->text->retain(); if (o->defchoice) o->defchoice->retain(); type = o->type; name = o->name; text = o->text; section = o->section; order = o->order; choices = new ppdcArray(o->choices); defchoice = o->defchoice; } // // 'ppdcOption::~ppdcOption()' - Destroy an option. // ppdcOption::~ppdcOption() { PPDC_DELETE; name->release(); text->release(); if (defchoice) defchoice->release(); choices->release(); } // // 'ppdcOption::find_choice()' - Find an option choice. // ppdcChoice * // O - Choice or NULL ppdcOption::find_choice(const char *n) // I - Name of choice { ppdcChoice *c; // Current choice for (c = (ppdcChoice *)choices->first(); c; c = (ppdcChoice *)choices->next()) if (!_cups_strcasecmp(n, c->name->value)) return (c); return (0); } // // 'ppdcOption::set_defchoice()' - Set the default choice. // void ppdcOption::set_defchoice(ppdcChoice *c) // I - Choice { if (defchoice) defchoice->release(); if (c->name) c->name->retain(); defchoice = c->name; } cups-2.4.7/ppdc/ppdc-message.cxx0000644000175000017500000000132114502571342016400 0ustar zdohnalzdohnal// // Shared message class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcMessage::ppdcMessage()' - Create a shared message. // ppdcMessage::ppdcMessage(const char *i, // I - ID const char *s) // I - Text : ppdcShared() { PPDC_NEW; id = new ppdcString(i); string = new ppdcString(s); } // // 'ppdcMessage::~ppdcMessage()' - Destroy a shared message. // ppdcMessage::~ppdcMessage() { PPDC_DELETE; id->release(); string->release(); } cups-2.4.7/ppdc/ppdc-mediasize.cxx0000644000175000017500000000307714502571342016740 0ustar zdohnalzdohnal// // Shared media size class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcMediaSize::ppdcMediaSize()' - Create a new media size. // ppdcMediaSize::ppdcMediaSize(const char *n, // I - Name of media size const char *t, // I - Text of media size float w, // I - Width in points float l, // I - Length in points float lm, // I - Left margin in points float bm, // I - Bottom margin in points float rm, // I - Right margin in points float tm, // I - Top margin in points const char *sc, // I - PageSize code, if any const char *rc) // I - PageRegion code, if any : ppdcShared() { PPDC_NEW; name = new ppdcString(n); text = new ppdcString(t); width = w; length = l; left = lm; bottom = bm; right = rm; top = tm; size_code = new ppdcString(sc); region_code = new ppdcString(rc); if (left < 0.0f) left = 0.0f; if (bottom < 0.0f) bottom = 0.0f; if (right < 0.0f) right = 0.0f; if (top < 0.0f) top = 0.0f; } // // 'ppdcMediaSize::~ppdcMediaSize()' - Destroy a media size. // ppdcMediaSize::~ppdcMediaSize() { PPDC_DELETE; name->release(); text->release(); size_code->release(); region_code->release(); } cups-2.4.7/ppdc/ppdc-import.cxx0000644000175000017500000002341114502571342016272 0ustar zdohnalzdohnal// // PPD file import methods for the CUPS PPD Compiler. // // Copyright 2007-2011 by Apple Inc. // Copyright 2002-2006 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" #include // // 'ppdcSource::import_ppd()' - Import a PPD file. // int // O - 1 on success, 0 on failure ppdcSource::import_ppd(const char *f) // I - Filename { int i, j, k; // Looping vars cups_file_t *fp; // File char line[256], // Comment line *ptr; // Pointer into line int cost; // Cost for filter ppd_file_t *ppd; // PPD file data ppd_group_t *group; // PPD group ppd_option_t *option; // PPD option ppd_choice_t *choice; // PPD choice ppd_attr_t *attr; // PPD attribute ppd_const_t *constraint; // PPD UI constraint ppd_const_t *constraint2; // Temp PPD UI constraint ppd_size_t *size; // PPD page size ppdcDriver *driver; // Driver ppdcFilter *filter; // Current filter ppdcFont *font; // Font ppdcGroup *cgroup; // UI group ppdcOption *coption; // UI option ppdcChoice *cchoice; // UI choice ppdcConstraint *cconstraint; // UI constraint ppdcMediaSize *csize; // Media size // Try opening the PPD file... if ((ppd = ppdOpenFile(f)) == NULL) return (0); // All PPD files need a PCFileName attribute... if (!ppd->pcfilename) { ppdClose(ppd); return (0); } // See if the driver has already been imported... if (find_driver(ppd->pcfilename)) { ppdClose(ppd); return (1); } // Create a new PPD file... if ((fp = cupsFileOpen(f, "r")) == NULL) { ppdClose(ppd); return (0); } driver = new ppdcDriver(); driver->type = PPDC_DRIVER_PS; drivers->add(driver); // Read the initial comments from the PPD file and use them as the // copyright/license text... cupsFileGets(fp, line, sizeof(line)); // Skip *PPD-Adobe-M.m while (cupsFileGets(fp, line, sizeof(line))) if (strncmp(line, "*%", 2)) break; else if (strncmp(line, "*%%%% ", 6)) { for (ptr = line + 2; isspace(*ptr); ptr ++); driver->add_copyright(ptr); } cupsFileClose(fp); // Then add the stuff from the PPD file... if (ppd->modelname && ppd->manufacturer && !_cups_strncasecmp(ppd->modelname, ppd->manufacturer, strlen(ppd->manufacturer))) { ptr = ppd->modelname + strlen(ppd->manufacturer); while (isspace(*ptr)) ptr ++; } else ptr = ppd->modelname; if (ppd->nickname) driver->add_attr(new ppdcAttr("NickName", NULL, NULL, ppd->nickname)); if (ppd->shortnickname) driver->add_attr(new ppdcAttr("ShortNickName", NULL, NULL, ppd->shortnickname)); driver->manufacturer = new ppdcString(ppd->manufacturer); driver->model_name = new ppdcString(ptr); driver->pc_file_name = new ppdcString(ppd->pcfilename); attr = ppdFindAttr(ppd, "FileVersion", NULL); driver->version = new ppdcString(attr ? attr->value : NULL); driver->model_number = ppd->model_number; driver->manual_copies = ppd->manual_copies; driver->color_device = ppd->color_device; driver->throughput = ppd->throughput; driver->variable_paper_size = ppd->variable_sizes; driver->max_width = ppd->custom_max[0]; driver->max_length = ppd->custom_max[1]; driver->min_width = ppd->custom_min[0]; driver->min_length = ppd->custom_min[1]; driver->left_margin = ppd->custom_margins[0]; driver->bottom_margin = ppd->custom_margins[1]; driver->right_margin = ppd->custom_margins[2]; driver->top_margin = ppd->custom_margins[3]; for (i = 0; i < ppd->num_filters; i ++) { strlcpy(line, ppd->filters[i], sizeof(line)); for (ptr = line; *ptr; ptr ++) if (isspace(*ptr & 255)) break; *ptr++ = '\0'; cost = strtol(ptr, &ptr, 10); while (isspace(*ptr & 255)) ptr ++; filter = new ppdcFilter(line, ptr, cost); driver->add_filter(filter); } attr = ppdFindAttr(ppd, "DefaultFont", NULL); driver->default_font = new ppdcString(attr ? attr->value : NULL); // Collect media sizes... ppd_option_t *region_option, // PageRegion option *size_option; // PageSize option ppd_choice_t *region_choice, // PageRegion choice *size_choice; // PageSize choice region_option = ppdFindOption(ppd, "PageRegion"); size_option = ppdFindOption(ppd, "PageSize"); for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) { // Don't do custom size here... if (!_cups_strcasecmp(size->name, "Custom")) continue; // Get the code for the PageSize and PageRegion options... region_choice = ppdFindChoice(region_option, size->name); size_choice = ppdFindChoice(size_option, size->name); // Create a new media size record and add it to the driver... csize = new ppdcMediaSize(size->name, size_choice->text, size->width, size->length, size->left, size->bottom, size->width - size->right, size->length - size->top, size_choice->code, region_choice->code); driver->add_size(csize); if (!_cups_strcasecmp(size_option->defchoice, size->name)) driver->set_default_size(csize); } // Now all of the options... for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) { cgroup = new ppdcGroup(group->name, group->text); driver->add_group(cgroup); for (j = group->num_options, option = group->options; j > 0; j --, option ++) { if (!strcmp(option->keyword, "PageSize") || !strcmp(option->keyword, "PageRegion")) continue; coption = new ppdcOption((ppdcOptType)option->ui, option->keyword, option->text, (ppdcOptSection)option->section, option->order); cgroup->add_option(coption); for (k = option->num_choices, choice = option->choices; k > 0; k --, choice ++) { if (!strcmp(choice->choice, "Custom")) continue; cchoice = new ppdcChoice(choice->choice, choice->text, choice->code); coption->add_choice(cchoice); if (!_cups_strcasecmp(option->defchoice, choice->choice)) coption->set_defchoice(cchoice); } } } // Now the constraints... for (i = ppd->num_consts, constraint = ppd->consts; i > 0; i --, constraint ++) { // Look for mirrored constraints... for (j = i - 1, constraint2 = constraint + 1; j > 0; j --, constraint2 ++) if (!strcmp(constraint->option1, constraint2->option2) && !strcmp(constraint->choice1, constraint2->choice2) && !strcmp(constraint->option2, constraint2->option1) && !strcmp(constraint->choice2, constraint2->choice1)) break; if (j) continue; cconstraint = new ppdcConstraint(constraint->option2, constraint->choice2, constraint->option1, constraint->choice1); driver->add_constraint(cconstraint); } for (i = 0; i < ppd->num_attrs; i ++) { attr = ppd->attrs[i]; if (!strcmp(attr->name, "Font")) { // Font... char encoding[256], // Encoding string version[256], // Version string charset[256], // Charset string status[256]; // Status string ppdcFontStatus fstatus; // Status enumeration if (sscanf(attr->value, "%s%*[^\"]\"%[^\"]\"%s%s", encoding, version, charset, status) != 4) { _cupsLangPrintf(stderr, _("ppdc: Bad font attribute: %s"), attr->value); continue; } if (!strcmp(status, "ROM")) fstatus = PPDC_FONT_ROM; else fstatus = PPDC_FONT_DISK; font = new ppdcFont(attr->spec, encoding, version, charset, fstatus); driver->add_font(font); } else if (!strcmp(attr->name, "CustomPageSize")) { driver->set_custom_size_code(attr->value); } else if ((strncmp(attr->name, "Default", 7) || !strcmp(attr->name, "DefaultColorSpace")) && strcmp(attr->name, "ColorDevice") && strcmp(attr->name, "Manufacturer") && strcmp(attr->name, "ModelName") && strcmp(attr->name, "MaxMediaHeight") && strcmp(attr->name, "MaxMediaWidth") && strcmp(attr->name, "NickName") && strcmp(attr->name, "ParamCustomPageSize") && strcmp(attr->name, "ShortNickName") && strcmp(attr->name, "Throughput") && strcmp(attr->name, "PCFileName") && strcmp(attr->name, "FileVersion") && strcmp(attr->name, "FormatVersion") && strcmp(attr->name, "HWMargins") && strcmp(attr->name, "VariablePaperSize") && strcmp(attr->name, "LanguageEncoding") && strcmp(attr->name, "LanguageVersion") && strcmp(attr->name, "cupsFilter") && strcmp(attr->name, "cupsFlipDuplex") && strcmp(attr->name, "cupsLanguages") && strcmp(attr->name, "cupsManualCopies") && strcmp(attr->name, "cupsModelNumber") && strcmp(attr->name, "cupsVersion")) { if ((ptr = strchr(attr->name, '.')) != NULL && ((ptr - attr->name) == 2 || (ptr - attr->name) == 5)) { // Might be a localization attribute; test further... if (isalpha(attr->name[0] & 255) && isalpha(attr->name[1] & 255) && (attr->name[2] == '.' || (attr->name[2] == '_' && isalpha(attr->name[3] & 255) && isalpha(attr->name[4] & 255)))) continue; } // Attribute... driver->add_attr(new ppdcAttr(attr->name, attr->spec, attr->text, attr->value)); } else if (!strncmp(attr->name, "Default", 7) && !ppdFindOption(ppd, attr->name + 7) && strcmp(attr->name, "DefaultFont") && strcmp(attr->name, "DefaultImageableArea") && strcmp(attr->name, "DefaultPaperDimension") && strcmp(attr->name, "DefaultFont")) { // Default attribute... driver->add_attr(new ppdcAttr(attr->name, attr->spec, attr->text, attr->value)); } } ppdClose(ppd); return (1); } cups-2.4.7/ppdc/ppdc-group.cxx0000644000175000017500000000302614502571342016114 0ustar zdohnalzdohnal// // Group class for the CUPS PPD Compiler. // // Copyright 2007-2011 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcGroup::ppdcGroup()' - Create a new group. // ppdcGroup::ppdcGroup(const char *n, // I - Name of group const char *t) // I - Text of group { PPDC_NEWVAL(n); name = new ppdcString(n); text = new ppdcString(t); options = new ppdcArray(); } // // 'ppdcGroup::ppdcGroup()' - Copy a new group. // ppdcGroup::ppdcGroup(ppdcGroup *g) // I - Group template { PPDC_NEWVAL(g->name->value); g->name->retain(); g->text->retain(); name = g->name; text = g->text; options = new ppdcArray(); for (ppdcOption *o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) options->add(new ppdcOption(o)); } // // 'ppdcGroup::~ppdcGroup()' - Destroy a group. // ppdcGroup::~ppdcGroup() { PPDC_DELETEVAL(name ? name->value : NULL); name->release(); text->release(); options->release(); name = text = 0; options = 0; } // // 'ppdcGroup::find_option()' - Find an option in a group. // ppdcOption * ppdcGroup::find_option(const char *n) // I - Name of option { ppdcOption *o; // Current option for (o = (ppdcOption *)options->first(); o; o = (ppdcOption *)options->next()) if (!_cups_strcasecmp(n, o->name->value)) return (o); return (0); } cups-2.4.7/ppdc/ppdc-font.cxx0000644000175000017500000000172714502571342015734 0ustar zdohnalzdohnal// // Shared font class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcFont::ppdcFont()' - Create a shared font. // ppdcFont::ppdcFont(const char *n, // I - Name of font const char *e, // I - Font encoding const char *v, // I - Font version const char *c, // I - Font charset ppdcFontStatus s) // I - Font status : ppdcShared() { PPDC_NEW; name = new ppdcString(n); encoding = new ppdcString(e); version = new ppdcString(v); charset = new ppdcString(c); status = s; } // // 'ppdcFont::~ppdcFont()' - Destroy a shared font. // ppdcFont::~ppdcFont() { PPDC_DELETE; name->release(); encoding->release(); version->release(); charset->release(); } cups-2.4.7/ppdc/ppdc-filter.cxx0000644000175000017500000000137514502571342016252 0ustar zdohnalzdohnal// // Filter class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcFilter::ppdcFilter()' - Create a filter. // ppdcFilter::ppdcFilter(const char *t, // I - MIME type const char *p, // I - Filter program int c) // I - Relative cost : ppdcShared() { PPDC_NEW; mime_type = new ppdcString(t); program = new ppdcString(p); cost = c; } // // 'ppdcFilter::~ppdcFilter()' - Destroy a filter. // ppdcFilter::~ppdcFilter() { PPDC_DELETE; mime_type->release(); program->release(); } cups-2.4.7/ppdc/ppdc-file.cxx0000644000175000017500000000305014502571342015674 0ustar zdohnalzdohnal// // File class for the CUPS PPD Compiler. // // Copyright 2007-2010 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcFile::ppdcFile()' - Create (open) a file. // ppdcFile::ppdcFile(const char *f, // I - File to open cups_file_t *ffp) // I - File pointer to use { if (ffp) { fp = ffp; cupsFileRewind(fp); } else fp = cupsFileOpen(f, "r"); close_on_delete = !ffp; filename = f; line = 1; if (!fp) _cupsLangPrintf(stderr, _("ppdc: Unable to open %s: %s"), f, strerror(errno)); } // // 'ppdcFile::~ppdcFile()' - Delete (close) a file. // ppdcFile::~ppdcFile() { if (close_on_delete && fp) cupsFileClose(fp); } // // 'ppdcFile::get()' - Get a character from a file. // int ppdcFile::get() { int ch; // Character from file // Return EOF if there is no open file... if (!fp) return (EOF); // Get the character... ch = cupsFileGetChar(fp); // Update the line number as needed... if (ch == '\n') line ++; // Return the character... return (ch); } // // 'ppdcFile::peek()' - Look at the next character from a file. // int // O - Next character in file ppdcFile::peek() { // Return immediately if there is no open file... if (!fp) return (EOF); // Otherwise return the next character without advancing... return (cupsFilePeekChar(fp)); } cups-2.4.7/ppdc/ppdc-driver.cxx0000644000175000017500000011751714502571342016266 0ustar zdohnalzdohnal// // PPD file compiler definitions for the CUPS PPD Compiler. // // Copyright © 2007-2019 by Apple Inc. // Copyright © 2002-2006 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcDriver::ppdcDriver()' - Create a new printer driver. // ppdcDriver::ppdcDriver(ppdcDriver *d) // I - Printer driver template : ppdcShared() { ppdcGroup *g; // Current group PPDC_NEW; if (d) { // Bump the use count of any strings we inherit... if (d->manufacturer) d->manufacturer->retain(); if (d->version) d->version->retain(); if (d->default_font) d->default_font->retain(); if (d->default_size) d->default_size->retain(); if (d->custom_size_code) d->custom_size_code->retain(); // Copy all of the data from the driver template... copyright = new ppdcArray(d->copyright); manufacturer = d->manufacturer; model_name = 0; file_name = 0; pc_file_name = 0; type = d->type; version = d->version; model_number = d->model_number; manual_copies = d->manual_copies; color_device = d->color_device; throughput = d->throughput; attrs = new ppdcArray(d->attrs); constraints = new ppdcArray(d->constraints); filters = new ppdcArray(d->filters); fonts = new ppdcArray(d->fonts); profiles = new ppdcArray(d->profiles); sizes = new ppdcArray(d->sizes); default_font = d->default_font; default_size = d->default_size; variable_paper_size = d->variable_paper_size; custom_size_code = d->custom_size_code; left_margin = d->left_margin; bottom_margin = d->bottom_margin; right_margin = d->right_margin; top_margin = d->top_margin; max_width = d->max_width; max_length = d->max_length; min_width = d->min_width; min_length = d->min_length; // Then copy the groups manually, since we want separate copies // of the groups and options... groups = new ppdcArray(); for (g = (ppdcGroup *)d->groups->first(); g; g = (ppdcGroup *)d->groups->next()) groups->add(new ppdcGroup(g)); } else { // Zero all of the data in the driver... copyright = new ppdcArray(); manufacturer = 0; model_name = 0; file_name = 0; pc_file_name = 0; version = 0; type = PPDC_DRIVER_CUSTOM; model_number = 0; manual_copies = 0; color_device = 0; throughput = 1; attrs = new ppdcArray(); constraints = new ppdcArray(); fonts = new ppdcArray(); filters = new ppdcArray(); groups = new ppdcArray(); profiles = new ppdcArray(); sizes = new ppdcArray(); default_font = 0; default_size = 0; variable_paper_size = 0; custom_size_code = 0; left_margin = 0; bottom_margin = 0; right_margin = 0; top_margin = 0; max_width = 0; max_length = 0; min_width = 0; min_length = 0; } } // // 'ppdcDriver::~ppdcDriver()' - Destroy a printer driver. // ppdcDriver::~ppdcDriver() { PPDC_DELETE; copyright->release(); if (manufacturer) manufacturer->release(); if (model_name) model_name->release(); if (file_name) file_name->release(); if (pc_file_name) pc_file_name->release(); if (version) version->release(); if (default_font) default_font->release(); if (default_size) default_size->release(); if (custom_size_code) custom_size_code->release(); attrs->release(); constraints->release(); filters->release(); fonts->release(); groups->release(); profiles->release(); sizes->release(); } // // 'ppdcDriver::find_attr()' - Find an attribute. // ppdcAttr * // O - Attribute or NULL ppdcDriver::find_attr(const char *k, // I - Keyword string const char *s) // I - Spec string { ppdcAttr *a; // Current attribute for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) if (!strcmp(a->name->value, k) && ((!s && (!a->selector->value || !a->selector->value[0])) || (s && a->selector->value && !strcmp(a->selector->value, s)))) return (a); return (NULL); } // // 'ppdcDriver::find_group()' - Find a group. // ppdcGroup * // O - Matching group or NULL ppdcDriver::find_group(const char *n) // I - Group name { ppdcGroup *g; // Current group for (g = (ppdcGroup *)groups->first(); g; g = (ppdcGroup *)groups->next()) if (!_cups_strcasecmp(n, g->name->value)) return (g); return (0); } // // 'ppdcDriver::find_option()' - Find an option. // ppdcOption * // O - Matching option or NULL ppdcDriver::find_option(const char *n) // I - Option name { return (find_option_group(n, (ppdcGroup **)0)); } // // 'ppdcDriver::find_option_group()' - Find an option and its group. // ppdcOption * // O - Matching option or NULL ppdcDriver::find_option_group( const char *n, // I - Option name ppdcGroup **mg) // O - Matching group or NULL { ppdcGroup *g; // Current group ppdcOption *o; // Current option for (g = (ppdcGroup *)groups->first(); g; g = (ppdcGroup *)groups->next()) for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) if (!_cups_strcasecmp(n, o->name->value)) { if (mg) *mg = g; return (o); } if (mg) *mg = (ppdcGroup *)0; return (0); } // // 'ppdcDriver::set_custom_size_code()' - Set the custom page size code. // void ppdcDriver::set_custom_size_code( const char *c) // I - CustomPageSize code { if (custom_size_code) custom_size_code->release(); custom_size_code = new ppdcString(c); } // // 'ppdcDriver::set_default_font()' - Set the default font name. // void ppdcDriver::set_default_font( ppdcFont *f) // I - Font { if (default_font) default_font->release(); if (f) { f->name->retain(); default_font = f->name; } else default_font = 0; } // // 'ppdcDriver::set_default_size()' - Set the default size name. // void ppdcDriver::set_default_size( ppdcMediaSize *m) // I - Media size { if (default_size) default_size->release(); if (m) { m->name->retain(); default_size = m->name; } else default_size = 0; } // // 'ppdcDriver::set_file_name()' - Set the full filename. // void ppdcDriver::set_file_name(const char *f)// I - Filename { if (file_name) file_name->release(); file_name = new ppdcString(f); } // // 'ppdcDriver::set_manufacturer()' - Set the manufacturer name. // void ppdcDriver::set_manufacturer( const char *m) // I - Model name { if (manufacturer) manufacturer->release(); manufacturer = new ppdcString(m); } // // 'ppdcDriver::set_model_name()' - Set the model name. // void ppdcDriver::set_model_name( const char *m) // I - Model name { if (model_name) model_name->release(); model_name = new ppdcString(m); } // // 'ppdcDriver::set_pc_file_name()' - Set the PC filename. // void ppdcDriver::set_pc_file_name( const char *f) // I - Filename { if (pc_file_name) pc_file_name->release(); pc_file_name = new ppdcString(f); } // // 'ppdcDriver::set_version()' - Set the version string. // void ppdcDriver::set_version(const char *v) // I - Version { if (version) version->release(); version = new ppdcString(v); } // // 'ppdcDriver::write_ppd_file()' - Write a PPD file... // int // O - 0 on success, -1 on failure ppdcDriver::write_ppd_file( cups_file_t *fp, // I - PPD file ppdcCatalog *catalog, // I - Message catalog ppdcArray *locales, // I - Additional languages to add ppdcSource *src, // I - Driver source ppdcLineEnding le) // I - Line endings to use { bool delete_cat; // Delete the catalog when we are done? char query[42], // Query attribute custom[42]; // Custom attribute ppdcString *s; // Copyright string ppdcGroup *g; // Current group ppdcOption *o; // Current option ppdcChoice *c; // Current choice ppdcMediaSize *m; // Current media size ppdcProfile *p; // Current color profile ppdcFilter *f; // Current filter ppdcFont *fn, // Current font *bfn; // Current base font ppdcConstraint *cn; // Current constraint ppdcAttr *a; // Current attribute const char *lf; // Linefeed character to use // If we don't have a message catalog, use an empty (English) one... if (!catalog) { catalog = new ppdcCatalog(NULL); delete_cat = true; } else delete_cat = false; // Figure out the end-of-line string... if (le == PPDC_LFONLY) lf = "\n"; else if (le == PPDC_CRONLY) lf = "\r"; else lf = "\r\n"; // Write the standard header stuff... cupsFilePrintf(fp, "*PPD-Adobe: \"4.3\"%s", lf); cupsFilePrintf(fp, "*%%%%%%%% PPD file for %s with CUPS.%s", model_name->value, lf); cupsFilePrintf(fp, "*%%%%%%%% Created by the CUPS PPD Compiler " CUPS_SVERSION ".%s", lf); for (s = (ppdcString *)copyright->first(); s; s = (ppdcString *)copyright->next()) cupsFilePrintf(fp, "*%% %s%s", catalog->find_message(s->value), lf); cupsFilePrintf(fp, "*FormatVersion: \"4.3\"%s", lf); cupsFilePrintf(fp, "*FileVersion: \"%s\"%s", version->value, lf); a = find_attr("LanguageVersion", NULL); cupsFilePrintf(fp, "*LanguageVersion: %s%s", catalog->find_message(a ? a->value->value : "English"), lf); a = find_attr("LanguageEncoding", NULL); cupsFilePrintf(fp, "*LanguageEncoding: %s%s", catalog->find_message(a ? a->value->value : "ISOLatin1"), lf); cupsFilePrintf(fp, "*PCFileName: \"%s\"%s", pc_file_name->value, lf); for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) if (!strcmp(a->name->value, "Product")) break; if (a) { for (; a; a = (ppdcAttr *)attrs->next()) if (!strcmp(a->name->value, "Product")) cupsFilePrintf(fp, "*Product: \"%s\"%s", a->value->value, lf); } else cupsFilePrintf(fp, "*Product: \"(%s)\"%s", model_name->value, lf); cupsFilePrintf(fp, "*Manufacturer: \"%s\"%s", catalog->find_message(manufacturer->value), lf); if ((a = find_attr("ModelName", NULL)) != NULL) cupsFilePrintf(fp, "*ModelName: \"%s\"%s", catalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*ModelName: \"%s %s\"%s", catalog->find_message(manufacturer->value), catalog->find_message(model_name->value), lf); else cupsFilePrintf(fp, "*ModelName: \"%s\"%s", catalog->find_message(model_name->value), lf); if ((a = find_attr("ShortNickName", NULL)) != NULL) cupsFilePrintf(fp, "*ShortNickName: \"%s\"%s", catalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*ShortNickName: \"%s %s\"%s", catalog->find_message(manufacturer->value), catalog->find_message(model_name->value), lf); else cupsFilePrintf(fp, "*ShortNickName: \"%s\"%s", catalog->find_message(model_name->value), lf); if ((a = find_attr("NickName", NULL)) != NULL) cupsFilePrintf(fp, "*NickName: \"%s\"%s", catalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*NickName: \"%s %s, %s\"%s", catalog->find_message(manufacturer->value), catalog->find_message(model_name->value), version->value, lf); else cupsFilePrintf(fp, "*NickName: \"%s, %s\"%s", catalog->find_message(model_name->value), version->value, lf); for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) if (!strcmp(a->name->value, "PSVersion")) break; if (a) { for (; a; a = (ppdcAttr *)attrs->next()) if (!strcmp(a->name->value, "PSVersion")) cupsFilePrintf(fp, "*PSVersion: \"%s\"%s", a->value->value, lf); } else cupsFilePrintf(fp, "*PSVersion: \"(3010.000) 0\"%s", lf); if ((a = find_attr("LanguageLevel", NULL)) != NULL) cupsFilePrintf(fp, "*LanguageLevel: \"%s\"%s", a->value->value, lf); else cupsFilePrintf(fp, "*LanguageLevel: \"3\"%s", lf); cupsFilePrintf(fp, "*ColorDevice: %s%s", color_device ? "True" : "False", lf); if ((a = find_attr("DefaultColorSpace", NULL)) != NULL) cupsFilePrintf(fp, "*DefaultColorSpace: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*DefaultColorSpace: %s%s", color_device ? "RGB" : "Gray", lf); if ((a = find_attr("FileSystem", NULL)) != NULL) cupsFilePrintf(fp, "*FileSystem: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*FileSystem: False%s", lf); cupsFilePrintf(fp, "*Throughput: \"%d\"%s", throughput, lf); if ((a = find_attr("LandscapeOrientation", NULL)) != NULL) cupsFilePrintf(fp, "*LandscapeOrientation: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*LandscapeOrientation: Plus90%s", lf); if ((a = find_attr("TTRasterizer", NULL)) != NULL) cupsFilePrintf(fp, "*TTRasterizer: %s%s", a->value->value, lf); else if (type != PPDC_DRIVER_PS) cupsFilePrintf(fp, "*TTRasterizer: Type42%s", lf); struct lconv *loc = localeconv(); if (attrs->count) { // Write driver-defined attributes... cupsFilePrintf(fp, "*%% Driver-defined attributes...%s", lf); for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) { if (!strcmp(a->name->value, "Product") || !strcmp(a->name->value, "PSVersion") || !strcmp(a->name->value, "LanguageLevel") || !strcmp(a->name->value, "DefaultColorSpace") || !strcmp(a->name->value, "FileSystem") || !strcmp(a->name->value, "LandscapeOrientation") || !strcmp(a->name->value, "TTRasterizer") || !strcmp(a->name->value, "LanguageVersion") || !strcmp(a->name->value, "LanguageEncoding") || !strcmp(a->name->value, "ModelName") || !strcmp(a->name->value, "NickName") || !strcmp(a->name->value, "ShortNickName") || !strcmp(a->name->value, "cupsVersion")) continue; if (a->name->value[0] == '?' && (find_option(a->name->value + 1) || !strcmp(a->name->value, "?ImageableArea") || !strcmp(a->name->value, "?PageRegion") || !strcmp(a->name->value, "?PageSize") || !strcmp(a->name->value, "?PaperDimension"))) continue; if (!strncmp(a->name->value, "Custom", 6) && find_option(a->name->value + 6)) continue; if (!strncmp(a->name->value, "ParamCustom", 11) && find_option(a->name->value + 11)) continue; if (!a->selector->value || !a->selector->value[0]) cupsFilePrintf(fp, "*%s", a->name->value); else if (!a->text->value || !a->text->value[0]) cupsFilePrintf(fp, "*%s %s", a->name->value, a->selector->value); else cupsFilePrintf(fp, "*%s %s/%s", a->name->value, a->selector->value, a->text->value); if (strcmp(a->value->value, "False") && strcmp(a->value->value, "True") && strcmp(a->name->value, "1284Modes") && strcmp(a->name->value, "InkName") && strcmp(a->name->value, "PageStackOrder") && strncmp(a->name->value, "ParamCustom", 11) && strcmp(a->name->value, "Protocols") && strcmp(a->name->value, "ReferencePunch") && strncmp(a->name->value, "Default", 7)) { cupsFilePrintf(fp, ": \"%s\"%s", a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } else cupsFilePrintf(fp, ": %s%s", a->value->value, lf); } } if (type != PPDC_DRIVER_PS || filters->count) { if ((a = find_attr("cupsVersion", NULL)) != NULL) cupsFilePrintf(fp, "*cupsVersion: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*cupsVersion: %d.%d%s", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR, lf); cupsFilePrintf(fp, "*cupsModelNumber: %d%s", model_number, lf); cupsFilePrintf(fp, "*cupsManualCopies: %s%s", manual_copies ? "True" : "False", lf); if (filters->count) { for (f = (ppdcFilter *)filters->first(); f; f = (ppdcFilter *)filters->next()) cupsFilePrintf(fp, "*cupsFilter: \"%s %d %s\"%s", f->mime_type->value, f->cost, f->program->value, lf); } else { switch (type) { case PPDC_DRIVER_LABEL : cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-raster 50 " "rastertolabel\"%s", lf); break; case PPDC_DRIVER_EPSON : cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-raster 50 " "rastertoepson\"%s", lf); break; case PPDC_DRIVER_ESCP : cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-command 50 " "commandtoescpx\"%s", lf); cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-raster 50 " "rastertoescpx\"%s", lf); break; case PPDC_DRIVER_HP : cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-raster 50 " "rastertohp\"%s", lf); break; case PPDC_DRIVER_PCL : cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-command 50 " "commandtopclx\"%s", lf); cupsFilePrintf(fp, "*cupsFilter: \"application/vnd.cups-raster 50 " "rastertopclx\"%s", lf); break; default : break; } } for (p = (ppdcProfile *)profiles->first(); p; p = (ppdcProfile *)profiles->next()) { char density[255], gamma[255], profile[9][255]; _cupsStrFormatd(density, density + sizeof(density), p->density, loc); _cupsStrFormatd(gamma, gamma + sizeof(gamma), p->gamma, loc); for (int i = 0; i < 9; i ++) _cupsStrFormatd(profile[i], profile[i] + sizeof(profile[0]), p->profile[i], loc); cupsFilePrintf(fp, "*cupsColorProfile %s/%s: \"%s %s %s %s %s %s %s %s %s %s " "%s\"%s", p->resolution->value, p->media_type->value, density, gamma, profile[0], profile[1], profile[2], profile[3], profile[4], profile[5], profile[6], profile[7], profile[8], lf); } } if (locales) { // Add localizations for additional languages... ppdcString *locale; // Locale name ppdcCatalog *locatalog; // Message catalog for locale // Write the list of languages... cupsFilePrintf(fp, "*cupsLanguages: \"en"); for (locale = (ppdcString *)locales->first(); locale; locale = (ppdcString *)locales->next()) { // Skip (US) English... if (!strcmp(locale->value, "en") || !strcmp(locale->value, "en_US")) continue; // See if we have a po file for this language... if (!src->find_po(locale->value)) { // No, see if we can use the base file? locatalog = new ppdcCatalog(locale->value); if (locatalog->messages->count == 0) { // No, skip this one... _cupsLangPrintf(stderr, _("ppdc: No message catalog provided for locale " "%s."), locale->value); delete locatalog; continue; } // Add the base file to the list... src->po_files->add(locatalog); } cupsFilePrintf(fp, " %s", locale->value); } cupsFilePrintf(fp, "\"%s", lf); } for (cn = (ppdcConstraint *)constraints->first(); cn; cn = (ppdcConstraint *)constraints->next()) { // First constrain 1 against 2... if (!strncmp(cn->option1->value, "*Custom", 7) || !strncmp(cn->option2->value, "*Custom", 7)) cupsFilePuts(fp, "*NonUIConstraints: "); else cupsFilePuts(fp, "*UIConstraints: "); if (cn->option1->value[0] != '*') cupsFilePutChar(fp, '*'); cupsFilePuts(fp, cn->option1->value); if (cn->choice1->value) cupsFilePrintf(fp, " %s", cn->choice1->value); cupsFilePutChar(fp, ' '); if (cn->option2->value[0] != '*') cupsFilePutChar(fp, '*'); cupsFilePuts(fp, cn->option2->value); if (cn->choice2->value) cupsFilePrintf(fp, " %s", cn->choice2->value); cupsFilePuts(fp, lf); // Then constrain 2 against 1... if (!strncmp(cn->option1->value, "*Custom", 7) || !strncmp(cn->option2->value, "*Custom", 7)) cupsFilePuts(fp, "*NonUIConstraints: "); else cupsFilePuts(fp, "*UIConstraints: "); if (cn->option2->value[0] != '*') cupsFilePutChar(fp, '*'); cupsFilePuts(fp, cn->option2->value); if (cn->choice2->value) cupsFilePrintf(fp, " %s", cn->choice2->value); cupsFilePutChar(fp, ' '); if (cn->option1->value[0] != '*') cupsFilePutChar(fp, '*'); cupsFilePuts(fp, cn->option1->value); if (cn->choice1->value) cupsFilePrintf(fp, " %s", cn->choice1->value); cupsFilePuts(fp, lf); } // PageSize option... cupsFilePrintf(fp, "*OpenUI *PageSize/Media Size: PickOne%s", lf); cupsFilePrintf(fp, "*OrderDependency: 10 AnySetup *PageSize%s", lf); cupsFilePrintf(fp, "*DefaultPageSize: %s%s", default_size ? default_size->value : "Letter", lf); for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) if (m->size_code->value) { cupsFilePrintf(fp, "*PageSize %s/%s: \"%s\"%s", m->name->value, catalog->find_message(m->text->value), m->size_code->value, lf); if (strchr(m->size_code->value, '\n') || strchr(m->size_code->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } else cupsFilePrintf(fp, "*PageSize %s/%s: \"<>setpagedevice\"%s", m->name->value, catalog->find_message(m->text->value), m->width, m->length, lf); if ((a = find_attr("?PageSize", NULL)) != NULL) { cupsFilePrintf(fp, "*?PageSize: \"%s\"%s", a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } cupsFilePrintf(fp, "*CloseUI: *PageSize%s", lf); // PageRegion option... cupsFilePrintf(fp, "*OpenUI *PageRegion/Media Size: PickOne%s", lf); cupsFilePrintf(fp, "*OrderDependency: 10 AnySetup *PageRegion%s", lf); cupsFilePrintf(fp, "*DefaultPageRegion: %s%s", default_size ? default_size->value : "Letter", lf); for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) if (m->region_code->value) { cupsFilePrintf(fp, "*PageRegion %s/%s: \"%s\"%s", m->name->value, catalog->find_message(m->text->value), m->region_code->value, lf); if (strchr(m->region_code->value, '\n') || strchr(m->region_code->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } else cupsFilePrintf(fp, "*PageRegion %s/%s: \"<>setpagedevice\"%s", m->name->value, catalog->find_message(m->text->value), m->width, m->length, lf); if ((a = find_attr("?PageRegion", NULL)) != NULL) { cupsFilePrintf(fp, "*?PageRegion: \"%s\"%s", a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } cupsFilePrintf(fp, "*CloseUI: *PageRegion%s", lf); // ImageableArea info... cupsFilePrintf(fp, "*DefaultImageableArea: %s%s", default_size ? default_size->value : "Letter", lf); char left[255], right[255], bottom[255], top[255]; for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) { _cupsStrFormatd(left, left + sizeof(left), m->left, loc); _cupsStrFormatd(bottom, bottom + sizeof(bottom), m->bottom, loc); _cupsStrFormatd(right, right + sizeof(right), m->width - m->right, loc); _cupsStrFormatd(top, top + sizeof(top), m->length - m->top, loc); cupsFilePrintf(fp, "*ImageableArea %s/%s: \"%s %s %s %s\"%s", m->name->value, catalog->find_message(m->text->value), left, bottom, right, top, lf); } if ((a = find_attr("?ImageableArea", NULL)) != NULL) { cupsFilePrintf(fp, "*?ImageableArea: \"%s\"%s", a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } // PaperDimension info... cupsFilePrintf(fp, "*DefaultPaperDimension: %s%s", default_size ? default_size->value : "Letter", lf); char width[255], length[255]; for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) { _cupsStrFormatd(width, width + sizeof(width), m->width, loc); _cupsStrFormatd(length, length + sizeof(length), m->length, loc); cupsFilePrintf(fp, "*PaperDimension %s/%s: \"%s %s\"%s", m->name->value, catalog->find_message(m->text->value), width, length, lf); } if ((a = find_attr("?PaperDimension", NULL)) != NULL) { cupsFilePrintf(fp, "*?PaperDimension: \"%s\"%s", a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } // Custom size support... if (variable_paper_size) { _cupsStrFormatd(width, width + sizeof(width), max_width, loc); _cupsStrFormatd(length, length + sizeof(length), max_length, loc); _cupsStrFormatd(left, left + sizeof(left), left_margin, loc); _cupsStrFormatd(bottom, bottom + sizeof(bottom), bottom_margin, loc); _cupsStrFormatd(right, right + sizeof(right), right_margin, loc); _cupsStrFormatd(top, top + sizeof(top), top_margin, loc); cupsFilePrintf(fp, "*MaxMediaWidth: \"%s\"%s", width, lf); cupsFilePrintf(fp, "*MaxMediaHeight: \"%s\"%s", length, lf); cupsFilePrintf(fp, "*HWMargins: %s %s %s %s%s", left, bottom, right, top, lf); if (custom_size_code && custom_size_code->value) { cupsFilePrintf(fp, "*CustomPageSize True: \"%s\"%s", custom_size_code->value, lf); if (strchr(custom_size_code->value, '\n') || strchr(custom_size_code->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } else cupsFilePrintf(fp, "*CustomPageSize True: \"pop pop pop <>setpagedevice\"%s", lf); if ((a = find_attr("ParamCustomPageSize", "Width")) != NULL) cupsFilePrintf(fp, "*ParamCustomPageSize Width: %s%s", a->value->value, lf); else { char width0[255]; _cupsStrFormatd(width0, width0 + sizeof(width0), min_width, loc); _cupsStrFormatd(width, width + sizeof(width), max_width, loc); cupsFilePrintf(fp, "*ParamCustomPageSize Width: 1 points %s %s%s", width0, width, lf); } if ((a = find_attr("ParamCustomPageSize", "Height")) != NULL) cupsFilePrintf(fp, "*ParamCustomPageSize Height: %s%s", a->value->value, lf); else { char length0[255]; _cupsStrFormatd(length0, length0 + sizeof(length0), min_length, loc); _cupsStrFormatd(length, length + sizeof(length), max_length, loc); cupsFilePrintf(fp, "*ParamCustomPageSize Height: 2 points %s %s%s", length0, length, lf); } if ((a = find_attr("ParamCustomPageSize", "WidthOffset")) != NULL) cupsFilePrintf(fp, "*ParamCustomPageSize WidthOffset: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*ParamCustomPageSize WidthOffset: 3 points 0 0%s", lf); if ((a = find_attr("ParamCustomPageSize", "HeightOffset")) != NULL) cupsFilePrintf(fp, "*ParamCustomPageSize HeightOffset: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*ParamCustomPageSize HeightOffset: 4 points 0 0%s", lf); if ((a = find_attr("ParamCustomPageSize", "Orientation")) != NULL) cupsFilePrintf(fp, "*ParamCustomPageSize Orientation: %s%s", a->value->value, lf); else cupsFilePrintf(fp, "*ParamCustomPageSize Orientation: 5 int 0 0%s", lf); } // All other options... for (g = (ppdcGroup *)groups->first(); g; g = (ppdcGroup *)groups->next()) { if (!g->options->count) continue; if (_cups_strcasecmp(g->name->value, "General")) cupsFilePrintf(fp, "*OpenGroup: %s/%s%s", g->name->value, catalog->find_message(g->text->value), lf); for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (!o->choices->count) continue; if (o->section == PPDC_SECTION_JCL) { if (!o->text->value) cupsFilePrintf(fp, "*JCLOpenUI *%s/%s: ", o->name->value, catalog->find_message(o->name->value)); else cupsFilePrintf(fp, "*JCLOpenUI *%s/%s: ", o->name->value, catalog->find_message(o->text->value)); } else if (!o->text->value) cupsFilePrintf(fp, "*OpenUI *%s/%s: ", o->name->value, catalog->find_message(o->name->value)); else cupsFilePrintf(fp, "*OpenUI *%s/%s: ", o->name->value, catalog->find_message(o->text->value)); switch (o->type) { case PPDC_BOOLEAN : cupsFilePrintf(fp, "Boolean%s", lf); break; default : cupsFilePrintf(fp, "PickOne%s", lf); break; case PPDC_PICKMANY : cupsFilePrintf(fp, "PickMany%s", lf); break; } char order[255]; _cupsStrFormatd(order, order + sizeof(order), o->order, loc); cupsFilePrintf(fp, "*OrderDependency: %s ", order); switch (o->section) { default : cupsFilePrintf(fp, "AnySetup"); break; case PPDC_SECTION_DOCUMENT : cupsFilePrintf(fp, "DocumentSetup"); break; case PPDC_SECTION_EXIT : cupsFilePrintf(fp, "ExitServer"); break; case PPDC_SECTION_JCL : cupsFilePrintf(fp, "JCLSetup"); break; case PPDC_SECTION_PAGE : cupsFilePrintf(fp, "PageSetup"); break; case PPDC_SECTION_PROLOG : cupsFilePrintf(fp, "Prolog"); break; } cupsFilePrintf(fp, " *%s%s", o->name->value, lf); if (o->defchoice) { // Use the programmer-supplied default... cupsFilePrintf(fp, "*Default%s: %s%s", o->name->value, o->defchoice->value, lf); } else { // Make the first choice the default... c = (ppdcChoice *)o->choices->first(); cupsFilePrintf(fp, "*Default%s: %s%s", o->name->value, c->name->value, lf); } for (c = (ppdcChoice *)o->choices->first(); c; c = (ppdcChoice *)o->choices->next()) { // Write this choice... if (!c->text->value) cupsFilePrintf(fp, "*%s %s/%s: \"%s\"%s", o->name->value, c->name->value, catalog->find_message(c->name->value), c->code->value, lf); else cupsFilePrintf(fp, "*%s %s/%s: \"%s\"%s", o->name->value, c->name->value, catalog->find_message(c->text->value), c->code->value, lf); // Multi-line commands need a *End line to terminate them. if (strchr(c->code->value, '\n') || strchr(c->code->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } snprintf(query, sizeof(query), "?%s", o->name->value); if ((a = find_attr(query, NULL)) != NULL) { cupsFilePrintf(fp, "*%s: \"%s\"%s", query, a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); } if (o->section == PPDC_SECTION_JCL) cupsFilePrintf(fp, "*JCLCloseUI: *%s%s", o->name->value, lf); else cupsFilePrintf(fp, "*CloseUI: *%s%s", o->name->value, lf); snprintf(custom, sizeof(custom), "Custom%s", o->name->value); if ((a = find_attr(custom, "True")) != NULL) { // Output custom option information... cupsFilePrintf(fp, "*%s True: \"%s\"%s", custom, a->value->value, lf); if (strchr(a->value->value, '\n') || strchr(a->value->value, '\r')) cupsFilePrintf(fp, "*End%s", lf); snprintf(custom, sizeof(custom), "ParamCustom%s", o->name->value); for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) { if (strcmp(a->name->value, custom)) continue; if (!a->selector->value || !a->selector->value[0]) cupsFilePrintf(fp, "*%s", a->name->value); else if (!a->text->value || !a->text->value[0]) cupsFilePrintf(fp, "*%s %s/%s", a->name->value, a->selector->value, catalog->find_message(a->selector->value)); else cupsFilePrintf(fp, "*%s %s/%s", a->name->value, a->selector->value, catalog->find_message(a->text->value)); cupsFilePrintf(fp, ": %s%s", a->value->value, lf); } } } if (_cups_strcasecmp(g->name->value, "General")) cupsFilePrintf(fp, "*CloseGroup: %s%s", g->name->value, lf); } if (locales) { // Add localizations for additional languages... ppdcString *locale; // Locale name ppdcCatalog *locatalog; // Message catalog for locale // Write the translation strings for each language... for (locale = (ppdcString *)locales->first(); locale; locale = (ppdcString *)locales->next()) { // Skip (US) English... if (!strcmp(locale->value, "en") || !strcmp(locale->value, "en_US")) continue; // Skip missing languages... if ((locatalog = src->find_po(locale->value)) == NULL) continue; // Do the core stuff first... cupsFilePrintf(fp, "*%s.Translation Manufacturer/%s: \"\"%s", locale->value, locatalog->find_message(manufacturer->value), lf); if ((a = find_attr("ModelName", NULL)) != NULL) cupsFilePrintf(fp, "*%s.Translation ModelName/%s: \"\"%s", locale->value, locatalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*%s.Translation ModelName/%s %s: \"\"%s", locale->value, locatalog->find_message(manufacturer->value), locatalog->find_message(model_name->value), lf); else cupsFilePrintf(fp, "*%s.Translation ModelName/%s: \"\"%s", locale->value, locatalog->find_message(model_name->value), lf); if ((a = find_attr("ShortNickName", NULL)) != NULL) cupsFilePrintf(fp, "*%s.Translation ShortNickName/%s: \"\"%s", locale->value, locatalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*%s.Translation ShortNickName/%s %s: \"\"%s", locale->value, locatalog->find_message(manufacturer->value), locatalog->find_message(model_name->value), lf); else cupsFilePrintf(fp, "*%s.Translation ShortNickName/%s: \"\"%s", locale->value, locatalog->find_message(model_name->value), lf); if ((a = find_attr("NickName", NULL)) != NULL) cupsFilePrintf(fp, "*%s.Translation NickName/%s: \"\"%s", locale->value, locatalog->find_message(a->value->value), lf); else if (_cups_strncasecmp(model_name->value, manufacturer->value, strlen(manufacturer->value))) cupsFilePrintf(fp, "*%s.Translation NickName/%s %s, %s: \"\"%s", locale->value, locatalog->find_message(manufacturer->value), locatalog->find_message(model_name->value), version->value, lf); else cupsFilePrintf(fp, "*%s.Translation NickName/%s, %s: \"\"%s", locale->value, locatalog->find_message(model_name->value), version->value, lf); // Then the page sizes... cupsFilePrintf(fp, "*%s.Translation PageSize/%s: \"\"%s", locale->value, locatalog->find_message("Media Size"), lf); for (m = (ppdcMediaSize *)sizes->first(); m; m = (ppdcMediaSize *)sizes->next()) { cupsFilePrintf(fp, "*%s.PageSize %s/%s: \"\"%s", locale->value, m->name->value, locatalog->find_message(m->text->value), lf); } // Next the groups and options... for (g = (ppdcGroup *)groups->first(); g; g = (ppdcGroup *)groups->next()) { if (!g->options->count) continue; if (_cups_strcasecmp(g->name->value, "General")) cupsFilePrintf(fp, "*%s.Translation %s/%s: \"\"%s", locale->value, g->name->value, locatalog->find_message(g->text->value), lf); for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (!o->choices->count) continue; cupsFilePrintf(fp, "*%s.Translation %s/%s: \"\"%s", locale->value, o->name->value, locatalog->find_message(o->text->value ? o->text->value : o->name->value), lf); for (c = (ppdcChoice *)o->choices->first(); c; c = (ppdcChoice *)o->choices->next()) { // Write this choice... cupsFilePrintf(fp, "*%s.%s %s/%s: \"\"%s", locale->value, o->name->value, c->name->value, locatalog->find_message(c->text->value ? c->text->value : c->name->value), lf); } } } // Finally the localizable attributes... for (a = (ppdcAttr *)attrs->first(); a; a = (ppdcAttr *)attrs->next()) { if (!a->localizable && (!a->text || !a->text->value || !a->text->value[0]) && strcmp(a->name->value, "APCustomColorMatchingName") && strcmp(a->name->value, "APPrinterPreset") && strcmp(a->name->value, "cupsICCProfile") && strcmp(a->name->value, "cupsIPPReason") && strcmp(a->name->value, "cupsMarkerName") && strncmp(a->name->value, "Custom", 6) && strncmp(a->name->value, "ParamCustom", 11)) continue; cupsFilePrintf(fp, "*%s.%s %s/%s: \"%s\"%s", locale->value, a->name->value, a->selector->value, locatalog->find_message(a->text && a->text->value ? a->text->value : a->name->value), ((a->localizable && a->value->value[0]) || !strcmp(a->name->value, "cupsIPPReason")) ? locatalog->find_message(a->value->value) : "", lf); } } } if (default_font && default_font->value) cupsFilePrintf(fp, "*DefaultFont: %s%s", default_font->value, lf); else cupsFilePrintf(fp, "*DefaultFont: Courier%s", lf); for (fn = (ppdcFont *)fonts->first(); fn; fn = (ppdcFont *)fonts->next()) if (!strcmp(fn->name->value, "*")) { for (bfn = (ppdcFont *)src->base_fonts->first(); bfn; bfn = (ppdcFont *)src->base_fonts->next()) cupsFilePrintf(fp, "*Font %s: %s \"%s\" %s %s%s", bfn->name->value, bfn->encoding->value, bfn->version->value, bfn->charset->value, bfn->status == PPDC_FONT_ROM ? "ROM" : "Disk", lf); } else cupsFilePrintf(fp, "*Font %s: %s \"%s\" %s %s%s", fn->name->value, fn->encoding->value, fn->version->value, fn->charset->value, fn->status == PPDC_FONT_ROM ? "ROM" : "Disk", lf); cupsFilePrintf(fp, "*%% End of %s, %05d bytes.%s", pc_file_name->value, (int)((size_t)cupsFileTell(fp) + 25 + strlen(pc_file_name->value)), lf); if (delete_cat) catalog->release(); return (0); } cups-2.4.7/ppdc/ppdc-constraint.cxx0000644000175000017500000000171314502571342017145 0ustar zdohnalzdohnal// // Constraint class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcConstraint::ppdcConstraint()' - Create a constraint. // ppdcConstraint::ppdcConstraint(const char *o1, // I - First option const char *c1, // I - First choice const char *o2, // I - Second option const char *c2) // I - Second choice : ppdcShared() { PPDC_NEW; option1 = new ppdcString(o1); choice1 = new ppdcString(c1); option2 = new ppdcString(o2); choice2 = new ppdcString(c2); } // // 'ppdcConstraint::~ppdcConstraint()' - Destroy a constraint. // ppdcConstraint::~ppdcConstraint() { PPDC_DELETE; option1->release(); choice1->release(); option2->release(); choice2->release(); } cups-2.4.7/ppdc/ppdc-choice.cxx0000644000175000017500000000147014502571342016213 0ustar zdohnalzdohnal// // Option choice class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcChoice::ppdcChoice()' - Create a new option choice. // ppdcChoice::ppdcChoice(const char *n, // I - Name of choice const char *t, // I - Text of choice const char *c) // I - Code of choice : ppdcShared() { PPDC_NEW; name = new ppdcString(n); text = new ppdcString(t); code = new ppdcString(c); } // // 'ppdcChoice::~ppdcChoice()' - Destroy an option choice. // ppdcChoice::~ppdcChoice() { PPDC_DELETE; name->release(); text->release(); code->release(); } cups-2.4.7/ppdc/ppdc-catalog.cxx0000644000175000017500000004662514502571342016406 0ustar zdohnalzdohnal// // Shared message catalog class for the CUPS PPD Compiler. // // Copyright 2007-2017 by Apple Inc. // Copyright 2002-2006 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // Character encodings... // typedef enum { PPDC_CS_AUTO, PPDC_CS_UTF8, PPDC_CS_UTF16BE, PPDC_CS_UTF16LE } ppdc_cs_t; // // Local functions... // #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) static void apple_add_message(CFStringRef key, CFStringRef val, ppdcCatalog *c); #endif /* __APPLE__ && CUPS_BUNDLEDIR */ static int get_utf8(char *&ptr); static int get_utf16(cups_file_t *fp, ppdc_cs_t &cs); static int put_utf8(int ch, char *&ptr, char *end); static int put_utf16(cups_file_t *fp, int ch); // // 'ppdcCatalog::ppdcCatalog()' - Create a shared message catalog. // ppdcCatalog::ppdcCatalog(const char *l, // I - Locale const char *f) // I - Message catalog file : ppdcShared() { PPDC_NEW; locale = new ppdcString(l); filename = new ppdcString(f); messages = new ppdcArray(); if (l && strcmp(l, "en")) { // Try loading the base messages for this locale... char pofile[1024]; // Message catalog file #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) char applelang[256]; // Apple language ID CFURLRef url; // URL to cups.strings file CFReadStreamRef stream = NULL; // File stream CFPropertyListRef plist = NULL; // Localization file snprintf(pofile, sizeof(pofile), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", _cupsAppleLanguage(l, applelang, sizeof(applelang))); if (access(pofile, 0)) { // Try alternate lproj directory names... const char *tl = l; // Temporary locale string if (!strncmp(l, "en", 2)) tl = "English"; else if (!strncmp(l, "nb", 2)) tl = "no"; else if (!strncmp(l, "nl", 2)) tl = "Dutch"; else if (!strncmp(l, "fr", 2)) tl = "French"; else if (!strncmp(l, "de", 2)) tl = "German"; else if (!strncmp(l, "it", 2)) tl = "Italian"; else if (!strncmp(l, "ja", 2)) tl = "Japanese"; else if (!strncmp(l, "es", 2)) tl = "Spanish"; snprintf(pofile, sizeof(pofile), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", tl); } url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)pofile, (CFIndex)strlen(pofile), false); if (url) { stream = CFReadStreamCreateWithFile(kCFAllocatorDefault, url); if (stream) { /* * Read the property list containing the localization data. */ CFReadStreamOpen(stream); plist = CFPropertyListCreateWithStream(kCFAllocatorDefault, stream, 0, kCFPropertyListImmutable, NULL, NULL); if (plist) { if (CFGetTypeID(plist) == CFDictionaryGetTypeID()) CFDictionaryApplyFunction((CFDictionaryRef)plist, (CFDictionaryApplierFunction)apple_add_message, this); CFRelease(plist); } CFRelease(stream); } CFRelease(url); } #else _cups_globals_t *cg = _cupsGlobals(); // Global information snprintf(pofile, sizeof(pofile), "%s/%s/cups_%s.po", cg->localedir, l, l); if (load_messages(pofile) && strchr(l, '_')) { // Try the base locale... char baseloc[3]; // Base locale... strlcpy(baseloc, l, sizeof(baseloc)); snprintf(pofile, sizeof(pofile), "%s/%s/cups_%s.po", cg->localedir, baseloc, baseloc); load_messages(pofile); } #endif /* __APPLE__ && CUPS_BUNDLEDIR */ } if (f && *f) load_messages(f); } // // 'ppdcCatalog::~ppdcCatalog()' - Destroy a shared message catalog. // ppdcCatalog::~ppdcCatalog() { PPDC_DELETE; locale->release(); filename->release(); messages->release(); } // // 'ppdcCatalog::add_message()' - Add a new message. // void ppdcCatalog::add_message( const char *id, // I - Message ID to add const char *string) // I - Translation string { ppdcMessage *m; // Current message char text[1024]; // Text to translate // Range check input... if (!id) return; // Verify that we don't already have the message ID... for (m = (ppdcMessage *)messages->first(); m; m = (ppdcMessage *)messages->next()) if (!strcmp(m->id->value, id)) { if (string) { m->string->release(); m->string = new ppdcString(string); } return; } // Add the message... if (!string) { snprintf(text, sizeof(text), "TRANSLATE %s", id); string = text; } messages->add(new ppdcMessage(id, string)); } // // 'ppdcCatalog::find_message()' - Find a message in a catalog... // const char * // O - Message text ppdcCatalog::find_message( const char *id) // I - Message ID { ppdcMessage *m; // Current message if (!*id) return (id); for (m = (ppdcMessage *)messages->first(); m; m = (ppdcMessage *)messages->next()) if (!strcmp(m->id->value, id)) return (m->string->value); return (id); } // // 'ppdcCatalog::load_messages()' - Load messages from a .po file. // int // O - 0 on success, -1 on failure ppdcCatalog::load_messages( const char *f) // I - Message catalog file { cups_file_t *fp; // Message file char line[4096], // Line buffer *ptr, // Pointer into buffer id[4096], // Translation ID str[4096]; // Translation string int linenum; // Line number // Open the message catalog file... if ((fp = cupsFileOpen(f, "r")) == NULL) return (-1); if ((ptr = (char *)strrchr(f, '.')) == NULL) goto unknown_load_format; else if (!strcmp(ptr, ".strings")) { /* * Read messages in macOS ".strings" format, which are either UTF-8/UTF-16 * text files of the format: * * "id" = "str"; * * Strings files can also contain C-style comments. */ ppdc_cs_t cs = PPDC_CS_AUTO; // Character set for file int ch; // Current character from file char *end; // End of buffer id[0] = '\0'; str[0] = '\0'; ptr = NULL; end = NULL; while ((ch = get_utf16(fp, cs)) != 0) { if (ptr) { if (ch == '\\') { if ((ch = get_utf16(fp, cs)) == 0) break; if (ch == 'n') ch = '\n'; else if (ch == 't') ch = '\t'; } else if (ch == '\"') { *ptr = '\0'; ptr = NULL; } if (ptr) put_utf8(ch, ptr, end); } else if (ch == '/') { // Start of a comment? if ((ch = get_utf16(fp, cs)) == 0) break; if (ch == '*') { // Skip C comment... int lastch = 0; while ((ch = get_utf16(fp, cs)) != 0) { if (ch == '/' && lastch == '*') break; lastch = ch; } } else if (ch == '/') { // Skip C++ comment... while ((ch = get_utf16(fp, cs)) != 0) if (ch == '\n') break; } } else if (ch == '\"') { // Start quoted string... if (id[0]) { ptr = str; end = str + sizeof(str) - 1; } else { ptr = id; end = id + sizeof(id) - 1; } } else if (ch == ';') { // Add string... add_message(id, str); id[0] = '\0'; } } } else if (!strcmp(ptr, ".po") || !strcmp(ptr, ".gz")) { /* * Read messages from the catalog file until EOF... * * The format is the GNU gettext .po format, which is fairly simple: * * msgid "some text" * msgstr "localized text" * * The ID and localized text can span multiple lines using the form: * * msgid "" * "some long text" * msgstr "" * "localized text spanning " * "multiple lines" */ int which, // In msgid? haveid, // Did we get a msgid string? havestr; // Did we get a msgstr string? linenum = 0; id[0] = '\0'; str[0] = '\0'; haveid = 0; havestr = 0; which = 0; while (cupsFileGets(fp, line, sizeof(line))) { linenum ++; // Skip blank and comment lines... if (line[0] == '#' || !line[0]) continue; // Strip the trailing quote... if ((ptr = (char *)strrchr(line, '\"')) == NULL) { _cupsLangPrintf(stderr, _("ppdc: Expected quoted string on line %d of %s."), linenum, f); cupsFileClose(fp); return (-1); } *ptr = '\0'; // Find start of value... if ((ptr = strchr(line, '\"')) == NULL) { _cupsLangPrintf(stderr, _("ppdc: Expected quoted string on line %d of %s."), linenum, f); cupsFileClose(fp); return (-1); } ptr ++; // Unquote the text... char *sptr, *dptr; // Source/destination pointers for (sptr = ptr, dptr = ptr; *sptr;) { if (*sptr == '\\') { sptr ++; if (isdigit(*sptr)) { *dptr = 0; while (isdigit(*sptr)) { *dptr = *dptr * 8 + *sptr - '0'; sptr ++; } dptr ++; } else { if (*sptr == 'n') *dptr++ = '\n'; else if (*sptr == 'r') *dptr++ = '\r'; else if (*sptr == 't') *dptr++ = '\t'; else *dptr++ = *sptr; sptr ++; } } else *dptr++ = *sptr++; } *dptr = '\0'; // Create or add to a message... if (!strncmp(line, "msgid", 5)) { if (haveid && havestr) add_message(id, str); strlcpy(id, ptr, sizeof(id)); str[0] = '\0'; haveid = 1; havestr = 0; which = 1; } else if (!strncmp(line, "msgstr", 6)) { if (!haveid) { _cupsLangPrintf(stderr, _("ppdc: Need a msgid line before any " "translation strings on line %d of %s."), linenum, f); cupsFileClose(fp); return (-1); } strlcpy(str, ptr, sizeof(str)); havestr = 1; which = 2; } else if (line[0] == '\"' && which == 2) strlcat(str, ptr, sizeof(str)); else if (line[0] == '\"' && which == 1) strlcat(id, ptr, sizeof(id)); else { _cupsLangPrintf(stderr, _("ppdc: Unexpected text on line %d of %s."), linenum, f); cupsFileClose(fp); return (-1); } } if (haveid && havestr) add_message(id, str); } else goto unknown_load_format; /* * Close the file and return... */ cupsFileClose(fp); return (0); /* * Unknown format error... */ unknown_load_format: _cupsLangPrintf(stderr, _("ppdc: Unknown message catalog format for \"%s\"."), f); cupsFileClose(fp); return (-1); } // // 'ppdcCatalog::save_messages()' - Save the messages to a .po file. // int // O - 0 on success, -1 on error ppdcCatalog::save_messages( const char *f) // I - File to save to { cups_file_t *fp; // Message file ppdcMessage *m; // Current message char *ptr; // Pointer into string int utf16; // Output UTF-16 .strings file? int ch; // Current character // Open the file... if ((ptr = (char *)strrchr(f, '.')) == NULL) return (-1); if (!strcmp(ptr, ".gz")) fp = cupsFileOpen(f, "w9"); else fp = cupsFileOpen(f, "w"); if (!fp) return (-1); // For .strings files, write a BOM for big-endian output... utf16 = !strcmp(ptr, ".strings"); if (utf16) put_utf16(fp, 0xfeff); // Loop through all of the messages... for (m = (ppdcMessage *)messages->first(); m; m = (ppdcMessage *)messages->next()) { if (utf16) { put_utf16(fp, '\"'); ptr = m->id->value; while ((ch = get_utf8(ptr)) != 0) switch (ch) { case '\n' : put_utf16(fp, '\\'); put_utf16(fp, 'n'); break; case '\\' : put_utf16(fp, '\\'); put_utf16(fp, '\\'); break; case '\"' : put_utf16(fp, '\\'); put_utf16(fp, '\"'); break; default : put_utf16(fp, ch); break; } put_utf16(fp, '\"'); put_utf16(fp, ' '); put_utf16(fp, '='); put_utf16(fp, ' '); put_utf16(fp, '\"'); ptr = m->string->value; while ((ch = get_utf8(ptr)) != 0) switch (ch) { case '\n' : put_utf16(fp, '\\'); put_utf16(fp, 'n'); break; case '\\' : put_utf16(fp, '\\'); put_utf16(fp, '\\'); break; case '\"' : put_utf16(fp, '\\'); put_utf16(fp, '\"'); break; default : put_utf16(fp, ch); break; } put_utf16(fp, '\"'); put_utf16(fp, ';'); put_utf16(fp, '\n'); } else { cupsFilePuts(fp, "msgid \""); for (ptr = m->id->value; *ptr; ptr ++) switch (*ptr) { case '\n' : cupsFilePuts(fp, "\\n"); break; case '\\' : cupsFilePuts(fp, "\\\\"); break; case '\"' : cupsFilePuts(fp, "\\\""); break; default : cupsFilePutChar(fp, *ptr); break; } cupsFilePuts(fp, "\"\n"); cupsFilePuts(fp, "msgstr \""); for (ptr = m->string->value; *ptr; ptr ++) switch (*ptr) { case '\n' : cupsFilePuts(fp, "\\n"); break; case '\\' : cupsFilePuts(fp, "\\\\"); break; case '\"' : cupsFilePuts(fp, "\\\""); break; default : cupsFilePutChar(fp, *ptr); break; } cupsFilePuts(fp, "\"\n"); cupsFilePutChar(fp, '\n'); } } cupsFileClose(fp); return (0); } #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) // // 'apple_add_message()' - Add a message from a localization dictionary. // static void apple_add_message(CFStringRef key, // I - Localization key CFStringRef val, // I - Localized value ppdcCatalog *c) // I - Message catalog { char id[1024], // Message id str[1024]; // Localized message if (CFStringGetCString(key, id, sizeof(id), kCFStringEncodingUTF8) && CFStringGetCString(val, str, sizeof(str), kCFStringEncodingUTF8)) c->add_message(id, str); } #endif /* __APPLE__ && CUPS_BUNDLEDIR */ // // 'get_utf8()' - Get a UTF-8 character. // static int // O - Unicode character or 0 on EOF get_utf8(char *&ptr) // IO - Pointer to character { int ch; // Current character if ((ch = *ptr++ & 255) < 0xc0) return (ch); if ((ch & 0xe0) == 0xc0) { // Two-byte UTF-8... if ((*ptr & 0xc0) != 0x80) return (0); ch = ((ch & 0x1f) << 6) | (*ptr++ & 0x3f); } else if ((ch & 0xf0) == 0xe0) { // Three-byte UTF-8... if ((*ptr & 0xc0) != 0x80) return (0); ch = ((ch & 0x0f) << 6) | (*ptr++ & 0x3f); if ((*ptr & 0xc0) != 0x80) return (0); ch = (ch << 6) | (*ptr++ & 0x3f); } else if ((ch & 0xf8) == 0xf0) { // Four-byte UTF-8... if ((*ptr & 0xc0) != 0x80) return (0); ch = ((ch & 0x07) << 6) | (*ptr++ & 0x3f); if ((*ptr & 0xc0) != 0x80) return (0); ch = (ch << 6) | (*ptr++ & 0x3f); if ((*ptr & 0xc0) != 0x80) return (0); ch = (ch << 6) | (*ptr++ & 0x3f); } return (ch); } // // 'get_utf16()' - Get a UTF-16 character... // static int // O - Unicode character or 0 on EOF get_utf16(cups_file_t *fp, // I - File to read from ppdc_cs_t &cs) // IO - Character set of file { int ch; // Current character unsigned char buffer[3]; // Bytes if (cs == PPDC_CS_AUTO) { // Get byte-order-mark, if present... if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); if (buffer[0] == 0xfe && buffer[1] == 0xff) { // Big-endian UTF-16... cs = PPDC_CS_UTF16BE; if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); } else if (buffer[0] == 0xff && buffer[1] == 0xfe) { // Little-endian UTF-16... cs = PPDC_CS_UTF16LE; if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); } else if (buffer[0] == 0x00 && buffer[1] != 0x00) { // No BOM, assume big-endian UTF-16... cs = PPDC_CS_UTF16BE; } else if (buffer[0] != 0x00 && buffer[1] == 0x00) { // No BOM, assume little-endian UTF-16... cs = PPDC_CS_UTF16LE; } else { // No BOM, assume UTF-8... cs = PPDC_CS_UTF8; cupsFileRewind(fp); } } else if (cs != PPDC_CS_UTF8) { if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); } if (cs == PPDC_CS_UTF8) { // UTF-8 character... if ((ch = cupsFileGetChar(fp)) < 0) return (0); if ((ch & 0xe0) == 0xc0) { // Two-byte UTF-8... if (cupsFileRead(fp, (char *)buffer, 1) != 1) return (0); if ((buffer[0] & 0xc0) != 0x80) return (0); ch = ((ch & 0x1f) << 6) | (buffer[0] & 0x3f); } else if ((ch & 0xf0) == 0xe0) { // Three-byte UTF-8... if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); if ((buffer[0] & 0xc0) != 0x80 || (buffer[1] & 0xc0) != 0x80) return (0); ch = ((((ch & 0x0f) << 6) | (buffer[0] & 0x3f)) << 6) | (buffer[1] & 0x3f); } else if ((ch & 0xf8) == 0xf0) { // Four-byte UTF-8... if (cupsFileRead(fp, (char *)buffer, 3) != 3) return (0); if ((buffer[0] & 0xc0) != 0x80 || (buffer[1] & 0xc0) != 0x80 || (buffer[2] & 0xc0) != 0x80) return (0); ch = ((((((ch & 0x07) << 6) | (buffer[0] & 0x3f)) << 6) | (buffer[1] & 0x3f)) << 6) | (buffer[2] & 0x3f); } } else { // UTF-16 character... if (cs == PPDC_CS_UTF16BE) ch = (buffer[0] << 8) | buffer[1]; else ch = (buffer[1] << 8) | buffer[0]; if (ch >= 0xd800 && ch <= 0xdbff) { // Handle multi-word encoding... int lch; if (cupsFileRead(fp, (char *)buffer, 2) != 2) return (0); if (cs == PPDC_CS_UTF16BE) lch = (buffer[0] << 8) | buffer[1]; else lch = (buffer[1] << 8) | buffer[0]; if (lch < 0xdc00 || lch >= 0xdfff) return (0); ch = (((ch & 0x3ff) << 10) | (lch & 0x3ff)) + 0x10000; } } return (ch); } // // 'put_utf8()' - Add a UTF-8 character to a string. // static int // O - 0 on success, -1 on failure put_utf8(int ch, // I - Unicode character char *&ptr, // IO - String pointer char *end) // I - End of buffer { if (ch < 0x80) { // One-byte ASCII... if (ptr >= end) return (-1); *ptr++ = (char)ch; } else if (ch < 0x800) { // Two-byte UTF-8... if ((ptr + 1) >= end) return (-1); *ptr++ = (char)(0xc0 | (ch >> 6)); *ptr++ = (char)(0x80 | (ch & 0x3f)); } else if (ch < 0x10000) { // Three-byte UTF-8... if ((ptr + 2) >= end) return (-1); *ptr++ = (char)(0xe0 | (ch >> 12)); *ptr++ = (char)(0x80 | ((ch >> 6) & 0x3f)); *ptr++ = (char)(0x80 | (ch & 0x3f)); } else { // Four-byte UTF-8... if ((ptr + 3) >= end) return (-1); *ptr++ = (char)(0xf0 | (ch >> 18)); *ptr++ = (char)(0x80 | ((ch >> 12) & 0x3f)); *ptr++ = (char)(0x80 | ((ch >> 6) & 0x3f)); *ptr++ = (char)(0x80 | (ch & 0x3f)); } return (0); } // // 'put_utf16()' - Write a UTF-16 character to a file. // static int // O - 0 on success, -1 on failure put_utf16(cups_file_t *fp, // I - File to write to int ch) // I - Unicode character { unsigned char buffer[4]; // Output buffer if (ch < 0x10000) { // One-word UTF-16 big-endian... buffer[0] = (unsigned char)(ch >> 8); buffer[1] = (unsigned char)ch; if (cupsFileWrite(fp, (char *)buffer, 2) == 2) return (0); } else { // Two-word UTF-16 big-endian... ch -= 0x10000; buffer[0] = (unsigned char)(0xd8 | (ch >> 18)); buffer[1] = (unsigned char)(ch >> 10); buffer[2] = (unsigned char)(0xdc | ((ch >> 8) & 0x03)); buffer[3] = (unsigned char)ch; if (cupsFileWrite(fp, (char *)buffer, 4) == 4) return (0); } return (-1); } cups-2.4.7/ppdc/ppdc-attr.cxx0000644000175000017500000000170414502571342015733 0ustar zdohnalzdohnal// // Attribute class for the CUPS PPD Compiler. // // Copyright 2007-2009 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcAttr::ppdcAttr()' - Create an attribute. // ppdcAttr::ppdcAttr(const char *n, // I - Name const char *s, // I - Spec string const char *t, // I - Human-readable text const char *v, // I - Value bool loc) // I - Localize this attribute? : ppdcShared() { PPDC_NEW; name = new ppdcString(n); selector = new ppdcString(s); text = new ppdcString(t); value = new ppdcString(v); localizable = loc; } // // 'ppdcAttr::~ppdcAttr()' - Destroy an attribute. // ppdcAttr::~ppdcAttr() { PPDC_DELETE; name->release(); selector->release(); text->release(); value->release(); } cups-2.4.7/ppdc/ppdc-array.cxx0000644000175000017500000000411514502571342016076 0ustar zdohnalzdohnal// // Array class for the CUPS PPD Compiler. // // Copyright 2007-2019 by Apple Inc. // Copyright 2002-2005 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // // Include necessary headers... // #include "ppdc-private.h" // // 'ppdcArray::ppdcArray()' - Create a new array. // ppdcArray::ppdcArray(ppdcArray *a) : ppdcShared() { PPDC_NEW; if (a) { count = a->count; alloc = count; if (count) { // Make a copy of the array... data = new ppdcShared *[count]; memcpy(data, a->data, (size_t)count * sizeof(ppdcShared *)); for (size_t i = 0; i < count; i ++) data[i]->retain(); } else data = 0; } else { count = 0; alloc = 0; data = 0; } current = 0; } // // 'ppdcArray::~ppdcArray()' - Destroy an array. // ppdcArray::~ppdcArray() { PPDC_DELETE; for (size_t i = 0; i < count; i ++) data[i]->release(); if (alloc) delete[] data; } // // 'ppdcArray::add()' - Add an element to an array. // void ppdcArray::add(ppdcShared *d) { ppdcShared **temp; if (count >= alloc) { alloc += 10; temp = new ppdcShared *[alloc]; memcpy(temp, data, (size_t)count * sizeof(ppdcShared *)); delete[] data; data = temp; } data[count++] = d; } // // 'ppdcArray::first()' - Return the first element in the array. // ppdcShared * ppdcArray::first() { current = 0; if (current >= count) return (0); else return (data[current ++]); } // // 'ppdcArray::next()' - Return the next element in the array. // ppdcShared * ppdcArray::next() { if (current >= count) return (0); else return (data[current ++]); } // // 'ppdcArray::remove()' - Remove an element from the array. // void ppdcArray::remove(ppdcShared *d) // I - Data element { size_t i; // Looping var for (i = 0; i < count; i ++) if (d == data[i]) break; if (i >= count) return; count --; d->release(); if (i < count) memmove(data + i, data + i + 1, (size_t)(count - i) * sizeof(ppdcShared *)); } cups-2.4.7/ppdc/genstrings.cxx0000644000175000017500000001154714502571342016226 0ustar zdohnalzdohnal// // GNU gettext message generator for the CUPS PPD Compiler. // // This program is used to generate a dummy source file containing all of // the standard media and sample driver strings. The results are picked up // by GNU gettext and placed in the CUPS message catalog. // // Copyright 2008-2014 by Apple Inc. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. // // Usage: // // ./genstrings >sample.c // // // Include necessary headers... // #include "ppdc-private.h" #include // // Local functions... // static void add_ui_strings(ppdcDriver *d, ppdcCatalog *catalog); static void write_cstring(const char *s); // // 'main()' - Main entry for the PPD compiler. // int // O - Exit status main(void) { ppdcSource *src; // PPD source file data ppdcCatalog *catalog; // Catalog to hold all of the UI strings // Make sure we are in the right place... if (access("../data", 0) || access("sample.drv", 0)) { puts("You must run genstrings from the ppdc directory."); return (1); } // Load the sample drivers... ppdcSource::add_include("../data"); src = new ppdcSource("sample.drv"); catalog = new ppdcCatalog(NULL); catalog->add_message("ISOLatin1"); catalog->add_message("English"); // Add the media size strings... ppdcMediaSize *size; // Current media size for (size = (ppdcMediaSize *)src->sizes->first(); size; size = (ppdcMediaSize *)src->sizes->next()) catalog->add_message(size->text->value); // Then collect all of the UI strings from the sample drivers... ppdcDriver *d; // Current driver for (d = (ppdcDriver *)src->drivers->first(); d; d = (ppdcDriver *)src->drivers->next()) add_ui_strings(d, catalog); // Finally, write all of the strings... ppdcMessage *message; for (message = (ppdcMessage *)catalog->messages->first(); message; message = (ppdcMessage *)catalog->messages->next()) write_cstring(message->id->value); src->release(); catalog->release(); // Return with no errors. return (0); } // // 'add_ui_strings()' - Add all UI strings from the driver. // static void add_ui_strings(ppdcDriver *d, // I - Driver data ppdcCatalog *catalog) // I - Message catalog { // Add the make/model/language strings... catalog->add_message(d->manufacturer->value); catalog->add_message(d->model_name->value); // Add the group/option/choice strings... ppdcGroup *g; // Current group ppdcOption *o; // Current option ppdcChoice *c; // Current choice for (g = (ppdcGroup *)d->groups->first(); g; g = (ppdcGroup *)d->groups->next()) { if (!g->options->count) continue; if (_cups_strcasecmp(g->name->value, "General")) catalog->add_message(g->text->value); for (o = (ppdcOption *)g->options->first(); o; o = (ppdcOption *)g->options->next()) { if (!o->choices->count) continue; if (o->text->value && strcmp(o->name->value, o->text->value)) catalog->add_message(o->text->value); else catalog->add_message(o->name->value); for (c = (ppdcChoice *)o->choices->first(); c; c = (ppdcChoice *)o->choices->next()) if (c->text->value && strcmp(c->name->value, c->text->value)) catalog->add_message(c->text->value); else catalog->add_message(c->name->value); } } // Add profile and preset strings... ppdcAttr *a; // Current attribute for (a = (ppdcAttr *)d->attrs->first(); a; a = (ppdcAttr *)d->attrs->next()) { if (a->text->value && a->text->value[0] && (a->localizable || !strncmp(a->name->value, "Custom", 6) || !strncmp(a->name->value, "ParamCustom", 11) || !strcmp(a->name->value, "APCustomColorMatchingName") || !strcmp(a->name->value, "APPrinterPreset") || !strcmp(a->name->value, "cupsICCProfile") || !strcmp(a->name->value, "cupsIPPReason") || !strcmp(a->name->value, "cupsMarkerName"))) { catalog->add_message(a->text->value); if ((a->localizable && a->value->value[0]) || !strcmp(a->name->value, "cupsIPPReason")) catalog->add_message(a->value->value); } else if (!strncmp(a->name->value, "Custom", 6) || !strncmp(a->name->value, "ParamCustom", 11)) catalog->add_message(a->name->value); } } // // 'write_cstring()' - Write a translation string as a valid C string to stdout. // static void write_cstring(const char *s) /* I - String to write */ { fputs("_(\"", stdout); if (s) { while (*s) { if (*s == '\\') fputs("\\\\", stdout); else if (*s == '\"') fputs("\\\"", stdout); else if (*s == '\t') fputs("\\t", stdout); else if (*s == '\n') fputs("\\n", stdout); else putchar(*s); s ++; } } puts("\");"); } cups-2.4.7/ppdc/foo.drv0000644000175000017500000003570314502571342014617 0ustar zdohnalzdohnal// // PPD file compiler test data file for CUPS. // // Copyright © 2007-2011 by Apple Inc. // Copyright © 1997-2003 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // /* * C-style comments are supported. */ // // C++-style comments are supported. // // // Include the common media size definitions... // // #include directives support both to include a standard file // and "name" or just name without the quotes for a local file. Local // files resolve relative to the current file's path. Unlike C/C++, // #include does not look in multiple directories, and // #include "name" does not look in the standard directory. // #include // // Include the CUPS raster definitions... // #include // // Include the standard CUPS fonts... // #include // // Define variables using the #define directive. In this case we // are defining constants for the model number, which is used by // our imaginary rastertofoo filter to determine which model-specific // features to use/support. // #define MODEL_BW 0 #define MODEL_COLOR 1 #define MODEL_LASER 0 #define MODEL_PHOTO 2 // // Media sizes are defined using the #media directive. The order of // values is: size name/text, width, length. // // "Size name" is an alphanumeric string of up to 40 characters as // defined by the Adobe PPD specification. // // "Size text" is a text string of up to 80 characters as defined by // the Adobe PPD specification. // // "Width" and "length" are the width and length of the media size. // Numbers by themselves represent points (72 points = 1 inch). The // suffixes "cm", "ft", "in", "m", "mm", and "pt" are recognized to // specify centimeters, feet, inches, meters, millimeters, and points, // respectively. // #media "FooLetter/Foo Letter" 8in 10in #media "FooPhoto/Foo Photo" 200mm 300mm // // Message catalogs can be included using #po... // #po fr foo-fr.po // // Specify that the drivers use all of the standard base fonts... // Font * // // All copyright lines are put at the top of the PPD file in order // of their appearance. Copyright text can span multiple lines and // will be properly included in the PPD file with comment prefixes // on each line. // // First an MIT-style copyright/license notice... // Copyright "Copyright 2007 by Foo Industries." Copyright " Permission is granted for redistribution of this file as long as this copyright notice is intact and the contents of the file are not altered in any way from their original form. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. " // // Then a GPL notice... // Copyright "Copyright 2007 by Foo Industries." Copyright " This software 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 software 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 software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA " // // All printer drivers must define the manufacturer, model, PC // filename, and version strings; since this test file contains // drivers for an imaginary manufacturer "Foo", all of the drivers // listed in this file share common manufacturer and version // strings. // Manufacturer "Foo" Version 1.0 // // Printer drivers can access driver-specific attributes in a PPD // file; these attributes are specified using lines of the form: // // Attribute name selector value // // "Name" is the name of the attribute and should start with either // the "cups" prefix or the name of the vendor, e.g. "hpFoo", // "epsonBar", etc. The name can be any alphanumeric character (a-z, // A-Z, and 0-9) and cannot be a common prefix of another attribute, // e.g. "fooLines" and "fooLinesPerInch" cannot be in the same file. // // "Selector" is a selector string containing any characters except // colon (:). Typically this will be one or more keywords separated // by the forward slash (/), however the empty string ("") can be used // to omit the selector. // // "Value" is a quoted value string that can contain any printable // characters except the double quote ("). Hexadecimal numbers // inside angle brackets () can be used to substitute escape // codes and other special characters. // Attribute fooOutputFormat "" "PCL" Attribute fooPJL Begin "<1B>%-12345X@PJL<0D0A>" Attribute fooPJL Enter/PCL "@PJL ENTER LANGUAGE=PCL<0D0A>" Attribute fooPJL End "<1B>%-12345X@PJL END JOB<0D0A>" // // Most printer drivers use filters; exceptions include PostScript // printers and PPD files for software RIPs. // // The format is: // // Filter mime-type cost program // // The "mime-type" field defines the MIME type that the filter program // accepts; for CUPS raster printer drivers, this will be // "application/vnd.cups-raster". // // The "cost" field defines the relative cost of the filter in terms of // both CPU and memory usage, and is used to limit the number of // simultaneous jobs in some configurations. Most raster filters should // have a cost of 100, unless the filter does no dithering - then a cost // of 33 is more appropriate. // // The "program" field defined the filter program to run; use the null // filter "-" to define a MIME type that the printer accepts directly. // If no path information is provided, then the program will be run // from the standard CUPS filter directory, usually // /usr/lib/cups/filter. // // When compiling PPD files for PostScript capable devices that use // additional filters, add a null filter for the MIME type // "application/vnd.cups-postscript" so that printer commands, user // job filters, and page markings can be added to the PostScript // output that is sent to the printer. // Filter application/vnd.cups-raster 100 rastertofoo // // Attributes are included thusly... // Attribute cupsIPPReason "com.foo-serious-error/A Serious Error" "http://foo.com/serious.html" // // Curley braces are used for grouping common data and for isolating // individual printer models. All data values are inherited *except* // for the PCFilename and ModelName strings. // { // // Define two printer drivers that support only the FooLetter and // FooPhoto media size. One is color, the other is black-and-white. // // Both printers share two MediaSize definitions; the name listed // after the MediaSize keyword must be one of the Adobe standard // names listed in the PPD specification or any named size defined // using the #media directive. // // Default options are indicated by placing an asterisk (*) before // the keyword. // // For custom size and margin specification, see the next group of // printer drivers. // MediaSize FooLetter *MediaSize FooPhoto // // These imaginary printers support printing at 300, 600x300, // and 600 DPI. We'll use the old-style Resolution convenience // keyword which accepts the following parameters: colorspace/ // order, bits-per-color, row count, row feed, row step, and // name/text. // // The name must be of the form NNNsuffix or NNNxMMMsuffix, // where NNN and MMM represent the X and Y resolution in dots // per inch. // Resolution - 8 0 0 0 "300dpi/300 DPI" Resolution - 8 0 0 0 "600x300dpi/600 x 300 DPI" *Resolution - 8 0 0 0 "600dpi/600 DPI" // // One printer is grayscale only, and the other does grayscale // and color. Define the grayscale color model for both printers // using the old-style ColorModel convenience keyword which // accepts the name/text, colorspace, color order, and compression // parameters. // ColorModel Gray/Grayscale w chunked 0 { // // The first sub-group contains the grayscale printer, which // only needs the model name, PC filename, and model number // values set... // // The ModelName keyword defines the string that is shown to // the user. // ModelName "Mono Photo Printer" // // The ModelNumber keyword defines the cupsModelNumber // attribute value. We use the "(name name)" notation // to perform a bitwise OR of the #define'd constants. // ModelNumber ($MODEL_BW $MODEL_PHOTO) // // The PCFileName keyword defines the filename of the PPD // file and should be 8 characters or less + the .ppd // extension. // PCFileName "foogphot.ppd" } { // // The second sub-group contains the color printer, which // needs another ColorModel definition along with the model // name, PC filename, and model number values. For fun, we'll // add some input slots (paper trays) as well. // // The ModelName keyword defines the string that is shown to // the user. // ModelName "Color Photo Printer" // // The ModelNumber keyword defines the cupsModelNumber // attribute value. We use the "(name name)" notation // to perform a bitwise OR of the #define'd constants. // ModelNumber ($MODEL_COLOR $MODEL_PHOTO) // // The PCFileName keyword defines the filename of the PPD // file and should be 8 characters or less + the .ppd // extension. // PCFileName "foocphot.ppd" // // This printer does color printing, too, so add it and make // RGB the default... // ColorDevice Yes *ColorModel RGB/Color rgb chunked 0 // // The old-style InputSlot keyword accepts tray definitions // of the form: // // InputSlot position name/text // InputSlot 0 "Upper/Main Paper Tray" InputSlot 1 "LargeCapacity/Large Paper Tray" } } { // // Define two printer drivers that support two typical laser // printers with custom page sizes. One is color, the other is // black-and-white. // // Both printers share several MediaSize definitions and support // custom page sizes from 3x5 to 13x19 inches. // // All US media sizes use hardware margins of 0.25 inches on the sides // and 12 points (1/6th inch) at the top and bottom. European sizes // and custom sizes use margins of 12 points all around. // // The order of the HWMargins numbers are left, bottom, right, and top. // The current HWMargins values are used when defining each media size. // The last HWMargins values are used for custom page size margins. // HWMargins 0.25in 12pt 0.25in 12pt *MediaSize Letter MediaSize Legal MediaSize Tabloid MediaSize TabloidExtra HWMargins 12pt 12pt 12pt 12pt MediaSize A4 MediaSize A3 // // Specify that custom/variable paper sizes are supported, and the // range of sizes that are supported... // VariablePaperSize Yes MinSize 3in 5in MaxSize 13in 19in // // These imaginary printers support printing at 600 and 1200 DPI. // We'll use the new Option and Choice keywords to define the // Resolution options... // // Option option-name option-text option-type // Choice choice-name choice-text code // // "Option-type" is the type of option: boolean, pickone, or pickmany. // Option Resolution PickOne AnySetup 10 Choice "600dpi/600 DPI" "<>setpagedevice" Choice "1200dpi/1200 DPI" "<>setpagedevice" // // One printer is grayscale only, and the other does grayscale // and color. Define the grayscale color model for both printers // using the new Option and Choice keywords. // Option "ColorModel/Color Mode" PickOne AnySetup 10 Choice Gray/Grayscale "<>setpagedevice" // // Both printers provide two paper trays, which we'll define using // the new Option and Choice keywords... // Option "InputSlot/Input Slot" PickOne AnySetup 10 Choice "Upper/Main Paper Tray" "<>setpagedevice" Choice "LargeCapacity/Large Paper Tray" "<>setpagedevice" // // Both printers support duplexing... // // The Duplex keyword accepts values of "none" (no duplexing capability), // "normal" (standard duplexing capability), and "flip" (auto-duplex that // requires the back side to be flipped by the RIP...) // Duplex normal { // // The first sub-group contains the grayscale printer, which // only needs the model name, PC filename, and model number // values set... // // The ModelName keyword defines the string that is shown to // the user. // ModelName "Mono Laser Printer" // // The ModelNumber keyword defines the cupsModelNumber // attribute value. We use the "(name name)" notation // to perform a bitwise OR of the #define'd constants. // ModelNumber ($MODEL_BW $MODEL_LASER) // // The PCFileName keyword defines the filename of the PPD // file and should be 8 characters or less + the .ppd // extension. // PCFileName "fooglasr.ppd" } { // // The second sub-group contains the color printer, which // needs another ColorModel definition along with the model // name, PC filename, and model number values. // // The ModelName keyword defines the string that is shown to // the user. // ModelName "Color Laser Printer" // // The ModelNumber keyword defines the cupsModelNumber // attribute value. We use the "(name name)" notation // to perform a bitwise OR of the #define'd constants. // ModelNumber ($MODEL_COLOR $MODEL_LASER) // // The PCFileName keyword defines the filename of the PPD // file and should be 8 characters or less + the .ppd // extension. // PCFileName "fooclasr.ppd" // // This printer does color printing, too, so add it and make // RGB the default... // ColorDevice Yes Option "ColorModel/Color Mode" PickOne AnySetup 10 *Choice RGB/Color "<>setpagedevice" } } cups-2.4.7/ppdc/foo-fr.po0000644000175000017500000000032314502571342015035 0ustar zdohnalzdohnalmsgid "A Serious Error" msgstr "La Error Serious" msgid "http://foo.com/serious.html" msgstr "http://foo.com/fr/serious.html" msgid "Foo Letter" msgstr "La Foo Letter" msgid "Foo Photo" msgstr "La Foo Photo" cups-2.4.7/ppdc/Makefile0000644000175000017500000001215714502571342014755 0ustar zdohnalzdohnal# # Makefile for the CUPS PPD Compiler. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2002-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Include standard definitions... # include ../Makedefs # # Object files... # LIBOBJS = \ ppdc-array.o \ ppdc-attr.o \ ppdc-catalog.o \ ppdc-choice.o \ ppdc-constraint.o \ ppdc-driver.o \ ppdc-file.o \ ppdc-filter.o \ ppdc-font.o \ ppdc-group.o \ ppdc-import.o \ ppdc-mediasize.o \ ppdc-message.o \ ppdc-option.o \ ppdc-profile.o \ ppdc-shared.o \ ppdc-source.o \ ppdc-string.o \ ppdc-variable.o OBJS = \ $(LIBOBJS) \ genstrings.o \ ppdc.o \ ppdhtml.o \ ppdi.o \ ppdmerge.o \ ppdpo.o \ testcatalog.o LIBTARGETS = \ libcupsppdc.a UNITTARGETS = \ ppdc-static \ ppdi-static \ testcatalog EXECTARGETS = \ ppdc \ ppdhtml \ ppdi \ ppdmerge \ ppdpo TARGETS = \ $(LIBTARGETS) \ $(EXECTARGETS) \ $(LOCALTARGET) # # Make everything... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: $(UNITTARGETS) # # Clean everything... # clean: $(RM) $(OBJS) core $(RM) *.bak *.bck core.* $(RM) $(TARGETS) $(UNITTARGETS) genstrings $(RM) -r ppd ppd2 $(RM) sample-import.drv sample.c test.drv # # Update dependencies... # depend: $(CXX) -MM $(ALL_CXXFLAGS) $(OBJS:.o=.cxx) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_DIR) $(DATADIR)/drv $(INSTALL_DATA) sample.drv $(DATADIR)/drv # # Install programs... # install-exec: echo Installing PPD compiler programs... $(INSTALL_DIR) $(BINDIR) for file in $(EXECTARGETS); do \ $(INSTALL_BIN) $$file $(BINDIR); \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(EXECTARGETS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall... # uninstall: for file in $(EXECTARGETS); do \ $(RM) $(BINDIR)/$$file; \ done $(RM) $(DATADIR)/drv/sample.drv $(RMDIR) $(DATADIR)/drv # # Local programs (not built when cross-compiling...) # local: genstrings # # genstrings - generate GNU gettext strings. # genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ sample.drv ../data/media.defs echo Linking $@... $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o genstrings genstrings.o \ libcupsppdc.a $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Generating localization strings... ./genstrings >sample.c # # ppdc, the PPD compiler. # ppdc: ppdc.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ ppdc.o libcupsppdc.a $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ ppdc-static: ppdc.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) foo.drv foo-fr.po echo Linking $@... $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o ppdc-static ppdc.o libcupsppdc.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Testing PPD compiler... ./ppdc-static -l en,fr -I ../data foo.drv ./ppdc-static -l en,fr -z -I ../data foo.drv # # ppdhtml, the PPD to HTML utility. # ppdhtml: ppdhtml.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ ppdhtml.o libcupsppdc.a $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ppdi, import PPD files. # ppdi: ppdi.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ ppdi.o libcupsppdc.a $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ ppdi-static: ppdc-static ppdi.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o ppdi-static ppdi.o libcupsppdc.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Testing PPD importer... $(RM) -r ppd ppd2 sample-import.drv ./ppdc-static -l en -I ../data sample.drv ./ppdi-static -I ../data -o sample-import.drv ppd/* ./ppdc-static -l en -I ../data -d ppd2 sample-import.drv if diff -r ppd ppd2 >/dev/null; then \ echo PPD import OK; \ else \ echo PPD import FAILED; \ exit 1; \ fi # # ppdmerge, merge PPD files. # ppdmerge: ppdmerge.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ ppdmerge.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # ppdpo, create message catalog files. # ppdpo: ppdpo.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ ppdpo.o libcupsppdc.a $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testcatalog, test ppdcCatalog class. # testcatalog: testcatalog.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CXX) $(ALL_LDFLAGS) -o $@ testcatalog.o libcupsppdc.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # libcupsppdc.a # libcupsppdc.a: $(LIBOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ # # Include dependencies... # include Dependencies cups-2.4.7/ppdc/Dependencies0000644000175000017500000002574214502571342015632 0ustar zdohnalzdohnalppdc-array.o: ppdc-array.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-attr.o: ppdc-attr.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-catalog.o: ppdc-catalog.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-choice.o: ppdc-choice.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-constraint.o: ppdc-constraint.cxx ppdc-private.h ppdc.h \ ../cups/file.h ../cups/versioning.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-driver.o: ppdc-driver.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-file.o: ppdc-file.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-filter.o: ppdc-filter.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-font.o: ppdc-font.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-group.o: ppdc-group.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-import.o: ppdc-import.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/ppd.h ../cups/raster.h ppdc-mediasize.o: ppdc-mediasize.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-message.o: ppdc-message.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-option.o: ppdc-option.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-profile.o: ppdc-profile.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-shared.o: ppdc-shared.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-source.o: ppdc-source.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/raster.h ../data/epson.h ../data/hp.h \ ../data/label.h ppdc-string.o: ppdc-string.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-variable.o: ppdc-variable.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h genstrings.o: genstrings.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc.o: ppdc.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdhtml.o: ppdhtml.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdi.o: ppdi.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdmerge.o: ppdmerge.cxx ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/ppd-private.h \ ../cups/ppd.h ../cups/raster.h ppdpo.o: ppdpo.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h testcatalog.o: testcatalog.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h cups-2.4.7/packaging/0000755000175000017500000000000014502571372014310 5ustar zdohnalzdohnalcups-2.4.7/packaging/cups.spec0000644000175000017500000002621414502571372016143 0ustar zdohnalzdohnal# # RPM "spec" file for CUPS. # # Original version by Jason McMullan . # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2019 by Apple Inc. # Copyright © 1999-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Conditional build options (--with name/--without name): # # dbus - Enable/disable DBUS support (default = enable) # dnssd - Enable/disable DNS-SD support (default = enable) # libusb1 - Enable/disable LIBUSB 1.0 support (default = enable) # static - Enable/disable static libraries (default = enable) # systemd - Enable/disable systemd support (default = enable) %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}} %{?_with_dbus: %define _dbus --enable-dbus} %{!?_with_dbus: %define _dbus --disable-dbus} %{!?_with_dnssd: %{!?_without_dnssd: %define _with_dnssd --with-dnssd}} %{?_with_dnssd: %define _dnssd --enable-avahi} %{!?_with_dnssd: %define _dnssd --disable-avahi} %{!?_with_libusb1: %{!?_without_libusb1: %define _with_libusb1 --with-libusb1}} %{?_with_libusb1: %define _libusb1 --enable-libusb} %{!?_with_libusb1: %define _libusb1 --disable-libusb} %{!?_with_static: %{!?_without_static: %define _without_static --without-static}} %{?_with_static: %define _static --enable-static} %{!?_with_static: %define _static --disable-static} %{!?_with_systemd: %{!?_without_systemd: %define _with_systemd --with-systemd}} %{?_with_systemd: %define _systemd --enable-systemd} %{!?_with_systemd: %define _systemd --disable-systemd} Summary: CUPS Name: cups Version: 2.4.7 Release: 0 Epoch: 1 License: GPL Group: System Environment/Daemons Source: https://github.com/openprinting/cups/releases/download/v2.4.7/cups-2.4.7-source.tar.gz Url: https://openprinting.github.io/cups Packager: Anonymous Vendor: OpenPrinting # Package names are as defined for Red Hat (and clone) distributions BuildRequires: gnutls-devel, pam-devel %if %{?_with_dbus:1}%{!?_with_dbus:0} BuildRequires: dbus-devel %endif %if %{?_with_dnssd:1}%{!?_with_dnssd:0} BuildRequires: avahi-devel %endif %if %{?_with_libusb1:1}%{!?_with_libusb1:0} BuildRequires: libusb-devel >= 1.0 %endif %if %{?_with_systemd:1}%{!?_with_systemd:0} BuildRequires: systemd-devel %endif # Use buildroot so as not to disturb the version already installed BuildRoot: /tmp/%{name}-root # Dependencies... Requires: %{name}-libs = %{epoch}:%{version} Obsoletes: lpd, lpr, LPRng Provides: lpd, lpr, LPRng Obsoletes: cups-da, cups-de, cups-es, cups-et, cups-fi, cups-fr, cups-he Obsoletes: cups-id, cups-it, cups-ja, cups-ko, cups-nl, cups-no, cups-pl Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh %package devel Summary: CUPS - development environment Group: Development/Libraries Requires: %{name}-libs = %{epoch}:%{version} %package libs Summary: CUPS - shared libraries Group: System Environment/Libraries Provides: libcups1 %package lpd Summary: CUPS - LPD support Group: System Environment/Daemons Requires: %{name} = %{epoch}:%{version} xinetd %description CUPS is the standards-based, open source printing system developed by Apple Inc. and maintained by OpenPrinting for macOS® and other UNIX®-like operating systems. %description devel This package provides the CUPS headers and development environment. %description libs This package provides the CUPS shared libraries. %description lpd This package provides LPD client support. %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \ ./configure %{_dbus} %{_dnssd} %{_libusb1} %{_static} %{_systemd} # If we got this far, all prerequisite libraries must be here. make %install # Make sure the RPM_BUILD_ROOT directory exists. rm -rf $RPM_BUILD_ROOT make BUILDROOT=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/data %post %if %{?_with_systemd:1}%{!?_with_systemd:0} /bin/systemctl enable cups.service if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl start cups.service fi %else /sbin/chkconfig --add cups /sbin/chkconfig cups on # Restart cupsd if we are upgrading... if test $1 -gt 1; then /sbin/service cups stop /sbin/service cups start fi %endif %post libs /sbin/ldconfig %preun %if %{?_with_systemd:1}%{!?_with_systemd:0} if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl disable cups.service fi %else if test $1 = 0; then /sbin/service cups stop /sbin/chkconfig --del cups fi %endif %postun %if %{?_with_systemd:1}%{!?_with_systemd:0} if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl start cups.service fi %else if test $1 -ge 1; then /sbin/service cups stop /sbin/service cups start fi %endif %postun libs /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %docdir /usr/share/doc/cups %defattr(-,root,root) %dir /etc/cups %config(noreplace) /etc/cups/*.conf /etc/cups/cups-files.conf.default /etc/cups/cupsd.conf.default /etc/cups/snmp.conf.default %dir /etc/cups/ppd %attr(0700,root,root) %dir /etc/cups/ssl %if %{?_with_dbus:1}%{!?_with_dbus:0} # DBUS /etc/dbus-1/system.d/* %endif # PAM %dir /etc/pam.d /etc/pam.d/* %if %{?_with_systemd:1}%{!?_with_systemd:0} # SystemD /usr/lib/systemd/system/cups.* %else # Legacy init support on Linux /etc/init.d/* /etc/rc0.d/* /etc/rc2.d/* /etc/rc3.d/* /etc/rc5.d/* %endif /usr/bin/cancel /usr/bin/cupstestppd /usr/bin/ippeveprinter /usr/bin/ipptool /usr/bin/lp* %dir /usr/lib/cups %dir /usr/lib/cups/backend %if %{?_with_dnssd:1}%{!?_with_dnssd:0} # DNS-SD /usr/bin/ippfind /usr/lib/cups/backend/dnssd %endif /usr/lib/cups/backend/http /usr/lib/cups/backend/https %attr(0700,root,root) /usr/lib/cups/backend/ipp /usr/lib/cups/backend/ipps %attr(0700,root,root) /usr/lib/cups/backend/lpd /usr/lib/cups/backend/snmp /usr/lib/cups/backend/socket /usr/lib/cups/backend/usb %dir /usr/lib/cups/cgi-bin /usr/lib/cups/cgi-bin/* %dir /usr/lib/cups/command /usr/lib/cups/command/* %dir /usr/lib/cups/daemon /usr/lib/cups/daemon/cups-deviced /usr/lib/cups/daemon/cups-driverd /usr/lib/cups/daemon/cups-exec %dir /usr/lib/cups/driver %dir /usr/lib/cups/filter /usr/lib/cups/filter/* %dir /usr/lib/cups/monitor /usr/lib/cups/monitor/* %dir /usr/lib/cups/notifier /usr/lib/cups/notifier/* /usr/sbin/* %dir /usr/share/cups %dir /usr/share/cups/drv /usr/share/cups/drv/* %dir /usr/share/cups/ipptool /usr/share/cups/ipptool/* %dir /usr/share/cups/mime /usr/share/cups/mime/* %dir /usr/share/cups/model %dir /usr/share/cups/ppdc /usr/share/cups/ppdc/* %dir /usr/share/cups/templates /usr/share/cups/templates/* %if %{?_with_libusb1:1}%{!?_with_libusb1:0} # LIBUSB quirks files %dir /usr/share/cups/usb /usr/share/cups/usb/* %endif %dir /usr/share/doc/cups /usr/share/doc/cups/*.* %dir /usr/share/doc/cups/help /usr/share/doc/cups/help/accounting.html /usr/share/doc/cups/help/admin.html /usr/share/doc/cups/help/cgi.html /usr/share/doc/cups/help/encryption.html /usr/share/doc/cups/help/firewalls.html /usr/share/doc/cups/help/glossary.html /usr/share/doc/cups/help/kerberos.html /usr/share/doc/cups/help/license.html /usr/share/doc/cups/help/man-*.html /usr/share/doc/cups/help/network.html /usr/share/doc/cups/help/options.html /usr/share/doc/cups/help/overview.html /usr/share/doc/cups/help/policies.html /usr/share/doc/cups/help/ref-*.html /usr/share/doc/cups/help/security.html /usr/share/doc/cups/help/sharing.html /usr/share/doc/cups/help/translation.html %dir /usr/share/doc/cups/images /usr/share/doc/cups/images/* #%dir /usr/share/doc/cups/ca #/usr/share/doc/cups/ca/* #%dir /usr/share/doc/cups/cs #/usr/share/doc/cups/cs/* %dir /usr/share/doc/cups/de /usr/share/doc/cups/de/* %dir /usr/share/doc/cups/es /usr/share/doc/cups/es/* #%dir /usr/share/doc/cups/fr #/usr/share/doc/cups/fr/* %dir /usr/share/doc/cups/ja /usr/share/doc/cups/ja/* %dir /usr/share/doc/cups/pt_BR /usr/share/doc/cups/pt_BR/* %dir /usr/share/doc/cups/ru /usr/share/doc/cups/ru/* %dir /usr/share/locale/ca /usr/share/locale/ca/cups_ca.po %dir /usr/share/locale/cs /usr/share/locale/cs/cups_cs.po %dir /usr/share/locale/de /usr/share/locale/de/cups_de.po %dir /usr/share/locale/en /usr/share/locale/en/cups_en.po %dir /usr/share/locale/es /usr/share/locale/es/cups_es.po %dir /usr/share/locale/fr /usr/share/locale/fr/cups_fr.po %dir /usr/share/locale/it /usr/share/locale/it/cups_it.po %dir /usr/share/locale/ja /usr/share/locale/ja/cups_ja.po %dir /usr/share/locale/pt_BR /usr/share/locale/pt_BR/cups_pt_BR.po %dir /usr/share/locale/ru /usr/share/locale/ru/cups_ru.po %dir /usr/share/locale/zh_CN /usr/share/locale/zh_CN/cups_zh_CN.po %dir /usr/share/man/man1 /usr/share/man/man1/cancel.1.gz /usr/share/man/man1/cups.1.gz /usr/share/man/man1/cupstestppd.1.gz /usr/share/man/man1/ippeveprinter.1.gz %if %{?_with_dnssd:1}%{!?_with_dnssd:0} # DNS-SD /usr/share/man/man1/ippfind.1.gz %endif /usr/share/man/man1/ipptool.1.gz /usr/share/man/man1/lp.1.gz /usr/share/man/man1/lpoptions.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/*.conf.5.gz /usr/share/man/man5/cupsd-logs.5.gz /usr/share/man/man5/ipptoolfile.5.gz /usr/share/man/man5/mime.*.5.gz %dir /usr/share/man/man7 /usr/share/man/man7/ippevepcl.7.gz /usr/share/man/man7/ippeveps.7.gz %dir /usr/share/man/man8 /usr/share/man/man8/cups-deviced.8.gz /usr/share/man/man8/cups-driverd.8.gz /usr/share/man/man8/cups-exec.8.gz /usr/share/man/man8/cups-snmp.8.gz /usr/share/man/man8/cupsaccept.8.gz /usr/share/man/man8/cupsctl.8.gz /usr/share/man/man8/cupsfilter.8.gz /usr/share/man/man8/cupsd.8.gz /usr/share/man/man8/cupsd-helper.8.gz /usr/share/man/man8/cupsdisable.8.gz /usr/share/man/man8/cupsenable.8.gz /usr/share/man/man8/cupsreject.8.gz /usr/share/man/man8/lpadmin.8.gz /usr/share/man/man8/lpc.8.gz /usr/share/man/man8/lpinfo.8.gz /usr/share/man/man8/lpmove.8.gz %dir /var/cache/cups %attr(0775,root,sys) %dir /var/cache/cups/rss %dir /var/log/cups %dir /var/run/cups %attr(0711,lp,sys) %dir /var/run/cups/certs %attr(0710,lp,sys) %dir /var/spool/cups %attr(1770,lp,sys) %dir /var/spool/cups/tmp # Desktop files /usr/share/applications/* /usr/share/icons/* %files devel %defattr(-,root,root) %dir /usr/share/cups/examples /usr/share/cups/examples/* %dir /usr/share/man/man1 /usr/share/man/man1/cups-config.1.gz /usr/share/man/man1/ppd*.1.gz %dir /usr/share/man/man5 /usr/share/man/man5/ppdcfile.5.gz /usr/share/man/man7/backend.7.gz /usr/share/man/man7/filter.7.gz /usr/share/man/man7/notifier.7.gz /usr/bin/cups-config /usr/bin/ppd* %dir /usr/include/cups /usr/include/cups/* /usr/lib*/*.so %if %{?_with_static:1}%{!?_with_static:0} /usr/lib*/*.a %endif %dir /usr/share/doc/cups/help /usr/share/doc/cups/help/api*.html /usr/share/doc/cups/help/cupspm.* /usr/share/doc/cups/help/postscript-driver.html /usr/share/doc/cups/help/ppd-compiler.html /usr/share/doc/cups/help/raster-driver.html /usr/share/doc/cups/help/spec*.html %files libs %defattr(-,root,root) /usr/lib*/*.so.* %files lpd %defattr(-,root,root) %if %{?_with_systemd:1}%{!?_with_systemd:0} # SystemD /usr/lib/systemd/system/cups-lpd* %else # Legacy xinetd /etc/xinetd.d/cups-lpd %endif %dir /usr/lib/cups %dir /usr/lib/cups/daemon /usr/lib/cups/daemon/cups-lpd %dir /usr/share/man/man8 /usr/share/man/man8/cups-lpd.8.gz cups-2.4.7/packaging/cups.spec.in0000644000175000017500000002623714502571342016552 0ustar zdohnalzdohnal# # RPM "spec" file for CUPS. # # Original version by Jason McMullan . # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2019 by Apple Inc. # Copyright © 1999-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Conditional build options (--with name/--without name): # # dbus - Enable/disable DBUS support (default = enable) # dnssd - Enable/disable DNS-SD support (default = enable) # libusb1 - Enable/disable LIBUSB 1.0 support (default = enable) # static - Enable/disable static libraries (default = enable) # systemd - Enable/disable systemd support (default = enable) %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}} %{?_with_dbus: %define _dbus --enable-dbus} %{!?_with_dbus: %define _dbus --disable-dbus} %{!?_with_dnssd: %{!?_without_dnssd: %define _with_dnssd --with-dnssd}} %{?_with_dnssd: %define _dnssd --enable-avahi} %{!?_with_dnssd: %define _dnssd --disable-avahi} %{!?_with_libusb1: %{!?_without_libusb1: %define _with_libusb1 --with-libusb1}} %{?_with_libusb1: %define _libusb1 --enable-libusb} %{!?_with_libusb1: %define _libusb1 --disable-libusb} %{!?_with_static: %{!?_without_static: %define _without_static --without-static}} %{?_with_static: %define _static --enable-static} %{!?_with_static: %define _static --disable-static} %{!?_with_systemd: %{!?_without_systemd: %define _with_systemd --with-systemd}} %{?_with_systemd: %define _systemd --enable-systemd} %{!?_with_systemd: %define _systemd --disable-systemd} Summary: CUPS Name: cups Version: @CUPS_VERSION@ Release: 0 Epoch: 1 License: GPL Group: System Environment/Daemons Source: https://github.com/OpenPrinting/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz Url: https://openprinting.github.io/cups Packager: Anonymous Vendor: OpenPrinting # Package names are as defined for Red Hat (and clone) distributions BuildRequires: gnutls-devel, pam-devel %if %{?_with_dbus:1}%{!?_with_dbus:0} BuildRequires: dbus-devel %endif %if %{?_with_dnssd:1}%{!?_with_dnssd:0} BuildRequires: avahi-devel %endif %if %{?_with_libusb1:1}%{!?_with_libusb1:0} BuildRequires: libusb-devel >= 1.0 %endif %if %{?_with_systemd:1}%{!?_with_systemd:0} BuildRequires: systemd-devel %endif # Use buildroot so as not to disturb the version already installed BuildRoot: /tmp/%{name}-root # Dependencies... Requires: %{name}-libs = %{epoch}:%{version} Obsoletes: lpd, lpr, LPRng Provides: lpd, lpr, LPRng Obsoletes: cups-da, cups-de, cups-es, cups-et, cups-fi, cups-fr, cups-he Obsoletes: cups-id, cups-it, cups-ja, cups-ko, cups-nl, cups-no, cups-pl Obsoletes: cups-pt, cups-ru, cups-sv, cups-zh %package devel Summary: CUPS - development environment Group: Development/Libraries Requires: %{name}-libs = %{epoch}:%{version} %package libs Summary: CUPS - shared libraries Group: System Environment/Libraries Provides: libcups1 %package lpd Summary: CUPS - LPD support Group: System Environment/Daemons Requires: %{name} = %{epoch}:%{version} xinetd %description CUPS is the standards-based, open source printing system developed by Apple Inc. and maintained by OpenPrinting for macOS® and other UNIX®-like operating systems. %description devel This package provides the CUPS headers and development environment. %description libs This package provides the CUPS shared libraries. %description lpd This package provides LPD client support. %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \ ./configure %{_dbus} %{_dnssd} %{_libusb1} %{_static} %{_systemd} # If we got this far, all prerequisite libraries must be here. make %install # Make sure the RPM_BUILD_ROOT directory exists. rm -rf $RPM_BUILD_ROOT make BUILDROOT=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT/usr/share/cups/banners $RPM_BUILD_ROOT/usr/share/cups/data %post %if %{?_with_systemd:1}%{!?_with_systemd:0} /bin/systemctl enable cups.service if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl start cups.service fi %else /sbin/chkconfig --add cups /sbin/chkconfig cups on # Restart cupsd if we are upgrading... if test $1 -gt 1; then /sbin/service cups stop /sbin/service cups start fi %endif %post libs /sbin/ldconfig %preun %if %{?_with_systemd:1}%{!?_with_systemd:0} if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl disable cups.service fi %else if test $1 = 0; then /sbin/service cups stop /sbin/chkconfig --del cups fi %endif %postun %if %{?_with_systemd:1}%{!?_with_systemd:0} if test $1 -ge 1; then /bin/systemctl stop cups.service /bin/systemctl start cups.service fi %else if test $1 -ge 1; then /sbin/service cups stop /sbin/service cups start fi %endif %postun libs /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %docdir /usr/share/doc/cups %defattr(-,root,root) %dir /etc/cups %config(noreplace) /etc/cups/*.conf /etc/cups/cups-files.conf.default /etc/cups/cupsd.conf.default /etc/cups/snmp.conf.default %dir /etc/cups/ppd %attr(0700,root,root) %dir /etc/cups/ssl %if %{?_with_dbus:1}%{!?_with_dbus:0} # DBUS /etc/dbus-1/system.d/* %endif # PAM %dir /etc/pam.d /etc/pam.d/* %if %{?_with_systemd:1}%{!?_with_systemd:0} # SystemD /usr/lib/systemd/system/cups.* %else # Legacy init support on Linux /etc/init.d/* /etc/rc0.d/* /etc/rc2.d/* /etc/rc3.d/* /etc/rc5.d/* %endif /usr/bin/cancel /usr/bin/cupstestppd /usr/bin/ippeveprinter /usr/bin/ipptool /usr/bin/lp* %dir /usr/lib/cups %dir /usr/lib/cups/backend %if %{?_with_dnssd:1}%{!?_with_dnssd:0} # DNS-SD /usr/bin/ippfind /usr/lib/cups/backend/dnssd %endif /usr/lib/cups/backend/http /usr/lib/cups/backend/https %attr(0700,root,root) /usr/lib/cups/backend/ipp /usr/lib/cups/backend/ipps %attr(0700,root,root) /usr/lib/cups/backend/lpd /usr/lib/cups/backend/snmp /usr/lib/cups/backend/socket /usr/lib/cups/backend/usb %dir /usr/lib/cups/cgi-bin /usr/lib/cups/cgi-bin/* %dir /usr/lib/cups/command /usr/lib/cups/command/* %dir /usr/lib/cups/daemon /usr/lib/cups/daemon/cups-deviced /usr/lib/cups/daemon/cups-driverd /usr/lib/cups/daemon/cups-exec %dir /usr/lib/cups/driver %dir /usr/lib/cups/filter /usr/lib/cups/filter/* %dir /usr/lib/cups/monitor /usr/lib/cups/monitor/* %dir /usr/lib/cups/notifier /usr/lib/cups/notifier/* /usr/sbin/* %dir /usr/share/cups %dir /usr/share/cups/drv /usr/share/cups/drv/* %dir /usr/share/cups/ipptool /usr/share/cups/ipptool/* %dir /usr/share/cups/mime /usr/share/cups/mime/* %dir /usr/share/cups/model %dir /usr/share/cups/ppdc /usr/share/cups/ppdc/* %dir /usr/share/cups/templates /usr/share/cups/templates/* %if %{?_with_libusb1:1}%{!?_with_libusb1:0} # LIBUSB quirks files %dir /usr/share/cups/usb /usr/share/cups/usb/* %endif %dir /usr/share/doc/cups /usr/share/doc/cups/*.* %dir /usr/share/doc/cups/help /usr/share/doc/cups/help/accounting.html /usr/share/doc/cups/help/admin.html /usr/share/doc/cups/help/cgi.html /usr/share/doc/cups/help/encryption.html /usr/share/doc/cups/help/firewalls.html /usr/share/doc/cups/help/glossary.html /usr/share/doc/cups/help/kerberos.html /usr/share/doc/cups/help/license.html /usr/share/doc/cups/help/man-*.html /usr/share/doc/cups/help/network.html /usr/share/doc/cups/help/options.html /usr/share/doc/cups/help/overview.html /usr/share/doc/cups/help/policies.html /usr/share/doc/cups/help/ref-*.html /usr/share/doc/cups/help/security.html /usr/share/doc/cups/help/sharing.html /usr/share/doc/cups/help/translation.html %dir /usr/share/doc/cups/images /usr/share/doc/cups/images/* #%dir /usr/share/doc/cups/ca #/usr/share/doc/cups/ca/* #%dir /usr/share/doc/cups/cs #/usr/share/doc/cups/cs/* %dir /usr/share/doc/cups/de /usr/share/doc/cups/de/* %dir /usr/share/doc/cups/es /usr/share/doc/cups/es/* #%dir /usr/share/doc/cups/fr #/usr/share/doc/cups/fr/* %dir /usr/share/doc/cups/ja /usr/share/doc/cups/ja/* %dir /usr/share/doc/cups/pt_BR /usr/share/doc/cups/pt_BR/* %dir /usr/share/doc/cups/ru /usr/share/doc/cups/ru/* %dir /usr/share/locale/ca /usr/share/locale/ca/cups_ca.po %dir /usr/share/locale/cs /usr/share/locale/cs/cups_cs.po %dir /usr/share/locale/de /usr/share/locale/de/cups_de.po %dir /usr/share/locale/en /usr/share/locale/en/cups_en.po %dir /usr/share/locale/es /usr/share/locale/es/cups_es.po %dir /usr/share/locale/fr /usr/share/locale/fr/cups_fr.po %dir /usr/share/locale/it /usr/share/locale/it/cups_it.po %dir /usr/share/locale/ja /usr/share/locale/ja/cups_ja.po %dir /usr/share/locale/pt_BR /usr/share/locale/pt_BR/cups_pt_BR.po %dir /usr/share/locale/ru /usr/share/locale/ru/cups_ru.po %dir /usr/share/locale/zh_CN /usr/share/locale/zh_CN/cups_zh_CN.po %dir /usr/share/man/man1 /usr/share/man/man1/cancel.1.gz /usr/share/man/man1/cups.1.gz /usr/share/man/man1/cupstestppd.1.gz /usr/share/man/man1/ippeveprinter.1.gz %if %{?_with_dnssd:1}%{!?_with_dnssd:0} # DNS-SD /usr/share/man/man1/ippfind.1.gz %endif /usr/share/man/man1/ipptool.1.gz /usr/share/man/man1/lp.1.gz /usr/share/man/man1/lpoptions.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/*.conf.5.gz /usr/share/man/man5/cupsd-logs.5.gz /usr/share/man/man5/ipptoolfile.5.gz /usr/share/man/man5/mime.*.5.gz %dir /usr/share/man/man7 /usr/share/man/man7/ippevepcl.7.gz /usr/share/man/man7/ippeveps.7.gz %dir /usr/share/man/man8 /usr/share/man/man8/cups-deviced.8.gz /usr/share/man/man8/cups-driverd.8.gz /usr/share/man/man8/cups-exec.8.gz /usr/share/man/man8/cups-snmp.8.gz /usr/share/man/man8/cupsaccept.8.gz /usr/share/man/man8/cupsctl.8.gz /usr/share/man/man8/cupsfilter.8.gz /usr/share/man/man8/cupsd.8.gz /usr/share/man/man8/cupsd-helper.8.gz /usr/share/man/man8/cupsdisable.8.gz /usr/share/man/man8/cupsenable.8.gz /usr/share/man/man8/cupsreject.8.gz /usr/share/man/man8/lpadmin.8.gz /usr/share/man/man8/lpc.8.gz /usr/share/man/man8/lpinfo.8.gz /usr/share/man/man8/lpmove.8.gz %dir /var/cache/cups %attr(0775,root,sys) %dir /var/cache/cups/rss %dir /var/log/cups %dir /var/run/cups %attr(0711,lp,sys) %dir /var/run/cups/certs %attr(0710,lp,sys) %dir /var/spool/cups %attr(1770,lp,sys) %dir /var/spool/cups/tmp # Desktop files /usr/share/applications/* /usr/share/icons/* %files devel %defattr(-,root,root) %dir /usr/share/cups/examples /usr/share/cups/examples/* %dir /usr/share/man/man1 /usr/share/man/man1/cups-config.1.gz /usr/share/man/man1/ppd*.1.gz %dir /usr/share/man/man5 /usr/share/man/man5/ppdcfile.5.gz /usr/share/man/man7/backend.7.gz /usr/share/man/man7/filter.7.gz /usr/share/man/man7/notifier.7.gz /usr/bin/cups-config /usr/bin/ppd* %dir /usr/include/cups /usr/include/cups/* /usr/lib*/*.so %if %{?_with_static:1}%{!?_with_static:0} /usr/lib*/*.a %endif %dir /usr/share/doc/cups/help /usr/share/doc/cups/help/api*.html /usr/share/doc/cups/help/cupspm.* /usr/share/doc/cups/help/postscript-driver.html /usr/share/doc/cups/help/ppd-compiler.html /usr/share/doc/cups/help/raster-driver.html /usr/share/doc/cups/help/spec*.html %files libs %defattr(-,root,root) /usr/lib*/*.so.* %files lpd %defattr(-,root,root) %if %{?_with_systemd:1}%{!?_with_systemd:0} # SystemD /usr/lib/systemd/system/cups-lpd* %else # Legacy xinetd /etc/xinetd.d/cups-lpd %endif %dir /usr/lib/cups %dir /usr/lib/cups/daemon /usr/lib/cups/daemon/cups-lpd %dir /usr/share/man/man8 /usr/share/man/man8/cups-lpd.8.gz cups-2.4.7/packaging/cups.list.in0000644000175000017500000005372014502571342016570 0ustar zdohnalzdohnal# # ESP Package Manager (EPM) file list for CUPS. # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Product information %product CUPS %copyright 2020 by Michael R Sweet, 2007-2019 by Apple Inc. %vendor OpenPrinting #%license LICENSE %readme LICENSE %format rpm # Red Hat and their epochs... %version 1:@CUPS_VERSION@ %format !rpm %version @CUPS_VERSION@ %format all %description CUPS is the standards-based, open source printing system developed %description by Apple Inc. and maintained by OpenPrinting for macOS® and other %description UNIX®-like operating systems. %format rpm %provides lpd %provides lpr %provides LPRng %replaces lpd %replaces lpr %replaces LPRng %requires cups-libs 1:@CUPS_VERSION@ # Replace all of the old localization subpackages from CUPS 1.2/1.3 %replaces cups-da %replaces cups-de %replaces cups-es %replaces cups-et %replaces cups-fi %replaces cups-fr %replaces cups-he %replaces cups-id %replaces cups-it %replaces cups-ja %replaces cups-ko %replaces cups-nl %replaces cups-no %replaces cups-pl %replaces cups-pt %replaces cups-ru %replaces cups-sv %replaces cups-zh %format deb %provides cupsys %provides cupsys-client %provides cupsys-bsd %requires cups-libs # Replace all of the old localization subpackages from CUPS 1.2/1.3 %replaces cups-da %replaces cups-de %replaces cups-es %replaces cups-et %replaces cups-fi %replaces cups-fr %replaces cups-he %replaces cups-id %replaces cups-it %replaces cups-ja %replaces cups-ko %replaces cups-nl %replaces cups-no %replaces cups-pl %replaces cups-pt %replaces cups-ru %replaces cups-sv %replaces cups-zh %format pkg %replaces SUNWlpmsg LP Alerts %replaces SUNWlpr LP Print Service, (Root) %replaces SUNWlps LP Print Service - Server, (Usr) %replaces SUNWlpu LP Print Service - Client, (Usr) %replaces SUNWpsu LP Print Server, (Usr) %replaces SUNWpsr LP Print Server, (Root) %replaces SUNWpcu LP Print Client, (Usr) %replaces SUNWpcr LP Print Client, (Root) %replaces SUNWppm %replaces SUNWmp %replaces SUNWscplp SunOS Print Compatibility %format inst %replaces patch*.print_*.* 0 0 1289999999 1289999999 %replaces maint*.print_*.* 0 0 1289999999 1289999999 %replaces print 0 0 1289999999 1289999999 %replaces fw_cups 0 0 1289999999 1289999999 %incompat patch*.print_*.* 0 0 1289999999 1289999999 %incompat maint*.print_*.* 0 0 1289999999 1289999999 %incompat print 0 0 1289999999 1289999999 %incompat fw_cups 0 0 1289999999 1289999999 %requires cups.sw.libs # Replace all of the old localization subpackages from CUPS 1.2/1.3 %replaces cups.sw.da %replaces cups.sw.de %replaces cups.sw.es %replaces cups.sw.et %replaces cups.sw.fi %replaces cups.sw.fr %replaces cups.sw.he %replaces cups.sw.id %replaces cups.sw.it %replaces cups.sw.ja %replaces cups.sw.ko %replaces cups.sw.nl %replaces cups.sw.no %replaces cups.sw.pl %replaces cups.sw.pt %replaces cups.sw.ru %replaces cups.sw.sv %replaces cups.sw.zh %format portable %requires cups-libs # Replace all of the old localization subpackages from CUPS 1.2/1.3 %replaces cups-da %replaces cups-de %replaces cups-es %replaces cups-et %replaces cups-fi %replaces cups-fr %replaces cups-he %replaces cups-id %replaces cups-it %replaces cups-ja %replaces cups-ko %replaces cups-nl %replaces cups-no %replaces cups-pl %replaces cups-pt %replaces cups-ru %replaces cups-sv %replaces cups-zh %format all %subpackage libs %description Shared libraries %format deb %provides libcups1 %provides libcupsys2 %provides libcupsys2-gnutls10 %provides libcupsimage2 %format all %subpackage devel %description Development environment %format deb %provides libcupsys2-dev %provides libcupsimage2-dev %format all %subpackage lpd %description LPD support %subpackage # # GNU variables... # $prefix=@prefix@ $exec_prefix=@exec_prefix@ $bindir=@bindir@ $datarootdir=@datarootdir@ $datadir=@datadir@ $includedir=@includedir@ $infodir=@infodir@ $libdir=@libdir@ $libexecdir=@libexecdir@ $localstatedir=@localstatedir@ $mandir=@mandir@ $oldincludedir=@oldincludedir@ $sbindir=@sbindir@ $sharedstatedir=@sharedstatedir@ $srcdir=@srcdir@ $sysconfdir=@sysconfdir@ $top_srcdir=@top_srcdir@ # # CUPS variables... # $AMANDIR=@AMANDIR@ $BINDIR=@bindir@ $CACHEDIR=@CUPS_CACHEDIR@ $DATADIR=@CUPS_DATADIR@ $DOCDIR=@CUPS_DOCROOT@ $INCLUDEDIR=${includedir} $INITDIR=@INITDIR@ $INITDDIR=@INITDDIR@ $LIBDIR=${libdir} $LOCALEDIR=@CUPS_LOCALEDIR@ $LOGDIR=@CUPS_LOGDIR@ $MANDIR=@mandir@ $PAMDIR=@PAMDIR@ $PMANDIR=@PMANDIR@ $REQUESTS=@CUPS_REQUESTS@ $SBINDIR=@sbindir@ $SERVERBIN=@CUPS_SERVERBIN@ $SERVERROOT=@CUPS_SERVERROOT@ $STATEDIR=@CUPS_STATEDIR@ $XINETD=@XINETD@ $LIB32DIR=@LIB32DIR@ $LIB64DIR=@LIB64DIR@ $MDNS=@MDNS@ $CUPS_USER=@CUPS_USER@ $CUPS_GROUP=@CUPS_GROUP@ $CUPS_PRIMARY_SYSTEM_GROUP=@CUPS_PRIMARY_SYSTEM_GROUP@ $CUPS_PERM=0@CUPS_CONFIG_FILE_PERM@ $INSTALLSTATIC=@INSTALLSTATIC@ $LIBZ=@LIBZ@ $DSOLIBS=@DSOLIBS@ # Make sure the MD5 password file is now owned by CUPS_USER... %postinstall if test -f $SERVERROOT/passwd.md5; then %postinstall chown $CUPS_USER $SERVERROOT/passwd.md5 %postinstall fi # Make sure the shared libraries are refreshed... %subpackage libs %system linux %postinstall ldconfig %system all %subpackage # Server programs %system all # Server files f 0555 root sys $SBINDIR/cupsd scheduler/cupsd d 0755 root sys $SERVERBIN - %system darwin d 0755 root sys $SERVERBIN/apple - f 0555 root sys $SERVERBIN/apple/ipp backend/ipp l 0755 root sys $SERVERBIN/apple/http ipp l 0755 root sys $SERVERBIN/apple/https ipp l 0755 root sys $SERVERBIN/apple/ipps ipp %system all d 0755 root sys $SERVERBIN/backend - f 0500 root sys $SERVERBIN/backend/ipp backend/ipp l 0700 root sys $SERVERBIN/backend/http ipp l 0700 root sys $SERVERBIN/backend/https ipp l 0700 root sys $SERVERBIN/backend/ipps ipp f 0500 root sys $SERVERBIN/backend/lpd backend/lpd %if DNSSD_BACKEND f 0500 root sys $SERVERBIN/backend/dnssd backend/dnssd %system darwin l 0700 root sys $SERVERBIN/backend/mdns dnssd %system all %endif f 0555 root sys $SERVERBIN/backend/snmp backend/snmp f 0555 root sys $SERVERBIN/backend/socket backend/socket f 0555 root sys $SERVERBIN/backend/usb backend/usb d 0755 root sys $SERVERBIN/cgi-bin - f 0555 root sys $SERVERBIN/cgi-bin/admin.cgi cgi-bin/admin.cgi f 0555 root sys $SERVERBIN/cgi-bin/classes.cgi cgi-bin/classes.cgi f 0555 root sys $SERVERBIN/cgi-bin/help.cgi cgi-bin/help.cgi f 0555 root sys $SERVERBIN/cgi-bin/jobs.cgi cgi-bin/jobs.cgi f 0555 root sys $SERVERBIN/cgi-bin/printers.cgi cgi-bin/printers.cgi d 0755 root sys $SERVERBIN/command - f 0555 root sys $SERVERBIN/command/ippevepcl tools/ippevepcl f 0555 root sys $SERVERBIN/command/ippeveps tools/ippeveps d 0755 root sys $SERVERBIN/daemon - f 0555 root sys $SERVERBIN/daemon/cups-deviced scheduler/cups-deviced f 0555 root sys $SERVERBIN/daemon/cups-driverd scheduler/cups-driverd d 0755 root sys $SERVERBIN/driver - d 0755 root sys $SERVERBIN/filter - f 0555 root sys $SERVERBIN/filter/commandtops filter/commandtops f 0555 root sys $SERVERBIN/filter/gziptoany filter/gziptoany f 0555 root sys $SERVERBIN/filter/pstops filter/pstops f 0555 root sys $SERVERBIN/filter/rastertolabel filter/rastertolabel l 0755 root sys $SERVERBIN/filter/rastertodymo rastertolabel f 0555 root sys $SERVERBIN/filter/rastertoepson filter/rastertoepson f 0555 root sys $SERVERBIN/filter/rastertohp filter/rastertohp f 0555 root sys $SERVERBIN/filter/rastertopwg filter/rastertopwg d 0755 root sys $SERVERBIN/notifier - f 0555 root sys $SERVERBIN/notifier/mailto notifier/mailto %subpackage lpd d 0755 root sys $SERVERBIN/daemon - f 0555 root sys $SERVERBIN/daemon/cups-lpd scheduler/cups-lpd %subpackage # Admin commands d 0755 root sys $SBINDIR - f 0555 root sys $SBINDIR/cupsaccept systemv/cupsaccept f 0555 root sys $SBINDIR/cupsctl systemv/cupsctl l 0755 root sys $SBINDIR/cupsdisable cupsaccept l 0755 root sys $SBINDIR/cupsenable cupsaccept l 0755 root sys $SBINDIR/cupsreject cupsaccept f 0555 root sys $SBINDIR/lpadmin systemv/lpadmin f 0555 root sys $SBINDIR/lpc berkeley/lpc f 0555 root sys $SBINDIR/lpinfo systemv/lpinfo f 0555 root sys $SBINDIR/lpmove systemv/lpmove %system irix l 0755 root sys /usr/etc/lpc $SBINDIR/lpc %system all # User commands d 0755 root sys $BINDIR - f 0555 root sys $BINDIR/cancel systemv/cancel f 0555 root sys $BINDIR/cupstestppd systemv/cupstestppd f 0555 root sys $BINDIR/ippeveprinter tools/ippeveprinter %if DNSSD_BACKEND f 0555 root sys $BINDIR/ippfind tools/ippfind %endif f 0555 root sys $BINDIR/ipptool tools/ipptool f 0555 root sys $BINDIR/lp systemv/lp f 0555 root sys $BINDIR/lpoptions systemv/lpoptions f 0555 root sys $BINDIR/lpq berkeley/lpq f 0555 root sys $BINDIR/lpr berkeley/lpr f 0555 root sys $BINDIR/lprm berkeley/lprm f 0555 root sys $BINDIR/lpstat systemv/lpstat %system irix l 0755 root sys /usr/bsd/lpq $BINDIR/lpq l 0755 root sys /usr/bsd/lpr $BINDIR/lpr l 0755 root sys /usr/bsd/lprm $BINDIR/lprm %system all # DSOs %if DSOLIBS %subpackage libs %system darwin f 0555 root sys $LIBDIR/libcups.2.dylib cups/libcups.2.dylib nostrip() l 0755 root sys $LIBDIR/libcups.dylib libcups.2.dylib f 0555 root sys $LIBDIR/libcupsimage.2.dylib cups/libcupsimage.2.dylib nostrip() l 0755 root sys $LIBDIR/libcupsimage.dylib libcupsimage.2.dylib %system !darwin f 0555 root sys $LIBDIR/libcups.so.2 cups/libcups.so.2 nostrip() l 0755 root sys $LIBDIR/libcups.so libcups.so.2 f 0555 root sys $LIBDIR/libcupsimage.so.2 cups/libcupsimage.so.2 nostrip() l 0755 root sys $LIBDIR/libcupsimage.so libcupsimage.so.2 %system all %subpackage %endif # Directories d 0755 root sys $LOGDIR - d 0710 root $CUPS_GROUP $REQUESTS - d 1770 root $CUPS_GROUP $REQUESTS/tmp - d 0775 root $CUPS_GROUP $CACHEDIR - d 0775 root $CUPS_GROUP $CACHEDIR/rss - #d 0755 root $CUPS_GROUP $CACHEDIR/ppd - %system !darwin d 0755 root $CUPS_GROUP $STATEDIR - %system all d 0511 root $CUPS_PRIMARY_SYSTEM_GROUP $STATEDIR/certs - # Data files f 0444 root sys $LOCALEDIR/ca/cups_ca.po locale/cups_ca.po f 0444 root sys $LOCALEDIR/cs/cups_cs.po locale/cups_cs.po #f 0444 root sys $LOCALEDIR/da/cups_da.po locale/cups_da.po f 0444 root sys $LOCALEDIR/de/cups_de.po locale/cups_de.po f 0444 root sys $LOCALEDIR/es/cups_es.po locale/cups_es.po #f 0444 root sys $LOCALEDIR/et/cups_et.po locale/cups_et.po #f 0444 root sys $LOCALEDIR/eu/cups_eu.po locale/cups_eu.po #f 0444 root sys $LOCALEDIR/fi/cups_fi.po locale/cups_fi.po f 0444 root sys $LOCALEDIR/fr/cups_fr.po locale/cups_fr.po #f 0444 root sys $LOCALEDIR/he/cups_he.po locale/cups_he.po #f 0444 root sys $LOCALEDIR/id/cups_id.po locale/cups_id.po f 0444 root sys $LOCALEDIR/it/cups_it.po locale/cups_it.po f 0444 root sys $LOCALEDIR/ja/cups_ja.po locale/cups_ja.po #f 0444 root sys $LOCALEDIR/ko/cups_ko.po locale/cups_ko.po #f 0444 root sys $LOCALEDIR/nl/cups_nl.po locale/cups_nl.po #f 0444 root sys $LOCALEDIR/no/cups_no.po locale/cups_no.po #f 0444 root sys $LOCALEDIR/pl/cups_pl.po locale/cups_pl.po #f 0444 root sys $LOCALEDIR/pt/cups_pt.po locale/cups_pt.po f 0444 root sys $LOCALEDIR/pt_BR/cups_pt_BR.po locale/cups_pt_BR.po f 0444 root sys $LOCALEDIR/ru/cups_ru.po locale/cups_ru.po #f 0444 root sys $LOCALEDIR/sv/cups_sv.po locale/cups_sv.po #f 0444 root sys $LOCALEDIR/zh/cups_zh.po locale/cups_zh.po #f 0444 root sys $LOCALEDIR/zh_TW/cups_zh_TW.po locale/cups_zh_TW.po d 0755 root sys $DATADIR - d 0755 root sys $DATADIR/banners - d 0755 root sys $DATADIR/data - d 0755 root sys $DATADIR/drv - f 0444 root sys $DATADIR/drv/sample.drv ppdc/sample.drv d 0755 root sys $DATADIR/examples - f 0444 root sys $DATADIR/examples examples/*.drv d 0755 root sys $DATADIR/ipptool - f 0444 root sys $DATADIR/ipptool examples/*.jpg f 0444 root sys $DATADIR/ipptool examples/*.test f 0444 root sys $DATADIR/ipptool examples/document-*.p* f 0444 root sys $DATADIR/ipptool examples/onepage-*.p* f 0444 root sys $DATADIR/ipptool examples/testfile.* d 0755 root sys $DATADIR/mime - f 0444 root sys $DATADIR/mime/mime.convs conf/mime.convs f 0444 root sys $DATADIR/mime/mime.types conf/mime.types d 0755 root sys $DATADIR/model - d 0755 root sys $DATADIR/ppdc - f 0444 root sys $DATADIR/ppdc data/*.defs f 0444 root sys $DATADIR/ppdc data/*.h d 0755 root sys $DATADIR/templates - f 0444 root sys $DATADIR/templates templates/*.tmpl ## Template files d 0755 root sys $DATADIR/templates/de f 0444 root sys $DATADIR/templates/de templates/de/*.tmpl d 0755 root sys $DATADIR/templates/es f 0444 root sys $DATADIR/templates/es templates/es/*.tmpl #d 0755 root sys $DATADIR/templates/et #f 0444 root sys $DATADIR/templates/et templates/et/*.tmpl #d 0755 root sys $DATADIR/templates/eu #f 0444 root sys $DATADIR/templates/eu templates/eu/*.tmpl d 0755 root sys $DATADIR/templates/fr f 0444 root sys $DATADIR/templates/fr templates/fr/*.tmpl #d 0755 root sys $DATADIR/templates/he #f 0444 root sys $DATADIR/templates/he templates/he/*.tmpl #d 0755 root sys $DATADIR/templates/id #f 0444 root sys $DATADIR/templates/id templates/id/*.tmpl #d 0755 root sys $DATADIR/templates/it #f 0444 root sys $DATADIR/templates/it templates/it/*.tmpl d 0755 root sys $DATADIR/templates/ja f 0444 root sys $DATADIR/templates/ja templates/ja/*.tmpl #d 0755 root sys $DATADIR/templates/pl #f 0444 root sys $DATADIR/templates/pl templates/pl/*.tmpl d 0755 root sys $DATADIR/templates/pt_BR f 0444 root sys $DATADIR/templates/pt_BR templates/pt_BR/*.tmpl d 0755 root sys $DATADIR/templates/ru f 0444 root sys $DATADIR/templates/ru templates/ru/*.tmpl #d 0755 root sys $DATADIR/templates/sv #f 0444 root sys $DATADIR/templates/sv templates/sv/*.tmpl #d 0755 root sys $DATADIR/templates/zh_TW #f 0444 root sys $DATADIR/templates/zh_TW templates/zh_TW/*.tmpl # Config files d 0755 root $CUPS_GROUP $SERVERROOT - d 0755 root $CUPS_GROUP $SERVERROOT/ppd - d 0700 root $CUPS_GROUP $SERVERROOT/ssl - c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cups-files.conf conf/cups-files.conf f $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cups-files.conf.default conf/cups-files.conf c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cupsd.conf conf/cupsd.conf f $CUPS_PERM root $CUPS_GROUP $SERVERROOT/cupsd.conf.default conf/cupsd.conf c $CUPS_PERM root $CUPS_GROUP $SERVERROOT/snmp.conf conf/snmp.conf %if PAMDIR d 0755 root sys $PAMDIR - c 0644 root sys $PAMDIR/cups conf/@PAMFILE@ %endif %subpackage devel # Developer files f 0555 root sys $BINDIR/cups-config cups-config d 0755 root sys $INCLUDEDIR/cups - f 0444 root sys $INCLUDEDIR/cups/adminutil.h cups/adminutil.h f 0444 root sys $INCLUDEDIR/cups/array.h cups/array.h f 0444 root sys $INCLUDEDIR/cups/backend.h cups/backend.h f 0444 root sys $INCLUDEDIR/cups/cups.h cups/cups.h f 0444 root sys $INCLUDEDIR/cups/dir.h cups/dir.h f 0444 root sys $INCLUDEDIR/cups/file.h cups/file.h f 0444 root sys $INCLUDEDIR/cups/http.h cups/http.h f 0444 root sys $INCLUDEDIR/cups/ipp.h cups/ipp.h f 0444 root sys $INCLUDEDIR/cups/language.h cups/language.h f 0444 root sys $INCLUDEDIR/cups/ppd.h cups/ppd.h f 0444 root sys $INCLUDEDIR/cups/pwg.h cups/pwg.h f 0444 root sys $INCLUDEDIR/cups/raster.h cups/raster.h f 0444 root sys $INCLUDEDIR/cups/sidechannel.h cups/sidechannel.h f 0444 root sys $INCLUDEDIR/cups/transcode.h cups/transcode.h f 0444 root sys $INCLUDEDIR/cups/versioning.h cups/versioning.h %if INSTALLSTATIC f 0444 root sys $LIBDIR/libcups.a cups/libcups.a f 0444 root sys $LIBDIR/libcupsimage.a cups/libcupsimage.a %endif d 0755 root sys $DOCDIR/help - f 0444 root sys $DOCDIR/help doc/help/api*.html f 0444 root sys $DOCDIR/help doc/help/cupspm.* f 0444 root sys $DOCDIR/help/postscript-driver.html doc/help/postscript-driver.html f 0444 root sys $DOCDIR/help/ppd-compiler.html doc/help/ppd-compiler.html f 0444 root sys $DOCDIR/help/raster-driver.html doc/help/raster-driver.html f 0444 root sys $DOCDIR/help doc/help/spec*.html %subpackage # Documentation files d 0755 root sys $DOCDIR - f 0444 root sys $DOCDIR doc/*.css f 0444 root sys $DOCDIR doc/*.html f 0444 root sys $DOCDIR/apple-touch-icon.png doc/apple-touch-icon.png d 0755 root sys $DOCDIR/help - f 0444 root sys $DOCDIR/help/accounting.html doc/help/accounting.html f 0444 root sys $DOCDIR/help/admin.html doc/help/admin.html f 0444 root sys $DOCDIR/help/cgi.html doc/help/cgi.html f 0444 root sys $DOCDIR/help/encryption.html doc/help/encryption.html f 0444 root sys $DOCDIR/help/firewalls.html doc/help/firewalls.html f 0444 root sys $DOCDIR/help/glossary.html doc/help/glossary.html f 0444 root sys $DOCDIR/help/kerberos.html doc/help/kerberos.html f 0444 root sys $DOCDIR/help/license.html doc/help/license.html f 0444 root sys $DOCDIR/help/network.html doc/help/network.html f 0444 root sys $DOCDIR/help/options.html doc/help/options.html f 0444 root sys $DOCDIR/help/overview.html doc/help/overview.html f 0444 root sys $DOCDIR/help/policies.html doc/help/policies.html f 0444 root sys $DOCDIR/help/security.html doc/help/security.html f 0444 root sys $DOCDIR/help/sharing.html doc/help/sharing.html f 0444 root sys $DOCDIR/help/translation.html doc/help/translation.html f 0444 root sys $DOCDIR/help doc/help/man-*.html f 0444 root sys $DOCDIR/help doc/help/ref-*.html d 0755 root sys $DOCDIR/images - f 0444 root sys $DOCDIR/images doc/images/*.gif f 0444 root sys $DOCDIR/images doc/images/*.jpg f 0444 root sys $DOCDIR/images doc/images/*.png f 0444 root sys $DOCDIR/robots.txt doc/robots.txt # Localized documentation files d 0755 root sys $DOCDIR/de f 0444 root sys $DOCDIR/de doc/de/*.html d 0755 root sys $DOCDIR/es f 0444 root sys $DOCDIR/es doc/es/*.html #d 0755 root sys $DOCDIR/et #f 0444 root sys $DOCDIR/et doc/et/*.html #d 0755 root sys $DOCDIR/eu #f 0444 root sys $DOCDIR/eu doc/eu/*.html #d 0755 root sys $DOCDIR/fr #f 0444 root sys $DOCDIR/fr doc/fr/*.html #d 0755 root sys $DOCDIR/he #f 0444 root sys $DOCDIR/he doc/he/*.html #f 0444 root sys $DOCDIR/he/cups.css doc/he/cups.css #d 0755 root sys $DOCDIR/id #f 0444 root sys $DOCDIR/id doc/id/*.html #d 0755 root sys $DOCDIR/it #f 0444 root sys $DOCDIR/it doc/it/*.html d 0755 root sys $DOCDIR/ja f 0444 root sys $DOCDIR/ja doc/ja/*.html #d 0755 root sys $DOCDIR/pl #f 0444 root sys $DOCDIR/pl doc/pl/*.html d 0755 root sys $DOCDIR/pt_BR f 0444 root sys $DOCDIR/pt_BR doc/pt_BR/*.html d 0755 root sys $DOCDIR/ru f 0444 root sys $DOCDIR/ru doc/ru/*.html #d 0755 root sys $DOCDIR/sv #f 0444 root sys $DOCDIR/sv doc/sv/*.html #d 0755 root sys $DOCDIR/zh_TW #f 0444 root sys $DOCDIR/zh_TW doc/zh_TW/*.html # Man pages d 0755 root sys $AMANDIR - d 0755 root sys $AMANDIR/man8 - d 0755 root sys $MANDIR - d 0755 root sys $MANDIR/man1 - d 0755 root sys $MANDIR/man5 - d 0755 root sys $MANDIR/man7 - f 0444 root sys $MANDIR/man1/cancel.1 man/cancel.1 f 0444 root sys $MANDIR/man1/cups.1 man/cups.1 f 0444 root sys $MANDIR/man1/cupstestppd.1 man/cupstestppd.1 f 0444 root sys $MANDIR/man1/ippeveprinter.1 man/ippeveprinter.1 f 0444 root sys $MANDIR/man1/ippfind.1 man/ippfind.1 f 0444 root sys $MANDIR/man1/ipptool.1 man/ipptool.1 f 0444 root sys $MANDIR/man1/lp.1 man/lp.1 f 0444 root sys $MANDIR/man1/lpoptions.1 man/lpoptions.1 f 0444 root sys $MANDIR/man1/lpq.1 man/lpq.1 f 0444 root sys $MANDIR/man1/lpr.1 man/lpr.1 f 0444 root sys $MANDIR/man1/lprm.1 man/lprm.1 f 0444 root sys $MANDIR/man1/lpstat.1 man/lpstat.1 f 0444 root sys $MANDIR/man5/classes.conf.5 man/classes.conf.5 f 0444 root sys $MANDIR/man5/client.conf.5 man/client.conf.5 f 0444 root sys $MANDIR/man5/cups-files.conf.5 man/cups-files.conf.5 f 0444 root sys $MANDIR/man5/cups-snmp.conf.5 man/cups-snmp.conf.5 f 0444 root sys $MANDIR/man5/cupsd.conf.5 man/cupsd.conf.5 f 0444 root sys $MANDIR/man5/cupsd-logs.5 man/cupsd-logs.5 f 0444 root sys $MANDIR/man5/ipptoolfile.5 man/ipptoolfile.5 f 0444 root sys $MANDIR/man5/mailto.conf.5 man/mailto.conf.5 f 0444 root sys $MANDIR/man5/mime.convs.5 man/mime.convs.5 f 0444 root sys $MANDIR/man5/mime.types.5 man/mime.types.5 f 0444 root sys $MANDIR/man5/printers.conf.5 man/printers.conf.5 f 0444 root sys $MANDIR/man7/ippevepcl.7 man/ippevepcl.7 l 0644 root sys $MANDIR/man7/ippeveps.7 ippevepcl.7 f 0444 root sys $AMANDIR/man8/cupsaccept.8 man/cupsaccept.8 l 0644 root sys $AMANDIR/man8/cupsreject.8 cupsaccept.8 f 0444 root sys $AMANDIR/man8/cupsctl.8 man/cupsctl.8 f 0444 root sys $AMANDIR/man8/cupsfilter.8 man/cupsfilter.8 f 0444 root sys $AMANDIR/man8/cups-snmp.8 man/cups-snmp.8 f 0444 root sys $AMANDIR/man8/cupsd.8 man/cupsd.8 f 0444 root sys $AMANDIR/man8/cupsd-helper.8 man/cupsd-helper.8 l 0644 root sys $AMANDIR/man8/cupsdisable.8 cupsenable.8 f 0444 root sys $AMANDIR/man8/cupsenable.8 man/cupsenable.8 f 0444 root sys $AMANDIR/man8/lpadmin.8 man/lpadmin.8 f 0444 root sys $AMANDIR/man8/lpc.8 man/lpc.8 f 0444 root sys $AMANDIR/man8/lpinfo.8 man/lpinfo.8 f 0444 root sys $AMANDIR/man8/lpmove.8 man/lpmove.8 %subpackage devel f 0444 root sys $MANDIR/man1/cups-config.1 man/cups-config.1 f 0444 root sys $MANDIR/man1/ man/ppd*.1 f 0444 root sys $MANDIR/man5/ppdcfile.5 man/ppdcfile.5 f 0444 root sys $MANDIR/man7/backend.7 man/backend.7 f 0444 root sys $MANDIR/man7/filter.7 man/filter.7 f 0444 root sys $MANDIR/man7/notifier.7 man/notifier.7 %subpackage lpd d 0755 root sys $AMANDIR/man8 - f 0444 root sys $AMANDIR/man8/cups-lpd.8 man/cups-lpd.8 %subpackage # Startup scripts %system darwin f 0444 root sys /System/Library/LaunchDaemons/org.cups.cupsd.plist scheduler/org.cups.cupsd.plist %preremove < /* * Local functions... */ void print_attributes(ipp_t *ipp, int indent); /* * 'main()' - Main entry for the test notifier. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ ipp_t *event; /* Event from scheduler */ ipp_state_t state; /* IPP event state */ setbuf(stderr, NULL); fprintf(stderr, "DEBUG: argc=%d\n", argc); for (i = 0; i < argc; i ++) fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]); fprintf(stderr, "DEBUG: TMPDIR=\"%s\"\n", getenv("TMPDIR")); for (;;) { event = ippNew(); while ((state = ippReadFile(0, event)) != IPP_DATA) { if (state <= IPP_IDLE) break; } if (state == IPP_ERROR) fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr); if (state <= IPP_IDLE) { ippDelete(event); return (0); } print_attributes(event, 4); ippDelete(event); /* * If the recipient URI is "testnotify://nowait", then we exit after each * event... */ if (!strcmp(argv[1], "testnotify://nowait")) return (0); } } /* * 'print_attributes()' - Print the attributes in a request... */ void print_attributes(ipp_t *ipp, /* I - IPP request */ int indent) /* I - Indentation */ { ipp_tag_t group; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[1024]; /* Value buffer */ for (group = IPP_TAG_ZERO, attr = ipp->attrs; attr; attr = attr->next) { if ((attr->group_tag == IPP_TAG_ZERO && indent <= 8) || !attr->name) { group = IPP_TAG_ZERO; fputc('\n', stderr); continue; } if (group != attr->group_tag) { group = attr->group_tag; fprintf(stderr, "DEBUG: %*s%s:\n\n", indent - 4, "", ippTagString(group)); } ippAttributeString(attr, buffer, sizeof(buffer)); fprintf(stderr, "DEBUG: %*s%s (%s%s) %s\n", indent, "", attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag), buffer); } } cups-2.4.7/notifier/rss.c0000644000175000017500000004203114502571342015153 0ustar zdohnalzdohnal/* * RSS notifier for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include /* TODO: Update so we don't need this */ /* * Structures... */ typedef struct _cups_rss_s /**** RSS message data ****/ { int sequence_number; /* notify-sequence-number */ char *subject, /* Message subject/summary */ *text, /* Message text */ *link_url; /* Link to printer */ time_t event_time; /* When the event occurred */ } _cups_rss_t; /* * Local globals... */ static char *rss_password; /* Password for remote RSS */ /* * Local functions... */ static int compare_rss(_cups_rss_t *a, _cups_rss_t *b); static void delete_message(_cups_rss_t *msg); static void load_rss(cups_array_t *rss, const char *filename); static _cups_rss_t *new_message(int sequence_number, char *subject, char *text, char *link_url, time_t event_time); static const char *password_cb(const char *prompt); static int save_rss(cups_array_t *rss, const char *filename, const char *baseurl); static char *xml_escape(const char *s); /* * 'main()' - Main entry for the test notifier. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ ipp_t *event; /* Event from scheduler */ ipp_state_t state; /* IPP event state */ char scheme[32], /* URI scheme ("rss") */ username[256], /* Username for remote RSS */ host[1024], /* Hostname for remote RSS */ resource[1024], /* RSS file */ *options; /* Options */ int port, /* Port number for remote RSS */ max_events; /* Maximum number of events */ http_t *http; /* Connection to remote server */ http_status_t status; /* HTTP GET/PUT status code */ char filename[1024], /* Local filename */ newname[1024]; /* filename.N */ cups_lang_t *language; /* Language information */ ipp_attribute_t *printer_up_time, /* Timestamp on event */ *notify_sequence_number,/* Sequence number */ *notify_printer_uri; /* Printer URI */ char *subject, /* Subject for notification message */ *text, /* Text for notification message */ link_url[1024], /* Link to printer */ link_scheme[32], /* Scheme for link */ link_username[256], /* Username for link */ link_host[1024], /* Host for link */ link_resource[1024]; /* Resource for link */ int link_port; /* Link port */ cups_array_t *rss; /* RSS message array */ _cups_rss_t *msg; /* RSS message */ char baseurl[1024]; /* Base URL */ fd_set input; /* Input set for select() */ struct timeval timeout; /* Timeout for select() */ int changed; /* Has the RSS data changed? */ int exit_status; /* Exit status */ fprintf(stderr, "DEBUG: argc=%d\n", argc); for (i = 0; i < argc; i ++) fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]); /* * See whether we are publishing this RSS feed locally or remotely... */ if (httpSeparateURI(HTTP_URI_CODING_ALL, argv[1], scheme, sizeof(scheme), username, sizeof(username), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_OK) { fprintf(stderr, "ERROR: Bad RSS URI \"%s\"!\n", argv[1]); return (1); } max_events = 20; if ((options = strchr(resource, '?')) != NULL) { *options++ = '\0'; if (!strncmp(options, "max_events=", 11)) { max_events = atoi(options + 11); if (max_events <= 0) max_events = 20; } } rss = cupsArrayNew((cups_array_func_t)compare_rss, NULL); if (host[0]) { /* * Remote feed, see if we can get the current file... */ int fd; /* Temporary file */ if ((rss_password = strchr(username, ':')) != NULL) *rss_password++ = '\0'; cupsSetPasswordCB(password_cb); cupsSetUser(username); if ((fd = cupsTempFd(filename, sizeof(filename))) < 0) { fprintf(stderr, "ERROR: Unable to create temporary file: %s\n", strerror(errno)); return (1); } if ((http = httpConnect2(host, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL)) == NULL) { fprintf(stderr, "ERROR: Unable to connect to %s on port %d: %s\n", host, port, strerror(errno)); close(fd); unlink(filename); return (1); } status = cupsGetFd(http, resource, fd); close(fd); if (status != HTTP_OK && status != HTTP_NOT_FOUND) { fprintf(stderr, "ERROR: Unable to GET %s from %s on port %d: %d %s\n", resource, host, port, status, httpStatus(status)); httpClose(http); unlink(filename); return (1); } strlcpy(newname, filename, sizeof(newname)); httpAssembleURI(HTTP_URI_CODING_ALL, baseurl, sizeof(baseurl), "http", NULL, host, port, resource); } else { const char *cachedir, /* CUPS_CACHEDIR */ *server_name, /* SERVER_NAME */ *server_port; /* SERVER_PORT */ http = NULL; if ((cachedir = getenv("CUPS_CACHEDIR")) == NULL) cachedir = CUPS_CACHEDIR; if ((server_name = getenv("SERVER_NAME")) == NULL) server_name = "localhost"; if ((server_port = getenv("SERVER_PORT")) == NULL) server_port = "631"; snprintf(filename, sizeof(filename), "%s/rss%s", cachedir, resource); snprintf(newname, sizeof(newname), "%s.N", filename); httpAssembleURIf(HTTP_URI_CODING_ALL, baseurl, sizeof(baseurl), "http", NULL, server_name, atoi(server_port), "/rss%s", resource); } /* * Load the previous RSS file, if any... */ load_rss(rss, filename); changed = cupsArrayCount(rss) == 0; /* * Localize for the user's chosen language... */ language = cupsLangDefault(); /* * Read events and update the RSS file until we are out of events. */ for (exit_status = 0, event = NULL;;) { if (changed) { /* * Save the messages to the file again, uploading as needed... */ if (save_rss(rss, newname, baseurl)) { if (http) { /* * Upload the RSS file... */ if ((status = cupsPutFile(http, resource, filename)) != HTTP_CREATED) fprintf(stderr, "ERROR: Unable to PUT %s from %s on port %d: %d %s\n", resource, host, port, status, httpStatus(status)); } else { /* * Move the new RSS file over top the old one... */ if (rename(newname, filename)) fprintf(stderr, "ERROR: Unable to rename %s to %s: %s\n", newname, filename, strerror(errno)); } changed = 0; } } /* * Wait up to 30 seconds for an event... */ timeout.tv_sec = 30; timeout.tv_usec = 0; FD_ZERO(&input); FD_SET(0, &input); if (select(1, &input, NULL, NULL, &timeout) < 0) continue; else if (!FD_ISSET(0, &input)) { fprintf(stderr, "DEBUG: %s is bored, exiting...\n", argv[1]); break; } /* * Read the next event... */ event = ippNew(); while ((state = ippReadFile(0, event)) != IPP_DATA) { if (state <= IPP_IDLE) break; } if (state == IPP_ERROR) fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr); if (state <= IPP_IDLE) break; /* * Collect the info from the event... */ printer_up_time = ippFindAttribute(event, "printer-up-time", IPP_TAG_INTEGER); notify_sequence_number = ippFindAttribute(event, "notify-sequence-number", IPP_TAG_INTEGER); notify_printer_uri = ippFindAttribute(event, "notify-printer-uri", IPP_TAG_URI); subject = cupsNotifySubject(language, event); text = cupsNotifyText(language, event); if (printer_up_time && notify_sequence_number && subject && text) { /* * Create a new RSS message... */ if (notify_printer_uri) { httpSeparateURI(HTTP_URI_CODING_ALL, notify_printer_uri->values[0].string.text, link_scheme, sizeof(link_scheme), link_username, sizeof(link_username), link_host, sizeof(link_host), &link_port, link_resource, sizeof(link_resource)); httpAssembleURI(HTTP_URI_CODING_ALL, link_url, sizeof(link_url), "http", link_username, link_host, link_port, link_resource); } msg = new_message(notify_sequence_number->values[0].integer, xml_escape(subject), xml_escape(text), notify_printer_uri ? xml_escape(link_url) : NULL, printer_up_time->values[0].integer); if (!msg) { fprintf(stderr, "ERROR: Unable to create message: %s\n", strerror(errno)); exit_status = 1; break; } /* * Add it to the array... */ cupsArrayAdd(rss, msg); changed = 1; /* * Trim the array as needed... */ while (cupsArrayCount(rss) > max_events) { msg = cupsArrayFirst(rss); cupsArrayRemove(rss, msg); delete_message(msg); } } if (subject) free(subject); if (text) free(text); ippDelete(event); event = NULL; } /* * We only get here when idle or error... */ ippDelete(event); if (http) { unlink(filename); httpClose(http); } return (exit_status); } /* * 'compare_rss()' - Compare two messages. */ static int /* O - Result of comparison */ compare_rss(_cups_rss_t *a, /* I - First message */ _cups_rss_t *b) /* I - Second message */ { return (a->sequence_number - b->sequence_number); } /* * 'delete_message()' - Free all memory used by a message. */ static void delete_message(_cups_rss_t *msg) /* I - RSS message */ { if (msg->subject) free(msg->subject); if (msg->text) free(msg->text); if (msg->link_url) free(msg->link_url); free(msg); } /* * 'load_rss()' - Load an existing RSS feed file. */ static void load_rss(cups_array_t *rss, /* I - RSS messages */ const char *filename) /* I - File to load */ { FILE *fp; /* File pointer */ char line[4096], /* Line from file */ *subject, /* Subject */ *text, /* Text */ *link_url, /* Link URL */ *start, /* Start of element */ *end; /* End of element */ time_t event_time; /* Event time */ int sequence_number; /* Sequence number */ int in_item; /* In an item */ _cups_rss_t *msg; /* New message */ if ((fp = fopen(filename, "r")) == NULL) { if (errno != ENOENT) fprintf(stderr, "ERROR: Unable to open %s: %s\n", filename, strerror(errno)); return; } subject = NULL; text = NULL; link_url = NULL; event_time = 0; sequence_number = 0; in_item = 0; while (fgets(line, sizeof(line), fp)) { if (strstr(line, "")) in_item = 1; else if (strstr(line, "") && in_item) { if (subject && text) { msg = new_message(sequence_number, subject, text, link_url, event_time); if (msg) cupsArrayAdd(rss, msg); } else { if (subject) free(subject); if (text) free(text); if (link_url) free(link_url); } subject = NULL; text = NULL; link_url = NULL; event_time = 0; sequence_number = 0; in_item = 0; } else if (!in_item) continue; else if ((start = strstr(line, "")) != NULL) { start += 7; if ((end = strstr(start, "")) != NULL) { *end = '\0'; subject = strdup(start); } } else if ((start = strstr(line, "")) != NULL) { start += 13; if ((end = strstr(start, "")) != NULL) { *end = '\0'; text = strdup(start); } } else if ((start = strstr(line, "")) != NULL) { start += 6; if ((end = strstr(start, "")) != NULL) { *end = '\0'; link_url = strdup(start); } } else if ((start = strstr(line, "")) != NULL) { start += 9; if ((end = strstr(start, "")) != NULL) { *end = '\0'; event_time = httpGetDateTime(start); } } else if ((start = strstr(line, "")) != NULL) sequence_number = atoi(start + 6); } if (subject) free(subject); if (text) free(text); if (link_url) free(link_url); fclose(fp); } /* * 'new_message()' - Create a new RSS message. */ static _cups_rss_t * /* O - New message */ new_message(int sequence_number, /* I - notify-sequence-number */ char *subject, /* I - Subject/summary */ char *text, /* I - Text */ char *link_url, /* I - Link to printer */ time_t event_time) /* I - Date/time of event */ { _cups_rss_t *msg; /* New message */ if ((msg = calloc(1, sizeof(_cups_rss_t))) == NULL) { #ifdef __clang_analyzer__ // These free calls are really unnecessary (a failure here ultimately causes // an exit, which frees all memory much faster) but it makes Clang happy... free(subject); free(text); free(link_url); #endif // __clang_analyzer__ return (NULL); } msg->sequence_number = sequence_number; msg->subject = subject; msg->text = text; msg->link_url = link_url; msg->event_time = event_time; return (msg); } /* * 'password_cb()' - Return the cached password. */ static const char * /* O - Cached password */ password_cb(const char *prompt) /* I - Prompt string, unused */ { (void)prompt; return (rss_password); } /* * 'save_rss()' - Save messages to a RSS file. */ static int /* O - 1 on success, 0 on failure */ save_rss(cups_array_t *rss, /* I - RSS messages */ const char *filename, /* I - File to save to */ const char *baseurl) /* I - Base URL */ { FILE *fp; /* File pointer */ _cups_rss_t *msg; /* Current message */ char date[1024]; /* Current date */ char *href; /* Escaped base URL */ if ((fp = fopen(filename, "w")) == NULL) { fprintf(stderr, "ERROR: Unable to create %s: %s\n", filename, strerror(errno)); return (0); } fchmod(fileno(fp), 0644); fputs("\n", fp); fputs("\n", fp); fputs(" \n", fp); fputs(" CUPS RSS Feed\n", fp); href = xml_escape(baseurl); fprintf(fp, " %s\n", href); free(href); fputs(" CUPS RSS Feed\n", fp); fputs(" " CUPS_SVERSION "\n", fp); fputs(" 1\n", fp); fprintf(fp, " %s\n", httpGetDateString2(time(NULL), date, sizeof(date))); for (msg = (_cups_rss_t *)cupsArrayLast(rss); msg; msg = (_cups_rss_t *)cupsArrayPrev(rss)) { char *subject = xml_escape(msg->subject); char *text = xml_escape(msg->text); fputs(" \n", fp); fprintf(fp, " %s\n", subject); fprintf(fp, " %s\n", text); if (msg->link_url) fprintf(fp, " %s\n", msg->link_url); fprintf(fp, " %s\n", httpGetDateString2(msg->event_time, date, sizeof(date))); fprintf(fp, " %d\n", msg->sequence_number); fputs(" \n", fp); free(subject); free(text); } fputs(" \n", fp); fputs("\n", fp); return (!fclose(fp)); } /* * 'xml_escape()' - Copy a string, escaping &, <, and > as needed. */ static char * /* O - Escaped string */ xml_escape(const char *s) /* I - String to escape */ { char *e, /* Escaped string */ *eptr; /* Pointer into escaped string */ const char *sptr; /* Pointer into string */ size_t bytes; /* Bytes needed for string */ /* * First figure out how many extra bytes we need... */ for (bytes = 0, sptr = s; *sptr; sptr ++) if (*sptr == '&') bytes += 4; /* & */ else if (*sptr == '<' || *sptr == '>') bytes += 3; /* < and > */ /* * If there is nothing to escape, just strdup() it... */ if (bytes == 0) return (strdup(s)); /* * Otherwise allocate memory and copy... */ if ((e = malloc(bytes + 1 + strlen(s))) == NULL) return (NULL); for (eptr = e, sptr = s; *sptr; sptr ++) if (*sptr == '&') { *eptr++ = '&'; *eptr++ = 'a'; *eptr++ = 'm'; *eptr++ = 'p'; *eptr++ = ';'; } else if (*sptr == '<') { *eptr++ = '&'; *eptr++ = 'l'; *eptr++ = 't'; *eptr++ = ';'; } else if (*sptr == '>') { *eptr++ = '&'; *eptr++ = 'g'; *eptr++ = 't'; *eptr++ = ';'; } else *eptr++ = *sptr; *eptr = '\0'; return (e); } cups-2.4.7/notifier/mailto.c0000644000175000017500000003325514502571342015641 0ustar zdohnalzdohnal/* * "mailto" notifier for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include /* * Globals... */ char mailtoCc[1024]; /* Cc email address */ char mailtoFrom[1024]; /* From email address */ char mailtoReplyTo[1024]; /* Reply-To email address */ char mailtoSubject[1024]; /* Subject prefix */ char mailtoSMTPServer[1024]; /* SMTP server to use */ char mailtoSendmail[1024]; /* Sendmail program to use */ /* * Local functions... */ void email_message(const char *to, const char *subject, const char *text); int load_configuration(void); cups_file_t *pipe_sendmail(const char *to); void print_attributes(ipp_t *ipp, int indent); /* * 'main()' - Main entry for the mailto notifier. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ ipp_t *msg; /* Event message from scheduler */ ipp_state_t state; /* IPP event state */ char *subject, /* Subject for notification message */ *text; /* Text for notification message */ cups_lang_t *lang; /* Language info */ char temp[1024]; /* Temporary string */ int templen; /* Length of temporary string */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* POSIX sigaction data */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Don't buffer stderr... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE signals... */ #ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); #else signal(SIGPIPE, SIG_IGN); #endif /* HAVE_SIGSET */ /* * Validate command-line options... */ if (argc != 3) { fputs("Usage: mailto mailto:user@domain.com notify-user-data\n", stderr); return (1); } if (strncmp(argv[1], "mailto:", 7)) { fprintf(stderr, "ERROR: Bad recipient \"%s\"!\n", argv[1]); return (1); } fprintf(stderr, "DEBUG: argc=%d\n", argc); for (i = 0; i < argc; i ++) fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]); /* * Load configuration data... */ if ((lang = cupsLangDefault()) == NULL) return (1); if (!load_configuration()) return (1); /* * Get the reply-to address... */ templen = sizeof(temp); httpDecode64_2(temp, &templen, argv[2]); if (!strncmp(temp, "mailto:", 7)) strlcpy(mailtoReplyTo, temp + 7, sizeof(mailtoReplyTo)); else if (temp[0]) fprintf(stderr, "WARNING: Bad notify-user-data value (%d bytes) ignored!\n", templen); /* * Loop forever until we run out of events... */ for (;;) { /* * Get the next event... */ msg = ippNew(); while ((state = ippReadFile(0, msg)) != IPP_DATA) { if (state <= IPP_IDLE) break; } fprintf(stderr, "DEBUG: state=%d\n", state); if (state == IPP_ERROR) fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr); if (state <= IPP_IDLE) { /* * Out of messages, free memory and then exit... */ ippDelete(msg); return (0); } /* * Get the subject and text for the message, then email it... */ subject = cupsNotifySubject(lang, msg); text = cupsNotifyText(lang, msg); fprintf(stderr, "DEBUG: subject=\"%s\"\n", subject); fprintf(stderr, "DEBUG: text=\"%s\"\n", text); if (subject && text) email_message(argv[1] + 7, subject, text); else { fputs("ERROR: Missing attributes in event notification!\n", stderr); print_attributes(msg, 4); } /* * Free the memory used for this event... */ if (subject) free(subject); if (text) free(text); ippDelete(msg); } } /* * 'email_message()' - Email a notification message. */ void email_message(const char *to, /* I - Recipient of message */ const char *subject, /* I - Subject of message */ const char *text) /* I - Text of message */ { cups_file_t *fp; /* Pipe/socket to mail server */ const char *nl; /* Newline to use */ char response[1024]; /* SMTP response buffer */ /* * Connect to the mail server... */ if (mailtoSendmail[0]) { /* * Use the sendmail command... */ fp = pipe_sendmail(to); if (!fp) return; nl = "\n"; } else { /* * Use an SMTP server... */ char hostbuf[1024]; /* Local hostname */ if (strchr(mailtoSMTPServer, ':')) { fp = cupsFileOpen(mailtoSMTPServer, "s"); } else { char spec[1024]; /* Host:service spec */ snprintf(spec, sizeof(spec), "%s:smtp", mailtoSMTPServer); fp = cupsFileOpen(spec, "s"); } if (!fp) { fprintf(stderr, "ERROR: Unable to connect to SMTP server \"%s\"!\n", mailtoSMTPServer); return; } fprintf(stderr, "DEBUG: Connected to \"%s\"...\n", mailtoSMTPServer); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFilePrintf(fp, "HELO %s\r\n", httpGetHostname(NULL, hostbuf, sizeof(hostbuf))); fprintf(stderr, "DEBUG: >>> HELO %s\n", hostbuf); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFilePrintf(fp, "MAIL FROM:%s\r\n", mailtoFrom); fprintf(stderr, "DEBUG: >>> MAIL FROM:%s\n", mailtoFrom); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFilePrintf(fp, "RCPT TO:%s\r\n", to); fprintf(stderr, "DEBUG: >>> RCPT TO:%s\n", to); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFilePuts(fp, "DATA\r\n"); fputs("DEBUG: DATA\n", stderr); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); nl = "\r\n"; } /* * Send the message... */ cupsFilePrintf(fp, "Date: %s%s", httpGetDateString(time(NULL)), nl); cupsFilePrintf(fp, "From: %s%s", mailtoFrom, nl); cupsFilePrintf(fp, "Subject: %s %s%s", mailtoSubject, subject, nl); if (mailtoReplyTo[0]) { cupsFilePrintf(fp, "Sender: %s%s", mailtoReplyTo, nl); cupsFilePrintf(fp, "Reply-To: %s%s", mailtoReplyTo, nl); } cupsFilePrintf(fp, "To: %s%s", to, nl); if (mailtoCc[0]) cupsFilePrintf(fp, "Cc: %s%s", mailtoCc, nl); cupsFilePrintf(fp, "Content-Type: text/plain%s", nl); cupsFilePuts(fp, nl); cupsFilePrintf(fp, "%s%s", text, nl); cupsFilePrintf(fp, ".%s", nl); /* * Close the connection to the mail server... */ if (mailtoSendmail[0]) { /* * Close the pipe and wait for the sendmail command to finish... */ int status; /* Exit status */ cupsFileClose(fp); while (wait(&status)) { if (errno != EINTR) { fprintf(stderr, "DEBUG: Unable to get child status: %s\n", strerror(errno)); status = 0; break; } } /* * Report any non-zero status... */ if (status) { if (WIFEXITED(status)) fprintf(stderr, "ERROR: Sendmail command returned status %d!\n", WEXITSTATUS(status)); else fprintf(stderr, "ERROR: Sendmail command crashed on signal %d!\n", WTERMSIG(status)); } } else { /* * Finish up the SMTP submission and close the connection... */ if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) goto smtp_error; fprintf(stderr, "DEBUG: <<< %s\n", response); /* * Process SMTP errors here... */ smtp_error: cupsFilePuts(fp, "QUIT\r\n"); fputs("DEBUG: QUIT\n", stderr); if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500) fprintf(stderr, "ERROR: Got \"%s\" trying to QUIT connection.\n", response); else fprintf(stderr, "DEBUG: <<< %s\n", response); cupsFileClose(fp); fprintf(stderr, "DEBUG: Closed connection to \"%s\"...\n", mailtoSMTPServer); } } /* * 'load_configuration()' - Load the mailto.conf file. */ int /* I - 1 on success, 0 on failure */ load_configuration(void) { cups_file_t *fp; /* mailto.conf file */ const char *server_root, /* CUPS_SERVERROOT environment variable */ *server_admin; /* SERVER_ADMIN environment variable */ char line[1024], /* Line from file */ *value; /* Value for directive */ int linenum; /* Line number in file */ /* * Initialize defaults... */ mailtoCc[0] = '\0'; if ((server_admin = getenv("SERVER_ADMIN")) != NULL) strlcpy(mailtoFrom, server_admin, sizeof(mailtoFrom)); else snprintf(mailtoFrom, sizeof(mailtoFrom), "root@%s", httpGetHostname(NULL, line, sizeof(line))); strlcpy(mailtoSendmail, "/usr/sbin/sendmail", sizeof(mailtoSendmail)); mailtoSMTPServer[0] = '\0'; mailtoSubject[0] = '\0'; /* * Try loading the config file... */ if ((server_root = getenv("CUPS_SERVERROOT")) == NULL) server_root = CUPS_SERVERROOT; snprintf(line, sizeof(line), "%s/mailto.conf", server_root); if ((fp = cupsFileOpen(line, "r")) == NULL) { if (errno != ENOENT) { fprintf(stderr, "ERROR: Unable to open \"%s\" - %s\n", line, strerror(errno)); return (1); } else return (0); } linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!value) { fprintf(stderr, "ERROR: No value found for %s directive on line %d!\n", line, linenum); cupsFileClose(fp); return (0); } if (!_cups_strcasecmp(line, "Cc")) strlcpy(mailtoCc, value, sizeof(mailtoCc)); else if (!_cups_strcasecmp(line, "From")) strlcpy(mailtoFrom, value, sizeof(mailtoFrom)); else if (!_cups_strcasecmp(line, "Sendmail")) { strlcpy(mailtoSendmail, value, sizeof(mailtoSendmail)); mailtoSMTPServer[0] = '\0'; } else if (!_cups_strcasecmp(line, "SMTPServer")) { mailtoSendmail[0] = '\0'; strlcpy(mailtoSMTPServer, value, sizeof(mailtoSMTPServer)); } else if (!_cups_strcasecmp(line, "Subject")) strlcpy(mailtoSubject, value, sizeof(mailtoSubject)); else { fprintf(stderr, "ERROR: Unknown configuration directive \"%s\" on line %d!\n", line, linenum); } } /* * Close file and return... */ cupsFileClose(fp); return (1); } /* * 'pipe_sendmail()' - Open a pipe to sendmail... */ cups_file_t * /* O - CUPS file */ pipe_sendmail(const char *to) /* I - To: address */ { cups_file_t *fp; /* CUPS file */ int pid; /* Process ID */ int pipefds[2]; /* Pipe file descriptors */ int argc; /* Number of arguments */ char *argv[100], /* Argument array */ line[1024], /* Sendmail command + args */ *lineptr; /* Pointer into line */ /* * First break the mailtoSendmail string into arguments... */ strlcpy(line, mailtoSendmail, sizeof(line)); argv[0] = line; argc = 1; for (lineptr = strchr(line, ' '); lineptr; lineptr = strchr(lineptr, ' ')) { while (*lineptr == ' ') *lineptr++ = '\0'; if (*lineptr) { /* * Point to the next argument... */ argv[argc ++] = lineptr; /* * Stop if we have too many... */ if (argc >= (int)(sizeof(argv) / sizeof(argv[0]) - 2)) break; } } argv[argc ++] = (char *)to; argv[argc] = NULL; /* * Create the pipe... */ if (pipe(pipefds)) { perror("ERROR: Unable to create pipe"); return (NULL); } /* * Then run the command... */ if ((pid = fork()) == 0) { /* * Child goes here - redirect stdin to the input side of the pipe, * redirect stdout to stderr, and exec... */ close(0); dup(pipefds[0]); close(1); dup(2); close(pipefds[0]); close(pipefds[1]); execvp(argv[0], argv); exit(errno); } else if (pid < 0) { /* * Unable to fork - error out... */ perror("ERROR: Unable to fork command"); close(pipefds[0]); close(pipefds[1]); return (NULL); } /* * Create a CUPS file using the output side of the pipe and close the * input side... */ close(pipefds[0]); if ((fp = cupsFileOpenFd(pipefds[1], "w")) == NULL) { int status; /* Status of command */ close(pipefds[1]); wait(&status); } return (fp); } /* * 'print_attributes()' - Print the attributes in a request... */ void print_attributes(ipp_t *ipp, /* I - IPP request */ int indent) /* I - Indentation */ { ipp_tag_t group; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[1024]; /* Value buffer */ for (group = IPP_TAG_ZERO, attr = ipp->attrs; attr; attr = attr->next) { if ((attr->group_tag == IPP_TAG_ZERO && indent <= 8) || !attr->name) { group = IPP_TAG_ZERO; fputc('\n', stderr); continue; } if (group != attr->group_tag) { group = attr->group_tag; fprintf(stderr, "DEBUG: %*s%s:\n\n", indent - 4, "", ippTagString(group)); } ippAttributeString(attr, buffer, sizeof(buffer)); fprintf(stderr, "DEBUG: %*s%s (%s%s) %s", indent, "", attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag), buffer); } } cups-2.4.7/notifier/dbus.c0000644000175000017500000003764314502571342015316 0ustar zdohnalzdohnal/* * D-Bus notifier for CUPS. * * Copyright 2008-2014 by Apple Inc. * Copyright (C) 2011, 2013 Red Hat, Inc. * Copyright (C) 2007 Tim Waugh * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #ifdef HAVE_DBUS # include # ifdef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND # define dbus_message_append_iter_init dbus_message_iter_init_append # define dbus_message_iter_append_string(i,v) dbus_message_iter_append_basic(i, DBUS_TYPE_STRING, v) # define dbus_message_iter_append_uint32(i,v) dbus_message_iter_append_basic(i, DBUS_TYPE_UINT32, v) # define dbus_message_iter_append_boolean(i,v) dbus_message_iter_append_basic(i, DBUS_TYPE_BOOLEAN, v) # endif /* HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */ /* * D-Bus object: org.cups.cupsd.Notifier * D-Bus object path: /org/cups/cupsd/Notifier * * D-Bus interface name: org.cups.cupsd.Notifier * * Signals: * * ServerRestarted(STRING text) * Server has restarted. * * ServerStarted(STRING text) * Server has started. * * ServerStopped(STRING text) * Server has stopped. * * ServerAudit(STRING text) * Security-related event. * * PrinterRestarted(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has restarted. * * PrinterShutdown(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has shutdown. * * PrinterStopped(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has stopped. * * PrinterStateChanged(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer state has changed. * * PrinterFinishingsChanged(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer's finishings-supported attribute has changed. * * PrinterMediaChanged(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer's media-supported attribute has changed. * * PrinterAdded(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has been added. * * PrinterDeleted(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has been deleted. * * PrinterModified(STRING text, * STRING printer-uri, * STRING printer-name, * UINT32 printer-state, * STRING printer-state-reasons, * BOOLEAN printer-is-accepting-jobs) * Printer has been modified. * * text describes the event. * printer-state-reasons is a comma-separated list. * If printer-uri is "" in a Job* signal, the other printer-* parameters * must be ignored. * If the job name is not know, job-name will be "". */ /* * Constants... */ enum { PARAMS_NONE, PARAMS_PRINTER, PARAMS_JOB }; /* * Global variables... */ static char lock_filename[1024]; /* Lock filename */ /* * Local functions... */ static int acquire_lock(int *fd, char *lockfile, size_t locksize); static void release_lock(void); /* * 'main()' - Read events and send DBUS notifications. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { ipp_t *msg; /* Event message from scheduler */ ipp_state_t state; /* IPP event state */ struct sigaction action; /* POSIX sigaction data */ DBusConnection *con = NULL; /* Connection to DBUS server */ DBusError error; /* Error, if any */ DBusMessage *message; /* Message to send */ DBusMessageIter iter; /* Iterator for message data */ int lock_fd = -1; /* Lock file descriptor */ /* * Don't buffer stderr... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE signals... */ memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); /* * Validate command-line options... */ if (argc != 3) { fputs("Usage: dbus dbus:/// notify-user-data\n", stderr); return (1); } if (strncmp(argv[1], "dbus:", 5)) { fprintf(stderr, "ERROR: Bad URI \"%s\"!\n", argv[1]); return (1); } /* * Loop forever until we run out of events... */ for (;;) { ipp_attribute_t *attr; /* Current attribute */ const char *event; /* Event name */ const char *signame = NULL;/* DBUS signal name */ char *printer_reasons = NULL; /* Printer reasons string */ char *job_reasons = NULL; /* Job reasons string */ const char *nul = ""; /* Empty string value */ int no = 0; /* Boolean "no" value */ int params = PARAMS_NONE; /* What parameters to include? */ /* * Get the next event... */ msg = ippNew(); while ((state = ippReadFile(0, msg)) != IPP_DATA) { if (state <= IPP_IDLE) break; } fprintf(stderr, "DEBUG: state=%d\n", state); if (state == IPP_ERROR) fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr); if (state <= IPP_IDLE) { /* * Out of messages, free memory and then exit... */ ippDelete(msg); break; } /* * Verify connection to DBUS server... */ if (con && !dbus_connection_get_is_connected(con)) { dbus_connection_unref(con); con = NULL; } if (!con) { dbus_error_init(&error); con = dbus_bus_get(DBUS_BUS_SYSTEM, &error); if (!con) dbus_error_free(&error); else fputs("DEBUG: Connected to D-BUS\n", stderr); } if (!con) continue; if (lock_fd == -1 && acquire_lock(&lock_fd, lock_filename, sizeof(lock_filename))) continue; attr = ippFindAttribute(msg, "notify-subscribed-event", IPP_TAG_KEYWORD); if (!attr) continue; event = ippGetString(attr, 0, NULL); if (!strncmp(event, "server-", 7)) { const char *word2 = event + 7; /* Second word */ if (!strcmp(word2, "restarted")) signame = "ServerRestarted"; else if (!strcmp(word2, "started")) signame = "ServerStarted"; else if (!strcmp(word2, "stopped")) signame = "ServerStopped"; else if (!strcmp(word2, "audit")) signame = "ServerAudit"; else continue; } else if (!strncmp(event, "printer-", 8)) { const char *word2 = event + 8; /* Second word */ params = PARAMS_PRINTER; if (!strcmp(word2, "restarted")) signame = "PrinterRestarted"; else if (!strcmp(word2, "shutdown")) signame = "PrinterShutdown"; else if (!strcmp(word2, "stopped")) signame = "PrinterStopped"; else if (!strcmp(word2, "state-changed")) signame = "PrinterStateChanged"; else if (!strcmp(word2, "finishings-changed")) signame = "PrinterFinishingsChanged"; else if (!strcmp(word2, "media-changed")) signame = "PrinterMediaChanged"; else if (!strcmp(word2, "added")) signame = "PrinterAdded"; else if (!strcmp(word2, "deleted")) signame = "PrinterDeleted"; else if (!strcmp(word2, "modified")) signame = "PrinterModified"; else continue; } else if (!strncmp(event, "job-", 4)) { const char *word2 = event + 4; /* Second word */ params = PARAMS_JOB; if (!strcmp(word2, "state-changed")) signame = "JobState"; else if (!strcmp(word2, "created")) signame = "JobCreated"; else if (!strcmp(word2, "completed")) signame = "JobCompleted"; else if (!strcmp(word2, "stopped")) signame = "JobStopped"; else if (!strcmp(word2, "config-changed")) signame = "JobConfigChanged"; else if (!strcmp(word2, "progress")) signame = "JobProgress"; else continue; } else continue; /* * Create and send the new message... */ fprintf(stderr, "DEBUG: %s\n", signame); message = dbus_message_new_signal("/org/cups/cupsd/Notifier", "org.cups.cupsd.Notifier", signame); dbus_message_append_iter_init(message, &iter); attr = ippFindAttribute(msg, "notify-text", IPP_TAG_TEXT); if (attr) { const char *val = ippGetString(attr, 0, NULL); if (!dbus_message_iter_append_string(&iter, &val)) goto bail; } else goto bail; if (params >= PARAMS_PRINTER) { char *p; /* Pointer into printer_reasons */ size_t reasons_length; /* Required size of printer_reasons */ int i; /* Looping var */ int have_printer_params = 1;/* Do we have printer URI? */ /* STRING printer-uri or "" */ attr = ippFindAttribute(msg, "notify-printer-uri", IPP_TAG_URI); if (attr) { const char *val = ippGetString(attr, 0, NULL); if (!dbus_message_iter_append_string(&iter, &val)) goto bail; } else { have_printer_params = 0; dbus_message_iter_append_string(&iter, &nul); } /* STRING printer-name */ if (have_printer_params) { attr = ippFindAttribute(msg, "printer-name", IPP_TAG_NAME); if (attr) { const char *val = ippGetString(attr, 0, NULL); if (!dbus_message_iter_append_string(&iter, &val)) goto bail; } else goto bail; } else dbus_message_iter_append_string(&iter, &nul); /* UINT32 printer-state */ if (have_printer_params) { attr = ippFindAttribute(msg, "printer-state", IPP_TAG_ENUM); if (attr) { dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0); dbus_message_iter_append_uint32(&iter, &val); } else goto bail; } else dbus_message_iter_append_uint32(&iter, &no); /* STRING printer-state-reasons */ if (have_printer_params) { attr = ippFindAttribute(msg, "printer-state-reasons", IPP_TAG_KEYWORD); if (attr) { int num_values = ippGetCount(attr); for (reasons_length = 0, i = 0; i < num_values; i++) /* All need commas except the last, which needs a nul byte. */ reasons_length += 1 + strlen(ippGetString(attr, i, NULL)); printer_reasons = malloc(reasons_length); if (!printer_reasons) goto bail; p = printer_reasons; for (i = 0; i < num_values; i++) { if (i) *p++ = ','; strlcpy(p, ippGetString(attr, i, NULL), reasons_length - (size_t)(p - printer_reasons)); p += strlen(p); } if (!dbus_message_iter_append_string(&iter, &printer_reasons)) goto bail; } else goto bail; } else dbus_message_iter_append_string(&iter, &nul); /* BOOL printer-is-accepting-jobs */ if (have_printer_params) { attr = ippFindAttribute(msg, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN); if (attr) { dbus_bool_t val = (dbus_bool_t)ippGetBoolean(attr, 0); dbus_message_iter_append_boolean(&iter, &val); } else goto bail; } else dbus_message_iter_append_boolean(&iter, &no); } if (params >= PARAMS_JOB) { char *p; /* Pointer into job_reasons */ size_t reasons_length; /* Required size of job_reasons */ int i; /* Looping var */ /* UINT32 job-id */ attr = ippFindAttribute(msg, "notify-job-id", IPP_TAG_INTEGER); if (attr) { dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0); dbus_message_iter_append_uint32(&iter, &val); } else goto bail; /* UINT32 job-state */ attr = ippFindAttribute(msg, "job-state", IPP_TAG_ENUM); if (attr) { dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0); dbus_message_iter_append_uint32(&iter, &val); } else goto bail; /* STRING job-state-reasons */ attr = ippFindAttribute(msg, "job-state-reasons", IPP_TAG_KEYWORD); if (attr) { int num_values = ippGetCount(attr); for (reasons_length = 0, i = 0; i < num_values; i++) /* All need commas except the last, which needs a nul byte. */ reasons_length += 1 + strlen(ippGetString(attr, i, NULL)); job_reasons = malloc(reasons_length); if (!job_reasons) goto bail; p = job_reasons; for (i = 0; i < num_values; i++) { if (i) *p++ = ','; strlcpy(p, ippGetString(attr, i, NULL), reasons_length - (size_t)(p - job_reasons)); p += strlen(p); } if (!dbus_message_iter_append_string(&iter, &job_reasons)) goto bail; } else goto bail; /* STRING job-name or "" */ attr = ippFindAttribute(msg, "job-name", IPP_TAG_NAME); if (attr) { const char *val = ippGetString(attr, 0, NULL); if (!dbus_message_iter_append_string(&iter, &val)) goto bail; } else dbus_message_iter_append_string(&iter, &nul); /* UINT32 job-impressions-completed */ attr = ippFindAttribute(msg, "job-impressions-completed", IPP_TAG_INTEGER); if (attr) { dbus_uint32_t val = (dbus_uint32_t)ippGetInteger(attr, 0); dbus_message_iter_append_uint32(&iter, &val); } else goto bail; } dbus_connection_send(con, message, NULL); dbus_connection_flush(con); /* * Cleanup... */ bail: dbus_message_unref(message); if (printer_reasons) free(printer_reasons); if (job_reasons) free(job_reasons); ippDelete(msg); } /* * Remove lock file... */ if (lock_fd >= 0) { close(lock_fd); release_lock(); } return (0); } /* * 'release_lock()' - Release the singleton lock. */ static void release_lock(void) { unlink(lock_filename); } /* * 'handle_sigterm()' - Handle SIGTERM signal. */ static void handle_sigterm(int signum) { release_lock(); _exit(0); } /* * 'acquire_lock()' - Acquire a lock so we only have a single notifier running. */ static int /* O - 0 on success, -1 on failure */ acquire_lock(int *fd, /* O - Lock file descriptor */ char *lockfile, /* I - Lock filename buffer */ size_t locksize) /* I - Size of filename buffer */ { const char *tmpdir; /* Temporary directory */ struct sigaction action; /* POSIX sigaction data */ /* * Figure out where to put the lock file... */ if ((tmpdir = getenv("TMPDIR")) == NULL) tmpdir = "/tmp"; snprintf(lockfile, locksize, "%s/cups-dbus-notifier-lockfile", tmpdir); /* * Create the lock file and fail if it already exists... */ if ((*fd = open(lockfile, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) < 0) return (-1); /* * Set a SIGTERM handler to make sure we release the lock if the * scheduler decides to stop us. */ memset(&action, 0, sizeof(action)); action.sa_handler = handle_sigterm; sigaction(SIGTERM, &action, NULL); return (0); } #else /* !HAVE_DBUS */ int main(void) { return (1); } #endif /* HAVE_DBUS */ cups-2.4.7/notifier/Makefile0000644000175000017500000000445214502571342015645 0ustar zdohnalzdohnal# # Notifier makefile for CUPS. # # Copyright 2007-2019 by Apple Inc. # Copyright 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs NOTIFIERS = $(DBUS_NOTIFIER) mailto rss TARGETS = $(NOTIFIERS) testnotify OBJS = dbus.o mailto.o rss.o testnotify.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) dbus.h # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_DIR) -m 775 -g $(CUPS_GROUP) $(CACHEDIR)/rss # # Install programs... # install-exec: echo Installing notifiers in $(SERVERBIN)/notifier... $(INSTALL_DIR) -m 755 $(SERVERBIN)/notifier for file in $(NOTIFIERS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/notifier; \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(NOTIFIERS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: for file in $(NOTIFIERS); do \ $(RM) $(SERVERBIN)/notifier/$$file; \ done -$(RMDIR) $(SERVERBIN)/notifier -$(RMDIR) $(SERVERBIN) -$(RMDIR) $(CACHEDIR)/rss # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # dbus # dbus: dbus.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o dbus dbus.o $(DBUS_NOTIFIERLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # mailto # mailto: mailto.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o mailto mailto.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # rss # rss: rss.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o rss rss.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testnotify # testnotify: testnotify.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testnotify testnotify.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ $(OBJS): ../Makedefs include Dependencies cups-2.4.7/notifier/Dependencies0000644000175000017500000000225414502571342016514 0ustar zdohnalzdohnaldbus.o: dbus.c ../cups/cups.h ../cups/file.h ../cups/versioning.h \ ../cups/ipp.h ../cups/http.h ../cups/array.h ../cups/language.h \ ../cups/pwg.h ../cups/string-private.h ../config.h mailto.o: mailto.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h rss.o: rss.c ../cups/cups.h ../cups/file.h ../cups/versioning.h \ ../cups/ipp.h ../cups/http.h ../cups/array.h ../cups/language.h \ ../cups/pwg.h ../cups/string-private.h ../config.h \ ../cups/ipp-private.h testnotify.o: testnotify.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h cups-2.4.7/monitor/0000755000175000017500000000000014502571342014050 5ustar zdohnalzdohnalcups-2.4.7/monitor/tbcp.c0000644000175000017500000001116114502571342015144 0ustar zdohnalzdohnal/* * TBCP port monitor for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1993-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static char *psgets(char *buf, size_t *bytes, FILE *fp); static ssize_t pswrite(const char *buf, size_t bytes); /* * 'main()' - Main entry... */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { FILE *fp; /* File to print */ int copies; /* Number of copies left */ char line[1024]; /* Line/buffer from stream/file */ size_t linelen; /* Length of line */ /* * Check command-line... */ if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } if (argc == 6) { copies = 1; fp = stdin; } else { copies = atoi(argv[4]); fp = fopen(argv[6], "rb"); if (!fp) { perror(argv[6]); return (1); } } /* * Copy the print file to stdout... */ while (copies > 0) { copies --; /* * Read the first line... */ linelen = sizeof(line); if (!psgets(line, &linelen, fp)) break; /* * Handle leading PJL fun... */ if (!strncmp(line, "\033%-12345X", 9) || !strncmp(line, "@PJL ", 5)) { /* * Yup, we have leading PJL fun, so copy it until we hit a line * with "ENTER LANGUAGE"... */ while (strstr(line, "ENTER LANGUAGE") == NULL) { fwrite(line, 1, linelen, stdout); linelen = sizeof(line); if (psgets(line, &linelen, fp) == NULL) break; } } else { /* * No PJL stuff, just add the UEL... */ fputs("\033%-12345X", stdout); } /* * Switch to TBCP mode... */ fputs("\001M", stdout); /* * Loop until we see end-of-file... */ while (pswrite(line, linelen) > 0) { linelen = sizeof(line); if (psgets(line, &linelen, fp) == NULL) break; } fflush(stdout); } return (0); } /* * 'psgets()' - Get a line from a file. * * Note: * * This function differs from the gets() function in that it * handles any combination of CR, LF, or CR LF to end input * lines. */ static char * /* O - String or NULL if EOF */ psgets(char *buf, /* I - Buffer to read into */ size_t *bytes, /* IO - Length of buffer */ FILE *fp) /* I - File to read from */ { char *bufptr; /* Pointer into buffer */ int ch; /* Character from file */ size_t len; /* Max length of string */ len = *bytes - 1; bufptr = buf; ch = EOF; while ((size_t)(bufptr - buf) < len) { if ((ch = getc(fp)) == EOF) break; if (ch == '\r') { /* * Got a CR; see if there is a LF as well... */ ch = getc(fp); if (ch != EOF && ch != '\n') { ungetc(ch, fp); /* Nope, save it for later... */ ch = '\r'; } else *bufptr++ = '\r'; break; } else if (ch == '\n') break; else *bufptr++ = (char)ch; } /* * Add a trailing newline if it is there... */ if (ch == '\n' || ch == '\r') { if ((size_t)(bufptr - buf) < len) *bufptr++ = (char)ch; else ungetc(ch, fp); } /* * Nul-terminate the string and return it (or NULL for EOF). */ *bufptr = '\0'; *bytes = (size_t)(bufptr - buf); if (ch == EOF && bufptr == buf) return (NULL); else return (buf); } /* * 'pswrite()' - Write data from a file. */ static ssize_t /* O - Number of bytes written */ pswrite(const char *buf, /* I - Buffer to write */ size_t bytes) /* I - Bytes to write */ { size_t count; /* Remaining bytes */ for (count = bytes; count > 0; count --, buf ++) switch (*buf) { case 0x04 : /* CTRL-D */ if (bytes == 1) { /* * Don't quote the last CTRL-D... */ putchar(0x04); break; } case 0x01 : /* CTRL-A */ case 0x03 : /* CTRL-C */ case 0x05 : /* CTRL-E */ case 0x11 : /* CTRL-Q */ case 0x13 : /* CTRL-S */ case 0x14 : /* CTRL-T */ case 0x1b : /* CTRL-[ (aka ESC) */ case 0x1c : /* CTRL-\ */ if (putchar(0x01) < 0) return (-1); if (putchar(*buf ^ 0x40) < 0) return (-1); break; default : if (putchar(*buf) < 0) return (-1); break; } return ((ssize_t)bytes); } cups-2.4.7/monitor/bcp.c0000644000175000017500000001211314502571342014756 0ustar zdohnalzdohnal/* * TBCP port monitor for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1993-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static char *psgets(char *buf, size_t *bytes, FILE *fp); static ssize_t pswrite(const char *buf, size_t bytes); /* * 'main()' - Main entry... */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { FILE *fp; /* File to print */ int copies; /* Number of copies left */ char line[1024]; /* Line/buffer from stream/file */ size_t linelen; /* Length of line */ ppd_file_t *ppd; /* PPD file */ /* * Check command-line... */ if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } if (argc == 6) { copies = 1; fp = stdin; } else { copies = atoi(argv[4]); fp = fopen(argv[6], "rb"); if (!fp) { perror(argv[6]); return (1); } } /* * Open the PPD file as needed... */ ppd = ppdOpenFile(getenv("PPD")); /* * Copy the print file to stdout... */ while (copies > 0) { copies --; if (ppd && ppd->jcl_begin) fputs(ppd->jcl_begin, stdout); if (ppd && ppd->jcl_ps) fputs(ppd->jcl_ps, stdout); if (!ppd || ppd->language_level == 1) { /* * Use setsoftwareiomode for BCP mode... */ puts("%!PS-Adobe-3.0 ExitServer"); puts("%%Title: (BCP - Level 1)"); puts("%%EndComments"); puts("%%BeginExitServer: 0"); puts("serverdict begin 0 exitserver"); puts("%%EndExitServer"); puts("statusdict begin"); puts("/setsoftwareiomode known {100 setsoftwareiomode}"); puts("end"); puts("%EOF"); } else { /* * Use setdevparams for BCP mode... */ puts("%!PS-Adobe-3.0"); puts("%%Title: (BCP - Level 2)"); puts("%%EndComments"); puts("currentsysparams"); puts("/CurInputDevice 2 copy known {"); puts("get"); puts("<> setdevparams"); puts("}{"); puts("pop pop"); puts("} ifelse"); puts("%EOF"); } if (ppd && ppd->jcl_end) fputs(ppd->jcl_end, stdout); else if (!ppd || ppd->num_filters == 0) putchar(0x04); /* * Loop until we see end-of-file... */ do { linelen = sizeof(line); if (psgets(line, &linelen, fp) == NULL) break; } while (pswrite(line, linelen) > 0); fflush(stdout); } return (0); } /* * 'psgets()' - Get a line from a file. * * Note: * * This function differs from the gets() function in that it * handles any combination of CR, LF, or CR LF to end input * lines. */ static char * /* O - String or NULL if EOF */ psgets(char *buf, /* I - Buffer to read into */ size_t *bytes, /* IO - Length of buffer */ FILE *fp) /* I - File to read from */ { char *bufptr; /* Pointer into buffer */ int ch; /* Character from file */ size_t len; /* Max length of string */ len = *bytes - 1; bufptr = buf; ch = EOF; while ((size_t)(bufptr - buf) < len) { if ((ch = getc(fp)) == EOF) break; if (ch == '\r') { /* * Got a CR; see if there is a LF as well... */ ch = getc(fp); if (ch != EOF && ch != '\n') { ungetc(ch, fp); /* Nope, save it for later... */ ch = '\r'; } else *bufptr++ = '\r'; break; } else if (ch == '\n') break; else *bufptr++ = (char)ch; } /* * Add a trailing newline if it is there... */ if (ch == '\n' || ch == '\r') { if ((size_t)(bufptr - buf) < len) *bufptr++ = (char)ch; else ungetc(ch, fp); } /* * Nul-terminate the string and return it (or NULL for EOF). */ *bufptr = '\0'; *bytes = (size_t)(bufptr - buf); if (ch == EOF && bufptr == buf) return (NULL); else return (buf); } /* * 'pswrite()' - Write data from a file. */ static ssize_t /* O - Number of bytes written */ pswrite(const char *buf, /* I - Buffer to write */ size_t bytes) /* I - Bytes to write */ { size_t count; /* Remaining bytes */ for (count = bytes; count > 0; count --, buf ++) switch (*buf) { case 0x04 : /* CTRL-D */ if (bytes == 1) { /* * Don't quote the last CTRL-D... */ putchar(0x04); break; } case 0x01 : /* CTRL-A */ case 0x03 : /* CTRL-C */ case 0x05 : /* CTRL-E */ case 0x11 : /* CTRL-Q */ case 0x13 : /* CTRL-S */ case 0x14 : /* CTRL-T */ case 0x1c : /* CTRL-\ */ if (putchar(0x01) < 0) return (-1); if (putchar(*buf ^ 0x40) < 0) return (-1); break; default : if (putchar(*buf) < 0) return (-1); break; } return ((ssize_t)bytes); } cups-2.4.7/monitor/Makefile0000644000175000017500000000325114502571342015511 0ustar zdohnalzdohnal# # Port monitor makefile for CUPS. # # Copyright 2007-2019 by Apple Inc. # Copyright 2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs TARGETS = bcp tbcp OBJS = bcp.o tbcp.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: $(INSTALL_DIR) -m 755 $(SERVERBIN)/monitor for file in $(TARGETS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/monitor; \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(TARGETS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: for file in $(TARGETS); do \ $(RM) $(SERVERBIN)/monitor/$$file; \ done -$(RMDIR) $(SERVERBIN)/monitor -$(RMDIR) $(SERVERBIN) # # bcp # bcp: bcp.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ bcp.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # tbcp # tbcp: tbcp.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ tbcp.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies cups-2.4.7/monitor/Dependencies0000644000175000017500000000150614502571342016363 0ustar zdohnalzdohnalbcp.o: bcp.c ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/ppd.h ../cups/raster.h tbcp.o: tbcp.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ../cups/ppd.h \ ../cups/raster.h cups-2.4.7/man/0000755000175000017500000000000014502571342013134 5ustar zdohnalzdohnalcups-2.4.7/man/subscriptions.conf.50000644000175000017500000000210314502571342017051 0ustar zdohnalzdohnal.\" .\" subscriptions.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH subscriptions.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME subscriptions.conf \- subscription configuration file for cups .SH DESCRIPTION The \fBsubscriptions.conf\fR file defines the local event notification subscriptions that are active. It is normally located in the \fI/etc/cups\fR directory and is maintained by the .BR cupsd (8) program. This file is not intended to be edited or managed manually. .SH NOTES The name, location, and format of this file are an implementation detail that will change in future releases of CUPS. .SH SEE ALSO .BR classes.conf (5), .BR cups-files.conf (5), .BR cupsd (8), .BR cupsd.conf (5), .BR mime.convs (5), .BR mime.types (5), .BR printers.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/printers.conf.50000644000175000017500000000201614502571342016013 0ustar zdohnalzdohnal.\" .\" printers.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright 2007-2019 by Apple Inc. .\" Copyright 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information. .\" .TH printers.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME printers.conf \- printer configuration file for cups .SH DESCRIPTION The \fBprinters.conf\fR file defines the local printers that are available. It is normally located in the \fI/etc/cups\fR directory and is maintained by the .BR cupsd (8) program. This file is not intended to be edited or managed manually. .SH NOTES The name, location, and format of this file are an implementation detail that will change in future releases of CUPS. .SH SEE ALSO .BR classes.conf (5), .BR cups-files.conf (5), .BR cupsd (8), .BR cupsd.conf (5), .BR mime.convs (5), .BR mime.types (5), .BR subscriptions.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdpo.10000644000175000017500000000332014502571342014336 0ustar zdohnalzdohnal.\" .\" ppdpo man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdpo 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdpo \- ppd message catalog generator (deprecated) .SH SYNOPSIS .B ppdpo [ \fB\-D \fIname\fR[\fB=\fIvalue\fR] ] [ .B \-I .I include-directory ] [ .B \-o .I output-file ] .I source-file .SH DESCRIPTION \fBppdpo\fR extracts UI strings from PPDC source files and updates either a GNU gettext or macOS strings format message catalog source file for translation. \fBThis program is deprecated and will be removed in a future release of CUPS.\fR .SH OPTIONS \fBppdpo\fR supports the following options: .TP 5 \fB\-D \fIname\fR[\fB=\fIvalue\fR] Sets the named variable for use in the source file. It is equivalent to using the \fI#define\fR directive in the source file. .TP 5 \fB\-I \fIinclude-directory\fR Specifies an alternate include directory. Multiple \fI-I\fR options can be supplied to add additional directories. .TP 5 \fB\-o \fIoutput-file\fR Specifies the output file. The supported extensions are \fI.po\fR or \fI.po.gz\fR for GNU gettext format message catalogs and \fI.strings\fR for macOS strings files. .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR ppdc (1), .BR ppdhtml (1), .BR ppdi (1), .BR ppdmerge (1), .BR ppdcfile(5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdmerge.10000644000175000017500000000270214502571342015022 0ustar zdohnalzdohnal.\" .\" ppdmerge man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdmerge 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdmerge \- merge ppd files (deprecated) .SH SYNOPSIS .B ppdmerge [ .B \-o .I output-ppd-file ] .I ppd-file .I ppd-file [ ... .I ppd-file ] .SH DESCRIPTION \fBppdmerge\fR merges two or more PPD files into a single, multi-language PPD file. \fBThis program is deprecated and will be removed in a future release of CUPS.\fR .SH OPTIONS \fBppdmerge\fR supports the following options: .TP \fB\-o \fIoutput-ppd-file\fR Specifies the PPD file to create. If not specified, the merged PPD file is written to the standard output. If the output file already exists, it is silently overwritten. .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .LP \fBppdmerge\fR does not check whether the merged PPD files are for the same device. Merging of different device PPDs will yield unpredictable results. .SH SEE ALSO .BR ppdc (1), .BR ppdhtml (1), .BR ppdi (1), .BR ppdpo (1), .BR ppdcfile (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdi.10000644000175000017500000000322714502571342014156 0ustar zdohnalzdohnal.\" .\" ppdi man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdi 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdi \- import ppd files (deprecated) .SH SYNOPSIS .B ppdi [ .B \-I .I include-directory ] [ .B \-o .I source-file ] .I ppd-file [ ... .I ppd-file ] .SH DESCRIPTION \fBppdi\fR imports one or more PPD files into a PPD compiler source file. Multiple languages of the same PPD file are merged into a single printer definition to facilitate accurate changes for all localizations. \fBThis program is deprecated and will be removed in a future release of CUPS.\fR .SH OPTIONS \fBppdi\fR supports the following options: .TP 5 \fB\-I \fIinclude-directory\fR Specifies an alternate include directory. Multiple \fI-I\fR options can be supplied to add additional directories. .TP 5 \fB\-o \fIsource-file\fR Specifies the PPD source file to update. If the source file does not exist, a new source file is created. Otherwise the existing file is merged with the new PPD file(s) on the command-line. If no source file is specified, the filename \fIppdi.drv\fR is used. .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR ppdc (1), .BR ppdhtml (1), .BR ppdmerge (1), .BR ppdpo (1), .BR ppdcfile (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdhtml.10000644000175000017500000000275514502571342014677 0ustar zdohnalzdohnal.\" .\" ppdhtml man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdhtml 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdhtml \- cups html summary generator (deprecated) .SH SYNOPSIS .B ppdhtml [ \fB\-D \fIname\fR[\fB=\fIvalue\fR] ] [ .B \-I .I include-directory ] .I source-file .SH DESCRIPTION \fBppdhtml\fR reads a driver information file and produces a HTML summary page that lists all of the drivers in a file and the supported options. \fBThis program is deprecated and will be removed in a future release of CUPS.\fR .SH OPTIONS \fBppdhtml\fR supports the following options: .TP 5 \fB\-D \fIname\fR[\fB=\fIvalue\fR] Sets the named variable for use in the source file. It is equivalent to using the \fI#define\fR directive in the source file. .TP 5 \fB\-I \fIinclude-directory\fR Specifies an alternate include directory. Multiple \fI-I\fR options can be supplied to add additional directories. .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR ppdc (1), .BR ppdcfile (5), .BR ppdi (1), .BR ppdmerge (1), .BR ppdpo (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdcfile.50000644000175000017500000001131414502571342015010 0ustar zdohnalzdohnal.\" .\" ppdcfile man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdcfile 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdcfile \- cups ppd compiler source file format (deprecated) .SH DESCRIPTION The CUPS PPD compiler reads meta files that contain descriptions of one or more PPD files to be generated by .BR ppdc (1). This man page provides a quick reference to the supported keywords and should be used in conjunction with the online help for CUPS. .PP The source file format is plain ASCII text that can be edited using your favorite text editor. Comments are supported using the C (/* ... */) and C++ (// ...) comment mechanisms. .PP Printer driver information can be grouped and shared using curly braces ({ ... }); PPD files are written when a close brace or end-of-file is seen and a PCFileName directive has been defined. .PP Directives may be placed anywhere on a line and are followed by one or more values. The following is a list of the available directives and the values they accept: .TP 5 \fB#define \fIname value\fR .TP 5 \fB#elif \fR{\fIname \fR| \fIvalue\fR} .TP 5 \fB#else\fR .TP 5 \fB#endif\fR .TP 5 \fB#font \fIname encoding "version" charset status\fR .TP 5 \fB#if \fR{\fIname \fR| \fIvalue\fR} .TP 5 \fB#include <\fIfilename\fB>\fR .TP 5 \fB#include "\fIfilename\fB"\fR .TP 5 \fB#media \fIname width length\fR .TP 5 \fB#media "\fIname\fB/\fItext\fB" \fIwidth length\fR .TP 5 \fB#po \fIlocale \fB"\fIfilename\fB"\fR .TP 5 \fBAttribute \fIname \fB"" \fIvalue\fR .TP 5 \fBAttribute \fIname keyword value\fR .TP 5 \fBAttribute \fIname \fB"\fIkeyword\fB/\fItext\fB" \fIvalue\fR .TP 5 \fBChoice \fIname \fB"\fIcode\fB"\fR .TP 5 \fBChoice \fB"\fIname\fB/\fItext\fB" "\fIcode\fB"\fR .TP 5 \fBColorDevice \fIboolean-value\fR .TP 5 \fBColorModel \fIname colorspace colororder compression\fR .TP 5 \fBColorModel "\fIname\fB/\fItext\fB" \fIcolorspace colororder compression\fR .TP 5 \fBColorProfile \fIresolution\fB/\fImediatype gamma density matrix\fR .TP 5 \fBCopyright "\fItext\fR" .TP 5 \fBCustomMedia \fIname width length left bottom right top \fB"\fIsize-code\fB" "\fIregion-code\fB"\fR .TP 5 \fBCustomMedia "\fIname\fB/\fItext\fB" \fIwidth length left bottom right top \fB"\fIsize-code\fB" "\fIregion-code\fB"\fR .TP 5 \fBCutter \fIboolean-value\fR .TP 5 \fBDarkness \fItemperature name\fR .TP 5 \fBDarkness \fItemperature \fB"\fIname\fB/\fItext\fB"\fR .TP 5 \fBDriverType \fItype\fR .TP 5 \fBDuplex \fItype\fR .TP 5 \fBFilter \fImime-type cost program\fR .TP 5 \fBFinishing \fIname\fR .TP 5 \fBFinishing "\fIname\fB/\fItext\fB"\fR .TP 5 \fBFont *\fR .TP 5 \fBFont \fIname encoding \fB"\fIversion\fB" \fIcharset status\fR .TP 5 \fBGroup \fIname\fR .TP 5 \fBGroup "\fIname\fB/\fItext\fB"\fR .TP 5 \fBHWMargins \fIleft bottom right top\fR .TP 5 \fBInputSlot \fIposition name\fR .TP 5 \fBInputSlot \fIposition \fB"\fIname\fB/\fItext\fB"\fR .TP 5 \fBInstallable \fIname\fR .TP 5 \fBInstallable "\fIname\fB/\fItext\fB"\fR .TP 5 \fBLocAttribute \fIname \fB"\fIkeyword\fB/\fItext\fB" \fIvalue\fR .TP 5 \fBManualCopies \fIboolean-value\fR .TP 5 \fBManufacturer "\fIname\fB"\fR .TP 5 \fBMaxSize \fIwidth length\fR .TP 5 \fBMediaSize \fIname\fR .TP 5 \fBMediaType \fItype name\fR .TP 5 \fBMediaType \fItype \fB"\fIname\fB/\fItext\fB"\fR .TP 5 \fBMinSize \fIwidth length\fR .TP 5 \fBModelName "\fIname\fB"\fR .TP 5 \fBModelNumber \fInumber\fR .TP 5 \fBOption \fIname type section order\fR .TP 5 \fBOption "\fIname\fB/\fItext\fB" \fItype section order\fR .TP 5 \fBPCFileName "\fIfilename.ppd\fB"\fR .TP 5 \fBResolution \fIcolorspace bits-per-color row-count row-feed row-step name\fR .TP 5 \fBResolution \fIcolorspace bits-per-color row-count row-feed row-step \fB"\fIname\fB/\fItext\fB"\fR .TP 5 \fBSimpleColorProfile \fIresolution\fB/\fImediatype density yellow-density red-density gamma red-adjust green-adjust blue-adjust\fR .TP 5 \fBThroughput \fIpages-per-minute\fR .TP 5 \fBUIConstraints "\fI*Option1 *Option2\fB"\fR .TP 5 \fBUIConstraints "\fI*Option1 Choice1 *Option2\fB"\fR .TP 5 \fBUIConstraints "\fI*Option1 *Option2 Choice2\fB"\fR .TP 5 \fBUIConstraints "\fI*Option1 Choice1 *Option2 Choice2\fB"\fR .TP 5 \fBVariablePaperSize \fIboolean-value\fR .TP 5 \fBVersion \fInumber\fR .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR ppdc (1), .BR ppdhtml (1), .BR ppdi (1), .BR ppdmerge (1), .BR ppdpo (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ppdc.10000644000175000017500000000553514502571342014154 0ustar zdohnalzdohnal.\" .\" ppdc man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ppdc 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ppdc \- cups ppd compiler (deprecated) .SH SYNOPSIS .B ppdc [ \fB\-D \fIname\fR[\fB=\fIvalue\fR] ] [ .B \-I .I include-directory ] [ .B \-c .I message-catalog ] [ .B \-d .I output-directory ] [ .B \-l .I language(s) ] [ .B \-m ] [ .B \-t ] [ .B \-v ] [ .B \-z ] [ .B \-\-cr ] [ .B \-\-crlf ] [ .B \-\-lf ] .I source-file .SH DESCRIPTION \fBppdc\fR compiles PPDC source files into one or more PPD files. \fBThis program is deprecated and will be removed in a future release of CUPS.\fR .SH OPTIONS \fBppdc\fR supports the following options: .TP 5 \fB\-D \fIname\fR[\fB=\fIvalue\fR] Sets the named variable for use in the source file. It is equivalent to using the \fI#define\fR directive in the source file. .TP 5 \fB\-I \fIinclude-directory\fR Specifies an alternate include directory. Multiple \fI-I\fR options can be supplied to add additional directories. .TP 5 \fB\-c \fImessage-catalog\fR Specifies a single message catalog file in GNU gettext (filename.po) or Apple strings (filename.strings) format to be used for localization. .TP 5 \fB\-d \fIoutput-directory\fR Specifies the output directory for PPD files. The default output directory is "ppd". .TP 5 \fB\-l \fIlanguage(s)\fR Specifies one or more languages to use when localizing the PPD file(s). The default language is "en" (English). Separate multiple languages with commas, for example "de_DE,en_UK,es_ES,es_MX,es_US,fr_CA,fr_FR,it_IT" will create PPD files with German, UK English, Spanish (Spain, Mexico, and US), French (France and Canada), and Italian languages in each file. .TP 5 .B \-m Specifies that the output filename should be based on the ModelName value instead of FileName or PCFileName. .TP 5 .B \-t Specifies that PPD files should be tested instead of generated. .TP 5 .B \-v Specifies verbose output, basically a running status of which files are being loaded or written. .B \-z Generates compressed PPD files (filename.ppd.gz). The default is to generate uncompressed PPD files. .TP 5 \fB\-\-cr\fR .TP 5 \fB\-\-crlf\fR .TP 5 \fB\-\-lf\fR Specifies the line ending to use - carriage return, carriage return and line feed, or line feed alone. The default is to use the line feed character alone. .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR ppdhtml (1), .BR ppdi (1), .BR ppdmerge (1), .BR ppdpo (1), .BR ppdcfile (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/notifier.70000644000175000017500000000230214502571342015040 0ustar zdohnalzdohnal.\" .\" notifier man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH notifier 7 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME notifier \- cups notification interface .SH SYNOPSIS .B notifier .I recipient [ .I user-data ] .SH DESCRIPTION The CUPS notifier interface provides a standard method for adding support for new event notification methods to CUPS. Each notifier delivers one or more IPP events from the standard input to the specified recipient. .LP Notifiers \fBMUST\fR read IPP messages from the standard input using the .BR ippNew () and .BR ippReadFile () functions and exit on error. Notifiers are encouraged to exit after a suitable period of inactivity, however they may exit after reading the first message or stay running until an error is seen. Notifiers inherit the environment and can use the logging mechanism documented in .BR filter (7). .SH SEE ALSO .BR cupsd (8), .BR filter (7), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/mime.types.50000644000175000017500000001114714502571342015320 0ustar zdohnalzdohnal.\" .\" mime.types man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH mime.types 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME mime.types \- mime type description file for cups .SH DESCRIPTION The \fBmime.types\fR file defines the recognized file types. .LP Additional file types are specified in files with the extension \fI.types\fR in the CUPS configuration directory. .LP Each line in the \fBmime.types\fR file is a comment, blank, or rule line. Comment lines start with the # character. Rule lines start with the MIME media type and are optionally followed by a series of file recognition rules: .nf \fImime/type \fR[ \fIrule \fR... \fIrule \fR] .fi Rules can be extended over multiple lines using the backslash character (\\): .nf \fImime/type \fR[ \fIreally-really-really-long-rule \fR... \fB\\ \fIrule \fR] .fi MIME media types specified by the \fImime/type\fR field are case-insensitive and are sorted in ascending alphanumeric order for the purposes of matching. See the "TYPE MATCHING AND PRIORITY" section for more information. .LP The rules may be grouped using parenthesis, joined using "+" for a logical AND, joined using "," or whitespace for a logical OR, and negated using "!". .SS RULES Rules take two forms - a filename extension by itself and functions with test values inside parenthesis. The following functions are available: .TP 5 \fBmatch("\fIpattern\fB")\fR True if the filename matches the given shell wildcard \fIpattern\fR. .TP 5 \fBascii(\fIoffset\fB,\fIlength\fB)\fR True if the \fIlength\fR bytes starting at \fIoffset\fR are valid printable ASCII (CR, NL, TAB, BS, 32-126). .TP 5 \fBprintable(\fIoffset\fB,\fIlength\fB)\fR True if the \fIlength\fR bytes starting at \fIoffset\fR are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254). .TP 5 \fBpriority(\fInumber\fB)\fR Specifies the relative priority of this MIME media type. The default priority is 100. Larger values have higher priority while smaller values have lower priority. .TP 5 \fBstring(\fIoffset\fB,"\fIstring\fB")\fR True if the bytes starting at \fIoffset\fR are identical to \fIstring\fR. .TP 5 \fBistring(\fIoffset\fB,"\fIstring\fB")\fR True if the bytes starting at \fIoffset\fR match \fIstring\fR without respect to case. .TP 5 \fBchar(\fIoffset\fB,\fIvalue\fB)\fR True if the byte at \fIoffset\fR is identical to \fIvalue\fR. .TP 5 \fBshort(\fIoffset\fB,\fIvalue\fB)\fR True if the 16-bit big-endian integer at \fIoffset\fR is identical to \fIvalue\fR. .TP 5 \fBint(\fIoffset\fB,\fIvalue\fB)\fR True if the 32-bit big-endian integer at \fIoffset\fR is identical to \fIvalue\fR. .TP 5 \fBlocale("\fIstring\fB")\fR True if current locale matches \fIstring\fR. .TP 5 \fBcontains(\fIoffset\fB,\fIrange\fB,"\fIstring\fB")\fR True if the bytes starting at \fIoffset\fR for \fIrange\fR bytes contains \fIstring\fR. .SS STRING CONSTANTS String constants can be specified inside quotes ("") for strings containing whitespace and angle brackets (<>) for hexadecimal strings. .SS TYPE MATCHING AND PRIORITY When CUPS needs to determine the MIME media type of a given file, it checks every MIME media type defined in the \fI.types\fR files. When two or more types match a given file, the type chosen will depend on the type name and priority, with higher-priority types being used over lower-priority ones. If the types have the same priority, the type names are sorted alphanumerically in ascending order and the first type is chosen. .LP For example, if two types "text/bar" and "text/foo" are defined as matching the extension "doc", normally the type "text/bar" will be chosen since its name is alphanumerically smaller than "text/foo". However, if "text/foo" also defines a higher priority than "text/bar", "text/foo" will be chosen instead. .SH FILES \fI/etc/cups\fR - Typical CUPS configuration directory. .SH EXAMPLES Define two MIME media types for raster data, with one being a subset with higher priority: .nf application/vnd.cups\-raster string(0,"RaSt") string(0,"tSaR") \\ string(0,"RaS2") string(0,"2SaR") \\ string(0,"RaS3") string(0,"3SaR") image/pwg-raster string(0,"RaS2") + \\ string(4,PwgRaster<00>) priority(150) .fi .SH SEE ALSO .BR cups-files.conf (5), .BR cupsd.conf (5), .BR cupsd (8), .BR cupsfilter (8), .BR mime.convs (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/mime.convs.50000644000175000017500000000451714502571342015307 0ustar zdohnalzdohnal.\" .\" mime.convs man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH mime.convs 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME mime.convs \- mime type conversion file for cups (deprecated) .SH DESCRIPTION The \fBmime.convs\fR file defines the filters that are available for converting files from one format to another. The standard filters support text, PDF, PostScript, and many types of image files. .LP Additional filters are specified in files with the extension \fI.convs\fR in the CUPS configuration directory. .LP Each line in the \fBmime.convs\fR file is a comment, blank, or filter line. Comment lines start with the # character. Filter lines specify the source and destination MIME types along with a relative cost associated with the filter and the filter to run: .nf source/type destination/type cost filter .fi The \fIsource/type\fR field specifies the source MIME media type that is consumed by the filter. .LP The \fIdestination/type\fR field specifies the destination MIME media type that is produced by the filter. .LP The \fIcost\fR field specifies the relative cost for running the filter. A value of 100 means that the filter uses a large amount of resources while a value of 0 means that the filter uses very few resources. .LP The \fIfilter\fR field specifies the filter program filename. Filenames are relative to the CUPS filter directory. .SH FILES \fI/etc/cups\fR - Typical CUPS configuration directory. .br \fI/usr/lib/cups/filter\fR - Typical CUPS filter directory. .br \fI/usr/libexec/cups/filter\fR - CUPS filter directory on macOS. .SH EXAMPLES Define a filter that converts PostScript documents to CUPS Raster format: .nf application/vnd.cups\-postscript application/vnd.cups\-raster 50 pstoraster .fi .SH NOTES CUPS filters are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR cups-files.conf (5), .BR cupsd.conf (5), .BR cupsd (8), .BR cupsfilter (8), .BR mime.types (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/mantohtml.c0000644000175000017500000005704714502571342015320 0ustar zdohnalzdohnal/* * Man page to HTML conversion program. * * Copyright 2007-2017 by Apple Inc. * Copyright 2004-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers. */ #include #include #include /* * Local globals... */ static const char /* Start/end tags for fonts */ * const start_fonts[] = { "", "", "" }, * const end_fonts[] = { "", "", "" }; /* * Local functions... */ static void html_alternate(const char *s, const char *first, const char *second, FILE *fp); static void html_fputs(const char *s, int *font, FILE *fp); static void html_putc(int ch, FILE *fp); static void strmove(char *d, const char *s); /* * 'main()' - Convert a man page to HTML. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { FILE *infile, /* Input file */ *outfile; /* Output file */ char line[1024], /* Line from file */ *lineptr, /* Pointer into line */ anchor[1024], /* Anchor */ name[1024], /* Man page name */ ddpost[256]; /* Tagged list post markup */ int section = -1, /* Man page section */ pre = 0, /* Preformatted */ font = 0, /* Current font */ linenum = 0; /* Current line number */ float list_indent = 0.0f, /* Current list indentation */ nested_indent = 0.0f; /* Nested list indentation, if any */ const char *list = NULL, /* Current list, if any */ *nested = NULL; /* Nested list, if any */ const char *post = NULL; /* Text to add after the current line */ /* * Check arguments... */ if (argc > 3) { fputs("Usage: mantohtml [filename.man [filename.html]]\n", stderr); return (1); } /* * Open files as needed... */ if (argc > 1) { if ((infile = fopen(argv[1], "r")) == NULL) { perror(argv[1]); return (1); } } else infile = stdin; if (argc > 2) { if ((outfile = fopen(argv[2], "w")) == NULL) { perror(argv[2]); fclose(infile); return (1); } } else outfile = stdout; /* * Read from input and write the output... */ fputs("\n" "\n" "\n" "\n" "\t\n", outfile); anchor[0] = '\0'; while (fgets(line, sizeof(line), infile)) { size_t linelen = strlen(line); /* Length of line */ if (linelen > 0 && line[linelen - 1] == '\n') line[linelen - 1] = '\0'; linenum ++; if (line[0] == '.') { /* * Strip leading whitespace... */ while (line[1] == ' ' || line[1] == '\t') strmove(line + 1, line + 2); /* * Process man page commands... */ if (!strncmp(line, ".TH ", 4) && section < 0) { /* * Grab man page title... */ sscanf(line + 4, "%s%d", name, §ion); fprintf(outfile, "\t%s(%d)\n" "\n" "\n" "

%s(%d)

\n" "%s", name, section, name, section, start_fonts[font]); } else if (section < 0) continue; else if (!strncmp(line, ".SH ", 4) || !strncmp(line, ".SS ", 4)) { /* * Grab heading... */ int first = 1; fputs(end_fonts[font], outfile); font = 0; if (list) { fprintf(outfile, "\n", list); list = NULL; } if (line[2] == 'H') fputs("

", outfile); for (lineptr = line + 4; *lineptr; lineptr ++) { if (*lineptr == '\"') continue; else if (*lineptr == ' ') { html_putc(' ', outfile); first = 1; } else { if (first) html_putc(*lineptr, outfile); else html_putc(tolower(*lineptr & 255), outfile); first = 0; } } if (line[2] == 'H') fputs("

\n", outfile); else fputs("\n", outfile); } else if (!strncmp(line, ".B ", 3)) { /* * Grab bold text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 3, "b", "b", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".I ", 3)) { /* * Grab italic text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 3, "i", "i", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".BI ", 4)) { /* * Alternating bold and italic text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "b", "i", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".BR ", 4)) { /* * Alternating bold and roman (plain) text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "b", NULL, outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".IB ", 4)) { /* * Alternating italic and bold text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "i", "b", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".IR ", 4)) { /* * Alternating italic and roman (plain) text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "i", NULL, outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".RB ", 4)) { /* * Alternating roman (plain) and bold text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, NULL, "b", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".RI ", 4)) { /* * Alternating roman (plain) and italic text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, NULL, "i", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".SB ", 4)) { /* * Alternating small and bold text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "small", "b", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strncmp(line, ".SM ", 4)) { /* * Small text... */ fputs(end_fonts[font], outfile); font = 0; if (anchor[0]) fprintf(outfile, "", anchor); html_alternate(line + 4, "small", "small", outfile); if (anchor[0]) { fputs("", outfile); anchor[0] = '\0'; } if (post) { fputs(post, outfile); post = NULL; } } else if (!strcmp(line, ".LP") || !strcmp(line, ".PP") || !strcmp(line, ".P")) { /* * New paragraph... */ fputs(end_fonts[font], outfile); font = 0; if (list) { fprintf(outfile, "\n", list); list = NULL; } fputs("

", outfile); if (anchor[0]) { fprintf(outfile, "", anchor); anchor[0] = '\0'; } } else if (!strcmp(line, ".RS") || !strncmp(line, ".RS ", 4)) { /* * Indent... */ float amount = 3.0f; /* Indentation */ if (line[3]) amount = (float)atof(line + 4); fputs(end_fonts[font], outfile); font = 0; if (list) { nested = list; list = NULL; nested_indent = list_indent; list_indent = 0.0f; } fprintf(outfile, "

\n", amount - nested_indent); } else if (!strcmp(line, ".RE")) { /* * Unindent... */ fputs(end_fonts[font], outfile); font = 0; fputs("
\n", outfile); if (nested) { list = nested; nested = NULL; list_indent = nested_indent; nested_indent = 0.0f; } } else if (!strcmp(line, ".HP") || !strncmp(line, ".HP ", 4)) { /* * Hanging paragraph... * * .HP i */ float amount = 3.0f; /* Indentation */ if (line[3]) amount = (float)atof(line + 4); fputs(end_fonts[font], outfile); font = 0; if (list) { fprintf(outfile, "\n", list); list = NULL; } fprintf(outfile, "

", amount, -amount); if (anchor[0]) { fprintf(outfile, "", anchor); anchor[0] = '\0'; } if (line[1] == 'T') post = "
\n"; } else if (!strcmp(line, ".TP") || !strncmp(line, ".TP ", 4)) { /* * Tagged list... * * .TP i */ float amount = 3.0f; /* Indentation */ if (line[3]) amount = (float)atof(line + 4, NULL); fputs(end_fonts[font], outfile); font = 0; if (list && strcmp(list, "dl")) { fprintf(outfile, "\n", list); list = NULL; } if (!list) { fputs("

\n", outfile); list = "dl"; list_indent = amount; } fputs("
", outfile); snprintf(ddpost, sizeof(ddpost), "
", amount); post = ddpost; if (anchor[0]) { fprintf(outfile, "", anchor); anchor[0] = '\0'; } } else if (!strncmp(line, ".IP ", 4)) { /* * Indented paragraph... * * .IP x i */ float amount = 3.0f; /* Indentation */ const char *newlist = NULL; /* New list style */ const char *newtype = NULL; /* New list numbering type */ fputs(end_fonts[font], outfile); font = 0; lineptr = line + 4; while (isspace(*lineptr & 255)) lineptr ++; if (!strncmp(lineptr, "\\(bu", 4) || !strncmp(lineptr, "\\(em", 4)) { /* * Bullet list... */ newlist = "ul"; } else if (isdigit(*lineptr & 255)) { /* * Numbered list... */ newlist = "ol"; } else if (islower(*lineptr & 255)) { /* * Lowercase alpha list... */ newlist = "ol"; newtype = "a"; } else if (isupper(*lineptr & 255)) { /* * Lowercase alpha list... */ newlist = "ol"; newtype = "A"; } while (!isspace(*lineptr & 255)) lineptr ++; while (isspace(*lineptr & 255)) lineptr ++; if (isdigit(*lineptr & 255)) amount = (float)atof(lineptr); if (newlist && list && strcmp(newlist, list)) { fprintf(outfile, "\n", list); list = NULL; } if (newlist && !list) { if (newtype) fprintf(outfile, "<%s type=\"%s\">\n", newlist, newtype); else fprintf(outfile, "<%s>\n", newlist); list = newlist; } if (list) fprintf(outfile, "
  • ", amount); else fprintf(outfile, "

    ", amount); if (anchor[0]) { fprintf(outfile, "", anchor); anchor[0] = '\0'; } } else if (!strncmp(line, ".br", 3)) { /* * Grab line break... */ fputs("
    \n", outfile); } else if (!strncmp(line, ".de ", 4)) { /* * Define macro - ignore... */ while (fgets(line, sizeof(line), infile)) { linenum ++; if (!strncmp(line, "..", 2)) break; } } else if (!strncmp(line, ".ds ", 4) || !strncmp(line, ".rm ", 4) || !strncmp(line, ".tr ", 4) || !strncmp(line, ".hy ", 4) || !strncmp(line, ".IX ", 4) || !strncmp(line, ".PD", 3) || !strncmp(line, ".Sp", 3)) { /* * Ignore unused commands... */ } else if (!strncmp(line, ".Vb", 3) || !strncmp(line, ".nf", 3) || !strncmp(line, ".EX", 3)) { /* * Start preformatted... */ fputs(end_fonts[font], outfile); font = 0; // if (list) // { // fprintf(outfile, "\n", list); // list = NULL; // } pre = 1; fputs("

    \n", outfile);
          }
          else if (!strncmp(line, ".Ve", 3) || !strncmp(line, ".fi", 3) || !strncmp(line, ".EE", 3))
          {
           /*
            * End preformatted...
    	*/
    
    	fputs(end_fonts[font], outfile);
    	font = 0;
    
            if (pre)
    	{
              pre = 0;
    	  fputs("
    \n", outfile); } } else if (!strncmp(line, ".\\}", 3)) { /* * Ignore close block... */ } else if (!strncmp(line, ".ie", 3) || !strncmp(line, ".if", 3) || !strncmp(line, ".el", 3)) { /* * If/else - ignore... */ if (strchr(line, '{') != NULL) { /* * Skip whole block... */ while (fgets(line, sizeof(line), infile)) { linenum ++; if (strchr(line, '}') != NULL) break; } } } #if 0 else if (!strncmp(line, ". ", 4)) { /* * Grab ... */ } #endif /* 0 */ else if (!strncmp(line, ".\\\"#", 4)) { /* * Anchor for HTML output... */ strlcpy(anchor, line + 4, sizeof(anchor)); } else if (strncmp(line, ".\\\"", 3)) { /* * Unknown... */ if ((lineptr = strchr(line, ' ')) != NULL) *lineptr = '\0'; else if ((lineptr = strchr(line, '\n')) != NULL) *lineptr = '\0'; fprintf(stderr, "mantohtml: Unknown man page command \'%s\' on line %d.\n", line, linenum); } /* * Skip continuation lines... */ lineptr = line + strlen(line) - 1; if (lineptr >= line && *lineptr == '\\') { while (fgets(line, sizeof(line), infile)) { linenum ++; lineptr = line + strlen(line) - 2; if (lineptr < line || *lineptr != '\\') break; } } } else { /* * Process man page text... */ if (pre == 1) { pre ++; if (!line[0]) continue; // Skip initial blank line } html_fputs(line, &font, outfile); putc('\n', outfile); if (post) { fputs(post, outfile); post = NULL; } } } fprintf(outfile, "%s\n", end_fonts[font]); font = 0; if (list) { fprintf(outfile, "\n", list); list = NULL; } fputs("\n" "\n", outfile); /* * Close files... */ if (infile != stdin) fclose(infile); if (outfile != stdout) fclose(outfile); /* * Return with no errors... */ return (0); } /* * 'html_alternate()' - Alternate words between two styles of text. */ static void html_alternate(const char *s, /* I - String */ const char *first, /* I - First style or NULL */ const char *second, /* I - Second style of NULL */ FILE *fp) /* I - File */ { int i = 0; /* Which style */ int quote = 0; /* Saw quote? */ int dolinks, /* Do hyperlinks to other man pages? */ link = 0; /* Doing a link now? */ /* * Skip leading whitespace... */ while (isspace(*s & 255)) s ++; dolinks = first && !strcmp(first, "b") && !second; while (*s) { if (!i && dolinks) { /* * See if we need to make a link to a man page... */ const char *end; /* End of current word */ const char *next; /* Start of next word */ for (end = s; *end && !isspace(*end & 255); end ++); for (next = end; isspace(*next & 255); next ++); if (isalnum(*s & 255) && *next == '(') { // "name (section)" - see if the man file is available locally... char name[1024], // Name manfile[1024], // Man page filename manurl[1024]; // Man page URL strlcpy(name, s, sizeof(name)); if ((size_t)(end - s) < sizeof(name)) name[end - s] = '\0'; snprintf(manurl, sizeof(manurl), "man-%s.html?TOPIC=Man+Pages", name); snprintf(manfile, sizeof(manfile), "%s.%d", name, atoi(next + 1)); if (!access(manfile, 0)) { // Local man page, do a link... fprintf(fp, "", manurl); link = 1; } } } if (!i && first) fprintf(fp, "<%s>", first); else if (i && second) fprintf(fp, "<%s>", second); while ((!isspace(*s & 255) || quote) && *s) { if (*s == '\"') quote = !quote; if (*s == '\\' && s[1]) { s ++; html_putc(*s++, fp); } else html_putc(*s++, fp); } if (!i && first) fprintf(fp, "", first); else if (i && second) fprintf(fp, "", second); if (i && link) { fputs("", fp); link = 0; } i ^= 1; /* * Skip trailing whitespace... */ while (isspace(*s & 255)) s ++; } putc('\n', fp); } /* * 'html_fputs()' - Output a string, quoting as needed HTML entities. */ static void html_fputs(const char *s, /* I - String */ int *font, /* IO - Font */ FILE *fp) /* I - File */ { while (*s) { if (*s == '\\') { s ++; if (!*s) break; if (*s == 'f') { int newfont; /* New font */ s ++; if (!*s) break; if (!font) { s ++; continue; } switch (*s++) { case 'R' : case 'P' : newfont = 0; break; case 'b' : case 'B' : newfont = 1; break; case 'i' : case 'I' : newfont = 2; break; default : fprintf(stderr, "mantohtml: Unknown font \"\\f%c\" ignored.\n", s[-1]); newfont = *font; break; } if (newfont != *font) { fputs(end_fonts[*font], fp); *font = newfont; fputs(start_fonts[*font], fp); } } else if (*s == '*') { /* * Substitute macro... */ s ++; if (!*s) break; switch (*s++) { case 'R' : fputs("®", fp); break; case '(' : if (!strncmp(s, "lq", 2)) fputs("“", fp); else if (!strncmp(s, "rq", 2)) fputs("”", fp); else if (!strncmp(s, "Tm", 2)) fputs("TM", fp); else fprintf(stderr, "mantohtml: Unknown macro \"\\*(%2s\" ignored.\n", s); if (*s) s ++; if (*s) s ++; break; default : fprintf(stderr, "mantohtml: Unknown macro \"\\*%c\" ignored.\n", s[-1]); break; } } else if (*s == '(') { if (!strncmp(s, "(em", 3)) { fputs("—", fp); s += 3; } else if (!strncmp(s, "(en", 3)) { fputs("–", fp); s += 3; } else { putc(*s, fp); s ++; } } else if (*s == '[') { /* * Substitute escaped character... */ s ++; if (!strncmp(s, "co]", 3)) fputs("©", fp); else if (!strncmp(s, "de]", 3)) fputs("°", fp); else if (!strncmp(s, "rg]", 3)) fputs("®", fp); else if (!strncmp(s, "tm]", 3)) fputs("TM", fp); if (*s) s ++; if (*s) s ++; if (*s) s ++; } else if (isdigit(s[0]) && isdigit(s[1]) && isdigit(s[2])) { fprintf(fp, "&#%d;", ((s[0] - '0') * 8 + s[1] - '0') * 8 + s[2] - '0'); s += 3; } else { if (*s != '\\' && *s != '\"' && *s != '\'' && *s != '-') { fprintf(stderr, "mantohtml: Unrecognized escape \"\\%c\" ignored.\n", *s); html_putc('\\', fp); } html_putc(*s++, fp); } } else if (!strncmp(s, "http://", 7) || !strncmp(s, "https://", 8) || !strncmp(s, "ftp://", 6)) { /* * Embed URL... */ char temp[1024], // Temporary string *tempptr; // Pointer into temporary string for (tempptr = temp; *s && !isspace(*s & 255) && tempptr < (temp + sizeof(temp) - 1); s ++) { if (strchr(",.)", *s) && strchr(",. \n\r\t", s[1])) { // End of URL break; } else if (*s == '\\' && s[1]) { // Escaped character s ++; *tempptr++ = *s; } else { // Regular character... *tempptr++ = *s; } } *tempptr = '\0'; fprintf(fp, "%s", temp, temp); } else html_putc(*s++ & 255, fp); } } /* * 'html_putc()' - Put a single character, using entities as needed. */ static void html_putc(int ch, /* I - Character */ FILE *fp) /* I - File */ { if (ch == '&') fputs("&", fp); else if (ch == '<') fputs("<", fp); else putc(ch, fp); } /* * 'strmove()' - Move characters within a string. */ static void strmove(char *d, /* I - Destination */ const char *s) /* I - Source */ { while (*s) *d++ = *s++; *d = '\0'; } cups-2.4.7/man/mailto.conf.50000644000175000017500000000337614502571342015444 0ustar zdohnalzdohnal.\" .\" mailto.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH mailto.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME mailto.conf \- configuration file for cups email notifier .SH DESCRIPTION The \fBmailto.conf\fR file defines the local mail server and email notification preferences for CUPS. .LP Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character. .SS DIRECTIVES .TP 5 \fBCc \fIcc-address@domain.com\fR Specifies an additional recipient for all email notifications. .TP 5 \fBFrom \fIfrom-address@domain.com\fR Specifies the sender of email notifications. .TP 5 \fBSendmail \fIsendmail command and options\fR Specifies the sendmail command to use when sending email notifications. Only one \fISendmail\fR or \fISMTPServer\fR line may be present in the \fBmailto.conf\fR file. If multiple lines are present, only the last one is used. .TP 5 \fBSMTPServer \fIservername\fR Specifies a SMTP server to send email notifications to. Only one \fISendmail\fR or \fISMTPServer\fR line may be present in the \fBmailto.conf\fR file. If multiple lines are present, only the last one is used. .TP 5 \fBSubject \fIsubject-prefix\fR Specifies a prefix string for the subject line of an email notification. .SH SEE ALSO .BR cupsd (8), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpstat.10000644000175000017500000000727014502571342014533 0ustar zdohnalzdohnal.\" .\" lpstat man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information. .\" .TH lpstat 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpstat \- print cups status information .SH SYNOPSIS .B lpstat [ \fB\-h \fIhostname\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-H ] [ .B \-U .I username ] [ .B \-l ] [ .B \-W .I which-jobs ] [ .B \-a [ .I destination(s) ] ] [ .B \-c [ .I class(es) ] ] [ .B \-d ] [ .B \-e ] [ .B \-o [ .I destination(s) ] ] [ .B \-p [ .I printer(s) ] ] [ .B \-r ] [ .B \-R ] [ .B \-s ] [ .B \-t ] [ .B \-u [ .I user(s) ] ] [ .B \-v [ .I printer(s) ] ] .SH DESCRIPTION \fBlpstat\fR displays status information about the current classes, jobs, and printers. When run with no arguments, \fBlpstat\fR will list active jobs queued by the current user. .SH OPTIONS The \fBlpstat\fR command supports the following options: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 .B \-H Shows the server hostname and port. .TP 5 .B \-R Shows the ranking of print jobs. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username. .TP 5 \fB\-W \fIwhich-jobs\fR Specifies which jobs to show, "completed" or "not-completed" (the default). This option \fImust\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. .TP 5 \fB\-a \fR[\fIprinter(s)\fR] Shows the accepting state of printer queues. If no printers are specified then all printers are listed. .TP 5 \fB\-c \fR[\fIclass(es)\fR] Shows the printer classes and the printers that belong to them. If no classes are specified then all classes are listed. .TP 5 .B \-d Shows the current default destination. .TP 5 .B \-e Shows all available destinations on the local network. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Specifies an alternate server. Note: This option must occur before all others. .TP 5 .B \-l Shows a long listing of printers, classes, or jobs. .TP 5 \fB\-o \fR[\fIdestination(s)\fR] Shows the jobs queued on the specified destinations. If no destinations are specified all jobs are shown. .TP 5 \fB\-p \fR[\fIprinter(s)\fR] Shows the printers and whether they are enabled for printing. If no printers are specified then all printers are listed. .TP 5 .B \-r Shows whether the CUPS server is running. .TP 5 .B \-s 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 \fI\-d\fR, \fI\-c\fR, and \fI\-v\fR options. .TP 5 .B \-t Shows all status information. This is equivalent to using the \fI\-r\fR, \fI\-d\fR, \fI\-c\fR, \fI\-v\fR, \fI\-a\fR, \fI\-p\fR, and \fI\-o\fR options. .TP 5 \fB\-u \fR[\fIuser(s)\fR] Shows a list of print jobs queued by the specified users. If no users are specified, lists the jobs queued by the current user. .TP 5 \fB\-v \fR[\fIprinter(s)\fR] Shows the printers and what device they are attached to. If no printers are specified then all printers are listed. .SH CONFORMING TO Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", and "#". Also, printer and class names are \fInot\fR case-sensitive. .LP The \fI\-h\fR, \fI-e\fR, \fI\-E\fR, \fI\-U\fR, and \fI\-W\fR options are unique to CUPS. .LP The Solaris \fI\-f\fR, \fI\-P\fR, and \fI\-S\fR options are silently ignored. .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpq (1), .BR lpr (1), .BR lprm (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lprm.10000644000175000017500000000316214502571342014172 0ustar zdohnalzdohnal.\" .\" lprm man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lprm 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lprm \- cancel print jobs .SH SYNOPSIS .B lprm [ \fB\-h \fIhostname\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ .B \-P .IR destination [ /instance ] ] [ .B \- ] [ .I job-id(s) ] .SH DESCRIPTION .B lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default destination is canceled. You can specify one or more job ID numbers to cancel those jobs or use the \fI\-\fR option to cancel all jobs. .SH OPTIONS The .B lprm command supports the following options: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-P \fIdestination\fR[\fI/instance\fR] Specifies the destination printer or class. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username. .TP 5 \fB\-h \fIserver\fR[\fI:port\fR] Specifies an alternate server. Note: This option must occur before all others. .SH CONFORMING TO The CUPS version of .B lprm is compatible with the standard Berkeley command of the same name. .SH EXAMPLES Cancel the current job on the default printer: .nf lprm .fi Cancel job 1234: .nf lprm 1234 .fi Cancel all jobs: .nf lprm \- .fi .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpq (1), .BR lpr (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpr.10000644000175000017500000001114014502571342014010 0ustar zdohnalzdohnal.\" .\" lpr man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpr 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpr \- print files .SH SYNOPSIS .B lpr [ \fB\-H \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ \fB\-P \fIdestination\fR[\fB/\fIinstance\fR] ] [ .B \-# .I num-copies [ .B \-h ] [ .B \-l ] [ .B \-m ] [ \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ] [ .B \-p ] [ .B \-q ] [ .B \-r ] [ .B \-C .I title ] [ .B \-J .I title ] [ .B \-T .I title ] [ .I file(s) ] .SH DESCRIPTION \fBlpr\fR submits files for printing. Files named on the command line are sent to the named printer or the default destination if no destination is specified. If no files are listed on the command-line, \fBlpr\fR reads the print file from the standard input. .SS THE DEFAULT DESTINATION CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first. If neither are set, the current default set using the .BR lpoptions (1) command is used, followed by the default set using the .BR lpadmin (8) command. .SH OPTIONS The following options are recognized by \fIlpr\fR: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-H \fIserver\fR[\fB:\fIport\fR] Specifies an alternate server. Note: This option must occur before all others. .TP 5 \fB\-C "\fIname\fB"\fR .TP 5 \fB\-J "\fIname\fB"\fR .TP 5 \fB\-T "\fIname\fB"\fR Sets the job name/title. .TP 5 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR] Prints files to the named printer. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username. .TP 5 \fB\-# \fIcopies\fR Sets the number of copies to print. .TP 5 .B \-h Disables banner printing. This option is equivalent to \fI-o job\-sheets=none\fR. .TP 5 .B \-l Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to \fI-o raw\fR. .TP 5 .B \-m Send an email on job completion. .TP 5 \fB\-o \fIoption\fR[\fB=\fIvalue\fR] Sets a job option. See "COMMON JOB OPTIONS" below. .TP 5 .B \-p Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to \fI\-o prettyprint\fR and is only useful when printing text files. .TP 5 .B \-q Hold job for printing. .TP 5 .B \-r Specifies that the named print files should be deleted after submitting them. .SS COMMON JOB OPTIONS Aside from the printer-specific options reported by the .BR lpoptions (1) command, the following generic options are available: .TP 5 \fB\-o job-sheets=\fIname\fR\fR Prints a cover page (banner) with the document. The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified". .TP 5 \fB\-o media=\fIsize\fR Sets the page size to \fIsize\fR. Most printers support at least the size names "a4", "letter", and "legal". .TP 5 \fB\-o number\-up=\fR{\fI2|4|6|9|16\fR} Prints 2, 4, 6, 9, or 16 document (input) pages on each output page. .TP 5 \fB\-o orientation\-requested=4\fR Prints the job in landscape (rotated 90 degrees counter-clockwise). .TP 5 \fB\-o orientation\-requested=5\fR Prints the job in landscape (rotated 90 degrees clockwise). .TP 5 \fB\-o orientation\-requested=6\fR Prints the job in reverse portrait (rotated 180 degrees). .TP 5 \fB\-o print\-quality=3\fR .TP 5 \fB\-o print\-quality=4\fR .TP 5 \fB\-o print\-quality=5\fR Specifies the output quality - draft (3), normal (4), or best (5). .TP 5 \fB\-o sides=one\-sided\fR Prints on one side of the paper. .TP 5 \fB\-o sides=two\-sided\-long\-edge\fR Prints on both sides of the paper for portrait output. .TP 5 \fB\-o sides=two\-sided\-short\-edge\fR Prints on both sides of the paper for landscape output. .SH NOTES The \fI\-c\fR, \fI\-d\fR, \fI\-f\fR, \fI\-g\fR, \fI\-i\fR, \fI\-n\fR, \fI\-t\fR, \fI\-v\fR, and \fI\-w\fR options are not supported by CUPS and produce a warning message if used. .SH EXAMPLES Print two copies of a document to the default printer: .nf lpr -# 2 filename .fi Print a double-sided legal document to a printer called "foo": .nf lpr -P foo -o media=legal -o sides=two-sided-long-edge filename .fi Print a presentation document 2-up to a printer called "foo": .nf lpr -P foo -o number-up=2 filename .fi .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpadmin (8), .BR lpoptions (1), .BR lpq (1), .BR lprm (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpq.10000644000175000017500000000307714502571342014021 0ustar zdohnalzdohnal.\" .\" lpq man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpq 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpq \- show printer queue status .SH SYNOPSIS .B lpq [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ \fB\-P \fIdestination\fR[\fB/\fIinstance\fR] ] [ .B \-a ] [ .B \-l ] [ .BI + interval ] .SH DESCRIPTION \fBlpq\fR shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line. .LP The \fI+interval\fR option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every \fIinterval\fR seconds. .SH OPTIONS \fBlpq\fR supports the following options: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR] Specifies an alternate printer or class name. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username. .TP 5 .B \-a Reports jobs on all printers. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Specifies an alternate server. Note: This option must occur before all others. .TP 5 .B \-l Requests a more verbose (long) reporting format. .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpr (1), .BR lprm (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpoptions.10000644000175000017500000000632714502571342015255 0ustar zdohnalzdohnal.\" .\" lpoptions man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpoptions 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpoptions \- display or set printer options and defaults .SH SYNOPSIS .B lpoptions [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] [ .B \-l ] .br .B lpoptions [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] ] \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ... .br .B lpoptions [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] ] .B \-r .I option .br .B lpoptions [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] \fB\-x \fIdestination\fR[\fB/\fIinstance\fR] .SH DESCRIPTION \fBlpoptions\fR displays or sets printer options and defaults. If no printer is specified using the \fI\-p\fR option, the default printer is used as described in .BR lp (1). .LP If no \fI\-l\fR, \fI\-o\fR, or \fI\-r\fR options are specified, the current options are reported on the standard output. .LP Options set with the \fBlpoptions\fR command are used by the .BR lp (1) and .BR lpr (1) commands when submitting jobs. .LP When run by the root user, \fBlpoptions\fR gets and sets default options and instances for all users in the \fI/etc/cups/lpoptions\fR file. Otherwise, the per-user defaults are managed in the \fI~/.cups/lpoptions\fR file. .SH OPTIONS \fBlpoptions\fR supports the following options: .TP 5 .B \-E Enables encryption when communicating with the CUPS server. .TP 5 \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] Sets the user default printer to \fIdestination\fR. If \fIinstance\fR is supplied then that particular instance is used. This option overrides the system default printer for the current user. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Uses an alternate server. Note: This option must occur before all others. .TP 5 .B \-l Lists the printer specific options and their current settings. .TP 5 \fB\-o \fIoption\fR[\fB=\fIvalue\fR] Specifies a new option for the named destination. .TP 5 \fB\-p \fIdestination\fR[\fB/\fIinstance\fR] Sets the destination and instance, if specified, for any options that follow. If the named instance does not exist then it is created. Destinations can only be created using the .BR lpadmin (8) program. .TP 5 \fB\-r \fIoption\fR Removes the specified option from the named destination. .TP 5 \fB\-x \fIdestination\fR[\fB/\fIinstance\fR] Removes the options for the named destination and instance, if specified. If the named instance does not exist then this does nothing. Destinations can only be removed using the .BR lpadmin (8) command. .SH FILES \fI~/.cups/lpoptions\fR - user defaults and instances created by non-root users. .br \fI/etc/cups/lpoptions\fR - system-wide defaults and instances created by the root user. .SH CONFORMING TO The \fBlpoptions\fR command is unique to CUPS. .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpadmin (8), .BR lpr (1), .BR lprm (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpmove.80000644000175000017500000000300014502571342014520 0ustar zdohnalzdohnal.\" .\" lpmove man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpmove 8 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpmove \- move a job or all jobs to a new destination .SH SYNOPSIS .B lpmove [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] .I job .I destination .br .B lpmove [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] .I source .I destination .SH DESCRIPTION \fBlpmove\fR moves the specified \fIjob\fR or all jobs from \fIsource\fR to \fIdestination\fR. \fIjob\fR can be the job ID number or the old destination and job ID. .SH OPTIONS The \fBlpmove\fR command supports the following options: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Specifies an alternate server. Note: This option must occur before all others. .SH EXAMPLES Move job 123 from "oldprinter" to "newprinter": .nf lpmove 123 newprinter \fIor\fR lpmove oldprinter-123 newprinter .fi Move all jobs from "oldprinter" to "newprinter": .nf lpmove oldprinter newprinter .fi .SH SEE ALSO .BR cancel (1), .BR lp (1), .BR lpr (1), .BR lprm (1), .br CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpinfo.80000644000175000017500000000566514502571342014530 0ustar zdohnalzdohnal.\" .\" lpinfo man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpinfo 8 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lpinfo \- show available devices or drivers (deprecated) .SH SYNOPSIS .B lpinfo [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-l ] [ .B \-\-device\-id .I device-id-string ] [ .B \-\-exclude\-schemes .I scheme-list ] [ .B \-\-include\-schemes .I scheme-list ] [ .B \-\-language .I locale ] [ .B \-\-make\-and\-model .I name ] [ .B \-\-product .I name ] .B \-m .br .B lpinfo [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-l ] [ .B \-\-exclude\-schemes .I scheme-list ] [ .B \-\-include\-schemes .I scheme-list ] [ .B \-\-timeout .I seconds ] .B \-v .SH DESCRIPTION \fBlpinfo\fR lists the available devices or drivers known to the CUPS server. The first form (\fI-m\fR) lists the available drivers, while the second form (\fI-v\fR) lists the available devices. .SH OPTIONS \fBlpinfo\fR accepts the following options: .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Selects an alternate server. Note: This option must occur before all others. .TP 5 .B \-l Shows a "long" listing of devices or drivers. .TP 5 \fB\-\-device\-id \fIdevice-id-string\fR Specifies the IEEE-1284 device ID to match when listing drivers with the \fI\-m\fR option. .TP 5 \fB\-\-exclude\-schemes \fIscheme-list\fR Specifies a comma-delimited list of device or PPD schemes that should be excluded from the results. Static PPD files use the "file" scheme. .TP 5 \fB\-\-include\-schemes \fIscheme-list\fR Specifies a comma-delimited list of device or PPD schemes that should be included in the results. Static PPD files use the "file" scheme. .TP 5 \fB\-\-language \fIlocale\fR Specifies the language to match when listing drivers with the \fI\-m\fR option. .TP 5 \fB\-\-make\-and\-model \fIname\fR Specifies the make and model to match when listing drivers with the \fI\-m\fR option. .TP 5 \fB\-\-product \fIname\fR Specifies the product to match when listing drivers with the \fI\-m\fR option. .TP 5 \fB\-\-timeout \fIseconds\fR Specifies the timeout when listing devices with the \fI\-v\fR option. .SH CONFORMING TO The \fIlpinfo\fR command is unique to CUPS. .SH EXAMPLES List all devices: .nf lpinfo \-v .fi List all drivers: .nf lpinfo \-m .fi List drivers matching "HP LaserJet": .nf lpinfo \-\-make\-and\-model "HP LaserJet" \-m .fi .SH NOTES CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR lpadmin (8), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpc.80000644000175000017500000000331414502571342014004 0ustar zdohnalzdohnal.\" .\" lpc man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpc 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME lpc \- line printer control program (deprecated) .SH SYNOPSIS .B lpc [ .I command [ .I parameter(s) ] ] .SH DESCRIPTION \fBlpc\fR provides limited control over printer and class queues provided by CUPS. It can also be used to query the state of queues. .LP If no command is specified on the command-line, \fBlpc\fR displays a prompt and accepts commands from the standard input. .SS COMMANDS The \fBlpc\fR program accepts a subset of commands accepted by the Berkeley \fBlpc\fR program of the same name: .TP 5 .B exit Exits the command interpreter. .TP 5 \fBhelp \fR[\fIcommand\fR] .TP 5 \fB? \fR[\fIcommand\fR] Displays a short help message. .TP 5 .B quit Exits the command interpreter. .TP 5 \fBstatus \fR[\fIqueue\fR] Displays the status of one or more printer or class queues. .SH NOTES This program is deprecated and will be removed in a future feature release of CUPS. .LP Since \fBlpc\fR is geared towards the Berkeley printing system, it is impossible to use \fBlpc\fR to configure printer or class queues provided by CUPS. To configure printer or class queues you must use the .BR lpadmin (8) command or another CUPS-compatible client with that functionality. .SH SEE ALSO .BR cancel (1), .BR cupsaccept (8), .BR cupsenable (8), .BR lp (1), .BR lpadmin (8), .BR lpr (1), .BR lprm (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lpadmin.80000644000175000017500000002077214502571342014661 0ustar zdohnalzdohnal.\" .\" lpadmin man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lpadmin 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME lpadmin \- configure cups printers and classes .SH SYNOPSIS .B lpadmin [ .B \-E ] [ .B \-U .I username ] [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] .B \-d .I destination .br .B lpadmin [ .B \-E ] [ .B \-U .I username ] [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] .B \-p .I destination [ .B \-R .I name-default ] .I option(s) .br .B lpadmin [ .B \-E ] [ .B \-U .I username ] [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] .B \-x .I destination .SH DESCRIPTION \fBlpadmin\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. .LP The first form of the command (\fI-d\fR) sets the default printer or class to \fIdestination\fR. Subsequent print jobs submitted via the .BR lp (1) or .BR lpr (1) commands will use this destination unless the user specifies otherwise with the .BR lpoptions (1) command. .LP The second form of the command (\fI-p\fR) configures the named printer or class. The additional options are described below. .LP The third form of the command (\fI-x\fR) deletes the printer or class \fIdestination\fR. Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted. .SH OPTIONS The following options are recognized when configuring a printer queue: .TP 5 \fB\-c \fIclass\fR Adds the named \fIprinter\fR to \fIclass\fR. If \fIclass\fR does not exist it is created automatically. .TP 5 \fB\-m \fImodel\fR Sets a standard PPD file for the printer from the \fImodel\fR directory or using one of the driver interfaces. Use the \fI-m\fR option with the .BR lpinfo (8) command to get a list of supported models. The model "raw" clears any existing PPD file and the model "everywhere" queries the printer referred to by the specified IPP \fIdevice-uri\fR. Note: Models other than "everywhere" are deprecated and will not be supported in a future version of CUPS. .TP 5 \fB\-o cupsIPPSupplies=true\fR .TP 5 \fB\-o cupsIPPSupplies=false\fR Specifies whether IPP supply level values should be reported. .TP 5 \fB\-o cupsSNMPSupplies=true\fR .TP 5 \fB\-o cupsSNMPSupplies=false\fR Specifies whether SNMP supply level (RFC 3805) values should be reported. .TP 5 \fB\-o job\-k\-limit=\fIvalue\fR Sets the kilobyte limit for per-user quotas. The value is an integer number of kilobytes; one kilobyte is 1024 bytes. .TP 5 \fB\-o job\-page\-limit=\fIvalue\fR Sets the page limit for per-user quotas. The value is the integer number of pages that can be printed; double-sided pages are counted as two pages. .TP 5 \fB-o job\-quota\-period=\fIvalue\fR Sets the accounting period for per-user quotas. The value is an integer number of seconds; 86,400 seconds are in one day. .TP 5 \fB\-o job\-sheets\-default=\fIbanner\fR .TP 5 \fB\-o job\-sheets\-default=\fIbanner\fB,\fIbanner\fR Sets the default banner page(s) to use for print jobs. .TP 5 \fB\-o \fIname\fB=\fIvalue\fR Sets a PPD option for the printer. PPD options can be listed using the \fI-l\fR option with the .BR lpoptions (1) command. .TP 5 \fB\-o \fIname\fB-default=\fIvalue\fR Sets a default server-side option for the destination. Any print-time option can be defaulted, e.g., "-o number-up-default=2" to set the default "number-up" option value to 2. .TP 5 \fB\-o port\-monitor=\fIname\fR Sets the binary communications program to use when printing, "none", "bcp", or "tbcp". The default program is "none". The specified port monitor must be listed in the printer's PPD file. .TP 5 \fB\-o printer-error-policy=\fIname\fR Sets the policy for errors such as printers that cannot be found or accessed, don't support the format being printed, fail during submission of the print data, or cause one or more filters to crash. The name must be one of "abort-job" (abort the job on error), "retry-job" (retry the job at a future time), "retry-current-job" (retry the current job immediately), or "stop-printer" (stop the printer on error). The default error policy is "stop-printer" for printers and "retry-current-job" for classes. .TP 5 \fB\-o printer\-is\-shared=true\fR .TP 5 \fB\-o printer\-is\-shared=false\fR Sets the destination to shared/published or unshared/unpublished. Shared/published destinations are publicly announced by the server on the LAN based on the browsing configuration in \fIcupsd.conf\fR, while unshared/unpublished destinations are not announced. The default value is "true". .TP 5 \fB\-o printer-op-policy=\fIname\fR Sets the IPP operation policy associated with the destination. The name must be defined in the \fIcupsd.conf\fR in a Policy section. The default operation policy is "default". .TP 5 \fB\-R \fIname\fB\-default\fR Deletes the named option from \fIprinter\fR. .TP 5 \fB\-r \fIclass\fR Removes the named \fIprinter\fR from \fIclass\fR. If the resulting class becomes empty it is removed. .TP 5 \fB-u allow:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}* .TP 5 \fB-u deny:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}* .TP 5 \fB\-u allow:all\fR .TP 5 \fB\-u deny:none\fR Sets user-level access control on a destination. Names starting with "@" are interpreted as UNIX groups. The latter two forms turn user-level access control off. Note: The user 'root' is not granted special access - using "-u allow:foo,bar" will allow users 'foo' and 'bar' to access the printer but NOT 'root'. .TP 5 \fB\-v "\fIdevice-uri\fB"\fR Sets the \fIdevice-uri\fR attribute of the printer queue. Use the \fI-v\fR option with the .BR lpinfo (8) command to get a list of supported device URIs and schemes. .TP 5 \fB\-D "\fIinfo\fB"\fR Provides a textual description of the destination. .TP 5 .B \-E When specified before the \fB\-d\fR, \fB\-p\fR, or \fB\-x\fR options, forces the use of TLS encryption on the connection to the scheduler. Otherwise, enables the destination and accepts jobs; this is the same as running the .BR cupsaccept (8) and .BR cupsenable (8) programs on the destination. .TP 5 \fB\-L "\fIlocation\fB"\fR Provides a textual location of the destination. .SH DEPRECATED OPTIONS The following \fBlpadmin\fR options are deprecated: .TP 5 \fB\-i \fIfilename\fR This option historically has been used to provide either a System V interface script or (as an implementation side-effect) a PPD file. Note: Interface scripts are not supported by CUPS. PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS. .TP 5 \fB\-P \fIppd-file\fR Specifies a PostScript Printer Description (PPD) file to use with the printer. Note: PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS. .SH CONFORMING TO Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are \fInot\fR case-sensitive. .PP Finally, the CUPS version of \fBlpadmin\fR may ask the user for an access password depending on the printing system configuration. This differs from the System V version which requires the root user to execute this command. .SH NOTES CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .LP The CUPS version of \fBlpadmin\fR does not support all of the System V or Solaris printing system configuration options. .PP Interface scripts are not supported for security reasons. .PP The double meaning of the \fB\-E\fR option is an unfortunate historical oddity. .PP The \fBlpadmin\fR command communicates with the scheduler (\fBcupsd\fR) to make changes to the printing system configuration. This configuration information is stored in several files including \fIprinters.conf\fR and \fIclasses.conf\fR. These files should not be edited directly and are an implementation detail of CUPS that is subject to change at any time. .SH EXAMPLE Create an IPP Everywhere print queue: .nf lpadmin -p myprinter -E -v ipp://myprinter.local/ipp/print -m everywhere .fi .SH SEE ALSO .BR cupsaccept (8), .BR cupsenable (8), .BR lpinfo (8), .BR lpoptions (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/lp.10000644000175000017500000001344314502571342013636 0ustar zdohnalzdohnal.\" .\" lp man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH lp 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME lp \- print files .SH SYNOPSIS .B lp [ \fB\-h \fIhostname\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ .B \-c ] [ \fB\-d \fIdestination\fR[\fB/\fIinstance\fR] ] [ .B \-m ] [ .B \-n .I num-copies ] [ \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ] [ .B \-q .I priority ] [ .B \-s ] [ .B \-t .I title ] [ .B \-H .I handling ] [ .B \-P .I page-list ] [ .B \-\- ] [ .I file(s) ] .br .B lp [ \fB\-h \fIhostname\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ .B \-c ] [ .B \-i .I job-id ] [ .B \-n .I num-copies ] [ \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ] [ .B \-q .I priority ] [ .B \-t .I title ] [ .B \-H .I handling ] [ .B \-P .I page-list ] .SH DESCRIPTION \fBlp\fR submits files for printing or alters a pending job. Use a filename of "-" to force printing from the standard input. .SS THE DEFAULT DESTINATION CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first. If neither are set, the current default set using the .BR lpoptions (1) command is used, followed by the default set using the .BR lpadmin (8) command. .SH OPTIONS The following options are recognized by \fIlp\fR: .TP 5 .B \-\- Marks the end of options; use this to print a file whose name begins with a dash (\-). .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-U \fIusername\fR Specifies the username to use when connecting to the server. .TP 5 .B \-c This option is provided for backwards-compatibility only. On systems that support it, this option forces the print file to be copied to the spool directory before printing. In CUPS, print files are always sent to the scheduler via IPP which has the same effect. .TP 5 \fB\-d \fIdestination\fR Prints files to the named printer. .TP 5 \fB\-h \fIhostname\fR[\fB:\fIport\fR] Chooses an alternate server. Note: This option must occur before all others. .TP 5 \fB\-i \fIjob-id\fR Specifies an existing job to modify. .TP 5 .B \-m Sends an email when the job is completed. .TP 5 \fB\-n \fIcopies\fR Sets the number of copies to print. .TP 5 \fB\-o "\fIname\fB=\fIvalue \fR[ ... \fIname\fB=\fIvalue \fR]\fB"\fR Sets one or more job options. See "COMMON JOB OPTIONS" below. .TP 5 \fB\-q \fIpriority\fR Sets the job priority from 1 (lowest) to 100 (highest). The default priority is 50. .TP 5 .B \-s Do not report the resulting job IDs (silent mode.) .TP 5 \fB\-t "\fIname\fB"\fR Sets the job name. .TP 5 \fB\-H \fIhh:mm\fR .TP 5 \fB\-H hold\fR .TP 5 \fB-H immediate\fR .TP 5 \fB-H restart\fR .TP 5 \fB-H resume\fR Specifies when the job should be printed. A value of \fIimmediate\fR will print the file immediately, a value of \fIhold\fR will hold the job indefinitely, and a UTC time value (HH:MM) will hold the job until the specified UTC (not local) 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 \fB\-P \fIpage-list\fR Specifies which pages to print in the document. The list can contain a list of numbers and ranges (#-#) separated by commas, e.g., "1,3-5,16". The page numbers refer to the output pages and not the document's original pages - options like "number-up" can affect the numbering of the pages. .SS COMMON JOB OPTIONS Aside from the printer-specific options reported by the .BR lpoptions (1) command, the following generic options are available: .TP 5 \fB\-o job-sheets=\fIname\fR\fR Prints a cover page (banner) with the document. The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified". .TP 5 \fB\-o media=\fIsize\fR Sets the page size to \fIsize\fR. Most printers support at least the size names "a4", "letter", and "legal". .TP 5 \fB\-o number\-up=\fR{\fI2|4|6|9|16\fR} Prints 2, 4, 6, 9, or 16 document (input) pages on each output page. .TP 5 \fB\-o orientation\-requested=4\fR Prints the job in landscape (rotated 90 degrees counter-clockwise). .TP 5 \fB\-o orientation\-requested=5\fR Prints the job in landscape (rotated 90 degrees clockwise). .TP 5 \fB\-o orientation\-requested=6\fR Prints the job in reverse portrait (rotated 180 degrees). .TP 5 \fB\-o print\-quality=3\fR .TP 5 \fB\-o print\-quality=4\fR .TP 5 \fB\-o print\-quality=5\fR Specifies the output quality - draft (3), normal (4), or best (5). .TP 5 \fB\-o sides=one\-sided\fR Prints on one side of the paper. .TP 5 \fB\-o sides=two\-sided\-long\-edge\fR Prints on both sides of the paper for portrait output. .TP 5 \fB\-o sides=two\-sided\-short\-edge\fR Prints on both sides of the paper for landscape output. .SH CONFORMING TO Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are \fInot\fR case-sensitive. .LP The \fI-q\fR option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority). .SH EXAMPLES Print two copies of a document to the default printer: .nf lp -n 2 filename .fi Print a double-sided legal document to a printer called "foo": .nf lp -d foo -o media=legal -o sides=two-sided-long-edge filename .fi Print a presentation document 2-up to a printer called "bar": .nf lp -d bar -o number-up=2 filename .fi .SH SEE ALSO .BR cancel (1), .BR lpadmin (8), .BR lpoptions (1), .BR lpq (1), .BR lpr (1), .BR lprm (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ipptoolfile.50000644000175000017500000006301314502571342015553 0ustar zdohnalzdohnal.\" .\" ipptoolfile man page. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2010-2021 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ipptoolfile 5 "CUPS" "2021-09-20" "OpenPrinting" .SH NAME ipptoolfile \- ipptool file format .SH DESCRIPTION The .BR ipptool (1) program accepts free-form plain text files that describe one or more IPP requests. Comments start with the "#" character and continue to the end of the line. Each request is enclosed by curly braces, for example: .nf # This is a comment { # The name of the test NAME "Print PDF File" # The request to send OPERATION Print\-Job GROUP operation\-attributes\-tag ATTR charset attributes\-charset utf\-8 ATTR language attributes\-natural\-language en ATTR uri printer\-uri $uri ATTR name requesting\-user\-name $user ATTR mimeMediaType document\-format application/pdf GROUP job\-attributes\-tag ATTR collection media\-col { # US Letter plain paper from the "main" tray MEMBER collection media\-size { MEMBER integer x\-dimension 21590 MEMBER integer y\-dimension 27940 } MEMBER integer media\-top\-margin 423 MEMBER integer media\-bottom\-margin 423 MEMBER integer media\-left\-margin 423 MEMBER integer media\-right\-margin 423 MEMBER keyword media\-source "main" MEMBER keyword media\-type "stationery" } FILE testfile.pdf # The response to expect STATUS successful\-ok EXPECT job\-id OF\-TYPE integer WITH\-VALUE >0 EXPECT job\-uri OF\-TYPE uri } { # The name of the test NAME "Wait for Job to Complete" # The request to send OPERATION Get\-Job\-Attributes GROUP operation\-attributes\-tag ATTR charset attributes\-charset utf\-8 ATTR language attributes\-natural\-language en ATTR uri printer\-uri $uri ATTR integer job\-id $job\-id ATTR name requesting\-user\-name $user # The response to expect STATUS successful\-ok EXPECT job\-id OF\-TYPE integer WITH\-VALUE $job\-id EXPECT job\-uri OF\-TYPE uri EXPECT job\-state OF\-TYPE enum WITH\-VALUE >5 REPEAT\-NO\-MATCH EXPECT job\-originating\-user\-name OF\-TYPE name WITH\-VALUE "$user" # Show the job state until completed... DISPLAY job-state DISPLAY job-state-reasons } .fi .SS TOP-LEVEL DIRECTIVES The following directives can be used outside of a \fItest\fR: .TP 5 \fB{ \fItest \fB}\fR Defines a test. .TP 5 \fBDEFINE \fIvariable-name value\fR Defines the named variable to the given value. This is equivalent to specifying \fI\-d variable-name=value\fR on the .BR ipptool (8) command-line. .TP 5 \fBDEFINE\-DEFAULT \fIvariable-name value\fR Defines the named variable to the given value if it does not already have a value. .TP 5 \fBFILE\-ID "\fIidentifier\fB"\fR Specifies an identifier string for the current file. .TP 5 \fBIGNORE\-ERRORS yes\fR .TP 5 \fBIGNORE\-ERRORS no\fR Specifies whether, by default, .BR ipptool (8) will ignore errors and continue with subsequent tests. .TP 5 \fBINCLUDE "\fIfilename\fB"\fR .TP 5 \fBINCLUDE <\fIfilename\fB>\fR Includes another test file. The first form includes a file relative to the current test file, while the second form includes a file from the .BR ipptool (8) include directory. .TP 5 \fBINCLUDE\-IF\-DEFINED \fIname \fB"\fIfilename\fB"\fR .TP 5 \fBINCLUDE\-IF\-DEFINED \fIname \fB<\fIfilename\fB>\fR Includes another test file if the named variable is defined. The first form includes a file relative to the current test file, while the second form includes a file from the .BR ipptool (8) include directory. .TP 5 \fBINCLUDE\-IF\-NOT\-DEFINED \fIname \fB"\fIfilename\fB"\fR .TP 5 \fBINCLUDE\-IF\-NOT\-DEFINED \fIname \fB<\fIfilename\fB>\fR Includes another test file if the named variable is not defined. The first form includes a file relative to the current test file, while the second form includes a file from the .BR ipptool (8) include directory. .TP 5 \fBSKIP\-IF\-DEFINED \fIvariable-name\fR .TP 5 \fBSKIP\-IF\-NOT\-DEFINED \fIvariable-name\fR Specifies that the remainder of the test file should be skipped when the variable is or is not defined. .TP 5 \fBSTOP\-AFTER\-INCLUDE\-ERROR no\fR .TP 5 \fBSTOP\-AFTER\-INCLUDE\-ERROR yes\fR Specifies whether tests will be stopped after an error in an included file. .TP 5 \fBTRANSFER auto\fR Specifies that tests will, by default, use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files. .TP 5 \fBTRANSFER chunked\fR Specifies that tests will, by default, use the HTTP/1.1 "Transfer-Encoding: chunked" header. This is the default and is equivalent to specifying \fI\-c\fR on the .BR ipptool (8) command-line. Support for chunked requests is required for conformance with all versions of IPP. .TP 5 \fBTRANSFER length\fR Specifies that tests will, by default, use the HTTP/1.0 "Content-Length:" header. This is equivalent to specifying \fI\-l\fR on the .BR ipptool (8) command-line. Support for content length requests is required for conformance with all versions of IPP. .TP 5 \fBVERSION 1.0\fR .TP 5 \fBVERSION 1.1\fR .TP 5 \fBVERSION 2.0\fR .TP 5 \fBVERSION 2.1\fR .TP 5 \fBVERSION 2.2\fR Specifies the default IPP version number to use for the tests that follow. .SS TEST DIRECTIVES The following directives are understood within a \fItest\fR: .TP 5 \fBATTR \fIout-of-band-tag attribute-name\fR .TP 5 \fBATTR \fItag attribute-name value(s)\fR Adds an attribute to the test request. Out-of-band tags (admin-define, delete-attribute, no-value, not-settable, unknown, unsupported) have no value. Values for other tags are delimited by the comma (",") character - escape commas using the "\\" character. Common attributes and values are listed in the IANA IPP registry - see references below. .TP 5 \fBATTR collection \fIattribute-name \fB{ MEMBER \fItag member-name value(s) ... \fB}\fR [ \fI... \fB,{ \fI... \fB} \fR] Adds a collection attribute to the test request. Member attributes follow the same syntax as regular attributes and can themselves be nested collections. Multiple collection values can be supplied as needed, separated by commas. .TP 5 \fBCOMPRESSION deflate\fR .TP 5 \fBCOMPRESSION gzip\fR .TP 5 \fBCOMPRESSION none\fR Uses the specified compression on the document data following the attributes in a Print-Job or Send-Document request. .TP 5 \fBDELAY \fIseconds\fR[\fI,repeat-seconds\fR] Specifies a delay in seconds before this test will be run. If two values are specified, the second value is used as the delay between repeated tests. A default repeat interval of 5 seconds is used if this directive is not provided. .TP 5 \fBDISPLAY \fIattribute-name\fR Specifies that value of the named attribute should be output as part of the test report. .TP 5 \fBEXPECT \fIattribute-name \fR[ \fIpredicate(s) \fR] .TP 5 \fBEXPECT ?\fIattribute-name predicate(s)\fR .TP 5 \fBEXPECT !\fIattribute-name\fR Specifies that the response must/may/must not include the named attribute. Additional requirements can be added as predicates - see the "EXPECT PREDICATES" section for more information on predicates. Attribute names can specify member attributes by separating the attribute and member names with the forward slash, for example "media\-col/media\-size/x\-dimension". .TP 5 \fBEXPECT-ALL \fIattribute-name \fR[ \fIpredicate(s) \fR] .TP 5 \fBEXPECT-ALL ?\fIattribute-name predicate(s)\fR Specifies that the response must/may include the named attribute and that all occurrences of that attribute must match the given predicates. .TP 5 \fBFILE filename\fR Specifies a file to include at the end of the request. This is typically used when sending a test print file. .TP 5 \fBGROUP tag\fR Specifies the group tag for subsequent attributes in the request. .TP 5 \fBIGNORE\-ERRORS yes\fR .TP 5 \fBIGNORE\-ERRORS no\fR Specifies whether .BR ipptool (8) will ignore errors and continue with subsequent tests. .TP 5 \fBMONITOR-PRINTER-STATE \fR[ \fIprinter-uri \fR] \fB{ EXPECT \fIattribute-name \fR[ \fIpredicate(s) \fR] \fB}\fR Specifies printer state monitoring tests to run in parallel with the test operation. The monitoring tests will run until all of the \fBEXPECT\fR conditions are satisfied or the primary test operation has completed, whichever occurs first. .TP 5 \fBNAME "\fIliteral string\fB"\fR Specifies the human-readable name of the test. .TP 5 \fBOPERATION \fIoperation-code\fR Specifies the operation to be performed. .TP 5 \fBPASS\-IF\-DEFINED \fIvariable-name\fR .TP 5 \fBPASS\-IF\-NOT\-DEFINED \fIvariable-name\fR Specifies that the current test should be passed automatically when the variable is or is not defined. .TP 5 \fBPAUSE "\fImessage\fB"\fR Displays the provided message and waits for the user to press a key to continue. .TP 5 \fBREQUEST\-ID \fInumber\fR\fR .TP 5 \fBREQUEST\-ID random\fR Specifies the request-id value to use in the request, either an integer or the word "random" to use a randomly generated value (the default). .TP 5 \fBRESOURCE \fIpath\fR Specifies an alternate resource path that is used for the HTTP POST request. The default is the resource from the URI provided to the .BR ipptool (8) program. .TP 5 \fBSKIP\-IF\-DEFINED \fIvariable-name\fR .TP 5 \fBSKIP\-IF\-NOT\-DEFINED \fIvariable-name\fR Specifies that the current test should be skipped when the variable is or is not defined. .TP 5 \fBSKIP\-PREVIOUS\-ERROR yes\fR .TP 5 \fBSKIP\-PREVIOUS\-ERROR no\fR Specifies whether .BR ipptool (8) will skip the current test if the previous test resulted in an error/failure. .TP 5 \fBSTATUS \fIstatus-code \fR[ \fIpredicate\fR ] Specifies an expected response status-code value. Additional requirements can be added as predicates - see the "STATUS PREDICATES" section for more information on predicates. .TP 5 \fBTEST\-ID "\fIidentifier\fR" Specifies an identifier string for the current test. .TP 5 \fBTRANSFER auto\fR Specifies that this test will use "Transfer-Encoding: chunked" if it has an attached file or "Content-Length:" otherwise. .TP 5 \fBTRANSFER chunked\fR Specifies that this test will use the HTTP/1.1 "Transfer-Encoding: chunked" header. .TP 5 \fBTRANSFER length\fR Specifies that this test will use the HTTP/1.0 "Content-Length:" header. .TP 5 \fBVERSION 1.0\fR .TP 5 \fBVERSION 1.1\fR .TP 5 \fBVERSION 2.0\fR .TP 5 \fBVERSION 2.1\fR .TP 5 \fBVERSION 2.2\fR Specifies the IPP version number to use for this test. .SS EXPECT PREDICATES The following predicates are understood following the \fBEXPECT\fR test directive: .TP 5 \fBCOUNT \fInumber\fR Requires the \fBEXPECT\fR attribute to have the specified number of values. .TP 5 \fBDEFINE\-MATCH \fIvariable-name\fR Defines the variable to "1" when the \fBEXPECT\fR condition matches. A side-effect of this predicate is that this \fBEXPECT\fR will never fail a test. .TP 5 \fBDEFINE\-NO\-MATCH \fIvariable-name\fR Defines the variable to "1" when the \fBEXPECT\fR condition does not match. A side-effect of this predicate is that this \fBEXPECT\fR will never fail a test. .TP 5 \fBDEFINE\-VALUE \fIvariable-name\fR Defines the variable to the value of the attribute when the \fBEXPECT\fR condition matches. A side-effect of this predicate is that this \fBEXPECT\fR will never fail a test. .TP 5 \fBDISPLAY\-MATCH \fI"message"\fR Displays the specified message when the \fBEXPECT\fR condition matches. .TP 5 \fBIF\-DEFINED \fIvariable-name\fR Makes the \fBEXPECT\fR conditions apply only if the specified variable is defined. .TP 5 \fBIF\-NOT\-DEFINED \fIvariable-name\fR Makes the \fBEXPECT\fR conditions apply only if the specified variable is not defined. .TP 5 \fBIN\-GROUP \fItag\fR Requires the \fBEXPECT\fR attribute to be in the specified group tag. .TP 5 \fBOF\-TYPE \fItag[(limits)|tag|...]\fR Requires the \fBEXPECT\fR attribute to use one of the specified value tag(s). Most value tags also support the specification of limits in parenthesis, for example "name(42)" would allow nameWith/WithoutLanguage strings up to 42 octets in length, "name(4:MAX)" would allow nameWith/WithoutLanguage strings between 4 and 255 octets in length, and "integer(-273:MAX)" would allow integers between -273 and 2147483647. .TP 5 \fBREPEAT\-LIMIT \fInumber\fR .br Specifies the maximum number of times to repeat if the \fBREPEAT-MATCH\fR or \fBREPEAT-NO-MATCH\fR predicate is specified. The default value is 1000. .TP 5 \fBREPEAT\-MATCH\fR .TP 5 \fBREPEAT\-NO\-MATCH\fR Specifies that the current test should be repeated when the \fBEXPECT\fR condition matches or does not match. .TP 5 \fBSAME\-COUNT\-AS \fIattribute-name\fR Requires the \fBEXPECT\fR attribute to have the same number of values as the specified parallel attribute. .TP 5 \fBWITH\-ALL\-HOSTNAMES "\fIliteral string\fB"\fR .TP 5 \fBWITH\-ALL\-HOSTNAMES "/\fIregular expression\fB/"\fR Requires that all URI values contain a matching hostname. .TP 5 \fBWITH\-ALL\-RESOURCES "\fIliteral string\fB"\fR .TP 5 \fBWITH\-ALL\-RESOURCES "/\fIregular expression\fB/"\fR Requires that all URI values contain a matching resource (including leading /). .TP 5 \fBWITH\-ALL\-SCHEMES "\fIliteral string\fB"\fR .TP 5 \fBWITH\-ALL-SCHEMES "/\fIregular expression\fB/"\fR Requires that all URI values contain a matching scheme. .TP 5 \fBWITH\-ALL\-VALUES "\fIliteral string\fB"\fR Requires that all values of the \fBEXPECT\fR attribute match the literal string. Comparisons are case-sensitive. .TP 5 \fBWITH\-ALL\-VALUES <\fInumber\fR .TP 5 \fBWITH\-ALL\-VALUES =\fInumber\fR .TP 5 \fBWITH\-ALL\-VALUES >\fInumber\fR .TP 5 \fBWITH\-ALL\-VALUES \fInumber\fR[\fI,...,number\fR] Requires that all values of the \fBEXPECT\fR attribute match the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range. .TP 5 \fBWITH\-ALL\-VALUES "false"\fR .TP 5 \fBWITH\-ALL\-VALUES "true"\fR Requires that all values of the \fBEXPECT\fR attribute match the boolean value given. .TP 5 \fBWITH\-ALL\-VALUES "/\fIregular expression\fB/"\fR Requires that all values of the \fBEXPECT\fR attribute match the regular expression, which must conform to the POSIX regular expression syntax. Comparisons are case-sensitive. .TP 5 \fBWITH\-DISTINCT\-VALUES\fR Requires that all values of the \fBEXPECT\fR attribute are unique. Comparisons are case-sensitive. Only charset, collection, enum, integer, keyword, mimeMediaType, naturalLanguage, rangeOfInteger, resolution, uriScheme attributes support this predicate. .TP 5 \fBWITH\-HOSTNAME "\fIliteral string\fB"\fR .TP 5 \fBWITH\-HOSTNAME "/\fIregular expression\fB/"\fR Requires that at least one URI value contains a matching hostname. .TP 5 \fBWITH\-RESOURCE "\fIliteral string\fB"\fR .TP 5 \fBWITH\-RESOURCE "/\fIregular expression\fB/"\fR Requires that at least one URI value contains a matching resource (including leading /). .TP 5 \fBWITH\-SCHEME "\fIliteral string\fB"\fR .TP 5 \fBWITH\-SCHEME "/\fIregular expression\fB/"\fR Requires that at least one URI value contains a matching scheme. .TP 5 \fBWITH\-VALUE "\fIliteral string\fB"\fR Requires that at least one value of the \fBEXPECT\fR attribute matches the literal string. Comparisons are case-sensitive. .TP 5 \fBWITH\-VALUE <\fInumber\fR .TP 5 \fBWITH\-VALUE =\fInumber\fR .TP 5 \fBWITH\-VALUE >\fInumber\fR .TP 5 \fBWITH\-VALUE \fInumber\fR[\fI,...,number\fR] Requires that at least one value of the \fBEXPECT\fR attribute matches the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range. .TP 5 \fBWITH\-VALUE "false"\fR .TP 5 \fBWITH\-VALUE "true"\fR Requires that at least one value of the \fBEXPECT\fR attribute matches the boolean value given. .TP 5 \fBWITH\-VALUE "/\fIregular expression\fB/"\fR Requires that at least one value of the \fBEXPECT\fR attribute matches the regular expression, which must conform to the POSIX regular expression syntax. Comparisons are case-sensitive. .TP 5 \fBWITH\-VALUE\-FROM \fIattribute-name\fR Requires that the value(s) of the \fBEXPECT\fR attribute matches the value(s) in the specified attribute. For example, "EXPECT job\-sheets WITH\-VALUE\-FROM job\-sheets\-supported" requires that the "job\-sheets" value is listed as a value of the "job\-sheets\-supported" attribute. .SS STATUS PREDICATES The following predicates are understood following the \fBSTATUS\fR test directive: .TP 5 \fBDEFINE\-MATCH \fIvariable-name\fR Defines the variable to "1" when the \fBSTATUS\fR matches. A side-effect of this predicate is that this \fBSTATUS\fR will never fail a test. .TP 5 \fBDEFINE\-NO\-MATCH \fIvariable-name\fR Defines the variable to "1" when the \fBSTATUS\fR does not match. A side-effect of this predicate is that this \fBSTATUS\fR will never fail a test. .TP 5 \fBIF\-DEFINED \fIvariable-name\fR Makes the \fBSTATUS\fR apply only if the specified variable is defined. .TP 5 \fBIF\-NOT\-DEFINED \fIvariable-name\fR Makes the \fBSTATUS\fR apply only if the specified variable is not defined. .TP 5 \fBREPEAT\-LIMIT \fInumber\fR .br Specifies the maximum number of times to repeat. The default value is 1000. .TP 5 \fBREPEAT\-MATCH\fR .TP 5 \fBREPEAT\-NO\-MATCH\fR Specifies that the current test should be repeated when the response status-code matches or does not match the value specified by the STATUS directive. .SS OPERATION CODES Operation codes correspond to the hexadecimal numbers (0xHHHH) and names from RFC 8011 and other IPP extension specifications. Here is a complete list of names supported by .BR ipptool (8): .nf Acknowledge\-Document Acknowledge\-Identify\-Printer Acknowledge\-Job Activate\-Printer Add\-Document\-Images Allocate\-Printer\-Resources Cancel\-Current\-Job Cancel\-Job Cancel\-Jobs Cancel\-My\-Jobs Cancel\-Resource Cancel\-Subscription Close\-Job Create\-Job Create\-Job\-Subscriptions Create\-Printer Create\-Printer\-Subscriptions Create\-Resource Create\-Resource\-Subscriptions Create\-System\-Subscriptions CUPS\-Accept\-Jobs CUPS\-Accept\-Jobs CUPS\-Add\-Modify\-Class CUPS\-Add\-Modify\-Printer CUPS\-Authenticate\-Job CUPS\-Create\-Local\-Printer CUPS\-Delete\-Class CUPS\-Delete\-Printer CUPS\-Get\-Classes CUPS\-Get\-Default CUPS\-Get\-Devices CUPS\-Get\-Document CUPS\-Get\-PPD CUPS\-Get\-PPDs CUPS\-Get\-Printers CUPS\-Move\-Job CUPS\-Reject\-Jobs CUPS\-Set\-Default Deactivate\-Printer Deallocate\-Printer\-Resources Delete\-Printer Deregister\-Output\-Device Disable\-All\-Printers Disable\-Printer Enable\-All\-Printers Enable\-Printer Fetch\-Document Fetch\-Job Get\-Job\-Attributes Get\-Jobs Get\-Next\-Document\-Data Get\-Notifications Get\-Output\-Device\-Attributes Get\-Printer\-Attributes Get\-Printer\-Support\-Files Get\-Printer\-Supported\-Values Get\-Printers Get\-Subscription\-Attributes Get\-Subscriptions Get\-System\-Attributes Get\-System\-Supported\-Values Hold\-Job Hold\-New\-Jobs Identify\-Printer Install\-Resource Pause\-All\-Printers Pause\-All\-Printers\-After\-Current\-Job Pause\-Printer Pause\-Printer\-After\-Current\-Job Print\-Job Print\-URI Promote\-Job Purge\-Jobs Register\-Output\-Device Release\-Held\-New\-Jobs Release\-Job Renew\-Subscription Reprocess\-Job Restart\-Job Restart\-Printer Restart\-System Resubmit\-Job Resume\-All\-Printers Resume\-Job Resume\-Printer Schedule\-Job\-After Send\-Document Send\-Hardcopy\-Document Send\-Notifications Send\-Resource\-Data Send\-URI Set\-Job\-Attributes Set\-Printer\-Attributes Set\-Resource\-Attributes Set\-System\-Attributes Shutdown\-All\-Printers Shutdown\-One\-Printer Shutdown\-Printer Startup\-All\-Printers Startup\-One\-Printer Startup\-Printer Suspend\-Current\-Job Update\-Active\-Jobs Update\-Document\-Status Update\-Job\-Status Update\-Output\-Device\-Attributes Validate\-Document Validate\-Job .fi .SS STATUS CODES Status codes correspond to the hexadecimal numbers (0xHHHH) and names from RFC 8011 and other IPP extension specifications. Here is a complete list of the names supported by .BR ipptool (8): .nf client\-error\-account\-authorization\-failed client\-error\-account\-closed client\-error\-account\-info\-needed client\-error\-account\-limit\-reached client\-error\-attributes\-not\-settable client\-error\-attributes\-or\-values\-not\-supported client\-error\-bad\-request client\-error\-charset\-not\-supported client\-error\-compression\-error client\-error\-compression\-not\-supported client\-error\-conflicting\-attributes client\-error\-document\-access\-error client\-error\-document\-format\-error client\-error\-document\-format\-not\-supported client\-error\-document\-password\-error client\-error\-document\-permission\-error client\-error\-document\-security\-error client\-error\-document\-unprintable\-error client\-error\-forbidden client\-error\-gone client\-error\-ignored\-all\-notifications client\-error\-ignored\-all\-subscriptions client\-error\-not\-authenticated client\-error\-not\-authorized client\-error\-not\-fetchable client\-error\-not\-found client\-error\-not\-possible client\-error\-print\-support\-file\-not\-found client\-error\-request\-entity\-too\-large client\-error\-request\-value\-too\-long client\-error\-timeout client\-error\-too\-many\-subscriptions client\-error\-uri\-scheme\-not\-supported cups\-error\-account\-authorization\-failed cups\-error\-account\-closed cups\-error\-account\-info\-needed cups\-error\-account\-limit\-reached cups\-see\-other redirection\-other\-site server\-error\-busy server\-error\-device\-error server\-error\-internal\-error server\-error\-job\-canceled server\-error\-multiple\-document\-jobs\-not\-supported server\-error\-not\-accepting\-jobs server\-error\-operation\-not\-supported server\-error\-printer\-is\-deactivated server\-error\-service\-unavailable server\-error\-temporary\-error server\-error\-version\-not\-supported successful\-ok successful\-ok\-but\-cancel\-subscription successful\-ok\-conflicting\-attributes successful\-ok\-events\-complete successful\-ok\-ignored\-notifications successful\-ok\-ignored\-or\-substituted\-attributes successful\-ok\-ignored\-subscriptions successful\-ok\-too\-many\-events .fi .SS TAGS Value and group tags correspond to the names from RFC 8011 and other IPP extension specifications. Here are the group tags: .nf document\-attributes\-tag event\-notification\-attributes\-tag job | job\-attributes\-tag operation | operation\-attributes\-tag printer | printer\-attributes\-tag resource\-attributes\-tag subscription\-attributes\-tag system\-attributes\-tag unsupported\-attributes\-tag .fi .LP Here are the value tags: .nf admin\-define boolean charset collection | begCollection dateTime default delete\-attribute enum integer keyword language | naturalLanguage mimetype | mimeMediaType name | nameWithLanguage | nameWithoutLanguage no\-value not\-settable octetString rangeOfInteger resolution text | textWithLanguage | textWithoutLanguage unknown unsupported uri uriScheme .fi .SS VARIABLES The .BR ipptool (8) program maintains a list of variables that can be used in any literal string or attribute value by specifying "\fI$variable-name\fR". Aside from variables defined using the \fI-d\fR option or \fBDEFINE\fR directive, the following pre-defined variables are available: .TP 5 \fB$$\fR Inserts a single "$" character. .TP 5 \fB$ENV[\fIname\fB]\fR Inserts the value of the named environment variable, or an empty string if the environment variable is not defined. .TP 5 \fB$date-current\fR Inserts the current date and time using the ISO-8601 format ("yyyy-mm-ddThh:mm:ssZ"). .TP 5 \fB$date-start\fR Inserts the starting date and time using the ISO-8601 format ("yyyy-mm-ddThh:mm:ssZ"). .TP 5 \fB$filename\fR Inserts the filename provided to .BR ipptool (8) with the \fI-f\fR option. .TP 5 \fB$filetype\fR Inserts the MIME media type for the filename provided to .BR ipptool (8) with the \fI-f\fR option. .TP 5 \fB$hostname\fR Inserts the hostname from the URI provided to .BR ipptool (8). .TP 5 \fB$job\-id\fR Inserts the last "job\-id" attribute value returned in a test response or 0 if no "job\-id" attribute has been seen. .TP 5 \fB$job\-uri\fR Inserts the last "job\-uri" attribute value returned in a test response or an empty string if no "job\-uri" attribute has been seen. .TP 5 \fB$notify\-subscription\-id\fR Inserts the last "notify\-subscription\-id" attribute value returned in a test response or 0 if no "notify\-subscription\-id" attribute has been seen. .TP 5 \fB$port\fR Inserts the port number from the URI provided to .BR ipptool (8). .TP 5 \fB$resource\fR Inserts the resource path from the URI provided to .BR ipptool (8). .TP 5 \fB$scheme\fR Inserts the scheme from the URI provided to .BR ipptool (8). .TP 5 \fB$uri\fR Inserts the URI provided to .BR ipptool (8). .TP 5 \fB$uriuser\fR Inserts the username from the URI provided to .BR ipptool (8), if any. .TP 5 \fB$user\fR Inserts the current user's login name. .SH SEE ALSO .BR ipptool (1), IANA IPP Registry (https://www.iana.org/assignments/ipp-registrations), PWG Internet Printing Protocol Workgroup (https://www.pwg.org/ipp), RFC 8011 (https://datatracker.ietf.org/doc/html/rfc8011) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ipptool.10000644000175000017500000001376614502571342014721 0ustar zdohnalzdohnal.\" .\" ipptool man page. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2010-2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ipptool 1 "CUPS" "2021-10-20" "OpenPrinting" .SH NAME ipptool \- perform internet printing protocol requests .SH SYNOPSIS .B ipptool [ .B \-\-help ] [ .B \-\-ippserver .I filename ] [ .B \-\-stop\-after\-include\-error ] [ .B \-\-version ] [ .B \-4 ] [ .B \-6 ] [ .B \-C ] [ .B \-E ] [ .B \-I ] [ .B \-L ] [ .B \-P .I filename.plist ] [ .B \-S ] [ .B \-T .I seconds ] [ .B \-V .I version ] [ .B \-X ] [ .B \-c ] [ .B \-d .I name=value ] [ .B \-f .I filename ] [ .B \-h ] [ .B \-i .I seconds ] [ .B \-j ] [ .B \-n .I repeat-count ] [ .B \-q ] [ .B \-t ] [ .B \-v ] .I printer-uri .I testfile [ ... .I testfile ] .SH DESCRIPTION .B ipptool sends IPP requests to the specified .I printer-uri and tests and/or displays the results. Each named .I testfile defines one or more requests, including the expected response status, attributes, and values. Output is either a plain text, formatted text, CSV, or XML report on the standard output, with a non-zero exit status indicating that one or more tests have failed. The .I testfile format is described in .BR ipptoolfile (5). .SH OPTIONS The following options are recognized by .B ipptool: .TP 5 .B \-\-help Shows program help. .TP 5 \fB\-\-ippserver \fIfilename\fR Specifies that the test results should be written to the named .B ippserver attributes file. .TP 5 .B \-\-stop-after-include-error Tells .B ipptool to stop if an error occurs in an included file. Normally .B ipptool will continue with subsequent tests after the INCLUDE directive. .TP 5 .B \-\-version Shows the version of .B ipptool being used. .TP 5 .B \-4 Specifies that .B ipptool must connect to the printer or server using IPv4. .TP 5 .B \-6 Specifies that .B ipptool must connect to the printer or server using IPv6. .TP 5 .B \-C Specifies that requests should be sent using the HTTP/1.1 "Transfer\-Encoding: chunked" header, which is required for conformance by all versions of IPP. The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files. .TP 5 .B \-E Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header. .TP 5 .B \-I Specifies that .B ipptool will continue past errors. .TP 5 .B \-L Specifies that requests should be sent using the HTTP/1.0 "Content\-Length:" header, which is required for conformance by all versions of IPP. The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files. .TP 5 .BI \-P \ filename.plist Specifies that the test results should be written to the named XML (Apple plist) file in addition to the regular test report (\fB\-t\fR). This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options. .TP 5 .B \-S Forces (dedicated) TLS encryption when connecting to the server. .TP 5 .BI \-T \ seconds Specifies a timeout for IPP requests in seconds. .TP 5 .BI \-V \ version Specifies the default IPP version to use: 1.0, 1.1, 2.0, 2.1, or 2.2. If not specified, version 1.1 is used. .TP 5 .B \-X Specifies that XML (Apple plist) output is desired instead of the plain text report. This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options. .TP 5 .B \-c Specifies that CSV (comma\-separated values) output is desired instead of the plain text output. .TP 5 .BI \-d \ name=value Defines the named variable. .TP 5 .BI \-f \ filename Defines the default request filename for tests. .TP 5 .B \-h Validate HTTP response headers. .TP 5 .BI \-i \ seconds Specifies that the (last) .I testfile should be repeated at the specified interval. This option is incompatible with the \fB\-X\fR (XML plist output) option. .TP 5 .B \-j Specifies that .B ipptool will produce JSON output. .TP 5 .B \-l Specifies that plain text output is desired. .TP 5 .BI \-n \ repeat\-count Specifies that the (last) .I testfile should be repeated the specified number of times. This option is incompatible with the \fI\-X\fR (XML plist output) option. .TP 5 .B \-q Be quiet and produce no output. .TP 5 .B \-t Specifies that CUPS test report output is desired instead of the plain text output. .TP 5 .B \-v Specifies that all request and response attributes should be output in CUPS test mode (\fB\-t\fR). This is the default for XML output. .SH EXIT STATUS The .B ipptool program returns 0 if all tests were successful and 1 otherwise. .SH FILES The following standard files are available: .nf color.jpg create\-printer\-subscription.test document\-a4.pdf document\-a4.ps document\-letter.pdf document\-letter.ps get\-completed\-jobs.test get\-jobs.test get\-notifications.test get\-printer\-attributes.test get\-subscriptions.test gray.jpg ipp\-1.1.test ipp\-2.0.test ipp\-2.1.test ipp\-2.2.test ipp\-everywhere.test onepage\-a4.pdf onepage\-a4.ps onepage\-letter.pdf onepage\-letter.ps print\-job.test print\-job\-deflate.test print\-job\-gzip.test testfile.jpg testfile.pcl testfile.pdf testfile.ps testfile.txt validate\-job.test .fi .SH CONFORMING TO The .B ipptool program is unique to CUPS and conforms to the Internet Printing Protocol up to version 2.2. .SH EXAMPLES Get a list of completed jobs for "myprinter": .nf ipptool ipp://localhost/printers/myprinter get\-completed\-jobs.test .fi .LP Send email notifications to "user@example.com" when "myprinter" changes: .nf ipptool \-d recipient=mailto:user@example.com \\ ipp://localhost/printers/myprinter create\-printer\-subscription.test .fi .SH SEE ALSO .BR ipptoolfile (5), IANA IPP Registry (https://www.iana.org/assignments/ipp\-registrations), PWG Internet Printing Protocol Workgroup (https://www.pwg.org/ipp) RFC 8011 (https://datatracker.ietf.org/doc/html/rfc8011), .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ippfind.10000644000175000017500000001567114502571342014661 0ustar zdohnalzdohnal.\" .\" ippfind man page. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2013-2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ippfind 1 "ippsample" "2021-02-28" "OpenPrinting" .SH NAME ippfind \- find internet printing protocol printers .SH SYNOPSIS .B ippfind [ .I options ] \fIregtype\fR[\fB,\fIsubtype\fR][\fB.\fIdomain\fB.\fR] ... [ .I expression ... ] .br .B ippfind [ .I options ] \fIname\fR[\fB.\fIregtype\fR[\fB.\fIdomain\fB.\fR]] ... [ .I expression ... ] .br .B ippfind .B \-\-help .br .B ippfind .B \-\-version .SH DESCRIPTION \fBippfind\fR finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands. .SS REGISTRATION TYPES \fBippfind\fR supports the following registration types: .TP 5 _http._tcp HyperText Transport Protocol (HTTP, RFC 2616) .TP 5 _https._tcp Secure HyperText Transport Protocol (HTTPS, RFC 2818) .TP 5 _ipp._tcp Internet Printing Protocol (IPP, RFC 2911) .TP 5 _ipps._tcp Secure Internet Printing Protocol (IPPS, draft) .TP 5 _printer._tcp Line Printer Daemon (LPD, RFC 1179) .SS EXPRESSIONS \fBippfind\fR supports expressions much like the .BR find (1) utility. However, unlike .BR find (1), \fBippfind\fR uses POSIX regular expressions instead of shell filename matching patterns. If \fI\-\-exec\fR, \fI\-l\fR, \fI\-\-ls\fR, \fI\-p\fR, \fI\-\-print\fR, \fI\-\-print\-name\fR, \fI\-q\fR, \fI\-\-quiet\fR, \fI\-s\fR, or \fI\-x\fR is not specified, \fBippfind\fR adds \fI\-\-print\fR to print the service URI of anything it finds. The following expressions are supported: .TP 5 \fB\-d \fIregex\fR .TP 5 \fB\-\-domain \fIregex\fR True if the domain matches the given regular expression. .TP 5 .B \-\-false Always false. .TP 5 \fB\-h \fIregex\fR .TP 5 \fB\-\-host \fIregex\fR True is the hostname matches the given regular expression. .TP 5 .B \-l .TP 5 .B \-\-ls Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional \fIfind\fR "-ls" output for HTTP URLs. The result is true if the URI is accessible, false otherwise. .TP 5 .B \-\-local True if the service is local to this computer. .TP 5 \fB\-N \fIname\fR .TP 5 \fB\-\-literal\-name \fIname\fR True if the service instance name matches the given name. .TP 5 \fB\-n \fIregex\fR .TP 5 \fB\-\-name \fIregex\fR True if the service instance name matches the given regular expression. .TP 5 \fB\-\-path \fIregex\fR True if the URI resource path matches the given regular expression. .TP 5 \fB\-P \fInumber\fR[\fB-\fInumber\fR] .TP 5 \fB\-\-port \fInumber\fR[\fB-\fInumber\fR] True if the port matches the given number or range. .TP 5 .B \-p .TP 5 .B \-\-print Prints the URI if the result of previous expressions is true. The result is always true. .TP 5 .B \-q .TP 5 .B \-\-quiet Quiet mode - just returns the exit codes below. .TP 5 .B \-r .TP 5 .B \-\-remote True if the service is not local to this computer. .TP 5 .B \-s .TP 5 .B \-\-print\-name Prints the service instance name if the result of previous expressions is true. The result is always true. .TP 5 .B \-\-true Always true. .TP 5 \fB\-t \fIkey\fR .TP 5 \fB\-\-txt \fIkey\fR True if the TXT record contains the named key. .TP 5 \fB\-\-txt\-\fIkey regex\fR True if the TXT record contains the named key and matches the given regular expression. .TP 5 \fB\-u \fIregex\fR .TP 5 \fB\-\-uri \fIregex\fR True if the URI matches the given regular expression. .TP 5 \fB\-x \fIutility \fR[ \fIargument \fR... ] \fB;\fR .TP 5 \fB\-\-exec \fIutility \fR[ \fIargument \fR... ] \fB;\fR Executes the specified program if the current result is true. "{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below. .PP Expressions may also contain modifiers: .TP 5 \fB( \fIexpression \fB)\fR Group the result of expressions. .TP 5 \fB! \fIexpression\fR .TP 5 \fB\-\-not \fIexpression\fR Unary NOT of the expression. .TP 5 \fIexpression expression\fR .TP 5 \fIexpression \fB\-\-and \fIexpression\fR Logical AND of expressions. .TP 5 \fIexpression \fB\-\-or \fIexpression\fR Logical OR of expressions. .SS SUBSTITUTIONS The substitutions for "{foo}" in \fI\-e\fR and \fI\-\-exec\fR are: .TP 5 .B {service_domain} Domain name, e.g., "example.com.", "local.", etc. .TP 5 .B {service_hostname} Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc. .TP 5 .B {service_name} Service instance name, e.g., "My Fine Printer". .TP 5 .B {service_port} Port number for server, typically 631 for IPP and 80 for HTTP. .TP 5 .B {service_regtype} DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc. .TP 5 .B {service_scheme} URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc. .TP 5 .B {} .TP 5 .B {service_uri} URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc. .TP 5 \fB{txt_\fIkey\fB}\fR Value of TXT record \fIkey\fR (lowercase). .SH OPTIONS \fBippfind\fR supports the following options: .TP 5 .B \-\-help Show program help. .TP 5 .B \-\-version Show program version. .TP 5 .B \-4 Use IPv4 when listing. .TP 5 .B \-6 Use IPv6 when listing. .TP 5 \fB\-T \fIseconds\fR Specify find timeout in seconds. If 1 or less, \fBippfind\fR stops as soon as it thinks it has found everything. The default timeout is 1 second. .TP 5 \fB\-V \fIversion\fR Specifies the IPP version when listing. Supported values are "1.1", "2.0", "2.1", and "2.2". .SH EXIT STATUS \fBippfind\fR returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory. .SH ENVIRONMENT When executing a program, \fBippfind\fR sets the following environment variables for the matching service registration: .TP 5 .B IPPFIND_SERVICE_DOMAIN Domain name, e.g., "example.com.", "local.", etc. .TP 5 .B IPPFIND_SERVICE_HOSTNAME Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc. .TP 5 .B IPPFIND_SERVICE_NAME Service instance name, e.g., "My Fine Printer". .TP 5 .B IPPFIND_SERVICE_PORT Port number for server, typically 631 for IPP and 80 for HTTP. .TP 5 .B IPPFIND_SERVICE_REGTYPE DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc. .TP 5 .B IPPFIND_SERVICE_SCHEME URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc. .TP 5 .B IPPFIND_SERVICE_URI URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc. .TP 5 .B IPPFIND_TXT_\fIKEY\fR Values of TXT record \fIKEY\fR (uppercase). .SH EXAMPLES To show the status of all registered IPP printers on your network, run: .nf ippfind \-\-ls .fi Similarly, to send a PostScript test page to every PostScript printer, run: .nf ippfind \-\-txt\-pdl application/postscript \-\-exec ipptool \-f onepage\-letter.ps '{}' print\-job.test \\; .fi .SH SEE ALSO .BR ipptool (1) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ippeveprinter.10000644000175000017500000002022314502571342016111 0ustar zdohnalzdohnal.\" .\" ippeveprinter man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2014-2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ippeveprinter 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ippeveprinter \- an ipp everywhere printer application for cups .SH SYNOPSIS .B ippeveprinter [ .B \-\-help ] [ .B \-\-no\-web\-forms ] [ .B \-\-pam\-service .I service ] [ .B \-\-version ] [ .B \-2 ] [ .B \-A ] [ .B \-D .I device-uri ] [ .B \-F .I output-type/subtype ] [ .B \-K .I keypath ] [ .B \-M .I manufacturer ] [ .B \-P .I filename.ppd ] [ .B \-V .I ipp-version ] [ .B \-a .I filename.conf ] [ .B \-c .I command ] [ .B \-d .I spool-directory ] [ .B \-f .I type/subtype[,...] ] [ .B \-i .I iconfile.png ] [ .B \-k ] [ .B \-l .I location ] [ .B \-m .I model ] [ .B \-n .I hostname ] [ .B \-p .I port ] [ .B \-r .I subtype[,subtype] ] [ .B \-s .I speed[,color-speed] ] [ .B \-v[vvv] ] .I service-name .SH DESCRIPTION .B ippeveprinter is a simple Internet Printing Protocol (IPP) server conforming to the IPP Everywhere (PWG 5100.14) specification. It can be used to test client software or act as a very basic print server that runs a command for every job that is printed. .SH OPTIONS The following options are recognized by .B ippeveprinter: .TP 5 .B \-\-help Show program usage. .TP 5 .B \-\-no\-web\-forms Disable the web interface forms used to update the media and supply levels. .TP 5 \fB\-\-pam\-service \fIservice\fR Set the PAM service name. The default service is "cups". .TP 5 .B \-\-version Show the CUPS version. .TP 5 .B \-2 Report support for two-sided (duplex) printing. .TP 5 .B \-A Enable authentication for the created printer. .B ippeveprinter uses PAM to authenticate HTTP Basic credentials. .TP 5 \fB\-D \fIdevice-uri\fR Set the device URI for print output. The URI can be a filename, directory, or a network socket URI of the form "socket://ADDRESS[:PORT]" (where the default port number is 9100). When specifying a directory, .B ippeveprinter will create an output file using the job ID and name. .TP 5 \fB\-F \fIoutput-type/subtype[,...]\fR Specifies the output MIME media type. The default is "application/postscript" when the \fB\-P\fR option is specified. .TP 5 \fB\-M \fImanufacturer\fR Set the manufacturer of the printer. The default is "Example". .TP 5 \fB\-P \fIfilename.ppd\fR Load printer attributes from the specified PPD file. This option is typically used in conjunction with the .BR ippeveps (7) printer command ("\-c ippeveps"). .TP 5 \fB\-V 1.1\fR .TP 5 \fB\-V 2.0\fR Specifies the maximum IPP version to report. 2.0 is the default. .TP 5 \fB\-c \fIcommand\fR Run the specified command for each document that is printed. If "command" is not an absolute path ("/path/to/command"), .B ippeveprinter looks for the command in the "command" subdirectory of the CUPS binary directory, typically /usr/lib/cups/command or /usr/libexec/cups/command. The .BR cups-config (1) command can be used to discover the correct binary directory ("cups-config --serverbin"). In addition, the CUPS_SERVERBIN environment variable can be used to override the default location of this directory - see the .BR cups (1) man page for more details. .TP 5 \fB\-d \fIspool-directory\fR Specifies the directory that will hold the print files. The default is a directory under the user's current temporary directory. .TP 5 \fB\-f \fItype/subtype[,...]\fR Specifies a list of MIME media types that the server will accept. The default depends on the type of printer created. .TP 5 \fB\-i \fIiconfile.png\fR Specifies the printer icon file for the server. The file must be a PNG format image. The default is an internally-provided PNG image. .TP 5 .B \-k Keeps the print documents in the spool directory rather than deleting them. .TP 5 \fB\-l \fIlocation\fR Specifies the human-readable location string that is reported by the server. The default is the empty string. .TP 5 \fB\-m \fImodel\fR Specifies the model name of the printer. The default is "Printer". .TP 5 \fB\-n \fIhostname\fR Specifies the hostname that is reported by the server. The default is the name returned by the .BR hostname (1) command. .TP 5 \fB\-p \fIport\fR Specifies the port number to listen on. The default is a user-specific number from 8000 to 8999. .TP 5 .B \-r off Turns off DNS-SD service advertisements entirely. .TP 5 \fB\-r \fIsubtype[,subtype]\fR Specifies the DNS-SD subtype(s) to advertise. Separate multiple subtypes with a comma. The default is "_print". .TP 5 \fB\-s \fIspeed[,color-speed]\fR Specifies the printer speed in pages per minute. If two numbers are specified and the second number is greater than zero, the server will report support for color printing. The default is "10,0". .TP 5 .B \-v[vvv] Be (very) verbose when logging activity to standard error. .SH EXIT STATUS The .B ippeveprinter program returns 1 if it is unable to process the command-line arguments or register the IPP service. Otherwise .B ippeveprinter will run continuously until terminated. .SH CONFORMING TO The .B ippeveprinter program is unique to CUPS and conforms to the IPP Everywhere (PWG 5100.14) specification. .SH ENVIRONMENT .B ippeveprinter adds environment variables starting with "IPP_" for all IPP Job attributes in the print request. For example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute. .LP In addition, all IPP "xxx-default" and "pwg-xxx" Printer Description attributes are added to the environment. For example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute. .LP Enumerated values are converted to their keyword equivalents. For example, a "print-quality" Job Template attribute with a enum value of 3 will become the "IPP_PRINT_QUALITY" environment variable with a value of "draft". This string conversion only happens for standard Job Template attributes, currently "finishings", "orientation-requested", and "print-quality". .LP Finally, the "CONTENT_TYPE" environment variable contains the MIME media type of the document being printed, the "DEVICE_URI" environment variable contains the device URI as specified with the "\-D" option, the "OUTPUT_FORMAT" environment variable contains the output MIME media type, and the "PPD" environment variable contains the PPD filename as specified with the "\-P" option. .SH COMMAND OUTPUT Unless they communicate directly with a printer, print commands send printer-ready data to the standard output. .LP Print commands can send messages back to .B ippeveprinter on the standard error with one of the following prefixes: .TP 5 \fBATTR: \fIattribute=value[ attribute=value]\fR Sets the named attribute(s) to the given values. Currently only the "job-impressions" and "job-impressions-completed" Job Status attributes and the "marker-xxx", "printer-alert", "printer-alert-description", "printer-supply", and "printer-supply-description" Printer Status attributes can be set. .TP 5 \fBDEBUG: \fIDebugging message\fR Logs a debugging message if at least two \-v's have been specified. .TP 5 \fBERROR: \fIError message\fR Logs an error message and copies the message to the "job-state-message" attribute. .TP 5 \fBINFO: \fIInformational message\fR Logs an informational/progress message if \-v has been specified and copies the message to the "job-state-message" attribute unless an error has been reported. .TP 5 \fBSTATE: \fIkeyword[,keyword,...]\fR Sets the printer's "printer-state-reasons" attribute to the listed keywords. .TP 5 \fBSTATE: -\fIkeyword[,keyword,...]\fR Removes the listed keywords from the printer's "printer-state-reasons" attribute. .TP 5 \fBSTATE: +\fIkeyword[,keyword,...]\fR Adds the listed keywords to the printer's "printer-state-reasons" attribute. .SH EXAMPLES Run .B ippeveprinter with a service name of My Cool Printer: .nf ippeveprinter "My Cool Printer" .fi .LP Run the .BR file (1) command whenever a job is sent to the server: .nf ippeveprinter \-c /usr/bin/file "My Cool Printer" .fi .SH SEE ALSO .BR ippevepcl (7), .BR ippeveps (7), PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/ippevepcl.70000644000175000017500000000314214502571342015213 0ustar zdohnalzdohnal.\" .\" ippevepcl/ps man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH ippevepcl/ps 7 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME ippevepcl/ps \- pcl and postscript print commands for ippeveprinter .SH SYNOPSIS .B ippevepcl [ .I filename ] .br .B ippeveps [ .I filename ] .SH DESCRIPTION .B ippevepcl and .B ippeveps are print commands for .BR ippeveprinter (1). As with all print commands, these commands read either the filename specified on the command-line or from the standard input. Output is sent to the standard output. Status and progress messages are sent to the standard error. .PP .B ippevepcl prints to B&W HP PCL laser printers and supports printing of HP PCL (application/vnd.hp-pcl), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files. .PP .B ippeveps print to Adobe PostScript printers and supports printing of PDF (application/pdf), PostScript (application/postscript), JPEG (image/jpeg), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files. Printer-specific commands are read from a supplied PPD file. If no PPD file is specified, generic commands suitable for any Level 2 or Level 3 PostScript printer are used instead to specify duplex printing and media size. .SH EXIT STATUS These programs return 1 on error and 0 on success. .SH ENVIRONMENT These program inherit the environment provided by the .B ippeveprinter program. .SH SEE ALSO .BR ippeveprinter (8) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/filter.70000644000175000017500000002322014502571342014510 0ustar zdohnalzdohnal.\" .\" filter man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH filter 7 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME filter \- cups file conversion filter interface .SH SYNOPSIS .B filter .I job .I user .I title .I num-copies .I options [ .I filename ] .nf \fB#include \fR \fBssize_t cupsBackChannelRead\fR(\fBchar *\fIbuffer\fR, \fBsize_t \fIbytes\fR, \fBdouble \fItimeout\fR); \fBcups_sc_status_t cupsSideChannelDoRequest\fR(\fBcups_sc_command_t \fIcommand\fR, \fBchar *\fIdata\fR, \fBint *\fIdatalen\fR, \fBdouble \fItimeout\fR); \fB#include \fR \fBconst char *cupsGetOption\fR(\fBconst char *\fIname\fR, \fBint \fInum_options\fR, \fBcups_option_t *\fIoptions\fR); \fBint cupsMarkOptions\fR(\fBppd_file_t *\fIppd\fR, \fBint \fInum_options\fR, \fBcups_option_t *\fIoptions\fR); \fBint cupsParseOptions\fR(\fBconst char *\fIarg\fR, \fBint \fInum_options\fR, \fBcups_option_t **\fIoptions\fR); \fBppd_choice_t *ppdFindMarkedChoice\fR(\fBppd_file_t *\fIppd\fR, \fBconst char *\fIkeyword\fR); \fBvoid ppdMarkDefaults\fR(\fBppd_file_t *\fIppd\fR); \fBppd_file_t *ppdOpenFile\fR(\fBconst char *\fIfilename\fR); .fi .SH DESCRIPTION The CUPS filter interface provides a standard method for adding support for new document types or printers to CUPS. Each filter is capable of converting from one or more input formats to another format that can either be printed directly or piped into another filter to get it to a printable format. .LP Filters \fBMUST\fR be capable of reading from a filename on the command-line or from the standard input, copying the standard input to a temporary file as required by the file format. All output \fBMUST\fR be sent to the standard output. Filters \fBMUST NOT\fR attempt to communicate directly with the printer, other processes, or other services. .LP The command name (\fIargv[0]\fR) is set to the name of the destination printer but is also available in the \fBPRINTER\fI environment variable. .SH OPTIONS Options are passed in \fIargv[5]\fR and are encoded from the corresponding IPP attributes used when the job was submitted. Use the .BR cupsParseOptions () function to load the options into a \fBcups_option_t\fR array and the .BR cupsGetOption () function to get the value of a specific attribute. Be careful to look for common aliases of IPP attributes such as "landscape" for the IPP "orientation-requested" attribute. .LP Options passed on the command-line typically do not include the default choices the printer's PPD file. Use the .BR ppdMarkDefaults () and .BR cupsMarkOptions () functions in the CUPS library to apply the options to the PPD defaults and map any IPP attributes to the corresponding PPD options. Use .BR ppdFindMarkedChoice () to get the user-selected choice for a PPD option. For example, a filter might use the following code to determine the current value of the \fBDuplex\fR PPD option: .nf ppd_file_t *ppd = ppdOpenFile(getenv("PPD")); cups_option_t *options = NULL; int num_options = cupsParseOptions(argv[5], 0, &options); ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); ppd_choice_t *choice = ppdFindMarkedChoice(ppd, "Duplex"); .fi .LP Raster filters should use option choices set through the raster page header, as those reflect the options in effect for a given page. Options specified on the command-line determine the default values for the entire job, which can be overridden on a per-page basis. .SH LOG MESSAGES Messages sent to the standard error are generally stored in the printer's "printer-state-message" attribute and the current \fBErrorLog\fR file. Each line begins with a standard prefix: .TP 5 \fBALERT: \fImessage\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "alert" log level. .TP 5 \fBATTR: \fIattribute=value \fR[ \fI... attribute=value\fR] Sets the named job or printer attribute(s). The following job attributes can be set: "job-media-progress". The following printer attributes can be set: "auth-info-required", "marker-colors", "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", "marker-names", "marker-types", "printer-alert", and "printer-alert-description". .TP 5 \fBCRIT: \fImessage\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "critical" log level. .TP 5 \fBDEBUG: \fImessage\fR Adds the specified message to the current \fBErrorLog\fR using the "debug" log level. \fBDEBUG\fR messages are never stored in the "printer-state-message" attribute. .TP 5 \fBDEBUG2: \fImessage\fR .br Adds the specified message to the current \fBErrorLog\fR using the "debug2" log level. \fBDEBUG2\fR messages are never stored in the "printer-state-message" attribute. .TP 5 \fBEMERG: \fImessage\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "emergency" log level. .TP 5 \fBERROR:\fI message\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "error" log level. .TP 5 \fBINFO:\fI message\fR Sets the "printer-state-message" attribute. If the current \fBLogLevel\fR is set to "debug2", also adds the specified message to the current \fBErrorLog\fR using the "info" log level. .TP 5 \fBNOTICE:\fI message\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "notice" log level. .TP 5 \fBPAGE:\fI page-number #-copies\fR .TP 5 \fBPAGE:\fI total #-pages\fR Adds an entry to the current \fBPageLog\fR. The first form adds \fI#-copies\fR to the "job-media-sheets-completed" attribute. The second form sets the "job-media-sheets-completed" attribute to \fI#-pages\fR. .TP 5 \fBPPD:\fI Keyword=Value\fR [ \fI... KeywordN=Value\fR ] Sets the named keywords in the printer's PPD file. This is typically used to update default option keywords such as \fBDefaultPageSize\fR and the various installable options in the PPD file. .TP 5 \fBSTATE:\fI printer-state-reason \fR[ \fI... printer-state-reason\fR ] .TP 5 \fBSTATE: +\fI printer-state-reason \fR[ \fI... printer-state-reason\fR ] .TP 5 \fBSTATE: -\fI printer-state-reason \fR[ \fI... printer-state-reason\fR ] Sets, adds, or removes "printer-state-reason" keywords for the current queue. Typically this is used to indicate media, ink, and toner conditions on a printer. .TP 5 \fBWARNING:\fI message\fR Sets the "printer-state-message" attribute and adds the specified message to the current \fBErrorLog\fR using the "warning" log level. .SH ENVIRONMENT VARIABLES The following environment variables are defined by the CUPS server when executing the filter: .TP 5 .B CHARSET The default text character set, typically "utf-8". .TP 5 .B CLASS When a job is submitted to a printer class, contains the name of the destination printer class. Otherwise this environment variable will not be set. .TP 5 .B CONTENT_TYPE The MIME media type associated with the submitted job file, for example "application/postscript". .TP 5 .B CUPS_CACHEDIR The directory where semi-persistent cache files can be found and stored. .TP 5 .B CUPS_DATADIR The directory where data files can be found. .TP 5 .B CUPS_FILETYPE The type of file being printed: "job-sheet" for a banner page and "document" for a regular print file. .TP 5 .B CUPS_MAX_MESSAGE The maximum size of a message sent to \fIstderr\fR, including any leading prefix and the trailing newline. .TP 5 .B CUPS_SERVERROOT The root directory of the server. .TP 5 .B FINAL_CONTENT_TYPE The MIME media type associated with the output destined for the printer, for example "application/vnd.cups-postscript". .TP 5 .B LANG The default language locale (typically C or en). .TP 5 .B PATH The standard execution path for external programs that may be run by the filter. .TP 5 .B PPD The full pathname of the PostScript Printer Description (PPD) file for this printer. .TP 5 .B PRINTER The name of the printer. .TP 5 .B RIP_CACHE The recommended amount of memory to use for Raster Image Processors (RIPs). .TP 5 .B SOFTWARE The name and version number of the server (typically CUPS/\fImajor.minor\fR). .TP 5 .B TZ The timezone of the server. .TP 5 .B USER The user executing the filter, typically "lp" or "root"; consult the \fIcups-files.conf\fR file for the current setting. .SH CONFORMING TO While the filter interface is compatible with System V interface scripts, CUPS does not support System V interface scripts. .SH NOTES CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .LP CUPS filters are not meant to be run directly by the user. Aside from the legacy System V interface issues (\fIargv[0]\fR is the printer name), CUPS filters also expect specific environment variables and file descriptors, and typically run in a user session that (on macOS) has additional restrictions that affect how it runs. Unless you are a developer and know what you are doing, please do not run filters directly. Instead, use the .BR cupsfilter (8) program to use the appropriate filters to do the conversions you need. .SH SEE ALSO .BR backend (7), .BR cups (1), .BR cups-files.conf (5), .BR cupsd (8), .BR cupsfilter (8), .br CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupstestppd.10000644000175000017500000000751014502571342015577 0ustar zdohnalzdohnal.\" .\" cupstestppd man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupstestppd 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupstestppd \- test conformance of ppd files (deprecated) .SH SYNOPSIS .B cupstestppd [ .B \-I .I category ] [ .B \-R .I rootdir ] [ .B \-W .I category ] [ .B \-q ] [ .B \-r ] [ \fB\-v\fR[\fBv\fR] ] .I filename.ppd[.gz] [ ... .I filename.ppd[.gz] ] .br .B cupstestppd [ .B \-R .I rootdir ] [ .B \-W .I category ] [ .B \-q ] [ .B \-r ] [ \fB\-v\fR[\fBv\fR] ] .B \- .SH DESCRIPTION \fBcupstestppd\fR tests the conformance of PPD files to the Adobe PostScript Printer Description file format specification version 4.3. It can also be used to list the supported options and available fonts in a PPD file. The results of testing and any other output are sent to the standard output. .LP The first form of \fBcupstestppd\fR tests one or more PPD files on the command-line. The second form tests the PPD file provided on the standard input. .SH OPTIONS \fBcupstestppd\fR supports the following options: .TP 5 \fB\-I filename\fR Ignores all PCFileName warnings. .TP 5 \fB\-I filters\fR Ignores all filter errors. .TP 5 \fB\-I profiles\fR Ignores all profile errors. .TP 5 \fB\-R \fIrootdir\fR Specifies an alternate root directory for the filter, pre-filter, and other support file checks. .TP 5 \fB\-W constraints\fR Report all UIConstraint errors as warnings. .TP 5 \fB\-W defaults\fR Except for size-related options, report all default option errors as warnings. .TP 5 \fB\-W filters\fR Report all filter errors as warnings. .TP 5 \fB\-W profiles\fR Report all profile errors as warnings. .TP 5 \fB\-W sizes\fR Report all media size errors as warnings. .TP 5 \fB\-W translations\fR Report all translation errors as warnings. .TP 5 \fB\-W all\fR Report all of the previous errors as warnings. .TP 5 \fB\-W none\fR Report all of the previous errors as errors. .TP 5 .B \-q Specifies that no information should be displayed. .TP 5 .B \-r Relaxes the PPD conformance requirements so that common whitespace, control character, and formatting problems are not treated as hard errors. .TP 5 .B \-v Specifies that detailed conformance testing results should be displayed rather than the concise PASS/FAIL/ERROR status. .TP 5 .B \-vv Specifies that all information in the PPD file should be displayed in addition to the detailed conformance testing results. .LP The \fI-q\fR, \fI-v\fR, and \fI-vv\fR options are mutually exclusive. .SH EXIT STATUS \fBcupstestppd\fR returns zero on success and non-zero on error. The error codes are as follows: .TP 5 1 Bad command-line arguments or missing PPD filename. .TP 5 2 Unable to open or read PPD file. .TP 5 3 The PPD file contains format errors that cannot be skipped. .TP 5 4 The PPD file does not conform to the Adobe PPD specification. .SH EXAMPLES The following command will test all PPD files under the current directory and print the names of each file that does not conform: .nf find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \-print .fi The next command tests all PPD files under the current directory and print detailed conformance testing results for the files that do not conform: .nf find . \-name \\*.ppd \\! \-exec cupstestppd \-q '{}' \\; \\ \-exec cupstestppd \-v '{}' \\; .fi .SH NOTES PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR lpadmin (8), CUPS Online Help (http://localhost:631/help), Adobe PostScript Printer Description File Format Specification, Version 4.3. .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsfilter.80000644000175000017500000000646314502571342015416 0ustar zdohnalzdohnal.\" .\" cupsfilter man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsfilter 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsfilter \- convert a file to another format using cups filters (deprecated) .SH SYNOPSIS .B cupsfilter [ .B \-\-list\-filters ] [ .B \-D ] [ .B \-U .I user ] [ .B \-c .I config-file ] [ .B \-d .I printer ] [ .B \-e ] [ .B \-i .I mime/type ] [ .B \-j .I job-id[,N] ] [ .B \-m .I mime/type ] [ .B \-n .I copies ] [ .B \-o .I name=value ] [ .B \-p .I filename.ppd ] [ .B \-t .I title ] [ .B \-u ] .I filename .SH DESCRIPTION .B cupsfilter is a front-end to the CUPS filter subsystem which allows you to convert a file to a specific format, just as if you had printed the file through CUPS. By default, .B cupsfilter generates a PDF file. The converted file is sent to the standard output. .SH OPTIONS .TP 5 .B \-\-list\-filters Do not actually run the filters, just print the filters used to stdout. .TP 5 .B \-D Delete the input file after conversion. .TP 5 \fB\-U \fIuser\fR Specifies the username passed to the filters. The default is the name of the current user. .TP 5 \fB\-c \fIconfig-file\fR Uses the named cups-files.conf configuration file. .TP 5 \fB\-d \fIprinter\fR Uses information from the named printer. .TP 5 .B \-e Use every filter from the PPD file. .TP 5 \fB\-i \fImime/type\fR Specifies the source file type. The default file type is guessed using the filename and contents of the file. .TP 5 \fB\-j \fIjob-id[,N]\fR Converts document N from the specified job. If N is omitted, document 1 is converted. .TP 5 \fB\-m \fImime/type\fR Specifies the destination file type. The default file type is application/pdf. Use printer/foo to convert to the printer format defined by the filters in the PPD file. .TP 5 \fB\-n \fIcopies\fR Specifies the number of copies to generate. .TP 5 \fB\-o \fIname=value\fR Specifies options to pass to the CUPS filters. .TP 5 \fB\-p \fIfilename.ppd\fR Specifies the PPD file to use. .TP 5 \fB\-t \fItitle\fR Specifies the document title. .TP 5 .B \-u Delete the PPD file after conversion. .SH EXIT STATUS .B cupsfilter returns a non-zero exit status on any error. .SH ENVIRONMENT All of the standard .BR cups (1) environment variables affect the operation of .BR cupsfilter . .SH FILES .nf /etc/cups/cups-files.conf /etc/cups/*.convs /etc/cups/*.types /usr/share/cups/mime/*.convs /usr/share/cups/mime/*.types .SH NOTES CUPS printer drivers, filters, and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .LP Unlike when printing, filters run using the .B cupsfilter command use the current user and security session. This may result in different output or unexpected behavior. .SH EXAMPLE The following command will generate a PDF preview of job 42 for a printer named "myprinter" and save it to a file named "preview.pdf": .nf cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf .fi .SH SEE ALSO .BR cups (1), .BR cupsd.conf (5), .BR filter(7), .BR mime.convs (7), .BR mime.types (7), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsenable.80000644000175000017500000000465214502571342015355 0ustar zdohnalzdohnal.\" .\" cupsenable/cupsdisable man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsenable 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsdisable, cupsenable \- stop/start printers and classes .SH SYNOPSIS .B cupsdisable [ .B \-E ] [ .B \-U .I username ] [ .B \-c ] [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-r .I reason ] [ .B \-\-hold ] .I destination(s) .br .B cupsenable [ .B \-E ] [ .B \-U .I username ] [ .B \-c ] [ \fB\-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-\-release ] .I destination(s) .SH DESCRIPTION .B cupsenable starts the named printers or classes while .B cupsdisable stops the named printers or classes. .SH OPTIONS The following options may be used: .TP 5 .B \-E Forces encryption of the connection to the server. .TP 5 \fB\-U \fIusername\fR Uses the specified username when connecting to the server. .TP 5 .B \-c Cancels all jobs on the named destination. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Uses the specified server and port. .TP 5 .B \-\-hold Holds remaining jobs on the named printer. Useful for allowing the current job to complete before performing maintenance. .TP 5 \fB\-r "\fIreason\fB"\fR Sets the message associated with the stopped state. If no reason is specified then the message is set to "Reason Unknown". .TP 5 .B \-\-release Releases pending jobs for printing. Use after running \fBcupsdisable\fR with the \fI\-\-hold\fR option to resume printing. .SH CONFORMING TO Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are \fInot\fR case-sensitive. .LP The System V versions of these commands are \fBdisable\fR and \fBenable\fR, respectively. They have been renamed to avoid conflicts with the .BR bash (1) built-in commands of the same names. .LP The CUPS versions of \fBdisable\fR and \fBenable\fR may ask the user for an access password depending on the printing system configuration. This differs from the System V versions which require the root user to execute these commands. .SH SEE ALSO .BR cupsaccept (8), .BR cupsreject (8), .BR cancel (1), .BR lp (1), .BR lpadmin (8), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsd.conf.50000644000175000017500000007464414502571342015303 0ustar zdohnalzdohnal.\" .\" cupsd.conf man page for CUPS. .\" .\" Copyright © 2020-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsd.conf 5 "CUPS" "2021-10-01" "OpenPrinting" .SH NAME cupsd.conf \- server configuration file for cups .SH DESCRIPTION The .I cupsd.conf file configures the CUPS scheduler, .BR cupsd (8). It is normally located in the .I /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character. .SS TOP-LEVEL DIRECTIVES The following top-level directives are understood by .BR cupsd (8): .\"#AccessLogLevel .TP 5 \fBAccessLogLevel config\fR .TP 5 \fBAccessLogLevel actions\fR .TP 5 \fBAccessLogLevel all\fR Specifies the logging level for the AccessLog file. The "config" level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated. The "actions" level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for "config". The "all" level logs all requests. The default access log level is "actions". .\"#AutoPurgeJobs .TP 5 \fBAutoPurgeJobs Yes\fR .TP 5 \fBAutoPurgeJobs No\fR .br Specifies whether to purge job history data automatically when it is no longer required for quotas. The default is "No". .\"#BrowseDNSSDSubTypes .TP 5 .BI BrowseDNSSDSubTypes _subtype[,...] Specifies a list of Bonjour sub-types to advertise for each shared printer. For example, "BrowseDNSSDSubTypes _cups,_print" will tell network clients that both CUPS sharing and IPP Everywhere are supported. The default is "_cups" which is necessary for printer sharing to work between systems using CUPS. .\"#BrowseLocalProtocols .TP 5 \fBBrowseLocalProtocols all\fR .TP 5 \fBBrowseLocalProtocols dnssd\fR .TP 5 \fBBrowseLocalProtocols none\fR Specifies which protocols to use for local printer sharing. The default is "dnssd" on systems that support Bonjour and "none" otherwise. .\"#BrowseWebIF .TP 5 \fBBrowseWebIF Yes\fR .TP 5 \fBBrowseWebIF No\fR .br Specifies whether the CUPS web interface is advertised. The default is "No". .\"#Browsing .TP 5 \fBBrowsing Yes\fR .TP 5 \fBBrowsing No\fR .br Specifies whether shared printers are advertised. The default is "No". .\"#DefaultAuthType .TP 5 \fBDefaultAuthType Basic\fR .br Specifies the default type of authentication to use. The default is "Basic". .\"#DefaultEncryption .TP 5 \fBDefaultEncryption Never\fR .TP 5 \fBDefaultEncryption IfRequested\fR .TP 5 \fBDefaultEncryption Required\fR Specifies whether encryption will be used for authenticated requests. The default is "Required". .\"#DefaultLanguage .TP 5 \fBDefaultLanguage \fIlocale\fR Specifies the default language to use for text and web content. The default is "en". .\"#DefaultPaperSize .TP 5 \fBDefaultPaperSize Auto\fR .TP 5 \fBDefaultPaperSize None\fR .TP 5 \fBDefaultPaperSize \fIsizename\fR Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size. Specific size names are typically "Letter" or "A4". The default is "Auto". Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name. .\"#DefaultPolicy .TP 5 \fBDefaultPolicy \fIpolicy-name\fR Specifies the default access policy to use. The default access policy is "default". .\"#DefaultShared .TP 5 \fBDefaultShared Yes\fR .TP 5 \fBDefaultShared No\fR Specifies whether local printers are shared by default. The default is "Yes". .\"#DirtyCleanInterval .TP 5 \fBDirtyCleanInterval \fIseconds\fR Specifies the delay for updating of configuration and state files. A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds. The default value is "30". .\"#DNSSDHostName .TP 5 .BI DNSSDHostName hostname.example.com Specifies the fully-qualified domain name for the server that is used for Bonjour sharing. The default is typically the server's ".local" hostname. .\"#ErrorPolicy .TP 5 \fBErrorPolicy abort-job\fR Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer. .TP 5 \fBErrorPolicy retry-current-job\fR Specifies that a failed print job should be retried immediately unless otherwise specified for the printer. .TP 5 \fBErrorPolicy retry-job\fR Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer. .TP 5 \fBErrorPolicy stop-printer\fR Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default. .\"#FilterLimit .TP 5 \fBFilterLimit \fIlimit\fR Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems. A limit of 0 disables filter limiting. An average print to a non-PostScript printer needs a filter limit of about 200. A PostScript printer needs about half that (100). Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time. The default limit is "0". .\"#FilterNice .TP 5 \fBFilterNice \fInice-value\fR Specifies the scheduling priority ( .BR nice (8) value) of filters that are run to print a job. The nice value ranges from 0, the highest priority, to 19, the lowest priority. The default is 0. .TP 5 .\"#HostNameLookups \fBHostNameLookups On\fR .TP 5 \fBHostNameLookups Off\fR .TP 5 \fBHostNameLookups Double\fR Specifies whether to do reverse lookups on connecting clients. The "Double" setting causes .BR cupsd (8) to verify that the hostname resolved from the address matches one of the addresses returned for that hostname. Double lookups also prevent clients with unregistered addresses from connecting to your server. The default is "Off" to avoid the potential server performance problems with hostname lookups. Only set this option to "On" or "Double" if absolutely required. .\"#IdleExitTimeout .TP 5 \fBIdleExitTimeout \fIseconds\fR Specifies the length of time to wait before shutting down due to inactivity. The default is "60" seconds. Note: Only applicable when .BR cupsd (8) is run on-demand (e.g., with \fB-l\fR). .\"#JobKillDelay .TP 5 \fBJobKillDelay \fIseconds\fR Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job. The default is "30". .\"#JobRetryInterval .TP 5 \fBJobRetryInterval \fIseconds\fR Specifies the interval between retries of jobs in seconds. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "30". .\"#JobRetryLimit .TP 5 \fBJobRetryLimit \fIcount\fR Specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "5". .\"#KeepAlive .TP 5 \fBKeepAlive Yes\fR .TP 5 \fBKeepAlive No\fR Specifies whether to support HTTP keep-alive connections. The default is "Yes". .\"#LimitIPP .TP 5 \fB \fR... \fB\fR Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATION NAMES". .\"#Limit .TP 5 \fB \fR... \fB\fR .\"#LimitExcept .TP 5 \fB \fR... \fB\fR Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHOD NAMES". .\"#LimitRequestBody .TP 5 \fBLimitRequestBody \fIsize\fR Specifies the maximum size of print files, IPP requests, and HTML form data. The default is "0" which disables the limit check. .\"#Listen .TP 5 \fBListen \fIipv4-address\fB:\fIport\fR .TP 5 \fBListen [\fIipv6-address\fB]:\fIport\fR .TP 5 \fBListen *:\fIport\fR .TP 5 \fBListen \fI/path/to/domain/socket\fR Listens to the specified address and port or domain socket path for connections. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks. Note: "Listen *:\fIport\fR" and "Port \fIport\fR" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port. .\"#Location .TP 5 \fB \fR... \fB\fR Specifies access control for the named location. Paths are documented below in the section "LOCATION PATHS". .\"#LogDebugHistory .TP 5 \fBLogDebugHistory \fInumber\fR Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting. .\"#LogLevel .TP 5 \fBLogLevel \fRnone .TP 5 \fBLogLevel \fRemerg .TP 5 \fBLogLevel \fRalert .TP 5 \fBLogLevel \fRcrit .TP 5 \fBLogLevel \fRerror .TP 5 \fBLogLevel \fRwarn .TP 5 \fBLogLevel \fRnotice .TP 5 \fBLogLevel \fRinfo .TP 5 \fBLogLevel \fRdebug .TP 5 \fBLogLevel \fRdebug2 Specifies the level of logging for the ErrorLog file. The value "none" stops all logging while "debug2" logs everything. The default is "warn". .\"#LogTimeFormat .TP 5 \fBLogTimeFormat \fRstandard .TP 5 \fBLogTimeFormat \fRusecs Specifies the format of the date and time in the log files. The value "standard" is the default and logs whole seconds while "usecs" logs microseconds. .\"#MaxClients .TP 5 \fBMaxClients \fInumber\fR Specifies the maximum number of simultaneous clients that are allowed by the scheduler. The default is "100". .\"#MaxClientPerHost .TP 5 \fBMaxClientsPerHost \fInumber\fR Specifies the maximum number of simultaneous clients that are allowed from a single address. The default is the MaxClients value. .\"#MaxCopies .TP 5 \fBMaxCopies \fInumber\fR Specifies the maximum number of copies that a user can print of each job. The default is "9999". .\"#MaxHoldTime .TP 5 \fBMaxHoldTime \fIseconds\fR Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled. The default is "0" which disables cancellation of held jobs. .\"#MaxJobs .TP 5 \fBMaxJobs \fInumber\fR Specifies the maximum number of simultaneous jobs that are allowed. Set to "0" to allow an unlimited number of jobs. The default is "500". .\"#MaxJobsPerPrinter .TP 5 \fBMaxJobsPerPrinter \fInumber\fR Specifies the maximum number of simultaneous jobs that are allowed per printer. The default is "0" which allows up to MaxJobs jobs per printer. .\"#MaxJobsPerUser .TP 5 \fBMaxJobsPerUser \fInumber\fR Specifies the maximum number of simultaneous jobs that are allowed per user. The default is "0" which allows up to MaxJobs jobs per user. .\"#MaxJobTime .TP 5 \fBMaxJobTime \fIseconds\fR Specifies the maximum time a job may take to print before it is canceled. Set to "0" to disable cancellation of "stuck" jobs. The default is "10800" (3 hours). .\"#MaxLogSize .TP 5 \fBMaxLogSize \fIsize\fR Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation. The default is "1048576" (1MB). .\"#MaxSubscriptions .TP 5 \fBMaxSubscriptions \fInumber\fR Specifies the maximum number of simultaneous event subscriptions that are allowed. Set to "0" to allow an unlimited number of subscriptions. The default is "100". .\"#MaxSubscriptionsPerJob .TP 5 \fBMaxSubscriptionsPerJob \fInumber\fR Specifies the maximum number of simultaneous event subscriptions that are allowed per job. The default is "0" which allows up to MaxSubscriptions subscriptions per job. .\"#MaxSubscriptionsPerPrinter .TP 5 \fBMaxSubscriptionsPerPrinter \fInumber\fR Specifies the maximum number of simultaneous event subscriptions that are allowed per printer. The default is "0" which allows up to MaxSubscriptions subscriptions per printer. .\"#MaxSubscriptionsPerUser .TP 5 \fBMaxSubscriptionsPerUser \fInumber\fR Specifies the maximum number of simultaneous event subscriptions that are allowed per user. The default is "0" which allows up to MaxSubscriptions subscriptions per user. .\"#MultipleOperationTimeout .TP 5 \fBMultipleOperationTimeout \fIseconds\fR Specifies the maximum amount of time to allow between files in a multiple file print job. The default is "900" (15 minutes). .\"#Policy .TP 5 \fB \fR... \fB\fR Specifies access control for the named policy. .\"#Port .TP 5 \fBPort \fInumber\fR Listens to the specified port number for connections. .\"#PreserveJobFiles .TP 5 \fBPreserveJobFiles Yes\fR .TP 5 \fBPreserveJobFiles No\fR .TP 5 \fBPreserveJobFiles \fIseconds\fR Specifies whether job files (documents) are preserved after a job is printed. If a numeric value is specified, job files are preserved for the indicated number of seconds after printing. The default is "86400" (preserve 1 day). .\"#PreserveJobHistory .TP 5 \fBPreserveJobHistory Yes\fR .TP 5 \fBPreserveJobHistory No\fR .TP 5 \fBPreserveJobHistory \fIseconds\fR Specifies whether the job history is preserved after a job is printed. If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing. If "Yes", the job history is preserved until the MaxJobs limit is reached. The default is "Yes". .\"#ReadyPaperSizes .TP 5 \fBReadyPaperSizes \fIsizename[,...]\fR Specifies a list of potential paper sizes that are reported as "ready" (loaded). The actual list will only contain sizes that each printer supports. The default is "Letter,Legal,Tabloid,4x6,Env10" when the default paper size is "Letter" and "A3,A4,A5,A6,EnvDL" otherwise. Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names. .\"#ReloadTimeout .TP 5 \fBReloadTimeout \fIseconds\fR Specifies the amount of time to wait for job completion before restarting the scheduler. The default is "30". .\"#ServerAdmin .TP 5 \fBServerAdmin \fIemail-address\fR Specifies the email address of the server administrator. The default value is "root@ServerName". .\"#ServerAlias .TP 5 \fBServerAlias \fIhostname \fR[ ... \fIhostname \fR] .TP 5 \fBServerAlias *\fR The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces. Using the special name "*" can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall. If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*". .\"#ServerName .TP 5 \fBServerName \fIhostname\fR Specifies the fully-qualified hostname of the server. The default is the value reported by the .BR hostname (1) command. .\"#ServerTokens .TP 5 \fBServerTokens None\fR .TP 5 \fBServerTokens ProductOnly\fR .TP 5 \fBServerTokens Major\fR .TP 5 \fBServerTokens Minor\fR .TP 5 \fBServerTokens Minimal\fR .TP 5 \fBServerTokens OS\fR .TP 5 \fBServerTokens Full\fR Specifies what information is included in the Server header of HTTP responses. "None" disables the Server header. "ProductOnly" reports "CUPS". "Major" reports "CUPS/major IPP/2". "Minor" reports "CUPS/major.minor IPP/2.1". "Minimal" reports "CUPS/major.minor.patch IPP/2.1". "OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1". "Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1". The default is "Minimal". .\"#SSLListen .TP 5 \fBSSLListen \fIipv4-address\fB:\fIport\fR .TP 5 \fBSSLListen [\fIipv6-address\fB]:\fIport\fR .TP 5 \fBSSLListen *:\fIport\fR Listens on the specified address and port for encrypted connections. .\"#SSLOptions .TP 5 .TP 5 \fBSSLOptions \fR[\fIAllowDH\fR] [\fIAllowRC4\fR] [\fIAllowSSL3\fR] [\fIDenyCBC\fR] [\fIDenyTLS1.0\fR] [\fIMaxTLS1.0\fR] [\fIMaxTLS1.1\fR] [\fIMaxTLS1.2\fR] [\fIMaxTLS1.3\fR] [\fIMinTLS1.0\fR] [\fIMinTLS1.1\fR] [\fIMinTLS1.2\fR] [\fIMinTLS1.3\fR] .TP 5 \fBSSLOptions None\fR Sets encryption options (only in /etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when \fIAllow\fR options are used. Security is enhanced when \fIDeny\fR options are used. The \fIAllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). The \fIAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients. The \fIAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. The \fIDenyCBC\fR option disables all CBC cipher suites. The \fIDenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1. The \fIMinTLS\fR options set the minimum TLS version to support. The \fIMaxTLS\fR options set the maximum TLS version to support. Not all operating systems support TLS 1.3 at this time. .\"#SSLPort .TP 5 \fBSSLPort \fIport\fR Listens on the specified port for encrypted connections. .\"#StrictConformance .TP 5 \fBStrictConformance Yes\fR .TP 5 \fBStrictConformance No\fR Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications. The default is "No". .\"#Timeout .TP 5 \fBTimeout \fIseconds\fR Specifies the HTTP request timeout. The default is "900" (15 minutes). .\"#WebInterface .TP 5 \fBWebInterface yes\fR .TP 5 \fBWebInterface no\fR Specifies whether the web interface is enabled. The default is "No". .SS HTTP METHOD NAMES The following HTTP methods are supported by .BR cupsd (8): .TP 5 GET Used by a client to download icons and other printer resources and to access the CUPS web interface. .TP 5 HEAD Used by a client to get the type, size, and modification date of resources. .TP 5 OPTIONS Used by a client to establish a secure (SSL/TLS) connection. .TP 5 POST Used by a client to submit IPP requests and HTML forms from the CUPS web interface. .TP 5 PUT Used by a client to upload configuration files. .SS IPP OPERATION NAMES The following IPP operations are supported by .BR cupsd (8): .TP 5 CUPS\-Accept\-Jobs Allows a printer to accept new jobs. .TP 5 CUPS\-Add\-Modify\-Class Adds or modifies a printer class. .TP 5 CUPS\-Add\-Modify\-Printer Adds or modifies a printer. .TP 5 CUPS\-Authenticate\-Job Releases a job that is held for authentication. .TP 5 CUPS\-Delete\-Class Deletes a printer class. .TP 5 CUPS\-Delete\-Printer Deletes a printer. .TP 5 CUPS\-Get\-Classes Gets a list of printer classes. .TP 5 CUPS\-Get\-Default Gets the server default printer or printer class. .TP 5 CUPS\-Get\-Devices Gets a list of devices that are currently available. .TP 5 CUPS\-Get\-Document Gets a document file for a job. .TP 5 CUPS\-Get\-PPD Gets a PPD file. .TP 5 CUPS\-Get\-PPDs Gets a list of installed PPD files. .TP 5 CUPS\-Get\-Printers Gets a list of printers. .TP 5 CUPS\-Move\-Job Moves a job. .TP 5 CUPS\-Reject\-Jobs Prevents a printer from accepting new jobs. .TP 5 CUPS\-Set\-Default Sets the server default printer or printer class. .TP 5 Cancel\-Job Cancels a job. .TP 5 Cancel\-Jobs Cancels one or more jobs. .TP 5 Cancel\-My\-Jobs Cancels one or more jobs creates by a user. .TP 5 Cancel\-Subscription Cancels a subscription. .TP 5 Close\-Job Closes a job that is waiting for more documents. .TP 5 Create\-Job Creates a new job with no documents. .TP 5 Create\-Job\-Subscriptions Creates a subscription for job events. .TP 5 Create\-Printer\-Subscriptions Creates a subscription for printer events. .TP 5 Get\-Job\-Attributes Gets information about a job. .TP 5 Get\-Jobs Gets a list of jobs. .TP 5 Get\-Notifications Gets a list of event notifications for a subscription. .TP 5 Get\-Printer\-Attributes Gets information about a printer or printer class. .TP 5 Get\-Subscription\-Attributes Gets information about a subscription. .TP 5 Get\-Subscriptions Gets a list of subscriptions. .TP 5 Hold\-Job Holds a job from printing. .TP 5 Hold\-New\-Jobs Holds all new jobs from printing. .TP 5 Pause\-Printer Stops processing of jobs by a printer or printer class. .TP 5 Pause\-Printer\-After\-Current\-Job Stops processing of jobs by a printer or printer class after the current job is finished. .TP 5 Print\-Job Creates a new job with a single document. .TP 5 Purge\-Jobs Cancels one or more jobs and deletes the job history. .TP 5 Release\-Held\-New\-Jobs Allows previously held jobs to print. .TP 5 Release\-Job Allows a job to print. .TP 5 Renew\-Subscription Renews a subscription. .TP 5 Restart\-Job Reprints a job, if possible. .TP 5 Send\-Document Adds a document to a job. .TP 5 Set\-Job\-Attributes Changes job information. .TP 5 Set\-Printer\-Attributes Changes printer or printer class information. .TP 5 Validate\-Job Validates options for a new job. .SS LOCATION PATHS The following paths are commonly used when configuring .BR cupsd (8): .TP 5 / The path for all get operations (get-printers, get-jobs, etc.) .TP 5 /admin The path for all administration operations (add-printer, delete-printer, start-printer, etc.) .TP 5 /admin/conf The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.) .TP 5 /admin/log The path for access to the CUPS log files (access_log, error_log, page_log) .TP 5 /classes The path for all printer classes .TP 5 /classes/name The resource for the named printer class .TP 5 /jobs The path for all jobs (hold-job, release-job, etc.) .TP 5 /jobs/id The path for the specified job .TP 5 /printers The path for all printers .TP 5 /printers/name The path for the named printer .TP 5 /printers/name.png The icon file path for the named printer .TP 5 /printers/name.ppd The PPD file path for the named printer .SS DIRECTIVES VALID WITHIN LOCATION AND LIMIT SECTIONS The following directives may be placed inside Location and Limit sections in the \fBcupsd.conf\fR file: .TP 5 \fBAllow all\fR .TP 5 \fBAllow none\fR .TP 5 \fBAllow \fIhost.domain.com\fR .TP 5 \fBAllow *.\fIdomain.com\fR .TP 5 \fBAllow \fIipv4-address\fR .TP 5 \fBAllow \fIipv4-address\fB/\fInetmask\fR .TP 5 \fBAllow \fIipv4-address\fB/\fImm\fR .TP 5 \fBAllow [\fIipv6-address\fB]\fR .TP 5 \fBAllow [\fIipv6-address\fB]/\fImm\fR .TP 5 \fBAllow @IF(\fIname\fB)\fR .TP 5 \fBAllow @LOCAL\fR Allows access from the named hosts, domains, addresses, or interfaces. The @IF(name) form uses the current subnets configured for the named interface. The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not. The Order directive controls whether Allow lines are evaluated before or after Deny lines. .TP 5 \fBAuthType None\fR .TP 5 \fBAuthType Basic\fR .TP 5 \fBAuthType Default\fR Specifies the type of authentication required. The value "Default" corresponds to the DefaultAuthType value. .TP 5 \fBDeny all\fR .TP 5 \fBDeny none\fR .TP 5 \fBDeny \fIhost.domain.com\fR .TP 5 \fBDeny *.\fIdomain.com\fR .TP 5 \fBDeny \fIipv4-address\fR .TP 5 \fBDeny \fIipv4-address\fB/\fInetmask\fR .TP 5 \fBDeny \fIipv4-address\fB/\fImm\fR .TP 5 \fBDeny [\fIipv6-address\fB]\fR .TP 5 \fBDeny [\fIipv6-address\fB]/\fImm\fR .TP 5 \fBDeny @IF(\fIname\fB)\fR .TP 5 \fBDeny @LOCAL\fR Denies access from the named hosts, domains, addresses, or interfaces. The @IF(name) form uses the current subnets configured for the named interface. The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not. The Order directive controls whether Deny lines are evaluated before or after Allow lines. .TP 5 \fBEncryption IfRequested\fR .TP 5 \fBEncryption Never\fR .TP 5 \fBEncryption Required\fR Specifies the level of encryption that is required for a particular location. The default value is "IfRequested". .TP 5 \fBOrder allow,deny\fR Specifies that access is denied by default. Allow lines are then processed followed by Deny lines to determine whether a client may access a particular resource. .TP 5 \fBOrder deny,allow\fR Specifies that access is allowed by default. Deny lines are then processed followed by Allow lines to determine whether a client may access a particular resource. .TP 5 \fBRequire group \fIgroup-name \fR[ \fIgroup-name \fR... ] Specifies that an authenticated user must be a member of one of the named groups. .TP 5 \fBRequire user {\fIuser-name\fR|\fB@\fIgroup-name\fR} ... Specifies that an authenticated user must match one of the named users or be a member of one of the named groups. The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the .BR cups-files.conf (5) file. The group name "@OWNER" corresponds to the owner of the resource, for example the person that submitted a print job. Note: The 'root' user is not special and must be granted privileges like any other user account. .TP 5 \fBRequire valid-user\fR Specifies that any authenticated user is acceptable. .TP 5 \fBSatisfy all\fR Specifies that all Allow, AuthType, Deny, Order, and Require conditions must be satisfied to allow access. .TP 5 \fBSatisfy any\fR Specifies that any a client may access a resource if either the authentication (AuthType/Require) or address (Allow/Deny/Order) conditions are satisfied. For example, this can be used to require authentication only for remote accesses. .SS DIRECTIVES VALID WITHIN POLICY SECTIONS The following directives may be placed inside Policy sections in the \fBcupsd.conf\fR file: .TP 5 \fBJobPrivateAccess all\fR .TP 5 \fBJobPrivateAccess default\fR .TP 5 \fBJobPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ... Specifies an access list for a job's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. "@OWNER" maps to the job's owner. "@SYSTEM" maps to the groups listed for the SystemGroup directive in the .BR cups-files.conf (5) file. .TP 5 \fBJobPrivateValues all\fR .TP 5 \fBJobPrivateValues default\fR .TP 5 \fBJobPrivateValues none\fR .TP 5 \fBJobPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR] Specifies the list of job values to make private. The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone". .TP 5 \fBSubscriptionPrivateAccess all\fR .TP 5 \fBSubscriptionPrivateAccess default\fR .TP 5 \fBSubscriptionPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ... Specifies an access list for a subscription's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. "@OWNER" maps to the job's owner. "@SYSTEM" maps to the groups listed for the SystemGroup directive in the .BR cups-files.conf (5) file. .TP 5 \fBSubscriptionPrivateValues all\fR .TP 5 \fBSubscriptionPrivateValues default\fR .TP 5 \fBSubscriptionPrivateValues none\fR .TP 5 \fBSubscriptionPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR] Specifies the list of subscription values to make private. The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data". .SS DEPRECATED DIRECTIVES The following directives are deprecated and will be removed in a future release of CUPS: .TP 5 \fBAuthType Negotiate\fR Specifies Kerberos authentication is required. .\"#Classification .TP 5 \fBClassification \fIbanner\fR .br Specifies the security classification of the server. Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions. The default is no classification banner. .\"#ClassifyOverride .TP 5 \fBClassifyOverride Yes\fR .TP 5 \fBClassifyOverride No\fR .br Specifies whether users may override the classification (cover page) of individual print jobs using the "job-sheets" option. The default is "No". .TP 5 \fBDefaultAuthType Negotiate\fR Specifies that Kerberos authentication is required by default. .\"#GSSServiceName .TP 5 \fBGSSServiceName \fIname\fR Specifies the service name when using Kerberos authentication. The default service name is "http." .\"#PageLogFormat .TP 5 \fBPageLogFormat \fIformat-string\fR Specifies the format of PageLog lines. Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally. The following percent sequences are recognized: .nf "%%" inserts a single percent character. "%{name}" inserts the value of the specified IPP attribute. "%C" inserts the number of copies for the current page. "%P" inserts the current page number. "%T" inserts the current date and time in common log format. "%j" inserts the job ID. "%p" inserts the printer name. "%u" inserts the username. .fi The default is the empty string, which disables page logging. The string "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}" creates a page log with the standard items. Use "%{job-impressions-completed}" to insert the number of pages (sides) that were printed, or "%{job-media-sheets-completed}" to insert the number of sheets that were printed. .SH NOTES File, directory, and user configuration directives that used to be allowed in the \fBcupsd.conf\fR file are now stored in the .BR cups-files.conf (5) file instead in order to prevent certain types of privilege escalation attacks. .PP The scheduler MUST be restarted manually after making changes to the \fBcupsd.conf\fR file. On Linux this is typically done using the .BR systemctl (8) command, while on macOS the .BR launchctl (8) command is used instead. .PP The @LOCAL macro name can be confusing since the system running .B cupsd often belongs to a different set of subnets from its clients. .SH CONFORMING TO The \fBcupsd.conf\fR file format is based on the Apache HTTP Server configuration file format. .SH EXAMPLES Log everything with a maximum log file size of 32 megabytes: .nf AccessLogLevel all LogLevel debug2 MaxLogSize 32m .fi Require authentication for accesses from outside the 10. network: .nf Order allow,deny Allow from 10./8 AuthType Basic Require valid-user Satisfy any .fi .SH SEE ALSO .BR classes.conf (5), .BR cups-files.conf (5), .BR cupsd (8), .BR mime.convs (5), .BR mime.types (5), .BR printers.conf (5), .BR subscriptions.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2020-2023 by OpenPrinting. cups-2.4.7/man/cupsd.80000644000175000017500000000475014502571342014351 0ustar zdohnalzdohnal.\" .\" cupsd man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsd 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsd \- cups scheduler .SH SYNOPSIS .B cupsd [ .B \-c .I cupsd.conf ] [ .B \-f ] [ .B \-F ] [ .B \-h ] [ .B \-l ] [ .B \-s .I cups-files.conf ] [ .B \-t ] .SH DESCRIPTION .B cupsd is the scheduler for CUPS. It implements a printing system based upon the Internet Printing Protocol, version 2.1, and supports most of the requirements for IPP Everywhere. If no options are specified on the command-line then the default configuration file .I /etc/cups/cupsd.conf will be used. .SH OPTIONS .TP 5 .BI \-c \ cupsd.conf Uses the named cupsd.conf configuration file. .TP 5 .B \-f Run .B cupsd in the foreground; the default is to run in the background as a "daemon". .TP 5 .B \-F Run .B cupsd in the foreground but detach the process from the controlling terminal and current directory. This is useful for running .B cupsd from .BR init (8). .TP 5 .B \-h Shows the program usage. .TP 5 .B \-l This option is passed to .B cupsd when it is run from .BR launchd (8) or .BR systemd (8). .TP 5 .BI \-s \ cups-files.conf Uses the named cups-files.conf configuration file. .TP 5 .B \-t Test the configuration file for syntax errors. .SH FILES .nf .I /etc/cups/classes.conf .I /etc/cups/cups-files.conf .I /etc/cups/cupsd.conf .I /usr/share/cups/mime/mime.convs .I /usr/share/cups/mime/mime.types .I /etc/cups/printers.conf .I /etc/cups/subscriptions.conf .fi .SH CONFORMING TO .B cupsd implements all of the required IPP/2.1 attributes and operations. It also implements several CUPS-specific administrative operations. .SH EXAMPLES Run .B cupsd in the background with the default configuration file: .nf cupsd .fi Test a configuration file called .IR test.conf : .nf cupsd \-t \-c test.conf .fi Run .B cupsd in the foreground with a test configuration file called .IR test.conf : .nf cupsd \-f \-c test.conf .fi .SH SEE ALSO .BR backend (7), .BR classes.conf (5), .BR cups (1), .BR cups-files.conf (5), .BR cups-lpd (8), .BR cupsd.conf (5), .BR cupsd-helper (8), .BR cupsd-logs (8), .BR filter (7), .BR launchd (8), .BR mime.convs (5), .BR mime.types (5), .BR printers.conf (5), .BR systemd (8), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsd-logs.50000644000175000017500000002077314502571342015313 0ustar zdohnalzdohnal.\" .\" cupsd-logs man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsd-logs 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsd\-logs \- cupsd log files (access_log, error_log, and page_log) .SH DESCRIPTION .BR cupsd (8) normally maintains three log files: \fIaccess_log\fR to track requests that are submitted to the scheduler, \fIerror_log\fR to track progress and errors, and \fIpage_log\fR to track pages that are printed. Configuration directives in .BR cupsd.conf (5) and .BR cups-files.conf (5) control what information is logged and where it is stored. .SS ACCESS LOG FILE FORMAT The \fIaccess_log\fR file lists each HTTP resource that is accessed by a web browser or client. Each line is in an extended version of the so-called "Common Log Format" used by many web servers and web reporting tools: .nf \fIhost group user date-time \fR"\fImethod resource version\fR" \fIstatus bytes ipp-operation ipp-status\fR .fi For example: .nf 10.0.1.2 - - [01/Dec/2005:21:50:28 +0000] "POST / HTTP/1.1" 200 317 CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1" 200 0 - - localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1" 200 157 CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1" 200 1411 CUPS-Get-Devices - localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1" 200 6667 - - .fi The \fIhost\fR field will normally only be an IP address unless you have enabled the HostNameLookups directive in the \fIcupsd.conf\fR file or if the IP address corresponds to your local machine. .LP The \fIgroup\fR field always contains "-". .LP The \fIuser\fR field is the authenticated username of the requesting user. If no username and password is supplied for the request then this field contains "-". .LP The \fIdate-time\fR field is the date and time of the request in local time and is in the format "[DD/MON/YYYY:HH:MM:SS +ZZZZ]". .LP The \fImethod\fR field is the HTTP method used: "GET", "HEAD", "OPTIONS", "POST", or "PUT". "GET" requests are used to get files from the server, both for the web interface and to get configuration and log files. "HEAD" requests are used to get information about a resource prior to a "GET". "OPTIONS" requests are used to upgrade connections to TLS encryption. "POST" requests are used for web interface forms and IPP requests. "PUT" requests are used to upload configuration files. .LP The \fIresource\fR field is the filename of the requested resource. .LP The \fIversion\fR field is the HTTP specification version used by the client. For CUPS clients this will always be "HTTP/1.1". .LP The \fIstatus\fR field contains the HTTP result status of the request, as follows: .RS 5 .TP 5 200 Successful operation. .TP 5 201 File created/modified successfully. .TP 5 304 The requested file has not changed. .TP 5 400 Bad HTTP request; typically this means that you have a malicious program trying to access your server. .TP 5 401 Unauthorized, authentication (username + password) is required. .TP 5 403 Access is forbidden; typically this means that a client tried to access a file or resource they do not have permission to access. .TP 5 404 The file or resource does not exist. .TP 5 405 URL access method is not allowed; typically this means you have a web browser using your server as a proxy. .TP 5 413 Request too large; typically this means that a client tried to print a file larger than the MaxRequestSize allows. .TP 5 426 Upgrading to TLS-encrypted connection. .TP 5 500 Server error; typically this happens when the server is unable to open/create a file - consult the error_log file for details. .TP 5 501 The client requested encryption but encryption support is not enabled/compiled in. .TP 5 505 HTTP version number not supported; typically this means that you have a malicious program trying to access your server. .RE .LP The \fIbytes\fR field contains the number of bytes in the request. For POST requests the bytes field contains the number of bytes of non-IPP data that is received from the client. .LP The \fIipp-operation\fR field contains either "-" for non-IPP requests or the IPP operation name for POST requests containing an IPP request. .LP The \fIipp-status\fR field contains either "-" for non-IPP requests or the IPP status code name for POST requests containing an IPP response. .SS ERROR LOG FILE FORMAT The \fIerror_log\fR file lists messages from the scheduler - errors, warnings, etc. The LogLevel directive in the .BR cupsd.conf (5) file controls which messages are logged: .nf level date-time message .fi For example: .nf I [20/May/1999:19:18:28 +0000] [Job 1] Queued on 'DeskJet' by 'mike'. D [20/May/1999:19:18:28 +0000] [Job 1] argv[0]="DeskJet" D [20/May/1999:19:18:28 +0000] [Job 1] argv[1]="1" D [20/May/1999:19:18:28 +0000] [Job 1] argv[2]="mike" D [20/May/1999:19:18:28 +0000] [Job 1] argv[3]="myjob" D [20/May/1999:19:18:28 +0000] [Job 1] argv[4]="1" D [20/May/1999:19:18:28 +0000] [Job 1] argv[5]="media= na_letter_8.5x11in sides=one-sided" D [20/May/1999:19:18:28 +0000] [Job 1] argv[6]="/var/spool/cups/ d000001-001" I [20/May/1999:19:21:02 +0000] [Job 2] Queued on 'DeskJet' by 'mike'. I [20/May/1999:19:22:24 +0000] [Job 2] Canceled by 'mike'. .fi The \fIlevel\fR field contains the type of message: .TP 5 A Alert message (LogLevel alert) .TP 5 C Critical error message (LogLevel crit) .TP 5 D Debugging message (LogLevel debug) .TP 5 d Detailed debugging message (LogLevel debug2) .TP 5 E Normal error message (LogLevel error) .TP 5 I Informational message (LogLevel info) .TP 5 N Notice message (LogLevel notice) .TP 5 W Warning message (LogLevel warn) .TP 5 X Emergency error message (LogLevel emerg) .LP The \fIdate-time\fR field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the \fIaccess_log\fR file. .LP The \fImessage\fR field contains a free-form textual message. Messages from job filters are prefixed with "[Job NNN]" where "NNN" is the job ID. .SS PAGE LOG FILE FORMAT The \fIpage_log\fR file lists the total number of pages (sheets) that are printed. By default, each line contains the following information: .nf \fIprinter user job-id date-time \fBtotal \fInum-sheets job-billing job-originating-host-name job-name media sides\fR .fi For example the entry for a two page job called "myjob" might look like: .nf DeskJet root 1 [20/May/1999:19:21:06 +0000] total 2 acme-123 localhost myjob na_letter_8.5x11in one-sided .fi The PageLogFormat directive in the .BR cupsd.conf (5) file can be used to change this information. .LP The \fIprinter\fR field contains the name of the printer that printed the page. If you send a job to a printer class, this field will contain the name of the printer that was assigned the job. .LP The \fIuser\fR field contains the name of the user (the IPP requesting-user-name attribute) that submitted this file for printing. .LP The \fIjob-id\fR field contains the job number of the page being printed. .LP The \fIdate-time\fR field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the \fIaccess_log\fR file. .LP The \fInum-sheets\fR field provides the total number of pages (sheets) that have been printed on for the job. .LP The \fIjob-billing\fR field contains a copy of the job-billing or job-account-id attributes provided with the IPP Create-Job or Print-Job requests or "-" if neither was provided. .LP The \fIjob-originating-host-name\fR field contains the hostname or IP address of the client that printed the job. .LP The \fIjob-name\fR field contains a copy of the job-name attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided. .LP The \fImedia\fR field contains a copy of the media or media-col/media-size attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided. .LP The \fIsides\fR field contains a copy of the sides attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided. .SH SEE ALSO .BR cupsd (8), .BR cupsd.conf (5), .BR cups-files.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsd-helper.80000644000175000017500000000434714502571342015630 0ustar zdohnalzdohnal.\" .\" cupsd-helper man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright 2007-2019 by Apple Inc. .\" Copyright 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsd-helper 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsd\-helper \- cupsd helper programs (deprecated) .SH SYNOPSIS .B cups\-deviced .I request-id .I limit .I user-id .I options .br .B cups\-driverd .B cat .I ppd-name .br .B cups\-driverd .B list .I request_id .I limit .I options .br .B cups\-exec .I sandbox-profile [ .I \-g .I group-id ] [ .I \-n .I nice-value ] [ .I \-u .I user-id ] .I /path/to/program .I argv0 .I ... .I argvN .SH DESCRIPTION The \fBcupsd\-helper\fR programs perform long-running operations on behalf of the scheduler, .BR cupsd (8). The \fBcups-deviced\fR helper program runs each CUPS .BR backend (7) with no arguments in order to discover the available printers. .LP The \fBcups-driverd\fR helper program lists all available printer drivers, a subset of "matching" printer drivers, or a copy of a specific driver PPD file. .LP The \fBcups-exec\fR helper program runs backends, filters, and other programs. On macOS these programs are run in a secure sandbox. .SH FILES The \fBcups-driverd\fR program looks for PPD and driver information files in the following directories: .nf \fI/Library/Printers\fR \fI/opt/share/ppd\fR \fI/System/Library/Printers\fR \fI/usr/local/share/ppd\fR \fI/usr/share/cups/drv\fR \fI/usr/share/cups/model\fR \fI/usr/share/ppd\fR .fi .LP PPD files can be compressed using the .BR gzip (1) program or placed in compressed .BR tar (1) archives to further reduce their size. .LP Driver information files must conform to the format defined in .BR ppdcfile (5). .SH NOTES CUPS printer drivers, backends, and PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR backend (7), .BR cups (1), .BR cupsd (8), .BR cupsd.conf (5), .BR filter (7), .BR ppdcfile (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsctl.80000644000175000017500000000450214502571342014703 0ustar zdohnalzdohnal.\" .\" cupsctl man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 2007 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsctl 8 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME cupsctl \- configure cupsd.conf options .SH SYNOPSIS .B cupsctl [ .B \-h \fIserver\fR[\fB:\fIport\fR] ] [ .B \-E ] [ .B \-U .I username ] [ \fB\-\-\fR[\fBno\-\fR]\fBdebug\-logging\fR ] [ \fB\-\-\fR[\fBno\-\fR]\fBremote\-admin\fR ] [ \fB\-\-\fR[\fBno\-\fR]\fBremote\-any\fR ] [ \fB\-\-\fR[\fBno\-\fR]\fBshare\-printers\fR ] [ \fB\-\-\fR[\fBno\-\fR]\fBuser\-cancel\-any\fR ] [ .I name=value ] .SH DESCRIPTION \fBcupsctl\fR updates or queries the \fIcupsd.conf\fR file for a server. When no changes are requested, the current configuration values are written to the standard output in the format "name=value", one per line. .SH OPTIONS The following options are recognized: .TP 5 .B \-E Enables encryption on the connection to the scheduler. .TP 5 \fB\-U \fIusername\fR Specifies an alternate username to use when authenticating with the scheduler. .TP 5 \fB\-h \fIserver\fR[\fB:\fIport\fR] Specifies the server address. Note: This option must occur before all others. .TP 5 \fB\-\-\fR[\fBno\-\fR]\fBdebug\-logging\fR Enables (disables) debug logging to the \fIerror_log\fR file. .TP 5 \fB\-\-\fR[\fBno\-\fR]\fBremote\-admin\fR Enables (disables) remote administration. .TP 5 \fB\-\-\fR[\fBno\-\fR]\fBremote\-any\fR Enables (disables) printing from any address, e.g., the Internet. .TP 5 \fB\-\-\fR[\fBno\-\fR]\fBshare\-printers\fR Enables (disables) sharing of local printers with other computers. .TP 5 \fB\-\-\fR[\fBno\-\fR]\fBuser\-cancel\-any\fR Allows (prevents) users to cancel jobs owned by others. .SH EXAMPLES Display the current settings: .nf cupsctl .fi Enable debug logging: .nf cupsctl --debug-logging .fi Get the current debug logging state: .nf cupsctl | grep '^_debug_logging' | awk -F= '{print $2}' .fi Disable printer sharing: .nf cupsctl --no-share-printers .fi .SH KNOWN ISSUES You cannot set the Listen or Port directives using \fBcupsctl\fR. .SH SEE ALSO .BR cupsd.conf (5), .BR cupsd (8), .br CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cupsaccept.80000644000175000017500000000403114502571342015355 0ustar zdohnalzdohnal.\" .\" cupsaccept/reject man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cupsaccept 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cupsaccept/cupsreject \- accept/reject jobs sent to a destination .SH SYNOPSIS .B cupsaccept [ .B \-E ] [ .B \-U .I username ] [ .B \-h .I hostname[:port] ] .I destination(s) .br .B cupsreject [ .B \-E ] [ .B \-U .I username ] [ .B \-h .I hostname[:port] ] [ .B \-r .I reason ] .I destination(s) .SH DESCRIPTION The .B cupsaccept command instructs the printing system to accept print jobs to the specified destinations. .LP The .B cupsreject command instructs the printing system to reject print jobs to the specified destinations. The \fI-r\fR option sets the reason for rejecting print jobs. If not specified, the reason defaults to "Reason Unknown". .SH OPTIONS The following options are supported by both .B cupsaccept and .BR cupsreject : .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB-U \fIusername\fR Sets the username that is sent when connecting to the server. .TP 5 \fB-h \fIhostname[:port]\fR Chooses an alternate server. .TP 5 \fB-r \fR"\fIreason\fR" Sets the reason string that is shown for a printer that is rejecting jobs. .SH CONFORMING TO The .B cupsaccept and .B cupsreject commands correspond to the System V printing system commands "accept" and "reject", respectively. Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are \fInot\fR case-sensitive. .LP Finally, the CUPS versions may ask the user for an access password depending on the printing system configuration. .SH SEE ALSO .BR cancel (1), .BR cupsenable (8), .BR lp (1), .BR lpadmin (8), .BR lpstat (1), .br CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cups.10000644000175000017500000001450014502571342014170 0ustar zdohnalzdohnal.\" .\" cups (intro) man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cups 1 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cups \- a standards-based, open source printing system .SH DESCRIPTION .B CUPS is the software you use to print from applications like word processors, email readers, photo editors, and web browsers. It converts the page descriptions produced by your application (put a paragraph here, draw a line there, and so forth) into something your printer can understand and then sends the information to the printer for printing. .LP Now, since every printer manufacturer does things differently, printing can be very complicated. .B CUPS does its best to hide this from you and your application so that you can concentrate on printing and less on how to print. Generally, the only time you need to know anything about your printer is when you use it for the first time, and even then .B CUPS can often figure things out on its own. .SS HOW DOES IT WORK? The first time you print to a printer, .B CUPS creates a queue to keep track of the current status of the printer (everything OK, out of paper, etc.) and any pages you have printed. Most of the time the queue points to a printer connected directly to your computer via a USB port, however it can also point to a printer on your network, a printer on the Internet, or multiple printers depending on the configuration. Regardless of where the queue points, it will look like any other printer to you and your applications. .LP Every time you print something, .B CUPS creates a job which contains the queue you are sending the print to, the name of the document you are printing, and the page descriptions. Job are numbered (queue-1, queue-2, and so forth) so you can monitor the job as it is printed or cancel it if you see a mistake. When .B CUPS gets a job for printing, it determines the best programs (filters, printer drivers, port monitors, and backends) to convert the pages into a printable format and then runs them to actually print the job. .LP When the print job is completely printed, .B CUPS removes the job from the queue and moves on to any other jobs you have submitted. You can also be notified when the job is finished, or if there are any errors during printing, in several different ways. .SS WHERE DO I BEGIN? The easiest way to start is by using the web interface to configure your printer. Go to "http://localhost:631" and choose the Administration tab at the top of the page. Click/press on the Add Printer button and follow the prompts. .LP When you are asked for a username and password, enter your login username and password or the "root" username and password. .LP After the printer is added you will be asked to set the default printer options (paper size, output mode, etc.) for the printer. Make any changes as needed and then click/press on the Set Default Options button to save them. Some printers also support auto-configuration - click/press on the Query Printer for Default Options button to update the options automatically. .LP Once you have added the printer, you can print to it from any application. You can also choose Print Test Page from the maintenance menu to print a simple test page and verify that everything is working properly. .LP You can also use the .BR lpadmin (8) and .BR lpinfo (8) commands to add printers to .BR CUPS . Additionally, your operating system may include graphical user interfaces or automatically create printer queues when you connect a printer to your computer. .SS HOW DO I GET HELP? The .B OpenPrinting CUPS website (https://openprinting.github.io/cups) provides access to the .I cups and .I cups-devel mailing lists, additional documentation and resources, and a bug report database. Most vendors also provide online discussion forums to ask printing questions for your operating system of choice. .SH ENVIRONMENT .B CUPS commands use the following environment variables to override the default locations of files and so forth. For security reasons, these environment variables are ignored for setuid programs: .TP 5 .B CUPS_ANYROOT Whether to allow any X.509 certificate root (Y or N). .TP 5 .B CUPS_CACHEDIR The directory where semi-persistent cache files can be found. .TP 5 .B CUPS_DATADIR The directory where data files can be found. .TP 5 .B CUPS_ENCRYPTION The default level of encryption (Always, IfRequested, Never, Required). .TP 5 .B CUPS_EXPIREDCERTS Whether to allow expired X.509 certificates (Y or N). .TP 5 .B CUPS_GSSSERVICENAME The Kerberos service name used for authentication. .TP 5 .B CUPS_SERVER The hostname/IP address and port number of the CUPS scheduler (hostname:port or ipaddress:port). .TP 5 .B CUPS_SERVERBIN The directory where server helper programs, filters, backend, etc. can be found. .TP 5 .B CUPS_SERVERROOT The root directory of the server. .TP 5 .B CUPS_STATEDIR The directory where state files can be found. .TP 5 .B CUPS_USER Specifies the name of the user for print requests. .TP 5 .B HOME Specifies the home directory of the current user. .TP 5 .B IPP_PORT Specifies the default port number for IPP requests. .TP 5 .B LOCALEDIR Specifies the location of localization files. .TP 5 .B LPDEST Specifies the default print queue (System V standard). .TP 5 .B PRINTER Specifies the default print queue (Berkeley standard). .TP 5 .B TMPDIR Specifies the location of temporary files. .SH FILES .nf .I ~/.cups/client.conf .I ~/.cups/lpoptions .fi .SH CONFORMING TO .B CUPS conforms to the Internet Printing Protocol version 2.1 and implements the Berkeley and System V UNIX print commands. .SH NOTES CUPS printer drivers, backends, and PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR cancel (1), .BR client.conf (5), .BR cupsctl (8), .BR cupsd (8), .BR lp (1), .BR lpadmin (8), .BR lpinfo (8), .BR lpoptions (1), .BR lpr (1), .BR lprm (1), .BR lpq (1), .BR lpstat (1), CUPS Online Help (http://localhost:631/help), OpenPrinting CUPS Web Site (https://openprinting.github.io/cups), PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cups-snmp.conf.50000644000175000017500000000522714502571342016101 0ustar zdohnalzdohnal.\" .\" snmp.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH snmp.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME snmp.conf \- snmp configuration file for cups (deprecated) .SH DESCRIPTION The .B snmp.conf file configures how the standard CUPS network backends (http, https, ipp, ipps, lpd, snmp, and socket) access printer information using SNMPv1 and is normally located in the \fI/etc/cups\fR directory. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character. .LP The Community and DebugLevel directives are used by all backends. The remainder apply only to the SNMP backend - .BR cups-snmp (8). .SH DIRECTIVES The following directives are understood by the CUPS network backends: .TP 5 \fBAddress @IF(\fIname\fB)\fR .TP 5 \fBAddress @LOCAL\fR .TP 5 \fBAddress \fIaddress\fR Sends SNMP broadcast queries (for discovery) to the specified address(es). There is no default for the broadcast address. .TP 5 \fBCommunity \fIname\fR Specifies the community name to use. Only a single community name may be specified. The default community name is "public". If no name is specified, all SNMP functions are disabled. .TP 5 \fBDebugLevel \fInumber\fR Specifies the logging level from 0 (none) to 3 (everything). Typically only used for debugging (thus the name). The default debug level is 0. .TP 5 \fBDeviceURI "\fIregular expression\fB" \fIdevice-uri \fR[... \fIdevice-uri\fR] Specifies one or more device URIs that should be used for a given make and model string. The regular expression is used to match the detected make and model, and the device URI strings must be of the form "scheme://%s[:port]/[path]", where "%s" represents the detected address or hostname. There are no default device URI matching rules. .TP 5 \fBHostNameLookups on\fR .TP 5 \fBHostNameLookups off\fR Specifies whether the addresses of printers should be converted to hostnames or left as numeric IP addresses. The default is "off". .TP 5 \fBMaxRunTime \fIseconds\fR Specifies the maximum number of seconds that the SNMP backend will scan the network for printers. The default is 120 seconds (2 minutes). .SH NOTES CUPS backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .BR cups-snmp (8), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cups-snmp.80000644000175000017500000000452314502571342015156 0ustar zdohnalzdohnal.\" .\" SNMP backend man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2012-2019 by Apple Inc. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cups-snmp 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME snmp \- cups snmp backend (deprecated) .SH SYNOPSIS .B /usr/lib/cups/backend/snmp .I ip-address-or-hostname .br .B /usr/libexec/cups/backend/snmp .I ip-address-or-hostname .br .B lpinfo .B \-v .B \-\-include-schemes snmp .SH DESCRIPTION The \fBDEPRECATED\fR CUPS SNMP backend provides legacy discovery and identification of network printers using SNMPv1. When used for discovery through the scheduler, the backend will list all printers that respond to a broadcast SNMPv1 query with the "public" community name. Additional queries are then sent to printers that respond in order to determine the correct device URI, make and model, and other information needed for printing. .LP In the first form, the SNMP backend is run directly by the user to look up the device URI and other information when you have an IP address or hostname. This can be used for programs that need to configure print queues where the user has supplied an address but nothing else. .LP In the second form, the SNMP backend is run indirectly using the .BR lpinfo (8) command. The output provides all printers detected via SNMP on the configured broadcast addresses. \fINote: no broadcast addresses are configured by default.\fR .SH ENVIRONMENT The DebugLevel value can be overridden using the CUPS_DEBUG_LEVEL environment variable. The MaxRunTime value can be overridden using the CUPS_MAX_RUN_TIME environment variable. .SH FILES The SNMP backend reads the \fI/etc/cups/snmp.conf\fR configuration file, if present, to set the default broadcast address, community name, and logging level. .SH NOTES The CUPS SNMP backend is deprecated and will no longer be supported in a future version of CUPS. .SH CONFORMING TO The CUPS SNMP backend uses the information from the Host, Printer, and Port Monitor MIBs along with some vendor private MIBs and intelligent port probes to determine the correct device URI and make and model for each printer. .SH SEE ALSO .BR backend (7), .BR cups-snmp.conf (5), .BR cupsd (8), .BR lpinfo (8), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cups-lpd.80000644000175000017500000000760214502571342014761 0ustar zdohnalzdohnal.\" .\" cups-lpd man page for CUPS. .\" .\" Copyright © 2020-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cups-lpd 8 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME cups-lpd \- receive print jobs and report printer status to lpd clients (deprecated) .SH SYNOPSIS .B cups-lpd [ \fB\-h \fIhostname\fR[\fB:\fIport\fR] ] [ .B -n ] [ .B -o .I option=value ] .SH DESCRIPTION .B cups-lpd is the CUPS Line Printer Daemon ("LPD") mini-server that supports legacy client systems that use the LPD protocol. .B cups-lpd does not act as a standalone network daemon but instead operates using any of the Internet "super-servers" such as .BR inetd (8), .BR launchd (8), and .BR systemd (8). .SH OPTIONS .TP 5 \fB-h \fIhostname\fR[\fB:\fIport\fR] Sets the CUPS server (and port) to use. .TP 5 .B -n Disables reverse address lookups; normally .B cups-lpd will try to discover the hostname of the client via a reverse DNS lookup. .TP 5 \fB-o \fIname=value\fR Inserts options for all print queues. Most often this is used to disable the "l" filter so that remote print jobs are filtered as needed for printing; the .BR inetd (8) example below sets the "document-format" option to "application/octet-stream" which forces autodetection of the print file format. .SH CONFORMING TO .B cups-lpd does not enforce the restricted source port number specified in RFC 1179, as using restricted ports does not prevent users from submitting print jobs. While this behavior is different than standard Berkeley LPD implementations, it should not affect normal client operations. .LP The output of the status requests follows RFC 2569, Mapping between LPD and IPP Protocols. Since many LPD implementations stray from this definition, remote status reporting to LPD clients may be unreliable. .SH ERRORS Errors are sent to the system log. .SH FILES .nf .I /etc/inetd.conf .I /etc/xinetd.d/cups-lpd .I /System/Library/LaunchDaemons/org.cups.cups-lpd.plist .fi .SH NOTES The .B cups-lpd program is deprecated and will no longer be supported in a future feature release of CUPS. .SS PERFORMANCE .B cups-lpd performs well with small numbers of clients and printers. However, since a new process is created for each connection and since each process must query the printing system before each job submission, it does not scale to larger configurations. We highly recommend that large configurations use the native IPP support provided by CUPS instead. .SS SECURITY .B cups-lpd currently does not perform any access control based on the settings in \fIcupsd.conf(5)\fR or in the \fIhosts.allow(5)\fR or \fIhosts.deny(5)\fR files used by TCP wrappers. Therefore, running .B cups-lpd on your server will allow any computer on your network (and perhaps the entire Internet) to print to your server. .LP While .BR xinetd (8) has built-in access control support, you should use the TCP wrappers package with .BR inetd (8) to limit access to only those computers that should be able to print through your server. .LP .B cups-lpd is not enabled by the standard CUPS distribution. Please consult with your operating system vendor to determine whether it is enabled by default on your system. .SH EXAMPLE If you are using .BR inetd (8), add the following line to the \fIinetd.conf\fR file to enable the .B cups-lpd mini-server: .nf printer stream tcp nowait lp /usr/lib/cups/daemon/cups\-lpd cups\-lpd \\ \-o document\-format=application/octet\-stream .fi .LP CUPS includes configuration files for .BR launchd (8), .BR systemd (8), and .BR xinetd (8). Simply enable the .B cups-lpd service using the corresponding control program. .SH SEE ALSO .BR cups (1), .BR cupsd (8), .BR inetd (8), .BR launchd (8), .BR xinetd (8), CUPS Online Help (http://localhost:631/help), RFC 2569 .SH COPYRIGHT Copyright \[co] 2020-2023 by OpenPrinting. cups-2.4.7/man/cups-files.conf.50000644000175000017500000002315614502571342016227 0ustar zdohnalzdohnal.\" .\" cups-files.conf man page for CUPS. .\" .\" Copyright © 2020-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cups-files.conf 5 "CUPS" "2021-03-06" "OpenPrinting" .SH NAME cups\-files.conf \- file and directory configuration file for cups .SH DESCRIPTION The \fBcups\-files.conf\fR file configures the files and directories used by the CUPS scheduler, .BR cupsd (8). It is normally located in the \fI/etc/cups\fR directory. .LP Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character. .SS DIRECTIVES The following directives are understood by .BR cupsd (8): .\"#AccessLog .TP 5 \fBAccessLog\fR .TP 5 \fBAccessLog \fIfilename\fR .TP 5 \fBAccessLog stderr\fR .TP 5 \fBAccessLog syslog\fR Defines the access log filename. Specifying a blank filename disables access log generation. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string "%s", for example: .nf AccessLog /var/log/cups/%s-access_log .fi The default is "/var/log/cups/access_log". .\"#CacheDir .TP 5 \fBCacheDir \fIdirectory\fR Specifies the directory to use for long-lived temporary (cache) files. The default is "/var/spool/cups/cache" or "/var/cache/cups" depending on the platform. .\"#ConfigFilePerm .TP 5 \fBConfigFilePerm \fImode\fR Specifies the permissions for all configuration files that the scheduler writes. The default is "0644" on macOS and "0640" on all other operating systems. .LP \fBNote:\fR The permissions for the \fIprinters.conf\fR file are currently masked to only allow access from the scheduler user (typically root). This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system. There is no way to disable this security feature. .\"#CreateSelfSignedCerts .TP 5 \fBCreateSelfSignedCerts yes\fR .TP 5 \fBCreateSelfSignedCerts no\fR Specifies whether the scheduler automatically creates self-signed certificates for client connections using TLS. The default is yes. .\"#DataDir .TP 5 \fBDataDir \fIpath\fR Specifies the directory where data files can be found. The default is usually "/usr/share/cups". .\"#DocumentRoot .TP 5 \fBDocumentRoot \fIdirectory\fR Specifies the root directory for the CUPS web interface content. The default is usually "/usr/share/doc/cups". .\"#ErrorLog .TP 5 \fBErrorLog\fR .TP 5 \fBErrorLog \fIfilename\fR .TP 5 \fBErrorLog stderr\fR .TP 5 \fBErrorLog syslog\fR Defines the error log filename. Specifying a blank filename disables error log generation. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string "%s", for example: .nf ErrorLog /var/log/cups/%s-error_log .fi The default is "/var/log/cups/error_log". .\"#FatalErrors .TP 5 \fBFatalErrors none\fR .TP 5 \fBFatalErrors all \fI\-kind \fR[ ... \fI\-kind \fR] .TP 5 \fBFatalErrors \fIkind \fR[ ... \fIkind \fR] Specifies which errors are fatal, causing the scheduler to exit. The default is "config". The \fIkind\fR strings are: .RS 5 .TP 5 .B none No errors are fatal. .TP 5 .B all All of the errors below are fatal. .TP 5 .B browse Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon. .TP 5 .B config Configuration file syntax errors are fatal. .TP 5 .B listen Listen or Port errors are fatal, except for IPv6 failures on the loopback or "any" addresses. .TP 5 .B log Log file creation or write errors are fatal. .TP 5 .B permissions Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions. .RE .\"#Group .TP 5 \fBGroup \fIgroup-name-or-number\fR Specifies the group name or ID that will be used when executing external programs. The default group is operating system specific but is usually "lp" or "nobody". .RE .\"#LogFileGroup .TP 5 \fBLogFileGroup \fIgroup-name-or-number\fR Specifies the group name or ID that will be used for log files. The default group is operating system specific but is usually "lp" or "nobody". .\"#LogFilePerm .TP 5 \fBLogFilePerm \fImode\fR Specifies the permissions of all log files that the scheduler writes. The default is "0644". .\"#PageLog .TP 5 \fBPageLog \fR[ \fIfilename\fR ] .TP 5 \fBPageLog stderr\fR .TP 5 \fBPageLog syslog\fR Defines the page log filename. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. Specifying a blank filename disables page log generation. The server name may be included in filenames using the string "%s", for example: .nf PageLog /var/log/cups/%s-page_log .fi The default is "/var/log/cups/page_log". .\"#PassEnv .TP 5 \fBPassEnv \fIvariable \fR[ ... \fIvariable \fR] Passes the specified environment variable(s) to child processes. Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive. .\"#RemoteRoot .TP 5 \fBRemoteRoot \fIusername\fR Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is "remroot". .\"#RequestRoot .TP 5 \fBRequestRoot \fIdirectory\fR Specifies the directory that contains print jobs and other HTTP request data. The default is "/var/spool/cups". .\"#Sandboxing .TP 5 \fBSandboxing relaxed\fR .TP 5 \fBSandboxing strict\fR Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler. The default is "strict". This directive is currently only used/supported on macOS. .\"#ServerBin .TP 5 \fBServerBin \fIdirectory\fR Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors. The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform. .\"#ServerKeychain .TP 5 \fBServerKeychain \fIpath\fR Specifies the location of TLS certificates and private keys. The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems. macOS uses its keychain database to store certificates and keys while other platforms use separate files in the specified directory, *.crt for PEM-encoded certificates and *.key for PEM-encoded private keys. .\"#ServerRoot .TP 5 \fBServerRoot \fIdirectory\fR Specifies the directory containing the server configuration files. The default is "/etc/cups". .\"#SetEnv .TP 5 \fBSetEnv \fIvariable value\fR Set the specified environment variable to be passed to child processes. Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive. .\"#StateDir .TP 5 \fBStateDir \fIdirectory\fR Specifies the directory to use for PID and local certificate files. The default is "/var/run/cups" or "/etc/cups" depending on the platform. .\"#SyncOnClose .TP 5 \fBSyncOnClose Yes\fR .TP 5 \fBSyncOnClose No\fR Specifies whether the scheduler calls .BR fsync (2) after writing configuration or state files. .\"#SystemGroup .TP 5 \fBSystemGroup \fIgroup-name \fR[ ... \fIgroup-name\fR ] Specifies the group(s) to use for \fI@SYSTEM\fR group authentication. The default contains "admin", "lpadmin", "root", "sys", and/or "system". .\"#TempDir .TP 5 \fBTempDir \fIdirectory\fR Specifies the directory where short-term temporary files are stored. The default is "/var/spool/cups/tmp". .\"#User .TP 5 \fBUser \fIusername\fR Specifies the user name or ID that is used when running external programs. The default is "lp". .SS DEPRECATED DIRECTIVES The following directives are deprecated and will be removed from a future version of CUPS: .\"#FileDevice .TP 5 \fBFileDevice Yes\fR .TP 5 \fBFileDevice No\fR Specifies whether the file pseudo-device can be used for new printer queues. The URI "file:///dev/null" is always allowed. File devices cannot be used with "raw" print queues - a PPD file is required. The specified file is overwritten for every print job. Writing to directories is not supported. .\"#Printcap .TP 5 \fBPrintcap \fIfilename\fR Specifies a file that is filled with a list of local print queues. .\"#PrintcapFormat .TP 5 \fBPrintcapFormat bsd\fR .TP 5 \fBPrintcapFormat plist\fR .TP 5 \fBPrintcapFormat solaris\fR Specifies the format to use for the Printcap file. "bsd" is the historical LPD printcap file format. "plist" is the Apple plist file format. "solaris" is the historical Solaris LPD printcap file format. .SH NOTES The scheduler MUST be restarted manually after making changes to the \fBcups-files.conf\fR file. On Linux this is typically done using the .BR systemctl (8) command, while on macOS the .BR launchctl (8) command is used instead. .SH SEE ALSO .BR classes.conf (5), .BR cups (1), .BR cupsd (8), .BR cupsd.conf (5), .BR mime.convs (5), .BR mime.types (5), .BR printers.conf (5), .BR subscriptions.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2020-2023 by OpenPrinting. cups-2.4.7/man/cups-config.10000644000175000017500000000532214502571342015435 0ustar zdohnalzdohnal.\" .\" cups-config man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cups-config 1 "CUPS" "2021-03-10" "OpenPrinting" .SH NAME cups\-config \- get cups api, compiler, directory, and link information (deprecated). .SH SYNOPSIS .B cups\-config .I \-\-api\-version .br .B cups\-config .I \-\-build .br .B cups\-config .I \-\-cflags .br .B cups\-config .I \-\-datadir .br .B cups\-config .I \-\-help .br .B cups\-config .I \-\-ldflags .br .B cups\-config [ .I \-\-image ] [ .I \-\-static ] .I \-\-libs .br .B cups\-config .I \-\-serverbin .br .B cups\-config .I \-\-serverroot .br .B cups-config .I \-\-version .br .SH DESCRIPTION The \fBcups-config\fR command allows application developers to determine the necessary command-line options for the compiler and linker, as well as the installation directories for filters, configuration files, and drivers. All values are reported to the standard output. .B Note: This command is deprecated and will be removed in a future version of CUPS. The .BR pkg-config (1) command should be used instead. .SH OPTIONS The \fBcups-config\fR command accepts the following command-line options: .TP 5 .B \-\-api-version Reports the current API version (major.minor). .TP 5 .B \-\-build Reports a system-specific build number. .TP 5 .B \-\-cflags Reports the necessary compiler options. .TP 5 .B \-\-datadir Reports the default CUPS data directory. .TP 5 .B \-\-help Reports the program usage message. .TP 5 .B \-\-ldflags Reports the necessary linker options. .TP 5 .B \-\-libs Reports the necessary libraries to link to. .TP 5 .B \-\-serverbin Reports the default CUPS binary directory, where filters and backends are stored. .TP 5 .B \-\-serverroot Reports the default CUPS configuration file directory. .TP 5 .B \-\-static When used with \fI\-\-libs\fR, reports the static libraries instead of the default (shared) libraries. .TP 5 .B \-\-version Reports the full version number of the CUPS installation (major.minor.patch). .SH EXAMPLES Show the currently installed version of CUPS: .nf cups-config \-\-version .fi Compile a simple one-file CUPS filter: .nf cc `cups\-config \-\-cflags \-\-ldflags` \-o filter filter.c \\ `cups\-config \-\-libs` .fi .SH DEPRECATED OPTIONS The following options are deprecated but continue to work for backwards compatibility: .TP 5 .B \-\-image Formerly used to add the CUPS imaging library to the list of libraries. .SH SEE ALSO .BR cups (1), .BR pkg-config (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/client.conf.50000644000175000017500000001337114502571342015431 0ustar zdohnalzdohnal.\" .\" client.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH client.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME client.conf \- client configuration file for cups (deprecated on macos) .SH DESCRIPTION The \fBclient.conf\fR file configures the CUPS client and is normally located in the \fI/etc/cups\fR and/or \fI~/.cups\fR directories. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character. .LP \fBNote:\fR Starting with macOS 10.7, this file is only used by command-line and X11 applications plus the IPP backend. The \fBServerName\fR directive is not supported on macOS at all. Starting with macOS 10.12, all applications can access these settings in the \fI/Library/Preferences/org.cups.PrintingPrefs.plist\fR file instead. See the NOTES section below for more information. .SS DIRECTIVES The following directives are understood by the client. Consult the online help for detailed descriptions: .\"#AllowAnyRoot .TP 5 \fBAllowAnyRoot Yes\fR .TP 5 \fBAllowAnyRoot No\fR Specifies whether to allow TLS with certificates that have not been signed by a trusted Certificate Authority. The default is "Yes". .\"#AllowExpiredCerts .TP 5 \fBAllowExpiredCerts Yes\fR .TP 5 \fBAllowExpiredCerts No\fR Specifies whether to allow TLS with expired certificates. The default is "No". .\"#DigestOptions .TP 5 \fBDigestOptions DenyMD5\fR .TP 5 \fBDigestOptions None\fR Specifies HTTP Digest authentication options. \fBDenyMD5\fR disables support for the original MD5 hash algorithm. .\"#Encryption .TP 5 \fBEncryption IfRequested\fR .TP 5 \fBEncryption Never\fR .TP 5 \fBEncryption Required\fR Specifies the level of encryption that should be used. .\"#GSSServiceName .TP 5 \fBGSSServiceName \fIname\fR Specifies the Kerberos service name that is used for authentication, typically "host", "http", or "ipp". CUPS adds the remote hostname ("name@server.example.com") for you. The default name is "http". .\"#ServerName .TP 5 \fBServerName \fIhostname-or-ip-address\fR[\fI:port\fR] .TP 5 \fBServerName \fI/domain/socket\fR Specifies the address and optionally the port to use when connecting to the server. \fBNote: This directive is not supported on macOS 10.7 or later.\fR .TP 5 \fBServerName \fIhostname-or-ip-address\fR[\fI:port\fR]\fB/version=1.1\fR Specifies the address and optionally the port to use when connecting to a server running CUPS 1.3.12 and earlier. .\"#SSLOptions .TP 5 \fBSSLOptions \fR[\fIAllowDH\fR] [\fIAllowRC4\fR] [\fIAllowSSL3\fR] [\fIDenyCBC\fR] [\fIDenyTLS1.0\fR] [\fIMaxTLS1.0\fR] [\fIMaxTLS1.1\fR] [\fIMaxTLS1.2\fR] [\fIMaxTLS1.3\fR] [\fIMinTLS1.0\fR] [\fIMinTLS1.1\fR] [\fIMinTLS1.2\fR] [\fIMinTLS1.3\fR] .TP 5 \fBSSLOptions None\fR Sets encryption options (only in /etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when \fIAllow\fR options are used. Security is enhanced when \fIDeny\fR options are used. The \fIAllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). The \fIAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients. The \fIAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. The \fIDenyCBC\fR option disables all CBC cipher suites. The \fIDenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1. The \fIMinTLS\fR options set the minimum TLS version to support. The \fIMaxTLS\fR options set the maximum TLS version to support. Not all operating systems support TLS 1.3 at this time. .\"#TrustOnFirstUse .TP 5 \fBTrustOnFirstUse Yes\fR .TP 5 \fBTrustOnFirstUse No\fR Specifies whether to trust new TLS certificates by default. The default is "Yes". .\"#User .TP 5 \fBUser \fIname\fR Specifies the default user name to use for requests. .\"#UserAgentTokens .TP 5 \fBUserAgentTokens None\fR .TP 5 \fBUserAgentTokens ProductOnly\fR .TP 5 \fBUserAgentTokens Major\fR .TP 5 \fBUserAgentTokens Minor\fR .TP 5 \fBUserAgentTokens Minimal\fR .TP 5 \fBUserAgentTokens OS\fR .TP 5 \fBUserAgentTokens Full\fR Specifies what information is included in the User-Agent header of HTTP requests. "None" disables the User-Agent header. "ProductOnly" reports "CUPS". "Major" reports "CUPS/major IPP/2". "Minor" reports "CUPS/major.minor IPP/2.1". "Minimal" reports "CUPS/major.minor.patch IPP/2.1". "OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1". "Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1". The default is "Minimal". .\"#ValidateCerts .TP 5 \fBValidateCerts Yes\fR .TP 5 \fBValidateCerts No\fR Specifies whether to only allow TLS with certificates whose common name matches the hostname. The default is "No". .SH NOTES The \fBclient.conf\fR file is deprecated on macOS and will no longer be supported in a future version of CUPS. Configuration settings can instead be viewed or changed using the .BR defaults (1) command: .nf defaults write /Library/Preferences/org.cups.PrintingPrefs.plist Encryption Required defaults write /Library/Preferences/org.cups.PrintingPrefs.plist TrustOnFirstUse -bool NO defaults read /Library/Preferences/org.cups.PrintingPrefs.plist Encryption .fi On Linux and other systems using GNU TLS, the \fI/etc/cups/ssl/site.crl\fR file, if present, provides a list of revoked X.509 certificates and is used when validating certificates. .SH SEE ALSO .BR cups (1), .BR default (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/classes.conf.50000644000175000017500000000200314502571342015576 0ustar zdohnalzdohnal.\" .\" classes.conf man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH classes.conf 5 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME classes.conf \- class configuration file for cups .SH DESCRIPTION The \fBclasses.conf\fR file defines the local printer classes that are available. It is normally located in the \fI/etc/cups\fR directory and is maintained by the .BR cupsd (8) program. This file is not intended to be edited or managed manually. .SH NOTES The name, location, and format of this file are an implementation detail that will change in future releases of CUPS. .SH SEE ALSO .BR cupsd (8), .BR cupsd.conf (5), .BR mime.convs (5), .BR mime.types (5), .BR printers.conf (5), .BR subscriptions.conf (5), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/cancel.10000644000175000017500000000375414502571342014454 0ustar zdohnalzdohnal.\" .\" cancel man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH cancel 1 "CUPS" "2022-05-02" "OpenPrinting" .SH NAME cancel \- cancel jobs .SH SYNOPSIS .B cancel [ .B \-h .I hostname[:port] ] [ .B \-E ] [ .B \-U .I username ] [ .B \-a ] [ .B \-u .I username ] [ .B \-x ] [ .I id ] [ .I destination ] [ .I destination\-id ] .SH DESCRIPTION The \fBcancel\fR command cancels print jobs. If no \fIdestination\fR or \fIid\fR is specified, the currently printing job on the default destination is canceled. .SH OPTIONS The following options are recognized by \fBcancel\fR: .TP 5 .B \-a Cancel all jobs on the named destination, or all jobs on all destinations if none is provided. .TP 5 .B \-E Forces encryption when connecting to the server. .TP 5 \fB\-h \fIhostname\fR[\fI:port\fR] Specifies an alternate server. Note: This option must occur before all others. .TP 5 \fB\-U \fIusername\fR Specifies the username to use when connecting to the server. .TP 5 \fB\-u \fIusername\fR Cancels jobs owned by \fIusername\fR. .TP 5 .B \-x Deletes job data files in addition to canceling. .SH CONFORMING TO Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are \fInot\fR case-sensitive. .SH EXAMPLES Cancel the current print job: .nf cancel .fi Cancel job "myprinter-42": .nf cancel myprinter\-42 .fi Cancel all jobs: .nf cancel \-a .fi .SH NOTES Administrators wishing to prevent unauthorized cancellation of jobs via the \fI\-u\fR option should require authentication for Cancel-Jobs operations in .BR cupsd.conf (5). .SH SEE ALSO .BR cupsd.conf (5), .BR lp (1), .BR lpmove (8), .BR lpstat (1), CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/backend.70000644000175000017500000002031614502571342014615 0ustar zdohnalzdohnal.\" .\" Backend man page for CUPS. .\" .\" Copyright © 2021-2023 by OpenPrinting. .\" Copyright © 2007-2019 by Apple Inc. .\" Copyright © 1997-2006 by Easy Software Products. .\" .\" Licensed under Apache License v2.0. See the file "LICENSE" for more .\" information. .\" .TH backend 7 "CUPS" "2021-02-28" "OpenPrinting" .SH NAME backend \- cups backend transmission interfaces .SH SYNOPSIS .B backend .br .B backend .I job .I user .I title .I num-copies .I options [ .I filename ] .nf \fB#include \fR \fBconst char *cupsBackendDeviceURI\fR(\fBchar **\fIargv\fR); \fBvoid cupsBackendReport\fR(\fBconst char *\fIdevice_scheme\fR, \fBconst char *\fIdevice_uri\fR, \fBconst char *\fIdevice_make_and_model\fR, \fBconst char *\fIdevice_info\fR, \fBconst char *\fIdevice_id\fR, \fBconst char *\fIdevice_location\fR); \fBssize_t cupsBackChannelWrite\fR(\fBconst char *\fIbuffer\fR, \fBsize_t \fIbytes\fR, \fBdouble \fItimeout\fR); \fBint cupsSideChannelRead\fR(\fBcups_sc_command_t *\fIcommand\fR, \fBcups_sc_status_t *\fIstatus\fR, \fBchar *\fIdata\fR, \fBint *\fIdatalen\fR, \fBdouble \fItimeout\fR); \fBint cupsSideChannelWrite\fR(\fBcups_sc_command_t \fIcommand\fR, \fBcups_sc_status_t \fIstatus\fR, \fBconst char *\fIdata\fR, \fBint \fIdatalen\fR, \fBdouble \fItimeout\fR); .fi .SH DESCRIPTION Backends are a special type of .BR filter (7) which is used to send print data to and discover different devices on the system. .LP Like filters, 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 as required by the physical interface. .LP The command name (\fIargv[0]\fR) is set to the device URI of the destination printer. Authentication information in .I argv[0] is removed, so backend developers are urged to use the .B DEVICE_URI environment variable whenever authentication information is required. The .BR cupsBackendDeviceURI () function may be used to retrieve the correct device URI. .LP Back-channel data from the device should be relayed to the job filters using the \fIcupsBackChannelWrite\fR function. .LP Backends are responsible for reading side-channel requests using the .BR cupsSideChannelRead () function and responding with the .BR cupsSideChannelWrite () function. The .B CUPS_SC_FD constant defines the file descriptor that should be monitored for incoming requests. .SS DEVICE DISCOVERY When run with no arguments, the backend should list the devices and schemes it supports or is advertising to the standard output. The output consists of zero or more lines consisting of any of the following forms: .nf device-class scheme "Unknown" "device-info" device-class device-uri "device-make-and-model" "device-info" device-class device-uri "device-make-and-model" "device-info" "device-id" device-class device-uri "device-make-and-model" "device-info" "device-id" "device-location" .fi .LP The .BR cupsBackendReport () function can be used to generate these lines and handle any necessary escaping of characters in the various strings. .LP The .I device-class field is one of the following values: .TP 5 .B direct The device-uri refers to a specific direct-access device with no options, such as a parallel, USB, or SCSI device. .TP 5 .B file The device-uri refers to a file on disk. .TP 5 .B network The device-uri refers to a networked device and conforms to the general form for network URIs. .TP 5 .B serial The device-uri refers to a serial device with configurable baud rate and other options. If the device-uri contains a baud value, it represents the maximum baud rate supported by the device. .LP The .I scheme field provides the URI scheme that is supported by the backend. Backends should use this form only when the backend supports any URI using that scheme. The .I device-uri field specifies the full URI to use when communicating with the device. .LP The .I device-make-and-model field specifies the make and model of the device, e.g. "Example Foojet 2000". If the make and model is not known, you must report "Unknown". .LP The .I device-info field specifies additional information about the device. Typically this includes the make and model along with the port number or network address, e.g. "Example Foojet 2000 USB #1". .LP The optional .I device-id field specifies the IEEE-1284 device ID string for the device, which is used to select a matching driver. .LP The optional .I device-location field specifies the physical location of the device, which is often used to pre-populate the printer-location attribute when adding a printer. .SS PERMISSIONS Backends without world read and execute permissions are run as the root user. Otherwise, the backend is run using an unprivileged user account, typically "lp". .SH EXIT STATUS The following exit codes are defined for backends: .TP 5 .B CUPS_BACKEND_OK The print file was successfully transmitted to the device or remote server. .TP 5 .B CUPS_BACKEND_FAILED .br The print file was not successfully transmitted to the device or remote server. The scheduler will respond to this by canceling the job, retrying the job, or stopping the queue depending on the state of the .I printer-error-policy attribute. .TP 5 .B CUPS_BACKEND_AUTH_REQUIRED The print file was not successfully transmitted because valid authentication information is required. The scheduler will respond to this by holding the job and adding the 'cups-held-for-authentication' keyword to the "job-reasons" Job Description attribute. .TP 5 .B CUPS_BACKEND_HOLD The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by holding the job. .TP 5 .B CUPS_BACKEND_STOP The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by stopping the queue. .TP 5 .B CUPS_BACKEND_CANCEL The print file was not successfully transmitted because one or more attributes are not supported or the job was canceled at the printer. The scheduler will respond to this by canceling the job. .TP 5 .B CUPS_BACKEND_RETRY The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job at a future time - other jobs may print before this one. .TP 5 .B CUPS_BACKEND_RETRY_CURRENT The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job immediately without allowing intervening jobs. .PP All other exit code values are reserved. .SH ENVIRONMENT In addition to the environment variables listed in .BR cups (1) and .BR filter (7), CUPS backends can expect the following environment variable: .TP 5 .B DEVICE_URI The device URI associated with the printer. .SH FILES .I /etc/cups/cups-files.conf .SH NOTES CUPS backends are not generally designed to be run directly by the user. Aside from the device URI issue ( .I argv[0] and .B DEVICE_URI environment variable contain the device URI), CUPS backends also expect specific environment variables and file descriptors, and typically run in a user session that (on macOS) has additional restrictions that affect how it runs. Backends can also be installed with restricted permissions (0500 or 0700) that tell the scheduler to run them as the "root" user instead of an unprivileged user (typically "lp") on the system. .LP Unless you are a developer and know what you are doing, please do not run backends directly. Instead, use the .BR lp (1) or .BR lpr (1) programs to send print jobs or .BR lpinfo (8) to query for available printers using the backend. The one exception is the SNMP backend - see .BR cups-snmp (8) for more information. .SH NOTES CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as .BR ippeveprinter (1). .SH SEE ALSO .IR cups (1), .IR cups-files.conf (5), .IR cups-snmp (8), .IR cupsd (8), .IR filter (7), .IR lp (1), .IR lpinfo (8), .IR lpr (1), .br CUPS Online Help (http://localhost:631/help) .SH COPYRIGHT Copyright \[co] 2021-2023 by OpenPrinting. cups-2.4.7/man/Makefile0000644000175000017500000001006314502571342014574 0ustar zdohnalzdohnal# # Man page makefile for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1993-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs # # Man pages... # MAN1 = cancel.1 \ cups.1 \ cups-config.1 \ cupstestppd.1 \ ippeveprinter.1 \ $(IPPFIND_MAN) \ ipptool.1 \ lp.1 \ lpoptions.1 \ lpq.1 \ lprm.1 \ lpr.1 \ lpstat.1 \ ppdc.1 \ ppdhtml.1 \ ppdi.1 \ ppdmerge.1 \ ppdpo.1 MAN5 = classes.conf.5 \ client.conf.5 \ cups-files.conf.5 \ cups-snmp.conf.5 \ cupsd.conf.5 \ cupsd-logs.5 \ ipptoolfile.5 \ mailto.conf.5 \ mime.convs.5 \ mime.types.5 \ ppdcfile.5 \ printers.conf.5 \ subscriptions.conf.5 MAN7 = backend.7 \ filter.7 \ ippevepcl.7 \ notifier.7 MAN8 = cupsaccept.8 \ cupsctl.8 \ cupsfilter.8 \ cups-lpd.8 \ cups-snmp.8 \ cupsd.8 \ cupsd-helper.8 \ cupsenable.8 \ lpadmin.8 \ lpinfo.8 \ lpmove.8 \ lpc.8 # # Make everything... # all: $(MAN1) $(MAN5) $(MAN7) $(MAN8) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: $(RM) mantohtml mantohtml.o # # Dummy depend target... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: all echo Installing man pages in $(MANDIR)/man1... $(INSTALL_DIR) -m 755 $(MANDIR)/man1 for file in $(MAN1); do \ $(INSTALL_MAN) $$file $(MANDIR)/man1; \ done echo Installing man pages in $(MANDIR)/man5... $(INSTALL_DIR) -m 755 $(MANDIR)/man5 for file in $(MAN5); do \ $(INSTALL_MAN) $$file $(MANDIR)/man5; \ done echo Installing man pages in $(MANDIR)/man7... $(INSTALL_DIR) -m 755 $(MANDIR)/man7 for file in $(MAN7); do \ $(INSTALL_MAN) $$file $(MANDIR)/man7; \ done $(RM) $(MANDIR)/man7/ippeveps.7 $(LN) ippevepcl.7 $(MANDIR)/man7/ippeveps.7 echo Installing man pages in $(MANDIR)/man8... $(INSTALL_DIR) -m 755 $(MANDIR)/man8 for file in $(MAN8); do \ $(INSTALL_MAN) $$file $(MANDIR)/man8; \ done $(RM) $(MANDIR)/man8/cupsdisable.8 $(LN) cupsenable.8 $(MANDIR)/man8/cupsdisable.8 $(RM) $(MANDIR)/man8/cupsreject.8 $(LN) cupsaccept.8 $(MANDIR)/man8/cupsreject.8 for file in cups-deviced.8 cups-driverd.8 cups-exec.8; do \ $(RM) $(MANDIR)/man8/$$file; \ $(LN) cupsd-helper.8 $(MANDIR)/man8/$$file; \ done # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: echo Uninstalling man pages from $(MANDIR)/man1... for file in $(MAN1); do \ $(RM) $(MANDIR)/man1/$$file; \ done -$(RMDIR) $(MANDIR)/man1 echo Uninstalling man pages from $(MANDIR)/man5... for file in $(MAN5); do \ $(RM) $(MANDIR)/man5/$$file; \ done -$(RMDIR) $(MANDIR)/man5 echo Uninstalling man pages from $(MANDIR)/man7... for file in $(MAN7) ippeveps.7; do \ $(RM) $(MANDIR)/man7/$$file; \ done -$(RMDIR) $(MANDIR)/man7 echo Uninstalling man pages from $(MANDIR)/man8... for file in $(MAN8) cupsenable.8 cupsreject.8 cups-deviced.8 cups-driverd.8 cups-exec.8; do \ $(RM) $(MANDIR)/man8/$$file; \ done -$(RMDIR) $(MANDIR)/man8 # # Local programs (not built when cross-compiling...) # local: html # # Make html versions of man pages... # html: $(MAN1) $(MAN5) $(MAN7) $(MAN8) mantohtml echo Converting man pages to HTML... for file in $(MAN1); do \ echo " $$file..."; \ ./mantohtml $$file >../doc/help/man-`basename $$file .1`.html; \ done for file in $(MAN5); do \ echo " $$file..."; \ ./mantohtml $$file >../doc/help/man-`basename $$file .5`.html; \ done for file in $(MAN7); do \ echo " $$file..."; \ ./mantohtml $$file >../doc/help/man-`basename $$file .7`.html; \ done for file in $(MAN8); do \ echo " $$file..."; \ ./mantohtml $$file >../doc/help/man-`basename $$file .8`.html; \ done mantohtml: mantohtml.o ../cups/$(LIBCUPSSTATIC) $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ mantohtml.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ cups-2.4.7/locale/0000755000175000017500000000000014502571342013620 5ustar zdohnalzdohnalcups-2.4.7/locale/po2strings.c0000644000175000017500000001734214502571342016105 0ustar zdohnalzdohnal/* * Convert a GNU gettext .po file to an Apple .strings file. * * Copyright 2007-2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. * * Usage: * * po2strings filename.strings filename.po * * Compile with: * * gcc -o po2strings po2strings.c `cups-config --libs` */ #include /* * The .strings file format is simple: * * // comment * "msgid" = "msgstr"; * * The GNU gettext .po format is also fairly simple: * * #. comment * msgid "some text" * msgstr "localized text" * * The comment, msgid, and msgstr text can span multiple lines using the form: * * #. comment * #. more comments * msgid "" * "some long text" * msgstr "" * "localized text spanning " * "multiple lines" * * Both the msgid and msgstr strings use standard C quoting for special * characters like newline and the double quote character. */ static char *normalize_string(const char *idstr, char *buffer, size_t bufsize); /* * main() - Convert .po file to .strings. */ int /* O - Exit code */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *pofile, /* .po filename */ *stringsfile; /* .strings filename */ cups_file_t *po, /* .po file */ *strings; /* .strings file */ char s[4096], /* String buffer */ *ptr, /* Pointer into buffer */ *temp, /* New string */ *msgid, /* msgid string */ *msgstr, /* msgstr string */ normalized[8192];/* Normalized msgid string */ size_t length; /* Length of combined strings */ int use_msgid; /* Use msgid strings for msgstr? */ /* * Process command-line arguments... */ pofile = NULL; stringsfile = NULL; use_msgid = 0; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "-m")) use_msgid = 1; else if (argv[i][0] == '-') { puts("Usage: po2strings [-m] filename.po filename.strings"); return (1); } else if (!pofile) pofile = argv[i]; else if (!stringsfile) stringsfile = argv[i]; else { puts("Usage: po2strings [-m] filename.po filename.strings"); return (1); } } if (!pofile || !stringsfile) { puts("Usage: po2strings [-m] filename.po filename.strings"); return (1); } /* * Read strings from the .po file and write to the .strings file... */ if ((po = cupsFileOpen(pofile, "r")) == NULL) { perror(pofile); return (1); } if ((strings = cupsFileOpen(stringsfile, "w")) == NULL) { perror(stringsfile); cupsFileClose(po); return (1); } msgid = msgstr = NULL; while (cupsFileGets(po, s, sizeof(s)) != NULL) { if (s[0] == '#' && s[1] == '.') { /* * Copy comment string... */ if (msgid && msgstr) { /* * First output the last localization string... */ if (*msgid) cupsFilePrintf(strings, "\"%s\" = \"%s\";\n", msgid, (use_msgid || !*msgstr) ? msgid : msgstr); free(msgid); free(msgstr); msgid = msgstr = NULL; } cupsFilePrintf(strings, "//%s\n", s + 2); } else if (s[0] == '#' || !s[0]) { /* * Skip blank and file comment lines... */ continue; } else { /* * Strip the trailing quote... */ if ((ptr = strrchr(s, '\"')) == NULL) continue; *ptr = '\0'; /* * Find start of value... */ if ((ptr = strchr(s, '\"')) == NULL) continue; ptr ++; /* * Create or add to a message... */ if (!strncmp(s, "msgid", 5)) { /* * Output previous message as needed... */ if (msgid && msgstr) { if (*msgid) cupsFilePrintf(strings, "\"%s\" = \"%s\";\n", msgid, normalize_string((use_msgid || !*msgstr) ? msgid : msgstr, normalized, sizeof(normalized))); } if (msgid) free(msgid); if (msgstr) free(msgstr); msgid = strdup(ptr); msgstr = NULL; } else if (s[0] == '\"' && (msgid || msgstr)) { /* * Append to current string... */ size_t ptrlen = strlen(ptr); /* Length of string */ length = strlen(msgstr ? msgstr : msgid); if ((temp = realloc(msgstr ? msgstr : msgid, length + ptrlen + 1)) == NULL) { free(msgid); if (msgstr) free(msgstr); perror("Unable to allocate string"); return (1); } if (msgstr) { /* * Copy the new portion to the end of the msgstr string - safe * to use strcpy because the buffer is allocated to the correct * size... */ msgstr = temp; memcpy(msgstr + length, ptr, ptrlen + 1); } else { /* * Copy the new portion to the end of the msgid string - safe * to use strcpy because the buffer is allocated to the correct * size... */ msgid = temp; memcpy(msgid + length, ptr, ptrlen + 1); } } else if (!strncmp(s, "msgstr", 6) && msgid) { /* * Set the string... */ if (msgstr) free(msgstr); if ((msgstr = strdup(ptr)) == NULL) { free(msgid); perror("Unable to allocate msgstr"); return (1); } } } } if (msgid && msgstr) { if (*msgid) cupsFilePrintf(strings, "\"%s\" = \"%s\";\n", msgid, normalize_string((use_msgid || !*msgstr) ? msgid : msgstr, normalized, sizeof(normalized))); } if (msgid) free(msgid); if (msgstr) free(msgstr); cupsFileClose(po); cupsFileClose(strings); return (0); } /* * 'normalize_string()' - Normalize a msgid string. * * This function converts ASCII ellipsis and double quotes to their Unicode * counterparts. */ static char * /* O - Normalized string */ normalize_string(const char *idstr, /* I - msgid string */ char *buffer, /* I - Normalized string buffer */ size_t bufsize) /* I - Size of string buffer */ { char *bufptr = buffer, /* Pointer into buffer */ *bufend = buffer + bufsize - 3; /* End of buffer */ int quote = 0, /* Quote direction */ html = 0; /* HTML text */ while (*idstr && bufptr < bufend) { if (!strncmp(idstr, "') html = 0; if (*idstr == '.' && idstr[1] == '.' && idstr[2] == '.') { /* * Convert ... to Unicode ellipsis... */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0xA6; idstr += 2; } else if (!html && *idstr == '\\' && idstr[1] == '\"') { if (quote) { /* * Convert second \" to Unicode right (curley) double quote. */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0x9D; quote = 0; } else if (strchr(idstr + 2, '\"') != NULL) { /* * Convert first \" to Unicode left (curley) double quote. */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0x9C; quote = 1; } else { /* * Convert lone \" to Unicode double prime. */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0xB3; } idstr ++; } else if (*idstr == '\'') { if (strchr(idstr + 1, '\'') == NULL || quote) { /* * Convert second ' (or ' used for a contraction) to Unicode right * (curley) single quote. */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0x99; quote = 0; } else { /* * Convert first ' to Unicode left (curley) single quote. */ *bufptr++ = (char)0xE2; *bufptr++ = (char)0x80; *bufptr++ = (char)0x98; quote = 1; } } else *bufptr++ = *idstr; idstr ++; } *bufptr = '\0'; return (buffer); } cups-2.4.7/locale/ipp-strings.c0000644000175000017500000047773114502571342016266 0ustar zdohnalzdohnal/* TRANSLATORS: Accuracy Units */ _("accuracy-units"); /* TRANSLATORS: Millimeters */ _("accuracy-units.mm"); /* TRANSLATORS: Nanometers */ _("accuracy-units.nm"); /* TRANSLATORS: Micrometers */ _("accuracy-units.um"); /* TRANSLATORS: Bale Output */ _("baling"); /* TRANSLATORS: Bale Using */ _("baling-type"); /* TRANSLATORS: Band */ _("baling-type.band"); /* TRANSLATORS: Shrink Wrap */ _("baling-type.shrink-wrap"); /* TRANSLATORS: Wrap */ _("baling-type.wrap"); /* TRANSLATORS: Bale After */ _("baling-when"); /* TRANSLATORS: Job */ _("baling-when.after-job"); /* TRANSLATORS: Sets */ _("baling-when.after-sets"); /* TRANSLATORS: Bind Output */ _("binding"); /* TRANSLATORS: Bind Edge */ _("binding-reference-edge"); /* TRANSLATORS: Bottom */ _("binding-reference-edge.bottom"); /* TRANSLATORS: Left */ _("binding-reference-edge.left"); /* TRANSLATORS: Right */ _("binding-reference-edge.right"); /* TRANSLATORS: Top */ _("binding-reference-edge.top"); /* TRANSLATORS: Binder Type */ _("binding-type"); /* TRANSLATORS: Adhesive */ _("binding-type.adhesive"); /* TRANSLATORS: Comb */ _("binding-type.comb"); /* TRANSLATORS: Flat */ _("binding-type.flat"); /* TRANSLATORS: Padding */ _("binding-type.padding"); /* TRANSLATORS: Perfect */ _("binding-type.perfect"); /* TRANSLATORS: Spiral */ _("binding-type.spiral"); /* TRANSLATORS: Tape */ _("binding-type.tape"); /* TRANSLATORS: Velo */ _("binding-type.velo"); /* TRANSLATORS: Chamber Humidity */ _("chamber-humidity"); /* TRANSLATORS: Chamber Temperature */ _("chamber-temperature"); /* TRANSLATORS: Print Job Cost */ _("charge-info-message"); /* TRANSLATORS: Coat Sheets */ _("coating"); /* TRANSLATORS: Add Coating To */ _("coating-sides"); /* TRANSLATORS: Back */ _("coating-sides.back"); /* TRANSLATORS: Front and Back */ _("coating-sides.both"); /* TRANSLATORS: Front */ _("coating-sides.front"); /* TRANSLATORS: Type of Coating */ _("coating-type"); /* TRANSLATORS: Archival */ _("coating-type.archival"); /* TRANSLATORS: Archival Glossy */ _("coating-type.archival-glossy"); /* TRANSLATORS: Archival Matte */ _("coating-type.archival-matte"); /* TRANSLATORS: Archival Semi Gloss */ _("coating-type.archival-semi-gloss"); /* TRANSLATORS: Glossy */ _("coating-type.glossy"); /* TRANSLATORS: High Gloss */ _("coating-type.high-gloss"); /* TRANSLATORS: Matte */ _("coating-type.matte"); /* TRANSLATORS: Semi-gloss */ _("coating-type.semi-gloss"); /* TRANSLATORS: Silicone */ _("coating-type.silicone"); /* TRANSLATORS: Translucent */ _("coating-type.translucent"); /* TRANSLATORS: Print Confirmation Sheet */ _("confirmation-sheet-print"); /* TRANSLATORS: Copies */ _("copies"); /* TRANSLATORS: Back Cover */ _("cover-back"); /* TRANSLATORS: Front Cover */ _("cover-front"); /* TRANSLATORS: Cover Sheet Info */ _("cover-sheet-info"); /* TRANSLATORS: Date Time */ _("cover-sheet-info-supported.date-time"); /* TRANSLATORS: From Name */ _("cover-sheet-info-supported.from-name"); /* TRANSLATORS: Logo */ _("cover-sheet-info-supported.logo"); /* TRANSLATORS: Message */ _("cover-sheet-info-supported.message"); /* TRANSLATORS: Organization */ _("cover-sheet-info-supported.organization"); /* TRANSLATORS: Subject */ _("cover-sheet-info-supported.subject"); /* TRANSLATORS: To Name */ _("cover-sheet-info-supported.to-name"); /* TRANSLATORS: Printed Cover */ _("cover-type"); /* TRANSLATORS: No Cover */ _("cover-type.no-cover"); /* TRANSLATORS: Back Only */ _("cover-type.print-back"); /* TRANSLATORS: Front and Back */ _("cover-type.print-both"); /* TRANSLATORS: Front Only */ _("cover-type.print-front"); /* TRANSLATORS: None */ _("cover-type.print-none"); /* TRANSLATORS: Cover Output */ _("covering"); /* TRANSLATORS: Add Cover */ _("covering-name"); /* TRANSLATORS: Plain */ _("covering-name.plain"); /* TRANSLATORS: Pre-cut */ _("covering-name.pre-cut"); /* TRANSLATORS: Pre-printed */ _("covering-name.pre-printed"); /* TRANSLATORS: Detailed Status Message */ _("detailed-status-message"); /* TRANSLATORS: Copies */ _("document-copies"); /* TRANSLATORS: Document Privacy Attributes */ _("document-privacy-attributes"); /* TRANSLATORS: All */ _("document-privacy-attributes.all"); /* TRANSLATORS: Default */ _("document-privacy-attributes.default"); /* TRANSLATORS: Document Description */ _("document-privacy-attributes.document-description"); /* TRANSLATORS: Document Template */ _("document-privacy-attributes.document-template"); /* TRANSLATORS: None */ _("document-privacy-attributes.none"); /* TRANSLATORS: Document Privacy Scope */ _("document-privacy-scope"); /* TRANSLATORS: All */ _("document-privacy-scope.all"); /* TRANSLATORS: Default */ _("document-privacy-scope.default"); /* TRANSLATORS: None */ _("document-privacy-scope.none"); /* TRANSLATORS: Owner */ _("document-privacy-scope.owner"); /* TRANSLATORS: Document State */ _("document-state"); /* TRANSLATORS: Detailed Document State */ _("document-state-reasons"); /* TRANSLATORS: Aborted By System */ _("document-state-reasons.aborted-by-system"); /* TRANSLATORS: Canceled At Device */ _("document-state-reasons.canceled-at-device"); /* TRANSLATORS: Canceled By Operator */ _("document-state-reasons.canceled-by-operator"); /* TRANSLATORS: Canceled By User */ _("document-state-reasons.canceled-by-user"); /* TRANSLATORS: Completed Successfully */ _("document-state-reasons.completed-successfully"); /* TRANSLATORS: Completed With Errors */ _("document-state-reasons.completed-with-errors"); /* TRANSLATORS: Completed With Warnings */ _("document-state-reasons.completed-with-warnings"); /* TRANSLATORS: Compression Error */ _("document-state-reasons.compression-error"); /* TRANSLATORS: Data Insufficient */ _("document-state-reasons.data-insufficient"); /* TRANSLATORS: Digital Signature Did Not Verify */ _("document-state-reasons.digital-signature-did-not-verify"); /* TRANSLATORS: Digital Signature Type Not Supported */ _("document-state-reasons.digital-signature-type-not-supported"); /* TRANSLATORS: Digital Signature Wait */ _("document-state-reasons.digital-signature-wait"); /* TRANSLATORS: Document Access Error */ _("document-state-reasons.document-access-error"); /* TRANSLATORS: Document Fetchable */ _("document-state-reasons.document-fetchable"); /* TRANSLATORS: Document Format Error */ _("document-state-reasons.document-format-error"); /* TRANSLATORS: Document Password Error */ _("document-state-reasons.document-password-error"); /* TRANSLATORS: Document Permission Error */ _("document-state-reasons.document-permission-error"); /* TRANSLATORS: Document Security Error */ _("document-state-reasons.document-security-error"); /* TRANSLATORS: Document Unprintable Error */ _("document-state-reasons.document-unprintable-error"); /* TRANSLATORS: Errors Detected */ _("document-state-reasons.errors-detected"); /* TRANSLATORS: Incoming */ _("document-state-reasons.incoming"); /* TRANSLATORS: Interpreting */ _("document-state-reasons.interpreting"); /* TRANSLATORS: None */ _("document-state-reasons.none"); /* TRANSLATORS: Outgoing */ _("document-state-reasons.outgoing"); /* TRANSLATORS: Printing */ _("document-state-reasons.printing"); /* TRANSLATORS: Processing To Stop Point */ _("document-state-reasons.processing-to-stop-point"); /* TRANSLATORS: Queued */ _("document-state-reasons.queued"); /* TRANSLATORS: Queued For Marker */ _("document-state-reasons.queued-for-marker"); /* TRANSLATORS: Queued In Device */ _("document-state-reasons.queued-in-device"); /* TRANSLATORS: Resources Are Not Ready */ _("document-state-reasons.resources-are-not-ready"); /* TRANSLATORS: Resources Are Not Supported */ _("document-state-reasons.resources-are-not-supported"); /* TRANSLATORS: Submission Interrupted */ _("document-state-reasons.submission-interrupted"); /* TRANSLATORS: Transforming */ _("document-state-reasons.transforming"); /* TRANSLATORS: Unsupported Compression */ _("document-state-reasons.unsupported-compression"); /* TRANSLATORS: Unsupported Document Format */ _("document-state-reasons.unsupported-document-format"); /* TRANSLATORS: Warnings Detected */ _("document-state-reasons.warnings-detected"); /* TRANSLATORS: Pending */ _("document-state.3"); /* TRANSLATORS: Processing */ _("document-state.5"); /* TRANSLATORS: Stopped */ _("document-state.6"); /* TRANSLATORS: Canceled */ _("document-state.7"); /* TRANSLATORS: Aborted */ _("document-state.8"); /* TRANSLATORS: Completed */ _("document-state.9"); /* TRANSLATORS: Feed Orientation */ _("feed-orientation"); /* TRANSLATORS: Long Edge First */ _("feed-orientation.long-edge-first"); /* TRANSLATORS: Short Edge First */ _("feed-orientation.short-edge-first"); /* TRANSLATORS: Fetch Status Code */ _("fetch-status-code"); /* TRANSLATORS: Finishing Template */ _("finishing-template"); /* TRANSLATORS: Bale */ _("finishing-template.bale"); /* TRANSLATORS: Bind */ _("finishing-template.bind"); /* TRANSLATORS: Bind Bottom */ _("finishing-template.bind-bottom"); /* TRANSLATORS: Bind Left */ _("finishing-template.bind-left"); /* TRANSLATORS: Bind Right */ _("finishing-template.bind-right"); /* TRANSLATORS: Bind Top */ _("finishing-template.bind-top"); /* TRANSLATORS: Booklet Maker */ _("finishing-template.booklet-maker"); /* TRANSLATORS: Coat */ _("finishing-template.coat"); /* TRANSLATORS: Cover */ _("finishing-template.cover"); /* TRANSLATORS: Edge Stitch */ _("finishing-template.edge-stitch"); /* TRANSLATORS: Edge Stitch Bottom */ _("finishing-template.edge-stitch-bottom"); /* TRANSLATORS: Edge Stitch Left */ _("finishing-template.edge-stitch-left"); /* TRANSLATORS: Edge Stitch Right */ _("finishing-template.edge-stitch-right"); /* TRANSLATORS: Edge Stitch Top */ _("finishing-template.edge-stitch-top"); /* TRANSLATORS: Fold */ _("finishing-template.fold"); /* TRANSLATORS: Accordion Fold */ _("finishing-template.fold-accordion"); /* TRANSLATORS: Double Gate Fold */ _("finishing-template.fold-double-gate"); /* TRANSLATORS: Engineering Z Fold */ _("finishing-template.fold-engineering-z"); /* TRANSLATORS: Gate Fold */ _("finishing-template.fold-gate"); /* TRANSLATORS: Half Fold */ _("finishing-template.fold-half"); /* TRANSLATORS: Half Z Fold */ _("finishing-template.fold-half-z"); /* TRANSLATORS: Left Gate Fold */ _("finishing-template.fold-left-gate"); /* TRANSLATORS: Letter Fold */ _("finishing-template.fold-letter"); /* TRANSLATORS: Parallel Fold */ _("finishing-template.fold-parallel"); /* TRANSLATORS: Poster Fold */ _("finishing-template.fold-poster"); /* TRANSLATORS: Right Gate Fold */ _("finishing-template.fold-right-gate"); /* TRANSLATORS: Z Fold */ _("finishing-template.fold-z"); /* TRANSLATORS: JDF F10-1 */ _("finishing-template.jdf-f10-1"); /* TRANSLATORS: JDF F10-2 */ _("finishing-template.jdf-f10-2"); /* TRANSLATORS: JDF F10-3 */ _("finishing-template.jdf-f10-3"); /* TRANSLATORS: JDF F12-1 */ _("finishing-template.jdf-f12-1"); /* TRANSLATORS: JDF F12-10 */ _("finishing-template.jdf-f12-10"); /* TRANSLATORS: JDF F12-11 */ _("finishing-template.jdf-f12-11"); /* TRANSLATORS: JDF F12-12 */ _("finishing-template.jdf-f12-12"); /* TRANSLATORS: JDF F12-13 */ _("finishing-template.jdf-f12-13"); /* TRANSLATORS: JDF F12-14 */ _("finishing-template.jdf-f12-14"); /* TRANSLATORS: JDF F12-2 */ _("finishing-template.jdf-f12-2"); /* TRANSLATORS: JDF F12-3 */ _("finishing-template.jdf-f12-3"); /* TRANSLATORS: JDF F12-4 */ _("finishing-template.jdf-f12-4"); /* TRANSLATORS: JDF F12-5 */ _("finishing-template.jdf-f12-5"); /* TRANSLATORS: JDF F12-6 */ _("finishing-template.jdf-f12-6"); /* TRANSLATORS: JDF F12-7 */ _("finishing-template.jdf-f12-7"); /* TRANSLATORS: JDF F12-8 */ _("finishing-template.jdf-f12-8"); /* TRANSLATORS: JDF F12-9 */ _("finishing-template.jdf-f12-9"); /* TRANSLATORS: JDF F14-1 */ _("finishing-template.jdf-f14-1"); /* TRANSLATORS: JDF F16-1 */ _("finishing-template.jdf-f16-1"); /* TRANSLATORS: JDF F16-10 */ _("finishing-template.jdf-f16-10"); /* TRANSLATORS: JDF F16-11 */ _("finishing-template.jdf-f16-11"); /* TRANSLATORS: JDF F16-12 */ _("finishing-template.jdf-f16-12"); /* TRANSLATORS: JDF F16-13 */ _("finishing-template.jdf-f16-13"); /* TRANSLATORS: JDF F16-14 */ _("finishing-template.jdf-f16-14"); /* TRANSLATORS: JDF F16-2 */ _("finishing-template.jdf-f16-2"); /* TRANSLATORS: JDF F16-3 */ _("finishing-template.jdf-f16-3"); /* TRANSLATORS: JDF F16-4 */ _("finishing-template.jdf-f16-4"); /* TRANSLATORS: JDF F16-5 */ _("finishing-template.jdf-f16-5"); /* TRANSLATORS: JDF F16-6 */ _("finishing-template.jdf-f16-6"); /* TRANSLATORS: JDF F16-7 */ _("finishing-template.jdf-f16-7"); /* TRANSLATORS: JDF F16-8 */ _("finishing-template.jdf-f16-8"); /* TRANSLATORS: JDF F16-9 */ _("finishing-template.jdf-f16-9"); /* TRANSLATORS: JDF F18-1 */ _("finishing-template.jdf-f18-1"); /* TRANSLATORS: JDF F18-2 */ _("finishing-template.jdf-f18-2"); /* TRANSLATORS: JDF F18-3 */ _("finishing-template.jdf-f18-3"); /* TRANSLATORS: JDF F18-4 */ _("finishing-template.jdf-f18-4"); /* TRANSLATORS: JDF F18-5 */ _("finishing-template.jdf-f18-5"); /* TRANSLATORS: JDF F18-6 */ _("finishing-template.jdf-f18-6"); /* TRANSLATORS: JDF F18-7 */ _("finishing-template.jdf-f18-7"); /* TRANSLATORS: JDF F18-8 */ _("finishing-template.jdf-f18-8"); /* TRANSLATORS: JDF F18-9 */ _("finishing-template.jdf-f18-9"); /* TRANSLATORS: JDF F2-1 */ _("finishing-template.jdf-f2-1"); /* TRANSLATORS: JDF F20-1 */ _("finishing-template.jdf-f20-1"); /* TRANSLATORS: JDF F20-2 */ _("finishing-template.jdf-f20-2"); /* TRANSLATORS: JDF F24-1 */ _("finishing-template.jdf-f24-1"); /* TRANSLATORS: JDF F24-10 */ _("finishing-template.jdf-f24-10"); /* TRANSLATORS: JDF F24-11 */ _("finishing-template.jdf-f24-11"); /* TRANSLATORS: JDF F24-2 */ _("finishing-template.jdf-f24-2"); /* TRANSLATORS: JDF F24-3 */ _("finishing-template.jdf-f24-3"); /* TRANSLATORS: JDF F24-4 */ _("finishing-template.jdf-f24-4"); /* TRANSLATORS: JDF F24-5 */ _("finishing-template.jdf-f24-5"); /* TRANSLATORS: JDF F24-6 */ _("finishing-template.jdf-f24-6"); /* TRANSLATORS: JDF F24-7 */ _("finishing-template.jdf-f24-7"); /* TRANSLATORS: JDF F24-8 */ _("finishing-template.jdf-f24-8"); /* TRANSLATORS: JDF F24-9 */ _("finishing-template.jdf-f24-9"); /* TRANSLATORS: JDF F28-1 */ _("finishing-template.jdf-f28-1"); /* TRANSLATORS: JDF F32-1 */ _("finishing-template.jdf-f32-1"); /* TRANSLATORS: JDF F32-2 */ _("finishing-template.jdf-f32-2"); /* TRANSLATORS: JDF F32-3 */ _("finishing-template.jdf-f32-3"); /* TRANSLATORS: JDF F32-4 */ _("finishing-template.jdf-f32-4"); /* TRANSLATORS: JDF F32-5 */ _("finishing-template.jdf-f32-5"); /* TRANSLATORS: JDF F32-6 */ _("finishing-template.jdf-f32-6"); /* TRANSLATORS: JDF F32-7 */ _("finishing-template.jdf-f32-7"); /* TRANSLATORS: JDF F32-8 */ _("finishing-template.jdf-f32-8"); /* TRANSLATORS: JDF F32-9 */ _("finishing-template.jdf-f32-9"); /* TRANSLATORS: JDF F36-1 */ _("finishing-template.jdf-f36-1"); /* TRANSLATORS: JDF F36-2 */ _("finishing-template.jdf-f36-2"); /* TRANSLATORS: JDF F4-1 */ _("finishing-template.jdf-f4-1"); /* TRANSLATORS: JDF F4-2 */ _("finishing-template.jdf-f4-2"); /* TRANSLATORS: JDF F40-1 */ _("finishing-template.jdf-f40-1"); /* TRANSLATORS: JDF F48-1 */ _("finishing-template.jdf-f48-1"); /* TRANSLATORS: JDF F48-2 */ _("finishing-template.jdf-f48-2"); /* TRANSLATORS: JDF F6-1 */ _("finishing-template.jdf-f6-1"); /* TRANSLATORS: JDF F6-2 */ _("finishing-template.jdf-f6-2"); /* TRANSLATORS: JDF F6-3 */ _("finishing-template.jdf-f6-3"); /* TRANSLATORS: JDF F6-4 */ _("finishing-template.jdf-f6-4"); /* TRANSLATORS: JDF F6-5 */ _("finishing-template.jdf-f6-5"); /* TRANSLATORS: JDF F6-6 */ _("finishing-template.jdf-f6-6"); /* TRANSLATORS: JDF F6-7 */ _("finishing-template.jdf-f6-7"); /* TRANSLATORS: JDF F6-8 */ _("finishing-template.jdf-f6-8"); /* TRANSLATORS: JDF F64-1 */ _("finishing-template.jdf-f64-1"); /* TRANSLATORS: JDF F64-2 */ _("finishing-template.jdf-f64-2"); /* TRANSLATORS: JDF F8-1 */ _("finishing-template.jdf-f8-1"); /* TRANSLATORS: JDF F8-2 */ _("finishing-template.jdf-f8-2"); /* TRANSLATORS: JDF F8-3 */ _("finishing-template.jdf-f8-3"); /* TRANSLATORS: JDF F8-4 */ _("finishing-template.jdf-f8-4"); /* TRANSLATORS: JDF F8-5 */ _("finishing-template.jdf-f8-5"); /* TRANSLATORS: JDF F8-6 */ _("finishing-template.jdf-f8-6"); /* TRANSLATORS: JDF F8-7 */ _("finishing-template.jdf-f8-7"); /* TRANSLATORS: Jog Offset */ _("finishing-template.jog-offset"); /* TRANSLATORS: Laminate */ _("finishing-template.laminate"); /* TRANSLATORS: Punch */ _("finishing-template.punch"); /* TRANSLATORS: Punch Bottom Left */ _("finishing-template.punch-bottom-left"); /* TRANSLATORS: Punch Bottom Right */ _("finishing-template.punch-bottom-right"); /* TRANSLATORS: 2-hole Punch Bottom */ _("finishing-template.punch-dual-bottom"); /* TRANSLATORS: 2-hole Punch Left */ _("finishing-template.punch-dual-left"); /* TRANSLATORS: 2-hole Punch Right */ _("finishing-template.punch-dual-right"); /* TRANSLATORS: 2-hole Punch Top */ _("finishing-template.punch-dual-top"); /* TRANSLATORS: Multi-hole Punch Bottom */ _("finishing-template.punch-multiple-bottom"); /* TRANSLATORS: Multi-hole Punch Left */ _("finishing-template.punch-multiple-left"); /* TRANSLATORS: Multi-hole Punch Right */ _("finishing-template.punch-multiple-right"); /* TRANSLATORS: Multi-hole Punch Top */ _("finishing-template.punch-multiple-top"); /* TRANSLATORS: 4-hole Punch Bottom */ _("finishing-template.punch-quad-bottom"); /* TRANSLATORS: 4-hole Punch Left */ _("finishing-template.punch-quad-left"); /* TRANSLATORS: 4-hole Punch Right */ _("finishing-template.punch-quad-right"); /* TRANSLATORS: 4-hole Punch Top */ _("finishing-template.punch-quad-top"); /* TRANSLATORS: Punch Top Left */ _("finishing-template.punch-top-left"); /* TRANSLATORS: Punch Top Right */ _("finishing-template.punch-top-right"); /* TRANSLATORS: 3-hole Punch Bottom */ _("finishing-template.punch-triple-bottom"); /* TRANSLATORS: 3-hole Punch Left */ _("finishing-template.punch-triple-left"); /* TRANSLATORS: 3-hole Punch Right */ _("finishing-template.punch-triple-right"); /* TRANSLATORS: 3-hole Punch Top */ _("finishing-template.punch-triple-top"); /* TRANSLATORS: Saddle Stitch */ _("finishing-template.saddle-stitch"); /* TRANSLATORS: Staple */ _("finishing-template.staple"); /* TRANSLATORS: Staple Bottom Left */ _("finishing-template.staple-bottom-left"); /* TRANSLATORS: Staple Bottom Right */ _("finishing-template.staple-bottom-right"); /* TRANSLATORS: 2 Staples on Bottom */ _("finishing-template.staple-dual-bottom"); /* TRANSLATORS: 2 Staples on Left */ _("finishing-template.staple-dual-left"); /* TRANSLATORS: 2 Staples on Right */ _("finishing-template.staple-dual-right"); /* TRANSLATORS: 2 Staples on Top */ _("finishing-template.staple-dual-top"); /* TRANSLATORS: Staple Top Left */ _("finishing-template.staple-top-left"); /* TRANSLATORS: Staple Top Right */ _("finishing-template.staple-top-right"); /* TRANSLATORS: 3 Staples on Bottom */ _("finishing-template.staple-triple-bottom"); /* TRANSLATORS: 3 Staples on Left */ _("finishing-template.staple-triple-left"); /* TRANSLATORS: 3 Staples on Right */ _("finishing-template.staple-triple-right"); /* TRANSLATORS: 3 Staples on Top */ _("finishing-template.staple-triple-top"); /* TRANSLATORS: Trim */ _("finishing-template.trim"); /* TRANSLATORS: Trim After Every Set */ _("finishing-template.trim-after-copies"); /* TRANSLATORS: Trim After Every Document */ _("finishing-template.trim-after-documents"); /* TRANSLATORS: Trim After Job */ _("finishing-template.trim-after-job"); /* TRANSLATORS: Trim After Every Page */ _("finishing-template.trim-after-pages"); /* TRANSLATORS: Trim After Every Set */ _("finishing-template.trim-after-sets"); /* TRANSLATORS: Trim After Every Page */ _("finishing-template.trim-after-sheets"); /* TRANSLATORS: Finishings */ _("finishings"); /* TRANSLATORS: Finishings */ _("finishings-col"); /* TRANSLATORS: Fold */ _("finishings.10"); /* TRANSLATORS: Z Fold */ _("finishings.100"); /* TRANSLATORS: Engineering Z Fold */ _("finishings.101"); /* TRANSLATORS: Trim */ _("finishings.11"); /* TRANSLATORS: Bale */ _("finishings.12"); /* TRANSLATORS: Booklet Maker */ _("finishings.13"); /* TRANSLATORS: Jog Offset */ _("finishings.14"); /* TRANSLATORS: Coat */ _("finishings.15"); /* TRANSLATORS: Laminate */ _("finishings.16"); /* TRANSLATORS: Staple Top Left */ _("finishings.20"); /* TRANSLATORS: Staple Bottom Left */ _("finishings.21"); /* TRANSLATORS: Staple Top Right */ _("finishings.22"); /* TRANSLATORS: Staple Bottom Right */ _("finishings.23"); /* TRANSLATORS: Edge Stitch Left */ _("finishings.24"); /* TRANSLATORS: Edge Stitch Top */ _("finishings.25"); /* TRANSLATORS: Edge Stitch Right */ _("finishings.26"); /* TRANSLATORS: Edge Stitch Bottom */ _("finishings.27"); /* TRANSLATORS: 2 Staples on Left */ _("finishings.28"); /* TRANSLATORS: 2 Staples on Top */ _("finishings.29"); /* TRANSLATORS: None */ _("finishings.3"); /* TRANSLATORS: 2 Staples on Right */ _("finishings.30"); /* TRANSLATORS: 2 Staples on Bottom */ _("finishings.31"); /* TRANSLATORS: 3 Staples on Left */ _("finishings.32"); /* TRANSLATORS: 3 Staples on Top */ _("finishings.33"); /* TRANSLATORS: 3 Staples on Right */ _("finishings.34"); /* TRANSLATORS: 3 Staples on Bottom */ _("finishings.35"); /* TRANSLATORS: Staple */ _("finishings.4"); /* TRANSLATORS: Punch */ _("finishings.5"); /* TRANSLATORS: Bind Left */ _("finishings.50"); /* TRANSLATORS: Bind Top */ _("finishings.51"); /* TRANSLATORS: Bind Right */ _("finishings.52"); /* TRANSLATORS: Bind Bottom */ _("finishings.53"); /* TRANSLATORS: Cover */ _("finishings.6"); /* TRANSLATORS: Trim Pages */ _("finishings.60"); /* TRANSLATORS: Trim Documents */ _("finishings.61"); /* TRANSLATORS: Trim Copies */ _("finishings.62"); /* TRANSLATORS: Trim Job */ _("finishings.63"); /* TRANSLATORS: Bind */ _("finishings.7"); /* TRANSLATORS: Punch Top Left */ _("finishings.70"); /* TRANSLATORS: Punch Bottom Left */ _("finishings.71"); /* TRANSLATORS: Punch Top Right */ _("finishings.72"); /* TRANSLATORS: Punch Bottom Right */ _("finishings.73"); /* TRANSLATORS: 2-hole Punch Left */ _("finishings.74"); /* TRANSLATORS: 2-hole Punch Top */ _("finishings.75"); /* TRANSLATORS: 2-hole Punch Right */ _("finishings.76"); /* TRANSLATORS: 2-hole Punch Bottom */ _("finishings.77"); /* TRANSLATORS: 3-hole Punch Left */ _("finishings.78"); /* TRANSLATORS: 3-hole Punch Top */ _("finishings.79"); /* TRANSLATORS: Saddle Stitch */ _("finishings.8"); /* TRANSLATORS: 3-hole Punch Right */ _("finishings.80"); /* TRANSLATORS: 3-hole Punch Bottom */ _("finishings.81"); /* TRANSLATORS: 4-hole Punch Left */ _("finishings.82"); /* TRANSLATORS: 4-hole Punch Top */ _("finishings.83"); /* TRANSLATORS: 4-hole Punch Right */ _("finishings.84"); /* TRANSLATORS: 4-hole Punch Bottom */ _("finishings.85"); /* TRANSLATORS: Multi-hole Punch Left */ _("finishings.86"); /* TRANSLATORS: Multi-hole Punch Top */ _("finishings.87"); /* TRANSLATORS: Multi-hole Punch Right */ _("finishings.88"); /* TRANSLATORS: Multi-hole Punch Bottom */ _("finishings.89"); /* TRANSLATORS: Edge Stitch */ _("finishings.9"); /* TRANSLATORS: Accordion Fold */ _("finishings.90"); /* TRANSLATORS: Double Gate Fold */ _("finishings.91"); /* TRANSLATORS: Gate Fold */ _("finishings.92"); /* TRANSLATORS: Half Fold */ _("finishings.93"); /* TRANSLATORS: Half Z Fold */ _("finishings.94"); /* TRANSLATORS: Left Gate Fold */ _("finishings.95"); /* TRANSLATORS: Letter Fold */ _("finishings.96"); /* TRANSLATORS: Parallel Fold */ _("finishings.97"); /* TRANSLATORS: Poster Fold */ _("finishings.98"); /* TRANSLATORS: Right Gate Fold */ _("finishings.99"); /* TRANSLATORS: Fold */ _("folding"); /* TRANSLATORS: Fold Direction */ _("folding-direction"); /* TRANSLATORS: Inward */ _("folding-direction.inward"); /* TRANSLATORS: Outward */ _("folding-direction.outward"); /* TRANSLATORS: Fold Position */ _("folding-offset"); /* TRANSLATORS: Fold Edge */ _("folding-reference-edge"); /* TRANSLATORS: Bottom */ _("folding-reference-edge.bottom"); /* TRANSLATORS: Left */ _("folding-reference-edge.left"); /* TRANSLATORS: Right */ _("folding-reference-edge.right"); /* TRANSLATORS: Top */ _("folding-reference-edge.top"); /* TRANSLATORS: Font Name */ _("font-name-requested"); /* TRANSLATORS: Font Size */ _("font-size-requested"); /* TRANSLATORS: Force Front Side */ _("force-front-side"); /* TRANSLATORS: From Name */ _("from-name"); /* TRANSLATORS: Imposition Template */ _("imposition-template"); /* TRANSLATORS: None */ _("imposition-template.none"); /* TRANSLATORS: Signature */ _("imposition-template.signature"); /* TRANSLATORS: Insert Page Number */ _("insert-after-page-number"); /* TRANSLATORS: Insert Count */ _("insert-count"); /* TRANSLATORS: Insert Sheet */ _("insert-sheet"); /* TRANSLATORS: Job Account ID */ _("job-account-id"); /* TRANSLATORS: Job Account Type */ _("job-account-type"); /* TRANSLATORS: General */ _("job-account-type.general"); /* TRANSLATORS: Group */ _("job-account-type.group"); /* TRANSLATORS: None */ _("job-account-type.none"); /* TRANSLATORS: Job Accounting Output Bin */ _("job-accounting-output-bin"); /* TRANSLATORS: Job Accounting Sheets */ _("job-accounting-sheets"); /* TRANSLATORS: Type of Job Accounting Sheets */ _("job-accounting-sheets-type"); /* TRANSLATORS: None */ _("job-accounting-sheets-type.none"); /* TRANSLATORS: Standard */ _("job-accounting-sheets-type.standard"); /* TRANSLATORS: Job Accounting User ID */ _("job-accounting-user-id"); /* TRANSLATORS: Job Cancel After */ _("job-cancel-after"); /* TRANSLATORS: Copies */ _("job-copies"); /* TRANSLATORS: Back Cover */ _("job-cover-back"); /* TRANSLATORS: Front Cover */ _("job-cover-front"); /* TRANSLATORS: Delay Output Until */ _("job-delay-output-until"); /* TRANSLATORS: Delay Output Until */ _("job-delay-output-until-time"); /* TRANSLATORS: Daytime */ _("job-delay-output-until.day-time"); /* TRANSLATORS: Evening */ _("job-delay-output-until.evening"); /* TRANSLATORS: Released */ _("job-delay-output-until.indefinite"); /* TRANSLATORS: Night */ _("job-delay-output-until.night"); /* TRANSLATORS: No Delay */ _("job-delay-output-until.no-delay-output"); /* TRANSLATORS: Second Shift */ _("job-delay-output-until.second-shift"); /* TRANSLATORS: Third Shift */ _("job-delay-output-until.third-shift"); /* TRANSLATORS: Weekend */ _("job-delay-output-until.weekend"); /* TRANSLATORS: On Error */ _("job-error-action"); /* TRANSLATORS: Abort Job */ _("job-error-action.abort-job"); /* TRANSLATORS: Cancel Job */ _("job-error-action.cancel-job"); /* TRANSLATORS: Continue Job */ _("job-error-action.continue-job"); /* TRANSLATORS: Suspend Job */ _("job-error-action.suspend-job"); /* TRANSLATORS: Print Error Sheet */ _("job-error-sheet"); /* TRANSLATORS: Type of Error Sheet */ _("job-error-sheet-type"); /* TRANSLATORS: None */ _("job-error-sheet-type.none"); /* TRANSLATORS: Standard */ _("job-error-sheet-type.standard"); /* TRANSLATORS: Print Error Sheet */ _("job-error-sheet-when"); /* TRANSLATORS: Always */ _("job-error-sheet-when.always"); /* TRANSLATORS: On Error */ _("job-error-sheet-when.on-error"); /* TRANSLATORS: Job Finishings */ _("job-finishings"); /* TRANSLATORS: Hold Until */ _("job-hold-until"); /* TRANSLATORS: Hold Until */ _("job-hold-until-time"); /* TRANSLATORS: Daytime */ _("job-hold-until.day-time"); /* TRANSLATORS: Evening */ _("job-hold-until.evening"); /* TRANSLATORS: Released */ _("job-hold-until.indefinite"); /* TRANSLATORS: Night */ _("job-hold-until.night"); /* TRANSLATORS: No Hold */ _("job-hold-until.no-hold"); /* TRANSLATORS: Second Shift */ _("job-hold-until.second-shift"); /* TRANSLATORS: Third Shift */ _("job-hold-until.third-shift"); /* TRANSLATORS: Weekend */ _("job-hold-until.weekend"); /* TRANSLATORS: Job Mandatory Attributes */ _("job-mandatory-attributes"); /* TRANSLATORS: Title */ _("job-name"); /* TRANSLATORS: Job Pages */ _("job-pages"); /* TRANSLATORS: Job Pages */ _("job-pages-col"); /* TRANSLATORS: Job Phone Number */ _("job-phone-number"); /* TRANSLATORS: Job Priority */ _("job-priority"); /* TRANSLATORS: Job Privacy Attributes */ _("job-privacy-attributes"); /* TRANSLATORS: All */ _("job-privacy-attributes.all"); /* TRANSLATORS: Default */ _("job-privacy-attributes.default"); /* TRANSLATORS: Job Description */ _("job-privacy-attributes.job-description"); /* TRANSLATORS: Job Template */ _("job-privacy-attributes.job-template"); /* TRANSLATORS: None */ _("job-privacy-attributes.none"); /* TRANSLATORS: Job Privacy Scope */ _("job-privacy-scope"); /* TRANSLATORS: All */ _("job-privacy-scope.all"); /* TRANSLATORS: Default */ _("job-privacy-scope.default"); /* TRANSLATORS: None */ _("job-privacy-scope.none"); /* TRANSLATORS: Owner */ _("job-privacy-scope.owner"); /* TRANSLATORS: Job Recipient Name */ _("job-recipient-name"); /* TRANSLATORS: Job Retain Until */ _("job-retain-until"); /* TRANSLATORS: Job Retain Until Interval */ _("job-retain-until-interval"); /* TRANSLATORS: Job Retain Until Time */ _("job-retain-until-time"); /* TRANSLATORS: End Of Day */ _("job-retain-until.end-of-day"); /* TRANSLATORS: End Of Month */ _("job-retain-until.end-of-month"); /* TRANSLATORS: End Of Week */ _("job-retain-until.end-of-week"); /* TRANSLATORS: Indefinite */ _("job-retain-until.indefinite"); /* TRANSLATORS: None */ _("job-retain-until.none"); /* TRANSLATORS: Job Save Disposition */ _("job-save-disposition"); /* TRANSLATORS: Job Sheet Message */ _("job-sheet-message"); /* TRANSLATORS: Banner Page */ _("job-sheets"); /* TRANSLATORS: Banner Page */ _("job-sheets-col"); /* TRANSLATORS: First Page in Document */ _("job-sheets.first-print-stream-page"); /* TRANSLATORS: Start and End Sheets */ _("job-sheets.job-both-sheet"); /* TRANSLATORS: End Sheet */ _("job-sheets.job-end-sheet"); /* TRANSLATORS: Start Sheet */ _("job-sheets.job-start-sheet"); /* TRANSLATORS: None */ _("job-sheets.none"); /* TRANSLATORS: Standard */ _("job-sheets.standard"); /* TRANSLATORS: Job State */ _("job-state"); /* TRANSLATORS: Job State Message */ _("job-state-message"); /* TRANSLATORS: Detailed Job State */ _("job-state-reasons"); /* TRANSLATORS: Stopping */ _("job-state-reasons.aborted-by-system"); /* TRANSLATORS: Account Authorization Failed */ _("job-state-reasons.account-authorization-failed"); /* TRANSLATORS: Account Closed */ _("job-state-reasons.account-closed"); /* TRANSLATORS: Account Info Needed */ _("job-state-reasons.account-info-needed"); /* TRANSLATORS: Account Limit Reached */ _("job-state-reasons.account-limit-reached"); /* TRANSLATORS: Decompression error */ _("job-state-reasons.compression-error"); /* TRANSLATORS: Conflicting Attributes */ _("job-state-reasons.conflicting-attributes"); /* TRANSLATORS: Connected To Destination */ _("job-state-reasons.connected-to-destination"); /* TRANSLATORS: Connecting To Destination */ _("job-state-reasons.connecting-to-destination"); /* TRANSLATORS: Destination Uri Failed */ _("job-state-reasons.destination-uri-failed"); /* TRANSLATORS: Digital Signature Did Not Verify */ _("job-state-reasons.digital-signature-did-not-verify"); /* TRANSLATORS: Digital Signature Type Not Supported */ _("job-state-reasons.digital-signature-type-not-supported"); /* TRANSLATORS: Document Access Error */ _("job-state-reasons.document-access-error"); /* TRANSLATORS: Document Format Error */ _("job-state-reasons.document-format-error"); /* TRANSLATORS: Document Password Error */ _("job-state-reasons.document-password-error"); /* TRANSLATORS: Document Permission Error */ _("job-state-reasons.document-permission-error"); /* TRANSLATORS: Document Security Error */ _("job-state-reasons.document-security-error"); /* TRANSLATORS: Document Unprintable Error */ _("job-state-reasons.document-unprintable-error"); /* TRANSLATORS: Errors Detected */ _("job-state-reasons.errors-detected"); /* TRANSLATORS: Canceled at printer */ _("job-state-reasons.job-canceled-at-device"); /* TRANSLATORS: Canceled by operator */ _("job-state-reasons.job-canceled-by-operator"); /* TRANSLATORS: Canceled by user */ _("job-state-reasons.job-canceled-by-user"); /* TRANSLATORS: */ _("job-state-reasons.job-completed-successfully"); /* TRANSLATORS: Completed with errors */ _("job-state-reasons.job-completed-with-errors"); /* TRANSLATORS: Completed with warnings */ _("job-state-reasons.job-completed-with-warnings"); /* TRANSLATORS: Insufficient data */ _("job-state-reasons.job-data-insufficient"); /* TRANSLATORS: Job Delay Output Until Specified */ _("job-state-reasons.job-delay-output-until-specified"); /* TRANSLATORS: Job Digital Signature Wait */ _("job-state-reasons.job-digital-signature-wait"); /* TRANSLATORS: Job Fetchable */ _("job-state-reasons.job-fetchable"); /* TRANSLATORS: Job Held For Review */ _("job-state-reasons.job-held-for-review"); /* TRANSLATORS: Job held */ _("job-state-reasons.job-hold-until-specified"); /* TRANSLATORS: Incoming */ _("job-state-reasons.job-incoming"); /* TRANSLATORS: Interpreting */ _("job-state-reasons.job-interpreting"); /* TRANSLATORS: Outgoing */ _("job-state-reasons.job-outgoing"); /* TRANSLATORS: Job Password Wait */ _("job-state-reasons.job-password-wait"); /* TRANSLATORS: Job Printed Successfully */ _("job-state-reasons.job-printed-successfully"); /* TRANSLATORS: Job Printed With Errors */ _("job-state-reasons.job-printed-with-errors"); /* TRANSLATORS: Job Printed With Warnings */ _("job-state-reasons.job-printed-with-warnings"); /* TRANSLATORS: Printing */ _("job-state-reasons.job-printing"); /* TRANSLATORS: Preparing to print */ _("job-state-reasons.job-queued"); /* TRANSLATORS: Processing document */ _("job-state-reasons.job-queued-for-marker"); /* TRANSLATORS: Job Release Wait */ _("job-state-reasons.job-release-wait"); /* TRANSLATORS: Restartable */ _("job-state-reasons.job-restartable"); /* TRANSLATORS: Job Resuming */ _("job-state-reasons.job-resuming"); /* TRANSLATORS: Job Saved Successfully */ _("job-state-reasons.job-saved-successfully"); /* TRANSLATORS: Job Saved With Errors */ _("job-state-reasons.job-saved-with-errors"); /* TRANSLATORS: Job Saved With Warnings */ _("job-state-reasons.job-saved-with-warnings"); /* TRANSLATORS: Job Saving */ _("job-state-reasons.job-saving"); /* TRANSLATORS: Job Spooling */ _("job-state-reasons.job-spooling"); /* TRANSLATORS: Job Streaming */ _("job-state-reasons.job-streaming"); /* TRANSLATORS: Suspended */ _("job-state-reasons.job-suspended"); /* TRANSLATORS: Job Suspended By Operator */ _("job-state-reasons.job-suspended-by-operator"); /* TRANSLATORS: Job Suspended By System */ _("job-state-reasons.job-suspended-by-system"); /* TRANSLATORS: Job Suspended By User */ _("job-state-reasons.job-suspended-by-user"); /* TRANSLATORS: Job Suspending */ _("job-state-reasons.job-suspending"); /* TRANSLATORS: Job Transferring */ _("job-state-reasons.job-transferring"); /* TRANSLATORS: Transforming */ _("job-state-reasons.job-transforming"); /* TRANSLATORS: None */ _("job-state-reasons.none"); /* TRANSLATORS: Printer offline */ _("job-state-reasons.printer-stopped"); /* TRANSLATORS: Printer partially stopped */ _("job-state-reasons.printer-stopped-partly"); /* TRANSLATORS: Stopping */ _("job-state-reasons.processing-to-stop-point"); /* TRANSLATORS: Ready */ _("job-state-reasons.queued-in-device"); /* TRANSLATORS: Resources Are Not Ready */ _("job-state-reasons.resources-are-not-ready"); /* TRANSLATORS: Resources Are Not Supported */ _("job-state-reasons.resources-are-not-supported"); /* TRANSLATORS: Service offline */ _("job-state-reasons.service-off-line"); /* TRANSLATORS: Submission Interrupted */ _("job-state-reasons.submission-interrupted"); /* TRANSLATORS: Unsupported Attributes Or Values */ _("job-state-reasons.unsupported-attributes-or-values"); /* TRANSLATORS: Unsupported Compression */ _("job-state-reasons.unsupported-compression"); /* TRANSLATORS: Unsupported Document Format */ _("job-state-reasons.unsupported-document-format"); /* TRANSLATORS: Waiting For User Action */ _("job-state-reasons.waiting-for-user-action"); /* TRANSLATORS: Warnings Detected */ _("job-state-reasons.warnings-detected"); /* TRANSLATORS: Pending */ _("job-state.3"); /* TRANSLATORS: Held */ _("job-state.4"); /* TRANSLATORS: Processing */ _("job-state.5"); /* TRANSLATORS: Stopped */ _("job-state.6"); /* TRANSLATORS: Canceled */ _("job-state.7"); /* TRANSLATORS: Aborted */ _("job-state.8"); /* TRANSLATORS: Completed */ _("job-state.9"); /* TRANSLATORS: Laminate Pages */ _("laminating"); /* TRANSLATORS: Laminate */ _("laminating-sides"); /* TRANSLATORS: Back Only */ _("laminating-sides.back"); /* TRANSLATORS: Front and Back */ _("laminating-sides.both"); /* TRANSLATORS: Front Only */ _("laminating-sides.front"); /* TRANSLATORS: Type of Lamination */ _("laminating-type"); /* TRANSLATORS: Archival */ _("laminating-type.archival"); /* TRANSLATORS: Glossy */ _("laminating-type.glossy"); /* TRANSLATORS: High Gloss */ _("laminating-type.high-gloss"); /* TRANSLATORS: Matte */ _("laminating-type.matte"); /* TRANSLATORS: Semi-gloss */ _("laminating-type.semi-gloss"); /* TRANSLATORS: Translucent */ _("laminating-type.translucent"); /* TRANSLATORS: Logo */ _("logo"); /* TRANSLATORS: Amount of Material */ _("material-amount"); /* TRANSLATORS: Amount Units */ _("material-amount-units"); /* TRANSLATORS: Grams */ _("material-amount-units.g"); /* TRANSLATORS: Kilograms */ _("material-amount-units.kg"); /* TRANSLATORS: Liters */ _("material-amount-units.l"); /* TRANSLATORS: Meters */ _("material-amount-units.m"); /* TRANSLATORS: Milliliters */ _("material-amount-units.ml"); /* TRANSLATORS: Millimeters */ _("material-amount-units.mm"); /* TRANSLATORS: Material Color */ _("material-color"); /* TRANSLATORS: Material Diameter */ _("material-diameter"); /* TRANSLATORS: Material Diameter Tolerance */ _("material-diameter-tolerance"); /* TRANSLATORS: Material Fill Density */ _("material-fill-density"); /* TRANSLATORS: Material Name */ _("material-name"); /* TRANSLATORS: Material Nozzle Diameter */ _("material-nozzle-diameter"); /* TRANSLATORS: Use Material For */ _("material-purpose"); /* TRANSLATORS: Everything */ _("material-purpose.all"); /* TRANSLATORS: Base */ _("material-purpose.base"); /* TRANSLATORS: In-fill */ _("material-purpose.in-fill"); /* TRANSLATORS: Shell */ _("material-purpose.shell"); /* TRANSLATORS: Supports */ _("material-purpose.support"); /* TRANSLATORS: Feed Rate */ _("material-rate"); /* TRANSLATORS: Feed Rate Units */ _("material-rate-units"); /* TRANSLATORS: Milligrams per second */ _("material-rate-units.mg_second"); /* TRANSLATORS: Milliliters per second */ _("material-rate-units.ml_second"); /* TRANSLATORS: Millimeters per second */ _("material-rate-units.mm_second"); /* TRANSLATORS: Material Retraction */ _("material-retraction"); /* TRANSLATORS: Material Shell Thickness */ _("material-shell-thickness"); /* TRANSLATORS: Material Temperature */ _("material-temperature"); /* TRANSLATORS: Material Type */ _("material-type"); /* TRANSLATORS: ABS */ _("material-type.abs"); /* TRANSLATORS: Carbon Fiber ABS */ _("material-type.abs-carbon-fiber"); /* TRANSLATORS: Carbon Nanotube ABS */ _("material-type.abs-carbon-nanotube"); /* TRANSLATORS: Chocolate */ _("material-type.chocolate"); /* TRANSLATORS: Gold */ _("material-type.gold"); /* TRANSLATORS: Nylon */ _("material-type.nylon"); /* TRANSLATORS: Pet */ _("material-type.pet"); /* TRANSLATORS: Photopolymer */ _("material-type.photopolymer"); /* TRANSLATORS: PLA */ _("material-type.pla"); /* TRANSLATORS: Conductive PLA */ _("material-type.pla-conductive"); /* TRANSLATORS: Pla Dissolvable */ _("material-type.pla-dissolvable"); /* TRANSLATORS: Flexible PLA */ _("material-type.pla-flexible"); /* TRANSLATORS: Magnetic PLA */ _("material-type.pla-magnetic"); /* TRANSLATORS: Steel PLA */ _("material-type.pla-steel"); /* TRANSLATORS: Stone PLA */ _("material-type.pla-stone"); /* TRANSLATORS: Wood PLA */ _("material-type.pla-wood"); /* TRANSLATORS: Polycarbonate */ _("material-type.polycarbonate"); /* TRANSLATORS: Dissolvable PVA */ _("material-type.pva-dissolvable"); /* TRANSLATORS: Silver */ _("material-type.silver"); /* TRANSLATORS: Titanium */ _("material-type.titanium"); /* TRANSLATORS: Wax */ _("material-type.wax"); /* TRANSLATORS: Materials */ _("materials-col"); /* TRANSLATORS: Media */ _("media"); /* TRANSLATORS: Back Coating of Media */ _("media-back-coating"); /* TRANSLATORS: Glossy */ _("media-back-coating.glossy"); /* TRANSLATORS: High Gloss */ _("media-back-coating.high-gloss"); /* TRANSLATORS: Matte */ _("media-back-coating.matte"); /* TRANSLATORS: None */ _("media-back-coating.none"); /* TRANSLATORS: Satin */ _("media-back-coating.satin"); /* TRANSLATORS: Semi-gloss */ _("media-back-coating.semi-gloss"); /* TRANSLATORS: Media Bottom Margin */ _("media-bottom-margin"); /* TRANSLATORS: Media */ _("media-col"); /* TRANSLATORS: Media Color */ _("media-color"); /* TRANSLATORS: Black */ _("media-color.black"); /* TRANSLATORS: Blue */ _("media-color.blue"); /* TRANSLATORS: Brown */ _("media-color.brown"); /* TRANSLATORS: Buff */ _("media-color.buff"); /* TRANSLATORS: Clear Black */ _("media-color.clear-black"); /* TRANSLATORS: Clear Blue */ _("media-color.clear-blue"); /* TRANSLATORS: Clear Brown */ _("media-color.clear-brown"); /* TRANSLATORS: Clear Buff */ _("media-color.clear-buff"); /* TRANSLATORS: Clear Cyan */ _("media-color.clear-cyan"); /* TRANSLATORS: Clear Gold */ _("media-color.clear-gold"); /* TRANSLATORS: Clear Goldenrod */ _("media-color.clear-goldenrod"); /* TRANSLATORS: Clear Gray */ _("media-color.clear-gray"); /* TRANSLATORS: Clear Green */ _("media-color.clear-green"); /* TRANSLATORS: Clear Ivory */ _("media-color.clear-ivory"); /* TRANSLATORS: Clear Magenta */ _("media-color.clear-magenta"); /* TRANSLATORS: Clear Multi Color */ _("media-color.clear-multi-color"); /* TRANSLATORS: Clear Mustard */ _("media-color.clear-mustard"); /* TRANSLATORS: Clear Orange */ _("media-color.clear-orange"); /* TRANSLATORS: Clear Pink */ _("media-color.clear-pink"); /* TRANSLATORS: Clear Red */ _("media-color.clear-red"); /* TRANSLATORS: Clear Silver */ _("media-color.clear-silver"); /* TRANSLATORS: Clear Turquoise */ _("media-color.clear-turquoise"); /* TRANSLATORS: Clear Violet */ _("media-color.clear-violet"); /* TRANSLATORS: Clear White */ _("media-color.clear-white"); /* TRANSLATORS: Clear Yellow */ _("media-color.clear-yellow"); /* TRANSLATORS: Cyan */ _("media-color.cyan"); /* TRANSLATORS: Dark Blue */ _("media-color.dark-blue"); /* TRANSLATORS: Dark Brown */ _("media-color.dark-brown"); /* TRANSLATORS: Dark Buff */ _("media-color.dark-buff"); /* TRANSLATORS: Dark Cyan */ _("media-color.dark-cyan"); /* TRANSLATORS: Dark Gold */ _("media-color.dark-gold"); /* TRANSLATORS: Dark Goldenrod */ _("media-color.dark-goldenrod"); /* TRANSLATORS: Dark Gray */ _("media-color.dark-gray"); /* TRANSLATORS: Dark Green */ _("media-color.dark-green"); /* TRANSLATORS: Dark Ivory */ _("media-color.dark-ivory"); /* TRANSLATORS: Dark Magenta */ _("media-color.dark-magenta"); /* TRANSLATORS: Dark Mustard */ _("media-color.dark-mustard"); /* TRANSLATORS: Dark Orange */ _("media-color.dark-orange"); /* TRANSLATORS: Dark Pink */ _("media-color.dark-pink"); /* TRANSLATORS: Dark Red */ _("media-color.dark-red"); /* TRANSLATORS: Dark Silver */ _("media-color.dark-silver"); /* TRANSLATORS: Dark Turquoise */ _("media-color.dark-turquoise"); /* TRANSLATORS: Dark Violet */ _("media-color.dark-violet"); /* TRANSLATORS: Dark Yellow */ _("media-color.dark-yellow"); /* TRANSLATORS: Gold */ _("media-color.gold"); /* TRANSLATORS: Goldenrod */ _("media-color.goldenrod"); /* TRANSLATORS: Gray */ _("media-color.gray"); /* TRANSLATORS: Green */ _("media-color.green"); /* TRANSLATORS: Ivory */ _("media-color.ivory"); /* TRANSLATORS: Light Black */ _("media-color.light-black"); /* TRANSLATORS: Light Blue */ _("media-color.light-blue"); /* TRANSLATORS: Light Brown */ _("media-color.light-brown"); /* TRANSLATORS: Light Buff */ _("media-color.light-buff"); /* TRANSLATORS: Light Cyan */ _("media-color.light-cyan"); /* TRANSLATORS: Light Gold */ _("media-color.light-gold"); /* TRANSLATORS: Light Goldenrod */ _("media-color.light-goldenrod"); /* TRANSLATORS: Light Gray */ _("media-color.light-gray"); /* TRANSLATORS: Light Green */ _("media-color.light-green"); /* TRANSLATORS: Light Ivory */ _("media-color.light-ivory"); /* TRANSLATORS: Light Magenta */ _("media-color.light-magenta"); /* TRANSLATORS: Light Mustard */ _("media-color.light-mustard"); /* TRANSLATORS: Light Orange */ _("media-color.light-orange"); /* TRANSLATORS: Light Pink */ _("media-color.light-pink"); /* TRANSLATORS: Light Red */ _("media-color.light-red"); /* TRANSLATORS: Light Silver */ _("media-color.light-silver"); /* TRANSLATORS: Light Turquoise */ _("media-color.light-turquoise"); /* TRANSLATORS: Light Violet */ _("media-color.light-violet"); /* TRANSLATORS: Light Yellow */ _("media-color.light-yellow"); /* TRANSLATORS: Magenta */ _("media-color.magenta"); /* TRANSLATORS: Multi-color */ _("media-color.multi-color"); /* TRANSLATORS: Mustard */ _("media-color.mustard"); /* TRANSLATORS: No Color */ _("media-color.no-color"); /* TRANSLATORS: Orange */ _("media-color.orange"); /* TRANSLATORS: Pink */ _("media-color.pink"); /* TRANSLATORS: Red */ _("media-color.red"); /* TRANSLATORS: Silver */ _("media-color.silver"); /* TRANSLATORS: Turquoise */ _("media-color.turquoise"); /* TRANSLATORS: Violet */ _("media-color.violet"); /* TRANSLATORS: White */ _("media-color.white"); /* TRANSLATORS: Yellow */ _("media-color.yellow"); /* TRANSLATORS: Front Coating of Media */ _("media-front-coating"); /* TRANSLATORS: Media Grain */ _("media-grain"); /* TRANSLATORS: Cross-Feed Direction */ _("media-grain.x-direction"); /* TRANSLATORS: Feed Direction */ _("media-grain.y-direction"); /* TRANSLATORS: Media Hole Count */ _("media-hole-count"); /* TRANSLATORS: Media Info */ _("media-info"); /* TRANSLATORS: Force Media */ _("media-input-tray-check"); /* TRANSLATORS: Media Left Margin */ _("media-left-margin"); /* TRANSLATORS: Pre-printed Media */ _("media-pre-printed"); /* TRANSLATORS: Blank */ _("media-pre-printed.blank"); /* TRANSLATORS: Letterhead */ _("media-pre-printed.letter-head"); /* TRANSLATORS: Pre-printed */ _("media-pre-printed.pre-printed"); /* TRANSLATORS: Recycled Media */ _("media-recycled"); /* TRANSLATORS: None */ _("media-recycled.none"); /* TRANSLATORS: Standard */ _("media-recycled.standard"); /* TRANSLATORS: Media Right Margin */ _("media-right-margin"); /* TRANSLATORS: Media Dimensions */ _("media-size"); /* TRANSLATORS: Media Name */ _("media-size-name"); /* TRANSLATORS: Media Source */ _("media-source"); /* TRANSLATORS: Alternate */ _("media-source.alternate"); /* TRANSLATORS: Alternate Roll */ _("media-source.alternate-roll"); /* TRANSLATORS: Automatic */ _("media-source.auto"); /* TRANSLATORS: Bottom */ _("media-source.bottom"); /* TRANSLATORS: By-pass Tray */ _("media-source.by-pass-tray"); /* TRANSLATORS: Center */ _("media-source.center"); /* TRANSLATORS: Disc */ _("media-source.disc"); /* TRANSLATORS: Envelope */ _("media-source.envelope"); /* TRANSLATORS: Hagaki */ _("media-source.hagaki"); /* TRANSLATORS: Large Capacity */ _("media-source.large-capacity"); /* TRANSLATORS: Left */ _("media-source.left"); /* TRANSLATORS: Main */ _("media-source.main"); /* TRANSLATORS: Main Roll */ _("media-source.main-roll"); /* TRANSLATORS: Manual */ _("media-source.manual"); /* TRANSLATORS: Middle */ _("media-source.middle"); /* TRANSLATORS: Photo */ _("media-source.photo"); /* TRANSLATORS: Rear */ _("media-source.rear"); /* TRANSLATORS: Right */ _("media-source.right"); /* TRANSLATORS: Roll 1 */ _("media-source.roll-1"); /* TRANSLATORS: Roll 10 */ _("media-source.roll-10"); /* TRANSLATORS: Roll 2 */ _("media-source.roll-2"); /* TRANSLATORS: Roll 3 */ _("media-source.roll-3"); /* TRANSLATORS: Roll 4 */ _("media-source.roll-4"); /* TRANSLATORS: Roll 5 */ _("media-source.roll-5"); /* TRANSLATORS: Roll 6 */ _("media-source.roll-6"); /* TRANSLATORS: Roll 7 */ _("media-source.roll-7"); /* TRANSLATORS: Roll 8 */ _("media-source.roll-8"); /* TRANSLATORS: Roll 9 */ _("media-source.roll-9"); /* TRANSLATORS: Side */ _("media-source.side"); /* TRANSLATORS: Top */ _("media-source.top"); /* TRANSLATORS: Tray 1 */ _("media-source.tray-1"); /* TRANSLATORS: Tray 10 */ _("media-source.tray-10"); /* TRANSLATORS: Tray 11 */ _("media-source.tray-11"); /* TRANSLATORS: Tray 12 */ _("media-source.tray-12"); /* TRANSLATORS: Tray 13 */ _("media-source.tray-13"); /* TRANSLATORS: Tray 14 */ _("media-source.tray-14"); /* TRANSLATORS: Tray 15 */ _("media-source.tray-15"); /* TRANSLATORS: Tray 16 */ _("media-source.tray-16"); /* TRANSLATORS: Tray 17 */ _("media-source.tray-17"); /* TRANSLATORS: Tray 18 */ _("media-source.tray-18"); /* TRANSLATORS: Tray 19 */ _("media-source.tray-19"); /* TRANSLATORS: Tray 2 */ _("media-source.tray-2"); /* TRANSLATORS: Tray 20 */ _("media-source.tray-20"); /* TRANSLATORS: Tray 3 */ _("media-source.tray-3"); /* TRANSLATORS: Tray 4 */ _("media-source.tray-4"); /* TRANSLATORS: Tray 5 */ _("media-source.tray-5"); /* TRANSLATORS: Tray 6 */ _("media-source.tray-6"); /* TRANSLATORS: Tray 7 */ _("media-source.tray-7"); /* TRANSLATORS: Tray 8 */ _("media-source.tray-8"); /* TRANSLATORS: Tray 9 */ _("media-source.tray-9"); /* TRANSLATORS: Media Thickness */ _("media-thickness"); /* TRANSLATORS: Media Tooth (Texture) */ _("media-tooth"); /* TRANSLATORS: Antique */ _("media-tooth.antique"); /* TRANSLATORS: Extra Smooth */ _("media-tooth.calendared"); /* TRANSLATORS: Coarse */ _("media-tooth.coarse"); /* TRANSLATORS: Fine */ _("media-tooth.fine"); /* TRANSLATORS: Linen */ _("media-tooth.linen"); /* TRANSLATORS: Medium */ _("media-tooth.medium"); /* TRANSLATORS: Smooth */ _("media-tooth.smooth"); /* TRANSLATORS: Stipple */ _("media-tooth.stipple"); /* TRANSLATORS: Rough */ _("media-tooth.uncalendared"); /* TRANSLATORS: Vellum */ _("media-tooth.vellum"); /* TRANSLATORS: Media Top Margin */ _("media-top-margin"); /* TRANSLATORS: Media Type */ _("media-type"); /* TRANSLATORS: Aluminum */ _("media-type.aluminum"); /* TRANSLATORS: Automatic */ _("media-type.auto"); /* TRANSLATORS: Back Print Film */ _("media-type.back-print-film"); /* TRANSLATORS: Cardboard */ _("media-type.cardboard"); /* TRANSLATORS: Cardstock */ _("media-type.cardstock"); /* TRANSLATORS: CD */ _("media-type.cd"); /* TRANSLATORS: Photo Advanced Paper */ _("media-type.com.hp.advanced-photo"); /* TRANSLATORS: Brochure Glossy Paper */ _("media-type.com.hp.brochure-glossy"); /* TRANSLATORS: Brochure Matte Paper */ _("media-type.com.hp.brochure-matte"); /* TRANSLATORS: Matte Coverstock */ _("media-type.com.hp.cover-matte"); /* TRANSLATORS: EcoSMART Lite Paper */ _("media-type.com.hp.ecosmart-lite"); /* TRANSLATORS: Everyday Glossy Paper */ _("media-type.com.hp.everyday-glossy"); /* TRANSLATORS: Everyday Matte Paper */ _("media-type.com.hp.everyday-matte"); /* TRANSLATORS: Extra Heavyweight Paper */ _("media-type.com.hp.extra-heavy"); /* TRANSLATORS: Intermediate Paper */ _("media-type.com.hp.intermediate"); /* TRANSLATORS: Mid-Weight Paper */ _("media-type.com.hp.mid-weight"); /* TRANSLATORS: Inkjet Premium Paper */ _("media-type.com.hp.premium-inkjet"); /* TRANSLATORS: Photo Premium Paper */ _("media-type.com.hp.premium-photo"); /* TRANSLATORS: Premium Matte Presentation Paper */ _("media-type.com.hp.premium-presentation-matte"); /* TRANSLATORS: Continuous */ _("media-type.continuous"); /* TRANSLATORS: Continuous Long */ _("media-type.continuous-long"); /* TRANSLATORS: Continuous Short */ _("media-type.continuous-short"); /* TRANSLATORS: Corrugated Board */ _("media-type.corrugated-board"); /* TRANSLATORS: Optical Disc */ _("media-type.disc"); /* TRANSLATORS: Glossy Optical Disc */ _("media-type.disc-glossy"); /* TRANSLATORS: High Gloss Optical Disc */ _("media-type.disc-high-gloss"); /* TRANSLATORS: Matte Optical Disc */ _("media-type.disc-matte"); /* TRANSLATORS: Satin Optical Disc */ _("media-type.disc-satin"); /* TRANSLATORS: Semi-Gloss Optical Disc */ _("media-type.disc-semi-gloss"); /* TRANSLATORS: Double Wall */ _("media-type.double-wall"); /* TRANSLATORS: Dry Film */ _("media-type.dry-film"); /* TRANSLATORS: DVD */ _("media-type.dvd"); /* TRANSLATORS: Embossing Foil */ _("media-type.embossing-foil"); /* TRANSLATORS: End Board */ _("media-type.end-board"); /* TRANSLATORS: Envelope */ _("media-type.envelope"); /* TRANSLATORS: Archival Envelope */ _("media-type.envelope-archival"); /* TRANSLATORS: Bond Envelope */ _("media-type.envelope-bond"); /* TRANSLATORS: Coated Envelope */ _("media-type.envelope-coated"); /* TRANSLATORS: Cotton Envelope */ _("media-type.envelope-cotton"); /* TRANSLATORS: Fine Envelope */ _("media-type.envelope-fine"); /* TRANSLATORS: Heavyweight Envelope */ _("media-type.envelope-heavyweight"); /* TRANSLATORS: Inkjet Envelope */ _("media-type.envelope-inkjet"); /* TRANSLATORS: Lightweight Envelope */ _("media-type.envelope-lightweight"); /* TRANSLATORS: Plain Envelope */ _("media-type.envelope-plain"); /* TRANSLATORS: Preprinted Envelope */ _("media-type.envelope-preprinted"); /* TRANSLATORS: Windowed Envelope */ _("media-type.envelope-window"); /* TRANSLATORS: Fabric */ _("media-type.fabric"); /* TRANSLATORS: Archival Fabric */ _("media-type.fabric-archival"); /* TRANSLATORS: Glossy Fabric */ _("media-type.fabric-glossy"); /* TRANSLATORS: High Gloss Fabric */ _("media-type.fabric-high-gloss"); /* TRANSLATORS: Matte Fabric */ _("media-type.fabric-matte"); /* TRANSLATORS: Semi-Gloss Fabric */ _("media-type.fabric-semi-gloss"); /* TRANSLATORS: Waterproof Fabric */ _("media-type.fabric-waterproof"); /* TRANSLATORS: Film */ _("media-type.film"); /* TRANSLATORS: Flexo Base */ _("media-type.flexo-base"); /* TRANSLATORS: Flexo Photo Polymer */ _("media-type.flexo-photo-polymer"); /* TRANSLATORS: Flute */ _("media-type.flute"); /* TRANSLATORS: Foil */ _("media-type.foil"); /* TRANSLATORS: Full Cut Tabs */ _("media-type.full-cut-tabs"); /* TRANSLATORS: Glass */ _("media-type.glass"); /* TRANSLATORS: Glass Colored */ _("media-type.glass-colored"); /* TRANSLATORS: Glass Opaque */ _("media-type.glass-opaque"); /* TRANSLATORS: Glass Surfaced */ _("media-type.glass-surfaced"); /* TRANSLATORS: Glass Textured */ _("media-type.glass-textured"); /* TRANSLATORS: Gravure Cylinder */ _("media-type.gravure-cylinder"); /* TRANSLATORS: Image Setter Paper */ _("media-type.image-setter-paper"); /* TRANSLATORS: Imaging Cylinder */ _("media-type.imaging-cylinder"); /* TRANSLATORS: Photo Paper Plus Glossy II*/ _("media-type.jp.co.canon-photo-paper-plus-glossy-ii"); /* TRANSLATORS: Photo Paper Pro Platinum*/ _("media-type.jp.co.canon-photo-paper-pro-platinum"); /* TRANSLATORS: Photo Paper Plus Glossy II*/ _("media-type.jp.co.canon_photo-paper-plus-glossy-ii"); /* TRANSLATORS: Photo Paper Pro Platinum*/ _("media-type.jp.co.canon_photo-paper-pro-platinum"); /* TRANSLATORS: Labels */ _("media-type.labels"); /* TRANSLATORS: Colored Labels */ _("media-type.labels-colored"); /* TRANSLATORS: Glossy Labels */ _("media-type.labels-glossy"); /* TRANSLATORS: High Gloss Labels */ _("media-type.labels-high-gloss"); /* TRANSLATORS: Inkjet Labels */ _("media-type.labels-inkjet"); /* TRANSLATORS: Matte Labels */ _("media-type.labels-matte"); /* TRANSLATORS: Permanent Labels */ _("media-type.labels-permanent"); /* TRANSLATORS: Satin Labels */ _("media-type.labels-satin"); /* TRANSLATORS: Security Labels */ _("media-type.labels-security"); /* TRANSLATORS: Semi-Gloss Labels */ _("media-type.labels-semi-gloss"); /* TRANSLATORS: Laminating Foil */ _("media-type.laminating-foil"); /* TRANSLATORS: Letterhead */ _("media-type.letterhead"); /* TRANSLATORS: Metal */ _("media-type.metal"); /* TRANSLATORS: Metal Glossy */ _("media-type.metal-glossy"); /* TRANSLATORS: Metal High Gloss */ _("media-type.metal-high-gloss"); /* TRANSLATORS: Metal Matte */ _("media-type.metal-matte"); /* TRANSLATORS: Metal Satin */ _("media-type.metal-satin"); /* TRANSLATORS: Metal Semi Gloss */ _("media-type.metal-semi-gloss"); /* TRANSLATORS: Mounting Tape */ _("media-type.mounting-tape"); /* TRANSLATORS: Multi Layer */ _("media-type.multi-layer"); /* TRANSLATORS: Multi Part Form */ _("media-type.multi-part-form"); /* TRANSLATORS: Other */ _("media-type.other"); /* TRANSLATORS: Paper */ _("media-type.paper"); /* TRANSLATORS: Photo Paper */ _("media-type.photographic"); /* TRANSLATORS: Photographic Archival */ _("media-type.photographic-archival"); /* TRANSLATORS: Photo Film */ _("media-type.photographic-film"); /* TRANSLATORS: Glossy Photo Paper */ _("media-type.photographic-glossy"); /* TRANSLATORS: High Gloss Photo Paper */ _("media-type.photographic-high-gloss"); /* TRANSLATORS: Matte Photo Paper */ _("media-type.photographic-matte"); /* TRANSLATORS: Satin Photo Paper */ _("media-type.photographic-satin"); /* TRANSLATORS: Semi-Gloss Photo Paper */ _("media-type.photographic-semi-gloss"); /* TRANSLATORS: Plastic */ _("media-type.plastic"); /* TRANSLATORS: Plastic Archival */ _("media-type.plastic-archival"); /* TRANSLATORS: Plastic Colored */ _("media-type.plastic-colored"); /* TRANSLATORS: Plastic Glossy */ _("media-type.plastic-glossy"); /* TRANSLATORS: Plastic High Gloss */ _("media-type.plastic-high-gloss"); /* TRANSLATORS: Plastic Matte */ _("media-type.plastic-matte"); /* TRANSLATORS: Plastic Satin */ _("media-type.plastic-satin"); /* TRANSLATORS: Plastic Semi Gloss */ _("media-type.plastic-semi-gloss"); /* TRANSLATORS: Plate */ _("media-type.plate"); /* TRANSLATORS: Polyester */ _("media-type.polyester"); /* TRANSLATORS: Pre Cut Tabs */ _("media-type.pre-cut-tabs"); /* TRANSLATORS: Roll */ _("media-type.roll"); /* TRANSLATORS: Screen */ _("media-type.screen"); /* TRANSLATORS: Screen Paged */ _("media-type.screen-paged"); /* TRANSLATORS: Self Adhesive */ _("media-type.self-adhesive"); /* TRANSLATORS: Self Adhesive Film */ _("media-type.self-adhesive-film"); /* TRANSLATORS: Shrink Foil */ _("media-type.shrink-foil"); /* TRANSLATORS: Single Face */ _("media-type.single-face"); /* TRANSLATORS: Single Wall */ _("media-type.single-wall"); /* TRANSLATORS: Sleeve */ _("media-type.sleeve"); /* TRANSLATORS: Stationery */ _("media-type.stationery"); /* TRANSLATORS: Stationery Archival */ _("media-type.stationery-archival"); /* TRANSLATORS: Coated Paper */ _("media-type.stationery-coated"); /* TRANSLATORS: Stationery Cotton */ _("media-type.stationery-cotton"); /* TRANSLATORS: Vellum Paper */ _("media-type.stationery-fine"); /* TRANSLATORS: Heavyweight Paper */ _("media-type.stationery-heavyweight"); /* TRANSLATORS: Stationery Heavyweight Coated */ _("media-type.stationery-heavyweight-coated"); /* TRANSLATORS: Stationery Inkjet Paper */ _("media-type.stationery-inkjet"); /* TRANSLATORS: Letterhead */ _("media-type.stationery-letterhead"); /* TRANSLATORS: Lightweight Paper */ _("media-type.stationery-lightweight"); /* TRANSLATORS: Preprinted Paper */ _("media-type.stationery-preprinted"); /* TRANSLATORS: Punched Paper */ _("media-type.stationery-prepunched"); /* TRANSLATORS: Tab Stock */ _("media-type.tab-stock"); /* TRANSLATORS: Tractor */ _("media-type.tractor"); /* TRANSLATORS: Transfer */ _("media-type.transfer"); /* TRANSLATORS: Transparency */ _("media-type.transparency"); /* TRANSLATORS: Triple Wall */ _("media-type.triple-wall"); /* TRANSLATORS: Wet Film */ _("media-type.wet-film"); /* TRANSLATORS: Media Weight (grams per m²) */ _("media-weight-metric"); /* TRANSLATORS: 28 x 40″ */ _("media.asme_f_28x40in"); /* TRANSLATORS: A4 or US Letter */ _("media.choice_iso_a4_210x297mm_na_letter_8.5x11in"); /* TRANSLATORS: 2a0 */ _("media.iso_2a0_1189x1682mm"); /* TRANSLATORS: A0 */ _("media.iso_a0_841x1189mm"); /* TRANSLATORS: A0x3 */ _("media.iso_a0x3_1189x2523mm"); /* TRANSLATORS: A10 */ _("media.iso_a10_26x37mm"); /* TRANSLATORS: A1 */ _("media.iso_a1_594x841mm"); /* TRANSLATORS: A1x3 */ _("media.iso_a1x3_841x1783mm"); /* TRANSLATORS: A1x4 */ _("media.iso_a1x4_841x2378mm"); /* TRANSLATORS: A2 */ _("media.iso_a2_420x594mm"); /* TRANSLATORS: A2x3 */ _("media.iso_a2x3_594x1261mm"); /* TRANSLATORS: A2x4 */ _("media.iso_a2x4_594x1682mm"); /* TRANSLATORS: A2x5 */ _("media.iso_a2x5_594x2102mm"); /* TRANSLATORS: A3 (Extra) */ _("media.iso_a3-extra_322x445mm"); /* TRANSLATORS: A3 */ _("media.iso_a3_297x420mm"); /* TRANSLATORS: A3x3 */ _("media.iso_a3x3_420x891mm"); /* TRANSLATORS: A3x4 */ _("media.iso_a3x4_420x1189mm"); /* TRANSLATORS: A3x5 */ _("media.iso_a3x5_420x1486mm"); /* TRANSLATORS: A3x6 */ _("media.iso_a3x6_420x1783mm"); /* TRANSLATORS: A3x7 */ _("media.iso_a3x7_420x2080mm"); /* TRANSLATORS: A4 (Extra) */ _("media.iso_a4-extra_235.5x322.3mm"); /* TRANSLATORS: A4 (Tab) */ _("media.iso_a4-tab_225x297mm"); /* TRANSLATORS: A4 */ _("media.iso_a4_210x297mm"); /* TRANSLATORS: A4x3 */ _("media.iso_a4x3_297x630mm"); /* TRANSLATORS: A4x4 */ _("media.iso_a4x4_297x841mm"); /* TRANSLATORS: A4x5 */ _("media.iso_a4x5_297x1051mm"); /* TRANSLATORS: A4x6 */ _("media.iso_a4x6_297x1261mm"); /* TRANSLATORS: A4x7 */ _("media.iso_a4x7_297x1471mm"); /* TRANSLATORS: A4x8 */ _("media.iso_a4x8_297x1682mm"); /* TRANSLATORS: A4x9 */ _("media.iso_a4x9_297x1892mm"); /* TRANSLATORS: A5 (Extra) */ _("media.iso_a5-extra_174x235mm"); /* TRANSLATORS: A5 */ _("media.iso_a5_148x210mm"); /* TRANSLATORS: A6 */ _("media.iso_a6_105x148mm"); /* TRANSLATORS: A7 */ _("media.iso_a7_74x105mm"); /* TRANSLATORS: A8 */ _("media.iso_a8_52x74mm"); /* TRANSLATORS: A9 */ _("media.iso_a9_37x52mm"); /* TRANSLATORS: B0 */ _("media.iso_b0_1000x1414mm"); /* TRANSLATORS: B10 */ _("media.iso_b10_31x44mm"); /* TRANSLATORS: B1 */ _("media.iso_b1_707x1000mm"); /* TRANSLATORS: B2 */ _("media.iso_b2_500x707mm"); /* TRANSLATORS: B3 */ _("media.iso_b3_353x500mm"); /* TRANSLATORS: B4 */ _("media.iso_b4_250x353mm"); /* TRANSLATORS: B5 (Extra) */ _("media.iso_b5-extra_201x276mm"); /* TRANSLATORS: Envelope B5 */ _("media.iso_b5_176x250mm"); /* TRANSLATORS: B6 */ _("media.iso_b6_125x176mm"); /* TRANSLATORS: Envelope B6/C4 */ _("media.iso_b6c4_125x324mm"); /* TRANSLATORS: B7 */ _("media.iso_b7_88x125mm"); /* TRANSLATORS: B8 */ _("media.iso_b8_62x88mm"); /* TRANSLATORS: B9 */ _("media.iso_b9_44x62mm"); /* TRANSLATORS: CEnvelope 0 */ _("media.iso_c0_917x1297mm"); /* TRANSLATORS: CEnvelope 10 */ _("media.iso_c10_28x40mm"); /* TRANSLATORS: CEnvelope 1 */ _("media.iso_c1_648x917mm"); /* TRANSLATORS: CEnvelope 2 */ _("media.iso_c2_458x648mm"); /* TRANSLATORS: CEnvelope 3 */ _("media.iso_c3_324x458mm"); /* TRANSLATORS: CEnvelope 4 */ _("media.iso_c4_229x324mm"); /* TRANSLATORS: CEnvelope 5 */ _("media.iso_c5_162x229mm"); /* TRANSLATORS: CEnvelope 6 */ _("media.iso_c6_114x162mm"); /* TRANSLATORS: CEnvelope 6c5 */ _("media.iso_c6c5_114x229mm"); /* TRANSLATORS: CEnvelope 7 */ _("media.iso_c7_81x114mm"); /* TRANSLATORS: CEnvelope 7c6 */ _("media.iso_c7c6_81x162mm"); /* TRANSLATORS: CEnvelope 8 */ _("media.iso_c8_57x81mm"); /* TRANSLATORS: CEnvelope 9 */ _("media.iso_c9_40x57mm"); /* TRANSLATORS: Envelope DL */ _("media.iso_dl_110x220mm"); /* TRANSLATORS: Id-1 */ _("media.iso_id-1_53.98x85.6mm"); /* TRANSLATORS: Id-3 */ _("media.iso_id-3_88x125mm"); /* TRANSLATORS: ISO RA0 */ _("media.iso_ra0_860x1220mm"); /* TRANSLATORS: ISO RA1 */ _("media.iso_ra1_610x860mm"); /* TRANSLATORS: ISO RA2 */ _("media.iso_ra2_430x610mm"); /* TRANSLATORS: ISO RA3 */ _("media.iso_ra3_305x430mm"); /* TRANSLATORS: ISO RA4 */ _("media.iso_ra4_215x305mm"); /* TRANSLATORS: ISO SRA0 */ _("media.iso_sra0_900x1280mm"); /* TRANSLATORS: ISO SRA1 */ _("media.iso_sra1_640x900mm"); /* TRANSLATORS: ISO SRA2 */ _("media.iso_sra2_450x640mm"); /* TRANSLATORS: ISO SRA3 */ _("media.iso_sra3_320x450mm"); /* TRANSLATORS: ISO SRA4 */ _("media.iso_sra4_225x320mm"); /* TRANSLATORS: JIS B0 */ _("media.jis_b0_1030x1456mm"); /* TRANSLATORS: JIS B10 */ _("media.jis_b10_32x45mm"); /* TRANSLATORS: JIS B1 */ _("media.jis_b1_728x1030mm"); /* TRANSLATORS: JIS B2 */ _("media.jis_b2_515x728mm"); /* TRANSLATORS: JIS B3 */ _("media.jis_b3_364x515mm"); /* TRANSLATORS: JIS B4 */ _("media.jis_b4_257x364mm"); /* TRANSLATORS: JIS B5 */ _("media.jis_b5_182x257mm"); /* TRANSLATORS: JIS B6 */ _("media.jis_b6_128x182mm"); /* TRANSLATORS: JIS B7 */ _("media.jis_b7_91x128mm"); /* TRANSLATORS: JIS B8 */ _("media.jis_b8_64x91mm"); /* TRANSLATORS: JIS B9 */ _("media.jis_b9_45x64mm"); /* TRANSLATORS: JIS Executive */ _("media.jis_exec_216x330mm"); /* TRANSLATORS: Envelope Chou 2 */ _("media.jpn_chou2_111.1x146mm"); /* TRANSLATORS: Envelope Chou 3 */ _("media.jpn_chou3_120x235mm"); /* TRANSLATORS: Envelope Chou 40 */ _("media.jpn_chou40_90x225mm"); /* TRANSLATORS: Envelope Chou 4 */ _("media.jpn_chou4_90x205mm"); /* TRANSLATORS: Hagaki */ _("media.jpn_hagaki_100x148mm"); /* TRANSLATORS: Envelope Kahu */ _("media.jpn_kahu_240x322.1mm"); /* TRANSLATORS: 270 x 382mm */ _("media.jpn_kaku1_270x382mm"); /* TRANSLATORS: Envelope Kahu 2 */ _("media.jpn_kaku2_240x332mm"); /* TRANSLATORS: 216 x 277mm */ _("media.jpn_kaku3_216x277mm"); /* TRANSLATORS: 197 x 267mm */ _("media.jpn_kaku4_197x267mm"); /* TRANSLATORS: 190 x 240mm */ _("media.jpn_kaku5_190x240mm"); /* TRANSLATORS: 142 x 205mm */ _("media.jpn_kaku7_142x205mm"); /* TRANSLATORS: 119 x 197mm */ _("media.jpn_kaku8_119x197mm"); /* TRANSLATORS: Oufuku Reply Postcard */ _("media.jpn_oufuku_148x200mm"); /* TRANSLATORS: Envelope You 4 */ _("media.jpn_you4_105x235mm"); /* TRANSLATORS: 10 x 11″ */ _("media.na_10x11_10x11in"); /* TRANSLATORS: 10 x 13″ */ _("media.na_10x13_10x13in"); /* TRANSLATORS: 10 x 14″ */ _("media.na_10x14_10x14in"); /* TRANSLATORS: 10 x 15″ */ _("media.na_10x15_10x15in"); /* TRANSLATORS: 11 x 12″ */ _("media.na_11x12_11x12in"); /* TRANSLATORS: 11 x 15″ */ _("media.na_11x15_11x15in"); /* TRANSLATORS: 12 x 19″ */ _("media.na_12x19_12x19in"); /* TRANSLATORS: 5 x 7″ */ _("media.na_5x7_5x7in"); /* TRANSLATORS: 6 x 9″ */ _("media.na_6x9_6x9in"); /* TRANSLATORS: 7 x 9″ */ _("media.na_7x9_7x9in"); /* TRANSLATORS: 9 x 11″ */ _("media.na_9x11_9x11in"); /* TRANSLATORS: Envelope A2 */ _("media.na_a2_4.375x5.75in"); /* TRANSLATORS: 9 x 12″ */ _("media.na_arch-a_9x12in"); /* TRANSLATORS: 12 x 18″ */ _("media.na_arch-b_12x18in"); /* TRANSLATORS: 18 x 24″ */ _("media.na_arch-c_18x24in"); /* TRANSLATORS: 24 x 36″ */ _("media.na_arch-d_24x36in"); /* TRANSLATORS: 26 x 38″ */ _("media.na_arch-e2_26x38in"); /* TRANSLATORS: 27 x 39″ */ _("media.na_arch-e3_27x39in"); /* TRANSLATORS: 36 x 48″ */ _("media.na_arch-e_36x48in"); /* TRANSLATORS: 12 x 19.17″ */ _("media.na_b-plus_12x19.17in"); /* TRANSLATORS: Envelope C5 */ _("media.na_c5_6.5x9.5in"); /* TRANSLATORS: 17 x 22″ */ _("media.na_c_17x22in"); /* TRANSLATORS: 22 x 34″ */ _("media.na_d_22x34in"); /* TRANSLATORS: 34 x 44″ */ _("media.na_e_34x44in"); /* TRANSLATORS: 11 x 14″ */ _("media.na_edp_11x14in"); /* TRANSLATORS: 12 x 14″ */ _("media.na_eur-edp_12x14in"); /* TRANSLATORS: Executive */ _("media.na_executive_7.25x10.5in"); /* TRANSLATORS: 44 x 68″ */ _("media.na_f_44x68in"); /* TRANSLATORS: European Fanfold */ _("media.na_fanfold-eur_8.5x12in"); /* TRANSLATORS: US Fanfold */ _("media.na_fanfold-us_11x14.875in"); /* TRANSLATORS: Foolscap */ _("media.na_foolscap_8.5x13in"); /* TRANSLATORS: 8 x 13″ */ _("media.na_govt-legal_8x13in"); /* TRANSLATORS: 8 x 10″ */ _("media.na_govt-letter_8x10in"); /* TRANSLATORS: 3 x 5″ */ _("media.na_index-3x5_3x5in"); /* TRANSLATORS: 6 x 8″ */ _("media.na_index-4x6-ext_6x8in"); /* TRANSLATORS: 4 x 6″ */ _("media.na_index-4x6_4x6in"); /* TRANSLATORS: 5 x 8″ */ _("media.na_index-5x8_5x8in"); /* TRANSLATORS: Statement */ _("media.na_invoice_5.5x8.5in"); /* TRANSLATORS: 11 x 17″ */ _("media.na_ledger_11x17in"); /* TRANSLATORS: US Legal (Extra) */ _("media.na_legal-extra_9.5x15in"); /* TRANSLATORS: US Legal */ _("media.na_legal_8.5x14in"); /* TRANSLATORS: US Letter (Extra) */ _("media.na_letter-extra_9.5x12in"); /* TRANSLATORS: US Letter (Plus) */ _("media.na_letter-plus_8.5x12.69in"); /* TRANSLATORS: US Letter */ _("media.na_letter_8.5x11in"); /* TRANSLATORS: Envelope Monarch */ _("media.na_monarch_3.875x7.5in"); /* TRANSLATORS: Envelope #10 */ _("media.na_number-10_4.125x9.5in"); /* TRANSLATORS: Envelope #11 */ _("media.na_number-11_4.5x10.375in"); /* TRANSLATORS: Envelope #12 */ _("media.na_number-12_4.75x11in"); /* TRANSLATORS: Envelope #14 */ _("media.na_number-14_5x11.5in"); /* TRANSLATORS: Envelope #9 */ _("media.na_number-9_3.875x8.875in"); /* TRANSLATORS: 8.5 x 13.4″ */ _("media.na_oficio_8.5x13.4in"); /* TRANSLATORS: Envelope Personal */ _("media.na_personal_3.625x6.5in"); /* TRANSLATORS: Quarto */ _("media.na_quarto_8.5x10.83in"); /* TRANSLATORS: 8.94 x 14″ */ _("media.na_super-a_8.94x14in"); /* TRANSLATORS: 13 x 19″ */ _("media.na_super-b_13x19in"); /* TRANSLATORS: 30 x 42″ */ _("media.na_wide-format_30x42in"); /* TRANSLATORS: 12 x 16″ */ _("media.oe_12x16_12x16in"); /* TRANSLATORS: 14 x 17″ */ _("media.oe_14x17_14x17in"); /* TRANSLATORS: 18 x 22″ */ _("media.oe_18x22_18x22in"); /* TRANSLATORS: 17 x 24″ */ _("media.oe_a2plus_17x24in"); /* TRANSLATORS: 2 x 3.5″ */ _("media.oe_business-card_2x3.5in"); /* TRANSLATORS: 10 x 12″ */ _("media.oe_photo-10r_10x12in"); /* TRANSLATORS: 20 x 24″ */ _("media.oe_photo-20r_20x24in"); /* TRANSLATORS: 3.5 x 5″ */ _("media.oe_photo-l_3.5x5in"); /* TRANSLATORS: 10 x 15″ */ _("media.oe_photo-s10r_10x15in"); /* TRANSLATORS: 4 x 4″ */ _("media.oe_square-photo_4x4in"); /* TRANSLATORS: 5 x 5″ */ _("media.oe_square-photo_5x5in"); /* TRANSLATORS: 184 x 260mm */ _("media.om_16k_184x260mm"); /* TRANSLATORS: 195 x 270mm */ _("media.om_16k_195x270mm"); /* TRANSLATORS: 55 x 85mm */ _("media.om_business-card_55x85mm"); /* TRANSLATORS: 55 x 91mm */ _("media.om_business-card_55x91mm"); /* TRANSLATORS: 54 x 86mm */ _("media.om_card_54x86mm"); /* TRANSLATORS: 275 x 395mm */ _("media.om_dai-pa-kai_275x395mm"); /* TRANSLATORS: 89 x 119mm */ _("media.om_dsc-photo_89x119mm"); /* TRANSLATORS: Folio */ _("media.om_folio-sp_215x315mm"); /* TRANSLATORS: Folio (Special) */ _("media.om_folio_210x330mm"); /* TRANSLATORS: Envelope Invitation */ _("media.om_invite_220x220mm"); /* TRANSLATORS: Envelope Italian */ _("media.om_italian_110x230mm"); /* TRANSLATORS: 198 x 275mm */ _("media.om_juuro-ku-kai_198x275mm"); /* TRANSLATORS: 200 x 300 */ _("media.om_large-photo_200x300"); /* TRANSLATORS: 130 x 180mm */ _("media.om_medium-photo_130x180mm"); /* TRANSLATORS: 267 x 389mm */ _("media.om_pa-kai_267x389mm"); /* TRANSLATORS: Envelope Postfix */ _("media.om_postfix_114x229mm"); /* TRANSLATORS: 100 x 150mm */ _("media.om_small-photo_100x150mm"); /* TRANSLATORS: 89 x 89mm */ _("media.om_square-photo_89x89mm"); /* TRANSLATORS: 100 x 200mm */ _("media.om_wide-photo_100x200mm"); /* TRANSLATORS: Envelope Chinese #10 */ _("media.prc_10_324x458mm"); /* TRANSLATORS: Chinese 16k */ _("media.prc_16k_146x215mm"); /* TRANSLATORS: Envelope Chinese #1 */ _("media.prc_1_102x165mm"); /* TRANSLATORS: Envelope Chinese #2 */ _("media.prc_2_102x176mm"); /* TRANSLATORS: Chinese 32k */ _("media.prc_32k_97x151mm"); /* TRANSLATORS: Envelope Chinese #3 */ _("media.prc_3_125x176mm"); /* TRANSLATORS: Envelope Chinese #4 */ _("media.prc_4_110x208mm"); /* TRANSLATORS: Envelope Chinese #5 */ _("media.prc_5_110x220mm"); /* TRANSLATORS: Envelope Chinese #6 */ _("media.prc_6_120x320mm"); /* TRANSLATORS: Envelope Chinese #7 */ _("media.prc_7_160x230mm"); /* TRANSLATORS: Envelope Chinese #8 */ _("media.prc_8_120x309mm"); /* TRANSLATORS: ROC 16k */ _("media.roc_16k_7.75x10.75in"); /* TRANSLATORS: ROC 8k */ _("media.roc_8k_10.75x15.5in"); /* TRANSLATORS: Multiple Document Handling */ _("multiple-document-handling"); /* TRANSLATORS: Separate Documents Collated Copies */ _("multiple-document-handling.separate-documents-collated-copies"); /* TRANSLATORS: Separate Documents Uncollated Copies */ _("multiple-document-handling.separate-documents-uncollated-copies"); /* TRANSLATORS: Single Document */ _("multiple-document-handling.single-document"); /* TRANSLATORS: Single Document New Sheet */ _("multiple-document-handling.single-document-new-sheet"); /* TRANSLATORS: Multiple Object Handling */ _("multiple-object-handling"); /* TRANSLATORS: Multiple Object Handling Actual */ _("multiple-object-handling-actual"); /* TRANSLATORS: Automatic */ _("multiple-object-handling.auto"); /* TRANSLATORS: Best Fit */ _("multiple-object-handling.best-fit"); /* TRANSLATORS: Best Quality */ _("multiple-object-handling.best-quality"); /* TRANSLATORS: Best Speed */ _("multiple-object-handling.best-speed"); /* TRANSLATORS: One At A Time */ _("multiple-object-handling.one-at-a-time"); /* TRANSLATORS: On Timeout */ _("multiple-operation-time-out-action"); /* TRANSLATORS: Abort Job */ _("multiple-operation-time-out-action.abort-job"); /* TRANSLATORS: Hold Job */ _("multiple-operation-time-out-action.hold-job"); /* TRANSLATORS: Process Job */ _("multiple-operation-time-out-action.process-job"); /* TRANSLATORS: Noise Removal */ _("noise-removal"); /* TRANSLATORS: Notify Attributes */ _("notify-attributes"); /* TRANSLATORS: Notify Charset */ _("notify-charset"); /* TRANSLATORS: Notify Events */ _("notify-events"); /* TRANSLATORS: Document Completed */ _("notify-events.document-completed"); /* TRANSLATORS: Document Config Changed */ _("notify-events.document-config-changed"); /* TRANSLATORS: Document Created */ _("notify-events.document-created"); /* TRANSLATORS: Document Fetchable */ _("notify-events.document-fetchable"); /* TRANSLATORS: Document State Changed */ _("notify-events.document-state-changed"); /* TRANSLATORS: Document Stopped */ _("notify-events.document-stopped"); /* TRANSLATORS: Job Completed */ _("notify-events.job-completed"); /* TRANSLATORS: Job Config Changed */ _("notify-events.job-config-changed"); /* TRANSLATORS: Job Created */ _("notify-events.job-created"); /* TRANSLATORS: Job Fetchable */ _("notify-events.job-fetchable"); /* TRANSLATORS: Job Progress */ _("notify-events.job-progress"); /* TRANSLATORS: Job State Changed */ _("notify-events.job-state-changed"); /* TRANSLATORS: Job Stopped */ _("notify-events.job-stopped"); /* TRANSLATORS: None */ _("notify-events.none"); /* TRANSLATORS: Printer Config Changed */ _("notify-events.printer-config-changed"); /* TRANSLATORS: Printer Finishings Changed */ _("notify-events.printer-finishings-changed"); /* TRANSLATORS: Printer Media Changed */ _("notify-events.printer-media-changed"); /* TRANSLATORS: Printer Queue Order Changed */ _("notify-events.printer-queue-order-changed"); /* TRANSLATORS: Printer Restarted */ _("notify-events.printer-restarted"); /* TRANSLATORS: Printer Shutdown */ _("notify-events.printer-shutdown"); /* TRANSLATORS: Printer State Changed */ _("notify-events.printer-state-changed"); /* TRANSLATORS: Printer Stopped */ _("notify-events.printer-stopped"); /* TRANSLATORS: Notify Get Interval */ _("notify-get-interval"); /* TRANSLATORS: Notify Lease Duration */ _("notify-lease-duration"); /* TRANSLATORS: Notify Natural Language */ _("notify-natural-language"); /* TRANSLATORS: Notify Pull Method */ _("notify-pull-method"); /* TRANSLATORS: Notify Recipient */ _("notify-recipient-uri"); /* TRANSLATORS: Notify Sequence Numbers */ _("notify-sequence-numbers"); /* TRANSLATORS: Notify Subscription Ids */ _("notify-subscription-ids"); /* TRANSLATORS: Notify Time Interval */ _("notify-time-interval"); /* TRANSLATORS: Notify User Data */ _("notify-user-data"); /* TRANSLATORS: Notify Wait */ _("notify-wait"); /* TRANSLATORS: Number Of Retries */ _("number-of-retries"); /* TRANSLATORS: Number-Up */ _("number-up"); /* TRANSLATORS: Object Offset */ _("object-offset"); /* TRANSLATORS: Object Size */ _("object-size"); /* TRANSLATORS: Organization Name */ _("organization-name"); /* TRANSLATORS: Orientation */ _("orientation-requested"); /* TRANSLATORS: Portrait */ _("orientation-requested.3"); /* TRANSLATORS: Landscape */ _("orientation-requested.4"); /* TRANSLATORS: Reverse Landscape */ _("orientation-requested.5"); /* TRANSLATORS: Reverse Portrait */ _("orientation-requested.6"); /* TRANSLATORS: None */ _("orientation-requested.7"); /* TRANSLATORS: Scanned Image Options */ _("output-attributes"); /* TRANSLATORS: Output Tray */ _("output-bin"); /* TRANSLATORS: Automatic */ _("output-bin.auto"); /* TRANSLATORS: Bottom */ _("output-bin.bottom"); /* TRANSLATORS: Center */ _("output-bin.center"); /* TRANSLATORS: Face Down */ _("output-bin.face-down"); /* TRANSLATORS: Face Up */ _("output-bin.face-up"); /* TRANSLATORS: Large Capacity */ _("output-bin.large-capacity"); /* TRANSLATORS: Left */ _("output-bin.left"); /* TRANSLATORS: Mailbox 1 */ _("output-bin.mailbox-1"); /* TRANSLATORS: Mailbox 10 */ _("output-bin.mailbox-10"); /* TRANSLATORS: Mailbox 2 */ _("output-bin.mailbox-2"); /* TRANSLATORS: Mailbox 3 */ _("output-bin.mailbox-3"); /* TRANSLATORS: Mailbox 4 */ _("output-bin.mailbox-4"); /* TRANSLATORS: Mailbox 5 */ _("output-bin.mailbox-5"); /* TRANSLATORS: Mailbox 6 */ _("output-bin.mailbox-6"); /* TRANSLATORS: Mailbox 7 */ _("output-bin.mailbox-7"); /* TRANSLATORS: Mailbox 8 */ _("output-bin.mailbox-8"); /* TRANSLATORS: Mailbox 9 */ _("output-bin.mailbox-9"); /* TRANSLATORS: Middle */ _("output-bin.middle"); /* TRANSLATORS: My Mailbox */ _("output-bin.my-mailbox"); /* TRANSLATORS: Rear */ _("output-bin.rear"); /* TRANSLATORS: Right */ _("output-bin.right"); /* TRANSLATORS: Side */ _("output-bin.side"); /* TRANSLATORS: Stacker 1 */ _("output-bin.stacker-1"); /* TRANSLATORS: Stacker 10 */ _("output-bin.stacker-10"); /* TRANSLATORS: Stacker 2 */ _("output-bin.stacker-2"); /* TRANSLATORS: Stacker 3 */ _("output-bin.stacker-3"); /* TRANSLATORS: Stacker 4 */ _("output-bin.stacker-4"); /* TRANSLATORS: Stacker 5 */ _("output-bin.stacker-5"); /* TRANSLATORS: Stacker 6 */ _("output-bin.stacker-6"); /* TRANSLATORS: Stacker 7 */ _("output-bin.stacker-7"); /* TRANSLATORS: Stacker 8 */ _("output-bin.stacker-8"); /* TRANSLATORS: Stacker 9 */ _("output-bin.stacker-9"); /* TRANSLATORS: Top */ _("output-bin.top"); /* TRANSLATORS: Tray 1 */ _("output-bin.tray-1"); /* TRANSLATORS: Tray 10 */ _("output-bin.tray-10"); /* TRANSLATORS: Tray 2 */ _("output-bin.tray-2"); /* TRANSLATORS: Tray 3 */ _("output-bin.tray-3"); /* TRANSLATORS: Tray 4 */ _("output-bin.tray-4"); /* TRANSLATORS: Tray 5 */ _("output-bin.tray-5"); /* TRANSLATORS: Tray 6 */ _("output-bin.tray-6"); /* TRANSLATORS: Tray 7 */ _("output-bin.tray-7"); /* TRANSLATORS: Tray 8 */ _("output-bin.tray-8"); /* TRANSLATORS: Tray 9 */ _("output-bin.tray-9"); /* TRANSLATORS: Scanned Image Quality */ _("output-compression-quality-factor"); /* TRANSLATORS: Page Delivery */ _("page-delivery"); /* TRANSLATORS: Reverse Order Face-down */ _("page-delivery.reverse-order-face-down"); /* TRANSLATORS: Reverse Order Face-up */ _("page-delivery.reverse-order-face-up"); /* TRANSLATORS: Same Order Face-down */ _("page-delivery.same-order-face-down"); /* TRANSLATORS: Same Order Face-up */ _("page-delivery.same-order-face-up"); /* TRANSLATORS: System Specified */ _("page-delivery.system-specified"); /* TRANSLATORS: Page Order Received */ _("page-order-received"); /* TRANSLATORS: 1 To N */ _("page-order-received.1-to-n-order"); /* TRANSLATORS: N To 1 */ _("page-order-received.n-to-1-order"); /* TRANSLATORS: Page Ranges */ _("page-ranges"); /* TRANSLATORS: Pages */ _("pages"); /* TRANSLATORS: Pages Per Subset */ _("pages-per-subset"); /* TRANSLATORS: Pclm Raster Back Side */ _("pclm-raster-back-side"); /* TRANSLATORS: Flipped */ _("pclm-raster-back-side.flipped"); /* TRANSLATORS: Normal */ _("pclm-raster-back-side.normal"); /* TRANSLATORS: Rotated */ _("pclm-raster-back-side.rotated"); /* TRANSLATORS: Pclm Source Resolution */ _("pclm-source-resolution"); /* TRANSLATORS: Platform Shape */ _("platform-shape"); /* TRANSLATORS: Round */ _("platform-shape.ellipse"); /* TRANSLATORS: Rectangle */ _("platform-shape.rectangle"); /* TRANSLATORS: Platform Temperature */ _("platform-temperature"); /* TRANSLATORS: Post-dial String */ _("post-dial-string"); /* TRANSLATORS: Pre-dial String */ _("pre-dial-string"); /* TRANSLATORS: Number-Up Layout */ _("presentation-direction-number-up"); /* TRANSLATORS: Top-bottom, Right-left */ _("presentation-direction-number-up.tobottom-toleft"); /* TRANSLATORS: Top-bottom, Left-right */ _("presentation-direction-number-up.tobottom-toright"); /* TRANSLATORS: Right-left, Top-bottom */ _("presentation-direction-number-up.toleft-tobottom"); /* TRANSLATORS: Right-left, Bottom-top */ _("presentation-direction-number-up.toleft-totop"); /* TRANSLATORS: Left-right, Top-bottom */ _("presentation-direction-number-up.toright-tobottom"); /* TRANSLATORS: Left-right, Bottom-top */ _("presentation-direction-number-up.toright-totop"); /* TRANSLATORS: Bottom-top, Right-left */ _("presentation-direction-number-up.totop-toleft"); /* TRANSLATORS: Bottom-top, Left-right */ _("presentation-direction-number-up.totop-toright"); /* TRANSLATORS: Print Accuracy */ _("print-accuracy"); /* TRANSLATORS: Print Base */ _("print-base"); /* TRANSLATORS: Print Base Actual */ _("print-base-actual"); /* TRANSLATORS: Brim */ _("print-base.brim"); /* TRANSLATORS: None */ _("print-base.none"); /* TRANSLATORS: Raft */ _("print-base.raft"); /* TRANSLATORS: Skirt */ _("print-base.skirt"); /* TRANSLATORS: Standard */ _("print-base.standard"); /* TRANSLATORS: Print Color Mode */ _("print-color-mode"); /* TRANSLATORS: Automatic */ _("print-color-mode.auto"); /* TRANSLATORS: Auto Monochrome */ _("print-color-mode.auto-monochrome"); /* TRANSLATORS: Text */ _("print-color-mode.bi-level"); /* TRANSLATORS: Color */ _("print-color-mode.color"); /* TRANSLATORS: Highlight */ _("print-color-mode.highlight"); /* TRANSLATORS: Monochrome */ _("print-color-mode.monochrome"); /* TRANSLATORS: Process Text */ _("print-color-mode.process-bi-level"); /* TRANSLATORS: Process Monochrome */ _("print-color-mode.process-monochrome"); /* TRANSLATORS: Print Optimization */ _("print-content-optimize"); /* TRANSLATORS: Print Content Optimize Actual */ _("print-content-optimize-actual"); /* TRANSLATORS: Automatic */ _("print-content-optimize.auto"); /* TRANSLATORS: Graphics */ _("print-content-optimize.graphic"); /* TRANSLATORS: Graphics */ _("print-content-optimize.graphics"); /* TRANSLATORS: Photo */ _("print-content-optimize.photo"); /* TRANSLATORS: Text */ _("print-content-optimize.text"); /* TRANSLATORS: Text and Graphics */ _("print-content-optimize.text-and-graphic"); /* TRANSLATORS: Text And Graphics */ _("print-content-optimize.text-and-graphics"); /* TRANSLATORS: Print Objects */ _("print-objects"); /* TRANSLATORS: Print Quality */ _("print-quality"); /* TRANSLATORS: Draft */ _("print-quality.3"); /* TRANSLATORS: Normal */ _("print-quality.4"); /* TRANSLATORS: High */ _("print-quality.5"); /* TRANSLATORS: Print Rendering Intent */ _("print-rendering-intent"); /* TRANSLATORS: Absolute */ _("print-rendering-intent.absolute"); /* TRANSLATORS: Automatic */ _("print-rendering-intent.auto"); /* TRANSLATORS: Perceptual */ _("print-rendering-intent.perceptual"); /* TRANSLATORS: Relative */ _("print-rendering-intent.relative"); /* TRANSLATORS: Relative w/Black Point Compensation */ _("print-rendering-intent.relative-bpc"); /* TRANSLATORS: Saturation */ _("print-rendering-intent.saturation"); /* TRANSLATORS: Print Scaling */ _("print-scaling"); /* TRANSLATORS: Automatic */ _("print-scaling.auto"); /* TRANSLATORS: Auto-fit */ _("print-scaling.auto-fit"); /* TRANSLATORS: Fill */ _("print-scaling.fill"); /* TRANSLATORS: Fit */ _("print-scaling.fit"); /* TRANSLATORS: None */ _("print-scaling.none"); /* TRANSLATORS: Print Supports */ _("print-supports"); /* TRANSLATORS: Print Supports Actual */ _("print-supports-actual"); /* TRANSLATORS: With Specified Material */ _("print-supports.material"); /* TRANSLATORS: None */ _("print-supports.none"); /* TRANSLATORS: Standard */ _("print-supports.standard"); /* TRANSLATORS: Printer Kind */ _("printer-kind"); /* TRANSLATORS: Disc */ _("printer-kind.disc"); /* TRANSLATORS: Document */ _("printer-kind.document"); /* TRANSLATORS: Envelope */ _("printer-kind.envelope"); /* TRANSLATORS: Label */ _("printer-kind.label"); /* TRANSLATORS: Large Format */ _("printer-kind.large-format"); /* TRANSLATORS: Photo */ _("printer-kind.photo"); /* TRANSLATORS: Postcard */ _("printer-kind.postcard"); /* TRANSLATORS: Receipt */ _("printer-kind.receipt"); /* TRANSLATORS: Roll */ _("printer-kind.roll"); /* TRANSLATORS: Message From Operator */ _("printer-message-from-operator"); /* TRANSLATORS: Print Resolution */ _("printer-resolution"); /* TRANSLATORS: Printer State */ _("printer-state"); /* TRANSLATORS: Detailed Printer State */ _("printer-state-reasons"); /* TRANSLATORS: Old Alerts Have Been Removed */ _("printer-state-reasons.alert-removal-of-binary-change-entry"); /* TRANSLATORS: Bander Added */ _("printer-state-reasons.bander-added"); /* TRANSLATORS: Bander Almost Empty */ _("printer-state-reasons.bander-almost-empty"); /* TRANSLATORS: Bander Almost Full */ _("printer-state-reasons.bander-almost-full"); /* TRANSLATORS: Bander At Limit */ _("printer-state-reasons.bander-at-limit"); /* TRANSLATORS: Bander Closed */ _("printer-state-reasons.bander-closed"); /* TRANSLATORS: Bander Configuration Change */ _("printer-state-reasons.bander-configuration-change"); /* TRANSLATORS: Bander Cover Closed */ _("printer-state-reasons.bander-cover-closed"); /* TRANSLATORS: Bander Cover Open */ _("printer-state-reasons.bander-cover-open"); /* TRANSLATORS: Bander Empty */ _("printer-state-reasons.bander-empty"); /* TRANSLATORS: Bander Full */ _("printer-state-reasons.bander-full"); /* TRANSLATORS: Bander Interlock Closed */ _("printer-state-reasons.bander-interlock-closed"); /* TRANSLATORS: Bander Interlock Open */ _("printer-state-reasons.bander-interlock-open"); /* TRANSLATORS: Bander Jam */ _("printer-state-reasons.bander-jam"); /* TRANSLATORS: Bander Life Almost Over */ _("printer-state-reasons.bander-life-almost-over"); /* TRANSLATORS: Bander Life Over */ _("printer-state-reasons.bander-life-over"); /* TRANSLATORS: Bander Memory Exhausted */ _("printer-state-reasons.bander-memory-exhausted"); /* TRANSLATORS: Bander Missing */ _("printer-state-reasons.bander-missing"); /* TRANSLATORS: Bander Motor Failure */ _("printer-state-reasons.bander-motor-failure"); /* TRANSLATORS: Bander Near Limit */ _("printer-state-reasons.bander-near-limit"); /* TRANSLATORS: Bander Offline */ _("printer-state-reasons.bander-offline"); /* TRANSLATORS: Bander Opened */ _("printer-state-reasons.bander-opened"); /* TRANSLATORS: Bander Over Temperature */ _("printer-state-reasons.bander-over-temperature"); /* TRANSLATORS: Bander Power Saver */ _("printer-state-reasons.bander-power-saver"); /* TRANSLATORS: Bander Recoverable Failure */ _("printer-state-reasons.bander-recoverable-failure"); /* TRANSLATORS: Bander Recoverable Storage */ _("printer-state-reasons.bander-recoverable-storage"); /* TRANSLATORS: Bander Removed */ _("printer-state-reasons.bander-removed"); /* TRANSLATORS: Bander Resource Added */ _("printer-state-reasons.bander-resource-added"); /* TRANSLATORS: Bander Resource Removed */ _("printer-state-reasons.bander-resource-removed"); /* TRANSLATORS: Bander Thermistor Failure */ _("printer-state-reasons.bander-thermistor-failure"); /* TRANSLATORS: Bander Timing Failure */ _("printer-state-reasons.bander-timing-failure"); /* TRANSLATORS: Bander Turned Off */ _("printer-state-reasons.bander-turned-off"); /* TRANSLATORS: Bander Turned On */ _("printer-state-reasons.bander-turned-on"); /* TRANSLATORS: Bander Under Temperature */ _("printer-state-reasons.bander-under-temperature"); /* TRANSLATORS: Bander Unrecoverable Failure */ _("printer-state-reasons.bander-unrecoverable-failure"); /* TRANSLATORS: Bander Unrecoverable Storage Error */ _("printer-state-reasons.bander-unrecoverable-storage-error"); /* TRANSLATORS: Bander Warming Up */ _("printer-state-reasons.bander-warming-up"); /* TRANSLATORS: Binder Added */ _("printer-state-reasons.binder-added"); /* TRANSLATORS: Binder Almost Empty */ _("printer-state-reasons.binder-almost-empty"); /* TRANSLATORS: Binder Almost Full */ _("printer-state-reasons.binder-almost-full"); /* TRANSLATORS: Binder At Limit */ _("printer-state-reasons.binder-at-limit"); /* TRANSLATORS: Binder Closed */ _("printer-state-reasons.binder-closed"); /* TRANSLATORS: Binder Configuration Change */ _("printer-state-reasons.binder-configuration-change"); /* TRANSLATORS: Binder Cover Closed */ _("printer-state-reasons.binder-cover-closed"); /* TRANSLATORS: Binder Cover Open */ _("printer-state-reasons.binder-cover-open"); /* TRANSLATORS: Binder Empty */ _("printer-state-reasons.binder-empty"); /* TRANSLATORS: Binder Full */ _("printer-state-reasons.binder-full"); /* TRANSLATORS: Binder Interlock Closed */ _("printer-state-reasons.binder-interlock-closed"); /* TRANSLATORS: Binder Interlock Open */ _("printer-state-reasons.binder-interlock-open"); /* TRANSLATORS: Binder Jam */ _("printer-state-reasons.binder-jam"); /* TRANSLATORS: Binder Life Almost Over */ _("printer-state-reasons.binder-life-almost-over"); /* TRANSLATORS: Binder Life Over */ _("printer-state-reasons.binder-life-over"); /* TRANSLATORS: Binder Memory Exhausted */ _("printer-state-reasons.binder-memory-exhausted"); /* TRANSLATORS: Binder Missing */ _("printer-state-reasons.binder-missing"); /* TRANSLATORS: Binder Motor Failure */ _("printer-state-reasons.binder-motor-failure"); /* TRANSLATORS: Binder Near Limit */ _("printer-state-reasons.binder-near-limit"); /* TRANSLATORS: Binder Offline */ _("printer-state-reasons.binder-offline"); /* TRANSLATORS: Binder Opened */ _("printer-state-reasons.binder-opened"); /* TRANSLATORS: Binder Over Temperature */ _("printer-state-reasons.binder-over-temperature"); /* TRANSLATORS: Binder Power Saver */ _("printer-state-reasons.binder-power-saver"); /* TRANSLATORS: Binder Recoverable Failure */ _("printer-state-reasons.binder-recoverable-failure"); /* TRANSLATORS: Binder Recoverable Storage */ _("printer-state-reasons.binder-recoverable-storage"); /* TRANSLATORS: Binder Removed */ _("printer-state-reasons.binder-removed"); /* TRANSLATORS: Binder Resource Added */ _("printer-state-reasons.binder-resource-added"); /* TRANSLATORS: Binder Resource Removed */ _("printer-state-reasons.binder-resource-removed"); /* TRANSLATORS: Binder Thermistor Failure */ _("printer-state-reasons.binder-thermistor-failure"); /* TRANSLATORS: Binder Timing Failure */ _("printer-state-reasons.binder-timing-failure"); /* TRANSLATORS: Binder Turned Off */ _("printer-state-reasons.binder-turned-off"); /* TRANSLATORS: Binder Turned On */ _("printer-state-reasons.binder-turned-on"); /* TRANSLATORS: Binder Under Temperature */ _("printer-state-reasons.binder-under-temperature"); /* TRANSLATORS: Binder Unrecoverable Failure */ _("printer-state-reasons.binder-unrecoverable-failure"); /* TRANSLATORS: Binder Unrecoverable Storage Error */ _("printer-state-reasons.binder-unrecoverable-storage-error"); /* TRANSLATORS: Binder Warming Up */ _("printer-state-reasons.binder-warming-up"); /* TRANSLATORS: Camera Failure */ _("printer-state-reasons.camera-failure"); /* TRANSLATORS: Chamber Cooling */ _("printer-state-reasons.chamber-cooling"); /* TRANSLATORS: Chamber Failure */ _("printer-state-reasons.chamber-failure"); /* TRANSLATORS: Chamber Heating */ _("printer-state-reasons.chamber-heating"); /* TRANSLATORS: Chamber Temperature High */ _("printer-state-reasons.chamber-temperature-high"); /* TRANSLATORS: Chamber Temperature Low */ _("printer-state-reasons.chamber-temperature-low"); /* TRANSLATORS: Cleaner Life Almost Over */ _("printer-state-reasons.cleaner-life-almost-over"); /* TRANSLATORS: Cleaner Life Over */ _("printer-state-reasons.cleaner-life-over"); /* TRANSLATORS: Configuration Change */ _("printer-state-reasons.configuration-change"); /* TRANSLATORS: Connecting To Device */ _("printer-state-reasons.connecting-to-device"); /* TRANSLATORS: Cover Open */ _("printer-state-reasons.cover-open"); /* TRANSLATORS: Deactivated */ _("printer-state-reasons.deactivated"); /* TRANSLATORS: Developer Empty */ _("printer-state-reasons.developer-empty"); /* TRANSLATORS: Developer Low */ _("printer-state-reasons.developer-low"); /* TRANSLATORS: Die Cutter Added */ _("printer-state-reasons.die-cutter-added"); /* TRANSLATORS: Die Cutter Almost Empty */ _("printer-state-reasons.die-cutter-almost-empty"); /* TRANSLATORS: Die Cutter Almost Full */ _("printer-state-reasons.die-cutter-almost-full"); /* TRANSLATORS: Die Cutter At Limit */ _("printer-state-reasons.die-cutter-at-limit"); /* TRANSLATORS: Die Cutter Closed */ _("printer-state-reasons.die-cutter-closed"); /* TRANSLATORS: Die Cutter Configuration Change */ _("printer-state-reasons.die-cutter-configuration-change"); /* TRANSLATORS: Die Cutter Cover Closed */ _("printer-state-reasons.die-cutter-cover-closed"); /* TRANSLATORS: Die Cutter Cover Open */ _("printer-state-reasons.die-cutter-cover-open"); /* TRANSLATORS: Die Cutter Empty */ _("printer-state-reasons.die-cutter-empty"); /* TRANSLATORS: Die Cutter Full */ _("printer-state-reasons.die-cutter-full"); /* TRANSLATORS: Die Cutter Interlock Closed */ _("printer-state-reasons.die-cutter-interlock-closed"); /* TRANSLATORS: Die Cutter Interlock Open */ _("printer-state-reasons.die-cutter-interlock-open"); /* TRANSLATORS: Die Cutter Jam */ _("printer-state-reasons.die-cutter-jam"); /* TRANSLATORS: Die Cutter Life Almost Over */ _("printer-state-reasons.die-cutter-life-almost-over"); /* TRANSLATORS: Die Cutter Life Over */ _("printer-state-reasons.die-cutter-life-over"); /* TRANSLATORS: Die Cutter Memory Exhausted */ _("printer-state-reasons.die-cutter-memory-exhausted"); /* TRANSLATORS: Die Cutter Missing */ _("printer-state-reasons.die-cutter-missing"); /* TRANSLATORS: Die Cutter Motor Failure */ _("printer-state-reasons.die-cutter-motor-failure"); /* TRANSLATORS: Die Cutter Near Limit */ _("printer-state-reasons.die-cutter-near-limit"); /* TRANSLATORS: Die Cutter Offline */ _("printer-state-reasons.die-cutter-offline"); /* TRANSLATORS: Die Cutter Opened */ _("printer-state-reasons.die-cutter-opened"); /* TRANSLATORS: Die Cutter Over Temperature */ _("printer-state-reasons.die-cutter-over-temperature"); /* TRANSLATORS: Die Cutter Power Saver */ _("printer-state-reasons.die-cutter-power-saver"); /* TRANSLATORS: Die Cutter Recoverable Failure */ _("printer-state-reasons.die-cutter-recoverable-failure"); /* TRANSLATORS: Die Cutter Recoverable Storage */ _("printer-state-reasons.die-cutter-recoverable-storage"); /* TRANSLATORS: Die Cutter Removed */ _("printer-state-reasons.die-cutter-removed"); /* TRANSLATORS: Die Cutter Resource Added */ _("printer-state-reasons.die-cutter-resource-added"); /* TRANSLATORS: Die Cutter Resource Removed */ _("printer-state-reasons.die-cutter-resource-removed"); /* TRANSLATORS: Die Cutter Thermistor Failure */ _("printer-state-reasons.die-cutter-thermistor-failure"); /* TRANSLATORS: Die Cutter Timing Failure */ _("printer-state-reasons.die-cutter-timing-failure"); /* TRANSLATORS: Die Cutter Turned Off */ _("printer-state-reasons.die-cutter-turned-off"); /* TRANSLATORS: Die Cutter Turned On */ _("printer-state-reasons.die-cutter-turned-on"); /* TRANSLATORS: Die Cutter Under Temperature */ _("printer-state-reasons.die-cutter-under-temperature"); /* TRANSLATORS: Die Cutter Unrecoverable Failure */ _("printer-state-reasons.die-cutter-unrecoverable-failure"); /* TRANSLATORS: Die Cutter Unrecoverable Storage Error */ _("printer-state-reasons.die-cutter-unrecoverable-storage-error"); /* TRANSLATORS: Die Cutter Warming Up */ _("printer-state-reasons.die-cutter-warming-up"); /* TRANSLATORS: Door Open */ _("printer-state-reasons.door-open"); /* TRANSLATORS: Extruder Cooling */ _("printer-state-reasons.extruder-cooling"); /* TRANSLATORS: Extruder Failure */ _("printer-state-reasons.extruder-failure"); /* TRANSLATORS: Extruder Heating */ _("printer-state-reasons.extruder-heating"); /* TRANSLATORS: Extruder Jam */ _("printer-state-reasons.extruder-jam"); /* TRANSLATORS: Extruder Temperature High */ _("printer-state-reasons.extruder-temperature-high"); /* TRANSLATORS: Extruder Temperature Low */ _("printer-state-reasons.extruder-temperature-low"); /* TRANSLATORS: Fan Failure */ _("printer-state-reasons.fan-failure"); /* TRANSLATORS: Fax Modem Life Almost Over */ _("printer-state-reasons.fax-modem-life-almost-over"); /* TRANSLATORS: Fax Modem Life Over */ _("printer-state-reasons.fax-modem-life-over"); /* TRANSLATORS: Fax Modem Missing */ _("printer-state-reasons.fax-modem-missing"); /* TRANSLATORS: Fax Modem Turned Off */ _("printer-state-reasons.fax-modem-turned-off"); /* TRANSLATORS: Fax Modem Turned On */ _("printer-state-reasons.fax-modem-turned-on"); /* TRANSLATORS: Folder Added */ _("printer-state-reasons.folder-added"); /* TRANSLATORS: Folder Almost Empty */ _("printer-state-reasons.folder-almost-empty"); /* TRANSLATORS: Folder Almost Full */ _("printer-state-reasons.folder-almost-full"); /* TRANSLATORS: Folder At Limit */ _("printer-state-reasons.folder-at-limit"); /* TRANSLATORS: Folder Closed */ _("printer-state-reasons.folder-closed"); /* TRANSLATORS: Folder Configuration Change */ _("printer-state-reasons.folder-configuration-change"); /* TRANSLATORS: Folder Cover Closed */ _("printer-state-reasons.folder-cover-closed"); /* TRANSLATORS: Folder Cover Open */ _("printer-state-reasons.folder-cover-open"); /* TRANSLATORS: Folder Empty */ _("printer-state-reasons.folder-empty"); /* TRANSLATORS: Folder Full */ _("printer-state-reasons.folder-full"); /* TRANSLATORS: Folder Interlock Closed */ _("printer-state-reasons.folder-interlock-closed"); /* TRANSLATORS: Folder Interlock Open */ _("printer-state-reasons.folder-interlock-open"); /* TRANSLATORS: Folder Jam */ _("printer-state-reasons.folder-jam"); /* TRANSLATORS: Folder Life Almost Over */ _("printer-state-reasons.folder-life-almost-over"); /* TRANSLATORS: Folder Life Over */ _("printer-state-reasons.folder-life-over"); /* TRANSLATORS: Folder Memory Exhausted */ _("printer-state-reasons.folder-memory-exhausted"); /* TRANSLATORS: Folder Missing */ _("printer-state-reasons.folder-missing"); /* TRANSLATORS: Folder Motor Failure */ _("printer-state-reasons.folder-motor-failure"); /* TRANSLATORS: Folder Near Limit */ _("printer-state-reasons.folder-near-limit"); /* TRANSLATORS: Folder Offline */ _("printer-state-reasons.folder-offline"); /* TRANSLATORS: Folder Opened */ _("printer-state-reasons.folder-opened"); /* TRANSLATORS: Folder Over Temperature */ _("printer-state-reasons.folder-over-temperature"); /* TRANSLATORS: Folder Power Saver */ _("printer-state-reasons.folder-power-saver"); /* TRANSLATORS: Folder Recoverable Failure */ _("printer-state-reasons.folder-recoverable-failure"); /* TRANSLATORS: Folder Recoverable Storage */ _("printer-state-reasons.folder-recoverable-storage"); /* TRANSLATORS: Folder Removed */ _("printer-state-reasons.folder-removed"); /* TRANSLATORS: Folder Resource Added */ _("printer-state-reasons.folder-resource-added"); /* TRANSLATORS: Folder Resource Removed */ _("printer-state-reasons.folder-resource-removed"); /* TRANSLATORS: Folder Thermistor Failure */ _("printer-state-reasons.folder-thermistor-failure"); /* TRANSLATORS: Folder Timing Failure */ _("printer-state-reasons.folder-timing-failure"); /* TRANSLATORS: Folder Turned Off */ _("printer-state-reasons.folder-turned-off"); /* TRANSLATORS: Folder Turned On */ _("printer-state-reasons.folder-turned-on"); /* TRANSLATORS: Folder Under Temperature */ _("printer-state-reasons.folder-under-temperature"); /* TRANSLATORS: Folder Unrecoverable Failure */ _("printer-state-reasons.folder-unrecoverable-failure"); /* TRANSLATORS: Folder Unrecoverable Storage Error */ _("printer-state-reasons.folder-unrecoverable-storage-error"); /* TRANSLATORS: Folder Warming Up */ _("printer-state-reasons.folder-warming-up"); /* TRANSLATORS: Fuser temperature high */ _("printer-state-reasons.fuser-over-temp"); /* TRANSLATORS: Fuser temperature low */ _("printer-state-reasons.fuser-under-temp"); /* TRANSLATORS: Hold New Jobs */ _("printer-state-reasons.hold-new-jobs"); /* TRANSLATORS: Identify Printer */ _("printer-state-reasons.identify-printer-requested"); /* TRANSLATORS: Imprinter Added */ _("printer-state-reasons.imprinter-added"); /* TRANSLATORS: Imprinter Almost Empty */ _("printer-state-reasons.imprinter-almost-empty"); /* TRANSLATORS: Imprinter Almost Full */ _("printer-state-reasons.imprinter-almost-full"); /* TRANSLATORS: Imprinter At Limit */ _("printer-state-reasons.imprinter-at-limit"); /* TRANSLATORS: Imprinter Closed */ _("printer-state-reasons.imprinter-closed"); /* TRANSLATORS: Imprinter Configuration Change */ _("printer-state-reasons.imprinter-configuration-change"); /* TRANSLATORS: Imprinter Cover Closed */ _("printer-state-reasons.imprinter-cover-closed"); /* TRANSLATORS: Imprinter Cover Open */ _("printer-state-reasons.imprinter-cover-open"); /* TRANSLATORS: Imprinter Empty */ _("printer-state-reasons.imprinter-empty"); /* TRANSLATORS: Imprinter Full */ _("printer-state-reasons.imprinter-full"); /* TRANSLATORS: Imprinter Interlock Closed */ _("printer-state-reasons.imprinter-interlock-closed"); /* TRANSLATORS: Imprinter Interlock Open */ _("printer-state-reasons.imprinter-interlock-open"); /* TRANSLATORS: Imprinter Jam */ _("printer-state-reasons.imprinter-jam"); /* TRANSLATORS: Imprinter Life Almost Over */ _("printer-state-reasons.imprinter-life-almost-over"); /* TRANSLATORS: Imprinter Life Over */ _("printer-state-reasons.imprinter-life-over"); /* TRANSLATORS: Imprinter Memory Exhausted */ _("printer-state-reasons.imprinter-memory-exhausted"); /* TRANSLATORS: Imprinter Missing */ _("printer-state-reasons.imprinter-missing"); /* TRANSLATORS: Imprinter Motor Failure */ _("printer-state-reasons.imprinter-motor-failure"); /* TRANSLATORS: Imprinter Near Limit */ _("printer-state-reasons.imprinter-near-limit"); /* TRANSLATORS: Imprinter Offline */ _("printer-state-reasons.imprinter-offline"); /* TRANSLATORS: Imprinter Opened */ _("printer-state-reasons.imprinter-opened"); /* TRANSLATORS: Imprinter Over Temperature */ _("printer-state-reasons.imprinter-over-temperature"); /* TRANSLATORS: Imprinter Power Saver */ _("printer-state-reasons.imprinter-power-saver"); /* TRANSLATORS: Imprinter Recoverable Failure */ _("printer-state-reasons.imprinter-recoverable-failure"); /* TRANSLATORS: Imprinter Recoverable Storage */ _("printer-state-reasons.imprinter-recoverable-storage"); /* TRANSLATORS: Imprinter Removed */ _("printer-state-reasons.imprinter-removed"); /* TRANSLATORS: Imprinter Resource Added */ _("printer-state-reasons.imprinter-resource-added"); /* TRANSLATORS: Imprinter Resource Removed */ _("printer-state-reasons.imprinter-resource-removed"); /* TRANSLATORS: Imprinter Thermistor Failure */ _("printer-state-reasons.imprinter-thermistor-failure"); /* TRANSLATORS: Imprinter Timing Failure */ _("printer-state-reasons.imprinter-timing-failure"); /* TRANSLATORS: Imprinter Turned Off */ _("printer-state-reasons.imprinter-turned-off"); /* TRANSLATORS: Imprinter Turned On */ _("printer-state-reasons.imprinter-turned-on"); /* TRANSLATORS: Imprinter Under Temperature */ _("printer-state-reasons.imprinter-under-temperature"); /* TRANSLATORS: Imprinter Unrecoverable Failure */ _("printer-state-reasons.imprinter-unrecoverable-failure"); /* TRANSLATORS: Imprinter Unrecoverable Storage Error */ _("printer-state-reasons.imprinter-unrecoverable-storage-error"); /* TRANSLATORS: Imprinter Warming Up */ _("printer-state-reasons.imprinter-warming-up"); /* TRANSLATORS: Input Cannot Feed Size Selected */ _("printer-state-reasons.input-cannot-feed-size-selected"); /* TRANSLATORS: Input Manual Input Request */ _("printer-state-reasons.input-manual-input-request"); /* TRANSLATORS: Input Media Color Change */ _("printer-state-reasons.input-media-color-change"); /* TRANSLATORS: Input Media Form Parts Change */ _("printer-state-reasons.input-media-form-parts-change"); /* TRANSLATORS: Input Media Size Change */ _("printer-state-reasons.input-media-size-change"); /* TRANSLATORS: Input Media Tray Failure */ _("printer-state-reasons.input-media-tray-failure"); /* TRANSLATORS: Input Media Tray Feed Error */ _("printer-state-reasons.input-media-tray-feed-error"); /* TRANSLATORS: Input Media Tray Jam */ _("printer-state-reasons.input-media-tray-jam"); /* TRANSLATORS: Input Media Type Change */ _("printer-state-reasons.input-media-type-change"); /* TRANSLATORS: Input Media Weight Change */ _("printer-state-reasons.input-media-weight-change"); /* TRANSLATORS: Input Pick Roller Failure */ _("printer-state-reasons.input-pick-roller-failure"); /* TRANSLATORS: Input Pick Roller Life Over */ _("printer-state-reasons.input-pick-roller-life-over"); /* TRANSLATORS: Input Pick Roller Life Warn */ _("printer-state-reasons.input-pick-roller-life-warn"); /* TRANSLATORS: Input Pick Roller Missing */ _("printer-state-reasons.input-pick-roller-missing"); /* TRANSLATORS: Input Tray Elevation Failure */ _("printer-state-reasons.input-tray-elevation-failure"); /* TRANSLATORS: Paper tray is missing */ _("printer-state-reasons.input-tray-missing"); /* TRANSLATORS: Input Tray Position Failure */ _("printer-state-reasons.input-tray-position-failure"); /* TRANSLATORS: Inserter Added */ _("printer-state-reasons.inserter-added"); /* TRANSLATORS: Inserter Almost Empty */ _("printer-state-reasons.inserter-almost-empty"); /* TRANSLATORS: Inserter Almost Full */ _("printer-state-reasons.inserter-almost-full"); /* TRANSLATORS: Inserter At Limit */ _("printer-state-reasons.inserter-at-limit"); /* TRANSLATORS: Inserter Closed */ _("printer-state-reasons.inserter-closed"); /* TRANSLATORS: Inserter Configuration Change */ _("printer-state-reasons.inserter-configuration-change"); /* TRANSLATORS: Inserter Cover Closed */ _("printer-state-reasons.inserter-cover-closed"); /* TRANSLATORS: Inserter Cover Open */ _("printer-state-reasons.inserter-cover-open"); /* TRANSLATORS: Inserter Empty */ _("printer-state-reasons.inserter-empty"); /* TRANSLATORS: Inserter Full */ _("printer-state-reasons.inserter-full"); /* TRANSLATORS: Inserter Interlock Closed */ _("printer-state-reasons.inserter-interlock-closed"); /* TRANSLATORS: Inserter Interlock Open */ _("printer-state-reasons.inserter-interlock-open"); /* TRANSLATORS: Inserter Jam */ _("printer-state-reasons.inserter-jam"); /* TRANSLATORS: Inserter Life Almost Over */ _("printer-state-reasons.inserter-life-almost-over"); /* TRANSLATORS: Inserter Life Over */ _("printer-state-reasons.inserter-life-over"); /* TRANSLATORS: Inserter Memory Exhausted */ _("printer-state-reasons.inserter-memory-exhausted"); /* TRANSLATORS: Inserter Missing */ _("printer-state-reasons.inserter-missing"); /* TRANSLATORS: Inserter Motor Failure */ _("printer-state-reasons.inserter-motor-failure"); /* TRANSLATORS: Inserter Near Limit */ _("printer-state-reasons.inserter-near-limit"); /* TRANSLATORS: Inserter Offline */ _("printer-state-reasons.inserter-offline"); /* TRANSLATORS: Inserter Opened */ _("printer-state-reasons.inserter-opened"); /* TRANSLATORS: Inserter Over Temperature */ _("printer-state-reasons.inserter-over-temperature"); /* TRANSLATORS: Inserter Power Saver */ _("printer-state-reasons.inserter-power-saver"); /* TRANSLATORS: Inserter Recoverable Failure */ _("printer-state-reasons.inserter-recoverable-failure"); /* TRANSLATORS: Inserter Recoverable Storage */ _("printer-state-reasons.inserter-recoverable-storage"); /* TRANSLATORS: Inserter Removed */ _("printer-state-reasons.inserter-removed"); /* TRANSLATORS: Inserter Resource Added */ _("printer-state-reasons.inserter-resource-added"); /* TRANSLATORS: Inserter Resource Removed */ _("printer-state-reasons.inserter-resource-removed"); /* TRANSLATORS: Inserter Thermistor Failure */ _("printer-state-reasons.inserter-thermistor-failure"); /* TRANSLATORS: Inserter Timing Failure */ _("printer-state-reasons.inserter-timing-failure"); /* TRANSLATORS: Inserter Turned Off */ _("printer-state-reasons.inserter-turned-off"); /* TRANSLATORS: Inserter Turned On */ _("printer-state-reasons.inserter-turned-on"); /* TRANSLATORS: Inserter Under Temperature */ _("printer-state-reasons.inserter-under-temperature"); /* TRANSLATORS: Inserter Unrecoverable Failure */ _("printer-state-reasons.inserter-unrecoverable-failure"); /* TRANSLATORS: Inserter Unrecoverable Storage Error */ _("printer-state-reasons.inserter-unrecoverable-storage-error"); /* TRANSLATORS: Inserter Warming Up */ _("printer-state-reasons.inserter-warming-up"); /* TRANSLATORS: Interlock Closed */ _("printer-state-reasons.interlock-closed"); /* TRANSLATORS: Interlock Open */ _("printer-state-reasons.interlock-open"); /* TRANSLATORS: Interpreter Cartridge Added */ _("printer-state-reasons.interpreter-cartridge-added"); /* TRANSLATORS: Interpreter Cartridge Removed */ _("printer-state-reasons.interpreter-cartridge-deleted"); /* TRANSLATORS: Interpreter Complex Page Encountered */ _("printer-state-reasons.interpreter-complex-page-encountered"); /* TRANSLATORS: Interpreter Memory Decrease */ _("printer-state-reasons.interpreter-memory-decrease"); /* TRANSLATORS: Interpreter Memory Increase */ _("printer-state-reasons.interpreter-memory-increase"); /* TRANSLATORS: Interpreter Resource Added */ _("printer-state-reasons.interpreter-resource-added"); /* TRANSLATORS: Interpreter Resource Deleted */ _("printer-state-reasons.interpreter-resource-deleted"); /* TRANSLATORS: Printer resource unavailable */ _("printer-state-reasons.interpreter-resource-unavailable"); /* TRANSLATORS: Lamp At End of Life */ _("printer-state-reasons.lamp-at-eol"); /* TRANSLATORS: Lamp Failure */ _("printer-state-reasons.lamp-failure"); /* TRANSLATORS: Lamp Near End of Life */ _("printer-state-reasons.lamp-near-eol"); /* TRANSLATORS: Laser At End of Life */ _("printer-state-reasons.laser-at-eol"); /* TRANSLATORS: Laser Failure */ _("printer-state-reasons.laser-failure"); /* TRANSLATORS: Laser Near End of Life */ _("printer-state-reasons.laser-near-eol"); /* TRANSLATORS: Envelope Maker Added */ _("printer-state-reasons.make-envelope-added"); /* TRANSLATORS: Envelope Maker Almost Empty */ _("printer-state-reasons.make-envelope-almost-empty"); /* TRANSLATORS: Envelope Maker Almost Full */ _("printer-state-reasons.make-envelope-almost-full"); /* TRANSLATORS: Envelope Maker At Limit */ _("printer-state-reasons.make-envelope-at-limit"); /* TRANSLATORS: Envelope Maker Closed */ _("printer-state-reasons.make-envelope-closed"); /* TRANSLATORS: Envelope Maker Configuration Change */ _("printer-state-reasons.make-envelope-configuration-change"); /* TRANSLATORS: Envelope Maker Cover Closed */ _("printer-state-reasons.make-envelope-cover-closed"); /* TRANSLATORS: Envelope Maker Cover Open */ _("printer-state-reasons.make-envelope-cover-open"); /* TRANSLATORS: Envelope Maker Empty */ _("printer-state-reasons.make-envelope-empty"); /* TRANSLATORS: Envelope Maker Full */ _("printer-state-reasons.make-envelope-full"); /* TRANSLATORS: Envelope Maker Interlock Closed */ _("printer-state-reasons.make-envelope-interlock-closed"); /* TRANSLATORS: Envelope Maker Interlock Open */ _("printer-state-reasons.make-envelope-interlock-open"); /* TRANSLATORS: Envelope Maker Jam */ _("printer-state-reasons.make-envelope-jam"); /* TRANSLATORS: Envelope Maker Life Almost Over */ _("printer-state-reasons.make-envelope-life-almost-over"); /* TRANSLATORS: Envelope Maker Life Over */ _("printer-state-reasons.make-envelope-life-over"); /* TRANSLATORS: Envelope Maker Memory Exhausted */ _("printer-state-reasons.make-envelope-memory-exhausted"); /* TRANSLATORS: Envelope Maker Missing */ _("printer-state-reasons.make-envelope-missing"); /* TRANSLATORS: Envelope Maker Motor Failure */ _("printer-state-reasons.make-envelope-motor-failure"); /* TRANSLATORS: Envelope Maker Near Limit */ _("printer-state-reasons.make-envelope-near-limit"); /* TRANSLATORS: Envelope Maker Offline */ _("printer-state-reasons.make-envelope-offline"); /* TRANSLATORS: Envelope Maker Opened */ _("printer-state-reasons.make-envelope-opened"); /* TRANSLATORS: Envelope Maker Over Temperature */ _("printer-state-reasons.make-envelope-over-temperature"); /* TRANSLATORS: Envelope Maker Power Saver */ _("printer-state-reasons.make-envelope-power-saver"); /* TRANSLATORS: Envelope Maker Recoverable Failure */ _("printer-state-reasons.make-envelope-recoverable-failure"); /* TRANSLATORS: Envelope Maker Recoverable Storage */ _("printer-state-reasons.make-envelope-recoverable-storage"); /* TRANSLATORS: Envelope Maker Removed */ _("printer-state-reasons.make-envelope-removed"); /* TRANSLATORS: Envelope Maker Resource Added */ _("printer-state-reasons.make-envelope-resource-added"); /* TRANSLATORS: Envelope Maker Resource Removed */ _("printer-state-reasons.make-envelope-resource-removed"); /* TRANSLATORS: Envelope Maker Thermistor Failure */ _("printer-state-reasons.make-envelope-thermistor-failure"); /* TRANSLATORS: Envelope Maker Timing Failure */ _("printer-state-reasons.make-envelope-timing-failure"); /* TRANSLATORS: Envelope Maker Turned Off */ _("printer-state-reasons.make-envelope-turned-off"); /* TRANSLATORS: Envelope Maker Turned On */ _("printer-state-reasons.make-envelope-turned-on"); /* TRANSLATORS: Envelope Maker Under Temperature */ _("printer-state-reasons.make-envelope-under-temperature"); /* TRANSLATORS: Envelope Maker Unrecoverable Failure */ _("printer-state-reasons.make-envelope-unrecoverable-failure"); /* TRANSLATORS: Envelope Maker Unrecoverable Storage Error */ _("printer-state-reasons.make-envelope-unrecoverable-storage-error"); /* TRANSLATORS: Envelope Maker Warming Up */ _("printer-state-reasons.make-envelope-warming-up"); /* TRANSLATORS: Marker Adjusting Print Quality */ _("printer-state-reasons.marker-adjusting-print-quality"); /* TRANSLATORS: Marker Cleaner Missing */ _("printer-state-reasons.marker-cleaner-missing"); /* TRANSLATORS: Marker Developer Almost Empty */ _("printer-state-reasons.marker-developer-almost-empty"); /* TRANSLATORS: Marker Developer Empty */ _("printer-state-reasons.marker-developer-empty"); /* TRANSLATORS: Marker Developer Missing */ _("printer-state-reasons.marker-developer-missing"); /* TRANSLATORS: Marker Fuser Missing */ _("printer-state-reasons.marker-fuser-missing"); /* TRANSLATORS: Marker Fuser Thermistor Failure */ _("printer-state-reasons.marker-fuser-thermistor-failure"); /* TRANSLATORS: Marker Fuser Timing Failure */ _("printer-state-reasons.marker-fuser-timing-failure"); /* TRANSLATORS: Marker Ink Almost Empty */ _("printer-state-reasons.marker-ink-almost-empty"); /* TRANSLATORS: Marker Ink Empty */ _("printer-state-reasons.marker-ink-empty"); /* TRANSLATORS: Marker Ink Missing */ _("printer-state-reasons.marker-ink-missing"); /* TRANSLATORS: Marker Opc Missing */ _("printer-state-reasons.marker-opc-missing"); /* TRANSLATORS: Marker Print Ribbon Almost Empty */ _("printer-state-reasons.marker-print-ribbon-almost-empty"); /* TRANSLATORS: Marker Print Ribbon Empty */ _("printer-state-reasons.marker-print-ribbon-empty"); /* TRANSLATORS: Marker Print Ribbon Missing */ _("printer-state-reasons.marker-print-ribbon-missing"); /* TRANSLATORS: Marker Supply Almost Empty */ _("printer-state-reasons.marker-supply-almost-empty"); /* TRANSLATORS: Ink/toner empty */ _("printer-state-reasons.marker-supply-empty"); /* TRANSLATORS: Ink/toner low */ _("printer-state-reasons.marker-supply-low"); /* TRANSLATORS: Marker Supply Missing */ _("printer-state-reasons.marker-supply-missing"); /* TRANSLATORS: Marker Toner Cartridge Missing */ _("printer-state-reasons.marker-toner-cartridge-missing"); /* TRANSLATORS: Marker Toner Missing */ _("printer-state-reasons.marker-toner-missing"); /* TRANSLATORS: Ink/toner waste bin almost full */ _("printer-state-reasons.marker-waste-almost-full"); /* TRANSLATORS: Ink/toner waste bin full */ _("printer-state-reasons.marker-waste-full"); /* TRANSLATORS: Marker Waste Ink Receptacle Almost Full */ _("printer-state-reasons.marker-waste-ink-receptacle-almost-full"); /* TRANSLATORS: Marker Waste Ink Receptacle Full */ _("printer-state-reasons.marker-waste-ink-receptacle-full"); /* TRANSLATORS: Marker Waste Ink Receptacle Missing */ _("printer-state-reasons.marker-waste-ink-receptacle-missing"); /* TRANSLATORS: Marker Waste Missing */ _("printer-state-reasons.marker-waste-missing"); /* TRANSLATORS: Marker Waste Toner Receptacle Almost Full */ _("printer-state-reasons.marker-waste-toner-receptacle-almost-full"); /* TRANSLATORS: Marker Waste Toner Receptacle Full */ _("printer-state-reasons.marker-waste-toner-receptacle-full"); /* TRANSLATORS: Marker Waste Toner Receptacle Missing */ _("printer-state-reasons.marker-waste-toner-receptacle-missing"); /* TRANSLATORS: Material Empty */ _("printer-state-reasons.material-empty"); /* TRANSLATORS: Material Low */ _("printer-state-reasons.material-low"); /* TRANSLATORS: Material Needed */ _("printer-state-reasons.material-needed"); /* TRANSLATORS: Media Drying */ _("printer-state-reasons.media-drying"); /* TRANSLATORS: Paper tray is empty */ _("printer-state-reasons.media-empty"); /* TRANSLATORS: Paper jam */ _("printer-state-reasons.media-jam"); /* TRANSLATORS: Paper tray is almost empty */ _("printer-state-reasons.media-low"); /* TRANSLATORS: Load paper */ _("printer-state-reasons.media-needed"); /* TRANSLATORS: Media Path Cannot Do 2-Sided Printing */ _("printer-state-reasons.media-path-cannot-duplex-media-selected"); /* TRANSLATORS: Media Path Failure */ _("printer-state-reasons.media-path-failure"); /* TRANSLATORS: Media Path Input Empty */ _("printer-state-reasons.media-path-input-empty"); /* TRANSLATORS: Media Path Input Feed Error */ _("printer-state-reasons.media-path-input-feed-error"); /* TRANSLATORS: Media Path Input Jam */ _("printer-state-reasons.media-path-input-jam"); /* TRANSLATORS: Media Path Input Request */ _("printer-state-reasons.media-path-input-request"); /* TRANSLATORS: Media Path Jam */ _("printer-state-reasons.media-path-jam"); /* TRANSLATORS: Media Path Media Tray Almost Full */ _("printer-state-reasons.media-path-media-tray-almost-full"); /* TRANSLATORS: Media Path Media Tray Full */ _("printer-state-reasons.media-path-media-tray-full"); /* TRANSLATORS: Media Path Media Tray Missing */ _("printer-state-reasons.media-path-media-tray-missing"); /* TRANSLATORS: Media Path Output Feed Error */ _("printer-state-reasons.media-path-output-feed-error"); /* TRANSLATORS: Media Path Output Full */ _("printer-state-reasons.media-path-output-full"); /* TRANSLATORS: Media Path Output Jam */ _("printer-state-reasons.media-path-output-jam"); /* TRANSLATORS: Media Path Pick Roller Failure */ _("printer-state-reasons.media-path-pick-roller-failure"); /* TRANSLATORS: Media Path Pick Roller Life Over */ _("printer-state-reasons.media-path-pick-roller-life-over"); /* TRANSLATORS: Media Path Pick Roller Life Warn */ _("printer-state-reasons.media-path-pick-roller-life-warn"); /* TRANSLATORS: Media Path Pick Roller Missing */ _("printer-state-reasons.media-path-pick-roller-missing"); /* TRANSLATORS: Motor Failure */ _("printer-state-reasons.motor-failure"); /* TRANSLATORS: Printer going offline */ _("printer-state-reasons.moving-to-paused"); /* TRANSLATORS: None */ _("printer-state-reasons.none"); /* TRANSLATORS: Optical Photoconductor Life Over */ _("printer-state-reasons.opc-life-over"); /* TRANSLATORS: OPC almost at end-of-life */ _("printer-state-reasons.opc-near-eol"); /* TRANSLATORS: Check the printer for errors */ _("printer-state-reasons.other"); /* TRANSLATORS: Output bin is almost full */ _("printer-state-reasons.output-area-almost-full"); /* TRANSLATORS: Output bin is full */ _("printer-state-reasons.output-area-full"); /* TRANSLATORS: Output Mailbox Select Failure */ _("printer-state-reasons.output-mailbox-select-failure"); /* TRANSLATORS: Output Media Tray Failure */ _("printer-state-reasons.output-media-tray-failure"); /* TRANSLATORS: Output Media Tray Feed Error */ _("printer-state-reasons.output-media-tray-feed-error"); /* TRANSLATORS: Output Media Tray Jam */ _("printer-state-reasons.output-media-tray-jam"); /* TRANSLATORS: Output tray is missing */ _("printer-state-reasons.output-tray-missing"); /* TRANSLATORS: Paused */ _("printer-state-reasons.paused"); /* TRANSLATORS: Perforater Added */ _("printer-state-reasons.perforater-added"); /* TRANSLATORS: Perforater Almost Empty */ _("printer-state-reasons.perforater-almost-empty"); /* TRANSLATORS: Perforater Almost Full */ _("printer-state-reasons.perforater-almost-full"); /* TRANSLATORS: Perforater At Limit */ _("printer-state-reasons.perforater-at-limit"); /* TRANSLATORS: Perforater Closed */ _("printer-state-reasons.perforater-closed"); /* TRANSLATORS: Perforater Configuration Change */ _("printer-state-reasons.perforater-configuration-change"); /* TRANSLATORS: Perforater Cover Closed */ _("printer-state-reasons.perforater-cover-closed"); /* TRANSLATORS: Perforater Cover Open */ _("printer-state-reasons.perforater-cover-open"); /* TRANSLATORS: Perforater Empty */ _("printer-state-reasons.perforater-empty"); /* TRANSLATORS: Perforater Full */ _("printer-state-reasons.perforater-full"); /* TRANSLATORS: Perforater Interlock Closed */ _("printer-state-reasons.perforater-interlock-closed"); /* TRANSLATORS: Perforater Interlock Open */ _("printer-state-reasons.perforater-interlock-open"); /* TRANSLATORS: Perforater Jam */ _("printer-state-reasons.perforater-jam"); /* TRANSLATORS: Perforater Life Almost Over */ _("printer-state-reasons.perforater-life-almost-over"); /* TRANSLATORS: Perforater Life Over */ _("printer-state-reasons.perforater-life-over"); /* TRANSLATORS: Perforater Memory Exhausted */ _("printer-state-reasons.perforater-memory-exhausted"); /* TRANSLATORS: Perforater Missing */ _("printer-state-reasons.perforater-missing"); /* TRANSLATORS: Perforater Motor Failure */ _("printer-state-reasons.perforater-motor-failure"); /* TRANSLATORS: Perforater Near Limit */ _("printer-state-reasons.perforater-near-limit"); /* TRANSLATORS: Perforater Offline */ _("printer-state-reasons.perforater-offline"); /* TRANSLATORS: Perforater Opened */ _("printer-state-reasons.perforater-opened"); /* TRANSLATORS: Perforater Over Temperature */ _("printer-state-reasons.perforater-over-temperature"); /* TRANSLATORS: Perforater Power Saver */ _("printer-state-reasons.perforater-power-saver"); /* TRANSLATORS: Perforater Recoverable Failure */ _("printer-state-reasons.perforater-recoverable-failure"); /* TRANSLATORS: Perforater Recoverable Storage */ _("printer-state-reasons.perforater-recoverable-storage"); /* TRANSLATORS: Perforater Removed */ _("printer-state-reasons.perforater-removed"); /* TRANSLATORS: Perforater Resource Added */ _("printer-state-reasons.perforater-resource-added"); /* TRANSLATORS: Perforater Resource Removed */ _("printer-state-reasons.perforater-resource-removed"); /* TRANSLATORS: Perforater Thermistor Failure */ _("printer-state-reasons.perforater-thermistor-failure"); /* TRANSLATORS: Perforater Timing Failure */ _("printer-state-reasons.perforater-timing-failure"); /* TRANSLATORS: Perforater Turned Off */ _("printer-state-reasons.perforater-turned-off"); /* TRANSLATORS: Perforater Turned On */ _("printer-state-reasons.perforater-turned-on"); /* TRANSLATORS: Perforater Under Temperature */ _("printer-state-reasons.perforater-under-temperature"); /* TRANSLATORS: Perforater Unrecoverable Failure */ _("printer-state-reasons.perforater-unrecoverable-failure"); /* TRANSLATORS: Perforater Unrecoverable Storage Error */ _("printer-state-reasons.perforater-unrecoverable-storage-error"); /* TRANSLATORS: Perforater Warming Up */ _("printer-state-reasons.perforater-warming-up"); /* TRANSLATORS: Platform Cooling */ _("printer-state-reasons.platform-cooling"); /* TRANSLATORS: Platform Failure */ _("printer-state-reasons.platform-failure"); /* TRANSLATORS: Platform Heating */ _("printer-state-reasons.platform-heating"); /* TRANSLATORS: Platform Temperature High */ _("printer-state-reasons.platform-temperature-high"); /* TRANSLATORS: Platform Temperature Low */ _("printer-state-reasons.platform-temperature-low"); /* TRANSLATORS: Power Down */ _("printer-state-reasons.power-down"); /* TRANSLATORS: Power Up */ _("printer-state-reasons.power-up"); /* TRANSLATORS: Printer Reset Manually */ _("printer-state-reasons.printer-manual-reset"); /* TRANSLATORS: Printer Reset Remotely */ _("printer-state-reasons.printer-nms-reset"); /* TRANSLATORS: Printer Ready To Print */ _("printer-state-reasons.printer-ready-to-print"); /* TRANSLATORS: Puncher Added */ _("printer-state-reasons.puncher-added"); /* TRANSLATORS: Puncher Almost Empty */ _("printer-state-reasons.puncher-almost-empty"); /* TRANSLATORS: Puncher Almost Full */ _("printer-state-reasons.puncher-almost-full"); /* TRANSLATORS: Puncher At Limit */ _("printer-state-reasons.puncher-at-limit"); /* TRANSLATORS: Puncher Closed */ _("printer-state-reasons.puncher-closed"); /* TRANSLATORS: Puncher Configuration Change */ _("printer-state-reasons.puncher-configuration-change"); /* TRANSLATORS: Puncher Cover Closed */ _("printer-state-reasons.puncher-cover-closed"); /* TRANSLATORS: Puncher Cover Open */ _("printer-state-reasons.puncher-cover-open"); /* TRANSLATORS: Puncher Empty */ _("printer-state-reasons.puncher-empty"); /* TRANSLATORS: Puncher Full */ _("printer-state-reasons.puncher-full"); /* TRANSLATORS: Puncher Interlock Closed */ _("printer-state-reasons.puncher-interlock-closed"); /* TRANSLATORS: Puncher Interlock Open */ _("printer-state-reasons.puncher-interlock-open"); /* TRANSLATORS: Puncher Jam */ _("printer-state-reasons.puncher-jam"); /* TRANSLATORS: Puncher Life Almost Over */ _("printer-state-reasons.puncher-life-almost-over"); /* TRANSLATORS: Puncher Life Over */ _("printer-state-reasons.puncher-life-over"); /* TRANSLATORS: Puncher Memory Exhausted */ _("printer-state-reasons.puncher-memory-exhausted"); /* TRANSLATORS: Puncher Missing */ _("printer-state-reasons.puncher-missing"); /* TRANSLATORS: Puncher Motor Failure */ _("printer-state-reasons.puncher-motor-failure"); /* TRANSLATORS: Puncher Near Limit */ _("printer-state-reasons.puncher-near-limit"); /* TRANSLATORS: Puncher Offline */ _("printer-state-reasons.puncher-offline"); /* TRANSLATORS: Puncher Opened */ _("printer-state-reasons.puncher-opened"); /* TRANSLATORS: Puncher Over Temperature */ _("printer-state-reasons.puncher-over-temperature"); /* TRANSLATORS: Puncher Power Saver */ _("printer-state-reasons.puncher-power-saver"); /* TRANSLATORS: Puncher Recoverable Failure */ _("printer-state-reasons.puncher-recoverable-failure"); /* TRANSLATORS: Puncher Recoverable Storage */ _("printer-state-reasons.puncher-recoverable-storage"); /* TRANSLATORS: Puncher Removed */ _("printer-state-reasons.puncher-removed"); /* TRANSLATORS: Puncher Resource Added */ _("printer-state-reasons.puncher-resource-added"); /* TRANSLATORS: Puncher Resource Removed */ _("printer-state-reasons.puncher-resource-removed"); /* TRANSLATORS: Puncher Thermistor Failure */ _("printer-state-reasons.puncher-thermistor-failure"); /* TRANSLATORS: Puncher Timing Failure */ _("printer-state-reasons.puncher-timing-failure"); /* TRANSLATORS: Puncher Turned Off */ _("printer-state-reasons.puncher-turned-off"); /* TRANSLATORS: Puncher Turned On */ _("printer-state-reasons.puncher-turned-on"); /* TRANSLATORS: Puncher Under Temperature */ _("printer-state-reasons.puncher-under-temperature"); /* TRANSLATORS: Puncher Unrecoverable Failure */ _("printer-state-reasons.puncher-unrecoverable-failure"); /* TRANSLATORS: Puncher Unrecoverable Storage Error */ _("printer-state-reasons.puncher-unrecoverable-storage-error"); /* TRANSLATORS: Puncher Warming Up */ _("printer-state-reasons.puncher-warming-up"); /* TRANSLATORS: Separation Cutter Added */ _("printer-state-reasons.separation-cutter-added"); /* TRANSLATORS: Separation Cutter Almost Empty */ _("printer-state-reasons.separation-cutter-almost-empty"); /* TRANSLATORS: Separation Cutter Almost Full */ _("printer-state-reasons.separation-cutter-almost-full"); /* TRANSLATORS: Separation Cutter At Limit */ _("printer-state-reasons.separation-cutter-at-limit"); /* TRANSLATORS: Separation Cutter Closed */ _("printer-state-reasons.separation-cutter-closed"); /* TRANSLATORS: Separation Cutter Configuration Change */ _("printer-state-reasons.separation-cutter-configuration-change"); /* TRANSLATORS: Separation Cutter Cover Closed */ _("printer-state-reasons.separation-cutter-cover-closed"); /* TRANSLATORS: Separation Cutter Cover Open */ _("printer-state-reasons.separation-cutter-cover-open"); /* TRANSLATORS: Separation Cutter Empty */ _("printer-state-reasons.separation-cutter-empty"); /* TRANSLATORS: Separation Cutter Full */ _("printer-state-reasons.separation-cutter-full"); /* TRANSLATORS: Separation Cutter Interlock Closed */ _("printer-state-reasons.separation-cutter-interlock-closed"); /* TRANSLATORS: Separation Cutter Interlock Open */ _("printer-state-reasons.separation-cutter-interlock-open"); /* TRANSLATORS: Separation Cutter Jam */ _("printer-state-reasons.separation-cutter-jam"); /* TRANSLATORS: Separation Cutter Life Almost Over */ _("printer-state-reasons.separation-cutter-life-almost-over"); /* TRANSLATORS: Separation Cutter Life Over */ _("printer-state-reasons.separation-cutter-life-over"); /* TRANSLATORS: Separation Cutter Memory Exhausted */ _("printer-state-reasons.separation-cutter-memory-exhausted"); /* TRANSLATORS: Separation Cutter Missing */ _("printer-state-reasons.separation-cutter-missing"); /* TRANSLATORS: Separation Cutter Motor Failure */ _("printer-state-reasons.separation-cutter-motor-failure"); /* TRANSLATORS: Separation Cutter Near Limit */ _("printer-state-reasons.separation-cutter-near-limit"); /* TRANSLATORS: Separation Cutter Offline */ _("printer-state-reasons.separation-cutter-offline"); /* TRANSLATORS: Separation Cutter Opened */ _("printer-state-reasons.separation-cutter-opened"); /* TRANSLATORS: Separation Cutter Over Temperature */ _("printer-state-reasons.separation-cutter-over-temperature"); /* TRANSLATORS: Separation Cutter Power Saver */ _("printer-state-reasons.separation-cutter-power-saver"); /* TRANSLATORS: Separation Cutter Recoverable Failure */ _("printer-state-reasons.separation-cutter-recoverable-failure"); /* TRANSLATORS: Separation Cutter Recoverable Storage */ _("printer-state-reasons.separation-cutter-recoverable-storage"); /* TRANSLATORS: Separation Cutter Removed */ _("printer-state-reasons.separation-cutter-removed"); /* TRANSLATORS: Separation Cutter Resource Added */ _("printer-state-reasons.separation-cutter-resource-added"); /* TRANSLATORS: Separation Cutter Resource Removed */ _("printer-state-reasons.separation-cutter-resource-removed"); /* TRANSLATORS: Separation Cutter Thermistor Failure */ _("printer-state-reasons.separation-cutter-thermistor-failure"); /* TRANSLATORS: Separation Cutter Timing Failure */ _("printer-state-reasons.separation-cutter-timing-failure"); /* TRANSLATORS: Separation Cutter Turned Off */ _("printer-state-reasons.separation-cutter-turned-off"); /* TRANSLATORS: Separation Cutter Turned On */ _("printer-state-reasons.separation-cutter-turned-on"); /* TRANSLATORS: Separation Cutter Under Temperature */ _("printer-state-reasons.separation-cutter-under-temperature"); /* TRANSLATORS: Separation Cutter Unrecoverable Failure */ _("printer-state-reasons.separation-cutter-unrecoverable-failure"); /* TRANSLATORS: Separation Cutter Unrecoverable Storage Error */ _("printer-state-reasons.separation-cutter-unrecoverable-storage-error"); /* TRANSLATORS: Separation Cutter Warming Up */ _("printer-state-reasons.separation-cutter-warming-up"); /* TRANSLATORS: Sheet Rotator Added */ _("printer-state-reasons.sheet-rotator-added"); /* TRANSLATORS: Sheet Rotator Almost Empty */ _("printer-state-reasons.sheet-rotator-almost-empty"); /* TRANSLATORS: Sheet Rotator Almost Full */ _("printer-state-reasons.sheet-rotator-almost-full"); /* TRANSLATORS: Sheet Rotator At Limit */ _("printer-state-reasons.sheet-rotator-at-limit"); /* TRANSLATORS: Sheet Rotator Closed */ _("printer-state-reasons.sheet-rotator-closed"); /* TRANSLATORS: Sheet Rotator Configuration Change */ _("printer-state-reasons.sheet-rotator-configuration-change"); /* TRANSLATORS: Sheet Rotator Cover Closed */ _("printer-state-reasons.sheet-rotator-cover-closed"); /* TRANSLATORS: Sheet Rotator Cover Open */ _("printer-state-reasons.sheet-rotator-cover-open"); /* TRANSLATORS: Sheet Rotator Empty */ _("printer-state-reasons.sheet-rotator-empty"); /* TRANSLATORS: Sheet Rotator Full */ _("printer-state-reasons.sheet-rotator-full"); /* TRANSLATORS: Sheet Rotator Interlock Closed */ _("printer-state-reasons.sheet-rotator-interlock-closed"); /* TRANSLATORS: Sheet Rotator Interlock Open */ _("printer-state-reasons.sheet-rotator-interlock-open"); /* TRANSLATORS: Sheet Rotator Jam */ _("printer-state-reasons.sheet-rotator-jam"); /* TRANSLATORS: Sheet Rotator Life Almost Over */ _("printer-state-reasons.sheet-rotator-life-almost-over"); /* TRANSLATORS: Sheet Rotator Life Over */ _("printer-state-reasons.sheet-rotator-life-over"); /* TRANSLATORS: Sheet Rotator Memory Exhausted */ _("printer-state-reasons.sheet-rotator-memory-exhausted"); /* TRANSLATORS: Sheet Rotator Missing */ _("printer-state-reasons.sheet-rotator-missing"); /* TRANSLATORS: Sheet Rotator Motor Failure */ _("printer-state-reasons.sheet-rotator-motor-failure"); /* TRANSLATORS: Sheet Rotator Near Limit */ _("printer-state-reasons.sheet-rotator-near-limit"); /* TRANSLATORS: Sheet Rotator Offline */ _("printer-state-reasons.sheet-rotator-offline"); /* TRANSLATORS: Sheet Rotator Opened */ _("printer-state-reasons.sheet-rotator-opened"); /* TRANSLATORS: Sheet Rotator Over Temperature */ _("printer-state-reasons.sheet-rotator-over-temperature"); /* TRANSLATORS: Sheet Rotator Power Saver */ _("printer-state-reasons.sheet-rotator-power-saver"); /* TRANSLATORS: Sheet Rotator Recoverable Failure */ _("printer-state-reasons.sheet-rotator-recoverable-failure"); /* TRANSLATORS: Sheet Rotator Recoverable Storage */ _("printer-state-reasons.sheet-rotator-recoverable-storage"); /* TRANSLATORS: Sheet Rotator Removed */ _("printer-state-reasons.sheet-rotator-removed"); /* TRANSLATORS: Sheet Rotator Resource Added */ _("printer-state-reasons.sheet-rotator-resource-added"); /* TRANSLATORS: Sheet Rotator Resource Removed */ _("printer-state-reasons.sheet-rotator-resource-removed"); /* TRANSLATORS: Sheet Rotator Thermistor Failure */ _("printer-state-reasons.sheet-rotator-thermistor-failure"); /* TRANSLATORS: Sheet Rotator Timing Failure */ _("printer-state-reasons.sheet-rotator-timing-failure"); /* TRANSLATORS: Sheet Rotator Turned Off */ _("printer-state-reasons.sheet-rotator-turned-off"); /* TRANSLATORS: Sheet Rotator Turned On */ _("printer-state-reasons.sheet-rotator-turned-on"); /* TRANSLATORS: Sheet Rotator Under Temperature */ _("printer-state-reasons.sheet-rotator-under-temperature"); /* TRANSLATORS: Sheet Rotator Unrecoverable Failure */ _("printer-state-reasons.sheet-rotator-unrecoverable-failure"); /* TRANSLATORS: Sheet Rotator Unrecoverable Storage Error */ _("printer-state-reasons.sheet-rotator-unrecoverable-storage-error"); /* TRANSLATORS: Sheet Rotator Warming Up */ _("printer-state-reasons.sheet-rotator-warming-up"); /* TRANSLATORS: Printer offline */ _("printer-state-reasons.shutdown"); /* TRANSLATORS: Slitter Added */ _("printer-state-reasons.slitter-added"); /* TRANSLATORS: Slitter Almost Empty */ _("printer-state-reasons.slitter-almost-empty"); /* TRANSLATORS: Slitter Almost Full */ _("printer-state-reasons.slitter-almost-full"); /* TRANSLATORS: Slitter At Limit */ _("printer-state-reasons.slitter-at-limit"); /* TRANSLATORS: Slitter Closed */ _("printer-state-reasons.slitter-closed"); /* TRANSLATORS: Slitter Configuration Change */ _("printer-state-reasons.slitter-configuration-change"); /* TRANSLATORS: Slitter Cover Closed */ _("printer-state-reasons.slitter-cover-closed"); /* TRANSLATORS: Slitter Cover Open */ _("printer-state-reasons.slitter-cover-open"); /* TRANSLATORS: Slitter Empty */ _("printer-state-reasons.slitter-empty"); /* TRANSLATORS: Slitter Full */ _("printer-state-reasons.slitter-full"); /* TRANSLATORS: Slitter Interlock Closed */ _("printer-state-reasons.slitter-interlock-closed"); /* TRANSLATORS: Slitter Interlock Open */ _("printer-state-reasons.slitter-interlock-open"); /* TRANSLATORS: Slitter Jam */ _("printer-state-reasons.slitter-jam"); /* TRANSLATORS: Slitter Life Almost Over */ _("printer-state-reasons.slitter-life-almost-over"); /* TRANSLATORS: Slitter Life Over */ _("printer-state-reasons.slitter-life-over"); /* TRANSLATORS: Slitter Memory Exhausted */ _("printer-state-reasons.slitter-memory-exhausted"); /* TRANSLATORS: Slitter Missing */ _("printer-state-reasons.slitter-missing"); /* TRANSLATORS: Slitter Motor Failure */ _("printer-state-reasons.slitter-motor-failure"); /* TRANSLATORS: Slitter Near Limit */ _("printer-state-reasons.slitter-near-limit"); /* TRANSLATORS: Slitter Offline */ _("printer-state-reasons.slitter-offline"); /* TRANSLATORS: Slitter Opened */ _("printer-state-reasons.slitter-opened"); /* TRANSLATORS: Slitter Over Temperature */ _("printer-state-reasons.slitter-over-temperature"); /* TRANSLATORS: Slitter Power Saver */ _("printer-state-reasons.slitter-power-saver"); /* TRANSLATORS: Slitter Recoverable Failure */ _("printer-state-reasons.slitter-recoverable-failure"); /* TRANSLATORS: Slitter Recoverable Storage */ _("printer-state-reasons.slitter-recoverable-storage"); /* TRANSLATORS: Slitter Removed */ _("printer-state-reasons.slitter-removed"); /* TRANSLATORS: Slitter Resource Added */ _("printer-state-reasons.slitter-resource-added"); /* TRANSLATORS: Slitter Resource Removed */ _("printer-state-reasons.slitter-resource-removed"); /* TRANSLATORS: Slitter Thermistor Failure */ _("printer-state-reasons.slitter-thermistor-failure"); /* TRANSLATORS: Slitter Timing Failure */ _("printer-state-reasons.slitter-timing-failure"); /* TRANSLATORS: Slitter Turned Off */ _("printer-state-reasons.slitter-turned-off"); /* TRANSLATORS: Slitter Turned On */ _("printer-state-reasons.slitter-turned-on"); /* TRANSLATORS: Slitter Under Temperature */ _("printer-state-reasons.slitter-under-temperature"); /* TRANSLATORS: Slitter Unrecoverable Failure */ _("printer-state-reasons.slitter-unrecoverable-failure"); /* TRANSLATORS: Slitter Unrecoverable Storage Error */ _("printer-state-reasons.slitter-unrecoverable-storage-error"); /* TRANSLATORS: Slitter Warming Up */ _("printer-state-reasons.slitter-warming-up"); /* TRANSLATORS: Spool Area Full */ _("printer-state-reasons.spool-area-full"); /* TRANSLATORS: Stacker Added */ _("printer-state-reasons.stacker-added"); /* TRANSLATORS: Stacker Almost Empty */ _("printer-state-reasons.stacker-almost-empty"); /* TRANSLATORS: Stacker Almost Full */ _("printer-state-reasons.stacker-almost-full"); /* TRANSLATORS: Stacker At Limit */ _("printer-state-reasons.stacker-at-limit"); /* TRANSLATORS: Stacker Closed */ _("printer-state-reasons.stacker-closed"); /* TRANSLATORS: Stacker Configuration Change */ _("printer-state-reasons.stacker-configuration-change"); /* TRANSLATORS: Stacker Cover Closed */ _("printer-state-reasons.stacker-cover-closed"); /* TRANSLATORS: Stacker Cover Open */ _("printer-state-reasons.stacker-cover-open"); /* TRANSLATORS: Stacker Empty */ _("printer-state-reasons.stacker-empty"); /* TRANSLATORS: Stacker Full */ _("printer-state-reasons.stacker-full"); /* TRANSLATORS: Stacker Interlock Closed */ _("printer-state-reasons.stacker-interlock-closed"); /* TRANSLATORS: Stacker Interlock Open */ _("printer-state-reasons.stacker-interlock-open"); /* TRANSLATORS: Stacker Jam */ _("printer-state-reasons.stacker-jam"); /* TRANSLATORS: Stacker Life Almost Over */ _("printer-state-reasons.stacker-life-almost-over"); /* TRANSLATORS: Stacker Life Over */ _("printer-state-reasons.stacker-life-over"); /* TRANSLATORS: Stacker Memory Exhausted */ _("printer-state-reasons.stacker-memory-exhausted"); /* TRANSLATORS: Stacker Missing */ _("printer-state-reasons.stacker-missing"); /* TRANSLATORS: Stacker Motor Failure */ _("printer-state-reasons.stacker-motor-failure"); /* TRANSLATORS: Stacker Near Limit */ _("printer-state-reasons.stacker-near-limit"); /* TRANSLATORS: Stacker Offline */ _("printer-state-reasons.stacker-offline"); /* TRANSLATORS: Stacker Opened */ _("printer-state-reasons.stacker-opened"); /* TRANSLATORS: Stacker Over Temperature */ _("printer-state-reasons.stacker-over-temperature"); /* TRANSLATORS: Stacker Power Saver */ _("printer-state-reasons.stacker-power-saver"); /* TRANSLATORS: Stacker Recoverable Failure */ _("printer-state-reasons.stacker-recoverable-failure"); /* TRANSLATORS: Stacker Recoverable Storage */ _("printer-state-reasons.stacker-recoverable-storage"); /* TRANSLATORS: Stacker Removed */ _("printer-state-reasons.stacker-removed"); /* TRANSLATORS: Stacker Resource Added */ _("printer-state-reasons.stacker-resource-added"); /* TRANSLATORS: Stacker Resource Removed */ _("printer-state-reasons.stacker-resource-removed"); /* TRANSLATORS: Stacker Thermistor Failure */ _("printer-state-reasons.stacker-thermistor-failure"); /* TRANSLATORS: Stacker Timing Failure */ _("printer-state-reasons.stacker-timing-failure"); /* TRANSLATORS: Stacker Turned Off */ _("printer-state-reasons.stacker-turned-off"); /* TRANSLATORS: Stacker Turned On */ _("printer-state-reasons.stacker-turned-on"); /* TRANSLATORS: Stacker Under Temperature */ _("printer-state-reasons.stacker-under-temperature"); /* TRANSLATORS: Stacker Unrecoverable Failure */ _("printer-state-reasons.stacker-unrecoverable-failure"); /* TRANSLATORS: Stacker Unrecoverable Storage Error */ _("printer-state-reasons.stacker-unrecoverable-storage-error"); /* TRANSLATORS: Stacker Warming Up */ _("printer-state-reasons.stacker-warming-up"); /* TRANSLATORS: Stapler Added */ _("printer-state-reasons.stapler-added"); /* TRANSLATORS: Stapler Almost Empty */ _("printer-state-reasons.stapler-almost-empty"); /* TRANSLATORS: Stapler Almost Full */ _("printer-state-reasons.stapler-almost-full"); /* TRANSLATORS: Stapler At Limit */ _("printer-state-reasons.stapler-at-limit"); /* TRANSLATORS: Stapler Closed */ _("printer-state-reasons.stapler-closed"); /* TRANSLATORS: Stapler Configuration Change */ _("printer-state-reasons.stapler-configuration-change"); /* TRANSLATORS: Stapler Cover Closed */ _("printer-state-reasons.stapler-cover-closed"); /* TRANSLATORS: Stapler Cover Open */ _("printer-state-reasons.stapler-cover-open"); /* TRANSLATORS: Stapler Empty */ _("printer-state-reasons.stapler-empty"); /* TRANSLATORS: Stapler Full */ _("printer-state-reasons.stapler-full"); /* TRANSLATORS: Stapler Interlock Closed */ _("printer-state-reasons.stapler-interlock-closed"); /* TRANSLATORS: Stapler Interlock Open */ _("printer-state-reasons.stapler-interlock-open"); /* TRANSLATORS: Stapler Jam */ _("printer-state-reasons.stapler-jam"); /* TRANSLATORS: Stapler Life Almost Over */ _("printer-state-reasons.stapler-life-almost-over"); /* TRANSLATORS: Stapler Life Over */ _("printer-state-reasons.stapler-life-over"); /* TRANSLATORS: Stapler Memory Exhausted */ _("printer-state-reasons.stapler-memory-exhausted"); /* TRANSLATORS: Stapler Missing */ _("printer-state-reasons.stapler-missing"); /* TRANSLATORS: Stapler Motor Failure */ _("printer-state-reasons.stapler-motor-failure"); /* TRANSLATORS: Stapler Near Limit */ _("printer-state-reasons.stapler-near-limit"); /* TRANSLATORS: Stapler Offline */ _("printer-state-reasons.stapler-offline"); /* TRANSLATORS: Stapler Opened */ _("printer-state-reasons.stapler-opened"); /* TRANSLATORS: Stapler Over Temperature */ _("printer-state-reasons.stapler-over-temperature"); /* TRANSLATORS: Stapler Power Saver */ _("printer-state-reasons.stapler-power-saver"); /* TRANSLATORS: Stapler Recoverable Failure */ _("printer-state-reasons.stapler-recoverable-failure"); /* TRANSLATORS: Stapler Recoverable Storage */ _("printer-state-reasons.stapler-recoverable-storage"); /* TRANSLATORS: Stapler Removed */ _("printer-state-reasons.stapler-removed"); /* TRANSLATORS: Stapler Resource Added */ _("printer-state-reasons.stapler-resource-added"); /* TRANSLATORS: Stapler Resource Removed */ _("printer-state-reasons.stapler-resource-removed"); /* TRANSLATORS: Stapler Thermistor Failure */ _("printer-state-reasons.stapler-thermistor-failure"); /* TRANSLATORS: Stapler Timing Failure */ _("printer-state-reasons.stapler-timing-failure"); /* TRANSLATORS: Stapler Turned Off */ _("printer-state-reasons.stapler-turned-off"); /* TRANSLATORS: Stapler Turned On */ _("printer-state-reasons.stapler-turned-on"); /* TRANSLATORS: Stapler Under Temperature */ _("printer-state-reasons.stapler-under-temperature"); /* TRANSLATORS: Stapler Unrecoverable Failure */ _("printer-state-reasons.stapler-unrecoverable-failure"); /* TRANSLATORS: Stapler Unrecoverable Storage Error */ _("printer-state-reasons.stapler-unrecoverable-storage-error"); /* TRANSLATORS: Stapler Warming Up */ _("printer-state-reasons.stapler-warming-up"); /* TRANSLATORS: Stitcher Added */ _("printer-state-reasons.stitcher-added"); /* TRANSLATORS: Stitcher Almost Empty */ _("printer-state-reasons.stitcher-almost-empty"); /* TRANSLATORS: Stitcher Almost Full */ _("printer-state-reasons.stitcher-almost-full"); /* TRANSLATORS: Stitcher At Limit */ _("printer-state-reasons.stitcher-at-limit"); /* TRANSLATORS: Stitcher Closed */ _("printer-state-reasons.stitcher-closed"); /* TRANSLATORS: Stitcher Configuration Change */ _("printer-state-reasons.stitcher-configuration-change"); /* TRANSLATORS: Stitcher Cover Closed */ _("printer-state-reasons.stitcher-cover-closed"); /* TRANSLATORS: Stitcher Cover Open */ _("printer-state-reasons.stitcher-cover-open"); /* TRANSLATORS: Stitcher Empty */ _("printer-state-reasons.stitcher-empty"); /* TRANSLATORS: Stitcher Full */ _("printer-state-reasons.stitcher-full"); /* TRANSLATORS: Stitcher Interlock Closed */ _("printer-state-reasons.stitcher-interlock-closed"); /* TRANSLATORS: Stitcher Interlock Open */ _("printer-state-reasons.stitcher-interlock-open"); /* TRANSLATORS: Stitcher Jam */ _("printer-state-reasons.stitcher-jam"); /* TRANSLATORS: Stitcher Life Almost Over */ _("printer-state-reasons.stitcher-life-almost-over"); /* TRANSLATORS: Stitcher Life Over */ _("printer-state-reasons.stitcher-life-over"); /* TRANSLATORS: Stitcher Memory Exhausted */ _("printer-state-reasons.stitcher-memory-exhausted"); /* TRANSLATORS: Stitcher Missing */ _("printer-state-reasons.stitcher-missing"); /* TRANSLATORS: Stitcher Motor Failure */ _("printer-state-reasons.stitcher-motor-failure"); /* TRANSLATORS: Stitcher Near Limit */ _("printer-state-reasons.stitcher-near-limit"); /* TRANSLATORS: Stitcher Offline */ _("printer-state-reasons.stitcher-offline"); /* TRANSLATORS: Stitcher Opened */ _("printer-state-reasons.stitcher-opened"); /* TRANSLATORS: Stitcher Over Temperature */ _("printer-state-reasons.stitcher-over-temperature"); /* TRANSLATORS: Stitcher Power Saver */ _("printer-state-reasons.stitcher-power-saver"); /* TRANSLATORS: Stitcher Recoverable Failure */ _("printer-state-reasons.stitcher-recoverable-failure"); /* TRANSLATORS: Stitcher Recoverable Storage */ _("printer-state-reasons.stitcher-recoverable-storage"); /* TRANSLATORS: Stitcher Removed */ _("printer-state-reasons.stitcher-removed"); /* TRANSLATORS: Stitcher Resource Added */ _("printer-state-reasons.stitcher-resource-added"); /* TRANSLATORS: Stitcher Resource Removed */ _("printer-state-reasons.stitcher-resource-removed"); /* TRANSLATORS: Stitcher Thermistor Failure */ _("printer-state-reasons.stitcher-thermistor-failure"); /* TRANSLATORS: Stitcher Timing Failure */ _("printer-state-reasons.stitcher-timing-failure"); /* TRANSLATORS: Stitcher Turned Off */ _("printer-state-reasons.stitcher-turned-off"); /* TRANSLATORS: Stitcher Turned On */ _("printer-state-reasons.stitcher-turned-on"); /* TRANSLATORS: Stitcher Under Temperature */ _("printer-state-reasons.stitcher-under-temperature"); /* TRANSLATORS: Stitcher Unrecoverable Failure */ _("printer-state-reasons.stitcher-unrecoverable-failure"); /* TRANSLATORS: Stitcher Unrecoverable Storage Error */ _("printer-state-reasons.stitcher-unrecoverable-storage-error"); /* TRANSLATORS: Stitcher Warming Up */ _("printer-state-reasons.stitcher-warming-up"); /* TRANSLATORS: Partially stopped */ _("printer-state-reasons.stopped-partly"); /* TRANSLATORS: Stopping */ _("printer-state-reasons.stopping"); /* TRANSLATORS: Subunit Added */ _("printer-state-reasons.subunit-added"); /* TRANSLATORS: Subunit Almost Empty */ _("printer-state-reasons.subunit-almost-empty"); /* TRANSLATORS: Subunit Almost Full */ _("printer-state-reasons.subunit-almost-full"); /* TRANSLATORS: Subunit At Limit */ _("printer-state-reasons.subunit-at-limit"); /* TRANSLATORS: Subunit Closed */ _("printer-state-reasons.subunit-closed"); /* TRANSLATORS: Subunit Cooling Down */ _("printer-state-reasons.subunit-cooling-down"); /* TRANSLATORS: Subunit Empty */ _("printer-state-reasons.subunit-empty"); /* TRANSLATORS: Subunit Full */ _("printer-state-reasons.subunit-full"); /* TRANSLATORS: Subunit Life Almost Over */ _("printer-state-reasons.subunit-life-almost-over"); /* TRANSLATORS: Subunit Life Over */ _("printer-state-reasons.subunit-life-over"); /* TRANSLATORS: Subunit Memory Exhausted */ _("printer-state-reasons.subunit-memory-exhausted"); /* TRANSLATORS: Subunit Missing */ _("printer-state-reasons.subunit-missing"); /* TRANSLATORS: Subunit Motor Failure */ _("printer-state-reasons.subunit-motor-failure"); /* TRANSLATORS: Subunit Near Limit */ _("printer-state-reasons.subunit-near-limit"); /* TRANSLATORS: Subunit Offline */ _("printer-state-reasons.subunit-offline"); /* TRANSLATORS: Subunit Opened */ _("printer-state-reasons.subunit-opened"); /* TRANSLATORS: Subunit Over Temperature */ _("printer-state-reasons.subunit-over-temperature"); /* TRANSLATORS: Subunit Power Saver */ _("printer-state-reasons.subunit-power-saver"); /* TRANSLATORS: Subunit Recoverable Failure */ _("printer-state-reasons.subunit-recoverable-failure"); /* TRANSLATORS: Subunit Recoverable Storage */ _("printer-state-reasons.subunit-recoverable-storage"); /* TRANSLATORS: Subunit Removed */ _("printer-state-reasons.subunit-removed"); /* TRANSLATORS: Subunit Resource Added */ _("printer-state-reasons.subunit-resource-added"); /* TRANSLATORS: Subunit Resource Removed */ _("printer-state-reasons.subunit-resource-removed"); /* TRANSLATORS: Subunit Thermistor Failure */ _("printer-state-reasons.subunit-thermistor-failure"); /* TRANSLATORS: Subunit Timing Failure */ _("printer-state-reasons.subunit-timing-Failure"); /* TRANSLATORS: Subunit Turned Off */ _("printer-state-reasons.subunit-turned-off"); /* TRANSLATORS: Subunit Turned On */ _("printer-state-reasons.subunit-turned-on"); /* TRANSLATORS: Subunit Under Temperature */ _("printer-state-reasons.subunit-under-temperature"); /* TRANSLATORS: Subunit Unrecoverable Failure */ _("printer-state-reasons.subunit-unrecoverable-failure"); /* TRANSLATORS: Subunit Unrecoverable Storage */ _("printer-state-reasons.subunit-unrecoverable-storage"); /* TRANSLATORS: Subunit Warming Up */ _("printer-state-reasons.subunit-warming-up"); /* TRANSLATORS: Printer stopped responding */ _("printer-state-reasons.timed-out"); /* TRANSLATORS: Out of toner */ _("printer-state-reasons.toner-empty"); /* TRANSLATORS: Toner low */ _("printer-state-reasons.toner-low"); /* TRANSLATORS: Trimmer Added */ _("printer-state-reasons.trimmer-added"); /* TRANSLATORS: Trimmer Almost Empty */ _("printer-state-reasons.trimmer-almost-empty"); /* TRANSLATORS: Trimmer Almost Full */ _("printer-state-reasons.trimmer-almost-full"); /* TRANSLATORS: Trimmer At Limit */ _("printer-state-reasons.trimmer-at-limit"); /* TRANSLATORS: Trimmer Closed */ _("printer-state-reasons.trimmer-closed"); /* TRANSLATORS: Trimmer Configuration Change */ _("printer-state-reasons.trimmer-configuration-change"); /* TRANSLATORS: Trimmer Cover Closed */ _("printer-state-reasons.trimmer-cover-closed"); /* TRANSLATORS: Trimmer Cover Open */ _("printer-state-reasons.trimmer-cover-open"); /* TRANSLATORS: Trimmer Empty */ _("printer-state-reasons.trimmer-empty"); /* TRANSLATORS: Trimmer Full */ _("printer-state-reasons.trimmer-full"); /* TRANSLATORS: Trimmer Interlock Closed */ _("printer-state-reasons.trimmer-interlock-closed"); /* TRANSLATORS: Trimmer Interlock Open */ _("printer-state-reasons.trimmer-interlock-open"); /* TRANSLATORS: Trimmer Jam */ _("printer-state-reasons.trimmer-jam"); /* TRANSLATORS: Trimmer Life Almost Over */ _("printer-state-reasons.trimmer-life-almost-over"); /* TRANSLATORS: Trimmer Life Over */ _("printer-state-reasons.trimmer-life-over"); /* TRANSLATORS: Trimmer Memory Exhausted */ _("printer-state-reasons.trimmer-memory-exhausted"); /* TRANSLATORS: Trimmer Missing */ _("printer-state-reasons.trimmer-missing"); /* TRANSLATORS: Trimmer Motor Failure */ _("printer-state-reasons.trimmer-motor-failure"); /* TRANSLATORS: Trimmer Near Limit */ _("printer-state-reasons.trimmer-near-limit"); /* TRANSLATORS: Trimmer Offline */ _("printer-state-reasons.trimmer-offline"); /* TRANSLATORS: Trimmer Opened */ _("printer-state-reasons.trimmer-opened"); /* TRANSLATORS: Trimmer Over Temperature */ _("printer-state-reasons.trimmer-over-temperature"); /* TRANSLATORS: Trimmer Power Saver */ _("printer-state-reasons.trimmer-power-saver"); /* TRANSLATORS: Trimmer Recoverable Failure */ _("printer-state-reasons.trimmer-recoverable-failure"); /* TRANSLATORS: Trimmer Recoverable Storage */ _("printer-state-reasons.trimmer-recoverable-storage"); /* TRANSLATORS: Trimmer Removed */ _("printer-state-reasons.trimmer-removed"); /* TRANSLATORS: Trimmer Resource Added */ _("printer-state-reasons.trimmer-resource-added"); /* TRANSLATORS: Trimmer Resource Removed */ _("printer-state-reasons.trimmer-resource-removed"); /* TRANSLATORS: Trimmer Thermistor Failure */ _("printer-state-reasons.trimmer-thermistor-failure"); /* TRANSLATORS: Trimmer Timing Failure */ _("printer-state-reasons.trimmer-timing-failure"); /* TRANSLATORS: Trimmer Turned Off */ _("printer-state-reasons.trimmer-turned-off"); /* TRANSLATORS: Trimmer Turned On */ _("printer-state-reasons.trimmer-turned-on"); /* TRANSLATORS: Trimmer Under Temperature */ _("printer-state-reasons.trimmer-under-temperature"); /* TRANSLATORS: Trimmer Unrecoverable Failure */ _("printer-state-reasons.trimmer-unrecoverable-failure"); /* TRANSLATORS: Trimmer Unrecoverable Storage Error */ _("printer-state-reasons.trimmer-unrecoverable-storage-error"); /* TRANSLATORS: Trimmer Warming Up */ _("printer-state-reasons.trimmer-warming-up"); /* TRANSLATORS: Unknown */ _("printer-state-reasons.unknown"); /* TRANSLATORS: Wrapper Added */ _("printer-state-reasons.wrapper-added"); /* TRANSLATORS: Wrapper Almost Empty */ _("printer-state-reasons.wrapper-almost-empty"); /* TRANSLATORS: Wrapper Almost Full */ _("printer-state-reasons.wrapper-almost-full"); /* TRANSLATORS: Wrapper At Limit */ _("printer-state-reasons.wrapper-at-limit"); /* TRANSLATORS: Wrapper Closed */ _("printer-state-reasons.wrapper-closed"); /* TRANSLATORS: Wrapper Configuration Change */ _("printer-state-reasons.wrapper-configuration-change"); /* TRANSLATORS: Wrapper Cover Closed */ _("printer-state-reasons.wrapper-cover-closed"); /* TRANSLATORS: Wrapper Cover Open */ _("printer-state-reasons.wrapper-cover-open"); /* TRANSLATORS: Wrapper Empty */ _("printer-state-reasons.wrapper-empty"); /* TRANSLATORS: Wrapper Full */ _("printer-state-reasons.wrapper-full"); /* TRANSLATORS: Wrapper Interlock Closed */ _("printer-state-reasons.wrapper-interlock-closed"); /* TRANSLATORS: Wrapper Interlock Open */ _("printer-state-reasons.wrapper-interlock-open"); /* TRANSLATORS: Wrapper Jam */ _("printer-state-reasons.wrapper-jam"); /* TRANSLATORS: Wrapper Life Almost Over */ _("printer-state-reasons.wrapper-life-almost-over"); /* TRANSLATORS: Wrapper Life Over */ _("printer-state-reasons.wrapper-life-over"); /* TRANSLATORS: Wrapper Memory Exhausted */ _("printer-state-reasons.wrapper-memory-exhausted"); /* TRANSLATORS: Wrapper Missing */ _("printer-state-reasons.wrapper-missing"); /* TRANSLATORS: Wrapper Motor Failure */ _("printer-state-reasons.wrapper-motor-failure"); /* TRANSLATORS: Wrapper Near Limit */ _("printer-state-reasons.wrapper-near-limit"); /* TRANSLATORS: Wrapper Offline */ _("printer-state-reasons.wrapper-offline"); /* TRANSLATORS: Wrapper Opened */ _("printer-state-reasons.wrapper-opened"); /* TRANSLATORS: Wrapper Over Temperature */ _("printer-state-reasons.wrapper-over-temperature"); /* TRANSLATORS: Wrapper Power Saver */ _("printer-state-reasons.wrapper-power-saver"); /* TRANSLATORS: Wrapper Recoverable Failure */ _("printer-state-reasons.wrapper-recoverable-failure"); /* TRANSLATORS: Wrapper Recoverable Storage */ _("printer-state-reasons.wrapper-recoverable-storage"); /* TRANSLATORS: Wrapper Removed */ _("printer-state-reasons.wrapper-removed"); /* TRANSLATORS: Wrapper Resource Added */ _("printer-state-reasons.wrapper-resource-added"); /* TRANSLATORS: Wrapper Resource Removed */ _("printer-state-reasons.wrapper-resource-removed"); /* TRANSLATORS: Wrapper Thermistor Failure */ _("printer-state-reasons.wrapper-thermistor-failure"); /* TRANSLATORS: Wrapper Timing Failure */ _("printer-state-reasons.wrapper-timing-failure"); /* TRANSLATORS: Wrapper Turned Off */ _("printer-state-reasons.wrapper-turned-off"); /* TRANSLATORS: Wrapper Turned On */ _("printer-state-reasons.wrapper-turned-on"); /* TRANSLATORS: Wrapper Under Temperature */ _("printer-state-reasons.wrapper-under-temperature"); /* TRANSLATORS: Wrapper Unrecoverable Failure */ _("printer-state-reasons.wrapper-unrecoverable-failure"); /* TRANSLATORS: Wrapper Unrecoverable Storage Error */ _("printer-state-reasons.wrapper-unrecoverable-storage-error"); /* TRANSLATORS: Wrapper Warming Up */ _("printer-state-reasons.wrapper-warming-up"); /* TRANSLATORS: Idle */ _("printer-state.3"); /* TRANSLATORS: Processing */ _("printer-state.4"); /* TRANSLATORS: Stopped */ _("printer-state.5"); /* TRANSLATORS: Printer Uptime */ _("printer-up-time"); /* TRANSLATORS: Proof Print */ _("proof-print"); /* TRANSLATORS: Proof Print Copies */ _("proof-print-copies"); /* TRANSLATORS: Punching */ _("punching"); /* TRANSLATORS: Punching Locations */ _("punching-locations"); /* TRANSLATORS: Punching Offset */ _("punching-offset"); /* TRANSLATORS: Punch Edge */ _("punching-reference-edge"); /* TRANSLATORS: Bottom */ _("punching-reference-edge.bottom"); /* TRANSLATORS: Left */ _("punching-reference-edge.left"); /* TRANSLATORS: Right */ _("punching-reference-edge.right"); /* TRANSLATORS: Top */ _("punching-reference-edge.top"); /* TRANSLATORS: Requested Attributes */ _("requested-attributes"); /* TRANSLATORS: Retry Interval */ _("retry-interval"); /* TRANSLATORS: Retry Timeout */ _("retry-time-out"); /* TRANSLATORS: Save Disposition */ _("save-disposition"); /* TRANSLATORS: None */ _("save-disposition.none"); /* TRANSLATORS: Print and Save */ _("save-disposition.print-save"); /* TRANSLATORS: Save Only */ _("save-disposition.save-only"); /* TRANSLATORS: Save Document Format */ _("save-document-format"); /* TRANSLATORS: Save Info */ _("save-info"); /* TRANSLATORS: Save Location */ _("save-location"); /* TRANSLATORS: Save Name */ _("save-name"); /* TRANSLATORS: Separator Sheets */ _("separator-sheets"); /* TRANSLATORS: Type of Separator Sheets */ _("separator-sheets-type"); /* TRANSLATORS: Start and End Sheets */ _("separator-sheets-type.both-sheets"); /* TRANSLATORS: End Sheet */ _("separator-sheets-type.end-sheet"); /* TRANSLATORS: None */ _("separator-sheets-type.none"); /* TRANSLATORS: Slip Sheets */ _("separator-sheets-type.slip-sheets"); /* TRANSLATORS: Start Sheet */ _("separator-sheets-type.start-sheet"); /* TRANSLATORS: 2-Sided Printing */ _("sides"); /* TRANSLATORS: Off */ _("sides.one-sided"); /* TRANSLATORS: On (Portrait) */ _("sides.two-sided-long-edge"); /* TRANSLATORS: On (Landscape) */ _("sides.two-sided-short-edge"); /* TRANSLATORS: Status Message */ _("status-message"); /* TRANSLATORS: Staple */ _("stitching"); /* TRANSLATORS: Stitching Angle */ _("stitching-angle"); /* TRANSLATORS: Stitching Locations */ _("stitching-locations"); /* TRANSLATORS: Staple Method */ _("stitching-method"); /* TRANSLATORS: Automatic */ _("stitching-method.auto"); /* TRANSLATORS: Crimp */ _("stitching-method.crimp"); /* TRANSLATORS: Wire */ _("stitching-method.wire"); /* TRANSLATORS: Stitching Offset */ _("stitching-offset"); /* TRANSLATORS: Staple Edge */ _("stitching-reference-edge"); /* TRANSLATORS: Bottom */ _("stitching-reference-edge.bottom"); /* TRANSLATORS: Left */ _("stitching-reference-edge.left"); /* TRANSLATORS: Right */ _("stitching-reference-edge.right"); /* TRANSLATORS: Top */ _("stitching-reference-edge.top"); /* TRANSLATORS: Subject */ _("subject"); /* TRANSLATORS: Subscription Privacy Attributes */ _("subscription-privacy-attributes"); /* TRANSLATORS: All */ _("subscription-privacy-attributes.all"); /* TRANSLATORS: Default */ _("subscription-privacy-attributes.default"); /* TRANSLATORS: None */ _("subscription-privacy-attributes.none"); /* TRANSLATORS: Subscription Description */ _("subscription-privacy-attributes.subscription-description"); /* TRANSLATORS: Subscription Template */ _("subscription-privacy-attributes.subscription-template"); /* TRANSLATORS: Subscription Privacy Scope */ _("subscription-privacy-scope"); /* TRANSLATORS: All */ _("subscription-privacy-scope.all"); /* TRANSLATORS: Default */ _("subscription-privacy-scope.default"); /* TRANSLATORS: None */ _("subscription-privacy-scope.none"); /* TRANSLATORS: Owner */ _("subscription-privacy-scope.owner"); /* TRANSLATORS: T33 Subaddress */ _("t33-subaddress"); /* TRANSLATORS: To Name */ _("to-name"); /* TRANSLATORS: Transmission Status */ _("transmission-status"); /* TRANSLATORS: Pending */ _("transmission-status.3"); /* TRANSLATORS: Pending Retry */ _("transmission-status.4"); /* TRANSLATORS: Processing */ _("transmission-status.5"); /* TRANSLATORS: Canceled */ _("transmission-status.7"); /* TRANSLATORS: Aborted */ _("transmission-status.8"); /* TRANSLATORS: Completed */ _("transmission-status.9"); /* TRANSLATORS: Cut */ _("trimming"); /* TRANSLATORS: Cut Position */ _("trimming-offset"); /* TRANSLATORS: Cut Edge */ _("trimming-reference-edge"); /* TRANSLATORS: Bottom */ _("trimming-reference-edge.bottom"); /* TRANSLATORS: Left */ _("trimming-reference-edge.left"); /* TRANSLATORS: Right */ _("trimming-reference-edge.right"); /* TRANSLATORS: Top */ _("trimming-reference-edge.top"); /* TRANSLATORS: Type of Cut */ _("trimming-type"); /* TRANSLATORS: Draw Line */ _("trimming-type.draw-line"); /* TRANSLATORS: Full */ _("trimming-type.full"); /* TRANSLATORS: Partial */ _("trimming-type.partial"); /* TRANSLATORS: Perforate */ _("trimming-type.perforate"); /* TRANSLATORS: Score */ _("trimming-type.score"); /* TRANSLATORS: Tab */ _("trimming-type.tab"); /* TRANSLATORS: Cut After */ _("trimming-when"); /* TRANSLATORS: Every Document */ _("trimming-when.after-documents"); /* TRANSLATORS: Job */ _("trimming-when.after-job"); /* TRANSLATORS: Every Set */ _("trimming-when.after-sets"); /* TRANSLATORS: Every Page */ _("trimming-when.after-sheets"); /* TRANSLATORS: X Accuracy */ _("x-accuracy"); /* TRANSLATORS: X Dimension */ _("x-dimension"); /* TRANSLATORS: X Offset */ _("x-offset"); /* TRANSLATORS: X Origin */ _("x-origin"); /* TRANSLATORS: Y Accuracy */ _("y-accuracy"); /* TRANSLATORS: Y Dimension */ _("y-dimension"); /* TRANSLATORS: Y Offset */ _("y-offset"); /* TRANSLATORS: Y Origin */ _("y-origin"); /* TRANSLATORS: Z Accuracy */ _("z-accuracy"); /* TRANSLATORS: Z Dimension */ _("z-dimension"); /* TRANSLATORS: Z Offset */ _("z-offset"); cups-2.4.7/locale/cups_zh_CN.po0000644000175000017500000123761114502571342016226 0ustar zdohnalzdohnal# # Chinese message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Mingcong Bai , 2016, 2017, 2018. msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2022-07-14 12:43+0800\n" "Last-Translator: Tyson Tan \n" "Language-Team: Chinese (Simplified)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 3.0.1\n" msgid "\t\t(all)" msgstr "\t\t (全部)" msgid "\t\t(none)" msgstr "\t\t (无)" #, c-format msgid "\t%d entries" msgstr "\t%d 个条目" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\t发生错误时:继续" #, c-format msgid "\tAlerts: %s" msgstr "\t警告:%s" msgid "\tBanner required" msgstr "\t需要横幅" msgid "\tCharset sets:" msgstr "\t字符集:" msgid "\tConnection: direct" msgstr "\t连接:直接" msgid "\tConnection: remote" msgstr "\t连接:远程" msgid "\tContent types: any" msgstr "\t内容类型:任意" msgid "\tDefault page size:" msgstr "\t默认页面尺寸:" msgid "\tDefault pitch:" msgstr "\t默认字间距:" msgid "\tDefault port settings:" msgstr "\t默认端口设置:" #, c-format msgid "\tDescription: %s" msgstr "\t描述:%s" msgid "\tForm mounted:" msgstr "\t已挂载表单:" msgid "\tForms allowed:" msgstr "\t已允许表单:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\t界面:%s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\t界面:%s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\t位置:%s" msgid "\tOn fault: no alert" msgstr "\t发生错误时:无警告" msgid "\tPrinter types: unknown" msgstr "\t打印机类型:未知" #, c-format msgid "\tStatus: %s" msgstr "\t状态:%s" msgid "\tUsers allowed:" msgstr "\t允许的用户:" msgid "\tUsers denied:" msgstr "\t拒绝的用户:" msgid "\tdaemon present" msgstr "\t守护程序正在运行" msgid "\tno entries" msgstr "\t无条目" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\t打印机存在于设备“%s”,速度为 -1" msgid "\tprinting is disabled" msgstr "\t已禁用打印" msgid "\tprinting is enabled" msgstr "\t已启用打印" #, c-format msgid "\tqueued for %s" msgstr "\t已为 %s 列队" msgid "\tqueuing is disabled" msgstr "\t已禁用队列" msgid "\tqueuing is enabled" msgstr "\t已启用队列" msgid "\treason unknown" msgstr "\t未知原因" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " 详细兼容性测试结果" msgid " REF: Page 15, section 3.1." msgstr " 引用:第 15 页,章节 3.1。" msgid " REF: Page 15, section 3.2." msgstr " 引用:第 15 页,章节 3.2。" msgid " REF: Page 19, section 3.3." msgstr " 引用:第 19 页,章节 3.3。" msgid " REF: Page 20, section 3.4." msgstr " 引用:第 20 页,章节 3.4。" msgid " REF: Page 27, section 3.5." msgstr " 引用:第 27 页,章节 3.5。" msgid " REF: Page 42, section 5.2." msgstr " 引用:第 42 页,章节 5.2。" msgid " REF: Pages 16-17, section 3.2." msgstr " 引用:第 16-17 页,章节 3.2。" msgid " REF: Pages 42-45, section 5.2." msgstr " 引用:第 42-45 页,章节 5.2。" msgid " REF: Pages 45-46, section 5.2." msgstr " 引用:第 45-46 页,章节 5.2。" msgid " REF: Pages 48-49, section 5.2." msgstr " 引用:第 48-49 页,章节 5.2。" msgid " REF: Pages 52-54, section 5.2." msgstr " 引用:第 52-54 页,章节 5.2。" #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f 字节" #, c-format msgid " PASS Default%s" msgstr " 通过 Default%s" msgid " PASS DefaultImageableArea" msgstr " 通过 DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " 通过 DefaultPaperDimension" msgid " PASS FileVersion" msgstr " 通过 FileVersion" msgid " PASS FormatVersion" msgstr " 通过 FormatVersion" msgid " PASS LanguageEncoding" msgstr " 通过 LanguageEncoding" msgid " PASS LanguageVersion" msgstr " 通过 LanguageVersion" msgid " PASS Manufacturer" msgstr " 通过 Manufacturer" msgid " PASS ModelName" msgstr " 通过 ModelName" msgid " PASS NickName" msgstr " 通过 NickName" msgid " PASS PCFileName" msgstr " 通过 PCFileName" msgid " PASS PSVersion" msgstr " 通过 PSVersion" msgid " PASS PageRegion" msgstr " 通过 PageRegion" msgid " PASS PageSize" msgstr " 通过 PageSize" msgid " PASS Product" msgstr " 通过 Product" msgid " PASS ShortNickName" msgstr " 通过 ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " 警告 %s 没有响应选项。" #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " 警告 %s 和 %s 共享前缀\n" " 引用:第 15 页,章节 3.2。" #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " 警告 Duplex 选项关键词 %s 可能不能正常工作,且应命名为 Duplex。\n" " 引用:第 122 页,章节 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr " 警告 文件中存在 CR,LF 和 CR LF 行末混用。" msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " 警告 PPD 4.3 规范需要 LanguageEncoding。\n" " 引用:第 56-57 页,章节 5.3。" #, c-format msgid " WARN Line %d only contains whitespace." msgstr " 警告 行 %d 仅包含空白。" msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " 警告 PPD 4.3 规范需要 Manufacturer。\n" " 引用:第 58-59 页,章节 5.3。" msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr " 警告 非 Windows PPD 文件应该使用 LF 行末而不是 CR LF。" #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " 警告 过时的 PPD 版本 %.1f。\n" " 引用:第 42 页,章节 5.2。" msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " 警告 PCFileName 超过 8.3 长度,不符合 PPD 规范。\n" " REF:第 61-62 页,章节 5.3。" msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " 警告 PCFileName 应包含特殊文件名。\n" " 引用:第 61-62 页,章节 5.3。" msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " 警告 协议包含 PJL 但未设置 JCL 属性。\n" " 引用:第 78-79 页,章节 5.7。" msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " 警告 协议包含 PJL 及 BCP;预期 TBCP。\n" " 引用:第 78-79 页,章节 5.7。" msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " 警告 PPD 4.3 规范需要 ShortNickName。\n" " 引用:第 64-65 页,章节 5.3。" #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s “%s %s”与“%s %s”冲突\n" " (限制=“%s %s %s %s”)。" #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s 不存在。" #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s 文件“%s”包含错误大小写。" #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s 无效的 %s 选项 %s。\n" " 引用:第 122 页,章节 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr " %1$s 无效的选项 %3$s 的 UTF-8“%2$s”字串翻译,选择 %4$s。" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %1$s 无效的选项 %3$s 的 UTF-8“%2$s”字串翻译。" #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s 无效的 cupsFilter 值“%s”。" #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s 无效的 cupsFilter2 值“%s”。" #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s 无效 cupsICCProfile %s。" #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s 无效的 cupsPreFilter 值“%s”。" #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s 无效 cupsUIConstraints %s:“%s”" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s 无效语言“%s”。" #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s %s 文件“%s”存在无效权限。" #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s %s 拼写错误 — 应为 %s。" #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr " %s 无法同时提供 APScanAppPath 及 APScanAppBundleID。" #, c-format msgid " %s Default choices conflicting." msgstr " %s 默认选择相互冲突。" #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s 空白 cupsUIConstraints %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr " %1$s 选项 %3$s 缺少“%2$s”翻译字串,选择 %4$s。" #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %1$s 选项 %3$s 缺少“%2$s”翻译字串。" #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s 缺少 %s 文件“%s”。" #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s 缺少必须的 PageRegion 选项。\n" " 引用:第 100 页,章节 5.14。" #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s 缺少必须的 PageSize 选项。\n" " 引用:第 99 页,章节 5.14。" #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" " %1$s UIConstraints “*%4$s %5$s *%6$s %7$s”中缺少选择 %2$s %3$s。" #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %1$s cupsUIConstraints %4$s:“%5$s” 中缺少选择 *%2$s %3$s" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s 缺少 cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %1$s UIConstraints “*%3$s %4$s *%5$s %6$s” 中缺少选项 %2$s。" #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %1$s cupsUIConstraints %3$s:“%4$s” 中缺少选项 %2$s" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s 文件中无基础翻译“%s”。" #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s 必须的 %s 未定义空选项。\n" " 引用:第 122 页,章节 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %1$s 已为 %3$s 定义尺寸“%2$s”,但未为 %4$s 定义。" #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s 大小“%s”包含未预期尺寸 (%gx%g)。" #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s 大小“%s”应为“%s”。" #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr " %s 大小“%s”应为 Adobe 标准名称“%s”。" #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfile %s 包含与 %s 冲突的哈希值。" #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s 导致循环。" #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr " %s cupsUIResolver %s 未列出至少两个不同的选项。" #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **失败** %s 必须为 1284DeviceID\n" " 引用:第 72 页,章节 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **失败** 无效的 Default%s 值 %s\n" " 引用:第 40 页,章节 4.5。" #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **失败** 无效的 DefaultImageableArea 值 %s\n" " 引用:第 102 页,章节 5.15。" #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **失败** 无效的 DefaultPaperDimension 值 %s\n" " 引用:第 103 页,章节 5.15。" #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **失败** 无效的 FileVersion 值“%s”\n" " 引用:第 56 页,章节 5.3。" #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **失败** 无效的 FormatVersion 值“%s”\n" " 引用:第 56 页,章节 5.3。" msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **失败** 文件中包含无效的 JobPatchFile 属性\n" " 引用:第 24 页,章节 3.4。" #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr " **失败** 无效的 LanguageEncoding 值 %s — 值必须为 ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr " **失败** 无效的 LanguageVersion 值 %s — 值必须为 English." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **失败** 无效的 Manufacturer 值 (应为“%s”)\n" " 引用:第 211 页,表格 D.1。" #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **失败** 无效的 ModelName 值 — 字串不应包含“%c”。\n" " 引用:第 59-60 页,章节 5.3。" msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **失败** 无效的 PSVersion 值 — 赋值非“(string) int”。\n" " 引用:第 62-64 页,章节 5.3。" msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **失败** 无效的 Product 值 — 赋值非“(string)”。\n" " 引用:第 62 页,章节 5.3。" msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **失败** 无效的 ShortNickName 值 — 长度超过 31 个字符。\n" " 引用:第 64-65 页,章节 5.3。" #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **失败** 无效的选项 %s 选择 %s。\n" " 引用:第 84 页,章节 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr " **失败** 无法解析默认选项代码:%s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr " **失败** 选项 %s 选择 %s 的默认翻译字串包含 8 位字符。" #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr " **失败** 选项 %s 的默认翻译字串包含 8 位字符。" #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr " **失败** 组名 %s 及 %s 仅包含大小写区别。" #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr " **失败** 选项 %s 的选择名称 %s 多次出现。" #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr " **失败** 选项 %s 的选择名称 %s 及 %s 仅包含大小写区别。" #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr " **失败** 选项名称 %s 及 %s 仅包含大小写区别。" #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **失败** 需要 Default%s\n" " 引用:第 40 页,章节 4.5。" msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **失败** 需要 DefaultImageableArea\n" " 引用:第 102 页,章节 5.15。" msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **失败** 需要 DefaultPaperDimension\n" " 引用:第 103 页,章节 5.15。" msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **失败** 需要 FileVersion\n" " 引用:第 56 页,章节 5.3。" msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **失败** 需要 FormatVersion\n" " 引用:第 56 页,章节 5.3。" #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **失败** 需要为 PageSize 值 %s 定义 ImageableArea\n" " 引用:第 41 页,章节 5。\n" " 引用:第 102 页,章节 5.15。" msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **失败** 需要 LanguageEncoding\n" " 引用:第 56-57 页,章节 5.3。" msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **失败** 需要 LanguageVersion\n" " 引用:第 57-58 页,章节 5.3。" msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **失败** 需要 Manufacturer\n" " 引用:第 58-59 页,章节 5.3。" msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **失败** 需要 ModelName\n" " 引用:第 59-60 页,章节 5.3。" msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **失败** 需要 NickName\n" " 引用:第 60 页,章节 5.3。" msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **失败** 需要 PCFileName\n" " 引用:第 61-62 页,章节 5.3。" msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **失败** 需要 PSVersion\n" " 引用:第 62-64 页,章节 5.3。" msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **失败** 需要 PageRegion\n" " 引用:第 100 页,章节 5.14。" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **失败** 需要 PageSize\n" " 引用:第 41 页,章节 5。\n" " 引用:第 99 页,章节 5.14。" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **失败** 需要 PageSize\n" " 引用:第 99-100 页,章节 5.14。" #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **失败** 需要为 PageSize 值 %s 定义 PaperDimension\n" " 引用:第 41 页,章节 5。\n" " 引用:第 103 页,章节 5.15。" msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **失败** 需要 Product\n" " 引用:第 62 页,章节 5.3。" msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **失败** 需要 ShortNickName\n" " 引用:第 64-65 页,章节 5.3。" #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **失败** 无法打开 PPD 文件 — 行 %2$d 上的 %1$s。" #, c-format msgid " %d ERRORS FOUND" msgstr " 发现 %d 个错误" msgid " NO ERRORS FOUND" msgstr " 未发现错误" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr 使用 CR 行末 (Mac OS 9)。" msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf 使用 CR + LF 行末 (Windows)。" msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf 使用 LF 行末 (UNIX/Linux/macOS)。" msgid " --list-filters List filters that will be used." msgstr " --list-filters 列出要使用的滤镜。" msgid " -D Remove the input file when finished." msgstr " -D 完成后删除输入文件。" msgid " -D name=value Set named variable to value." msgstr " -D 名称=赋值 为指定变量赋值。" msgid " -I include-dir Add include directory to search path." msgstr " -I include-dir 将引用目录加入到搜索路径。" msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd 设置 PPD 文件。" msgid " -U username Specify username." msgstr " -U 用户名 指定用户名。" msgid " -c catalog.po Load the specified message catalog." msgstr " -c catalog.po 载入指定的消息索引。" msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf 设置要使用的 cups-files.conf 文件。" msgid " -d output-dir Specify the output directory." msgstr " -d output-dir 指定输出目录。" msgid " -d printer Use the named printer." msgstr " -d 打印机 使用指定的打印机。" msgid " -e Use every filter from the PPD file." msgstr " -e 使用来自 PPD 文件的所有滤镜。" msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr " -i mime/type 设置输入的 MIME 类型 (否则自动探测类型)。" msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr " -j job-id[,N] 从指定任务中过滤文件 N (默认为文件 1)。" msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] 指定输出语言 (地域配置)。" msgid " -m Use the ModelName value as the filename." msgstr " -m 将 ModelName 值作为文件名。" msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type 设置输出 MIME 类型 (缺省为 application/pdf)。" msgid " -n copies Set number of copies." msgstr " -n 副本数 设置副本数量。" msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr " -o filename.drv 指定驱动信息文件 (缺省为 ppdi.drv)。" msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr " -o filename.ppd[.gz] 设置输出文件 (缺省为标准输出)。" msgid " -o name=value Set option(s)." msgstr " -o 名称=赋值 设置选项。" msgid " -p filename.ppd Set PPD file." msgstr " -p filename.ppd 指定 PPD 文件。" msgid " -t Test PPDs instead of generating them." msgstr " -t 测试而非生成 PPD 文件。" msgid " -t title Set title." msgstr " -t 标题 设置标题。" msgid " -u Remove the PPD file when finished." msgstr " -u 完成后删除 PPD 文件。" msgid " -v Be verbose." msgstr " -v 开启详细输出。" msgid " -z Compress PPD files using GNU zip." msgstr " -z 使用 GNU zip 压缩 PPD 文件。" msgid " FAIL" msgstr " 失败" msgid " PASS" msgstr " 通过" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "“%s”:无效的 URI 值“%s”— %s (RFC 8011 章节 5.1.6)。" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "“%s”:无效的 URI 值“%s”— 无效长度 %d (RFC 8011 章节 5.1.6)。" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "“%s”:无效的属性名称 — 无效长度 %d (RFC 8011 章节 5.1.4)。" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "“%s”:无效的属性名称 — 无效字符 (RFC 8011 章节 5.1.4)。" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "“%s”:无效的布里值 %d (RFC 8011 章节 5.1.21)。" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "“%s”:无效的字符集值“%s”— 无效字符 (RFC 8011 章节 5.1.21)。" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "“%s”:无效的字符集值“%s”— 无效长度 %d (RFC 8011 章节 5.1.21)。" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime UTC 小时值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime UTC 分钟值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime UTC 符号值“%c” (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 日期值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 十分之一秒值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 小时值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 分钟值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 月份值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "“%s”:无效的 dateTime 秒值 %u (RFC 8011 章节 5.1.15)。" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "“%s”:无效的枚举值 %d - 超出范围 (RFC 8011 章节 5.1.5)。" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "“%s”:无效的关键字值“%s”— 无效长度 %d (RFC 8011 章节 5.1.4)。" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "“%s”:无效的关键字值“%s”— 无效字符 (RFC 8011 章节 5.1.4)。" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "“%s”:无效的 mimeMediaType 值“%s”— 无效字符 (RFC 8011 章节 5.1.10)。" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" "“%s”:无效的 mimeMediaType 值“%s”— 无效长度 %d (RFC 8011 章节 5.1.10)。" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "“%s”:无效的名称值“%s”— 无效 UTF-8 序列 (RFC 8011 章节 5.1.3)。" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "“%s”:无效的名称值“%s”— 无效控制字符 (PWG 5100.14 章节 8.1)。" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "“%s”:无效的名称值“%s”— 无效长度 %d (RFC 8011 章节 5.1.3)。" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "“%s”:无效的 naturalLanguage 值“%s”— 无效字符 (RFC 8011 章节 5.1.9)。" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" "“%s”:无效的 naturalLanguage 值“%s”— 无效长度 %d (RFC 8011 章节 5.1.9)。" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "“%s”:无效的 octetString 值 — 无效长度 %d (RFC 8011 章节 5.1.20)。" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" "“%s”:无效的 rangeOfInteger 值 %d-%d — 整数下限大于上限 (RFC 8011 章节 " "5.1.14)。" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "“%s”:无效的分辨率值 %dx%d%s — 无效单位值 (RFC 8011 章节 5.1.16)。" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" "“%s”:无效的分辨率值 %dx%d%s — 横截分辨率必须为正数 (RFC 8011 章节 5.1.16)。" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" "“%s”:无效的分辨率值 %dx%d%s — 顺向分辨率必须为正数 (RFC 8011 章节 5.1.16)。" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "“%s”:无效的文本值“%s”— 无效 UTF-8 序列 (RFC 8011 章节 5.1.2)。" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "“%s”:无效的文本值“%s”— 无效控制字符 (PWG 5100.14 章节 8.3)。" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "“%s”:无效的文本值“%s”— 无效长度 %d (RFC 8011 章节 5.1.2)。" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "“%s”:无效的 uriScheme 值“%s”— 无效字符 (RFC 8011 章节 5.1.7)。" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "“%s”:无效的 uriScheme 值“%s”— 无效长度 %d (RFC 8011 章节 5.1.7)。" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "“requesting-user-name”属性组不正确。" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "“requesting-user-name”属性组包含错误的语法。" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f 字节" #, c-format msgid "%d x %d mm" msgstr "%d x %d 毫米" #, c-format msgid "%g x %g \"" msgstr "%g x %g \"" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (无边界)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (无边界,%s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (无边界,%s,%s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s 自从 %s 开始接受请求" #, c-format msgid "%s cannot be changed." msgstr "无法更改 %s。" #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s 未在 CUPS 版本的 lpc 中实现。" #, c-format msgid "%s is not ready" msgstr "%s 未就绪" #, c-format msgid "%s is ready" msgstr "%s 就绪" #, c-format msgid "%s is ready and printing" msgstr "%s 就绪且正在打印" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s job-id 用户标题副本选项 [文件]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s 自从 %s 不再接受请求" #, c-format msgid "%s not supported." msgstr "%s 不被支持。" #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s 自从 %s 开始接受请求" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s 自从 %s 不再接受请求" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s:%-33.33s [任务 %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s:%s" #, c-format msgid "%s: %s failed: %s" msgstr "%s:%s 失败:%s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s:无效的打印机 URI“%s”。" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s:用于“-V”的版本 %s 无效。" #, c-format msgid "%s: Don't know what to do." msgstr "%s:不知如何处理。" #, c-format msgid "%s: Error - %s" msgstr "%s:错误 — %s" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "%s:错误 — %s 环境变量指定了不存在的目的地“%s”。" #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s:错误 — 请将“/version=1.1”添加到服务器名称。" #, c-format msgid "%s: Error - bad job ID." msgstr "%s:错误 — 无效的任务 ID。" #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "%s:错误 — 无法在打印文件的同时更改任务。" #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "%s:错误 — 在指定了文件或任务 ID 的情况下不能从标准输入打印。" #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "%s:错误 — 副本数必须为至少 1。" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s:错误 — 在“-S”选项后预期字符集。" #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s:错误 — 在“-T”选项后预期内容类型。" #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s:错误 — 在“-#”选项后预期副本数量。" #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s:错误 — 在“-n”选项后预期副本数量。" #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s:错误 — 在“-P”选项后预期目的地。" #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s:错误 — 在“-d”选项后预期目的地。" #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s:错误 — 在“-f”选项后预期表单。" #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s:错误 — 在“-H”选项后期待保持名称。" #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s:错误 — 在“-H”选项后预期主机名。" #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s:错误 — 在“-h”选项后预期主机名。" #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s:错误 — 在“-y”选项后预期模式列表。" #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s:错误 — 在“-%c”选项后预期名称。" #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s:错误 — 在“-o”选项后预期选项=赋值。" #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s:错误 — 在“-P”选项后预期页码列表。" #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s:错误 — 在“-%c”选项后预期优先级。" #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s:错误 — 在“-r”选项后预期理由文本。" #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s:错误 — 在“-t”选项后预期标题。" #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s:错误 — 在“-U”选项后预期用户名。" #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s:错误 — 在“-u”选项后预期用户名。" #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s:错误 — 在“-%c”选项后预期赋值。" #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "%s:错误 — 在“-W”选项后需要“completed”,“not-completed”或“all”值。" #, c-format msgid "%s: Error - no default destination available." msgstr "%s:错误 — 无可用的默认目的地。" #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s:错误 — 优先级必须在 1 至 100 之间。" #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s:错误 — 调度器无响应。" #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s:错误 — 文件太多 -“%s”。" #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s:错误 — 无法访问“%s”- %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s:错误 — 无法从标准输出列表 — %s。" #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s:错误 — 未知目的地“%s”。" #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s:错误 — 未知目的地“%s/%s”。" #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s:错误 — 未知选项“%c”。" #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s:错误 — 未知选项“%s”。" #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s:在选项“-i”后预期任务 ID。" #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s:列表“%s”中的目的地名称无效。" #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s:无效的滤镜字串“%s”。" #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s:“-P”选项缺少文件名。" #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s:“-T”选项缺少超时。" #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s:“-V”选项缺少版本。" #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s:在指定“-H restart”之前需要任务 ID (\"-i jobid\")。" #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s:没有可以将 %s/%s 转换为 %s/%s 的滤镜。" #, c-format msgid "%s: Operation failed: %s" msgstr "%s:操作失败:%s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s:抱歉,无加密支持。" #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s:无法连接到“%s:%d”:%s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s:无法连接到服务器。" #, c-format msgid "%s: Unable to contact server." msgstr "%s:无法与服务器通信。" #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s:无法创建 PPD 文件:%s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s:无法确定“%s”的 MIME 类型。" #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s:无法打开“%s”:%s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s:无法打开 %s:%s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%1$s:无法打开 PPD 文件:行 %3$d 上的 %2$s。" #, c-format msgid "%s: Unable to query printer: %s" msgstr "%s:无法查询打印机:%s" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s:无法从“%s”或“%s”读取 MIME 数据库。" #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s:无法解析“%s”。" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "%s:未知参数“%s”。" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s:未知目的地“%s”。" #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s:MIME 类型 %s/%s 的目的地未知。" #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s:未知选项“%c”。" #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s:未知选项“%s”。" #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s:未知选项“-%c”。" #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s:未知源 MIME 类型 %s/%s。" #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "%s:警告 — 不支持“%c”格式的修饰符 — 输出可能不正确。" #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s:警告 — 字符集选项被忽略。" #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s:警告 — 内容类型选项被忽略。" #, c-format msgid "%s: Warning - form option ignored." msgstr "%s:警告 — 图标选项被忽略。" #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s:警告 — 模式选项被忽略。" msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "/etc/cups/lpoptions 文件所指定的默认目标不存在。" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 英寸/秒" msgid "1.25x0.25\"" msgstr "1.25×0.25 英寸" msgid "1.25x2.25\"" msgstr "1.25×2.25 英寸" msgid "1.5 inch/sec." msgstr "1.5 英寸/秒" msgid "1.50x0.25\"" msgstr "1.50×0.25 英寸" msgid "1.50x0.50\"" msgstr "1.50×0.50 英寸" msgid "1.50x1.00\"" msgstr "1.50×1.00 英寸" msgid "1.50x2.00\"" msgstr "1.50×2.00 英寸" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 英寸/秒" msgid "10 x 11" msgstr "10×11" msgid "10 x 13" msgstr "10×13" msgid "10 x 14" msgstr "10×14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 毫米/秒" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 英寸/秒" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 英寸/秒" msgid "12 x 11" msgstr "12×11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 毫米/秒" msgid "120x60dpi" msgstr "120×60 dpi" msgid "120x72dpi" msgstr "120×72 dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136 dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 毫米/秒" msgid "15 x 11" msgstr "15×11" msgid "150 mm/sec." msgstr "150 毫米/秒" msgid "150dpi" msgstr "150 dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180 dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 英寸/秒" msgid "2-Sided Printing" msgstr "双面打印" msgid "2.00x0.37\"" msgstr "2.00×0.37 英寸" msgid "2.00x0.50\"" msgstr "2.00×0.50 英寸" msgid "2.00x1.00\"" msgstr "2.00×1.00 英寸" msgid "2.00x1.25\"" msgstr "2.00×1.25 英寸" msgid "2.00x2.00\"" msgstr "2.00×2.00 英寸" msgid "2.00x3.00\"" msgstr "2.00×3.00 英寸" msgid "2.00x4.00\"" msgstr "2.00×4.00 英寸" msgid "2.00x5.50\"" msgstr "2.00×5.50 英寸" msgid "2.25x0.50\"" msgstr "2.25×0.50 英寸" msgid "2.25x1.25\"" msgstr "2.25×1.25 英寸" msgid "2.25x4.00\"" msgstr "2.25×4.00 英寸" msgid "2.25x5.50\"" msgstr "2.25×5.50 英寸" msgid "2.38x5.50\"" msgstr "2.38×5.50 英寸" msgid "2.5 inches/sec." msgstr "2.5 英寸/秒" msgid "2.50x1.00\"" msgstr "2.50×1.00 英寸" msgid "2.50x2.00\"" msgstr "2.50×2.00 英寸" msgid "2.75x1.25\"" msgstr "2.75×1.25 英寸" msgid "2.9 x 1\"" msgstr "2.9×1 英寸" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 毫米/秒" msgid "200 mm/sec." msgstr "200 毫米/秒" msgid "203dpi" msgstr "203 dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24 针序列" msgid "240x72dpi" msgstr "240×72 dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 毫米/秒" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 英寸/秒" msgid "3 x 5" msgstr "3×5" msgid "3.00x1.00\"" msgstr "3.00×1.00 英寸" msgid "3.00x1.25\"" msgstr "3.00×1.25 英寸" msgid "3.00x2.00\"" msgstr "3.00×2.00 英寸" msgid "3.00x3.00\"" msgstr "3.00×3.00 英寸" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00×5.00 英寸" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25×2.00 英寸" msgid "3.25x5.00\"" msgstr "3.25×5.00 英寸" msgid "3.25x5.50\"" msgstr "3.25×5.50 英寸" msgid "3.25x5.83\"" msgstr "3.25×5.83 英寸" msgid "3.25x7.83\"" msgstr "3.25×7.83 英寸" msgid "3.5 x 5" msgstr "3.5×5" msgid "3.5\" Disk" msgstr "3.5 英寸磁盘" msgid "3.50x1.00\"" msgstr "3.50×1.00 英寸" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 毫米/秒" msgid "300 mm/sec." msgstr "300 毫米/秒" msgid "300dpi" msgstr "300 dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360 dpi" msgid "360x180dpi" msgstr "360×180 dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 英寸/秒" msgid "4.00x1.00\"" msgstr "4.00×1.00 英寸" msgid "4.00x13.00\"" msgstr "4.00×13.00 英寸" msgid "4.00x2.00\"" msgstr "4.00×2.00 英寸" msgid "4.00x2.50\"" msgstr "4.00×2.50 英寸" msgid "4.00x3.00\"" msgstr "4.00×3.00 英寸" msgid "4.00x4.00\"" msgstr "4.00×4.00 英寸" msgid "4.00x5.00\"" msgstr "4.00×5.00 英寸" msgid "4.00x6.00\"" msgstr "4.00×6.00 英寸" msgid "4.00x6.50\"" msgstr "4.00×6.50 英寸" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 毫米/秒" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 英寸/秒" msgid "5 x 7" msgstr "5×7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 英寸/秒" msgid "6.00x1.00\"" msgstr "6.00×1.00 英寸" msgid "6.00x2.00\"" msgstr "6.00×2.00 英寸" msgid "6.00x3.00\"" msgstr "6.00×3.00 英寸" msgid "6.00x4.00\"" msgstr "6.00×4.00 英寸" msgid "6.00x5.00\"" msgstr "6.00×5.00 英寸" msgid "6.00x6.00\"" msgstr "6.00×6.00 英寸" msgid "6.00x6.50\"" msgstr "6.00×6.50 英寸" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 毫米/秒" msgid "600dpi" msgstr "600 dpi" msgid "60dpi" msgstr "60 dpi" msgid "60x72dpi" msgstr "60×72 dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 英寸/秒" msgid "7 x 9" msgstr "7×9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 英寸/秒" msgid "8 x 10" msgstr "8×10" msgid "8.00x1.00\"" msgstr "8.00×1.00 英寸" msgid "8.00x2.00\"" msgstr "8.00×2.00 英寸" msgid "8.00x3.00\"" msgstr "8.00×3.00 英寸" msgid "8.00x4.00\"" msgstr "8.00×4.00 英寸" msgid "8.00x5.00\"" msgstr "8.00×5.00 英寸" msgid "8.00x6.00\"" msgstr "8.00×6.00 英寸" msgid "8.00x6.50\"" msgstr "8.00×6.50 英寸" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 毫米/秒" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 英寸/秒" msgid "9 x 11" msgstr "9×11" msgid "9 x 12" msgstr "9×12" msgid "9-Pin Series" msgstr "9 针序列" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?无效 未知帮助命令。" #, c-format msgid "A class named \"%s\" already exists." msgstr "已存在名为“%s”的类。" #, c-format msgid "A printer named \"%s\" already exists." msgstr "已存在名为“%s”的打印机。" msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 长边" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 长边" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 长边" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 长边" msgid "A3 Oversize" msgstr "A3 加大" msgid "A3 Oversize Long Edge" msgstr "A3 加大 长边" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 长边" msgid "A4 Oversize" msgstr "A4 加大" msgid "A4 Small" msgstr "A4 小号" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 长边" msgid "A5 Oversize" msgstr "A5 加大" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 长边" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C 长边缘" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D 长边缘" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E 长边缘" msgid "Accept Jobs" msgstr "接受任务" msgid "Accepted" msgstr "已接受" msgid "Add Class" msgstr "添加类" msgid "Add Printer" msgstr "添加打印机" msgid "Address" msgstr "地址" msgid "Administration" msgstr "管理" msgid "Always" msgstr "总是" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "涂药器" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "尝试设置 %s 打印机状态为无效值 %d。" #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "属性“%s”位于错误的组。" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "属性“%s”不是正确的值类型。" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "属性组排序错乱 (%x < %x)。" msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "B5 超大" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "无效的“printer-id”值 %d。" #, c-format msgid "Bad '%s' value." msgstr "无效的“%s”值。" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "无效的“document-format”值“%s”。" msgid "Bad CloseUI/JCLCloseUI" msgstr "无效的 CloseUI/JCLCloseUI" msgid "Bad NULL dests pointer" msgstr "无效的 NULL 目标指针" msgid "Bad OpenGroup" msgstr "无效的 OpenGroup 值" msgid "Bad OpenUI/JCLOpenUI" msgstr "无效的 OpenUI/JCLOpenUI 值" msgid "Bad OrderDependency" msgstr "无效的 OrderDependency 值" msgid "Bad PPD cache file." msgstr "无效的 PPD 缓存文件。" msgid "Bad PPD file." msgstr "无效的 PPD 文件。" msgid "Bad Request" msgstr "无效请求" msgid "Bad SNMP version number" msgstr "无效的 SNMP 版本号" msgid "Bad UIConstraints" msgstr "无效的 UIConstraints 值" msgid "Bad URI." msgstr "无效的 URI。" msgid "Bad arguments to function" msgstr "函数的参数无效" #, c-format msgid "Bad copies value %d." msgstr "无效的副本值 %d。" msgid "Bad custom parameter" msgstr "无效的自定义参数" #, c-format msgid "Bad device-uri \"%s\"." msgstr "无效的 device-uri 值“%s”。" #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "无效的 device-uri 方案“%s”。" #, c-format msgid "Bad document-format \"%s\"." msgstr "无效的 document-format 值“%s”。" #, c-format msgid "Bad document-format-default \"%s\"." msgstr "无效的 document-format-default 值“%s”。" msgid "Bad filename buffer" msgstr "无效的文件名缓存" msgid "Bad hostname/address in URI" msgstr "URI 中的主机名/地址无效" #, c-format msgid "Bad job-name value: %s" msgstr "无效的 job-name 值:%s" msgid "Bad job-name value: Wrong type or count." msgstr "无效的 job-name 支持:无效的类型或序号。" msgid "Bad job-priority value." msgstr "无效的 job-priority 值。" #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "无效的 job-sheets 值“%s”。" msgid "Bad job-sheets value type." msgstr "无效的 job-sheets 值类型。" msgid "Bad job-state value." msgstr "无效的 job-state 值。" #, c-format msgid "Bad job-uri \"%s\"." msgstr "无效的 job-uri 值“%s”。" #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "无效的 notify-pull-method 值“%s”。" #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "无效的 notify-recipient-uri 值“%s”。" #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "无效的 notify-user-data “%s”。" #, c-format msgid "Bad number-up value %d." msgstr "无效的 number-up 值 %d。" #, c-format msgid "Bad page-ranges values %d-%d." msgstr "无效的 page-range 值 %d-%d。" msgid "Bad port number in URI" msgstr "URI 中的端口号无效" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "无效的 port-monitor 值“%s”。" #, c-format msgid "Bad printer-state value %d." msgstr "无效的 printer-state 值 %d。" msgid "Bad printer-uri." msgstr "无效的 printer-uri 值。" #, c-format msgid "Bad request ID %d." msgstr "无效的请求 ID %d。" #, c-format msgid "Bad request version number %d.%d." msgstr "无效的请求版本号 %d.%d。" msgid "Bad resource in URI" msgstr "URI 中的资源无效" msgid "Bad scheme in URI" msgstr "URI 中的方案无效" msgid "Bad username in URI" msgstr "URI 中的用户名无效" msgid "Bad value string" msgstr "无效的值字串" msgid "Bad/empty URI" msgstr "无效或空的 URI" msgid "Banners" msgstr "条幅" msgid "Bond Paper" msgstr "证券纸" msgid "Booklet" msgstr "册子" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "waiteof 选项“%s”预期布里值。" msgid "Buffer overflow detected, aborting." msgstr "检测到缓冲区溢出,正在中止。" msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "CPCL 标签打印机" msgid "Cancel Jobs" msgstr "取消任务" msgid "Canceling print job." msgstr "正在取消打印任务" msgid "Cannot change printer-is-shared for remote queues." msgstr "无法为远程队列更改 printer-is-shared 值。" msgid "Cannot share a remote Kerberized printer." msgstr "无法共享远程的通过 Kerberos 授权的打印机。" msgid "Cassette" msgstr "纸盒" msgid "Change Settings" msgstr "更改选项" #, c-format msgid "Character set \"%s\" not supported." msgstr "不受支持的字符集“%s”。" msgid "Classes" msgstr "类" msgid "Clean Print Heads" msgstr "清理打印头" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job 指令不支持 job-uri 属性。" msgid "Color" msgstr "彩色" msgid "Color Mode" msgstr "色彩模式" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "命令可能为缩写。可用命令如下:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "社群名称不限长度" msgid "Connected to printer." msgstr "已连接到打印机。" msgid "Connecting to printer." msgstr "正在连接到打印机。" msgid "Continue" msgstr "继续" msgid "Continuous" msgstr "连续" msgid "Control file sent successfully." msgstr "已成功发送控制文件。" msgid "Copying print data." msgstr "正在复制打印数据。" msgid "Created" msgstr "创建时间" msgid "Credentials do not validate against site CA certificate." msgstr "无法与站点 CA 证书验证凭据。" msgid "Credentials have expired." msgstr "凭据已过期。" msgid "Custom" msgstr "自定义" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "剪切" msgid "Cutter" msgstr "车床刀具" msgid "DYMO" msgstr "" msgid "Dark" msgstr "暗色" msgid "Darkness" msgstr "暗度" msgid "Data file sent successfully." msgstr "已成功发送数据文件。" msgid "Deep Color" msgstr "深色" msgid "Deep Gray" msgstr "深灰" msgid "Delete Class" msgstr "删除类" msgid "Delete Printer" msgstr "删除打印机" msgid "DeskJet Series" msgstr "DeskJet 系列" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "目标“%s”不接受任务。" msgid "Device CMYK" msgstr "设备 CMYK" msgid "Device Gray" msgstr "设备灰度" msgid "Device RGB" msgstr "设备 RGB" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "设备:\turi = %s\n" "\tclass = %s\n" "\tinfo = %s\n" "\tmake-and-model = %s\n" "\tdevice-id = %s\n" "\tlocation = %s" msgid "Direct Thermal Media" msgstr "直接热敏介质" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "目录“%s”包含相对路径。" #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "目录“%s”带有不安全的权限许可 (0%o/uid=%d/gid=%d)。" #, c-format msgid "Directory \"%s\" is a file." msgstr "目录“%s”是一个文件。" #, c-format msgid "Directory \"%s\" not available: %s" msgstr "目录“%s”不可用:%s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "目录“%s”的权限许可无问题 (0%o/uid=%d/gid=%d)。" msgid "Disabled" msgstr "已禁用" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "任务 #%2$d 中不包含文档 #%1$d。" msgid "Draft" msgstr "草稿" msgid "Duplexer" msgstr "双面打印器" msgid "EPL1 Label Printer" msgstr "EPL1 标签打印机" msgid "EPL2 Label Printer" msgstr "EPL2 标签打印机" msgid "Edit Configuration File" msgstr "编辑配置文件" msgid "Encryption is not supported." msgstr "不支持加密。" #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "结尾横幅" msgid "English" msgstr "英语" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "输入你的用户名和密码或 root 的用户名和密码以访问此页面。如果您正在使用 " "Kerberos 认证,请求确定您拥有有效的 Kerberos 凭据。" msgid "Envelope #10" msgstr "国际信封 (Envelope) 10 号" msgid "Envelope #11" msgstr "国际信封 (Envelope) 11 号" msgid "Envelope #12" msgstr "国际信封 (Envelope) 12 号" msgid "Envelope #14" msgstr "国际信封 (Envelope) 14 号" msgid "Envelope #9" msgstr "国际信封 (Envelope) 9 号" msgid "Envelope B4" msgstr "国际信封 (Envelope) B4" msgid "Envelope B5" msgstr "国际信封 (Envelope) B5" msgid "Envelope B6" msgstr "国际信封 (Envelope) B6" msgid "Envelope C0" msgstr "国际信封 (Envelope) C0" msgid "Envelope C1" msgstr "国际信封 (Envelope) C1" msgid "Envelope C2" msgstr "国际信封 (Envelope) C2" msgid "Envelope C3" msgstr "国际信封 (Envelope) C3" msgid "Envelope C4" msgstr "国际信封 (Envelope) C4" msgid "Envelope C5" msgstr "国际信封 (Envelope) C5" msgid "Envelope C6" msgstr "国际信封 (Envelope) C6" msgid "Envelope C65" msgstr "国际信封 (Envelope) C65" msgid "Envelope C7" msgstr "国际信封 (Envelope) C7" msgid "Envelope Choukei 3" msgstr "日本信封长形 3 号" msgid "Envelope Choukei 3 Long Edge" msgstr "日本信封长形 3 号 长边" msgid "Envelope Choukei 4" msgstr "日本信封长形 4 号" msgid "Envelope Choukei 4 Long Edge" msgstr "日本信封长形 4 号 长边" msgid "Envelope DL" msgstr "国际信封 (Envelope) DL" msgid "Envelope Feed" msgstr "国际信封自供 (Envelope Feed)" msgid "Envelope Invite" msgstr "国际信封意式 (Envelope Italian)" msgid "Envelope Italian" msgstr "国际信封意式 (Envelope Italian)" msgid "Envelope Kaku2" msgstr "日本信封角形 2 号" msgid "Envelope Kaku2 Long Edge" msgstr "日本信封角形 2 号 长边" msgid "Envelope Kaku3" msgstr "日本信封角形 3 号" msgid "Envelope Kaku3 Long Edge" msgstr "日本信封角形 3 号 长边" msgid "Envelope Monarch" msgstr "美国信封君王 (Envelope Monarch)" msgid "Envelope PRC1" msgstr "中国大陆信封 1 号" msgid "Envelope PRC1 Long Edge" msgstr "中国大陆信封 1 号 长边" msgid "Envelope PRC10" msgstr "中国大陆信封 10 号" msgid "Envelope PRC10 Long Edge" msgstr "中国大陆信封 10 号长边" msgid "Envelope PRC2" msgstr "中国大陆信封 2 号" msgid "Envelope PRC2 Long Edge" msgstr "中国大陆信封 2 号 长边" msgid "Envelope PRC3" msgstr "中国大陆信封 3 号" msgid "Envelope PRC3 Long Edge" msgstr "中国大陆信封 3 号 长边" msgid "Envelope PRC4" msgstr "中国大陆信封 4 号" msgid "Envelope PRC4 Long Edge" msgstr "中国大陆信封 4 号 长边" msgid "Envelope PRC5 Long Edge" msgstr "中国大陆信封 5 号 长边" msgid "Envelope PRC5PRC5" msgstr "中国大陆信封 5 号" msgid "Envelope PRC6" msgstr "中国大陆信封 6 号" msgid "Envelope PRC6 Long Edge" msgstr "中国大陆信封 6 号 长边" msgid "Envelope PRC7" msgstr "中国大陆信封 7 号" msgid "Envelope PRC7 Long Edge" msgstr "中国大陆信封 7 号 长边" msgid "Envelope PRC8" msgstr "中国大陆信封 8 号" msgid "Envelope PRC8 Long Edge" msgstr "中国大陆信封 8 号 长边" msgid "Envelope PRC9" msgstr "中国大陆信封 9 号" msgid "Envelope PRC9 Long Edge" msgstr "中国大陆信封 9 号 长边" msgid "Envelope Personal" msgstr "美国信封个人 (Envelope Personal)" msgid "Envelope You4" msgstr "日本信封洋形 4 号" msgid "Envelope You4 Long Edge" msgstr "日本信封洋形 4 号 长边" msgid "Environment Variables:" msgstr "环境变量:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "错误策略" msgid "Error reading raster data." msgstr "读取栅格化数据出错。" msgid "Error sending raster data." msgstr "发送栅格化数据出错。" msgid "Error: need hostname after \"-h\" option." msgstr "错误:“-h”选项后需要主机名。" msgid "European Fanfold" msgstr "欧洲连张 (Fanfold)" msgid "European Fanfold Legal" msgstr "欧洲连张法律 (Fanfold Legal)" msgid "Every 10 Labels" msgstr "每 10 个标签" msgid "Every 2 Labels" msgstr "每 2 个标签" msgid "Every 3 Labels" msgstr "每 3 个标签" msgid "Every 4 Labels" msgstr "每 4 个标签" msgid "Every 5 Labels" msgstr "每 5 个标签" msgid "Every 6 Labels" msgstr "每 6 个标签" msgid "Every 7 Labels" msgstr "每 7 个标签" msgid "Every 8 Labels" msgstr "每 8 个标签" msgid "Every 9 Labels" msgstr "每 9 个标签" msgid "Every Label" msgstr "每个标签" msgid "Executive" msgstr "执行" msgid "Expectation Failed" msgstr "未满足期望" msgid "Expressions:" msgstr "表达式:" msgid "Fast Grayscale" msgstr "快速灰度" #, c-format msgid "File \"%s\" contains a relative path." msgstr "文件“%s”包含相对路径。" #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "文件“%s”带有不安全的权限许可 (0%o/uid=%d/gid=%d)。" #, c-format msgid "File \"%s\" is a directory." msgstr "文件“%s”是一个目录。" #, c-format msgid "File \"%s\" not available: %s" msgstr "文件“%s”不可用:%s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "文件“%s”的权限许可无问题 (0%o/uid=%d/gid=%d)。" msgid "File Folder" msgstr "文件夹" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "已禁用文件设备 URI。要启用此功能,参阅“%s/cups-files.conf”中的 FileDevice 参" "数。" #, c-format msgid "Finished page %d." msgstr "已完成第 %d 页。" msgid "Finishing Preset" msgstr "结尾预设" msgid "Fold" msgstr "折纸" msgid "Folio" msgstr "对开本" msgid "Forbidden" msgstr "已禁止" msgid "Found" msgstr "已发现" msgid "General" msgstr "常规" msgid "Generic" msgstr "通用" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU 使用无限长度" msgid "Glossy Paper" msgstr "光面纸" msgid "Got a printer-uri attribute but no job-id." msgstr "获取到了 printer-uri 属性却未获取到 job-id。" msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "灰度" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "倒挂文件夹" msgid "Hash buffer too small." msgstr "哈希值缓冲区太小。" msgid "Help file not in index." msgstr "帮助文件不在索引中。" msgid "High" msgstr "高" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "带有不兼容值标签的 IPP 1setOf 属性。" msgid "IPP attribute has no name." msgstr "IPP 属性未命名。" msgid "IPP attribute is not a member of the message." msgstr "IPP 属性不是消息成员。" msgid "IPP begCollection value not 0 bytes." msgstr "IPP begCollection 值大小不是 0 字节。" msgid "IPP boolean value not 1 byte." msgstr "IPP 布里值大小不是 1 字节。" msgid "IPP date value not 11 bytes." msgstr "IPP 日期值大小不是 11 字节。" msgid "IPP endCollection value not 0 bytes." msgstr "IPP endCollection 值大小不是 0 字节。" msgid "IPP enum value not 4 bytes." msgstr "IPP enum 值大小不是 4 字节。" msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP 扩展标签大于 0x7FFFFFFF。" msgid "IPP integer value not 4 bytes." msgstr "IPP 整数值大小不是 4 字节。" msgid "IPP language length overflows value." msgstr "IPP 语言长度溢出值限制。" msgid "IPP language length too large." msgstr "IPP 语言长度太长。" msgid "IPP member name is not empty." msgstr "IPP 成员名称非空。" msgid "IPP memberName value is empty." msgstr "IPP memberName 值为空。" msgid "IPP memberName with no attribute." msgstr "IPP memberName 无属性。" msgid "IPP name larger than 32767 bytes." msgstr "IPP 名称大小超过 32767 字节。" msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP nameWithLanguage 值大小小于 4 字节的最小限制。" msgid "IPP octetString length too large." msgstr "IPP octetString 长度过长。" msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP rangeOfInteger 值大小不是 8 字节。" msgid "IPP resolution value not 9 bytes." msgstr "IPP 分辨率值大小不是 9 字节。" msgid "IPP string length overflows value." msgstr "IPP 字串长度超过溢出值限制。" msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP textWithLanguage 值大小小于 4 字节的最小限制。" msgid "IPP value larger than 32767 bytes." msgstr "IPP 值大小超过 32767 字节。" msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "非法控制字符" msgid "Illegal main keyword string" msgstr "非法主关键词字串" msgid "Illegal option keyword string" msgstr "非法选项关键词字串" msgid "Illegal translation string" msgstr "非法翻译字串" msgid "Illegal whitespace character" msgstr "非法空白字符" msgid "Installable Options" msgstr "可安装选项" msgid "Installed" msgstr "已安装" msgid "IntelliBar Label Printer" msgstr "IntelliBar 标签打印机" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "内部服务器错误" msgid "Internal error" msgstr "内部错误" msgid "Internet Postage 2-Part" msgstr "网邮 2 部" msgid "Internet Postage 3-Part" msgstr "网邮 3 部" msgid "Internet Printing Protocol" msgstr "互联网打印协议" msgid "Invalid group tag." msgstr "无效的组标签。" msgid "Invalid media name arguments." msgstr "无效的媒体名称参数。" msgid "Invalid media size." msgstr "无效的媒体大小。" msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "无效的 ppd-name 值。" #, c-format msgid "Invalid printer command \"%s\"." msgstr "无效的打印机命令“%s”。" msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 长边" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 长边" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 长边" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "无法重启任务 #%d — 没有文件。" #, c-format msgid "Job #%d does not exist." msgstr "任务 #%d 不存在。" #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "任务 #%d 已中止 — 无法取消。" #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "任务 #%d 已取消 — 无法取消。" #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "任务 #%d 已完成 — 无法取消。" #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "任务 #%d 已完成且不可更动。" #, c-format msgid "Job #%d is not complete." msgstr "任务 #%d 未完成。" #, c-format msgid "Job #%d is not held for authentication." msgstr "任务 #%d 未被认证扣留。" #, c-format msgid "Job #%d is not held." msgstr "任务 #%d 未被扣留。" msgid "Job Completed" msgstr "任务已完成" msgid "Job Created" msgstr "任务已创建" msgid "Job Options Changed" msgstr "任务选项更动" msgid "Job Stopped" msgstr "任务已停止" msgid "Job is completed and cannot be changed." msgstr "任务已完成且不能更改。" msgid "Job operation failed" msgstr "任务操作失败" msgid "Job state cannot be changed." msgstr "无法更改任务状态。" msgid "Job subscriptions cannot be renewed." msgstr "无法为任务订阅续期。" msgid "Jobs" msgstr "任务" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR 主机或打印机" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "LPDEST 环境变量所指定的默认目标不存在。" msgid "Label Printer" msgstr "标签打印机" msgid "Label Top" msgstr "标签顶部" #, c-format msgid "Language \"%s\" not supported." msgstr "不支持的语言“%s”。" msgid "Large Address" msgstr "大地址" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet 系列 PCL 4/5" msgid "Letter Oversize" msgstr "信函超大" msgid "Letter Oversize Long Edge" msgstr "信函超大长边缘" msgid "Light" msgstr "轻" msgid "Line longer than the maximum allowed (255 characters)" msgstr "行长度超过允许的最大值 (255 字符)" msgid "List Available Printers" msgstr "列出可用打印机" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "已创建本地打印机。" msgid "Long-Edge (Portrait)" msgstr "长边翻转 (竖版)" msgid "Looking for printer." msgstr "正在寻找打印机。" msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "手动供纸" msgid "Media Size" msgstr "媒体大小" msgid "Media Source" msgstr "媒体来源" msgid "Media Tracking" msgstr "媒体跟踪" msgid "Media Type" msgstr "媒体类型" msgid "Medium" msgstr "介质" msgid "Memory allocation error" msgstr "内存分配错误" msgid "Missing CloseGroup" msgstr "缺少 CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "缺少 CloseUI/JCLCloseUI" msgid "Missing PPD-Adobe-4.x header" msgstr "缺少 PPD-Adobe-4.x 文件头" msgid "Missing asterisk in column 1" msgstr "列 1 中缺少星号" msgid "Missing document-number attribute." msgstr "缺少 document-number 属性。" msgid "Missing form variable" msgstr "缺少表单变量" msgid "Missing last-document attribute in request." msgstr "请求中缺少 last-document 属性。" msgid "Missing media or media-col." msgstr "缺少 media 或 media-col。" msgid "Missing media-size in media-col." msgstr "media-col 中缺少 media-size。" msgid "Missing notify-subscription-ids attribute." msgstr "缺少 notify-subscription-ids 属性。" msgid "Missing option keyword" msgstr "缺少选项关键词" msgid "Missing requesting-user-name attribute." msgstr "缺少 requesting-user-name 属性。" #, c-format msgid "Missing required attribute \"%s\"." msgstr "缺少必要的属性“%s”。" msgid "Missing required attributes." msgstr "缺少必要的属性。" msgid "Missing resource in URI" msgstr "URI 中缺少资源" msgid "Missing scheme in URI" msgstr "URI 中缺少方案" msgid "Missing value string" msgstr "缺少值字串。" msgid "Missing x-dimension in media-size." msgstr "media-size 中缺少 x-dimension。" msgid "Missing y-dimension in media-size." msgstr "media-size 中缺少 y-dimension。" #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "型号:\tname = %s\n" "\tnatural_language = %s\n" "\tmake-and-model = %s\n" "\tdevice-id = %s" msgid "Modifiers:" msgstr "修饰符:" msgid "Modify Class" msgstr "修改类" msgid "Modify Printer" msgstr "修改打印机" msgid "Move All Jobs" msgstr "移动所有任务" msgid "Move Job" msgstr "移动任务" msgid "Moved Permanently" msgstr "已永久移动" msgid "NULL PPD file pointer" msgstr "PPD 文件指针为 NULL" msgid "Name OID uses indefinite length" msgstr "名称 OID 使用不定长度" msgid "Nested classes are not allowed." msgstr "不允许嵌套类。" msgid "Never" msgstr "从不" msgid "New credentials are not valid for name." msgstr "新凭据不可用于名称。" msgid "New credentials are older than stored credentials." msgstr "新凭据老于已存储的凭据。" msgid "No" msgstr "否" msgid "No Content" msgstr "无内容" msgid "No IPP attributes." msgstr "无 IPP 属性。" msgid "No PPD name" msgstr "无 PPD 名称" msgid "No VarBind SEQUENCE" msgstr "无 VarBind SEQUENCE" msgid "No active connection" msgstr "无活动连接" msgid "No active connection." msgstr "无活动连接。" #, c-format msgid "No active jobs on %s." msgstr "%s 上无活动任务。" msgid "No attributes in request." msgstr "请求中无属性。" msgid "No authentication information provided." msgstr "未提供认证信息。" msgid "No common name specified." msgstr "未指定通用名称。" msgid "No community name" msgstr "无社群名称" msgid "No default destination." msgstr "无默认目标。" msgid "No default printer." msgstr "无默认打印机。" msgid "No destinations added." msgstr "未添加目标。" msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "argv[0] 或 DEVICE_URI 环境变量中无设备 URI。" msgid "No error-index" msgstr "无 error-index" msgid "No error-status" msgstr "无 error-status" msgid "No file in print request." msgstr "打印请求中无文件。" msgid "No modification time" msgstr "无修改时间" msgid "No name OID" msgstr "无名称 OID" msgid "No pages were found." msgstr "未找到页面。" msgid "No printer name" msgstr "无打印机名称" msgid "No printer-uri found" msgstr "未找到 printer-uri" msgid "No printer-uri found for class" msgstr "未找到类的 print-uri" msgid "No printer-uri in request." msgstr "请求中无 printer-uri。" msgid "No request URI." msgstr "无请求 URI。" msgid "No request protocol version." msgstr "无请求协议版本。" msgid "No request sent." msgstr "未发送请求。" msgid "No request-id" msgstr "无 request-id" msgid "No stored credentials, not valid for name." msgstr "无已存储的凭据,不可用于名称。" msgid "No subscription attributes in request." msgstr "请求中无订阅属性。" msgid "No subscriptions found." msgstr "未找到订阅。" msgid "No variable-bindings SEQUENCE" msgstr "无 variable-bindings SEQUENCE" msgid "No version number" msgstr "无版本号" msgid "Non-continuous (Mark sensing)" msgstr "非连续 (标记嗅探)" msgid "Non-continuous (Web sensing)" msgstr "非连续 (Web 嗅探)" msgid "None" msgstr "无" msgid "Normal" msgstr "一般" msgid "Not Found" msgstr "未找到" msgid "Not Implemented" msgstr "未实现" msgid "Not Installed" msgstr "未安装" msgid "Not Modified" msgstr "未修改" msgid "Not Supported" msgstr "未支持" msgid "Not allowed to print." msgstr "不允许打印。" msgid "Note" msgstr "美国笔记 (Note)" msgid "OK" msgstr "确定" msgid "Off (1-Sided)" msgstr "关 (单面打印)" msgid "Oki" msgstr "日冲" msgid "Online Help" msgstr "在线帮助" msgid "Only local users can create a local printer." msgstr "本地打印机只能使用本地用户创建。" #, c-format msgid "Open of %s failed: %s" msgstr "打开 %s 失败:%s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup 缺少前置 CloseGroup" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI 缺少前置 CloseUI/JCLCloseUI" msgid "Operation Policy" msgstr "操作策略" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "选项“%s”不能通过 %%%%IncludeFeature 引用。" msgid "Options Installed" msgstr "已安装选项" msgid "Options:" msgstr "选项:" msgid "Other Media" msgstr "其他介质" msgid "Other Tray" msgstr "其他托盘" msgid "Out of date PPD cache file." msgstr "过时的 PPD 缓存文件。" msgid "Out of memory." msgstr "内存耗尽。" msgid "Output Mode" msgstr "输出模式" msgid "PCL Laser Printer" msgstr "PCL 激光打印机" msgid "PRC16K" msgstr "中国大陆 16 开" msgid "PRC16K Long Edge" msgstr "中国大陆 16 开 长边" msgid "PRC32K" msgstr "中国大陆 32 开" msgid "PRC32K Long Edge" msgstr "中国大陆 32 开 长边" msgid "PRC32K Oversize" msgstr "中国大陆大 32 开" msgid "PRC32K Oversize Long Edge" msgstr "中国大陆大 32 开 长边" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "PRINTER 环境变量所指定的默认目标不存在。" msgid "Packet does not contain a Get-Response-PDU" msgstr "包裹中未包含 Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "包裹未使用 SEQUENCE 开头" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "请输入 %2$s 上 %1$s 的密码 " msgid "Pause Class" msgstr "暂停类" msgid "Pause Printer" msgstr "暂停打印机" msgid "Peel-Off" msgstr "剥片" msgid "Photo" msgstr "照片" msgid "Photo Labels" msgstr "照片标签" msgid "Plain Paper" msgstr "普通纸" msgid "Policies" msgstr "策略" msgid "Port Monitor" msgstr "端口监视器" msgid "PostScript Printer" msgstr "PostScript 打印机" msgid "Postcard" msgstr "美国明信片 (Postcard)" msgid "Postcard Double" msgstr "美国明信片双倍 (Postcard Double)" msgid "Postcard Double Long Edge" msgstr "美国明信片双倍 (Postcard Double) 长边" msgid "Postcard Long Edge" msgstr "美国明信片 (Postcard) 长边" msgid "Preparing to print." msgstr "正在准备打印。" msgid "Print Density" msgstr "打印密度" msgid "Print Job:" msgstr "打印任务:" msgid "Print Mode" msgstr "打印模式" msgid "Print Quality" msgstr "打印质量" msgid "Print Rate" msgstr "打印频率" msgid "Print Self-Test Page" msgstr "打印自检页" msgid "Print Speed" msgstr "打印速度" msgid "Print Test Page" msgstr "打印测试页" msgid "Print and Cut" msgstr "打印和裁剪" msgid "Print and Tear" msgstr "打印和撕纸" msgid "Print file sent." msgstr "已发送打印文件。" msgid "Print job canceled at printer." msgstr "打印任务在打印机端被取消。" msgid "Print job too large." msgstr "打印任务太大。" msgid "Print job was not accepted." msgstr "打印任务被拒绝。" #, c-format msgid "Printer \"%s\" already exists." msgstr "打印机“%s”已存在。" msgid "Printer Added" msgstr "已添加打印机" msgid "Printer Default" msgstr "打印机默认值" msgid "Printer Deleted" msgstr "已删除打印机" msgid "Printer Modified" msgstr "已编辑打印机" msgid "Printer Paused" msgstr "打印机已暂停" msgid "Printer Settings" msgstr "打印机设置" msgid "Printer cannot print supplied content." msgstr "打印机无法打印所提供的内容。" msgid "Printer cannot print with supplied options." msgstr "打印机无法使用所提供的选项打印。" msgid "Printer does not support required IPP attributes or document formats." msgstr "打印机不支持必要的 IPP 属性或文档格式。" msgid "Printer:" msgstr "打印机:" msgid "Printers" msgstr "打印机" #, c-format msgid "Printing page %d, %u%% complete." msgstr "正在打印第 %d 页,已完成 %u%%。" msgid "Punch" msgstr "冲压" msgid "Quarto" msgstr "美国四分 (Quarto)" msgid "Quota limit reached." msgstr "已达到限额上限。" # Bug report to be opened at upstream: # - Not using Tab for formatting. # - Will mess up on CJK and double-width environments. msgid "Rank Owner Job File(s) Total Size" msgstr "排序 所有者 任务 文件 总大小" msgid "Reject Jobs" msgstr "拒绝任务" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "远程主机未接受控制文件 (%d)。" #, c-format msgid "Remote host did not accept data file (%d)." msgstr "远程主机未接受数据文件 (%d)。" msgid "Reprint After Error" msgstr "错误后重新打印" msgid "Request Entity Too Large" msgstr "请求的条目过大" msgid "Resolution" msgstr "分辨率" msgid "Resume Class" msgstr "继续类" msgid "Resume Printer" msgstr "继续打印机" msgid "Return Address" msgstr "返回地址" msgid "Rewind" msgstr "回退" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE 使用不定长度" msgid "SSL/TLS Negotiation Error" msgstr "SSL/TLS 协商错误" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "查看其他" msgid "See remote printer." msgstr "查看远程打印机。" msgid "Self-signed credentials are blocked." msgstr "禁止使用自签发的凭据。" msgid "Sending data to printer." msgstr "正在向打印机发送数据。" msgid "Server Restarted" msgstr "服务器已重启" msgid "Server Security Auditing" msgstr "服务器安全审计" msgid "Server Started" msgstr "服务器已启动" msgid "Server Stopped" msgstr "服务器已停止" msgid "Server credentials not set." msgstr "未设置服务器凭据。" msgid "Service Unavailable" msgstr "服务不可用" msgid "Set Allowed Users" msgstr "设置允许的用户" msgid "Set As Server Default" msgstr "设置为服务器默认值" msgid "Set Class Options" msgstr "设置类选项" msgid "Set Printer Options" msgstr "设置打印机选项" msgid "Set Publishing" msgstr "设置出版" msgid "Shipping Address" msgstr "邮寄地址" msgid "Short-Edge (Landscape)" msgstr "短边翻转 (横版)" msgid "Special Paper" msgstr "特殊纸张" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "正在转存任务,已完成 %.0f%%。" msgid "Standard" msgstr "标准" msgid "Staple" msgstr "装订" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "起始横幅" #, c-format msgid "Starting page %d." msgstr "正在开始第 %d 页。" msgid "Statement" msgstr "美国声明 (Statement)" #, c-format msgid "Subscription #%d does not exist." msgstr "订阅 #%d 不存在。" msgid "Substitutions:" msgstr "替代:" msgid "Super A" msgstr "美国相纸 (Super) A" msgid "Super B" msgstr "美国相纸 (Super) B" msgid "Super B/A3" msgstr "美国相纸 (Super) B/A3" msgid "Switching Protocols" msgstr "正在切换协议" msgid "Tabloid" msgstr "美国小报 (Tabloid)" msgid "Tabloid Oversize" msgstr "美国小报 (Tabloid) 加大" msgid "Tabloid Oversize Long Edge" msgstr "美国小报 (Tabloid) 加大 长边" msgid "Tear" msgstr "撕纸" msgid "Tear-Off" msgstr "撕纸" msgid "Tear-Off Adjust Position" msgstr "调整撕纸位置" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "打印任务必须带有“%s”属性。" #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "属性 %s 不能和 job-id 一同提供。" #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "任务状态属性“%s”不能与任务创建请求一同提供。" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "操作属性“%s”不能与 Create-Job 请求一同提供。" #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "找不到 PPD 文件“%s”。" #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "无法打开 PPD 文件“%s”:%s" msgid "The PPD file could not be opened." msgstr "无法打开 PPD 文件。" msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "类名最多可包含 127 可打印字符,不能包含空格、斜杠 (/) 或井号 (#)。" msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "notify-lease-duration 属性不可用于任务订阅。" #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "notify-user-data 值过大 (%d > 63 八位值)。" msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "打印机配置不正确或打印机已不存在。" msgid "The printer did not respond." msgstr "打印机无响应。" msgid "The printer is in use." msgstr "打印机正在使用中。" msgid "The printer is not connected." msgstr "打印机未连接。" msgid "The printer is not responding." msgstr "打印机无响应。" msgid "The printer is now connected." msgstr "打印机已连接。" msgid "The printer is now online." msgstr "打印机在线。" msgid "The printer is offline." msgstr "打印机离线。" msgid "The printer is unreachable at this time." msgstr "打印机暂时无法访问。" msgid "The printer may not exist or is unavailable at this time." msgstr "打印机暂时不存在或不可用。" msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" "打印机名称最多能包含 127 个可打印字符,但不可包含空格,斜杠 (/ 或 \\),引号 " "(' 或 \"),问号 (?)或井号 (#)。" msgid "The printer or class does not exist." msgstr "打印机或类不存在。" msgid "The printer or class is not shared." msgstr "打印机或类未共享。" #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "printer-uri“%s”包含无效字符。" msgid "The printer-uri attribute is required." msgstr "必须提供 printer-uri 属性。" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "printer-uri 必须使用如下格式:“ipp://HOSTNAME/classes/CLASSNAME”。" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "printer-uri 必须使用如下格式:“ipp://HOSTNAME/printers/PRINTERNAME”。" msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "网页界面当前被禁用。运行“cupsctl WebInterface=yes”来启用。" #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "不支持的 which-jobs 值“%s”。" msgid "There are too many subscriptions." msgstr "订阅过多。" msgid "There was an unrecoverable USB error." msgstr "遇到了不可恢复的 USB 错误。" msgid "Thermal Transfer Media" msgstr "热敏介质" msgid "Too many active jobs." msgstr "活动任务过多。" #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "job-sheets 值过多 (%d > 2)。" #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "printer-state-reasons 值过多 (%d > %d)。" msgid "Transparency" msgstr "透明度" msgid "Tray" msgstr "托盘" msgid "Tray 1" msgstr "托盘 1" msgid "Tray 2" msgstr "托盘 2" msgid "Tray 3" msgstr "托盘 3" msgid "Tray 4" msgstr "托盘 4" msgid "Trust on first use is disabled." msgstr "初次使用信任已禁用。" msgid "URI Too Long" msgstr "URI 过长" msgid "URI too large" msgstr "URI 过大" msgid "US Fanfold" msgstr "美国连张 (Fanfold)" msgid "US Ledger" msgstr "美国账簿 (Ledger)" msgid "US Legal" msgstr "美国法律 (Legal)" msgid "US Legal Oversize" msgstr "美国法律 (Legal) 加大" msgid "US Letter" msgstr "美国信纸 (Letter)" msgid "US Letter Long Edge" msgstr "美国信纸 (Letter) 长边" msgid "US Letter Oversize" msgstr "美国信纸 (Letter) 加大" msgid "US Letter Oversize Long Edge" msgstr "美国信纸 (Letter) 加大 长边" msgid "US Letter Small" msgstr "美国信纸 (Letter) 小号" msgid "Unable to access cupsd.conf file" msgstr "无法访问 cupsd.conf 文件。" msgid "Unable to access help file." msgstr "无法访问帮助文件。" msgid "Unable to add class" msgstr "无法添加类" msgid "Unable to add document to print job." msgstr "无法向打印任务添加文档。" #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "无法向目标“%s”添加任务。" msgid "Unable to add printer" msgstr "无法添加打印机" msgid "Unable to allocate memory for file types." msgstr "无法为文件类型分配内存。" msgid "Unable to allocate memory for page info" msgstr "无法为页面信息分配内存" msgid "Unable to allocate memory for pages array" msgstr "无法为页面组分配内存" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "无法取消打印任务。" msgid "Unable to change printer" msgstr "无法更换打印机" msgid "Unable to change printer-is-shared attribute" msgstr "无法更改 printer-is-shared 属性" msgid "Unable to change server settings" msgstr "无法更改服务器选项" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "无法编译 mimeMediaType 正则表达式:%s。" #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "无法编译 naturalLanguage 正则表达式:%s。" msgid "Unable to configure printer options." msgstr "无法配置打印机选项。" msgid "Unable to connect to host." msgstr "无法连接主机。" msgid "Unable to contact printer, queuing on next printer in class." msgstr "无法联系打印机,已列队于类中的下一台打印机。" #, c-format msgid "Unable to copy PPD file - %s" msgstr "无法复制 PPD 文件 — %s" msgid "Unable to copy PPD file." msgstr "无法复制 PPD 文件。" msgid "Unable to create credentials from array." msgstr "无法从打印组创建服务器凭据。" msgid "Unable to create printer-uri" msgstr "无法创建 printer-uri。" msgid "Unable to create printer." msgstr "无法创建打印机。" msgid "Unable to create server credentials." msgstr "无法创建服务器凭据。" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "无法创建临时文件" msgid "Unable to delete class" msgstr "无法删除类" msgid "Unable to delete printer" msgstr "无法删除打印机" msgid "Unable to do maintenance command" msgstr "无法执行维护命令" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "无法编辑大小超过 1MB 的 cupsd.conf 文件" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "无法建立到主机的安全连接 (无效证书链)。" msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "无法建立到主机的安全连接 (证书尚未生效)。" msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "无法建立到主机的安全连接 (证书已过期)。" msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "无法建立到主机的安全连接 (主机名不匹配)。" msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "无法建立到主机的安全连接 (对方在回复前断开连接)。" msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "无法建立到主机的安全连接 (自签发证书)。" msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "无法建立到主机的安全连接 (未信任的证书)。" msgid "Unable to establish a secure connection to host." msgstr "无法建立到主机的安全连接。" #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "找不到任务目的地" msgid "Unable to find printer." msgstr "找不到打印机。" msgid "Unable to find server credentials." msgstr "找不到服务器凭据。" msgid "Unable to get backend exit status." msgstr "无法获取后端退出状态。" msgid "Unable to get class list" msgstr "无法获取类列表" msgid "Unable to get class status" msgstr "无法获取类状态" msgid "Unable to get list of printer drivers" msgstr "无法获取打印机驱动列表" msgid "Unable to get printer attributes" msgstr "无法获取打印机属性" msgid "Unable to get printer list" msgstr "无法获取打印机列表" msgid "Unable to get printer status" msgstr "无法获取打印机状态" msgid "Unable to get printer status." msgstr "无法获取打印机状态。" msgid "Unable to load help index." msgstr "无法载入帮助索引。" #, c-format msgid "Unable to locate printer \"%s\"." msgstr "无法定位打印机“%s”。" msgid "Unable to locate printer." msgstr "无法定位打印机。" msgid "Unable to modify class" msgstr "无法编辑类" msgid "Unable to modify printer" msgstr "无法编辑打印机" msgid "Unable to move job" msgstr "无法移动任务" msgid "Unable to move jobs" msgstr "无法移动任务" msgid "Unable to open PPD file" msgstr "无法打开 PPD 文件" msgid "Unable to open cupsd.conf file:" msgstr "无法打开 cupsd.conf 文件:" msgid "Unable to open device file" msgstr "无法打开设备文件" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "无法打开任务 #%2$d 中的文档 #%1$d。" msgid "Unable to open help file." msgstr "无法打开帮助文件。" msgid "Unable to open print file" msgstr "无法打开打印文件" msgid "Unable to open raster file" msgstr "无法打开栅格文件" msgid "Unable to print test page" msgstr "无法打印测试页" msgid "Unable to read print data." msgstr "无法读取打印数据。" #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "无法重命名任务文档。" msgid "Unable to resolve printer-uri." msgstr "无法解析 printer-uri。" # "Unable to read file" perhaps? msgid "Unable to see in file" msgstr "无法读取文件" msgid "Unable to send command to printer driver" msgstr "无法向打印机驱动发送命令" msgid "Unable to send data to printer." msgstr "无法向打印机发送数据。" msgid "Unable to set options" msgstr "无法设置选项" msgid "Unable to set server default" msgstr "无法设置服务器默认值" msgid "Unable to start backend process." msgstr "无法启动后端进程。" msgid "Unable to upload cupsd.conf file" msgstr "无法上传 cupsd.conf 文件" msgid "Unable to use legacy USB class driver." msgstr "无法使用老式 USB 类驱动。" msgid "Unable to write print data" msgstr "无法写入打印数据" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "无法写入已解包的打印数据:%s" msgid "Unauthorized" msgstr "未认证" msgid "Units" msgstr "单元" msgid "Unknown" msgstr "未知" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "选项“%2$s”带有未知选择“%1$s”。" #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "未知加密选项值:“%s”。" #, c-format msgid "Unknown file order: \"%s\"." msgstr "未知文件排序:“%s”。" #, c-format msgid "Unknown format character: \"%c\"." msgstr "未知格式字符:“%c”。" msgid "Unknown hash algorithm." msgstr "未知哈希值算法。" msgid "Unknown media size name." msgstr "未知介质尺寸名。" #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "带有值“%2$s”的未知选项“%1$s”。" #, c-format msgid "Unknown option \"%s\"." msgstr "未知选项“%s”。" #, c-format msgid "Unknown print mode: \"%s\"." msgstr "未知打印模式:“%s”。" #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "未知 printer-error-policy“%s”。" #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "未知 printer-op-policy“%s”。" msgid "Unknown request method." msgstr "未知请求方式。" msgid "Unknown request version." msgstr "未知请求版本。" msgid "Unknown scheme in URI" msgstr "URI 中含有未知方案" msgid "Unknown service name." msgstr "未知服务名称。" #, c-format msgid "Unknown version option value: \"%s\"." msgstr "未知版本选项值:“%s”。" #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "不支持的“compression”值“%s”。" #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "不支持的“document-format”值“%s”。" msgid "Unsupported 'job-hold-until' value." msgstr "不支持的“job-hold-until”值。" msgid "Unsupported 'job-name' value." msgstr "不支持的“job-name”值。" #, c-format msgid "Unsupported character set \"%s\"." msgstr "不支持的字符集“%s”。" #, c-format msgid "Unsupported compression \"%s\"." msgstr "不支持的压缩算法“%s”。" #, c-format msgid "Unsupported document-format \"%s\"." msgstr "不支持的 document-format“%s”。" #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "不支持的 document-format“%s/%s”。" #, c-format msgid "Unsupported format \"%s\"." msgstr "不支持的格式“%s”。" msgid "Unsupported margins." msgstr "不支持的边界。" msgid "Unsupported media value." msgstr "不支持的介质值。" #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "不支持的 number-up 值 %d,将使用 number-up=1。" #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "不支持的 number-up-layout 值 %s,将使用 number-up-layout=lrtb。" #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "不支持的 page-border 值 %s,将使用 page-border=none。" msgid "Unsupported raster data." msgstr "不支持的栅格化数据。" msgid "Unsupported value type" msgstr "不支持的值类型" msgid "Upgrade Required" msgstr "需要升级" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "用法:%s job-id user title copies options [file]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "用法:cupsctl [options] [param=value ... paramN=valueN]" msgid "Usage: cupsd [options]" msgstr "用法:cupsd [options]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "用法:cupsfilter [ options ] [ -- ] filename" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "用法:\tippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " \tippfind [options] name[.regtype[.domain.]] ... [expression]\n" " \tippfind --help\n" " \tippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "用法:ipptool [options] URI filename [ ... filenameN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "用法:ppdc [options] filename.drv [ ... filenameN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "用法:ppdhtml [options] filename.drv >filename.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "用法:ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "用法:ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "用法:ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "用法:snmp [host-or-ip-address]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Value 使用不定长度" msgid "VarBind uses indefinite length" msgstr "VarBind 使用不定长度" msgid "Version uses indefinite length" msgstr "Version 使用不定长度" msgid "Waiting for job to complete." msgstr "正在等待任务完成。" msgid "Waiting for printer to become available." msgstr "正在等待打印机变得可用。" msgid "Waiting for printer to finish." msgstr "正在等待打印机完成任务。" msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "网页界面被禁用" msgid "Yes" msgstr "是" msgid "You cannot access this page." msgstr "你无法访问此页面。" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "你必须通过此 URL 访问此页面:https://%s:%d%s" msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "ZPL 标签打印机" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "已中止" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "已取消" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "已完成" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "无法执行 cups-deviced。" msgid "cups-driverd failed to execute." msgstr "无法执行 cups-driverd。" #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl:无法连接服务器:%s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl:未知选项“%s”" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl:未知选项“-%c”" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd:“-c”选项后预期配置文件名。" msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "cupsd:“-s”选项后预期 cups-files.conf 文件名。" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "cupsd:未编译按需 (on-demand) 支持,使用一般模式运行。" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd:不允许相对 cups-files.conf 文件名。" msgid "cupsd: Unable to get current directory." msgstr "cupsd:无法获取当前目录。" msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd:无法获取 cups-files.conf 文件的路径。" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd:未知参数“%s”- 已中止。" #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd:未知选项“%c”- 已中止。" #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter:无效文档数 %d。" #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter:无效任务 ID %d。" msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter:只能指定一个文件名。" #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter:无法获取任务文件 — %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd:不能同时使用 -q 和 -v 选项。" msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd:不能同时使用 -v 和 -q 选项。" #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "用于 %s/%s 的设备:%s" #, c-format msgid "device for %s: %s" msgstr "用于 %s 的设备:%s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index 使用不定长度" msgid "error-status uses indefinite length" msgstr "error-status 使用不定长度" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "保持" msgid "help\t\tGet help on commands." msgstr "帮助\t\t获取关于命令的帮助。" msgid "idle" msgstr "空闲" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind:无效的正则表达式:%s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind:不能在 --or 后使用 --and。" #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind:在 %s 后预期键名。" #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind:在 %s 后预期端口范围。" #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind:在 %s 后预期程序。" #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind:在 %s 后预期分号。" msgid "ippfind: Missing close brace in substitution." msgstr "ippfind:替换操作后缺少右花括号。" msgid "ippfind: Missing close parenthesis." msgstr "ippfind:缺少右括号。" msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind:“--and”前缺少表达式。" msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind:“--or”前缺少表达式。" #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind:在 %s 后缺少键名。" #, c-format msgid "ippfind: Missing name after %s." msgstr "ippfind:%s 后缺少名称。" msgid "ippfind: Missing open parenthesis." msgstr "ippfind:缺少左括号。" #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind:在 %s 后缺少程序。" #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind:在 %s 后缺少正则表达式。" #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind:在 %s 后缺少分号。" msgid "ippfind: Out of memory." msgstr "ippfind:内存不足。" msgid "ippfind: Too many parenthesis." msgstr "ippfind:括号过多。" #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind:无法浏览或解析:%s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind:无法执行“%s”:%s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind:无法使用 Bonjour:%s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind:未知变量“{%s}”。" msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "ipptool:“-i”和“-n”不能与“--ippserver”,“-P”和“-X”混用。" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "ipptool:“-i”和“-n”不能与“-P”和“-X”混用。" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "ipptool:无效的 URI “%s”。" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool:“-i”选项后指定的秒数无效。" msgid "ipptool: May only specify a single URI." msgstr "ipptool:只能指定一个 URI。" msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool:“-n”选项后缺少数量。" msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "ipptool:“--ippserver”选项后缺少文件名。" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool:“-f”选项后缺少文件名。" msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool:“-d”选项后缺少 name=value 声明。" msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool:“-i”选项后缺少秒数。" msgid "ipptool: URI required before test file." msgstr "ipptool:测试文件前需要 URI。" #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "缺少 job-printer-uri 属性。" #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin:类名中只能包含可打印字符。" #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "lpadmin:“-%c”选项后预期 PPD。" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin:“-u”选项后预期 allow/deny:userlist 表达式。" msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin:“-r”选项后预期类。" msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin:“-c”选项后预期类名称。" msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin:“-D”选项后预期描述。" msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin:“-v”选项后预期设备 URI。" msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin:“-I”选项后预期文件类型。" msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin:“-h”选项后预期主机名。" msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin:“-L”选项后预期位置。" msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin:“-m”选项后预期型号。" msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin:“-R”选项后预期名称。" msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin:“-o”选项后预期 name=value 表达式。" msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin:“-p”选项后预期打印机。" msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin:“-d”选项后预期打印机名称。" msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin:“-x”选项后预期打印机或类。" msgid "lpadmin: No member names were seen." msgstr "lpadmin:未找到成员名称。" #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin:打印机 %s 已经是类 %s 中的成员。" #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin:打印机 %s 不是类 %s 中的成员。" msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "lpadmin:打印机驱动已被弃用,未来的 CUPS 版本可能破坏其功能性。" msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin:打印机名称中只能包含可打印字符。" msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "lpadmin:原始序列已被弃用,未来的 CUPS 版本可能破坏其功能性。" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "lpadmin:macOS 已不再支持原始序列。" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "lpadmin:由于安全原因,已不再支持 System V 接口脚本。" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin:无法将打印机添加到类:\n" " 你必须先指定打印机名称。" #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin:无法连接到服务器:%s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin:无法创建临时文件" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin:无法删除选项:\n" " 你必须先指定打印机名称。" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "lpadmin:无法打开 PPD“%1$s”:在行 %3$d 中的 %2$s。" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin:无法从类删除打印机:\n" " 你必须先指定打印机名称。" msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin:无法设置打印机选项:\n" " 你必须先指定打印机名称。" #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin:未知允许/拒绝选项“%s”。" #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin:未知参数“%s”。" #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin:未知选项“%c”。" msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "lpadmin:为共享的打印机使用“everywhere”模型。" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin:警告 — 内容类型列表已被忽略。" msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "lpinfo:“--device-id”选项后预期 1284 设备 ID 字串。" msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo:“--language”选项后预期语言。" msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo:“--make-and-model”选项后预期生产商和型号。" msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo:“--product”选项后预期产品。" msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo:“--exclude-schemes”选项后预期方案列表。" msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo:“--include-schemes”选项后预期方案列表。" msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo:“--timeout”选项后预期超时。" #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove:无法连接到服务器:%s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove:未知参数“%s”。" msgid "lpoptions: No printers." msgstr "lpoptions:没有打印机。" #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions:无法添加打印机或实例:%s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions:无法为 %s 获取 PPD 文件:%s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions:无法为 %s 打开 PPD 文件。" msgid "lpoptions: Unknown printer or class." msgstr "lpoptions:未知打印机或类。" #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "lpstat:错误 — %s 环境变量指定了不存在的目的地“%s”。" #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "类 %s 的成员:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "无条目" msgid "no system default destination" msgstr "无系统默认目标" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "未指定 notify-events。" #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI“%s”已被占用。" #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI“%s”使用了未知方案。" #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "正在等待" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc:正在添加包含目录“%s”。" #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc:正在从 %s 添加/更新 UI 文本。" #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含无效布里值 (%1$s)。" #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc:无效的字体属性:%s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含无效分辨率名称“%1$s”。" #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含无效状态关键词 %1$s。" #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含无效变量替代 %1$c。" #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中找到不带有 Option 的 Choice。" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含重复的为地域 %1$s 提供的 #po。" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期滤镜定义。" #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期程序名。" #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期布里值。" #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Font 声明后预期字符集。" #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期选择代码。" #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期选择名称/文本。" #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 ColorModel 的颜色顺序。" #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 ColorMode 的色彩空间。" #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 ColorMode 的压缩模式。" #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 UIConstraints 的限制字符串。" #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc:共 %2$s 行中的第 %1$d 行中在 DriverType 声明后预期驱动类型关键词。" #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Duplex 声明后预期双面打印类型。" #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Font 声明后预期编码类型。" #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中在 #po %1$s 声明后预期文件名。" #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期组名称/文本。" #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期引用文件名。" #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期整数。" #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 #po 声明后预期地域值。" #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中在 %1$s 后预期名称。" #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 FileName 声明后预期名称。" #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Font 声明后预期名称。" #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Manufacturer 声明后预期名称。" #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 MediaSize 声明后预期名称。" #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 ModelName 声明后预期名称。" #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 PCFileName 声明后预期名称。" #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中在 %1$s 声明后预期名称/文本。" #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Installable 声明后预期名称/文本。" #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Resolution 声明后预期名称/文本。" #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc:共 %2$s 行中的第 %1$d 行中在 ColorModel 声明后预期名称/文本组合。" #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期选项名称/文本。" #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期选项节。" #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期选项类型。" #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Resolution 声明后预期覆盖项。" #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期引号中的字符串。" #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期实数。" #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc:共 %2$s 行中的第 %1$d 行中在 ColorProfile 声明后预期分辨率/介质类型。" #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc:共 %2$s 行中的第 %1$d 行中在 SimpleColorProfile 声明后预期分辨率/介质类" "型。" #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中在 %1$s 声明后预期选择器。" #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中在 Font 声明后预期状态。" #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 Copyright 声明后的字符串。" #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 Version 声明后的字符串。" #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期两个选项名。" #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中 %1$s 后预期值。" #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中预期 Font 声明后的版本号。" #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc:无效的 #include/#po 文件名“%s”。" #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中滤镜值无效。" #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中滤镜 MIME 类型无效且为空。" #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中滤镜程序名无效且为空。" #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中含有无效选项节“%1$s”。" #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中含有无效选项类型“%1$s”。" #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc:正在载入驱动信息文件“%s”。" #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc:正在载入地域“%s”的消息文本。" #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc:正在从“%s”载入消息文本。" #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc:在“%s”结尾缺少 #endif。" #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中缺少 #if。" #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中,在任何翻译字串前需要 msgid 行。" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc:未给地域 %s 提供消息文本目录。" #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中选项 %1$s 在两个不同的组中被定义。" #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中选项 %1$s 被重定义为另一个类型。" #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中选项制约必须包含 *name 声明。" #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中包含太多嵌套的 #if。" #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc:无法创建 PPD 文件“%s” — %s。" #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc:无法创建输出目录 %s:%s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc:无法创建输出管道:%s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc:无法执行 cupstestppd:%s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中找不到 #po 文件 %1$s。" #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中找不到引用的文件“%1$s”。" #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc:无法为“%s”找到本地化文件 — %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc:无法载入本地化文件“%s” — %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc:无法打开 %s:%s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中含有未定义的变量 (%1$s)。" #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc:共 %2$s 行中的第 %1$d 行中含有未预期的文本。" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含未知驱动类型 %1$s。" #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中含有未知双面打印类型“%1$s”。" #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含未知媒体大小“%1$s”。" #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc:用于“%s”的消息文本目录格式未知。" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中找到未知令牌“%1$s”。" #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中实数“%1$s”后找到未知尾随字符。" #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc:共 %3$s 行中的第 %2$d 行中包含未终止的字符串,开头为 %1$c。" #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc:警告 — 重复的文件名“%s”。" #, c-format msgid "ppdc: Writing %s." msgstr "ppdc:正在写入 %s。" #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc:正在将 PPD 文件写入到路径“%s”。" #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge:在 %2$s 中包含无效的 LanguageVersion“%1$s”。" #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge:正在忽略 PPD 文件 %s。" #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge:无法将 %s 备份至 %s — %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "打印机 %s 从 %s 开始被禁用 -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "打印机 %s 正在保留新任务。从 %s 开始启用" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "打印机 %s 目前空闲。从 %s 开始启用" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "打印机 %s 正在打印 %s-%d。从 %s 开始启用" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "打印机 %s/%s 从 %s 开始被禁用 -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "打印机 %s/%s 目前空闲。从 %s 开始启用" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "打印机 %s/%s 正在打印 %s-%d。从 %s 开始启用" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "正在处理" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "请求 ID 为 %s-%d (%d 个文件)" msgid "request-id uses indefinite length" msgstr "request-id 使用不定长度" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "调度器未运行" msgid "scheduler is running" msgstr "调度器正在运行" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "为 %s 运行 stat 失败:%s" msgid "status\t\tShow status of daemon and queue." msgstr "状态\t\t显示守护程序和队列的状态。" #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "已停止" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "系统默认目标:%s" #, c-format msgid "system default destination: %s/%s" msgstr "系统默认目标:%s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "未知" msgid "untitled" msgstr "无标题" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings 使用不定长度" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "~/.cups/lpoptions 文件所指定的默认目标不存在。" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "需要 Samba 密码以导出打印机驱动" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "需要 Samba 用户名以导出打印机驱动" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "将打印机导出到 Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl:无法直接设置 Listen 或 Port 值。" #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin:无法打开 PPD 文件“%s”- %s" cups-2.4.7/locale/cups_ru.po0000644000175000017500000127757514502571342015670 0ustar zdohnalzdohnalmsgid "" msgstr "" "Project-Id-Version: CUPS 2.0\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2015-01-28 12:00-0800\n" "Last-Translator: Aleksandr Proklov\n" "Language-Team: Russian - PuppyRus Linux Team\n" "Language: Russian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "\t\t(все)" msgid "\t\t(none)" msgstr "\t\t(нет)" #, c-format msgid "\t%d entries" msgstr "\tзаписей: %d" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tПосле ошибки: продолжить" #, c-format msgid "\tAlerts: %s" msgstr "\tПредупреждения: %s" msgid "\tBanner required" msgstr "\tТребуется баннер" msgid "\tCharset sets:" msgstr "\tНабор символов устанавливает:" msgid "\tConnection: direct" msgstr "\tПодключение: прямое" msgid "\tConnection: remote" msgstr "\tПодключение: удаленное" msgid "\tContent types: any" msgstr "\tТип содержимого: любой" msgid "\tDefault page size:" msgstr "\tРазмер страницы по умолчанию:" msgid "\tDefault pitch:" msgstr "\tВысота по умолчанию:" msgid "\tDefault port settings:" msgstr "\tНастройки порта по умолчанию:" #, c-format msgid "\tDescription: %s" msgstr "\tОписание: %s" msgid "\tForm mounted:" msgstr "\tФорма подключения:" msgid "\tForms allowed:" msgstr "\tРазрешенные формы:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tИнтерфейс: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tИнтерфейс: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tРасположение: %s" msgid "\tOn fault: no alert" msgstr "\tПри ошибке: не выводить предупреждение" msgid "\tPrinter types: unknown" msgstr "\tТип принтера: неизвестен" #, c-format msgid "\tStatus: %s" msgstr "\tСтатус: %s" msgid "\tUsers allowed:" msgstr "\tРазрешенные пользователи:" msgid "\tUsers denied:" msgstr "\tЗапрещенные пользователи:" msgid "\tdaemon present" msgstr "\tдемон присутствует" msgid "\tno entries" msgstr "\tнет записей" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tпринтер на скорости -1 устройства «%s»" msgid "\tprinting is disabled" msgstr "\tпечать отключена" msgid "\tprinting is enabled" msgstr "\tпечать включена" #, c-format msgid "\tqueued for %s" msgstr "\tочередь для %s" msgid "\tqueuing is disabled" msgstr "\tочередь отключена" msgid "\tqueuing is enabled" msgstr "\tочередь включена" msgid "\treason unknown" msgstr "\tпричина неизвестна" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " ПОДРОБНЫЕ РЕЗУЛЬТАТЫ ТЕСТА СООТВЕТСТВИЯ" msgid " REF: Page 15, section 3.1." msgstr " REF: Стр. 15, раздел 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Стр. 15, раздел 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Стр. 19, раздел 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Стр. 20, раздел 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Стр. 27, раздел 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Стр. 42, раздел 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Стр. 16-17, раздел 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Стр. 42-45, раздел 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Стр. 45-46, раздел 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Стр. 48-49, раздел 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Стр. 52-54, раздел 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f байт" #, c-format msgid " PASS Default%s" msgstr " PASS Default%s" msgid " PASS DefaultImageableArea" msgstr " PASS DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " PASS DefaultPaperDimension" msgid " PASS FileVersion" msgstr " PASS FileVersion" msgid " PASS FormatVersion" msgstr " PASS FormatVersion" msgid " PASS LanguageEncoding" msgstr " PASS LanguageEncoding" msgid " PASS LanguageVersion" msgstr " PASS LanguageVersion" msgid " PASS Manufacturer" msgstr " PASS Manufacturer" msgid " PASS ModelName" msgstr " PASS ModelName" msgid " PASS NickName" msgstr " PASS NickName" msgid " PASS PCFileName" msgstr " PASS PCFileName" msgid " PASS PSVersion" msgstr " PASS PSVersion" msgid " PASS PageRegion" msgstr " PASS PageRegion" msgid " PASS PageSize" msgstr " PASS PageSize" msgid " PASS Product" msgstr " PASS Product" msgid " PASS ShortNickName" msgstr " PASS ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr "\tWARN\t%s не содержит соответствующих параметров." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" "\tWARN\t%s использует общий префикс совместно с %s\n" " REF: Стр. 15, раздел 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" "\tWARN\tКлючевое слово параметра дуплекса %s может привести к некорректным " "результатам. Используйте имя 'Duplex'\n" " REF: Стр. 122, раздел 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "\tWARN\tФайл содержит комбинацию окончаний строки CR, LF, CR LF" msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" "\tWARN\tLanguageEncoding требуется спецификацией PPD 4.3.\n" " REF: Стр. 56-57, раздел 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr "\tWARN\tСтрока %d содержит только пробелы." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" "\tWARN\tManufacturer требуется спецификацией PPD 4.3.\n" " REF: Стр. 58-59, раздел 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" "\tWARN\tPPD-файлы не из Windows должны использовать строки только с " "окончанием LF, а не с CR LF" #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" "\tWARN\tУстаревшая версия PPD %.1f.\n" " REF: Стр. 42, раздел 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" "\tWARN\tPCFileName длиннее чем 8.3 нарушает спецификацию PPD.\n" " REF: Стр. 61-62, раздел 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" "\tWARN\tPCFilename должен содержать уникальное название\n" " REF: Стр. 61-62, раздел 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" "\tWARN\tProtocols содержит PJL, но атрибуты JCL не настроены.\n" " REF: Стр. 78-79, раздел 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" "\tWARN\tProtocols содержит PJL и BCP; ожидается TBCP.\n" " REF: Стр. 78-79, раздел 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" "\tWARN\tShortNickName требуется спецификацией PPD 4.3.\n" " REF: Стр. 64-65, раздел 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" "\t%s \"%s %s\" конфликтует с \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr "\t%s %s %s не существует." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "\t%s %s файл \"%s\" имеет неверный регистр." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" "\t%s Неверный %s выбор %s.\n" " REF: Стр. 122, раздел 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "\t%s Неверный перевод UTF-8 \"%s\" для параметра %s, выбора %s" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "\t%s Неверный перевод UTF-8 \"%s\" для параметра %s" #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr "\t%s Неверное значение cupsFilter \"%s\"." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr "\t%s Неверное значение cupsFilter2 \"%s\"." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr "\t%s Неверный cupsICCProfile %s." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr "\t%s Неверное значение cupsPreFilter \"%s\"." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr "\t%s Неверное значение cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Bad language \"%s\"." msgstr "\t%s Неверный язык \"%s\"." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr "\t%s Неверные права %s для файла \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s Ошибки в %s - должно быть %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "\t%s Невозможно предоставить APScanAppPath и APScanAppBundleID вместе." #, c-format msgid " %s Default choices conflicting." msgstr "\t%s\tЗначения, используемые по умолчанию, конфликтуют." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s Пустой cupsUIConstraints %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "\t%s Перевод \"%s\" отсутствует для параметра %s, выбора %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr "" #, c-format msgid " %s Missing %s file \"%s\"." msgstr "\t%s отсутствует %s файл \"%s\"." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" "\t%s Обязательный параметр PageRegion отсутствует.\n" "\t\t REF: Стр. 100, раздел 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" "\t%s Обязательный параметр PageSize отсутствует.\n" " REF: Стр. 99, раздел 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Выбор *%s %s отсутствует в UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Выбор *%s %s отсутствует в cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr "\t%s cupsUIResolver отсутствует %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "\t%s Отсутствует параметр %s у UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "\t%s Отсутствует параметр %s у cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr "\t%s Основной перевод \"%s\" не включен в файл." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" "\t ТРЕБУЕТСЯ %s: %s не определяет выбор \"Нет\".\n" " REF: Стр. 122, раздел 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "\t%s Размер \"%s\" определен для %s, но не определен для %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "\t%s Размер \"%s\" имеет неверное значение (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr "\t%s Размер \"%s\" должен быть \"%s\"." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "\t%s Размер \"%s\" должен быть в формате Adobe standard name \"%s\"." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr "\tХеш-значение %s cupsICCProfile %s конфликтует с %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr "\t%s cupsUIResolver %s создает цикл." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "\t%s В cupsUIResolver %s не перечислено как минимум два параметра." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" "\t**FAIL** %s должно соответствовать 1284DeviceID\n" " REF: Стр. 72, раздел 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" "\t**FAIL** Неверный Default%s %s\n" " REF: Стр. 40, раздел 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" "\t**FAIL** Неверный DefaultImageableArea %s\n" " REF: Стр. 102, раздел 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" "\t**FAIL** Неверный DefaultPaperDimension %s\n" " REF: Стр. 103, раздел 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" "\t**FAIL** Неверный FileVersion \"%s\"\n" " REF: Стр. 56, раздел 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" "\t**FAIL** Неверный FormatVersion \"%s\"\n" " REF: Стр. 56, раздел 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" "\t**FAIL** Неверный JobPatchFile атрибут в файле\n" " REF: Стр. 24, раздел 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "\t**FAIL** Неверный LanguageEncoding %s - должен быть ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "\t**FAIL** Неверный LanguageVersion %s - должен быть английский." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" "\t**FAIL** Неверный Manufacturer (должен быть \"%s\")\n" " REF: Стр. 211, таблица D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" "\t**FAIL** Неверное ModelName – \"%c\" не разрешено в строке.\n" " REF: Стр. 59-60, раздел 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" "\t**FAIL** Неверная PSVersion – не «(string) int».\n" " REF: Стр. 62-64, раздел 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" "\t**FAIL** Неверный Product – не \"(string)\".\n" " REF: Стр. 62, раздел 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" "\t**FAIL** Неверный ShortNickName – длиннее чем 31 симв.\n" " REF: Стр. 64-65, раздел 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" "\t**FAIL** Неверный параметр %s выбор %s\n" " REF: Стр. 84, раздел 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "\t**FAIL** Не удается опознать код параметра по умолчанию: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" "\t**FAIL** Стандартный перевод для параметра %s выбора %s содержит 8-битовые " "символы." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" "\t**FAIL** Стандартный перевод для параметра %s содержит 8-битовые символы." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "\t**FAIL** Имена групп %s и %s отличаются только регистром символов." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "\t**FAIL** Для выбора параметра %s имя %s встречается несколько раз." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" "\t**FAIL** Параметр %s с именами %s и %s отличается только регистром " "символов." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" "\t**FAIL** Названия параметров %s и %s отличаются только регистром символов." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ Default%s\n" " REF: Стр. 40, раздел 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ DefaultImageableArea\n" " REF: Стр. 102, раздел 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ DefaultPaperDimension\n" " REF: Стр. 103, раздел 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ FileVersion\n" " REF: Стр. 56, раздел 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ FormatVersion\n" " REF: Стр. 56, раздел 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ ImageableArea для PageSize %s\n" " REF: Стр. 41, раздел 5.\n" " REF: Стр. 102, раздел 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ LanguageEncoding\n" " REF: Стр. 56-57, раздел 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ LanguageVersion\n" " REF: Стр. 57-58, раздел 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ Manufacturer\n" " REF: Стр. 58-59, раздел 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ ModelName\n" " REF: Стр. 59-60, раздел 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ NickName\n" " REF: Стр. 60, раздел 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PCFileName\n" " REF: Стр. 61-62, раздел 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PSVersion\n" " REF: Стр. 62-64, раздел 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PageRegion\n" " REF: Стр. 100, раздел 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PageSize\n" " REF: Стр. 41, раздел 5.\n" " REF: Стр. 99, раздел 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PageSize\n" " REF: Стр. 99-100, раздел 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ PaperDimension для PageSize %s\n" " REF: Стр. 41, раздел 5.\n" " REF: Стр. 103, раздел 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ Product\n" " REF: Стр. 62, раздел 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" "\t**FAIL** ТРЕБУЕТСЯ ShortNickName\n" " REF: Стр. 64-65, раздел 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "\t**FAIL** Не удается открыть PPD-файл – %s в строке %d." #, c-format msgid " %d ERRORS FOUND" msgstr " ОБНАРУЖЕНО ОШИБОК: %d" msgid " NO ERRORS FOUND" msgstr " ОШИБОК НЕ ОБНАРУЖЕНО" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Строки заканчиваются на CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Строки заканчиваются на CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr "" " --list-filters Список фильтров которые должны использоваться." msgid " -D Remove the input file when finished." msgstr " -D Удалить входной файл после завершения." msgid " -D name=value Set named variable to value." msgstr " -D name=value Определение переменной." msgid " -I include-dir Add include directory to search path." msgstr " -I include-dir Добавить каталог include в путь поиска." msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd Задать PPD-файл." msgid " -U username Specify username." msgstr " -U username Указание имени пользователя." msgid " -c catalog.po Load the specified message catalog." msgstr " -c catalog.po Загружается указанный каталог сообщений." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf Использовать заданный cups-files.conf" msgid " -d output-dir Specify the output directory." msgstr " -d output-dir Задать выходной каталог." msgid " -d printer Use the named printer." msgstr " -d printer Использовать заданный принтер." msgid " -e Use every filter from the PPD file." msgstr " -e Использовать каждый фильтр из PPD-файла." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type Указать MIME-тип данных на входе (иначе " "автоопред.)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] Из указанного задания выбирается файл N (по " "умолчанию файл 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] Задать выходной язык(и) (locale)." msgid " -m Use the ModelName value as the filename." msgstr "" " -m В качестве имени файла используется ModelName." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type Указать MIME-тип данных на выходе (иначе " "application/pdf)." msgid " -n copies Set number of copies." msgstr " -n copies Указать количество копий." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o filename.drv Указать файл с информацией о драйвере (иначе ppdi." "drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr " -o filename.ppd[.gz] Задать выходной файл (иначе stdout)." msgid " -o name=value Set option(s)." msgstr " -o name=value Задать параметры." msgid " -p filename.ppd Set PPD file." msgstr " -p filename.ppd Задать PPD-файл." msgid " -t Test PPDs instead of generating them." msgstr " -t Тест PPDs вместо его создания." msgid " -t title Set title." msgstr " -t title Задать заголовок." msgid " -u Remove the PPD file when finished." msgstr " -u Удалить PPD-файл после завершения." msgid " -v Be verbose." msgstr " -v Подробный вывод лога." msgid " -z Compress PPD files using GNU zip." msgstr " -z Сжимать PPD-файл используя GNU zip." msgid " FAIL" msgstr " FAIL" msgid " PASS" msgstr " PASS" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f байт" #, c-format msgid "%d x %d mm" msgstr "%d x %d мм" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (без полей)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (без полей, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (без полей, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s принимает запросы с момента %s" #, c-format msgid "%s cannot be changed." msgstr "%s не может быть изменен." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s не выполнено версией CUPS для lpc." #, c-format msgid "%s is not ready" msgstr "%s не готов" #, c-format msgid "%s is ready" msgstr "%s готов" #, c-format msgid "%s is ready and printing" msgstr "%s готов и печатает" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s задание пользователь название копий параметры [файл]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s не принимает запросы с момента %s -" #, c-format msgid "%s not supported." msgstr "%s не поддерживается." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s принимает запросы с момента %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s не принимает запросы с момента %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [задание %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: ошибка %s: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: Неверная версия %s для \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: Дальнейшие действия неизвестны." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: Ошибка - %s переменная окружения указывает на несуществующее назначение " "\"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: Ошибка - добавьте '/version=1.1' к имени сервера." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: Ошибка - неверный ID задания." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: Ошибка - невозможно печатать файлы и редактировать задания одновременно." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: Ошибка - не удается печать из stdin, если предоставлены файлы или ID " "задания." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: Ошибка - после параметра \"-S\" должен идти набор символов." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "" "%s: Ошибка - после параметра \"-T\" должен быть указан тип содержимого." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "" "%s: Ошибка - после параметра \"-#\" должно быть указано количество копий." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "" "%s: Ошибка - после параметра \"-n\" должно быть указано количество копий." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: Ошибка - после параметра \"-P\" должно быть указано назначение." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: Ошибка - после параметра \"-d\" должно быть указано назначение." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: Ошибка - после параметра \"-f\" должна быть указана форма." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: Ошибка - после параметра \"-H\" должно быть указано имя хоста." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: Ошибка - после параметра \"-H\" должно быть указано имя хоста." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: Ошибка - после параметра \"-h\" должно быть указано имя хоста." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: Ошибка - после параметра \"-y\" должен быть указан список режимов." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: Ошибка - после параметра \"-%c\" должно быть указано имя." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "" "%s: Ошибка - после параметра '-o' должна быть указана строка вида " "option=value" #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: Ошибка – после параметра \"-P\" должен идти список страниц." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: Ошибка - после параметра \"-%c\" должен быть указан приоритет." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: Ошибка - после параметра \"-r\" должен идти текст причины." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: Ошибка - после параметра \"-t\" должен быть указан заголовок." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "" "%s: Ошибка - после параметра \"-U\" должно быть указано имя пользователя." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "" "%s: Ошибка - после параметра \"-u\" должно быть указано имя пользователя." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: Ошибка - после параметра \"-%c\" должно быть указано значение." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: Ошибка - требуется \"завершено\",\"не завершено\" или \"все\" после " "параметра \"-W\" " #, c-format msgid "%s: Error - no default destination available." msgstr "%s: Ошибка – нет доступного назначения по умолчанию." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: Ошибка – приоритет должен быть от 1 до 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: Ошибка - планировщик не отвечает." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: Ошибка – слишком много файлов – \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: Ошибка – не удается получить доступ к \"%s\" – %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: Ошибка – не удается поставить в очередь из stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: Ошибка - неизвестное назначение \"%s\"." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: ошибка - неизвестное назначение \"%s/%s\"." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: Ошибка - неизвестный параметр \"%c\"." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: Ошибка - неизвестный параметр \"%s\"." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: После параметра \"-i\" должен быть указан ID задания." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: Недопустимое имя назначения в списке \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: Неверная строка фильтра \"%s\"." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: Пропущено имя файла для \"-P\"." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: Пропущен таймаут для \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: Пропущена версия для \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: Необходимо указать ID задания (\"-i jobid\") перед \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "" "%s: Отсутствует фильтр, необходимый для преобразования из %s/%s в %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: Операция не удалась: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: Нет поддержки шифрования." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: Не удается подключиться к серверу." #, c-format msgid "%s: Unable to contact server." msgstr "%s: Не удается установить связь с сервером." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: Не удается определить тип MIME \"%s\"." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: Не удается открыть \"%s\": %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: Не удается открыть %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: Не удается открыть PPD-файл: %s в строке %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: Не удается прочитать базу данных MIME из \"%s\" или \"%s\"." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: Неизвестное назначение \"%s\"." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: Неизвестный MIME-тип назначения %s/%s." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: Неизвестный параметр \"%c\"." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: Неизвестный параметр \"%s\"." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: Неизвестный параметр \"-%c\"." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: Неизвестный MIME-тип источника %s/%s." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: Внимание - модификатор формата \"%c\" не поддерживается - вывод может " "быть неправильным." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: Внимание - параметр набора символов пропущен." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: Внимание - параметр типа содержимого пропущен." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: Внимание - параметр формы пропущен." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: Внимание - параметр режима пропущен." msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 дюйм/с" msgid "1.25x0.25\"" msgstr "1,25x0,25\"" msgid "1.25x2.25\"" msgstr "1,25x2,25\"" msgid "1.5 inch/sec." msgstr "1,5 дюйма/с" msgid "1.50x0.25\"" msgstr "1,50x0,25\"" msgid "1.50x0.50\"" msgstr "1,50x0,50\"" msgid "1.50x1.00\"" msgstr "1,50x1,00\"" msgid "1.50x2.00\"" msgstr "1,50x2,00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 дюймов/с" msgid "10 x 11" msgstr "" msgid "10 x 13" msgstr "" msgid "10 x 14" msgstr "" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 мм/с" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 дюймов/с" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 дюймов/с" msgid "12 x 11" msgstr "" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 мм/с" msgid "120x60dpi" msgstr "120x60dpi" msgid "120x72dpi" msgstr "120x72dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 мм/с" msgid "15 x 11" msgstr "" msgid "150 mm/sec." msgstr "150 мм/с" msgid "150dpi" msgstr "150dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 дюйма/с" msgid "2-Sided Printing" msgstr "двусторонняя печать" msgid "2.00x0.37\"" msgstr "2,00x0,37\"" msgid "2.00x0.50\"" msgstr "2,00x0,50\"" msgid "2.00x1.00\"" msgstr "2,00x1,00\"" msgid "2.00x1.25\"" msgstr "2,00x1,25\"" msgid "2.00x2.00\"" msgstr "2,00x2,00\"" msgid "2.00x3.00\"" msgstr "2,00x3,00\"" msgid "2.00x4.00\"" msgstr "2,00x4,00\"" msgid "2.00x5.50\"" msgstr "2,00x5,50\"" msgid "2.25x0.50\"" msgstr "2,25x0,50\"" msgid "2.25x1.25\"" msgstr "2,25x1,25\"" msgid "2.25x4.00\"" msgstr "2,25x4,00\"" msgid "2.25x5.50\"" msgstr "2,25x5,50\"" msgid "2.38x5.50\"" msgstr "2,38x5,50\"" msgid "2.5 inches/sec." msgstr "2,5 дюйма/с" msgid "2.50x1.00\"" msgstr "2,50x1,00\"" msgid "2.50x2.00\"" msgstr "2,50x2,00\"" msgid "2.75x1.25\"" msgstr "2,75x1,25\"" msgid "2.9 x 1\"" msgstr "2,9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 мм/с" msgid "200 mm/sec." msgstr "200 мм/с" msgid "203dpi" msgstr "203dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "Тип 24-Pin" msgid "240x72dpi" msgstr "240x72dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 мм/с" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 дюйма/с" msgid "3 x 5" msgstr "" msgid "3.00x1.00\"" msgstr "3,00x1,00\"" msgid "3.00x1.25\"" msgstr "3,00x1,25\"" msgid "3.00x2.00\"" msgstr "3,00x2,00\"" msgid "3.00x3.00\"" msgstr "3,00x3,00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3,00x5,00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3,25x2,00\"" msgid "3.25x5.00\"" msgstr "3,25x5,00\"" msgid "3.25x5.50\"" msgstr "3,25x5,50\"" msgid "3.25x5.83\"" msgstr "3,25x5,83\"" msgid "3.25x7.83\"" msgstr "3,25x7,83\"" msgid "3.5 x 5" msgstr "" msgid "3.5\" Disk" msgstr "Диск 3.5\"" msgid "3.50x1.00\"" msgstr "3,50x1,00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 мм/с" msgid "300 mm/sec." msgstr "300 мм/с" msgid "300dpi" msgstr "300dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360dpi" msgid "360x180dpi" msgstr "360x180dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 дюйма/с" msgid "4.00x1.00\"" msgstr "4,00x1,00\"" msgid "4.00x13.00\"" msgstr "4,00x13,00\"" msgid "4.00x2.00\"" msgstr "4,00x2,00\"" msgid "4.00x2.50\"" msgstr "4,00x2,50\"" msgid "4.00x3.00\"" msgstr "4,00x3,00\"" msgid "4.00x4.00\"" msgstr "4,00x4,00\"" msgid "4.00x5.00\"" msgstr "4,00x5,00\"" msgid "4.00x6.00\"" msgstr "4,00x6,00\"" msgid "4.00x6.50\"" msgstr "4,00x6,50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 мм/с" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 дюймов/с" msgid "5 x 7" msgstr "" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 дюймов/с" msgid "6.00x1.00\"" msgstr "6,00x1,00\"" msgid "6.00x2.00\"" msgstr "6,00x2,00\"" msgid "6.00x3.00\"" msgstr "6,00x3,00\"" msgid "6.00x4.00\"" msgstr "6,00x4,00\"" msgid "6.00x5.00\"" msgstr "6,00x5,00\"" msgid "6.00x6.00\"" msgstr "6,00x6,00\"" msgid "6.00x6.50\"" msgstr "6,00x6,50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 мм/с" msgid "600dpi" msgstr "600dpi" msgid "60dpi" msgstr "60dpi" msgid "60x72dpi" msgstr "" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 дюймов/с" msgid "7 x 9" msgstr "" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 дюймов/с" msgid "8 x 10" msgstr "" msgid "8.00x1.00\"" msgstr "8,00x1,00\"" msgid "8.00x2.00\"" msgstr "8,00x2,00\"" msgid "8.00x3.00\"" msgstr "8,00x3,00\"" msgid "8.00x4.00\"" msgstr "8,00x4,00\"" msgid "8.00x5.00\"" msgstr "8,00x5,00\"" msgid "8.00x6.00\"" msgstr "8,00x6,00\"" msgid "8.00x6.50\"" msgstr "8,00x6,50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 мм/с" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 дюймов/с" msgid "9 x 11" msgstr "" msgid "9 x 12" msgstr "" msgid "9-Pin Series" msgstr "Тип 9-Pin" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "" #, c-format msgid "A class named \"%s\" already exists." msgstr "Группа с именем \"%s\" уже существует." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Принтер с именем \"%s\" уже существует." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "" msgid "A3 Oversize" msgstr "" msgid "A3 Oversize Long Edge" msgstr "" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "" msgid "A4 Oversize" msgstr "" msgid "A4 Small" msgstr "" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "" msgid "A5 Oversize" msgstr "" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "" msgid "Accept Jobs" msgstr "Принять задания" msgid "Accepted" msgstr "Принято" msgid "Add Class" msgstr "Добавить группу" msgid "Add Printer" msgstr "Добавить принтер" msgid "Address" msgstr "Адрес" msgid "Administration" msgstr "Администрирование" msgid "Always" msgstr "Всегда" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Исполнительное устройство" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "Попытка установить %s printer-state на неверное значение %d" #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Атрибут группы не в диапазоне (%x < %x)" msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Неверный указатель NULL dests" msgid "Bad OpenGroup" msgstr "Неверное значение OpenGroup" msgid "Bad OpenUI/JCLOpenUI" msgstr "Неверное значение OpenUI/JCLOpenUI" msgid "Bad OrderDependency" msgstr "Неверное значение OrderDependency" msgid "Bad PPD cache file." msgstr "" msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "Неверный запрос" msgid "Bad SNMP version number" msgstr "Неверный номер версии SNMP" msgid "Bad UIConstraints" msgstr "Неверное значение UIConstraints" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "Неверные аргументы для функции" #, c-format msgid "Bad copies value %d." msgstr "Неверное значение количества копий %d." msgid "Bad custom parameter" msgstr "Неверный индивидуальный параметр" #, c-format msgid "Bad device-uri \"%s\"." msgstr "Неверное значение device-uri \"%s\"." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Неверная схема device-uri \"%s\"." #, c-format msgid "Bad document-format \"%s\"." msgstr "Неверное значение document-format \"%s\"." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "Неверное значение document-format-default \"%s\"." msgid "Bad filename buffer" msgstr "Ошибка в буфере filename" msgid "Bad hostname/address in URI" msgstr "Неверный hostname/address в URI" #, c-format msgid "Bad job-name value: %s" msgstr "Неверное значение job-name: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Неверное значение job-name: Wrong type or count." msgid "Bad job-priority value." msgstr "Неверное значение job-priority." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Неверное значение job-sheets \"%s\"." msgid "Bad job-sheets value type." msgstr "Неверный тип значения job-sheets." msgid "Bad job-state value." msgstr "Неверное значение job-state." #, c-format msgid "Bad job-uri \"%s\"." msgstr "Неверный job-uri \"%s\"." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "Неверное значение notify-pull-method \"%s\"." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "Неверный notify-recipient-uri \"%s\"." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Неверное значение number-up %d." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Неверные значения page-ranges %d-%d." msgid "Bad port number in URI" msgstr "Неверный номер порта в URI" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "Неверное значение port-monitor \"%s\"." #, c-format msgid "Bad printer-state value %d." msgstr "Неверное значение printer-state %d." msgid "Bad printer-uri." msgstr "Неверное значение printer-uri" #, c-format msgid "Bad request ID %d." msgstr "Неверный ID запроса %d." #, c-format msgid "Bad request version number %d.%d." msgstr "Неверный номер версии запроса %d.%d." msgid "Bad resource in URI" msgstr "" msgid "Bad scheme in URI" msgstr "" msgid "Bad username in URI" msgstr "Неверное имя пользователя в URI" msgid "Bad value string" msgstr "Неверная строка значений" msgid "Bad/empty URI" msgstr "Неверный или пустой URI" msgid "Banners" msgstr "Баннеры" msgid "Bond Paper" msgstr "Документная бумага" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "Параметр waiteof \"%s\" должен иметь двоичное значение" msgid "Buffer overflow detected, aborting." msgstr "Обнаружено переполнение буфера, прерывание." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "Принтер для печати этикеток CPCL" msgid "Cancel Jobs" msgstr "Отменить задания" msgid "Canceling print job." msgstr "Отмена задания печати." msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "" msgid "Cassette" msgstr "Лоток" msgid "Change Settings" msgstr "Изменить настройки" #, c-format msgid "Character set \"%s\" not supported." msgstr "Набор символов \"%s\" не поддерживается." msgid "Classes" msgstr "Группы" msgid "Clean Print Heads" msgstr "Очистить головки принтера" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job не подерживает атрибут job-uri" msgid "Color" msgstr "Цвет" msgid "Color Mode" msgstr "Цветной режим" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Команды могут быть сокращены. Команды:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Для имени сообщества длина не установлена" msgid "Connected to printer." msgstr "Подключен к принтеру." msgid "Connecting to printer." msgstr "Подключение к принтеру" msgid "Continue" msgstr "Продолжить" msgid "Continuous" msgstr "Непрерывно" msgid "Control file sent successfully." msgstr "Контрольный файл успешно отправлен." msgid "Copying print data." msgstr "Копирование данных печати." msgid "Created" msgstr "Создано" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Индивидуальный" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Обрезать" msgid "Cutter" msgstr "Резак" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Темный" msgid "Darkness" msgstr "Затемненность" msgid "Data file sent successfully." msgstr "Файл данных успешно отправлен." msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Удалить группу" msgid "Delete Printer" msgstr "Удалить принтер" msgid "DeskJet Series" msgstr "Серия DeskJet" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "Назначение «%s» не принимает задания." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" msgid "Direct Thermal Media" msgstr "Носитель для термопечати" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "Каталог \"%s\" содержит относительный путь." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Каталог \"%s\" имеет небезопасные права доступа (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "Каталог \"%s\" это файл." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Каталог \"%s\" недоступен: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Каталог \"%s\" доступ OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Отключено" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "Документ #%d не существует в задании #%d." msgid "Draft" msgstr "" msgid "Duplexer" msgstr "Дуплексер" msgid "EPL1 Label Printer" msgstr "Принтер для печати этикеток EPL1" msgid "EPL2 Label Printer" msgstr "Принтер для печати этикеток EPL2" msgid "Edit Configuration File" msgstr "Редактировать файл конфигурации" msgid "Encryption is not supported." msgstr "Шифрование не поддерживается." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Конечный баннер" msgid "English" msgstr "Russian" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Введите свое имя пользователя и пароль или данные учетной записи root, чтобы " "получить доступ к этой странице. Если используется проверка подлинности " "Kerberos, необходимо также иметь действительный билет Kerberos." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "" msgid "Envelope #12" msgstr "" msgid "Envelope #14" msgstr "" msgid "Envelope #9" msgstr "" msgid "Envelope B4" msgstr "" msgid "Envelope B5" msgstr "" msgid "Envelope B6" msgstr "" msgid "Envelope C0" msgstr "" msgid "Envelope C1" msgstr "" msgid "Envelope C2" msgstr "" msgid "Envelope C3" msgstr "" msgid "Envelope C4" msgstr "" msgid "Envelope C5" msgstr "" msgid "Envelope C6" msgstr "" msgid "Envelope C65" msgstr "" msgid "Envelope C7" msgstr "" msgid "Envelope Choukei 3" msgstr "" msgid "Envelope Choukei 3 Long Edge" msgstr "" msgid "Envelope Choukei 4" msgstr "" msgid "Envelope Choukei 4 Long Edge" msgstr "" msgid "Envelope DL" msgstr "" msgid "Envelope Feed" msgstr "Подача конвертов" msgid "Envelope Invite" msgstr "" msgid "Envelope Italian" msgstr "" msgid "Envelope Kaku2" msgstr "" msgid "Envelope Kaku2 Long Edge" msgstr "" msgid "Envelope Kaku3" msgstr "" msgid "Envelope Kaku3 Long Edge" msgstr "" msgid "Envelope Monarch" msgstr "" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "" msgid "Envelope PRC10" msgstr "" msgid "Envelope PRC10 Long Edge" msgstr "" msgid "Envelope PRC2" msgstr "" msgid "Envelope PRC2 Long Edge" msgstr "" msgid "Envelope PRC3" msgstr "" msgid "Envelope PRC3 Long Edge" msgstr "" msgid "Envelope PRC4" msgstr "" msgid "Envelope PRC4 Long Edge" msgstr "" msgid "Envelope PRC5 Long Edge" msgstr "" msgid "Envelope PRC5PRC5" msgstr "" msgid "Envelope PRC6" msgstr "" msgid "Envelope PRC6 Long Edge" msgstr "" msgid "Envelope PRC7" msgstr "" msgid "Envelope PRC7 Long Edge" msgstr "" msgid "Envelope PRC8" msgstr "" msgid "Envelope PRC8 Long Edge" msgstr "" msgid "Envelope PRC9" msgstr "" msgid "Envelope PRC9 Long Edge" msgstr "" msgid "Envelope Personal" msgstr "" msgid "Envelope You4" msgstr "" msgid "Envelope You4 Long Edge" msgstr "" msgid "Environment Variables:" msgstr "" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Политика ошибок" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "Ошибка отправки данных растра." msgid "Error: need hostname after \"-h\" option." msgstr "ERROR: Требуется имя хоста после параметра \"-h\"" msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Каждые 10 этикеток" msgid "Every 2 Labels" msgstr "Каждые 2 этикетки" msgid "Every 3 Labels" msgstr "Каждые 3 этикетки" msgid "Every 4 Labels" msgstr "Каждые 4 этикетки" msgid "Every 5 Labels" msgstr "Каждые 5 этикеток" msgid "Every 6 Labels" msgstr "Каждые 6 этикеток" msgid "Every 7 Labels" msgstr "Каждые 7 этикеток" msgid "Every 8 Labels" msgstr "Каждые 8 этикеток" msgid "Every 9 Labels" msgstr "Каждые 9 этикеток" msgid "Every Label" msgstr "Каждая этикетка" msgid "Executive" msgstr "Executive" msgid "Expectation Failed" msgstr "Сбой ожидания" msgid "Expressions:" msgstr "Выражение:" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "Файл \"%s\" содержит относительный путь." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Файл \"%s\" имеет небезопасные права доступа (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "Файл \"%s\" является каталогом." #, c-format msgid "File \"%s\" not available: %s" msgstr "Файл \"%s\" недоступен: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Файл \"%s\" права доступа OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "URI-адреса файлового устройства отключены! Чтобы включить их, используйте " "параметр FileDevice в \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Последняя страница %d." msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Фолио" msgid "Forbidden" msgstr "Запрещено" msgid "Found" msgstr "" msgid "General" msgstr "Основные" msgid "Generic" msgstr "Общее" msgid "Get-Response-PDU uses indefinite length" msgstr "Для Get-Response-PDU длина не установлена" msgid "Glossy Paper" msgstr "Глянцевая бумага" msgid "Got a printer-uri attribute but no job-id." msgstr "Получен атрибут printer-uri, но не job-id" msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Оттенки серого" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Папка подвесного хранения" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "Файл справки не проиндексирован." msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "IPP атрибут 1setOf с недопустимым значением." msgid "IPP attribute has no name." msgstr "IPP атрибут не имеет имени." msgid "IPP attribute is not a member of the message." msgstr "IPP атрибут не входит в состав сообщения." msgid "IPP begCollection value not 0 bytes." msgstr "IPP значение begCollection не 0 байт." msgid "IPP boolean value not 1 byte." msgstr "IPP двоичное значение не 1 байт." msgid "IPP date value not 11 bytes." msgstr "IPP длина даты не 11 байтов." msgid "IPP endCollection value not 0 bytes." msgstr "IPP значение endCollection не 0 байт." msgid "IPP enum value not 4 bytes." msgstr "IPP значение enum не 4 байта." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP extension tag больше чем 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "IPP тип integer не 4 байта" msgid "IPP language length overflows value." msgstr "IPP переполнение значения language length" msgid "IPP language length too large." msgstr "IPP language length слишком длинное." msgid "IPP member name is not empty." msgstr "IPP member name не пустое." msgid "IPP memberName value is empty." msgstr "IPP memberName пустое значение." msgid "IPP memberName with no attribute." msgstr "IPP memberName без атрибута." msgid "IPP name larger than 32767 bytes." msgstr "IPP имя больше чем 32767 байт." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP значение nameWithLanguage меньше минимума 4 байт." msgid "IPP octetString length too large." msgstr "IPP octetString слишком длинное." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP rangeOfInteger значение не 8 байт." msgid "IPP resolution value not 9 bytes." msgstr "IPP resolution значение не 9 байт." msgid "IPP string length overflows value." msgstr "IPP переполнение значения string length." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP textWithLanguage меньше минимума 4 байт." msgid "IPP value larger than 32767 bytes." msgstr "IPP значение больше чем 32767 байт." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "UTF-8" msgid "Illegal control character" msgstr "Недействительный контрольный символ" msgid "Illegal main keyword string" msgstr "Недействительная основная строка ключевых слов" msgid "Illegal option keyword string" msgstr "Недействительная строка ключевых слов параметра" msgid "Illegal translation string" msgstr "Недействительный перевод" msgid "Illegal whitespace character" msgstr "Недействительный символ пробела" msgid "Installable Options" msgstr "Параметры, разрешенные к установке" msgid "Installed" msgstr "Установлено" msgid "IntelliBar Label Printer" msgstr "Принтер для печати этикеток IntelliBar" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Внутренняя Ошибка сервера" msgid "Internal error" msgstr "Внутренняя ошибка" msgid "Internet Postage 2-Part" msgstr "Наклейки Internet Postage 2-Part" msgid "Internet Postage 3-Part" msgstr "Наклейки Internet Postage 3-Part" msgid "Internet Printing Protocol" msgstr "Протокол интернет-печати" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "Неверные аргументы имени бумаги." msgid "Invalid media size." msgstr "Неверный размер бумаги." msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "Неверная команда принтера \"%s\"." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "" msgid "JIS B1" msgstr "" msgid "JIS B10" msgstr "" msgid "JIS B2" msgstr "" msgid "JIS B3" msgstr "" msgid "JIS B4" msgstr "" msgid "JIS B4 Long Edge" msgstr "" msgid "JIS B5" msgstr "" msgid "JIS B5 Long Edge" msgstr "" msgid "JIS B6" msgstr "" msgid "JIS B6 Long Edge" msgstr "" msgid "JIS B7" msgstr "" msgid "JIS B8" msgstr "" msgid "JIS B9" msgstr "" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "Задание #%d не может быть перезапущено - отсутствуют файлы." #, c-format msgid "Job #%d does not exist." msgstr "Задание #%d не существует." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Задание #%d уже прервано – не удается отменить." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Задание #%d уже отменено – не удается отменить." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Задание #%d уже завершено – не удается отменить." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "Задание #%d завершено и не может быть изменено." #, c-format msgid "Job #%d is not complete." msgstr "Задание #%d не завершено." #, c-format msgid "Job #%d is not held for authentication." msgstr "Задание #%d не задержано для идентификации." #, c-format msgid "Job #%d is not held." msgstr "Задание #%d не задержано." msgid "Job Completed" msgstr "Задание завершено" msgid "Job Created" msgstr "Задание создано" msgid "Job Options Changed" msgstr "Параметры задания изменены" msgid "Job Stopped" msgstr "Задание остановлено" msgid "Job is completed and cannot be changed." msgstr "Задание завершено и не может быть изменено." msgid "Job operation failed" msgstr "Сбой операции задания." msgid "Job state cannot be changed." msgstr "Состояние задания не может быть изменено." msgid "Job subscriptions cannot be renewed." msgstr "Подписки на задание не могут быть обновлены." msgid "Jobs" msgstr "Задания" msgid "LPD/LPR Host or Printer" msgstr "Хост или принтер LPD/LPR" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Принтер для печати этикеток" msgid "Label Top" msgstr "Верхний край этикетки" #, c-format msgid "Language \"%s\" not supported." msgstr "Язык \"%s\" не поддерживается." msgid "Large Address" msgstr "Полный адрес" msgid "LaserJet Series PCL 4/5" msgstr "Серия LaserJet, PCL 4/5" msgid "Letter Oversize" msgstr "" msgid "Letter Oversize Long Edge" msgstr "" msgid "Light" msgstr "Светлый" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Строка длиннее разрешенного предела (255 символов)" msgid "List Available Printers" msgstr "Список доступных принтеров" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "По длинной стороне (книжная)" msgid "Looking for printer." msgstr "Поиск принтера." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Ручная подача" msgid "Media Size" msgstr "Размер бумаги" msgid "Media Source" msgstr "Источник бумаги" msgid "Media Tracking" msgstr "Контроль подачи бумаги" msgid "Media Type" msgstr "Тип бумаги" msgid "Medium" msgstr "Средний" msgid "Memory allocation error" msgstr "Ошибка выделения памяти" msgid "Missing CloseGroup" msgstr "Пропущен CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Отсутствует заголовок PPD-Adobe-4.x" msgid "Missing asterisk in column 1" msgstr "Отсутствует звездочка в колонке 1" msgid "Missing document-number attribute." msgstr "Отсутствует атрибут document-number" msgid "Missing form variable" msgstr "Отсутствует переменная формы" msgid "Missing last-document attribute in request." msgstr "Отсутствует атрибут last-document в запросе." msgid "Missing media or media-col." msgstr "Отсутствует media или media-col." msgid "Missing media-size in media-col." msgstr "Отсутствует media-size в media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Отсутствует атрибут notify-subscription-ids" msgid "Missing option keyword" msgstr "Отсутствует ключевое слово параметра" msgid "Missing requesting-user-name attribute." msgstr "Отсутствует атрибут requesting-user-name." #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "Отсутствуют обязательные атрибуты." msgid "Missing resource in URI" msgstr "Отсутствует resource в URI" msgid "Missing scheme in URI" msgstr "Отсутствует scheme в URI" msgid "Missing value string" msgstr "Отсутствует строка значения" msgid "Missing x-dimension in media-size." msgstr "Отсутствует x-dimension в media-size." msgid "Missing y-dimension in media-size." msgstr "Отсутствует y-dimension в media-size." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgid "Modifiers:" msgstr "Управление:" msgid "Modify Class" msgstr "Изменить группу" msgid "Modify Printer" msgstr "Изменить принтер" msgid "Move All Jobs" msgstr "Переместить все задания" msgid "Move Job" msgstr "Переместить задание" msgid "Moved Permanently" msgstr "Перемещено окончательно" msgid "NULL PPD file pointer" msgstr "Указатель PPD-файла установлен на NULL" msgid "Name OID uses indefinite length" msgstr "Для имени OID длина не установлена" msgid "Nested classes are not allowed." msgstr "Вложенные группы не допускаются." msgid "Never" msgstr "Никогда" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "Нет" msgid "No Content" msgstr "Нет содержимого" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "Нет имени PPD" msgid "No VarBind SEQUENCE" msgstr "Нет последовательности VarBind" msgid "No active connection" msgstr "Нет рабочего подключения" msgid "No active connection." msgstr "Нет рабочего подключения." #, c-format msgid "No active jobs on %s." msgstr "Нет активных заданий на %s" msgid "No attributes in request." msgstr "Нет атрибутов в запросе." msgid "No authentication information provided." msgstr "Нет информации для проверки подлинности." msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Нет имени сообщества" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "Нет принтера по умолчанию." msgid "No destinations added." msgstr "Нет добавленных назначений." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "Не обнаружено URI устройства в argv[0] или в переменной окружения DEVICE_URI" msgid "No error-index" msgstr "Нет значения error-index" msgid "No error-status" msgstr "Нет значения error-status" msgid "No file in print request." msgstr "Нет файла в запросе на печать." msgid "No modification time" msgstr "Не указано время изменения" msgid "No name OID" msgstr "Нет имени OID" msgid "No pages were found." msgstr "Страницы не были найдены." msgid "No printer name" msgstr "Нет имени принтера" msgid "No printer-uri found" msgstr "Не указан адрес printer-uri" msgid "No printer-uri found for class" msgstr "Не указан адрес printer-uri для группы" msgid "No printer-uri in request." msgstr "Нет адреса printer-uri в запросе." msgid "No request URI." msgstr "Нет запроса URI." msgid "No request protocol version." msgstr "Нет запроса версии протокола." msgid "No request sent." msgstr "Не отправлен запрос." msgid "No request-id" msgstr "Нет идентификатора request-id" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "Нет атрибутов подписки в запросе." msgid "No subscriptions found." msgstr "Подписки не найдены." msgid "No variable-bindings SEQUENCE" msgstr "Нет последовательности variable-bindings" msgid "No version number" msgstr "Нет номера версии" msgid "Non-continuous (Mark sensing)" msgstr "С прерыванием (Mark sensing)" msgid "Non-continuous (Web sensing)" msgstr "С прерыванием (Web sensing)" msgid "None" msgstr "" msgid "Normal" msgstr "Нормальный" msgid "Not Found" msgstr "Не найден" msgid "Not Implemented" msgstr "Не реализовано" msgid "Not Installed" msgstr "Не установлено" msgid "Not Modified" msgstr "Не изменено" msgid "Not Supported" msgstr "Не поддерживается" msgid "Not allowed to print." msgstr "Не разрешено печатать." msgid "Note" msgstr "Примечание" msgid "OK" msgstr "ОК" msgid "Off (1-Sided)" msgstr "Выкл. (1-сторонняя печать)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Интернет справка" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "Не удалось открыть %s: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup без предыдущего CloseGroup" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI без предыдущего CloseUI/JCLCloseUI" msgid "Operation Policy" msgstr "Политика операций" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "Параметр \"%s\" не может быть добавлен через %%%%IncludeFeature." msgid "Options Installed" msgstr "Доп.устройства" msgid "Options:" msgstr "Параметры:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "Устаревший файл кеша PPD" msgid "Out of memory." msgstr "Недостаточно памяти." msgid "Output Mode" msgstr "Режим вывода" msgid "PCL Laser Printer" msgstr "Лазерный принтер PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "" msgid "PRC32K Oversize" msgstr "" msgid "PRC32K Oversize Long Edge" msgstr "" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "В пакете нет Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Нет индикатора SEQUENCE в начале пакета" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Пароль для %s на %s? " msgid "Pause Class" msgstr "Приостановить группу" msgid "Pause Printer" msgstr "Приостановить принтер" msgid "Peel-Off" msgstr "Съемный слой" msgid "Photo" msgstr "Фото" msgid "Photo Labels" msgstr "Фотоэтикетки" msgid "Plain Paper" msgstr "Обычная бумага" msgid "Policies" msgstr "Политики" msgid "Port Monitor" msgstr "Мониторинг порта" msgid "PostScript Printer" msgstr "Принтер PostScript" msgid "Postcard" msgstr "Открытка" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "Открытка двойная Long Edge" msgid "Postcard Long Edge" msgstr "Открытка Long Edge" msgid "Preparing to print." msgstr "Подготовка к печати." msgid "Print Density" msgstr "Плотность печати" msgid "Print Job:" msgstr "Задание печати:" msgid "Print Mode" msgstr "Режим печати" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "Скорость печати" msgid "Print Self-Test Page" msgstr "Напечатать пробную страницу" msgid "Print Speed" msgstr "Скорость печати" msgid "Print Test Page" msgstr "Напечатать пробную страницу" msgid "Print and Cut" msgstr "Напечатать и обрезать" msgid "Print and Tear" msgstr "Напечатать и оборвать" msgid "Print file sent." msgstr "Файл печати отправлен." msgid "Print job canceled at printer." msgstr "Задание отменено на принтере." msgid "Print job too large." msgstr "Задание слишком большое." msgid "Print job was not accepted." msgstr "Задание не принято." #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "Принтер добавлен" msgid "Printer Default" msgstr "Принтер выбран по умолчанию" msgid "Printer Deleted" msgstr "Принтер удален" msgid "Printer Modified" msgstr "Принтер изменен" msgid "Printer Paused" msgstr "Принтер приостановлен" msgid "Printer Settings" msgstr "Параметры принтера" msgid "Printer cannot print supplied content." msgstr "Принтер не может распечатать содержимое." msgid "Printer cannot print with supplied options." msgstr "Принтер не может печатать с данными параметрами." msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Принтер:" msgid "Printers" msgstr "Принтеры" #, c-format msgid "Printing page %d, %u%% complete." msgstr "Печать страницы %d, %u%% завершена." msgid "Punch" msgstr "" msgid "Quarto" msgstr "Кватро" msgid "Quota limit reached." msgstr "Предел квоты достигнут." msgid "Rank Owner Job File(s) Total Size" msgstr "" "Ранг Владелец Задание Файл(ы) Общий размер" msgid "Reject Jobs" msgstr "Отклонить задания" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "Удаленный хост не принял контрольный файл (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "Удаленный хост не принял файл данных (%d)." msgid "Reprint After Error" msgstr "Повторить печать после ошибки" msgid "Request Entity Too Large" msgstr "Слишком большое содержимое запроса" msgid "Resolution" msgstr "Разрешение" msgid "Resume Class" msgstr "Возобновить работу группы" msgid "Resume Printer" msgstr "Возобновить работу принтера" msgid "Return Address" msgstr "Обратный адрес" msgid "Rewind" msgstr "Вернуться в начало" msgid "SEQUENCE uses indefinite length" msgstr "Для SEQUENCE длина не установлена" msgid "SSL/TLS Negotiation Error" msgstr "SSL/TLS Negotiation Error" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Посмотреть другие" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "Отправка данных на принтер." msgid "Server Restarted" msgstr "Сервер перезагружен" msgid "Server Security Auditing" msgstr "Проверка безопасности сервера" msgid "Server Started" msgstr "Сервер загружен" msgid "Server Stopped" msgstr "Сервер остановлен" msgid "Server credentials not set." msgstr "Учетные данные сервера не заданы." msgid "Service Unavailable" msgstr "Служба недоступна" msgid "Set Allowed Users" msgstr "Указать допущенных пользователей" msgid "Set As Server Default" msgstr "Использовать данный сервер по умолчанию" msgid "Set Class Options" msgstr "Настроить параметры группы" msgid "Set Printer Options" msgstr "Настроить параметры принтера" msgid "Set Publishing" msgstr "Настроить публикацию" msgid "Shipping Address" msgstr "Адрес доставки" msgid "Short-Edge (Landscape)" msgstr "По короткой стороне (альбомная)" msgid "Special Paper" msgstr "Особая бумага" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Постановка в очередь, %.0f%% завершено." msgid "Standard" msgstr "Стандартный" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Стартовый баннер" #, c-format msgid "Starting page %d." msgstr "Главная страница %d." msgid "Statement" msgstr "Оператор" #, c-format msgid "Subscription #%d does not exist." msgstr "Подписка #%d не существует." msgid "Substitutions:" msgstr "Замещения:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Протоколы переключения" msgid "Tabloid" msgstr "Tabloid" msgid "Tabloid Oversize" msgstr "" msgid "Tabloid Oversize Long Edge" msgstr "" msgid "Tear" msgstr "Оборвать" msgid "Tear-Off" msgstr "Место отрыва" msgid "Tear-Off Adjust Position" msgstr "Откорректировать положение места отрыва" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "Атрибут \"%s\" требуется для печати задания." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "Атрибут %s не может быть использован с job-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "Атрибут '%s' не может быть подставлен в запрос Create-Job" #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "Не удается найти PPD-файл \"%s\"." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "Не удалось открыть PPD-файл \"%s\": %s" msgid "The PPD file could not be opened." msgstr "Не удалось открыть PPD-файл." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "Имя группы может содержать максимально 127 печатных символов и не может " "содержать пробелы, дроби (/) или знак \"решетки\" (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "Атрибут notify-lease-duration не может использоваться с подписками на " "задание." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "Значение notify-user-data слишком большое(%d > 63 октета)" msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "Неправильная конфигурация принтера, или принтер больше не доступен." msgid "The printer did not respond." msgstr "Принтер не отвечает." msgid "The printer is in use." msgstr "Принтер используется." msgid "The printer is not connected." msgstr "Принтер не подключен." msgid "The printer is not responding." msgstr "Принтер не отвечает." msgid "The printer is now connected." msgstr "Принтер подключен." msgid "The printer is now online." msgstr "Принтер подключен." msgid "The printer is offline." msgstr "Принтер выключен." msgid "The printer is unreachable at this time." msgstr "В настоящее время принтер недоступен." msgid "The printer may not exist or is unavailable at this time." msgstr "Возможно принтер недоступен в настоящее время." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "Принтер или группа не существует." msgid "The printer or class is not shared." msgstr "Принтер или группа без совместного доступа." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "printer-uri \"%s\" содержит недопустимые символы." msgid "The printer-uri attribute is required." msgstr "Для printer-uri требуется атрибут." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "printer-uri должен иметь форму «ipp://HOSTNAME/classes/CLASSNAME»." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "printer-uri должен иметь форму «ipp://HOSTNAME/printers/PRINTERNAME»." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "Web интерфейс сейчас отключен. Выполните \"cupsctl WebInterface=yes\" для " "включения." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "Значение \"%s\" для which-jobs не поддерживается." msgid "There are too many subscriptions." msgstr "Слишком много подписок." msgid "There was an unrecoverable USB error." msgstr "Обнаружена ошибка USB." msgid "Thermal Transfer Media" msgstr "Носитель для печати методом термопереноса" msgid "Too many active jobs." msgstr "Слишком много активных заданий." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Слишком много значений job-sheets (%d>2)" #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Слишком много значений printer-state-reasons (%d > %d)" msgid "Transparency" msgstr "Прозрачность" msgid "Tray" msgstr "Лоток" msgid "Tray 1" msgstr "Лоток 1" msgid "Tray 2" msgstr "Лоток 2" msgid "Tray 3" msgstr "Лоток 3" msgid "Tray 4" msgstr "Лоток 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "Слишком длинный адрес URI" msgid "URI too large" msgstr "Слишком большой адрес URI" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Legal" msgid "US Legal Oversize" msgstr "" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "" msgid "US Letter Oversize" msgstr "" msgid "US Letter Oversize Long Edge" msgstr "" msgid "US Letter Small" msgstr "" msgid "Unable to access cupsd.conf file" msgstr "Не удается получить доступ к файлу \"cupsd.conf\"" msgid "Unable to access help file." msgstr "Не удается получить доступ к файлу помощи." msgid "Unable to add class" msgstr "Не удается добавить группу" msgid "Unable to add document to print job." msgstr "Не удается добавить документ в задание печати." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Не удается добавить задание для назначения \"%s\"" msgid "Unable to add printer" msgstr "Не удается добавить принтер" msgid "Unable to allocate memory for file types." msgstr "Не удается выделить память для типов файлов." msgid "Unable to allocate memory for page info" msgstr "Не удается выделить память для страницы информации" msgid "Unable to allocate memory for pages array" msgstr "Не удается выделить память для страниц" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "Не удается отменить задание печати." msgid "Unable to change printer" msgstr "Не удается изменить принтер" msgid "Unable to change printer-is-shared attribute" msgstr "Не удается изменить атрибут printer-is-shared" msgid "Unable to change server settings" msgstr "Не удается изменить настройки сервера" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "Не удается компилировать mimeMediaType регулярное выражение: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "Не удается компилировать naturalLanguage регулярное выражение: %s." msgid "Unable to configure printer options." msgstr "Не удается настроить параметры принтера." msgid "Unable to connect to host." msgstr "Не удается подключиться к хосту." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "Не удается установить связь с принтером, постановка в очередь на следующем " "принтере в группе." #, c-format msgid "Unable to copy PPD file - %s" msgstr "Не удается копировать PPD-файл - %s" msgid "Unable to copy PPD file." msgstr "Не удается копировать PPD-файл." msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "Не удается создать printer-uri" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "Не удается создать учетные данные сервера." #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "Не удается создать временный файл" msgid "Unable to delete class" msgstr "Не удается удалить группу" msgid "Unable to delete printer" msgstr "Не удается удалить принтер" msgid "Unable to do maintenance command" msgstr "Не удается выполнить команду обслуживания" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "Невозможно редактировать файлы cupsd.conf больше 1 МБ" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "Не удается установить защищенное соединение (неправильная цепочка " "сертификатов)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "Не удается установить защищенное соединение (недействительный сертификат)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "Не удается установить защищенное соединение (сертификат просрочен)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" "Не удается установить защищенное соединение (несовпадение имени хоста)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "Не удается установить защищенное соединение (соединение разорвано удаленной " "стороной.)" msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "Не удается установить защищенное соединение (самоподписанный сертификат)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "Не удается установить защищенное соединение (ненадежный сертификат)." msgid "Unable to establish a secure connection to host." msgstr "Не удается установить защищенное соединение." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "Не удается найти назначение для задания" msgid "Unable to find printer." msgstr "Не удается найти принтер." msgid "Unable to find server credentials." msgstr "Не удается найти учетные данные сервера." msgid "Unable to get backend exit status." msgstr "Не удается получить код завершения от backend." msgid "Unable to get class list" msgstr "Не удается получить список групп" msgid "Unable to get class status" msgstr "Не удается получить статус групп" msgid "Unable to get list of printer drivers" msgstr "Не удается получить список драйверов принтера" msgid "Unable to get printer attributes" msgstr "Не удается получить атрибуты принтера" msgid "Unable to get printer list" msgstr "Не удается получить список принтеров" msgid "Unable to get printer status" msgstr "Не удается получить статус принтера" msgid "Unable to get printer status." msgstr "Не удается получить статус принтера." msgid "Unable to load help index." msgstr "Не удается загрузить содержание справки." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "Принтер \"%s\" не найден" msgid "Unable to locate printer." msgstr "Принтер не найден" msgid "Unable to modify class" msgstr "Не удается изменить группу" msgid "Unable to modify printer" msgstr "Не удается изменить принтер" msgid "Unable to move job" msgstr "Не удается переместить задание" msgid "Unable to move jobs" msgstr "Не удается переместить задания" msgid "Unable to open PPD file" msgstr "Не удается открыть PPD-файл" msgid "Unable to open cupsd.conf file:" msgstr "Не удается открыть файл cupsd.conf:" msgid "Unable to open device file" msgstr "Не удается открыть файл устройства" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "Не удается открыть документ #%d в задании #%d." msgid "Unable to open help file." msgstr "Не удается открыть файл справки." msgid "Unable to open print file" msgstr "Не удается открыть файл печати" msgid "Unable to open raster file" msgstr "Не удается открыть растровый файл" msgid "Unable to print test page" msgstr "Не удается напечатать пробную страницу" msgid "Unable to read print data." msgstr "Не удается считать данные печати." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "Не удается определить printer-uri" msgid "Unable to see in file" msgstr "Не удается увидеть в файле" msgid "Unable to send command to printer driver" msgstr "Не удается отправить команду драйверу принтера" msgid "Unable to send data to printer." msgstr "Не удается отправить данные на принтер." msgid "Unable to set options" msgstr "Не удается настроить параметры" msgid "Unable to set server default" msgstr "Не удается назначить сервер используемым по умолчанию" msgid "Unable to start backend process." msgstr "Не удается запустить фоновый процесс" msgid "Unable to upload cupsd.conf file" msgstr "Не удается загрузить файл cupsd.conf" msgid "Unable to use legacy USB class driver." msgstr "Не удается использовать устаревший драйвер USB." msgid "Unable to write print data" msgstr "Не удается записать данные печати" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "Не удается записать несжатые данные печати: %s" msgid "Unauthorized" msgstr "В доступе отказано" msgid "Units" msgstr "Единицы" msgid "Unknown" msgstr "Неизвестный" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Неизвестный выбор \"%s\" для параметра \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Неизвестное значение \"%s\" параметра шифрования." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Неизвестный порядок файлов \"%s\"." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Символ неизвестного формата \"%c\"." msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "Неизвестное имя размера бумаги." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Неизвестный параметр \"%s\" со значением \"%s\"." #, c-format msgid "Unknown option \"%s\"." msgstr "Неизвестный параметр \"%s\"." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Неизвестный режим печати: \"%s\"." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "Неизвестная политика printer-error-policy \"%s\"." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "Неизвестная политика printer-op-policy \"%s\"." msgid "Unknown request method." msgstr "Неизвестный метод запроса." msgid "Unknown request version." msgstr "Неизвестный запрос версии." msgid "Unknown scheme in URI" msgstr "Неизвестный scheme в URI" msgid "Unknown service name." msgstr "Неизвестное имя сервиса." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Неизвестное значение параметра версии \"%s\"." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Неподдерживаемое значение 'compression' \"%s\"." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Неподдерживаемое значение'document-format' \"%s\"." msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "Неподдерживаемое значение 'job-name'." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Неподдерживаемый набор символов \"%s\"." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Неподдерживаемое сжатие \"%s\"." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "Неподдерживаемый document-format \"%s\"." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "Неподдерживаемый document-format \"%s/%s\"." #, c-format msgid "Unsupported format \"%s\"." msgstr "Неподдерживаемый формат \"%s\"." msgid "Unsupported margins." msgstr "Неподдерживаемые поля." msgid "Unsupported media value." msgstr "Неподдерживаемое значение бумаги." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" "Неподдерживаемое значение number-up %d, используется значение number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "Неподдерживаемое значение number-up-layout %s, используется значение number-" "up-layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" "Неподдерживаемое значение page-border %s, используется значение page-" "border=none." msgid "Unsupported raster data." msgstr "Неподдерживаемые данные растра." msgid "Unsupported value type" msgstr "Неподдерживаемый тип значения" msgid "Upgrade Required" msgstr "Требуется обновление" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "" msgid "Usage: cupsd [options]" msgstr "" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Использование:\n" " ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: snmp [host-or-ip-address]" msgstr "" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Для значения длина не установлена" msgid "VarBind uses indefinite length" msgstr "Для VarBind длина не установлена" msgid "Version uses indefinite length" msgstr "Для Version длина не установлена" msgid "Waiting for job to complete." msgstr "Ожидание выполнения задания." msgid "Waiting for printer to become available." msgstr "Ожидание доступа к принтеру." msgid "Waiting for printer to finish." msgstr "Ожидание окончания работы принтера." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "Web интерфейс отключен" msgid "Yes" msgstr "Да" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "" "Вы должны получить доступ к этой странице с помощью URL https://%s:%d%s" msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Принтер для печати этикеток ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "прервано" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "отменено" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "завершено" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "Не удалось выполнить cups-deviced." msgid "cups-driverd failed to execute." msgstr "Не удалось выполнить cups-driverd." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: Не удается подключиться к серверу: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: Неизвестный параметр \"%s\"" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: Неизвестный параметр \"-%c\"" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: Пропущено имя файла конфигурации после параметра \"-с\"" msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "cupsd: Пропущено имя файла cups-files.conf после параметра \"-s\"" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" "cupsd: Поддержка запуска \"по запросу\" не включена, запуск в нормальном " "режиме." msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" msgid "cupsd: Unable to get current directory." msgstr "cupsd: Не удается определить текущий каталог" msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: Не удается определить путь до cups-files.conf" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: Неизвестный аргумент \"%s\" - прерывание." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: Неизвестный параметр \"%c\" - прерывание." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: Недопустимый номер документа %d." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: Недопустимый ID задания %d." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: Может быть указано только одно имя файла." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: Не удается получить файл задания - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: Параметр -q несовместим с параметром -v" msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: Параметр -v несовместим с параметром -q" #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "устройство для %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "устройство для %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "Для error-index длина не установлена" msgid "error-status uses indefinite length" msgstr "Для error-status длина не установлена" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "задержано" msgid "help\t\tGet help on commands." msgstr "help\t\tПолучить справку по командам." msgid "idle" msgstr "свободен" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: неправильное регулярное выражение: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: не используйте --and после --or." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: Ожидается key name после %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: Ожидается port range после %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: Ожидается program после %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: Ожидается semi-colon после %s." msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: Отсутствует закрывающая фигурная скобка в замене." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: Отсутствует закрывающая скобка." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: Отсутствует выражение перед \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: Отсутствует выражение перед \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: Отсутствует key name после %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "ippfind: Отсутствует открывающая скобка." #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: Отсутствует program после %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: Отсутствует регулярное выражение после %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: Отсутствует semi-colon после %s." msgid "ippfind: Out of memory." msgstr "ippfind: Недостаточно памяти." msgid "ippfind: Too many parenthesis." msgstr "ippfind: Слишком много скобок." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: Не удается просмотреть или определить: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: Не удается выполнить \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: Не удается использовать Bonjour: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: Неизвестная переменная \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "ipptool: Параметры \"-i\" и \"-n\" несовместимы с \"-P\" и \"-X\"." #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: Неправильные секунды для \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: Может быть определен лишь один URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: Отсутствует count для \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: Отсутствует имя файла для \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: Отсутствует name=value для \"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: Отсутствуют секунды для \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: Необходим URI перед указанием тест-файла." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "Атрибут job-printer-uri отсутствует." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: Имя группы может содержать только печатаемые символы." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: После параметра '-u' должен быть указан allow/deny:userlist." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: После параметра \"-r\" должно быть указано имя группы." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: После параметра \"-c\" должно быть указано имя группы." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: После параметра \"-D\" должно быть указано описание." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: После параметра \"-v\" должен быть указан URI" msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "После параметра \"-I\" должен(-ны) быть указан(-ы) тип(-ы) файла(-ов)." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: После параметра \"-h\" должно быть указано имя хоста." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: После параметра \"-L\" должно быть указано местоположение." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: После параметра \"-m\" должна быть указана модель." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: После параметра \"-R\" должно быть указано имя." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: После параметра \"-o\" должно быть указано name=value" msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: После параметра \"-p\" должен быть указан принтер." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: После параметра \"-d\" должно быть указано имя принтера." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: После параметра \"-x\" должен быть указан принтер или группа." msgid "lpadmin: No member names were seen." msgstr "lpadmin: Имена пользователей не были найдены." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: Принтер %s уже находится в группе %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: Принтер %s не находится в группе %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: Имя принтера может содержать только печатаемые символы." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Не удается добавить принтер в группу:\n" "\t Необходимо сначала указать имя принтера." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: Не удается подключиться к серверу: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: Не удается создать временный файл" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: Не удается удалить параметр:\n" "\t Необходимо сначала указать имя принтера." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Не удается удалить принтер из группы:\n" "\t Необходимо сначала указать имя принтера." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: Не удается настроить параметры принтера:\n" "\t Необходимо сначала указать имя принтера." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Неизвестный параметр allow/deny \"%s\"." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: Неизвестный аргумент \"%s\"." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Неизвестный параметр \"%c\"." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Внимание - список типов содержимого пропущен." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "lpinfo: После \"--device-id\" должна идти строка ID устройства 1284" msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: После \"--language\" необходимо указать язык." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: После \"--make-and-model\" должна быть указана марка и модель." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: После \"--product\" должна идти строка продукта." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: После \"--exclude-schemes\" должен идти список схем." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: После \"--include-schemes\" должен идти список схем." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: После \"--timeout\" должно быть указано время ожидания" #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: Не удается подключиться к серверу: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Неизвестный аргумент \"%s\"." msgid "lpoptions: No printers." msgstr "lpoptions: Нет принтеров." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: Не удается добавить принтер или представителя класса: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: Не удается получить PPD-файл для %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: Не удается открыть PPD файл для %s" msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Неизвестный принтер или группа" #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: ошибка - %s переменная окружения указывает несуществующее " "назначение \"%s\"" #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "члены группы %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "нет записей" msgid "no system default destination" msgstr "Нет назначение системы по умолчанию" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "notify-events не указаны." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI \"%s\" уже используется." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI \"%s\" использует неизвестную схему." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "задержка" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: Добавление каталога \"%s\"." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: Добавление/обновление текста интерфейса из %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: Недопустимое двоичное значение (%s) в строке %d из %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: Недопустимый атрибут шрифта: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: Недопустимое имя разрешения \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: Недопустимое ключевое слово статуса %s в строке %d из %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc: Недопустимая замена переменной ($%c) в строке %d из %s." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" "ppdc: В строке %d из %s обнаружено значение, не привязанное к параметру" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: Дубликат #po для региона %s в строке %d из %s" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть определение фильтра." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть имя программы." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть двоичное значение." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "ppdc: После Font в строке %d из %s должен быть набор символов." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть код выбора." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть имя/текст выбора." #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" "ppdc: После ColorModel в строке %d из %s должна быть указана цветовая схема." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "ppdc: Для ColorModel в строке %d из %s должно быть указано colorspace." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: Для ColorModel в строке %d из %s должно быть указано сжатие." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: Для UIConstraints в строке %d из %s должна быть указана строка " "ограничений." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: После DriverType в строке %d из %s должно быть указано ключевое слово " "типа драйвера." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc: После Duplex в строке %d из %s должен быть указан тип дуплекса." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: После Font в строке %d из %s должна быть указана кодировка." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "После #po %s в строке %d из %s должно быть указано имя файла." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть указанно имя группы/текст." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть указано имя файла." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть целое число." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: После #po в строке %d из %s должен быть указан регион." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: После %s в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: После FileName в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: После Font в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: После Manufacturer в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: После MediaSize в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: После ModelName в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: После PCFileName в строке %d из %s должно быть указано имя." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: После %s в строке %d из %s должно быть указано имя/текст." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" "ppdc: После Installable в строке %d из %s должно быть указано имя/текст." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" "ppdc: После Resolution в строке %d из %s должно быть указано имя/текст." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: После ColorModel в строке %d из %s должно быть указано имя/текст." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть указано имя параметра/текст." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: В строке %d из %s должен быть указан раздел параметров." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: В строке %d из %s должен быть указан тип параметра." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: После Resolution в строке %d из %s должно быть поле переопределения." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: В строке %d из %s должна быть запись в кавычках." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: В строке %d из %s должно быть действительное число." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: После ColorProfile в строке %d из %s должно быть указано разрешение/" "тип носителя." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: После SimpleColorProfile в строке %d из %s должно быть указано " "разрешение/тип носителя." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: После %s в строке %d из %s должен быть selector." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: После Font в строке %d из %s должен быть указан статус." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: В строке %d из %s пропущено значение параметра Copyright." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: В строке %d из %s пропущено значение параметра Version." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: В строке %d из %s должны быть два имени параметра." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: После %s в строке %d из %s должно быть значение." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: После Font в строке %d из %s должна быть указана версия." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: Неверное имя файла #include/#po \"%s\"." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: Затраты на фильтр в строке %d из %s указаны неверно." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc: Недопустимый пустой MIME-тип для фильтра в строке %d из %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "ppdc: Недопустимое пустое имя программы для фильтра в строке %d из %s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: Неверный раздел параметров \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: Неверный тип параметра \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: Загружается файл с информацией о драйвере \"%s\"." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: Загружаю сообщения для региона \"%s\"." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: Загружаю сообщения из \"%s\"." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: Отсутствует #endif в конце \"%s\"." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: Отсутствует #if в строке %d из %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "ppdc: Требуется строка msgid перед строкой перевода в строке %d из %s" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: Не указан каталог сообщений для региона %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "ppdc: Параметр %s определен в двух разных группах в строке %d из %s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "ppdc: Для параметра %s определен другой тип в строке %d из %s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" "ppdc: Для ограничения параметра должно быть указано *name в строке %d из %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: Слишком много вложенных операторов #if в строке %d из %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: Не удается создать PPD-файл \"%s\" - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: Не удается создать каталог для выходных данных %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: Не удается создать конвейеры для выходных данных: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: Не удается выполнить cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: Не удается найти файл #po %s в строке %d из %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "ppdc: Не удается найти файл \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: Не удается найти перевод для \"%s\" - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: Не удается загрузить файл перевода \"%s\" - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: Не удается открыть %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: Не определена переменная (%s) в строке %d из %s." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: Неизвестный текст в %2$s строки %1$d" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: Неизвестный тип драйвера %s в строке %d из %s." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: Неизвестный тип дуплекса \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: Неизвестный размер бумаги \"%s\" в строке %d из %s." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: Неизвестный формат каталога сообщений для \"%s\"" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: Неизвестный маркер \"%s\" в строке %d из %s." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: Неизвестные конечные символы в вещественном числе \"%s\" в строке %d " "из %s." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc: Не завершена строка, начинающаяся с %c в строке %d из %s." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: Внимание - дублирующееся имя \"%s\"." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: Записывается %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: Записываются PPD-файлы в каталог \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: Неверное значение LanguageVersion \"%s\" в %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: Пропускается PPD-файл %s." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: Не удается создать резервную копию %s на %s- %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "принтер %s отключен с момента %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "принтер %s свободен. Включен с момента %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "принтер %s сейчас печатает %s-%d. Включен с момента %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "принтер %s/%s отключен с момента %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "принтер %s/%s свободен. Включен с момента %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "принтер %s/%s сейчас печатает %s-%d. Включен с момента %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "обработка" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "id запроса %s-%d (%d файл.)" msgid "request-id uses indefinite length" msgstr "Для request-id длина не определена" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "планировщик не запущен" msgid "scheduler is running" msgstr "планировщик запущен" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "не удалось установить %s: %s" msgid "status\t\tShow status of daemon and queue." msgstr "статус\t\tпоказать статус демона и очереди" #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "остановлен" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "назначение системы по умолчанию: %s" #, c-format msgid "system default destination: %s/%s" msgstr "назначение системы по умолчанию: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "неизвестный" msgid "untitled" msgstr "новый" msgid "variable-bindings uses indefinite length" msgstr "Для variable-bindings длина не установлена" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "Для экспорта драйверов принтера требуется пароль Samba" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "Для экспорта драйверов принтера требуется имя пользователя Samba" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Экспортировать принтеры в Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: Не удается задать Listen или Port." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: Не удается открыть PPD-файл \"%s\" - %s" cups-2.4.7/locale/cups_pt_BR.po0000644000175000017500000123552714502571342016237 0ustar zdohnalzdohnal# # Brazilian Portuguese message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # CUPS Glossary/Terminologies en->pt_BR # # character set = conjunto de caracteres # find = encontrar # get = obter # locate = localizar # not supported = Sem suporte a # open = abrir # status = estado # unable = não foi possível # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2016-01-31 16:45-0200\n" "Last-Translator: Rafael Fontenelle \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.6\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" msgid "\t\t(all)" msgstr "\t\t(todos)" msgid "\t\t(none)" msgstr "\t\t(nenhum)" #, c-format msgid "\t%d entries" msgstr "\t%d registros" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tApós a falha: continuar" #, c-format msgid "\tAlerts: %s" msgstr "\tAlertas: %s" msgid "\tBanner required" msgstr "\tBanner é necessário" msgid "\tCharset sets:" msgstr "\tDefinições de conjunto de caracteres:" msgid "\tConnection: direct" msgstr "\tConexão: direta" msgid "\tConnection: remote" msgstr "\tConexão: remota" msgid "\tContent types: any" msgstr "\tTipos de conteúdos: qualquer" msgid "\tDefault page size:" msgstr "\tTamanho de página padrão:" msgid "\tDefault pitch:" msgstr "\tPitch padrão:" msgid "\tDefault port settings:" msgstr "\tConfiguração de porta padrão:" #, c-format msgid "\tDescription: %s" msgstr "\tDescrição: %s" msgid "\tForm mounted:" msgstr "\tFormulário montado:" msgid "\tForms allowed:" msgstr "\tFormulários permitidos:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tInterface: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tInterface: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tLocalização: %s" msgid "\tOn fault: no alert" msgstr "\tCaso de falha: nenhum alerta" msgid "\tPrinter types: unknown" msgstr "\tTipos de impressoras: desconhecido" #, c-format msgid "\tStatus: %s" msgstr "\tEstado: %s" msgid "\tUsers allowed:" msgstr "\tUsuários permitidos:" msgid "\tUsers denied:" msgstr "\tUsuários proibidos:" msgid "\tdaemon present" msgstr "\tdaemon presente" msgid "\tno entries" msgstr "\tnenhum registro" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\timpressora está na velocidade -1 do dispositivo \"%s\"" msgid "\tprinting is disabled" msgstr "\timpressão está desabilitada" msgid "\tprinting is enabled" msgstr "\timpressão está habilitada" #, c-format msgid "\tqueued for %s" msgstr "\tna fila de %s" msgid "\tqueuing is disabled" msgstr "\tenfileiramento está desabilitado" msgid "\tqueuing is enabled" msgstr "\tenfileiramento está habilitado" msgid "\treason unknown" msgstr "\tmotivo desconhecido" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " RESULTADOS DETALHADOS DE TESTE DE CONFORMIDADE" msgid " REF: Page 15, section 3.1." msgstr " REF: Página 15, seção 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Página 15, seção 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Página 19, seção 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Página 20, seção 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Página 27, seção 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Página 42, seção 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Página 16-17, seção 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Página 42-45, seção 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Página 45-46, seção 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Página 48-49, seção 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Página 52-54, seção 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f bytes" #, c-format msgid " PASS Default%s" msgstr " PASSOU Default%s" msgid " PASS DefaultImageableArea" msgstr " PASSOU DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " PASSOU DefaultPaperDimension" msgid " PASS FileVersion" msgstr " PASSOU FileVersion" msgid " PASS FormatVersion" msgstr " PASSOU FormatVersion" msgid " PASS LanguageEncoding" msgstr " PASSOU LanguageEncoding" msgid " PASS LanguageVersion" msgstr " PASSOU LanguageVersion" msgid " PASS Manufacturer" msgstr " PASSOU Manufacturer" msgid " PASS ModelName" msgstr " PASSOU ModelName" msgid " PASS NickName" msgstr " PASSOU NickName" msgid " PASS PCFileName" msgstr " PASSOU PCFileName" msgid " PASS PSVersion" msgstr " PASSOU PSVersion" msgid " PASS PageRegion" msgstr " PASSOU PageRegion" msgid " PASS PageSize" msgstr " PASSOU PageSize" msgid " PASS Product" msgstr " PASSOU Product" msgid " PASS ShortNickName" msgstr " PASSOU ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " AVISO %s não possui opções correspondentes." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " AVISO %s compartilha um prefixo comum com %s\n" " REF: Página 15, seção 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " AVISO A opção Duplex de palavra-chave %s pode não funcionar como " "esperado e deve ser renomeada para Duplex.\n" " REF: Página 122, seção 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " AVISO Arquivo contém fim das linhas com uma mistura de CR, LF e CR " "LF." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " AVISO LanguageEncoding é necessário pela especificação PPD 4.3.\n" " REF: Páginas 56-57, seção 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " AVISO Linha %d contém somente espaço em branco." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " AVISO Fabricante é necessário pela especificação PPD 4.3.\n" " REF: Páginas 58-59, seção 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " AVISO Arquivos PPD de sistemas não-Windows deveriam usar fim de " "linhas somente com LR, e não CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " AVISO PPD versão %.1f está obsoleto.\n" " REF: Página 42, seção 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " AVISO PCFileName maior que 8.3 em violação com especificação PPD.\n" " REF: Páginas 61-62, seção 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " AVISO PCFileName deveria conter um nome de arquivo único.\n" " REF: Páginas 61-62, seção 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " AVISO Protocolos contêm PJL, mas atributos de JCL não estão " "definidos.\n" " REF: Páginas 78-79, seção 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " AVISO Protocolos contêm ambos PJL e BCP; esperava-se TBCP.\n" " REF: Páginas 78-79, seção 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " AVISO ShortNickName é necessário pela especificação PPD 4.3.\n" " REF: Páginas 64-65, seção 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" conflita com \"%s %s\"\n" " (restrição=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s não existe." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s Arquivo de %s \"%s\" possui letra maiúscula incorreta." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s Escolha %s inválida para %s.\n" " REF: Página 122, seção 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s Má string de tradução de \"%s\" em UTF-8 para a opção %s, escolha " "%s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %s Má string de tradução de \"%s\" em UTF-8 para a opção %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s Valor \"%s\" inválido para cupsFilter." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s Valor \"%s\" inválido para cupsFilter2." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s cupsICCProfile %s inválido." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s Valor \"%s\" inválido para cupsPreFilter." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s cupsUIConstraints %s inválido: \"%s\"" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s Idioma \"%s\" inválido." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s Permissões inválidas no arquivo %s \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s Pronúncia incorreta de %s - deveria ser %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" " %s Não é possível fornecer ambos APScanAppPath e APScanAppBundleID." #, c-format msgid " %s Default choices conflicting." msgstr " %s Escolhas padrão conflitando." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s cupsUIConstraints %s vazia" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" " %s Faltando string de tradução de \"%s\" para a opção %s, escolha %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s Faltando string de tradução de \"%s\" para a opção %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s Faltando %s arquivo \"%s\"." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s Faltando opção NECESSÁRIA PageRegion.\n" " REF: Página 100, seção 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s Faltando opção NECESSÁRIA PageSize.\n" " REF: Página 99, seção 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" " %s Faltando escolha de *%s %s em UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Faltando escolha *%s %s em cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s Faltando cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Faltando a opção %s em UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Faltando a opção %s em cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s Nenhuma tradução base de \"%s\" está inclusa no arquivo." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s %s NECESSÁRIO não define a escolha None.\n" " REF: Página 122, seção 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s Tamanho \"%s\" definido para %s, mas não para %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s Tamanho \"%s\" tem dimensões inesperadas (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s Tamanho \"%s\" deveria ser \"%s\"." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" " %s Tamanho \"%s\" deveria ser no padrão do Adobo chamado \"%s\"." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s Valor de hash de cupsICCProfile %s colide com %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s causa um loop." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" " %s cupsUIResolver %s não lista pelo menos duas opções diferentes." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **FALHA** %s deve ser 1284DeviceID\n" " REF: Página 72, seção 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **FALHA** Default%s inválido %s\n" " REF: Página 40, seção 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **FALHA** DefaultImageableArea inválido %s\n" " REF: Página 102, seção 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **FALHA** DefaultPaperDimension inválido %s\n" " REF: Página 103, seção 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FALHA** FileVersion inválido \"%s\"\n" " REF: Página 56, seção 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FALHA** FormatVersion inválido \"%s\"\n" " REF: Página 56, seção 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **FALHA** Atributo inválido de JobPatchFile no arquivo\n" " REF: Página 24, seção 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr " **FALHA** LanguageEncoding inválido %s - tem que ser ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr " **FALHA** LanguageVersion inválido %s - deve ser Inglês." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **FALHA** Manufacturer inválido (deveria ser \"%s\")\n" " REF: Página 211, tabela D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FALHA** ModelName inválido - \"%c\" não permitido na string.\n" " REF: Páginas 59-60, seção 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FALHA** PSVersion inválida - não \"(string) int\".\n" " REF: Páginas 62-64, seção 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **FALHA** Product inválido - não \"(string)\".\n" " REF: Página 62, seção 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **FALHA** ShortNickName inválido - maior do que 31 caracteres.\n" " REF: Páginas 64-65, seção 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **FALHA** Opção inválido %s escolha %s\n" " REF: Página 84, seção 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr " **FALHA** Código de opção padrão não pode ser interpretado: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **FALHA** String de tradução padrão para opção %s escolha %s contém " "caracteres de 8-bit." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **FALHA** String de tradução padrão para opção %s contém caracteres de " "8-bit." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" " **FALHA** Nomes dos grupos %s e %s se diferem somente por maiúsculo/" "minúsculo." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr " **FALHA** Múltiplas ocorrências da opção %s escolha de nome %s." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" " **FALHA** Opção %s escolha de nomes %s e %s se diferem somente por " "maiúsculo/minúsculo." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" " **FALHA** Os nomes de opção %s e %s se diferem somente por maiúsculo/" "minúsculo." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **FALHA** NECESSÁRIO Default%s\n" " REF: Página 40, seção 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **FALHA** NECESSÁRIO DefaultImageableArea\n" " REF: Página 102, seção 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **FALHA** NECESSÁRIO DefaultPaperDimension\n" " REF: Página 103, seção 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FALHA** NECESSÁRIO FileVersion\n" " REF: Página 56, seção 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FALHA** NECESSÁRIO FormatVersion\n" " REF: Página 56, seção 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **FALHA** NECESSÁRIO ImageableArea para PageSize %s\n" " REF: Página 41, seção 5.\n" " REF: Página 102, seção 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **FALHA** NECESSÁRIO LanguageEncoding\n" " REF: Páginas 56-57, seção 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **FALHA** NECESSÁRIO LanguageVersion\n" " REF: Páginas 57-58, seção 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **FALHA** NECESSÁRIO Manufacturer\n" " REF: Páginas 58-59, seção 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FALHA** NECESSÁRIO ModelName\n" " REF: Páginas 59-60, seção 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **FALHA** NECESSÁRIO NickName\n" " REF: Página 60, seção 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **FALHA** NECESSÁRIO PCFileName\n" " REF: Páginas 61-62, seção 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FALHA** NECESSÁRIO PSVersion\n" " REF: Páginas 62-64, seção 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **FALHA** NECESSÁRIO PageRegion\n" " REF: Página 100, seção 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **FALHA** NECESSÁRIO PageSize\n" " REF: Página 41, seção 5.\n" " REF: Página 99, seção 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **FALHA** NECESSÁRIO PageSize\n" " REF: Páginas 99-100, seção 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **FALHA** NECESSÁRIO PaperDimension para PageSize %s\n" " REF: Página 41, seção 5.\n" " REF: Página 103, seção 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **FALHA** NECESSÁRIO Product\n" " REF: Página 62, seção 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FALHA** NECESSÁRIO ShortNickName\n" " REF: Página 64-65, seção 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **FALHA** Não foi possível abrir o arquivo PPD - %s na linha %d." #, c-format msgid " %d ERRORS FOUND" msgstr " %d ERROS ENCONTRADOS" msgid " NO ERRORS FOUND" msgstr " NENHUM ERRO ENCONTRADO" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Fim de linhas com CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Fim de linhas com CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr " --list-filters Lista filtros que serão usados." msgid " -D Remove the input file when finished." msgstr " -D Remove o arquivo de entrada ao finalizar." msgid " -D name=value Set named variable to value." msgstr " -D nome=valor Define a variável \"nome\" com \"valor\"." msgid " -I include-dir Add include directory to search path." msgstr "" " -I dir-include Adiciona diretório de include ao caminho de " "pesquisa." msgid " -P filename.ppd Set PPD file." msgstr " -P arquivo.ppd Define arquivo PPD." msgid " -U username Specify username." msgstr " -U usuário Especifica nome do usuário." msgid " -c catalog.po Load the specified message catalog." msgstr "" " -c catálogo.po Carrega o catálogo de mensagens especificado." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" " -c cups-files.conf Define o arquivo cups-files.conf para ser usado." msgid " -d output-dir Specify the output directory." msgstr " -d dir-saída Especifica o diretório de saída." msgid " -d printer Use the named printer." msgstr " -d impressora Usa a impressora informada." msgid " -e Use every filter from the PPD file." msgstr " -e Usa todos os filtros do arquivo PPD." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i tipo-mime Define o tipo MIME de entrada (caso " "contrário, tipo automático)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] Filtra o arquivo N do trabalho especificado " "(o padrão é o arquivo 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l idioma[,idioma,...] Especifica o(s) idioma(s) de saída (locale)." msgid " -m Use the ModelName value as the filename." msgstr "" " -m Usa o valor de ModelName como o nome de arquivo." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m tipo-mime Define o tipo MIME de saída (caso " "contrário, aplicação/pdf)." msgid " -n copies Set number of copies." msgstr " -n cópias Define número de cópias." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o arquivo.drv Define o arquivo de informações do " "driver (caso contrário, ppdi.drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o arquivo.ppd[.gz] Define arquivo de saída (caso contrário, stdout)." msgid " -o name=value Set option(s)." msgstr " -o nome=valor Define opção/opções." msgid " -p filename.ppd Set PPD file." msgstr " -p arquivo.ppd Define arquivo PPD." msgid " -t Test PPDs instead of generating them." msgstr " -t Testa PPDs ao invés de criá-los." msgid " -t title Set title." msgstr " -t título Define um título." msgid " -u Remove the PPD file when finished." msgstr " -u Remove o arquivo PPD ao final." msgid " -v Be verbose." msgstr " -v Modo detalhado." msgid " -z Compress PPD files using GNU zip." msgstr " -z Compacta arquivos PPD usando GNU zip." msgid " FAIL" msgstr " FALHA" msgid " PASS" msgstr " PASSOU" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f bytes" #, c-format msgid "%d x %d mm" msgstr "%d x %d mm" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (Sem borda)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (Sem borda, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (Sem borda, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s está aceitando requisições desde %s" #, c-format msgid "%s cannot be changed." msgstr "%s não pode ser alterada." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s não está implementada pela versão CUPS do lpc." #, c-format msgid "%s is not ready" msgstr "%s não está pronta" #, c-format msgid "%s is ready" msgstr "%s está pronta" #, c-format msgid "%s is ready and printing" msgstr "%s está pronta e imprimindo" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s job-id usuário título cópia opções [arquivo]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s não está aceitando requisições desde %s -" #, c-format msgid "%s not supported." msgstr "não há suporte a %s." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s está aceitando requisições desde %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s não está aceitando requisições desde %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [trabalho %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s falhou: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s: URI de impressora inválida \"%s\"." #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: Versão inválida %s para \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: Não sei o que fazer." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: Erro - A variável de ambiente %s contém destino inexistente \"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: Erro - adicione '/version=1.1' ao nome do servidor." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: Erro - ID de trabalho inválido." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: Erro - não é possível imprimir arquivos e alterar trabalhos " "simultaneamente." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: Erro - não é possível imprimir de stdin se os arquivos ou um ID de " "trabalho forem fornecidos." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: Erro - esperava uma codificação de caracteres após a opção \"-S\"." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: Erro - esperava um tipo de conteúdo após a opção \"-T\"." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: Erro - esperava cópias após a opção \"-#\"." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: Erro - esperava cópias após a opção \"-n\"." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: Erro - esperava um destino após a opção \"-P\"." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: Erro - esperava um destino após a opção \"-d\"." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: Erro - esperava um formulário após a opção \"-f\"." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: Erro - esperava um nome para segurar após a opção \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: Erro - esperava o nome da máquina após a opção \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: Erro - esperava o nome da máquina após a opção \"-h\"." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: Erro - esperava uma lista de modos após a opção \"-y\"." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: Erro - esperava um nome após a opção \"-%c\"." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: Erro - esperava opção=valor após a opção \"-o\"." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: Erro - esperava uma lista de página após a opção \"-P\"." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: Erro - esperava uma prioridade após a opção \"-%c\"." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: Erro - esperava um texto com motivo após a opção \"-r\"." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: Erro - esperava um título após a opção \"-t\"." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: Erro - esperava um nome de usuário após a opção \"-U\"." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: Erro - esperava um nome de usuário após a opção \"-u\"." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: Erro - esperava um valor após a opção \"-%c\"." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: Erro - precisa de \"completed\", \"not-completed\" ou \"all\" após a " "opção \"-W\"." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: Erro - nenhum destino padrão disponível." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: Erro - prioridade deve estar entre 1 e 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: Erro - agendador não está respondendo." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: Erro - arquivos demais - \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: Erro - não foi possível acessar \"%s\" - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: Erro - não foi possível enfilerar de stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: Erro - destino desconhecido \"%s\"." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: Erro - destino desconhecido \"%s/%s\"." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: Erro - opção desconhecida \"%c\"." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: Erro - opção desconhecida \"%s\"." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: Esperava ID do trabalho após a \"-i\"." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: Nome de destino inválido na lista \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: String de filtro inválida \"%s\"." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: Faltando nome de arquivo para \"-P\"." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: Faltando tempo de espera para \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: Faltando versão para \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: Precisa de ID de trabalho (\"-i jobid\") antes de \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: Nenhum filtro para converter de %s/%s para %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: Operação falhou: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: Desculpa, não há suporte a criptografia." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s: Não foi possível conectar a \"%s:%d\": %s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: Não foi possível conectar ao servidor." #, c-format msgid "%s: Unable to contact server." msgstr "%s: Não foi possível contactar o servidor." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s: Não foi possível criar o arquivo PDD: %s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: Não foi possível determinar o tipo MIME de \"%s\"." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: Não foi possível abrir \"%s\": %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: Não foi possível abrir %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: Não foi possível abrir o arquivo PPD: %s na linha %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: Não foi possível ler o banco de dados MIME de \"%s\" ou \"%s\"." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s: Não foi possível resolver \"%s\"." #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: Destino desconhecido \"%s\"." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: Tipo de MIME de destino desconhecido %s/%s." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: Opção desconhecida \"%c\"." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: Opção desconhecida \"%s\"." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: Opção desconhecida \"-%c\"." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: Tipo MIME de origem desconhecida %s/%s." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: Aviso - não há suporte ao modificador de formato \"%c\" - a saída pode " "não ficar correta." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: Aviso - opção de conjunto de caracteres ignorada." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: Aviso - opção de tipo de conteúdo ignorada." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: Aviso - opção de formulário ignorada." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: Aviso - opção modo ignorada." msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 pol/seg." msgid "1.25x0.25\"" msgstr "1.25x0.25\"" msgid "1.25x2.25\"" msgstr "1.25x2.25\"" msgid "1.5 inch/sec." msgstr "1.5 pol/seg." msgid "1.50x0.25\"" msgstr "1.50x0.25\"" msgid "1.50x0.50\"" msgstr "1.50x0.50\"" msgid "1.50x1.00\"" msgstr "1.50x1.00\"" msgid "1.50x2.00\"" msgstr "1.50x2.00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 pol/seg." msgid "10 x 11" msgstr "10 x 11" msgid "10 x 13" msgstr "10 x 13" msgid "10 x 14" msgstr "10 x 14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/s" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 pol/s" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 pol/s" msgid "12 x 11" msgstr "12 x 11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/s" msgid "120x60dpi" msgstr "120x60dpi" msgid "120x72dpi" msgstr "120x72dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/s" msgid "15 x 11" msgstr "15 x 11" msgid "150 mm/sec." msgstr "150 mm/s" msgid "150dpi" msgstr "150dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 pol/s" msgid "2-Sided Printing" msgstr "Frente e Verso" msgid "2.00x0.37\"" msgstr "2.00x0.37\"" msgid "2.00x0.50\"" msgstr "2.00x0.50\"" msgid "2.00x1.00\"" msgstr "2.00x1.00\"" msgid "2.00x1.25\"" msgstr "2.00x1.25\"" msgid "2.00x2.00\"" msgstr "2.00x2.00\"" msgid "2.00x3.00\"" msgstr "2.00x3.00\"" msgid "2.00x4.00\"" msgstr "2.00x4.00\"" msgid "2.00x5.50\"" msgstr "2.00x5.50\"" msgid "2.25x0.50\"" msgstr "2.25x0.50\"" msgid "2.25x1.25\"" msgstr "2.25x1.25\"" msgid "2.25x4.00\"" msgstr "2.25x4.00\"" msgid "2.25x5.50\"" msgstr "2.25x5.50\"" msgid "2.38x5.50\"" msgstr "2.38x5.50\"" msgid "2.5 inches/sec." msgstr "2.5 pol/s" msgid "2.50x1.00\"" msgstr "2.50x1.00\"" msgid "2.50x2.00\"" msgstr "2.50x2.00\"" msgid "2.75x1.25\"" msgstr "2.75x1.25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/s" msgid "200 mm/sec." msgstr "200 mm/s" msgid "203dpi" msgstr "203dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "Séries de 24 agulhas" msgid "240x72dpi" msgstr "240x72dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/s" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 pol/s" msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00\"" msgid "3.00x1.25\"" msgstr "3.00x1.25\"" msgid "3.00x2.00\"" msgstr "3.00x2.00\"" msgid "3.00x3.00\"" msgstr "3.00x3.00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00\"" msgid "3.25x5.00\"" msgstr "3.25x5.00\"" msgid "3.25x5.50\"" msgstr "3.25x5.50\"" msgid "3.25x5.83\"" msgstr "3.25x5.83\"" msgid "3.25x7.83\"" msgstr "3.25x7.83\"" msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "Disco de 3.5\"" msgid "3.50x1.00\"" msgstr "3.50x1.00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/s" msgid "300 mm/sec." msgstr "300 mm/s" msgid "300dpi" msgstr "300dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360dpi" msgid "360x180dpi" msgstr "360x180dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 pol/s" msgid "4.00x1.00\"" msgstr "4.00x1.00\"" msgid "4.00x13.00\"" msgstr "4.00x13.00\"" msgid "4.00x2.00\"" msgstr "4.00x2.00\"" msgid "4.00x2.50\"" msgstr "4.00x2.50\"" msgid "4.00x3.00\"" msgstr "4.00x3.00\"" msgid "4.00x4.00\"" msgstr "4.00x4.00\"" msgid "4.00x5.00\"" msgstr "4.00x5.00\"" msgid "4.00x6.00\"" msgstr "4.00x6.00\"" msgid "4.00x6.50\"" msgstr "4.00x6.50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/s" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 pol/s" msgid "5 x 7" msgstr "5 x 7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 pol/s" msgid "6.00x1.00\"" msgstr "6.00x1.00\"" msgid "6.00x2.00\"" msgstr "6.00x2.00\"" msgid "6.00x3.00\"" msgstr "6.00x3.00\"" msgid "6.00x4.00\"" msgstr "6.00x4.00\"" msgid "6.00x5.00\"" msgstr "6.00x5.00\"" msgid "6.00x6.00\"" msgstr "6.00x6.00\"" msgid "6.00x6.50\"" msgstr "6.00x6.50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/s" msgid "600dpi" msgstr "600dpi" msgid "60dpi" msgstr "60dpi" msgid "60x72dpi" msgstr "60x72dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 pol/s" msgid "7 x 9" msgstr "7 x 9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 pol/s" msgid "8 x 10" msgstr "8 x 10" msgid "8.00x1.00\"" msgstr "8.00x1.00\"" msgid "8.00x2.00\"" msgstr "8.00x2.00\"" msgid "8.00x3.00\"" msgstr "8.00x3.00\"" msgid "8.00x4.00\"" msgstr "8.00x4.00\"" msgid "8.00x5.00\"" msgstr "8.00x5.00\"" msgid "8.00x6.00\"" msgstr "8.00x6.00\"" msgid "8.00x6.50\"" msgstr "8.00x6.50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/s" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 pol/s" msgid "9 x 11" msgstr "9 x 11" msgid "9 x 12" msgstr "9 x 12" msgid "9-Pin Series" msgstr "Série de 9 agulhas" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Comando de ajuda inválido desconhecido." #, c-format msgid "A class named \"%s\" already exists." msgstr "Uma classe chamada \"%s\" já existe." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Uma impressora chamada \"%s\" já existe." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 borda maior" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 borda maior" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 borda maior" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 borda maior" msgid "A3 Oversize" msgstr "A3 grande" msgid "A3 Oversize Long Edge" msgstr "A3 borda muito maior" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 borda maior" msgid "A4 Oversize" msgstr "A4 grande" msgid "A4 Small" msgstr "A4 pequeno" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 borda maior" msgid "A5 Oversize" msgstr "A5 grande" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 borda maior" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C borda maior" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D borda maior" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E borda maior" msgid "Accept Jobs" msgstr "Aceitando trabalhos" msgid "Accepted" msgstr "Aceitou" msgid "Add Class" msgstr "Adicionar classe" msgid "Add Printer" msgstr "Adicionar impressora" msgid "Address" msgstr "Endereço" msgid "Administration" msgstr "Administração" msgid "Always" msgstr "Sempre" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Aplicador" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" "Tentativa de definir o estado da impressora %s para o valor inválido %d." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Grupos de atributos estão fora de ordem (%x < %x)." msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "B5 grande" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "Valor de \"document-format\" inválido \"%s\"." msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Ponteiro de destinatário NULO inválido" msgid "Bad OpenGroup" msgstr "OpenGroup inválido" msgid "Bad OpenUI/JCLOpenUI" msgstr "OpenUI/JCLOpenUI inválido" msgid "Bad OrderDependency" msgstr "OrderDependency inválido" msgid "Bad PPD cache file." msgstr "Arquivo de cache de PPD inválido." msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "Requisição inválida" msgid "Bad SNMP version number" msgstr "Número de versão SNMP inválido" msgid "Bad UIConstraints" msgstr "UIConstraints inválido" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "Argumentos inválidos para função" #, c-format msgid "Bad copies value %d." msgstr "Valor de cópias inválido %d." msgid "Bad custom parameter" msgstr "Parâmetro personalizado inválido" #, c-format msgid "Bad device-uri \"%s\"." msgstr "device-uri inválido \"%s\"." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Esquema device-uri inválido \"%s\"." #, c-format msgid "Bad document-format \"%s\"." msgstr "document-format inválido \"%s\"." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "document-format-default inválido \"%s\"." msgid "Bad filename buffer" msgstr "Buffer de nome de arquivo inválido" msgid "Bad hostname/address in URI" msgstr "Nome de máquina/Endereço inválidos na URI" #, c-format msgid "Bad job-name value: %s" msgstr "Valor de job-name inválido: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Valor de job-name inválido: Quantidade ou tipo inválido." msgid "Bad job-priority value." msgstr "Valor job-priority inválido." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Valor de job-sheets inválido \"%s\"." msgid "Bad job-sheets value type." msgstr "Tipo de valor de job-sheets inválido." msgid "Bad job-state value." msgstr "Valor de job-state inválido." #, c-format msgid "Bad job-uri \"%s\"." msgstr "job-uri inválido \"%s\"." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "notify-pull-method inválido \"%s\"." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "notify-recipient-uri inválido \"%s\"." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Valor de number-up inválido %d." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Valor de page-ranges inválido %d-%d." msgid "Bad port number in URI" msgstr "Número de porta inválida" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "port-monitor inválido \"%s\"." #, c-format msgid "Bad printer-state value %d." msgstr "Valor de printer-state inválido %d." msgid "Bad printer-uri." msgstr "printer-uri inválido." #, c-format msgid "Bad request ID %d." msgstr "ID da requisição inválido %d." #, c-format msgid "Bad request version number %d.%d." msgstr "Número da versão de requisição inválido %d.%d." msgid "Bad resource in URI" msgstr "Recurso inválido na URI" msgid "Bad scheme in URI" msgstr "Esquema inválido na URI" msgid "Bad username in URI" msgstr "Usuário inválido na URI" msgid "Bad value string" msgstr "String de valor inválido" msgid "Bad/empty URI" msgstr "URI vazia/inválida" msgid "Banners" msgstr "Banners" msgid "Bond Paper" msgstr "Papel autocolante" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "Esperava booleano para opção waiteof \"%s\"." msgid "Buffer overflow detected, aborting." msgstr "Estouro de pilha do buffer detectado, abortando." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "Impressora de etiqueta CPCL" msgid "Cancel Jobs" msgstr "Cancelar trabalhos" msgid "Canceling print job." msgstr "Cancelando trabalho de impressão." msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "Não foi possível compartilhar uma impressora remota via Kerberos." msgid "Cassette" msgstr "Cassette" msgid "Change Settings" msgstr "Alterar configurações" #, c-format msgid "Character set \"%s\" not supported." msgstr "Não há suporte ao conjunto de caracteres \"%s\"." msgid "Classes" msgstr "Classes" msgid "Clean Print Heads" msgstr "Limpar cabeça de impressão" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job não suporta o atributo job-uri." msgid "Color" msgstr "Cor" msgid "Color Mode" msgstr "Modo colorido" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Comandos podem ser abreviados. Os comandos são:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Nome da comunidade usa comprimento indefinido" msgid "Connected to printer." msgstr "Conectado à impressora." msgid "Connecting to printer." msgstr "Conectando à impressora." msgid "Continue" msgstr "Continuar" msgid "Continuous" msgstr "Contínuo" msgid "Control file sent successfully." msgstr "Arquivo de controle enviado com sucesso." msgid "Copying print data." msgstr "Copiando dados de impressão." msgid "Created" msgstr "Criada" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Personalizar" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Cortar" msgid "Cutter" msgstr "Cortador" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Escuro" msgid "Darkness" msgstr "Escuridão" msgid "Data file sent successfully." msgstr "Arquivo de dados enviado com sucesso." msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Excluir classe" msgid "Delete Printer" msgstr "Excluir impressora" msgid "DeskJet Series" msgstr "DeskJet Séries" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "Destino \"%s\" não está aceitando trabalhos." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Dispositivo: uri = %s\n" " classe = %s\n" " info = %s\n" " marca-e-modelo = %s\n" " dispo-id = %s\n" " localização = %s" msgid "Direct Thermal Media" msgstr "Mídia Térmica Direta" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "Diretório \"%s\" contém um caminho relativo." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Diretório \"%s\" contém permissões inseguras (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "Diretório \"%s\" é um arquivo." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Diretório \"%s\" não está disponível: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Permissões do diretório \"%s\" estão OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Desabilitado" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "Documento #%d não existe no trabalho #%d." msgid "Draft" msgstr "" msgid "Duplexer" msgstr "Duplexador" msgid "EPL1 Label Printer" msgstr "Impressora de etiqueta EPL1" msgid "EPL2 Label Printer" msgstr "Impressora de etiqueta EPL2" msgid "Edit Configuration File" msgstr "Editar arquivo de configuração" msgid "Encryption is not supported." msgstr "Não há suporte a criptografia." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Banner ao final" msgid "English" msgstr "Inglês" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Digite seu nome de usuário e senha, ou do usuário root, para acessar esta " "página. Se você estiver usando autenticação Kerberos, certifique-se de que " "você tem um ticket Kerberos válido." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "Envelope #11" msgid "Envelope #12" msgstr "Envelope #12" msgid "Envelope #14" msgstr "Envelope #14" msgid "Envelope #9" msgstr "Envelope #9" msgid "Envelope B4" msgstr "Envelope B4" msgid "Envelope B5" msgstr "Envelope B5" msgid "Envelope B6" msgstr "Envelope B6" msgid "Envelope C0" msgstr "Envelope C0" msgid "Envelope C1" msgstr "Envelope C1" msgid "Envelope C2" msgstr "Envelope C2" msgid "Envelope C3" msgstr "Envelope C3" msgid "Envelope C4" msgstr "Envelope C4" msgid "Envelope C5" msgstr "Envelope C5" msgid "Envelope C6" msgstr "Envelope C6" msgid "Envelope C65" msgstr "Envelope C65" msgid "Envelope C7" msgstr "Envelope C7" msgid "Envelope Choukei 3" msgstr "Envelope Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Envelope Choukei 3 borda maior" msgid "Envelope Choukei 4" msgstr "Envelope Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Envelope Choukei 4 borda maior" msgid "Envelope DL" msgstr "Envelope DL" msgid "Envelope Feed" msgstr "Alimentação de Envelope" msgid "Envelope Invite" msgstr "Envelope Convite" msgid "Envelope Italian" msgstr "Envelope Italiano" msgid "Envelope Kaku2" msgstr "Envelope Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Envelope Kaku2 borda maior" msgid "Envelope Kaku3" msgstr "Envelope Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Envelope Kaku3 borda maior" msgid "Envelope Monarch" msgstr "Envelope Monarch" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "Envelope PRC1 borda maior" msgid "Envelope PRC10" msgstr "Envelope PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Envelope PRC10 borda maior" msgid "Envelope PRC2" msgstr "Envelope PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Envelope PRC2 borda maior" msgid "Envelope PRC3" msgstr "Envelope PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Envelope PRC3 borda maior" msgid "Envelope PRC4" msgstr "Envelope PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Envelope PRC4 borda maior" msgid "Envelope PRC5 Long Edge" msgstr "Envelope PRC5 borda maior" msgid "Envelope PRC5PRC5" msgstr "Envelope PRC5" msgid "Envelope PRC6" msgstr "Envelope PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Envelope PRC6 borda maior" msgid "Envelope PRC7" msgstr "Envelope PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Envelope PRC7 borda maior" msgid "Envelope PRC8" msgstr "Envelope PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Envelope PRC8 borda maior" msgid "Envelope PRC9" msgstr "Envelope PRC9" msgid "Envelope PRC9 Long Edge" msgstr "Envelope PRC9 borda maior" msgid "Envelope Personal" msgstr "Envelope Pessoal" msgid "Envelope You4" msgstr "Envelope You4" msgid "Envelope You4 Long Edge" msgstr "Envelope You4 borda maior" msgid "Environment Variables:" msgstr "Variáveis de ambiente:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Política de erro" msgid "Error reading raster data." msgstr "Erro ao ler dados de rasterização." msgid "Error sending raster data." msgstr "Erro ao enviar dados de rasterização." msgid "Error: need hostname after \"-h\" option." msgstr "Erro: precisa de nome da máquina após a opção \"-h\"." msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "A cada 10 etiquetas" msgid "Every 2 Labels" msgstr "A cada 2 etiquetas" msgid "Every 3 Labels" msgstr "A cada 3 etiquetas" msgid "Every 4 Labels" msgstr "A cada 4 etiquetas" msgid "Every 5 Labels" msgstr "A cada 5 etiquetas" msgid "Every 6 Labels" msgstr "A cada 6 etiquetas" msgid "Every 7 Labels" msgstr "A cada 7 etiquetas" msgid "Every 8 Labels" msgstr "A cada 8 etiquetas" msgid "Every 9 Labels" msgstr "A cada 9 etiquetas" msgid "Every Label" msgstr "A cada etiqueta" msgid "Executive" msgstr "Executivo" msgid "Expectation Failed" msgstr "Falhou a expectativa" msgid "Expressions:" msgstr "Expressões:" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "Arquivo \"%s\" contém um caminho relativo." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Arquivo \"%s\" tem permissões inseguras (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "Arquivo \"%s\" é um diretório." #, c-format msgid "File \"%s\" not available: %s" msgstr "Arquivo \"%s\" não está disponível: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Permissões do arquivo \"%s\" estão OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "URIs de arquivos de dispositivo foram desabilitadas. Para habilitar, veja a " "diretiva FileDevice em \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Terminou página %d." msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Fólio" msgid "Forbidden" msgstr "Proibido" msgid "Found" msgstr "" msgid "General" msgstr "Geral" msgid "Generic" msgstr "Genérico" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU usa comprimento indefinido" msgid "Glossy Paper" msgstr "Papel brilhante" msgid "Got a printer-uri attribute but no job-id." msgstr "Atributo printer-ui obtido, mas nenhum job-id." msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Escalas de cinza" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Pasta suspensa" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "Arquivo de ajuda não está no índice." msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "Atributo 1setOf de IPP com tags de valor incompatível." msgid "IPP attribute has no name." msgstr "Atributo de IPP não tem nome." msgid "IPP attribute is not a member of the message." msgstr "Atributo de IPP não é um membro da mensagem." msgid "IPP begCollection value not 0 bytes." msgstr "Valor begCollection de IPP não contém 0 bytes." msgid "IPP boolean value not 1 byte." msgstr "Valor booleano de IPP não contém 1 byte." msgid "IPP date value not 11 bytes." msgstr "Valor de data de IPP não contém 11 bytes." msgid "IPP endCollection value not 0 bytes." msgstr "Valor endCollection IPP não contém 0 bytes." msgid "IPP enum value not 4 bytes." msgstr "Valor enum de IPP não contém 4 bytes." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "Tag de extensão de IPP maior do que 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "Valor inteiro de IPP não contém 4 bytes." msgid "IPP language length overflows value." msgstr "Comprimento do idioma de IPP excede o valor." msgid "IPP language length too large." msgstr "Comprimento do idioma de IPP muito grande." msgid "IPP member name is not empty." msgstr "Nome de membro de IPP não está vazio." msgid "IPP memberName value is empty." msgstr "Valor de memberName de IPP está vazio." msgid "IPP memberName with no attribute." msgstr "memberName de IPP sem atributo algum." msgid "IPP name larger than 32767 bytes." msgstr "Nome de IPP maior do que 32767 bytes." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "Valor de nameWithLanguage de IPP menor do que o mínimo de 4 bytes." msgid "IPP octetString length too large." msgstr "Comprimento de octetString de IPP muito grande." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "Valor de rangeOfInteger de IPP não contém 8 bytes." msgid "IPP resolution value not 9 bytes." msgstr "Valor de resolução de IPP não contém 9 bytes." msgid "IPP string length overflows value." msgstr "Comprimento da string de IPP excede o valor." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "Valor de textWithLanguage de IPP menor do que o mínimo de 4 bytes." msgid "IPP value larger than 32767 bytes." msgstr "Valor de IPP maior do que 32767 bytes." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Caractere de controle é ilegal" msgid "Illegal main keyword string" msgstr "String ilegal de palavra-chave principal" msgid "Illegal option keyword string" msgstr "String ilegal de palavra-chave de opção" msgid "Illegal translation string" msgstr "String ilegal de tradução" msgid "Illegal whitespace character" msgstr "Caractere ilegal de espaço em branco" msgid "Installable Options" msgstr "Opções instaláveis" msgid "Installed" msgstr "Instalada" msgid "IntelliBar Label Printer" msgstr "Impressora de etiqueta IntelliBar" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Erro interno de servidor" msgid "Internal error" msgstr "Erro interno" msgid "Internet Postage 2-Part" msgstr "Internet Postage Parte-2" msgid "Internet Postage 3-Part" msgstr "Internet Postage Parte-3" msgid "Internet Printing Protocol" msgstr "Protocolo de Impressão para Internet" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "Argumentos de nome de mídia inválidos." msgid "Invalid media size." msgstr "Tamanho de mídia inválido." msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "Comando de impressora \"%s\" inválido." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 borda maior" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 borda maior" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 borda maior" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "O trabalho #%d não pode ser reiniciado - nenhum arquivo." #, c-format msgid "Job #%d does not exist." msgstr "Trabalho #%d não existe." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Trabalho #%d já foi abortado - não é possível cancelar." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Trabalho #%d já foi cancelado - não é possível cancelar." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Trabalho #%d já concluiu - não é possível cancelar." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "Trabalho #%d já finalizou e não pode ser alterado." #, c-format msgid "Job #%d is not complete." msgstr "Trabalho #%d não concluiu." #, c-format msgid "Job #%d is not held for authentication." msgstr "Trabalho #%d não está agarrado para autenticação." #, c-format msgid "Job #%d is not held." msgstr "Trabalho #%d não está agarrado." msgid "Job Completed" msgstr "Trabalho concluiu" msgid "Job Created" msgstr "Trabalho criado" msgid "Job Options Changed" msgstr "Opções do trabalho alteradas" msgid "Job Stopped" msgstr "Trabalho parou" msgid "Job is completed and cannot be changed." msgstr "Trabalho está concluído e não pode ser alterado." msgid "Job operation failed" msgstr "Operação do trabalho falhou" msgid "Job state cannot be changed." msgstr "Estado do trabalho não pode ser alterado." msgid "Job subscriptions cannot be renewed." msgstr "Inscrições de trabalho não podem ser renovadas." msgid "Jobs" msgstr "Trabalhos" msgid "LPD/LPR Host or Printer" msgstr "Impressora ou máquina LPD/LPR" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Impressora de etiqueta" msgid "Label Top" msgstr "Parte superior da etiqueta" #, c-format msgid "Language \"%s\" not supported." msgstr "Não há suporte ao idioma \"%s\"." msgid "Large Address" msgstr "Endereço grande" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Series PCL 4/5" msgid "Letter Oversize" msgstr "Carta grande" msgid "Letter Oversize Long Edge" msgstr "Carta borda muito maior" msgid "Light" msgstr "Leve" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Linha maior do que o máximo permitido (255 caracteres)" msgid "List Available Printers" msgstr "Lista de impressoras disponíveis" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "Borda maior (retrato)" msgid "Looking for printer." msgstr "Procurando impressoras." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Alimentação manual" msgid "Media Size" msgstr "Tamanho de mídia" msgid "Media Source" msgstr "Fonte de mídia" msgid "Media Tracking" msgstr "Rastreamento de mídia" msgid "Media Type" msgstr "Tipo de mídia" msgid "Medium" msgstr "Médio" msgid "Memory allocation error" msgstr "Erro de alocação de memória" msgid "Missing CloseGroup" msgstr "Faltando CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Faltando cabeçalho PPD-Adobe-4.x" msgid "Missing asterisk in column 1" msgstr "Faltando asterisco na coluna 1" msgid "Missing document-number attribute." msgstr "Faltando atributo document-number." msgid "Missing form variable" msgstr "Faltando variável de formulário" msgid "Missing last-document attribute in request." msgstr "Faltando atributo last-document na requisição." msgid "Missing media or media-col." msgstr "Faltando media ou media-col." msgid "Missing media-size in media-col." msgstr "Faltando media-size em media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Faltando atributo notify-subscription-ids." msgid "Missing option keyword" msgstr "Faltando palavra-chave de opção" msgid "Missing requesting-user-name attribute." msgstr "Faltando atributo requesting-user-name." #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "Faltando atributos necessários." msgid "Missing resource in URI" msgstr "Faltando rescurso na URI" msgid "Missing scheme in URI" msgstr "Faltando esquema na URI" msgid "Missing value string" msgstr "Faltando string de valor" msgid "Missing x-dimension in media-size." msgstr "Faltando dimensão-x em media-size." msgid "Missing y-dimension in media-size." msgstr "Faltando dimensão-y em media-size." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Modelo: nome = %s\n" " idioma_natural = %s\n" " marca-e-modelo = %s\n" " id-dispositivo = %s" msgid "Modifiers:" msgstr "Modificadores:" msgid "Modify Class" msgstr "Modificar classe" msgid "Modify Printer" msgstr "Modificar impressora" msgid "Move All Jobs" msgstr "Mover todos trabalhos" msgid "Move Job" msgstr "Mover trabalho" msgid "Moved Permanently" msgstr "Mover permanentemente" msgid "NULL PPD file pointer" msgstr "Ponteiro NULO para arquivo PPD" msgid "Name OID uses indefinite length" msgstr "OID de nome usa comprimento indefinido" msgid "Nested classes are not allowed." msgstr "Classes aninhadas não são permitidas." msgid "Never" msgstr "Nunca" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "Não" msgid "No Content" msgstr "Nenhum conteúdo" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "Nenhum nome PPD" msgid "No VarBind SEQUENCE" msgstr "Nenhuma SEQUENCE de VarBind" msgid "No active connection" msgstr "Nenhuma conexão ativa" msgid "No active connection." msgstr "Nenhuma conexão ativa." #, c-format msgid "No active jobs on %s." msgstr "Nenhum trabalho ativo em %s" msgid "No attributes in request." msgstr "Nenhum atributo na requisição." msgid "No authentication information provided." msgstr "Nenhuma informação de autenticação foi fornecida." msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Nenhum nome de comunidade" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "Nenhuma impressora padrão." msgid "No destinations added." msgstr "Nenhuma destinação foi adicionada." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "Nenhum URI de dispositivo encontrado em argv[0] ou na variável de ambiente " "DEVICE_URI." msgid "No error-index" msgstr "Nenhum error-index" msgid "No error-status" msgstr "Nenhum error-status" msgid "No file in print request." msgstr "Nenhum arquivo na requisição de impressão." msgid "No modification time" msgstr "Nenhum horário de modificação" msgid "No name OID" msgstr "Nenhum OID de nome" msgid "No pages were found." msgstr "Nenhuma página foi encontrada." msgid "No printer name" msgstr "Nenhum nome de impressora" msgid "No printer-uri found" msgstr "Nenhum printer-uri foi encontrado" msgid "No printer-uri found for class" msgstr "Nenhum printer-uri foi encontrado para classe" msgid "No printer-uri in request." msgstr "Nenhum printer-uri na requisição." msgid "No request URI." msgstr "Nenhuma URI de requisição." msgid "No request protocol version." msgstr "Nenhuma versão de protocolo de requisição." msgid "No request sent." msgstr "Nenhuma requisição enviada." msgid "No request-id" msgstr "Nenhum request-id" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "Nenhum atributo de inscrição na requisição." msgid "No subscriptions found." msgstr "Nenhuma inscrição encontrada." msgid "No variable-bindings SEQUENCE" msgstr "Nenhum SEQUENCE em variable-bindings" msgid "No version number" msgstr "Nenhum número de versão" msgid "Non-continuous (Mark sensing)" msgstr "Não-contíguo (Mark sensing)" msgid "Non-continuous (Web sensing)" msgstr "Não-contíguo (Web sensing)" msgid "None" msgstr "" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "Não encontrado" msgid "Not Implemented" msgstr "Não implementado" msgid "Not Installed" msgstr "Não instalado" msgid "Not Modified" msgstr "Não modificado" msgid "Not Supported" msgstr "Não há suporte" msgid "Not allowed to print." msgstr "Sem permissão para imprimir." msgid "Note" msgstr "Nota" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Off (1 lado)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Ajuda online" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "Abertura de %s falhou: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup sem um CloseGroup primeiro" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI sem um CloseUI/JCLCloseUI primeiro" msgid "Operation Policy" msgstr "Política de operação" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "Opção \"%s\" não pode ser incluída via %%%%IncludeFeature." msgid "Options Installed" msgstr "Opções instaladas" msgid "Options:" msgstr "Opções:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "Cache de arquivo PPD está desatualizado." msgid "Out of memory." msgstr "Memória insuficiente." msgid "Output Mode" msgstr "Mode de saída" msgid "PCL Laser Printer" msgstr "Impressora Laser PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K borda maior" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K borda maior" msgid "PRC32K Oversize" msgstr "PRC32K grande" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K borda muito maior" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "Pacote não contém um Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Pacote não inicia com SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Senha para %s em %s? " msgid "Pause Class" msgstr "Pausar classe" msgid "Pause Printer" msgstr "Pausar impressora" # peel-off seria descolar etiqueta do papel? msgid "Peel-Off" msgstr "Descolar" msgid "Photo" msgstr "Foto" msgid "Photo Labels" msgstr "Foto pequena" msgid "Plain Paper" msgstr "Papel normal" msgid "Policies" msgstr "Políticas" msgid "Port Monitor" msgstr "Monitor de porta" msgid "PostScript Printer" msgstr "Impressora PostScript" msgid "Postcard" msgstr "Postal" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "Postal duplo borda maior" msgid "Postcard Long Edge" msgstr "Postal borda maior" msgid "Preparing to print." msgstr "Preparando para imprimir." msgid "Print Density" msgstr "Densidade de impressão" msgid "Print Job:" msgstr "Trabalho de impressão:" msgid "Print Mode" msgstr "Modo de impressão" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "Taxa de impressão" msgid "Print Self-Test Page" msgstr "Imprimir página de auto-teste" msgid "Print Speed" msgstr "Velocidade de impressão" msgid "Print Test Page" msgstr "Imprimir página de teste" msgid "Print and Cut" msgstr "Imprimir e cortar" msgid "Print and Tear" msgstr "Imprimir e rasgar" msgid "Print file sent." msgstr "Arquivo de impressão enviado." msgid "Print job canceled at printer." msgstr "Trabalho de impressão cancelado na impressora." msgid "Print job too large." msgstr "Trabalho de impressão muito grande." msgid "Print job was not accepted." msgstr "Trabalho de impressão não foi aceito." #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "Impressora adicionada" msgid "Printer Default" msgstr "Impressora padrão" msgid "Printer Deleted" msgstr "Impressora excluída" msgid "Printer Modified" msgstr "Impressora modificada" msgid "Printer Paused" msgstr "Impressora pausada" msgid "Printer Settings" msgstr "Configurações de impressora" msgid "Printer cannot print supplied content." msgstr "Impressora não consegue imprimir o conteúdo fornecido." msgid "Printer cannot print with supplied options." msgstr "Impressora não consegue imprimir os opções fornecidas." msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Impressora:" msgid "Printers" msgstr "Impressoras" #, c-format msgid "Printing page %d, %u%% complete." msgstr "Imprimindo página %d, %u%% concluído." msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "Limite de quota alcançado." msgid "Rank Owner Job File(s) Total Size" msgstr "Ordem Dono Trab Arquivo(s) Tamanho total" msgid "Reject Jobs" msgstr "Rejeitar trabalhos" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "Máquina remota não aceitou arquivo de controle (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "Máquina remota não aceitou arquivo de dados (%d)." msgid "Reprint After Error" msgstr "Erro após reimpressão" msgid "Request Entity Too Large" msgstr "Entidade de requisição muito grande" msgid "Resolution" msgstr "Resolução" msgid "Resume Class" msgstr "Resumir classe" msgid "Resume Printer" msgstr "Resumir impressora" msgid "Return Address" msgstr "Retornar endereço" msgid "Rewind" msgstr "Rebobinar" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE usa comprimento indefinido" msgid "SSL/TLS Negotiation Error" msgstr "Erro de negociação SSL/TLS" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Veja outro" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "Enviando dados à impressora." msgid "Server Restarted" msgstr "Servidor reiniciado" msgid "Server Security Auditing" msgstr "Auditoria de segurança de servidor" msgid "Server Started" msgstr "Servidor iniciou" msgid "Server Stopped" msgstr "Servidor parou" msgid "Server credentials not set." msgstr "Credenciais no servidor não definidas." msgid "Service Unavailable" msgstr "Serviço indisponível" msgid "Set Allowed Users" msgstr "Definir usuários permitidos" msgid "Set As Server Default" msgstr "Definir como servidor padrão" msgid "Set Class Options" msgstr "Definir opções de classe" msgid "Set Printer Options" msgstr "Definir opções de impressora" msgid "Set Publishing" msgstr "Definir publicação" msgid "Shipping Address" msgstr "Endereço de entrega" msgid "Short-Edge (Landscape)" msgstr "Borda menor (paisagem)" msgid "Special Paper" msgstr "Papel especial" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Trabalho de impressão, %.0f%% completo." msgid "Standard" msgstr "Padrão" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Iniciando banner" #, c-format msgid "Starting page %d." msgstr "Iniciando página %d." msgid "Statement" msgstr "Declaração" #, c-format msgid "Subscription #%d does not exist." msgstr "Inscrição #%d não existe." msgid "Substitutions:" msgstr "Substituições:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Alternando protocolos" msgid "Tabloid" msgstr "Tabloide" msgid "Tabloid Oversize" msgstr "Tabloide grande" msgid "Tabloid Oversize Long Edge" msgstr "Tabloide borda muito maior" msgid "Tear" msgstr "Destacar" msgid "Tear-Off" msgstr "Destacar" msgid "Tear-Off Adjust Position" msgstr "Ajuste da posição de destaque" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "O atributo \"%s\" é necessário para imprimir os trabalhos." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "O atributo %s não pode ser fornecido com job-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" "O atributo de estado de trabalho '%s' não pode ser fornecido em uma " "requisição de criação de trabalho." #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "O atributo de operação '%s' não pode ser fornecido em uma requisição de " "criação de trabalho." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "O arquivo PPD \"%s\" não pôde ser encontrado." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "O arquivo PPD \"%s\" não pôde ser aberto: %s" msgid "The PPD file could not be opened." msgstr "O arquivo PPD não pôde ser aberto." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "O nome da classe pode conter somente até 127 caracteres imprimíveis e não " "pode conter espaços, barras (/), ou sinal de tralha (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "O atributo notify-lease-duration não pode ser usado para inscrições de " "trabalhos." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "O valor de notify-user-data está muito grande (%d > 63 octetos)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" "A configuração da impressora está incorreta ou a impressora não existe mais." msgid "The printer did not respond." msgstr "A impressora não respondeu." msgid "The printer is in use." msgstr "A impressora está em uso." msgid "The printer is not connected." msgstr "A impressora não está conectada." msgid "The printer is not responding." msgstr "A impressora não está respondendo." msgid "The printer is now connected." msgstr "A impressora está agora conectada." msgid "The printer is now online." msgstr "A impressora está agora online." msgid "The printer is offline." msgstr "A impressora está offline." msgid "The printer is unreachable at this time." msgstr "A impressora está inacessível neste momento." msgid "The printer may not exist or is unavailable at this time." msgstr "A impressora pode não existir ou está indisponível neste momento." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "A impressora ou classe não existe." msgid "The printer or class is not shared." msgstr "A impressora ou classe não está compartilhada." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "O printer-uri \"%s\" contém caracteres inválidos." msgid "The printer-uri attribute is required." msgstr "O atributo printer-uri é necessário." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "O printer-uri deve estar no formato \"ipp://MAQUINA/classes/NOMECLASSE\"." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "O printer-uri deve estar no formato \"ipp://MAQUINA/printers/NOMEIMPRESSORA" "\"." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "A interface web está desabilitada no momento. Execute \"cupsctl " "WebInterface=yes\" para habilitá-la." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "Não há suporte ao valor de which-jobs \"%s\"." msgid "There are too many subscriptions." msgstr "Há inscrições demais." msgid "There was an unrecoverable USB error." msgstr "Ocorreu um erro de USB irrecuperável." msgid "Thermal Transfer Media" msgstr "Mídia de transferência térmica" msgid "Too many active jobs." msgstr "Há trabalhos demais ativos." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Há valores de job-sheets demais (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Há valores de printer-state-reasons demais (%d >%d)." msgid "Transparency" msgstr "Transparência" msgid "Tray" msgstr "Bandeja" msgid "Tray 1" msgstr "Bandeja 1" msgid "Tray 2" msgstr "Bandeja 2" msgid "Tray 3" msgstr "Bandeja 3" msgid "Tray 4" msgstr "Bandeja 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "URI muito longa" msgid "URI too large" msgstr "URI muito grande" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Legal" msgid "US Legal Oversize" msgstr "US Legal grande" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "US Letter borda maior" msgid "US Letter Oversize" msgstr "US Letter grande" msgid "US Letter Oversize Long Edge" msgstr "US Letter borda muito maior" msgid "US Letter Small" msgstr "US Letter pequena" msgid "Unable to access cupsd.conf file" msgstr "Não foi possível acessar o arquivo cupsd.conf" msgid "Unable to access help file." msgstr "Não foi possível acessar o arquivo de ajuda." msgid "Unable to add class" msgstr "Não foi possível adicionar classe" msgid "Unable to add document to print job." msgstr "Não foi possível adicionar o documento ao trabalho de impressão." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Não foi possível adicionar trabalho para destino \"%s\"." msgid "Unable to add printer" msgstr "Não foi possível adicionar impressora" msgid "Unable to allocate memory for file types." msgstr "Não foi possível alocar memória para os tipos de arquivos." msgid "Unable to allocate memory for page info" msgstr "Não foi possível alocar memória para informação de página" msgid "Unable to allocate memory for pages array" msgstr "Não foi possível alocar memória para vetor de páginas" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "Não foi possível cancelar trabalho de impressão." msgid "Unable to change printer" msgstr "Não foi possível alterar a impressora" msgid "Unable to change printer-is-shared attribute" msgstr "Não foi possível alterar o atributo printer-is-shared" msgid "Unable to change server settings" msgstr "Não foi possível alterar as configurações do servidor" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "Não foi possível compilar a expressão regular de mimeMediaType: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "Não foi possível compilar a expressão regular de naturalLanguage: %s." msgid "Unable to configure printer options." msgstr "Não foi possível configurar opções de impressora." msgid "Unable to connect to host." msgstr "Não foi possível conectar à máquina." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "Não foi possível contactar a impressora, enfileirando na próxima impressora " "na classe." #, c-format msgid "Unable to copy PPD file - %s" msgstr "Não foi possível copiar arquivo PPD - %s" msgid "Unable to copy PPD file." msgstr "Não foi possível copiar arquivo PPD." msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "Não foi possível criar uri de impressora" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "Não foi possível criar credenciais no servidor." #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "Não foi possível criar arquivo temporário" msgid "Unable to delete class" msgstr "Não foi possível excluir classe" msgid "Unable to delete printer" msgstr "Não foi possível excluir impressora" msgid "Unable to do maintenance command" msgstr "Não foi possível executar comando de manutenção" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "Não foi possível editar arquivos de cupsd.conf maiores que 1MB" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (cadeia de " "certificação inválida)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (certificado " "inválido no momento)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (certificado " "expirou)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (nome da " "máquina incorreto)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (terminou a " "conexão sem a resposta)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (certificado " "auto-assinado)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "Não foi possível estabelecer uma conexão segura com a máquina (certificado " "não confiado)." msgid "Unable to establish a secure connection to host." msgstr "Não foi possível estabelecer uma conexão segura com a máquina." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "Não foi possível encontrar o destino do trabalho" msgid "Unable to find printer." msgstr "Não foi possível encontrar a impressora." msgid "Unable to find server credentials." msgstr "Não foi possível encontrar credenciais no servidor." msgid "Unable to get backend exit status." msgstr "Não foi possível obter o estado de saída do backend." msgid "Unable to get class list" msgstr "Não foi possível obter lista de classes" msgid "Unable to get class status" msgstr "Não foi possível obter o estado da classe" msgid "Unable to get list of printer drivers" msgstr "Não foi possível obter lista de drivers de impressoras" msgid "Unable to get printer attributes" msgstr "Não foi possível obter atributos da impressora" msgid "Unable to get printer list" msgstr "Não foi possível obter lista de impressoras" msgid "Unable to get printer status" msgstr "Não foi possível obter estado da impressora" msgid "Unable to get printer status." msgstr "Não foi possível obter o estado da impressora." msgid "Unable to load help index." msgstr "Não foi possível carregar índice de ajuda." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "Não foi possível localizar a impressora \"%s\"." msgid "Unable to locate printer." msgstr "Não foi possível localizar a impressora." msgid "Unable to modify class" msgstr "Não foi possível modificar classe" msgid "Unable to modify printer" msgstr "Não foi possível modificar impressora" msgid "Unable to move job" msgstr "Não foi possível mover trabalho" msgid "Unable to move jobs" msgstr "Não foi possível mover trabalhos" msgid "Unable to open PPD file" msgstr "Não foi possível abrir arquivo PPD" msgid "Unable to open cupsd.conf file:" msgstr "Não foi possível abrir arquivo cupsd.conf:" msgid "Unable to open device file" msgstr "Não foi possível abrir arquivo dispositivo" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "Não foi possível abrir documento #%d no trabalho #%d." msgid "Unable to open help file." msgstr "Não foi possível abrir arquivo de ajuda." msgid "Unable to open print file" msgstr "Não foi possível abrir arquivo de impressão" msgid "Unable to open raster file" msgstr "Não foi possível arquivo de rasterização" msgid "Unable to print test page" msgstr "Não foi possível imprimir página teste" msgid "Unable to read print data." msgstr "Não foi possível ler dados de impressão." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "Não foi possível renomear o arquivo de documento do trabalho." msgid "Unable to resolve printer-uri." msgstr "Não foi possível resolver printer-ui." msgid "Unable to see in file" msgstr "Não foi possível ler o arquivo" msgid "Unable to send command to printer driver" msgstr "Não foi possível enviar comando ao driver da impressora" msgid "Unable to send data to printer." msgstr "Não foi possível enviar dados à impressora." msgid "Unable to set options" msgstr "Não foi possível definir opções" msgid "Unable to set server default" msgstr "Não foi possível definir servidor padrão" msgid "Unable to start backend process." msgstr "Não foi possível iniciar processo de backend." msgid "Unable to upload cupsd.conf file" msgstr "Não foi possível atualizar o arquivo cupsd.conf" msgid "Unable to use legacy USB class driver." msgstr "Não foi possível usar driver de classe USB legado." msgid "Unable to write print data" msgstr "Não foi possível escrever dados de impressão" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "Não foi possível escrever dados descompactados de impressão: %s" msgid "Unauthorized" msgstr "Não autorizado" msgid "Units" msgstr "Unidades" msgid "Unknown" msgstr "Desconhecido" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Escolha desconhecida \"%s\" para opção \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Valor da opção de criptografia desconhecido: \"%s\"." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Ordem de arquivo desconhecida: \"%s\"." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Caractere de formato desconhecido: \"%c\"." msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "Nome de tamanho de mídia desconhecido." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Opção \"%s\" desconhecida com valor \"%s\"." #, c-format msgid "Unknown option \"%s\"." msgstr "Opção \"%s\" desconhecida." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Modo de impressão desconhecido: \"%s\"." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "printer-error-policy \"%s\" desconhecido." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "printer-op-policy \"%s\" desconhecido." msgid "Unknown request method." msgstr "Método de requisição desconhecido." msgid "Unknown request version." msgstr "Versão de requisição desconhecida." msgid "Unknown scheme in URI" msgstr "Esquema desconhecido na URI" msgid "Unknown service name." msgstr "Nome de serviço desconhecido." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Valor de opção de versão desconhecido: \"%s\"." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Não suporte a \"compression\" com valor \"%s\"." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Não há suporte a \"document-format\" com valor \"%s\"." msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "Não há suporte ao valor de \"job-name\"." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Não há suporte ao conjunto de caracteres \"%s\"." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Não há suporte à compressão \"%s\"." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "Não há suporte ao document-format \"%s\"." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "Não há suporte ao document-format \"%s/%s\"." #, c-format msgid "Unsupported format \"%s\"." msgstr "Não há suporte ao formato \"%s\"." msgid "Unsupported margins." msgstr "Não há suporte a margens." msgid "Unsupported media value." msgstr "Não há suporte ao valor de mídia." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "Não há suporte ao valor de number-up %d; usando number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "Não há suporte ao valor de number-up-layout %s; usando number-up-layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "Não há suporte ao valor de page-border %s; usando page-border=none." msgid "Unsupported raster data." msgstr "Não há suporte a dados de rasterização." msgid "Unsupported value type" msgstr "Não há suporte ao tipo de valor" msgid "Upgrade Required" msgstr "Atualização necessária" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Uso: %s job-id usuário título cópias opções [arquivo]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Uso: cupsctl [opções] [param=valor ... paramN=valorN]" msgid "Usage: cupsd [options]" msgstr "Uso: cupsd [opções]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "Uso: cupsfilter [ opções ] [ -- ] arquivo" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Uso: ippfind [opções] tiporeg[,tiposub][.domínio.] ... [expressões]\n" " ippfind [opções] nome[.tiporeg[.domínio.]] ... [expressões]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Uso: ipptool [opções] URI arquivo [ ... arquivoN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Uso: ppdc [opções] arquivo.drv [ ... arquivoN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Uso: ppdhtml [opções] arquivo.drv >arquivo.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Uso: ppdi [opções] arquivo.ppd [ ... arquivoN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Uso: ppdmerge [opções] arquivo.ppd [ ... arquivoN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "Uso: ppdpo [opções] -o arquivo.po arquivo.drv [ ... arquivoN.drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Uso: snmp [máquina-ou-endereço-ip]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Valor usa comprimento indefinido" msgid "VarBind uses indefinite length" msgstr "VarBind usa comprimento indefinido" msgid "Version uses indefinite length" msgstr "Version usa comprimento indefinido" msgid "Waiting for job to complete." msgstr "Esperando o trabalho completar." msgid "Waiting for printer to become available." msgstr "Esperando a impressora ficar disponível." msgid "Waiting for printer to finish." msgstr "Esperando a impressora finalizar." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "Interface web está desabilitada" msgid "Yes" msgstr "Sim" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Você tem que acessar esta página usando a URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Impressora de etiqueta ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "abortado" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "cancelado" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "completou" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "cups-deviced falhou na execução." msgid "cups-driverd failed to execute." msgstr "cups-driverd falhou na execução." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: Não foi possível conectar o servidor: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: Opção desconhecida \"%s\"" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: Opção desconhecida \"-%c\"" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: Esperava nome de arquivo de configuração após a opção \"-c\"." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" "cupsd: Esperava nome de arquivo de cups-files.conf após a opção \"-s\"." msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" "cupsd: Suporte à funcionalidade sob demanda não compilado, executando em " "modo normal." msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: Nome de arquivo relativo para cups-files.conf não é permitido." msgid "cupsd: Unable to get current directory." msgstr "cupsd: Não é possível obter diretório atual." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" "cupsd: Não foi possível obter o caminho para o arquivo cups-files.conf." #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: Argumento desconhecido \"%s\" - abortando." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: Opção desconhecida \"%c\" - abortando." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: Número de documento inválido %d." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: ID de trabalho inválido %d." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: Somente um nome de arquivo pode ser especificado." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: Não é possível obter o arquivo do trabalho - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: A opção -q é incompatível com a opção -v." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: A opção -v é incompatível com a opção -q." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "dispositivo de %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "dispositivo de %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index usa comprimento indefinido" msgid "error-status uses indefinite length" msgstr "error-status usa comprimento indefinido" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "retido" msgid "help\t\tGet help on commands." msgstr "help\t\tObtém ajuda sobre os comandos." msgid "idle" msgstr "inativo" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: Expressão regular inválida: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: Não é possível usar --and após --or." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: Esperava nome da chave após %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: Esperava faixa de portas após %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: Esperava o programa após %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: Esperava ponto-e-vírgula após %s." msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: Faltando chave de fechamento na substituição." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: Faltando parênteses de fechamento." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: Faltando expressão antes de \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: Faltando expressão antes de \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: Faltando nome da chave após %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "ippfind: Faltando parênteses de abertura." #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: Faltando programa após %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: Faltando expressão regular após %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: Faltando dois-pontos após %s." msgid "ippfind: Out of memory." msgstr "ippfind: Memória insuficiente." msgid "ippfind: Too many parenthesis." msgstr "ippfind: Número excessivo de parênteses." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: Não foi possível navegar ou resolver: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: Não foi possível executar \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: Não foi possível usar Bonjour: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: Argumento desconhecido \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "ipptool: \"-i\" e \"-n\" são incompatíveis com \"-P\" e \"-X\"." #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: Segundos inválidos para \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: Só é possível especificar uma única URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: Contagem faltando para \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: Faltando nome de arquivo para \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: Faltando nome=valor para\"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: Faltando segundos para \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: URI necessária antes do arquivo de teste." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "Faltando atributo de job-printer-uri." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: Nome da classe só pode conter caracteres imprimíveis." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" "lpadmin: Esperava permitir/negar lista de usuários após a opção \"-u\"." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: Esperava a classe após a opção \"-r\"." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: Esperava nome de classe após a opção \"-c\"." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: Esperava descrição após a opção \"-D\"." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: Esperava URI de dispositivo após a opção \"-v\"." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: Esperava tipo(s) de arquivo(s) após a opção \"-I\"." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: Esperava nome do máquina após a opção \"-h\"." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: Esperava localização após a opção \"-L\"." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: Esperava modelo após a opção \"-m\"." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: Esperava nome após a opção \"-R\"." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: Esperava nome=valor após a opção \"-o\"." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: Esperava impressora após a opção \"-p\"." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: Esperava nome da impressora após a opção \"-d\"." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: Esperava impressora ou classe após a opção \"-x\"." msgid "lpadmin: No member names were seen." msgstr "lpadmin: Nenhum nome de membros foi encontrado." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: Impressora %s já é um membro da classe %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: Impressora %s não é membro da classe %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: Nome da impressora só pode conter caracteres imprimíveis." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Não é possível adicionar impressora à classe\n" " Você deve primeiro especificar o nome da impressora." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: Não foi possível conectar ao servidor: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: Não foi possível criar arquivo temporário" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: Não foi possível excluir opção:\n" " Você deve primeiro especificar o nome da impressora." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "lpadmin: Não foi possível abrir PPD \"%s\": %s na linha %d." msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Não foi possível excluir impressora da classe:\n" " Você deve primeiro especificar o nome da impressora." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: Não foi possível definir as opções da impressora:\n" " Você deve primeiro especificar o nome da impressora." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Opção de permitir/negar desconhecida \"%s\"." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: Argumento desconhecido \"%s\"." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Opção desconhecida \"%c\"." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Aviso - lista de tipos de conteúdos ignorada." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" "lpinfo: Esperava string de ID de dispositivo 1284 após \"--device-id\"." msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: Esperava idioma após \"--language\"." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: Esperava marca e modelo após \"--make-and-model\"." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: Esperava string de produto após \"--product\"." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: Esperava lista de esquemas após \"--exclude-schemes\"." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: Esperava lista de esquemas após \"--include-schemes\"." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: Esperava tempo de espera após \"--timeout\"." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: Não foi possível conectar ao servidor: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Argumento desconhecido \"%s\"." msgid "lpoptions: No printers." msgstr "lpoptions: Nenhuma impressora." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: Não foi possível adicionar impressora ou instância: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: Não foi possível obter o arquivo PPD para %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: Não foi possível abrir o arquivo PPD para %s." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Impressora ou classe desconhecida." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: Erro - variável de ambiente %s contém destino inexistente \"%s\"." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "membros da classe %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "nenhum registro" msgid "no system default destination" msgstr "nenhum destino padrão de sistema" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "notify-events não especificado." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "URI de notify-recipient-uri \"%s\" já está sendo usada." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "URI de notify-recipient-uri \"%s\" usa um esquema desconhecido." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "pendente" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: Adicionando diretório de include \"%s\"." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: Adicionando/atualizando texto de UI de %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: Valor booleano inválido (%s) na linha %d de %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: Atributo de fonte inválido: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: Nome de resolução inválido \"%s\" na linha %d de %s." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: palavra-chave de estado inválida %s na linha %d de %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc: Substituição de variável inválida ($%c) na linha %d de %s." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc: Escolha encontrada na linha %d de %s com nenhuma opção." #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: Duplicata de #po para o local %s na linha %d de %s." #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: Esperava a definição de um filtro na linha %d de %s." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: Esperava o nome de um programa na linha %d de %s." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: Esperava um valor booleano na linha %d de %s." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "ppdc: Esperava conjunto de caracteres após Font na linha %d de %s." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: Esperava código de escolha na linha %d de %s." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: Esperava texto/nome de escolha na linha %d de %s." #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "ppdc: Esperava ordem de cores para ColorModel na linha %d de %s." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "ppdc: Esperava espaço de cores para ColorModel na linha %d de %s." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: Esperava compressão para ColorModel na linha %d de %s." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: Esperava string de restrições para UIConstraints na linha %d de %s." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: Esperava palavra-chave de tipo de driver seguindo DriverType na linha " "%d de %s." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc: Esperava tipo Duplex após Duplex na linha %d de %s." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: Esperava codificação após Font na linha %d de %s." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "ppdc: Esperava nome de arquivo após #po %s na linha %d de %s." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: Esperava text/nome de grupo na linha %d de %s." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: Esperava inclusão de nome de arquivo na linha %d de %s." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: Esperava número inteiro na linha %d de %s." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: Esperava local após #po na linha %d de %s." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: Esperava nome após %s na linha %d de %s." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: Esperava nome após FileName na linha %d de %s." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: Esperava nome após Font na linha %d de %s." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: Esperava nome após Manufacturer na linha %d de %s." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: Esperava nome após MediaSize na linha %d de %s." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: Esperava nome após ModelName na linha %d de %s." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: Esperava nome após PCFileName na linha %d de %s." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: Esperava nome/texto após %s na linha %d de %s." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "ppdc: Esperava nome/texto após Installable na linha %d de %s." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "ppdc: Esperava nome/texto após Resolution na linha %d de %s." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: Esperava combinação de nome/texto para ColorModel na linha %d de %s." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: Esperava opção de nome/texto na linha %d de %s." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: Esperava opção de seção na linha %d de %s." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: Esperava tipo da opção na linha %d de %s." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: Esperava um campo de substituição após Resolution na linha %d de %s." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: Esperava string em aspas na linha %d de %s." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: Esperava número real na linha %d de %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: Esperava resolução/tipo de mídia seguindo ColorProfile na linha %d de " "%s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: Esperava resolução/tipo de mídia seguindo SimpleColorProfile na linha " "%d de %s." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: Esperava seletor após %s na linha %d de %s." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: Esperava estado após Font na linha %d de %s." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: Esperava string após Copyright na linha %d de %s." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: Esperava string após Version na linha %d de %s." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: Esperava nomes de duas opções na linha %d de %s." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: Esperava valor após %s na linha %d de %s." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: Esperava versão após Font na linha %d de %s." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: Nome de arquivo \"%s\" de #include/#po inválido." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: Custo inválido para filtro na linha %d de %s." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc: Tipo MIME vazio inválido para filtro na linha %d de %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "ppdc: Nome de programa vazio inválido na linha %d de %s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: Seção \"%s\" inválida de opção na linha %d de %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: Tipo \"%s\" inválido de opção na linha %d de %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: Carregando arquivo \"%s\" de informações de driver." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: Carregando mensagens para locale \"%s\"." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: Carregando mensagens de \"%s\"." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: Faltando #endif ao final de \"%s\"." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: Faltando #if na linha %d de %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" "ppdc: Precisa de uma linha de msgid antes de qualquer string de tradução na " "linha %d de %s." #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: Nenhum catálogo de mensagens fornecido para o locale %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "ppdc: Opção %s definida em dois grupos diferentes na linha %d de %s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "ppdc: Opção %s redefinida com um tipo diferente na linha %d de %s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc: Restrição da opção deve *name na linha %d de %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: Muitos #if aninhados demais na linha %d de %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: Não foi possível criar o arquivo PPD \"%s\" - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: Não foi possível criar diretório de saída %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: Não foi possível criar redirecionamento de saída: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: Não foi possível executar cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: Não foi possível encontrar arquivo #po %s na linha %d de %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" "ppdc: Não foi possível encontrar o arquivo include \"%s\" na linha %d de %s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: Não foi possível encontrar localização para \"%s\" - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: Não foi possível carregar arquivo de localização \"%s\" - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: Não foi possível abrir %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: Variável indefinida (%s) na linha %d de %s." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: Texto inesperado na linha %d de %s." #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: Tipo de driver %s desconhecido na linha %d de %s." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: Tipo de duplex desconhecido \"%s\" na linha %d de %s." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: Tamanho de mídia desconhecido \"%s\" na linha %d de %s." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: Formato de catálogo de mensagens desconhecido para \"%s\"." #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: Token desconhecido \"%s\" visto na linha %d de %s." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: Caractere final desconhecido em número real \"%s\" na linha %d de %s." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc: Início de string não terminada com %c na linha %d de %s." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: Aviso - nome de arquivo em sobreposição \"%s\"." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: Gravando %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: Gravando arquivos PPD para a pasta \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: LanguageVersion incorreto \"%s\" em %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: Ignorando o arquivo PPD %s." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: Não é possível fazer backup de %s para %s - %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "impressora %s desabilitada desde %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "impressora %s está inativa; habilitada desde %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "impressora %s está imprimindo %s-%d; habilitada desde %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "impressora %s/%s desabilitada desde %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "impressora %s/%s está inativa; habilitada desde %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "impressora %s/%s está imprimindo %s-%d; habilitada desde %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "processando" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "id de requisição é %s-%d (%d arquivo(s))" msgid "request-id uses indefinite length" msgstr "request-id usa comprimento indefinido" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "Agendador não está em execução" msgid "scheduler is running" msgstr "Agendador está em execução" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "falhou o estado de %s: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tMostra estado do daemon e da fila." #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "parou" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "destino padrão do sistema: %s" #, c-format msgid "system default destination: %s/%s" msgstr "destino padrão do sistema: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "desconhecido" msgid "untitled" msgstr "sem título" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings usa comprimento indefinido" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "Uma senha do Samba é necessária para exportar drivers de impressora" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "Um nome de usuário do Samba é necessário para exportar drivers de " #~ "impressora" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Exportar impressoras para o Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: Não foi possível definir diretamente Porta ou Listen." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: Não foi possível abrir o arquivo PPD \"%s\" - %s" cups-2.4.7/locale/cups_ja.po0000644000175000017500000127045514502571342015622 0ustar zdohnalzdohnal# # Japanese message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2014-11-15 19:27+0900\n" "Last-Translator: OPFC TRANSCUPS \n" "Language-Team: Japanese - OPFC TRANSCUPS \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "\t\t(すべて)" msgid "\t\t(none)" msgstr "\t\t(なし)" #, c-format msgid "\t%d entries" msgstr "\t%d エントリー" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\t失敗後: 継続" #, c-format msgid "\tAlerts: %s" msgstr "\t警告: %s" msgid "\tBanner required" msgstr "\tバナーが必要" msgid "\tCharset sets:" msgstr "\t文字セット:" msgid "\tConnection: direct" msgstr "\t接続: 直結" msgid "\tConnection: remote" msgstr "\t接続: リモート" msgid "\tContent types: any" msgstr "\tコンテンツの種類: すべて" msgid "\tDefault page size:" msgstr "\tデフォルト用紙サイズ:" msgid "\tDefault pitch:" msgstr "\tデフォルトピッチ:" msgid "\tDefault port settings:" msgstr "\tデフォルトポート設定:" #, c-format msgid "\tDescription: %s" msgstr "\t説明: %s" msgid "\tForm mounted:" msgstr "\t設定されたフォーム:" msgid "\tForms allowed:" msgstr "\t許可されているフォーム:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tインターフェイス: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tインターフェイス: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\t場所: %s" msgid "\tOn fault: no alert" msgstr "\t失敗時: 警告なし" msgid "\tPrinter types: unknown" msgstr "\tプリンターの種類: 不明" #, c-format msgid "\tStatus: %s" msgstr "\tステータス: %s" msgid "\tUsers allowed:" msgstr "\t許可されているユーザー:" msgid "\tUsers denied:" msgstr "\t禁止されているユーザー:" msgid "\tdaemon present" msgstr "\tデーモンは提供されています" msgid "\tno entries" msgstr "\tエントリーがありません" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tデバイス '%s' 上のプリンター 速度 -1" msgid "\tprinting is disabled" msgstr "\t印刷は無効です" msgid "\tprinting is enabled" msgstr "\t印刷は有効です" #, c-format msgid "\tqueued for %s" msgstr "\t%s にキューしました" msgid "\tqueuing is disabled" msgstr "\tキューは無効です" msgid "\tqueuing is enabled" msgstr "\tキューは有効です" msgid "\treason unknown" msgstr "\t未知の理由" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " 適合テスト結果詳細" msgid " REF: Page 15, section 3.1." msgstr " 参照: 15 ページ、セクション 3.1。" msgid " REF: Page 15, section 3.2." msgstr " 参照: 15 ページ、セクション 3.2。" msgid " REF: Page 19, section 3.3." msgstr " 参照: 19 ページ、セクション 3.3。" msgid " REF: Page 20, section 3.4." msgstr " 参照: 20 ページ、セクション 3.4。" msgid " REF: Page 27, section 3.5." msgstr " 参照: 27 ページ、セクション 3.5。" msgid " REF: Page 42, section 5.2." msgstr " 参照: 42 ページ、セクション 5.2。" msgid " REF: Pages 16-17, section 3.2." msgstr " 参照: 16-17 ページ、セクション 3.2。" msgid " REF: Pages 42-45, section 5.2." msgstr " 参照: 42-45 ページ、セクション 5.2。" msgid " REF: Pages 45-46, section 5.2." msgstr " 参照: 45-46 ページ、セクション 5.2。" msgid " REF: Pages 48-49, section 5.2." msgstr " 参照: 48-49 ページ、セクション 5.2。" msgid " REF: Pages 52-54, section 5.2." msgstr " 参照: 52-54 ページ、セクション 5.2。" #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f バイト" #, c-format msgid " PASS Default%s" msgstr " 合格 Default%s" msgid " PASS DefaultImageableArea" msgstr " 合格 DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " 合格 DefaultPaperDimension" msgid " PASS FileVersion" msgstr " 合格 FileVersion" msgid " PASS FormatVersion" msgstr " 合格 FormatVersion" msgid " PASS LanguageEncoding" msgstr " 合格 LanguageEncoding" msgid " PASS LanguageVersion" msgstr " 合格 LanguageVersion" msgid " PASS Manufacturer" msgstr " 合格 Manufacturer" msgid " PASS ModelName" msgstr " 合格 ModelName" msgid " PASS NickName" msgstr " 合格 NickName" msgid " PASS PCFileName" msgstr " 合格 PCFileName" msgid " PASS PSVersion" msgstr " 合格 PSVersion" msgid " PASS PageRegion" msgstr " 合格 PageRegion" msgid " PASS PageSize" msgstr " 合格 PageSize" msgid " PASS Product" msgstr " 合格 Product" msgid " PASS ShortNickName" msgstr " 合格 ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " 警告 %s は相当するオプションがありません。" #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " 警告 %s は %s と一般プレフィックスを共有します。\n" " 参照: 15 ページ、セクション 3.2。" #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " 警告 Duplex オプションキーワード %s は期待通りに動作しないかもしれ" "ません。また、Duplex という名前であるべきです。 参照: 122 ペー" "ジ、セクション 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " 警告 ファイルが CR、LF、CR LF の行末を混在して含んでいます。" msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " 警告 LanguageEncoding は PPD 4.3 仕様で必須です。\n" " 参照: 56-57 ページ、セクション 5.3。" #, c-format msgid " WARN Line %d only contains whitespace." msgstr " 警告 %d 行が空白だけです。" msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " 警告 Manufacturer は PPD 4.3 仕様で必須です。\n" " 参照: 58-59 ページ、セクション 5.3。" msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " 警告 非 Windows PPD ファイルは、CR LF でなく LF のみを行末に使うべ" "きです。" #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " 警告 PPD バージョン %.1f は現在使われていません。\n" " 参照: 42 ページ、セクション 5.2。" msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " 警告 8.3 文字より長い PCFileName は PPD 仕様違反です。\n" " 参照: 61-62 ページ、セクション 5.3。" msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " 警告 PCFileName はユニークなファイル名でなければなりません。\n" " 参照: 61-62 ページ、セクション 5.3。" msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " 警告 プロトコルが PJL を含んでいますが JCL 属性が設定されていませ" "ん。\n" " 参照: 78-79 ページ、セクション 5.7。" msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " 警告 プロトコルが PJL と BCP の両方を含んでいます; TBCP を想定しま" "す。\n" " 参照: 78-79 ページ、セクション 5.7。" msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " 警告 ShortNickName は PPD 4.3 仕様で必須です。\n" " 参照: 64-65 ページ、セクション 5.3。" #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" は \"%s %s\" と競合します\n" " (禁則=\"%s %s %s %s\")。" #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s が存在しません。" #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "" " %s %s ファイル \"%s\" は不正な大文字で始まるワードを含んでいます。" #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s 不正な %s が %s を選んでいます。\n" " 参照: 122 ページ、セクション 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s 不正な UTF-8 \"%s\" 翻訳文字列 (オプション %s 、選択 %s) です。" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %s 不正な UTF-8 \"%s\" 翻訳文字列 (オプション %s 用) です。" #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s 不正な値が cupsFilter に設定されています。 \"%s\"" #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s 不正な値が cupsFilter2 に設定されています。 \"%s\"" #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s 不正な cupsICCProfile %s です。" #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s 不正な値が cupsPreFilter に設定されています。 \"%s\"" #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s 不正な cupsUIConstraints %s: \"%s\" です。" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s 無効な言語 \"%s\" です。" #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s 不正なパーミッション %s です (ファイル \"%s\")。" #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s %s の不正な綴りです - %s であるべきです。" #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr " %s APScanAppPath と APScanAppBundleID は同時に指定できません。" #, c-format msgid " %s Default choices conflicting." msgstr " %s デフォルトの選択肢が競合しています。" #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s 空の cupsUIConstraints %s です。" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" " %s \"%s\" 翻訳文字列 (オプション %s 、選択 %s) が見つかりません。" #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s \"%s\" 翻訳文字列 (オプション %s 用) が見つかりません。" #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s %s が見つかりません (ファイル \"%s\")。" #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s 必須の PageRegion オプションが見つかりません。\n" " 参照: 100 ページ、セクション 5.14。" #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s 必須の PageSize オプションが見つかりません。\n" " 参照: 99 ページ、セクション 5.14。" #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" " %s  選択 *%s %s が UIConstraints \"*%s %s *%s %s\" 内に見つかりませ" "ん。" #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr "" " %s 選択 *%s %s が cupsUIConstraints %s: \"%s\" 内に見つかりません。" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s cupsUIResolver ファイル %s が見つかりません。" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" " %s オプション %s がUIConstraints \"*%s %s *%s %s\" に見つかりません。" #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "" " %s オプション %s がcupsUIConstraints %s に見つかりません: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s ファイルにベース翻訳文字列 \"%s\" がありません。" #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s 必須の %s が選択肢 None を定義していません。\n" " 参照: 122 ページ、セクション 5.17。" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "" " %s サイズ \"%s\" は %s 向けに定義されていますが、%s にはありません。" #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s サイズ \"%s\" は規定外の寸法 (%gx%g) を持っています。" #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s サイズ \"%s\" は \"%s\" であるべきです。" #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr " %s サイズ \"%s\" は Adobe 標準名称 \"%s\" であるべきです。" #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfileのハッシュ値 %s が %s と一致しません。" #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolverの %s がループしています。" #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" " %s cupsUIResolver %s は最低でも 2 つの異なったオプションを持っていなけ" "ればなりません。" #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **失敗** %s は 1284DeviceID でなければなりません。\n" " 参照: 72 ページ、セクション 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **失敗** 不正な Default%s %s\n" " 参照: 40 ページ、セクション 4.5。" #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **失敗** %s は不正な DefaultImageableArea です。\n" " 参照: 102 ページ、セクション 5.15。" #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **失敗** %s は不正な DefaultPaperDimension です。\n" " 参照: 103 ページ、セクション 5.15。" #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **失敗** 不正なFileVersion \"%s\"\n" " 参照: 56 ページ、セクション 5.3。" #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **失敗** FormatVersion が違います \"%s\"\n" " 参照: 56 ページ、セクション 5.3。" msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **失敗** ファイルに不正な JobPatchFile 属性があります\n" " 参照: 24 ページ、セクション 3.4。" #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" " **失敗** 無効な LanguageEncoding %s - ISOLatin1 でなければなりません。" #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" " **失敗** 無効な LanguageVersion %s - English でなければなりません。" #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **失敗** 不正な Manufacturer (\"%s\" でなければなりません)\n" " 参照: 211 ページ、表 D.1。" #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **失敗** 不正な ModelName - 文字列に \"%c\" は許可されていません。\n" " 参照: 59-60 ページ、セクション 5.3。" msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **失敗** 不正な PSVersion - \"(文字列) 整数\" ではありません。\n" " 参照: 62-64 ページ、セクション 5.3。" msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **失敗** 不正な Product - \"(文字列)\" ではありません。\n" " 参照: 62 ページ、セクション 5.3。" msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **失敗** 不正な ShortNickName - 31 文字を超えています。\n" " 参照: 64-65 ページ、セクション 5.3。" #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **失敗** 不正な %s が %s を選んでいます。\n" " 参照: 84 ページ、セクション 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr " **失敗** デフォルトのオプションコードが解釈できません: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **失敗** オプション %s、選択肢 %s のデフォルトの翻訳文字列が 8 ビット" "文字を含んでいます。" #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **失敗** オプション %s のデフォルトの翻訳文字列が 8 ビット文字を含んで" "います。" #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr " **失敗** グループ名 %s と %s は大文字/小文字が違うだけです。" #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr " **失敗** %s で複数のオプション %s が選択されています。" #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" " **失敗** %s が選択した %s と %s は大文字/小文字のみが違うだけです。" #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr " **失敗** オプション名 %s と %s は大文字/小文字が違うだけです。" #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **失敗** Default%s は必須\n" " 参照: 40 ページ、セクション 4.5。" msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **失敗** DefaultImageableArea は必須\n" " 参照: 102 ページ、セクション 5.15。" msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **失敗** DefaultPaperDimension は必須\n" " 参照: 103 ページ、セクション 5.15。" msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **失敗** FileVersion は必須\n" " 参照: 56 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **失敗** FormatVersion は必須\n" " 参照: 56 ページ、セクション 5.3。" #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **失敗** PageSize %s に ImageableArea は必須\n" " 参照: 41 ページ、セクション 5。\n" " 参照: 102 ページ、セクション 5.15。" msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **失敗** LanguageEncoding は必須\n" " 参照: 56-57 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **失敗** LanguageVersion は必須\n" " 参照: 57-58 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **失敗** Manufacturer は必須\n" " 参照: 58-59 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **失敗** ModelName は必須\n" " 参照: 59-60 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **失敗** NickName は必須\n" " 参照: 60 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **失敗** PCFileName は必須\n" " 参照: 61-62 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **失敗** PSVersion は必須\n" " 参照: 62-64 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **失敗** PageRegion は必須\n" " 参照: 100 ページ、セクション 5.14。" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **失敗** PageSize は必須\n" " 参照: 41 ページ、セクション 5。\n" " 参照: 99 ページ、セクション 5.14。" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **失敗** PageSize は必須\n" " 参照: 99-100 ページ、セクション 5.14。" #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **失敗** PageSize %s に PaperDimension は必須\n" " 参照: 41 ページ、セクション 5。\n" " 参照: 103 ページ、セクション 5.15。" msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **失敗** Product は必須\n" " 参照: 62 ページ、セクション 5.3。" msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **失敗** ShortNickName は必須\n" " 参照: 64-65 ページ、セクション 5.3。" #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" " 失敗\n" " **失敗** PPD ファイルを開けません - %s (%d 行)。" #, c-format msgid " %d ERRORS FOUND" msgstr " %d 個のエラーが見つかりました" msgid " NO ERRORS FOUND" msgstr " エラーは見つかりませんでした" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr 行末を CR とする (Mac OS 9)。" msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf 行末を CR + LF とする (Windows)。" msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr " --list-filters 使用されるフィルターのリストを表示する。" msgid " -D Remove the input file when finished." msgstr " -D 終了したときに入力ファイルを削除する。" msgid " -D name=value Set named variable to value." msgstr "" " -D name=value name で指定された変数に値 value をセットする。" msgid " -I include-dir Add include directory to search path." msgstr "" " -I include-dir インクルードディレクトリーを検索パスに含める。" msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd PPD ファイルを指定する。" msgid " -U username Specify username." msgstr " -U username ユーザー名を指定する。" msgid " -c catalog.po Load the specified message catalog." msgstr " -c catalog.po 指定したメッセージカタログをロードする。" msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf cups-files.conf を利用するよう設定する。" msgid " -d output-dir Specify the output directory." msgstr " -d output-dir 出力先ディレクトリーを指定する。" msgid " -d printer Use the named printer." msgstr " -d printer 指定されたプリンターを利用する。" msgid " -e Use every filter from the PPD file." msgstr "" " -e PPD ファイルからすべてのフィルターを使用する。" msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type 入力の MIME タイプを指定する (指定がなければ自動タ" "イプ)。" msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] フィルターファイル N を指定されたジョブから使用す" "る (デフォルトは ファイル 1)。" msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] 出力言語を指定する。(複数可能)" msgid " -m Use the ModelName value as the filename." msgstr " -m ModelName の値をファイル名として使用する。" msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type 出力の MIME タイプを指定する (指定がなければ " "application/pdf)。" msgid " -n copies Set number of copies." msgstr " -n copies 部数を指定する。" msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o filename.drv ドライバー情報ファイルを指定する (指定がなければ " "ppdi.drv)。" msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o filename.ppd[.gz] 出力ファイルを指定する (指定がなければ標準出力)。" msgid " -o name=value Set option(s)." msgstr " -o name=value オプションを指定する。" msgid " -p filename.ppd Set PPD file." msgstr " -p filename.ppd PPD ファイルを指定する。" msgid " -t Test PPDs instead of generating them." msgstr " -t PPD を出力しないでテストする。" msgid " -t title Set title." msgstr " -t title タイトルを指定する。" msgid " -u Remove the PPD file when finished." msgstr " -u 終了したときに PPD ファイルを削除する。" msgid " -v Be verbose." msgstr " -v 冗長出力を行う。" msgid " -z Compress PPD files using GNU zip." msgstr " -z PPD ファイルを GNU zip を使って圧縮する。" msgid " FAIL" msgstr " 失敗" msgid " PASS" msgstr " 合格" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f バイト" #, c-format msgid "%d x %d mm" msgstr "%d x %d mm" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (ふちなし)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (ふちなし, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (ふちなし, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s は %s からリクエストを受け付けています" #, c-format msgid "%s cannot be changed." msgstr "%s は変更できません。" #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s は lpc の CUPS バージョンでは実装されていません。" #, c-format msgid "%s is not ready" msgstr "%s は準備ができていません" #, c-format msgid "%s is ready" msgstr "%s は準備ができています" #, c-format msgid "%s is ready and printing" msgstr "%s は準備ができており印刷しています" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s ジョブID ユーザー タイトル コピー数 オプション [ファイル]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s は %s からリクエストを受け付けていません -" #, c-format msgid "%s not supported." msgstr "%s はサポートされていません。" #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s は %s からリクエストを受け付けています" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s は %s からリクエストを受け付けていません - " #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s:%-33.33s [ジョブ %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s に失敗しました: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: -V オプションにおいて %s は不正なバージョンです。" #, c-format msgid "%s: Don't know what to do." msgstr "%s: 何が起きているか不明です。" #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "%s: エラー - 環境変数 %s が存在しない宛先 \"%s\" を指しています。" #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: エラー - '/version=1.1' をサーバー名に付与してください。" #, c-format msgid "%s: Error - bad job ID." msgstr "%s: エラー - 不正なジョブ ID です。" #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: エラー - ファイルを印刷できず、ジョブを同時に変えることができません。" #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: エラー - ファイルまたはジョブ ID が提供されている場合、標準入力から印刷で" "きません。 " #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: エラー - \"-S\" オプションのあとには文字セットが必要です。" #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: エラー - \"-T\" オプションのあとにはコンテンツタイプが必要です。" #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: エラー - \"-#\" オプションのあとにはコピー数が必要です。" #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: エラー - \"-n\" オプションのあとにはコピー数が必要です。" #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: エラー - \"-P\" オプションのあとには宛先が必要です。" #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: エラー - \"-d\" オプションのあとにはプリンター名が必要です。" #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: エラー - \"-f\" オプションのあとには用紙名が必要です。" #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: エラー - \"-H\" オプションのあとにはホールド名が必要です。" #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: エラー - \"-H\" オプションのあとにはホスト名が必要です。" #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: エラー - \"-h\" オプションのあとにはホスト名が必要です。" #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: エラー - \"-y\" オプションのあとにはモードリストが必要です。" #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: エラー - \"-%c\" オプションのあとには名前が必要です。" #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: エラー - \"-o\" オプションのあとには オプション=値 が必要です。" #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: エラー - \"-P\" オプションのあとにはページリストが必要です。" #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: エラー - \"-%c\" オプションのあとには優先度が必要です。" #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: エラー - \"-r\" のあとには理由のテキストが必要です。" #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: エラー - \"-t\" オプションのあとにはタイトルが必要です。" #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: エラー - \"-U\" オプションのあとにはユーザー名が必要です。" #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: エラー - \"-u\" オプションのあとにはユーザー名が必要です。" #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: エラー - \"-%c\" オプションのあとには値が必要です。" #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: エラー - \"-W\" オプションのあとには、\"completed\"、\"not-completed" "\"、\"all\" のいずれかが必要です。" #, c-format msgid "%s: Error - no default destination available." msgstr "%s: エラー - 利用可能なデフォルトの宛先がありません。" #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: エラー - 優先度は 1 から 100 の間である必要があります。" #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: エラー - スケジューラーが応答していません。" #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: エラー - ファイルが多すぎます - \"%s\"" #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: エラー - \"%s\" にアクセスできません - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: エラー - 標準入力からキューにデータを入力できません。 - %s" #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: エラー - \"%s\" は未知の宛先です。" #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: エラー - \"%s/%s\" は未知の宛先です。" #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: エラー - '%c' は未知のオプションです。" #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: エラー - '%s' は未知のオプションです。" #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: '-i' オプションのあとにはジョブ ID が必要です。" #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: リスト \"%s\" に無効な宛先名があります。" #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: 無効なフィルター文字列です \"%s\"" #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: \"-P\" にファイル名がありません。" #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: \"-T\" オプションにタイムアウトが設定されていません。" #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: \"-V\" オプションにバージョンの指定がありません。" #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: '-H restart' の前にはジョブ ID ('-i ジョブID') が必要です。" #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: %s/%s から %s/%s に変換するフィルターがありません。" #, c-format msgid "%s: Operation failed: %s" msgstr "%s: 操作に失敗しました: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: 残念ながら、暗号化サポートはコンパイル時に組み込まれていません。" #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: サーバーに接続できません" #, c-format msgid "%s: Unable to contact server." msgstr "%s: サーバーに連絡できません。" #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: \"%s\" の MIME タイプを判別できません。" #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: \"%s\" を開けません: %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: %s を開けません: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: PPD ファイルを開けません: %s の %d 行目" #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" "%s: \"%s\" または \"%s\" から MIME データベースを読み取ることができません。" #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: \"%s\" は未知の宛先です。" #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: %s/%s は未知の宛先 MIME タイプです。" #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: '%c' は未知のオプションです。" #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: \"%s\" は未知のオプションです。" #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: \"-%c\" は未知のオプションです。" #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: %s/%s は未知のソース MIME タイプです。" #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: 警告 - '%c' 形式修飾子はサポートされていません - 出力は正しくないものにな" "るかもしれません。" #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: 警告 - 文字セットオプションは無視されます。" #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: 警告 - コンテンツタイプオプションは無視されます。" #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: 警告 - 用紙オプションは無視されます。" #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: 警告 - モードオプションは無視されます。" msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 インチ/秒" msgid "1.25x0.25\"" msgstr "1.25x0.25 インチ" msgid "1.25x2.25\"" msgstr "1.25x2.25 インチ" msgid "1.5 inch/sec." msgstr "1.5 インチ/秒" msgid "1.50x0.25\"" msgstr "1.50x0.25 インチ" msgid "1.50x0.50\"" msgstr "1.50x0.50 インチ" msgid "1.50x1.00\"" msgstr "1.50x1.00 インチ" msgid "1.50x2.00\"" msgstr "1.50x2.00 インチ" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 インチ/秒" msgid "10 x 11" msgstr "10 x 11 インチ" msgid "10 x 13" msgstr "10 x 13 インチ" msgid "10 x 14" msgstr "10 x 14 インチ" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 ミリメートル/秒" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 インチ/秒" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 インチ/秒" msgid "12 x 11" msgstr "12 x 11 インチ" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 ミリメートル/秒" msgid "120x60dpi" msgstr "120x60dpi" msgid "120x72dpi" msgstr "120x72dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 ミリメートル/秒" msgid "15 x 11" msgstr "15 x 11 インチ" msgid "150 mm/sec." msgstr "150 ミリメートル/秒" msgid "150dpi" msgstr "150dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 インチ/秒" msgid "2-Sided Printing" msgstr "両面印刷" msgid "2.00x0.37\"" msgstr "2.00x0.37 インチ" msgid "2.00x0.50\"" msgstr "2.00x0.50 インチ" msgid "2.00x1.00\"" msgstr "2.00x1.00 インチ" msgid "2.00x1.25\"" msgstr "2.00x1.25 インチ" msgid "2.00x2.00\"" msgstr "2.00x2.00 インチ" msgid "2.00x3.00\"" msgstr "2.00x3.00 インチ" msgid "2.00x4.00\"" msgstr "2.00x4.00 インチ" msgid "2.00x5.50\"" msgstr "2.00x5.50 インチ" msgid "2.25x0.50\"" msgstr "2.25x0.50 インチ" msgid "2.25x1.25\"" msgstr "2.25x1.25 インチ" msgid "2.25x4.00\"" msgstr "2.25x4.00 インチ" msgid "2.25x5.50\"" msgstr "2.25x5.50 インチ" msgid "2.38x5.50\"" msgstr "2.38x5.50 インチ" msgid "2.5 inches/sec." msgstr "2.5 インチ/秒" msgid "2.50x1.00\"" msgstr "2.50x1.00 インチ" msgid "2.50x2.00\"" msgstr "2.50x2.00 インチ" msgid "2.75x1.25\"" msgstr "2.75x1.25 インチ" msgid "2.9 x 1\"" msgstr "2.9 x 1 インチ" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 ミリメートル/秒" msgid "200 mm/sec." msgstr "200 ミリメートル/秒" msgid "203dpi" msgstr "203dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24 ピンシリーズ" msgid "240x72dpi" msgstr "240x72dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 ミリメートル/秒" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 インチ/秒" msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00 インチ" msgid "3.00x1.25\"" msgstr "3.00x1.25 インチ" msgid "3.00x2.00\"" msgstr "3.00x2.00 インチ" msgid "3.00x3.00\"" msgstr "3.00x3.00インチ" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00 インチ" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00 インチ" msgid "3.25x5.00\"" msgstr "3.25x5.00 インチ" msgid "3.25x5.50\"" msgstr "3.25x5.50 インチ" msgid "3.25x5.83\"" msgstr "3.25x5.83 インチ" msgid "3.25x7.83\"" msgstr "3.25x7.83 インチ" msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "3.5 インチディスク" msgid "3.50x1.00\"" msgstr "3.50x1.00 インチ" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 ミリメートル/秒" msgid "300 mm/sec." msgstr "300 ミリメートル/秒" msgid "300dpi" msgstr "300dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360dpi" msgid "360x180dpi" msgstr "360x180dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 インチ/秒" msgid "4.00x1.00\"" msgstr "4.00x1.00 インチ" msgid "4.00x13.00\"" msgstr "4.00x13.00 インチ" msgid "4.00x2.00\"" msgstr "4.00x2.00 インチ" msgid "4.00x2.50\"" msgstr "4.00x2.50 インチ" msgid "4.00x3.00\"" msgstr "4.00x3.00 インチ" msgid "4.00x4.00\"" msgstr "4.00x4.00 インチ" msgid "4.00x5.00\"" msgstr "4.00x5.00 インチ" msgid "4.00x6.00\"" msgstr "4.00x6.00 インチ" msgid "4.00x6.50\"" msgstr "4.00x6.50 インチ" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 ミリメートル/秒" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 インチ/秒" msgid "5 x 7" msgstr "5 x 7 インチ" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 インチ/秒" msgid "6.00x1.00\"" msgstr "6.00x1.00 インチ" msgid "6.00x2.00\"" msgstr "6.00x2.00 インチ" msgid "6.00x3.00\"" msgstr "6.00x3.00 インチ" msgid "6.00x4.00\"" msgstr "6.00x4.00 インチ" msgid "6.00x5.00\"" msgstr "6.00x5.00 インチ" msgid "6.00x6.00\"" msgstr "6.00x6.00 インチ" msgid "6.00x6.50\"" msgstr "6.00x6.50 インチ" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 ミリメートル/秒" msgid "600dpi" msgstr "600dpi" msgid "60dpi" msgstr "60dpi" msgid "60x72dpi" msgstr "60x72dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 インチ/秒" msgid "7 x 9" msgstr "7 x 9 インチ" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 インチ/秒" msgid "8 x 10" msgstr "8 x 10 インチ" msgid "8.00x1.00\"" msgstr "8.00x1.00 インチ" msgid "8.00x2.00\"" msgstr "8.00x2.00 インチ" msgid "8.00x3.00\"" msgstr "8.00x3.00 インチ" msgid "8.00x4.00\"" msgstr "8.00x4.00 インチ" msgid "8.00x5.00\"" msgstr "8.00x5.00 インチ" msgid "8.00x6.00\"" msgstr "8.00x6.00 インチ" msgid "8.00x6.50\"" msgstr "8.00x6.50 インチ" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 ミリメートル/秒" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 インチ/秒" msgid "9 x 11" msgstr "9 x 11 インチ" msgid "9 x 12" msgstr "9 x 12 インチ" msgid "9-Pin Series" msgstr "9 ピンシリーズ" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?無効なヘルプコマンドです" #, c-format msgid "A class named \"%s\" already exists." msgstr "\"%s\" という名前のクラスはすでに存在します。" #, c-format msgid "A printer named \"%s\" already exists." msgstr "\"%s\" という名前のプリンターはすでに存在します。" msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 長辺送り" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 長辺送り" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 長辺送り" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 長辺送り" msgid "A3 Oversize" msgstr "A3 (特大)" msgid "A3 Oversize Long Edge" msgstr "A3 (特大) 長辺送り" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 長辺送り" msgid "A4 Oversize" msgstr "A4 (特大)" msgid "A4 Small" msgstr "A4 (小)" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 長辺送り" msgid "A5 Oversize" msgstr "A5 (特大)" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 長辺送り" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C 長辺送り" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D 長辺送り" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E 長辺送り" msgid "Accept Jobs" msgstr "ジョブの受け付け" msgid "Accepted" msgstr "受け付けました" msgid "Add Class" msgstr "クラスの追加" msgid "Add Printer" msgstr "プリンターの追加" msgid "Address" msgstr "アドレス" msgid "Administration" msgstr "管理" msgid "Always" msgstr "常に有効" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "アプリケーター" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "%s printer-state に 不正な値 %d を設定しようとしています。" #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "属性グループは範囲外です (%x < %x)。" msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "B5 (特大)" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "誤った 'document-format' の値です \"%s\"。" msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "不正な NULL 送信先ポインター" msgid "Bad OpenGroup" msgstr "不正な OpenGroup" msgid "Bad OpenUI/JCLOpenUI" msgstr "不正な OpenUI/JCLOpenUI" msgid "Bad OrderDependency" msgstr "不正な OrderDependency" msgid "Bad PPD cache file." msgstr "不正な PPD キャッシュファイルです。" msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "不正なリクエスト" msgid "Bad SNMP version number" msgstr "不正な SNMP バージョン番号" msgid "Bad UIConstraints" msgstr "不正な UIConstraints" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "関数の引数が不正" #, c-format msgid "Bad copies value %d." msgstr "%d は不正なコピー値です。" msgid "Bad custom parameter" msgstr "不正なカスタムパラメーター" #, c-format msgid "Bad device-uri \"%s\"." msgstr "\"%s\" は無効な device-uri です。" #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "\"%s\" は無効な device-uri スキーマです。" #, c-format msgid "Bad document-format \"%s\"." msgstr "\"%s\" は不正な document-format です。" #, c-format msgid "Bad document-format-default \"%s\"." msgstr "\"%s\" は不正な document-format-default です。" msgid "Bad filename buffer" msgstr "不正なファイル名バッファーです。" msgid "Bad hostname/address in URI" msgstr "URI のホスト名/アドレスが不正" #, c-format msgid "Bad job-name value: %s" msgstr "誤った job-name 値: %s" msgid "Bad job-name value: Wrong type or count." msgstr "誤った job-name 値: 型かカウントが誤っています。" msgid "Bad job-priority value." msgstr "不正な job-priority 値です。" #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "\"%s\" は不正な job-sheets 値です。" msgid "Bad job-sheets value type." msgstr "不正な job-sheets 値タイプ です。" msgid "Bad job-state value." msgstr "不正な job-state 値です。" #, c-format msgid "Bad job-uri \"%s\"." msgstr "\"%s\" は無効な job-uri 属性です。" #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "\"%s\" は無効な notify-pull-method です。" #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "URI \"%s\" は不正な notify-recipient-uri です。" #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "%d は不正な number-up 値です。" #, c-format msgid "Bad page-ranges values %d-%d." msgstr "%d-%d は不正な page-ranges 値です。" msgid "Bad port number in URI" msgstr "URI のポート番号が不正" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "\"%s\" は無効な port-monitor です。" #, c-format msgid "Bad printer-state value %d." msgstr "%d は無効な printer-state 値です。" msgid "Bad printer-uri." msgstr "printer-uri が不正です。" #, c-format msgid "Bad request ID %d." msgstr "%d は無効なリクエストIDです。" #, c-format msgid "Bad request version number %d.%d." msgstr "バージョン番号 %d.%d は無効なリクエストです。" msgid "Bad resource in URI" msgstr "URI のリソースが不正" msgid "Bad scheme in URI" msgstr "URI のスキームが不正" msgid "Bad username in URI" msgstr "URI のユーザー名が不正" msgid "Bad value string" msgstr "値文字列がありません" msgid "Bad/empty URI" msgstr "URI が不正か空" msgid "Banners" msgstr "バナー" msgid "Bond Paper" msgstr "ボンド紙" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "論理値は、waiteof オプション \"%s\" であるべきです" msgid "Buffer overflow detected, aborting." msgstr "オーバーフローが検出され、中断しました。" msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "CPCL ラベルプリンター" msgid "Cancel Jobs" msgstr "ジョブをキャンセル" msgid "Canceling print job." msgstr "プリントジョブをキャンセルしています。" msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "リモートの Kerberos 認証のプリンターを共有できません。" msgid "Cassette" msgstr "カセット" msgid "Change Settings" msgstr "設定の変更" #, c-format msgid "Character set \"%s\" not supported." msgstr "文字セット \"%s\" はサポートされていません。" msgid "Classes" msgstr "クラス" msgid "Clean Print Heads" msgstr "プリントヘッドクリーニング" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job は job-uri 属性をサポートしていません。" msgid "Color" msgstr "カラー" msgid "Color Mode" msgstr "カラーモード" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "コマンドは短縮できます。 コマンド:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "コミュニティ名の長さが不定" msgid "Connected to printer." msgstr "プリンターに接続しました。" msgid "Connecting to printer." msgstr "プリンターに接続中。" msgid "Continue" msgstr "継続" msgid "Continuous" msgstr "連続" msgid "Control file sent successfully." msgstr "コントロールファイルが正常に送信されました。" msgid "Copying print data." msgstr "印刷データをコピーしています。" msgid "Created" msgstr "ジョブ作成" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "カスタム" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "カット" msgid "Cutter" msgstr "カッター" msgid "DYMO" msgstr "" msgid "Dark" msgstr "濃い" msgid "Darkness" msgstr "濃さ" msgid "Data file sent successfully." msgstr "データファイルが正常に送信されました。" msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "クラスの削除" msgid "Delete Printer" msgstr "プリンターの削除" msgid "DeskJet Series" msgstr "DeskJet シリーズ" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "宛先 \"%s\" はジョブを受け付けていません。" msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "デバイス: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgid "Direct Thermal Media" msgstr "感熱紙" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "ディレクトリー \"%s\" は相対パスを含んでいます。" #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" "ディレクトリー \"%s\" は安全でないパーミッションが与えられています (0%o/uid=" "%d/gid=%d)。" #, c-format msgid "Directory \"%s\" is a file." msgstr "ディレクトリー \"%s\" はファイルです。" #, c-format msgid "Directory \"%s\" not available: %s" msgstr "ディレクトリー \"%s\" は利用できません: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" "ディレクトリー \"%s\" のパーミッションは問題ありません (0%o/uid=%d/gid=%d)。" msgid "Disabled" msgstr "無効" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "ドキュメント #%d がジョブ #%d に見つかりません。" msgid "Draft" msgstr "" msgid "Duplexer" msgstr "両面オプション" msgid "EPL1 Label Printer" msgstr "EPL1 ラベルプリンター" msgid "EPL2 Label Printer" msgstr "EPL2 ラベルプリンター" msgid "Edit Configuration File" msgstr "設定ファイルの編集" msgid "Encryption is not supported." msgstr "暗号化はサポートされていません。" #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "終了バナー" msgid "English" msgstr "English" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "このページにアクセスするために、あなたのユーザー名とパスワード、あるいは " "root のユーザー名とパスワードを入力してください。Kerberos 認証を使用している" "場合、有効な Kerberos チケットがあることを確認してください。" msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "封筒 #11" msgid "Envelope #12" msgstr "封筒 #12" msgid "Envelope #14" msgstr "封筒 #14" msgid "Envelope #9" msgstr "封筒 #9" msgid "Envelope B4" msgstr "封筒 B4" msgid "Envelope B5" msgstr "封筒 B5" msgid "Envelope B6" msgstr "封筒 B6" msgid "Envelope C0" msgstr "封筒 C0" msgid "Envelope C1" msgstr "封筒 C1" msgid "Envelope C2" msgstr "封筒 C2" msgid "Envelope C3" msgstr "封筒 C3" msgid "Envelope C4" msgstr "封筒 C4" msgid "Envelope C5" msgstr "封筒 C5" msgid "Envelope C6" msgstr "封筒 C6" msgid "Envelope C65" msgstr "封筒 C65" msgid "Envelope C7" msgstr "封筒 C7" msgid "Envelope Choukei 3" msgstr "封筒 長形3号" msgid "Envelope Choukei 3 Long Edge" msgstr "封筒 長形3号 長辺送り" msgid "Envelope Choukei 4" msgstr "封筒 長形4号" msgid "Envelope Choukei 4 Long Edge" msgstr "封筒 長形4号 長辺送り" msgid "Envelope DL" msgstr "封筒 DL" msgid "Envelope Feed" msgstr "封筒フィード" msgid "Envelope Invite" msgstr "招待状封筒" msgid "Envelope Italian" msgstr "イタリア封筒" msgid "Envelope Kaku2" msgstr "封筒 角2" msgid "Envelope Kaku2 Long Edge" msgstr "封筒 角2 長辺送り" msgid "Envelope Kaku3" msgstr "封筒 角3" msgid "Envelope Kaku3 Long Edge" msgstr "封筒 角3 長辺送り" msgid "Envelope Monarch" msgstr "封筒 Monarch" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "封筒 PRC1 長辺送り" msgid "Envelope PRC10" msgstr "封筒 PRC10" msgid "Envelope PRC10 Long Edge" msgstr "封筒 PRC10 長辺送り" msgid "Envelope PRC2" msgstr "封筒 PRC2" msgid "Envelope PRC2 Long Edge" msgstr "封筒 PRC2 長辺送り" msgid "Envelope PRC3" msgstr "封筒 PRC3" msgid "Envelope PRC3 Long Edge" msgstr "封筒 PRC3 長辺送り" msgid "Envelope PRC4" msgstr "封筒 PRC4" msgid "Envelope PRC4 Long Edge" msgstr "封筒 PRC4 長辺送り" msgid "Envelope PRC5 Long Edge" msgstr "封筒 PRC5 長辺送り" msgid "Envelope PRC5PRC5" msgstr "封筒 PRC5" msgid "Envelope PRC6" msgstr "封筒 PRC6" msgid "Envelope PRC6 Long Edge" msgstr "封筒 PRC6 長辺送り" msgid "Envelope PRC7" msgstr "封筒 PRC7" msgid "Envelope PRC7 Long Edge" msgstr "封筒 PRC7 長辺送り" msgid "Envelope PRC8" msgstr "封筒 PRC8" msgid "Envelope PRC8 Long Edge" msgstr "封筒 PRC8 長辺送り" msgid "Envelope PRC9" msgstr "封筒 PRC9" msgid "Envelope PRC9 Long Edge" msgstr "封筒 PRC9 長辺送り" msgid "Envelope Personal" msgstr "パーソナル封筒" msgid "Envelope You4" msgstr "封筒 洋形4号" msgid "Envelope You4 Long Edge" msgstr "封筒 洋形4号 長辺送り" msgid "Environment Variables:" msgstr "環境変数:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "エラーポリシー" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "ラスターデータの送信でエラーが起きました。" msgid "Error: need hostname after \"-h\" option." msgstr "Error: '-h' オプションのあとにはホスト名が必要です。" msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "10 ラベルごと" msgid "Every 2 Labels" msgstr "2 ラベルごと" msgid "Every 3 Labels" msgstr "3 ラベルごと" msgid "Every 4 Labels" msgstr "4 ラベルごと" msgid "Every 5 Labels" msgstr "5 ラベルごと" msgid "Every 6 Labels" msgstr "6 ラベルごと" msgid "Every 7 Labels" msgstr "7 ラベルごと" msgid "Every 8 Labels" msgstr "8 ラベルごと" msgid "Every 9 Labels" msgstr "9 ラベルごと" msgid "Every Label" msgstr "すべてのラベル" msgid "Executive" msgstr "エグゼクティブ" msgid "Expectation Failed" msgstr "予測に失敗しました" msgid "Expressions:" msgstr "式:" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "ファイル \"%s\" は相対パスを含んでいます。" #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" "ファイル \"%s\" は安全でないパーミッションが与えられています (0%o/uid=%d/gid=" "%d)。" #, c-format msgid "File \"%s\" is a directory." msgstr "ファイル \"%s\" はディレクトリーです。" #, c-format msgid "File \"%s\" not available: %s" msgstr "ファイル \"%s\" は利用できません: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "ファイル \"%s\" のパーミッションは問題ありません (0%o/uid=%d/gid=%d)。" msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "ファイルデバイス URI は無効になっています。有効にするには、\"%s/cups-files." "conf\" の FileDevice ディレクティブを参照してください。" #, c-format msgid "Finished page %d." msgstr "ページ %d を終了。" msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "フォリオ" msgid "Forbidden" msgstr "Forbidden" msgid "Found" msgstr "" msgid "General" msgstr "一般" msgid "Generic" msgstr "汎用" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU は不確定の長さを使用しています" msgid "Glossy Paper" msgstr "光沢紙" msgid "Got a printer-uri attribute but no job-id." msgstr "printer-uri 属性を取得しましたが、job-id を取得できませんでした。" msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "グレースケール" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Hanging Folder" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "ヘルプファイルが索引に含まれていません。" msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "IPP の 1setOf 属性が value タグと互換性がありません。" msgid "IPP attribute has no name." msgstr "IPP の属性に名前がありません。" msgid "IPP attribute is not a member of the message." msgstr "IPP の属性がメッセージのメンバーではありません。" msgid "IPP begCollection value not 0 bytes." msgstr "IPP の begCollection は想定された 0 バイトになっていません。" msgid "IPP boolean value not 1 byte." msgstr "IPP の真偽値が想定された 1 バイトになっていません。" msgid "IPP date value not 11 bytes." msgstr "IPP の date 値は想定された 11 バイトになっていません。" msgid "IPP endCollection value not 0 bytes." msgstr "IPP の endCollection は想定された 0 バイトになっていません。" msgid "IPP enum value not 4 bytes." msgstr "IPP の enum 値は想定された 4 バイトになっていません。" msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP の拡張タグが 0x7FFFFFFF より大きいです。" msgid "IPP integer value not 4 bytes." msgstr "IPP の整数値は想定された 4 バイトになっていません。" msgid "IPP language length overflows value." msgstr "IPP の language length の値がオーバーフローしています。" msgid "IPP language length too large." msgstr "IPP の language の長さが長すぎます。" msgid "IPP member name is not empty." msgstr "IPP のメンバー名が空ではありません。" msgid "IPP memberName value is empty." msgstr "IPP の memberName の値が空です。" msgid "IPP memberName with no attribute." msgstr "IPP の memberName に属性がありません。" msgid "IPP name larger than 32767 bytes." msgstr "IPP 名が 32767 バイトより大きいです。" msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP の nameWithLanguage が最小値 4 バイト未満です。" msgid "IPP octetString length too large." msgstr "IPP の octetString の長さが大きすぎます。" msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP の rangeOfInteger は想定された 8 バイトになっていません。" msgid "IPP resolution value not 9 bytes." msgstr "IPP の resolution は想定された 9 バイトになっていません。" msgid "IPP string length overflows value." msgstr "IPP の文字列長の値がオーバーフローしています。" msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP の textWithLanguage の値が最小値 4 バイト未満です。" msgid "IPP value larger than 32767 bytes." msgstr "IPP の値が 32767 バイト以上です。" msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "不正な制御文字" msgid "Illegal main keyword string" msgstr "不正なメインキーワード文字列" msgid "Illegal option keyword string" msgstr "不正なオプションキーワード文字列" msgid "Illegal translation string" msgstr "不正な翻訳文字列" msgid "Illegal whitespace character" msgstr "不正な空白文字" msgid "Installable Options" msgstr "インストール可能オプション" msgid "Installed" msgstr "インストールされています" msgid "IntelliBar Label Printer" msgstr "IntelliBar ラベルプリンター" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "サーバー内部エラー" msgid "Internal error" msgstr "内部エラー" msgid "Internet Postage 2-Part" msgstr "Internet Postage 2-Part" msgid "Internet Postage 3-Part" msgstr "Internet Postage 3-Part" msgid "Internet Printing Protocol" msgstr "インターネット印刷プロトコル" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "無効なメディア名引数です。" msgid "Invalid media size." msgstr "無効なメディアサイズです。" msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "無効なプリンターコマンドです。 \"%s\"" msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 長辺送り" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 長辺送り" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 長辺送り" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "ジョブ番号 %d を再開できません - ファイルが見つかりません。" #, c-format msgid "Job #%d does not exist." msgstr "ジョブ番号 %d は存在しません。" #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "ジョブ番号 %d はすでに中断されています - キャンセルできません。" #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "ジョブ番号 %d はすでにキャンセルされています - キャンセルできません。" #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "ジョブ番号 %d はすでに完了しています - キャンセルできません。" #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "ジョブ番号 %d はすでに終了し、変更できません。" #, c-format msgid "Job #%d is not complete." msgstr "ジョブ番号 %d は完了していません。" #, c-format msgid "Job #%d is not held for authentication." msgstr "ジョブ番号 %d は認証のために保留されていません。" #, c-format msgid "Job #%d is not held." msgstr "ジョブ番号 %d は保留されていません。" msgid "Job Completed" msgstr "ジョブ完了" msgid "Job Created" msgstr "ジョブ作成" msgid "Job Options Changed" msgstr "ジョブオプション変更" msgid "Job Stopped" msgstr "ジョブ中止" msgid "Job is completed and cannot be changed." msgstr "ジョブは完了し変更できません。" msgid "Job operation failed" msgstr "ジョブ操作失敗" msgid "Job state cannot be changed." msgstr "ジョブの状態を変更できません。" msgid "Job subscriptions cannot be renewed." msgstr "ジョブサブスクリプションを更新できません。" msgid "Jobs" msgstr "ジョブ" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR ホストまたはプリンター" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "ラベルプリンター" msgid "Label Top" msgstr "ラベルトップ" #, c-format msgid "Language \"%s\" not supported." msgstr "言語 \"%s\" はサポートされていません。" msgid "Large Address" msgstr "ラージアドレス" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Series PCL 4/5" msgid "Letter Oversize" msgstr "US レター (特大)" msgid "Letter Oversize Long Edge" msgstr "US レター (特大) 長辺送り" msgid "Light" msgstr "薄い" msgid "Line longer than the maximum allowed (255 characters)" msgstr "1 行が最大値 (255 文字) を超えています" msgid "List Available Printers" msgstr "使用可能なプリンター一覧" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "長辺給紙 (縦向き)" msgid "Looking for printer." msgstr "プリンターを探しています。" msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "手差し" msgid "Media Size" msgstr "用紙サイズ" msgid "Media Source" msgstr "給紙" msgid "Media Tracking" msgstr "用紙の経路" msgid "Media Type" msgstr "用紙種類" msgid "Medium" msgstr "紙質" msgid "Memory allocation error" msgstr "メモリー割り当てエラー" msgid "Missing CloseGroup" msgstr "CloseGroup がありません" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "PPD-Adobe-4.x ヘッダーがありません" msgid "Missing asterisk in column 1" msgstr "1 列目にアスタリスクがありません" msgid "Missing document-number attribute." msgstr "document-number 属性がありません。" msgid "Missing form variable" msgstr "form 変数がありません。" msgid "Missing last-document attribute in request." msgstr "リクエストに last-document 属性がありません。" msgid "Missing media or media-col." msgstr "media または media-col がありません。" msgid "Missing media-size in media-col." msgstr "media-col に media-size がありません。" msgid "Missing notify-subscription-ids attribute." msgstr "notify-subscription-ids 属性がありません。" msgid "Missing option keyword" msgstr "オプションキーワードがありません" msgid "Missing requesting-user-name attribute." msgstr "requesting-user-name 属性が設定されていません。" #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "必須の属性が設定されていません。" msgid "Missing resource in URI" msgstr "URI のリソースがない" msgid "Missing scheme in URI" msgstr "URI のスキームがない" msgid "Missing value string" msgstr "値文字列がありません" msgid "Missing x-dimension in media-size." msgstr "media-size に x-dimension がありません。" msgid "Missing y-dimension in media-size." msgstr "media-size に y-dimension がありません。" #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "モデル: 名前 = %s\n" " 言語 = %s\n" " プリンタードライバー = %s\n" " デバイス ID = %s" msgid "Modifiers:" msgstr "修飾子:" msgid "Modify Class" msgstr "クラスの変更" msgid "Modify Printer" msgstr "プリンターの変更" msgid "Move All Jobs" msgstr "すべてのジョブの移動" msgid "Move Job" msgstr "ジョブの移動" msgid "Moved Permanently" msgstr "別の場所へ移動しました" msgid "NULL PPD file pointer" msgstr "PPD ファイルポインターが NULL です" msgid "Name OID uses indefinite length" msgstr "OID 名は限定的な長さを使用します" msgid "Nested classes are not allowed." msgstr "入れ子になったクラスは許可されていません。" msgid "Never" msgstr "Never" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "いいえ" msgid "No Content" msgstr "中身がありません" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "PPD の名前がありません" msgid "No VarBind SEQUENCE" msgstr "VarBind SEQUENCE がありません" msgid "No active connection" msgstr "アクティブな接続はありません" msgid "No active connection." msgstr "アクティブな接続はありません。" #, c-format msgid "No active jobs on %s." msgstr "%s にはアクティブなジョブはありません。" msgid "No attributes in request." msgstr "リクエストに属性がありません。" msgid "No authentication information provided." msgstr "認証情報が提供されていません。" msgid "No common name specified." msgstr "" msgid "No community name" msgstr "コミュニティ名がありません" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "デフォルトのプリンターはありません。" msgid "No destinations added." msgstr "追加された宛先はありません。" msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "argv[0] または 環境変数 DEVICE_URI にデバイス URI が見つかりません。" msgid "No error-index" msgstr "エラーインデックスがありません" msgid "No error-status" msgstr "エラーステータスがありません" msgid "No file in print request." msgstr "印刷リクエストにファイルがありません。" msgid "No modification time" msgstr "変更時刻がありません" msgid "No name OID" msgstr "OID 名がありません" msgid "No pages were found." msgstr " ページが見つかりません。" msgid "No printer name" msgstr "プリンター名がありません" msgid "No printer-uri found" msgstr "プリンター URI が見つかりません" msgid "No printer-uri found for class" msgstr "クラスのプリンター URI が見つかりません" msgid "No printer-uri in request." msgstr "プリンター URI のリクエストがありません。" msgid "No request URI." msgstr "リクエスト URI がありません。" msgid "No request protocol version." msgstr "リクエストプロトコルバージョンがありません。" msgid "No request sent." msgstr "リクエストが送られませんでした。" msgid "No request-id" msgstr "リクエストID がありません" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "リクエストにサブスクリプション属性がありません。" msgid "No subscriptions found." msgstr "サブスクリプションが見つかりません。" msgid "No variable-bindings SEQUENCE" msgstr "variable-bindings SEQUENCE がありません" msgid "No version number" msgstr "バージョン名がありません" msgid "Non-continuous (Mark sensing)" msgstr "非連続です (Mark sensing)" msgid "Non-continuous (Web sensing)" msgstr "非連続です (Web sensing)" msgid "None" msgstr "" msgid "Normal" msgstr "標準" msgid "Not Found" msgstr "見つかりません" msgid "Not Implemented" msgstr "実装されていません" msgid "Not Installed" msgstr "インストールされていません" msgid "Not Modified" msgstr "変更されていません" msgid "Not Supported" msgstr "サポートされていません" msgid "Not allowed to print." msgstr "印刷が許可されていません。" msgid "Note" msgstr "注意" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Off (片面)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "オンラインヘルプ" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "%s のオープンに失敗しました: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup の前にまず CloseGroup が必要です" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI の前にまず CloseUI/JCLCloseUI が必要です" msgid "Operation Policy" msgstr "操作ポリシー" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "オプション \"%s\" は %%%%IncludeFeature 経由で含めることはできません。" msgid "Options Installed" msgstr "インストールされたオプション" msgid "Options:" msgstr "オプション:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "PPD キャッシュファイルが古すぎます。" msgid "Out of memory." msgstr "メモリーが足りません。" msgid "Output Mode" msgstr "出力モード" msgid "PCL Laser Printer" msgstr "PCL レーザープリンター" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K 長辺送り" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K 長辺送り" msgid "PRC32K Oversize" msgstr "PRC32K (特大)" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K (特大) 長辺送り" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "パケットが Get-Response-PDU を含んでいません" msgid "Packet does not start with SEQUENCE" msgstr "パケットが SEQUENCE から始まりません" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "%s のパスワード (%s 上)? " msgid "Pause Class" msgstr "クラスの休止" msgid "Pause Printer" msgstr "プリンターの休止" msgid "Peel-Off" msgstr "Peel-Off" msgid "Photo" msgstr "写真" msgid "Photo Labels" msgstr "写真ラベル" msgid "Plain Paper" msgstr "普通紙" msgid "Policies" msgstr "ポリシー" msgid "Port Monitor" msgstr "ポートモニター" msgid "PostScript Printer" msgstr "PostScript プリンター" msgid "Postcard" msgstr "ハガキ" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "往復ハガキ 長辺送り" msgid "Postcard Long Edge" msgstr "ハガキ 長辺送り" msgid "Preparing to print." msgstr "印刷準備中です。" msgid "Print Density" msgstr "印刷密度" msgid "Print Job:" msgstr "ジョブの印刷:" msgid "Print Mode" msgstr "印刷モード" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "印刷レート" msgid "Print Self-Test Page" msgstr "自己テストページの印刷" msgid "Print Speed" msgstr "印刷速度" msgid "Print Test Page" msgstr "テストページの印刷" msgid "Print and Cut" msgstr "プリントしてカット" msgid "Print and Tear" msgstr "プリントして切り取る" msgid "Print file sent." msgstr "プリントファイルが送られました。" msgid "Print job canceled at printer." msgstr "印刷ジョブはプリンターでキャンセルされました。" msgid "Print job too large." msgstr "印刷ジョブが大きすぎます。" msgid "Print job was not accepted." msgstr "印刷ジョブが受け付けられませんでした。" #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "追加されたプリンター" msgid "Printer Default" msgstr "デフォルトのプリンター" msgid "Printer Deleted" msgstr "削除されたプリンター" msgid "Printer Modified" msgstr "変更されたプリンター" msgid "Printer Paused" msgstr "プリンターの休止" msgid "Printer Settings" msgstr "プリンター設定" msgid "Printer cannot print supplied content." msgstr "プリンターは受信した内容を印刷できませんでした。" msgid "Printer cannot print with supplied options." msgstr "指定されたオプションではプリンターは印刷できません。" msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "プリンター:" msgid "Printers" msgstr "プリンター" #, c-format msgid "Printing page %d, %u%% complete." msgstr "ページ %d, %u%% の印刷が完了しました。" msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "クォータの制限に達しました。" msgid "Rank Owner Job File(s) Total Size" msgstr "ランク 所有者 ジョブ ファイル 合計サイズ" msgid "Reject Jobs" msgstr "ジョブの拒否" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "リモートホストがコントロールファイルを受け付けませんでした (%d)。" #, c-format msgid "Remote host did not accept data file (%d)." msgstr "リモートホストがデータファイルを受け付けませんでした (%d)。" msgid "Reprint After Error" msgstr "エラー後の再印刷" msgid "Request Entity Too Large" msgstr "要求するエンティティが大きすぎます" msgid "Resolution" msgstr "解像度" msgid "Resume Class" msgstr "クラスを再開する" msgid "Resume Printer" msgstr "プリンターを再開する" msgid "Return Address" msgstr "返信用ラベル" msgid "Rewind" msgstr "巻き取り" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE は不定長を使用しています" msgid "SSL/TLS Negotiation Error" msgstr "SSL/TLS のネゴシエーションエラー" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "残りを見てください" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "データをプリンターに送信しています。" msgid "Server Restarted" msgstr "再起動されたサーバー" msgid "Server Security Auditing" msgstr "サーバーのセキュリティー監査" msgid "Server Started" msgstr "開始されたサーバー" msgid "Server Stopped" msgstr "停止されたサーバー" msgid "Server credentials not set." msgstr "サーバー証明書が設定されていません。" msgid "Service Unavailable" msgstr "利用できないサービス" msgid "Set Allowed Users" msgstr "許可するユーザーの設定" msgid "Set As Server Default" msgstr "サーバーのデフォルトに設定" msgid "Set Class Options" msgstr "クラスオプションの設定" msgid "Set Printer Options" msgstr "プリンターオプションの設定" msgid "Set Publishing" msgstr "公開の設定" msgid "Shipping Address" msgstr "発送先ラベル" msgid "Short-Edge (Landscape)" msgstr "短辺 (横原稿)" msgid "Special Paper" msgstr "特殊紙" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "ジョブをスプール中、%.0f%% 完了しました。" msgid "Standard" msgstr "標準" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "開始バナー" #, c-format msgid "Starting page %d." msgstr "ページ %d を開始しています。" msgid "Statement" msgstr "記述" #, c-format msgid "Subscription #%d does not exist." msgstr "サブスクリプション番号 %d は存在しません。" msgid "Substitutions:" msgstr "置換:" msgid "Super A" msgstr "スーパー A" msgid "Super B" msgstr "スーパー B" msgid "Super B/A3" msgstr "スーパー B/A3" msgid "Switching Protocols" msgstr "プロトコルの変更" msgid "Tabloid" msgstr "タブロイド" msgid "Tabloid Oversize" msgstr "タブロイド (特大)" msgid "Tabloid Oversize Long Edge" msgstr "タブロイド (特大) 長辺送り" msgid "Tear" msgstr "Tear" msgid "Tear-Off" msgstr "Tear-Off" msgid "Tear-Off Adjust Position" msgstr "Tear-Off 位置調節" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "印刷ジョブに \"%s\" 属性が必要です。" #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "%s 属性は、ジョブ ID と一緒に使うことはできません。" #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "%s 操作属性は、Create-Job リクエストの中で使うことはできません。" #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "PPD ファイル \"%s\" が見つかりません。" #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "PPD ファイル \"%s\" を開けませんでした: %s" msgid "The PPD file could not be opened." msgstr "PPD ファイルを開けませんでした。" msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "クラス名は 127 文字以内の表示可能文字からなり、空白、スラッシュ (/)、ハッ" "シュ (#) を含んではなりません。" msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "notify-lease-duration 属性は、ジョブサブスクリプションと一緒に使うことはでき" "ません。" #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "notify-user-data 値が大きすぎます (%d > 63 オクテット)。" msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "プリンターの設定が正しくないかプリンターはすでに存在しません。" msgid "The printer did not respond." msgstr "プリンターが応答しません。" msgid "The printer is in use." msgstr "プリンターは使用中です。" msgid "The printer is not connected." msgstr "プリンターは接続されていません。" msgid "The printer is not responding." msgstr "プリンターが応答していません。" msgid "The printer is now connected." msgstr "プリンターが接続されました。" msgid "The printer is now online." msgstr "プリンターは現在オンラインです。" msgid "The printer is offline." msgstr "プリンターはオフラインです。" msgid "The printer is unreachable at this time." msgstr "プリンターには現在到達できません。" msgid "The printer may not exist or is unavailable at this time." msgstr "プリンターは現在存在しないか、使用できないようです。" msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "プリンターまたはクラスは存在しません。" msgid "The printer or class is not shared." msgstr "プリンターまたはクラスは共有できません。" #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "printer-uri \"%s\" には、無効な文字が含まれています。" msgid "The printer-uri attribute is required." msgstr "printer-uri 属性は必須です。" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "printer-uri は、\"ipp://ホスト名/classes/クラス名\" 形式でなければなりませ" "ん。" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "printer-uri は \"ipp://ホスト名/printers/プリンター名\" 形式でなければなりま" "せん。" msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "Web インターフェイスが現在無効になっています。有効にするには \"cupsctl " "WebInterface=yes\" を実行してください。" #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "which-jobs の値 \"%s\" はサポートされていません。" msgid "There are too many subscriptions." msgstr "サブスクリプションが多すぎます。" msgid "There was an unrecoverable USB error." msgstr "回復不可能な USB のエラーが発生しています。" msgid "Thermal Transfer Media" msgstr "熱転写メディア" msgid "Too many active jobs." msgstr "アクティブなジョブが多すぎます。" #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "job-sheets 値が多すぎます (%d > 2)。" #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "printer-state-reasons 値が多すぎます (%d > %d)。" msgid "Transparency" msgstr "OHP シート" msgid "Tray" msgstr "トレイ" msgid "Tray 1" msgstr "トレイ 1" msgid "Tray 2" msgstr "トレイ 2" msgid "Tray 3" msgstr "トレイ 3" msgid "Tray 4" msgstr "トレイ 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "URI が長すぎます" msgid "URI too large" msgstr "URI が長すぎる" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US レジャー" msgid "US Legal" msgstr "US リーガル" msgid "US Legal Oversize" msgstr "US リーガル (特大)" msgid "US Letter" msgstr "US レター" msgid "US Letter Long Edge" msgstr "US レター 長辺送り" msgid "US Letter Oversize" msgstr "US レター (特大)" msgid "US Letter Oversize Long Edge" msgstr "US レター (特大) 長辺送り" msgid "US Letter Small" msgstr "US レター (小)" msgid "Unable to access cupsd.conf file" msgstr "cupsd.conf ファイルにアクセスできません" msgid "Unable to access help file." msgstr "ヘルプファイルにアクセスできません。" msgid "Unable to add class" msgstr "クラスを追加できません" msgid "Unable to add document to print job." msgstr "ドキュメントを印刷ジョブに追加できません。" #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "宛先 \"%s\"にジョブを追加できません。" msgid "Unable to add printer" msgstr "プリンターを追加できません" msgid "Unable to allocate memory for file types." msgstr "ファイルタイプ用にメモリーを割り当てられません。" msgid "Unable to allocate memory for page info" msgstr "ページ情報のメモリー割り当てができません" msgid "Unable to allocate memory for pages array" msgstr "ページアレイのメモリー割り当てができません" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "プリンターを変更できません。" msgid "Unable to change printer" msgstr "プリンターを変更できません" msgid "Unable to change printer-is-shared attribute" msgstr "printer-is-shared 属性を変更することができません" msgid "Unable to change server settings" msgstr "サーバーの設定を変更できません" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "mimeMediaType の正規表現を解釈できませんでした: %s。" #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "naturalLanguage の正規表現を解釈できませんでした: %s。" msgid "Unable to configure printer options." msgstr "プリンターオプションを設定できません。" msgid "Unable to connect to host." msgstr "ホストに接続できません。" msgid "Unable to contact printer, queuing on next printer in class." msgstr "プリンターと交信できません。クラス内の次のプリンターにキューします。" #, c-format msgid "Unable to copy PPD file - %s" msgstr "PPD ファイルをコピーできません - %s" msgid "Unable to copy PPD file." msgstr "PPD ファイルをコピーできません。" msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "printer-uri を作成できません" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "サーバー証明書を作成できません。" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "テンポラリーファイルを作成できません" msgid "Unable to delete class" msgstr "クラスを削除できません" msgid "Unable to delete printer" msgstr "プリンターを削除できません" msgid "Unable to do maintenance command" msgstr "メンテナンスコマンドを実行できません" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "1MB 以上の cupsd.conf ファイルは編集できません" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "ホストへの安全な接続が確立できません (認証パスが無効です)。" msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "ホストへの安全な接続が確立できません (認証がまだ有効ではありません)。" msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "ホストへの安全な接続が確立できません (認証が期限切れです)。" msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "ホストへの安全な接続が確立できません (ホスト名が一致しません)。" msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "ホストへの安全な接続が確立できません (応答がある前に接続が切断されました)。" msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "ホストへの安全な接続が確立できません (自己署名証明書です)。" msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "ホストへの安全な接続が確立できません (信用できない証明書です)。" msgid "Unable to establish a secure connection to host." msgstr "ホストへの安全な接続を確立できません。" #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "ジョブの宛先が見つかりません" msgid "Unable to find printer." msgstr "プリンターが見つかりません。" msgid "Unable to find server credentials." msgstr "サーバー証明書を見つけられません。" msgid "Unable to get backend exit status." msgstr "バックエンドの終了ステータスを取得できません。" msgid "Unable to get class list" msgstr "クラスリストを取得できません" msgid "Unable to get class status" msgstr "クラスの状態を取得できません。" msgid "Unable to get list of printer drivers" msgstr "プリンタードライバーのリストを取得できません" msgid "Unable to get printer attributes" msgstr "プリンター属性を取得できません" msgid "Unable to get printer list" msgstr "プリンターリストを取得できません" msgid "Unable to get printer status" msgstr "プリンターの状態を取得できません" msgid "Unable to get printer status." msgstr "プリンターの状態を取得できません。" msgid "Unable to load help index." msgstr "ヘルプの索引を読み込めません。" #, c-format msgid "Unable to locate printer \"%s\"." msgstr "プリンター \"%s\" が見つかりません。" msgid "Unable to locate printer." msgstr "プリンターが見つかりません。" msgid "Unable to modify class" msgstr "クラスを変更できません" msgid "Unable to modify printer" msgstr "プリンターを変更できません" msgid "Unable to move job" msgstr "ジョブを移動できません" msgid "Unable to move jobs" msgstr "複数のジョブを移動できません" msgid "Unable to open PPD file" msgstr "PPD ファイルを読み込むことができません" msgid "Unable to open cupsd.conf file:" msgstr "cupsd.conf ファイルを開けません:" msgid "Unable to open device file" msgstr "デバイスファイルを開けません" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "ドキュメント %d (ジョブ %d) を開けません。" msgid "Unable to open help file." msgstr "ヘルプファイルを読み込むことができません。" msgid "Unable to open print file" msgstr "印刷ファイルを開けません" msgid "Unable to open raster file" msgstr "ラスターファイルを開けません" msgid "Unable to print test page" msgstr "テストページを印刷できません" msgid "Unable to read print data." msgstr "プリントデータを読み込めません。" #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "printer-uri を解決できません。" msgid "Unable to see in file" msgstr "ファイルを読み込むことができません" msgid "Unable to send command to printer driver" msgstr "プリンタードライバーにコマンドを送信できません" msgid "Unable to send data to printer." msgstr "プリンターにデータを送信することができません。" msgid "Unable to set options" msgstr "オプションを設定できません" msgid "Unable to set server default" msgstr "サーバーをデフォルトに設定できません" msgid "Unable to start backend process." msgstr "バックエンドのプロセスを起動できません。" msgid "Unable to upload cupsd.conf file" msgstr "cupsd.conf ファイルをアップロードできません" msgid "Unable to use legacy USB class driver." msgstr "古いタイプの USB クラスドライバーは使用できません。" msgid "Unable to write print data" msgstr "プリントデータを書き込めません" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "非圧縮のプリントデータを書き込めません: %s" msgid "Unauthorized" msgstr "未許可" msgid "Units" msgstr "ユニット" msgid "Unknown" msgstr "未知" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "\"%s\" (オプション \"%s\" 用) は未知の設定です。" #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "\"%s\" は未知の暗号オプション値です。" #, c-format msgid "Unknown file order: \"%s\"." msgstr "\"%s\" は未知のファイルオーダーです。" #, c-format msgid "Unknown format character: \"%c\"." msgstr "\"%c\" は未知の書式文字です。" msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "未知のメディアサイズ名称です。" #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "\"%s\" (値 \"%s\") は未知のオプションです。" #, c-format msgid "Unknown option \"%s\"." msgstr "\"%s\" は未知のオプションです。" #, c-format msgid "Unknown print mode: \"%s\"." msgstr "\"%s\" は未知のプリントモードです。" #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "\"%s\" は未知の printer-error-policy です。" #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "\"%s\" は未知の printer-op-policy です。" msgid "Unknown request method." msgstr "未知のリクエスト方法です。" msgid "Unknown request version." msgstr "未知のリクエストバージョンです。" msgid "Unknown scheme in URI" msgstr "URI に未知のスキーマがあります" msgid "Unknown service name." msgstr "未知のサービス名です。" #, c-format msgid "Unknown version option value: \"%s\"." msgstr "\"%s\" は未知のバージョンオプション値です。" #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "\"%s\" はサポートされていない 'compression' の値です。" #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "\"%s\" はサポートされていない 'document-format' の値です。" msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "サポートされていない 'job-name' の値です。" #, c-format msgid "Unsupported character set \"%s\"." msgstr "\"%s\" はサポートされていない文字セットです。" #, c-format msgid "Unsupported compression \"%s\"." msgstr "\"%s\" はサポートされていない圧縮形式です。" #, c-format msgid "Unsupported document-format \"%s\"." msgstr "\"%s\" はサポートされていない文書形式です。" #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "\"%s/%s\" はサポートされていない文書形式です。" #, c-format msgid "Unsupported format \"%s\"." msgstr "\"%s\" はサポートされていない形式です。" msgid "Unsupported margins." msgstr "サポートされていないマージンです。" msgid "Unsupported media value." msgstr "サポートされていないメディアの値です。" #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "%d はサポートされていない number-up 値です。number-up=1 を使用します。" #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "%s はサポートされていない number-up-layout 値です。number-up-layout=lrtb を使" "用します。" #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" "%s はサポートされていない page-border 値です。page-border=none を使用します。" msgid "Unsupported raster data." msgstr "サポートされていないラスターデータです。" msgid "Unsupported value type" msgstr "サポートされていない型の値です" msgid "Upgrade Required" msgstr "アップグレードが必要です" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "使い方: %s ジョブID ユーザー タイトル コピー数 オプション [ファイル]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Usage: cupsctl [オプション] [パラメータ=値 ... パラメータN=値N]" msgid "Usage: cupsd [options]" msgstr "使い方: cupsd [オプション]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "使い方: cupsfilter [ オプション ] [ -- ] ファイル名" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "使い方: ippfind [オプション] 登録タイプ[,サブタイプ][.ドメイン.] ... [式]\n" " ippfind [オプション] 名前[.登録タイプ[.ドメイン.]] ... [式]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "使い方: ipptool [オプション] URI ファイル名 [ ... ファイル名N ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "使い方: ppdc [オプション] ファイル名.drv [ ... ファイル名N.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "使い方: ppdhtml [オプション] ファイル名.drv >ファイル名.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "使い方: ppdi [オプション] ファイル名.ppd [ ... ファイル名N.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "使い方: ppdmerge [オプション] ファイル名.ppd [ ... ファイル名N.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "使い方: ppdpo [オプション] -o ファイル名.po ファイル名.drv [ ... ファイル名N." "drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "使い方: snmp [ホスト名またはIPアドレス]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "値は不定長です" msgid "VarBind uses indefinite length" msgstr "VarBind は不定長です" msgid "Version uses indefinite length" msgstr "Version は不定長です" msgid "Waiting for job to complete." msgstr "ジョブが完了するのを待っています。" msgid "Waiting for printer to become available." msgstr "プリンターが使用可能になるのを待っています。" msgid "Waiting for printer to finish." msgstr "プリンターが終了するのを待っています。" msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "Web インターフェイスが無効になっています" msgid "Yes" msgstr "はい" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "" "このページには URL https://%s:%d%s を使ってアクセスする必要があります。" msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "ZPL ラベルプリンター" msgid "Zebra" msgstr "ゼブラ" msgid "aborted" msgstr "停止" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "キャンセル" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "完了" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "cups-deviced の実行に失敗しました。" msgid "cups-driverd failed to execute." msgstr "cups-driverd の実行に失敗しました。" #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: サーバーに接続できません: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: \"%s\" は未知のオプションです。" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: \"-%c\"は未知のオプションです。" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: \"-c\" オプションのあとには設定ファイル名が必要です。" msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" "cupsd: cups-files.conf ファイル名は \"-s\" オプションの後ろにあるべきです。" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" "cupsd: オンデマンドサポート有効でコンパイルされていません、標準モードで動作し" "ます。" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: 相対パスでの cups-files.conf の指定はできません。" msgid "cupsd: Unable to get current directory." msgstr "cupsd: カレントディレクトリーを取得できません。" msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: cups-files.conf ファイルへのパスが取得できません。" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: \"%s\" は未知の引数です - 停止します。" #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: \"%c\" は未知のオプションです - 停止します。" #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: 不正な文書番号 %d です。" #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: 不正なジョブID %d です。" msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: 1 つのファイル名のみを指定できます。" #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: ジョブ・ファイルを取得できません - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: -q オプションは -v オプションと両立できません。" msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: -v オプションは -q オプションと両立できません。" #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "%s/%s のデバイス: %s" #, c-format msgid "device for %s: %s" msgstr "%s のデバイス: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index は不定長です" msgid "error-status uses indefinite length" msgstr "error-status は不定長です" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "保留" msgid "help\t\tGet help on commands." msgstr "help\t\tコマンドのヘルプを取得。" msgid "idle" msgstr "待機中" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: 不正な正規表現です: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: --and は --or のあとに指定することはできません。" #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: %s のあとにはキー名が必要です。" #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: %s のあとにはポート範囲が必要です。" #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: %s のあとにはプログラム名が必要です。" #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: %s のあとにはセミコロンが必要です。" msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: 置換文字列の閉じカッコがありません。" msgid "ippfind: Missing close parenthesis." msgstr "ippfind: 閉じカッコが不足しています。" msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: \"--and\" の前には式が必要です。" msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: \"--or\" の前には式が必要です。" #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: %s のあとにはキー名が必要です。" #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "ippfind: 開きカッコが足りません。" #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: %s のあとにはプログラム名が必要です。" #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: %s のあとには正規表現が必要です。" #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: %s のあとにはセミコロンが必要です。" msgid "ippfind: Out of memory." msgstr "ippfind: メモリ不足です。" msgid "ippfind: Too many parenthesis." msgstr "ippfind: カッコが多すぎます。" #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: %s をブラウズできないか名前解決できません。" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: \"%s\" を実行できません: %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: Bonjour を利用できません: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: \"{%s}\" は不明な変数です。" msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" "ipptool: \"-i\" および \"-n\" は \"-P\"、\"-X\" と一緒に指定できません。" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: \"-i\" に不正な秒数が指定されました。" msgid "ipptool: May only specify a single URI." msgstr "ipptool: URI は 1 つだけ指定できます。" msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: \"-n\" に回数の指定がありません。" msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: \"-f\" にファイル名の指定がありません。" msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: \"-d\" に 名前=値 の指定がありません。" msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: \"-i\" に秒数の指定がありません。" msgid "ipptool: URI required before test file." msgstr "ipptool: テストファイルの前に URI の指定が必要です。" #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "job-printer-uri 属性がありません。" #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: クラス名は表示可能文字のみで構成されなければなりません。" #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" "lpadmin: \"-u\" オプションのあとには allow/deny:ユーザーリスト が必要です。" msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: \"-r\" オプションのあとにはクラス名が必要です。" msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: \"-c\" オプションのあとにはクラス名が必要です。" msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: \"-D\" オプションのあとには説明が必要です。" msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: \"-v\" オプションのあとにはデバイス URI が必要です。" msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: \"-I\" オプションのあとにはファイル形式が必要です。" msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: \"-h\" オプションのあとにはホスト名が必要です。" msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: \"-L\" オプションのあとには場所が必要です。" msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: \"-m\" オプションのあとにはモデル名が必要です。" msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: \"-R\" オプションのあとには名前が必要です。" msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: \"-o\" オプションのあとには 変数名=値 が必要です。" msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: \"-p\" オプションのあとにはプリンター名が必要です。" msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: \"-d\" オプションのあとにはプリンター名が必要です。" msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "" "lpadmin: \"-x\" オプションのあとにはプリンター名またはクラス名が必要です。" msgid "lpadmin: No member names were seen." msgstr "lpadmin: メンバー名が見当たりません。" #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: プリンター %s はすでにクラス %s のメンバーです。" #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: プリンター %s はクラス %s のメンバーではありません。" msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: プリンター名には表示可能文字だけが使用できます。" msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: クラスにプリンターを追加できません:\n" " 先にプリンター名を指定する必要があります。" #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: サーバーに接続できません: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: テンポラリーファイルを作成できません" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: プリンター・オプションを削除できません:\n" " 先にプリンター名を指定する必要があります。" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: クラスからプリンターを削除できません:\n" " 先にプリンター名を指定する必要があります。" msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: プリンター・オプションを設定できません:\n" " 先にプリンター名を指定する必要があります。" #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin:\"%s\" は未知の allow/deny オプションです。" #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: \"%s\" は未知の引数です。" #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: \"%c\" は未知のオプションです。" msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: 警告 - コンテンツタイプリストは無視されます。" msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" "lpinfo: \"--device-id\" のあとには、1284 デバイス ID を指定する必要がありま" "す。" msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: \"--language\" のあとには、言語を指定する必要があります。" msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "" "lpinfo: \"--make-and-model\" のあとには、メーカーとモデルを指定する必要があり" "ます。" msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: \"--product\" のあとには、製品名を指定する必要があります。" msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" "lpinfo: \"--exclude-schemes\" のあとには、スキーマ・リストを指定する必要があ" "ります。" msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" "lpinfo: \"--include-schemes\" のあとには、スキーマ・リストを指定する必要があ" "ります。" msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "" "lpinfo: \"--timeout\" のあとには、タイムアウト値を指定する必要があります。" #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: サーバーに接続できません: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: 未知の引数 \"%s\"。" msgid "lpoptions: No printers." msgstr "lpoptions: プリンターがありません。" #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: プリンターまたはインスタンスを追加できません: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: %s の PPD ファイルを取得できません: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: %s の PPD ファイルを開けません。" msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: 未知のプリンターまたはクラスです。" #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: エラー - 環境変数 %s が、存在しない宛先 \"%s\" を指しています。" #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "クラス %s のメンバー:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "エントリーがありません" msgid "no system default destination" msgstr "システムのデフォルトの宛先がありません" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "notify-events が指定されていません。" #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI \"%s\" はすでに使われています。" #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI \"%s\" には未知のスキームが使われています。" #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "プリンター待ち" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: ディレクトリー \"%s\" を追加しています。" #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: %s から UI テキストを追加または更新しています。" #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: 不正な boolean 値 (%s) があります。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "不正なフォント属性: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: 不正な resolution 名 \"%s\" があります。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: 不正な status キーワード %s があります。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc: 不正な数値置換 ($%c) があります。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" "ppdc: %d 行目、ファイル名 %s で、Option がないのに Choice が見つかりました。" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" "ppdc: locale %s に対して #po が二重に定義されています。%d 行目、ファイル名 " "%s。" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s においてフィルター定義が必要です。" #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s においてプログラム名が必要です。" #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において boolean 値が必要です。" #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Font のあとに charset が必要です。" #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において choice code が必要です。" #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において choice name/text が必要です。" #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ColorModel に対する color order が必要" "です。" #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ColorModel に対する colorspace が必要で" "す。" #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ColorModel に対する compression が必要" "です。" #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において UIConstraints に対する constraint が必" "要です。" #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において DriverType のあとに driver type " "keyword が必要です。" #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Duplex のあとに type が必要です。" #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Font のあとに encoding が必要です。" #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "ppdc: #po %s のあとにファイル名が必要です (%d 行目, ファイル %s)。" #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において group name/text が必要です。" #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において include ファイル名 が必要です。" #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において整数指定が必要です。" #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において #po のあとに locale が必要です。" #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: %s のあとに name が必要です。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において FileName のあとに name が必要です。" #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において Font のあとに name が必要です。" #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Manufacturer のあとに name が必要です。" #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において MediaSize のあとに name が必要です。" #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ModelName のあとに name が必要です。" #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において PCFileName のあとに name が必要です。" #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: %s のあとに name/text が必要です。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Installable のあとに name/text が必要で" "す。" #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Resolution のあとに name/text が必要で" "す。" #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ColorModel に対する name/text が必要で" "す。" #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において option name/text が必要です。" #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において option section が必要です。" #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において option type が必要です。" #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Resolution のあとに override field が必" "要です。" #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "%d 行: %s には引用符で囲まれた文字列が必要です。" #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において実数が必要です。" #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において ColorProfile に続いて resolution/" "mediatype が必要です。" #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において SimpleColorProfile に続いて resolution/" "mediatype が必要です。" #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: %s のあとに selector が必要です。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Font のあとに status が必要です。" #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Copyright のあとに文字列が必要です。" #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Version のあとに文字列が必要です。" #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において 2 つのオプション名が必要です。" #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: %s のあとに value が必要です。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Font のあとに version が必要です。" #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: 無効な #include/#po ファイル名です \"%s\"。" #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s においてフィルターに対する無効な cost がありま" "す。" #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s においてフィルターに対する無効な空の MIME タイプ" "があります。" #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s においてフィルターに対するプログラム名が空であり" "無効です。" #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" "ppdc: 無効な option section があります \"%s\"。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: 無効な option type があります \"%s\"。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: ドライバー情報ファイル \"%s\" を読み込んでいます。" #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: ロケール \"%s\" のメッセージを読み込んでいます。" #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: \"%s\" からメッセージを読み込んでいます。" #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: \"%s\" の最後に #endif が見つかりません。" #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において #if が見つかりません。" #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "%d 行: %s の翻訳文字列の前に msgid 行が必要です。" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: ロケール %s に対するメッセージカタログが見つかりません。" #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" "ppdc: オプション %s が行 %d、ファイル %s の 2 つの異なるグループで定義されて" "います。" #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" "ppdc: オプション %s は異なる型で再定義されています。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" "ppdc: %d 行目、ファイル名 %s において Option constraint は *name で指定しなけ" "ればなりません。" #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: %d 行目、ファイル名 %s において #if のネストが多すぎます。" #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: PPD ファイル \"%s\" を作成できません - %s。" #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: 出力ディレクトリー \"%s\" を作成できません - %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: 出力パイプを作成できません: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: cupstestppd を実行できません: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: #po ファイル %s が見つかりません。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" "ppdc: インクルードファイル %s が見つかりません。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: \"%s\" に対する地域化情報が見つかりません - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: \"%s\" に対するローカライズファイルを読み込めません - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: %s を開けません: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: 変数 (%s) は未定義です。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "%d 行: %s は予期せぬテキストです。" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: %s は未知のドライバータイプです。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: \"%s\" は未知の両面タイプです。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: \"%s\" は未知の用紙サイズです。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "\"%s\" は未知のメッセージカタログの書式です。" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: 未知のトークン \"%s\" があります。%d 行目、ファイル名 %s。" #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "ppdc: 実数 \"%s\" に未知の終了文字があります。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" "ppdc: %c で始まる文字に対して終端文字がありません。%d 行目、ファイル名 %s。" #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: 警告 - ファイル名 \"%s\" が重複しています。" #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: %s を書き込んでいます。" #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: ディレクトリー \"%s\" に PPD ファイルを書き込んでいます。" #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: 不正な LanguageVersion \"%s\" が %s にあります。" #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: PPD ファイル %s を無視します。" #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: %s を %s にバックアップできません - %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "プリンター %s は %s から無効です -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "プリンター %s は待機中です。%s 以来有効です" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "プリンター %s は %s-%d を印刷しています。%s 以来有効です" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "プリンター %s/%s は %s から無効です -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "プリンター %s/%s は待機中です。%s 以来有効です" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "プリンター %s/%s は現在 %s-%d を印刷中です。%s 以来有効です" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "処理中" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "リクエスト ID は %s-%d です (%d 個のファイル)" msgid "request-id uses indefinite length" msgstr "リクエスト ID の長さが不定" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "スケジューラーは動作していません" msgid "scheduler is running" msgstr "スケジューラーは動作中です" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "%s の状態取得に失敗しました: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tデーモンとキューの状態を表示。" #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "停止" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "システムのデフォルトの宛先: %s" #, c-format msgid "system default destination: %s/%s" msgstr "システムのデフォルトの宛先: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "未知" msgid "untitled" msgstr "タイトルなし" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings の長さが不定" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "" #~ "プリンタードライバーをエクスポートするには Samba のパスワードが必要です。" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "プリンタードライバーをエクスポートするには、Samba のユーザー名が必要です。" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Samba へプリンターをエクスポート" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: Listen あるいは Port を直接設定できません。" #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: PPD ファイル \"%s\" を開けません - %s" cups-2.4.7/locale/cups_it.po0000644000175000017500000123440114502571342015633 0ustar zdohnalzdohnal# # Italian message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Giovanni Scafora , 2013. msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2013-07-14 12:00+0200\n" "Last-Translator: Giovanni Scafora \n" "Language-Team: Italian - Arch Linux Italian Team \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "\t\t(tutti)" msgid "\t\t(none)" msgstr "\t\t(nessuno)" #, c-format msgid "\t%d entries" msgstr "\t%d voci" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tDopo un errore: continua" #, c-format msgid "\tAlerts: %s" msgstr "\tAvvisi: %s" msgid "\tBanner required" msgstr "\tBanner richiesto" msgid "\tCharset sets:" msgstr "\tSet di caratteri:" msgid "\tConnection: direct" msgstr "\tConnessione: diretta" msgid "\tConnection: remote" msgstr "\tConnessione: remota" msgid "\tContent types: any" msgstr "\tTipi di contenuto: qualsiasi" msgid "\tDefault page size:" msgstr "\tDimensione predefinite della pagina:" msgid "\tDefault pitch:" msgstr "\tTono predefinito:" msgid "\tDefault port settings:" msgstr "\tImpostazioni predefinite della porta:" #, c-format msgid "\tDescription: %s" msgstr "\tDescrizione: %s" msgid "\tForm mounted:" msgstr "\tModulo installato:" msgid "\tForms allowed:" msgstr "\tModuli consentiti:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tInterfaccia: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tInterfaccia: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tPosizione: %s" msgid "\tOn fault: no alert" msgstr "\tIn caso di errore: nessun avviso" msgid "\tPrinter types: unknown" msgstr "\tTipi di stampanti: sconosciuto" #, c-format msgid "\tStatus: %s" msgstr "\tStato: %s" msgid "\tUsers allowed:" msgstr "\tUtenti autorizzati:" msgid "\tUsers denied:" msgstr "\tUtenti non autorizzati:" msgid "\tdaemon present" msgstr "\tdemone presente" msgid "\tno entries" msgstr "\tnessuna voce" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tla stampante è sul dispositivo '%s' velocità -1" msgid "\tprinting is disabled" msgstr "\tla stampa è disabilitata" msgid "\tprinting is enabled" msgstr "\tla stampa è abilitata" #, c-format msgid "\tqueued for %s" msgstr "\tin coda per %s" msgid "\tqueuing is disabled" msgstr "\tla coda è disabilitata" msgid "\tqueuing is enabled" msgstr "\tla coda è abilitata" msgid "\treason unknown" msgstr "\tmotivo sconosciuto" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " RISULTATI DETTAGLIATI DEL TEST DI CONFORMITÀ" msgid " REF: Page 15, section 3.1." msgstr " RIF: pagina 15, sezione 3.1." msgid " REF: Page 15, section 3.2." msgstr " RIF: pagina 15, sezione 3.2." msgid " REF: Page 19, section 3.3." msgstr " RIF: pagina 19, sezione 3.3." msgid " REF: Page 20, section 3.4." msgstr " RIF: pagina 20, sezione 3.4." msgid " REF: Page 27, section 3.5." msgstr " RIF: pagina 27, sezione 3.5." msgid " REF: Page 42, section 5.2." msgstr " RIF: pagina 42, sezione 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " RIF: pagine 16-17, sezione 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " RIF: pagine 42-45, sezione 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " RIF: pagine 45-46, sezione 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " RIF: pagine 48-49, sezione 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " RIF: pagine 52-54, sezione 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f byte" #, c-format msgid " PASS Default%s" msgstr " PASS Default%s" msgid " PASS DefaultImageableArea" msgstr " PASS DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " PASS DefaultPaperDimension" msgid " PASS FileVersion" msgstr " PASS FileVersion" msgid " PASS FormatVersion" msgstr " PASS FormatVersion" msgid " PASS LanguageEncoding" msgstr " PASS LanguageEncoding" msgid " PASS LanguageVersion" msgstr " PASS LanguageVersion" msgid " PASS Manufacturer" msgstr " PASS Manufacturer" msgid " PASS ModelName" msgstr " PASS ModelName" msgid " PASS NickName" msgstr " PASS NickName" msgid " PASS PCFileName" msgstr " PASS PCFileName" msgid " PASS PSVersion" msgstr " PASS PSVersion" msgid " PASS PageRegion" msgstr " PASS PageRegion" msgid " PASS PageSize" msgstr " PASS PageSize" msgid " PASS Product" msgstr " PASS Product" msgid " PASS ShortNickName" msgstr " PASS ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " WARN %s non ha opzioni corrispondenti." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " WARN %s condivide un prefisso comune con %s\n" " RIF: pagina 15, sezione 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " WARN La parola chiave dell'opzione duplex %s potrebbe non " "funzionare come previsto e dovrebbe essere chiamata Duplex.\n" " RIF: pagina 122, sezione 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " WARN Il file contiene un insieme di righe che terminano con CR, " "LF e CR LF." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " WARN LanguageEncoding è richiesto dalle specifiche PPD 4.3.\n" " RIF: pagine 56-57, sezione 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " WARN La riga %d contiene solo spazi." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " WARN Manufacturer è richiesto dalle specifiche PPD 4.3.\n" " RIF: pagine 58-59, sezione 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " WARN I file PPD per sistemi diversi da Windows dovrebbero " "utilizzare solo righe terminanti con LF e non con CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " WARN Versione obsoleta di PPD %.1f.\n" " RIF: pagina 42, sezione 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName più lungo di 8.3 vìola le specifiche PPD.\n" " RIF: pagine 61-62, sezione 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName dovrebbe contenere un nome del file unico.\n" " RIF: pagine 61-62, sezione 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Il protocollo contiene PJL ma gli attributi di JCL non sono " "impostati.\n" " RIF: pagine 78-79, sezione 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Il protocollo contiene entrambi PJL e BCP; è previsto TBCP.\n" " RIF: pagine 78-79, sezione 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " WARN ShortNickName richiesto dalle specifiche di PPD 4.3.\n" " RIF: pagine 64-65, sezione 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" confligge con \"%s %s\"\n" " (vincolo=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s non esiste." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s file \"%s\" ha la capitalizzazione sbagliata." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s errata %s scelta %s.\n" " RIF: pagina 122, sezione 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s UTF-8 non è valido \"%s\" la string di traduzione dell'opzione %s, " "scelta %s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" " %s UTF-8 non è valido \"%s\" la stringa di traduzione dell'opzione %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s valore di cupsFilter non è valido \"%s\"." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s il valore di cupsFilter2 non è valido \"%s\"." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s il valore di cupsICCProfile non è valido %s." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s il valore di cupsPreFilter non è valido \"%s\"." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s il valore di cupsUIConstraints non è valido %s: \"%s\"" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s la lingua non è valida \"%s\"." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s permessi errati sul file %s \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s ortografia errata di %s - dovrebbe essere %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" " %s non è possibile passare entrambi APScanAppPath e APScanAppBundleID." #, c-format msgid " %s Default choices conflicting." msgstr " %s le scelte predefinite confliggono." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s cupsUIConstraints è vuota %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" " %s manca \"%s\" la stringa di traduzione dell'opzione %s, scelta %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s manca \"%s\" la stringa di traduzione dell'opzione %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s manca il file %s \"%s\"." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s manca l'opzione RICHIESTA PageRegion.\n" " RIF: pagina 100, sezione 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s manca l'opzione RICHIESTA PageSize.\n" " RIF: pagina 99, sezione 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s manca la scelta *%s %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s manca la scelta *%s %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s manca cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s manca l'opzione %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s manca l'opzione %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s Nessuna traduzione base \"%s\" è inclusa nel file." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s RICHIESTA %s non definisce la scelta None.\n" " RIF: pagina 122, sezione 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s dimensione \"%s\" definita per %s ma non per %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "" " %s dimensione \"%s\" presenta delle dimensioni inaspettate (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s dimensione \"%s\" dovrebbe essere \"%s\"." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" " %s dimensione \"%s\" dovrebbe essere il nome standard di Adobe \"%s\"." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfile %s il valore dell'hash collide con %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s causa un loop." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr " %s cupsUIResolver %s non elenca almeno due opzioni differenti." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **FAIL** %s deve essere 1284DeviceID\n" " RIF: pagina 72, sezione 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **FAIL** Valore predefinito errato%s %s\n" " RIF: pagina 40, sezione 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** DefaultImageableArea non è valido %s\n" " RIF: pagina 102, sezione 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** DefaultPaperDimension non è valido %s\n" " RIF: pagina 103, sezione 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** FileVersion non è valido \"%s\"\n" " RIF: pagina 56, sezione 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** FormatVersion non è valido \"%s\"\n" " RIF: pagina 56, sezione 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **FAIL** l'attributo di JobPatchFile nel file non è valido\n" " RIF: pagina 24, sezione 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" " **FAIL** LanguageEncoding non è valido %s - deve essere ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr " **FAIL** LanguageVersion non è valido %s - deve essere Inglese." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **FAIL** Manufacturer non è valido (dovrebbe essere \"%s\")\n" " RIF: pagina 211, tabella D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FAIL** ModelName non è valido - \"%c\" non consentito nella " "stringa.\n" " RIF: pagine 59-60, sezione 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FAIL** PSVersion non è valido - non è una \"(stringa) intera\".\n" " RIF: pagine 62-64, sezione 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **FAIL** Product non è valido - non è una \"(stringa)\".\n" " RIF: pagina 62, sezione 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **FAIL** ShortNickName non è valido - più lungo di 31 caratteri.\n" " RIF: pagine 64-65, sezione 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **FAIL** L'opzione %s non è valida scelta %s\n" " RIF: pagina 84, sezione 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" " **FAIL** Il codice dell'opzione predefinita non può essere " "interpretato: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **FAIL** La stringa di traduzione predefinita dell'opzione %s scelta " "%s contiene caratteri a 8-bit." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **FAIL** La stringa di traduzione predefinita dell'opzione %s " "contiene caratteri a 8-bit." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr " **FAIL** I nomi dei gruppi %s e %s differiscono solo per caso." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" " **FAIL** Occorrenze multiple dell'opzione %s nome della scelta %s." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" " **FAIL** I nomi delle scelte %s e %s dell'opzione %s differiscono " "solo per caso." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" " **FAIL** I nomi delle opzioni %s e %s differiscono solo per caso." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **FAIL** RICHIESTA predefinita%s\n" " RIF: pagina 40, sezione 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** RICHIESTA DefaultImageableArea\n" " RIF: pagina 102, sezione 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** RICHIESTA DefaultPaperDimension\n" " RIF: pagina 103, sezione 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** RICHIESTA FileVersion\n" " RIF: pagina 56, sezione 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** RICHIESTA FormatVersion\n" " RIF: pagina 56, sezione 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** RICHIESTA ImageableArea per PageSize %s\n" " RIF: pagina 41, sezione 5.\n" " RIF: pagina 102, sezione 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **FAIL** RICHIESTA LanguageEncoding\n" " RIF: pagina 56-57, sezione 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **FAIL** RICHIESTA LanguageVersion\n" " RIF: pagine 57-58, sezione 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **FAIL** RICHIESTA Manufacturer\n" " RIF: pagine 58-59, sezione 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FAIL** RICHIESTA ModelName\n" " RIF: pagine 59-60, sezione 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **FAIL** RICHIESTA NickName\n" " RIF: pagina 60, sezione 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **FAIL** RICHIESTA PCFileName\n" " RIF: pagine 61-62, sezione 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FAIL** RICHIESTA PSVersion\n" " RIF: pagine 62-64, sezione 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **FAIL** RICHIESTA PageRegion\n" " RIF: pagina 100, sezione 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **FAIL** RICHIESTA PageSize\n" " RIF: pagina 41, sezione 5.\n" " RIF: pagina 99, sezione 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **FAIL** RICHIESTA PageSize\n" " RIF: pagine 99-100, sezione 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** RICHIESTA PaperDimension per PageSize %s\n" " RIF: pagina 41, sezione 5.\n" " RIF: pagina 103, sezione 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **FAIL** RICHIESTA Product\n" " RIF: pagina 62, sezione 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FAIL** RICHIESTA ShortNickName\n" " RIF: pagina 64-65, sezione 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **FAIL** Non è possibile aprire il file PPD - %s alla riga %d." #, c-format msgid " %d ERRORS FOUND" msgstr " %d SONO STATI TROVATI DEGLI ERRORI" msgid " NO ERRORS FOUND" msgstr " NON SONO STATI TROVATI ERRORI" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Termina righe con CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Termina righe con CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr "" msgid " -D Remove the input file when finished." msgstr "" " -D Rimuovi il file di input una volta terminato." msgid " -D name=value Set named variable to value." msgstr " -D name=value Imposta la variabile chiamata al valore." msgid " -I include-dir Add include directory to search path." msgstr "" " -I include-dir Aggiunge la directory include al percorso della " "ricerca." msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd Imposta il file PPD." msgid " -U username Specify username." msgstr " -U username Specifica l'username." msgid " -c catalog.po Load the specified message catalog." msgstr "" " -c catalog.po Carica il catalogo del messaggio specificato." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" msgid " -d output-dir Specify the output directory." msgstr " -d output-dir Specifica la directory di output." msgid " -d printer Use the named printer." msgstr " -d printer Utilizza la stampante specificata." msgid " -e Use every filter from the PPD file." msgstr " -e Utilizza tutti i filtri dal file PPD." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type Imposta il tipo di MIME di input (altrimenti auto-" "typed)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] File del filtro N dal processo specificato (quello " "predefinito è il file 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] Specifica la lingua(e) (locale) di output." msgid " -m Use the ModelName value as the filename." msgstr " -m Utilizza il valore di ModelName come file." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type Imposta il tipo di MIME di output (altrimenti " "application/pdf)." msgid " -n copies Set number of copies." msgstr " -n copies Imposta il numero di copie." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr " -o filename.drv Imposta un driver (altrimenti ppdi.drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o filename.ppd[.gz] Imposta il file di output (altrimenti stdout)." msgid " -o name=value Set option(s)." msgstr " -o nome=valore Imposta opzione(i)." msgid " -p filename.ppd Set PPD file." msgstr " -p filename.ppd Imposta il file PPD." msgid " -t Test PPDs instead of generating them." msgstr " -t Prova i PPD invece di generarli." msgid " -t title Set title." msgstr " -t title Imposta il titolo." msgid " -u Remove the PPD file when finished." msgstr " -u Rimuove il file PPD una volta terminato." msgid " -v Be verbose." msgstr " -v Fornisce maggiori dettagli." msgid " -z Compress PPD files using GNU zip." msgstr "" " -z Il file PPD compresso sta utilizzando GNU zip." msgid " FAIL" msgstr " OPERAZIONE NON RIUSCITA CORRETTAMENTE" msgid " PASS" msgstr " OPERAZIONE RIUSCITA CON SUCCESSO" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f byte" #, c-format msgid "%d x %d mm" msgstr "" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "" #, c-format msgid "%s (%s, %s)" msgstr "" #, c-format msgid "%s (Borderless)" msgstr "" #, c-format msgid "%s (Borderless, %s)" msgstr "" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "" #, c-format msgid "%s accepting requests since %s" msgstr "%s sta accettando richieste da %s" #, c-format msgid "%s cannot be changed." msgstr "%s non può essere modificato" #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s non è implementato dalla versione di CUPS di lpc." #, c-format msgid "%s is not ready" msgstr "%s non è pronta" #, c-format msgid "%s is ready" msgstr "%s è pronta" #, c-format msgid "%s is ready and printing" msgstr "%s è pronta e sta stampando" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s job-id titolo dell'utente opzioni delle copie [file]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s non sta accettando richieste da %s -" #, c-format msgid "%s not supported." msgstr "%s non è supportato." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s sta accettando richieste da %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s non sta accettando richieste da %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [processo %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s non riuscito correttamente: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: la versione %s non è valida per \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: non so cosa fare." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: errore - %s destinazione inesistente dei nomi delle variabili di " "ambiente \"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: errore - aggiungere '/version=1.1' al nome del server." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: errore - l'ID del processo non è valido." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: errore - non è possibile stampare file e alterare le stampe " "simultaneamente." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: errore - non è possibile stampare da stdin se non si fornisce un file o " "un ID del processo." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: errore - è previsto un set di caratteri dopo l'opzione \"-S\"." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: errore - è previsto il tipo di contenuto dopo l'opzione \"-T\"." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: errore - sono previste delle copie dopo l'opzione \"-#\"." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: errore - sono previste delle copie dopo l'opzione \"-n\"." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: errore - è prevista una destinazione dopo l'opzione \"-P\"." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: errore - è prevista una destinazione dopo l'opzione \"-d\"." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: errore - è previsto un modulo dopo l'opzione \"-f\"." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: errore - è previsto un nome dopo l'opzione \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: errore - è previsto un hostname dopo l'opzione \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: errore - è previsto un hostname dopo l'opzione \"-h\"." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "" "%s: errore - è prevista una lista di modalità di attesa dopo l'opzione \"-y" "\"." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: errore - è previsto un nome dopo l'opzione \"-%c\"." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: errore - è previsto un opzione=valore dopo l'opzione \"-o\"." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: errore - è previsto un elenco di pagine dopo l'opzione \"-P\"." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: errore - è prevista una priorità dopo l'opzione \"-%c\"." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: errore - è previsto un testo del motivo dopo l'opzione \"-r\"." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: errore - è previsto un titolo dopo l'opzione \"-t\"." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: errore - è previsto un username dopo l'opzione \"-U\"." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: errore - è previsto un username dopo l'opzione \"-u\"." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: errore - è previsto un valore dopo l'opzione \"-%c\"." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: errore - deve seguire \"completed\", \"non-completed\" oppure \"all\" " "dopo l'opzione \"-W\"." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: errore - nessuna destinazione predefinita disponibile." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: errore- la priorità deve essere compresa tra 1 e 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: errore - lo scheduler non sta rispondendo." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: errore - troppi file - \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: errore - non è possibile accedere a \"%s\" - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: errore - non è possibile mettere in coda da stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: errore - destinazione sconosciuta \"%s\"." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: errore - destinazione sconosciuta \"%s/%s\"." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: errore - opzione sconosciuta \"%c\"." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: errore - opzione sconosciuta \"%s\"." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: è previsto un ID del processo dopo l'opzione \"-i\"." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: il nome della destinazione non è valido nella lista \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: la stringa del filtro non è valida \"%s\"." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "" #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: manca il timeout di \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: manca la versione di \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" "%s: è necessario un ID del processo (\"-i jobid\") prima di \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: nessun filtro per convertire da %s/%s a %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: operazione non riuscita correttamente: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: spiacenti, nessun supporto per la crittografia." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: non è possibile connettersi al server." #, c-format msgid "%s: Unable to contact server." msgstr "%s: non è possibile contattare il server." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: non è possibile determinare il tipo di MIME di \"%s\"." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: non è possibile aprire %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: non è possibile aprire il file PPD: %s alla riga %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" "%s: non è possibile leggere il database del MIME da \"%s\" oppure da \"%s\"." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: destinazione sconosciuta \"%s\"." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: destinazione sconosciuta del tipo di MIME %s/%s." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: opzione sconosciuta \"%c\"." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: opzione sconosciuta \"%s\"." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: opzione sconosciuta \"-%c\"." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: sorgente sconosciuto del tipo di MIME %s/%s." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: attenzione - \"%c\" il formato del modificatore non è supportato - " "l'output potrebbe non essere corretto." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: attenzione - l'opzione del set dei caratteri è stata ignorata." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: attenzione - l'opzione del tipo di contenuto è stata ignorata." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: attenzione - l'opzione del modulo è stata ignorata." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: attenzione - l'opzione modalità è stata ignorata." msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 inch/sec." msgid "1.25x0.25\"" msgstr "1.25x0.25\"" msgid "1.25x2.25\"" msgstr "1.25x2.25\"" msgid "1.5 inch/sec." msgstr "1.5 inch/sec." msgid "1.50x0.25\"" msgstr "1.50x0.25\"" msgid "1.50x0.50\"" msgstr "1.50x0.50\"" msgid "1.50x1.00\"" msgstr "1.50x1.00\"" msgid "1.50x2.00\"" msgstr "1.50x2.00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 inches/sec." msgid "10 x 11" msgstr "10 x 11" msgid "10 x 13" msgstr "10 x 13" msgid "10 x 14" msgstr "10 x 14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/sec." msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 inches/sec." msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 inches/sec." msgid "12 x 11" msgstr "12 x 11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/sec." msgid "120x60dpi" msgstr "120x60dpi" msgid "120x72dpi" msgstr "120x72dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/sec." msgid "15 x 11" msgstr "15 x 11" msgid "150 mm/sec." msgstr "150 mm/sec." msgid "150dpi" msgstr "150dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 inches/sec." msgid "2-Sided Printing" msgstr "2-Sided Printing" msgid "2.00x0.37\"" msgstr "2.00x0.37\"" msgid "2.00x0.50\"" msgstr "2.00x0.50\"" msgid "2.00x1.00\"" msgstr "2.00x1.00\"" msgid "2.00x1.25\"" msgstr "2.00x1.25\"" msgid "2.00x2.00\"" msgstr "2.00x2.00\"" msgid "2.00x3.00\"" msgstr "2.00x3.00\"" msgid "2.00x4.00\"" msgstr "2.00x4.00\"" msgid "2.00x5.50\"" msgstr "2.00x5.50\"" msgid "2.25x0.50\"" msgstr "2.25x0.50\"" msgid "2.25x1.25\"" msgstr "2.25x1.25\"" msgid "2.25x4.00\"" msgstr "2.25x4.00\"" msgid "2.25x5.50\"" msgstr "2.25x5.50\"" msgid "2.38x5.50\"" msgstr "2.38x5.50\"" msgid "2.5 inches/sec." msgstr "2.5 inches/sec." msgid "2.50x1.00\"" msgstr "2.50x1.00\"" msgid "2.50x2.00\"" msgstr "2.50x2.00\"" msgid "2.75x1.25\"" msgstr "2.75x1.25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/sec." msgid "200 mm/sec." msgstr "200 mm/sec." msgid "203dpi" msgstr "203dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24-Pin Series" msgid "240x72dpi" msgstr "240x72dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/sec." msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 inches/sec." msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00\"" msgid "3.00x1.25\"" msgstr "3.00x1.25\"" msgid "3.00x2.00\"" msgstr "3.00x2.00\"" msgid "3.00x3.00\"" msgstr "3.00x3.00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00\"" msgid "3.25x5.00\"" msgstr "3.25x5.00\"" msgid "3.25x5.50\"" msgstr "3.25x5.50\"" msgid "3.25x5.83\"" msgstr "3.25x5.83\"" msgid "3.25x7.83\"" msgstr "3.25x7.83\"" msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "3.5\" Disk" msgid "3.50x1.00\"" msgstr "3.50x1.00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/sec." msgid "300 mm/sec." msgstr "300 mm/sec." msgid "300dpi" msgstr "300dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360dpi" msgid "360x180dpi" msgstr "360x180dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 inches/sec." msgid "4.00x1.00\"" msgstr "4.00x1.00\"" msgid "4.00x13.00\"" msgstr "4.00x13.00\"" msgid "4.00x2.00\"" msgstr "4.00x2.00\"" msgid "4.00x2.50\"" msgstr "4.00x2.50\"" msgid "4.00x3.00\"" msgstr "4.00x3.00\"" msgid "4.00x4.00\"" msgstr "4.00x4.00\"" msgid "4.00x5.00\"" msgstr "4.00x5.00\"" msgid "4.00x6.00\"" msgstr "4.00x6.00\"" msgid "4.00x6.50\"" msgstr "4.00x6.50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/sec." msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 inches/sec." msgid "5 x 7" msgstr "5 x 7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 inches/sec." msgid "6.00x1.00\"" msgstr "6.00x1.00\"" msgid "6.00x2.00\"" msgstr "6.00x2.00\"" msgid "6.00x3.00\"" msgstr "6.00x3.00\"" msgid "6.00x4.00\"" msgstr "6.00x4.00\"" msgid "6.00x5.00\"" msgstr "6.00x5.00\"" msgid "6.00x6.00\"" msgstr "6.00x6.00\"" msgid "6.00x6.50\"" msgstr "6.00x6.50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/sec." msgid "600dpi" msgstr "600dpi" msgid "60dpi" msgstr "60dpi" msgid "60x72dpi" msgstr "60x72dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 inches/sec." msgid "7 x 9" msgstr "7 x 9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 inches/sec." msgid "8 x 10" msgstr "8 x 10" msgid "8.00x1.00\"" msgstr "8.00x1.00\"" msgid "8.00x2.00\"" msgstr "8.00x2.00\"" msgid "8.00x3.00\"" msgstr "8.00x3.00\"" msgid "8.00x4.00\"" msgstr "8.00x4.00\"" msgid "8.00x5.00\"" msgstr "8.00x5.00\"" msgid "8.00x6.00\"" msgstr "8.00x6.00\"" msgid "8.00x6.50\"" msgstr "8.00x6.50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/sec." msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 inches/sec." msgid "9 x 11" msgstr "9 x 11" msgid "9 x 12" msgstr "9 x 12" msgid "9-Pin Series" msgstr "9-Pin Series" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Aiuto non valido comando sconosciuto." #, c-format msgid "A class named \"%s\" already exists." msgstr "Una classe denominata \"%s\" già esiste." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Una stampante denominata \"%s\" già esiste." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 Long Edge" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 Long Edge" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 Long Edge" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 Long Edge" msgid "A3 Oversize" msgstr "A3 Oversize" msgid "A3 Oversize Long Edge" msgstr "A3 Oversize Long Edge" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 Long Edge" msgid "A4 Oversize" msgstr "A4 Oversize" msgid "A4 Small" msgstr "A4 Small" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 Long Edge" msgid "A5 Oversize" msgstr "A5 Oversize" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 Long Edge" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C Long Edge" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D Long Edge" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E Long Edge" msgid "Accept Jobs" msgstr "Accetta le stampe" msgid "Accepted" msgstr "Accettato" msgid "Add Class" msgstr "Aggiungi una classe" msgid "Add Printer" msgstr "Aggiungi una stampante" msgid "Address" msgstr "Indirizzo" msgid "Administration" msgstr "Amministrazione" msgid "Always" msgstr "Sempre" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Applicatore" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "Tentativo di impostare %s printer-state al valore non valido %d." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "I gruppi degli attributi sono fuori uso (%x < %x)." msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "B5 Oversize" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "Il valore di 'document-format' non è valido \"%s\"." msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Le destinazioni del puntatore NULL non sono valide" msgid "Bad OpenGroup" msgstr "OpenGroup non è valido" msgid "Bad OpenUI/JCLOpenUI" msgstr "OpenUI/JCLOpenUI non è valido" msgid "Bad OrderDependency" msgstr "OrderDependency non è valido" msgid "Bad PPD cache file." msgstr "Il file della cache del PPD non è valido." msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "La richiesta non è valida" msgid "Bad SNMP version number" msgstr "Il numero di versione di SNMP non è valido" msgid "Bad UIConstraints" msgstr "UIConstraints non è valido" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "" #, c-format msgid "Bad copies value %d." msgstr "Il valore %d delle copie non è valido." msgid "Bad custom parameter" msgstr "Il parametro personalizzato non è valido" #, c-format msgid "Bad device-uri \"%s\"." msgstr "Il device-uri \"%s\" non è valido." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Lo schema del device-uri \"%s\" non è valido." #, c-format msgid "Bad document-format \"%s\"." msgstr "Il document-format \"%s\" non è valido." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "Il document-format-default \"%s\" non è valido." msgid "Bad filename buffer" msgstr "Il buffer del file non è valido" msgid "Bad hostname/address in URI" msgstr "" #, c-format msgid "Bad job-name value: %s" msgstr "Il valore di job-name non è valido: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Il valore di job-name non è valido: tipo o conteggio errato." msgid "Bad job-priority value." msgstr "Il valore di job-priority non è valido." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Il valore di job-sheets \"%s\" non è valido." msgid "Bad job-sheets value type." msgstr "Il tipo di valore di job-sheets non è valido." msgid "Bad job-state value." msgstr "Il valore di job-state non è valido." #, c-format msgid "Bad job-uri \"%s\"." msgstr "Il valore di job-uri \"%s\" non è valido." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "Il valore di notify-pull-method \"%s\" non è valido." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "Il valore di notify-recipient-uri \"%s\" non è valido." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Il valore di number-up %d non è valido." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Il valore di page-ranges %d-%d non è valido." msgid "Bad port number in URI" msgstr "" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "Il valore di port-monitor \"%s\" non è valido." #, c-format msgid "Bad printer-state value %d." msgstr "Il valore di printer-state %d non è valido." msgid "Bad printer-uri." msgstr "" #, c-format msgid "Bad request ID %d." msgstr "L'ID della richiesta %d non è valido." #, c-format msgid "Bad request version number %d.%d." msgstr "Il numero della versione richiesta %d.%d non è valido." msgid "Bad resource in URI" msgstr "" msgid "Bad scheme in URI" msgstr "" msgid "Bad username in URI" msgstr "" msgid "Bad value string" msgstr "La stringa ha un valore che non è valido" msgid "Bad/empty URI" msgstr "" msgid "Banners" msgstr "Banner" msgid "Bond Paper" msgstr "Carta per scrivere" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "È previsto un valore booleano per l'opzione waiteof \"%s\"." msgid "Buffer overflow detected, aborting." msgstr "È stato individuato un buffer overflow, operazione annullata." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "CPCL Label Printer" msgid "Cancel Jobs" msgstr "" msgid "Canceling print job." msgstr "Eliminazione del processo di stampa in corso." msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "Non è possibile condividere una stampante remota kerberizzata." msgid "Cassette" msgstr "Caricatore" msgid "Change Settings" msgstr "Modifica le impostazioni" #, c-format msgid "Character set \"%s\" not supported." msgstr "Il set di caratteri \"%s\" non è supportato." msgid "Classes" msgstr "Classi" msgid "Clean Print Heads" msgstr "Pulisci le testine della stampante" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job non supporta l'attributo job-uri." msgid "Color" msgstr "Colore" msgid "Color Mode" msgstr "Modalità colore" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "I comandi possono essere abbreviati. I comandi sono:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Il nome della comunità utilizza una lunghezza indefinita" msgid "Connected to printer." msgstr "Connesso alla stampante." msgid "Connecting to printer." msgstr "Connessione alla stampante in corso." msgid "Continue" msgstr "Continua" msgid "Continuous" msgstr "Continuo" msgid "Control file sent successfully." msgstr "Il file del controllo è stato inviato con successo." msgid "Copying print data." msgstr "Copia dei dati di stampa in corso." msgid "Created" msgstr "Creato" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Personalizzato" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Taglia" msgid "Cutter" msgstr "Taglierino" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Scuro" msgid "Darkness" msgstr "Oscurità" msgid "Data file sent successfully." msgstr "I dati sono stati inviati con successo." msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Elimina la classe" msgid "Delete Printer" msgstr "Elimina la stampante" msgid "DeskJet Series" msgstr "DeskJet Series" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "La destinazione \"%s\" non sta accettando le stampe." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Dispositivo: uri = %s\n" " classe = %s\n" " info = %s\n" " marca-e-modello = %s\n" " device-id = %s\n" " posizione = %s" msgid "Direct Thermal Media" msgstr "Direct Thermal Media" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "La directory \"%s\" contiene un path relativo." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" "La directory \"%s\" presenta dei permessi non sicuri (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "La directory \"%s\" è un file." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "La directory \"%s\" non è disponibile: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Directory \"%s\" permessi OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Disabilitato" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "Il documento #%d non esiste nel processo #%d." msgid "Draft" msgstr "" msgid "Duplexer" msgstr "Duplexer" msgid "EPL1 Label Printer" msgstr "EPL1 Label Printer" msgid "EPL2 Label Printer" msgstr "EPL2 Label Printer" msgid "Edit Configuration File" msgstr "Edita il file di configurazione" msgid "Encryption is not supported." msgstr "" #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Termine del banner" msgid "English" msgstr "Inglese" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Digitare la username e la password oppure l'username di root e la password " "per accedere a questa pagina. Se si utilizza l'autenticazione Kerberos, " "assicurarsi di disporre di un ticket di Kerberos valido." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "Envelope #11" msgid "Envelope #12" msgstr "Envelope #12" msgid "Envelope #14" msgstr "Envelope #14" msgid "Envelope #9" msgstr "Envelope #9" msgid "Envelope B4" msgstr "Envelope B4" msgid "Envelope B5" msgstr "Envelope B5" msgid "Envelope B6" msgstr "Envelope B6" msgid "Envelope C0" msgstr "Envelope C0" msgid "Envelope C1" msgstr "Envelope C1" msgid "Envelope C2" msgstr "Envelope C2" msgid "Envelope C3" msgstr "Envelope C3" msgid "Envelope C4" msgstr "Envelope C4" msgid "Envelope C5" msgstr "Envelope C5" msgid "Envelope C6" msgstr "Envelope C6" msgid "Envelope C65" msgstr "Envelope C65" msgid "Envelope C7" msgstr "Envelope C7" msgid "Envelope Choukei 3" msgstr "Envelope Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Envelope Choukei 3 Long Edge" msgid "Envelope Choukei 4" msgstr "Envelope Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Envelope Choukei 4 Long Edge" msgid "Envelope DL" msgstr "Envelope DL" msgid "Envelope Feed" msgstr "Envelope Feed" msgid "Envelope Invite" msgstr "Envelope Invite" msgid "Envelope Italian" msgstr "Envelope Italian" msgid "Envelope Kaku2" msgstr "Envelope Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Envelope Kaku2 Long Edge" msgid "Envelope Kaku3" msgstr "Envelope Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Envelope Kaku3 Long Edge" msgid "Envelope Monarch" msgstr "Envelope Monarch" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "Envelope PRC1 Long Edge" msgid "Envelope PRC10" msgstr "Envelope PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Envelope PRC10 Long Edge" msgid "Envelope PRC2" msgstr "Envelope PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Envelope PRC2 Long Edge" msgid "Envelope PRC3" msgstr "Envelope PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Envelope PRC3 Long Edge" msgid "Envelope PRC4" msgstr "Envelope PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Envelope PRC4 Long Edge" msgid "Envelope PRC5 Long Edge" msgstr "Envelope PRC5 Long Edge" msgid "Envelope PRC5PRC5" msgstr "Envelope PRC5PRC5" msgid "Envelope PRC6" msgstr "Envelope PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Envelope PRC6 Long Edge" msgid "Envelope PRC7" msgstr "Envelope PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Envelope PRC7 Long Edge" msgid "Envelope PRC8" msgstr "Envelope PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Envelope PRC8 Long Edge" msgid "Envelope PRC9" msgstr "Envelope PRC9" msgid "Envelope PRC9 Long Edge" msgstr "Envelope PRC9 Long Edge" msgid "Envelope Personal" msgstr "Envelope Personal" msgid "Envelope You4" msgstr "Envelope You4" msgid "Envelope You4 Long Edge" msgstr "Envelope You4 Long Edge" msgid "Environment Variables:" msgstr "Variabili d'ambiente:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Policy dell'errore" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "Si è verificato un errore durante l'invio dei dati raster." msgid "Error: need hostname after \"-h\" option." msgstr "Errore: è necessario l'hostname dopo l'opzione \"-h\"." msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Ogni 10 etichette" msgid "Every 2 Labels" msgstr "Ogni 2 etichette" msgid "Every 3 Labels" msgstr "Ogni 3 etichette" msgid "Every 4 Labels" msgstr "Ogni 4 etichette" msgid "Every 5 Labels" msgstr "Ogni 5 etichette" msgid "Every 6 Labels" msgstr "Ogni 6 etichette" msgid "Every 7 Labels" msgstr "Ogni 7 etichette" msgid "Every 8 Labels" msgstr "Ogni 8 etichette" msgid "Every 9 Labels" msgstr "Ogni 9 etichette" msgid "Every Label" msgstr "Ogni etichetta" msgid "Executive" msgstr "Esecutivo" msgid "Expectation Failed" msgstr "Aspettativa non riuscita" msgid "Expressions:" msgstr "Espressioni:" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "Il file \"%s\" contiene un path relativo." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "il file \"%s\" presenta dei permessi non sicuri (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "Il file \"%s\" è una directory." #, c-format msgid "File \"%s\" not available: %s" msgstr "Il file \"%s\" non è disponibile: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "File \"%s\" permessi OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "I file del dispositivo URI sono stati disabilitati. Per abilitare, vedere la " "direttiva FileDevice in \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Finito pagina %d." msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Foglio" msgid "Forbidden" msgstr "Vietato" msgid "Found" msgstr "" msgid "General" msgstr "Generale" msgid "Generic" msgstr "Generico" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU utilizza una lunghezza indefinita" msgid "Glossy Paper" msgstr "Carta lucida" msgid "Got a printer-uri attribute but no job-id." msgstr "Esiste un attributo printer-uri ma nessun job-id." msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Scala di grigi" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Directory appesa" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "Il file di aiuto non è nell'indice." msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "L'attributo IPP 1setOf con tag di valore incompatibile." msgid "IPP attribute has no name." msgstr "L'attributo dell'IPP non ha nessun nome." msgid "IPP attribute is not a member of the message." msgstr "L'attributo IPP non è un membro del messaggio." msgid "IPP begCollection value not 0 bytes." msgstr "Il valore di IPP begCollection non è di 0 byte." msgid "IPP boolean value not 1 byte." msgstr "Il valore booleano di IPP non è di 1 byte." msgid "IPP date value not 11 bytes." msgstr "Il valore IPP date non è di 11 byte." msgid "IPP endCollection value not 0 bytes." msgstr "Il valore di IPP endCollection non è di 0 byte." msgid "IPP enum value not 4 bytes." msgstr "Il valore di IPP enum non è di 4 byte." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "Il tag dell'estensione di IPP è maggiore di 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "Il valore intero di IPP non è di 4 byte." msgid "IPP language length overflows value." msgstr "Valore di overflow della lunghezza della lingua di IPP." msgid "IPP language length too large." msgstr "La lunghezza della lingua di IPP è troppo grande." msgid "IPP member name is not empty." msgstr "Il nome del membro IPP non è vuoto." msgid "IPP memberName value is empty." msgstr "Il valore di IPP memberName è vuoto." msgid "IPP memberName with no attribute." msgstr "IPP memberName con nessun attributo." msgid "IPP name larger than 32767 bytes." msgstr "Il nome dell'IPP è più grande di 32767 byte." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "Il valore di IPP nameWithLanguage è inferiore al minimo di 4 byte." msgid "IPP octetString length too large." msgstr "La lunghezza di IPP octetString è troppo grande." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "Il valore di IPP rangeOfInteger non è di 8 byte." msgid "IPP resolution value not 9 bytes." msgstr "Il valore di IPP resolution non è di 9 byte." msgid "IPP string length overflows value." msgstr "Valore di overflow della lunghezza della stringa di IPP." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "Il valore di textWithLanguage dell'IPP è inferiore a 4 byte." msgid "IPP value larger than 32767 bytes." msgstr "Il valore di IPP è più grande di 32767 byte." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Il carattere di controllo è illegale" msgid "Illegal main keyword string" msgstr "La stringa della parola chiave principale è illegale" msgid "Illegal option keyword string" msgstr "La stringa della parola chiave dell'opzione è illegale" msgid "Illegal translation string" msgstr "La stringa della traduzione è illegale" msgid "Illegal whitespace character" msgstr "Il carattere spazio è illegale" msgid "Installable Options" msgstr "Opzioni installabili" msgid "Installed" msgstr "Installato" msgid "IntelliBar Label Printer" msgstr "IntelliBar Label Printer" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Errore interno del server" msgid "Internal error" msgstr "Errore interno" msgid "Internet Postage 2-Part" msgstr "Internet Postage 2-Part" msgid "Internet Postage 3-Part" msgstr "Internet Postage 3-Part" msgid "Internet Printing Protocol" msgstr "Internet Printing Protocol" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "Gli argomenti del nome del supporto non sono validi." msgid "Invalid media size." msgstr "La dimensione del supporto non è valida." msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "Il comando della stampante non è valido \"%s\"." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 Long Edge" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 Long Edge" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 Long Edge" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "Il processo #%d non può essere riavviato, nessun file." #, c-format msgid "Job #%d does not exist." msgstr "Il processo #%d non esiste." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Il processo #%d è già stato interrotto - non è possibile eliminarlo." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Il processo #%d è già stato eliminato, impossibile eliminarlo." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Il processo #%d è già completato, non è possibile eliminarlo." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "Il processo #%d è terminato e non può essere alterato." #, c-format msgid "Job #%d is not complete." msgstr "Il processo #%d non è stato completato." #, c-format msgid "Job #%d is not held for authentication." msgstr "Il processo #%d non è stato eseguito per l'autenticazione." #, c-format msgid "Job #%d is not held." msgstr "Il processo #%d non è stato eseguito." msgid "Job Completed" msgstr "Il processo è stato completato" msgid "Job Created" msgstr "Il processo è stato creato" msgid "Job Options Changed" msgstr "Le opzioni del processo sono state modificate" msgid "Job Stopped" msgstr "Il processo è stato fermato" msgid "Job is completed and cannot be changed." msgstr "Il processo è stato completato e non può essere modificato." msgid "Job operation failed" msgstr "L'operazione del processo non è andata a buon fine" msgid "Job state cannot be changed." msgstr "Lo stato del processo non può essere modificato." msgid "Job subscriptions cannot be renewed." msgstr "Le sottoscrizioni del processo non possono essere rinnovate." msgid "Jobs" msgstr "Stampe" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR Host o stampante" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Label Printer" msgid "Label Top" msgstr "Label Top" #, c-format msgid "Language \"%s\" not supported." msgstr "La lingua \"%s\" non è supportata." msgid "Large Address" msgstr "Large Address" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Series PCL 4/5" msgid "Letter Oversize" msgstr "Letter Oversize" msgid "Letter Oversize Long Edge" msgstr "Letter Oversize Long Edge" msgid "Light" msgstr "Luce" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Linea più lunga di quella massima consentita (255 caratteri)" msgid "List Available Printers" msgstr "Elenco delle stampanti disponibili" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "Long-Edge (Portrait)" msgid "Looking for printer." msgstr "Cerca una stampante." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Alimentazione manuale" msgid "Media Size" msgstr "Dimensione del supporto" msgid "Media Source" msgstr "Sorgente multimediale" msgid "Media Tracking" msgstr "Monitoraggio del supporto" msgid "Media Type" msgstr "Tipo di supporto" msgid "Medium" msgstr "Supporto" msgid "Memory allocation error" msgstr "Errore di allocazione della memoria" msgid "Missing CloseGroup" msgstr "Manca CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Manca la libreria di PPD-Adobe-4.x" msgid "Missing asterisk in column 1" msgstr "Manca l'asterisco nella colonna 1" msgid "Missing document-number attribute." msgstr "Manca l'attributo di document-number." msgid "Missing form variable" msgstr "Manca la variabile del modulo" msgid "Missing last-document attribute in request." msgstr "Manca l'attributo last-document nella richiesta." msgid "Missing media or media-col." msgstr "Manca media o media-col." msgid "Missing media-size in media-col." msgstr "Manca media-size in media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Manca l'attributo notify-subscription-ids." msgid "Missing option keyword" msgstr "Manca la parola chiave dell'opzione" msgid "Missing requesting-user-name attribute." msgstr "Manca l'attributo di requesting-user-name." #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "Mancano gli attributi richiesti." msgid "Missing resource in URI" msgstr "" msgid "Missing scheme in URI" msgstr "" msgid "Missing value string" msgstr "Manca la stringa del valore" msgid "Missing x-dimension in media-size." msgstr "Manca x-dimension in media-size." msgid "Missing y-dimension in media-size." msgstr "Manca y-dimension in media-size." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Modello: nome = %s\n" " lingua_naturale = %s\n" " marca-e-modello = %s\n" " device-id = %s" msgid "Modifiers:" msgstr "Modificatori:" msgid "Modify Class" msgstr "Modifica la classe" msgid "Modify Printer" msgstr "Modifica la stampante" msgid "Move All Jobs" msgstr "Sposta tutti le stampe" msgid "Move Job" msgstr "Sposta il processo" msgid "Moved Permanently" msgstr "Spostato in modo permanente" msgid "NULL PPD file pointer" msgstr "Puntatore del file PPD NULL" msgid "Name OID uses indefinite length" msgstr "Il nome OID utilizza una lunghezza indefinita" msgid "Nested classes are not allowed." msgstr "Le classi nidificate non sono consentite." msgid "Never" msgstr "Mai" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "No" msgid "No Content" msgstr "Nessun contenuto" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "Nessun nome del PPD" msgid "No VarBind SEQUENCE" msgstr "Nessuna SEQUENZA di VarBind" msgid "No active connection" msgstr "Nessuna connessione attiva" msgid "No active connection." msgstr "" #, c-format msgid "No active jobs on %s." msgstr "Nessun processo attivo su %s." msgid "No attributes in request." msgstr "Nessun attributo nella richiesta." msgid "No authentication information provided." msgstr "Nessuna informazione di autenticazione fornita." msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Nessun nome della comunità" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "Nessuna stampante predefinita." msgid "No destinations added." msgstr "Nessuna destinazione aggiunta." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "Non è stato trovato nessun dispositivo URI in argv[0] o nella variabile di " "ambiente DEVICE_URI." msgid "No error-index" msgstr "Nessin error-index" msgid "No error-status" msgstr "Nessun error-status" msgid "No file in print request." msgstr "Nessun file nella richiesta di stampa." msgid "No modification time" msgstr "Nessun orario di modifica" msgid "No name OID" msgstr "Nessun nome OID" msgid "No pages were found." msgstr "Nessuna pagina è stata trovata." msgid "No printer name" msgstr "Nessun nome della stampante" msgid "No printer-uri found" msgstr "Non è stato trovato printer-uri" msgid "No printer-uri found for class" msgstr "Non è stato trovato printer-uri per la classe" msgid "No printer-uri in request." msgstr "Nessun printer-uri nella richiesta." msgid "No request URI." msgstr "" msgid "No request protocol version." msgstr "" msgid "No request sent." msgstr "" msgid "No request-id" msgstr "Nessun request-id" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "Nessun attributo della sottoscrizione nella richiesta." msgid "No subscriptions found." msgstr "Non è stata trovata nessuna sottoscrizione." msgid "No variable-bindings SEQUENCE" msgstr "Nessuna SEQUENZA di variable-bindings" msgid "No version number" msgstr "Nessun numero di versione" msgid "Non-continuous (Mark sensing)" msgstr "Non-continuous (Mark sensing)" msgid "Non-continuous (Web sensing)" msgstr "Non-continuous (Web sensing)" msgid "None" msgstr "" msgid "Normal" msgstr "Normale" msgid "Not Found" msgstr "Non trovato" msgid "Not Implemented" msgstr "Non implementato" msgid "Not Installed" msgstr "Non installato" msgid "Not Modified" msgstr "Non modificato" msgid "Not Supported" msgstr "Non supportato" msgid "Not allowed to print." msgstr "Non autorizzato a stampare." msgid "Note" msgstr "Nota" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Off (1-Sided)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Guida in linea" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "L'apertura di %s non è andata a buon fine: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup senza prima un CloseGroup" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI senza prima un CloseUI/JCLCloseUI" msgid "Operation Policy" msgstr "Policy dell'operazione" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "L'opzione \"%s\" non può essere inclusa tramite %%%%IncludeFeature." msgid "Options Installed" msgstr "Opzioni installate" msgid "Options:" msgstr "Opzioni:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "Il file della cache del PPD non è aggiornato." msgid "Out of memory." msgstr "Memoria insufficiente." msgid "Output Mode" msgstr "Modalità di output" msgid "PCL Laser Printer" msgstr "Stampante laser PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K Long Edge" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K Long Edge" msgid "PRC32K Oversize" msgstr "PRC32K Oversize" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K Oversize Long Edge" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "Il pacchetto non contiene un Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Il pacchetto non inizia con SEQUENZA" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Password di %s su %s? " msgid "Pause Class" msgstr "Metti in pausa la classe" msgid "Pause Printer" msgstr "Metti in pausa la stampante" msgid "Peel-Off" msgstr "Peel-Off" msgid "Photo" msgstr "Foto" msgid "Photo Labels" msgstr "Etichette delle foto" msgid "Plain Paper" msgstr "Carta comune" msgid "Policies" msgstr "Policy" msgid "Port Monitor" msgstr "Controllo della porta" msgid "PostScript Printer" msgstr "Stampante PostScript" msgid "Postcard" msgstr "Postcard" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "Postcard Double Long Edge" msgid "Postcard Long Edge" msgstr "Postcard Long Edge" msgid "Preparing to print." msgstr "Preparazione per la stampa." msgid "Print Density" msgstr "Densità di stampa" msgid "Print Job:" msgstr "Processo di stampa:" msgid "Print Mode" msgstr "Modalità di stampa" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "Velocità di stampa" msgid "Print Self-Test Page" msgstr "Stampa la pagina Self-Test" msgid "Print Speed" msgstr "Velocità di stampa" msgid "Print Test Page" msgstr "Stampa pagina di prova" msgid "Print and Cut" msgstr "Stampa e taglia" msgid "Print and Tear" msgstr "Stampa e strappa" msgid "Print file sent." msgstr "Il file di stampa è stato inviato." msgid "Print job canceled at printer." msgstr "Il processo di stampa è stato annullato." msgid "Print job too large." msgstr "Il processo di stampa è troppo grande." msgid "Print job was not accepted." msgstr "Il processo di stampa non è stato accettato." #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "La stampante è stata aggiunta" msgid "Printer Default" msgstr "Stampante predefinita" msgid "Printer Deleted" msgstr "La stampante è stata eliminata" msgid "Printer Modified" msgstr "La stampante è stata modificata" msgid "Printer Paused" msgstr "La stampante è stata messa in pausa" msgid "Printer Settings" msgstr "Impostazioni della stampante" msgid "Printer cannot print supplied content." msgstr "La stampante non può stampare il contenuto fornito." msgid "Printer cannot print with supplied options." msgstr "La stampante non può stampare con le opzioni fornite." msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Stampante:" msgid "Printers" msgstr "Stampanti" #, c-format msgid "Printing page %d, %u%% complete." msgstr "" msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "Il limite della quota è stato raggiunto." msgid "Rank Owner Job File(s) Total Size" msgstr "Rank Owner Job File(s) Total Size" msgid "Reject Jobs" msgstr "Stampe rifiutate" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "L'host remosto non ha accettato il controllo (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "L'host remoto non ha accettato i dati (%d)." msgid "Reprint After Error" msgstr "Ristampa dopo un errore" msgid "Request Entity Too Large" msgstr "Entità della richiesta troppo grande" msgid "Resolution" msgstr "Risoluzione" msgid "Resume Class" msgstr "Riprendi la classe" msgid "Resume Printer" msgstr "Riprendi la stampante" msgid "Return Address" msgstr "Ritorna l'indirizzo" msgid "Rewind" msgstr "Ricarica" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENZA utilizza una lunghezza indefinita" msgid "SSL/TLS Negotiation Error" msgstr "Errore di negoziazione SSL/TLS" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Vedi altro" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "Invio dei dati alla stampante." msgid "Server Restarted" msgstr "Il server è stato riavviato" msgid "Server Security Auditing" msgstr "Revisione della sicurezza del server" msgid "Server Started" msgstr "Il server è stato avviato" msgid "Server Stopped" msgstr "Il server è stato fermato" msgid "Server credentials not set." msgstr "" msgid "Service Unavailable" msgstr "Servizio non disponibile" msgid "Set Allowed Users" msgstr "Imposta gli utenti autorizzati" msgid "Set As Server Default" msgstr "Imposta come server predefinito" msgid "Set Class Options" msgstr "Imposta le opzioni della classe" msgid "Set Printer Options" msgstr "Imposta le opzioni della stampante" msgid "Set Publishing" msgstr "Imposta la pubblicazione" msgid "Shipping Address" msgstr "Indirizzo di spedizione" msgid "Short-Edge (Landscape)" msgstr "Short-Edge (Landscape)" msgid "Special Paper" msgstr "Carta speciale" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Processo di spooling, %.0f%% completato." msgid "Standard" msgstr "Standard" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Inizio del banner" #, c-format msgid "Starting page %d." msgstr "Pagina iniziale %d." msgid "Statement" msgstr "Rapporto" #, c-format msgid "Subscription #%d does not exist." msgstr "La sottoscrizione #%d non esiste." msgid "Substitutions:" msgstr "Sottoscrizioni:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Protocolli di commutazione" msgid "Tabloid" msgstr "Tabloid" msgid "Tabloid Oversize" msgstr "Tabloid Oversize" msgid "Tabloid Oversize Long Edge" msgstr "Tabloid Oversize Long Edge" msgid "Tear" msgstr "Tear" msgid "Tear-Off" msgstr "Tear-Off" msgid "Tear-Off Adjust Position" msgstr "Tear-Off Adjust Position" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "L'attributo \"%s\" è richiesto per i processi di stampa." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "L'attributo %s non può essere fornito con job-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "L'attributo dell'operazione '%s' non può essere fornito in una richiesta " "Create-Job." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "Il file PPD \"%s\" non è stato trovato." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "Non è possibile aprire il file PPD \"%s\": %s" msgid "The PPD file could not be opened." msgstr "Il file PPD non può essere aperto." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "Il nome della classe può contenere fino a 127 caratteri stampabili e non può " "contenere spazi, barre (/) o cancelletto (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "L'attributo notify-lease-duration non può essere utilizzato con le " "sottoscrizioni del processo." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "Il valore di notify-user-data è troppo grande (%d > 63 ottetti)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" "La configurazione della stampante è errata oppure la stampante non esiste " "più." msgid "The printer did not respond." msgstr "La stampante non ha risposto." msgid "The printer is in use." msgstr "La stampante è in uso." msgid "The printer is not connected." msgstr "La stampante non è connessa." msgid "The printer is not responding." msgstr "La stampante non risponde." msgid "The printer is now connected." msgstr "Adesso la stampante è connessa." msgid "The printer is now online." msgstr "Adesso la stampante è online." msgid "The printer is offline." msgstr "La stampante è offline." msgid "The printer is unreachable at this time." msgstr "In questo momento la stampante non è raggiungibile." msgid "The printer may not exist or is unavailable at this time." msgstr "" "La stampante potrebbe non esistere oppure non è disponibile in questo " "momento." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "Non esiste la stampante o la classe." msgid "The printer or class is not shared." msgstr "La stampante o la classe non è condivisa." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "Il printer-uri \"%s\" contiene caratteri non validi." msgid "The printer-uri attribute is required." msgstr "L'attributo printer-uri è richiesto." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "Il printer-uri deve essere del formato \"ipp://HOSTNAME/classes/CLASSNAME\"." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "Il printer-uri deve essere del formato \"ipp://HOSTNAME/printers/PRINTERNAME" "\"." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "L'interfaccia web è attualmente disabilitata. Avviare \"cupsctl " "WebInterface=yes\" per abilitarla." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "Il valore which-jobs \"%s\" non è supportato." msgid "There are too many subscriptions." msgstr "Ci sono troppe sottoscrizioni." msgid "There was an unrecoverable USB error." msgstr "Si è verificato un errore irreversibile sulla porta USB." msgid "Thermal Transfer Media" msgstr "Trasferimento termico" msgid "Too many active jobs." msgstr "Troppe stampe attive." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Troppi valori di job-sheets (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Troppi valori di printer-state-reasons (%d > %d)." msgid "Transparency" msgstr "Trasparenza" msgid "Tray" msgstr "Vassoio" msgid "Tray 1" msgstr "Vassoio 1" msgid "Tray 2" msgstr "Vassoio 2" msgid "Tray 3" msgstr "Vassoio 3" msgid "Tray 4" msgstr "Vassoio 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "L'URI è troppo lungo" msgid "URI too large" msgstr "" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Legal" msgid "US Legal Oversize" msgstr "US Legal Oversize" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "US Letter Long Edge" msgid "US Letter Oversize" msgstr "US Letter Oversize" msgid "US Letter Oversize Long Edge" msgstr "US Letter Oversize Long Edge" msgid "US Letter Small" msgstr "US Letter Small" msgid "Unable to access cupsd.conf file" msgstr "Non è possibile accedere al file cupsd.conf" msgid "Unable to access help file." msgstr "Non è possibile accedere al file help." msgid "Unable to add class" msgstr "Non è possibile aggiungere la classe" msgid "Unable to add document to print job." msgstr "Non è possibile aggiungere il documento al processo di stampa." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Non è possibile aggiungere il processo alla destinazione \"%s\"." msgid "Unable to add printer" msgstr "Non è possibile aggiungere la stampante" msgid "Unable to allocate memory for file types." msgstr "Non è possibile allocare la memoria per i tipi di file." msgid "Unable to allocate memory for page info" msgstr "Non è possibile allocare la memoria per le info della pagina" msgid "Unable to allocate memory for pages array" msgstr "Non è possibile allocare memoria per array di pagine" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "Non è possibile eliminare il processo di stampa." msgid "Unable to change printer" msgstr "Non è possibile modificare la stampante" msgid "Unable to change printer-is-shared attribute" msgstr "Non è possibile modificare l'attributo printer-is-shared" msgid "Unable to change server settings" msgstr "Non è possibile modificare le impostazioni del server" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "Non è possibile compilare l'espressione regolare mimeMediaType: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "Non è possibile compilare l'espressione regolare naturalLanguage: %s." msgid "Unable to configure printer options." msgstr "Non è possibile configurare le opzioni della stampante." msgid "Unable to connect to host." msgstr "Non è possibile connettersi all'host." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "Non è possibile contattare la stampante, in coda nella classe della " "stampante successiva." #, c-format msgid "Unable to copy PPD file - %s" msgstr "Non è possibile copiare il file PPD - %s" msgid "Unable to copy PPD file." msgstr "Non è possibile copiare il file PPD." msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "Non è possibile creare il printer-uri" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "Non è possibile creare un file temporaneo" msgid "Unable to delete class" msgstr "Non è possibile eliminare la classe" msgid "Unable to delete printer" msgstr "Non è possibile eliminare la stampante" msgid "Unable to do maintenance command" msgstr "Non è possibile avviare il comando della manutenzione" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "Non è possibile editare i file cupsd.conf più grandi di 1MB" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (catena di " "certificati non validi)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (il certificato " "non è ancora valido)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (il certificato è " "scaduto)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (il nome dell'host " "non corrisponde)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (peer ha chiuso la " "connessione prima di rispondere)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (certificato " "autofirmato)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "Non è possibile stabilire una connessione sicura all'host (certificato non " "verificato)." msgid "Unable to establish a secure connection to host." msgstr "Non è possibile stabilire una connessione sicura all'host." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "Non è possibile trovare la destinazione del processo" msgid "Unable to find printer." msgstr "Non è possibile trovare la stampante." msgid "Unable to find server credentials." msgstr "" msgid "Unable to get backend exit status." msgstr "Non è possibile ottenere lo stato del backend." msgid "Unable to get class list" msgstr "Non è possibile ottenere la lista della classe" msgid "Unable to get class status" msgstr "Non è possibile ottenere lo stato della classe" msgid "Unable to get list of printer drivers" msgstr "Non è possibile ottenere i driver della stampante" msgid "Unable to get printer attributes" msgstr "Non è possibile ottenere gli attributi della stampante" msgid "Unable to get printer list" msgstr "Non è possibile ottenere la lista della stampante" msgid "Unable to get printer status" msgstr "Non è possibile ottenere lo stato della stampante" msgid "Unable to get printer status." msgstr "Non è possibile ottenere lo stato della stampante" msgid "Unable to load help index." msgstr "Non è possibile caricare l'indice dell'aiuto." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "Non è possibile localizzare la stampante \"%s\"." msgid "Unable to locate printer." msgstr "Non è possibile localizzare la stampante." msgid "Unable to modify class" msgstr "Non è possibile modificare la classe" msgid "Unable to modify printer" msgstr "Non è possibile modificare la stampante" msgid "Unable to move job" msgstr "Non è possibile spostare il processo" msgid "Unable to move jobs" msgstr "Non è possibile spostare le stampe" msgid "Unable to open PPD file" msgstr "Non è possibile aprire il file PPD" msgid "Unable to open cupsd.conf file:" msgstr "Non è possibile aprire il file cupsd.conf:" msgid "Unable to open device file" msgstr "Non è possibile aprire il file del dispositivo:" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "Non è possibile aprire il documento #%d nel processo #%d." msgid "Unable to open help file." msgstr "Non è possibile aprire il file dell'aiuto." msgid "Unable to open print file" msgstr "Non è possibile aprire il file della stampa" msgid "Unable to open raster file" msgstr "non è possibile aprire il file del raster" msgid "Unable to print test page" msgstr "Non è possibile stampare la pagina di prova" msgid "Unable to read print data." msgstr "Non è possibile leggere i dati della stampa." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "" msgid "Unable to see in file" msgstr "Non è possibile vedere nel file" msgid "Unable to send command to printer driver" msgstr "Non è possibile inviare il comando al driver della stampante" msgid "Unable to send data to printer." msgstr "Non è possibile inviare i dati alla stampante." msgid "Unable to set options" msgstr "Non è possibile impostare le opzioni" msgid "Unable to set server default" msgstr "Non è possibile impostare il server predefinito" msgid "Unable to start backend process." msgstr "Non è possibile avviare il processo del backend." msgid "Unable to upload cupsd.conf file" msgstr "Non è possibile caricare il file cupsd.conf" msgid "Unable to use legacy USB class driver." msgstr "Non è possibile utilizzare il driver legacy della classe USB. " msgid "Unable to write print data" msgstr "Non è possibile scrivere i dati della stampa" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "Non è possibile scrivere i dati della stampa non compressi: %s" msgid "Unauthorized" msgstr "Non autorizzato" msgid "Units" msgstr "Unità" msgid "Unknown" msgstr "Sconosciuto" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Scelta sconosciuta \"%s\" dell'opzione \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Valore sconosciuto dell'opzione di crittografia: \"%s\"." #, c-format msgid "Unknown file order: \"%s\"." msgstr "ordine del file sconosciuto: \"%s\"." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Formato del carattere sconosciuto: \"%c\"." msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "Nome del formato del supporto sconosciuto." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Opzione sconosciuta \"%s\" con il valore \"%s\"." #, c-format msgid "Unknown option \"%s\"." msgstr "Opzione sconosciuta \"%s\"." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Modalità di stampa sconosciuta: \"%s\"." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "printer-error-policy sconosciuta \"%s\"." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "printer-op-policy sconosciuta \"%s\"." msgid "Unknown request method." msgstr "" msgid "Unknown request version." msgstr "" msgid "Unknown scheme in URI" msgstr "" msgid "Unknown service name." msgstr "Nome del servizio sconosciuto." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Valore sconosciuto dell'opzione versione: \"%s\"." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Valore di 'compressione' non supportato \"%s\"." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Valore di 'document-format' non supportato \"%s\"." msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "Valore di 'job-name' non supportato." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Il set dei caratteri \"%s\" non è supportato." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Compressione non supportata \"%s\"." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "Il formato del documento \"%s\" non è supportato." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "Il formato del documento \"%s/%s\" non è supportato." #, c-format msgid "Unsupported format \"%s\"." msgstr "Il formato \"%s\" non è supportato." msgid "Unsupported margins." msgstr "Margini non supportati." msgid "Unsupported media value." msgstr "Il valore del supporto non è supportato." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "Il valore %d di number-up non è supportato, usare number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "Il valore %s di number-up-layout non è supportato, usare number-up-" "layout=1rtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "Il valore %s di page-border non è supportato, usare page-border=none." msgid "Unsupported raster data." msgstr "I dati del raster non sono supportati." msgid "Unsupported value type" msgstr "Tipo di valore non supportato" msgid "Upgrade Required" msgstr "È richiesto l'aggiornamento" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Uso: %s job-id utente titolo copie opzioni [file]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Uso: cupsctl [opzioni] [param=valore ... paramN=valoreN]" msgid "Usage: cupsd [options]" msgstr "Uso: cupsd [opzioni]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Uso: ippfind [opzioni] regtype[,subtype][.dominio.] ... [espressione]\n" " ippfind [opzioni] nome[.regtype[.dominio.]] ... [espressione]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Uso: ipptool [opzioni] URI file [ ... fileN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Uso: ppdc [opzioni] file.drv [ ... fileN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Uso: ppdhtml [opzioni] file.drv >file.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Uso: ppdi [opzioni] file.ppd [ ... fileN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Uso: ppdmerge [opzioni] file.ppd [ ... fileN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "Uso: ppdpo [opzioni] -o file.po file.drv [ ... fileN.drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Uso: snmp [host-o-indirizzo-ip]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Il valore utilizza una lunghezza indefinita" msgid "VarBind uses indefinite length" msgstr "VarBind utilizza una lunghezza indefinita" msgid "Version uses indefinite length" msgstr "Version utilizza una lunghezza indefinita" msgid "Waiting for job to complete." msgstr "In attesa di lavoro da completare." msgid "Waiting for printer to become available." msgstr "In attesa che la stampante ritorni disponibile." msgid "Waiting for printer to finish." msgstr "In attesa che la stampante finisca." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "L'interfaccia web è stata disabilitata" msgid "Yes" msgstr "Sì" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Bisogna accedere a questa pagina, usando l'URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "ZPL Label Printer" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "interrotto" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "eliminato" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "completato" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "cups-deviced ha smesso di funzionare." msgid "cups-driverd failed to execute." msgstr "cups-driverd ha smesso di funzionare." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: non è possibile connettersi al server: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: opzione sconosciuta \"%s\"" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: opzione sconosciuta \"-%c\"" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: dopo l'opzione \"-c\" è previsto il file di configurazione." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "cupsd: dopo l'opzione \"-s\" è previsto il file cups-files.conf." msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: non è consentito il file relativo cups-files.conf." msgid "cupsd: Unable to get current directory." msgstr "cupsd: non è possibile ottenere la directory corrente." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: non è possibile ottenere il path del file cups-files.conf." #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: argomento sconosciuto \"%s\" - operazione interrotta." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: opzione sconosciuta \"%c\" - operazione interrotta." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: il numero del documento non è valido %d." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: l'ID del processo non è valido %d." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: può essere specificato solo un nome del file." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: non è possibile ottenere il file del processo - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: l'opzione -q non è compatibile con l'opzione -v." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: l'opzione -v è incompatibile con l'opzione -q." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "dispositivo per %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "dispositivo per %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index utilizza una lunghezza indefinita" msgid "error-status uses indefinite length" msgstr "error-status utilizza una lunghezza indefinita" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "svolto" msgid "help\t\tGet help on commands." msgstr "help\t\tOttenere un aiuto per i comandi." msgid "idle" msgstr "inattiva" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: l'espressione regolare non è valida: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: non è possibile usare --and dopo --or." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: è previsto il nome della chiave dopo %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: è previsto un intervallo di porte dopo %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: è previsto un programma dopo %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: è previsto un punto e virgola dopo %s. " msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: manca parentesi graffa di chiusura in sostituzione." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: mancano le parentesi chiuse." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: manca l'espressione prima di \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: manca l'espressione prima di \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: manca il nome della chiave dopo %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "ippfind: mancano le parentesi aperte." #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: manca il programma dopo %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: manca l'espressione regolare dopo %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: manca il punto e virgola dopo %s." msgid "ippfind: Out of memory." msgstr "ippfind: memoria insufficiente." msgid "ippfind: Too many parenthesis." msgstr "ippfind: troppe parentesi." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: non è possibile visualizzare oppure risolvere: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: non è possibile eseguire \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: non è possibile utilizzare Bonjour: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: variabile sconosciuta \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: secondi non validi per \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: può specificare solo un singolo URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: conteggio mancante per \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: manca il file per \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: manca nome=valore per \"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: mancano i secondi per \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: l'URI è richiesto prima del file di testo." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "manca l'attributo di job-printer-uri." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: il nome della classe può contenere solo caratteri stampabili." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: è previsto allow/deny:listautente dopo l'opzione \"-u\"." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: è prevista la classe dopo l'opzione \"-r\"." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: è previsto il nome della classe dopo l'opzione \"-c\"." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: è prevista la descrizione dopo l'opzione \"-D\"." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: è previsto l'URI del dispositivo dopo l'opzione \"-v\"." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: è previsto il tipo del(i) file dopo l'opzione \"-I\"." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: è previsto l'hostname dopo l'opzione \"-h\"." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: è prevista la posizione dopo l'opzione \"-L\"." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: è previsto il modello dopo l'opzione \"-m\"." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: è previsto il nome dopo l'opzione \"-R\"." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: è previsto nome=valore dopo l'opzione \"-o\"." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: è prevista la stampante dopo l'opzione \"-p\"." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: è previsto il nome della stampante dopo l'opzione \"-d\"." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: è prevista la stampante o la classe dopo l'opzione \"-x\"." msgid "lpadmin: No member names were seen." msgstr "lpadmin: nessun nome dei membri è stato visto." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: la stampante %s è già un membro della classe %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: la stampante %s non è un membro della classe %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "" "lpadmin: il nome della stampante può contenere solo caratteri stampabili." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: non è possibile aggiungere una stampante alla classe:\n" " Bisogna specificare prima un nome per la stampante." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: non è possibile connettersi al server: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: non è possibile creare il file temporaneo" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: non è possibile eliminare l'opzione:\n" " Bisogna specificare prima un nome per la stampante." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: non è possibile rimuovere una stampante dalla classe:\n" " Bisogna specificare prima un nome per la stampante." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: non è possibile impostare le opzioni della stampante:\n" " Bisogna specificare prima un nome per la stampante." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: opzione sconosciuta allow/deny \"%s\"." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: argomento sconosciuto \"%s\"." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: opzione sconosciuta \"%c\"." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: attenzione - contenuto nell'elenco tipo ignorato." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" "lpinfo: è prevista la stringa ID del dispositivo 1284 dopo \"--device-id\"." msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: è prevista la lingua dopo \"--language\"." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: è prevista marca e modello dopo \"--make-and-model\"." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: è prevista la stringa del prodotto dopo \"--product\"." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: è prevista la lista dello schema dopo \"--exclude-schemes\"." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: è prevista la lista dello schema dopo \"--include-schemes\"." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: è previsto un timeout dopo \"--timeout\"." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: non è possibile connettersi al server: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: argomento sconosciuto \"%s\"." msgid "lpoptions: No printers." msgstr "lpoptions: nessuna stampante." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: non è possibile aggiungere la stampante o l'istanza: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: non è possibile ottenere il file PPD per %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: non è possibile aprire il file PPD per %s." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: stampante o classe sconosciuta." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: errore - destinazione inesistente \"%s\" dei nomi delle variabili di " "ambiente %s." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "membri della classe %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "nessuna voce" msgid "no system default destination" msgstr "nessuna destinazione predefinita di sistema" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "notify-events non è stato specificato." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI \"%s\" è già stato utilizzato." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI \"%s\" utilizza uno schema sconosciuto." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "in attesa" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: aggiunta della directory \"%s\"." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: aggiunto/aggiornato il testo della UI da %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: il valore booleano non è valido (%s) alla riga %d di %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: l'attributo del carattere non è valido: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" "ppdc: il nome della risoluzione non è valido \"%s\" alla riga %d di %s." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: lo stato della parola chiave non è valido %s alla riga %d di %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" "ppdc: la sostituzione della variabile ($%c) non è valida alla riga %d di %s." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc: trovata scelta senza opzione alla riga %d di %s." #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: #po duplicato per il locale %s alla riga %d di %s." #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: è prevista una definizione del filtro alla riga %d di %s." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: è previsto il nome del programma alla riga %d di %s." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: è previsto un valore booleano alla riga %d di %s." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "ppdc: è previsto un set di caratteri dopo Font alla riga %d di %s." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: è previsto un codice di scelta alla riga %d di %s." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: è previsto un nome/testo di scelta alla riga %d di %s. " #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "ppdc: è previsto un colore per ColorModel alla riga %d di %s." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" "ppdc: è previsto uno spazio di colore per ColorModel alla riga %d di %s." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: è prevista una compressione per ColorModel alla riga %d di %s." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: è prevista una stringa di vincoli per UIConstraints alla riga %d di %s." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: è previsto un driver della parola chiave tipo che segue DriverType " "alla riga %d di %s." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc: è previsto il tipo duplex dopo Duplex alla riga %d di %s." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: è prevista una codifica dopo Font alla riga %d di %s." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "ppdc: è previsto un file dopo #po %s alla riga %d di %s." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: è previsto un nome/testo del gruppo alla riga %d di %s." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: è previsto un file da includere alla riga %d di %s." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: è previsto un intero alla riga %d di %s." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: è previsto un locale dopo #po alla riga %d di %s." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: è previsto un nome dopo %s alla riga %d di %s." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: è previsto un nome dopo FileName alla riga %d di %s." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: è previsto un nome dopo Font alla riga %d di %s." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: è previsto un nome dopo Manufacturer alla riga %d di %s." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: è previsto un nome dopo MediaSize alla riga %d di %s." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: è previsto un nome dopo ModelName alla riga %d di %s." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: è previsto un nome dopo PCFileName alla riga %d di %s." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: è previsto un nome/testo dopo %s alla riga %d di %s." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "ppdc: è previsto un nome/testo dopo Installable alla riga %d di %s." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "ppdc: è previsto un nome/testo dopo Resolution alla riga %d di %s." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: è prevista una combinazione nome/testo per ColorModel alla riga %d di " "%s." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: è prevista l'opzione nome/testo alla riga %d di %s." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: è prevista la sezione dell'opzione alla riga %d di %s." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: è previsto il tipo di opzione alla riga %d di %s." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: è previsto sovrascrivere il campo dopo Resolution alla riga %d di %s." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: è prevista una stringa tra virgolette alla riga %d di %s." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: è previsto un numero reale alla riga %d di %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: è previsto risoluzione/mediatype dopo ColorProfile alla riga %d di %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: è previsto risoluzione/mediatype dopo SimpleColorProfile alla riga %d " "di %s." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: è previsto un selettore %s alla riga %d di %s." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: è previsto uno stato dopo Font alla riga %d di %s." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: è prevista una stringa dopo Copyright alla riga %d di %s." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: è prevista una stringa dopo Version alla riga %d di %s." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: sono previsti due nomi di opzioni alla riga %d di %s." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: è previsto un valore dopo %s alla riga %d di %s." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: è prevista una versione dopo Font alla riga %d di %s." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: il file #include/#po non è valido \"%s\"." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: il costo non è valido per il filtro alla riga %d di %s." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" "ppdc: il tipo di MIME vuoto non è valido per il filtro alla riga %d di %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" "ppdc: il nome del programma vuoto non è valido per il filtro alla riga %d di " "%s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: la sezione dell'opzione \"%s\" non è valida alla riga %d di %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: il tipo di opzione \"%s\" non è valido alla riga %d di %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: caricamento in corso delle informazioni del driver \"%s\"." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: caricamento in corso dei messaggi per locale \"%s\"." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: caricamento in corso da \"%s\"." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc. manca #endif alla fine di \"%s\"." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: manca #if alla riga %d di %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" "ppdc: è necessaria la riga msgid prima di ogni stringa di traduzione alla " "riga %d di %s." #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: Nessun catalogo dei messaggi fornito per locale %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" "ppdc: l'opzione %s è stata definita in due differenti gruppi alla riga %d di " "%s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" "ppdc: l'opzione %s è stata ridefinita con un tipo differente alla riga %d di " "%s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc: il vincolo dell'opzione deve *citare alla riga %d di %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: troppi #if sono nidificati alla riga %d di %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: non è possibile creare il file PPD \"%s\" - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: non è possibile creare la directory di output %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: non è possibile creare la pipe di output: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: non è possibile eseguire cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: non è possibile trovare il file #po %s alla riga %d di %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" "ppdc: non è possibile trovare il file di include \"%s\" alla riga %d di %s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: non è possibile trovare la localizzazione di \"%s\" - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" "ppdc: non è possibile caricare il file della localizzazione \"%s\" - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: non è possibile aprire %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: variabile non definita (%s) alla riga %d di %s." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: testo non previsto alla riga %d di %s." #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: tipo di driver sconosciuto %s alla riga %d di %s." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: tipo duplex sconosciuto \"%s\" alla riga %d di %s." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: dimensione sconosciuta del supporto \"%s\" alla riga %d di %s." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: formato dei cataloghi sconosciuto per \"%s\"." #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: c'è un token sconosciuto \"%s\" alla riga %d di %s." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: caratteri finali sconosciuti in un numero reale \"%s\" alla riga %d di " "%s." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc: stringa senza terminazione che inizia per %c alla riga %d di %s." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: attenzione - sovrapposizione del file \"%s\"." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: scrittura in corso di %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: scrittura in corso dei file PPD nella directory \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: LanguageVersion non è valido \"%s\" in %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: il file PPD %s è stato ignorato." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: non è possibile salvare %s in %s - %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "la stampante %s è stata disabilitata da %s" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "la stampante %s è inattiva. è stata abilitata da %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "la stampante %s sta stampando %s-%d. è stata abilitata da %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "la stampante %s/%s è stata disabilitata da %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "la stampante %s/%s è inattiva. è stata abilitata da %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "la stampante %s/%s sta stampando %s-%d. è stata abilitata da %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "elaborazione in corso" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "request id è %s-%d (%d file(s))" msgid "request-id uses indefinite length" msgstr "request-id utilizza una lunghezza indefinita" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "lo scheduler non è in funzione" msgid "scheduler is running" msgstr "lo scheduler è in funzione" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "stat di %s non riuscito: %s" msgid "status\t\tShow status of daemon and queue." msgstr "stato\t\tMostra lo stato del demone e della coda." #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "fermato" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "destinazione predefinita del sistema: %s" #, c-format msgid "system default destination: %s/%s" msgstr "destinazione predefinita del sistema: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "sconosciuto" msgid "untitled" msgstr "senza titolo" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings utilizza una lunghezza indefinita" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "" #~ "Per esportare i driver della stampante è richiesta una password di Samba." #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "Per esportare i driver della stampante è richiesto un username di Samba" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Esporta le stampanti per Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: non è possibile impostare direttamente Listen o Port." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: non è possibile aprile il file PPD \"%s\" - %s" cups-2.4.7/locale/cups_fr.po0000644000175000017500000113145214502571342015630 0ustar zdohnalzdohnal# # French message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2012-12-12 11:12+0100\n" "Last-Translator: Stéphane Blondon \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "\t\t(tous)" msgid "\t\t(none)" msgstr "\t\t(aucun)" #, c-format msgid "\t%d entries" msgstr "" #, c-format msgid "\t%s" msgstr "" msgid "\tAfter fault: continue" msgstr "" #, c-format msgid "\tAlerts: %s" msgstr "" msgid "\tBanner required" msgstr "" msgid "\tCharset sets:" msgstr "" msgid "\tConnection: direct" msgstr "" msgid "\tConnection: remote" msgstr "" msgid "\tContent types: any" msgstr "" msgid "\tDefault page size:" msgstr "" msgid "\tDefault pitch:" msgstr "" msgid "\tDefault port settings:" msgstr "" #, c-format msgid "\tDescription: %s" msgstr "" msgid "\tForm mounted:" msgstr "" msgid "\tForms allowed:" msgstr "" #, c-format msgid "\tInterface: %s.ppd" msgstr "" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "" #, c-format msgid "\tLocation: %s" msgstr "" msgid "\tOn fault: no alert" msgstr "" msgid "\tPrinter types: unknown" msgstr "" #, c-format msgid "\tStatus: %s" msgstr "" msgid "\tUsers allowed:" msgstr "" msgid "\tUsers denied:" msgstr "" msgid "\tdaemon present" msgstr "" msgid "\tno entries" msgstr "" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\timprimante sur le matériel « %s »', vitesse -1" msgid "\tprinting is disabled" msgstr "\tImpression désactivée" msgid "\tprinting is enabled" msgstr "\tImpression activée" #, c-format msgid "\tqueued for %s" msgstr "\tfile d'attente pour %s" msgid "\tqueuing is disabled" msgstr "\tfile désactivée" msgid "\tqueuing is enabled" msgstr "\tfile activée" msgid "\treason unknown" msgstr "\tcause inconnue" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" msgid " REF: Page 15, section 3.1." msgstr " REF: Page 15, section 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Page 15, section 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Page 19, section 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Page 20, section 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Page 27, section 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Page 42, section 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Pages 16-17, section 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Pages 42-45, section 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Pages 45-46, section 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Pages 48-49, section 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Pages 52-54, section 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f octets" #, c-format msgid " PASS Default%s" msgstr "" msgid " PASS DefaultImageableArea" msgstr "" msgid " PASS DefaultPaperDimension" msgstr "" msgid " PASS FileVersion" msgstr "" msgid " PASS FormatVersion" msgstr "" msgid " PASS LanguageEncoding" msgstr "" msgid " PASS LanguageVersion" msgstr "" msgid " PASS Manufacturer" msgstr "" msgid " PASS ModelName" msgstr "" msgid " PASS NickName" msgstr "" msgid " PASS PCFileName" msgstr "" msgid " PASS PSVersion" msgstr "" msgid " PASS PageRegion" msgstr "" msgid " PASS PageSize" msgstr "" msgid " PASS Product" msgstr "" msgid " PASS ShortNickName" msgstr "" #, c-format msgid " WARN %s has no corresponding options." msgstr "" #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" #, c-format msgid " WARN Line %d only contains whitespace." msgstr "" msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s n'existe pas." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "" #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsICCProfile %s." msgstr "" #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s Bad language \"%s\"." msgstr "" #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr "" #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr "" #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" #, c-format msgid " %s Default choices conflicting." msgstr "" #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr "" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr "" #, c-format msgid " %s Missing %s file \"%s\"." msgstr "" #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr "" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr "" #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "" #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "" #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr "" #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr "" #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr "" #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" #, c-format msgid " %d ERRORS FOUND" msgstr " %d ERREURS TROUVÉES" msgid " NO ERRORS FOUND" msgstr "" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Fin de ligne avec CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Fin de ligne avec CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf Fin de ligne avec LF (UNIX/Linux/macOS)." msgid " --list-filters List filters that will be used." msgstr " --list-filters Filtres de liste utilisables." msgid " -D Remove the input file when finished." msgstr "" " -D Suppression du fichier d'entrée une fois terminé." msgid " -D name=value Set named variable to value." msgstr " -D nom=valeur Affecter la variable nom à cette valeur." msgid " -I include-dir Add include directory to search path." msgstr "" " -I rep-inclus Ajouter le répertoire au chemin des recherches." msgid " -P filename.ppd Set PPD file." msgstr " -P fichier.ppd Choisir un fichier PPD." msgid " -U username Specify username." msgstr " -U nom Indiquer le nom d'utilisateur." msgid " -c catalog.po Load the specified message catalog." msgstr " -c catalogue.po Charger le catalogue de messages." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c fichier-cups.conf Utiliser le fichier fichier-cups.conf." msgid " -d output-dir Specify the output directory." msgstr " -d répertoire-sortie Indiquer le répertoire de sortie." msgid " -d printer Use the named printer." msgstr " -d imprimante Utiliser l'imprimante nommée." msgid " -e Use every filter from the PPD file." msgstr " -e Utiliser tous les filtres du fichier PPD." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type Affecter le type MIME d'entrée (sinon type " "automatique)" msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] Filtrer le fichier N de la tâche indiquée (par " "défaut, c'est le fichier 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr "" " -l lang[,lang,...] Indiquer la(les) langue(s) de sortie (locale)." msgid " -m Use the ModelName value as the filename." msgstr "" msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" msgid " -n copies Set number of copies." msgstr " -n copies Choisir le nombre de copies." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o fichier.drv Affecter le fichier d'infos du pilote (sinon ppdi." "drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o fichier.ppd[.gz] Affecter le fichier de sortie (sinon sortie " "standard)." msgid " -o name=value Set option(s)." msgstr " -o nom=valeur Affecter des option(s)." msgid " -p filename.ppd Set PPD file." msgstr " -p nomFichier.ppd Affecter le fichier PPD." msgid " -t Test PPDs instead of generating them." msgstr " -t Tester les PPDs plutôt que les produire." msgid " -t title Set title." msgstr " -t title Affecter le titre." msgid " -u Remove the PPD file when finished." msgstr " -u Supprimer le fichier PPD, une fois terminé." msgid " -v Be verbose." msgstr " -v Verbeux." msgid " -z Compress PPD files using GNU zip." msgstr " -z Compresser les fichiers PPD avec GNU zip." msgid " FAIL" msgstr " ÉCHEC" msgid " PASS" msgstr "" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f octets" #, c-format msgid "%d x %d mm" msgstr "" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "" #, c-format msgid "%s (%s, %s)" msgstr "" #, c-format msgid "%s (Borderless)" msgstr "%s (Sans bordure)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (Sans bordure, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (Sans bordure, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s accepte des requêtes depuis %s" #, c-format msgid "%s cannot be changed." msgstr "Impossible de modifier « %s »" #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s n'est pas disponible dans la version CUPS de lpc." #, c-format msgid "%s is not ready" msgstr "%s n'est pas prêt" #, c-format msgid "%s is ready" msgstr "%s est prêt" #, c-format msgid "%s is ready and printing" msgstr "%s est prêt et en cours d'impression" #, c-format msgid "%s job-id user title copies options [file]" msgstr "" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s n'accepte plus de requêtes depuis %s" #, c-format msgid "%s not supported." msgstr "%s n'est pas géré." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s accepte des requêtes depuis %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s n'accepte plus de requêtes depuis %s" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s : %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s : %s échec : %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s : mauvaise URI de l'imprimante « %s »." #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s : Mauvaise version %s for « -V »." #, c-format msgid "%s: Don't know what to do." msgstr "%s : ne sait pas quoi faire." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s : erreur - ajouter « /version=1.1 » au nom du serveur." #, c-format msgid "%s: Error - bad job ID." msgstr "%s : erreur - mauvais ID de tâche" #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "%s : erreur - les copies doivent être supérieures ou égales à 1." #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s : erreur - jeu de caractères attendu après l'option « -S »." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s : erreur - type de contenu attendu après l'option « -T »" #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s : erreur - copies attendues après l'option « -# »." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s : erreur - copies attendues après l'option « -n »." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s : erreur - destination attendue après l'option « -P »." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s : erreur - destination attendue après l'option « -d »." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "" #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s : erreur - nom d'hôte attendu après l'option « -H »." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s : erreur - nom d'hôte attendu après l'option « -h »." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "" #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s : erreur - nom attendu après l'option « -%c »." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s : erreur - option=valeur attendu après l'option « -o »." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s : erreur - liste de page attendue après l'option « -P »." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s : erreur - priorité attendue après l'option « -%c »." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "" #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s : erreur - titre attendu après l'option « -t »." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s : erreur - nom d'utilisateur attendu après l'option « -U »." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s : erreur - nom d'utilisateur attendu après l'option « -u »." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s : erreur - valeur attendue après l'option « -%c »." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" #, c-format msgid "%s: Error - no default destination available." msgstr "%s : erreur - aucune destination par défaut disponible." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s : erreur - la priorité doit être comprise entre 1 et 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s : erreur - l'ordonnanceur ne répond pas." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s : erreur - trop de fichiers - « %s »." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s : erreur - impossible d'accéder à « %s » - « %s »" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "" #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s : erreur - destination inconnue - « %s »." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s : erreur - destination inconnue - « %s/%s »." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s : erreur - option inconnue - « %c »." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s : erreur - option inconnue - « %s »." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "" #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "" #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "" #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s : nom de fichier manquant pour « -P »." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s : délai d'expiration manquant pour « -T »." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s : version manquante pour « -V »." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s : aucun filtre pour convertir %s/%s en %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s : échec de l'opération : %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s : désolé, chiffrement indisponible." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s : impossible de se connecter à « %s/%d » : %s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s : impossible de se connecter au serveur." #, c-format msgid "%s: Unable to contact server." msgstr "%s : impossible de contacter au serveur." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s : impossible de créer le fichier PPD : %s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "" #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s : impossible d'ouvrir « %s » : %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s : impossible d'ouvrir %s : %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s : impossible d'ouvrir le fichier PPD : %s sur la ligne %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s : impossible de résoudre « %s »." #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "%s : paramètre inconnu « %s »." #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s : destination inconnue « %s »." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "" #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s : option inconnue « %c »." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s : option inconnue « %s »." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s : option inconnue « -%c »." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "" #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" #, c-format msgid "%s: Warning - character set option ignored." msgstr "" #, c-format msgid "%s: Warning - content type option ignored." msgstr "" #, c-format msgid "%s: Warning - form option ignored." msgstr "" #, c-format msgid "%s: Warning - mode option ignored." msgstr "" msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 po/s" msgid "1.25x0.25\"" msgstr "1,25 x 0,25\"" msgid "1.25x2.25\"" msgstr "1,25 x 2,25\"" msgid "1.5 inch/sec." msgstr "1,5 po/s" msgid "1.50x0.25\"" msgstr "1,50 x 0,25\"" msgid "1.50x0.50\"" msgstr "1,50 x 0,50\"" msgid "1.50x1.00\"" msgstr "1,50 x 1,00\"" msgid "1.50x2.00\"" msgstr "1,50 x 2,00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 po/s" msgid "10 x 11" msgstr "" msgid "10 x 13" msgstr "" msgid "10 x 14" msgstr "" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/s" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 po/s" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 po/s" msgid "12 x 11" msgstr "" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/s" msgid "120x60dpi" msgstr "120 x 60 ppp" msgid "120x72dpi" msgstr "120 x 72 ppp" msgid "13" msgstr "13" msgid "136dpi" msgstr "136 ppp" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/s" msgid "15 x 11" msgstr "" msgid "150 mm/sec." msgstr "150 mm/s" msgid "150dpi" msgstr "150 ppp" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180 ppp" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 po/s" msgid "2-Sided Printing" msgstr "Impression recto-verso" msgid "2.00x0.37\"" msgstr "2,00 x 0,37\"" msgid "2.00x0.50\"" msgstr "2,00 x 0,50\"" msgid "2.00x1.00\"" msgstr "2,00 x 1,00\"" msgid "2.00x1.25\"" msgstr "2,00 x 1,25\"" msgid "2.00x2.00\"" msgstr "2,00 x 2,00\"" msgid "2.00x3.00\"" msgstr "2,00 x 3,00\"" msgid "2.00x4.00\"" msgstr "2,00 x 4,00\"" msgid "2.00x5.50\"" msgstr "2,00 x 5,50\"" msgid "2.25x0.50\"" msgstr "2,25 x 0,50\"" msgid "2.25x1.25\"" msgstr "2,25 x 1,25\"" msgid "2.25x4.00\"" msgstr "2,25 x 4,00\"" msgid "2.25x5.50\"" msgstr "2,25 x 5,50\"" msgid "2.38x5.50\"" msgstr "2,38 x 5,50\"" msgid "2.5 inches/sec." msgstr "2,5 po/s" msgid "2.50x1.00\"" msgstr "2,50 x 1,00\"" msgid "2.50x2.00\"" msgstr "2,50 x 2,00\"" msgid "2.75x1.25\"" msgstr "2,75 x 1,25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/s" msgid "200 mm/sec." msgstr "200 mm/s" msgid "203dpi" msgstr "203 ppp" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "Série 24 broches" msgid "240x72dpi" msgstr "240 x 72 ppp" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/s" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 po/s" msgid "3 x 5" msgstr "" msgid "3.00x1.00\"" msgstr "3,00 x 1,00\"" msgid "3.00x1.25\"" msgstr "3,00 x 1,25\"" msgid "3.00x2.00\"" msgstr "3,00 x 2,00\"" msgid "3.00x3.00\"" msgstr "3,00 x 3,00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3,00 x 5,00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3,25 x 2,00\"" msgid "3.25x5.00\"" msgstr "3,25 x 5,00\"" msgid "3.25x5.50\"" msgstr "3,25 x 5,50\"" msgid "3.25x5.83\"" msgstr "3,25 x 5,83\"" msgid "3.25x7.83\"" msgstr "3,25 x 7,83\"" msgid "3.5 x 5" msgstr "" msgid "3.5\" Disk" msgstr "Disque 3,5\"" msgid "3.50x1.00\"" msgstr "3,50 x 1,00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/s" msgid "300 mm/sec." msgstr "300 mm/s" msgid "300dpi" msgstr "300 ppp" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360 ppp" msgid "360x180dpi" msgstr "360 x 180 ppp" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 po/s" msgid "4.00x1.00\"" msgstr "4,00 x 1,00\"" msgid "4.00x13.00\"" msgstr "4,00 x 13,00\"" msgid "4.00x2.00\"" msgstr "4,00 x 2,00\"" msgid "4.00x2.50\"" msgstr "4,00 x 2,50\"" msgid "4.00x3.00\"" msgstr "4,00 x 3,00\"" msgid "4.00x4.00\"" msgstr "4,00 x 4,00\"" msgid "4.00x5.00\"" msgstr "4,00 x 5,00\"" msgid "4.00x6.00\"" msgstr "4,00 x 6,00\"" msgid "4.00x6.50\"" msgstr "4,00 x 6,50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/s" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 po/s" msgid "5 x 7" msgstr "" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 po/s" msgid "6.00x1.00\"" msgstr "6,00 x 1,00\"" msgid "6.00x2.00\"" msgstr "6,00 x 2,00\"" msgid "6.00x3.00\"" msgstr "6,00 x 3,00\"" msgid "6.00x4.00\"" msgstr "6,00 x 4,00\"" msgid "6.00x5.00\"" msgstr "6,00 x 5,00\"" msgid "6.00x6.00\"" msgstr "6,00 x 6,00\"" msgid "6.00x6.50\"" msgstr "6,00 x 6,50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/s" msgid "600dpi" msgstr "600 ppp" msgid "60dpi" msgstr "60 ppp" msgid "60x72dpi" msgstr "" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 po/s" msgid "7 x 9" msgstr "" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 po/s" msgid "8 x 10" msgstr "" msgid "8.00x1.00\"" msgstr "8,00 x 1,00\"" msgid "8.00x2.00\"" msgstr "8,00 x 2,00\"" msgid "8.00x3.00\"" msgstr "8,00 x 3,00\"" msgid "8.00x4.00\"" msgstr "8,00 x 4,00\"" msgid "8.00x5.00\"" msgstr "8,00 x 5,00\"" msgid "8.00x6.00\"" msgstr "8,00 x 6,00\"" msgid "8.00x6.50\"" msgstr "8,00 x 6,50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/s" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 po/s" msgid "9 x 11" msgstr "" msgid "9 x 12" msgstr "" msgid "9-Pin Series" msgstr "Série 9 broches" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "" #, c-format msgid "A class named \"%s\" already exists." msgstr "" #, c-format msgid "A printer named \"%s\" already exists." msgstr "Une imprimante nommée « %s » existe déjà." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 Bord long" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 Bord long" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 Bord long" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 Bord long" msgid "A3 Oversize" msgstr "" msgid "A3 Oversize Long Edge" msgstr "" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 Bord long" msgid "A4 Oversize" msgstr "" msgid "A4 Small" msgstr "" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 Bord long" msgid "A5 Oversize" msgstr "" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 Bord long" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C Bord long" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D Bord long" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E Bord long" msgid "Accept Jobs" msgstr "Accepter les tâches" msgid "Accepted" msgstr "Accepté" msgid "Add Class" msgstr "Ajouter une classe" msgid "Add Printer" msgstr "Ajouter une imprimante" msgid "Address" msgstr "Adresse" msgid "Administration" msgstr "Administration" msgid "Always" msgstr "Toujours" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Applicator" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "" msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Pointeur de dests NULL incorrect" msgid "Bad OpenGroup" msgstr "OpenGroup erroné" msgid "Bad OpenUI/JCLOpenUI" msgstr "OpenUI/JCLOpenUI erroné" msgid "Bad OrderDependency" msgstr "OrderDependency erroné" msgid "Bad PPD cache file." msgstr "" msgid "Bad PPD file." msgstr "Fichier PPD incorrect." msgid "Bad Request" msgstr "Requête incorrecte." msgid "Bad SNMP version number" msgstr "Numéro de version SNMP incorrect" msgid "Bad UIConstraints" msgstr "" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "Paramètres de la fonction incorrects" #, c-format msgid "Bad copies value %d." msgstr "Valeur « %d » incorrecte pour copies." msgid "Bad custom parameter" msgstr "Paramètre personnalisé incorrect" #, c-format msgid "Bad device-uri \"%s\"." msgstr "" #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "" #, c-format msgid "Bad document-format \"%s\"." msgstr "" #, c-format msgid "Bad document-format-default \"%s\"." msgstr "" msgid "Bad filename buffer" msgstr "" msgid "Bad hostname/address in URI" msgstr "" #, c-format msgid "Bad job-name value: %s" msgstr "" msgid "Bad job-name value: Wrong type or count." msgstr "" msgid "Bad job-priority value." msgstr "" #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "" msgid "Bad job-sheets value type." msgstr "" msgid "Bad job-state value." msgstr "" #, c-format msgid "Bad job-uri \"%s\"." msgstr "" #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "" #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "" #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Valeur de number-up %d incorrecte." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Intervalle de pages erroné : %d-%d." msgid "Bad port number in URI" msgstr "Numéro de port incorrect dans l'URI" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "" #, c-format msgid "Bad printer-state value %d." msgstr "" msgid "Bad printer-uri." msgstr "" #, c-format msgid "Bad request ID %d." msgstr "" #, c-format msgid "Bad request version number %d.%d." msgstr "" msgid "Bad resource in URI" msgstr "" msgid "Bad scheme in URI" msgstr "" msgid "Bad username in URI" msgstr "" msgid "Bad value string" msgstr "" msgid "Bad/empty URI" msgstr "" msgid "Banners" msgstr "Bannières" msgid "Bond Paper" msgstr "Papier pour titres" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "" msgid "Buffer overflow detected, aborting." msgstr "" msgid "CMYK" msgstr "CMJN" msgid "CPCL Label Printer" msgstr "Imprimante pour étiquettes CPCL" msgid "Cancel Jobs" msgstr "Annuler les tâches" msgid "Canceling print job." msgstr "Annulation de la tâche d'impression." msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "" msgid "Cassette" msgstr "" msgid "Change Settings" msgstr "Modifier les paramètres" #, c-format msgid "Character set \"%s\" not supported." msgstr "Le jeu de caractères \"%s\" n'est pas disponible." msgid "Classes" msgstr "Classes" msgid "Clean Print Heads" msgstr "Nettoyer les têtes d’impression" msgid "Close-Job doesn't support the job-uri attribute." msgstr "" msgid "Color" msgstr "Couleur" msgid "Color Mode" msgstr "Mode de couleur" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" msgid "Community name uses indefinite length" msgstr "Le nom de la communauté s’avère être de longueur indéfinie" msgid "Connected to printer." msgstr "Connecté à l'imprimante." msgid "Connecting to printer." msgstr "Connexion à l'imprimante en cours." msgid "Continue" msgstr "Continuer" msgid "Continuous" msgstr "Continu" msgid "Control file sent successfully." msgstr "" msgid "Copying print data." msgstr "" msgid "Created" msgstr "Créé" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Personnalisation" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Couper" msgid "Cutter" msgstr "Cutter" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Foncé" msgid "Darkness" msgstr "Tons foncés" msgid "Data file sent successfully." msgstr "" msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Supprimer la classe" msgid "Delete Printer" msgstr "Supprimer l’imprimante" msgid "DeskJet Series" msgstr "Série DeskJet" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "La destination « %s » n’accepte pas de tâche." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" msgid "Direct Thermal Media" msgstr "Papier pour impression thermique directe" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "Le répertoire « %s » contient un chemin relatif." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" "Les permissions du répertoire « %s » sont trop souples (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "Le répertoire « %s » est un fichier." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Le répertoire « %s » n'est pas disponible : %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" "Les permissions du répertoire « %s » sont correctes (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Désactivé" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "" msgid "Draft" msgstr "Brouillon" msgid "Duplexer" msgstr "Duplexeur" msgid "EPL1 Label Printer" msgstr "Imprimante pour étiquettes EPL1" msgid "EPL2 Label Printer" msgstr "Imprimante pour étiquettes EPL2" msgid "Edit Configuration File" msgstr "Modifier le fichier de configuration" msgid "Encryption is not supported." msgstr "Chiffrement indisponible." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Fin de la bannière" msgid "English" msgstr "French" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Entrez votre nom et mot de passe ou ceux de root pour accéder à cette page. " "Si vous utilisez une authentifiation Kerberos, vérifiez que vous disposez " "d'un ticket Kerberos valide." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "" msgid "Envelope #12" msgstr "" msgid "Envelope #14" msgstr "" msgid "Envelope #9" msgstr "" msgid "Envelope B4" msgstr "" msgid "Envelope B5" msgstr "" msgid "Envelope B6" msgstr "" msgid "Envelope C0" msgstr "" msgid "Envelope C1" msgstr "" msgid "Envelope C2" msgstr "" msgid "Envelope C3" msgstr "" msgid "Envelope C4" msgstr "" msgid "Envelope C5" msgstr "" msgid "Envelope C6" msgstr "" msgid "Envelope C65" msgstr "" msgid "Envelope C7" msgstr "" msgid "Envelope Choukei 3" msgstr "" msgid "Envelope Choukei 3 Long Edge" msgstr "" msgid "Envelope Choukei 4" msgstr "" msgid "Envelope Choukei 4 Long Edge" msgstr "" msgid "Envelope DL" msgstr "" msgid "Envelope Feed" msgstr "Alimentation au format enveloppe" msgid "Envelope Invite" msgstr "" msgid "Envelope Italian" msgstr "Enveloppe italienne" msgid "Envelope Kaku2" msgstr "" msgid "Envelope Kaku2 Long Edge" msgstr "" msgid "Envelope Kaku3" msgstr "" msgid "Envelope Kaku3 Long Edge" msgstr "" msgid "Envelope Monarch" msgstr "" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "" msgid "Envelope PRC10" msgstr "" msgid "Envelope PRC10 Long Edge" msgstr "" msgid "Envelope PRC2" msgstr "" msgid "Envelope PRC2 Long Edge" msgstr "" msgid "Envelope PRC3" msgstr "" msgid "Envelope PRC3 Long Edge" msgstr "" msgid "Envelope PRC4" msgstr "" msgid "Envelope PRC4 Long Edge" msgstr "" msgid "Envelope PRC5 Long Edge" msgstr "" msgid "Envelope PRC5PRC5" msgstr "" msgid "Envelope PRC6" msgstr "" msgid "Envelope PRC6 Long Edge" msgstr "" msgid "Envelope PRC7" msgstr "" msgid "Envelope PRC7 Long Edge" msgstr "" msgid "Envelope PRC8" msgstr "" msgid "Envelope PRC8 Long Edge" msgstr "" msgid "Envelope PRC9" msgstr "" msgid "Envelope PRC9 Long Edge" msgstr "" msgid "Envelope Personal" msgstr "" msgid "Envelope You4" msgstr "" msgid "Envelope You4 Long Edge" msgstr "" msgid "Environment Variables:" msgstr "Variables d'environnement :" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Règles d’erreur" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "" msgid "Error: need hostname after \"-h\" option." msgstr "" msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Toutes les 10 étiquettes" msgid "Every 2 Labels" msgstr "Toutes les 2 étiquettes" msgid "Every 3 Labels" msgstr "Toutes les 3 étiquettes" msgid "Every 4 Labels" msgstr "Toutes les 4 étiquettes" msgid "Every 5 Labels" msgstr "Toutes les 5 étiquettes" msgid "Every 6 Labels" msgstr "Toutes les 6 étiquettes" msgid "Every 7 Labels" msgstr "Toutes les 7 étiquettes" msgid "Every 8 Labels" msgstr "Toutes les 8 étiquettes" msgid "Every 9 Labels" msgstr "Toutes les 9 étiquettes" msgid "Every Label" msgstr "Chaque étiquette" msgid "Executive" msgstr "" msgid "Expectation Failed" msgstr "Échec de la condition de valeur attendue" msgid "Expressions:" msgstr "Expressions :" msgid "Fast Grayscale" msgstr "Niveaux de gris rapide" #, c-format msgid "File \"%s\" contains a relative path." msgstr "" #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #, c-format msgid "File \"%s\" is a directory." msgstr "" #, c-format msgid "File \"%s\" not available: %s" msgstr "" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" #, c-format msgid "Finished page %d." msgstr "" msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Folio" msgid "Forbidden" msgstr "Interdit" msgid "Found" msgstr "" msgid "General" msgstr "Général" msgid "Generic" msgstr "Générique" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU s’avère être de longueur indéfinie" msgid "Glossy Paper" msgstr "Papier brillant" msgid "Got a printer-uri attribute but no job-id." msgstr "" msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Niveaux de gris" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Dossier suspendu" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "" msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "" msgid "IPP attribute has no name." msgstr "" msgid "IPP attribute is not a member of the message." msgstr "" msgid "IPP begCollection value not 0 bytes." msgstr "" msgid "IPP boolean value not 1 byte." msgstr "" msgid "IPP date value not 11 bytes." msgstr "" msgid "IPP endCollection value not 0 bytes." msgstr "" msgid "IPP enum value not 4 bytes." msgstr "" msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "" msgid "IPP integer value not 4 bytes." msgstr "" msgid "IPP language length overflows value." msgstr "" msgid "IPP language length too large." msgstr "" msgid "IPP member name is not empty." msgstr "" msgid "IPP memberName value is empty." msgstr "" msgid "IPP memberName with no attribute." msgstr "" msgid "IPP name larger than 32767 bytes." msgstr "" msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "" msgid "IPP octetString length too large." msgstr "" msgid "IPP rangeOfInteger value not 8 bytes." msgstr "" msgid "IPP resolution value not 9 bytes." msgstr "" msgid "IPP string length overflows value." msgstr "" msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "" msgid "IPP value larger than 32767 bytes." msgstr "" msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "utf-8" msgid "Illegal control character" msgstr "Caractère de contrôle interdit" msgid "Illegal main keyword string" msgstr "Mot-clé essentiel interdit" msgid "Illegal option keyword string" msgstr "Mot-clé d’option interdit" msgid "Illegal translation string" msgstr "Traduction interdite" msgid "Illegal whitespace character" msgstr "Caractère « espace blanc » interdit" msgid "Installable Options" msgstr "Options installables" msgid "Installed" msgstr "Installée" msgid "IntelliBar Label Printer" msgstr "Imprimante pour étiquettes IntelliBar" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Erreur interne du serveur" msgid "Internal error" msgstr "Erreur interne" msgid "Internet Postage 2-Part" msgstr "Affranchissement Internet en 2 parties" msgid "Internet Postage 3-Part" msgstr "Affranchissement Internet en 3 parties" msgid "Internet Printing Protocol" msgstr "Internet Printing Protocol" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "" msgid "Invalid media size." msgstr "" msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "" msgid "JCL" msgstr "JCL ( Langage de contrôle de tâche )" msgid "JIS B0" msgstr "" msgid "JIS B1" msgstr "" msgid "JIS B10" msgstr "" msgid "JIS B2" msgstr "" msgid "JIS B3" msgstr "" msgid "JIS B4" msgstr "" msgid "JIS B4 Long Edge" msgstr "" msgid "JIS B5" msgstr "" msgid "JIS B5 Long Edge" msgstr "" msgid "JIS B6" msgstr "" msgid "JIS B6 Long Edge" msgstr "" msgid "JIS B7" msgstr "" msgid "JIS B8" msgstr "" msgid "JIS B9" msgstr "" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "" #, c-format msgid "Job #%d does not exist." msgstr "La tâche n°%d n'existe pas." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "La tâche n°%d est déjà abandonnée - impossible de l’annuler." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "La tâche n°%d est déjà annulée - impossible de l’annuler." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "La tâche n°%d est déjà terminée - impossible de l’annuler." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "La tâche n°%d est terminée et ne peut être modifiée." #, c-format msgid "Job #%d is not complete." msgstr "La tâche n°%d n'est pas terminée." #, c-format msgid "Job #%d is not held for authentication." msgstr "" #, c-format msgid "Job #%d is not held." msgstr "" msgid "Job Completed" msgstr "terminée" msgid "Job Created" msgstr "Tâche créée" msgid "Job Options Changed" msgstr "Options de la tâche modifiées" msgid "Job Stopped" msgstr "arrêtée" msgid "Job is completed and cannot be changed." msgstr "La tâche est terminée et ne peut être modifiée." msgid "Job operation failed" msgstr "L’opération sur la tâche a échoué :" msgid "Job state cannot be changed." msgstr "L’état de la tâche ne peut pas être modifié." msgid "Job subscriptions cannot be renewed." msgstr "" msgid "Jobs" msgstr "Tâches" msgid "LPD/LPR Host or Printer" msgstr "Hôte ou imprimante LPD/LPR" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Imprimante pour étiquettes" msgid "Label Top" msgstr "Étiquette supérieure" #, c-format msgid "Language \"%s\" not supported." msgstr "" msgid "Large Address" msgstr "Adresse étendue" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet série PCL 4/5" msgid "Letter Oversize" msgstr "" msgid "Letter Oversize Long Edge" msgstr "" msgid "Light" msgstr "Clair" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Ligne dépassant la longueur maximale autorisée (255 caractères)" msgid "List Available Printers" msgstr "" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "Bord le plus long (Portrait)" msgid "Looking for printer." msgstr "Recherche d'imprimante en cours." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "" msgid "Media Size" msgstr "Taille du papier" msgid "Media Source" msgstr "Source du papier" msgid "Media Tracking" msgstr "Crénage du papier" msgid "Media Type" msgstr "Type de papier" msgid "Medium" msgstr "Moyen" msgid "Memory allocation error" msgstr "Erreur d’allocation de mémoire" msgid "Missing CloseGroup" msgstr "" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Entête PPD-Adobe-4.x manquant" msgid "Missing asterisk in column 1" msgstr "Astérisque manquant à la colonne 1" msgid "Missing document-number attribute." msgstr "" msgid "Missing form variable" msgstr "" msgid "Missing last-document attribute in request." msgstr "" msgid "Missing media or media-col." msgstr "" msgid "Missing media-size in media-col." msgstr "" msgid "Missing notify-subscription-ids attribute." msgstr "" msgid "Missing option keyword" msgstr "" msgid "Missing requesting-user-name attribute." msgstr "" #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "" msgid "Missing resource in URI" msgstr "" msgid "Missing scheme in URI" msgstr "" msgid "Missing value string" msgstr "Chaîne de valeur manquante" msgid "Missing x-dimension in media-size." msgstr "" msgid "Missing y-dimension in media-size." msgstr "" #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" msgid "Modifiers:" msgstr "" msgid "Modify Class" msgstr "Modifier la classe" msgid "Modify Printer" msgstr "Modifier l’imprimante" msgid "Move All Jobs" msgstr "Transférer toutes les tâches" msgid "Move Job" msgstr "Transférer la tâche" msgid "Moved Permanently" msgstr "Transférées de façon permanente" msgid "NULL PPD file pointer" msgstr "Pointeur de fichier PPD NULL." msgid "Name OID uses indefinite length" msgstr "L’OID du nom s’avère être de longueur indéfinie" msgid "Nested classes are not allowed." msgstr "" msgid "Never" msgstr "Jamais" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "Non" msgid "No Content" msgstr "Aucun contenu" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "" msgid "No VarBind SEQUENCE" msgstr "Aucune SEQUENCE VarBind" msgid "No active connection" msgstr "Aucune connexion active" msgid "No active connection." msgstr "Aucune connexion active." #, c-format msgid "No active jobs on %s." msgstr "Aucune tâche active sur %s." msgid "No attributes in request." msgstr "" msgid "No authentication information provided." msgstr "" msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Aucun nom de communauté" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "Aucune imprimante par défaut." msgid "No destinations added." msgstr "Aucune destination ajoutée." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" msgid "No error-index" msgstr "Paramètre error-index absent" msgid "No error-status" msgstr "" msgid "No file in print request." msgstr "" msgid "No modification time" msgstr "" msgid "No name OID" msgstr "Aucun OID de nom" msgid "No pages were found." msgstr "" msgid "No printer name" msgstr "" msgid "No printer-uri found" msgstr "" msgid "No printer-uri found for class" msgstr "" msgid "No printer-uri in request." msgstr "" msgid "No request URI." msgstr "" msgid "No request protocol version." msgstr "" msgid "No request sent." msgstr "" msgid "No request-id" msgstr "Paramètre request-id absent" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "" msgid "No subscriptions found." msgstr "Aucun abonnement trouvé." msgid "No variable-bindings SEQUENCE" msgstr "Aucune SEQUENCE variable-bindings" msgid "No version number" msgstr "Aucun numéro de version" msgid "Non-continuous (Mark sensing)" msgstr "Non continu (détection de marque)" msgid "Non-continuous (Web sensing)" msgstr "Non continu (détection Web)" msgid "None" msgstr "Aucun" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "Introuvable" msgid "Not Implemented" msgstr "Non implémentée" msgid "Not Installed" msgstr "Non installée" msgid "Not Modified" msgstr "Non modifiée" msgid "Not Supported" msgstr "Non prise en charge" msgid "Not allowed to print." msgstr "Impression interdite" msgid "Note" msgstr "Remarque" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Désactivé (recto)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Aide en ligne" msgid "Only local users can create a local printer." msgstr "Seuls les utilisateurs locaux peuvent créer des imprimantes locales." #, c-format msgid "Open of %s failed: %s" msgstr "L’ouverture de %s a échoué : %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup sans CloseGroup préalable" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI sans CloseUI/JCLCloseUI préalable" msgid "Operation Policy" msgstr "Règles de fonctionnement" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "" msgid "Options Installed" msgstr "Options installées" msgid "Options:" msgstr "Options" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "" msgid "Out of memory." msgstr "" msgid "Output Mode" msgstr "Mode de sortie" msgid "PCL Laser Printer" msgstr "Imprimante laser PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "" msgid "PRC32K Oversize" msgstr "" msgid "PRC32K Oversize Long Edge" msgstr "" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "Le paquet ne contient aucun paramètre Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Le paquet ne commence pas par SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Mot de passe pour %s sur %s ? " msgid "Pause Class" msgstr "Suspendre la classe" msgid "Pause Printer" msgstr "Suspendre l’imprimante" msgid "Peel-Off" msgstr "Décoller" msgid "Photo" msgstr "Photo" msgid "Photo Labels" msgstr "Étiquettes photo" msgid "Plain Paper" msgstr "" msgid "Policies" msgstr "Règles" msgid "Port Monitor" msgstr "Moniteur de port" msgid "PostScript Printer" msgstr "Imprimante PostScript" msgid "Postcard" msgstr "Carte postale" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "" msgid "Postcard Long Edge" msgstr "" msgid "Preparing to print." msgstr "" msgid "Print Density" msgstr "Densité d’impression" msgid "Print Job:" msgstr "Tâche d’impression :" msgid "Print Mode" msgstr "Mode d’impression" msgid "Print Quality" msgstr "Qualité d'impression" msgid "Print Rate" msgstr "Taux d’impression" msgid "Print Self-Test Page" msgstr "Imprimer une page d’autotest" msgid "Print Speed" msgstr "Vitesse d’impression" msgid "Print Test Page" msgstr "Imprimer la page de test" msgid "Print and Cut" msgstr "Impression à découper" msgid "Print and Tear" msgstr "Impression à détacher" msgid "Print file sent." msgstr "" msgid "Print job canceled at printer." msgstr "" msgid "Print job too large." msgstr "" msgid "Print job was not accepted." msgstr "" #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "ajoutée" msgid "Printer Default" msgstr "par défaut" msgid "Printer Deleted" msgstr "supprimée" msgid "Printer Modified" msgstr "modifiée" msgid "Printer Paused" msgstr "en pause" msgid "Printer Settings" msgstr "Réglages de l’imprimante" msgid "Printer cannot print supplied content." msgstr "" msgid "Printer cannot print with supplied options." msgstr "" msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Imprimante :" msgid "Printers" msgstr "" #, c-format msgid "Printing page %d, %u%% complete." msgstr "" msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "" msgid "Rank Owner Job File(s) Total Size" msgstr "" msgid "Reject Jobs" msgstr "Refuser les tâches" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "" #, c-format msgid "Remote host did not accept data file (%d)." msgstr "" msgid "Reprint After Error" msgstr "Réimprimer après erreur" msgid "Request Entity Too Large" msgstr "Entité de requête trop volumineuse" msgid "Resolution" msgstr "Résolution" msgid "Resume Class" msgstr "Relancer la classe" msgid "Resume Printer" msgstr "Relancer l’imprimante" msgid "Return Address" msgstr "Renvoyer l’adresse" msgid "Rewind" msgstr "Rembobiner" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE s’avère être de longueur indéfinie" msgid "SSL/TLS Negotiation Error" msgstr "Erreur de négotiation SSL/TLS" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Autres" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "" msgid "Server Restarted" msgstr "Le serveur a redémarré" msgid "Server Security Auditing" msgstr "Vérification de la sécurité du serveur" msgid "Server Started" msgstr "Le serveur a démarré" msgid "Server Stopped" msgstr "Le serveur s’est arrêté" msgid "Server credentials not set." msgstr "" msgid "Service Unavailable" msgstr "Service indisponible" msgid "Set Allowed Users" msgstr "Définir les autorisations" msgid "Set As Server Default" msgstr "Définir comme valeur par défaut pour le serveur" msgid "Set Class Options" msgstr "Définir les options de classe" msgid "Set Printer Options" msgstr "Définir les options de l’imprimante" msgid "Set Publishing" msgstr "Définir la publication" msgid "Shipping Address" msgstr "Adresse de livraison" msgid "Short-Edge (Landscape)" msgstr "Bord le plus court (paysage)" msgid "Special Paper" msgstr "Papier spécial" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "" msgid "Standard" msgstr "Standard" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Début de la bannière" #, c-format msgid "Starting page %d." msgstr "" msgid "Statement" msgstr "Déclaration" #, c-format msgid "Subscription #%d does not exist." msgstr "" msgid "Substitutions:" msgstr "" msgid "Super A" msgstr "" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Permuter les protocoles" msgid "Tabloid" msgstr "Tabloïd" msgid "Tabloid Oversize" msgstr "" msgid "Tabloid Oversize Long Edge" msgstr "" msgid "Tear" msgstr "Détacher" msgid "Tear-Off" msgstr "Détacher" msgid "Tear-Off Adjust Position" msgstr "Position d’ajustement du détachement" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "" #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "" #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "Le fichier PPD « %s » n’a pu être trouvé." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "Le fichier PPD « %s » n’a pu être ouvert : %s" msgid "The PPD file could not be opened." msgstr "Le fichier PPD n’a pu être ouvert." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "Le nom de classe doit comporter au plus 127 caractères, tous imprimables, " "sans espace, « / » et « # »." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "L’attribut « notify-lease-duration » ne peut pas être utilisé dans un " "abonnement de tâche." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "" msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" msgid "The printer did not respond." msgstr "" msgid "The printer is in use." msgstr "" msgid "The printer is not connected." msgstr "" msgid "The printer is not responding." msgstr "" msgid "The printer is now connected." msgstr "" msgid "The printer is now online." msgstr "" msgid "The printer is offline." msgstr "" msgid "The printer is unreachable at this time." msgstr "" msgid "The printer may not exist or is unavailable at this time." msgstr "" msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "" msgid "The printer or class is not shared." msgstr "" #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "Le paramètre printer-uri « %s » contient des caractères non valides." msgid "The printer-uri attribute is required." msgstr "" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "L’attribut « printer-uri » doit se présenter sous la forme « ipp://HOSTNAME/" "classes/CLASSNAME »." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "L’attribut « printer-uri » doit se présenter sous la forme « ipp://HOSTNAME/" "printers/PRINTERNAME »." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "" msgid "There are too many subscriptions." msgstr "Les abonnements sont trop nombreux." msgid "There was an unrecoverable USB error." msgstr "" msgid "Thermal Transfer Media" msgstr "Papier pour transfert thermique" msgid "Too many active jobs." msgstr "Trop de tâches en cours." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "" #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "" msgid "Transparency" msgstr "Transparence" msgid "Tray" msgstr "Bac" msgid "Tray 1" msgstr "Bac 1" msgid "Tray 2" msgstr "Bac 2" msgid "Tray 3" msgstr "Bac 3" msgid "Tray 4" msgstr "Bac 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "URI trop long" msgid "URI too large" msgstr "" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Légal" msgid "US Legal Oversize" msgstr "" msgid "US Letter" msgstr "US Lettre" msgid "US Letter Long Edge" msgstr "US Lettre Bord long" msgid "US Letter Oversize" msgstr "" msgid "US Letter Oversize Long Edge" msgstr "" msgid "US Letter Small" msgstr "" msgid "Unable to access cupsd.conf file" msgstr "Impossible d’accéder au fichier cupsd.conf :" msgid "Unable to access help file." msgstr "Impossible d’accéder au fichier d’aide :" msgid "Unable to add class" msgstr "Impossible d’ajouter la classe :" msgid "Unable to add document to print job." msgstr "Impossible d’ajouter le document pour imprimer la tâche :" #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Impossible d’ajouter la tâche à la destination \"%s\"." msgid "Unable to add printer" msgstr "Impossible d’ajouter l’imprimante :" msgid "Unable to allocate memory for file types." msgstr "" msgid "Unable to allocate memory for page info" msgstr "" msgid "Unable to allocate memory for pages array" msgstr "" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "Impossible d’annuler la tâche d'impression." msgid "Unable to change printer" msgstr "Impossible de changer d'imprimante" msgid "Unable to change printer-is-shared attribute" msgstr "Impossible de modifier l’attribut « printer-is-shared » :" msgid "Unable to change server settings" msgstr "Impossible de modifier les réglages du serveur :" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" msgid "Unable to configure printer options." msgstr "Impossible de configurer les options de l'imprimante." msgid "Unable to connect to host." msgstr "Connexion à l’hôte impossible." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" #, c-format msgid "Unable to copy PPD file - %s" msgstr "" msgid "Unable to copy PPD file." msgstr "" msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "Impossible de créer le fichier temporaire :" msgid "Unable to delete class" msgstr "Impossible de supprimer la classe :" msgid "Unable to delete printer" msgstr "Impossible de supprimer l’imprimante :" msgid "Unable to do maintenance command" msgstr "Impossible de lancer la commande de maintenance :" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" msgid "Unable to establish a secure connection to host." msgstr "" #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "" msgid "Unable to find printer." msgstr "" msgid "Unable to find server credentials." msgstr "" msgid "Unable to get backend exit status." msgstr "" msgid "Unable to get class list" msgstr "Impossible d’obtenir la liste des classes :" msgid "Unable to get class status" msgstr "Impossible d’obtenir l’état de la classe :" msgid "Unable to get list of printer drivers" msgstr "Impossible d’obtenir la liste des pilotes d’impression :" msgid "Unable to get printer attributes" msgstr "Impossible de récupérer les attributs de l’imprimante :" msgid "Unable to get printer list" msgstr "Impossible d’obtenir la liste des imprimantes :" msgid "Unable to get printer status" msgstr "Impossible d’obtenir l’état de l’imprimante" msgid "Unable to get printer status." msgstr "Impossible d’obtenir l’état de l’imprimante." msgid "Unable to load help index." msgstr "" #, c-format msgid "Unable to locate printer \"%s\"." msgstr "" msgid "Unable to locate printer." msgstr "" msgid "Unable to modify class" msgstr "Impossible de modifier la classe :" msgid "Unable to modify printer" msgstr "Impossible de modifier l’imprimante :" msgid "Unable to move job" msgstr "Impossible de transférer la tâche." msgid "Unable to move jobs" msgstr "Impossible de transférer les tâches." msgid "Unable to open PPD file" msgstr "" msgid "Unable to open cupsd.conf file:" msgstr "Impossible d’ouvrir le fichier cupsd.conf :" msgid "Unable to open device file" msgstr "" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "" msgid "Unable to open help file." msgstr "" msgid "Unable to open print file" msgstr "" msgid "Unable to open raster file" msgstr "" msgid "Unable to print test page" msgstr "Impossible d’imprimer la page de test :" msgid "Unable to read print data." msgstr "" #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "" msgid "Unable to see in file" msgstr "" msgid "Unable to send command to printer driver" msgstr "" msgid "Unable to send data to printer." msgstr "" msgid "Unable to set options" msgstr "Impossible de définir les options :" msgid "Unable to set server default" msgstr "Impossible de définir la valeur par défaut pour le serveur :" msgid "Unable to start backend process." msgstr "" msgid "Unable to upload cupsd.conf file" msgstr "Impossible de transmettre le fichier cupsd.conf :" msgid "Unable to use legacy USB class driver." msgstr "" msgid "Unable to write print data" msgstr "" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "" msgid "Unauthorized" msgstr "Non autorisé" msgid "Units" msgstr "Unités" msgid "Unknown" msgstr "Inconnu" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "" #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "" #, c-format msgid "Unknown file order: \"%s\"." msgstr "" #, c-format msgid "Unknown format character: \"%c\"." msgstr "" msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "" #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "" #, c-format msgid "Unknown option \"%s\"." msgstr "" #, c-format msgid "Unknown print mode: \"%s\"." msgstr "" #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "Paramètre printer-error-policy « %s » inconnu." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "Paramètre printer-op-policy « %s » inconnu." msgid "Unknown request method." msgstr "" msgid "Unknown request version." msgstr "" msgid "Unknown scheme in URI" msgstr "" msgid "Unknown service name." msgstr "" #, c-format msgid "Unknown version option value: \"%s\"." msgstr "" #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "" #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "" msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "" #, c-format msgid "Unsupported character set \"%s\"." msgstr "" #, c-format msgid "Unsupported compression \"%s\"." msgstr "" #, c-format msgid "Unsupported document-format \"%s\"." msgstr "" #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "" #, c-format msgid "Unsupported format \"%s\"." msgstr "" msgid "Unsupported margins." msgstr "" msgid "Unsupported media value." msgstr "" #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" msgid "Unsupported raster data." msgstr "" msgid "Unsupported value type" msgstr "Type de valeur non pris en charge" msgid "Upgrade Required" msgstr "Mise à niveau obligatoire" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "" msgid "Usage: cupsd [options]" msgstr "" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: snmp [host-or-ip-address]" msgstr "" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "La valeur s’avère être de longueur indéfinie" msgid "VarBind uses indefinite length" msgstr "VarBind s’avère être de longueur indéfinie" msgid "Version uses indefinite length" msgstr "La version s’avère être de longueur indéfinie" msgid "Waiting for job to complete." msgstr "" msgid "Waiting for printer to become available." msgstr "" msgid "Waiting for printer to finish." msgstr "" msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "" msgid "Yes" msgstr "Oui" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Vous devez accéder à cette page par l’URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Imprimante pour étiquettes ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "abandonnée" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "annulée" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "terminée" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "L’exécution de « cups-deviced » a échoué." msgid "cups-driverd failed to execute." msgstr "L’exécution de « cups-driverd » a échoué." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" msgid "cupsd: Unable to get current directory." msgstr "" msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "" #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "" #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "" #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "" msgid "cupsfilter: Only one filename can be specified." msgstr "" #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "" msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "" #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "matériel pour %s/%s : %s" #, c-format msgid "device for %s: %s" msgstr "matériel pour %s : %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "Le paramètre error-index s’avère être de longueur indéfinie" msgid "error-status uses indefinite length" msgstr "Le paramètre error-status s’avère être de longueur indéfinie" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "retenue" msgid "help\t\tGet help on commands." msgstr "" msgid "idle" msgstr "inactive" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "" msgid "ippfind: Cannot use --and after --or." msgstr "" #, c-format msgid "ippfind: Expected key name after %s." msgstr "" #, c-format msgid "ippfind: Expected port range after %s." msgstr "" #, c-format msgid "ippfind: Expected program after %s." msgstr "" #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "" msgid "ippfind: Missing close brace in substitution." msgstr "" msgid "ippfind: Missing close parenthesis." msgstr "" msgid "ippfind: Missing expression before \"--and\"." msgstr "" msgid "ippfind: Missing expression before \"--or\"." msgstr "" #, c-format msgid "ippfind: Missing key name after %s." msgstr "" #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "" #, c-format msgid "ippfind: Missing program after %s." msgstr "" #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "" #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "" msgid "ippfind: Out of memory." msgstr "" msgid "ippfind: Too many parenthesis." msgstr "" #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "" msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "" msgid "ipptool: May only specify a single URI." msgstr "" msgid "ipptool: Missing count for \"-n\"." msgstr "" msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "" msgid "ipptool: Missing name=value for \"-d\"." msgstr "" msgid "ipptool: Missing seconds for \"-i\"." msgstr "" msgid "ipptool: URI required before test file." msgstr "" #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "" #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "" #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" msgid "lpadmin: Expected class after \"-r\" option." msgstr "" msgid "lpadmin: Expected class name after \"-c\" option." msgstr "" msgid "lpadmin: Expected description after \"-D\" option." msgstr "" msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "" msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "" msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "" msgid "lpadmin: Expected location after \"-L\" option." msgstr "" msgid "lpadmin: Expected model after \"-m\" option." msgstr "" msgid "lpadmin: Expected name after \"-R\" option." msgstr "" msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "" msgid "lpadmin: Expected printer after \"-p\" option." msgstr "" msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "" msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "" msgid "lpadmin: No member names were seen." msgstr "" #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "" #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "" msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "" msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "" msgid "lpadmin: Unable to create temporary file" msgstr "" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "" #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "" #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "" msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "" msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" msgid "lpinfo: Expected language after \"--language\"." msgstr "" msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "" msgid "lpinfo: Expected product string after \"--product\"." msgstr "" msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "" #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "" msgid "lpoptions: No printers." msgstr "" #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "" msgid "lpoptions: Unknown printer or class." msgstr "" #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "" msgid "no system default destination" msgstr "" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "" #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "" #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "en attente" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "" #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "" #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "" #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "" #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Writing %s." msgstr "" #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "" #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "" #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "" #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "en cours" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "" msgid "request-id uses indefinite length" msgstr "Le paramètre request-id s’avère être de longueur indéfinie" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "" msgid "scheduler is running" msgstr "" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "stat sur %s a échoué : %s" msgid "status\t\tShow status of daemon and queue." msgstr "" #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "arrêtée" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "" #, c-format msgid "system default destination: %s/%s" msgstr "" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "inconnu" msgid "untitled" msgstr "sans titre" msgid "variable-bindings uses indefinite length" msgstr "" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Exporter les imprimantes vers SAMBA" cups-2.4.7/locale/cups_es.po0000644000175000017500000124133714502571342015634 0ustar zdohnalzdohnal# # Spanish message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2016-06-26 21:17+0100\n" "Last-Translator: Juan Pablo González Riopedre \n" "Language-Team: Spanish\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" msgid "\t\t(all)" msgstr "\t\t(todos)" msgid "\t\t(none)" msgstr "\t\t(ninguno)" #, c-format msgid "\t%d entries" msgstr "\t%d entradas" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tTras fallo: continuar" #, c-format msgid "\tAlerts: %s" msgstr "\tAlertas: %s" msgid "\tBanner required" msgstr "\tSe necesita un rótulo" msgid "\tCharset sets:" msgstr "\tJuegos de caracteres:" msgid "\tConnection: direct" msgstr "\tConexión: directa" msgid "\tConnection: remote" msgstr "\tConexión: remota" msgid "\tContent types: any" msgstr "\tTipos de contenido: cualesquiera" msgid "\tDefault page size:" msgstr "\tTamaño de página predeterminado:" msgid "\tDefault pitch:" msgstr "\tPaso predeterminado:" msgid "\tDefault port settings:" msgstr "\tAjustes del puerto predeterminados:" #, c-format msgid "\tDescription: %s" msgstr "\tDescripción: %s" msgid "\tForm mounted:" msgstr "\tFormulario montado:" msgid "\tForms allowed:" msgstr "\tFormularios permitidos:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tInterfaz: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tInterfaz: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tUbicación: %s" msgid "\tOn fault: no alert" msgstr "\tEn fallo: no alertar" msgid "\tPrinter types: unknown" msgstr "\tTipos de impresora: desconocidos" #, c-format msgid "\tStatus: %s" msgstr "\tEstado: %s" msgid "\tUsers allowed:" msgstr "\tUsuarios permitidos:" msgid "\tUsers denied:" msgstr "\tUsuarios denegados:" msgid "\tdaemon present" msgstr "\tdemonio presente" msgid "\tno entries" msgstr "\tno hay entradas" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tla impresora está conectada a '%s' velocidad -1" msgid "\tprinting is disabled" msgstr "\tla impresión está desactivada" msgid "\tprinting is enabled" msgstr "\tla impresión está activada" #, c-format msgid "\tqueued for %s" msgstr "\ten cola para %s" msgid "\tqueuing is disabled" msgstr "\tla cola está desactivada" msgid "\tqueuing is enabled" msgstr "\tla cola está activada" msgid "\treason unknown" msgstr "\trazón desconocida" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " RESULTADOS DETALLADOS DE LA PRUEBA DE CONFORMIDAD" msgid " REF: Page 15, section 3.1." msgstr " REF: Página 15, sección 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Página 15, sección 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Página 19, sección 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Página 20, sección 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Página 27, sección 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Página 42, sección 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Páginas 16-17, sección 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Páginas 42-45, sección 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Páginas 45-46, sección 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Páginas 48-49, sección 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Páginas 52-54, sección 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f bytes" #, c-format msgid " PASS Default%s" msgstr " PASA Default%s" msgid " PASS DefaultImageableArea" msgstr " PASA DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " PASA DefaultPaperDimension" msgid " PASS FileVersion" msgstr " PASA FileVersion" msgid " PASS FormatVersion" msgstr " PASA FormatVersion" msgid " PASS LanguageEncoding" msgstr " PASA LanguageEncoding" msgid " PASS LanguageVersion" msgstr " PASA LanguageVersion" msgid " PASS Manufacturer" msgstr " PASA Manufacturer" msgid " PASS ModelName" msgstr " PASA ModelName" msgid " PASS NickName" msgstr " PASA NickName" msgid " PASS PCFileName" msgstr " PASA PCFileName" msgid " PASS PSVersion" msgstr " PASA PSVersion" msgid " PASS PageRegion" msgstr " PASA PageRegion" msgid " PASS PageSize" msgstr " PASA PageSize" msgid " PASS Product" msgstr " PASA Product" msgid " PASS ShortNickName" msgstr " PASA ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " ADVERTENCIA %s tiene opciones que no corresponden." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " ADVERTENCIA %s comparte un prefijo común con %s\n" " REF: Página 15, sección 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " ADVERTENCIA La clave de opción Duplex %s puede que no funcione " "como se espera y debería llamarse Duplex.\n" " REF: Página 122, sección 5.17." msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " ADVERTENCIA El archivo contiene una mezcla de líneas acabadas en " "CR, LF y CR LF." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " ADVERTENCIA Se necesita LanguageEncoding por especificación de " "PPD 4.3.\n" " REF: Páginas 56-57, sección 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " ADVERTENCIA La línea %d solo contiene espacios en blanco." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " ADVERTENCIA Se necesita fabricante por especificación de PPD " "4.3.\n" " REF: Páginas 58-59, sección 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " ADVERTENCIA Los archivos PPD que no sean de Windows deben tener " "líneas que acaben sólo en LF, no en CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " ADVERTENCIA Versión de PPD %.1f anticuada.\n" " REF: Página 42, sección 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " ADVERTENCIA PCFileName es mas largo que 8.3 violando la " "especificación PPD.\n" " REF: Páginas 61-62, sección 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " ADVERTENCIA PCFileName debe contener un único nombre de archivo.\n" " REF: Páginas 61-62, sección 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " ADVERTENCIA Los protocolos contienen PJL pero no se especifican " "los atributos JCL.\n" " REF: Páginas 78-79, sección 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " ADVERTENCIA Los protocolos contienen a ambos, PJL y BCP; se " "esperaba TBCP.\n" " REF: Páginas 78-79, sección 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " ADVERTENCIA Se necesita ShortNickName por especificación de PPD " "4.3.\n" " REF: Páginas 64-65, sección 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" está en conflicto con \"%s %s\"\n" " (restricción=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s no existe." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s archivo \"%s\" tiene las mayúsculas equivocadas." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s Incorrecto %s preferencia %s.\n" " REF: Página 122, sección 5.17." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s Cadena de traducción UTF-8 \"%s\" incorrecta para opción %s, " "preferencia %s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %s Cadena de traducción UTF-8 \"%s\" incorrecta para opción %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s Valor cupsFilter \"%s\" incorrecto." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s Valor cupsFilter2 \"%s\" incorrecto." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s cupsICCProfile %s incorrecto." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s Valor cupsPreFilter \"%s\" incorrecto." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s cupsUIConstraints %s: \"%s\" incorrecto" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s Idioma incorrecto \"%s\"." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s Permisos incorrectos en el archivo %s \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s %s mal escrito - debería ser %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr " %s No puede proporcionar APScanAppPath y APScanAppBundleID." #, c-format msgid " %s Default choices conflicting." msgstr " %s Las preferencias predeterminadas están en conflicto." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s cupsUIConstraints vacío %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" " %s Falta cadena de traducción \"%s\" para opción %s, preferencia %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s Falta cadena de traducción \"%s\" para opción %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s Falta archivo %s \"%s\"." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s Falta la opción NECESARIA PageRegion.\n" " REF: Página 100, sección 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s Falta la opción NECESARIA PageSize.\n" " REF: Página 99, sección 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" " %s Falta la preferencia *%s %s en UIConstraint \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Falta la preferencia *%s %s en cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s Falta cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Falta la opción %s en UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Falta la opción %s en cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s No hay traducción base \"%s\" incluida en el archivo." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s NECESARIO %s no define la preferencia None.\n" " REF: Página 122, sección 5.17." #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s Tamaño \"%s\" definido para %s pero no para %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s El tamaño \"%s\" tiene dimensiones inesperadas (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s Tamaño \"%s\" debería ser \"%s\"." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" " %s Tamaño \"%s\" debería ser el nombre estandar de Adobe \"%s\"." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s Valor hash de cupsICCProfile %s colisiona con %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s genera un bucle." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr " %s cupsUIResolver %s no lista al menos dos opciones diferentes." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **FALLO** %s debería ser 1284DeviceID.\n" " REF: Página 72, sección 5.5." #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **FALLO** Default%s %s incorrecto\n" " REF: Página 40, sección 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **FALLO** DefaultImageableArea %s incorrecto\n" " REF: Página 102, sección 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **FALLO** DefaultPaperDimension %s incorrecto\n" " REF: Página 103, sección 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FALLO** FileVersion \"%s\" incorrecto\n" " REF: Página 56, sección 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FALLO** FormatVersion \"%s\" incorrecto\n" " REF: Página 56, sección 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **FALLO** Atributo JobPatchFile en archivo, incorrecto\n" " REF: Página 24, sección 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" " **FALLO** LanguageEncoding %s incorrecto: debería ser ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" " **FALLO** LanguageVersion %s incorrecto: debería ser English (Inglés)." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **FALLO** Fabricante incorrecto (debería ser \"%s\")\n" " REF: Página 211, tabla D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FALLO** ModelName incorrecto - \"%c\" no permitido en la cadena.\n" " REF: Páginas 59-60, sección 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FALLO** PSVersion incorrecto - no es \"(string) int\".\n" " REF: Páginas 62-64, sección 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **FALLO** Product incorrecto - no es \"(string)\".\n" " REF: Página 62, sección 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **FALLO** ShortNickName incorrecto - mayor de 31 caracteres.\n" " REF: Páginas 64-65, sección 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **FALLO** Opción incorrecta %s preferencia %s\n" " REF: Página 84, sección 5.9." #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" " **FALLO** El código de opción predeterminado no puede ser " "interpretado: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **FALLO** Cadena de traducción predeterminada para opción %s " "preferencia %s contiene caracteres de 8-bits." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **FALLO** Cadena de traducción predeterminada para opción %s contiene " "caracteres de 8-bits." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" " **FALLO** Nombres de grupo %s y %s se diferencian sólo en la " "capitalización." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" " **FALLO** Múltiples apariciones de opción %s nombre de preferencia %s." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" " **FALLO** Opción %s nombres de preferencia %s y %s se diferencian " "sólo en la capitalización." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" " **FALLO** Nombres de opción %s y %s se diferencian sólo en la " "capitalización." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **FALLO** NECESARIO Default%s\n" " REF: Página 40, sección 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **FALLO** NECESARIO DefaultImageableArea\n" " REF: Página 102, sección 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **FALLO** NECESARIO DefaultPaperDimension\n" " REF: Página 103, sección 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FALLO** NECESARIO FileVersion\n" " REF: Página 56, sección 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FALLO** NECESARIO FormatVersion\n" " REF: Página 56, sección 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **FALLO** NECESARIO ImageableArea para PageSize %s\n" " REF: Página 41, sección 5.\n" " REF: Página 102, sección 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **FALLO** NECESARIO LanguageEncoding\n" " REF: Páginas 56-57, sección 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **FALLO** NECESARIO LanguageVersion\n" " REF: Páginas 57-58, sección 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **FALLO** NECESARIO Manufacturer\n" " REF: Páginas 58-59, sección 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FALLO** NECESARIO ModelName\n" " REF: Páginas 59-60, sección 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **FALLO** NECESARIO NickName\n" " REF: Página 60, sección 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **FALLO** NECESARIO PCFileName\n" " REF: Páginas 61-62, sección 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FALLO** NECESARIO PSVersion\n" " REF: Páginas 62-64, sección 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **FALLO** NECESARIO PageRegion\n" " REF: Página 100, sección 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **FALLO** NECESARIO PageSize\n" " REF: Página 41, sección 5.\n" " REF: Página 99, sección 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **FALLO** NECESARIO PageSize\n" " REF: Páginas 99-100, sección 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **FALLO** NECESARIO PaperDimension para PageSize %s\n" " REF: Página 41, sección 5.\n" " REF: Página 103, sección 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **FALLO** NECESARIO Product\n" " REF: Página 62, sección 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FALLO** NECESARIO ShortNickName\n" " REF: Páginas 64-65, sección 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" " **FALLO** No se ha podido abrir el archivo PPD - %s en la línea %d." #, c-format msgid " %d ERRORS FOUND" msgstr " %d ERRORES ENCONTRADOS" msgid " NO ERRORS FOUND" msgstr " NO SE HAN ENCONTRADO ERRORES" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Finalizar líneas con CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Finalizar líneas con CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf Finalizar líneas con LF (UNIX/Linux/macOS)." msgid " --list-filters List filters that will be used." msgstr " --list-filters Listar los filtros a usar." msgid " -D Remove the input file when finished." msgstr " -D Eliminar el archivo de entrada al terminar." msgid " -D name=value Set named variable to value." msgstr " -D nombre=valor Establece la variable nombre al valor." msgid " -I include-dir Add include directory to search path." msgstr "" " -I include-dir Añade directorio include a la ruta de búsqueda." msgid " -P filename.ppd Set PPD file." msgstr " -P nombre_archivo.ppd Establece archivo PPD." msgid " -U username Specify username." msgstr " -U nombre_usuario Especifica el nombre de usuario." msgid " -c catalog.po Load the specified message catalog." msgstr " -c catálogo.po Carga el catálogo de mensajes especificado." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf Establece el archivo cups-files.conf a usar." msgid " -d output-dir Specify the output directory." msgstr " -d dir-salida Especifica el directorio de salida." msgid " -d printer Use the named printer." msgstr " -d impresora Usa la impresora especificada." msgid " -e Use every filter from the PPD file." msgstr " -e Usa cada filtro desde el archivo PPD." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i tipo/mime Establece el tipo MIME de entrada (si no, auto-" "typed)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j id-trabajo[,N] Filtra el archivo N desde el trabajo especificado " "(predeterminado archivo 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr "" " -l idioma[,idioma,...] Especifica los idiomas de salida (código regional)." msgid " -m Use the ModelName value as the filename." msgstr "" " -m Usa el valor ModelName como nombre de archivo." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m tipo/mime Establece el tipo MIME de salida (si no, " "application/pdf)." msgid " -n copies Set number of copies." msgstr " -n copias Establece el número de copias." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o nombre_archivo.drv Establece el archivo de información del " "controlador (si no, ppdi.drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o nombre_archivo.ppd[.gz] Establece el archivo de salida (si no, stdout)." msgid " -o name=value Set option(s)." msgstr " -o nombre=valor Establece opciones." msgid " -p filename.ppd Set PPD file." msgstr " -p nombre_archivo.ppd Establece archivo PPD." msgid " -t Test PPDs instead of generating them." msgstr " -t Prueba los PPDs en vez de generarlos." msgid " -t title Set title." msgstr " -t título Establece título." msgid " -u Remove the PPD file when finished." msgstr " -u Borra el archivo PPD tras terminar." msgid " -v Be verbose." msgstr " -v Ser detallado." msgid " -z Compress PPD files using GNU zip." msgstr " -z Comprimir archivos PPD usando GNU zip." msgid " FAIL" msgstr " FALLO" msgid " PASS" msgstr " PASA" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f bytes" #, c-format msgid "%d x %d mm" msgstr "%d x %d mm" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (Sin bordes)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (Sin bordes, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (Sin bordes, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s aceptando peticiones desde %s" #, c-format msgid "%s cannot be changed." msgstr "%s no puede ser cambiado." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s no está implementado en la versión de CUPS de lpc." #, c-format msgid "%s is not ready" msgstr "%s no está preparada" #, c-format msgid "%s is ready" msgstr "%s está preparada" #, c-format msgid "%s is ready and printing" msgstr "%s está preparada e imprimiendo" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s job-id usuario título copias opciones [archivo]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s no acepta peticiones desde %s -" #, c-format msgid "%s not supported." msgstr "%s no está implementado." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s aceptando peticiones desde %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s no acepta peticiones desde %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [trabajo %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s ha fallado: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s: URI de impresora \"%s\" no válida." #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: Versión %s incorrecta para \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: No sé que hay que hacer." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: Error - %s nombres de variables de entorno no existen en destino \"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: Error - añada '/version=1.1' al nombre del servidor." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: Error - ID de trabajo incorrecta." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: Error - no se pueden imprimir archivos y alterar trabajos al mismo " "tiempo." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: Error - no se puede imprimir desde stdin si se proporcionan archivos o " "una ID de trabajo." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "%s: Error - número de copias debe ser 1 o más." #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: Error - se esperaba un juego de caracteres tras la opción \"-S\"." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: Error - se esperaba un tipo de contenido tras la opción \"-T\"." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: Error - se esperaba número de copias tras la opción \"-#\"." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: Error - se esperaba número de copias tras la opción \"-n\"." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: Error - se esperaba un destino tras la opción \"-P\"." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: Error - se esperaba un destino tras la opción \"-d\"." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: Error - se esperaba un formulario tras la opción \"-f\"." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: Error - se esperaba un nombre de retención tras la opción \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: Error - se esperaba un nombre de equipo tras la opción \"-H\"." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: Error - se esperaba un nombre de equipo tras la opción \"-h\"." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: Error - se esperaba una lista de modos tras la opción \"-y\"." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: Error - se esperaba un nombre tras la opción \"-%c\"." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: Error - se esperaba opción=valor tras la opción \"-o\"." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: Error - se esperaba una lista de páginas tras la opción \"-P\"." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: Error - se esperaba un valor de prioridad tras la opción \"-%c\"." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: Error - se esperaba un texto con una razón tras la opción \"-r\"." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: Error - se esperaba un título tras la opción \"-t\"." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: Error - se esperaba un nombre de usuario tras la opción \"-U\"." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: Error - se esperaba un nombre de usuario tras la opción \"-u\"." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: Error - se esperaba un valor tras la opción \"-%c\"." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: Error - se necesita \"completed\", \"not completed\", o \"all\" tras la " "opción \"-W\"." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: Error - destino predeterminado no disponible." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: Error - la prioridad debe estar entre 1 y 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: Error - el programa planificador de tareas no responde." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: Error - demasiados archivos - \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: Error - no se ha podido acceder a \"%s\" - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: Error - no se ha podido poner en cola desde stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: Error - destino \"%s\" desconocido." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: Error - destino \"%s/%s\" desconocido." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: Error - opción \"%c\" desconocida." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: Error - opción \"%s\" desconocida." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: Se esperaba una ID de trabajo tras la opción \"-i\"." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: Nombre de destino no válido en la lista \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: Cadena de filtro \"%s\" no válida." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: Falta el nombre del archivo para \"-P\"." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: Falta el tiempo de espera para \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: Falta la versión para \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" "%s: Se necesita un ID de trabajo (\"-i id_trabajo\") antes de \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: No hay ningún filtro para convertir de %s/%s a %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: La operación ha fallado: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: Lo siento, no está implementado el cifrado." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s: No se ha podido conectar a \"%s:%d\": %s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: No se ha podido conectar al servidor." #, c-format msgid "%s: Unable to contact server." msgstr "%s: No se ha podido contactar con el servidor." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s: No se ha podido crear el archivo PPD: %s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: No se ha podido determinar el tipo MIME de \"%s\"." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: No se pudo abrir \"%s\": %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: No se pudo abrir %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: No se ha podido abrir el archivo PPD: %s en la línea %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: No se pudo leer base de datos MIME desde \"%s\" o \"%s\"." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s: No se ha podido resolver \"%s\"." #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "%s: Argumento \"%s\" desconocido." #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: Destino \"%s\" desconocido." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: Tipo MIME de destino %s/%s desconocido." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: Opción \"%c\" desconocida." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: Opción \"%s\" desconocida." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: Opción \"-%c\" desconocida." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: Tipo MIME de origen %s/%s desconocido." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: Advertencia - no se admite el uso del modificador de formato \"%c\" - la " "salida puede no ser correcta." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: Advertencia - opción de juego de caracteres no tenida en cuenta." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: Advertencia - opción de tipo de contenido no tenida en cuenta." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: Advertencia - opción de formulario no tenida en cuenta." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: Advertencia - opción de modo no tenida en cuenta." msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 pulg./seg" msgid "1.25x0.25\"" msgstr "1.25x0.25 pulg." msgid "1.25x2.25\"" msgstr "1.25x2.25 pulg." msgid "1.5 inch/sec." msgstr "1.5 pulg./seg" msgid "1.50x0.25\"" msgstr "1.50x0.25 pulg." msgid "1.50x0.50\"" msgstr "1.50x0.50 pulg." msgid "1.50x1.00\"" msgstr "1.50x1.00 pulg." msgid "1.50x2.00\"" msgstr "1.50x2.00 pulg." msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 pulg./seg" msgid "10 x 11" msgstr "10 x 11" msgid "10 x 13" msgstr "10 x 13" msgid "10 x 14" msgstr "10 x 14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/seg" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 pulg./seg" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 pulg./seg" msgid "12 x 11" msgstr "12 x 11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/seg" msgid "120x60dpi" msgstr "120x60ppp" msgid "120x72dpi" msgstr "120x72ppp" msgid "13" msgstr "13" msgid "136dpi" msgstr "136ppp" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/seg" msgid "15 x 11" msgstr "15 x 11" msgid "150 mm/sec." msgstr "150 mm/seg" msgid "150dpi" msgstr "150ppp" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180ppp" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 pulg./seg" msgid "2-Sided Printing" msgstr "Dúplex" msgid "2.00x0.37\"" msgstr "2.00x0.37 pulg." msgid "2.00x0.50\"" msgstr "2.00x0.50 pulg." msgid "2.00x1.00\"" msgstr "2.00x1.00 pulg." msgid "2.00x1.25\"" msgstr "2.00x1.25 pulg." msgid "2.00x2.00\"" msgstr "2.00x2.00 pulg." msgid "2.00x3.00\"" msgstr "2.00x3.00 pulg." msgid "2.00x4.00\"" msgstr "2.00x4.00 pulg." msgid "2.00x5.50\"" msgstr "2.00x5.50 pulg." msgid "2.25x0.50\"" msgstr "2.25x0.50 pulg." msgid "2.25x1.25\"" msgstr "2.25x1.25 pulg." msgid "2.25x4.00\"" msgstr "2.25x4.00 pulg." msgid "2.25x5.50\"" msgstr "2.25x5.50 pulg." msgid "2.38x5.50\"" msgstr "2.38x5.50 pulg." msgid "2.5 inches/sec." msgstr "2.5 pulg./seg" msgid "2.50x1.00\"" msgstr "2.50x1.00 pulg." msgid "2.50x2.00\"" msgstr "2.50x2.00 pulg." msgid "2.75x1.25\"" msgstr "2.75x1.25 pulg." msgid "2.9 x 1\"" msgstr "2.9 x 1 pulg." msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/seg" msgid "200 mm/sec." msgstr "200 mm/seg" msgid "203dpi" msgstr "203ppp" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24-Pin Series" msgid "240x72dpi" msgstr "240x72ppp" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/seg" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 pulg./seg" msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00 pulg." msgid "3.00x1.25\"" msgstr "3.00x1.25 pulg." msgid "3.00x2.00\"" msgstr "3.00x2.00 pulg." msgid "3.00x3.00\"" msgstr "3.00x3.00 pulg." msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00 pulg." msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00 pulg." msgid "3.25x5.00\"" msgstr "3.25x5.00 pulg." msgid "3.25x5.50\"" msgstr "3.25x5.50 pulg." msgid "3.25x5.83\"" msgstr "3.25x5.83 pulg." msgid "3.25x7.83\"" msgstr "3.25x7.83 pulg." msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "Disco de 3.5 pulg." msgid "3.50x1.00\"" msgstr "3.50x1.00 pulg." msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/seg" msgid "300 mm/sec." msgstr "300 mm/seg" msgid "300dpi" msgstr "300ppp" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360ppp" msgid "360x180dpi" msgstr "360x180ppp" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 pulg./seg" msgid "4.00x1.00\"" msgstr "4.00x1.00 pulg." msgid "4.00x13.00\"" msgstr "4.00x13.00 pulg." msgid "4.00x2.00\"" msgstr "4.00x2.00 pulg." msgid "4.00x2.50\"" msgstr "4.00x2.50 pulg." msgid "4.00x3.00\"" msgstr "4.00x3.00 pulg." msgid "4.00x4.00\"" msgstr "4.00x4.00 pulg." msgid "4.00x5.00\"" msgstr "4.00x5.00 pulg." msgid "4.00x6.00\"" msgstr "4.00x6.00 pulg." msgid "4.00x6.50\"" msgstr "4.00x6.50 pulg." msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/seg" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 pulg./seg" msgid "5 x 7" msgstr "5 x 7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 pulg./seg" msgid "6.00x1.00\"" msgstr "6.00x1.00 pulg." msgid "6.00x2.00\"" msgstr "6.00x2.00 pulg." msgid "6.00x3.00\"" msgstr "6.00x3.00 pulg." msgid "6.00x4.00\"" msgstr "6.00x4.00 pulg." msgid "6.00x5.00\"" msgstr "6.00x5.00 pulg." msgid "6.00x6.00\"" msgstr "6.00x6.00 pulg." msgid "6.00x6.50\"" msgstr "6.00x6.50 pulg." msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/seg" msgid "600dpi" msgstr "600ppp" msgid "60dpi" msgstr "60ppp" msgid "60x72dpi" msgstr "60x72ppp" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 pulg./seg" msgid "7 x 9" msgstr "7 x 9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 pulg./seg" msgid "8 x 10" msgstr "8 x 10" msgid "8.00x1.00\"" msgstr "8.00x1.00 pulg." msgid "8.00x2.00\"" msgstr "8.00x2.00 pulg." msgid "8.00x3.00\"" msgstr "8.00x3.00 pulg." msgid "8.00x4.00\"" msgstr "8.00x4.00 pulg." msgid "8.00x5.00\"" msgstr "8.00x5.00 pulg." msgid "8.00x6.00\"" msgstr "8.00x6.00 pulg." msgid "8.00x6.50\"" msgstr "8.00x6.50 pulg." msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/seg" msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 pulg./seg" msgid "9 x 11" msgstr "9 x 11" msgid "9 x 12" msgstr "9 x 12" msgid "9-Pin Series" msgstr "9-Pin Series" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Comando de ayuda no válido desconocido." #, c-format msgid "A class named \"%s\" already exists." msgstr "Ya existe una clase llamada \"%s\"." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Ya existe una impresora llamada \"%s\"." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 lado largo" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 lado largo" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 lado largo" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 lado largo" msgid "A3 Oversize" msgstr "A3 Extragrande" msgid "A3 Oversize Long Edge" msgstr "A3 Extragrande lado largo" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 lado largo" msgid "A4 Oversize" msgstr "A4 Extragrande" msgid "A4 Small" msgstr "A4 Pequeño" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 lado largo" msgid "A5 Oversize" msgstr "A5 Extragrande" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 lado largo" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C lado largo" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D lado largo" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E lado largo" msgid "Accept Jobs" msgstr "Aceptar trabajos" msgid "Accepted" msgstr "Aceptado" msgid "Add Class" msgstr "Añadir clase" msgid "Add Printer" msgstr "Añadir impresora" msgid "Address" msgstr "Dirección" msgid "Administration" msgstr "Administración" msgid "Always" msgstr "Siempre" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Aplicador" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" "Se ha intentado cambiar el valor printer-state de %s a un valor incorrecto " "%d." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "El atributo \"%s\" está en el grupo equivocado." #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "El atributo \"%s\" es el tipo de valor equivocado." #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Los grupos de atributos están desordenados (%x < %x)." msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "A5 Extragrande" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "Valor 'document-format' \"%s\" incorrecto." msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Puntero destino NULLincorrecto" msgid "Bad OpenGroup" msgstr "OpenGroup incorrecto" msgid "Bad OpenUI/JCLOpenUI" msgstr "OpenUI/JCLOpenUI incorrecto" msgid "Bad OrderDependency" msgstr "OrderDependency incorrecto" msgid "Bad PPD cache file." msgstr "Archivo de caché PPD incorrecto." msgid "Bad PPD file." msgstr "Archivo PPD incorrecto." msgid "Bad Request" msgstr "Petición incorrecta" msgid "Bad SNMP version number" msgstr "Número de versión SNMP incorrecto" msgid "Bad UIConstraints" msgstr "UIConstraints incorrecto" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "Argumentos de la función incorrectos" #, c-format msgid "Bad copies value %d." msgstr "Valor de copias %d incorrecto." msgid "Bad custom parameter" msgstr "Parámetro a medida incorrecto" #, c-format msgid "Bad device-uri \"%s\"." msgstr "device-uri \"%s\" incorrecto." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Esquema device-uri \"%s\" incorrecto." #, c-format msgid "Bad document-format \"%s\"." msgstr "document-format \"%s\" incorrecto." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "document-format-default \"%s\" incorrecto." msgid "Bad filename buffer" msgstr "Nombre de archivo del búfer incorrecto" msgid "Bad hostname/address in URI" msgstr "Nombre de equipo/dirección incorrecto en la URI" #, c-format msgid "Bad job-name value: %s" msgstr "Valor job-name incorrecto: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Valor job-name incorrecto: tipo o contador equivocado." msgid "Bad job-priority value." msgstr "Valor job-priority incorrecto." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Valor de job-sheets \"%s\" incorrecto." msgid "Bad job-sheets value type." msgstr "Tipo de valor de job-sheets incorrecto." msgid "Bad job-state value." msgstr "Valor job-state incorrecto." #, c-format msgid "Bad job-uri \"%s\"." msgstr "job-uri \"%s\" incorrecto." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "notify-pull-method \"%s\" incorrecto." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "notify-recipient-uri \"%s\" incorrecto." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Valor number-up (páginas por hoja) %d incorrecto." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Valores de page-ranges %d-%d incorrectos." msgid "Bad port number in URI" msgstr "Número de puerto incorrecto en URI" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "port-monitor \"%s\" incorrecto." #, c-format msgid "Bad printer-state value %d." msgstr "Valor printer-state %d incorrecto." msgid "Bad printer-uri." msgstr "printer-uri incorrecto." #, c-format msgid "Bad request ID %d." msgstr "Petición incorrecta de ID %d." #, c-format msgid "Bad request version number %d.%d." msgstr "Petición incorrecta de número de versión %d.%d." msgid "Bad resource in URI" msgstr "Recurso incorrecto en URI" msgid "Bad scheme in URI" msgstr "Esquema incorrecto en URI" msgid "Bad username in URI" msgstr "Nombre de usuario incorrecto en URI" msgid "Bad value string" msgstr "Cadena de valores incorrecta" msgid "Bad/empty URI" msgstr "URI incorrecta/vacía" msgid "Banners" msgstr "Rótulos" msgid "Bond Paper" msgstr "Papel de cartas" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "Se esperaba un valor lógico para la opción waiteof \"%s\"." msgid "Buffer overflow detected, aborting." msgstr "Se ha detectado un desbordamiento de buffer, cancelando." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "Impresora de etiquetas CPCL" msgid "Cancel Jobs" msgstr "Cancelar trabajos" msgid "Canceling print job." msgstr "Cancelando trabajo de impresión." msgid "Cannot change printer-is-shared for remote queues." msgstr "No se ha podido cambiar printer-is-shared para colas remotas" msgid "Cannot share a remote Kerberized printer." msgstr "No se puede compartir una impresora remota Kerberizada." msgid "Cassette" msgstr "Casete" msgid "Change Settings" msgstr "Cambiar configuración" #, c-format msgid "Character set \"%s\" not supported." msgstr "No se admite el juego de caracteres \"%s\"." msgid "Classes" msgstr "Clases" msgid "Clean Print Heads" msgstr "Limpiar cabezales de impresión" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job no admite el atributo job-uri." msgid "Color" msgstr "Color" msgid "Color Mode" msgstr "Modo de color" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Los comandos se pueden abreviar. Los comandos son:exit help quit " "status ?" msgid "Community name uses indefinite length" msgstr "Nombre de comunidad usa una longitud indefinida" msgid "Connected to printer." msgstr "Conectado a la impresora." msgid "Connecting to printer." msgstr "Conectando a la impresora." msgid "Continue" msgstr "Continuar" msgid "Continuous" msgstr "Continuo" msgid "Control file sent successfully." msgstr "Archivo de control enviado correctamente." msgid "Copying print data." msgstr "Copiando datos de impresión." msgid "Created" msgstr "Creado" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "A medida" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Cortar" msgid "Cutter" msgstr "Cortadora" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Oscuro" msgid "Darkness" msgstr "Oscuridad" msgid "Data file sent successfully." msgstr "Archivo de datos enviado correctamente." msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Borrar clase" msgid "Delete Printer" msgstr "Borrar impresora" msgid "DeskJet Series" msgstr "DeskJet Series" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "El destino %s no acepta trabajos." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Dispositivo: uri = %s\n" " clase = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " ubicación: %s" msgid "Direct Thermal Media" msgstr "Soporte térmico directo" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "El directorio \"%s\" contiene una ruta relativa." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "El directorio \"%s\" tiene permisos no seguros (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "El directorio \"%s\" es un archivo." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Directorio \"%s\" no disponible: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Permisos del directorio \"%s\" OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Deshabilitado" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "El documento #%d no existe en el trabajo #%d." msgid "Draft" msgstr "Borrador" msgid "Duplexer" msgstr "Unidad de impresión dúplex" msgid "EPL1 Label Printer" msgstr "Impresora de etiquetas EPL1" msgid "EPL2 Label Printer" msgstr "Impresora de etiquetas EPL2" msgid "Edit Configuration File" msgstr "Editar archivo de configuración" msgid "Encryption is not supported." msgstr "El cifrado no está implementado." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Rótulo final" msgid "English" msgstr "Spanish" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Introduzca su nombre de usuario y contraseña o el nombre de usuario y " "contraseña de root para poder acceder a esta página. Si está usando " "autentificación Kerberos, asegúrese de que tiene un ticket Kerberos válido." msgid "Envelope #10" msgstr "Sobre #10" msgid "Envelope #11" msgstr "Sobre #11" msgid "Envelope #12" msgstr "Sobre #12" msgid "Envelope #14" msgstr "Sobre #14" msgid "Envelope #9" msgstr "Sobre #9" msgid "Envelope B4" msgstr "Sobre B4" msgid "Envelope B5" msgstr "Sobre B5" msgid "Envelope B6" msgstr "Sobre B6" msgid "Envelope C0" msgstr "Sobre C0" msgid "Envelope C1" msgstr "Sobre C1" msgid "Envelope C2" msgstr "Sobre C2" msgid "Envelope C3" msgstr "Sobre C3" msgid "Envelope C4" msgstr "Sobre C4" msgid "Envelope C5" msgstr "Sobre C5" msgid "Envelope C6" msgstr "Sobre C6" msgid "Envelope C65" msgstr "Sobre C65" msgid "Envelope C7" msgstr "Sobre C7" msgid "Envelope Choukei 3" msgstr "Sobre Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Sobre Choukei 3 lado largo" msgid "Envelope Choukei 4" msgstr "Sobre Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Sobre Choukei 4 lado largo" msgid "Envelope DL" msgstr "Sobre DL" msgid "Envelope Feed" msgstr "Alimentador de sobre" msgid "Envelope Invite" msgstr "Sobre Invitación" msgid "Envelope Italian" msgstr "Sobre Italiano" msgid "Envelope Kaku2" msgstr "Sobre Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Sobre Kaku2 lado largo" msgid "Envelope Kaku3" msgstr "Sobre Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Sobre Kaku3 lado largo" msgid "Envelope Monarch" msgstr "Sobre Monarch" msgid "Envelope PRC1" msgstr "Sobre PRC1" msgid "Envelope PRC1 Long Edge" msgstr "Sobre PRC1 lado largo" msgid "Envelope PRC10" msgstr "Sobre PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Sobre PRC10 lado largo" msgid "Envelope PRC2" msgstr "Sobre PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Sobre PRC2 lado largo" msgid "Envelope PRC3" msgstr "Sobre PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Sobre PRC3 lado largo" msgid "Envelope PRC4" msgstr "Sobre PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Sobre PRC4 lado largo" msgid "Envelope PRC5 Long Edge" msgstr "Sobre PRC5 lado largo" msgid "Envelope PRC5PRC5" msgstr "Sobre PRC5PRC5" msgid "Envelope PRC6" msgstr "Sobre PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Sobre PRC6 lado largo" msgid "Envelope PRC7" msgstr "Sobre PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Sobre PRC7 lado largo" msgid "Envelope PRC8" msgstr "Sobre PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Sobre PRC8 lado largo" msgid "Envelope PRC9" msgstr "Sobre PRC9" msgid "Envelope PRC9 Long Edge" msgstr "Sobre PRC9 lado largo" msgid "Envelope Personal" msgstr "Sobre Personal" msgid "Envelope You4" msgstr "Sobre You4" msgid "Envelope You4 Long Edge" msgstr "Sobre You4 lado largo" msgid "Environment Variables:" msgstr "Variables de entorno:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Directiva de error" msgid "Error reading raster data." msgstr "Error leyendo trama de datos (raster)." msgid "Error sending raster data." msgstr "Error enviando trama de datos (raster)." msgid "Error: need hostname after \"-h\" option." msgstr "Error: se necesita un nombre de equipo tras la opción \"-h\"." msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Cada 10 etiquetas" msgid "Every 2 Labels" msgstr "Cada 2 etiquetas" msgid "Every 3 Labels" msgstr "Cada 3 etiquetas" msgid "Every 4 Labels" msgstr "Cada 4 etiquetas" msgid "Every 5 Labels" msgstr "Cada 5 etiquetas" msgid "Every 6 Labels" msgstr "Cada 6 etiquetas" msgid "Every 7 Labels" msgstr "Cada 7 etiquetas" msgid "Every 8 Labels" msgstr "Cada 8 etiquetas" msgid "Every 9 Labels" msgstr "Cada 9 etiquetas" msgid "Every Label" msgstr "Cada etiqueta" msgid "Executive" msgstr "Ejecutivo" msgid "Expectation Failed" msgstr "Lo que se esperaba, falló." msgid "Expressions:" msgstr "Expresiones:" msgid "Fast Grayscale" msgstr "Escala de grises rápida" #, c-format msgid "File \"%s\" contains a relative path." msgstr "El archivo \"%s\" contiene una ruta relativa." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "El archivo \"%s\" tiene permisos no seguros (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "El archivo \"%s\" es un directorio." #, c-format msgid "File \"%s\" not available: %s" msgstr "Archivo \"%s\" no disponible: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Permisos del archivo \"%s\" OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "Carpeta de archivo" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "Los URIs del dispositivo de archivo han sido deshabilitados. Para " "habilitarlos, vea la directiva FileDevice en \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Acabada la página %d." msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "Plegado" msgid "Folio" msgstr "Folio" msgid "Forbidden" msgstr "Prohibido" msgid "Found" msgstr "" msgid "General" msgstr "General" msgid "Generic" msgstr "Genérico" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU usa una longitud indefinida" msgid "Glossy Paper" msgstr "Papel brillante" msgid "Got a printer-uri attribute but no job-id." msgstr "Se ha obtenido el atributo printer-uri pero no el job-id." msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Escale de grises" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Carpeta colgante" msgid "Hash buffer too small." msgstr "Memoria temporal hash demasiado pequeña." msgid "Help file not in index." msgstr "El archivo de ayuda no está en el índice." msgid "High" msgstr "Alta" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "Atributo IPP 1setOf con etiquetas de valor incompatibles." msgid "IPP attribute has no name." msgstr "Atributo IPP sin nombre." msgid "IPP attribute is not a member of the message." msgstr "El atributo IPP no es un miembro del mensaje." msgid "IPP begCollection value not 0 bytes." msgstr "IPP el valor begCollection no es de 0 bytes." msgid "IPP boolean value not 1 byte." msgstr "IPP el valor lógico no es de 1 byte." msgid "IPP date value not 11 bytes." msgstr "IPP el valor de fecha no es de 11 bytes." msgid "IPP endCollection value not 0 bytes." msgstr "IPP el valor endCollection no es de 0 bytes." msgid "IPP enum value not 4 bytes." msgstr "IPP el valor enum no es de 4 bytes." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP etiqueta de extensión mayor de 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "IPP el valor entero no es de 4 bytes." msgid "IPP language length overflows value." msgstr "IPP la longitud del idioma sobrepasa el valor." msgid "IPP language length too large." msgstr "Longitud de idioma IPP demasiado larga." msgid "IPP member name is not empty." msgstr "IPP el nombre del miembro no está vacío." msgid "IPP memberName value is empty." msgstr "IPP el valor memberName está vacío." msgid "IPP memberName with no attribute." msgstr "IPP memberName sin atributo." msgid "IPP name larger than 32767 bytes." msgstr "IPP nombre mayor de 32767 bytes." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP el valor nameWithLanguage menor del mínimo de 4 bytes." msgid "IPP octetString length too large." msgstr "Longitud de IPP octetString demasiado larga." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP el valor rangeOfInteger no es de 8 bytes." msgid "IPP resolution value not 9 bytes." msgstr "IPP el valor de la resolución no es de 9 bytes." msgid "IPP string length overflows value." msgstr "IPP la longitud de la cadena sobrepasa el valor." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP el valor textWithLanguage menor del mínimo de 4 bytes." msgid "IPP value larger than 32767 bytes." msgstr "IPP valor mayor de 32767 bytes." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Carácter de control ilegal" msgid "Illegal main keyword string" msgstr "Cadena de clave principal ilegal" msgid "Illegal option keyword string" msgstr "Cadena de clave de opción ilegal" msgid "Illegal translation string" msgstr "Cadena de traducción ilegal" msgid "Illegal whitespace character" msgstr "Carácter de espacio en blanco ilegal" msgid "Installable Options" msgstr "Opciones instalables" msgid "Installed" msgstr "Instalada" msgid "IntelliBar Label Printer" msgstr "Impresora de etiquetas IntelliBar" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Error interno del servidor" msgid "Internal error" msgstr "Error interno" msgid "Internet Postage 2-Part" msgstr "Correo por Internet Parte-2" msgid "Internet Postage 3-Part" msgstr "Correo por Internet Parte-3" msgid "Internet Printing Protocol" msgstr "Protocolo de Impresión de Internet IPP" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "Argumentos del nombre del papel no válidos." msgid "Invalid media size." msgstr "Tamaño de papel no válido." msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "Valor ppd-name' no válido." #, c-format msgid "Invalid printer command \"%s\"." msgstr "Comando de impresora \"%s\" no válido." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 lado largo" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 lado largo" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 lado largo" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "El trabajo #%d no puede ser reiniciado - no hay archivos." #, c-format msgid "Job #%d does not exist." msgstr "El trabajo #%d no existe." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "El trabajo #%d ya está anulado - no se puede cancelar." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "El trabajo #%d ya está cancelado - no se puede cancelar." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "El trabajo #%d ya ha sido completado - no se puede cancelar." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "El trabajo #%d ha terminado y no puede ser modificado." #, c-format msgid "Job #%d is not complete." msgstr "El trabajo #%d no ha sido completado." #, c-format msgid "Job #%d is not held for authentication." msgstr "El trabajo #%d no está retenido para autentificación." #, c-format msgid "Job #%d is not held." msgstr "El trabajo #%d no está retenido." msgid "Job Completed" msgstr "Trabajo completado" msgid "Job Created" msgstr "Trabajo creado" msgid "Job Options Changed" msgstr "Opciones de trabajo cambiadas" msgid "Job Stopped" msgstr "Trabajo detenido" msgid "Job is completed and cannot be changed." msgstr "El trabajo está terminado y no puede ser cambiado." msgid "Job operation failed" msgstr "La operación del trabajo ha fallado" msgid "Job state cannot be changed." msgstr "No se puede cambiar el estado del trabajo." msgid "Job subscriptions cannot be renewed." msgstr "Las suscripciones de trabajos no han podido ser renovadas." msgid "Jobs" msgstr "Trabajos" msgid "LPD/LPR Host or Printer" msgstr "Equipo o impresora LPD/LPR" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Impresora de etiquetas" msgid "Label Top" msgstr "Parte superior de la etiqueta" #, c-format msgid "Language \"%s\" not supported." msgstr "No se admite el uso del idioma \"%s\"." msgid "Large Address" msgstr "Dirección grande" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Series PCL 4/5" msgid "Letter Oversize" msgstr "Carta Extragrande" msgid "Letter Oversize Long Edge" msgstr "Carta Extragrande lado largo" msgid "Light" msgstr "Ligero" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Línea más larga que el máximo permitido (255 caracteres)" msgid "List Available Printers" msgstr "Listar impresoras disponibles" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "Impresora creada localmente." msgid "Long-Edge (Portrait)" msgstr "Lado largo (retrato)" msgid "Looking for printer." msgstr "" msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Alimentación manual" msgid "Media Size" msgstr "Tamaño de papel" msgid "Media Source" msgstr "Fuente del papel" msgid "Media Tracking" msgstr "Seguimiento del medio" msgid "Media Type" msgstr "Tipo de papel" msgid "Medium" msgstr "Media" msgid "Memory allocation error" msgstr "Error de reserva de memoria" msgid "Missing CloseGroup" msgstr "Falta CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Falta cabecera PPD-Adobe-4.x" msgid "Missing asterisk in column 1" msgstr "Falta un asterisco en la columna 1" msgid "Missing document-number attribute." msgstr "Falta el atributo document-number." msgid "Missing form variable" msgstr "Falta una variable de formulario" msgid "Missing last-document attribute in request." msgstr "Falta el atributo last-document en la petición." msgid "Missing media or media-col." msgstr "Falta media o media-col." msgid "Missing media-size in media-col." msgstr "Falta media-size en media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Falta el atributo notify-subscription-ids." msgid "Missing option keyword" msgstr "Falta cadena de clave de opción" msgid "Missing requesting-user-name attribute." msgstr "Falta el atributo requesting-user-name." #, c-format msgid "Missing required attribute \"%s\"." msgstr "Falta atributo necesario \"%s\"." msgid "Missing required attributes." msgstr "Faltan atributos necesarios." msgid "Missing resource in URI" msgstr "Falta recurso en URI" msgid "Missing scheme in URI" msgstr "Falta esquema en URI" msgid "Missing value string" msgstr "Falta cadena de valores" msgid "Missing x-dimension in media-size." msgstr "Falta x-dimension en media-size." msgid "Missing y-dimension in media-size." msgstr "Falta y-dimension en media-size." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Modelo: nombre = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgid "Modifiers:" msgstr "Modificadores:" msgid "Modify Class" msgstr "Modificar clase" msgid "Modify Printer" msgstr "Modificar impresora" msgid "Move All Jobs" msgstr "Mover todos los trabajos" msgid "Move Job" msgstr "Mover trabajo" msgid "Moved Permanently" msgstr "Movido permanentemente" msgid "NULL PPD file pointer" msgstr "Puntero de archivo PPD NULO" msgid "Name OID uses indefinite length" msgstr "Nombre OID usa una longitud indefinida" msgid "Nested classes are not allowed." msgstr "No se permiten clases anidadas." msgid "Never" msgstr "Nunca" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "No" msgid "No Content" msgstr "No hay contenido" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "No hay nombre de PPD" msgid "No VarBind SEQUENCE" msgstr "No hay Varbind SEQUENCE" msgid "No active connection" msgstr "No hay conexión activa" msgid "No active connection." msgstr "No hay conexión activa." #, c-format msgid "No active jobs on %s." msgstr "No hay trabajos activos en %s." msgid "No attributes in request." msgstr "No hay atributos en la solicitud." msgid "No authentication information provided." msgstr "No se ha proporcionado información de autentificación." msgid "No common name specified." msgstr "" msgid "No community name" msgstr "No hay nombre de comunidad" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "No hay impresora predeterminada." msgid "No destinations added." msgstr "No se han añadido destinos." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "No se ha encontrado el URI del dispositivo en argv[0] o en la variable de " "entorno DEVICE_URI." msgid "No error-index" msgstr "No hay error-index" msgid "No error-status" msgstr "No hay error-status" msgid "No file in print request." msgstr "No hay ningún archivo en la solicitud de impresión." msgid "No modification time" msgstr "No hay tiempo de modificación" msgid "No name OID" msgstr "No hay nombre OID" msgid "No pages were found." msgstr "No se han encontrado páginas." msgid "No printer name" msgstr "No hay nombre de impresora" msgid "No printer-uri found" msgstr "No se encontró printer-uri" msgid "No printer-uri found for class" msgstr "No se encontró printer-uri para la clase" msgid "No printer-uri in request." msgstr "No hay printer-uri en la solicitud." msgid "No request URI." msgstr "No se ha solicitado URI." msgid "No request protocol version." msgstr "No se ha solicitado versión del protocolo." msgid "No request sent." msgstr "No se ha enviado solicitud." msgid "No request-id" msgstr "No hay request-id" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "No hay atributos de subscripción en la solicitud." msgid "No subscriptions found." msgstr "No se han encontrado subscripciones." msgid "No variable-bindings SEQUENCE" msgstr "No hay variable-bindings SEQUENCE" msgid "No version number" msgstr "No hay número de versión" msgid "Non-continuous (Mark sensing)" msgstr "No continuo (sensible a señal)" msgid "Non-continuous (Web sensing)" msgstr "No continuo (sensible a web)" msgid "None" msgstr "" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "No encontrado" msgid "Not Implemented" msgstr "No implementado" msgid "Not Installed" msgstr "No instalado" msgid "Not Modified" msgstr "No modificado" msgid "Not Supported" msgstr "No implementado" msgid "Not allowed to print." msgstr "No se permite imprimir." msgid "Note" msgstr "Nota" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Desactivado (1 cara)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Ayuda en línea" msgid "Only local users can create a local printer." msgstr "Sólo usuarios locales pueden crear una impresora local." #, c-format msgid "Open of %s failed: %s" msgstr "La apertura de %s ha fallado: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup sin un CloseGroup previo" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI sin un CloseUI/JCLCloseUI previo" msgid "Operation Policy" msgstr "Directiva de operación" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "La opción \"%s\" no puede incluirse via %%%%IncludeFeature." msgid "Options Installed" msgstr "Opciones instaladas" msgid "Options:" msgstr "Opciones:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "Archivo de caché PPD obsoleto." msgid "Out of memory." msgstr "Sin memoria." msgid "Output Mode" msgstr "Modo de salida" msgid "PCL Laser Printer" msgstr "Impresora Laser PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K lado largo" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K lado largo" msgid "PRC32K Oversize" msgstr "PRC32K Extragrande" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K Extragrande lado largo" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "El paquete no contiene un Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "El paquete no empieza por SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "¿Contraseña de %s en %s? " msgid "Pause Class" msgstr "Pausar clase" msgid "Pause Printer" msgstr "Pausar impresora" msgid "Peel-Off" msgstr "Despegar" msgid "Photo" msgstr "Foto" msgid "Photo Labels" msgstr "Foto pequeña" msgid "Plain Paper" msgstr "Papel normal" msgid "Policies" msgstr "Reglas" msgid "Port Monitor" msgstr "Monitor de puerto" msgid "PostScript Printer" msgstr "Impresora PostScript" msgid "Postcard" msgstr "Postal" msgid "Postcard Double" msgstr "Postal doble" msgid "Postcard Double Long Edge" msgstr "Postal doble lado largo" msgid "Postcard Long Edge" msgstr "Postal lado largo" msgid "Preparing to print." msgstr "Preparando la impresión." msgid "Print Density" msgstr "Densidad de impresión" msgid "Print Job:" msgstr "Imprimir trabajo:" msgid "Print Mode" msgstr "Modo de impresión" msgid "Print Quality" msgstr "Calidad de impresión" msgid "Print Rate" msgstr "Tasa de impresión" msgid "Print Self-Test Page" msgstr "Imprimir página de auto-prueba" msgid "Print Speed" msgstr "Velocidad de impresión" msgid "Print Test Page" msgstr "Imprimir página de prueba" msgid "Print and Cut" msgstr "Imprimir y cortar" msgid "Print and Tear" msgstr "Imprimir y romper" msgid "Print file sent." msgstr "Archivo de impresión enviado." msgid "Print job canceled at printer." msgstr "Trabajo de impresión cancelado en la impresora." msgid "Print job too large." msgstr "Trabajo de impresión demasiado grande." msgid "Print job was not accepted." msgstr "No se acepta el trabajo de impresión." #, c-format msgid "Printer \"%s\" already exists." msgstr "Ya existe la impresora \"%s\"." msgid "Printer Added" msgstr "Impresora añadida" msgid "Printer Default" msgstr "Predeterminado de la impresora" msgid "Printer Deleted" msgstr "Impresora borrada" msgid "Printer Modified" msgstr "Impresora modificada" msgid "Printer Paused" msgstr "Impresora en pausa" msgid "Printer Settings" msgstr "Configuración de la impresora" msgid "Printer cannot print supplied content." msgstr "La impresora no puede imprimir el contenido suministrado." msgid "Printer cannot print with supplied options." msgstr "La impresora no puede imprimir con las opciones suministradas." msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Impresora:" msgid "Printers" msgstr "Impresoras" #, c-format msgid "Printing page %d, %u%% complete." msgstr "Imprimiendo página %d, %u%% completado." msgid "Punch" msgstr "Perforadora" msgid "Quarto" msgstr "Libro en cuarto" msgid "Quota limit reached." msgstr "Se ha alcanzado el límite de cuota." msgid "Rank Owner Job File(s) Total Size" msgstr "Rango Propiet. Trabajo Archivo(s) Tamaño total" msgid "Reject Jobs" msgstr "Rechazar trabajos" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "El equipo remoto no ha aceptado el archivo de control (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "El equipo remoto no ha aceptado el archivo de datos (%d)." msgid "Reprint After Error" msgstr "Volver a imprimir tras un error" msgid "Request Entity Too Large" msgstr "La entidad requerida es demasiado larga" msgid "Resolution" msgstr "Resolución" msgid "Resume Class" msgstr "Reanudar clase" msgid "Resume Printer" msgstr "Reanudar impresora" msgid "Return Address" msgstr "Remite" msgid "Rewind" msgstr "Rebobinar" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE usa una longitud indefinida" msgid "SSL/TLS Negotiation Error" msgstr "Error en negociación SSL/TLS" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Ver otros" msgid "See remote printer." msgstr "Ver impresora remota." msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "Enviando datos a la impresora." msgid "Server Restarted" msgstr "Servidor reiniciado" msgid "Server Security Auditing" msgstr "Auditoría de seguridad del servidor" msgid "Server Started" msgstr "Servidor iniciado" msgid "Server Stopped" msgstr "Servidor parado" msgid "Server credentials not set." msgstr "Credenciales del servidor no establecidas." msgid "Service Unavailable" msgstr "Servicio no disponible" msgid "Set Allowed Users" msgstr "Establecer usuarios permitidos" msgid "Set As Server Default" msgstr "Establecer como predeterminada del servidor" msgid "Set Class Options" msgstr "Cambiar opciones clase" msgid "Set Printer Options" msgstr "Cambiar opciones impresora" msgid "Set Publishing" msgstr "Hacer pública" msgid "Shipping Address" msgstr "Dirección de envío" msgid "Short-Edge (Landscape)" msgstr "Lado corto (apaisado)" msgid "Special Paper" msgstr "Papel especial" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Guardando trabajo en cola, %.0f%% completado." msgid "Standard" msgstr "Estándar" msgid "Staple" msgstr "Grapa" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Rótulo inicial" #, c-format msgid "Starting page %d." msgstr "Iniciando página %d." msgid "Statement" msgstr "Declaración" #, c-format msgid "Subscription #%d does not exist." msgstr "Subscripción #%d no existe." msgid "Substitutions:" msgstr "Substituciones:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B (13 x 19 pulg.)" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Protocolos de conexión" msgid "Tabloid" msgstr "Tabloide" msgid "Tabloid Oversize" msgstr "Tabloide extragrande" msgid "Tabloid Oversize Long Edge" msgstr "Tabloide extragrande lado largo" msgid "Tear" msgstr "Pestaña" msgid "Tear-Off" msgstr "Pestaña desprendible" msgid "Tear-Off Adjust Position" msgstr "Ajuste de posición de la pestaña desprendible" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "Se necesita el atributo \"%s\" para los trabajos de impresión." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "El atributo %s no puede ser usado con jobs-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" "El atributo de estado de trabajo '%s' no puede ser suministrado en una " "solicitud de creación de trabajo." #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "El atributo de operación '%s' no puede ser suministrado en una petición " "Create-Job." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "No se ha podido encontrar el archivo PPD \"%s\"." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "No se ha podido abrir el archivo PPD \"%s\": %s" msgid "The PPD file could not be opened." msgstr "No se ha podido abrir el archivo PPD." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "El nombre de la clase sólo puede contener hasta 127 caracteres imprimibles y " "no puede contener espacios, barras (/), o la almohadilla (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "El atributo notify-lease-duration no puede ser usado con subscripciones de " "trabajos." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "El valor notify-user-data es demasiado grande (%d > 63 octetos)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" "La configuración de la impresora es incorrecta o la impresora ya no existe." msgid "The printer did not respond." msgstr "La impresora no respondió." msgid "The printer is in use." msgstr "La impresora está en uso." msgid "The printer is not connected." msgstr "La impresora no está conectada." msgid "The printer is not responding." msgstr "La impresora no responde." msgid "The printer is now connected." msgstr "La impresora está ahora conectada." msgid "The printer is now online." msgstr "La impresora está ahora en línea." msgid "The printer is offline." msgstr "La impresora está fuera de línea." msgid "The printer is unreachable at this time." msgstr "La impresora es inalcanzable en este momento." msgid "The printer may not exist or is unavailable at this time." msgstr "La impresora puede no existir o no estar disponible en este momento." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "La impresora o clase no existe." msgid "The printer or class is not shared." msgstr "La impresora o clase no está compartida." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "El printer-uri \"%s\" contiene caracteres no válidos." msgid "The printer-uri attribute is required." msgstr "Se necesita el atributo printer-uri." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "El printer-uri debe ser de la forma \"ipp://NOMBRE_EQUIPO/classes/" "NOMBRE_CLASE\"." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "El printer-uri debe ser de la forma \"ipp://NOMBRE_EQUIPO/printers/" "NOMBRE_IMPRESORA\"." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "La interfaz web está desactivada en este momento. Ejecute \"cupsctl " "WebInterface=yes\" para activarla." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "No se admite el uso del valor which-jobs \"%s\"." msgid "There are too many subscriptions." msgstr "Hay demasiadas subscripciones." msgid "There was an unrecoverable USB error." msgstr "Ha habido un error USB irrecuperable." msgid "Thermal Transfer Media" msgstr "Soporte de transferencia térmica" msgid "Too many active jobs." msgstr "Demasiados trabajos activos." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Demasiados valores de job-sheets (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Demasiados valores printer-state-reasons (%d > %d)." msgid "Transparency" msgstr "Transparencia" msgid "Tray" msgstr "Bandeja" msgid "Tray 1" msgstr "Bandeja 1" msgid "Tray 2" msgstr "Bandeja 2" msgid "Tray 3" msgstr "Bandeja 3" msgid "Tray 4" msgstr "Bandeja 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "URI demasiado largo" msgid "URI too large" msgstr "URI demasiado grande" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "Libro Mayor, 17 x 11 pulg." msgid "US Legal" msgstr "Legal EE.UU." msgid "US Legal Oversize" msgstr "Legal EE.UU. Extragrande" msgid "US Letter" msgstr "Carta EE.UU." msgid "US Letter Long Edge" msgstr "Carta EE.UU. lado largo" msgid "US Letter Oversize" msgstr "Carta EE.UU. Extragrande" msgid "US Letter Oversize Long Edge" msgstr "Carta EE.UU. Extragrande lado largo" msgid "US Letter Small" msgstr "Carta EE.UU. Pequeña" msgid "Unable to access cupsd.conf file" msgstr "No se ha podido acceder al archivo cupsd.conf" msgid "Unable to access help file." msgstr "No se ha podido acceder al archivo de ayuda." msgid "Unable to add class" msgstr "No se ha podido añadir la clase" msgid "Unable to add document to print job." msgstr "No se ha podido añadir el documento al trabajo de impresión." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "No se ha podido añadir el trabajo para el destino \"%s\"." msgid "Unable to add printer" msgstr "No se ha podido añadir la impresora" msgid "Unable to allocate memory for file types." msgstr "No se ha podido reservar memoria para tipos de archivo." msgid "Unable to allocate memory for page info" msgstr "No se ha podido reservar memoria para la información de página." msgid "Unable to allocate memory for pages array" msgstr "No se ha podido reservar memoria para la secuencia de páginas" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "No se ha podido cancelar el trabajo de impresión." msgid "Unable to change printer" msgstr "No se ha podido cambiar la impresora" msgid "Unable to change printer-is-shared attribute" msgstr "No se ha podido cambiar el atributo printer-is-shared" msgid "Unable to change server settings" msgstr "No se ha podido cambiar la configuración del servidor" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "No se ha podido compilar la expresión regular mimeMediaType: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "No se ha podido compilar la expresión regular naturalLanguage: %s." msgid "Unable to configure printer options." msgstr "No se han podido configurar las opciones de impresión." msgid "Unable to connect to host." msgstr "No se ha podido conectar al equipo." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "No se ha podido contactar con la impresora; poniendo en cola en la siguiente " "impresora de la clase." #, c-format msgid "Unable to copy PPD file - %s" msgstr "No se ha podido copiar el archivo PPD - %s" msgid "Unable to copy PPD file." msgstr "No se ha podido copiar el archivo PPD." msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "No se ha podido crear printer-uri" msgid "Unable to create printer." msgstr "No se ha podido crear la impresora." msgid "Unable to create server credentials." msgstr "No se han podido crear las credenciales del servidor." #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "No se ha podido crear el archivo temporal" msgid "Unable to delete class" msgstr "No se ha podido borrar la clase" msgid "Unable to delete printer" msgstr "No se ha podido borrar la impresora" msgid "Unable to do maintenance command" msgstr "No se ha podido realizar el comando de mantenimiento" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "No se pueden editar archivos cupsd.conf mayores de 1MB" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (cadena " "certificado incorrecta)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (el certificado " "aún no es válido)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (certificado " "caducado)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (el nombre de " "equipo no coincide)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (el par cortó " "la conexión antes de responder)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (certificado " "auto-firmado)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "No se ha podido establecer una conexión segura con el equipo (certificado no " "seguro)." msgid "Unable to establish a secure connection to host." msgstr "No se ha podido establecer una conexión segura al equipo." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "No se ha podido encontrar destino para el trabajo" msgid "Unable to find printer." msgstr "No se ha podido encontrar la impresora." msgid "Unable to find server credentials." msgstr "No se han podido encontrar las credenciales del servidor." msgid "Unable to get backend exit status." msgstr "No se ha podido obtener el estado de salida del programa backend." msgid "Unable to get class list" msgstr "No se ha podido obtener la lista de clases" msgid "Unable to get class status" msgstr "No se ha podido obtener el estado de la clase" msgid "Unable to get list of printer drivers" msgstr "No se ha podido obtener la lista de controladores de impresora" msgid "Unable to get printer attributes" msgstr "No se han podido obtener los atributos de la impresora" msgid "Unable to get printer list" msgstr "No se ha podido obtener la lista de impresoras" msgid "Unable to get printer status" msgstr "No se ha podido obtener el estado de la impresora" msgid "Unable to get printer status." msgstr "No se ha podido obtener el estado de la impresora." msgid "Unable to load help index." msgstr "No se ha podido cargar el índice de ayuda." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "No se ha podido localizar la impresora \"%s\"." msgid "Unable to locate printer." msgstr "No se ha podido localizar la impresora." msgid "Unable to modify class" msgstr "No se ha podido modificar la clase" msgid "Unable to modify printer" msgstr "No se ha podido modificar la impresora" msgid "Unable to move job" msgstr "No se ha podido mover el trabajo" msgid "Unable to move jobs" msgstr "No se han podido mover los trabajos" msgid "Unable to open PPD file" msgstr "No se ha podido abrir el archivo PPD" msgid "Unable to open cupsd.conf file:" msgstr "No se ha podido abrir el archivo cupsd.conf:" msgid "Unable to open device file" msgstr "No se ha podido abrir el archivo de dispositivo" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "No se ha podido abrir el documento #%d del trabajo #%d." msgid "Unable to open help file." msgstr "No se ha podido abrir el archivo de ayuda." msgid "Unable to open print file" msgstr "No se ha podido abrir el archivo de impresión" msgid "Unable to open raster file" msgstr "No se ha podido abrir el archivo de trama de datos (raster)" msgid "Unable to print test page" msgstr "No se ha podido imprimir la página de prueba" msgid "Unable to read print data." msgstr "No se han podido leer los datos de impresión." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "No se ha podido renombrar el archivo del documento de trabajo." msgid "Unable to resolve printer-uri." msgstr "No se ha podido resolver printer-uri." msgid "Unable to see in file" msgstr "No se ha podido mirar en el archivo" msgid "Unable to send command to printer driver" msgstr "No se ha podido enviar un comando al controlador de la impresora" msgid "Unable to send data to printer." msgstr "No se han podido enviar datos a la impresora." msgid "Unable to set options" msgstr "No se han podido cambiar las opciones" msgid "Unable to set server default" msgstr "No se ha podido establecer el servidor predeterminado" msgid "Unable to start backend process." msgstr "No se ha podido iniciar el proceso backend." msgid "Unable to upload cupsd.conf file" msgstr "No se ha podido enviar el archivo cupsd.conf" msgid "Unable to use legacy USB class driver." msgstr "" "No se ha podido usar el controlador de dispositivo de clase USB obsoleto." msgid "Unable to write print data" msgstr "No se han podido escribir los datos de impresión" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "No se han podido escribir los datos de impresión sin comprimir: %s" msgid "Unauthorized" msgstr "No autorizado" msgid "Units" msgstr "Unidades" msgid "Unknown" msgstr "Desconocido" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Preferencia \"%s\" desconocida para la opción \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Valor de opción de cifrado \"%s\" desconocida." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Orden de archivos \"%s\" desconocido." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Carácter de formato \"%c\" desconocido." msgid "Unknown hash algorithm." msgstr "Algoritmo de hash desconocido." msgid "Unknown media size name." msgstr "Nombre de tamaño de papel desconocido." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Opción \"%s\" con valor \"%s\" desconocida." #, c-format msgid "Unknown option \"%s\"." msgstr "Opción \"%s\" desconocida." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Modo de impresión \"%s\" desconocido." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "printer-error-policy \"%s\" incorrecto." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "printer-op-policy \"%s\" incorrecto." msgid "Unknown request method." msgstr "Método de solicitud desconocido." msgid "Unknown request version." msgstr "Versión de solicitud desconocida." msgid "Unknown scheme in URI" msgstr "Esquema en URI desconocido" msgid "Unknown service name." msgstr "Nombre de servicio desconocido." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Valor de opción de versión \"%s\" desconocida." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Valor 'compression' \"%s\" no implementado." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Valor 'document-format' \"%s\" no implementado." msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "Valor 'job-name' no implementado." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Juego de caracteres \"%s\" no implementado." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Compresión \"%s\" no implementada." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "document-format \"%s\" no implementado." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "document-format \"%s/%s\" no implementado." #, c-format msgid "Unsupported format \"%s\"." msgstr "Formato \"%s\" no implementado." msgid "Unsupported margins." msgstr "Márgenes no implementados." msgid "Unsupported media value." msgstr "Valor del medio no implementado." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" "Valor de number-up (páginas por hoja) %d no implementado; usando number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "Valor de number-up-layout (disposición de páginas por hoja) %s no " "implementado; usando number-up-layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" "Valor de page-border (borde de página) %s no implementado; usando page-" "border=none (ninguno)." msgid "Unsupported raster data." msgstr "Trama de datos no implementados." msgid "Unsupported value type" msgstr "Tipo de valor no implementado" msgid "Upgrade Required" msgstr "Se requiere actualización" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Uso: %s job-id usuario título copias opciones [archivo]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Uso: cupsctl [opciones] [param=valor ... paramN=valorN]" msgid "Usage: cupsd [options]" msgstr "Uso: cupsd [opciones]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "Uso: cupsfilter [ opciones ] [ -- ] nombre_archivo" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Uso: ippfind [opciones] regtipo[,subtipo][.dominio.] ... [expresión]\n" " ippfind [opciones] nombre[.regtipo[.dominio.]] ... [expresión]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Uso: ipptool [opciones] URI nombre_archivo [ ... nombre_archivoN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Uso: ppdc [opciones] nombre_archivo.drv [ ... nombre_archivoN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Uso: ppdhtml [opciones] nombre_archivo.drv >nombre_archivo.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Uso: ppdi [opciones] nombre_archivo.ppd [ ... nombre_archivoN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" "Uso: ppdmerge [opciones] nombre_archivo.ppd [ ... nombre_archivoN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "Uso: ppdpo [opciones] -o nombre_archivo.po nombre_archivo.drv [ ... " "nombre_archivoN.drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Uso: snmp [equipo-o-dirección-ip]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Valor usa una longitud indefinida" msgid "VarBind uses indefinite length" msgstr "VarBind usa una longitud indefinida" msgid "Version uses indefinite length" msgstr "Versión usa una longitud indefinida" msgid "Waiting for job to complete." msgstr "Esperando a que finalice el trabajo." msgid "Waiting for printer to become available." msgstr "Esperando a que la impresora esté disponible." msgid "Waiting for printer to finish." msgstr "Esperando a que finalice la impresora." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "La interfaz web está desactivada." msgid "Yes" msgstr "Si" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Debe acceder a esta página usando el URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Impresora de etiquetas ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "cancelado" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "cancelado" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "completado" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "Ha fallado al ejecutarse cups-deviced." msgid "cups-driverd failed to execute." msgstr "Ha fallado al ejecutarse cups-driverd." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: No se ha podido conectar al servidor: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: Opción \"%s\" desconocida" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: Opción \"-%c\" desconocida" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" "cupsd: Se esperaba un nombre de archivo de configuración tras la opción \"-c" "\"." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" "cupsd: Se esperaba el nombre de archivo cups-files.conf tras la opción \"-s" "\"." msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" "cupsd: El uso bajo-demanda no está compilado. Funcionando en modo normal." msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: No se permite nombre de archivo cups-files.conf relativo." msgid "cupsd: Unable to get current directory." msgstr "cupsd: No se ha podido obtener el directorio actual." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: No se ha podido obtener la ruta al archivo cups-files.conf." #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: Argumento \"%s\" desconocido - cancelando." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: Opción \"%c\" desconocida - cancelando." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: Número de documento %d no válido." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: ID de trabajo %d no válida." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: Solo se puede especificar un nombre de archivo." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: No se ha podido obtener el archivo del trabajo - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: La opción -q es incompatible con la opción -v." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: La opción -v es incompatible con la opción -q." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "dispositivo para %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "dispositivo para %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index usa una longitud indefinida" msgid "error-status uses indefinite length" msgstr "error-status usa una longitud indefinida" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "retenido" msgid "help\t\tGet help on commands." msgstr "help\t\tProporciona ayuda sobre los comandos." msgid "idle" msgstr "inactiva" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: Expresión regular incorrecta: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: No se puede usar --and tras --or." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: Se esperaba un nombre de clave tras %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: Se esperaba un intervalo de puertos tras %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: Se esperaba un programa tras %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: Se esperaba un punto y coma tras %s." msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: Falta la llave de cierre en la substitución." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: Falta el paréntesis de cierre." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: Falta una expresión antes de \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: Falta una expresión antes de \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: Falta un nombre de clave tras %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "ippfind: Falta el paréntesis de apertura." #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: Falta un programa tras %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: Falta una expresión regular tras %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: Falta un punto y coma tras %s." msgid "ippfind: Out of memory." msgstr "ippfind: Sin memoria." msgid "ippfind: Too many parenthesis." msgstr "ippfind: Demasiados paréntesis." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: No se ha podido examinar o resolver: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: No se ha podido ejecutar \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: No se ha podido usar Bonjour: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: Variable desconocida \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "ipptool: \"-i\" y \"-n\" no son compatibles con \"-P\" y \"-X\"." #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: Número de segundos no válido para \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: Sólo se puede especificar un URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: Falta el contador para \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: Falta el nombre del archivo para \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: Falta un nombre=valor para \"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: Falta el número de segundos para \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: Se requiere un URI antes del archivo de prueba." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "Falta el atributo job-printer-uri." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "" "lpadmin: El nombre de la clase sólo puede contener caracteres imprimibles." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "lpadmin: Se esperaba un PPD tras la opción \"-%c\"." msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: Se esperaba allow/deny:lista_usuarios tras la opción \"-u\"." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: Se esperaba una clase tras la opción \"-r\"." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: Se esperaba un nombre de clase tras la opción \"-c\"." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: Se esperaba una descripción tras la opción \"-D\"." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: Se esperaba un URI de dispositivo tras la opción \"-v\"." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: Se esperaba(n) tipo(s) de archivo(s) tras la opción \"-l\"." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: Se esperaba un nombre de equipo tras la opción \"-h\"." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: Se esperaba una ubicación tras la opción \"-L\"." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: Se esperaba un modelo tras la opción \"-m\"." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: Se esperaba un nombre tras la opción \"-R\"." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: Se esperaba un nombre=valor tras la opción \"-o\"." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: Se esperaba una impresora tras la opción \"-p\"." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: Se esperaba un nombre de impresora tras la opción \"-d\"." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: Se esperaba una impresora o clase tras la opción \"-x\"." msgid "lpadmin: No member names were seen." msgstr "lpadmin: No se han visto nombres de miembros." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: La impresora %s ya es miembro de la clase %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: La impresora %s no es miembro de la clase %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "" "lpadmin: El nombre de la impresora sólo puede contener caracteres " "imprimibles." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: No se ha podido añadir una impresora a la clase:\n" " Debe especificar un nombre de impresora primero." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: No se ha podido conectar al servidor: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: No se ha podido crear el archivo temporal" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: No se ha podido borrar la opción:\n" " Debe especificar un nombre de impresora primero." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" "lpadmin: No se ha podido abrir el archivo PPD: \"%s\": %s en la línea %d." msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: No se ha podido quitar una impresora de la clase:\n" " Debe especificar un nombre de impresora primero." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: No se han podido establecer las opciones de la impresora:\n" " Debe especificar un nombre de impresora primero." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Opción allow/deny desconocida \"%s\"." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: Argumento \"%s\" desconocido." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Opción \"%c\" desconocida." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Advertencia - lista de tipo de contenido no tenida en cuenta." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" "lpinfo: Se esperaba una cadena ID de dispositivo 1284 tras \"--device-id\"." msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: Se esperaba un idioma tras \"--language\"." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: Se esperaba marca y modelo tras \"--make-and-model\"." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: Se esperaba una cadena de producto tras \"--product\"." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: Se esperaba una lista de esquemas tras \"--exclude-schemes\"." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: Se esperaba una lista de esquemas tras \"--include-schemes\"." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: Se esperaba un tiempo de espera tras \"--timeout\"." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: No se ha podido conectar al servidor: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Argumento \"%s\" desconocido." msgid "lpoptions: No printers." msgstr "lpoptions: No hay impresoras." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: No se ha podido añadir la impresora o la instancia: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: No se ha podido obtener el archivo PPD para %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: No se ha podido abrir el archivo PPD para %s." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Impresora o clase desconocida." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: error - Los nombre de variable de entorno %s no existen en el " "destino \"%s\"." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "miembros de la clase %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "no hay entradas" msgid "no system default destination" msgstr "no hay un destino predeterminado del sistema" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "notify-events no especificado." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "El URI notify-recipient-uri \"%s\" ya está usado." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "El URI notify-recipient-uri \"%s\" usa un esquema desconocido." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "pendiente" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: Añadiendo directorio include \"%s\"." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: Añadiendo/actualizando texto UI desde %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: Valor lógico (%s) incorrecto en línea %d de %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: Atributo de fuente incorrecto: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: Resolución de nombre \"%s\" incorrecta en línea %d de %s." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: Clave de estado %s incorrecta en línea %d de %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc: Sustitución de variable ($%c) errónea en la línea %d de %s." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc: Selección encontrada en línea %d de %s sin opciones." #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: #po duplicado para código regional %s en línea %d de %s." #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: Se esperaba una definición de filtro en la línea %d de %s." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: Se esperaba un nombre de programa en la línea %d de %s." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: Se esperaba un valor lógico en la línea %d de %s." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" "ppdc: Se esperaba un juego de caracteres tras Font en la línea %d de %s." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: Se esperaba un código apropiado en la línea %d de %s." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: Se esperaba un nombre/texto apropiado en la línea %d de %s." #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" "ppdc: Se esperaba un orden de color para ColorModel en la línea %d de %s." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "ppdc: Se esperaba colorspace para ColorModel en la línea %d de %s." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: Se esperaba compresión para ColorModel en la línea %d de %s." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: Se esperaba una cadena de restricciones para UIConstraints en la línea " "%d de %s." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: Se esperaba una clave de tipo de controlador tras DriverType en la " "línea %d de %s." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc: Se esperaba un tipo dúplex tras Duplex en la línea %d de %s." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: Se esperaba una codificación tras Font en la línea %d de %s." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" "ppdc: Se esperaba un nombre de archivo tras #po %s en la línea %d de %s." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: Se esperaba un nombre/texto de grupo en la línea %d de %s." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: Se esperaba un nombre de archivo include en la línea %d de %s." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: Se esperaba un número entero en la línea %d de %s." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: Se esperaba un código regional tras #po en la línea %d de %s." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras %s en la línea %d de %s." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras FileName en la línea %d de %s." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras Font en la línea %d de %s." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras Manufacturer en la línea %d de %s." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras MediaSize en la línea %d de %s." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras ModelName en la línea %d de %s." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: Se esperaba un nombre tras PCFileName en la línea %d de %s." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: Se esperaba un nombre/texto tras %s en la línea %d de %s." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" "ppdc: Se esperaba un nombre/texto tras Installable en la línea %d de %s." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" "ppdc: Se esperaba un nombre/texto tras Resolution en la línea %d de %s." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: Se esperaba una combinación nombre/texto para ColorModel en la línea " "%d de %s." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: Se esperaba una opción de nombre/texto en la línea %d de %s." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: Se esperaba una sección de opciones en la línea %d de %s." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: Se esperaba un tipo de opción en la línea %d de %s." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: Se esperaba un campo de anulación tras Resolution en la línea %d de %s." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: Se esperaba una cadena entrecomillada en la línea %d de %s." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: Se esperaba un número real en la línea %d de %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: Se esperaba resolución/tipo de soporte tras ColorProfile en la línea " "%d de %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: Se esperaba resolución/tipo de soporte tras SimpleColorProfile en la " "línea %d de %s." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: Se esperaba un selector tras %s en la línea %d de %s." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: Se esperaba un estado tras Font en la línea %d de %s." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: Se esperaba una cadena tras Copyright en la línea %d de %s." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: Se esperaba una cadena tras Version en la línea %d de %s." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: Se esperaban dos nombres de opciones en la línea %d de %s." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: Se esperaba un valor tras %s en la línea %d de %s." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: Se esperaba una versión tras Font en la línea %d de %s." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: Nombre de archivo #include/#po incorrecto \"%s\"." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: Coste incorrecto para el filtro en la línea %d de %s." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc: Tipo MIME vacío incorrecto para el filtro en la línea %d de %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" "ppdc: Nombre de programa vacío incorrecto para el filtro en la línea %d de " "%s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: Sección de opción incorrecta \"%s\" en la línea %d de %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: Tipo de opción incorrecta \"%s\" en la línea %d de %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: Cargando archivo de información de controlador \"%s\"." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: Cargando mensajes del idioma \"%s\"." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: Cargando mensajes desde \"%s\"." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: Falta un #endif al final de \"%s\"." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: Falta un #if en la línea %d de %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" "ppdc: Se necesita una línea msgid antes de cualquier cadena de traducción en " "línea %d de %s." #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: No se ha proporcionado catálogo de mensajes para el idioma %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" "ppdc: Opción %s definida en dos diferentes grupos en la línea %d de %s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "ppdc: Opción %s redefinida con un tipo diferente en la línea %d de %s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc: Opción de restricción debe *name en línea %d de %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: Demasiados #if anidados en la línea %d de %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: No se ha podido crear el archivo PPD \"%s\" - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: No se ha podido crear el directorio de salida %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: No se han podido crear canales (pipes) de salida: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: No se ha podido ejecutar cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" "ppdc: No se ha podido encontrar el archivo #po %s en la línea %d de %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" "ppdc: No se ha podido encontrar el archivo include \"%s\" en la línea %d de " "%s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: No se ha podido encontrar localización para \"%s\" - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: No se ha podido cargar el archivo de localización \"%s\" - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: No se pudo abrir %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: Variable no definida (%s) en la línea %d de %s." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: Texto inesperado en la línea %d del %s." #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: Tipo de controlador desconocido %s en la línea %d de %s." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: Tipo dúplex desconocido \"%s\" en la línea %d de %s." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: Tamaño de papel desconocido \"%s\" en la línea %d de %s." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: Formato del catálogo de mensajes para \"%s\" desconocido." #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: Elemento desconocido \"%s\" visto en la línea %d de %s." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: Caracteres finales desconocidos en el número real \"%s\" en la línea " "%d de %s." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc: Cadena que comienza por %c sin terminar en la línea %d de %s." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: Advertencia - nombre de archivo superpuesto \"%s\"." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: Escribiendo %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: Escribiendo archivos PPD al directorio \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: LanguageVersion \"%s\" incorrecto en %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: Ignorando archivo PPD %s." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: No se ha podido hacer copia de respaldo de %s a %s - %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "la impresora %s está deshabilitada desde %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "la impresora %s está inactiva. activada desde %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "la impresora %s está ahora imprimiendo %s-%d. activada desde %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "la impresora %s/%s está desactivada desde %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "la impresora %s/%s está inactiva. activada desde %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "la impresora %s/%s está ahora imprimiendo %s-%d. activada desde %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "en proceso" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "la id solicitada es %s-%d (%d archivo(s))" msgid "request-id uses indefinite length" msgstr "request-id usa una longitud indefinida" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "el planificador de tareas no se está ejecutando" msgid "scheduler is running" msgstr "el planificador de tareas se está ejecutando" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "estado de %s ha fallado: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tMuestra el estado del demonio (daemon) y la cola." #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "parada" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "destino predeterminado del sistema: %s" #, c-format msgid "system default destination: %s/%s" msgstr "destino predeterminado del sistema: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "desconocido" msgid "untitled" msgstr "sin título" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings usa una longitud indefinida" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "" #~ "Se requiere una contraseña Samba para exportar los controladores de " #~ "impresora" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "Se requiere un nombre de usuario Samba para exportar los controladores de " #~ "impresora" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Exportar impresoras a Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: No se puede establecer Listen o Port directamente." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: No se ha podido abrir el archivo PPD \"%s\" - %s" cups-2.4.7/locale/cups_en.po0000644000175000017500000136447314502571342015636 0ustar zdohnalzdohnal# # English message catalog for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Notes for Translators: # # The "checkpo" program located in the "locale" source directory can be used # to verify that your translations do not introduce formatting errors or other # problems. Run with: # # cd locale # ./checkpo cups_LL.po # # where "LL" is your locale. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: CUPS 2.3.0\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: English\n" "Language: en\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "\t\t(all)" msgid "\t\t(none)" msgstr "\t\t(none)" #, c-format msgid "\t%d entries" msgstr "\t%d entries" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tAfter fault: continue" #, c-format msgid "\tAlerts: %s" msgstr "\tAlerts: %s" msgid "\tBanner required" msgstr "\tBanner required" msgid "\tCharset sets:" msgstr "\tCharset sets:" msgid "\tConnection: direct" msgstr "\tConnection: direct" msgid "\tConnection: remote" msgstr "\tConnection: remote" msgid "\tContent types: any" msgstr "\tContent types: any" msgid "\tDefault page size:" msgstr "\tDefault page size:" msgid "\tDefault pitch:" msgstr "\tDefault pitch:" msgid "\tDefault port settings:" msgstr "\tDefault port settings:" #, c-format msgid "\tDescription: %s" msgstr "\tDescription: %s" msgid "\tForm mounted:" msgstr "\tForm mounted:" msgid "\tForms allowed:" msgstr "\tForms allowed:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tInterface: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tInterface: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tLocation: %s" msgid "\tOn fault: no alert" msgstr "\tOn fault: no alert" msgid "\tPrinter types: unknown" msgstr "\tPrinter types: unknown" #, c-format msgid "\tStatus: %s" msgstr "\tStatus: %s" msgid "\tUsers allowed:" msgstr "\tUsers allowed:" msgid "\tUsers denied:" msgstr "\tUsers denied:" msgid "\tdaemon present" msgstr "\tdaemon present" msgid "\tno entries" msgstr "\tno entries" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tprinter is on device '%s' speed -1" msgid "\tprinting is disabled" msgstr "\tprinting is disabled" msgid "\tprinting is enabled" msgstr "\tprinting is enabled" #, c-format msgid "\tqueued for %s" msgstr "\tqueued for %s" msgid "\tqueuing is disabled" msgstr "\tqueuing is disabled" msgid "\tqueuing is enabled" msgstr "\tqueuing is enabled" msgid "\treason unknown" msgstr "\treason unknown" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgid " REF: Page 15, section 3.1." msgstr " REF: Page 15, section 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Page 15, section 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Page 19, section 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Page 20, section 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Page 27, section 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Page 42, section 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Pages 16-17, section 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Pages 42-45, section 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Pages 45-46, section 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Pages 48-49, section 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Pages 52-54, section 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f bytes" #, c-format msgid " PASS Default%s" msgstr " PASS Default%s" msgid " PASS DefaultImageableArea" msgstr " PASS DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " PASS DefaultPaperDimension" msgid " PASS FileVersion" msgstr " PASS FileVersion" msgid " PASS FormatVersion" msgstr " PASS FormatVersion" msgid " PASS LanguageEncoding" msgstr " PASS LanguageEncoding" msgid " PASS LanguageVersion" msgstr " PASS LanguageVersion" msgid " PASS Manufacturer" msgstr " PASS Manufacturer" msgid " PASS ModelName" msgstr " PASS ModelName" msgid " PASS NickName" msgstr " PASS NickName" msgid " PASS PCFileName" msgstr " PASS PCFileName" msgid " PASS PSVersion" msgstr " PASS PSVersion" msgid " PASS PageRegion" msgstr " PASS PageRegion" msgid " PASS PageSize" msgstr " PASS PageSize" msgid " PASS Product" msgstr " PASS Product" msgid " PASS ShortNickName" msgstr " PASS ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " WARN %s has no corresponding options." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr " WARN File contains a mix of CR, LF, and CR LF line endings." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " WARN Line %d only contains whitespace." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s does not exist." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s file \"%s\" has the wrong capitalization." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %s Bad UTF-8 \"%s\" translation string for option %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s Bad cupsFilter value \"%s\"." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s Bad cupsFilter2 value \"%s\"." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s Bad cupsICCProfile %s." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s Bad cupsPreFilter value \"%s\"." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s Bad cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s Bad language \"%s\"." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s Bad permissions on %s file \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s Bad spelling of %s - should be %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr " %s Cannot provide both APScanAppPath and APScanAppBundleID." #, c-format msgid " %s Default choices conflicting." msgstr " %s Default choices conflicting." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s Empty cupsUIConstraints %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr " %s Missing \"%s\" translation string for option %s, choice %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s Missing \"%s\" translation string for option %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s Missing %s file \"%s\"." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s Missing cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Missing option %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s No base translation \"%s\" is included in file." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s Size \"%s\" defined for %s but not for %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s Size \"%s\" has unexpected dimensions (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s Size \"%s\" should be \"%s\"." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr " %s Size \"%s\" should be the Adobe standard name \"%s\"." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfile %s hash value collides with %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s causes a loop." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" " %s cupsUIResolver %s does not list at least two different options." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr " **FAIL** Bad LanguageVersion %s - must be English." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr " **FAIL** Default option code cannot be interpreted: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr " **FAIL** Group names %s and %s differ only by case." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr " **FAIL** Multiple occurrences of option %s choice name %s." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr " **FAIL** Option %s choice names %s and %s differ only by case." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr " **FAIL** Option names %s and %s differ only by case." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **FAIL** Unable to open PPD file - %s on line %d." #, c-format msgid " %d ERRORS FOUND" msgstr " %d ERRORS FOUND" msgid " NO ERRORS FOUND" msgstr " NO ERRORS FOUND" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr End lines with CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf End lines with CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf End lines with LF (UNIX/Linux/macOS)." msgid " --list-filters List filters that will be used." msgstr " --list-filters List filters that will be used." msgid " -D Remove the input file when finished." msgstr " -D Remove the input file when finished." msgid " -D name=value Set named variable to value." msgstr " -D name=value Set named variable to value." msgid " -I include-dir Add include directory to search path." msgstr " -I include-dir Add include directory to search path." msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd Set PPD file." msgid " -U username Specify username." msgstr " -U username Specify username." msgid " -c catalog.po Load the specified message catalog." msgstr " -c catalog.po Load the specified message catalog." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf Set cups-files.conf file to use." msgid " -d output-dir Specify the output directory." msgstr " -d output-dir Specify the output directory." msgid " -d printer Use the named printer." msgstr " -d printer Use the named printer." msgid " -e Use every filter from the PPD file." msgstr " -e Use every filter from the PPD file." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr " -i mime/type Set input MIME type (otherwise auto-typed)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] Specify the output language(s) (locale)." msgid " -m Use the ModelName value as the filename." msgstr " -m Use the ModelName value as the filename." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgid " -n copies Set number of copies." msgstr " -n copies Set number of copies." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgid " -o name=value Set option(s)." msgstr " -o name=value Set option(s)." msgid " -p filename.ppd Set PPD file." msgstr " -p filename.ppd Set PPD file." msgid " -t Test PPDs instead of generating them." msgstr " -t Test PPDs instead of generating them." msgid " -t title Set title." msgstr " -t title Set title." msgid " -u Remove the PPD file when finished." msgstr " -u Remove the PPD file when finished." msgid " -v Be verbose." msgstr " -v Be verbose." msgid " -z Compress PPD files using GNU zip." msgstr " -z Compress PPD files using GNU zip." msgid " FAIL" msgstr " FAIL" msgid " PASS" msgstr " PASS" msgid "! expression Unary NOT of expression" msgstr "! expression Unary NOT of expression" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgid "\"requesting-user-name\" attribute in wrong group." msgstr "\"requesting-user-name\" attribute in wrong group." msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "\"requesting-user-name\" attribute with wrong syntax." #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f bytes" #, c-format msgid "%d x %d mm" msgstr "%d x %d mm" #, c-format msgid "%g x %g \"" msgstr "%g x %g \"" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (Borderless)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (Borderless, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (Borderless, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s accepting requests since %s" #, c-format msgid "%s cannot be changed." msgstr "%s cannot be changed." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s is not implemented by the CUPS version of lpc." #, c-format msgid "%s is not ready" msgstr "%s is not ready" #, c-format msgid "%s is ready" msgstr "%s is ready" #, c-format msgid "%s is ready and printing" msgstr "%s is ready and printing" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s job-id user title copies options [file]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s not accepting requests since %s -" #, c-format msgid "%s not supported." msgstr "%s not supported." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s accepting requests since %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s not accepting requests since %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [job %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s failed: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s: Bad printer URI \"%s\"." #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: Bad version %s for \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: Don't know what to do." #, c-format msgid "%s: Error - %s" msgstr "%s: Error - %s" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: Error - %s environment variable names non-existent destination \"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: Error - add '/version=1.1' to server name." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: Error - bad job ID." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "%s: Error - cannot print files and alter jobs simultaneously." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "%s: Error - cannot print from stdin if files or a job ID are provided." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "%s: Error - copies must be 1 or more." #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: Error - expected character set after \"-S\" option." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: Error - expected content type after \"-T\" option." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: Error - expected copies after \"-#\" option." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: Error - expected copies after \"-n\" option." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: Error - expected destination after \"-P\" option." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: Error - expected destination after \"-d\" option." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: Error - expected form after \"-f\" option." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: Error - expected hold name after \"-H\" option." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: Error - expected hostname after \"-H\" option." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: Error - expected hostname after \"-h\" option." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: Error - expected mode list after \"-y\" option." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: Error - expected name after \"-%c\" option." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: Error - expected option=value after \"-o\" option." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: Error - expected page list after \"-P\" option." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: Error - expected priority after \"-%c\" option." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: Error - expected reason text after \"-r\" option." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: Error - expected title after \"-t\" option." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: Error - expected username after \"-U\" option." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: Error - expected username after \"-u\" option." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: Error - expected value after \"-%c\" option." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: Error - no default destination available." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: Error - priority must be between 1 and 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: Error - scheduler not responding." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: Error - too many files - \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: Error - unable to access \"%s\" - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: Error - unable to queue from stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: Error - unknown destination \"%s\"." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: Error - unknown destination \"%s/%s\"." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: Error - unknown option \"%c\"." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: Error - unknown option \"%s\"." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: Expected job ID after \"-i\" option." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: Invalid destination name in list \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: Invalid filter string \"%s\"." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: Missing filename for \"-P\"." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: Missing timeout for \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: Missing version for \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: Need job ID (\"-i jobid\") before \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: No filter to convert from %s/%s to %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: Operation failed: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: Sorry, no encryption support." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s: Unable to connect to \"%s:%d\": %s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: Unable to connect to server." #, c-format msgid "%s: Unable to contact server." msgstr "%s: Unable to contact server." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s: Unable to create PPD file: %s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: Unable to determine MIME type of \"%s\"." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: Unable to open \"%s\": %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: Unable to open %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: Unable to open PPD file: %s on line %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "%s: Unable to query printer: %s" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: Unable to read MIME database from \"%s\" or \"%s\"." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s: Unable to resolve \"%s\"." #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "%s: Unknown argument \"%s\"." #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: Unknown destination \"%s\"." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: Unknown destination MIME type %s/%s." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: Unknown option \"%c\"." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: Unknown option \"%s\"." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: Unknown option \"-%c\"." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: Unknown source MIME type %s/%s." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: Warning - character set option ignored." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: Warning - content type option ignored." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: Warning - form option ignored." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: Warning - mode option ignored." msgid "( expressions ) Group expressions" msgstr "( expressions ) Group expressions" msgid "- Cancel all jobs" msgstr "- Cancel all jobs" msgid "-# num-copies Specify the number of copies to print" msgstr "-# num-copies Specify the number of copies to print" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "--[no-]debug-logging Turn debug logging on/off" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "--[no-]remote-admin Turn remote administration on/off" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "--[no-]remote-any Allow/prevent access from the Internet" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "--[no-]share-printers Turn printer sharing on/off" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgid "--domain regex Match domain to regular expression" msgstr "--domain regex Match domain to regular expression" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" "--exec utility [argument ...] ;\n" " Execute program if true" msgid "--false Always false" msgstr "--false Always false" msgid "--help Show program help" msgstr "--help Show program help" msgid "--hold Hold new jobs" msgstr "--hold Hold new jobs" msgid "--host regex Match hostname to regular expression" msgstr "--host regex Match hostname to regular expression" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgid "--ippserver filename Produce ippserver attribute file" msgstr "--ippserver filename Produce ippserver attribute file" msgid "--language locale Show models matching the given locale" msgstr "--language locale Show models matching the given locale" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "--local True if service is local" msgid "--ls List attributes" msgstr "--ls List attributes" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" "--make-and-model name Show models matching the given make and model name" msgid "--name regex Match service name to regular expression" msgstr "--name regex Match service name to regular expression" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "--no-web-forms Disable web forms for media and supplies" msgid "--not expression Unary NOT of expression" msgstr "--not expression Unary NOT of expression" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "--path regex Match resource path to regular expression" msgid "--port number[-number] Match port to number or range" msgstr "--port number[-number] Match port to number or range" msgid "--print Print URI if true" msgstr "--print Print URI if true" msgid "--print-name Print service name if true" msgstr "--print-name Print service name if true" msgid "" "--product name Show models matching the given PostScript product" msgstr "" "--product name Show models matching the given PostScript product" msgid "--quiet Quietly report match via exit code" msgstr "--quiet Quietly report match via exit code" msgid "--release Release previously held jobs" msgstr "--release Release previously held jobs" msgid "--remote True if service is remote" msgstr "--remote True if service is remote" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgid "--true Always true" msgstr "--true Always true" msgid "--txt key True if the TXT record contains the key" msgstr "--txt key True if the TXT record contains the key" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "--txt-* regex Match TXT record key to regular expression" msgid "--uri regex Match URI to regular expression" msgstr "--uri regex Match URI to regular expression" msgid "--version Show program version" msgstr "--version Show program version" msgid "--version Show version" msgstr "--version Show version" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "-2 Set 2-sided printing support (default=1-sided)" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "-4 Connect using IPv4" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "-6 Connect using IPv6" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "-C Send requests using chunking (default)" msgid "-D description Specify the textual description of the printer" msgstr "-D description Specify the textual description of the printer" msgid "-D device-uri Set the device URI for the printer" msgstr "-D device-uri Set the device URI for the printer" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" "-E Enable and accept jobs on the printer (after -p)" msgid "-E Encrypt the connection to the server" msgstr "-E Encrypt the connection to the server" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "-E Test with encryption using HTTP Upgrade to TLS" msgid "-F Run in the foreground but detach from console." msgstr "-F Run in the foreground but detach from console." msgid "-F output-type/subtype Set the output format for the printer" msgstr "-F output-type/subtype Set the output format for the printer" msgid "-H Show the default server and port" msgstr "-H Show the default server and port" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "-H HH:MM Hold the job until the specified UTC time" msgid "-H hold Hold the job until released/resumed" msgstr "-H hold Hold the job until released/resumed" msgid "-H immediate Print the job as soon as possible" msgstr "-H immediate Print the job as soon as possible" msgid "-H restart Reprint the job" msgstr "-H restart Reprint the job" msgid "-H resume Resume a held job" msgstr "-H resume Resume a held job" msgid "-H server[:port] Connect to the named server and port" msgstr "-H server[:port] Connect to the named server and port" msgid "-I Ignore errors" msgstr "-I Ignore errors" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" "-K keypath Set location of server X.509 certificates and keys." msgid "-L Send requests using content-length" msgstr "-L Send requests using content-length" msgid "-L location Specify the textual location of the printer" msgstr "-L location Specify the textual location of the printer" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "-M manufacturer Set manufacturer name (default=Test)" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "-P destination Show status for the specified destination" msgid "-P destination Specify the destination" msgstr "-P destination Specify the destination" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "-P filename.ppd Load printer attributes from PPD file" msgid "-P number[-number] Match port to number or range" msgstr "-P number[-number] Match port to number or range" msgid "-P page-list Specify a list of pages to print" msgstr "-P page-list Specify a list of pages to print" msgid "-R Show the ranking of jobs" msgstr "-R Show the ranking of jobs" msgid "-R name-default Remove the default value for the named option" msgstr "-R name-default Remove the default value for the named option" msgid "-R root-directory Set alternate root" msgstr "-R root-directory Set alternate root" msgid "-S Test with encryption using HTTPS" msgstr "-S Test with encryption using HTTPS" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "-T seconds Set the browse timeout in seconds" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "-T seconds Set the receive/send timeout in seconds" msgid "-T title Specify the job title" msgstr "-T title Specify the job title" msgid "-U username Specify the username to use for authentication" msgstr "-U username Specify the username to use for authentication" msgid "-U username Specify username to use for authentication" msgstr "-U username Specify username to use for authentication" msgid "-V version Set default IPP version" msgstr "-V version Set default IPP version" msgid "-W completed Show completed jobs" msgstr "-W completed Show completed jobs" msgid "-W not-completed Show pending jobs" msgstr "-W not-completed Show pending jobs" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgid "-X Produce XML plist instead of plain text" msgstr "-X Produce XML plist instead of plain text" msgid "-a Cancel all jobs" msgstr "-a Cancel all jobs" msgid "-a Show jobs on all destinations" msgstr "-a Show jobs on all destinations" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "-a [destination(s)] Show the accepting state of destinations" msgid "-a filename.conf Load printer attributes from conf file" msgstr "-a filename.conf Load printer attributes from conf file" msgid "-c Make a copy of the print file(s)" msgstr "-c Make a copy of the print file(s)" msgid "-c Produce CSV output" msgstr "-c Produce CSV output" msgid "-c [class(es)] Show classes and their member printers" msgstr "-c [class(es)] Show classes and their member printers" msgid "-c class Add the named destination to a class" msgstr "-c class Add the named destination to a class" msgid "-c command Set print command" msgstr "-c command Set print command" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "-c cupsd.conf Set cupsd.conf file to use." msgid "-d Show the default destination" msgstr "-d Show the default destination" msgid "-d destination Set default destination" msgstr "-d destination Set default destination" msgid "-d destination Set the named destination as the server default" msgstr "" "-d destination Set the named destination as the server default" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "-d name=value Set named variable to value" msgid "-d regex Match domain to regular expression" msgstr "-d regex Match domain to regular expression" msgid "-d spool-directory Set spool directory" msgstr "-d spool-directory Set spool directory" msgid "-e Show available destinations on the network" msgstr "-e Show available destinations on the network" msgid "-f Run in the foreground." msgstr "-f Run in the foreground." msgid "-f filename Set default request filename" msgstr "-f filename Set default request filename" msgid "-f type/subtype[,...] Set supported file types" msgstr "-f type/subtype[,...] Set supported file types" msgid "-h Show this usage message." msgstr "-h Show this usage message." msgid "-h Validate HTTP response headers" msgstr "-h Validate HTTP response headers" msgid "-h regex Match hostname to regular expression" msgstr "-h regex Match hostname to regular expression" msgid "-h server[:port] Connect to the named server and port" msgstr "-h server[:port] Connect to the named server and port" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "-i id Specify an existing job ID to modify" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "-i ppd-file Specify a PPD file for the printer" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" "-i seconds Repeat the last file with the given time interval" msgid "-k Keep job spool files" msgstr "-k Keep job spool files" msgid "-l List attributes" msgstr "-l List attributes" msgid "-l Produce plain text output" msgstr "-l Produce plain text output" msgid "-l Run cupsd on demand." msgstr "-l Run cupsd on demand." msgid "-l Show supported options and values" msgstr "-l Show supported options and values" msgid "-l Show verbose (long) output" msgstr "-l Show verbose (long) output" msgid "-l location Set location of printer" msgstr "-l location Set location of printer" msgid "" "-m Send an email notification when the job completes" msgstr "" "-m Send an email notification when the job completes" msgid "-m Show models" msgstr "-m Show models" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgid "-m model Set model name (default=Printer)" msgstr "-m model Set model name (default=Printer)" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" "-m model Specify a standard model/PPD file for the printer" msgid "-n count Repeat the last file the given number of times" msgstr "-n count Repeat the last file the given number of times" msgid "-n hostname Set hostname for printer" msgstr "-n hostname Set hostname for printer" msgid "-n num-copies Specify the number of copies to print" msgstr "-n num-copies Specify the number of copies to print" msgid "-n regex Match service name to regular expression" msgstr "-n regex Match service name to regular expression" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" "-o Name=Value Specify the default value for the named PPD option " msgid "-o [destination(s)] Show jobs" msgstr "-o [destination(s)] Show jobs" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "-o job-page-limit=N Specify the page limit for per-user quotas" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "-o job-quota-period=N Specify the per-user quota period in seconds" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "-o job-sheets=standard Print a banner page with the job" msgid "-o media=size Specify the media size to use" msgstr "-o media=size Specify the media size to use" msgid "-o name-default=value Specify the default value for the named option" msgstr "-o name-default=value Specify the default value for the named option" msgid "-o name[=value] Set default option and value" msgstr "-o name[=value] Set default option and value" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgid "-o option[=value] Specify a printer-specific option" msgstr "-o option[=value] Specify a printer-specific option" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" "-o printer-is-shared=true\n" " Share the printer" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "-o sides=one-sided Specify 1-sided printing" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgid "-p Print URI if true" msgstr "-p Print URI if true" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "-p [printer(s)] Show the processing state of destinations" msgid "-p destination Specify a destination" msgstr "-p destination Specify a destination" msgid "-p destination Specify/add the named destination" msgstr "-p destination Specify/add the named destination" msgid "-p port Set port number for printer" msgstr "-p port Set port number for printer" msgid "-q Quietly report match via exit code" msgstr "-q Quietly report match via exit code" msgid "-q Run silently" msgstr "-q Run silently" msgid "-q Specify the job should be held for printing" msgstr "-q Specify the job should be held for printing" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" "-q priority Specify the priority from low (1) to high (100)" msgid "-r Remove the file(s) after submission" msgstr "-r Remove the file(s) after submission" msgid "-r Show whether the CUPS server is running" msgstr "-r Show whether the CUPS server is running" msgid "-r True if service is remote" msgstr "-r True if service is remote" msgid "-r Use 'relaxed' open mode" msgstr "-r Use 'relaxed' open mode" msgid "-r class Remove the named destination from a class" msgstr "-r class Remove the named destination from a class" msgid "-r reason Specify a reason message that others can see" msgstr "-r reason Specify a reason message that others can see" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "-r subtype,[subtype] Set DNS-SD service subtype" msgid "-s Be silent" msgstr "-s Be silent" msgid "-s Print service name if true" msgstr "-s Print service name if true" msgid "-s Show a status summary" msgstr "-s Show a status summary" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "-s cups-files.conf Set cups-files.conf file to use." msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "-s speed[,color-speed] Set speed in pages per minute" msgid "-t Produce a test report" msgstr "-t Produce a test report" msgid "-t Show all status information" msgstr "-t Show all status information" msgid "-t Test the configuration file." msgstr "-t Test the configuration file." msgid "-t key True if the TXT record contains the key" msgstr "-t key True if the TXT record contains the key" msgid "-t title Specify the job title" msgstr "-t title Specify the job title" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" "-u [user(s)] Show jobs queued by the current or specified users" msgid "-u allow:all Allow all users to print" msgstr "-u allow:all Allow all users to print" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" "-u allow:list Allow the list of users or groups (@name) to print" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" "-u deny:list Prevent the list of users or groups (@name) to print" msgid "-u owner Specify the owner to use for jobs" msgstr "-u owner Specify the owner to use for jobs" msgid "-u regex Match URI to regular expression" msgstr "-u regex Match URI to regular expression" msgid "-v Be verbose" msgstr "-v Be verbose" msgid "-v Show devices" msgstr "-v Show devices" msgid "-v [printer(s)] Show the devices for each destination" msgstr "-v [printer(s)] Show the devices for each destination" msgid "-v device-uri Specify the device URI for the printer" msgstr "-v device-uri Specify the device URI for the printer" msgid "-vv Be very verbose" msgstr "-vv Be very verbose" msgid "-x Purge jobs rather than just canceling" msgstr "-x Purge jobs rather than just canceling" msgid "-x destination Remove default options for destination" msgstr "-x destination Remove default options for destination" msgid "-x destination Remove the named destination" msgstr "-x destination Remove the named destination" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" "-x utility [argument ...] ;\n" " Execute program if true" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" "/etc/cups/lpoptions file names default destination that does not exist." msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 inch/sec." msgid "1.25x0.25\"" msgstr "1.25x0.25\"" msgid "1.25x2.25\"" msgstr "1.25x2.25\"" msgid "1.5 inch/sec." msgstr "1.5 inch/sec." msgid "1.50x0.25\"" msgstr "1.50x0.25\"" msgid "1.50x0.50\"" msgstr "1.50x0.50\"" msgid "1.50x1.00\"" msgstr "1.50x1.00\"" msgid "1.50x2.00\"" msgstr "1.50x2.00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 inches/sec." msgid "10 x 11" msgstr "10 x 11" msgid "10 x 13" msgstr "10 x 13" msgid "10 x 14" msgstr "10 x 14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/sec." msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 inches/sec." msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 inches/sec." msgid "12 x 11" msgstr "12 x 11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/sec." msgid "120x60dpi" msgstr "120x60dpi" msgid "120x72dpi" msgstr "120x72dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/sec." msgid "15 x 11" msgstr "15 x 11" msgid "150 mm/sec." msgstr "150 mm/sec." msgid "150dpi" msgstr "150dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 inches/sec." msgid "2-Sided Printing" msgstr "2-Sided Printing" msgid "2.00x0.37\"" msgstr "2.00x0.37\"" msgid "2.00x0.50\"" msgstr "2.00x0.50\"" msgid "2.00x1.00\"" msgstr "2.00x1.00\"" msgid "2.00x1.25\"" msgstr "2.00x1.25\"" msgid "2.00x2.00\"" msgstr "2.00x2.00\"" msgid "2.00x3.00\"" msgstr "2.00x3.00\"" msgid "2.00x4.00\"" msgstr "2.00x4.00\"" msgid "2.00x5.50\"" msgstr "2.00x5.50\"" msgid "2.25x0.50\"" msgstr "2.25x0.50\"" msgid "2.25x1.25\"" msgstr "2.25x1.25\"" msgid "2.25x4.00\"" msgstr "2.25x4.00\"" msgid "2.25x5.50\"" msgstr "2.25x5.50\"" msgid "2.38x5.50\"" msgstr "2.38x5.50\"" msgid "2.5 inches/sec." msgstr "2.5 inches/sec." msgid "2.50x1.00\"" msgstr "2.50x1.00\"" msgid "2.50x2.00\"" msgstr "2.50x2.00\"" msgid "2.75x1.25\"" msgstr "2.75x1.25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/sec." msgid "200 mm/sec." msgstr "200 mm/sec." msgid "203dpi" msgstr "203dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24-Pin Series" msgid "240x72dpi" msgstr "240x72dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/sec." msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 inches/sec." msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00\"" msgid "3.00x1.25\"" msgstr "3.00x1.25\"" msgid "3.00x2.00\"" msgstr "3.00x2.00\"" msgid "3.00x3.00\"" msgstr "3.00x3.00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00\"" msgid "3.25x5.00\"" msgstr "3.25x5.00\"" msgid "3.25x5.50\"" msgstr "3.25x5.50\"" msgid "3.25x5.83\"" msgstr "3.25x5.83\"" msgid "3.25x7.83\"" msgstr "3.25x7.83\"" msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "3.5\" Disk" msgid "3.50x1.00\"" msgstr "3.50x1.00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/sec." msgid "300 mm/sec." msgstr "300 mm/sec." msgid "300dpi" msgstr "300dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360dpi" msgid "360x180dpi" msgstr "360x180dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 inches/sec." msgid "4.00x1.00\"" msgstr "4.00x1.00\"" msgid "4.00x13.00\"" msgstr "4.00x13.00\"" msgid "4.00x2.00\"" msgstr "4.00x2.00\"" msgid "4.00x2.50\"" msgstr "4.00x2.50\"" msgid "4.00x3.00\"" msgstr "4.00x3.00\"" msgid "4.00x4.00\"" msgstr "4.00x4.00\"" msgid "4.00x5.00\"" msgstr "4.00x5.00\"" msgid "4.00x6.00\"" msgstr "4.00x6.00\"" msgid "4.00x6.50\"" msgstr "4.00x6.50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/sec." msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 inches/sec." msgid "5 x 7" msgstr "5 x 7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 inches/sec." msgid "6.00x1.00\"" msgstr "6.00x1.00\"" msgid "6.00x2.00\"" msgstr "6.00x2.00\"" msgid "6.00x3.00\"" msgstr "6.00x3.00\"" msgid "6.00x4.00\"" msgstr "6.00x4.00\"" msgid "6.00x5.00\"" msgstr "6.00x5.00\"" msgid "6.00x6.00\"" msgstr "6.00x6.00\"" msgid "6.00x6.50\"" msgstr "6.00x6.50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/sec." msgid "600dpi" msgstr "600dpi" msgid "60dpi" msgstr "60dpi" msgid "60x72dpi" msgstr "60x72dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 inches/sec." msgid "7 x 9" msgstr "7 x 9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 inches/sec." msgid "8 x 10" msgstr "8 x 10" msgid "8.00x1.00\"" msgstr "8.00x1.00\"" msgid "8.00x2.00\"" msgstr "8.00x2.00\"" msgid "8.00x3.00\"" msgstr "8.00x3.00\"" msgid "8.00x4.00\"" msgstr "8.00x4.00\"" msgid "8.00x5.00\"" msgstr "8.00x5.00\"" msgid "8.00x6.00\"" msgstr "8.00x6.00\"" msgid "8.00x6.50\"" msgstr "8.00x6.50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/sec." msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 inches/sec." msgid "9 x 11" msgstr "9 x 11" msgid "9 x 12" msgstr "9 x 12" msgid "9-Pin Series" msgstr "9-Pin Series" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Invalid help command unknown." #, c-format msgid "A class named \"%s\" already exists." msgstr "A class named \"%s\" already exists." #, c-format msgid "A printer named \"%s\" already exists." msgstr "A printer named \"%s\" already exists." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 Long Edge" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 Long Edge" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 Long Edge" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 Long Edge" msgid "A3 Oversize" msgstr "A3 Oversize" msgid "A3 Oversize Long Edge" msgstr "A3 Oversize Long Edge" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 Long Edge" msgid "A4 Oversize" msgstr "A4 Oversize" msgid "A4 Small" msgstr "A4 Small" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 Long Edge" msgid "A5 Oversize" msgstr "A5 Oversize" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 Long Edge" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C Long Edge" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D Long Edge" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E Long Edge" msgid "Accept Jobs" msgstr "Accept Jobs" msgid "Accepted" msgstr "Accepted" msgid "Add Class" msgstr "Add Class" msgid "Add Printer" msgstr "Add Printer" msgid "Address" msgstr "Address" msgid "Administration" msgstr "Administration" msgid "Always" msgstr "Always" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Applicator" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "Attempt to set %s printer-state to bad value %d." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "Attribute \"%s\" is in the wrong group." #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "Attribute \"%s\" is the wrong value type." #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Attribute groups are out of order (%x < %x)." msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "B5 Oversize" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "Bad \"printer-id\" value %d." #, c-format msgid "Bad '%s' value." msgstr "Bad '%s' value." #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "Bad 'document-format' value \"%s\"." msgid "Bad CloseUI/JCLCloseUI" msgstr "Bad CloseUI/JCLCloseUI" msgid "Bad NULL dests pointer" msgstr "Bad NULL dests pointer" msgid "Bad OpenGroup" msgstr "Bad OpenGroup" msgid "Bad OpenUI/JCLOpenUI" msgstr "Bad OpenUI/JCLOpenUI" msgid "Bad OrderDependency" msgstr "Bad OrderDependency" msgid "Bad PPD cache file." msgstr "Bad PPD cache file." msgid "Bad PPD file." msgstr "Bad PPD file." msgid "Bad Request" msgstr "Bad Request" msgid "Bad SNMP version number" msgstr "Bad SNMP version number" msgid "Bad UIConstraints" msgstr "Bad UIConstraints" msgid "Bad URI." msgstr "Bad URI." msgid "Bad arguments to function" msgstr "Bad arguments to function" #, c-format msgid "Bad copies value %d." msgstr "Bad copies value %d." msgid "Bad custom parameter" msgstr "Bad custom parameter" #, c-format msgid "Bad device-uri \"%s\"." msgstr "Bad device-uri \"%s\"." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Bad device-uri scheme \"%s\"." #, c-format msgid "Bad document-format \"%s\"." msgstr "Bad document-format \"%s\"." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "Bad document-format-default \"%s\"." msgid "Bad filename buffer" msgstr "Bad filename buffer" msgid "Bad hostname/address in URI" msgstr "Bad hostname/address in URI" #, c-format msgid "Bad job-name value: %s" msgstr "Bad job-name value: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Bad job-name value: Wrong type or count." msgid "Bad job-priority value." msgstr "Bad job-priority value." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Bad job-sheets value \"%s\"." msgid "Bad job-sheets value type." msgstr "Bad job-sheets value type." msgid "Bad job-state value." msgstr "Bad job-state value." #, c-format msgid "Bad job-uri \"%s\"." msgstr "Bad job-uri \"%s\"." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "Bad notify-pull-method \"%s\"." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "Bad notify-recipient-uri \"%s\"." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "Bad notify-user-data \"%s\"." #, c-format msgid "Bad number-up value %d." msgstr "Bad number-up value %d." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Bad page-ranges values %d-%d." msgid "Bad port number in URI" msgstr "Bad port number in URI" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "Bad port-monitor \"%s\"." #, c-format msgid "Bad printer-state value %d." msgstr "Bad printer-state value %d." msgid "Bad printer-uri." msgstr "Bad printer-uri." #, c-format msgid "Bad request ID %d." msgstr "Bad request ID %d." #, c-format msgid "Bad request version number %d.%d." msgstr "Bad request version number %d.%d." msgid "Bad resource in URI" msgstr "Bad resource in URI" msgid "Bad scheme in URI" msgstr "Bad scheme in URI" msgid "Bad username in URI" msgstr "Bad username in URI" msgid "Bad value string" msgstr "Bad value string" msgid "Bad/empty URI" msgstr "Bad/empty URI" msgid "Banners" msgstr "Banners" msgid "Bond Paper" msgstr "Bond Paper" msgid "Booklet" msgstr "Booklet" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "Boolean expected for waiteof option \"%s\"." msgid "Buffer overflow detected, aborting." msgstr "Buffer overflow detected, aborting." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "CPCL Label Printer" msgid "Cancel Jobs" msgstr "Cancel Jobs" msgid "Canceling print job." msgstr "Canceling print job." msgid "Cannot change printer-is-shared for remote queues." msgstr "Cannot change printer-is-shared for remote queues." msgid "Cannot share a remote Kerberized printer." msgstr "Cannot share a remote Kerberized printer." msgid "Cassette" msgstr "Cassette" msgid "Change Settings" msgstr "Change Settings" #, c-format msgid "Character set \"%s\" not supported." msgstr "Character set \"%s\" not supported." msgid "Classes" msgstr "Classes" msgid "Clean Print Heads" msgstr "Clean Print Heads" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job doesn't support the job-uri attribute." msgid "Color" msgstr "Color" msgid "Color Mode" msgstr "Color Mode" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Community name uses indefinite length" msgid "Connected to printer." msgstr "Connected to printer." msgid "Connecting to printer." msgstr "Connecting to printer." msgid "Continue" msgstr "Continue" msgid "Continuous" msgstr "Continuous" msgid "Control file sent successfully." msgstr "Control file sent successfully." msgid "Copying print data." msgstr "Copying print data." msgid "Created" msgstr "Created" msgid "Credentials do not validate against site CA certificate." msgstr "Credentials do not validate against site CA certificate." msgid "Credentials have expired." msgstr "Credentials have expired." msgid "Custom" msgstr "Custom" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Cut" msgid "Cutter" msgstr "Cutter" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Dark" msgid "Darkness" msgstr "Darkness" msgid "Data file sent successfully." msgstr "Data file sent successfully." msgid "Deep Color" msgstr "Deep Color" msgid "Deep Gray" msgstr "Deep Gray" msgid "Delete Class" msgstr "Delete Class" msgid "Delete Printer" msgstr "Delete Printer" msgid "DeskJet Series" msgstr "DeskJet Series" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "Destination \"%s\" is not accepting jobs." msgid "Device CMYK" msgstr "Device CMYK" msgid "Device Gray" msgstr "Device Gray" msgid "Device RGB" msgstr "Device RGB" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgid "Direct Thermal Media" msgstr "Direct Thermal Media" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "Directory \"%s\" contains a relative path." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "Directory \"%s\" is a file." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Directory \"%s\" not available: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Disabled" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "Document #%d does not exist in job #%d." msgid "Draft" msgstr "Draft" msgid "Duplexer" msgstr "Duplexer" msgid "EPL1 Label Printer" msgstr "EPL1 Label Printer" msgid "EPL2 Label Printer" msgstr "EPL2 Label Printer" msgid "Edit Configuration File" msgstr "Edit Configuration File" msgid "Encryption is not supported." msgstr "Encryption is not supported." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Ending Banner" msgid "English" msgstr "English" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgid "Envelope #10" msgstr "Envelope #10" msgid "Envelope #11" msgstr "Envelope #11" msgid "Envelope #12" msgstr "Envelope #12" msgid "Envelope #14" msgstr "Envelope #14" msgid "Envelope #9" msgstr "Envelope #9" msgid "Envelope B4" msgstr "Envelope B4" msgid "Envelope B5" msgstr "Envelope B5" msgid "Envelope B6" msgstr "Envelope B6" msgid "Envelope C0" msgstr "Envelope C0" msgid "Envelope C1" msgstr "Envelope C1" msgid "Envelope C2" msgstr "Envelope C2" msgid "Envelope C3" msgstr "Envelope C3" msgid "Envelope C4" msgstr "Envelope C4" msgid "Envelope C5" msgstr "Envelope C5" msgid "Envelope C6" msgstr "Envelope C6" msgid "Envelope C65" msgstr "Envelope C65" msgid "Envelope C7" msgstr "Envelope C7" msgid "Envelope Choukei 3" msgstr "Envelope Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Envelope Choukei 3 Long Edge" msgid "Envelope Choukei 4" msgstr "Envelope Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Envelope Choukei 4 Long Edge" msgid "Envelope DL" msgstr "Envelope DL" msgid "Envelope Feed" msgstr "Envelope Feed" msgid "Envelope Invite" msgstr "Envelope Invite" msgid "Envelope Italian" msgstr "Envelope Italian" msgid "Envelope Kaku2" msgstr "Envelope Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Envelope Kaku2 Long Edge" msgid "Envelope Kaku3" msgstr "Envelope Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Envelope Kaku3 Long Edge" msgid "Envelope Monarch" msgstr "Envelope Monarch" msgid "Envelope PRC1" msgstr "Envelope PRC1" msgid "Envelope PRC1 Long Edge" msgstr "Envelope PRC1 Long Edge" msgid "Envelope PRC10" msgstr "Envelope PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Envelope PRC10 Long Edge" msgid "Envelope PRC2" msgstr "Envelope PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Envelope PRC2 Long Edge" msgid "Envelope PRC3" msgstr "Envelope PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Envelope PRC3 Long Edge" msgid "Envelope PRC4" msgstr "Envelope PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Envelope PRC4 Long Edge" msgid "Envelope PRC5 Long Edge" msgstr "Envelope PRC5 Long Edge" msgid "Envelope PRC5PRC5" msgstr "Envelope PRC5PRC5" msgid "Envelope PRC6" msgstr "Envelope PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Envelope PRC6 Long Edge" msgid "Envelope PRC7" msgstr "Envelope PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Envelope PRC7 Long Edge" msgid "Envelope PRC8" msgstr "Envelope PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Envelope PRC8 Long Edge" msgid "Envelope PRC9" msgstr "Envelope PRC9" msgid "Envelope PRC9 Long Edge" msgstr "Envelope PRC9 Long Edge" msgid "Envelope Personal" msgstr "Envelope Personal" msgid "Envelope You4" msgstr "Envelope You4" msgid "Envelope You4 Long Edge" msgstr "Envelope You4 Long Edge" msgid "Environment Variables:" msgstr "Environment Variables:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Error Policy" msgid "Error reading raster data." msgstr "Error reading raster data." msgid "Error sending raster data." msgstr "Error sending raster data." msgid "Error: need hostname after \"-h\" option." msgstr "Error: need hostname after \"-h\" option." msgid "European Fanfold" msgstr "European Fanfold" msgid "European Fanfold Legal" msgstr "European Fanfold Legal" msgid "Every 10 Labels" msgstr "Every 10 Labels" msgid "Every 2 Labels" msgstr "Every 2 Labels" msgid "Every 3 Labels" msgstr "Every 3 Labels" msgid "Every 4 Labels" msgstr "Every 4 Labels" msgid "Every 5 Labels" msgstr "Every 5 Labels" msgid "Every 6 Labels" msgstr "Every 6 Labels" msgid "Every 7 Labels" msgstr "Every 7 Labels" msgid "Every 8 Labels" msgstr "Every 8 Labels" msgid "Every 9 Labels" msgstr "Every 9 Labels" msgid "Every Label" msgstr "Every Label" msgid "Executive" msgstr "Executive" msgid "Expectation Failed" msgstr "Expectation Failed" msgid "Expressions:" msgstr "Expressions:" msgid "Fast Grayscale" msgstr "Fast Grayscale" #, c-format msgid "File \"%s\" contains a relative path." msgstr "File \"%s\" contains a relative path." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "File \"%s\" is a directory." #, c-format msgid "File \"%s\" not available: %s" msgstr "File \"%s\" not available: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "File Folder" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Finished page %d." msgid "Finishing Preset" msgstr "Finishing Preset" msgid "Fold" msgstr "Fold" msgid "Folio" msgstr "Folio" msgid "Forbidden" msgstr "Forbidden" msgid "Found" msgstr "Found" msgid "General" msgstr "General" msgid "Generic" msgstr "Generic" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU uses indefinite length" msgid "Glossy Paper" msgstr "Glossy Paper" msgid "Got a printer-uri attribute but no job-id." msgstr "Got a printer-uri attribute but no job-id." msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Grayscale" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Hanging Folder" msgid "Hash buffer too small." msgstr "Hash buffer too small." msgid "Help file not in index." msgstr "Help file not in index." msgid "High" msgstr "High" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "IPP 1setOf attribute with incompatible value tags." msgid "IPP attribute has no name." msgstr "IPP attribute has no name." msgid "IPP attribute is not a member of the message." msgstr "IPP attribute is not a member of the message." msgid "IPP begCollection value not 0 bytes." msgstr "IPP begCollection value not 0 bytes." msgid "IPP boolean value not 1 byte." msgstr "IPP boolean value not 1 byte." msgid "IPP date value not 11 bytes." msgstr "IPP date value not 11 bytes." msgid "IPP endCollection value not 0 bytes." msgstr "IPP endCollection value not 0 bytes." msgid "IPP enum value not 4 bytes." msgstr "IPP enum value not 4 bytes." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP extension tag larger than 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "IPP integer value not 4 bytes." msgid "IPP language length overflows value." msgstr "IPP language length overflows value." msgid "IPP language length too large." msgstr "IPP language length too large." msgid "IPP member name is not empty." msgstr "IPP member name is not empty." msgid "IPP memberName value is empty." msgstr "IPP memberName value is empty." msgid "IPP memberName with no attribute." msgstr "IPP memberName with no attribute." msgid "IPP name larger than 32767 bytes." msgstr "IPP name larger than 32767 bytes." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP nameWithLanguage value less than minimum 4 bytes." msgid "IPP octetString length too large." msgstr "IPP octetString length too large." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP rangeOfInteger value not 8 bytes." msgid "IPP resolution value not 9 bytes." msgstr "IPP resolution value not 9 bytes." msgid "IPP string length overflows value." msgstr "IPP string length overflows value." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP textWithLanguage value less than minimum 4 bytes." msgid "IPP value larger than 32767 bytes." msgstr "IPP value larger than 32767 bytes." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "IPPFIND_SERVICE_DOMAIN Domain name" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "IPPFIND_SERVICE_NAME Service instance name" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "IPPFIND_SERVICE_PORT Port number" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "IPPFIND_SERVICE_SCHEME URI scheme" msgid "IPPFIND_SERVICE_URI URI" msgstr "IPPFIND_SERVICE_URI URI" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "IPPFIND_TXT_* Value of TXT record key" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Illegal control character" msgid "Illegal main keyword string" msgstr "Illegal main keyword string" msgid "Illegal option keyword string" msgstr "Illegal option keyword string" msgid "Illegal translation string" msgstr "Illegal translation string" msgid "Illegal whitespace character" msgstr "Illegal whitespace character" msgid "Installable Options" msgstr "Installable Options" msgid "Installed" msgstr "Installed" msgid "IntelliBar Label Printer" msgstr "IntelliBar Label Printer" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Internal Server Error" msgid "Internal error" msgstr "Internal error" msgid "Internet Postage 2-Part" msgstr "Internet Postage 2-Part" msgid "Internet Postage 3-Part" msgstr "Internet Postage 3-Part" msgid "Internet Printing Protocol" msgstr "Internet Printing Protocol" msgid "Invalid group tag." msgstr "Invalid group tag." msgid "Invalid media name arguments." msgstr "Invalid media name arguments." msgid "Invalid media size." msgstr "Invalid media size." msgid "Invalid named IPP attribute in collection." msgstr "Invalid named IPP attribute in collection." msgid "Invalid ppd-name value." msgstr "Invalid ppd-name value." #, c-format msgid "Invalid printer command \"%s\"." msgstr "Invalid printer command \"%s\"." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 Long Edge" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 Long Edge" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 Long Edge" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "Job #%d cannot be restarted - no files." #, c-format msgid "Job #%d does not exist." msgstr "Job #%d does not exist." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Job #%d is already aborted - can't cancel." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Job #%d is already canceled - can't cancel." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Job #%d is already completed - can't cancel." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "Job #%d is finished and cannot be altered." #, c-format msgid "Job #%d is not complete." msgstr "Job #%d is not complete." #, c-format msgid "Job #%d is not held for authentication." msgstr "Job #%d is not held for authentication." #, c-format msgid "Job #%d is not held." msgstr "Job #%d is not held." msgid "Job Completed" msgstr "Job Completed" msgid "Job Created" msgstr "Job Created" msgid "Job Options Changed" msgstr "Job Options Changed" msgid "Job Stopped" msgstr "Job Stopped" msgid "Job is completed and cannot be changed." msgstr "Job is completed and cannot be changed." msgid "Job operation failed" msgstr "Job operation failed" msgid "Job state cannot be changed." msgstr "Job state cannot be changed." msgid "Job subscriptions cannot be renewed." msgstr "Job subscriptions cannot be renewed." msgid "Jobs" msgstr "Jobs" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR Host or Printer" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" "LPDEST environment variable names default destination that does not exist." msgid "Label Printer" msgstr "Label Printer" msgid "Label Top" msgstr "Label Top" #, c-format msgid "Language \"%s\" not supported." msgstr "Language \"%s\" not supported." msgid "Large Address" msgstr "Large Address" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Series PCL 4/5" msgid "Letter Oversize" msgstr "Letter Oversize" msgid "Letter Oversize Long Edge" msgstr "Letter Oversize Long Edge" msgid "Light" msgstr "Light" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Line longer than the maximum allowed (255 characters)" msgid "List Available Printers" msgstr "List Available Printers" #, c-format msgid "Listening on port %d." msgstr "Listening on port %d." msgid "Local printer created." msgstr "Local printer created." msgid "Long-Edge (Portrait)" msgstr "Long-Edge (Portrait)" msgid "Looking for printer." msgstr "Looking for printer." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Manual Feed" msgid "Media Size" msgstr "Media Size" msgid "Media Source" msgstr "Media Source" msgid "Media Tracking" msgstr "Media Tracking" msgid "Media Type" msgstr "Media Type" msgid "Medium" msgstr "Medium" msgid "Memory allocation error" msgstr "Memory allocation error" msgid "Missing CloseGroup" msgstr "Missing CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "Missing CloseUI/JCLCloseUI" msgid "Missing PPD-Adobe-4.x header" msgstr "Missing PPD-Adobe-4.x header" msgid "Missing asterisk in column 1" msgstr "Missing asterisk in column 1" msgid "Missing document-number attribute." msgstr "Missing document-number attribute." msgid "Missing form variable" msgstr "Missing form variable" msgid "Missing last-document attribute in request." msgstr "Missing last-document attribute in request." msgid "Missing media or media-col." msgstr "Missing media or media-col." msgid "Missing media-size in media-col." msgstr "Missing media-size in media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Missing notify-subscription-ids attribute." msgid "Missing option keyword" msgstr "Missing option keyword" msgid "Missing requesting-user-name attribute." msgstr "Missing requesting-user-name attribute." #, c-format msgid "Missing required attribute \"%s\"." msgstr "Missing required attribute \"%s\"." msgid "Missing required attributes." msgstr "Missing required attributes." msgid "Missing resource in URI" msgstr "Missing resource in URI" msgid "Missing scheme in URI" msgstr "Missing scheme in URI" msgid "Missing value string" msgstr "Missing value string" msgid "Missing x-dimension in media-size." msgstr "Missing x-dimension in media-size." msgid "Missing y-dimension in media-size." msgstr "Missing y-dimension in media-size." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgid "Modifiers:" msgstr "Modifiers:" msgid "Modify Class" msgstr "Modify Class" msgid "Modify Printer" msgstr "Modify Printer" msgid "Move All Jobs" msgstr "Move All Jobs" msgid "Move Job" msgstr "Move Job" msgid "Moved Permanently" msgstr "Moved Permanently" msgid "NULL PPD file pointer" msgstr "NULL PPD file pointer" msgid "Name OID uses indefinite length" msgstr "Name OID uses indefinite length" msgid "Nested classes are not allowed." msgstr "Nested classes are not allowed." msgid "Never" msgstr "Never" msgid "New credentials are not valid for name." msgstr "New credentials are not valid for name." msgid "New credentials are older than stored credentials." msgstr "New credentials are older than stored credentials." msgid "No" msgstr "No" msgid "No Content" msgstr "No Content" msgid "No IPP attributes." msgstr "No IPP attributes." msgid "No PPD name" msgstr "No PPD name" msgid "No VarBind SEQUENCE" msgstr "No VarBind SEQUENCE" msgid "No active connection" msgstr "No active connection" msgid "No active connection." msgstr "No active connection." #, c-format msgid "No active jobs on %s." msgstr "No active jobs on %s." msgid "No attributes in request." msgstr "No attributes in request." msgid "No authentication information provided." msgstr "No authentication information provided." msgid "No common name specified." msgstr "No common name specified." msgid "No community name" msgstr "No community name" msgid "No default destination." msgstr "No default destination." msgid "No default printer." msgstr "No default printer." msgid "No destinations added." msgstr "No destinations added." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "No device URI found in argv[0] or in DEVICE_URI environment variable." msgid "No error-index" msgstr "No error-index" msgid "No error-status" msgstr "No error-status" msgid "No file in print request." msgstr "No file in print request." msgid "No modification time" msgstr "No modification time" msgid "No name OID" msgstr "No name OID" msgid "No pages were found." msgstr "No pages were found." msgid "No printer name" msgstr "No printer name" msgid "No printer-uri found" msgstr "No printer-uri found" msgid "No printer-uri found for class" msgstr "No printer-uri found for class" msgid "No printer-uri in request." msgstr "No printer-uri in request." msgid "No request URI." msgstr "No request URI." msgid "No request protocol version." msgstr "No request protocol version." msgid "No request sent." msgstr "No request sent." msgid "No request-id" msgstr "No request-id" msgid "No stored credentials, not valid for name." msgstr "No stored credentials, not valid for name." msgid "No subscription attributes in request." msgstr "No subscription attributes in request." msgid "No subscriptions found." msgstr "No subscriptions found." msgid "No variable-bindings SEQUENCE" msgstr "No variable-bindings SEQUENCE" msgid "No version number" msgstr "No version number" msgid "Non-continuous (Mark sensing)" msgstr "Non-continuous (Mark sensing)" msgid "Non-continuous (Web sensing)" msgstr "Non-continuous (Web sensing)" msgid "None" msgstr "None" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "Not Found" msgid "Not Implemented" msgstr "Not Implemented" msgid "Not Installed" msgstr "Not Installed" msgid "Not Modified" msgstr "Not Modified" msgid "Not Supported" msgstr "Not Supported" msgid "Not allowed to print." msgstr "Not allowed to print." msgid "Note" msgstr "Note" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Off (1-Sided)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Online Help" msgid "Only local users can create a local printer." msgstr "Only local users can create a local printer." #, c-format msgid "Open of %s failed: %s" msgstr "Open of %s failed: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup without a CloseGroup first" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgid "Operation Policy" msgstr "Operation Policy" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "Option \"%s\" cannot be included via %%%%IncludeFeature." msgid "Options Installed" msgstr "Options Installed" msgid "Options:" msgstr "Options:" msgid "Other Media" msgstr "Other Media" msgid "Other Tray" msgstr "Other Tray" msgid "Out of date PPD cache file." msgstr "Out of date PPD cache file." msgid "Out of memory." msgstr "Out of memory." msgid "Output Mode" msgstr "Output Mode" msgid "PCL Laser Printer" msgstr "PCL Laser Printer" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K Long Edge" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K Long Edge" msgid "PRC32K Oversize" msgstr "PRC32K Oversize" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K Oversize Long Edge" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" "PRINTER environment variable names default destination that does not exist." msgid "Packet does not contain a Get-Response-PDU" msgstr "Packet does not contain a Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Packet does not start with SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Password for %s on %s? " msgid "Pause Class" msgstr "Pause Class" msgid "Pause Printer" msgstr "Pause Printer" msgid "Peel-Off" msgstr "Peel-Off" msgid "Photo" msgstr "Photo" msgid "Photo Labels" msgstr "Photo Labels" msgid "Plain Paper" msgstr "Plain Paper" msgid "Policies" msgstr "Policies" msgid "Port Monitor" msgstr "Port Monitor" msgid "PostScript Printer" msgstr "PostScript Printer" msgid "Postcard" msgstr "Postcard" msgid "Postcard Double" msgstr "Postcard Double" msgid "Postcard Double Long Edge" msgstr "Postcard Double Long Edge" msgid "Postcard Long Edge" msgstr "Postcard Long Edge" msgid "Preparing to print." msgstr "Preparing to print." msgid "Print Density" msgstr "Print Density" msgid "Print Job:" msgstr "Print Job:" msgid "Print Mode" msgstr "Print Mode" msgid "Print Quality" msgstr "Print Quality" msgid "Print Rate" msgstr "Print Rate" msgid "Print Self-Test Page" msgstr "Print Self-Test Page" msgid "Print Speed" msgstr "Print Speed" msgid "Print Test Page" msgstr "Print Test Page" msgid "Print and Cut" msgstr "Print and Cut" msgid "Print and Tear" msgstr "Print and Tear" msgid "Print file sent." msgstr "Print file sent." msgid "Print job canceled at printer." msgstr "Print job canceled at printer." msgid "Print job too large." msgstr "Print job too large." msgid "Print job was not accepted." msgstr "Print job was not accepted." #, c-format msgid "Printer \"%s\" already exists." msgstr "Printer \"%s\" already exists." msgid "Printer Added" msgstr "Printer Added" msgid "Printer Default" msgstr "Printer Default" msgid "Printer Deleted" msgstr "Printer Deleted" msgid "Printer Modified" msgstr "Printer Modified" msgid "Printer Paused" msgstr "Printer Paused" msgid "Printer Settings" msgstr "Printer Settings" msgid "Printer cannot print supplied content." msgstr "Printer cannot print supplied content." msgid "Printer cannot print with supplied options." msgstr "Printer cannot print with supplied options." msgid "Printer does not support required IPP attributes or document formats." msgstr "Printer does not support required IPP attributes or document formats." msgid "Printer:" msgstr "Printer:" msgid "Printers" msgstr "Printers" #, c-format msgid "Printing page %d, %u%% complete." msgstr "Printing page %d, %u%% complete." msgid "Punch" msgstr "Punch" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "Quota limit reached." msgid "Rank Owner Job File(s) Total Size" msgstr "Rank Owner Job File(s) Total Size" msgid "Reject Jobs" msgstr "Reject Jobs" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "Remote host did not accept control file (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "Remote host did not accept data file (%d)." msgid "Reprint After Error" msgstr "Reprint After Error" msgid "Request Entity Too Large" msgstr "Request Entity Too Large" msgid "Resolution" msgstr "Resolution" msgid "Resume Class" msgstr "Resume Class" msgid "Resume Printer" msgstr "Resume Printer" msgid "Return Address" msgstr "Return Address" msgid "Rewind" msgstr "Rewind" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE uses indefinite length" msgid "SSL/TLS Negotiation Error" msgstr "SSL/TLS Negotiation Error" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "See Other" msgid "See remote printer." msgstr "See remote printer." msgid "Self-signed credentials are blocked." msgstr "Self-signed credentials are blocked." msgid "Sending data to printer." msgstr "Sending data to printer." msgid "Server Restarted" msgstr "Server Restarted" msgid "Server Security Auditing" msgstr "Server Security Auditing" msgid "Server Started" msgstr "Server Started" msgid "Server Stopped" msgstr "Server Stopped" msgid "Server credentials not set." msgstr "Server credentials not set." msgid "Service Unavailable" msgstr "Service Unavailable" msgid "Set Allowed Users" msgstr "Set Allowed Users" msgid "Set As Server Default" msgstr "Set As Server Default" msgid "Set Class Options" msgstr "Set Class Options" msgid "Set Printer Options" msgstr "Set Printer Options" msgid "Set Publishing" msgstr "Set Publishing" msgid "Shipping Address" msgstr "Shipping Address" msgid "Short-Edge (Landscape)" msgstr "Short-Edge (Landscape)" msgid "Special Paper" msgstr "Special Paper" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Spooling job, %.0f%% complete." msgid "Standard" msgstr "Standard" msgid "Staple" msgstr "Staple" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Starting Banner" #, c-format msgid "Starting page %d." msgstr "Starting page %d." msgid "Statement" msgstr "Statement" #, c-format msgid "Subscription #%d does not exist." msgstr "Subscription #%d does not exist." msgid "Substitutions:" msgstr "Substitutions:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Switching Protocols" msgid "Tabloid" msgstr "Tabloid" msgid "Tabloid Oversize" msgstr "Tabloid Oversize" msgid "Tabloid Oversize Long Edge" msgstr "Tabloid Oversize Long Edge" msgid "Tear" msgstr "Tear" msgid "Tear-Off" msgstr "Tear-Off" msgid "Tear-Off Adjust Position" msgstr "Tear-Off Adjust Position" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "The \"%s\" attribute is required for print jobs." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "The %s attribute cannot be provided with job-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" "The '%s' Job Status attribute cannot be supplied in a job creation request." #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "The '%s' operation attribute cannot be supplied in a Create-Job request." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "The PPD file \"%s\" could not be found." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "The PPD file \"%s\" could not be opened: %s" msgid "The PPD file could not be opened." msgstr "The PPD file could not be opened." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "The notify-lease-duration attribute cannot be used with job subscriptions." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "The notify-user-data value is too large (%d > 63 octets)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" "The printer configuration is incorrect or the printer no longer exists." msgid "The printer did not respond." msgstr "The printer did not respond." msgid "The printer is in use." msgstr "The printer is in use." msgid "The printer is not connected." msgstr "The printer is not connected." msgid "The printer is not responding." msgstr "The printer is not responding." msgid "The printer is now connected." msgstr "The printer is now connected." msgid "The printer is now online." msgstr "The printer is now online." msgid "The printer is offline." msgstr "The printer is offline." msgid "The printer is unreachable at this time." msgstr "The printer is unreachable at this time." msgid "The printer may not exist or is unavailable at this time." msgstr "The printer may not exist or is unavailable at this time." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgid "The printer or class does not exist." msgstr "The printer or class does not exist." msgid "The printer or class is not shared." msgstr "The printer or class is not shared." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "The printer-uri \"%s\" contains invalid characters." msgid "The printer-uri attribute is required." msgstr "The printer-uri attribute is required." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "The which-jobs value \"%s\" is not supported." msgid "There are too many subscriptions." msgstr "There are too many subscriptions." msgid "There was an unrecoverable USB error." msgstr "There was an unrecoverable USB error." msgid "Thermal Transfer Media" msgstr "Thermal Transfer Media" msgid "Too many active jobs." msgstr "Too many active jobs." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Too many job-sheets values (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Too many printer-state-reasons values (%d > %d)." msgid "Transparency" msgstr "Transparency" msgid "Tray" msgstr "Tray" msgid "Tray 1" msgstr "Tray 1" msgid "Tray 2" msgstr "Tray 2" msgid "Tray 3" msgstr "Tray 3" msgid "Tray 4" msgstr "Tray 4" msgid "Trust on first use is disabled." msgstr "Trust on first use is disabled." msgid "URI Too Long" msgstr "URI Too Long" msgid "URI too large" msgstr "URI too large" msgid "US Fanfold" msgstr "US Fanfold" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Legal" msgid "US Legal Oversize" msgstr "US Legal Oversize" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "US Letter Long Edge" msgid "US Letter Oversize" msgstr "US Letter Oversize" msgid "US Letter Oversize Long Edge" msgstr "US Letter Oversize Long Edge" msgid "US Letter Small" msgstr "US Letter Small" msgid "Unable to access cupsd.conf file" msgstr "Unable to access cupsd.conf file" msgid "Unable to access help file." msgstr "Unable to access help file." msgid "Unable to add class" msgstr "Unable to add class" msgid "Unable to add document to print job." msgstr "Unable to add document to print job." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Unable to add job for destination \"%s\"." msgid "Unable to add printer" msgstr "Unable to add printer" msgid "Unable to allocate memory for file types." msgstr "Unable to allocate memory for file types." msgid "Unable to allocate memory for page info" msgstr "Unable to allocate memory for page info" msgid "Unable to allocate memory for pages array" msgstr "Unable to allocate memory for pages array" msgid "Unable to allocate memory for printer" msgstr "Unable to allocate memory for printer" msgid "Unable to cancel print job." msgstr "Unable to cancel print job." msgid "Unable to change printer" msgstr "Unable to change printer" msgid "Unable to change printer-is-shared attribute" msgstr "Unable to change printer-is-shared attribute" msgid "Unable to change server settings" msgstr "Unable to change server settings" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "Unable to compile mimeMediaType regular expression: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "Unable to compile naturalLanguage regular expression: %s." msgid "Unable to configure printer options." msgstr "Unable to configure printer options." msgid "Unable to connect to host." msgstr "Unable to connect to host." msgid "Unable to contact printer, queuing on next printer in class." msgstr "Unable to contact printer, queuing on next printer in class." #, c-format msgid "Unable to copy PPD file - %s" msgstr "Unable to copy PPD file - %s" msgid "Unable to copy PPD file." msgstr "Unable to copy PPD file." msgid "Unable to create credentials from array." msgstr "Unable to create credentials from array." msgid "Unable to create printer-uri" msgstr "Unable to create printer-uri" msgid "Unable to create printer." msgstr "Unable to create printer." msgid "Unable to create server credentials." msgstr "Unable to create server credentials." #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "Unable to create spool directory \"%s\": %s" msgid "Unable to create temporary file" msgstr "Unable to create temporary file" msgid "Unable to delete class" msgstr "Unable to delete class" msgid "Unable to delete printer" msgstr "Unable to delete printer" msgid "Unable to do maintenance command" msgstr "Unable to do maintenance command" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "Unable to edit cupsd.conf files larger than 1MB" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "Unable to establish a secure connection to host (%d)." msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "Unable to establish a secure connection to host (certificate chain invalid)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "Unable to establish a secure connection to host (certificate not yet valid)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "Unable to establish a secure connection to host (expired certificate)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "Unable to establish a secure connection to host (host name mismatch)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "Unable to establish a secure connection to host (self-signed certificate)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "Unable to establish a secure connection to host (untrusted certificate)." msgid "Unable to establish a secure connection to host." msgstr "Unable to establish a secure connection to host." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "Unable to execute command \"%s\": %s" msgid "Unable to find destination for job" msgstr "Unable to find destination for job" msgid "Unable to find printer." msgstr "Unable to find printer." msgid "Unable to find server credentials." msgstr "Unable to find server credentials." msgid "Unable to get backend exit status." msgstr "Unable to get backend exit status." msgid "Unable to get class list" msgstr "Unable to get class list" msgid "Unable to get class status" msgstr "Unable to get class status" msgid "Unable to get list of printer drivers" msgstr "Unable to get list of printer drivers" msgid "Unable to get printer attributes" msgstr "Unable to get printer attributes" msgid "Unable to get printer list" msgstr "Unable to get printer list" msgid "Unable to get printer status" msgstr "Unable to get printer status" msgid "Unable to get printer status." msgstr "Unable to get printer status." msgid "Unable to load help index." msgstr "Unable to load help index." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "Unable to locate printer \"%s\"." msgid "Unable to locate printer." msgstr "Unable to locate printer." msgid "Unable to modify class" msgstr "Unable to modify class" msgid "Unable to modify printer" msgstr "Unable to modify printer" msgid "Unable to move job" msgstr "Unable to move job" msgid "Unable to move jobs" msgstr "Unable to move jobs" msgid "Unable to open PPD file" msgstr "Unable to open PPD file" msgid "Unable to open cupsd.conf file:" msgstr "Unable to open cupsd.conf file:" msgid "Unable to open device file" msgstr "Unable to open device file" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "Unable to open document #%d in job #%d." msgid "Unable to open help file." msgstr "Unable to open help file." msgid "Unable to open print file" msgstr "Unable to open print file" msgid "Unable to open raster file" msgstr "Unable to open raster file" msgid "Unable to print test page" msgstr "Unable to print test page" msgid "Unable to read print data." msgstr "Unable to read print data." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "Unable to register \"%s.%s\": %d" msgid "Unable to rename job document file." msgstr "Unable to rename job document file." msgid "Unable to resolve printer-uri." msgstr "Unable to resolve printer-uri." msgid "Unable to see in file" msgstr "Unable to see in file" msgid "Unable to send command to printer driver" msgstr "Unable to send command to printer driver" msgid "Unable to send data to printer." msgstr "Unable to send data to printer." msgid "Unable to set options" msgstr "Unable to set options" msgid "Unable to set server default" msgstr "Unable to set server default" msgid "Unable to start backend process." msgstr "Unable to start backend process." msgid "Unable to upload cupsd.conf file" msgstr "Unable to upload cupsd.conf file" msgid "Unable to use legacy USB class driver." msgstr "Unable to use legacy USB class driver." msgid "Unable to write print data" msgstr "Unable to write print data" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "Unable to write uncompressed print data: %s" msgid "Unauthorized" msgstr "Unauthorized" msgid "Units" msgstr "Units" msgid "Unknown" msgstr "Unknown" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Unknown choice \"%s\" for option \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "Unknown directive \"%s\" on line %d of \"%s\" ignored." #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Unknown encryption option value: \"%s\"." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Unknown file order: \"%s\"." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Unknown format character: \"%c\"." msgid "Unknown hash algorithm." msgstr "Unknown hash algorithm." msgid "Unknown media size name." msgstr "Unknown media size name." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Unknown option \"%s\" with value \"%s\"." #, c-format msgid "Unknown option \"%s\"." msgstr "Unknown option \"%s\"." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Unknown print mode: \"%s\"." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "Unknown printer-error-policy \"%s\"." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "Unknown printer-op-policy \"%s\"." msgid "Unknown request method." msgstr "Unknown request method." msgid "Unknown request version." msgstr "Unknown request version." msgid "Unknown scheme in URI" msgstr "Unknown scheme in URI" msgid "Unknown service name." msgstr "Unknown service name." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Unknown version option value: \"%s\"." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Unsupported 'compression' value \"%s\"." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Unsupported 'document-format' value \"%s\"." msgid "Unsupported 'job-hold-until' value." msgstr "Unsupported 'job-hold-until' value." msgid "Unsupported 'job-name' value." msgstr "Unsupported 'job-name' value." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Unsupported character set \"%s\"." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Unsupported compression \"%s\"." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "Unsupported document-format \"%s\"." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "Unsupported document-format \"%s/%s\"." #, c-format msgid "Unsupported format \"%s\"." msgstr "Unsupported format \"%s\"." msgid "Unsupported margins." msgstr "Unsupported margins." msgid "Unsupported media value." msgstr "Unsupported media value." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "Unsupported number-up value %d, using number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "Unsupported number-up-layout value %s, using number-up-layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "Unsupported page-border value %s, using page-border=none." msgid "Unsupported raster data." msgstr "Unsupported raster data." msgid "Unsupported value type" msgstr "Unsupported value type" msgid "Upgrade Required" msgstr "Upgrade Required" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "Usage: %s [options] destination(s)" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Usage: %s job-id user title copies options [file]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgid "Usage: cupsd [options]" msgstr "Usage: cupsd [options]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "Usage: cupsfilter [ options ] [ -- ] filename" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "Usage: ippeveprinter [options] \"name\"" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Usage: ipptool [options] URI filename [ ... filenameN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgid "Usage: lpq [options] [+interval]" msgstr "Usage: lpq [options] [+interval]" msgid "Usage: lpr [options] [file(s)]" msgstr "Usage: lpr [options] [file(s)]" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgid "Usage: lpstat [options]" msgstr "Usage: lpstat [options]" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Usage: ppdhtml [options] filename.drv >filename.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Usage: snmp [host-or-ip-address]" #, c-format msgid "Using spool directory \"%s\"." msgstr "Using spool directory \"%s\"." msgid "Value uses indefinite length" msgstr "Value uses indefinite length" msgid "VarBind uses indefinite length" msgstr "VarBind uses indefinite length" msgid "Version uses indefinite length" msgstr "Version uses indefinite length" msgid "Waiting for job to complete." msgstr "Waiting for job to complete." msgid "Waiting for printer to become available." msgstr "Waiting for printer to become available." msgid "Waiting for printer to finish." msgstr "Waiting for printer to finish." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "Warning: This program will be removed in a future version of CUPS." msgid "Web Interface is Disabled" msgstr "Web Interface is Disabled" msgid "Yes" msgstr "Yes" msgid "You cannot access this page." msgstr "You cannot access this page." #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "You must access this page using the URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "Your account does not have the necessary privileges." msgid "ZPL Label Printer" msgstr "ZPL Label Printer" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "aborted" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "Accuracy Units" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "Millimeters" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "Nanometers" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "Micrometers" #. TRANSLATORS: Bale Output msgid "baling" msgstr "Bale Output" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "Bale Using" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "Band" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "Shrink Wrap" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "Wrap" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "Bale After" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "Job" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "Sets" #. TRANSLATORS: Bind Output msgid "binding" msgstr "Bind Output" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "Bind Edge" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "Bottom" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "Left" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "Right" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "Top" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "Binder Type" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "Adhesive" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "Comb" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "Flat" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "Padding" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "Perfect" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "Spiral" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "Tape" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "Velo" msgid "canceled" msgstr "canceled" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "Chamber Humidity" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "Chamber Temperature" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "Print Job Cost" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "Coat Sheets" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "Add Coating To" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "Back" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "Front and Back" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "Front" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "Type of Coating" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "Archival" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "Archival Glossy" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "Archival Matte" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "Archival Semi Gloss" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "Glossy" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "High Gloss" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "Matte" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "Semi-gloss" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "Silicone" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "Translucent" msgid "completed" msgstr "completed" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "Print Confirmation Sheet" #. TRANSLATORS: Copies msgid "copies" msgstr "Copies" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "Back Cover" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "Front Cover" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "Cover Sheet Info" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "Date Time" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "From Name" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "Logo" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "Message" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "Organization" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "Subject" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "To Name" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "Printed Cover" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "No Cover" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "Back Only" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "Front and Back" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "Front Only" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "None" #. TRANSLATORS: Cover Output msgid "covering" msgstr "Cover Output" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "Add Cover" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "Plain" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "Pre-cut" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "Pre-printed" msgid "cups-deviced failed to execute." msgstr "cups-deviced failed to execute." msgid "cups-driverd failed to execute." msgstr "cups-driverd failed to execute." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "cupsctl: Cannot set %s directly." #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: Unable to connect to server: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: Unknown option \"%s\"" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: Unknown option \"-%c\"" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: Expected config filename after \"-c\" option." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "cupsd: Expected cups-files.conf filename after \"-s\" option." msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "cupsd: On-demand support not compiled in, running in normal mode." msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: Relative cups-files.conf filename not allowed." msgid "cupsd: Unable to get current directory." msgstr "cupsd: Unable to get current directory." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: Unable to get path to cups-files.conf file." #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: Unknown argument \"%s\" - aborting." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: Unknown option \"%c\" - aborting." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: Invalid document number %d." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: Invalid job ID %d." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: Only one filename can be specified." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: Unable to get job file - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: The -q option is incompatible with the -v option." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: The -v option is incompatible with the -q option." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "Detailed Status Message" #, c-format msgid "device for %s/%s: %s" msgstr "device for %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "device for %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "Copies" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "Document Privacy Attributes" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "All" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "Default" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "Document Description" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "Document Template" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "None" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "Document Privacy Scope" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "All" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "Default" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "None" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "Owner" #. TRANSLATORS: Document State msgid "document-state" msgstr "Document State" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "Detailed Document State" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "Aborted By System" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "Canceled At Device" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "Canceled By Operator" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "Canceled By User" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "Completed Successfully" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "Completed With Errors" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "Completed With Warnings" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "Compression Error" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "Data Insufficient" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "Digital Signature Did Not Verify" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "Digital Signature Type Not Supported" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "Digital Signature Wait" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "Document Access Error" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "Document Fetchable" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "Document Format Error" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "Document Password Error" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "Document Permission Error" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "Document Security Error" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "Document Unprintable Error" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "Errors Detected" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "Incoming" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "Interpreting" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "None" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "Outgoing" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "Printing" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "Processing To Stop Point" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "Queued" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "Queued For Marker" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "Queued In Device" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "Resources Are Not Ready" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "Resources Are Not Supported" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "Submission Interrupted" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "Transforming" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "Unsupported Compression" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "Unsupported Document Format" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "Warnings Detected" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "Pending" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "Processing" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "Stopped" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "Canceled" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "Aborted" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "Completed" msgid "error-index uses indefinite length" msgstr "error-index uses indefinite length" msgid "error-status uses indefinite length" msgstr "error-status uses indefinite length" msgid "" "expression --and expression\n" " Logical AND" msgstr "" "expression --and expression\n" " Logical AND" msgid "" "expression --or expression\n" " Logical OR" msgstr "" "expression --or expression\n" " Logical OR" msgid "expression expression Logical AND" msgstr "expression expression Logical AND" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "Feed Orientation" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "Long Edge First" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "Short Edge First" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "Fetch Status Code" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "Finishing Template" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "Bale" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "Bind" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "Bind Bottom" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "Bind Left" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "Bind Right" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "Bind Top" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "Booklet Maker" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "Coat" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "Cover" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "Edge Stitch" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "Edge Stitch Bottom" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "Edge Stitch Left" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "Edge Stitch Right" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "Edge Stitch Top" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "Fold" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "Accordion Fold" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "Double Gate Fold" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "Engineering Z Fold" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "Gate Fold" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "Half Fold" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "Half Z Fold" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "Left Gate Fold" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "Letter Fold" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "Parallel Fold" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "Poster Fold" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "Right Gate Fold" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "Z Fold" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "JDF F10-1" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "JDF F10-2" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "JDF F10-3" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "JDF F12-1" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "JDF F12-10" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "JDF F12-11" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "JDF F12-12" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "JDF F12-13" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "JDF F12-14" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "JDF F12-2" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "JDF F12-3" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "JDF F12-4" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "JDF F12-5" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "JDF F12-6" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "JDF F12-7" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "JDF F12-8" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "JDF F12-9" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "JDF F14-1" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "JDF F16-1" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "JDF F16-10" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "JDF F16-11" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "JDF F16-12" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "JDF F16-13" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "JDF F16-14" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "JDF F16-2" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "JDF F16-3" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "JDF F16-4" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "JDF F16-5" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "JDF F16-6" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "JDF F16-7" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "JDF F16-8" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "JDF F16-9" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "JDF F18-1" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "JDF F18-2" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "JDF F18-3" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "JDF F18-4" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "JDF F18-5" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "JDF F18-6" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "JDF F18-7" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "JDF F18-8" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "JDF F18-9" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "JDF F2-1" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "JDF F20-1" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "JDF F20-2" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "JDF F24-1" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "JDF F24-10" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "JDF F24-11" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "JDF F24-2" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "JDF F24-3" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "JDF F24-4" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "JDF F24-5" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "JDF F24-6" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "JDF F24-7" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "JDF F24-8" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "JDF F24-9" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "JDF F28-1" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "JDF F32-1" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "JDF F32-2" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "JDF F32-3" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "JDF F32-4" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "JDF F32-5" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "JDF F32-6" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "JDF F32-7" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "JDF F32-8" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "JDF F32-9" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "JDF F36-1" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "JDF F36-2" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "JDF F4-1" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "JDF F4-2" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "JDF F40-1" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "JDF F48-1" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "JDF F48-2" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "JDF F6-1" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "JDF F6-2" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "JDF F6-3" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "JDF F6-4" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "JDF F6-5" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "JDF F6-6" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "JDF F6-7" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "JDF F6-8" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "JDF F64-1" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "JDF F64-2" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "JDF F8-1" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "JDF F8-2" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "JDF F8-3" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "JDF F8-4" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "JDF F8-5" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "JDF F8-6" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "JDF F8-7" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "Jog Offset" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "Laminate" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "Punch" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "Punch Bottom Left" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "Punch Bottom Right" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "2-hole Punch Bottom" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "2-hole Punch Left" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "2-hole Punch Right" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "2-hole Punch Top" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "Multi-hole Punch Bottom" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "Multi-hole Punch Left" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "Multi-hole Punch Right" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "Multi-hole Punch Top" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "4-hole Punch Bottom" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "4-hole Punch Left" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "4-hole Punch Right" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "4-hole Punch Top" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "Punch Top Left" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "Punch Top Right" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "3-hole Punch Bottom" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "3-hole Punch Left" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "3-hole Punch Right" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "3-hole Punch Top" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "Saddle Stitch" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "Staple" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "Staple Bottom Left" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "Staple Bottom Right" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "2 Staples on Bottom" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "2 Staples on Left" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "2 Staples on Right" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "2 Staples on Top" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "Staple Top Left" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "Staple Top Right" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "3 Staples on Bottom" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "3 Staples on Left" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "3 Staples on Right" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "3 Staples on Top" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "Trim" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "Trim After Every Set" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "Trim After Every Document" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "Trim After Job" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "Trim After Every Page" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "Trim After Every Set" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "Trim After Every Page" #. TRANSLATORS: Finishings msgid "finishings" msgstr "Finishings" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "Finishings" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "Fold" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "Z Fold" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "Engineering Z Fold" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "Trim" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "Bale" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "Booklet Maker" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "Jog Offset" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "Coat" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "Laminate" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "Staple Top Left" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "Staple Bottom Left" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "Staple Top Right" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "Staple Bottom Right" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "Edge Stitch Left" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "Edge Stitch Top" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "Edge Stitch Right" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "Edge Stitch Bottom" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "2 Staples on Left" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "2 Staples on Top" #. TRANSLATORS: None msgid "finishings.3" msgstr "None" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "2 Staples on Right" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "2 Staples on Bottom" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "3 Staples on Left" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "3 Staples on Top" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "3 Staples on Right" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "3 Staples on Bottom" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "Staple" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "Punch" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "Bind Left" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "Bind Top" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "Bind Right" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "Bind Bottom" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "Cover" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "Trim Pages" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "Trim Documents" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "Trim Copies" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "Trim Job" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "Bind" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "Punch Top Left" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "Punch Bottom Left" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "Punch Top Right" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "Punch Bottom Right" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "2-hole Punch Left" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "2-hole Punch Top" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "2-hole Punch Right" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "2-hole Punch Bottom" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "3-hole Punch Left" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "3-hole Punch Top" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "Saddle Stitch" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "3-hole Punch Right" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "3-hole Punch Bottom" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "4-hole Punch Left" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "4-hole Punch Top" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "4-hole Punch Right" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "4-hole Punch Bottom" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "Multi-hole Punch Left" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "Multi-hole Punch Top" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "Multi-hole Punch Right" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "Multi-hole Punch Bottom" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "Edge Stitch" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "Accordion Fold" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "Double Gate Fold" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "Gate Fold" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "Half Fold" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "Half Z Fold" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "Left Gate Fold" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "Letter Fold" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "Parallel Fold" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "Poster Fold" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "Right Gate Fold" #. TRANSLATORS: Fold msgid "folding" msgstr "Fold" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "Fold Direction" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "Inward" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "Outward" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "Fold Position" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "Fold Edge" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "Bottom" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "Left" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "Right" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "Top" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "Font Name" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "Font Size" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "Force Front Side" #. TRANSLATORS: From Name msgid "from-name" msgstr "From Name" msgid "held" msgstr "held" msgid "help\t\tGet help on commands." msgstr "help\t\tGet help on commands." msgid "idle" msgstr "idle" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "Imposition Template" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "None" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "Signature" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "Insert Page Number" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "Insert Count" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "Insert Sheet" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "ippeveprinter: Unable to open \"%s\": %s on line %d." #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: Bad regular expression: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: Cannot use --and after --or." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: Expected key name after %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: Expected port range after %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: Expected program after %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: Expected semi-colon after %s." msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: Missing close brace in substitution." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: Missing close parenthesis." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: Missing expression before \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: Missing expression before \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: Missing key name after %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "ippfind: Missing name after %s." msgid "ippfind: Missing open parenthesis." msgstr "ippfind: Missing open parenthesis." #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: Missing program after %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: Missing regular expression after %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: Missing semi-colon after %s." msgid "ippfind: Out of memory." msgstr "ippfind: Out of memory." msgid "ippfind: Too many parenthesis." msgstr "ippfind: Too many parenthesis." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: Unable to browse or resolve: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: Unable to execute \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: Unable to use Bonjour: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: Unknown variable \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "ipptool: Bad URI \"%s\"." msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: Invalid seconds for \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: May only specify a single URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: Missing count for \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "ipptool: Missing filename for \"--ippserver\"." msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: Missing filename for \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: Missing name=value for \"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: Missing seconds for \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: URI required before test file." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "Job Account ID" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "Job Account Type" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "General" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "Group" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "None" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "Job Accounting Output Bin" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "Job Accounting Sheets" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "Type of Job Accounting Sheets" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "None" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "Standard" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "Job Accounting User ID" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "Cancel job after" #. TRANSLATORS: Copies msgid "job-copies" msgstr "Copies" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "Back Cover" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "Front Cover" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "Delay Output Until" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "Delay Output Until" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "Daytime" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "Evening" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "Released" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "Night" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "No Delay" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "Second Shift" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "Third Shift" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "Weekend" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "On Error" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "Abort Job" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "Cancel Job" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "Continue Job" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "Suspend Job" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "Print Error Sheet" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "Type of Error Sheet" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "None" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "Standard" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "Print Error Sheet" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "Always" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "On Error" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "Job Finishings" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "Hold Until" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "Hold Until" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "Daytime" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "Evening" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "Released" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "Night" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "No Hold" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "Second Shift" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "Third Shift" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "Weekend" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "Job Mandatory Attributes" #. TRANSLATORS: Title msgid "job-name" msgstr "Title" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "Job Pages" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "Job Pages" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "Job Phone Number" msgid "job-printer-uri attribute missing." msgstr "job-printer-uri attribute missing." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "Job Priority" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "Job Privacy Attributes" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "All" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "Default" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "Job Description" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "Job Template" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "None" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "Job Privacy Scope" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "All" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "Default" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "None" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "Owner" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "Job Recipient Name" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "Retain job until" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "Retain job until interval" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "Retain job until time" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "End of day" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "End of month" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "End of week" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "Indefinitely" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "Never" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "Job Save Disposition" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "Job Sheet Message" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "Banner Page" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "Banner Page" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "First Page in Document" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "Start and End Sheets" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "End Sheet" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "Start Sheet" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "None" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "Standard" #. TRANSLATORS: Job State msgid "job-state" msgstr "Job State" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "Job State Message" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "Detailed Job State" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "Aborted By System" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "Account Authorization Failed" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "Account Closed" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "Account Info Needed" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "Account Limit Reached" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "Compression Error" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "Conflicting Attributes" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "Connected To Destination" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "Connecting To Destination" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "Destination Uri Failed" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "Digital Signature Did Not Verify" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "Digital Signature Type Not Supported" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "Document Access Error" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "Document Format Error" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "Document Password Error" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "Document Permission Error" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "Document Security Error" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "Document Unprintable Error" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "Errors Detected" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "Job Canceled At Device" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "Job Canceled By Operator" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "Job Canceled By User" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "Job Completed Successfully" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "Job Completed With Errors" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "Job Completed With Warnings" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "Job Data Insufficient" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "Job Delay Output Until Specified" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "Job Digital Signature Wait" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "Job Fetchable" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "Job Held For Review" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "Job Hold Until Specified" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "Job Incoming" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "Job Interpreting" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "Job Outgoing" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "Job Password Wait" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "Job Printed Successfully" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "Job Printed With Errors" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "Job Printed With Warnings" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "Job Printing" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "Job Queued" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "Job Queued For Marker" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "Job Release Wait" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "Job Restartable" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "Job Resuming" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "Job Saved Successfully" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "Job Saved With Errors" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "Job Saved With Warnings" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "Job Saving" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "Job Spooling" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "Job Streaming" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "Job Suspended" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "Job Suspended By Operator" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "Job Suspended By System" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "Job Suspended By User" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "Job Suspending" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "Job Transferring" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "Job Transforming" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "None" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "Printer Stopped" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "Printer Stopped Partly" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "Processing To Stop Point" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "Queued In Device" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "Resources Are Not Ready" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "Resources Are Not Supported" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "Service Off Line" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "Submission Interrupted" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "Unsupported Attributes Or Values" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "Unsupported Compression" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "Unsupported Document Format" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "Waiting For User Action" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "Warnings Detected" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "Pending" #. TRANSLATORS: Held msgid "job-state.4" msgstr "Held" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "Processing" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "Stopped" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "Canceled" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "Aborted" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "Completed" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "Laminate Pages" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "Laminate" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "Back Only" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "Front and Back" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "Front Only" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "Type of Lamination" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "Archival" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "Glossy" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "High Gloss" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "Matte" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "Semi-gloss" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "Translucent" #. TRANSLATORS: Logo msgid "logo" msgstr "Logo" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: Class name can only contain printable characters." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "lpadmin: Expected PPD after \"-%c\" option." msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: Expected class after \"-r\" option." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: Expected class name after \"-c\" option." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: Expected description after \"-D\" option." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: Expected device URI after \"-v\" option." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: Expected file type(s) after \"-I\" option." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: Expected hostname after \"-h\" option." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: Expected location after \"-L\" option." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: Expected model after \"-m\" option." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: Expected name after \"-R\" option." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: Expected name=value after \"-o\" option." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: Expected printer after \"-p\" option." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: Expected printer name after \"-d\" option." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: Expected printer or class after \"-x\" option." msgid "lpadmin: No member names were seen." msgstr "lpadmin: No member names were seen." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: Printer %s is already a member of class %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: Printer %s is not a member of class %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: Printer name can only contain printable characters." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "lpadmin: Raw queues are no longer supported on macOS." msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: Unable to connect to server: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: Unable to create temporary file" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "lpadmin: Unable to open PPD \"%s\": %s" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Unknown allow/deny option \"%s\"." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: Unknown argument \"%s\"." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Unknown option \"%c\"." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "lpadmin: Use the 'everywhere' model for shared printers." msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Warning - content type list ignored." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: Expected language after \"--language\"." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: Expected make and model after \"--make-and-model\"." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: Expected product string after \"--product\"." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: Expected scheme list after \"--include-schemes\"." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: Expected timeout after \"--timeout\"." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: Unable to connect to server: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Unknown argument \"%s\"." msgid "lpoptions: No printers." msgstr "lpoptions: No printers." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: Unable to add printer or instance: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: Unable to get PPD file for %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: Unable to open PPD file for %s." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Unknown printer or class." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "Amount of Material" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "Amount Units" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "Grams" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "Kilograms" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "Liters" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "Meters" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "Milliliters" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "Millimeters" #. TRANSLATORS: Material Color msgid "material-color" msgstr "Material Color" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "Material Diameter" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "Material Diameter Tolerance" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "Material Fill Density" #. TRANSLATORS: Material Name msgid "material-name" msgstr "Material Name" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "Material Nozzle Diameter" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "Use Material For" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "Everything" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "Base" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "In-fill" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "Shell" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "Supports" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "Feed Rate" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "Feed Rate Units" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "Milligrams per second" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "Milliliters per second" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "Millimeters per second" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "Material Retraction" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "Material Shell Thickness" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "Material Temperature" #. TRANSLATORS: Material Type msgid "material-type" msgstr "Material Type" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "ABS" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "Carbon Fiber ABS" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "Carbon Nanotube ABS" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "Chocolate" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "Gold" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "Nylon" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "Pet" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "Photopolymer" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "PLA" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "Conductive PLA" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "Pla Dissolvable" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "Flexible PLA" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "Magnetic PLA" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "Steel PLA" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "Stone PLA" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "Wood PLA" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "Polycarbonate" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "Dissolvable PVA" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "Silver" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "Titanium" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "Wax" #. TRANSLATORS: Materials msgid "materials-col" msgstr "Materials" #. TRANSLATORS: Media msgid "media" msgstr "Media" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "Back Coating of Media" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "Glossy" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "High Gloss" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "Matte" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "None" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "Satin" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "Semi-gloss" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "Media Bottom Margin" #. TRANSLATORS: Media msgid "media-col" msgstr "Media" #. TRANSLATORS: Media Color msgid "media-color" msgstr "Media Color" #. TRANSLATORS: Black msgid "media-color.black" msgstr "Black" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "Blue" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "Brown" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "Buff" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "Clear Black" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "Clear Blue" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "Clear Brown" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "Clear Buff" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "Clear Cyan" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "Clear Gold" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "Clear Goldenrod" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "Clear Gray" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "Clear Green" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "Clear Ivory" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "Clear Magenta" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "Clear Multi Color" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "Clear Mustard" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "Clear Orange" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "Clear Pink" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "Clear Red" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "Clear Silver" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "Clear Turquoise" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "Clear Violet" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "Clear White" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "Clear Yellow" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "Cyan" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "Dark Blue" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "Dark Brown" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "Dark Buff" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "Dark Cyan" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "Dark Gold" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "Dark Goldenrod" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "Dark Gray" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "Dark Green" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "Dark Ivory" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "Dark Magenta" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "Dark Mustard" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "Dark Orange" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "Dark Pink" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "Dark Red" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "Dark Silver" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "Dark Turquoise" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "Dark Violet" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "Dark Yellow" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "Gold" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "Goldenrod" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "Gray" #. TRANSLATORS: Green msgid "media-color.green" msgstr "Green" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "Ivory" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "Light Black" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "Light Blue" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "Light Brown" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "Light Buff" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "Light Cyan" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "Light Gold" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "Light Goldenrod" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "Light Gray" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "Light Green" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "Light Ivory" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "Light Magenta" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "Light Mustard" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "Light Orange" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "Light Pink" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "Light Red" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "Light Silver" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "Light Turquoise" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "Light Violet" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "Light Yellow" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "Magenta" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "Multi-color" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "Mustard" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "No Color" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "Orange" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "Pink" #. TRANSLATORS: Red msgid "media-color.red" msgstr "Red" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "Silver" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "Turquoise" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "Violet" #. TRANSLATORS: White msgid "media-color.white" msgstr "White" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "Yellow" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "Front Coating of Media" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "Media Grain" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "Cross-Feed Direction" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "Feed Direction" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "Media Hole Count" #. TRANSLATORS: Media Info msgid "media-info" msgstr "Media Info" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "Force Media" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "Media Left Margin" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "Pre-printed Media" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "Blank" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "Letterhead" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "Pre-printed" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "Recycled Media" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "None" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "Standard" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "Media Right Margin" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "Media Dimensions" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "Media Name" #. TRANSLATORS: Media Source msgid "media-source" msgstr "Media Source" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "Alternate" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "Alternate Roll" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "Automatic" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "Bottom" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "By-pass Tray" #. TRANSLATORS: Center msgid "media-source.center" msgstr "Center" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "Disc" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "Envelope" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "Hagaki" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "Large Capacity" #. TRANSLATORS: Left msgid "media-source.left" msgstr "Left" #. TRANSLATORS: Main msgid "media-source.main" msgstr "Main" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "Main Roll" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "Manual" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "Middle" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "Photo" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "Rear" #. TRANSLATORS: Right msgid "media-source.right" msgstr "Right" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "Roll 1" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "Roll 10" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "Roll 2" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "Roll 3" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "Roll 4" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "Roll 5" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "Roll 6" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "Roll 7" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "Roll 8" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "Roll 9" #. TRANSLATORS: Side msgid "media-source.side" msgstr "Side" #. TRANSLATORS: Top msgid "media-source.top" msgstr "Top" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "Tray 1" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "Tray 10" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "Tray 11" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "Tray 12" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "Tray 13" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "Tray 14" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "Tray 15" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "Tray 16" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "Tray 17" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "Tray 18" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "Tray 19" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "Tray 2" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "Tray 20" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "Tray 3" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "Tray 4" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "Tray 5" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "Tray 6" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "Tray 7" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "Tray 8" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "Tray 9" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "Media Thickness" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "Media Tooth (Texture)" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "Antique" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "Extra Smooth" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "Coarse" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "Fine" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "Linen" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "Medium" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "Smooth" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "Stipple" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "Rough" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "Vellum" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "Media Top Margin" #. TRANSLATORS: Media Type msgid "media-type" msgstr "Media Type" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "Aluminum" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "Automatic" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "Back Print Film" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "Cardboard" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "Cardstock" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "CD" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "Photo Advanced Paper" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "Brochure Glossy Paper" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "Brochure Matte Paper" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "Matte Coverstock" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "EcoSMART Lite Paper" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "Everyday Glossy Paper" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "Everyday Matte Paper" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "Extra Heavyweight Paper" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "Intermediate Paper" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "Mid-Weight Paper" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "Inkjet Premium Paper" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "Photo Premium Paper" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "Premium Matte Presentation Paper" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "Continuous" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "Continuous Long" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "Continuous Short" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "Corrugated Board" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "Optical Disc" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "Glossy Optical Disc" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "High Gloss Optical Disc" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "Matte Optical Disc" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "Satin Optical Disc" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "Semi-Gloss Optical Disc" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "Double Wall" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "Dry Film" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "DVD" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "Embossing Foil" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "End Board" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "Envelope" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "Archival Envelope" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "Bond Envelope" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "Coated Envelope" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "Cotton Envelope" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "Fine Envelope" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "Heavyweight Envelope" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "Inkjet Envelope" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "Lightweight Envelope" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "Plain Envelope" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "Preprinted Envelope" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "Windowed Envelope" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "Fabric" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "Archival Fabric" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "Glossy Fabric" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "High Gloss Fabric" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "Matte Fabric" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "Semi-Gloss Fabric" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "Waterproof Fabric" #. TRANSLATORS: Film msgid "media-type.film" msgstr "Film" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "Flexo Base" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "Flexo Photo Polymer" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "Flute" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "Foil" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "Full Cut Tabs" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "Glass" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "Glass Colored" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "Glass Opaque" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "Glass Surfaced" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "Glass Textured" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "Gravure Cylinder" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "Image Setter Paper" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "Imaging Cylinder" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "Photo Paper Plus Glossy II" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "Photo Paper Pro Platinum" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "Photo Paper Plus Glossy II" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "Photo Paper Pro Platinum" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "Labels" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "Colored Labels" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "Glossy Labels" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "High Gloss Labels" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "Inkjet Labels" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "Matte Labels" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "Permanent Labels" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "Satin Labels" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "Security Labels" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "Semi-Gloss Labels" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "Laminating Foil" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "Letterhead" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "Metal" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "Metal Glossy" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "Metal High Gloss" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "Metal Matte" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "Metal Satin" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "Metal Semi Gloss" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "Mounting Tape" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "Multi Layer" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "Multi Part Form" #. TRANSLATORS: Other msgid "media-type.other" msgstr "Other" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "Paper" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "Photo Paper" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "Photographic Archival" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "Photo Film" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "Glossy Photo Paper" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "High Gloss Photo Paper" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "Matte Photo Paper" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "Satin Photo Paper" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "Semi-Gloss Photo Paper" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "Plastic" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "Plastic Archival" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "Plastic Colored" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "Plastic Glossy" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "Plastic High Gloss" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "Plastic Matte" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "Plastic Satin" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "Plastic Semi Gloss" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "Plate" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "Polyester" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "Pre Cut Tabs" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "Roll" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "Screen" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "Screen Paged" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "Self Adhesive" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "Self Adhesive Film" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "Shrink Foil" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "Single Face" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "Single Wall" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "Sleeve" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "Stationery" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "Stationery Archival" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "Coated Paper" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "Stationery Cotton" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "Vellum Paper" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "Heavyweight Paper" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "Stationery Heavyweight Coated" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "Stationery Inkjet Paper" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "Letterhead" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "Lightweight Paper" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "Preprinted Paper" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "Punched Paper" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "Tab Stock" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "Tractor" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "Transfer" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "Transparency" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "Triple Wall" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "Wet Film" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "Media Weight (grams per m²)" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "28 x 40″" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "A4 or US Letter" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "2a0" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "A0" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "A0x3" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "A10" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "A1" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "A1x3" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "A1x4" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "A2" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "A2x3" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "A2x4" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "A2x5" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "A3 (Extra)" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "A3" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "A3x3" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "A3x4" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "A3x5" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "A3x6" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "A3x7" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "A4 (Extra)" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "A4 (Tab)" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "A4" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "A4x3" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "A4x4" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "A4x5" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "A4x6" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "A4x7" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "A4x8" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "A4x9" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "A5 (Extra)" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "A5" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "A6" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "A7" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "A8" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "A9" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "B0" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "B10" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "B1" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "B2" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "B3" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "B4" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "B5 (Extra)" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "Envelope B5" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "B6" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "Envelope B6/C4" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "B7" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "B8" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "B9" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "CEnvelope 0" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "CEnvelope 10" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "CEnvelope 1" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "CEnvelope 2" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "CEnvelope 3" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "CEnvelope 4" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "CEnvelope 5" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "CEnvelope 6" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "CEnvelope 6c5" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "CEnvelope 7" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "CEnvelope 7c6" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "CEnvelope 8" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "CEnvelope 9" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "Envelope DL" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "Id-1" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "Id-3" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "ISO RA0" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "ISO RA1" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "ISO RA2" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "ISO RA3" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "ISO RA4" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "ISO SRA0" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "ISO SRA1" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "ISO SRA2" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "ISO SRA3" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "ISO SRA4" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "JIS B0" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "JIS B10" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "JIS B1" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "JIS B2" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "JIS B3" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "JIS B4" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "JIS B5" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "JIS B6" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "JIS B7" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "JIS B8" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "JIS B9" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "JIS Executive" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "Envelope Chou 2" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "Envelope Chou 3" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "Envelope Chou 40" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "Envelope Chou 4" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "Hagaki" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "Envelope Kahu" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "270 x 382mm" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "Envelope Kahu 2" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "216 x 277mm" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "197 x 267mm" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "190 x 240mm" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "142 x 205mm" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "119 x 197mm" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "Oufuku Reply Postcard" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "Envelope You 4" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "10 x 11″" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "10 x 13″" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "10 x 14″" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "10 x 15″" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "11 x 12″" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "11 x 15″" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "12 x 19″" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "5 x 7″" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "6 x 9″" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "7 x 9″" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "9 x 11″" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "Envelope A2" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "9 x 12″" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "12 x 18″" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "18 x 24″" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "24 x 36″" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "26 x 38″" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "27 x 39″" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "36 x 48″" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "12 x 19.17″" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "Envelope C5" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "17 x 22″" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "22 x 34″" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "34 x 44″" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "11 x 14″" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "12 x 14″" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "Executive" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "44 x 68″" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "European Fanfold" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "US Fanfold" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "Foolscap" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "8 x 13″" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "8 x 10″" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "3 x 5″" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "6 x 8″" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "4 x 6″" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "5 x 8″" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "Statement" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "11 x 17″" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "US Legal (Extra)" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "US Legal" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "US Letter (Extra)" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "US Letter (Plus)" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "US Letter" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "Envelope Monarch" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "Envelope #10" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "Envelope #11" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "Envelope #12" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "Envelope #14" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "Envelope #9" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "8.5 x 13.4″" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "Envelope Personal" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "Quarto" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "8.94 x 14″" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "13 x 19″" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "30 x 42″" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "12 x 16″" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "14 x 17″" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "18 x 22″" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "17 x 24″" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "2 x 3.5″" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "10 x 12″" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "20 x 24″" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "3.5 x 5″" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "10 x 15″" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "4 x 4″" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "5 x 5″" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "184 x 260mm" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "195 x 270mm" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "55 x 85mm" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "55 x 91mm" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "54 x 86mm" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "275 x 395mm" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "89 x 119mm" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "Folio" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "Folio (Special)" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "Envelope Invitation" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "Envelope Italian" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "198 x 275mm" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "200 x 300" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "130 x 180mm" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "267 x 389mm" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "Envelope Postfix" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "100 x 150mm" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "89 x 89mm" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "100 x 200mm" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "Envelope Chinese #10" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "Chinese 16k" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "Envelope Chinese #1" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "Envelope Chinese #2" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "Chinese 32k" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "Envelope Chinese #3" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "Envelope Chinese #4" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "Envelope Chinese #5" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "Envelope Chinese #6" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "Envelope Chinese #7" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "Envelope Chinese #8" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "ROC 16k" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "ROC 8k" #, c-format msgid "members of class %s:" msgstr "members of class %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "Multiple Document Handling" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "Separate Documents Collated Copies" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "Separate Documents Uncollated Copies" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "Single Document" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "Single Document New Sheet" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "Multiple Object Handling" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "Multiple Object Handling Actual" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "Automatic" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "Best Fit" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "Best Quality" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "Best Speed" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "One At A Time" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "On Timeout" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "Abort Job" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "Hold Job" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "Process Job" msgid "no entries" msgstr "no entries" msgid "no system default destination" msgstr "no system default destination" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "Noise Removal" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "Notify Attributes" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "Notify Charset" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "Notify Events" msgid "notify-events not specified." msgstr "notify-events not specified." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "Document Completed" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "Document Config Changed" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "Document Created" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "Document Fetchable" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "Document State Changed" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "Document Stopped" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "Job Completed" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "Job Config Changed" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "Job Created" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "Job Fetchable" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "Job Progress" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "Job State Changed" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "Job Stopped" #. TRANSLATORS: None msgid "notify-events.none" msgstr "None" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "Printer Config Changed" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "Printer Finishings Changed" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "Printer Media Changed" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "Printer Queue Order Changed" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "Printer Restarted" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "Printer Shutdown" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "Printer State Changed" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "Printer Stopped" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "Notify Get Interval" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "Notify Lease Duration" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "Notify Natural Language" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "Notify Pull Method" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "Notify Recipient" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI \"%s\" is already used." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI \"%s\" uses unknown scheme." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "Notify Sequence Numbers" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "Notify Subscription Ids" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "Notify Time Interval" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "Notify User Data" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "Notify Wait" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "Number Of Retries" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "Number-Up" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "Object Offset" #. TRANSLATORS: Object Size msgid "object-size" msgstr "Object Size" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "Organization Name" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "Orientation" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "Portrait" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "Landscape" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "Reverse Landscape" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "Reverse Portrait" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "None" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "Scanned Image Options" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "Output Tray" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "Automatic" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "Bottom" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "Center" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "Face Down" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "Face Up" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "Large Capacity" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "Left" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "Mailbox 1" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "Mailbox 10" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "Mailbox 2" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "Mailbox 3" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "Mailbox 4" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "Mailbox 5" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "Mailbox 6" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "Mailbox 7" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "Mailbox 8" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "Mailbox 9" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "Middle" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "My Mailbox" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "Rear" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "Right" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "Side" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "Stacker 1" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "Stacker 10" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "Stacker 2" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "Stacker 3" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "Stacker 4" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "Stacker 5" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "Stacker 6" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "Stacker 7" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "Stacker 8" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "Stacker 9" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "Top" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "Tray 1" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "Tray 10" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "Tray 2" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "Tray 3" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "Tray 4" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "Tray 5" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "Tray 6" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "Tray 7" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "Tray 8" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "Tray 9" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "Scanned Image Quality" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "Page Delivery" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "Reverse Order Face-down" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "Reverse Order Face-up" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "Same Order Face-down" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "Same Order Face-up" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "System Specified" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "Page Order Received" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "1 To N" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "N To 1" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "Page Ranges" #. TRANSLATORS: Pages msgid "pages" msgstr "Pages" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "Pages Per Subset" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "Pclm Raster Back Side" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "Flipped" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "Normal" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "Rotated" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "Pclm Source Resolution" msgid "pending" msgstr "pending" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "Platform Shape" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "Round" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "Rectangle" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "Platform Temperature" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "Post-dial String" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: Adding include directory \"%s\"." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: Adding/updating UI text from %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: Bad boolean value (%s) on line %d of %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: Bad font attribute: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: Bad resolution name \"%s\" on line %d of %s." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: Bad status keyword %s on line %d of %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "ppdc: Bad variable substitution ($%c) on line %d of %s." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc: Choice found on line %d of %s with no Option." #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: Duplicate #po for locale %s on line %d of %s." #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: Expected a filter definition on line %d of %s." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: Expected a program name on line %d of %s." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: Expected boolean value on line %d of %s." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "ppdc: Expected charset after Font on line %d of %s." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: Expected choice code on line %d of %s." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: Expected choice name/text on line %d of %s." #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "ppdc: Expected color order for ColorModel on line %d of %s." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "ppdc: Expected colorspace for ColorModel on line %d of %s." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: Expected compression for ColorModel on line %d of %s." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "ppdc: Expected constraints string for UIConstraints on line %d of %s." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "ppdc: Expected duplex type after Duplex on line %d of %s." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: Expected encoding after Font on line %d of %s." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "ppdc: Expected filename after #po %s on line %d of %s." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: Expected group name/text on line %d of %s." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: Expected include filename on line %d of %s." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: Expected integer on line %d of %s." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: Expected locale after #po on line %d of %s." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: Expected name after %s on line %d of %s." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: Expected name after FileName on line %d of %s." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: Expected name after Font on line %d of %s." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: Expected name after Manufacturer on line %d of %s." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: Expected name after MediaSize on line %d of %s." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: Expected name after ModelName on line %d of %s." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: Expected name after PCFileName on line %d of %s." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: Expected name/text after %s on line %d of %s." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "ppdc: Expected name/text after Installable on line %d of %s." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "ppdc: Expected name/text after Resolution on line %d of %s." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "ppdc: Expected name/text combination for ColorModel on line %d of %s." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: Expected option name/text on line %d of %s." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: Expected option section on line %d of %s." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: Expected option type on line %d of %s." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "ppdc: Expected override field after Resolution on line %d of %s." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: Expected quoted string on line %d of %s." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: Expected real number on line %d of %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: Expected selector after %s on line %d of %s." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: Expected status after Font on line %d of %s." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: Expected string after Copyright on line %d of %s." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: Expected string after Version on line %d of %s." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: Expected two option names on line %d of %s." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: Expected value after %s on line %d of %s." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: Expected version after Font on line %d of %s." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: Invalid #include/#po filename \"%s\"." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: Invalid cost for filter on line %d of %s." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc: Invalid empty MIME type for filter on line %d of %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "ppdc: Invalid empty program name for filter on line %d of %s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: Invalid option section \"%s\" on line %d of %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: Invalid option type \"%s\" on line %d of %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: Loading driver information file \"%s\"." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: Loading messages for locale \"%s\"." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: Loading messages from \"%s\"." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: Missing #endif at end of \"%s\"." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: Missing #if on line %d of %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" "ppdc: Need a msgid line before any translation strings on line %d of %s." #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: No message catalog provided for locale %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "ppdc: Option %s defined in two different groups on line %d of %s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "ppdc: Option %s redefined with a different type on line %d of %s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc: Option constraint must *name on line %d of %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: Too many nested #if's on line %d of %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: Unable to create PPD file \"%s\" - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: Unable to create output directory %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: Unable to create output pipes: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: Unable to execute cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: Unable to find #po file %s on line %d of %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "ppdc: Unable to find include file \"%s\" on line %d of %s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: Unable to find localization for \"%s\" - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: Unable to load localization file \"%s\" - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: Unable to open %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: Undefined variable (%s) on line %d of %s." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: Unexpected text on line %d of %s." #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: Unknown driver type %s on line %d of %s." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: Unknown duplex type \"%s\" on line %d of %s." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: Unknown media size \"%s\" on line %d of %s." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: Unknown message catalog format for \"%s\"." #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: Unknown token \"%s\" seen on line %d of %s." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "ppdc: Unterminated string starting with %c on line %d of %s." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: Warning - overlapping filename \"%s\"." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: Writing %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: Writing PPD files to directory \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: Bad LanguageVersion \"%s\" in %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: Ignoring PPD file %s." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: Unable to backup %s to %s - %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "Pre-dial String" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "Number-Up Layout" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "Top-bottom, Right-left" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "Top-bottom, Left-right" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "Right-left, Top-bottom" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "Right-left, Bottom-top" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "Left-right, Top-bottom" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "Left-right, Bottom-top" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "Bottom-top, Right-left" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "Bottom-top, Left-right" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "Print Accuracy" #. TRANSLATORS: Print Base msgid "print-base" msgstr "Print Base" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "Print Base Actual" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "Brim" #. TRANSLATORS: None msgid "print-base.none" msgstr "None" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "Raft" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "Skirt" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "Standard" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "Print Color Mode" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "Automatic" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "Auto Monochrome" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "Text" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "Color" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "Highlight" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "Monochrome" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "Process Text" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "Process Monochrome" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "Print Optimization" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "Print Optimization" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "Automatic" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "Graphics" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "Graphics" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "Photo" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "Text" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "Text and Graphics" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "Text and Graphics" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "Print Objects" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "Print Quality" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "Draft" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "Normal" #. TRANSLATORS: High msgid "print-quality.5" msgstr "High" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "Print Rendering Intent" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "Absolute" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "Automatic" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "Perceptual" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "Relative" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "Relative w/Black Point Compensation" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "Saturation" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "Print Scaling" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "Automatic" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "Auto-fit" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "Fill" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "Fit" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "None" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "Print Supports" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "Print Supports Actual" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "With Specified Material" #. TRANSLATORS: None msgid "print-supports.none" msgstr "None" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "Standard" #, c-format msgid "printer %s disabled since %s -" msgstr "printer %s disabled since %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "printer %s is holding new jobs. enabled since %s" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "printer %s is idle. enabled since %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "printer %s now printing %s-%d. enabled since %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "printer %s/%s disabled since %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "printer %s/%s is idle. enabled since %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "printer %s/%s now printing %s-%d. enabled since %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "Printer Kind" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "Disc" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "Document" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "Envelope" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "Label" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "Large format" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "Photo" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "Postcard" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "Receipt" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "Roll" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "Message From Operator" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "Print Resolution" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "Printer State" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "Detailed Printer State" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "Old Alerts Have Been Removed" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "Bander Added" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "Bander Almost Empty" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "Bander Almost Full" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "Bander At Limit" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "Bander Closed" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "Bander Configuration Change" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "Bander Cover Closed" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "Bander Cover Open" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "Bander Empty" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "Bander Full" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "Bander Interlock Closed" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "Bander Interlock Open" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "Bander Jam" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "Bander Life Almost Over" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "Bander Life Over" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "Bander Memory Exhausted" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "Bander Missing" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "Bander Motor Failure" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "Bander Near Limit" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "Bander Offline" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "Bander Opened" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "Bander Over Temperature" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "Bander Power Saver" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "Bander Recoverable Failure" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "Bander Recoverable Storage" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "Bander Removed" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "Bander Resource Added" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "Bander Resource Removed" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "Bander Thermistor Failure" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "Bander Timing Failure" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "Bander Turned Off" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "Bander Turned On" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "Bander Under Temperature" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "Bander Unrecoverable Failure" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "Bander Unrecoverable Storage Error" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "Bander Warming Up" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "Binder Added" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "Binder Almost Empty" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "Binder Almost Full" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "Binder At Limit" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "Binder Closed" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "Binder Configuration Change" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "Binder Cover Closed" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "Binder Cover Open" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "Binder Empty" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "Binder Full" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "Binder Interlock Closed" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "Binder Interlock Open" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "Binder Jam" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "Binder Life Almost Over" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "Binder Life Over" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "Binder Memory Exhausted" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "Binder Missing" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "Binder Motor Failure" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "Binder Near Limit" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "Binder Offline" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "Binder Opened" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "Binder Over Temperature" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "Binder Power Saver" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "Binder Recoverable Failure" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "Binder Recoverable Storage" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "Binder Removed" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "Binder Resource Added" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "Binder Resource Removed" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "Binder Thermistor Failure" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "Binder Timing Failure" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "Binder Turned Off" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "Binder Turned On" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "Binder Under Temperature" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "Binder Unrecoverable Failure" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "Binder Unrecoverable Storage Error" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "Binder Warming Up" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "Camera Failure" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "Chamber Cooling" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "Chamber Failure" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "Chamber Heating" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "Chamber Temperature High" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "Chamber Temperature Low" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "Cleaner Life Almost Over" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "Cleaner Life Over" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "Configuration Change" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "Connecting To Device" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "Cover Open" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "Deactivated" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "Developer Empty" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "Developer Low" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "Die Cutter Added" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "Die Cutter Almost Empty" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "Die Cutter Almost Full" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "Die Cutter At Limit" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "Die Cutter Closed" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "Die Cutter Configuration Change" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "Die Cutter Cover Closed" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "Die Cutter Cover Open" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "Die Cutter Empty" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "Die Cutter Full" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "Die Cutter Interlock Closed" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "Die Cutter Interlock Open" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "Die Cutter Jam" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "Die Cutter Life Almost Over" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "Die Cutter Life Over" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "Die Cutter Memory Exhausted" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "Die Cutter Missing" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "Die Cutter Motor Failure" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "Die Cutter Near Limit" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "Die Cutter Offline" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "Die Cutter Opened" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "Die Cutter Over Temperature" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "Die Cutter Power Saver" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "Die Cutter Recoverable Failure" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "Die Cutter Recoverable Storage" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "Die Cutter Removed" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "Die Cutter Resource Added" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "Die Cutter Resource Removed" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "Die Cutter Thermistor Failure" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "Die Cutter Timing Failure" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "Die Cutter Turned Off" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "Die Cutter Turned On" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "Die Cutter Under Temperature" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "Die Cutter Unrecoverable Failure" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "Die Cutter Unrecoverable Storage Error" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "Die Cutter Warming Up" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "Door Open" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "Extruder Cooling" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "Extruder Failure" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "Extruder Heating" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "Extruder Jam" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "Extruder Temperature High" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "Extruder Temperature Low" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "Fan Failure" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "Fax Modem Life Almost Over" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "Fax Modem Life Over" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "Fax Modem Missing" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "Fax Modem Turned Off" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "Fax Modem Turned On" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "Folder Added" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "Folder Almost Empty" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "Folder Almost Full" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "Folder At Limit" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "Folder Closed" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "Folder Configuration Change" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "Folder Cover Closed" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "Folder Cover Open" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "Folder Empty" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "Folder Full" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "Folder Interlock Closed" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "Folder Interlock Open" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "Folder Jam" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "Folder Life Almost Over" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "Folder Life Over" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "Folder Memory Exhausted" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "Folder Missing" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "Folder Motor Failure" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "Folder Near Limit" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "Folder Offline" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "Folder Opened" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "Folder Over Temperature" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "Folder Power Saver" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "Folder Recoverable Failure" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "Folder Recoverable Storage" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "Folder Removed" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "Folder Resource Added" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "Folder Resource Removed" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "Folder Thermistor Failure" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "Folder Timing Failure" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "Folder Turned Off" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "Folder Turned On" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "Folder Under Temperature" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "Folder Unrecoverable Failure" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "Folder Unrecoverable Storage Error" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "Folder Warming Up" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "Fuser Over Temp" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "Fuser Under Temp" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "Hold New Jobs" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "Identify Printer" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "Imprinter Added" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "Imprinter Almost Empty" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "Imprinter Almost Full" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "Imprinter At Limit" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "Imprinter Closed" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "Imprinter Configuration Change" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "Imprinter Cover Closed" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "Imprinter Cover Open" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "Imprinter Empty" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "Imprinter Full" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "Imprinter Interlock Closed" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "Imprinter Interlock Open" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "Imprinter Jam" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "Imprinter Life Almost Over" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "Imprinter Life Over" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "Imprinter Memory Exhausted" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "Imprinter Missing" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "Imprinter Motor Failure" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "Imprinter Near Limit" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "Imprinter Offline" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "Imprinter Opened" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "Imprinter Over Temperature" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "Imprinter Power Saver" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "Imprinter Recoverable Failure" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "Imprinter Recoverable Storage" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "Imprinter Removed" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "Imprinter Resource Added" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "Imprinter Resource Removed" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "Imprinter Thermistor Failure" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "Imprinter Timing Failure" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "Imprinter Turned Off" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "Imprinter Turned On" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "Imprinter Under Temperature" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "Imprinter Unrecoverable Failure" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "Imprinter Unrecoverable Storage Error" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "Imprinter Warming Up" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "Input Cannot Feed Size Selected" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "Input Manual Input Request" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "Input Media Color Change" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "Input Media Form Parts Change" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "Input Media Size Change" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "Input Media Tray Failure" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "Input Media Tray Feed Error" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "Input Media Tray Jam" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "Input Media Type Change" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "Input Media Weight Change" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "Input Pick Roller Failure" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "Input Pick Roller Life Over" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "Input Pick Roller Life Warn" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "Input Pick Roller Missing" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "Input Tray Elevation Failure" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "Input Tray Missing" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "Input Tray Position Failure" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "Inserter Added" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "Inserter Almost Empty" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "Inserter Almost Full" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "Inserter At Limit" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "Inserter Closed" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "Inserter Configuration Change" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "Inserter Cover Closed" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "Inserter Cover Open" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "Inserter Empty" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "Inserter Full" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "Inserter Interlock Closed" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "Inserter Interlock Open" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "Inserter Jam" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "Inserter Life Almost Over" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "Inserter Life Over" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "Inserter Memory Exhausted" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "Inserter Missing" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "Inserter Motor Failure" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "Inserter Near Limit" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "Inserter Offline" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "Inserter Opened" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "Inserter Over Temperature" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "Inserter Power Saver" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "Inserter Recoverable Failure" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "Inserter Recoverable Storage" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "Inserter Removed" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "Inserter Resource Added" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "Inserter Resource Removed" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "Inserter Thermistor Failure" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "Inserter Timing Failure" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "Inserter Turned Off" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "Inserter Turned On" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "Inserter Under Temperature" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "Inserter Unrecoverable Failure" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "Inserter Unrecoverable Storage Error" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "Inserter Warming Up" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "Interlock Closed" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "Interlock Open" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "Interpreter Cartridge Added" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "Interpreter Cartridge Removed" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "Interpreter Complex Page Encountered" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "Interpreter Memory Decrease" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "Interpreter Memory Increase" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "Interpreter Resource Added" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "Interpreter Resource Deleted" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "Interpreter Resource Unavailable" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "Lamp At End of Life" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "Lamp Failure" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "Lamp Near End of Life" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "Laser At End of Life" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "Laser Failure" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "Laser Near End of Life" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "Envelope Maker Added" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "Envelope Maker Almost Empty" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "Envelope Maker Almost Full" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "Envelope Maker At Limit" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "Envelope Maker Closed" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "Envelope Maker Configuration Change" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "Envelope Maker Cover Closed" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "Envelope Maker Cover Open" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "Envelope Maker Empty" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "Envelope Maker Full" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "Envelope Maker Interlock Closed" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "Envelope Maker Interlock Open" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "Envelope Maker Jam" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "Envelope Maker Life Almost Over" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "Envelope Maker Life Over" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "Envelope Maker Memory Exhausted" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "Envelope Maker Missing" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "Envelope Maker Motor Failure" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "Envelope Maker Near Limit" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "Envelope Maker Offline" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "Envelope Maker Opened" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "Envelope Maker Over Temperature" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "Envelope Maker Power Saver" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "Envelope Maker Recoverable Failure" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "Envelope Maker Recoverable Storage" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "Envelope Maker Removed" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "Envelope Maker Resource Added" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "Envelope Maker Resource Removed" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "Envelope Maker Thermistor Failure" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "Envelope Maker Timing Failure" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "Envelope Maker Turned Off" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "Envelope Maker Turned On" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "Envelope Maker Under Temperature" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "Envelope Maker Unrecoverable Failure" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "Envelope Maker Unrecoverable Storage Error" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "Envelope Maker Warming Up" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "Marker Adjusting Print Quality" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "Marker Cleaner Missing" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "Marker Developer Almost Empty" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "Marker Developer Empty" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "Marker Developer Missing" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "Marker Fuser Missing" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "Marker Fuser Thermistor Failure" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "Marker Fuser Timing Failure" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "Low ink" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "Ink empty" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "Ink missing" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "OPC missing" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "Print ribbon Almost Empty" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "Print ribbon Empty" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "Print ribbon missing" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "Ink/toner almost empty" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "Ink/toner empty" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "Ink/toner low" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "Ink/toner missing" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "Toner cartridge missing" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "Toner missing" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "Ink/toner waste bin almost full" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "Ink/toner waste bin full" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "Marker Waste Ink Receptacle Almost Full" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "Marker Waste Ink Receptacle Full" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "Marker Waste Ink Receptacle Missing" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "Ink/toner waste bin missing" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "Marker Waste Toner Receptacle Almost Full" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "Marker Waste Toner Receptacle Full" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "Marker Waste Toner Receptacle Missing" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "Material Empty" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "Material Low" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "Material Needed" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "Media Drying" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "Media Empty" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "Media Jam" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "Paper tray is almost empty" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "Load paper" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "Media Path Cannot Do 2-Sided Printing" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "Media Path Failure" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "Media Path Input Empty" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "Media Path Input Feed Error" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "Media Path Input Jam" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "Media Path Input Request" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "Media Path Jam" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "Media Path Media Tray Almost Full" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "Media Path Media Tray Full" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "Media Path Media Tray Missing" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "Media Path Output Feed Error" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "Media Path Output Full" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "Media Path Output Jam" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "Media Path Pick Roller Failure" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "Media Path Pick Roller Life Over" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "Media Path Pick Roller Life Warn" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "Media Path Pick Roller Missing" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "Motor Failure" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "Moving To Paused" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "None" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "Optical Photoconductor Life Over" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "Optical Photoconductor Near End-of-life" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "Other" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "Output Area Almost Full" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "Output Area Full" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "Output Mailbox Select Failure" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "Output Media Tray Failure" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "Output Media Tray Feed Error" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "Output Media Tray Jam" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "Output Tray Missing" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "Paused" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "Perforater Added" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "Perforater Almost Empty" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "Perforater Almost Full" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "Perforater At Limit" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "Perforater Closed" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "Perforater Configuration Change" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "Perforater Cover Closed" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "Perforater Cover Open" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "Perforater Empty" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "Perforater Full" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "Perforater Interlock Closed" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "Perforater Interlock Open" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "Perforater Jam" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "Perforater Life Almost Over" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "Perforater Life Over" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "Perforater Memory Exhausted" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "Perforater Missing" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "Perforater Motor Failure" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "Perforater Near Limit" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "Perforater Offline" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "Perforater Opened" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "Perforater Over Temperature" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "Perforater Power Saver" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "Perforater Recoverable Failure" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "Perforater Recoverable Storage" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "Perforater Removed" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "Perforater Resource Added" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "Perforater Resource Removed" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "Perforater Thermistor Failure" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "Perforater Timing Failure" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "Perforater Turned Off" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "Perforater Turned On" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "Perforater Under Temperature" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "Perforater Unrecoverable Failure" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "Perforater Unrecoverable Storage Error" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "Perforater Warming Up" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "Platform Cooling" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "Platform Failure" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "Platform Heating" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "Platform Temperature High" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "Platform Temperature Low" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "Power Down" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "Power Up" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "Printer Reset Manually" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "Printer Reset Remotely" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "Printer Ready To Print" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "Puncher Added" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "Puncher Almost Empty" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "Puncher Almost Full" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "Puncher At Limit" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "Puncher Closed" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "Puncher Configuration Change" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "Puncher Cover Closed" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "Puncher Cover Open" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "Puncher Empty" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "Puncher Full" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "Puncher Interlock Closed" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "Puncher Interlock Open" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "Puncher Jam" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "Puncher Life Almost Over" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "Puncher Life Over" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "Puncher Memory Exhausted" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "Puncher Missing" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "Puncher Motor Failure" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "Puncher Near Limit" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "Puncher Offline" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "Puncher Opened" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "Puncher Over Temperature" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "Puncher Power Saver" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "Puncher Recoverable Failure" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "Puncher Recoverable Storage" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "Puncher Removed" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "Puncher Resource Added" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "Puncher Resource Removed" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "Puncher Thermistor Failure" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "Puncher Timing Failure" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "Puncher Turned Off" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "Puncher Turned On" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "Puncher Under Temperature" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "Puncher Unrecoverable Failure" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "Puncher Unrecoverable Storage Error" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "Puncher Warming Up" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "Separation Cutter Added" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "Separation Cutter Almost Empty" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "Separation Cutter Almost Full" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "Separation Cutter At Limit" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "Separation Cutter Closed" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "Separation Cutter Configuration Change" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "Separation Cutter Cover Closed" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "Separation Cutter Cover Open" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "Separation Cutter Empty" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "Separation Cutter Full" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "Separation Cutter Interlock Closed" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "Separation Cutter Interlock Open" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "Separation Cutter Jam" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "Separation Cutter Life Almost Over" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "Separation Cutter Life Over" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "Separation Cutter Memory Exhausted" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "Separation Cutter Missing" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "Separation Cutter Motor Failure" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "Separation Cutter Near Limit" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "Separation Cutter Offline" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "Separation Cutter Opened" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "Separation Cutter Over Temperature" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "Separation Cutter Power Saver" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "Separation Cutter Recoverable Failure" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "Separation Cutter Recoverable Storage" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "Separation Cutter Removed" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "Separation Cutter Resource Added" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "Separation Cutter Resource Removed" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "Separation Cutter Thermistor Failure" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "Separation Cutter Timing Failure" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "Separation Cutter Turned Off" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "Separation Cutter Turned On" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "Separation Cutter Under Temperature" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "Separation Cutter Unrecoverable Failure" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "Separation Cutter Unrecoverable Storage Error" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "Separation Cutter Warming Up" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "Sheet Rotator Added" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "Sheet Rotator Almost Empty" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "Sheet Rotator Almost Full" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "Sheet Rotator At Limit" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "Sheet Rotator Closed" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "Sheet Rotator Configuration Change" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "Sheet Rotator Cover Closed" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "Sheet Rotator Cover Open" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "Sheet Rotator Empty" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "Sheet Rotator Full" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "Sheet Rotator Interlock Closed" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "Sheet Rotator Interlock Open" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "Sheet Rotator Jam" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "Sheet Rotator Life Almost Over" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "Sheet Rotator Life Over" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "Sheet Rotator Memory Exhausted" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "Sheet Rotator Missing" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "Sheet Rotator Motor Failure" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "Sheet Rotator Near Limit" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "Sheet Rotator Offline" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "Sheet Rotator Opened" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "Sheet Rotator Over Temperature" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "Sheet Rotator Power Saver" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "Sheet Rotator Recoverable Failure" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "Sheet Rotator Recoverable Storage" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "Sheet Rotator Removed" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "Sheet Rotator Resource Added" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "Sheet Rotator Resource Removed" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "Sheet Rotator Thermistor Failure" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "Sheet Rotator Timing Failure" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "Sheet Rotator Turned Off" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "Sheet Rotator Turned On" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "Sheet Rotator Under Temperature" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "Sheet Rotator Unrecoverable Failure" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "Sheet Rotator Unrecoverable Storage Error" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "Sheet Rotator Warming Up" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "Shutdown" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "Slitter Added" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "Slitter Almost Empty" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "Slitter Almost Full" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "Slitter At Limit" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "Slitter Closed" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "Slitter Configuration Change" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "Slitter Cover Closed" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "Slitter Cover Open" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "Slitter Empty" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "Slitter Full" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "Slitter Interlock Closed" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "Slitter Interlock Open" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "Slitter Jam" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "Slitter Life Almost Over" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "Slitter Life Over" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "Slitter Memory Exhausted" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "Slitter Missing" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "Slitter Motor Failure" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "Slitter Near Limit" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "Slitter Offline" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "Slitter Opened" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "Slitter Over Temperature" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "Slitter Power Saver" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "Slitter Recoverable Failure" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "Slitter Recoverable Storage" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "Slitter Removed" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "Slitter Resource Added" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "Slitter Resource Removed" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "Slitter Thermistor Failure" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "Slitter Timing Failure" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "Slitter Turned Off" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "Slitter Turned On" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "Slitter Under Temperature" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "Slitter Unrecoverable Failure" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "Slitter Unrecoverable Storage Error" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "Slitter Warming Up" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "Spool Area Full" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "Stacker Added" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "Stacker Almost Empty" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "Stacker Almost Full" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "Stacker At Limit" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "Stacker Closed" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "Stacker Configuration Change" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "Stacker Cover Closed" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "Stacker Cover Open" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "Stacker Empty" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "Stacker Full" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "Stacker Interlock Closed" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "Stacker Interlock Open" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "Stacker Jam" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "Stacker Life Almost Over" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "Stacker Life Over" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "Stacker Memory Exhausted" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "Stacker Missing" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "Stacker Motor Failure" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "Stacker Near Limit" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "Stacker Offline" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "Stacker Opened" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "Stacker Over Temperature" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "Stacker Power Saver" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "Stacker Recoverable Failure" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "Stacker Recoverable Storage" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "Stacker Removed" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "Stacker Resource Added" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "Stacker Resource Removed" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "Stacker Thermistor Failure" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "Stacker Timing Failure" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "Stacker Turned Off" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "Stacker Turned On" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "Stacker Under Temperature" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "Stacker Unrecoverable Failure" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "Stacker Unrecoverable Storage Error" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "Stacker Warming Up" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "Stapler Added" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "Stapler Almost Empty" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "Stapler Almost Full" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "Stapler At Limit" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "Stapler Closed" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "Stapler Configuration Change" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "Stapler Cover Closed" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "Stapler Cover Open" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "Stapler Empty" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "Stapler Full" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "Stapler Interlock Closed" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "Stapler Interlock Open" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "Stapler Jam" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "Stapler Life Almost Over" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "Stapler Life Over" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "Stapler Memory Exhausted" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "Stapler Missing" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "Stapler Motor Failure" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "Stapler Near Limit" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "Stapler Offline" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "Stapler Opened" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "Stapler Over Temperature" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "Stapler Power Saver" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "Stapler Recoverable Failure" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "Stapler Recoverable Storage" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "Stapler Removed" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "Stapler Resource Added" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "Stapler Resource Removed" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "Stapler Thermistor Failure" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "Stapler Timing Failure" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "Stapler Turned Off" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "Stapler Turned On" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "Stapler Under Temperature" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "Stapler Unrecoverable Failure" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "Stapler Unrecoverable Storage Error" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "Stapler Warming Up" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "Stitcher Added" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "Stitcher Almost Empty" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "Stitcher Almost Full" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "Stitcher At Limit" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "Stitcher Closed" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "Stitcher Configuration Change" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "Stitcher Cover Closed" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "Stitcher Cover Open" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "Stitcher Empty" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "Stitcher Full" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "Stitcher Interlock Closed" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "Stitcher Interlock Open" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "Stitcher Jam" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "Stitcher Life Almost Over" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "Stitcher Life Over" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "Stitcher Memory Exhausted" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "Stitcher Missing" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "Stitcher Motor Failure" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "Stitcher Near Limit" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "Stitcher Offline" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "Stitcher Opened" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "Stitcher Over Temperature" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "Stitcher Power Saver" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "Stitcher Recoverable Failure" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "Stitcher Recoverable Storage" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "Stitcher Removed" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "Stitcher Resource Added" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "Stitcher Resource Removed" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "Stitcher Thermistor Failure" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "Stitcher Timing Failure" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "Stitcher Turned Off" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "Stitcher Turned On" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "Stitcher Under Temperature" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "Stitcher Unrecoverable Failure" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "Stitcher Unrecoverable Storage Error" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "Stitcher Warming Up" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "Stopped Partly" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "Stopping" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "Subunit Added" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "Subunit Almost Empty" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "Subunit Almost Full" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "Subunit At Limit" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "Subunit Closed" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "Subunit Cooling Down" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "Subunit Empty" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "Subunit Full" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "Subunit Life Almost Over" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "Subunit Life Over" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "Subunit Memory Exhausted" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "Subunit Missing" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "Subunit Motor Failure" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "Subunit Near Limit" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "Subunit Offline" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "Subunit Opened" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "Subunit Over Temperature" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "Subunit Power Saver" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "Subunit Recoverable Failure" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "Subunit Recoverable Storage" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "Subunit Removed" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "Subunit Resource Added" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "Subunit Resource Removed" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "Subunit Thermistor Failure" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "Subunit Timing Failure" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "Subunit Turned Off" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "Subunit Turned On" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "Subunit Under Temperature" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "Subunit Unrecoverable Failure" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "Subunit Unrecoverable Storage" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "Subunit Warming Up" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "Timed Out" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "Toner Empty" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "Toner Low" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "Trimmer Added" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "Trimmer Almost Empty" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "Trimmer Almost Full" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "Trimmer At Limit" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "Trimmer Closed" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "Trimmer Configuration Change" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "Trimmer Cover Closed" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "Trimmer Cover Open" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "Trimmer Empty" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "Trimmer Full" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "Trimmer Interlock Closed" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "Trimmer Interlock Open" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "Trimmer Jam" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "Trimmer Life Almost Over" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "Trimmer Life Over" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "Trimmer Memory Exhausted" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "Trimmer Missing" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "Trimmer Motor Failure" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "Trimmer Near Limit" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "Trimmer Offline" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "Trimmer Opened" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "Trimmer Over Temperature" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "Trimmer Power Saver" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "Trimmer Recoverable Failure" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "Trimmer Recoverable Storage" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "Trimmer Removed" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "Trimmer Resource Added" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "Trimmer Resource Removed" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "Trimmer Thermistor Failure" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "Trimmer Timing Failure" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "Trimmer Turned Off" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "Trimmer Turned On" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "Trimmer Under Temperature" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "Trimmer Unrecoverable Failure" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "Trimmer Unrecoverable Storage Error" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "Trimmer Warming Up" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "Unknown" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "Wrapper Added" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "Wrapper Almost Empty" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "Wrapper Almost Full" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "Wrapper At Limit" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "Wrapper Closed" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "Wrapper Configuration Change" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "Wrapper Cover Closed" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "Wrapper Cover Open" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "Wrapper Empty" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "Wrapper Full" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "Wrapper Interlock Closed" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "Wrapper Interlock Open" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "Wrapper Jam" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "Wrapper Life Almost Over" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "Wrapper Life Over" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "Wrapper Memory Exhausted" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "Wrapper Missing" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "Wrapper Motor Failure" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "Wrapper Near Limit" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "Wrapper Offline" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "Wrapper Opened" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "Wrapper Over Temperature" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "Wrapper Power Saver" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "Wrapper Recoverable Failure" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "Wrapper Recoverable Storage" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "Wrapper Removed" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "Wrapper Resource Added" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "Wrapper Resource Removed" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "Wrapper Thermistor Failure" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "Wrapper Timing Failure" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "Wrapper Turned Off" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "Wrapper Turned On" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "Wrapper Under Temperature" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "Wrapper Unrecoverable Failure" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "Wrapper Unrecoverable Storage Error" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "Wrapper Warming Up" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "Idle" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "Processing" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "Stopped" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "Printer Uptime" msgid "processing" msgstr "processing" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "Proof Print" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "Proof Print Copies" #. TRANSLATORS: Punching msgid "punching" msgstr "Punching" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "Punching Locations" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "Punching Offset" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "Punch Edge" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "Bottom" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "Left" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "Right" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "Top" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "request id is %s-%d (%d file(s))" msgid "request-id uses indefinite length" msgstr "request-id uses indefinite length" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "Requested Attributes" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "Retry Interval" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "Retry Timeout" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "Save Disposition" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "None" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "Print and Save" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "Save Only" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "Save Document Format" #. TRANSLATORS: Save Info msgid "save-info" msgstr "Save Info" #. TRANSLATORS: Save Location msgid "save-location" msgstr "Save Location" #. TRANSLATORS: Save Name msgid "save-name" msgstr "Save Name" msgid "scheduler is not running" msgstr "scheduler is not running" msgid "scheduler is running" msgstr "scheduler is running" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "Separator Sheets" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "Type of Separator Sheets" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "Start and End Sheets" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "End Sheet" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "None" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "Slip Sheets" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "Start Sheet" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "2-Sided Printing" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "Off" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "On (Portrait)" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "On (Landscape)" #, c-format msgid "stat of %s failed: %s" msgstr "stat of %s failed: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tShow status of daemon and queue." #. TRANSLATORS: Status Message msgid "status-message" msgstr "Status Message" #. TRANSLATORS: Staple msgid "stitching" msgstr "Staple" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "Stitching Angle" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "Stitching Locations" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "Staple Method" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "Automatic" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "Crimp" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "Wire" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "Stitching Offset" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "Staple Edge" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "Bottom" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "Left" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "Right" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "Top" msgid "stopped" msgstr "stopped" #. TRANSLATORS: Subject msgid "subject" msgstr "Subject" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "Subscription Privacy Attributes" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "All" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "Default" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "None" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "Subscription Description" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "Subscription Template" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "Subscription Privacy Scope" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "All" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "Default" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "None" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "Owner" #, c-format msgid "system default destination: %s" msgstr "system default destination: %s" #, c-format msgid "system default destination: %s/%s" msgstr "system default destination: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "To Name" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "Transmission Status" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "Pending" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "Pending Retry" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "Processing" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "Canceled" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "Aborted" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "Completed" #. TRANSLATORS: Cut msgid "trimming" msgstr "Cut" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "Cut Position" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "Cut Edge" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "Bottom" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "Left" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "Right" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "Top" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "Type of Cut" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "Draw Line" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "Full" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "Partial" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "Perforate" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "Score" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "Tab" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "Cut After" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "Every Document" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "Job" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "Every Set" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "Every Page" msgid "unknown" msgstr "unknown" msgid "untitled" msgstr "untitled" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings uses indefinite length" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "X Accuracy" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "X Dimension" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "X Offset" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "X Origin" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "Y Accuracy" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "Y Dimension" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "Y Offset" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "Y Origin" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "Z Accuracy" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "Z Dimension" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "Z Offset" msgid "{service_domain} Domain name" msgstr "{service_domain} Domain name" msgid "{service_hostname} Fully-qualified domain name" msgstr "{service_hostname} Fully-qualified domain name" msgid "{service_name} Service instance name" msgstr "{service_name} Service instance name" msgid "{service_port} Port number" msgstr "{service_port} Port number" msgid "{service_regtype} DNS-SD registration type" msgstr "{service_regtype} DNS-SD registration type" msgid "{service_scheme} URI scheme" msgstr "{service_scheme} URI scheme" msgid "{service_uri} URI" msgstr "{service_uri} URI" msgid "{txt_*} Value of TXT record key" msgstr "{txt_*} Value of TXT record key" msgid "{} URI" msgstr "{} URI" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "~/.cups/lpoptions file names default destination that does not exist." #~ msgid "-i iconfile.png Set icon file" #~ msgstr "-i iconfile.png Set icon file" #~ msgid "Dymo" #~ msgstr "Dymo" cups-2.4.7/locale/cups_de.po0000644000175000017500000133407214502571342015614 0ustar zdohnalzdohnal# # German message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Notes for Translators: # # The "checkpo" program located in the "locale" source directory can be used # to verify that your translations do not introduce formatting errors or other # problems. Run with: # # cd locale # ./checkpo cups_LL.po # # where "LL" is your locale. # Frederik Schwarzer , 2021. # Joachim Schwender , 2021-2022. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.4\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2022-02-16 09:22+0100\n" "Last-Translator: Joachim Schwender \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "X-Generator: Gtranslator 40.0\n" msgid "\t\t(all)" msgstr "\t\t(alle)" msgid "\t\t(none)" msgstr "\t\t(keine)" #, c-format msgid "\t%d entries" msgstr "\t%d Einträge" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tNach einem Fehler: fortfahren" #, c-format msgid "\tAlerts: %s" msgstr "\tAlarme: %s" msgid "\tBanner required" msgstr "\tBanner erforderlich" msgid "\tCharset sets:" msgstr "\tZeichensatz-Set:" msgid "\tConnection: direct" msgstr "\tVerbindung: direkt" msgid "\tConnection: remote" msgstr "\tVerbindung: über Netz" msgid "\tContent types: any" msgstr "\tInhaltstypen: beliebig" msgid "\tDefault page size:" msgstr "\tVoreingestellte Seitengröße:" msgid "\tDefault pitch:" msgstr "\tVoreingestellte Gradation:" msgid "\tDefault port settings:" msgstr "\tVoreingestellte Porteinstellungen:" #, c-format msgid "\tDescription: %s" msgstr "\tBeschreibung: %s" msgid "\tForm mounted:" msgstr "\tGeladenes Formblatt:" msgid "\tForms allowed:" msgstr "\tErlaubte Formblätter:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tSchnittstelle: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tSchnittstelle: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tOrt: %s" msgid "\tOn fault: no alert" msgstr "\tBei Fehlern: kein Alarm" msgid "\tPrinter types: unknown" msgstr "\tDruckertypen: unbekannt" #, c-format msgid "\tStatus: %s" msgstr "\tStatus: %s" msgid "\tUsers allowed:" msgstr "\tErlaubte Benutzer:" msgid "\tUsers denied:" msgstr "\tGesperrte Benutzer:" msgid "\tdaemon present" msgstr "\tDienst verfügbar" msgid "\tno entries" msgstr "\tKeine Einträge" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tDrucker ist am Gerät '%s' Geschwindigkeit -1" msgid "\tprinting is disabled" msgstr "\tDrucken ist abgeschaltet" msgid "\tprinting is enabled" msgstr "\tDrucken ist eingeschaltet" #, c-format msgid "\tqueued for %s" msgstr "\tin Warteschlange eingereiht für %s" msgid "\tqueuing is disabled" msgstr "\tin Warteschlange einreihen gesperrt" msgid "\tqueuing is enabled" msgstr "\tin Warteschlange einreihen erlaubt" msgid "\treason unknown" msgstr "\tunbekannter Grund" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " DETAILLIERTE ERGEBNISSE DES KONFORMITÄTSTESTS" msgid " REF: Page 15, section 3.1." msgstr " REF: Seite 15, Kap. 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: Seite 15, Kap. 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: Seite 19, Kap. 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: Seite 20, Kap. 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: Seite 27, Kap. 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: Seite 42, Kap. 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: Seiten 16-17, Kap. 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: Seiten 42-45, Kap. 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: Seiten 45-46, Kap. 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: Seiten 48-49, Kap. 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: Seiten 52-52, Kap. 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f Bytes" #, c-format msgid " PASS Default%s" msgstr " BESTANDEN Default%s" msgid " PASS DefaultImageableArea" msgstr " BESTANDEN DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " BESTANDEN DefaultPaperDimension" msgid " PASS FileVersion" msgstr " BESTANDEN FileVersion" msgid " PASS FormatVersion" msgstr " BESTANDEN FormatVersion" msgid " PASS LanguageEncoding" msgstr " BESTANDEN LanguageEncoding" msgid " PASS LanguageVersion" msgstr " BESTANDEN LanguageVersion" msgid " PASS Manufacturer" msgstr " BESTANDEN Manufacturer" msgid " PASS ModelName" msgstr " BESTANDEN ModelName" msgid " PASS NickName" msgstr " BESTANDEN NickName" msgid " PASS PCFileName" msgstr " BESTANDEN PCFileName" msgid " PASS PSVersion" msgstr " BESTANDEN PSVersion" msgid " PASS PageRegion" msgstr " BESTANDEN PageRegion" msgid " PASS PageSize" msgstr " BESTANDEN PageSize" msgid " PASS Product" msgstr " BESTANDEN Product" msgid " PASS ShortNickName" msgstr " BESTANDEN ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " WARN %s hat keine entsprechenden Optionen." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " WARN %s hat mit %s ein gemeinsames Präfix\n" " REF: Seite 15, Kap. 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " WARN Schlüsselwort für Duplex-Option %s funktioniert " "möglicherweise nicht wie erwartet und sollte Duplex genannt werden.\n" " REF: Seite 122, Abschnitt 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " WARN Datei enthält gemischt CR-, LF-, und CR-LF-Zeilenenden." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " WARN LanguageEncoding ist erforderlich gem. PPD 4.3 " "Spezifikation.\n" " REF: Seiten 56-57, Kap. 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " WARN Zeile %d enthält nur Leerzeichen." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " WARN Hersteller erforderlich gem. PPD 4.3.\n" " REF: Seiten 58-59, Abschnitt 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " WARN Nicht-Windows-PPD-Dateien sollten ausschließlich LF-" "Zeilenenden verwenden, nicht CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " WARN Veraltete PPD-Version %.1f.\n" " REF: Seite 42, Kap. 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName länger als 8.3 verletzt die PPD Spezifikation.\n" " REF: Seiten 61-62, Abschnitt 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " WARN PCFileName sollte einen eindeutigen Dateinamen enthalten.\n" " REF: Seiten 61-62, Abschnitt 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Protocols enthält PJL aber JCL Attribute sind nicht " "festgelegt.\n" " REF: Seiten 78-79, Abschnitt 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " WARN Protocols enthalten PJL und BCP; erwartet wird TBCP.\n" " REF: Seiten 78-79, Abschnitt 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " WARN ShortNickName erforderlich gem.PPD 4.3 Spezifikation.\n" " REF: Seiten 64-65, Abschnitt 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s \"%s %s\" ist nicht vereinbar mit \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s existiert nicht." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s Datei \"%s\" hat falsche Großschreibung." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s Ungültige %s Auswahl %s.\n" " Siehe: Seite 122, Kap. 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s Ungültige UTF-8 »%s« Zeichenkette zur Übersetzung der Option %s, " "Auswahl %s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" " %s Ungültige UTF-8 »%s« Zeichenkette zur Übersetzung der Option %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s Wert für cupsFilter \"%s\"." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s Ungültiger Wert für cupsFilter2 \"%s\"." #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s Ungültiger Wert für cupsICCProfile %s." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s Ungültiger Wert für cupsPreFilter \"%s\"." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s Ungültiger Wert für cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s Ungültige Sprache \"%s\"." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s Ungültige Rechte %s Datei \"%s\"." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s Ungültige Schreibweise von %s - sollte %s sein." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" " %s Kann nicht sowohl APScanAppPath als auch APScanAppBundleID bereit " "stellen." #, c-format msgid " %s Default choices conflicting." msgstr " %s Widersprüchliche voreingestellte Auswahl." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s Leere cupsUIConstraints %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr " %s Fehlende \"%s\" Übersetzung für Option %s, Auswahl %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s Fehlende \"%s\" Übersetzung für Option %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s Fehlende %s Datei »%s«." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s Fehlende ERFORDERLICHE PageRegion Option.\n" " REF: Seite 100, Abschnitt 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s Fehlende ERFORDERLICHE PageSize Option.\n" " REF: Seite 99, Abschnitt 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Fehlende Auswahl *%s %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Fehlende Auswahl *%s %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s cupsUIResolver %s fehlt" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Fehlende Option %s in UIConstraints \"*%s %s *%s %s\"." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Fehlende Option %s in cupsUIConstraints %s: \"%s\"" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s Es ist keine Übersetzung \"%s\" in der Datei." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s ERFORDERLICHE %s definiert keine Auswahl.\n" " REF: Seite 122, Abschnitt 5.17." #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s Größe \"%s\" ist für %s definiert aber nicht für %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s Größe \"%s\" hat unerwartete Abmessungen (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s Größe \"%s\" sollte \"%s\" sein." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr " %s Size \"%s\" sollte der Adobe-Standard-Name \"%s\" sein." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfile %s Hashwert kollidiert mit %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s verursacht eine Schleife." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" " %s cupsUIResolver %s listet nicht mindestens zwei verschiedene " "Optionen auf." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **FEHLER** Voreingestellte Übersetzung für die Option %s Auswahl %s " "enthält 8-bit Zeichen." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **FEHLER** Voreingestellte Übersetzung für die Option %s enthält 8-" "bit Zeichen." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FEHLER** FileVersion ERFORDERLICH\n" " REF: Seite 56, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **FEHLER** FormatVersion ERFORDERLICH\n" " REF: Seite 56, Abschnitt 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **FEHLER** LanguageEncoding ERFORDERLICH\n" " REF: Seiten 56-57, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **FEHLER** LanguageVersion ERFORDERLICH\n" " REF: Seiten 57-58, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **FEHLER** Manufacturer ERFORDERLICH\n" " REF: Seiten 58-59, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **FEHLER** ModelName ERFORDERLICH\n" " REF: Seiten 59-60, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **FEHLER** NickName ERFORDERLICH\n" " REF: Seite 60, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **FEHLER** PCFileName ERFORDERLICH\n" " REF: Seiten 61-62, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **FEHLER** PSVersion ERFORDERLICH\n" " REF: Seiten 62-64, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **FEHLER** PageRegion ERFORDERLICH\n" " REF: Seite 100, Abschnitt 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **FEHLER** PageSize ERFORDERLICH\n" " REF: Seite 41, Abschnitt 5.\n" " Seite 99, Abschnitt 4.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **FEHLER** PageSize ERFORDERLICH\n" " REF: Seiten 99-100, Abschnitt 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **FEHLER** PaperDimension für PageSize %s ERFORDERLICH\n" " REF: Seite 41, Abschnitt 5.\n" " Seite 103, Abschnitt 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **FEHLER** Product ERFORDERLICH\n" " REF: Seite 62, Abschnitt 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FEHLER** ShortNickName ERFORDERLICH\n" " REF: Seiten 64-65, Abschnitt 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **FEHLER** Öffnen der PPD-Datei - %s in Zeile %d nicht möglich." #, c-format msgid " %d ERRORS FOUND" msgstr " %d FEHLER GEFUNDEN" msgid " NO ERRORS FOUND" msgstr " KEINE FEHLER GEFUNDEN" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Zeilenenden mit CR (Mac OS 9)" msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Zeilenenden mit CR+LF (Windows)" msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf Zeilenenden mit LF (UNIX/Linux/macOS)." msgid " --list-filters List filters that will be used." msgstr " --list-filters Liste die Filter auf die benutzt werden." msgid " -D Remove the input file when finished." msgstr " -D Lösche die Eingabe nach Beenden." msgid " -D name=value Set named variable to value." msgstr " -D Name=Wert Variable »Name« den »Wert« zuordnen." msgid " -I include-dir Add include directory to search path." msgstr "" " -I Inklus.Verz. Inklusionsverzeichnis dem Suchpfad hinzufügen." msgid " -P filename.ppd Set PPD file." msgstr " -P filename.ppd Lege PPD-Datei fest." msgid " -U username Specify username." msgstr " -U Benutzername Gebe den Benutzernamen an." msgid " -c catalog.po Load the specified message catalog." msgstr " -c Katalog.po Lade den angegebenen Nachrichtenkatalog." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" " -c cups-files.conf Setze die zu benutzende Datei cups-files.conf" msgid " -d output-dir Specify the output directory." msgstr " -d AusgabeVerz. Angabe des Ausgabeverzeichnisses." msgid " -d printer Use the named printer." msgstr " -d Drucker Benutze den genannten Drucker." msgid " -e Use every filter from the PPD file." msgstr " -e Benutzt jeden Filter der PPD-Datei." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type Legt den MIME-typ der Eingabe fest (sonst " "selbsterkennend)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j Auftrags-id[,N] Filterdatei N des angegebenen Auftrags " "(Voreingestellt ist Datei 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l lang[,lang,...] Spezifiziere die Ausgabesprache(n) (locale)." msgid " -m Use the ModelName value as the filename." msgstr " -m Verwende den ModellNamen als Dateinamen." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type Legt den MIME-Typ der Ausgabe fest (sonst " "application/pdf)." msgid " -n copies Set number of copies." msgstr " -n Kopien Lege die Anzahl der Kopien fest." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o Dateiname.drv Legt die Treiberinformationsdatei fest (sonst ppdi." "drv)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o Dateiname.ppd[.gz] Legt den Dateinamen der Ausgabe fest (sonst " "stdout)." msgid " -o name=value Set option(s)." msgstr " -o Name=Wert Option(en) festlegen." msgid " -p filename.ppd Set PPD file." msgstr " -p Dateiname.ppd PPD-Datei festlegen." msgid " -t Test PPDs instead of generating them." msgstr " -t Teste PPDs anstatt sie zu erzeugen." msgid " -t title Set title." msgstr " -t Titel Legt den Titel fest." msgid " -u Remove the PPD file when finished." msgstr " -u PPD-Datei nach dem Fertigstellen löschen." msgid " -v Be verbose." msgstr " -v Ausführliche Ausgabe." msgid " -z Compress PPD files using GNU zip." msgstr "" " -z Komprimiere PPD-Datei unter Verwendung von GNU zip." msgid " FAIL" msgstr " NICHT BESTANDEN" msgid " PASS" msgstr " BESTANDEN" msgid "! expression Unary NOT of expression" msgstr "! expression Unäres NICHT des Ausdrucks" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "\"%s\": Falscher URI-Wert \"%s\" - %s (RFC 8011 Abschnitt 5.1.6)." #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" "\"%s\": Falscher URI-Wert \"%s\" - falsche Länge %d (RFC 8011 Abschnitt " "5.1.6)." #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" "\"%s\": Falscher Attributname - falsche Länge %d (RFC 8011 Abschnitt 5.1.4)." #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" "\"%s\": Falscher Attributname - ungültiges Zeichen (RFC 8011 Abschnitt " "5.1.4)." #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "\"%s\": Falscher logischer Wert %d (RFC 8011 Abschnitt 5.1.21)." #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" "\"%s\": Falscher Zeichensatzwert \"%s\" - falsche Zeichen (RFC 8011 " "Abschnitt 5.1.8)." #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" "\"%s\": Falscher Zeichensatzwert \"%s\" - Falsche Länge %d (RFC 8011 " "Abschnitt 5.1.8)." #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime UTC Stunden %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime UTC Minuten %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" "\"%s\": Falsche dateTime UTC Vorzeichen'%c'.(RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime UTC Tag %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime Dezisekunden %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime Stunden %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime Minuten %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falscher dateTime Monat %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "\"%s\": Falsche dateTime Sekunden %u (RFC 8011 Abschnitt 5.1.15)." #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" "\"%s\": Falscher enum-Wert %d - Ausserhalb des Bereichs (RFC 8011 Abschnitt " "5.1.5)." #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" "\"%s\": Falscher Schlüsselwortwert \"%s\" - falsche Länge %d (RFC 8011 " "Abschnitt 5.1.4)." #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" "\"%s\": Falscher Schlüsselwortwert \"%s\" - ungültiges Zeichen (RFC 8011 " "Abschnitt 5.1.4)." #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" "\"%s\": Falscher mimeMediaType Wert \"%s\" - Falsche Zeichen (RFC 8011 " "section 5.1.10)." #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" "\"%s\": Falscher mimeMediaType Wert \"%s\" - Falsche Länge %d (RFC 8011 " "section 5.1.10)." #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" "\"%s\": Falscher Namenswert \"%s\" - falsche UTF-8-Sequenz (RFC 8011 " "Abschnitt 5.1.3)." #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" "\"%s\": Falscher Namenswert \"%s\" - Falsches Steuerzeichen (PWG 5100.14 " "Abschnitt 8.1)." #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" "\"%s\": Falscher Namenswert \"%s\" - falsche Länge %d (RFC 8011 Abschnitt " "5.1.3)." #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" "\"%s\": Falscher naturalLanguage Wert \"%s\" - ungültige Zeichen (RFC 8011 " "Abschnitt 5.1.9)." #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" "\"%s\": Falscher naturalLanguage Wert \"%s\" - ungültige Länge %d (RFC 8011 " "Abschnitt 5.1.9)." #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" "\"%s\": Falscher Auflösungswert %dx%d%s - falscher Einheitenwert (RFC 8011 " "Abschnitt 5.1.16)." #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" "\"%s\": Falscher Textwert \"%s\" - falsche UTF-8-Sequenz (RFC 8011 Abschnitt " "5.1.2)." #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" "\"%s\": Falscher Textwert \"%s\" - falsches Steuerzeichen (PWG 5100.14 " "Abschnitt 8.3)." #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" "\"%s\": Falscher Textwert \"%s\" - falsche Länge %d (RFC 8011 Abschnitt " "5.1.2)." #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" "\"%s\": Falscher uriScheme-Wert \"%s\" - falsche Zeichen (RFC 8011 Abschnitt " "5.1.7)." #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" "\"%s\": Falscher uriScheme-Wert \"%s\" - falsche Länge %d (RFC 8011 " "Abschnitt 5.1.7)." msgid "\"requesting-user-name\" attribute in wrong group." msgstr "\"requesting-user-name\" Attribute in der falschen Gruppe." msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "\"requesting-user-name\" Attribute mit falscher Syntax." #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f Bytes" #, c-format msgid "%d x %d mm" msgstr "%d x %d mm" #, c-format msgid "%g x %g \"" msgstr "%g x %g \"" #, c-format msgid "%s (%s)" msgstr "%s (%s)" #, c-format msgid "%s (%s, %s)" msgstr "%s (%s, %s)" #, c-format msgid "%s (Borderless)" msgstr "%s (Randlos)" #, c-format msgid "%s (Borderless, %s)" msgstr "%s (Randlos, %s)" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "%s (Randlos, %s, %s)" #, c-format msgid "%s accepting requests since %s" msgstr "%s akzeptiert Anfragen seit %s" #, c-format msgid "%s cannot be changed." msgstr "%s kann nicht geändert werden." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s ist in der CUPS-Version von lpc nicht implementiert." #, c-format msgid "%s is not ready" msgstr "%s ist nicht bereit" #, c-format msgid "%s is ready" msgstr "%s ist bereit" #, c-format msgid "%s is ready and printing" msgstr "%s ist bereit und druckt" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s Auftrags-ID Benutzer Titel Kopien Optionen [Datei]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s akzeptiert keine Anfragen seit %s -" #, c-format msgid "%s not supported." msgstr "%s wird nicht unterstützt." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s akzeptiert Anfragen seit %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s akzeptiert keine Anfragen seit %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [Auftrag %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s fehlgeschlagen: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "%s: Ungültige Drucker-URI \"%s\"." #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "%s: Ungültige Version %s für \"-V\"." #, c-format msgid "%s: Don't know what to do." msgstr "%s: Es ist nicht klar, was zu tun ist." #, c-format msgid "%s: Error - %s" msgstr "%s: Fehler - %s" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: Fehler - Umgebungsvariable %s benennt nicht existierendes Ziel \"%s\"." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "%s: Fehler - Der Drucker oder die Klasse existiert nicht." #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "%s: Fehler - füge '/version=1.1' zum Servernamen hinzu." #, c-format msgid "%s: Error - bad job ID." msgstr "%s: Fehler - ungültige Auftrags-ID." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: Fehler - kann nicht gleichzeitig Dateien drucken und Aufträge ändern." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: Fehler - Kann von der Standardeingabe nicht drucken, wenn eine Datei " "oder Auftrags-ID übergeben werden." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "%s: Fehler - Kopien muss 1 oder mehr sein." #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "%s: Fehler - \"Benutzername\" nach der \"-U\" Option erwartet." #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "%s: Fehler - PPD-Datei nach der Option \"-%c\" erwartet." #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "%s: Fehler - Zeichensatz nach der Option \"-S\" erwartet." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: Fehler - Inhaltstyp nach der Option \"-T\" erwartet." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: Fehler - Kopienanzahl nach der Option \"-#\" erwartet." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: Fehler - Kopienzahl nach der Option \"-n\" erwartet." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "%s: Fehler - Ziel-MIME-Type nach der \"-m\" Option erwartet." #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: Fehler - Zielangabe nach der Option \"-P\" erwartet." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: Fehler - Zielangabe nach der Option \"-d\" erwartet." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "%s: Fehler - Dateiname nach \"-c\" Option erwartet." #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: Fehler - erwarte form nach \"-f\" Option." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: Fehler - erwarte hold name nach \"-H\" Option." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: Fehler - Hostname nach der Option \"-H\" erwartet." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: Fehler - Hostname nach der Option \"-h\" erwartet." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "%s: Fehler - Eingabedatei nach \"-f\" Option erwartet." #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "%s: Fehler - Auftrags-id nach der Option \"-j\" erwartet." #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: Fehler - Modusliste nach der Option \"-y\" erwartet." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: Fehler - Name nach der Option \"-%c\" erwartet." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "%s: Fehler - Name=Wert nach der \"-a\" Option erwartet." #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "%s: Fehler - Name=Wert nach der \"-o\" Option erwartet." #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "%s: Fehler - Anzahl der Kopien nach der \"-n\" Option erwartet" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: Fehler - Option=Wert nach der Option \"-o\" erwartet." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: Fehler - Seitenliste nach der Option \"-P\" erwartet." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "%s: Fehler - Druckername nach der \"-d\" Option erwartet." #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: Fehler - Priorität nach der Option \"-%c\" erwartet." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: Fehler - Grund nach der Option \"-r\" erwartet." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "%s: Fehler - MIME-Type der Quelle nach der \"-i\" Option erwartet." #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "%s: Fehler - Titel nach der \"-%c\" Option erwartet." #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: Fehler - Titel nach der Option \"-t\" erwartet." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: Fehler - Benutzername nach der Option \"-U\" erwartet." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: Fehler - Benutzername nach der Option \"-u\" erwartet." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: Fehler - Wert nach der Option \"-%c\" erwartet." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: Fehler - benötigt \"completed\", \"not-completed\", oder \"all\" nach " "Option \"-W\"." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: Fehler - kein voreingestelltes Druckziel verfügbar." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: Fehler - Priorität muss zwischen 1 und 100 liegen." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: Fehler - Zeitplandienst antwortet nicht." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: Fehler - zu viele Dateien - \"%s\"." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: Fehler - Zugriff auf \"%s\" nicht möglich - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: Fehler - Empfang von stdin nicht möglich - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: Fehler - unbekanntes Druckziel \"%s\"." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: Fehler - unbekanntes Druckziel \"%s/%s\"." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: Fehler - unbekannte Option \"%c\"." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: Fehler - unbekannte Option \"%s\"." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "%s: Fehler - unbekannte Option \"%c\"." #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: Auftrags-ID nach der Option \"-i\" erwartet." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: Ungültiger Zielname in Liste \"%s\"." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: Ungültige Filterzeichenkette \"%s\"." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "%s: Fehlender Dateiname für \"-P\"." #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "%s: Fehlende Zeitüberschreitung für \"-T\"." #, c-format msgid "%s: Missing version for \"-V\"." msgstr "%s: Fehlende Version für \"-V\"." #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: Benötigt Auftrags-ID (\"-i jobid\") vor \"-H restart\"." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: Kein Filter zum Umwandeln von %s/%s nach %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: Vorgang fehlgeschlagen: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: Entschuldigung, Verschlüsselung wird nicht unterstützt." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "%s: Verbindung zu \"%s:%d\" nicht möglich: %s" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: Verbindung zum Server nicht möglich." #, c-format msgid "%s: Unable to contact server." msgstr "%s: Server kontaktieren nicht möglich." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "%s: Erzeugung der PPD-Datei nicht möglich: %s" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: Ermittlung des MIME-Typs von \"%s\" nicht möglich." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "%s: Öffnen von \"%s\" nicht möglich: %s" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: Öffnen von %s nicht möglich: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: Öffnen der PPD-Datei: %s in Zeile %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "%s: Abfrage des Druckers %s nicht möglich" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: Lesen der MIME-Datenbank von \"%s\" oder \"%s\" nicht möglich." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "%s: Auflösen von \"%s\" nicht möglich." #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "%s: Unbekanntes Argument \"%s\"." #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: Unbekanntes Druckziel \"%s\"." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: Unbekannter Ziel-MIME-Typ %s/%s." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: Unbekannte Option \"%c\"." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "%s: Unbekannte Option \"%s\"." #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "%s: Unbekannte Option \"-%c\"." #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: Unbekannter Quell-MIME-Typ %s/%s." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: Warnung - \"%c\" Formatänderung nicht unterstützt - Ausgabe könnte " "unkorrekt sein." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: Warnung - Zeichensatzoption ignoriert." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: Warnung - Inhaltstypenoption ignoriert." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: Warnung - form Option ignoriert." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: Warnung - Modusoption ignoriert." msgid "( expressions ) Group expressions" msgstr "( expressions ) gruppierter Ausdruck" msgid "- Cancel all jobs" msgstr "- Abbruch aller Aufträge" msgid "-# num-copies Specify the number of copies to print" msgstr "" "-# Kopienzahl Angabe der Anzahl der auszugebenden Druckexemplare" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "--[no-]debug-logging Debug-Logging aus/ein-schalten" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "--[no-]remote-admin Fernadministration ein/ausschalten" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "--[no-]remote-any erlaube/sperre Zugriff aus dem Internet" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "--[no-]share-printers Mitbenutzung ein/ausschalten" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "--false Immer falsch" msgid "--help Show program help" msgstr "--help Zeige Programmhilfe" msgid "--hold Hold new jobs" msgstr "--hold Neue Aufträge anhalten" msgid "--host regex Match hostname to regular expression" msgstr "--host regex Vergleiche Hostname mit Regulärem Ausdruck" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "--ippserver Dateiname Erstelle eine ippserver Attribut-Datei" msgid "--language locale Show models matching the given locale" msgstr "" "--language locale Zeige Modelle auf die die angegebene locale passt" msgid "--local True if service is local" msgstr "--local Wahr wenn der Dienst lokal ist" msgid "--ls List attributes" msgstr "--ls Liste Attribute" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "--name Regex Prüfe Dienstname mit regulärem Ausdruck" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "--not expression Unäres NICHT des Ausdrucks" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "--path Regex Prüfe Ressourcenpfad mit regulärem Ausdruck" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "--print Drucke URI wenn wahr" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "--quiet Übereinstimmung still über Exitcode berichten" msgid "--release Release previously held jobs" msgstr "--release Angehaltene Aufträge freigeben" msgid "--remote True if service is remote" msgstr "--remote Wahr wenn der Dienst entfernt ist." msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" "--timeout Sekunden Angabe der maximalen Anzahl der Sekunden zum " "Detektieren von Geräten" msgid "--true Always true" msgstr "--true Immer wahr" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" "--txt-* Regex Prüfe TXT-Schlüssel-Eintrag mit regulärem Ausdruck" msgid "--uri regex Match URI to regular expression" msgstr "--uri Regex Prüfe URI mit regulärem Ausdruck" msgid "--version Show program version" msgstr "--version zeige Programmversion" msgid "--version Show version" msgstr "--version zeige Version" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "-2 Duplex einschalten (Voreinstellung=Simplex)" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "-4 Verbinde mit IPv4" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "-6 Verbinde mit IPv6" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "-A Authentication einschalten" msgid "-C Send requests using chunking (default)" msgstr "" "-C Sende Anfragen mittels chunking (Voreinstellung)" msgid "-D description Specify the textual description of the printer" msgstr "-D Beschreibung Angabe der Textbeschreibung des Druckers" msgid "-D device-uri Set the device URI for the printer" msgstr "-D Geräte-uri Angabe der Geräte-URI für den Drucker" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" "-E Freigabe für Aufträge an den Drucker einschalten " "(nach -p)" msgid "-E Encrypt the connection to the server" msgstr "-E Verbindung zum Server verschlüsseln" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" "-E Teste mit Hochstufung der HTTP Verschlüsselung auf " "TLS" msgid "-F Run in the foreground but detach from console." msgstr "" "-F Läuft im Vordergrund, aber gelöst von der Konsole." msgid "-F output-type/subtype Set the output format for the printer" msgstr "-F output-type/subtype Setze das Ausgabeformat für den Drucker" msgid "-H Show the default server and port" msgstr "-H Zeige den voreingestellten Server und Port" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "-H HH:MM Auftrag anhalten biz zur angegeben UTC Uhrzeit" msgid "-H hold Hold the job until released/resumed" msgstr "" "-H hold Auftrag anhalten bis zur Freigabe/Wiederaufnahme" msgid "-H immediate Print the job as soon as possible" msgstr "-H immediate Drucke den Auftrag so bald als möglich" msgid "-H restart Reprint the job" msgstr "-H restart Auftrag erneut drucken" msgid "-H resume Resume a held job" msgstr "-H resume Wiederaufnahme eines angehaltenen Auftrags" msgid "-H server[:port] Connect to the named server and port" msgstr "-H server[:port] Verbinde zum genannten Server und Port" msgid "-I Ignore errors" msgstr "-I Ignoriere Fehler" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" "-I {filename,filters,none,profiles}\n" " Ignoriere spezifische Warnungen" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" "-K Pfad Lege den Pfad für Server X.509 Zertifikate und " "Schlüssel fest." msgid "-L Send requests using content-length" msgstr "-L Sende Anfragen mit content-length" msgid "-L location Specify the textual location of the printer" msgstr "-L Ort Textbeschreibung für den Ort des Druckers" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "-M Hersteller Herstellername angeben (Voreinstellung=Test)" msgid "-P destination Show status for the specified destination" msgstr "-P Ziel Zeige den Status für das angegebene Ziel" msgid "-P destination Specify the destination" msgstr "-P Ziel Angabe des Ziels" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" "-P Dateiname.plist Erzeuge XML-plist in eine Datei und ein Testreport " "an die Standardausgabe" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "-P Dateiname.ppd Lade die Druckerattribute von der PPD Datei" msgid "-P number[-number] Match port to number or range" msgstr "-P Nummer[-Nummer] Vergleiche mit Portnummer oder Portbereich" msgid "-P page-list Specify a list of pages to print" msgstr "-P Seitenliste Angabe einer Liste zu druckender Seiten" msgid "-R Show the ranking of jobs" msgstr "-R Zeige die Rangfolge der Aufträge" msgid "-R name-default Remove the default value for the named option" msgstr "" "-R name-default Entferne voreingestellten Wert für die angegebene " "Option" msgid "-R root-directory Set alternate root" msgstr "-R Wurzelverzeichnis Gebe alternatives Wurzelverzeichnis an" msgid "-S Test with encryption using HTTPS" msgstr "-S Test mit HTTPS-Verschlüsselung" msgid "-T seconds Set the browse timeout in seconds" msgstr "" "-T Sekunden Lege die Zeitüberschreitung für Browsing in Sekunden " "fest" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" "-T Sekunden Lege die Zeitüberschreitung für Senden/Empfangen in " "Sekunden fest" msgid "-T title Specify the job title" msgstr "-T Titel Angabe eines Auftragstitels" msgid "-U username Specify the username to use for authentication" msgstr "" "-U Benutzername Angabe des Benutzernamens zur Authentifizierung" msgid "-U username Specify username to use for authentication" msgstr "" "-U Benutzername Angabe eines Benutzernamens zur Authentifizierung" msgid "-V version Set default IPP version" msgstr "-V version Setze die Voreinstellung der IPP-Version" msgid "-W completed Show completed jobs" msgstr "-W completed Zeige abgeschlossene Aufträge" msgid "-W not-completed Show pending jobs" msgstr "-W not-completed Zeige anstehende Aufträge" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Gibt Warnungen statt Fehler aus" msgid "-X Produce XML plist instead of plain text" msgstr "-X Generiere XML-plist anstelle von Text" msgid "-a Cancel all jobs" msgstr "-a Alle Aufträge abbrechen" msgid "-a Show jobs on all destinations" msgstr "-a Zeige Aufträge für alle Ziele" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" "-a [Ziel(e)] Zeige den Akzeptanzstatus der angegebenen Ziele" msgid "-a filename.conf Load printer attributes from conf file" msgstr "-a Dateiname.conf Lade Druckerattribute von der conf Datei" msgid "-c Make a copy of the print file(s)" msgstr "-c Erzeuge eine Kopie der Druckdatei(en)" msgid "-c Produce CSV output" msgstr "-c Erzeuge CSV-Ausgabe" msgid "-c [class(es)] Show classes and their member printers" msgstr "-c [class(es)] Zeige Klassen und deren Drucker-Mitglieder" msgid "-c class Add the named destination to a class" msgstr "-c Klasse Füge das genannte Ziel zu einer Klasse hinzu" msgid "-c command Set print command" msgstr "-c Befehl Bestimme Druckerbefehl" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "-c cupsd.conf Bestimme zu benutzende cupsd.conf-Datei." msgid "-d Show the default destination" msgstr "-d Zeige das voreingestellte Ziel" msgid "-d destination Set default destination" msgstr "-d Lege voreingestelltes Ziel fest" msgid "-d destination Set the named destination as the server default" msgstr "" "-d Ziel Bestimme das benannte Ziel als Voreinstellung für " "den Server" msgid "-d destination Specify the destination" msgstr "-d Ziel Bestimme das Ziel" msgid "-d name=value Set named variable to value" msgstr "-d Name=Wert Gebe der benannten Variablen einen Wert" msgid "-d regex Match domain to regular expression" msgstr "" "-d Regex Vergleiche die Domäne mit dem Regulären Ausdruck" msgid "-d spool-directory Set spool directory" msgstr "-d Spoolverzeichnis Lege das Spoolverzeichnis fest" msgid "-e Show available destinations on the network" msgstr "-e Zeige im Netz verfügbare Ziele" msgid "-f Run in the foreground." msgstr "-f Starte im Vordergrund." msgid "-f filename Set default request filename" msgstr "" "-f Dateiname Lege den voreingestellten Dateinamen der Anfrage fest" msgid "-f type/subtype[,...] Set supported file types" msgstr "-f Typ/Untertyp[,...] Legt unterstützte Dateitypen fest" msgid "-h Show this usage message." msgstr "-h Zeige diesen Hinweis." msgid "-h Validate HTTP response headers" msgstr "-h Validiere HTTP-Antwort-Header" msgid "-h regex Match hostname to regular expression" msgstr "-h Regex Prüft den Hostnamen gegen regulären Ausdruck" msgid "-h server[:port] Connect to the named server and port" msgstr "-h Server[:Port] Verbinde mit genanntem Server und Port" msgid "-i iconfile.png Set icon file" msgstr "-i iconfile.png Lege Icon-Datei fest" msgid "-i id Specify an existing job ID to modify" msgstr "-i id Gib eine zu modifizierende Auftrags-ID an" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "-i ppd-Datei Gib eine PPD-Datei für den Drucker an" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" "-i Sekunden Wiederhole die letzte Datei mit dem angegebenen " "Intervall" msgid "-k Keep job spool files" msgstr "-k Spooldateien beibehalten" msgid "-l List attributes" msgstr "-l Liste attribute" msgid "-l Produce plain text output" msgstr "-l Generiere Reintext-Ausgabe" msgid "-l Run cupsd on demand." msgstr "-l Starte cupsd bei Bedarf." msgid "-l Show supported options and values" msgstr "-l Zeige unterstützte Optionen und Werte" msgid "-l Show verbose (long) output" msgstr "-l Zeige ausführliche (lange) Ausgabe" msgid "-l location Set location of printer" msgstr "-l Ort Bestimme den Ort des Druckers" msgid "" "-m Send an email notification when the job completes" msgstr "-m Sende nach Auftragsabschluss eine eMail" msgid "-m Show models" msgstr "-m Zeige Modelle" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" "-m everywhere Gib an dass der Drucker mit IPP Everywhere " "kompatibel ist" msgid "-m model Set model name (default=Printer)" msgstr "-m Modell Lege Modellname fest (Voreinstellung=Printer)" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" "-m Modell Gib eine Standard-Model/PPD-Datei für den Drucker an" msgid "-n count Repeat the last file the given number of times" msgstr "" "-n Anzahl Wiederhole die letzte Datei so oft wie angegeben" msgid "-n hostname Set hostname for printer" msgstr "-n Hostname Lege den Hostnamen des Druckers fest" msgid "-n num-copies Specify the number of copies to print" msgstr "-n Kopien Gib die Anzahl der zu druckenden Kopien an" msgid "-n regex Match service name to regular expression" msgstr "-n Regex Prüfe Dienstname gegen regulären Ausdruck" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "-o [Ziel(e)] Zeige Aufträge" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" "-o job-k-limit=N Gebe die kilobyte-Grenze für benutzerbezogene " "Kontingente an" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" "-o job-page-limit=N Gebe die Seitenzahl-Grenze für benutzerbezogene " "Kontingente an" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" "-o job-quota-period=N Gebe den Kontingentszeitraum pro Benutzer in " "Sekunden an" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "-o job-sheets=standard Drucke eine Bannerseite mit dem Auftrag" msgid "-o media=size Specify the media size to use" msgstr "-o media=size Gebe die zu verwendende Mediengröße an" msgid "-o name-default=value Specify the default value for the named option" msgstr "" "-o name-default=value Gebe den Vorgabewert für die genannte Option an" msgid "-o name[=value] Set default option and value" msgstr "-o name[=value] Standardoption und -wert festlegen" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" "-o number-up=N Gebe an, dass die Eingabeseiten N-fach " "zusammengefasst werden sollen (1, 2, 4, 6, 9, und 16 sind unterstützt)" msgid "-o option[=value] Specify a printer-specific option" msgstr "-o Option[=Wert] Gib eine Druckerspezifische Option an" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" "-o orientation-requested=N\n" " Gebe die Ausrichtung hochkant (3) oder quer (4) an" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" "-o print-quality=N Gebe die Druckqualität an - Entwurf (3), Normal (4), " "oder Bestmöglich (5)" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "-o sides=one-sided 1-seitiger Druck" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" "-o sides=two-sided-long-edge\n" " 2-seitiger Druck in Hochformat" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" "-o sides=two-sided-short-edge\n" " 2-seitiger Druck in Querformat" msgid "-p Print URI if true" msgstr "-p Gibt die URI aus wenn wahr" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "-p [Drucker] Zeige den Bearbeitungsstatus der Drucker-Ziele" msgid "-p destination Specify a destination" msgstr "-p Ziel Bestimme ein Ziel" msgid "-p destination Specify/add the named destination" msgstr "-p Ziel Gebe das benannte Ziel an/füge hinzu" msgid "-p port Set port number for printer" msgstr "-p Port Bestimme die Portnummer für den Drucker" msgid "-q Quietly report match via exit code" msgstr "-q Übereinstimmung still über Exitcode berichten" msgid "-q Run silently" msgstr "-q Laufe leise" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" "-r Die Datei(en) werden nach der Übermittlung gelöscht" msgid "-r Show whether the CUPS server is running" msgstr "-r Gibt aus ob der CUPS-Server läuft" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "-r Grund Gib eine Begründung an den andere sehen können" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "-s Sei still" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "-s Zeige eine Statuszusammenfassung" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" "-s cups-files.conf Gebe die zu verwendende cups-files.conf-Datei an." msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "-t Generiere einen Testreport" msgid "-t Show all status information" msgstr "-t Zeige alle Statusinformationen" msgid "-t Test the configuration file." msgstr "-t Teste die Konfigurationsdatei." msgid "-t key True if the TXT record contains the key" msgstr "" "-t Schlüssel Wahr wenn der TXT-Eintrag den Schlüssel enthält" msgid "-t title Specify the job title" msgstr "-t Titel Lege den Auftragstitel fest" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" "-u [Benutzer] Zeige anstehende Aufträge des aktuellen oder " "angegebenen Benutzers an" msgid "-u allow:all Allow all users to print" msgstr "-u allow:all Erlaube allen Benutzern das Drucken" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" "-u allow:list Der Gruppe von Benutzern oder Gruppe (@name) das " "Drucken erlauben" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" "-u deny:list Der Gruppe von Benutzern oder Gruppe (@name) das " "Drucken verweigern" msgid "-u owner Specify the owner to use for jobs" msgstr "-u Besitzer Gebe den Besitzer für Aufträge an" msgid "-u regex Match URI to regular expression" msgstr "-u Regex Prüfe URI gegen regulären Ausdruck" msgid "-v Be verbose" msgstr "-v ausführliche Ausgabe" msgid "-v Show devices" msgstr "-v Zeige Geräte" msgid "-v [printer(s)] Show the devices for each destination" msgstr "-v [Drucker] Zeige die Geräte für jedes Druckerziel" msgid "-v device-uri Specify the device URI for the printer" msgstr "-v Geräte-uri Gib die Geräte-URI für den Drucker an" msgid "-vv Be very verbose" msgstr "-vv sehr ausführliche Ausgabe" msgid "-x Purge jobs rather than just canceling" msgstr "-x Entferne Aufträge anstatt sie nur abzubrechen" msgid "-x destination Remove default options for destination" msgstr "" "-x Ziel Entferne die voreingestellten Optionen für das " "genannte Ziel" msgid "-x destination Remove the named destination" msgstr "-x Ziel Entferne das genannte Ziel" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" "/etc/cups/lpoptions Datei enthält ein nicht existierendes voreingestelltes " "Ziel." msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 inch/s" # Die Verwendung des x ist nur ersatzweise erlaubt, typografisch korrekt und in UTF-8 auch möglich ist × # Keine Leerzeichen zwischen Zahl und ×! # Die Verwendung von " für die Einheit Inch ist nicht zulässig (ISO 80000). # Die Bezeichnung "Zoll" ist nicht korrekt. msgid "1.25x0.25\"" msgstr "1,25×0,25 inch" msgid "1.25x2.25\"" msgstr "1,25×2,25 inch" msgid "1.5 inch/sec." msgstr "1,5 inch/s" msgid "1.50x0.25\"" msgstr "1,50×0,25 inch" msgid "1.50x0.50\"" msgstr "1,50×0,50 inch" msgid "1.50x1.00\"" msgstr "1,50×1,00 inch" msgid "1.50x2.00\"" msgstr "1,50×2,00 inch" msgid "10" msgstr "10" # Die SI Einheit Sekunde wird korrekt nur mit s abgekürzt (ISO 31), (sek ist nicht zulässig) msgid "10 inches/sec." msgstr "10 inch/s" msgid "10 x 11" msgstr "10×11 inch" msgid "10 x 13" msgstr "10×13 inch" msgid "10 x 14" msgstr "10×14 inch" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/s" msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 inch/s" msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 inch/s" msgid "12 x 11" msgstr "12×11 inch" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/s" msgid "120x60dpi" msgstr "120×60 dpi" msgid "120x72dpi" msgstr "120×72 dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136 dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/s" msgid "15 x 11" msgstr "15x11 inch" msgid "150 mm/sec." msgstr "150 mm/s" msgid "150dpi" msgstr "150 dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180 dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 inch/s" msgid "2-Sided Printing" msgstr "Doppelseitiger Druck" msgid "2.00x0.37\"" msgstr "2,00×0,37 inch" msgid "2.00x0.50\"" msgstr "2,00×0,50 inch" msgid "2.00x1.00\"" msgstr "2,00×1,00 inch" msgid "2.00x1.25\"" msgstr "2,00×1,25 inch" msgid "2.00x2.00\"" msgstr "2,00×2,00 inch" msgid "2.00x3.00\"" msgstr "2,00×3,00 inch" msgid "2.00x4.00\"" msgstr "2,00×4,00 inch" msgid "2.00x5.50\"" msgstr "2,00×5,50 inch" msgid "2.25x0.50\"" msgstr "2,25×0,50 inch" msgid "2.25x1.25\"" msgstr "2,25×1,25 inch" msgid "2.25x4.00\"" msgstr "2,25×4,00 inch" msgid "2.25x5.50\"" msgstr "2,25×5,50 inch" msgid "2.38x5.50\"" msgstr "2,38×5,50 inch" msgid "2.5 inches/sec." msgstr "2,5 inch/s" msgid "2.50x1.00\"" msgstr "2,50×1,00 inch" msgid "2.50x2.00\"" msgstr "2,50×2,00 inch" msgid "2.75x1.25\"" msgstr "2,75×1,25 inch" msgid "2.9 x 1\"" msgstr "2.9×1 inch" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/s" msgid "200 mm/sec." msgstr "200 mm/s" msgid "203dpi" msgstr "203 dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24-Pin Serie" msgid "240x72dpi" msgstr "240×72 dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/s" msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 inch/s" msgid "3 x 5" msgstr "3×5" msgid "3.00x1.00\"" msgstr "3,00×1,00 inch" msgid "3.00x1.25\"" msgstr "3,00×1,25 inch" msgid "3.00x2.00\"" msgstr "3,00×2,00 inch" msgid "3.00x3.00\"" msgstr "3,00×3,00 inch" msgid "3.00x5.00\"" msgstr "3,00×5,00 inch" msgid "3.25x2.00\"" msgstr "3,25×2,00 inch" msgid "3.25x5.00\"" msgstr "3,25×5,00 inch" msgid "3.25x5.50\"" msgstr "3,25×5,50 inch" msgid "3.25x5.83\"" msgstr "3,25×5,83 inch" msgid "3.25x7.83\"" msgstr "3,25×7,83 inch" msgid "3.5 x 5" msgstr "3,5×5 inch" msgid "3.5\" Disk" msgstr "3,5 inch Disk" msgid "3.50x1.00\"" msgstr "3,50×1,00 inch" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/s" msgid "300 mm/sec." msgstr "300 mm/s" msgid "300dpi" msgstr "300 dpi" msgid "30859 Paint Can Label" msgstr "30859 Aufkleber für Farbfässer" msgid "35" msgstr "35" msgid "360dpi" msgstr "360 dpi" msgid "360x180dpi" msgstr "360×180 dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 inch/s" msgid "4.00x1.00\"" msgstr "4,00×1,00 inch" msgid "4.00x13.00\"" msgstr "4,00×13,00 inch" msgid "4.00x2.00\"" msgstr "4,00×2,00 inch" msgid "4.00x2.50\"" msgstr "4,00×2,50 inch" msgid "4.00x3.00\"" msgstr "4,00×3,00 inch" msgid "4.00x4.00\"" msgstr "4,00×4,00 inch" msgid "4.00x5.00\"" msgstr "4,00×5,00 inch" msgid "4.00x6.00\"" msgstr "4,00×6,00 inch" msgid "4.00x6.50\"" msgstr "4,00×6,50 inch" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/s" msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 inch/s" msgid "5 x 7" msgstr "5×7" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 inch/s" msgid "6.00x1.00\"" msgstr "6,00×1,00 inch" msgid "6.00x2.00\"" msgstr "6,00×2,00 inch" msgid "6.00x3.00\"" msgstr "6,00×3,00 inch" msgid "6.00x4.00\"" msgstr "6,00×4,00 inch" msgid "6.00x5.00\"" msgstr "6,00×5,00 inch" msgid "6.00x6.00\"" msgstr "6,00×6,00 inch" msgid "6.00x6.50\"" msgstr "6,00×6,50 inch" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/s" msgid "600dpi" msgstr "600 dpi" msgid "60dpi" msgstr "60 dpi" msgid "60x72dpi" msgstr "60×72 dpi" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 inch/s" msgid "7 x 9" msgstr "7×9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 inch/s" msgid "8 x 10" msgstr "8×10 inch" msgid "8.00x1.00\"" msgstr "8,00×1,00 inch" msgid "8.00x2.00\"" msgstr "8,00×2,00 inch" msgid "8.00x3.00\"" msgstr "8,00×3,00 inch" msgid "8.00x4.00\"" msgstr "8,00×4,00 inch" msgid "8.00x5.00\"" msgstr "8,00×5,00 inch" msgid "8.00x6.00\"" msgstr "8,00×6,00 inch" msgid "8.00x6.50\"" msgstr "8,00×6,50 inch" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/s" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 inch/s" msgid "9 x 11" msgstr "9×12" msgid "9 x 12" msgstr "9×12" msgid "9-Pin Series" msgstr "9-Pin Serie" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Ungültiger Hilfebefehl unbekannt." #, c-format msgid "A class named \"%s\" already exists." msgstr "Eine Klasse mit dem Namen \"%s\" existiert bereits." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Ein Drucker mit dem Namen \"%s\" existiert bereits." msgid "A0" msgstr "DIN A0" msgid "A0 Long Edge" msgstr "A0 lange Kante" msgid "A1" msgstr "DIN A1" msgid "A1 Long Edge" msgstr "A1 lange Kante" msgid "A10" msgstr "DIN A10" msgid "A2" msgstr "DIN A2" msgid "A2 Long Edge" msgstr "A2 lange Kante" msgid "A3" msgstr "DIN A3" msgid "A3 Long Edge" msgstr "A3 lange Kante" msgid "A3 Oversize" msgstr "A3 Übergröße" msgid "A3 Oversize Long Edge" msgstr "A3 Übergröße lange Kante" msgid "A4" msgstr "DIN A4" msgid "A4 Long Edge" msgstr "A4 lange Kante" msgid "A4 Oversize" msgstr "A4 Übergröße" msgid "A4 Small" msgstr "A4 klein" msgid "A5" msgstr "DIN A5" msgid "A5 Long Edge" msgstr "A5 lange Kante" msgid "A5 Oversize" msgstr "A5 Übergröße" msgid "A6" msgstr "DIN A6" msgid "A6 Long Edge" msgstr "A6 lange Kante" msgid "A7" msgstr "DIN A7" msgid "A8" msgstr "DIN A8" msgid "A9" msgstr "DIN A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C lange Kante" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D lange Kante" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E lange Kante" msgid "Accept Jobs" msgstr "Druckaufträge akzeptieren" msgid "Accepted" msgstr "Akzeptiert" msgid "Add Class" msgstr "Klasse hinzufügen" msgid "Add Printer" msgstr "Drucker hinzufügen" msgid "Address" msgstr "Adresse" msgid "Administration" msgstr "Verwaltung" msgid "Always" msgstr "Immer" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Applikator" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "Versuch den %s Druckerstatus auf einen ungültigen Wert %d zu setzen." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "Attribut \"%s\" ist in der falschen Gruppe." #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "Attribut \"%s\" ist der falsche Werttyp." #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Attributgruppen sind nicht in der Reihenfolge (%x < %x)." msgid "B0" msgstr "DIN B0" msgid "B1" msgstr "DIN B1" msgid "B10" msgstr "DIN B10" msgid "B2" msgstr "DIN B2" msgid "B3" msgstr "DIN B3" msgid "B4" msgstr "DIN B4" msgid "B5" msgstr "DIN B5" msgid "B5 Oversize" msgstr "B5 Übergröße" msgid "B6" msgstr "DIN B6" msgid "B7" msgstr "DIN B7" msgid "B8" msgstr "DIN B8" msgid "B9" msgstr "DIN B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "Falscher \"printer-id\"-Wert %d." #, c-format msgid "Bad '%s' value." msgstr "Ungültiger Wert '%s'." #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "Fehlerhafter 'document-format'-Wert \"%s\"." msgid "Bad CloseUI/JCLCloseUI" msgstr "Ungültiger Wert CloseUI/JCLCloseUI" msgid "Bad NULL dests pointer" msgstr "Ungültiger NULL-Dests-Zeiger" msgid "Bad OpenGroup" msgstr "Ungültige OpenGroup" msgid "Bad OpenUI/JCLOpenUI" msgstr "Ungültig OpenUI/JCLOpenUI" msgid "Bad OrderDependency" msgstr "Ungültige Abhängigkeit" msgid "Bad PPD cache file." msgstr "Ungültige PPD-Cache-Datei." msgid "Bad PPD file." msgstr "Ungültige PPD-Datei" msgid "Bad Request" msgstr "Ungültige Anfrage" msgid "Bad SNMP version number" msgstr "Ungültige SNMP-Versionsnummer" msgid "Bad UIConstraints" msgstr "Ungültige UIConstraints" msgid "Bad URI." msgstr "Ungültige URI." msgid "Bad arguments to function" msgstr "Ungültige Argumente an Funktion" #, c-format msgid "Bad copies value %d." msgstr "Ungültiger Wert der Kopien %d." msgid "Bad custom parameter" msgstr "Ungültiger angepasster Parameter" #, c-format msgid "Bad device-uri \"%s\"." msgstr "Ungültige Geräte-URI\"%s\"." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "Ungültiges Geräte-URI-Schema \"%s\"." #, c-format msgid "Bad document-format \"%s\"." msgstr "Ungültiges Dokumentenformat \"%s\"." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "Ungültiges voreingestelltes Dokumentenformat \"%s\"." msgid "Bad filename buffer" msgstr "Ungültiger Dateinamenpuffer" msgid "Bad hostname/address in URI" msgstr "Ungültiger Hostname/Adresse in URI" #, c-format msgid "Bad job-name value: %s" msgstr "Ungültiger Auftragsnamenwert: %s" msgid "Bad job-name value: Wrong type or count." msgstr "Ungültiger Auftragsnamenwert: Falscher Typ oder Anzahl." msgid "Bad job-priority value." msgstr "Ungültiger Auftragsprioritätwert." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "Ungültiger Wert für job-sheets \"%s\"." msgid "Bad job-sheets value type." msgstr "Ungültiger Werttyp für job-sheets." msgid "Bad job-state value." msgstr "Ungültiger Auftragsstatuswert." #, c-format msgid "Bad job-uri \"%s\"." msgstr "Ungültige Auftrags-URI\"%s\"." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "Ungültige notify-pull-method \"%s\"." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "Ungültige notify-recipient-uri \"%s\"." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "Ungültige notify-user-data \"%s\"." #, c-format msgid "Bad number-up value %d." msgstr "Ungültiger number-up-Wert %d." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Ungültige Seitenbereichswerte %d-%d." msgid "Bad port number in URI" msgstr "Ungültige Port-Nummer in URI" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "Ungültiger port-monitor \"%s\"." #, c-format msgid "Bad printer-state value %d." msgstr "Ungültiger Druckerstatuswert %d." msgid "Bad printer-uri." msgstr "Ungültige Drucker-URI" #, c-format msgid "Bad request ID %d." msgstr "Ungültige Anfrage-ID %d." #, c-format msgid "Bad request version number %d.%d." msgstr "Ungültige Versionsnummernanfrage %d.%d." msgid "Bad resource in URI" msgstr "Ungültige Resource in URI" msgid "Bad scheme in URI" msgstr "Ungültiges Schema in URI" msgid "Bad username in URI" msgstr "Ungültiger Benutzername in URI" msgid "Bad value string" msgstr "Ungültiger Zeichenkette" msgid "Bad/empty URI" msgstr "Ungültige/leere URI" msgid "Banners" msgstr "Banner" msgid "Bond Paper" msgstr "Papier bündeln" msgid "Booklet" msgstr "Broschüre" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "Bool erwartet für waitof-Option \"%s\"." msgid "Buffer overflow detected, aborting." msgstr "Pufferüberlauf festgestellt, Abbruch." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "CPCL Etikettendrucker" msgid "Cancel Jobs" msgstr "Druckaufträge abbrechen" msgid "Canceling print job." msgstr "Auftrag wird abgebrochen." msgid "Cannot change printer-is-shared for remote queues." msgstr "Kann für entfernte Warteschlangen die Mitbenutzung nicht ändern." msgid "Cannot share a remote Kerberized printer." msgstr "Freigabe eines entfernten kerberisierten Druckers nicht möglich" msgid "Cassette" msgstr "Kassette" msgid "Change Settings" msgstr "Einstellungen ändern" #, c-format msgid "Character set \"%s\" not supported." msgstr "Zeichensatz \"%s\" nicht unterstützt." msgid "Classes" msgstr "Klassen" msgid "Clean Print Heads" msgstr "Saubere Druckköpfe" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job unterstützt keine job-uri Attribute." msgid "Color" msgstr "Farbe" msgid "Color Mode" msgstr "Farbmodus" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Befehle können abgekürzt werden. Befehle sind:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Community-Name hat unbestimmte Länge" msgid "Connected to printer." msgstr "Verbunden zum Drucker." msgid "Connecting to printer." msgstr "Verbinde zum Drucker." msgid "Continue" msgstr "Weiter" msgid "Continuous" msgstr "Kontinuierlich" msgid "Control file sent successfully." msgstr "Steuerdatei erfolgreich gesendet." msgid "Copying print data." msgstr "Kopiere Druckdaten." msgid "Created" msgstr "Erstellt" msgid "Credentials do not validate against site CA certificate." msgstr "Anmeldedaten validieren nicht gegen das CA-Zertifikat der Seite" msgid "Credentials have expired." msgstr "Berechtigung ist abgelaufen" msgid "Custom" msgstr "Eigene" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Abschneiden" msgid "Cutter" msgstr "Abschneider" msgid "DYMO" msgstr "DYMO" msgid "Dark" msgstr "Dunkel" msgid "Darkness" msgstr "Dunkelheit" msgid "Data file sent successfully." msgstr "Datendatei erfolgreich gesendet." msgid "Deep Color" msgstr "kräftige Farben" msgid "Deep Gray" msgstr "Dunkelgrau" msgid "Delete Class" msgstr "Klasse löschen" msgid "Delete Printer" msgstr "Drucker löschen" msgid "DeskJet Series" msgstr "DeskJet Serie" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "Ziel „%s“ akzeptiert keine Druckaufträge." msgid "Device CMYK" msgstr "Geräte-CMYK" msgid "Device Gray" msgstr "Geräte-Grau" msgid "Device RGB" msgstr "Geräte-RGB" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Gerät: URI = %s\n" " Klasse = %s\n" " Info = %s\n" " Hersteller-und-Modell = %s\n" " Geräte-ID = %s\n" " Standort = %s" msgid "Direct Thermal Media" msgstr "Direct Thermotransfermedia" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "Verzeichnis \"%s\" enthält einen relativen Pfad." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Verzeichnis \"%s\" hat unsichere Rechte (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "Verzeichnis \"%s\" ist eine Datei." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "Verzeichnis \"%s\" nicht vorhanden: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Verzeichnisrechte \"%s\" OK (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Deaktiviert" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "Dokument #%d existiert in Auftrag #%d nicht." msgid "Draft" msgstr "Entwurf" msgid "Duplexer" msgstr "Duplexer" msgid "EPL1 Label Printer" msgstr "EPL1 Etikettendrucker" msgid "EPL2 Label Printer" msgstr "EPL2 Etikettendrucker" msgid "Edit Configuration File" msgstr "Konfigurationsdatei bearbeiten" msgid "Encryption is not supported." msgstr "Verschlüsselung ist nicht unterstützt." #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Endbanner" msgid "English" msgstr "Deutsch" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Geben Sie Ihren Benutzernamen und das Passwort oder den root-Benutzernamen " "und -Passwort ein, um auf diese Seite zuzugreifen. Falls Sie die Kerberos-" "Authentifizierung verwenden, stellen Sie sicher, dass Sie ein gültiges " "Kerberos-Ticket haben." msgid "Envelope #10" msgstr "US Umschlag 10" msgid "Envelope #11" msgstr "US Umschlag 11" msgid "Envelope #12" msgstr "US Umschlag 12" msgid "Envelope #14" msgstr "US Umschlag 14" msgid "Envelope #9" msgstr "US Umschlag 9" msgid "Envelope B4" msgstr "Umschlag B4" msgid "Envelope B5" msgstr "Umschlag B5" msgid "Envelope B6" msgstr "Umschlag B6" msgid "Envelope C0" msgstr "Umschlag C0" msgid "Envelope C1" msgstr "Umschlag C1" msgid "Envelope C2" msgstr "Umschlag C2" msgid "Envelope C3" msgstr "Umschlag C3" msgid "Envelope C4" msgstr "Umschlag C4" msgid "Envelope C5" msgstr "Umschlag C5" msgid "Envelope C6" msgstr "Umschlag C6" msgid "Envelope C65" msgstr "Umschlag C65" msgid "Envelope C7" msgstr "Umschlag C7" msgid "Envelope Choukei 3" msgstr "Umschlag Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Umschlag Choukei 3 lange Seite" msgid "Envelope Choukei 4" msgstr "Umschlag Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Umschlag Choukei 4 lange Seite" msgid "Envelope DL" msgstr "Umschlag DL" msgid "Envelope Feed" msgstr "Umschlagzuführung" msgid "Envelope Invite" msgstr "Umschlag Invite" msgid "Envelope Italian" msgstr "Umschlag italienisch" msgid "Envelope Kaku2" msgstr "Umschlag Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Umschlag Kaku2 lange Seite" msgid "Envelope Kaku3" msgstr "Umschlag Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Umschlag Kaku3 lange Seite" msgid "Envelope Monarch" msgstr "Umschlag Monarch" msgid "Envelope PRC1" msgstr "Umschlag PRC1" msgid "Envelope PRC1 Long Edge" msgstr "Umschlag PRC1 lange Seite" msgid "Envelope PRC10" msgstr "Umschlag PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Umschlag PRC10 lange Seite" msgid "Envelope PRC2" msgstr "Umschlag PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Umschlag PRC2 lange Seite" msgid "Envelope PRC3" msgstr "Umschlag PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Umschlag PRC3 lange Seite" msgid "Envelope PRC4" msgstr "Umschlag PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Umschlag PRC4 lange Seite" msgid "Envelope PRC5 Long Edge" msgstr "Umschlag PRC5 lange Seite" msgid "Envelope PRC5PRC5" msgstr "Umschlag PRC" msgid "Envelope PRC6" msgstr "Umschlag PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Umschlag PRC6 lange Seite" msgid "Envelope PRC7" msgstr "Umschlag PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Umschlag PRC7 lange Seite" msgid "Envelope PRC8" msgstr "Umschlag PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Umschlag PRC8 lange Seite" msgid "Envelope PRC9" msgstr "Umschlag PRC" msgid "Envelope PRC9 Long Edge" msgstr "Umschlag PRC9 lange Seite" msgid "Envelope Personal" msgstr "Umschlag Personal" msgid "Envelope You4" msgstr "Umschlag You4" msgid "Envelope You4 Long Edge" msgstr "Umschlag You4 lange Seite" msgid "Environment Variables:" msgstr "Umgebungsvariablen:" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Fehlerbehandlung" msgid "Error reading raster data." msgstr "Fehler beim Lesen der Rasterdaten." msgid "Error sending raster data." msgstr "Fehler beim Senden von Rasterdaten." msgid "Error: need hostname after \"-h\" option." msgstr "Fehler: Hostname ist nach der \"-h\" Option erforderlich." msgid "European Fanfold" msgstr "Europäisches Endlospapier" msgid "European Fanfold Legal" msgstr "Europäisches Endlospapier Legal" msgid "Every 10 Labels" msgstr "Alle 10 Etiketten" msgid "Every 2 Labels" msgstr "Alle 2 Etiketten" msgid "Every 3 Labels" msgstr "Alle 3 Etiketten" msgid "Every 4 Labels" msgstr "Alle 4 Etiketten" msgid "Every 5 Labels" msgstr "Alle 5 Etiketten" msgid "Every 6 Labels" msgstr "Alle 6 Etiketten" msgid "Every 7 Labels" msgstr "Alle 7 Etiketten" msgid "Every 8 Labels" msgstr "Alle 8 Etiketten" msgid "Every 9 Labels" msgstr "Alle 9 Etiketten" msgid "Every Label" msgstr "Bei jedem Etikett" msgid "Executive" msgstr "184×267 (Imp)" msgid "Expectation Failed" msgstr "Erwartete Daten nicht erhalten" msgid "Expressions:" msgstr "Ausdrücke:" msgid "Fast Grayscale" msgstr "Grautöne schnell" #, c-format msgid "File \"%s\" contains a relative path." msgstr "Datei \"%s\" enthält einen relativen Pfad." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "Datei \"%s\" hat unsichere Rechte (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "Datei \"%s\" ist ein Verzeichnis." #, c-format msgid "File \"%s\" not available: %s" msgstr "Datei \"%s\" nicht verfügbar: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "Dateirechte \"%s\" OK (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "Dateiverzeichnis" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" "Datei-Geräte-URI sind gesperrt. Um sie zu entsperren siehe FileDevice " "Directive in \"%s/cups-files.conf\"." #, c-format msgid "Finished page %d." msgstr "Seite %d fertiggestellt." msgid "Finishing Preset" msgstr "Voreinstellungen Endverarbeitung" msgid "Fold" msgstr "Falten" msgid "Folio" msgstr "Folio" msgid "Forbidden" msgstr "Verboten" msgid "Found" msgstr "Gefunden" msgid "General" msgstr "Allgemein" msgid "Generic" msgstr "Allgemein" msgid "Get-Response-PDU uses indefinite length" msgstr "Get-Response-PDU hat unbestimmte Länge" msgid "Glossy Paper" msgstr "Glanzpapier" msgid "Got a printer-uri attribute but no job-id." msgstr "Drucker-URI Attribut empfangen aber keine Auftrags-ID." msgid "GrayScale" msgstr "Graustufen" msgid "Grayscale" msgstr "Graustufen" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Hängeordner" msgid "Hash buffer too small." msgstr "Hash Puffer zu klein." msgid "Help file not in index." msgstr "Hilfedatei nicht im Index." msgid "High" msgstr "Hoch" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "IPP 1setOf Attribut mit inkompatiblen Werte-Markierung." msgid "IPP attribute has no name." msgstr "IPP-Attribut hat keinen Namen." msgid "IPP attribute is not a member of the message." msgstr "IPP-Attribut ist kein Mitglied der Nachricht." msgid "IPP begCollection value not 0 bytes." msgstr "IPP begCollection Wert nicht 0 Byte." msgid "IPP boolean value not 1 byte." msgstr "IPP boolscher Wert nicht 1 Byte." msgid "IPP date value not 11 bytes." msgstr "IPP-Datenwert nicht 11 Byte." msgid "IPP endCollection value not 0 bytes." msgstr "IPP endCollection Wert nicht 0 Byte." msgid "IPP enum value not 4 bytes." msgstr "IPP enum Wert nicht 4 Byte." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "IPP-Erweiterung größer als 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "IPP Integer-Wert nicht 4 Bytes." msgid "IPP language length overflows value." msgstr "IPP Sprachlänge übersteigt Wert." msgid "IPP language length too large." msgstr "IPP-Sprachlänge zu groß." msgid "IPP member name is not empty." msgstr "IPP-Mitgliedsname ist nicht leer." msgid "IPP memberName value is empty." msgstr "IPP-Mitgliedsnamenwert ist leer." msgid "IPP memberName with no attribute." msgstr "IPP-Mitgliedsname ohne Attribut." msgid "IPP name larger than 32767 bytes." msgstr "IPP Name länger als 32767 Byte" msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "IPP nameWithLanguage Wert weniger als mindestens 4 Byte." msgid "IPP octetString length too large." msgstr "IPP Oktett-Zeichenkettenlänge zu groß." msgid "IPP rangeOfInteger value not 8 bytes." msgstr "IPP rangeOfInteger Wert nicht 8 Byte." msgid "IPP resolution value not 9 bytes." msgstr "IPP-Auflösungswert nicht 9 Bytes." msgid "IPP string length overflows value." msgstr "IPP Zeichenkettenlänge übersteigt Wert." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "IPP textWithLanguage Wert weniger als mindestens 4 Byte." msgid "IPP value larger than 32767 bytes." msgstr "IPP-Wert länger als 32767 Bytes." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "IPPFIND_SERVICE_DOMAIN Domänenname" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" "IPPFIND_SERVICE_HOSTNAME\n" " Vollqualifizierter Domänenname" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "IPPFIND_SERVICE_NAME Name der Dienstinstanz" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "IPPFIND_SERVICE_PORT Portnummer" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "IPPFIND_SERVICE_SCHEME URI Schema" msgid "IPPFIND_SERVICE_URI URI" msgstr "IPPFIND_SERVICE_URI URI" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "IPPFIND_TXT_* Wert des TXT Schlüssel-Eintrags" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Ungültiges Steuerzeichen" msgid "Illegal main keyword string" msgstr "Ungültige Haupt-Schlüsselwort-Zeichenkette" msgid "Illegal option keyword string" msgstr "Ungültige Option-Schlüsselwort-Zeichenkette" msgid "Illegal translation string" msgstr "Ungültiger Übersetzungsstring" msgid "Illegal whitespace character" msgstr "Ungültiges Leerzeichen" msgid "Installable Options" msgstr "Installationsoptionen" msgid "Installed" msgstr "Installiert" msgid "IntelliBar Label Printer" msgstr "IntelliBar Etikettendrucker" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Interner Serverfehler" msgid "Internal error" msgstr "Interner Fehler" msgid "Internet Postage 2-Part" msgstr "Internet Postage 2-teilig" msgid "Internet Postage 3-Part" msgstr "Internet Postage 3-teilig" msgid "Internet Printing Protocol" msgstr "Internet Printing Protocol" msgid "Invalid group tag." msgstr "Ungültiges Gruppen-Tag." msgid "Invalid media name arguments." msgstr "Ungültige Argumente des Mediennamens." msgid "Invalid media size." msgstr "Ungültige Mediengröße." msgid "Invalid named IPP attribute in collection." msgstr "Ungültiger IPP-Attributname in der Folge." msgid "Invalid ppd-name value." msgstr "Ungültgier Wert ppd-name" #, c-format msgid "Invalid printer command \"%s\"." msgstr "Ungültiger Druckbefehl \"%s\"." msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 lange Kante" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 lange Kante" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 lange Kante" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "Auftrag #%d kann nicht wieder gestartet werden - keine Dateien." #, c-format msgid "Job #%d does not exist." msgstr "Auftrag #%d existiert nicht." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Auftrag %d wurde bereits abgebrochen – Abbruch nicht möglich." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Auftrag %d wurde bereits abgebrochen – Abbruch nicht möglich." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Auftrag %d wurde bereits abgeschlossen – Abbruch nicht möglich." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "Auftrag #%d ist abgeschlossen und kann nicht mehr geändert werden." #, c-format msgid "Job #%d is not complete." msgstr "Auftrag #%d ist nicht abgeschlossen." #, c-format msgid "Job #%d is not held for authentication." msgstr "Auftrag #%d ist nicht zur Authentifizierung angehalten." #, c-format msgid "Job #%d is not held." msgstr "Auftrag #%d ist nicht angehalten." msgid "Job Completed" msgstr "Auftrag abgeschlossen" msgid "Job Created" msgstr "Auftrag erstellt" msgid "Job Options Changed" msgstr "Auftragsoptionen geändert" msgid "Job Stopped" msgstr "Auftrag gestoppt" msgid "Job is completed and cannot be changed." msgstr "Auftrag ist abgeschlossen und kann nicht geändert werden." msgid "Job operation failed" msgstr "Auftrag fehlgeschlagen" msgid "Job state cannot be changed." msgstr "Auftragsstatus kann nicht geändert werden." msgid "Job subscriptions cannot be renewed." msgstr "Auftragssubskriptionen können nicht erneuert werden." msgid "Jobs" msgstr "Aufträge" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR-Host oder -Drucker" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" "LPDEST-Umgebungsvariable benennt standardmäßig ein Ziel, das nicht existiert." msgid "Label Printer" msgstr "Etikettendrucker" msgid "Label Top" msgstr "Etikett oben" #, c-format msgid "Language \"%s\" not supported." msgstr "Sprache \"%s\" wird nicht unterstützt." msgid "Large Address" msgstr "Große Adresse" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Serie PCL 4/5" msgid "Letter Oversize" msgstr "Letter Übergröße" msgid "Letter Oversize Long Edge" msgstr "Letter Übergröße lange Kante" msgid "Light" msgstr "Leicht" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Zeile ist länger als die zulässige Länge von 255 Zeichen" msgid "List Available Printers" msgstr "Verfügbare Drucker anzeigen" #, c-format msgid "Listening on port %d." msgstr "Lausche auf Port %d." msgid "Local printer created." msgstr "Lokaler Drucker erzeugt." msgid "Long-Edge (Portrait)" msgstr "Lange Kante (Hochformat)" msgid "Looking for printer." msgstr "Suche nach Drucker." msgid "Main Roll" msgstr "Hauptrolle" msgid "Manual Feed" msgstr "Manuelle Papierzufuhr" msgid "Media Size" msgstr "Mediengröße" msgid "Media Source" msgstr "Medienquelle" msgid "Media Tracking" msgstr "Medienführung" msgid "Media Type" msgstr "Medienart" msgid "Medium" msgstr "Medium" msgid "Memory allocation error" msgstr "Fehler bei der Speicherzuteilung" msgid "Missing CloseGroup" msgstr "Fehlendes CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "Fehlendes CloseUI/JCLCloseUI" msgid "Missing PPD-Adobe-4.x header" msgstr "PPD-Adobe-4.x Header fehlt" msgid "Missing asterisk in column 1" msgstr "Sternchen in Spalte 1 fehlt" msgid "Missing document-number attribute." msgstr "Fehlendes Attribut zur Dokumentennummer." msgid "Missing form variable" msgstr "Fehlende form-Variable" msgid "Missing last-document attribute in request." msgstr "Fehlendes Letzte-Seite-Attribut in der Anfrage." msgid "Missing media or media-col." msgstr "Fehlende Medien oder Medien-col." msgid "Missing media-size in media-col." msgstr "Fehlende Mediengröße oder Medien-col." msgid "Missing notify-subscription-ids attribute." msgstr "Fehlendes notify-subscription-ids Attribut." msgid "Missing option keyword" msgstr "Fehlende Option Schlüsselwort" msgid "Missing requesting-user-name attribute." msgstr "Fehlendes requesting-user-name Attribut." #, c-format msgid "Missing required attribute \"%s\"." msgstr "Erforderliches Attribut \"%s\" fehlt." msgid "Missing required attributes." msgstr "Erforderliche Attribute fehlen." msgid "Missing resource in URI" msgstr "Fehlende Ressource in URI" msgid "Missing scheme in URI" msgstr "Fehlendes Schema in URI" msgid "Missing value string" msgstr "Wertezeichenkette fehlt" msgid "Missing x-dimension in media-size." msgstr "Fehlende x-Dimension in Mediengröße" msgid "Missing y-dimension in media-size." msgstr "Fehlende y-Dimension in Mediengröße" #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Modell: Name = %s\n" " natürliche_Sprache = %s\n" " Hersteller-und-Modell = %s\n" " Geräte-ID = %s" msgid "Modifiers:" msgstr "Modifikatoren:" msgid "Modify Class" msgstr "Klasse verändern" msgid "Modify Printer" msgstr "Drucker verändern" msgid "Move All Jobs" msgstr "Alle Aufträge verschieben" msgid "Move Job" msgstr "Auftrag verschieben" msgid "Moved Permanently" msgstr "Dauerhaft verschoben" msgid "NULL PPD file pointer" msgstr "NULL PPD-Dateizeiger" msgid "Name OID uses indefinite length" msgstr "Name-OID hat unbestimmte Länge" msgid "Nested classes are not allowed." msgstr "Geschachtelte Klassen sind nicht erlaubt." msgid "Never" msgstr "Nie" msgid "New credentials are not valid for name." msgstr "Neue Anmeldedaten sind für den Namen ungültig." msgid "New credentials are older than stored credentials." msgstr "Neue Anmeldedaten sind älter als die gespeicherten Anmeldedaten" msgid "No" msgstr "Nein" msgid "No Content" msgstr "Kein Inhalt" msgid "No IPP attributes." msgstr "Keine IPP-Attribute." msgid "No PPD name" msgstr "Kein PPD-Name" msgid "No VarBind SEQUENCE" msgstr "Keine VarBind SEQUENCE" msgid "No active connection" msgstr "Keine aktive Verbindung" msgid "No active connection." msgstr "Keine aktive Verbindung." #, c-format msgid "No active jobs on %s." msgstr "Keine aktiven Aufträge auf %s." msgid "No attributes in request." msgstr "Keine Attribute in der Anfrage." msgid "No authentication information provided." msgstr "Keine Authentifizierungsinformation bereitgestellt." msgid "No common name specified." msgstr "Keinen gebräuchlichen Namen angegeben." msgid "No community name" msgstr "Kein Community-Name" msgid "No default destination." msgstr "Kein voreingestelltes Ziel." msgid "No default printer." msgstr "Kein voreingestellter Drucker." msgid "No destinations added." msgstr "Keine Druckziele hinzugefügt." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "Keine Geräte-URI in argv[0] oder der Umgebungsvariablen DEVICE_URI gefunden." msgid "No error-index" msgstr "Kein Fehlerindex" msgid "No error-status" msgstr "Kein Fehlerstatus" msgid "No file in print request." msgstr "Keine Druckdatei in der Anfrage." msgid "No modification time" msgstr "Keine Modifikationszeit" msgid "No name OID" msgstr "Kein Name-OID" msgid "No pages were found." msgstr "Keine Seiten gefunden." msgid "No printer name" msgstr "Kein Druckername" msgid "No printer-uri found" msgstr "Keine Drucker-uri gefunden" msgid "No printer-uri found for class" msgstr "Keine Drucker-URI gefunden für die Klasse" msgid "No printer-uri in request." msgstr "Keine Drucker-URI in der Anfrage." msgid "No request URI." msgstr "Keine Anfrage-URI." msgid "No request protocol version." msgstr "Keine Anfrageprotokollversion." msgid "No request sent." msgstr "Keine Anfrage gesendet." msgid "No request-id" msgstr "Keine Anfrage-ID" msgid "No stored credentials, not valid for name." msgstr "Keine gespeicherten Anmeldedaten, ungültig für Name." msgid "No subscription attributes in request." msgstr "Keine Subskriptions-Attribute in der Anfrage." msgid "No subscriptions found." msgstr "Keine Subskriptionen gefunden." msgid "No variable-bindings SEQUENCE" msgstr "Keine „variable-bindings SEQUENCE“" msgid "No version number" msgstr "Keine Versionsnummer" msgid "Non-continuous (Mark sensing)" msgstr "Nicht fortlaufend (Mark-Sensing)" msgid "Non-continuous (Web sensing)" msgstr "Nicht fortlaufend (Web-Sensing)" msgid "None" msgstr "Keine" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "Nicht gefunden" msgid "Not Implemented" msgstr "Nicht implementiert" msgid "Not Installed" msgstr "Nicht installiert" msgid "Not Modified" msgstr "Nicht verändert" msgid "Not Supported" msgstr "Nicht unterstützt" msgid "Not allowed to print." msgstr "Drucken nicht erlaubt." msgid "Note" msgstr "Hinweis" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Aus (Einseitig)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Online-Hilfe" msgid "Only local users can create a local printer." msgstr "Nur lokale Benutzer können lokale Drucker erzeugen." #, c-format msgid "Open of %s failed: %s" msgstr "Öffnen von %s ist fehlgeschlagen: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup ohne CloseGroup zuerst" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI ohne CloseUI/JCLCloseUI zuerst" msgid "Operation Policy" msgstr "Nutzungsrichtlinien" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "Option \"%s\" kann nicht mittels %%%%IncludeFeature einbezogen werden." msgid "Options Installed" msgstr "Installierte Optionen" msgid "Options:" msgstr "Optionen:" msgid "Other Media" msgstr "Andere Medien" msgid "Other Tray" msgstr "Anderes Fach" msgid "Out of date PPD cache file." msgstr "Veraltete PPD-Cache-Datei." msgid "Out of memory." msgstr "Nicht genügend Speicher." msgid "Output Mode" msgstr "Ausgabemodus" msgid "PCL Laser Printer" msgstr "PCL-Laserdrucker" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K lange Kante" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K lange Kante" msgid "PRC32K Oversize" msgstr "PRCK32K Übergröße" msgid "PRC32K Oversize Long Edge" msgstr "PRCK32K Übergröße lange Kante" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" "PRINTER Umgebungsvariable für ein voreingestelltes Ziel existiert nicht." msgid "Packet does not contain a Get-Response-PDU" msgstr "Paket enthält kein Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "Paket beginnt nicht mit SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Passwort für %s auf %s? " msgid "Pause Class" msgstr "Klasse anhalten" msgid "Pause Printer" msgstr "Drucker anhalten" msgid "Peel-Off" msgstr "Aufkleber" msgid "Photo" msgstr "Foto" msgid "Photo Labels" msgstr "Foto-Etiketten" msgid "Plain Paper" msgstr "Standardpapier" msgid "Policies" msgstr "Richtlinien " msgid "Port Monitor" msgstr "Port-Monitor" msgid "PostScript Printer" msgstr "PostScript-Drucker" msgid "Postcard" msgstr "Postkarte" msgid "Postcard Double" msgstr "Doppelpostkarte" msgid "Postcard Double Long Edge" msgstr "Doppelpostkarte lange Seite" msgid "Postcard Long Edge" msgstr "Postkarte lange Seite" msgid "Preparing to print." msgstr "Vorbereitung zum Druck." msgid "Print Density" msgstr "Druckdichte" msgid "Print Job:" msgstr "Druckauftrag:" msgid "Print Mode" msgstr "Druckmodus" msgid "Print Quality" msgstr "Druckqualität" msgid "Print Rate" msgstr "Druckrate" msgid "Print Self-Test Page" msgstr "Selbsttestseite drucken" msgid "Print Speed" msgstr "Druckgeschwindigkeit" msgid "Print Test Page" msgstr "Testseite drucken" msgid "Print and Cut" msgstr "Drucken und abschneiden" msgid "Print and Tear" msgstr "Drucken und abreißen" msgid "Print file sent." msgstr "Druckdatei gesendet." msgid "Print job canceled at printer." msgstr "Druckauftrag wurde am Drucker abgebrochen." msgid "Print job too large." msgstr "Der Druckauftrag ist zu groß." msgid "Print job was not accepted." msgstr "Der Druckauftrag wurde nicht angenommen." #, c-format msgid "Printer \"%s\" already exists." msgstr "Drucker \"%s\" existiert bereits." msgid "Printer Added" msgstr "Drucker hinzugefügt" msgid "Printer Default" msgstr "Standardeinstellung für Drucker" msgid "Printer Deleted" msgstr "Drucker gelöscht" msgid "Printer Modified" msgstr "Drucker geändert" msgid "Printer Paused" msgstr "Drucker angehalten" msgid "Printer Settings" msgstr "Druckereinstellungen" msgid "Printer cannot print supplied content." msgstr "Drucker kann den Inhalt nicht drucken." msgid "Printer cannot print with supplied options." msgstr "Drucker kann mit den angegebenen Optionen nicht drucken." msgid "Printer does not support required IPP attributes or document formats." msgstr "" "Drucker unterstützt die erforderlichenIPP-Attribute oder Dokumentformate " "nicht" msgid "Printer:" msgstr "Drucker:" msgid "Printers" msgstr "Drucker" #, c-format msgid "Printing page %d, %u%% complete." msgstr "Drucke Seite %d, %u%% fertig." msgid "Punch" msgstr "Locher" msgid "Quarto" msgstr "US Quarto" msgid "Quota limit reached." msgstr "Kontingentgrenze erreicht." msgid "Rank Owner Job File(s) Total Size" msgstr "Rang Besitz. Auftrag Datei(en) Gesamtgröße" msgid "Reject Jobs" msgstr "Druckaufträge ablehnen" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "Entfernter Host hat die Steuerdatei (%d) nicht akzeptiert." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "Entfernter Host hat die Datendatei (%d) nicht akzeptiert." msgid "Reprint After Error" msgstr "Druckvorgang nach dem Fehler fortsetzen" msgid "Request Entity Too Large" msgstr "Gesamte Anfrage zu groß" msgid "Resolution" msgstr "Auflösung" msgid "Resume Class" msgstr "Klasse fortsetzen" msgid "Resume Printer" msgstr "Drucken fortsetzen" msgid "Return Address" msgstr "Rückgabeadresse" msgid "Rewind" msgstr "Zurückdrehen" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE hat unbestimmte Länge" msgid "SSL/TLS Negotiation Error" msgstr "SSL/TLS Verhandlungsfehler" msgid "Second Roll (DUO/Twin Only)" msgstr "Zweite Rolle (nur Doppelrolle)" msgid "See Other" msgstr "Siehe auch" msgid "See remote printer." msgstr "Siehe entfernter Drucker." msgid "Self-signed credentials are blocked." msgstr "Selbstsignierte Anmeldedaten sind blockiert." msgid "Sending data to printer." msgstr "Sende Daten zum Drucker." msgid "Server Restarted" msgstr "Server neu gestartet" msgid "Server Security Auditing" msgstr "Server Security Auditing" msgid "Server Started" msgstr "Server gestartet" msgid "Server Stopped" msgstr "Server ist angehalten" msgid "Server credentials not set." msgstr "Server-Zugangsdaten nicht gesetzt." msgid "Service Unavailable" msgstr "Dienst nicht verfügbar" msgid "Set Allowed Users" msgstr "Zugelassene Benutzer festlegen" msgid "Set As Server Default" msgstr "Als Voreinstellungen für Server festlegen" msgid "Set Class Options" msgstr "Klassenoptionen festlegen" msgid "Set Printer Options" msgstr "Druckeroptionen festlegen" msgid "Set Publishing" msgstr "Veröffentlichung festlegen" msgid "Shipping Address" msgstr "Lieferadresse" msgid "Short-Edge (Landscape)" msgstr "Kurze Kante (Querformat)" msgid "Special Paper" msgstr "Spezialpapier" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "Auftragszwischenspeicherung %.0f%% abgeschlossen." msgid "Standard" msgstr "Standard" msgid "Staple" msgstr "Heftung" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Startbanner" #, c-format msgid "Starting page %d." msgstr "Beginne Seite %d." msgid "Statement" msgstr "US Statement" #, c-format msgid "Subscription #%d does not exist." msgstr "Abonnement #%d existiert nicht." msgid "Substitutions:" msgstr "Ersatz:" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Protokolle wechseln" msgid "Tabloid" msgstr "US Tabloid" msgid "Tabloid Oversize" msgstr "US Tabloid übergroß" msgid "Tabloid Oversize Long Edge" msgstr "US Tabloid übergroß lange Seite" msgid "Tear" msgstr "Abreißen" msgid "Tear-Off" msgstr "Abriss" msgid "Tear-Off Adjust Position" msgstr "Abriss-Justierposition" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "Das Attribut »%s« ist erforderlich für Druckaufträge." #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "Das %s Attribut kann nicht mit Auftrags-IDs angegeben werden." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" "Das Attribut '%s' Auftragsstatus kann in einer Auftragsanfrage nicht " "angegeben werden." #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "Das Vorgangsattribut '%s' kann nicht mit einer Anfrage zur " "Auftragserstellung angegeben werden." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "Die PPD-Datei »%s« konnte nicht gefunden werden." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "Die PPD-Datei »%s« konnte nicht geöffnet werden: %s" msgid "The PPD file could not be opened." msgstr "Die PPD-Datei konnte nicht geöffnet werden." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "Der Klassenname darf maximal 127 druckbare Zeichen haben und darf keine " "Leerzeichen, Schrägstriche (/) oder Rautezeichen (#) enthalten." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "Das Attribut „notify-lease-duration“ kann nicht mit Druckauftrags-" "Subskriptionen verwendet werden." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "Der Wert für notify-user-data ist zu groß (%d > 63 octets)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" "Die Druckerkonfiguration ist nicht korrekt oder der Drucker existiert nicht " "mehr." msgid "The printer did not respond." msgstr "Der Drucker hat nicht geantwortet." msgid "The printer is in use." msgstr "Der Drucker ist beschäftigt." msgid "The printer is not connected." msgstr "Der Drucker ist nicht verbunden." msgid "The printer is not responding." msgstr "Der Drucker antwortet nicht." msgid "The printer is now connected." msgstr "Der Drucker ist jetzt verbunden." msgid "The printer is now online." msgstr "Der Drucker ist jetzt online." msgid "The printer is offline." msgstr "Der Drucker ist offline." msgid "The printer is unreachable at this time." msgstr "Der Drucker ist derzeit nicht erreichbar." msgid "The printer may not exist or is unavailable at this time." msgstr "Der Drucker existiert nicht oder ist zurzeit nicht verfügbar." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" "Der Druckername kann maximal 127 druckbare Zeichen umfassen aber keinesfalls " "Leerzeichen, Slashes (/ \\), Anführungszeichen (' \"), Fragezeichen (?), " "oder Rautezeichen (#)." msgid "The printer or class does not exist." msgstr "Der Drucker oder die Klasse existiert nicht." msgid "The printer or class is not shared." msgstr "Der Drucker oder die Klasse ist nicht freigegeben." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "Die Drucker-URI »%s« enthält ungültige Zeichen." msgid "The printer-uri attribute is required." msgstr "Das printer-uri-Attribut ist erforderlich." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "Die Drucker-URI muss in der folgenden Form vorliegen: ipp://HOSTNAME/classes/" "CLASSNAME" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "Die Drucker-URI muss in der folgenden Form vorliegen: ipp://HOSTNAME/" "printers/PRINTERNAME" msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "Die Web-Schnittstelle ist derzeit abgeschaltet. Das Einschalten kann mit dem " "Befehl »cupsctl WebInterface=yes« erfolgen." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "Der which-jobs Wert »%s« ist nicht unterstützt." msgid "There are too many subscriptions." msgstr "Es gibt zu viele Subskriptionen." msgid "There was an unrecoverable USB error." msgstr "Ein nicht zu behebender USB-Fehler ist aufgetreten." msgid "Thermal Transfer Media" msgstr "Thermotransferpapier" msgid "Too many active jobs." msgstr "Zu viele aktive Druckaufträge." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Zu viele job-sheets-Werte (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Zu viele printer-state-reasons-Werte (%d > %d)." msgid "Transparency" msgstr "Transparenz" msgid "Tray" msgstr "Fach" msgid "Tray 1" msgstr "Fach 1" msgid "Tray 2" msgstr "Fach 2" msgid "Tray 3" msgstr "Fach 3" msgid "Tray 4" msgstr "Fach 4" msgid "Trust on first use is disabled." msgstr "Vertrauen bei erster Benutzung gesperrt." msgid "URI Too Long" msgstr "URI zu lang" msgid "URI too large" msgstr "URI zu groß" msgid "US Fanfold" msgstr "US Fanfold" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Lang" msgid "US Legal Oversize" msgstr "US Legal übergroß" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "US Letter lange Seite" msgid "US Letter Oversize" msgstr "US Letter übergroß" msgid "US Letter Oversize Long Edge" msgstr "US Letter übergroß, lange Seite" msgid "US Letter Small" msgstr "US Letter klein" msgid "Unable to access cupsd.conf file" msgstr "Kein Zugriff auf die Datei cupsd.conf" msgid "Unable to access help file." msgstr "Kein Zugriff auf die Hilfe-Datei." msgid "Unable to add class" msgstr "Klasse konnte nicht hinzugefügt werden:" msgid "Unable to add document to print job." msgstr "Dem Druckauftrag kann kein Dokument hinzugefügt werden." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "Dem Ziel »%s« kann kein Auftrag hinzugefügt werden." msgid "Unable to add printer" msgstr "Drucker konnte nicht hinzugefügt werden:" msgid "Unable to allocate memory for file types." msgstr "Speicher für Dateitypen kann nicht belegt werden." msgid "Unable to allocate memory for page info" msgstr "Speicher für Seiteninformation kann nicht belegt werden" msgid "Unable to allocate memory for pages array" msgstr "Speicher für Seitenmatrix kann nicht belegt werden" msgid "Unable to allocate memory for printer" msgstr "Speicher für den Drucker kann nicht belegt werden" msgid "Unable to cancel print job." msgstr "Druckauftrag kann nicht abgebrochen werden." msgid "Unable to change printer" msgstr "Drucker konnte nicht geändert werden" msgid "Unable to change printer-is-shared attribute" msgstr "Attribut „printer-is-shared“ konnte nicht geändert werden" msgid "Unable to change server settings" msgstr "Servereinstellungen konnten nicht geändert werden" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" "Der regulären Ausdruck für mimeMediaType kann nicht kompiliert werden: %s." #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" "Der natualLanguage regulärer Ausdruck kann nicht kompiliert werden: %s." msgid "Unable to configure printer options." msgstr "Druckeroptionen können nicht konfiguriert werden." msgid "Unable to connect to host." msgstr "Verbindungsaufbau zum Host fehlgeschlagen." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "Drucker kann nicht kontaktiert werden, stelle in die nächste Warteschlange " "der Klasse ein" #, c-format msgid "Unable to copy PPD file - %s" msgstr "PPD-Datei kann nicht kopiert werden - %s" msgid "Unable to copy PPD file." msgstr "PPD-Datei kann nicht kopiert werden." msgid "Unable to create credentials from array." msgstr "Anmeldedaten aus dem Array können nicht erzeugt werden." msgid "Unable to create printer-uri" msgstr "Drucker-URI kann nicht erzeugt werden" msgid "Unable to create printer." msgstr "Drucker kann nicht erzeugt werden." msgid "Unable to create server credentials." msgstr "Die Server-Anmeldedaten können nicht erzeugt werden." #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "Anlegen des spool-Verzeichnisses \"%s\" nicht möglich: %s" msgid "Unable to create temporary file" msgstr "Temporäre Datei konnte nicht erstellt werden" msgid "Unable to delete class" msgstr "Die Klasse konnte nicht gelöscht werden" msgid "Unable to delete printer" msgstr "Der Drucker konnte nicht gelöscht werden" msgid "Unable to do maintenance command" msgstr "Wartungsbefehl konnte nicht ausgeführt werden" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "cupsd.conf-Dateien größer als 1MB können nicht bearbeitet werden" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "Herstellen einer sicheren Verbindung zum Host (%d) nicht möglich." msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "Sichere Verbindung zu Host nicht möglich (Zertifikatskette ungültig)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "Sichere Verbindung zu Host nicht möglich (Zertifikatskette noch nicht " "gültig)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "Sichere Verbindung zu Host nicht möglich (Zertifikate abgelaufen)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "Sichere Verbindung zu Host nicht möglich (Hostname passt nicht)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "Sichere Verbindung zu Host nicht möglich (Gegenstelle hat die Verbindung vor " "einer Antwort beendet)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "Sichere Verbindung zu Host nicht möglich (Selbstsigniertes Zertifikat)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "Sichere Verbindung zu Host nicht möglich (Nicht vertrauenswürdiges " "Zertifikat)." msgid "Unable to establish a secure connection to host." msgstr "Sichere Verbindung zu Host nicht möglich." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "Befehl \"%s\" kann nicht ausgeführt werden: %s" msgid "Unable to find destination for job" msgstr "Das Ziel für den Auftrag kann nicht gefunden werden" msgid "Unable to find printer." msgstr "Der Drucker kann nicht gefunden werden" msgid "Unable to find server credentials." msgstr "Die Server-Zugangsdaten konnten nicht gefunden werden." msgid "Unable to get backend exit status." msgstr "Der Backend-Rückgabewert kann nicht ermittelt werden." msgid "Unable to get class list" msgstr "Klassenliste konnte nicht ermittelt werden" msgid "Unable to get class status" msgstr "Klassenstatus konnte nicht ermittelt werden" msgid "Unable to get list of printer drivers" msgstr "Liste der Druckertreiber konnte nicht ermittel werden" msgid "Unable to get printer attributes" msgstr "Druckerattribute konnten nicht ermittelt werden" msgid "Unable to get printer list" msgstr "Druckerliste konnte nicht ermittelt werden" msgid "Unable to get printer status" msgstr "Druckerstatus konnte nicht ermittelt werden" msgid "Unable to get printer status." msgstr "Druckerstatus konnte nicht ermittelt werden." msgid "Unable to load help index." msgstr "Hilfeindex kann nicht geladen werden." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "Der Drucker »%s« kann nicht lokalisiert werden." msgid "Unable to locate printer." msgstr "Der Drucker kann nicht lokalisiert werden." msgid "Unable to modify class" msgstr "Klasse konnte nicht verändert werden" msgid "Unable to modify printer" msgstr "Drucker kann nicht verändert werden" msgid "Unable to move job" msgstr "Druckauftrag kann nicht verschoben werden" msgid "Unable to move jobs" msgstr "Druckaufträge können nicht verschoben werden" msgid "Unable to open PPD file" msgstr "PPD Datei kann nicht geöffnet werden" msgid "Unable to open cupsd.conf file:" msgstr "Die Datei „cupsd.conf“ kann nicht geöffnet werden:" msgid "Unable to open device file" msgstr "Die Gerätedatei kann nicht geöffnet werden" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "Das Dokument #%d in Auftrag #%d kann nicht geöffnet werden." msgid "Unable to open help file." msgstr "Die Hilfe-Datei kann nicht geöffnet werden." msgid "Unable to open print file" msgstr "Die Druckdatei kann nicht geöffnet werden" msgid "Unable to open raster file" msgstr "Die Rasterdatei kann nicht geöffnet werden" msgid "Unable to print test page" msgstr "Die Testseite kann nicht gedruckt werden" msgid "Unable to read print data." msgstr "Druckdaten können nicht gelesen werden." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "Kann \"%s.%s\" nicht registrieren: %d" msgid "Unable to rename job document file." msgstr "Auftragsdatei kann nicht umbenannt werden." msgid "Unable to resolve printer-uri." msgstr "Drucker-URI kann nicht aufgelöst werden." msgid "Unable to see in file" msgstr "In die Datei kann nicht gesehen werden" msgid "Unable to send command to printer driver" msgstr "Befehl kann nicht zum Drucker gesendet werden" msgid "Unable to send data to printer." msgstr "Kann Daten nicht zum Drucker senden." msgid "Unable to set options" msgstr "Optionen konnten nicht festgelegt werden" msgid "Unable to set server default" msgstr "Standardeinstellungen für Server konnten nicht festgelegt werden" msgid "Unable to start backend process." msgstr "Backend-Prozess kann nicht gestartet werden." msgid "Unable to upload cupsd.conf file" msgstr "Die Datei „cupsd.conf“ kann nicht hochgeladen werden" msgid "Unable to use legacy USB class driver." msgstr "Der alte USB-Klassentreiber kann nicht verwendet werden." msgid "Unable to write print data" msgstr "Kann Druckdaten nicht schreiben" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "Unkomprimierte Druckdaten können nicht geschrieben werden: %s" msgid "Unauthorized" msgstr "Nicht berechtigt" msgid "Units" msgstr "Einheiten" msgid "Unknown" msgstr "Unbekannt" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "Unbekannte Auswahl \"%s\" für Option \"%s\"." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "Unbekannte Anweisung \"%s\" in Zeile %d in \"%s\" wird ignoriert." #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "Unbekannte Verschlüsselungsoption: »%s«." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Unbekannte Dateireihenfolge: \"%s\"." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Unbekanntes Formatzeichen: \"%c\"." msgid "Unknown hash algorithm." msgstr "Unbekannter Hash-Algorithmus." msgid "Unknown media size name." msgstr "Unbekannter Name der Mediengröße." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "Unbekannte Option \"%s\" mit Wert \"%s\"." #, c-format msgid "Unknown option \"%s\"." msgstr "Unbekannte Option \"%s\"." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "Unbekannter Druckmodus: \"%s\"." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "Unbekannte printer-error-policy \"%s\"." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "Unbekannte printer-op-policy \"%s\"." msgid "Unknown request method." msgstr "Unbekannte Anfragemethode." msgid "Unknown request version." msgstr "Unbekannte Anfrageversion." msgid "Unknown scheme in URI" msgstr "Unbekanntes Schema in URI" msgid "Unknown service name." msgstr "Unbekannter Dienstname." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "Unbekannter Versionsoption: \"%s\"." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "Nicht unterstützter Kompressionswert \"%s\"." #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "Nicht unterstützter Wert des 'document-format' \"%s\"." msgid "Unsupported 'job-hold-until' value." msgstr "Nicht unterstützter Wert für 'job-hold-until'" msgid "Unsupported 'job-name' value." msgstr "Nicht unterstützter 'job-name' Wert." #, c-format msgid "Unsupported character set \"%s\"." msgstr "Nicht unterstützter Zeichensatz \"%s\"." #, c-format msgid "Unsupported compression \"%s\"." msgstr "Nicht unterstützte Kompression \"%s\"." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "Nicht unterstütztes Dokumentenformat \"%s\"." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "Nicht unterstütztes Dokumentenformat \"%s/%s\"." #, c-format msgid "Unsupported format \"%s\"." msgstr "Nicht unterstütztes Format \"%s\"." msgid "Unsupported margins." msgstr "Nicht unterstützte Ränder." msgid "Unsupported media value." msgstr "Nicht unterstützter Medienwert." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "Nicht unterstützter number-up Wert %d, verwende number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "Nicht unterstützter number-up-layout Wert %s, verwende number-up-layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" "Nicht unterstützter Wert für page-border %s, verwende paqe-border=none." msgid "Unsupported raster data." msgstr "Nicht unterstützte Rasterdaten." msgid "Unsupported value type" msgstr "Wertetyp nicht unterstützt" msgid "Upgrade Required" msgstr "Aktualisierung erforderlich" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "Verwendung: %s [Optionen] Ziel(e)" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Verwendung: %s Auftrags-ID Benutzer Titel Kopien Optionen [Datei]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" "Verwendung: cancel [Optionen] [id]\n" " cancel [Optionen] [Ziel]\n" " cancel [Optionen] [Ziel-id]" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Verwendung: cupsctl [Optionen] [Parameter=Wert ... ParameterN=WertN]" msgid "Usage: cupsd [options]" msgstr "Verwendung: cupsd [Optionen]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "Verwendung: cupsfilter [ Optionen ] [ -- ] Dateiname" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" "Verwendung: cupstestppd [Optionen] Datei1.ppd[.gz] [... DateiN.ppd[.gz]]\n" " Programm | cupstestppd [Optionen] -" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "Verwendung: ippeveprinter [Optionen] \"Name\"" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Verwendung: ippfind [Optionen] regtype[,subtype][.domain.] ... [Ausdruck]\n" " ippfind [Optionen] name[.regtype[.domain.]] ... [Ausdruck]\n" " ippfind --help\n" " ippfind --version" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Verwendung: ipptool [Optionen] URI Dateiname [ ... DateinameN ]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" "Verwendung: lp [Optionen] [--] [Datei(en)]\n" " lp [Optionen] -i id" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" "Verwendung: lpadmin [Optionen] -d Ziel\n" " lpadmin [Optionen] -p Ziel\n" " lpadmin [Optionen] -p Ziel -c Klasse\n" " lpadmin [Optionen] -p Ziel -r Klasse\n" " lpadmin [Optionen] -x Ziel" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" "Verwendung: lpinfo [Optionen] -m\n" " lpinfo [Optionen] -v" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" "Verwendugn: lpmove [Optionen] Auftrag Ziel\n" " lpmove [Optionen] Quelle Ziel" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" "Verwendung: lpoptions [Optionen] -d Ziel\n" " lpoptions [Optionen] [-p Ziel] [-l]\n" " lpoptions [Optionen] [-p Ziel] -o option[=Wert]\n" " lpoptions [Optionen] -x Ziel" msgid "Usage: lpq [options] [+interval]" msgstr "Verwendung: lpq [Optionen] [+Intervall]" msgid "Usage: lpr [options] [file(s)]" msgstr "Verwendung: lpr [Optionen] [Datei(en)]" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" "Verwendung: lprm [Optionen] [id]\n" " lprm [Optionen] -" msgid "Usage: lpstat [options]" msgstr "Verwendung: lpstat [Optionen]" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Verwendung: ppdc [Optionen] Dateiname.drv [ ... DateinameN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Verwendung: ppdhtml [Optionen] Dateiname.ppd Dateiname.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Verwendung: ppdi [Optionen] Dateiname.ppd [ ... DateinameN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Verwendung: ppdmerge [Optionen] Dateiname.ppd [ ... DateinameN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "Verwendung: ppdpo [Optionen] -o Dateiname.po Dateiname.drv [ ... DateinameN." "drv ]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Verwendung: snmp [Host-oder-IP-Adresse]" #, c-format msgid "Using spool directory \"%s\"." msgstr "Verwende Spoolverzeichnis \"%s\"." msgid "Value uses indefinite length" msgstr "Wert hat unbestimmte Länge" msgid "VarBind uses indefinite length" msgstr "VarBind hat unbestimmte Länge" msgid "Version uses indefinite length" msgstr "Version hat unbestimmte Länge" msgid "Waiting for job to complete." msgstr "Warte auf Auftragsabschluss." msgid "Waiting for printer to become available." msgstr "Warte darauf dass der Drucker verfügbar wird." msgid "Waiting for printer to finish." msgstr "Warte auf Abschluss." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" "Warnung: Dieses Programm wird in einer zukünftigen Version von CUPS entfernt " "werden." msgid "Web Interface is Disabled" msgstr "Web-Schnittstelle ist deaktiviert" msgid "Yes" msgstr "Ja" msgid "You cannot access this page." msgstr "Sie können auf diese Seite nicht zugreifen" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Auf diese Seite greifen Sie zu über die URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "Dein Konto hat nicht die notwendigen Privilegien" msgid "ZPL Label Printer" msgstr "ZPL-Etikettendrucker" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "abgebrochen" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "Genauigkeit" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "Millimeter" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "Nanometer" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "Mikrometer" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "nach dem Auftrag" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "nach den Sets" #. TRANSLATORS: Bind Output msgid "binding" msgstr "Bindung" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "Bindungskante" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "unterer Rand" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "linker Rand" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "rechter Rand" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "oberer Rand" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "Bindungstyp" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "Kleber" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "Kamm" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "Flach" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "Auspolstern" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "Perfekt" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "Spirale" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "Band" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "Fahrrad" msgid "canceled" msgstr "abgebrochen" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "Kammerfeuchtigkeit" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "Kammertemperatur" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "Druckkosten" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "Deckblätter" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "Deckblatt" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "Rückseitig" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "Vorder- und Rückseitig" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "Vorderseitig" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "Deckblattyp" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "Archivfähig" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "Glänzend archivfähig" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "Matt archivfähig" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "Seidenglanz archivfähig" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "Glänzend" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "Hochglänzend" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "Matt" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "Seidenglänzend" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "Silikon" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "Durchscheinend" msgid "completed" msgstr "abgeschlossen" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "Druckbestätigung" #. TRANSLATORS: Copies msgid "copies" msgstr "Kopien" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "Deckblatt hinten" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "Deckblatt vorne" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "Deckblatt Information" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "Datum Zeit" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "Name Auftraggeber" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "Logo" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "Nachricht" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "Organisation" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "Thema" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "Name Adressat" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "gedrucktes Deckblatt" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "Keines" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "nur hinten" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "vorne und hinten" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "nur vorne" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "Kein" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "Abdeckung" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "Blanko" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "Vordruck" msgid "cups-deviced failed to execute." msgstr "„cups-deviced“ konnte nicht ausgeführt werden." msgid "cups-driverd failed to execute." msgstr "„cups-driverd“ konnte nicht ausgeführt werden." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "cupsctl: kann %s nicht direkt bestimmen" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: Kann nicht mit dem Server verbinden: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: Unbekannte Option »%s«" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: Unbekannte Option \"-%c\"" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "cupsd: Konfigurations-Dateiname nach der »-c« Option erwartet." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "cupsd: Dateiname cups-files.conf nach der »-s« Option erwartet." msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" "cupsd: Start auf Anforderung nicht einkompiliert, starte im normalen Modus." msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "cupsd: Relativer Dateiname für cups-files.conf nicht zulässig." msgid "cupsd: Unable to get current directory." msgstr "cupsd: Aktuelles Verzeichnis kann nicht ermittelt werden." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "cupsd: Pfad zur Datei cups-files.conf kann nicht ermittelt werden." #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: Unbekanntes Argument \"%s\" - Abbruch." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: Unbekannte Option \"%c\" - Abbruch." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: ungültige Dokumentennummer %d." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: ungültige Auftrags-ID %d." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: Es kann nur ein Dateiname angegeben werden." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: Auftragsdatei nicht verfügbar - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: Die -q Option ist nicht vereinbar mit der -v Option." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: Die -v Option ist nicht vereinbar mit der -q Option." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "Detaillierte Statusnachricht" #, c-format msgid "device for %s/%s: %s" msgstr "Gerät für %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "Gerät für %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "Kopien" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "Dokument Datenschutzattribute" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "Alle" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "Voreingestellt" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "Dokumentenbeschreibung" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "Dokumentvorlage" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "Keine" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "Dokument Datenschutzgeltungsbereich" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "Alles" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "Voreingestellt" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "Nichts" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "Eigentümer" #. TRANSLATORS: Document State msgid "document-state" msgstr "Dokumentenstatus" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "Detaillierter Dokumentenstatus" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "Abbruch durch das System" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "Am Gerät abgebrochen" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "Durch Bediener abgebrochen" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "Durch Benutzer abgebrochen" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "erfolgreich abgeschlossen" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "mit Fehler abgeschlossen" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "mit Warnung abgeschlossen" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "Kompressionsfehler" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "Daten ungenügend" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "Digitale Signatur ungültig" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "Digitaler Signaturtyp nicht unterstützt" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "Fehler des Dokumentenzugriffs" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "Fehler des Dokumentformats" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "Fehler des Dokumentpassworts" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "Fehler der Dokumentenberechtigung" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "Fehler der Dokumentensicherheit" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "Fehler: Dokument undruckbar" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "Fehler festgestellt" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "Eingehend" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "interpretiere Seitenbeschreibung" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "Nichts" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "Ausgehend" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "im Druck" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "Verarbeitung bis zum Haltepunkt" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "in der Warteschlange" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "im Gerät in der Warteschlange" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "Resourcen nicht bereit" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "Resourcen nicht unterstützt" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "Übermittlung unterbrochen" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "in Transformation" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "Nicht unterstützte Kompression" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "Nicht unterstütztes Dokumentenformat" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "Warnungen festgestellt" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "Anstehend" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "in Verarbeitung" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "Angehalten" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "Abgebrochen" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "Fertiggestellt" msgid "error-index uses indefinite length" msgstr "Fehlerindex hat unbestimmte Länge" msgid "error-status uses indefinite length" msgstr "Fehlerstatus hat unbestimmte Länge" msgid "" "expression --and expression\n" " Logical AND" msgstr "" "Ausdruck --and Ausdruck\n" " Logisches UND" msgid "" "expression --or expression\n" " Logical OR" msgstr "" "Ausdruck --or Ausdruck\n" " Logisches ODER" msgid "expression expression Logical AND" msgstr "Asudruck Ausdruck Logisches UND" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "Einzugsrichtung" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "Lange Kante voran" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "Kurze Kante voran" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "Abrufstatus" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "Broschüren" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "Randnaht" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "Randnaht unten" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "Randnaht links" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "Randnaht rechts" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "Randnaht oben" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "Falz" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "Akkordeonfalz" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "Altarfalz" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "Laminat" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "Lochung" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "Lochung unten links" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "Lochung unten rechts" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "Doppellochung unten" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "Doppellochung links" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "Doppellochung rechts" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "Doppellochung oben" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "Mehrfachlochung unten" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "Mehrfachlochung links" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "Mehrfachlochung rechts" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "Mehrfachlochung oben" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "4-fach-Lochung unten" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "4-fach-Lochung links" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "4-fach-Lochung rechts" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "4-fach-Lochung oben" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "Lochung oben links" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "Lochung oben rechts" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "3-Fach-Lochung unten" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "3-Fach-Lochung links" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "3-Fach-Lochung rechts" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "3-Fach-Lochung oben" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "Spezialheftung" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "Heftung" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "Heftung unten links" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "Heftung unten rechts" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "Doppelheftung unten" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "Doppelheftung links" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "Doppelheftung rechts" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "Doppelheftung oben" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "Heftung oben links" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "Heftung oben rechts" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "Dreifachheftung unten" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "Dreifachheftung links" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "Dreifachheftung rechts" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "Dreifachheftung unten" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "Beschnitt" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "nach Kopien" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "nach Dokument" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "nach Auftrag" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "nach Seiten" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "nach Sets" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "nach Blättern" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "Klammer unten links" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "Klammer oben rechts" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "Klammer unten rechts" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "2 Klammern rechts" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "2 Klammern unten" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "3 Klammern links" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "Falzung" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "Falzrichtung" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "einwärts" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "auswärts" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "Falzposition" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "Falzreferenzkante" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "unten" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "links" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "rechts" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "oben" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "Name Absender" msgid "held" msgstr "gehalten" msgid "help\t\tGet help on commands." msgstr "help\t\tHilfe zu Befehlen." msgid "idle" msgstr "inaktiv" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "Signatur" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "Seitennnummer einfügen" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "Zählung einfügen" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "Blatt einfügen" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "ippfind: falscher regulärer Ausdruck: %s" msgid "ippfind: Cannot use --and after --or." msgstr "ippfind: --and kann nicht zusammen mit --or benutzt werden." #, c-format msgid "ippfind: Expected key name after %s." msgstr "ippfind: Erwarte Schlüsselname nach %s." #, c-format msgid "ippfind: Expected port range after %s." msgstr "ippfind: Erwarte Portbereich nach %s." #, c-format msgid "ippfind: Expected program after %s." msgstr "ippfind: Erwarte Programm nach %s." #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "ippfind: Erwarte Semikolon nach %s." msgid "ippfind: Missing close brace in substitution." msgstr "ippfind: Fehlende schließende Klammer in Ersetzung." msgid "ippfind: Missing close parenthesis." msgstr "ippfind: Fehlende Schlussklammer." msgid "ippfind: Missing expression before \"--and\"." msgstr "ippfind: Fehlender Ausdruck vor \"--and\"." msgid "ippfind: Missing expression before \"--or\"." msgstr "ippfind: Fehlender Ausdruck vor \"--or\"." #, c-format msgid "ippfind: Missing key name after %s." msgstr "ippfind: Fehlender Schlüsselname nach %s." #, c-format msgid "ippfind: Missing name after %s." msgstr "ippfind: Fehlender Name nach %s." msgid "ippfind: Missing open parenthesis." msgstr "ippfind: Fehlende offene Klammer" #, c-format msgid "ippfind: Missing program after %s." msgstr "ippfind: Fehlendes Programm nach %s." #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "ippfind: Fehlender regulärer Ausdruck nach %s." #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "ippfind: Fehlendes Semikolon nach %s." msgid "ippfind: Out of memory." msgstr "ippfind: zu wenig Speicher." msgid "ippfind: Too many parenthesis." msgstr "ipp find: zu viele Klammern." #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "ippfind: Auflösen oder Browsen nicht möglich: %s" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "ippfind: Ausführung nicht möglich \"%s\": %s" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "ippfind: Bonjour kann nicht verwendet werden: %s" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "ippfind: Unbekannte Variable \"{%s}\"." msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" "ipptool: \"-i\" und \"-n\" sind nicht kompatibel mit \"--ippserver\", \"-P\" " "und \"-X\"." msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" "ipptool: \"-i\" und \"-n\" sind nicht kompatibel mit \"-P\" und \"-X\"." #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "ipptool: Falsche URI \"%s\"." msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: Ungültige Sekundenzahl für \"-i\"." msgid "ipptool: May only specify a single URI." msgstr "ipptool: Darf nur einen einzigen URI angeben." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: Fehlende Anzahl für \"-n\"." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "ipptool: Fehlender Dateiname für \"--ippserver\"." msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: Fehlender Dateiname für \"-f\"." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: Fehlender name=Wert für \"-d\"." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: Fehlende Sekundenzahl für \"-i\"." msgid "ipptool: URI required before test file." msgstr "ipptool: URI muss vor der Testdatei angegeben werden." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "Auftragskonto-ID" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "Auftragskontotyp" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "Allgemein" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "Gruppe" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "Kein" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "Ausgabefach für Auftragsabrechnung" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "Blätter für Auftragsabrechnung" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "Kopien" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "Rückseitenumschlag" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "Vorderumschlag" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "Ausgabeverzögerung bis" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "Ausgabeverzögerung bis" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "Tagsüber" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "Abends" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "Freigabe" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "Nachts" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "Keine Verzögerung" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "Zweite Schicht" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "Dritte Schicht" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "Wochenende" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "Bei Fehler" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "Auftrag abbrechen" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "Auftrag abbrechen" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "Auftrag fortführen" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "Auftrag aussetzen" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "Fehlerblatt drucken" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "Typ des Fehlerblatts" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "Keines" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "Standard" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "Drucke Fehlerblatt" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "immer" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "bei Fehlern" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "Auftragsabschluss" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "Anhalten bis" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "Anhalten bis" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "Tageszeit" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "Abends" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "Freigabe" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "Nachts" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "Kein" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "zweite Schicht" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "dritte Schicht" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "Wochenende" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "Pflichtattribute der Aufträge" #. TRANSLATORS: Title msgid "job-name" msgstr "Titel" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "Auftragsseiten" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "Auftragszeilen" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "Auftrags-Telefonnummer" msgid "job-printer-uri attribute missing." msgstr "job-printer-uri Attribut fehlt." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "Auftragspriorität" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "Auftrags-Datenschutzattribute" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "Alle" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "Voreingestellt" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "Auftragsbeschreibung" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "Auftragsvorlage" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "Keine" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "Auftrag Datenschutzbezug" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "Alles" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "Voreinstellung" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "Kein" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "Besitzer" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "Name Auftragsempfänger" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "Auftrag zurückhalten bis" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "Tagesende" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "Monatsende" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "Ende der Woche" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "Unbestimmt" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "Nachricht Auftragsbanner" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "Bannerseite" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "Bannerseite" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "Erste Seite im Dokument" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "Keine" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "Standard" #. TRANSLATORS: Job State msgid "job-state" msgstr "Auftragsstatus" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "Auftrags-Statusnachricht" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "Auftragsstatus-Grund" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "Angehalten" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "Autorisierung fehlt" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "Konto geschlossen" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "Kontoinformation benötigt" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "Kontenbeschränkung erreicht" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "Dekompressionsfehler" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "Widersprüchliche Attribute" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "Verbunden zum Ziel" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "Verbinde zum Ziel" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "Typ der digitalen Signatur nicht unterstützt" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "Dokumenten-Zugriffsfehler" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "Dokument-Formatfehler" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "Dokument-Passwortfehler" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "Dokument-Erlaubnisfehler" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "Fehler der Dokumentensicherheit" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "Dokument nicht druckbar" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "Fehler aufgetreten" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "Am Drucker angehalten" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "Vom Bediener angehalten" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "vom Benutzer angehalten" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "Erfolgreich abgeschlossen" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "Abschluss mit Fehlern" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "Abschluss mit Warnungen" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "Ungenügende Auftragsdaten" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "Auftrag zur Prüfung angehalten" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "Auftrag angehalten" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "Eingehend" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "Ausgehend" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "Warte auf Auftragspasswort" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "Auftrag erfolgreich gedruckt" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "Auftrag mit Fehlern gedruckt" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "Auftrag mit Warnungen gedruckt" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "Drucke" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "Druckvorbereitung" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "Verarbeite Dokument" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "Warte auf Auftragsfreigabe" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "Kann erneut gestartet werden" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "Auftrags-Wiederaufnahme" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "Auftrag erfolgreich gespeichert" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "Auftrag mit Fehlern gespeichert" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "Auftrag mit Warnungen gespeichert" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "Auftragsspeicherung" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "Auftragsspooling" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "Auftrags-Streaming" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "Unterbrochen" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "Auftrag vom Bediener unterbrochen" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "Auftrag vom System unterbrochen" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "Auftrag vom Benutzer unterbrochen" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "Auftragsunterbrechung" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "Auftragsverschiebung" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "Auftragstransformation" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "Nichts" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "Drucker offline" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "Drucker teilweise angehalten" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "Wird angehalten" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "Bereit" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "Ressourcen sind nicht bereit" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "Ressourcen werden nicht unterstützt" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "Dienst offline" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "Eingabe unterbrochen" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "Nicht unterstützte Attribute oder Werte" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "Nicht unterstützte Kompression" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "Nicht unterstütztes Dokumentenformat" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "Warte auf Benutzeraktion" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "Warnung aufgetreten" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "Ausstehend" #. TRANSLATORS: Held msgid "job-state.4" msgstr "Angehalten" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "Verarbeitend" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "Angehalten" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "Abgebrochen" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "Abgebrochen" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "Fertig" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "Seitenlaminierung" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "Laminierung" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "Nur Rückseite" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "Vor- und Rückseite" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "nur Vorderseite" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "Typ der Laminierung" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "Archivfähig" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "Glänzend" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "Hochglänzend" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "Matt" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "Halbglänzend" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "Durchscheinend" #. TRANSLATORS: Logo msgid "logo" msgstr "Logo" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: Klassenname darf nur druckbare Zeichen enthalten." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "lpadmin: Nach der \"-%c\" Option PPD erwartet." msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" "lpadmin: Nach der \"-u\" Option wird eine allow/deny:userlist erwartet." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: Klasse nach der \"-r\" Option erwartet." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: Klasse nach der \"-c\" Option erwartet." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: Beschreibung nach der \"-D\" Option erwartet." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: Geräte-URI nach der \"-v\" Option erwartet." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: Dateityp nach der \"-I\" Option erwartet." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: Hostname nach der \"-h\" Option erwartet." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: Ort nach der \"-L\" Option erwartet." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: Modellangabe nach der \"-m\" Option erwartet." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: Name nach der \"-R\" Option erwartet." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: Name=Wert nach der \"-o\" Option erwartet." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: Drucker nach der \"-p\" Option erwartet." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: Druckername nach der \"-d\" Option erwartet." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: Drucker oder Klasse nach der \"-x\" Option erwartet." msgid "lpadmin: No member names were seen." msgstr "lpadmin: Keine Mitgliedernamen erkennbar." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: Drucker %s ist bereits Mitglied der Klasse %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: Drucker %s ist kein Mitglied der Klasse %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" "lpadmin: Druckertreiber sind veraltet und werden in einer zukünftigen " "Version von CUPS nicht mehr funktionieren." msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: Druckername darf nur druckbare Zeichen enthalten." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" "lpadmin: Roh-Warteschlangen sind veraltet und werden in einer zukünftigen " "Version von CUPS nicht mehr funktionieren." msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "lpadmin: Roh-Warteschlangen sind unter macOS nicht mehr unterstützt." msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" "lpadmin: System V Schnittstellenskripte sind aus Sicherheitsgründen nicht " "mehr unterstützt." msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Kann Drucker nicht zur Klasse hinzufügen:\n" " Der Druckername muss zuerst angegeben werden." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: Kann nicht mit dem Server verbinden: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: Temporäre Datei kann nicht angelegt werden" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: Löschen der Option nicht möglich:\n" " Sie müssen zuerst einen Druckernamen angeben." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "lpadmin: Öffnen der PPD \"%s\": %s nicht möglich." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "lpadmin: Öffnen der PPD \"%s\": %s in Zeile %d nicht möglich." msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Entfernen des Drucker aus der Klasse nicht möglich:\n" " Sie müssen zuerst einen Druckernamen angeben." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: Festlegen der Druckeroptionen nicht möglich:\n" " Sie müssen zuerst einen Druckernamen angeben." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Unbekannte Erlaubnis/Ablehnungs-Option »%s«." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: unbekanntes Argument \"%s\"." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Unbekannte Option »%c«." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" "lpadmin: Benutzen sie das 'everywhere' Modell für freigegebene Drucker." msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Warnung - Inhaltstypliste ignoriert." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: Sprache nach \"--language\" erwartet." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: Erwartetes Fabrikat und Modell nach \"--make-and-model\"." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: Produkt-Zeichenkette nach \"--product\" erwartet." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: Zeitlimit nach \"--timeout\" erwartet." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: Verbindung zum Server nicht möglich: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Unbekanntes Argument »%s«." msgid "lpoptions: No printers." msgstr "lpoptions: Keine Drucker." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: Hinzufügen von Drucker oder Instanz nicht möglich: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: Keine PPD-Datei für %s verfügbar: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: Keine PPD-Datei für %s verfügbar." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Unbekannter Drucker oder Klasse." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: Fehler - %s Umgebungsvariable benennt nicht vorhandenes Ziel \"%s\"." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "Materialmenge" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "Einheiten" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "Gramm" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "Kilogramm" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "Liter" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "Meter" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "Milliliter" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "Millimeter" #. TRANSLATORS: Material Color msgid "material-color" msgstr "Materialfarbe" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "Materialdurchmesser" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "Material-Durchmessertoleranz" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "Material-Fülldichte" #. TRANSLATORS: Material Name msgid "material-name" msgstr "Materialname" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "Material-Düsendurchmesser" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "Materialverwendung für" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "Alles" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "Untergrund" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "Füllung" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "Unterstützt" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "Vorschubgeschwindigkeit" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "Einheiten der Vorschubgeschwindigkeit" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "Milligramm pro Sekunde" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "Milliliter pro Sekunde" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "Millimeter pro Sekunde" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "Materialrückführung" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "Materialtemperatur" #. TRANSLATORS: Material Type msgid "material-type" msgstr "Materialtyp" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "ABS" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "Kohlefaser-ABS" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "Kohlenstoff-Nanoröhren-ABS" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "Schokolade" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "material-type.Gold" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "Nylon" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "PET" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "Photopolymer" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "PLA" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "Leitfähiges PLA" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "Lösliches PLA" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "Flexibles PLA" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "Magnetisches PLA" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "Stahl PLA" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "Stein-PLA" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "Holz-PLA" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "PC" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "lösliches PLA" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "Silber" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "Titan" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "Wachs" #. TRANSLATORS: Materials msgid "materials-col" msgstr "Materialien" #. TRANSLATORS: Media msgid "media" msgstr "Medien" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "Beschichtung der Rückseite" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "Glänzend" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "Hochglänzend" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "Matt" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "Keine" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "Satin" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "Seidenglänzend" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "Medien" #. TRANSLATORS: Media Color msgid "media-color" msgstr "Medienfarbe" #. TRANSLATORS: Black msgid "media-color.black" msgstr "Schwarz" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "Blau" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "Braun" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "gelbbraun" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "klarschwarz" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "klarblau" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "klarbraun" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "klargelbbraun" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "klarcyan" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "klargold" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "Klar-Goldenrod" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "klargrau" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "klargrün" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "klarelfenbein" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "klarmagenta" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "klar mehrfarbig" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "klarsenf" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "klarorange" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "klarpink" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "klarrot" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "silber" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "klartürkis" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "klarviolet" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "klarweiß" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "klargelb" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "cyan" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "dunkelblau" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "dunkelbraun" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "dunkelgelbbraun" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "dunkelcyan" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "dunkelgold" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "dunkel-Goldenrod" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "dunkelgrau" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "dunkelgrün" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "dunkelelfenbein" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "dunkelmagenta" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "dunkelsenf" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "dunkelorange" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "dunkelpink" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "dunkelrot" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "dunkelsilber" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "dunkeltürkis" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "dunkelviolet" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "dunkelgelb" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "gold" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "media-color.goldrute" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "grau" #. TRANSLATORS: Green msgid "media-color.green" msgstr "grün" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "elfenbein" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "hellschwarz" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "hellblau" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "hellbraun" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "media-color.hell-gelbbraun" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "hellcyan" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "hellgold" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "hell-Goldenrod" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "hellgrau" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "hellgrün" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "hellelfenbein" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "hellmagenta" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "hellsenf" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "hellorange" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "hellpink" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "hellrot" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "hellsilber" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "helltürkis" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "hellviolet" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "hellgelb" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "magenta" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "mehrfarbig" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "senf" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "farblos" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "orange" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "pink" #. TRANSLATORS: Red msgid "media-color.red" msgstr "rot" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "silber" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "türkis" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "violett" #. TRANSLATORS: White msgid "media-color.white" msgstr "weiß" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "gelb" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "Beschichtung der Medien-Vorderseite" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "Medienkörnung" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "media-grain.x-Richtung" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "media-grain.y-Richtung" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "Medieninfo" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "linker Rand des Mediums" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "Vorbedruckte Medien" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "Blanko" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "Briefkopf" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "Vorbedruckt" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "Recyclat" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "Kein" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "Standard" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "Medien rechter Rand" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "Mediengröße" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "Medienname" #. TRANSLATORS: Media Source msgid "media-source" msgstr "Medienquelle" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "Alternativer Einzug" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "Alternative Rolle" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "automatisch" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "unten" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "Handeinzugsfach" #. TRANSLATORS: Center msgid "media-source.center" msgstr "mitte" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "Scheibe" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "Umschlag" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "Hagaki" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "Großvolumen" #. TRANSLATORS: Left msgid "media-source.left" msgstr "links" #. TRANSLATORS: Main msgid "media-source.main" msgstr "Haupteinzug" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "Hauptrolle" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "Manuell" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "mitte" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "foto" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "Rückseite" #. TRANSLATORS: Right msgid "media-source.right" msgstr "rechts" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "Rolle 1" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "Rolle 10" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "Rolle 2" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "Rolle 3" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "Rolle 4" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "Rolle 5" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "Rolle 6" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "Rolle 7" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "Rolle 8" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "Rolle 9" #. TRANSLATORS: Side msgid "media-source.side" msgstr "seitlich" #. TRANSLATORS: Top msgid "media-source.top" msgstr "oben" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "Fach 1" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "Fach 10" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "Fach 11" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "Fach 12" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "Fach 13" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "Fach 14" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "Fach 15" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "Fach 16" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "Fach 17" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "Fach 18" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "Fach 19" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "Fach 2" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "Fach 20" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "Fach 3" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "Fach 4" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "Fach 5" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "Fach 6" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "Fach 7" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "Fach 8" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "Fach 9" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "Medienstärke" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "Medientextur" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "Antik" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "Extra fein" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "media-tooth.grob" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "Fein" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "Linien" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "Mittel" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "Fein" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "Rauh" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "Pergament" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "Oberer Rand des Mediums" #. TRANSLATORS: Media Type msgid "media-type" msgstr "Medientyp" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "Aluminium" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "Automatisch" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "Karton" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "Postkarte" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "CD" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "Foto Spezial" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "Broschüren Glanzpapier" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "Broschüren Mattpapier" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "Umschlag Matt" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "EcoSMART Leichtpapier" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "gewöhnliches Glanzpapier" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "gewöhnliches Mattpapier" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "Extraschwer" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "Mittel" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "Mittelschweres Papier" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "Premium Inkjet Papier" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "Premium Fotopapier" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "Premium mattes Präsentationspapier" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "Endlos" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "Endlos Lang" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "Endlos Kurz" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "Geriffelter Karton" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "Optische Scheibe" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "Glänzend" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "Hochgänzend" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "Matt" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "Satin" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "Halbglänzend" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "trockender Film" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "DVD" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "Prägefolie" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "Umschlag" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "Umschlag archivfähig" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "Beschichteter Umschlag" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "Baumwollumschlag" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "Feiner Umschlag" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "schwerer Umschlag" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "Inkjet Umschlag" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "Leichter Umschlag" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "blanko Umschlag" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "vorbedruckter Umschlag" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "Fensterumschlag" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "Gewebe" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "Gewebe archivfähig" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "Glänzendes Gewebe" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "Hochglanzgewebe" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "Mattes Gewebe" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "Halbglänzendes Gewebe" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "Wasserfestes Gewebe" #. TRANSLATORS: Film msgid "media-type.film" msgstr "Film" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "Flexo-Fotopolymer" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "Folie" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "Glas" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "farbiges Glas" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "opakes Glas" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "Mit Glas überzogen" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "Texturiertes Glas" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "Gravurtrommel" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "Belichterpapier" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "Bildtrommel" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "Fotopapier Plus Glossy II" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "Fotopapier Pro Platinum" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "Fotopapier Plus Glossy I" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "Fotopapier Pro Platinum" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "Aufkleber" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "farbige Aufkleber" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "glänzende Aufkleber" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "hochglanz Aufkleber" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "Inkjet Aufkleber" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "Aufkleber matt" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "permanente Aufkleber" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "Satin Aufkleber" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "Sicherheitsaufkleber" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "Seidenmatte Aufkleber" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "Laminatfolie" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "Briefkopf" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "Metall" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "glänzendes Metall" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "Hochglanz Metall" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "Mattes Metall" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "Seidenglanz Metall" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "Halbglänzendes Metall" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "Befestigungsband" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "Mehrlagig" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "Andere" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "Papier" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "Fotopapier" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "Fotopapier archivfähig" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "Fotofilm" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "Fotopapier glänzend" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "Fotopapier hochglänzend" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "Fotopapier matt" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "Fotopapier satin" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "Foropapier halbglänzend" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "Kunststoff" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "Kunststoff archivfähig" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "Kunststoff gefärbt" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "Kunststoff glänzend" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "Kunststoff hochglanz" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "Kunststoff matt" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "Kunststoff satin" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "Kunststoff halbglänzend" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "PE" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "Rolle" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "Bildschirm" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "Selbstklebend" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "Selbstklebende Folie" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "Schrumpffolie" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "Normalpapier" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "Normalpapier archivfähig" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "beschichtetes Papier" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "Normalpapier Baumwolle" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "Pergamentpapier" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "schweres Papier" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "schweres, beschichtetes Normalpapier" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "Tintenstrahl-Normalpapier" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "Briefkopf" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "leichtes Papier" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "vorbedrucktes Papier" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "gelochtes Papier" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "Transparentfolie" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "Dreilagenpapier" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "Nassfilm" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "spezifisches Mediengewicht (g/m²)" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "20×40" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "A4 oder US Letter" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "2A0" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "A0" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "A0x3" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "A10" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "A1" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "A1x3" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "A1x4" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "A2" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "A2x3" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "A2x4" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "A2x5" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "A3 extra" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "A3" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "A3x3" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "A3x4" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "A3x5" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "A3x6" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "A3x7" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "A4 extra" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "A4 tag" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "A4" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "A4x3" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "A4x4" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "A4x5" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "A5x6" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "A4x7" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "A4x8" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "A4x9" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "A5 extra" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "A5" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "A6" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "A7" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "A8" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "A9" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "B0" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "B10" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "B1" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "B2" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "B3" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "B4" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "B5 extra" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "Umschlag B5" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "B6" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "Umschlag B6/C4" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "B7" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "B8" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "B9" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "Umschlag C0" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "Umschlag C10" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "Umschlag C1" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "Umschlag C2" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "Umschlag C3" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "Umschlag C4" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "Umschlag C5" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "Umschlag C6" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "Umschlag 6C5" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "Umschlag C7" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "Umschlag 7C6" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "Umschlag C8" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "Umschlag C9" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "Umschlag DL" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "ID-1" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "ID-3" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "ISO RA0" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "ISO RA1" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "ISO RA2" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "ISO RA3" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "ISO RA4" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "ISO SRA0" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "ISO SRA1" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "ISO SRA2" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "ISO SRA3" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "ISO SRA4" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "JIS B0" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "JIS B10" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "JIS B1" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "JIS B2" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "JIS B3" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "JIS B4" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "JIS B5" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "JIS B6" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "JIS B7" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "JIS B8" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "JIS B9" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "JIS Executive" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "Umschlag Chou 2" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "Umschlag Chou 3" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "Umschlag Chou 40" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "Umschlag Chou 4" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "Hagaki" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "Umschlag Kahu 240×322 mm" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "Umschlag Kahu 270×382 mm" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "Umschlag Kahu 240×332 mm" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "Umschlag Kahu 216×277 mm" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "Umschlag Kahu 197×297 mm" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "Umschlag Kahu 190×240 mm" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "Umschlag Kahu 142×205 mm" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "Umschlag Kahu 119×197 mm" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "Oufuku Postkarte" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "Umschlag You 4" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "10×11 inch" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "10×13 inch" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "10×14 inch" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "10×15 inch" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "10×12 inch" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "11×15 inch" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "12×19 inch" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "5×7 inch" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "6×9 inch" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "7×9 inch" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "9×11 inch" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "Umschlag A2" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "9×12 inch" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "12×18 inch" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "18×24 inch" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "24×36 inch" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "26×38 inch" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "27×39 inch" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "36×48 inch" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "Bplus 12×19 inch" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "C5 6,5×9,5 inch" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "17×22 inch" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "22×34 inch" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "34×44 inch" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "11×14 inch" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "12×14 inch" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "Executive 7,25×10,5 inch" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "44×68 inch" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "8,5×12 inch" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "11×14,875 inch" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "8,5×13 inch" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "8×13 inch" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "Letter 8×10 inch" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "Index 3×5 inch" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "Index 4×6,6×8 inch" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "Index 4×6 inch" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "Index 5×8 inch" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "Invoice 5,5×8,5 inch" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "Ledger 11×17 inch" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "Legal Extra 9,5×15 inch" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "Legal 8,5×14 inch" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "Letter Extra 9,5×12 inch" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "Letter Plus 8,5×12,69 inch" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "US Letter" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "Umschlag Monarch" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "Umschlag #10" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "Umschlag #11" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "Umschlag #12" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "Umschlag #14" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "Umschlag #9" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "8,5×13,4 inch" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "3,625×6,5 inch" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "Quadro" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "8,94×14 inch" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "13×19 inch" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "30×42 inch" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "12×16 inch" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "14×17 inch" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "18×22 inch" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "17×24 inch" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "Visitenkarte 2×3,5 inch" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "10×12 inch" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "20×24 inch" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "3,5×5 inch" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "10×15 inch" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "4×4 inch" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "5×5 inch" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260 mm" msgstr "184×260 mm" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270 mm" msgstr "195×270 mm" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "Visitenkarte 55×85 mm" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "Visitenkarte 55×91 mm" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "54×86 mm" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "275×395 mm" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "89×119 mm" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "Folio (215×315 mm)" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "Folio spezial (210×330 mm)" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "Umschlag Einladung (220×220 mm)" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "Umschlag italienisch (110×230 mm)" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "KuKai 198×275 mm" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "Foto 200×300 mm" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "Foto 130×180 mm" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "267×389 mm" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "114×229 mm" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "100×150 mm" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "89 mm quadratisch" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "100×200 mm" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "Umschlag CN, 324×458 mm" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "16k 146×215 mm" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "PRC 102×165 mm" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "PRC 102×176 mm" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "PRC 97×151 mm" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "PRC 125×176 mm" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "PRC 110×208 mm" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "PRC 110×220 mm" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "PRC 120×320 mm" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "PRC 160×230 mm" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "PRC 120×309 mm" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "ROC 7,75×10,75 inch" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "ROC 10,75×15,5 inch" #, c-format msgid "members of class %s:" msgstr "Mitglieder der Klasse %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "Behandlung mehrere Dokumente" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "gruppierte Kopien" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "ungruppierte Kopien" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "Dokument einzeln" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "Einzeldokument, neues Blatt" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "Handhabung mehrerer Objekte" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "Automatisch" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "beste Anpassung" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "höchste Qualität" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "schnellste Verarbeitung" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "Einzeln" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "Bei Zeitüberschreitung" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "Auftrag abbrechen" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "Auftrag anhalten" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "Auftrag verarbeiten" msgid "no entries" msgstr "keine Einträge" msgid "no system default destination" msgstr "keine systemvoreingestellten Ziele" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "Lärmreduziert" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "Benachrichtigungsattribute" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "Benachrichtigungszeichensatz" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "Benachrichtigungsereignisse" msgid "notify-events not specified." msgstr "Benachrichtigungsereignisse nicht angegeben." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "Dokument fertig" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "Dokumentkonfiguration geändert" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "Dokument erstellt" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "Dokument abholbereit" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "Dokumentenstatus geändert" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "Dokument angehalten" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "Auftrag abgeschlossen" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "Auftragskonfiguration geändert" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "Auftrag erstellt" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "Auftrag abholbar" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "Auftragsfortschritt" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "Auftragsstatus geändert" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "Auftrag angehalten" #. TRANSLATORS: None msgid "notify-events.none" msgstr "Keine" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "Druckerkonfiguration geändert" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "Endverarbeitung geändert" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "Druckmedien geändert" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "Reihenfolge der Warteschlange geändert" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "Drucker neu gestartet" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "Drucker heruntergefahren" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "Druckerstatus geändert" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "Drucker angehalten" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "Benachrichtigungsempfänger" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "notify-recipient-uri URI \"%s\" wird bereits benutzt." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "notify-recipient-uri URI \"%s\" benutzt unbekanntes Schema." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "Benachrichtigungszeitintervall" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "Anzahl der Wiederholungen" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "Drucke pro Seite" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "Objektversatz" #. TRANSLATORS: Object Size msgid "object-size" msgstr "Objektgröße" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "Name der Organisation" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "Ausrichtung" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "Hochformat" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "Querformat" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "umgekehrtes Querformat" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "umgekehrtes Hochformat" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "Keines" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "Ausgabeattribute" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "Ausgabefach" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "Automatisch" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "unten" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "mitte" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "Schriftseite nach unten" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "Schriftseite nach oben" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "Große Kapazität" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "links" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "Postfach 1" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "Postfach 10" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "Postfach 2" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "Postfach 3" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "Postfach 4" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "Postfach 5" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "Postfach 6" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "Postfach 7" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "Postfach 8" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "Postfach 9" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "mitte" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "Mein Postfach" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "hinten" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "rechts" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "seitlich" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "Ausgabefach 1" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "Ausgabefach 10" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "Ausgabefach 2" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "Ausgabefach 3" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "Ausgabefach 4" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "Ausgabefach 5" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "Ausgabefach 6" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "Ausgabefach 7" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "Ausgabefach 8" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "Ausgabefach 9" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "Oben" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "Fach 1" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "Fach 10" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "Fach 2" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "Fach 3" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "Fach 4" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "Fach 5" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "Fach 6" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "Fach 7" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "Fach 8" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "Fach 9" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "Bildqualität des Scans" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "Ausgabeorientierung" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "Umgekehrte Reihenfolge mit der Vorderseite nach unten" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "Umgekehrte Reihenfolge mit der Vorderseite nach oben" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "Gleiche Reihenfolge mit der Vorderseite nach unten" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "Gleiche Reihenfolge mit der Vorderseite nach oben" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "System angegeben" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "Seitenreihenfolge erhalten" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "1 zu N" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "N zu 1" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "Seitenbereiche" #. TRANSLATORS: Pages msgid "pages" msgstr "Seiten" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "Seiten pro Teilsatz" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "normal" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "gedreht" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "ausstehend" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "rund" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "Rechteck" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "Plattformtemperatur" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "" #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: UI-Text von %s wird hinzugefügt/aktualisiert." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: Falscher boolescher Wert (%s) in Zeile %d von %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: Ungültiges Schriftattribut: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: Falsches Statusschlüsselwort %s in Zeile %d von %s." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "" #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "" #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: Schreibe %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: Schreibe PPD-Dateien in Verzeichnis \"%s\"." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "" #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: PPD-Datei %s wird ignoriert." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "Druckgenauigkeit" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "Standard" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "Farbdruckmodus" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "Automatisch" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "automatisch monochrom" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "Text, 2-farbig" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "Farbe" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "Betont" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "Monochrom" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "Text, 2-farbig" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "Monochrom" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "Druckoptimierung" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "derzeitige Druckoptimierung" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "automatisch" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "Grafik" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "Grafiken" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "Foto" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "Text" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "Text und Grafik" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "Druckqualität" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "Entwurf" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "Normal" #. TRANSLATORS: High msgid "print-quality.5" msgstr "Hoch" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "Renderingziel" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "Absolut" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "Automatisch" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "Wahrnehmungsgemäß" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "Relativ" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "Relative Schwarzwert Kompensation" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "Sättigung" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "Druckskalierung" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "Automatisch" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "automatisch passend" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "Füllend" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "Passend" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "Keine" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "Drucker %s ist deaktiviert seit %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "Drucker %s hält Druckaufträge zurück. Aktiviert seit %s" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "Drucker %s ist im Leerlauf. Aktiviert seit %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "Drucker %s druckt jetzt %s-%d. Aktiviert seit %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "Drucker %s/%s deaktiviert seit %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "Drucker %s/%s ist im Leerlauf. Aktiviert seit %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "Drucker %s/%s druckt jetzt %s-%d. Aktiviert seit %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "Art des Druckers" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "Scheibe" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "Document" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "Umschlag" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "Aufkleber" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "Großformat" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "Foto" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "Postkarte" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "Quittung" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "Rolle" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "Nachricht vom Bediener" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "Druckauflösung" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "Druckerstatus" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "Detaillierter Druckerstatus" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "Alte Alarme wurden gelöscht" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "Banderolierer hinzugefügt" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "Banderolierer fast leer" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "Banderolierer fast voll" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "Banderolierer am Limit" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "Banderolierer geschlossen" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "Banderoliererkonfiguration geändert" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "Banderolierer voll" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "Banderolierer-Blockade" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "Banderolierer fast am Lebensdauerende" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "Banderolierer am Lebensdauerende" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "Banderolierer Speicher aufgebraucht" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "Banderolierer fehlt" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "Banderolierer Motorfehler" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "Banderolierer offline" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "Banderolierer geöffnet" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "Banderolierer überhitzt" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "Banderolierer entfernt" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "Banderolierer ausgeschaltet" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "Banderolierer eingeschaltet" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "Banderolierer zu kalt" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "Banderolierer nicht behebbarer Fehler" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "Banderolierer in Aufwärmphase" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "Konfigurationsänderung" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "Verbinde zum Gerät" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "Abdeckung offen" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "Deaktiviert" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "Stanze hinzugefügt" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "Stanzer fast leer" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "Stanzer fast voll" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "Stanzer an der Grenze" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "Stanzer aus" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "Stanzerkonfigurationsänderung" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "Stanzer-Abdeckung geschlossen" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "Stanzer-Abdeckung offen" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "Stanzer leer" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "Stanzer gestört" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "Lebensdauer des Stanzers fast vorüber" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "Lebensdauer des Stanzers vorüber" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "Stanzer nicht vorhanden" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "Motorfehler des Stanzers" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "Stanzer im Grenzbereich" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "Stanzer offline" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "Stanzer geöffnet" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "Temperaturüberschreitung am Stanzer" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "Stanzer im Stromsparmodus" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "Stanzer entfernt" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "thermistorfehler am Stanzer" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "Stanzer ausgeschaltet" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "Stanzer eingeschaltet" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "Stanzer in Aufwärmphase" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "Tür offen" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "Extruderkühlung" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "Extruderfehler" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "Extruder heizt" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "Extruder gestört" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "Extrudertemperatur hoch" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "Extrudertemperatur niedrig" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "Lüfterfehler" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "Modemlebensdauer fast erreicht" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "Modemlebensdauer erreicht" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "Modem nicht vorhanden" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "Modem ausgeschaltet" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "Modem eingeschaltet" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "Fixiertemperatur hoch" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "Fixiertemperatur niedrig" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "Neue Aufträge halten" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "Drucker identifizieren" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "Größe des Einzugsmediums geändert" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "Einzugsschacht fehlt" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "Sicherheitssperre geschlossen" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "Sicherheitssperre offen" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "Lampe am Lebensdauerende" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "Lampenfehler" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "Lampe fast am Lebensdauerende" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "Laser am Lebensdauerende" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "Laserfehler" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "Laser fast am Lebensdauerende" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "Tinte/Toner leer" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "Tinte/Toner niedrig" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "Material leer" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "Niedriger Materialstand" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "Material benötigt" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "Medientrocknung" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "Papierfach ist leer" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "Papierstau" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "Papierfach ist fast leer" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "Papier nachladen" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "Medienpfad kann keinen Duplexdruck" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "Fehler im Medienpfad" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "Medieneinzugspfad leer" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "Einzugsfehler" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "Einzugsstau im Medienpfad" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "Stau im Medienpfad" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "Ausgabepfad voll" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "Stau im Ausgabepfad" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "Motorstörung" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "Drucker geht offline" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "Lebensdauer des OPC überschritten" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "Lebensdauer des OPC fast zu Ende" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "Andere, bitte am Drucker prüfen" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "Ausgabefach ist fast voll" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "Ausgabefach ist voll" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "Fehler bei der Auswahl des Ausgangsfachs" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "Fehler im Ausgabefach" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "Fehler bei der Zufuhr des Ausgabemedienfachs" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "Papierstau im Ausgabefach" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "Ausgabefach fehlt" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "Pausiert" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "Perforierer hinzugefügt" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "Perforierer fast leer" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "Perforierer fast voll" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "Perforierer am Limit" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "Perforierer geschlossen" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "Perforiererabdeckung geschlossen" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "Perforiererabdeckung offen" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "Perforierer leer" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "Perforierer voll" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "Stau im Perforierer" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "Perforierer fehlt" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "Perforierer-Motorstörung" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "Perforierer geöffnet" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "Perforierer über Temperatur" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "Perforierer entfernt" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "Perforierer ausgeschaltet" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "Perforierer eingeschaltet" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "Perforierer unter Temperatur" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "Perforater Warming Up" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "Plattformkühlung" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "Plattformstörung" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "Plattformheizung" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "Plattformtemperatur hoch" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "Plattformtemperatur niedrig" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "Herunterfahren" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "Hochfahren" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "Drucker manuell zurücksetzen" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "Drucker aus der Ferne zurücksetzen" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "Drucker bereit zum Drucken" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "Locher hinzugefügt" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "Locher fast leer" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "Locher fast voll" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "Locher im Grenzbereich" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "Locher geschlossen" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "Konfiguration des Lochers geändert" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "Locherabdeckung geschlossen" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "Locherabdeckung offen" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "Locher leer" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "Locher voll" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "Stau im Locher" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "Lebensdauer des Lochers fast überschritten" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "Lebensdauer des Lochers überschritten" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "Locher fehlt" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "Locher-Motorstörung" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "Locher Offline" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "Locher geöffnet" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "Übertemperatur am Locher" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "Locher entfernt" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "Locher ausgeschaltet" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "Locher eingeschaltet" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "Locher unter Temperatur" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "Locher wärmt sich auf" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "Trennschneider hinzugefügt" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "Trennschneider fast leer" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "Trennschneider fast voll" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "Trennschneider geschlossen" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "Trennschneiderabdeckung geschlossen" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "Trennschneiderabdeckung offen" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "Trennschneider leer" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "Trennschneider voll" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "Stau im Trennschneider" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "Trennschneider fehlt" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "Trennschneider-Motorstörung" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "Trennschneider geöffnet" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "Trennschneider über Temperatur" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "Trennschneider entfernt" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "Trennschneider ausgeschaltet" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "Trennschneider eingeschaltet" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "Trennschneider unter Temperatur" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "Trennschneider wärmt sich auf" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "Herunterfahren" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "Schneidvorrichtung hinzugefügt" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "Schneidvorrichtung fast leer" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "Schneidvorrichtung fast voll" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "Schneidvorrichtung am Limit" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "Schneidvorrichtung geschlossen" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "Schneidvorrichtung leer" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "Schneidvorrichtung voll" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "Schneidvorrichtung blockiert" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "Schneidvorrichtung nahe am Lebensdauerende" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "Schneidvorrichtung am Lebensdauerende" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "Schneidvorrichtung geöffnet" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "Schneidvorrichtung überhitzt" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "Schneidvorrichtung im Energiesparmodus" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "Schneidvorrichtung entfernt" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "Spoolbereich voll" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "Teilweise angehalten" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "Wird angehalten" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "Untereinheit hinzugefügt" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "Untereinheit fast leer" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "Untereinheit fast voll" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "Untereinheit geschlossen" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "Untereinheit kühlt ab" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "Untereinheit leer" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "Untereinheit voll" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "Untereinheit fehlt" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "Untereinheit-Motorstörung" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "Untereinheit geöffnet" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "Untereinheit über Temperatur" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "Untereinheit entfernt" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "Untereinheit ausgeschaltet" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "Untereinheit eingeschaltet" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "Untereinheit unter Temperatur" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "Untereinheit wärmt sich auf" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "Drucker reagiert nicht mehr" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "Toner leer" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "Tonerstand niedrig" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "Unbekannt" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "Untätig" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "In Bearbeitung" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "Angehalten" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "Drucker-Betriebszeit" msgid "processing" msgstr "in Verarbeitung" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "Korrekturdruck" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "Anzahl Korrekturdrucke" #. TRANSLATORS: Punching msgid "punching" msgstr "Lochung" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "Lochpositionen" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "Lochversatz" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "Lochrand" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "unten" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "links" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "rechts" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "oben" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "Anfrage-ID ist %s-%d (%d Datei(en))" msgid "request-id uses indefinite length" msgstr "Anfrage-ID hat unbestimmte Länge" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "Angefragte Attribute" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "Intervall für Wiederholung" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "Zeitlimit für Wiederholung" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "Keine" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "Drucken und speichern" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "Nur speichern" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "Speicherformat" #. TRANSLATORS: Save Info msgid "save-info" msgstr "Speicherinformationen" #. TRANSLATORS: Save Location msgid "save-location" msgstr "Speicherort" #. TRANSLATORS: Save Name msgid "save-name" msgstr "Speichername" msgid "scheduler is not running" msgstr "Zeitplandienst läuft nicht" msgid "scheduler is running" msgstr "Zeitplandienst läuft" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "Trennblätter" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "Typ der Trennblätter" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "Anfangs- und Endblatt" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "Endblatt" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "Keines" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "Trennblatt" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "Anfangsblatt" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "Duplexdruck" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "Aus" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "Ein (Hochformat)" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "Duplex querformat" #, c-format msgid "stat of %s failed: %s" msgstr "Status von %s fehlgeschlagen: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tStatus von Dienst und Warteschlange anzeigen." #. TRANSLATORS: Status Message msgid "status-message" msgstr "Statusnachricht" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "Nahtwinkel" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "Nahtstellen" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "Nähmethode" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "Automatisch" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "Krimpen" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "Draht" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "Nahtversatz" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "Naht-Bezugskante" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "unten" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "links" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "rechts" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "oben" msgid "stopped" msgstr "angehalten" #. TRANSLATORS: Subject msgid "subject" msgstr "Thema" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "Datenschutz-Attribut für Abonnements" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "Alle" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "Standard" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "Keine" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "Subskriptionsbeschreibung" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "Subskriptionsvorlage" # Notizen: # Notiz hinzufügen # # Kommentarauszug: # TRANSLATORS: Subscription Privacy Scope # # # Pfade: #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "Datenschutz-Geltungsbereich" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "Alle" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "Voreinstellung" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "Keine" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "Eigentümer" #, c-format msgid "system default destination: %s" msgstr "systemvoreingestelltes Ziel: %s" #, c-format msgid "system default destination: %s/%s" msgstr "systemvoreingestelltes Ziel: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33-Subadresse" #. TRANSLATORS: To Name msgid "to-name" msgstr "An Name" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "Übertragungsstatus" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "ausstehend" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "Wiederholung ausstehend" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "in Bearbeitung" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "Abgebrochen" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "Abgebrochen" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "Fertig" #. TRANSLATORS: Cut msgid "trimming" msgstr "Schnitt" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "Schnittposition" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "Schnittkante" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "unten" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "links" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "rechts" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "oben" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "Schnittyp" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "Linie zeichnen" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "voll" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "teilweise" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "perforieren" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "Tabulator" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "Schnitt nach" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "Dokument" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "Auftrag" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "jedem Satz" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "jeder Seite" msgid "unknown" msgstr "Unbekannt" msgid "untitled" msgstr "Ohne Titel" msgid "variable-bindings uses indefinite length" msgstr "variable-bindings hat unbestimmte Länge" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "x-Genauigkeit" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "x-Dimension" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "x-Versatz" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "x-Ursprung" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "y-Genauigkeit" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "y-Dimension" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "y-Versatz" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "y-Ursprung" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "z-Genauigkeit" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "z-Dimension" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "z-Versatz" msgid "{service_domain} Domain name" msgstr "{service_domain} Domänenname" msgid "{service_hostname} Fully-qualified domain name" msgstr "{service_hostname} Voll qualifizierter Domänenname" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "{service_port} Portnummer" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "{service_scheme} URI-Schema" msgid "{service_uri} URI" msgstr "{service_uri} URI" msgid "{txt_*} Value of TXT record key" msgstr "{txt_*} Wert des TXT Datensatzschlüssels" msgid "{} URI" msgstr "{} URI" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" "~/.cups/lpoptions Die Datei nennt ein voreingestelltes Ziel das nicht " "existiert." #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "" #~ "Ein Samba-Passwort ist erforderlich, um Druckertreiber zu exportieren" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "Ein Samba-Benutzername ist erforderlich, um Druckertreiber zu exportieren" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Drucker zu Samba exportieren" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: Kann nicht direkt auf dem Port hören." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: Kann PPD Datei \"%s\" - %s nicht öffnen" cups-2.4.7/locale/cups_da.po0000644000175000017500000151032314502571342015603 0ustar zdohnalzdohnal# Danish translation for CUPS # # Message catalog template for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Notes for Translators: # # The "checkpo" program located in the "locale" source directory can be used # to verify that your translations do not introduce formatting errors or other # problems. Run with: # # cd locale # ./checkpo cups_LL.po # # where "LL" is your locale. # # scootergrisen, 2019. msgid "" msgstr "" "Project-Id-Version: CUPS 2.3.0\n" "Report-Msgid-Bugs-To: https://github.com/apple/cups/issues\n" "POT-Creation-Date: 2019-08-23 09:13-0400\n" "PO-Revision-Date: 2019-12-30 19:44+0200\n" "Last-Translator: scootergrisen\n" "Language-Team: Danish\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: systemv/lpstat.c:1871 systemv/lpstat.c:1990 msgid "\t\t(all)" msgstr "\t\t(alle)" #: systemv/lpstat.c:1874 systemv/lpstat.c:1877 systemv/lpstat.c:1993 #: systemv/lpstat.c:1996 msgid "\t\t(none)" msgstr "\t\t(ingen)" #: berkeley/lpc.c:416 #, c-format msgid "\t%d entries" msgstr "" #: systemv/lpstat.c:812 systemv/lpstat.c:828 #, c-format msgid "\t%s" msgstr "" #: systemv/lpstat.c:1852 systemv/lpstat.c:1971 msgid "\tAfter fault: continue" msgstr "" #: systemv/lpstat.c:1488 systemv/lpstat.c:1825 systemv/lpstat.c:1945 #, c-format msgid "\tAlerts: %s" msgstr "" #: systemv/lpstat.c:1875 systemv/lpstat.c:1994 msgid "\tBanner required" msgstr "" #: systemv/lpstat.c:1876 systemv/lpstat.c:1995 msgid "\tCharset sets:" msgstr "" #: systemv/lpstat.c:1844 systemv/lpstat.c:1963 msgid "\tConnection: direct" msgstr "" #: systemv/lpstat.c:1835 systemv/lpstat.c:1955 msgid "\tConnection: remote" msgstr "" #: systemv/lpstat.c:1801 systemv/lpstat.c:1921 msgid "\tContent types: any" msgstr "" #: systemv/lpstat.c:1879 systemv/lpstat.c:1998 msgid "\tDefault page size:" msgstr "" #: systemv/lpstat.c:1878 systemv/lpstat.c:1997 msgid "\tDefault pitch:" msgstr "" #: systemv/lpstat.c:1880 systemv/lpstat.c:1999 msgid "\tDefault port settings:" msgstr "" #: systemv/lpstat.c:1807 systemv/lpstat.c:1927 #, c-format msgid "\tDescription: %s" msgstr "" #: systemv/lpstat.c:1800 systemv/lpstat.c:1920 msgid "\tForm mounted:" msgstr "" #: systemv/lpstat.c:1873 systemv/lpstat.c:1992 msgid "\tForms allowed:" msgstr "" #: systemv/lpstat.c:1839 systemv/lpstat.c:1959 #, c-format msgid "\tInterface: %s.ppd" msgstr "" #: systemv/lpstat.c:1848 systemv/lpstat.c:1967 #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "" #: systemv/lpstat.c:1830 systemv/lpstat.c:1950 #, c-format msgid "\tLocation: %s" msgstr "" #: systemv/lpstat.c:1851 systemv/lpstat.c:1970 msgid "\tOn fault: no alert" msgstr "" #: systemv/lpstat.c:1802 systemv/lpstat.c:1922 msgid "\tPrinter types: unknown" msgstr "" #: systemv/lpstat.c:1471 #, c-format msgid "\tStatus: %s" msgstr "" #: systemv/lpstat.c:1856 systemv/lpstat.c:1870 systemv/lpstat.c:1975 #: systemv/lpstat.c:1989 msgid "\tUsers allowed:" msgstr "" #: systemv/lpstat.c:1863 systemv/lpstat.c:1982 msgid "\tUsers denied:" msgstr "" #: berkeley/lpc.c:418 msgid "\tdaemon present" msgstr "" #: berkeley/lpc.c:414 msgid "\tno entries" msgstr "" #: berkeley/lpc.c:386 berkeley/lpc.c:398 #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "" #: berkeley/lpc.c:411 msgid "\tprinting is disabled" msgstr "" #: berkeley/lpc.c:409 msgid "\tprinting is enabled" msgstr "" #: systemv/lpstat.c:1491 #, c-format msgid "\tqueued for %s" msgstr "" #: berkeley/lpc.c:406 msgid "\tqueuing is disabled" msgstr "" #: berkeley/lpc.c:404 msgid "\tqueuing is enabled" msgstr "" #: systemv/lpstat.c:1793 systemv/lpstat.c:1913 msgid "\treason unknown" msgstr "" #: systemv/cupstestppd.c:431 msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" #: systemv/cupstestppd.c:387 systemv/cupstestppd.c:392 msgid " REF: Page 15, section 3.1." msgstr "" #: systemv/cupstestppd.c:382 msgid " REF: Page 15, section 3.2." msgstr "" #: systemv/cupstestppd.c:402 msgid " REF: Page 19, section 3.3." msgstr "" #: systemv/cupstestppd.c:355 msgid " REF: Page 20, section 3.4." msgstr "" #: systemv/cupstestppd.c:407 msgid " REF: Page 27, section 3.5." msgstr "" #: systemv/cupstestppd.c:350 msgid " REF: Page 42, section 5.2." msgstr "" #: systemv/cupstestppd.c:397 msgid " REF: Pages 16-17, section 3.2." msgstr "" #: systemv/cupstestppd.c:367 msgid " REF: Pages 42-45, section 5.2." msgstr "" #: systemv/cupstestppd.c:361 msgid " REF: Pages 45-46, section 5.2." msgstr "" #: systemv/cupstestppd.c:372 msgid " REF: Pages 48-49, section 5.2." msgstr "" #: systemv/cupstestppd.c:377 msgid " REF: Pages 52-54, section 5.2." msgstr "" #: berkeley/lpq.c:533 #, c-format msgid " %-39.39s %.0f bytes" msgstr "" #: systemv/cupstestppd.c:566 #, c-format msgid " PASS Default%s" msgstr "" #: systemv/cupstestppd.c:501 msgid " PASS DefaultImageableArea" msgstr "" #: systemv/cupstestppd.c:535 msgid " PASS DefaultPaperDimension" msgstr "" #: systemv/cupstestppd.c:608 msgid " PASS FileVersion" msgstr "" #: systemv/cupstestppd.c:652 msgid " PASS FormatVersion" msgstr "" #: systemv/cupstestppd.c:672 msgid " PASS LanguageEncoding" msgstr "" #: systemv/cupstestppd.c:692 msgid " PASS LanguageVersion" msgstr "" #: systemv/cupstestppd.c:746 msgid " PASS Manufacturer" msgstr "" #: systemv/cupstestppd.c:786 msgid " PASS ModelName" msgstr "" #: systemv/cupstestppd.c:806 msgid " PASS NickName" msgstr "" #: systemv/cupstestppd.c:866 msgid " PASS PCFileName" msgstr "" #: systemv/cupstestppd.c:941 msgid " PASS PSVersion" msgstr "" #: systemv/cupstestppd.c:846 msgid " PASS PageRegion" msgstr "" #: systemv/cupstestppd.c:826 msgid " PASS PageSize" msgstr "" #: systemv/cupstestppd.c:901 msgid " PASS Product" msgstr "" #: systemv/cupstestppd.c:976 msgid " PASS ShortNickName" msgstr "" #: systemv/cupstestppd.c:1351 #, c-format msgid " WARN %s has no corresponding options." msgstr "" #: systemv/cupstestppd.c:1463 #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" #: systemv/cupstestppd.c:1322 #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:1721 msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" #: systemv/cupstestppd.c:1367 msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" #: systemv/cupstestppd.c:1703 #, c-format msgid " WARN Line %d only contains whitespace." msgstr "" #: systemv/cupstestppd.c:1375 msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" #: systemv/cupstestppd.c:1726 msgid " WARN Non-Windows PPD files should use lines ending with only LF, not CR LF." msgstr "" #: systemv/cupstestppd.c:1359 #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" #: systemv/cupstestppd.c:1390 msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:1398 msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:1433 msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" #: systemv/cupstestppd.c:1424 msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" #: systemv/cupstestppd.c:1407 msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:3788 #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" #: systemv/cupstestppd.c:2225 #, c-format msgid " %s %s %s does not exist." msgstr "" #: systemv/cupstestppd.c:3941 #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "" #: systemv/cupstestppd.c:2295 #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:3548 systemv/cupstestppd.c:3597 #: systemv/cupstestppd.c:3636 #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" #: systemv/cupstestppd.c:3502 #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" #: systemv/cupstestppd.c:2366 systemv/cupstestppd.c:2388 #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr "" #: systemv/cupstestppd.c:2484 systemv/cupstestppd.c:2506 #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr "" #: systemv/cupstestppd.c:3005 #, c-format msgid " %s Bad cupsICCProfile %s." msgstr "" #: systemv/cupstestppd.c:2612 #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr "" #: systemv/cupstestppd.c:1799 #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:3452 #, c-format msgid " %s Bad language \"%s\"." msgstr "" #: systemv/cupstestppd.c:2442 systemv/cupstestppd.c:2570 #: systemv/cupstestppd.c:2656 systemv/cupstestppd.c:2714 #: systemv/cupstestppd.c:2769 systemv/cupstestppd.c:2824 #: systemv/cupstestppd.c:2879 systemv/cupstestppd.c:2932 #: systemv/cupstestppd.c:3054 #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr "" #: systemv/cupstestppd.c:2350 systemv/cupstestppd.c:2468 #: systemv/cupstestppd.c:2596 systemv/cupstestppd.c:2683 #: systemv/cupstestppd.c:2738 systemv/cupstestppd.c:2793 #: systemv/cupstestppd.c:2848 systemv/cupstestppd.c:2903 #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr "" #: systemv/cupstestppd.c:2948 #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" #: systemv/cupstestppd.c:2182 #, c-format msgid " %s Default choices conflicting." msgstr "" #: systemv/cupstestppd.c:1780 #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr "" #: systemv/cupstestppd.c:3580 systemv/cupstestppd.c:3620 #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" #: systemv/cupstestppd.c:3488 #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr "" #: systemv/cupstestppd.c:2427 systemv/cupstestppd.c:2555 #: systemv/cupstestppd.c:2641 systemv/cupstestppd.c:2699 #: systemv/cupstestppd.c:2754 systemv/cupstestppd.c:2809 #: systemv/cupstestppd.c:2864 systemv/cupstestppd.c:2916 #: systemv/cupstestppd.c:3039 #, c-format msgid " %s Missing %s file \"%s\"." msgstr "" #: systemv/cupstestppd.c:3162 #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" #: systemv/cupstestppd.c:3147 #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" #: systemv/cupstestppd.c:1990 systemv/cupstestppd.c:2031 #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #: systemv/cupstestppd.c:1885 #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:1817 #, c-format msgid " %s Missing cupsUIResolver %s" msgstr "" #: systemv/cupstestppd.c:1976 systemv/cupstestppd.c:2017 #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #: systemv/cupstestppd.c:1869 #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:3674 #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr "" #: systemv/cupstestppd.c:2271 #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:3221 systemv/cupstestppd.c:3235 #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "" #: systemv/cupstestppd.c:3201 #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "" #: systemv/cupstestppd.c:3392 #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr "" #: systemv/cupstestppd.c:3341 #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" #: systemv/cupstestppd.c:3082 #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr "" #: systemv/cupstestppd.c:1940 #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr "" #: systemv/cupstestppd.c:1922 #, c-format msgid " %s cupsUIResolver %s does not list at least two different options." msgstr "" #: systemv/cupstestppd.c:1145 #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" #: systemv/cupstestppd.c:557 #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" #: systemv/cupstestppd.c:491 #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:527 #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:600 #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:644 #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:1002 msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" #: systemv/cupstestppd.c:1190 #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" #: systemv/cupstestppd.c:1204 #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" #: systemv/cupstestppd.c:720 systemv/cupstestppd.c:737 #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" #: systemv/cupstestppd.c:777 #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" #: systemv/cupstestppd.c:933 msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" #: systemv/cupstestppd.c:894 msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" #: systemv/cupstestppd.c:968 msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:1126 #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" #: systemv/cupstestppd.c:3815 systemv/cupstestppd.c:3837 #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" #: systemv/cupstestppd.c:1263 #, c-format msgid " **FAIL** Default translation string for option %s choice %s contains 8-bit characters." msgstr "" #: systemv/cupstestppd.c:1236 #, c-format msgid " **FAIL** Default translation string for option %s contains 8-bit characters." msgstr "" #: systemv/cupstestppd.c:2078 #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:2123 #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" #: systemv/cupstestppd.c:2140 #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:2100 #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:577 #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" #: systemv/cupstestppd.c:476 msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:512 msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:618 msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:662 msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:1053 #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:682 msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" #: systemv/cupstestppd.c:702 msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" #: systemv/cupstestppd.c:756 msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" #: systemv/cupstestppd.c:796 msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" #: systemv/cupstestppd.c:816 msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" #: systemv/cupstestppd.c:876 msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:951 msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" #: systemv/cupstestppd.c:856 msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" #: systemv/cupstestppd.c:1022 msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" #: systemv/cupstestppd.c:836 msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" #: systemv/cupstestppd.c:1075 #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:911 msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" #: systemv/cupstestppd.c:986 msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:311 systemv/cupstestppd.c:330 #: systemv/cupstestppd.c:342 #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" #: systemv/cupstestppd.c:1475 #, c-format msgid " %d ERRORS FOUND" msgstr "" #: systemv/cupstestppd.c:1477 msgid " NO ERRORS FOUND" msgstr "" #: ppdc/ppdc.cxx:444 msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Afslut linjer med CR (Mac OS 9)." #: ppdc/ppdc.cxx:446 msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Afslut linjer med CR + LF (Windows)." #: ppdc/ppdc.cxx:448 msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr " --lf Afslut linjer med LF (UNIX/Linux/macOS)." #: scheduler/cupsfilter.c:1477 msgid " --list-filters List filters that will be used." msgstr " --list-filters Vis filtre som skal bruges." #: scheduler/cupsfilter.c:1478 msgid " -D Remove the input file when finished." msgstr " -D Fjern inputfilen når færdig." #: ppdc/ppdc.cxx:427 ppdc/ppdhtml.cxx:174 ppdc/ppdpo.cxx:244 msgid " -D name=value Set named variable to value." msgstr " -D navn=værdi Indstil navngivet variabel til værdi." #: ppdc/ppdc.cxx:429 ppdc/ppdhtml.cxx:176 ppdc/ppdi.cxx:120 ppdc/ppdpo.cxx:246 msgid " -I include-dir Add include directory to search path." msgstr " -I include-mappe Tilføj include-mappe til søgesti." #: scheduler/cupsfilter.c:1479 msgid " -P filename.ppd Set PPD file." msgstr " -P filnavn.ppd Indstil PPD-fil." #: scheduler/cupsfilter.c:1480 msgid " -U username Specify username." msgstr " -U brugernavn Angiv brugernavn." #: ppdc/ppdc.cxx:431 msgid " -c catalog.po Load the specified message catalog." msgstr " -c katalog.po Indlæs det angivne meddelelseskatalog." #: scheduler/cupsfilter.c:1481 msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr " -c cups-files.conf Indstil cups-files.conf-fil som skal bruges." #: ppdc/ppdc.cxx:433 msgid " -d output-dir Specify the output directory." msgstr " -d outputmappe Angiv outputmappen." #: scheduler/cupsfilter.c:1482 msgid " -d printer Use the named printer." msgstr " -d printer Brug den angivne printer." #: scheduler/cupsfilter.c:1483 msgid " -e Use every filter from the PPD file." msgstr " -e Brug alle filtre fra PPD-filen." #: scheduler/cupsfilter.c:1484 msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i mime/type Indstil input-MIME-type (ellers findes typen " "automatisk)." #: scheduler/cupsfilter.c:1485 msgid " -j job-id[,N] Filter file N from the specified job (default is file 1)." msgstr "" " -j job-id[,N] Filtrér fil N fra det angivne job (standard er fil " "1)." #: ppdc/ppdc.cxx:435 msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr " -l sprog[,sprog,...] Angiv outputsprogene (lokalitet)." #: ppdc/ppdc.cxx:437 msgid " -m Use the ModelName value as the filename." msgstr " -m Brug ModelName-værdien som filnavnet." #: scheduler/cupsfilter.c:1486 msgid " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m mime/type Indstil output-MIME-type (ellers bruges " "application/pdf)." #: scheduler/cupsfilter.c:1487 msgid " -n copies Set number of copies." msgstr " -n kopier Indstil antal kopier." #: ppdc/ppdi.cxx:122 msgid " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o filnavn.drv Indstil driverinformationsfil (ellers bruges " "ppdi.drv)." #: ppdc/ppdmerge.cxx:357 msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr " -o filnavn.ppd[.gz] Indstil outputfil (ellers bruges stdout)." #: scheduler/cupsfilter.c:1488 msgid " -o name=value Set option(s)." msgstr " -o navn=værdi Indstil tilvalg." #: scheduler/cupsfilter.c:1489 msgid " -p filename.ppd Set PPD file." msgstr " -p filnavn.ppd Indstil PPD-fil." #: ppdc/ppdc.cxx:439 msgid " -t Test PPDs instead of generating them." msgstr " -t Test PPD'er i stedet for at oprette dem." #: scheduler/cupsfilter.c:1490 msgid " -t title Set title." msgstr " -t titel Indstil titel." #: scheduler/cupsfilter.c:1491 msgid " -u Remove the PPD file when finished." msgstr " -u Fjern PPD-filen når færdig." #: ppdc/ppdc.cxx:441 ppdc/ppdpo.cxx:248 msgid " -v Be verbose." msgstr " -v Vær uddybende." #: ppdc/ppdc.cxx:442 msgid " -z Compress PPD files using GNU zip." msgstr " -z Komprimer PPD-filer med GNU zip." #: systemv/cupstestppd.c:309 systemv/cupstestppd.c:328 #: systemv/cupstestppd.c:340 systemv/cupstestppd.c:473 #: systemv/cupstestppd.c:488 systemv/cupstestppd.c:509 #: systemv/cupstestppd.c:524 systemv/cupstestppd.c:554 #: systemv/cupstestppd.c:574 systemv/cupstestppd.c:597 #: systemv/cupstestppd.c:615 systemv/cupstestppd.c:641 #: systemv/cupstestppd.c:659 systemv/cupstestppd.c:679 #: systemv/cupstestppd.c:699 systemv/cupstestppd.c:717 #: systemv/cupstestppd.c:734 systemv/cupstestppd.c:753 #: systemv/cupstestppd.c:774 systemv/cupstestppd.c:793 #: systemv/cupstestppd.c:813 systemv/cupstestppd.c:833 #: systemv/cupstestppd.c:853 systemv/cupstestppd.c:873 #: systemv/cupstestppd.c:891 systemv/cupstestppd.c:908 #: systemv/cupstestppd.c:930 systemv/cupstestppd.c:948 #: systemv/cupstestppd.c:965 systemv/cupstestppd.c:983 #: systemv/cupstestppd.c:999 systemv/cupstestppd.c:1019 #: systemv/cupstestppd.c:1050 systemv/cupstestppd.c:1072 #: systemv/cupstestppd.c:1123 systemv/cupstestppd.c:1142 #: systemv/cupstestppd.c:1186 systemv/cupstestppd.c:1200 #: systemv/cupstestppd.c:1232 systemv/cupstestppd.c:1259 #: systemv/cupstestppd.c:1777 systemv/cupstestppd.c:1796 #: systemv/cupstestppd.c:1814 systemv/cupstestppd.c:1866 #: systemv/cupstestppd.c:1882 systemv/cupstestppd.c:1919 #: systemv/cupstestppd.c:1937 systemv/cupstestppd.c:1973 #: systemv/cupstestppd.c:1987 systemv/cupstestppd.c:2014 #: systemv/cupstestppd.c:2028 systemv/cupstestppd.c:2074 #: systemv/cupstestppd.c:2096 systemv/cupstestppd.c:2119 #: systemv/cupstestppd.c:2136 systemv/cupstestppd.c:2178 #: systemv/cupstestppd.c:2221 systemv/cupstestppd.c:2268 #: systemv/cupstestppd.c:2292 systemv/cupstestppd.c:2346 #: systemv/cupstestppd.c:2362 systemv/cupstestppd.c:2384 #: systemv/cupstestppd.c:2424 systemv/cupstestppd.c:2438 #: systemv/cupstestppd.c:2464 systemv/cupstestppd.c:2480 #: systemv/cupstestppd.c:2502 systemv/cupstestppd.c:2552 #: systemv/cupstestppd.c:2566 systemv/cupstestppd.c:2592 #: systemv/cupstestppd.c:2608 systemv/cupstestppd.c:2638 #: systemv/cupstestppd.c:2652 systemv/cupstestppd.c:2679 #: systemv/cupstestppd.c:2696 systemv/cupstestppd.c:2710 #: systemv/cupstestppd.c:2734 systemv/cupstestppd.c:2751 #: systemv/cupstestppd.c:2765 systemv/cupstestppd.c:2789 #: systemv/cupstestppd.c:2806 systemv/cupstestppd.c:2820 #: systemv/cupstestppd.c:2844 systemv/cupstestppd.c:2861 #: systemv/cupstestppd.c:2875 systemv/cupstestppd.c:2899 #: systemv/cupstestppd.c:2913 systemv/cupstestppd.c:2928 #: systemv/cupstestppd.c:2945 systemv/cupstestppd.c:3001 #: systemv/cupstestppd.c:3036 systemv/cupstestppd.c:3050 #: systemv/cupstestppd.c:3078 systemv/cupstestppd.c:3143 #: systemv/cupstestppd.c:3158 systemv/cupstestppd.c:3197 #: systemv/cupstestppd.c:3217 systemv/cupstestppd.c:3231 #: systemv/cupstestppd.c:3448 systemv/cupstestppd.c:3484 #: systemv/cupstestppd.c:3498 systemv/cupstestppd.c:3544 #: systemv/cupstestppd.c:3576 systemv/cupstestppd.c:3593 #: systemv/cupstestppd.c:3616 systemv/cupstestppd.c:3632 #: systemv/cupstestppd.c:3670 systemv/cupstestppd.c:3811 #: systemv/cupstestppd.c:3833 systemv/cupstestppd.c:3937 msgid " FAIL" msgstr "" #: systemv/cupstestppd.c:1283 msgid " PASS" msgstr "" #: tools/ippfind.c:2803 msgid "! expression Unary NOT of expression" msgstr "" #: cups/ipp.c:5045 #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #: cups/ipp.c:5051 #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #: cups/ipp.c:4753 #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:4747 #, c-format msgid "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:4768 #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #: cups/ipp.c:5096 #, c-format msgid "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #: cups/ipp.c:5102 #, c-format msgid "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #: cups/ipp.c:4845 #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4851 #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4839 #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4809 #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4833 #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4815 #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4821 #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4803 #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4827 #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4779 #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #: cups/ipp.c:5032 #, c-format msgid "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:5026 #, c-format msgid "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:5187 #, c-format msgid "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section 5.1.10)." msgstr "" #: cups/ipp.c:5194 #, c-format msgid "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section 5.1.10)." msgstr "" #: cups/ipp.c:5001 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #: cups/ipp.c:4996 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)." msgstr "" #: cups/ipp.c:5008 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #: cups/ipp.c:5142 #, c-format msgid "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section 5.1.9)." msgstr "" #: cups/ipp.c:5149 #, c-format msgid "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section 5.1.9)." msgstr "" #: cups/ipp.c:4790 #, c-format msgid "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #: cups/ipp.c:4885 #, c-format msgid "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 section 5.1.14)." msgstr "" #: cups/ipp.c:4874 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4862 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be positive (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4868 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4946 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #: cups/ipp.c:4941 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)." msgstr "" #: cups/ipp.c:4953 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #: cups/ipp.c:5072 #, c-format msgid "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #: cups/ipp.c:5078 #, c-format msgid "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" #: scheduler/ipp.c:365 msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" #: scheduler/ipp.c:371 scheduler/ipp.c:386 msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #: berkeley/lpq.c:538 #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "" #: cups/dest-localization.c:156 #, c-format msgid "%d x %d mm" msgstr "" #: cups/dest-localization.c:148 #, c-format msgid "%g x %g \"" msgstr "" #: cups/dest-localization.c:189 cups/dest-localization.c:196 #, c-format msgid "%s (%s)" msgstr "" #: cups/dest-localization.c:203 #, c-format msgid "%s (%s, %s)" msgstr "" #: cups/dest-localization.c:180 #, c-format msgid "%s (Borderless)" msgstr "" #: cups/dest-localization.c:187 cups/dest-localization.c:194 #, c-format msgid "%s (Borderless, %s)" msgstr "" #: cups/dest-localization.c:201 #, c-format msgid "%s (Borderless, %s, %s)" msgstr "" #: systemv/lpstat.c:806 #, c-format msgid "%s accepting requests since %s" msgstr "" #: scheduler/ipp.c:10327 #, c-format msgid "%s cannot be changed." msgstr "" #: berkeley/lpc.c:175 #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "" #: berkeley/lpq.c:623 #, c-format msgid "%s is not ready" msgstr "" #: berkeley/lpq.c:616 #, c-format msgid "%s is ready" msgstr "" #: berkeley/lpq.c:619 #, c-format msgid "%s is ready and printing" msgstr "" #: filter/rastertoepson.c:999 filter/rastertohp.c:668 #: filter/rastertolabel.c:1120 #, c-format msgid "%s job-id user title copies options [file]" msgstr "" #: systemv/lpstat.c:810 #, c-format msgid "%s not accepting requests since %s -" msgstr "" #: scheduler/ipp.c:608 #, c-format msgid "%s not supported." msgstr "" #: systemv/lpstat.c:821 #, c-format msgid "%s/%s accepting requests since %s" msgstr "" #: systemv/lpstat.c:826 #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "" #: berkeley/lpq.c:531 #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "" #. TRANSLATORS: Message is "subject: error" #: cups/langprintf.c:70 scheduler/cupsfilter.c:720 systemv/lpadmin.c:795 #: systemv/lpadmin.c:844 systemv/lpadmin.c:892 systemv/lpadmin.c:945 #: systemv/lpadmin.c:1043 systemv/lpadmin.c:1095 systemv/lpadmin.c:1136 #: systemv/lpadmin.c:1150 systemv/lpadmin.c:1599 #, c-format msgid "%s: %s" msgstr "" #: systemv/cancel.c:310 systemv/cancel.c:374 #, c-format msgid "%s: %s failed: %s" msgstr "" #: systemv/lpadmin.c:1209 #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #: tools/ippfind.c:768 tools/ipptool.c:412 #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "" #: systemv/cupsaccept.c:67 #, c-format msgid "%s: Don't know what to do." msgstr "" #: berkeley/lpr.c:354 systemv/lp.c:589 #, c-format msgid "%s: Error - %s" msgstr "" #: berkeley/lpq.c:233 #, c-format msgid "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" #: berkeley/lpq.c:138 berkeley/lpq.c:211 berkeley/lpr.c:234 berkeley/lpr.c:345 #: systemv/lp.c:160 systemv/lp.c:580 systemv/lp.c:677 systemv/lp.c:727 #: systemv/lpstat.c:190 systemv/lpstat.c:235 systemv/lpstat.c:368 #: systemv/lpstat.c:395 systemv/lpstat.c:417 systemv/lpstat.c:477 #: systemv/lpstat.c:543 systemv/lpstat.c:604 systemv/lpstat.c:727 #: systemv/lpstat.c:907 systemv/lpstat.c:1164 systemv/lpstat.c:1356 #: systemv/lpstat.c:1593 #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "" #: systemv/lp.c:237 #, c-format msgid "%s: Error - bad job ID." msgstr "" #: systemv/lp.c:226 #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" #: systemv/lp.c:517 #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" #: berkeley/lpr.c:259 systemv/lp.c:279 #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #: systemv/lp.c:469 #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "" #: systemv/lp.c:488 #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "" #: berkeley/lpr.c:250 #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "" #: systemv/lp.c:270 #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "" #: berkeley/lpr.c:212 #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "" #: systemv/lp.c:136 #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "" #: systemv/lp.c:177 #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "" #: systemv/lp.c:405 #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "" #: berkeley/lpr.c:109 #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "" #: berkeley/lpq.c:172 berkeley/lprm.c:130 systemv/cancel.c:130 #: systemv/cupsaccept.c:133 systemv/lp.c:197 systemv/lpstat.c:304 #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "" #: systemv/lp.c:385 #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "" #: berkeley/lpr.c:280 #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "" #: berkeley/lpr.c:161 systemv/lp.c:300 #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "" #: systemv/lp.c:448 #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "" #: systemv/lp.c:321 #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "" #: systemv/cupsaccept.c:152 #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "" #: systemv/lp.c:366 #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "" #: berkeley/lpq.c:101 berkeley/lpr.c:89 berkeley/lprm.c:110 #: systemv/cancel.c:100 systemv/cupsaccept.c:110 systemv/lp.c:113 #: systemv/lpadmin.c:439 systemv/lpstat.c:129 #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "" #: systemv/cancel.c:152 #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "" #: berkeley/lpr.c:134 #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "" #: systemv/lpstat.c:149 systemv/lpstat.c:158 #, c-format msgid "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" option." msgstr "" #: berkeley/lpq.c:238 #, c-format msgid "%s: Error - no default destination available." msgstr "" #: systemv/lp.c:341 #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "" #: berkeley/lpr.c:356 systemv/lp.c:591 #, c-format msgid "%s: Error - scheduler not responding." msgstr "" #: berkeley/lpr.c:321 systemv/lp.c:549 #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "" #: berkeley/lpr.c:303 systemv/lp.c:532 #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "" #: berkeley/lpr.c:398 systemv/lp.c:621 #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "" #: berkeley/lprm.c:92 berkeley/lprm.c:179 systemv/cancel.c:227 #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "" #: berkeley/lpq.c:140 #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "" #: berkeley/lpr.c:289 berkeley/lprm.c:145 systemv/cancel.c:168 #: systemv/cupsaccept.c:161 systemv/lp.c:507 systemv/lpstat.c:487 #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "" #: systemv/lp.c:499 #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "" #: systemv/lp.c:217 #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "" #: systemv/lpstat.c:547 systemv/lpstat.c:587 #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "" #: scheduler/cupsfilter.c:573 #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "" #: tools/ipptool.c:334 #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "" #: tools/ippfind.c:740 tools/ipptool.c:371 #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "" #: tools/ippfind.c:753 tools/ipptool.c:385 #, c-format msgid "%s: Missing version for \"-V\"." msgstr "" #: systemv/lp.c:425 #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" #: scheduler/cupsfilter.c:445 #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "" #: systemv/cupsaccept.c:195 #, c-format msgid "%s: Operation failed: %s" msgstr "" #: berkeley/lpq.c:86 berkeley/lpr.c:74 berkeley/lprm.c:71 systemv/cancel.c:85 #: systemv/cupsaccept.c:95 systemv/lp.c:98 systemv/lpadmin.c:249 #: systemv/lpinfo.c:192 systemv/lpmove.c:69 systemv/lpstat.c:91 #: tools/ipptool.c:316 tools/ipptool.c:360 #, c-format msgid "%s: Sorry, no encryption support." msgstr "" #: systemv/lpadmin.c:1216 #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #: berkeley/lpq.c:292 scheduler/cupsfilter.c:1269 systemv/cancel.c:250 #, c-format msgid "%s: Unable to connect to server." msgstr "" #: systemv/cancel.c:334 #, c-format msgid "%s: Unable to contact server." msgstr "" #: systemv/lpadmin.c:1246 #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #: scheduler/cupsfilter.c:410 #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "" #: tools/ipptool.c:277 tools/ipptool.c:343 #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "" #: ppdc/ppdmerge.cxx:86 #, c-format msgid "%s: Unable to open %s: %s" msgstr "" #: scheduler/cupsfilter.c:668 ppdc/ppdmerge.cxx:102 #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "" #: systemv/lpadmin.c:1231 #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #: scheduler/cupsfilter.c:377 #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" #: systemv/lpadmin.c:1200 #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #: systemv/lpinfo.c:238 #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #: berkeley/lpq.c:142 systemv/lpstat.c:608 #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "" #: scheduler/cupsfilter.c:422 #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "" #: scheduler/cupsfilter.c:1473 systemv/lpinfo.c:231 systemv/lpmove.c:94 #, c-format msgid "%s: Unknown option \"%c\"." msgstr "" #: tools/ippeveprinter.c:381 tools/ippeveprinter.c:566 tools/ippfind.c:627 #, c-format msgid "%s: Unknown option \"%s\"." msgstr "" #: tools/ippeveprinter.c:555 tools/ippfind.c:919 tools/ipptool.c:606 #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "" #: scheduler/cupsfilter.c:402 #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "" #: berkeley/lpr.c:147 #, c-format msgid "%s: Warning - \"%c\" format modifier not supported - output may not be correct." msgstr "" #: systemv/lp.c:474 #, c-format msgid "%s: Warning - character set option ignored." msgstr "" #: systemv/lp.c:493 #, c-format msgid "%s: Warning - content type option ignored." msgstr "" #: systemv/lp.c:182 #, c-format msgid "%s: Warning - form option ignored." msgstr "" #: systemv/lp.c:390 #, c-format msgid "%s: Warning - mode option ignored." msgstr "" #: tools/ippfind.c:2802 msgid "( expressions ) Group expressions" msgstr "( udtryk ) Gruppér udtryk" #: berkeley/lprm.c:233 msgid "- Cancel all jobs" msgstr "- Annuller alle jobs" #: berkeley/lpr.c:432 msgid "-# num-copies Specify the number of copies to print" msgstr "-# antal-kopier Angiv antallet af kopier som skal udskrives" #: systemv/cupsctl.c:236 msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "--[no-]debug-logging Fejlretningslogning til/fra" #: systemv/cupsctl.c:237 msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "--[no-]remote-admin Fjernadministration til/fra" #: systemv/cupsctl.c:238 msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "--[no-]remote-any Tillad/forhindr adgang fra internettet" #: systemv/cupsctl.c:239 msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "--[no-]share-printers Printerdeling til/fra" #: systemv/cupsctl.c:240 msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "--[no-]user-cancel-any Tillad/forhindr brugere i at annullere job" #: systemv/lpinfo.c:504 msgid "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" "--device-id enheds-id Vis modeller som matcher det angive IEEE 1284 " "enheds-ID" #: tools/ippfind.c:2785 msgid "--domain regex Match domain to regular expression" msgstr "--domain reg-udtryk Match domæne til regulært udtryk" #: systemv/lpinfo.c:505 msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" "--exclude-schemes skemaliste\n" " Udeluk de angivne URI-skemaer" #: tools/ippfind.c:2786 msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" "--exec redskab [argument ...] ;\n" " Kør program, hvis sand" #: tools/ippfind.c:2805 msgid "--false Always false" msgstr "--false Altid falsk" #: tools/ippeveprinter.c:7665 msgid "--help Show program help" msgstr "--help Vis hjælp til program" #: systemv/cupsaccept.c:249 msgid "--hold Hold new jobs" msgstr "--hold Tilbagehold nye jobs" #: tools/ippfind.c:2788 msgid "--host regex Match hostname to regular expression" msgstr "--host reg-udtryk Match værtsnavn til regulært udtryk" #: systemv/lpinfo.c:507 msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" "--include-schemes skemaliste\n" " Medtag kun de angive URI-skemaer" #: tools/ipptool.c:4308 msgid "--ippserver filename Produce ippserver attribute file" msgstr "--ippserver filnavn Generer ippserver-attributfil" #: systemv/lpinfo.c:509 msgid "--language locale Show models matching the given locale" msgstr "--language lokalitet Vis modeller som matcher den angivne lokalitet" #: tools/ippfind.c:2790 msgid "--local True if service is local" msgstr "--local Sand hvis tjeneste er lokal" #: tools/ippfind.c:2789 msgid "--ls List attributes" msgstr "--ls Vis attributter" #: systemv/lpinfo.c:510 msgid "--make-and-model name Show models matching the given make and model name" msgstr "" "--make-and-model navn Vis modeller som matcher det angivne mærke og " "modelnavn" #: tools/ippfind.c:2791 msgid "--name regex Match service name to regular expression" msgstr "--name reg-udtryk Match tjenestenavn til regulært udtryk" #: tools/ippeveprinter.c:7666 msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" "--no-web-forms Deaktivér webformularer for medier og forsyninger" #: tools/ippfind.c:2804 msgid "--not expression Unary NOT of expression" msgstr "--not udtryk Unær IKKE af udtryk" #: tools/ippfind.c:2792 msgid "--path regex Match resource path to regular expression" msgstr "--path reg-udtryk Match ressourcesti til regulært udtryk" #: tools/ippfind.c:2793 msgid "--port number[-number] Match port to number or range" msgstr "--port nummer[-nummer] Match port til nummer eller område" #: tools/ippfind.c:2794 msgid "--print Print URI if true" msgstr "--print Udskriv URI, hvis sand" #: tools/ippfind.c:2795 msgid "--print-name Print service name if true" msgstr "--print-name Udskriv tjenestenavn, hvis sand" #: systemv/lpinfo.c:511 msgid "--product name Show models matching the given PostScript product" msgstr "" "--product navn Vis modeller som matcher det angivne PostScript-" "produkt" #: tools/ippfind.c:2796 msgid "--quiet Quietly report match via exit code" msgstr "" "--quiet Stille rapportering af match via afslutningskode" #: systemv/cupsaccept.c:251 msgid "--release Release previously held jobs" msgstr "--release Frigiv tidligere tilbageholdte jobs" #: tools/ippfind.c:2797 msgid "--remote True if service is remote" msgstr "--remote Sand hvis fjerntjeneste" #: tools/ipptool.c:4309 msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" "--stop-after-include-error\n" " Stop tests efter et mislykket INCLUDE" #: systemv/lpinfo.c:512 msgid "--timeout seconds Specify the maximum number of seconds to discover devices" msgstr "" "--timeout sekunder Angiv maksimum antal sekunder til opdagelse af " "enheder" #: tools/ippfind.c:2806 msgid "--true Always true" msgstr "--true Altid sand" #: tools/ippfind.c:2798 msgid "--txt key True if the TXT record contains the key" msgstr "--txt nøgle Sand hvis TXT-registreringen indeholder nøglen" #: tools/ippfind.c:2799 msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" "--txt-* reg-udtryk Match TXT-registreringsnøgle til regulært udtryk" #: tools/ippfind.c:2800 msgid "--uri regex Match URI to regular expression" msgstr "--uri reg-udtryk Match URI til regulært udtryk" #: tools/ippeveprinter.c:7667 tools/ippfind.c:2770 msgid "--version Show program version" msgstr "--version Vis programversion" #: tools/ipptool.c:4311 msgid "--version Show version" msgstr "--version Vis version" #: ppdc/sample.c:305 msgid "-1" msgstr "" #: ppdc/sample.c:296 msgid "-10" msgstr "" #: ppdc/sample.c:388 msgid "-100" msgstr "" #: ppdc/sample.c:387 msgid "-105" msgstr "" #: ppdc/sample.c:295 msgid "-11" msgstr "" #: ppdc/sample.c:386 msgid "-110" msgstr "" #: ppdc/sample.c:385 msgid "-115" msgstr "" #: ppdc/sample.c:294 msgid "-12" msgstr "" #: ppdc/sample.c:384 msgid "-120" msgstr "" #: ppdc/sample.c:293 msgid "-13" msgstr "" #: ppdc/sample.c:292 msgid "-14" msgstr "" #: ppdc/sample.c:291 msgid "-15" msgstr "" #: ppdc/sample.c:304 msgid "-2" msgstr "" #: tools/ippeveprinter.c:7668 msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" "-2 Indstil understøttelse af dobbeltsidet udskrivning " "(standard=enkeltsidet)" #: ppdc/sample.c:404 msgid "-20" msgstr "" #: ppdc/sample.c:403 msgid "-25" msgstr "" #: ppdc/sample.c:303 msgid "-3" msgstr "" #: ppdc/sample.c:402 msgid "-30" msgstr "" #: ppdc/sample.c:401 msgid "-35" msgstr "" #: ppdc/sample.c:302 msgid "-4" msgstr "" #: tools/ippfind.c:2766 tools/ipptool.c:4312 msgid "-4 Connect using IPv4" msgstr "-4 Opret forbindelse med IPv4" #: ppdc/sample.c:400 msgid "-40" msgstr "" #: ppdc/sample.c:399 msgid "-45" msgstr "" #: ppdc/sample.c:301 msgid "-5" msgstr "" #: ppdc/sample.c:398 msgid "-50" msgstr "" #: ppdc/sample.c:397 msgid "-55" msgstr "" #: ppdc/sample.c:300 msgid "-6" msgstr "" #: tools/ippfind.c:2767 tools/ipptool.c:4313 msgid "-6 Connect using IPv6" msgstr "-6 Opret forbindelse med IPv6" #: ppdc/sample.c:396 msgid "-60" msgstr "" #: ppdc/sample.c:395 msgid "-65" msgstr "" #: ppdc/sample.c:299 msgid "-7" msgstr "" #: ppdc/sample.c:394 msgid "-70" msgstr "" #: ppdc/sample.c:393 msgid "-75" msgstr "" #: ppdc/sample.c:298 msgid "-8" msgstr "" #: ppdc/sample.c:392 msgid "-80" msgstr "" #: ppdc/sample.c:391 msgid "-85" msgstr "" #: ppdc/sample.c:297 msgid "-9" msgstr "" #: ppdc/sample.c:390 msgid "-90" msgstr "" #: ppdc/sample.c:389 msgid "-95" msgstr "" #: tools/ipptool.c:4314 msgid "-C Send requests using chunking (default)" msgstr "-C Send anmodninger med \"chunking\" (standard)" #: systemv/lpadmin.c:1623 msgid "-D description Specify the textual description of the printer" msgstr "-D beskrivelse Angiv beskrivelsen af printeren, som tekst" #: tools/ippeveprinter.c:7669 msgid "-D device-uri Set the device URI for the printer" msgstr "-D enheds-uri Indstil enheds-URI'en til printeren" #: systemv/lpadmin.c:1625 msgid "-E Enable and accept jobs on the printer (after -p)" msgstr "" "-E Aktivér og accepter jobs på printeren (efter -p)" #: berkeley/lpq.c:644 berkeley/lpr.c:433 berkeley/lprm.c:234 #: systemv/cancel.c:403 systemv/cupsaccept.c:244 systemv/cupsctl.c:233 #: systemv/lp.c:752 systemv/lpadmin.c:1624 systemv/lpinfo.c:498 #: systemv/lpmove.c:217 systemv/lpoptions.c:540 systemv/lpstat.c:2045 msgid "-E Encrypt the connection to the server" msgstr "-E Kryptér forbindelsen til serveren" #: tools/ipptool.c:4315 msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "-E Test med kryptering med HTTP Upgrade til TLS" #: scheduler/main.c:2136 msgid "-F Run in the foreground but detach from console." msgstr "-F Kør i forgrunden, men frakobl fra konsol." #: tools/ippeveprinter.c:7670 msgid "-F output-type/subtype Set the output format for the printer" msgstr "-F outputtype/undertype Indstil outputformatet til printeren" #: systemv/lpstat.c:2050 msgid "-H Show the default server and port" msgstr "-H Vis standardserver og -port" #: systemv/lp.c:754 msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "-H TT:MM Tilbagehold jobbet indtil den angivne UTC-tid" #: systemv/lp.c:755 msgid "-H hold Hold the job until released/resumed" msgstr "" "-H hold Tilbagehold jobbet indtil det frigives/genoptages" #: systemv/lp.c:756 msgid "-H immediate Print the job as soon as possible" msgstr "-H immediate Udskriv jobbet så snart det er muligt" #: systemv/lp.c:757 msgid "-H restart Reprint the job" msgstr "-H restart Udskriv jobbet igen" #: systemv/lp.c:758 msgid "-H resume Resume a held job" msgstr "-H resume Genoptag et tilbageholdt job" #: berkeley/lpr.c:434 msgid "-H server[:port] Connect to the named server and port" msgstr "" "-H server[:port] Opret forbindelse til den navngivne server og port" #: tools/ipptool.c:4316 msgid "-I Ignore errors" msgstr "-I Ignorer fejl" #: systemv/cupstestppd.c:3858 msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" "-I {filename,filters,none,profiles}\n" " Ignorer bestemte advarsler" #: tools/ippeveprinter.c:7672 msgid "-K keypath Set location of server X.509 certificates and keys." msgstr "" "-K nøglesti Indstil placeringen af serverens X.509-certifikater " "og -nøgler." #: tools/ipptool.c:4317 msgid "-L Send requests using content-length" msgstr "-L Send anmodninger med content-length" #: systemv/lpadmin.c:1628 msgid "-L location Specify the textual location of the printer" msgstr "-L placering Angiv placeringen af printeren, som tekst" #: tools/ippeveprinter.c:7674 msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "-M producent Indstil producentnavn (standard=Test)" #: berkeley/lpq.c:647 msgid "-P destination Show status for the specified destination" msgstr "-P destination Vis status for den angivne destination" #: berkeley/lpr.c:450 berkeley/lprm.c:236 msgid "-P destination Specify the destination" msgstr "-P destination Angiv destinationen" #: tools/ipptool.c:4318 msgid "-P filename.plist Produce XML plist to a file and test report to standard output" msgstr "" "-P filnavn.plist Generer XML-plist til en fil og test rapportering " "til standardoutput" #: tools/ippeveprinter.c:7675 msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "-P filnavn.ppd Indlæs printerattributter fra PPD-fil" #: tools/ippfind.c:2772 msgid "-P number[-number] Match port to number or range" msgstr "-P nummer[-nummer] Match port til nummer eller område" #: systemv/lp.c:774 msgid "-P page-list Specify a list of pages to print" msgstr "-P sideliste Angiv en liste over sider som skal udskrives" #: systemv/lpstat.c:2060 msgid "-R Show the ranking of jobs" msgstr "-R Vis rangeringen af jobs" #: systemv/lpadmin.c:1648 msgid "-R name-default Remove the default value for the named option" msgstr "-R navn-standard Fjern standardværdien for det navngivne tilvalg" #: systemv/cupstestppd.c:3860 msgid "-R root-directory Set alternate root" msgstr "-R rodmappe Indstil alternativ rod" #: tools/ipptool.c:4319 msgid "-S Test with encryption using HTTPS" msgstr "-S Test med kryptering med HTTPS" #: tools/ippfind.c:2768 msgid "-T seconds Set the browse timeout in seconds" msgstr "-T sekunder Indstil timeout for gennemse i sekunder" #: tools/ipptool.c:4320 msgid "-T seconds Set the receive/send timeout in seconds" msgstr "-T sekunder Indstil timeouten for modtag/send i sekunder" #: berkeley/lpr.c:451 msgid "-T title Specify the job title" msgstr "-T titel Angiv jobbets titel" #: berkeley/lpq.c:648 berkeley/lpr.c:452 berkeley/lprm.c:237 #: systemv/cancel.c:406 systemv/cupsaccept.c:247 systemv/lp.c:778 #: systemv/lpadmin.c:1652 systemv/lpinfo.c:502 systemv/lpmove.c:219 #: systemv/lpoptions.c:545 systemv/lpstat.c:2048 msgid "-U username Specify the username to use for authentication" msgstr "" "-U brugernavn Angiv brugernavnet som skal bruges til " "autentifikation" #: systemv/cupsctl.c:235 msgid "-U username Specify username to use for authentication" msgstr "" "-U brugernavn Angiv brugernavn som skal bruges til autentifikation" #: tools/ippeveprinter.c:7676 tools/ippfind.c:2769 tools/ipptool.c:4321 msgid "-V version Set default IPP version" msgstr "-V version Indstil standard-IPP-version" #: systemv/lpstat.c:2051 msgid "-W completed Show completed jobs" msgstr "-W completed Vis fuldførte jobs" #: systemv/lpstat.c:2052 msgid "-W not-completed Show pending jobs" msgstr "-W not-completed Vis afventende jobs" #: systemv/cupstestppd.c:3861 msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n" " Issue warnings instead of errors" msgstr "" "-W " "{all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n" " Udsted advarsler i stedet for fejl" #: tools/ipptool.c:4322 msgid "-X Produce XML plist instead of plain text" msgstr "-X Generer XML-plist i stedet for ren tekst" #: systemv/cancel.c:402 msgid "-a Cancel all jobs" msgstr "-a Annuller alle jobs" #: berkeley/lpq.c:643 msgid "-a Show jobs on all destinations" msgstr "-a Vis jobs på alle destinationer" #: systemv/lpstat.c:2053 msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "-a [destination(er)] Vis den accepterende tilstand for destinationer" #: tools/ippeveprinter.c:7677 msgid "-a filename.conf Load printer attributes from conf file" msgstr "-a filnavn.conf Indlæs printerattributter fra conf-fil" #: systemv/lp.c:751 msgid "-c Make a copy of the print file(s)" msgstr "-c Opret en kopi af udskrivningsfilerne" #: tools/ipptool.c:4323 msgid "-c Produce CSV output" msgstr "-c Generer CSV-output" #: systemv/lpstat.c:2054 msgid "-c [class(es)] Show classes and their member printers" msgstr "-c [klasse(r)] Vis klasser og deres medlemmers printere" #: systemv/lpadmin.c:1621 msgid "-c class Add the named destination to a class" msgstr "-c klasse Tilføj den navngivne destination til en klasse" #: tools/ippeveprinter.c:7678 msgid "-c command Set print command" msgstr "-c kommando Indstil udskrivningskommando" #: scheduler/main.c:2134 msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "-c cupsd.conf Indstil cupsd.conf-fil som skal bruges." #: systemv/lpstat.c:2055 msgid "-d Show the default destination" msgstr "-d Vis standarddestinationen" #: systemv/lpoptions.c:539 msgid "-d destination Set default destination" msgstr "-d destination Indstil standarddestination" #: systemv/lpadmin.c:1622 msgid "-d destination Set the named destination as the server default" msgstr "" "-d destination Indstil den navngivne destination som " "serverstandarden" #: tools/ipptool.c:4324 msgid "-d name=value Set named variable to value" msgstr "-d navn=værdi Indstil navngivet variabel til værdi" #: tools/ippfind.c:2773 msgid "-d regex Match domain to regular expression" msgstr "-d reg-udtryk Match domæne til regulært udtryk" #: tools/ippeveprinter.c:7679 msgid "-d spool-directory Set spool directory" msgstr "-d spool-mappe Indstil \"spool\"-mappe" #: systemv/lpstat.c:2056 msgid "-e Show available destinations on the network" msgstr "-e Vis tilgængelige destinationer på netværket" #: scheduler/main.c:2135 msgid "-f Run in the foreground." msgstr "-f Kør i forgrunden." #: tools/ipptool.c:4325 msgid "-f filename Set default request filename" msgstr "-f filnavn Indstil standardanmodningsfilnavn" #: tools/ippeveprinter.c:7680 msgid "-f type/subtype[,...] Set supported file types" msgstr "-f type/undertype[,...] Indstil understøttede filtyper" #: scheduler/main.c:2137 msgid "-h Show this usage message." msgstr "-h Vis denne anvendelsesmeddelelse." #: tools/ipptool.c:4326 msgid "-h Validate HTTP response headers" msgstr "-h Valider headere i HTTP-svar" #: tools/ippfind.c:2774 msgid "-h regex Match hostname to regular expression" msgstr "-h reg-udtryk Match værtsnavn til regulært udtryk" #: berkeley/lpq.c:645 berkeley/lprm.c:235 systemv/cancel.c:404 #: systemv/cupsaccept.c:245 systemv/cupsctl.c:234 systemv/lp.c:753 #: systemv/lpadmin.c:1626 systemv/lpinfo.c:499 systemv/lpmove.c:218 #: systemv/lpoptions.c:541 systemv/lpstat.c:2046 msgid "-h server[:port] Connect to the named server and port" msgstr "" "-h server[:port] Opret forbindelse til den navngivne server og port" #: tools/ippeveprinter.c:7681 msgid "-i iconfile.png Set icon file" msgstr "-i ikonfil.png Indstil ikonfil" #: systemv/lp.c:759 msgid "-i id Specify an existing job ID to modify" msgstr "-i id Angiv et eksisterende job-ID som skal redigeres" #: systemv/lpadmin.c:1627 msgid "-i ppd-file Specify a PPD file for the printer" msgstr "-i ppd-fil Angiv en PPD-fil til printeren" #: tools/ipptool.c:4327 msgid "-i seconds Repeat the last file with the given time interval" msgstr "" "-i sekunder Gentag den sidste fil med det angive tidsinterval" #: tools/ippeveprinter.c:7682 msgid "-k Keep job spool files" msgstr "-k Bevar jobbets \"spool\"-filer" #: tools/ippfind.c:2775 msgid "-l List attributes" msgstr "-l Vis attributter" #: tools/ipptool.c:4328 msgid "-l Produce plain text output" msgstr "-l Generer output i ren tekst" #: scheduler/main.c:2139 msgid "-l Run cupsd on demand." msgstr "-l Kør cupsd når der er brug for det." #: systemv/lpoptions.c:542 msgid "-l Show supported options and values" msgstr "-l Vis understøttede tilvalg og værdier" #: berkeley/lpq.c:646 systemv/lpinfo.c:500 systemv/lpstat.c:2047 msgid "-l Show verbose (long) output" msgstr "-l Vis uddybende (langt) output" #: tools/ippeveprinter.c:7683 msgid "-l location Set location of printer" msgstr "-l placering Indstil placeringen af printeren" #: berkeley/lpr.c:435 systemv/lp.c:760 msgid "-m Send an email notification when the job completes" msgstr "" "-m Send en e-mailunderretning når jobbet er fuldført" #: systemv/lpinfo.c:501 msgid "-m Show models" msgstr "-m Vis modeller" #: systemv/lpadmin.c:1630 msgid "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" "-m everywhere Angiv at printeren er kompatibel med IPP Everywhere" #: tools/ippeveprinter.c:7684 msgid "-m model Set model name (default=Printer)" msgstr "-m model Indstil modelnavn (standard=Printer)" #: systemv/lpadmin.c:1629 msgid "-m model Specify a standard model/PPD file for the printer" msgstr "-m model Angiv en standardmodel/-PPD-fil til printeren" #: tools/ipptool.c:4329 msgid "-n count Repeat the last file the given number of times" msgstr "-n antal Gentag den sidste fil det angivne antal gange" #: tools/ippeveprinter.c:7685 msgid "-n hostname Set hostname for printer" msgstr "-n værtsnavn Indstil værtsnavn til printeren" #: systemv/lp.c:761 msgid "-n num-copies Specify the number of copies to print" msgstr "-n antal-kopier Angiv antallet af kopier som skal udskrives" #: tools/ippfind.c:2776 msgid "-n regex Match service name to regular expression" msgstr "-n reg-udtryk Match tjenestenavn til regulært udtryk" #: systemv/lpadmin.c:1632 msgid "-o Name=Value Specify the default value for the named PPD option " msgstr "" "-o Navn=Værdi Angiv standardværdien til det navngivne PPD-tilvalg " #: systemv/lpstat.c:2057 msgid "-o [destination(s)] Show jobs" msgstr "-o [destination(er)] Vis jobs" #: systemv/lpadmin.c:1633 msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" "-o cupsIPPSupplies=false\n" " Deaktivér rapportering af forsyningsniveau via IPP" #: systemv/lpadmin.c:1635 msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" "-o cupsSNMPSupplies=false\n" " Deaktivér rapportering af forsyningsniveau via SNMP" #: systemv/lpadmin.c:1637 msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "-o job-k-limit=N Angiv kilobyte-grænsen for kvoter pr. bruger" #: systemv/lpadmin.c:1638 msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "-o job-page-limit=N Angiv sidegrænsen for kvoter pr. bruger" #: systemv/lpadmin.c:1639 msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "-o job-quota-period=N Angiv kvoteperioden pr. bruger, i sekunder" #: berkeley/lpr.c:437 systemv/lp.c:763 msgid "-o job-sheets=standard Print a banner page with the job" msgstr "-o job-sheets=standard Udskriv en bannerside med jobbet" #: berkeley/lpr.c:438 systemv/lp.c:764 msgid "-o media=size Specify the media size to use" msgstr "-o media=størrelse Angiv mediestørrelsen som skal bruges" #: systemv/lpadmin.c:1631 msgid "-o name-default=value Specify the default value for the named option" msgstr "-o name-default=værdi Angiv standardværdien til det navngivne tilvalg" #: systemv/lpoptions.c:543 msgid "-o name[=value] Set default option and value" msgstr "-o name[=værdi] Indstil standardtilvalg og -værdi" #: berkeley/lpr.c:439 systemv/lp.c:765 msgid "-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)" msgstr "" "-o number-up=N Angiv at inputsider skal udskrives N-op (1, 2, 4, 6, " "9 og 16 understøttes)" #: berkeley/lpr.c:436 systemv/lp.c:762 msgid "-o option[=value] Specify a printer-specific option" msgstr "-o option[=værdi] Angiv et printerspecifikt tilvalg" #: berkeley/lpr.c:440 systemv/lp.c:766 msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" "-o orientation-requested=N\n" " Angiv portræt- (3) eller landskabsorientering (4)" #: berkeley/lpr.c:442 systemv/lp.c:768 msgid "-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)" msgstr "" "-o print-quality=N Angiv udskriftskvaliteten - kladde (3), normal (4) " "eller bedste (5)" #: systemv/lpadmin.c:1640 msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" "-o printer-error-policy=navn\n" " Angiv reglerne for printerfejl" #: systemv/lpadmin.c:1642 msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" "-o printer-is-shared=true\n" " Del printeren" #: systemv/lpadmin.c:1644 msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" "-o printer-op-policy=navn\n" " Angiv reglerne for printerhandling" #: berkeley/lpr.c:443 systemv/lp.c:769 msgid "-o sides=one-sided Specify 1-sided printing" msgstr "-o sides=one-sided Angiv udskrivning som enkeltsidet" #: berkeley/lpr.c:444 systemv/lp.c:770 msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" "-o sides=two-sided-long-edge\n" " Angiv udskrivning som dobbeltsidet portræt" #: berkeley/lpr.c:446 systemv/lp.c:772 msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" "-o sides=two-sided-short-edge\n" " Angiv udskrivning som dobbeltsidet landskab" #: tools/ippfind.c:2777 msgid "-p Print URI if true" msgstr "-p Udskriv URI, hvis sand" #: systemv/lpstat.c:2058 msgid "-p [printer(s)] Show the processing state of destinations" msgstr "-p [printer(e)] Vis destinationernes bearbejdningstilstand" #: systemv/lpoptions.c:544 msgid "-p destination Specify a destination" msgstr "-p destination Angiv en destination" #: systemv/lpadmin.c:1646 msgid "-p destination Specify/add the named destination" msgstr "-p destination Angiv/tilføj den navngivne destination" #: tools/ippeveprinter.c:7686 msgid "-p port Set port number for printer" msgstr "-p port Indstil portnummer til printer" #: tools/ippfind.c:2778 msgid "-q Quietly report match via exit code" msgstr "" "-q Stille rapportering af match via afslutningskode" #: systemv/cupstestppd.c:3863 tools/ipptool.c:4330 msgid "-q Run silently" msgstr "-q Kør stille" #: berkeley/lpr.c:448 msgid "-q Specify the job should be held for printing" msgstr "" "-q Angiv at jobbet skal tilbageholdes til udskrivning" #: systemv/lp.c:775 msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "-q prioritet Angiv prioriteten fra lav (1) til høj (100)" #: berkeley/lpr.c:449 msgid "-r Remove the file(s) after submission" msgstr "-r Fjern filerne efter indsendelse" #: systemv/lpstat.c:2059 msgid "-r Show whether the CUPS server is running" msgstr "-r Vis om CUPS-serveren kører" #: tools/ippfind.c:2779 msgid "-r True if service is remote" msgstr "-r Sand hvis fjerntjeneste" #: systemv/cupstestppd.c:3864 msgid "-r Use 'relaxed' open mode" msgstr "-r Brug 'afslappet' åben tilstand" #: systemv/lpadmin.c:1647 msgid "-r class Remove the named destination from a class" msgstr "-r klasse Fjern den navngivne destination fra en klasse" #: systemv/cupsaccept.c:246 msgid "-r reason Specify a reason message that others can see" msgstr "-r årsag Angiv en årsagsmeddelelse som andre kan se" #: tools/ippeveprinter.c:7687 msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "-r undertype,[undertype] Indstil DNS-SD-tjenestens undertype" #: systemv/lp.c:776 msgid "-s Be silent" msgstr "-s Vær stille" #: tools/ippfind.c:2780 msgid "-s Print service name if true" msgstr "-s Udskriv tjenestenavn, hvis sand" #: systemv/lpstat.c:2061 msgid "-s Show a status summary" msgstr "-s Vis en statusopsummering" #: scheduler/main.c:2141 msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "-s cups-files.conf Indstil cups-files.conf-fil som skal bruges." #: tools/ippeveprinter.c:7688 msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "-s hastighed[,farve-hastighed] Indstil hastighed, i sider pr. minut" #: tools/ipptool.c:4331 msgid "-t Produce a test report" msgstr "-t Generer en testrapport" #: systemv/lpstat.c:2062 msgid "-t Show all status information" msgstr "-t Vis al statusinformation" #: scheduler/main.c:2142 msgid "-t Test the configuration file." msgstr "-t Test konfigurationsfilen." #: tools/ippfind.c:2781 msgid "-t key True if the TXT record contains the key" msgstr "-t nøgle Sand hvis TXT-registreringen indeholder nøglen" #: systemv/lp.c:777 msgid "-t title Specify the job title" msgstr "-t titel Angiv jobbets title" #: systemv/lpstat.c:2063 msgid "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" "-u [bruger(e)] Vis jobs som er sat i kø af den nuværende eller de " "angivne brugere" #: systemv/lpadmin.c:1649 msgid "-u allow:all Allow all users to print" msgstr "-u allow:all Tillad alle brugere at udskrive" #: systemv/lpadmin.c:1650 msgid "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" "-u allow:list Tillad brugere eller grupper i listen (\"@name\") at " "udskrive" #: systemv/lpadmin.c:1651 msgid "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" "-u deny:list Forhindr brugere eller grupper i listen (\"@name\") at " "udskrive" #: systemv/cancel.c:405 msgid "-u owner Specify the owner to use for jobs" msgstr "-u ejer Angiv ejeren som skal bruges til jobs" #: tools/ippfind.c:2782 msgid "-u regex Match URI to regular expression" msgstr "-u reg-udtryk Match URI til regulært udtryk" #: systemv/cupstestppd.c:3865 tools/ippeveprinter.c:7689 tools/ipptool.c:4332 msgid "-v Be verbose" msgstr "-v Vær uddybende" #: systemv/lpinfo.c:503 msgid "-v Show devices" msgstr "-v Vis enheder" #: systemv/lpstat.c:2064 msgid "-v [printer(s)] Show the devices for each destination" msgstr "-v [printer(e)] Vis enheder for hver destination" #: systemv/lpadmin.c:1653 msgid "-v device-uri Specify the device URI for the printer" msgstr "-v enheds-uri Angiv enheds-URI'en til printeren" #: systemv/cupstestppd.c:3866 msgid "-vv Be very verbose" msgstr "-vv Vær meget uddybende" #: systemv/cancel.c:407 msgid "-x Purge jobs rather than just canceling" msgstr "-x Tøm jobs fremfor blot at annullere" #: systemv/lpoptions.c:546 msgid "-x destination Remove default options for destination" msgstr "-x destination Fjern standardtilvalg for destination" #: systemv/lpadmin.c:1654 msgid "-x destination Remove the named destination" msgstr "-x destination Fjern den navngivne destination" #: tools/ippfind.c:2783 msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" "-x redskab [argument ...] ;\n" " Kør program, hvis sand" #: cups/dest.c:1868 msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" #: ppdc/sample.c:306 msgid "0" msgstr "" #: ppdc/sample.c:307 msgid "1" msgstr "" #: ppdc/sample.c:379 msgid "1 inch/sec." msgstr "" #: ppdc/sample.c:172 msgid "1.25x0.25\"" msgstr "" #: ppdc/sample.c:173 msgid "1.25x2.25\"" msgstr "" #: ppdc/sample.c:427 msgid "1.5 inch/sec." msgstr "" #: ppdc/sample.c:174 msgid "1.50x0.25\"" msgstr "" #: ppdc/sample.c:175 msgid "1.50x0.50\"" msgstr "" #: ppdc/sample.c:176 msgid "1.50x1.00\"" msgstr "" #: ppdc/sample.c:177 msgid "1.50x2.00\"" msgstr "" #: ppdc/sample.c:316 msgid "10" msgstr "" #: ppdc/sample.c:438 msgid "10 inches/sec." msgstr "" #: ppdc/sample.c:6 msgid "10 x 11" msgstr "" #: ppdc/sample.c:7 msgid "10 x 13" msgstr "" #: ppdc/sample.c:8 msgid "10 x 14" msgstr "" #: ppdc/sample.c:418 msgid "100" msgstr "" #: ppdc/sample.c:329 msgid "100 mm/sec." msgstr "" #: ppdc/sample.c:419 msgid "105" msgstr "" #: ppdc/sample.c:317 msgid "11" msgstr "" #: ppdc/sample.c:439 msgid "11 inches/sec." msgstr "" #: ppdc/sample.c:420 msgid "110" msgstr "" #: ppdc/sample.c:421 msgid "115" msgstr "" #: ppdc/sample.c:318 msgid "12" msgstr "" #: ppdc/sample.c:440 msgid "12 inches/sec." msgstr "" #: ppdc/sample.c:9 msgid "12 x 11" msgstr "" #: ppdc/sample.c:422 msgid "120" msgstr "" #: ppdc/sample.c:330 msgid "120 mm/sec." msgstr "" #: ppdc/sample.c:243 msgid "120x60dpi" msgstr "" #: ppdc/sample.c:249 msgid "120x72dpi" msgstr "" #: ppdc/sample.c:319 msgid "13" msgstr "" #: ppdc/sample.c:232 msgid "136dpi" msgstr "" #: ppdc/sample.c:320 msgid "14" msgstr "" #: ppdc/sample.c:321 msgid "15" msgstr "" #: ppdc/sample.c:323 msgid "15 mm/sec." msgstr "" #: ppdc/sample.c:10 msgid "15 x 11" msgstr "" #: ppdc/sample.c:331 msgid "150 mm/sec." msgstr "" #: ppdc/sample.c:278 msgid "150dpi" msgstr "" #: ppdc/sample.c:363 msgid "16" msgstr "" #: ppdc/sample.c:364 msgid "17" msgstr "" #: ppdc/sample.c:365 msgid "18" msgstr "" #: ppdc/sample.c:244 msgid "180dpi" msgstr "" #: ppdc/sample.c:366 msgid "19" msgstr "" #: ppdc/sample.c:308 msgid "2" msgstr "" #: ppdc/sample.c:380 msgid "2 inches/sec." msgstr "" #: cups/ppd-cache.c:3872 ppdc/sample.c:262 msgid "2-Sided Printing" msgstr "" #: ppdc/sample.c:178 msgid "2.00x0.37\"" msgstr "" #: ppdc/sample.c:179 msgid "2.00x0.50\"" msgstr "" #: ppdc/sample.c:180 msgid "2.00x1.00\"" msgstr "" #: ppdc/sample.c:181 msgid "2.00x1.25\"" msgstr "" #: ppdc/sample.c:182 msgid "2.00x2.00\"" msgstr "" #: ppdc/sample.c:183 msgid "2.00x3.00\"" msgstr "" #: ppdc/sample.c:184 msgid "2.00x4.00\"" msgstr "" #: ppdc/sample.c:185 msgid "2.00x5.50\"" msgstr "" #: ppdc/sample.c:186 msgid "2.25x0.50\"" msgstr "" #: ppdc/sample.c:187 msgid "2.25x1.25\"" msgstr "" #: ppdc/sample.c:188 msgid "2.25x4.00\"" msgstr "" #: ppdc/sample.c:189 msgid "2.25x5.50\"" msgstr "" #: ppdc/sample.c:190 msgid "2.38x5.50\"" msgstr "" #: ppdc/sample.c:428 msgid "2.5 inches/sec." msgstr "" #: ppdc/sample.c:191 msgid "2.50x1.00\"" msgstr "" #: ppdc/sample.c:192 msgid "2.50x2.00\"" msgstr "" #: ppdc/sample.c:193 msgid "2.75x1.25\"" msgstr "" #: ppdc/sample.c:194 msgid "2.9 x 1\"" msgstr "" #: ppdc/sample.c:367 msgid "20" msgstr "" #: ppdc/sample.c:324 msgid "20 mm/sec." msgstr "" #: ppdc/sample.c:332 msgid "200 mm/sec." msgstr "" #: ppdc/sample.c:233 msgid "203dpi" msgstr "" #: ppdc/sample.c:368 msgid "21" msgstr "" #: ppdc/sample.c:369 msgid "22" msgstr "" #: ppdc/sample.c:370 msgid "23" msgstr "" #: ppdc/sample.c:371 msgid "24" msgstr "" #: ppdc/sample.c:241 msgid "24-Pin Series" msgstr "" #: ppdc/sample.c:250 msgid "240x72dpi" msgstr "" #: ppdc/sample.c:372 msgid "25" msgstr "" #: ppdc/sample.c:333 msgid "250 mm/sec." msgstr "" #: ppdc/sample.c:373 msgid "26" msgstr "" #: ppdc/sample.c:374 msgid "27" msgstr "" #: ppdc/sample.c:375 msgid "28" msgstr "" #: ppdc/sample.c:376 msgid "29" msgstr "" #: ppdc/sample.c:309 msgid "3" msgstr "" #: ppdc/sample.c:381 msgid "3 inches/sec." msgstr "" #: ppdc/sample.c:3 msgid "3 x 5" msgstr "" #: ppdc/sample.c:195 msgid "3.00x1.00\"" msgstr "" #: ppdc/sample.c:196 msgid "3.00x1.25\"" msgstr "" #: ppdc/sample.c:197 msgid "3.00x2.00\"" msgstr "" #: ppdc/sample.c:198 msgid "3.00x3.00\"" msgstr "" #: ppdc/sample.c:199 msgid "3.00x5.00\"" msgstr "" #: ppdc/sample.c:200 msgid "3.25x2.00\"" msgstr "" #: ppdc/sample.c:201 msgid "3.25x5.00\"" msgstr "" #: ppdc/sample.c:202 msgid "3.25x5.50\"" msgstr "" #: ppdc/sample.c:203 msgid "3.25x5.83\"" msgstr "" #: ppdc/sample.c:204 msgid "3.25x7.83\"" msgstr "" #: ppdc/sample.c:4 msgid "3.5 x 5" msgstr "" #: ppdc/sample.c:171 msgid "3.5\" Disk" msgstr "" #: ppdc/sample.c:205 msgid "3.50x1.00\"" msgstr "" #: ppdc/sample.c:377 msgid "30" msgstr "" #: ppdc/sample.c:325 msgid "30 mm/sec." msgstr "" #: ppdc/sample.c:334 msgid "300 mm/sec." msgstr "" #: ppdc/sample.c:234 msgid "300dpi" msgstr "" #: ppdc/sample.c:405 msgid "35" msgstr "" #: ppdc/sample.c:246 msgid "360dpi" msgstr "" #: ppdc/sample.c:245 msgid "360x180dpi" msgstr "" #: ppdc/sample.c:310 msgid "4" msgstr "" #: ppdc/sample.c:382 msgid "4 inches/sec." msgstr "" #: ppdc/sample.c:206 msgid "4.00x1.00\"" msgstr "" #: ppdc/sample.c:214 msgid "4.00x13.00\"" msgstr "" #: ppdc/sample.c:207 msgid "4.00x2.00\"" msgstr "" #: ppdc/sample.c:208 msgid "4.00x2.50\"" msgstr "" #: ppdc/sample.c:209 msgid "4.00x3.00\"" msgstr "" #: ppdc/sample.c:210 msgid "4.00x4.00\"" msgstr "" #: ppdc/sample.c:211 msgid "4.00x5.00\"" msgstr "" #: ppdc/sample.c:212 msgid "4.00x6.00\"" msgstr "" #: ppdc/sample.c:213 msgid "4.00x6.50\"" msgstr "" #: ppdc/sample.c:406 msgid "40" msgstr "" #: ppdc/sample.c:326 msgid "40 mm/sec." msgstr "" #: ppdc/sample.c:407 msgid "45" msgstr "" #: ppdc/sample.c:311 msgid "5" msgstr "" #: ppdc/sample.c:432 msgid "5 inches/sec." msgstr "" #: ppdc/sample.c:5 msgid "5 x 7" msgstr "" #: ppdc/sample.c:408 msgid "50" msgstr "" #: ppdc/sample.c:409 msgid "55" msgstr "" #: ppdc/sample.c:312 msgid "6" msgstr "" #: ppdc/sample.c:433 msgid "6 inches/sec." msgstr "" #: ppdc/sample.c:215 msgid "6.00x1.00\"" msgstr "" #: ppdc/sample.c:216 msgid "6.00x2.00\"" msgstr "" #: ppdc/sample.c:217 msgid "6.00x3.00\"" msgstr "" #: ppdc/sample.c:218 msgid "6.00x4.00\"" msgstr "" #: ppdc/sample.c:219 msgid "6.00x5.00\"" msgstr "" #: ppdc/sample.c:220 msgid "6.00x6.00\"" msgstr "" #: ppdc/sample.c:221 msgid "6.00x6.50\"" msgstr "" #: ppdc/sample.c:410 msgid "60" msgstr "" #: ppdc/sample.c:327 msgid "60 mm/sec." msgstr "" #: ppdc/sample.c:253 msgid "600dpi" msgstr "" #: ppdc/sample.c:242 msgid "60dpi" msgstr "" #: ppdc/sample.c:248 msgid "60x72dpi" msgstr "" #: ppdc/sample.c:411 msgid "65" msgstr "" #: ppdc/sample.c:313 msgid "7" msgstr "" #: ppdc/sample.c:435 msgid "7 inches/sec." msgstr "" #: ppdc/sample.c:11 msgid "7 x 9" msgstr "" #: ppdc/sample.c:412 msgid "70" msgstr "" #: ppdc/sample.c:413 msgid "75" msgstr "" #: ppdc/sample.c:314 msgid "8" msgstr "" #: ppdc/sample.c:436 msgid "8 inches/sec." msgstr "" #: ppdc/sample.c:12 msgid "8 x 10" msgstr "" #: ppdc/sample.c:222 msgid "8.00x1.00\"" msgstr "" #: ppdc/sample.c:223 msgid "8.00x2.00\"" msgstr "" #: ppdc/sample.c:224 msgid "8.00x3.00\"" msgstr "" #: ppdc/sample.c:225 msgid "8.00x4.00\"" msgstr "" #: ppdc/sample.c:226 msgid "8.00x5.00\"" msgstr "" #: ppdc/sample.c:227 msgid "8.00x6.00\"" msgstr "" #: ppdc/sample.c:228 msgid "8.00x6.50\"" msgstr "" #: ppdc/sample.c:414 msgid "80" msgstr "" #: ppdc/sample.c:328 msgid "80 mm/sec." msgstr "" #: ppdc/sample.c:415 msgid "85" msgstr "" #: ppdc/sample.c:315 msgid "9" msgstr "" #: ppdc/sample.c:437 msgid "9 inches/sec." msgstr "" #: ppdc/sample.c:13 msgid "9 x 11" msgstr "" #: ppdc/sample.c:14 msgid "9 x 12" msgstr "" #: ppdc/sample.c:247 msgid "9-Pin Series" msgstr "" #: ppdc/sample.c:416 msgid "90" msgstr "" #: ppdc/sample.c:417 msgid "95" msgstr "" #: berkeley/lpc.c:199 msgid "?Invalid help command unknown." msgstr "" #: scheduler/ipp.c:2283 #, c-format msgid "A class named \"%s\" already exists." msgstr "" #: scheduler/ipp.c:890 #, c-format msgid "A printer named \"%s\" already exists." msgstr "" #: ppdc/sample.c:15 msgid "A0" msgstr "" #: ppdc/sample.c:16 msgid "A0 Long Edge" msgstr "" #: ppdc/sample.c:17 msgid "A1" msgstr "" #: ppdc/sample.c:18 msgid "A1 Long Edge" msgstr "" #: ppdc/sample.c:37 msgid "A10" msgstr "" #: ppdc/sample.c:19 msgid "A2" msgstr "" #: ppdc/sample.c:20 msgid "A2 Long Edge" msgstr "" #: ppdc/sample.c:21 msgid "A3" msgstr "" #: ppdc/sample.c:22 msgid "A3 Long Edge" msgstr "" #: ppdc/sample.c:23 msgid "A3 Oversize" msgstr "" #: ppdc/sample.c:24 msgid "A3 Oversize Long Edge" msgstr "" #: ppdc/sample.c:25 msgid "A4" msgstr "" #: ppdc/sample.c:27 msgid "A4 Long Edge" msgstr "" #: ppdc/sample.c:26 msgid "A4 Oversize" msgstr "" #: ppdc/sample.c:28 msgid "A4 Small" msgstr "" #: ppdc/sample.c:29 msgid "A5" msgstr "" #: ppdc/sample.c:31 msgid "A5 Long Edge" msgstr "" #: ppdc/sample.c:30 msgid "A5 Oversize" msgstr "" #: ppdc/sample.c:32 msgid "A6" msgstr "" #: ppdc/sample.c:33 msgid "A6 Long Edge" msgstr "" #: ppdc/sample.c:34 msgid "A7" msgstr "" #: ppdc/sample.c:35 msgid "A8" msgstr "" #: ppdc/sample.c:36 msgid "A9" msgstr "" #: ppdc/sample.c:38 msgid "ANSI A" msgstr "" #: ppdc/sample.c:39 msgid "ANSI B" msgstr "" #: ppdc/sample.c:40 msgid "ANSI C" msgstr "" #: ppdc/sample.c:41 msgid "ANSI D" msgstr "" #: ppdc/sample.c:42 msgid "ANSI E" msgstr "" #: ppdc/sample.c:47 msgid "ARCH C" msgstr "" #: ppdc/sample.c:48 msgid "ARCH C Long Edge" msgstr "" #: ppdc/sample.c:49 msgid "ARCH D" msgstr "" #: ppdc/sample.c:50 msgid "ARCH D Long Edge" msgstr "" #: ppdc/sample.c:51 msgid "ARCH E" msgstr "" #: ppdc/sample.c:52 msgid "ARCH E Long Edge" msgstr "" #: cgi-bin/classes.c:155 cgi-bin/printers.c:158 msgid "Accept Jobs" msgstr "" #: cups/http-support.c:1494 msgid "Accepted" msgstr "" #: cgi-bin/admin.c:336 msgid "Add Class" msgstr "" #: cgi-bin/admin.c:649 msgid "Add Printer" msgstr "" #: ppdc/sample.c:163 msgid "Address" msgstr "" #: cgi-bin/admin.c:172 cgi-bin/admin.c:246 cgi-bin/admin.c:2249 msgid "Administration" msgstr "" #: ppdc/sample.c:424 msgid "Always" msgstr "" #: backend/socket.c:113 msgid "AppSocket/HP JetDirect" msgstr "" #: ppdc/sample.c:445 msgid "Applicator" msgstr "" #: scheduler/ipp.c:987 #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" #: scheduler/ipp.c:5422 scheduler/ipp.c:5448 #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #: scheduler/ipp.c:5424 scheduler/ipp.c:5450 #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #: scheduler/ipp.c:227 #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "" #: ppdc/sample.c:126 msgid "B0" msgstr "" #: ppdc/sample.c:127 msgid "B1" msgstr "" #: ppdc/sample.c:137 msgid "B10" msgstr "" #: ppdc/sample.c:128 msgid "B2" msgstr "" #: ppdc/sample.c:129 msgid "B3" msgstr "" #: ppdc/sample.c:130 msgid "B4" msgstr "" #: ppdc/sample.c:131 msgid "B5" msgstr "" #: ppdc/sample.c:132 msgid "B5 Oversize" msgstr "" #: ppdc/sample.c:133 msgid "B6" msgstr "" #: ppdc/sample.c:134 msgid "B7" msgstr "" #: ppdc/sample.c:135 msgid "B8" msgstr "" #: ppdc/sample.c:136 msgid "B9" msgstr "" #: scheduler/ipp.c:7504 #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #: scheduler/ipp.c:10336 #, c-format msgid "Bad '%s' value." msgstr "" #: scheduler/ipp.c:11284 #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" #: cups/ppd.c:307 msgid "Bad CloseUI/JCLCloseUI" msgstr "" #: cups/dest.c:1661 msgid "Bad NULL dests pointer" msgstr "" #: cups/ppd.c:290 msgid "Bad OpenGroup" msgstr "" #: cups/ppd.c:292 msgid "Bad OpenUI/JCLOpenUI" msgstr "" #: cups/ppd.c:294 msgid "Bad OrderDependency" msgstr "" #: cups/ppd-cache.c:483 cups/ppd-cache.c:530 cups/ppd-cache.c:564 #: cups/ppd-cache.c:570 cups/ppd-cache.c:586 cups/ppd-cache.c:602 #: cups/ppd-cache.c:611 cups/ppd-cache.c:619 cups/ppd-cache.c:636 #: cups/ppd-cache.c:644 cups/ppd-cache.c:659 cups/ppd-cache.c:667 #: cups/ppd-cache.c:688 cups/ppd-cache.c:700 cups/ppd-cache.c:715 #: cups/ppd-cache.c:727 cups/ppd-cache.c:749 cups/ppd-cache.c:757 #: cups/ppd-cache.c:775 cups/ppd-cache.c:783 cups/ppd-cache.c:798 #: cups/ppd-cache.c:806 cups/ppd-cache.c:824 cups/ppd-cache.c:832 #: cups/ppd-cache.c:859 cups/ppd-cache.c:934 cups/ppd-cache.c:942 #: cups/ppd-cache.c:950 msgid "Bad PPD cache file." msgstr "" #: scheduler/ipp.c:2659 msgid "Bad PPD file." msgstr "" #: cups/http-support.c:1512 msgid "Bad Request" msgstr "" #: cups/snmp.c:956 msgid "Bad SNMP version number" msgstr "" #: cups/ppd.c:295 msgid "Bad UIConstraints" msgstr "" #: cups/dest.c:1195 msgid "Bad URI." msgstr "" #: cups/hash.c:48 cups/http-support.c:1606 msgid "Bad arguments to function" msgstr "" #: scheduler/ipp.c:1372 #, c-format msgid "Bad copies value %d." msgstr "" #: cups/ppd.c:303 msgid "Bad custom parameter" msgstr "" #: cups/http-support.c:1746 scheduler/ipp.c:2365 #, c-format msgid "Bad device-uri \"%s\"." msgstr "" #: scheduler/ipp.c:2410 #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "" #: scheduler/ipp.c:8486 scheduler/ipp.c:8504 scheduler/ipp.c:9732 #, c-format msgid "Bad document-format \"%s\"." msgstr "" #: scheduler/ipp.c:9750 #, c-format msgid "Bad document-format-default \"%s\"." msgstr "" #: cups/ppd-util.c:169 msgid "Bad filename buffer" msgstr "" #: cups/http-support.c:1615 msgid "Bad hostname/address in URI" msgstr "" #: scheduler/ipp.c:1554 #, c-format msgid "Bad job-name value: %s" msgstr "" #: scheduler/ipp.c:1540 msgid "Bad job-name value: Wrong type or count." msgstr "" #: scheduler/ipp.c:10374 msgid "Bad job-priority value." msgstr "" #: scheduler/ipp.c:1402 #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "" #: scheduler/ipp.c:1386 msgid "Bad job-sheets value type." msgstr "" #: scheduler/ipp.c:10404 msgid "Bad job-state value." msgstr "" #: scheduler/ipp.c:3006 scheduler/ipp.c:3468 scheduler/ipp.c:6253 #: scheduler/ipp.c:6400 scheduler/ipp.c:7912 scheduler/ipp.c:8184 #: scheduler/ipp.c:9050 scheduler/ipp.c:9274 scheduler/ipp.c:9626 #: scheduler/ipp.c:10235 #, c-format msgid "Bad job-uri \"%s\"." msgstr "" #: scheduler/ipp.c:2049 scheduler/ipp.c:5773 #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "" #: scheduler/ipp.c:2014 scheduler/ipp.c:5737 #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "" #: scheduler/ipp.c:5848 #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #: scheduler/ipp.c:1418 #, c-format msgid "Bad number-up value %d." msgstr "" #: scheduler/ipp.c:1435 #, c-format msgid "Bad page-ranges values %d-%d." msgstr "" #: cups/http-support.c:1612 msgid "Bad port number in URI" msgstr "" #: scheduler/ipp.c:2456 #, c-format msgid "Bad port-monitor \"%s\"." msgstr "" #: scheduler/ipp.c:2537 #, c-format msgid "Bad printer-state value %d." msgstr "" #: cups/dest.c:678 cups/dest.c:1245 msgid "Bad printer-uri." msgstr "" #: scheduler/ipp.c:201 #, c-format msgid "Bad request ID %d." msgstr "" #: scheduler/ipp.c:191 #, c-format msgid "Bad request version number %d.%d." msgstr "" #: cups/http-support.c:1609 msgid "Bad resource in URI" msgstr "" #: cups/http-support.c:1621 msgid "Bad scheme in URI" msgstr "" #: cups/http-support.c:1618 msgid "Bad username in URI" msgstr "" #: cups/ppd.c:305 msgid "Bad value string" msgstr "" #: cups/http-support.c:1624 msgid "Bad/empty URI" msgstr "" #: cgi-bin/admin.c:2794 cgi-bin/admin.c:3043 msgid "Banners" msgstr "" #: ppdc/sample.c:282 msgid "Bond Paper" msgstr "" #: cups/ppd-cache.c:4152 msgid "Booklet" msgstr "" #: backend/usb-darwin.c:2008 #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "" #: filter/pstops.c:2026 msgid "Buffer overflow detected, aborting." msgstr "" #: ppdc/sample.c:277 msgid "CMYK" msgstr "" #: ppdc/sample.c:358 msgid "CPCL Label Printer" msgstr "" #: cgi-bin/classes.c:159 cgi-bin/printers.c:162 msgid "Cancel Jobs" msgstr "Annuller jobs" #: backend/ipp.c:2287 msgid "Canceling print job." msgstr "Annullerer udskrivningsjob." #: scheduler/ipp.c:963 scheduler/ipp.c:2512 msgid "Cannot change printer-is-shared for remote queues." msgstr "" #: scheduler/ipp.c:2499 msgid "Cannot share a remote Kerberized printer." msgstr "" #: ppdc/sample.c:271 msgid "Cassette" msgstr "" #: cgi-bin/admin.c:1347 cgi-bin/admin.c:1489 cgi-bin/admin.c:1502 #: cgi-bin/admin.c:1513 msgid "Change Settings" msgstr "" #: scheduler/ipp.c:2061 scheduler/ipp.c:5785 #, c-format msgid "Character set \"%s\" not supported." msgstr "" #: cgi-bin/classes.c:181 cgi-bin/classes.c:307 msgid "Classes" msgstr "" #: cgi-bin/printers.c:168 msgid "Clean Print Heads" msgstr "" #: scheduler/ipp.c:3920 msgid "Close-Job doesn't support the job-uri attribute." msgstr "" #: cups/ppd-cache.c:3790 ppdc/sample.c:276 msgid "Color" msgstr "" #: cups/ppd-cache.c:3751 ppdc/sample.c:274 msgid "Color Mode" msgstr "" #: berkeley/lpc.c:190 msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" #: cups/snmp.c:960 msgid "Community name uses indefinite length" msgstr "" #: backend/ipp.c:865 backend/lpd.c:929 backend/socket.c:375 msgid "Connected to printer." msgstr "" #: backend/ipp.c:701 backend/lpd.c:753 backend/socket.c:295 msgid "Connecting to printer." msgstr "" #: cups/http-support.c:1482 msgid "Continue" msgstr "" #: ppdc/sample.c:360 msgid "Continuous" msgstr "" #: backend/lpd.c:1078 backend/lpd.c:1210 msgid "Control file sent successfully." msgstr "" #: backend/ipp.c:1396 backend/lpd.c:445 msgid "Copying print data." msgstr "" #: cups/http-support.c:1491 msgid "Created" msgstr "" #: cups/tls-darwin.c:748 cups/tls-gnutls.c:582 msgid "Credentials do not validate against site CA certificate." msgstr "" #: cups/tls-darwin.c:759 cups/tls-gnutls.c:599 msgid "Credentials have expired." msgstr "" #: cups/ppd.c:1133 cups/ppd.c:1173 cups/ppd.c:1382 cups/ppd.c:1485 msgid "Custom" msgstr "" #: ppdc/sample.c:354 msgid "CustominCutInterval" msgstr "" #: ppdc/sample.c:352 msgid "CustominTearInterval" msgstr "" #: ppdc/sample.c:338 msgid "Cut" msgstr "" #: ppdc/sample.c:446 msgid "Cutter" msgstr "" #: ppdc/sample.c:239 msgid "Dark" msgstr "" #: ppdc/sample.c:235 msgid "Darkness" msgstr "" #: backend/lpd.c:1163 msgid "Data file sent successfully." msgstr "" #: cups/ppd-cache.c:3798 cups/ppd-cache.c:3807 msgid "Deep Color" msgstr "" #: cups/ppd-cache.c:3784 msgid "Deep Gray" msgstr "" #: cgi-bin/admin.c:1786 cgi-bin/admin.c:1797 cgi-bin/admin.c:1842 msgid "Delete Class" msgstr "" #: cgi-bin/admin.c:1871 cgi-bin/admin.c:1882 cgi-bin/admin.c:1927 msgid "Delete Printer" msgstr "" #: ppdc/sample.c:273 msgid "DeskJet Series" msgstr "" #: scheduler/ipp.c:1301 #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "" #: cups/ppd-cache.c:3828 cups/ppd-cache.c:3834 msgid "Device CMYK" msgstr "" #: cups/ppd-cache.c:3816 cups/ppd-cache.c:3822 msgid "Device Gray" msgstr "" #: cups/ppd-cache.c:3840 cups/ppd-cache.c:3846 msgid "Device RGB" msgstr "" #: systemv/lpinfo.c:273 #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" #: ppdc/sample.c:431 msgid "Direct Thermal Media" msgstr "" #: cups/file.c:285 #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "" #: cups/file.c:257 #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #: cups/file.c:274 #, c-format msgid "Directory \"%s\" is a file." msgstr "" #: cups/file.c:245 #, c-format msgid "Directory \"%s\" not available: %s" msgstr "" #: cups/file.c:230 #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" #: ppdc/sample.c:340 msgid "Disabled" msgstr "" #: scheduler/ipp.c:6302 #, c-format msgid "Document #%d does not exist in job #%d." msgstr "" #: cups/ppd-cache.c:4283 cups/ppd-cache.c:4285 cups/ppd-cache.c:4348 #: cups/ppd-cache.c:4385 msgid "Draft" msgstr "" #: ppdc/sample.c:267 msgid "Duplexer" msgstr "" #: ppdc/sample.c:229 msgid "Dymo" msgstr "" #: ppdc/sample.c:426 msgid "EPL1 Label Printer" msgstr "" #: ppdc/sample.c:429 msgid "EPL2 Label Printer" msgstr "" #: cgi-bin/admin.c:1541 cgi-bin/admin.c:1553 cgi-bin/admin.c:1607 #: cgi-bin/admin.c:1614 cgi-bin/admin.c:1649 cgi-bin/admin.c:1662 #: cgi-bin/admin.c:1686 cgi-bin/admin.c:1759 msgid "Edit Configuration File" msgstr "" #: cups/http.c:4649 msgid "Encryption is not supported." msgstr "" #. TRANSLATORS: Banner/cover sheet after the print job. #: cgi-bin/admin.c:3068 msgid "Ending Banner" msgstr "" #: ppdc/sample.c:2 msgid "English" msgstr "" #: scheduler/client.c:1981 msgid "Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket." msgstr "" #: ppdc/sample.c:73 msgid "Envelope #10" msgstr "" #: ppdc/sample.c:74 msgid "Envelope #11" msgstr "" #: ppdc/sample.c:75 msgid "Envelope #12" msgstr "" #: ppdc/sample.c:76 msgid "Envelope #14" msgstr "" #: ppdc/sample.c:77 msgid "Envelope #9" msgstr "" #: ppdc/sample.c:89 msgid "Envelope B4" msgstr "" #: ppdc/sample.c:90 msgid "Envelope B5" msgstr "" #: ppdc/sample.c:91 msgid "Envelope B6" msgstr "" #: ppdc/sample.c:78 msgid "Envelope C0" msgstr "" #: ppdc/sample.c:79 msgid "Envelope C1" msgstr "" #: ppdc/sample.c:80 msgid "Envelope C2" msgstr "" #: ppdc/sample.c:81 msgid "Envelope C3" msgstr "" #: ppdc/sample.c:67 msgid "Envelope C4" msgstr "" #: ppdc/sample.c:68 msgid "Envelope C5" msgstr "" #: ppdc/sample.c:69 msgid "Envelope C6" msgstr "" #: ppdc/sample.c:82 msgid "Envelope C65" msgstr "" #: ppdc/sample.c:83 msgid "Envelope C7" msgstr "" #: ppdc/sample.c:84 msgid "Envelope Choukei 3" msgstr "" #: ppdc/sample.c:85 msgid "Envelope Choukei 3 Long Edge" msgstr "" #: ppdc/sample.c:86 msgid "Envelope Choukei 4" msgstr "" #: ppdc/sample.c:87 msgid "Envelope Choukei 4 Long Edge" msgstr "" #: ppdc/sample.c:70 msgid "Envelope DL" msgstr "" #: ppdc/sample.c:261 msgid "Envelope Feed" msgstr "" #: ppdc/sample.c:88 msgid "Envelope Invite" msgstr "" #: ppdc/sample.c:92 msgid "Envelope Italian" msgstr "" #: ppdc/sample.c:93 msgid "Envelope Kaku2" msgstr "" #: ppdc/sample.c:94 msgid "Envelope Kaku2 Long Edge" msgstr "" #: ppdc/sample.c:95 msgid "Envelope Kaku3" msgstr "" #: ppdc/sample.c:96 msgid "Envelope Kaku3 Long Edge" msgstr "" #: ppdc/sample.c:97 msgid "Envelope Monarch" msgstr "" #: ppdc/sample.c:99 msgid "Envelope PRC1" msgstr "" #: ppdc/sample.c:100 msgid "Envelope PRC1 Long Edge" msgstr "" #: ppdc/sample.c:117 msgid "Envelope PRC10" msgstr "" #: ppdc/sample.c:118 msgid "Envelope PRC10 Long Edge" msgstr "" #: ppdc/sample.c:101 msgid "Envelope PRC2" msgstr "" #: ppdc/sample.c:102 msgid "Envelope PRC2 Long Edge" msgstr "" #: ppdc/sample.c:103 msgid "Envelope PRC3" msgstr "" #: ppdc/sample.c:104 msgid "Envelope PRC3 Long Edge" msgstr "" #: ppdc/sample.c:105 msgid "Envelope PRC4" msgstr "" #: ppdc/sample.c:106 msgid "Envelope PRC4 Long Edge" msgstr "" #: ppdc/sample.c:108 msgid "Envelope PRC5 Long Edge" msgstr "" #: ppdc/sample.c:107 msgid "Envelope PRC5PRC5" msgstr "" #: ppdc/sample.c:109 msgid "Envelope PRC6" msgstr "" #: ppdc/sample.c:110 msgid "Envelope PRC6 Long Edge" msgstr "" #: ppdc/sample.c:111 msgid "Envelope PRC7" msgstr "" #: ppdc/sample.c:112 msgid "Envelope PRC7 Long Edge" msgstr "" #: ppdc/sample.c:113 msgid "Envelope PRC8" msgstr "" #: ppdc/sample.c:114 msgid "Envelope PRC8 Long Edge" msgstr "" #: ppdc/sample.c:115 msgid "Envelope PRC9" msgstr "" #: ppdc/sample.c:116 msgid "Envelope PRC9 Long Edge" msgstr "" #: ppdc/sample.c:98 msgid "Envelope Personal" msgstr "" #: ppdc/sample.c:119 msgid "Envelope You4" msgstr "" #: ppdc/sample.c:120 msgid "Envelope You4 Long Edge" msgstr "" #: tools/ippfind.c:2822 msgid "Environment Variables:" msgstr "" #: ppdc/sample.c:240 msgid "Epson" msgstr "" #: cgi-bin/admin.c:3111 msgid "Error Policy" msgstr "" #: filter/rastertopwg.c:452 msgid "Error reading raster data." msgstr "" #: filter/rastertopwg.c:421 filter/rastertopwg.c:442 filter/rastertopwg.c:460 #: filter/rastertopwg.c:471 msgid "Error sending raster data." msgstr "" #: systemv/lpinfo.c:208 systemv/lpmove.c:85 msgid "Error: need hostname after \"-h\" option." msgstr "" #: ppdc/sample.c:122 msgid "European Fanfold" msgstr "" #: ppdc/sample.c:123 msgid "European Fanfold Legal" msgstr "" #: ppdc/sample.c:350 msgid "Every 10 Labels" msgstr "" #: ppdc/sample.c:342 msgid "Every 2 Labels" msgstr "" #: ppdc/sample.c:343 msgid "Every 3 Labels" msgstr "" #: ppdc/sample.c:344 msgid "Every 4 Labels" msgstr "" #: ppdc/sample.c:345 msgid "Every 5 Labels" msgstr "" #: ppdc/sample.c:346 msgid "Every 6 Labels" msgstr "" #: ppdc/sample.c:347 msgid "Every 7 Labels" msgstr "" #: ppdc/sample.c:348 msgid "Every 8 Labels" msgstr "" #: ppdc/sample.c:349 msgid "Every 9 Labels" msgstr "" #: ppdc/sample.c:341 msgid "Every Label" msgstr "" #: ppdc/sample.c:121 msgid "Executive" msgstr "" #: cups/http-support.c:1540 msgid "Expectation Failed" msgstr "" #: tools/ippfind.c:2771 msgid "Expressions:" msgstr "" #: cups/ppd-cache.c:3758 msgid "Fast Grayscale" msgstr "" #: cups/file.c:289 #, c-format msgid "File \"%s\" contains a relative path." msgstr "" #: cups/file.c:264 #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #: cups/file.c:278 #, c-format msgid "File \"%s\" is a directory." msgstr "" #: cups/file.c:250 #, c-format msgid "File \"%s\" not available: %s" msgstr "" #: cups/file.c:236 #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" #: ppdc/sample.c:169 msgid "File Folder" msgstr "" #: scheduler/ipp.c:2386 #, c-format msgid "File device URIs have been disabled. To enable, see the FileDevice directive in \"%s/cups-files.conf\"." msgstr "" #: filter/rastertoepson.c:1131 filter/rastertohp.c:802 #: filter/rastertolabel.c:1259 #, c-format msgid "Finished page %d." msgstr "" #: cups/ppd-cache.c:4171 msgid "Finishing Preset" msgstr "" #: cups/ppd-cache.c:4061 msgid "Fold" msgstr "" #: ppdc/sample.c:125 msgid "Folio" msgstr "" #: cups/http-support.c:1519 msgid "Forbidden" msgstr "" #: cups/http-support.c:1503 msgid "Found" msgstr "" #: cups/ppd.c:757 cups/ppd.c:1286 msgid "General" msgstr "" #: ppdc/sample.c:251 msgid "Generic" msgstr "" #: cups/snmp.c:970 msgid "Get-Response-PDU uses indefinite length" msgstr "" #: ppdc/sample.c:285 msgid "Glossy Paper" msgstr "" #: scheduler/ipp.c:2984 scheduler/ipp.c:3394 scheduler/ipp.c:3932 #: scheduler/ipp.c:6231 scheduler/ipp.c:6378 scheduler/ipp.c:7889 #: scheduler/ipp.c:9028 scheduler/ipp.c:9252 scheduler/ipp.c:9604 #: scheduler/ipp.c:10213 msgid "Got a printer-uri attribute but no job-id." msgstr "" #: cups/ppd-cache.c:3767 cups/ppd-cache.c:3778 ppdc/sample.c:275 msgid "Grayscale" msgstr "" #: ppdc/sample.c:272 msgid "HP" msgstr "" #: ppdc/sample.c:170 msgid "Hanging Folder" msgstr "" #: cups/hash.c:292 msgid "Hash buffer too small." msgstr "" #: cgi-bin/help.c:133 msgid "Help file not in index." msgstr "" #: cups/ppd-cache.c:4290 cups/ppd-cache.c:4359 cups/ppd-cache.c:4390 msgid "High" msgstr "" #: cups/ipp.c:3094 cups/ipp.c:3121 cups/ipp.c:3144 msgid "IPP 1setOf attribute with incompatible value tags." msgstr "" #: cups/ipp.c:3057 msgid "IPP attribute has no name." msgstr "" #: cups/ipp.c:6802 msgid "IPP attribute is not a member of the message." msgstr "" #: cups/ipp.c:3507 msgid "IPP begCollection value not 0 bytes." msgstr "" #: cups/ipp.c:3285 msgid "IPP boolean value not 1 byte." msgstr "" #: cups/ipp.c:3350 msgid "IPP date value not 11 bytes." msgstr "" #: cups/ipp.c:3528 msgid "IPP endCollection value not 0 bytes." msgstr "" #: cups/ipp.c:3260 msgid "IPP enum value not 4 bytes." msgstr "" #: cups/ipp.c:2975 msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "" #: cups/ipp.c:3257 msgid "IPP integer value not 4 bytes." msgstr "" #: cups/ipp.c:3460 msgid "IPP language length overflows value." msgstr "" #: cups/ipp.c:3469 msgid "IPP language length too large." msgstr "" #: cups/ipp.c:3171 msgid "IPP member name is not empty." msgstr "" #: cups/ipp.c:3554 msgid "IPP memberName value is empty." msgstr "" #: cups/ipp.c:3546 msgid "IPP memberName with no attribute." msgstr "" #: cups/ipp.c:3035 msgid "IPP name larger than 32767 bytes." msgstr "" #: cups/ipp.c:3427 msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "" #: cups/ipp.c:3585 msgid "IPP octetString length too large." msgstr "" #: cups/ipp.c:3395 msgid "IPP rangeOfInteger value not 8 bytes." msgstr "" #: cups/ipp.c:3368 msgid "IPP resolution value not 9 bytes." msgstr "" #: cups/ipp.c:3487 msgid "IPP string length overflows value." msgstr "" #: cups/ipp.c:3423 msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "" #: cups/ipp.c:3243 msgid "IPP value larger than 32767 bytes." msgstr "" #: tools/ippfind.c:2823 msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" #: tools/ippfind.c:2824 msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" #: tools/ippfind.c:2826 msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" #: tools/ippfind.c:2827 msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" #: tools/ippfind.c:2828 msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" #: tools/ippfind.c:2829 msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" #: tools/ippfind.c:2830 msgid "IPPFIND_SERVICE_URI URI" msgstr "" #: tools/ippfind.c:2831 msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" #: ppdc/sample.c:1 msgid "ISOLatin1" msgstr "" #: cups/ppd.c:298 msgid "Illegal control character" msgstr "" #: cups/ppd.c:299 msgid "Illegal main keyword string" msgstr "" #: cups/ppd.c:300 msgid "Illegal option keyword string" msgstr "" #: cups/ppd.c:301 msgid "Illegal translation string" msgstr "" #: cups/ppd.c:302 msgid "Illegal whitespace character" msgstr "" #: ppdc/sample.c:266 msgid "Installable Options" msgstr "" #: ppdc/sample.c:269 msgid "Installed" msgstr "" #: ppdc/sample.c:288 msgid "IntelliBar Label Printer" msgstr "" #: ppdc/sample.c:287 msgid "Intellitech" msgstr "" #: cups/http-support.c:1546 msgid "Internal Server Error" msgstr "" #: cups/ppd.c:289 msgid "Internal error" msgstr "" #: ppdc/sample.c:167 msgid "Internet Postage 2-Part" msgstr "" #: ppdc/sample.c:168 msgid "Internet Postage 3-Part" msgstr "" #: backend/ipp.c:319 msgid "Internet Printing Protocol" msgstr "" #: cups/ipp.c:2995 msgid "Invalid group tag." msgstr "" #: cups/pwg-media.c:288 cups/pwg-media.c:307 msgid "Invalid media name arguments." msgstr "" #: cups/dest-options.c:1232 msgid "Invalid media size." msgstr "" #: cups/ipp.c:3045 msgid "Invalid named IPP attribute in collection." msgstr "" #: scheduler/ipp.c:2705 scheduler/ipp.c:7045 msgid "Invalid ppd-name value." msgstr "" #: filter/commandtops.c:108 #, c-format msgid "Invalid printer command \"%s\"." msgstr "" #: cups/ppd.c:1404 msgid "JCL" msgstr "" #: ppdc/sample.c:53 msgid "JIS B0" msgstr "" #: ppdc/sample.c:55 msgid "JIS B1" msgstr "" #: ppdc/sample.c:54 msgid "JIS B10" msgstr "" #: ppdc/sample.c:56 msgid "JIS B2" msgstr "" #: ppdc/sample.c:57 msgid "JIS B3" msgstr "" #: ppdc/sample.c:58 msgid "JIS B4" msgstr "" #: ppdc/sample.c:59 msgid "JIS B4 Long Edge" msgstr "" #: ppdc/sample.c:60 msgid "JIS B5" msgstr "" #: ppdc/sample.c:61 msgid "JIS B5 Long Edge" msgstr "" #: ppdc/sample.c:62 msgid "JIS B6" msgstr "" #: ppdc/sample.c:63 msgid "JIS B6 Long Edge" msgstr "" #: ppdc/sample.c:64 msgid "JIS B7" msgstr "" #: ppdc/sample.c:65 msgid "JIS B8" msgstr "" #: ppdc/sample.c:66 msgid "JIS B9" msgstr "" #: scheduler/ipp.c:9324 #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "" #: scheduler/ipp.c:3024 scheduler/ipp.c:3258 scheduler/ipp.c:3317 #: scheduler/ipp.c:3496 scheduler/ipp.c:3942 scheduler/ipp.c:5890 #: scheduler/ipp.c:6271 scheduler/ipp.c:6418 scheduler/ipp.c:6755 #: scheduler/ipp.c:7730 scheduler/ipp.c:7752 scheduler/ipp.c:7930 #: scheduler/ipp.c:8158 scheduler/ipp.c:8201 scheduler/ipp.c:9068 #: scheduler/ipp.c:9292 scheduler/ipp.c:9644 scheduler/ipp.c:10253 #, c-format msgid "Job #%d does not exist." msgstr "" #: scheduler/ipp.c:3528 #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Job #%d er allerede afbrudt - kan ikke annullere." #: scheduler/ipp.c:3522 #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Job #%d er allerede annulleret - kan ikke annullere." #: scheduler/ipp.c:3534 #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Job #%d er allerede fuldført - kan ikke annullere." #: scheduler/ipp.c:7956 scheduler/ipp.c:8243 scheduler/ipp.c:10268 #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "" #: scheduler/ipp.c:9306 #, c-format msgid "Job #%d is not complete." msgstr "" #: scheduler/ipp.c:3039 #, c-format msgid "Job #%d is not held for authentication." msgstr "" #: scheduler/ipp.c:9082 #, c-format msgid "Job #%d is not held." msgstr "" #: cgi-bin/ipp-var.c:1032 msgid "Job Completed" msgstr "" #: cgi-bin/ipp-var.c:1030 msgid "Job Created" msgstr "" #: cgi-bin/ipp-var.c:1036 msgid "Job Options Changed" msgstr "" #: cgi-bin/ipp-var.c:1034 msgid "Job Stopped" msgstr "" #: scheduler/ipp.c:10382 msgid "Job is completed and cannot be changed." msgstr "" #: cgi-bin/jobs.c:186 msgid "Job operation failed" msgstr "" #: scheduler/ipp.c:10418 scheduler/ipp.c:10435 scheduler/ipp.c:10446 msgid "Job state cannot be changed." msgstr "" #: scheduler/ipp.c:9172 msgid "Job subscriptions cannot be renewed." msgstr "" #: cgi-bin/jobs.c:91 cgi-bin/jobs.c:102 cgi-bin/jobs.c:183 msgid "Jobs" msgstr "" #: backend/lpd.c:162 msgid "LPD/LPR Host or Printer" msgstr "" #: cups/dest.c:1856 msgid "LPDEST environment variable names default destination that does not exist." msgstr "" #: ppdc/sample.c:230 msgid "Label Printer" msgstr "" #: ppdc/sample.c:441 msgid "Label Top" msgstr "" #: scheduler/ipp.c:2070 scheduler/ipp.c:5794 #, c-format msgid "Language \"%s\" not supported." msgstr "" #: ppdc/sample.c:164 msgid "Large Address" msgstr "" #: ppdc/sample.c:286 msgid "LaserJet Series PCL 4/5" msgstr "" #: ppdc/sample.c:43 msgid "Letter Oversize" msgstr "" #: ppdc/sample.c:44 msgid "Letter Oversize Long Edge" msgstr "" #: ppdc/sample.c:236 msgid "Light" msgstr "" #: cups/ppd.c:297 msgid "Line longer than the maximum allowed (255 characters)" msgstr "" #: cgi-bin/admin.c:1950 msgid "List Available Printers" msgstr "" #: tools/ippeveprinter.c:604 #, c-format msgid "Listening on port %d." msgstr "" #: scheduler/ipp.c:5503 msgid "Local printer created." msgstr "" #: cups/ppd-cache.c:3872 ppdc/sample.c:264 msgid "Long-Edge (Portrait)" msgstr "" #: cups/http-support.c:1870 msgid "Looking for printer." msgstr "" #: ppdc/sample.c:260 msgid "Manual Feed" msgstr "" #: cups/ppd.c:804 cups/ppd.c:1341 msgid "Media Size" msgstr "" #: cups/ppd.c:808 cups/ppd.c:1345 ppdc/sample.c:254 msgid "Media Source" msgstr "" #: ppdc/sample.c:359 msgid "Media Tracking" msgstr "" #: cups/ppd.c:806 cups/ppd.c:1343 ppdc/sample.c:280 msgid "Media Type" msgstr "" #: ppdc/sample.c:237 msgid "Medium" msgstr "" #: cups/ppd.c:286 msgid "Memory allocation error" msgstr "" #: cups/ppd.c:306 msgid "Missing CloseGroup" msgstr "" #: cups/ppd.c:308 msgid "Missing CloseUI/JCLCloseUI" msgstr "" #: cups/ppd.c:287 msgid "Missing PPD-Adobe-4.x header" msgstr "" #: cups/ppd.c:296 msgid "Missing asterisk in column 1" msgstr "" #: scheduler/ipp.c:6294 msgid "Missing document-number attribute." msgstr "" #: cgi-bin/admin.c:502 cgi-bin/admin.c:1798 cgi-bin/admin.c:1883 #: cgi-bin/admin.c:2289 cgi-bin/admin.c:2543 cgi-bin/admin.c:2654 #: cgi-bin/admin.c:3367 msgid "Missing form variable" msgstr "" #: scheduler/ipp.c:9698 msgid "Missing last-document attribute in request." msgstr "" #: cups/pwg-media.c:547 msgid "Missing media or media-col." msgstr "" #: cups/pwg-media.c:466 msgid "Missing media-size in media-col." msgstr "" #: scheduler/ipp.c:6895 msgid "Missing notify-subscription-ids attribute." msgstr "" #: cups/ppd.c:304 msgid "Missing option keyword" msgstr "" #: scheduler/ipp.c:3165 scheduler/ipp.c:3190 msgid "Missing requesting-user-name attribute." msgstr "" #: scheduler/ipp.c:5420 scheduler/ipp.c:5446 #, c-format msgid "Missing required attribute \"%s\"." msgstr "" #: scheduler/ipp.c:347 msgid "Missing required attributes." msgstr "" #: cups/http-support.c:1636 msgid "Missing resource in URI" msgstr "" #: cups/http-support.c:1630 msgid "Missing scheme in URI" msgstr "" #: cups/ppd.c:288 msgid "Missing value string" msgstr "" #: cups/pwg-media.c:454 msgid "Missing x-dimension in media-size." msgstr "" #: cups/pwg-media.c:460 msgid "Missing y-dimension in media-size." msgstr "" #: systemv/lpinfo.c:443 systemv/lpinfo.c:467 #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" #: tools/ippfind.c:2801 msgid "Modifiers:" msgstr "" #: cgi-bin/admin.c:336 msgid "Modify Class" msgstr "" #: cgi-bin/admin.c:649 msgid "Modify Printer" msgstr "" #: cgi-bin/ipp-var.c:407 cgi-bin/ipp-var.c:498 msgid "Move All Jobs" msgstr "" #: cgi-bin/ipp-var.c:346 cgi-bin/ipp-var.c:405 cgi-bin/ipp-var.c:496 msgid "Move Job" msgstr "" #: cups/http-support.c:1500 msgid "Moved Permanently" msgstr "" #: cups/ppd.c:285 msgid "NULL PPD file pointer" msgstr "" #: cups/snmp.c:1007 msgid "Name OID uses indefinite length" msgstr "" #: scheduler/ipp.c:1056 msgid "Nested classes are not allowed." msgstr "" #: ppdc/sample.c:425 msgid "Never" msgstr "" #: cups/tls-darwin.c:690 cups/tls-gnutls.c:524 msgid "New credentials are not valid for name." msgstr "" #: cups/tls-darwin.c:680 cups/tls-gnutls.c:514 msgid "New credentials are older than stored credentials." msgstr "" #: cups/ppd.c:1974 msgid "No" msgstr "Nej" #: cups/http-support.c:1497 msgid "No Content" msgstr "" #: cups/ppd-cache.c:3076 msgid "No IPP attributes." msgstr "" #: cups/ppd-util.c:489 msgid "No PPD name" msgstr "" #: cups/snmp.c:1001 msgid "No VarBind SEQUENCE" msgstr "" #: cups/request.c:548 cups/request.c:920 msgid "No active connection" msgstr "" #: cups/request.c:329 msgid "No active connection." msgstr "" #: scheduler/ipp.c:3445 #, c-format msgid "No active jobs on %s." msgstr "" #: scheduler/ipp.c:207 msgid "No attributes in request." msgstr "" #: scheduler/ipp.c:3066 msgid "No authentication information provided." msgstr "" #: cups/tls-darwin.c:630 cups/tls-gnutls.c:461 msgid "No common name specified." msgstr "" #: cups/snmp.c:958 msgid "No community name" msgstr "" #: cups/dest.c:1860 cups/dest.c:1872 msgid "No default destination." msgstr "" #: scheduler/ipp.c:6094 msgid "No default printer." msgstr "" #: cgi-bin/ipp-var.c:418 scheduler/ipp.c:7476 msgid "No destinations added." msgstr "" #: backend/usb.c:187 msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" #: cups/snmp.c:988 msgid "No error-index" msgstr "" #: cups/snmp.c:980 msgid "No error-status" msgstr "" #: scheduler/ipp.c:8448 scheduler/ipp.c:9712 msgid "No file in print request." msgstr "" #: cups/ppd-util.c:162 msgid "No modification time" msgstr "" #: cups/snmp.c:1005 msgid "No name OID" msgstr "" #: filter/rastertoepson.c:1161 filter/rastertohp.c:833 #: filter/rastertolabel.c:1288 msgid "No pages were found." msgstr "" #: cups/ppd-util.c:155 msgid "No printer name" msgstr "" #: cups/ppd-util.c:658 msgid "No printer-uri found" msgstr "" #: cups/ppd-util.c:642 msgid "No printer-uri found for class" msgstr "" #: scheduler/ipp.c:6501 msgid "No printer-uri in request." msgstr "" #: cups/http.c:2217 msgid "No request URI." msgstr "" #: cups/http.c:2234 msgid "No request protocol version." msgstr "" #: cups/request.c:337 msgid "No request sent." msgstr "" #: cups/snmp.c:972 msgid "No request-id" msgstr "" #: cups/tls-darwin.c:710 cups/tls-gnutls.c:544 msgid "No stored credentials, not valid for name." msgstr "" #: scheduler/ipp.c:5679 msgid "No subscription attributes in request." msgstr "" #: scheduler/ipp.c:7829 msgid "No subscriptions found." msgstr "" #: cups/snmp.c:996 msgid "No variable-bindings SEQUENCE" msgstr "" #: cups/snmp.c:951 msgid "No version number" msgstr "" #: ppdc/sample.c:362 msgid "Non-continuous (Mark sensing)" msgstr "" #: ppdc/sample.c:361 msgid "Non-continuous (Web sensing)" msgstr "" #: cups/ppd-cache.c:4014 cups/ppd-cache.c:4064 cups/ppd-cache.c:4114 #: cups/ppd-cache.c:4174 msgid "None" msgstr "" #: cups/ppd-cache.c:4287 cups/ppd-cache.c:4353 cups/ppd-cache.c:4387 #: ppdc/sample.c:238 msgid "Normal" msgstr "" #: cups/http-support.c:1522 msgid "Not Found" msgstr "" #: cups/http-support.c:1534 msgid "Not Implemented" msgstr "" #: ppdc/sample.c:268 msgid "Not Installed" msgstr "" #: cups/http-support.c:1509 msgid "Not Modified" msgstr "" #: cups/http-support.c:1537 msgid "Not Supported" msgstr "" #: scheduler/ipp.c:1510 scheduler/ipp.c:10979 msgid "Not allowed to print." msgstr "" #: ppdc/sample.c:146 msgid "Note" msgstr "" #: cups/http-support.c:1488 cups/http-support.c:1627 cups/ppd.c:283 msgid "OK" msgstr "" #: cups/ppd-cache.c:3872 ppdc/sample.c:263 msgid "Off (1-Sided)" msgstr "" #: ppdc/sample.c:356 msgid "Oki" msgstr "" #: cgi-bin/help.c:81 cgi-bin/help.c:122 cgi-bin/help.c:132 cgi-bin/help.c:162 msgid "Online Help" msgstr "" #: scheduler/ipp.c:5399 msgid "Only local users can create a local printer." msgstr "" #: cups/adminutil.c:202 #, c-format msgid "Open of %s failed: %s" msgstr "" #: cups/ppd.c:291 msgid "OpenGroup without a CloseGroup first" msgstr "" #: cups/ppd.c:293 msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "" #: cgi-bin/admin.c:3138 msgid "Operation Policy" msgstr "" #: filter/pstops.c:2174 #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "" #: cgi-bin/admin.c:2785 cgi-bin/admin.c:2869 msgid "Options Installed" msgstr "" #: berkeley/lpq.c:642 berkeley/lpr.c:431 berkeley/lprm.c:232 #: scheduler/cupsfilter.c:1476 scheduler/main.c:2133 systemv/cancel.c:401 #: systemv/cupsaccept.c:243 systemv/cupsctl.c:232 systemv/cupstestppd.c:3857 #: systemv/lp.c:750 systemv/lpadmin.c:1620 systemv/lpinfo.c:497 #: systemv/lpmove.c:216 systemv/lpoptions.c:538 systemv/lpstat.c:2044 #: tools/ippeveprinter.c:7664 tools/ippfind.c:2765 tools/ipptool.c:4307 #: ppdc/ppdc.cxx:426 ppdc/ppdhtml.cxx:173 ppdc/ppdi.cxx:119 #: ppdc/ppdmerge.cxx:356 ppdc/ppdpo.cxx:243 msgid "Options:" msgstr "" #: cups/dest-localization.c:169 msgid "Other Media" msgstr "" #: cups/dest-localization.c:167 msgid "Other Tray" msgstr "" #: cups/ppd-cache.c:491 msgid "Out of date PPD cache file." msgstr "" #: cups/ppd-cache.c:1934 msgid "Out of memory." msgstr "" #: cups/ppd.c:810 cups/ppd.c:1347 msgid "Output Mode" msgstr "" #: ppdc/sample.c:252 msgid "PCL Laser Printer" msgstr "" #: ppdc/sample.c:149 msgid "PRC16K" msgstr "" #: ppdc/sample.c:150 msgid "PRC16K Long Edge" msgstr "" #: ppdc/sample.c:151 msgid "PRC32K" msgstr "" #: ppdc/sample.c:154 msgid "PRC32K Long Edge" msgstr "" #: ppdc/sample.c:152 msgid "PRC32K Oversize" msgstr "" #: ppdc/sample.c:153 msgid "PRC32K Oversize Long Edge" msgstr "" #: cups/dest.c:1858 msgid "PRINTER environment variable names default destination that does not exist." msgstr "" #: cups/snmp.c:968 msgid "Packet does not contain a Get-Response-PDU" msgstr "" #: cups/snmp.c:947 msgid "Packet does not start with SEQUENCE" msgstr "" #: ppdc/sample.c:355 msgid "ParamCustominCutInterval" msgstr "" #: ppdc/sample.c:353 msgid "ParamCustominTearInterval" msgstr "" #: cups/auth.c:235 cups/auth.c:394 #, c-format msgid "Password for %s on %s? " msgstr "" #: cgi-bin/classes.c:153 msgid "Pause Class" msgstr "" #: cgi-bin/printers.c:156 msgid "Pause Printer" msgstr "" #: ppdc/sample.c:443 msgid "Peel-Off" msgstr "" #: ppdc/sample.c:160 msgid "Photo" msgstr "" #: ppdc/sample.c:161 msgid "Photo Labels" msgstr "" #: ppdc/sample.c:281 msgid "Plain Paper" msgstr "" #: cgi-bin/admin.c:2803 cgi-bin/admin.c:3087 msgid "Policies" msgstr "" #: cgi-bin/admin.c:2810 cgi-bin/admin.c:3156 cgi-bin/admin.c:3169 msgid "Port Monitor" msgstr "" #: ppdc/sample.c:270 msgid "PostScript Printer" msgstr "" #: ppdc/sample.c:147 msgid "Postcard" msgstr "" #: ppdc/sample.c:71 msgid "Postcard Double" msgstr "" #: ppdc/sample.c:72 msgid "Postcard Double Long Edge" msgstr "" #: ppdc/sample.c:148 msgid "Postcard Long Edge" msgstr "" #: backend/ipp.c:973 backend/ipp.c:981 msgid "Preparing to print." msgstr "" #: ppdc/sample.c:290 msgid "Print Density" msgstr "" #: cups/notify.c:69 msgid "Print Job:" msgstr "" #: ppdc/sample.c:335 msgid "Print Mode" msgstr "" #: cups/ppd-cache.c:4281 cups/ppd-cache.c:4343 cups/ppd-cache.c:4383 msgid "Print Quality" msgstr "" #: ppdc/sample.c:378 msgid "Print Rate" msgstr "" #: cgi-bin/printers.c:165 msgid "Print Self-Test Page" msgstr "" #: ppdc/sample.c:322 msgid "Print Speed" msgstr "" #: cgi-bin/ipp-var.c:774 msgid "Print Test Page" msgstr "" #: ppdc/sample.c:351 msgid "Print and Cut" msgstr "" #: ppdc/sample.c:339 msgid "Print and Tear" msgstr "" #: backend/socket.c:406 backend/usb-unix.c:177 msgid "Print file sent." msgstr "" #: backend/ipp.c:2261 msgid "Print job canceled at printer." msgstr "Udskrivningsjob annulleret på printer." #: backend/ipp.c:2253 msgid "Print job too large." msgstr "" #: backend/ipp.c:1721 msgid "Print job was not accepted." msgstr "" #: scheduler/ipp.c:5465 #, c-format msgid "Printer \"%s\" already exists." msgstr "" #: cgi-bin/ipp-var.c:1024 msgid "Printer Added" msgstr "" #: ppdc/sample.c:255 msgid "Printer Default" msgstr "" #: cgi-bin/ipp-var.c:1028 msgid "Printer Deleted" msgstr "" #: cgi-bin/ipp-var.c:1026 msgid "Printer Modified" msgstr "" #: cgi-bin/ipp-var.c:1022 msgid "Printer Paused" msgstr "" #: ppdc/sample.c:289 msgid "Printer Settings" msgstr "" #: backend/ipp.c:2256 msgid "Printer cannot print supplied content." msgstr "" #: backend/ipp.c:2259 msgid "Printer cannot print with supplied options." msgstr "" #: cups/ppd-cache.c:4556 msgid "Printer does not support required IPP attributes or document formats." msgstr "" #: cups/notify.c:113 msgid "Printer:" msgstr "" #: cgi-bin/printers.c:190 cgi-bin/printers.c:317 msgid "Printers" msgstr "" #: filter/rastertoepson.c:1107 filter/rastertohp.c:774 #: filter/rastertolabel.c:1235 #, c-format msgid "Printing page %d, %u%% complete." msgstr "" #: cups/ppd-cache.c:4111 msgid "Punch" msgstr "" #: ppdc/sample.c:155 msgid "Quarto" msgstr "" #: scheduler/ipp.c:1505 scheduler/ipp.c:10974 msgid "Quota limit reached." msgstr "" #: berkeley/lpq.c:495 msgid "Rank Owner Job File(s) Total Size" msgstr "" #: cgi-bin/classes.c:157 cgi-bin/printers.c:160 msgid "Reject Jobs" msgstr "" #: backend/lpd.c:1074 backend/lpd.c:1206 #, c-format msgid "Remote host did not accept control file (%d)." msgstr "" #: backend/lpd.c:1159 #, c-format msgid "Remote host did not accept data file (%d)." msgstr "" #: ppdc/sample.c:423 msgid "Reprint After Error" msgstr "" #: cups/http-support.c:1525 msgid "Request Entity Too Large" msgstr "" #: cups/ppd.c:812 cups/ppd.c:1349 ppdc/sample.c:231 msgid "Resolution" msgstr "" #: cgi-bin/classes.c:151 msgid "Resume Class" msgstr "" #: cgi-bin/printers.c:153 msgid "Resume Printer" msgstr "" #: ppdc/sample.c:165 msgid "Return Address" msgstr "" #: ppdc/sample.c:444 msgid "Rewind" msgstr "" #: cups/snmp.c:949 msgid "SEQUENCE uses indefinite length" msgstr "" #: cups/http-support.c:1549 msgid "SSL/TLS Negotiation Error" msgstr "" #: cups/http-support.c:1506 msgid "See Other" msgstr "" #: scheduler/ipp.c:7099 scheduler/ipp.c:7118 msgid "See remote printer." msgstr "" #: cups/tls-darwin.c:765 cups/tls-gnutls.c:606 msgid "Self-signed credentials are blocked." msgstr "" #: backend/usb-darwin.c:566 backend/usb-libusb.c:343 msgid "Sending data to printer." msgstr "" #: cgi-bin/ipp-var.c:1038 msgid "Server Restarted" msgstr "" #: cgi-bin/ipp-var.c:1044 msgid "Server Security Auditing" msgstr "" #: cgi-bin/ipp-var.c:1040 msgid "Server Started" msgstr "" #: cgi-bin/ipp-var.c:1042 msgid "Server Stopped" msgstr "" #: cups/tls-darwin.c:1275 cups/tls-gnutls.c:1298 msgid "Server credentials not set." msgstr "" #: cups/http-support.c:1543 msgid "Service Unavailable" msgstr "" #: cgi-bin/admin.c:2290 cgi-bin/admin.c:2336 cgi-bin/admin.c:2493 #: cgi-bin/admin.c:2512 msgid "Set Allowed Users" msgstr "" #: cgi-bin/admin.c:2539 msgid "Set As Server Default" msgstr "" #: cgi-bin/admin.c:2639 msgid "Set Class Options" msgstr "" #: cgi-bin/admin.c:2639 cgi-bin/admin.c:2813 cgi-bin/admin.c:3198 msgid "Set Printer Options" msgstr "" #: cgi-bin/admin.c:3368 cgi-bin/admin.c:3412 cgi-bin/admin.c:3430 msgid "Set Publishing" msgstr "" #: ppdc/sample.c:166 msgid "Shipping Address" msgstr "" #: cups/ppd-cache.c:3872 ppdc/sample.c:265 msgid "Short-Edge (Landscape)" msgstr "" #: ppdc/sample.c:283 msgid "Special Paper" msgstr "" #: backend/lpd.c:1115 #, c-format msgid "Spooling job, %.0f%% complete." msgstr "" #: ppdc/sample.c:336 msgid "Standard" msgstr "" #: cups/ppd-cache.c:4011 msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. #: cgi-bin/admin.c:3059 msgid "Starting Banner" msgstr "" #: filter/rastertoepson.c:1083 filter/rastertohp.c:750 #: filter/rastertolabel.c:1211 #, c-format msgid "Starting page %d." msgstr "" #: ppdc/sample.c:156 msgid "Statement" msgstr "" #: scheduler/ipp.c:3591 scheduler/ipp.c:6911 scheduler/ipp.c:7636 #: scheduler/ipp.c:9160 #, c-format msgid "Subscription #%d does not exist." msgstr "" #: tools/ippfind.c:2812 msgid "Substitutions:" msgstr "" #: ppdc/sample.c:157 msgid "Super A" msgstr "" #: ppdc/sample.c:158 msgid "Super B" msgstr "" #: ppdc/sample.c:162 msgid "Super B/A3" msgstr "" #: cups/http-support.c:1485 msgid "Switching Protocols" msgstr "" #: ppdc/sample.c:159 msgid "Tabloid" msgstr "" #: ppdc/sample.c:45 msgid "Tabloid Oversize" msgstr "" #: ppdc/sample.c:46 msgid "Tabloid Oversize Long Edge" msgstr "" #: ppdc/sample.c:337 msgid "Tear" msgstr "" #: ppdc/sample.c:442 msgid "Tear-Off" msgstr "" #: ppdc/sample.c:383 msgid "Tear-Off Adjust Position" msgstr "" #: scheduler/ipp.c:1341 #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "" #: scheduler/ipp.c:6572 scheduler/ipp.c:6652 scheduler/ipp.c:6665 #: scheduler/ipp.c:6677 scheduler/ipp.c:6692 #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "" #: scheduler/ipp.c:1320 #, c-format msgid "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #: scheduler/ipp.c:5194 #, c-format msgid "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" #: scheduler/ipp.c:7141 #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "" #: scheduler/ipp.c:7130 #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "" #: filter/rastertoepson.c:1052 filter/rastertohp.c:721 #: filter/rastertolabel.c:1175 msgid "The PPD file could not be opened." msgstr "" #: cgi-bin/admin.c:515 msgid "The class name may only contain up to 127 printable characters and may not contain spaces, slashes (/), or the pound sign (#)." msgstr "" #: scheduler/ipp.c:2097 msgid "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" #: scheduler/ipp.c:2080 scheduler/ipp.c:5804 #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "" #: backend/ipp.c:993 msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" #: backend/lpd.c:678 backend/lpd.c:1067 backend/lpd.c:1149 backend/lpd.c:1199 msgid "The printer did not respond." msgstr "" #: backend/ipp.c:766 backend/ipp.c:956 backend/ipp.c:1070 backend/ipp.c:1523 #: backend/ipp.c:1693 backend/lpd.c:886 backend/socket.c:354 #: backend/usb-unix.c:117 backend/usb-unix.c:407 backend/usb-unix.c:490 msgid "The printer is in use." msgstr "" #: backend/runloop.c:236 backend/runloop.c:356 msgid "The printer is not connected." msgstr "" #: backend/ipp.c:744 backend/ipp.c:777 backend/ipp.c:952 backend/lpd.c:865 #: backend/lpd.c:906 backend/socket.c:333 backend/socket.c:366 msgid "The printer is not responding." msgstr "" #: backend/runloop.c:378 msgid "The printer is now connected." msgstr "" #: backend/usb-darwin.c:1342 msgid "The printer is now online." msgstr "" #: backend/usb-darwin.c:1381 msgid "The printer is offline." msgstr "" #: backend/ipp.c:760 backend/lpd.c:880 backend/socket.c:348 msgid "The printer is unreachable at this time." msgstr "" #: backend/ipp.c:753 backend/lpd.c:873 backend/socket.c:341 msgid "The printer may not exist or is unavailable at this time." msgstr "" #: cgi-bin/admin.c:698 msgid "The printer name may only contain up to 127 printable characters and may not contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the pound sign (#)." msgstr "" #: scheduler/ipp.c:762 scheduler/ipp.c:1047 scheduler/ipp.c:3230 #: scheduler/ipp.c:3411 scheduler/ipp.c:5177 scheduler/ipp.c:5638 #: scheduler/ipp.c:5972 scheduler/ipp.c:6538 scheduler/ipp.c:7345 #: scheduler/ipp.c:7401 scheduler/ipp.c:7742 scheduler/ipp.c:8017 #: scheduler/ipp.c:8106 scheduler/ipp.c:8139 scheduler/ipp.c:8463 #: scheduler/ipp.c:8870 scheduler/ipp.c:8952 scheduler/ipp.c:10122 #: scheduler/ipp.c:10584 scheduler/ipp.c:10937 scheduler/ipp.c:11019 #: scheduler/ipp.c:11348 msgid "The printer or class does not exist." msgstr "" #: scheduler/ipp.c:1259 msgid "The printer or class is not shared." msgstr "" #: scheduler/ipp.c:868 scheduler/ipp.c:2261 #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "" #: scheduler/ipp.c:3207 msgid "The printer-uri attribute is required." msgstr "" #: scheduler/ipp.c:852 msgid "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" #: scheduler/ipp.c:2245 msgid "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" #: scheduler/client.c:2003 msgid "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to enable it." msgstr "" #: scheduler/ipp.c:6636 #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "" #: scheduler/ipp.c:5901 msgid "There are too many subscriptions." msgstr "" #: backend/usb-darwin.c:398 backend/usb-darwin.c:464 backend/usb-darwin.c:528 #: backend/usb-darwin.c:549 backend/usb-libusb.c:268 backend/usb-libusb.c:322 msgid "There was an unrecoverable USB error." msgstr "" #: ppdc/sample.c:430 msgid "Thermal Transfer Media" msgstr "" #: scheduler/ipp.c:1499 msgid "Too many active jobs." msgstr "" #: scheduler/ipp.c:1393 #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "" #: scheduler/ipp.c:2574 #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "" #: ppdc/sample.c:284 msgid "Transparency" msgstr "" #: ppdc/sample.c:279 msgid "Tray" msgstr "" #: ppdc/sample.c:256 msgid "Tray 1" msgstr "" #: ppdc/sample.c:257 msgid "Tray 2" msgstr "" #: ppdc/sample.c:258 msgid "Tray 3" msgstr "" #: ppdc/sample.c:259 msgid "Tray 4" msgstr "" #: cups/tls-darwin.c:670 cups/tls-darwin.c:752 cups/tls-gnutls.c:504 #: cups/tls-gnutls.c:586 msgid "Trust on first use is disabled." msgstr "" #: cups/http-support.c:1528 msgid "URI Too Long" msgstr "" #: cups/http-support.c:1603 msgid "URI too large" msgstr "" #: ppdc/sample.c:124 msgid "US Fanfold" msgstr "" #: ppdc/sample.c:138 msgid "US Ledger" msgstr "" #: ppdc/sample.c:139 msgid "US Legal" msgstr "" #: ppdc/sample.c:140 msgid "US Legal Oversize" msgstr "" #: ppdc/sample.c:141 msgid "US Letter" msgstr "" #: ppdc/sample.c:142 msgid "US Letter Long Edge" msgstr "" #: ppdc/sample.c:143 msgid "US Letter Oversize" msgstr "" #: ppdc/sample.c:144 msgid "US Letter Oversize Long Edge" msgstr "" #: ppdc/sample.c:145 msgid "US Letter Small" msgstr "" #: cgi-bin/admin.c:1651 cgi-bin/admin.c:1664 cgi-bin/admin.c:1688 msgid "Unable to access cupsd.conf file" msgstr "" #: cgi-bin/help.c:123 msgid "Unable to access help file." msgstr "" #: cgi-bin/admin.c:580 msgid "Unable to add class" msgstr "" #: backend/ipp.c:1880 msgid "Unable to add document to print job." msgstr "" #: scheduler/ipp.c:1574 #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "" #: cgi-bin/admin.c:823 cgi-bin/admin.c:1193 msgid "Unable to add printer" msgstr "" #: scheduler/ipp.c:1177 msgid "Unable to allocate memory for file types." msgstr "" #: filter/pstops.c:415 msgid "Unable to allocate memory for page info" msgstr "" #: filter/pstops.c:409 msgid "Unable to allocate memory for pages array" msgstr "" #: tools/ippeveprinter.c:1486 msgid "Unable to allocate memory for printer" msgstr "" #: backend/ipp.c:2165 backend/ipp.c:2696 msgid "Unable to cancel print job." msgstr "Kan ikke annullere udskrivningsjob." #: cgi-bin/admin.c:2494 msgid "Unable to change printer" msgstr "" #: cgi-bin/admin.c:3413 msgid "Unable to change printer-is-shared attribute" msgstr "" #: cgi-bin/admin.c:1349 cgi-bin/admin.c:1491 msgid "Unable to change server settings" msgstr "" #: cups/ipp.c:5179 #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" #: cups/ipp.c:5134 #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" #: filter/commandtops.c:401 msgid "Unable to configure printer options." msgstr "" #: cups/adminutil.c:158 cups/request.c:1057 msgid "Unable to connect to host." msgstr "" #: backend/ipp.c:723 backend/ipp.c:1275 backend/lpd.c:846 backend/socket.c:314 #: backend/usb-unix.c:103 msgid "Unable to contact printer, queuing on next printer in class." msgstr "" #: scheduler/ipp.c:2676 #, c-format msgid "Unable to copy PPD file - %s" msgstr "" #: scheduler/ipp.c:2721 msgid "Unable to copy PPD file." msgstr "" #: cups/tls-darwin.c:636 cups/tls-gnutls.c:467 msgid "Unable to create credentials from array." msgstr "" #: cups/ppd-util.c:573 cups/util.c:478 msgid "Unable to create printer-uri" msgstr "" #: scheduler/ipp.c:5475 msgid "Unable to create printer." msgstr "" #: cups/tls-darwin.c:1566 cups/tls-gnutls.c:1510 msgid "Unable to create server credentials." msgstr "" #: tools/ippeveprinter.c:626 #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" #: cgi-bin/admin.c:1542 cgi-bin/admin.c:1554 scheduler/cupsfilter.c:1284 msgid "Unable to create temporary file" msgstr "" #: cgi-bin/admin.c:1845 msgid "Unable to delete class" msgstr "" #: cgi-bin/admin.c:1930 msgid "Unable to delete printer" msgstr "" #: cgi-bin/classes.c:246 cgi-bin/printers.c:255 msgid "Unable to do maintenance command" msgstr "" #: cgi-bin/admin.c:1666 msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "" #: cups/tls-darwin.c:1793 #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" #: cups/tls-darwin.c:1754 msgid "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" #: cups/tls-darwin.c:1744 msgid "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" #: cups/tls-darwin.c:1739 msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" #: cups/tls-darwin.c:1749 msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" #: cups/tls-darwin.c:1759 msgid "Unable to establish a secure connection to host (peer dropped connection before responding)." msgstr "" #: cups/tls-darwin.c:1734 msgid "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" #: cups/tls-darwin.c:1729 msgid "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" #: cups/tls-sspi.c:1277 cups/tls-sspi.c:1294 msgid "Unable to establish a secure connection to host." msgstr "" #: tools/ippeveprinter.c:1461 tools/ippeveprinter.c:1471 #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" #: cgi-bin/ipp-var.c:347 msgid "Unable to find destination for job" msgstr "" #: cups/http-support.c:2094 msgid "Unable to find printer." msgstr "" #: cups/tls-darwin.c:1579 msgid "Unable to find server credentials." msgstr "" #: backend/ipp.c:3359 msgid "Unable to get backend exit status." msgstr "" #: cgi-bin/classes.c:426 msgid "Unable to get class list" msgstr "" #: cgi-bin/classes.c:525 msgid "Unable to get class status" msgstr "" #: cgi-bin/admin.c:1087 msgid "Unable to get list of printer drivers" msgstr "" #: cgi-bin/admin.c:2344 msgid "Unable to get printer attributes" msgstr "" #: cgi-bin/printers.c:443 msgid "Unable to get printer list" msgstr "" #: cgi-bin/printers.c:545 msgid "Unable to get printer status" msgstr "" #: backend/ipp.c:1017 msgid "Unable to get printer status." msgstr "" #: cgi-bin/help.c:82 msgid "Unable to load help index." msgstr "" #: backend/network.c:69 #, c-format msgid "Unable to locate printer \"%s\"." msgstr "" #: backend/dnssd.c:752 backend/ipp.c:336 backend/lpd.c:181 #: backend/socket.c:155 msgid "Unable to locate printer." msgstr "" #: cgi-bin/admin.c:579 msgid "Unable to modify class" msgstr "" #: cgi-bin/admin.c:822 cgi-bin/admin.c:1192 msgid "Unable to modify printer" msgstr "" #: cgi-bin/ipp-var.c:414 cgi-bin/ipp-var.c:503 msgid "Unable to move job" msgstr "" #: cgi-bin/ipp-var.c:416 cgi-bin/ipp-var.c:505 msgid "Unable to move jobs" msgstr "" #: cgi-bin/admin.c:2690 cups/ppd.c:284 msgid "Unable to open PPD file" msgstr "" #: cgi-bin/admin.c:2161 msgid "Unable to open cupsd.conf file:" msgstr "" #: backend/usb-unix.c:127 msgid "Unable to open device file" msgstr "" #: scheduler/ipp.c:6315 #, c-format msgid "Unable to open document #%d in job #%d." msgstr "" #: cgi-bin/help.c:356 msgid "Unable to open help file." msgstr "" #: backend/ipp.c:377 backend/ipp.c:1620 backend/ipp.c:1833 backend/lpd.c:469 #: backend/socket.c:142 backend/usb.c:224 filter/gziptoany.c:65 #: filter/pstops.c:262 msgid "Unable to open print file" msgstr "" #: filter/rastertoepson.c:1012 filter/rastertohp.c:681 #: filter/rastertolabel.c:1133 msgid "Unable to open raster file" msgstr "" #: cgi-bin/ipp-var.c:777 msgid "Unable to print test page" msgstr "" #: backend/runloop.c:78 backend/runloop.c:307 backend/usb-darwin.c:636 #: backend/usb-darwin.c:680 backend/usb-libusb.c:413 backend/usb-libusb.c:448 msgid "Unable to read print data." msgstr "" #: tools/ippeveprinter.c:6613 tools/ippeveprinter.c:6631 #: tools/ippeveprinter.c:6650 tools/ippeveprinter.c:6664 #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" #: scheduler/ipp.c:8622 scheduler/ipp.c:9865 msgid "Unable to rename job document file." msgstr "" #: cups/dest.c:3265 msgid "Unable to resolve printer-uri." msgstr "" #: filter/pstops.c:527 msgid "Unable to see in file" msgstr "" #: cgi-bin/ipp-var.c:580 cgi-bin/ipp-var.c:600 msgid "Unable to send command to printer driver" msgstr "" #: backend/usb-darwin.c:758 backend/usb-libusb.c:524 msgid "Unable to send data to printer." msgstr "" #: cgi-bin/admin.c:3314 msgid "Unable to set options" msgstr "" #: cgi-bin/admin.c:2581 msgid "Unable to set server default" msgstr "" #: backend/ipp.c:3218 backend/ipp.c:3295 backend/ipp.c:3303 msgid "Unable to start backend process." msgstr "" #: cgi-bin/admin.c:1604 msgid "Unable to upload cupsd.conf file" msgstr "" #: backend/usb-darwin.c:2148 backend/usb-darwin.c:2172 msgid "Unable to use legacy USB class driver." msgstr "" #: backend/runloop.c:107 backend/runloop.c:362 msgid "Unable to write print data" msgstr "" #: filter/gziptoany.c:84 #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "" #: cups/http-support.c:1516 msgid "Unauthorized" msgstr "" #: cgi-bin/admin.c:3010 msgid "Units" msgstr "" #: cups/http-support.c:1556 cups/http-support.c:1640 cups/ppd.c:313 msgid "Unknown" msgstr "" #: filter/pstops.c:2182 #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "" #: tools/ippeveprinter.c:3848 #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #: backend/ipp.c:519 #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "" #: backend/lpd.c:327 #, c-format msgid "Unknown file order: \"%s\"." msgstr "" #: backend/lpd.c:298 #, c-format msgid "Unknown format character: \"%c\"." msgstr "" #: cups/hash.c:278 msgid "Unknown hash algorithm." msgstr "" #: cups/dest-options.c:1157 msgid "Unknown media size name." msgstr "" #: backend/ipp.c:583 #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "" #: filter/pstops.c:2165 #, c-format msgid "Unknown option \"%s\"." msgstr "" #: backend/lpd.c:313 #, c-format msgid "Unknown print mode: \"%s\"." msgstr "" #: scheduler/ipp.c:10806 #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "" #: scheduler/ipp.c:10789 #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "" #: cups/http.c:2266 msgid "Unknown request method." msgstr "" #: cups/http.c:2286 msgid "Unknown request version." msgstr "" #: cups/http-support.c:1633 msgid "Unknown scheme in URI" msgstr "" #: cups/http-addrlist.c:824 msgid "Unknown service name." msgstr "" #: backend/ipp.c:548 #, c-format msgid "Unknown version option value: \"%s\"." msgstr "" #: scheduler/ipp.c:11265 #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "" #: scheduler/ipp.c:11295 #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "" #: scheduler/ipp.c:7969 scheduler/ipp.c:10348 scheduler/ipp.c:11309 msgid "Unsupported 'job-hold-until' value." msgstr "" #: scheduler/ipp.c:11325 msgid "Unsupported 'job-name' value." msgstr "" #: scheduler/ipp.c:298 #, c-format msgid "Unsupported character set \"%s\"." msgstr "" #: scheduler/ipp.c:8429 scheduler/ipp.c:9677 #, c-format msgid "Unsupported compression \"%s\"." msgstr "" #: scheduler/ipp.c:8565 scheduler/ipp.c:9830 #, c-format msgid "Unsupported document-format \"%s\"." msgstr "" #: scheduler/ipp.c:9813 #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "" #: scheduler/ipp.c:1359 #, c-format msgid "Unsupported format \"%s\"." msgstr "" #: scheduler/ipp.c:1457 msgid "Unsupported margins." msgstr "" #: cups/pwg-media.c:541 msgid "Unsupported media value." msgstr "" #: filter/pstops.c:2447 #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" #: filter/pstops.c:2481 #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" #: filter/pstops.c:2532 #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" #: filter/rastertopwg.c:132 filter/rastertopwg.c:168 filter/rastertopwg.c:176 #: filter/rastertopwg.c:185 msgid "Unsupported raster data." msgstr "" #: cups/snmp.c:1066 msgid "Unsupported value type" msgstr "" #: cups/http-support.c:1531 msgid "Upgrade Required" msgstr "" #: systemv/cupsaccept.c:242 #, c-format msgid "Usage: %s [options] destination(s)" msgstr "Anvendelse: %s [tilvalg] destination(er)" #: backend/dnssd.c:192 backend/ipp.c:325 backend/lpd.c:168 #: backend/socket.c:119 backend/usb.c:170 filter/commandtops.c:57 #: filter/gziptoany.c:38 filter/pstops.c:223 monitor/bcp.c:48 #: monitor/tbcp.c:47 #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Anvendelse: %s job-id bruger titel kopier tilvalg [fil]" #: systemv/cancel.c:398 msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" "Anvendelse: cancel [tilvalg] [id]\n" " cancel [tilvalg] [destination]\n" " cancel [tilvalg] [destinations-id]" #: systemv/cupsctl.c:231 msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Anvendelse: cupsctl [tilvalg] [param=værdi ... paramN=værdiN]" #: scheduler/main.c:2132 msgid "Usage: cupsd [options]" msgstr "Anvendelse: cupsd [tilvalg]" #: scheduler/cupsfilter.c:1475 msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "Anvendelse: cupsfilter [ tilvalg ] [ -- ] filnavn" #: systemv/cupstestppd.c:3855 msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" "Anvendelse: cupstestppd [tilvalg] filnavn1.ppd[.gz] [... filnavnN.ppd[.gz]]\n" " program | cupstestppd [tilvalg] -" #: tools/ippeveprinter.c:7663 msgid "Usage: ippeveprinter [options] \"name\"" msgstr "Anvendelse: ippeveprinter [tilvalg] \"navn\"" #: tools/ippfind.c:2759 msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" "Anvendelse: ippfind [tilvalg] regtype[,undertype][.domæne.] ... [udtryk]\n" " ippfind [tilvalg] navn[.regtype[.domæne.]] ... [udtryk]\n" " ippfind --help\n" " ippfind --version" #: tools/ipptool.c:4306 msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Anvendelse: ipptool [tilvalg] URI filnavn [ ... filnavnN ]" #: systemv/lp.c:748 msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" "Anvendelse: lp [tilvalg] [--] [fil(er)]\n" " lp [tilvalg] -i id" #: systemv/lpadmin.c:1615 msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" "Anvendelse: lpadmin [tilvalg] -d destination\n" " lpadmin [tilvalg] -p destination\n" " lpadmin [tilvalg] -p destination -c klasse\n" " lpadmin [tilvalg] -p destination -r klasse\n" " lpadmin [tilvalg] -x destination" #: systemv/lpinfo.c:495 msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" "Anvendelse: lpinfo [tilvalg] -m\n" " lpinfo [tilvalg] -v" #: systemv/lpmove.c:214 msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" "Anvendelse: lpmove [tilvalg] job destination\n" " lpmove [tilvalg] kilde-destination destination" #: systemv/lpoptions.c:534 msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" "Anvendelse: lpoptions [tilvalg] -d destination\n" " lpoptions [tilvalg] [-p destination] [-l]\n" " lpoptions [tilvalg] [-p destination] -o tilvalg[=værdi]\n" " lpoptions [tilvalg] -x destination" #: berkeley/lpq.c:641 msgid "Usage: lpq [options] [+interval]" msgstr "Anvendelse: lpq [tilvalg] [+interval]" #: berkeley/lpr.c:430 msgid "Usage: lpr [options] [file(s)]" msgstr "Anvendelse: lpr [tilvalg] [fil(er)]" #: berkeley/lprm.c:230 msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" "Anvendelse: lprm [tilvalg] [id]\n" " lprm [tilvalg] -" #: systemv/lpstat.c:2043 msgid "Usage: lpstat [options]" msgstr "Anvendelse: lpstat [tilvalg]" #: ppdc/ppdc.cxx:424 msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Anvendelse: ppdc [tilvalg] filnavn.drv [ ... filnavnN.drv ]" #: ppdc/ppdhtml.cxx:171 msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Anvendelse: ppdhtml [tilvalg] filnavn.drv >filnavn.html" #: ppdc/ppdi.cxx:117 msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Anvendelse: ppdi [tilvalg] filnavn.ppd [ ... filnavnN.ppd ]" #: ppdc/ppdmerge.cxx:354 msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Anvendelse: ppdmerge [tilvalg] filnavn.ppd [ ... filnavnN.ppd ]" #: ppdc/ppdpo.cxx:241 msgid "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "Anvendelse: ppdpo [tilvalg] -o filnavn.po filnavn.drv [ ... filnavnN.drv ]" #: backend/snmp.c:185 msgid "Usage: snmp [host-or-ip-address]" msgstr "Anvendelse: snmp [vært-eller-ip-adresse]" #: tools/ippeveprinter.c:631 #, c-format msgid "Using spool directory \"%s\"." msgstr "" #: cups/snmp.c:1018 msgid "Value uses indefinite length" msgstr "" #: cups/snmp.c:1003 msgid "VarBind uses indefinite length" msgstr "" #: cups/snmp.c:953 msgid "Version uses indefinite length" msgstr "" #: backend/ipp.c:2000 msgid "Waiting for job to complete." msgstr "" #: backend/usb-darwin.c:429 backend/usb-darwin.c:483 backend/usb-libusb.c:220 msgid "Waiting for printer to become available." msgstr "" #: backend/socket.c:417 msgid "Waiting for printer to finish." msgstr "" #: systemv/cupstestppd.c:3854 msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" #: cups/http-support.c:1552 msgid "Web Interface is Disabled" msgstr "" #: cups/ppd.c:1972 msgid "Yes" msgstr "Ja" #: scheduler/client.c:1991 msgid "You cannot access this page." msgstr "" #: scheduler/client.c:1997 #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "" #: scheduler/client.c:1989 msgid "Your account does not have the necessary privileges." msgstr "" #: ppdc/sample.c:434 msgid "ZPL Label Printer" msgstr "" #: ppdc/sample.c:357 msgid "Zebra" msgstr "" #: cups/notify.c:89 msgid "aborted" msgstr "" #. TRANSLATORS: Accuracy Units #: locale/ipp-strings.c:2 msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters #: locale/ipp-strings.c:4 msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers #: locale/ipp-strings.c:6 msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers #: locale/ipp-strings.c:8 msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output #: locale/ipp-strings.c:10 msgid "baling" msgstr "" #. TRANSLATORS: Bale Using #: locale/ipp-strings.c:12 msgid "baling-type" msgstr "" #. TRANSLATORS: Band #: locale/ipp-strings.c:14 msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap #: locale/ipp-strings.c:16 msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap #: locale/ipp-strings.c:18 msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After #: locale/ipp-strings.c:20 msgid "baling-when" msgstr "" #. TRANSLATORS: Job #: locale/ipp-strings.c:22 msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets #: locale/ipp-strings.c:24 msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output #: locale/ipp-strings.c:26 msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge #: locale/ipp-strings.c:28 msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:30 msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:32 msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:34 msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:36 msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type #: locale/ipp-strings.c:38 msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive #: locale/ipp-strings.c:40 msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb #: locale/ipp-strings.c:42 msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat #: locale/ipp-strings.c:44 msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding #: locale/ipp-strings.c:46 msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect #: locale/ipp-strings.c:48 msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral #: locale/ipp-strings.c:50 msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape #: locale/ipp-strings.c:52 msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo #: locale/ipp-strings.c:54 msgid "binding-type.velo" msgstr "" #: cups/notify.c:86 msgid "canceled" msgstr "" #. TRANSLATORS: Chamber Humidity #: locale/ipp-strings.c:56 msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature #: locale/ipp-strings.c:58 msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost #: locale/ipp-strings.c:60 msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets #: locale/ipp-strings.c:62 msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To #: locale/ipp-strings.c:64 msgid "coating-sides" msgstr "" #. TRANSLATORS: Back #: locale/ipp-strings.c:66 msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:68 msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front #: locale/ipp-strings.c:70 msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating #: locale/ipp-strings.c:72 msgid "coating-type" msgstr "" #. TRANSLATORS: Archival #: locale/ipp-strings.c:74 msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy #: locale/ipp-strings.c:76 msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte #: locale/ipp-strings.c:78 msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss #: locale/ipp-strings.c:80 msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:82 msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:84 msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:86 msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:88 msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone #: locale/ipp-strings.c:90 msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent #: locale/ipp-strings.c:92 msgid "coating-type.translucent" msgstr "" #: cups/notify.c:92 msgid "completed" msgstr "" #. TRANSLATORS: Print Confirmation Sheet #: locale/ipp-strings.c:94 msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:96 msgid "copies" msgstr "" #. TRANSLATORS: Back Cover #: locale/ipp-strings.c:98 msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover #: locale/ipp-strings.c:100 msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info #: locale/ipp-strings.c:102 msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time #: locale/ipp-strings.c:104 msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name #: locale/ipp-strings.c:106 msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo #: locale/ipp-strings.c:108 msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message #: locale/ipp-strings.c:110 msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization #: locale/ipp-strings.c:112 msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject #: locale/ipp-strings.c:114 msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name #: locale/ipp-strings.c:116 msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover #: locale/ipp-strings.c:118 msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover #: locale/ipp-strings.c:120 msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only #: locale/ipp-strings.c:122 msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:124 msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only #: locale/ipp-strings.c:126 msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:128 msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output #: locale/ipp-strings.c:130 msgid "covering" msgstr "" #. TRANSLATORS: Add Cover #: locale/ipp-strings.c:132 msgid "covering-name" msgstr "" #. TRANSLATORS: Plain #: locale/ipp-strings.c:134 msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut #: locale/ipp-strings.c:136 msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed #: locale/ipp-strings.c:138 msgid "covering-name.pre-printed" msgstr "" #: scheduler/ipp.c:6187 msgid "cups-deviced failed to execute." msgstr "" #: scheduler/ipp.c:7073 scheduler/ipp.c:7312 msgid "cups-driverd failed to execute." msgstr "" #: systemv/cupsctl.c:170 #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #: systemv/cupsctl.c:183 #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "" #: systemv/cupsctl.c:226 #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "" #: systemv/cupsctl.c:228 #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "" #: scheduler/main.c:174 msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" #: scheduler/main.c:270 msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" #: scheduler/main.c:244 msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" #: scheduler/main.c:281 msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" #: scheduler/main.c:205 scheduler/main.c:212 msgid "cupsd: Unable to get current directory." msgstr "" #: scheduler/main.c:340 scheduler/main.c:350 msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" #: scheduler/main.c:321 #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "" #: scheduler/main.c:312 #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "" #: scheduler/cupsfilter.c:1257 #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "" #: scheduler/cupsfilter.c:1251 #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "" #: scheduler/cupsfilter.c:342 msgid "cupsfilter: Only one filename can be specified." msgstr "" #: scheduler/cupsfilter.c:1299 #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "" #: systemv/cupstestppd.c:238 msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "" #: systemv/cupstestppd.c:254 msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "" #. TRANSLATORS: Detailed Status Message #: locale/ipp-strings.c:140 msgid "detailed-status-message" msgstr "" #: systemv/lpstat.c:1253 systemv/lpstat.c:1256 systemv/lpstat.c:1259 #, c-format msgid "device for %s/%s: %s" msgstr "" #: systemv/lpstat.c:1239 systemv/lpstat.c:1242 systemv/lpstat.c:1245 #, c-format msgid "device for %s: %s" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:142 msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes #: locale/ipp-strings.c:144 msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:146 msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:148 msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description #: locale/ipp-strings.c:150 msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template #: locale/ipp-strings.c:152 msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:154 msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope #: locale/ipp-strings.c:156 msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:158 msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:160 msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:162 msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:164 msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State #: locale/ipp-strings.c:166 msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State #: locale/ipp-strings.c:168 msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System #: locale/ipp-strings.c:170 msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device #: locale/ipp-strings.c:172 msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator #: locale/ipp-strings.c:174 msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User #: locale/ipp-strings.c:176 msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully #: locale/ipp-strings.c:178 msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors #: locale/ipp-strings.c:180 msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings #: locale/ipp-strings.c:182 msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error #: locale/ipp-strings.c:184 msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient #: locale/ipp-strings.c:186 msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify #: locale/ipp-strings.c:188 msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported #: locale/ipp-strings.c:190 msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait #: locale/ipp-strings.c:192 msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error #: locale/ipp-strings.c:194 msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable #: locale/ipp-strings.c:196 msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error #: locale/ipp-strings.c:198 msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error #: locale/ipp-strings.c:200 msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error #: locale/ipp-strings.c:202 msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error #: locale/ipp-strings.c:204 msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error #: locale/ipp-strings.c:206 msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected #: locale/ipp-strings.c:208 msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming #: locale/ipp-strings.c:210 msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting #: locale/ipp-strings.c:212 msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:214 msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing #: locale/ipp-strings.c:216 msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing #: locale/ipp-strings.c:218 msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point #: locale/ipp-strings.c:220 msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued #: locale/ipp-strings.c:222 msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker #: locale/ipp-strings.c:224 msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device #: locale/ipp-strings.c:226 msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready #: locale/ipp-strings.c:228 msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported #: locale/ipp-strings.c:230 msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted #: locale/ipp-strings.c:232 msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming #: locale/ipp-strings.c:234 msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression #: locale/ipp-strings.c:236 msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format #: locale/ipp-strings.c:238 msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected #: locale/ipp-strings.c:240 msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:242 msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:244 msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:246 msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:248 msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:250 msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:252 msgid "document-state.9" msgstr "" #: cups/snmp.c:990 msgid "error-index uses indefinite length" msgstr "" #: cups/snmp.c:982 msgid "error-status uses indefinite length" msgstr "" #: tools/ippfind.c:2808 msgid "" "expression --and expression\n" " Logical AND" msgstr "" #: tools/ippfind.c:2810 msgid "" "expression --or expression\n" " Logical OR" msgstr "" #: tools/ippfind.c:2807 msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation #: locale/ipp-strings.c:254 msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First #: locale/ipp-strings.c:256 msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First #: locale/ipp-strings.c:258 msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code #: locale/ipp-strings.c:260 msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template #: locale/ipp-strings.c:262 msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale #: locale/ipp-strings.c:264 msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind #: locale/ipp-strings.c:266 msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom #: locale/ipp-strings.c:268 msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left #: locale/ipp-strings.c:270 msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right #: locale/ipp-strings.c:272 msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top #: locale/ipp-strings.c:274 msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker #: locale/ipp-strings.c:276 msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat #: locale/ipp-strings.c:278 msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover #: locale/ipp-strings.c:280 msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch #: locale/ipp-strings.c:282 msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom #: locale/ipp-strings.c:284 msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left #: locale/ipp-strings.c:286 msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right #: locale/ipp-strings.c:288 msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top #: locale/ipp-strings.c:290 msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:292 msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold #: locale/ipp-strings.c:294 msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold #: locale/ipp-strings.c:296 msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold #: locale/ipp-strings.c:298 msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold #: locale/ipp-strings.c:300 msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold #: locale/ipp-strings.c:302 msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold #: locale/ipp-strings.c:304 msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold #: locale/ipp-strings.c:306 msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold #: locale/ipp-strings.c:308 msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold #: locale/ipp-strings.c:310 msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold #: locale/ipp-strings.c:312 msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold #: locale/ipp-strings.c:314 msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold #: locale/ipp-strings.c:316 msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 #: locale/ipp-strings.c:318 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 #: locale/ipp-strings.c:320 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 #: locale/ipp-strings.c:322 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 #: locale/ipp-strings.c:324 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 #: locale/ipp-strings.c:326 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 #: locale/ipp-strings.c:328 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 #: locale/ipp-strings.c:330 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 #: locale/ipp-strings.c:332 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 #: locale/ipp-strings.c:334 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 #: locale/ipp-strings.c:336 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 #: locale/ipp-strings.c:338 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 #: locale/ipp-strings.c:340 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 #: locale/ipp-strings.c:342 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 #: locale/ipp-strings.c:344 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 #: locale/ipp-strings.c:346 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 #: locale/ipp-strings.c:348 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 #: locale/ipp-strings.c:350 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 #: locale/ipp-strings.c:352 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 #: locale/ipp-strings.c:354 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 #: locale/ipp-strings.c:356 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 #: locale/ipp-strings.c:358 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 #: locale/ipp-strings.c:360 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 #: locale/ipp-strings.c:362 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 #: locale/ipp-strings.c:364 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 #: locale/ipp-strings.c:366 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 #: locale/ipp-strings.c:368 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 #: locale/ipp-strings.c:370 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 #: locale/ipp-strings.c:372 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 #: locale/ipp-strings.c:374 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 #: locale/ipp-strings.c:376 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 #: locale/ipp-strings.c:378 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 #: locale/ipp-strings.c:380 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 #: locale/ipp-strings.c:382 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 #: locale/ipp-strings.c:384 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 #: locale/ipp-strings.c:386 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 #: locale/ipp-strings.c:388 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 #: locale/ipp-strings.c:390 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 #: locale/ipp-strings.c:392 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 #: locale/ipp-strings.c:394 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 #: locale/ipp-strings.c:396 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 #: locale/ipp-strings.c:398 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 #: locale/ipp-strings.c:400 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 #: locale/ipp-strings.c:402 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 #: locale/ipp-strings.c:404 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 #: locale/ipp-strings.c:406 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 #: locale/ipp-strings.c:408 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 #: locale/ipp-strings.c:410 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 #: locale/ipp-strings.c:412 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 #: locale/ipp-strings.c:414 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 #: locale/ipp-strings.c:416 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 #: locale/ipp-strings.c:418 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 #: locale/ipp-strings.c:420 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 #: locale/ipp-strings.c:422 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 #: locale/ipp-strings.c:424 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 #: locale/ipp-strings.c:426 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 #: locale/ipp-strings.c:428 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 #: locale/ipp-strings.c:430 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 #: locale/ipp-strings.c:432 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 #: locale/ipp-strings.c:434 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 #: locale/ipp-strings.c:436 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 #: locale/ipp-strings.c:438 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 #: locale/ipp-strings.c:440 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 #: locale/ipp-strings.c:442 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 #: locale/ipp-strings.c:444 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 #: locale/ipp-strings.c:446 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 #: locale/ipp-strings.c:448 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 #: locale/ipp-strings.c:450 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 #: locale/ipp-strings.c:452 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 #: locale/ipp-strings.c:454 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 #: locale/ipp-strings.c:456 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 #: locale/ipp-strings.c:458 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 #: locale/ipp-strings.c:460 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 #: locale/ipp-strings.c:462 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 #: locale/ipp-strings.c:464 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 #: locale/ipp-strings.c:466 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 #: locale/ipp-strings.c:468 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 #: locale/ipp-strings.c:470 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 #: locale/ipp-strings.c:472 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 #: locale/ipp-strings.c:474 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 #: locale/ipp-strings.c:476 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 #: locale/ipp-strings.c:478 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 #: locale/ipp-strings.c:480 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 #: locale/ipp-strings.c:482 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 #: locale/ipp-strings.c:484 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 #: locale/ipp-strings.c:486 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 #: locale/ipp-strings.c:488 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 #: locale/ipp-strings.c:490 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 #: locale/ipp-strings.c:492 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 #: locale/ipp-strings.c:494 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset #: locale/ipp-strings.c:496 msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:498 msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch #: locale/ipp-strings.c:500 msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left #: locale/ipp-strings.c:502 msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right #: locale/ipp-strings.c:504 msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom #: locale/ipp-strings.c:506 msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left #: locale/ipp-strings.c:508 msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right #: locale/ipp-strings.c:510 msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top #: locale/ipp-strings.c:512 msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom #: locale/ipp-strings.c:514 msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left #: locale/ipp-strings.c:516 msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right #: locale/ipp-strings.c:518 msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top #: locale/ipp-strings.c:520 msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom #: locale/ipp-strings.c:522 msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left #: locale/ipp-strings.c:524 msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right #: locale/ipp-strings.c:526 msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top #: locale/ipp-strings.c:528 msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left #: locale/ipp-strings.c:530 msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right #: locale/ipp-strings.c:532 msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom #: locale/ipp-strings.c:534 msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left #: locale/ipp-strings.c:536 msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right #: locale/ipp-strings.c:538 msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top #: locale/ipp-strings.c:540 msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch #: locale/ipp-strings.c:542 msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:544 msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left #: locale/ipp-strings.c:546 msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right #: locale/ipp-strings.c:548 msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom #: locale/ipp-strings.c:550 msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left #: locale/ipp-strings.c:552 msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right #: locale/ipp-strings.c:554 msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top #: locale/ipp-strings.c:556 msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left #: locale/ipp-strings.c:558 msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right #: locale/ipp-strings.c:560 msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom #: locale/ipp-strings.c:562 msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left #: locale/ipp-strings.c:564 msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right #: locale/ipp-strings.c:566 msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top #: locale/ipp-strings.c:568 msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim #: locale/ipp-strings.c:570 msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set #: locale/ipp-strings.c:572 msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document #: locale/ipp-strings.c:574 msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job #: locale/ipp-strings.c:576 msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page #: locale/ipp-strings.c:578 msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Finishings #: locale/ipp-strings.c:580 msgid "finishings" msgstr "" #. TRANSLATORS: Finishings #: locale/ipp-strings.c:582 msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:584 msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold #: locale/ipp-strings.c:586 msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold #: locale/ipp-strings.c:588 msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim #: locale/ipp-strings.c:590 msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale #: locale/ipp-strings.c:592 msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker #: locale/ipp-strings.c:594 msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset #: locale/ipp-strings.c:596 msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat #: locale/ipp-strings.c:598 msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:600 msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left #: locale/ipp-strings.c:602 msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left #: locale/ipp-strings.c:604 msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right #: locale/ipp-strings.c:606 msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right #: locale/ipp-strings.c:608 msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left #: locale/ipp-strings.c:610 msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top #: locale/ipp-strings.c:612 msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right #: locale/ipp-strings.c:614 msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom #: locale/ipp-strings.c:616 msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left #: locale/ipp-strings.c:618 msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top #: locale/ipp-strings.c:620 msgid "finishings.29" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:622 msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right #: locale/ipp-strings.c:624 msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom #: locale/ipp-strings.c:626 msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left #: locale/ipp-strings.c:628 msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top #: locale/ipp-strings.c:630 msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right #: locale/ipp-strings.c:632 msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom #: locale/ipp-strings.c:634 msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:636 msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch #: locale/ipp-strings.c:638 msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left #: locale/ipp-strings.c:640 msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top #: locale/ipp-strings.c:642 msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right #: locale/ipp-strings.c:644 msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom #: locale/ipp-strings.c:646 msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover #: locale/ipp-strings.c:648 msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages #: locale/ipp-strings.c:650 msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents #: locale/ipp-strings.c:652 msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies #: locale/ipp-strings.c:654 msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job #: locale/ipp-strings.c:656 msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind #: locale/ipp-strings.c:658 msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left #: locale/ipp-strings.c:660 msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left #: locale/ipp-strings.c:662 msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right #: locale/ipp-strings.c:664 msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right #: locale/ipp-strings.c:666 msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left #: locale/ipp-strings.c:668 msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top #: locale/ipp-strings.c:670 msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right #: locale/ipp-strings.c:672 msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom #: locale/ipp-strings.c:674 msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left #: locale/ipp-strings.c:676 msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top #: locale/ipp-strings.c:678 msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch #: locale/ipp-strings.c:680 msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right #: locale/ipp-strings.c:682 msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom #: locale/ipp-strings.c:684 msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left #: locale/ipp-strings.c:686 msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top #: locale/ipp-strings.c:688 msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right #: locale/ipp-strings.c:690 msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom #: locale/ipp-strings.c:692 msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left #: locale/ipp-strings.c:694 msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top #: locale/ipp-strings.c:696 msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right #: locale/ipp-strings.c:698 msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom #: locale/ipp-strings.c:700 msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch #: locale/ipp-strings.c:702 msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold #: locale/ipp-strings.c:704 msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold #: locale/ipp-strings.c:706 msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold #: locale/ipp-strings.c:708 msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold #: locale/ipp-strings.c:710 msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold #: locale/ipp-strings.c:712 msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold #: locale/ipp-strings.c:714 msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold #: locale/ipp-strings.c:716 msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold #: locale/ipp-strings.c:718 msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold #: locale/ipp-strings.c:720 msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold #: locale/ipp-strings.c:722 msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:724 msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction #: locale/ipp-strings.c:726 msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward #: locale/ipp-strings.c:728 msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward #: locale/ipp-strings.c:730 msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position #: locale/ipp-strings.c:732 msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge #: locale/ipp-strings.c:734 msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:736 msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:738 msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:740 msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:742 msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name #: locale/ipp-strings.c:744 msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size #: locale/ipp-strings.c:746 msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side #: locale/ipp-strings.c:748 msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name #: locale/ipp-strings.c:750 msgid "from-name" msgstr "" #: cups/notify.c:77 msgid "held" msgstr "" #: berkeley/lpc.c:195 msgid "help\t\tGet help on commands." msgstr "" #: cups/notify.c:118 msgid "idle" msgstr "" #. TRANSLATORS: Imposition Template #: locale/ipp-strings.c:752 msgid "imposition-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:754 msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature #: locale/ipp-strings.c:756 msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number #: locale/ipp-strings.c:758 msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count #: locale/ipp-strings.c:760 msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet #: locale/ipp-strings.c:762 msgid "insert-sheet" msgstr "" #: tools/ippeveprinter.c:4702 #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #: tools/ippfind.c:2478 #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "" #: tools/ippfind.c:295 msgid "ippfind: Cannot use --and after --or." msgstr "" #: tools/ippfind.c:580 #, c-format msgid "ippfind: Expected key name after %s." msgstr "" #: tools/ippfind.c:530 tools/ippfind.c:725 #, c-format msgid "ippfind: Expected port range after %s." msgstr "" #: tools/ippfind.c:328 #, c-format msgid "ippfind: Expected program after %s." msgstr "" #: tools/ippfind.c:345 #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "" #: tools/ippfind.c:1981 msgid "ippfind: Missing close brace in substitution." msgstr "" #: tools/ippfind.c:1044 msgid "ippfind: Missing close parenthesis." msgstr "" #: tools/ippfind.c:302 msgid "ippfind: Missing expression before \"--and\"." msgstr "" #: tools/ippfind.c:427 msgid "ippfind: Missing expression before \"--or\"." msgstr "" #: tools/ippfind.c:862 #, c-format msgid "ippfind: Missing key name after %s." msgstr "" #: tools/ippfind.c:396 tools/ippfind.c:712 #, c-format msgid "ippfind: Missing name after %s." msgstr "" #: tools/ippfind.c:1015 msgid "ippfind: Missing open parenthesis." msgstr "" #: tools/ippfind.c:892 #, c-format msgid "ippfind: Missing program after %s." msgstr "" #: tools/ippfind.c:314 tools/ippfind.c:368 tools/ippfind.c:409 #: tools/ippfind.c:515 tools/ippfind.c:597 tools/ippfind.c:612 #: tools/ippfind.c:779 tools/ippfind.c:794 tools/ippfind.c:817 #: tools/ippfind.c:877 #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "" #: tools/ippfind.c:910 #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "" #: tools/ippfind.c:1928 tools/ippfind.c:1953 msgid "ippfind: Out of memory." msgstr "" #: tools/ippfind.c:988 msgid "ippfind: Too many parenthesis." msgstr "" #: tools/ippfind.c:1287 tools/ippfind.c:1415 tools/ippfind.c:2570 #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "" #: tools/ippfind.c:2051 tools/ippfind.c:2078 #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "" #: tools/ippfind.c:1134 tools/ippfind.c:1142 tools/ippfind.c:1153 #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "" #: tools/ippfind.c:2010 #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "" #: tools/ipptool.c:566 tools/ipptool.c:588 msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", and \"-X\"." msgstr "" #: tools/ipptool.c:351 tools/ipptool.c:422 msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #: tools/ipptool.c:634 #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" #: tools/ipptool.c:559 msgid "ipptool: Invalid seconds for \"-i\"." msgstr "" #: tools/ipptool.c:623 msgid "ipptool: May only specify a single URI." msgstr "" #: tools/ipptool.c:580 msgid "ipptool: Missing count for \"-n\"." msgstr "" #: tools/ipptool.c:268 msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" #: tools/ipptool.c:456 msgid "ipptool: Missing filename for \"-f\"." msgstr "" #: tools/ipptool.c:437 msgid "ipptool: Missing name=value for \"-d\"." msgstr "" #: tools/ipptool.c:551 msgid "ipptool: Missing seconds for \"-i\"." msgstr "" #: tools/ipptool.c:649 msgid "ipptool: URI required before test file." msgstr "" #. TRANSLATORS: Job Account ID #: locale/ipp-strings.c:764 msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type #: locale/ipp-strings.c:766 msgid "job-account-type" msgstr "" #. TRANSLATORS: General #: locale/ipp-strings.c:768 msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group #: locale/ipp-strings.c:770 msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:772 msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin #: locale/ipp-strings.c:774 msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets #: locale/ipp-strings.c:776 msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets #: locale/ipp-strings.c:778 msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:780 msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:782 msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID #: locale/ipp-strings.c:784 msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After #: locale/ipp-strings.c:786 msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:788 msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover #: locale/ipp-strings.c:790 msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover #: locale/ipp-strings.c:792 msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until #: locale/ipp-strings.c:794 msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until #: locale/ipp-strings.c:796 msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime #: locale/ipp-strings.c:798 msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening #: locale/ipp-strings.c:800 msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released #: locale/ipp-strings.c:802 msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night #: locale/ipp-strings.c:804 msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay #: locale/ipp-strings.c:806 msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift #: locale/ipp-strings.c:808 msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift #: locale/ipp-strings.c:810 msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend #: locale/ipp-strings.c:812 msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error #: locale/ipp-strings.c:814 msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job #: locale/ipp-strings.c:816 msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job #: locale/ipp-strings.c:818 msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job #: locale/ipp-strings.c:820 msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job #: locale/ipp-strings.c:822 msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet #: locale/ipp-strings.c:824 msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet #: locale/ipp-strings.c:826 msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:828 msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:830 msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet #: locale/ipp-strings.c:832 msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always #: locale/ipp-strings.c:834 msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error #: locale/ipp-strings.c:836 msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings #: locale/ipp-strings.c:838 msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until #: locale/ipp-strings.c:840 msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until #: locale/ipp-strings.c:842 msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime #: locale/ipp-strings.c:844 msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening #: locale/ipp-strings.c:846 msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released #: locale/ipp-strings.c:848 msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night #: locale/ipp-strings.c:850 msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold #: locale/ipp-strings.c:852 msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift #: locale/ipp-strings.c:854 msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift #: locale/ipp-strings.c:856 msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend #: locale/ipp-strings.c:858 msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes #: locale/ipp-strings.c:860 msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title #: locale/ipp-strings.c:862 msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages #: locale/ipp-strings.c:864 msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages #: locale/ipp-strings.c:866 msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number #: locale/ipp-strings.c:868 msgid "job-phone-number" msgstr "" #: scheduler/ipp.c:8095 msgid "job-printer-uri attribute missing." msgstr "" #. TRANSLATORS: Job Priority #: locale/ipp-strings.c:870 msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes #: locale/ipp-strings.c:872 msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:874 msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:876 msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description #: locale/ipp-strings.c:878 msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template #: locale/ipp-strings.c:880 msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:882 msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope #: locale/ipp-strings.c:884 msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:886 msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:888 msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:890 msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:892 msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name #: locale/ipp-strings.c:894 msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until #: locale/ipp-strings.c:896 msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval #: locale/ipp-strings.c:898 msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time #: locale/ipp-strings.c:900 msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day #: locale/ipp-strings.c:902 msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month #: locale/ipp-strings.c:904 msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week #: locale/ipp-strings.c:906 msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite #: locale/ipp-strings.c:908 msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:910 msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition #: locale/ipp-strings.c:912 msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message #: locale/ipp-strings.c:914 msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page #: locale/ipp-strings.c:916 msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page #: locale/ipp-strings.c:918 msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document #: locale/ipp-strings.c:920 msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets #: locale/ipp-strings.c:922 msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet #: locale/ipp-strings.c:924 msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet #: locale/ipp-strings.c:926 msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:928 msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:930 msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State #: locale/ipp-strings.c:932 msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message #: locale/ipp-strings.c:934 msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State #: locale/ipp-strings.c:936 msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:938 msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed #: locale/ipp-strings.c:940 msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed #: locale/ipp-strings.c:942 msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed #: locale/ipp-strings.c:944 msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached #: locale/ipp-strings.c:946 msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error #: locale/ipp-strings.c:948 msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes #: locale/ipp-strings.c:950 msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination #: locale/ipp-strings.c:952 msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination #: locale/ipp-strings.c:954 msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed #: locale/ipp-strings.c:956 msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify #: locale/ipp-strings.c:958 msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported #: locale/ipp-strings.c:960 msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error #: locale/ipp-strings.c:962 msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error #: locale/ipp-strings.c:964 msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error #: locale/ipp-strings.c:966 msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error #: locale/ipp-strings.c:968 msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error #: locale/ipp-strings.c:970 msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error #: locale/ipp-strings.c:972 msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected #: locale/ipp-strings.c:974 msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer #: locale/ipp-strings.c:976 msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator #: locale/ipp-strings.c:978 msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user #: locale/ipp-strings.c:980 msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: #: locale/ipp-strings.c:982 msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors #: locale/ipp-strings.c:984 msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings #: locale/ipp-strings.c:986 msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data #: locale/ipp-strings.c:988 msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified #: locale/ipp-strings.c:990 msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait #: locale/ipp-strings.c:992 msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable #: locale/ipp-strings.c:994 msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review #: locale/ipp-strings.c:996 msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held #: locale/ipp-strings.c:998 msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming #: locale/ipp-strings.c:1000 msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting #: locale/ipp-strings.c:1002 msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing #: locale/ipp-strings.c:1004 msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait #: locale/ipp-strings.c:1006 msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully #: locale/ipp-strings.c:1008 msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors #: locale/ipp-strings.c:1010 msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings #: locale/ipp-strings.c:1012 msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing #: locale/ipp-strings.c:1014 msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print #: locale/ipp-strings.c:1016 msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document #: locale/ipp-strings.c:1018 msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait #: locale/ipp-strings.c:1020 msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable #: locale/ipp-strings.c:1022 msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming #: locale/ipp-strings.c:1024 msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully #: locale/ipp-strings.c:1026 msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors #: locale/ipp-strings.c:1028 msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings #: locale/ipp-strings.c:1030 msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving #: locale/ipp-strings.c:1032 msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling #: locale/ipp-strings.c:1034 msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming #: locale/ipp-strings.c:1036 msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended #: locale/ipp-strings.c:1038 msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator #: locale/ipp-strings.c:1040 msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System #: locale/ipp-strings.c:1042 msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User #: locale/ipp-strings.c:1044 msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending #: locale/ipp-strings.c:1046 msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring #: locale/ipp-strings.c:1048 msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming #: locale/ipp-strings.c:1050 msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1052 msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline #: locale/ipp-strings.c:1054 msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped #: locale/ipp-strings.c:1056 msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:1058 msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready #: locale/ipp-strings.c:1060 msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready #: locale/ipp-strings.c:1062 msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported #: locale/ipp-strings.c:1064 msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline #: locale/ipp-strings.c:1066 msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted #: locale/ipp-strings.c:1068 msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values #: locale/ipp-strings.c:1070 msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression #: locale/ipp-strings.c:1072 msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format #: locale/ipp-strings.c:1074 msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action #: locale/ipp-strings.c:1076 msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected #: locale/ipp-strings.c:1078 msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:1080 msgid "job-state.3" msgstr "" #. TRANSLATORS: Held #: locale/ipp-strings.c:1082 msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:1084 msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:1086 msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:1088 msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:1090 msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:1092 msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages #: locale/ipp-strings.c:1094 msgid "laminating" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:1096 msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only #: locale/ipp-strings.c:1098 msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:1100 msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only #: locale/ipp-strings.c:1102 msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination #: locale/ipp-strings.c:1104 msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival #: locale/ipp-strings.c:1106 msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:1108 msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:1110 msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:1112 msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:1114 msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent #: locale/ipp-strings.c:1116 msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo #: locale/ipp-strings.c:1118 msgid "logo" msgstr "" #: systemv/lpadmin.c:123 systemv/lpadmin.c:378 msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: Klassenavn må kun indeholde tegn som kan vises." #: systemv/lpadmin.c:213 #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "lpadmin: Ventede PPD efter \"-%c\"-tilvalg." #: systemv/lpadmin.c:459 msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: Ventede \"allow/deny:brugerliste\" efter \"-u\"-tilvalg." #: systemv/lpadmin.c:369 msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: Ventede klasse efter \"-r\"-tilvag." #: systemv/lpadmin.c:113 msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: Ventede klassenavn efter \"-c\"-tilvalg." #: systemv/lpadmin.c:553 msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: Ventede beskrivelse efter \"-D\"-tilvalg." #: systemv/lpadmin.c:489 msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: Ventede enheds-URI efter \"-v\"-tilvalg." #: systemv/lpadmin.c:566 msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: Ventede filtype(r) efter \"-I\"-tilvalg." #: systemv/lpadmin.c:192 msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: Ventede værtsnavn efter \"-h\"-tilvalg." #: systemv/lpadmin.c:585 msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: Ventede placering efter \"-L\"-tilvalg." #: systemv/lpadmin.c:282 msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: Ventede model efter \"-m\"-tilvalg." #: systemv/lpadmin.c:417 msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: Ventede navn efter \"-R\"-tilvalg." #: systemv/lpadmin.c:302 msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: Ventede navn=værdi efter \"-o\"-tilvalg." #: systemv/lpadmin.c:322 msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: Ventede printer efter \"-p\"-tilvalg." #: systemv/lpadmin.c:155 msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: Ventede printernavn efter \"-d\"-tilvalg." #: systemv/lpadmin.c:522 msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: Ventede printer eller klasse efter \"-x\"-tilvalg." #: systemv/lpadmin.c:958 msgid "lpadmin: No member names were seen." msgstr "lpadmin: Så ingen medlemsnavne." #: systemv/lpadmin.c:752 #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: Printeren %s er allerede et medlem af klassen %s." #: systemv/lpadmin.c:972 #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: Printeren %s er ikke et medlem af klassen %s." #: systemv/lpadmin.c:637 msgid "lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS." msgstr "" "lpadmin: Printerdrivere er udgåede og stopper med at virke i en fremtidig " "version af CUPS." #: systemv/lpadmin.c:164 systemv/lpadmin.c:331 systemv/lpadmin.c:531 msgid "lpadmin: Printer name can only contain printable characters." msgstr "lpadmin: Printernavn må kun indeholde tegn som kan vises." #: systemv/lpadmin.c:618 msgid "lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS." msgstr "" "lpadmin: Rå køer er udgåede og stopper med at virke i en fremtidig version " "af CUPS." #: systemv/lpadmin.c:616 msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "lpadmin: Rå køer understøttes ikke længere på macOS." #: systemv/lpadmin.c:231 msgid "lpadmin: System V interface scripts are no longer supported for security reasons." msgstr "" "lpadmin: System V-grænsefladescripts understøttes ikke længere af " "sikkerhedsårsager." #: systemv/lpadmin.c:97 msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Kan ikke tilføje en printer til klassen:\n" " Du skal først angive et printernavn." #: systemv/lpadmin.c:89 systemv/lpadmin.c:139 systemv/lpadmin.c:261 #: systemv/lpadmin.c:344 systemv/lpadmin.c:393 systemv/lpadmin.c:505 #: systemv/lpadmin.c:656 #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: Kan ikke oprette forbindelse til server: %s" #: systemv/lpadmin.c:1442 msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: Kan ikke oprette midlertidig fil" #: systemv/lpadmin.c:401 msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: Kan ikke slette tilvalg:\n" " Du skal først angive et printernavn." #: systemv/lpadmin.c:1453 #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "lpadmin: Kan ikke åbne PPD'en \"%s\": %s" #: systemv/lpadmin.c:1433 #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "lpadmin: Kan ikke åbne PPD'en \"%s\": %s på linje %d." #: systemv/lpadmin.c:353 msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: Kan ikke fjerne en printer fra klassen:\n" " Du skal først angive et printernavn." #: systemv/lpadmin.c:645 msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: Kan ikke indstille printertilvalget:\n" " Du skal først angive et printernavn." #: systemv/lpadmin.c:472 #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: Ukendt \"allow/deny\"-tilvalg \"%s\"." #: systemv/lpadmin.c:601 #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: Ukendt argument \"%s\"." #: systemv/lpadmin.c:594 #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: Ukendt tilvalg \"%c\"." #: systemv/lpadmin.c:622 msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "lpadmin: Brug 'everywhere'-modellen til delte printere." #: systemv/lpadmin.c:570 msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: Advarsel - indholdstypeliste ignoreret." #: berkeley/lpc.c:62 berkeley/lpc.c:90 berkeley/lpc.c:126 msgid "lpc> " msgstr "lpc> " #: systemv/lpinfo.c:80 msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "lpinfo: Ventede 1284 enheds-ID-streng efter \"--device-id\"." #: systemv/lpinfo.c:129 msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: Ventede sprog efter \"--language\"." #: systemv/lpinfo.c:144 msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: Ventede mærke og model efter \"--make-and-model\"." #: systemv/lpinfo.c:159 msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: Ventede produktstreng efter \"--product\"." #: systemv/lpinfo.c:96 msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "lpinfo: Ventede skemaliste efter \"--exclude-schemes\"." #: systemv/lpinfo.c:114 msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "lpinfo: Ventede skemaliste efter \"--include-schemes\"." #: systemv/lpinfo.c:174 msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: Ventede timeout efter \"--timeout\"." #: systemv/lpmove.c:129 #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: Kan ikke oprette forbindelse til server: %s" #: systemv/lpmove.c:117 #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: Ukendt argument \"%s\"." #: systemv/lpoptions.c:149 systemv/lpoptions.c:167 systemv/lpoptions.c:246 msgid "lpoptions: No printers." msgstr "lpoptions: Ingen printere." #: systemv/lpoptions.c:223 #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: Kan ikke tilføje printer eller instans: %s" #: systemv/lpoptions.c:492 systemv/lpoptions.c:501 #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: Kan ikke hente PPD-fil for %s: %s" #: systemv/lpoptions.c:511 #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: Kan ikke åbne PPD-fil for %s." #: systemv/lpoptions.c:95 msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: Ukendt printer eller klasse." #: systemv/lpstat.c:1099 #, c-format msgid "lpstat: error - %s environment variable names non-existent destination \"%s\"." msgstr "" "lpstat: fejl - miljøvariablen %s nævner den ikkeeksisterende destination \"%" "s\"." #. TRANSLATORS: Amount of Material #: locale/ipp-strings.c:1120 msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units #: locale/ipp-strings.c:1122 msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams #: locale/ipp-strings.c:1124 msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms #: locale/ipp-strings.c:1126 msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters #: locale/ipp-strings.c:1128 msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters #: locale/ipp-strings.c:1130 msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters #: locale/ipp-strings.c:1132 msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters #: locale/ipp-strings.c:1134 msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color #: locale/ipp-strings.c:1136 msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter #: locale/ipp-strings.c:1138 msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance #: locale/ipp-strings.c:1140 msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density #: locale/ipp-strings.c:1142 msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name #: locale/ipp-strings.c:1144 msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter #: locale/ipp-strings.c:1146 msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For #: locale/ipp-strings.c:1148 msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything #: locale/ipp-strings.c:1150 msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base #: locale/ipp-strings.c:1152 msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill #: locale/ipp-strings.c:1154 msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell #: locale/ipp-strings.c:1156 msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports #: locale/ipp-strings.c:1158 msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate #: locale/ipp-strings.c:1160 msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units #: locale/ipp-strings.c:1162 msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second #: locale/ipp-strings.c:1164 msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second #: locale/ipp-strings.c:1166 msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second #: locale/ipp-strings.c:1168 msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction #: locale/ipp-strings.c:1170 msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness #: locale/ipp-strings.c:1172 msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature #: locale/ipp-strings.c:1174 msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type #: locale/ipp-strings.c:1176 msgid "material-type" msgstr "" #. TRANSLATORS: ABS #: locale/ipp-strings.c:1178 msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS #: locale/ipp-strings.c:1180 msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS #: locale/ipp-strings.c:1182 msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate #: locale/ipp-strings.c:1184 msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold #: locale/ipp-strings.c:1186 msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon #: locale/ipp-strings.c:1188 msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet #: locale/ipp-strings.c:1190 msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer #: locale/ipp-strings.c:1192 msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA #: locale/ipp-strings.c:1194 msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA #: locale/ipp-strings.c:1196 msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable #: locale/ipp-strings.c:1198 msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA #: locale/ipp-strings.c:1200 msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA #: locale/ipp-strings.c:1202 msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA #: locale/ipp-strings.c:1204 msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA #: locale/ipp-strings.c:1206 msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA #: locale/ipp-strings.c:1208 msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate #: locale/ipp-strings.c:1210 msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA #: locale/ipp-strings.c:1212 msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver #: locale/ipp-strings.c:1214 msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium #: locale/ipp-strings.c:1216 msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax #: locale/ipp-strings.c:1218 msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials #: locale/ipp-strings.c:1220 msgid "materials-col" msgstr "" #. TRANSLATORS: Media #: locale/ipp-strings.c:1222 msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media #: locale/ipp-strings.c:1224 msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:1226 msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:1228 msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:1230 msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1232 msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin #: locale/ipp-strings.c:1234 msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:1236 msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin #: locale/ipp-strings.c:1238 msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media #: locale/ipp-strings.c:1240 msgid "media-col" msgstr "" #. TRANSLATORS: Media Color #: locale/ipp-strings.c:1242 msgid "media-color" msgstr "" #. TRANSLATORS: Black #: locale/ipp-strings.c:1244 msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue #: locale/ipp-strings.c:1246 msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown #: locale/ipp-strings.c:1248 msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff #: locale/ipp-strings.c:1250 msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black #: locale/ipp-strings.c:1252 msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue #: locale/ipp-strings.c:1254 msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown #: locale/ipp-strings.c:1256 msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff #: locale/ipp-strings.c:1258 msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan #: locale/ipp-strings.c:1260 msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold #: locale/ipp-strings.c:1262 msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod #: locale/ipp-strings.c:1264 msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray #: locale/ipp-strings.c:1266 msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green #: locale/ipp-strings.c:1268 msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory #: locale/ipp-strings.c:1270 msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta #: locale/ipp-strings.c:1272 msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color #: locale/ipp-strings.c:1274 msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard #: locale/ipp-strings.c:1276 msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange #: locale/ipp-strings.c:1278 msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink #: locale/ipp-strings.c:1280 msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red #: locale/ipp-strings.c:1282 msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver #: locale/ipp-strings.c:1284 msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise #: locale/ipp-strings.c:1286 msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet #: locale/ipp-strings.c:1288 msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White #: locale/ipp-strings.c:1290 msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow #: locale/ipp-strings.c:1292 msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan #: locale/ipp-strings.c:1294 msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue #: locale/ipp-strings.c:1296 msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown #: locale/ipp-strings.c:1298 msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff #: locale/ipp-strings.c:1300 msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan #: locale/ipp-strings.c:1302 msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold #: locale/ipp-strings.c:1304 msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod #: locale/ipp-strings.c:1306 msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray #: locale/ipp-strings.c:1308 msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green #: locale/ipp-strings.c:1310 msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory #: locale/ipp-strings.c:1312 msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta #: locale/ipp-strings.c:1314 msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard #: locale/ipp-strings.c:1316 msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange #: locale/ipp-strings.c:1318 msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink #: locale/ipp-strings.c:1320 msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red #: locale/ipp-strings.c:1322 msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver #: locale/ipp-strings.c:1324 msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise #: locale/ipp-strings.c:1326 msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet #: locale/ipp-strings.c:1328 msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow #: locale/ipp-strings.c:1330 msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold #: locale/ipp-strings.c:1332 msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod #: locale/ipp-strings.c:1334 msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray #: locale/ipp-strings.c:1336 msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green #: locale/ipp-strings.c:1338 msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory #: locale/ipp-strings.c:1340 msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black #: locale/ipp-strings.c:1342 msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue #: locale/ipp-strings.c:1344 msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown #: locale/ipp-strings.c:1346 msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff #: locale/ipp-strings.c:1348 msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan #: locale/ipp-strings.c:1350 msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold #: locale/ipp-strings.c:1352 msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod #: locale/ipp-strings.c:1354 msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray #: locale/ipp-strings.c:1356 msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green #: locale/ipp-strings.c:1358 msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory #: locale/ipp-strings.c:1360 msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta #: locale/ipp-strings.c:1362 msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard #: locale/ipp-strings.c:1364 msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange #: locale/ipp-strings.c:1366 msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink #: locale/ipp-strings.c:1368 msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red #: locale/ipp-strings.c:1370 msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver #: locale/ipp-strings.c:1372 msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise #: locale/ipp-strings.c:1374 msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet #: locale/ipp-strings.c:1376 msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow #: locale/ipp-strings.c:1378 msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta #: locale/ipp-strings.c:1380 msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color #: locale/ipp-strings.c:1382 msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard #: locale/ipp-strings.c:1384 msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color #: locale/ipp-strings.c:1386 msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange #: locale/ipp-strings.c:1388 msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink #: locale/ipp-strings.c:1390 msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red #: locale/ipp-strings.c:1392 msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver #: locale/ipp-strings.c:1394 msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise #: locale/ipp-strings.c:1396 msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet #: locale/ipp-strings.c:1398 msgid "media-color.violet" msgstr "" #. TRANSLATORS: White #: locale/ipp-strings.c:1400 msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow #: locale/ipp-strings.c:1402 msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media #: locale/ipp-strings.c:1404 msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain #: locale/ipp-strings.c:1406 msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction #: locale/ipp-strings.c:1408 msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction #: locale/ipp-strings.c:1410 msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count #: locale/ipp-strings.c:1412 msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info #: locale/ipp-strings.c:1414 msgid "media-info" msgstr "" #. TRANSLATORS: Force Media #: locale/ipp-strings.c:1416 msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin #: locale/ipp-strings.c:1418 msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media #: locale/ipp-strings.c:1420 msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank #: locale/ipp-strings.c:1422 msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1424 msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed #: locale/ipp-strings.c:1426 msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media #: locale/ipp-strings.c:1428 msgid "media-recycled" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1430 msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:1432 msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin #: locale/ipp-strings.c:1434 msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions #: locale/ipp-strings.c:1436 msgid "media-size" msgstr "" #. TRANSLATORS: Media Name #: locale/ipp-strings.c:1438 msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source #: locale/ipp-strings.c:1440 msgid "media-source" msgstr "" #. TRANSLATORS: Alternate #: locale/ipp-strings.c:1442 msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll #: locale/ipp-strings.c:1444 msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:1446 msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:1448 msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray #: locale/ipp-strings.c:1450 msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center #: locale/ipp-strings.c:1452 msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc #: locale/ipp-strings.c:1454 msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:1456 msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki #: locale/ipp-strings.c:1458 msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity #: locale/ipp-strings.c:1460 msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:1462 msgid "media-source.left" msgstr "" #. TRANSLATORS: Main #: locale/ipp-strings.c:1464 msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll #: locale/ipp-strings.c:1466 msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual #: locale/ipp-strings.c:1468 msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle #: locale/ipp-strings.c:1470 msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:1472 msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear #: locale/ipp-strings.c:1474 msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:1476 msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 #: locale/ipp-strings.c:1478 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 #: locale/ipp-strings.c:1480 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 #: locale/ipp-strings.c:1482 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 #: locale/ipp-strings.c:1484 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 #: locale/ipp-strings.c:1486 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 #: locale/ipp-strings.c:1488 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 #: locale/ipp-strings.c:1490 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 #: locale/ipp-strings.c:1492 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 #: locale/ipp-strings.c:1494 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 #: locale/ipp-strings.c:1496 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side #: locale/ipp-strings.c:1498 msgid "media-source.side" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:1500 msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 #: locale/ipp-strings.c:1502 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 #: locale/ipp-strings.c:1504 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 #: locale/ipp-strings.c:1506 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 #: locale/ipp-strings.c:1508 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 #: locale/ipp-strings.c:1510 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 #: locale/ipp-strings.c:1512 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 #: locale/ipp-strings.c:1514 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 #: locale/ipp-strings.c:1516 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 #: locale/ipp-strings.c:1518 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 #: locale/ipp-strings.c:1520 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 #: locale/ipp-strings.c:1522 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 #: locale/ipp-strings.c:1524 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 #: locale/ipp-strings.c:1526 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 #: locale/ipp-strings.c:1528 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 #: locale/ipp-strings.c:1530 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 #: locale/ipp-strings.c:1532 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 #: locale/ipp-strings.c:1534 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 #: locale/ipp-strings.c:1536 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 #: locale/ipp-strings.c:1538 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 #: locale/ipp-strings.c:1540 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness #: locale/ipp-strings.c:1542 msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) #: locale/ipp-strings.c:1544 msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique #: locale/ipp-strings.c:1546 msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth #: locale/ipp-strings.c:1548 msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse #: locale/ipp-strings.c:1550 msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine #: locale/ipp-strings.c:1552 msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen #: locale/ipp-strings.c:1554 msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium #: locale/ipp-strings.c:1556 msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth #: locale/ipp-strings.c:1558 msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple #: locale/ipp-strings.c:1560 msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough #: locale/ipp-strings.c:1562 msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum #: locale/ipp-strings.c:1564 msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin #: locale/ipp-strings.c:1566 msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type #: locale/ipp-strings.c:1568 msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum #: locale/ipp-strings.c:1570 msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:1572 msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film #: locale/ipp-strings.c:1574 msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard #: locale/ipp-strings.c:1576 msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock #: locale/ipp-strings.c:1578 msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD #: locale/ipp-strings.c:1580 msgid "media-type.cd" msgstr "" #. TRANSLATORS: Continuous #: locale/ipp-strings.c:1582 msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long #: locale/ipp-strings.c:1584 msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short #: locale/ipp-strings.c:1586 msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board #: locale/ipp-strings.c:1588 msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc #: locale/ipp-strings.c:1590 msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc #: locale/ipp-strings.c:1592 msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc #: locale/ipp-strings.c:1594 msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc #: locale/ipp-strings.c:1596 msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc #: locale/ipp-strings.c:1598 msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc #: locale/ipp-strings.c:1600 msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall #: locale/ipp-strings.c:1602 msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film #: locale/ipp-strings.c:1604 msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD #: locale/ipp-strings.c:1606 msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil #: locale/ipp-strings.c:1608 msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board #: locale/ipp-strings.c:1610 msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:1612 msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope #: locale/ipp-strings.c:1614 msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope #: locale/ipp-strings.c:1616 msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope #: locale/ipp-strings.c:1618 msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope #: locale/ipp-strings.c:1620 msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope #: locale/ipp-strings.c:1622 msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope #: locale/ipp-strings.c:1624 msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope #: locale/ipp-strings.c:1626 msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope #: locale/ipp-strings.c:1628 msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope #: locale/ipp-strings.c:1630 msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope #: locale/ipp-strings.c:1632 msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope #: locale/ipp-strings.c:1634 msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric #: locale/ipp-strings.c:1636 msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric #: locale/ipp-strings.c:1638 msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric #: locale/ipp-strings.c:1640 msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric #: locale/ipp-strings.c:1642 msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric #: locale/ipp-strings.c:1644 msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric #: locale/ipp-strings.c:1646 msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric #: locale/ipp-strings.c:1648 msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film #: locale/ipp-strings.c:1650 msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base #: locale/ipp-strings.c:1652 msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer #: locale/ipp-strings.c:1654 msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute #: locale/ipp-strings.c:1656 msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil #: locale/ipp-strings.c:1658 msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs #: locale/ipp-strings.c:1660 msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass #: locale/ipp-strings.c:1662 msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored #: locale/ipp-strings.c:1664 msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque #: locale/ipp-strings.c:1666 msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced #: locale/ipp-strings.c:1668 msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured #: locale/ipp-strings.c:1670 msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder #: locale/ipp-strings.c:1672 msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper #: locale/ipp-strings.c:1674 msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder #: locale/ipp-strings.c:1676 msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Labels #: locale/ipp-strings.c:1678 msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels #: locale/ipp-strings.c:1680 msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels #: locale/ipp-strings.c:1682 msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels #: locale/ipp-strings.c:1684 msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels #: locale/ipp-strings.c:1686 msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels #: locale/ipp-strings.c:1688 msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels #: locale/ipp-strings.c:1690 msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels #: locale/ipp-strings.c:1692 msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels #: locale/ipp-strings.c:1694 msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels #: locale/ipp-strings.c:1696 msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil #: locale/ipp-strings.c:1698 msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1700 msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal #: locale/ipp-strings.c:1702 msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy #: locale/ipp-strings.c:1704 msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss #: locale/ipp-strings.c:1706 msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte #: locale/ipp-strings.c:1708 msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin #: locale/ipp-strings.c:1710 msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss #: locale/ipp-strings.c:1712 msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape #: locale/ipp-strings.c:1714 msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer #: locale/ipp-strings.c:1716 msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form #: locale/ipp-strings.c:1718 msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other #: locale/ipp-strings.c:1720 msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper #: locale/ipp-strings.c:1722 msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper #: locale/ipp-strings.c:1724 msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival #: locale/ipp-strings.c:1726 msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film #: locale/ipp-strings.c:1728 msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper #: locale/ipp-strings.c:1730 msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper #: locale/ipp-strings.c:1732 msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper #: locale/ipp-strings.c:1734 msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper #: locale/ipp-strings.c:1736 msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper #: locale/ipp-strings.c:1738 msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic #: locale/ipp-strings.c:1740 msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival #: locale/ipp-strings.c:1742 msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored #: locale/ipp-strings.c:1744 msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy #: locale/ipp-strings.c:1746 msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss #: locale/ipp-strings.c:1748 msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte #: locale/ipp-strings.c:1750 msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin #: locale/ipp-strings.c:1752 msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss #: locale/ipp-strings.c:1754 msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate #: locale/ipp-strings.c:1756 msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester #: locale/ipp-strings.c:1758 msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs #: locale/ipp-strings.c:1760 msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll #: locale/ipp-strings.c:1762 msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen #: locale/ipp-strings.c:1764 msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged #: locale/ipp-strings.c:1766 msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive #: locale/ipp-strings.c:1768 msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film #: locale/ipp-strings.c:1770 msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil #: locale/ipp-strings.c:1772 msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face #: locale/ipp-strings.c:1774 msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall #: locale/ipp-strings.c:1776 msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve #: locale/ipp-strings.c:1778 msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery #: locale/ipp-strings.c:1780 msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival #: locale/ipp-strings.c:1782 msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper #: locale/ipp-strings.c:1784 msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton #: locale/ipp-strings.c:1786 msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper #: locale/ipp-strings.c:1788 msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper #: locale/ipp-strings.c:1790 msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated #: locale/ipp-strings.c:1792 msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper #: locale/ipp-strings.c:1794 msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1796 msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper #: locale/ipp-strings.c:1798 msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper #: locale/ipp-strings.c:1800 msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper #: locale/ipp-strings.c:1802 msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock #: locale/ipp-strings.c:1804 msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor #: locale/ipp-strings.c:1806 msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer #: locale/ipp-strings.c:1808 msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency #: locale/ipp-strings.c:1810 msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall #: locale/ipp-strings.c:1812 msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film #: locale/ipp-strings.c:1814 msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) #: locale/ipp-strings.c:1816 msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ #: locale/ipp-strings.c:1818 msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter #: locale/ipp-strings.c:1820 msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 #: locale/ipp-strings.c:1822 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 #: locale/ipp-strings.c:1824 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 #: locale/ipp-strings.c:1826 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 #: locale/ipp-strings.c:1828 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 #: locale/ipp-strings.c:1830 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 #: locale/ipp-strings.c:1832 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 #: locale/ipp-strings.c:1834 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 #: locale/ipp-strings.c:1836 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 #: locale/ipp-strings.c:1838 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 #: locale/ipp-strings.c:1840 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 #: locale/ipp-strings.c:1842 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) #: locale/ipp-strings.c:1844 msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 #: locale/ipp-strings.c:1846 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 #: locale/ipp-strings.c:1848 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 #: locale/ipp-strings.c:1850 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 #: locale/ipp-strings.c:1852 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 #: locale/ipp-strings.c:1854 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 #: locale/ipp-strings.c:1856 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) #: locale/ipp-strings.c:1858 msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) #: locale/ipp-strings.c:1860 msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 #: locale/ipp-strings.c:1862 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 #: locale/ipp-strings.c:1864 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 #: locale/ipp-strings.c:1866 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 #: locale/ipp-strings.c:1868 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 #: locale/ipp-strings.c:1870 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 #: locale/ipp-strings.c:1872 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 #: locale/ipp-strings.c:1874 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 #: locale/ipp-strings.c:1876 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) #: locale/ipp-strings.c:1878 msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 #: locale/ipp-strings.c:1880 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 #: locale/ipp-strings.c:1882 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 #: locale/ipp-strings.c:1884 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 #: locale/ipp-strings.c:1886 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 #: locale/ipp-strings.c:1888 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 #: locale/ipp-strings.c:1890 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 #: locale/ipp-strings.c:1892 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 #: locale/ipp-strings.c:1894 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 #: locale/ipp-strings.c:1896 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 #: locale/ipp-strings.c:1898 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 #: locale/ipp-strings.c:1900 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) #: locale/ipp-strings.c:1902 msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 #: locale/ipp-strings.c:1904 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 #: locale/ipp-strings.c:1906 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 #: locale/ipp-strings.c:1908 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 #: locale/ipp-strings.c:1910 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 #: locale/ipp-strings.c:1912 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 #: locale/ipp-strings.c:1914 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 #: locale/ipp-strings.c:1916 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 #: locale/ipp-strings.c:1918 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 #: locale/ipp-strings.c:1920 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 #: locale/ipp-strings.c:1922 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 #: locale/ipp-strings.c:1924 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 #: locale/ipp-strings.c:1926 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 #: locale/ipp-strings.c:1928 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 #: locale/ipp-strings.c:1930 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 #: locale/ipp-strings.c:1932 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 #: locale/ipp-strings.c:1934 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 #: locale/ipp-strings.c:1936 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 #: locale/ipp-strings.c:1938 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 #: locale/ipp-strings.c:1940 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL #: locale/ipp-strings.c:1942 msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 #: locale/ipp-strings.c:1944 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 #: locale/ipp-strings.c:1946 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 #: locale/ipp-strings.c:1948 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 #: locale/ipp-strings.c:1950 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 #: locale/ipp-strings.c:1952 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 #: locale/ipp-strings.c:1954 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 #: locale/ipp-strings.c:1956 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 #: locale/ipp-strings.c:1958 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 #: locale/ipp-strings.c:1960 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 #: locale/ipp-strings.c:1962 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 #: locale/ipp-strings.c:1964 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 #: locale/ipp-strings.c:1966 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 #: locale/ipp-strings.c:1968 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 #: locale/ipp-strings.c:1970 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 #: locale/ipp-strings.c:1972 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 #: locale/ipp-strings.c:1974 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 #: locale/ipp-strings.c:1976 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 #: locale/ipp-strings.c:1978 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 #: locale/ipp-strings.c:1980 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 #: locale/ipp-strings.c:1982 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 #: locale/ipp-strings.c:1984 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 #: locale/ipp-strings.c:1986 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 #: locale/ipp-strings.c:1988 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive #: locale/ipp-strings.c:1990 msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 #: locale/ipp-strings.c:1992 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 #: locale/ipp-strings.c:1994 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 #: locale/ipp-strings.c:1996 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 #: locale/ipp-strings.c:1998 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki #: locale/ipp-strings.c:2000 msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu #: locale/ipp-strings.c:2002 msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm #: locale/ipp-strings.c:2004 msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 #: locale/ipp-strings.c:2006 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm #: locale/ipp-strings.c:2008 msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm #: locale/ipp-strings.c:2010 msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm #: locale/ipp-strings.c:2012 msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm #: locale/ipp-strings.c:2014 msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm #: locale/ipp-strings.c:2016 msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard #: locale/ipp-strings.c:2018 msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 #: locale/ipp-strings.c:2020 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ #: locale/ipp-strings.c:2022 msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ #: locale/ipp-strings.c:2024 msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ #: locale/ipp-strings.c:2026 msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ #: locale/ipp-strings.c:2028 msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ #: locale/ipp-strings.c:2030 msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ #: locale/ipp-strings.c:2032 msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ #: locale/ipp-strings.c:2034 msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ #: locale/ipp-strings.c:2036 msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ #: locale/ipp-strings.c:2038 msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ #: locale/ipp-strings.c:2040 msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ #: locale/ipp-strings.c:2042 msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 #: locale/ipp-strings.c:2044 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ #: locale/ipp-strings.c:2046 msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ #: locale/ipp-strings.c:2048 msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ #: locale/ipp-strings.c:2050 msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ #: locale/ipp-strings.c:2052 msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ #: locale/ipp-strings.c:2054 msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ #: locale/ipp-strings.c:2056 msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ #: locale/ipp-strings.c:2058 msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ #: locale/ipp-strings.c:2060 msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 #: locale/ipp-strings.c:2062 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ #: locale/ipp-strings.c:2064 msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ #: locale/ipp-strings.c:2066 msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ #: locale/ipp-strings.c:2068 msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ #: locale/ipp-strings.c:2070 msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ #: locale/ipp-strings.c:2072 msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive #: locale/ipp-strings.c:2074 msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ #: locale/ipp-strings.c:2076 msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold #: locale/ipp-strings.c:2078 msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold #: locale/ipp-strings.c:2080 msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap #: locale/ipp-strings.c:2082 msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ #: locale/ipp-strings.c:2084 msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ #: locale/ipp-strings.c:2086 msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ #: locale/ipp-strings.c:2088 msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ #: locale/ipp-strings.c:2090 msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ #: locale/ipp-strings.c:2092 msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ #: locale/ipp-strings.c:2094 msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement #: locale/ipp-strings.c:2096 msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ #: locale/ipp-strings.c:2098 msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) #: locale/ipp-strings.c:2100 msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal #: locale/ipp-strings.c:2102 msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) #: locale/ipp-strings.c:2104 msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) #: locale/ipp-strings.c:2106 msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter #: locale/ipp-strings.c:2108 msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch #: locale/ipp-strings.c:2110 msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 #: locale/ipp-strings.c:2112 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 #: locale/ipp-strings.c:2114 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 #: locale/ipp-strings.c:2116 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 #: locale/ipp-strings.c:2118 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 #: locale/ipp-strings.c:2120 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ #: locale/ipp-strings.c:2122 msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal #: locale/ipp-strings.c:2124 msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto #: locale/ipp-strings.c:2126 msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ #: locale/ipp-strings.c:2128 msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ #: locale/ipp-strings.c:2130 msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ #: locale/ipp-strings.c:2132 msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ #: locale/ipp-strings.c:2134 msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ #: locale/ipp-strings.c:2136 msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ #: locale/ipp-strings.c:2138 msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ #: locale/ipp-strings.c:2140 msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ #: locale/ipp-strings.c:2142 msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ #: locale/ipp-strings.c:2144 msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ #: locale/ipp-strings.c:2146 msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ #: locale/ipp-strings.c:2148 msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ #: locale/ipp-strings.c:2150 msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ #: locale/ipp-strings.c:2152 msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ #: locale/ipp-strings.c:2154 msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm #: locale/ipp-strings.c:2156 msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm #: locale/ipp-strings.c:2158 msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm #: locale/ipp-strings.c:2160 msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm #: locale/ipp-strings.c:2162 msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm #: locale/ipp-strings.c:2164 msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm #: locale/ipp-strings.c:2166 msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm #: locale/ipp-strings.c:2168 msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio #: locale/ipp-strings.c:2170 msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) #: locale/ipp-strings.c:2172 msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation #: locale/ipp-strings.c:2174 msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian #: locale/ipp-strings.c:2176 msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm #: locale/ipp-strings.c:2178 msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 #: locale/ipp-strings.c:2180 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm #: locale/ipp-strings.c:2182 msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm #: locale/ipp-strings.c:2184 msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix #: locale/ipp-strings.c:2186 msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm #: locale/ipp-strings.c:2188 msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm #: locale/ipp-strings.c:2190 msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm #: locale/ipp-strings.c:2192 msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 #: locale/ipp-strings.c:2194 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k #: locale/ipp-strings.c:2196 msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 #: locale/ipp-strings.c:2198 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 #: locale/ipp-strings.c:2200 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k #: locale/ipp-strings.c:2202 msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 #: locale/ipp-strings.c:2204 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 #: locale/ipp-strings.c:2206 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 #: locale/ipp-strings.c:2208 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 #: locale/ipp-strings.c:2210 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 #: locale/ipp-strings.c:2212 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 #: locale/ipp-strings.c:2214 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k #: locale/ipp-strings.c:2216 msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k #: locale/ipp-strings.c:2218 msgid "media.roc_8k_10.75x15.5in" msgstr "" #: systemv/lpstat.c:1035 #, c-format msgid "members of class %s:" msgstr "" #. TRANSLATORS: Multiple Document Handling #: locale/ipp-strings.c:2220 msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies #: locale/ipp-strings.c:2222 msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies #: locale/ipp-strings.c:2224 msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document #: locale/ipp-strings.c:2226 msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet #: locale/ipp-strings.c:2228 msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling #: locale/ipp-strings.c:2230 msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual #: locale/ipp-strings.c:2232 msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2234 msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit #: locale/ipp-strings.c:2236 msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality #: locale/ipp-strings.c:2238 msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed #: locale/ipp-strings.c:2240 msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time #: locale/ipp-strings.c:2242 msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout #: locale/ipp-strings.c:2244 msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job #: locale/ipp-strings.c:2246 msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job #: locale/ipp-strings.c:2248 msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job #: locale/ipp-strings.c:2250 msgid "multiple-operation-time-out-action.process-job" msgstr "" #: berkeley/lpq.c:554 msgid "no entries" msgstr "" #: systemv/lpstat.c:1103 msgid "no system default destination" msgstr "" #. TRANSLATORS: Noise Removal #: locale/ipp-strings.c:2252 msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes #: locale/ipp-strings.c:2254 msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset #: locale/ipp-strings.c:2256 msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events #: locale/ipp-strings.c:2258 msgid "notify-events" msgstr "" #: scheduler/ipp.c:5872 msgid "notify-events not specified." msgstr "" #. TRANSLATORS: Document Completed #: locale/ipp-strings.c:2260 msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed #: locale/ipp-strings.c:2262 msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created #: locale/ipp-strings.c:2264 msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable #: locale/ipp-strings.c:2266 msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed #: locale/ipp-strings.c:2268 msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped #: locale/ipp-strings.c:2270 msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed #: locale/ipp-strings.c:2272 msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed #: locale/ipp-strings.c:2274 msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created #: locale/ipp-strings.c:2276 msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable #: locale/ipp-strings.c:2278 msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress #: locale/ipp-strings.c:2280 msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed #: locale/ipp-strings.c:2282 msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped #: locale/ipp-strings.c:2284 msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2286 msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed #: locale/ipp-strings.c:2288 msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed #: locale/ipp-strings.c:2290 msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed #: locale/ipp-strings.c:2292 msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed #: locale/ipp-strings.c:2294 msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted #: locale/ipp-strings.c:2296 msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown #: locale/ipp-strings.c:2298 msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed #: locale/ipp-strings.c:2300 msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped #: locale/ipp-strings.c:2302 msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval #: locale/ipp-strings.c:2304 msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration #: locale/ipp-strings.c:2306 msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language #: locale/ipp-strings.c:2308 msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method #: locale/ipp-strings.c:2310 msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient #: locale/ipp-strings.c:2312 msgid "notify-recipient-uri" msgstr "" #: scheduler/ipp.c:2034 scheduler/ipp.c:5758 #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "" #: scheduler/ipp.c:2024 scheduler/ipp.c:5748 #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "" #. TRANSLATORS: Notify Sequence Numbers #: locale/ipp-strings.c:2314 msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids #: locale/ipp-strings.c:2316 msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval #: locale/ipp-strings.c:2318 msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data #: locale/ipp-strings.c:2320 msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait #: locale/ipp-strings.c:2322 msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries #: locale/ipp-strings.c:2324 msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up #: locale/ipp-strings.c:2326 msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset #: locale/ipp-strings.c:2328 msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size #: locale/ipp-strings.c:2330 msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name #: locale/ipp-strings.c:2332 msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation #: locale/ipp-strings.c:2334 msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait #: locale/ipp-strings.c:2336 msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape #: locale/ipp-strings.c:2338 msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape #: locale/ipp-strings.c:2340 msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait #: locale/ipp-strings.c:2342 msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2344 msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options #: locale/ipp-strings.c:2346 msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray #: locale/ipp-strings.c:2348 msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2350 msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:2352 msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center #: locale/ipp-strings.c:2354 msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down #: locale/ipp-strings.c:2356 msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up #: locale/ipp-strings.c:2358 msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity #: locale/ipp-strings.c:2360 msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:2362 msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 #: locale/ipp-strings.c:2364 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 #: locale/ipp-strings.c:2366 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 #: locale/ipp-strings.c:2368 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 #: locale/ipp-strings.c:2370 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 #: locale/ipp-strings.c:2372 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 #: locale/ipp-strings.c:2374 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 #: locale/ipp-strings.c:2376 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 #: locale/ipp-strings.c:2378 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 #: locale/ipp-strings.c:2380 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 #: locale/ipp-strings.c:2382 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle #: locale/ipp-strings.c:2384 msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox #: locale/ipp-strings.c:2386 msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear #: locale/ipp-strings.c:2388 msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:2390 msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side #: locale/ipp-strings.c:2392 msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 #: locale/ipp-strings.c:2394 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 #: locale/ipp-strings.c:2396 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 #: locale/ipp-strings.c:2398 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 #: locale/ipp-strings.c:2400 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 #: locale/ipp-strings.c:2402 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 #: locale/ipp-strings.c:2404 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 #: locale/ipp-strings.c:2406 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 #: locale/ipp-strings.c:2408 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 #: locale/ipp-strings.c:2410 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 #: locale/ipp-strings.c:2412 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:2414 msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 #: locale/ipp-strings.c:2416 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 #: locale/ipp-strings.c:2418 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 #: locale/ipp-strings.c:2420 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 #: locale/ipp-strings.c:2422 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 #: locale/ipp-strings.c:2424 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 #: locale/ipp-strings.c:2426 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 #: locale/ipp-strings.c:2428 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 #: locale/ipp-strings.c:2430 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 #: locale/ipp-strings.c:2432 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 #: locale/ipp-strings.c:2434 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality #: locale/ipp-strings.c:2436 msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery #: locale/ipp-strings.c:2438 msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down #: locale/ipp-strings.c:2440 msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up #: locale/ipp-strings.c:2442 msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down #: locale/ipp-strings.c:2444 msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up #: locale/ipp-strings.c:2446 msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified #: locale/ipp-strings.c:2448 msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received #: locale/ipp-strings.c:2450 msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N #: locale/ipp-strings.c:2452 msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 #: locale/ipp-strings.c:2454 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges #: locale/ipp-strings.c:2456 msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages #: locale/ipp-strings.c:2458 msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset #: locale/ipp-strings.c:2460 msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side #: locale/ipp-strings.c:2462 msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped #: locale/ipp-strings.c:2464 msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal #: locale/ipp-strings.c:2466 msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated #: locale/ipp-strings.c:2468 msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution #: locale/ipp-strings.c:2470 msgid "pclm-source-resolution" msgstr "" #: cups/notify.c:74 msgid "pending" msgstr "" #. TRANSLATORS: Platform Shape #: locale/ipp-strings.c:2472 msgid "platform-shape" msgstr "" #. TRANSLATORS: Round #: locale/ipp-strings.c:2474 msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle #: locale/ipp-strings.c:2476 msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature #: locale/ipp-strings.c:2478 msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String #: locale/ipp-strings.c:2480 msgid "post-dial-string" msgstr "" #: ppdc/ppdc.cxx:102 ppdc/ppdpo.cxx:81 #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "" #: ppdc/ppdpo.cxx:124 #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "" #: ppdc/ppdc-source.cxx:362 #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "" #: ppdc/ppdc-import.cxx:253 #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "" #: ppdc/ppdc-source.cxx:1748 #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1065 #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1985 #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2671 #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" #: ppdc/ppdc-source.cxx:1650 #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:884 #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:907 #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:346 #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1045 #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:399 #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:387 #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:455 #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:444 #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:466 #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:647 #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2857 #, c-format msgid "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:778 #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1029 #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1641 #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1157 #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2570 #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1454 #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1633 #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:305 #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3229 #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1010 #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3060 #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3093 #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3183 #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3246 #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1108 #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1197 #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1734 #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:431 #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1526 #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1560 #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1538 #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1717 #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:385 ppdc/ppdc-catalog.cxx:397 #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:956 #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:524 #, c-format msgid "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1815 #, c-format msgid "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:313 #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1053 #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2746 #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3349 #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:680 #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:324 #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1037 #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:179 #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:924 #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:916 #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:932 #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1580 #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1552 #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:240 ppdc/ppdpo.cxx:111 #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "" #: ppdc/ppdc.cxx:176 #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "" #: ppdc/ppdc.cxx:115 #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:2363 ppdc/ppdc-source.cxx:2595 #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:2464 ppdc/ppdc-source.cxx:2499 #: ppdc/ppdc-source.cxx:2529 #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:462 #, c-format msgid "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" #: ppdc/ppdc-driver.cxx:707 #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "" #: ppdc/ppdc-source.cxx:1603 ppdc/ppdc-source.cxx:2834 #: ppdc/ppdc-source.cxx:2920 ppdc/ppdc-source.cxx:3013 #: ppdc/ppdc-source.cxx:3146 ppdc/ppdc-source.cxx:3279 #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1596 #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:657 #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2446 #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:363 #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "" #: ppdc/ppdc.cxx:255 #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "" #: ppdc/ppdc.cxx:276 #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "" #: ppdc/ppdc.cxx:292 ppdc/ppdc.cxx:298 #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "" #: ppdc/ppdc-source.cxx:1682 #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2602 #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:187 #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "" #: ppdc/ppdc.cxx:124 #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" #: ppdc/ppdc-file.cxx:37 #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "" #: ppdc/ppdc-source.cxx:2006 #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:479 #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2876 #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:858 #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3106 #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:507 #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:3360 #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:966 #, c-format msgid "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2116 #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:354 #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "" #: ppdc/ppdc.cxx:369 #, c-format msgid "ppdc: Writing %s." msgstr "" #: ppdc/ppdc.cxx:137 #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "" #: ppdc/ppdmerge.cxx:126 #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "" #: ppdc/ppdmerge.cxx:163 #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "" #: ppdc/ppdmerge.cxx:147 #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "" #. TRANSLATORS: Pre-dial String #: locale/ipp-strings.c:2482 msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout #: locale/ipp-strings.c:2484 msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left #: locale/ipp-strings.c:2486 msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right #: locale/ipp-strings.c:2488 msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom #: locale/ipp-strings.c:2490 msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top #: locale/ipp-strings.c:2492 msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom #: locale/ipp-strings.c:2494 msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top #: locale/ipp-strings.c:2496 msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left #: locale/ipp-strings.c:2498 msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right #: locale/ipp-strings.c:2500 msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy #: locale/ipp-strings.c:2502 msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base #: locale/ipp-strings.c:2504 msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual #: locale/ipp-strings.c:2506 msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim #: locale/ipp-strings.c:2508 msgid "print-base.brim" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2510 msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft #: locale/ipp-strings.c:2512 msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt #: locale/ipp-strings.c:2514 msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:2516 msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode #: locale/ipp-strings.c:2518 msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2520 msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome #: locale/ipp-strings.c:2522 msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text #: locale/ipp-strings.c:2524 msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color #: locale/ipp-strings.c:2526 msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight #: locale/ipp-strings.c:2528 msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome #: locale/ipp-strings.c:2530 msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text #: locale/ipp-strings.c:2532 msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome #: locale/ipp-strings.c:2534 msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization #: locale/ipp-strings.c:2536 msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual #: locale/ipp-strings.c:2538 msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2540 msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics #: locale/ipp-strings.c:2542 msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics #: locale/ipp-strings.c:2544 msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:2546 msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text #: locale/ipp-strings.c:2548 msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics #: locale/ipp-strings.c:2550 msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics #: locale/ipp-strings.c:2552 msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects #: locale/ipp-strings.c:2554 msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality #: locale/ipp-strings.c:2556 msgid "print-quality" msgstr "" #. TRANSLATORS: Draft #: locale/ipp-strings.c:2558 msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal #: locale/ipp-strings.c:2560 msgid "print-quality.4" msgstr "" #. TRANSLATORS: High #: locale/ipp-strings.c:2562 msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent #: locale/ipp-strings.c:2564 msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute #: locale/ipp-strings.c:2566 msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2568 msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual #: locale/ipp-strings.c:2570 msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative #: locale/ipp-strings.c:2572 msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation #: locale/ipp-strings.c:2574 msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation #: locale/ipp-strings.c:2576 msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling #: locale/ipp-strings.c:2578 msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2580 msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit #: locale/ipp-strings.c:2582 msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill #: locale/ipp-strings.c:2584 msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit #: locale/ipp-strings.c:2586 msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2588 msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports #: locale/ipp-strings.c:2590 msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual #: locale/ipp-strings.c:2592 msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material #: locale/ipp-strings.c:2594 msgid "print-supports.material" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2596 msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:2598 msgid "print-supports.standard" msgstr "" #: systemv/lpstat.c:1786 #, c-format msgid "printer %s disabled since %s -" msgstr "" #: systemv/lpstat.c:1778 #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #: systemv/lpstat.c:1780 #, c-format msgid "printer %s is idle. enabled since %s" msgstr "" #: systemv/lpstat.c:1783 #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "" #: systemv/lpstat.c:1904 #, c-format msgid "printer %s/%s disabled since %s -" msgstr "" #: systemv/lpstat.c:1890 #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "" #: systemv/lpstat.c:1897 #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "" #. TRANSLATORS: Printer Kind #: locale/ipp-strings.c:2600 msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc #: locale/ipp-strings.c:2602 msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document #: locale/ipp-strings.c:2604 msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:2606 msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label #: locale/ipp-strings.c:2608 msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format #: locale/ipp-strings.c:2610 msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:2612 msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard #: locale/ipp-strings.c:2614 msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt #: locale/ipp-strings.c:2616 msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll #: locale/ipp-strings.c:2618 msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator #: locale/ipp-strings.c:2620 msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution #: locale/ipp-strings.c:2622 msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State #: locale/ipp-strings.c:2624 msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State #: locale/ipp-strings.c:2626 msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed #: locale/ipp-strings.c:2628 msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added #: locale/ipp-strings.c:2630 msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty #: locale/ipp-strings.c:2632 msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full #: locale/ipp-strings.c:2634 msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit #: locale/ipp-strings.c:2636 msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed #: locale/ipp-strings.c:2638 msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change #: locale/ipp-strings.c:2640 msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed #: locale/ipp-strings.c:2642 msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open #: locale/ipp-strings.c:2644 msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty #: locale/ipp-strings.c:2646 msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full #: locale/ipp-strings.c:2648 msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed #: locale/ipp-strings.c:2650 msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open #: locale/ipp-strings.c:2652 msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam #: locale/ipp-strings.c:2654 msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over #: locale/ipp-strings.c:2656 msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over #: locale/ipp-strings.c:2658 msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted #: locale/ipp-strings.c:2660 msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing #: locale/ipp-strings.c:2662 msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure #: locale/ipp-strings.c:2664 msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit #: locale/ipp-strings.c:2666 msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline #: locale/ipp-strings.c:2668 msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened #: locale/ipp-strings.c:2670 msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature #: locale/ipp-strings.c:2672 msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver #: locale/ipp-strings.c:2674 msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure #: locale/ipp-strings.c:2676 msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage #: locale/ipp-strings.c:2678 msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed #: locale/ipp-strings.c:2680 msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added #: locale/ipp-strings.c:2682 msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed #: locale/ipp-strings.c:2684 msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure #: locale/ipp-strings.c:2686 msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure #: locale/ipp-strings.c:2688 msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off #: locale/ipp-strings.c:2690 msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On #: locale/ipp-strings.c:2692 msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature #: locale/ipp-strings.c:2694 msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure #: locale/ipp-strings.c:2696 msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error #: locale/ipp-strings.c:2698 msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up #: locale/ipp-strings.c:2700 msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added #: locale/ipp-strings.c:2702 msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty #: locale/ipp-strings.c:2704 msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full #: locale/ipp-strings.c:2706 msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit #: locale/ipp-strings.c:2708 msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed #: locale/ipp-strings.c:2710 msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change #: locale/ipp-strings.c:2712 msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed #: locale/ipp-strings.c:2714 msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open #: locale/ipp-strings.c:2716 msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty #: locale/ipp-strings.c:2718 msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full #: locale/ipp-strings.c:2720 msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed #: locale/ipp-strings.c:2722 msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open #: locale/ipp-strings.c:2724 msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam #: locale/ipp-strings.c:2726 msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over #: locale/ipp-strings.c:2728 msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over #: locale/ipp-strings.c:2730 msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted #: locale/ipp-strings.c:2732 msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing #: locale/ipp-strings.c:2734 msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure #: locale/ipp-strings.c:2736 msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit #: locale/ipp-strings.c:2738 msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline #: locale/ipp-strings.c:2740 msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened #: locale/ipp-strings.c:2742 msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature #: locale/ipp-strings.c:2744 msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver #: locale/ipp-strings.c:2746 msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure #: locale/ipp-strings.c:2748 msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage #: locale/ipp-strings.c:2750 msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed #: locale/ipp-strings.c:2752 msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added #: locale/ipp-strings.c:2754 msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed #: locale/ipp-strings.c:2756 msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure #: locale/ipp-strings.c:2758 msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure #: locale/ipp-strings.c:2760 msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off #: locale/ipp-strings.c:2762 msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On #: locale/ipp-strings.c:2764 msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature #: locale/ipp-strings.c:2766 msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure #: locale/ipp-strings.c:2768 msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error #: locale/ipp-strings.c:2770 msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up #: locale/ipp-strings.c:2772 msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure #: locale/ipp-strings.c:2774 msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling #: locale/ipp-strings.c:2776 msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure #: locale/ipp-strings.c:2778 msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating #: locale/ipp-strings.c:2780 msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High #: locale/ipp-strings.c:2782 msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low #: locale/ipp-strings.c:2784 msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over #: locale/ipp-strings.c:2786 msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over #: locale/ipp-strings.c:2788 msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change #: locale/ipp-strings.c:2790 msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device #: locale/ipp-strings.c:2792 msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open #: locale/ipp-strings.c:2794 msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated #: locale/ipp-strings.c:2796 msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty #: locale/ipp-strings.c:2798 msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low #: locale/ipp-strings.c:2800 msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added #: locale/ipp-strings.c:2802 msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty #: locale/ipp-strings.c:2804 msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full #: locale/ipp-strings.c:2806 msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit #: locale/ipp-strings.c:2808 msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed #: locale/ipp-strings.c:2810 msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change #: locale/ipp-strings.c:2812 msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed #: locale/ipp-strings.c:2814 msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open #: locale/ipp-strings.c:2816 msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty #: locale/ipp-strings.c:2818 msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full #: locale/ipp-strings.c:2820 msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed #: locale/ipp-strings.c:2822 msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open #: locale/ipp-strings.c:2824 msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam #: locale/ipp-strings.c:2826 msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over #: locale/ipp-strings.c:2828 msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over #: locale/ipp-strings.c:2830 msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted #: locale/ipp-strings.c:2832 msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing #: locale/ipp-strings.c:2834 msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure #: locale/ipp-strings.c:2836 msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit #: locale/ipp-strings.c:2838 msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline #: locale/ipp-strings.c:2840 msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened #: locale/ipp-strings.c:2842 msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature #: locale/ipp-strings.c:2844 msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver #: locale/ipp-strings.c:2846 msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure #: locale/ipp-strings.c:2848 msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage #: locale/ipp-strings.c:2850 msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed #: locale/ipp-strings.c:2852 msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added #: locale/ipp-strings.c:2854 msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed #: locale/ipp-strings.c:2856 msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure #: locale/ipp-strings.c:2858 msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure #: locale/ipp-strings.c:2860 msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off #: locale/ipp-strings.c:2862 msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On #: locale/ipp-strings.c:2864 msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature #: locale/ipp-strings.c:2866 msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure #: locale/ipp-strings.c:2868 msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error #: locale/ipp-strings.c:2870 msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up #: locale/ipp-strings.c:2872 msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open #: locale/ipp-strings.c:2874 msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling #: locale/ipp-strings.c:2876 msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure #: locale/ipp-strings.c:2878 msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating #: locale/ipp-strings.c:2880 msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam #: locale/ipp-strings.c:2882 msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High #: locale/ipp-strings.c:2884 msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low #: locale/ipp-strings.c:2886 msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure #: locale/ipp-strings.c:2888 msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over #: locale/ipp-strings.c:2890 msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over #: locale/ipp-strings.c:2892 msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing #: locale/ipp-strings.c:2894 msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off #: locale/ipp-strings.c:2896 msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On #: locale/ipp-strings.c:2898 msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added #: locale/ipp-strings.c:2900 msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty #: locale/ipp-strings.c:2902 msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full #: locale/ipp-strings.c:2904 msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit #: locale/ipp-strings.c:2906 msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed #: locale/ipp-strings.c:2908 msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change #: locale/ipp-strings.c:2910 msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed #: locale/ipp-strings.c:2912 msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open #: locale/ipp-strings.c:2914 msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty #: locale/ipp-strings.c:2916 msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full #: locale/ipp-strings.c:2918 msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed #: locale/ipp-strings.c:2920 msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open #: locale/ipp-strings.c:2922 msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam #: locale/ipp-strings.c:2924 msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over #: locale/ipp-strings.c:2926 msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over #: locale/ipp-strings.c:2928 msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted #: locale/ipp-strings.c:2930 msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing #: locale/ipp-strings.c:2932 msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure #: locale/ipp-strings.c:2934 msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit #: locale/ipp-strings.c:2936 msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline #: locale/ipp-strings.c:2938 msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened #: locale/ipp-strings.c:2940 msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature #: locale/ipp-strings.c:2942 msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver #: locale/ipp-strings.c:2944 msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure #: locale/ipp-strings.c:2946 msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage #: locale/ipp-strings.c:2948 msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed #: locale/ipp-strings.c:2950 msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added #: locale/ipp-strings.c:2952 msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed #: locale/ipp-strings.c:2954 msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure #: locale/ipp-strings.c:2956 msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure #: locale/ipp-strings.c:2958 msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off #: locale/ipp-strings.c:2960 msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On #: locale/ipp-strings.c:2962 msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature #: locale/ipp-strings.c:2964 msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure #: locale/ipp-strings.c:2966 msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error #: locale/ipp-strings.c:2968 msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up #: locale/ipp-strings.c:2970 msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high #: locale/ipp-strings.c:2972 msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low #: locale/ipp-strings.c:2974 msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs #: locale/ipp-strings.c:2976 msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer #: locale/ipp-strings.c:2978 msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added #: locale/ipp-strings.c:2980 msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty #: locale/ipp-strings.c:2982 msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full #: locale/ipp-strings.c:2984 msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit #: locale/ipp-strings.c:2986 msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed #: locale/ipp-strings.c:2988 msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change #: locale/ipp-strings.c:2990 msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed #: locale/ipp-strings.c:2992 msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open #: locale/ipp-strings.c:2994 msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty #: locale/ipp-strings.c:2996 msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full #: locale/ipp-strings.c:2998 msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed #: locale/ipp-strings.c:3000 msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open #: locale/ipp-strings.c:3002 msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam #: locale/ipp-strings.c:3004 msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over #: locale/ipp-strings.c:3006 msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over #: locale/ipp-strings.c:3008 msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted #: locale/ipp-strings.c:3010 msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing #: locale/ipp-strings.c:3012 msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure #: locale/ipp-strings.c:3014 msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit #: locale/ipp-strings.c:3016 msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline #: locale/ipp-strings.c:3018 msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened #: locale/ipp-strings.c:3020 msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature #: locale/ipp-strings.c:3022 msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver #: locale/ipp-strings.c:3024 msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure #: locale/ipp-strings.c:3026 msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage #: locale/ipp-strings.c:3028 msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed #: locale/ipp-strings.c:3030 msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added #: locale/ipp-strings.c:3032 msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed #: locale/ipp-strings.c:3034 msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure #: locale/ipp-strings.c:3036 msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure #: locale/ipp-strings.c:3038 msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off #: locale/ipp-strings.c:3040 msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On #: locale/ipp-strings.c:3042 msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature #: locale/ipp-strings.c:3044 msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure #: locale/ipp-strings.c:3046 msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error #: locale/ipp-strings.c:3048 msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up #: locale/ipp-strings.c:3050 msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected #: locale/ipp-strings.c:3052 msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request #: locale/ipp-strings.c:3054 msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change #: locale/ipp-strings.c:3056 msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change #: locale/ipp-strings.c:3058 msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change #: locale/ipp-strings.c:3060 msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure #: locale/ipp-strings.c:3062 msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error #: locale/ipp-strings.c:3064 msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam #: locale/ipp-strings.c:3066 msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change #: locale/ipp-strings.c:3068 msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change #: locale/ipp-strings.c:3070 msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure #: locale/ipp-strings.c:3072 msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over #: locale/ipp-strings.c:3074 msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn #: locale/ipp-strings.c:3076 msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing #: locale/ipp-strings.c:3078 msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure #: locale/ipp-strings.c:3080 msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing #: locale/ipp-strings.c:3082 msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure #: locale/ipp-strings.c:3084 msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added #: locale/ipp-strings.c:3086 msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty #: locale/ipp-strings.c:3088 msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full #: locale/ipp-strings.c:3090 msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit #: locale/ipp-strings.c:3092 msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed #: locale/ipp-strings.c:3094 msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change #: locale/ipp-strings.c:3096 msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed #: locale/ipp-strings.c:3098 msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open #: locale/ipp-strings.c:3100 msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty #: locale/ipp-strings.c:3102 msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full #: locale/ipp-strings.c:3104 msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed #: locale/ipp-strings.c:3106 msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open #: locale/ipp-strings.c:3108 msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam #: locale/ipp-strings.c:3110 msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over #: locale/ipp-strings.c:3112 msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over #: locale/ipp-strings.c:3114 msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted #: locale/ipp-strings.c:3116 msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing #: locale/ipp-strings.c:3118 msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure #: locale/ipp-strings.c:3120 msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit #: locale/ipp-strings.c:3122 msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline #: locale/ipp-strings.c:3124 msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened #: locale/ipp-strings.c:3126 msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature #: locale/ipp-strings.c:3128 msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver #: locale/ipp-strings.c:3130 msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure #: locale/ipp-strings.c:3132 msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage #: locale/ipp-strings.c:3134 msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed #: locale/ipp-strings.c:3136 msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added #: locale/ipp-strings.c:3138 msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed #: locale/ipp-strings.c:3140 msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure #: locale/ipp-strings.c:3142 msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure #: locale/ipp-strings.c:3144 msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off #: locale/ipp-strings.c:3146 msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On #: locale/ipp-strings.c:3148 msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature #: locale/ipp-strings.c:3150 msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure #: locale/ipp-strings.c:3152 msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error #: locale/ipp-strings.c:3154 msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up #: locale/ipp-strings.c:3156 msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed #: locale/ipp-strings.c:3158 msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open #: locale/ipp-strings.c:3160 msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added #: locale/ipp-strings.c:3162 msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed #: locale/ipp-strings.c:3164 msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered #: locale/ipp-strings.c:3166 msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease #: locale/ipp-strings.c:3168 msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase #: locale/ipp-strings.c:3170 msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added #: locale/ipp-strings.c:3172 msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted #: locale/ipp-strings.c:3174 msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable #: locale/ipp-strings.c:3176 msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life #: locale/ipp-strings.c:3178 msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure #: locale/ipp-strings.c:3180 msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life #: locale/ipp-strings.c:3182 msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life #: locale/ipp-strings.c:3184 msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure #: locale/ipp-strings.c:3186 msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life #: locale/ipp-strings.c:3188 msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added #: locale/ipp-strings.c:3190 msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty #: locale/ipp-strings.c:3192 msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full #: locale/ipp-strings.c:3194 msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit #: locale/ipp-strings.c:3196 msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed #: locale/ipp-strings.c:3198 msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change #: locale/ipp-strings.c:3200 msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed #: locale/ipp-strings.c:3202 msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open #: locale/ipp-strings.c:3204 msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty #: locale/ipp-strings.c:3206 msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full #: locale/ipp-strings.c:3208 msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed #: locale/ipp-strings.c:3210 msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open #: locale/ipp-strings.c:3212 msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam #: locale/ipp-strings.c:3214 msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over #: locale/ipp-strings.c:3216 msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over #: locale/ipp-strings.c:3218 msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted #: locale/ipp-strings.c:3220 msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing #: locale/ipp-strings.c:3222 msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure #: locale/ipp-strings.c:3224 msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit #: locale/ipp-strings.c:3226 msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline #: locale/ipp-strings.c:3228 msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened #: locale/ipp-strings.c:3230 msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature #: locale/ipp-strings.c:3232 msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver #: locale/ipp-strings.c:3234 msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure #: locale/ipp-strings.c:3236 msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage #: locale/ipp-strings.c:3238 msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed #: locale/ipp-strings.c:3240 msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added #: locale/ipp-strings.c:3242 msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed #: locale/ipp-strings.c:3244 msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure #: locale/ipp-strings.c:3246 msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure #: locale/ipp-strings.c:3248 msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off #: locale/ipp-strings.c:3250 msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On #: locale/ipp-strings.c:3252 msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature #: locale/ipp-strings.c:3254 msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure #: locale/ipp-strings.c:3256 msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error #: locale/ipp-strings.c:3258 msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up #: locale/ipp-strings.c:3260 msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality #: locale/ipp-strings.c:3262 msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "Markør til justering af udskrivningskvalitet" #. TRANSLATORS: Marker Cleaner Missing #: locale/ipp-strings.c:3264 msgid "printer-state-reasons.marker-cleaner-missing" msgstr "Markør til renser mangler" #. TRANSLATORS: Marker Developer Almost Empty #: locale/ipp-strings.c:3266 msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "Markør til fremkalder næsten tom" #. TRANSLATORS: Marker Developer Empty #: locale/ipp-strings.c:3268 msgid "printer-state-reasons.marker-developer-empty" msgstr "Markør til fremkalder tom" #. TRANSLATORS: Marker Developer Missing #: locale/ipp-strings.c:3270 msgid "printer-state-reasons.marker-developer-missing" msgstr "Markør til fremkalder mangler" #. TRANSLATORS: Marker Fuser Missing #: locale/ipp-strings.c:3272 msgid "printer-state-reasons.marker-fuser-missing" msgstr "Markør til \"fuser\" mangler" #. TRANSLATORS: Marker Fuser Thermistor Failure #: locale/ipp-strings.c:3274 msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "Markør til fejl i temperatursensor for \"fuser\"" #. TRANSLATORS: Marker Fuser Timing Failure #: locale/ipp-strings.c:3276 msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "Markør til fejl i timing af \"fuser\"" #. TRANSLATORS: Marker Ink Almost Empty #: locale/ipp-strings.c:3278 msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "Markør til blæk næsten tom" #. TRANSLATORS: Marker Ink Empty #: locale/ipp-strings.c:3280 msgid "printer-state-reasons.marker-ink-empty" msgstr "Markør til blæk tom" #. TRANSLATORS: Marker Ink Missing #: locale/ipp-strings.c:3282 msgid "printer-state-reasons.marker-ink-missing" msgstr "Markør til blæk mangler" #. TRANSLATORS: Marker Opc Missing #: locale/ipp-strings.c:3284 msgid "printer-state-reasons.marker-opc-missing" msgstr "Markør til Opc mangler" #. TRANSLATORS: Marker Print Ribbon Almost Empty #: locale/ipp-strings.c:3286 msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "Markør til udskrivningsbånd næsten tom" #. TRANSLATORS: Marker Print Ribbon Empty #: locale/ipp-strings.c:3288 msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "Markør til udskrivningsbånd tom" #. TRANSLATORS: Marker Print Ribbon Missing #: locale/ipp-strings.c:3290 msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "Markør til udskrivningsbånd mangler" #. TRANSLATORS: Marker Supply Almost Empty #: locale/ipp-strings.c:3292 msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "Markør til forsyning næsten tom" #. TRANSLATORS: Ink/toner empty #: locale/ipp-strings.c:3294 msgid "printer-state-reasons.marker-supply-empty" msgstr "Blæk/toner tom" #. TRANSLATORS: Ink/toner low #: locale/ipp-strings.c:3296 msgid "printer-state-reasons.marker-supply-low" msgstr "Blæk/toner lav" #. TRANSLATORS: Marker Supply Missing #: locale/ipp-strings.c:3298 msgid "printer-state-reasons.marker-supply-missing" msgstr "Markør til forsyning mangler" #. TRANSLATORS: Marker Toner Cartridge Missing #: locale/ipp-strings.c:3300 msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "Markør til tonerpatron mangler" #. TRANSLATORS: Marker Toner Missing #: locale/ipp-strings.c:3302 msgid "printer-state-reasons.marker-toner-missing" msgstr "Markør til toner mangler" #. TRANSLATORS: Ink/toner waste bin almost full #: locale/ipp-strings.c:3304 msgid "printer-state-reasons.marker-waste-almost-full" msgstr "Beholder til blæk-/tonerspild næsten fuld" #. TRANSLATORS: Ink/toner waste bin full #: locale/ipp-strings.c:3306 msgid "printer-state-reasons.marker-waste-full" msgstr "Beholder til blæk-/tonerspild fuld" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full #: locale/ipp-strings.c:3308 msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "Markør til beholder til blækspild næsten fuld" #. TRANSLATORS: Marker Waste Ink Receptacle Full #: locale/ipp-strings.c:3310 msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "Markør til beholder til blækspild fuld" #. TRANSLATORS: Marker Waste Ink Receptacle Missing #: locale/ipp-strings.c:3312 msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "Markør til beholder til blækspild mangler" #. TRANSLATORS: Marker Waste Missing #: locale/ipp-strings.c:3314 msgid "printer-state-reasons.marker-waste-missing" msgstr "Markør til beholder mangler" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full #: locale/ipp-strings.c:3316 msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "Markør til beholder til tonerspild næsten fuld" #. TRANSLATORS: Marker Waste Toner Receptacle Full #: locale/ipp-strings.c:3318 msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "Markør til beholder til tonerspild fuld" #. TRANSLATORS: Marker Waste Toner Receptacle Missing #: locale/ipp-strings.c:3320 msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "Markør til beholder til tonerspild mangler" #. TRANSLATORS: Material Empty #: locale/ipp-strings.c:3322 msgid "printer-state-reasons.material-empty" msgstr "Materiel tom" #. TRANSLATORS: Material Low #: locale/ipp-strings.c:3324 msgid "printer-state-reasons.material-low" msgstr "Materiel lav" #. TRANSLATORS: Material Needed #: locale/ipp-strings.c:3326 msgid "printer-state-reasons.material-needed" msgstr "Materiel behøves" #. TRANSLATORS: Media Drying #: locale/ipp-strings.c:3328 msgid "printer-state-reasons.media-drying" msgstr "Medie tørrer" #. TRANSLATORS: Paper tray is empty #: locale/ipp-strings.c:3330 msgid "printer-state-reasons.media-empty" msgstr "Papirbakke er tom" #. TRANSLATORS: Paper jam #: locale/ipp-strings.c:3332 msgid "printer-state-reasons.media-jam" msgstr "Papir sidder fast" #. TRANSLATORS: Paper tray is almost empty #: locale/ipp-strings.c:3334 msgid "printer-state-reasons.media-low" msgstr "Papirbakke er næsten tom" #. TRANSLATORS: Load paper #: locale/ipp-strings.c:3336 msgid "printer-state-reasons.media-needed" msgstr "Læg papir i" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing #: locale/ipp-strings.c:3338 msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "Mediesti kan ikke foretage tosidet udskrivning" #. TRANSLATORS: Media Path Failure #: locale/ipp-strings.c:3340 msgid "printer-state-reasons.media-path-failure" msgstr "Fejl i mediesti" #. TRANSLATORS: Media Path Input Empty #: locale/ipp-strings.c:3342 msgid "printer-state-reasons.media-path-input-empty" msgstr "Mediestiens input tom" #. TRANSLATORS: Media Path Input Feed Error #: locale/ipp-strings.c:3344 msgid "printer-state-reasons.media-path-input-feed-error" msgstr "Fejl i mediestiens inputfødning" #. TRANSLATORS: Media Path Input Jam #: locale/ipp-strings.c:3346 msgid "printer-state-reasons.media-path-input-jam" msgstr "Sidder fast i mediestiens input" #. TRANSLATORS: Media Path Input Request #: locale/ipp-strings.c:3348 msgid "printer-state-reasons.media-path-input-request" msgstr "Mediestiens input anmodet" #. TRANSLATORS: Media Path Jam #: locale/ipp-strings.c:3350 msgid "printer-state-reasons.media-path-jam" msgstr "Sidder fast i mediesti" #. TRANSLATORS: Media Path Media Tray Almost Full #: locale/ipp-strings.c:3352 msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "Mediestiens mediebakke næsten fuld" #. TRANSLATORS: Media Path Media Tray Full #: locale/ipp-strings.c:3354 msgid "printer-state-reasons.media-path-media-tray-full" msgstr "Mediestiens mediebakke fuld" #. TRANSLATORS: Media Path Media Tray Missing #: locale/ipp-strings.c:3356 msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "Mediestiens mediebakke mangler" #. TRANSLATORS: Media Path Output Feed Error #: locale/ipp-strings.c:3358 msgid "printer-state-reasons.media-path-output-feed-error" msgstr "Fejl i mediestiens outputfødning" #. TRANSLATORS: Media Path Output Full #: locale/ipp-strings.c:3360 msgid "printer-state-reasons.media-path-output-full" msgstr "Mediestiens output fuld" #. TRANSLATORS: Media Path Output Jam #: locale/ipp-strings.c:3362 msgid "printer-state-reasons.media-path-output-jam" msgstr "Sidder fast i mediestiens output" #. TRANSLATORS: Media Path Pick Roller Failure #: locale/ipp-strings.c:3364 msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "Fejl i mediestiens vælgerrulle" #. TRANSLATORS: Media Path Pick Roller Life Over #: locale/ipp-strings.c:3366 msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "Mediestiens vælgerrulle er gammel" #. TRANSLATORS: Media Path Pick Roller Life Warn #: locale/ipp-strings.c:3368 msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "Mediestiens vælgerrulle er ved at være gammel" #. TRANSLATORS: Media Path Pick Roller Missing #: locale/ipp-strings.c:3370 msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "Mediestiens vælgerrulle mangler" #. TRANSLATORS: Motor Failure #: locale/ipp-strings.c:3372 msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline #: locale/ipp-strings.c:3374 msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:3376 msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over #: locale/ipp-strings.c:3378 msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life #: locale/ipp-strings.c:3380 msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors #: locale/ipp-strings.c:3382 msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full #: locale/ipp-strings.c:3384 msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full #: locale/ipp-strings.c:3386 msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure #: locale/ipp-strings.c:3388 msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure #: locale/ipp-strings.c:3390 msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error #: locale/ipp-strings.c:3392 msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam #: locale/ipp-strings.c:3394 msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing #: locale/ipp-strings.c:3396 msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused #: locale/ipp-strings.c:3398 msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added #: locale/ipp-strings.c:3400 msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty #: locale/ipp-strings.c:3402 msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full #: locale/ipp-strings.c:3404 msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit #: locale/ipp-strings.c:3406 msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed #: locale/ipp-strings.c:3408 msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change #: locale/ipp-strings.c:3410 msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed #: locale/ipp-strings.c:3412 msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open #: locale/ipp-strings.c:3414 msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty #: locale/ipp-strings.c:3416 msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full #: locale/ipp-strings.c:3418 msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed #: locale/ipp-strings.c:3420 msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open #: locale/ipp-strings.c:3422 msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam #: locale/ipp-strings.c:3424 msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over #: locale/ipp-strings.c:3426 msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over #: locale/ipp-strings.c:3428 msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted #: locale/ipp-strings.c:3430 msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing #: locale/ipp-strings.c:3432 msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure #: locale/ipp-strings.c:3434 msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit #: locale/ipp-strings.c:3436 msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline #: locale/ipp-strings.c:3438 msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened #: locale/ipp-strings.c:3440 msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature #: locale/ipp-strings.c:3442 msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver #: locale/ipp-strings.c:3444 msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure #: locale/ipp-strings.c:3446 msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage #: locale/ipp-strings.c:3448 msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed #: locale/ipp-strings.c:3450 msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added #: locale/ipp-strings.c:3452 msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed #: locale/ipp-strings.c:3454 msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure #: locale/ipp-strings.c:3456 msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure #: locale/ipp-strings.c:3458 msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off #: locale/ipp-strings.c:3460 msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On #: locale/ipp-strings.c:3462 msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature #: locale/ipp-strings.c:3464 msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure #: locale/ipp-strings.c:3466 msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error #: locale/ipp-strings.c:3468 msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up #: locale/ipp-strings.c:3470 msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling #: locale/ipp-strings.c:3472 msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure #: locale/ipp-strings.c:3474 msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating #: locale/ipp-strings.c:3476 msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High #: locale/ipp-strings.c:3478 msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low #: locale/ipp-strings.c:3480 msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down #: locale/ipp-strings.c:3482 msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up #: locale/ipp-strings.c:3484 msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually #: locale/ipp-strings.c:3486 msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely #: locale/ipp-strings.c:3488 msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print #: locale/ipp-strings.c:3490 msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added #: locale/ipp-strings.c:3492 msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty #: locale/ipp-strings.c:3494 msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full #: locale/ipp-strings.c:3496 msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit #: locale/ipp-strings.c:3498 msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed #: locale/ipp-strings.c:3500 msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change #: locale/ipp-strings.c:3502 msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed #: locale/ipp-strings.c:3504 msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open #: locale/ipp-strings.c:3506 msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty #: locale/ipp-strings.c:3508 msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full #: locale/ipp-strings.c:3510 msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed #: locale/ipp-strings.c:3512 msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open #: locale/ipp-strings.c:3514 msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam #: locale/ipp-strings.c:3516 msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over #: locale/ipp-strings.c:3518 msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over #: locale/ipp-strings.c:3520 msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted #: locale/ipp-strings.c:3522 msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing #: locale/ipp-strings.c:3524 msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure #: locale/ipp-strings.c:3526 msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit #: locale/ipp-strings.c:3528 msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline #: locale/ipp-strings.c:3530 msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened #: locale/ipp-strings.c:3532 msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature #: locale/ipp-strings.c:3534 msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver #: locale/ipp-strings.c:3536 msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure #: locale/ipp-strings.c:3538 msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage #: locale/ipp-strings.c:3540 msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed #: locale/ipp-strings.c:3542 msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added #: locale/ipp-strings.c:3544 msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed #: locale/ipp-strings.c:3546 msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure #: locale/ipp-strings.c:3548 msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure #: locale/ipp-strings.c:3550 msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off #: locale/ipp-strings.c:3552 msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On #: locale/ipp-strings.c:3554 msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature #: locale/ipp-strings.c:3556 msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure #: locale/ipp-strings.c:3558 msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error #: locale/ipp-strings.c:3560 msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up #: locale/ipp-strings.c:3562 msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added #: locale/ipp-strings.c:3564 msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty #: locale/ipp-strings.c:3566 msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full #: locale/ipp-strings.c:3568 msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit #: locale/ipp-strings.c:3570 msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed #: locale/ipp-strings.c:3572 msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change #: locale/ipp-strings.c:3574 msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed #: locale/ipp-strings.c:3576 msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open #: locale/ipp-strings.c:3578 msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty #: locale/ipp-strings.c:3580 msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full #: locale/ipp-strings.c:3582 msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed #: locale/ipp-strings.c:3584 msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open #: locale/ipp-strings.c:3586 msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam #: locale/ipp-strings.c:3588 msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over #: locale/ipp-strings.c:3590 msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over #: locale/ipp-strings.c:3592 msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted #: locale/ipp-strings.c:3594 msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing #: locale/ipp-strings.c:3596 msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure #: locale/ipp-strings.c:3598 msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit #: locale/ipp-strings.c:3600 msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline #: locale/ipp-strings.c:3602 msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened #: locale/ipp-strings.c:3604 msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature #: locale/ipp-strings.c:3606 msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver #: locale/ipp-strings.c:3608 msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure #: locale/ipp-strings.c:3610 msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage #: locale/ipp-strings.c:3612 msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed #: locale/ipp-strings.c:3614 msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added #: locale/ipp-strings.c:3616 msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed #: locale/ipp-strings.c:3618 msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure #: locale/ipp-strings.c:3620 msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure #: locale/ipp-strings.c:3622 msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off #: locale/ipp-strings.c:3624 msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On #: locale/ipp-strings.c:3626 msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature #: locale/ipp-strings.c:3628 msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure #: locale/ipp-strings.c:3630 msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error #: locale/ipp-strings.c:3632 msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up #: locale/ipp-strings.c:3634 msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added #: locale/ipp-strings.c:3636 msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty #: locale/ipp-strings.c:3638 msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full #: locale/ipp-strings.c:3640 msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit #: locale/ipp-strings.c:3642 msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed #: locale/ipp-strings.c:3644 msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change #: locale/ipp-strings.c:3646 msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed #: locale/ipp-strings.c:3648 msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open #: locale/ipp-strings.c:3650 msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty #: locale/ipp-strings.c:3652 msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full #: locale/ipp-strings.c:3654 msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed #: locale/ipp-strings.c:3656 msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open #: locale/ipp-strings.c:3658 msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam #: locale/ipp-strings.c:3660 msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over #: locale/ipp-strings.c:3662 msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over #: locale/ipp-strings.c:3664 msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted #: locale/ipp-strings.c:3666 msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing #: locale/ipp-strings.c:3668 msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure #: locale/ipp-strings.c:3670 msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit #: locale/ipp-strings.c:3672 msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline #: locale/ipp-strings.c:3674 msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened #: locale/ipp-strings.c:3676 msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature #: locale/ipp-strings.c:3678 msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver #: locale/ipp-strings.c:3680 msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure #: locale/ipp-strings.c:3682 msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage #: locale/ipp-strings.c:3684 msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed #: locale/ipp-strings.c:3686 msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added #: locale/ipp-strings.c:3688 msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed #: locale/ipp-strings.c:3690 msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure #: locale/ipp-strings.c:3692 msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure #: locale/ipp-strings.c:3694 msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off #: locale/ipp-strings.c:3696 msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On #: locale/ipp-strings.c:3698 msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature #: locale/ipp-strings.c:3700 msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure #: locale/ipp-strings.c:3702 msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error #: locale/ipp-strings.c:3704 msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up #: locale/ipp-strings.c:3706 msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline #: locale/ipp-strings.c:3708 msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added #: locale/ipp-strings.c:3710 msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty #: locale/ipp-strings.c:3712 msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full #: locale/ipp-strings.c:3714 msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit #: locale/ipp-strings.c:3716 msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed #: locale/ipp-strings.c:3718 msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change #: locale/ipp-strings.c:3720 msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed #: locale/ipp-strings.c:3722 msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open #: locale/ipp-strings.c:3724 msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty #: locale/ipp-strings.c:3726 msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full #: locale/ipp-strings.c:3728 msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed #: locale/ipp-strings.c:3730 msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open #: locale/ipp-strings.c:3732 msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam #: locale/ipp-strings.c:3734 msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over #: locale/ipp-strings.c:3736 msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over #: locale/ipp-strings.c:3738 msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted #: locale/ipp-strings.c:3740 msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing #: locale/ipp-strings.c:3742 msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure #: locale/ipp-strings.c:3744 msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit #: locale/ipp-strings.c:3746 msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline #: locale/ipp-strings.c:3748 msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened #: locale/ipp-strings.c:3750 msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature #: locale/ipp-strings.c:3752 msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver #: locale/ipp-strings.c:3754 msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure #: locale/ipp-strings.c:3756 msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage #: locale/ipp-strings.c:3758 msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed #: locale/ipp-strings.c:3760 msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added #: locale/ipp-strings.c:3762 msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed #: locale/ipp-strings.c:3764 msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure #: locale/ipp-strings.c:3766 msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure #: locale/ipp-strings.c:3768 msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off #: locale/ipp-strings.c:3770 msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On #: locale/ipp-strings.c:3772 msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature #: locale/ipp-strings.c:3774 msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure #: locale/ipp-strings.c:3776 msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error #: locale/ipp-strings.c:3778 msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up #: locale/ipp-strings.c:3780 msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full #: locale/ipp-strings.c:3782 msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added #: locale/ipp-strings.c:3784 msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty #: locale/ipp-strings.c:3786 msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full #: locale/ipp-strings.c:3788 msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit #: locale/ipp-strings.c:3790 msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed #: locale/ipp-strings.c:3792 msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change #: locale/ipp-strings.c:3794 msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed #: locale/ipp-strings.c:3796 msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open #: locale/ipp-strings.c:3798 msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty #: locale/ipp-strings.c:3800 msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full #: locale/ipp-strings.c:3802 msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed #: locale/ipp-strings.c:3804 msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open #: locale/ipp-strings.c:3806 msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam #: locale/ipp-strings.c:3808 msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over #: locale/ipp-strings.c:3810 msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over #: locale/ipp-strings.c:3812 msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted #: locale/ipp-strings.c:3814 msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing #: locale/ipp-strings.c:3816 msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure #: locale/ipp-strings.c:3818 msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit #: locale/ipp-strings.c:3820 msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline #: locale/ipp-strings.c:3822 msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened #: locale/ipp-strings.c:3824 msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature #: locale/ipp-strings.c:3826 msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver #: locale/ipp-strings.c:3828 msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure #: locale/ipp-strings.c:3830 msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage #: locale/ipp-strings.c:3832 msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed #: locale/ipp-strings.c:3834 msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added #: locale/ipp-strings.c:3836 msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed #: locale/ipp-strings.c:3838 msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure #: locale/ipp-strings.c:3840 msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure #: locale/ipp-strings.c:3842 msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off #: locale/ipp-strings.c:3844 msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On #: locale/ipp-strings.c:3846 msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature #: locale/ipp-strings.c:3848 msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure #: locale/ipp-strings.c:3850 msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error #: locale/ipp-strings.c:3852 msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up #: locale/ipp-strings.c:3854 msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added #: locale/ipp-strings.c:3856 msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty #: locale/ipp-strings.c:3858 msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full #: locale/ipp-strings.c:3860 msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit #: locale/ipp-strings.c:3862 msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed #: locale/ipp-strings.c:3864 msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change #: locale/ipp-strings.c:3866 msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed #: locale/ipp-strings.c:3868 msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open #: locale/ipp-strings.c:3870 msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty #: locale/ipp-strings.c:3872 msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full #: locale/ipp-strings.c:3874 msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed #: locale/ipp-strings.c:3876 msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open #: locale/ipp-strings.c:3878 msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam #: locale/ipp-strings.c:3880 msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over #: locale/ipp-strings.c:3882 msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over #: locale/ipp-strings.c:3884 msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted #: locale/ipp-strings.c:3886 msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing #: locale/ipp-strings.c:3888 msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure #: locale/ipp-strings.c:3890 msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit #: locale/ipp-strings.c:3892 msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline #: locale/ipp-strings.c:3894 msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened #: locale/ipp-strings.c:3896 msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature #: locale/ipp-strings.c:3898 msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver #: locale/ipp-strings.c:3900 msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure #: locale/ipp-strings.c:3902 msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage #: locale/ipp-strings.c:3904 msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed #: locale/ipp-strings.c:3906 msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added #: locale/ipp-strings.c:3908 msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed #: locale/ipp-strings.c:3910 msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure #: locale/ipp-strings.c:3912 msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure #: locale/ipp-strings.c:3914 msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off #: locale/ipp-strings.c:3916 msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On #: locale/ipp-strings.c:3918 msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature #: locale/ipp-strings.c:3920 msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure #: locale/ipp-strings.c:3922 msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error #: locale/ipp-strings.c:3924 msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up #: locale/ipp-strings.c:3926 msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added #: locale/ipp-strings.c:3928 msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty #: locale/ipp-strings.c:3930 msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full #: locale/ipp-strings.c:3932 msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit #: locale/ipp-strings.c:3934 msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed #: locale/ipp-strings.c:3936 msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change #: locale/ipp-strings.c:3938 msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed #: locale/ipp-strings.c:3940 msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open #: locale/ipp-strings.c:3942 msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty #: locale/ipp-strings.c:3944 msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full #: locale/ipp-strings.c:3946 msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed #: locale/ipp-strings.c:3948 msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open #: locale/ipp-strings.c:3950 msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam #: locale/ipp-strings.c:3952 msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over #: locale/ipp-strings.c:3954 msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over #: locale/ipp-strings.c:3956 msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted #: locale/ipp-strings.c:3958 msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing #: locale/ipp-strings.c:3960 msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure #: locale/ipp-strings.c:3962 msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit #: locale/ipp-strings.c:3964 msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline #: locale/ipp-strings.c:3966 msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened #: locale/ipp-strings.c:3968 msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature #: locale/ipp-strings.c:3970 msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver #: locale/ipp-strings.c:3972 msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure #: locale/ipp-strings.c:3974 msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage #: locale/ipp-strings.c:3976 msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed #: locale/ipp-strings.c:3978 msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added #: locale/ipp-strings.c:3980 msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed #: locale/ipp-strings.c:3982 msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure #: locale/ipp-strings.c:3984 msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure #: locale/ipp-strings.c:3986 msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off #: locale/ipp-strings.c:3988 msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On #: locale/ipp-strings.c:3990 msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature #: locale/ipp-strings.c:3992 msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure #: locale/ipp-strings.c:3994 msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error #: locale/ipp-strings.c:3996 msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up #: locale/ipp-strings.c:3998 msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped #: locale/ipp-strings.c:4000 msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:4002 msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added #: locale/ipp-strings.c:4004 msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty #: locale/ipp-strings.c:4006 msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full #: locale/ipp-strings.c:4008 msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit #: locale/ipp-strings.c:4010 msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed #: locale/ipp-strings.c:4012 msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down #: locale/ipp-strings.c:4014 msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty #: locale/ipp-strings.c:4016 msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full #: locale/ipp-strings.c:4018 msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over #: locale/ipp-strings.c:4020 msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over #: locale/ipp-strings.c:4022 msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted #: locale/ipp-strings.c:4024 msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing #: locale/ipp-strings.c:4026 msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure #: locale/ipp-strings.c:4028 msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit #: locale/ipp-strings.c:4030 msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline #: locale/ipp-strings.c:4032 msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened #: locale/ipp-strings.c:4034 msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature #: locale/ipp-strings.c:4036 msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver #: locale/ipp-strings.c:4038 msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure #: locale/ipp-strings.c:4040 msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage #: locale/ipp-strings.c:4042 msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed #: locale/ipp-strings.c:4044 msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added #: locale/ipp-strings.c:4046 msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed #: locale/ipp-strings.c:4048 msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure #: locale/ipp-strings.c:4050 msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure #: locale/ipp-strings.c:4052 msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off #: locale/ipp-strings.c:4054 msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On #: locale/ipp-strings.c:4056 msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature #: locale/ipp-strings.c:4058 msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure #: locale/ipp-strings.c:4060 msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage #: locale/ipp-strings.c:4062 msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up #: locale/ipp-strings.c:4064 msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding #: locale/ipp-strings.c:4066 msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner #: locale/ipp-strings.c:4068 msgid "printer-state-reasons.toner-empty" msgstr "Ikke mere toner" #. TRANSLATORS: Toner low #: locale/ipp-strings.c:4070 msgid "printer-state-reasons.toner-low" msgstr "Toner lav" #. TRANSLATORS: Trimmer Added #: locale/ipp-strings.c:4072 msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty #: locale/ipp-strings.c:4074 msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full #: locale/ipp-strings.c:4076 msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit #: locale/ipp-strings.c:4078 msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed #: locale/ipp-strings.c:4080 msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change #: locale/ipp-strings.c:4082 msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed #: locale/ipp-strings.c:4084 msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open #: locale/ipp-strings.c:4086 msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty #: locale/ipp-strings.c:4088 msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full #: locale/ipp-strings.c:4090 msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed #: locale/ipp-strings.c:4092 msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open #: locale/ipp-strings.c:4094 msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam #: locale/ipp-strings.c:4096 msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over #: locale/ipp-strings.c:4098 msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over #: locale/ipp-strings.c:4100 msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted #: locale/ipp-strings.c:4102 msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing #: locale/ipp-strings.c:4104 msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure #: locale/ipp-strings.c:4106 msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit #: locale/ipp-strings.c:4108 msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline #: locale/ipp-strings.c:4110 msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened #: locale/ipp-strings.c:4112 msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature #: locale/ipp-strings.c:4114 msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver #: locale/ipp-strings.c:4116 msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure #: locale/ipp-strings.c:4118 msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage #: locale/ipp-strings.c:4120 msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed #: locale/ipp-strings.c:4122 msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added #: locale/ipp-strings.c:4124 msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed #: locale/ipp-strings.c:4126 msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure #: locale/ipp-strings.c:4128 msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure #: locale/ipp-strings.c:4130 msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off #: locale/ipp-strings.c:4132 msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On #: locale/ipp-strings.c:4134 msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature #: locale/ipp-strings.c:4136 msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure #: locale/ipp-strings.c:4138 msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error #: locale/ipp-strings.c:4140 msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up #: locale/ipp-strings.c:4142 msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown #: locale/ipp-strings.c:4144 msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added #: locale/ipp-strings.c:4146 msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty #: locale/ipp-strings.c:4148 msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full #: locale/ipp-strings.c:4150 msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit #: locale/ipp-strings.c:4152 msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed #: locale/ipp-strings.c:4154 msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change #: locale/ipp-strings.c:4156 msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed #: locale/ipp-strings.c:4158 msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open #: locale/ipp-strings.c:4160 msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty #: locale/ipp-strings.c:4162 msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full #: locale/ipp-strings.c:4164 msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed #: locale/ipp-strings.c:4166 msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open #: locale/ipp-strings.c:4168 msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam #: locale/ipp-strings.c:4170 msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over #: locale/ipp-strings.c:4172 msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over #: locale/ipp-strings.c:4174 msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted #: locale/ipp-strings.c:4176 msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing #: locale/ipp-strings.c:4178 msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure #: locale/ipp-strings.c:4180 msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit #: locale/ipp-strings.c:4182 msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline #: locale/ipp-strings.c:4184 msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened #: locale/ipp-strings.c:4186 msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature #: locale/ipp-strings.c:4188 msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver #: locale/ipp-strings.c:4190 msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure #: locale/ipp-strings.c:4192 msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage #: locale/ipp-strings.c:4194 msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed #: locale/ipp-strings.c:4196 msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added #: locale/ipp-strings.c:4198 msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed #: locale/ipp-strings.c:4200 msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure #: locale/ipp-strings.c:4202 msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure #: locale/ipp-strings.c:4204 msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off #: locale/ipp-strings.c:4206 msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On #: locale/ipp-strings.c:4208 msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature #: locale/ipp-strings.c:4210 msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure #: locale/ipp-strings.c:4212 msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error #: locale/ipp-strings.c:4214 msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up #: locale/ipp-strings.c:4216 msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle #: locale/ipp-strings.c:4218 msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:4220 msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:4222 msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime #: locale/ipp-strings.c:4224 msgid "printer-up-time" msgstr "" #: cups/notify.c:80 cups/notify.c:121 msgid "processing" msgstr "" #. TRANSLATORS: Proof Print #: locale/ipp-strings.c:4226 msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies #: locale/ipp-strings.c:4228 msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching #: locale/ipp-strings.c:4230 msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations #: locale/ipp-strings.c:4232 msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset #: locale/ipp-strings.c:4234 msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge #: locale/ipp-strings.c:4236 msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4238 msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4240 msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4242 msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4244 msgid "punching-reference-edge.top" msgstr "" #: systemv/lp.c:642 #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "" #: cups/snmp.c:974 msgid "request-id uses indefinite length" msgstr "" #. TRANSLATORS: Requested Attributes #: locale/ipp-strings.c:4246 msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval #: locale/ipp-strings.c:4248 msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout #: locale/ipp-strings.c:4250 msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition #: locale/ipp-strings.c:4252 msgid "save-disposition" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4254 msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save #: locale/ipp-strings.c:4256 msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only #: locale/ipp-strings.c:4258 msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format #: locale/ipp-strings.c:4260 msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info #: locale/ipp-strings.c:4262 msgid "save-info" msgstr "" #. TRANSLATORS: Save Location #: locale/ipp-strings.c:4264 msgid "save-location" msgstr "" #. TRANSLATORS: Save Name #: locale/ipp-strings.c:4266 msgid "save-name" msgstr "" #: systemv/lpstat.c:2032 msgid "scheduler is not running" msgstr "" #: systemv/lpstat.c:2028 msgid "scheduler is running" msgstr "" #. TRANSLATORS: Separator Sheets #: locale/ipp-strings.c:4268 msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets #: locale/ipp-strings.c:4270 msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets #: locale/ipp-strings.c:4272 msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet #: locale/ipp-strings.c:4274 msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4276 msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets #: locale/ipp-strings.c:4278 msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet #: locale/ipp-strings.c:4280 msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing #: locale/ipp-strings.c:4282 msgid "sides" msgstr "" #. TRANSLATORS: Off #: locale/ipp-strings.c:4284 msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) #: locale/ipp-strings.c:4286 msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) #: locale/ipp-strings.c:4288 msgid "sides.two-sided-short-edge" msgstr "" #: cups/adminutil.c:1384 #, c-format msgid "stat of %s failed: %s" msgstr "" #: berkeley/lpc.c:197 msgid "status\t\tShow status of daemon and queue." msgstr "" #. TRANSLATORS: Status Message #: locale/ipp-strings.c:4290 msgid "status-message" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:4292 msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle #: locale/ipp-strings.c:4294 msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations #: locale/ipp-strings.c:4296 msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method #: locale/ipp-strings.c:4298 msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:4300 msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp #: locale/ipp-strings.c:4302 msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire #: locale/ipp-strings.c:4304 msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset #: locale/ipp-strings.c:4306 msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge #: locale/ipp-strings.c:4308 msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4310 msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4312 msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4314 msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4316 msgid "stitching-reference-edge.top" msgstr "" #: cups/notify.c:83 cups/notify.c:124 msgid "stopped" msgstr "" #. TRANSLATORS: Subject #: locale/ipp-strings.c:4318 msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes #: locale/ipp-strings.c:4320 msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:4322 msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:4324 msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4326 msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description #: locale/ipp-strings.c:4328 msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template #: locale/ipp-strings.c:4330 msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope #: locale/ipp-strings.c:4332 msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:4334 msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:4336 msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4338 msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:4340 msgid "subscription-privacy-scope.owner" msgstr "" #: systemv/lpstat.c:1077 #, c-format msgid "system default destination: %s" msgstr "" #: systemv/lpstat.c:1074 #, c-format msgid "system default destination: %s/%s" msgstr "" #. TRANSLATORS: T33 Subaddress #: locale/ipp-strings.c:4342 msgid "t33-subaddress" msgstr "" #. TRANSLATORS: To Name #: locale/ipp-strings.c:4344 msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status #: locale/ipp-strings.c:4346 msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:4348 msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry #: locale/ipp-strings.c:4350 msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:4352 msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:4354 msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:4356 msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:4358 msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut #: locale/ipp-strings.c:4360 msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position #: locale/ipp-strings.c:4362 msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge #: locale/ipp-strings.c:4364 msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4366 msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4368 msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4370 msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4372 msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut #: locale/ipp-strings.c:4374 msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line #: locale/ipp-strings.c:4376 msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full #: locale/ipp-strings.c:4378 msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial #: locale/ipp-strings.c:4380 msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate #: locale/ipp-strings.c:4382 msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score #: locale/ipp-strings.c:4384 msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab #: locale/ipp-strings.c:4386 msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After #: locale/ipp-strings.c:4388 msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document #: locale/ipp-strings.c:4390 msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job #: locale/ipp-strings.c:4392 msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set #: locale/ipp-strings.c:4394 msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page #: locale/ipp-strings.c:4396 msgid "trimming-when.after-sheets" msgstr "" #: cups/notify.c:95 cups/notify.c:127 msgid "unknown" msgstr "" #: cups/notify.c:104 msgid "untitled" msgstr "" #: cups/snmp.c:999 msgid "variable-bindings uses indefinite length" msgstr "" #. TRANSLATORS: X Accuracy #: locale/ipp-strings.c:4398 msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension #: locale/ipp-strings.c:4400 msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset #: locale/ipp-strings.c:4402 msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin #: locale/ipp-strings.c:4404 msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy #: locale/ipp-strings.c:4406 msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension #: locale/ipp-strings.c:4408 msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset #: locale/ipp-strings.c:4410 msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin #: locale/ipp-strings.c:4412 msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy #: locale/ipp-strings.c:4414 msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension #: locale/ipp-strings.c:4416 msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset #: locale/ipp-strings.c:4418 msgid "z-offset" msgstr "" #: tools/ippfind.c:2814 msgid "{service_domain} Domain name" msgstr "" #: tools/ippfind.c:2815 msgid "{service_hostname} Fully-qualified domain name" msgstr "" #: tools/ippfind.c:2816 msgid "{service_name} Service instance name" msgstr "" #: tools/ippfind.c:2817 msgid "{service_port} Port number" msgstr "" #: tools/ippfind.c:2818 msgid "{service_regtype} DNS-SD registration type" msgstr "" #: tools/ippfind.c:2819 msgid "{service_scheme} URI scheme" msgstr "" #: tools/ippfind.c:2820 msgid "{service_uri} URI" msgstr "" #: tools/ippfind.c:2821 msgid "{txt_*} Value of TXT record key" msgstr "" #: tools/ippfind.c:2813 msgid "{} URI" msgstr "" #: cups/dest.c:1864 msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" cups-2.4.7/locale/cups_cs.po0000644000175000017500000111103614502571342015622 0ustar zdohnalzdohnal# # Czech message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2012-09-14 10:26+0100\n" "Last-Translator: Jan Bartos \n" "Language-Team: Czech\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "\t\t(all)" msgstr "" msgid "\t\t(none)" msgstr "" #, c-format msgid "\t%d entries" msgstr "" #, c-format msgid "\t%s" msgstr "" msgid "\tAfter fault: continue" msgstr "" #, c-format msgid "\tAlerts: %s" msgstr "" msgid "\tBanner required" msgstr "" msgid "\tCharset sets:" msgstr "" msgid "\tConnection: direct" msgstr "" msgid "\tConnection: remote" msgstr "" msgid "\tContent types: any" msgstr "" msgid "\tDefault page size:" msgstr "" msgid "\tDefault pitch:" msgstr "" msgid "\tDefault port settings:" msgstr "" #, c-format msgid "\tDescription: %s" msgstr "" msgid "\tForm mounted:" msgstr "" msgid "\tForms allowed:" msgstr "" #, c-format msgid "\tInterface: %s.ppd" msgstr "" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "" #, c-format msgid "\tLocation: %s" msgstr "" msgid "\tOn fault: no alert" msgstr "" msgid "\tPrinter types: unknown" msgstr "" #, c-format msgid "\tStatus: %s" msgstr "" msgid "\tUsers allowed:" msgstr "" msgid "\tUsers denied:" msgstr "" msgid "\tdaemon present" msgstr "" msgid "\tno entries" msgstr "" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "" msgid "\tprinting is disabled" msgstr "" msgid "\tprinting is enabled" msgstr "" #, c-format msgid "\tqueued for %s" msgstr "" msgid "\tqueuing is disabled" msgstr "" msgid "\tqueuing is enabled" msgstr "" msgid "\treason unknown" msgstr "" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" msgid " REF: Page 15, section 3.1." msgstr "" msgid " REF: Page 15, section 3.2." msgstr "" msgid " REF: Page 19, section 3.3." msgstr "" msgid " REF: Page 20, section 3.4." msgstr "" msgid " REF: Page 27, section 3.5." msgstr "" msgid " REF: Page 42, section 5.2." msgstr "" msgid " REF: Pages 16-17, section 3.2." msgstr "" msgid " REF: Pages 42-45, section 5.2." msgstr "" msgid " REF: Pages 45-46, section 5.2." msgstr "" msgid " REF: Pages 48-49, section 5.2." msgstr "" msgid " REF: Pages 52-54, section 5.2." msgstr "" #, c-format msgid " %-39.39s %.0f bytes" msgstr "" #, c-format msgid " PASS Default%s" msgstr "" msgid " PASS DefaultImageableArea" msgstr "" msgid " PASS DefaultPaperDimension" msgstr "" msgid " PASS FileVersion" msgstr "" msgid " PASS FormatVersion" msgstr "" msgid " PASS LanguageEncoding" msgstr "" msgid " PASS LanguageVersion" msgstr "" msgid " PASS Manufacturer" msgstr "" msgid " PASS ModelName" msgstr "" msgid " PASS NickName" msgstr "" msgid " PASS PCFileName" msgstr "" msgid " PASS PSVersion" msgstr "" msgid " PASS PageRegion" msgstr "" msgid " PASS PageSize" msgstr "" msgid " PASS Product" msgstr "" msgid " PASS ShortNickName" msgstr "" #, c-format msgid " WARN %s has no corresponding options." msgstr "" #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" #, c-format msgid " WARN Line %d only contains whitespace." msgstr "" msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" #, c-format msgid " %s %s %s does not exist." msgstr "" #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "" #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsICCProfile %s." msgstr "" #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr "" #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s Bad language \"%s\"." msgstr "" #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr "" #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr "" #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" #, c-format msgid " %s Default choices conflicting." msgstr "" #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr "" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr "" #, c-format msgid " %s Missing %s file \"%s\"." msgstr "" #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr "" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr "" #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "" #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "" #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr "" #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr "" #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr "" #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" #, c-format msgid " %d ERRORS FOUND" msgstr "" msgid " NO ERRORS FOUND" msgstr "" msgid " --cr End lines with CR (Mac OS 9)." msgstr "" msgid " --crlf End lines with CR + LF (Windows)." msgstr "" msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr "" msgid " -D Remove the input file when finished." msgstr "" msgid " -D name=value Set named variable to value." msgstr "" msgid " -I include-dir Add include directory to search path." msgstr "" msgid " -P filename.ppd Set PPD file." msgstr "" msgid " -U username Specify username." msgstr "" msgid " -c catalog.po Load the specified message catalog." msgstr "" msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" msgid " -d output-dir Specify the output directory." msgstr "" msgid " -d printer Use the named printer." msgstr "" msgid " -e Use every filter from the PPD file." msgstr "" msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr "" msgid " -m Use the ModelName value as the filename." msgstr "" msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" msgid " -n copies Set number of copies." msgstr "" msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" msgid " -o name=value Set option(s)." msgstr "" msgid " -p filename.ppd Set PPD file." msgstr "" msgid " -t Test PPDs instead of generating them." msgstr "" msgid " -t title Set title." msgstr "" msgid " -u Remove the PPD file when finished." msgstr "" msgid " -v Be verbose." msgstr "" msgid " -z Compress PPD files using GNU zip." msgstr "" msgid " FAIL" msgstr "" msgid " PASS" msgstr "" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "" #, c-format msgid "%d x %d mm" msgstr "" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "" #, c-format msgid "%s (%s, %s)" msgstr "" #, c-format msgid "%s (Borderless)" msgstr "" #, c-format msgid "%s (Borderless, %s)" msgstr "" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "" #, c-format msgid "%s accepting requests since %s" msgstr "" #, c-format msgid "%s cannot be changed." msgstr "%s nelze změnit." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "" #, c-format msgid "%s is not ready" msgstr "" #, c-format msgid "%s is ready" msgstr "" #, c-format msgid "%s is ready and printing" msgstr "" #, c-format msgid "%s job-id user title copies options [file]" msgstr "" #, c-format msgid "%s not accepting requests since %s -" msgstr "" #, c-format msgid "%s not supported." msgstr "" #, c-format msgid "%s/%s accepting requests since %s" msgstr "" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "" #, c-format msgid "%s: %s failed: %s" msgstr "" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "" #, c-format msgid "%s: Don't know what to do." msgstr "" #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "" #, c-format msgid "%s: Error - bad job ID." msgstr "" #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "" #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "" #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "" #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "" #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "" #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "" #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "" #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "" #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "" #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "" #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "" #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "" #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" #, c-format msgid "%s: Error - no default destination available." msgstr "" #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "" #, c-format msgid "%s: Error - scheduler not responding." msgstr "" #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "" #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "" #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "" #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "" #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "" #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "" #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "" #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "" #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "" #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "" #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "" #, c-format msgid "%s: Missing version for \"-V\"." msgstr "" #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "" #, c-format msgid "%s: Operation failed: %s" msgstr "" #, c-format msgid "%s: Sorry, no encryption support." msgstr "" #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #, c-format msgid "%s: Unable to connect to server." msgstr "" #, c-format msgid "%s: Unable to contact server." msgstr "" #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "" #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "" #, c-format msgid "%s: Unable to open %s: %s" msgstr "" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "" #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "" #, c-format msgid "%s: Unknown option \"%c\"." msgstr "" #, c-format msgid "%s: Unknown option \"%s\"." msgstr "" #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "" #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" #, c-format msgid "%s: Warning - character set option ignored." msgstr "" #, c-format msgid "%s: Warning - content type option ignored." msgstr "" #, c-format msgid "%s: Warning - form option ignored." msgstr "" #, c-format msgid "%s: Warning - mode option ignored." msgstr "" msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 palec/sek." msgid "1.25x0.25\"" msgstr "1.25x0.25\"" msgid "1.25x2.25\"" msgstr "1.25x2.25\"" msgid "1.5 inch/sec." msgstr "1.5 palce/sek." msgid "1.50x0.25\"" msgstr "1.50x0.25\"" msgid "1.50x0.50\"" msgstr "1.50x0.50\"" msgid "1.50x1.00\"" msgstr "1.50x1.00\"" msgid "1.50x2.00\"" msgstr "1.50x2.00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 palců/sek." msgid "10 x 11" msgstr "" msgid "10 x 13" msgstr "" msgid "10 x 14" msgstr "" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/sek." msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 palců/sek." msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 palců/sek." msgid "12 x 11" msgstr "" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/sek." msgid "120x60dpi" msgstr "120x60 dpi" msgid "120x72dpi" msgstr "120x72 dpi" msgid "13" msgstr "13" msgid "136dpi" msgstr "136 dpi" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/sek." msgid "15 x 11" msgstr "" msgid "150 mm/sec." msgstr "150 mm/sek." msgid "150dpi" msgstr "150 dpi" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180 dpi" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 palce/sek." msgid "2-Sided Printing" msgstr "oboustranný tisk" msgid "2.00x0.37\"" msgstr "2.00x0.37\"" msgid "2.00x0.50\"" msgstr "2.00x0.50\"" msgid "2.00x1.00\"" msgstr "2.00x1.00\"" msgid "2.00x1.25\"" msgstr "2.00x1.25\"" msgid "2.00x2.00\"" msgstr "2.00x2.00\"" msgid "2.00x3.00\"" msgstr "2.00x3.00\"" msgid "2.00x4.00\"" msgstr "2.00x4.00\"" msgid "2.00x5.50\"" msgstr "2.00x5.50\"" msgid "2.25x0.50\"" msgstr "2.25x0.50\"" msgid "2.25x1.25\"" msgstr "2.25x1.25\"" msgid "2.25x4.00\"" msgstr "2.25x4.00\"" msgid "2.25x5.50\"" msgstr "2.25x5.50\"" msgid "2.38x5.50\"" msgstr "2.38x5.50\"" msgid "2.5 inches/sec." msgstr "2.5 palce/sek." msgid "2.50x1.00\"" msgstr "2.50x1.00\"" msgid "2.50x2.00\"" msgstr "2.50x2.00\"" msgid "2.75x1.25\"" msgstr "2.75x1.25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/sek." msgid "200 mm/sec." msgstr "200 mm/sek." msgid "203dpi" msgstr "203 dpi" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "24 jehličková" msgid "240x72dpi" msgstr "240x72 dpi" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/sek." msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 palce/sek." msgid "3 x 5" msgstr "" msgid "3.00x1.00\"" msgstr "3.00x1.00\"" msgid "3.00x1.25\"" msgstr "3.00x1.25\"" msgid "3.00x2.00\"" msgstr "3.00x2.00\"" msgid "3.00x3.00\"" msgstr "3.00x3.00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00\"" msgid "3.25x5.00\"" msgstr "3.25x5.00\"" msgid "3.25x5.50\"" msgstr "3.25x5.50\"" msgid "3.25x5.83\"" msgstr "3.25x5.83\"" msgid "3.25x7.83\"" msgstr "3.25x7.83\"" msgid "3.5 x 5" msgstr "" msgid "3.5\" Disk" msgstr "3.5\" Disk" msgid "3.50x1.00\"" msgstr "3.50x1.00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/sek." msgid "300 mm/sec." msgstr "300 mm/sek." msgid "300dpi" msgstr "300 dpi" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360 dpi" msgid "360x180dpi" msgstr "360x180 dpi" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 palce/sek." msgid "4.00x1.00\"" msgstr "4.00x1.00\"" msgid "4.00x13.00\"" msgstr "4.00x13.00\"" msgid "4.00x2.00\"" msgstr "4.00x2.00\"" msgid "4.00x2.50\"" msgstr "4.00x2.50\"" msgid "4.00x3.00\"" msgstr "4.00x3.00\"" msgid "4.00x4.00\"" msgstr "4.00x4.00\"" msgid "4.00x5.00\"" msgstr "4.00x5.00\"" msgid "4.00x6.00\"" msgstr "4.00x6.00\"" msgid "4.00x6.50\"" msgstr "4.00x6.50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/sek." msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 palců/sek." msgid "5 x 7" msgstr "" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 palců/sek." msgid "6.00x1.00\"" msgstr "6.00x1.00\"" msgid "6.00x2.00\"" msgstr "6.00x2.00\"" msgid "6.00x3.00\"" msgstr "6.00x3.00\"" msgid "6.00x4.00\"" msgstr "6.00x4.00\"" msgid "6.00x5.00\"" msgstr "6.00x5.00\"" msgid "6.00x6.00\"" msgstr "6.00x6.00\"" msgid "6.00x6.50\"" msgstr "6.00x6.50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/sek." msgid "600dpi" msgstr "600 dpi" msgid "60dpi" msgstr "60 dpi" msgid "60x72dpi" msgstr "" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 palců/sek." msgid "7 x 9" msgstr "" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 palců/sek." msgid "8 x 10" msgstr "" msgid "8.00x1.00\"" msgstr "8.00x1.00\"" msgid "8.00x2.00\"" msgstr "8.00x2.00\"" msgid "8.00x3.00\"" msgstr "8.00x3.00\"" msgid "8.00x4.00\"" msgstr "8.00x4.00\"" msgid "8.00x5.00\"" msgstr "8.00x5.00\"" msgid "8.00x6.00\"" msgstr "8.00x6.00\"" msgid "8.00x6.50\"" msgstr "8.00x6.50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/sek." msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 palců/sek." msgid "9 x 11" msgstr "" msgid "9 x 12" msgstr "" msgid "9-Pin Series" msgstr "9 jehličková" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "" #, c-format msgid "A class named \"%s\" already exists." msgstr "" #, c-format msgid "A printer named \"%s\" already exists." msgstr "" msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "" msgid "A3 Oversize" msgstr "" msgid "A3 Oversize Long Edge" msgstr "" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "" msgid "A4 Oversize" msgstr "" msgid "A4 Small" msgstr "" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "" msgid "A5 Oversize" msgstr "" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "" msgid "Accept Jobs" msgstr "Příjem úloh" msgid "Accepted" msgstr "Přijatý" msgid "Add Class" msgstr "Přidat třídu" msgid "Add Printer" msgstr "Přidat tiskárnu" msgid "Address" msgstr "Adresa" msgid "Administration" msgstr "Administrace" msgid "Always" msgstr "Vždy" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Aplikátor" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "" msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "Neplatný ukazatel NULL" msgid "Bad OpenGroup" msgstr "Chybný OpenGroup" msgid "Bad OpenUI/JCLOpenUI" msgstr "Chybný OpenUI/JCLOpenUI" msgid "Bad OrderDependency" msgstr "Chybný OrderDependency" msgid "Bad PPD cache file." msgstr "" msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "Chybný požadavek" msgid "Bad SNMP version number" msgstr "Chybná verze SNMP" msgid "Bad UIConstraints" msgstr "Chybný UIConstraints" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "" #, c-format msgid "Bad copies value %d." msgstr "Chybný počet kopií %d." msgid "Bad custom parameter" msgstr "Chybný uživatelský parametr" #, c-format msgid "Bad device-uri \"%s\"." msgstr "" #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "" #, c-format msgid "Bad document-format \"%s\"." msgstr "" #, c-format msgid "Bad document-format-default \"%s\"." msgstr "" msgid "Bad filename buffer" msgstr "" msgid "Bad hostname/address in URI" msgstr "" #, c-format msgid "Bad job-name value: %s" msgstr "" msgid "Bad job-name value: Wrong type or count." msgstr "" msgid "Bad job-priority value." msgstr "" #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "" msgid "Bad job-sheets value type." msgstr "" msgid "Bad job-state value." msgstr "" #, c-format msgid "Bad job-uri \"%s\"." msgstr "" #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "" #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "" #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "Chybná hodnota %d." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Chybný rozsah stránek %d-%d." msgid "Bad port number in URI" msgstr "" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "" #, c-format msgid "Bad printer-state value %d." msgstr "" msgid "Bad printer-uri." msgstr "" #, c-format msgid "Bad request ID %d." msgstr "" #, c-format msgid "Bad request version number %d.%d." msgstr "" msgid "Bad resource in URI" msgstr "" msgid "Bad scheme in URI" msgstr "" msgid "Bad username in URI" msgstr "" msgid "Bad value string" msgstr "" msgid "Bad/empty URI" msgstr "" msgid "Banners" msgstr "Banery" msgid "Bond Paper" msgstr "Kancelářský papír" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "" msgid "Buffer overflow detected, aborting." msgstr "" msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "Tiskárna štítků CPCL" msgid "Cancel Jobs" msgstr "" msgid "Canceling print job." msgstr "" msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "" msgid "Cassette" msgstr "" msgid "Change Settings" msgstr "Změna nastavení" #, c-format msgid "Character set \"%s\" not supported." msgstr "" msgid "Classes" msgstr "Třídy" msgid "Clean Print Heads" msgstr "Vyčištění tiskových hlav" msgid "Close-Job doesn't support the job-uri attribute." msgstr "" msgid "Color" msgstr "Barva" msgid "Color Mode" msgstr "Barevný režim" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" msgid "Community name uses indefinite length" msgstr "\"Community-Name\" má neomezenou délku" msgid "Connected to printer." msgstr "" msgid "Connecting to printer." msgstr "" msgid "Continue" msgstr "Pokračovat" msgid "Continuous" msgstr "Souvislý" msgid "Control file sent successfully." msgstr "" msgid "Copying print data." msgstr "" msgid "Created" msgstr "Vytvořeno" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Uživatelský" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Snížit" msgid "Cutter" msgstr "Výstřižek" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Tmavý" msgid "Darkness" msgstr "Tma" msgid "Data file sent successfully." msgstr "" msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Výmaz třídy" msgid "Delete Printer" msgstr "Výmaz tiskárny" msgid "DeskJet Series" msgstr "Řada DeskJet" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "Zařízení \"%s\" nepřijímá úlohy." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" msgid "Direct Thermal Media" msgstr "Termální médium" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "" #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #, c-format msgid "Directory \"%s\" is a file." msgstr "" #, c-format msgid "Directory \"%s\" not available: %s" msgstr "" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" msgid "Disabled" msgstr "Zakázaný" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "" msgid "Draft" msgstr "" msgid "Duplexer" msgstr "Duplexní jednotka" msgid "EPL1 Label Printer" msgstr "Tiskárna štítků EPL1" msgid "EPL2 Label Printer" msgstr "Tiskárna štítků EPL2" msgid "Edit Configuration File" msgstr "Úprava konfiguračního souboru" msgid "Encryption is not supported." msgstr "" #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "Ukončení baneru" msgid "English" msgstr "Čeština" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Zadejte své uživatelské jméno a heslo, nebo uživatelské jméno a heslo " "administrátora pro přístup na tuto stránku. Pokud používáte ověřování " "Kerberos, ujistěte se, že máte platný ticket Kerberosu." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "" msgid "Envelope #12" msgstr "" msgid "Envelope #14" msgstr "" msgid "Envelope #9" msgstr "" msgid "Envelope B4" msgstr "" msgid "Envelope B5" msgstr "" msgid "Envelope B6" msgstr "" msgid "Envelope C0" msgstr "" msgid "Envelope C1" msgstr "" msgid "Envelope C2" msgstr "" msgid "Envelope C3" msgstr "" msgid "Envelope C4" msgstr "" msgid "Envelope C5" msgstr "" msgid "Envelope C6" msgstr "" msgid "Envelope C65" msgstr "" msgid "Envelope C7" msgstr "" msgid "Envelope Choukei 3" msgstr "" msgid "Envelope Choukei 3 Long Edge" msgstr "" msgid "Envelope Choukei 4" msgstr "" msgid "Envelope Choukei 4 Long Edge" msgstr "" msgid "Envelope DL" msgstr "" msgid "Envelope Feed" msgstr "Podavač obálek" msgid "Envelope Invite" msgstr "" msgid "Envelope Italian" msgstr "" msgid "Envelope Kaku2" msgstr "" msgid "Envelope Kaku2 Long Edge" msgstr "" msgid "Envelope Kaku3" msgstr "" msgid "Envelope Kaku3 Long Edge" msgstr "" msgid "Envelope Monarch" msgstr "" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "" msgid "Envelope PRC10" msgstr "" msgid "Envelope PRC10 Long Edge" msgstr "" msgid "Envelope PRC2" msgstr "" msgid "Envelope PRC2 Long Edge" msgstr "" msgid "Envelope PRC3" msgstr "" msgid "Envelope PRC3 Long Edge" msgstr "" msgid "Envelope PRC4" msgstr "" msgid "Envelope PRC4 Long Edge" msgstr "" msgid "Envelope PRC5 Long Edge" msgstr "" msgid "Envelope PRC5PRC5" msgstr "" msgid "Envelope PRC6" msgstr "" msgid "Envelope PRC6 Long Edge" msgstr "" msgid "Envelope PRC7" msgstr "" msgid "Envelope PRC7 Long Edge" msgstr "" msgid "Envelope PRC8" msgstr "" msgid "Envelope PRC8 Long Edge" msgstr "" msgid "Envelope PRC9" msgstr "" msgid "Envelope PRC9 Long Edge" msgstr "" msgid "Envelope Personal" msgstr "" msgid "Envelope You4" msgstr "" msgid "Envelope You4 Long Edge" msgstr "" msgid "Environment Variables:" msgstr "" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Chování při chybě" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "" msgid "Error: need hostname after \"-h\" option." msgstr "" msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Každých 10 štítků" msgid "Every 2 Labels" msgstr "Každé 2 štítky" msgid "Every 3 Labels" msgstr "Každé 3 štítky" msgid "Every 4 Labels" msgstr "Každé 4 štítky" msgid "Every 5 Labels" msgstr "Každých 5 štítků" msgid "Every 6 Labels" msgstr "Každých 6 štítků" msgid "Every 7 Labels" msgstr "Každých 7 štítků" msgid "Every 8 Labels" msgstr "Každých 8 štítků" msgid "Every 9 Labels" msgstr "Každých 9 štítků" msgid "Every Label" msgstr "Každý štítek" msgid "Executive" msgstr "" msgid "Expectation Failed" msgstr "Očekávané údaje jsou neplatné" msgid "Expressions:" msgstr "" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "" #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #, c-format msgid "File \"%s\" is a directory." msgstr "" #, c-format msgid "File \"%s\" not available: %s" msgstr "" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" #, c-format msgid "Finished page %d." msgstr "" msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Fólie" msgid "Forbidden" msgstr "Zakázaný" msgid "Found" msgstr "" msgid "General" msgstr "Obecný" msgid "Generic" msgstr "Obecný" msgid "Get-Response-PDU uses indefinite length" msgstr "\"Get-Response-PDU\" má neomezenou délku" msgid "Glossy Paper" msgstr "Lesklý papír" msgid "Got a printer-uri attribute but no job-id." msgstr "" msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Stupně šedi" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Závěsná složka" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "" msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "" msgid "IPP attribute has no name." msgstr "" msgid "IPP attribute is not a member of the message." msgstr "" msgid "IPP begCollection value not 0 bytes." msgstr "" msgid "IPP boolean value not 1 byte." msgstr "" msgid "IPP date value not 11 bytes." msgstr "" msgid "IPP endCollection value not 0 bytes." msgstr "" msgid "IPP enum value not 4 bytes." msgstr "" msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "" msgid "IPP integer value not 4 bytes." msgstr "" msgid "IPP language length overflows value." msgstr "" msgid "IPP language length too large." msgstr "" msgid "IPP member name is not empty." msgstr "" msgid "IPP memberName value is empty." msgstr "" msgid "IPP memberName with no attribute." msgstr "" msgid "IPP name larger than 32767 bytes." msgstr "" msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "" msgid "IPP octetString length too large." msgstr "" msgid "IPP rangeOfInteger value not 8 bytes." msgstr "" msgid "IPP resolution value not 9 bytes." msgstr "" msgid "IPP string length overflows value." msgstr "" msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "" msgid "IPP value larger than 32767 bytes." msgstr "" msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Neplatný řídící znak" msgid "Illegal main keyword string" msgstr "Neplatné hlavní klíčové slovo řetězce" msgid "Illegal option keyword string" msgstr "Neplatná volba klíčového slova řetězce" msgid "Illegal translation string" msgstr "Neplatný překlad řetězce" msgid "Illegal whitespace character" msgstr "Nedovolený prázdný znak" msgid "Installable Options" msgstr "Možnosti instalace" msgid "Installed" msgstr "Instalovaný" msgid "IntelliBar Label Printer" msgstr "Tiskárna štítků \"IntelliBar\"" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "" msgid "Internal error" msgstr "Vniřní chyba" msgid "Internet Postage 2-Part" msgstr "Internet Postage 2-Part" msgid "Internet Postage 3-Part" msgstr "Internet Postage 3-Part" msgid "Internet Printing Protocol" msgstr "Internetový tiskový protokol" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "" msgid "Invalid media size." msgstr "" msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "" msgid "JCL" msgstr "JCL" msgid "JIS B0" msgstr "" msgid "JIS B1" msgstr "" msgid "JIS B10" msgstr "" msgid "JIS B2" msgstr "" msgid "JIS B3" msgstr "" msgid "JIS B4" msgstr "" msgid "JIS B4 Long Edge" msgstr "" msgid "JIS B5" msgstr "" msgid "JIS B5 Long Edge" msgstr "" msgid "JIS B6" msgstr "" msgid "JIS B6 Long Edge" msgstr "" msgid "JIS B7" msgstr "" msgid "JIS B8" msgstr "" msgid "JIS B9" msgstr "" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "" #, c-format msgid "Job #%d does not exist." msgstr "" #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "Úloha #%d je již zrušena - nelze zrušit." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "Úloha #%d je již zrušena - nelze zrušit." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "Úloha #%d je již dokončena - nelze zrušit." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "" #, c-format msgid "Job #%d is not complete." msgstr "" #, c-format msgid "Job #%d is not held for authentication." msgstr "" #, c-format msgid "Job #%d is not held." msgstr "" msgid "Job Completed" msgstr "Úloha dokončena" msgid "Job Created" msgstr "Úloha vytvořena" msgid "Job Options Changed" msgstr "Změna parametrů úlohy" msgid "Job Stopped" msgstr "Úloha zastavena" msgid "Job is completed and cannot be changed." msgstr "Úloha je dokončena a nelze ji změnit." msgid "Job operation failed" msgstr "Úloha se nezdařila" msgid "Job state cannot be changed." msgstr "Stav úlohy nelze změnit." msgid "Job subscriptions cannot be renewed." msgstr "" msgid "Jobs" msgstr "Úlohy" msgid "LPD/LPR Host or Printer" msgstr "LPD/LPR hostitel nebo tiskárna" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Tiskárna štítků" msgid "Label Top" msgstr "Horní štítek" #, c-format msgid "Language \"%s\" not supported." msgstr "" msgid "Large Address" msgstr "Plná adresa" msgid "LaserJet Series PCL 4/5" msgstr "LaserJet Serie PCL 4/5" msgid "Letter Oversize" msgstr "" msgid "Letter Oversize Long Edge" msgstr "" msgid "Light" msgstr "Světlý" msgid "Line longer than the maximum allowed (255 characters)" msgstr "Řádek je delší než maximální povolená velikost (255 znaků)" msgid "List Available Printers" msgstr "Seznam dostupných tiskáren" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "Delší okraj (na výšku)" msgid "Looking for printer." msgstr "" msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Ruční podávání" msgid "Media Size" msgstr "Velikost média" msgid "Media Source" msgstr "Zdroj média" msgid "Media Tracking" msgstr "Sledování média" msgid "Media Type" msgstr "Typ média" msgid "Medium" msgstr "Střední" msgid "Memory allocation error" msgstr "Chyba přidělení paměti" msgid "Missing CloseGroup" msgstr "" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Chybějící záhlaví PPD-Adobe-4.x" msgid "Missing asterisk in column 1" msgstr "Chybí hvězdička ve sloupci 1" msgid "Missing document-number attribute." msgstr "" msgid "Missing form variable" msgstr "" msgid "Missing last-document attribute in request." msgstr "" msgid "Missing media or media-col." msgstr "" msgid "Missing media-size in media-col." msgstr "" msgid "Missing notify-subscription-ids attribute." msgstr "" msgid "Missing option keyword" msgstr "" msgid "Missing requesting-user-name attribute." msgstr "" #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "" msgid "Missing resource in URI" msgstr "" msgid "Missing scheme in URI" msgstr "" msgid "Missing value string" msgstr "Chybí hodnota řetězce" msgid "Missing x-dimension in media-size." msgstr "" msgid "Missing y-dimension in media-size." msgstr "" #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" msgid "Modifiers:" msgstr "" msgid "Modify Class" msgstr "Úprava třídy" msgid "Modify Printer" msgstr "Úprava tiskárny" msgid "Move All Jobs" msgstr "Přesun všech úloh" msgid "Move Job" msgstr "Přesun úlohy" msgid "Moved Permanently" msgstr "Trvale přesunuto" msgid "NULL PPD file pointer" msgstr "Prázdný ukazatel PPD souboru" msgid "Name OID uses indefinite length" msgstr "Název \"OID\" má neomezenou délku" msgid "Nested classes are not allowed." msgstr "" msgid "Never" msgstr "Nikdy" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "Ne" msgid "No Content" msgstr "Žádný obsah" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "" msgid "No VarBind SEQUENCE" msgstr "Žádná VarBind SEQUENCE" msgid "No active connection" msgstr "Není aktivní spojení" msgid "No active connection." msgstr "" #, c-format msgid "No active jobs on %s." msgstr "" msgid "No attributes in request." msgstr "" msgid "No authentication information provided." msgstr "" msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Žádný název komunity" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "" msgid "No destinations added." msgstr "Zařízení nepřidáno." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" msgid "No error-index" msgstr "Žádný \"error-index\"" msgid "No error-status" msgstr "Žádný \"error-status\"" msgid "No file in print request." msgstr "" msgid "No modification time" msgstr "" msgid "No name OID" msgstr "Žádný název OID" msgid "No pages were found." msgstr "" msgid "No printer name" msgstr "" msgid "No printer-uri found" msgstr "" msgid "No printer-uri found for class" msgstr "" msgid "No printer-uri in request." msgstr "" msgid "No request URI." msgstr "" msgid "No request protocol version." msgstr "" msgid "No request sent." msgstr "" msgid "No request-id" msgstr "Žádný ID požadavek" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "" msgid "No subscriptions found." msgstr "Nenalezeno předplatné." msgid "No variable-bindings SEQUENCE" msgstr "Žádná \"variable-bindings\" SEQUENCE" msgid "No version number" msgstr "Není číslo verze" msgid "Non-continuous (Mark sensing)" msgstr "Není souvislý (Mark Sensing)" msgid "Non-continuous (Web sensing)" msgstr "Není souvislý (Web Sensing)" msgid "None" msgstr "" msgid "Normal" msgstr "Normální" msgid "Not Found" msgstr "Nebyl nalezen" msgid "Not Implemented" msgstr "Nerealizováno" msgid "Not Installed" msgstr "Nenainstalováno" msgid "Not Modified" msgstr "Nezměněno" msgid "Not Supported" msgstr "Nepodporováno" msgid "Not allowed to print." msgstr "Není povoleno tisknout." msgid "Note" msgstr "Poznámka" msgid "OK" msgstr "OK" msgid "Off (1-Sided)" msgstr "Vypnuto (jednostranný)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Nápověda" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "Otevření %s selhalo: %s" msgid "OpenGroup without a CloseGroup first" msgstr "Opengroup nepředcházelo CloseGroup" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI nepředcházelo CloseUI/JCLCloseUI" msgid "Operation Policy" msgstr "Způsob ověření" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "" msgid "Options Installed" msgstr "Instalované možnosti" msgid "Options:" msgstr "" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "" msgid "Out of memory." msgstr "" msgid "Output Mode" msgstr "Výstupní režim" msgid "PCL Laser Printer" msgstr "PCL laserová tiskárna" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "" msgid "PRC32K Oversize" msgstr "" msgid "PRC32K Oversize Long Edge" msgstr "" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "Packet neobsahuje \"Get-Response-PDU\"" msgid "Packet does not start with SEQUENCE" msgstr "Paket nezačíná SEQUENCÍ" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Heslo pro %s na %s? " msgid "Pause Class" msgstr "Pozastavení třídy" msgid "Pause Printer" msgstr "Pozastavení tiskárny" msgid "Peel-Off" msgstr "Peel-Off" msgid "Photo" msgstr "Fotografie" msgid "Photo Labels" msgstr "Foto-samolepky" msgid "Plain Paper" msgstr "Obyčejný papír" msgid "Policies" msgstr "Pravidla" msgid "Port Monitor" msgstr "Monitorování portu" msgid "PostScript Printer" msgstr "PostScriptová tiskárna" msgid "Postcard" msgstr "Pohlednice" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "" msgid "Postcard Long Edge" msgstr "" msgid "Preparing to print." msgstr "" msgid "Print Density" msgstr "Hustota tisku" msgid "Print Job:" msgstr "Tisk úlohy:" msgid "Print Mode" msgstr "Režim tisku" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "Kvalita tisku" msgid "Print Self-Test Page" msgstr "Tisk \"self-test\" stránky" msgid "Print Speed" msgstr "Rychlost tisku" msgid "Print Test Page" msgstr "Tisk zkušební stránky" msgid "Print and Cut" msgstr "Tisk a vyjmout" msgid "Print and Tear" msgstr "Tisk a odtrhnout" msgid "Print file sent." msgstr "" msgid "Print job canceled at printer." msgstr "" msgid "Print job too large." msgstr "" msgid "Print job was not accepted." msgstr "" #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "Tiskárna přidána" msgid "Printer Default" msgstr "Výchozí tiskárna" msgid "Printer Deleted" msgstr "Tiskárna vymazána" msgid "Printer Modified" msgstr "Tiskárna upravena" msgid "Printer Paused" msgstr "Tiskárna zastavena" msgid "Printer Settings" msgstr "Nastavení tiskárny" msgid "Printer cannot print supplied content." msgstr "" msgid "Printer cannot print with supplied options." msgstr "" msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Tiskárna:" msgid "Printers" msgstr "Tiskárny" #, c-format msgid "Printing page %d, %u%% complete." msgstr "" msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quarto" msgid "Quota limit reached." msgstr "Kvóta byla překročena." msgid "Rank Owner Job File(s) Total Size" msgstr "" msgid "Reject Jobs" msgstr "Odmítnutí úloh" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "" #, c-format msgid "Remote host did not accept data file (%d)." msgstr "" msgid "Reprint After Error" msgstr "Opakovat tisk po chybě" msgid "Request Entity Too Large" msgstr "Dotaz Entity je příliš dlouhý" msgid "Resolution" msgstr "Rozlišení" msgid "Resume Class" msgstr "Obnovení třídy" msgid "Resume Printer" msgstr "Obnovení tiskárny" msgid "Return Address" msgstr "Návrat adresy" msgid "Rewind" msgstr "Přetočit" msgid "SEQUENCE uses indefinite length" msgstr "\"SEQUENCE\" má neomezenou délku" msgid "SSL/TLS Negotiation Error" msgstr "" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Viz další" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "" msgid "Server Restarted" msgstr "Restart serveru" msgid "Server Security Auditing" msgstr "Audit bezpečnosti serveru" msgid "Server Started" msgstr "Start serveru" msgid "Server Stopped" msgstr "Zastavení serveru" msgid "Server credentials not set." msgstr "" msgid "Service Unavailable" msgstr "Služba je nedostupná" msgid "Set Allowed Users" msgstr "Nastavení přístupu uživatelů" msgid "Set As Server Default" msgstr "Nastavení jako výchozí na serveru" msgid "Set Class Options" msgstr "Nastavení parametrů třídy" msgid "Set Printer Options" msgstr "Nastavení parametrů tiskárny" msgid "Set Publishing" msgstr "Nastavení vydávání" msgid "Shipping Address" msgstr "Doručovací adresa" msgid "Short-Edge (Landscape)" msgstr "Kratší okraj (na šířku)" msgid "Special Paper" msgstr "Speciální papír" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "" msgid "Standard" msgstr "Standardní" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Spuštění baneru" #, c-format msgid "Starting page %d." msgstr "" msgid "Statement" msgstr "Prohlášení" #, c-format msgid "Subscription #%d does not exist." msgstr "" msgid "Substitutions:" msgstr "" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Protokol výměny" msgid "Tabloid" msgstr "Tabloid" msgid "Tabloid Oversize" msgstr "" msgid "Tabloid Oversize Long Edge" msgstr "" msgid "Tear" msgstr "Odtrhnout" msgid "Tear-Off" msgstr "Odtrhnout" msgid "Tear-Off Adjust Position" msgstr "Nastavení pozice odtržení" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "" #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "" #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "Soubor PPD \"%s\" nelze nalézt." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "Soubor PPD \"%s\" nelze otevřít: %s" msgid "The PPD file could not be opened." msgstr "" msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "Název třídy může obsahovat až 127 tisknutelných znaků a nesmí obsahovat " "mezery, lomítka (/), nebo křížek (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "Atribut \"notify-lease-duration\" nelze použít s přihlášenou úlohou." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "" msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" msgid "The printer did not respond." msgstr "" msgid "The printer is in use." msgstr "" msgid "The printer is not connected." msgstr "" msgid "The printer is not responding." msgstr "" msgid "The printer is now connected." msgstr "" msgid "The printer is now online." msgstr "" msgid "The printer is offline." msgstr "" msgid "The printer is unreachable at this time." msgstr "" msgid "The printer may not exist or is unavailable at this time." msgstr "" msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "" msgid "The printer or class is not shared." msgstr "" #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "Tiskárna-URI \"%s\" obsahuje neplatné znaky." msgid "The printer-uri attribute is required." msgstr "" msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "Tiskárna-URI musí být ve tvaru \"ipp://HOSTNAME/classes/CLASSNAME\"." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "Tiskárna-URI musí být ve tvaru \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "" msgid "There are too many subscriptions." msgstr "Existuje příliš mnoho předplatných." msgid "There was an unrecoverable USB error." msgstr "" msgid "Thermal Transfer Media" msgstr "Termální tisková média" msgid "Too many active jobs." msgstr "Příliš mnoho aktivních úloh." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "" #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "" msgid "Transparency" msgstr "Průhlednost" msgid "Tray" msgstr "Podavač" msgid "Tray 1" msgstr "Podavač 1" msgid "Tray 2" msgstr "Podavač 2" msgid "Tray 3" msgstr "Podavač 3" msgid "Tray 4" msgstr "Podavač 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "URI je příliš dlouhá" msgid "URI too large" msgstr "" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "US Ledger" msgid "US Legal" msgstr "US Legal" msgid "US Legal Oversize" msgstr "" msgid "US Letter" msgstr "US Letter" msgid "US Letter Long Edge" msgstr "" msgid "US Letter Oversize" msgstr "" msgid "US Letter Oversize Long Edge" msgstr "" msgid "US Letter Small" msgstr "" msgid "Unable to access cupsd.conf file" msgstr "Nelze získat přístup k souboru \"cupsd.conf\"" msgid "Unable to access help file." msgstr "" msgid "Unable to add class" msgstr "Nelze přidat třídu" msgid "Unable to add document to print job." msgstr "" #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "" msgid "Unable to add printer" msgstr "Nelze přidat tiskárnu" msgid "Unable to allocate memory for file types." msgstr "" msgid "Unable to allocate memory for page info" msgstr "" msgid "Unable to allocate memory for pages array" msgstr "" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "" msgid "Unable to change printer" msgstr "Nelze změnit tiskárnu" msgid "Unable to change printer-is-shared attribute" msgstr "Nelze změnit atribut \"sdílení tiskárny\"" msgid "Unable to change server settings" msgstr "Nelze změnit nastavení serveru" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" msgid "Unable to configure printer options." msgstr "" msgid "Unable to connect to host." msgstr "Nelze se připojit k hostiteli." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" #, c-format msgid "Unable to copy PPD file - %s" msgstr "" msgid "Unable to copy PPD file." msgstr "" msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "" msgid "Unable to delete class" msgstr "Nelze vymazat třídu" msgid "Unable to delete printer" msgstr "Nelze vymazat tiskárnu" msgid "Unable to do maintenance command" msgstr "Nelze provést příkaz údržby" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" msgid "Unable to establish a secure connection to host." msgstr "" #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "" msgid "Unable to find printer." msgstr "" msgid "Unable to find server credentials." msgstr "" msgid "Unable to get backend exit status." msgstr "" msgid "Unable to get class list" msgstr "Nelze získat seznam tříd" msgid "Unable to get class status" msgstr "Nelze získat stav třídy" msgid "Unable to get list of printer drivers" msgstr "Nelze získat seznam ovladačů tiskárny" msgid "Unable to get printer attributes" msgstr "Nelze získat atributy tiskárny" msgid "Unable to get printer list" msgstr "Nelze získat seznam tiskáren" msgid "Unable to get printer status" msgstr "" msgid "Unable to get printer status." msgstr "Nelze získat stav tiskárny." msgid "Unable to load help index." msgstr "" #, c-format msgid "Unable to locate printer \"%s\"." msgstr "" msgid "Unable to locate printer." msgstr "" msgid "Unable to modify class" msgstr "Nelze změnit třídu" msgid "Unable to modify printer" msgstr "Nelze změnit tiskárnu" msgid "Unable to move job" msgstr "Nelze přesunout úlohu" msgid "Unable to move jobs" msgstr "Nelze přesunout úlohy" msgid "Unable to open PPD file" msgstr "Nelze otevřít PPD soubor" msgid "Unable to open cupsd.conf file:" msgstr "Nelze otevřít soubor \"cupsd.conf\":" msgid "Unable to open device file" msgstr "" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "" msgid "Unable to open help file." msgstr "" msgid "Unable to open print file" msgstr "" msgid "Unable to open raster file" msgstr "" msgid "Unable to print test page" msgstr "Nelze vytisknout zkušební stránku" msgid "Unable to read print data." msgstr "" #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "" msgid "Unable to see in file" msgstr "" msgid "Unable to send command to printer driver" msgstr "" msgid "Unable to send data to printer." msgstr "" msgid "Unable to set options" msgstr "Nelze nastavit parametry" msgid "Unable to set server default" msgstr "Nelze nastavit výchozí server" msgid "Unable to start backend process." msgstr "" msgid "Unable to upload cupsd.conf file" msgstr "Nelze nahrát soubor \"cupsd.conf\"" msgid "Unable to use legacy USB class driver." msgstr "" msgid "Unable to write print data" msgstr "" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "" msgid "Unauthorized" msgstr "Nepovolený" msgid "Units" msgstr "Jednotky" msgid "Unknown" msgstr "Neznámý" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "" #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "" #, c-format msgid "Unknown file order: \"%s\"." msgstr "" #, c-format msgid "Unknown format character: \"%c\"." msgstr "" msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "" #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "" #, c-format msgid "Unknown option \"%s\"." msgstr "" #, c-format msgid "Unknown print mode: \"%s\"." msgstr "" #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "Neznámá printer-error-policy „%s“." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "Neznámá printer-op-policy „%s“." msgid "Unknown request method." msgstr "" msgid "Unknown request version." msgstr "" msgid "Unknown scheme in URI" msgstr "" msgid "Unknown service name." msgstr "" #, c-format msgid "Unknown version option value: \"%s\"." msgstr "" #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "" #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "" msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "" #, c-format msgid "Unsupported character set \"%s\"." msgstr "" #, c-format msgid "Unsupported compression \"%s\"." msgstr "" #, c-format msgid "Unsupported document-format \"%s\"." msgstr "" #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "" #, c-format msgid "Unsupported format \"%s\"." msgstr "" msgid "Unsupported margins." msgstr "" msgid "Unsupported media value." msgstr "" #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" msgid "Unsupported raster data." msgstr "" msgid "Unsupported value type" msgstr "Nepodporovaný typ hodnoty" msgid "Upgrade Required" msgstr "Povinné aktualizace" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "" msgid "Usage: cupsd [options]" msgstr "" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" msgid "Usage: snmp [host-or-ip-address]" msgstr "" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "Hodnota má neomezenou délku" msgid "VarBind uses indefinite length" msgstr "VarBind má neomezenou délku" msgid "Version uses indefinite length" msgstr "Version má neomezenou délku" msgid "Waiting for job to complete." msgstr "" msgid "Waiting for printer to become available." msgstr "" msgid "Waiting for printer to finish." msgstr "" msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "" msgid "Yes" msgstr "Ano" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Pro přístup k této stránce, použijte adresu URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Tiskárna štítků ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "zrušeno" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "zrušeno" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "dokončeno" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "Nepodařilo se spustit \"cups-deviced\"." msgid "cups-driverd failed to execute." msgstr "Nepodařilo se spustit \"cups-driverd\"." #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" msgid "cupsd: Unable to get current directory." msgstr "" msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "" #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "" #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "" #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "" msgid "cupsfilter: Only one filename can be specified." msgstr "" #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "" msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "" #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "" #, c-format msgid "device for %s: %s" msgstr "" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "\"error-index\" má neomezenou délku" msgid "error-status uses indefinite length" msgstr "\"error-status\" má neomezenou délku" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "pozastaveno" msgid "help\t\tGet help on commands." msgstr "" msgid "idle" msgstr "čeká" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "" msgid "ippfind: Cannot use --and after --or." msgstr "" #, c-format msgid "ippfind: Expected key name after %s." msgstr "" #, c-format msgid "ippfind: Expected port range after %s." msgstr "" #, c-format msgid "ippfind: Expected program after %s." msgstr "" #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "" msgid "ippfind: Missing close brace in substitution." msgstr "" msgid "ippfind: Missing close parenthesis." msgstr "" msgid "ippfind: Missing expression before \"--and\"." msgstr "" msgid "ippfind: Missing expression before \"--or\"." msgstr "" #, c-format msgid "ippfind: Missing key name after %s." msgstr "" #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "" #, c-format msgid "ippfind: Missing program after %s." msgstr "" #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "" #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "" msgid "ippfind: Out of memory." msgstr "" msgid "ippfind: Too many parenthesis." msgstr "" #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "" msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "" msgid "ipptool: May only specify a single URI." msgstr "" msgid "ipptool: Missing count for \"-n\"." msgstr "" msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "" msgid "ipptool: Missing name=value for \"-d\"." msgstr "" msgid "ipptool: Missing seconds for \"-i\"." msgstr "" msgid "ipptool: URI required before test file." msgstr "" #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "" #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "" #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" msgid "lpadmin: Expected class after \"-r\" option." msgstr "" msgid "lpadmin: Expected class name after \"-c\" option." msgstr "" msgid "lpadmin: Expected description after \"-D\" option." msgstr "" msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "" msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "" msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "" msgid "lpadmin: Expected location after \"-L\" option." msgstr "" msgid "lpadmin: Expected model after \"-m\" option." msgstr "" msgid "lpadmin: Expected name after \"-R\" option." msgstr "" msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "" msgid "lpadmin: Expected printer after \"-p\" option." msgstr "" msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "" msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "" msgid "lpadmin: No member names were seen." msgstr "" #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "" #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "" msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "" msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "" msgid "lpadmin: Unable to create temporary file" msgstr "" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "" #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "" #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "" msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "" msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" msgid "lpinfo: Expected language after \"--language\"." msgstr "" msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "" msgid "lpinfo: Expected product string after \"--product\"." msgstr "" msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "" #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "" msgid "lpoptions: No printers." msgstr "" #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "" msgid "lpoptions: Unknown printer or class." msgstr "" #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "" msgid "no system default destination" msgstr "" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "" #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "" #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "nevyřízený" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "" #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "" #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "" #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "" #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "" #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "" #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "" #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "" #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "" #, c-format msgid "ppdc: Writing %s." msgstr "" #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "" #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "" #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "" #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "zpracování" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "" msgid "request-id uses indefinite length" msgstr "ID požadavku má neomezenou délku" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "" msgid "scheduler is running" msgstr "" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "stav %s selhalo: %s" msgid "status\t\tShow status of daemon and queue." msgstr "" #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "zastaveno" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "" #, c-format msgid "system default destination: %s/%s" msgstr "" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "neznámý" msgid "untitled" msgstr "nepojmenovaný" msgid "variable-bindings uses indefinite length" msgstr "\"variable-bindings\" má neomezenou délku" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Export tiskáren do Samby" cups-2.4.7/locale/cups_ca.po0000644000175000017500000123054314502571342015605 0ustar zdohnalzdohnal# # Catalan message catalog for CUPS. # # Copyright © 2007-2018 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # Àngel Mompó , 2011, 2012. # msgid "" msgstr "" "Project-Id-Version: CUPS 2.3\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: 2012-09-29 11:21+0200\n" "Last-Translator: Àngel Mompó \n" "Language-Team: Catalan \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n!=1);\n" msgid "\t\t(all)" msgstr "\t\t(tots)" msgid "\t\t(none)" msgstr "\t\t(cap)" #, c-format msgid "\t%d entries" msgstr "\t%d entrades" #, c-format msgid "\t%s" msgstr "\t%s" msgid "\tAfter fault: continue" msgstr "\tDesprés d'una fallada: continua" #, c-format msgid "\tAlerts: %s" msgstr "\tAlertes: %s" msgid "\tBanner required" msgstr "\tNecessita un bàner" msgid "\tCharset sets:" msgstr "\tConjunt de caràcters:" msgid "\tConnection: direct" msgstr "\tConnexió: directa" msgid "\tConnection: remote" msgstr "\tConnexió: remota" msgid "\tContent types: any" msgstr "\tTipus de contingut: qualsevol" msgid "\tDefault page size:" msgstr "\tMida de la pàgina per defecte:" msgid "\tDefault pitch:" msgstr "\tDensitat per defecte:" msgid "\tDefault port settings:" msgstr "\tConfiguració del port per defecte:" #, c-format msgid "\tDescription: %s" msgstr "\tDescripció: %s" msgid "\tForm mounted:" msgstr "\tFormularis muntats:" msgid "\tForms allowed:" msgstr "\tFormularis admesos:" #, c-format msgid "\tInterface: %s.ppd" msgstr "\tInterfície: %s.ppd" #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "\tInterfície: %s/ppd/%s.ppd" #, c-format msgid "\tLocation: %s" msgstr "\tUbicació: %s" msgid "\tOn fault: no alert" msgstr "\tEn cas de fallada: no avisis" msgid "\tPrinter types: unknown" msgstr "\tTipus d'impresores: desconeguts" #, c-format msgid "\tStatus: %s" msgstr "\tEstat: %s" msgid "\tUsers allowed:" msgstr "\tUsuaris permesos:" msgid "\tUsers denied:" msgstr "\tUsuaris sense permís:" msgid "\tdaemon present" msgstr "\tpresència del dimoni" msgid "\tno entries" msgstr "\tcap entrada" #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "\tLa impressora és al dispositiu «%s» velocitat -1" msgid "\tprinting is disabled" msgstr "\tLa impressora està deshabilitada" msgid "\tprinting is enabled" msgstr "\tLa impressora està habilitada" #, c-format msgid "\tqueued for %s" msgstr "\ten cua per %s" msgid "\tqueuing is disabled" msgstr "\tla cua està deshabilitada" msgid "\tqueuing is enabled" msgstr "\tla cua està habilitada" msgid "\treason unknown" msgstr "\traó desconeguda" msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" "\n" " RESULTAT DETALLAT DEL TEST DE CONFORMITAT" msgid " REF: Page 15, section 3.1." msgstr " REF: pàgina 15, secció 3.1." msgid " REF: Page 15, section 3.2." msgstr " REF: pàgina 15, secció 3.2." msgid " REF: Page 19, section 3.3." msgstr " REF: pàgina 19, secció 3.3." msgid " REF: Page 20, section 3.4." msgstr " REF: pàgina 20, secció 3.4." msgid " REF: Page 27, section 3.5." msgstr " REF: pàgina 27, secció 3.5." msgid " REF: Page 42, section 5.2." msgstr " REF: pàgina 42, secció 5.2." msgid " REF: Pages 16-17, section 3.2." msgstr " REF: pàgines 16-17, secció 3.2." msgid " REF: Pages 42-45, section 5.2." msgstr " REF: pàgines 42-45, secció 5.2." msgid " REF: Pages 45-46, section 5.2." msgstr " REF: pàgines 45-46, secció 5.2." msgid " REF: Pages 48-49, section 5.2." msgstr " REF: pàgines 48-49, secció 5.2." msgid " REF: Pages 52-54, section 5.2." msgstr " REF: pàgines 52-54, secció 5.2." #, c-format msgid " %-39.39s %.0f bytes" msgstr " %-39.39s %.0f bytes" #, c-format msgid " PASS Default%s" msgstr " VALIDA Default%s" msgid " PASS DefaultImageableArea" msgstr " VALIDA DefaultImageableArea" msgid " PASS DefaultPaperDimension" msgstr " VALIDA DefaultPaperDimension" msgid " PASS FileVersion" msgstr " VALIDA FileVersion" msgid " PASS FormatVersion" msgstr " VALIDA FileVersion" msgid " PASS LanguageEncoding" msgstr " VALIDA LanguageEncoding" msgid " PASS LanguageVersion" msgstr " VALIDA LanguageVersion" msgid " PASS Manufacturer" msgstr " VALIDA Manufacturer" msgid " PASS ModelName" msgstr " VALIDA ModelName" msgid " PASS NickName" msgstr " VALIDA NickName" msgid " PASS PCFileName" msgstr " VALIDA PCFileName" msgid " PASS PSVersion" msgstr " VALIDA PSVersion" msgid " PASS PageRegion" msgstr " VALIDA PageRegion" msgid " PASS PageSize" msgstr " VALIDA PageSize" msgid " PASS Product" msgstr " VALIDA Product" msgid " PASS ShortNickName" msgstr " VALIDA ShortNickName" #, c-format msgid " WARN %s has no corresponding options." msgstr " AVÍS %s no té les opcions corresponents." #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" " AVÍS %s té un prefixe comú amb %s\n" " REF: pàgina 15, secció 3.2." #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should " "be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" " AVÍS La paraula clau %s de l'opció dúplex pot no funcionar com " "s'espera i s'hauria de dir Duplex.\n" " REF: pàgina 122, secció 5.17" msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" " AVÍS El fitxer conté una barreja de CR, LF, i CR LF com a finals " "de línia." msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" " AVÍS Es requereix un LanguageEncoding segons les espec. del PPD " "4.3\n" " REF: pàgines 56-57, secció 5.3." #, c-format msgid " WARN Line %d only contains whitespace." msgstr " AVÍS La línia %d només conté espais en blanc." msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" " AVÍS El fabricant requereix les espec. del PPD 4.3.\n" " REF: pàgines 58-59, secció 5.3." msgid "" " WARN Non-Windows PPD files should use lines ending with only LF, " "not CR LF." msgstr "" " AVÍS Els fitxers PPD que no són del Windows han de fer servir " "només LF com a final de línia, no CR LF." #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" " AVÍS La versió del PPD %.1f és obsoleta!\n" " REF: pàgina 42, secció 5.2." msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" " AVÍS El PCFileName és més llarg de 8.3 i viola les espec. del " "PPD.\n" " REF: pàgines 61-62, secció 5.3." msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" " AVÍS El PCFileName és més llarg de 8.3 i viola les espec. del " "PPD.\n" " REF: pàgines 61-62, secció 5.3." msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" " AVÍS Els protocols contenen el PJL però els atributs del JCL no " "s'han definit.\n" " REF: pàgines 78-79, secció 5.7." msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" " AVÍS Es protocols contenen tant el PJL com el BCP; s'esperava el " "TBCP.\n" " REF: pàgines 78-79, secció 5.7." msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" " AVÍS Es requereix un ShortNickName segons les espec.del PPD 4.3.\n" " REF: pàgines 64-65, secció 5.3." #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" " %s «%s %s» entra en conflicte amb «%s %s»\n" " (restricció=«%s %s %s %s»)." #, c-format msgid " %s %s %s does not exist." msgstr " %s %s %s no existeix." #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr " %s %s el fitxer «%s» fa un ús incorrecte de les majúscules." #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" " %s Mala %s elecció %s!\n" " REF: pàgina 122, secció 5.17" #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" " %s UTF-8 incorrecte «%s» a la traducció de l'opció %s, elecció %s." #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr " %s UTF-8 Incorrecte «%s» a la traducció de l'opció %s." #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr " %s Valor incorrecte del cupsFilter «%s»." #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr " %s Valor incorrecte del cupsFilter2 «%s»" #, c-format msgid " %s Bad cupsICCProfile %s." msgstr " %s cupsICCProfile incorrecte %s." #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr " %s Valor de la cupsPreFilter incorrecte «%s»." #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr " %s cupsUIConstraints incorrecte %s: «%s»" #, c-format msgid " %s Bad language \"%s\"." msgstr " %s language incorrecte «%s»." #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr " %s Permisos del fitxer %s incorrectes «%s»." #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr " %s %s Està mal escrit: hauria de ser %s." #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr " %s No hi pot haver APScanAppPath i APScanAppBundleID alhora." #, c-format msgid " %s Default choices conflicting." msgstr " %s Conflictes amb les opcions per defecte." #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr " %s cupsUIConstraints buit %s" #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr " %s Falta la traducció de «%s» per l'opció %s, elecció %s." #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr " %s Falta la traducció de «%s» per l'opció %s." #, c-format msgid " %s Missing %s file \"%s\"." msgstr " %s Falta el fitxer %s «%s»." #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" " %s Falta l'opció PageRegion NECESSÀRIA .\n" " REF: pàgina 100, secció 5.14." #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" " %s Falta l'opció PageSize NECESSÀRIA.\n" " REF: pàgina 99, secció 5.14." #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Falta l'elecció *%s %s a UIConstraints «*%s %s *%s %s»." #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Falta l'elecció *%s %s a cupsUIConstraints %s: «%s»" #, c-format msgid " %s Missing cupsUIResolver %s" msgstr " %s Falta el cupsUIResolver %s" #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr " %s Falta l'opció %s a UIConstraints «*%s %s *%s %s»." #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr " %s Falta l'opció %s a cupsUIConstraints %s: «%s»" #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr " %s No s'ha inclòs cap traducció de base «%s» al fitxer." #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" " %s NECESSARI %s no defineix l'eleció «Cap»!\n" " REF: pàgina 122, secció 5.17" #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr " %s Mida \"%s\" definida per %s però no per %s." #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr " %s Mida \"%s\" té unes dimensions inesperades (%gx%g)." #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr " %s Mida «%s» hauria de ser «%s»." #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr " %s Mida \"%s\" hauria de ser el nom estàndard d'Adobe «%s»." #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr " %s cupsICCProfile %s el valor resum (hash) col·lideix amb %s." #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr " %s cupsUIResolver %s entra en bucle." #, c-format msgid "" " %s cupsUIResolver %s does not list at least two different options." msgstr "" " %s cupsUIResolver %s no llista com a mínim dues opcions diferents." #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" " **ERROR** %s ha de ser 1284DeviceID!\n" " REF: pàgina 72, secció 5.5" #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" " **ERROR** Default%s incorrecte %s\n" " REF: pàgina 40, secció 4.5." #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" " **ERROR** DefaultImageableArea incorrecte %s\n" " REF: pàgina 102, secció 5.15." #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" " **ERROR** DefaultPaperDimension incorrecte %s\n" " REF: pàgina 103, secció 5.15." #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **ERROR** FileVersion incorrecte «%s»\n" " REF: pàgina 56, secció 5.3." #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" " **ERROR** FormatVersion incorrecte «%s»\n" " REF: pàgina 56, secció 5.3." msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" " **ERROR** atribut de JobPatchFile incorrecte al fitxer\n" " REF: pàgina 24, secció 3.4." #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr " **ERROR** LanguageEncoding incorrecte %s: ha de ser ISOLatin1." #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr " **ERROR** LanguageVersion incorrecta %s: ha de ser anglès." #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" " **ERROR** Manufacturer incorrecte (hauria de ser «%s»)\n" " REF: pàgina 211, taula D.1." #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" " **ERROR** ModelName incorrecte - no es permet «%c» a la cadena.\n" " REF: pàgines 59-60, secció 5.3." msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" " **ERROR** PSVersion incorrecte - no és «(cadena) enter».\n" " REF: pàgines 62-64, secció 5.3." msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" " **ERROR** Product incorrecte - no és «(cadena)».\n" " REF: pàgina 62, secció 5.3." msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" " **ERROR** ShortNickName incorrecte - més llarg de 31 caràcters.\n" " REF: pàgines 64-65, secció 5.3." #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" " **ERROR** Elecció %s incorrecta %s\n" " REF: pàgina 84, secció 5.9" #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" " **ERROR** El codi de l'opció per defecte no es pot interpretar: %s" #, c-format msgid "" " **FAIL** Default translation string for option %s choice %s contains " "8-bit characters." msgstr "" " **ERROR** La traducció per defecte de l'opció %s elecció %s conté " "caràcters de 8 bits." #, c-format msgid "" " **FAIL** Default translation string for option %s contains 8-bit " "characters." msgstr "" " **ERROR** La traducció per defecte de l'opció %s conté caràcters de 8 " "bits." #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" " **ERROR** Els noms dels grups %s i %s només es diferencien en les " "majúscules." #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" " **ERROR** Coincidències múltiples de l'opció %s nom de l'elecció %s." #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" " **ERROR** L'opció %s noms de les opcions %s i %s només es diferencien " "per les majúscules." #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" " **ERROR** Els noms de les opcions %s i %s només es diferencien per " "les majúscules." #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" " **ERROR** ES NECESSITA Default%s\n" " REF: pàgina 40, secció 4.5." msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" " **ERROR** ES NECESSITA DefaultImageableArea\n" " REF: pàgina 102, secció 5.15." msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" " **ERROR** ES NECESSITA DefaultPaperDimension\n" " REF: pàgina 103, secció 5.15." msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" " **ERROR** ES NECESSITA FileVersion\n" " REF: pàgina 56, secció 5.3." msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" " **ERROR** ES NECESSITA FormatVersion\n" " REF: pàgina 56, secció 5.3." #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" " **ERROR** ES NECESSITA ImageableArea per PageSize %s\n" " REF: pàgina 41, secció 5.\n" " REF: pàgina 102, secció 5.15." msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" " **ERROR** ES NECESSITA LanguageEncoding\n" " REF: pàgines 56-57, secció 5.3." msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" " **ERROR** ES NECESSITA LanguageVersion\n" " REF: pàgines 57-58, secció 5.3." msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" " **ERROR** ES NECESSITA Manufacturer\n" " REF: pàgines 58-59, secció 5.3." msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" " **ERROR** ES NECESSITA ModelName\n" " REF: pàgines 59-60, secció 5.3." msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" " **ERROR** ES NECESSITA NickName\n" " REF: pàgina 60, secció 5.3." msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" " **ERROR** ES NECESSITA PCFileName\n" " REF: pàgines 61-62, secció 5.3." msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" " **ERROR** ES NECESSITA PSVersion\n" " REF: pàgines 62-64, secció 5.3." msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" " **ERROR** ES NECESSITA PageRegion\n" " REF: pàgina 100, secció 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" " **ERROR** ES NECESSITA PageSize\n" " REF: pàgina 41, secció 5.\n" " REF: pàgina 99, secció 5.14." msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" " **ERROR** ES NECESSITA PageSize\n" " REF: pàgines 99-100, secció 5.14." #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" " **ERROR** ES NECESSITA PaperDimension per PageSize %s\n" " REF: pàgina 41, secció 5.\n" " REF: pàgina 103, secció 5.15." msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" " **ERROR** ES NECESSITA Product\n" " REF: pàgina 62, secció 5.3." msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" " **FAIL** ES NECESSITA ShortNickName\n" " REF: pàgina 64-65, secció 5.3." #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr " **ERROR** No es pot obrir el fitxer PPD - %s a la línia %d." #, c-format msgid " %d ERRORS FOUND" msgstr " %d S'HAN TROBAT ERRORS" msgid " NO ERRORS FOUND" msgstr " NO S'HA TROBAT CAP ERROR" msgid " --cr End lines with CR (Mac OS 9)." msgstr " --cr Final de línia amb CR (Mac OS 9)." msgid " --crlf End lines with CR + LF (Windows)." msgstr " --crlf Final de línia amb CR + LF (Windows)." msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" msgid " --list-filters List filters that will be used." msgstr "" msgid " -D Remove the input file when finished." msgstr " -D Elimina el fitxer d'entrada quan ha acabat." msgid " -D name=value Set named variable to value." msgstr " -D nom=valor Estableix la variable indicada al valor." msgid " -I include-dir Add include directory to search path." msgstr " -I dir-inclòs Afegeix el directori inclòs al camí de cerca." msgid " -P filename.ppd Set PPD file." msgstr " -P nomfitxer.ppd Estableix el fitxer PPD." msgid " -U username Specify username." msgstr " -U nomusuari Especifica un nom d'usuari." msgid " -c catalog.po Load the specified message catalog." msgstr " -c catàleg.po Carrega el catàleg de missatges indicat." msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" msgid " -d output-dir Specify the output directory." msgstr " -d dir-sortida Especifica el directori de sortida." msgid " -d printer Use the named printer." msgstr " -d impressora Fa servir la impressora indicada." msgid " -e Use every filter from the PPD file." msgstr " -e Fa servir tots els filtres del fitxer PPD." msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" " -i tipus/mime Estableix el tipus MIME d'entrada (auto-typed si " "no s'especifica)." msgid "" " -j job-id[,N] Filter file N from the specified job (default is " "file 1)." msgstr "" " -j id-feina[,N] Filtra el fitxer N a la feina especificada (el " "fitxer per defecte és 1)." msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr "" " -l idioma[,idioma,...] Especifica els idiomes de sortida (locale)." msgid " -m Use the ModelName value as the filename." msgstr "" " -m Fa servir el valor de ModelName com a nom de " "fitxer." msgid "" " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" " -m tipus/mime Estableix el tipus MIME de sortida (application/" "pdf si no s'especifica)." msgid " -n copies Set number of copies." msgstr " -n còpies Estableix el nombre de còpies." msgid "" " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" " -o nomfitxer.drv Estableix el fitxer d'informació del controlador " "(ppdi.drv si no s'especifica)." msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" " -o nomfitxer.ppd[.gz] Estableix el fitxer de sortida (stdout si no " "s'especifica)." msgid " -o name=value Set option(s)." msgstr " -o nom=valor Estableix les opcions." msgid " -p filename.ppd Set PPD file." msgstr " -p nomfitxer.ppd Estableix el fitxer PPD." msgid " -t Test PPDs instead of generating them." msgstr " -t Prova els PPDs en comptes de generar-los." msgid " -t title Set title." msgstr " -t títol Estableix el títol." msgid " -u Remove the PPD file when finished." msgstr " -u Elimina el fitxer PPD quan ha acabat." msgid " -v Be verbose." msgstr " -v Mode detallat." msgid " -z Compress PPD files using GNU zip." msgstr "" " -z Comprimeix els fitxers PPD fent servir el zip de " "GNU." msgid " FAIL" msgstr " ERROR" msgid " PASS" msgstr " VÀLID" msgid "! expression Unary NOT of expression" msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "" "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section " "5.1.4)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section " "5.1.10)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section " "8.1)." msgstr "" #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section " "5.1.9)." msgstr "" #, c-format msgid "" "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #, c-format msgid "" "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 " "section 5.1.14)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section " "5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be " "positive (RFC 8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC " "8011 section 5.1.16)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section " "8.3)." msgstr "" #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #, c-format msgid "" "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "%-7s %-7.7s %-7d %-31.31s %.0f bytes" #, c-format msgid "%d x %d mm" msgstr "" #, c-format msgid "%g x %g \"" msgstr "" #, c-format msgid "%s (%s)" msgstr "" #, c-format msgid "%s (%s, %s)" msgstr "" #, c-format msgid "%s (Borderless)" msgstr "" #, c-format msgid "%s (Borderless, %s)" msgstr "" #, c-format msgid "%s (Borderless, %s, %s)" msgstr "" #, c-format msgid "%s accepting requests since %s" msgstr "%s accepta peticions des de %s" #, c-format msgid "%s cannot be changed." msgstr "%s no es pot canviar." #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "%s no està implementat en la versió del CUPS del lpc." #, c-format msgid "%s is not ready" msgstr "%s no està preparada" #, c-format msgid "%s is ready" msgstr "%s està preparada" #, c-format msgid "%s is ready and printing" msgstr "%s està preparada i imprimeix" #, c-format msgid "%s job-id user title copies options [file]" msgstr "%s identificador-feina usuari títol còpies opcions [fitxer]" #, c-format msgid "%s not accepting requests since %s -" msgstr "%s no accepta peticions des de %s -" #, c-format msgid "%s not supported." msgstr "no és compatible amb l'ús de %s." #, c-format msgid "%s/%s accepting requests since %s" msgstr "%s/%s accepta peticions des de %s" #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "%s/%s no accepta peticions des de %s -" #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "%s: %-33.33s [feina %d localhost]" #. TRANSLATORS: Message is "subject: error" #, c-format msgid "%s: %s" msgstr "%s: %s" #, c-format msgid "%s: %s failed: %s" msgstr "%s: %s ha fallat: %s" #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "" #, c-format msgid "%s: Don't know what to do." msgstr "%s: no sé que fer." #, c-format msgid "%s: Error - %s" msgstr "" #, c-format msgid "" "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" "%s: error - els noms de les variables d'entorn %s tenen un destí inexistent " "«%s»." #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "" #, c-format msgid "%s: Error - bad job ID." msgstr "%s: error - ID de la feina incorrecte." #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" "%s: error - no es poden imprimir fitxers i modificar tasques al mateix temps." #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" "%s: error - no es pot imprimir des d'stdin si s'indiquen els fitxers o " "l'identificador de la feina." #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "" "%s: error - s'esperava un conjunt de caràcters després de l'opció «-S»." #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "%s: error - s'esperava un tipus de contingut després de l'opció «-T»." #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "%s: error - s'esperaven còpies després de l'opció «-#»." #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "%s: error - s'esperaven còpies després de l'opció «-n»." #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "%s: error - s'esperava un destí després de l'opció «-P»." #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "%s: error - s'esperava un destí després de l'opció «-d»." #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "%s: error - s'esperava un formulari després de l'opció «-f»." #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "%s: error - s'esperava un nom per pausa després de l'opció «-H»." #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "%s: error - s'esperava el nom de l'amfitrió després de l'opció «-H»." #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "%s: error - s'esperava el nom de l'amfitrió després de l'opció «-h»." #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "%s: error - s'esperava una llista de modes després de l'opció «-y»." #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "%s: error - s'esperava un nom després de l'opció «-%c»." #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "%s: error - s'esperava opció=valor després de l'opció «-o»." #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "%s: error - s'esperava una llista de pàgines després de l'opció «-P»." #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "%s: error - s'esperava una prioritat després de l'opció «-%c»." #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "%s: error - s'esperava una explicació després de l'opció «-r»." #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "%s: error - s'esperava un títol després de l'opció «-t»." #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "%s: error - s'esperava un nom d'usuari després de l'opció «-U»." #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "%s: error - s'esperava un nom d'usuari després de l'opció «-u»." #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "%s: error - s'esperava un valor després de l'opció «-%c»." #, c-format msgid "" "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" " "option." msgstr "" "%s: error - es requereix «completed», «not-completed», o «all» després de " "l'opció «-W»." #, c-format msgid "%s: Error - no default destination available." msgstr "%s: error - no hi ha un destí per defecte." #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "%s: error - la prioritat ha de ser entre 1 i 100." #, c-format msgid "%s: Error - scheduler not responding." msgstr "%s: error - el planificador no està responent." #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "%s: error - massa fitxers - «%s»." #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "%s: error - no es pot accedir a «%s» - %s" #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "%s: error - no es pot posar en cua des d'stdin - %s." #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "%s: error - el destí «%s» és desconegut." #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "%s: error - el destí «%s/%s» és desconegut." #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "%s: error - l'opció «%c» és desconeguda." #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "%s: error - l'opció «%s» és desconeguda." #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "%s: s'esperava l'ID d'una feina després de l'opció «-i»." #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "%s: el nom del destí no és vàlid a la llista «%s»." #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "%s: la cadena del filtre «%s» no és vàlida." #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "" #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "" #, c-format msgid "%s: Missing version for \"-V\"." msgstr "" #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "%s: es necessita l'ID de la feina («-i jobid») abans de «-H restart»." #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "%s: no hi ha cap filtre per convertir de %s/%s a %s/%s." #, c-format msgid "%s: Operation failed: %s" msgstr "%s: ha fallat l'operació: %s" #, c-format msgid "%s: Sorry, no encryption support." msgstr "%s: ho sento, no està compilada la compatibilitat pel xifrat." #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #, c-format msgid "%s: Unable to connect to server." msgstr "%s: no es pot connectar al servidor." #, c-format msgid "%s: Unable to contact server." msgstr "%s: no es pot contactar amb el servidor." #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "%s: no es pot determinar el tips de MIME de «%s»." #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "" #, c-format msgid "%s: Unable to open %s: %s" msgstr "%s: no es pot obrir %s: %s" #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "%s: no es pot obrir el fitxer PPD: %s a la línia %d." #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "%s: no es pot llegir la base de dades MIME de «%s» o «%s»." #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "%s: el destí «%s» és desconegut." #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "%s: es destí de tipus MIME %s/%s és desconegut." #, c-format msgid "%s: Unknown option \"%c\"." msgstr "%s: l'opció «%c» és desconeguda." #, c-format msgid "%s: Unknown option \"%s\"." msgstr "" #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "" #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "%s: la font del tipus de MIME %s/%s és desconeguda." #, c-format msgid "" "%s: Warning - \"%c\" format modifier not supported - output may not be " "correct." msgstr "" "%s: avís - no és compatible amb l'ús del modificador de format «%c» - el " "resultat pot no ser correcte." #, c-format msgid "%s: Warning - character set option ignored." msgstr "%s: avís - s'ignora l'opció del grup de caràcters." #, c-format msgid "%s: Warning - content type option ignored." msgstr "%s: avís - s'ignora l'opció de tipus de contingut." #, c-format msgid "%s: Warning - form option ignored." msgstr "%s: avís - s'ignora l'opció de formulari." #, c-format msgid "%s: Warning - mode option ignored." msgstr "%s: avís - s'ignora l'opció de mode." msgid "( expressions ) Group expressions" msgstr "" msgid "- Cancel all jobs" msgstr "" msgid "-# num-copies Specify the number of copies to print" msgstr "" msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" msgid "" "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" msgid "--domain regex Match domain to regular expression" msgstr "" msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "--false Always false" msgstr "" msgid "--help Show program help" msgstr "" msgid "--hold Hold new jobs" msgstr "" msgid "--host regex Match hostname to regular expression" msgstr "" msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" msgid "--ippserver filename Produce ippserver attribute file" msgstr "" msgid "--language locale Show models matching the given locale" msgstr "" msgid "--literal-name name Match service name to literal name value" msgstr "" msgid "--local True if service is local" msgstr "" msgid "--ls List attributes" msgstr "" msgid "" "--make-and-model name Show models matching the given make and model name" msgstr "" msgid "--name regex Match service name to regular expression" msgstr "" msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" msgid "--not expression Unary NOT of expression" msgstr "" msgid "--pam-service service Use the named PAM service" msgstr "" msgid "--path regex Match resource path to regular expression" msgstr "" msgid "--port number[-number] Match port to number or range" msgstr "" msgid "--print Print URI if true" msgstr "" msgid "--print-name Print service name if true" msgstr "" msgid "" "--product name Show models matching the given PostScript product" msgstr "" msgid "--quiet Quietly report match via exit code" msgstr "" msgid "--release Release previously held jobs" msgstr "" msgid "--remote True if service is remote" msgstr "" msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" msgid "" "--timeout seconds Specify the maximum number of seconds to discover " "devices" msgstr "" msgid "--true Always true" msgstr "" msgid "--txt key True if the TXT record contains the key" msgstr "" msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" msgid "--uri regex Match URI to regular expression" msgstr "" msgid "--version Show program version" msgstr "" msgid "--version Show version" msgstr "" msgid "-1" msgstr "-1" msgid "-10" msgstr "-10" msgid "-100" msgstr "-100" msgid "-105" msgstr "-105" msgid "-11" msgstr "-11" msgid "-110" msgstr "-110" msgid "-115" msgstr "-115" msgid "-12" msgstr "-12" msgid "-120" msgstr "-120" msgid "-13" msgstr "-13" msgid "-14" msgstr "-14" msgid "-15" msgstr "-15" msgid "-2" msgstr "-2" msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" msgid "-20" msgstr "-20" msgid "-25" msgstr "-25" msgid "-3" msgstr "-3" msgid "-30" msgstr "-30" msgid "-35" msgstr "-35" msgid "-4" msgstr "-4" msgid "-4 Connect using IPv4" msgstr "" msgid "-40" msgstr "-40" msgid "-45" msgstr "-45" msgid "-5" msgstr "-5" msgid "-50" msgstr "-50" msgid "-55" msgstr "-55" msgid "-6" msgstr "-6" msgid "-6 Connect using IPv6" msgstr "" msgid "-60" msgstr "-60" msgid "-65" msgstr "-65" msgid "-7" msgstr "-7" msgid "-70" msgstr "-70" msgid "-75" msgstr "-75" msgid "-8" msgstr "-8" msgid "-80" msgstr "-80" msgid "-85" msgstr "-85" msgid "-9" msgstr "-9" msgid "-90" msgstr "-90" msgid "-95" msgstr "-95" msgid "-A Enable authentication" msgstr "" msgid "-C Send requests using chunking (default)" msgstr "" msgid "-D description Specify the textual description of the printer" msgstr "" msgid "-D device-uri Set the device URI for the printer" msgstr "" msgid "" "-E Enable and accept jobs on the printer (after -p)" msgstr "" msgid "-E Encrypt the connection to the server" msgstr "" msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" msgid "-F Run in the foreground but detach from console." msgstr "" msgid "-F output-type/subtype Set the output format for the printer" msgstr "" msgid "-H Show the default server and port" msgstr "" msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" msgid "-H hold Hold the job until released/resumed" msgstr "" msgid "-H immediate Print the job as soon as possible" msgstr "" msgid "-H restart Reprint the job" msgstr "" msgid "-H resume Resume a held job" msgstr "" msgid "-H server[:port] Connect to the named server and port" msgstr "" msgid "-I Ignore errors" msgstr "" msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" msgid "" "-K keypath Set location of server X.509 certificates and keys." msgstr "" msgid "-L Send requests using content-length" msgstr "" msgid "-L location Specify the textual location of the printer" msgstr "" msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" msgid "-N name Match service name to literal name value" msgstr "" msgid "-P destination Show status for the specified destination" msgstr "" msgid "-P destination Specify the destination" msgstr "" msgid "" "-P filename.plist Produce XML plist to a file and test report to " "standard output" msgstr "" msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" msgid "-P number[-number] Match port to number or range" msgstr "" msgid "-P page-list Specify a list of pages to print" msgstr "" msgid "-R Show the ranking of jobs" msgstr "" msgid "-R name-default Remove the default value for the named option" msgstr "" msgid "-R root-directory Set alternate root" msgstr "" msgid "-S Test with encryption using HTTPS" msgstr "" msgid "-S filename.strings Set strings file" msgstr "" msgid "-T seconds Set the browse timeout in seconds" msgstr "" msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" msgid "-T title Specify the job title" msgstr "" msgid "-U username Specify the username to use for authentication" msgstr "" msgid "-U username Specify username to use for authentication" msgstr "" msgid "-V version Set default IPP version" msgstr "" msgid "-W completed Show completed jobs" msgstr "" msgid "-W not-completed Show pending jobs" msgstr "" msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes," "translations}\n" " Issue warnings instead of errors" msgstr "" msgid "-X Produce XML plist instead of plain text" msgstr "" msgid "-a Cancel all jobs" msgstr "" msgid "-a Show jobs on all destinations" msgstr "" msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" msgid "-a filename.conf Load printer attributes from conf file" msgstr "" msgid "-c Make a copy of the print file(s)" msgstr "" msgid "-c Produce CSV output" msgstr "" msgid "-c [class(es)] Show classes and their member printers" msgstr "" msgid "-c class Add the named destination to a class" msgstr "" msgid "-c command Set print command" msgstr "" msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" msgid "-d Show the default destination" msgstr "" msgid "-d destination Set default destination" msgstr "" msgid "-d destination Set the named destination as the server default" msgstr "" msgid "-d destination Specify the destination" msgstr "" msgid "-d name=value Set named variable to value" msgstr "" msgid "-d regex Match domain to regular expression" msgstr "" msgid "-d spool-directory Set spool directory" msgstr "" msgid "-e Show available destinations on the network" msgstr "" msgid "-f Run in the foreground." msgstr "" msgid "-f filename Set default request filename" msgstr "" msgid "-f type/subtype[,...] Set supported file types" msgstr "" msgid "-h Show this usage message." msgstr "" msgid "-h Validate HTTP response headers" msgstr "" msgid "-h regex Match hostname to regular expression" msgstr "" msgid "-h server[:port] Connect to the named server and port" msgstr "" msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" msgid "-i id Specify an existing job ID to modify" msgstr "" msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" msgid "" "-i seconds Repeat the last file with the given time interval" msgstr "" msgid "-k Keep job spool files" msgstr "" msgid "-l List attributes" msgstr "" msgid "-l Produce plain text output" msgstr "" msgid "-l Run cupsd on demand." msgstr "" msgid "-l Show supported options and values" msgstr "" msgid "-l Show verbose (long) output" msgstr "" msgid "-l location Set location of printer" msgstr "" msgid "" "-m Send an email notification when the job completes" msgstr "" msgid "-m Show models" msgstr "" msgid "" "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" msgid "-m model Set model name (default=Printer)" msgstr "" msgid "" "-m model Specify a standard model/PPD file for the printer" msgstr "" msgid "-n count Repeat the last file the given number of times" msgstr "" msgid "-n hostname Set hostname for printer" msgstr "" msgid "-n num-copies Specify the number of copies to print" msgstr "" msgid "-n regex Match service name to regular expression" msgstr "" msgid "" "-o Name=Value Specify the default value for the named PPD option " msgstr "" msgid "-o [destination(s)] Show jobs" msgstr "" msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" msgid "-o media=size Specify the media size to use" msgstr "" msgid "-o name-default=value Specify the default value for the named option" msgstr "" msgid "-o name[=value] Set default option and value" msgstr "" msgid "" "-o number-up=N Specify that input pages should be printed N-up (1, " "2, 4, 6, 9, and 16 are supported)" msgstr "" msgid "-o option[=value] Specify a printer-specific option" msgstr "" msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" msgid "" "-o print-quality=N Specify the print quality - draft (3), normal (4), " "or best (5)" msgstr "" msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" msgid "-p Print URI if true" msgstr "" msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" msgid "-p destination Specify a destination" msgstr "" msgid "-p destination Specify/add the named destination" msgstr "" msgid "-p port Set port number for printer" msgstr "" msgid "-q Quietly report match via exit code" msgstr "" msgid "-q Run silently" msgstr "" msgid "-q Specify the job should be held for printing" msgstr "" msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" msgid "-r Remove the file(s) after submission" msgstr "" msgid "-r Show whether the CUPS server is running" msgstr "" msgid "-r True if service is remote" msgstr "" msgid "-r Use 'relaxed' open mode" msgstr "" msgid "-r class Remove the named destination from a class" msgstr "" msgid "-r reason Specify a reason message that others can see" msgstr "" msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" msgid "-s Be silent" msgstr "" msgid "-s Print service name if true" msgstr "" msgid "-s Show a status summary" msgstr "" msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" msgid "-t Produce a test report" msgstr "" msgid "-t Show all status information" msgstr "" msgid "-t Test the configuration file." msgstr "" msgid "-t key True if the TXT record contains the key" msgstr "" msgid "-t title Specify the job title" msgstr "" msgid "" "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" msgid "-u allow:all Allow all users to print" msgstr "" msgid "" "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" msgid "" "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" msgid "-u owner Specify the owner to use for jobs" msgstr "" msgid "-u regex Match URI to regular expression" msgstr "" msgid "-v Be verbose" msgstr "" msgid "-v Show devices" msgstr "" msgid "-v [printer(s)] Show the devices for each destination" msgstr "" msgid "-v device-uri Specify the device URI for the printer" msgstr "" msgid "-vv Be very verbose" msgstr "" msgid "-x Purge jobs rather than just canceling" msgstr "" msgid "-x destination Remove default options for destination" msgstr "" msgid "-x destination Remove the named destination" msgstr "" msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" msgid "0" msgstr "0" msgid "1" msgstr "1" msgid "1 inch/sec." msgstr "1 polzada/seg." msgid "1.25x0.25\"" msgstr "1.25x0.25\"" msgid "1.25x2.25\"" msgstr "1.25x2.25\"" msgid "1.5 inch/sec." msgstr "1.5 polzades/seg." msgid "1.50x0.25\"" msgstr "1.50x0.25\"" msgid "1.50x0.50\"" msgstr "1.50x0.50\"" msgid "1.50x1.00\"" msgstr "1.50x1.00\"" msgid "1.50x2.00\"" msgstr "1.50x2.00\"" msgid "10" msgstr "10" msgid "10 inches/sec." msgstr "10 polzades/seg." msgid "10 x 11" msgstr "10 x 11" msgid "10 x 13" msgstr "10 x 13" msgid "10 x 14" msgstr "10 x 14" msgid "100" msgstr "100" msgid "100 mm/sec." msgstr "100 mm/seg." msgid "105" msgstr "105" msgid "11" msgstr "11" msgid "11 inches/sec." msgstr "11 polzades/seg." msgid "110" msgstr "110" msgid "115" msgstr "115" msgid "12" msgstr "12" msgid "12 inches/sec." msgstr "12 polzades/seg." msgid "12 x 11" msgstr "12 x 11" msgid "120" msgstr "120" msgid "120 mm/sec." msgstr "120 mm/seg." msgid "120x60dpi" msgstr "120x60ppp" msgid "120x72dpi" msgstr "120x72ppp" msgid "13" msgstr "13" msgid "136dpi" msgstr "136ppp" msgid "14" msgstr "14" msgid "15" msgstr "15" msgid "15 mm/sec." msgstr "15 mm/seg." msgid "15 x 11" msgstr "15 x 11" msgid "150 mm/sec." msgstr "150 mm/seg." msgid "150dpi" msgstr "150ppp" msgid "16" msgstr "16" msgid "17" msgstr "17" msgid "18" msgstr "18" msgid "180dpi" msgstr "180ppp" msgid "19" msgstr "19" msgid "2" msgstr "2" msgid "2 inches/sec." msgstr "2 polzades/seg." msgid "2-Sided Printing" msgstr "Impressió a doble cara" msgid "2.00x0.37\"" msgstr "2.00x0.37\"" msgid "2.00x0.50\"" msgstr "2.00x0.50\"" msgid "2.00x1.00\"" msgstr "2.00x1.00\"" msgid "2.00x1.25\"" msgstr "2.00x1.25\"" msgid "2.00x2.00\"" msgstr "2.00x2.00\"" msgid "2.00x3.00\"" msgstr "2.00x3.00\"" msgid "2.00x4.00\"" msgstr "2.00x4.00\"" msgid "2.00x5.50\"" msgstr "2.00x5.50\"" msgid "2.25x0.50\"" msgstr "2.25x0.50\"" msgid "2.25x1.25\"" msgstr "2.25x1.25\"" msgid "2.25x4.00\"" msgstr "2.25x4.00\"" msgid "2.25x5.50\"" msgstr "2.25x5.50\"" msgid "2.38x5.50\"" msgstr "2.38x5.50\"" msgid "2.5 inches/sec." msgstr "2.5 polzades/seg." msgid "2.50x1.00\"" msgstr "2.50x1.00\"" msgid "2.50x2.00\"" msgstr "2.50x2.00\"" msgid "2.75x1.25\"" msgstr "2.75x1.25\"" msgid "2.9 x 1\"" msgstr "2.9 x 1\"" msgid "20" msgstr "20" msgid "20 mm/sec." msgstr "20 mm/seg." msgid "200 mm/sec." msgstr "200 mm/seg." msgid "203dpi" msgstr "203ppp" msgid "21" msgstr "21" msgid "22" msgstr "22" msgid "23" msgstr "23" msgid "24" msgstr "24" msgid "24-Pin Series" msgstr "Sèrie de 24 pins" msgid "240x72dpi" msgstr "240x72ppp" msgid "25" msgstr "25" msgid "250 mm/sec." msgstr "250 mm/seg." msgid "26" msgstr "26" msgid "27" msgstr "27" msgid "28" msgstr "28" msgid "29" msgstr "29" msgid "3" msgstr "3" msgid "3 inches/sec." msgstr "3 polzades/seg." msgid "3 x 5" msgstr "3 x 5" msgid "3.00x1.00\"" msgstr "3.00x1.00\"" msgid "3.00x1.25\"" msgstr "3.00x1.25\"" msgid "3.00x2.00\"" msgstr "3.00x2.00\"" msgid "3.00x3.00\"" msgstr "3.00x3.00\"" msgid "3.00x4.00\"" msgstr "" msgid "3.00x5.00\"" msgstr "3.00x5.00\"" msgid "3.00x6.00\"" msgstr "" msgid "3.00x8.00\"" msgstr "" msgid "3.25x2.00\"" msgstr "3.25x2.00\"" msgid "3.25x5.00\"" msgstr "3.25x5.00\"" msgid "3.25x5.50\"" msgstr "3.25x5.50\"" msgid "3.25x5.83\"" msgstr "3.25x5.83\"" msgid "3.25x7.83\"" msgstr "3.25x7.83\"" msgid "3.5 x 5" msgstr "3.5 x 5" msgid "3.5\" Disk" msgstr "Disc de 3.5\"" msgid "3.50x1.00\"" msgstr "3.5x1.00\"" msgid "30" msgstr "30" msgid "30 mm/sec." msgstr "30 mm/seg." msgid "300 mm/sec." msgstr "300 mm/seg." msgid "300dpi" msgstr "300ppp" msgid "30859 Paint Can Label" msgstr "" msgid "35" msgstr "35" msgid "360dpi" msgstr "360ppp" msgid "360x180dpi" msgstr "360x180ppp" msgid "4" msgstr "4" msgid "4 inches/sec." msgstr "4 polzades/seg." msgid "4.00x1.00\"" msgstr "4.00x1.00\"" msgid "4.00x13.00\"" msgstr "4.00x13.00\"" msgid "4.00x2.00\"" msgstr "4.00x2.00\"" msgid "4.00x2.50\"" msgstr "4.00x2.50\"" msgid "4.00x3.00\"" msgstr "4.00x3.00\"" msgid "4.00x4.00\"" msgstr "4.00x4.00\"" msgid "4.00x5.00\"" msgstr "4.00x5.00\"" msgid "4.00x6.00\"" msgstr "4.00x6.00\"" msgid "4.00x6.50\"" msgstr "4.00x6.50\"" msgid "4.00x8.00\"" msgstr "" msgid "40" msgstr "40" msgid "40 mm/sec." msgstr "40 mm/seg." msgid "45" msgstr "45" msgid "5" msgstr "5" msgid "5 inches/sec." msgstr "5 polzades/seg." msgid "5 x 7" msgstr "15 x 11" msgid "50" msgstr "50" msgid "55" msgstr "55" msgid "6" msgstr "6" msgid "6 inches/sec." msgstr "6 polzades/seg." msgid "6.00x1.00\"" msgstr "6.00x1.00\"" msgid "6.00x2.00\"" msgstr "6.00x2.00\"" msgid "6.00x3.00\"" msgstr "6.00x3.00\"" msgid "6.00x4.00\"" msgstr "6.00x4.00\"" msgid "6.00x5.00\"" msgstr "6.00x5.00\"" msgid "6.00x6.00\"" msgstr "6.00x6.00\"" msgid "6.00x6.50\"" msgstr "6.00x6.50\"" msgid "6.00x8.00\"" msgstr "" msgid "60" msgstr "60" msgid "60 mm/sec." msgstr "60 mm/seg." msgid "600dpi" msgstr "600ppp" msgid "60dpi" msgstr "60ppp" msgid "60x72dpi" msgstr "60x72ppp" msgid "65" msgstr "65" msgid "7" msgstr "7" msgid "7 inches/sec." msgstr "7 polzades/seg." msgid "7 x 9" msgstr "7 x 9" msgid "70" msgstr "70" msgid "75" msgstr "75" msgid "8" msgstr "8" msgid "8 inches/sec." msgstr "8 polzades/seg." msgid "8 x 10" msgstr "8 x 10" msgid "8.00x1.00\"" msgstr "8.00x1.00\"" msgid "8.00x2.00\"" msgstr "8.00x2.00\"" msgid "8.00x3.00\"" msgstr "8.00x3.00\"" msgid "8.00x4.00\"" msgstr "8.00x4.00\"" msgid "8.00x5.00\"" msgstr "8.00x5.00\"" msgid "8.00x6.00\"" msgstr "8.00x6.00\"" msgid "8.00x6.50\"" msgstr "8.00x6.50\"" msgid "8.26x1.00\"" msgstr "" msgid "80" msgstr "80" msgid "80 mm/sec." msgstr "80 mm/seg." msgid "80x50mm" msgstr "" msgid "85" msgstr "85" msgid "9" msgstr "9" msgid "9 inches/sec." msgstr "9 polzades/seg." msgid "9 x 11" msgstr "9 x 11" msgid "9 x 12" msgstr "9 x 12" msgid "9-Pin Series" msgstr "Sèrie de 9 pins" msgid "90" msgstr "90" msgid "95" msgstr "95" msgid "?Invalid help command unknown." msgstr "?Comanda d'ajuda no vàlida desconeguda." #, c-format msgid "A class named \"%s\" already exists." msgstr "Ja existeix una classe anomenada «%s»." #, c-format msgid "A printer named \"%s\" already exists." msgstr "Ja existeix una impressora anomenada «%s»." msgid "A0" msgstr "A0" msgid "A0 Long Edge" msgstr "A0 costat llarg" msgid "A1" msgstr "A1" msgid "A1 Long Edge" msgstr "A1 costat llarg" msgid "A10" msgstr "A10" msgid "A2" msgstr "A2" msgid "A2 Long Edge" msgstr "A2 costat llarg" msgid "A3" msgstr "A3" msgid "A3 Long Edge" msgstr "A3 costat llarg" msgid "A3 Oversize" msgstr "A3 estès" msgid "A3 Oversize Long Edge" msgstr "A3 estès pel costat llarg" msgid "A4" msgstr "A4" msgid "A4 Long Edge" msgstr "A4 costat llarg" msgid "A4 Oversize" msgstr "A4 estès" msgid "A4 Small" msgstr "A4 reduït" msgid "A5" msgstr "A5" msgid "A5 Long Edge" msgstr "A5 costat llarg" msgid "A5 Oversize" msgstr "A5 estès" msgid "A6" msgstr "A6" msgid "A6 Long Edge" msgstr "A6 costat llarg" msgid "A7" msgstr "A7" msgid "A8" msgstr "A8" msgid "A9" msgstr "A9" msgid "ANSI A" msgstr "ANSI A" msgid "ANSI B" msgstr "ANSI B" msgid "ANSI C" msgstr "ANSI C" msgid "ANSI D" msgstr "ANSI D" msgid "ANSI E" msgstr "ANSI E" msgid "ARCH C" msgstr "ARCH C" msgid "ARCH C Long Edge" msgstr "ARCH C costat llarg" msgid "ARCH D" msgstr "ARCH D" msgid "ARCH D Long Edge" msgstr "ARCH D costat llarg" msgid "ARCH E" msgstr "ARCH E" msgid "ARCH E Long Edge" msgstr "ARCH E costat llarg" msgid "Accept Jobs" msgstr "Accepta feines" msgid "Accepted" msgstr "Acceptada" msgid "Add Class" msgstr "Afegeix una classe" msgid "Add Printer" msgstr "Afegeix una impressora" msgid "Address" msgstr "Adreça" msgid "Administration" msgstr "Administració" msgid "Always" msgstr "Sempre" msgid "AppSocket/HP JetDirect" msgstr "AppSocket/HP JetDirect" msgid "Applicator" msgstr "Aplicador" #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" "S'ha intentat posar l'estat de la impressora %s a un valor incorrecte %d." #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "Grups d'atribut desordenats (%x < %x)." msgid "B0" msgstr "B0" msgid "B1" msgstr "B1" msgid "B10" msgstr "B10" msgid "B2" msgstr "B2" msgid "B3" msgstr "B3" msgid "B4" msgstr "B4" msgid "B5" msgstr "B5" msgid "B5 Oversize" msgstr "A5 estès" msgid "B6" msgstr "B6" msgid "B7" msgstr "B7" msgid "B8" msgstr "B8" msgid "B9" msgstr "B9" #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #, c-format msgid "Bad '%s' value." msgstr "" #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" msgid "Bad CloseUI/JCLCloseUI" msgstr "" msgid "Bad NULL dests pointer" msgstr "El punter de dests NULL és incorrecte" msgid "Bad OpenGroup" msgstr "La OpenGroup és incorrecta" msgid "Bad OpenUI/JCLOpenUI" msgstr "La OpenUI/JCLOpenUI és incorrecta" msgid "Bad OrderDependency" msgstr "La OrderDependency és incorrecta" msgid "Bad PPD cache file." msgstr "El fitxer PPD de memòria cau és incorrecte." msgid "Bad PPD file." msgstr "" msgid "Bad Request" msgstr "La petició és incorrecta" msgid "Bad SNMP version number" msgstr "El número de versió del SNMP és incorrecte" msgid "Bad UIConstraints" msgstr "La UIConstraints és incorrecta" msgid "Bad URI." msgstr "" msgid "Bad arguments to function" msgstr "" #, c-format msgid "Bad copies value %d." msgstr "El valor de copies %d és incorrecte" msgid "Bad custom parameter" msgstr "El paràmetre personalitzat és incorrecte" #, c-format msgid "Bad device-uri \"%s\"." msgstr "La device-uri «%s» és incorrecta." #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "L'esquema «%s» de la device-uri és incorrecte." #, c-format msgid "Bad document-format \"%s\"." msgstr "La document-format «%s» és incorrecta." #, c-format msgid "Bad document-format-default \"%s\"." msgstr "La document-format-default «%s» és incorrecta." msgid "Bad filename buffer" msgstr "El nom del fitxer de la memòria cau és incorrecte" msgid "Bad hostname/address in URI" msgstr "" #, c-format msgid "Bad job-name value: %s" msgstr "" msgid "Bad job-name value: Wrong type or count." msgstr "" msgid "Bad job-priority value." msgstr "El valor de la job-priority és incorrecte." #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "El valor «%s» de la job-sheets és incorrecte." msgid "Bad job-sheets value type." msgstr "El tipus de valor de la job-sheets és incorrecte." msgid "Bad job-state value." msgstr "El valor de la job-state és incorrecte." #, c-format msgid "Bad job-uri \"%s\"." msgstr "La job-uri «%s» és incorrecta." #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "La notify-pull-method «%s» és incorrecta." #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "La notify-recipient-uri «%s» és incorrecta." #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #, c-format msgid "Bad number-up value %d." msgstr "El valor de number-up %d és incorrecte." #, c-format msgid "Bad page-ranges values %d-%d." msgstr "Els valors de page-ranges %d-%d són incorrectes." msgid "Bad port number in URI" msgstr "" #, c-format msgid "Bad port-monitor \"%s\"." msgstr "La port-monitor «%s» és incorrecta." #, c-format msgid "Bad printer-state value %d." msgstr "El valor %d de printer-state és incorrecte." msgid "Bad printer-uri." msgstr "" #, c-format msgid "Bad request ID %d." msgstr "L'identificador %d de la sol·licitud és incorrecte." #, c-format msgid "Bad request version number %d.%d." msgstr "El número de versió %d.%d de la sol·licitud és incorrecte." msgid "Bad resource in URI" msgstr "" msgid "Bad scheme in URI" msgstr "" msgid "Bad username in URI" msgstr "" msgid "Bad value string" msgstr "El valor de la cadena és incorrecte" msgid "Bad/empty URI" msgstr "" msgid "Banners" msgstr "Bàners" msgid "Bond Paper" msgstr "Paper de valors" msgid "Booklet" msgstr "" #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "S'esperava un booleà per l'opció waiteof «%s»." msgid "Buffer overflow detected, aborting." msgstr "S'ha detectat un desbordament la memòria cau. S'interromp." msgid "CMYK" msgstr "CMYK" msgid "CPCL Label Printer" msgstr "Impressora d'etiquetes CPCL" msgid "Cancel Jobs" msgstr "" msgid "Canceling print job." msgstr "Es cancel·la feina." msgid "Cannot change printer-is-shared for remote queues." msgstr "" msgid "Cannot share a remote Kerberized printer." msgstr "No es pot compartir una impressora remota sobre Kerberos." msgid "Cassette" msgstr "Classet" msgid "Change Settings" msgstr "Canvia la configuració" #, c-format msgid "Character set \"%s\" not supported." msgstr "No es permet l'ús del grup de caràcters «%s»." msgid "Classes" msgstr "Classes" msgid "Clean Print Heads" msgstr "Neteja els capçals de la impressora" msgid "Close-Job doesn't support the job-uri attribute." msgstr "Close-Job no permet l'ús de l'atribut job-uri." msgid "Color" msgstr "Color" msgid "Color Mode" msgstr "Mode de color" msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" "Les ordres han de ser abreujades. Poden ser:\n" "\n" "exit help quit status ?" msgid "Community name uses indefinite length" msgstr "Els noms de comunitat tenen longitud indefinida" msgid "Connected to printer." msgstr "S'ha connectat a la impressora." msgid "Connecting to printer." msgstr "Es connecta a la impressora." msgid "Continue" msgstr "Continua" msgid "Continuous" msgstr "Contínua" msgid "Control file sent successfully." msgstr "El fitxer de control s'ha enviat correctament." msgid "Copying print data." msgstr "Es copien les dades d'impressió." msgid "Created" msgstr "Creat" msgid "Credentials do not validate against site CA certificate." msgstr "" msgid "Credentials have expired." msgstr "" msgid "Custom" msgstr "Personalitzat" msgid "CustominCutInterval" msgstr "CustominCutInterval" msgid "CustominTearInterval" msgstr "CustominTearInterval" msgid "Cut" msgstr "Tall" msgid "Cutter" msgstr "Ganiveta" msgid "DYMO" msgstr "" msgid "Dark" msgstr "Fosc" msgid "Darkness" msgstr "Foscor" msgid "Data file sent successfully." msgstr "El fitxer de dades s'ha enviat correctament." msgid "Deep Color" msgstr "" msgid "Deep Gray" msgstr "" msgid "Delete Class" msgstr "Elimina la classe" msgid "Delete Printer" msgstr "Elimina la impressora" msgid "DeskJet Series" msgstr "Sèrie Deskjet" #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "El Destí «%s» no accepta tasques." msgid "Device CMYK" msgstr "" msgid "Device Gray" msgstr "" msgid "Device RGB" msgstr "" #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" "Dispositiu: uri = %s\n" " classe = %s\n" " informació = %s\n" " fabricant i model = %s\n" " identificador = %s\n" " ubicació = %s" msgid "Direct Thermal Media" msgstr "Paper per impressió tèrmica directa" #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "El directori «%s» conté un camí relatiu." #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "El directori «%s» té permisos que no són segurs (0%o/uid=%d/gid=%d)." #, c-format msgid "Directory \"%s\" is a file." msgstr "El directori «%s» és un fitxer." #, c-format msgid "Directory \"%s\" not available: %s" msgstr "El directori «%s» no està disponible: %s" #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "El directori «%s» té els permisos correctes (0%o/uid=%d/gid=%d)." msgid "Disabled" msgstr "Desabilitat" #, c-format msgid "Document #%d does not exist in job #%d." msgstr "No s'ha trobat el document #%d a la feina #%d." msgid "Draft" msgstr "" msgid "Duplexer" msgstr "Unitat d'impressió a dues cares" msgid "EPL1 Label Printer" msgstr "Impressora d'etiquetes EPL1" msgid "EPL2 Label Printer" msgstr "Impressora d'etiquetes EPL2" msgid "Edit Configuration File" msgstr "Edita el fitxer de configuració" msgid "Encryption is not supported." msgstr "" #. TRANSLATORS: Banner/cover sheet after the print job. msgid "Ending Banner" msgstr "S'està acabant el bàner" msgid "English" msgstr "Anglès" msgid "" "Enter your username and password or the root username and password to access " "this page. If you are using Kerberos authentication, make sure you have a " "valid Kerberos ticket." msgstr "" "Introduïu el vostre nom d'usuari i contrasenya o el nom d'usuari i la " "contrasenya de root per accedir a aquesta pàgina. Si feu servir " "l'autenticació Kerberos, assegureu-vos de tenir un tiquet Kerberos que sigui " "vàlid." msgid "Envelope #10" msgstr "" msgid "Envelope #11" msgstr "Sobre #11" msgid "Envelope #12" msgstr "Sobre #12" msgid "Envelope #14" msgstr "Sobre #14" msgid "Envelope #9" msgstr "Sobre #9" msgid "Envelope B4" msgstr "Sobre B4" msgid "Envelope B5" msgstr "Sobre B5" msgid "Envelope B6" msgstr "Sobre B6" msgid "Envelope C0" msgstr "Sobre C0" msgid "Envelope C1" msgstr "Sobre C1" msgid "Envelope C2" msgstr "Sobre C2" msgid "Envelope C3" msgstr "Sobre C3" msgid "Envelope C4" msgstr "Sobre C4" msgid "Envelope C5" msgstr "Sobre C5" msgid "Envelope C6" msgstr "Sobre C6" msgid "Envelope C65" msgstr "Sobre C65" msgid "Envelope C7" msgstr "Sobre C7" msgid "Envelope Choukei 3" msgstr "Sobre Choukei 3" msgid "Envelope Choukei 3 Long Edge" msgstr "Sobre Choukei 3 costat llarg" msgid "Envelope Choukei 4" msgstr "Sobre Choukei 4" msgid "Envelope Choukei 4 Long Edge" msgstr "Sobre Choukei 4 costat llarg" msgid "Envelope DL" msgstr "Sobre DL" msgid "Envelope Feed" msgstr "Alimentació de sobres" msgid "Envelope Invite" msgstr "Sobre d'invitació" msgid "Envelope Italian" msgstr "Sobre italià" msgid "Envelope Kaku2" msgstr "Sobre Kaku2" msgid "Envelope Kaku2 Long Edge" msgstr "Sobre Kaku2 costat llarg" msgid "Envelope Kaku3" msgstr "Sobre Kaku3" msgid "Envelope Kaku3 Long Edge" msgstr "Sobre Kaku3 costat llarg" msgid "Envelope Monarch" msgstr "Sobre monarch" msgid "Envelope PRC1" msgstr "" msgid "Envelope PRC1 Long Edge" msgstr "Sobre PRC1 costat llarg" msgid "Envelope PRC10" msgstr "Sobre PRC10" msgid "Envelope PRC10 Long Edge" msgstr "Sobre PRC10 costat llarg" msgid "Envelope PRC2" msgstr "Sobre PRC2" msgid "Envelope PRC2 Long Edge" msgstr "Sobre PRC2 costat llarg" msgid "Envelope PRC3" msgstr "Sobre PRC3" msgid "Envelope PRC3 Long Edge" msgstr "Sobre PRC3 costat llarg" msgid "Envelope PRC4" msgstr "Sobre PRC4" msgid "Envelope PRC4 Long Edge" msgstr "Sobre PRC4 costat llarg" msgid "Envelope PRC5 Long Edge" msgstr "Sobre PRC5 costat llarg" msgid "Envelope PRC5PRC5" msgstr "Sobre PRC5" msgid "Envelope PRC6" msgstr "Sobre PRC6" msgid "Envelope PRC6 Long Edge" msgstr "Sobre PRC6 costat llarg" msgid "Envelope PRC7" msgstr "Sobre PRC7" msgid "Envelope PRC7 Long Edge" msgstr "Sobre PRC7 costat llarg" msgid "Envelope PRC8" msgstr "Sobre PRC8" msgid "Envelope PRC8 Long Edge" msgstr "Sobre PRC8 costat llarg" msgid "Envelope PRC9" msgstr "Sobre PRC9" msgid "Envelope PRC9 Long Edge" msgstr "Sobre PRC9 costat llarg" msgid "Envelope Personal" msgstr "Sobre personalitzat" msgid "Envelope You4" msgstr "Sobre You4" msgid "Envelope You4 Long Edge" msgstr "Sobre You4 costat llarg" msgid "Environment Variables:" msgstr "" msgid "Epson" msgstr "Epson" msgid "Error Policy" msgstr "Normes d'error" msgid "Error reading raster data." msgstr "" msgid "Error sending raster data." msgstr "S'ha produït un error quan s'enviaven les dades de la trama." msgid "Error: need hostname after \"-h\" option." msgstr "ERROR: es necessita un nom d'amfitrió després de l'opció «-h»." msgid "European Fanfold" msgstr "" msgid "European Fanfold Legal" msgstr "" msgid "Every 10 Labels" msgstr "Cada 10 etiquetes" msgid "Every 2 Labels" msgstr "Cada 2 etiquetes" msgid "Every 3 Labels" msgstr "Cada 3 etiquetes" msgid "Every 4 Labels" msgstr "Cada 4 etiquetes" msgid "Every 5 Labels" msgstr "Cada 5 etiquetes" msgid "Every 6 Labels" msgstr "Cada 6 etiquetes" msgid "Every 7 Labels" msgstr "Cada 7 etiquetes" msgid "Every 8 Labels" msgstr "Cada 8 etiquetes" msgid "Every 9 Labels" msgstr "Cada 9 etiquetes" msgid "Every Label" msgstr "Cada etiqueta" msgid "Executive" msgstr "Executiu" msgid "Expectation Failed" msgstr "Ha fallat la condició del valor que s'esperava" msgid "Expressions:" msgstr "" msgid "Fast Grayscale" msgstr "" #, c-format msgid "File \"%s\" contains a relative path." msgstr "El fitxer «%s» conté un camí relatiu." #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "El fitxer «%s» té permisos que no són segurs (0%o/uid=%d/gid=%d)." #, c-format msgid "File \"%s\" is a directory." msgstr "El fitxer «%s» és un directori." #, c-format msgid "File \"%s\" not available: %s" msgstr "El fitxer «%s» no està disponible: %s" #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "El fitxer «%s» té els permisos correctes (0%o/uid=%d/gid=%d)." msgid "File Folder" msgstr "" #, c-format msgid "" "File device URIs have been disabled. To enable, see the FileDevice directive " "in \"%s/cups-files.conf\"." msgstr "" #, c-format msgid "Finished page %d." msgstr "S'ha acabat la pàgina %d." msgid "Finishing Preset" msgstr "" msgid "Fold" msgstr "" msgid "Folio" msgstr "Foli" msgid "Forbidden" msgstr "Prohibit" msgid "Found" msgstr "" msgid "General" msgstr "General" msgid "Generic" msgstr "Genèric" msgid "Get-Response-PDU uses indefinite length" msgstr "La Get-Response-PDU fa servir una longitud indefinida" msgid "Glossy Paper" msgstr "Paper fotogràfic" msgid "Got a printer-uri attribute but no job-id." msgstr "S'ha obtingut l'atribut printer-uri però no el job-id." msgid "GrayScale" msgstr "" msgid "Grayscale" msgstr "Escala de grisos" msgid "HP" msgstr "HP" msgid "Hanging Folder" msgstr "Carpeta per penjar" msgid "Hash buffer too small." msgstr "" msgid "Help file not in index." msgstr "El fitxer d'ajuda no és a l'índex." msgid "High" msgstr "" msgid "IPP 1setOf attribute with incompatible value tags." msgstr "" "L'atribut 1setOf del IPP té etiquetes amb valors que no són compatibles." msgid "IPP attribute has no name." msgstr "L'atribut del IPP no té nom." msgid "IPP attribute is not a member of the message." msgstr "L'atribut del IPP no és membre del missatge." msgid "IPP begCollection value not 0 bytes." msgstr "El valor de begColletion del IPP no té 0 bytes." msgid "IPP boolean value not 1 byte." msgstr "El valor booleà del IPP no té 1 byte." msgid "IPP date value not 11 bytes." msgstr "El valor de date del IPP no té 11 bytes." msgid "IPP endCollection value not 0 bytes." msgstr "El valor de endColletion del IPP no té 0 bytes." msgid "IPP enum value not 4 bytes." msgstr "El valor de enum del IPP no té 4 bytes." msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "La etiqueta d'extension del IPP és més llarga de 0x7FFFFFFF." msgid "IPP integer value not 4 bytes." msgstr "El valor enter de IPP no té 4 bytes." msgid "IPP language length overflows value." msgstr "El valor de la longitud del llenguatge del IPP desborda." msgid "IPP language length too large." msgstr "" msgid "IPP member name is not empty." msgstr "El nom del membre del IPP no està buit." msgid "IPP memberName value is empty." msgstr "El valor de memberName de l'IPP està buit." msgid "IPP memberName with no attribute." msgstr "" msgid "IPP name larger than 32767 bytes." msgstr "EL nom del IPP és més llarg de 32767 bytes." msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "" "El valor de nameWithLanguage del IPP és més petit que el mínim, 4 bytes." msgid "IPP octetString length too large." msgstr "" msgid "IPP rangeOfInteger value not 8 bytes." msgstr "El valor de rangeOfInteger del IPP no té 8 bytes." msgid "IPP resolution value not 9 bytes." msgstr "El valor de resolution del IPP no té 9 bytes." msgid "IPP string length overflows value." msgstr "El valor de la longitud de la cadena del IPP desborda." msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "" "EL valor de textWithLanguage del IPP és més petit que el mínim, 4 bytes." msgid "IPP value larger than 32767 bytes." msgstr "El valor del IPP és més llarg de 32767 bytes." msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" msgid "IPPFIND_SERVICE_URI URI" msgstr "" msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" msgid "ISOLatin1" msgstr "ISOLatin1" msgid "Illegal control character" msgstr "Caràcter de control no permès" msgid "Illegal main keyword string" msgstr "Cadena de paraula clau principal no permesa" msgid "Illegal option keyword string" msgstr "Cadena de paraula clau d'opció no permesa" msgid "Illegal translation string" msgstr "Cadena de traducció no permesa" msgid "Illegal whitespace character" msgstr "Caràcter d'espai en blanc no permés" msgid "Installable Options" msgstr "Opcions instal·lables" msgid "Installed" msgstr "Instal·lat" msgid "IntelliBar Label Printer" msgstr "Impressora d'etiquetes IntelliBar" msgid "Intellitech" msgstr "Intellitech" msgid "Internal Server Error" msgstr "Error intern del servidor" msgid "Internal error" msgstr "Error intern" msgid "Internet Postage 2-Part" msgstr "Franqueig per Internet en 2 parts" msgid "Internet Postage 3-Part" msgstr "Franqueig per Internet en 3 parts" msgid "Internet Printing Protocol" msgstr "Protocol d'impressió per Internet" msgid "Invalid group tag." msgstr "" msgid "Invalid media name arguments." msgstr "" msgid "Invalid media size." msgstr "Mida del suport no vàlida." msgid "Invalid named IPP attribute in collection." msgstr "" msgid "Invalid ppd-name value." msgstr "" #, c-format msgid "Invalid printer command \"%s\"." msgstr "La comanda de la impressora «%s» no és vàlida." msgid "JCL" msgstr "Llenguatge de control de tasques (JCL)" msgid "JIS B0" msgstr "JIS B0" msgid "JIS B1" msgstr "JIS B1" msgid "JIS B10" msgstr "JIS B10" msgid "JIS B2" msgstr "JIS B2" msgid "JIS B3" msgstr "JIS B3" msgid "JIS B4" msgstr "JIS B4" msgid "JIS B4 Long Edge" msgstr "JIS B4 costat llarg" msgid "JIS B5" msgstr "JIS B5" msgid "JIS B5 Long Edge" msgstr "JIS B5 costat llarg" msgid "JIS B6" msgstr "JIS B6" msgid "JIS B6 Long Edge" msgstr "JIS B6 costat llarg" msgid "JIS B7" msgstr "JIS B7" msgid "JIS B8" msgstr "JIS B8" msgid "JIS B9" msgstr "JIS B9" #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "La feina #%d no es pot tornar a iniciar - no hi ha fitxers." #, c-format msgid "Job #%d does not exist." msgstr "La feina #%d no existeix." #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "La feina #%d ja s'ha interromput: no es pot cancel·lar." #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "La feina #%d ja està cancel·lada: no es pot cancel·lar." #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "La feina #%d ja s'ha acabat: no es pot cancel·lar." #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "La feina #%d s'ha acabat i no es pot canviar." #, c-format msgid "Job #%d is not complete." msgstr "La feina #%d no s'ha acabat." #, c-format msgid "Job #%d is not held for authentication." msgstr "La feina #%d no està aturada per ser autenticada." #, c-format msgid "Job #%d is not held." msgstr "La feina #%d no està aturada." msgid "Job Completed" msgstr "S'ha acabat la feina" msgid "Job Created" msgstr "S'ha creat la feina" msgid "Job Options Changed" msgstr "S'han canviat les opcions de la feina" msgid "Job Stopped" msgstr "S'ha aturat la feina" msgid "Job is completed and cannot be changed." msgstr "La feina s'ha finalitzat i no es pot canviar." msgid "Job operation failed" msgstr "Ha fallat l'operació de la feina" msgid "Job state cannot be changed." msgstr "L'estat de la feina no es pot canviar." msgid "Job subscriptions cannot be renewed." msgstr "Les subscripcions a les feines no es poden renovar." msgid "Jobs" msgstr "Feines" msgid "LPD/LPR Host or Printer" msgstr "Amfitrió o impressora LPD/LPR" msgid "" "LPDEST environment variable names default destination that does not exist." msgstr "" msgid "Label Printer" msgstr "Impressora d'etiquetes" msgid "Label Top" msgstr "Capçalera de l'etiqueta" #, c-format msgid "Language \"%s\" not supported." msgstr "L'idioma «%s» no està disponible." msgid "Large Address" msgstr "Adreça gran" msgid "LaserJet Series PCL 4/5" msgstr "Sèrie Laser Jet PCL 4/5" msgid "Letter Oversize" msgstr "Carta gran" msgid "Letter Oversize Long Edge" msgstr "Carta americà gran costat llarg" msgid "Light" msgstr "Lluminós" msgid "Line longer than the maximum allowed (255 characters)" msgstr "La línia la longitud màxima permesa (255 caràcters)" msgid "List Available Printers" msgstr "Llista les impressores disponibles" #, c-format msgid "Listening on port %d." msgstr "" msgid "Local printer created." msgstr "" msgid "Long-Edge (Portrait)" msgstr "Costat-llarg (vertical)" msgid "Looking for printer." msgstr "S'està buscant la impressora." msgid "Main Roll" msgstr "" msgid "Manual Feed" msgstr "Alimentació manual" msgid "Media Size" msgstr "Mida del paper" msgid "Media Source" msgstr "Font del paper" msgid "Media Tracking" msgstr "Seguiment del paper" msgid "Media Type" msgstr "Tipus de paper" msgid "Medium" msgstr "Mitjà" msgid "Memory allocation error" msgstr "S'ha produït un error d'ubicació de memòria" msgid "Missing CloseGroup" msgstr "Falta el CloseGroup" msgid "Missing CloseUI/JCLCloseUI" msgstr "" msgid "Missing PPD-Adobe-4.x header" msgstr "Falta la capçalera PPD-ADOBE-4.x" msgid "Missing asterisk in column 1" msgstr "Falta un asterisc a la columna 1" msgid "Missing document-number attribute." msgstr "Falta l'atribut document-number." msgid "Missing form variable" msgstr "Falta una variable del formulari" msgid "Missing last-document attribute in request." msgstr "Falta l'atribut last-document-number a la petició." msgid "Missing media or media-col." msgstr "Falta el media o el media-col." msgid "Missing media-size in media-col." msgstr "Falta el media-size al media-col." msgid "Missing notify-subscription-ids attribute." msgstr "Falta l'atribut notify-subscription-ids." msgid "Missing option keyword" msgstr "Falta l'opció keyword" msgid "Missing requesting-user-name attribute." msgstr "Falta l'atribut requesting-user-name." #, c-format msgid "Missing required attribute \"%s\"." msgstr "" msgid "Missing required attributes." msgstr "Falten alguns atributs necessaris." msgid "Missing resource in URI" msgstr "" msgid "Missing scheme in URI" msgstr "" msgid "Missing value string" msgstr "Falta la cadena de valor" msgid "Missing x-dimension in media-size." msgstr "Falta la mida x a la mida del suport." msgid "Missing y-dimension in media-size." msgstr "Falta la mida y a la mida del suport." #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" "Model: nom = %s\n" " idioma_natural = %s\n" " fabricant i model = %s\n" " id del dispositiu = %s" msgid "Modifiers:" msgstr "" msgid "Modify Class" msgstr "Modifica la classe" msgid "Modify Printer" msgstr "Modifica la impressora" msgid "Move All Jobs" msgstr "Mou totes les feines" msgid "Move Job" msgstr "Mou la feina" msgid "Moved Permanently" msgstr "S'ha mogut de manera permanent" msgid "NULL PPD file pointer" msgstr "Punter del fitxer PPD NUL" msgid "Name OID uses indefinite length" msgstr "El nom de l'OID fa servir una longitud indefinida" msgid "Nested classes are not allowed." msgstr "No es permeten les classes imbricades." msgid "Never" msgstr "Mai" msgid "New credentials are not valid for name." msgstr "" msgid "New credentials are older than stored credentials." msgstr "" msgid "No" msgstr "No" msgid "No Content" msgstr "No hi ha contingut" msgid "No IPP attributes." msgstr "" msgid "No PPD name" msgstr "El PPD no té nom" msgid "No VarBind SEQUENCE" msgstr "No hi ha cap SEQUENCE VarBind" msgid "No active connection" msgstr "No hi ha cap connexió activa" msgid "No active connection." msgstr "" #, c-format msgid "No active jobs on %s." msgstr "No hi ha cap feina activa a %s." msgid "No attributes in request." msgstr "No hi ha atributs en demanda." msgid "No authentication information provided." msgstr "No s'ha donat cap informació d'autenticació." msgid "No common name specified." msgstr "" msgid "No community name" msgstr "Ho hi na cap nom de comunitat" msgid "No default destination." msgstr "" msgid "No default printer." msgstr "No hi ha cap impressora per defecte." msgid "No destinations added." msgstr "No s'ha afegit cap destí." msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" "No s'ha trobat cap URI de dispositiu a argv[0] o a la variable d'entorn " "DEVICE_URI." msgid "No error-index" msgstr "No hi ca cap error-index" msgid "No error-status" msgstr "No hi ha cap status-error" msgid "No file in print request." msgstr "No hi ha cap printer-uri a la sol·licitud." msgid "No modification time" msgstr "No hi ha hora de modificació" msgid "No name OID" msgstr "No hi ha cap nom d'OID" msgid "No pages were found." msgstr "No s'ha trobat cap pàgina." msgid "No printer name" msgstr "No hi ha cap nom d'impressora" msgid "No printer-uri found" msgstr "No s'ha trobat cap printer-uri" msgid "No printer-uri found for class" msgstr "No s'ha trobat cap printer-uri per la classe" msgid "No printer-uri in request." msgstr "No hi ha cap printer-uri a la sol·licitud." msgid "No request URI." msgstr "" msgid "No request protocol version." msgstr "" msgid "No request sent." msgstr "" msgid "No request-id" msgstr "No hi ha cap request-id" msgid "No stored credentials, not valid for name." msgstr "" msgid "No subscription attributes in request." msgstr "No hi ha cap atribut de la subscripció a la sol·licitud." msgid "No subscriptions found." msgstr "No s'ha trobat cap sol·licitud." msgid "No variable-bindings SEQUENCE" msgstr "No hi ha cap SEQUENCE variable-bindings" msgid "No version number" msgstr "No hi ha cap número de versió" msgid "Non-continuous (Mark sensing)" msgstr "Discontinu (sensible a les marques)" msgid "Non-continuous (Web sensing)" msgstr "Discontinu (Sensible al web)" msgid "None" msgstr "" msgid "Normal" msgstr "Normal" msgid "Not Found" msgstr "No s'ha trobat" msgid "Not Implemented" msgstr "No implementat" msgid "Not Installed" msgstr "No està instal·lat" msgid "Not Modified" msgstr "No està modificat" msgid "Not Supported" msgstr "No és compatible" msgid "Not allowed to print." msgstr "No teniu permís per imprimir." msgid "Note" msgstr "Nota" msgid "OK" msgstr "D'acord" msgid "Off (1-Sided)" msgstr "Inactiu (Una cara)" msgid "Oki" msgstr "Oki" msgid "Online Help" msgstr "Ajuda en línia" msgid "Only local users can create a local printer." msgstr "" #, c-format msgid "Open of %s failed: %s" msgstr "No s'ha pogut obrir %s: %s" msgid "OpenGroup without a CloseGroup first" msgstr "OpenGroup sense un CloseGroup abans" msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "OpenUI/JCLOpenUI sense un CloseUI/JCLCloseUI abans" msgid "Operation Policy" msgstr "Política d'operacions" #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "L'opció «%s» no es pot incloure a través de %%%%IncludeFeature." msgid "Options Installed" msgstr "Opcions instal·lades" msgid "Options:" msgstr "Opcions:" msgid "Other Media" msgstr "" msgid "Other Tray" msgstr "" msgid "Out of date PPD cache file." msgstr "El fitxer de memòria cau del PPD no està actualitzat." msgid "Out of memory." msgstr "Sense memòria." msgid "Output Mode" msgstr "Mode de sortida" msgid "PCL Laser Printer" msgstr "Impressora làser PCL" msgid "PRC16K" msgstr "PRC16K" msgid "PRC16K Long Edge" msgstr "PRC16K costat llarg" msgid "PRC32K" msgstr "PRC32K" msgid "PRC32K Long Edge" msgstr "PRC32K costat llarg" msgid "PRC32K Oversize" msgstr "PRC32K gran" msgid "PRC32K Oversize Long Edge" msgstr "PRC32K gran costat llarg" msgid "" "PRINTER environment variable names default destination that does not exist." msgstr "" msgid "Packet does not contain a Get-Response-PDU" msgstr "El paquet no conté cap Get-Response-PDU" msgid "Packet does not start with SEQUENCE" msgstr "El paquet no comença amb SEQUENCE" msgid "ParamCustominCutInterval" msgstr "ParamCustominCutInterval" msgid "ParamCustominTearInterval" msgstr "ParamCustominTearInterval" #, c-format msgid "Password for %s on %s? " msgstr "Contrasenya per %s a %s? " msgid "Pause Class" msgstr "Posa la classe en pausa" msgid "Pause Printer" msgstr "Posa la impressora en pausa" msgid "Peel-Off" msgstr "Desenganxar" msgid "Photo" msgstr "Fotografia" msgid "Photo Labels" msgstr "Etiquetes de fotografia" msgid "Plain Paper" msgstr "Paper normal" msgid "Policies" msgstr "Polítiques" msgid "Port Monitor" msgstr "Seguiment del port" msgid "PostScript Printer" msgstr "Impressora PostScript" msgid "Postcard" msgstr "Postal" msgid "Postcard Double" msgstr "" msgid "Postcard Double Long Edge" msgstr "Postal doble costat llarg" msgid "Postcard Long Edge" msgstr "Postal costat llarg" msgid "Preparing to print." msgstr "" msgid "Print Density" msgstr "Densitat de la impressió" msgid "Print Job:" msgstr "Feina d'impressió:" msgid "Print Mode" msgstr "Mode d'impressió" msgid "Print Quality" msgstr "" msgid "Print Rate" msgstr "Ritme d'impressió" msgid "Print Self-Test Page" msgstr "Imprimeix la pàgina de prova pròpia" msgid "Print Speed" msgstr "Velocitat d'impressió" msgid "Print Test Page" msgstr "Imprimeix una pàgina de prova" msgid "Print and Cut" msgstr "Imprimeix i talla" msgid "Print and Tear" msgstr "Imprimeix i estripa" msgid "Print file sent." msgstr "S'ha enviat el fitxer d'impressió." msgid "Print job canceled at printer." msgstr "S'ha cancel·lat la feina a la impressora." msgid "Print job too large." msgstr "La feina d'impressió és massa llarga." msgid "Print job was not accepted." msgstr "" #, c-format msgid "Printer \"%s\" already exists." msgstr "" msgid "Printer Added" msgstr "S'ha afegit una impressora" msgid "Printer Default" msgstr "Impressora per defecte" msgid "Printer Deleted" msgstr "S'ha eliminat la impressora" msgid "Printer Modified" msgstr "S'ha modificat la impressora" msgid "Printer Paused" msgstr "S'ha posat la impressora en pausa" msgid "Printer Settings" msgstr "Configuració de la impressora" msgid "Printer cannot print supplied content." msgstr "La impressora no pot imprimir el contingut subministrat." msgid "Printer cannot print with supplied options." msgstr "" msgid "Printer does not support required IPP attributes or document formats." msgstr "" msgid "Printer:" msgstr "Impressora:" msgid "Printers" msgstr "Impressores" #, c-format msgid "Printing page %d, %u%% complete." msgstr "" msgid "Punch" msgstr "" msgid "Quarto" msgstr "Quart" msgid "Quota limit reached." msgstr "S'ha assolit el límit de la quota." msgid "Rank Owner Job File(s) Total Size" msgstr "" "Rang Propietari Feina Fitxer(s) Mida total" msgid "Reject Jobs" msgstr "Rebutja feines" #, c-format msgid "Remote host did not accept control file (%d)." msgstr "L'amfitrió remot no accepta el fitxer de control (%d)." #, c-format msgid "Remote host did not accept data file (%d)." msgstr "L'amfitrió remot no accepta el fitxer de dades (%d)." msgid "Reprint After Error" msgstr "Torna a imprimir després d'un error" msgid "Request Entity Too Large" msgstr "Entitat de petició massa gran" msgid "Resolution" msgstr "Resolució" msgid "Resume Class" msgstr "Reprèn la classe" msgid "Resume Printer" msgstr "Reprèn la impressora" msgid "Return Address" msgstr "Remitent" msgid "Rewind" msgstr "Rebobina" msgid "SEQUENCE uses indefinite length" msgstr "SEQUENCE té una longitud indefinida" msgid "SSL/TLS Negotiation Error" msgstr "S'ha produït un error mentre es negociava el SSL/TLS" msgid "Second Roll (DUO/Twin Only)" msgstr "" msgid "See Other" msgstr "Vegeu altres" msgid "See remote printer." msgstr "" msgid "Self-signed credentials are blocked." msgstr "" msgid "Sending data to printer." msgstr "S'envien les dades a la impressora." msgid "Server Restarted" msgstr "S'ha reiniciat el servidor" msgid "Server Security Auditing" msgstr "S'està auditant la seguretat del servidor" msgid "Server Started" msgstr "S'ha iniciat el servidor" msgid "Server Stopped" msgstr "S'ha aturat el servidor" msgid "Server credentials not set." msgstr "" msgid "Service Unavailable" msgstr "El servei no està disponible" msgid "Set Allowed Users" msgstr "Definir els permisos dels usuaris" msgid "Set As Server Default" msgstr "Establir com a servidor per defecte" msgid "Set Class Options" msgstr "Definir les opcions de la classe" msgid "Set Printer Options" msgstr "Definir les opcions de la impressora" msgid "Set Publishing" msgstr "Establir com a pública" msgid "Shipping Address" msgstr "Adreça de lliurament" msgid "Short-Edge (Landscape)" msgstr "Costat curt (horitzontal)" msgid "Special Paper" msgstr "Paper especial" #, c-format msgid "Spooling job, %.0f%% complete." msgstr "S'està posant a la cua la feina. S'ha completat el %.0f%%." msgid "Standard" msgstr "Estàndard" msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. msgid "Starting Banner" msgstr "Bàner inicial" #, c-format msgid "Starting page %d." msgstr "S'està començant la pàgina %d." msgid "Statement" msgstr "Declaració" #, c-format msgid "Subscription #%d does not exist." msgstr "La subscripció #%d no existeix." msgid "Substitutions:" msgstr "" msgid "Super A" msgstr "Super A" msgid "Super B" msgstr "Super B" msgid "Super B/A3" msgstr "Super B/A3" msgid "Switching Protocols" msgstr "Intercanviar els protocols" msgid "Tabloid" msgstr "Tabloide" msgid "Tabloid Oversize" msgstr "Tabloide gran" msgid "Tabloid Oversize Long Edge" msgstr "Tabloide gran costat llarg" msgid "Tear" msgstr "Estripar" msgid "Tear-Off" msgstr "Estripar" msgid "Tear-Off Adjust Position" msgstr "Posició d'ajust d'estripat" #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "" #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "No es pot fer servir l'atribut %s amb les job-ids." #, c-format msgid "" "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #, c-format msgid "" "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" "L'atribut d'operació «%s» no es pot subministrar en una petició de Create-" "Job." #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "No s'ha pogut trobar el fitxer PPD «%s»." #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "No s'ha pogut obrir el fitxer PPD «%s»: %s" msgid "The PPD file could not be opened." msgstr "No s'ha pogut obrir el fitxer PPD." msgid "" "The class name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/), or the pound sign (#)." msgstr "" "El nom de la classe només pot tenir fins a 127 caràcters imprimibles i no " "pot contenir espais, barres (/) o el símbol coixinet (#)." msgid "" "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" "No es pot fer servir l'atribut notify-lease-duration amb les subscripcions a " "tasques." #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "El valor de notify-user-data és massa llarg (%d > 63 octets)." msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" msgid "The printer did not respond." msgstr "La impressora no ha respost." msgid "The printer is in use." msgstr "La impressora està ocupada." msgid "The printer is not connected." msgstr "La impressora no està connectada." msgid "The printer is not responding." msgstr "La impressora no respon." msgid "The printer is now connected." msgstr "Ara la impressora està connectada." msgid "The printer is now online." msgstr "Ara la impressora està en línia." msgid "The printer is offline." msgstr "La impressora està fora de línia." msgid "The printer is unreachable at this time." msgstr "Ara mateix no es pot accedir a la impressora." msgid "The printer may not exist or is unavailable at this time." msgstr "" "Pot ser que la impressora no existeixi o que ara mateix no estigui " "accessible." msgid "" "The printer name may only contain up to 127 printable characters and may not " "contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the " "pound sign (#)." msgstr "" msgid "The printer or class does not exist." msgstr "La impressora o la classe no existeix." msgid "The printer or class is not shared." msgstr "La impressora o la classe no estan compartides." #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "El printer-uri «%s» conté caràcters no vàlids." msgid "The printer-uri attribute is required." msgstr "L'atribut printer-uri és obligatori." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" "El printer-uri ha de tenir la forma «ipp://NOMAMFITRIÓ/classes/NOMCLASSE»." msgid "" "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" "El printer-uri ha de tenir la forma «ipp://NOMAMFITRIÓ/printers/" "NOMIMPRESSORA»." msgid "" "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to " "enable it." msgstr "" "La interfície web està deshabilitada. Executeu «cupsctl WebInterface=yes» " "per habilitar-la." #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "El valor «%s» de which-jobs no està implementat." msgid "There are too many subscriptions." msgstr "Hi ha massa subscripcions." msgid "There was an unrecoverable USB error." msgstr "Hi ha un error de l'USB irrecuperable." msgid "Thermal Transfer Media" msgstr "Mitjà de transferència tèrmica" msgid "Too many active jobs." msgstr "Hi ha massa tasques actives." #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "Hi ha massa valors de job-sheets (%d > 2)." #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "Hi ha massa valors de printer-state-reasons (%d > %d)." msgid "Transparency" msgstr "Transparència" msgid "Tray" msgstr "Safata" msgid "Tray 1" msgstr "Safata 1" msgid "Tray 2" msgstr "Safata 2" msgid "Tray 3" msgstr "Safata 3" msgid "Tray 4" msgstr "Safata 4" msgid "Trust on first use is disabled." msgstr "" msgid "URI Too Long" msgstr "L'URI és massa llarg" msgid "URI too large" msgstr "" msgid "US Fanfold" msgstr "" msgid "US Ledger" msgstr "Llibre major americà" msgid "US Legal" msgstr "Legal americà" msgid "US Legal Oversize" msgstr "Legal americà gran" msgid "US Letter" msgstr "Carta americà" msgid "US Letter Long Edge" msgstr "Carta americà costat llarg" msgid "US Letter Oversize" msgstr "Carta americà gran" msgid "US Letter Oversize Long Edge" msgstr "Carta americà gran costat llarg" msgid "US Letter Small" msgstr "Carta americà petit" msgid "Unable to access cupsd.conf file" msgstr "No es pot accedir al fitxer cups.conf" msgid "Unable to access help file." msgstr "No es pot accedir al fitxer d'ajuda." msgid "Unable to add class" msgstr "No es pot afegir la classe" msgid "Unable to add document to print job." msgstr "No es pot obrir el documenta la feina." #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "No es pot afegir la feina al destí «%s»." msgid "Unable to add printer" msgstr "No es pot afegir la impressora" msgid "Unable to allocate memory for file types." msgstr "No es pot assignar la memòria pels tipus de fitxers." msgid "Unable to allocate memory for page info" msgstr "No s'ha pogut assignar memòria per la pàgina d'informació" msgid "Unable to allocate memory for pages array" msgstr "No s'ha pogut assignar memòria per la matriu de pàgines" msgid "Unable to allocate memory for printer" msgstr "" msgid "Unable to cancel print job." msgstr "No es pot cancel·lar la feina d'impressió." msgid "Unable to change printer" msgstr "No es pot canviar la impressora" msgid "Unable to change printer-is-shared attribute" msgstr "No es pot canviar l'atribut printer-is-shared" msgid "Unable to change server settings" msgstr "No es pot canviar la configuració del servidor" #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" msgid "Unable to configure printer options." msgstr "No es poden configurar les opcions de la impressora." msgid "Unable to connect to host." msgstr "No es pot connectar a l'amfitrió." msgid "Unable to contact printer, queuing on next printer in class." msgstr "" "No es pot contactar amb la impressora. Es posa a la cua de la següent " "impressora de la classe." #, c-format msgid "Unable to copy PPD file - %s" msgstr "No es pot copiar el fitxer PPD - %s" msgid "Unable to copy PPD file." msgstr "No es pot copiar el fitxer PPD." msgid "Unable to create credentials from array." msgstr "" msgid "Unable to create printer-uri" msgstr "No es pot crear el printer-uri" msgid "Unable to create printer." msgstr "" msgid "Unable to create server credentials." msgstr "" #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" msgid "Unable to create temporary file" msgstr "No es pot crear el fitxer temporal" msgid "Unable to delete class" msgstr "No es pot esborrar la classe" msgid "Unable to delete printer" msgstr "No es pot esborrar la impressora" msgid "Unable to do maintenance command" msgstr "No es pot executar la comanda de manteniment" msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "No es poden editar fitxers cupsd.conf més grans d'1MB" #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" msgid "" "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (la cadena del " "certificat no és vàlida)." msgid "" "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (el certificat " "encara no és vàlid)." msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (ha expirat el " "certificat)." msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (hi ha un error en " "el nom de l'amfitrió)." msgid "" "Unable to establish a secure connection to host (peer dropped connection " "before responding)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (s'ha tallat la " "connexió abans de respondre)." msgid "" "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (el certificat és " "autosignat)." msgid "" "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" "No s'ha pogut establir una connexió segura amb l'amfitrió (el certificat no " "és de confiança)." msgid "Unable to establish a secure connection to host." msgstr "No es pot establir una connexió segura amb l'amfitrió." #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" msgid "Unable to find destination for job" msgstr "No es pot trobar el destí de la feina" msgid "Unable to find printer." msgstr "No es pot trobar la impressora." msgid "Unable to find server credentials." msgstr "" msgid "Unable to get backend exit status." msgstr "No es pot obtenir el motiu de la sortida de l'execució en segon pla" msgid "Unable to get class list" msgstr "No es pot obtenir la llista de classes" msgid "Unable to get class status" msgstr "No es pot obtenir l'estat de la classe" msgid "Unable to get list of printer drivers" msgstr "No es pot obtenir la llista dels controladors d'impressora" msgid "Unable to get printer attributes" msgstr "No es poden obtenir els atributs de la impressora" msgid "Unable to get printer list" msgstr "No es pot obtenir la llista d'impressores" msgid "Unable to get printer status" msgstr "No es pot obtenir l'estat de la impressora" msgid "Unable to get printer status." msgstr "No es pot obtenir l'estat de la impressora." msgid "Unable to load help index." msgstr "No es pot carregar l'índex de l'ajuda." #, c-format msgid "Unable to locate printer \"%s\"." msgstr "No es pot ubicar la impressora «%s»." msgid "Unable to locate printer." msgstr "No es pot ubicar la impressora." msgid "Unable to modify class" msgstr "No es pot modificar la classe" msgid "Unable to modify printer" msgstr "No es pot modificar la impressora" msgid "Unable to move job" msgstr "No es pot moure la feina" msgid "Unable to move jobs" msgstr "No es poden moure les tasques" msgid "Unable to open PPD file" msgstr "No es pot obrir el fitxer PPD" msgid "Unable to open cupsd.conf file:" msgstr "No es pot obrir el fitxer cups.conf" msgid "Unable to open device file" msgstr "No es pot obrir el fitxer de dispositiu" #, c-format msgid "Unable to open document #%d in job #%d." msgstr "No es pot obrir el document #%d a la feina #%d." msgid "Unable to open help file." msgstr "No es pot obrir el fitxer d'impressió." msgid "Unable to open print file" msgstr "No es pot obrir el fitxer d'impressió" msgid "Unable to open raster file" msgstr "No es pot obrir el fitxer de trama" msgid "Unable to print test page" msgstr "No es pot imprimir la pàgina de prova" msgid "Unable to read print data." msgstr "No es poden llegir les dades d'impressió." #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" msgid "Unable to rename job document file." msgstr "" msgid "Unable to resolve printer-uri." msgstr "" msgid "Unable to see in file" msgstr "No es pot veure al fitxer" msgid "Unable to send command to printer driver" msgstr "No es pot enviar la comanda al controlador de la impressora" msgid "Unable to send data to printer." msgstr "No es poden enviar dades a la impressora." msgid "Unable to set options" msgstr "No es poden configurar les opcions" msgid "Unable to set server default" msgstr "No es pot posar la configuració per defecte al servidor" msgid "Unable to start backend process." msgstr "No es pot iniciar el procés en segon pla." msgid "Unable to upload cupsd.conf file" msgstr "No es pot penjar el fitxer cups.conf" msgid "Unable to use legacy USB class driver." msgstr "No es pot fer servir el controlador de la classe USB antic." msgid "Unable to write print data" msgstr "No es poden escriure les dades d'impressió" #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "No es poden escriure les dades sense comprimir: %s" msgid "Unauthorized" msgstr "No autoritzat" msgid "Units" msgstr "Unitats" msgid "Unknown" msgstr "Desconegut" #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "La tria de «%s» per l'opció «%s» és desconeguda." #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "El valor de l'opció de xifrat «%s» és desconegut." #, c-format msgid "Unknown file order: \"%s\"." msgstr "Ordre desconegut del fitxer: «%s»." #, c-format msgid "Unknown format character: \"%c\"." msgstr "Format del caràcter desconegut: «%c»." msgid "Unknown hash algorithm." msgstr "" msgid "Unknown media size name." msgstr "El nom de la mida del suport no és conegut." #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "L'opció «%s» amb valor «%s» és desconeguda." #, c-format msgid "Unknown option \"%s\"." msgstr "L'opció «%s» és desconeguda." #, c-format msgid "Unknown print mode: \"%s\"." msgstr "El mode d'impressió «%s» és desconegut." #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "El paràmetre printer-error-policy «%s» és desconegut." #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "El paràmetre printer-op-policy «%s» és desconegut." msgid "Unknown request method." msgstr "" msgid "Unknown request version." msgstr "" msgid "Unknown scheme in URI" msgstr "" msgid "Unknown service name." msgstr "El nom del servei és desconegut." #, c-format msgid "Unknown version option value: \"%s\"." msgstr "El valor de l'opció de la versió és desconegut: «%s»." #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "" #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "" msgid "Unsupported 'job-hold-until' value." msgstr "" msgid "Unsupported 'job-name' value." msgstr "" #, c-format msgid "Unsupported character set \"%s\"." msgstr "No s'admet el grup de caràcters «%s»." #, c-format msgid "Unsupported compression \"%s\"." msgstr "No s'admet la compressió «%s»." #, c-format msgid "Unsupported document-format \"%s\"." msgstr "No s'admet el document-format «%s»." #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "No s'admet el document-format «%s/%s»." #, c-format msgid "Unsupported format \"%s\"." msgstr "No s'admet el format «%s»." msgid "Unsupported margins." msgstr "No s'admeten els marges." msgid "Unsupported media value." msgstr "No s'admet el valor del suport." #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "No s'admet el valor %d a number-up. Es fa servir number-up=1." #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" "No s'admet el valor %s a number-up-layout. Es fa servir number-up-" "layout=lrtb." #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "No s'admet el valor %s a page-border. Es fa servir page-border=none." msgid "Unsupported raster data." msgstr "No s'admet les dades en trama." msgid "Unsupported value type" msgstr "El tipus de valor no és compatible" msgid "Upgrade Required" msgstr "S'ha d'actualitzar" #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "Sintaxi: %s id-feina usuari títol còpies opcions [fitxer]" msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "Sintaxi: cupsctl [opcions] [param=valor ... paramN=valorN]" msgid "Usage: cupsd [options]" msgstr "Sintaxi: cupsd [opcions]" msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "Sintaxi: ipptool [opcions] URI nomfitxer[ ... nomfitxerN]" msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" msgid "Usage: lpq [options] [+interval]" msgstr "" msgid "Usage: lpr [options] [file(s)]" msgstr "" msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" msgid "Usage: lpstat [options]" msgstr "" msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "Sintaxi: ppdc [opcions] nomfitxer.rv [ ... nomfitxerN.drv ]" msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "Sintaxi: ppdhtml [opcions] nomfitxer.drv >nomfitxer.html" msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Sintaxi: ppdi [opcions] nomfitxer.ppd [ ... nomfitxerN.ppd ]" msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "Sintaxi: ppdmerge [opcions] nomfitxer.ppd [ ... nomfitxerN.ppd ]" msgid "" "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" "Sintaxi: ppdpo [opcions] -o nomfitxer.po nomfitxer.drv [ ... nomfitxerN.drv]" msgid "Usage: snmp [host-or-ip-address]" msgstr "Sintaxi: snmp [adreça-amfitrió-o-ip]" #, c-format msgid "Using spool directory \"%s\"." msgstr "" msgid "Value uses indefinite length" msgstr "El valor té una longitud indefinida" msgid "VarBind uses indefinite length" msgstr "VarBind té una longitud indefinida" msgid "Version uses indefinite length" msgstr "Version té una longitud indefinida" msgid "Waiting for job to complete." msgstr "S'està esperant que acabi la feina." msgid "Waiting for printer to become available." msgstr "S'està esperant que la impressora estigui disponible." msgid "Waiting for printer to finish." msgstr "S'està esperant que la impressora acabi." msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" msgid "Web Interface is Disabled" msgstr "La interfície web està deshabilitada" msgid "Yes" msgstr "Sí" msgid "You cannot access this page." msgstr "" #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "Heu d'accedir a aquesta pagina a través de la URL https://%s:%d%s." msgid "Your account does not have the necessary privileges." msgstr "" msgid "ZPL Label Printer" msgstr "Impressora d'etiquetes ZPL" msgid "Zebra" msgstr "Zebra" msgid "aborted" msgstr "interromput" #. TRANSLATORS: Accuracy Units msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output msgid "baling" msgstr "" #. TRANSLATORS: Bale Using msgid "baling-type" msgstr "" #. TRANSLATORS: Band msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After msgid "baling-when" msgstr "" #. TRANSLATORS: Job msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo msgid "binding-type.velo" msgstr "" msgid "canceled" msgstr "cancel·lat" #. TRANSLATORS: Chamber Humidity msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To msgid "coating-sides" msgstr "" #. TRANSLATORS: Back msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating msgid "coating-type" msgstr "" #. TRANSLATORS: Archival msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent msgid "coating-type.translucent" msgstr "" msgid "completed" msgstr "completat" #. TRANSLATORS: Print Confirmation Sheet msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies msgid "copies" msgstr "" #. TRANSLATORS: Back Cover msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output msgid "covering" msgstr "" #. TRANSLATORS: Add Cover msgid "covering-name" msgstr "" #. TRANSLATORS: Plain msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed msgid "covering-name.pre-printed" msgstr "" msgid "cups-deviced failed to execute." msgstr "no s'ha pogut executar correctament la cups-deviced." msgid "cups-driverd failed to execute." msgstr "no s'ha pogut executar correctament la cups-driverd" #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "cupsctl: no es pot connectar al servidor: %s" #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "cupsctl: l'opció «%s» és desconeguda" #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "cupsctl: l'opció «-%c» és desconeguda" msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" "cupsd: s'esperava un nom de fitxer de configuració després de l'opció «-c»." msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" msgid "cupsd: Unable to get current directory." msgstr "cupsd: No es pot obtenir el directori actual." msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "cupsd: l'argument «%s» és desconegut - s'interromp." #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "cupsd: l'opció «%c» és desconeguda - s'interromp." #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "cupsfilter: el document número %d no és vàlid." #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "cupsfilter: la feina %d no és vàlida." msgid "cupsfilter: Only one filename can be specified." msgstr "cupsfilter: només es pot especificar un nom de fitxer." #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "cupsfilter: no es pot obtenir el fitxer de la feina - %s" msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "cupstestppd: l'opció -q no és compatible amb l'opció -v." msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "cupstestppd: l'opció -v no és compatible amb l'opció -q." #. TRANSLATORS: Detailed Status Message msgid "detailed-status-message" msgstr "" #, c-format msgid "device for %s/%s: %s" msgstr "dispositiu per %s/%s: %s" #, c-format msgid "device for %s: %s" msgstr "dispositiu per %s: %s" #. TRANSLATORS: Copies msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed msgid "document-state.9" msgstr "" msgid "error-index uses indefinite length" msgstr "error-index fa servir una longitud indefinida" msgid "error-status uses indefinite length" msgstr "error-status fa servir una longitud indefinida" msgid "" "expression --and expression\n" " Logical AND" msgstr "" msgid "" "expression --or expression\n" " Logical OR" msgstr "" msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings msgid "finishings" msgstr "" #. TRANSLATORS: Finishings msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top msgid "finishings.29" msgstr "" #. TRANSLATORS: None msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name msgid "from-name" msgstr "" msgid "held" msgstr "En pausa" msgid "help\t\tGet help on commands." msgstr "help\t\tproporciona ajuda sobre les comandes." msgid "idle" msgstr "inactiva" #. TRANSLATORS: Imposition Template msgid "imposition-template" msgstr "" #. TRANSLATORS: None msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet msgid "insert-sheet" msgstr "" #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "" msgid "ippfind: Cannot use --and after --or." msgstr "" #, c-format msgid "ippfind: Expected key name after %s." msgstr "" #, c-format msgid "ippfind: Expected port range after %s." msgstr "" #, c-format msgid "ippfind: Expected program after %s." msgstr "" #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "" msgid "ippfind: Missing close brace in substitution." msgstr "" msgid "ippfind: Missing close parenthesis." msgstr "" msgid "ippfind: Missing expression before \"--and\"." msgstr "" msgid "ippfind: Missing expression before \"--or\"." msgstr "" #, c-format msgid "ippfind: Missing key name after %s." msgstr "" #, c-format msgid "ippfind: Missing name after %s." msgstr "" msgid "ippfind: Missing open parenthesis." msgstr "" #, c-format msgid "ippfind: Missing program after %s." msgstr "" #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "" #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "" msgid "ippfind: Out of memory." msgstr "" msgid "ippfind: Too many parenthesis." msgstr "" #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "" #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "" #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "" #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "" msgid "" "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", " "and \"-X\"." msgstr "" msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" msgid "ipptool: Invalid seconds for \"-i\"." msgstr "ipptool: els segons de «-i» no són correctes." msgid "ipptool: May only specify a single URI." msgstr "ipptool: heu d'especificar només un URI." msgid "ipptool: Missing count for \"-n\"." msgstr "ipptool: falta el comptador de «-n»." msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" msgid "ipptool: Missing filename for \"-f\"." msgstr "ipptool: falta el nom del fitxer a «-f»." msgid "ipptool: Missing name=value for \"-d\"." msgstr "ipptool: falta nom=valor a «-d»." msgid "ipptool: Missing seconds for \"-i\"." msgstr "ipptool: falten els segons a «-i»." msgid "ipptool: URI required before test file." msgstr "ipptool: falta l'URI abans del fitxer de prova." #. TRANSLATORS: Job Account ID msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type msgid "job-account-type" msgstr "" #. TRANSLATORS: General msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number msgid "job-phone-number" msgstr "" msgid "job-printer-uri attribute missing." msgstr "Falta l'atribut de job-printer-uri." #. TRANSLATORS: Job Priority msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending msgid "job-state.3" msgstr "" #. TRANSLATORS: Held msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages msgid "laminating" msgstr "" #. TRANSLATORS: Laminate msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo msgid "logo" msgstr "" msgid "lpadmin: Class name can only contain printable characters." msgstr "lpadmin: el nom de la classe només pot tenir caràcters imprimibles." #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "lpadmin: s'esperava allow/deny:llistausuaris després de l'opció «-u»." msgid "lpadmin: Expected class after \"-r\" option." msgstr "lpadmin: s'esperava una classe després de l'opció «-r»." msgid "lpadmin: Expected class name after \"-c\" option." msgstr "lpadmin: s'esperava un nom de classe després de l'opció «-c»." msgid "lpadmin: Expected description after \"-D\" option." msgstr "lpadmin: s'esperava una descripció després de l'opció «-D»." msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "lpadmin: s'esperava un URI de dispositiu després de l'opció «-v»." msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "lpadmin: s'esperava un(s) tipus de fitxer(s) després de l'opció «-I»." msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "lpadmin: s'esperava un nom d'amfitrió després de l'opció «-h»." msgid "lpadmin: Expected location after \"-L\" option." msgstr "lpadmin: s'esperava una ubicació després de l'opció «-L»." msgid "lpadmin: Expected model after \"-m\" option." msgstr "lpadmin: s'esperava un model després de l'opció «-m»." msgid "lpadmin: Expected name after \"-R\" option." msgstr "lpadmin: s'esperava un nom després de l'opció «-R»." msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "lpadmin: s'esperava nom=valor després de l'opció «-o»." msgid "lpadmin: Expected printer after \"-p\" option." msgstr "lpadmin: s'esperava una impressora després de l'opció «-p»." msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "lpadmin: s'esperava un nom d'impressora després de l'opció «-d»." msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "lpadmin: s'esperava un impressora o classe després de l'opció «-x»." msgid "lpadmin: No member names were seen." msgstr "lpadmin: no s'ha trobat cap nom de membre." #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "lpadmin: la impressora %s ja és membre de la classe %s." #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "lpadmin: la impressora %s no és membre de la classe %s." msgid "" "lpadmin: Printer drivers are deprecated and will stop working in a future " "version of CUPS." msgstr "" msgid "lpadmin: Printer name can only contain printable characters." msgstr "" "lpadmin: el nom de la impressora només pot contenir caràcters imprimibles." msgid "" "lpadmin: Raw queues are deprecated and will stop working in a future version " "of CUPS." msgstr "" msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" msgid "" "lpadmin: System V interface scripts are no longer supported for security " "reasons." msgstr "" msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: no s'ha pogut afegir una impressora a la classe:\n" " Heu d'especificar primer un nom d'impressora." #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "lpadmin: no s'ha pogut connectar al servidor: %s" msgid "lpadmin: Unable to create temporary file" msgstr "lpadmin: no s'ha pogut crear el fitxer temporal" msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" "lpadmin: no s'ha pogut esborrar l'opció:\n" " Heu d'especificar primer un nom d'impressora." #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" "lpadmin: no es pot esborrar una impressora de la classe:\n" " Heu d'especificar primer un nom d'impressora." msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" "lpadmin: no es pot establir les opcions de la impressora:\n" " Heu d'especificar primer un nom d'impressora." #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "lpadmin: l'opció allow/deny «%s» és desconeguda." #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "lpadmin: l'argument «%s» és desconegut." #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "lpadmin: l'opció «%c» és desconeguda." msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" msgid "lpadmin: Warning - content type list ignored." msgstr "lpadmin: avís - s'ignora el contingut de la llista de tipus." msgid "lpc> " msgstr "lpc> " msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" "lpinfo: s'esperava una cadena d'ID de dispositiu 1284 després de «--device-" "id»." msgid "lpinfo: Expected language after \"--language\"." msgstr "lpinfo: s'esperava un idioma després de «--language»." msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "lpinfo: s'esperava una marca i model després de «--make-and-model»." msgid "lpinfo: Expected product string after \"--product\"." msgstr "lpinfo: s'esperava una cadena de producte després de «--product!»." msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" "lpinfo: s'esperava una llista d'esquemes després de l'opció «--exclude-" "schemes»." msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" "lpinfo: s'esperava una llista d'esquemes després de l'opció «--include-" "schemes»." msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "lpinfo: s'esperava un temps d'espera després de «--timeout»." #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "lpmove: no s'ha pogut connectar al servidor: %s" #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "lpmove: l'argument «%s» és desconegut." msgid "lpoptions: No printers." msgstr "lpoptions: no hi ha cap impressora." #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "lpoptions: no s'ha pogut afegir la impressora o la instància: %s" #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "lpoptions: no s'ha pogut obtenir el fitxer PPD de %s: %s" #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "lpoptions: no s'ha pogut obrir el fitxer PPD per %s." msgid "lpoptions: Unknown printer or class." msgstr "lpoptions: la impressora o la classe són desconegudes." #, c-format msgid "" "lpstat: error - %s environment variable names non-existent destination \"%s" "\"." msgstr "" "lpstat: error - la variable d'entorn %s esmenta el destí «%s» que no " "existeix." #. TRANSLATORS: Amount of Material msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type msgid "material-type" msgstr "" #. TRANSLATORS: ABS msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials msgid "materials-col" msgstr "" #. TRANSLATORS: Media msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media msgid "media-col" msgstr "" #. TRANSLATORS: Media Color msgid "media-color" msgstr "" #. TRANSLATORS: Black msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet msgid "media-color.violet" msgstr "" #. TRANSLATORS: White msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info msgid "media-info" msgstr "" #. TRANSLATORS: Force Media msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media msgid "media-recycled" msgstr "" #. TRANSLATORS: None msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions msgid "media-size" msgstr "" #. TRANSLATORS: Media Name msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source msgid "media-source" msgstr "" #. TRANSLATORS: Alternate msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "media-source.left" msgstr "" #. TRANSLATORS: Main msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side msgid "media-source.side" msgstr "" #. TRANSLATORS: Top msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k msgid "media.roc_8k_10.75x15.5in" msgstr "" #, c-format msgid "members of class %s:" msgstr "membres de la classe %s:" #. TRANSLATORS: Multiple Document Handling msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job msgid "multiple-operation-time-out-action.process-job" msgstr "" msgid "no entries" msgstr "no hi ha cap entrada" msgid "no system default destination" msgstr "no hi ha cap destí per defecte" #. TRANSLATORS: Noise Removal msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events msgid "notify-events" msgstr "" msgid "notify-events not specified." msgstr "no s'ha especificat cap notify-events." #. TRANSLATORS: Document Completed msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient msgid "notify-recipient-uri" msgstr "" #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "L'URI de notify-recipient-uri «%s» ja s'ha fet servir." #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "L'URI de notify-recipient-uri «%s» fa servir un esquema desconegut." #. TRANSLATORS: Notify Sequence Numbers msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution msgid "pclm-source-resolution" msgstr "" msgid "pending" msgstr "pendent" #. TRANSLATORS: Platform Shape msgid "platform-shape" msgstr "" #. TRANSLATORS: Round msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String msgid "post-dial-string" msgstr "" #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "ppdc: s'afegeix el directori inclòs «%s»." #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "ppdc: s'afegeix/actualitza el text de l'UI des de %s." #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "ppdc: valor booleà incorrecte (%s) a la línia %d de %s." #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "ppdc: l'atribut del tipus de lletra és incorrecte: %s" #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "ppdc: el nom de resolució «%s» de la línia %d de %s és incorrecte." #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "ppdc: la paraula clau d'estat %s de la línia %d de %s és incorrecta." #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" "ppdc: la variable de substitució ($%c) de la línia %d de %s és incorrecta." #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "ppdc: s'ha trobat una elecció a la línia %d de %s sense cap opció." #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "ppdc: #po duplicat per l'idioma %s a la línia %d de %s." #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "ppdc: s'esperava una definició de filtre a la línia %d de %s." #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "ppdc: s'esperava un nom de programa a la línia %d de %s." #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "ppdc: s'esperava un valor booleà a la línia %d de %s." #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" "ppdc: s'esperava un joc de caràcters després de Font a la línia %d de %s." #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "ppdc: s'esperava un codi d'elecció a la línia %d de %s." #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "ppdc: s'esperava un nom/text d'elecció a la línia %d de %s." #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" "ppdc: s'esperava un ordre de colors per ColorModel a la línia %d de %s." #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" "ppdc: s'esperava un espai de colors per ColorModel a la línia %d de %s." #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "ppdc: s'esperava una compressió per ColorModel a la línia %d de %s." #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" "ppdc: s'esperava una cadena de restriccions per UIConstraints a la línia %d " "de %s." #, c-format msgid "" "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" "ppdc: s'esperava una paraula clau de tipus de controlador després de " "DriverType a la línia %d de %s." #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" "ppdc: s'esperava un tipus de dúplex després de Duplex a la línia %d de %s." #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "ppdc: s'esperava una codificació després de Font a la línia %d de %s." #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" "ppdc: s'esperava un nom de fitxer després de #po %s a la línia %d de %s." #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "ppdc: s'esperava un nom/text de grup a la línia %d de %s." #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "ppdc: s'esperava un nom de fitxer d'inclusió a la línia %d de %s." #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "ppdc: s'esperava un enter a la línia %d de %s." #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "ppdc: s'esperava un idioma després de #po a la línia %d de %s." #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "ppdc: s'esperava un nom després de %s a la línia %d de %s." #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "ppdc: s'esperava un nom després de FileName a la línia %d de %s." #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "ppdc: s'esperava un nom després de Font a la línia %d de %s." #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "ppdc: s'esperava un nom després de Manufacturer a la línia %d de %s." #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "ppdc: s'esperava un nom després de MediaSize a la línia %d de %s." #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "ppdc: s'esperava un nom després de ModelName a la línia %d de %s." #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "ppdc: s'esperava un nom després de PCFileName a la línia %d de %s." #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "ppdc: s'esperava un nom/text després de %s a la línia %d de %s." #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" "ppdc: s'esperava un nom/text després d'Installable a la línia %d de %s." #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" "ppdc: s'esperava un nom/text després de Resolution a la línia %d de %s." #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" "ppdc: s'esperava una combinació de nom/text per ColorModel a la línia %d de " "%s." #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "ppdc: s'esperava un nom/text d'opció a la línia %d de %s." #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "ppdc: s'esperava una secció d'opció a la línia %d de %s." #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "ppdc: s'esperava un tipus d'opció a la línia %d de %s." #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" "ppdc: s'esperava un camp de substitució després de Resolution a la línia %d " "de %s." #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "ppdc: s'esperava una cadena entre cometes dobles a la línia %d de %s." #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "ppdc: s'esperava un número real a la línia %d de %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" "ppdc: s'esperava una resolució/tipus de mitjà després de ColorProfile a la " "línia %d de %s." #, c-format msgid "" "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d " "of %s." msgstr "" "ppdc: s'esperava una resolució/tipus de mitjà després de SimpleColorProfile " "a la línia %d de %s." #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "ppdc: s'esperava un selector després de %s a la línia %d de %s." #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "ppdc: s'esperava un estat després de Font a la línia %d de %s." #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "ppdc: s'esperava una cadena després de Copyright a la línia %d de %s." #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "ppdc: s'esperava una cadena després de Version a la línia %d de %s." #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "ppdc: s'esperava dos noms d'opció a la línia %d de %s." #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "ppdc: s'esperava un valor després de %s a la línia %d de %s." #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "ppdc: s'esperava una versió després de Font a la línia %d de %s." #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "ppdc: el nom de fitxer #include/#po «%s» no és vàlid." #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "ppdc: el cost del filtre no és vàlid a la línia %d de %s." #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "ppdc: el tipus MIME buit no és vàlid pel filtre a la línia %d de %s." #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" "ppdc: el nom de programa buit no és vàlid pel filtre a la línia %d de %s." #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "ppdc: la secció d'opció «%s» no és vàlida a la línia %d de %s." #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "ppdc: el tipus d'opció «%s» no és vàlid a la línia %d de %s." #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "ppdc: s'està carregant el fitxer d'informació del controlador «%s»." #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "ppdc: s'està carregant l'idioma «%s»." #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "ppdc: s'està carregant els missatges des de «%s»." #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "ppdc: falta un #endif al final de «%s»." #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "ppdc: falta un #if a la línia %d de %s." #, c-format msgid "" "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" "oodc: es necessita un msgid abans de la cadena per traduir a la línia %d de " "%s." #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "ppdc: no s'ha donat el catàleg de missatges per l'idioma %s." #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" "ppdc: l'opció %s està definida a dos grups diferents a la línia %d de %s." #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" "ppdc: l'opció %s està redefinida amb un tipus diferent a la línia %d de %s." #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "ppdc: l'opció de restricció ha d'incloure *nom a la línia %d de %s." #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "ppdc: hi ha massa #if imbricats a la línia %d de %s." #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "ppdc: no s'ha pogut crear el fitxer PPD «%s» - %s." #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "ppdc: no s'ha pogut crear el directori de sortida %s: %s" #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "ppdc: no s'ha pogut crear els conductes de sortida: %s" #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "ppdc: no s'ha pogut executar cupstestppd: %s" #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "ppdc: no s'ha pogut trobar el fitxer #po %s a la línia %d de %s." #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" "ppdc: no s'ha pogut trobar el fitxer d'inclusió «%s» a la línia %d de %s." #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "ppdc: no s'ha pogut trobar la localització de «%s» - %s" #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "ppdc: no s'ha pogut carregar el fitxer de localització «%s» - %s" #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "ppdc: no s'ha pogut obrir %s: %s" #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "ppdc: la variable (%s) de la línia %d de %s no està definida." #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "ppdc: hi ha un text inesperat a la línia %d de %s." #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "ppdc: el tipus de controlador %s de la línia %d de %s no és conegut." #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "ppdc: el tipus de dúplex «%s» de la línia %d de %s no és conegut." #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "ppdc: la mida del mitjà «%s» de la línia %d de %s no és coneguda." #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "ppdc: el format del catàleg de missatges de «%s» no és conegut." #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "ppdc: el testimoni «%s» de la línia %d de %s no és conegut." #, c-format msgid "" "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" "ppdc: els caràcters finals del número real «%s» de la línia %d de %s no són " "coneguts." #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" "ppdc: la cadena que comença per %c de la línia %d de %s no està acabada." #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "ppdc: avís - se superposa el nom del fitxer «%s»." #, c-format msgid "ppdc: Writing %s." msgstr "ppdc: s'escriu %s." #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "ppdc: s'escriuen els fitxers PPD a la carpeta «%s»." #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "ppdmerge: LanguageVersion «%s» incorrecte a %s." #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "ppdmerge: s'ignora el fitxer PPD %s." #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "ppdmerge: no s'ha pogut fer la còpia de seguretat %s a %s- %s" #. TRANSLATORS: Pre-dial String msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim msgid "print-base.brim" msgstr "" #. TRANSLATORS: None msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality msgid "print-quality" msgstr "" #. TRANSLATORS: Draft msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal msgid "print-quality.4" msgstr "" #. TRANSLATORS: High msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material msgid "print-supports.material" msgstr "" #. TRANSLATORS: None msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard msgid "print-supports.standard" msgstr "" #, c-format msgid "printer %s disabled since %s -" msgstr "la impressora %s està deshabilitada des de %s -" #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #, c-format msgid "printer %s is idle. enabled since %s" msgstr "la impressora %s està inactiva. Està activada des de %s" #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "la impressora %s està imprimint %s-%d. Està habilitada des de %s" #, c-format msgid "printer %s/%s disabled since %s -" msgstr "la impressora %s/%s està deshabilitada des de %s -" #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "la impressora %s/%s està inactiva. Està activada des de %s" #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "la impressora %s/%s està imprimint %s-%d. Està activada des de %s" #. TRANSLATORS: Printer Kind msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime msgid "printer-up-time" msgstr "" msgid "processing" msgstr "s'està processant" #. TRANSLATORS: Proof Print msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "punching-reference-edge.top" msgstr "" #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "l'identificador de la petició és %s-%d (%d fitxer(s))" msgid "request-id uses indefinite length" msgstr "la request-id fa servir una longitud indefinida" #. TRANSLATORS: Requested Attributes msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition msgid "save-disposition" msgstr "" #. TRANSLATORS: None msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info msgid "save-info" msgstr "" #. TRANSLATORS: Save Location msgid "save-location" msgstr "" #. TRANSLATORS: Save Name msgid "save-name" msgstr "" msgid "scheduler is not running" msgstr "el programador de tasques no s'està executant" msgid "scheduler is running" msgstr "el programador de tasques s'està executant" #. TRANSLATORS: Separator Sheets msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing msgid "sides" msgstr "" #. TRANSLATORS: Off msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) msgid "sides.two-sided-short-edge" msgstr "" #, c-format msgid "stat of %s failed: %s" msgstr "stat de %s ha fallat: %s" msgid "status\t\tShow status of daemon and queue." msgstr "status\t\tmostra l'estat del dimoni i la cua." #. TRANSLATORS: Status Message msgid "status-message" msgstr "" #. TRANSLATORS: Staple msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "stitching-reference-edge.top" msgstr "" msgid "stopped" msgstr "aturat" #. TRANSLATORS: Subject msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner msgid "subscription-privacy-scope.owner" msgstr "" #, c-format msgid "system default destination: %s" msgstr "destí per defecte del sistema: %s" #, c-format msgid "system default destination: %s/%s" msgstr "destí per defecte del sistema: %s/%s" #. TRANSLATORS: T33 Subaddress msgid "t33-subaddress" msgstr "T33 Subaddress" #. TRANSLATORS: To Name msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page msgid "trimming-when.after-sheets" msgstr "" msgid "unknown" msgstr "desconegut" msgid "untitled" msgstr "sense títol" msgid "variable-bindings uses indefinite length" msgstr "La variable-bindings fa servir una longitud indefinida" #. TRANSLATORS: X Accuracy msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset msgid "z-offset" msgstr "" msgid "{service_domain} Domain name" msgstr "" msgid "{service_hostname} Fully-qualified domain name" msgstr "" msgid "{service_name} Service instance name" msgstr "" msgid "{service_port} Port number" msgstr "" msgid "{service_regtype} DNS-SD registration type" msgstr "" msgid "{service_scheme} URI scheme" msgstr "" msgid "{service_uri} URI" msgstr "" msgid "{txt_*} Value of TXT record key" msgstr "" msgid "{} URI" msgstr "" msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" #~ msgid "A Samba password is required to export printer drivers" #~ msgstr "" #~ "Necessiteu una contrasenya de Samba per exportar els controladors " #~ "d'impressora" #~ msgid "A Samba username is required to export printer drivers" #~ msgstr "" #~ "Necessiteu una nom d'usuari de Samba per exportar els controladors " #~ "d'impressora" #~ msgid "Dymo" #~ msgstr "Dymo" #~ msgid "Export Printers to Samba" #~ msgstr "Exportar les impressores al Samba" #~ msgid "cupsctl: Cannot set Listen or Port directly." #~ msgstr "cupsctl: no es pot establir Listen o Port directament." #~ msgid "lpadmin: Unable to open PPD file \"%s\" - %s" #~ msgstr "lpadmin: no s'ha pogut obrir el fitxer PPD «%s» - %s" cups-2.4.7/locale/cups.strings0000644000175000017500000122114114502571342016207 0ustar zdohnalzdohnal"\t\t(all)" = "\t\t(all)"; "\t\t(none)" = "\t\t(none)"; "\t%d entries" = "\t%d entries"; "\t%s" = "\t%s"; "\tAfter fault: continue" = "\tAfter fault: continue"; "\tAlerts: %s" = "\tAlerts: %s"; "\tBanner required" = "\tBanner required"; "\tCharset sets:" = "\tCharset sets:"; "\tConnection: direct" = "\tConnection: direct"; "\tConnection: remote" = "\tConnection: remote"; "\tContent types: any" = "\tContent types: any"; "\tDefault page size:" = "\tDefault page size:"; "\tDefault pitch:" = "\tDefault pitch:"; "\tDefault port settings:" = "\tDefault port settings:"; "\tDescription: %s" = "\tDescription: %s"; "\tForm mounted:" = "\tForm mounted:"; "\tForms allowed:" = "\tForms allowed:"; "\tInterface: %s.ppd" = "\tInterface: %s.ppd"; "\tInterface: %s/ppd/%s.ppd" = "\tInterface: %s/ppd/%s.ppd"; "\tLocation: %s" = "\tLocation: %s"; "\tOn fault: no alert" = "\tOn fault: no alert"; "\tPrinter types: unknown" = "\tPrinter types: unknown"; "\tStatus: %s" = "\tStatus: %s"; "\tUsers allowed:" = "\tUsers allowed:"; "\tUsers denied:" = "\tUsers denied:"; "\tdaemon present" = "\tdaemon present"; "\tno entries" = "\tno entries"; "\tprinter is on device '%s' speed -1" = "\tprinter is on device ‘%s’ speed -1"; "\tprinting is disabled" = "\tprinting is disabled"; "\tprinting is enabled" = "\tprinting is enabled"; "\tqueued for %s" = "\tqueued for %s"; "\tqueuing is disabled" = "\tqueuing is disabled"; "\tqueuing is enabled" = "\tqueuing is enabled"; "\treason unknown" = "\treason unknown"; "\n DETAILED CONFORMANCE TEST RESULTS" = "\n DETAILED CONFORMANCE TEST RESULTS"; " REF: Page 15, section 3.1." = " REF: Page 15, section 3.1."; " REF: Page 15, section 3.2." = " REF: Page 15, section 3.2."; " REF: Page 19, section 3.3." = " REF: Page 19, section 3.3."; " REF: Page 20, section 3.4." = " REF: Page 20, section 3.4."; " REF: Page 27, section 3.5." = " REF: Page 27, section 3.5."; " REF: Page 42, section 5.2." = " REF: Page 42, section 5.2."; " REF: Pages 16-17, section 3.2." = " REF: Pages 16-17, section 3.2."; " REF: Pages 42-45, section 5.2." = " REF: Pages 42-45, section 5.2."; " REF: Pages 45-46, section 5.2." = " REF: Pages 45-46, section 5.2."; " REF: Pages 48-49, section 5.2." = " REF: Pages 48-49, section 5.2."; " REF: Pages 52-54, section 5.2." = " REF: Pages 52-54, section 5.2."; " %-39.39s %.0f bytes" = " %-39.39s %.0f bytes"; " PASS Default%s" = " PASS Default%s"; " PASS DefaultImageableArea" = " PASS DefaultImageableArea"; " PASS DefaultPaperDimension" = " PASS DefaultPaperDimension"; " PASS FileVersion" = " PASS FileVersion"; " PASS FormatVersion" = " PASS FormatVersion"; " PASS LanguageEncoding" = " PASS LanguageEncoding"; " PASS LanguageVersion" = " PASS LanguageVersion"; " PASS Manufacturer" = " PASS Manufacturer"; " PASS ModelName" = " PASS ModelName"; " PASS NickName" = " PASS NickName"; " PASS PCFileName" = " PASS PCFileName"; " PASS PSVersion" = " PASS PSVersion"; " PASS PageRegion" = " PASS PageRegion"; " PASS PageSize" = " PASS PageSize"; " PASS Product" = " PASS Product"; " PASS ShortNickName" = " PASS ShortNickName"; " WARN %s has no corresponding options." = " WARN %s has no corresponding options."; " WARN %s shares a common prefix with %s\n REF: Page 15, section 3.2." = " WARN %s shares a common prefix with %s\n REF: Page 15, section 3.2."; " WARN Duplex option keyword %s may not work as expected and should be named Duplex.\n REF: Page 122, section 5.17" = " WARN Duplex option keyword %s may not work as expected and should be named Duplex.\n REF: Page 122, section 5.17"; " WARN File contains a mix of CR, LF, and CR LF line endings." = " WARN File contains a mix of CR, LF, and CR LF line endings."; " WARN LanguageEncoding required by PPD 4.3 spec.\n REF: Pages 56-57, section 5.3." = " WARN LanguageEncoding required by PPD 4.3 spec.\n REF: Pages 56-57, section 5.3."; " WARN Line %d only contains whitespace." = " WARN Line %d only contains whitespace."; " WARN Manufacturer required by PPD 4.3 spec.\n REF: Pages 58-59, section 5.3." = " WARN Manufacturer required by PPD 4.3 spec.\n REF: Pages 58-59, section 5.3."; " WARN Non-Windows PPD files should use lines ending with only LF, not CR LF." = " WARN Non-Windows PPD files should use lines ending with only LF, not CR LF."; " WARN Obsolete PPD version %.1f.\n REF: Page 42, section 5.2." = " WARN Obsolete PPD version %.1f.\n REF: Page 42, section 5.2."; " WARN PCFileName longer than 8.3 in violation of PPD spec.\n REF: Pages 61-62, section 5.3." = " WARN PCFileName longer than 8.3 in violation of PPD spec.\n REF: Pages 61-62, section 5.3."; " WARN PCFileName should contain a unique filename.\n REF: Pages 61-62, section 5.3." = " WARN PCFileName should contain a unique filename.\n REF: Pages 61-62, section 5.3."; " WARN Protocols contains PJL but JCL attributes are not set.\n REF: Pages 78-79, section 5.7." = " WARN Protocols contains PJL but JCL attributes are not set.\n REF: Pages 78-79, section 5.7."; " WARN Protocols contains both PJL and BCP; expected TBCP.\n REF: Pages 78-79, section 5.7." = " WARN Protocols contains both PJL and BCP; expected TBCP.\n REF: Pages 78-79, section 5.7."; " WARN ShortNickName required by PPD 4.3 spec.\n REF: Pages 64-65, section 5.3." = " WARN ShortNickName required by PPD 4.3 spec.\n REF: Pages 64-65, section 5.3."; " %s \"%s %s\" conflicts with \"%s %s\"\n (constraint=\"%s %s %s %s\")." = " %s “%s %s” conflicts with “%s %s”\n (constraint=“%s %s %s %s”)."; " %s %s %s does not exist." = " %s %s %s does not exist."; " %s %s file \"%s\" has the wrong capitalization." = " %s %s file “%s” has the wrong capitalization."; " %s Bad %s choice %s.\n REF: Page 122, section 5.17" = " %s Bad %s choice %s.\n REF: Page 122, section 5.17"; " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." = " %s Bad UTF-8 “%s” translation string for option %s, choice %s."; " %s Bad UTF-8 \"%s\" translation string for option %s." = " %s Bad UTF-8 “%s” translation string for option %s."; " %s Bad cupsFilter value \"%s\"." = " %s Bad cupsFilter value “%s”."; " %s Bad cupsFilter2 value \"%s\"." = " %s Bad cupsFilter2 value “%s”."; " %s Bad cupsICCProfile %s." = " %s Bad cupsICCProfile %s."; " %s Bad cupsPreFilter value \"%s\"." = " %s Bad cupsPreFilter value “%s”."; " %s Bad cupsUIConstraints %s: \"%s\"" = " %s Bad cupsUIConstraints %s: “%s”"; " %s Bad language \"%s\"." = " %s Bad language “%s”."; " %s Bad permissions on %s file \"%s\"." = " %s Bad permissions on %s file “%s”."; " %s Bad spelling of %s - should be %s." = " %s Bad spelling of %s - should be %s."; " %s Cannot provide both APScanAppPath and APScanAppBundleID." = " %s Cannot provide both APScanAppPath and APScanAppBundleID."; " %s Default choices conflicting." = " %s Default choices conflicting."; " %s Empty cupsUIConstraints %s" = " %s Empty cupsUIConstraints %s"; " %s Missing \"%s\" translation string for option %s, choice %s." = " %s Missing “%s” translation string for option %s, choice %s."; " %s Missing \"%s\" translation string for option %s." = " %s Missing “%s” translation string for option %s."; " %s Missing %s file \"%s\"." = " %s Missing %s file “%s”."; " %s Missing REQUIRED PageRegion option.\n REF: Page 100, section 5.14." = " %s Missing REQUIRED PageRegion option.\n REF: Page 100, section 5.14."; " %s Missing REQUIRED PageSize option.\n REF: Page 99, section 5.14." = " %s Missing REQUIRED PageSize option.\n REF: Page 99, section 5.14."; " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." = " %s Missing choice *%s %s in UIConstraints “*%s %s *%s %s”."; " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" = " %s Missing choice *%s %s in cupsUIConstraints %s: “%s”"; " %s Missing cupsUIResolver %s" = " %s Missing cupsUIResolver %s"; " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." = " %s Missing option %s in UIConstraints “*%s %s *%s %s”."; " %s Missing option %s in cupsUIConstraints %s: \"%s\"" = " %s Missing option %s in cupsUIConstraints %s: “%s”"; " %s No base translation \"%s\" is included in file." = " %s No base translation “%s” is included in file."; " %s REQUIRED %s does not define choice None.\n REF: Page 122, section 5.17" = " %s REQUIRED %s does not define choice None.\n REF: Page 122, section 5.17"; " %s Size \"%s\" defined for %s but not for %s." = " %s Size “%s” defined for %s but not for %s."; " %s Size \"%s\" has unexpected dimensions (%gx%g)." = " %s Size “%s” has unexpected dimensions (%gx%g)."; " %s Size \"%s\" should be \"%s\"." = " %s Size “%s” should be “%s”."; " %s Size \"%s\" should be the Adobe standard name \"%s\"." = " %s Size “%s” should be the Adobe standard name “%s”."; " %s cupsICCProfile %s hash value collides with %s." = " %s cupsICCProfile %s hash value collides with %s."; " %s cupsUIResolver %s causes a loop." = " %s cupsUIResolver %s causes a loop."; " %s cupsUIResolver %s does not list at least two different options." = " %s cupsUIResolver %s does not list at least two different options."; " **FAIL** %s must be 1284DeviceID\n REF: Page 72, section 5.5" = " **FAIL** %s must be 1284DeviceID\n REF: Page 72, section 5.5"; " **FAIL** Bad Default%s %s\n REF: Page 40, section 4.5." = " **FAIL** Bad Default%s %s\n REF: Page 40, section 4.5."; " **FAIL** Bad DefaultImageableArea %s\n REF: Page 102, section 5.15." = " **FAIL** Bad DefaultImageableArea %s\n REF: Page 102, section 5.15."; " **FAIL** Bad DefaultPaperDimension %s\n REF: Page 103, section 5.15." = " **FAIL** Bad DefaultPaperDimension %s\n REF: Page 103, section 5.15."; " **FAIL** Bad FileVersion \"%s\"\n REF: Page 56, section 5.3." = " **FAIL** Bad FileVersion “%s”\n REF: Page 56, section 5.3."; " **FAIL** Bad FormatVersion \"%s\"\n REF: Page 56, section 5.3." = " **FAIL** Bad FormatVersion “%s”\n REF: Page 56, section 5.3."; " **FAIL** Bad JobPatchFile attribute in file\n REF: Page 24, section 3.4." = " **FAIL** Bad JobPatchFile attribute in file\n REF: Page 24, section 3.4."; " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." = " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1."; " **FAIL** Bad LanguageVersion %s - must be English." = " **FAIL** Bad LanguageVersion %s - must be English."; " **FAIL** Bad Manufacturer (should be \"%s\")\n REF: Page 211, table D.1." = " **FAIL** Bad Manufacturer (should be “%s”)\n REF: Page 211, table D.1."; " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n REF: Pages 59-60, section 5.3." = " **FAIL** Bad ModelName - “%c” not allowed in string.\n REF: Pages 59-60, section 5.3."; " **FAIL** Bad PSVersion - not \"(string) int\".\n REF: Pages 62-64, section 5.3." = " **FAIL** Bad PSVersion - not “(string) int”.\n REF: Pages 62-64, section 5.3."; " **FAIL** Bad Product - not \"(string)\".\n REF: Page 62, section 5.3." = " **FAIL** Bad Product - not “(string)”.\n REF: Page 62, section 5.3."; " **FAIL** Bad ShortNickName - longer than 31 chars.\n REF: Pages 64-65, section 5.3." = " **FAIL** Bad ShortNickName - longer than 31 chars.\n REF: Pages 64-65, section 5.3."; " **FAIL** Bad option %s choice %s\n REF: Page 84, section 5.9" = " **FAIL** Bad option %s choice %s\n REF: Page 84, section 5.9"; " **FAIL** Default option code cannot be interpreted: %s" = " **FAIL** Default option code cannot be interpreted: %s"; " **FAIL** Default translation string for option %s choice %s contains 8-bit characters." = " **FAIL** Default translation string for option %s choice %s contains 8-bit characters."; " **FAIL** Default translation string for option %s contains 8-bit characters." = " **FAIL** Default translation string for option %s contains 8-bit characters."; " **FAIL** Group names %s and %s differ only by case." = " **FAIL** Group names %s and %s differ only by case."; " **FAIL** Multiple occurrences of option %s choice name %s." = " **FAIL** Multiple occurrences of option %s choice name %s."; " **FAIL** Option %s choice names %s and %s differ only by case." = " **FAIL** Option %s choice names %s and %s differ only by case."; " **FAIL** Option names %s and %s differ only by case." = " **FAIL** Option names %s and %s differ only by case."; " **FAIL** REQUIRED Default%s\n REF: Page 40, section 4.5." = " **FAIL** REQUIRED Default%s\n REF: Page 40, section 4.5."; " **FAIL** REQUIRED DefaultImageableArea\n REF: Page 102, section 5.15." = " **FAIL** REQUIRED DefaultImageableArea\n REF: Page 102, section 5.15."; " **FAIL** REQUIRED DefaultPaperDimension\n REF: Page 103, section 5.15." = " **FAIL** REQUIRED DefaultPaperDimension\n REF: Page 103, section 5.15."; " **FAIL** REQUIRED FileVersion\n REF: Page 56, section 5.3." = " **FAIL** REQUIRED FileVersion\n REF: Page 56, section 5.3."; " **FAIL** REQUIRED FormatVersion\n REF: Page 56, section 5.3." = " **FAIL** REQUIRED FormatVersion\n REF: Page 56, section 5.3."; " **FAIL** REQUIRED ImageableArea for PageSize %s\n REF: Page 41, section 5.\n REF: Page 102, section 5.15." = " **FAIL** REQUIRED ImageableArea for PageSize %s\n REF: Page 41, section 5.\n REF: Page 102, section 5.15."; " **FAIL** REQUIRED LanguageEncoding\n REF: Pages 56-57, section 5.3." = " **FAIL** REQUIRED LanguageEncoding\n REF: Pages 56-57, section 5.3."; " **FAIL** REQUIRED LanguageVersion\n REF: Pages 57-58, section 5.3." = " **FAIL** REQUIRED LanguageVersion\n REF: Pages 57-58, section 5.3."; " **FAIL** REQUIRED Manufacturer\n REF: Pages 58-59, section 5.3." = " **FAIL** REQUIRED Manufacturer\n REF: Pages 58-59, section 5.3."; " **FAIL** REQUIRED ModelName\n REF: Pages 59-60, section 5.3." = " **FAIL** REQUIRED ModelName\n REF: Pages 59-60, section 5.3."; " **FAIL** REQUIRED NickName\n REF: Page 60, section 5.3." = " **FAIL** REQUIRED NickName\n REF: Page 60, section 5.3."; " **FAIL** REQUIRED PCFileName\n REF: Pages 61-62, section 5.3." = " **FAIL** REQUIRED PCFileName\n REF: Pages 61-62, section 5.3."; " **FAIL** REQUIRED PSVersion\n REF: Pages 62-64, section 5.3." = " **FAIL** REQUIRED PSVersion\n REF: Pages 62-64, section 5.3."; " **FAIL** REQUIRED PageRegion\n REF: Page 100, section 5.14." = " **FAIL** REQUIRED PageRegion\n REF: Page 100, section 5.14."; " **FAIL** REQUIRED PageSize\n REF: Page 41, section 5.\n REF: Page 99, section 5.14." = " **FAIL** REQUIRED PageSize\n REF: Page 41, section 5.\n REF: Page 99, section 5.14."; " **FAIL** REQUIRED PageSize\n REF: Pages 99-100, section 5.14." = " **FAIL** REQUIRED PageSize\n REF: Pages 99-100, section 5.14."; " **FAIL** REQUIRED PaperDimension for PageSize %s\n REF: Page 41, section 5.\n REF: Page 103, section 5.15." = " **FAIL** REQUIRED PaperDimension for PageSize %s\n REF: Page 41, section 5.\n REF: Page 103, section 5.15."; " **FAIL** REQUIRED Product\n REF: Page 62, section 5.3." = " **FAIL** REQUIRED Product\n REF: Page 62, section 5.3."; " **FAIL** REQUIRED ShortNickName\n REF: Page 64-65, section 5.3." = " **FAIL** REQUIRED ShortNickName\n REF: Page 64-65, section 5.3."; " **FAIL** Unable to open PPD file - %s on line %d." = " **FAIL** Unable to open PPD file - %s on line %d."; " %d ERRORS FOUND" = " %d ERRORS FOUND"; " NO ERRORS FOUND" = " NO ERRORS FOUND"; " --cr End lines with CR (Mac OS 9)." = " --cr End lines with CR (Mac OS 9)."; " --crlf End lines with CR + LF (Windows)." = " --crlf End lines with CR + LF (Windows)."; " --lf End lines with LF (UNIX/Linux/macOS)." = " --lf End lines with LF (UNIX/Linux/macOS)."; " --list-filters List filters that will be used." = " --list-filters List filters that will be used."; " -D Remove the input file when finished." = " -D Remove the input file when finished."; " -D name=value Set named variable to value." = " -D name=value Set named variable to value."; " -I include-dir Add include directory to search path." = " -I include-dir Add include directory to search path."; " -P filename.ppd Set PPD file." = " -P filename.ppd Set PPD file."; " -U username Specify username." = " -U username Specify username."; " -c catalog.po Load the specified message catalog." = " -c catalog.po Load the specified message catalog."; " -c cups-files.conf Set cups-files.conf file to use." = " -c cups-files.conf Set cups-files.conf file to use."; " -d output-dir Specify the output directory." = " -d output-dir Specify the output directory."; " -d printer Use the named printer." = " -d printer Use the named printer."; " -e Use every filter from the PPD file." = " -e Use every filter from the PPD file."; " -i mime/type Set input MIME type (otherwise auto-typed)." = " -i mime/type Set input MIME type (otherwise auto-typed)."; " -j job-id[,N] Filter file N from the specified job (default is file 1)." = " -j job-id[,N] Filter file N from the specified job (default is file 1)."; " -l lang[,lang,...] Specify the output language(s) (locale)." = " -l lang[,lang,…] Specify the output language(s) (locale)."; " -m Use the ModelName value as the filename." = " -m Use the ModelName value as the filename."; " -m mime/type Set output MIME type (otherwise application/pdf)." = " -m mime/type Set output MIME type (otherwise application/pdf)."; " -n copies Set number of copies." = " -n copies Set number of copies."; " -o filename.drv Set driver information file (otherwise ppdi.drv)." = " -o filename.drv Set driver information file (otherwise ppdi.drv)."; " -o filename.ppd[.gz] Set output file (otherwise stdout)." = " -o filename.ppd[.gz] Set output file (otherwise stdout)."; " -o name=value Set option(s)." = " -o name=value Set option(s)."; " -p filename.ppd Set PPD file." = " -p filename.ppd Set PPD file."; " -t Test PPDs instead of generating them." = " -t Test PPDs instead of generating them."; " -t title Set title." = " -t title Set title."; " -u Remove the PPD file when finished." = " -u Remove the PPD file when finished."; " -v Be verbose." = " -v Be verbose."; " -z Compress PPD files using GNU zip." = " -z Compress PPD files using GNU zip."; " FAIL" = " FAIL"; " PASS" = " PASS"; "! expression Unary NOT of expression" = "! expression Unary NOT of expression"; "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." = "“%s”: Bad URI value “%s” - %s (RFC 8011 section 5.1.6)."; "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." = "“%s”: Bad URI value “%s” - bad length %d (RFC 8011 section 5.1.6)."; "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." = "“%s”: Bad attribute name - bad length %d (RFC 8011 section 5.1.4)."; "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." = "“%s”: Bad attribute name - invalid character (RFC 8011 section 5.1.4)."; "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." = "“%s”: Bad boolean value %d (RFC 8011 section 5.1.21)."; "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." = "“%s”: Bad charset value “%s” - bad characters (RFC 8011 section 5.1.8)."; "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." = "“%s”: Bad charset value “%s” - bad length %d (RFC 8011 section 5.1.8)."; "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime UTC sign ‘%c’ (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime day %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime hours %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime minutes %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime month %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." = "“%s”: Bad dateTime seconds %u (RFC 8011 section 5.1.15)."; "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." = "“%s”: Bad enum value %d - out of range (RFC 8011 section 5.1.5)."; "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." = "“%s”: Bad keyword value “%s” - bad length %d (RFC 8011 section 5.1.4)."; "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section 5.1.4)." = "“%s”: Bad keyword value “%s” - invalid character (RFC 8011 section 5.1.4)."; "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section 5.1.10)." = "“%s”: Bad mimeMediaType value “%s” - bad characters (RFC 8011 section 5.1.10)."; "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section 5.1.10)." = "“%s”: Bad mimeMediaType value “%s” - bad length %d (RFC 8011 section 5.1.10)."; "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." = "“%s”: Bad name value “%s” - bad UTF-8 sequence (RFC 8011 section 5.1.3)."; "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)." = "“%s”: Bad name value “%s” - bad control character (PWG 5100.14 section 8.1)."; "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." = "“%s”: Bad name value “%s” - bad length %d (RFC 8011 section 5.1.3)."; "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section 5.1.9)." = "“%s”: Bad naturalLanguage value “%s” - bad characters (RFC 8011 section 5.1.9)."; "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section 5.1.9)." = "“%s”: Bad naturalLanguage value “%s” - bad length %d (RFC 8011 section 5.1.9)."; "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." = "“%s”: Bad octetString value - bad length %d (RFC 8011 section 5.1.20)."; "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 section 5.1.14)." = "“%s”: Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 section 5.1.14)."; "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section 5.1.16)." = "“%s”: Bad resolution value %dx%d%s - bad units value (RFC 8011 section 5.1.16)."; "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be positive (RFC 8011 section 5.1.16)." = "“%s”: Bad resolution value %dx%d%s - cross feed resolution must be positive (RFC 8011 section 5.1.16)."; "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC 8011 section 5.1.16)." = "“%s”: Bad resolution value %dx%d%s - feed resolution must be positive (RFC 8011 section 5.1.16)."; "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." = "“%s”: Bad text value “%s” - bad UTF-8 sequence (RFC 8011 section 5.1.2)."; "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)." = "“%s”: Bad text value “%s” - bad control character (PWG 5100.14 section 8.3)."; "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." = "“%s”: Bad text value “%s” - bad length %d (RFC 8011 section 5.1.2)."; "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." = "“%s”: Bad uriScheme value “%s” - bad characters (RFC 8011 section 5.1.7)."; "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." = "“%s”: Bad uriScheme value “%s” - bad length %d (RFC 8011 section 5.1.7)."; "\"requesting-user-name\" attribute in wrong group." = "“requesting-user-name” attribute in wrong group."; "\"requesting-user-name\" attribute with wrong syntax." = "“requesting-user-name” attribute with wrong syntax."; "%-7s %-7.7s %-7d %-31.31s %.0f bytes" = "%-7s %-7.7s %-7d %-31.31s %.0f bytes"; "%d x %d mm" = "%d x %d mm"; "%g x %g \"" = "%g x %g ″"; "%s (%s)" = "%s (%s)"; "%s (%s, %s)" = "%s (%s, %s)"; "%s (Borderless)" = "%s (Borderless)"; "%s (Borderless, %s)" = "%s (Borderless, %s)"; "%s (Borderless, %s, %s)" = "%s (Borderless, %s, %s)"; "%s accepting requests since %s" = "%s accepting requests since %s"; "%s cannot be changed." = "%s cannot be changed."; "%s is not implemented by the CUPS version of lpc." = "%s is not implemented by the CUPS version of lpc."; "%s is not ready" = "%s is not ready"; "%s is ready" = "%s is ready"; "%s is ready and printing" = "%s is ready and printing"; "%s job-id user title copies options [file]" = "%s job-id user title copies options [file]"; "%s not accepting requests since %s -" = "%s not accepting requests since %s -"; "%s not supported." = "%s not supported."; "%s/%s accepting requests since %s" = "%s/%s accepting requests since %s"; "%s/%s not accepting requests since %s -" = "%s/%s not accepting requests since %s -"; "%s: %-33.33s [job %d localhost]" = "%s: %-33.33s [job %d localhost]"; // TRANSLATORS: Message is "subject: error" "%s: %s" = "%s: %s"; "%s: %s failed: %s" = "%s: %s failed: %s"; "%s: Bad printer URI \"%s\"." = "%s: Bad printer URI “%s”."; "%s: Bad version %s for \"-V\"." = "%s: Bad version %s for “-V”."; "%s: Don't know what to do." = "%s: Don’t know what to do."; "%s: Error - %s" = "%s: Error - %s"; "%s: Error - %s environment variable names non-existent destination \"%s\"." = "%s: Error - %s environment variable names non-existent destination “%s”."; "%s: Error - The printer or class does not exist." = "%s: Error - The printer or class does not exist."; "%s: Error - add '/version=1.1' to server name." = "%s: Error - add ‘/version=1.1’ to server name."; "%s: Error - bad job ID." = "%s: Error - bad job ID."; "%s: Error - cannot print files and alter jobs simultaneously." = "%s: Error - cannot print files and alter jobs simultaneously."; "%s: Error - cannot print from stdin if files or a job ID are provided." = "%s: Error - cannot print from stdin if files or a job ID are provided."; "%s: Error - copies must be 1 or more." = "%s: Error - copies must be 1 or more."; "%s: Error - expected \"username\" after \"-U\" option." = "%s: Error - expected “username” after “-U” option."; "%s: Error - expected PPD file after \"-%c\" option." = "%s: Error - expected PPD file after “-%c” option."; "%s: Error - expected character set after \"-S\" option." = "%s: Error - expected character set after “-S” option."; "%s: Error - expected content type after \"-T\" option." = "%s: Error - expected content type after “-T” option."; "%s: Error - expected copies after \"-#\" option." = "%s: Error - expected copies after “-#” option."; "%s: Error - expected copies after \"-n\" option." = "%s: Error - expected copies after “-n” option."; "%s: Error - expected destination MIME type after \"-m\" option." = "%s: Error - expected destination MIME type after “-m” option."; "%s: Error - expected destination after \"-P\" option." = "%s: Error - expected destination after “-P” option."; "%s: Error - expected destination after \"-d\" option." = "%s: Error - expected destination after “-d” option."; "%s: Error - expected filename after \"-c\" option." = "%s: Error - expected filename after “-c” option."; "%s: Error - expected form after \"-f\" option." = "%s: Error - expected form after “-f” option."; "%s: Error - expected hold name after \"-H\" option." = "%s: Error - expected hold name after “-H” option."; "%s: Error - expected hostname after \"-H\" option." = "%s: Error - expected hostname after “-H” option."; "%s: Error - expected hostname after \"-h\" option." = "%s: Error - expected hostname after “-h” option."; "%s: Error - expected input file after \"-f\" option." = "%s: Error - expected input file after “-f” option."; "%s: Error - expected job-id after \"-j\" option." = "%s: Error - expected job-id after “-j” option."; "%s: Error - expected mode list after \"-y\" option." = "%s: Error - expected mode list after “-y” option."; "%s: Error - expected name after \"-%c\" option." = "%s: Error - expected name after “-%c” option."; "%s: Error - expected name=value after \"-a\" option." = "%s: Error - expected name=value after “-a” option."; "%s: Error - expected name=value after \"-o\" option." = "%s: Error - expected name=value after “-o” option."; "%s: Error - expected number of copies after \"-n\" option." = "%s: Error - expected number of copies after “-n” option."; "%s: Error - expected option=value after \"-o\" option." = "%s: Error - expected option=value after “-o” option."; "%s: Error - expected page list after \"-P\" option." = "%s: Error - expected page list after “-P” option."; "%s: Error - expected printer name after \"-d\" option." = "%s: Error - expected printer name after “-d” option."; "%s: Error - expected priority after \"-%c\" option." = "%s: Error - expected priority after “-%c” option."; "%s: Error - expected reason text after \"-r\" option." = "%s: Error - expected reason text after “-r” option."; "%s: Error - expected source MIME type after \"-i\" option." = "%s: Error - expected source MIME type after “-i” option."; "%s: Error - expected title after \"-%c\" option." = "%s: Error - expected title after “-%c” option."; "%s: Error - expected title after \"-t\" option." = "%s: Error - expected title after “-t” option."; "%s: Error - expected username after \"-U\" option." = "%s: Error - expected username after “-U” option."; "%s: Error - expected username after \"-u\" option." = "%s: Error - expected username after “-u” option."; "%s: Error - expected value after \"-%c\" option." = "%s: Error - expected value after “-%c” option."; "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" option." = "%s: Error - need “completed”, “not-completed”, or “all” after “-W” option."; "%s: Error - no default destination available." = "%s: Error - no default destination available."; "%s: Error - priority must be between 1 and 100." = "%s: Error - priority must be between 1 and 100."; "%s: Error - scheduler not responding." = "%s: Error - scheduler not responding."; "%s: Error - too many files - \"%s\"." = "%s: Error - too many files - “%s”."; "%s: Error - unable to access \"%s\" - %s" = "%s: Error - unable to access “%s” - %s"; "%s: Error - unable to queue from stdin - %s." = "%s: Error - unable to queue from stdin - %s."; "%s: Error - unknown destination \"%s\"." = "%s: Error - unknown destination “%s”."; "%s: Error - unknown destination \"%s/%s\"." = "%s: Error - unknown destination “%s/%s”."; "%s: Error - unknown option \"%c\"." = "%s: Error - unknown option “%c”."; "%s: Error - unknown option \"%s\"." = "%s: Error - unknown option “%s”."; "%s: Error - unknown option \"-%c\"." = "%s: Error - unknown option “-%c”."; "%s: Expected job ID after \"-i\" option." = "%s: Expected job ID after “-i” option."; "%s: Invalid destination name in list \"%s\"." = "%s: Invalid destination name in list “%s”."; "%s: Invalid filter string \"%s\"." = "%s: Invalid filter string “%s”."; "%s: Missing filename for \"-P\"." = "%s: Missing filename for “-P”."; "%s: Missing timeout for \"-T\"." = "%s: Missing timeout for “-T”."; "%s: Missing version for \"-V\"." = "%s: Missing version for “-V”."; "%s: Need job ID (\"-i jobid\") before \"-H restart\"." = "%s: Need job ID (“-i jobid”) before “-H restart”."; "%s: No filter to convert from %s/%s to %s/%s." = "%s: No filter to convert from %s/%s to %s/%s."; "%s: Operation failed: %s" = "%s: Operation failed: %s"; "%s: Sorry, no encryption support." = "%s: Sorry, no encryption support."; "%s: Unable to connect to \"%s:%d\": %s" = "%s: Unable to connect to “%s:%d”: %s"; "%s: Unable to connect to server." = "%s: Unable to connect to server."; "%s: Unable to contact server." = "%s: Unable to contact server."; "%s: Unable to create PPD file: %s" = "%s: Unable to create PPD file: %s"; "%s: Unable to determine MIME type of \"%s\"." = "%s: Unable to determine MIME type of “%s”."; "%s: Unable to open \"%s\": %s" = "%s: Unable to open “%s”: %s"; "%s: Unable to open %s: %s" = "%s: Unable to open %s: %s"; "%s: Unable to open PPD file: %s on line %d." = "%s: Unable to open PPD file: %s on line %d."; "%s: Unable to query printer: %s" = "%s: Unable to query printer: %s"; "%s: Unable to read MIME database from \"%s\" or \"%s\"." = "%s: Unable to read MIME database from “%s” or “%s”."; "%s: Unable to resolve \"%s\"." = "%s: Unable to resolve “%s”."; "%s: Unknown argument \"%s\"." = "%s: Unknown argument “%s”."; "%s: Unknown destination \"%s\"." = "%s: Unknown destination “%s”."; "%s: Unknown destination MIME type %s/%s." = "%s: Unknown destination MIME type %s/%s."; "%s: Unknown option \"%c\"." = "%s: Unknown option “%c”."; "%s: Unknown option \"%s\"." = "%s: Unknown option “%s”."; "%s: Unknown option \"-%c\"." = "%s: Unknown option “-%c”."; "%s: Unknown source MIME type %s/%s." = "%s: Unknown source MIME type %s/%s."; "%s: Warning - \"%c\" format modifier not supported - output may not be correct." = "%s: Warning - “%c” format modifier not supported - output may not be correct."; "%s: Warning - character set option ignored." = "%s: Warning - character set option ignored."; "%s: Warning - content type option ignored." = "%s: Warning - content type option ignored."; "%s: Warning - form option ignored." = "%s: Warning - form option ignored."; "%s: Warning - mode option ignored." = "%s: Warning - mode option ignored."; "( expressions ) Group expressions" = "( expressions ) Group expressions"; "- Cancel all jobs" = "- Cancel all jobs"; "-# num-copies Specify the number of copies to print" = "-# num-copies Specify the number of copies to print"; "--[no-]debug-logging Turn debug logging on/off" = "--[no-]debug-logging Turn debug logging on/off"; "--[no-]remote-admin Turn remote administration on/off" = "--[no-]remote-admin Turn remote administration on/off"; "--[no-]remote-any Allow/prevent access from the Internet" = "--[no-]remote-any Allow/prevent access from the Internet"; "--[no-]share-printers Turn printer sharing on/off" = "--[no-]share-printers Turn printer sharing on/off"; "--[no-]user-cancel-any Allow/prevent users to cancel any job" = "--[no-]user-cancel-any Allow/prevent users to cancel any job"; "--device-id device-id Show models matching the given IEEE 1284 device ID" = "--device-id device-id Show models matching the given IEEE 1284 device ID"; "--domain regex Match domain to regular expression" = "--domain regex Match domain to regular expression"; "--exclude-schemes scheme-list\n Exclude the specified URI schemes" = "--exclude-schemes scheme-list\n Exclude the specified URI schemes"; "--exec utility [argument ...] ;\n Execute program if true" = "--exec utility [argument …] ;\n Execute program if true"; "--false Always false" = "--false Always false"; "--help Show program help" = "--help Show program help"; "--hold Hold new jobs" = "--hold Hold new jobs"; "--host regex Match hostname to regular expression" = "--host regex Match hostname to regular expression"; "--include-schemes scheme-list\n Include only the specified URI schemes" = "--include-schemes scheme-list\n Include only the specified URI schemes"; "--ippserver filename Produce ippserver attribute file" = "--ippserver filename Produce ippserver attribute file"; "--language locale Show models matching the given locale" = "--language locale Show models matching the given locale"; "--literal-name name Match service name to literal name value" = "--literal-name name Match service name to literal name value"; "--local True if service is local" = "--local True if service is local"; "--ls List attributes" = "--ls List attributes"; "--make-and-model name Show models matching the given make and model name" = "--make-and-model name Show models matching the given make and model name"; "--name regex Match service name to regular expression" = "--name regex Match service name to regular expression"; "--no-web-forms Disable web forms for media and supplies" = "--no-web-forms Disable web forms for media and supplies"; "--not expression Unary NOT of expression" = "--not expression Unary NOT of expression"; "--pam-service service Use the named PAM service" = "--pam-service service Use the named PAM service"; "--path regex Match resource path to regular expression" = "--path regex Match resource path to regular expression"; "--port number[-number] Match port to number or range" = "--port number[-number] Match port to number or range"; "--print Print URI if true" = "--print Print URI if true"; "--print-name Print service name if true" = "--print-name Print service name if true"; "--product name Show models matching the given PostScript product" = "--product name Show models matching the given PostScript product"; "--quiet Quietly report match via exit code" = "--quiet Quietly report match via exit code"; "--release Release previously held jobs" = "--release Release previously held jobs"; "--remote True if service is remote" = "--remote True if service is remote"; "--stop-after-include-error\n Stop tests after a failed INCLUDE" = "--stop-after-include-error\n Stop tests after a failed INCLUDE"; "--timeout seconds Specify the maximum number of seconds to discover devices" = "--timeout seconds Specify the maximum number of seconds to discover devices"; "--true Always true" = "--true Always true"; "--txt key True if the TXT record contains the key" = "--txt key True if the TXT record contains the key"; "--txt-* regex Match TXT record key to regular expression" = "--txt-* regex Match TXT record key to regular expression"; "--uri regex Match URI to regular expression" = "--uri regex Match URI to regular expression"; "--version Show program version" = "--version Show program version"; "--version Show version" = "--version Show version"; "-1" = "-1"; "-10" = "-10"; "-100" = "-100"; "-105" = "-105"; "-11" = "-11"; "-110" = "-110"; "-115" = "-115"; "-12" = "-12"; "-120" = "-120"; "-13" = "-13"; "-14" = "-14"; "-15" = "-15"; "-2" = "-2"; "-2 Set 2-sided printing support (default=1-sided)" = "-2 Set 2-sided printing support (default=1-sided)"; "-20" = "-20"; "-25" = "-25"; "-3" = "-3"; "-30" = "-30"; "-35" = "-35"; "-4" = "-4"; "-4 Connect using IPv4" = "-4 Connect using IPv4"; "-40" = "-40"; "-45" = "-45"; "-5" = "-5"; "-50" = "-50"; "-55" = "-55"; "-6" = "-6"; "-6 Connect using IPv6" = "-6 Connect using IPv6"; "-60" = "-60"; "-65" = "-65"; "-7" = "-7"; "-70" = "-70"; "-75" = "-75"; "-8" = "-8"; "-80" = "-80"; "-85" = "-85"; "-9" = "-9"; "-90" = "-90"; "-95" = "-95"; "-A Enable authentication" = "-A Enable authentication"; "-C Send requests using chunking (default)" = "-C Send requests using chunking (default)"; "-D description Specify the textual description of the printer" = "-D description Specify the textual description of the printer"; "-D device-uri Set the device URI for the printer" = "-D device-uri Set the device URI for the printer"; "-E Enable and accept jobs on the printer (after -p)" = "-E Enable and accept jobs on the printer (after -p)"; "-E Encrypt the connection to the server" = "-E Encrypt the connection to the server"; "-E Test with encryption using HTTP Upgrade to TLS" = "-E Test with encryption using HTTP Upgrade to TLS"; "-F Run in the foreground but detach from console." = "-F Run in the foreground but detach from console."; "-F output-type/subtype Set the output format for the printer" = "-F output-type/subtype Set the output format for the printer"; "-H Show the default server and port" = "-H Show the default server and port"; "-H HH:MM Hold the job until the specified UTC time" = "-H HH:MM Hold the job until the specified UTC time"; "-H hold Hold the job until released/resumed" = "-H hold Hold the job until released/resumed"; "-H immediate Print the job as soon as possible" = "-H immediate Print the job as soon as possible"; "-H restart Reprint the job" = "-H restart Reprint the job"; "-H resume Resume a held job" = "-H resume Resume a held job"; "-H server[:port] Connect to the named server and port" = "-H server[:port] Connect to the named server and port"; "-I Ignore errors" = "-I Ignore errors"; "-I {filename,filters,none,profiles}\n Ignore specific warnings" = "-I {filename,filters,none,profiles}\n Ignore specific warnings"; "-K keypath Set location of server X.509 certificates and keys." = "-K keypath Set location of server X.509 certificates and keys."; "-L Send requests using content-length" = "-L Send requests using content-length"; "-L location Specify the textual location of the printer" = "-L location Specify the textual location of the printer"; "-M manufacturer Set manufacturer name (default=Test)" = "-M manufacturer Set manufacturer name (default=Test)"; "-N name Match service name to literal name value" = "-N name Match service name to literal name value"; "-P destination Show status for the specified destination" = "-P destination Show status for the specified destination"; "-P destination Specify the destination" = "-P destination Specify the destination"; "-P filename.plist Produce XML plist to a file and test report to standard output" = "-P filename.plist Produce XML plist to a file and test report to standard output"; "-P filename.ppd Load printer attributes from PPD file" = "-P filename.ppd Load printer attributes from PPD file"; "-P number[-number] Match port to number or range" = "-P number[-number] Match port to number or range"; "-P page-list Specify a list of pages to print" = "-P page-list Specify a list of pages to print"; "-R Show the ranking of jobs" = "-R Show the ranking of jobs"; "-R name-default Remove the default value for the named option" = "-R name-default Remove the default value for the named option"; "-R root-directory Set alternate root" = "-R root-directory Set alternate root"; "-S Test with encryption using HTTPS" = "-S Test with encryption using HTTPS"; "-S filename.strings Set strings file" = "-S filename.strings Set strings file"; "-T seconds Set the browse timeout in seconds" = "-T seconds Set the browse timeout in seconds"; "-T seconds Set the receive/send timeout in seconds" = "-T seconds Set the receive/send timeout in seconds"; "-T title Specify the job title" = "-T title Specify the job title"; "-U username Specify the username to use for authentication" = "-U username Specify the username to use for authentication"; "-U username Specify username to use for authentication" = "-U username Specify username to use for authentication"; "-V version Set default IPP version" = "-V version Set default IPP version"; "-W completed Show completed jobs" = "-W completed Show completed jobs"; "-W not-completed Show pending jobs" = "-W not-completed Show pending jobs"; "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n Issue warnings instead of errors" = "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n Issue warnings instead of errors"; "-X Produce XML plist instead of plain text" = "-X Produce XML plist instead of plain text"; "-a Cancel all jobs" = "-a Cancel all jobs"; "-a Show jobs on all destinations" = "-a Show jobs on all destinations"; "-a [destination(s)] Show the accepting state of destinations" = "-a [destination(s)] Show the accepting state of destinations"; "-a filename.conf Load printer attributes from conf file" = "-a filename.conf Load printer attributes from conf file"; "-c Make a copy of the print file(s)" = "-c Make a copy of the print file(s)"; "-c Produce CSV output" = "-c Produce CSV output"; "-c [class(es)] Show classes and their member printers" = "-c [class(es)] Show classes and their member printers"; "-c class Add the named destination to a class" = "-c class Add the named destination to a class"; "-c command Set print command" = "-c command Set print command"; "-c cupsd.conf Set cupsd.conf file to use." = "-c cupsd.conf Set cupsd.conf file to use."; "-d Show the default destination" = "-d Show the default destination"; "-d destination Set default destination" = "-d destination Set default destination"; "-d destination Set the named destination as the server default" = "-d destination Set the named destination as the server default"; "-d destination Specify the destination" = "-d destination Specify the destination"; "-d name=value Set named variable to value" = "-d name=value Set named variable to value"; "-d regex Match domain to regular expression" = "-d regex Match domain to regular expression"; "-d spool-directory Set spool directory" = "-d spool-directory Set spool directory"; "-e Show available destinations on the network" = "-e Show available destinations on the network"; "-f Run in the foreground." = "-f Run in the foreground."; "-f filename Set default request filename" = "-f filename Set default request filename"; "-f type/subtype[,...] Set supported file types" = "-f type/subtype[,…] Set supported file types"; "-h Show this usage message." = "-h Show this usage message."; "-h Validate HTTP response headers" = "-h Validate HTTP response headers"; "-h regex Match hostname to regular expression" = "-h regex Match hostname to regular expression"; "-h server[:port] Connect to the named server and port" = "-h server[:port] Connect to the named server and port"; "-i iconfile.png[,...] Set icon file(s)" = "-i iconfile.png[,…] Set icon file(s)"; "-i id Specify an existing job ID to modify" = "-i id Specify an existing job ID to modify"; "-i ppd-file Specify a PPD file for the printer" = "-i ppd-file Specify a PPD file for the printer"; "-i seconds Repeat the last file with the given time interval" = "-i seconds Repeat the last file with the given time interval"; "-k Keep job spool files" = "-k Keep job spool files"; "-l List attributes" = "-l List attributes"; "-l Produce plain text output" = "-l Produce plain text output"; "-l Run cupsd on demand." = "-l Run cupsd on demand."; "-l Show supported options and values" = "-l Show supported options and values"; "-l Show verbose (long) output" = "-l Show verbose (long) output"; "-l location Set location of printer" = "-l location Set location of printer"; "-m Send an email notification when the job completes" = "-m Send an email notification when the job completes"; "-m Show models" = "-m Show models"; "-m everywhere Specify the printer is compatible with IPP Everywhere" = "-m everywhere Specify the printer is compatible with IPP Everywhere"; "-m model Set model name (default=Printer)" = "-m model Set model name (default=Printer)"; "-m model Specify a standard model/PPD file for the printer" = "-m model Specify a standard model/PPD file for the printer"; "-n count Repeat the last file the given number of times" = "-n count Repeat the last file the given number of times"; "-n hostname Set hostname for printer" = "-n hostname Set hostname for printer"; "-n num-copies Specify the number of copies to print" = "-n num-copies Specify the number of copies to print"; "-n regex Match service name to regular expression" = "-n regex Match service name to regular expression"; "-o Name=Value Specify the default value for the named PPD option " = "-o Name=Value Specify the default value for the named PPD option "; "-o [destination(s)] Show jobs" = "-o [destination(s)] Show jobs"; "-o cupsIPPSupplies=false\n Disable supply level reporting via IPP" = "-o cupsIPPSupplies=false\n Disable supply level reporting via IPP"; "-o cupsSNMPSupplies=false\n Disable supply level reporting via SNMP" = "-o cupsSNMPSupplies=false\n Disable supply level reporting via SNMP"; "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" = "-o job-k-limit=N Specify the kilobyte limit for per-user quotas"; "-o job-page-limit=N Specify the page limit for per-user quotas" = "-o job-page-limit=N Specify the page limit for per-user quotas"; "-o job-quota-period=N Specify the per-user quota period in seconds" = "-o job-quota-period=N Specify the per-user quota period in seconds"; "-o job-sheets=standard Print a banner page with the job" = "-o job-sheets=standard Print a banner page with the job"; "-o media=size Specify the media size to use" = "-o media=size Specify the media size to use"; "-o name-default=value Specify the default value for the named option" = "-o name-default=value Specify the default value for the named option"; "-o name[=value] Set default option and value" = "-o name[=value] Set default option and value"; "-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)" = "-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)"; "-o option[=value] Specify a printer-specific option" = "-o option[=value] Specify a printer-specific option"; "-o orientation-requested=N\n Specify portrait (3) or landscape (4) orientation" = "-o orientation-requested=N\n Specify portrait (3) or landscape (4) orientation"; "-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)" = "-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)"; "-o printer-error-policy=name\n Specify the printer error policy" = "-o printer-error-policy=name\n Specify the printer error policy"; "-o printer-is-shared=true\n Share the printer" = "-o printer-is-shared=true\n Share the printer"; "-o printer-op-policy=name\n Specify the printer operation policy" = "-o printer-op-policy=name\n Specify the printer operation policy"; "-o sides=one-sided Specify 1-sided printing" = "-o sides=one-sided Specify 1-sided printing"; "-o sides=two-sided-long-edge\n Specify 2-sided portrait printing" = "-o sides=two-sided-long-edge\n Specify 2-sided portrait printing"; "-o sides=two-sided-short-edge\n Specify 2-sided landscape printing" = "-o sides=two-sided-short-edge\n Specify 2-sided landscape printing"; "-p Print URI if true" = "-p Print URI if true"; "-p [printer(s)] Show the processing state of destinations" = "-p [printer(s)] Show the processing state of destinations"; "-p destination Specify a destination" = "-p destination Specify a destination"; "-p destination Specify/add the named destination" = "-p destination Specify/add the named destination"; "-p port Set port number for printer" = "-p port Set port number for printer"; "-q Quietly report match via exit code" = "-q Quietly report match via exit code"; "-q Run silently" = "-q Run silently"; "-q Specify the job should be held for printing" = "-q Specify the job should be held for printing"; "-q priority Specify the priority from low (1) to high (100)" = "-q priority Specify the priority from low (1) to high (100)"; "-r Remove the file(s) after submission" = "-r Remove the file(s) after submission"; "-r Show whether the CUPS server is running" = "-r Show whether the CUPS server is running"; "-r True if service is remote" = "-r True if service is remote"; "-r Use 'relaxed' open mode" = "-r Use ‘relaxed’ open mode"; "-r class Remove the named destination from a class" = "-r class Remove the named destination from a class"; "-r reason Specify a reason message that others can see" = "-r reason Specify a reason message that others can see"; "-r subtype,[subtype] Set DNS-SD service subtype" = "-r subtype,[subtype] Set DNS-SD service subtype"; "-s Be silent" = "-s Be silent"; "-s Print service name if true" = "-s Print service name if true"; "-s Show a status summary" = "-s Show a status summary"; "-s cups-files.conf Set cups-files.conf file to use." = "-s cups-files.conf Set cups-files.conf file to use."; "-s speed[,color-speed] Set speed in pages per minute" = "-s speed[,color-speed] Set speed in pages per minute"; "-t Produce a test report" = "-t Produce a test report"; "-t Show all status information" = "-t Show all status information"; "-t Test the configuration file." = "-t Test the configuration file."; "-t key True if the TXT record contains the key" = "-t key True if the TXT record contains the key"; "-t title Specify the job title" = "-t title Specify the job title"; "-u [user(s)] Show jobs queued by the current or specified users" = "-u [user(s)] Show jobs queued by the current or specified users"; "-u allow:all Allow all users to print" = "-u allow:all Allow all users to print"; "-u allow:list Allow the list of users or groups (@name) to print" = "-u allow:list Allow the list of users or groups (@name) to print"; "-u deny:list Prevent the list of users or groups (@name) to print" = "-u deny:list Prevent the list of users or groups (@name) to print"; "-u owner Specify the owner to use for jobs" = "-u owner Specify the owner to use for jobs"; "-u regex Match URI to regular expression" = "-u regex Match URI to regular expression"; "-v Be verbose" = "-v Be verbose"; "-v Show devices" = "-v Show devices"; "-v [printer(s)] Show the devices for each destination" = "-v [printer(s)] Show the devices for each destination"; "-v device-uri Specify the device URI for the printer" = "-v device-uri Specify the device URI for the printer"; "-vv Be very verbose" = "-vv Be very verbose"; "-x Purge jobs rather than just canceling" = "-x Purge jobs rather than just canceling"; "-x destination Remove default options for destination" = "-x destination Remove default options for destination"; "-x destination Remove the named destination" = "-x destination Remove the named destination"; "-x utility [argument ...] ;\n Execute program if true" = "-x utility [argument …] ;\n Execute program if true"; "/etc/cups/lpoptions file names default destination that does not exist." = "/etc/cups/lpoptions file names default destination that does not exist."; "0" = "0"; "1" = "1"; "1 inch/sec." = "1 inch/sec."; "1.25x0.25\"" = "1.25x0.25″"; "1.25x2.25\"" = "1.25x2.25″"; "1.5 inch/sec." = "1.5 inch/sec."; "1.50x0.25\"" = "1.50x0.25″"; "1.50x0.50\"" = "1.50x0.50″"; "1.50x1.00\"" = "1.50x1.00″"; "1.50x2.00\"" = "1.50x2.00″"; "10" = "10"; "10 inches/sec." = "10 inches/sec."; "10 x 11" = "10 x 11"; "10 x 13" = "10 x 13"; "10 x 14" = "10 x 14"; "100" = "100"; "100 mm/sec." = "100 mm/sec."; "105" = "105"; "11" = "11"; "11 inches/sec." = "11 inches/sec."; "110" = "110"; "115" = "115"; "12" = "12"; "12 inches/sec." = "12 inches/sec."; "12 x 11" = "12 x 11"; "120" = "120"; "120 mm/sec." = "120 mm/sec."; "120x60dpi" = "120x60dpi"; "120x72dpi" = "120x72dpi"; "13" = "13"; "136dpi" = "136dpi"; "14" = "14"; "15" = "15"; "15 mm/sec." = "15 mm/sec."; "15 x 11" = "15 x 11"; "150 mm/sec." = "150 mm/sec."; "150dpi" = "150dpi"; "16" = "16"; "17" = "17"; "18" = "18"; "180dpi" = "180dpi"; "19" = "19"; "2" = "2"; "2 inches/sec." = "2 inches/sec."; "2-Sided Printing" = "2-Sided Printing"; "2.00x0.37\"" = "2.00x0.37″"; "2.00x0.50\"" = "2.00x0.50″"; "2.00x1.00\"" = "2.00x1.00″"; "2.00x1.25\"" = "2.00x1.25″"; "2.00x2.00\"" = "2.00x2.00″"; "2.00x3.00\"" = "2.00x3.00″"; "2.00x4.00\"" = "2.00x4.00″"; "2.00x5.50\"" = "2.00x5.50″"; "2.25x0.50\"" = "2.25x0.50″"; "2.25x1.25\"" = "2.25x1.25″"; "2.25x4.00\"" = "2.25x4.00″"; "2.25x5.50\"" = "2.25x5.50″"; "2.38x5.50\"" = "2.38x5.50″"; "2.5 inches/sec." = "2.5 inches/sec."; "2.50x1.00\"" = "2.50x1.00″"; "2.50x2.00\"" = "2.50x2.00″"; "2.75x1.25\"" = "2.75x1.25″"; "2.9 x 1\"" = "2.9 x 1″"; "20" = "20"; "20 mm/sec." = "20 mm/sec."; "200 mm/sec." = "200 mm/sec."; "203dpi" = "203dpi"; "21" = "21"; "22" = "22"; "23" = "23"; "24" = "24"; "24-Pin Series" = "24-Pin Series"; "240x72dpi" = "240x72dpi"; "25" = "25"; "250 mm/sec." = "250 mm/sec."; "26" = "26"; "27" = "27"; "28" = "28"; "29" = "29"; "3" = "3"; "3 inches/sec." = "3 inches/sec."; "3 x 5" = "3 x 5"; "3.00x1.00\"" = "3.00x1.00″"; "3.00x1.25\"" = "3.00x1.25″"; "3.00x2.00\"" = "3.00x2.00″"; "3.00x3.00\"" = "3.00x3.00″"; "3.00x4.00\"" = "3.00x4.00″"; "3.00x5.00\"" = "3.00x5.00″"; "3.00x6.00\"" = "3.00x6.00″"; "3.00x8.00\"" = "3.00x8.00″"; "3.25x2.00\"" = "3.25x2.00″"; "3.25x5.00\"" = "3.25x5.00″"; "3.25x5.50\"" = "3.25x5.50″"; "3.25x5.83\"" = "3.25x5.83″"; "3.25x7.83\"" = "3.25x7.83″"; "3.5 x 5" = "3.5 x 5"; "3.5\" Disk" = "3.5″ Disk"; "3.50x1.00\"" = "3.50x1.00″"; "30" = "30"; "30 mm/sec." = "30 mm/sec."; "300 mm/sec." = "300 mm/sec."; "300dpi" = "300dpi"; "30859 Paint Can Label" = "30859 Paint Can Label"; "35" = "35"; "360dpi" = "360dpi"; "360x180dpi" = "360x180dpi"; "4" = "4"; "4 inches/sec." = "4 inches/sec."; "4.00x1.00\"" = "4.00x1.00″"; "4.00x13.00\"" = "4.00x13.00″"; "4.00x2.00\"" = "4.00x2.00″"; "4.00x2.50\"" = "4.00x2.50″"; "4.00x3.00\"" = "4.00x3.00″"; "4.00x4.00\"" = "4.00x4.00″"; "4.00x5.00\"" = "4.00x5.00″"; "4.00x6.00\"" = "4.00x6.00″"; "4.00x6.50\"" = "4.00x6.50″"; "4.00x8.00\"" = "4.00x8.00″"; "40" = "40"; "40 mm/sec." = "40 mm/sec."; "45" = "45"; "5" = "5"; "5 inches/sec." = "5 inches/sec."; "5 x 7" = "5 x 7"; "50" = "50"; "55" = "55"; "6" = "6"; "6 inches/sec." = "6 inches/sec."; "6.00x1.00\"" = "6.00x1.00″"; "6.00x2.00\"" = "6.00x2.00″"; "6.00x3.00\"" = "6.00x3.00″"; "6.00x4.00\"" = "6.00x4.00″"; "6.00x5.00\"" = "6.00x5.00″"; "6.00x6.00\"" = "6.00x6.00″"; "6.00x6.50\"" = "6.00x6.50″"; "6.00x8.00\"" = "6.00x8.00″"; "60" = "60"; "60 mm/sec." = "60 mm/sec."; "600dpi" = "600dpi"; "60dpi" = "60dpi"; "60x72dpi" = "60x72dpi"; "65" = "65"; "7" = "7"; "7 inches/sec." = "7 inches/sec."; "7 x 9" = "7 x 9"; "70" = "70"; "75" = "75"; "8" = "8"; "8 inches/sec." = "8 inches/sec."; "8 x 10" = "8 x 10"; "8.00x1.00\"" = "8.00x1.00″"; "8.00x2.00\"" = "8.00x2.00″"; "8.00x3.00\"" = "8.00x3.00″"; "8.00x4.00\"" = "8.00x4.00″"; "8.00x5.00\"" = "8.00x5.00″"; "8.00x6.00\"" = "8.00x6.00″"; "8.00x6.50\"" = "8.00x6.50″"; "8.26x1.00\"" = "8.26x1.00″"; "80" = "80"; "80 mm/sec." = "80 mm/sec."; "80x50mm" = "80x50mm"; "85" = "85"; "9" = "9"; "9 inches/sec." = "9 inches/sec."; "9 x 11" = "9 x 11"; "9 x 12" = "9 x 12"; "9-Pin Series" = "9-Pin Series"; "90" = "90"; "95" = "95"; "?Invalid help command unknown." = "?Invalid help command unknown."; "A class named \"%s\" already exists." = "A class named “%s” already exists."; "A printer named \"%s\" already exists." = "A printer named “%s” already exists."; "A0" = "A0"; "A0 Long Edge" = "A0 Long Edge"; "A1" = "A1"; "A1 Long Edge" = "A1 Long Edge"; "A10" = "A10"; "A2" = "A2"; "A2 Long Edge" = "A2 Long Edge"; "A3" = "A3"; "A3 Long Edge" = "A3 Long Edge"; "A3 Oversize" = "A3 Oversize"; "A3 Oversize Long Edge" = "A3 Oversize Long Edge"; "A4" = "A4"; "A4 Long Edge" = "A4 Long Edge"; "A4 Oversize" = "A4 Oversize"; "A4 Small" = "A4 Small"; "A5" = "A5"; "A5 Long Edge" = "A5 Long Edge"; "A5 Oversize" = "A5 Oversize"; "A6" = "A6"; "A6 Long Edge" = "A6 Long Edge"; "A7" = "A7"; "A8" = "A8"; "A9" = "A9"; "ANSI A" = "ANSI A"; "ANSI B" = "ANSI B"; "ANSI C" = "ANSI C"; "ANSI D" = "ANSI D"; "ANSI E" = "ANSI E"; "ARCH C" = "ARCH C"; "ARCH C Long Edge" = "ARCH C Long Edge"; "ARCH D" = "ARCH D"; "ARCH D Long Edge" = "ARCH D Long Edge"; "ARCH E" = "ARCH E"; "ARCH E Long Edge" = "ARCH E Long Edge"; "Accept Jobs" = "Accept Jobs"; "Accepted" = "Accepted"; "Add Class" = "Add Class"; "Add Printer" = "Add Printer"; "Address" = "Address"; "Administration" = "Administration"; "Always" = "Always"; "AppSocket/HP JetDirect" = "AppSocket/HP JetDirect"; "Applicator" = "Applicator"; "Attempt to set %s printer-state to bad value %d." = "Attempt to set %s printer-state to bad value %d."; "Attribute \"%s\" is in the wrong group." = "Attribute “%s” is in the wrong group."; "Attribute \"%s\" is the wrong value type." = "Attribute “%s” is the wrong value type."; "Attribute groups are out of order (%x < %x)." = "Attribute groups are out of order (%x < %x)."; "B0" = "B0"; "B1" = "B1"; "B10" = "B10"; "B2" = "B2"; "B3" = "B3"; "B4" = "B4"; "B5" = "B5"; "B5 Oversize" = "B5 Oversize"; "B6" = "B6"; "B7" = "B7"; "B8" = "B8"; "B9" = "B9"; "Bad \"printer-id\" value %d." = "Bad “printer-id” value %d."; "Bad '%s' value." = "Bad ‘%s’ value."; "Bad 'document-format' value \"%s\"." = "Bad ‘document-format’ value “%s”."; "Bad CloseUI/JCLCloseUI" = "Bad CloseUI/JCLCloseUI"; "Bad NULL dests pointer" = "Bad NULL dests pointer"; "Bad OpenGroup" = "Bad OpenGroup"; "Bad OpenUI/JCLOpenUI" = "Bad OpenUI/JCLOpenUI"; "Bad OrderDependency" = "Bad OrderDependency"; "Bad PPD cache file." = "Bad PPD cache file."; "Bad PPD file." = "Bad PPD file."; "Bad Request" = "Bad Request"; "Bad SNMP version number" = "Bad SNMP version number"; "Bad UIConstraints" = "Bad UIConstraints"; "Bad URI." = "Bad URI."; "Bad arguments to function" = "Bad arguments to function"; "Bad copies value %d." = "Bad copies value %d."; "Bad custom parameter" = "Bad custom parameter"; "Bad device-uri \"%s\"." = "Bad device-uri “%s”."; "Bad device-uri scheme \"%s\"." = "Bad device-uri scheme “%s”."; "Bad document-format \"%s\"." = "Bad document-format “%s”."; "Bad document-format-default \"%s\"." = "Bad document-format-default “%s”."; "Bad filename buffer" = "Bad filename buffer"; "Bad hostname/address in URI" = "Bad hostname/address in URI"; "Bad job-name value: %s" = "Bad job-name value: %s"; "Bad job-name value: Wrong type or count." = "Bad job-name value: Wrong type or count."; "Bad job-priority value." = "Bad job-priority value."; "Bad job-sheets value \"%s\"." = "Bad job-sheets value “%s”."; "Bad job-sheets value type." = "Bad job-sheets value type."; "Bad job-state value." = "Bad job-state value."; "Bad job-uri \"%s\"." = "Bad job-uri “%s”."; "Bad notify-pull-method \"%s\"." = "Bad notify-pull-method “%s”."; "Bad notify-recipient-uri \"%s\"." = "Bad notify-recipient-uri “%s”."; "Bad notify-user-data \"%s\"." = "Bad notify-user-data “%s”."; "Bad number-up value %d." = "Bad number-up value %d."; "Bad page-ranges values %d-%d." = "Bad page-ranges values %d-%d."; "Bad port number in URI" = "Bad port number in URI"; "Bad port-monitor \"%s\"." = "Bad port-monitor “%s”."; "Bad printer-state value %d." = "Bad printer-state value %d."; "Bad printer-uri." = "Bad printer-uri."; "Bad request ID %d." = "Bad request ID %d."; "Bad request version number %d.%d." = "Bad request version number %d.%d."; "Bad resource in URI" = "Bad resource in URI"; "Bad scheme in URI" = "Bad scheme in URI"; "Bad username in URI" = "Bad username in URI"; "Bad value string" = "Bad value string"; "Bad/empty URI" = "Bad/empty URI"; "Banners" = "Banners"; "Bond Paper" = "Bond Paper"; "Booklet" = "Booklet"; "Boolean expected for waiteof option \"%s\"." = "Boolean expected for waiteof option “%s”."; "Buffer overflow detected, aborting." = "Buffer overflow detected, aborting."; "CMYK" = "CMYK"; "CPCL Label Printer" = "CPCL Label Printer"; "Cancel Jobs" = "Cancel Jobs"; "Canceling print job." = "Canceling print job."; "Cannot change printer-is-shared for remote queues." = "Cannot change printer-is-shared for remote queues."; "Cannot share a remote Kerberized printer." = "Cannot share a remote Kerberized printer."; "Cassette" = "Cassette"; "Change Settings" = "Change Settings"; "Character set \"%s\" not supported." = "Character set “%s” not supported."; "Classes" = "Classes"; "Clean Print Heads" = "Clean Print Heads"; "Close-Job doesn't support the job-uri attribute." = "Close-Job doesn’t support the job-uri attribute."; "Color" = "Color"; "Color Mode" = "Color Mode"; "Commands may be abbreviated. Commands are:\n\nexit help quit status ?" = "Commands may be abbreviated. Commands are:\n\nexit help quit status ?"; "Community name uses indefinite length" = "Community name uses indefinite length"; "Connected to printer." = "Connected to printer."; "Connecting to printer." = "Connecting to printer."; "Continue" = "Continue"; "Continuous" = "Continuous"; "Control file sent successfully." = "Control file sent successfully."; "Copying print data." = "Copying print data."; "Created" = "Created"; "Credentials do not validate against site CA certificate." = "Credentials do not validate against site CA certificate."; "Credentials have expired." = "Credentials have expired."; "Custom" = "Custom"; "CustominCutInterval" = "CustominCutInterval"; "CustominTearInterval" = "CustominTearInterval"; "Cut" = "Cut"; "Cutter" = "Cutter"; "DYMO" = "DYMO"; "Dark" = "Dark"; "Darkness" = "Darkness"; "Data file sent successfully." = "Data file sent successfully."; "Deep Color" = "Deep Color"; "Deep Gray" = "Deep Gray"; "Delete Class" = "Delete Class"; "Delete Printer" = "Delete Printer"; "DeskJet Series" = "DeskJet Series"; "Destination \"%s\" is not accepting jobs." = "Destination “%s” is not accepting jobs."; "Device CMYK" = "Device CMYK"; "Device Gray" = "Device Gray"; "Device RGB" = "Device RGB"; "Device: uri = %s\n class = %s\n info = %s\n make-and-model = %s\n device-id = %s\n location = %s" = "Device: uri = %s\n class = %s\n info = %s\n make-and-model = %s\n device-id = %s\n location = %s"; "Direct Thermal Media" = "Direct Thermal Media"; "Directory \"%s\" contains a relative path." = "Directory “%s” contains a relative path."; "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." = "Directory “%s” has insecure permissions (0%o/uid=%d/gid=%d)."; "Directory \"%s\" is a file." = "Directory “%s” is a file."; "Directory \"%s\" not available: %s" = "Directory “%s” not available: %s"; "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." = "Directory “%s” permissions OK (0%o/uid=%d/gid=%d)."; "Disabled" = "Disabled"; "Document #%d does not exist in job #%d." = "Document #%d does not exist in job #%d."; "Draft" = "Draft"; "Duplexer" = "Duplexer"; "EPL1 Label Printer" = "EPL1 Label Printer"; "EPL2 Label Printer" = "EPL2 Label Printer"; "Edit Configuration File" = "Edit Configuration File"; "Encryption is not supported." = "Encryption is not supported."; // TRANSLATORS: Banner/cover sheet after the print job. "Ending Banner" = "Ending Banner"; "English" = "English"; "Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket." = "Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket."; "Envelope #10" = "Envelope #10"; "Envelope #11" = "Envelope #11"; "Envelope #12" = "Envelope #12"; "Envelope #14" = "Envelope #14"; "Envelope #9" = "Envelope #9"; "Envelope B4" = "Envelope B4"; "Envelope B5" = "Envelope B5"; "Envelope B6" = "Envelope B6"; "Envelope C0" = "Envelope C0"; "Envelope C1" = "Envelope C1"; "Envelope C2" = "Envelope C2"; "Envelope C3" = "Envelope C3"; "Envelope C4" = "Envelope C4"; "Envelope C5" = "Envelope C5"; "Envelope C6" = "Envelope C6"; "Envelope C65" = "Envelope C65"; "Envelope C7" = "Envelope C7"; "Envelope Choukei 3" = "Envelope Choukei 3"; "Envelope Choukei 3 Long Edge" = "Envelope Choukei 3 Long Edge"; "Envelope Choukei 4" = "Envelope Choukei 4"; "Envelope Choukei 4 Long Edge" = "Envelope Choukei 4 Long Edge"; "Envelope DL" = "Envelope DL"; "Envelope Feed" = "Envelope Feed"; "Envelope Invite" = "Envelope Invite"; "Envelope Italian" = "Envelope Italian"; "Envelope Kaku2" = "Envelope Kaku2"; "Envelope Kaku2 Long Edge" = "Envelope Kaku2 Long Edge"; "Envelope Kaku3" = "Envelope Kaku3"; "Envelope Kaku3 Long Edge" = "Envelope Kaku3 Long Edge"; "Envelope Monarch" = "Envelope Monarch"; "Envelope PRC1" = "Envelope PRC1"; "Envelope PRC1 Long Edge" = "Envelope PRC1 Long Edge"; "Envelope PRC10" = "Envelope PRC10"; "Envelope PRC10 Long Edge" = "Envelope PRC10 Long Edge"; "Envelope PRC2" = "Envelope PRC2"; "Envelope PRC2 Long Edge" = "Envelope PRC2 Long Edge"; "Envelope PRC3" = "Envelope PRC3"; "Envelope PRC3 Long Edge" = "Envelope PRC3 Long Edge"; "Envelope PRC4" = "Envelope PRC4"; "Envelope PRC4 Long Edge" = "Envelope PRC4 Long Edge"; "Envelope PRC5 Long Edge" = "Envelope PRC5 Long Edge"; "Envelope PRC5PRC5" = "Envelope PRC5PRC5"; "Envelope PRC6" = "Envelope PRC6"; "Envelope PRC6 Long Edge" = "Envelope PRC6 Long Edge"; "Envelope PRC7" = "Envelope PRC7"; "Envelope PRC7 Long Edge" = "Envelope PRC7 Long Edge"; "Envelope PRC8" = "Envelope PRC8"; "Envelope PRC8 Long Edge" = "Envelope PRC8 Long Edge"; "Envelope PRC9" = "Envelope PRC9"; "Envelope PRC9 Long Edge" = "Envelope PRC9 Long Edge"; "Envelope Personal" = "Envelope Personal"; "Envelope You4" = "Envelope You4"; "Envelope You4 Long Edge" = "Envelope You4 Long Edge"; "Environment Variables:" = "Environment Variables:"; "Epson" = "Epson"; "Error Policy" = "Error Policy"; "Error reading raster data." = "Error reading raster data."; "Error sending raster data." = "Error sending raster data."; "Error: need hostname after \"-h\" option." = "Error: need hostname after “-h” option."; "European Fanfold" = "European Fanfold"; "European Fanfold Legal" = "European Fanfold Legal"; "Every 10 Labels" = "Every 10 Labels"; "Every 2 Labels" = "Every 2 Labels"; "Every 3 Labels" = "Every 3 Labels"; "Every 4 Labels" = "Every 4 Labels"; "Every 5 Labels" = "Every 5 Labels"; "Every 6 Labels" = "Every 6 Labels"; "Every 7 Labels" = "Every 7 Labels"; "Every 8 Labels" = "Every 8 Labels"; "Every 9 Labels" = "Every 9 Labels"; "Every Label" = "Every Label"; "Executive" = "Executive"; "Expectation Failed" = "Expectation Failed"; "Expressions:" = "Expressions:"; "Fast Grayscale" = "Fast Grayscale"; "File \"%s\" contains a relative path." = "File “%s” contains a relative path."; "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." = "File “%s” has insecure permissions (0%o/uid=%d/gid=%d)."; "File \"%s\" is a directory." = "File “%s” is a directory."; "File \"%s\" not available: %s" = "File “%s” not available: %s"; "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." = "File “%s” permissions OK (0%o/uid=%d/gid=%d)."; "File Folder" = "File Folder"; "File device URIs have been disabled. To enable, see the FileDevice directive in \"%s/cups-files.conf\"." = "File device URIs have been disabled. To enable, see the FileDevice directive in “%s/cups-files.conf”."; "Finished page %d." = "Finished page %d."; "Finishing Preset" = "Finishing Preset"; "Fold" = "Fold"; "Folio" = "Folio"; "Forbidden" = "Forbidden"; "Found" = "Found"; "General" = "General"; "Generic" = "Generic"; "Get-Response-PDU uses indefinite length" = "Get-Response-PDU uses indefinite length"; "Glossy Paper" = "Glossy Paper"; "Got a printer-uri attribute but no job-id." = "Got a printer-uri attribute but no job-id."; "GrayScale" = "GrayScale"; "Grayscale" = "Grayscale"; "HP" = "HP"; "Hanging Folder" = "Hanging Folder"; "Hash buffer too small." = "Hash buffer too small."; "Help file not in index." = "Help file not in index."; "High" = "High"; "IPP 1setOf attribute with incompatible value tags." = "IPP 1setOf attribute with incompatible value tags."; "IPP attribute has no name." = "IPP attribute has no name."; "IPP attribute is not a member of the message." = "IPP attribute is not a member of the message."; "IPP begCollection value not 0 bytes." = "IPP begCollection value not 0 bytes."; "IPP boolean value not 1 byte." = "IPP boolean value not 1 byte."; "IPP date value not 11 bytes." = "IPP date value not 11 bytes."; "IPP endCollection value not 0 bytes." = "IPP endCollection value not 0 bytes."; "IPP enum value not 4 bytes." = "IPP enum value not 4 bytes."; "IPP extension tag larger than 0x7FFFFFFF." = "IPP extension tag larger than 0x7FFFFFFF."; "IPP integer value not 4 bytes." = "IPP integer value not 4 bytes."; "IPP language length overflows value." = "IPP language length overflows value."; "IPP language length too large." = "IPP language length too large."; "IPP member name is not empty." = "IPP member name is not empty."; "IPP memberName value is empty." = "IPP memberName value is empty."; "IPP memberName with no attribute." = "IPP memberName with no attribute."; "IPP name larger than 32767 bytes." = "IPP name larger than 32767 bytes."; "IPP nameWithLanguage value less than minimum 4 bytes." = "IPP nameWithLanguage value less than minimum 4 bytes."; "IPP octetString length too large." = "IPP octetString length too large."; "IPP rangeOfInteger value not 8 bytes." = "IPP rangeOfInteger value not 8 bytes."; "IPP resolution value not 9 bytes." = "IPP resolution value not 9 bytes."; "IPP string length overflows value." = "IPP string length overflows value."; "IPP textWithLanguage value less than minimum 4 bytes." = "IPP textWithLanguage value less than minimum 4 bytes."; "IPP value larger than 32767 bytes." = "IPP value larger than 32767 bytes."; "IPPFIND_SERVICE_DOMAIN Domain name" = "IPPFIND_SERVICE_DOMAIN Domain name"; "IPPFIND_SERVICE_HOSTNAME\n Fully-qualified domain name" = "IPPFIND_SERVICE_HOSTNAME\n Fully-qualified domain name"; "IPPFIND_SERVICE_NAME Service instance name" = "IPPFIND_SERVICE_NAME Service instance name"; "IPPFIND_SERVICE_PORT Port number" = "IPPFIND_SERVICE_PORT Port number"; "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" = "IPPFIND_SERVICE_REGTYPE DNS-SD registration type"; "IPPFIND_SERVICE_SCHEME URI scheme" = "IPPFIND_SERVICE_SCHEME URI scheme"; "IPPFIND_SERVICE_URI URI" = "IPPFIND_SERVICE_URI URI"; "IPPFIND_TXT_* Value of TXT record key" = "IPPFIND_TXT_* Value of TXT record key"; "ISOLatin1" = "ISOLatin1"; "Illegal control character" = "Illegal control character"; "Illegal main keyword string" = "Illegal main keyword string"; "Illegal option keyword string" = "Illegal option keyword string"; "Illegal translation string" = "Illegal translation string"; "Illegal whitespace character" = "Illegal whitespace character"; "Installable Options" = "Installable Options"; "Installed" = "Installed"; "IntelliBar Label Printer" = "IntelliBar Label Printer"; "Intellitech" = "Intellitech"; "Internal Server Error" = "Internal Server Error"; "Internal error" = "Internal error"; "Internet Postage 2-Part" = "Internet Postage 2-Part"; "Internet Postage 3-Part" = "Internet Postage 3-Part"; "Internet Printing Protocol" = "Internet Printing Protocol"; "Invalid group tag." = "Invalid group tag."; "Invalid media name arguments." = "Invalid media name arguments."; "Invalid media size." = "Invalid media size."; "Invalid named IPP attribute in collection." = "Invalid named IPP attribute in collection."; "Invalid ppd-name value." = "Invalid ppd-name value."; "Invalid printer command \"%s\"." = "Invalid printer command “%s”."; "JCL" = "JCL"; "JIS B0" = "JIS B0"; "JIS B1" = "JIS B1"; "JIS B10" = "JIS B10"; "JIS B2" = "JIS B2"; "JIS B3" = "JIS B3"; "JIS B4" = "JIS B4"; "JIS B4 Long Edge" = "JIS B4 Long Edge"; "JIS B5" = "JIS B5"; "JIS B5 Long Edge" = "JIS B5 Long Edge"; "JIS B6" = "JIS B6"; "JIS B6 Long Edge" = "JIS B6 Long Edge"; "JIS B7" = "JIS B7"; "JIS B8" = "JIS B8"; "JIS B9" = "JIS B9"; "Job #%d cannot be restarted - no files." = "Job #%d cannot be restarted - no files."; "Job #%d does not exist." = "Job #%d does not exist."; "Job #%d is already aborted - can't cancel." = "Job #%d is already aborted - can’t cancel."; "Job #%d is already canceled - can't cancel." = "Job #%d is already canceled - can’t cancel."; "Job #%d is already completed - can't cancel." = "Job #%d is already completed - can’t cancel."; "Job #%d is finished and cannot be altered." = "Job #%d is finished and cannot be altered."; "Job #%d is not complete." = "Job #%d is not complete."; "Job #%d is not held for authentication." = "Job #%d is not held for authentication."; "Job #%d is not held." = "Job #%d is not held."; "Job Completed" = "Job Completed"; "Job Created" = "Job Created"; "Job Options Changed" = "Job Options Changed"; "Job Stopped" = "Job Stopped"; "Job is completed and cannot be changed." = "Job is completed and cannot be changed."; "Job operation failed" = "Job operation failed"; "Job state cannot be changed." = "Job state cannot be changed."; "Job subscriptions cannot be renewed." = "Job subscriptions cannot be renewed."; "Jobs" = "Jobs"; "LPD/LPR Host or Printer" = "LPD/LPR Host or Printer"; "LPDEST environment variable names default destination that does not exist." = "LPDEST environment variable names default destination that does not exist."; "Label Printer" = "Label Printer"; "Label Top" = "Label Top"; "Language \"%s\" not supported." = "Language “%s” not supported."; "Large Address" = "Large Address"; "LaserJet Series PCL 4/5" = "LaserJet Series PCL 4/5"; "Letter Oversize" = "Letter Oversize"; "Letter Oversize Long Edge" = "Letter Oversize Long Edge"; "Light" = "Light"; "Line longer than the maximum allowed (255 characters)" = "Line longer than the maximum allowed (255 characters)"; "List Available Printers" = "List Available Printers"; "Listening on port %d." = "Listening on port %d."; "Local printer created." = "Local printer created."; "Long-Edge (Portrait)" = "Long-Edge (Portrait)"; "Looking for printer." = "Looking for printer."; "Main Roll" = "Main Roll"; "Manual Feed" = "Manual Feed"; "Media Size" = "Media Size"; "Media Source" = "Media Source"; "Media Tracking" = "Media Tracking"; "Media Type" = "Media Type"; "Medium" = "Medium"; "Memory allocation error" = "Memory allocation error"; "Missing CloseGroup" = "Missing CloseGroup"; "Missing CloseUI/JCLCloseUI" = "Missing CloseUI/JCLCloseUI"; "Missing PPD-Adobe-4.x header" = "Missing PPD-Adobe-4.x header"; "Missing asterisk in column 1" = "Missing asterisk in column 1"; "Missing document-number attribute." = "Missing document-number attribute."; "Missing form variable" = "Missing form variable"; "Missing last-document attribute in request." = "Missing last-document attribute in request."; "Missing media or media-col." = "Missing media or media-col."; "Missing media-size in media-col." = "Missing media-size in media-col."; "Missing notify-subscription-ids attribute." = "Missing notify-subscription-ids attribute."; "Missing option keyword" = "Missing option keyword"; "Missing requesting-user-name attribute." = "Missing requesting-user-name attribute."; "Missing required attribute \"%s\"." = "Missing required attribute “%s”."; "Missing required attributes." = "Missing required attributes."; "Missing resource in URI" = "Missing resource in URI"; "Missing scheme in URI" = "Missing scheme in URI"; "Missing value string" = "Missing value string"; "Missing x-dimension in media-size." = "Missing x-dimension in media-size."; "Missing y-dimension in media-size." = "Missing y-dimension in media-size."; "Model: name = %s\n natural_language = %s\n make-and-model = %s\n device-id = %s" = "Model: name = %s\n natural_language = %s\n make-and-model = %s\n device-id = %s"; "Modifiers:" = "Modifiers:"; "Modify Class" = "Modify Class"; "Modify Printer" = "Modify Printer"; "Move All Jobs" = "Move All Jobs"; "Move Job" = "Move Job"; "Moved Permanently" = "Moved Permanently"; "NULL PPD file pointer" = "NULL PPD file pointer"; "Name OID uses indefinite length" = "Name OID uses indefinite length"; "Nested classes are not allowed." = "Nested classes are not allowed."; "Never" = "Never"; "New credentials are not valid for name." = "New credentials are not valid for name."; "New credentials are older than stored credentials." = "New credentials are older than stored credentials."; "No" = "No"; "No Content" = "No Content"; "No IPP attributes." = "No IPP attributes."; "No PPD name" = "No PPD name"; "No VarBind SEQUENCE" = "No VarBind SEQUENCE"; "No active connection" = "No active connection"; "No active connection." = "No active connection."; "No active jobs on %s." = "No active jobs on %s."; "No attributes in request." = "No attributes in request."; "No authentication information provided." = "No authentication information provided."; "No common name specified." = "No common name specified."; "No community name" = "No community name"; "No default destination." = "No default destination."; "No default printer." = "No default printer."; "No destinations added." = "No destinations added."; "No device URI found in argv[0] or in DEVICE_URI environment variable." = "No device URI found in argv[0] or in DEVICE_URI environment variable."; "No error-index" = "No error-index"; "No error-status" = "No error-status"; "No file in print request." = "No file in print request."; "No modification time" = "No modification time"; "No name OID" = "No name OID"; "No pages were found." = "No pages were found."; "No printer name" = "No printer name"; "No printer-uri found" = "No printer-uri found"; "No printer-uri found for class" = "No printer-uri found for class"; "No printer-uri in request." = "No printer-uri in request."; "No request URI." = "No request URI."; "No request protocol version." = "No request protocol version."; "No request sent." = "No request sent."; "No request-id" = "No request-id"; "No stored credentials, not valid for name." = "No stored credentials, not valid for name."; "No subscription attributes in request." = "No subscription attributes in request."; "No subscriptions found." = "No subscriptions found."; "No variable-bindings SEQUENCE" = "No variable-bindings SEQUENCE"; "No version number" = "No version number"; "Non-continuous (Mark sensing)" = "Non-continuous (Mark sensing)"; "Non-continuous (Web sensing)" = "Non-continuous (Web sensing)"; "None" = "None"; "Normal" = "Normal"; "Not Found" = "Not Found"; "Not Implemented" = "Not Implemented"; "Not Installed" = "Not Installed"; "Not Modified" = "Not Modified"; "Not Supported" = "Not Supported"; "Not allowed to print." = "Not allowed to print."; "Note" = "Note"; "OK" = "OK"; "Off (1-Sided)" = "Off (1-Sided)"; "Oki" = "Oki"; "Online Help" = "Online Help"; "Only local users can create a local printer." = "Only local users can create a local printer."; "Open of %s failed: %s" = "Open of %s failed: %s"; "OpenGroup without a CloseGroup first" = "OpenGroup without a CloseGroup first"; "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" = "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first"; "Operation Policy" = "Operation Policy"; "Option \"%s\" cannot be included via %%%%IncludeFeature." = "Option “%s” cannot be included via %%%%IncludeFeature."; "Options Installed" = "Options Installed"; "Options:" = "Options:"; "Other Media" = "Other Media"; "Other Tray" = "Other Tray"; "Out of date PPD cache file." = "Out of date PPD cache file."; "Out of memory." = "Out of memory."; "Output Mode" = "Output Mode"; "PCL Laser Printer" = "PCL Laser Printer"; "PRC16K" = "PRC16K"; "PRC16K Long Edge" = "PRC16K Long Edge"; "PRC32K" = "PRC32K"; "PRC32K Long Edge" = "PRC32K Long Edge"; "PRC32K Oversize" = "PRC32K Oversize"; "PRC32K Oversize Long Edge" = "PRC32K Oversize Long Edge"; "PRINTER environment variable names default destination that does not exist." = "PRINTER environment variable names default destination that does not exist."; "Packet does not contain a Get-Response-PDU" = "Packet does not contain a Get-Response-PDU"; "Packet does not start with SEQUENCE" = "Packet does not start with SEQUENCE"; "ParamCustominCutInterval" = "ParamCustominCutInterval"; "ParamCustominTearInterval" = "ParamCustominTearInterval"; "Password for %s on %s? " = "Password for %s on %s? "; "Pause Class" = "Pause Class"; "Pause Printer" = "Pause Printer"; "Peel-Off" = "Peel-Off"; "Photo" = "Photo"; "Photo Labels" = "Photo Labels"; "Plain Paper" = "Plain Paper"; "Policies" = "Policies"; "Port Monitor" = "Port Monitor"; "PostScript Printer" = "PostScript Printer"; "Postcard" = "Postcard"; "Postcard Double" = "Postcard Double"; "Postcard Double Long Edge" = "Postcard Double Long Edge"; "Postcard Long Edge" = "Postcard Long Edge"; "Preparing to print." = "Preparing to print."; "Print Density" = "Print Density"; "Print Job:" = "Print Job:"; "Print Mode" = "Print Mode"; "Print Quality" = "Print Quality"; "Print Rate" = "Print Rate"; "Print Self-Test Page" = "Print Self-Test Page"; "Print Speed" = "Print Speed"; "Print Test Page" = "Print Test Page"; "Print and Cut" = "Print and Cut"; "Print and Tear" = "Print and Tear"; "Print file sent." = "Print file sent."; "Print job canceled at printer." = "Print job canceled at printer."; "Print job too large." = "Print job too large."; "Print job was not accepted." = "Print job was not accepted."; "Printer \"%s\" already exists." = "Printer “%s” already exists."; "Printer Added" = "Printer Added"; "Printer Default" = "Printer Default"; "Printer Deleted" = "Printer Deleted"; "Printer Modified" = "Printer Modified"; "Printer Paused" = "Printer Paused"; "Printer Settings" = "Printer Settings"; "Printer cannot print supplied content." = "Printer cannot print supplied content."; "Printer cannot print with supplied options." = "Printer cannot print with supplied options."; "Printer does not support required IPP attributes or document formats." = "Printer does not support required IPP attributes or document formats."; "Printer:" = "Printer:"; "Printers" = "Printers"; "Printing page %d, %u%% complete." = "Printing page %d, %u%% complete."; "Punch" = "Punch"; "Quarto" = "Quarto"; "Quota limit reached." = "Quota limit reached."; "Rank Owner Job File(s) Total Size" = "Rank Owner Job File(s) Total Size"; "Reject Jobs" = "Reject Jobs"; "Remote host did not accept control file (%d)." = "Remote host did not accept control file (%d)."; "Remote host did not accept data file (%d)." = "Remote host did not accept data file (%d)."; "Reprint After Error" = "Reprint After Error"; "Request Entity Too Large" = "Request Entity Too Large"; "Resolution" = "Resolution"; "Resume Class" = "Resume Class"; "Resume Printer" = "Resume Printer"; "Return Address" = "Return Address"; "Rewind" = "Rewind"; "SEQUENCE uses indefinite length" = "SEQUENCE uses indefinite length"; "SSL/TLS Negotiation Error" = "SSL/TLS Negotiation Error"; "Second Roll (DUO/Twin Only)" = "Second Roll (DUO/Twin Only)"; "See Other" = "See Other"; "See remote printer." = "See remote printer."; "Self-signed credentials are blocked." = "Self-signed credentials are blocked."; "Sending data to printer." = "Sending data to printer."; "Server Restarted" = "Server Restarted"; "Server Security Auditing" = "Server Security Auditing"; "Server Started" = "Server Started"; "Server Stopped" = "Server Stopped"; "Server credentials not set." = "Server credentials not set."; "Service Unavailable" = "Service Unavailable"; "Set Allowed Users" = "Set Allowed Users"; "Set As Server Default" = "Set As Server Default"; "Set Class Options" = "Set Class Options"; "Set Printer Options" = "Set Printer Options"; "Set Publishing" = "Set Publishing"; "Shipping Address" = "Shipping Address"; "Short-Edge (Landscape)" = "Short-Edge (Landscape)"; "Special Paper" = "Special Paper"; "Spooling job, %.0f%% complete." = "Spooling job, %.0f%% complete."; "Standard" = "Standard"; "Staple" = "Staple"; // TRANSLATORS: Banner/cover sheet before the print job. "Starting Banner" = "Starting Banner"; "Starting page %d." = "Starting page %d."; "Statement" = "Statement"; "Subscription #%d does not exist." = "Subscription #%d does not exist."; "Substitutions:" = "Substitutions:"; "Super A" = "Super A"; "Super B" = "Super B"; "Super B/A3" = "Super B/A3"; "Switching Protocols" = "Switching Protocols"; "Tabloid" = "Tabloid"; "Tabloid Oversize" = "Tabloid Oversize"; "Tabloid Oversize Long Edge" = "Tabloid Oversize Long Edge"; "Tear" = "Tear"; "Tear-Off" = "Tear-Off"; "Tear-Off Adjust Position" = "Tear-Off Adjust Position"; "The \"%s\" attribute is required for print jobs." = "The “%s” attribute is required for print jobs."; "The %s attribute cannot be provided with job-ids." = "The %s attribute cannot be provided with job-ids."; "The '%s' Job Status attribute cannot be supplied in a job creation request." = "The ‘%s’ Job Status attribute cannot be supplied in a job creation request."; "The '%s' operation attribute cannot be supplied in a Create-Job request." = "The ‘%s’ operation attribute cannot be supplied in a Create-Job request."; "The PPD file \"%s\" could not be found." = "The PPD file “%s” could not be found."; "The PPD file \"%s\" could not be opened: %s" = "The PPD file “%s” could not be opened: %s"; "The PPD file could not be opened." = "The PPD file could not be opened."; "The class name may only contain up to 127 printable characters and may not contain spaces, slashes (/), or the pound sign (#)." = "The class name may only contain up to 127 printable characters and may not contain spaces, slashes (/), or the pound sign (#)."; "The notify-lease-duration attribute cannot be used with job subscriptions." = "The notify-lease-duration attribute cannot be used with job subscriptions."; "The notify-user-data value is too large (%d > 63 octets)." = "The notify-user-data value is too large (%d > 63 octets)."; "The printer configuration is incorrect or the printer no longer exists." = "The printer configuration is incorrect or the printer no longer exists."; "The printer did not respond." = "The printer did not respond."; "The printer is in use." = "The printer is in use."; "The printer is not connected." = "The printer is not connected."; "The printer is not responding." = "The printer is not responding."; "The printer is now connected." = "The printer is now connected."; "The printer is now online." = "The printer is now online."; "The printer is offline." = "The printer is offline."; "The printer is unreachable at this time." = "The printer is unreachable at this time."; "The printer may not exist or is unavailable at this time." = "The printer may not exist or is unavailable at this time."; "The printer name may only contain up to 127 printable characters and may not contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the pound sign (#)." = "The printer name may only contain up to 127 printable characters and may not contain spaces, slashes (/ \\), quotes (’ ″), question mark (?), or the pound sign (#)."; "The printer or class does not exist." = "The printer or class does not exist."; "The printer or class is not shared." = "The printer or class is not shared."; "The printer-uri \"%s\" contains invalid characters." = "The printer-uri “%s” contains invalid characters."; "The printer-uri attribute is required." = "The printer-uri attribute is required."; "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." = "The printer-uri must be of the form “ipp://HOSTNAME/classes/CLASSNAME”."; "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." = "The printer-uri must be of the form “ipp://HOSTNAME/printers/PRINTERNAME”."; "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to enable it." = "The web interface is currently disabled. Run “cupsctl WebInterface=yes” to enable it."; "The which-jobs value \"%s\" is not supported." = "The which-jobs value “%s” is not supported."; "There are too many subscriptions." = "There are too many subscriptions."; "There was an unrecoverable USB error." = "There was an unrecoverable USB error."; "Thermal Transfer Media" = "Thermal Transfer Media"; "Too many active jobs." = "Too many active jobs."; "Too many job-sheets values (%d > 2)." = "Too many job-sheets values (%d > 2)."; "Too many printer-state-reasons values (%d > %d)." = "Too many printer-state-reasons values (%d > %d)."; "Transparency" = "Transparency"; "Tray" = "Tray"; "Tray 1" = "Tray 1"; "Tray 2" = "Tray 2"; "Tray 3" = "Tray 3"; "Tray 4" = "Tray 4"; "Trust on first use is disabled." = "Trust on first use is disabled."; "URI Too Long" = "URI Too Long"; "URI too large" = "URI too large"; "US Fanfold" = "US Fanfold"; "US Ledger" = "US Ledger"; "US Legal" = "US Legal"; "US Legal Oversize" = "US Legal Oversize"; "US Letter" = "US Letter"; "US Letter Long Edge" = "US Letter Long Edge"; "US Letter Oversize" = "US Letter Oversize"; "US Letter Oversize Long Edge" = "US Letter Oversize Long Edge"; "US Letter Small" = "US Letter Small"; "Unable to access cupsd.conf file" = "Unable to access cupsd.conf file"; "Unable to access help file." = "Unable to access help file."; "Unable to add class" = "Unable to add class"; "Unable to add document to print job." = "Unable to add document to print job."; "Unable to add job for destination \"%s\"." = "Unable to add job for destination “%s”."; "Unable to add printer" = "Unable to add printer"; "Unable to allocate memory for file types." = "Unable to allocate memory for file types."; "Unable to allocate memory for page info" = "Unable to allocate memory for page info"; "Unable to allocate memory for pages array" = "Unable to allocate memory for pages array"; "Unable to allocate memory for printer" = "Unable to allocate memory for printer"; "Unable to cancel print job." = "Unable to cancel print job."; "Unable to change printer" = "Unable to change printer"; "Unable to change printer-is-shared attribute" = "Unable to change printer-is-shared attribute"; "Unable to change server settings" = "Unable to change server settings"; "Unable to compile mimeMediaType regular expression: %s." = "Unable to compile mimeMediaType regular expression: %s."; "Unable to compile naturalLanguage regular expression: %s." = "Unable to compile naturalLanguage regular expression: %s."; "Unable to configure printer options." = "Unable to configure printer options."; "Unable to connect to host." = "Unable to connect to host."; "Unable to contact printer, queuing on next printer in class." = "Unable to contact printer, queuing on next printer in class."; "Unable to copy PPD file - %s" = "Unable to copy PPD file - %s"; "Unable to copy PPD file." = "Unable to copy PPD file."; "Unable to create credentials from array." = "Unable to create credentials from array."; "Unable to create printer-uri" = "Unable to create printer-uri"; "Unable to create printer." = "Unable to create printer."; "Unable to create server credentials." = "Unable to create server credentials."; "Unable to create spool directory \"%s\": %s" = "Unable to create spool directory “%s”: %s"; "Unable to create temporary file" = "Unable to create temporary file"; "Unable to delete class" = "Unable to delete class"; "Unable to delete printer" = "Unable to delete printer"; "Unable to do maintenance command" = "Unable to do maintenance command"; "Unable to edit cupsd.conf files larger than 1MB" = "Unable to edit cupsd.conf files larger than 1MB"; "Unable to establish a secure connection to host (%d)." = "Unable to establish a secure connection to host (%d)."; "Unable to establish a secure connection to host (certificate chain invalid)." = "Unable to establish a secure connection to host (certificate chain invalid)."; "Unable to establish a secure connection to host (certificate not yet valid)." = "Unable to establish a secure connection to host (certificate not yet valid)."; "Unable to establish a secure connection to host (expired certificate)." = "Unable to establish a secure connection to host (expired certificate)."; "Unable to establish a secure connection to host (host name mismatch)." = "Unable to establish a secure connection to host (host name mismatch)."; "Unable to establish a secure connection to host (peer dropped connection before responding)." = "Unable to establish a secure connection to host (peer dropped connection before responding)."; "Unable to establish a secure connection to host (self-signed certificate)." = "Unable to establish a secure connection to host (self-signed certificate)."; "Unable to establish a secure connection to host (untrusted certificate)." = "Unable to establish a secure connection to host (untrusted certificate)."; "Unable to establish a secure connection to host." = "Unable to establish a secure connection to host."; "Unable to execute command \"%s\": %s" = "Unable to execute command “%s”: %s"; "Unable to find destination for job" = "Unable to find destination for job"; "Unable to find printer." = "Unable to find printer."; "Unable to find server credentials." = "Unable to find server credentials."; "Unable to get backend exit status." = "Unable to get backend exit status."; "Unable to get class list" = "Unable to get class list"; "Unable to get class status" = "Unable to get class status"; "Unable to get list of printer drivers" = "Unable to get list of printer drivers"; "Unable to get printer attributes" = "Unable to get printer attributes"; "Unable to get printer list" = "Unable to get printer list"; "Unable to get printer status" = "Unable to get printer status"; "Unable to get printer status." = "Unable to get printer status."; "Unable to load help index." = "Unable to load help index."; "Unable to locate printer \"%s\"." = "Unable to locate printer “%s”."; "Unable to locate printer." = "Unable to locate printer."; "Unable to modify class" = "Unable to modify class"; "Unable to modify printer" = "Unable to modify printer"; "Unable to move job" = "Unable to move job"; "Unable to move jobs" = "Unable to move jobs"; "Unable to open PPD file" = "Unable to open PPD file"; "Unable to open cupsd.conf file:" = "Unable to open cupsd.conf file:"; "Unable to open device file" = "Unable to open device file"; "Unable to open document #%d in job #%d." = "Unable to open document #%d in job #%d."; "Unable to open help file." = "Unable to open help file."; "Unable to open print file" = "Unable to open print file"; "Unable to open raster file" = "Unable to open raster file"; "Unable to print test page" = "Unable to print test page"; "Unable to read print data." = "Unable to read print data."; "Unable to register \"%s.%s\": %d" = "Unable to register “%s.%s”: %d"; "Unable to rename job document file." = "Unable to rename job document file."; "Unable to resolve printer-uri." = "Unable to resolve printer-uri."; "Unable to see in file" = "Unable to see in file"; "Unable to send command to printer driver" = "Unable to send command to printer driver"; "Unable to send data to printer." = "Unable to send data to printer."; "Unable to set options" = "Unable to set options"; "Unable to set server default" = "Unable to set server default"; "Unable to start backend process." = "Unable to start backend process."; "Unable to upload cupsd.conf file" = "Unable to upload cupsd.conf file"; "Unable to use legacy USB class driver." = "Unable to use legacy USB class driver."; "Unable to write print data" = "Unable to write print data"; "Unable to write uncompressed print data: %s" = "Unable to write uncompressed print data: %s"; "Unauthorized" = "Unauthorized"; "Units" = "Units"; "Unknown" = "Unknown"; "Unknown choice \"%s\" for option \"%s\"." = "Unknown choice “%s” for option “%s”."; "Unknown directive \"%s\" on line %d of \"%s\" ignored." = "Unknown directive “%s” on line %d of “%s” ignored."; "Unknown encryption option value: \"%s\"." = "Unknown encryption option value: “%s”."; "Unknown file order: \"%s\"." = "Unknown file order: “%s”."; "Unknown format character: \"%c\"." = "Unknown format character: “%c”."; "Unknown hash algorithm." = "Unknown hash algorithm."; "Unknown media size name." = "Unknown media size name."; "Unknown option \"%s\" with value \"%s\"." = "Unknown option “%s” with value “%s”."; "Unknown option \"%s\"." = "Unknown option “%s”."; "Unknown print mode: \"%s\"." = "Unknown print mode: “%s”."; "Unknown printer-error-policy \"%s\"." = "Unknown printer-error-policy “%s”."; "Unknown printer-op-policy \"%s\"." = "Unknown printer-op-policy “%s”."; "Unknown request method." = "Unknown request method."; "Unknown request version." = "Unknown request version."; "Unknown scheme in URI" = "Unknown scheme in URI"; "Unknown service name." = "Unknown service name."; "Unknown version option value: \"%s\"." = "Unknown version option value: “%s”."; "Unsupported 'compression' value \"%s\"." = "Unsupported ‘compression’ value “%s”."; "Unsupported 'document-format' value \"%s\"." = "Unsupported ‘document-format’ value “%s”."; "Unsupported 'job-hold-until' value." = "Unsupported ‘job-hold-until’ value."; "Unsupported 'job-name' value." = "Unsupported ‘job-name’ value."; "Unsupported character set \"%s\"." = "Unsupported character set “%s”."; "Unsupported compression \"%s\"." = "Unsupported compression “%s”."; "Unsupported document-format \"%s\"." = "Unsupported document-format “%s”."; "Unsupported document-format \"%s/%s\"." = "Unsupported document-format “%s/%s”."; "Unsupported format \"%s\"." = "Unsupported format “%s”."; "Unsupported margins." = "Unsupported margins."; "Unsupported media value." = "Unsupported media value."; "Unsupported number-up value %d, using number-up=1." = "Unsupported number-up value %d, using number-up=1."; "Unsupported number-up-layout value %s, using number-up-layout=lrtb." = "Unsupported number-up-layout value %s, using number-up-layout=lrtb."; "Unsupported page-border value %s, using page-border=none." = "Unsupported page-border value %s, using page-border=none."; "Unsupported raster data." = "Unsupported raster data."; "Unsupported value type" = "Unsupported value type"; "Upgrade Required" = "Upgrade Required"; "Usage: %s [options] destination(s)" = "Usage: %s [options] destination(s)"; "Usage: %s job-id user title copies options [file]" = "Usage: %s job-id user title copies options [file]"; "Usage: cancel [options] [id]\n cancel [options] [destination]\n cancel [options] [destination-id]" = "Usage: cancel [options] [id]\n cancel [options] [destination]\n cancel [options] [destination-id]"; "Usage: cupsctl [options] [param=value ... paramN=valueN]" = "Usage: cupsctl [options] [param=value … paramN=valueN]"; "Usage: cupsd [options]" = "Usage: cupsd [options]"; "Usage: cupsfilter [ options ] [ -- ] filename" = "Usage: cupsfilter [ options ] [ -- ] filename"; "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n program | cupstestppd [options] -" = "Usage: cupstestppd [options] filename1.ppd[.gz] [… filenameN.ppd[.gz]]\n program | cupstestppd [options] -"; "Usage: ippeveprinter [options] \"name\"" = "Usage: ippeveprinter [options] “name”"; "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n ippfind [options] name[.regtype[.domain.]] ... [expression]\n ippfind --help\n ippfind --version" = "Usage: ippfind [options] regtype[,subtype][.domain.] … [expression]\n ippfind [options] name[.regtype[.domain.]] … [expression]\n ippfind --help\n ippfind --version"; "Usage: ipptool [options] URI filename [ ... filenameN ]" = "Usage: ipptool [options] URI filename [ … filenameN ]"; "Usage: lp [options] [--] [file(s)]\n lp [options] -i id" = "Usage: lp [options] [--] [file(s)]\n lp [options] -i id"; "Usage: lpadmin [options] -d destination\n lpadmin [options] -p destination\n lpadmin [options] -p destination -c class\n lpadmin [options] -p destination -r class\n lpadmin [options] -x destination" = "Usage: lpadmin [options] -d destination\n lpadmin [options] -p destination\n lpadmin [options] -p destination -c class\n lpadmin [options] -p destination -r class\n lpadmin [options] -x destination"; "Usage: lpinfo [options] -m\n lpinfo [options] -v" = "Usage: lpinfo [options] -m\n lpinfo [options] -v"; "Usage: lpmove [options] job destination\n lpmove [options] source-destination destination" = "Usage: lpmove [options] job destination\n lpmove [options] source-destination destination"; "Usage: lpoptions [options] -d destination\n lpoptions [options] [-p destination] [-l]\n lpoptions [options] [-p destination] -o option[=value]\n lpoptions [options] -x destination" = "Usage: lpoptions [options] -d destination\n lpoptions [options] [-p destination] [-l]\n lpoptions [options] [-p destination] -o option[=value]\n lpoptions [options] -x destination"; "Usage: lpq [options] [+interval]" = "Usage: lpq [options] [+interval]"; "Usage: lpr [options] [file(s)]" = "Usage: lpr [options] [file(s)]"; "Usage: lprm [options] [id]\n lprm [options] -" = "Usage: lprm [options] [id]\n lprm [options] -"; "Usage: lpstat [options]" = "Usage: lpstat [options]"; "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" = "Usage: ppdc [options] filename.drv [ … filenameN.drv ]"; "Usage: ppdhtml [options] filename.drv >filename.html" = "Usage: ppdhtml [options] filename.drv >filename.html"; "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" = "Usage: ppdi [options] filename.ppd [ … filenameN.ppd ]"; "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" = "Usage: ppdmerge [options] filename.ppd [ … filenameN.ppd ]"; "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" = "Usage: ppdpo [options] -o filename.po filename.drv [ … filenameN.drv ]"; "Usage: snmp [host-or-ip-address]" = "Usage: snmp [host-or-ip-address]"; "Using spool directory \"%s\"." = "Using spool directory “%s”."; "Value uses indefinite length" = "Value uses indefinite length"; "VarBind uses indefinite length" = "VarBind uses indefinite length"; "Version uses indefinite length" = "Version uses indefinite length"; "Waiting for job to complete." = "Waiting for job to complete."; "Waiting for printer to become available." = "Waiting for printer to become available."; "Waiting for printer to finish." = "Waiting for printer to finish."; "Warning: This program will be removed in a future version of CUPS." = "Warning: This program will be removed in a future version of CUPS."; "Web Interface is Disabled" = "Web Interface is Disabled"; "Yes" = "Yes"; "You cannot access this page." = "You cannot access this page."; "You must access this page using the URL https://%s:%d%s." = "You must access this page using the URL https://%s:%d%s."; "Your account does not have the necessary privileges." = "Your account does not have the necessary privileges."; "ZPL Label Printer" = "ZPL Label Printer"; "Zebra" = "Zebra"; "aborted" = "aborted"; // TRANSLATORS: Accuracy Units "accuracy-units" = "Accuracy Units"; // TRANSLATORS: Millimeters "accuracy-units.mm" = "Millimeters"; // TRANSLATORS: Nanometers "accuracy-units.nm" = "Nanometers"; // TRANSLATORS: Micrometers "accuracy-units.um" = "Micrometers"; // TRANSLATORS: Bale Output "baling" = "Bale Output"; // TRANSLATORS: Bale Using "baling-type" = "Bale Using"; // TRANSLATORS: Band "baling-type.band" = "Band"; // TRANSLATORS: Shrink Wrap "baling-type.shrink-wrap" = "Shrink Wrap"; // TRANSLATORS: Wrap "baling-type.wrap" = "Wrap"; // TRANSLATORS: Bale After "baling-when" = "Bale After"; // TRANSLATORS: Job "baling-when.after-job" = "Job"; // TRANSLATORS: Sets "baling-when.after-sets" = "Sets"; // TRANSLATORS: Bind Output "binding" = "Bind Output"; // TRANSLATORS: Bind Edge "binding-reference-edge" = "Bind Edge"; // TRANSLATORS: Bottom "binding-reference-edge.bottom" = "Bottom"; // TRANSLATORS: Left "binding-reference-edge.left" = "Left"; // TRANSLATORS: Right "binding-reference-edge.right" = "Right"; // TRANSLATORS: Top "binding-reference-edge.top" = "Top"; // TRANSLATORS: Binder Type "binding-type" = "Binder Type"; // TRANSLATORS: Adhesive "binding-type.adhesive" = "Adhesive"; // TRANSLATORS: Comb "binding-type.comb" = "Comb"; // TRANSLATORS: Flat "binding-type.flat" = "Flat"; // TRANSLATORS: Padding "binding-type.padding" = "Padding"; // TRANSLATORS: Perfect "binding-type.perfect" = "Perfect"; // TRANSLATORS: Spiral "binding-type.spiral" = "Spiral"; // TRANSLATORS: Tape "binding-type.tape" = "Tape"; // TRANSLATORS: Velo "binding-type.velo" = "Velo"; "canceled" = "canceled"; // TRANSLATORS: Chamber Humidity "chamber-humidity" = "Chamber Humidity"; // TRANSLATORS: Chamber Temperature "chamber-temperature" = "Chamber Temperature"; // TRANSLATORS: Print Job Cost "charge-info-message" = "Print Job Cost"; // TRANSLATORS: Coat Sheets "coating" = "Coat Sheets"; // TRANSLATORS: Add Coating To "coating-sides" = "Add Coating To"; // TRANSLATORS: Back "coating-sides.back" = "Back"; // TRANSLATORS: Front and Back "coating-sides.both" = "Front and Back"; // TRANSLATORS: Front "coating-sides.front" = "Front"; // TRANSLATORS: Type of Coating "coating-type" = "Type of Coating"; // TRANSLATORS: Archival "coating-type.archival" = "Archival"; // TRANSLATORS: Archival Glossy "coating-type.archival-glossy" = "Archival Glossy"; // TRANSLATORS: Archival Matte "coating-type.archival-matte" = "Archival Matte"; // TRANSLATORS: Archival Semi Gloss "coating-type.archival-semi-gloss" = "Archival Semi Gloss"; // TRANSLATORS: Glossy "coating-type.glossy" = "Glossy"; // TRANSLATORS: High Gloss "coating-type.high-gloss" = "High Gloss"; // TRANSLATORS: Matte "coating-type.matte" = "Matte"; // TRANSLATORS: Semi-gloss "coating-type.semi-gloss" = "Semi-gloss"; // TRANSLATORS: Silicone "coating-type.silicone" = "Silicone"; // TRANSLATORS: Translucent "coating-type.translucent" = "Translucent"; "completed" = "completed"; // TRANSLATORS: Print Confirmation Sheet "confirmation-sheet-print" = "Print Confirmation Sheet"; // TRANSLATORS: Copies "copies" = "Copies"; // TRANSLATORS: Back Cover "cover-back" = "Back Cover"; // TRANSLATORS: Front Cover "cover-front" = "Front Cover"; // TRANSLATORS: Cover Sheet Info "cover-sheet-info" = "Cover Sheet Info"; // TRANSLATORS: Date Time "cover-sheet-info-supported.date-time" = "Date Time"; // TRANSLATORS: From Name "cover-sheet-info-supported.from-name" = "From Name"; // TRANSLATORS: Logo "cover-sheet-info-supported.logo" = "Logo"; // TRANSLATORS: Message "cover-sheet-info-supported.message" = "Message"; // TRANSLATORS: Organization "cover-sheet-info-supported.organization" = "Organization"; // TRANSLATORS: Subject "cover-sheet-info-supported.subject" = "Subject"; // TRANSLATORS: To Name "cover-sheet-info-supported.to-name" = "To Name"; // TRANSLATORS: Printed Cover "cover-type" = "Printed Cover"; // TRANSLATORS: No Cover "cover-type.no-cover" = "No Cover"; // TRANSLATORS: Back Only "cover-type.print-back" = "Back Only"; // TRANSLATORS: Front and Back "cover-type.print-both" = "Front and Back"; // TRANSLATORS: Front Only "cover-type.print-front" = "Front Only"; // TRANSLATORS: None "cover-type.print-none" = "None"; // TRANSLATORS: Cover Output "covering" = "Cover Output"; // TRANSLATORS: Add Cover "covering-name" = "Add Cover"; // TRANSLATORS: Plain "covering-name.plain" = "Plain"; // TRANSLATORS: Pre-cut "covering-name.pre-cut" = "Pre-cut"; // TRANSLATORS: Pre-printed "covering-name.pre-printed" = "Pre-printed"; "cups-deviced failed to execute." = "cups-deviced failed to execute."; "cups-driverd failed to execute." = "cups-driverd failed to execute."; "cupsctl: Cannot set %s directly." = "cupsctl: Cannot set %s directly."; "cupsctl: Unable to connect to server: %s" = "cupsctl: Unable to connect to server: %s"; "cupsctl: Unknown option \"%s\"" = "cupsctl: Unknown option “%s”"; "cupsctl: Unknown option \"-%c\"" = "cupsctl: Unknown option “-%c”"; "cupsd: Expected config filename after \"-c\" option." = "cupsd: Expected config filename after “-c” option."; "cupsd: Expected cups-files.conf filename after \"-s\" option." = "cupsd: Expected cups-files.conf filename after “-s” option."; "cupsd: On-demand support not compiled in, running in normal mode." = "cupsd: On-demand support not compiled in, running in normal mode."; "cupsd: Relative cups-files.conf filename not allowed." = "cupsd: Relative cups-files.conf filename not allowed."; "cupsd: Unable to get current directory." = "cupsd: Unable to get current directory."; "cupsd: Unable to get path to cups-files.conf file." = "cupsd: Unable to get path to cups-files.conf file."; "cupsd: Unknown argument \"%s\" - aborting." = "cupsd: Unknown argument “%s” - aborting."; "cupsd: Unknown option \"%c\" - aborting." = "cupsd: Unknown option “%c” - aborting."; "cupsfilter: Invalid document number %d." = "cupsfilter: Invalid document number %d."; "cupsfilter: Invalid job ID %d." = "cupsfilter: Invalid job ID %d."; "cupsfilter: Only one filename can be specified." = "cupsfilter: Only one filename can be specified."; "cupsfilter: Unable to get job file - %s" = "cupsfilter: Unable to get job file - %s"; "cupstestppd: The -q option is incompatible with the -v option." = "cupstestppd: The -q option is incompatible with the -v option."; "cupstestppd: The -v option is incompatible with the -q option." = "cupstestppd: The -v option is incompatible with the -q option."; // TRANSLATORS: Detailed Status Message "detailed-status-message" = "Detailed Status Message"; "device for %s/%s: %s" = "device for %s/%s: %s"; "device for %s: %s" = "device for %s: %s"; // TRANSLATORS: Copies "document-copies" = "Copies"; // TRANSLATORS: Document Privacy Attributes "document-privacy-attributes" = "Document Privacy Attributes"; // TRANSLATORS: All "document-privacy-attributes.all" = "All"; // TRANSLATORS: Default "document-privacy-attributes.default" = "Default"; // TRANSLATORS: Document Description "document-privacy-attributes.document-description" = "Document Description"; // TRANSLATORS: Document Template "document-privacy-attributes.document-template" = "Document Template"; // TRANSLATORS: None "document-privacy-attributes.none" = "None"; // TRANSLATORS: Document Privacy Scope "document-privacy-scope" = "Document Privacy Scope"; // TRANSLATORS: All "document-privacy-scope.all" = "All"; // TRANSLATORS: Default "document-privacy-scope.default" = "Default"; // TRANSLATORS: None "document-privacy-scope.none" = "None"; // TRANSLATORS: Owner "document-privacy-scope.owner" = "Owner"; // TRANSLATORS: Document State "document-state" = "Document State"; // TRANSLATORS: Detailed Document State "document-state-reasons" = "Detailed Document State"; // TRANSLATORS: Aborted By System "document-state-reasons.aborted-by-system" = "Aborted By System"; // TRANSLATORS: Canceled At Device "document-state-reasons.canceled-at-device" = "Canceled At Device"; // TRANSLATORS: Canceled By Operator "document-state-reasons.canceled-by-operator" = "Canceled By Operator"; // TRANSLATORS: Canceled By User "document-state-reasons.canceled-by-user" = "Canceled By User"; // TRANSLATORS: Completed Successfully "document-state-reasons.completed-successfully" = "Completed Successfully"; // TRANSLATORS: Completed With Errors "document-state-reasons.completed-with-errors" = "Completed With Errors"; // TRANSLATORS: Completed With Warnings "document-state-reasons.completed-with-warnings" = "Completed With Warnings"; // TRANSLATORS: Compression Error "document-state-reasons.compression-error" = "Compression Error"; // TRANSLATORS: Data Insufficient "document-state-reasons.data-insufficient" = "Data Insufficient"; // TRANSLATORS: Digital Signature Did Not Verify "document-state-reasons.digital-signature-did-not-verify" = "Digital Signature Did Not Verify"; // TRANSLATORS: Digital Signature Type Not Supported "document-state-reasons.digital-signature-type-not-supported" = "Digital Signature Type Not Supported"; // TRANSLATORS: Digital Signature Wait "document-state-reasons.digital-signature-wait" = "Digital Signature Wait"; // TRANSLATORS: Document Access Error "document-state-reasons.document-access-error" = "Document Access Error"; // TRANSLATORS: Document Fetchable "document-state-reasons.document-fetchable" = "Document Fetchable"; // TRANSLATORS: Document Format Error "document-state-reasons.document-format-error" = "Document Format Error"; // TRANSLATORS: Document Password Error "document-state-reasons.document-password-error" = "Document Password Error"; // TRANSLATORS: Document Permission Error "document-state-reasons.document-permission-error" = "Document Permission Error"; // TRANSLATORS: Document Security Error "document-state-reasons.document-security-error" = "Document Security Error"; // TRANSLATORS: Document Unprintable Error "document-state-reasons.document-unprintable-error" = "Document Unprintable Error"; // TRANSLATORS: Errors Detected "document-state-reasons.errors-detected" = "Errors Detected"; // TRANSLATORS: Incoming "document-state-reasons.incoming" = "Incoming"; // TRANSLATORS: Interpreting "document-state-reasons.interpreting" = "Interpreting"; // TRANSLATORS: None "document-state-reasons.none" = "None"; // TRANSLATORS: Outgoing "document-state-reasons.outgoing" = "Outgoing"; // TRANSLATORS: Printing "document-state-reasons.printing" = "Printing"; // TRANSLATORS: Processing To Stop Point "document-state-reasons.processing-to-stop-point" = "Processing To Stop Point"; // TRANSLATORS: Queued "document-state-reasons.queued" = "Queued"; // TRANSLATORS: Queued For Marker "document-state-reasons.queued-for-marker" = "Queued For Marker"; // TRANSLATORS: Queued In Device "document-state-reasons.queued-in-device" = "Queued In Device"; // TRANSLATORS: Resources Are Not Ready "document-state-reasons.resources-are-not-ready" = "Resources Are Not Ready"; // TRANSLATORS: Resources Are Not Supported "document-state-reasons.resources-are-not-supported" = "Resources Are Not Supported"; // TRANSLATORS: Submission Interrupted "document-state-reasons.submission-interrupted" = "Submission Interrupted"; // TRANSLATORS: Transforming "document-state-reasons.transforming" = "Transforming"; // TRANSLATORS: Unsupported Compression "document-state-reasons.unsupported-compression" = "Unsupported Compression"; // TRANSLATORS: Unsupported Document Format "document-state-reasons.unsupported-document-format" = "Unsupported Document Format"; // TRANSLATORS: Warnings Detected "document-state-reasons.warnings-detected" = "Warnings Detected"; // TRANSLATORS: Pending "document-state.3" = "Pending"; // TRANSLATORS: Processing "document-state.5" = "Processing"; // TRANSLATORS: Stopped "document-state.6" = "Stopped"; // TRANSLATORS: Canceled "document-state.7" = "Canceled"; // TRANSLATORS: Aborted "document-state.8" = "Aborted"; // TRANSLATORS: Completed "document-state.9" = "Completed"; "error-index uses indefinite length" = "error-index uses indefinite length"; "error-status uses indefinite length" = "error-status uses indefinite length"; "expression --and expression\n Logical AND" = "expression --and expression\n Logical AND"; "expression --or expression\n Logical OR" = "expression --or expression\n Logical OR"; "expression expression Logical AND" = "expression expression Logical AND"; // TRANSLATORS: Feed Orientation "feed-orientation" = "Feed Orientation"; // TRANSLATORS: Long Edge First "feed-orientation.long-edge-first" = "Long Edge First"; // TRANSLATORS: Short Edge First "feed-orientation.short-edge-first" = "Short Edge First"; // TRANSLATORS: Fetch Status Code "fetch-status-code" = "Fetch Status Code"; // TRANSLATORS: Finishing Template "finishing-template" = "Finishing Template"; // TRANSLATORS: Bale "finishing-template.bale" = "Bale"; // TRANSLATORS: Bind "finishing-template.bind" = "Bind"; // TRANSLATORS: Bind Bottom "finishing-template.bind-bottom" = "Bind Bottom"; // TRANSLATORS: Bind Left "finishing-template.bind-left" = "Bind Left"; // TRANSLATORS: Bind Right "finishing-template.bind-right" = "Bind Right"; // TRANSLATORS: Bind Top "finishing-template.bind-top" = "Bind Top"; // TRANSLATORS: Booklet Maker "finishing-template.booklet-maker" = "Booklet Maker"; // TRANSLATORS: Coat "finishing-template.coat" = "Coat"; // TRANSLATORS: Cover "finishing-template.cover" = "Cover"; // TRANSLATORS: Edge Stitch "finishing-template.edge-stitch" = "Edge Stitch"; // TRANSLATORS: Edge Stitch Bottom "finishing-template.edge-stitch-bottom" = "Edge Stitch Bottom"; // TRANSLATORS: Edge Stitch Left "finishing-template.edge-stitch-left" = "Edge Stitch Left"; // TRANSLATORS: Edge Stitch Right "finishing-template.edge-stitch-right" = "Edge Stitch Right"; // TRANSLATORS: Edge Stitch Top "finishing-template.edge-stitch-top" = "Edge Stitch Top"; // TRANSLATORS: Fold "finishing-template.fold" = "Fold"; // TRANSLATORS: Accordion Fold "finishing-template.fold-accordion" = "Accordion Fold"; // TRANSLATORS: Double Gate Fold "finishing-template.fold-double-gate" = "Double Gate Fold"; // TRANSLATORS: Engineering Z Fold "finishing-template.fold-engineering-z" = "Engineering Z Fold"; // TRANSLATORS: Gate Fold "finishing-template.fold-gate" = "Gate Fold"; // TRANSLATORS: Half Fold "finishing-template.fold-half" = "Half Fold"; // TRANSLATORS: Half Z Fold "finishing-template.fold-half-z" = "Half Z Fold"; // TRANSLATORS: Left Gate Fold "finishing-template.fold-left-gate" = "Left Gate Fold"; // TRANSLATORS: Letter Fold "finishing-template.fold-letter" = "Letter Fold"; // TRANSLATORS: Parallel Fold "finishing-template.fold-parallel" = "Parallel Fold"; // TRANSLATORS: Poster Fold "finishing-template.fold-poster" = "Poster Fold"; // TRANSLATORS: Right Gate Fold "finishing-template.fold-right-gate" = "Right Gate Fold"; // TRANSLATORS: Z Fold "finishing-template.fold-z" = "Z Fold"; // TRANSLATORS: JDF F10-1 "finishing-template.jdf-f10-1" = "JDF F10-1"; // TRANSLATORS: JDF F10-2 "finishing-template.jdf-f10-2" = "JDF F10-2"; // TRANSLATORS: JDF F10-3 "finishing-template.jdf-f10-3" = "JDF F10-3"; // TRANSLATORS: JDF F12-1 "finishing-template.jdf-f12-1" = "JDF F12-1"; // TRANSLATORS: JDF F12-10 "finishing-template.jdf-f12-10" = "JDF F12-10"; // TRANSLATORS: JDF F12-11 "finishing-template.jdf-f12-11" = "JDF F12-11"; // TRANSLATORS: JDF F12-12 "finishing-template.jdf-f12-12" = "JDF F12-12"; // TRANSLATORS: JDF F12-13 "finishing-template.jdf-f12-13" = "JDF F12-13"; // TRANSLATORS: JDF F12-14 "finishing-template.jdf-f12-14" = "JDF F12-14"; // TRANSLATORS: JDF F12-2 "finishing-template.jdf-f12-2" = "JDF F12-2"; // TRANSLATORS: JDF F12-3 "finishing-template.jdf-f12-3" = "JDF F12-3"; // TRANSLATORS: JDF F12-4 "finishing-template.jdf-f12-4" = "JDF F12-4"; // TRANSLATORS: JDF F12-5 "finishing-template.jdf-f12-5" = "JDF F12-5"; // TRANSLATORS: JDF F12-6 "finishing-template.jdf-f12-6" = "JDF F12-6"; // TRANSLATORS: JDF F12-7 "finishing-template.jdf-f12-7" = "JDF F12-7"; // TRANSLATORS: JDF F12-8 "finishing-template.jdf-f12-8" = "JDF F12-8"; // TRANSLATORS: JDF F12-9 "finishing-template.jdf-f12-9" = "JDF F12-9"; // TRANSLATORS: JDF F14-1 "finishing-template.jdf-f14-1" = "JDF F14-1"; // TRANSLATORS: JDF F16-1 "finishing-template.jdf-f16-1" = "JDF F16-1"; // TRANSLATORS: JDF F16-10 "finishing-template.jdf-f16-10" = "JDF F16-10"; // TRANSLATORS: JDF F16-11 "finishing-template.jdf-f16-11" = "JDF F16-11"; // TRANSLATORS: JDF F16-12 "finishing-template.jdf-f16-12" = "JDF F16-12"; // TRANSLATORS: JDF F16-13 "finishing-template.jdf-f16-13" = "JDF F16-13"; // TRANSLATORS: JDF F16-14 "finishing-template.jdf-f16-14" = "JDF F16-14"; // TRANSLATORS: JDF F16-2 "finishing-template.jdf-f16-2" = "JDF F16-2"; // TRANSLATORS: JDF F16-3 "finishing-template.jdf-f16-3" = "JDF F16-3"; // TRANSLATORS: JDF F16-4 "finishing-template.jdf-f16-4" = "JDF F16-4"; // TRANSLATORS: JDF F16-5 "finishing-template.jdf-f16-5" = "JDF F16-5"; // TRANSLATORS: JDF F16-6 "finishing-template.jdf-f16-6" = "JDF F16-6"; // TRANSLATORS: JDF F16-7 "finishing-template.jdf-f16-7" = "JDF F16-7"; // TRANSLATORS: JDF F16-8 "finishing-template.jdf-f16-8" = "JDF F16-8"; // TRANSLATORS: JDF F16-9 "finishing-template.jdf-f16-9" = "JDF F16-9"; // TRANSLATORS: JDF F18-1 "finishing-template.jdf-f18-1" = "JDF F18-1"; // TRANSLATORS: JDF F18-2 "finishing-template.jdf-f18-2" = "JDF F18-2"; // TRANSLATORS: JDF F18-3 "finishing-template.jdf-f18-3" = "JDF F18-3"; // TRANSLATORS: JDF F18-4 "finishing-template.jdf-f18-4" = "JDF F18-4"; // TRANSLATORS: JDF F18-5 "finishing-template.jdf-f18-5" = "JDF F18-5"; // TRANSLATORS: JDF F18-6 "finishing-template.jdf-f18-6" = "JDF F18-6"; // TRANSLATORS: JDF F18-7 "finishing-template.jdf-f18-7" = "JDF F18-7"; // TRANSLATORS: JDF F18-8 "finishing-template.jdf-f18-8" = "JDF F18-8"; // TRANSLATORS: JDF F18-9 "finishing-template.jdf-f18-9" = "JDF F18-9"; // TRANSLATORS: JDF F2-1 "finishing-template.jdf-f2-1" = "JDF F2-1"; // TRANSLATORS: JDF F20-1 "finishing-template.jdf-f20-1" = "JDF F20-1"; // TRANSLATORS: JDF F20-2 "finishing-template.jdf-f20-2" = "JDF F20-2"; // TRANSLATORS: JDF F24-1 "finishing-template.jdf-f24-1" = "JDF F24-1"; // TRANSLATORS: JDF F24-10 "finishing-template.jdf-f24-10" = "JDF F24-10"; // TRANSLATORS: JDF F24-11 "finishing-template.jdf-f24-11" = "JDF F24-11"; // TRANSLATORS: JDF F24-2 "finishing-template.jdf-f24-2" = "JDF F24-2"; // TRANSLATORS: JDF F24-3 "finishing-template.jdf-f24-3" = "JDF F24-3"; // TRANSLATORS: JDF F24-4 "finishing-template.jdf-f24-4" = "JDF F24-4"; // TRANSLATORS: JDF F24-5 "finishing-template.jdf-f24-5" = "JDF F24-5"; // TRANSLATORS: JDF F24-6 "finishing-template.jdf-f24-6" = "JDF F24-6"; // TRANSLATORS: JDF F24-7 "finishing-template.jdf-f24-7" = "JDF F24-7"; // TRANSLATORS: JDF F24-8 "finishing-template.jdf-f24-8" = "JDF F24-8"; // TRANSLATORS: JDF F24-9 "finishing-template.jdf-f24-9" = "JDF F24-9"; // TRANSLATORS: JDF F28-1 "finishing-template.jdf-f28-1" = "JDF F28-1"; // TRANSLATORS: JDF F32-1 "finishing-template.jdf-f32-1" = "JDF F32-1"; // TRANSLATORS: JDF F32-2 "finishing-template.jdf-f32-2" = "JDF F32-2"; // TRANSLATORS: JDF F32-3 "finishing-template.jdf-f32-3" = "JDF F32-3"; // TRANSLATORS: JDF F32-4 "finishing-template.jdf-f32-4" = "JDF F32-4"; // TRANSLATORS: JDF F32-5 "finishing-template.jdf-f32-5" = "JDF F32-5"; // TRANSLATORS: JDF F32-6 "finishing-template.jdf-f32-6" = "JDF F32-6"; // TRANSLATORS: JDF F32-7 "finishing-template.jdf-f32-7" = "JDF F32-7"; // TRANSLATORS: JDF F32-8 "finishing-template.jdf-f32-8" = "JDF F32-8"; // TRANSLATORS: JDF F32-9 "finishing-template.jdf-f32-9" = "JDF F32-9"; // TRANSLATORS: JDF F36-1 "finishing-template.jdf-f36-1" = "JDF F36-1"; // TRANSLATORS: JDF F36-2 "finishing-template.jdf-f36-2" = "JDF F36-2"; // TRANSLATORS: JDF F4-1 "finishing-template.jdf-f4-1" = "JDF F4-1"; // TRANSLATORS: JDF F4-2 "finishing-template.jdf-f4-2" = "JDF F4-2"; // TRANSLATORS: JDF F40-1 "finishing-template.jdf-f40-1" = "JDF F40-1"; // TRANSLATORS: JDF F48-1 "finishing-template.jdf-f48-1" = "JDF F48-1"; // TRANSLATORS: JDF F48-2 "finishing-template.jdf-f48-2" = "JDF F48-2"; // TRANSLATORS: JDF F6-1 "finishing-template.jdf-f6-1" = "JDF F6-1"; // TRANSLATORS: JDF F6-2 "finishing-template.jdf-f6-2" = "JDF F6-2"; // TRANSLATORS: JDF F6-3 "finishing-template.jdf-f6-3" = "JDF F6-3"; // TRANSLATORS: JDF F6-4 "finishing-template.jdf-f6-4" = "JDF F6-4"; // TRANSLATORS: JDF F6-5 "finishing-template.jdf-f6-5" = "JDF F6-5"; // TRANSLATORS: JDF F6-6 "finishing-template.jdf-f6-6" = "JDF F6-6"; // TRANSLATORS: JDF F6-7 "finishing-template.jdf-f6-7" = "JDF F6-7"; // TRANSLATORS: JDF F6-8 "finishing-template.jdf-f6-8" = "JDF F6-8"; // TRANSLATORS: JDF F64-1 "finishing-template.jdf-f64-1" = "JDF F64-1"; // TRANSLATORS: JDF F64-2 "finishing-template.jdf-f64-2" = "JDF F64-2"; // TRANSLATORS: JDF F8-1 "finishing-template.jdf-f8-1" = "JDF F8-1"; // TRANSLATORS: JDF F8-2 "finishing-template.jdf-f8-2" = "JDF F8-2"; // TRANSLATORS: JDF F8-3 "finishing-template.jdf-f8-3" = "JDF F8-3"; // TRANSLATORS: JDF F8-4 "finishing-template.jdf-f8-4" = "JDF F8-4"; // TRANSLATORS: JDF F8-5 "finishing-template.jdf-f8-5" = "JDF F8-5"; // TRANSLATORS: JDF F8-6 "finishing-template.jdf-f8-6" = "JDF F8-6"; // TRANSLATORS: JDF F8-7 "finishing-template.jdf-f8-7" = "JDF F8-7"; // TRANSLATORS: Jog Offset "finishing-template.jog-offset" = "Jog Offset"; // TRANSLATORS: Laminate "finishing-template.laminate" = "Laminate"; // TRANSLATORS: Punch "finishing-template.punch" = "Punch"; // TRANSLATORS: Punch Bottom Left "finishing-template.punch-bottom-left" = "Punch Bottom Left"; // TRANSLATORS: Punch Bottom Right "finishing-template.punch-bottom-right" = "Punch Bottom Right"; // TRANSLATORS: 2-hole Punch Bottom "finishing-template.punch-dual-bottom" = "2-hole Punch Bottom"; // TRANSLATORS: 2-hole Punch Left "finishing-template.punch-dual-left" = "2-hole Punch Left"; // TRANSLATORS: 2-hole Punch Right "finishing-template.punch-dual-right" = "2-hole Punch Right"; // TRANSLATORS: 2-hole Punch Top "finishing-template.punch-dual-top" = "2-hole Punch Top"; // TRANSLATORS: Multi-hole Punch Bottom "finishing-template.punch-multiple-bottom" = "Multi-hole Punch Bottom"; // TRANSLATORS: Multi-hole Punch Left "finishing-template.punch-multiple-left" = "Multi-hole Punch Left"; // TRANSLATORS: Multi-hole Punch Right "finishing-template.punch-multiple-right" = "Multi-hole Punch Right"; // TRANSLATORS: Multi-hole Punch Top "finishing-template.punch-multiple-top" = "Multi-hole Punch Top"; // TRANSLATORS: 4-hole Punch Bottom "finishing-template.punch-quad-bottom" = "4-hole Punch Bottom"; // TRANSLATORS: 4-hole Punch Left "finishing-template.punch-quad-left" = "4-hole Punch Left"; // TRANSLATORS: 4-hole Punch Right "finishing-template.punch-quad-right" = "4-hole Punch Right"; // TRANSLATORS: 4-hole Punch Top "finishing-template.punch-quad-top" = "4-hole Punch Top"; // TRANSLATORS: Punch Top Left "finishing-template.punch-top-left" = "Punch Top Left"; // TRANSLATORS: Punch Top Right "finishing-template.punch-top-right" = "Punch Top Right"; // TRANSLATORS: 3-hole Punch Bottom "finishing-template.punch-triple-bottom" = "3-hole Punch Bottom"; // TRANSLATORS: 3-hole Punch Left "finishing-template.punch-triple-left" = "3-hole Punch Left"; // TRANSLATORS: 3-hole Punch Right "finishing-template.punch-triple-right" = "3-hole Punch Right"; // TRANSLATORS: 3-hole Punch Top "finishing-template.punch-triple-top" = "3-hole Punch Top"; // TRANSLATORS: Saddle Stitch "finishing-template.saddle-stitch" = "Saddle Stitch"; // TRANSLATORS: Staple "finishing-template.staple" = "Staple"; // TRANSLATORS: Staple Bottom Left "finishing-template.staple-bottom-left" = "Staple Bottom Left"; // TRANSLATORS: Staple Bottom Right "finishing-template.staple-bottom-right" = "Staple Bottom Right"; // TRANSLATORS: 2 Staples on Bottom "finishing-template.staple-dual-bottom" = "2 Staples on Bottom"; // TRANSLATORS: 2 Staples on Left "finishing-template.staple-dual-left" = "2 Staples on Left"; // TRANSLATORS: 2 Staples on Right "finishing-template.staple-dual-right" = "2 Staples on Right"; // TRANSLATORS: 2 Staples on Top "finishing-template.staple-dual-top" = "2 Staples on Top"; // TRANSLATORS: Staple Top Left "finishing-template.staple-top-left" = "Staple Top Left"; // TRANSLATORS: Staple Top Right "finishing-template.staple-top-right" = "Staple Top Right"; // TRANSLATORS: 3 Staples on Bottom "finishing-template.staple-triple-bottom" = "3 Staples on Bottom"; // TRANSLATORS: 3 Staples on Left "finishing-template.staple-triple-left" = "3 Staples on Left"; // TRANSLATORS: 3 Staples on Right "finishing-template.staple-triple-right" = "3 Staples on Right"; // TRANSLATORS: 3 Staples on Top "finishing-template.staple-triple-top" = "3 Staples on Top"; // TRANSLATORS: Trim "finishing-template.trim" = "Trim"; // TRANSLATORS: Trim After Every Set "finishing-template.trim-after-copies" = "Trim After Every Set"; // TRANSLATORS: Trim After Every Document "finishing-template.trim-after-documents" = "Trim After Every Document"; // TRANSLATORS: Trim After Job "finishing-template.trim-after-job" = "Trim After Job"; // TRANSLATORS: Trim After Every Page "finishing-template.trim-after-pages" = "Trim After Every Page"; // TRANSLATORS: Trim After Every Set "finishing-template.trim-after-sets" = "Trim After Every Set"; // TRANSLATORS: Trim After Every Page "finishing-template.trim-after-sheets" = "Trim After Every Page"; // TRANSLATORS: Finishings "finishings" = "Finishings"; // TRANSLATORS: Finishings "finishings-col" = "Finishings"; // TRANSLATORS: Fold "finishings.10" = "Fold"; // TRANSLATORS: Z Fold "finishings.100" = "Z Fold"; // TRANSLATORS: Engineering Z Fold "finishings.101" = "Engineering Z Fold"; // TRANSLATORS: Trim "finishings.11" = "Trim"; // TRANSLATORS: Bale "finishings.12" = "Bale"; // TRANSLATORS: Booklet Maker "finishings.13" = "Booklet Maker"; // TRANSLATORS: Jog Offset "finishings.14" = "Jog Offset"; // TRANSLATORS: Coat "finishings.15" = "Coat"; // TRANSLATORS: Laminate "finishings.16" = "Laminate"; // TRANSLATORS: Staple Top Left "finishings.20" = "Staple Top Left"; // TRANSLATORS: Staple Bottom Left "finishings.21" = "Staple Bottom Left"; // TRANSLATORS: Staple Top Right "finishings.22" = "Staple Top Right"; // TRANSLATORS: Staple Bottom Right "finishings.23" = "Staple Bottom Right"; // TRANSLATORS: Edge Stitch Left "finishings.24" = "Edge Stitch Left"; // TRANSLATORS: Edge Stitch Top "finishings.25" = "Edge Stitch Top"; // TRANSLATORS: Edge Stitch Right "finishings.26" = "Edge Stitch Right"; // TRANSLATORS: Edge Stitch Bottom "finishings.27" = "Edge Stitch Bottom"; // TRANSLATORS: 2 Staples on Left "finishings.28" = "2 Staples on Left"; // TRANSLATORS: 2 Staples on Top "finishings.29" = "2 Staples on Top"; // TRANSLATORS: None "finishings.3" = "None"; // TRANSLATORS: 2 Staples on Right "finishings.30" = "2 Staples on Right"; // TRANSLATORS: 2 Staples on Bottom "finishings.31" = "2 Staples on Bottom"; // TRANSLATORS: 3 Staples on Left "finishings.32" = "3 Staples on Left"; // TRANSLATORS: 3 Staples on Top "finishings.33" = "3 Staples on Top"; // TRANSLATORS: 3 Staples on Right "finishings.34" = "3 Staples on Right"; // TRANSLATORS: 3 Staples on Bottom "finishings.35" = "3 Staples on Bottom"; // TRANSLATORS: Staple "finishings.4" = "Staple"; // TRANSLATORS: Punch "finishings.5" = "Punch"; // TRANSLATORS: Bind Left "finishings.50" = "Bind Left"; // TRANSLATORS: Bind Top "finishings.51" = "Bind Top"; // TRANSLATORS: Bind Right "finishings.52" = "Bind Right"; // TRANSLATORS: Bind Bottom "finishings.53" = "Bind Bottom"; // TRANSLATORS: Cover "finishings.6" = "Cover"; // TRANSLATORS: Trim Pages "finishings.60" = "Trim Pages"; // TRANSLATORS: Trim Documents "finishings.61" = "Trim Documents"; // TRANSLATORS: Trim Copies "finishings.62" = "Trim Copies"; // TRANSLATORS: Trim Job "finishings.63" = "Trim Job"; // TRANSLATORS: Bind "finishings.7" = "Bind"; // TRANSLATORS: Punch Top Left "finishings.70" = "Punch Top Left"; // TRANSLATORS: Punch Bottom Left "finishings.71" = "Punch Bottom Left"; // TRANSLATORS: Punch Top Right "finishings.72" = "Punch Top Right"; // TRANSLATORS: Punch Bottom Right "finishings.73" = "Punch Bottom Right"; // TRANSLATORS: 2-hole Punch Left "finishings.74" = "2-hole Punch Left"; // TRANSLATORS: 2-hole Punch Top "finishings.75" = "2-hole Punch Top"; // TRANSLATORS: 2-hole Punch Right "finishings.76" = "2-hole Punch Right"; // TRANSLATORS: 2-hole Punch Bottom "finishings.77" = "2-hole Punch Bottom"; // TRANSLATORS: 3-hole Punch Left "finishings.78" = "3-hole Punch Left"; // TRANSLATORS: 3-hole Punch Top "finishings.79" = "3-hole Punch Top"; // TRANSLATORS: Saddle Stitch "finishings.8" = "Saddle Stitch"; // TRANSLATORS: 3-hole Punch Right "finishings.80" = "3-hole Punch Right"; // TRANSLATORS: 3-hole Punch Bottom "finishings.81" = "3-hole Punch Bottom"; // TRANSLATORS: 4-hole Punch Left "finishings.82" = "4-hole Punch Left"; // TRANSLATORS: 4-hole Punch Top "finishings.83" = "4-hole Punch Top"; // TRANSLATORS: 4-hole Punch Right "finishings.84" = "4-hole Punch Right"; // TRANSLATORS: 4-hole Punch Bottom "finishings.85" = "4-hole Punch Bottom"; // TRANSLATORS: Multi-hole Punch Left "finishings.86" = "Multi-hole Punch Left"; // TRANSLATORS: Multi-hole Punch Top "finishings.87" = "Multi-hole Punch Top"; // TRANSLATORS: Multi-hole Punch Right "finishings.88" = "Multi-hole Punch Right"; // TRANSLATORS: Multi-hole Punch Bottom "finishings.89" = "Multi-hole Punch Bottom"; // TRANSLATORS: Edge Stitch "finishings.9" = "Edge Stitch"; // TRANSLATORS: Accordion Fold "finishings.90" = "Accordion Fold"; // TRANSLATORS: Double Gate Fold "finishings.91" = "Double Gate Fold"; // TRANSLATORS: Gate Fold "finishings.92" = "Gate Fold"; // TRANSLATORS: Half Fold "finishings.93" = "Half Fold"; // TRANSLATORS: Half Z Fold "finishings.94" = "Half Z Fold"; // TRANSLATORS: Left Gate Fold "finishings.95" = "Left Gate Fold"; // TRANSLATORS: Letter Fold "finishings.96" = "Letter Fold"; // TRANSLATORS: Parallel Fold "finishings.97" = "Parallel Fold"; // TRANSLATORS: Poster Fold "finishings.98" = "Poster Fold"; // TRANSLATORS: Right Gate Fold "finishings.99" = "Right Gate Fold"; // TRANSLATORS: Fold "folding" = "Fold"; // TRANSLATORS: Fold Direction "folding-direction" = "Fold Direction"; // TRANSLATORS: Inward "folding-direction.inward" = "Inward"; // TRANSLATORS: Outward "folding-direction.outward" = "Outward"; // TRANSLATORS: Fold Position "folding-offset" = "Fold Position"; // TRANSLATORS: Fold Edge "folding-reference-edge" = "Fold Edge"; // TRANSLATORS: Bottom "folding-reference-edge.bottom" = "Bottom"; // TRANSLATORS: Left "folding-reference-edge.left" = "Left"; // TRANSLATORS: Right "folding-reference-edge.right" = "Right"; // TRANSLATORS: Top "folding-reference-edge.top" = "Top"; // TRANSLATORS: Font Name "font-name-requested" = "Font Name"; // TRANSLATORS: Font Size "font-size-requested" = "Font Size"; // TRANSLATORS: Force Front Side "force-front-side" = "Force Front Side"; // TRANSLATORS: From Name "from-name" = "From Name"; "held" = "held"; "help\t\tGet help on commands." = "help\t\tGet help on commands."; "idle" = "idle"; // TRANSLATORS: Imposition Template "imposition-template" = "Imposition Template"; // TRANSLATORS: None "imposition-template.none" = "None"; // TRANSLATORS: Signature "imposition-template.signature" = "Signature"; // TRANSLATORS: Insert Page Number "insert-after-page-number" = "Insert Page Number"; // TRANSLATORS: Insert Count "insert-count" = "Insert Count"; // TRANSLATORS: Insert Sheet "insert-sheet" = "Insert Sheet"; "ippeveprinter: Unable to open \"%s\": %s on line %d." = "ippeveprinter: Unable to open “%s”: %s on line %d."; "ippfind: Bad regular expression: %s" = "ippfind: Bad regular expression: %s"; "ippfind: Cannot use --and after --or." = "ippfind: Cannot use --and after --or."; "ippfind: Expected key name after %s." = "ippfind: Expected key name after %s."; "ippfind: Expected port range after %s." = "ippfind: Expected port range after %s."; "ippfind: Expected program after %s." = "ippfind: Expected program after %s."; "ippfind: Expected semi-colon after %s." = "ippfind: Expected semi-colon after %s."; "ippfind: Missing close brace in substitution." = "ippfind: Missing close brace in substitution."; "ippfind: Missing close parenthesis." = "ippfind: Missing close parenthesis."; "ippfind: Missing expression before \"--and\"." = "ippfind: Missing expression before “--and”."; "ippfind: Missing expression before \"--or\"." = "ippfind: Missing expression before “--or”."; "ippfind: Missing key name after %s." = "ippfind: Missing key name after %s."; "ippfind: Missing name after %s." = "ippfind: Missing name after %s."; "ippfind: Missing open parenthesis." = "ippfind: Missing open parenthesis."; "ippfind: Missing program after %s." = "ippfind: Missing program after %s."; "ippfind: Missing regular expression after %s." = "ippfind: Missing regular expression after %s."; "ippfind: Missing semi-colon after %s." = "ippfind: Missing semi-colon after %s."; "ippfind: Out of memory." = "ippfind: Out of memory."; "ippfind: Too many parenthesis." = "ippfind: Too many parenthesis."; "ippfind: Unable to browse or resolve: %s" = "ippfind: Unable to browse or resolve: %s"; "ippfind: Unable to execute \"%s\": %s" = "ippfind: Unable to execute “%s”: %s"; "ippfind: Unable to use Bonjour: %s" = "ippfind: Unable to use Bonjour: %s"; "ippfind: Unknown variable \"{%s}\"." = "ippfind: Unknown variable “{%s}”."; "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", and \"-X\"." = "ipptool: “-i” and “-n” are incompatible with “--ippserver”, “-P”, and “-X”."; "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." = "ipptool: “-i” and “-n” are incompatible with “-P” and “-X”."; "ipptool: Bad URI \"%s\"." = "ipptool: Bad URI “%s”."; "ipptool: Invalid seconds for \"-i\"." = "ipptool: Invalid seconds for “-i”."; "ipptool: May only specify a single URI." = "ipptool: May only specify a single URI."; "ipptool: Missing count for \"-n\"." = "ipptool: Missing count for “-n”."; "ipptool: Missing filename for \"--ippserver\"." = "ipptool: Missing filename for “--ippserver”."; "ipptool: Missing filename for \"-f\"." = "ipptool: Missing filename for “-f”."; "ipptool: Missing name=value for \"-d\"." = "ipptool: Missing name=value for “-d”."; "ipptool: Missing seconds for \"-i\"." = "ipptool: Missing seconds for “-i”."; "ipptool: URI required before test file." = "ipptool: URI required before test file."; // TRANSLATORS: Job Account ID "job-account-id" = "Job Account ID"; // TRANSLATORS: Job Account Type "job-account-type" = "Job Account Type"; // TRANSLATORS: General "job-account-type.general" = "General"; // TRANSLATORS: Group "job-account-type.group" = "Group"; // TRANSLATORS: None "job-account-type.none" = "None"; // TRANSLATORS: Job Accounting Output Bin "job-accounting-output-bin" = "Job Accounting Output Bin"; // TRANSLATORS: Job Accounting Sheets "job-accounting-sheets" = "Job Accounting Sheets"; // TRANSLATORS: Type of Job Accounting Sheets "job-accounting-sheets-type" = "Type of Job Accounting Sheets"; // TRANSLATORS: None "job-accounting-sheets-type.none" = "None"; // TRANSLATORS: Standard "job-accounting-sheets-type.standard" = "Standard"; // TRANSLATORS: Job Accounting User ID "job-accounting-user-id" = "Job Accounting User ID"; // TRANSLATORS: Job Cancel After "job-cancel-after" = "Cancel job after"; // TRANSLATORS: Copies "job-copies" = "Copies"; // TRANSLATORS: Back Cover "job-cover-back" = "Back Cover"; // TRANSLATORS: Front Cover "job-cover-front" = "Front Cover"; // TRANSLATORS: Delay Output Until "job-delay-output-until" = "Delay Output Until"; // TRANSLATORS: Delay Output Until "job-delay-output-until-time" = "Delay Output Until"; // TRANSLATORS: Daytime "job-delay-output-until.day-time" = "Daytime"; // TRANSLATORS: Evening "job-delay-output-until.evening" = "Evening"; // TRANSLATORS: Released "job-delay-output-until.indefinite" = "Released"; // TRANSLATORS: Night "job-delay-output-until.night" = "Night"; // TRANSLATORS: No Delay "job-delay-output-until.no-delay-output" = "No Delay"; // TRANSLATORS: Second Shift "job-delay-output-until.second-shift" = "Second Shift"; // TRANSLATORS: Third Shift "job-delay-output-until.third-shift" = "Third Shift"; // TRANSLATORS: Weekend "job-delay-output-until.weekend" = "Weekend"; // TRANSLATORS: On Error "job-error-action" = "On Error"; // TRANSLATORS: Abort Job "job-error-action.abort-job" = "Abort Job"; // TRANSLATORS: Cancel Job "job-error-action.cancel-job" = "Cancel Job"; // TRANSLATORS: Continue Job "job-error-action.continue-job" = "Continue Job"; // TRANSLATORS: Suspend Job "job-error-action.suspend-job" = "Suspend Job"; // TRANSLATORS: Print Error Sheet "job-error-sheet" = "Print Error Sheet"; // TRANSLATORS: Type of Error Sheet "job-error-sheet-type" = "Type of Error Sheet"; // TRANSLATORS: None "job-error-sheet-type.none" = "None"; // TRANSLATORS: Standard "job-error-sheet-type.standard" = "Standard"; // TRANSLATORS: Print Error Sheet "job-error-sheet-when" = "Print Error Sheet"; // TRANSLATORS: Always "job-error-sheet-when.always" = "Always"; // TRANSLATORS: On Error "job-error-sheet-when.on-error" = "On Error"; // TRANSLATORS: Job Finishings "job-finishings" = "Job Finishings"; // TRANSLATORS: Hold Until "job-hold-until" = "Hold Until"; // TRANSLATORS: Hold Until "job-hold-until-time" = "Hold Until"; // TRANSLATORS: Daytime "job-hold-until.day-time" = "Daytime"; // TRANSLATORS: Evening "job-hold-until.evening" = "Evening"; // TRANSLATORS: Released "job-hold-until.indefinite" = "Released"; // TRANSLATORS: Night "job-hold-until.night" = "Night"; // TRANSLATORS: No Hold "job-hold-until.no-hold" = "No Hold"; // TRANSLATORS: Second Shift "job-hold-until.second-shift" = "Second Shift"; // TRANSLATORS: Third Shift "job-hold-until.third-shift" = "Third Shift"; // TRANSLATORS: Weekend "job-hold-until.weekend" = "Weekend"; // TRANSLATORS: Job Mandatory Attributes "job-mandatory-attributes" = "Job Mandatory Attributes"; // TRANSLATORS: Title "job-name" = "Title"; // TRANSLATORS: Job Pages "job-pages" = "Job Pages"; // TRANSLATORS: Job Pages "job-pages-col" = "Job Pages"; // TRANSLATORS: Job Phone Number "job-phone-number" = "Job Phone Number"; "job-printer-uri attribute missing." = "job-printer-uri attribute missing."; // TRANSLATORS: Job Priority "job-priority" = "Job Priority"; // TRANSLATORS: Job Privacy Attributes "job-privacy-attributes" = "Job Privacy Attributes"; // TRANSLATORS: All "job-privacy-attributes.all" = "All"; // TRANSLATORS: Default "job-privacy-attributes.default" = "Default"; // TRANSLATORS: Job Description "job-privacy-attributes.job-description" = "Job Description"; // TRANSLATORS: Job Template "job-privacy-attributes.job-template" = "Job Template"; // TRANSLATORS: None "job-privacy-attributes.none" = "None"; // TRANSLATORS: Job Privacy Scope "job-privacy-scope" = "Job Privacy Scope"; // TRANSLATORS: All "job-privacy-scope.all" = "All"; // TRANSLATORS: Default "job-privacy-scope.default" = "Default"; // TRANSLATORS: None "job-privacy-scope.none" = "None"; // TRANSLATORS: Owner "job-privacy-scope.owner" = "Owner"; // TRANSLATORS: Job Recipient Name "job-recipient-name" = "Job Recipient Name"; // TRANSLATORS: Job Retain Until "job-retain-until" = "Retain job until"; // TRANSLATORS: Job Retain Until Interval "job-retain-until-interval" = "Retain job until interval"; // TRANSLATORS: Job Retain Until Time "job-retain-until-time" = "Retain job until time"; // TRANSLATORS: End Of Day "job-retain-until.end-of-day" = "End of day"; // TRANSLATORS: End Of Month "job-retain-until.end-of-month" = "End of month"; // TRANSLATORS: End Of Week "job-retain-until.end-of-week" = "End of week"; // TRANSLATORS: Indefinite "job-retain-until.indefinite" = "Indefinitely"; // TRANSLATORS: None "job-retain-until.none" = "Never"; // TRANSLATORS: Job Save Disposition "job-save-disposition" = "Job Save Disposition"; // TRANSLATORS: Job Sheet Message "job-sheet-message" = "Job Sheet Message"; // TRANSLATORS: Banner Page "job-sheets" = "Banner Page"; // TRANSLATORS: Banner Page "job-sheets-col" = "Banner Page"; // TRANSLATORS: First Page in Document "job-sheets.first-print-stream-page" = "First Page in Document"; // TRANSLATORS: Start and End Sheets "job-sheets.job-both-sheet" = "Start and End Sheets"; // TRANSLATORS: End Sheet "job-sheets.job-end-sheet" = "End Sheet"; // TRANSLATORS: Start Sheet "job-sheets.job-start-sheet" = "Start Sheet"; // TRANSLATORS: None "job-sheets.none" = "None"; // TRANSLATORS: Standard "job-sheets.standard" = "Standard"; // TRANSLATORS: Job State "job-state" = "Job State"; // TRANSLATORS: Job State Message "job-state-message" = "Job State Message"; // TRANSLATORS: Detailed Job State "job-state-reasons" = "Detailed Job State"; // TRANSLATORS: Stopping "job-state-reasons.aborted-by-system" = "Aborted By System"; // TRANSLATORS: Account Authorization Failed "job-state-reasons.account-authorization-failed" = "Account Authorization Failed"; // TRANSLATORS: Account Closed "job-state-reasons.account-closed" = "Account Closed"; // TRANSLATORS: Account Info Needed "job-state-reasons.account-info-needed" = "Account Info Needed"; // TRANSLATORS: Account Limit Reached "job-state-reasons.account-limit-reached" = "Account Limit Reached"; // TRANSLATORS: Decompression error "job-state-reasons.compression-error" = "Compression Error"; // TRANSLATORS: Conflicting Attributes "job-state-reasons.conflicting-attributes" = "Conflicting Attributes"; // TRANSLATORS: Connected To Destination "job-state-reasons.connected-to-destination" = "Connected To Destination"; // TRANSLATORS: Connecting To Destination "job-state-reasons.connecting-to-destination" = "Connecting To Destination"; // TRANSLATORS: Destination Uri Failed "job-state-reasons.destination-uri-failed" = "Destination Uri Failed"; // TRANSLATORS: Digital Signature Did Not Verify "job-state-reasons.digital-signature-did-not-verify" = "Digital Signature Did Not Verify"; // TRANSLATORS: Digital Signature Type Not Supported "job-state-reasons.digital-signature-type-not-supported" = "Digital Signature Type Not Supported"; // TRANSLATORS: Document Access Error "job-state-reasons.document-access-error" = "Document Access Error"; // TRANSLATORS: Document Format Error "job-state-reasons.document-format-error" = "Document Format Error"; // TRANSLATORS: Document Password Error "job-state-reasons.document-password-error" = "Document Password Error"; // TRANSLATORS: Document Permission Error "job-state-reasons.document-permission-error" = "Document Permission Error"; // TRANSLATORS: Document Security Error "job-state-reasons.document-security-error" = "Document Security Error"; // TRANSLATORS: Document Unprintable Error "job-state-reasons.document-unprintable-error" = "Document Unprintable Error"; // TRANSLATORS: Errors Detected "job-state-reasons.errors-detected" = "Errors Detected"; // TRANSLATORS: Canceled at printer "job-state-reasons.job-canceled-at-device" = "Job Canceled At Device"; // TRANSLATORS: Canceled by operator "job-state-reasons.job-canceled-by-operator" = "Job Canceled By Operator"; // TRANSLATORS: Canceled by user "job-state-reasons.job-canceled-by-user" = "Job Canceled By User"; // TRANSLATORS: "job-state-reasons.job-completed-successfully" = "Job Completed Successfully"; // TRANSLATORS: Completed with errors "job-state-reasons.job-completed-with-errors" = "Job Completed With Errors"; // TRANSLATORS: Completed with warnings "job-state-reasons.job-completed-with-warnings" = "Job Completed With Warnings"; // TRANSLATORS: Insufficient data "job-state-reasons.job-data-insufficient" = "Job Data Insufficient"; // TRANSLATORS: Job Delay Output Until Specified "job-state-reasons.job-delay-output-until-specified" = "Job Delay Output Until Specified"; // TRANSLATORS: Job Digital Signature Wait "job-state-reasons.job-digital-signature-wait" = "Job Digital Signature Wait"; // TRANSLATORS: Job Fetchable "job-state-reasons.job-fetchable" = "Job Fetchable"; // TRANSLATORS: Job Held For Review "job-state-reasons.job-held-for-review" = "Job Held For Review"; // TRANSLATORS: Job held "job-state-reasons.job-hold-until-specified" = "Job Hold Until Specified"; // TRANSLATORS: Incoming "job-state-reasons.job-incoming" = "Job Incoming"; // TRANSLATORS: Interpreting "job-state-reasons.job-interpreting" = "Job Interpreting"; // TRANSLATORS: Outgoing "job-state-reasons.job-outgoing" = "Job Outgoing"; // TRANSLATORS: Job Password Wait "job-state-reasons.job-password-wait" = "Job Password Wait"; // TRANSLATORS: Job Printed Successfully "job-state-reasons.job-printed-successfully" = "Job Printed Successfully"; // TRANSLATORS: Job Printed With Errors "job-state-reasons.job-printed-with-errors" = "Job Printed With Errors"; // TRANSLATORS: Job Printed With Warnings "job-state-reasons.job-printed-with-warnings" = "Job Printed With Warnings"; // TRANSLATORS: Printing "job-state-reasons.job-printing" = "Job Printing"; // TRANSLATORS: Preparing to print "job-state-reasons.job-queued" = "Job Queued"; // TRANSLATORS: Processing document "job-state-reasons.job-queued-for-marker" = "Job Queued For Marker"; // TRANSLATORS: Job Release Wait "job-state-reasons.job-release-wait" = "Job Release Wait"; // TRANSLATORS: Restartable "job-state-reasons.job-restartable" = "Job Restartable"; // TRANSLATORS: Job Resuming "job-state-reasons.job-resuming" = "Job Resuming"; // TRANSLATORS: Job Saved Successfully "job-state-reasons.job-saved-successfully" = "Job Saved Successfully"; // TRANSLATORS: Job Saved With Errors "job-state-reasons.job-saved-with-errors" = "Job Saved With Errors"; // TRANSLATORS: Job Saved With Warnings "job-state-reasons.job-saved-with-warnings" = "Job Saved With Warnings"; // TRANSLATORS: Job Saving "job-state-reasons.job-saving" = "Job Saving"; // TRANSLATORS: Job Spooling "job-state-reasons.job-spooling" = "Job Spooling"; // TRANSLATORS: Job Streaming "job-state-reasons.job-streaming" = "Job Streaming"; // TRANSLATORS: Suspended "job-state-reasons.job-suspended" = "Job Suspended"; // TRANSLATORS: Job Suspended By Operator "job-state-reasons.job-suspended-by-operator" = "Job Suspended By Operator"; // TRANSLATORS: Job Suspended By System "job-state-reasons.job-suspended-by-system" = "Job Suspended By System"; // TRANSLATORS: Job Suspended By User "job-state-reasons.job-suspended-by-user" = "Job Suspended By User"; // TRANSLATORS: Job Suspending "job-state-reasons.job-suspending" = "Job Suspending"; // TRANSLATORS: Job Transferring "job-state-reasons.job-transferring" = "Job Transferring"; // TRANSLATORS: Transforming "job-state-reasons.job-transforming" = "Job Transforming"; // TRANSLATORS: None "job-state-reasons.none" = "None"; // TRANSLATORS: Printer offline "job-state-reasons.printer-stopped" = "Printer Stopped"; // TRANSLATORS: Printer partially stopped "job-state-reasons.printer-stopped-partly" = "Printer Stopped Partly"; // TRANSLATORS: Stopping "job-state-reasons.processing-to-stop-point" = "Processing To Stop Point"; // TRANSLATORS: Ready "job-state-reasons.queued-in-device" = "Queued In Device"; // TRANSLATORS: Resources Are Not Ready "job-state-reasons.resources-are-not-ready" = "Resources Are Not Ready"; // TRANSLATORS: Resources Are Not Supported "job-state-reasons.resources-are-not-supported" = "Resources Are Not Supported"; // TRANSLATORS: Service offline "job-state-reasons.service-off-line" = "Service Off Line"; // TRANSLATORS: Submission Interrupted "job-state-reasons.submission-interrupted" = "Submission Interrupted"; // TRANSLATORS: Unsupported Attributes Or Values "job-state-reasons.unsupported-attributes-or-values" = "Unsupported Attributes Or Values"; // TRANSLATORS: Unsupported Compression "job-state-reasons.unsupported-compression" = "Unsupported Compression"; // TRANSLATORS: Unsupported Document Format "job-state-reasons.unsupported-document-format" = "Unsupported Document Format"; // TRANSLATORS: Waiting For User Action "job-state-reasons.waiting-for-user-action" = "Waiting For User Action"; // TRANSLATORS: Warnings Detected "job-state-reasons.warnings-detected" = "Warnings Detected"; // TRANSLATORS: Pending "job-state.3" = "Pending"; // TRANSLATORS: Held "job-state.4" = "Held"; // TRANSLATORS: Processing "job-state.5" = "Processing"; // TRANSLATORS: Stopped "job-state.6" = "Stopped"; // TRANSLATORS: Canceled "job-state.7" = "Canceled"; // TRANSLATORS: Aborted "job-state.8" = "Aborted"; // TRANSLATORS: Completed "job-state.9" = "Completed"; // TRANSLATORS: Laminate Pages "laminating" = "Laminate Pages"; // TRANSLATORS: Laminate "laminating-sides" = "Laminate"; // TRANSLATORS: Back Only "laminating-sides.back" = "Back Only"; // TRANSLATORS: Front and Back "laminating-sides.both" = "Front and Back"; // TRANSLATORS: Front Only "laminating-sides.front" = "Front Only"; // TRANSLATORS: Type of Lamination "laminating-type" = "Type of Lamination"; // TRANSLATORS: Archival "laminating-type.archival" = "Archival"; // TRANSLATORS: Glossy "laminating-type.glossy" = "Glossy"; // TRANSLATORS: High Gloss "laminating-type.high-gloss" = "High Gloss"; // TRANSLATORS: Matte "laminating-type.matte" = "Matte"; // TRANSLATORS: Semi-gloss "laminating-type.semi-gloss" = "Semi-gloss"; // TRANSLATORS: Translucent "laminating-type.translucent" = "Translucent"; // TRANSLATORS: Logo "logo" = "Logo"; "lpadmin: Class name can only contain printable characters." = "lpadmin: Class name can only contain printable characters."; "lpadmin: Expected PPD after \"-%c\" option." = "lpadmin: Expected PPD after “-%c” option."; "lpadmin: Expected allow/deny:userlist after \"-u\" option." = "lpadmin: Expected allow/deny:userlist after “-u” option."; "lpadmin: Expected class after \"-r\" option." = "lpadmin: Expected class after “-r” option."; "lpadmin: Expected class name after \"-c\" option." = "lpadmin: Expected class name after “-c” option."; "lpadmin: Expected description after \"-D\" option." = "lpadmin: Expected description after “-D” option."; "lpadmin: Expected device URI after \"-v\" option." = "lpadmin: Expected device URI after “-v” option."; "lpadmin: Expected file type(s) after \"-I\" option." = "lpadmin: Expected file type(s) after “-I” option."; "lpadmin: Expected hostname after \"-h\" option." = "lpadmin: Expected hostname after “-h” option."; "lpadmin: Expected location after \"-L\" option." = "lpadmin: Expected location after “-L” option."; "lpadmin: Expected model after \"-m\" option." = "lpadmin: Expected model after “-m” option."; "lpadmin: Expected name after \"-R\" option." = "lpadmin: Expected name after “-R” option."; "lpadmin: Expected name=value after \"-o\" option." = "lpadmin: Expected name=value after “-o” option."; "lpadmin: Expected printer after \"-p\" option." = "lpadmin: Expected printer after “-p” option."; "lpadmin: Expected printer name after \"-d\" option." = "lpadmin: Expected printer name after “-d” option."; "lpadmin: Expected printer or class after \"-x\" option." = "lpadmin: Expected printer or class after “-x” option."; "lpadmin: No member names were seen." = "lpadmin: No member names were seen."; "lpadmin: Printer %s is already a member of class %s." = "lpadmin: Printer %s is already a member of class %s."; "lpadmin: Printer %s is not a member of class %s." = "lpadmin: Printer %s is not a member of class %s."; "lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS." = "lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS."; "lpadmin: Printer name can only contain printable characters." = "lpadmin: Printer name can only contain printable characters."; "lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS." = "lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS."; "lpadmin: Raw queues are no longer supported on macOS." = "lpadmin: Raw queues are no longer supported on macOS."; "lpadmin: System V interface scripts are no longer supported for security reasons." = "lpadmin: System V interface scripts are no longer supported for security reasons."; "lpadmin: Unable to add a printer to the class:\n You must specify a printer name first." = "lpadmin: Unable to add a printer to the class:\n You must specify a printer name first."; "lpadmin: Unable to connect to server: %s" = "lpadmin: Unable to connect to server: %s"; "lpadmin: Unable to create temporary file" = "lpadmin: Unable to create temporary file"; "lpadmin: Unable to delete option:\n You must specify a printer name first." = "lpadmin: Unable to delete option:\n You must specify a printer name first."; "lpadmin: Unable to open PPD \"%s\": %s" = "lpadmin: Unable to open PPD “%s”: %s"; "lpadmin: Unable to open PPD \"%s\": %s on line %d." = "lpadmin: Unable to open PPD “%s”: %s on line %d."; "lpadmin: Unable to remove a printer from the class:\n You must specify a printer name first." = "lpadmin: Unable to remove a printer from the class:\n You must specify a printer name first."; "lpadmin: Unable to set the printer options:\n You must specify a printer name first." = "lpadmin: Unable to set the printer options:\n You must specify a printer name first."; "lpadmin: Unknown allow/deny option \"%s\"." = "lpadmin: Unknown allow/deny option “%s”."; "lpadmin: Unknown argument \"%s\"." = "lpadmin: Unknown argument “%s”."; "lpadmin: Unknown option \"%c\"." = "lpadmin: Unknown option “%c”."; "lpadmin: Use the 'everywhere' model for shared printers." = "lpadmin: Use the ‘everywhere’ model for shared printers."; "lpadmin: Warning - content type list ignored." = "lpadmin: Warning - content type list ignored."; "lpc> " = "lpc> "; "lpinfo: Expected 1284 device ID string after \"--device-id\"." = "lpinfo: Expected 1284 device ID string after “--device-id”."; "lpinfo: Expected language after \"--language\"." = "lpinfo: Expected language after “--language”."; "lpinfo: Expected make and model after \"--make-and-model\"." = "lpinfo: Expected make and model after “--make-and-model”."; "lpinfo: Expected product string after \"--product\"." = "lpinfo: Expected product string after “--product”."; "lpinfo: Expected scheme list after \"--exclude-schemes\"." = "lpinfo: Expected scheme list after “--exclude-schemes”."; "lpinfo: Expected scheme list after \"--include-schemes\"." = "lpinfo: Expected scheme list after “--include-schemes”."; "lpinfo: Expected timeout after \"--timeout\"." = "lpinfo: Expected timeout after “--timeout”."; "lpmove: Unable to connect to server: %s" = "lpmove: Unable to connect to server: %s"; "lpmove: Unknown argument \"%s\"." = "lpmove: Unknown argument “%s”."; "lpoptions: No printers." = "lpoptions: No printers."; "lpoptions: Unable to add printer or instance: %s" = "lpoptions: Unable to add printer or instance: %s"; "lpoptions: Unable to get PPD file for %s: %s" = "lpoptions: Unable to get PPD file for %s: %s"; "lpoptions: Unable to open PPD file for %s." = "lpoptions: Unable to open PPD file for %s."; "lpoptions: Unknown printer or class." = "lpoptions: Unknown printer or class."; "lpstat: error - %s environment variable names non-existent destination \"%s\"." = "lpstat: error - %s environment variable names non-existent destination \"%s\"."; // TRANSLATORS: Amount of Material "material-amount" = "Amount of Material"; // TRANSLATORS: Amount Units "material-amount-units" = "Amount Units"; // TRANSLATORS: Grams "material-amount-units.g" = "Grams"; // TRANSLATORS: Kilograms "material-amount-units.kg" = "Kilograms"; // TRANSLATORS: Liters "material-amount-units.l" = "Liters"; // TRANSLATORS: Meters "material-amount-units.m" = "Meters"; // TRANSLATORS: Milliliters "material-amount-units.ml" = "Milliliters"; // TRANSLATORS: Millimeters "material-amount-units.mm" = "Millimeters"; // TRANSLATORS: Material Color "material-color" = "Material Color"; // TRANSLATORS: Material Diameter "material-diameter" = "Material Diameter"; // TRANSLATORS: Material Diameter Tolerance "material-diameter-tolerance" = "Material Diameter Tolerance"; // TRANSLATORS: Material Fill Density "material-fill-density" = "Material Fill Density"; // TRANSLATORS: Material Name "material-name" = "Material Name"; // TRANSLATORS: Material Nozzle Diameter "material-nozzle-diameter" = "Material Nozzle Diameter"; // TRANSLATORS: Use Material For "material-purpose" = "Use Material For"; // TRANSLATORS: Everything "material-purpose.all" = "Everything"; // TRANSLATORS: Base "material-purpose.base" = "Base"; // TRANSLATORS: In-fill "material-purpose.in-fill" = "In-fill"; // TRANSLATORS: Shell "material-purpose.shell" = "Shell"; // TRANSLATORS: Supports "material-purpose.support" = "Supports"; // TRANSLATORS: Feed Rate "material-rate" = "Feed Rate"; // TRANSLATORS: Feed Rate Units "material-rate-units" = "Feed Rate Units"; // TRANSLATORS: Milligrams per second "material-rate-units.mg_second" = "Milligrams per second"; // TRANSLATORS: Milliliters per second "material-rate-units.ml_second" = "Milliliters per second"; // TRANSLATORS: Millimeters per second "material-rate-units.mm_second" = "Millimeters per second"; // TRANSLATORS: Material Retraction "material-retraction" = "Material Retraction"; // TRANSLATORS: Material Shell Thickness "material-shell-thickness" = "Material Shell Thickness"; // TRANSLATORS: Material Temperature "material-temperature" = "Material Temperature"; // TRANSLATORS: Material Type "material-type" = "Material Type"; // TRANSLATORS: ABS "material-type.abs" = "ABS"; // TRANSLATORS: Carbon Fiber ABS "material-type.abs-carbon-fiber" = "Carbon Fiber ABS"; // TRANSLATORS: Carbon Nanotube ABS "material-type.abs-carbon-nanotube" = "Carbon Nanotube ABS"; // TRANSLATORS: Chocolate "material-type.chocolate" = "Chocolate"; // TRANSLATORS: Gold "material-type.gold" = "Gold"; // TRANSLATORS: Nylon "material-type.nylon" = "Nylon"; // TRANSLATORS: Pet "material-type.pet" = "Pet"; // TRANSLATORS: Photopolymer "material-type.photopolymer" = "Photopolymer"; // TRANSLATORS: PLA "material-type.pla" = "PLA"; // TRANSLATORS: Conductive PLA "material-type.pla-conductive" = "Conductive PLA"; // TRANSLATORS: Pla Dissolvable "material-type.pla-dissolvable" = "Pla Dissolvable"; // TRANSLATORS: Flexible PLA "material-type.pla-flexible" = "Flexible PLA"; // TRANSLATORS: Magnetic PLA "material-type.pla-magnetic" = "Magnetic PLA"; // TRANSLATORS: Steel PLA "material-type.pla-steel" = "Steel PLA"; // TRANSLATORS: Stone PLA "material-type.pla-stone" = "Stone PLA"; // TRANSLATORS: Wood PLA "material-type.pla-wood" = "Wood PLA"; // TRANSLATORS: Polycarbonate "material-type.polycarbonate" = "Polycarbonate"; // TRANSLATORS: Dissolvable PVA "material-type.pva-dissolvable" = "Dissolvable PVA"; // TRANSLATORS: Silver "material-type.silver" = "Silver"; // TRANSLATORS: Titanium "material-type.titanium" = "Titanium"; // TRANSLATORS: Wax "material-type.wax" = "Wax"; // TRANSLATORS: Materials "materials-col" = "Materials"; // TRANSLATORS: Media "media" = "Media"; // TRANSLATORS: Back Coating of Media "media-back-coating" = "Back Coating of Media"; // TRANSLATORS: Glossy "media-back-coating.glossy" = "Glossy"; // TRANSLATORS: High Gloss "media-back-coating.high-gloss" = "High Gloss"; // TRANSLATORS: Matte "media-back-coating.matte" = "Matte"; // TRANSLATORS: None "media-back-coating.none" = "None"; // TRANSLATORS: Satin "media-back-coating.satin" = "Satin"; // TRANSLATORS: Semi-gloss "media-back-coating.semi-gloss" = "Semi-gloss"; // TRANSLATORS: Media Bottom Margin "media-bottom-margin" = "Media Bottom Margin"; // TRANSLATORS: Media "media-col" = "Media"; // TRANSLATORS: Media Color "media-color" = "Media Color"; // TRANSLATORS: Black "media-color.black" = "Black"; // TRANSLATORS: Blue "media-color.blue" = "Blue"; // TRANSLATORS: Brown "media-color.brown" = "Brown"; // TRANSLATORS: Buff "media-color.buff" = "Buff"; // TRANSLATORS: Clear Black "media-color.clear-black" = "Clear Black"; // TRANSLATORS: Clear Blue "media-color.clear-blue" = "Clear Blue"; // TRANSLATORS: Clear Brown "media-color.clear-brown" = "Clear Brown"; // TRANSLATORS: Clear Buff "media-color.clear-buff" = "Clear Buff"; // TRANSLATORS: Clear Cyan "media-color.clear-cyan" = "Clear Cyan"; // TRANSLATORS: Clear Gold "media-color.clear-gold" = "Clear Gold"; // TRANSLATORS: Clear Goldenrod "media-color.clear-goldenrod" = "Clear Goldenrod"; // TRANSLATORS: Clear Gray "media-color.clear-gray" = "Clear Gray"; // TRANSLATORS: Clear Green "media-color.clear-green" = "Clear Green"; // TRANSLATORS: Clear Ivory "media-color.clear-ivory" = "Clear Ivory"; // TRANSLATORS: Clear Magenta "media-color.clear-magenta" = "Clear Magenta"; // TRANSLATORS: Clear Multi Color "media-color.clear-multi-color" = "Clear Multi Color"; // TRANSLATORS: Clear Mustard "media-color.clear-mustard" = "Clear Mustard"; // TRANSLATORS: Clear Orange "media-color.clear-orange" = "Clear Orange"; // TRANSLATORS: Clear Pink "media-color.clear-pink" = "Clear Pink"; // TRANSLATORS: Clear Red "media-color.clear-red" = "Clear Red"; // TRANSLATORS: Clear Silver "media-color.clear-silver" = "Clear Silver"; // TRANSLATORS: Clear Turquoise "media-color.clear-turquoise" = "Clear Turquoise"; // TRANSLATORS: Clear Violet "media-color.clear-violet" = "Clear Violet"; // TRANSLATORS: Clear White "media-color.clear-white" = "Clear White"; // TRANSLATORS: Clear Yellow "media-color.clear-yellow" = "Clear Yellow"; // TRANSLATORS: Cyan "media-color.cyan" = "Cyan"; // TRANSLATORS: Dark Blue "media-color.dark-blue" = "Dark Blue"; // TRANSLATORS: Dark Brown "media-color.dark-brown" = "Dark Brown"; // TRANSLATORS: Dark Buff "media-color.dark-buff" = "Dark Buff"; // TRANSLATORS: Dark Cyan "media-color.dark-cyan" = "Dark Cyan"; // TRANSLATORS: Dark Gold "media-color.dark-gold" = "Dark Gold"; // TRANSLATORS: Dark Goldenrod "media-color.dark-goldenrod" = "Dark Goldenrod"; // TRANSLATORS: Dark Gray "media-color.dark-gray" = "Dark Gray"; // TRANSLATORS: Dark Green "media-color.dark-green" = "Dark Green"; // TRANSLATORS: Dark Ivory "media-color.dark-ivory" = "Dark Ivory"; // TRANSLATORS: Dark Magenta "media-color.dark-magenta" = "Dark Magenta"; // TRANSLATORS: Dark Mustard "media-color.dark-mustard" = "Dark Mustard"; // TRANSLATORS: Dark Orange "media-color.dark-orange" = "Dark Orange"; // TRANSLATORS: Dark Pink "media-color.dark-pink" = "Dark Pink"; // TRANSLATORS: Dark Red "media-color.dark-red" = "Dark Red"; // TRANSLATORS: Dark Silver "media-color.dark-silver" = "Dark Silver"; // TRANSLATORS: Dark Turquoise "media-color.dark-turquoise" = "Dark Turquoise"; // TRANSLATORS: Dark Violet "media-color.dark-violet" = "Dark Violet"; // TRANSLATORS: Dark Yellow "media-color.dark-yellow" = "Dark Yellow"; // TRANSLATORS: Gold "media-color.gold" = "Gold"; // TRANSLATORS: Goldenrod "media-color.goldenrod" = "Goldenrod"; // TRANSLATORS: Gray "media-color.gray" = "Gray"; // TRANSLATORS: Green "media-color.green" = "Green"; // TRANSLATORS: Ivory "media-color.ivory" = "Ivory"; // TRANSLATORS: Light Black "media-color.light-black" = "Light Black"; // TRANSLATORS: Light Blue "media-color.light-blue" = "Light Blue"; // TRANSLATORS: Light Brown "media-color.light-brown" = "Light Brown"; // TRANSLATORS: Light Buff "media-color.light-buff" = "Light Buff"; // TRANSLATORS: Light Cyan "media-color.light-cyan" = "Light Cyan"; // TRANSLATORS: Light Gold "media-color.light-gold" = "Light Gold"; // TRANSLATORS: Light Goldenrod "media-color.light-goldenrod" = "Light Goldenrod"; // TRANSLATORS: Light Gray "media-color.light-gray" = "Light Gray"; // TRANSLATORS: Light Green "media-color.light-green" = "Light Green"; // TRANSLATORS: Light Ivory "media-color.light-ivory" = "Light Ivory"; // TRANSLATORS: Light Magenta "media-color.light-magenta" = "Light Magenta"; // TRANSLATORS: Light Mustard "media-color.light-mustard" = "Light Mustard"; // TRANSLATORS: Light Orange "media-color.light-orange" = "Light Orange"; // TRANSLATORS: Light Pink "media-color.light-pink" = "Light Pink"; // TRANSLATORS: Light Red "media-color.light-red" = "Light Red"; // TRANSLATORS: Light Silver "media-color.light-silver" = "Light Silver"; // TRANSLATORS: Light Turquoise "media-color.light-turquoise" = "Light Turquoise"; // TRANSLATORS: Light Violet "media-color.light-violet" = "Light Violet"; // TRANSLATORS: Light Yellow "media-color.light-yellow" = "Light Yellow"; // TRANSLATORS: Magenta "media-color.magenta" = "Magenta"; // TRANSLATORS: Multi-color "media-color.multi-color" = "Multi-color"; // TRANSLATORS: Mustard "media-color.mustard" = "Mustard"; // TRANSLATORS: No Color "media-color.no-color" = "No Color"; // TRANSLATORS: Orange "media-color.orange" = "Orange"; // TRANSLATORS: Pink "media-color.pink" = "Pink"; // TRANSLATORS: Red "media-color.red" = "Red"; // TRANSLATORS: Silver "media-color.silver" = "Silver"; // TRANSLATORS: Turquoise "media-color.turquoise" = "Turquoise"; // TRANSLATORS: Violet "media-color.violet" = "Violet"; // TRANSLATORS: White "media-color.white" = "White"; // TRANSLATORS: Yellow "media-color.yellow" = "Yellow"; // TRANSLATORS: Front Coating of Media "media-front-coating" = "Front Coating of Media"; // TRANSLATORS: Media Grain "media-grain" = "Media Grain"; // TRANSLATORS: Cross-Feed Direction "media-grain.x-direction" = "Cross-Feed Direction"; // TRANSLATORS: Feed Direction "media-grain.y-direction" = "Feed Direction"; // TRANSLATORS: Media Hole Count "media-hole-count" = "Media Hole Count"; // TRANSLATORS: Media Info "media-info" = "Media Info"; // TRANSLATORS: Force Media "media-input-tray-check" = "Force Media"; // TRANSLATORS: Media Left Margin "media-left-margin" = "Media Left Margin"; // TRANSLATORS: Pre-printed Media "media-pre-printed" = "Pre-printed Media"; // TRANSLATORS: Blank "media-pre-printed.blank" = "Blank"; // TRANSLATORS: Letterhead "media-pre-printed.letter-head" = "Letterhead"; // TRANSLATORS: Pre-printed "media-pre-printed.pre-printed" = "Pre-printed"; // TRANSLATORS: Recycled Media "media-recycled" = "Recycled Media"; // TRANSLATORS: None "media-recycled.none" = "None"; // TRANSLATORS: Standard "media-recycled.standard" = "Standard"; // TRANSLATORS: Media Right Margin "media-right-margin" = "Media Right Margin"; // TRANSLATORS: Media Dimensions "media-size" = "Media Dimensions"; // TRANSLATORS: Media Name "media-size-name" = "Media Name"; // TRANSLATORS: Media Source "media-source" = "Media Source"; // TRANSLATORS: Alternate "media-source.alternate" = "Alternate"; // TRANSLATORS: Alternate Roll "media-source.alternate-roll" = "Alternate Roll"; // TRANSLATORS: Automatic "media-source.auto" = "Automatic"; // TRANSLATORS: Bottom "media-source.bottom" = "Bottom"; // TRANSLATORS: By-pass Tray "media-source.by-pass-tray" = "By-pass Tray"; // TRANSLATORS: Center "media-source.center" = "Center"; // TRANSLATORS: Disc "media-source.disc" = "Disc"; // TRANSLATORS: Envelope "media-source.envelope" = "Envelope"; // TRANSLATORS: Hagaki "media-source.hagaki" = "Hagaki"; // TRANSLATORS: Large Capacity "media-source.large-capacity" = "Large Capacity"; // TRANSLATORS: Left "media-source.left" = "Left"; // TRANSLATORS: Main "media-source.main" = "Main"; // TRANSLATORS: Main Roll "media-source.main-roll" = "Main Roll"; // TRANSLATORS: Manual "media-source.manual" = "Manual"; // TRANSLATORS: Middle "media-source.middle" = "Middle"; // TRANSLATORS: Photo "media-source.photo" = "Photo"; // TRANSLATORS: Rear "media-source.rear" = "Rear"; // TRANSLATORS: Right "media-source.right" = "Right"; // TRANSLATORS: Roll 1 "media-source.roll-1" = "Roll 1"; // TRANSLATORS: Roll 10 "media-source.roll-10" = "Roll 10"; // TRANSLATORS: Roll 2 "media-source.roll-2" = "Roll 2"; // TRANSLATORS: Roll 3 "media-source.roll-3" = "Roll 3"; // TRANSLATORS: Roll 4 "media-source.roll-4" = "Roll 4"; // TRANSLATORS: Roll 5 "media-source.roll-5" = "Roll 5"; // TRANSLATORS: Roll 6 "media-source.roll-6" = "Roll 6"; // TRANSLATORS: Roll 7 "media-source.roll-7" = "Roll 7"; // TRANSLATORS: Roll 8 "media-source.roll-8" = "Roll 8"; // TRANSLATORS: Roll 9 "media-source.roll-9" = "Roll 9"; // TRANSLATORS: Side "media-source.side" = "Side"; // TRANSLATORS: Top "media-source.top" = "Top"; // TRANSLATORS: Tray 1 "media-source.tray-1" = "Tray 1"; // TRANSLATORS: Tray 10 "media-source.tray-10" = "Tray 10"; // TRANSLATORS: Tray 11 "media-source.tray-11" = "Tray 11"; // TRANSLATORS: Tray 12 "media-source.tray-12" = "Tray 12"; // TRANSLATORS: Tray 13 "media-source.tray-13" = "Tray 13"; // TRANSLATORS: Tray 14 "media-source.tray-14" = "Tray 14"; // TRANSLATORS: Tray 15 "media-source.tray-15" = "Tray 15"; // TRANSLATORS: Tray 16 "media-source.tray-16" = "Tray 16"; // TRANSLATORS: Tray 17 "media-source.tray-17" = "Tray 17"; // TRANSLATORS: Tray 18 "media-source.tray-18" = "Tray 18"; // TRANSLATORS: Tray 19 "media-source.tray-19" = "Tray 19"; // TRANSLATORS: Tray 2 "media-source.tray-2" = "Tray 2"; // TRANSLATORS: Tray 20 "media-source.tray-20" = "Tray 20"; // TRANSLATORS: Tray 3 "media-source.tray-3" = "Tray 3"; // TRANSLATORS: Tray 4 "media-source.tray-4" = "Tray 4"; // TRANSLATORS: Tray 5 "media-source.tray-5" = "Tray 5"; // TRANSLATORS: Tray 6 "media-source.tray-6" = "Tray 6"; // TRANSLATORS: Tray 7 "media-source.tray-7" = "Tray 7"; // TRANSLATORS: Tray 8 "media-source.tray-8" = "Tray 8"; // TRANSLATORS: Tray 9 "media-source.tray-9" = "Tray 9"; // TRANSLATORS: Media Thickness "media-thickness" = "Media Thickness"; // TRANSLATORS: Media Tooth (Texture) "media-tooth" = "Media Tooth (Texture)"; // TRANSLATORS: Antique "media-tooth.antique" = "Antique"; // TRANSLATORS: Extra Smooth "media-tooth.calendared" = "Extra Smooth"; // TRANSLATORS: Coarse "media-tooth.coarse" = "Coarse"; // TRANSLATORS: Fine "media-tooth.fine" = "Fine"; // TRANSLATORS: Linen "media-tooth.linen" = "Linen"; // TRANSLATORS: Medium "media-tooth.medium" = "Medium"; // TRANSLATORS: Smooth "media-tooth.smooth" = "Smooth"; // TRANSLATORS: Stipple "media-tooth.stipple" = "Stipple"; // TRANSLATORS: Rough "media-tooth.uncalendared" = "Rough"; // TRANSLATORS: Vellum "media-tooth.vellum" = "Vellum"; // TRANSLATORS: Media Top Margin "media-top-margin" = "Media Top Margin"; // TRANSLATORS: Media Type "media-type" = "Media Type"; // TRANSLATORS: Aluminum "media-type.aluminum" = "Aluminum"; // TRANSLATORS: Automatic "media-type.auto" = "Automatic"; // TRANSLATORS: Back Print Film "media-type.back-print-film" = "Back Print Film"; // TRANSLATORS: Cardboard "media-type.cardboard" = "Cardboard"; // TRANSLATORS: Cardstock "media-type.cardstock" = "Cardstock"; // TRANSLATORS: CD "media-type.cd" = "CD"; // TRANSLATORS: Photo Advanced Paper "media-type.com.hp.advanced-photo" = "Photo Advanced Paper"; // TRANSLATORS: Brochure Glossy Paper "media-type.com.hp.brochure-glossy" = "Brochure Glossy Paper"; // TRANSLATORS: Brochure Matte Paper "media-type.com.hp.brochure-matte" = "Brochure Matte Paper"; // TRANSLATORS: Matte Coverstock "media-type.com.hp.cover-matte" = "Matte Coverstock"; // TRANSLATORS: EcoSMART Lite Paper "media-type.com.hp.ecosmart-lite" = "EcoSMART Lite Paper"; // TRANSLATORS: Everyday Glossy Paper "media-type.com.hp.everyday-glossy" = "Everyday Glossy Paper"; // TRANSLATORS: Everyday Matte Paper "media-type.com.hp.everyday-matte" = "Everyday Matte Paper"; // TRANSLATORS: Extra Heavyweight Paper "media-type.com.hp.extra-heavy" = "Extra Heavyweight Paper"; // TRANSLATORS: Intermediate Paper "media-type.com.hp.intermediate" = "Intermediate Paper"; // TRANSLATORS: Mid-Weight Paper "media-type.com.hp.mid-weight" = "Mid-Weight Paper"; // TRANSLATORS: Inkjet Premium Paper "media-type.com.hp.premium-inkjet" = "Inkjet Premium Paper"; // TRANSLATORS: Photo Premium Paper "media-type.com.hp.premium-photo" = "Photo Premium Paper"; // TRANSLATORS: Premium Matte Presentation Paper "media-type.com.hp.premium-presentation-matte" = "Premium Matte Presentation Paper"; // TRANSLATORS: Continuous "media-type.continuous" = "Continuous"; // TRANSLATORS: Continuous Long "media-type.continuous-long" = "Continuous Long"; // TRANSLATORS: Continuous Short "media-type.continuous-short" = "Continuous Short"; // TRANSLATORS: Corrugated Board "media-type.corrugated-board" = "Corrugated Board"; // TRANSLATORS: Optical Disc "media-type.disc" = "Optical Disc"; // TRANSLATORS: Glossy Optical Disc "media-type.disc-glossy" = "Glossy Optical Disc"; // TRANSLATORS: High Gloss Optical Disc "media-type.disc-high-gloss" = "High Gloss Optical Disc"; // TRANSLATORS: Matte Optical Disc "media-type.disc-matte" = "Matte Optical Disc"; // TRANSLATORS: Satin Optical Disc "media-type.disc-satin" = "Satin Optical Disc"; // TRANSLATORS: Semi-Gloss Optical Disc "media-type.disc-semi-gloss" = "Semi-Gloss Optical Disc"; // TRANSLATORS: Double Wall "media-type.double-wall" = "Double Wall"; // TRANSLATORS: Dry Film "media-type.dry-film" = "Dry Film"; // TRANSLATORS: DVD "media-type.dvd" = "DVD"; // TRANSLATORS: Embossing Foil "media-type.embossing-foil" = "Embossing Foil"; // TRANSLATORS: End Board "media-type.end-board" = "End Board"; // TRANSLATORS: Envelope "media-type.envelope" = "Envelope"; // TRANSLATORS: Archival Envelope "media-type.envelope-archival" = "Archival Envelope"; // TRANSLATORS: Bond Envelope "media-type.envelope-bond" = "Bond Envelope"; // TRANSLATORS: Coated Envelope "media-type.envelope-coated" = "Coated Envelope"; // TRANSLATORS: Cotton Envelope "media-type.envelope-cotton" = "Cotton Envelope"; // TRANSLATORS: Fine Envelope "media-type.envelope-fine" = "Fine Envelope"; // TRANSLATORS: Heavyweight Envelope "media-type.envelope-heavyweight" = "Heavyweight Envelope"; // TRANSLATORS: Inkjet Envelope "media-type.envelope-inkjet" = "Inkjet Envelope"; // TRANSLATORS: Lightweight Envelope "media-type.envelope-lightweight" = "Lightweight Envelope"; // TRANSLATORS: Plain Envelope "media-type.envelope-plain" = "Plain Envelope"; // TRANSLATORS: Preprinted Envelope "media-type.envelope-preprinted" = "Preprinted Envelope"; // TRANSLATORS: Windowed Envelope "media-type.envelope-window" = "Windowed Envelope"; // TRANSLATORS: Fabric "media-type.fabric" = "Fabric"; // TRANSLATORS: Archival Fabric "media-type.fabric-archival" = "Archival Fabric"; // TRANSLATORS: Glossy Fabric "media-type.fabric-glossy" = "Glossy Fabric"; // TRANSLATORS: High Gloss Fabric "media-type.fabric-high-gloss" = "High Gloss Fabric"; // TRANSLATORS: Matte Fabric "media-type.fabric-matte" = "Matte Fabric"; // TRANSLATORS: Semi-Gloss Fabric "media-type.fabric-semi-gloss" = "Semi-Gloss Fabric"; // TRANSLATORS: Waterproof Fabric "media-type.fabric-waterproof" = "Waterproof Fabric"; // TRANSLATORS: Film "media-type.film" = "Film"; // TRANSLATORS: Flexo Base "media-type.flexo-base" = "Flexo Base"; // TRANSLATORS: Flexo Photo Polymer "media-type.flexo-photo-polymer" = "Flexo Photo Polymer"; // TRANSLATORS: Flute "media-type.flute" = "Flute"; // TRANSLATORS: Foil "media-type.foil" = "Foil"; // TRANSLATORS: Full Cut Tabs "media-type.full-cut-tabs" = "Full Cut Tabs"; // TRANSLATORS: Glass "media-type.glass" = "Glass"; // TRANSLATORS: Glass Colored "media-type.glass-colored" = "Glass Colored"; // TRANSLATORS: Glass Opaque "media-type.glass-opaque" = "Glass Opaque"; // TRANSLATORS: Glass Surfaced "media-type.glass-surfaced" = "Glass Surfaced"; // TRANSLATORS: Glass Textured "media-type.glass-textured" = "Glass Textured"; // TRANSLATORS: Gravure Cylinder "media-type.gravure-cylinder" = "Gravure Cylinder"; // TRANSLATORS: Image Setter Paper "media-type.image-setter-paper" = "Image Setter Paper"; // TRANSLATORS: Imaging Cylinder "media-type.imaging-cylinder" = "Imaging Cylinder"; // TRANSLATORS: Photo Paper Plus Glossy II "media-type.jp.co.canon-photo-paper-plus-glossy-ii" = "Photo Paper Plus Glossy II"; // TRANSLATORS: Photo Paper Pro Platinum "media-type.jp.co.canon-photo-paper-pro-platinum" = "Photo Paper Pro Platinum"; // TRANSLATORS: Photo Paper Plus Glossy II "media-type.jp.co.canon_photo-paper-plus-glossy-ii" = "Photo Paper Plus Glossy II"; // TRANSLATORS: Photo Paper Pro Platinum "media-type.jp.co.canon_photo-paper-pro-platinum" = "Photo Paper Pro Platinum"; // TRANSLATORS: Labels "media-type.labels" = "Labels"; // TRANSLATORS: Colored Labels "media-type.labels-colored" = "Colored Labels"; // TRANSLATORS: Glossy Labels "media-type.labels-glossy" = "Glossy Labels"; // TRANSLATORS: High Gloss Labels "media-type.labels-high-gloss" = "High Gloss Labels"; // TRANSLATORS: Inkjet Labels "media-type.labels-inkjet" = "Inkjet Labels"; // TRANSLATORS: Matte Labels "media-type.labels-matte" = "Matte Labels"; // TRANSLATORS: Permanent Labels "media-type.labels-permanent" = "Permanent Labels"; // TRANSLATORS: Satin Labels "media-type.labels-satin" = "Satin Labels"; // TRANSLATORS: Security Labels "media-type.labels-security" = "Security Labels"; // TRANSLATORS: Semi-Gloss Labels "media-type.labels-semi-gloss" = "Semi-Gloss Labels"; // TRANSLATORS: Laminating Foil "media-type.laminating-foil" = "Laminating Foil"; // TRANSLATORS: Letterhead "media-type.letterhead" = "Letterhead"; // TRANSLATORS: Metal "media-type.metal" = "Metal"; // TRANSLATORS: Metal Glossy "media-type.metal-glossy" = "Metal Glossy"; // TRANSLATORS: Metal High Gloss "media-type.metal-high-gloss" = "Metal High Gloss"; // TRANSLATORS: Metal Matte "media-type.metal-matte" = "Metal Matte"; // TRANSLATORS: Metal Satin "media-type.metal-satin" = "Metal Satin"; // TRANSLATORS: Metal Semi Gloss "media-type.metal-semi-gloss" = "Metal Semi Gloss"; // TRANSLATORS: Mounting Tape "media-type.mounting-tape" = "Mounting Tape"; // TRANSLATORS: Multi Layer "media-type.multi-layer" = "Multi Layer"; // TRANSLATORS: Multi Part Form "media-type.multi-part-form" = "Multi Part Form"; // TRANSLATORS: Other "media-type.other" = "Other"; // TRANSLATORS: Paper "media-type.paper" = "Paper"; // TRANSLATORS: Photo Paper "media-type.photographic" = "Photo Paper"; // TRANSLATORS: Photographic Archival "media-type.photographic-archival" = "Photographic Archival"; // TRANSLATORS: Photo Film "media-type.photographic-film" = "Photo Film"; // TRANSLATORS: Glossy Photo Paper "media-type.photographic-glossy" = "Glossy Photo Paper"; // TRANSLATORS: High Gloss Photo Paper "media-type.photographic-high-gloss" = "High Gloss Photo Paper"; // TRANSLATORS: Matte Photo Paper "media-type.photographic-matte" = "Matte Photo Paper"; // TRANSLATORS: Satin Photo Paper "media-type.photographic-satin" = "Satin Photo Paper"; // TRANSLATORS: Semi-Gloss Photo Paper "media-type.photographic-semi-gloss" = "Semi-Gloss Photo Paper"; // TRANSLATORS: Plastic "media-type.plastic" = "Plastic"; // TRANSLATORS: Plastic Archival "media-type.plastic-archival" = "Plastic Archival"; // TRANSLATORS: Plastic Colored "media-type.plastic-colored" = "Plastic Colored"; // TRANSLATORS: Plastic Glossy "media-type.plastic-glossy" = "Plastic Glossy"; // TRANSLATORS: Plastic High Gloss "media-type.plastic-high-gloss" = "Plastic High Gloss"; // TRANSLATORS: Plastic Matte "media-type.plastic-matte" = "Plastic Matte"; // TRANSLATORS: Plastic Satin "media-type.plastic-satin" = "Plastic Satin"; // TRANSLATORS: Plastic Semi Gloss "media-type.plastic-semi-gloss" = "Plastic Semi Gloss"; // TRANSLATORS: Plate "media-type.plate" = "Plate"; // TRANSLATORS: Polyester "media-type.polyester" = "Polyester"; // TRANSLATORS: Pre Cut Tabs "media-type.pre-cut-tabs" = "Pre Cut Tabs"; // TRANSLATORS: Roll "media-type.roll" = "Roll"; // TRANSLATORS: Screen "media-type.screen" = "Screen"; // TRANSLATORS: Screen Paged "media-type.screen-paged" = "Screen Paged"; // TRANSLATORS: Self Adhesive "media-type.self-adhesive" = "Self Adhesive"; // TRANSLATORS: Self Adhesive Film "media-type.self-adhesive-film" = "Self Adhesive Film"; // TRANSLATORS: Shrink Foil "media-type.shrink-foil" = "Shrink Foil"; // TRANSLATORS: Single Face "media-type.single-face" = "Single Face"; // TRANSLATORS: Single Wall "media-type.single-wall" = "Single Wall"; // TRANSLATORS: Sleeve "media-type.sleeve" = "Sleeve"; // TRANSLATORS: Stationery "media-type.stationery" = "Stationery"; // TRANSLATORS: Stationery Archival "media-type.stationery-archival" = "Stationery Archival"; // TRANSLATORS: Coated Paper "media-type.stationery-coated" = "Coated Paper"; // TRANSLATORS: Stationery Cotton "media-type.stationery-cotton" = "Stationery Cotton"; // TRANSLATORS: Vellum Paper "media-type.stationery-fine" = "Vellum Paper"; // TRANSLATORS: Heavyweight Paper "media-type.stationery-heavyweight" = "Heavyweight Paper"; // TRANSLATORS: Stationery Heavyweight Coated "media-type.stationery-heavyweight-coated" = "Stationery Heavyweight Coated"; // TRANSLATORS: Stationery Inkjet Paper "media-type.stationery-inkjet" = "Stationery Inkjet Paper"; // TRANSLATORS: Letterhead "media-type.stationery-letterhead" = "Letterhead"; // TRANSLATORS: Lightweight Paper "media-type.stationery-lightweight" = "Lightweight Paper"; // TRANSLATORS: Preprinted Paper "media-type.stationery-preprinted" = "Preprinted Paper"; // TRANSLATORS: Punched Paper "media-type.stationery-prepunched" = "Punched Paper"; // TRANSLATORS: Tab Stock "media-type.tab-stock" = "Tab Stock"; // TRANSLATORS: Tractor "media-type.tractor" = "Tractor"; // TRANSLATORS: Transfer "media-type.transfer" = "Transfer"; // TRANSLATORS: Transparency "media-type.transparency" = "Transparency"; // TRANSLATORS: Triple Wall "media-type.triple-wall" = "Triple Wall"; // TRANSLATORS: Wet Film "media-type.wet-film" = "Wet Film"; // TRANSLATORS: Media Weight (grams per m²) "media-weight-metric" = "Media Weight (grams per m²)"; // TRANSLATORS: 28 x 40″ "media.asme_f_28x40in" = "28 x 40″"; // TRANSLATORS: A4 or US Letter "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" = "A4 or US Letter"; // TRANSLATORS: 2a0 "media.iso_2a0_1189x1682mm" = "2a0"; // TRANSLATORS: A0 "media.iso_a0_841x1189mm" = "A0"; // TRANSLATORS: A0x3 "media.iso_a0x3_1189x2523mm" = "A0x3"; // TRANSLATORS: A10 "media.iso_a10_26x37mm" = "A10"; // TRANSLATORS: A1 "media.iso_a1_594x841mm" = "A1"; // TRANSLATORS: A1x3 "media.iso_a1x3_841x1783mm" = "A1x3"; // TRANSLATORS: A1x4 "media.iso_a1x4_841x2378mm" = "A1x4"; // TRANSLATORS: A2 "media.iso_a2_420x594mm" = "A2"; // TRANSLATORS: A2x3 "media.iso_a2x3_594x1261mm" = "A2x3"; // TRANSLATORS: A2x4 "media.iso_a2x4_594x1682mm" = "A2x4"; // TRANSLATORS: A2x5 "media.iso_a2x5_594x2102mm" = "A2x5"; // TRANSLATORS: A3 (Extra) "media.iso_a3-extra_322x445mm" = "A3 (Extra)"; // TRANSLATORS: A3 "media.iso_a3_297x420mm" = "A3"; // TRANSLATORS: A3x3 "media.iso_a3x3_420x891mm" = "A3x3"; // TRANSLATORS: A3x4 "media.iso_a3x4_420x1189mm" = "A3x4"; // TRANSLATORS: A3x5 "media.iso_a3x5_420x1486mm" = "A3x5"; // TRANSLATORS: A3x6 "media.iso_a3x6_420x1783mm" = "A3x6"; // TRANSLATORS: A3x7 "media.iso_a3x7_420x2080mm" = "A3x7"; // TRANSLATORS: A4 (Extra) "media.iso_a4-extra_235.5x322.3mm" = "A4 (Extra)"; // TRANSLATORS: A4 (Tab) "media.iso_a4-tab_225x297mm" = "A4 (Tab)"; // TRANSLATORS: A4 "media.iso_a4_210x297mm" = "A4"; // TRANSLATORS: A4x3 "media.iso_a4x3_297x630mm" = "A4x3"; // TRANSLATORS: A4x4 "media.iso_a4x4_297x841mm" = "A4x4"; // TRANSLATORS: A4x5 "media.iso_a4x5_297x1051mm" = "A4x5"; // TRANSLATORS: A4x6 "media.iso_a4x6_297x1261mm" = "A4x6"; // TRANSLATORS: A4x7 "media.iso_a4x7_297x1471mm" = "A4x7"; // TRANSLATORS: A4x8 "media.iso_a4x8_297x1682mm" = "A4x8"; // TRANSLATORS: A4x9 "media.iso_a4x9_297x1892mm" = "A4x9"; // TRANSLATORS: A5 (Extra) "media.iso_a5-extra_174x235mm" = "A5 (Extra)"; // TRANSLATORS: A5 "media.iso_a5_148x210mm" = "A5"; // TRANSLATORS: A6 "media.iso_a6_105x148mm" = "A6"; // TRANSLATORS: A7 "media.iso_a7_74x105mm" = "A7"; // TRANSLATORS: A8 "media.iso_a8_52x74mm" = "A8"; // TRANSLATORS: A9 "media.iso_a9_37x52mm" = "A9"; // TRANSLATORS: B0 "media.iso_b0_1000x1414mm" = "B0"; // TRANSLATORS: B10 "media.iso_b10_31x44mm" = "B10"; // TRANSLATORS: B1 "media.iso_b1_707x1000mm" = "B1"; // TRANSLATORS: B2 "media.iso_b2_500x707mm" = "B2"; // TRANSLATORS: B3 "media.iso_b3_353x500mm" = "B3"; // TRANSLATORS: B4 "media.iso_b4_250x353mm" = "B4"; // TRANSLATORS: B5 (Extra) "media.iso_b5-extra_201x276mm" = "B5 (Extra)"; // TRANSLATORS: Envelope B5 "media.iso_b5_176x250mm" = "Envelope B5"; // TRANSLATORS: B6 "media.iso_b6_125x176mm" = "B6"; // TRANSLATORS: Envelope B6/C4 "media.iso_b6c4_125x324mm" = "Envelope B6/C4"; // TRANSLATORS: B7 "media.iso_b7_88x125mm" = "B7"; // TRANSLATORS: B8 "media.iso_b8_62x88mm" = "B8"; // TRANSLATORS: B9 "media.iso_b9_44x62mm" = "B9"; // TRANSLATORS: CEnvelope 0 "media.iso_c0_917x1297mm" = "CEnvelope 0"; // TRANSLATORS: CEnvelope 10 "media.iso_c10_28x40mm" = "CEnvelope 10"; // TRANSLATORS: CEnvelope 1 "media.iso_c1_648x917mm" = "CEnvelope 1"; // TRANSLATORS: CEnvelope 2 "media.iso_c2_458x648mm" = "CEnvelope 2"; // TRANSLATORS: CEnvelope 3 "media.iso_c3_324x458mm" = "CEnvelope 3"; // TRANSLATORS: CEnvelope 4 "media.iso_c4_229x324mm" = "CEnvelope 4"; // TRANSLATORS: CEnvelope 5 "media.iso_c5_162x229mm" = "CEnvelope 5"; // TRANSLATORS: CEnvelope 6 "media.iso_c6_114x162mm" = "CEnvelope 6"; // TRANSLATORS: CEnvelope 6c5 "media.iso_c6c5_114x229mm" = "CEnvelope 6c5"; // TRANSLATORS: CEnvelope 7 "media.iso_c7_81x114mm" = "CEnvelope 7"; // TRANSLATORS: CEnvelope 7c6 "media.iso_c7c6_81x162mm" = "CEnvelope 7c6"; // TRANSLATORS: CEnvelope 8 "media.iso_c8_57x81mm" = "CEnvelope 8"; // TRANSLATORS: CEnvelope 9 "media.iso_c9_40x57mm" = "CEnvelope 9"; // TRANSLATORS: Envelope DL "media.iso_dl_110x220mm" = "Envelope DL"; // TRANSLATORS: Id-1 "media.iso_id-1_53.98x85.6mm" = "Id-1"; // TRANSLATORS: Id-3 "media.iso_id-3_88x125mm" = "Id-3"; // TRANSLATORS: ISO RA0 "media.iso_ra0_860x1220mm" = "ISO RA0"; // TRANSLATORS: ISO RA1 "media.iso_ra1_610x860mm" = "ISO RA1"; // TRANSLATORS: ISO RA2 "media.iso_ra2_430x610mm" = "ISO RA2"; // TRANSLATORS: ISO RA3 "media.iso_ra3_305x430mm" = "ISO RA3"; // TRANSLATORS: ISO RA4 "media.iso_ra4_215x305mm" = "ISO RA4"; // TRANSLATORS: ISO SRA0 "media.iso_sra0_900x1280mm" = "ISO SRA0"; // TRANSLATORS: ISO SRA1 "media.iso_sra1_640x900mm" = "ISO SRA1"; // TRANSLATORS: ISO SRA2 "media.iso_sra2_450x640mm" = "ISO SRA2"; // TRANSLATORS: ISO SRA3 "media.iso_sra3_320x450mm" = "ISO SRA3"; // TRANSLATORS: ISO SRA4 "media.iso_sra4_225x320mm" = "ISO SRA4"; // TRANSLATORS: JIS B0 "media.jis_b0_1030x1456mm" = "JIS B0"; // TRANSLATORS: JIS B10 "media.jis_b10_32x45mm" = "JIS B10"; // TRANSLATORS: JIS B1 "media.jis_b1_728x1030mm" = "JIS B1"; // TRANSLATORS: JIS B2 "media.jis_b2_515x728mm" = "JIS B2"; // TRANSLATORS: JIS B3 "media.jis_b3_364x515mm" = "JIS B3"; // TRANSLATORS: JIS B4 "media.jis_b4_257x364mm" = "JIS B4"; // TRANSLATORS: JIS B5 "media.jis_b5_182x257mm" = "JIS B5"; // TRANSLATORS: JIS B6 "media.jis_b6_128x182mm" = "JIS B6"; // TRANSLATORS: JIS B7 "media.jis_b7_91x128mm" = "JIS B7"; // TRANSLATORS: JIS B8 "media.jis_b8_64x91mm" = "JIS B8"; // TRANSLATORS: JIS B9 "media.jis_b9_45x64mm" = "JIS B9"; // TRANSLATORS: JIS Executive "media.jis_exec_216x330mm" = "JIS Executive"; // TRANSLATORS: Envelope Chou 2 "media.jpn_chou2_111.1x146mm" = "Envelope Chou 2"; // TRANSLATORS: Envelope Chou 3 "media.jpn_chou3_120x235mm" = "Envelope Chou 3"; // TRANSLATORS: Envelope Chou 40 "media.jpn_chou40_90x225mm" = "Envelope Chou 40"; // TRANSLATORS: Envelope Chou 4 "media.jpn_chou4_90x205mm" = "Envelope Chou 4"; // TRANSLATORS: Hagaki "media.jpn_hagaki_100x148mm" = "Hagaki"; // TRANSLATORS: Envelope Kahu "media.jpn_kahu_240x322.1mm" = "Envelope Kahu"; // TRANSLATORS: 270 x 382mm "media.jpn_kaku1_270x382mm" = "270 x 382mm"; // TRANSLATORS: Envelope Kahu 2 "media.jpn_kaku2_240x332mm" = "Envelope Kahu 2"; // TRANSLATORS: 216 x 277mm "media.jpn_kaku3_216x277mm" = "216 x 277mm"; // TRANSLATORS: 197 x 267mm "media.jpn_kaku4_197x267mm" = "197 x 267mm"; // TRANSLATORS: 190 x 240mm "media.jpn_kaku5_190x240mm" = "190 x 240mm"; // TRANSLATORS: 142 x 205mm "media.jpn_kaku7_142x205mm" = "142 x 205mm"; // TRANSLATORS: 119 x 197mm "media.jpn_kaku8_119x197mm" = "119 x 197mm"; // TRANSLATORS: Oufuku Reply Postcard "media.jpn_oufuku_148x200mm" = "Oufuku Reply Postcard"; // TRANSLATORS: Envelope You 4 "media.jpn_you4_105x235mm" = "Envelope You 4"; // TRANSLATORS: 10 x 11″ "media.na_10x11_10x11in" = "10 x 11″"; // TRANSLATORS: 10 x 13″ "media.na_10x13_10x13in" = "10 x 13″"; // TRANSLATORS: 10 x 14″ "media.na_10x14_10x14in" = "10 x 14″"; // TRANSLATORS: 10 x 15″ "media.na_10x15_10x15in" = "10 x 15″"; // TRANSLATORS: 11 x 12″ "media.na_11x12_11x12in" = "11 x 12″"; // TRANSLATORS: 11 x 15″ "media.na_11x15_11x15in" = "11 x 15″"; // TRANSLATORS: 12 x 19″ "media.na_12x19_12x19in" = "12 x 19″"; // TRANSLATORS: 5 x 7″ "media.na_5x7_5x7in" = "5 x 7″"; // TRANSLATORS: 6 x 9″ "media.na_6x9_6x9in" = "6 x 9″"; // TRANSLATORS: 7 x 9″ "media.na_7x9_7x9in" = "7 x 9″"; // TRANSLATORS: 9 x 11″ "media.na_9x11_9x11in" = "9 x 11″"; // TRANSLATORS: Envelope A2 "media.na_a2_4.375x5.75in" = "Envelope A2"; // TRANSLATORS: 9 x 12″ "media.na_arch-a_9x12in" = "9 x 12″"; // TRANSLATORS: 12 x 18″ "media.na_arch-b_12x18in" = "12 x 18″"; // TRANSLATORS: 18 x 24″ "media.na_arch-c_18x24in" = "18 x 24″"; // TRANSLATORS: 24 x 36″ "media.na_arch-d_24x36in" = "24 x 36″"; // TRANSLATORS: 26 x 38″ "media.na_arch-e2_26x38in" = "26 x 38″"; // TRANSLATORS: 27 x 39″ "media.na_arch-e3_27x39in" = "27 x 39″"; // TRANSLATORS: 36 x 48″ "media.na_arch-e_36x48in" = "36 x 48″"; // TRANSLATORS: 12 x 19.17″ "media.na_b-plus_12x19.17in" = "12 x 19.17″"; // TRANSLATORS: Envelope C5 "media.na_c5_6.5x9.5in" = "Envelope C5"; // TRANSLATORS: 17 x 22″ "media.na_c_17x22in" = "17 x 22″"; // TRANSLATORS: 22 x 34″ "media.na_d_22x34in" = "22 x 34″"; // TRANSLATORS: 34 x 44″ "media.na_e_34x44in" = "34 x 44″"; // TRANSLATORS: 11 x 14″ "media.na_edp_11x14in" = "11 x 14″"; // TRANSLATORS: 12 x 14″ "media.na_eur-edp_12x14in" = "12 x 14″"; // TRANSLATORS: Executive "media.na_executive_7.25x10.5in" = "Executive"; // TRANSLATORS: 44 x 68″ "media.na_f_44x68in" = "44 x 68″"; // TRANSLATORS: European Fanfold "media.na_fanfold-eur_8.5x12in" = "European Fanfold"; // TRANSLATORS: US Fanfold "media.na_fanfold-us_11x14.875in" = "US Fanfold"; // TRANSLATORS: Foolscap "media.na_foolscap_8.5x13in" = "Foolscap"; // TRANSLATORS: 8 x 13″ "media.na_govt-legal_8x13in" = "8 x 13″"; // TRANSLATORS: 8 x 10″ "media.na_govt-letter_8x10in" = "8 x 10″"; // TRANSLATORS: 3 x 5″ "media.na_index-3x5_3x5in" = "3 x 5″"; // TRANSLATORS: 6 x 8″ "media.na_index-4x6-ext_6x8in" = "6 x 8″"; // TRANSLATORS: 4 x 6″ "media.na_index-4x6_4x6in" = "4 x 6″"; // TRANSLATORS: 5 x 8″ "media.na_index-5x8_5x8in" = "5 x 8″"; // TRANSLATORS: Statement "media.na_invoice_5.5x8.5in" = "Statement"; // TRANSLATORS: 11 x 17″ "media.na_ledger_11x17in" = "11 x 17″"; // TRANSLATORS: US Legal (Extra) "media.na_legal-extra_9.5x15in" = "US Legal (Extra)"; // TRANSLATORS: US Legal "media.na_legal_8.5x14in" = "US Legal"; // TRANSLATORS: US Letter (Extra) "media.na_letter-extra_9.5x12in" = "US Letter (Extra)"; // TRANSLATORS: US Letter (Plus) "media.na_letter-plus_8.5x12.69in" = "US Letter (Plus)"; // TRANSLATORS: US Letter "media.na_letter_8.5x11in" = "US Letter"; // TRANSLATORS: Envelope Monarch "media.na_monarch_3.875x7.5in" = "Envelope Monarch"; // TRANSLATORS: Envelope #10 "media.na_number-10_4.125x9.5in" = "Envelope #10"; // TRANSLATORS: Envelope #11 "media.na_number-11_4.5x10.375in" = "Envelope #11"; // TRANSLATORS: Envelope #12 "media.na_number-12_4.75x11in" = "Envelope #12"; // TRANSLATORS: Envelope #14 "media.na_number-14_5x11.5in" = "Envelope #14"; // TRANSLATORS: Envelope #9 "media.na_number-9_3.875x8.875in" = "Envelope #9"; // TRANSLATORS: 8.5 x 13.4″ "media.na_oficio_8.5x13.4in" = "8.5 x 13.4″"; // TRANSLATORS: Envelope Personal "media.na_personal_3.625x6.5in" = "Envelope Personal"; // TRANSLATORS: Quarto "media.na_quarto_8.5x10.83in" = "Quarto"; // TRANSLATORS: 8.94 x 14″ "media.na_super-a_8.94x14in" = "8.94 x 14″"; // TRANSLATORS: 13 x 19″ "media.na_super-b_13x19in" = "13 x 19″"; // TRANSLATORS: 30 x 42″ "media.na_wide-format_30x42in" = "30 x 42″"; // TRANSLATORS: 12 x 16″ "media.oe_12x16_12x16in" = "12 x 16″"; // TRANSLATORS: 14 x 17″ "media.oe_14x17_14x17in" = "14 x 17″"; // TRANSLATORS: 18 x 22″ "media.oe_18x22_18x22in" = "18 x 22″"; // TRANSLATORS: 17 x 24″ "media.oe_a2plus_17x24in" = "17 x 24″"; // TRANSLATORS: 2 x 3.5″ "media.oe_business-card_2x3.5in" = "2 x 3.5″"; // TRANSLATORS: 10 x 12″ "media.oe_photo-10r_10x12in" = "10 x 12″"; // TRANSLATORS: 20 x 24″ "media.oe_photo-20r_20x24in" = "20 x 24″"; // TRANSLATORS: 3.5 x 5″ "media.oe_photo-l_3.5x5in" = "3.5 x 5″"; // TRANSLATORS: 10 x 15″ "media.oe_photo-s10r_10x15in" = "10 x 15″"; // TRANSLATORS: 4 x 4″ "media.oe_square-photo_4x4in" = "4 x 4″"; // TRANSLATORS: 5 x 5″ "media.oe_square-photo_5x5in" = "5 x 5″"; // TRANSLATORS: 184 x 260mm "media.om_16k_184x260mm" = "184 x 260mm"; // TRANSLATORS: 195 x 270mm "media.om_16k_195x270mm" = "195 x 270mm"; // TRANSLATORS: 55 x 85mm "media.om_business-card_55x85mm" = "55 x 85mm"; // TRANSLATORS: 55 x 91mm "media.om_business-card_55x91mm" = "55 x 91mm"; // TRANSLATORS: 54 x 86mm "media.om_card_54x86mm" = "54 x 86mm"; // TRANSLATORS: 275 x 395mm "media.om_dai-pa-kai_275x395mm" = "275 x 395mm"; // TRANSLATORS: 89 x 119mm "media.om_dsc-photo_89x119mm" = "89 x 119mm"; // TRANSLATORS: Folio "media.om_folio-sp_215x315mm" = "Folio"; // TRANSLATORS: Folio (Special) "media.om_folio_210x330mm" = "Folio (Special)"; // TRANSLATORS: Envelope Invitation "media.om_invite_220x220mm" = "Envelope Invitation"; // TRANSLATORS: Envelope Italian "media.om_italian_110x230mm" = "Envelope Italian"; // TRANSLATORS: 198 x 275mm "media.om_juuro-ku-kai_198x275mm" = "198 x 275mm"; // TRANSLATORS: 200 x 300 "media.om_large-photo_200x300" = "200 x 300"; // TRANSLATORS: 130 x 180mm "media.om_medium-photo_130x180mm" = "130 x 180mm"; // TRANSLATORS: 267 x 389mm "media.om_pa-kai_267x389mm" = "267 x 389mm"; // TRANSLATORS: Envelope Postfix "media.om_postfix_114x229mm" = "Envelope Postfix"; // TRANSLATORS: 100 x 150mm "media.om_small-photo_100x150mm" = "100 x 150mm"; // TRANSLATORS: 89 x 89mm "media.om_square-photo_89x89mm" = "89 x 89mm"; // TRANSLATORS: 100 x 200mm "media.om_wide-photo_100x200mm" = "100 x 200mm"; // TRANSLATORS: Envelope Chinese #10 "media.prc_10_324x458mm" = "Envelope Chinese #10"; // TRANSLATORS: Chinese 16k "media.prc_16k_146x215mm" = "Chinese 16k"; // TRANSLATORS: Envelope Chinese #1 "media.prc_1_102x165mm" = "Envelope Chinese #1"; // TRANSLATORS: Envelope Chinese #2 "media.prc_2_102x176mm" = "Envelope Chinese #2"; // TRANSLATORS: Chinese 32k "media.prc_32k_97x151mm" = "Chinese 32k"; // TRANSLATORS: Envelope Chinese #3 "media.prc_3_125x176mm" = "Envelope Chinese #3"; // TRANSLATORS: Envelope Chinese #4 "media.prc_4_110x208mm" = "Envelope Chinese #4"; // TRANSLATORS: Envelope Chinese #5 "media.prc_5_110x220mm" = "Envelope Chinese #5"; // TRANSLATORS: Envelope Chinese #6 "media.prc_6_120x320mm" = "Envelope Chinese #6"; // TRANSLATORS: Envelope Chinese #7 "media.prc_7_160x230mm" = "Envelope Chinese #7"; // TRANSLATORS: Envelope Chinese #8 "media.prc_8_120x309mm" = "Envelope Chinese #8"; // TRANSLATORS: ROC 16k "media.roc_16k_7.75x10.75in" = "ROC 16k"; // TRANSLATORS: ROC 8k "media.roc_8k_10.75x15.5in" = "ROC 8k"; "members of class %s:" = "members of class %s:"; // TRANSLATORS: Multiple Document Handling "multiple-document-handling" = "Multiple Document Handling"; // TRANSLATORS: Separate Documents Collated Copies "multiple-document-handling.separate-documents-collated-copies" = "Separate Documents Collated Copies"; // TRANSLATORS: Separate Documents Uncollated Copies "multiple-document-handling.separate-documents-uncollated-copies" = "Separate Documents Uncollated Copies"; // TRANSLATORS: Single Document "multiple-document-handling.single-document" = "Single Document"; // TRANSLATORS: Single Document New Sheet "multiple-document-handling.single-document-new-sheet" = "Single Document New Sheet"; // TRANSLATORS: Multiple Object Handling "multiple-object-handling" = "Multiple Object Handling"; // TRANSLATORS: Multiple Object Handling Actual "multiple-object-handling-actual" = "Multiple Object Handling Actual"; // TRANSLATORS: Automatic "multiple-object-handling.auto" = "Automatic"; // TRANSLATORS: Best Fit "multiple-object-handling.best-fit" = "Best Fit"; // TRANSLATORS: Best Quality "multiple-object-handling.best-quality" = "Best Quality"; // TRANSLATORS: Best Speed "multiple-object-handling.best-speed" = "Best Speed"; // TRANSLATORS: One At A Time "multiple-object-handling.one-at-a-time" = "One At A Time"; // TRANSLATORS: On Timeout "multiple-operation-time-out-action" = "On Timeout"; // TRANSLATORS: Abort Job "multiple-operation-time-out-action.abort-job" = "Abort Job"; // TRANSLATORS: Hold Job "multiple-operation-time-out-action.hold-job" = "Hold Job"; // TRANSLATORS: Process Job "multiple-operation-time-out-action.process-job" = "Process Job"; "no entries" = "no entries"; "no system default destination" = "no system default destination"; // TRANSLATORS: Noise Removal "noise-removal" = "Noise Removal"; // TRANSLATORS: Notify Attributes "notify-attributes" = "Notify Attributes"; // TRANSLATORS: Notify Charset "notify-charset" = "Notify Charset"; // TRANSLATORS: Notify Events "notify-events" = "Notify Events"; "notify-events not specified." = "notify-events not specified."; // TRANSLATORS: Document Completed "notify-events.document-completed" = "Document Completed"; // TRANSLATORS: Document Config Changed "notify-events.document-config-changed" = "Document Config Changed"; // TRANSLATORS: Document Created "notify-events.document-created" = "Document Created"; // TRANSLATORS: Document Fetchable "notify-events.document-fetchable" = "Document Fetchable"; // TRANSLATORS: Document State Changed "notify-events.document-state-changed" = "Document State Changed"; // TRANSLATORS: Document Stopped "notify-events.document-stopped" = "Document Stopped"; // TRANSLATORS: Job Completed "notify-events.job-completed" = "Job Completed"; // TRANSLATORS: Job Config Changed "notify-events.job-config-changed" = "Job Config Changed"; // TRANSLATORS: Job Created "notify-events.job-created" = "Job Created"; // TRANSLATORS: Job Fetchable "notify-events.job-fetchable" = "Job Fetchable"; // TRANSLATORS: Job Progress "notify-events.job-progress" = "Job Progress"; // TRANSLATORS: Job State Changed "notify-events.job-state-changed" = "Job State Changed"; // TRANSLATORS: Job Stopped "notify-events.job-stopped" = "Job Stopped"; // TRANSLATORS: None "notify-events.none" = "None"; // TRANSLATORS: Printer Config Changed "notify-events.printer-config-changed" = "Printer Config Changed"; // TRANSLATORS: Printer Finishings Changed "notify-events.printer-finishings-changed" = "Printer Finishings Changed"; // TRANSLATORS: Printer Media Changed "notify-events.printer-media-changed" = "Printer Media Changed"; // TRANSLATORS: Printer Queue Order Changed "notify-events.printer-queue-order-changed" = "Printer Queue Order Changed"; // TRANSLATORS: Printer Restarted "notify-events.printer-restarted" = "Printer Restarted"; // TRANSLATORS: Printer Shutdown "notify-events.printer-shutdown" = "Printer Shutdown"; // TRANSLATORS: Printer State Changed "notify-events.printer-state-changed" = "Printer State Changed"; // TRANSLATORS: Printer Stopped "notify-events.printer-stopped" = "Printer Stopped"; // TRANSLATORS: Notify Get Interval "notify-get-interval" = "Notify Get Interval"; // TRANSLATORS: Notify Lease Duration "notify-lease-duration" = "Notify Lease Duration"; // TRANSLATORS: Notify Natural Language "notify-natural-language" = "Notify Natural Language"; // TRANSLATORS: Notify Pull Method "notify-pull-method" = "Notify Pull Method"; // TRANSLATORS: Notify Recipient "notify-recipient-uri" = "Notify Recipient"; "notify-recipient-uri URI \"%s\" is already used." = "notify-recipient-uri URI “%s” is already used."; "notify-recipient-uri URI \"%s\" uses unknown scheme." = "notify-recipient-uri URI \"%s\" uses unknown scheme."; // TRANSLATORS: Notify Sequence Numbers "notify-sequence-numbers" = "Notify Sequence Numbers"; // TRANSLATORS: Notify Subscription Ids "notify-subscription-ids" = "Notify Subscription Ids"; // TRANSLATORS: Notify Time Interval "notify-time-interval" = "Notify Time Interval"; // TRANSLATORS: Notify User Data "notify-user-data" = "Notify User Data"; // TRANSLATORS: Notify Wait "notify-wait" = "Notify Wait"; // TRANSLATORS: Number Of Retries "number-of-retries" = "Number Of Retries"; // TRANSLATORS: Number-Up "number-up" = "Number-Up"; // TRANSLATORS: Object Offset "object-offset" = "Object Offset"; // TRANSLATORS: Object Size "object-size" = "Object Size"; // TRANSLATORS: Organization Name "organization-name" = "Organization Name"; // TRANSLATORS: Orientation "orientation-requested" = "Orientation"; // TRANSLATORS: Portrait "orientation-requested.3" = "Portrait"; // TRANSLATORS: Landscape "orientation-requested.4" = "Landscape"; // TRANSLATORS: Reverse Landscape "orientation-requested.5" = "Reverse Landscape"; // TRANSLATORS: Reverse Portrait "orientation-requested.6" = "Reverse Portrait"; // TRANSLATORS: None "orientation-requested.7" = "None"; // TRANSLATORS: Scanned Image Options "output-attributes" = "Scanned Image Options"; // TRANSLATORS: Output Tray "output-bin" = "Output Tray"; // TRANSLATORS: Automatic "output-bin.auto" = "Automatic"; // TRANSLATORS: Bottom "output-bin.bottom" = "Bottom"; // TRANSLATORS: Center "output-bin.center" = "Center"; // TRANSLATORS: Face Down "output-bin.face-down" = "Face Down"; // TRANSLATORS: Face Up "output-bin.face-up" = "Face Up"; // TRANSLATORS: Large Capacity "output-bin.large-capacity" = "Large Capacity"; // TRANSLATORS: Left "output-bin.left" = "Left"; // TRANSLATORS: Mailbox 1 "output-bin.mailbox-1" = "Mailbox 1"; // TRANSLATORS: Mailbox 10 "output-bin.mailbox-10" = "Mailbox 10"; // TRANSLATORS: Mailbox 2 "output-bin.mailbox-2" = "Mailbox 2"; // TRANSLATORS: Mailbox 3 "output-bin.mailbox-3" = "Mailbox 3"; // TRANSLATORS: Mailbox 4 "output-bin.mailbox-4" = "Mailbox 4"; // TRANSLATORS: Mailbox 5 "output-bin.mailbox-5" = "Mailbox 5"; // TRANSLATORS: Mailbox 6 "output-bin.mailbox-6" = "Mailbox 6"; // TRANSLATORS: Mailbox 7 "output-bin.mailbox-7" = "Mailbox 7"; // TRANSLATORS: Mailbox 8 "output-bin.mailbox-8" = "Mailbox 8"; // TRANSLATORS: Mailbox 9 "output-bin.mailbox-9" = "Mailbox 9"; // TRANSLATORS: Middle "output-bin.middle" = "Middle"; // TRANSLATORS: My Mailbox "output-bin.my-mailbox" = "My Mailbox"; // TRANSLATORS: Rear "output-bin.rear" = "Rear"; // TRANSLATORS: Right "output-bin.right" = "Right"; // TRANSLATORS: Side "output-bin.side" = "Side"; // TRANSLATORS: Stacker 1 "output-bin.stacker-1" = "Stacker 1"; // TRANSLATORS: Stacker 10 "output-bin.stacker-10" = "Stacker 10"; // TRANSLATORS: Stacker 2 "output-bin.stacker-2" = "Stacker 2"; // TRANSLATORS: Stacker 3 "output-bin.stacker-3" = "Stacker 3"; // TRANSLATORS: Stacker 4 "output-bin.stacker-4" = "Stacker 4"; // TRANSLATORS: Stacker 5 "output-bin.stacker-5" = "Stacker 5"; // TRANSLATORS: Stacker 6 "output-bin.stacker-6" = "Stacker 6"; // TRANSLATORS: Stacker 7 "output-bin.stacker-7" = "Stacker 7"; // TRANSLATORS: Stacker 8 "output-bin.stacker-8" = "Stacker 8"; // TRANSLATORS: Stacker 9 "output-bin.stacker-9" = "Stacker 9"; // TRANSLATORS: Top "output-bin.top" = "Top"; // TRANSLATORS: Tray 1 "output-bin.tray-1" = "Tray 1"; // TRANSLATORS: Tray 10 "output-bin.tray-10" = "Tray 10"; // TRANSLATORS: Tray 2 "output-bin.tray-2" = "Tray 2"; // TRANSLATORS: Tray 3 "output-bin.tray-3" = "Tray 3"; // TRANSLATORS: Tray 4 "output-bin.tray-4" = "Tray 4"; // TRANSLATORS: Tray 5 "output-bin.tray-5" = "Tray 5"; // TRANSLATORS: Tray 6 "output-bin.tray-6" = "Tray 6"; // TRANSLATORS: Tray 7 "output-bin.tray-7" = "Tray 7"; // TRANSLATORS: Tray 8 "output-bin.tray-8" = "Tray 8"; // TRANSLATORS: Tray 9 "output-bin.tray-9" = "Tray 9"; // TRANSLATORS: Scanned Image Quality "output-compression-quality-factor" = "Scanned Image Quality"; // TRANSLATORS: Page Delivery "page-delivery" = "Page Delivery"; // TRANSLATORS: Reverse Order Face-down "page-delivery.reverse-order-face-down" = "Reverse Order Face-down"; // TRANSLATORS: Reverse Order Face-up "page-delivery.reverse-order-face-up" = "Reverse Order Face-up"; // TRANSLATORS: Same Order Face-down "page-delivery.same-order-face-down" = "Same Order Face-down"; // TRANSLATORS: Same Order Face-up "page-delivery.same-order-face-up" = "Same Order Face-up"; // TRANSLATORS: System Specified "page-delivery.system-specified" = "System Specified"; // TRANSLATORS: Page Order Received "page-order-received" = "Page Order Received"; // TRANSLATORS: 1 To N "page-order-received.1-to-n-order" = "1 To N"; // TRANSLATORS: N To 1 "page-order-received.n-to-1-order" = "N To 1"; // TRANSLATORS: Page Ranges "page-ranges" = "Page Ranges"; // TRANSLATORS: Pages "pages" = "Pages"; // TRANSLATORS: Pages Per Subset "pages-per-subset" = "Pages Per Subset"; // TRANSLATORS: Pclm Raster Back Side "pclm-raster-back-side" = "Pclm Raster Back Side"; // TRANSLATORS: Flipped "pclm-raster-back-side.flipped" = "Flipped"; // TRANSLATORS: Normal "pclm-raster-back-side.normal" = "Normal"; // TRANSLATORS: Rotated "pclm-raster-back-side.rotated" = "Rotated"; // TRANSLATORS: Pclm Source Resolution "pclm-source-resolution" = "Pclm Source Resolution"; "pending" = "pending"; // TRANSLATORS: Platform Shape "platform-shape" = "Platform Shape"; // TRANSLATORS: Round "platform-shape.ellipse" = "Round"; // TRANSLATORS: Rectangle "platform-shape.rectangle" = "Rectangle"; // TRANSLATORS: Platform Temperature "platform-temperature" = "Platform Temperature"; // TRANSLATORS: Post-dial String "post-dial-string" = "Post-dial String"; "ppdc: Adding include directory \"%s\"." = "ppdc: Adding include directory “%s”."; "ppdc: Adding/updating UI text from %s." = "ppdc: Adding/updating UI text from %s."; "ppdc: Bad boolean value (%s) on line %d of %s." = "ppdc: Bad boolean value (%s) on line %d of %s."; "ppdc: Bad font attribute: %s" = "ppdc: Bad font attribute: %s"; "ppdc: Bad resolution name \"%s\" on line %d of %s." = "ppdc: Bad resolution name “%s” on line %d of %s."; "ppdc: Bad status keyword %s on line %d of %s." = "ppdc: Bad status keyword %s on line %d of %s."; "ppdc: Bad variable substitution ($%c) on line %d of %s." = "ppdc: Bad variable substitution ($%c) on line %d of %s."; "ppdc: Choice found on line %d of %s with no Option." = "ppdc: Choice found on line %d of %s with no Option."; "ppdc: Duplicate #po for locale %s on line %d of %s." = "ppdc: Duplicate #po for locale %s on line %d of %s."; "ppdc: Expected a filter definition on line %d of %s." = "ppdc: Expected a filter definition on line %d of %s."; "ppdc: Expected a program name on line %d of %s." = "ppdc: Expected a program name on line %d of %s."; "ppdc: Expected boolean value on line %d of %s." = "ppdc: Expected boolean value on line %d of %s."; "ppdc: Expected charset after Font on line %d of %s." = "ppdc: Expected charset after Font on line %d of %s."; "ppdc: Expected choice code on line %d of %s." = "ppdc: Expected choice code on line %d of %s."; "ppdc: Expected choice name/text on line %d of %s." = "ppdc: Expected choice name/text on line %d of %s."; "ppdc: Expected color order for ColorModel on line %d of %s." = "ppdc: Expected color order for ColorModel on line %d of %s."; "ppdc: Expected colorspace for ColorModel on line %d of %s." = "ppdc: Expected colorspace for ColorModel on line %d of %s."; "ppdc: Expected compression for ColorModel on line %d of %s." = "ppdc: Expected compression for ColorModel on line %d of %s."; "ppdc: Expected constraints string for UIConstraints on line %d of %s." = "ppdc: Expected constraints string for UIConstraints on line %d of %s."; "ppdc: Expected driver type keyword following DriverType on line %d of %s." = "ppdc: Expected driver type keyword following DriverType on line %d of %s."; "ppdc: Expected duplex type after Duplex on line %d of %s." = "ppdc: Expected duplex type after Duplex on line %d of %s."; "ppdc: Expected encoding after Font on line %d of %s." = "ppdc: Expected encoding after Font on line %d of %s."; "ppdc: Expected filename after #po %s on line %d of %s." = "ppdc: Expected filename after #po %s on line %d of %s."; "ppdc: Expected group name/text on line %d of %s." = "ppdc: Expected group name/text on line %d of %s."; "ppdc: Expected include filename on line %d of %s." = "ppdc: Expected include filename on line %d of %s."; "ppdc: Expected integer on line %d of %s." = "ppdc: Expected integer on line %d of %s."; "ppdc: Expected locale after #po on line %d of %s." = "ppdc: Expected locale after #po on line %d of %s."; "ppdc: Expected name after %s on line %d of %s." = "ppdc: Expected name after %s on line %d of %s."; "ppdc: Expected name after FileName on line %d of %s." = "ppdc: Expected name after FileName on line %d of %s."; "ppdc: Expected name after Font on line %d of %s." = "ppdc: Expected name after Font on line %d of %s."; "ppdc: Expected name after Manufacturer on line %d of %s." = "ppdc: Expected name after Manufacturer on line %d of %s."; "ppdc: Expected name after MediaSize on line %d of %s." = "ppdc: Expected name after MediaSize on line %d of %s."; "ppdc: Expected name after ModelName on line %d of %s." = "ppdc: Expected name after ModelName on line %d of %s."; "ppdc: Expected name after PCFileName on line %d of %s." = "ppdc: Expected name after PCFileName on line %d of %s."; "ppdc: Expected name/text after %s on line %d of %s." = "ppdc: Expected name/text after %s on line %d of %s."; "ppdc: Expected name/text after Installable on line %d of %s." = "ppdc: Expected name/text after Installable on line %d of %s."; "ppdc: Expected name/text after Resolution on line %d of %s." = "ppdc: Expected name/text after Resolution on line %d of %s."; "ppdc: Expected name/text combination for ColorModel on line %d of %s." = "ppdc: Expected name/text combination for ColorModel on line %d of %s."; "ppdc: Expected option name/text on line %d of %s." = "ppdc: Expected option name/text on line %d of %s."; "ppdc: Expected option section on line %d of %s." = "ppdc: Expected option section on line %d of %s."; "ppdc: Expected option type on line %d of %s." = "ppdc: Expected option type on line %d of %s."; "ppdc: Expected override field after Resolution on line %d of %s." = "ppdc: Expected override field after Resolution on line %d of %s."; "ppdc: Expected quoted string on line %d of %s." = "ppdc: Expected quoted string on line %d of %s."; "ppdc: Expected real number on line %d of %s." = "ppdc: Expected real number on line %d of %s."; "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." = "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s."; "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d of %s." = "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d of %s."; "ppdc: Expected selector after %s on line %d of %s." = "ppdc: Expected selector after %s on line %d of %s."; "ppdc: Expected status after Font on line %d of %s." = "ppdc: Expected status after Font on line %d of %s."; "ppdc: Expected string after Copyright on line %d of %s." = "ppdc: Expected string after Copyright on line %d of %s."; "ppdc: Expected string after Version on line %d of %s." = "ppdc: Expected string after Version on line %d of %s."; "ppdc: Expected two option names on line %d of %s." = "ppdc: Expected two option names on line %d of %s."; "ppdc: Expected value after %s on line %d of %s." = "ppdc: Expected value after %s on line %d of %s."; "ppdc: Expected version after Font on line %d of %s." = "ppdc: Expected version after Font on line %d of %s."; "ppdc: Invalid #include/#po filename \"%s\"." = "ppdc: Invalid #include/#po filename “%s”."; "ppdc: Invalid cost for filter on line %d of %s." = "ppdc: Invalid cost for filter on line %d of %s."; "ppdc: Invalid empty MIME type for filter on line %d of %s." = "ppdc: Invalid empty MIME type for filter on line %d of %s."; "ppdc: Invalid empty program name for filter on line %d of %s." = "ppdc: Invalid empty program name for filter on line %d of %s."; "ppdc: Invalid option section \"%s\" on line %d of %s." = "ppdc: Invalid option section “%s” on line %d of %s."; "ppdc: Invalid option type \"%s\" on line %d of %s." = "ppdc: Invalid option type “%s” on line %d of %s."; "ppdc: Loading driver information file \"%s\"." = "ppdc: Loading driver information file “%s”."; "ppdc: Loading messages for locale \"%s\"." = "ppdc: Loading messages for locale “%s”."; "ppdc: Loading messages from \"%s\"." = "ppdc: Loading messages from “%s”."; "ppdc: Missing #endif at end of \"%s\"." = "ppdc: Missing #endif at end of “%s”."; "ppdc: Missing #if on line %d of %s." = "ppdc: Missing #if on line %d of %s."; "ppdc: Need a msgid line before any translation strings on line %d of %s." = "ppdc: Need a msgid line before any translation strings on line %d of %s."; "ppdc: No message catalog provided for locale %s." = "ppdc: No message catalog provided for locale %s."; "ppdc: Option %s defined in two different groups on line %d of %s." = "ppdc: Option %s defined in two different groups on line %d of %s."; "ppdc: Option %s redefined with a different type on line %d of %s." = "ppdc: Option %s redefined with a different type on line %d of %s."; "ppdc: Option constraint must *name on line %d of %s." = "ppdc: Option constraint must *name on line %d of %s."; "ppdc: Too many nested #if's on line %d of %s." = "ppdc: Too many nested #if’s on line %d of %s."; "ppdc: Unable to create PPD file \"%s\" - %s." = "ppdc: Unable to create PPD file “%s” - %s."; "ppdc: Unable to create output directory %s: %s" = "ppdc: Unable to create output directory %s: %s"; "ppdc: Unable to create output pipes: %s" = "ppdc: Unable to create output pipes: %s"; "ppdc: Unable to execute cupstestppd: %s" = "ppdc: Unable to execute cupstestppd: %s"; "ppdc: Unable to find #po file %s on line %d of %s." = "ppdc: Unable to find #po file %s on line %d of %s."; "ppdc: Unable to find include file \"%s\" on line %d of %s." = "ppdc: Unable to find include file “%s” on line %d of %s."; "ppdc: Unable to find localization for \"%s\" - %s" = "ppdc: Unable to find localization for “%s” - %s"; "ppdc: Unable to load localization file \"%s\" - %s" = "ppdc: Unable to load localization file “%s” - %s"; "ppdc: Unable to open %s: %s" = "ppdc: Unable to open %s: %s"; "ppdc: Undefined variable (%s) on line %d of %s." = "ppdc: Undefined variable (%s) on line %d of %s."; "ppdc: Unexpected text on line %d of %s." = "ppdc: Unexpected text on line %d of %s."; "ppdc: Unknown driver type %s on line %d of %s." = "ppdc: Unknown driver type %s on line %d of %s."; "ppdc: Unknown duplex type \"%s\" on line %d of %s." = "ppdc: Unknown duplex type “%s” on line %d of %s."; "ppdc: Unknown media size \"%s\" on line %d of %s." = "ppdc: Unknown media size “%s” on line %d of %s."; "ppdc: Unknown message catalog format for \"%s\"." = "ppdc: Unknown message catalog format for “%s”."; "ppdc: Unknown token \"%s\" seen on line %d of %s." = "ppdc: Unknown token “%s” seen on line %d of %s."; "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." = "ppdc: Unknown trailing characters in real number “%s” on line %d of %s."; "ppdc: Unterminated string starting with %c on line %d of %s." = "ppdc: Unterminated string starting with %c on line %d of %s."; "ppdc: Warning - overlapping filename \"%s\"." = "ppdc: Warning - overlapping filename “%s”."; "ppdc: Writing %s." = "ppdc: Writing %s."; "ppdc: Writing PPD files to directory \"%s\"." = "ppdc: Writing PPD files to directory “%s”."; "ppdmerge: Bad LanguageVersion \"%s\" in %s." = "ppdmerge: Bad LanguageVersion “%s” in %s."; "ppdmerge: Ignoring PPD file %s." = "ppdmerge: Ignoring PPD file %s."; "ppdmerge: Unable to backup %s to %s - %s" = "ppdmerge: Unable to backup %s to %s - %s"; // TRANSLATORS: Pre-dial String "pre-dial-string" = "Pre-dial String"; // TRANSLATORS: Number-Up Layout "presentation-direction-number-up" = "Number-Up Layout"; // TRANSLATORS: Top-bottom, Right-left "presentation-direction-number-up.tobottom-toleft" = "Top-bottom, Right-left"; // TRANSLATORS: Top-bottom, Left-right "presentation-direction-number-up.tobottom-toright" = "Top-bottom, Left-right"; // TRANSLATORS: Right-left, Top-bottom "presentation-direction-number-up.toleft-tobottom" = "Right-left, Top-bottom"; // TRANSLATORS: Right-left, Bottom-top "presentation-direction-number-up.toleft-totop" = "Right-left, Bottom-top"; // TRANSLATORS: Left-right, Top-bottom "presentation-direction-number-up.toright-tobottom" = "Left-right, Top-bottom"; // TRANSLATORS: Left-right, Bottom-top "presentation-direction-number-up.toright-totop" = "Left-right, Bottom-top"; // TRANSLATORS: Bottom-top, Right-left "presentation-direction-number-up.totop-toleft" = "Bottom-top, Right-left"; // TRANSLATORS: Bottom-top, Left-right "presentation-direction-number-up.totop-toright" = "Bottom-top, Left-right"; // TRANSLATORS: Print Accuracy "print-accuracy" = "Print Accuracy"; // TRANSLATORS: Print Base "print-base" = "Print Base"; // TRANSLATORS: Print Base Actual "print-base-actual" = "Print Base Actual"; // TRANSLATORS: Brim "print-base.brim" = "Brim"; // TRANSLATORS: None "print-base.none" = "None"; // TRANSLATORS: Raft "print-base.raft" = "Raft"; // TRANSLATORS: Skirt "print-base.skirt" = "Skirt"; // TRANSLATORS: Standard "print-base.standard" = "Standard"; // TRANSLATORS: Print Color Mode "print-color-mode" = "Print Color Mode"; // TRANSLATORS: Automatic "print-color-mode.auto" = "Automatic"; // TRANSLATORS: Auto Monochrome "print-color-mode.auto-monochrome" = "Auto Monochrome"; // TRANSLATORS: Text "print-color-mode.bi-level" = "Text"; // TRANSLATORS: Color "print-color-mode.color" = "Color"; // TRANSLATORS: Highlight "print-color-mode.highlight" = "Highlight"; // TRANSLATORS: Monochrome "print-color-mode.monochrome" = "Monochrome"; // TRANSLATORS: Process Text "print-color-mode.process-bi-level" = "Process Text"; // TRANSLATORS: Process Monochrome "print-color-mode.process-monochrome" = "Process Monochrome"; // TRANSLATORS: Print Optimization "print-content-optimize" = "Print Optimization"; // TRANSLATORS: Print Content Optimize Actual "print-content-optimize-actual" = "Print Optimization"; // TRANSLATORS: Automatic "print-content-optimize.auto" = "Automatic"; // TRANSLATORS: Graphics "print-content-optimize.graphic" = "Graphics"; // TRANSLATORS: Graphics "print-content-optimize.graphics" = "Graphics"; // TRANSLATORS: Photo "print-content-optimize.photo" = "Photo"; // TRANSLATORS: Text "print-content-optimize.text" = "Text"; // TRANSLATORS: Text and Graphics "print-content-optimize.text-and-graphic" = "Text and Graphics"; // TRANSLATORS: Text And Graphics "print-content-optimize.text-and-graphics" = "Text and Graphics"; // TRANSLATORS: Print Objects "print-objects" = "Print Objects"; // TRANSLATORS: Print Quality "print-quality" = "Print Quality"; // TRANSLATORS: Draft "print-quality.3" = "Draft"; // TRANSLATORS: Normal "print-quality.4" = "Normal"; // TRANSLATORS: High "print-quality.5" = "High"; // TRANSLATORS: Print Rendering Intent "print-rendering-intent" = "Print Rendering Intent"; // TRANSLATORS: Absolute "print-rendering-intent.absolute" = "Absolute"; // TRANSLATORS: Automatic "print-rendering-intent.auto" = "Automatic"; // TRANSLATORS: Perceptual "print-rendering-intent.perceptual" = "Perceptual"; // TRANSLATORS: Relative "print-rendering-intent.relative" = "Relative"; // TRANSLATORS: Relative w/Black Point Compensation "print-rendering-intent.relative-bpc" = "Relative w/Black Point Compensation"; // TRANSLATORS: Saturation "print-rendering-intent.saturation" = "Saturation"; // TRANSLATORS: Print Scaling "print-scaling" = "Print Scaling"; // TRANSLATORS: Automatic "print-scaling.auto" = "Automatic"; // TRANSLATORS: Auto-fit "print-scaling.auto-fit" = "Auto-fit"; // TRANSLATORS: Fill "print-scaling.fill" = "Fill"; // TRANSLATORS: Fit "print-scaling.fit" = "Fit"; // TRANSLATORS: None "print-scaling.none" = "None"; // TRANSLATORS: Print Supports "print-supports" = "Print Supports"; // TRANSLATORS: Print Supports Actual "print-supports-actual" = "Print Supports Actual"; // TRANSLATORS: With Specified Material "print-supports.material" = "With Specified Material"; // TRANSLATORS: None "print-supports.none" = "None"; // TRANSLATORS: Standard "print-supports.standard" = "Standard"; "printer %s disabled since %s -" = "printer %s disabled since %s -"; "printer %s is holding new jobs. enabled since %s" = "printer %s is holding new jobs. enabled since %s"; "printer %s is idle. enabled since %s" = "printer %s is idle. enabled since %s"; "printer %s now printing %s-%d. enabled since %s" = "printer %s now printing %s-%d. enabled since %s"; "printer %s/%s disabled since %s -" = "printer %s/%s disabled since %s -"; "printer %s/%s is idle. enabled since %s" = "printer %s/%s is idle. enabled since %s"; "printer %s/%s now printing %s-%d. enabled since %s" = "printer %s/%s now printing %s-%d. enabled since %s"; // TRANSLATORS: Printer Kind "printer-kind" = "Printer Kind"; // TRANSLATORS: Disc "printer-kind.disc" = "Disc"; // TRANSLATORS: Document "printer-kind.document" = "Document"; // TRANSLATORS: Envelope "printer-kind.envelope" = "Envelope"; // TRANSLATORS: Label "printer-kind.label" = "Label"; // TRANSLATORS: Large Format "printer-kind.large-format" = "Large format"; // TRANSLATORS: Photo "printer-kind.photo" = "Photo"; // TRANSLATORS: Postcard "printer-kind.postcard" = "Postcard"; // TRANSLATORS: Receipt "printer-kind.receipt" = "Receipt"; // TRANSLATORS: Roll "printer-kind.roll" = "Roll"; // TRANSLATORS: Message From Operator "printer-message-from-operator" = "Message From Operator"; // TRANSLATORS: Print Resolution "printer-resolution" = "Print Resolution"; // TRANSLATORS: Printer State "printer-state" = "Printer State"; // TRANSLATORS: Detailed Printer State "printer-state-reasons" = "Detailed Printer State"; // TRANSLATORS: Old Alerts Have Been Removed "printer-state-reasons.alert-removal-of-binary-change-entry" = "Old Alerts Have Been Removed"; // TRANSLATORS: Bander Added "printer-state-reasons.bander-added" = "Bander Added"; // TRANSLATORS: Bander Almost Empty "printer-state-reasons.bander-almost-empty" = "Bander Almost Empty"; // TRANSLATORS: Bander Almost Full "printer-state-reasons.bander-almost-full" = "Bander Almost Full"; // TRANSLATORS: Bander At Limit "printer-state-reasons.bander-at-limit" = "Bander At Limit"; // TRANSLATORS: Bander Closed "printer-state-reasons.bander-closed" = "Bander Closed"; // TRANSLATORS: Bander Configuration Change "printer-state-reasons.bander-configuration-change" = "Bander Configuration Change"; // TRANSLATORS: Bander Cover Closed "printer-state-reasons.bander-cover-closed" = "Bander Cover Closed"; // TRANSLATORS: Bander Cover Open "printer-state-reasons.bander-cover-open" = "Bander Cover Open"; // TRANSLATORS: Bander Empty "printer-state-reasons.bander-empty" = "Bander Empty"; // TRANSLATORS: Bander Full "printer-state-reasons.bander-full" = "Bander Full"; // TRANSLATORS: Bander Interlock Closed "printer-state-reasons.bander-interlock-closed" = "Bander Interlock Closed"; // TRANSLATORS: Bander Interlock Open "printer-state-reasons.bander-interlock-open" = "Bander Interlock Open"; // TRANSLATORS: Bander Jam "printer-state-reasons.bander-jam" = "Bander Jam"; // TRANSLATORS: Bander Life Almost Over "printer-state-reasons.bander-life-almost-over" = "Bander Life Almost Over"; // TRANSLATORS: Bander Life Over "printer-state-reasons.bander-life-over" = "Bander Life Over"; // TRANSLATORS: Bander Memory Exhausted "printer-state-reasons.bander-memory-exhausted" = "Bander Memory Exhausted"; // TRANSLATORS: Bander Missing "printer-state-reasons.bander-missing" = "Bander Missing"; // TRANSLATORS: Bander Motor Failure "printer-state-reasons.bander-motor-failure" = "Bander Motor Failure"; // TRANSLATORS: Bander Near Limit "printer-state-reasons.bander-near-limit" = "Bander Near Limit"; // TRANSLATORS: Bander Offline "printer-state-reasons.bander-offline" = "Bander Offline"; // TRANSLATORS: Bander Opened "printer-state-reasons.bander-opened" = "Bander Opened"; // TRANSLATORS: Bander Over Temperature "printer-state-reasons.bander-over-temperature" = "Bander Over Temperature"; // TRANSLATORS: Bander Power Saver "printer-state-reasons.bander-power-saver" = "Bander Power Saver"; // TRANSLATORS: Bander Recoverable Failure "printer-state-reasons.bander-recoverable-failure" = "Bander Recoverable Failure"; // TRANSLATORS: Bander Recoverable Storage "printer-state-reasons.bander-recoverable-storage" = "Bander Recoverable Storage"; // TRANSLATORS: Bander Removed "printer-state-reasons.bander-removed" = "Bander Removed"; // TRANSLATORS: Bander Resource Added "printer-state-reasons.bander-resource-added" = "Bander Resource Added"; // TRANSLATORS: Bander Resource Removed "printer-state-reasons.bander-resource-removed" = "Bander Resource Removed"; // TRANSLATORS: Bander Thermistor Failure "printer-state-reasons.bander-thermistor-failure" = "Bander Thermistor Failure"; // TRANSLATORS: Bander Timing Failure "printer-state-reasons.bander-timing-failure" = "Bander Timing Failure"; // TRANSLATORS: Bander Turned Off "printer-state-reasons.bander-turned-off" = "Bander Turned Off"; // TRANSLATORS: Bander Turned On "printer-state-reasons.bander-turned-on" = "Bander Turned On"; // TRANSLATORS: Bander Under Temperature "printer-state-reasons.bander-under-temperature" = "Bander Under Temperature"; // TRANSLATORS: Bander Unrecoverable Failure "printer-state-reasons.bander-unrecoverable-failure" = "Bander Unrecoverable Failure"; // TRANSLATORS: Bander Unrecoverable Storage Error "printer-state-reasons.bander-unrecoverable-storage-error" = "Bander Unrecoverable Storage Error"; // TRANSLATORS: Bander Warming Up "printer-state-reasons.bander-warming-up" = "Bander Warming Up"; // TRANSLATORS: Binder Added "printer-state-reasons.binder-added" = "Binder Added"; // TRANSLATORS: Binder Almost Empty "printer-state-reasons.binder-almost-empty" = "Binder Almost Empty"; // TRANSLATORS: Binder Almost Full "printer-state-reasons.binder-almost-full" = "Binder Almost Full"; // TRANSLATORS: Binder At Limit "printer-state-reasons.binder-at-limit" = "Binder At Limit"; // TRANSLATORS: Binder Closed "printer-state-reasons.binder-closed" = "Binder Closed"; // TRANSLATORS: Binder Configuration Change "printer-state-reasons.binder-configuration-change" = "Binder Configuration Change"; // TRANSLATORS: Binder Cover Closed "printer-state-reasons.binder-cover-closed" = "Binder Cover Closed"; // TRANSLATORS: Binder Cover Open "printer-state-reasons.binder-cover-open" = "Binder Cover Open"; // TRANSLATORS: Binder Empty "printer-state-reasons.binder-empty" = "Binder Empty"; // TRANSLATORS: Binder Full "printer-state-reasons.binder-full" = "Binder Full"; // TRANSLATORS: Binder Interlock Closed "printer-state-reasons.binder-interlock-closed" = "Binder Interlock Closed"; // TRANSLATORS: Binder Interlock Open "printer-state-reasons.binder-interlock-open" = "Binder Interlock Open"; // TRANSLATORS: Binder Jam "printer-state-reasons.binder-jam" = "Binder Jam"; // TRANSLATORS: Binder Life Almost Over "printer-state-reasons.binder-life-almost-over" = "Binder Life Almost Over"; // TRANSLATORS: Binder Life Over "printer-state-reasons.binder-life-over" = "Binder Life Over"; // TRANSLATORS: Binder Memory Exhausted "printer-state-reasons.binder-memory-exhausted" = "Binder Memory Exhausted"; // TRANSLATORS: Binder Missing "printer-state-reasons.binder-missing" = "Binder Missing"; // TRANSLATORS: Binder Motor Failure "printer-state-reasons.binder-motor-failure" = "Binder Motor Failure"; // TRANSLATORS: Binder Near Limit "printer-state-reasons.binder-near-limit" = "Binder Near Limit"; // TRANSLATORS: Binder Offline "printer-state-reasons.binder-offline" = "Binder Offline"; // TRANSLATORS: Binder Opened "printer-state-reasons.binder-opened" = "Binder Opened"; // TRANSLATORS: Binder Over Temperature "printer-state-reasons.binder-over-temperature" = "Binder Over Temperature"; // TRANSLATORS: Binder Power Saver "printer-state-reasons.binder-power-saver" = "Binder Power Saver"; // TRANSLATORS: Binder Recoverable Failure "printer-state-reasons.binder-recoverable-failure" = "Binder Recoverable Failure"; // TRANSLATORS: Binder Recoverable Storage "printer-state-reasons.binder-recoverable-storage" = "Binder Recoverable Storage"; // TRANSLATORS: Binder Removed "printer-state-reasons.binder-removed" = "Binder Removed"; // TRANSLATORS: Binder Resource Added "printer-state-reasons.binder-resource-added" = "Binder Resource Added"; // TRANSLATORS: Binder Resource Removed "printer-state-reasons.binder-resource-removed" = "Binder Resource Removed"; // TRANSLATORS: Binder Thermistor Failure "printer-state-reasons.binder-thermistor-failure" = "Binder Thermistor Failure"; // TRANSLATORS: Binder Timing Failure "printer-state-reasons.binder-timing-failure" = "Binder Timing Failure"; // TRANSLATORS: Binder Turned Off "printer-state-reasons.binder-turned-off" = "Binder Turned Off"; // TRANSLATORS: Binder Turned On "printer-state-reasons.binder-turned-on" = "Binder Turned On"; // TRANSLATORS: Binder Under Temperature "printer-state-reasons.binder-under-temperature" = "Binder Under Temperature"; // TRANSLATORS: Binder Unrecoverable Failure "printer-state-reasons.binder-unrecoverable-failure" = "Binder Unrecoverable Failure"; // TRANSLATORS: Binder Unrecoverable Storage Error "printer-state-reasons.binder-unrecoverable-storage-error" = "Binder Unrecoverable Storage Error"; // TRANSLATORS: Binder Warming Up "printer-state-reasons.binder-warming-up" = "Binder Warming Up"; // TRANSLATORS: Camera Failure "printer-state-reasons.camera-failure" = "Camera Failure"; // TRANSLATORS: Chamber Cooling "printer-state-reasons.chamber-cooling" = "Chamber Cooling"; // TRANSLATORS: Chamber Failure "printer-state-reasons.chamber-failure" = "Chamber Failure"; // TRANSLATORS: Chamber Heating "printer-state-reasons.chamber-heating" = "Chamber Heating"; // TRANSLATORS: Chamber Temperature High "printer-state-reasons.chamber-temperature-high" = "Chamber Temperature High"; // TRANSLATORS: Chamber Temperature Low "printer-state-reasons.chamber-temperature-low" = "Chamber Temperature Low"; // TRANSLATORS: Cleaner Life Almost Over "printer-state-reasons.cleaner-life-almost-over" = "Cleaner Life Almost Over"; // TRANSLATORS: Cleaner Life Over "printer-state-reasons.cleaner-life-over" = "Cleaner Life Over"; // TRANSLATORS: Configuration Change "printer-state-reasons.configuration-change" = "Configuration Change"; // TRANSLATORS: Connecting To Device "printer-state-reasons.connecting-to-device" = "Connecting To Device"; // TRANSLATORS: Cover Open "printer-state-reasons.cover-open" = "Cover Open"; // TRANSLATORS: Deactivated "printer-state-reasons.deactivated" = "Deactivated"; // TRANSLATORS: Developer Empty "printer-state-reasons.developer-empty" = "Developer Empty"; // TRANSLATORS: Developer Low "printer-state-reasons.developer-low" = "Developer Low"; // TRANSLATORS: Die Cutter Added "printer-state-reasons.die-cutter-added" = "Die Cutter Added"; // TRANSLATORS: Die Cutter Almost Empty "printer-state-reasons.die-cutter-almost-empty" = "Die Cutter Almost Empty"; // TRANSLATORS: Die Cutter Almost Full "printer-state-reasons.die-cutter-almost-full" = "Die Cutter Almost Full"; // TRANSLATORS: Die Cutter At Limit "printer-state-reasons.die-cutter-at-limit" = "Die Cutter At Limit"; // TRANSLATORS: Die Cutter Closed "printer-state-reasons.die-cutter-closed" = "Die Cutter Closed"; // TRANSLATORS: Die Cutter Configuration Change "printer-state-reasons.die-cutter-configuration-change" = "Die Cutter Configuration Change"; // TRANSLATORS: Die Cutter Cover Closed "printer-state-reasons.die-cutter-cover-closed" = "Die Cutter Cover Closed"; // TRANSLATORS: Die Cutter Cover Open "printer-state-reasons.die-cutter-cover-open" = "Die Cutter Cover Open"; // TRANSLATORS: Die Cutter Empty "printer-state-reasons.die-cutter-empty" = "Die Cutter Empty"; // TRANSLATORS: Die Cutter Full "printer-state-reasons.die-cutter-full" = "Die Cutter Full"; // TRANSLATORS: Die Cutter Interlock Closed "printer-state-reasons.die-cutter-interlock-closed" = "Die Cutter Interlock Closed"; // TRANSLATORS: Die Cutter Interlock Open "printer-state-reasons.die-cutter-interlock-open" = "Die Cutter Interlock Open"; // TRANSLATORS: Die Cutter Jam "printer-state-reasons.die-cutter-jam" = "Die Cutter Jam"; // TRANSLATORS: Die Cutter Life Almost Over "printer-state-reasons.die-cutter-life-almost-over" = "Die Cutter Life Almost Over"; // TRANSLATORS: Die Cutter Life Over "printer-state-reasons.die-cutter-life-over" = "Die Cutter Life Over"; // TRANSLATORS: Die Cutter Memory Exhausted "printer-state-reasons.die-cutter-memory-exhausted" = "Die Cutter Memory Exhausted"; // TRANSLATORS: Die Cutter Missing "printer-state-reasons.die-cutter-missing" = "Die Cutter Missing"; // TRANSLATORS: Die Cutter Motor Failure "printer-state-reasons.die-cutter-motor-failure" = "Die Cutter Motor Failure"; // TRANSLATORS: Die Cutter Near Limit "printer-state-reasons.die-cutter-near-limit" = "Die Cutter Near Limit"; // TRANSLATORS: Die Cutter Offline "printer-state-reasons.die-cutter-offline" = "Die Cutter Offline"; // TRANSLATORS: Die Cutter Opened "printer-state-reasons.die-cutter-opened" = "Die Cutter Opened"; // TRANSLATORS: Die Cutter Over Temperature "printer-state-reasons.die-cutter-over-temperature" = "Die Cutter Over Temperature"; // TRANSLATORS: Die Cutter Power Saver "printer-state-reasons.die-cutter-power-saver" = "Die Cutter Power Saver"; // TRANSLATORS: Die Cutter Recoverable Failure "printer-state-reasons.die-cutter-recoverable-failure" = "Die Cutter Recoverable Failure"; // TRANSLATORS: Die Cutter Recoverable Storage "printer-state-reasons.die-cutter-recoverable-storage" = "Die Cutter Recoverable Storage"; // TRANSLATORS: Die Cutter Removed "printer-state-reasons.die-cutter-removed" = "Die Cutter Removed"; // TRANSLATORS: Die Cutter Resource Added "printer-state-reasons.die-cutter-resource-added" = "Die Cutter Resource Added"; // TRANSLATORS: Die Cutter Resource Removed "printer-state-reasons.die-cutter-resource-removed" = "Die Cutter Resource Removed"; // TRANSLATORS: Die Cutter Thermistor Failure "printer-state-reasons.die-cutter-thermistor-failure" = "Die Cutter Thermistor Failure"; // TRANSLATORS: Die Cutter Timing Failure "printer-state-reasons.die-cutter-timing-failure" = "Die Cutter Timing Failure"; // TRANSLATORS: Die Cutter Turned Off "printer-state-reasons.die-cutter-turned-off" = "Die Cutter Turned Off"; // TRANSLATORS: Die Cutter Turned On "printer-state-reasons.die-cutter-turned-on" = "Die Cutter Turned On"; // TRANSLATORS: Die Cutter Under Temperature "printer-state-reasons.die-cutter-under-temperature" = "Die Cutter Under Temperature"; // TRANSLATORS: Die Cutter Unrecoverable Failure "printer-state-reasons.die-cutter-unrecoverable-failure" = "Die Cutter Unrecoverable Failure"; // TRANSLATORS: Die Cutter Unrecoverable Storage Error "printer-state-reasons.die-cutter-unrecoverable-storage-error" = "Die Cutter Unrecoverable Storage Error"; // TRANSLATORS: Die Cutter Warming Up "printer-state-reasons.die-cutter-warming-up" = "Die Cutter Warming Up"; // TRANSLATORS: Door Open "printer-state-reasons.door-open" = "Door Open"; // TRANSLATORS: Extruder Cooling "printer-state-reasons.extruder-cooling" = "Extruder Cooling"; // TRANSLATORS: Extruder Failure "printer-state-reasons.extruder-failure" = "Extruder Failure"; // TRANSLATORS: Extruder Heating "printer-state-reasons.extruder-heating" = "Extruder Heating"; // TRANSLATORS: Extruder Jam "printer-state-reasons.extruder-jam" = "Extruder Jam"; // TRANSLATORS: Extruder Temperature High "printer-state-reasons.extruder-temperature-high" = "Extruder Temperature High"; // TRANSLATORS: Extruder Temperature Low "printer-state-reasons.extruder-temperature-low" = "Extruder Temperature Low"; // TRANSLATORS: Fan Failure "printer-state-reasons.fan-failure" = "Fan Failure"; // TRANSLATORS: Fax Modem Life Almost Over "printer-state-reasons.fax-modem-life-almost-over" = "Fax Modem Life Almost Over"; // TRANSLATORS: Fax Modem Life Over "printer-state-reasons.fax-modem-life-over" = "Fax Modem Life Over"; // TRANSLATORS: Fax Modem Missing "printer-state-reasons.fax-modem-missing" = "Fax Modem Missing"; // TRANSLATORS: Fax Modem Turned Off "printer-state-reasons.fax-modem-turned-off" = "Fax Modem Turned Off"; // TRANSLATORS: Fax Modem Turned On "printer-state-reasons.fax-modem-turned-on" = "Fax Modem Turned On"; // TRANSLATORS: Folder Added "printer-state-reasons.folder-added" = "Folder Added"; // TRANSLATORS: Folder Almost Empty "printer-state-reasons.folder-almost-empty" = "Folder Almost Empty"; // TRANSLATORS: Folder Almost Full "printer-state-reasons.folder-almost-full" = "Folder Almost Full"; // TRANSLATORS: Folder At Limit "printer-state-reasons.folder-at-limit" = "Folder At Limit"; // TRANSLATORS: Folder Closed "printer-state-reasons.folder-closed" = "Folder Closed"; // TRANSLATORS: Folder Configuration Change "printer-state-reasons.folder-configuration-change" = "Folder Configuration Change"; // TRANSLATORS: Folder Cover Closed "printer-state-reasons.folder-cover-closed" = "Folder Cover Closed"; // TRANSLATORS: Folder Cover Open "printer-state-reasons.folder-cover-open" = "Folder Cover Open"; // TRANSLATORS: Folder Empty "printer-state-reasons.folder-empty" = "Folder Empty"; // TRANSLATORS: Folder Full "printer-state-reasons.folder-full" = "Folder Full"; // TRANSLATORS: Folder Interlock Closed "printer-state-reasons.folder-interlock-closed" = "Folder Interlock Closed"; // TRANSLATORS: Folder Interlock Open "printer-state-reasons.folder-interlock-open" = "Folder Interlock Open"; // TRANSLATORS: Folder Jam "printer-state-reasons.folder-jam" = "Folder Jam"; // TRANSLATORS: Folder Life Almost Over "printer-state-reasons.folder-life-almost-over" = "Folder Life Almost Over"; // TRANSLATORS: Folder Life Over "printer-state-reasons.folder-life-over" = "Folder Life Over"; // TRANSLATORS: Folder Memory Exhausted "printer-state-reasons.folder-memory-exhausted" = "Folder Memory Exhausted"; // TRANSLATORS: Folder Missing "printer-state-reasons.folder-missing" = "Folder Missing"; // TRANSLATORS: Folder Motor Failure "printer-state-reasons.folder-motor-failure" = "Folder Motor Failure"; // TRANSLATORS: Folder Near Limit "printer-state-reasons.folder-near-limit" = "Folder Near Limit"; // TRANSLATORS: Folder Offline "printer-state-reasons.folder-offline" = "Folder Offline"; // TRANSLATORS: Folder Opened "printer-state-reasons.folder-opened" = "Folder Opened"; // TRANSLATORS: Folder Over Temperature "printer-state-reasons.folder-over-temperature" = "Folder Over Temperature"; // TRANSLATORS: Folder Power Saver "printer-state-reasons.folder-power-saver" = "Folder Power Saver"; // TRANSLATORS: Folder Recoverable Failure "printer-state-reasons.folder-recoverable-failure" = "Folder Recoverable Failure"; // TRANSLATORS: Folder Recoverable Storage "printer-state-reasons.folder-recoverable-storage" = "Folder Recoverable Storage"; // TRANSLATORS: Folder Removed "printer-state-reasons.folder-removed" = "Folder Removed"; // TRANSLATORS: Folder Resource Added "printer-state-reasons.folder-resource-added" = "Folder Resource Added"; // TRANSLATORS: Folder Resource Removed "printer-state-reasons.folder-resource-removed" = "Folder Resource Removed"; // TRANSLATORS: Folder Thermistor Failure "printer-state-reasons.folder-thermistor-failure" = "Folder Thermistor Failure"; // TRANSLATORS: Folder Timing Failure "printer-state-reasons.folder-timing-failure" = "Folder Timing Failure"; // TRANSLATORS: Folder Turned Off "printer-state-reasons.folder-turned-off" = "Folder Turned Off"; // TRANSLATORS: Folder Turned On "printer-state-reasons.folder-turned-on" = "Folder Turned On"; // TRANSLATORS: Folder Under Temperature "printer-state-reasons.folder-under-temperature" = "Folder Under Temperature"; // TRANSLATORS: Folder Unrecoverable Failure "printer-state-reasons.folder-unrecoverable-failure" = "Folder Unrecoverable Failure"; // TRANSLATORS: Folder Unrecoverable Storage Error "printer-state-reasons.folder-unrecoverable-storage-error" = "Folder Unrecoverable Storage Error"; // TRANSLATORS: Folder Warming Up "printer-state-reasons.folder-warming-up" = "Folder Warming Up"; // TRANSLATORS: Fuser temperature high "printer-state-reasons.fuser-over-temp" = "Fuser Over Temp"; // TRANSLATORS: Fuser temperature low "printer-state-reasons.fuser-under-temp" = "Fuser Under Temp"; // TRANSLATORS: Hold New Jobs "printer-state-reasons.hold-new-jobs" = "Hold New Jobs"; // TRANSLATORS: Identify Printer "printer-state-reasons.identify-printer-requested" = "Identify Printer"; // TRANSLATORS: Imprinter Added "printer-state-reasons.imprinter-added" = "Imprinter Added"; // TRANSLATORS: Imprinter Almost Empty "printer-state-reasons.imprinter-almost-empty" = "Imprinter Almost Empty"; // TRANSLATORS: Imprinter Almost Full "printer-state-reasons.imprinter-almost-full" = "Imprinter Almost Full"; // TRANSLATORS: Imprinter At Limit "printer-state-reasons.imprinter-at-limit" = "Imprinter At Limit"; // TRANSLATORS: Imprinter Closed "printer-state-reasons.imprinter-closed" = "Imprinter Closed"; // TRANSLATORS: Imprinter Configuration Change "printer-state-reasons.imprinter-configuration-change" = "Imprinter Configuration Change"; // TRANSLATORS: Imprinter Cover Closed "printer-state-reasons.imprinter-cover-closed" = "Imprinter Cover Closed"; // TRANSLATORS: Imprinter Cover Open "printer-state-reasons.imprinter-cover-open" = "Imprinter Cover Open"; // TRANSLATORS: Imprinter Empty "printer-state-reasons.imprinter-empty" = "Imprinter Empty"; // TRANSLATORS: Imprinter Full "printer-state-reasons.imprinter-full" = "Imprinter Full"; // TRANSLATORS: Imprinter Interlock Closed "printer-state-reasons.imprinter-interlock-closed" = "Imprinter Interlock Closed"; // TRANSLATORS: Imprinter Interlock Open "printer-state-reasons.imprinter-interlock-open" = "Imprinter Interlock Open"; // TRANSLATORS: Imprinter Jam "printer-state-reasons.imprinter-jam" = "Imprinter Jam"; // TRANSLATORS: Imprinter Life Almost Over "printer-state-reasons.imprinter-life-almost-over" = "Imprinter Life Almost Over"; // TRANSLATORS: Imprinter Life Over "printer-state-reasons.imprinter-life-over" = "Imprinter Life Over"; // TRANSLATORS: Imprinter Memory Exhausted "printer-state-reasons.imprinter-memory-exhausted" = "Imprinter Memory Exhausted"; // TRANSLATORS: Imprinter Missing "printer-state-reasons.imprinter-missing" = "Imprinter Missing"; // TRANSLATORS: Imprinter Motor Failure "printer-state-reasons.imprinter-motor-failure" = "Imprinter Motor Failure"; // TRANSLATORS: Imprinter Near Limit "printer-state-reasons.imprinter-near-limit" = "Imprinter Near Limit"; // TRANSLATORS: Imprinter Offline "printer-state-reasons.imprinter-offline" = "Imprinter Offline"; // TRANSLATORS: Imprinter Opened "printer-state-reasons.imprinter-opened" = "Imprinter Opened"; // TRANSLATORS: Imprinter Over Temperature "printer-state-reasons.imprinter-over-temperature" = "Imprinter Over Temperature"; // TRANSLATORS: Imprinter Power Saver "printer-state-reasons.imprinter-power-saver" = "Imprinter Power Saver"; // TRANSLATORS: Imprinter Recoverable Failure "printer-state-reasons.imprinter-recoverable-failure" = "Imprinter Recoverable Failure"; // TRANSLATORS: Imprinter Recoverable Storage "printer-state-reasons.imprinter-recoverable-storage" = "Imprinter Recoverable Storage"; // TRANSLATORS: Imprinter Removed "printer-state-reasons.imprinter-removed" = "Imprinter Removed"; // TRANSLATORS: Imprinter Resource Added "printer-state-reasons.imprinter-resource-added" = "Imprinter Resource Added"; // TRANSLATORS: Imprinter Resource Removed "printer-state-reasons.imprinter-resource-removed" = "Imprinter Resource Removed"; // TRANSLATORS: Imprinter Thermistor Failure "printer-state-reasons.imprinter-thermistor-failure" = "Imprinter Thermistor Failure"; // TRANSLATORS: Imprinter Timing Failure "printer-state-reasons.imprinter-timing-failure" = "Imprinter Timing Failure"; // TRANSLATORS: Imprinter Turned Off "printer-state-reasons.imprinter-turned-off" = "Imprinter Turned Off"; // TRANSLATORS: Imprinter Turned On "printer-state-reasons.imprinter-turned-on" = "Imprinter Turned On"; // TRANSLATORS: Imprinter Under Temperature "printer-state-reasons.imprinter-under-temperature" = "Imprinter Under Temperature"; // TRANSLATORS: Imprinter Unrecoverable Failure "printer-state-reasons.imprinter-unrecoverable-failure" = "Imprinter Unrecoverable Failure"; // TRANSLATORS: Imprinter Unrecoverable Storage Error "printer-state-reasons.imprinter-unrecoverable-storage-error" = "Imprinter Unrecoverable Storage Error"; // TRANSLATORS: Imprinter Warming Up "printer-state-reasons.imprinter-warming-up" = "Imprinter Warming Up"; // TRANSLATORS: Input Cannot Feed Size Selected "printer-state-reasons.input-cannot-feed-size-selected" = "Input Cannot Feed Size Selected"; // TRANSLATORS: Input Manual Input Request "printer-state-reasons.input-manual-input-request" = "Input Manual Input Request"; // TRANSLATORS: Input Media Color Change "printer-state-reasons.input-media-color-change" = "Input Media Color Change"; // TRANSLATORS: Input Media Form Parts Change "printer-state-reasons.input-media-form-parts-change" = "Input Media Form Parts Change"; // TRANSLATORS: Input Media Size Change "printer-state-reasons.input-media-size-change" = "Input Media Size Change"; // TRANSLATORS: Input Media Tray Failure "printer-state-reasons.input-media-tray-failure" = "Input Media Tray Failure"; // TRANSLATORS: Input Media Tray Feed Error "printer-state-reasons.input-media-tray-feed-error" = "Input Media Tray Feed Error"; // TRANSLATORS: Input Media Tray Jam "printer-state-reasons.input-media-tray-jam" = "Input Media Tray Jam"; // TRANSLATORS: Input Media Type Change "printer-state-reasons.input-media-type-change" = "Input Media Type Change"; // TRANSLATORS: Input Media Weight Change "printer-state-reasons.input-media-weight-change" = "Input Media Weight Change"; // TRANSLATORS: Input Pick Roller Failure "printer-state-reasons.input-pick-roller-failure" = "Input Pick Roller Failure"; // TRANSLATORS: Input Pick Roller Life Over "printer-state-reasons.input-pick-roller-life-over" = "Input Pick Roller Life Over"; // TRANSLATORS: Input Pick Roller Life Warn "printer-state-reasons.input-pick-roller-life-warn" = "Input Pick Roller Life Warn"; // TRANSLATORS: Input Pick Roller Missing "printer-state-reasons.input-pick-roller-missing" = "Input Pick Roller Missing"; // TRANSLATORS: Input Tray Elevation Failure "printer-state-reasons.input-tray-elevation-failure" = "Input Tray Elevation Failure"; // TRANSLATORS: Paper tray is missing "printer-state-reasons.input-tray-missing" = "Input Tray Missing"; // TRANSLATORS: Input Tray Position Failure "printer-state-reasons.input-tray-position-failure" = "Input Tray Position Failure"; // TRANSLATORS: Inserter Added "printer-state-reasons.inserter-added" = "Inserter Added"; // TRANSLATORS: Inserter Almost Empty "printer-state-reasons.inserter-almost-empty" = "Inserter Almost Empty"; // TRANSLATORS: Inserter Almost Full "printer-state-reasons.inserter-almost-full" = "Inserter Almost Full"; // TRANSLATORS: Inserter At Limit "printer-state-reasons.inserter-at-limit" = "Inserter At Limit"; // TRANSLATORS: Inserter Closed "printer-state-reasons.inserter-closed" = "Inserter Closed"; // TRANSLATORS: Inserter Configuration Change "printer-state-reasons.inserter-configuration-change" = "Inserter Configuration Change"; // TRANSLATORS: Inserter Cover Closed "printer-state-reasons.inserter-cover-closed" = "Inserter Cover Closed"; // TRANSLATORS: Inserter Cover Open "printer-state-reasons.inserter-cover-open" = "Inserter Cover Open"; // TRANSLATORS: Inserter Empty "printer-state-reasons.inserter-empty" = "Inserter Empty"; // TRANSLATORS: Inserter Full "printer-state-reasons.inserter-full" = "Inserter Full"; // TRANSLATORS: Inserter Interlock Closed "printer-state-reasons.inserter-interlock-closed" = "Inserter Interlock Closed"; // TRANSLATORS: Inserter Interlock Open "printer-state-reasons.inserter-interlock-open" = "Inserter Interlock Open"; // TRANSLATORS: Inserter Jam "printer-state-reasons.inserter-jam" = "Inserter Jam"; // TRANSLATORS: Inserter Life Almost Over "printer-state-reasons.inserter-life-almost-over" = "Inserter Life Almost Over"; // TRANSLATORS: Inserter Life Over "printer-state-reasons.inserter-life-over" = "Inserter Life Over"; // TRANSLATORS: Inserter Memory Exhausted "printer-state-reasons.inserter-memory-exhausted" = "Inserter Memory Exhausted"; // TRANSLATORS: Inserter Missing "printer-state-reasons.inserter-missing" = "Inserter Missing"; // TRANSLATORS: Inserter Motor Failure "printer-state-reasons.inserter-motor-failure" = "Inserter Motor Failure"; // TRANSLATORS: Inserter Near Limit "printer-state-reasons.inserter-near-limit" = "Inserter Near Limit"; // TRANSLATORS: Inserter Offline "printer-state-reasons.inserter-offline" = "Inserter Offline"; // TRANSLATORS: Inserter Opened "printer-state-reasons.inserter-opened" = "Inserter Opened"; // TRANSLATORS: Inserter Over Temperature "printer-state-reasons.inserter-over-temperature" = "Inserter Over Temperature"; // TRANSLATORS: Inserter Power Saver "printer-state-reasons.inserter-power-saver" = "Inserter Power Saver"; // TRANSLATORS: Inserter Recoverable Failure "printer-state-reasons.inserter-recoverable-failure" = "Inserter Recoverable Failure"; // TRANSLATORS: Inserter Recoverable Storage "printer-state-reasons.inserter-recoverable-storage" = "Inserter Recoverable Storage"; // TRANSLATORS: Inserter Removed "printer-state-reasons.inserter-removed" = "Inserter Removed"; // TRANSLATORS: Inserter Resource Added "printer-state-reasons.inserter-resource-added" = "Inserter Resource Added"; // TRANSLATORS: Inserter Resource Removed "printer-state-reasons.inserter-resource-removed" = "Inserter Resource Removed"; // TRANSLATORS: Inserter Thermistor Failure "printer-state-reasons.inserter-thermistor-failure" = "Inserter Thermistor Failure"; // TRANSLATORS: Inserter Timing Failure "printer-state-reasons.inserter-timing-failure" = "Inserter Timing Failure"; // TRANSLATORS: Inserter Turned Off "printer-state-reasons.inserter-turned-off" = "Inserter Turned Off"; // TRANSLATORS: Inserter Turned On "printer-state-reasons.inserter-turned-on" = "Inserter Turned On"; // TRANSLATORS: Inserter Under Temperature "printer-state-reasons.inserter-under-temperature" = "Inserter Under Temperature"; // TRANSLATORS: Inserter Unrecoverable Failure "printer-state-reasons.inserter-unrecoverable-failure" = "Inserter Unrecoverable Failure"; // TRANSLATORS: Inserter Unrecoverable Storage Error "printer-state-reasons.inserter-unrecoverable-storage-error" = "Inserter Unrecoverable Storage Error"; // TRANSLATORS: Inserter Warming Up "printer-state-reasons.inserter-warming-up" = "Inserter Warming Up"; // TRANSLATORS: Interlock Closed "printer-state-reasons.interlock-closed" = "Interlock Closed"; // TRANSLATORS: Interlock Open "printer-state-reasons.interlock-open" = "Interlock Open"; // TRANSLATORS: Interpreter Cartridge Added "printer-state-reasons.interpreter-cartridge-added" = "Interpreter Cartridge Added"; // TRANSLATORS: Interpreter Cartridge Removed "printer-state-reasons.interpreter-cartridge-deleted" = "Interpreter Cartridge Removed"; // TRANSLATORS: Interpreter Complex Page Encountered "printer-state-reasons.interpreter-complex-page-encountered" = "Interpreter Complex Page Encountered"; // TRANSLATORS: Interpreter Memory Decrease "printer-state-reasons.interpreter-memory-decrease" = "Interpreter Memory Decrease"; // TRANSLATORS: Interpreter Memory Increase "printer-state-reasons.interpreter-memory-increase" = "Interpreter Memory Increase"; // TRANSLATORS: Interpreter Resource Added "printer-state-reasons.interpreter-resource-added" = "Interpreter Resource Added"; // TRANSLATORS: Interpreter Resource Deleted "printer-state-reasons.interpreter-resource-deleted" = "Interpreter Resource Deleted"; // TRANSLATORS: Printer resource unavailable "printer-state-reasons.interpreter-resource-unavailable" = "Interpreter Resource Unavailable"; // TRANSLATORS: Lamp At End of Life "printer-state-reasons.lamp-at-eol" = "Lamp At End of Life"; // TRANSLATORS: Lamp Failure "printer-state-reasons.lamp-failure" = "Lamp Failure"; // TRANSLATORS: Lamp Near End of Life "printer-state-reasons.lamp-near-eol" = "Lamp Near End of Life"; // TRANSLATORS: Laser At End of Life "printer-state-reasons.laser-at-eol" = "Laser At End of Life"; // TRANSLATORS: Laser Failure "printer-state-reasons.laser-failure" = "Laser Failure"; // TRANSLATORS: Laser Near End of Life "printer-state-reasons.laser-near-eol" = "Laser Near End of Life"; // TRANSLATORS: Envelope Maker Added "printer-state-reasons.make-envelope-added" = "Envelope Maker Added"; // TRANSLATORS: Envelope Maker Almost Empty "printer-state-reasons.make-envelope-almost-empty" = "Envelope Maker Almost Empty"; // TRANSLATORS: Envelope Maker Almost Full "printer-state-reasons.make-envelope-almost-full" = "Envelope Maker Almost Full"; // TRANSLATORS: Envelope Maker At Limit "printer-state-reasons.make-envelope-at-limit" = "Envelope Maker At Limit"; // TRANSLATORS: Envelope Maker Closed "printer-state-reasons.make-envelope-closed" = "Envelope Maker Closed"; // TRANSLATORS: Envelope Maker Configuration Change "printer-state-reasons.make-envelope-configuration-change" = "Envelope Maker Configuration Change"; // TRANSLATORS: Envelope Maker Cover Closed "printer-state-reasons.make-envelope-cover-closed" = "Envelope Maker Cover Closed"; // TRANSLATORS: Envelope Maker Cover Open "printer-state-reasons.make-envelope-cover-open" = "Envelope Maker Cover Open"; // TRANSLATORS: Envelope Maker Empty "printer-state-reasons.make-envelope-empty" = "Envelope Maker Empty"; // TRANSLATORS: Envelope Maker Full "printer-state-reasons.make-envelope-full" = "Envelope Maker Full"; // TRANSLATORS: Envelope Maker Interlock Closed "printer-state-reasons.make-envelope-interlock-closed" = "Envelope Maker Interlock Closed"; // TRANSLATORS: Envelope Maker Interlock Open "printer-state-reasons.make-envelope-interlock-open" = "Envelope Maker Interlock Open"; // TRANSLATORS: Envelope Maker Jam "printer-state-reasons.make-envelope-jam" = "Envelope Maker Jam"; // TRANSLATORS: Envelope Maker Life Almost Over "printer-state-reasons.make-envelope-life-almost-over" = "Envelope Maker Life Almost Over"; // TRANSLATORS: Envelope Maker Life Over "printer-state-reasons.make-envelope-life-over" = "Envelope Maker Life Over"; // TRANSLATORS: Envelope Maker Memory Exhausted "printer-state-reasons.make-envelope-memory-exhausted" = "Envelope Maker Memory Exhausted"; // TRANSLATORS: Envelope Maker Missing "printer-state-reasons.make-envelope-missing" = "Envelope Maker Missing"; // TRANSLATORS: Envelope Maker Motor Failure "printer-state-reasons.make-envelope-motor-failure" = "Envelope Maker Motor Failure"; // TRANSLATORS: Envelope Maker Near Limit "printer-state-reasons.make-envelope-near-limit" = "Envelope Maker Near Limit"; // TRANSLATORS: Envelope Maker Offline "printer-state-reasons.make-envelope-offline" = "Envelope Maker Offline"; // TRANSLATORS: Envelope Maker Opened "printer-state-reasons.make-envelope-opened" = "Envelope Maker Opened"; // TRANSLATORS: Envelope Maker Over Temperature "printer-state-reasons.make-envelope-over-temperature" = "Envelope Maker Over Temperature"; // TRANSLATORS: Envelope Maker Power Saver "printer-state-reasons.make-envelope-power-saver" = "Envelope Maker Power Saver"; // TRANSLATORS: Envelope Maker Recoverable Failure "printer-state-reasons.make-envelope-recoverable-failure" = "Envelope Maker Recoverable Failure"; // TRANSLATORS: Envelope Maker Recoverable Storage "printer-state-reasons.make-envelope-recoverable-storage" = "Envelope Maker Recoverable Storage"; // TRANSLATORS: Envelope Maker Removed "printer-state-reasons.make-envelope-removed" = "Envelope Maker Removed"; // TRANSLATORS: Envelope Maker Resource Added "printer-state-reasons.make-envelope-resource-added" = "Envelope Maker Resource Added"; // TRANSLATORS: Envelope Maker Resource Removed "printer-state-reasons.make-envelope-resource-removed" = "Envelope Maker Resource Removed"; // TRANSLATORS: Envelope Maker Thermistor Failure "printer-state-reasons.make-envelope-thermistor-failure" = "Envelope Maker Thermistor Failure"; // TRANSLATORS: Envelope Maker Timing Failure "printer-state-reasons.make-envelope-timing-failure" = "Envelope Maker Timing Failure"; // TRANSLATORS: Envelope Maker Turned Off "printer-state-reasons.make-envelope-turned-off" = "Envelope Maker Turned Off"; // TRANSLATORS: Envelope Maker Turned On "printer-state-reasons.make-envelope-turned-on" = "Envelope Maker Turned On"; // TRANSLATORS: Envelope Maker Under Temperature "printer-state-reasons.make-envelope-under-temperature" = "Envelope Maker Under Temperature"; // TRANSLATORS: Envelope Maker Unrecoverable Failure "printer-state-reasons.make-envelope-unrecoverable-failure" = "Envelope Maker Unrecoverable Failure"; // TRANSLATORS: Envelope Maker Unrecoverable Storage Error "printer-state-reasons.make-envelope-unrecoverable-storage-error" = "Envelope Maker Unrecoverable Storage Error"; // TRANSLATORS: Envelope Maker Warming Up "printer-state-reasons.make-envelope-warming-up" = "Envelope Maker Warming Up"; // TRANSLATORS: Marker Adjusting Print Quality "printer-state-reasons.marker-adjusting-print-quality" = "Marker Adjusting Print Quality"; // TRANSLATORS: Marker Cleaner Missing "printer-state-reasons.marker-cleaner-missing" = "Marker Cleaner Missing"; // TRANSLATORS: Marker Developer Almost Empty "printer-state-reasons.marker-developer-almost-empty" = "Marker Developer Almost Empty"; // TRANSLATORS: Marker Developer Empty "printer-state-reasons.marker-developer-empty" = "Marker Developer Empty"; // TRANSLATORS: Marker Developer Missing "printer-state-reasons.marker-developer-missing" = "Marker Developer Missing"; // TRANSLATORS: Marker Fuser Missing "printer-state-reasons.marker-fuser-missing" = "Marker Fuser Missing"; // TRANSLATORS: Marker Fuser Thermistor Failure "printer-state-reasons.marker-fuser-thermistor-failure" = "Marker Fuser Thermistor Failure"; // TRANSLATORS: Marker Fuser Timing Failure "printer-state-reasons.marker-fuser-timing-failure" = "Marker Fuser Timing Failure"; // TRANSLATORS: Marker Ink Almost Empty "printer-state-reasons.marker-ink-almost-empty" = "Low ink"; // TRANSLATORS: Marker Ink Empty "printer-state-reasons.marker-ink-empty" = "Ink empty"; // TRANSLATORS: Marker Ink Missing "printer-state-reasons.marker-ink-missing" = "Ink missing"; // TRANSLATORS: Marker Opc Missing "printer-state-reasons.marker-opc-missing" = "OPC missing"; // TRANSLATORS: Marker Print Ribbon Almost Empty "printer-state-reasons.marker-print-ribbon-almost-empty" = "Print ribbon Almost Empty"; // TRANSLATORS: Marker Print Ribbon Empty "printer-state-reasons.marker-print-ribbon-empty" = "Print ribbon Empty"; // TRANSLATORS: Marker Print Ribbon Missing "printer-state-reasons.marker-print-ribbon-missing" = "Print ribbon missing"; // TRANSLATORS: Marker Supply Almost Empty "printer-state-reasons.marker-supply-almost-empty" = "Ink/toner almost empty"; // TRANSLATORS: Ink/toner empty "printer-state-reasons.marker-supply-empty" = "Ink/toner empty"; // TRANSLATORS: Ink/toner low "printer-state-reasons.marker-supply-low" = "Ink/toner low"; // TRANSLATORS: Marker Supply Missing "printer-state-reasons.marker-supply-missing" = "Ink/toner missing"; // TRANSLATORS: Marker Toner Cartridge Missing "printer-state-reasons.marker-toner-cartridge-missing" = "Toner cartridge missing"; // TRANSLATORS: Marker Toner Missing "printer-state-reasons.marker-toner-missing" = "Toner missing"; // TRANSLATORS: Ink/toner waste bin almost full "printer-state-reasons.marker-waste-almost-full" = "Ink/toner waste bin almost full"; // TRANSLATORS: Ink/toner waste bin full "printer-state-reasons.marker-waste-full" = "Ink/toner waste bin full"; // TRANSLATORS: Marker Waste Ink Receptacle Almost Full "printer-state-reasons.marker-waste-ink-receptacle-almost-full" = "Marker Waste Ink Receptacle Almost Full"; // TRANSLATORS: Marker Waste Ink Receptacle Full "printer-state-reasons.marker-waste-ink-receptacle-full" = "Marker Waste Ink Receptacle Full"; // TRANSLATORS: Marker Waste Ink Receptacle Missing "printer-state-reasons.marker-waste-ink-receptacle-missing" = "Marker Waste Ink Receptacle Missing"; // TRANSLATORS: Marker Waste Missing "printer-state-reasons.marker-waste-missing" = "Ink/toner waste bin missing"; // TRANSLATORS: Marker Waste Toner Receptacle Almost Full "printer-state-reasons.marker-waste-toner-receptacle-almost-full" = "Marker Waste Toner Receptacle Almost Full"; // TRANSLATORS: Marker Waste Toner Receptacle Full "printer-state-reasons.marker-waste-toner-receptacle-full" = "Marker Waste Toner Receptacle Full"; // TRANSLATORS: Marker Waste Toner Receptacle Missing "printer-state-reasons.marker-waste-toner-receptacle-missing" = "Marker Waste Toner Receptacle Missing"; // TRANSLATORS: Material Empty "printer-state-reasons.material-empty" = "Material Empty"; // TRANSLATORS: Material Low "printer-state-reasons.material-low" = "Material Low"; // TRANSLATORS: Material Needed "printer-state-reasons.material-needed" = "Material Needed"; // TRANSLATORS: Media Drying "printer-state-reasons.media-drying" = "Media Drying"; // TRANSLATORS: Paper tray is empty "printer-state-reasons.media-empty" = "Media Empty"; // TRANSLATORS: Paper jam "printer-state-reasons.media-jam" = "Media Jam"; // TRANSLATORS: Paper tray is almost empty "printer-state-reasons.media-low" = "Paper tray is almost empty"; // TRANSLATORS: Load paper "printer-state-reasons.media-needed" = "Load paper"; // TRANSLATORS: Media Path Cannot Do 2-Sided Printing "printer-state-reasons.media-path-cannot-duplex-media-selected" = "Media Path Cannot Do 2-Sided Printing"; // TRANSLATORS: Media Path Failure "printer-state-reasons.media-path-failure" = "Media Path Failure"; // TRANSLATORS: Media Path Input Empty "printer-state-reasons.media-path-input-empty" = "Media Path Input Empty"; // TRANSLATORS: Media Path Input Feed Error "printer-state-reasons.media-path-input-feed-error" = "Media Path Input Feed Error"; // TRANSLATORS: Media Path Input Jam "printer-state-reasons.media-path-input-jam" = "Media Path Input Jam"; // TRANSLATORS: Media Path Input Request "printer-state-reasons.media-path-input-request" = "Media Path Input Request"; // TRANSLATORS: Media Path Jam "printer-state-reasons.media-path-jam" = "Media Path Jam"; // TRANSLATORS: Media Path Media Tray Almost Full "printer-state-reasons.media-path-media-tray-almost-full" = "Media Path Media Tray Almost Full"; // TRANSLATORS: Media Path Media Tray Full "printer-state-reasons.media-path-media-tray-full" = "Media Path Media Tray Full"; // TRANSLATORS: Media Path Media Tray Missing "printer-state-reasons.media-path-media-tray-missing" = "Media Path Media Tray Missing"; // TRANSLATORS: Media Path Output Feed Error "printer-state-reasons.media-path-output-feed-error" = "Media Path Output Feed Error"; // TRANSLATORS: Media Path Output Full "printer-state-reasons.media-path-output-full" = "Media Path Output Full"; // TRANSLATORS: Media Path Output Jam "printer-state-reasons.media-path-output-jam" = "Media Path Output Jam"; // TRANSLATORS: Media Path Pick Roller Failure "printer-state-reasons.media-path-pick-roller-failure" = "Media Path Pick Roller Failure"; // TRANSLATORS: Media Path Pick Roller Life Over "printer-state-reasons.media-path-pick-roller-life-over" = "Media Path Pick Roller Life Over"; // TRANSLATORS: Media Path Pick Roller Life Warn "printer-state-reasons.media-path-pick-roller-life-warn" = "Media Path Pick Roller Life Warn"; // TRANSLATORS: Media Path Pick Roller Missing "printer-state-reasons.media-path-pick-roller-missing" = "Media Path Pick Roller Missing"; // TRANSLATORS: Motor Failure "printer-state-reasons.motor-failure" = "Motor Failure"; // TRANSLATORS: Printer going offline "printer-state-reasons.moving-to-paused" = "Moving To Paused"; // TRANSLATORS: None "printer-state-reasons.none" = "None"; // TRANSLATORS: Optical Photoconductor Life Over "printer-state-reasons.opc-life-over" = "Optical Photoconductor Life Over"; // TRANSLATORS: OPC almost at end-of-life "printer-state-reasons.opc-near-eol" = "Optical Photoconductor Near End-of-life"; // TRANSLATORS: Check the printer for errors "printer-state-reasons.other" = "Other"; // TRANSLATORS: Output bin is almost full "printer-state-reasons.output-area-almost-full" = "Output Area Almost Full"; // TRANSLATORS: Output bin is full "printer-state-reasons.output-area-full" = "Output Area Full"; // TRANSLATORS: Output Mailbox Select Failure "printer-state-reasons.output-mailbox-select-failure" = "Output Mailbox Select Failure"; // TRANSLATORS: Output Media Tray Failure "printer-state-reasons.output-media-tray-failure" = "Output Media Tray Failure"; // TRANSLATORS: Output Media Tray Feed Error "printer-state-reasons.output-media-tray-feed-error" = "Output Media Tray Feed Error"; // TRANSLATORS: Output Media Tray Jam "printer-state-reasons.output-media-tray-jam" = "Output Media Tray Jam"; // TRANSLATORS: Output tray is missing "printer-state-reasons.output-tray-missing" = "Output Tray Missing"; // TRANSLATORS: Paused "printer-state-reasons.paused" = "Paused"; // TRANSLATORS: Perforater Added "printer-state-reasons.perforater-added" = "Perforater Added"; // TRANSLATORS: Perforater Almost Empty "printer-state-reasons.perforater-almost-empty" = "Perforater Almost Empty"; // TRANSLATORS: Perforater Almost Full "printer-state-reasons.perforater-almost-full" = "Perforater Almost Full"; // TRANSLATORS: Perforater At Limit "printer-state-reasons.perforater-at-limit" = "Perforater At Limit"; // TRANSLATORS: Perforater Closed "printer-state-reasons.perforater-closed" = "Perforater Closed"; // TRANSLATORS: Perforater Configuration Change "printer-state-reasons.perforater-configuration-change" = "Perforater Configuration Change"; // TRANSLATORS: Perforater Cover Closed "printer-state-reasons.perforater-cover-closed" = "Perforater Cover Closed"; // TRANSLATORS: Perforater Cover Open "printer-state-reasons.perforater-cover-open" = "Perforater Cover Open"; // TRANSLATORS: Perforater Empty "printer-state-reasons.perforater-empty" = "Perforater Empty"; // TRANSLATORS: Perforater Full "printer-state-reasons.perforater-full" = "Perforater Full"; // TRANSLATORS: Perforater Interlock Closed "printer-state-reasons.perforater-interlock-closed" = "Perforater Interlock Closed"; // TRANSLATORS: Perforater Interlock Open "printer-state-reasons.perforater-interlock-open" = "Perforater Interlock Open"; // TRANSLATORS: Perforater Jam "printer-state-reasons.perforater-jam" = "Perforater Jam"; // TRANSLATORS: Perforater Life Almost Over "printer-state-reasons.perforater-life-almost-over" = "Perforater Life Almost Over"; // TRANSLATORS: Perforater Life Over "printer-state-reasons.perforater-life-over" = "Perforater Life Over"; // TRANSLATORS: Perforater Memory Exhausted "printer-state-reasons.perforater-memory-exhausted" = "Perforater Memory Exhausted"; // TRANSLATORS: Perforater Missing "printer-state-reasons.perforater-missing" = "Perforater Missing"; // TRANSLATORS: Perforater Motor Failure "printer-state-reasons.perforater-motor-failure" = "Perforater Motor Failure"; // TRANSLATORS: Perforater Near Limit "printer-state-reasons.perforater-near-limit" = "Perforater Near Limit"; // TRANSLATORS: Perforater Offline "printer-state-reasons.perforater-offline" = "Perforater Offline"; // TRANSLATORS: Perforater Opened "printer-state-reasons.perforater-opened" = "Perforater Opened"; // TRANSLATORS: Perforater Over Temperature "printer-state-reasons.perforater-over-temperature" = "Perforater Over Temperature"; // TRANSLATORS: Perforater Power Saver "printer-state-reasons.perforater-power-saver" = "Perforater Power Saver"; // TRANSLATORS: Perforater Recoverable Failure "printer-state-reasons.perforater-recoverable-failure" = "Perforater Recoverable Failure"; // TRANSLATORS: Perforater Recoverable Storage "printer-state-reasons.perforater-recoverable-storage" = "Perforater Recoverable Storage"; // TRANSLATORS: Perforater Removed "printer-state-reasons.perforater-removed" = "Perforater Removed"; // TRANSLATORS: Perforater Resource Added "printer-state-reasons.perforater-resource-added" = "Perforater Resource Added"; // TRANSLATORS: Perforater Resource Removed "printer-state-reasons.perforater-resource-removed" = "Perforater Resource Removed"; // TRANSLATORS: Perforater Thermistor Failure "printer-state-reasons.perforater-thermistor-failure" = "Perforater Thermistor Failure"; // TRANSLATORS: Perforater Timing Failure "printer-state-reasons.perforater-timing-failure" = "Perforater Timing Failure"; // TRANSLATORS: Perforater Turned Off "printer-state-reasons.perforater-turned-off" = "Perforater Turned Off"; // TRANSLATORS: Perforater Turned On "printer-state-reasons.perforater-turned-on" = "Perforater Turned On"; // TRANSLATORS: Perforater Under Temperature "printer-state-reasons.perforater-under-temperature" = "Perforater Under Temperature"; // TRANSLATORS: Perforater Unrecoverable Failure "printer-state-reasons.perforater-unrecoverable-failure" = "Perforater Unrecoverable Failure"; // TRANSLATORS: Perforater Unrecoverable Storage Error "printer-state-reasons.perforater-unrecoverable-storage-error" = "Perforater Unrecoverable Storage Error"; // TRANSLATORS: Perforater Warming Up "printer-state-reasons.perforater-warming-up" = "Perforater Warming Up"; // TRANSLATORS: Platform Cooling "printer-state-reasons.platform-cooling" = "Platform Cooling"; // TRANSLATORS: Platform Failure "printer-state-reasons.platform-failure" = "Platform Failure"; // TRANSLATORS: Platform Heating "printer-state-reasons.platform-heating" = "Platform Heating"; // TRANSLATORS: Platform Temperature High "printer-state-reasons.platform-temperature-high" = "Platform Temperature High"; // TRANSLATORS: Platform Temperature Low "printer-state-reasons.platform-temperature-low" = "Platform Temperature Low"; // TRANSLATORS: Power Down "printer-state-reasons.power-down" = "Power Down"; // TRANSLATORS: Power Up "printer-state-reasons.power-up" = "Power Up"; // TRANSLATORS: Printer Reset Manually "printer-state-reasons.printer-manual-reset" = "Printer Reset Manually"; // TRANSLATORS: Printer Reset Remotely "printer-state-reasons.printer-nms-reset" = "Printer Reset Remotely"; // TRANSLATORS: Printer Ready To Print "printer-state-reasons.printer-ready-to-print" = "Printer Ready To Print"; // TRANSLATORS: Puncher Added "printer-state-reasons.puncher-added" = "Puncher Added"; // TRANSLATORS: Puncher Almost Empty "printer-state-reasons.puncher-almost-empty" = "Puncher Almost Empty"; // TRANSLATORS: Puncher Almost Full "printer-state-reasons.puncher-almost-full" = "Puncher Almost Full"; // TRANSLATORS: Puncher At Limit "printer-state-reasons.puncher-at-limit" = "Puncher At Limit"; // TRANSLATORS: Puncher Closed "printer-state-reasons.puncher-closed" = "Puncher Closed"; // TRANSLATORS: Puncher Configuration Change "printer-state-reasons.puncher-configuration-change" = "Puncher Configuration Change"; // TRANSLATORS: Puncher Cover Closed "printer-state-reasons.puncher-cover-closed" = "Puncher Cover Closed"; // TRANSLATORS: Puncher Cover Open "printer-state-reasons.puncher-cover-open" = "Puncher Cover Open"; // TRANSLATORS: Puncher Empty "printer-state-reasons.puncher-empty" = "Puncher Empty"; // TRANSLATORS: Puncher Full "printer-state-reasons.puncher-full" = "Puncher Full"; // TRANSLATORS: Puncher Interlock Closed "printer-state-reasons.puncher-interlock-closed" = "Puncher Interlock Closed"; // TRANSLATORS: Puncher Interlock Open "printer-state-reasons.puncher-interlock-open" = "Puncher Interlock Open"; // TRANSLATORS: Puncher Jam "printer-state-reasons.puncher-jam" = "Puncher Jam"; // TRANSLATORS: Puncher Life Almost Over "printer-state-reasons.puncher-life-almost-over" = "Puncher Life Almost Over"; // TRANSLATORS: Puncher Life Over "printer-state-reasons.puncher-life-over" = "Puncher Life Over"; // TRANSLATORS: Puncher Memory Exhausted "printer-state-reasons.puncher-memory-exhausted" = "Puncher Memory Exhausted"; // TRANSLATORS: Puncher Missing "printer-state-reasons.puncher-missing" = "Puncher Missing"; // TRANSLATORS: Puncher Motor Failure "printer-state-reasons.puncher-motor-failure" = "Puncher Motor Failure"; // TRANSLATORS: Puncher Near Limit "printer-state-reasons.puncher-near-limit" = "Puncher Near Limit"; // TRANSLATORS: Puncher Offline "printer-state-reasons.puncher-offline" = "Puncher Offline"; // TRANSLATORS: Puncher Opened "printer-state-reasons.puncher-opened" = "Puncher Opened"; // TRANSLATORS: Puncher Over Temperature "printer-state-reasons.puncher-over-temperature" = "Puncher Over Temperature"; // TRANSLATORS: Puncher Power Saver "printer-state-reasons.puncher-power-saver" = "Puncher Power Saver"; // TRANSLATORS: Puncher Recoverable Failure "printer-state-reasons.puncher-recoverable-failure" = "Puncher Recoverable Failure"; // TRANSLATORS: Puncher Recoverable Storage "printer-state-reasons.puncher-recoverable-storage" = "Puncher Recoverable Storage"; // TRANSLATORS: Puncher Removed "printer-state-reasons.puncher-removed" = "Puncher Removed"; // TRANSLATORS: Puncher Resource Added "printer-state-reasons.puncher-resource-added" = "Puncher Resource Added"; // TRANSLATORS: Puncher Resource Removed "printer-state-reasons.puncher-resource-removed" = "Puncher Resource Removed"; // TRANSLATORS: Puncher Thermistor Failure "printer-state-reasons.puncher-thermistor-failure" = "Puncher Thermistor Failure"; // TRANSLATORS: Puncher Timing Failure "printer-state-reasons.puncher-timing-failure" = "Puncher Timing Failure"; // TRANSLATORS: Puncher Turned Off "printer-state-reasons.puncher-turned-off" = "Puncher Turned Off"; // TRANSLATORS: Puncher Turned On "printer-state-reasons.puncher-turned-on" = "Puncher Turned On"; // TRANSLATORS: Puncher Under Temperature "printer-state-reasons.puncher-under-temperature" = "Puncher Under Temperature"; // TRANSLATORS: Puncher Unrecoverable Failure "printer-state-reasons.puncher-unrecoverable-failure" = "Puncher Unrecoverable Failure"; // TRANSLATORS: Puncher Unrecoverable Storage Error "printer-state-reasons.puncher-unrecoverable-storage-error" = "Puncher Unrecoverable Storage Error"; // TRANSLATORS: Puncher Warming Up "printer-state-reasons.puncher-warming-up" = "Puncher Warming Up"; // TRANSLATORS: Separation Cutter Added "printer-state-reasons.separation-cutter-added" = "Separation Cutter Added"; // TRANSLATORS: Separation Cutter Almost Empty "printer-state-reasons.separation-cutter-almost-empty" = "Separation Cutter Almost Empty"; // TRANSLATORS: Separation Cutter Almost Full "printer-state-reasons.separation-cutter-almost-full" = "Separation Cutter Almost Full"; // TRANSLATORS: Separation Cutter At Limit "printer-state-reasons.separation-cutter-at-limit" = "Separation Cutter At Limit"; // TRANSLATORS: Separation Cutter Closed "printer-state-reasons.separation-cutter-closed" = "Separation Cutter Closed"; // TRANSLATORS: Separation Cutter Configuration Change "printer-state-reasons.separation-cutter-configuration-change" = "Separation Cutter Configuration Change"; // TRANSLATORS: Separation Cutter Cover Closed "printer-state-reasons.separation-cutter-cover-closed" = "Separation Cutter Cover Closed"; // TRANSLATORS: Separation Cutter Cover Open "printer-state-reasons.separation-cutter-cover-open" = "Separation Cutter Cover Open"; // TRANSLATORS: Separation Cutter Empty "printer-state-reasons.separation-cutter-empty" = "Separation Cutter Empty"; // TRANSLATORS: Separation Cutter Full "printer-state-reasons.separation-cutter-full" = "Separation Cutter Full"; // TRANSLATORS: Separation Cutter Interlock Closed "printer-state-reasons.separation-cutter-interlock-closed" = "Separation Cutter Interlock Closed"; // TRANSLATORS: Separation Cutter Interlock Open "printer-state-reasons.separation-cutter-interlock-open" = "Separation Cutter Interlock Open"; // TRANSLATORS: Separation Cutter Jam "printer-state-reasons.separation-cutter-jam" = "Separation Cutter Jam"; // TRANSLATORS: Separation Cutter Life Almost Over "printer-state-reasons.separation-cutter-life-almost-over" = "Separation Cutter Life Almost Over"; // TRANSLATORS: Separation Cutter Life Over "printer-state-reasons.separation-cutter-life-over" = "Separation Cutter Life Over"; // TRANSLATORS: Separation Cutter Memory Exhausted "printer-state-reasons.separation-cutter-memory-exhausted" = "Separation Cutter Memory Exhausted"; // TRANSLATORS: Separation Cutter Missing "printer-state-reasons.separation-cutter-missing" = "Separation Cutter Missing"; // TRANSLATORS: Separation Cutter Motor Failure "printer-state-reasons.separation-cutter-motor-failure" = "Separation Cutter Motor Failure"; // TRANSLATORS: Separation Cutter Near Limit "printer-state-reasons.separation-cutter-near-limit" = "Separation Cutter Near Limit"; // TRANSLATORS: Separation Cutter Offline "printer-state-reasons.separation-cutter-offline" = "Separation Cutter Offline"; // TRANSLATORS: Separation Cutter Opened "printer-state-reasons.separation-cutter-opened" = "Separation Cutter Opened"; // TRANSLATORS: Separation Cutter Over Temperature "printer-state-reasons.separation-cutter-over-temperature" = "Separation Cutter Over Temperature"; // TRANSLATORS: Separation Cutter Power Saver "printer-state-reasons.separation-cutter-power-saver" = "Separation Cutter Power Saver"; // TRANSLATORS: Separation Cutter Recoverable Failure "printer-state-reasons.separation-cutter-recoverable-failure" = "Separation Cutter Recoverable Failure"; // TRANSLATORS: Separation Cutter Recoverable Storage "printer-state-reasons.separation-cutter-recoverable-storage" = "Separation Cutter Recoverable Storage"; // TRANSLATORS: Separation Cutter Removed "printer-state-reasons.separation-cutter-removed" = "Separation Cutter Removed"; // TRANSLATORS: Separation Cutter Resource Added "printer-state-reasons.separation-cutter-resource-added" = "Separation Cutter Resource Added"; // TRANSLATORS: Separation Cutter Resource Removed "printer-state-reasons.separation-cutter-resource-removed" = "Separation Cutter Resource Removed"; // TRANSLATORS: Separation Cutter Thermistor Failure "printer-state-reasons.separation-cutter-thermistor-failure" = "Separation Cutter Thermistor Failure"; // TRANSLATORS: Separation Cutter Timing Failure "printer-state-reasons.separation-cutter-timing-failure" = "Separation Cutter Timing Failure"; // TRANSLATORS: Separation Cutter Turned Off "printer-state-reasons.separation-cutter-turned-off" = "Separation Cutter Turned Off"; // TRANSLATORS: Separation Cutter Turned On "printer-state-reasons.separation-cutter-turned-on" = "Separation Cutter Turned On"; // TRANSLATORS: Separation Cutter Under Temperature "printer-state-reasons.separation-cutter-under-temperature" = "Separation Cutter Under Temperature"; // TRANSLATORS: Separation Cutter Unrecoverable Failure "printer-state-reasons.separation-cutter-unrecoverable-failure" = "Separation Cutter Unrecoverable Failure"; // TRANSLATORS: Separation Cutter Unrecoverable Storage Error "printer-state-reasons.separation-cutter-unrecoverable-storage-error" = "Separation Cutter Unrecoverable Storage Error"; // TRANSLATORS: Separation Cutter Warming Up "printer-state-reasons.separation-cutter-warming-up" = "Separation Cutter Warming Up"; // TRANSLATORS: Sheet Rotator Added "printer-state-reasons.sheet-rotator-added" = "Sheet Rotator Added"; // TRANSLATORS: Sheet Rotator Almost Empty "printer-state-reasons.sheet-rotator-almost-empty" = "Sheet Rotator Almost Empty"; // TRANSLATORS: Sheet Rotator Almost Full "printer-state-reasons.sheet-rotator-almost-full" = "Sheet Rotator Almost Full"; // TRANSLATORS: Sheet Rotator At Limit "printer-state-reasons.sheet-rotator-at-limit" = "Sheet Rotator At Limit"; // TRANSLATORS: Sheet Rotator Closed "printer-state-reasons.sheet-rotator-closed" = "Sheet Rotator Closed"; // TRANSLATORS: Sheet Rotator Configuration Change "printer-state-reasons.sheet-rotator-configuration-change" = "Sheet Rotator Configuration Change"; // TRANSLATORS: Sheet Rotator Cover Closed "printer-state-reasons.sheet-rotator-cover-closed" = "Sheet Rotator Cover Closed"; // TRANSLATORS: Sheet Rotator Cover Open "printer-state-reasons.sheet-rotator-cover-open" = "Sheet Rotator Cover Open"; // TRANSLATORS: Sheet Rotator Empty "printer-state-reasons.sheet-rotator-empty" = "Sheet Rotator Empty"; // TRANSLATORS: Sheet Rotator Full "printer-state-reasons.sheet-rotator-full" = "Sheet Rotator Full"; // TRANSLATORS: Sheet Rotator Interlock Closed "printer-state-reasons.sheet-rotator-interlock-closed" = "Sheet Rotator Interlock Closed"; // TRANSLATORS: Sheet Rotator Interlock Open "printer-state-reasons.sheet-rotator-interlock-open" = "Sheet Rotator Interlock Open"; // TRANSLATORS: Sheet Rotator Jam "printer-state-reasons.sheet-rotator-jam" = "Sheet Rotator Jam"; // TRANSLATORS: Sheet Rotator Life Almost Over "printer-state-reasons.sheet-rotator-life-almost-over" = "Sheet Rotator Life Almost Over"; // TRANSLATORS: Sheet Rotator Life Over "printer-state-reasons.sheet-rotator-life-over" = "Sheet Rotator Life Over"; // TRANSLATORS: Sheet Rotator Memory Exhausted "printer-state-reasons.sheet-rotator-memory-exhausted" = "Sheet Rotator Memory Exhausted"; // TRANSLATORS: Sheet Rotator Missing "printer-state-reasons.sheet-rotator-missing" = "Sheet Rotator Missing"; // TRANSLATORS: Sheet Rotator Motor Failure "printer-state-reasons.sheet-rotator-motor-failure" = "Sheet Rotator Motor Failure"; // TRANSLATORS: Sheet Rotator Near Limit "printer-state-reasons.sheet-rotator-near-limit" = "Sheet Rotator Near Limit"; // TRANSLATORS: Sheet Rotator Offline "printer-state-reasons.sheet-rotator-offline" = "Sheet Rotator Offline"; // TRANSLATORS: Sheet Rotator Opened "printer-state-reasons.sheet-rotator-opened" = "Sheet Rotator Opened"; // TRANSLATORS: Sheet Rotator Over Temperature "printer-state-reasons.sheet-rotator-over-temperature" = "Sheet Rotator Over Temperature"; // TRANSLATORS: Sheet Rotator Power Saver "printer-state-reasons.sheet-rotator-power-saver" = "Sheet Rotator Power Saver"; // TRANSLATORS: Sheet Rotator Recoverable Failure "printer-state-reasons.sheet-rotator-recoverable-failure" = "Sheet Rotator Recoverable Failure"; // TRANSLATORS: Sheet Rotator Recoverable Storage "printer-state-reasons.sheet-rotator-recoverable-storage" = "Sheet Rotator Recoverable Storage"; // TRANSLATORS: Sheet Rotator Removed "printer-state-reasons.sheet-rotator-removed" = "Sheet Rotator Removed"; // TRANSLATORS: Sheet Rotator Resource Added "printer-state-reasons.sheet-rotator-resource-added" = "Sheet Rotator Resource Added"; // TRANSLATORS: Sheet Rotator Resource Removed "printer-state-reasons.sheet-rotator-resource-removed" = "Sheet Rotator Resource Removed"; // TRANSLATORS: Sheet Rotator Thermistor Failure "printer-state-reasons.sheet-rotator-thermistor-failure" = "Sheet Rotator Thermistor Failure"; // TRANSLATORS: Sheet Rotator Timing Failure "printer-state-reasons.sheet-rotator-timing-failure" = "Sheet Rotator Timing Failure"; // TRANSLATORS: Sheet Rotator Turned Off "printer-state-reasons.sheet-rotator-turned-off" = "Sheet Rotator Turned Off"; // TRANSLATORS: Sheet Rotator Turned On "printer-state-reasons.sheet-rotator-turned-on" = "Sheet Rotator Turned On"; // TRANSLATORS: Sheet Rotator Under Temperature "printer-state-reasons.sheet-rotator-under-temperature" = "Sheet Rotator Under Temperature"; // TRANSLATORS: Sheet Rotator Unrecoverable Failure "printer-state-reasons.sheet-rotator-unrecoverable-failure" = "Sheet Rotator Unrecoverable Failure"; // TRANSLATORS: Sheet Rotator Unrecoverable Storage Error "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" = "Sheet Rotator Unrecoverable Storage Error"; // TRANSLATORS: Sheet Rotator Warming Up "printer-state-reasons.sheet-rotator-warming-up" = "Sheet Rotator Warming Up"; // TRANSLATORS: Printer offline "printer-state-reasons.shutdown" = "Shutdown"; // TRANSLATORS: Slitter Added "printer-state-reasons.slitter-added" = "Slitter Added"; // TRANSLATORS: Slitter Almost Empty "printer-state-reasons.slitter-almost-empty" = "Slitter Almost Empty"; // TRANSLATORS: Slitter Almost Full "printer-state-reasons.slitter-almost-full" = "Slitter Almost Full"; // TRANSLATORS: Slitter At Limit "printer-state-reasons.slitter-at-limit" = "Slitter At Limit"; // TRANSLATORS: Slitter Closed "printer-state-reasons.slitter-closed" = "Slitter Closed"; // TRANSLATORS: Slitter Configuration Change "printer-state-reasons.slitter-configuration-change" = "Slitter Configuration Change"; // TRANSLATORS: Slitter Cover Closed "printer-state-reasons.slitter-cover-closed" = "Slitter Cover Closed"; // TRANSLATORS: Slitter Cover Open "printer-state-reasons.slitter-cover-open" = "Slitter Cover Open"; // TRANSLATORS: Slitter Empty "printer-state-reasons.slitter-empty" = "Slitter Empty"; // TRANSLATORS: Slitter Full "printer-state-reasons.slitter-full" = "Slitter Full"; // TRANSLATORS: Slitter Interlock Closed "printer-state-reasons.slitter-interlock-closed" = "Slitter Interlock Closed"; // TRANSLATORS: Slitter Interlock Open "printer-state-reasons.slitter-interlock-open" = "Slitter Interlock Open"; // TRANSLATORS: Slitter Jam "printer-state-reasons.slitter-jam" = "Slitter Jam"; // TRANSLATORS: Slitter Life Almost Over "printer-state-reasons.slitter-life-almost-over" = "Slitter Life Almost Over"; // TRANSLATORS: Slitter Life Over "printer-state-reasons.slitter-life-over" = "Slitter Life Over"; // TRANSLATORS: Slitter Memory Exhausted "printer-state-reasons.slitter-memory-exhausted" = "Slitter Memory Exhausted"; // TRANSLATORS: Slitter Missing "printer-state-reasons.slitter-missing" = "Slitter Missing"; // TRANSLATORS: Slitter Motor Failure "printer-state-reasons.slitter-motor-failure" = "Slitter Motor Failure"; // TRANSLATORS: Slitter Near Limit "printer-state-reasons.slitter-near-limit" = "Slitter Near Limit"; // TRANSLATORS: Slitter Offline "printer-state-reasons.slitter-offline" = "Slitter Offline"; // TRANSLATORS: Slitter Opened "printer-state-reasons.slitter-opened" = "Slitter Opened"; // TRANSLATORS: Slitter Over Temperature "printer-state-reasons.slitter-over-temperature" = "Slitter Over Temperature"; // TRANSLATORS: Slitter Power Saver "printer-state-reasons.slitter-power-saver" = "Slitter Power Saver"; // TRANSLATORS: Slitter Recoverable Failure "printer-state-reasons.slitter-recoverable-failure" = "Slitter Recoverable Failure"; // TRANSLATORS: Slitter Recoverable Storage "printer-state-reasons.slitter-recoverable-storage" = "Slitter Recoverable Storage"; // TRANSLATORS: Slitter Removed "printer-state-reasons.slitter-removed" = "Slitter Removed"; // TRANSLATORS: Slitter Resource Added "printer-state-reasons.slitter-resource-added" = "Slitter Resource Added"; // TRANSLATORS: Slitter Resource Removed "printer-state-reasons.slitter-resource-removed" = "Slitter Resource Removed"; // TRANSLATORS: Slitter Thermistor Failure "printer-state-reasons.slitter-thermistor-failure" = "Slitter Thermistor Failure"; // TRANSLATORS: Slitter Timing Failure "printer-state-reasons.slitter-timing-failure" = "Slitter Timing Failure"; // TRANSLATORS: Slitter Turned Off "printer-state-reasons.slitter-turned-off" = "Slitter Turned Off"; // TRANSLATORS: Slitter Turned On "printer-state-reasons.slitter-turned-on" = "Slitter Turned On"; // TRANSLATORS: Slitter Under Temperature "printer-state-reasons.slitter-under-temperature" = "Slitter Under Temperature"; // TRANSLATORS: Slitter Unrecoverable Failure "printer-state-reasons.slitter-unrecoverable-failure" = "Slitter Unrecoverable Failure"; // TRANSLATORS: Slitter Unrecoverable Storage Error "printer-state-reasons.slitter-unrecoverable-storage-error" = "Slitter Unrecoverable Storage Error"; // TRANSLATORS: Slitter Warming Up "printer-state-reasons.slitter-warming-up" = "Slitter Warming Up"; // TRANSLATORS: Spool Area Full "printer-state-reasons.spool-area-full" = "Spool Area Full"; // TRANSLATORS: Stacker Added "printer-state-reasons.stacker-added" = "Stacker Added"; // TRANSLATORS: Stacker Almost Empty "printer-state-reasons.stacker-almost-empty" = "Stacker Almost Empty"; // TRANSLATORS: Stacker Almost Full "printer-state-reasons.stacker-almost-full" = "Stacker Almost Full"; // TRANSLATORS: Stacker At Limit "printer-state-reasons.stacker-at-limit" = "Stacker At Limit"; // TRANSLATORS: Stacker Closed "printer-state-reasons.stacker-closed" = "Stacker Closed"; // TRANSLATORS: Stacker Configuration Change "printer-state-reasons.stacker-configuration-change" = "Stacker Configuration Change"; // TRANSLATORS: Stacker Cover Closed "printer-state-reasons.stacker-cover-closed" = "Stacker Cover Closed"; // TRANSLATORS: Stacker Cover Open "printer-state-reasons.stacker-cover-open" = "Stacker Cover Open"; // TRANSLATORS: Stacker Empty "printer-state-reasons.stacker-empty" = "Stacker Empty"; // TRANSLATORS: Stacker Full "printer-state-reasons.stacker-full" = "Stacker Full"; // TRANSLATORS: Stacker Interlock Closed "printer-state-reasons.stacker-interlock-closed" = "Stacker Interlock Closed"; // TRANSLATORS: Stacker Interlock Open "printer-state-reasons.stacker-interlock-open" = "Stacker Interlock Open"; // TRANSLATORS: Stacker Jam "printer-state-reasons.stacker-jam" = "Stacker Jam"; // TRANSLATORS: Stacker Life Almost Over "printer-state-reasons.stacker-life-almost-over" = "Stacker Life Almost Over"; // TRANSLATORS: Stacker Life Over "printer-state-reasons.stacker-life-over" = "Stacker Life Over"; // TRANSLATORS: Stacker Memory Exhausted "printer-state-reasons.stacker-memory-exhausted" = "Stacker Memory Exhausted"; // TRANSLATORS: Stacker Missing "printer-state-reasons.stacker-missing" = "Stacker Missing"; // TRANSLATORS: Stacker Motor Failure "printer-state-reasons.stacker-motor-failure" = "Stacker Motor Failure"; // TRANSLATORS: Stacker Near Limit "printer-state-reasons.stacker-near-limit" = "Stacker Near Limit"; // TRANSLATORS: Stacker Offline "printer-state-reasons.stacker-offline" = "Stacker Offline"; // TRANSLATORS: Stacker Opened "printer-state-reasons.stacker-opened" = "Stacker Opened"; // TRANSLATORS: Stacker Over Temperature "printer-state-reasons.stacker-over-temperature" = "Stacker Over Temperature"; // TRANSLATORS: Stacker Power Saver "printer-state-reasons.stacker-power-saver" = "Stacker Power Saver"; // TRANSLATORS: Stacker Recoverable Failure "printer-state-reasons.stacker-recoverable-failure" = "Stacker Recoverable Failure"; // TRANSLATORS: Stacker Recoverable Storage "printer-state-reasons.stacker-recoverable-storage" = "Stacker Recoverable Storage"; // TRANSLATORS: Stacker Removed "printer-state-reasons.stacker-removed" = "Stacker Removed"; // TRANSLATORS: Stacker Resource Added "printer-state-reasons.stacker-resource-added" = "Stacker Resource Added"; // TRANSLATORS: Stacker Resource Removed "printer-state-reasons.stacker-resource-removed" = "Stacker Resource Removed"; // TRANSLATORS: Stacker Thermistor Failure "printer-state-reasons.stacker-thermistor-failure" = "Stacker Thermistor Failure"; // TRANSLATORS: Stacker Timing Failure "printer-state-reasons.stacker-timing-failure" = "Stacker Timing Failure"; // TRANSLATORS: Stacker Turned Off "printer-state-reasons.stacker-turned-off" = "Stacker Turned Off"; // TRANSLATORS: Stacker Turned On "printer-state-reasons.stacker-turned-on" = "Stacker Turned On"; // TRANSLATORS: Stacker Under Temperature "printer-state-reasons.stacker-under-temperature" = "Stacker Under Temperature"; // TRANSLATORS: Stacker Unrecoverable Failure "printer-state-reasons.stacker-unrecoverable-failure" = "Stacker Unrecoverable Failure"; // TRANSLATORS: Stacker Unrecoverable Storage Error "printer-state-reasons.stacker-unrecoverable-storage-error" = "Stacker Unrecoverable Storage Error"; // TRANSLATORS: Stacker Warming Up "printer-state-reasons.stacker-warming-up" = "Stacker Warming Up"; // TRANSLATORS: Stapler Added "printer-state-reasons.stapler-added" = "Stapler Added"; // TRANSLATORS: Stapler Almost Empty "printer-state-reasons.stapler-almost-empty" = "Stapler Almost Empty"; // TRANSLATORS: Stapler Almost Full "printer-state-reasons.stapler-almost-full" = "Stapler Almost Full"; // TRANSLATORS: Stapler At Limit "printer-state-reasons.stapler-at-limit" = "Stapler At Limit"; // TRANSLATORS: Stapler Closed "printer-state-reasons.stapler-closed" = "Stapler Closed"; // TRANSLATORS: Stapler Configuration Change "printer-state-reasons.stapler-configuration-change" = "Stapler Configuration Change"; // TRANSLATORS: Stapler Cover Closed "printer-state-reasons.stapler-cover-closed" = "Stapler Cover Closed"; // TRANSLATORS: Stapler Cover Open "printer-state-reasons.stapler-cover-open" = "Stapler Cover Open"; // TRANSLATORS: Stapler Empty "printer-state-reasons.stapler-empty" = "Stapler Empty"; // TRANSLATORS: Stapler Full "printer-state-reasons.stapler-full" = "Stapler Full"; // TRANSLATORS: Stapler Interlock Closed "printer-state-reasons.stapler-interlock-closed" = "Stapler Interlock Closed"; // TRANSLATORS: Stapler Interlock Open "printer-state-reasons.stapler-interlock-open" = "Stapler Interlock Open"; // TRANSLATORS: Stapler Jam "printer-state-reasons.stapler-jam" = "Stapler Jam"; // TRANSLATORS: Stapler Life Almost Over "printer-state-reasons.stapler-life-almost-over" = "Stapler Life Almost Over"; // TRANSLATORS: Stapler Life Over "printer-state-reasons.stapler-life-over" = "Stapler Life Over"; // TRANSLATORS: Stapler Memory Exhausted "printer-state-reasons.stapler-memory-exhausted" = "Stapler Memory Exhausted"; // TRANSLATORS: Stapler Missing "printer-state-reasons.stapler-missing" = "Stapler Missing"; // TRANSLATORS: Stapler Motor Failure "printer-state-reasons.stapler-motor-failure" = "Stapler Motor Failure"; // TRANSLATORS: Stapler Near Limit "printer-state-reasons.stapler-near-limit" = "Stapler Near Limit"; // TRANSLATORS: Stapler Offline "printer-state-reasons.stapler-offline" = "Stapler Offline"; // TRANSLATORS: Stapler Opened "printer-state-reasons.stapler-opened" = "Stapler Opened"; // TRANSLATORS: Stapler Over Temperature "printer-state-reasons.stapler-over-temperature" = "Stapler Over Temperature"; // TRANSLATORS: Stapler Power Saver "printer-state-reasons.stapler-power-saver" = "Stapler Power Saver"; // TRANSLATORS: Stapler Recoverable Failure "printer-state-reasons.stapler-recoverable-failure" = "Stapler Recoverable Failure"; // TRANSLATORS: Stapler Recoverable Storage "printer-state-reasons.stapler-recoverable-storage" = "Stapler Recoverable Storage"; // TRANSLATORS: Stapler Removed "printer-state-reasons.stapler-removed" = "Stapler Removed"; // TRANSLATORS: Stapler Resource Added "printer-state-reasons.stapler-resource-added" = "Stapler Resource Added"; // TRANSLATORS: Stapler Resource Removed "printer-state-reasons.stapler-resource-removed" = "Stapler Resource Removed"; // TRANSLATORS: Stapler Thermistor Failure "printer-state-reasons.stapler-thermistor-failure" = "Stapler Thermistor Failure"; // TRANSLATORS: Stapler Timing Failure "printer-state-reasons.stapler-timing-failure" = "Stapler Timing Failure"; // TRANSLATORS: Stapler Turned Off "printer-state-reasons.stapler-turned-off" = "Stapler Turned Off"; // TRANSLATORS: Stapler Turned On "printer-state-reasons.stapler-turned-on" = "Stapler Turned On"; // TRANSLATORS: Stapler Under Temperature "printer-state-reasons.stapler-under-temperature" = "Stapler Under Temperature"; // TRANSLATORS: Stapler Unrecoverable Failure "printer-state-reasons.stapler-unrecoverable-failure" = "Stapler Unrecoverable Failure"; // TRANSLATORS: Stapler Unrecoverable Storage Error "printer-state-reasons.stapler-unrecoverable-storage-error" = "Stapler Unrecoverable Storage Error"; // TRANSLATORS: Stapler Warming Up "printer-state-reasons.stapler-warming-up" = "Stapler Warming Up"; // TRANSLATORS: Stitcher Added "printer-state-reasons.stitcher-added" = "Stitcher Added"; // TRANSLATORS: Stitcher Almost Empty "printer-state-reasons.stitcher-almost-empty" = "Stitcher Almost Empty"; // TRANSLATORS: Stitcher Almost Full "printer-state-reasons.stitcher-almost-full" = "Stitcher Almost Full"; // TRANSLATORS: Stitcher At Limit "printer-state-reasons.stitcher-at-limit" = "Stitcher At Limit"; // TRANSLATORS: Stitcher Closed "printer-state-reasons.stitcher-closed" = "Stitcher Closed"; // TRANSLATORS: Stitcher Configuration Change "printer-state-reasons.stitcher-configuration-change" = "Stitcher Configuration Change"; // TRANSLATORS: Stitcher Cover Closed "printer-state-reasons.stitcher-cover-closed" = "Stitcher Cover Closed"; // TRANSLATORS: Stitcher Cover Open "printer-state-reasons.stitcher-cover-open" = "Stitcher Cover Open"; // TRANSLATORS: Stitcher Empty "printer-state-reasons.stitcher-empty" = "Stitcher Empty"; // TRANSLATORS: Stitcher Full "printer-state-reasons.stitcher-full" = "Stitcher Full"; // TRANSLATORS: Stitcher Interlock Closed "printer-state-reasons.stitcher-interlock-closed" = "Stitcher Interlock Closed"; // TRANSLATORS: Stitcher Interlock Open "printer-state-reasons.stitcher-interlock-open" = "Stitcher Interlock Open"; // TRANSLATORS: Stitcher Jam "printer-state-reasons.stitcher-jam" = "Stitcher Jam"; // TRANSLATORS: Stitcher Life Almost Over "printer-state-reasons.stitcher-life-almost-over" = "Stitcher Life Almost Over"; // TRANSLATORS: Stitcher Life Over "printer-state-reasons.stitcher-life-over" = "Stitcher Life Over"; // TRANSLATORS: Stitcher Memory Exhausted "printer-state-reasons.stitcher-memory-exhausted" = "Stitcher Memory Exhausted"; // TRANSLATORS: Stitcher Missing "printer-state-reasons.stitcher-missing" = "Stitcher Missing"; // TRANSLATORS: Stitcher Motor Failure "printer-state-reasons.stitcher-motor-failure" = "Stitcher Motor Failure"; // TRANSLATORS: Stitcher Near Limit "printer-state-reasons.stitcher-near-limit" = "Stitcher Near Limit"; // TRANSLATORS: Stitcher Offline "printer-state-reasons.stitcher-offline" = "Stitcher Offline"; // TRANSLATORS: Stitcher Opened "printer-state-reasons.stitcher-opened" = "Stitcher Opened"; // TRANSLATORS: Stitcher Over Temperature "printer-state-reasons.stitcher-over-temperature" = "Stitcher Over Temperature"; // TRANSLATORS: Stitcher Power Saver "printer-state-reasons.stitcher-power-saver" = "Stitcher Power Saver"; // TRANSLATORS: Stitcher Recoverable Failure "printer-state-reasons.stitcher-recoverable-failure" = "Stitcher Recoverable Failure"; // TRANSLATORS: Stitcher Recoverable Storage "printer-state-reasons.stitcher-recoverable-storage" = "Stitcher Recoverable Storage"; // TRANSLATORS: Stitcher Removed "printer-state-reasons.stitcher-removed" = "Stitcher Removed"; // TRANSLATORS: Stitcher Resource Added "printer-state-reasons.stitcher-resource-added" = "Stitcher Resource Added"; // TRANSLATORS: Stitcher Resource Removed "printer-state-reasons.stitcher-resource-removed" = "Stitcher Resource Removed"; // TRANSLATORS: Stitcher Thermistor Failure "printer-state-reasons.stitcher-thermistor-failure" = "Stitcher Thermistor Failure"; // TRANSLATORS: Stitcher Timing Failure "printer-state-reasons.stitcher-timing-failure" = "Stitcher Timing Failure"; // TRANSLATORS: Stitcher Turned Off "printer-state-reasons.stitcher-turned-off" = "Stitcher Turned Off"; // TRANSLATORS: Stitcher Turned On "printer-state-reasons.stitcher-turned-on" = "Stitcher Turned On"; // TRANSLATORS: Stitcher Under Temperature "printer-state-reasons.stitcher-under-temperature" = "Stitcher Under Temperature"; // TRANSLATORS: Stitcher Unrecoverable Failure "printer-state-reasons.stitcher-unrecoverable-failure" = "Stitcher Unrecoverable Failure"; // TRANSLATORS: Stitcher Unrecoverable Storage Error "printer-state-reasons.stitcher-unrecoverable-storage-error" = "Stitcher Unrecoverable Storage Error"; // TRANSLATORS: Stitcher Warming Up "printer-state-reasons.stitcher-warming-up" = "Stitcher Warming Up"; // TRANSLATORS: Partially stopped "printer-state-reasons.stopped-partly" = "Stopped Partly"; // TRANSLATORS: Stopping "printer-state-reasons.stopping" = "Stopping"; // TRANSLATORS: Subunit Added "printer-state-reasons.subunit-added" = "Subunit Added"; // TRANSLATORS: Subunit Almost Empty "printer-state-reasons.subunit-almost-empty" = "Subunit Almost Empty"; // TRANSLATORS: Subunit Almost Full "printer-state-reasons.subunit-almost-full" = "Subunit Almost Full"; // TRANSLATORS: Subunit At Limit "printer-state-reasons.subunit-at-limit" = "Subunit At Limit"; // TRANSLATORS: Subunit Closed "printer-state-reasons.subunit-closed" = "Subunit Closed"; // TRANSLATORS: Subunit Cooling Down "printer-state-reasons.subunit-cooling-down" = "Subunit Cooling Down"; // TRANSLATORS: Subunit Empty "printer-state-reasons.subunit-empty" = "Subunit Empty"; // TRANSLATORS: Subunit Full "printer-state-reasons.subunit-full" = "Subunit Full"; // TRANSLATORS: Subunit Life Almost Over "printer-state-reasons.subunit-life-almost-over" = "Subunit Life Almost Over"; // TRANSLATORS: Subunit Life Over "printer-state-reasons.subunit-life-over" = "Subunit Life Over"; // TRANSLATORS: Subunit Memory Exhausted "printer-state-reasons.subunit-memory-exhausted" = "Subunit Memory Exhausted"; // TRANSLATORS: Subunit Missing "printer-state-reasons.subunit-missing" = "Subunit Missing"; // TRANSLATORS: Subunit Motor Failure "printer-state-reasons.subunit-motor-failure" = "Subunit Motor Failure"; // TRANSLATORS: Subunit Near Limit "printer-state-reasons.subunit-near-limit" = "Subunit Near Limit"; // TRANSLATORS: Subunit Offline "printer-state-reasons.subunit-offline" = "Subunit Offline"; // TRANSLATORS: Subunit Opened "printer-state-reasons.subunit-opened" = "Subunit Opened"; // TRANSLATORS: Subunit Over Temperature "printer-state-reasons.subunit-over-temperature" = "Subunit Over Temperature"; // TRANSLATORS: Subunit Power Saver "printer-state-reasons.subunit-power-saver" = "Subunit Power Saver"; // TRANSLATORS: Subunit Recoverable Failure "printer-state-reasons.subunit-recoverable-failure" = "Subunit Recoverable Failure"; // TRANSLATORS: Subunit Recoverable Storage "printer-state-reasons.subunit-recoverable-storage" = "Subunit Recoverable Storage"; // TRANSLATORS: Subunit Removed "printer-state-reasons.subunit-removed" = "Subunit Removed"; // TRANSLATORS: Subunit Resource Added "printer-state-reasons.subunit-resource-added" = "Subunit Resource Added"; // TRANSLATORS: Subunit Resource Removed "printer-state-reasons.subunit-resource-removed" = "Subunit Resource Removed"; // TRANSLATORS: Subunit Thermistor Failure "printer-state-reasons.subunit-thermistor-failure" = "Subunit Thermistor Failure"; // TRANSLATORS: Subunit Timing Failure "printer-state-reasons.subunit-timing-Failure" = "Subunit Timing Failure"; // TRANSLATORS: Subunit Turned Off "printer-state-reasons.subunit-turned-off" = "Subunit Turned Off"; // TRANSLATORS: Subunit Turned On "printer-state-reasons.subunit-turned-on" = "Subunit Turned On"; // TRANSLATORS: Subunit Under Temperature "printer-state-reasons.subunit-under-temperature" = "Subunit Under Temperature"; // TRANSLATORS: Subunit Unrecoverable Failure "printer-state-reasons.subunit-unrecoverable-failure" = "Subunit Unrecoverable Failure"; // TRANSLATORS: Subunit Unrecoverable Storage "printer-state-reasons.subunit-unrecoverable-storage" = "Subunit Unrecoverable Storage"; // TRANSLATORS: Subunit Warming Up "printer-state-reasons.subunit-warming-up" = "Subunit Warming Up"; // TRANSLATORS: Printer stopped responding "printer-state-reasons.timed-out" = "Timed Out"; // TRANSLATORS: Out of toner "printer-state-reasons.toner-empty" = "Toner Empty"; // TRANSLATORS: Toner low "printer-state-reasons.toner-low" = "Toner Low"; // TRANSLATORS: Trimmer Added "printer-state-reasons.trimmer-added" = "Trimmer Added"; // TRANSLATORS: Trimmer Almost Empty "printer-state-reasons.trimmer-almost-empty" = "Trimmer Almost Empty"; // TRANSLATORS: Trimmer Almost Full "printer-state-reasons.trimmer-almost-full" = "Trimmer Almost Full"; // TRANSLATORS: Trimmer At Limit "printer-state-reasons.trimmer-at-limit" = "Trimmer At Limit"; // TRANSLATORS: Trimmer Closed "printer-state-reasons.trimmer-closed" = "Trimmer Closed"; // TRANSLATORS: Trimmer Configuration Change "printer-state-reasons.trimmer-configuration-change" = "Trimmer Configuration Change"; // TRANSLATORS: Trimmer Cover Closed "printer-state-reasons.trimmer-cover-closed" = "Trimmer Cover Closed"; // TRANSLATORS: Trimmer Cover Open "printer-state-reasons.trimmer-cover-open" = "Trimmer Cover Open"; // TRANSLATORS: Trimmer Empty "printer-state-reasons.trimmer-empty" = "Trimmer Empty"; // TRANSLATORS: Trimmer Full "printer-state-reasons.trimmer-full" = "Trimmer Full"; // TRANSLATORS: Trimmer Interlock Closed "printer-state-reasons.trimmer-interlock-closed" = "Trimmer Interlock Closed"; // TRANSLATORS: Trimmer Interlock Open "printer-state-reasons.trimmer-interlock-open" = "Trimmer Interlock Open"; // TRANSLATORS: Trimmer Jam "printer-state-reasons.trimmer-jam" = "Trimmer Jam"; // TRANSLATORS: Trimmer Life Almost Over "printer-state-reasons.trimmer-life-almost-over" = "Trimmer Life Almost Over"; // TRANSLATORS: Trimmer Life Over "printer-state-reasons.trimmer-life-over" = "Trimmer Life Over"; // TRANSLATORS: Trimmer Memory Exhausted "printer-state-reasons.trimmer-memory-exhausted" = "Trimmer Memory Exhausted"; // TRANSLATORS: Trimmer Missing "printer-state-reasons.trimmer-missing" = "Trimmer Missing"; // TRANSLATORS: Trimmer Motor Failure "printer-state-reasons.trimmer-motor-failure" = "Trimmer Motor Failure"; // TRANSLATORS: Trimmer Near Limit "printer-state-reasons.trimmer-near-limit" = "Trimmer Near Limit"; // TRANSLATORS: Trimmer Offline "printer-state-reasons.trimmer-offline" = "Trimmer Offline"; // TRANSLATORS: Trimmer Opened "printer-state-reasons.trimmer-opened" = "Trimmer Opened"; // TRANSLATORS: Trimmer Over Temperature "printer-state-reasons.trimmer-over-temperature" = "Trimmer Over Temperature"; // TRANSLATORS: Trimmer Power Saver "printer-state-reasons.trimmer-power-saver" = "Trimmer Power Saver"; // TRANSLATORS: Trimmer Recoverable Failure "printer-state-reasons.trimmer-recoverable-failure" = "Trimmer Recoverable Failure"; // TRANSLATORS: Trimmer Recoverable Storage "printer-state-reasons.trimmer-recoverable-storage" = "Trimmer Recoverable Storage"; // TRANSLATORS: Trimmer Removed "printer-state-reasons.trimmer-removed" = "Trimmer Removed"; // TRANSLATORS: Trimmer Resource Added "printer-state-reasons.trimmer-resource-added" = "Trimmer Resource Added"; // TRANSLATORS: Trimmer Resource Removed "printer-state-reasons.trimmer-resource-removed" = "Trimmer Resource Removed"; // TRANSLATORS: Trimmer Thermistor Failure "printer-state-reasons.trimmer-thermistor-failure" = "Trimmer Thermistor Failure"; // TRANSLATORS: Trimmer Timing Failure "printer-state-reasons.trimmer-timing-failure" = "Trimmer Timing Failure"; // TRANSLATORS: Trimmer Turned Off "printer-state-reasons.trimmer-turned-off" = "Trimmer Turned Off"; // TRANSLATORS: Trimmer Turned On "printer-state-reasons.trimmer-turned-on" = "Trimmer Turned On"; // TRANSLATORS: Trimmer Under Temperature "printer-state-reasons.trimmer-under-temperature" = "Trimmer Under Temperature"; // TRANSLATORS: Trimmer Unrecoverable Failure "printer-state-reasons.trimmer-unrecoverable-failure" = "Trimmer Unrecoverable Failure"; // TRANSLATORS: Trimmer Unrecoverable Storage Error "printer-state-reasons.trimmer-unrecoverable-storage-error" = "Trimmer Unrecoverable Storage Error"; // TRANSLATORS: Trimmer Warming Up "printer-state-reasons.trimmer-warming-up" = "Trimmer Warming Up"; // TRANSLATORS: Unknown "printer-state-reasons.unknown" = "Unknown"; // TRANSLATORS: Wrapper Added "printer-state-reasons.wrapper-added" = "Wrapper Added"; // TRANSLATORS: Wrapper Almost Empty "printer-state-reasons.wrapper-almost-empty" = "Wrapper Almost Empty"; // TRANSLATORS: Wrapper Almost Full "printer-state-reasons.wrapper-almost-full" = "Wrapper Almost Full"; // TRANSLATORS: Wrapper At Limit "printer-state-reasons.wrapper-at-limit" = "Wrapper At Limit"; // TRANSLATORS: Wrapper Closed "printer-state-reasons.wrapper-closed" = "Wrapper Closed"; // TRANSLATORS: Wrapper Configuration Change "printer-state-reasons.wrapper-configuration-change" = "Wrapper Configuration Change"; // TRANSLATORS: Wrapper Cover Closed "printer-state-reasons.wrapper-cover-closed" = "Wrapper Cover Closed"; // TRANSLATORS: Wrapper Cover Open "printer-state-reasons.wrapper-cover-open" = "Wrapper Cover Open"; // TRANSLATORS: Wrapper Empty "printer-state-reasons.wrapper-empty" = "Wrapper Empty"; // TRANSLATORS: Wrapper Full "printer-state-reasons.wrapper-full" = "Wrapper Full"; // TRANSLATORS: Wrapper Interlock Closed "printer-state-reasons.wrapper-interlock-closed" = "Wrapper Interlock Closed"; // TRANSLATORS: Wrapper Interlock Open "printer-state-reasons.wrapper-interlock-open" = "Wrapper Interlock Open"; // TRANSLATORS: Wrapper Jam "printer-state-reasons.wrapper-jam" = "Wrapper Jam"; // TRANSLATORS: Wrapper Life Almost Over "printer-state-reasons.wrapper-life-almost-over" = "Wrapper Life Almost Over"; // TRANSLATORS: Wrapper Life Over "printer-state-reasons.wrapper-life-over" = "Wrapper Life Over"; // TRANSLATORS: Wrapper Memory Exhausted "printer-state-reasons.wrapper-memory-exhausted" = "Wrapper Memory Exhausted"; // TRANSLATORS: Wrapper Missing "printer-state-reasons.wrapper-missing" = "Wrapper Missing"; // TRANSLATORS: Wrapper Motor Failure "printer-state-reasons.wrapper-motor-failure" = "Wrapper Motor Failure"; // TRANSLATORS: Wrapper Near Limit "printer-state-reasons.wrapper-near-limit" = "Wrapper Near Limit"; // TRANSLATORS: Wrapper Offline "printer-state-reasons.wrapper-offline" = "Wrapper Offline"; // TRANSLATORS: Wrapper Opened "printer-state-reasons.wrapper-opened" = "Wrapper Opened"; // TRANSLATORS: Wrapper Over Temperature "printer-state-reasons.wrapper-over-temperature" = "Wrapper Over Temperature"; // TRANSLATORS: Wrapper Power Saver "printer-state-reasons.wrapper-power-saver" = "Wrapper Power Saver"; // TRANSLATORS: Wrapper Recoverable Failure "printer-state-reasons.wrapper-recoverable-failure" = "Wrapper Recoverable Failure"; // TRANSLATORS: Wrapper Recoverable Storage "printer-state-reasons.wrapper-recoverable-storage" = "Wrapper Recoverable Storage"; // TRANSLATORS: Wrapper Removed "printer-state-reasons.wrapper-removed" = "Wrapper Removed"; // TRANSLATORS: Wrapper Resource Added "printer-state-reasons.wrapper-resource-added" = "Wrapper Resource Added"; // TRANSLATORS: Wrapper Resource Removed "printer-state-reasons.wrapper-resource-removed" = "Wrapper Resource Removed"; // TRANSLATORS: Wrapper Thermistor Failure "printer-state-reasons.wrapper-thermistor-failure" = "Wrapper Thermistor Failure"; // TRANSLATORS: Wrapper Timing Failure "printer-state-reasons.wrapper-timing-failure" = "Wrapper Timing Failure"; // TRANSLATORS: Wrapper Turned Off "printer-state-reasons.wrapper-turned-off" = "Wrapper Turned Off"; // TRANSLATORS: Wrapper Turned On "printer-state-reasons.wrapper-turned-on" = "Wrapper Turned On"; // TRANSLATORS: Wrapper Under Temperature "printer-state-reasons.wrapper-under-temperature" = "Wrapper Under Temperature"; // TRANSLATORS: Wrapper Unrecoverable Failure "printer-state-reasons.wrapper-unrecoverable-failure" = "Wrapper Unrecoverable Failure"; // TRANSLATORS: Wrapper Unrecoverable Storage Error "printer-state-reasons.wrapper-unrecoverable-storage-error" = "Wrapper Unrecoverable Storage Error"; // TRANSLATORS: Wrapper Warming Up "printer-state-reasons.wrapper-warming-up" = "Wrapper Warming Up"; // TRANSLATORS: Idle "printer-state.3" = "Idle"; // TRANSLATORS: Processing "printer-state.4" = "Processing"; // TRANSLATORS: Stopped "printer-state.5" = "Stopped"; // TRANSLATORS: Printer Uptime "printer-up-time" = "Printer Uptime"; "processing" = "processing"; // TRANSLATORS: Proof Print "proof-print" = "Proof Print"; // TRANSLATORS: Proof Print Copies "proof-print-copies" = "Proof Print Copies"; // TRANSLATORS: Punching "punching" = "Punching"; // TRANSLATORS: Punching Locations "punching-locations" = "Punching Locations"; // TRANSLATORS: Punching Offset "punching-offset" = "Punching Offset"; // TRANSLATORS: Punch Edge "punching-reference-edge" = "Punch Edge"; // TRANSLATORS: Bottom "punching-reference-edge.bottom" = "Bottom"; // TRANSLATORS: Left "punching-reference-edge.left" = "Left"; // TRANSLATORS: Right "punching-reference-edge.right" = "Right"; // TRANSLATORS: Top "punching-reference-edge.top" = "Top"; "request id is %s-%d (%d file(s))" = "request id is %s-%d (%d file(s))"; "request-id uses indefinite length" = "request-id uses indefinite length"; // TRANSLATORS: Requested Attributes "requested-attributes" = "Requested Attributes"; // TRANSLATORS: Retry Interval "retry-interval" = "Retry Interval"; // TRANSLATORS: Retry Timeout "retry-time-out" = "Retry Timeout"; // TRANSLATORS: Save Disposition "save-disposition" = "Save Disposition"; // TRANSLATORS: None "save-disposition.none" = "None"; // TRANSLATORS: Print and Save "save-disposition.print-save" = "Print and Save"; // TRANSLATORS: Save Only "save-disposition.save-only" = "Save Only"; // TRANSLATORS: Save Document Format "save-document-format" = "Save Document Format"; // TRANSLATORS: Save Info "save-info" = "Save Info"; // TRANSLATORS: Save Location "save-location" = "Save Location"; // TRANSLATORS: Save Name "save-name" = "Save Name"; "scheduler is not running" = "scheduler is not running"; "scheduler is running" = "scheduler is running"; // TRANSLATORS: Separator Sheets "separator-sheets" = "Separator Sheets"; // TRANSLATORS: Type of Separator Sheets "separator-sheets-type" = "Type of Separator Sheets"; // TRANSLATORS: Start and End Sheets "separator-sheets-type.both-sheets" = "Start and End Sheets"; // TRANSLATORS: End Sheet "separator-sheets-type.end-sheet" = "End Sheet"; // TRANSLATORS: None "separator-sheets-type.none" = "None"; // TRANSLATORS: Slip Sheets "separator-sheets-type.slip-sheets" = "Slip Sheets"; // TRANSLATORS: Start Sheet "separator-sheets-type.start-sheet" = "Start Sheet"; // TRANSLATORS: 2-Sided Printing "sides" = "2-Sided Printing"; // TRANSLATORS: Off "sides.one-sided" = "Off"; // TRANSLATORS: On (Portrait) "sides.two-sided-long-edge" = "On (Portrait)"; // TRANSLATORS: On (Landscape) "sides.two-sided-short-edge" = "On (Landscape)"; "stat of %s failed: %s" = "stat of %s failed: %s"; "status\t\tShow status of daemon and queue." = "status\t\tShow status of daemon and queue."; // TRANSLATORS: Status Message "status-message" = "Status Message"; // TRANSLATORS: Staple "stitching" = "Staple"; // TRANSLATORS: Stitching Angle "stitching-angle" = "Stitching Angle"; // TRANSLATORS: Stitching Locations "stitching-locations" = "Stitching Locations"; // TRANSLATORS: Staple Method "stitching-method" = "Staple Method"; // TRANSLATORS: Automatic "stitching-method.auto" = "Automatic"; // TRANSLATORS: Crimp "stitching-method.crimp" = "Crimp"; // TRANSLATORS: Wire "stitching-method.wire" = "Wire"; // TRANSLATORS: Stitching Offset "stitching-offset" = "Stitching Offset"; // TRANSLATORS: Staple Edge "stitching-reference-edge" = "Staple Edge"; // TRANSLATORS: Bottom "stitching-reference-edge.bottom" = "Bottom"; // TRANSLATORS: Left "stitching-reference-edge.left" = "Left"; // TRANSLATORS: Right "stitching-reference-edge.right" = "Right"; // TRANSLATORS: Top "stitching-reference-edge.top" = "Top"; "stopped" = "stopped"; // TRANSLATORS: Subject "subject" = "Subject"; // TRANSLATORS: Subscription Privacy Attributes "subscription-privacy-attributes" = "Subscription Privacy Attributes"; // TRANSLATORS: All "subscription-privacy-attributes.all" = "All"; // TRANSLATORS: Default "subscription-privacy-attributes.default" = "Default"; // TRANSLATORS: None "subscription-privacy-attributes.none" = "None"; // TRANSLATORS: Subscription Description "subscription-privacy-attributes.subscription-description" = "Subscription Description"; // TRANSLATORS: Subscription Template "subscription-privacy-attributes.subscription-template" = "Subscription Template"; // TRANSLATORS: Subscription Privacy Scope "subscription-privacy-scope" = "Subscription Privacy Scope"; // TRANSLATORS: All "subscription-privacy-scope.all" = "All"; // TRANSLATORS: Default "subscription-privacy-scope.default" = "Default"; // TRANSLATORS: None "subscription-privacy-scope.none" = "None"; // TRANSLATORS: Owner "subscription-privacy-scope.owner" = "Owner"; "system default destination: %s" = "system default destination: %s"; "system default destination: %s/%s" = "system default destination: %s/%s"; // TRANSLATORS: T33 Subaddress "t33-subaddress" = "T33 Subaddress"; // TRANSLATORS: To Name "to-name" = "To Name"; // TRANSLATORS: Transmission Status "transmission-status" = "Transmission Status"; // TRANSLATORS: Pending "transmission-status.3" = "Pending"; // TRANSLATORS: Pending Retry "transmission-status.4" = "Pending Retry"; // TRANSLATORS: Processing "transmission-status.5" = "Processing"; // TRANSLATORS: Canceled "transmission-status.7" = "Canceled"; // TRANSLATORS: Aborted "transmission-status.8" = "Aborted"; // TRANSLATORS: Completed "transmission-status.9" = "Completed"; // TRANSLATORS: Cut "trimming" = "Cut"; // TRANSLATORS: Cut Position "trimming-offset" = "Cut Position"; // TRANSLATORS: Cut Edge "trimming-reference-edge" = "Cut Edge"; // TRANSLATORS: Bottom "trimming-reference-edge.bottom" = "Bottom"; // TRANSLATORS: Left "trimming-reference-edge.left" = "Left"; // TRANSLATORS: Right "trimming-reference-edge.right" = "Right"; // TRANSLATORS: Top "trimming-reference-edge.top" = "Top"; // TRANSLATORS: Type of Cut "trimming-type" = "Type of Cut"; // TRANSLATORS: Draw Line "trimming-type.draw-line" = "Draw Line"; // TRANSLATORS: Full "trimming-type.full" = "Full"; // TRANSLATORS: Partial "trimming-type.partial" = "Partial"; // TRANSLATORS: Perforate "trimming-type.perforate" = "Perforate"; // TRANSLATORS: Score "trimming-type.score" = "Score"; // TRANSLATORS: Tab "trimming-type.tab" = "Tab"; // TRANSLATORS: Cut After "trimming-when" = "Cut After"; // TRANSLATORS: Every Document "trimming-when.after-documents" = "Every Document"; // TRANSLATORS: Job "trimming-when.after-job" = "Job"; // TRANSLATORS: Every Set "trimming-when.after-sets" = "Every Set"; // TRANSLATORS: Every Page "trimming-when.after-sheets" = "Every Page"; "unknown" = "unknown"; "untitled" = "untitled"; "variable-bindings uses indefinite length" = "variable-bindings uses indefinite length"; // TRANSLATORS: X Accuracy "x-accuracy" = "X Accuracy"; // TRANSLATORS: X Dimension "x-dimension" = "X Dimension"; // TRANSLATORS: X Offset "x-offset" = "X Offset"; // TRANSLATORS: X Origin "x-origin" = "X Origin"; // TRANSLATORS: Y Accuracy "y-accuracy" = "Y Accuracy"; // TRANSLATORS: Y Dimension "y-dimension" = "Y Dimension"; // TRANSLATORS: Y Offset "y-offset" = "Y Offset"; // TRANSLATORS: Y Origin "y-origin" = "Y Origin"; // TRANSLATORS: Z Accuracy "z-accuracy" = "Z Accuracy"; // TRANSLATORS: Z Dimension "z-dimension" = "Z Dimension"; // TRANSLATORS: Z Offset "z-offset" = "Z Offset"; "{service_domain} Domain name" = "{service_domain} Domain name"; "{service_hostname} Fully-qualified domain name" = "{service_hostname} Fully-qualified domain name"; "{service_name} Service instance name" = "{service_name} Service instance name"; "{service_port} Port number" = "{service_port} Port number"; "{service_regtype} DNS-SD registration type" = "{service_regtype} DNS-SD registration type"; "{service_scheme} URI scheme" = "{service_scheme} URI scheme"; "{service_uri} URI" = "{service_uri} URI"; "{txt_*} Value of TXT record key" = "{txt_*} Value of TXT record key"; "{} URI" = "{} URI"; "~/.cups/lpoptions file names default destination that does not exist." = "~/.cups/lpoptions file names default destination that does not exist."; cups-2.4.7/locale/cups.pot0000644000175000017500000145212414502571342015327 0ustar zdohnalzdohnal# # Message catalog template for CUPS. # # Copyright © 2021 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Notes for Translators: # # The "checkpo" program located in the "locale" source directory can be used # to verify that your translations do not introduce formatting errors or other # problems. Run with: # # cd locale # ./checkpo cups_LL.po # # where "LL" is your locale. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: CUPS 2.4rc1\n" "Report-Msgid-Bugs-To: https://github.com/openprinting/cups/issues\n" "POT-Creation-Date: 2021-03-07 10:33-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: systemv/lpstat.c:1872 systemv/lpstat.c:1991 msgid "\t\t(all)" msgstr "" #: systemv/lpstat.c:1875 systemv/lpstat.c:1878 systemv/lpstat.c:1994 #: systemv/lpstat.c:1997 msgid "\t\t(none)" msgstr "" #: berkeley/lpc.c:416 #, c-format msgid "\t%d entries" msgstr "" #: systemv/lpstat.c:813 systemv/lpstat.c:829 #, c-format msgid "\t%s" msgstr "" #: systemv/lpstat.c:1853 systemv/lpstat.c:1972 msgid "\tAfter fault: continue" msgstr "" #: systemv/lpstat.c:1489 systemv/lpstat.c:1826 systemv/lpstat.c:1946 #, c-format msgid "\tAlerts: %s" msgstr "" #: systemv/lpstat.c:1876 systemv/lpstat.c:1995 msgid "\tBanner required" msgstr "" #: systemv/lpstat.c:1877 systemv/lpstat.c:1996 msgid "\tCharset sets:" msgstr "" #: systemv/lpstat.c:1845 systemv/lpstat.c:1964 msgid "\tConnection: direct" msgstr "" #: systemv/lpstat.c:1836 systemv/lpstat.c:1956 msgid "\tConnection: remote" msgstr "" #: systemv/lpstat.c:1802 systemv/lpstat.c:1922 msgid "\tContent types: any" msgstr "" #: systemv/lpstat.c:1880 systemv/lpstat.c:1999 msgid "\tDefault page size:" msgstr "" #: systemv/lpstat.c:1879 systemv/lpstat.c:1998 msgid "\tDefault pitch:" msgstr "" #: systemv/lpstat.c:1881 systemv/lpstat.c:2000 msgid "\tDefault port settings:" msgstr "" #: systemv/lpstat.c:1808 systemv/lpstat.c:1928 #, c-format msgid "\tDescription: %s" msgstr "" #: systemv/lpstat.c:1801 systemv/lpstat.c:1921 msgid "\tForm mounted:" msgstr "" #: systemv/lpstat.c:1874 systemv/lpstat.c:1993 msgid "\tForms allowed:" msgstr "" #: systemv/lpstat.c:1840 systemv/lpstat.c:1960 #, c-format msgid "\tInterface: %s.ppd" msgstr "" #: systemv/lpstat.c:1849 systemv/lpstat.c:1968 #, c-format msgid "\tInterface: %s/ppd/%s.ppd" msgstr "" #: systemv/lpstat.c:1831 systemv/lpstat.c:1951 #, c-format msgid "\tLocation: %s" msgstr "" #: systemv/lpstat.c:1852 systemv/lpstat.c:1971 msgid "\tOn fault: no alert" msgstr "" #: systemv/lpstat.c:1803 systemv/lpstat.c:1923 msgid "\tPrinter types: unknown" msgstr "" #: systemv/lpstat.c:1472 #, c-format msgid "\tStatus: %s" msgstr "" #: systemv/lpstat.c:1857 systemv/lpstat.c:1871 systemv/lpstat.c:1976 #: systemv/lpstat.c:1990 msgid "\tUsers allowed:" msgstr "" #: systemv/lpstat.c:1864 systemv/lpstat.c:1983 msgid "\tUsers denied:" msgstr "" #: berkeley/lpc.c:418 msgid "\tdaemon present" msgstr "" #: berkeley/lpc.c:414 msgid "\tno entries" msgstr "" #: berkeley/lpc.c:386 berkeley/lpc.c:398 #, c-format msgid "\tprinter is on device '%s' speed -1" msgstr "" #: berkeley/lpc.c:411 msgid "\tprinting is disabled" msgstr "" #: berkeley/lpc.c:409 msgid "\tprinting is enabled" msgstr "" #: systemv/lpstat.c:1492 #, c-format msgid "\tqueued for %s" msgstr "" #: berkeley/lpc.c:406 msgid "\tqueuing is disabled" msgstr "" #: berkeley/lpc.c:404 msgid "\tqueuing is enabled" msgstr "" #: systemv/lpstat.c:1794 systemv/lpstat.c:1914 msgid "\treason unknown" msgstr "" #: systemv/cupstestppd.c:431 msgid "" "\n" " DETAILED CONFORMANCE TEST RESULTS" msgstr "" #: systemv/cupstestppd.c:387 systemv/cupstestppd.c:392 msgid " REF: Page 15, section 3.1." msgstr "" #: systemv/cupstestppd.c:382 msgid " REF: Page 15, section 3.2." msgstr "" #: systemv/cupstestppd.c:402 msgid " REF: Page 19, section 3.3." msgstr "" #: systemv/cupstestppd.c:355 msgid " REF: Page 20, section 3.4." msgstr "" #: systemv/cupstestppd.c:407 msgid " REF: Page 27, section 3.5." msgstr "" #: systemv/cupstestppd.c:350 msgid " REF: Page 42, section 5.2." msgstr "" #: systemv/cupstestppd.c:397 msgid " REF: Pages 16-17, section 3.2." msgstr "" #: systemv/cupstestppd.c:367 msgid " REF: Pages 42-45, section 5.2." msgstr "" #: systemv/cupstestppd.c:361 msgid " REF: Pages 45-46, section 5.2." msgstr "" #: systemv/cupstestppd.c:372 msgid " REF: Pages 48-49, section 5.2." msgstr "" #: systemv/cupstestppd.c:377 msgid " REF: Pages 52-54, section 5.2." msgstr "" #: berkeley/lpq.c:534 #, c-format msgid " %-39.39s %.0f bytes" msgstr "" #: systemv/cupstestppd.c:566 #, c-format msgid " PASS Default%s" msgstr "" #: systemv/cupstestppd.c:501 msgid " PASS DefaultImageableArea" msgstr "" #: systemv/cupstestppd.c:535 msgid " PASS DefaultPaperDimension" msgstr "" #: systemv/cupstestppd.c:608 msgid " PASS FileVersion" msgstr "" #: systemv/cupstestppd.c:652 msgid " PASS FormatVersion" msgstr "" #: systemv/cupstestppd.c:672 msgid " PASS LanguageEncoding" msgstr "" #: systemv/cupstestppd.c:692 msgid " PASS LanguageVersion" msgstr "" #: systemv/cupstestppd.c:746 msgid " PASS Manufacturer" msgstr "" #: systemv/cupstestppd.c:786 msgid " PASS ModelName" msgstr "" #: systemv/cupstestppd.c:806 msgid " PASS NickName" msgstr "" #: systemv/cupstestppd.c:866 msgid " PASS PCFileName" msgstr "" #: systemv/cupstestppd.c:941 msgid " PASS PSVersion" msgstr "" #: systemv/cupstestppd.c:846 msgid " PASS PageRegion" msgstr "" #: systemv/cupstestppd.c:826 msgid " PASS PageSize" msgstr "" #: systemv/cupstestppd.c:901 msgid " PASS Product" msgstr "" #: systemv/cupstestppd.c:976 msgid " PASS ShortNickName" msgstr "" #: systemv/cupstestppd.c:1351 #, c-format msgid " WARN %s has no corresponding options." msgstr "" #: systemv/cupstestppd.c:1463 #, c-format msgid "" " WARN %s shares a common prefix with %s\n" " REF: Page 15, section 3.2." msgstr "" #: systemv/cupstestppd.c:1322 #, c-format msgid "" " WARN Duplex option keyword %s may not work as expected and should be named Duplex.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:1721 msgid " WARN File contains a mix of CR, LF, and CR LF line endings." msgstr "" #: systemv/cupstestppd.c:1367 msgid "" " WARN LanguageEncoding required by PPD 4.3 spec.\n" " REF: Pages 56-57, section 5.3." msgstr "" #: systemv/cupstestppd.c:1703 #, c-format msgid " WARN Line %d only contains whitespace." msgstr "" #: systemv/cupstestppd.c:1375 msgid "" " WARN Manufacturer required by PPD 4.3 spec.\n" " REF: Pages 58-59, section 5.3." msgstr "" #: systemv/cupstestppd.c:1726 msgid " WARN Non-Windows PPD files should use lines ending with only LF, not CR LF." msgstr "" #: systemv/cupstestppd.c:1359 #, c-format msgid "" " WARN Obsolete PPD version %.1f.\n" " REF: Page 42, section 5.2." msgstr "" #: systemv/cupstestppd.c:1390 msgid "" " WARN PCFileName longer than 8.3 in violation of PPD spec.\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:1398 msgid "" " WARN PCFileName should contain a unique filename.\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:1433 msgid "" " WARN Protocols contains PJL but JCL attributes are not set.\n" " REF: Pages 78-79, section 5.7." msgstr "" #: systemv/cupstestppd.c:1424 msgid "" " WARN Protocols contains both PJL and BCP; expected TBCP.\n" " REF: Pages 78-79, section 5.7." msgstr "" #: systemv/cupstestppd.c:1407 msgid "" " WARN ShortNickName required by PPD 4.3 spec.\n" " REF: Pages 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:3788 #, c-format msgid "" " %s \"%s %s\" conflicts with \"%s %s\"\n" " (constraint=\"%s %s %s %s\")." msgstr "" #: systemv/cupstestppd.c:2225 #, c-format msgid " %s %s %s does not exist." msgstr "" #: systemv/cupstestppd.c:3941 #, c-format msgid " %s %s file \"%s\" has the wrong capitalization." msgstr "" #: systemv/cupstestppd.c:2295 #, c-format msgid "" " %s Bad %s choice %s.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:3548 systemv/cupstestppd.c:3597 #: systemv/cupstestppd.c:3636 #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s, choice %s." msgstr "" #: systemv/cupstestppd.c:3502 #, c-format msgid " %s Bad UTF-8 \"%s\" translation string for option %s." msgstr "" #: systemv/cupstestppd.c:2366 systemv/cupstestppd.c:2388 #, c-format msgid " %s Bad cupsFilter value \"%s\"." msgstr "" #: systemv/cupstestppd.c:2484 systemv/cupstestppd.c:2506 #, c-format msgid " %s Bad cupsFilter2 value \"%s\"." msgstr "" #: systemv/cupstestppd.c:3005 #, c-format msgid " %s Bad cupsICCProfile %s." msgstr "" #: systemv/cupstestppd.c:2612 #, c-format msgid " %s Bad cupsPreFilter value \"%s\"." msgstr "" #: systemv/cupstestppd.c:1799 #, c-format msgid " %s Bad cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:3452 #, c-format msgid " %s Bad language \"%s\"." msgstr "" #: systemv/cupstestppd.c:2442 systemv/cupstestppd.c:2570 #: systemv/cupstestppd.c:2656 systemv/cupstestppd.c:2714 #: systemv/cupstestppd.c:2769 systemv/cupstestppd.c:2824 #: systemv/cupstestppd.c:2879 systemv/cupstestppd.c:2932 #: systemv/cupstestppd.c:3054 #, c-format msgid " %s Bad permissions on %s file \"%s\"." msgstr "" #: systemv/cupstestppd.c:2350 systemv/cupstestppd.c:2468 #: systemv/cupstestppd.c:2596 systemv/cupstestppd.c:2683 #: systemv/cupstestppd.c:2738 systemv/cupstestppd.c:2793 #: systemv/cupstestppd.c:2848 systemv/cupstestppd.c:2903 #, c-format msgid " %s Bad spelling of %s - should be %s." msgstr "" #: systemv/cupstestppd.c:2948 #, c-format msgid " %s Cannot provide both APScanAppPath and APScanAppBundleID." msgstr "" #: systemv/cupstestppd.c:2182 #, c-format msgid " %s Default choices conflicting." msgstr "" #: systemv/cupstestppd.c:1780 #, c-format msgid " %s Empty cupsUIConstraints %s" msgstr "" #: systemv/cupstestppd.c:3580 systemv/cupstestppd.c:3620 #, c-format msgid " %s Missing \"%s\" translation string for option %s, choice %s." msgstr "" #: systemv/cupstestppd.c:3488 #, c-format msgid " %s Missing \"%s\" translation string for option %s." msgstr "" #: systemv/cupstestppd.c:2427 systemv/cupstestppd.c:2555 #: systemv/cupstestppd.c:2641 systemv/cupstestppd.c:2699 #: systemv/cupstestppd.c:2754 systemv/cupstestppd.c:2809 #: systemv/cupstestppd.c:2864 systemv/cupstestppd.c:2916 #: systemv/cupstestppd.c:3039 #, c-format msgid " %s Missing %s file \"%s\"." msgstr "" #: systemv/cupstestppd.c:3162 #, c-format msgid "" " %s Missing REQUIRED PageRegion option.\n" " REF: Page 100, section 5.14." msgstr "" #: systemv/cupstestppd.c:3147 #, c-format msgid "" " %s Missing REQUIRED PageSize option.\n" " REF: Page 99, section 5.14." msgstr "" #: systemv/cupstestppd.c:1990 systemv/cupstestppd.c:2031 #, c-format msgid " %s Missing choice *%s %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #: systemv/cupstestppd.c:1885 #, c-format msgid " %s Missing choice *%s %s in cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:1817 #, c-format msgid " %s Missing cupsUIResolver %s" msgstr "" #: systemv/cupstestppd.c:1976 systemv/cupstestppd.c:2017 #, c-format msgid " %s Missing option %s in UIConstraints \"*%s %s *%s %s\"." msgstr "" #: systemv/cupstestppd.c:1869 #, c-format msgid " %s Missing option %s in cupsUIConstraints %s: \"%s\"" msgstr "" #: systemv/cupstestppd.c:3674 #, c-format msgid " %s No base translation \"%s\" is included in file." msgstr "" #: systemv/cupstestppd.c:2271 #, c-format msgid "" " %s REQUIRED %s does not define choice None.\n" " REF: Page 122, section 5.17" msgstr "" #: systemv/cupstestppd.c:3221 systemv/cupstestppd.c:3235 #, c-format msgid " %s Size \"%s\" defined for %s but not for %s." msgstr "" #: systemv/cupstestppd.c:3201 #, c-format msgid " %s Size \"%s\" has unexpected dimensions (%gx%g)." msgstr "" #: systemv/cupstestppd.c:3392 #, c-format msgid " %s Size \"%s\" should be \"%s\"." msgstr "" #: systemv/cupstestppd.c:3341 #, c-format msgid " %s Size \"%s\" should be the Adobe standard name \"%s\"." msgstr "" #: systemv/cupstestppd.c:3082 #, c-format msgid " %s cupsICCProfile %s hash value collides with %s." msgstr "" #: systemv/cupstestppd.c:1940 #, c-format msgid " %s cupsUIResolver %s causes a loop." msgstr "" #: systemv/cupstestppd.c:1922 #, c-format msgid " %s cupsUIResolver %s does not list at least two different options." msgstr "" #: systemv/cupstestppd.c:1145 #, c-format msgid "" " **FAIL** %s must be 1284DeviceID\n" " REF: Page 72, section 5.5" msgstr "" #: systemv/cupstestppd.c:557 #, c-format msgid "" " **FAIL** Bad Default%s %s\n" " REF: Page 40, section 4.5." msgstr "" #: systemv/cupstestppd.c:491 #, c-format msgid "" " **FAIL** Bad DefaultImageableArea %s\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:527 #, c-format msgid "" " **FAIL** Bad DefaultPaperDimension %s\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:600 #, c-format msgid "" " **FAIL** Bad FileVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:644 #, c-format msgid "" " **FAIL** Bad FormatVersion \"%s\"\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:1002 msgid "" " **FAIL** Bad JobPatchFile attribute in file\n" " REF: Page 24, section 3.4." msgstr "" #: systemv/cupstestppd.c:1190 #, c-format msgid " **FAIL** Bad LanguageEncoding %s - must be ISOLatin1." msgstr "" #: systemv/cupstestppd.c:1204 #, c-format msgid " **FAIL** Bad LanguageVersion %s - must be English." msgstr "" #: systemv/cupstestppd.c:720 systemv/cupstestppd.c:737 #, c-format msgid "" " **FAIL** Bad Manufacturer (should be \"%s\")\n" " REF: Page 211, table D.1." msgstr "" #: systemv/cupstestppd.c:777 #, c-format msgid "" " **FAIL** Bad ModelName - \"%c\" not allowed in string.\n" " REF: Pages 59-60, section 5.3." msgstr "" #: systemv/cupstestppd.c:933 msgid "" " **FAIL** Bad PSVersion - not \"(string) int\".\n" " REF: Pages 62-64, section 5.3." msgstr "" #: systemv/cupstestppd.c:894 msgid "" " **FAIL** Bad Product - not \"(string)\".\n" " REF: Page 62, section 5.3." msgstr "" #: systemv/cupstestppd.c:968 msgid "" " **FAIL** Bad ShortNickName - longer than 31 chars.\n" " REF: Pages 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:1126 #, c-format msgid "" " **FAIL** Bad option %s choice %s\n" " REF: Page 84, section 5.9" msgstr "" #: systemv/cupstestppd.c:3815 systemv/cupstestppd.c:3837 #, c-format msgid " **FAIL** Default option code cannot be interpreted: %s" msgstr "" #: systemv/cupstestppd.c:1263 #, c-format msgid " **FAIL** Default translation string for option %s choice %s contains 8-bit characters." msgstr "" #: systemv/cupstestppd.c:1236 #, c-format msgid " **FAIL** Default translation string for option %s contains 8-bit characters." msgstr "" #: systemv/cupstestppd.c:2078 #, c-format msgid " **FAIL** Group names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:2123 #, c-format msgid " **FAIL** Multiple occurrences of option %s choice name %s." msgstr "" #: systemv/cupstestppd.c:2140 #, c-format msgid " **FAIL** Option %s choice names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:2100 #, c-format msgid " **FAIL** Option names %s and %s differ only by case." msgstr "" #: systemv/cupstestppd.c:577 #, c-format msgid "" " **FAIL** REQUIRED Default%s\n" " REF: Page 40, section 4.5." msgstr "" #: systemv/cupstestppd.c:476 msgid "" " **FAIL** REQUIRED DefaultImageableArea\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:512 msgid "" " **FAIL** REQUIRED DefaultPaperDimension\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:618 msgid "" " **FAIL** REQUIRED FileVersion\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:662 msgid "" " **FAIL** REQUIRED FormatVersion\n" " REF: Page 56, section 5.3." msgstr "" #: systemv/cupstestppd.c:1053 #, c-format msgid "" " **FAIL** REQUIRED ImageableArea for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 102, section 5.15." msgstr "" #: systemv/cupstestppd.c:682 msgid "" " **FAIL** REQUIRED LanguageEncoding\n" " REF: Pages 56-57, section 5.3." msgstr "" #: systemv/cupstestppd.c:702 msgid "" " **FAIL** REQUIRED LanguageVersion\n" " REF: Pages 57-58, section 5.3." msgstr "" #: systemv/cupstestppd.c:756 msgid "" " **FAIL** REQUIRED Manufacturer\n" " REF: Pages 58-59, section 5.3." msgstr "" #: systemv/cupstestppd.c:796 msgid "" " **FAIL** REQUIRED ModelName\n" " REF: Pages 59-60, section 5.3." msgstr "" #: systemv/cupstestppd.c:816 msgid "" " **FAIL** REQUIRED NickName\n" " REF: Page 60, section 5.3." msgstr "" #: systemv/cupstestppd.c:876 msgid "" " **FAIL** REQUIRED PCFileName\n" " REF: Pages 61-62, section 5.3." msgstr "" #: systemv/cupstestppd.c:951 msgid "" " **FAIL** REQUIRED PSVersion\n" " REF: Pages 62-64, section 5.3." msgstr "" #: systemv/cupstestppd.c:856 msgid "" " **FAIL** REQUIRED PageRegion\n" " REF: Page 100, section 5.14." msgstr "" #: systemv/cupstestppd.c:1022 msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Page 41, section 5.\n" " REF: Page 99, section 5.14." msgstr "" #: systemv/cupstestppd.c:836 msgid "" " **FAIL** REQUIRED PageSize\n" " REF: Pages 99-100, section 5.14." msgstr "" #: systemv/cupstestppd.c:1075 #, c-format msgid "" " **FAIL** REQUIRED PaperDimension for PageSize %s\n" " REF: Page 41, section 5.\n" " REF: Page 103, section 5.15." msgstr "" #: systemv/cupstestppd.c:911 msgid "" " **FAIL** REQUIRED Product\n" " REF: Page 62, section 5.3." msgstr "" #: systemv/cupstestppd.c:986 msgid "" " **FAIL** REQUIRED ShortNickName\n" " REF: Page 64-65, section 5.3." msgstr "" #: systemv/cupstestppd.c:311 systemv/cupstestppd.c:330 #: systemv/cupstestppd.c:342 #, c-format msgid " **FAIL** Unable to open PPD file - %s on line %d." msgstr "" #: systemv/cupstestppd.c:1475 #, c-format msgid " %d ERRORS FOUND" msgstr "" #: systemv/cupstestppd.c:1477 msgid " NO ERRORS FOUND" msgstr "" #: ppdc/ppdc.cxx:444 msgid " --cr End lines with CR (Mac OS 9)." msgstr "" #: ppdc/ppdc.cxx:446 msgid " --crlf End lines with CR + LF (Windows)." msgstr "" #: ppdc/ppdc.cxx:448 msgid " --lf End lines with LF (UNIX/Linux/macOS)." msgstr "" #: scheduler/cupsfilter.c:1564 msgid " --list-filters List filters that will be used." msgstr "" #: scheduler/cupsfilter.c:1565 msgid " -D Remove the input file when finished." msgstr "" #: ppdc/ppdc.cxx:427 ppdc/ppdhtml.cxx:174 ppdc/ppdpo.cxx:244 msgid " -D name=value Set named variable to value." msgstr "" #: ppdc/ppdc.cxx:429 ppdc/ppdhtml.cxx:176 ppdc/ppdi.cxx:120 ppdc/ppdpo.cxx:246 msgid " -I include-dir Add include directory to search path." msgstr "" #: scheduler/cupsfilter.c:1566 msgid " -P filename.ppd Set PPD file." msgstr "" #: scheduler/cupsfilter.c:1567 msgid " -U username Specify username." msgstr "" #: ppdc/ppdc.cxx:431 msgid " -c catalog.po Load the specified message catalog." msgstr "" #: scheduler/cupsfilter.c:1568 msgid " -c cups-files.conf Set cups-files.conf file to use." msgstr "" #: ppdc/ppdc.cxx:433 msgid " -d output-dir Specify the output directory." msgstr "" #: scheduler/cupsfilter.c:1569 msgid " -d printer Use the named printer." msgstr "" #: scheduler/cupsfilter.c:1570 msgid " -e Use every filter from the PPD file." msgstr "" #: scheduler/cupsfilter.c:1571 msgid " -i mime/type Set input MIME type (otherwise auto-typed)." msgstr "" #: scheduler/cupsfilter.c:1572 msgid " -j job-id[,N] Filter file N from the specified job (default is file 1)." msgstr "" #: ppdc/ppdc.cxx:435 msgid " -l lang[,lang,...] Specify the output language(s) (locale)." msgstr "" #: ppdc/ppdc.cxx:437 msgid " -m Use the ModelName value as the filename." msgstr "" #: scheduler/cupsfilter.c:1573 msgid " -m mime/type Set output MIME type (otherwise application/pdf)." msgstr "" #: scheduler/cupsfilter.c:1574 msgid " -n copies Set number of copies." msgstr "" #: ppdc/ppdi.cxx:122 msgid " -o filename.drv Set driver information file (otherwise ppdi.drv)." msgstr "" #: ppdc/ppdmerge.cxx:357 msgid " -o filename.ppd[.gz] Set output file (otherwise stdout)." msgstr "" #: scheduler/cupsfilter.c:1575 msgid " -o name=value Set option(s)." msgstr "" #: scheduler/cupsfilter.c:1576 msgid " -p filename.ppd Set PPD file." msgstr "" #: ppdc/ppdc.cxx:439 msgid " -t Test PPDs instead of generating them." msgstr "" #: scheduler/cupsfilter.c:1577 msgid " -t title Set title." msgstr "" #: scheduler/cupsfilter.c:1578 msgid " -u Remove the PPD file when finished." msgstr "" #: ppdc/ppdc.cxx:441 ppdc/ppdpo.cxx:248 msgid " -v Be verbose." msgstr "" #: ppdc/ppdc.cxx:442 msgid " -z Compress PPD files using GNU zip." msgstr "" #: systemv/cupstestppd.c:309 systemv/cupstestppd.c:328 #: systemv/cupstestppd.c:340 systemv/cupstestppd.c:473 #: systemv/cupstestppd.c:488 systemv/cupstestppd.c:509 #: systemv/cupstestppd.c:524 systemv/cupstestppd.c:554 #: systemv/cupstestppd.c:574 systemv/cupstestppd.c:597 #: systemv/cupstestppd.c:615 systemv/cupstestppd.c:641 #: systemv/cupstestppd.c:659 systemv/cupstestppd.c:679 #: systemv/cupstestppd.c:699 systemv/cupstestppd.c:717 #: systemv/cupstestppd.c:734 systemv/cupstestppd.c:753 #: systemv/cupstestppd.c:774 systemv/cupstestppd.c:793 #: systemv/cupstestppd.c:813 systemv/cupstestppd.c:833 #: systemv/cupstestppd.c:853 systemv/cupstestppd.c:873 #: systemv/cupstestppd.c:891 systemv/cupstestppd.c:908 #: systemv/cupstestppd.c:930 systemv/cupstestppd.c:948 #: systemv/cupstestppd.c:965 systemv/cupstestppd.c:983 #: systemv/cupstestppd.c:999 systemv/cupstestppd.c:1019 #: systemv/cupstestppd.c:1050 systemv/cupstestppd.c:1072 #: systemv/cupstestppd.c:1123 systemv/cupstestppd.c:1142 #: systemv/cupstestppd.c:1186 systemv/cupstestppd.c:1200 #: systemv/cupstestppd.c:1232 systemv/cupstestppd.c:1259 #: systemv/cupstestppd.c:1777 systemv/cupstestppd.c:1796 #: systemv/cupstestppd.c:1814 systemv/cupstestppd.c:1866 #: systemv/cupstestppd.c:1882 systemv/cupstestppd.c:1919 #: systemv/cupstestppd.c:1937 systemv/cupstestppd.c:1973 #: systemv/cupstestppd.c:1987 systemv/cupstestppd.c:2014 #: systemv/cupstestppd.c:2028 systemv/cupstestppd.c:2074 #: systemv/cupstestppd.c:2096 systemv/cupstestppd.c:2119 #: systemv/cupstestppd.c:2136 systemv/cupstestppd.c:2178 #: systemv/cupstestppd.c:2221 systemv/cupstestppd.c:2268 #: systemv/cupstestppd.c:2292 systemv/cupstestppd.c:2346 #: systemv/cupstestppd.c:2362 systemv/cupstestppd.c:2384 #: systemv/cupstestppd.c:2424 systemv/cupstestppd.c:2438 #: systemv/cupstestppd.c:2464 systemv/cupstestppd.c:2480 #: systemv/cupstestppd.c:2502 systemv/cupstestppd.c:2552 #: systemv/cupstestppd.c:2566 systemv/cupstestppd.c:2592 #: systemv/cupstestppd.c:2608 systemv/cupstestppd.c:2638 #: systemv/cupstestppd.c:2652 systemv/cupstestppd.c:2679 #: systemv/cupstestppd.c:2696 systemv/cupstestppd.c:2710 #: systemv/cupstestppd.c:2734 systemv/cupstestppd.c:2751 #: systemv/cupstestppd.c:2765 systemv/cupstestppd.c:2789 #: systemv/cupstestppd.c:2806 systemv/cupstestppd.c:2820 #: systemv/cupstestppd.c:2844 systemv/cupstestppd.c:2861 #: systemv/cupstestppd.c:2875 systemv/cupstestppd.c:2899 #: systemv/cupstestppd.c:2913 systemv/cupstestppd.c:2928 #: systemv/cupstestppd.c:2945 systemv/cupstestppd.c:3001 #: systemv/cupstestppd.c:3036 systemv/cupstestppd.c:3050 #: systemv/cupstestppd.c:3078 systemv/cupstestppd.c:3143 #: systemv/cupstestppd.c:3158 systemv/cupstestppd.c:3197 #: systemv/cupstestppd.c:3217 systemv/cupstestppd.c:3231 #: systemv/cupstestppd.c:3448 systemv/cupstestppd.c:3484 #: systemv/cupstestppd.c:3498 systemv/cupstestppd.c:3544 #: systemv/cupstestppd.c:3576 systemv/cupstestppd.c:3593 #: systemv/cupstestppd.c:3616 systemv/cupstestppd.c:3632 #: systemv/cupstestppd.c:3670 systemv/cupstestppd.c:3811 #: systemv/cupstestppd.c:3833 systemv/cupstestppd.c:3937 msgid " FAIL" msgstr "" #: systemv/cupstestppd.c:1283 msgid " PASS" msgstr "" #: tools/ippfind.c:2817 msgid "! expression Unary NOT of expression" msgstr "" #: cups/ipp.c:5047 #, c-format msgid "\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)." msgstr "" #: cups/ipp.c:5053 #, c-format msgid "\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)." msgstr "" #: cups/ipp.c:4755 #, c-format msgid "\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:4749 #, c-format msgid "\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:4770 #, c-format msgid "\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)." msgstr "" #: cups/ipp.c:5098 #, c-format msgid "\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)." msgstr "" #: cups/ipp.c:5104 #, c-format msgid "\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)." msgstr "" #: cups/ipp.c:4847 #, c-format msgid "\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4853 #, c-format msgid "\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4841 #, c-format msgid "\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4811 #, c-format msgid "\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4835 #, c-format msgid "\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4817 #, c-format msgid "\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4823 #, c-format msgid "\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4805 #, c-format msgid "\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4829 #, c-format msgid "\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)." msgstr "" #: cups/ipp.c:4781 #, c-format msgid "\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)." msgstr "" #: cups/ipp.c:5034 #, c-format msgid "\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:5028 #, c-format msgid "\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section 5.1.4)." msgstr "" #: cups/ipp.c:5189 #, c-format msgid "\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section 5.1.10)." msgstr "" #: cups/ipp.c:5196 #, c-format msgid "\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section 5.1.10)." msgstr "" #: cups/ipp.c:5003 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)." msgstr "" #: cups/ipp.c:4998 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)." msgstr "" #: cups/ipp.c:5010 #, c-format msgid "\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)." msgstr "" #: cups/ipp.c:5144 #, c-format msgid "\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section 5.1.9)." msgstr "" #: cups/ipp.c:5151 #, c-format msgid "\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section 5.1.9)." msgstr "" #: cups/ipp.c:4792 #, c-format msgid "\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)." msgstr "" #: cups/ipp.c:4887 #, c-format msgid "\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 section 5.1.14)." msgstr "" #: cups/ipp.c:4876 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4864 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be positive (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4870 #, c-format msgid "\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC 8011 section 5.1.16)." msgstr "" #: cups/ipp.c:4948 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)." msgstr "" #: cups/ipp.c:4943 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)." msgstr "" #: cups/ipp.c:4955 #, c-format msgid "\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)." msgstr "" #: cups/ipp.c:5074 #, c-format msgid "\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)." msgstr "" #: cups/ipp.c:5080 #, c-format msgid "\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)." msgstr "" #: scheduler/ipp.c:366 msgid "\"requesting-user-name\" attribute in wrong group." msgstr "" #: scheduler/ipp.c:372 scheduler/ipp.c:387 msgid "\"requesting-user-name\" attribute with wrong syntax." msgstr "" #: berkeley/lpq.c:539 #, c-format msgid "%-7s %-7.7s %-7d %-31.31s %.0f bytes" msgstr "" #: cups/dest-localization.c:156 #, c-format msgid "%d x %d mm" msgstr "" #: cups/dest-localization.c:148 #, c-format msgid "%g x %g \"" msgstr "" #: cups/dest-localization.c:189 cups/dest-localization.c:196 #, c-format msgid "%s (%s)" msgstr "" #: cups/dest-localization.c:203 #, c-format msgid "%s (%s, %s)" msgstr "" #: cups/dest-localization.c:180 #, c-format msgid "%s (Borderless)" msgstr "" #: cups/dest-localization.c:187 cups/dest-localization.c:194 #, c-format msgid "%s (Borderless, %s)" msgstr "" #: cups/dest-localization.c:201 #, c-format msgid "%s (Borderless, %s, %s)" msgstr "" #: systemv/lpstat.c:807 #, c-format msgid "%s accepting requests since %s" msgstr "" #: scheduler/ipp.c:10331 #, c-format msgid "%s cannot be changed." msgstr "" #: berkeley/lpc.c:175 #, c-format msgid "%s is not implemented by the CUPS version of lpc." msgstr "" #: berkeley/lpq.c:624 #, c-format msgid "%s is not ready" msgstr "" #: berkeley/lpq.c:617 #, c-format msgid "%s is ready" msgstr "" #: berkeley/lpq.c:620 #, c-format msgid "%s is ready and printing" msgstr "" #: filter/rastertoepson.c:999 filter/rastertohp.c:668 #: filter/rastertolabel.c:1121 #, c-format msgid "%s job-id user title copies options [file]" msgstr "" #: systemv/lpstat.c:811 #, c-format msgid "%s not accepting requests since %s -" msgstr "" #: scheduler/ipp.c:609 #, c-format msgid "%s not supported." msgstr "" #: systemv/lpstat.c:822 #, c-format msgid "%s/%s accepting requests since %s" msgstr "" #: systemv/lpstat.c:827 #, c-format msgid "%s/%s not accepting requests since %s -" msgstr "" #: berkeley/lpq.c:532 #, c-format msgid "%s: %-33.33s [job %d localhost]" msgstr "" #. TRANSLATORS: Message is "subject: error" #: cups/langprintf.c:70 scheduler/cupsfilter.c:765 systemv/lpadmin.c:796 #: systemv/lpadmin.c:845 systemv/lpadmin.c:893 systemv/lpadmin.c:946 #: systemv/lpadmin.c:1044 systemv/lpadmin.c:1096 systemv/lpadmin.c:1137 #: systemv/lpadmin.c:1151 systemv/lpadmin.c:1600 #, c-format msgid "%s: %s" msgstr "" #: systemv/cancel.c:311 systemv/cancel.c:375 #, c-format msgid "%s: %s failed: %s" msgstr "" #: systemv/lpadmin.c:1210 #, c-format msgid "%s: Bad printer URI \"%s\"." msgstr "" #: tools/ippfind.c:770 tools/ipptool.c:415 #, c-format msgid "%s: Bad version %s for \"-V\"." msgstr "" #: systemv/cupsaccept.c:68 #, c-format msgid "%s: Don't know what to do." msgstr "" #: berkeley/lpr.c:360 systemv/lp.c:592 #, c-format msgid "%s: Error - %s" msgstr "" #: berkeley/lpq.c:234 #, c-format msgid "%s: Error - %s environment variable names non-existent destination \"%s\"." msgstr "" #: berkeley/lpr.c:241 systemv/lp.c:168 #, c-format msgid "%s: Error - The printer or class does not exist." msgstr "" #: berkeley/lpq.c:139 berkeley/lpq.c:212 berkeley/lpr.c:235 berkeley/lpr.c:351 #: systemv/lp.c:161 systemv/lp.c:583 systemv/lp.c:680 systemv/lp.c:730 #: systemv/lpstat.c:191 systemv/lpstat.c:236 systemv/lpstat.c:369 #: systemv/lpstat.c:396 systemv/lpstat.c:418 systemv/lpstat.c:478 #: systemv/lpstat.c:544 systemv/lpstat.c:605 systemv/lpstat.c:728 #: systemv/lpstat.c:908 systemv/lpstat.c:1165 systemv/lpstat.c:1357 #: systemv/lpstat.c:1594 #, c-format msgid "%s: Error - add '/version=1.1' to server name." msgstr "" #: systemv/lp.c:244 #, c-format msgid "%s: Error - bad job ID." msgstr "" #: systemv/lp.c:233 #, c-format msgid "%s: Error - cannot print files and alter jobs simultaneously." msgstr "" #: systemv/lp.c:520 #, c-format msgid "%s: Error - cannot print from stdin if files or a job ID are provided." msgstr "" #: berkeley/lpr.c:266 systemv/lp.c:286 #, c-format msgid "%s: Error - copies must be 1 or more." msgstr "" #: scheduler/cupsfilter.c:368 #, c-format msgid "%s: Error - expected \"username\" after \"-U\" option." msgstr "" #: scheduler/cupsfilter.c:337 #, c-format msgid "%s: Error - expected PPD file after \"-%c\" option." msgstr "" #: systemv/lp.c:472 #, c-format msgid "%s: Error - expected character set after \"-S\" option." msgstr "" #: systemv/lp.c:491 #, c-format msgid "%s: Error - expected content type after \"-T\" option." msgstr "" #: berkeley/lpr.c:257 #, c-format msgid "%s: Error - expected copies after \"-#\" option." msgstr "" #: systemv/lp.c:277 #, c-format msgid "%s: Error - expected copies after \"-n\" option." msgstr "" #: scheduler/cupsfilter.c:287 #, c-format msgid "%s: Error - expected destination MIME type after \"-m\" option." msgstr "" #: berkeley/lpr.c:213 #, c-format msgid "%s: Error - expected destination after \"-P\" option." msgstr "" #: systemv/lp.c:137 #, c-format msgid "%s: Error - expected destination after \"-d\" option." msgstr "" #: scheduler/cupsfilter.c:204 #, c-format msgid "%s: Error - expected filename after \"-c\" option." msgstr "" #: systemv/lp.c:184 #, c-format msgid "%s: Error - expected form after \"-f\" option." msgstr "" #: systemv/lp.c:408 #, c-format msgid "%s: Error - expected hold name after \"-H\" option." msgstr "" #: berkeley/lpr.c:110 #, c-format msgid "%s: Error - expected hostname after \"-H\" option." msgstr "" #: berkeley/lpq.c:173 berkeley/lprm.c:131 systemv/cancel.c:131 #: systemv/cupsaccept.c:134 systemv/lp.c:204 systemv/lpstat.c:305 #, c-format msgid "%s: Error - expected hostname after \"-h\" option." msgstr "" #: scheduler/cupsfilter.c:238 #, c-format msgid "%s: Error - expected input file after \"-f\" option." msgstr "" #: scheduler/cupsfilter.c:270 #, c-format msgid "%s: Error - expected job-id after \"-j\" option." msgstr "" #: systemv/lp.c:388 #, c-format msgid "%s: Error - expected mode list after \"-y\" option." msgstr "" #: berkeley/lpr.c:286 #, c-format msgid "%s: Error - expected name after \"-%c\" option." msgstr "" #: scheduler/cupsfilter.c:188 #, c-format msgid "%s: Error - expected name=value after \"-a\" option." msgstr "" #: scheduler/cupsfilter.c:323 #, c-format msgid "%s: Error - expected name=value after \"-o\" option." msgstr "" #: scheduler/cupsfilter.c:300 #, c-format msgid "%s: Error - expected number of copies after \"-n\" option." msgstr "" #: berkeley/lpr.c:162 systemv/lp.c:305 #, c-format msgid "%s: Error - expected option=value after \"-o\" option." msgstr "" #: systemv/lp.c:451 #, c-format msgid "%s: Error - expected page list after \"-P\" option." msgstr "" #: scheduler/cupsfilter.c:217 #, c-format msgid "%s: Error - expected printer name after \"-d\" option." msgstr "" #: systemv/lp.c:326 #, c-format msgid "%s: Error - expected priority after \"-%c\" option." msgstr "" #: systemv/cupsaccept.c:153 #, c-format msgid "%s: Error - expected reason text after \"-r\" option." msgstr "" #: scheduler/cupsfilter.c:254 #, c-format msgid "%s: Error - expected source MIME type after \"-i\" option." msgstr "" #: scheduler/cupsfilter.c:351 #, c-format msgid "%s: Error - expected title after \"-%c\" option." msgstr "" #: systemv/lp.c:369 #, c-format msgid "%s: Error - expected title after \"-t\" option." msgstr "" #: berkeley/lpq.c:102 berkeley/lpr.c:90 berkeley/lprm.c:111 #: systemv/cancel.c:101 systemv/cupsaccept.c:111 systemv/lp.c:114 #: systemv/lpadmin.c:440 systemv/lpstat.c:130 #, c-format msgid "%s: Error - expected username after \"-U\" option." msgstr "" #: systemv/cancel.c:153 #, c-format msgid "%s: Error - expected username after \"-u\" option." msgstr "" #: berkeley/lpr.c:135 #, c-format msgid "%s: Error - expected value after \"-%c\" option." msgstr "" #: systemv/lpstat.c:150 systemv/lpstat.c:159 #, c-format msgid "%s: Error - need \"completed\", \"not-completed\", or \"all\" after \"-W\" option." msgstr "" #: berkeley/lpq.c:239 #, c-format msgid "%s: Error - no default destination available." msgstr "" #: systemv/lp.c:346 #, c-format msgid "%s: Error - priority must be between 1 and 100." msgstr "" #: berkeley/lpr.c:362 systemv/lp.c:594 #, c-format msgid "%s: Error - scheduler not responding." msgstr "" #: berkeley/lpr.c:327 systemv/lp.c:552 #, c-format msgid "%s: Error - too many files - \"%s\"." msgstr "" #: berkeley/lpr.c:309 systemv/lp.c:535 #, c-format msgid "%s: Error - unable to access \"%s\" - %s" msgstr "" #: berkeley/lpr.c:404 systemv/lp.c:624 #, c-format msgid "%s: Error - unable to queue from stdin - %s." msgstr "" #: berkeley/lprm.c:93 berkeley/lprm.c:180 systemv/cancel.c:228 #, c-format msgid "%s: Error - unknown destination \"%s\"." msgstr "" #: berkeley/lpq.c:141 #, c-format msgid "%s: Error - unknown destination \"%s/%s\"." msgstr "" #: berkeley/lpr.c:295 berkeley/lprm.c:146 systemv/cancel.c:169 #: systemv/cupsaccept.c:162 systemv/lp.c:510 systemv/lpstat.c:488 #, c-format msgid "%s: Error - unknown option \"%c\"." msgstr "" #: systemv/lp.c:502 #, c-format msgid "%s: Error - unknown option \"%s\"." msgstr "" #: scheduler/cupsfilter.c:374 #, c-format msgid "%s: Error - unknown option \"-%c\"." msgstr "" #: systemv/lp.c:224 #, c-format msgid "%s: Expected job ID after \"-i\" option." msgstr "" #: systemv/lpstat.c:548 systemv/lpstat.c:588 #, c-format msgid "%s: Invalid destination name in list \"%s\"." msgstr "" #: scheduler/cupsfilter.c:618 #, c-format msgid "%s: Invalid filter string \"%s\"." msgstr "" #: tools/ipptool.c:337 #, c-format msgid "%s: Missing filename for \"-P\"." msgstr "" #: tools/ippfind.c:742 tools/ipptool.c:374 #, c-format msgid "%s: Missing timeout for \"-T\"." msgstr "" #: tools/ippfind.c:755 tools/ipptool.c:388 #, c-format msgid "%s: Missing version for \"-V\"." msgstr "" #: systemv/lp.c:428 #, c-format msgid "%s: Need job ID (\"-i jobid\") before \"-H restart\"." msgstr "" #: scheduler/cupsfilter.c:490 #, c-format msgid "%s: No filter to convert from %s/%s to %s/%s." msgstr "" #: systemv/cupsaccept.c:196 #, c-format msgid "%s: Operation failed: %s" msgstr "" #: berkeley/lpq.c:87 berkeley/lpr.c:75 berkeley/lprm.c:72 systemv/cancel.c:86 #: systemv/cupsaccept.c:96 systemv/lp.c:99 systemv/lpadmin.c:250 #: systemv/lpinfo.c:193 systemv/lpmove.c:70 systemv/lpstat.c:92 #: tools/ipptool.c:319 tools/ipptool.c:363 #, c-format msgid "%s: Sorry, no encryption support." msgstr "" #: systemv/lpadmin.c:1217 #, c-format msgid "%s: Unable to connect to \"%s:%d\": %s" msgstr "" #: berkeley/lpq.c:293 scheduler/cupsfilter.c:1360 systemv/cancel.c:251 #, c-format msgid "%s: Unable to connect to server." msgstr "" #: systemv/cancel.c:335 #, c-format msgid "%s: Unable to contact server." msgstr "" #: systemv/lpadmin.c:1247 #, c-format msgid "%s: Unable to create PPD file: %s" msgstr "" #: scheduler/cupsfilter.c:455 #, c-format msgid "%s: Unable to determine MIME type of \"%s\"." msgstr "" #: tools/ipptool.c:280 tools/ipptool.c:346 #, c-format msgid "%s: Unable to open \"%s\": %s" msgstr "" #: ppdc/ppdmerge.cxx:86 #, c-format msgid "%s: Unable to open %s: %s" msgstr "" #: scheduler/cupsfilter.c:713 ppdc/ppdmerge.cxx:102 #, c-format msgid "%s: Unable to open PPD file: %s on line %d." msgstr "" #: systemv/lpadmin.c:1232 #, c-format msgid "%s: Unable to query printer: %s" msgstr "" #: scheduler/cupsfilter.c:424 #, c-format msgid "%s: Unable to read MIME database from \"%s\" or \"%s\"." msgstr "" #: systemv/lpadmin.c:1201 #, c-format msgid "%s: Unable to resolve \"%s\"." msgstr "" #: systemv/lpinfo.c:239 #, c-format msgid "%s: Unknown argument \"%s\"." msgstr "" #: berkeley/lpq.c:143 systemv/lpstat.c:609 #, c-format msgid "%s: Unknown destination \"%s\"." msgstr "" #: scheduler/cupsfilter.c:467 #, c-format msgid "%s: Unknown destination MIME type %s/%s." msgstr "" #: scheduler/cupsfilter.c:1560 systemv/lpinfo.c:232 systemv/lpmove.c:95 #, c-format msgid "%s: Unknown option \"%c\"." msgstr "" #: tools/ippeveprinter.c:434 tools/ippeveprinter.c:632 tools/ippfind.c:629 #, c-format msgid "%s: Unknown option \"%s\"." msgstr "" #: tools/ippeveprinter.c:621 tools/ippfind.c:921 tools/ipptool.c:609 #, c-format msgid "%s: Unknown option \"-%c\"." msgstr "" #: scheduler/cupsfilter.c:447 #, c-format msgid "%s: Unknown source MIME type %s/%s." msgstr "" #: berkeley/lpr.c:148 #, c-format msgid "%s: Warning - \"%c\" format modifier not supported - output may not be correct." msgstr "" #: systemv/lp.c:477 #, c-format msgid "%s: Warning - character set option ignored." msgstr "" #: systemv/lp.c:496 #, c-format msgid "%s: Warning - content type option ignored." msgstr "" #: systemv/lp.c:189 #, c-format msgid "%s: Warning - form option ignored." msgstr "" #: systemv/lp.c:393 #, c-format msgid "%s: Warning - mode option ignored." msgstr "" #: tools/ippfind.c:2816 msgid "( expressions ) Group expressions" msgstr "" #: berkeley/lprm.c:234 msgid "- Cancel all jobs" msgstr "" #: berkeley/lpr.c:438 msgid "-# num-copies Specify the number of copies to print" msgstr "" #: systemv/cupsctl.c:236 msgid "--[no-]debug-logging Turn debug logging on/off" msgstr "" #: systemv/cupsctl.c:237 msgid "--[no-]remote-admin Turn remote administration on/off" msgstr "" #: systemv/cupsctl.c:238 msgid "--[no-]remote-any Allow/prevent access from the Internet" msgstr "" #: systemv/cupsctl.c:239 msgid "--[no-]share-printers Turn printer sharing on/off" msgstr "" #: systemv/cupsctl.c:240 msgid "--[no-]user-cancel-any Allow/prevent users to cancel any job" msgstr "" #: systemv/lpinfo.c:505 msgid "--device-id device-id Show models matching the given IEEE 1284 device ID" msgstr "" #: tools/ippfind.c:2798 msgid "--domain regex Match domain to regular expression" msgstr "" #: systemv/lpinfo.c:506 msgid "" "--exclude-schemes scheme-list\n" " Exclude the specified URI schemes" msgstr "" #: tools/ippfind.c:2799 msgid "" "--exec utility [argument ...] ;\n" " Execute program if true" msgstr "" #: tools/ippfind.c:2819 msgid "--false Always false" msgstr "" #: tools/ippeveprinter.c:8345 msgid "--help Show program help" msgstr "" #: systemv/cupsaccept.c:250 msgid "--hold Hold new jobs" msgstr "" #: tools/ippfind.c:2801 msgid "--host regex Match hostname to regular expression" msgstr "" #: systemv/lpinfo.c:508 msgid "" "--include-schemes scheme-list\n" " Include only the specified URI schemes" msgstr "" #: tools/ipptool.c:4338 msgid "--ippserver filename Produce ippserver attribute file" msgstr "" #: systemv/lpinfo.c:510 msgid "--language locale Show models matching the given locale" msgstr "" #: tools/ippfind.c:2802 msgid "--literal-name name Match service name to literal name value" msgstr "" #: tools/ippfind.c:2803 msgid "--local True if service is local" msgstr "" #: tools/ippfind.c:2804 msgid "--ls List attributes" msgstr "" #: systemv/lpinfo.c:511 msgid "--make-and-model name Show models matching the given make and model name" msgstr "" #: tools/ippfind.c:2805 msgid "--name regex Match service name to regular expression" msgstr "" #: tools/ippeveprinter.c:8346 msgid "--no-web-forms Disable web forms for media and supplies" msgstr "" #: tools/ippfind.c:2818 msgid "--not expression Unary NOT of expression" msgstr "" #: tools/ippeveprinter.c:8347 msgid "--pam-service service Use the named PAM service" msgstr "" #: tools/ippfind.c:2806 msgid "--path regex Match resource path to regular expression" msgstr "" #: tools/ippfind.c:2807 msgid "--port number[-number] Match port to number or range" msgstr "" #: tools/ippfind.c:2808 msgid "--print Print URI if true" msgstr "" #: tools/ippfind.c:2809 msgid "--print-name Print service name if true" msgstr "" #: systemv/lpinfo.c:512 msgid "--product name Show models matching the given PostScript product" msgstr "" #: tools/ippfind.c:2810 msgid "--quiet Quietly report match via exit code" msgstr "" #: systemv/cupsaccept.c:252 msgid "--release Release previously held jobs" msgstr "" #: tools/ippfind.c:2811 msgid "--remote True if service is remote" msgstr "" #: tools/ipptool.c:4339 msgid "" "--stop-after-include-error\n" " Stop tests after a failed INCLUDE" msgstr "" #: systemv/lpinfo.c:513 msgid "--timeout seconds Specify the maximum number of seconds to discover devices" msgstr "" #: tools/ippfind.c:2820 msgid "--true Always true" msgstr "" #: tools/ippfind.c:2812 msgid "--txt key True if the TXT record contains the key" msgstr "" #: tools/ippfind.c:2813 msgid "--txt-* regex Match TXT record key to regular expression" msgstr "" #: tools/ippfind.c:2814 msgid "--uri regex Match URI to regular expression" msgstr "" #: tools/ippeveprinter.c:8348 tools/ippfind.c:2782 msgid "--version Show program version" msgstr "" #: tools/ipptool.c:4341 msgid "--version Show version" msgstr "" #: ppdc/sample.c:315 msgid "-1" msgstr "" #: ppdc/sample.c:306 msgid "-10" msgstr "" #: ppdc/sample.c:398 msgid "-100" msgstr "" #: ppdc/sample.c:397 msgid "-105" msgstr "" #: ppdc/sample.c:305 msgid "-11" msgstr "" #: ppdc/sample.c:396 msgid "-110" msgstr "" #: ppdc/sample.c:395 msgid "-115" msgstr "" #: ppdc/sample.c:304 msgid "-12" msgstr "" #: ppdc/sample.c:394 msgid "-120" msgstr "" #: ppdc/sample.c:303 msgid "-13" msgstr "" #: ppdc/sample.c:302 msgid "-14" msgstr "" #: ppdc/sample.c:301 msgid "-15" msgstr "" #: ppdc/sample.c:314 msgid "-2" msgstr "" #: tools/ippeveprinter.c:8349 msgid "-2 Set 2-sided printing support (default=1-sided)" msgstr "" #: ppdc/sample.c:414 msgid "-20" msgstr "" #: ppdc/sample.c:413 msgid "-25" msgstr "" #: ppdc/sample.c:313 msgid "-3" msgstr "" #: ppdc/sample.c:412 msgid "-30" msgstr "" #: ppdc/sample.c:411 msgid "-35" msgstr "" #: ppdc/sample.c:312 msgid "-4" msgstr "" #: tools/ippfind.c:2778 tools/ipptool.c:4342 msgid "-4 Connect using IPv4" msgstr "" #: ppdc/sample.c:410 msgid "-40" msgstr "" #: ppdc/sample.c:409 msgid "-45" msgstr "" #: ppdc/sample.c:311 msgid "-5" msgstr "" #: ppdc/sample.c:408 msgid "-50" msgstr "" #: ppdc/sample.c:407 msgid "-55" msgstr "" #: ppdc/sample.c:310 msgid "-6" msgstr "" #: tools/ippfind.c:2779 tools/ipptool.c:4343 msgid "-6 Connect using IPv6" msgstr "" #: ppdc/sample.c:406 msgid "-60" msgstr "" #: ppdc/sample.c:405 msgid "-65" msgstr "" #: ppdc/sample.c:309 msgid "-7" msgstr "" #: ppdc/sample.c:404 msgid "-70" msgstr "" #: ppdc/sample.c:403 msgid "-75" msgstr "" #: ppdc/sample.c:308 msgid "-8" msgstr "" #: ppdc/sample.c:402 msgid "-80" msgstr "" #: ppdc/sample.c:401 msgid "-85" msgstr "" #: ppdc/sample.c:307 msgid "-9" msgstr "" #: ppdc/sample.c:400 msgid "-90" msgstr "" #: ppdc/sample.c:399 msgid "-95" msgstr "" #: tools/ippeveprinter.c:8350 msgid "-A Enable authentication" msgstr "" #: tools/ipptool.c:4344 msgid "-C Send requests using chunking (default)" msgstr "" #: systemv/lpadmin.c:1624 msgid "-D description Specify the textual description of the printer" msgstr "" #: tools/ippeveprinter.c:8351 msgid "-D device-uri Set the device URI for the printer" msgstr "" #: systemv/lpadmin.c:1626 msgid "-E Enable and accept jobs on the printer (after -p)" msgstr "" #: berkeley/lpq.c:645 berkeley/lpr.c:439 berkeley/lprm.c:235 #: systemv/cancel.c:404 systemv/cupsaccept.c:245 systemv/cupsctl.c:233 #: systemv/lp.c:756 systemv/lpadmin.c:1625 systemv/lpinfo.c:499 #: systemv/lpmove.c:218 systemv/lpoptions.c:540 systemv/lpstat.c:2046 msgid "-E Encrypt the connection to the server" msgstr "" #: tools/ipptool.c:4345 msgid "-E Test with encryption using HTTP Upgrade to TLS" msgstr "" #: scheduler/main.c:2148 msgid "-F Run in the foreground but detach from console." msgstr "" #: tools/ippeveprinter.c:8352 msgid "-F output-type/subtype Set the output format for the printer" msgstr "" #: systemv/lpstat.c:2051 msgid "-H Show the default server and port" msgstr "" #: systemv/lp.c:758 msgid "-H HH:MM Hold the job until the specified UTC time" msgstr "" #: systemv/lp.c:759 msgid "-H hold Hold the job until released/resumed" msgstr "" #: systemv/lp.c:760 msgid "-H immediate Print the job as soon as possible" msgstr "" #: systemv/lp.c:761 msgid "-H restart Reprint the job" msgstr "" #: systemv/lp.c:762 msgid "-H resume Resume a held job" msgstr "" #: berkeley/lpr.c:440 msgid "-H server[:port] Connect to the named server and port" msgstr "" #: tools/ipptool.c:4346 msgid "-I Ignore errors" msgstr "" #: systemv/cupstestppd.c:3858 msgid "" "-I {filename,filters,none,profiles}\n" " Ignore specific warnings" msgstr "" #: tools/ippeveprinter.c:8354 msgid "-K keypath Set location of server X.509 certificates and keys." msgstr "" #: tools/ipptool.c:4347 msgid "-L Send requests using content-length" msgstr "" #: systemv/lpadmin.c:1629 msgid "-L location Specify the textual location of the printer" msgstr "" #: tools/ippeveprinter.c:8356 msgid "-M manufacturer Set manufacturer name (default=Test)" msgstr "" #: tools/ippfind.c:2789 msgid "-N name Match service name to literal name value" msgstr "" #: berkeley/lpq.c:648 msgid "-P destination Show status for the specified destination" msgstr "" #: berkeley/lpr.c:454 berkeley/lprm.c:237 msgid "-P destination Specify the destination" msgstr "" #: tools/ipptool.c:4348 msgid "-P filename.plist Produce XML plist to a file and test report to standard output" msgstr "" #: tools/ippeveprinter.c:8358 msgid "-P filename.ppd Load printer attributes from PPD file" msgstr "" #: tools/ippfind.c:2784 msgid "-P number[-number] Match port to number or range" msgstr "" #: systemv/lp.c:778 msgid "-P page-list Specify a list of pages to print" msgstr "" #: systemv/lpstat.c:2061 msgid "-R Show the ranking of jobs" msgstr "" #: systemv/lpadmin.c:1649 msgid "-R name-default Remove the default value for the named option" msgstr "" #: systemv/cupstestppd.c:3860 msgid "-R root-directory Set alternate root" msgstr "" #: tools/ipptool.c:4349 msgid "-S Test with encryption using HTTPS" msgstr "" #: tools/ippeveprinter.c:8360 msgid "-S filename.strings Set strings file" msgstr "" #: tools/ippfind.c:2780 msgid "-T seconds Set the browse timeout in seconds" msgstr "" #: tools/ipptool.c:4350 msgid "-T seconds Set the receive/send timeout in seconds" msgstr "" #: berkeley/lpr.c:457 msgid "-T title Specify the job title" msgstr "" #: berkeley/lpq.c:649 berkeley/lpr.c:458 berkeley/lprm.c:238 #: systemv/cancel.c:407 systemv/cupsaccept.c:248 systemv/lp.c:782 #: systemv/lpadmin.c:1653 systemv/lpinfo.c:503 systemv/lpmove.c:220 #: systemv/lpoptions.c:545 systemv/lpstat.c:2049 msgid "-U username Specify the username to use for authentication" msgstr "" #: systemv/cupsctl.c:235 msgid "-U username Specify username to use for authentication" msgstr "" #: tools/ippeveprinter.c:8361 tools/ippfind.c:2781 tools/ipptool.c:4351 msgid "-V version Set default IPP version" msgstr "" #: systemv/lpstat.c:2052 msgid "-W completed Show completed jobs" msgstr "" #: systemv/lpstat.c:2053 msgid "-W not-completed Show pending jobs" msgstr "" #: systemv/cupstestppd.c:3861 msgid "" "-W {all,none,constraints,defaults,duplex,filters,profiles,sizes,translations}\n" " Issue warnings instead of errors" msgstr "" #: tools/ipptool.c:4352 msgid "-X Produce XML plist instead of plain text" msgstr "" #: systemv/cancel.c:403 msgid "-a Cancel all jobs" msgstr "" #: berkeley/lpq.c:644 msgid "-a Show jobs on all destinations" msgstr "" #: systemv/lpstat.c:2054 msgid "-a [destination(s)] Show the accepting state of destinations" msgstr "" #: tools/ippeveprinter.c:8362 msgid "-a filename.conf Load printer attributes from conf file" msgstr "" #: systemv/lp.c:754 msgid "-c Make a copy of the print file(s)" msgstr "" #: tools/ipptool.c:4353 msgid "-c Produce CSV output" msgstr "" #: systemv/lpstat.c:2055 msgid "-c [class(es)] Show classes and their member printers" msgstr "" #: systemv/lpadmin.c:1622 msgid "-c class Add the named destination to a class" msgstr "" #: tools/ippeveprinter.c:8363 msgid "-c command Set print command" msgstr "" #: scheduler/main.c:2146 msgid "-c cupsd.conf Set cupsd.conf file to use." msgstr "" #: systemv/lpstat.c:2056 msgid "-d Show the default destination" msgstr "" #: systemv/lpoptions.c:539 msgid "-d destination Set default destination" msgstr "" #: systemv/lpadmin.c:1623 msgid "-d destination Set the named destination as the server default" msgstr "" #: systemv/lp.c:755 msgid "-d destination Specify the destination" msgstr "" #: tools/ipptool.c:4354 msgid "-d name=value Set named variable to value" msgstr "" #: tools/ippfind.c:2785 msgid "-d regex Match domain to regular expression" msgstr "" #: tools/ippeveprinter.c:8364 msgid "-d spool-directory Set spool directory" msgstr "" #: systemv/lpstat.c:2057 msgid "-e Show available destinations on the network" msgstr "" #: scheduler/main.c:2147 msgid "-f Run in the foreground." msgstr "" #: tools/ipptool.c:4355 msgid "-f filename Set default request filename" msgstr "" #: tools/ippeveprinter.c:8365 msgid "-f type/subtype[,...] Set supported file types" msgstr "" #: scheduler/main.c:2149 msgid "-h Show this usage message." msgstr "" #: tools/ipptool.c:4356 msgid "-h Validate HTTP response headers" msgstr "" #: tools/ippfind.c:2786 msgid "-h regex Match hostname to regular expression" msgstr "" #: berkeley/lpq.c:646 berkeley/lprm.c:236 systemv/cancel.c:405 #: systemv/cupsaccept.c:246 systemv/cupsctl.c:234 systemv/lp.c:757 #: systemv/lpadmin.c:1627 systemv/lpinfo.c:500 systemv/lpmove.c:219 #: systemv/lpoptions.c:541 systemv/lpstat.c:2047 msgid "-h server[:port] Connect to the named server and port" msgstr "" #: tools/ippeveprinter.c:8366 msgid "-i iconfile.png[,...] Set icon file(s)" msgstr "" #: systemv/lp.c:763 msgid "-i id Specify an existing job ID to modify" msgstr "" #: systemv/lpadmin.c:1628 msgid "-i ppd-file Specify a PPD file for the printer" msgstr "" #: tools/ipptool.c:4357 msgid "-i seconds Repeat the last file with the given time interval" msgstr "" #: tools/ippeveprinter.c:8367 msgid "-k Keep job spool files" msgstr "" #: tools/ippfind.c:2787 msgid "-l List attributes" msgstr "" #: tools/ipptool.c:4358 msgid "-l Produce plain text output" msgstr "" #: scheduler/main.c:2151 msgid "-l Run cupsd on demand." msgstr "" #: systemv/lpoptions.c:542 msgid "-l Show supported options and values" msgstr "" #: berkeley/lpq.c:647 systemv/lpinfo.c:501 systemv/lpstat.c:2048 msgid "-l Show verbose (long) output" msgstr "" #: tools/ippeveprinter.c:8368 msgid "-l location Set location of printer" msgstr "" #: berkeley/lpr.c:441 systemv/lp.c:764 msgid "-m Send an email notification when the job completes" msgstr "" #: systemv/lpinfo.c:502 msgid "-m Show models" msgstr "" #: systemv/lpadmin.c:1631 msgid "-m everywhere Specify the printer is compatible with IPP Everywhere" msgstr "" #: tools/ippeveprinter.c:8369 msgid "-m model Set model name (default=Printer)" msgstr "" #: systemv/lpadmin.c:1630 msgid "-m model Specify a standard model/PPD file for the printer" msgstr "" #: tools/ipptool.c:4359 msgid "-n count Repeat the last file the given number of times" msgstr "" #: tools/ippeveprinter.c:8370 msgid "-n hostname Set hostname for printer" msgstr "" #: systemv/lp.c:765 msgid "-n num-copies Specify the number of copies to print" msgstr "" #: tools/ippfind.c:2788 msgid "-n regex Match service name to regular expression" msgstr "" #: systemv/lpadmin.c:1633 msgid "-o Name=Value Specify the default value for the named PPD option " msgstr "" #: systemv/lpstat.c:2058 msgid "-o [destination(s)] Show jobs" msgstr "" #: systemv/lpadmin.c:1634 msgid "" "-o cupsIPPSupplies=false\n" " Disable supply level reporting via IPP" msgstr "" #: systemv/lpadmin.c:1636 msgid "" "-o cupsSNMPSupplies=false\n" " Disable supply level reporting via SNMP" msgstr "" #: systemv/lpadmin.c:1638 msgid "-o job-k-limit=N Specify the kilobyte limit for per-user quotas" msgstr "" #: systemv/lpadmin.c:1639 msgid "-o job-page-limit=N Specify the page limit for per-user quotas" msgstr "" #: systemv/lpadmin.c:1640 msgid "-o job-quota-period=N Specify the per-user quota period in seconds" msgstr "" #: berkeley/lpr.c:443 systemv/lp.c:767 msgid "-o job-sheets=standard Print a banner page with the job" msgstr "" #: berkeley/lpr.c:444 systemv/lp.c:768 msgid "-o media=size Specify the media size to use" msgstr "" #: systemv/lpadmin.c:1632 msgid "-o name-default=value Specify the default value for the named option" msgstr "" #: systemv/lpoptions.c:543 msgid "-o name[=value] Set default option and value" msgstr "" #: berkeley/lpr.c:445 systemv/lp.c:769 msgid "-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)" msgstr "" #: berkeley/lpr.c:442 systemv/lp.c:766 msgid "-o option[=value] Specify a printer-specific option" msgstr "" #: berkeley/lpr.c:446 systemv/lp.c:770 msgid "" "-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation" msgstr "" #: berkeley/lpr.c:448 systemv/lp.c:772 msgid "-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)" msgstr "" #: systemv/lpadmin.c:1641 msgid "" "-o printer-error-policy=name\n" " Specify the printer error policy" msgstr "" #: systemv/lpadmin.c:1643 msgid "" "-o printer-is-shared=true\n" " Share the printer" msgstr "" #: systemv/lpadmin.c:1645 msgid "" "-o printer-op-policy=name\n" " Specify the printer operation policy" msgstr "" #: berkeley/lpr.c:449 systemv/lp.c:773 msgid "-o sides=one-sided Specify 1-sided printing" msgstr "" #: berkeley/lpr.c:450 systemv/lp.c:774 msgid "" "-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing" msgstr "" #: berkeley/lpr.c:452 systemv/lp.c:776 msgid "" "-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing" msgstr "" #: tools/ippfind.c:2790 msgid "-p Print URI if true" msgstr "" #: systemv/lpstat.c:2059 msgid "-p [printer(s)] Show the processing state of destinations" msgstr "" #: systemv/lpoptions.c:544 msgid "-p destination Specify a destination" msgstr "" #: systemv/lpadmin.c:1647 msgid "-p destination Specify/add the named destination" msgstr "" #: tools/ippeveprinter.c:8371 msgid "-p port Set port number for printer" msgstr "" #: tools/ippfind.c:2791 msgid "-q Quietly report match via exit code" msgstr "" #: systemv/cupstestppd.c:3863 tools/ipptool.c:4360 msgid "-q Run silently" msgstr "" #: berkeley/lpr.c:455 msgid "-q Specify the job should be held for printing" msgstr "" #: systemv/lp.c:779 msgid "-q priority Specify the priority from low (1) to high (100)" msgstr "" #: berkeley/lpr.c:456 msgid "-r Remove the file(s) after submission" msgstr "" #: systemv/lpstat.c:2060 msgid "-r Show whether the CUPS server is running" msgstr "" #: tools/ippfind.c:2792 msgid "-r True if service is remote" msgstr "" #: systemv/cupstestppd.c:3864 msgid "-r Use 'relaxed' open mode" msgstr "" #: systemv/lpadmin.c:1648 msgid "-r class Remove the named destination from a class" msgstr "" #: systemv/cupsaccept.c:247 msgid "-r reason Specify a reason message that others can see" msgstr "" #: tools/ippeveprinter.c:8372 msgid "-r subtype,[subtype] Set DNS-SD service subtype" msgstr "" #: systemv/lp.c:780 msgid "-s Be silent" msgstr "" #: tools/ippfind.c:2793 msgid "-s Print service name if true" msgstr "" #: systemv/lpstat.c:2062 msgid "-s Show a status summary" msgstr "" #: scheduler/main.c:2153 msgid "-s cups-files.conf Set cups-files.conf file to use." msgstr "" #: tools/ippeveprinter.c:8373 msgid "-s speed[,color-speed] Set speed in pages per minute" msgstr "" #: tools/ipptool.c:4361 msgid "-t Produce a test report" msgstr "" #: systemv/lpstat.c:2063 msgid "-t Show all status information" msgstr "" #: scheduler/main.c:2154 msgid "-t Test the configuration file." msgstr "" #: tools/ippfind.c:2794 msgid "-t key True if the TXT record contains the key" msgstr "" #: systemv/lp.c:781 msgid "-t title Specify the job title" msgstr "" #: systemv/lpstat.c:2064 msgid "-u [user(s)] Show jobs queued by the current or specified users" msgstr "" #: systemv/lpadmin.c:1650 msgid "-u allow:all Allow all users to print" msgstr "" #: systemv/lpadmin.c:1651 msgid "-u allow:list Allow the list of users or groups (@name) to print" msgstr "" #: systemv/lpadmin.c:1652 msgid "-u deny:list Prevent the list of users or groups (@name) to print" msgstr "" #: systemv/cancel.c:406 msgid "-u owner Specify the owner to use for jobs" msgstr "" #: tools/ippfind.c:2795 msgid "-u regex Match URI to regular expression" msgstr "" #: systemv/cupstestppd.c:3865 tools/ippeveprinter.c:8374 tools/ipptool.c:4362 msgid "-v Be verbose" msgstr "" #: systemv/lpinfo.c:504 msgid "-v Show devices" msgstr "" #: systemv/lpstat.c:2065 msgid "-v [printer(s)] Show the devices for each destination" msgstr "" #: systemv/lpadmin.c:1654 msgid "-v device-uri Specify the device URI for the printer" msgstr "" #: systemv/cupstestppd.c:3866 msgid "-vv Be very verbose" msgstr "" #: systemv/cancel.c:408 msgid "-x Purge jobs rather than just canceling" msgstr "" #: systemv/lpoptions.c:546 msgid "-x destination Remove default options for destination" msgstr "" #: systemv/lpadmin.c:1655 msgid "-x destination Remove the named destination" msgstr "" #: tools/ippfind.c:2796 msgid "" "-x utility [argument ...] ;\n" " Execute program if true" msgstr "" #: cups/dest.c:1871 msgid "/etc/cups/lpoptions file names default destination that does not exist." msgstr "" #: ppdc/sample.c:316 msgid "0" msgstr "" #: ppdc/sample.c:317 msgid "1" msgstr "" #: ppdc/sample.c:389 msgid "1 inch/sec." msgstr "" #: ppdc/sample.c:172 msgid "1.25x0.25\"" msgstr "" #: ppdc/sample.c:173 msgid "1.25x2.25\"" msgstr "" #: ppdc/sample.c:437 msgid "1.5 inch/sec." msgstr "" #: ppdc/sample.c:174 msgid "1.50x0.25\"" msgstr "" #: ppdc/sample.c:175 msgid "1.50x0.50\"" msgstr "" #: ppdc/sample.c:176 msgid "1.50x1.00\"" msgstr "" #: ppdc/sample.c:177 msgid "1.50x2.00\"" msgstr "" #: ppdc/sample.c:326 msgid "10" msgstr "" #: ppdc/sample.c:448 msgid "10 inches/sec." msgstr "" #: ppdc/sample.c:6 msgid "10 x 11" msgstr "" #: ppdc/sample.c:7 msgid "10 x 13" msgstr "" #: ppdc/sample.c:8 msgid "10 x 14" msgstr "" #: ppdc/sample.c:428 msgid "100" msgstr "" #: ppdc/sample.c:339 msgid "100 mm/sec." msgstr "" #: ppdc/sample.c:429 msgid "105" msgstr "" #: ppdc/sample.c:327 msgid "11" msgstr "" #: ppdc/sample.c:449 msgid "11 inches/sec." msgstr "" #: ppdc/sample.c:430 msgid "110" msgstr "" #: ppdc/sample.c:431 msgid "115" msgstr "" #: ppdc/sample.c:328 msgid "12" msgstr "" #: ppdc/sample.c:450 msgid "12 inches/sec." msgstr "" #: ppdc/sample.c:9 msgid "12 x 11" msgstr "" #: ppdc/sample.c:432 msgid "120" msgstr "" #: ppdc/sample.c:340 msgid "120 mm/sec." msgstr "" #: ppdc/sample.c:254 msgid "120x60dpi" msgstr "" #: ppdc/sample.c:260 msgid "120x72dpi" msgstr "" #: ppdc/sample.c:329 msgid "13" msgstr "" #: ppdc/sample.c:240 msgid "136dpi" msgstr "" #: ppdc/sample.c:330 msgid "14" msgstr "" #: ppdc/sample.c:331 msgid "15" msgstr "" #: ppdc/sample.c:333 msgid "15 mm/sec." msgstr "" #: ppdc/sample.c:10 msgid "15 x 11" msgstr "" #: ppdc/sample.c:341 msgid "150 mm/sec." msgstr "" #: ppdc/sample.c:288 msgid "150dpi" msgstr "" #: ppdc/sample.c:373 msgid "16" msgstr "" #: ppdc/sample.c:374 msgid "17" msgstr "" #: ppdc/sample.c:375 msgid "18" msgstr "" #: ppdc/sample.c:255 msgid "180dpi" msgstr "" #: ppdc/sample.c:376 msgid "19" msgstr "" #: ppdc/sample.c:318 msgid "2" msgstr "" #: ppdc/sample.c:390 msgid "2 inches/sec." msgstr "" #: cups/ppd-cache.c:3888 ppdc/sample.c:272 msgid "2-Sided Printing" msgstr "" #: ppdc/sample.c:179 msgid "2.00x0.37\"" msgstr "" #: ppdc/sample.c:180 msgid "2.00x0.50\"" msgstr "" #: ppdc/sample.c:181 msgid "2.00x1.00\"" msgstr "" #: ppdc/sample.c:182 msgid "2.00x1.25\"" msgstr "" #: ppdc/sample.c:183 msgid "2.00x2.00\"" msgstr "" #: ppdc/sample.c:184 msgid "2.00x3.00\"" msgstr "" #: ppdc/sample.c:185 msgid "2.00x4.00\"" msgstr "" #: ppdc/sample.c:186 msgid "2.00x5.50\"" msgstr "" #: ppdc/sample.c:187 msgid "2.25x0.50\"" msgstr "" #: ppdc/sample.c:188 msgid "2.25x1.25\"" msgstr "" #: ppdc/sample.c:190 msgid "2.25x4.00\"" msgstr "" #: ppdc/sample.c:191 msgid "2.25x5.50\"" msgstr "" #: ppdc/sample.c:192 msgid "2.38x5.50\"" msgstr "" #: ppdc/sample.c:438 msgid "2.5 inches/sec." msgstr "" #: ppdc/sample.c:193 msgid "2.50x1.00\"" msgstr "" #: ppdc/sample.c:194 msgid "2.50x2.00\"" msgstr "" #: ppdc/sample.c:195 msgid "2.75x1.25\"" msgstr "" #: ppdc/sample.c:196 msgid "2.9 x 1\"" msgstr "" #: ppdc/sample.c:377 msgid "20" msgstr "" #: ppdc/sample.c:334 msgid "20 mm/sec." msgstr "" #: ppdc/sample.c:342 msgid "200 mm/sec." msgstr "" #: ppdc/sample.c:241 msgid "203dpi" msgstr "" #: ppdc/sample.c:378 msgid "21" msgstr "" #: ppdc/sample.c:379 msgid "22" msgstr "" #: ppdc/sample.c:380 msgid "23" msgstr "" #: ppdc/sample.c:381 msgid "24" msgstr "" #: ppdc/sample.c:252 msgid "24-Pin Series" msgstr "" #: ppdc/sample.c:261 msgid "240x72dpi" msgstr "" #: ppdc/sample.c:382 msgid "25" msgstr "" #: ppdc/sample.c:343 msgid "250 mm/sec." msgstr "" #: ppdc/sample.c:383 msgid "26" msgstr "" #: ppdc/sample.c:384 msgid "27" msgstr "" #: ppdc/sample.c:385 msgid "28" msgstr "" #: ppdc/sample.c:386 msgid "29" msgstr "" #: ppdc/sample.c:319 msgid "3" msgstr "" #: ppdc/sample.c:391 msgid "3 inches/sec." msgstr "" #: ppdc/sample.c:3 msgid "3 x 5" msgstr "" #: ppdc/sample.c:197 msgid "3.00x1.00\"" msgstr "" #: ppdc/sample.c:198 msgid "3.00x1.25\"" msgstr "" #: ppdc/sample.c:199 msgid "3.00x2.00\"" msgstr "" #: ppdc/sample.c:200 msgid "3.00x3.00\"" msgstr "" #: ppdc/sample.c:201 msgid "3.00x4.00\"" msgstr "" #: ppdc/sample.c:202 msgid "3.00x5.00\"" msgstr "" #: ppdc/sample.c:203 msgid "3.00x6.00\"" msgstr "" #: ppdc/sample.c:204 msgid "3.00x8.00\"" msgstr "" #: ppdc/sample.c:205 msgid "3.25x2.00\"" msgstr "" #: ppdc/sample.c:206 msgid "3.25x5.00\"" msgstr "" #: ppdc/sample.c:207 msgid "3.25x5.50\"" msgstr "" #: ppdc/sample.c:208 msgid "3.25x5.83\"" msgstr "" #: ppdc/sample.c:209 msgid "3.25x7.83\"" msgstr "" #: ppdc/sample.c:4 msgid "3.5 x 5" msgstr "" #: ppdc/sample.c:171 msgid "3.5\" Disk" msgstr "" #: ppdc/sample.c:210 msgid "3.50x1.00\"" msgstr "" #: ppdc/sample.c:387 msgid "30" msgstr "" #: ppdc/sample.c:335 msgid "30 mm/sec." msgstr "" #: ppdc/sample.c:344 msgid "300 mm/sec." msgstr "" #: ppdc/sample.c:242 msgid "300dpi" msgstr "" #: ppdc/sample.c:189 msgid "30859 Paint Can Label" msgstr "" #: ppdc/sample.c:415 msgid "35" msgstr "" #: ppdc/sample.c:257 msgid "360dpi" msgstr "" #: ppdc/sample.c:256 msgid "360x180dpi" msgstr "" #: ppdc/sample.c:320 msgid "4" msgstr "" #: ppdc/sample.c:392 msgid "4 inches/sec." msgstr "" #: ppdc/sample.c:211 msgid "4.00x1.00\"" msgstr "" #: ppdc/sample.c:220 msgid "4.00x13.00\"" msgstr "" #: ppdc/sample.c:212 msgid "4.00x2.00\"" msgstr "" #: ppdc/sample.c:213 msgid "4.00x2.50\"" msgstr "" #: ppdc/sample.c:214 msgid "4.00x3.00\"" msgstr "" #: ppdc/sample.c:215 msgid "4.00x4.00\"" msgstr "" #: ppdc/sample.c:216 msgid "4.00x5.00\"" msgstr "" #: ppdc/sample.c:217 msgid "4.00x6.00\"" msgstr "" #: ppdc/sample.c:218 msgid "4.00x6.50\"" msgstr "" #: ppdc/sample.c:219 msgid "4.00x8.00\"" msgstr "" #: ppdc/sample.c:416 msgid "40" msgstr "" #: ppdc/sample.c:336 msgid "40 mm/sec." msgstr "" #: ppdc/sample.c:417 msgid "45" msgstr "" #: ppdc/sample.c:321 msgid "5" msgstr "" #: ppdc/sample.c:442 msgid "5 inches/sec." msgstr "" #: ppdc/sample.c:5 msgid "5 x 7" msgstr "" #: ppdc/sample.c:418 msgid "50" msgstr "" #: ppdc/sample.c:419 msgid "55" msgstr "" #: ppdc/sample.c:322 msgid "6" msgstr "" #: ppdc/sample.c:443 msgid "6 inches/sec." msgstr "" #: ppdc/sample.c:221 msgid "6.00x1.00\"" msgstr "" #: ppdc/sample.c:222 msgid "6.00x2.00\"" msgstr "" #: ppdc/sample.c:223 msgid "6.00x3.00\"" msgstr "" #: ppdc/sample.c:224 msgid "6.00x4.00\"" msgstr "" #: ppdc/sample.c:225 msgid "6.00x5.00\"" msgstr "" #: ppdc/sample.c:226 msgid "6.00x6.00\"" msgstr "" #: ppdc/sample.c:227 msgid "6.00x6.50\"" msgstr "" #: ppdc/sample.c:228 msgid "6.00x8.00\"" msgstr "" #: ppdc/sample.c:420 msgid "60" msgstr "" #: ppdc/sample.c:337 msgid "60 mm/sec." msgstr "" #: ppdc/sample.c:264 msgid "600dpi" msgstr "" #: ppdc/sample.c:253 msgid "60dpi" msgstr "" #: ppdc/sample.c:259 msgid "60x72dpi" msgstr "" #: ppdc/sample.c:421 msgid "65" msgstr "" #: ppdc/sample.c:323 msgid "7" msgstr "" #: ppdc/sample.c:445 msgid "7 inches/sec." msgstr "" #: ppdc/sample.c:11 msgid "7 x 9" msgstr "" #: ppdc/sample.c:422 msgid "70" msgstr "" #: ppdc/sample.c:423 msgid "75" msgstr "" #: ppdc/sample.c:324 msgid "8" msgstr "" #: ppdc/sample.c:446 msgid "8 inches/sec." msgstr "" #: ppdc/sample.c:12 msgid "8 x 10" msgstr "" #: ppdc/sample.c:229 msgid "8.00x1.00\"" msgstr "" #: ppdc/sample.c:230 msgid "8.00x2.00\"" msgstr "" #: ppdc/sample.c:231 msgid "8.00x3.00\"" msgstr "" #: ppdc/sample.c:232 msgid "8.00x4.00\"" msgstr "" #: ppdc/sample.c:233 msgid "8.00x5.00\"" msgstr "" #: ppdc/sample.c:234 msgid "8.00x6.00\"" msgstr "" #: ppdc/sample.c:235 msgid "8.00x6.50\"" msgstr "" #: ppdc/sample.c:236 msgid "8.26x1.00\"" msgstr "" #: ppdc/sample.c:424 msgid "80" msgstr "" #: ppdc/sample.c:338 msgid "80 mm/sec." msgstr "" #: ppdc/sample.c:178 msgid "80x50mm" msgstr "" #: ppdc/sample.c:425 msgid "85" msgstr "" #: ppdc/sample.c:325 msgid "9" msgstr "" #: ppdc/sample.c:447 msgid "9 inches/sec." msgstr "" #: ppdc/sample.c:13 msgid "9 x 11" msgstr "" #: ppdc/sample.c:14 msgid "9 x 12" msgstr "" #: ppdc/sample.c:258 msgid "9-Pin Series" msgstr "" #: ppdc/sample.c:426 msgid "90" msgstr "" #: ppdc/sample.c:427 msgid "95" msgstr "" #: berkeley/lpc.c:199 msgid "?Invalid help command unknown." msgstr "" #: scheduler/ipp.c:2284 #, c-format msgid "A class named \"%s\" already exists." msgstr "" #: scheduler/ipp.c:891 #, c-format msgid "A printer named \"%s\" already exists." msgstr "" #: ppdc/sample.c:15 msgid "A0" msgstr "" #: ppdc/sample.c:16 msgid "A0 Long Edge" msgstr "" #: ppdc/sample.c:17 msgid "A1" msgstr "" #: ppdc/sample.c:18 msgid "A1 Long Edge" msgstr "" #: ppdc/sample.c:37 msgid "A10" msgstr "" #: ppdc/sample.c:19 msgid "A2" msgstr "" #: ppdc/sample.c:20 msgid "A2 Long Edge" msgstr "" #: ppdc/sample.c:21 msgid "A3" msgstr "" #: ppdc/sample.c:22 msgid "A3 Long Edge" msgstr "" #: ppdc/sample.c:23 msgid "A3 Oversize" msgstr "" #: ppdc/sample.c:24 msgid "A3 Oversize Long Edge" msgstr "" #: ppdc/sample.c:25 msgid "A4" msgstr "" #: ppdc/sample.c:27 msgid "A4 Long Edge" msgstr "" #: ppdc/sample.c:26 msgid "A4 Oversize" msgstr "" #: ppdc/sample.c:28 msgid "A4 Small" msgstr "" #: ppdc/sample.c:29 msgid "A5" msgstr "" #: ppdc/sample.c:31 msgid "A5 Long Edge" msgstr "" #: ppdc/sample.c:30 msgid "A5 Oversize" msgstr "" #: ppdc/sample.c:32 msgid "A6" msgstr "" #: ppdc/sample.c:33 msgid "A6 Long Edge" msgstr "" #: ppdc/sample.c:34 msgid "A7" msgstr "" #: ppdc/sample.c:35 msgid "A8" msgstr "" #: ppdc/sample.c:36 msgid "A9" msgstr "" #: ppdc/sample.c:38 msgid "ANSI A" msgstr "" #: ppdc/sample.c:39 msgid "ANSI B" msgstr "" #: ppdc/sample.c:40 msgid "ANSI C" msgstr "" #: ppdc/sample.c:41 msgid "ANSI D" msgstr "" #: ppdc/sample.c:42 msgid "ANSI E" msgstr "" #: ppdc/sample.c:47 msgid "ARCH C" msgstr "" #: ppdc/sample.c:48 msgid "ARCH C Long Edge" msgstr "" #: ppdc/sample.c:49 msgid "ARCH D" msgstr "" #: ppdc/sample.c:50 msgid "ARCH D Long Edge" msgstr "" #: ppdc/sample.c:51 msgid "ARCH E" msgstr "" #: ppdc/sample.c:52 msgid "ARCH E Long Edge" msgstr "" #: cgi-bin/classes.c:155 cgi-bin/printers.c:158 msgid "Accept Jobs" msgstr "" #: cups/http-support.c:1508 msgid "Accepted" msgstr "" #: cgi-bin/admin.c:336 msgid "Add Class" msgstr "" #: cgi-bin/admin.c:649 msgid "Add Printer" msgstr "" #: ppdc/sample.c:163 msgid "Address" msgstr "" #: cgi-bin/admin.c:172 cgi-bin/admin.c:246 cgi-bin/admin.c:2256 msgid "Administration" msgstr "" #: ppdc/sample.c:434 msgid "Always" msgstr "" #: backend/socket.c:113 msgid "AppSocket/HP JetDirect" msgstr "" #: ppdc/sample.c:455 msgid "Applicator" msgstr "" #: scheduler/ipp.c:988 #, c-format msgid "Attempt to set %s printer-state to bad value %d." msgstr "" #: scheduler/ipp.c:5426 scheduler/ipp.c:5452 #, c-format msgid "Attribute \"%s\" is in the wrong group." msgstr "" #: scheduler/ipp.c:5428 scheduler/ipp.c:5454 #, c-format msgid "Attribute \"%s\" is the wrong value type." msgstr "" #: scheduler/ipp.c:228 #, c-format msgid "Attribute groups are out of order (%x < %x)." msgstr "" #: ppdc/sample.c:126 msgid "B0" msgstr "" #: ppdc/sample.c:127 msgid "B1" msgstr "" #: ppdc/sample.c:137 msgid "B10" msgstr "" #: ppdc/sample.c:128 msgid "B2" msgstr "" #: ppdc/sample.c:129 msgid "B3" msgstr "" #: ppdc/sample.c:130 msgid "B4" msgstr "" #: ppdc/sample.c:131 msgid "B5" msgstr "" #: ppdc/sample.c:132 msgid "B5 Oversize" msgstr "" #: ppdc/sample.c:133 msgid "B6" msgstr "" #: ppdc/sample.c:134 msgid "B7" msgstr "" #: ppdc/sample.c:135 msgid "B8" msgstr "" #: ppdc/sample.c:136 msgid "B9" msgstr "" #: scheduler/ipp.c:7508 #, c-format msgid "Bad \"printer-id\" value %d." msgstr "" #: scheduler/ipp.c:10340 #, c-format msgid "Bad '%s' value." msgstr "" #: scheduler/ipp.c:11281 #, c-format msgid "Bad 'document-format' value \"%s\"." msgstr "" #: cups/ppd.c:308 msgid "Bad CloseUI/JCLCloseUI" msgstr "" #: cups/dest.c:1662 msgid "Bad NULL dests pointer" msgstr "" #: cups/ppd.c:291 msgid "Bad OpenGroup" msgstr "" #: cups/ppd.c:293 msgid "Bad OpenUI/JCLOpenUI" msgstr "" #: cups/ppd.c:295 msgid "Bad OrderDependency" msgstr "" #: cups/ppd-cache.c:483 cups/ppd-cache.c:530 cups/ppd-cache.c:564 #: cups/ppd-cache.c:570 cups/ppd-cache.c:586 cups/ppd-cache.c:602 #: cups/ppd-cache.c:611 cups/ppd-cache.c:619 cups/ppd-cache.c:636 #: cups/ppd-cache.c:644 cups/ppd-cache.c:659 cups/ppd-cache.c:667 #: cups/ppd-cache.c:688 cups/ppd-cache.c:700 cups/ppd-cache.c:715 #: cups/ppd-cache.c:727 cups/ppd-cache.c:749 cups/ppd-cache.c:757 #: cups/ppd-cache.c:775 cups/ppd-cache.c:783 cups/ppd-cache.c:798 #: cups/ppd-cache.c:806 cups/ppd-cache.c:824 cups/ppd-cache.c:832 #: cups/ppd-cache.c:859 cups/ppd-cache.c:934 cups/ppd-cache.c:942 #: cups/ppd-cache.c:950 msgid "Bad PPD cache file." msgstr "" #: scheduler/ipp.c:2660 msgid "Bad PPD file." msgstr "" #: cups/http-support.c:1526 msgid "Bad Request" msgstr "" #: cups/snmp.c:956 msgid "Bad SNMP version number" msgstr "" #: cups/ppd.c:296 msgid "Bad UIConstraints" msgstr "" #: cups/dest.c:1196 msgid "Bad URI." msgstr "" #: cups/hash.c:49 cups/http-support.c:1620 msgid "Bad arguments to function" msgstr "" #: scheduler/ipp.c:1373 #, c-format msgid "Bad copies value %d." msgstr "" #: cups/ppd.c:304 msgid "Bad custom parameter" msgstr "" #: cups/http-support.c:1760 scheduler/ipp.c:2366 #, c-format msgid "Bad device-uri \"%s\"." msgstr "" #: scheduler/ipp.c:2411 #, c-format msgid "Bad device-uri scheme \"%s\"." msgstr "" #: scheduler/ipp.c:8490 scheduler/ipp.c:8508 scheduler/ipp.c:9736 #, c-format msgid "Bad document-format \"%s\"." msgstr "" #: scheduler/ipp.c:9754 #, c-format msgid "Bad document-format-default \"%s\"." msgstr "" #: cups/ppd-util.c:169 msgid "Bad filename buffer" msgstr "" #: cups/http-support.c:1629 msgid "Bad hostname/address in URI" msgstr "" #: scheduler/ipp.c:1555 #, c-format msgid "Bad job-name value: %s" msgstr "" #: scheduler/ipp.c:1541 msgid "Bad job-name value: Wrong type or count." msgstr "" #: scheduler/ipp.c:10378 msgid "Bad job-priority value." msgstr "" #: scheduler/ipp.c:1403 #, c-format msgid "Bad job-sheets value \"%s\"." msgstr "" #: scheduler/ipp.c:1387 msgid "Bad job-sheets value type." msgstr "" #: scheduler/ipp.c:10408 msgid "Bad job-state value." msgstr "" #: scheduler/ipp.c:3007 scheduler/ipp.c:3469 scheduler/ipp.c:6257 #: scheduler/ipp.c:6404 scheduler/ipp.c:7916 scheduler/ipp.c:8188 #: scheduler/ipp.c:9054 scheduler/ipp.c:9278 scheduler/ipp.c:9630 #: scheduler/ipp.c:10239 #, c-format msgid "Bad job-uri \"%s\"." msgstr "" #: scheduler/ipp.c:2050 scheduler/ipp.c:5777 #, c-format msgid "Bad notify-pull-method \"%s\"." msgstr "" #: scheduler/ipp.c:2015 scheduler/ipp.c:5741 #, c-format msgid "Bad notify-recipient-uri \"%s\"." msgstr "" #: scheduler/ipp.c:5852 #, c-format msgid "Bad notify-user-data \"%s\"." msgstr "" #: scheduler/ipp.c:1419 #, c-format msgid "Bad number-up value %d." msgstr "" #: scheduler/ipp.c:1436 #, c-format msgid "Bad page-ranges values %d-%d." msgstr "" #: cups/http-support.c:1626 msgid "Bad port number in URI" msgstr "" #: scheduler/ipp.c:2457 #, c-format msgid "Bad port-monitor \"%s\"." msgstr "" #: scheduler/ipp.c:2538 #, c-format msgid "Bad printer-state value %d." msgstr "" #: cups/dest.c:679 cups/dest.c:1246 msgid "Bad printer-uri." msgstr "" #: scheduler/ipp.c:202 #, c-format msgid "Bad request ID %d." msgstr "" #: scheduler/ipp.c:192 #, c-format msgid "Bad request version number %d.%d." msgstr "" #: cups/http-support.c:1623 msgid "Bad resource in URI" msgstr "" #: cups/http-support.c:1635 msgid "Bad scheme in URI" msgstr "" #: cups/http-support.c:1632 msgid "Bad username in URI" msgstr "" #: cups/ppd.c:306 msgid "Bad value string" msgstr "" #: cups/http-support.c:1638 msgid "Bad/empty URI" msgstr "" #: cgi-bin/admin.c:2801 cgi-bin/admin.c:3050 msgid "Banners" msgstr "" #: ppdc/sample.c:292 msgid "Bond Paper" msgstr "" #: cups/ppd-cache.c:4293 msgid "Booklet" msgstr "" #: backend/usb-darwin.c:2008 #, c-format msgid "Boolean expected for waiteof option \"%s\"." msgstr "" #: filter/pstops.c:2026 msgid "Buffer overflow detected, aborting." msgstr "" #: ppdc/sample.c:287 msgid "CMYK" msgstr "" #: ppdc/sample.c:368 msgid "CPCL Label Printer" msgstr "" #: cgi-bin/classes.c:159 cgi-bin/printers.c:162 msgid "Cancel Jobs" msgstr "" #: backend/ipp.c:2296 msgid "Canceling print job." msgstr "" #: scheduler/ipp.c:964 scheduler/ipp.c:2513 msgid "Cannot change printer-is-shared for remote queues." msgstr "" #: scheduler/ipp.c:2500 msgid "Cannot share a remote Kerberized printer." msgstr "" #: ppdc/sample.c:281 msgid "Cassette" msgstr "" #: cgi-bin/admin.c:1354 cgi-bin/admin.c:1496 cgi-bin/admin.c:1509 #: cgi-bin/admin.c:1520 msgid "Change Settings" msgstr "" #: scheduler/ipp.c:2062 scheduler/ipp.c:5789 #, c-format msgid "Character set \"%s\" not supported." msgstr "" #: cgi-bin/classes.c:181 cgi-bin/classes.c:307 msgid "Classes" msgstr "" #: cgi-bin/printers.c:168 msgid "Clean Print Heads" msgstr "" #: scheduler/ipp.c:3921 msgid "Close-Job doesn't support the job-uri attribute." msgstr "" #: cups/ppd-cache.c:3801 ppdc/sample.c:286 msgid "Color" msgstr "" #: cups/ppd-cache.c:3762 ppdc/sample.c:284 msgid "Color Mode" msgstr "" #: berkeley/lpc.c:190 msgid "" "Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?" msgstr "" #: cups/snmp.c:960 msgid "Community name uses indefinite length" msgstr "" #: backend/ipp.c:864 backend/lpd.c:933 backend/socket.c:375 msgid "Connected to printer." msgstr "" #: backend/ipp.c:700 backend/lpd.c:757 backend/socket.c:295 msgid "Connecting to printer." msgstr "" #: cups/http-support.c:1496 msgid "Continue" msgstr "" #: ppdc/sample.c:370 msgid "Continuous" msgstr "" #: backend/lpd.c:1082 backend/lpd.c:1214 msgid "Control file sent successfully." msgstr "" #: backend/ipp.c:1395 backend/lpd.c:449 msgid "Copying print data." msgstr "" #: cups/http-support.c:1505 msgid "Created" msgstr "" #: cups/tls-darwin.c:723 cups/tls-gnutls.c:583 msgid "Credentials do not validate against site CA certificate." msgstr "" #: cups/tls-darwin.c:734 cups/tls-gnutls.c:600 msgid "Credentials have expired." msgstr "" #: cups/ppd.c:1134 cups/ppd.c:1174 cups/ppd.c:1383 cups/ppd.c:1486 msgid "Custom" msgstr "" #: ppdc/sample.c:364 msgid "CustominCutInterval" msgstr "" #: ppdc/sample.c:362 msgid "CustominTearInterval" msgstr "" #: cups/ppd-cache.c:4328 ppdc/sample.c:348 msgid "Cut" msgstr "" #: ppdc/sample.c:456 msgid "Cutter" msgstr "" #: ppdc/sample.c:237 msgid "DYMO" msgstr "" #: ppdc/sample.c:250 msgid "Dark" msgstr "" #: ppdc/sample.c:246 msgid "Darkness" msgstr "" #: backend/lpd.c:1167 msgid "Data file sent successfully." msgstr "" #: cups/ppd-cache.c:3814 cups/ppd-cache.c:3823 msgid "Deep Color" msgstr "" #: cups/ppd-cache.c:3795 msgid "Deep Gray" msgstr "" #: cgi-bin/admin.c:1793 cgi-bin/admin.c:1804 cgi-bin/admin.c:1849 msgid "Delete Class" msgstr "" #: cgi-bin/admin.c:1878 cgi-bin/admin.c:1889 cgi-bin/admin.c:1934 msgid "Delete Printer" msgstr "" #: ppdc/sample.c:283 msgid "DeskJet Series" msgstr "" #: scheduler/ipp.c:1302 #, c-format msgid "Destination \"%s\" is not accepting jobs." msgstr "" #: cups/ppd-cache.c:3844 cups/ppd-cache.c:3850 msgid "Device CMYK" msgstr "" #: cups/ppd-cache.c:3832 cups/ppd-cache.c:3838 msgid "Device Gray" msgstr "" #: cups/ppd-cache.c:3856 cups/ppd-cache.c:3862 msgid "Device RGB" msgstr "" #: systemv/lpinfo.c:274 #, c-format msgid "" "Device: uri = %s\n" " class = %s\n" " info = %s\n" " make-and-model = %s\n" " device-id = %s\n" " location = %s" msgstr "" #: ppdc/sample.c:441 msgid "Direct Thermal Media" msgstr "" #: cups/file.c:285 #, c-format msgid "Directory \"%s\" contains a relative path." msgstr "" #: cups/file.c:257 #, c-format msgid "Directory \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #: cups/file.c:274 #, c-format msgid "Directory \"%s\" is a file." msgstr "" #: cups/file.c:245 #, c-format msgid "Directory \"%s\" not available: %s" msgstr "" #: cups/file.c:230 #, c-format msgid "Directory \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" #: ppdc/sample.c:350 msgid "Disabled" msgstr "" #: scheduler/ipp.c:6306 #, c-format msgid "Document #%d does not exist in job #%d." msgstr "" #: cups/ppd-cache.c:4487 cups/ppd-cache.c:4489 cups/ppd-cache.c:4552 #: cups/ppd-cache.c:4589 msgid "Draft" msgstr "" #: ppdc/sample.c:277 msgid "Duplexer" msgstr "" #: ppdc/sample.c:436 msgid "EPL1 Label Printer" msgstr "" #: ppdc/sample.c:439 msgid "EPL2 Label Printer" msgstr "" #: cgi-bin/admin.c:1548 cgi-bin/admin.c:1560 cgi-bin/admin.c:1614 #: cgi-bin/admin.c:1621 cgi-bin/admin.c:1656 cgi-bin/admin.c:1669 #: cgi-bin/admin.c:1693 cgi-bin/admin.c:1766 msgid "Edit Configuration File" msgstr "" #: cups/http.c:4650 msgid "Encryption is not supported." msgstr "" #. TRANSLATORS: Banner/cover sheet after the print job. #: cgi-bin/admin.c:3075 msgid "Ending Banner" msgstr "" #: ppdc/sample.c:2 msgid "English" msgstr "" #: scheduler/client.c:1982 msgid "Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket." msgstr "" #: ppdc/sample.c:73 msgid "Envelope #10" msgstr "" #: ppdc/sample.c:74 msgid "Envelope #11" msgstr "" #: ppdc/sample.c:75 msgid "Envelope #12" msgstr "" #: ppdc/sample.c:76 msgid "Envelope #14" msgstr "" #: ppdc/sample.c:77 msgid "Envelope #9" msgstr "" #: ppdc/sample.c:89 msgid "Envelope B4" msgstr "" #: ppdc/sample.c:90 msgid "Envelope B5" msgstr "" #: ppdc/sample.c:91 msgid "Envelope B6" msgstr "" #: ppdc/sample.c:78 msgid "Envelope C0" msgstr "" #: ppdc/sample.c:79 msgid "Envelope C1" msgstr "" #: ppdc/sample.c:80 msgid "Envelope C2" msgstr "" #: ppdc/sample.c:81 msgid "Envelope C3" msgstr "" #: ppdc/sample.c:67 msgid "Envelope C4" msgstr "" #: ppdc/sample.c:68 msgid "Envelope C5" msgstr "" #: ppdc/sample.c:69 msgid "Envelope C6" msgstr "" #: ppdc/sample.c:82 msgid "Envelope C65" msgstr "" #: ppdc/sample.c:83 msgid "Envelope C7" msgstr "" #: ppdc/sample.c:84 msgid "Envelope Choukei 3" msgstr "" #: ppdc/sample.c:85 msgid "Envelope Choukei 3 Long Edge" msgstr "" #: ppdc/sample.c:86 msgid "Envelope Choukei 4" msgstr "" #: ppdc/sample.c:87 msgid "Envelope Choukei 4 Long Edge" msgstr "" #: ppdc/sample.c:70 msgid "Envelope DL" msgstr "" #: ppdc/sample.c:271 msgid "Envelope Feed" msgstr "" #: ppdc/sample.c:88 msgid "Envelope Invite" msgstr "" #: ppdc/sample.c:92 msgid "Envelope Italian" msgstr "" #: ppdc/sample.c:93 msgid "Envelope Kaku2" msgstr "" #: ppdc/sample.c:94 msgid "Envelope Kaku2 Long Edge" msgstr "" #: ppdc/sample.c:95 msgid "Envelope Kaku3" msgstr "" #: ppdc/sample.c:96 msgid "Envelope Kaku3 Long Edge" msgstr "" #: ppdc/sample.c:97 msgid "Envelope Monarch" msgstr "" #: ppdc/sample.c:99 msgid "Envelope PRC1" msgstr "" #: ppdc/sample.c:100 msgid "Envelope PRC1 Long Edge" msgstr "" #: ppdc/sample.c:117 msgid "Envelope PRC10" msgstr "" #: ppdc/sample.c:118 msgid "Envelope PRC10 Long Edge" msgstr "" #: ppdc/sample.c:101 msgid "Envelope PRC2" msgstr "" #: ppdc/sample.c:102 msgid "Envelope PRC2 Long Edge" msgstr "" #: ppdc/sample.c:103 msgid "Envelope PRC3" msgstr "" #: ppdc/sample.c:104 msgid "Envelope PRC3 Long Edge" msgstr "" #: ppdc/sample.c:105 msgid "Envelope PRC4" msgstr "" #: ppdc/sample.c:106 msgid "Envelope PRC4 Long Edge" msgstr "" #: ppdc/sample.c:108 msgid "Envelope PRC5 Long Edge" msgstr "" #: ppdc/sample.c:107 msgid "Envelope PRC5PRC5" msgstr "" #: ppdc/sample.c:109 msgid "Envelope PRC6" msgstr "" #: ppdc/sample.c:110 msgid "Envelope PRC6 Long Edge" msgstr "" #: ppdc/sample.c:111 msgid "Envelope PRC7" msgstr "" #: ppdc/sample.c:112 msgid "Envelope PRC7 Long Edge" msgstr "" #: ppdc/sample.c:113 msgid "Envelope PRC8" msgstr "" #: ppdc/sample.c:114 msgid "Envelope PRC8 Long Edge" msgstr "" #: ppdc/sample.c:115 msgid "Envelope PRC9" msgstr "" #: ppdc/sample.c:116 msgid "Envelope PRC9 Long Edge" msgstr "" #: ppdc/sample.c:98 msgid "Envelope Personal" msgstr "" #: ppdc/sample.c:119 msgid "Envelope You4" msgstr "" #: ppdc/sample.c:120 msgid "Envelope You4 Long Edge" msgstr "" #: tools/ippfind.c:2836 msgid "Environment Variables:" msgstr "" #: ppdc/sample.c:251 msgid "Epson" msgstr "" #: cgi-bin/admin.c:3118 msgid "Error Policy" msgstr "" #: filter/rastertopwg.c:467 msgid "Error reading raster data." msgstr "" #: filter/rastertopwg.c:436 filter/rastertopwg.c:457 filter/rastertopwg.c:475 #: filter/rastertopwg.c:486 msgid "Error sending raster data." msgstr "" #: systemv/lpinfo.c:209 systemv/lpmove.c:86 msgid "Error: need hostname after \"-h\" option." msgstr "" #: ppdc/sample.c:122 msgid "European Fanfold" msgstr "" #: ppdc/sample.c:123 msgid "European Fanfold Legal" msgstr "" #: ppdc/sample.c:360 msgid "Every 10 Labels" msgstr "" #: ppdc/sample.c:352 msgid "Every 2 Labels" msgstr "" #: ppdc/sample.c:353 msgid "Every 3 Labels" msgstr "" #: ppdc/sample.c:354 msgid "Every 4 Labels" msgstr "" #: ppdc/sample.c:355 msgid "Every 5 Labels" msgstr "" #: ppdc/sample.c:356 msgid "Every 6 Labels" msgstr "" #: ppdc/sample.c:357 msgid "Every 7 Labels" msgstr "" #: ppdc/sample.c:358 msgid "Every 8 Labels" msgstr "" #: ppdc/sample.c:359 msgid "Every 9 Labels" msgstr "" #: ppdc/sample.c:351 msgid "Every Label" msgstr "" #: ppdc/sample.c:121 msgid "Executive" msgstr "" #: cups/http-support.c:1554 msgid "Expectation Failed" msgstr "" #: tools/ippfind.c:2783 msgid "Expressions:" msgstr "" #: cups/ppd-cache.c:3769 msgid "Fast Grayscale" msgstr "" #: cups/file.c:289 #, c-format msgid "File \"%s\" contains a relative path." msgstr "" #: cups/file.c:264 #, c-format msgid "File \"%s\" has insecure permissions (0%o/uid=%d/gid=%d)." msgstr "" #: cups/file.c:278 #, c-format msgid "File \"%s\" is a directory." msgstr "" #: cups/file.c:250 #, c-format msgid "File \"%s\" not available: %s" msgstr "" #: cups/file.c:236 #, c-format msgid "File \"%s\" permissions OK (0%o/uid=%d/gid=%d)." msgstr "" #: ppdc/sample.c:169 msgid "File Folder" msgstr "" #: scheduler/ipp.c:2387 #, c-format msgid "File device URIs have been disabled. To enable, see the FileDevice directive in \"%s/cups-files.conf\"." msgstr "" #: filter/rastertoepson.c:1131 filter/rastertohp.c:802 #: filter/rastertolabel.c:1260 #, c-format msgid "Finished page %d." msgstr "" #: cups/ppd-cache.c:4375 msgid "Finishing Preset" msgstr "" #: cups/ppd-cache.c:4150 msgid "Fold" msgstr "" #: ppdc/sample.c:125 msgid "Folio" msgstr "" #: cups/http-support.c:1533 msgid "Forbidden" msgstr "" #: cups/http-support.c:1517 msgid "Found" msgstr "" #: cups/ppd.c:758 cups/ppd.c:1287 msgid "General" msgstr "" #: ppdc/sample.c:262 msgid "Generic" msgstr "" #: cups/snmp.c:970 msgid "Get-Response-PDU uses indefinite length" msgstr "" #: ppdc/sample.c:295 msgid "Glossy Paper" msgstr "" #: scheduler/ipp.c:2985 scheduler/ipp.c:3395 scheduler/ipp.c:3933 #: scheduler/ipp.c:6235 scheduler/ipp.c:6382 scheduler/ipp.c:7893 #: scheduler/ipp.c:9032 scheduler/ipp.c:9256 scheduler/ipp.c:9608 #: scheduler/ipp.c:10217 msgid "Got a printer-uri attribute but no job-id." msgstr "" #: cups/ppd-cache.c:3808 msgid "GrayScale" msgstr "" #: cups/ppd-cache.c:3778 cups/ppd-cache.c:3789 ppdc/sample.c:285 msgid "Grayscale" msgstr "" #: ppdc/sample.c:282 msgid "HP" msgstr "" #: ppdc/sample.c:170 msgid "Hanging Folder" msgstr "" #: cups/hash.c:289 msgid "Hash buffer too small." msgstr "" #: cgi-bin/help.c:133 msgid "Help file not in index." msgstr "" #: cups/ppd-cache.c:4494 cups/ppd-cache.c:4563 cups/ppd-cache.c:4594 msgid "High" msgstr "" #: cups/ipp.c:3095 cups/ipp.c:3122 cups/ipp.c:3145 msgid "IPP 1setOf attribute with incompatible value tags." msgstr "" #: cups/ipp.c:3058 msgid "IPP attribute has no name." msgstr "" #: cups/ipp.c:6804 msgid "IPP attribute is not a member of the message." msgstr "" #: cups/ipp.c:3509 msgid "IPP begCollection value not 0 bytes." msgstr "" #: cups/ipp.c:3286 msgid "IPP boolean value not 1 byte." msgstr "" #: cups/ipp.c:3351 msgid "IPP date value not 11 bytes." msgstr "" #: cups/ipp.c:3530 msgid "IPP endCollection value not 0 bytes." msgstr "" #: cups/ipp.c:3261 msgid "IPP enum value not 4 bytes." msgstr "" #: cups/ipp.c:2976 msgid "IPP extension tag larger than 0x7FFFFFFF." msgstr "" #: cups/ipp.c:3258 msgid "IPP integer value not 4 bytes." msgstr "" #: cups/ipp.c:3462 msgid "IPP language length overflows value." msgstr "" #: cups/ipp.c:3471 msgid "IPP language length too large." msgstr "" #: cups/ipp.c:3172 msgid "IPP member name is not empty." msgstr "" #: cups/ipp.c:3556 msgid "IPP memberName value is empty." msgstr "" #: cups/ipp.c:3548 msgid "IPP memberName with no attribute." msgstr "" #: cups/ipp.c:3036 msgid "IPP name larger than 32767 bytes." msgstr "" #: cups/ipp.c:3428 msgid "IPP nameWithLanguage value less than minimum 4 bytes." msgstr "" #: cups/ipp.c:3587 msgid "IPP octetString length too large." msgstr "" #: cups/ipp.c:3396 msgid "IPP rangeOfInteger value not 8 bytes." msgstr "" #: cups/ipp.c:3369 msgid "IPP resolution value not 9 bytes." msgstr "" #: cups/ipp.c:3489 msgid "IPP string length overflows value." msgstr "" #: cups/ipp.c:3424 msgid "IPP textWithLanguage value less than minimum 4 bytes." msgstr "" #: cups/ipp.c:3244 msgid "IPP value larger than 32767 bytes." msgstr "" #: tools/ippfind.c:2837 msgid "IPPFIND_SERVICE_DOMAIN Domain name" msgstr "" #: tools/ippfind.c:2838 msgid "" "IPPFIND_SERVICE_HOSTNAME\n" " Fully-qualified domain name" msgstr "" #: tools/ippfind.c:2840 msgid "IPPFIND_SERVICE_NAME Service instance name" msgstr "" #: tools/ippfind.c:2841 msgid "IPPFIND_SERVICE_PORT Port number" msgstr "" #: tools/ippfind.c:2842 msgid "IPPFIND_SERVICE_REGTYPE DNS-SD registration type" msgstr "" #: tools/ippfind.c:2843 msgid "IPPFIND_SERVICE_SCHEME URI scheme" msgstr "" #: tools/ippfind.c:2844 msgid "IPPFIND_SERVICE_URI URI" msgstr "" #: tools/ippfind.c:2845 msgid "IPPFIND_TXT_* Value of TXT record key" msgstr "" #: ppdc/sample.c:1 msgid "ISOLatin1" msgstr "" #: cups/ppd.c:299 msgid "Illegal control character" msgstr "" #: cups/ppd.c:300 msgid "Illegal main keyword string" msgstr "" #: cups/ppd.c:301 msgid "Illegal option keyword string" msgstr "" #: cups/ppd.c:302 msgid "Illegal translation string" msgstr "" #: cups/ppd.c:303 msgid "Illegal whitespace character" msgstr "" #: ppdc/sample.c:276 msgid "Installable Options" msgstr "" #: ppdc/sample.c:279 msgid "Installed" msgstr "" #: ppdc/sample.c:298 msgid "IntelliBar Label Printer" msgstr "" #: ppdc/sample.c:297 msgid "Intellitech" msgstr "" #: cups/http-support.c:1560 msgid "Internal Server Error" msgstr "" #: cups/ppd.c:290 msgid "Internal error" msgstr "" #: ppdc/sample.c:167 msgid "Internet Postage 2-Part" msgstr "" #: ppdc/sample.c:168 msgid "Internet Postage 3-Part" msgstr "" #: backend/ipp.c:318 msgid "Internet Printing Protocol" msgstr "" #: cups/ipp.c:2996 msgid "Invalid group tag." msgstr "" #: cups/pwg-media.c:288 cups/pwg-media.c:307 msgid "Invalid media name arguments." msgstr "" #: cups/dest-options.c:1232 msgid "Invalid media size." msgstr "" #: cups/ipp.c:3046 msgid "Invalid named IPP attribute in collection." msgstr "" #: scheduler/ipp.c:2706 scheduler/ipp.c:7049 msgid "Invalid ppd-name value." msgstr "" #: filter/commandtops.c:108 #, c-format msgid "Invalid printer command \"%s\"." msgstr "" #: cups/ppd.c:1405 msgid "JCL" msgstr "" #: ppdc/sample.c:53 msgid "JIS B0" msgstr "" #: ppdc/sample.c:55 msgid "JIS B1" msgstr "" #: ppdc/sample.c:54 msgid "JIS B10" msgstr "" #: ppdc/sample.c:56 msgid "JIS B2" msgstr "" #: ppdc/sample.c:57 msgid "JIS B3" msgstr "" #: ppdc/sample.c:58 msgid "JIS B4" msgstr "" #: ppdc/sample.c:59 msgid "JIS B4 Long Edge" msgstr "" #: ppdc/sample.c:60 msgid "JIS B5" msgstr "" #: ppdc/sample.c:61 msgid "JIS B5 Long Edge" msgstr "" #: ppdc/sample.c:62 msgid "JIS B6" msgstr "" #: ppdc/sample.c:63 msgid "JIS B6 Long Edge" msgstr "" #: ppdc/sample.c:64 msgid "JIS B7" msgstr "" #: ppdc/sample.c:65 msgid "JIS B8" msgstr "" #: ppdc/sample.c:66 msgid "JIS B9" msgstr "" #: scheduler/ipp.c:9328 #, c-format msgid "Job #%d cannot be restarted - no files." msgstr "" #: scheduler/ipp.c:3025 scheduler/ipp.c:3259 scheduler/ipp.c:3318 #: scheduler/ipp.c:3497 scheduler/ipp.c:3943 scheduler/ipp.c:5894 #: scheduler/ipp.c:6275 scheduler/ipp.c:6422 scheduler/ipp.c:6759 #: scheduler/ipp.c:7734 scheduler/ipp.c:7756 scheduler/ipp.c:7934 #: scheduler/ipp.c:8162 scheduler/ipp.c:8205 scheduler/ipp.c:9072 #: scheduler/ipp.c:9296 scheduler/ipp.c:9648 scheduler/ipp.c:10257 #, c-format msgid "Job #%d does not exist." msgstr "" #: scheduler/ipp.c:3529 #, c-format msgid "Job #%d is already aborted - can't cancel." msgstr "" #: scheduler/ipp.c:3523 #, c-format msgid "Job #%d is already canceled - can't cancel." msgstr "" #: scheduler/ipp.c:3535 #, c-format msgid "Job #%d is already completed - can't cancel." msgstr "" #: scheduler/ipp.c:7960 scheduler/ipp.c:8247 scheduler/ipp.c:10272 #, c-format msgid "Job #%d is finished and cannot be altered." msgstr "" #: scheduler/ipp.c:9310 #, c-format msgid "Job #%d is not complete." msgstr "" #: scheduler/ipp.c:3040 #, c-format msgid "Job #%d is not held for authentication." msgstr "" #: scheduler/ipp.c:9086 #, c-format msgid "Job #%d is not held." msgstr "" #: cgi-bin/ipp-var.c:1032 msgid "Job Completed" msgstr "" #: cgi-bin/ipp-var.c:1030 msgid "Job Created" msgstr "" #: cgi-bin/ipp-var.c:1036 msgid "Job Options Changed" msgstr "" #: cgi-bin/ipp-var.c:1034 msgid "Job Stopped" msgstr "" #: scheduler/ipp.c:10386 msgid "Job is completed and cannot be changed." msgstr "" #: cgi-bin/jobs.c:186 msgid "Job operation failed" msgstr "" #: scheduler/ipp.c:10422 scheduler/ipp.c:10439 scheduler/ipp.c:10450 msgid "Job state cannot be changed." msgstr "" #: scheduler/ipp.c:9176 msgid "Job subscriptions cannot be renewed." msgstr "" #: cgi-bin/jobs.c:91 cgi-bin/jobs.c:102 cgi-bin/jobs.c:183 msgid "Jobs" msgstr "" #: backend/lpd.c:166 msgid "LPD/LPR Host or Printer" msgstr "" #: cups/dest.c:1859 msgid "LPDEST environment variable names default destination that does not exist." msgstr "" #: ppdc/sample.c:238 msgid "Label Printer" msgstr "" #: ppdc/sample.c:451 msgid "Label Top" msgstr "" #: scheduler/ipp.c:2071 scheduler/ipp.c:5798 #, c-format msgid "Language \"%s\" not supported." msgstr "" #: ppdc/sample.c:164 msgid "Large Address" msgstr "" #: ppdc/sample.c:296 msgid "LaserJet Series PCL 4/5" msgstr "" #: ppdc/sample.c:43 msgid "Letter Oversize" msgstr "" #: ppdc/sample.c:44 msgid "Letter Oversize Long Edge" msgstr "" #: ppdc/sample.c:247 msgid "Light" msgstr "" #: cups/ppd.c:298 msgid "Line longer than the maximum allowed (255 characters)" msgstr "" #: cgi-bin/admin.c:1957 msgid "List Available Printers" msgstr "" #: tools/ippeveprinter.c:670 #, c-format msgid "Listening on port %d." msgstr "" #: scheduler/ipp.c:5507 msgid "Local printer created." msgstr "" #: cups/ppd-cache.c:3888 ppdc/sample.c:274 msgid "Long-Edge (Portrait)" msgstr "" #: cups/http-support.c:1884 msgid "Looking for printer." msgstr "" #: ppdc/sample.c:244 msgid "Main Roll" msgstr "" #: ppdc/sample.c:270 msgid "Manual Feed" msgstr "" #: cups/ppd.c:805 cups/ppd.c:1342 msgid "Media Size" msgstr "" #: cups/ppd.c:809 cups/ppd.c:1346 ppdc/sample.c:243 msgid "Media Source" msgstr "" #: ppdc/sample.c:369 msgid "Media Tracking" msgstr "" #: cups/ppd.c:807 cups/ppd.c:1344 ppdc/sample.c:290 msgid "Media Type" msgstr "" #: ppdc/sample.c:248 msgid "Medium" msgstr "" #: cups/ppd.c:287 msgid "Memory allocation error" msgstr "" #: cups/ppd.c:307 msgid "Missing CloseGroup" msgstr "" #: cups/ppd.c:309 msgid "Missing CloseUI/JCLCloseUI" msgstr "" #: cups/ppd.c:288 msgid "Missing PPD-Adobe-4.x header" msgstr "" #: cups/ppd.c:297 msgid "Missing asterisk in column 1" msgstr "" #: scheduler/ipp.c:6298 msgid "Missing document-number attribute." msgstr "" #: cgi-bin/admin.c:502 cgi-bin/admin.c:1805 cgi-bin/admin.c:1890 #: cgi-bin/admin.c:2296 cgi-bin/admin.c:2550 cgi-bin/admin.c:2661 #: cgi-bin/admin.c:3374 msgid "Missing form variable" msgstr "" #: scheduler/ipp.c:9702 msgid "Missing last-document attribute in request." msgstr "" #: cups/pwg-media.c:547 msgid "Missing media or media-col." msgstr "" #: cups/pwg-media.c:466 msgid "Missing media-size in media-col." msgstr "" #: scheduler/ipp.c:6899 msgid "Missing notify-subscription-ids attribute." msgstr "" #: cups/ppd.c:305 msgid "Missing option keyword" msgstr "" #: scheduler/ipp.c:3166 scheduler/ipp.c:3191 msgid "Missing requesting-user-name attribute." msgstr "" #: scheduler/ipp.c:5424 scheduler/ipp.c:5450 #, c-format msgid "Missing required attribute \"%s\"." msgstr "" #: scheduler/ipp.c:348 msgid "Missing required attributes." msgstr "" #: cups/http-support.c:1650 msgid "Missing resource in URI" msgstr "" #: cups/http-support.c:1644 msgid "Missing scheme in URI" msgstr "" #: cups/ppd.c:289 msgid "Missing value string" msgstr "" #: cups/pwg-media.c:454 msgid "Missing x-dimension in media-size." msgstr "" #: cups/pwg-media.c:460 msgid "Missing y-dimension in media-size." msgstr "" #: systemv/lpinfo.c:444 systemv/lpinfo.c:468 #, c-format msgid "" "Model: name = %s\n" " natural_language = %s\n" " make-and-model = %s\n" " device-id = %s" msgstr "" #: tools/ippfind.c:2815 msgid "Modifiers:" msgstr "" #: cgi-bin/admin.c:336 msgid "Modify Class" msgstr "" #: cgi-bin/admin.c:649 msgid "Modify Printer" msgstr "" #: cgi-bin/ipp-var.c:407 cgi-bin/ipp-var.c:498 msgid "Move All Jobs" msgstr "" #: cgi-bin/ipp-var.c:346 cgi-bin/ipp-var.c:405 cgi-bin/ipp-var.c:496 msgid "Move Job" msgstr "" #: cups/http-support.c:1514 msgid "Moved Permanently" msgstr "" #: cups/ppd.c:286 msgid "NULL PPD file pointer" msgstr "" #: cups/snmp.c:1007 msgid "Name OID uses indefinite length" msgstr "" #: scheduler/ipp.c:1057 msgid "Nested classes are not allowed." msgstr "" #: ppdc/sample.c:435 msgid "Never" msgstr "" #: cups/tls-darwin.c:665 cups/tls-gnutls.c:525 msgid "New credentials are not valid for name." msgstr "" #: cups/tls-darwin.c:655 cups/tls-gnutls.c:515 msgid "New credentials are older than stored credentials." msgstr "" #: cups/ppd.c:2030 msgid "No" msgstr "" #: cups/http-support.c:1511 msgid "No Content" msgstr "" #: cups/ppd-cache.c:3078 msgid "No IPP attributes." msgstr "" #: cups/ppd-util.c:489 msgid "No PPD name" msgstr "" #: cups/snmp.c:1001 msgid "No VarBind SEQUENCE" msgstr "" #: cups/request.c:550 cups/request.c:922 msgid "No active connection" msgstr "" #: cups/request.c:331 msgid "No active connection." msgstr "" #: scheduler/ipp.c:3446 #, c-format msgid "No active jobs on %s." msgstr "" #: scheduler/ipp.c:208 msgid "No attributes in request." msgstr "" #: scheduler/ipp.c:3067 msgid "No authentication information provided." msgstr "" #: cups/tls-darwin.c:605 cups/tls-gnutls.c:462 msgid "No common name specified." msgstr "" #: cups/snmp.c:958 msgid "No community name" msgstr "" #: cups/dest.c:1863 cups/dest.c:1875 msgid "No default destination." msgstr "" #: scheduler/ipp.c:6098 msgid "No default printer." msgstr "" #: cgi-bin/ipp-var.c:418 scheduler/ipp.c:7480 msgid "No destinations added." msgstr "" #: backend/usb.c:187 msgid "No device URI found in argv[0] or in DEVICE_URI environment variable." msgstr "" #: cups/snmp.c:988 msgid "No error-index" msgstr "" #: cups/snmp.c:980 msgid "No error-status" msgstr "" #: scheduler/ipp.c:8452 scheduler/ipp.c:9716 msgid "No file in print request." msgstr "" #: cups/ppd-util.c:162 msgid "No modification time" msgstr "" #: cups/snmp.c:1005 msgid "No name OID" msgstr "" #: filter/rastertoepson.c:1161 filter/rastertohp.c:833 #: filter/rastertolabel.c:1289 msgid "No pages were found." msgstr "" #: cups/ppd-util.c:155 msgid "No printer name" msgstr "" #: cups/ppd-util.c:658 msgid "No printer-uri found" msgstr "" #: cups/ppd-util.c:642 msgid "No printer-uri found for class" msgstr "" #: scheduler/ipp.c:6505 msgid "No printer-uri in request." msgstr "" #: cups/http.c:2218 msgid "No request URI." msgstr "" #: cups/http.c:2235 msgid "No request protocol version." msgstr "" #: cups/request.c:339 msgid "No request sent." msgstr "" #: cups/snmp.c:972 msgid "No request-id" msgstr "" #: cups/tls-darwin.c:685 cups/tls-gnutls.c:545 msgid "No stored credentials, not valid for name." msgstr "" #: scheduler/ipp.c:5683 msgid "No subscription attributes in request." msgstr "" #: scheduler/ipp.c:7833 msgid "No subscriptions found." msgstr "" #: cups/snmp.c:996 msgid "No variable-bindings SEQUENCE" msgstr "" #: cups/snmp.c:951 msgid "No version number" msgstr "" #: ppdc/sample.c:372 msgid "Non-continuous (Mark sensing)" msgstr "" #: ppdc/sample.c:371 msgid "Non-continuous (Web sensing)" msgstr "" #: cups/ppd-cache.c:4075 cups/ppd-cache.c:4153 cups/ppd-cache.c:4241 #: cups/ppd-cache.c:4331 cups/ppd-cache.c:4378 msgid "None" msgstr "" #: cups/ppd-cache.c:4491 cups/ppd-cache.c:4557 cups/ppd-cache.c:4591 #: ppdc/sample.c:249 msgid "Normal" msgstr "" #: cups/http-support.c:1536 msgid "Not Found" msgstr "" #: cups/http-support.c:1548 msgid "Not Implemented" msgstr "" #: ppdc/sample.c:278 msgid "Not Installed" msgstr "" #: cups/http-support.c:1523 msgid "Not Modified" msgstr "" #: cups/http-support.c:1551 msgid "Not Supported" msgstr "" #: scheduler/ipp.c:1511 scheduler/ipp.c:10976 msgid "Not allowed to print." msgstr "" #: ppdc/sample.c:146 msgid "Note" msgstr "" #: cups/http-support.c:1502 cups/http-support.c:1641 cups/ppd.c:284 msgid "OK" msgstr "" #: cups/ppd-cache.c:3888 ppdc/sample.c:273 msgid "Off (1-Sided)" msgstr "" #: ppdc/sample.c:366 msgid "Oki" msgstr "" #: cgi-bin/help.c:81 cgi-bin/help.c:122 cgi-bin/help.c:132 cgi-bin/help.c:162 msgid "Online Help" msgstr "" #: scheduler/ipp.c:5403 msgid "Only local users can create a local printer." msgstr "" #: cups/adminutil.c:202 #, c-format msgid "Open of %s failed: %s" msgstr "" #: cups/ppd.c:292 msgid "OpenGroup without a CloseGroup first" msgstr "" #: cups/ppd.c:294 msgid "OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first" msgstr "" #: cgi-bin/admin.c:3145 msgid "Operation Policy" msgstr "" #: filter/pstops.c:2174 #, c-format msgid "Option \"%s\" cannot be included via %%%%IncludeFeature." msgstr "" #: cgi-bin/admin.c:2792 cgi-bin/admin.c:2876 msgid "Options Installed" msgstr "" #: berkeley/lpq.c:643 berkeley/lpr.c:437 berkeley/lprm.c:233 #: scheduler/cupsfilter.c:1563 scheduler/main.c:2145 systemv/cancel.c:402 #: systemv/cupsaccept.c:244 systemv/cupsctl.c:232 systemv/cupstestppd.c:3857 #: systemv/lp.c:753 systemv/lpadmin.c:1621 systemv/lpinfo.c:498 #: systemv/lpmove.c:217 systemv/lpoptions.c:538 systemv/lpstat.c:2045 #: tools/ippeveprinter.c:8344 tools/ippfind.c:2777 tools/ipptool.c:4337 #: ppdc/ppdc.cxx:426 ppdc/ppdhtml.cxx:173 ppdc/ppdi.cxx:119 #: ppdc/ppdmerge.cxx:356 ppdc/ppdpo.cxx:243 msgid "Options:" msgstr "" #: cups/dest-localization.c:169 msgid "Other Media" msgstr "" #: cups/dest-localization.c:167 msgid "Other Tray" msgstr "" #: cups/ppd-cache.c:491 msgid "Out of date PPD cache file." msgstr "" #: cups/ppd-cache.c:1936 msgid "Out of memory." msgstr "" #: cups/ppd.c:811 cups/ppd.c:1348 msgid "Output Mode" msgstr "" #: ppdc/sample.c:263 msgid "PCL Laser Printer" msgstr "" #: ppdc/sample.c:149 msgid "PRC16K" msgstr "" #: ppdc/sample.c:150 msgid "PRC16K Long Edge" msgstr "" #: ppdc/sample.c:151 msgid "PRC32K" msgstr "" #: ppdc/sample.c:154 msgid "PRC32K Long Edge" msgstr "" #: ppdc/sample.c:152 msgid "PRC32K Oversize" msgstr "" #: ppdc/sample.c:153 msgid "PRC32K Oversize Long Edge" msgstr "" #: cups/dest.c:1861 msgid "PRINTER environment variable names default destination that does not exist." msgstr "" #: cups/snmp.c:968 msgid "Packet does not contain a Get-Response-PDU" msgstr "" #: cups/snmp.c:947 msgid "Packet does not start with SEQUENCE" msgstr "" #: ppdc/sample.c:365 msgid "ParamCustominCutInterval" msgstr "" #: ppdc/sample.c:363 msgid "ParamCustominTearInterval" msgstr "" #: cups/auth.c:238 cups/auth.c:397 #, c-format msgid "Password for %s on %s? " msgstr "" #: cgi-bin/classes.c:153 msgid "Pause Class" msgstr "" #: cgi-bin/printers.c:156 msgid "Pause Printer" msgstr "" #: ppdc/sample.c:453 msgid "Peel-Off" msgstr "" #: ppdc/sample.c:160 msgid "Photo" msgstr "" #: ppdc/sample.c:161 msgid "Photo Labels" msgstr "" #: ppdc/sample.c:291 msgid "Plain Paper" msgstr "" #: cgi-bin/admin.c:2810 cgi-bin/admin.c:3094 msgid "Policies" msgstr "" #: cgi-bin/admin.c:2817 cgi-bin/admin.c:3163 cgi-bin/admin.c:3176 msgid "Port Monitor" msgstr "" #: ppdc/sample.c:280 msgid "PostScript Printer" msgstr "" #: ppdc/sample.c:147 msgid "Postcard" msgstr "" #: ppdc/sample.c:71 msgid "Postcard Double" msgstr "" #: ppdc/sample.c:72 msgid "Postcard Double Long Edge" msgstr "" #: ppdc/sample.c:148 msgid "Postcard Long Edge" msgstr "" #: backend/ipp.c:972 backend/ipp.c:980 msgid "Preparing to print." msgstr "" #: ppdc/sample.c:300 msgid "Print Density" msgstr "" #: cups/notify.c:69 msgid "Print Job:" msgstr "" #: ppdc/sample.c:345 msgid "Print Mode" msgstr "" #: cups/ppd-cache.c:4485 cups/ppd-cache.c:4547 cups/ppd-cache.c:4587 msgid "Print Quality" msgstr "" #: ppdc/sample.c:388 msgid "Print Rate" msgstr "" #: cgi-bin/printers.c:165 msgid "Print Self-Test Page" msgstr "" #: ppdc/sample.c:332 msgid "Print Speed" msgstr "" #: cgi-bin/ipp-var.c:774 msgid "Print Test Page" msgstr "" #: ppdc/sample.c:361 msgid "Print and Cut" msgstr "" #: ppdc/sample.c:349 msgid "Print and Tear" msgstr "" #: backend/socket.c:406 backend/usb-unix.c:177 msgid "Print file sent." msgstr "" #: backend/ipp.c:2270 msgid "Print job canceled at printer." msgstr "" #: backend/ipp.c:2262 msgid "Print job too large." msgstr "" #: backend/ipp.c:1722 msgid "Print job was not accepted." msgstr "" #: scheduler/ipp.c:5469 #, c-format msgid "Printer \"%s\" already exists." msgstr "" #: cgi-bin/ipp-var.c:1024 msgid "Printer Added" msgstr "" #: ppdc/sample.c:265 msgid "Printer Default" msgstr "" #: cgi-bin/ipp-var.c:1028 msgid "Printer Deleted" msgstr "" #: cgi-bin/ipp-var.c:1026 msgid "Printer Modified" msgstr "" #: cgi-bin/ipp-var.c:1022 msgid "Printer Paused" msgstr "" #: ppdc/sample.c:299 msgid "Printer Settings" msgstr "" #: backend/ipp.c:2265 msgid "Printer cannot print supplied content." msgstr "" #: backend/ipp.c:2268 msgid "Printer cannot print with supplied options." msgstr "" #: cups/ppd-cache.c:4760 msgid "Printer does not support required IPP attributes or document formats." msgstr "" #: cups/notify.c:113 msgid "Printer:" msgstr "" #: cgi-bin/printers.c:190 cgi-bin/printers.c:317 msgid "Printers" msgstr "" #: filter/rastertoepson.c:1107 filter/rastertohp.c:774 #: filter/rastertolabel.c:1236 #, c-format msgid "Printing page %d, %u%% complete." msgstr "" #: cups/ppd-cache.c:4238 msgid "Punch" msgstr "" #: ppdc/sample.c:155 msgid "Quarto" msgstr "" #: scheduler/ipp.c:1506 scheduler/ipp.c:10971 msgid "Quota limit reached." msgstr "" #: berkeley/lpq.c:496 msgid "Rank Owner Job File(s) Total Size" msgstr "" #: cgi-bin/classes.c:157 cgi-bin/printers.c:160 msgid "Reject Jobs" msgstr "" #: backend/lpd.c:1078 backend/lpd.c:1210 #, c-format msgid "Remote host did not accept control file (%d)." msgstr "" #: backend/lpd.c:1163 #, c-format msgid "Remote host did not accept data file (%d)." msgstr "" #: ppdc/sample.c:433 msgid "Reprint After Error" msgstr "" #: cups/http-support.c:1539 msgid "Request Entity Too Large" msgstr "" #: cups/ppd.c:813 cups/ppd.c:1350 ppdc/sample.c:239 msgid "Resolution" msgstr "" #: cgi-bin/classes.c:151 msgid "Resume Class" msgstr "" #: cgi-bin/printers.c:153 msgid "Resume Printer" msgstr "" #: ppdc/sample.c:165 msgid "Return Address" msgstr "" #: ppdc/sample.c:454 msgid "Rewind" msgstr "" #: cups/snmp.c:949 msgid "SEQUENCE uses indefinite length" msgstr "" #: cups/http-support.c:1563 msgid "SSL/TLS Negotiation Error" msgstr "" #: ppdc/sample.c:245 msgid "Second Roll (DUO/Twin Only)" msgstr "" #: cups/http-support.c:1520 msgid "See Other" msgstr "" #: scheduler/ipp.c:7103 scheduler/ipp.c:7122 msgid "See remote printer." msgstr "" #: cups/tls-darwin.c:740 cups/tls-gnutls.c:607 msgid "Self-signed credentials are blocked." msgstr "" #: backend/usb-darwin.c:566 backend/usb-libusb.c:343 msgid "Sending data to printer." msgstr "" #: cgi-bin/ipp-var.c:1038 msgid "Server Restarted" msgstr "" #: cgi-bin/ipp-var.c:1044 msgid "Server Security Auditing" msgstr "" #: cgi-bin/ipp-var.c:1040 msgid "Server Started" msgstr "" #: cgi-bin/ipp-var.c:1042 msgid "Server Stopped" msgstr "" #: cups/tls-darwin.c:1250 cups/tls-gnutls.c:1300 msgid "Server credentials not set." msgstr "" #: cups/http-support.c:1557 msgid "Service Unavailable" msgstr "" #: cgi-bin/admin.c:2297 cgi-bin/admin.c:2343 cgi-bin/admin.c:2500 #: cgi-bin/admin.c:2519 msgid "Set Allowed Users" msgstr "" #: cgi-bin/admin.c:2546 msgid "Set As Server Default" msgstr "" #: cgi-bin/admin.c:2646 msgid "Set Class Options" msgstr "" #: cgi-bin/admin.c:2646 cgi-bin/admin.c:2820 cgi-bin/admin.c:3205 msgid "Set Printer Options" msgstr "" #: cgi-bin/admin.c:3375 cgi-bin/admin.c:3419 cgi-bin/admin.c:3437 msgid "Set Publishing" msgstr "" #: ppdc/sample.c:166 msgid "Shipping Address" msgstr "" #: cups/ppd-cache.c:3888 ppdc/sample.c:275 msgid "Short-Edge (Landscape)" msgstr "" #: ppdc/sample.c:293 msgid "Special Paper" msgstr "" #: backend/lpd.c:1119 #, c-format msgid "Spooling job, %.0f%% complete." msgstr "" #: ppdc/sample.c:346 msgid "Standard" msgstr "" #: cups/ppd-cache.c:4072 msgid "Staple" msgstr "" #. TRANSLATORS: Banner/cover sheet before the print job. #: cgi-bin/admin.c:3066 msgid "Starting Banner" msgstr "" #: filter/rastertoepson.c:1083 filter/rastertohp.c:750 #: filter/rastertolabel.c:1212 #, c-format msgid "Starting page %d." msgstr "" #: ppdc/sample.c:156 msgid "Statement" msgstr "" #: scheduler/ipp.c:3592 scheduler/ipp.c:6915 scheduler/ipp.c:7640 #: scheduler/ipp.c:9164 #, c-format msgid "Subscription #%d does not exist." msgstr "" #: tools/ippfind.c:2826 msgid "Substitutions:" msgstr "" #: ppdc/sample.c:157 msgid "Super A" msgstr "" #: ppdc/sample.c:158 msgid "Super B" msgstr "" #: ppdc/sample.c:162 msgid "Super B/A3" msgstr "" #: cups/http-support.c:1499 msgid "Switching Protocols" msgstr "" #: ppdc/sample.c:159 msgid "Tabloid" msgstr "" #: ppdc/sample.c:45 msgid "Tabloid Oversize" msgstr "" #: ppdc/sample.c:46 msgid "Tabloid Oversize Long Edge" msgstr "" #: ppdc/sample.c:347 msgid "Tear" msgstr "" #: ppdc/sample.c:452 msgid "Tear-Off" msgstr "" #: ppdc/sample.c:393 msgid "Tear-Off Adjust Position" msgstr "" #: scheduler/ipp.c:1342 #, c-format msgid "The \"%s\" attribute is required for print jobs." msgstr "" #: scheduler/ipp.c:6576 scheduler/ipp.c:6656 scheduler/ipp.c:6669 #: scheduler/ipp.c:6681 scheduler/ipp.c:6696 #, c-format msgid "The %s attribute cannot be provided with job-ids." msgstr "" #: scheduler/ipp.c:1321 #, c-format msgid "The '%s' Job Status attribute cannot be supplied in a job creation request." msgstr "" #: scheduler/ipp.c:5198 #, c-format msgid "The '%s' operation attribute cannot be supplied in a Create-Job request." msgstr "" #: scheduler/ipp.c:7145 #, c-format msgid "The PPD file \"%s\" could not be found." msgstr "" #: scheduler/ipp.c:7134 #, c-format msgid "The PPD file \"%s\" could not be opened: %s" msgstr "" #: filter/rastertoepson.c:1052 filter/rastertohp.c:721 #: filter/rastertolabel.c:1176 msgid "The PPD file could not be opened." msgstr "" #: cgi-bin/admin.c:515 msgid "The class name may only contain up to 127 printable characters and may not contain spaces, slashes (/), or the pound sign (#)." msgstr "" #: scheduler/ipp.c:2098 msgid "The notify-lease-duration attribute cannot be used with job subscriptions." msgstr "" #: scheduler/ipp.c:2081 scheduler/ipp.c:5808 #, c-format msgid "The notify-user-data value is too large (%d > 63 octets)." msgstr "" #: backend/ipp.c:992 msgid "The printer configuration is incorrect or the printer no longer exists." msgstr "" #: backend/lpd.c:682 backend/lpd.c:1071 backend/lpd.c:1153 backend/lpd.c:1203 msgid "The printer did not respond." msgstr "" #: backend/ipp.c:765 backend/ipp.c:955 backend/ipp.c:1069 backend/ipp.c:1524 #: backend/ipp.c:1694 backend/lpd.c:890 backend/socket.c:354 #: backend/usb-unix.c:117 backend/usb-unix.c:407 backend/usb-unix.c:490 msgid "The printer is in use." msgstr "" #: backend/runloop.c:236 backend/runloop.c:356 msgid "The printer is not connected." msgstr "" #: backend/ipp.c:743 backend/ipp.c:776 backend/ipp.c:951 backend/lpd.c:869 #: backend/lpd.c:910 backend/socket.c:333 backend/socket.c:366 msgid "The printer is not responding." msgstr "" #: backend/runloop.c:378 msgid "The printer is now connected." msgstr "" #: backend/usb-darwin.c:1342 msgid "The printer is now online." msgstr "" #: backend/usb-darwin.c:1381 msgid "The printer is offline." msgstr "" #: backend/ipp.c:759 backend/lpd.c:884 backend/socket.c:348 msgid "The printer is unreachable at this time." msgstr "" #: backend/ipp.c:752 backend/lpd.c:877 backend/socket.c:341 msgid "The printer may not exist or is unavailable at this time." msgstr "" #: cgi-bin/admin.c:698 msgid "The printer name may only contain up to 127 printable characters and may not contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the pound sign (#)." msgstr "" #: cups/dest.c:1844 scheduler/ipp.c:763 scheduler/ipp.c:1048 #: scheduler/ipp.c:3231 scheduler/ipp.c:3412 scheduler/ipp.c:5181 #: scheduler/ipp.c:5642 scheduler/ipp.c:5976 scheduler/ipp.c:6542 #: scheduler/ipp.c:7349 scheduler/ipp.c:7405 scheduler/ipp.c:7746 #: scheduler/ipp.c:8021 scheduler/ipp.c:8110 scheduler/ipp.c:8143 #: scheduler/ipp.c:8467 scheduler/ipp.c:8874 scheduler/ipp.c:8956 #: scheduler/ipp.c:10126 scheduler/ipp.c:10588 scheduler/ipp.c:10934 #: scheduler/ipp.c:11016 scheduler/ipp.c:11345 msgid "The printer or class does not exist." msgstr "" #: scheduler/ipp.c:1260 msgid "The printer or class is not shared." msgstr "" #: scheduler/ipp.c:869 scheduler/ipp.c:2262 #, c-format msgid "The printer-uri \"%s\" contains invalid characters." msgstr "" #: scheduler/ipp.c:3208 msgid "The printer-uri attribute is required." msgstr "" #: scheduler/ipp.c:853 msgid "The printer-uri must be of the form \"ipp://HOSTNAME/classes/CLASSNAME\"." msgstr "" #: scheduler/ipp.c:2246 msgid "The printer-uri must be of the form \"ipp://HOSTNAME/printers/PRINTERNAME\"." msgstr "" #: scheduler/client.c:2004 msgid "The web interface is currently disabled. Run \"cupsctl WebInterface=yes\" to enable it." msgstr "" #: scheduler/ipp.c:6640 #, c-format msgid "The which-jobs value \"%s\" is not supported." msgstr "" #: scheduler/ipp.c:5905 msgid "There are too many subscriptions." msgstr "" #: backend/usb-darwin.c:398 backend/usb-darwin.c:464 backend/usb-darwin.c:528 #: backend/usb-darwin.c:549 backend/usb-libusb.c:268 backend/usb-libusb.c:322 msgid "There was an unrecoverable USB error." msgstr "" #: ppdc/sample.c:440 msgid "Thermal Transfer Media" msgstr "" #: scheduler/ipp.c:1500 msgid "Too many active jobs." msgstr "" #: scheduler/ipp.c:1394 #, c-format msgid "Too many job-sheets values (%d > 2)." msgstr "" #: scheduler/ipp.c:2575 #, c-format msgid "Too many printer-state-reasons values (%d > %d)." msgstr "" #: ppdc/sample.c:294 msgid "Transparency" msgstr "" #: ppdc/sample.c:289 msgid "Tray" msgstr "" #: ppdc/sample.c:266 msgid "Tray 1" msgstr "" #: ppdc/sample.c:267 msgid "Tray 2" msgstr "" #: ppdc/sample.c:268 msgid "Tray 3" msgstr "" #: ppdc/sample.c:269 msgid "Tray 4" msgstr "" #: cups/tls-darwin.c:645 cups/tls-darwin.c:727 cups/tls-gnutls.c:505 #: cups/tls-gnutls.c:587 msgid "Trust on first use is disabled." msgstr "" #: cups/http-support.c:1542 msgid "URI Too Long" msgstr "" #: cups/http-support.c:1617 msgid "URI too large" msgstr "" #: ppdc/sample.c:124 msgid "US Fanfold" msgstr "" #: ppdc/sample.c:138 msgid "US Ledger" msgstr "" #: ppdc/sample.c:139 msgid "US Legal" msgstr "" #: ppdc/sample.c:140 msgid "US Legal Oversize" msgstr "" #: ppdc/sample.c:141 msgid "US Letter" msgstr "" #: ppdc/sample.c:142 msgid "US Letter Long Edge" msgstr "" #: ppdc/sample.c:143 msgid "US Letter Oversize" msgstr "" #: ppdc/sample.c:144 msgid "US Letter Oversize Long Edge" msgstr "" #: ppdc/sample.c:145 msgid "US Letter Small" msgstr "" #: cgi-bin/admin.c:1658 cgi-bin/admin.c:1671 cgi-bin/admin.c:1695 msgid "Unable to access cupsd.conf file" msgstr "" #: cgi-bin/help.c:123 msgid "Unable to access help file." msgstr "" #: cgi-bin/admin.c:580 msgid "Unable to add class" msgstr "" #: backend/ipp.c:1887 msgid "Unable to add document to print job." msgstr "" #: scheduler/ipp.c:1575 #, c-format msgid "Unable to add job for destination \"%s\"." msgstr "" #: cgi-bin/admin.c:830 cgi-bin/admin.c:1200 msgid "Unable to add printer" msgstr "" #: scheduler/ipp.c:1178 msgid "Unable to allocate memory for file types." msgstr "" #: filter/pstops.c:415 msgid "Unable to allocate memory for page info" msgstr "" #: filter/pstops.c:409 msgid "Unable to allocate memory for pages array" msgstr "" #: tools/ippeveprinter.c:1664 msgid "Unable to allocate memory for printer" msgstr "" #: backend/ipp.c:2173 backend/ipp.c:2705 msgid "Unable to cancel print job." msgstr "" #: cgi-bin/admin.c:2501 msgid "Unable to change printer" msgstr "" #: cgi-bin/admin.c:3420 msgid "Unable to change printer-is-shared attribute" msgstr "" #: cgi-bin/admin.c:1356 cgi-bin/admin.c:1498 msgid "Unable to change server settings" msgstr "" #: cups/ipp.c:5181 #, c-format msgid "Unable to compile mimeMediaType regular expression: %s." msgstr "" #: cups/ipp.c:5136 #, c-format msgid "Unable to compile naturalLanguage regular expression: %s." msgstr "" #: filter/commandtops.c:401 msgid "Unable to configure printer options." msgstr "" #: cups/adminutil.c:158 cups/request.c:1059 msgid "Unable to connect to host." msgstr "" #: backend/ipp.c:722 backend/ipp.c:1274 backend/lpd.c:850 backend/socket.c:314 #: backend/usb-unix.c:103 msgid "Unable to contact printer, queuing on next printer in class." msgstr "" #: scheduler/ipp.c:2677 #, c-format msgid "Unable to copy PPD file - %s" msgstr "" #: scheduler/ipp.c:2722 msgid "Unable to copy PPD file." msgstr "" #: cups/tls-darwin.c:611 cups/tls-gnutls.c:468 msgid "Unable to create credentials from array." msgstr "" #: cups/ppd-util.c:573 cups/util.c:478 msgid "Unable to create printer-uri" msgstr "" #: scheduler/ipp.c:5479 msgid "Unable to create printer." msgstr "" #: cups/tls-darwin.c:1541 cups/tls-gnutls.c:1512 msgid "Unable to create server credentials." msgstr "" #: tools/ippeveprinter.c:692 #, c-format msgid "Unable to create spool directory \"%s\": %s" msgstr "" #: cgi-bin/admin.c:1549 cgi-bin/admin.c:1561 scheduler/cupsfilter.c:1375 msgid "Unable to create temporary file" msgstr "" #: cgi-bin/admin.c:1852 msgid "Unable to delete class" msgstr "" #: cgi-bin/admin.c:1937 msgid "Unable to delete printer" msgstr "" #: cgi-bin/classes.c:246 cgi-bin/printers.c:255 msgid "Unable to do maintenance command" msgstr "" #: cgi-bin/admin.c:1673 msgid "Unable to edit cupsd.conf files larger than 1MB" msgstr "" #: cups/tls-darwin.c:1768 #, c-format msgid "Unable to establish a secure connection to host (%d)." msgstr "" #: cups/tls-darwin.c:1729 msgid "Unable to establish a secure connection to host (certificate chain invalid)." msgstr "" #: cups/tls-darwin.c:1719 msgid "Unable to establish a secure connection to host (certificate not yet valid)." msgstr "" #: cups/tls-darwin.c:1714 msgid "Unable to establish a secure connection to host (expired certificate)." msgstr "" #: cups/tls-darwin.c:1724 msgid "Unable to establish a secure connection to host (host name mismatch)." msgstr "" #: cups/tls-darwin.c:1734 msgid "Unable to establish a secure connection to host (peer dropped connection before responding)." msgstr "" #: cups/tls-darwin.c:1709 msgid "Unable to establish a secure connection to host (self-signed certificate)." msgstr "" #: cups/tls-darwin.c:1704 msgid "Unable to establish a secure connection to host (untrusted certificate)." msgstr "" #: cups/tls-sspi.c:1277 cups/tls-sspi.c:1294 msgid "Unable to establish a secure connection to host." msgstr "" #: tools/ippeveprinter.c:1639 tools/ippeveprinter.c:1649 #, c-format msgid "Unable to execute command \"%s\": %s" msgstr "" #: cgi-bin/ipp-var.c:347 msgid "Unable to find destination for job" msgstr "" #: cups/http-support.c:2108 msgid "Unable to find printer." msgstr "" #: cups/tls-darwin.c:1554 msgid "Unable to find server credentials." msgstr "" #: backend/ipp.c:3397 msgid "Unable to get backend exit status." msgstr "" #: cgi-bin/classes.c:426 msgid "Unable to get class list" msgstr "" #: cgi-bin/classes.c:525 msgid "Unable to get class status" msgstr "" #: cgi-bin/admin.c:1094 msgid "Unable to get list of printer drivers" msgstr "" #: cgi-bin/admin.c:2351 msgid "Unable to get printer attributes" msgstr "" #: cgi-bin/printers.c:443 msgid "Unable to get printer list" msgstr "" #: cgi-bin/printers.c:545 msgid "Unable to get printer status" msgstr "" #: backend/ipp.c:1016 msgid "Unable to get printer status." msgstr "" #: cgi-bin/help.c:82 msgid "Unable to load help index." msgstr "" #: backend/network.c:69 #, c-format msgid "Unable to locate printer \"%s\"." msgstr "" #: backend/dnssd.c:753 backend/ipp.c:335 backend/lpd.c:185 #: backend/socket.c:155 msgid "Unable to locate printer." msgstr "" #: cgi-bin/admin.c:579 msgid "Unable to modify class" msgstr "" #: cgi-bin/admin.c:829 cgi-bin/admin.c:1199 msgid "Unable to modify printer" msgstr "" #: cgi-bin/ipp-var.c:414 cgi-bin/ipp-var.c:503 msgid "Unable to move job" msgstr "" #: cgi-bin/ipp-var.c:416 cgi-bin/ipp-var.c:505 msgid "Unable to move jobs" msgstr "" #: cgi-bin/admin.c:2697 cups/ppd.c:285 msgid "Unable to open PPD file" msgstr "" #: cgi-bin/admin.c:2168 msgid "Unable to open cupsd.conf file:" msgstr "" #: backend/usb-unix.c:127 msgid "Unable to open device file" msgstr "" #: scheduler/ipp.c:6319 #, c-format msgid "Unable to open document #%d in job #%d." msgstr "" #: cgi-bin/help.c:356 msgid "Unable to open help file." msgstr "" #: backend/ipp.c:376 backend/ipp.c:1621 backend/ipp.c:1834 backend/lpd.c:473 #: backend/socket.c:142 backend/usb.c:224 filter/gziptoany.c:65 #: filter/pstops.c:262 msgid "Unable to open print file" msgstr "" #: filter/rastertoepson.c:1012 filter/rastertohp.c:681 #: filter/rastertolabel.c:1134 msgid "Unable to open raster file" msgstr "" #: cgi-bin/ipp-var.c:777 msgid "Unable to print test page" msgstr "" #: backend/runloop.c:78 backend/runloop.c:307 backend/usb-darwin.c:636 #: backend/usb-darwin.c:680 backend/usb-libusb.c:413 backend/usb-libusb.c:448 msgid "Unable to read print data." msgstr "" #: tools/ippeveprinter.c:7269 tools/ippeveprinter.c:7290 #: tools/ippeveprinter.c:7312 tools/ippeveprinter.c:7329 #, c-format msgid "Unable to register \"%s.%s\": %d" msgstr "" #: scheduler/ipp.c:8626 scheduler/ipp.c:9869 msgid "Unable to rename job document file." msgstr "" #: cups/dest.c:3256 msgid "Unable to resolve printer-uri." msgstr "" #: filter/pstops.c:527 msgid "Unable to see in file" msgstr "" #: cgi-bin/ipp-var.c:580 cgi-bin/ipp-var.c:600 msgid "Unable to send command to printer driver" msgstr "" #: backend/usb-darwin.c:758 backend/usb-libusb.c:524 msgid "Unable to send data to printer." msgstr "" #: cgi-bin/admin.c:3321 msgid "Unable to set options" msgstr "" #: cgi-bin/admin.c:2588 msgid "Unable to set server default" msgstr "" #: backend/ipp.c:3256 backend/ipp.c:3333 backend/ipp.c:3341 msgid "Unable to start backend process." msgstr "" #: cgi-bin/admin.c:1611 msgid "Unable to upload cupsd.conf file" msgstr "" #: backend/usb-darwin.c:2132 backend/usb-darwin.c:2156 msgid "Unable to use legacy USB class driver." msgstr "" #: backend/runloop.c:107 backend/runloop.c:362 msgid "Unable to write print data" msgstr "" #: filter/gziptoany.c:84 #, c-format msgid "Unable to write uncompressed print data: %s" msgstr "" #: cups/http-support.c:1530 msgid "Unauthorized" msgstr "" #: cgi-bin/admin.c:3017 msgid "Units" msgstr "" #: cups/http-support.c:1570 cups/http-support.c:1654 cups/ppd.c:314 msgid "Unknown" msgstr "" #: filter/pstops.c:2182 #, c-format msgid "Unknown choice \"%s\" for option \"%s\"." msgstr "" #: tools/ippeveprinter.c:4193 #, c-format msgid "Unknown directive \"%s\" on line %d of \"%s\" ignored." msgstr "" #: backend/ipp.c:518 #, c-format msgid "Unknown encryption option value: \"%s\"." msgstr "" #: backend/lpd.c:331 #, c-format msgid "Unknown file order: \"%s\"." msgstr "" #: backend/lpd.c:302 #, c-format msgid "Unknown format character: \"%c\"." msgstr "" #: cups/hash.c:279 msgid "Unknown hash algorithm." msgstr "" #: cups/dest-options.c:1157 msgid "Unknown media size name." msgstr "" #: backend/ipp.c:582 #, c-format msgid "Unknown option \"%s\" with value \"%s\"." msgstr "" #: filter/pstops.c:2165 #, c-format msgid "Unknown option \"%s\"." msgstr "" #: backend/lpd.c:317 #, c-format msgid "Unknown print mode: \"%s\"." msgstr "" #: scheduler/ipp.c:10810 #, c-format msgid "Unknown printer-error-policy \"%s\"." msgstr "" #: scheduler/ipp.c:10793 #, c-format msgid "Unknown printer-op-policy \"%s\"." msgstr "" #: cups/http.c:2267 msgid "Unknown request method." msgstr "" #: cups/http.c:2287 msgid "Unknown request version." msgstr "" #: cups/http-support.c:1647 msgid "Unknown scheme in URI" msgstr "" #: cups/http-addrlist.c:834 msgid "Unknown service name." msgstr "" #: backend/ipp.c:547 #, c-format msgid "Unknown version option value: \"%s\"." msgstr "" #: scheduler/ipp.c:11262 #, c-format msgid "Unsupported 'compression' value \"%s\"." msgstr "" #: scheduler/ipp.c:11292 #, c-format msgid "Unsupported 'document-format' value \"%s\"." msgstr "" #: scheduler/ipp.c:7973 scheduler/ipp.c:10352 scheduler/ipp.c:11306 msgid "Unsupported 'job-hold-until' value." msgstr "" #: scheduler/ipp.c:11322 msgid "Unsupported 'job-name' value." msgstr "" #: scheduler/ipp.c:299 #, c-format msgid "Unsupported character set \"%s\"." msgstr "" #: scheduler/ipp.c:8433 scheduler/ipp.c:9681 #, c-format msgid "Unsupported compression \"%s\"." msgstr "" #: scheduler/ipp.c:8569 scheduler/ipp.c:9834 #, c-format msgid "Unsupported document-format \"%s\"." msgstr "" #: scheduler/ipp.c:9817 #, c-format msgid "Unsupported document-format \"%s/%s\"." msgstr "" #: scheduler/ipp.c:1360 #, c-format msgid "Unsupported format \"%s\"." msgstr "" #: scheduler/ipp.c:1458 msgid "Unsupported margins." msgstr "" #: cups/pwg-media.c:541 msgid "Unsupported media value." msgstr "" #: filter/pstops.c:2447 #, c-format msgid "Unsupported number-up value %d, using number-up=1." msgstr "" #: filter/pstops.c:2481 #, c-format msgid "Unsupported number-up-layout value %s, using number-up-layout=lrtb." msgstr "" #: filter/pstops.c:2532 #, c-format msgid "Unsupported page-border value %s, using page-border=none." msgstr "" #: filter/rastertopwg.c:150 filter/rastertopwg.c:186 filter/rastertopwg.c:194 #: filter/rastertopwg.c:203 msgid "Unsupported raster data." msgstr "" #: cups/snmp.c:1066 msgid "Unsupported value type" msgstr "" #: cups/http-support.c:1545 msgid "Upgrade Required" msgstr "" #: systemv/cupsaccept.c:243 #, c-format msgid "Usage: %s [options] destination(s)" msgstr "" #: backend/dnssd.c:193 backend/ipp.c:324 backend/lpd.c:172 #: backend/socket.c:119 backend/usb.c:170 filter/commandtops.c:57 #: filter/gziptoany.c:38 filter/pstops.c:223 monitor/bcp.c:48 #: monitor/tbcp.c:47 #, c-format msgid "Usage: %s job-id user title copies options [file]" msgstr "" #: systemv/cancel.c:399 msgid "" "Usage: cancel [options] [id]\n" " cancel [options] [destination]\n" " cancel [options] [destination-id]" msgstr "" #: systemv/cupsctl.c:231 msgid "Usage: cupsctl [options] [param=value ... paramN=valueN]" msgstr "" #: scheduler/main.c:2144 msgid "Usage: cupsd [options]" msgstr "" #: scheduler/cupsfilter.c:1562 msgid "Usage: cupsfilter [ options ] [ -- ] filename" msgstr "" #: systemv/cupstestppd.c:3855 msgid "" "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" " program | cupstestppd [options] -" msgstr "" #: tools/ippeveprinter.c:8343 msgid "Usage: ippeveprinter [options] \"name\"" msgstr "" #: tools/ippfind.c:2771 msgid "" "Usage: ippfind [options] regtype[,subtype][.domain.] ... [expression]\n" " ippfind [options] name[.regtype[.domain.]] ... [expression]\n" " ippfind --help\n" " ippfind --version" msgstr "" #: tools/ipptool.c:4336 msgid "Usage: ipptool [options] URI filename [ ... filenameN ]" msgstr "" #: systemv/lp.c:751 msgid "" "Usage: lp [options] [--] [file(s)]\n" " lp [options] -i id" msgstr "" #: systemv/lpadmin.c:1616 msgid "" "Usage: lpadmin [options] -d destination\n" " lpadmin [options] -p destination\n" " lpadmin [options] -p destination -c class\n" " lpadmin [options] -p destination -r class\n" " lpadmin [options] -x destination" msgstr "" #: systemv/lpinfo.c:496 msgid "" "Usage: lpinfo [options] -m\n" " lpinfo [options] -v" msgstr "" #: systemv/lpmove.c:215 msgid "" "Usage: lpmove [options] job destination\n" " lpmove [options] source-destination destination" msgstr "" #: systemv/lpoptions.c:534 msgid "" "Usage: lpoptions [options] -d destination\n" " lpoptions [options] [-p destination] [-l]\n" " lpoptions [options] [-p destination] -o option[=value]\n" " lpoptions [options] -x destination" msgstr "" #: berkeley/lpq.c:642 msgid "Usage: lpq [options] [+interval]" msgstr "" #: berkeley/lpr.c:436 msgid "Usage: lpr [options] [file(s)]" msgstr "" #: berkeley/lprm.c:231 msgid "" "Usage: lprm [options] [id]\n" " lprm [options] -" msgstr "" #: systemv/lpstat.c:2044 msgid "Usage: lpstat [options]" msgstr "" #: ppdc/ppdc.cxx:424 msgid "Usage: ppdc [options] filename.drv [ ... filenameN.drv ]" msgstr "" #: ppdc/ppdhtml.cxx:171 msgid "Usage: ppdhtml [options] filename.drv >filename.html" msgstr "" #: ppdc/ppdi.cxx:117 msgid "Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" #: ppdc/ppdmerge.cxx:354 msgid "Usage: ppdmerge [options] filename.ppd [ ... filenameN.ppd ]" msgstr "" #: ppdc/ppdpo.cxx:241 msgid "Usage: ppdpo [options] -o filename.po filename.drv [ ... filenameN.drv ]" msgstr "" #: backend/snmp.c:187 msgid "Usage: snmp [host-or-ip-address]" msgstr "" #: tools/ippeveprinter.c:697 #, c-format msgid "Using spool directory \"%s\"." msgstr "" #: cups/snmp.c:1018 msgid "Value uses indefinite length" msgstr "" #: cups/snmp.c:1003 msgid "VarBind uses indefinite length" msgstr "" #: cups/snmp.c:953 msgid "Version uses indefinite length" msgstr "" #: backend/ipp.c:2009 msgid "Waiting for job to complete." msgstr "" #: backend/usb-darwin.c:429 backend/usb-darwin.c:483 backend/usb-libusb.c:220 msgid "Waiting for printer to become available." msgstr "" #: backend/socket.c:417 msgid "Waiting for printer to finish." msgstr "" #: systemv/cupstestppd.c:3854 msgid "Warning: This program will be removed in a future version of CUPS." msgstr "" #: cups/http-support.c:1566 msgid "Web Interface is Disabled" msgstr "" #: cups/ppd.c:2028 msgid "Yes" msgstr "" #: scheduler/client.c:1992 msgid "You cannot access this page." msgstr "" #: scheduler/client.c:1998 #, c-format msgid "You must access this page using the URL https://%s:%d%s." msgstr "" #: scheduler/client.c:1990 msgid "Your account does not have the necessary privileges." msgstr "" #: ppdc/sample.c:444 msgid "ZPL Label Printer" msgstr "" #: ppdc/sample.c:367 msgid "Zebra" msgstr "" #: cups/notify.c:89 msgid "aborted" msgstr "" #. TRANSLATORS: Accuracy Units #: locale/ipp-strings.c:2 msgid "accuracy-units" msgstr "" #. TRANSLATORS: Millimeters #: locale/ipp-strings.c:4 msgid "accuracy-units.mm" msgstr "" #. TRANSLATORS: Nanometers #: locale/ipp-strings.c:6 msgid "accuracy-units.nm" msgstr "" #. TRANSLATORS: Micrometers #: locale/ipp-strings.c:8 msgid "accuracy-units.um" msgstr "" #. TRANSLATORS: Bale Output #: locale/ipp-strings.c:10 msgid "baling" msgstr "" #. TRANSLATORS: Bale Using #: locale/ipp-strings.c:12 msgid "baling-type" msgstr "" #. TRANSLATORS: Band #: locale/ipp-strings.c:14 msgid "baling-type.band" msgstr "" #. TRANSLATORS: Shrink Wrap #: locale/ipp-strings.c:16 msgid "baling-type.shrink-wrap" msgstr "" #. TRANSLATORS: Wrap #: locale/ipp-strings.c:18 msgid "baling-type.wrap" msgstr "" #. TRANSLATORS: Bale After #: locale/ipp-strings.c:20 msgid "baling-when" msgstr "" #. TRANSLATORS: Job #: locale/ipp-strings.c:22 msgid "baling-when.after-job" msgstr "" #. TRANSLATORS: Sets #: locale/ipp-strings.c:24 msgid "baling-when.after-sets" msgstr "" #. TRANSLATORS: Bind Output #: locale/ipp-strings.c:26 msgid "binding" msgstr "" #. TRANSLATORS: Bind Edge #: locale/ipp-strings.c:28 msgid "binding-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:30 msgid "binding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:32 msgid "binding-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:34 msgid "binding-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:36 msgid "binding-reference-edge.top" msgstr "" #. TRANSLATORS: Binder Type #: locale/ipp-strings.c:38 msgid "binding-type" msgstr "" #. TRANSLATORS: Adhesive #: locale/ipp-strings.c:40 msgid "binding-type.adhesive" msgstr "" #. TRANSLATORS: Comb #: locale/ipp-strings.c:42 msgid "binding-type.comb" msgstr "" #. TRANSLATORS: Flat #: locale/ipp-strings.c:44 msgid "binding-type.flat" msgstr "" #. TRANSLATORS: Padding #: locale/ipp-strings.c:46 msgid "binding-type.padding" msgstr "" #. TRANSLATORS: Perfect #: locale/ipp-strings.c:48 msgid "binding-type.perfect" msgstr "" #. TRANSLATORS: Spiral #: locale/ipp-strings.c:50 msgid "binding-type.spiral" msgstr "" #. TRANSLATORS: Tape #: locale/ipp-strings.c:52 msgid "binding-type.tape" msgstr "" #. TRANSLATORS: Velo #: locale/ipp-strings.c:54 msgid "binding-type.velo" msgstr "" #: cups/notify.c:86 msgid "canceled" msgstr "" #. TRANSLATORS: Chamber Humidity #: locale/ipp-strings.c:56 msgid "chamber-humidity" msgstr "" #. TRANSLATORS: Chamber Temperature #: locale/ipp-strings.c:58 msgid "chamber-temperature" msgstr "" #. TRANSLATORS: Print Job Cost #: locale/ipp-strings.c:60 msgid "charge-info-message" msgstr "" #. TRANSLATORS: Coat Sheets #: locale/ipp-strings.c:62 msgid "coating" msgstr "" #. TRANSLATORS: Add Coating To #: locale/ipp-strings.c:64 msgid "coating-sides" msgstr "" #. TRANSLATORS: Back #: locale/ipp-strings.c:66 msgid "coating-sides.back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:68 msgid "coating-sides.both" msgstr "" #. TRANSLATORS: Front #: locale/ipp-strings.c:70 msgid "coating-sides.front" msgstr "" #. TRANSLATORS: Type of Coating #: locale/ipp-strings.c:72 msgid "coating-type" msgstr "" #. TRANSLATORS: Archival #: locale/ipp-strings.c:74 msgid "coating-type.archival" msgstr "" #. TRANSLATORS: Archival Glossy #: locale/ipp-strings.c:76 msgid "coating-type.archival-glossy" msgstr "" #. TRANSLATORS: Archival Matte #: locale/ipp-strings.c:78 msgid "coating-type.archival-matte" msgstr "" #. TRANSLATORS: Archival Semi Gloss #: locale/ipp-strings.c:80 msgid "coating-type.archival-semi-gloss" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:82 msgid "coating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:84 msgid "coating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:86 msgid "coating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:88 msgid "coating-type.semi-gloss" msgstr "" #. TRANSLATORS: Silicone #: locale/ipp-strings.c:90 msgid "coating-type.silicone" msgstr "" #. TRANSLATORS: Translucent #: locale/ipp-strings.c:92 msgid "coating-type.translucent" msgstr "" #: cups/notify.c:92 msgid "completed" msgstr "" #. TRANSLATORS: Print Confirmation Sheet #: locale/ipp-strings.c:94 msgid "confirmation-sheet-print" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:96 msgid "copies" msgstr "" #. TRANSLATORS: Back Cover #: locale/ipp-strings.c:98 msgid "cover-back" msgstr "" #. TRANSLATORS: Front Cover #: locale/ipp-strings.c:100 msgid "cover-front" msgstr "" #. TRANSLATORS: Cover Sheet Info #: locale/ipp-strings.c:102 msgid "cover-sheet-info" msgstr "" #. TRANSLATORS: Date Time #: locale/ipp-strings.c:104 msgid "cover-sheet-info-supported.date-time" msgstr "" #. TRANSLATORS: From Name #: locale/ipp-strings.c:106 msgid "cover-sheet-info-supported.from-name" msgstr "" #. TRANSLATORS: Logo #: locale/ipp-strings.c:108 msgid "cover-sheet-info-supported.logo" msgstr "" #. TRANSLATORS: Message #: locale/ipp-strings.c:110 msgid "cover-sheet-info-supported.message" msgstr "" #. TRANSLATORS: Organization #: locale/ipp-strings.c:112 msgid "cover-sheet-info-supported.organization" msgstr "" #. TRANSLATORS: Subject #: locale/ipp-strings.c:114 msgid "cover-sheet-info-supported.subject" msgstr "" #. TRANSLATORS: To Name #: locale/ipp-strings.c:116 msgid "cover-sheet-info-supported.to-name" msgstr "" #. TRANSLATORS: Printed Cover #: locale/ipp-strings.c:118 msgid "cover-type" msgstr "" #. TRANSLATORS: No Cover #: locale/ipp-strings.c:120 msgid "cover-type.no-cover" msgstr "" #. TRANSLATORS: Back Only #: locale/ipp-strings.c:122 msgid "cover-type.print-back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:124 msgid "cover-type.print-both" msgstr "" #. TRANSLATORS: Front Only #: locale/ipp-strings.c:126 msgid "cover-type.print-front" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:128 msgid "cover-type.print-none" msgstr "" #. TRANSLATORS: Cover Output #: locale/ipp-strings.c:130 msgid "covering" msgstr "" #. TRANSLATORS: Add Cover #: locale/ipp-strings.c:132 msgid "covering-name" msgstr "" #. TRANSLATORS: Plain #: locale/ipp-strings.c:134 msgid "covering-name.plain" msgstr "" #. TRANSLATORS: Pre-cut #: locale/ipp-strings.c:136 msgid "covering-name.pre-cut" msgstr "" #. TRANSLATORS: Pre-printed #: locale/ipp-strings.c:138 msgid "covering-name.pre-printed" msgstr "" #: scheduler/ipp.c:6191 msgid "cups-deviced failed to execute." msgstr "" #: scheduler/ipp.c:7077 scheduler/ipp.c:7316 msgid "cups-driverd failed to execute." msgstr "" #: systemv/cupsctl.c:170 #, c-format msgid "cupsctl: Cannot set %s directly." msgstr "" #: systemv/cupsctl.c:183 #, c-format msgid "cupsctl: Unable to connect to server: %s" msgstr "" #: systemv/cupsctl.c:226 #, c-format msgid "cupsctl: Unknown option \"%s\"" msgstr "" #: systemv/cupsctl.c:228 #, c-format msgid "cupsctl: Unknown option \"-%c\"" msgstr "" #: scheduler/main.c:175 msgid "cupsd: Expected config filename after \"-c\" option." msgstr "" #: scheduler/main.c:271 msgid "cupsd: Expected cups-files.conf filename after \"-s\" option." msgstr "" #: scheduler/main.c:245 msgid "cupsd: On-demand support not compiled in, running in normal mode." msgstr "" #: scheduler/main.c:282 msgid "cupsd: Relative cups-files.conf filename not allowed." msgstr "" #: scheduler/main.c:206 scheduler/main.c:213 msgid "cupsd: Unable to get current directory." msgstr "" #: scheduler/main.c:341 scheduler/main.c:351 msgid "cupsd: Unable to get path to cups-files.conf file." msgstr "" #: scheduler/main.c:322 #, c-format msgid "cupsd: Unknown argument \"%s\" - aborting." msgstr "" #: scheduler/main.c:313 #, c-format msgid "cupsd: Unknown option \"%c\" - aborting." msgstr "" #: scheduler/cupsfilter.c:1348 #, c-format msgid "cupsfilter: Invalid document number %d." msgstr "" #: scheduler/cupsfilter.c:1342 #, c-format msgid "cupsfilter: Invalid job ID %d." msgstr "" #: scheduler/cupsfilter.c:390 msgid "cupsfilter: Only one filename can be specified." msgstr "" #: scheduler/cupsfilter.c:1390 #, c-format msgid "cupsfilter: Unable to get job file - %s" msgstr "" #: systemv/cupstestppd.c:238 msgid "cupstestppd: The -q option is incompatible with the -v option." msgstr "" #: systemv/cupstestppd.c:254 msgid "cupstestppd: The -v option is incompatible with the -q option." msgstr "" #. TRANSLATORS: Detailed Status Message #: locale/ipp-strings.c:140 msgid "detailed-status-message" msgstr "" #: systemv/lpstat.c:1254 systemv/lpstat.c:1257 systemv/lpstat.c:1260 #, c-format msgid "device for %s/%s: %s" msgstr "" #: systemv/lpstat.c:1240 systemv/lpstat.c:1243 systemv/lpstat.c:1246 #, c-format msgid "device for %s: %s" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:142 msgid "document-copies" msgstr "" #. TRANSLATORS: Document Privacy Attributes #: locale/ipp-strings.c:144 msgid "document-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:146 msgid "document-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:148 msgid "document-privacy-attributes.default" msgstr "" #. TRANSLATORS: Document Description #: locale/ipp-strings.c:150 msgid "document-privacy-attributes.document-description" msgstr "" #. TRANSLATORS: Document Template #: locale/ipp-strings.c:152 msgid "document-privacy-attributes.document-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:154 msgid "document-privacy-attributes.none" msgstr "" #. TRANSLATORS: Document Privacy Scope #: locale/ipp-strings.c:156 msgid "document-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:158 msgid "document-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:160 msgid "document-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:162 msgid "document-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:164 msgid "document-privacy-scope.owner" msgstr "" #. TRANSLATORS: Document State #: locale/ipp-strings.c:166 msgid "document-state" msgstr "" #. TRANSLATORS: Detailed Document State #: locale/ipp-strings.c:168 msgid "document-state-reasons" msgstr "" #. TRANSLATORS: Aborted By System #: locale/ipp-strings.c:170 msgid "document-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Canceled At Device #: locale/ipp-strings.c:172 msgid "document-state-reasons.canceled-at-device" msgstr "" #. TRANSLATORS: Canceled By Operator #: locale/ipp-strings.c:174 msgid "document-state-reasons.canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled By User #: locale/ipp-strings.c:176 msgid "document-state-reasons.canceled-by-user" msgstr "" #. TRANSLATORS: Completed Successfully #: locale/ipp-strings.c:178 msgid "document-state-reasons.completed-successfully" msgstr "" #. TRANSLATORS: Completed With Errors #: locale/ipp-strings.c:180 msgid "document-state-reasons.completed-with-errors" msgstr "" #. TRANSLATORS: Completed With Warnings #: locale/ipp-strings.c:182 msgid "document-state-reasons.completed-with-warnings" msgstr "" #. TRANSLATORS: Compression Error #: locale/ipp-strings.c:184 msgid "document-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Data Insufficient #: locale/ipp-strings.c:186 msgid "document-state-reasons.data-insufficient" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify #: locale/ipp-strings.c:188 msgid "document-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported #: locale/ipp-strings.c:190 msgid "document-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Digital Signature Wait #: locale/ipp-strings.c:192 msgid "document-state-reasons.digital-signature-wait" msgstr "" #. TRANSLATORS: Document Access Error #: locale/ipp-strings.c:194 msgid "document-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Fetchable #: locale/ipp-strings.c:196 msgid "document-state-reasons.document-fetchable" msgstr "" #. TRANSLATORS: Document Format Error #: locale/ipp-strings.c:198 msgid "document-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error #: locale/ipp-strings.c:200 msgid "document-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error #: locale/ipp-strings.c:202 msgid "document-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error #: locale/ipp-strings.c:204 msgid "document-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error #: locale/ipp-strings.c:206 msgid "document-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected #: locale/ipp-strings.c:208 msgid "document-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Incoming #: locale/ipp-strings.c:210 msgid "document-state-reasons.incoming" msgstr "" #. TRANSLATORS: Interpreting #: locale/ipp-strings.c:212 msgid "document-state-reasons.interpreting" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:214 msgid "document-state-reasons.none" msgstr "" #. TRANSLATORS: Outgoing #: locale/ipp-strings.c:216 msgid "document-state-reasons.outgoing" msgstr "" #. TRANSLATORS: Printing #: locale/ipp-strings.c:218 msgid "document-state-reasons.printing" msgstr "" #. TRANSLATORS: Processing To Stop Point #: locale/ipp-strings.c:220 msgid "document-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Queued #: locale/ipp-strings.c:222 msgid "document-state-reasons.queued" msgstr "" #. TRANSLATORS: Queued For Marker #: locale/ipp-strings.c:224 msgid "document-state-reasons.queued-for-marker" msgstr "" #. TRANSLATORS: Queued In Device #: locale/ipp-strings.c:226 msgid "document-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready #: locale/ipp-strings.c:228 msgid "document-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported #: locale/ipp-strings.c:230 msgid "document-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Submission Interrupted #: locale/ipp-strings.c:232 msgid "document-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Transforming #: locale/ipp-strings.c:234 msgid "document-state-reasons.transforming" msgstr "" #. TRANSLATORS: Unsupported Compression #: locale/ipp-strings.c:236 msgid "document-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format #: locale/ipp-strings.c:238 msgid "document-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Warnings Detected #: locale/ipp-strings.c:240 msgid "document-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:242 msgid "document-state.3" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:244 msgid "document-state.5" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:246 msgid "document-state.6" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:248 msgid "document-state.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:250 msgid "document-state.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:252 msgid "document-state.9" msgstr "" #: cups/snmp.c:990 msgid "error-index uses indefinite length" msgstr "" #: cups/snmp.c:982 msgid "error-status uses indefinite length" msgstr "" #: tools/ippfind.c:2822 msgid "" "expression --and expression\n" " Logical AND" msgstr "" #: tools/ippfind.c:2824 msgid "" "expression --or expression\n" " Logical OR" msgstr "" #: tools/ippfind.c:2821 msgid "expression expression Logical AND" msgstr "" #. TRANSLATORS: Feed Orientation #: locale/ipp-strings.c:254 msgid "feed-orientation" msgstr "" #. TRANSLATORS: Long Edge First #: locale/ipp-strings.c:256 msgid "feed-orientation.long-edge-first" msgstr "" #. TRANSLATORS: Short Edge First #: locale/ipp-strings.c:258 msgid "feed-orientation.short-edge-first" msgstr "" #. TRANSLATORS: Fetch Status Code #: locale/ipp-strings.c:260 msgid "fetch-status-code" msgstr "" #. TRANSLATORS: Finishing Template #: locale/ipp-strings.c:262 msgid "finishing-template" msgstr "" #. TRANSLATORS: Bale #: locale/ipp-strings.c:264 msgid "finishing-template.bale" msgstr "" #. TRANSLATORS: Bind #: locale/ipp-strings.c:266 msgid "finishing-template.bind" msgstr "" #. TRANSLATORS: Bind Bottom #: locale/ipp-strings.c:268 msgid "finishing-template.bind-bottom" msgstr "" #. TRANSLATORS: Bind Left #: locale/ipp-strings.c:270 msgid "finishing-template.bind-left" msgstr "" #. TRANSLATORS: Bind Right #: locale/ipp-strings.c:272 msgid "finishing-template.bind-right" msgstr "" #. TRANSLATORS: Bind Top #: locale/ipp-strings.c:274 msgid "finishing-template.bind-top" msgstr "" #. TRANSLATORS: Booklet Maker #: locale/ipp-strings.c:276 msgid "finishing-template.booklet-maker" msgstr "" #. TRANSLATORS: Coat #: locale/ipp-strings.c:278 msgid "finishing-template.coat" msgstr "" #. TRANSLATORS: Cover #: locale/ipp-strings.c:280 msgid "finishing-template.cover" msgstr "" #. TRANSLATORS: Edge Stitch #: locale/ipp-strings.c:282 msgid "finishing-template.edge-stitch" msgstr "" #. TRANSLATORS: Edge Stitch Bottom #: locale/ipp-strings.c:284 msgid "finishing-template.edge-stitch-bottom" msgstr "" #. TRANSLATORS: Edge Stitch Left #: locale/ipp-strings.c:286 msgid "finishing-template.edge-stitch-left" msgstr "" #. TRANSLATORS: Edge Stitch Right #: locale/ipp-strings.c:288 msgid "finishing-template.edge-stitch-right" msgstr "" #. TRANSLATORS: Edge Stitch Top #: locale/ipp-strings.c:290 msgid "finishing-template.edge-stitch-top" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:292 msgid "finishing-template.fold" msgstr "" #. TRANSLATORS: Accordion Fold #: locale/ipp-strings.c:294 msgid "finishing-template.fold-accordion" msgstr "" #. TRANSLATORS: Double Gate Fold #: locale/ipp-strings.c:296 msgid "finishing-template.fold-double-gate" msgstr "" #. TRANSLATORS: Engineering Z Fold #: locale/ipp-strings.c:298 msgid "finishing-template.fold-engineering-z" msgstr "" #. TRANSLATORS: Gate Fold #: locale/ipp-strings.c:300 msgid "finishing-template.fold-gate" msgstr "" #. TRANSLATORS: Half Fold #: locale/ipp-strings.c:302 msgid "finishing-template.fold-half" msgstr "" #. TRANSLATORS: Half Z Fold #: locale/ipp-strings.c:304 msgid "finishing-template.fold-half-z" msgstr "" #. TRANSLATORS: Left Gate Fold #: locale/ipp-strings.c:306 msgid "finishing-template.fold-left-gate" msgstr "" #. TRANSLATORS: Letter Fold #: locale/ipp-strings.c:308 msgid "finishing-template.fold-letter" msgstr "" #. TRANSLATORS: Parallel Fold #: locale/ipp-strings.c:310 msgid "finishing-template.fold-parallel" msgstr "" #. TRANSLATORS: Poster Fold #: locale/ipp-strings.c:312 msgid "finishing-template.fold-poster" msgstr "" #. TRANSLATORS: Right Gate Fold #: locale/ipp-strings.c:314 msgid "finishing-template.fold-right-gate" msgstr "" #. TRANSLATORS: Z Fold #: locale/ipp-strings.c:316 msgid "finishing-template.fold-z" msgstr "" #. TRANSLATORS: JDF F10-1 #: locale/ipp-strings.c:318 msgid "finishing-template.jdf-f10-1" msgstr "" #. TRANSLATORS: JDF F10-2 #: locale/ipp-strings.c:320 msgid "finishing-template.jdf-f10-2" msgstr "" #. TRANSLATORS: JDF F10-3 #: locale/ipp-strings.c:322 msgid "finishing-template.jdf-f10-3" msgstr "" #. TRANSLATORS: JDF F12-1 #: locale/ipp-strings.c:324 msgid "finishing-template.jdf-f12-1" msgstr "" #. TRANSLATORS: JDF F12-10 #: locale/ipp-strings.c:326 msgid "finishing-template.jdf-f12-10" msgstr "" #. TRANSLATORS: JDF F12-11 #: locale/ipp-strings.c:328 msgid "finishing-template.jdf-f12-11" msgstr "" #. TRANSLATORS: JDF F12-12 #: locale/ipp-strings.c:330 msgid "finishing-template.jdf-f12-12" msgstr "" #. TRANSLATORS: JDF F12-13 #: locale/ipp-strings.c:332 msgid "finishing-template.jdf-f12-13" msgstr "" #. TRANSLATORS: JDF F12-14 #: locale/ipp-strings.c:334 msgid "finishing-template.jdf-f12-14" msgstr "" #. TRANSLATORS: JDF F12-2 #: locale/ipp-strings.c:336 msgid "finishing-template.jdf-f12-2" msgstr "" #. TRANSLATORS: JDF F12-3 #: locale/ipp-strings.c:338 msgid "finishing-template.jdf-f12-3" msgstr "" #. TRANSLATORS: JDF F12-4 #: locale/ipp-strings.c:340 msgid "finishing-template.jdf-f12-4" msgstr "" #. TRANSLATORS: JDF F12-5 #: locale/ipp-strings.c:342 msgid "finishing-template.jdf-f12-5" msgstr "" #. TRANSLATORS: JDF F12-6 #: locale/ipp-strings.c:344 msgid "finishing-template.jdf-f12-6" msgstr "" #. TRANSLATORS: JDF F12-7 #: locale/ipp-strings.c:346 msgid "finishing-template.jdf-f12-7" msgstr "" #. TRANSLATORS: JDF F12-8 #: locale/ipp-strings.c:348 msgid "finishing-template.jdf-f12-8" msgstr "" #. TRANSLATORS: JDF F12-9 #: locale/ipp-strings.c:350 msgid "finishing-template.jdf-f12-9" msgstr "" #. TRANSLATORS: JDF F14-1 #: locale/ipp-strings.c:352 msgid "finishing-template.jdf-f14-1" msgstr "" #. TRANSLATORS: JDF F16-1 #: locale/ipp-strings.c:354 msgid "finishing-template.jdf-f16-1" msgstr "" #. TRANSLATORS: JDF F16-10 #: locale/ipp-strings.c:356 msgid "finishing-template.jdf-f16-10" msgstr "" #. TRANSLATORS: JDF F16-11 #: locale/ipp-strings.c:358 msgid "finishing-template.jdf-f16-11" msgstr "" #. TRANSLATORS: JDF F16-12 #: locale/ipp-strings.c:360 msgid "finishing-template.jdf-f16-12" msgstr "" #. TRANSLATORS: JDF F16-13 #: locale/ipp-strings.c:362 msgid "finishing-template.jdf-f16-13" msgstr "" #. TRANSLATORS: JDF F16-14 #: locale/ipp-strings.c:364 msgid "finishing-template.jdf-f16-14" msgstr "" #. TRANSLATORS: JDF F16-2 #: locale/ipp-strings.c:366 msgid "finishing-template.jdf-f16-2" msgstr "" #. TRANSLATORS: JDF F16-3 #: locale/ipp-strings.c:368 msgid "finishing-template.jdf-f16-3" msgstr "" #. TRANSLATORS: JDF F16-4 #: locale/ipp-strings.c:370 msgid "finishing-template.jdf-f16-4" msgstr "" #. TRANSLATORS: JDF F16-5 #: locale/ipp-strings.c:372 msgid "finishing-template.jdf-f16-5" msgstr "" #. TRANSLATORS: JDF F16-6 #: locale/ipp-strings.c:374 msgid "finishing-template.jdf-f16-6" msgstr "" #. TRANSLATORS: JDF F16-7 #: locale/ipp-strings.c:376 msgid "finishing-template.jdf-f16-7" msgstr "" #. TRANSLATORS: JDF F16-8 #: locale/ipp-strings.c:378 msgid "finishing-template.jdf-f16-8" msgstr "" #. TRANSLATORS: JDF F16-9 #: locale/ipp-strings.c:380 msgid "finishing-template.jdf-f16-9" msgstr "" #. TRANSLATORS: JDF F18-1 #: locale/ipp-strings.c:382 msgid "finishing-template.jdf-f18-1" msgstr "" #. TRANSLATORS: JDF F18-2 #: locale/ipp-strings.c:384 msgid "finishing-template.jdf-f18-2" msgstr "" #. TRANSLATORS: JDF F18-3 #: locale/ipp-strings.c:386 msgid "finishing-template.jdf-f18-3" msgstr "" #. TRANSLATORS: JDF F18-4 #: locale/ipp-strings.c:388 msgid "finishing-template.jdf-f18-4" msgstr "" #. TRANSLATORS: JDF F18-5 #: locale/ipp-strings.c:390 msgid "finishing-template.jdf-f18-5" msgstr "" #. TRANSLATORS: JDF F18-6 #: locale/ipp-strings.c:392 msgid "finishing-template.jdf-f18-6" msgstr "" #. TRANSLATORS: JDF F18-7 #: locale/ipp-strings.c:394 msgid "finishing-template.jdf-f18-7" msgstr "" #. TRANSLATORS: JDF F18-8 #: locale/ipp-strings.c:396 msgid "finishing-template.jdf-f18-8" msgstr "" #. TRANSLATORS: JDF F18-9 #: locale/ipp-strings.c:398 msgid "finishing-template.jdf-f18-9" msgstr "" #. TRANSLATORS: JDF F2-1 #: locale/ipp-strings.c:400 msgid "finishing-template.jdf-f2-1" msgstr "" #. TRANSLATORS: JDF F20-1 #: locale/ipp-strings.c:402 msgid "finishing-template.jdf-f20-1" msgstr "" #. TRANSLATORS: JDF F20-2 #: locale/ipp-strings.c:404 msgid "finishing-template.jdf-f20-2" msgstr "" #. TRANSLATORS: JDF F24-1 #: locale/ipp-strings.c:406 msgid "finishing-template.jdf-f24-1" msgstr "" #. TRANSLATORS: JDF F24-10 #: locale/ipp-strings.c:408 msgid "finishing-template.jdf-f24-10" msgstr "" #. TRANSLATORS: JDF F24-11 #: locale/ipp-strings.c:410 msgid "finishing-template.jdf-f24-11" msgstr "" #. TRANSLATORS: JDF F24-2 #: locale/ipp-strings.c:412 msgid "finishing-template.jdf-f24-2" msgstr "" #. TRANSLATORS: JDF F24-3 #: locale/ipp-strings.c:414 msgid "finishing-template.jdf-f24-3" msgstr "" #. TRANSLATORS: JDF F24-4 #: locale/ipp-strings.c:416 msgid "finishing-template.jdf-f24-4" msgstr "" #. TRANSLATORS: JDF F24-5 #: locale/ipp-strings.c:418 msgid "finishing-template.jdf-f24-5" msgstr "" #. TRANSLATORS: JDF F24-6 #: locale/ipp-strings.c:420 msgid "finishing-template.jdf-f24-6" msgstr "" #. TRANSLATORS: JDF F24-7 #: locale/ipp-strings.c:422 msgid "finishing-template.jdf-f24-7" msgstr "" #. TRANSLATORS: JDF F24-8 #: locale/ipp-strings.c:424 msgid "finishing-template.jdf-f24-8" msgstr "" #. TRANSLATORS: JDF F24-9 #: locale/ipp-strings.c:426 msgid "finishing-template.jdf-f24-9" msgstr "" #. TRANSLATORS: JDF F28-1 #: locale/ipp-strings.c:428 msgid "finishing-template.jdf-f28-1" msgstr "" #. TRANSLATORS: JDF F32-1 #: locale/ipp-strings.c:430 msgid "finishing-template.jdf-f32-1" msgstr "" #. TRANSLATORS: JDF F32-2 #: locale/ipp-strings.c:432 msgid "finishing-template.jdf-f32-2" msgstr "" #. TRANSLATORS: JDF F32-3 #: locale/ipp-strings.c:434 msgid "finishing-template.jdf-f32-3" msgstr "" #. TRANSLATORS: JDF F32-4 #: locale/ipp-strings.c:436 msgid "finishing-template.jdf-f32-4" msgstr "" #. TRANSLATORS: JDF F32-5 #: locale/ipp-strings.c:438 msgid "finishing-template.jdf-f32-5" msgstr "" #. TRANSLATORS: JDF F32-6 #: locale/ipp-strings.c:440 msgid "finishing-template.jdf-f32-6" msgstr "" #. TRANSLATORS: JDF F32-7 #: locale/ipp-strings.c:442 msgid "finishing-template.jdf-f32-7" msgstr "" #. TRANSLATORS: JDF F32-8 #: locale/ipp-strings.c:444 msgid "finishing-template.jdf-f32-8" msgstr "" #. TRANSLATORS: JDF F32-9 #: locale/ipp-strings.c:446 msgid "finishing-template.jdf-f32-9" msgstr "" #. TRANSLATORS: JDF F36-1 #: locale/ipp-strings.c:448 msgid "finishing-template.jdf-f36-1" msgstr "" #. TRANSLATORS: JDF F36-2 #: locale/ipp-strings.c:450 msgid "finishing-template.jdf-f36-2" msgstr "" #. TRANSLATORS: JDF F4-1 #: locale/ipp-strings.c:452 msgid "finishing-template.jdf-f4-1" msgstr "" #. TRANSLATORS: JDF F4-2 #: locale/ipp-strings.c:454 msgid "finishing-template.jdf-f4-2" msgstr "" #. TRANSLATORS: JDF F40-1 #: locale/ipp-strings.c:456 msgid "finishing-template.jdf-f40-1" msgstr "" #. TRANSLATORS: JDF F48-1 #: locale/ipp-strings.c:458 msgid "finishing-template.jdf-f48-1" msgstr "" #. TRANSLATORS: JDF F48-2 #: locale/ipp-strings.c:460 msgid "finishing-template.jdf-f48-2" msgstr "" #. TRANSLATORS: JDF F6-1 #: locale/ipp-strings.c:462 msgid "finishing-template.jdf-f6-1" msgstr "" #. TRANSLATORS: JDF F6-2 #: locale/ipp-strings.c:464 msgid "finishing-template.jdf-f6-2" msgstr "" #. TRANSLATORS: JDF F6-3 #: locale/ipp-strings.c:466 msgid "finishing-template.jdf-f6-3" msgstr "" #. TRANSLATORS: JDF F6-4 #: locale/ipp-strings.c:468 msgid "finishing-template.jdf-f6-4" msgstr "" #. TRANSLATORS: JDF F6-5 #: locale/ipp-strings.c:470 msgid "finishing-template.jdf-f6-5" msgstr "" #. TRANSLATORS: JDF F6-6 #: locale/ipp-strings.c:472 msgid "finishing-template.jdf-f6-6" msgstr "" #. TRANSLATORS: JDF F6-7 #: locale/ipp-strings.c:474 msgid "finishing-template.jdf-f6-7" msgstr "" #. TRANSLATORS: JDF F6-8 #: locale/ipp-strings.c:476 msgid "finishing-template.jdf-f6-8" msgstr "" #. TRANSLATORS: JDF F64-1 #: locale/ipp-strings.c:478 msgid "finishing-template.jdf-f64-1" msgstr "" #. TRANSLATORS: JDF F64-2 #: locale/ipp-strings.c:480 msgid "finishing-template.jdf-f64-2" msgstr "" #. TRANSLATORS: JDF F8-1 #: locale/ipp-strings.c:482 msgid "finishing-template.jdf-f8-1" msgstr "" #. TRANSLATORS: JDF F8-2 #: locale/ipp-strings.c:484 msgid "finishing-template.jdf-f8-2" msgstr "" #. TRANSLATORS: JDF F8-3 #: locale/ipp-strings.c:486 msgid "finishing-template.jdf-f8-3" msgstr "" #. TRANSLATORS: JDF F8-4 #: locale/ipp-strings.c:488 msgid "finishing-template.jdf-f8-4" msgstr "" #. TRANSLATORS: JDF F8-5 #: locale/ipp-strings.c:490 msgid "finishing-template.jdf-f8-5" msgstr "" #. TRANSLATORS: JDF F8-6 #: locale/ipp-strings.c:492 msgid "finishing-template.jdf-f8-6" msgstr "" #. TRANSLATORS: JDF F8-7 #: locale/ipp-strings.c:494 msgid "finishing-template.jdf-f8-7" msgstr "" #. TRANSLATORS: Jog Offset #: locale/ipp-strings.c:496 msgid "finishing-template.jog-offset" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:498 msgid "finishing-template.laminate" msgstr "" #. TRANSLATORS: Punch #: locale/ipp-strings.c:500 msgid "finishing-template.punch" msgstr "" #. TRANSLATORS: Punch Bottom Left #: locale/ipp-strings.c:502 msgid "finishing-template.punch-bottom-left" msgstr "" #. TRANSLATORS: Punch Bottom Right #: locale/ipp-strings.c:504 msgid "finishing-template.punch-bottom-right" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom #: locale/ipp-strings.c:506 msgid "finishing-template.punch-dual-bottom" msgstr "" #. TRANSLATORS: 2-hole Punch Left #: locale/ipp-strings.c:508 msgid "finishing-template.punch-dual-left" msgstr "" #. TRANSLATORS: 2-hole Punch Right #: locale/ipp-strings.c:510 msgid "finishing-template.punch-dual-right" msgstr "" #. TRANSLATORS: 2-hole Punch Top #: locale/ipp-strings.c:512 msgid "finishing-template.punch-dual-top" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom #: locale/ipp-strings.c:514 msgid "finishing-template.punch-multiple-bottom" msgstr "" #. TRANSLATORS: Multi-hole Punch Left #: locale/ipp-strings.c:516 msgid "finishing-template.punch-multiple-left" msgstr "" #. TRANSLATORS: Multi-hole Punch Right #: locale/ipp-strings.c:518 msgid "finishing-template.punch-multiple-right" msgstr "" #. TRANSLATORS: Multi-hole Punch Top #: locale/ipp-strings.c:520 msgid "finishing-template.punch-multiple-top" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom #: locale/ipp-strings.c:522 msgid "finishing-template.punch-quad-bottom" msgstr "" #. TRANSLATORS: 4-hole Punch Left #: locale/ipp-strings.c:524 msgid "finishing-template.punch-quad-left" msgstr "" #. TRANSLATORS: 4-hole Punch Right #: locale/ipp-strings.c:526 msgid "finishing-template.punch-quad-right" msgstr "" #. TRANSLATORS: 4-hole Punch Top #: locale/ipp-strings.c:528 msgid "finishing-template.punch-quad-top" msgstr "" #. TRANSLATORS: Punch Top Left #: locale/ipp-strings.c:530 msgid "finishing-template.punch-top-left" msgstr "" #. TRANSLATORS: Punch Top Right #: locale/ipp-strings.c:532 msgid "finishing-template.punch-top-right" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom #: locale/ipp-strings.c:534 msgid "finishing-template.punch-triple-bottom" msgstr "" #. TRANSLATORS: 3-hole Punch Left #: locale/ipp-strings.c:536 msgid "finishing-template.punch-triple-left" msgstr "" #. TRANSLATORS: 3-hole Punch Right #: locale/ipp-strings.c:538 msgid "finishing-template.punch-triple-right" msgstr "" #. TRANSLATORS: 3-hole Punch Top #: locale/ipp-strings.c:540 msgid "finishing-template.punch-triple-top" msgstr "" #. TRANSLATORS: Saddle Stitch #: locale/ipp-strings.c:542 msgid "finishing-template.saddle-stitch" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:544 msgid "finishing-template.staple" msgstr "" #. TRANSLATORS: Staple Bottom Left #: locale/ipp-strings.c:546 msgid "finishing-template.staple-bottom-left" msgstr "" #. TRANSLATORS: Staple Bottom Right #: locale/ipp-strings.c:548 msgid "finishing-template.staple-bottom-right" msgstr "" #. TRANSLATORS: 2 Staples on Bottom #: locale/ipp-strings.c:550 msgid "finishing-template.staple-dual-bottom" msgstr "" #. TRANSLATORS: 2 Staples on Left #: locale/ipp-strings.c:552 msgid "finishing-template.staple-dual-left" msgstr "" #. TRANSLATORS: 2 Staples on Right #: locale/ipp-strings.c:554 msgid "finishing-template.staple-dual-right" msgstr "" #. TRANSLATORS: 2 Staples on Top #: locale/ipp-strings.c:556 msgid "finishing-template.staple-dual-top" msgstr "" #. TRANSLATORS: Staple Top Left #: locale/ipp-strings.c:558 msgid "finishing-template.staple-top-left" msgstr "" #. TRANSLATORS: Staple Top Right #: locale/ipp-strings.c:560 msgid "finishing-template.staple-top-right" msgstr "" #. TRANSLATORS: 3 Staples on Bottom #: locale/ipp-strings.c:562 msgid "finishing-template.staple-triple-bottom" msgstr "" #. TRANSLATORS: 3 Staples on Left #: locale/ipp-strings.c:564 msgid "finishing-template.staple-triple-left" msgstr "" #. TRANSLATORS: 3 Staples on Right #: locale/ipp-strings.c:566 msgid "finishing-template.staple-triple-right" msgstr "" #. TRANSLATORS: 3 Staples on Top #: locale/ipp-strings.c:568 msgid "finishing-template.staple-triple-top" msgstr "" #. TRANSLATORS: Trim #: locale/ipp-strings.c:570 msgid "finishing-template.trim" msgstr "" #. TRANSLATORS: Trim After Every Set #: locale/ipp-strings.c:572 msgid "finishing-template.trim-after-copies" msgstr "" #. TRANSLATORS: Trim After Every Document #: locale/ipp-strings.c:574 msgid "finishing-template.trim-after-documents" msgstr "" #. TRANSLATORS: Trim After Job #: locale/ipp-strings.c:576 msgid "finishing-template.trim-after-job" msgstr "" #. TRANSLATORS: Trim After Every Page #: locale/ipp-strings.c:578 msgid "finishing-template.trim-after-pages" msgstr "" #. TRANSLATORS: Trim After Every Set #: locale/ipp-strings.c:580 msgid "finishing-template.trim-after-sets" msgstr "" #. TRANSLATORS: Trim After Every Page #: locale/ipp-strings.c:582 msgid "finishing-template.trim-after-sheets" msgstr "" #. TRANSLATORS: Finishings #: locale/ipp-strings.c:584 msgid "finishings" msgstr "" #. TRANSLATORS: Finishings #: locale/ipp-strings.c:586 msgid "finishings-col" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:588 msgid "finishings.10" msgstr "" #. TRANSLATORS: Z Fold #: locale/ipp-strings.c:590 msgid "finishings.100" msgstr "" #. TRANSLATORS: Engineering Z Fold #: locale/ipp-strings.c:592 msgid "finishings.101" msgstr "" #. TRANSLATORS: Trim #: locale/ipp-strings.c:594 msgid "finishings.11" msgstr "" #. TRANSLATORS: Bale #: locale/ipp-strings.c:596 msgid "finishings.12" msgstr "" #. TRANSLATORS: Booklet Maker #: locale/ipp-strings.c:598 msgid "finishings.13" msgstr "" #. TRANSLATORS: Jog Offset #: locale/ipp-strings.c:600 msgid "finishings.14" msgstr "" #. TRANSLATORS: Coat #: locale/ipp-strings.c:602 msgid "finishings.15" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:604 msgid "finishings.16" msgstr "" #. TRANSLATORS: Staple Top Left #: locale/ipp-strings.c:606 msgid "finishings.20" msgstr "" #. TRANSLATORS: Staple Bottom Left #: locale/ipp-strings.c:608 msgid "finishings.21" msgstr "" #. TRANSLATORS: Staple Top Right #: locale/ipp-strings.c:610 msgid "finishings.22" msgstr "" #. TRANSLATORS: Staple Bottom Right #: locale/ipp-strings.c:612 msgid "finishings.23" msgstr "" #. TRANSLATORS: Edge Stitch Left #: locale/ipp-strings.c:614 msgid "finishings.24" msgstr "" #. TRANSLATORS: Edge Stitch Top #: locale/ipp-strings.c:616 msgid "finishings.25" msgstr "" #. TRANSLATORS: Edge Stitch Right #: locale/ipp-strings.c:618 msgid "finishings.26" msgstr "" #. TRANSLATORS: Edge Stitch Bottom #: locale/ipp-strings.c:620 msgid "finishings.27" msgstr "" #. TRANSLATORS: 2 Staples on Left #: locale/ipp-strings.c:622 msgid "finishings.28" msgstr "" #. TRANSLATORS: 2 Staples on Top #: locale/ipp-strings.c:624 msgid "finishings.29" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:626 msgid "finishings.3" msgstr "" #. TRANSLATORS: 2 Staples on Right #: locale/ipp-strings.c:628 msgid "finishings.30" msgstr "" #. TRANSLATORS: 2 Staples on Bottom #: locale/ipp-strings.c:630 msgid "finishings.31" msgstr "" #. TRANSLATORS: 3 Staples on Left #: locale/ipp-strings.c:632 msgid "finishings.32" msgstr "" #. TRANSLATORS: 3 Staples on Top #: locale/ipp-strings.c:634 msgid "finishings.33" msgstr "" #. TRANSLATORS: 3 Staples on Right #: locale/ipp-strings.c:636 msgid "finishings.34" msgstr "" #. TRANSLATORS: 3 Staples on Bottom #: locale/ipp-strings.c:638 msgid "finishings.35" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:640 msgid "finishings.4" msgstr "" #. TRANSLATORS: Punch #: locale/ipp-strings.c:642 msgid "finishings.5" msgstr "" #. TRANSLATORS: Bind Left #: locale/ipp-strings.c:644 msgid "finishings.50" msgstr "" #. TRANSLATORS: Bind Top #: locale/ipp-strings.c:646 msgid "finishings.51" msgstr "" #. TRANSLATORS: Bind Right #: locale/ipp-strings.c:648 msgid "finishings.52" msgstr "" #. TRANSLATORS: Bind Bottom #: locale/ipp-strings.c:650 msgid "finishings.53" msgstr "" #. TRANSLATORS: Cover #: locale/ipp-strings.c:652 msgid "finishings.6" msgstr "" #. TRANSLATORS: Trim Pages #: locale/ipp-strings.c:654 msgid "finishings.60" msgstr "" #. TRANSLATORS: Trim Documents #: locale/ipp-strings.c:656 msgid "finishings.61" msgstr "" #. TRANSLATORS: Trim Copies #: locale/ipp-strings.c:658 msgid "finishings.62" msgstr "" #. TRANSLATORS: Trim Job #: locale/ipp-strings.c:660 msgid "finishings.63" msgstr "" #. TRANSLATORS: Bind #: locale/ipp-strings.c:662 msgid "finishings.7" msgstr "" #. TRANSLATORS: Punch Top Left #: locale/ipp-strings.c:664 msgid "finishings.70" msgstr "" #. TRANSLATORS: Punch Bottom Left #: locale/ipp-strings.c:666 msgid "finishings.71" msgstr "" #. TRANSLATORS: Punch Top Right #: locale/ipp-strings.c:668 msgid "finishings.72" msgstr "" #. TRANSLATORS: Punch Bottom Right #: locale/ipp-strings.c:670 msgid "finishings.73" msgstr "" #. TRANSLATORS: 2-hole Punch Left #: locale/ipp-strings.c:672 msgid "finishings.74" msgstr "" #. TRANSLATORS: 2-hole Punch Top #: locale/ipp-strings.c:674 msgid "finishings.75" msgstr "" #. TRANSLATORS: 2-hole Punch Right #: locale/ipp-strings.c:676 msgid "finishings.76" msgstr "" #. TRANSLATORS: 2-hole Punch Bottom #: locale/ipp-strings.c:678 msgid "finishings.77" msgstr "" #. TRANSLATORS: 3-hole Punch Left #: locale/ipp-strings.c:680 msgid "finishings.78" msgstr "" #. TRANSLATORS: 3-hole Punch Top #: locale/ipp-strings.c:682 msgid "finishings.79" msgstr "" #. TRANSLATORS: Saddle Stitch #: locale/ipp-strings.c:684 msgid "finishings.8" msgstr "" #. TRANSLATORS: 3-hole Punch Right #: locale/ipp-strings.c:686 msgid "finishings.80" msgstr "" #. TRANSLATORS: 3-hole Punch Bottom #: locale/ipp-strings.c:688 msgid "finishings.81" msgstr "" #. TRANSLATORS: 4-hole Punch Left #: locale/ipp-strings.c:690 msgid "finishings.82" msgstr "" #. TRANSLATORS: 4-hole Punch Top #: locale/ipp-strings.c:692 msgid "finishings.83" msgstr "" #. TRANSLATORS: 4-hole Punch Right #: locale/ipp-strings.c:694 msgid "finishings.84" msgstr "" #. TRANSLATORS: 4-hole Punch Bottom #: locale/ipp-strings.c:696 msgid "finishings.85" msgstr "" #. TRANSLATORS: Multi-hole Punch Left #: locale/ipp-strings.c:698 msgid "finishings.86" msgstr "" #. TRANSLATORS: Multi-hole Punch Top #: locale/ipp-strings.c:700 msgid "finishings.87" msgstr "" #. TRANSLATORS: Multi-hole Punch Right #: locale/ipp-strings.c:702 msgid "finishings.88" msgstr "" #. TRANSLATORS: Multi-hole Punch Bottom #: locale/ipp-strings.c:704 msgid "finishings.89" msgstr "" #. TRANSLATORS: Edge Stitch #: locale/ipp-strings.c:706 msgid "finishings.9" msgstr "" #. TRANSLATORS: Accordion Fold #: locale/ipp-strings.c:708 msgid "finishings.90" msgstr "" #. TRANSLATORS: Double Gate Fold #: locale/ipp-strings.c:710 msgid "finishings.91" msgstr "" #. TRANSLATORS: Gate Fold #: locale/ipp-strings.c:712 msgid "finishings.92" msgstr "" #. TRANSLATORS: Half Fold #: locale/ipp-strings.c:714 msgid "finishings.93" msgstr "" #. TRANSLATORS: Half Z Fold #: locale/ipp-strings.c:716 msgid "finishings.94" msgstr "" #. TRANSLATORS: Left Gate Fold #: locale/ipp-strings.c:718 msgid "finishings.95" msgstr "" #. TRANSLATORS: Letter Fold #: locale/ipp-strings.c:720 msgid "finishings.96" msgstr "" #. TRANSLATORS: Parallel Fold #: locale/ipp-strings.c:722 msgid "finishings.97" msgstr "" #. TRANSLATORS: Poster Fold #: locale/ipp-strings.c:724 msgid "finishings.98" msgstr "" #. TRANSLATORS: Right Gate Fold #: locale/ipp-strings.c:726 msgid "finishings.99" msgstr "" #. TRANSLATORS: Fold #: locale/ipp-strings.c:728 msgid "folding" msgstr "" #. TRANSLATORS: Fold Direction #: locale/ipp-strings.c:730 msgid "folding-direction" msgstr "" #. TRANSLATORS: Inward #: locale/ipp-strings.c:732 msgid "folding-direction.inward" msgstr "" #. TRANSLATORS: Outward #: locale/ipp-strings.c:734 msgid "folding-direction.outward" msgstr "" #. TRANSLATORS: Fold Position #: locale/ipp-strings.c:736 msgid "folding-offset" msgstr "" #. TRANSLATORS: Fold Edge #: locale/ipp-strings.c:738 msgid "folding-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:740 msgid "folding-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:742 msgid "folding-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:744 msgid "folding-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:746 msgid "folding-reference-edge.top" msgstr "" #. TRANSLATORS: Font Name #: locale/ipp-strings.c:748 msgid "font-name-requested" msgstr "" #. TRANSLATORS: Font Size #: locale/ipp-strings.c:750 msgid "font-size-requested" msgstr "" #. TRANSLATORS: Force Front Side #: locale/ipp-strings.c:752 msgid "force-front-side" msgstr "" #. TRANSLATORS: From Name #: locale/ipp-strings.c:754 msgid "from-name" msgstr "" #: cups/notify.c:77 msgid "held" msgstr "" #: berkeley/lpc.c:195 msgid "help\t\tGet help on commands." msgstr "" #: cups/notify.c:118 msgid "idle" msgstr "" #. TRANSLATORS: Imposition Template #: locale/ipp-strings.c:756 msgid "imposition-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:758 msgid "imposition-template.none" msgstr "" #. TRANSLATORS: Signature #: locale/ipp-strings.c:760 msgid "imposition-template.signature" msgstr "" #. TRANSLATORS: Insert Page Number #: locale/ipp-strings.c:762 msgid "insert-after-page-number" msgstr "" #. TRANSLATORS: Insert Count #: locale/ipp-strings.c:764 msgid "insert-count" msgstr "" #. TRANSLATORS: Insert Sheet #: locale/ipp-strings.c:766 msgid "insert-sheet" msgstr "" #: tools/ippeveprinter.c:5074 #, c-format msgid "ippeveprinter: Unable to open \"%s\": %s on line %d." msgstr "" #: tools/ippfind.c:2490 #, c-format msgid "ippfind: Bad regular expression: %s" msgstr "" #: tools/ippfind.c:297 msgid "ippfind: Cannot use --and after --or." msgstr "" #: tools/ippfind.c:582 #, c-format msgid "ippfind: Expected key name after %s." msgstr "" #: tools/ippfind.c:532 tools/ippfind.c:727 #, c-format msgid "ippfind: Expected port range after %s." msgstr "" #: tools/ippfind.c:330 #, c-format msgid "ippfind: Expected program after %s." msgstr "" #: tools/ippfind.c:347 #, c-format msgid "ippfind: Expected semi-colon after %s." msgstr "" #: tools/ippfind.c:1993 msgid "ippfind: Missing close brace in substitution." msgstr "" #: tools/ippfind.c:1046 msgid "ippfind: Missing close parenthesis." msgstr "" #: tools/ippfind.c:304 msgid "ippfind: Missing expression before \"--and\"." msgstr "" #: tools/ippfind.c:429 msgid "ippfind: Missing expression before \"--or\"." msgstr "" #: tools/ippfind.c:864 #, c-format msgid "ippfind: Missing key name after %s." msgstr "" #: tools/ippfind.c:398 tools/ippfind.c:714 #, c-format msgid "ippfind: Missing name after %s." msgstr "" #: tools/ippfind.c:1017 msgid "ippfind: Missing open parenthesis." msgstr "" #: tools/ippfind.c:894 #, c-format msgid "ippfind: Missing program after %s." msgstr "" #: tools/ippfind.c:316 tools/ippfind.c:370 tools/ippfind.c:411 #: tools/ippfind.c:517 tools/ippfind.c:599 tools/ippfind.c:614 #: tools/ippfind.c:781 tools/ippfind.c:796 tools/ippfind.c:819 #: tools/ippfind.c:879 #, c-format msgid "ippfind: Missing regular expression after %s." msgstr "" #: tools/ippfind.c:912 #, c-format msgid "ippfind: Missing semi-colon after %s." msgstr "" #: tools/ippfind.c:1940 tools/ippfind.c:1965 msgid "ippfind: Out of memory." msgstr "" #: tools/ippfind.c:990 msgid "ippfind: Too many parenthesis." msgstr "" #: tools/ippfind.c:1299 tools/ippfind.c:1427 tools/ippfind.c:2582 #, c-format msgid "ippfind: Unable to browse or resolve: %s" msgstr "" #: tools/ippfind.c:2063 tools/ippfind.c:2090 #, c-format msgid "ippfind: Unable to execute \"%s\": %s" msgstr "" #: tools/ippfind.c:1136 tools/ippfind.c:1144 tools/ippfind.c:1155 #, c-format msgid "ippfind: Unable to use Bonjour: %s" msgstr "" #: tools/ippfind.c:2022 #, c-format msgid "ippfind: Unknown variable \"{%s}\"." msgstr "" #: tools/ipptool.c:569 tools/ipptool.c:591 msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"--ippserver\", \"-P\", and \"-X\"." msgstr "" #: tools/ipptool.c:354 tools/ipptool.c:425 msgid "ipptool: \"-i\" and \"-n\" are incompatible with \"-P\" and \"-X\"." msgstr "" #: tools/ipptool.c:637 #, c-format msgid "ipptool: Bad URI \"%s\"." msgstr "" #: tools/ipptool.c:562 msgid "ipptool: Invalid seconds for \"-i\"." msgstr "" #: tools/ipptool.c:626 msgid "ipptool: May only specify a single URI." msgstr "" #: tools/ipptool.c:583 msgid "ipptool: Missing count for \"-n\"." msgstr "" #: tools/ipptool.c:271 msgid "ipptool: Missing filename for \"--ippserver\"." msgstr "" #: tools/ipptool.c:459 msgid "ipptool: Missing filename for \"-f\"." msgstr "" #: tools/ipptool.c:440 msgid "ipptool: Missing name=value for \"-d\"." msgstr "" #: tools/ipptool.c:554 msgid "ipptool: Missing seconds for \"-i\"." msgstr "" #: tools/ipptool.c:652 msgid "ipptool: URI required before test file." msgstr "" #. TRANSLATORS: Job Account ID #: locale/ipp-strings.c:768 msgid "job-account-id" msgstr "" #. TRANSLATORS: Job Account Type #: locale/ipp-strings.c:770 msgid "job-account-type" msgstr "" #. TRANSLATORS: General #: locale/ipp-strings.c:772 msgid "job-account-type.general" msgstr "" #. TRANSLATORS: Group #: locale/ipp-strings.c:774 msgid "job-account-type.group" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:776 msgid "job-account-type.none" msgstr "" #. TRANSLATORS: Job Accounting Output Bin #: locale/ipp-strings.c:778 msgid "job-accounting-output-bin" msgstr "" #. TRANSLATORS: Job Accounting Sheets #: locale/ipp-strings.c:780 msgid "job-accounting-sheets" msgstr "" #. TRANSLATORS: Type of Job Accounting Sheets #: locale/ipp-strings.c:782 msgid "job-accounting-sheets-type" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:784 msgid "job-accounting-sheets-type.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:786 msgid "job-accounting-sheets-type.standard" msgstr "" #. TRANSLATORS: Job Accounting User ID #: locale/ipp-strings.c:788 msgid "job-accounting-user-id" msgstr "" #. TRANSLATORS: Job Cancel After #: locale/ipp-strings.c:790 msgid "job-cancel-after" msgstr "" #. TRANSLATORS: Copies #: locale/ipp-strings.c:792 msgid "job-copies" msgstr "" #. TRANSLATORS: Back Cover #: locale/ipp-strings.c:794 msgid "job-cover-back" msgstr "" #. TRANSLATORS: Front Cover #: locale/ipp-strings.c:796 msgid "job-cover-front" msgstr "" #. TRANSLATORS: Delay Output Until #: locale/ipp-strings.c:798 msgid "job-delay-output-until" msgstr "" #. TRANSLATORS: Delay Output Until #: locale/ipp-strings.c:800 msgid "job-delay-output-until-time" msgstr "" #. TRANSLATORS: Daytime #: locale/ipp-strings.c:802 msgid "job-delay-output-until.day-time" msgstr "" #. TRANSLATORS: Evening #: locale/ipp-strings.c:804 msgid "job-delay-output-until.evening" msgstr "" #. TRANSLATORS: Released #: locale/ipp-strings.c:806 msgid "job-delay-output-until.indefinite" msgstr "" #. TRANSLATORS: Night #: locale/ipp-strings.c:808 msgid "job-delay-output-until.night" msgstr "" #. TRANSLATORS: No Delay #: locale/ipp-strings.c:810 msgid "job-delay-output-until.no-delay-output" msgstr "" #. TRANSLATORS: Second Shift #: locale/ipp-strings.c:812 msgid "job-delay-output-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift #: locale/ipp-strings.c:814 msgid "job-delay-output-until.third-shift" msgstr "" #. TRANSLATORS: Weekend #: locale/ipp-strings.c:816 msgid "job-delay-output-until.weekend" msgstr "" #. TRANSLATORS: On Error #: locale/ipp-strings.c:818 msgid "job-error-action" msgstr "" #. TRANSLATORS: Abort Job #: locale/ipp-strings.c:820 msgid "job-error-action.abort-job" msgstr "" #. TRANSLATORS: Cancel Job #: locale/ipp-strings.c:822 msgid "job-error-action.cancel-job" msgstr "" #. TRANSLATORS: Continue Job #: locale/ipp-strings.c:824 msgid "job-error-action.continue-job" msgstr "" #. TRANSLATORS: Suspend Job #: locale/ipp-strings.c:826 msgid "job-error-action.suspend-job" msgstr "" #. TRANSLATORS: Print Error Sheet #: locale/ipp-strings.c:828 msgid "job-error-sheet" msgstr "" #. TRANSLATORS: Type of Error Sheet #: locale/ipp-strings.c:830 msgid "job-error-sheet-type" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:832 msgid "job-error-sheet-type.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:834 msgid "job-error-sheet-type.standard" msgstr "" #. TRANSLATORS: Print Error Sheet #: locale/ipp-strings.c:836 msgid "job-error-sheet-when" msgstr "" #. TRANSLATORS: Always #: locale/ipp-strings.c:838 msgid "job-error-sheet-when.always" msgstr "" #. TRANSLATORS: On Error #: locale/ipp-strings.c:840 msgid "job-error-sheet-when.on-error" msgstr "" #. TRANSLATORS: Job Finishings #: locale/ipp-strings.c:842 msgid "job-finishings" msgstr "" #. TRANSLATORS: Hold Until #: locale/ipp-strings.c:844 msgid "job-hold-until" msgstr "" #. TRANSLATORS: Hold Until #: locale/ipp-strings.c:846 msgid "job-hold-until-time" msgstr "" #. TRANSLATORS: Daytime #: locale/ipp-strings.c:848 msgid "job-hold-until.day-time" msgstr "" #. TRANSLATORS: Evening #: locale/ipp-strings.c:850 msgid "job-hold-until.evening" msgstr "" #. TRANSLATORS: Released #: locale/ipp-strings.c:852 msgid "job-hold-until.indefinite" msgstr "" #. TRANSLATORS: Night #: locale/ipp-strings.c:854 msgid "job-hold-until.night" msgstr "" #. TRANSLATORS: No Hold #: locale/ipp-strings.c:856 msgid "job-hold-until.no-hold" msgstr "" #. TRANSLATORS: Second Shift #: locale/ipp-strings.c:858 msgid "job-hold-until.second-shift" msgstr "" #. TRANSLATORS: Third Shift #: locale/ipp-strings.c:860 msgid "job-hold-until.third-shift" msgstr "" #. TRANSLATORS: Weekend #: locale/ipp-strings.c:862 msgid "job-hold-until.weekend" msgstr "" #. TRANSLATORS: Job Mandatory Attributes #: locale/ipp-strings.c:864 msgid "job-mandatory-attributes" msgstr "" #. TRANSLATORS: Title #: locale/ipp-strings.c:866 msgid "job-name" msgstr "" #. TRANSLATORS: Job Pages #: locale/ipp-strings.c:868 msgid "job-pages" msgstr "" #. TRANSLATORS: Job Pages #: locale/ipp-strings.c:870 msgid "job-pages-col" msgstr "" #. TRANSLATORS: Job Phone Number #: locale/ipp-strings.c:872 msgid "job-phone-number" msgstr "" #: scheduler/ipp.c:8099 msgid "job-printer-uri attribute missing." msgstr "" #. TRANSLATORS: Job Priority #: locale/ipp-strings.c:874 msgid "job-priority" msgstr "" #. TRANSLATORS: Job Privacy Attributes #: locale/ipp-strings.c:876 msgid "job-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:878 msgid "job-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:880 msgid "job-privacy-attributes.default" msgstr "" #. TRANSLATORS: Job Description #: locale/ipp-strings.c:882 msgid "job-privacy-attributes.job-description" msgstr "" #. TRANSLATORS: Job Template #: locale/ipp-strings.c:884 msgid "job-privacy-attributes.job-template" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:886 msgid "job-privacy-attributes.none" msgstr "" #. TRANSLATORS: Job Privacy Scope #: locale/ipp-strings.c:888 msgid "job-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:890 msgid "job-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:892 msgid "job-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:894 msgid "job-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:896 msgid "job-privacy-scope.owner" msgstr "" #. TRANSLATORS: Job Recipient Name #: locale/ipp-strings.c:898 msgid "job-recipient-name" msgstr "" #. TRANSLATORS: Job Retain Until #: locale/ipp-strings.c:900 msgid "job-retain-until" msgstr "" #. TRANSLATORS: Job Retain Until Interval #: locale/ipp-strings.c:902 msgid "job-retain-until-interval" msgstr "" #. TRANSLATORS: Job Retain Until Time #: locale/ipp-strings.c:904 msgid "job-retain-until-time" msgstr "" #. TRANSLATORS: End Of Day #: locale/ipp-strings.c:906 msgid "job-retain-until.end-of-day" msgstr "" #. TRANSLATORS: End Of Month #: locale/ipp-strings.c:908 msgid "job-retain-until.end-of-month" msgstr "" #. TRANSLATORS: End Of Week #: locale/ipp-strings.c:910 msgid "job-retain-until.end-of-week" msgstr "" #. TRANSLATORS: Indefinite #: locale/ipp-strings.c:912 msgid "job-retain-until.indefinite" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:914 msgid "job-retain-until.none" msgstr "" #. TRANSLATORS: Job Save Disposition #: locale/ipp-strings.c:916 msgid "job-save-disposition" msgstr "" #. TRANSLATORS: Job Sheet Message #: locale/ipp-strings.c:918 msgid "job-sheet-message" msgstr "" #. TRANSLATORS: Banner Page #: locale/ipp-strings.c:920 msgid "job-sheets" msgstr "" #. TRANSLATORS: Banner Page #: locale/ipp-strings.c:922 msgid "job-sheets-col" msgstr "" #. TRANSLATORS: First Page in Document #: locale/ipp-strings.c:924 msgid "job-sheets.first-print-stream-page" msgstr "" #. TRANSLATORS: Start and End Sheets #: locale/ipp-strings.c:926 msgid "job-sheets.job-both-sheet" msgstr "" #. TRANSLATORS: End Sheet #: locale/ipp-strings.c:928 msgid "job-sheets.job-end-sheet" msgstr "" #. TRANSLATORS: Start Sheet #: locale/ipp-strings.c:930 msgid "job-sheets.job-start-sheet" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:932 msgid "job-sheets.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:934 msgid "job-sheets.standard" msgstr "" #. TRANSLATORS: Job State #: locale/ipp-strings.c:936 msgid "job-state" msgstr "" #. TRANSLATORS: Job State Message #: locale/ipp-strings.c:938 msgid "job-state-message" msgstr "" #. TRANSLATORS: Detailed Job State #: locale/ipp-strings.c:940 msgid "job-state-reasons" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:942 msgid "job-state-reasons.aborted-by-system" msgstr "" #. TRANSLATORS: Account Authorization Failed #: locale/ipp-strings.c:944 msgid "job-state-reasons.account-authorization-failed" msgstr "" #. TRANSLATORS: Account Closed #: locale/ipp-strings.c:946 msgid "job-state-reasons.account-closed" msgstr "" #. TRANSLATORS: Account Info Needed #: locale/ipp-strings.c:948 msgid "job-state-reasons.account-info-needed" msgstr "" #. TRANSLATORS: Account Limit Reached #: locale/ipp-strings.c:950 msgid "job-state-reasons.account-limit-reached" msgstr "" #. TRANSLATORS: Decompression error #: locale/ipp-strings.c:952 msgid "job-state-reasons.compression-error" msgstr "" #. TRANSLATORS: Conflicting Attributes #: locale/ipp-strings.c:954 msgid "job-state-reasons.conflicting-attributes" msgstr "" #. TRANSLATORS: Connected To Destination #: locale/ipp-strings.c:956 msgid "job-state-reasons.connected-to-destination" msgstr "" #. TRANSLATORS: Connecting To Destination #: locale/ipp-strings.c:958 msgid "job-state-reasons.connecting-to-destination" msgstr "" #. TRANSLATORS: Destination Uri Failed #: locale/ipp-strings.c:960 msgid "job-state-reasons.destination-uri-failed" msgstr "" #. TRANSLATORS: Digital Signature Did Not Verify #: locale/ipp-strings.c:962 msgid "job-state-reasons.digital-signature-did-not-verify" msgstr "" #. TRANSLATORS: Digital Signature Type Not Supported #: locale/ipp-strings.c:964 msgid "job-state-reasons.digital-signature-type-not-supported" msgstr "" #. TRANSLATORS: Document Access Error #: locale/ipp-strings.c:966 msgid "job-state-reasons.document-access-error" msgstr "" #. TRANSLATORS: Document Format Error #: locale/ipp-strings.c:968 msgid "job-state-reasons.document-format-error" msgstr "" #. TRANSLATORS: Document Password Error #: locale/ipp-strings.c:970 msgid "job-state-reasons.document-password-error" msgstr "" #. TRANSLATORS: Document Permission Error #: locale/ipp-strings.c:972 msgid "job-state-reasons.document-permission-error" msgstr "" #. TRANSLATORS: Document Security Error #: locale/ipp-strings.c:974 msgid "job-state-reasons.document-security-error" msgstr "" #. TRANSLATORS: Document Unprintable Error #: locale/ipp-strings.c:976 msgid "job-state-reasons.document-unprintable-error" msgstr "" #. TRANSLATORS: Errors Detected #: locale/ipp-strings.c:978 msgid "job-state-reasons.errors-detected" msgstr "" #. TRANSLATORS: Canceled at printer #: locale/ipp-strings.c:980 msgid "job-state-reasons.job-canceled-at-device" msgstr "" #. TRANSLATORS: Canceled by operator #: locale/ipp-strings.c:982 msgid "job-state-reasons.job-canceled-by-operator" msgstr "" #. TRANSLATORS: Canceled by user #: locale/ipp-strings.c:984 msgid "job-state-reasons.job-canceled-by-user" msgstr "" #. TRANSLATORS: #: locale/ipp-strings.c:986 msgid "job-state-reasons.job-completed-successfully" msgstr "" #. TRANSLATORS: Completed with errors #: locale/ipp-strings.c:988 msgid "job-state-reasons.job-completed-with-errors" msgstr "" #. TRANSLATORS: Completed with warnings #: locale/ipp-strings.c:990 msgid "job-state-reasons.job-completed-with-warnings" msgstr "" #. TRANSLATORS: Insufficient data #: locale/ipp-strings.c:992 msgid "job-state-reasons.job-data-insufficient" msgstr "" #. TRANSLATORS: Job Delay Output Until Specified #: locale/ipp-strings.c:994 msgid "job-state-reasons.job-delay-output-until-specified" msgstr "" #. TRANSLATORS: Job Digital Signature Wait #: locale/ipp-strings.c:996 msgid "job-state-reasons.job-digital-signature-wait" msgstr "" #. TRANSLATORS: Job Fetchable #: locale/ipp-strings.c:998 msgid "job-state-reasons.job-fetchable" msgstr "" #. TRANSLATORS: Job Held For Review #: locale/ipp-strings.c:1000 msgid "job-state-reasons.job-held-for-review" msgstr "" #. TRANSLATORS: Job held #: locale/ipp-strings.c:1002 msgid "job-state-reasons.job-hold-until-specified" msgstr "" #. TRANSLATORS: Incoming #: locale/ipp-strings.c:1004 msgid "job-state-reasons.job-incoming" msgstr "" #. TRANSLATORS: Interpreting #: locale/ipp-strings.c:1006 msgid "job-state-reasons.job-interpreting" msgstr "" #. TRANSLATORS: Outgoing #: locale/ipp-strings.c:1008 msgid "job-state-reasons.job-outgoing" msgstr "" #. TRANSLATORS: Job Password Wait #: locale/ipp-strings.c:1010 msgid "job-state-reasons.job-password-wait" msgstr "" #. TRANSLATORS: Job Printed Successfully #: locale/ipp-strings.c:1012 msgid "job-state-reasons.job-printed-successfully" msgstr "" #. TRANSLATORS: Job Printed With Errors #: locale/ipp-strings.c:1014 msgid "job-state-reasons.job-printed-with-errors" msgstr "" #. TRANSLATORS: Job Printed With Warnings #: locale/ipp-strings.c:1016 msgid "job-state-reasons.job-printed-with-warnings" msgstr "" #. TRANSLATORS: Printing #: locale/ipp-strings.c:1018 msgid "job-state-reasons.job-printing" msgstr "" #. TRANSLATORS: Preparing to print #: locale/ipp-strings.c:1020 msgid "job-state-reasons.job-queued" msgstr "" #. TRANSLATORS: Processing document #: locale/ipp-strings.c:1022 msgid "job-state-reasons.job-queued-for-marker" msgstr "" #. TRANSLATORS: Job Release Wait #: locale/ipp-strings.c:1024 msgid "job-state-reasons.job-release-wait" msgstr "" #. TRANSLATORS: Restartable #: locale/ipp-strings.c:1026 msgid "job-state-reasons.job-restartable" msgstr "" #. TRANSLATORS: Job Resuming #: locale/ipp-strings.c:1028 msgid "job-state-reasons.job-resuming" msgstr "" #. TRANSLATORS: Job Saved Successfully #: locale/ipp-strings.c:1030 msgid "job-state-reasons.job-saved-successfully" msgstr "" #. TRANSLATORS: Job Saved With Errors #: locale/ipp-strings.c:1032 msgid "job-state-reasons.job-saved-with-errors" msgstr "" #. TRANSLATORS: Job Saved With Warnings #: locale/ipp-strings.c:1034 msgid "job-state-reasons.job-saved-with-warnings" msgstr "" #. TRANSLATORS: Job Saving #: locale/ipp-strings.c:1036 msgid "job-state-reasons.job-saving" msgstr "" #. TRANSLATORS: Job Spooling #: locale/ipp-strings.c:1038 msgid "job-state-reasons.job-spooling" msgstr "" #. TRANSLATORS: Job Streaming #: locale/ipp-strings.c:1040 msgid "job-state-reasons.job-streaming" msgstr "" #. TRANSLATORS: Suspended #: locale/ipp-strings.c:1042 msgid "job-state-reasons.job-suspended" msgstr "" #. TRANSLATORS: Job Suspended By Operator #: locale/ipp-strings.c:1044 msgid "job-state-reasons.job-suspended-by-operator" msgstr "" #. TRANSLATORS: Job Suspended By System #: locale/ipp-strings.c:1046 msgid "job-state-reasons.job-suspended-by-system" msgstr "" #. TRANSLATORS: Job Suspended By User #: locale/ipp-strings.c:1048 msgid "job-state-reasons.job-suspended-by-user" msgstr "" #. TRANSLATORS: Job Suspending #: locale/ipp-strings.c:1050 msgid "job-state-reasons.job-suspending" msgstr "" #. TRANSLATORS: Job Transferring #: locale/ipp-strings.c:1052 msgid "job-state-reasons.job-transferring" msgstr "" #. TRANSLATORS: Transforming #: locale/ipp-strings.c:1054 msgid "job-state-reasons.job-transforming" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1056 msgid "job-state-reasons.none" msgstr "" #. TRANSLATORS: Printer offline #: locale/ipp-strings.c:1058 msgid "job-state-reasons.printer-stopped" msgstr "" #. TRANSLATORS: Printer partially stopped #: locale/ipp-strings.c:1060 msgid "job-state-reasons.printer-stopped-partly" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:1062 msgid "job-state-reasons.processing-to-stop-point" msgstr "" #. TRANSLATORS: Ready #: locale/ipp-strings.c:1064 msgid "job-state-reasons.queued-in-device" msgstr "" #. TRANSLATORS: Resources Are Not Ready #: locale/ipp-strings.c:1066 msgid "job-state-reasons.resources-are-not-ready" msgstr "" #. TRANSLATORS: Resources Are Not Supported #: locale/ipp-strings.c:1068 msgid "job-state-reasons.resources-are-not-supported" msgstr "" #. TRANSLATORS: Service offline #: locale/ipp-strings.c:1070 msgid "job-state-reasons.service-off-line" msgstr "" #. TRANSLATORS: Submission Interrupted #: locale/ipp-strings.c:1072 msgid "job-state-reasons.submission-interrupted" msgstr "" #. TRANSLATORS: Unsupported Attributes Or Values #: locale/ipp-strings.c:1074 msgid "job-state-reasons.unsupported-attributes-or-values" msgstr "" #. TRANSLATORS: Unsupported Compression #: locale/ipp-strings.c:1076 msgid "job-state-reasons.unsupported-compression" msgstr "" #. TRANSLATORS: Unsupported Document Format #: locale/ipp-strings.c:1078 msgid "job-state-reasons.unsupported-document-format" msgstr "" #. TRANSLATORS: Waiting For User Action #: locale/ipp-strings.c:1080 msgid "job-state-reasons.waiting-for-user-action" msgstr "" #. TRANSLATORS: Warnings Detected #: locale/ipp-strings.c:1082 msgid "job-state-reasons.warnings-detected" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:1084 msgid "job-state.3" msgstr "" #. TRANSLATORS: Held #: locale/ipp-strings.c:1086 msgid "job-state.4" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:1088 msgid "job-state.5" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:1090 msgid "job-state.6" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:1092 msgid "job-state.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:1094 msgid "job-state.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:1096 msgid "job-state.9" msgstr "" #. TRANSLATORS: Laminate Pages #: locale/ipp-strings.c:1098 msgid "laminating" msgstr "" #. TRANSLATORS: Laminate #: locale/ipp-strings.c:1100 msgid "laminating-sides" msgstr "" #. TRANSLATORS: Back Only #: locale/ipp-strings.c:1102 msgid "laminating-sides.back" msgstr "" #. TRANSLATORS: Front and Back #: locale/ipp-strings.c:1104 msgid "laminating-sides.both" msgstr "" #. TRANSLATORS: Front Only #: locale/ipp-strings.c:1106 msgid "laminating-sides.front" msgstr "" #. TRANSLATORS: Type of Lamination #: locale/ipp-strings.c:1108 msgid "laminating-type" msgstr "" #. TRANSLATORS: Archival #: locale/ipp-strings.c:1110 msgid "laminating-type.archival" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:1112 msgid "laminating-type.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:1114 msgid "laminating-type.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:1116 msgid "laminating-type.matte" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:1118 msgid "laminating-type.semi-gloss" msgstr "" #. TRANSLATORS: Translucent #: locale/ipp-strings.c:1120 msgid "laminating-type.translucent" msgstr "" #. TRANSLATORS: Logo #: locale/ipp-strings.c:1122 msgid "logo" msgstr "" #: systemv/lpadmin.c:124 systemv/lpadmin.c:379 msgid "lpadmin: Class name can only contain printable characters." msgstr "" #: systemv/lpadmin.c:214 #, c-format msgid "lpadmin: Expected PPD after \"-%c\" option." msgstr "" #: systemv/lpadmin.c:460 msgid "lpadmin: Expected allow/deny:userlist after \"-u\" option." msgstr "" #: systemv/lpadmin.c:370 msgid "lpadmin: Expected class after \"-r\" option." msgstr "" #: systemv/lpadmin.c:114 msgid "lpadmin: Expected class name after \"-c\" option." msgstr "" #: systemv/lpadmin.c:554 msgid "lpadmin: Expected description after \"-D\" option." msgstr "" #: systemv/lpadmin.c:490 msgid "lpadmin: Expected device URI after \"-v\" option." msgstr "" #: systemv/lpadmin.c:567 msgid "lpadmin: Expected file type(s) after \"-I\" option." msgstr "" #: systemv/lpadmin.c:193 msgid "lpadmin: Expected hostname after \"-h\" option." msgstr "" #: systemv/lpadmin.c:586 msgid "lpadmin: Expected location after \"-L\" option." msgstr "" #: systemv/lpadmin.c:283 msgid "lpadmin: Expected model after \"-m\" option." msgstr "" #: systemv/lpadmin.c:418 msgid "lpadmin: Expected name after \"-R\" option." msgstr "" #: systemv/lpadmin.c:303 msgid "lpadmin: Expected name=value after \"-o\" option." msgstr "" #: systemv/lpadmin.c:323 msgid "lpadmin: Expected printer after \"-p\" option." msgstr "" #: systemv/lpadmin.c:156 msgid "lpadmin: Expected printer name after \"-d\" option." msgstr "" #: systemv/lpadmin.c:523 msgid "lpadmin: Expected printer or class after \"-x\" option." msgstr "" #: systemv/lpadmin.c:959 msgid "lpadmin: No member names were seen." msgstr "" #: systemv/lpadmin.c:753 #, c-format msgid "lpadmin: Printer %s is already a member of class %s." msgstr "" #: systemv/lpadmin.c:973 #, c-format msgid "lpadmin: Printer %s is not a member of class %s." msgstr "" #: systemv/lpadmin.c:638 msgid "lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS." msgstr "" #: systemv/lpadmin.c:165 systemv/lpadmin.c:332 systemv/lpadmin.c:532 msgid "lpadmin: Printer name can only contain printable characters." msgstr "" #: systemv/lpadmin.c:619 msgid "lpadmin: Raw queues are deprecated and will stop working in a future version of CUPS." msgstr "" #: systemv/lpadmin.c:617 msgid "lpadmin: Raw queues are no longer supported on macOS." msgstr "" #: systemv/lpadmin.c:232 msgid "lpadmin: System V interface scripts are no longer supported for security reasons." msgstr "" #: systemv/lpadmin.c:98 msgid "" "lpadmin: Unable to add a printer to the class:\n" " You must specify a printer name first." msgstr "" #: systemv/lpadmin.c:90 systemv/lpadmin.c:140 systemv/lpadmin.c:262 #: systemv/lpadmin.c:345 systemv/lpadmin.c:394 systemv/lpadmin.c:506 #: systemv/lpadmin.c:657 #, c-format msgid "lpadmin: Unable to connect to server: %s" msgstr "" #: systemv/lpadmin.c:1443 msgid "lpadmin: Unable to create temporary file" msgstr "" #: systemv/lpadmin.c:402 msgid "" "lpadmin: Unable to delete option:\n" " You must specify a printer name first." msgstr "" #: systemv/lpadmin.c:1454 #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s" msgstr "" #: systemv/lpadmin.c:1434 #, c-format msgid "lpadmin: Unable to open PPD \"%s\": %s on line %d." msgstr "" #: systemv/lpadmin.c:354 msgid "" "lpadmin: Unable to remove a printer from the class:\n" " You must specify a printer name first." msgstr "" #: systemv/lpadmin.c:646 msgid "" "lpadmin: Unable to set the printer options:\n" " You must specify a printer name first." msgstr "" #: systemv/lpadmin.c:473 #, c-format msgid "lpadmin: Unknown allow/deny option \"%s\"." msgstr "" #: systemv/lpadmin.c:602 #, c-format msgid "lpadmin: Unknown argument \"%s\"." msgstr "" #: systemv/lpadmin.c:595 #, c-format msgid "lpadmin: Unknown option \"%c\"." msgstr "" #: systemv/lpadmin.c:623 msgid "lpadmin: Use the 'everywhere' model for shared printers." msgstr "" #: systemv/lpadmin.c:571 msgid "lpadmin: Warning - content type list ignored." msgstr "" #: berkeley/lpc.c:62 berkeley/lpc.c:90 berkeley/lpc.c:126 msgid "lpc> " msgstr "" #: systemv/lpinfo.c:81 msgid "lpinfo: Expected 1284 device ID string after \"--device-id\"." msgstr "" #: systemv/lpinfo.c:130 msgid "lpinfo: Expected language after \"--language\"." msgstr "" #: systemv/lpinfo.c:145 msgid "lpinfo: Expected make and model after \"--make-and-model\"." msgstr "" #: systemv/lpinfo.c:160 msgid "lpinfo: Expected product string after \"--product\"." msgstr "" #: systemv/lpinfo.c:97 msgid "lpinfo: Expected scheme list after \"--exclude-schemes\"." msgstr "" #: systemv/lpinfo.c:115 msgid "lpinfo: Expected scheme list after \"--include-schemes\"." msgstr "" #: systemv/lpinfo.c:175 msgid "lpinfo: Expected timeout after \"--timeout\"." msgstr "" #: systemv/lpmove.c:130 #, c-format msgid "lpmove: Unable to connect to server: %s" msgstr "" #: systemv/lpmove.c:118 #, c-format msgid "lpmove: Unknown argument \"%s\"." msgstr "" #: systemv/lpoptions.c:149 systemv/lpoptions.c:167 systemv/lpoptions.c:246 msgid "lpoptions: No printers." msgstr "" #: systemv/lpoptions.c:223 #, c-format msgid "lpoptions: Unable to add printer or instance: %s" msgstr "" #: systemv/lpoptions.c:492 systemv/lpoptions.c:501 #, c-format msgid "lpoptions: Unable to get PPD file for %s: %s" msgstr "" #: systemv/lpoptions.c:511 #, c-format msgid "lpoptions: Unable to open PPD file for %s." msgstr "" #: systemv/lpoptions.c:95 msgid "lpoptions: Unknown printer or class." msgstr "" #: systemv/lpstat.c:1100 #, c-format msgid "lpstat: error - %s environment variable names non-existent destination \"%s\"." msgstr "" #. TRANSLATORS: Amount of Material #: locale/ipp-strings.c:1124 msgid "material-amount" msgstr "" #. TRANSLATORS: Amount Units #: locale/ipp-strings.c:1126 msgid "material-amount-units" msgstr "" #. TRANSLATORS: Grams #: locale/ipp-strings.c:1128 msgid "material-amount-units.g" msgstr "" #. TRANSLATORS: Kilograms #: locale/ipp-strings.c:1130 msgid "material-amount-units.kg" msgstr "" #. TRANSLATORS: Liters #: locale/ipp-strings.c:1132 msgid "material-amount-units.l" msgstr "" #. TRANSLATORS: Meters #: locale/ipp-strings.c:1134 msgid "material-amount-units.m" msgstr "" #. TRANSLATORS: Milliliters #: locale/ipp-strings.c:1136 msgid "material-amount-units.ml" msgstr "" #. TRANSLATORS: Millimeters #: locale/ipp-strings.c:1138 msgid "material-amount-units.mm" msgstr "" #. TRANSLATORS: Material Color #: locale/ipp-strings.c:1140 msgid "material-color" msgstr "" #. TRANSLATORS: Material Diameter #: locale/ipp-strings.c:1142 msgid "material-diameter" msgstr "" #. TRANSLATORS: Material Diameter Tolerance #: locale/ipp-strings.c:1144 msgid "material-diameter-tolerance" msgstr "" #. TRANSLATORS: Material Fill Density #: locale/ipp-strings.c:1146 msgid "material-fill-density" msgstr "" #. TRANSLATORS: Material Name #: locale/ipp-strings.c:1148 msgid "material-name" msgstr "" #. TRANSLATORS: Material Nozzle Diameter #: locale/ipp-strings.c:1150 msgid "material-nozzle-diameter" msgstr "" #. TRANSLATORS: Use Material For #: locale/ipp-strings.c:1152 msgid "material-purpose" msgstr "" #. TRANSLATORS: Everything #: locale/ipp-strings.c:1154 msgid "material-purpose.all" msgstr "" #. TRANSLATORS: Base #: locale/ipp-strings.c:1156 msgid "material-purpose.base" msgstr "" #. TRANSLATORS: In-fill #: locale/ipp-strings.c:1158 msgid "material-purpose.in-fill" msgstr "" #. TRANSLATORS: Shell #: locale/ipp-strings.c:1160 msgid "material-purpose.shell" msgstr "" #. TRANSLATORS: Supports #: locale/ipp-strings.c:1162 msgid "material-purpose.support" msgstr "" #. TRANSLATORS: Feed Rate #: locale/ipp-strings.c:1164 msgid "material-rate" msgstr "" #. TRANSLATORS: Feed Rate Units #: locale/ipp-strings.c:1166 msgid "material-rate-units" msgstr "" #. TRANSLATORS: Milligrams per second #: locale/ipp-strings.c:1168 msgid "material-rate-units.mg_second" msgstr "" #. TRANSLATORS: Milliliters per second #: locale/ipp-strings.c:1170 msgid "material-rate-units.ml_second" msgstr "" #. TRANSLATORS: Millimeters per second #: locale/ipp-strings.c:1172 msgid "material-rate-units.mm_second" msgstr "" #. TRANSLATORS: Material Retraction #: locale/ipp-strings.c:1174 msgid "material-retraction" msgstr "" #. TRANSLATORS: Material Shell Thickness #: locale/ipp-strings.c:1176 msgid "material-shell-thickness" msgstr "" #. TRANSLATORS: Material Temperature #: locale/ipp-strings.c:1178 msgid "material-temperature" msgstr "" #. TRANSLATORS: Material Type #: locale/ipp-strings.c:1180 msgid "material-type" msgstr "" #. TRANSLATORS: ABS #: locale/ipp-strings.c:1182 msgid "material-type.abs" msgstr "" #. TRANSLATORS: Carbon Fiber ABS #: locale/ipp-strings.c:1184 msgid "material-type.abs-carbon-fiber" msgstr "" #. TRANSLATORS: Carbon Nanotube ABS #: locale/ipp-strings.c:1186 msgid "material-type.abs-carbon-nanotube" msgstr "" #. TRANSLATORS: Chocolate #: locale/ipp-strings.c:1188 msgid "material-type.chocolate" msgstr "" #. TRANSLATORS: Gold #: locale/ipp-strings.c:1190 msgid "material-type.gold" msgstr "" #. TRANSLATORS: Nylon #: locale/ipp-strings.c:1192 msgid "material-type.nylon" msgstr "" #. TRANSLATORS: Pet #: locale/ipp-strings.c:1194 msgid "material-type.pet" msgstr "" #. TRANSLATORS: Photopolymer #: locale/ipp-strings.c:1196 msgid "material-type.photopolymer" msgstr "" #. TRANSLATORS: PLA #: locale/ipp-strings.c:1198 msgid "material-type.pla" msgstr "" #. TRANSLATORS: Conductive PLA #: locale/ipp-strings.c:1200 msgid "material-type.pla-conductive" msgstr "" #. TRANSLATORS: Pla Dissolvable #: locale/ipp-strings.c:1202 msgid "material-type.pla-dissolvable" msgstr "" #. TRANSLATORS: Flexible PLA #: locale/ipp-strings.c:1204 msgid "material-type.pla-flexible" msgstr "" #. TRANSLATORS: Magnetic PLA #: locale/ipp-strings.c:1206 msgid "material-type.pla-magnetic" msgstr "" #. TRANSLATORS: Steel PLA #: locale/ipp-strings.c:1208 msgid "material-type.pla-steel" msgstr "" #. TRANSLATORS: Stone PLA #: locale/ipp-strings.c:1210 msgid "material-type.pla-stone" msgstr "" #. TRANSLATORS: Wood PLA #: locale/ipp-strings.c:1212 msgid "material-type.pla-wood" msgstr "" #. TRANSLATORS: Polycarbonate #: locale/ipp-strings.c:1214 msgid "material-type.polycarbonate" msgstr "" #. TRANSLATORS: Dissolvable PVA #: locale/ipp-strings.c:1216 msgid "material-type.pva-dissolvable" msgstr "" #. TRANSLATORS: Silver #: locale/ipp-strings.c:1218 msgid "material-type.silver" msgstr "" #. TRANSLATORS: Titanium #: locale/ipp-strings.c:1220 msgid "material-type.titanium" msgstr "" #. TRANSLATORS: Wax #: locale/ipp-strings.c:1222 msgid "material-type.wax" msgstr "" #. TRANSLATORS: Materials #: locale/ipp-strings.c:1224 msgid "materials-col" msgstr "" #. TRANSLATORS: Media #: locale/ipp-strings.c:1226 msgid "media" msgstr "" #. TRANSLATORS: Back Coating of Media #: locale/ipp-strings.c:1228 msgid "media-back-coating" msgstr "" #. TRANSLATORS: Glossy #: locale/ipp-strings.c:1230 msgid "media-back-coating.glossy" msgstr "" #. TRANSLATORS: High Gloss #: locale/ipp-strings.c:1232 msgid "media-back-coating.high-gloss" msgstr "" #. TRANSLATORS: Matte #: locale/ipp-strings.c:1234 msgid "media-back-coating.matte" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1236 msgid "media-back-coating.none" msgstr "" #. TRANSLATORS: Satin #: locale/ipp-strings.c:1238 msgid "media-back-coating.satin" msgstr "" #. TRANSLATORS: Semi-gloss #: locale/ipp-strings.c:1240 msgid "media-back-coating.semi-gloss" msgstr "" #. TRANSLATORS: Media Bottom Margin #: locale/ipp-strings.c:1242 msgid "media-bottom-margin" msgstr "" #. TRANSLATORS: Media #: locale/ipp-strings.c:1244 msgid "media-col" msgstr "" #. TRANSLATORS: Media Color #: locale/ipp-strings.c:1246 msgid "media-color" msgstr "" #. TRANSLATORS: Black #: locale/ipp-strings.c:1248 msgid "media-color.black" msgstr "" #. TRANSLATORS: Blue #: locale/ipp-strings.c:1250 msgid "media-color.blue" msgstr "" #. TRANSLATORS: Brown #: locale/ipp-strings.c:1252 msgid "media-color.brown" msgstr "" #. TRANSLATORS: Buff #: locale/ipp-strings.c:1254 msgid "media-color.buff" msgstr "" #. TRANSLATORS: Clear Black #: locale/ipp-strings.c:1256 msgid "media-color.clear-black" msgstr "" #. TRANSLATORS: Clear Blue #: locale/ipp-strings.c:1258 msgid "media-color.clear-blue" msgstr "" #. TRANSLATORS: Clear Brown #: locale/ipp-strings.c:1260 msgid "media-color.clear-brown" msgstr "" #. TRANSLATORS: Clear Buff #: locale/ipp-strings.c:1262 msgid "media-color.clear-buff" msgstr "" #. TRANSLATORS: Clear Cyan #: locale/ipp-strings.c:1264 msgid "media-color.clear-cyan" msgstr "" #. TRANSLATORS: Clear Gold #: locale/ipp-strings.c:1266 msgid "media-color.clear-gold" msgstr "" #. TRANSLATORS: Clear Goldenrod #: locale/ipp-strings.c:1268 msgid "media-color.clear-goldenrod" msgstr "" #. TRANSLATORS: Clear Gray #: locale/ipp-strings.c:1270 msgid "media-color.clear-gray" msgstr "" #. TRANSLATORS: Clear Green #: locale/ipp-strings.c:1272 msgid "media-color.clear-green" msgstr "" #. TRANSLATORS: Clear Ivory #: locale/ipp-strings.c:1274 msgid "media-color.clear-ivory" msgstr "" #. TRANSLATORS: Clear Magenta #: locale/ipp-strings.c:1276 msgid "media-color.clear-magenta" msgstr "" #. TRANSLATORS: Clear Multi Color #: locale/ipp-strings.c:1278 msgid "media-color.clear-multi-color" msgstr "" #. TRANSLATORS: Clear Mustard #: locale/ipp-strings.c:1280 msgid "media-color.clear-mustard" msgstr "" #. TRANSLATORS: Clear Orange #: locale/ipp-strings.c:1282 msgid "media-color.clear-orange" msgstr "" #. TRANSLATORS: Clear Pink #: locale/ipp-strings.c:1284 msgid "media-color.clear-pink" msgstr "" #. TRANSLATORS: Clear Red #: locale/ipp-strings.c:1286 msgid "media-color.clear-red" msgstr "" #. TRANSLATORS: Clear Silver #: locale/ipp-strings.c:1288 msgid "media-color.clear-silver" msgstr "" #. TRANSLATORS: Clear Turquoise #: locale/ipp-strings.c:1290 msgid "media-color.clear-turquoise" msgstr "" #. TRANSLATORS: Clear Violet #: locale/ipp-strings.c:1292 msgid "media-color.clear-violet" msgstr "" #. TRANSLATORS: Clear White #: locale/ipp-strings.c:1294 msgid "media-color.clear-white" msgstr "" #. TRANSLATORS: Clear Yellow #: locale/ipp-strings.c:1296 msgid "media-color.clear-yellow" msgstr "" #. TRANSLATORS: Cyan #: locale/ipp-strings.c:1298 msgid "media-color.cyan" msgstr "" #. TRANSLATORS: Dark Blue #: locale/ipp-strings.c:1300 msgid "media-color.dark-blue" msgstr "" #. TRANSLATORS: Dark Brown #: locale/ipp-strings.c:1302 msgid "media-color.dark-brown" msgstr "" #. TRANSLATORS: Dark Buff #: locale/ipp-strings.c:1304 msgid "media-color.dark-buff" msgstr "" #. TRANSLATORS: Dark Cyan #: locale/ipp-strings.c:1306 msgid "media-color.dark-cyan" msgstr "" #. TRANSLATORS: Dark Gold #: locale/ipp-strings.c:1308 msgid "media-color.dark-gold" msgstr "" #. TRANSLATORS: Dark Goldenrod #: locale/ipp-strings.c:1310 msgid "media-color.dark-goldenrod" msgstr "" #. TRANSLATORS: Dark Gray #: locale/ipp-strings.c:1312 msgid "media-color.dark-gray" msgstr "" #. TRANSLATORS: Dark Green #: locale/ipp-strings.c:1314 msgid "media-color.dark-green" msgstr "" #. TRANSLATORS: Dark Ivory #: locale/ipp-strings.c:1316 msgid "media-color.dark-ivory" msgstr "" #. TRANSLATORS: Dark Magenta #: locale/ipp-strings.c:1318 msgid "media-color.dark-magenta" msgstr "" #. TRANSLATORS: Dark Mustard #: locale/ipp-strings.c:1320 msgid "media-color.dark-mustard" msgstr "" #. TRANSLATORS: Dark Orange #: locale/ipp-strings.c:1322 msgid "media-color.dark-orange" msgstr "" #. TRANSLATORS: Dark Pink #: locale/ipp-strings.c:1324 msgid "media-color.dark-pink" msgstr "" #. TRANSLATORS: Dark Red #: locale/ipp-strings.c:1326 msgid "media-color.dark-red" msgstr "" #. TRANSLATORS: Dark Silver #: locale/ipp-strings.c:1328 msgid "media-color.dark-silver" msgstr "" #. TRANSLATORS: Dark Turquoise #: locale/ipp-strings.c:1330 msgid "media-color.dark-turquoise" msgstr "" #. TRANSLATORS: Dark Violet #: locale/ipp-strings.c:1332 msgid "media-color.dark-violet" msgstr "" #. TRANSLATORS: Dark Yellow #: locale/ipp-strings.c:1334 msgid "media-color.dark-yellow" msgstr "" #. TRANSLATORS: Gold #: locale/ipp-strings.c:1336 msgid "media-color.gold" msgstr "" #. TRANSLATORS: Goldenrod #: locale/ipp-strings.c:1338 msgid "media-color.goldenrod" msgstr "" #. TRANSLATORS: Gray #: locale/ipp-strings.c:1340 msgid "media-color.gray" msgstr "" #. TRANSLATORS: Green #: locale/ipp-strings.c:1342 msgid "media-color.green" msgstr "" #. TRANSLATORS: Ivory #: locale/ipp-strings.c:1344 msgid "media-color.ivory" msgstr "" #. TRANSLATORS: Light Black #: locale/ipp-strings.c:1346 msgid "media-color.light-black" msgstr "" #. TRANSLATORS: Light Blue #: locale/ipp-strings.c:1348 msgid "media-color.light-blue" msgstr "" #. TRANSLATORS: Light Brown #: locale/ipp-strings.c:1350 msgid "media-color.light-brown" msgstr "" #. TRANSLATORS: Light Buff #: locale/ipp-strings.c:1352 msgid "media-color.light-buff" msgstr "" #. TRANSLATORS: Light Cyan #: locale/ipp-strings.c:1354 msgid "media-color.light-cyan" msgstr "" #. TRANSLATORS: Light Gold #: locale/ipp-strings.c:1356 msgid "media-color.light-gold" msgstr "" #. TRANSLATORS: Light Goldenrod #: locale/ipp-strings.c:1358 msgid "media-color.light-goldenrod" msgstr "" #. TRANSLATORS: Light Gray #: locale/ipp-strings.c:1360 msgid "media-color.light-gray" msgstr "" #. TRANSLATORS: Light Green #: locale/ipp-strings.c:1362 msgid "media-color.light-green" msgstr "" #. TRANSLATORS: Light Ivory #: locale/ipp-strings.c:1364 msgid "media-color.light-ivory" msgstr "" #. TRANSLATORS: Light Magenta #: locale/ipp-strings.c:1366 msgid "media-color.light-magenta" msgstr "" #. TRANSLATORS: Light Mustard #: locale/ipp-strings.c:1368 msgid "media-color.light-mustard" msgstr "" #. TRANSLATORS: Light Orange #: locale/ipp-strings.c:1370 msgid "media-color.light-orange" msgstr "" #. TRANSLATORS: Light Pink #: locale/ipp-strings.c:1372 msgid "media-color.light-pink" msgstr "" #. TRANSLATORS: Light Red #: locale/ipp-strings.c:1374 msgid "media-color.light-red" msgstr "" #. TRANSLATORS: Light Silver #: locale/ipp-strings.c:1376 msgid "media-color.light-silver" msgstr "" #. TRANSLATORS: Light Turquoise #: locale/ipp-strings.c:1378 msgid "media-color.light-turquoise" msgstr "" #. TRANSLATORS: Light Violet #: locale/ipp-strings.c:1380 msgid "media-color.light-violet" msgstr "" #. TRANSLATORS: Light Yellow #: locale/ipp-strings.c:1382 msgid "media-color.light-yellow" msgstr "" #. TRANSLATORS: Magenta #: locale/ipp-strings.c:1384 msgid "media-color.magenta" msgstr "" #. TRANSLATORS: Multi-color #: locale/ipp-strings.c:1386 msgid "media-color.multi-color" msgstr "" #. TRANSLATORS: Mustard #: locale/ipp-strings.c:1388 msgid "media-color.mustard" msgstr "" #. TRANSLATORS: No Color #: locale/ipp-strings.c:1390 msgid "media-color.no-color" msgstr "" #. TRANSLATORS: Orange #: locale/ipp-strings.c:1392 msgid "media-color.orange" msgstr "" #. TRANSLATORS: Pink #: locale/ipp-strings.c:1394 msgid "media-color.pink" msgstr "" #. TRANSLATORS: Red #: locale/ipp-strings.c:1396 msgid "media-color.red" msgstr "" #. TRANSLATORS: Silver #: locale/ipp-strings.c:1398 msgid "media-color.silver" msgstr "" #. TRANSLATORS: Turquoise #: locale/ipp-strings.c:1400 msgid "media-color.turquoise" msgstr "" #. TRANSLATORS: Violet #: locale/ipp-strings.c:1402 msgid "media-color.violet" msgstr "" #. TRANSLATORS: White #: locale/ipp-strings.c:1404 msgid "media-color.white" msgstr "" #. TRANSLATORS: Yellow #: locale/ipp-strings.c:1406 msgid "media-color.yellow" msgstr "" #. TRANSLATORS: Front Coating of Media #: locale/ipp-strings.c:1408 msgid "media-front-coating" msgstr "" #. TRANSLATORS: Media Grain #: locale/ipp-strings.c:1410 msgid "media-grain" msgstr "" #. TRANSLATORS: Cross-Feed Direction #: locale/ipp-strings.c:1412 msgid "media-grain.x-direction" msgstr "" #. TRANSLATORS: Feed Direction #: locale/ipp-strings.c:1414 msgid "media-grain.y-direction" msgstr "" #. TRANSLATORS: Media Hole Count #: locale/ipp-strings.c:1416 msgid "media-hole-count" msgstr "" #. TRANSLATORS: Media Info #: locale/ipp-strings.c:1418 msgid "media-info" msgstr "" #. TRANSLATORS: Force Media #: locale/ipp-strings.c:1420 msgid "media-input-tray-check" msgstr "" #. TRANSLATORS: Media Left Margin #: locale/ipp-strings.c:1422 msgid "media-left-margin" msgstr "" #. TRANSLATORS: Pre-printed Media #: locale/ipp-strings.c:1424 msgid "media-pre-printed" msgstr "" #. TRANSLATORS: Blank #: locale/ipp-strings.c:1426 msgid "media-pre-printed.blank" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1428 msgid "media-pre-printed.letter-head" msgstr "" #. TRANSLATORS: Pre-printed #: locale/ipp-strings.c:1430 msgid "media-pre-printed.pre-printed" msgstr "" #. TRANSLATORS: Recycled Media #: locale/ipp-strings.c:1432 msgid "media-recycled" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:1434 msgid "media-recycled.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:1436 msgid "media-recycled.standard" msgstr "" #. TRANSLATORS: Media Right Margin #: locale/ipp-strings.c:1438 msgid "media-right-margin" msgstr "" #. TRANSLATORS: Media Dimensions #: locale/ipp-strings.c:1440 msgid "media-size" msgstr "" #. TRANSLATORS: Media Name #: locale/ipp-strings.c:1442 msgid "media-size-name" msgstr "" #. TRANSLATORS: Media Source #: locale/ipp-strings.c:1444 msgid "media-source" msgstr "" #. TRANSLATORS: Alternate #: locale/ipp-strings.c:1446 msgid "media-source.alternate" msgstr "" #. TRANSLATORS: Alternate Roll #: locale/ipp-strings.c:1448 msgid "media-source.alternate-roll" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:1450 msgid "media-source.auto" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:1452 msgid "media-source.bottom" msgstr "" #. TRANSLATORS: By-pass Tray #: locale/ipp-strings.c:1454 msgid "media-source.by-pass-tray" msgstr "" #. TRANSLATORS: Center #: locale/ipp-strings.c:1456 msgid "media-source.center" msgstr "" #. TRANSLATORS: Disc #: locale/ipp-strings.c:1458 msgid "media-source.disc" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:1460 msgid "media-source.envelope" msgstr "" #. TRANSLATORS: Hagaki #: locale/ipp-strings.c:1462 msgid "media-source.hagaki" msgstr "" #. TRANSLATORS: Large Capacity #: locale/ipp-strings.c:1464 msgid "media-source.large-capacity" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:1466 msgid "media-source.left" msgstr "" #. TRANSLATORS: Main #: locale/ipp-strings.c:1468 msgid "media-source.main" msgstr "" #. TRANSLATORS: Main Roll #: locale/ipp-strings.c:1470 msgid "media-source.main-roll" msgstr "" #. TRANSLATORS: Manual #: locale/ipp-strings.c:1472 msgid "media-source.manual" msgstr "" #. TRANSLATORS: Middle #: locale/ipp-strings.c:1474 msgid "media-source.middle" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:1476 msgid "media-source.photo" msgstr "" #. TRANSLATORS: Rear #: locale/ipp-strings.c:1478 msgid "media-source.rear" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:1480 msgid "media-source.right" msgstr "" #. TRANSLATORS: Roll 1 #: locale/ipp-strings.c:1482 msgid "media-source.roll-1" msgstr "" #. TRANSLATORS: Roll 10 #: locale/ipp-strings.c:1484 msgid "media-source.roll-10" msgstr "" #. TRANSLATORS: Roll 2 #: locale/ipp-strings.c:1486 msgid "media-source.roll-2" msgstr "" #. TRANSLATORS: Roll 3 #: locale/ipp-strings.c:1488 msgid "media-source.roll-3" msgstr "" #. TRANSLATORS: Roll 4 #: locale/ipp-strings.c:1490 msgid "media-source.roll-4" msgstr "" #. TRANSLATORS: Roll 5 #: locale/ipp-strings.c:1492 msgid "media-source.roll-5" msgstr "" #. TRANSLATORS: Roll 6 #: locale/ipp-strings.c:1494 msgid "media-source.roll-6" msgstr "" #. TRANSLATORS: Roll 7 #: locale/ipp-strings.c:1496 msgid "media-source.roll-7" msgstr "" #. TRANSLATORS: Roll 8 #: locale/ipp-strings.c:1498 msgid "media-source.roll-8" msgstr "" #. TRANSLATORS: Roll 9 #: locale/ipp-strings.c:1500 msgid "media-source.roll-9" msgstr "" #. TRANSLATORS: Side #: locale/ipp-strings.c:1502 msgid "media-source.side" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:1504 msgid "media-source.top" msgstr "" #. TRANSLATORS: Tray 1 #: locale/ipp-strings.c:1506 msgid "media-source.tray-1" msgstr "" #. TRANSLATORS: Tray 10 #: locale/ipp-strings.c:1508 msgid "media-source.tray-10" msgstr "" #. TRANSLATORS: Tray 11 #: locale/ipp-strings.c:1510 msgid "media-source.tray-11" msgstr "" #. TRANSLATORS: Tray 12 #: locale/ipp-strings.c:1512 msgid "media-source.tray-12" msgstr "" #. TRANSLATORS: Tray 13 #: locale/ipp-strings.c:1514 msgid "media-source.tray-13" msgstr "" #. TRANSLATORS: Tray 14 #: locale/ipp-strings.c:1516 msgid "media-source.tray-14" msgstr "" #. TRANSLATORS: Tray 15 #: locale/ipp-strings.c:1518 msgid "media-source.tray-15" msgstr "" #. TRANSLATORS: Tray 16 #: locale/ipp-strings.c:1520 msgid "media-source.tray-16" msgstr "" #. TRANSLATORS: Tray 17 #: locale/ipp-strings.c:1522 msgid "media-source.tray-17" msgstr "" #. TRANSLATORS: Tray 18 #: locale/ipp-strings.c:1524 msgid "media-source.tray-18" msgstr "" #. TRANSLATORS: Tray 19 #: locale/ipp-strings.c:1526 msgid "media-source.tray-19" msgstr "" #. TRANSLATORS: Tray 2 #: locale/ipp-strings.c:1528 msgid "media-source.tray-2" msgstr "" #. TRANSLATORS: Tray 20 #: locale/ipp-strings.c:1530 msgid "media-source.tray-20" msgstr "" #. TRANSLATORS: Tray 3 #: locale/ipp-strings.c:1532 msgid "media-source.tray-3" msgstr "" #. TRANSLATORS: Tray 4 #: locale/ipp-strings.c:1534 msgid "media-source.tray-4" msgstr "" #. TRANSLATORS: Tray 5 #: locale/ipp-strings.c:1536 msgid "media-source.tray-5" msgstr "" #. TRANSLATORS: Tray 6 #: locale/ipp-strings.c:1538 msgid "media-source.tray-6" msgstr "" #. TRANSLATORS: Tray 7 #: locale/ipp-strings.c:1540 msgid "media-source.tray-7" msgstr "" #. TRANSLATORS: Tray 8 #: locale/ipp-strings.c:1542 msgid "media-source.tray-8" msgstr "" #. TRANSLATORS: Tray 9 #: locale/ipp-strings.c:1544 msgid "media-source.tray-9" msgstr "" #. TRANSLATORS: Media Thickness #: locale/ipp-strings.c:1546 msgid "media-thickness" msgstr "" #. TRANSLATORS: Media Tooth (Texture) #: locale/ipp-strings.c:1548 msgid "media-tooth" msgstr "" #. TRANSLATORS: Antique #: locale/ipp-strings.c:1550 msgid "media-tooth.antique" msgstr "" #. TRANSLATORS: Extra Smooth #: locale/ipp-strings.c:1552 msgid "media-tooth.calendared" msgstr "" #. TRANSLATORS: Coarse #: locale/ipp-strings.c:1554 msgid "media-tooth.coarse" msgstr "" #. TRANSLATORS: Fine #: locale/ipp-strings.c:1556 msgid "media-tooth.fine" msgstr "" #. TRANSLATORS: Linen #: locale/ipp-strings.c:1558 msgid "media-tooth.linen" msgstr "" #. TRANSLATORS: Medium #: locale/ipp-strings.c:1560 msgid "media-tooth.medium" msgstr "" #. TRANSLATORS: Smooth #: locale/ipp-strings.c:1562 msgid "media-tooth.smooth" msgstr "" #. TRANSLATORS: Stipple #: locale/ipp-strings.c:1564 msgid "media-tooth.stipple" msgstr "" #. TRANSLATORS: Rough #: locale/ipp-strings.c:1566 msgid "media-tooth.uncalendared" msgstr "" #. TRANSLATORS: Vellum #: locale/ipp-strings.c:1568 msgid "media-tooth.vellum" msgstr "" #. TRANSLATORS: Media Top Margin #: locale/ipp-strings.c:1570 msgid "media-top-margin" msgstr "" #. TRANSLATORS: Media Type #: locale/ipp-strings.c:1572 msgid "media-type" msgstr "" #. TRANSLATORS: Aluminum #: locale/ipp-strings.c:1574 msgid "media-type.aluminum" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:1576 msgid "media-type.auto" msgstr "" #. TRANSLATORS: Back Print Film #: locale/ipp-strings.c:1578 msgid "media-type.back-print-film" msgstr "" #. TRANSLATORS: Cardboard #: locale/ipp-strings.c:1580 msgid "media-type.cardboard" msgstr "" #. TRANSLATORS: Cardstock #: locale/ipp-strings.c:1582 msgid "media-type.cardstock" msgstr "" #. TRANSLATORS: CD #: locale/ipp-strings.c:1584 msgid "media-type.cd" msgstr "" #. TRANSLATORS: Photo Advanced Paper #: locale/ipp-strings.c:1586 msgid "media-type.com.hp.advanced-photo" msgstr "" #. TRANSLATORS: Brochure Glossy Paper #: locale/ipp-strings.c:1588 msgid "media-type.com.hp.brochure-glossy" msgstr "" #. TRANSLATORS: Brochure Matte Paper #: locale/ipp-strings.c:1590 msgid "media-type.com.hp.brochure-matte" msgstr "" #. TRANSLATORS: Matte Coverstock #: locale/ipp-strings.c:1592 msgid "media-type.com.hp.cover-matte" msgstr "" #. TRANSLATORS: EcoSMART Lite Paper #: locale/ipp-strings.c:1594 msgid "media-type.com.hp.ecosmart-lite" msgstr "" #. TRANSLATORS: Everyday Glossy Paper #: locale/ipp-strings.c:1596 msgid "media-type.com.hp.everyday-glossy" msgstr "" #. TRANSLATORS: Everyday Matte Paper #: locale/ipp-strings.c:1598 msgid "media-type.com.hp.everyday-matte" msgstr "" #. TRANSLATORS: Extra Heavyweight Paper #: locale/ipp-strings.c:1600 msgid "media-type.com.hp.extra-heavy" msgstr "" #. TRANSLATORS: Intermediate Paper #: locale/ipp-strings.c:1602 msgid "media-type.com.hp.intermediate" msgstr "" #. TRANSLATORS: Mid-Weight Paper #: locale/ipp-strings.c:1604 msgid "media-type.com.hp.mid-weight" msgstr "" #. TRANSLATORS: Inkjet Premium Paper #: locale/ipp-strings.c:1606 msgid "media-type.com.hp.premium-inkjet" msgstr "" #. TRANSLATORS: Photo Premium Paper #: locale/ipp-strings.c:1608 msgid "media-type.com.hp.premium-photo" msgstr "" #. TRANSLATORS: Premium Matte Presentation Paper #: locale/ipp-strings.c:1610 msgid "media-type.com.hp.premium-presentation-matte" msgstr "" #. TRANSLATORS: Continuous #: locale/ipp-strings.c:1612 msgid "media-type.continuous" msgstr "" #. TRANSLATORS: Continuous Long #: locale/ipp-strings.c:1614 msgid "media-type.continuous-long" msgstr "" #. TRANSLATORS: Continuous Short #: locale/ipp-strings.c:1616 msgid "media-type.continuous-short" msgstr "" #. TRANSLATORS: Corrugated Board #: locale/ipp-strings.c:1618 msgid "media-type.corrugated-board" msgstr "" #. TRANSLATORS: Optical Disc #: locale/ipp-strings.c:1620 msgid "media-type.disc" msgstr "" #. TRANSLATORS: Glossy Optical Disc #: locale/ipp-strings.c:1622 msgid "media-type.disc-glossy" msgstr "" #. TRANSLATORS: High Gloss Optical Disc #: locale/ipp-strings.c:1624 msgid "media-type.disc-high-gloss" msgstr "" #. TRANSLATORS: Matte Optical Disc #: locale/ipp-strings.c:1626 msgid "media-type.disc-matte" msgstr "" #. TRANSLATORS: Satin Optical Disc #: locale/ipp-strings.c:1628 msgid "media-type.disc-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Optical Disc #: locale/ipp-strings.c:1630 msgid "media-type.disc-semi-gloss" msgstr "" #. TRANSLATORS: Double Wall #: locale/ipp-strings.c:1632 msgid "media-type.double-wall" msgstr "" #. TRANSLATORS: Dry Film #: locale/ipp-strings.c:1634 msgid "media-type.dry-film" msgstr "" #. TRANSLATORS: DVD #: locale/ipp-strings.c:1636 msgid "media-type.dvd" msgstr "" #. TRANSLATORS: Embossing Foil #: locale/ipp-strings.c:1638 msgid "media-type.embossing-foil" msgstr "" #. TRANSLATORS: End Board #: locale/ipp-strings.c:1640 msgid "media-type.end-board" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:1642 msgid "media-type.envelope" msgstr "" #. TRANSLATORS: Archival Envelope #: locale/ipp-strings.c:1644 msgid "media-type.envelope-archival" msgstr "" #. TRANSLATORS: Bond Envelope #: locale/ipp-strings.c:1646 msgid "media-type.envelope-bond" msgstr "" #. TRANSLATORS: Coated Envelope #: locale/ipp-strings.c:1648 msgid "media-type.envelope-coated" msgstr "" #. TRANSLATORS: Cotton Envelope #: locale/ipp-strings.c:1650 msgid "media-type.envelope-cotton" msgstr "" #. TRANSLATORS: Fine Envelope #: locale/ipp-strings.c:1652 msgid "media-type.envelope-fine" msgstr "" #. TRANSLATORS: Heavyweight Envelope #: locale/ipp-strings.c:1654 msgid "media-type.envelope-heavyweight" msgstr "" #. TRANSLATORS: Inkjet Envelope #: locale/ipp-strings.c:1656 msgid "media-type.envelope-inkjet" msgstr "" #. TRANSLATORS: Lightweight Envelope #: locale/ipp-strings.c:1658 msgid "media-type.envelope-lightweight" msgstr "" #. TRANSLATORS: Plain Envelope #: locale/ipp-strings.c:1660 msgid "media-type.envelope-plain" msgstr "" #. TRANSLATORS: Preprinted Envelope #: locale/ipp-strings.c:1662 msgid "media-type.envelope-preprinted" msgstr "" #. TRANSLATORS: Windowed Envelope #: locale/ipp-strings.c:1664 msgid "media-type.envelope-window" msgstr "" #. TRANSLATORS: Fabric #: locale/ipp-strings.c:1666 msgid "media-type.fabric" msgstr "" #. TRANSLATORS: Archival Fabric #: locale/ipp-strings.c:1668 msgid "media-type.fabric-archival" msgstr "" #. TRANSLATORS: Glossy Fabric #: locale/ipp-strings.c:1670 msgid "media-type.fabric-glossy" msgstr "" #. TRANSLATORS: High Gloss Fabric #: locale/ipp-strings.c:1672 msgid "media-type.fabric-high-gloss" msgstr "" #. TRANSLATORS: Matte Fabric #: locale/ipp-strings.c:1674 msgid "media-type.fabric-matte" msgstr "" #. TRANSLATORS: Semi-Gloss Fabric #: locale/ipp-strings.c:1676 msgid "media-type.fabric-semi-gloss" msgstr "" #. TRANSLATORS: Waterproof Fabric #: locale/ipp-strings.c:1678 msgid "media-type.fabric-waterproof" msgstr "" #. TRANSLATORS: Film #: locale/ipp-strings.c:1680 msgid "media-type.film" msgstr "" #. TRANSLATORS: Flexo Base #: locale/ipp-strings.c:1682 msgid "media-type.flexo-base" msgstr "" #. TRANSLATORS: Flexo Photo Polymer #: locale/ipp-strings.c:1684 msgid "media-type.flexo-photo-polymer" msgstr "" #. TRANSLATORS: Flute #: locale/ipp-strings.c:1686 msgid "media-type.flute" msgstr "" #. TRANSLATORS: Foil #: locale/ipp-strings.c:1688 msgid "media-type.foil" msgstr "" #. TRANSLATORS: Full Cut Tabs #: locale/ipp-strings.c:1690 msgid "media-type.full-cut-tabs" msgstr "" #. TRANSLATORS: Glass #: locale/ipp-strings.c:1692 msgid "media-type.glass" msgstr "" #. TRANSLATORS: Glass Colored #: locale/ipp-strings.c:1694 msgid "media-type.glass-colored" msgstr "" #. TRANSLATORS: Glass Opaque #: locale/ipp-strings.c:1696 msgid "media-type.glass-opaque" msgstr "" #. TRANSLATORS: Glass Surfaced #: locale/ipp-strings.c:1698 msgid "media-type.glass-surfaced" msgstr "" #. TRANSLATORS: Glass Textured #: locale/ipp-strings.c:1700 msgid "media-type.glass-textured" msgstr "" #. TRANSLATORS: Gravure Cylinder #: locale/ipp-strings.c:1702 msgid "media-type.gravure-cylinder" msgstr "" #. TRANSLATORS: Image Setter Paper #: locale/ipp-strings.c:1704 msgid "media-type.image-setter-paper" msgstr "" #. TRANSLATORS: Imaging Cylinder #: locale/ipp-strings.c:1706 msgid "media-type.imaging-cylinder" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II #: locale/ipp-strings.c:1708 msgid "media-type.jp.co.canon-photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum #: locale/ipp-strings.c:1710 msgid "media-type.jp.co.canon-photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Photo Paper Plus Glossy II #: locale/ipp-strings.c:1712 msgid "media-type.jp.co.canon_photo-paper-plus-glossy-ii" msgstr "" #. TRANSLATORS: Photo Paper Pro Platinum #: locale/ipp-strings.c:1714 msgid "media-type.jp.co.canon_photo-paper-pro-platinum" msgstr "" #. TRANSLATORS: Labels #: locale/ipp-strings.c:1716 msgid "media-type.labels" msgstr "" #. TRANSLATORS: Colored Labels #: locale/ipp-strings.c:1718 msgid "media-type.labels-colored" msgstr "" #. TRANSLATORS: Glossy Labels #: locale/ipp-strings.c:1720 msgid "media-type.labels-glossy" msgstr "" #. TRANSLATORS: High Gloss Labels #: locale/ipp-strings.c:1722 msgid "media-type.labels-high-gloss" msgstr "" #. TRANSLATORS: Inkjet Labels #: locale/ipp-strings.c:1724 msgid "media-type.labels-inkjet" msgstr "" #. TRANSLATORS: Matte Labels #: locale/ipp-strings.c:1726 msgid "media-type.labels-matte" msgstr "" #. TRANSLATORS: Permanent Labels #: locale/ipp-strings.c:1728 msgid "media-type.labels-permanent" msgstr "" #. TRANSLATORS: Satin Labels #: locale/ipp-strings.c:1730 msgid "media-type.labels-satin" msgstr "" #. TRANSLATORS: Security Labels #: locale/ipp-strings.c:1732 msgid "media-type.labels-security" msgstr "" #. TRANSLATORS: Semi-Gloss Labels #: locale/ipp-strings.c:1734 msgid "media-type.labels-semi-gloss" msgstr "" #. TRANSLATORS: Laminating Foil #: locale/ipp-strings.c:1736 msgid "media-type.laminating-foil" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1738 msgid "media-type.letterhead" msgstr "" #. TRANSLATORS: Metal #: locale/ipp-strings.c:1740 msgid "media-type.metal" msgstr "" #. TRANSLATORS: Metal Glossy #: locale/ipp-strings.c:1742 msgid "media-type.metal-glossy" msgstr "" #. TRANSLATORS: Metal High Gloss #: locale/ipp-strings.c:1744 msgid "media-type.metal-high-gloss" msgstr "" #. TRANSLATORS: Metal Matte #: locale/ipp-strings.c:1746 msgid "media-type.metal-matte" msgstr "" #. TRANSLATORS: Metal Satin #: locale/ipp-strings.c:1748 msgid "media-type.metal-satin" msgstr "" #. TRANSLATORS: Metal Semi Gloss #: locale/ipp-strings.c:1750 msgid "media-type.metal-semi-gloss" msgstr "" #. TRANSLATORS: Mounting Tape #: locale/ipp-strings.c:1752 msgid "media-type.mounting-tape" msgstr "" #. TRANSLATORS: Multi Layer #: locale/ipp-strings.c:1754 msgid "media-type.multi-layer" msgstr "" #. TRANSLATORS: Multi Part Form #: locale/ipp-strings.c:1756 msgid "media-type.multi-part-form" msgstr "" #. TRANSLATORS: Other #: locale/ipp-strings.c:1758 msgid "media-type.other" msgstr "" #. TRANSLATORS: Paper #: locale/ipp-strings.c:1760 msgid "media-type.paper" msgstr "" #. TRANSLATORS: Photo Paper #: locale/ipp-strings.c:1762 msgid "media-type.photographic" msgstr "" #. TRANSLATORS: Photographic Archival #: locale/ipp-strings.c:1764 msgid "media-type.photographic-archival" msgstr "" #. TRANSLATORS: Photo Film #: locale/ipp-strings.c:1766 msgid "media-type.photographic-film" msgstr "" #. TRANSLATORS: Glossy Photo Paper #: locale/ipp-strings.c:1768 msgid "media-type.photographic-glossy" msgstr "" #. TRANSLATORS: High Gloss Photo Paper #: locale/ipp-strings.c:1770 msgid "media-type.photographic-high-gloss" msgstr "" #. TRANSLATORS: Matte Photo Paper #: locale/ipp-strings.c:1772 msgid "media-type.photographic-matte" msgstr "" #. TRANSLATORS: Satin Photo Paper #: locale/ipp-strings.c:1774 msgid "media-type.photographic-satin" msgstr "" #. TRANSLATORS: Semi-Gloss Photo Paper #: locale/ipp-strings.c:1776 msgid "media-type.photographic-semi-gloss" msgstr "" #. TRANSLATORS: Plastic #: locale/ipp-strings.c:1778 msgid "media-type.plastic" msgstr "" #. TRANSLATORS: Plastic Archival #: locale/ipp-strings.c:1780 msgid "media-type.plastic-archival" msgstr "" #. TRANSLATORS: Plastic Colored #: locale/ipp-strings.c:1782 msgid "media-type.plastic-colored" msgstr "" #. TRANSLATORS: Plastic Glossy #: locale/ipp-strings.c:1784 msgid "media-type.plastic-glossy" msgstr "" #. TRANSLATORS: Plastic High Gloss #: locale/ipp-strings.c:1786 msgid "media-type.plastic-high-gloss" msgstr "" #. TRANSLATORS: Plastic Matte #: locale/ipp-strings.c:1788 msgid "media-type.plastic-matte" msgstr "" #. TRANSLATORS: Plastic Satin #: locale/ipp-strings.c:1790 msgid "media-type.plastic-satin" msgstr "" #. TRANSLATORS: Plastic Semi Gloss #: locale/ipp-strings.c:1792 msgid "media-type.plastic-semi-gloss" msgstr "" #. TRANSLATORS: Plate #: locale/ipp-strings.c:1794 msgid "media-type.plate" msgstr "" #. TRANSLATORS: Polyester #: locale/ipp-strings.c:1796 msgid "media-type.polyester" msgstr "" #. TRANSLATORS: Pre Cut Tabs #: locale/ipp-strings.c:1798 msgid "media-type.pre-cut-tabs" msgstr "" #. TRANSLATORS: Roll #: locale/ipp-strings.c:1800 msgid "media-type.roll" msgstr "" #. TRANSLATORS: Screen #: locale/ipp-strings.c:1802 msgid "media-type.screen" msgstr "" #. TRANSLATORS: Screen Paged #: locale/ipp-strings.c:1804 msgid "media-type.screen-paged" msgstr "" #. TRANSLATORS: Self Adhesive #: locale/ipp-strings.c:1806 msgid "media-type.self-adhesive" msgstr "" #. TRANSLATORS: Self Adhesive Film #: locale/ipp-strings.c:1808 msgid "media-type.self-adhesive-film" msgstr "" #. TRANSLATORS: Shrink Foil #: locale/ipp-strings.c:1810 msgid "media-type.shrink-foil" msgstr "" #. TRANSLATORS: Single Face #: locale/ipp-strings.c:1812 msgid "media-type.single-face" msgstr "" #. TRANSLATORS: Single Wall #: locale/ipp-strings.c:1814 msgid "media-type.single-wall" msgstr "" #. TRANSLATORS: Sleeve #: locale/ipp-strings.c:1816 msgid "media-type.sleeve" msgstr "" #. TRANSLATORS: Stationery #: locale/ipp-strings.c:1818 msgid "media-type.stationery" msgstr "" #. TRANSLATORS: Stationery Archival #: locale/ipp-strings.c:1820 msgid "media-type.stationery-archival" msgstr "" #. TRANSLATORS: Coated Paper #: locale/ipp-strings.c:1822 msgid "media-type.stationery-coated" msgstr "" #. TRANSLATORS: Stationery Cotton #: locale/ipp-strings.c:1824 msgid "media-type.stationery-cotton" msgstr "" #. TRANSLATORS: Vellum Paper #: locale/ipp-strings.c:1826 msgid "media-type.stationery-fine" msgstr "" #. TRANSLATORS: Heavyweight Paper #: locale/ipp-strings.c:1828 msgid "media-type.stationery-heavyweight" msgstr "" #. TRANSLATORS: Stationery Heavyweight Coated #: locale/ipp-strings.c:1830 msgid "media-type.stationery-heavyweight-coated" msgstr "" #. TRANSLATORS: Stationery Inkjet Paper #: locale/ipp-strings.c:1832 msgid "media-type.stationery-inkjet" msgstr "" #. TRANSLATORS: Letterhead #: locale/ipp-strings.c:1834 msgid "media-type.stationery-letterhead" msgstr "" #. TRANSLATORS: Lightweight Paper #: locale/ipp-strings.c:1836 msgid "media-type.stationery-lightweight" msgstr "" #. TRANSLATORS: Preprinted Paper #: locale/ipp-strings.c:1838 msgid "media-type.stationery-preprinted" msgstr "" #. TRANSLATORS: Punched Paper #: locale/ipp-strings.c:1840 msgid "media-type.stationery-prepunched" msgstr "" #. TRANSLATORS: Tab Stock #: locale/ipp-strings.c:1842 msgid "media-type.tab-stock" msgstr "" #. TRANSLATORS: Tractor #: locale/ipp-strings.c:1844 msgid "media-type.tractor" msgstr "" #. TRANSLATORS: Transfer #: locale/ipp-strings.c:1846 msgid "media-type.transfer" msgstr "" #. TRANSLATORS: Transparency #: locale/ipp-strings.c:1848 msgid "media-type.transparency" msgstr "" #. TRANSLATORS: Triple Wall #: locale/ipp-strings.c:1850 msgid "media-type.triple-wall" msgstr "" #. TRANSLATORS: Wet Film #: locale/ipp-strings.c:1852 msgid "media-type.wet-film" msgstr "" #. TRANSLATORS: Media Weight (grams per m²) #: locale/ipp-strings.c:1854 msgid "media-weight-metric" msgstr "" #. TRANSLATORS: 28 x 40″ #: locale/ipp-strings.c:1856 msgid "media.asme_f_28x40in" msgstr "" #. TRANSLATORS: A4 or US Letter #: locale/ipp-strings.c:1858 msgid "media.choice_iso_a4_210x297mm_na_letter_8.5x11in" msgstr "" #. TRANSLATORS: 2a0 #: locale/ipp-strings.c:1860 msgid "media.iso_2a0_1189x1682mm" msgstr "" #. TRANSLATORS: A0 #: locale/ipp-strings.c:1862 msgid "media.iso_a0_841x1189mm" msgstr "" #. TRANSLATORS: A0x3 #: locale/ipp-strings.c:1864 msgid "media.iso_a0x3_1189x2523mm" msgstr "" #. TRANSLATORS: A10 #: locale/ipp-strings.c:1866 msgid "media.iso_a10_26x37mm" msgstr "" #. TRANSLATORS: A1 #: locale/ipp-strings.c:1868 msgid "media.iso_a1_594x841mm" msgstr "" #. TRANSLATORS: A1x3 #: locale/ipp-strings.c:1870 msgid "media.iso_a1x3_841x1783mm" msgstr "" #. TRANSLATORS: A1x4 #: locale/ipp-strings.c:1872 msgid "media.iso_a1x4_841x2378mm" msgstr "" #. TRANSLATORS: A2 #: locale/ipp-strings.c:1874 msgid "media.iso_a2_420x594mm" msgstr "" #. TRANSLATORS: A2x3 #: locale/ipp-strings.c:1876 msgid "media.iso_a2x3_594x1261mm" msgstr "" #. TRANSLATORS: A2x4 #: locale/ipp-strings.c:1878 msgid "media.iso_a2x4_594x1682mm" msgstr "" #. TRANSLATORS: A2x5 #: locale/ipp-strings.c:1880 msgid "media.iso_a2x5_594x2102mm" msgstr "" #. TRANSLATORS: A3 (Extra) #: locale/ipp-strings.c:1882 msgid "media.iso_a3-extra_322x445mm" msgstr "" #. TRANSLATORS: A3 #: locale/ipp-strings.c:1884 msgid "media.iso_a3_297x420mm" msgstr "" #. TRANSLATORS: A3x3 #: locale/ipp-strings.c:1886 msgid "media.iso_a3x3_420x891mm" msgstr "" #. TRANSLATORS: A3x4 #: locale/ipp-strings.c:1888 msgid "media.iso_a3x4_420x1189mm" msgstr "" #. TRANSLATORS: A3x5 #: locale/ipp-strings.c:1890 msgid "media.iso_a3x5_420x1486mm" msgstr "" #. TRANSLATORS: A3x6 #: locale/ipp-strings.c:1892 msgid "media.iso_a3x6_420x1783mm" msgstr "" #. TRANSLATORS: A3x7 #: locale/ipp-strings.c:1894 msgid "media.iso_a3x7_420x2080mm" msgstr "" #. TRANSLATORS: A4 (Extra) #: locale/ipp-strings.c:1896 msgid "media.iso_a4-extra_235.5x322.3mm" msgstr "" #. TRANSLATORS: A4 (Tab) #: locale/ipp-strings.c:1898 msgid "media.iso_a4-tab_225x297mm" msgstr "" #. TRANSLATORS: A4 #: locale/ipp-strings.c:1900 msgid "media.iso_a4_210x297mm" msgstr "" #. TRANSLATORS: A4x3 #: locale/ipp-strings.c:1902 msgid "media.iso_a4x3_297x630mm" msgstr "" #. TRANSLATORS: A4x4 #: locale/ipp-strings.c:1904 msgid "media.iso_a4x4_297x841mm" msgstr "" #. TRANSLATORS: A4x5 #: locale/ipp-strings.c:1906 msgid "media.iso_a4x5_297x1051mm" msgstr "" #. TRANSLATORS: A4x6 #: locale/ipp-strings.c:1908 msgid "media.iso_a4x6_297x1261mm" msgstr "" #. TRANSLATORS: A4x7 #: locale/ipp-strings.c:1910 msgid "media.iso_a4x7_297x1471mm" msgstr "" #. TRANSLATORS: A4x8 #: locale/ipp-strings.c:1912 msgid "media.iso_a4x8_297x1682mm" msgstr "" #. TRANSLATORS: A4x9 #: locale/ipp-strings.c:1914 msgid "media.iso_a4x9_297x1892mm" msgstr "" #. TRANSLATORS: A5 (Extra) #: locale/ipp-strings.c:1916 msgid "media.iso_a5-extra_174x235mm" msgstr "" #. TRANSLATORS: A5 #: locale/ipp-strings.c:1918 msgid "media.iso_a5_148x210mm" msgstr "" #. TRANSLATORS: A6 #: locale/ipp-strings.c:1920 msgid "media.iso_a6_105x148mm" msgstr "" #. TRANSLATORS: A7 #: locale/ipp-strings.c:1922 msgid "media.iso_a7_74x105mm" msgstr "" #. TRANSLATORS: A8 #: locale/ipp-strings.c:1924 msgid "media.iso_a8_52x74mm" msgstr "" #. TRANSLATORS: A9 #: locale/ipp-strings.c:1926 msgid "media.iso_a9_37x52mm" msgstr "" #. TRANSLATORS: B0 #: locale/ipp-strings.c:1928 msgid "media.iso_b0_1000x1414mm" msgstr "" #. TRANSLATORS: B10 #: locale/ipp-strings.c:1930 msgid "media.iso_b10_31x44mm" msgstr "" #. TRANSLATORS: B1 #: locale/ipp-strings.c:1932 msgid "media.iso_b1_707x1000mm" msgstr "" #. TRANSLATORS: B2 #: locale/ipp-strings.c:1934 msgid "media.iso_b2_500x707mm" msgstr "" #. TRANSLATORS: B3 #: locale/ipp-strings.c:1936 msgid "media.iso_b3_353x500mm" msgstr "" #. TRANSLATORS: B4 #: locale/ipp-strings.c:1938 msgid "media.iso_b4_250x353mm" msgstr "" #. TRANSLATORS: B5 (Extra) #: locale/ipp-strings.c:1940 msgid "media.iso_b5-extra_201x276mm" msgstr "" #. TRANSLATORS: Envelope B5 #: locale/ipp-strings.c:1942 msgid "media.iso_b5_176x250mm" msgstr "" #. TRANSLATORS: B6 #: locale/ipp-strings.c:1944 msgid "media.iso_b6_125x176mm" msgstr "" #. TRANSLATORS: Envelope B6/C4 #: locale/ipp-strings.c:1946 msgid "media.iso_b6c4_125x324mm" msgstr "" #. TRANSLATORS: B7 #: locale/ipp-strings.c:1948 msgid "media.iso_b7_88x125mm" msgstr "" #. TRANSLATORS: B8 #: locale/ipp-strings.c:1950 msgid "media.iso_b8_62x88mm" msgstr "" #. TRANSLATORS: B9 #: locale/ipp-strings.c:1952 msgid "media.iso_b9_44x62mm" msgstr "" #. TRANSLATORS: CEnvelope 0 #: locale/ipp-strings.c:1954 msgid "media.iso_c0_917x1297mm" msgstr "" #. TRANSLATORS: CEnvelope 10 #: locale/ipp-strings.c:1956 msgid "media.iso_c10_28x40mm" msgstr "" #. TRANSLATORS: CEnvelope 1 #: locale/ipp-strings.c:1958 msgid "media.iso_c1_648x917mm" msgstr "" #. TRANSLATORS: CEnvelope 2 #: locale/ipp-strings.c:1960 msgid "media.iso_c2_458x648mm" msgstr "" #. TRANSLATORS: CEnvelope 3 #: locale/ipp-strings.c:1962 msgid "media.iso_c3_324x458mm" msgstr "" #. TRANSLATORS: CEnvelope 4 #: locale/ipp-strings.c:1964 msgid "media.iso_c4_229x324mm" msgstr "" #. TRANSLATORS: CEnvelope 5 #: locale/ipp-strings.c:1966 msgid "media.iso_c5_162x229mm" msgstr "" #. TRANSLATORS: CEnvelope 6 #: locale/ipp-strings.c:1968 msgid "media.iso_c6_114x162mm" msgstr "" #. TRANSLATORS: CEnvelope 6c5 #: locale/ipp-strings.c:1970 msgid "media.iso_c6c5_114x229mm" msgstr "" #. TRANSLATORS: CEnvelope 7 #: locale/ipp-strings.c:1972 msgid "media.iso_c7_81x114mm" msgstr "" #. TRANSLATORS: CEnvelope 7c6 #: locale/ipp-strings.c:1974 msgid "media.iso_c7c6_81x162mm" msgstr "" #. TRANSLATORS: CEnvelope 8 #: locale/ipp-strings.c:1976 msgid "media.iso_c8_57x81mm" msgstr "" #. TRANSLATORS: CEnvelope 9 #: locale/ipp-strings.c:1978 msgid "media.iso_c9_40x57mm" msgstr "" #. TRANSLATORS: Envelope DL #: locale/ipp-strings.c:1980 msgid "media.iso_dl_110x220mm" msgstr "" #. TRANSLATORS: Id-1 #: locale/ipp-strings.c:1982 msgid "media.iso_id-1_53.98x85.6mm" msgstr "" #. TRANSLATORS: Id-3 #: locale/ipp-strings.c:1984 msgid "media.iso_id-3_88x125mm" msgstr "" #. TRANSLATORS: ISO RA0 #: locale/ipp-strings.c:1986 msgid "media.iso_ra0_860x1220mm" msgstr "" #. TRANSLATORS: ISO RA1 #: locale/ipp-strings.c:1988 msgid "media.iso_ra1_610x860mm" msgstr "" #. TRANSLATORS: ISO RA2 #: locale/ipp-strings.c:1990 msgid "media.iso_ra2_430x610mm" msgstr "" #. TRANSLATORS: ISO RA3 #: locale/ipp-strings.c:1992 msgid "media.iso_ra3_305x430mm" msgstr "" #. TRANSLATORS: ISO RA4 #: locale/ipp-strings.c:1994 msgid "media.iso_ra4_215x305mm" msgstr "" #. TRANSLATORS: ISO SRA0 #: locale/ipp-strings.c:1996 msgid "media.iso_sra0_900x1280mm" msgstr "" #. TRANSLATORS: ISO SRA1 #: locale/ipp-strings.c:1998 msgid "media.iso_sra1_640x900mm" msgstr "" #. TRANSLATORS: ISO SRA2 #: locale/ipp-strings.c:2000 msgid "media.iso_sra2_450x640mm" msgstr "" #. TRANSLATORS: ISO SRA3 #: locale/ipp-strings.c:2002 msgid "media.iso_sra3_320x450mm" msgstr "" #. TRANSLATORS: ISO SRA4 #: locale/ipp-strings.c:2004 msgid "media.iso_sra4_225x320mm" msgstr "" #. TRANSLATORS: JIS B0 #: locale/ipp-strings.c:2006 msgid "media.jis_b0_1030x1456mm" msgstr "" #. TRANSLATORS: JIS B10 #: locale/ipp-strings.c:2008 msgid "media.jis_b10_32x45mm" msgstr "" #. TRANSLATORS: JIS B1 #: locale/ipp-strings.c:2010 msgid "media.jis_b1_728x1030mm" msgstr "" #. TRANSLATORS: JIS B2 #: locale/ipp-strings.c:2012 msgid "media.jis_b2_515x728mm" msgstr "" #. TRANSLATORS: JIS B3 #: locale/ipp-strings.c:2014 msgid "media.jis_b3_364x515mm" msgstr "" #. TRANSLATORS: JIS B4 #: locale/ipp-strings.c:2016 msgid "media.jis_b4_257x364mm" msgstr "" #. TRANSLATORS: JIS B5 #: locale/ipp-strings.c:2018 msgid "media.jis_b5_182x257mm" msgstr "" #. TRANSLATORS: JIS B6 #: locale/ipp-strings.c:2020 msgid "media.jis_b6_128x182mm" msgstr "" #. TRANSLATORS: JIS B7 #: locale/ipp-strings.c:2022 msgid "media.jis_b7_91x128mm" msgstr "" #. TRANSLATORS: JIS B8 #: locale/ipp-strings.c:2024 msgid "media.jis_b8_64x91mm" msgstr "" #. TRANSLATORS: JIS B9 #: locale/ipp-strings.c:2026 msgid "media.jis_b9_45x64mm" msgstr "" #. TRANSLATORS: JIS Executive #: locale/ipp-strings.c:2028 msgid "media.jis_exec_216x330mm" msgstr "" #. TRANSLATORS: Envelope Chou 2 #: locale/ipp-strings.c:2030 msgid "media.jpn_chou2_111.1x146mm" msgstr "" #. TRANSLATORS: Envelope Chou 3 #: locale/ipp-strings.c:2032 msgid "media.jpn_chou3_120x235mm" msgstr "" #. TRANSLATORS: Envelope Chou 40 #: locale/ipp-strings.c:2034 msgid "media.jpn_chou40_90x225mm" msgstr "" #. TRANSLATORS: Envelope Chou 4 #: locale/ipp-strings.c:2036 msgid "media.jpn_chou4_90x205mm" msgstr "" #. TRANSLATORS: Hagaki #: locale/ipp-strings.c:2038 msgid "media.jpn_hagaki_100x148mm" msgstr "" #. TRANSLATORS: Envelope Kahu #: locale/ipp-strings.c:2040 msgid "media.jpn_kahu_240x322.1mm" msgstr "" #. TRANSLATORS: 270 x 382mm #: locale/ipp-strings.c:2042 msgid "media.jpn_kaku1_270x382mm" msgstr "" #. TRANSLATORS: Envelope Kahu 2 #: locale/ipp-strings.c:2044 msgid "media.jpn_kaku2_240x332mm" msgstr "" #. TRANSLATORS: 216 x 277mm #: locale/ipp-strings.c:2046 msgid "media.jpn_kaku3_216x277mm" msgstr "" #. TRANSLATORS: 197 x 267mm #: locale/ipp-strings.c:2048 msgid "media.jpn_kaku4_197x267mm" msgstr "" #. TRANSLATORS: 190 x 240mm #: locale/ipp-strings.c:2050 msgid "media.jpn_kaku5_190x240mm" msgstr "" #. TRANSLATORS: 142 x 205mm #: locale/ipp-strings.c:2052 msgid "media.jpn_kaku7_142x205mm" msgstr "" #. TRANSLATORS: 119 x 197mm #: locale/ipp-strings.c:2054 msgid "media.jpn_kaku8_119x197mm" msgstr "" #. TRANSLATORS: Oufuku Reply Postcard #: locale/ipp-strings.c:2056 msgid "media.jpn_oufuku_148x200mm" msgstr "" #. TRANSLATORS: Envelope You 4 #: locale/ipp-strings.c:2058 msgid "media.jpn_you4_105x235mm" msgstr "" #. TRANSLATORS: 10 x 11″ #: locale/ipp-strings.c:2060 msgid "media.na_10x11_10x11in" msgstr "" #. TRANSLATORS: 10 x 13″ #: locale/ipp-strings.c:2062 msgid "media.na_10x13_10x13in" msgstr "" #. TRANSLATORS: 10 x 14″ #: locale/ipp-strings.c:2064 msgid "media.na_10x14_10x14in" msgstr "" #. TRANSLATORS: 10 x 15″ #: locale/ipp-strings.c:2066 msgid "media.na_10x15_10x15in" msgstr "" #. TRANSLATORS: 11 x 12″ #: locale/ipp-strings.c:2068 msgid "media.na_11x12_11x12in" msgstr "" #. TRANSLATORS: 11 x 15″ #: locale/ipp-strings.c:2070 msgid "media.na_11x15_11x15in" msgstr "" #. TRANSLATORS: 12 x 19″ #: locale/ipp-strings.c:2072 msgid "media.na_12x19_12x19in" msgstr "" #. TRANSLATORS: 5 x 7″ #: locale/ipp-strings.c:2074 msgid "media.na_5x7_5x7in" msgstr "" #. TRANSLATORS: 6 x 9″ #: locale/ipp-strings.c:2076 msgid "media.na_6x9_6x9in" msgstr "" #. TRANSLATORS: 7 x 9″ #: locale/ipp-strings.c:2078 msgid "media.na_7x9_7x9in" msgstr "" #. TRANSLATORS: 9 x 11″ #: locale/ipp-strings.c:2080 msgid "media.na_9x11_9x11in" msgstr "" #. TRANSLATORS: Envelope A2 #: locale/ipp-strings.c:2082 msgid "media.na_a2_4.375x5.75in" msgstr "" #. TRANSLATORS: 9 x 12″ #: locale/ipp-strings.c:2084 msgid "media.na_arch-a_9x12in" msgstr "" #. TRANSLATORS: 12 x 18″ #: locale/ipp-strings.c:2086 msgid "media.na_arch-b_12x18in" msgstr "" #. TRANSLATORS: 18 x 24″ #: locale/ipp-strings.c:2088 msgid "media.na_arch-c_18x24in" msgstr "" #. TRANSLATORS: 24 x 36″ #: locale/ipp-strings.c:2090 msgid "media.na_arch-d_24x36in" msgstr "" #. TRANSLATORS: 26 x 38″ #: locale/ipp-strings.c:2092 msgid "media.na_arch-e2_26x38in" msgstr "" #. TRANSLATORS: 27 x 39″ #: locale/ipp-strings.c:2094 msgid "media.na_arch-e3_27x39in" msgstr "" #. TRANSLATORS: 36 x 48″ #: locale/ipp-strings.c:2096 msgid "media.na_arch-e_36x48in" msgstr "" #. TRANSLATORS: 12 x 19.17″ #: locale/ipp-strings.c:2098 msgid "media.na_b-plus_12x19.17in" msgstr "" #. TRANSLATORS: Envelope C5 #: locale/ipp-strings.c:2100 msgid "media.na_c5_6.5x9.5in" msgstr "" #. TRANSLATORS: 17 x 22″ #: locale/ipp-strings.c:2102 msgid "media.na_c_17x22in" msgstr "" #. TRANSLATORS: 22 x 34″ #: locale/ipp-strings.c:2104 msgid "media.na_d_22x34in" msgstr "" #. TRANSLATORS: 34 x 44″ #: locale/ipp-strings.c:2106 msgid "media.na_e_34x44in" msgstr "" #. TRANSLATORS: 11 x 14″ #: locale/ipp-strings.c:2108 msgid "media.na_edp_11x14in" msgstr "" #. TRANSLATORS: 12 x 14″ #: locale/ipp-strings.c:2110 msgid "media.na_eur-edp_12x14in" msgstr "" #. TRANSLATORS: Executive #: locale/ipp-strings.c:2112 msgid "media.na_executive_7.25x10.5in" msgstr "" #. TRANSLATORS: 44 x 68″ #: locale/ipp-strings.c:2114 msgid "media.na_f_44x68in" msgstr "" #. TRANSLATORS: European Fanfold #: locale/ipp-strings.c:2116 msgid "media.na_fanfold-eur_8.5x12in" msgstr "" #. TRANSLATORS: US Fanfold #: locale/ipp-strings.c:2118 msgid "media.na_fanfold-us_11x14.875in" msgstr "" #. TRANSLATORS: Foolscap #: locale/ipp-strings.c:2120 msgid "media.na_foolscap_8.5x13in" msgstr "" #. TRANSLATORS: 8 x 13″ #: locale/ipp-strings.c:2122 msgid "media.na_govt-legal_8x13in" msgstr "" #. TRANSLATORS: 8 x 10″ #: locale/ipp-strings.c:2124 msgid "media.na_govt-letter_8x10in" msgstr "" #. TRANSLATORS: 3 x 5″ #: locale/ipp-strings.c:2126 msgid "media.na_index-3x5_3x5in" msgstr "" #. TRANSLATORS: 6 x 8″ #: locale/ipp-strings.c:2128 msgid "media.na_index-4x6-ext_6x8in" msgstr "" #. TRANSLATORS: 4 x 6″ #: locale/ipp-strings.c:2130 msgid "media.na_index-4x6_4x6in" msgstr "" #. TRANSLATORS: 5 x 8″ #: locale/ipp-strings.c:2132 msgid "media.na_index-5x8_5x8in" msgstr "" #. TRANSLATORS: Statement #: locale/ipp-strings.c:2134 msgid "media.na_invoice_5.5x8.5in" msgstr "" #. TRANSLATORS: 11 x 17″ #: locale/ipp-strings.c:2136 msgid "media.na_ledger_11x17in" msgstr "" #. TRANSLATORS: US Legal (Extra) #: locale/ipp-strings.c:2138 msgid "media.na_legal-extra_9.5x15in" msgstr "" #. TRANSLATORS: US Legal #: locale/ipp-strings.c:2140 msgid "media.na_legal_8.5x14in" msgstr "" #. TRANSLATORS: US Letter (Extra) #: locale/ipp-strings.c:2142 msgid "media.na_letter-extra_9.5x12in" msgstr "" #. TRANSLATORS: US Letter (Plus) #: locale/ipp-strings.c:2144 msgid "media.na_letter-plus_8.5x12.69in" msgstr "" #. TRANSLATORS: US Letter #: locale/ipp-strings.c:2146 msgid "media.na_letter_8.5x11in" msgstr "" #. TRANSLATORS: Envelope Monarch #: locale/ipp-strings.c:2148 msgid "media.na_monarch_3.875x7.5in" msgstr "" #. TRANSLATORS: Envelope #10 #: locale/ipp-strings.c:2150 msgid "media.na_number-10_4.125x9.5in" msgstr "" #. TRANSLATORS: Envelope #11 #: locale/ipp-strings.c:2152 msgid "media.na_number-11_4.5x10.375in" msgstr "" #. TRANSLATORS: Envelope #12 #: locale/ipp-strings.c:2154 msgid "media.na_number-12_4.75x11in" msgstr "" #. TRANSLATORS: Envelope #14 #: locale/ipp-strings.c:2156 msgid "media.na_number-14_5x11.5in" msgstr "" #. TRANSLATORS: Envelope #9 #: locale/ipp-strings.c:2158 msgid "media.na_number-9_3.875x8.875in" msgstr "" #. TRANSLATORS: 8.5 x 13.4″ #: locale/ipp-strings.c:2160 msgid "media.na_oficio_8.5x13.4in" msgstr "" #. TRANSLATORS: Envelope Personal #: locale/ipp-strings.c:2162 msgid "media.na_personal_3.625x6.5in" msgstr "" #. TRANSLATORS: Quarto #: locale/ipp-strings.c:2164 msgid "media.na_quarto_8.5x10.83in" msgstr "" #. TRANSLATORS: 8.94 x 14″ #: locale/ipp-strings.c:2166 msgid "media.na_super-a_8.94x14in" msgstr "" #. TRANSLATORS: 13 x 19″ #: locale/ipp-strings.c:2168 msgid "media.na_super-b_13x19in" msgstr "" #. TRANSLATORS: 30 x 42″ #: locale/ipp-strings.c:2170 msgid "media.na_wide-format_30x42in" msgstr "" #. TRANSLATORS: 12 x 16″ #: locale/ipp-strings.c:2172 msgid "media.oe_12x16_12x16in" msgstr "" #. TRANSLATORS: 14 x 17″ #: locale/ipp-strings.c:2174 msgid "media.oe_14x17_14x17in" msgstr "" #. TRANSLATORS: 18 x 22″ #: locale/ipp-strings.c:2176 msgid "media.oe_18x22_18x22in" msgstr "" #. TRANSLATORS: 17 x 24″ #: locale/ipp-strings.c:2178 msgid "media.oe_a2plus_17x24in" msgstr "" #. TRANSLATORS: 2 x 3.5″ #: locale/ipp-strings.c:2180 msgid "media.oe_business-card_2x3.5in" msgstr "" #. TRANSLATORS: 10 x 12″ #: locale/ipp-strings.c:2182 msgid "media.oe_photo-10r_10x12in" msgstr "" #. TRANSLATORS: 20 x 24″ #: locale/ipp-strings.c:2184 msgid "media.oe_photo-20r_20x24in" msgstr "" #. TRANSLATORS: 3.5 x 5″ #: locale/ipp-strings.c:2186 msgid "media.oe_photo-l_3.5x5in" msgstr "" #. TRANSLATORS: 10 x 15″ #: locale/ipp-strings.c:2188 msgid "media.oe_photo-s10r_10x15in" msgstr "" #. TRANSLATORS: 4 x 4″ #: locale/ipp-strings.c:2190 msgid "media.oe_square-photo_4x4in" msgstr "" #. TRANSLATORS: 5 x 5″ #: locale/ipp-strings.c:2192 msgid "media.oe_square-photo_5x5in" msgstr "" #. TRANSLATORS: 184 x 260mm #: locale/ipp-strings.c:2194 msgid "media.om_16k_184x260mm" msgstr "" #. TRANSLATORS: 195 x 270mm #: locale/ipp-strings.c:2196 msgid "media.om_16k_195x270mm" msgstr "" #. TRANSLATORS: 55 x 85mm #: locale/ipp-strings.c:2198 msgid "media.om_business-card_55x85mm" msgstr "" #. TRANSLATORS: 55 x 91mm #: locale/ipp-strings.c:2200 msgid "media.om_business-card_55x91mm" msgstr "" #. TRANSLATORS: 54 x 86mm #: locale/ipp-strings.c:2202 msgid "media.om_card_54x86mm" msgstr "" #. TRANSLATORS: 275 x 395mm #: locale/ipp-strings.c:2204 msgid "media.om_dai-pa-kai_275x395mm" msgstr "" #. TRANSLATORS: 89 x 119mm #: locale/ipp-strings.c:2206 msgid "media.om_dsc-photo_89x119mm" msgstr "" #. TRANSLATORS: Folio #: locale/ipp-strings.c:2208 msgid "media.om_folio-sp_215x315mm" msgstr "" #. TRANSLATORS: Folio (Special) #: locale/ipp-strings.c:2210 msgid "media.om_folio_210x330mm" msgstr "" #. TRANSLATORS: Envelope Invitation #: locale/ipp-strings.c:2212 msgid "media.om_invite_220x220mm" msgstr "" #. TRANSLATORS: Envelope Italian #: locale/ipp-strings.c:2214 msgid "media.om_italian_110x230mm" msgstr "" #. TRANSLATORS: 198 x 275mm #: locale/ipp-strings.c:2216 msgid "media.om_juuro-ku-kai_198x275mm" msgstr "" #. TRANSLATORS: 200 x 300 #: locale/ipp-strings.c:2218 msgid "media.om_large-photo_200x300" msgstr "" #. TRANSLATORS: 130 x 180mm #: locale/ipp-strings.c:2220 msgid "media.om_medium-photo_130x180mm" msgstr "" #. TRANSLATORS: 267 x 389mm #: locale/ipp-strings.c:2222 msgid "media.om_pa-kai_267x389mm" msgstr "" #. TRANSLATORS: Envelope Postfix #: locale/ipp-strings.c:2224 msgid "media.om_postfix_114x229mm" msgstr "" #. TRANSLATORS: 100 x 150mm #: locale/ipp-strings.c:2226 msgid "media.om_small-photo_100x150mm" msgstr "" #. TRANSLATORS: 89 x 89mm #: locale/ipp-strings.c:2228 msgid "media.om_square-photo_89x89mm" msgstr "" #. TRANSLATORS: 100 x 200mm #: locale/ipp-strings.c:2230 msgid "media.om_wide-photo_100x200mm" msgstr "" #. TRANSLATORS: Envelope Chinese #10 #: locale/ipp-strings.c:2232 msgid "media.prc_10_324x458mm" msgstr "" #. TRANSLATORS: Chinese 16k #: locale/ipp-strings.c:2234 msgid "media.prc_16k_146x215mm" msgstr "" #. TRANSLATORS: Envelope Chinese #1 #: locale/ipp-strings.c:2236 msgid "media.prc_1_102x165mm" msgstr "" #. TRANSLATORS: Envelope Chinese #2 #: locale/ipp-strings.c:2238 msgid "media.prc_2_102x176mm" msgstr "" #. TRANSLATORS: Chinese 32k #: locale/ipp-strings.c:2240 msgid "media.prc_32k_97x151mm" msgstr "" #. TRANSLATORS: Envelope Chinese #3 #: locale/ipp-strings.c:2242 msgid "media.prc_3_125x176mm" msgstr "" #. TRANSLATORS: Envelope Chinese #4 #: locale/ipp-strings.c:2244 msgid "media.prc_4_110x208mm" msgstr "" #. TRANSLATORS: Envelope Chinese #5 #: locale/ipp-strings.c:2246 msgid "media.prc_5_110x220mm" msgstr "" #. TRANSLATORS: Envelope Chinese #6 #: locale/ipp-strings.c:2248 msgid "media.prc_6_120x320mm" msgstr "" #. TRANSLATORS: Envelope Chinese #7 #: locale/ipp-strings.c:2250 msgid "media.prc_7_160x230mm" msgstr "" #. TRANSLATORS: Envelope Chinese #8 #: locale/ipp-strings.c:2252 msgid "media.prc_8_120x309mm" msgstr "" #. TRANSLATORS: ROC 16k #: locale/ipp-strings.c:2254 msgid "media.roc_16k_7.75x10.75in" msgstr "" #. TRANSLATORS: ROC 8k #: locale/ipp-strings.c:2256 msgid "media.roc_8k_10.75x15.5in" msgstr "" #: systemv/lpstat.c:1036 #, c-format msgid "members of class %s:" msgstr "" #. TRANSLATORS: Multiple Document Handling #: locale/ipp-strings.c:2258 msgid "multiple-document-handling" msgstr "" #. TRANSLATORS: Separate Documents Collated Copies #: locale/ipp-strings.c:2260 msgid "multiple-document-handling.separate-documents-collated-copies" msgstr "" #. TRANSLATORS: Separate Documents Uncollated Copies #: locale/ipp-strings.c:2262 msgid "multiple-document-handling.separate-documents-uncollated-copies" msgstr "" #. TRANSLATORS: Single Document #: locale/ipp-strings.c:2264 msgid "multiple-document-handling.single-document" msgstr "" #. TRANSLATORS: Single Document New Sheet #: locale/ipp-strings.c:2266 msgid "multiple-document-handling.single-document-new-sheet" msgstr "" #. TRANSLATORS: Multiple Object Handling #: locale/ipp-strings.c:2268 msgid "multiple-object-handling" msgstr "" #. TRANSLATORS: Multiple Object Handling Actual #: locale/ipp-strings.c:2270 msgid "multiple-object-handling-actual" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2272 msgid "multiple-object-handling.auto" msgstr "" #. TRANSLATORS: Best Fit #: locale/ipp-strings.c:2274 msgid "multiple-object-handling.best-fit" msgstr "" #. TRANSLATORS: Best Quality #: locale/ipp-strings.c:2276 msgid "multiple-object-handling.best-quality" msgstr "" #. TRANSLATORS: Best Speed #: locale/ipp-strings.c:2278 msgid "multiple-object-handling.best-speed" msgstr "" #. TRANSLATORS: One At A Time #: locale/ipp-strings.c:2280 msgid "multiple-object-handling.one-at-a-time" msgstr "" #. TRANSLATORS: On Timeout #: locale/ipp-strings.c:2282 msgid "multiple-operation-time-out-action" msgstr "" #. TRANSLATORS: Abort Job #: locale/ipp-strings.c:2284 msgid "multiple-operation-time-out-action.abort-job" msgstr "" #. TRANSLATORS: Hold Job #: locale/ipp-strings.c:2286 msgid "multiple-operation-time-out-action.hold-job" msgstr "" #. TRANSLATORS: Process Job #: locale/ipp-strings.c:2288 msgid "multiple-operation-time-out-action.process-job" msgstr "" #: berkeley/lpq.c:555 msgid "no entries" msgstr "" #: systemv/lpstat.c:1104 msgid "no system default destination" msgstr "" #. TRANSLATORS: Noise Removal #: locale/ipp-strings.c:2290 msgid "noise-removal" msgstr "" #. TRANSLATORS: Notify Attributes #: locale/ipp-strings.c:2292 msgid "notify-attributes" msgstr "" #. TRANSLATORS: Notify Charset #: locale/ipp-strings.c:2294 msgid "notify-charset" msgstr "" #. TRANSLATORS: Notify Events #: locale/ipp-strings.c:2296 msgid "notify-events" msgstr "" #: scheduler/ipp.c:5876 msgid "notify-events not specified." msgstr "" #. TRANSLATORS: Document Completed #: locale/ipp-strings.c:2298 msgid "notify-events.document-completed" msgstr "" #. TRANSLATORS: Document Config Changed #: locale/ipp-strings.c:2300 msgid "notify-events.document-config-changed" msgstr "" #. TRANSLATORS: Document Created #: locale/ipp-strings.c:2302 msgid "notify-events.document-created" msgstr "" #. TRANSLATORS: Document Fetchable #: locale/ipp-strings.c:2304 msgid "notify-events.document-fetchable" msgstr "" #. TRANSLATORS: Document State Changed #: locale/ipp-strings.c:2306 msgid "notify-events.document-state-changed" msgstr "" #. TRANSLATORS: Document Stopped #: locale/ipp-strings.c:2308 msgid "notify-events.document-stopped" msgstr "" #. TRANSLATORS: Job Completed #: locale/ipp-strings.c:2310 msgid "notify-events.job-completed" msgstr "" #. TRANSLATORS: Job Config Changed #: locale/ipp-strings.c:2312 msgid "notify-events.job-config-changed" msgstr "" #. TRANSLATORS: Job Created #: locale/ipp-strings.c:2314 msgid "notify-events.job-created" msgstr "" #. TRANSLATORS: Job Fetchable #: locale/ipp-strings.c:2316 msgid "notify-events.job-fetchable" msgstr "" #. TRANSLATORS: Job Progress #: locale/ipp-strings.c:2318 msgid "notify-events.job-progress" msgstr "" #. TRANSLATORS: Job State Changed #: locale/ipp-strings.c:2320 msgid "notify-events.job-state-changed" msgstr "" #. TRANSLATORS: Job Stopped #: locale/ipp-strings.c:2322 msgid "notify-events.job-stopped" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2324 msgid "notify-events.none" msgstr "" #. TRANSLATORS: Printer Config Changed #: locale/ipp-strings.c:2326 msgid "notify-events.printer-config-changed" msgstr "" #. TRANSLATORS: Printer Finishings Changed #: locale/ipp-strings.c:2328 msgid "notify-events.printer-finishings-changed" msgstr "" #. TRANSLATORS: Printer Media Changed #: locale/ipp-strings.c:2330 msgid "notify-events.printer-media-changed" msgstr "" #. TRANSLATORS: Printer Queue Order Changed #: locale/ipp-strings.c:2332 msgid "notify-events.printer-queue-order-changed" msgstr "" #. TRANSLATORS: Printer Restarted #: locale/ipp-strings.c:2334 msgid "notify-events.printer-restarted" msgstr "" #. TRANSLATORS: Printer Shutdown #: locale/ipp-strings.c:2336 msgid "notify-events.printer-shutdown" msgstr "" #. TRANSLATORS: Printer State Changed #: locale/ipp-strings.c:2338 msgid "notify-events.printer-state-changed" msgstr "" #. TRANSLATORS: Printer Stopped #: locale/ipp-strings.c:2340 msgid "notify-events.printer-stopped" msgstr "" #. TRANSLATORS: Notify Get Interval #: locale/ipp-strings.c:2342 msgid "notify-get-interval" msgstr "" #. TRANSLATORS: Notify Lease Duration #: locale/ipp-strings.c:2344 msgid "notify-lease-duration" msgstr "" #. TRANSLATORS: Notify Natural Language #: locale/ipp-strings.c:2346 msgid "notify-natural-language" msgstr "" #. TRANSLATORS: Notify Pull Method #: locale/ipp-strings.c:2348 msgid "notify-pull-method" msgstr "" #. TRANSLATORS: Notify Recipient #: locale/ipp-strings.c:2350 msgid "notify-recipient-uri" msgstr "" #: scheduler/ipp.c:2035 scheduler/ipp.c:5762 #, c-format msgid "notify-recipient-uri URI \"%s\" is already used." msgstr "" #: scheduler/ipp.c:2025 scheduler/ipp.c:5752 #, c-format msgid "notify-recipient-uri URI \"%s\" uses unknown scheme." msgstr "" #. TRANSLATORS: Notify Sequence Numbers #: locale/ipp-strings.c:2352 msgid "notify-sequence-numbers" msgstr "" #. TRANSLATORS: Notify Subscription Ids #: locale/ipp-strings.c:2354 msgid "notify-subscription-ids" msgstr "" #. TRANSLATORS: Notify Time Interval #: locale/ipp-strings.c:2356 msgid "notify-time-interval" msgstr "" #. TRANSLATORS: Notify User Data #: locale/ipp-strings.c:2358 msgid "notify-user-data" msgstr "" #. TRANSLATORS: Notify Wait #: locale/ipp-strings.c:2360 msgid "notify-wait" msgstr "" #. TRANSLATORS: Number Of Retries #: locale/ipp-strings.c:2362 msgid "number-of-retries" msgstr "" #. TRANSLATORS: Number-Up #: locale/ipp-strings.c:2364 msgid "number-up" msgstr "" #. TRANSLATORS: Object Offset #: locale/ipp-strings.c:2366 msgid "object-offset" msgstr "" #. TRANSLATORS: Object Size #: locale/ipp-strings.c:2368 msgid "object-size" msgstr "" #. TRANSLATORS: Organization Name #: locale/ipp-strings.c:2370 msgid "organization-name" msgstr "" #. TRANSLATORS: Orientation #: locale/ipp-strings.c:2372 msgid "orientation-requested" msgstr "" #. TRANSLATORS: Portrait #: locale/ipp-strings.c:2374 msgid "orientation-requested.3" msgstr "" #. TRANSLATORS: Landscape #: locale/ipp-strings.c:2376 msgid "orientation-requested.4" msgstr "" #. TRANSLATORS: Reverse Landscape #: locale/ipp-strings.c:2378 msgid "orientation-requested.5" msgstr "" #. TRANSLATORS: Reverse Portrait #: locale/ipp-strings.c:2380 msgid "orientation-requested.6" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2382 msgid "orientation-requested.7" msgstr "" #. TRANSLATORS: Scanned Image Options #: locale/ipp-strings.c:2384 msgid "output-attributes" msgstr "" #. TRANSLATORS: Output Tray #: locale/ipp-strings.c:2386 msgid "output-bin" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2388 msgid "output-bin.auto" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:2390 msgid "output-bin.bottom" msgstr "" #. TRANSLATORS: Center #: locale/ipp-strings.c:2392 msgid "output-bin.center" msgstr "" #. TRANSLATORS: Face Down #: locale/ipp-strings.c:2394 msgid "output-bin.face-down" msgstr "" #. TRANSLATORS: Face Up #: locale/ipp-strings.c:2396 msgid "output-bin.face-up" msgstr "" #. TRANSLATORS: Large Capacity #: locale/ipp-strings.c:2398 msgid "output-bin.large-capacity" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:2400 msgid "output-bin.left" msgstr "" #. TRANSLATORS: Mailbox 1 #: locale/ipp-strings.c:2402 msgid "output-bin.mailbox-1" msgstr "" #. TRANSLATORS: Mailbox 10 #: locale/ipp-strings.c:2404 msgid "output-bin.mailbox-10" msgstr "" #. TRANSLATORS: Mailbox 2 #: locale/ipp-strings.c:2406 msgid "output-bin.mailbox-2" msgstr "" #. TRANSLATORS: Mailbox 3 #: locale/ipp-strings.c:2408 msgid "output-bin.mailbox-3" msgstr "" #. TRANSLATORS: Mailbox 4 #: locale/ipp-strings.c:2410 msgid "output-bin.mailbox-4" msgstr "" #. TRANSLATORS: Mailbox 5 #: locale/ipp-strings.c:2412 msgid "output-bin.mailbox-5" msgstr "" #. TRANSLATORS: Mailbox 6 #: locale/ipp-strings.c:2414 msgid "output-bin.mailbox-6" msgstr "" #. TRANSLATORS: Mailbox 7 #: locale/ipp-strings.c:2416 msgid "output-bin.mailbox-7" msgstr "" #. TRANSLATORS: Mailbox 8 #: locale/ipp-strings.c:2418 msgid "output-bin.mailbox-8" msgstr "" #. TRANSLATORS: Mailbox 9 #: locale/ipp-strings.c:2420 msgid "output-bin.mailbox-9" msgstr "" #. TRANSLATORS: Middle #: locale/ipp-strings.c:2422 msgid "output-bin.middle" msgstr "" #. TRANSLATORS: My Mailbox #: locale/ipp-strings.c:2424 msgid "output-bin.my-mailbox" msgstr "" #. TRANSLATORS: Rear #: locale/ipp-strings.c:2426 msgid "output-bin.rear" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:2428 msgid "output-bin.right" msgstr "" #. TRANSLATORS: Side #: locale/ipp-strings.c:2430 msgid "output-bin.side" msgstr "" #. TRANSLATORS: Stacker 1 #: locale/ipp-strings.c:2432 msgid "output-bin.stacker-1" msgstr "" #. TRANSLATORS: Stacker 10 #: locale/ipp-strings.c:2434 msgid "output-bin.stacker-10" msgstr "" #. TRANSLATORS: Stacker 2 #: locale/ipp-strings.c:2436 msgid "output-bin.stacker-2" msgstr "" #. TRANSLATORS: Stacker 3 #: locale/ipp-strings.c:2438 msgid "output-bin.stacker-3" msgstr "" #. TRANSLATORS: Stacker 4 #: locale/ipp-strings.c:2440 msgid "output-bin.stacker-4" msgstr "" #. TRANSLATORS: Stacker 5 #: locale/ipp-strings.c:2442 msgid "output-bin.stacker-5" msgstr "" #. TRANSLATORS: Stacker 6 #: locale/ipp-strings.c:2444 msgid "output-bin.stacker-6" msgstr "" #. TRANSLATORS: Stacker 7 #: locale/ipp-strings.c:2446 msgid "output-bin.stacker-7" msgstr "" #. TRANSLATORS: Stacker 8 #: locale/ipp-strings.c:2448 msgid "output-bin.stacker-8" msgstr "" #. TRANSLATORS: Stacker 9 #: locale/ipp-strings.c:2450 msgid "output-bin.stacker-9" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:2452 msgid "output-bin.top" msgstr "" #. TRANSLATORS: Tray 1 #: locale/ipp-strings.c:2454 msgid "output-bin.tray-1" msgstr "" #. TRANSLATORS: Tray 10 #: locale/ipp-strings.c:2456 msgid "output-bin.tray-10" msgstr "" #. TRANSLATORS: Tray 2 #: locale/ipp-strings.c:2458 msgid "output-bin.tray-2" msgstr "" #. TRANSLATORS: Tray 3 #: locale/ipp-strings.c:2460 msgid "output-bin.tray-3" msgstr "" #. TRANSLATORS: Tray 4 #: locale/ipp-strings.c:2462 msgid "output-bin.tray-4" msgstr "" #. TRANSLATORS: Tray 5 #: locale/ipp-strings.c:2464 msgid "output-bin.tray-5" msgstr "" #. TRANSLATORS: Tray 6 #: locale/ipp-strings.c:2466 msgid "output-bin.tray-6" msgstr "" #. TRANSLATORS: Tray 7 #: locale/ipp-strings.c:2468 msgid "output-bin.tray-7" msgstr "" #. TRANSLATORS: Tray 8 #: locale/ipp-strings.c:2470 msgid "output-bin.tray-8" msgstr "" #. TRANSLATORS: Tray 9 #: locale/ipp-strings.c:2472 msgid "output-bin.tray-9" msgstr "" #. TRANSLATORS: Scanned Image Quality #: locale/ipp-strings.c:2474 msgid "output-compression-quality-factor" msgstr "" #. TRANSLATORS: Page Delivery #: locale/ipp-strings.c:2476 msgid "page-delivery" msgstr "" #. TRANSLATORS: Reverse Order Face-down #: locale/ipp-strings.c:2478 msgid "page-delivery.reverse-order-face-down" msgstr "" #. TRANSLATORS: Reverse Order Face-up #: locale/ipp-strings.c:2480 msgid "page-delivery.reverse-order-face-up" msgstr "" #. TRANSLATORS: Same Order Face-down #: locale/ipp-strings.c:2482 msgid "page-delivery.same-order-face-down" msgstr "" #. TRANSLATORS: Same Order Face-up #: locale/ipp-strings.c:2484 msgid "page-delivery.same-order-face-up" msgstr "" #. TRANSLATORS: System Specified #: locale/ipp-strings.c:2486 msgid "page-delivery.system-specified" msgstr "" #. TRANSLATORS: Page Order Received #: locale/ipp-strings.c:2488 msgid "page-order-received" msgstr "" #. TRANSLATORS: 1 To N #: locale/ipp-strings.c:2490 msgid "page-order-received.1-to-n-order" msgstr "" #. TRANSLATORS: N To 1 #: locale/ipp-strings.c:2492 msgid "page-order-received.n-to-1-order" msgstr "" #. TRANSLATORS: Page Ranges #: locale/ipp-strings.c:2494 msgid "page-ranges" msgstr "" #. TRANSLATORS: Pages #: locale/ipp-strings.c:2496 msgid "pages" msgstr "" #. TRANSLATORS: Pages Per Subset #: locale/ipp-strings.c:2498 msgid "pages-per-subset" msgstr "" #. TRANSLATORS: Pclm Raster Back Side #: locale/ipp-strings.c:2500 msgid "pclm-raster-back-side" msgstr "" #. TRANSLATORS: Flipped #: locale/ipp-strings.c:2502 msgid "pclm-raster-back-side.flipped" msgstr "" #. TRANSLATORS: Normal #: locale/ipp-strings.c:2504 msgid "pclm-raster-back-side.normal" msgstr "" #. TRANSLATORS: Rotated #: locale/ipp-strings.c:2506 msgid "pclm-raster-back-side.rotated" msgstr "" #. TRANSLATORS: Pclm Source Resolution #: locale/ipp-strings.c:2508 msgid "pclm-source-resolution" msgstr "" #: cups/notify.c:74 msgid "pending" msgstr "" #. TRANSLATORS: Platform Shape #: locale/ipp-strings.c:2510 msgid "platform-shape" msgstr "" #. TRANSLATORS: Round #: locale/ipp-strings.c:2512 msgid "platform-shape.ellipse" msgstr "" #. TRANSLATORS: Rectangle #: locale/ipp-strings.c:2514 msgid "platform-shape.rectangle" msgstr "" #. TRANSLATORS: Platform Temperature #: locale/ipp-strings.c:2516 msgid "platform-temperature" msgstr "" #. TRANSLATORS: Post-dial String #: locale/ipp-strings.c:2518 msgid "post-dial-string" msgstr "" #: ppdc/ppdc.cxx:102 ppdc/ppdpo.cxx:81 #, c-format msgid "ppdc: Adding include directory \"%s\"." msgstr "" #: ppdc/ppdpo.cxx:124 #, c-format msgid "ppdc: Adding/updating UI text from %s." msgstr "" #: ppdc/ppdc-source.cxx:362 #, c-format msgid "ppdc: Bad boolean value (%s) on line %d of %s." msgstr "" #: ppdc/ppdc-import.cxx:253 #, c-format msgid "ppdc: Bad font attribute: %s" msgstr "" #: ppdc/ppdc-source.cxx:1753 #, c-format msgid "ppdc: Bad resolution name \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1065 #, c-format msgid "ppdc: Bad status keyword %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1987 #, c-format msgid "ppdc: Bad variable substitution ($%c) on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2673 #, c-format msgid "ppdc: Choice found on line %d of %s with no Option." msgstr "" #: ppdc/ppdc-source.cxx:1650 #, c-format msgid "ppdc: Duplicate #po for locale %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:884 #, c-format msgid "ppdc: Expected a filter definition on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:907 #, c-format msgid "ppdc: Expected a program name on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:346 #, c-format msgid "ppdc: Expected boolean value on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1045 #, c-format msgid "ppdc: Expected charset after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:399 #, c-format msgid "ppdc: Expected choice code on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:387 #, c-format msgid "ppdc: Expected choice name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:455 #, c-format msgid "ppdc: Expected color order for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:444 #, c-format msgid "ppdc: Expected colorspace for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:466 #, c-format msgid "ppdc: Expected compression for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:647 #, c-format msgid "ppdc: Expected constraints string for UIConstraints on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2859 #, c-format msgid "ppdc: Expected driver type keyword following DriverType on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:778 #, c-format msgid "ppdc: Expected duplex type after Duplex on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1029 #, c-format msgid "ppdc: Expected encoding after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1641 #, c-format msgid "ppdc: Expected filename after #po %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1157 #, c-format msgid "ppdc: Expected group name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2572 #, c-format msgid "ppdc: Expected include filename on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1454 #, c-format msgid "ppdc: Expected integer on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1633 #, c-format msgid "ppdc: Expected locale after #po on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:305 #, c-format msgid "ppdc: Expected name after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3231 #, c-format msgid "ppdc: Expected name after FileName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1010 #, c-format msgid "ppdc: Expected name after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3062 #, c-format msgid "ppdc: Expected name after Manufacturer on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3095 #, c-format msgid "ppdc: Expected name after MediaSize on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3185 #, c-format msgid "ppdc: Expected name after ModelName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3248 #, c-format msgid "ppdc: Expected name after PCFileName on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1108 #, c-format msgid "ppdc: Expected name/text after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1197 #, c-format msgid "ppdc: Expected name/text after Installable on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1734 #, c-format msgid "ppdc: Expected name/text after Resolution on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:431 #, c-format msgid "ppdc: Expected name/text combination for ColorModel on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1526 #, c-format msgid "ppdc: Expected option name/text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1560 #, c-format msgid "ppdc: Expected option section on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1538 #, c-format msgid "ppdc: Expected option type on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1717 #, c-format msgid "ppdc: Expected override field after Resolution on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:385 ppdc/ppdc-catalog.cxx:397 #, c-format msgid "ppdc: Expected quoted string on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:956 #, c-format msgid "ppdc: Expected real number on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:524 #, c-format msgid "ppdc: Expected resolution/mediatype following ColorProfile on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1817 #, c-format msgid "ppdc: Expected resolution/mediatype following SimpleColorProfile on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:313 #, c-format msgid "ppdc: Expected selector after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1053 #, c-format msgid "ppdc: Expected status after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2748 #, c-format msgid "ppdc: Expected string after Copyright on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3351 #, c-format msgid "ppdc: Expected string after Version on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:680 #, c-format msgid "ppdc: Expected two option names on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:324 #, c-format msgid "ppdc: Expected value after %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1037 #, c-format msgid "ppdc: Expected version after Font on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:179 #, c-format msgid "ppdc: Invalid #include/#po filename \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:924 #, c-format msgid "ppdc: Invalid cost for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:916 #, c-format msgid "ppdc: Invalid empty MIME type for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:932 #, c-format msgid "ppdc: Invalid empty program name for filter on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1580 #, c-format msgid "ppdc: Invalid option section \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1552 #, c-format msgid "ppdc: Invalid option type \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:240 ppdc/ppdpo.cxx:111 #, c-format msgid "ppdc: Loading driver information file \"%s\"." msgstr "" #: ppdc/ppdc.cxx:176 #, c-format msgid "ppdc: Loading messages for locale \"%s\"." msgstr "" #: ppdc/ppdc.cxx:115 #, c-format msgid "ppdc: Loading messages from \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:2365 ppdc/ppdc-source.cxx:2597 #, c-format msgid "ppdc: Missing #endif at end of \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:2466 ppdc/ppdc-source.cxx:2501 #: ppdc/ppdc-source.cxx:2531 #, c-format msgid "ppdc: Missing #if on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:462 #, c-format msgid "ppdc: Need a msgid line before any translation strings on line %d of %s." msgstr "" #: ppdc/ppdc-driver.cxx:707 #, c-format msgid "ppdc: No message catalog provided for locale %s." msgstr "" #: ppdc/ppdc-source.cxx:1603 ppdc/ppdc-source.cxx:2836 #: ppdc/ppdc-source.cxx:2922 ppdc/ppdc-source.cxx:3015 #: ppdc/ppdc-source.cxx:3148 ppdc/ppdc-source.cxx:3281 #, c-format msgid "ppdc: Option %s defined in two different groups on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:1596 #, c-format msgid "ppdc: Option %s redefined with a different type on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:657 #, c-format msgid "ppdc: Option constraint must *name on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2448 #, c-format msgid "ppdc: Too many nested #if's on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:363 #, c-format msgid "ppdc: Unable to create PPD file \"%s\" - %s." msgstr "" #: ppdc/ppdc.cxx:255 #, c-format msgid "ppdc: Unable to create output directory %s: %s" msgstr "" #: ppdc/ppdc.cxx:276 #, c-format msgid "ppdc: Unable to create output pipes: %s" msgstr "" #: ppdc/ppdc.cxx:292 ppdc/ppdc.cxx:298 #, c-format msgid "ppdc: Unable to execute cupstestppd: %s" msgstr "" #: ppdc/ppdc-source.cxx:1682 #, c-format msgid "ppdc: Unable to find #po file %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2604 #, c-format msgid "ppdc: Unable to find include file \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:187 #, c-format msgid "ppdc: Unable to find localization for \"%s\" - %s" msgstr "" #: ppdc/ppdc.cxx:124 #, c-format msgid "ppdc: Unable to load localization file \"%s\" - %s" msgstr "" #: ppdc/ppdc-file.cxx:37 #, c-format msgid "ppdc: Unable to open %s: %s" msgstr "" #: ppdc/ppdc-source.cxx:2008 #, c-format msgid "ppdc: Undefined variable (%s) on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:479 #, c-format msgid "ppdc: Unexpected text on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2878 #, c-format msgid "ppdc: Unknown driver type %s on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:858 #, c-format msgid "ppdc: Unknown duplex type \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:3108 #, c-format msgid "ppdc: Unknown media size \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-catalog.cxx:507 #, c-format msgid "ppdc: Unknown message catalog format for \"%s\"." msgstr "" #: ppdc/ppdc-source.cxx:3362 #, c-format msgid "ppdc: Unknown token \"%s\" seen on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:966 #, c-format msgid "ppdc: Unknown trailing characters in real number \"%s\" on line %d of %s." msgstr "" #: ppdc/ppdc-source.cxx:2118 #, c-format msgid "ppdc: Unterminated string starting with %c on line %d of %s." msgstr "" #: ppdc/ppdc.cxx:354 #, c-format msgid "ppdc: Warning - overlapping filename \"%s\"." msgstr "" #: ppdc/ppdc.cxx:369 #, c-format msgid "ppdc: Writing %s." msgstr "" #: ppdc/ppdc.cxx:137 #, c-format msgid "ppdc: Writing PPD files to directory \"%s\"." msgstr "" #: ppdc/ppdmerge.cxx:126 #, c-format msgid "ppdmerge: Bad LanguageVersion \"%s\" in %s." msgstr "" #: ppdc/ppdmerge.cxx:163 #, c-format msgid "ppdmerge: Ignoring PPD file %s." msgstr "" #: ppdc/ppdmerge.cxx:147 #, c-format msgid "ppdmerge: Unable to backup %s to %s - %s" msgstr "" #. TRANSLATORS: Pre-dial String #: locale/ipp-strings.c:2520 msgid "pre-dial-string" msgstr "" #. TRANSLATORS: Number-Up Layout #: locale/ipp-strings.c:2522 msgid "presentation-direction-number-up" msgstr "" #. TRANSLATORS: Top-bottom, Right-left #: locale/ipp-strings.c:2524 msgid "presentation-direction-number-up.tobottom-toleft" msgstr "" #. TRANSLATORS: Top-bottom, Left-right #: locale/ipp-strings.c:2526 msgid "presentation-direction-number-up.tobottom-toright" msgstr "" #. TRANSLATORS: Right-left, Top-bottom #: locale/ipp-strings.c:2528 msgid "presentation-direction-number-up.toleft-tobottom" msgstr "" #. TRANSLATORS: Right-left, Bottom-top #: locale/ipp-strings.c:2530 msgid "presentation-direction-number-up.toleft-totop" msgstr "" #. TRANSLATORS: Left-right, Top-bottom #: locale/ipp-strings.c:2532 msgid "presentation-direction-number-up.toright-tobottom" msgstr "" #. TRANSLATORS: Left-right, Bottom-top #: locale/ipp-strings.c:2534 msgid "presentation-direction-number-up.toright-totop" msgstr "" #. TRANSLATORS: Bottom-top, Right-left #: locale/ipp-strings.c:2536 msgid "presentation-direction-number-up.totop-toleft" msgstr "" #. TRANSLATORS: Bottom-top, Left-right #: locale/ipp-strings.c:2538 msgid "presentation-direction-number-up.totop-toright" msgstr "" #. TRANSLATORS: Print Accuracy #: locale/ipp-strings.c:2540 msgid "print-accuracy" msgstr "" #. TRANSLATORS: Print Base #: locale/ipp-strings.c:2542 msgid "print-base" msgstr "" #. TRANSLATORS: Print Base Actual #: locale/ipp-strings.c:2544 msgid "print-base-actual" msgstr "" #. TRANSLATORS: Brim #: locale/ipp-strings.c:2546 msgid "print-base.brim" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2548 msgid "print-base.none" msgstr "" #. TRANSLATORS: Raft #: locale/ipp-strings.c:2550 msgid "print-base.raft" msgstr "" #. TRANSLATORS: Skirt #: locale/ipp-strings.c:2552 msgid "print-base.skirt" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:2554 msgid "print-base.standard" msgstr "" #. TRANSLATORS: Print Color Mode #: locale/ipp-strings.c:2556 msgid "print-color-mode" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2558 msgid "print-color-mode.auto" msgstr "" #. TRANSLATORS: Auto Monochrome #: locale/ipp-strings.c:2560 msgid "print-color-mode.auto-monochrome" msgstr "" #. TRANSLATORS: Text #: locale/ipp-strings.c:2562 msgid "print-color-mode.bi-level" msgstr "" #. TRANSLATORS: Color #: locale/ipp-strings.c:2564 msgid "print-color-mode.color" msgstr "" #. TRANSLATORS: Highlight #: locale/ipp-strings.c:2566 msgid "print-color-mode.highlight" msgstr "" #. TRANSLATORS: Monochrome #: locale/ipp-strings.c:2568 msgid "print-color-mode.monochrome" msgstr "" #. TRANSLATORS: Process Text #: locale/ipp-strings.c:2570 msgid "print-color-mode.process-bi-level" msgstr "" #. TRANSLATORS: Process Monochrome #: locale/ipp-strings.c:2572 msgid "print-color-mode.process-monochrome" msgstr "" #. TRANSLATORS: Print Optimization #: locale/ipp-strings.c:2574 msgid "print-content-optimize" msgstr "" #. TRANSLATORS: Print Content Optimize Actual #: locale/ipp-strings.c:2576 msgid "print-content-optimize-actual" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2578 msgid "print-content-optimize.auto" msgstr "" #. TRANSLATORS: Graphics #: locale/ipp-strings.c:2580 msgid "print-content-optimize.graphic" msgstr "" #. TRANSLATORS: Graphics #: locale/ipp-strings.c:2582 msgid "print-content-optimize.graphics" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:2584 msgid "print-content-optimize.photo" msgstr "" #. TRANSLATORS: Text #: locale/ipp-strings.c:2586 msgid "print-content-optimize.text" msgstr "" #. TRANSLATORS: Text and Graphics #: locale/ipp-strings.c:2588 msgid "print-content-optimize.text-and-graphic" msgstr "" #. TRANSLATORS: Text And Graphics #: locale/ipp-strings.c:2590 msgid "print-content-optimize.text-and-graphics" msgstr "" #. TRANSLATORS: Print Objects #: locale/ipp-strings.c:2592 msgid "print-objects" msgstr "" #. TRANSLATORS: Print Quality #: locale/ipp-strings.c:2594 msgid "print-quality" msgstr "" #. TRANSLATORS: Draft #: locale/ipp-strings.c:2596 msgid "print-quality.3" msgstr "" #. TRANSLATORS: Normal #: locale/ipp-strings.c:2598 msgid "print-quality.4" msgstr "" #. TRANSLATORS: High #: locale/ipp-strings.c:2600 msgid "print-quality.5" msgstr "" #. TRANSLATORS: Print Rendering Intent #: locale/ipp-strings.c:2602 msgid "print-rendering-intent" msgstr "" #. TRANSLATORS: Absolute #: locale/ipp-strings.c:2604 msgid "print-rendering-intent.absolute" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2606 msgid "print-rendering-intent.auto" msgstr "" #. TRANSLATORS: Perceptual #: locale/ipp-strings.c:2608 msgid "print-rendering-intent.perceptual" msgstr "" #. TRANSLATORS: Relative #: locale/ipp-strings.c:2610 msgid "print-rendering-intent.relative" msgstr "" #. TRANSLATORS: Relative w/Black Point Compensation #: locale/ipp-strings.c:2612 msgid "print-rendering-intent.relative-bpc" msgstr "" #. TRANSLATORS: Saturation #: locale/ipp-strings.c:2614 msgid "print-rendering-intent.saturation" msgstr "" #. TRANSLATORS: Print Scaling #: locale/ipp-strings.c:2616 msgid "print-scaling" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:2618 msgid "print-scaling.auto" msgstr "" #. TRANSLATORS: Auto-fit #: locale/ipp-strings.c:2620 msgid "print-scaling.auto-fit" msgstr "" #. TRANSLATORS: Fill #: locale/ipp-strings.c:2622 msgid "print-scaling.fill" msgstr "" #. TRANSLATORS: Fit #: locale/ipp-strings.c:2624 msgid "print-scaling.fit" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2626 msgid "print-scaling.none" msgstr "" #. TRANSLATORS: Print Supports #: locale/ipp-strings.c:2628 msgid "print-supports" msgstr "" #. TRANSLATORS: Print Supports Actual #: locale/ipp-strings.c:2630 msgid "print-supports-actual" msgstr "" #. TRANSLATORS: With Specified Material #: locale/ipp-strings.c:2632 msgid "print-supports.material" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:2634 msgid "print-supports.none" msgstr "" #. TRANSLATORS: Standard #: locale/ipp-strings.c:2636 msgid "print-supports.standard" msgstr "" #: systemv/lpstat.c:1787 #, c-format msgid "printer %s disabled since %s -" msgstr "" #: systemv/lpstat.c:1779 #, c-format msgid "printer %s is holding new jobs. enabled since %s" msgstr "" #: systemv/lpstat.c:1781 #, c-format msgid "printer %s is idle. enabled since %s" msgstr "" #: systemv/lpstat.c:1784 #, c-format msgid "printer %s now printing %s-%d. enabled since %s" msgstr "" #: systemv/lpstat.c:1905 #, c-format msgid "printer %s/%s disabled since %s -" msgstr "" #: systemv/lpstat.c:1891 #, c-format msgid "printer %s/%s is idle. enabled since %s" msgstr "" #: systemv/lpstat.c:1898 #, c-format msgid "printer %s/%s now printing %s-%d. enabled since %s" msgstr "" #. TRANSLATORS: Printer Kind #: locale/ipp-strings.c:2638 msgid "printer-kind" msgstr "" #. TRANSLATORS: Disc #: locale/ipp-strings.c:2640 msgid "printer-kind.disc" msgstr "" #. TRANSLATORS: Document #: locale/ipp-strings.c:2642 msgid "printer-kind.document" msgstr "" #. TRANSLATORS: Envelope #: locale/ipp-strings.c:2644 msgid "printer-kind.envelope" msgstr "" #. TRANSLATORS: Label #: locale/ipp-strings.c:2646 msgid "printer-kind.label" msgstr "" #. TRANSLATORS: Large Format #: locale/ipp-strings.c:2648 msgid "printer-kind.large-format" msgstr "" #. TRANSLATORS: Photo #: locale/ipp-strings.c:2650 msgid "printer-kind.photo" msgstr "" #. TRANSLATORS: Postcard #: locale/ipp-strings.c:2652 msgid "printer-kind.postcard" msgstr "" #. TRANSLATORS: Receipt #: locale/ipp-strings.c:2654 msgid "printer-kind.receipt" msgstr "" #. TRANSLATORS: Roll #: locale/ipp-strings.c:2656 msgid "printer-kind.roll" msgstr "" #. TRANSLATORS: Message From Operator #: locale/ipp-strings.c:2658 msgid "printer-message-from-operator" msgstr "" #. TRANSLATORS: Print Resolution #: locale/ipp-strings.c:2660 msgid "printer-resolution" msgstr "" #. TRANSLATORS: Printer State #: locale/ipp-strings.c:2662 msgid "printer-state" msgstr "" #. TRANSLATORS: Detailed Printer State #: locale/ipp-strings.c:2664 msgid "printer-state-reasons" msgstr "" #. TRANSLATORS: Old Alerts Have Been Removed #: locale/ipp-strings.c:2666 msgid "printer-state-reasons.alert-removal-of-binary-change-entry" msgstr "" #. TRANSLATORS: Bander Added #: locale/ipp-strings.c:2668 msgid "printer-state-reasons.bander-added" msgstr "" #. TRANSLATORS: Bander Almost Empty #: locale/ipp-strings.c:2670 msgid "printer-state-reasons.bander-almost-empty" msgstr "" #. TRANSLATORS: Bander Almost Full #: locale/ipp-strings.c:2672 msgid "printer-state-reasons.bander-almost-full" msgstr "" #. TRANSLATORS: Bander At Limit #: locale/ipp-strings.c:2674 msgid "printer-state-reasons.bander-at-limit" msgstr "" #. TRANSLATORS: Bander Closed #: locale/ipp-strings.c:2676 msgid "printer-state-reasons.bander-closed" msgstr "" #. TRANSLATORS: Bander Configuration Change #: locale/ipp-strings.c:2678 msgid "printer-state-reasons.bander-configuration-change" msgstr "" #. TRANSLATORS: Bander Cover Closed #: locale/ipp-strings.c:2680 msgid "printer-state-reasons.bander-cover-closed" msgstr "" #. TRANSLATORS: Bander Cover Open #: locale/ipp-strings.c:2682 msgid "printer-state-reasons.bander-cover-open" msgstr "" #. TRANSLATORS: Bander Empty #: locale/ipp-strings.c:2684 msgid "printer-state-reasons.bander-empty" msgstr "" #. TRANSLATORS: Bander Full #: locale/ipp-strings.c:2686 msgid "printer-state-reasons.bander-full" msgstr "" #. TRANSLATORS: Bander Interlock Closed #: locale/ipp-strings.c:2688 msgid "printer-state-reasons.bander-interlock-closed" msgstr "" #. TRANSLATORS: Bander Interlock Open #: locale/ipp-strings.c:2690 msgid "printer-state-reasons.bander-interlock-open" msgstr "" #. TRANSLATORS: Bander Jam #: locale/ipp-strings.c:2692 msgid "printer-state-reasons.bander-jam" msgstr "" #. TRANSLATORS: Bander Life Almost Over #: locale/ipp-strings.c:2694 msgid "printer-state-reasons.bander-life-almost-over" msgstr "" #. TRANSLATORS: Bander Life Over #: locale/ipp-strings.c:2696 msgid "printer-state-reasons.bander-life-over" msgstr "" #. TRANSLATORS: Bander Memory Exhausted #: locale/ipp-strings.c:2698 msgid "printer-state-reasons.bander-memory-exhausted" msgstr "" #. TRANSLATORS: Bander Missing #: locale/ipp-strings.c:2700 msgid "printer-state-reasons.bander-missing" msgstr "" #. TRANSLATORS: Bander Motor Failure #: locale/ipp-strings.c:2702 msgid "printer-state-reasons.bander-motor-failure" msgstr "" #. TRANSLATORS: Bander Near Limit #: locale/ipp-strings.c:2704 msgid "printer-state-reasons.bander-near-limit" msgstr "" #. TRANSLATORS: Bander Offline #: locale/ipp-strings.c:2706 msgid "printer-state-reasons.bander-offline" msgstr "" #. TRANSLATORS: Bander Opened #: locale/ipp-strings.c:2708 msgid "printer-state-reasons.bander-opened" msgstr "" #. TRANSLATORS: Bander Over Temperature #: locale/ipp-strings.c:2710 msgid "printer-state-reasons.bander-over-temperature" msgstr "" #. TRANSLATORS: Bander Power Saver #: locale/ipp-strings.c:2712 msgid "printer-state-reasons.bander-power-saver" msgstr "" #. TRANSLATORS: Bander Recoverable Failure #: locale/ipp-strings.c:2714 msgid "printer-state-reasons.bander-recoverable-failure" msgstr "" #. TRANSLATORS: Bander Recoverable Storage #: locale/ipp-strings.c:2716 msgid "printer-state-reasons.bander-recoverable-storage" msgstr "" #. TRANSLATORS: Bander Removed #: locale/ipp-strings.c:2718 msgid "printer-state-reasons.bander-removed" msgstr "" #. TRANSLATORS: Bander Resource Added #: locale/ipp-strings.c:2720 msgid "printer-state-reasons.bander-resource-added" msgstr "" #. TRANSLATORS: Bander Resource Removed #: locale/ipp-strings.c:2722 msgid "printer-state-reasons.bander-resource-removed" msgstr "" #. TRANSLATORS: Bander Thermistor Failure #: locale/ipp-strings.c:2724 msgid "printer-state-reasons.bander-thermistor-failure" msgstr "" #. TRANSLATORS: Bander Timing Failure #: locale/ipp-strings.c:2726 msgid "printer-state-reasons.bander-timing-failure" msgstr "" #. TRANSLATORS: Bander Turned Off #: locale/ipp-strings.c:2728 msgid "printer-state-reasons.bander-turned-off" msgstr "" #. TRANSLATORS: Bander Turned On #: locale/ipp-strings.c:2730 msgid "printer-state-reasons.bander-turned-on" msgstr "" #. TRANSLATORS: Bander Under Temperature #: locale/ipp-strings.c:2732 msgid "printer-state-reasons.bander-under-temperature" msgstr "" #. TRANSLATORS: Bander Unrecoverable Failure #: locale/ipp-strings.c:2734 msgid "printer-state-reasons.bander-unrecoverable-failure" msgstr "" #. TRANSLATORS: Bander Unrecoverable Storage Error #: locale/ipp-strings.c:2736 msgid "printer-state-reasons.bander-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Bander Warming Up #: locale/ipp-strings.c:2738 msgid "printer-state-reasons.bander-warming-up" msgstr "" #. TRANSLATORS: Binder Added #: locale/ipp-strings.c:2740 msgid "printer-state-reasons.binder-added" msgstr "" #. TRANSLATORS: Binder Almost Empty #: locale/ipp-strings.c:2742 msgid "printer-state-reasons.binder-almost-empty" msgstr "" #. TRANSLATORS: Binder Almost Full #: locale/ipp-strings.c:2744 msgid "printer-state-reasons.binder-almost-full" msgstr "" #. TRANSLATORS: Binder At Limit #: locale/ipp-strings.c:2746 msgid "printer-state-reasons.binder-at-limit" msgstr "" #. TRANSLATORS: Binder Closed #: locale/ipp-strings.c:2748 msgid "printer-state-reasons.binder-closed" msgstr "" #. TRANSLATORS: Binder Configuration Change #: locale/ipp-strings.c:2750 msgid "printer-state-reasons.binder-configuration-change" msgstr "" #. TRANSLATORS: Binder Cover Closed #: locale/ipp-strings.c:2752 msgid "printer-state-reasons.binder-cover-closed" msgstr "" #. TRANSLATORS: Binder Cover Open #: locale/ipp-strings.c:2754 msgid "printer-state-reasons.binder-cover-open" msgstr "" #. TRANSLATORS: Binder Empty #: locale/ipp-strings.c:2756 msgid "printer-state-reasons.binder-empty" msgstr "" #. TRANSLATORS: Binder Full #: locale/ipp-strings.c:2758 msgid "printer-state-reasons.binder-full" msgstr "" #. TRANSLATORS: Binder Interlock Closed #: locale/ipp-strings.c:2760 msgid "printer-state-reasons.binder-interlock-closed" msgstr "" #. TRANSLATORS: Binder Interlock Open #: locale/ipp-strings.c:2762 msgid "printer-state-reasons.binder-interlock-open" msgstr "" #. TRANSLATORS: Binder Jam #: locale/ipp-strings.c:2764 msgid "printer-state-reasons.binder-jam" msgstr "" #. TRANSLATORS: Binder Life Almost Over #: locale/ipp-strings.c:2766 msgid "printer-state-reasons.binder-life-almost-over" msgstr "" #. TRANSLATORS: Binder Life Over #: locale/ipp-strings.c:2768 msgid "printer-state-reasons.binder-life-over" msgstr "" #. TRANSLATORS: Binder Memory Exhausted #: locale/ipp-strings.c:2770 msgid "printer-state-reasons.binder-memory-exhausted" msgstr "" #. TRANSLATORS: Binder Missing #: locale/ipp-strings.c:2772 msgid "printer-state-reasons.binder-missing" msgstr "" #. TRANSLATORS: Binder Motor Failure #: locale/ipp-strings.c:2774 msgid "printer-state-reasons.binder-motor-failure" msgstr "" #. TRANSLATORS: Binder Near Limit #: locale/ipp-strings.c:2776 msgid "printer-state-reasons.binder-near-limit" msgstr "" #. TRANSLATORS: Binder Offline #: locale/ipp-strings.c:2778 msgid "printer-state-reasons.binder-offline" msgstr "" #. TRANSLATORS: Binder Opened #: locale/ipp-strings.c:2780 msgid "printer-state-reasons.binder-opened" msgstr "" #. TRANSLATORS: Binder Over Temperature #: locale/ipp-strings.c:2782 msgid "printer-state-reasons.binder-over-temperature" msgstr "" #. TRANSLATORS: Binder Power Saver #: locale/ipp-strings.c:2784 msgid "printer-state-reasons.binder-power-saver" msgstr "" #. TRANSLATORS: Binder Recoverable Failure #: locale/ipp-strings.c:2786 msgid "printer-state-reasons.binder-recoverable-failure" msgstr "" #. TRANSLATORS: Binder Recoverable Storage #: locale/ipp-strings.c:2788 msgid "printer-state-reasons.binder-recoverable-storage" msgstr "" #. TRANSLATORS: Binder Removed #: locale/ipp-strings.c:2790 msgid "printer-state-reasons.binder-removed" msgstr "" #. TRANSLATORS: Binder Resource Added #: locale/ipp-strings.c:2792 msgid "printer-state-reasons.binder-resource-added" msgstr "" #. TRANSLATORS: Binder Resource Removed #: locale/ipp-strings.c:2794 msgid "printer-state-reasons.binder-resource-removed" msgstr "" #. TRANSLATORS: Binder Thermistor Failure #: locale/ipp-strings.c:2796 msgid "printer-state-reasons.binder-thermistor-failure" msgstr "" #. TRANSLATORS: Binder Timing Failure #: locale/ipp-strings.c:2798 msgid "printer-state-reasons.binder-timing-failure" msgstr "" #. TRANSLATORS: Binder Turned Off #: locale/ipp-strings.c:2800 msgid "printer-state-reasons.binder-turned-off" msgstr "" #. TRANSLATORS: Binder Turned On #: locale/ipp-strings.c:2802 msgid "printer-state-reasons.binder-turned-on" msgstr "" #. TRANSLATORS: Binder Under Temperature #: locale/ipp-strings.c:2804 msgid "printer-state-reasons.binder-under-temperature" msgstr "" #. TRANSLATORS: Binder Unrecoverable Failure #: locale/ipp-strings.c:2806 msgid "printer-state-reasons.binder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Binder Unrecoverable Storage Error #: locale/ipp-strings.c:2808 msgid "printer-state-reasons.binder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Binder Warming Up #: locale/ipp-strings.c:2810 msgid "printer-state-reasons.binder-warming-up" msgstr "" #. TRANSLATORS: Camera Failure #: locale/ipp-strings.c:2812 msgid "printer-state-reasons.camera-failure" msgstr "" #. TRANSLATORS: Chamber Cooling #: locale/ipp-strings.c:2814 msgid "printer-state-reasons.chamber-cooling" msgstr "" #. TRANSLATORS: Chamber Failure #: locale/ipp-strings.c:2816 msgid "printer-state-reasons.chamber-failure" msgstr "" #. TRANSLATORS: Chamber Heating #: locale/ipp-strings.c:2818 msgid "printer-state-reasons.chamber-heating" msgstr "" #. TRANSLATORS: Chamber Temperature High #: locale/ipp-strings.c:2820 msgid "printer-state-reasons.chamber-temperature-high" msgstr "" #. TRANSLATORS: Chamber Temperature Low #: locale/ipp-strings.c:2822 msgid "printer-state-reasons.chamber-temperature-low" msgstr "" #. TRANSLATORS: Cleaner Life Almost Over #: locale/ipp-strings.c:2824 msgid "printer-state-reasons.cleaner-life-almost-over" msgstr "" #. TRANSLATORS: Cleaner Life Over #: locale/ipp-strings.c:2826 msgid "printer-state-reasons.cleaner-life-over" msgstr "" #. TRANSLATORS: Configuration Change #: locale/ipp-strings.c:2828 msgid "printer-state-reasons.configuration-change" msgstr "" #. TRANSLATORS: Connecting To Device #: locale/ipp-strings.c:2830 msgid "printer-state-reasons.connecting-to-device" msgstr "" #. TRANSLATORS: Cover Open #: locale/ipp-strings.c:2832 msgid "printer-state-reasons.cover-open" msgstr "" #. TRANSLATORS: Deactivated #: locale/ipp-strings.c:2834 msgid "printer-state-reasons.deactivated" msgstr "" #. TRANSLATORS: Developer Empty #: locale/ipp-strings.c:2836 msgid "printer-state-reasons.developer-empty" msgstr "" #. TRANSLATORS: Developer Low #: locale/ipp-strings.c:2838 msgid "printer-state-reasons.developer-low" msgstr "" #. TRANSLATORS: Die Cutter Added #: locale/ipp-strings.c:2840 msgid "printer-state-reasons.die-cutter-added" msgstr "" #. TRANSLATORS: Die Cutter Almost Empty #: locale/ipp-strings.c:2842 msgid "printer-state-reasons.die-cutter-almost-empty" msgstr "" #. TRANSLATORS: Die Cutter Almost Full #: locale/ipp-strings.c:2844 msgid "printer-state-reasons.die-cutter-almost-full" msgstr "" #. TRANSLATORS: Die Cutter At Limit #: locale/ipp-strings.c:2846 msgid "printer-state-reasons.die-cutter-at-limit" msgstr "" #. TRANSLATORS: Die Cutter Closed #: locale/ipp-strings.c:2848 msgid "printer-state-reasons.die-cutter-closed" msgstr "" #. TRANSLATORS: Die Cutter Configuration Change #: locale/ipp-strings.c:2850 msgid "printer-state-reasons.die-cutter-configuration-change" msgstr "" #. TRANSLATORS: Die Cutter Cover Closed #: locale/ipp-strings.c:2852 msgid "printer-state-reasons.die-cutter-cover-closed" msgstr "" #. TRANSLATORS: Die Cutter Cover Open #: locale/ipp-strings.c:2854 msgid "printer-state-reasons.die-cutter-cover-open" msgstr "" #. TRANSLATORS: Die Cutter Empty #: locale/ipp-strings.c:2856 msgid "printer-state-reasons.die-cutter-empty" msgstr "" #. TRANSLATORS: Die Cutter Full #: locale/ipp-strings.c:2858 msgid "printer-state-reasons.die-cutter-full" msgstr "" #. TRANSLATORS: Die Cutter Interlock Closed #: locale/ipp-strings.c:2860 msgid "printer-state-reasons.die-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Die Cutter Interlock Open #: locale/ipp-strings.c:2862 msgid "printer-state-reasons.die-cutter-interlock-open" msgstr "" #. TRANSLATORS: Die Cutter Jam #: locale/ipp-strings.c:2864 msgid "printer-state-reasons.die-cutter-jam" msgstr "" #. TRANSLATORS: Die Cutter Life Almost Over #: locale/ipp-strings.c:2866 msgid "printer-state-reasons.die-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Die Cutter Life Over #: locale/ipp-strings.c:2868 msgid "printer-state-reasons.die-cutter-life-over" msgstr "" #. TRANSLATORS: Die Cutter Memory Exhausted #: locale/ipp-strings.c:2870 msgid "printer-state-reasons.die-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Die Cutter Missing #: locale/ipp-strings.c:2872 msgid "printer-state-reasons.die-cutter-missing" msgstr "" #. TRANSLATORS: Die Cutter Motor Failure #: locale/ipp-strings.c:2874 msgid "printer-state-reasons.die-cutter-motor-failure" msgstr "" #. TRANSLATORS: Die Cutter Near Limit #: locale/ipp-strings.c:2876 msgid "printer-state-reasons.die-cutter-near-limit" msgstr "" #. TRANSLATORS: Die Cutter Offline #: locale/ipp-strings.c:2878 msgid "printer-state-reasons.die-cutter-offline" msgstr "" #. TRANSLATORS: Die Cutter Opened #: locale/ipp-strings.c:2880 msgid "printer-state-reasons.die-cutter-opened" msgstr "" #. TRANSLATORS: Die Cutter Over Temperature #: locale/ipp-strings.c:2882 msgid "printer-state-reasons.die-cutter-over-temperature" msgstr "" #. TRANSLATORS: Die Cutter Power Saver #: locale/ipp-strings.c:2884 msgid "printer-state-reasons.die-cutter-power-saver" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Failure #: locale/ipp-strings.c:2886 msgid "printer-state-reasons.die-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Recoverable Storage #: locale/ipp-strings.c:2888 msgid "printer-state-reasons.die-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Die Cutter Removed #: locale/ipp-strings.c:2890 msgid "printer-state-reasons.die-cutter-removed" msgstr "" #. TRANSLATORS: Die Cutter Resource Added #: locale/ipp-strings.c:2892 msgid "printer-state-reasons.die-cutter-resource-added" msgstr "" #. TRANSLATORS: Die Cutter Resource Removed #: locale/ipp-strings.c:2894 msgid "printer-state-reasons.die-cutter-resource-removed" msgstr "" #. TRANSLATORS: Die Cutter Thermistor Failure #: locale/ipp-strings.c:2896 msgid "printer-state-reasons.die-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Die Cutter Timing Failure #: locale/ipp-strings.c:2898 msgid "printer-state-reasons.die-cutter-timing-failure" msgstr "" #. TRANSLATORS: Die Cutter Turned Off #: locale/ipp-strings.c:2900 msgid "printer-state-reasons.die-cutter-turned-off" msgstr "" #. TRANSLATORS: Die Cutter Turned On #: locale/ipp-strings.c:2902 msgid "printer-state-reasons.die-cutter-turned-on" msgstr "" #. TRANSLATORS: Die Cutter Under Temperature #: locale/ipp-strings.c:2904 msgid "printer-state-reasons.die-cutter-under-temperature" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Failure #: locale/ipp-strings.c:2906 msgid "printer-state-reasons.die-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Die Cutter Unrecoverable Storage Error #: locale/ipp-strings.c:2908 msgid "printer-state-reasons.die-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Die Cutter Warming Up #: locale/ipp-strings.c:2910 msgid "printer-state-reasons.die-cutter-warming-up" msgstr "" #. TRANSLATORS: Door Open #: locale/ipp-strings.c:2912 msgid "printer-state-reasons.door-open" msgstr "" #. TRANSLATORS: Extruder Cooling #: locale/ipp-strings.c:2914 msgid "printer-state-reasons.extruder-cooling" msgstr "" #. TRANSLATORS: Extruder Failure #: locale/ipp-strings.c:2916 msgid "printer-state-reasons.extruder-failure" msgstr "" #. TRANSLATORS: Extruder Heating #: locale/ipp-strings.c:2918 msgid "printer-state-reasons.extruder-heating" msgstr "" #. TRANSLATORS: Extruder Jam #: locale/ipp-strings.c:2920 msgid "printer-state-reasons.extruder-jam" msgstr "" #. TRANSLATORS: Extruder Temperature High #: locale/ipp-strings.c:2922 msgid "printer-state-reasons.extruder-temperature-high" msgstr "" #. TRANSLATORS: Extruder Temperature Low #: locale/ipp-strings.c:2924 msgid "printer-state-reasons.extruder-temperature-low" msgstr "" #. TRANSLATORS: Fan Failure #: locale/ipp-strings.c:2926 msgid "printer-state-reasons.fan-failure" msgstr "" #. TRANSLATORS: Fax Modem Life Almost Over #: locale/ipp-strings.c:2928 msgid "printer-state-reasons.fax-modem-life-almost-over" msgstr "" #. TRANSLATORS: Fax Modem Life Over #: locale/ipp-strings.c:2930 msgid "printer-state-reasons.fax-modem-life-over" msgstr "" #. TRANSLATORS: Fax Modem Missing #: locale/ipp-strings.c:2932 msgid "printer-state-reasons.fax-modem-missing" msgstr "" #. TRANSLATORS: Fax Modem Turned Off #: locale/ipp-strings.c:2934 msgid "printer-state-reasons.fax-modem-turned-off" msgstr "" #. TRANSLATORS: Fax Modem Turned On #: locale/ipp-strings.c:2936 msgid "printer-state-reasons.fax-modem-turned-on" msgstr "" #. TRANSLATORS: Folder Added #: locale/ipp-strings.c:2938 msgid "printer-state-reasons.folder-added" msgstr "" #. TRANSLATORS: Folder Almost Empty #: locale/ipp-strings.c:2940 msgid "printer-state-reasons.folder-almost-empty" msgstr "" #. TRANSLATORS: Folder Almost Full #: locale/ipp-strings.c:2942 msgid "printer-state-reasons.folder-almost-full" msgstr "" #. TRANSLATORS: Folder At Limit #: locale/ipp-strings.c:2944 msgid "printer-state-reasons.folder-at-limit" msgstr "" #. TRANSLATORS: Folder Closed #: locale/ipp-strings.c:2946 msgid "printer-state-reasons.folder-closed" msgstr "" #. TRANSLATORS: Folder Configuration Change #: locale/ipp-strings.c:2948 msgid "printer-state-reasons.folder-configuration-change" msgstr "" #. TRANSLATORS: Folder Cover Closed #: locale/ipp-strings.c:2950 msgid "printer-state-reasons.folder-cover-closed" msgstr "" #. TRANSLATORS: Folder Cover Open #: locale/ipp-strings.c:2952 msgid "printer-state-reasons.folder-cover-open" msgstr "" #. TRANSLATORS: Folder Empty #: locale/ipp-strings.c:2954 msgid "printer-state-reasons.folder-empty" msgstr "" #. TRANSLATORS: Folder Full #: locale/ipp-strings.c:2956 msgid "printer-state-reasons.folder-full" msgstr "" #. TRANSLATORS: Folder Interlock Closed #: locale/ipp-strings.c:2958 msgid "printer-state-reasons.folder-interlock-closed" msgstr "" #. TRANSLATORS: Folder Interlock Open #: locale/ipp-strings.c:2960 msgid "printer-state-reasons.folder-interlock-open" msgstr "" #. TRANSLATORS: Folder Jam #: locale/ipp-strings.c:2962 msgid "printer-state-reasons.folder-jam" msgstr "" #. TRANSLATORS: Folder Life Almost Over #: locale/ipp-strings.c:2964 msgid "printer-state-reasons.folder-life-almost-over" msgstr "" #. TRANSLATORS: Folder Life Over #: locale/ipp-strings.c:2966 msgid "printer-state-reasons.folder-life-over" msgstr "" #. TRANSLATORS: Folder Memory Exhausted #: locale/ipp-strings.c:2968 msgid "printer-state-reasons.folder-memory-exhausted" msgstr "" #. TRANSLATORS: Folder Missing #: locale/ipp-strings.c:2970 msgid "printer-state-reasons.folder-missing" msgstr "" #. TRANSLATORS: Folder Motor Failure #: locale/ipp-strings.c:2972 msgid "printer-state-reasons.folder-motor-failure" msgstr "" #. TRANSLATORS: Folder Near Limit #: locale/ipp-strings.c:2974 msgid "printer-state-reasons.folder-near-limit" msgstr "" #. TRANSLATORS: Folder Offline #: locale/ipp-strings.c:2976 msgid "printer-state-reasons.folder-offline" msgstr "" #. TRANSLATORS: Folder Opened #: locale/ipp-strings.c:2978 msgid "printer-state-reasons.folder-opened" msgstr "" #. TRANSLATORS: Folder Over Temperature #: locale/ipp-strings.c:2980 msgid "printer-state-reasons.folder-over-temperature" msgstr "" #. TRANSLATORS: Folder Power Saver #: locale/ipp-strings.c:2982 msgid "printer-state-reasons.folder-power-saver" msgstr "" #. TRANSLATORS: Folder Recoverable Failure #: locale/ipp-strings.c:2984 msgid "printer-state-reasons.folder-recoverable-failure" msgstr "" #. TRANSLATORS: Folder Recoverable Storage #: locale/ipp-strings.c:2986 msgid "printer-state-reasons.folder-recoverable-storage" msgstr "" #. TRANSLATORS: Folder Removed #: locale/ipp-strings.c:2988 msgid "printer-state-reasons.folder-removed" msgstr "" #. TRANSLATORS: Folder Resource Added #: locale/ipp-strings.c:2990 msgid "printer-state-reasons.folder-resource-added" msgstr "" #. TRANSLATORS: Folder Resource Removed #: locale/ipp-strings.c:2992 msgid "printer-state-reasons.folder-resource-removed" msgstr "" #. TRANSLATORS: Folder Thermistor Failure #: locale/ipp-strings.c:2994 msgid "printer-state-reasons.folder-thermistor-failure" msgstr "" #. TRANSLATORS: Folder Timing Failure #: locale/ipp-strings.c:2996 msgid "printer-state-reasons.folder-timing-failure" msgstr "" #. TRANSLATORS: Folder Turned Off #: locale/ipp-strings.c:2998 msgid "printer-state-reasons.folder-turned-off" msgstr "" #. TRANSLATORS: Folder Turned On #: locale/ipp-strings.c:3000 msgid "printer-state-reasons.folder-turned-on" msgstr "" #. TRANSLATORS: Folder Under Temperature #: locale/ipp-strings.c:3002 msgid "printer-state-reasons.folder-under-temperature" msgstr "" #. TRANSLATORS: Folder Unrecoverable Failure #: locale/ipp-strings.c:3004 msgid "printer-state-reasons.folder-unrecoverable-failure" msgstr "" #. TRANSLATORS: Folder Unrecoverable Storage Error #: locale/ipp-strings.c:3006 msgid "printer-state-reasons.folder-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Folder Warming Up #: locale/ipp-strings.c:3008 msgid "printer-state-reasons.folder-warming-up" msgstr "" #. TRANSLATORS: Fuser temperature high #: locale/ipp-strings.c:3010 msgid "printer-state-reasons.fuser-over-temp" msgstr "" #. TRANSLATORS: Fuser temperature low #: locale/ipp-strings.c:3012 msgid "printer-state-reasons.fuser-under-temp" msgstr "" #. TRANSLATORS: Hold New Jobs #: locale/ipp-strings.c:3014 msgid "printer-state-reasons.hold-new-jobs" msgstr "" #. TRANSLATORS: Identify Printer #: locale/ipp-strings.c:3016 msgid "printer-state-reasons.identify-printer-requested" msgstr "" #. TRANSLATORS: Imprinter Added #: locale/ipp-strings.c:3018 msgid "printer-state-reasons.imprinter-added" msgstr "" #. TRANSLATORS: Imprinter Almost Empty #: locale/ipp-strings.c:3020 msgid "printer-state-reasons.imprinter-almost-empty" msgstr "" #. TRANSLATORS: Imprinter Almost Full #: locale/ipp-strings.c:3022 msgid "printer-state-reasons.imprinter-almost-full" msgstr "" #. TRANSLATORS: Imprinter At Limit #: locale/ipp-strings.c:3024 msgid "printer-state-reasons.imprinter-at-limit" msgstr "" #. TRANSLATORS: Imprinter Closed #: locale/ipp-strings.c:3026 msgid "printer-state-reasons.imprinter-closed" msgstr "" #. TRANSLATORS: Imprinter Configuration Change #: locale/ipp-strings.c:3028 msgid "printer-state-reasons.imprinter-configuration-change" msgstr "" #. TRANSLATORS: Imprinter Cover Closed #: locale/ipp-strings.c:3030 msgid "printer-state-reasons.imprinter-cover-closed" msgstr "" #. TRANSLATORS: Imprinter Cover Open #: locale/ipp-strings.c:3032 msgid "printer-state-reasons.imprinter-cover-open" msgstr "" #. TRANSLATORS: Imprinter Empty #: locale/ipp-strings.c:3034 msgid "printer-state-reasons.imprinter-empty" msgstr "" #. TRANSLATORS: Imprinter Full #: locale/ipp-strings.c:3036 msgid "printer-state-reasons.imprinter-full" msgstr "" #. TRANSLATORS: Imprinter Interlock Closed #: locale/ipp-strings.c:3038 msgid "printer-state-reasons.imprinter-interlock-closed" msgstr "" #. TRANSLATORS: Imprinter Interlock Open #: locale/ipp-strings.c:3040 msgid "printer-state-reasons.imprinter-interlock-open" msgstr "" #. TRANSLATORS: Imprinter Jam #: locale/ipp-strings.c:3042 msgid "printer-state-reasons.imprinter-jam" msgstr "" #. TRANSLATORS: Imprinter Life Almost Over #: locale/ipp-strings.c:3044 msgid "printer-state-reasons.imprinter-life-almost-over" msgstr "" #. TRANSLATORS: Imprinter Life Over #: locale/ipp-strings.c:3046 msgid "printer-state-reasons.imprinter-life-over" msgstr "" #. TRANSLATORS: Imprinter Memory Exhausted #: locale/ipp-strings.c:3048 msgid "printer-state-reasons.imprinter-memory-exhausted" msgstr "" #. TRANSLATORS: Imprinter Missing #: locale/ipp-strings.c:3050 msgid "printer-state-reasons.imprinter-missing" msgstr "" #. TRANSLATORS: Imprinter Motor Failure #: locale/ipp-strings.c:3052 msgid "printer-state-reasons.imprinter-motor-failure" msgstr "" #. TRANSLATORS: Imprinter Near Limit #: locale/ipp-strings.c:3054 msgid "printer-state-reasons.imprinter-near-limit" msgstr "" #. TRANSLATORS: Imprinter Offline #: locale/ipp-strings.c:3056 msgid "printer-state-reasons.imprinter-offline" msgstr "" #. TRANSLATORS: Imprinter Opened #: locale/ipp-strings.c:3058 msgid "printer-state-reasons.imprinter-opened" msgstr "" #. TRANSLATORS: Imprinter Over Temperature #: locale/ipp-strings.c:3060 msgid "printer-state-reasons.imprinter-over-temperature" msgstr "" #. TRANSLATORS: Imprinter Power Saver #: locale/ipp-strings.c:3062 msgid "printer-state-reasons.imprinter-power-saver" msgstr "" #. TRANSLATORS: Imprinter Recoverable Failure #: locale/ipp-strings.c:3064 msgid "printer-state-reasons.imprinter-recoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Recoverable Storage #: locale/ipp-strings.c:3066 msgid "printer-state-reasons.imprinter-recoverable-storage" msgstr "" #. TRANSLATORS: Imprinter Removed #: locale/ipp-strings.c:3068 msgid "printer-state-reasons.imprinter-removed" msgstr "" #. TRANSLATORS: Imprinter Resource Added #: locale/ipp-strings.c:3070 msgid "printer-state-reasons.imprinter-resource-added" msgstr "" #. TRANSLATORS: Imprinter Resource Removed #: locale/ipp-strings.c:3072 msgid "printer-state-reasons.imprinter-resource-removed" msgstr "" #. TRANSLATORS: Imprinter Thermistor Failure #: locale/ipp-strings.c:3074 msgid "printer-state-reasons.imprinter-thermistor-failure" msgstr "" #. TRANSLATORS: Imprinter Timing Failure #: locale/ipp-strings.c:3076 msgid "printer-state-reasons.imprinter-timing-failure" msgstr "" #. TRANSLATORS: Imprinter Turned Off #: locale/ipp-strings.c:3078 msgid "printer-state-reasons.imprinter-turned-off" msgstr "" #. TRANSLATORS: Imprinter Turned On #: locale/ipp-strings.c:3080 msgid "printer-state-reasons.imprinter-turned-on" msgstr "" #. TRANSLATORS: Imprinter Under Temperature #: locale/ipp-strings.c:3082 msgid "printer-state-reasons.imprinter-under-temperature" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Failure #: locale/ipp-strings.c:3084 msgid "printer-state-reasons.imprinter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Imprinter Unrecoverable Storage Error #: locale/ipp-strings.c:3086 msgid "printer-state-reasons.imprinter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Imprinter Warming Up #: locale/ipp-strings.c:3088 msgid "printer-state-reasons.imprinter-warming-up" msgstr "" #. TRANSLATORS: Input Cannot Feed Size Selected #: locale/ipp-strings.c:3090 msgid "printer-state-reasons.input-cannot-feed-size-selected" msgstr "" #. TRANSLATORS: Input Manual Input Request #: locale/ipp-strings.c:3092 msgid "printer-state-reasons.input-manual-input-request" msgstr "" #. TRANSLATORS: Input Media Color Change #: locale/ipp-strings.c:3094 msgid "printer-state-reasons.input-media-color-change" msgstr "" #. TRANSLATORS: Input Media Form Parts Change #: locale/ipp-strings.c:3096 msgid "printer-state-reasons.input-media-form-parts-change" msgstr "" #. TRANSLATORS: Input Media Size Change #: locale/ipp-strings.c:3098 msgid "printer-state-reasons.input-media-size-change" msgstr "" #. TRANSLATORS: Input Media Tray Failure #: locale/ipp-strings.c:3100 msgid "printer-state-reasons.input-media-tray-failure" msgstr "" #. TRANSLATORS: Input Media Tray Feed Error #: locale/ipp-strings.c:3102 msgid "printer-state-reasons.input-media-tray-feed-error" msgstr "" #. TRANSLATORS: Input Media Tray Jam #: locale/ipp-strings.c:3104 msgid "printer-state-reasons.input-media-tray-jam" msgstr "" #. TRANSLATORS: Input Media Type Change #: locale/ipp-strings.c:3106 msgid "printer-state-reasons.input-media-type-change" msgstr "" #. TRANSLATORS: Input Media Weight Change #: locale/ipp-strings.c:3108 msgid "printer-state-reasons.input-media-weight-change" msgstr "" #. TRANSLATORS: Input Pick Roller Failure #: locale/ipp-strings.c:3110 msgid "printer-state-reasons.input-pick-roller-failure" msgstr "" #. TRANSLATORS: Input Pick Roller Life Over #: locale/ipp-strings.c:3112 msgid "printer-state-reasons.input-pick-roller-life-over" msgstr "" #. TRANSLATORS: Input Pick Roller Life Warn #: locale/ipp-strings.c:3114 msgid "printer-state-reasons.input-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Input Pick Roller Missing #: locale/ipp-strings.c:3116 msgid "printer-state-reasons.input-pick-roller-missing" msgstr "" #. TRANSLATORS: Input Tray Elevation Failure #: locale/ipp-strings.c:3118 msgid "printer-state-reasons.input-tray-elevation-failure" msgstr "" #. TRANSLATORS: Paper tray is missing #: locale/ipp-strings.c:3120 msgid "printer-state-reasons.input-tray-missing" msgstr "" #. TRANSLATORS: Input Tray Position Failure #: locale/ipp-strings.c:3122 msgid "printer-state-reasons.input-tray-position-failure" msgstr "" #. TRANSLATORS: Inserter Added #: locale/ipp-strings.c:3124 msgid "printer-state-reasons.inserter-added" msgstr "" #. TRANSLATORS: Inserter Almost Empty #: locale/ipp-strings.c:3126 msgid "printer-state-reasons.inserter-almost-empty" msgstr "" #. TRANSLATORS: Inserter Almost Full #: locale/ipp-strings.c:3128 msgid "printer-state-reasons.inserter-almost-full" msgstr "" #. TRANSLATORS: Inserter At Limit #: locale/ipp-strings.c:3130 msgid "printer-state-reasons.inserter-at-limit" msgstr "" #. TRANSLATORS: Inserter Closed #: locale/ipp-strings.c:3132 msgid "printer-state-reasons.inserter-closed" msgstr "" #. TRANSLATORS: Inserter Configuration Change #: locale/ipp-strings.c:3134 msgid "printer-state-reasons.inserter-configuration-change" msgstr "" #. TRANSLATORS: Inserter Cover Closed #: locale/ipp-strings.c:3136 msgid "printer-state-reasons.inserter-cover-closed" msgstr "" #. TRANSLATORS: Inserter Cover Open #: locale/ipp-strings.c:3138 msgid "printer-state-reasons.inserter-cover-open" msgstr "" #. TRANSLATORS: Inserter Empty #: locale/ipp-strings.c:3140 msgid "printer-state-reasons.inserter-empty" msgstr "" #. TRANSLATORS: Inserter Full #: locale/ipp-strings.c:3142 msgid "printer-state-reasons.inserter-full" msgstr "" #. TRANSLATORS: Inserter Interlock Closed #: locale/ipp-strings.c:3144 msgid "printer-state-reasons.inserter-interlock-closed" msgstr "" #. TRANSLATORS: Inserter Interlock Open #: locale/ipp-strings.c:3146 msgid "printer-state-reasons.inserter-interlock-open" msgstr "" #. TRANSLATORS: Inserter Jam #: locale/ipp-strings.c:3148 msgid "printer-state-reasons.inserter-jam" msgstr "" #. TRANSLATORS: Inserter Life Almost Over #: locale/ipp-strings.c:3150 msgid "printer-state-reasons.inserter-life-almost-over" msgstr "" #. TRANSLATORS: Inserter Life Over #: locale/ipp-strings.c:3152 msgid "printer-state-reasons.inserter-life-over" msgstr "" #. TRANSLATORS: Inserter Memory Exhausted #: locale/ipp-strings.c:3154 msgid "printer-state-reasons.inserter-memory-exhausted" msgstr "" #. TRANSLATORS: Inserter Missing #: locale/ipp-strings.c:3156 msgid "printer-state-reasons.inserter-missing" msgstr "" #. TRANSLATORS: Inserter Motor Failure #: locale/ipp-strings.c:3158 msgid "printer-state-reasons.inserter-motor-failure" msgstr "" #. TRANSLATORS: Inserter Near Limit #: locale/ipp-strings.c:3160 msgid "printer-state-reasons.inserter-near-limit" msgstr "" #. TRANSLATORS: Inserter Offline #: locale/ipp-strings.c:3162 msgid "printer-state-reasons.inserter-offline" msgstr "" #. TRANSLATORS: Inserter Opened #: locale/ipp-strings.c:3164 msgid "printer-state-reasons.inserter-opened" msgstr "" #. TRANSLATORS: Inserter Over Temperature #: locale/ipp-strings.c:3166 msgid "printer-state-reasons.inserter-over-temperature" msgstr "" #. TRANSLATORS: Inserter Power Saver #: locale/ipp-strings.c:3168 msgid "printer-state-reasons.inserter-power-saver" msgstr "" #. TRANSLATORS: Inserter Recoverable Failure #: locale/ipp-strings.c:3170 msgid "printer-state-reasons.inserter-recoverable-failure" msgstr "" #. TRANSLATORS: Inserter Recoverable Storage #: locale/ipp-strings.c:3172 msgid "printer-state-reasons.inserter-recoverable-storage" msgstr "" #. TRANSLATORS: Inserter Removed #: locale/ipp-strings.c:3174 msgid "printer-state-reasons.inserter-removed" msgstr "" #. TRANSLATORS: Inserter Resource Added #: locale/ipp-strings.c:3176 msgid "printer-state-reasons.inserter-resource-added" msgstr "" #. TRANSLATORS: Inserter Resource Removed #: locale/ipp-strings.c:3178 msgid "printer-state-reasons.inserter-resource-removed" msgstr "" #. TRANSLATORS: Inserter Thermistor Failure #: locale/ipp-strings.c:3180 msgid "printer-state-reasons.inserter-thermistor-failure" msgstr "" #. TRANSLATORS: Inserter Timing Failure #: locale/ipp-strings.c:3182 msgid "printer-state-reasons.inserter-timing-failure" msgstr "" #. TRANSLATORS: Inserter Turned Off #: locale/ipp-strings.c:3184 msgid "printer-state-reasons.inserter-turned-off" msgstr "" #. TRANSLATORS: Inserter Turned On #: locale/ipp-strings.c:3186 msgid "printer-state-reasons.inserter-turned-on" msgstr "" #. TRANSLATORS: Inserter Under Temperature #: locale/ipp-strings.c:3188 msgid "printer-state-reasons.inserter-under-temperature" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Failure #: locale/ipp-strings.c:3190 msgid "printer-state-reasons.inserter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Inserter Unrecoverable Storage Error #: locale/ipp-strings.c:3192 msgid "printer-state-reasons.inserter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Inserter Warming Up #: locale/ipp-strings.c:3194 msgid "printer-state-reasons.inserter-warming-up" msgstr "" #. TRANSLATORS: Interlock Closed #: locale/ipp-strings.c:3196 msgid "printer-state-reasons.interlock-closed" msgstr "" #. TRANSLATORS: Interlock Open #: locale/ipp-strings.c:3198 msgid "printer-state-reasons.interlock-open" msgstr "" #. TRANSLATORS: Interpreter Cartridge Added #: locale/ipp-strings.c:3200 msgid "printer-state-reasons.interpreter-cartridge-added" msgstr "" #. TRANSLATORS: Interpreter Cartridge Removed #: locale/ipp-strings.c:3202 msgid "printer-state-reasons.interpreter-cartridge-deleted" msgstr "" #. TRANSLATORS: Interpreter Complex Page Encountered #: locale/ipp-strings.c:3204 msgid "printer-state-reasons.interpreter-complex-page-encountered" msgstr "" #. TRANSLATORS: Interpreter Memory Decrease #: locale/ipp-strings.c:3206 msgid "printer-state-reasons.interpreter-memory-decrease" msgstr "" #. TRANSLATORS: Interpreter Memory Increase #: locale/ipp-strings.c:3208 msgid "printer-state-reasons.interpreter-memory-increase" msgstr "" #. TRANSLATORS: Interpreter Resource Added #: locale/ipp-strings.c:3210 msgid "printer-state-reasons.interpreter-resource-added" msgstr "" #. TRANSLATORS: Interpreter Resource Deleted #: locale/ipp-strings.c:3212 msgid "printer-state-reasons.interpreter-resource-deleted" msgstr "" #. TRANSLATORS: Printer resource unavailable #: locale/ipp-strings.c:3214 msgid "printer-state-reasons.interpreter-resource-unavailable" msgstr "" #. TRANSLATORS: Lamp At End of Life #: locale/ipp-strings.c:3216 msgid "printer-state-reasons.lamp-at-eol" msgstr "" #. TRANSLATORS: Lamp Failure #: locale/ipp-strings.c:3218 msgid "printer-state-reasons.lamp-failure" msgstr "" #. TRANSLATORS: Lamp Near End of Life #: locale/ipp-strings.c:3220 msgid "printer-state-reasons.lamp-near-eol" msgstr "" #. TRANSLATORS: Laser At End of Life #: locale/ipp-strings.c:3222 msgid "printer-state-reasons.laser-at-eol" msgstr "" #. TRANSLATORS: Laser Failure #: locale/ipp-strings.c:3224 msgid "printer-state-reasons.laser-failure" msgstr "" #. TRANSLATORS: Laser Near End of Life #: locale/ipp-strings.c:3226 msgid "printer-state-reasons.laser-near-eol" msgstr "" #. TRANSLATORS: Envelope Maker Added #: locale/ipp-strings.c:3228 msgid "printer-state-reasons.make-envelope-added" msgstr "" #. TRANSLATORS: Envelope Maker Almost Empty #: locale/ipp-strings.c:3230 msgid "printer-state-reasons.make-envelope-almost-empty" msgstr "" #. TRANSLATORS: Envelope Maker Almost Full #: locale/ipp-strings.c:3232 msgid "printer-state-reasons.make-envelope-almost-full" msgstr "" #. TRANSLATORS: Envelope Maker At Limit #: locale/ipp-strings.c:3234 msgid "printer-state-reasons.make-envelope-at-limit" msgstr "" #. TRANSLATORS: Envelope Maker Closed #: locale/ipp-strings.c:3236 msgid "printer-state-reasons.make-envelope-closed" msgstr "" #. TRANSLATORS: Envelope Maker Configuration Change #: locale/ipp-strings.c:3238 msgid "printer-state-reasons.make-envelope-configuration-change" msgstr "" #. TRANSLATORS: Envelope Maker Cover Closed #: locale/ipp-strings.c:3240 msgid "printer-state-reasons.make-envelope-cover-closed" msgstr "" #. TRANSLATORS: Envelope Maker Cover Open #: locale/ipp-strings.c:3242 msgid "printer-state-reasons.make-envelope-cover-open" msgstr "" #. TRANSLATORS: Envelope Maker Empty #: locale/ipp-strings.c:3244 msgid "printer-state-reasons.make-envelope-empty" msgstr "" #. TRANSLATORS: Envelope Maker Full #: locale/ipp-strings.c:3246 msgid "printer-state-reasons.make-envelope-full" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Closed #: locale/ipp-strings.c:3248 msgid "printer-state-reasons.make-envelope-interlock-closed" msgstr "" #. TRANSLATORS: Envelope Maker Interlock Open #: locale/ipp-strings.c:3250 msgid "printer-state-reasons.make-envelope-interlock-open" msgstr "" #. TRANSLATORS: Envelope Maker Jam #: locale/ipp-strings.c:3252 msgid "printer-state-reasons.make-envelope-jam" msgstr "" #. TRANSLATORS: Envelope Maker Life Almost Over #: locale/ipp-strings.c:3254 msgid "printer-state-reasons.make-envelope-life-almost-over" msgstr "" #. TRANSLATORS: Envelope Maker Life Over #: locale/ipp-strings.c:3256 msgid "printer-state-reasons.make-envelope-life-over" msgstr "" #. TRANSLATORS: Envelope Maker Memory Exhausted #: locale/ipp-strings.c:3258 msgid "printer-state-reasons.make-envelope-memory-exhausted" msgstr "" #. TRANSLATORS: Envelope Maker Missing #: locale/ipp-strings.c:3260 msgid "printer-state-reasons.make-envelope-missing" msgstr "" #. TRANSLATORS: Envelope Maker Motor Failure #: locale/ipp-strings.c:3262 msgid "printer-state-reasons.make-envelope-motor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Near Limit #: locale/ipp-strings.c:3264 msgid "printer-state-reasons.make-envelope-near-limit" msgstr "" #. TRANSLATORS: Envelope Maker Offline #: locale/ipp-strings.c:3266 msgid "printer-state-reasons.make-envelope-offline" msgstr "" #. TRANSLATORS: Envelope Maker Opened #: locale/ipp-strings.c:3268 msgid "printer-state-reasons.make-envelope-opened" msgstr "" #. TRANSLATORS: Envelope Maker Over Temperature #: locale/ipp-strings.c:3270 msgid "printer-state-reasons.make-envelope-over-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Power Saver #: locale/ipp-strings.c:3272 msgid "printer-state-reasons.make-envelope-power-saver" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Failure #: locale/ipp-strings.c:3274 msgid "printer-state-reasons.make-envelope-recoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Recoverable Storage #: locale/ipp-strings.c:3276 msgid "printer-state-reasons.make-envelope-recoverable-storage" msgstr "" #. TRANSLATORS: Envelope Maker Removed #: locale/ipp-strings.c:3278 msgid "printer-state-reasons.make-envelope-removed" msgstr "" #. TRANSLATORS: Envelope Maker Resource Added #: locale/ipp-strings.c:3280 msgid "printer-state-reasons.make-envelope-resource-added" msgstr "" #. TRANSLATORS: Envelope Maker Resource Removed #: locale/ipp-strings.c:3282 msgid "printer-state-reasons.make-envelope-resource-removed" msgstr "" #. TRANSLATORS: Envelope Maker Thermistor Failure #: locale/ipp-strings.c:3284 msgid "printer-state-reasons.make-envelope-thermistor-failure" msgstr "" #. TRANSLATORS: Envelope Maker Timing Failure #: locale/ipp-strings.c:3286 msgid "printer-state-reasons.make-envelope-timing-failure" msgstr "" #. TRANSLATORS: Envelope Maker Turned Off #: locale/ipp-strings.c:3288 msgid "printer-state-reasons.make-envelope-turned-off" msgstr "" #. TRANSLATORS: Envelope Maker Turned On #: locale/ipp-strings.c:3290 msgid "printer-state-reasons.make-envelope-turned-on" msgstr "" #. TRANSLATORS: Envelope Maker Under Temperature #: locale/ipp-strings.c:3292 msgid "printer-state-reasons.make-envelope-under-temperature" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Failure #: locale/ipp-strings.c:3294 msgid "printer-state-reasons.make-envelope-unrecoverable-failure" msgstr "" #. TRANSLATORS: Envelope Maker Unrecoverable Storage Error #: locale/ipp-strings.c:3296 msgid "printer-state-reasons.make-envelope-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Envelope Maker Warming Up #: locale/ipp-strings.c:3298 msgid "printer-state-reasons.make-envelope-warming-up" msgstr "" #. TRANSLATORS: Marker Adjusting Print Quality #: locale/ipp-strings.c:3300 msgid "printer-state-reasons.marker-adjusting-print-quality" msgstr "" #. TRANSLATORS: Marker Cleaner Missing #: locale/ipp-strings.c:3302 msgid "printer-state-reasons.marker-cleaner-missing" msgstr "" #. TRANSLATORS: Marker Developer Almost Empty #: locale/ipp-strings.c:3304 msgid "printer-state-reasons.marker-developer-almost-empty" msgstr "" #. TRANSLATORS: Marker Developer Empty #: locale/ipp-strings.c:3306 msgid "printer-state-reasons.marker-developer-empty" msgstr "" #. TRANSLATORS: Marker Developer Missing #: locale/ipp-strings.c:3308 msgid "printer-state-reasons.marker-developer-missing" msgstr "" #. TRANSLATORS: Marker Fuser Missing #: locale/ipp-strings.c:3310 msgid "printer-state-reasons.marker-fuser-missing" msgstr "" #. TRANSLATORS: Marker Fuser Thermistor Failure #: locale/ipp-strings.c:3312 msgid "printer-state-reasons.marker-fuser-thermistor-failure" msgstr "" #. TRANSLATORS: Marker Fuser Timing Failure #: locale/ipp-strings.c:3314 msgid "printer-state-reasons.marker-fuser-timing-failure" msgstr "" #. TRANSLATORS: Marker Ink Almost Empty #: locale/ipp-strings.c:3316 msgid "printer-state-reasons.marker-ink-almost-empty" msgstr "" #. TRANSLATORS: Marker Ink Empty #: locale/ipp-strings.c:3318 msgid "printer-state-reasons.marker-ink-empty" msgstr "" #. TRANSLATORS: Marker Ink Missing #: locale/ipp-strings.c:3320 msgid "printer-state-reasons.marker-ink-missing" msgstr "" #. TRANSLATORS: Marker Opc Missing #: locale/ipp-strings.c:3322 msgid "printer-state-reasons.marker-opc-missing" msgstr "" #. TRANSLATORS: Marker Print Ribbon Almost Empty #: locale/ipp-strings.c:3324 msgid "printer-state-reasons.marker-print-ribbon-almost-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Empty #: locale/ipp-strings.c:3326 msgid "printer-state-reasons.marker-print-ribbon-empty" msgstr "" #. TRANSLATORS: Marker Print Ribbon Missing #: locale/ipp-strings.c:3328 msgid "printer-state-reasons.marker-print-ribbon-missing" msgstr "" #. TRANSLATORS: Marker Supply Almost Empty #: locale/ipp-strings.c:3330 msgid "printer-state-reasons.marker-supply-almost-empty" msgstr "" #. TRANSLATORS: Ink/toner empty #: locale/ipp-strings.c:3332 msgid "printer-state-reasons.marker-supply-empty" msgstr "" #. TRANSLATORS: Ink/toner low #: locale/ipp-strings.c:3334 msgid "printer-state-reasons.marker-supply-low" msgstr "" #. TRANSLATORS: Marker Supply Missing #: locale/ipp-strings.c:3336 msgid "printer-state-reasons.marker-supply-missing" msgstr "" #. TRANSLATORS: Marker Toner Cartridge Missing #: locale/ipp-strings.c:3338 msgid "printer-state-reasons.marker-toner-cartridge-missing" msgstr "" #. TRANSLATORS: Marker Toner Missing #: locale/ipp-strings.c:3340 msgid "printer-state-reasons.marker-toner-missing" msgstr "" #. TRANSLATORS: Ink/toner waste bin almost full #: locale/ipp-strings.c:3342 msgid "printer-state-reasons.marker-waste-almost-full" msgstr "" #. TRANSLATORS: Ink/toner waste bin full #: locale/ipp-strings.c:3344 msgid "printer-state-reasons.marker-waste-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Almost Full #: locale/ipp-strings.c:3346 msgid "printer-state-reasons.marker-waste-ink-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Full #: locale/ipp-strings.c:3348 msgid "printer-state-reasons.marker-waste-ink-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Ink Receptacle Missing #: locale/ipp-strings.c:3350 msgid "printer-state-reasons.marker-waste-ink-receptacle-missing" msgstr "" #. TRANSLATORS: Marker Waste Missing #: locale/ipp-strings.c:3352 msgid "printer-state-reasons.marker-waste-missing" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Almost Full #: locale/ipp-strings.c:3354 msgid "printer-state-reasons.marker-waste-toner-receptacle-almost-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Full #: locale/ipp-strings.c:3356 msgid "printer-state-reasons.marker-waste-toner-receptacle-full" msgstr "" #. TRANSLATORS: Marker Waste Toner Receptacle Missing #: locale/ipp-strings.c:3358 msgid "printer-state-reasons.marker-waste-toner-receptacle-missing" msgstr "" #. TRANSLATORS: Material Empty #: locale/ipp-strings.c:3360 msgid "printer-state-reasons.material-empty" msgstr "" #. TRANSLATORS: Material Low #: locale/ipp-strings.c:3362 msgid "printer-state-reasons.material-low" msgstr "" #. TRANSLATORS: Material Needed #: locale/ipp-strings.c:3364 msgid "printer-state-reasons.material-needed" msgstr "" #. TRANSLATORS: Media Drying #: locale/ipp-strings.c:3366 msgid "printer-state-reasons.media-drying" msgstr "" #. TRANSLATORS: Paper tray is empty #: locale/ipp-strings.c:3368 msgid "printer-state-reasons.media-empty" msgstr "" #. TRANSLATORS: Paper jam #: locale/ipp-strings.c:3370 msgid "printer-state-reasons.media-jam" msgstr "" #. TRANSLATORS: Paper tray is almost empty #: locale/ipp-strings.c:3372 msgid "printer-state-reasons.media-low" msgstr "" #. TRANSLATORS: Load paper #: locale/ipp-strings.c:3374 msgid "printer-state-reasons.media-needed" msgstr "" #. TRANSLATORS: Media Path Cannot Do 2-Sided Printing #: locale/ipp-strings.c:3376 msgid "printer-state-reasons.media-path-cannot-duplex-media-selected" msgstr "" #. TRANSLATORS: Media Path Failure #: locale/ipp-strings.c:3378 msgid "printer-state-reasons.media-path-failure" msgstr "" #. TRANSLATORS: Media Path Input Empty #: locale/ipp-strings.c:3380 msgid "printer-state-reasons.media-path-input-empty" msgstr "" #. TRANSLATORS: Media Path Input Feed Error #: locale/ipp-strings.c:3382 msgid "printer-state-reasons.media-path-input-feed-error" msgstr "" #. TRANSLATORS: Media Path Input Jam #: locale/ipp-strings.c:3384 msgid "printer-state-reasons.media-path-input-jam" msgstr "" #. TRANSLATORS: Media Path Input Request #: locale/ipp-strings.c:3386 msgid "printer-state-reasons.media-path-input-request" msgstr "" #. TRANSLATORS: Media Path Jam #: locale/ipp-strings.c:3388 msgid "printer-state-reasons.media-path-jam" msgstr "" #. TRANSLATORS: Media Path Media Tray Almost Full #: locale/ipp-strings.c:3390 msgid "printer-state-reasons.media-path-media-tray-almost-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Full #: locale/ipp-strings.c:3392 msgid "printer-state-reasons.media-path-media-tray-full" msgstr "" #. TRANSLATORS: Media Path Media Tray Missing #: locale/ipp-strings.c:3394 msgid "printer-state-reasons.media-path-media-tray-missing" msgstr "" #. TRANSLATORS: Media Path Output Feed Error #: locale/ipp-strings.c:3396 msgid "printer-state-reasons.media-path-output-feed-error" msgstr "" #. TRANSLATORS: Media Path Output Full #: locale/ipp-strings.c:3398 msgid "printer-state-reasons.media-path-output-full" msgstr "" #. TRANSLATORS: Media Path Output Jam #: locale/ipp-strings.c:3400 msgid "printer-state-reasons.media-path-output-jam" msgstr "" #. TRANSLATORS: Media Path Pick Roller Failure #: locale/ipp-strings.c:3402 msgid "printer-state-reasons.media-path-pick-roller-failure" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Over #: locale/ipp-strings.c:3404 msgid "printer-state-reasons.media-path-pick-roller-life-over" msgstr "" #. TRANSLATORS: Media Path Pick Roller Life Warn #: locale/ipp-strings.c:3406 msgid "printer-state-reasons.media-path-pick-roller-life-warn" msgstr "" #. TRANSLATORS: Media Path Pick Roller Missing #: locale/ipp-strings.c:3408 msgid "printer-state-reasons.media-path-pick-roller-missing" msgstr "" #. TRANSLATORS: Motor Failure #: locale/ipp-strings.c:3410 msgid "printer-state-reasons.motor-failure" msgstr "" #. TRANSLATORS: Printer going offline #: locale/ipp-strings.c:3412 msgid "printer-state-reasons.moving-to-paused" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:3414 msgid "printer-state-reasons.none" msgstr "" #. TRANSLATORS: Optical Photoconductor Life Over #: locale/ipp-strings.c:3416 msgid "printer-state-reasons.opc-life-over" msgstr "" #. TRANSLATORS: OPC almost at end-of-life #: locale/ipp-strings.c:3418 msgid "printer-state-reasons.opc-near-eol" msgstr "" #. TRANSLATORS: Check the printer for errors #: locale/ipp-strings.c:3420 msgid "printer-state-reasons.other" msgstr "" #. TRANSLATORS: Output bin is almost full #: locale/ipp-strings.c:3422 msgid "printer-state-reasons.output-area-almost-full" msgstr "" #. TRANSLATORS: Output bin is full #: locale/ipp-strings.c:3424 msgid "printer-state-reasons.output-area-full" msgstr "" #. TRANSLATORS: Output Mailbox Select Failure #: locale/ipp-strings.c:3426 msgid "printer-state-reasons.output-mailbox-select-failure" msgstr "" #. TRANSLATORS: Output Media Tray Failure #: locale/ipp-strings.c:3428 msgid "printer-state-reasons.output-media-tray-failure" msgstr "" #. TRANSLATORS: Output Media Tray Feed Error #: locale/ipp-strings.c:3430 msgid "printer-state-reasons.output-media-tray-feed-error" msgstr "" #. TRANSLATORS: Output Media Tray Jam #: locale/ipp-strings.c:3432 msgid "printer-state-reasons.output-media-tray-jam" msgstr "" #. TRANSLATORS: Output tray is missing #: locale/ipp-strings.c:3434 msgid "printer-state-reasons.output-tray-missing" msgstr "" #. TRANSLATORS: Paused #: locale/ipp-strings.c:3436 msgid "printer-state-reasons.paused" msgstr "" #. TRANSLATORS: Perforater Added #: locale/ipp-strings.c:3438 msgid "printer-state-reasons.perforater-added" msgstr "" #. TRANSLATORS: Perforater Almost Empty #: locale/ipp-strings.c:3440 msgid "printer-state-reasons.perforater-almost-empty" msgstr "" #. TRANSLATORS: Perforater Almost Full #: locale/ipp-strings.c:3442 msgid "printer-state-reasons.perforater-almost-full" msgstr "" #. TRANSLATORS: Perforater At Limit #: locale/ipp-strings.c:3444 msgid "printer-state-reasons.perforater-at-limit" msgstr "" #. TRANSLATORS: Perforater Closed #: locale/ipp-strings.c:3446 msgid "printer-state-reasons.perforater-closed" msgstr "" #. TRANSLATORS: Perforater Configuration Change #: locale/ipp-strings.c:3448 msgid "printer-state-reasons.perforater-configuration-change" msgstr "" #. TRANSLATORS: Perforater Cover Closed #: locale/ipp-strings.c:3450 msgid "printer-state-reasons.perforater-cover-closed" msgstr "" #. TRANSLATORS: Perforater Cover Open #: locale/ipp-strings.c:3452 msgid "printer-state-reasons.perforater-cover-open" msgstr "" #. TRANSLATORS: Perforater Empty #: locale/ipp-strings.c:3454 msgid "printer-state-reasons.perforater-empty" msgstr "" #. TRANSLATORS: Perforater Full #: locale/ipp-strings.c:3456 msgid "printer-state-reasons.perforater-full" msgstr "" #. TRANSLATORS: Perforater Interlock Closed #: locale/ipp-strings.c:3458 msgid "printer-state-reasons.perforater-interlock-closed" msgstr "" #. TRANSLATORS: Perforater Interlock Open #: locale/ipp-strings.c:3460 msgid "printer-state-reasons.perforater-interlock-open" msgstr "" #. TRANSLATORS: Perforater Jam #: locale/ipp-strings.c:3462 msgid "printer-state-reasons.perforater-jam" msgstr "" #. TRANSLATORS: Perforater Life Almost Over #: locale/ipp-strings.c:3464 msgid "printer-state-reasons.perforater-life-almost-over" msgstr "" #. TRANSLATORS: Perforater Life Over #: locale/ipp-strings.c:3466 msgid "printer-state-reasons.perforater-life-over" msgstr "" #. TRANSLATORS: Perforater Memory Exhausted #: locale/ipp-strings.c:3468 msgid "printer-state-reasons.perforater-memory-exhausted" msgstr "" #. TRANSLATORS: Perforater Missing #: locale/ipp-strings.c:3470 msgid "printer-state-reasons.perforater-missing" msgstr "" #. TRANSLATORS: Perforater Motor Failure #: locale/ipp-strings.c:3472 msgid "printer-state-reasons.perforater-motor-failure" msgstr "" #. TRANSLATORS: Perforater Near Limit #: locale/ipp-strings.c:3474 msgid "printer-state-reasons.perforater-near-limit" msgstr "" #. TRANSLATORS: Perforater Offline #: locale/ipp-strings.c:3476 msgid "printer-state-reasons.perforater-offline" msgstr "" #. TRANSLATORS: Perforater Opened #: locale/ipp-strings.c:3478 msgid "printer-state-reasons.perforater-opened" msgstr "" #. TRANSLATORS: Perforater Over Temperature #: locale/ipp-strings.c:3480 msgid "printer-state-reasons.perforater-over-temperature" msgstr "" #. TRANSLATORS: Perforater Power Saver #: locale/ipp-strings.c:3482 msgid "printer-state-reasons.perforater-power-saver" msgstr "" #. TRANSLATORS: Perforater Recoverable Failure #: locale/ipp-strings.c:3484 msgid "printer-state-reasons.perforater-recoverable-failure" msgstr "" #. TRANSLATORS: Perforater Recoverable Storage #: locale/ipp-strings.c:3486 msgid "printer-state-reasons.perforater-recoverable-storage" msgstr "" #. TRANSLATORS: Perforater Removed #: locale/ipp-strings.c:3488 msgid "printer-state-reasons.perforater-removed" msgstr "" #. TRANSLATORS: Perforater Resource Added #: locale/ipp-strings.c:3490 msgid "printer-state-reasons.perforater-resource-added" msgstr "" #. TRANSLATORS: Perforater Resource Removed #: locale/ipp-strings.c:3492 msgid "printer-state-reasons.perforater-resource-removed" msgstr "" #. TRANSLATORS: Perforater Thermistor Failure #: locale/ipp-strings.c:3494 msgid "printer-state-reasons.perforater-thermistor-failure" msgstr "" #. TRANSLATORS: Perforater Timing Failure #: locale/ipp-strings.c:3496 msgid "printer-state-reasons.perforater-timing-failure" msgstr "" #. TRANSLATORS: Perforater Turned Off #: locale/ipp-strings.c:3498 msgid "printer-state-reasons.perforater-turned-off" msgstr "" #. TRANSLATORS: Perforater Turned On #: locale/ipp-strings.c:3500 msgid "printer-state-reasons.perforater-turned-on" msgstr "" #. TRANSLATORS: Perforater Under Temperature #: locale/ipp-strings.c:3502 msgid "printer-state-reasons.perforater-under-temperature" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Failure #: locale/ipp-strings.c:3504 msgid "printer-state-reasons.perforater-unrecoverable-failure" msgstr "" #. TRANSLATORS: Perforater Unrecoverable Storage Error #: locale/ipp-strings.c:3506 msgid "printer-state-reasons.perforater-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Perforater Warming Up #: locale/ipp-strings.c:3508 msgid "printer-state-reasons.perforater-warming-up" msgstr "" #. TRANSLATORS: Platform Cooling #: locale/ipp-strings.c:3510 msgid "printer-state-reasons.platform-cooling" msgstr "" #. TRANSLATORS: Platform Failure #: locale/ipp-strings.c:3512 msgid "printer-state-reasons.platform-failure" msgstr "" #. TRANSLATORS: Platform Heating #: locale/ipp-strings.c:3514 msgid "printer-state-reasons.platform-heating" msgstr "" #. TRANSLATORS: Platform Temperature High #: locale/ipp-strings.c:3516 msgid "printer-state-reasons.platform-temperature-high" msgstr "" #. TRANSLATORS: Platform Temperature Low #: locale/ipp-strings.c:3518 msgid "printer-state-reasons.platform-temperature-low" msgstr "" #. TRANSLATORS: Power Down #: locale/ipp-strings.c:3520 msgid "printer-state-reasons.power-down" msgstr "" #. TRANSLATORS: Power Up #: locale/ipp-strings.c:3522 msgid "printer-state-reasons.power-up" msgstr "" #. TRANSLATORS: Printer Reset Manually #: locale/ipp-strings.c:3524 msgid "printer-state-reasons.printer-manual-reset" msgstr "" #. TRANSLATORS: Printer Reset Remotely #: locale/ipp-strings.c:3526 msgid "printer-state-reasons.printer-nms-reset" msgstr "" #. TRANSLATORS: Printer Ready To Print #: locale/ipp-strings.c:3528 msgid "printer-state-reasons.printer-ready-to-print" msgstr "" #. TRANSLATORS: Puncher Added #: locale/ipp-strings.c:3530 msgid "printer-state-reasons.puncher-added" msgstr "" #. TRANSLATORS: Puncher Almost Empty #: locale/ipp-strings.c:3532 msgid "printer-state-reasons.puncher-almost-empty" msgstr "" #. TRANSLATORS: Puncher Almost Full #: locale/ipp-strings.c:3534 msgid "printer-state-reasons.puncher-almost-full" msgstr "" #. TRANSLATORS: Puncher At Limit #: locale/ipp-strings.c:3536 msgid "printer-state-reasons.puncher-at-limit" msgstr "" #. TRANSLATORS: Puncher Closed #: locale/ipp-strings.c:3538 msgid "printer-state-reasons.puncher-closed" msgstr "" #. TRANSLATORS: Puncher Configuration Change #: locale/ipp-strings.c:3540 msgid "printer-state-reasons.puncher-configuration-change" msgstr "" #. TRANSLATORS: Puncher Cover Closed #: locale/ipp-strings.c:3542 msgid "printer-state-reasons.puncher-cover-closed" msgstr "" #. TRANSLATORS: Puncher Cover Open #: locale/ipp-strings.c:3544 msgid "printer-state-reasons.puncher-cover-open" msgstr "" #. TRANSLATORS: Puncher Empty #: locale/ipp-strings.c:3546 msgid "printer-state-reasons.puncher-empty" msgstr "" #. TRANSLATORS: Puncher Full #: locale/ipp-strings.c:3548 msgid "printer-state-reasons.puncher-full" msgstr "" #. TRANSLATORS: Puncher Interlock Closed #: locale/ipp-strings.c:3550 msgid "printer-state-reasons.puncher-interlock-closed" msgstr "" #. TRANSLATORS: Puncher Interlock Open #: locale/ipp-strings.c:3552 msgid "printer-state-reasons.puncher-interlock-open" msgstr "" #. TRANSLATORS: Puncher Jam #: locale/ipp-strings.c:3554 msgid "printer-state-reasons.puncher-jam" msgstr "" #. TRANSLATORS: Puncher Life Almost Over #: locale/ipp-strings.c:3556 msgid "printer-state-reasons.puncher-life-almost-over" msgstr "" #. TRANSLATORS: Puncher Life Over #: locale/ipp-strings.c:3558 msgid "printer-state-reasons.puncher-life-over" msgstr "" #. TRANSLATORS: Puncher Memory Exhausted #: locale/ipp-strings.c:3560 msgid "printer-state-reasons.puncher-memory-exhausted" msgstr "" #. TRANSLATORS: Puncher Missing #: locale/ipp-strings.c:3562 msgid "printer-state-reasons.puncher-missing" msgstr "" #. TRANSLATORS: Puncher Motor Failure #: locale/ipp-strings.c:3564 msgid "printer-state-reasons.puncher-motor-failure" msgstr "" #. TRANSLATORS: Puncher Near Limit #: locale/ipp-strings.c:3566 msgid "printer-state-reasons.puncher-near-limit" msgstr "" #. TRANSLATORS: Puncher Offline #: locale/ipp-strings.c:3568 msgid "printer-state-reasons.puncher-offline" msgstr "" #. TRANSLATORS: Puncher Opened #: locale/ipp-strings.c:3570 msgid "printer-state-reasons.puncher-opened" msgstr "" #. TRANSLATORS: Puncher Over Temperature #: locale/ipp-strings.c:3572 msgid "printer-state-reasons.puncher-over-temperature" msgstr "" #. TRANSLATORS: Puncher Power Saver #: locale/ipp-strings.c:3574 msgid "printer-state-reasons.puncher-power-saver" msgstr "" #. TRANSLATORS: Puncher Recoverable Failure #: locale/ipp-strings.c:3576 msgid "printer-state-reasons.puncher-recoverable-failure" msgstr "" #. TRANSLATORS: Puncher Recoverable Storage #: locale/ipp-strings.c:3578 msgid "printer-state-reasons.puncher-recoverable-storage" msgstr "" #. TRANSLATORS: Puncher Removed #: locale/ipp-strings.c:3580 msgid "printer-state-reasons.puncher-removed" msgstr "" #. TRANSLATORS: Puncher Resource Added #: locale/ipp-strings.c:3582 msgid "printer-state-reasons.puncher-resource-added" msgstr "" #. TRANSLATORS: Puncher Resource Removed #: locale/ipp-strings.c:3584 msgid "printer-state-reasons.puncher-resource-removed" msgstr "" #. TRANSLATORS: Puncher Thermistor Failure #: locale/ipp-strings.c:3586 msgid "printer-state-reasons.puncher-thermistor-failure" msgstr "" #. TRANSLATORS: Puncher Timing Failure #: locale/ipp-strings.c:3588 msgid "printer-state-reasons.puncher-timing-failure" msgstr "" #. TRANSLATORS: Puncher Turned Off #: locale/ipp-strings.c:3590 msgid "printer-state-reasons.puncher-turned-off" msgstr "" #. TRANSLATORS: Puncher Turned On #: locale/ipp-strings.c:3592 msgid "printer-state-reasons.puncher-turned-on" msgstr "" #. TRANSLATORS: Puncher Under Temperature #: locale/ipp-strings.c:3594 msgid "printer-state-reasons.puncher-under-temperature" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Failure #: locale/ipp-strings.c:3596 msgid "printer-state-reasons.puncher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Puncher Unrecoverable Storage Error #: locale/ipp-strings.c:3598 msgid "printer-state-reasons.puncher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Puncher Warming Up #: locale/ipp-strings.c:3600 msgid "printer-state-reasons.puncher-warming-up" msgstr "" #. TRANSLATORS: Separation Cutter Added #: locale/ipp-strings.c:3602 msgid "printer-state-reasons.separation-cutter-added" msgstr "" #. TRANSLATORS: Separation Cutter Almost Empty #: locale/ipp-strings.c:3604 msgid "printer-state-reasons.separation-cutter-almost-empty" msgstr "" #. TRANSLATORS: Separation Cutter Almost Full #: locale/ipp-strings.c:3606 msgid "printer-state-reasons.separation-cutter-almost-full" msgstr "" #. TRANSLATORS: Separation Cutter At Limit #: locale/ipp-strings.c:3608 msgid "printer-state-reasons.separation-cutter-at-limit" msgstr "" #. TRANSLATORS: Separation Cutter Closed #: locale/ipp-strings.c:3610 msgid "printer-state-reasons.separation-cutter-closed" msgstr "" #. TRANSLATORS: Separation Cutter Configuration Change #: locale/ipp-strings.c:3612 msgid "printer-state-reasons.separation-cutter-configuration-change" msgstr "" #. TRANSLATORS: Separation Cutter Cover Closed #: locale/ipp-strings.c:3614 msgid "printer-state-reasons.separation-cutter-cover-closed" msgstr "" #. TRANSLATORS: Separation Cutter Cover Open #: locale/ipp-strings.c:3616 msgid "printer-state-reasons.separation-cutter-cover-open" msgstr "" #. TRANSLATORS: Separation Cutter Empty #: locale/ipp-strings.c:3618 msgid "printer-state-reasons.separation-cutter-empty" msgstr "" #. TRANSLATORS: Separation Cutter Full #: locale/ipp-strings.c:3620 msgid "printer-state-reasons.separation-cutter-full" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Closed #: locale/ipp-strings.c:3622 msgid "printer-state-reasons.separation-cutter-interlock-closed" msgstr "" #. TRANSLATORS: Separation Cutter Interlock Open #: locale/ipp-strings.c:3624 msgid "printer-state-reasons.separation-cutter-interlock-open" msgstr "" #. TRANSLATORS: Separation Cutter Jam #: locale/ipp-strings.c:3626 msgid "printer-state-reasons.separation-cutter-jam" msgstr "" #. TRANSLATORS: Separation Cutter Life Almost Over #: locale/ipp-strings.c:3628 msgid "printer-state-reasons.separation-cutter-life-almost-over" msgstr "" #. TRANSLATORS: Separation Cutter Life Over #: locale/ipp-strings.c:3630 msgid "printer-state-reasons.separation-cutter-life-over" msgstr "" #. TRANSLATORS: Separation Cutter Memory Exhausted #: locale/ipp-strings.c:3632 msgid "printer-state-reasons.separation-cutter-memory-exhausted" msgstr "" #. TRANSLATORS: Separation Cutter Missing #: locale/ipp-strings.c:3634 msgid "printer-state-reasons.separation-cutter-missing" msgstr "" #. TRANSLATORS: Separation Cutter Motor Failure #: locale/ipp-strings.c:3636 msgid "printer-state-reasons.separation-cutter-motor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Near Limit #: locale/ipp-strings.c:3638 msgid "printer-state-reasons.separation-cutter-near-limit" msgstr "" #. TRANSLATORS: Separation Cutter Offline #: locale/ipp-strings.c:3640 msgid "printer-state-reasons.separation-cutter-offline" msgstr "" #. TRANSLATORS: Separation Cutter Opened #: locale/ipp-strings.c:3642 msgid "printer-state-reasons.separation-cutter-opened" msgstr "" #. TRANSLATORS: Separation Cutter Over Temperature #: locale/ipp-strings.c:3644 msgid "printer-state-reasons.separation-cutter-over-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Power Saver #: locale/ipp-strings.c:3646 msgid "printer-state-reasons.separation-cutter-power-saver" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Failure #: locale/ipp-strings.c:3648 msgid "printer-state-reasons.separation-cutter-recoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Recoverable Storage #: locale/ipp-strings.c:3650 msgid "printer-state-reasons.separation-cutter-recoverable-storage" msgstr "" #. TRANSLATORS: Separation Cutter Removed #: locale/ipp-strings.c:3652 msgid "printer-state-reasons.separation-cutter-removed" msgstr "" #. TRANSLATORS: Separation Cutter Resource Added #: locale/ipp-strings.c:3654 msgid "printer-state-reasons.separation-cutter-resource-added" msgstr "" #. TRANSLATORS: Separation Cutter Resource Removed #: locale/ipp-strings.c:3656 msgid "printer-state-reasons.separation-cutter-resource-removed" msgstr "" #. TRANSLATORS: Separation Cutter Thermistor Failure #: locale/ipp-strings.c:3658 msgid "printer-state-reasons.separation-cutter-thermistor-failure" msgstr "" #. TRANSLATORS: Separation Cutter Timing Failure #: locale/ipp-strings.c:3660 msgid "printer-state-reasons.separation-cutter-timing-failure" msgstr "" #. TRANSLATORS: Separation Cutter Turned Off #: locale/ipp-strings.c:3662 msgid "printer-state-reasons.separation-cutter-turned-off" msgstr "" #. TRANSLATORS: Separation Cutter Turned On #: locale/ipp-strings.c:3664 msgid "printer-state-reasons.separation-cutter-turned-on" msgstr "" #. TRANSLATORS: Separation Cutter Under Temperature #: locale/ipp-strings.c:3666 msgid "printer-state-reasons.separation-cutter-under-temperature" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Failure #: locale/ipp-strings.c:3668 msgid "printer-state-reasons.separation-cutter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Separation Cutter Unrecoverable Storage Error #: locale/ipp-strings.c:3670 msgid "printer-state-reasons.separation-cutter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Separation Cutter Warming Up #: locale/ipp-strings.c:3672 msgid "printer-state-reasons.separation-cutter-warming-up" msgstr "" #. TRANSLATORS: Sheet Rotator Added #: locale/ipp-strings.c:3674 msgid "printer-state-reasons.sheet-rotator-added" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Empty #: locale/ipp-strings.c:3676 msgid "printer-state-reasons.sheet-rotator-almost-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Almost Full #: locale/ipp-strings.c:3678 msgid "printer-state-reasons.sheet-rotator-almost-full" msgstr "" #. TRANSLATORS: Sheet Rotator At Limit #: locale/ipp-strings.c:3680 msgid "printer-state-reasons.sheet-rotator-at-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Closed #: locale/ipp-strings.c:3682 msgid "printer-state-reasons.sheet-rotator-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Configuration Change #: locale/ipp-strings.c:3684 msgid "printer-state-reasons.sheet-rotator-configuration-change" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Closed #: locale/ipp-strings.c:3686 msgid "printer-state-reasons.sheet-rotator-cover-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Cover Open #: locale/ipp-strings.c:3688 msgid "printer-state-reasons.sheet-rotator-cover-open" msgstr "" #. TRANSLATORS: Sheet Rotator Empty #: locale/ipp-strings.c:3690 msgid "printer-state-reasons.sheet-rotator-empty" msgstr "" #. TRANSLATORS: Sheet Rotator Full #: locale/ipp-strings.c:3692 msgid "printer-state-reasons.sheet-rotator-full" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Closed #: locale/ipp-strings.c:3694 msgid "printer-state-reasons.sheet-rotator-interlock-closed" msgstr "" #. TRANSLATORS: Sheet Rotator Interlock Open #: locale/ipp-strings.c:3696 msgid "printer-state-reasons.sheet-rotator-interlock-open" msgstr "" #. TRANSLATORS: Sheet Rotator Jam #: locale/ipp-strings.c:3698 msgid "printer-state-reasons.sheet-rotator-jam" msgstr "" #. TRANSLATORS: Sheet Rotator Life Almost Over #: locale/ipp-strings.c:3700 msgid "printer-state-reasons.sheet-rotator-life-almost-over" msgstr "" #. TRANSLATORS: Sheet Rotator Life Over #: locale/ipp-strings.c:3702 msgid "printer-state-reasons.sheet-rotator-life-over" msgstr "" #. TRANSLATORS: Sheet Rotator Memory Exhausted #: locale/ipp-strings.c:3704 msgid "printer-state-reasons.sheet-rotator-memory-exhausted" msgstr "" #. TRANSLATORS: Sheet Rotator Missing #: locale/ipp-strings.c:3706 msgid "printer-state-reasons.sheet-rotator-missing" msgstr "" #. TRANSLATORS: Sheet Rotator Motor Failure #: locale/ipp-strings.c:3708 msgid "printer-state-reasons.sheet-rotator-motor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Near Limit #: locale/ipp-strings.c:3710 msgid "printer-state-reasons.sheet-rotator-near-limit" msgstr "" #. TRANSLATORS: Sheet Rotator Offline #: locale/ipp-strings.c:3712 msgid "printer-state-reasons.sheet-rotator-offline" msgstr "" #. TRANSLATORS: Sheet Rotator Opened #: locale/ipp-strings.c:3714 msgid "printer-state-reasons.sheet-rotator-opened" msgstr "" #. TRANSLATORS: Sheet Rotator Over Temperature #: locale/ipp-strings.c:3716 msgid "printer-state-reasons.sheet-rotator-over-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Power Saver #: locale/ipp-strings.c:3718 msgid "printer-state-reasons.sheet-rotator-power-saver" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Failure #: locale/ipp-strings.c:3720 msgid "printer-state-reasons.sheet-rotator-recoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Recoverable Storage #: locale/ipp-strings.c:3722 msgid "printer-state-reasons.sheet-rotator-recoverable-storage" msgstr "" #. TRANSLATORS: Sheet Rotator Removed #: locale/ipp-strings.c:3724 msgid "printer-state-reasons.sheet-rotator-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Added #: locale/ipp-strings.c:3726 msgid "printer-state-reasons.sheet-rotator-resource-added" msgstr "" #. TRANSLATORS: Sheet Rotator Resource Removed #: locale/ipp-strings.c:3728 msgid "printer-state-reasons.sheet-rotator-resource-removed" msgstr "" #. TRANSLATORS: Sheet Rotator Thermistor Failure #: locale/ipp-strings.c:3730 msgid "printer-state-reasons.sheet-rotator-thermistor-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Timing Failure #: locale/ipp-strings.c:3732 msgid "printer-state-reasons.sheet-rotator-timing-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Turned Off #: locale/ipp-strings.c:3734 msgid "printer-state-reasons.sheet-rotator-turned-off" msgstr "" #. TRANSLATORS: Sheet Rotator Turned On #: locale/ipp-strings.c:3736 msgid "printer-state-reasons.sheet-rotator-turned-on" msgstr "" #. TRANSLATORS: Sheet Rotator Under Temperature #: locale/ipp-strings.c:3738 msgid "printer-state-reasons.sheet-rotator-under-temperature" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Failure #: locale/ipp-strings.c:3740 msgid "printer-state-reasons.sheet-rotator-unrecoverable-failure" msgstr "" #. TRANSLATORS: Sheet Rotator Unrecoverable Storage Error #: locale/ipp-strings.c:3742 msgid "printer-state-reasons.sheet-rotator-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Sheet Rotator Warming Up #: locale/ipp-strings.c:3744 msgid "printer-state-reasons.sheet-rotator-warming-up" msgstr "" #. TRANSLATORS: Printer offline #: locale/ipp-strings.c:3746 msgid "printer-state-reasons.shutdown" msgstr "" #. TRANSLATORS: Slitter Added #: locale/ipp-strings.c:3748 msgid "printer-state-reasons.slitter-added" msgstr "" #. TRANSLATORS: Slitter Almost Empty #: locale/ipp-strings.c:3750 msgid "printer-state-reasons.slitter-almost-empty" msgstr "" #. TRANSLATORS: Slitter Almost Full #: locale/ipp-strings.c:3752 msgid "printer-state-reasons.slitter-almost-full" msgstr "" #. TRANSLATORS: Slitter At Limit #: locale/ipp-strings.c:3754 msgid "printer-state-reasons.slitter-at-limit" msgstr "" #. TRANSLATORS: Slitter Closed #: locale/ipp-strings.c:3756 msgid "printer-state-reasons.slitter-closed" msgstr "" #. TRANSLATORS: Slitter Configuration Change #: locale/ipp-strings.c:3758 msgid "printer-state-reasons.slitter-configuration-change" msgstr "" #. TRANSLATORS: Slitter Cover Closed #: locale/ipp-strings.c:3760 msgid "printer-state-reasons.slitter-cover-closed" msgstr "" #. TRANSLATORS: Slitter Cover Open #: locale/ipp-strings.c:3762 msgid "printer-state-reasons.slitter-cover-open" msgstr "" #. TRANSLATORS: Slitter Empty #: locale/ipp-strings.c:3764 msgid "printer-state-reasons.slitter-empty" msgstr "" #. TRANSLATORS: Slitter Full #: locale/ipp-strings.c:3766 msgid "printer-state-reasons.slitter-full" msgstr "" #. TRANSLATORS: Slitter Interlock Closed #: locale/ipp-strings.c:3768 msgid "printer-state-reasons.slitter-interlock-closed" msgstr "" #. TRANSLATORS: Slitter Interlock Open #: locale/ipp-strings.c:3770 msgid "printer-state-reasons.slitter-interlock-open" msgstr "" #. TRANSLATORS: Slitter Jam #: locale/ipp-strings.c:3772 msgid "printer-state-reasons.slitter-jam" msgstr "" #. TRANSLATORS: Slitter Life Almost Over #: locale/ipp-strings.c:3774 msgid "printer-state-reasons.slitter-life-almost-over" msgstr "" #. TRANSLATORS: Slitter Life Over #: locale/ipp-strings.c:3776 msgid "printer-state-reasons.slitter-life-over" msgstr "" #. TRANSLATORS: Slitter Memory Exhausted #: locale/ipp-strings.c:3778 msgid "printer-state-reasons.slitter-memory-exhausted" msgstr "" #. TRANSLATORS: Slitter Missing #: locale/ipp-strings.c:3780 msgid "printer-state-reasons.slitter-missing" msgstr "" #. TRANSLATORS: Slitter Motor Failure #: locale/ipp-strings.c:3782 msgid "printer-state-reasons.slitter-motor-failure" msgstr "" #. TRANSLATORS: Slitter Near Limit #: locale/ipp-strings.c:3784 msgid "printer-state-reasons.slitter-near-limit" msgstr "" #. TRANSLATORS: Slitter Offline #: locale/ipp-strings.c:3786 msgid "printer-state-reasons.slitter-offline" msgstr "" #. TRANSLATORS: Slitter Opened #: locale/ipp-strings.c:3788 msgid "printer-state-reasons.slitter-opened" msgstr "" #. TRANSLATORS: Slitter Over Temperature #: locale/ipp-strings.c:3790 msgid "printer-state-reasons.slitter-over-temperature" msgstr "" #. TRANSLATORS: Slitter Power Saver #: locale/ipp-strings.c:3792 msgid "printer-state-reasons.slitter-power-saver" msgstr "" #. TRANSLATORS: Slitter Recoverable Failure #: locale/ipp-strings.c:3794 msgid "printer-state-reasons.slitter-recoverable-failure" msgstr "" #. TRANSLATORS: Slitter Recoverable Storage #: locale/ipp-strings.c:3796 msgid "printer-state-reasons.slitter-recoverable-storage" msgstr "" #. TRANSLATORS: Slitter Removed #: locale/ipp-strings.c:3798 msgid "printer-state-reasons.slitter-removed" msgstr "" #. TRANSLATORS: Slitter Resource Added #: locale/ipp-strings.c:3800 msgid "printer-state-reasons.slitter-resource-added" msgstr "" #. TRANSLATORS: Slitter Resource Removed #: locale/ipp-strings.c:3802 msgid "printer-state-reasons.slitter-resource-removed" msgstr "" #. TRANSLATORS: Slitter Thermistor Failure #: locale/ipp-strings.c:3804 msgid "printer-state-reasons.slitter-thermistor-failure" msgstr "" #. TRANSLATORS: Slitter Timing Failure #: locale/ipp-strings.c:3806 msgid "printer-state-reasons.slitter-timing-failure" msgstr "" #. TRANSLATORS: Slitter Turned Off #: locale/ipp-strings.c:3808 msgid "printer-state-reasons.slitter-turned-off" msgstr "" #. TRANSLATORS: Slitter Turned On #: locale/ipp-strings.c:3810 msgid "printer-state-reasons.slitter-turned-on" msgstr "" #. TRANSLATORS: Slitter Under Temperature #: locale/ipp-strings.c:3812 msgid "printer-state-reasons.slitter-under-temperature" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Failure #: locale/ipp-strings.c:3814 msgid "printer-state-reasons.slitter-unrecoverable-failure" msgstr "" #. TRANSLATORS: Slitter Unrecoverable Storage Error #: locale/ipp-strings.c:3816 msgid "printer-state-reasons.slitter-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Slitter Warming Up #: locale/ipp-strings.c:3818 msgid "printer-state-reasons.slitter-warming-up" msgstr "" #. TRANSLATORS: Spool Area Full #: locale/ipp-strings.c:3820 msgid "printer-state-reasons.spool-area-full" msgstr "" #. TRANSLATORS: Stacker Added #: locale/ipp-strings.c:3822 msgid "printer-state-reasons.stacker-added" msgstr "" #. TRANSLATORS: Stacker Almost Empty #: locale/ipp-strings.c:3824 msgid "printer-state-reasons.stacker-almost-empty" msgstr "" #. TRANSLATORS: Stacker Almost Full #: locale/ipp-strings.c:3826 msgid "printer-state-reasons.stacker-almost-full" msgstr "" #. TRANSLATORS: Stacker At Limit #: locale/ipp-strings.c:3828 msgid "printer-state-reasons.stacker-at-limit" msgstr "" #. TRANSLATORS: Stacker Closed #: locale/ipp-strings.c:3830 msgid "printer-state-reasons.stacker-closed" msgstr "" #. TRANSLATORS: Stacker Configuration Change #: locale/ipp-strings.c:3832 msgid "printer-state-reasons.stacker-configuration-change" msgstr "" #. TRANSLATORS: Stacker Cover Closed #: locale/ipp-strings.c:3834 msgid "printer-state-reasons.stacker-cover-closed" msgstr "" #. TRANSLATORS: Stacker Cover Open #: locale/ipp-strings.c:3836 msgid "printer-state-reasons.stacker-cover-open" msgstr "" #. TRANSLATORS: Stacker Empty #: locale/ipp-strings.c:3838 msgid "printer-state-reasons.stacker-empty" msgstr "" #. TRANSLATORS: Stacker Full #: locale/ipp-strings.c:3840 msgid "printer-state-reasons.stacker-full" msgstr "" #. TRANSLATORS: Stacker Interlock Closed #: locale/ipp-strings.c:3842 msgid "printer-state-reasons.stacker-interlock-closed" msgstr "" #. TRANSLATORS: Stacker Interlock Open #: locale/ipp-strings.c:3844 msgid "printer-state-reasons.stacker-interlock-open" msgstr "" #. TRANSLATORS: Stacker Jam #: locale/ipp-strings.c:3846 msgid "printer-state-reasons.stacker-jam" msgstr "" #. TRANSLATORS: Stacker Life Almost Over #: locale/ipp-strings.c:3848 msgid "printer-state-reasons.stacker-life-almost-over" msgstr "" #. TRANSLATORS: Stacker Life Over #: locale/ipp-strings.c:3850 msgid "printer-state-reasons.stacker-life-over" msgstr "" #. TRANSLATORS: Stacker Memory Exhausted #: locale/ipp-strings.c:3852 msgid "printer-state-reasons.stacker-memory-exhausted" msgstr "" #. TRANSLATORS: Stacker Missing #: locale/ipp-strings.c:3854 msgid "printer-state-reasons.stacker-missing" msgstr "" #. TRANSLATORS: Stacker Motor Failure #: locale/ipp-strings.c:3856 msgid "printer-state-reasons.stacker-motor-failure" msgstr "" #. TRANSLATORS: Stacker Near Limit #: locale/ipp-strings.c:3858 msgid "printer-state-reasons.stacker-near-limit" msgstr "" #. TRANSLATORS: Stacker Offline #: locale/ipp-strings.c:3860 msgid "printer-state-reasons.stacker-offline" msgstr "" #. TRANSLATORS: Stacker Opened #: locale/ipp-strings.c:3862 msgid "printer-state-reasons.stacker-opened" msgstr "" #. TRANSLATORS: Stacker Over Temperature #: locale/ipp-strings.c:3864 msgid "printer-state-reasons.stacker-over-temperature" msgstr "" #. TRANSLATORS: Stacker Power Saver #: locale/ipp-strings.c:3866 msgid "printer-state-reasons.stacker-power-saver" msgstr "" #. TRANSLATORS: Stacker Recoverable Failure #: locale/ipp-strings.c:3868 msgid "printer-state-reasons.stacker-recoverable-failure" msgstr "" #. TRANSLATORS: Stacker Recoverable Storage #: locale/ipp-strings.c:3870 msgid "printer-state-reasons.stacker-recoverable-storage" msgstr "" #. TRANSLATORS: Stacker Removed #: locale/ipp-strings.c:3872 msgid "printer-state-reasons.stacker-removed" msgstr "" #. TRANSLATORS: Stacker Resource Added #: locale/ipp-strings.c:3874 msgid "printer-state-reasons.stacker-resource-added" msgstr "" #. TRANSLATORS: Stacker Resource Removed #: locale/ipp-strings.c:3876 msgid "printer-state-reasons.stacker-resource-removed" msgstr "" #. TRANSLATORS: Stacker Thermistor Failure #: locale/ipp-strings.c:3878 msgid "printer-state-reasons.stacker-thermistor-failure" msgstr "" #. TRANSLATORS: Stacker Timing Failure #: locale/ipp-strings.c:3880 msgid "printer-state-reasons.stacker-timing-failure" msgstr "" #. TRANSLATORS: Stacker Turned Off #: locale/ipp-strings.c:3882 msgid "printer-state-reasons.stacker-turned-off" msgstr "" #. TRANSLATORS: Stacker Turned On #: locale/ipp-strings.c:3884 msgid "printer-state-reasons.stacker-turned-on" msgstr "" #. TRANSLATORS: Stacker Under Temperature #: locale/ipp-strings.c:3886 msgid "printer-state-reasons.stacker-under-temperature" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Failure #: locale/ipp-strings.c:3888 msgid "printer-state-reasons.stacker-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stacker Unrecoverable Storage Error #: locale/ipp-strings.c:3890 msgid "printer-state-reasons.stacker-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stacker Warming Up #: locale/ipp-strings.c:3892 msgid "printer-state-reasons.stacker-warming-up" msgstr "" #. TRANSLATORS: Stapler Added #: locale/ipp-strings.c:3894 msgid "printer-state-reasons.stapler-added" msgstr "" #. TRANSLATORS: Stapler Almost Empty #: locale/ipp-strings.c:3896 msgid "printer-state-reasons.stapler-almost-empty" msgstr "" #. TRANSLATORS: Stapler Almost Full #: locale/ipp-strings.c:3898 msgid "printer-state-reasons.stapler-almost-full" msgstr "" #. TRANSLATORS: Stapler At Limit #: locale/ipp-strings.c:3900 msgid "printer-state-reasons.stapler-at-limit" msgstr "" #. TRANSLATORS: Stapler Closed #: locale/ipp-strings.c:3902 msgid "printer-state-reasons.stapler-closed" msgstr "" #. TRANSLATORS: Stapler Configuration Change #: locale/ipp-strings.c:3904 msgid "printer-state-reasons.stapler-configuration-change" msgstr "" #. TRANSLATORS: Stapler Cover Closed #: locale/ipp-strings.c:3906 msgid "printer-state-reasons.stapler-cover-closed" msgstr "" #. TRANSLATORS: Stapler Cover Open #: locale/ipp-strings.c:3908 msgid "printer-state-reasons.stapler-cover-open" msgstr "" #. TRANSLATORS: Stapler Empty #: locale/ipp-strings.c:3910 msgid "printer-state-reasons.stapler-empty" msgstr "" #. TRANSLATORS: Stapler Full #: locale/ipp-strings.c:3912 msgid "printer-state-reasons.stapler-full" msgstr "" #. TRANSLATORS: Stapler Interlock Closed #: locale/ipp-strings.c:3914 msgid "printer-state-reasons.stapler-interlock-closed" msgstr "" #. TRANSLATORS: Stapler Interlock Open #: locale/ipp-strings.c:3916 msgid "printer-state-reasons.stapler-interlock-open" msgstr "" #. TRANSLATORS: Stapler Jam #: locale/ipp-strings.c:3918 msgid "printer-state-reasons.stapler-jam" msgstr "" #. TRANSLATORS: Stapler Life Almost Over #: locale/ipp-strings.c:3920 msgid "printer-state-reasons.stapler-life-almost-over" msgstr "" #. TRANSLATORS: Stapler Life Over #: locale/ipp-strings.c:3922 msgid "printer-state-reasons.stapler-life-over" msgstr "" #. TRANSLATORS: Stapler Memory Exhausted #: locale/ipp-strings.c:3924 msgid "printer-state-reasons.stapler-memory-exhausted" msgstr "" #. TRANSLATORS: Stapler Missing #: locale/ipp-strings.c:3926 msgid "printer-state-reasons.stapler-missing" msgstr "" #. TRANSLATORS: Stapler Motor Failure #: locale/ipp-strings.c:3928 msgid "printer-state-reasons.stapler-motor-failure" msgstr "" #. TRANSLATORS: Stapler Near Limit #: locale/ipp-strings.c:3930 msgid "printer-state-reasons.stapler-near-limit" msgstr "" #. TRANSLATORS: Stapler Offline #: locale/ipp-strings.c:3932 msgid "printer-state-reasons.stapler-offline" msgstr "" #. TRANSLATORS: Stapler Opened #: locale/ipp-strings.c:3934 msgid "printer-state-reasons.stapler-opened" msgstr "" #. TRANSLATORS: Stapler Over Temperature #: locale/ipp-strings.c:3936 msgid "printer-state-reasons.stapler-over-temperature" msgstr "" #. TRANSLATORS: Stapler Power Saver #: locale/ipp-strings.c:3938 msgid "printer-state-reasons.stapler-power-saver" msgstr "" #. TRANSLATORS: Stapler Recoverable Failure #: locale/ipp-strings.c:3940 msgid "printer-state-reasons.stapler-recoverable-failure" msgstr "" #. TRANSLATORS: Stapler Recoverable Storage #: locale/ipp-strings.c:3942 msgid "printer-state-reasons.stapler-recoverable-storage" msgstr "" #. TRANSLATORS: Stapler Removed #: locale/ipp-strings.c:3944 msgid "printer-state-reasons.stapler-removed" msgstr "" #. TRANSLATORS: Stapler Resource Added #: locale/ipp-strings.c:3946 msgid "printer-state-reasons.stapler-resource-added" msgstr "" #. TRANSLATORS: Stapler Resource Removed #: locale/ipp-strings.c:3948 msgid "printer-state-reasons.stapler-resource-removed" msgstr "" #. TRANSLATORS: Stapler Thermistor Failure #: locale/ipp-strings.c:3950 msgid "printer-state-reasons.stapler-thermistor-failure" msgstr "" #. TRANSLATORS: Stapler Timing Failure #: locale/ipp-strings.c:3952 msgid "printer-state-reasons.stapler-timing-failure" msgstr "" #. TRANSLATORS: Stapler Turned Off #: locale/ipp-strings.c:3954 msgid "printer-state-reasons.stapler-turned-off" msgstr "" #. TRANSLATORS: Stapler Turned On #: locale/ipp-strings.c:3956 msgid "printer-state-reasons.stapler-turned-on" msgstr "" #. TRANSLATORS: Stapler Under Temperature #: locale/ipp-strings.c:3958 msgid "printer-state-reasons.stapler-under-temperature" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Failure #: locale/ipp-strings.c:3960 msgid "printer-state-reasons.stapler-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stapler Unrecoverable Storage Error #: locale/ipp-strings.c:3962 msgid "printer-state-reasons.stapler-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stapler Warming Up #: locale/ipp-strings.c:3964 msgid "printer-state-reasons.stapler-warming-up" msgstr "" #. TRANSLATORS: Stitcher Added #: locale/ipp-strings.c:3966 msgid "printer-state-reasons.stitcher-added" msgstr "" #. TRANSLATORS: Stitcher Almost Empty #: locale/ipp-strings.c:3968 msgid "printer-state-reasons.stitcher-almost-empty" msgstr "" #. TRANSLATORS: Stitcher Almost Full #: locale/ipp-strings.c:3970 msgid "printer-state-reasons.stitcher-almost-full" msgstr "" #. TRANSLATORS: Stitcher At Limit #: locale/ipp-strings.c:3972 msgid "printer-state-reasons.stitcher-at-limit" msgstr "" #. TRANSLATORS: Stitcher Closed #: locale/ipp-strings.c:3974 msgid "printer-state-reasons.stitcher-closed" msgstr "" #. TRANSLATORS: Stitcher Configuration Change #: locale/ipp-strings.c:3976 msgid "printer-state-reasons.stitcher-configuration-change" msgstr "" #. TRANSLATORS: Stitcher Cover Closed #: locale/ipp-strings.c:3978 msgid "printer-state-reasons.stitcher-cover-closed" msgstr "" #. TRANSLATORS: Stitcher Cover Open #: locale/ipp-strings.c:3980 msgid "printer-state-reasons.stitcher-cover-open" msgstr "" #. TRANSLATORS: Stitcher Empty #: locale/ipp-strings.c:3982 msgid "printer-state-reasons.stitcher-empty" msgstr "" #. TRANSLATORS: Stitcher Full #: locale/ipp-strings.c:3984 msgid "printer-state-reasons.stitcher-full" msgstr "" #. TRANSLATORS: Stitcher Interlock Closed #: locale/ipp-strings.c:3986 msgid "printer-state-reasons.stitcher-interlock-closed" msgstr "" #. TRANSLATORS: Stitcher Interlock Open #: locale/ipp-strings.c:3988 msgid "printer-state-reasons.stitcher-interlock-open" msgstr "" #. TRANSLATORS: Stitcher Jam #: locale/ipp-strings.c:3990 msgid "printer-state-reasons.stitcher-jam" msgstr "" #. TRANSLATORS: Stitcher Life Almost Over #: locale/ipp-strings.c:3992 msgid "printer-state-reasons.stitcher-life-almost-over" msgstr "" #. TRANSLATORS: Stitcher Life Over #: locale/ipp-strings.c:3994 msgid "printer-state-reasons.stitcher-life-over" msgstr "" #. TRANSLATORS: Stitcher Memory Exhausted #: locale/ipp-strings.c:3996 msgid "printer-state-reasons.stitcher-memory-exhausted" msgstr "" #. TRANSLATORS: Stitcher Missing #: locale/ipp-strings.c:3998 msgid "printer-state-reasons.stitcher-missing" msgstr "" #. TRANSLATORS: Stitcher Motor Failure #: locale/ipp-strings.c:4000 msgid "printer-state-reasons.stitcher-motor-failure" msgstr "" #. TRANSLATORS: Stitcher Near Limit #: locale/ipp-strings.c:4002 msgid "printer-state-reasons.stitcher-near-limit" msgstr "" #. TRANSLATORS: Stitcher Offline #: locale/ipp-strings.c:4004 msgid "printer-state-reasons.stitcher-offline" msgstr "" #. TRANSLATORS: Stitcher Opened #: locale/ipp-strings.c:4006 msgid "printer-state-reasons.stitcher-opened" msgstr "" #. TRANSLATORS: Stitcher Over Temperature #: locale/ipp-strings.c:4008 msgid "printer-state-reasons.stitcher-over-temperature" msgstr "" #. TRANSLATORS: Stitcher Power Saver #: locale/ipp-strings.c:4010 msgid "printer-state-reasons.stitcher-power-saver" msgstr "" #. TRANSLATORS: Stitcher Recoverable Failure #: locale/ipp-strings.c:4012 msgid "printer-state-reasons.stitcher-recoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Recoverable Storage #: locale/ipp-strings.c:4014 msgid "printer-state-reasons.stitcher-recoverable-storage" msgstr "" #. TRANSLATORS: Stitcher Removed #: locale/ipp-strings.c:4016 msgid "printer-state-reasons.stitcher-removed" msgstr "" #. TRANSLATORS: Stitcher Resource Added #: locale/ipp-strings.c:4018 msgid "printer-state-reasons.stitcher-resource-added" msgstr "" #. TRANSLATORS: Stitcher Resource Removed #: locale/ipp-strings.c:4020 msgid "printer-state-reasons.stitcher-resource-removed" msgstr "" #. TRANSLATORS: Stitcher Thermistor Failure #: locale/ipp-strings.c:4022 msgid "printer-state-reasons.stitcher-thermistor-failure" msgstr "" #. TRANSLATORS: Stitcher Timing Failure #: locale/ipp-strings.c:4024 msgid "printer-state-reasons.stitcher-timing-failure" msgstr "" #. TRANSLATORS: Stitcher Turned Off #: locale/ipp-strings.c:4026 msgid "printer-state-reasons.stitcher-turned-off" msgstr "" #. TRANSLATORS: Stitcher Turned On #: locale/ipp-strings.c:4028 msgid "printer-state-reasons.stitcher-turned-on" msgstr "" #. TRANSLATORS: Stitcher Under Temperature #: locale/ipp-strings.c:4030 msgid "printer-state-reasons.stitcher-under-temperature" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Failure #: locale/ipp-strings.c:4032 msgid "printer-state-reasons.stitcher-unrecoverable-failure" msgstr "" #. TRANSLATORS: Stitcher Unrecoverable Storage Error #: locale/ipp-strings.c:4034 msgid "printer-state-reasons.stitcher-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Stitcher Warming Up #: locale/ipp-strings.c:4036 msgid "printer-state-reasons.stitcher-warming-up" msgstr "" #. TRANSLATORS: Partially stopped #: locale/ipp-strings.c:4038 msgid "printer-state-reasons.stopped-partly" msgstr "" #. TRANSLATORS: Stopping #: locale/ipp-strings.c:4040 msgid "printer-state-reasons.stopping" msgstr "" #. TRANSLATORS: Subunit Added #: locale/ipp-strings.c:4042 msgid "printer-state-reasons.subunit-added" msgstr "" #. TRANSLATORS: Subunit Almost Empty #: locale/ipp-strings.c:4044 msgid "printer-state-reasons.subunit-almost-empty" msgstr "" #. TRANSLATORS: Subunit Almost Full #: locale/ipp-strings.c:4046 msgid "printer-state-reasons.subunit-almost-full" msgstr "" #. TRANSLATORS: Subunit At Limit #: locale/ipp-strings.c:4048 msgid "printer-state-reasons.subunit-at-limit" msgstr "" #. TRANSLATORS: Subunit Closed #: locale/ipp-strings.c:4050 msgid "printer-state-reasons.subunit-closed" msgstr "" #. TRANSLATORS: Subunit Cooling Down #: locale/ipp-strings.c:4052 msgid "printer-state-reasons.subunit-cooling-down" msgstr "" #. TRANSLATORS: Subunit Empty #: locale/ipp-strings.c:4054 msgid "printer-state-reasons.subunit-empty" msgstr "" #. TRANSLATORS: Subunit Full #: locale/ipp-strings.c:4056 msgid "printer-state-reasons.subunit-full" msgstr "" #. TRANSLATORS: Subunit Life Almost Over #: locale/ipp-strings.c:4058 msgid "printer-state-reasons.subunit-life-almost-over" msgstr "" #. TRANSLATORS: Subunit Life Over #: locale/ipp-strings.c:4060 msgid "printer-state-reasons.subunit-life-over" msgstr "" #. TRANSLATORS: Subunit Memory Exhausted #: locale/ipp-strings.c:4062 msgid "printer-state-reasons.subunit-memory-exhausted" msgstr "" #. TRANSLATORS: Subunit Missing #: locale/ipp-strings.c:4064 msgid "printer-state-reasons.subunit-missing" msgstr "" #. TRANSLATORS: Subunit Motor Failure #: locale/ipp-strings.c:4066 msgid "printer-state-reasons.subunit-motor-failure" msgstr "" #. TRANSLATORS: Subunit Near Limit #: locale/ipp-strings.c:4068 msgid "printer-state-reasons.subunit-near-limit" msgstr "" #. TRANSLATORS: Subunit Offline #: locale/ipp-strings.c:4070 msgid "printer-state-reasons.subunit-offline" msgstr "" #. TRANSLATORS: Subunit Opened #: locale/ipp-strings.c:4072 msgid "printer-state-reasons.subunit-opened" msgstr "" #. TRANSLATORS: Subunit Over Temperature #: locale/ipp-strings.c:4074 msgid "printer-state-reasons.subunit-over-temperature" msgstr "" #. TRANSLATORS: Subunit Power Saver #: locale/ipp-strings.c:4076 msgid "printer-state-reasons.subunit-power-saver" msgstr "" #. TRANSLATORS: Subunit Recoverable Failure #: locale/ipp-strings.c:4078 msgid "printer-state-reasons.subunit-recoverable-failure" msgstr "" #. TRANSLATORS: Subunit Recoverable Storage #: locale/ipp-strings.c:4080 msgid "printer-state-reasons.subunit-recoverable-storage" msgstr "" #. TRANSLATORS: Subunit Removed #: locale/ipp-strings.c:4082 msgid "printer-state-reasons.subunit-removed" msgstr "" #. TRANSLATORS: Subunit Resource Added #: locale/ipp-strings.c:4084 msgid "printer-state-reasons.subunit-resource-added" msgstr "" #. TRANSLATORS: Subunit Resource Removed #: locale/ipp-strings.c:4086 msgid "printer-state-reasons.subunit-resource-removed" msgstr "" #. TRANSLATORS: Subunit Thermistor Failure #: locale/ipp-strings.c:4088 msgid "printer-state-reasons.subunit-thermistor-failure" msgstr "" #. TRANSLATORS: Subunit Timing Failure #: locale/ipp-strings.c:4090 msgid "printer-state-reasons.subunit-timing-Failure" msgstr "" #. TRANSLATORS: Subunit Turned Off #: locale/ipp-strings.c:4092 msgid "printer-state-reasons.subunit-turned-off" msgstr "" #. TRANSLATORS: Subunit Turned On #: locale/ipp-strings.c:4094 msgid "printer-state-reasons.subunit-turned-on" msgstr "" #. TRANSLATORS: Subunit Under Temperature #: locale/ipp-strings.c:4096 msgid "printer-state-reasons.subunit-under-temperature" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Failure #: locale/ipp-strings.c:4098 msgid "printer-state-reasons.subunit-unrecoverable-failure" msgstr "" #. TRANSLATORS: Subunit Unrecoverable Storage #: locale/ipp-strings.c:4100 msgid "printer-state-reasons.subunit-unrecoverable-storage" msgstr "" #. TRANSLATORS: Subunit Warming Up #: locale/ipp-strings.c:4102 msgid "printer-state-reasons.subunit-warming-up" msgstr "" #. TRANSLATORS: Printer stopped responding #: locale/ipp-strings.c:4104 msgid "printer-state-reasons.timed-out" msgstr "" #. TRANSLATORS: Out of toner #: locale/ipp-strings.c:4106 msgid "printer-state-reasons.toner-empty" msgstr "" #. TRANSLATORS: Toner low #: locale/ipp-strings.c:4108 msgid "printer-state-reasons.toner-low" msgstr "" #. TRANSLATORS: Trimmer Added #: locale/ipp-strings.c:4110 msgid "printer-state-reasons.trimmer-added" msgstr "" #. TRANSLATORS: Trimmer Almost Empty #: locale/ipp-strings.c:4112 msgid "printer-state-reasons.trimmer-almost-empty" msgstr "" #. TRANSLATORS: Trimmer Almost Full #: locale/ipp-strings.c:4114 msgid "printer-state-reasons.trimmer-almost-full" msgstr "" #. TRANSLATORS: Trimmer At Limit #: locale/ipp-strings.c:4116 msgid "printer-state-reasons.trimmer-at-limit" msgstr "" #. TRANSLATORS: Trimmer Closed #: locale/ipp-strings.c:4118 msgid "printer-state-reasons.trimmer-closed" msgstr "" #. TRANSLATORS: Trimmer Configuration Change #: locale/ipp-strings.c:4120 msgid "printer-state-reasons.trimmer-configuration-change" msgstr "" #. TRANSLATORS: Trimmer Cover Closed #: locale/ipp-strings.c:4122 msgid "printer-state-reasons.trimmer-cover-closed" msgstr "" #. TRANSLATORS: Trimmer Cover Open #: locale/ipp-strings.c:4124 msgid "printer-state-reasons.trimmer-cover-open" msgstr "" #. TRANSLATORS: Trimmer Empty #: locale/ipp-strings.c:4126 msgid "printer-state-reasons.trimmer-empty" msgstr "" #. TRANSLATORS: Trimmer Full #: locale/ipp-strings.c:4128 msgid "printer-state-reasons.trimmer-full" msgstr "" #. TRANSLATORS: Trimmer Interlock Closed #: locale/ipp-strings.c:4130 msgid "printer-state-reasons.trimmer-interlock-closed" msgstr "" #. TRANSLATORS: Trimmer Interlock Open #: locale/ipp-strings.c:4132 msgid "printer-state-reasons.trimmer-interlock-open" msgstr "" #. TRANSLATORS: Trimmer Jam #: locale/ipp-strings.c:4134 msgid "printer-state-reasons.trimmer-jam" msgstr "" #. TRANSLATORS: Trimmer Life Almost Over #: locale/ipp-strings.c:4136 msgid "printer-state-reasons.trimmer-life-almost-over" msgstr "" #. TRANSLATORS: Trimmer Life Over #: locale/ipp-strings.c:4138 msgid "printer-state-reasons.trimmer-life-over" msgstr "" #. TRANSLATORS: Trimmer Memory Exhausted #: locale/ipp-strings.c:4140 msgid "printer-state-reasons.trimmer-memory-exhausted" msgstr "" #. TRANSLATORS: Trimmer Missing #: locale/ipp-strings.c:4142 msgid "printer-state-reasons.trimmer-missing" msgstr "" #. TRANSLATORS: Trimmer Motor Failure #: locale/ipp-strings.c:4144 msgid "printer-state-reasons.trimmer-motor-failure" msgstr "" #. TRANSLATORS: Trimmer Near Limit #: locale/ipp-strings.c:4146 msgid "printer-state-reasons.trimmer-near-limit" msgstr "" #. TRANSLATORS: Trimmer Offline #: locale/ipp-strings.c:4148 msgid "printer-state-reasons.trimmer-offline" msgstr "" #. TRANSLATORS: Trimmer Opened #: locale/ipp-strings.c:4150 msgid "printer-state-reasons.trimmer-opened" msgstr "" #. TRANSLATORS: Trimmer Over Temperature #: locale/ipp-strings.c:4152 msgid "printer-state-reasons.trimmer-over-temperature" msgstr "" #. TRANSLATORS: Trimmer Power Saver #: locale/ipp-strings.c:4154 msgid "printer-state-reasons.trimmer-power-saver" msgstr "" #. TRANSLATORS: Trimmer Recoverable Failure #: locale/ipp-strings.c:4156 msgid "printer-state-reasons.trimmer-recoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Recoverable Storage #: locale/ipp-strings.c:4158 msgid "printer-state-reasons.trimmer-recoverable-storage" msgstr "" #. TRANSLATORS: Trimmer Removed #: locale/ipp-strings.c:4160 msgid "printer-state-reasons.trimmer-removed" msgstr "" #. TRANSLATORS: Trimmer Resource Added #: locale/ipp-strings.c:4162 msgid "printer-state-reasons.trimmer-resource-added" msgstr "" #. TRANSLATORS: Trimmer Resource Removed #: locale/ipp-strings.c:4164 msgid "printer-state-reasons.trimmer-resource-removed" msgstr "" #. TRANSLATORS: Trimmer Thermistor Failure #: locale/ipp-strings.c:4166 msgid "printer-state-reasons.trimmer-thermistor-failure" msgstr "" #. TRANSLATORS: Trimmer Timing Failure #: locale/ipp-strings.c:4168 msgid "printer-state-reasons.trimmer-timing-failure" msgstr "" #. TRANSLATORS: Trimmer Turned Off #: locale/ipp-strings.c:4170 msgid "printer-state-reasons.trimmer-turned-off" msgstr "" #. TRANSLATORS: Trimmer Turned On #: locale/ipp-strings.c:4172 msgid "printer-state-reasons.trimmer-turned-on" msgstr "" #. TRANSLATORS: Trimmer Under Temperature #: locale/ipp-strings.c:4174 msgid "printer-state-reasons.trimmer-under-temperature" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Failure #: locale/ipp-strings.c:4176 msgid "printer-state-reasons.trimmer-unrecoverable-failure" msgstr "" #. TRANSLATORS: Trimmer Unrecoverable Storage Error #: locale/ipp-strings.c:4178 msgid "printer-state-reasons.trimmer-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Trimmer Warming Up #: locale/ipp-strings.c:4180 msgid "printer-state-reasons.trimmer-warming-up" msgstr "" #. TRANSLATORS: Unknown #: locale/ipp-strings.c:4182 msgid "printer-state-reasons.unknown" msgstr "" #. TRANSLATORS: Wrapper Added #: locale/ipp-strings.c:4184 msgid "printer-state-reasons.wrapper-added" msgstr "" #. TRANSLATORS: Wrapper Almost Empty #: locale/ipp-strings.c:4186 msgid "printer-state-reasons.wrapper-almost-empty" msgstr "" #. TRANSLATORS: Wrapper Almost Full #: locale/ipp-strings.c:4188 msgid "printer-state-reasons.wrapper-almost-full" msgstr "" #. TRANSLATORS: Wrapper At Limit #: locale/ipp-strings.c:4190 msgid "printer-state-reasons.wrapper-at-limit" msgstr "" #. TRANSLATORS: Wrapper Closed #: locale/ipp-strings.c:4192 msgid "printer-state-reasons.wrapper-closed" msgstr "" #. TRANSLATORS: Wrapper Configuration Change #: locale/ipp-strings.c:4194 msgid "printer-state-reasons.wrapper-configuration-change" msgstr "" #. TRANSLATORS: Wrapper Cover Closed #: locale/ipp-strings.c:4196 msgid "printer-state-reasons.wrapper-cover-closed" msgstr "" #. TRANSLATORS: Wrapper Cover Open #: locale/ipp-strings.c:4198 msgid "printer-state-reasons.wrapper-cover-open" msgstr "" #. TRANSLATORS: Wrapper Empty #: locale/ipp-strings.c:4200 msgid "printer-state-reasons.wrapper-empty" msgstr "" #. TRANSLATORS: Wrapper Full #: locale/ipp-strings.c:4202 msgid "printer-state-reasons.wrapper-full" msgstr "" #. TRANSLATORS: Wrapper Interlock Closed #: locale/ipp-strings.c:4204 msgid "printer-state-reasons.wrapper-interlock-closed" msgstr "" #. TRANSLATORS: Wrapper Interlock Open #: locale/ipp-strings.c:4206 msgid "printer-state-reasons.wrapper-interlock-open" msgstr "" #. TRANSLATORS: Wrapper Jam #: locale/ipp-strings.c:4208 msgid "printer-state-reasons.wrapper-jam" msgstr "" #. TRANSLATORS: Wrapper Life Almost Over #: locale/ipp-strings.c:4210 msgid "printer-state-reasons.wrapper-life-almost-over" msgstr "" #. TRANSLATORS: Wrapper Life Over #: locale/ipp-strings.c:4212 msgid "printer-state-reasons.wrapper-life-over" msgstr "" #. TRANSLATORS: Wrapper Memory Exhausted #: locale/ipp-strings.c:4214 msgid "printer-state-reasons.wrapper-memory-exhausted" msgstr "" #. TRANSLATORS: Wrapper Missing #: locale/ipp-strings.c:4216 msgid "printer-state-reasons.wrapper-missing" msgstr "" #. TRANSLATORS: Wrapper Motor Failure #: locale/ipp-strings.c:4218 msgid "printer-state-reasons.wrapper-motor-failure" msgstr "" #. TRANSLATORS: Wrapper Near Limit #: locale/ipp-strings.c:4220 msgid "printer-state-reasons.wrapper-near-limit" msgstr "" #. TRANSLATORS: Wrapper Offline #: locale/ipp-strings.c:4222 msgid "printer-state-reasons.wrapper-offline" msgstr "" #. TRANSLATORS: Wrapper Opened #: locale/ipp-strings.c:4224 msgid "printer-state-reasons.wrapper-opened" msgstr "" #. TRANSLATORS: Wrapper Over Temperature #: locale/ipp-strings.c:4226 msgid "printer-state-reasons.wrapper-over-temperature" msgstr "" #. TRANSLATORS: Wrapper Power Saver #: locale/ipp-strings.c:4228 msgid "printer-state-reasons.wrapper-power-saver" msgstr "" #. TRANSLATORS: Wrapper Recoverable Failure #: locale/ipp-strings.c:4230 msgid "printer-state-reasons.wrapper-recoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Recoverable Storage #: locale/ipp-strings.c:4232 msgid "printer-state-reasons.wrapper-recoverable-storage" msgstr "" #. TRANSLATORS: Wrapper Removed #: locale/ipp-strings.c:4234 msgid "printer-state-reasons.wrapper-removed" msgstr "" #. TRANSLATORS: Wrapper Resource Added #: locale/ipp-strings.c:4236 msgid "printer-state-reasons.wrapper-resource-added" msgstr "" #. TRANSLATORS: Wrapper Resource Removed #: locale/ipp-strings.c:4238 msgid "printer-state-reasons.wrapper-resource-removed" msgstr "" #. TRANSLATORS: Wrapper Thermistor Failure #: locale/ipp-strings.c:4240 msgid "printer-state-reasons.wrapper-thermistor-failure" msgstr "" #. TRANSLATORS: Wrapper Timing Failure #: locale/ipp-strings.c:4242 msgid "printer-state-reasons.wrapper-timing-failure" msgstr "" #. TRANSLATORS: Wrapper Turned Off #: locale/ipp-strings.c:4244 msgid "printer-state-reasons.wrapper-turned-off" msgstr "" #. TRANSLATORS: Wrapper Turned On #: locale/ipp-strings.c:4246 msgid "printer-state-reasons.wrapper-turned-on" msgstr "" #. TRANSLATORS: Wrapper Under Temperature #: locale/ipp-strings.c:4248 msgid "printer-state-reasons.wrapper-under-temperature" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Failure #: locale/ipp-strings.c:4250 msgid "printer-state-reasons.wrapper-unrecoverable-failure" msgstr "" #. TRANSLATORS: Wrapper Unrecoverable Storage Error #: locale/ipp-strings.c:4252 msgid "printer-state-reasons.wrapper-unrecoverable-storage-error" msgstr "" #. TRANSLATORS: Wrapper Warming Up #: locale/ipp-strings.c:4254 msgid "printer-state-reasons.wrapper-warming-up" msgstr "" #. TRANSLATORS: Idle #: locale/ipp-strings.c:4256 msgid "printer-state.3" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:4258 msgid "printer-state.4" msgstr "" #. TRANSLATORS: Stopped #: locale/ipp-strings.c:4260 msgid "printer-state.5" msgstr "" #. TRANSLATORS: Printer Uptime #: locale/ipp-strings.c:4262 msgid "printer-up-time" msgstr "" #: cups/notify.c:80 cups/notify.c:121 msgid "processing" msgstr "" #. TRANSLATORS: Proof Print #: locale/ipp-strings.c:4264 msgid "proof-print" msgstr "" #. TRANSLATORS: Proof Print Copies #: locale/ipp-strings.c:4266 msgid "proof-print-copies" msgstr "" #. TRANSLATORS: Punching #: locale/ipp-strings.c:4268 msgid "punching" msgstr "" #. TRANSLATORS: Punching Locations #: locale/ipp-strings.c:4270 msgid "punching-locations" msgstr "" #. TRANSLATORS: Punching Offset #: locale/ipp-strings.c:4272 msgid "punching-offset" msgstr "" #. TRANSLATORS: Punch Edge #: locale/ipp-strings.c:4274 msgid "punching-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4276 msgid "punching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4278 msgid "punching-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4280 msgid "punching-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4282 msgid "punching-reference-edge.top" msgstr "" #: systemv/lp.c:645 #, c-format msgid "request id is %s-%d (%d file(s))" msgstr "" #: cups/snmp.c:974 msgid "request-id uses indefinite length" msgstr "" #. TRANSLATORS: Requested Attributes #: locale/ipp-strings.c:4284 msgid "requested-attributes" msgstr "" #. TRANSLATORS: Retry Interval #: locale/ipp-strings.c:4286 msgid "retry-interval" msgstr "" #. TRANSLATORS: Retry Timeout #: locale/ipp-strings.c:4288 msgid "retry-time-out" msgstr "" #. TRANSLATORS: Save Disposition #: locale/ipp-strings.c:4290 msgid "save-disposition" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4292 msgid "save-disposition.none" msgstr "" #. TRANSLATORS: Print and Save #: locale/ipp-strings.c:4294 msgid "save-disposition.print-save" msgstr "" #. TRANSLATORS: Save Only #: locale/ipp-strings.c:4296 msgid "save-disposition.save-only" msgstr "" #. TRANSLATORS: Save Document Format #: locale/ipp-strings.c:4298 msgid "save-document-format" msgstr "" #. TRANSLATORS: Save Info #: locale/ipp-strings.c:4300 msgid "save-info" msgstr "" #. TRANSLATORS: Save Location #: locale/ipp-strings.c:4302 msgid "save-location" msgstr "" #. TRANSLATORS: Save Name #: locale/ipp-strings.c:4304 msgid "save-name" msgstr "" #: systemv/lpstat.c:2033 msgid "scheduler is not running" msgstr "" #: systemv/lpstat.c:2029 msgid "scheduler is running" msgstr "" #. TRANSLATORS: Separator Sheets #: locale/ipp-strings.c:4306 msgid "separator-sheets" msgstr "" #. TRANSLATORS: Type of Separator Sheets #: locale/ipp-strings.c:4308 msgid "separator-sheets-type" msgstr "" #. TRANSLATORS: Start and End Sheets #: locale/ipp-strings.c:4310 msgid "separator-sheets-type.both-sheets" msgstr "" #. TRANSLATORS: End Sheet #: locale/ipp-strings.c:4312 msgid "separator-sheets-type.end-sheet" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4314 msgid "separator-sheets-type.none" msgstr "" #. TRANSLATORS: Slip Sheets #: locale/ipp-strings.c:4316 msgid "separator-sheets-type.slip-sheets" msgstr "" #. TRANSLATORS: Start Sheet #: locale/ipp-strings.c:4318 msgid "separator-sheets-type.start-sheet" msgstr "" #. TRANSLATORS: 2-Sided Printing #: locale/ipp-strings.c:4320 msgid "sides" msgstr "" #. TRANSLATORS: Off #: locale/ipp-strings.c:4322 msgid "sides.one-sided" msgstr "" #. TRANSLATORS: On (Portrait) #: locale/ipp-strings.c:4324 msgid "sides.two-sided-long-edge" msgstr "" #. TRANSLATORS: On (Landscape) #: locale/ipp-strings.c:4326 msgid "sides.two-sided-short-edge" msgstr "" #: cups/adminutil.c:1380 #, c-format msgid "stat of %s failed: %s" msgstr "" #: berkeley/lpc.c:197 msgid "status\t\tShow status of daemon and queue." msgstr "" #. TRANSLATORS: Status Message #: locale/ipp-strings.c:4328 msgid "status-message" msgstr "" #. TRANSLATORS: Staple #: locale/ipp-strings.c:4330 msgid "stitching" msgstr "" #. TRANSLATORS: Stitching Angle #: locale/ipp-strings.c:4332 msgid "stitching-angle" msgstr "" #. TRANSLATORS: Stitching Locations #: locale/ipp-strings.c:4334 msgid "stitching-locations" msgstr "" #. TRANSLATORS: Staple Method #: locale/ipp-strings.c:4336 msgid "stitching-method" msgstr "" #. TRANSLATORS: Automatic #: locale/ipp-strings.c:4338 msgid "stitching-method.auto" msgstr "" #. TRANSLATORS: Crimp #: locale/ipp-strings.c:4340 msgid "stitching-method.crimp" msgstr "" #. TRANSLATORS: Wire #: locale/ipp-strings.c:4342 msgid "stitching-method.wire" msgstr "" #. TRANSLATORS: Stitching Offset #: locale/ipp-strings.c:4344 msgid "stitching-offset" msgstr "" #. TRANSLATORS: Staple Edge #: locale/ipp-strings.c:4346 msgid "stitching-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4348 msgid "stitching-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4350 msgid "stitching-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4352 msgid "stitching-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4354 msgid "stitching-reference-edge.top" msgstr "" #: cups/notify.c:83 cups/notify.c:124 msgid "stopped" msgstr "" #. TRANSLATORS: Subject #: locale/ipp-strings.c:4356 msgid "subject" msgstr "" #. TRANSLATORS: Subscription Privacy Attributes #: locale/ipp-strings.c:4358 msgid "subscription-privacy-attributes" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:4360 msgid "subscription-privacy-attributes.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:4362 msgid "subscription-privacy-attributes.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4364 msgid "subscription-privacy-attributes.none" msgstr "" #. TRANSLATORS: Subscription Description #: locale/ipp-strings.c:4366 msgid "subscription-privacy-attributes.subscription-description" msgstr "" #. TRANSLATORS: Subscription Template #: locale/ipp-strings.c:4368 msgid "subscription-privacy-attributes.subscription-template" msgstr "" #. TRANSLATORS: Subscription Privacy Scope #: locale/ipp-strings.c:4370 msgid "subscription-privacy-scope" msgstr "" #. TRANSLATORS: All #: locale/ipp-strings.c:4372 msgid "subscription-privacy-scope.all" msgstr "" #. TRANSLATORS: Default #: locale/ipp-strings.c:4374 msgid "subscription-privacy-scope.default" msgstr "" #. TRANSLATORS: None #: locale/ipp-strings.c:4376 msgid "subscription-privacy-scope.none" msgstr "" #. TRANSLATORS: Owner #: locale/ipp-strings.c:4378 msgid "subscription-privacy-scope.owner" msgstr "" #: systemv/lpstat.c:1078 #, c-format msgid "system default destination: %s" msgstr "" #: systemv/lpstat.c:1075 #, c-format msgid "system default destination: %s/%s" msgstr "" #. TRANSLATORS: T33 Subaddress #: locale/ipp-strings.c:4380 msgid "t33-subaddress" msgstr "" #. TRANSLATORS: To Name #: locale/ipp-strings.c:4382 msgid "to-name" msgstr "" #. TRANSLATORS: Transmission Status #: locale/ipp-strings.c:4384 msgid "transmission-status" msgstr "" #. TRANSLATORS: Pending #: locale/ipp-strings.c:4386 msgid "transmission-status.3" msgstr "" #. TRANSLATORS: Pending Retry #: locale/ipp-strings.c:4388 msgid "transmission-status.4" msgstr "" #. TRANSLATORS: Processing #: locale/ipp-strings.c:4390 msgid "transmission-status.5" msgstr "" #. TRANSLATORS: Canceled #: locale/ipp-strings.c:4392 msgid "transmission-status.7" msgstr "" #. TRANSLATORS: Aborted #: locale/ipp-strings.c:4394 msgid "transmission-status.8" msgstr "" #. TRANSLATORS: Completed #: locale/ipp-strings.c:4396 msgid "transmission-status.9" msgstr "" #. TRANSLATORS: Cut #: locale/ipp-strings.c:4398 msgid "trimming" msgstr "" #. TRANSLATORS: Cut Position #: locale/ipp-strings.c:4400 msgid "trimming-offset" msgstr "" #. TRANSLATORS: Cut Edge #: locale/ipp-strings.c:4402 msgid "trimming-reference-edge" msgstr "" #. TRANSLATORS: Bottom #: locale/ipp-strings.c:4404 msgid "trimming-reference-edge.bottom" msgstr "" #. TRANSLATORS: Left #: locale/ipp-strings.c:4406 msgid "trimming-reference-edge.left" msgstr "" #. TRANSLATORS: Right #: locale/ipp-strings.c:4408 msgid "trimming-reference-edge.right" msgstr "" #. TRANSLATORS: Top #: locale/ipp-strings.c:4410 msgid "trimming-reference-edge.top" msgstr "" #. TRANSLATORS: Type of Cut #: locale/ipp-strings.c:4412 msgid "trimming-type" msgstr "" #. TRANSLATORS: Draw Line #: locale/ipp-strings.c:4414 msgid "trimming-type.draw-line" msgstr "" #. TRANSLATORS: Full #: locale/ipp-strings.c:4416 msgid "trimming-type.full" msgstr "" #. TRANSLATORS: Partial #: locale/ipp-strings.c:4418 msgid "trimming-type.partial" msgstr "" #. TRANSLATORS: Perforate #: locale/ipp-strings.c:4420 msgid "trimming-type.perforate" msgstr "" #. TRANSLATORS: Score #: locale/ipp-strings.c:4422 msgid "trimming-type.score" msgstr "" #. TRANSLATORS: Tab #: locale/ipp-strings.c:4424 msgid "trimming-type.tab" msgstr "" #. TRANSLATORS: Cut After #: locale/ipp-strings.c:4426 msgid "trimming-when" msgstr "" #. TRANSLATORS: Every Document #: locale/ipp-strings.c:4428 msgid "trimming-when.after-documents" msgstr "" #. TRANSLATORS: Job #: locale/ipp-strings.c:4430 msgid "trimming-when.after-job" msgstr "" #. TRANSLATORS: Every Set #: locale/ipp-strings.c:4432 msgid "trimming-when.after-sets" msgstr "" #. TRANSLATORS: Every Page #: locale/ipp-strings.c:4434 msgid "trimming-when.after-sheets" msgstr "" #: cups/notify.c:95 cups/notify.c:127 msgid "unknown" msgstr "" #: cups/notify.c:104 msgid "untitled" msgstr "" #: cups/snmp.c:999 msgid "variable-bindings uses indefinite length" msgstr "" #. TRANSLATORS: X Accuracy #: locale/ipp-strings.c:4436 msgid "x-accuracy" msgstr "" #. TRANSLATORS: X Dimension #: locale/ipp-strings.c:4438 msgid "x-dimension" msgstr "" #. TRANSLATORS: X Offset #: locale/ipp-strings.c:4440 msgid "x-offset" msgstr "" #. TRANSLATORS: X Origin #: locale/ipp-strings.c:4442 msgid "x-origin" msgstr "" #. TRANSLATORS: Y Accuracy #: locale/ipp-strings.c:4444 msgid "y-accuracy" msgstr "" #. TRANSLATORS: Y Dimension #: locale/ipp-strings.c:4446 msgid "y-dimension" msgstr "" #. TRANSLATORS: Y Offset #: locale/ipp-strings.c:4448 msgid "y-offset" msgstr "" #. TRANSLATORS: Y Origin #: locale/ipp-strings.c:4450 msgid "y-origin" msgstr "" #. TRANSLATORS: Z Accuracy #: locale/ipp-strings.c:4452 msgid "z-accuracy" msgstr "" #. TRANSLATORS: Z Dimension #: locale/ipp-strings.c:4454 msgid "z-dimension" msgstr "" #. TRANSLATORS: Z Offset #: locale/ipp-strings.c:4456 msgid "z-offset" msgstr "" #: tools/ippfind.c:2828 msgid "{service_domain} Domain name" msgstr "" #: tools/ippfind.c:2829 msgid "{service_hostname} Fully-qualified domain name" msgstr "" #: tools/ippfind.c:2830 msgid "{service_name} Service instance name" msgstr "" #: tools/ippfind.c:2831 msgid "{service_port} Port number" msgstr "" #: tools/ippfind.c:2832 msgid "{service_regtype} DNS-SD registration type" msgstr "" #: tools/ippfind.c:2833 msgid "{service_scheme} URI scheme" msgstr "" #: tools/ippfind.c:2834 msgid "{service_uri} URI" msgstr "" #: tools/ippfind.c:2835 msgid "{txt_*} Value of TXT record key" msgstr "" #: tools/ippfind.c:2827 msgid "{} URI" msgstr "" #: cups/dest.c:1867 msgid "~/.cups/lpoptions file names default destination that does not exist." msgstr "" cups-2.4.7/locale/cups.header0000644000175000017500000000104314502571342015742 0ustar zdohnalzdohnal# # Message catalog template for CUPS. # # Copyright © 2021 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 2005-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # Notes for Translators: # # The "checkpo" program located in the "locale" source directory can be used # to verify that your translations do not introduce formatting errors or other # problems. Run with: # # cd locale # ./checkpo cups_LL.po # # where "LL" is your locale. # cups-2.4.7/locale/checkpo.c0000644000175000017500000002146314502571342015406 0ustar zdohnalzdohnal/* * Verify that translations in the .po file have the same number and type of * printf-style format strings. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. * * Usage: * * checkpo filename.{po,strings} [... filenameN.{po,strings}] * * Compile with: * * gcc -o checkpo checkpo.c `cups-config --libs` */ #include /* * Local functions... */ static char *abbreviate(const char *s, char *buf, int bufsize); static cups_array_t *collect_formats(const char *id); static void free_formats(cups_array_t *fmts); /* * 'main()' - Validate .po and .strings files. */ int /* O - Exit code */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ cups_array_t *po; /* .po file */ _cups_message_t *msg; /* Current message */ cups_array_t *idfmts, /* Format strings in msgid */ *strfmts; /* Format strings in msgstr */ char *idfmt, /* Current msgid format string */ *strfmt; /* Current msgstr format string */ int fmtidx; /* Format index */ int status, /* Exit status */ pass, /* Pass/fail status */ untranslated; /* Untranslated messages */ char idbuf[80], /* Abbreviated msgid */ strbuf[80]; /* Abbreviated msgstr */ if (argc < 2) { puts("Usage: checkpo filename.{po,strings} [... filenameN.{po,strings}]"); return (1); } /* * Check every .po or .strings file on the command-line... */ for (i = 1, status = 0; i < argc; i ++) { /* * Use the CUPS .po loader to get the message strings... */ if (strstr(argv[i], ".strings")) po = _cupsMessageLoad(argv[i], _CUPS_MESSAGE_STRINGS); else po = _cupsMessageLoad(argv[i], _CUPS_MESSAGE_PO | _CUPS_MESSAGE_EMPTY); if (!po) { perror(argv[i]); return (1); } if (i > 1) putchar('\n'); printf("%s: ", argv[i]); fflush(stdout); /* * Scan every message for a % string and then match them up with * the corresponding string in the translation... */ pass = 1; untranslated = 0; for (msg = (_cups_message_t *)cupsArrayFirst(po); msg; msg = (_cups_message_t *)cupsArrayNext(po)) { /* * Make sure filter message prefixes are not translated... */ if (!strncmp(msg->msg, "ALERT:", 6) || !strncmp(msg->msg, "CRIT:", 5) || !strncmp(msg->msg, "DEBUG:", 6) || !strncmp(msg->msg, "DEBUG2:", 7) || !strncmp(msg->msg, "EMERG:", 6) || !strncmp(msg->msg, "ERROR:", 6) || !strncmp(msg->msg, "INFO:", 5) || !strncmp(msg->msg, "NOTICE:", 7) || !strncmp(msg->msg, "WARNING:", 8)) { if (pass) { pass = 0; puts("FAIL"); } printf(" Bad prefix on filter message \"%s\"\n", abbreviate(msg->msg, idbuf, sizeof(idbuf))); } idfmt = msg->msg + strlen(msg->msg) - 1; if (idfmt >= msg->msg && *idfmt == '\n') { if (pass) { pass = 0; puts("FAIL"); } printf(" Trailing newline in message \"%s\"\n", abbreviate(msg->msg, idbuf, sizeof(idbuf))); } for (; idfmt >= msg->msg; idfmt --) if (!isspace(*idfmt & 255)) break; if (idfmt >= msg->msg && *idfmt == '!') { if (pass) { pass = 0; puts("FAIL"); } printf(" Exclamation in message \"%s\"\n", abbreviate(msg->msg, idbuf, sizeof(idbuf))); } if ((idfmt - 2) >= msg->msg && !strncmp(idfmt - 2, "...", 3)) { if (pass) { pass = 0; puts("FAIL"); } printf(" Ellipsis in message \"%s\"\n", abbreviate(msg->msg, idbuf, sizeof(idbuf))); } if (!msg->str || !msg->str[0]) { untranslated ++; continue; } else if (strchr(msg->msg, '%')) { idfmts = collect_formats(msg->msg); strfmts = collect_formats(msg->str); fmtidx = 0; for (strfmt = (char *)cupsArrayFirst(strfmts); strfmt; strfmt = (char *)cupsArrayNext(strfmts)) { if (isdigit(strfmt[1] & 255) && strfmt[2] == '$') { /* * Handle positioned format stuff... */ fmtidx = strfmt[1] - '1'; strfmt += 3; if ((idfmt = (char *)cupsArrayIndex(idfmts, fmtidx)) != NULL) idfmt ++; } else { /* * Compare against the current format... */ idfmt = (char *)cupsArrayIndex(idfmts, fmtidx); } fmtidx ++; if (!idfmt || strcmp(strfmt, idfmt)) break; } if (cupsArrayCount(strfmts) != cupsArrayCount(idfmts) || strfmt) { if (pass) { pass = 0; puts("FAIL"); } printf(" Bad translation string \"%s\"\n for \"%s\"\n", abbreviate(msg->str, strbuf, sizeof(strbuf)), abbreviate(msg->msg, idbuf, sizeof(idbuf))); fputs(" Translation formats:", stdout); for (strfmt = (char *)cupsArrayFirst(strfmts); strfmt; strfmt = (char *)cupsArrayNext(strfmts)) printf(" %s", strfmt); fputs("\n Original formats:", stdout); for (idfmt = (char *)cupsArrayFirst(idfmts); idfmt; idfmt = (char *)cupsArrayNext(idfmts)) printf(" %s", idfmt); putchar('\n'); putchar('\n'); } free_formats(idfmts); free_formats(strfmts); } /* * Only allow \\, \n, \r, \t, \", and \### character escapes... */ for (strfmt = msg->str; *strfmt; strfmt ++) { if (*strfmt == '\\') { strfmt ++; if (*strfmt != '\\' && *strfmt != 'n' && *strfmt != 'r' && *strfmt != 't' && *strfmt != '\"' && !isdigit(*strfmt & 255)) { if (pass) { pass = 0; puts("FAIL"); } printf(" Bad escape \\%c in filter message \"%s\"\n" " for \"%s\"\n", strfmt[1], abbreviate(msg->str, strbuf, sizeof(strbuf)), abbreviate(msg->msg, idbuf, sizeof(idbuf))); break; } } } } if (pass) { int count = cupsArrayCount(po); /* Total number of messages */ if (untranslated >= (count / 10) && strcmp(argv[i], "cups.pot")) { /* * Only allow 10% of messages to be untranslated before we fail... */ pass = 0; puts("FAIL"); printf(" Too many untranslated messages (%d of %d or %.1f%% are translated)\n", count - untranslated, count, 100.0 - 100.0 * untranslated / count); } else if (untranslated > 0) printf("PASS (%d of %d or %.1f%% are translated)\n", count - untranslated, count, 100.0 - 100.0 * untranslated / count); else puts("PASS"); } if (!pass) status = 1; _cupsMessageFree(po); } return (status); } /* * 'abbreviate()' - Abbreviate a message string as needed. */ static char * /* O - Abbreviated string */ abbreviate(const char *s, /* I - String to abbreviate */ char *buf, /* I - Buffer */ int bufsize) /* I - Size of buffer */ { char *bufptr; /* Pointer into buffer */ for (bufptr = buf, bufsize -= 4; *s && bufsize > 0; s ++) { if (*s == '\n') { if (bufsize < 2) break; *bufptr++ = '\\'; *bufptr++ = 'n'; bufsize -= 2; } else if (*s == '\t') { if (bufsize < 2) break; *bufptr++ = '\\'; *bufptr++ = 't'; bufsize -= 2; } else if (*s >= 0 && *s < ' ') { if (bufsize < 4) break; snprintf(bufptr, (size_t)bufsize, "\\%03o", *s); bufptr += 4; bufsize -= 4; } else { *bufptr++ = *s; bufsize --; } } if (*s) memcpy(bufptr, "...", 4); else *bufptr = '\0'; return (buf); } /* * 'collect_formats()' - Collect all of the format strings in the msgid. */ static cups_array_t * /* O - Array of format strings */ collect_formats(const char *id) /* I - msgid string */ { cups_array_t *fmts; /* Array of format strings */ char buf[255], /* Format string buffer */ *bufptr; /* Pointer into format string */ fmts = cupsArrayNew(NULL, NULL); while ((id = strchr(id, '%')) != NULL) { if (id[1] == '%') { /* * Skip %%... */ id += 2; continue; } for (bufptr = buf; *id && bufptr < (buf + sizeof(buf) - 1); id ++) { *bufptr++ = *id; if (strchr("CDEFGIOSUXcdeifgopsux", *id)) { id ++; break; } } *bufptr = '\0'; cupsArrayAdd(fmts, strdup(buf)); } return (fmts); } /* * 'free_formats()' - Free all of the format strings. */ static void free_formats(cups_array_t *fmts) /* I - Array of format strings */ { char *s; /* Current string */ for (s = (char *)cupsArrayFirst(fmts); s; s = (char *)cupsArrayNext(fmts)) free(s); cupsArrayDelete(fmts); } cups-2.4.7/locale/Makefile0000644000175000017500000000674114502571342015270 0ustar zdohnalzdohnal# # Locale file makefile for CUPS. # # Copyright © 2021-2023 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 1993-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs OBJS = checkpo.o po2strings.o TARGETS = checkpo po2strings # # Make everything... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: $(RM) $(TARGETS) $(OBJS) # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_LANGUAGES) install-languages: $(INSTALL_DIR) -m 755 $(LOCALEDIR) for loc in en $(LANGUAGES) ; do \ if test -f cups_$$loc.po; then \ $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \ $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \ fi ; \ done install-langbundle: $(INSTALL_DIR) -m 755 "$(BUILDROOT)$(RESOURCEDIR)" $(INSTALL_DATA) cups.strings "$(BUILDROOT)$(RESOURCEDIR)" # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: $(UNINSTALL_LANGUAGES) uninstall-languages: -for loc in en $(LANGUAGES) ; do \ $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \ done uninstall-langbundle: $(RM) "$(BUILDROOT)$(RESOURCEDIR)/cups.strings" # # pot - Creates/updates the cups.pot template file, merges changes into existing # message catalogs, and updates the cups.strings file. We don't use # xgettext to update the cups.strings file due to known xgettext bugs. # pot: checkpo po2strings echo Updating cups.pot... mv cups.pot cups.pot.bck touch cups.pot cd ..; xgettext -o locale/cups.pot -cTRANSLATORS -s \ --keyword=_ --no-wrap --from-code utf-8 \ --copyright-holder="OpenPrinting" \ --package-name="CUPS" --package-version="$(CUPS_VERSION)" \ --msgid-bugs-address="https://github.com/openprinting/cups/issues" \ */*.c */*.cxx (cat cups.header; tail +6 cups.pot) > cups.pot.N mv cups.pot.N cups.pot echo Checking cups.pot... ./checkpo cups.pot for loc in *.po ; do \ if test $$loc = '*.po'; then \ break; \ fi; \ echo Merging changes into $$loc... ; \ msgmerge -o $$loc -s -N --no-location $$loc cups.pot ; \ done echo Updating cups.strings... ./po2strings cups_en.po cups.strings cups.strings: cups_en.po po2strings echo Updating cups.strings... ./po2strings cups_en.po cups.strings # # checkpo - A simple utility to check PO files for correct translation # strings. Dependency on static library is deliberate. # # checkpo filename.po [... filenameN.po] # checkpo: checkpo.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o checkpo checkpo.o \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ checkall: checkpo ./checkpo *.po *.strings # # po2strings - A simple utility which uses iconv to convert GNU gettext # message catalogs to macOS .strings files. # # po2strings filename.po filename.strings # po2strings: po2strings.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o po2strings po2strings.o \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies cups-2.4.7/locale/Dependencies0000644000175000017500000000146714502571342016141 0ustar zdohnalzdohnalcheckpo.o: checkpo.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h po2strings.o: po2strings.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h strings2po.o: strings2po.c cups-2.4.7/install-sh0000755000175000017500000001270414502571342014371 0ustar zdohnalzdohnal#!/bin/sh # # Install a program, script, or datafile. # # Copyright 2008-2012 by Apple Inc. # # This script is not compatible with BSD (or any other) install program, as it # allows owner and group changes to fail with a warning and makes sure that the # destination directory permissions are as specified - BSD install and the # original X11 install script did not change permissions of existing # directories. It also does not support the transform options since CUPS does # not use them... # # Original script from X11R5 (mit/util/scripts/install.sh) # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # Force umask to 022... umask 022 # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" gzipprog="${GZIPPROG-gzip}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" gzipcp() { # gzipcp from to $gzipprog -9 <"$1" >"$2" } while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue ;; -d) dir_arg=true shift continue ;; -m) chmodcmd="$chmodprog $2" shift shift continue ;; -o) chowncmd="$chownprog $2" shift shift continue ;; -g) chgrpcmd="$chgrpprog $2" shift shift continue ;; -s) stripcmd="$stripprog" shift continue ;; -z) instcmd="gzipcp" shift continue ;; *) if [ x"$src" = x ]; then src="$1" else dst="$1" fi shift continue ;; esac done if [ x"$src" = x ]; then echo "install-sh: No input file specified" exit 1 fi if [ x"$dir_arg" != x ]; then dst="$src" src="" if [ -d "$dst" ]; then instcmd=: else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ ! -f "$src" -a ! -d "$src" ]; then echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ]; then echo "install: No destination specified" exit 1 fi # If destination is a directory, append the input filename. if [ -d "$dst" ]; then dst="$dst/`basename $src`" fi fi ## this sed command emulates the dirname command dstdir="`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`" # Make sure that the destination directory exists. # This part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ]; then $doit $mkdirprog "${pathcomp}"; fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ]; then # Make a directory... $doit $instcmd $dst || exit 1 # Allow chown/chgrp to fail, but log a warning if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst || echo "warning: Unable to change owner of $dst!"; fi if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst || echo "warning: Unable to change group of $dst!"; fi if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst || exit 1; fi else # Install a file... dstfile="`basename $dst`" # Check the destination file - for libraries just use the "-x" option # to strip... case "$dstfile" in *.a | *.dylib | *.sl | *.sl.* | *.so | *.so.*) stripopt="-x" ;; *) stripopt="" ;; esac # Make a temp file name in the proper directory. dsttmp="$dstdir/#inst.$$#" # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp || exit 1 # Update permissions and strip as needed, then move to the final name. # If the chmod, strip, rm, or mv commands fail, remove the installed # file... if [ x"$stripcmd" != x ]; then $doit $stripcmd $stripopt "$dsttmp" || echo "warning: Unable to strip $dst!"; fi if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp" || echo "warning: Unable to change owner of $dst!"; fi if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp" || echo "warning: Unable to change group of $dst!"; fi trap "rm -f ${dsttmp}" 0 && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; fi && $doit $rmcmd -f "$dstdir/$dstfile" && $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi exit 0 cups-2.4.7/filter/0000755000175000017500000000000014502571342013646 5ustar zdohnalzdohnalcups-2.4.7/filter/spec-ppd.shtml0000644000175000017500000023271214502571342016441 0ustar zdohnalzdohnal

    PPD File Syntax

    The PPD format is text-based and uses lines of up to 255 characters terminated by a carriage return, linefeed, or combination of carriage return and line feed. The following ABNF definition [RFC5234] defines the general format of lines in a PPD file:

    PPD-FILE = HEADER +(DATA / COMMENT / LINE-END)
    
    HEADER   = "*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END
    
    VERSION  = "4.0" / "4.1" / "4.2" / "4.3"
    
    COMMENT  = "*%" *TCHAR LINE-END
    
    DATA     = "*" 1*KCHAR [ WSP 1*KCHAR [ "/" 1*TCHAR ] ] ":"
               1*(*WSP VALUE) LINE-END
    
    VALUE    = 1*TCHAR / DQUOTE 1*SCHAR DQUOTE
    
    KCHAR    = ALPHA / DIGIT / "_" / "." / "-"
    
    SCHAR    = LINE-END / WSP / %x21.23-7E.A0-FF
    
    TCHAR    = %x20-7E.A0-FF
    
    LINE-END = CR / LF / CR LF
    

    Auto-Configuration

    CUPS supports several methods of auto-configuration via PPD keywords.

    macOS 10.5APAutoSetupTool

    *APAutoSetupTool: "/LibraryPrinters/vendor/filename"

    This macOS keyword defines a program that sets the default option choices. It is run when a printer is added from the Add Printer window or the Nearby Printers list in the Print dialog.

    The program is provided with two arguments: the printer's device URI and the PPD file to be used for the printer. The program must write an updated PPD file to stdout.

    Examples:

    *% Use our setup tool when adding a printer
    *APAutoSetupTool: "/Library/Printers/vendor/Tools/autosetuptool"
    

    macOS 10.2/CUPS 1.4?MainKeyword

    *?MainKeyword: "
    PostScript query code that writes a message using the = operator...
    "
    *End

    The ?MainKeyword keyword defines PostScript code that determines the currently selected/enabled option keyword (choice) for the main keyword (option). It is typically used when communicating with USB, serial, Appletalk, and AppSocket (port 9100) printers.

    The PostScript code typically sends its response back using the = operator.

    Example:

    *OpenUI OptionDuplex/Duplexer Installed: Boolean
    *DuplexOptionDuplex: False
    *OptionDuplex False/Not Installed: ""
    *OptionDuplex True/Installed: ""
    
    *% Query the printer for the presence of the duplexer option...
    *?OptionDuplex: "
      currentpagedevice /Duplex known
      {(True)} {(False)} ifelse
      = flush
    "
    *End
    *CloseUI: OptionDuplex
    

    macOS 10.4/CUPS 1.5OIDMainKeyword

    *?OIDMainKeyword: ".n.n.n..."
    *OIDMainKeyword OptionKeyword1: "value"
    ...
    *OIDMainKeyword OptionKeywordN: "value"

    The OIDMainKeyword keyword is used to define SNMP OIDs that map to installable options. The first (query) line defines the OID to lookup on the network device. The second and subsequent keywords define a mapping from OID value to option keyword. Since SNMP is an IP-based network protocol, this method is typically only used to configure AppSocket, IPP, and LPD network printers.

    Examples:

    *% Get the installed memory on the printer...
    *?OIDInstalledMemory: ".1.3.6.1.2.1.25.2.2.0"
    *OIDInstalledMemory 16MB: "16384 KBytes"
    *OIDInstalledMemory 32MB: "32768 KBytes"
    *OIDInstalledMemory 48MB: "49152 KBytes"
    *OIDInstalledMemory 72MB: "73728 KBytes"
    

    Color Profiles

    CUPS supports three types of color profiles. The first type is based on sRGB and is used by the standard CUPS raster filters and GPL Ghostscript. The second type is based on ICC profiles and is used by the Quartz-based filters on macOS. The final type is based on well-known colorspaces such as sRGB and Adobe RGB.

    Note:

    At this time, none of the CUPS raster filters support ICC profiles. This will be addressed as time and resources permit.

    DeprecatedcupsColorProfile

    *cupsColorProfile Resolution/MediaType: "density gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"

    This string keyword specifies an sRGB-based color profile consisting of gamma and density controls and a 3x3 CMY color transform matrix. This keyword is not supported on macOS.

    The Resolution and MediaType values may be "-" to act as a wildcard. Otherwise they must match one of the Resolution or MediaType option keywords defined in the PPD file.

    The density and gamma values define gamma and density adjustment function such that:

    f(x) = density * x gamma
    

    The m00 through m22 values define a 3x3 transformation matrix for the CMY color values. The density function is applied after the CMY transformation:

    | m00 m01 m02 |
    | m10 m11 m12 |
    | m20 m21 m22 |
    

    Examples:

    *% Specify a profile for printing at 360dpi on all media types
    *cupsColorProfile 360dpi/-: "1.0 1.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    
    *% Specify a profile for printing at 720dpi on Glossy media
    *cupsColorProfile 720dpi/Glossy: "1.0 2.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    
    *% Specify a default profile for printing at all other resolutions and media types
    *cupsColorProfile -/-: "0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    

    macOS 10.3/CUPS 1.2cupsICCProfile

    *cupsICCProfile ColorModel.MediaType.Resolution/Description: "filename"

    This keyword specifies an ICC color profile that is used to convert the document colors to the device colorspace. The ColorModel, MediaType, and Resolution option keywords specify a selector for color profiles. If omitted, the color profile will match any option keyword for the corresponding main keyword.

    The Description specifies human-readable text that is associated with the color profile. The filename portion specifies the ICC color profile to use; if the filename is not absolute, it is loaded relative to the /usr/share/cups/profiles directory.

    Examples:

    *% Specify a profile for CMYK printing at 360dpi on all media types
    *cupsICCProfile CMYK..360dpi/360dpi CMYK: "/Library/Printers/vendor/Profiles/foo-360-cmyk.icc"
    
    *% Specify a profile for RGB printing at 720dpi on Glossy media
    *cupsColorProfile RGB.Glossy.720dpi/720dpi Glossy: "/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc"
    
    *% Specify a default profile for printing at all other resolutions and media types
    *cupsICCProfile ../Default: "/Library/Printers/vendor/Profiles/foo-default.icc"
    

    Customizing the Profile Selection Keywords

    The ColorModel, MediaType, and Resolution main keywords can be reassigned to different main keywords, allowing drivers to do color profile selection based on different parameters. The cupsICCQualifier1, cupsICCQualifier2, and cupsICCQualifier3 keywords define the mapping from selector to main keyword:

    *cupsICCQualifier1: MainKeyword1
    *cupsICCQualifier2: MainKeyword2
    *cupsICCQualifier3: MainKeyword3
    

    The default mapping is as follows:

    *cupsICCQualifier1: ColorModel
    *cupsICCQualifier2: MediaType
    *cupsICCQualifier3: Resolution
    

    macOS 10.4Custom Color Matching Support

    *APSupportsCustomColorMatching: true
    *APCustomColorMatchingName name/text: ""
    *APCustomColorMatchingProfile: profile
    *APDefaultCustomColorMatchingProfile: profile

    These keywords tell the macOS raster filters that the printer driver provides its own custom color matching and that generic color profiles should be used when generating 1-, 3-, and 4-component raster data as requested by the driver. The APCustomColorMatchingProfile and APDefaultColorMatchingProfile keywords specify alternate color profiles (sRGB or AdobeRGB) to use for 3-color (RGB) raster data.

    Note:

    Prior to macOS 10.6, the default RGB color space was Apple's "GenericRGB". The new default in macOS 10.6 and later is "sRGB". For more information, see "macOS v10.6: About gamma 2.2" on Apple's support site.

    macOS 10.5APCustomColorMatchingName

    *APCustomColorMatchingName name/text: ""

    This keyword defines an alternate name for the color matching provided by a driver in the Color Matching print panel. The default is to use the name "Vendor Matching" or its localized equivalent.

    Examples:

    *% Define the names for our color matching...
    *APCustomColorMatchingName name/AcmeColor(tm): ""
    *fr.APCustomColorMatchingName name/La AcmeColor(tm): ""
    

    macOS 10.5APCustomColorMatchingProfile

    *APCustomColorMatchingProfile: name

    This keyword defines a supported RGB color profile that can be used when doing custom color matching. Currently only sRGB, AdobeRGB, and GenericRGB are supported. If not specified, RGB data will use the GenericRGB colorspace.

    Note:

    If you provide multiple APCustomColorMatchingProfile keywords, you are responsible for providing the necessary user interface controls to select the profile in a print dialog pane. Add the named profile to the print settings using the key kPMCustomColorMatchingProfileKey.

    Examples:

    *% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB
    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    *APCustomColorMatchingProfile: sRGB
    *APCustomColorMatchingProfile: AdobeRGB
    

    macOS 10.5APDefaultCustomColorMatchingProfile

    *APDefaultCustomColorMatchingProfile: name

    This keyword defines the default RGB color profile that will be used when doing custom color matching. Currently only sRGB, AdobeRGB, and GenericRGB are supported.

    Examples:

    *% Use sRGB for RGB color by default
    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    

    macOS 10.4APSupportsCustomColorMatching

    *APSupportsCustomColorMatching: boolean

    This keyword specifies that the driver provides its own custom color matching. When true, the default hand-off colorspace will be GenericGray, GenericRGB, or GenericCMYK depending on the number of components the driver requests. The APDefaultCustomColorMatchingProfile keyword can be used to override the default 3-component (RGB) colorspace.

    The default for APSupportsCustomColorMatching is false.

    Examples:

    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    

    Constraints

    Constraints are option choices that are not allowed by the driver or device, for example printing 2-sided transparencies. All versions of CUPS support constraints defined by the legacy Adobe UIConstraints and NonUIConstraints keywords which support conflicts between any two option choices, for example:

    *% Do not allow 2-sided printing on transparency media
    *UIConstraints: "*Duplex *MediaType Transparency"
    *UIConstraints: "*MediaType Transparency *Duplex"
    

    While nearly all constraints can be expressed using these keywords, there are valid scenarios requiring constraints between more than two option choices. In addition, resolution of constraints is problematic since users and software have to guess how a particular constraint is best resolved.

    CUPS 1.4 and higher define two new keywords for constraints, cupsUIConstraints and cupsUIResolver. Each cupsUIConstraints keyword points to a cupsUIResolver keyword which specifies alternate options that resolve the conflict condition. The same cupsUIResolver can be used by multiple cupsUIConstraints.

    Note:

    When developing PPD files that contain constraints, it is very important to use the cupstestppd(1) program to verify that your constraints are accurate and cannot result in unresolvable option selections.

    CUPS 1.4/macOS 10.6cupsUIConstraints

    *cupsUIConstraints resolver: "*Keyword1 *Keyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 *Keyword2 OptionKeyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."
    *cupsUIConstraints: "*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."

    Lists two or more options which conflict. The "resolver" string is a (possibly unique) keyword which specifies which options to change when the constraint exists. When no resolver is provided, CUPS first tries the default choice followed by testing each option choice to resolve the conflict.

    Examples:

    *% Specify that 2-sided printing cannot happen on transparencies
    *cupsUIConstraints transparency: "*Duplex *MediaType Transparency"
    
    *% Specify that envelope printing cannot happen from the paper trays
    *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
    *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
    *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
    *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
    
    *% Specify an installable option constraint for the envelope feeder
    *cupsUIConstraints: "*InputSlot EnvFeeder *InstalledEnvFeeder"
    
    *% Specify that photo printing cannot happen on plain paper or transparencies at 1200dpi
    *cupsUIConstraints photo: "*OutputMode Photo *MediaType Plain *Resolution 1200dpi"
    *cupsUIConstraints photo: "*OutputMode Photo *MediaType Transparency *Resolution 1200dpi"
    

    CUPS 1.4/macOS 10.6cupsUIResolver

    *cupsUIResolver resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."

    Specifies two or more options to mark/select to resolve a constraint. The "resolver" string identifies a particular action to take for one or more cupsUIConstraints. The same action can be used for multiple constraints. The option keyword pairs are treated as an ordered list of option selections to try - only the first N selections will be used, where N is the minimum number of selections required. Because cupsResolveConflicts() will not change the most recent option selection passed to it, at least two options from the constraints must be listed to avoid situations where conflicts cannot be resolved.

    Examples:

    *% Specify the options to change for the 2-sided transparency constraint
    *cupsUIResolver transparency: "*Duplex None *MediaType Plain"
    
    *% Specify the options to change for the envelope printing constraints.  Notice
    *% that we try to change the InputSlot to either the envelope feeder or the
    *% manual feed first, then we change the page size...
    *cupsUIResolver envelope: "*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter"
    
    *% Specify the options to change for the photo printing constraints
    *cupsUIResolver photo: "*OutputMode Best *Resolution 600dpi"
    

    Globalized PPD Support

    CUPS 1.2 and higher adds support for PPD files containing multiple languages by following the following additional rules:

    1. The LanguageVersion MUST be English
    2. The LanguageEncoding MUST be ISOLatin1
    3. The cupsLanguages keyword MUST be provided and list each of the supported locales in the PPD file
    4. Main and option keywords MUST NOT exceed 34 (instead of 40) characters to allow room for the locale prefixes in translation keywords
    5. The main keyword "Translation" MUST NOT be used
    6. Translation strings included with the main and option keywords MUST NOT contain characters outside the ASCII subset of ISOLatin1 and UTF-8; developers wishing to use characters outside ASCII MUST provide a separate set of English localization keywords for the affected keywords.
    7. Localizations are specified using a locale prefix of the form "ll" or "ll_CC." where "ll" is the 2-letter ISO language code and "CC" is the 2-letter ISO country code
      • A generic language translation ("ll") SHOULD be provided with country-specific differences ("ll_CC") provided only as needed
      • For historical reasons, the "zh" and "zh_CN" locales map to Simplified Chinese while the "zh_TW" locale maps to Traditional Chinese
    8. Locale-specific translation strings MUST be encoded using UTF-8.
    9. Main keywords MUST be localized using one of the following forms:

      *ll.Translation MainKeyword/translation text: ""
      *ll_CC.Translation MainKeyword/translation text: ""

    10. Option keywords MUST be localized using one of the following forms:

      *ll.MainKeyword OptionKeyword/translation text: ""
      *ll_CC.MainKeyword OptionKeyword/translation text: ""

    11. Localization keywords MAY appear anywhere after the first line of the PPD file
    Note:

    We use a LanguageEncoding value of ISOLatin1 and limit the allowed base translation strings to ASCII to avoid character coding issues that would otherwise occur. In addition, requiring the base translation strings to be in English allows for easier fallback translation when no localization is provided in the PPD file for a given locale.

    Examples:

    *LanguageVersion: English
    *LanguageEncoding: ISOLatin1
    *cupsLanguages: "de fr_CA"
    *ModelName: "Foobar Laser 9999"
    
    *% Localize ModelName for French and German
    *fr_CA.Translation ModelName/La Foobar Laser 9999: ""
    *de.Translation ModelName/Foobar LaserDrucken 9999: ""
    
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
    *% Localize printer-state-reason for French and German
    *fr_CA.cupsIPPReason com.vendor-error/Une erreur sèrieuse s'est produite: "/help/com.vendor/error.html"
    *de.cupsIPPReason com.vendor-error/Eine ernste Störung trat: "/help/com.vendor/error.html"
    
    ...
    
    *OpenUI *InputSlot/Paper Source: PickOne
    *OrderDependency: 10 AnySetup *InputSlot
    *DefaultInputSlot: Auto
    *% Localize InputSlot for French and German
    *fr_CA.Translation InputSlot/Papier source: ""
    *de.Translation InputSlot/Papiereinzug: ""
    *InputSlot Auto/Default: "<</ManualFeed false>>setpagedevice"
    *% Localize InputSlot=Auto for French and German
    *fr_CA.InputSlot Auto/Par Defaut: ""
    *de.InputSlot Auto/Standard: ""
    *InputSlot Manual/Manual Feed: "<</ManualFeed true>>setpagedevice"
    *% Localize InputSlot=Manual for French and German
    *fr_CA.InputSlot Manual/Manuel mecanisme de alimentation: ""
    *de.InputSlot Manual/Manueller Einzug: ""
    *CloseUI: *InputSlot
    

    CUPS 1.3/macOS 10.6Custom Options

    CUPS supports custom options using an extension of the CustomPageSize and ParamCustomPageSize syntax:

    *CustomFoo True: "command"
    *ParamCustomFoo Name1/Text 1: order type minimum maximum
    *ParamCustomFoo Name2/Text 2: order type minimum maximum
    ...
    *ParamCustomFoo NameN/Text N: order type minimum maximum
    

    When the base option is part of the JCLSetup section, the "command" string contains JCL commands with "\order" placeholders for each numbered parameter. The CUPS API handles any necessary value quoting for HP-PJL commands. For example, if the JCL command string is "@PJL SET PASSCODE=\1" and the first option value is "1234" then CUPS will output the string "@PJL SET PASSCODE=1234".

    For non-JCLSetup options, the "order" value is a number from 1 to N and specifies the order of values as they are placed on the stack before the command. For example, if the PostScript command string is "<</cupsReal1 2 1 roll>>setpagedevice" and the option value is "2.0" then CUPS will output the string "2.0 <</cupsReal1 2 1 roll>>setpagedevice".

    The "type" is one of the following keywords:

    • curve - a real value from "minimum" to "maximum" representing a gamma correction curve using the function: f(x) = x value
    • int - an integer value from "minimum" to "maximum"
    • invcurve - a real value from "minimum" to "maximum" representing a gamma correction curve using the function: f(x) = x 1 / value
    • passcode - a string of numbers value with a minimum of "minimum" numbers and a maximum of "maximum" numbers ("minimum" and "maximum" are numbers and passcode strings are not displayed in the user interface)
    • password - a string value with a minimum of "minimum" characters and a maximum of "maximum" characters ("minimum" and "maximum" are numbers and password strings are not displayed in the user interface)
    • points - a measurement value in points from "minimum" to "maximum"
    • real - a real value from "minimum" to "maximum"
    • string - a string value with a minimum of "minimum" characters and a maximum of "maximum" characters ("minimum" and "maximum" are numbers)

    Examples:

    *% Base JCL key code option
    *JCLOpenUI JCLPasscode/Key Code: PickOne
    *OrderDependency: 10 JCLSetup *JCLPasscode
    *DefaultJCLPasscode: None
    *JCLPasscode None/No Code: ""
    *JCLPasscode 1111: "@PJL SET PASSCODE = 1111<0A>"
    *JCLPasscode 2222: "@PJL SET PASSCODE = 2222<0A>"
    *JCLPasscode 3333: "@PJL SET PASSCODE = 3333<0A>"
    *JCLCloseUI: *JCLPasscode
    
    *% Custom JCL key code option
    *CustomJCLPasscode True: "@PJL SET PASSCODE = \1<0A>"
    *ParamCustomJCLPasscode Code/Key Code: 1 passcode 4 4
    
    
    *% Base PostScript watermark option
    *OpenUI WatermarkText/Watermark Text: PickOne
    *OrderDependency: 10 AnySetup *WatermarkText
    *DefaultWatermarkText: None
    *WatermarkText None: ""
    *WatermarkText Draft: "<</cupsString1(Draft)>>setpagedevice"
    *CloseUI: *WatermarkText
    
    *% Custom PostScript watermark option
    *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice"
    *ParamCustomWatermarkText Text: 1 string 0 32
    
    
    *% Base PostScript gamma/density option
    *OpenUI GammaDensity/Gamma and Density: PickOne
    *OrderDependency: 10 AnySetup *GammaDensity
    *DefaultGammaDensity: Normal
    *GammaDensity Normal/Normal: "<</cupsReal1 1.0/cupsReal2 1.0>>setpagedevice"
    *GammaDensity Light/Lighter: "<</cupsReal1 0.9/cupsReal2 0.67>>setpagedevice"
    *GammaDensity Dark/Darker: "<</cupsReal1 1.1/cupsReal2 1.5>>setpagedevice"
    *CloseUI: *GammaDensity
    
    *% Custom PostScript gamma/density option
    *CustomGammaDensity True: "<</cupsReal1 3 -1 roll/cupsReal2 5 -1>>setpagedevice"
    *ParamCustomGammaDensity Gamma: 1 curve 0.1 10
    *ParamCustomGammaDensity Density: 2 real 0 2
    

    Writing PostScript Option Commands for Raster Drivers

    PPD files are used for both PostScript and non-PostScript printers. For CUPS raster drivers, you use a subset of the PostScript language to set page device keywords such as page size, resolution, and so forth. For example, the following code sets the page size to A4 size:

    *PageSize A4: "<</PageSize[595 842]>>setpagedevice"
    

    Custom options typically use other operators to organize the values into a key/value dictionary for setpagedevice. For example, our previous CustomWatermarkText option code uses the roll operator to move the custom string value into the dictionary for setpagedevice:

    *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice"
    

    For a custom string value of "My Watermark", CUPS will produce the following PostScript code for the option:

    (My Watermark)
    <</cupsString1 3 -1 roll>>setpagedevice
    

    The code moves the string value ("My Watermark") from the bottom of the stack to the top, creating a dictionary that looks like:

    <</cupsString1(My Watermark)>>setpagedevice
    

    The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.

    Custom Page Size Code

    There are many possible implementations of the CustomPageSize code. For CUPS raster drivers, the following code is recommended:

    *ParamCustomPageSize Width:        1 points min-width max-width
    *ParamCustomPageSize Height:       2 points min-height max-height
    *ParamCustomPageSize WidthOffset:  3 points 0 0
    *ParamCustomPageSize HeightOffset: 4 points 0 0
    *ParamCustomPageSize Orientation:  5 int 0 0
    *CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
    

    Supported PostScript Operators

    CUPS supports the following PostScript operators in addition to the usual PostScript number, string (literal and hex-encoded), boolean, null, and name values:

    • << - Start a dictionary.
    • >> - End a dictionary.
    • [ - Start an array.
    • ] - End an array.
    • copy - Copy the top N objects on the stack.
    • dup - Copy the top object on the stack.
    • index - Copy the Nth from the top object on the stack.
    • pop - Pop the top object on the stack.
    • roll - Shift the top N objects on the stack.
    • setpagedevice - Set the page header values according to the key/value dictionary on the stack.
    Note:

    Never use the unsupported dict or put operators in your option code. These operators are typically used in option code dating back to Level 1 PostScript printers, which did not support the simpler << or >> operators. If you have old option code using dict or put, you can rewrite it very easily to use the newer << and >> operators instead. For example, the following code to set the page size:

    1 dict dup /PageSize [612 792] put setpagedevice
    

    can be rewritten as:

    << /PageSize [612 792] >> setpagedevice
    

    Supported Page Device Attributes

    Table 2 shows the supported page device attributes along with PostScript code examples.

    Table 2: Supported Page Device Attributes
    Name(s) Type Description Example(s)
    AdvanceDistance Integer Specifies the number of points to advance roll media after printing. <</AdvanceDistance 18>>setpagedevice
    AdvanceMedia Integer Specifies when to advance the media: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</AdvanceMedia 4>>setpagedevice
    Collate Boolean Specifies whether collated copies are required. <</Collate true>>setpagedevice
    CutMedia Integer Specifies when to cut the media: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</CutMedia 1>>setpagedevice
    Duplex Boolean Specifies whether 2-sided printing is required. <</Duplex true>>setpagedevice
    HWResolution Integer Array Specifies the resolution of the page image in pixels per inch. <</HWResolution[1200 1200]>>setpagedevice
    InsertSheet Boolean Specifies whether to insert a blank sheet before the job. <</InsertSheet true>>setpagedevice
    Jog Integer Specifies when to shift the media in the output bin: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</Jog 2>>setpagedevice
    LeadingEdge Integer Specifies the leading edge of the media: 0 = top, 1 = right, 2 = bottom, 3 = left. <</LeadingEdge 0>>setpagedevice
    ManualFeed Boolean Specifies whether media should be drawn from the manual feed tray. Note: The MediaPosition attribute is preferred over the ManualFeed attribute. <</ManualFeed true>>setpagedevice
    MediaClass String Specifies a named media. <</MediaClass (Invoices)>>setpagedevice
    MediaColor String Specifies the color of the media. <</MediaColor >>setpagedevice
    MediaPosition Integer Specifies the tray or source of the media. <</MediaPosition 12>>setpagedevice
    MediaType String Specifies the general media type. <</MediaType (Glossy)>>setpagedevice
    MediaWeight Integer Specifies the media weight in grams per meter2. <</MediaWeight 100>>setpagedevice
    MirrorPrint Boolean Specifies whether to flip the output image horizontally. <</MirrorPrint true>>setpagedevice
    NegativePrint Boolean Specifies whether to invert the output image. <</NegativePrint true>>setpagedevice
    NumCopies Integer Specifies the number of copies to produce of each page. <</NumCopies 100>>setpagedevice
    Orientation Integer Specifies the orientation of the output: 0 = portrait, 1 = landscape rotated counter-clockwise, 2 = upside-down, 3 = landscape rotated clockwise. <</Orientation 3>>setpagedevice
    OutputFaceUp Boolean Specifies whether to place the media face-up in the output bin/tray. <</OutputFaceUp true>>setpagedevice
    OutputType String Specifies the output type name. <</OutputType (Photo)>>setpagedevice
    PageSize Integer/Real Array Specifies the width and length/height of the page in points. <</PageSize[595 842]>>setpagedevice
    Separations Boolean Specifies whether to produce color separations. <</Separations true>>setpagedevice
    TraySwitch Boolean Specifies whether to switch trays automatically. <</TraySwitch true>>setpagedevice
    Tumble Boolean Specifies whether the back sides of pages are rotated 180 degrees. <</Tumble true>>setpagedevice
    cupsBorderlessScalingFactor Real Specifies the amount to scale the page image dimensions. <</cupsBorderlessScalingFactor 1.01>>setpagedevice
    cupsColorOrder Integer Specifies the order of colors: 0 = chunked, 1 = banded, 2 = planar. <</cupsColorOrder 0>>setpagedevice
    cupsColorSpace Integer Specifies the page image colorspace: 0 = W, 1 = RGB, 2 = RGBA, 3 = K, 4 = CMY, 5 = YMC, 6 = CMYK, 7 = YMCK, 8 = KCMY, 9 = KCMYcm, 10 = GMCK, 11 = GMCS, 12 = White, 13 = Gold, 14 = Silver, 15 = CIE XYZ, 16 = CIE Lab, 17 = RGBW, 32 to 46 = CIE Lab (1 to 15 inks) <</cupsColorSpace 1 >>setpagedevice
    cupsCompression Integer Specifies a driver compression type/mode. <</cupsCompression 2>>setpagedevice
    cupsInteger0
    ...
    cupsInteger15
    Integer Specifies driver integer values. <</cupsInteger11 1234>>setpagedevice
    cupsMarkerType String Specifies the type of ink/toner to use. <</cupsMarkerType (Black+Color)>>setpagedevice
    cupsMediaType Integer Specifies a numeric media type. <</cupsMediaType 999>>setpagedevice
    cupsPageSizeName String Specifies the name of the page size. <</cupsPageSizeName (A4.Full)>>setpagedevice
    cupsPreferredBitsPerColor Integer Specifies the preferred number of bits per color, typically 8 or 16. <</cupsPreferredBitsPerColor 16>>setpagedevice
    cupsReal0
    ...
    cupsReal15
    Real Specifies driver real number values. <</cupsReal15 1.234>>setpagedevice
    cupsRenderingIntent String Specifies the color rendering intent. <</cupsRenderingIntent (AbsoluteColorimetric)>>setpagedevice
    cupsRowCount Integer Specifies the number of rows of raster data to print on each line for some drivers. <</cupsRowCount 24>>setpagedevice
    cupsRowFeed Integer Specifies the number of rows to feed between passes for some drivers. <</cupsRowFeed 17>>setpagedevice
    cupsRowStep Integer Specifies the number of lines between columns/rows on the print head for some drivers. <</cupsRowStep 2>>setpagedevice
    cupsString0
    ...
    cupsString15
    String Specifies driver string values. <</cupsString0(String Value)>>setpagedevice

    Media Keywords

    The CUPS media keywords allow drivers to specify alternate custom page size limits based on up to two options.

    CUPS 1.4/macOS 10.6cupsMediaQualifier2

    *cupsMediaQualifier2: MainKeyword

    This keyword specifies the second option to use for overriding the custom page size limits.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMediaQualifier3

    *cupsMediaQualifier3: MainKeyword

    This keyword specifies the third option to use for overriding the custom page size limits.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMinSize

    *cupsMinSize .Qualifier2.Qualifier3: "width length"
    *cupsMinSize .Qualifier2.: "width length"
    *cupsMinSize ..Qualifier3: "width length"

    This keyword specifies alternate minimum custom page sizes in points. The cupsMediaQualifier2 and cupsMediaQualifier3 keywords are used to identify options to use for matching.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMaxSize

    *cupsMaxSize .Qualifier2.Qualifier3: "width length"
    *cupsMaxSize .Qualifier2.: "width length"
    *cupsMaxSize ..Qualifier3: "width length"

    This keyword specifies alternate maximum custom page sizes in points. The cupsMediaQualifier2 and cupsMediaQualifier3 keywords are used to identify options to use for matching.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsPageSizeCategory

    *cupsPageSizeCategory name/text: "name name2 ... nameN"

    This keyword lists related paper size names that should be grouped together in the Print or Page Setup dialogs. The "name" portion of the keyword specifies the root/default size for the grouping. On macOS the grouped paper sizes are shown in a submenu of the main paper size. When omitted, sizes with the same dimensions are automatically grouped together, for example "Letter" and "Letter.Borderless".

    Example:

    *% Specify grouping of borderless/non-borderless sizes
    *cupsPageSizeCategory Letter/US Letter: "Letter Letter.Borderless"
    *cupsPageSizeCategory A4/A4: "A4 A4.Borderless"
    

    General Attributes

    CUPS 1.3/macOS 10.5cupsBackSide

    *cupsBackSide: keyword

    This keyword requests special handling of the back side of pages when doing duplexed (2-sided) output. Table 1 shows the supported keyword values for this keyword and their effect on the raster data sent to your driver. For example, when cupsBackSide is Rotated and Tumble is false, your driver will receive print data starting at the bottom right corner of the page, with each line going right-to-left instead of left-to-right. The default value is Normal.

    Note:

    cupsBackSide replaces the older cupsFlipDuplex keyword - if cupsBackSide is specified, cupsFlipDuplex will be ignored.

    Table 1: Back Side Raster Coordinate System
    cupsBackSide Tumble Value Image Presentation
    Normal false Left-to-right, top-to-bottom
    Normal true Left-to-right, top-to-bottom
    ManualTumble false Left-to-right, top-to-bottom
    ManualTumble true Right-to-left, bottom-to-top
    Rotated false Right-to-left, bottom-to-top
    Rotated true Right-to-left, top-to-bottom
    Flipped * false Left-to-right, bottom-to-top
    Flipped * true Right-to-left, top-to-bottom

    * - Not supported in macOS 10.5.x and earlier

    Figure 1: Back side images
    Back side images

    Examples:

    *% Flip the page image for the back side of duplexed output
    *cupsBackSide: Flipped
    
    *% Rotate the page image for the back side of duplexed output
    *cupsBackSide: Rotated
    

    Also see the related APDuplexRequiresFlippedMargin keyword.

    CUPS 1.4/macOS 10.6cupsCommands

    *cupsCommands: "name name2 ... nameN"

    This string keyword specifies the commands that are supported by the CUPS command file filter for this device. The command names are separated by whitespace.

    Example:

    *% Specify the list of commands we support
    *cupsCommands: "AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo"
    

    CUPS 1.3/macOS 10.5cupsEvenDuplex

    *cupsEvenDuplex: boolean

    This boolean keyword notifies the RIP filters that the destination printer requires an even number of pages when 2-sided printing is selected. The default value is false.

    Example:

    *% Always send an even number of pages when duplexing
    *cupsEvenDuplex: true
    

    cupsFax

    *cupsFax: boolean

    This boolean keyword specifies whether the PPD defines a facsimile device. The default is false.

    Examples:

    *cupsFax: true
    

    cupsFilter

    *cupsFilter: "source/type cost program"

    This string keyword provides a conversion rule from the given source type to the printer's native format using the filter "program". If a printer supports the source type directly, the special filter program "-" may be specified.

    Examples:

    *% Standard raster printer driver filter
    *cupsFilter: "application/vnd.cups-raster 100 rastertofoo"
    
    *% Plain text filter
    *cupsFilter: "text/plain 10 texttofoo"
    
    *% Pass-through filter for PostScript printers
    *cupsFilter: "application/vnd.cups-postscript 0 -"
    

    CUPS 1.5cupsFilter2

    *cupsFilter2: "source/type destination/type cost program"

    This string keyword provides a conversion rule from the given source type to the printer's native format using the filter "program". If a printer supports the source type directly, the special filter program "-" may be specified. The destination type is automatically created as needed and is passed to the filters and backend as the FINAL_CONTENT_TYPE value.

    Note:

    The presence of a single cupsFilter2 keyword in the PPD file will hide any cupsFilter keywords from the CUPS scheduler. When using cupsFilter2 to provide filters specific for CUPS 1.5 and later, provide a cupsFilter2 line for every filter and a cupsFilter line for each filter that is compatible with older versions of CUPS.

    Examples:

    *% Standard raster printer driver filter
    *cupsFilter2: "application/vnd.cups-raster application/vnd.foo 100 rastertofoo"
    
    *% Plain text filter
    *cupsFilter2: "text/plain application/vnd.foo 10 texttofoo"
    
    *% Pass-through filter for PostScript printers
    *cupsFilter2: "application/vnd.cups-postscript application/postscript 0 -"
    

    CUPS 2.3cupsFinishingTemplate

    *cupsFinishingTemplate name/text: ""

    This option keyword specifies a finishing template (preset) that applies zero or more finishing processes to a job. Unlike cupsIPPFinishings, only one template can be selected by the user. PPD files also generally apply a constraint between this option and other finishing options like Booklet, FoldType, PunchMedia, and StapleWhen.

    Examples:

    *cupsFinishingTemplate none/None: ""
    *cupsFinishingTemplate fold/Letter Fold: ""
    *cupsFinishingTemplate punch/2/3-Hole Punch: ""
    *cupsFinishingTemplate staple/Corner Staple: ""
    *cupsFinishingTemplate staple-dual/Double Staple: ""
    *cupsFinishingTemplate staple-and-fold/Corner Staple and Letter Fold: ""
    *cupsFinishingTemplate staple-and-punch/Corner Staple and 2/3-Hole Punch: ""
    

    DeprecatedcupsFlipDuplex

    *cupsFlipDuplex: boolean

    Due to implementation differences between macOS and Ghostscript, the cupsFlipDuplex keyword is deprecated. Instead, use the cupsBackSide keyword to specify the coordinate system (pixel layout) of the page data on the back side of duplex pages.

    The value true maps to a cupsBackSide value of Rotated on macOS and Flipped with Ghostscript.

    The default value is false.

    Note:

    macOS drivers that previously used cupsFlipDuplex may wish to provide both the old and new keywords for maximum compatibility, for example:

    *cupsBackSide: Rotated
    *cupsFlipDuplex: true
    

    Similarly, drivers written for other operating systems using Ghostscript can use:

    *cupsBackSide: Flipped
    *cupsFlipDuplex: true
    

    CUPS 1.3/macOS 10.5cupsIPPFinishings

    *cupsIPPFinishings number/text: "*Option Choice ..."

    This keyword defines a mapping from IPP finishings values to PPD options and choices.

    Examples:

    *cupsIPPFinishings 4/staple: "*StapleLocation SinglePortrait"
    *cupsIPPFinishings 5/punch: "*PunchMedia Yes *PunchLocation LeftSide"
    *cupsIPPFinishings 20/staple-top-left: "*StapleLocation SinglePortrait"
    *cupsIPPFinishings 21/staple-bottom-left: "*StapleLocation SingleLandscape"
    

    CUPS 1.3/macOS 10.5cupsIPPReason

    *cupsIPPReason reason/Reason Text: "optional URIs"

    This optional keyword maps custom printer-state-reasons keywords that are generated by the driver to human readable text. The optional URIs string contains zero or more URIs separated by a newline. Each URI can be a CUPS server absolute path to a help file under the scheduler's DocumentRoot directory, a full HTTP URL ("http://www.domain.com/path/to/help/page.html"), or any other valid URI which directs the user at additional information concerning the condition that is being reported.

    Since the reason text is limited to 80 characters by the PPD specification, longer text strings can be included by URI-encoding the text with the "text" scheme, for example "text:some%20text". Multiple text URIs are combined by the ppdLocalizeIPPReason into a single string that can be displayed to the user.

    Examples:

    *% Map com.vendor-error to text but no page
    *cupsIPPReason com.vendor-error/A serious error occurred: ""
    
    *% Map com.vendor-error to more than 80 characters of text but no page
    *cupsIPPReason com.vendor-error/A serious error occurred: "text:Now%20is%20the%20time
    text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country."
    
    *% Map com.vendor-error to text and a local page
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
    
    *% Map com.vendor-error to text and a remote page
    *cupsIPPReason com.vendor-error/A serious error occurred: "http://www.vendor.com/help"
    
    *% Map com.vendor-error to text and a local, Apple help book, and remote page
    *APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html
    help:anchor='com.vendor-error'%20bookID=Vendor%20Help
    http://www.vendor.com/help"
    *End
    

    CUPS 1.5cupsIPPSupplies

    *cupsIPPSupplies: boolean

    This keyword tells the IPP backend whether it should report the current marker-xxx supply attribute values. The default value is True.

    Example:

    *% Do not use IPP marker-xxx attributes to report supply levels
    *cupsIPPSupplies: False
    

    CUPS 1.7/macOS 10.9cupsJobAccountId

    *cupsJobAccountId: boolean

    This keyword defines whether the printer accepts the job-account-id IPP attribute.

    Example:

    *% Specify the printer accepts the job-account-id IPP attribute.
    *cupsJobAccountId: True
    

    CUPS 1.7/macOS 10.9cupsJobAccountingUserId

    *cupsJobAccountingUserId: boolean

    This keyword defines whether the printer accepts the job-accounting-user-id IPP attribute.

    Example:

    *% Specify the printer accepts the job-accounting-user-id IPP attribute.
    *cupsJobAccountingUserId: True
    

    CUPS 1.7/macOS 10.9cupsJobPassword

    *cupsJobPassword: "format"

    This keyword defines the format of the "job-password" IPP attribute, if supported by the printer. The following format characters are supported:

    • 1: US ASCII digits.
    • A: US ASCII letters.
    • C: US ASCII letters, numbers, and punctuation.
    • .: Any US ASCII printable character (0x20 to 0x7e).
    • N: Any Unicode digit character.
    • U: Any Unicode letter character.
    • *: Any Unicode (utf-8) character.

    The format characters are repeated to indicate the length of the password string. For example, "1111" indicated a 4-digit US ASCII PIN code.

    Example:

    *% Specify the printer supports 4-digit PIN codes.
    *cupsJobPassword: "1111"
    

    CUPS 1.2/macOS 10.5cupsLanguages

    *cupsLanguages: "locale list"

    This keyword describes which language localizations are included in the PPD. The "locale list" string is a space-delimited list of locale names ("en", "en_US", "fr_CA", etc.)

    Example:

    *% Specify Canadian, UK, and US English, and Canadian and French French
    *cupsLanguages: "en_CA en_UK en_US fr_CA fr_FR"
    

    CUPS 1.7/macOS 10.9cupsMandatory

    *cupsMandatory: "attribute1 attribute2 ... attributeN"

    This keyword defines a list of IPP attributes that must be provided when submitting a print job creation request.

    Example:

    *% Specify that the user must supply a job-password
    *cupsMandatory: "job-password job-password-encryption"
    

    cupsManualCopies

    *cupsManualCopies: boolean

    This boolean keyword notifies the RIP filters that the destination printer does not support copy generation in hardware. The default value is false.

    Example:

    *% Tell the RIP filters to generate the copies for us
    *cupsManualCopies: True
    

    CUPS 1.4/macOS 10.6cupsMarkerName

    *cupsMarkerName/Name Text: ""

    This optional keyword maps marker-names strings that are generated by the driver to human readable text.

    Examples:

    *% Map cyanToner to "Cyan Toner"
    *cupsMarkerName cyanToner/Cyan Toner: ""
    

    CUPS 1.4/macOS 10.6cupsMarkerNotice

    *cupsMarkerNotice: "disclaimer text"

    This optional keyword provides disclaimer text for the supply level information provided by the driver, typically something like "supply levels are approximate".

    Examples:

    *cupsMarkerNotice: "Supply levels are approximate."
    

    CUPS 1.6/macOS 10.8cupsMaxCopies

    *cupsMaxCopies: integer

    This integer keyword notifies the filters that the destination printer supports up to N copies in hardware. The default value is 9999.

    Example:

    *% Tell the RIP filters we can do up to 99 copies
    *cupsMaxCopies: 99
    

    cupsModelNumber

    *cupsModelNumber: number

    This integer keyword specifies a printer-specific model number. This number can be used by a filter program to adjust the output for a specific model of printer.

    Example:

    *% Specify an integer for a driver-specific model number
    *cupsModelNumber: 1234
    

    CUPS 1.3/macOS 10.5cupsPJLCharset

    *cupsPJLCharset: "ISO character set name"

    This string keyword specifies the character set that is used for strings in PJL commands. If not specified, US-ASCII is assumed.

    Example:

    *% Specify UTF-8 is used in PJL strings
    *cupsPJLCharset: "UTF-8"
    

    CUPS 1.4/macOS 10.6cupsPJLDisplay

    *cupsPJLDisplay: "what"

    This optional keyword specifies which command is used to display the job ID, name, and user on the printer's control panel. "What" is either "none" to disable this functionality, "job" to use "@PJL JOB DISPLAY", or "rdymsg" to use "@PJL RDYMSG DISPLAY". The default is "job".

    Examples:

    *% Display job information using @PJL SET RDYMSG DISPLAY="foo"
    *cupsPJLDisplay: "rdymsg"
    
    *% Display job information display
    *cupsPJLDisplay: "none"
    

    CUPS 1.2/macOS 10.5cupsPortMonitor

    *cupsPortMonitor urischeme/Descriptive Text: "port monitor"

    This string keyword specifies printer-specific "port monitor" filters that may be used with the printer. The CUPS scheduler also looks for the Protocols keyword to see if the BCP or TBCP protocols are supported. If so, the corresponding port monitor ("bcp" and "tbcp", respectively) is listed in the printer's port-monitor-supported keyword.

    The "urischeme" portion of the keyword specifies the URI scheme that this port monitor should be used for. Typically this is used to pre-select a particular port monitor for each type of connection that is supported by the printer. The "port monitor" string can be "none" to disable the port monitor for the given URI scheme.

    Examples:

    *% Specify a PostScript printer that supports the TBCP protocol
    *Protocols: TBCP PJL
    
    *% Specify that TBCP should be used for socket connections but not USB
    *cupsPortMonitor socket/AppSocket Printing: "tbcp"
    *cupsPortMonitor usb/USB Printing: "none"
    
    *% Specify a printer-specific port monitor for an Epson USB printer
    *cupsPortMonitor usb/USB Status Monitor: "epson-usb"
    

    CUPS 1.3/macOS 10.5cupsPreFilter

    *cupsPreFilter: "source/type cost program"

    This string keyword provides a pre-filter rule. The pre-filter program will be inserted in the conversion chain immediately before the filter that accepts the given MIME type.

    Examples:

    *% PDF pre-filter
    *cupsPreFilter: "application/pdf 100 mypdfprefilter"
    
    *% PNG pre-filter
    *cupsPreFilter: "image/png 0 mypngprefilter"
    

    CUPS 1.5cupsPrintQuality

    *cupsPrintQuality keyword/text: "code"

    This UI keyword defines standard print qualities that directly map from the IPP "print-quality" job template keyword. Standard keyword values are "Draft", "Normal", and "High" which are mapped from the IPP "print-quality" values 3, 4, and 5 respectively. Each cupsPrintQuality option typically sets output mode and resolution parameters in the page device dictionary, eliminating the need for separate (and sometimes confusing) output mode and resolution options.

    Note:

    Unlike all of the other keywords defined in this document, cupsPrintQuality is a UI keyword that MUST be enclosed inside the PPD OpenUI and CloseUI keywords.

    Examples:

    *OpenUI *cupsPrintQuality/Print Quality: PickOne
    *OrderDependency: 10 AnySetup *cupsPrintQuality
    *DefaultcupsPrintQuality: Normal
    *cupsPrintQuality Draft/Draft: "code"
    *cupsPrintQuality Normal/Normal: "code"
    *cupsPrintQuality High/Photo: "code"
    *CloseUI: *cupsPrintQuality
    

    CUPS 1.5cupsSingleFile

    *cupsSingleFile: Boolean

    This boolean keyword tells the scheduler whether to print multiple files in a job together or singly. The default is "False" which uses a single instance of the backend for all files in the print job. Setting this keyword to "True" will result in separate instances of the backend for each file in the print job.

    Examples:

    *% Send all print data to a single backend
    *cupsSingleFile: False
    
    *% Send each file using a separate backend
    *cupsSingleFile: True
    

    CUPS 1.4/macOS 10.6cupsSNMPSupplies

    *cupsSNMPSupplies: boolean

    This keyword tells the standard network backends whether they should query the standard SNMP Printer MIB OIDs for supply levels. The default value is True.

    Example:

    *% Do not use SNMP queries to report supply levels
    *cupsSNMPSupplies: False
    

    cupsVersion

    *cupsVersion: major.minor

    This required keyword describes which version of the CUPS PPD file extensions was used. Currently it must be the string "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", or "1.6".

    Example:

    *% Specify a CUPS 1.2 driver
    *cupsVersion: "1.2"
    

    CUPS 1.6/macOS 10.8JCLToPDFInterpreter

    *JCLToPDFInterpreter: "JCL"

    This keyword provides the JCL command to insert a PDF job file into a printer-ready data stream. The JCL command is added after the JCLBegin value and any commands for JCL options in the PPD file.

    Example:

    *% PJL command to start the PDF interpreter
    *JCLToPDFInterpreter: "@PJL ENTER LANGUAGE = PDF<0A>"
    

    macOS Attributes

    DeprecatedAPDialogExtension

    *APDialogExtension: "/Library/Printers/vendor/filename.plugin"

    This keyword defines additional option panes that are displayed in the print dialog. Each keyword adds one or more option panes. See the "OutputBinsPDE" example and Apple Technical Q&A QA1352 for information on writing your own print dialog plug-ins.

    Note:

    Since 2010, AirPrint has enabled the printing of full quality photos and documents from the Mac without requiring driver software. Starting with macOS 10.12, system level security features prevent print dialog plug-ins from being loaded into applications that have enabled the library validation security feature. As of macOS 10.14 the APDialogExtension attribute used to create macOS print drivers is deprecated. All new printer models should support AirPrint moving forward.

    Examples:

    *% Add two panes for finishing and driver options
    *APDialogExtension: "/Library/Printers/vendor/finishing.plugin"
    *APDialogExtension: "/Library/Printers/vendor/options.plugin"
    

    macOS 10.4APDuplexRequiresFlippedMargin

    *APDuplexRequiresFlippedMargin: boolean

    This boolean keyword notifies the RIP filters that the destination printer requires the top and bottom margins of the ImageableArea to be swapped for the back page. The default is true when cupsBackSide is Flipped and false otherwise. Table 2 shows how APDuplexRequiresFlippedMargin interacts with cupsBackSide and the Tumble page attribute.

    Table 2: Margin Flipping Modes
    APDuplexRequiresFlippedMargin cupsBackSide Tumble Value Margins
    false any any Normal
    any Normal any Normal
    true ManualDuplex false Normal
    true ManualDuplex true Flipped
    true Rotated false Flipped
    true Rotated true Normal
    true or unspecified Flipped any Flipped

    Example:

    *% Rotate the back side images
    *cupsBackSide: Rotated
    
    *% Don't swap the top and bottom margins for the back side
    *APDuplexRequiresFlippedMargin: false
    

    Also see the related cupsBackSide keyword.

    APHelpBook

    *APHelpBook: "bundle URL"

    This string keyword specifies the Apple help book bundle to use when looking up IPP reason codes for this printer driver. The cupsIPPReason keyword maps "help" URIs to this file.

    Example:

    *APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
    

    macOS 10.6APICADriver

    *APICADriver: boolean

    This keyword specifies whether the device has a matching Image Capture Architecture (ICA) driver for scanning. The default is False.

    Examples:

    *APICADriver: True
    *APScanAppBundleID: "com.apple.ImageCaptureApp"
    

    macOS 10.3APPrinterIconPath

    *APPrinterIconPath: "/Library/Printers/vendor/filename.icns"

    This keyword defines the location of a printer icon file to use when displaying the printer. The file must be in the Apple icon format.

    Examples:

    *% Apple icon file
    *APPrinterIconPath: "/Library/Printers/vendor/Icons/filename.icns"
    

    macOS 10.4APPrinterLowInkTool

    *APPrinterLowInkTool: "/Library/Printers/vendor/program"

    This keyword defines an program that checks the ink/toner/marker levels on a printer, returning an XML document with those levels. See the "InkTool" example and Apple Technical Note TN2144 for more information.

    Examples:

    *% Use a vendor monitoring program
    *APPrinterLowInkTool: "/Library/Printers/vendor/Tools/lowinktool"
    

    macOS 10.5APPrinterPreset

    *APPrinterPreset name/text: "*Option Choice ..."

    This keyword defines presets for multiple options that show up in the print dialog of applications (such as iPhoto) that set the job style hint to NSPrintPhotoJobStyleHint. Each preset maps to one or more pairs of PPD options and choices as well as providing key/value data for the application. The following standard preset names are currently defined:

    • General_with_Paper_Auto-Detect; Normal quality general printing with auto-detected media.
    • General_with_Paper_Auto-Detect_-_Draft; Draft quality general printing with auto-detected media.
    • General_on_Plain_Paper; Normal quality general printing on plain paper.
    • General_on_Plain_Paper_-_Draft; Draft quality general printing on plain paper.
    • Photo_with_Paper_Auto-Detect; Normal quality photo printing with auto-detected media.
    • Photo_with_Paper_Auto-Detect_-_Fine; High quality photo printing with auto-detected media.
    • Photo_on_Plain_Paper; Normal quality photo printing on plain paper.
    • Photo_on_Plain_Paper_-_Fine; High quality photo printing on plain paper.
    • Photo_on_Photo_Paper; Normal quality photo printing on glossy photo paper.
    • Photo_on_Photo_Paper_-_Fine; High quality photo printing on glossy photo paper.
    • Photo_on_Matte_Paper; Normal quality photo printing on matte paper.
    • Photo_on_Matte_Paper_-_Fine; High quality photo printing on matte paper.

    The value string consists of pairs of keywords, either an option name and choice (*MainKeyword OptionKeyword) or a preset identifier and value (com.apple.print.preset.foo value). The following preset identifiers are currently used:

    • com.apple.print.preset.graphicsType; specifies the type of printing used for this printing - "General" for general purpose printing and "Photo" for photo printing.
    • com.apple.print.preset.media-front-coating; specifies the media type selected by this preset - "none" (plain paper), "glossy", "high-gloss", "semi-gloss", "satin", "matte", and "autodetect".
    • com.apple.print.preset.output-mode; specifies the output mode for this preset - "color" (default for color printers) or "monochrome" (grayscale, default for B&W printers).
    • com.apple.print.preset.quality; specifies the overall print quality selected by this preset - "low" (draft), "mid" (normal), or "high".

    Presets, like options, can also be localized in multiple languages.

    Examples:

    *APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper: "
      *MediaType Glossy
      *ColorModel RGB
      *Resolution 300dpi
      com.apple.print.preset.graphicsType Photo
      com.apple.print.preset.quality mid
      com.apple.print.preset.media-front-coating glossy"
    *End
    *fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique: ""
    

    macOS 10.3APPrinterUtilityPath

    *APPrinterPrinterUtilityPath: "/Library/Printers/vendor/filename.app"

    This keyword defines a GUI application that can be used to do printer maintenance functions such as cleaning the print head(s). See ... for more information.

    Examples:

    *% Define the printer utility application
    *APPrinterPrinterUtilityPath: "/Library/Printers/vendor/Tools/utility.app"
    

    macOS 10.6APScannerOnly

    *APScannerOnly: boolean

    This keyword specifies whether the device has scanning but no printing capabilities. The default is False.

    Examples:

    *APICADriver: True
    *APScannerOnly: True
    

    macOS 10.3APScanAppBundleID

    *APScanAppBundleID: "bundle ID"

    This keyword defines the application to use when scanning pages from the device.

    Examples:

    *APICADriver: True
    *APScanAppBundleID: "com.apple.ImageCaptureApp"
    

    Change History

    Changes in CUPS 2.3

    Changes in CUPS 1.7

    Changes in CUPS 1.6

    Changes in CUPS 1.5

    • Changes all instances of PPD attributes to PPD keywords, to be consistent with the parent specification from Adobe.

    Changes in CUPS 1.4.5

    Changes in CUPS 1.4

    Changes in CUPS 1.3.1

    • Added missing macOS AP keywords.
    • Added section on auto-configuration including the OIDMainKeyword and ?MainKeyword keywords.
    • Minor reorganization.

    Changes in CUPS 1.3

    Changes in CUPS 1.2.8

    • Added section on supported PostScript commands for raster drivers

    Changes in CUPS 1.2

    Changes in CUPS 1.1

    cups-2.4.7/filter/spec-ppd.header0000644000175000017500000000250214502571342016532 0ustar zdohnalzdohnal

    CUPS PPD Extensions

    This specification describes the attributes and extensions that CUPS adds to Adobe TechNote #5003: PostScript Printer Description File Format Specification Version 4.3. PostScript Printer Description ("PPD") files describe the capabilities of each printer and are used by CUPS to support printer-specific features and intelligent filtering.

    cups-2.4.7/filter/rastertopwg.c0000644000175000017500000004206214502571342016377 0ustar zdohnalzdohnal/* * CUPS raster to PWG raster format filter for CUPS. * * Copyright © 2011, 2014-2017 Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include #include /* * 'main()' - Main entry for filter. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { const char *final_content_type; /* FINAL_CONTENT_TYPE env var */ int fd; /* Raster file */ cups_raster_t *inras, /* Input raster stream */ *outras; /* Output raster stream */ cups_page_header2_t inheader, /* Input raster page header */ outheader; /* Output raster page header */ unsigned y; /* Current line */ unsigned char *line; /* Line buffer */ unsigned page = 0, /* Current page */ page_width, /* Actual page width */ page_height, /* Actual page height */ page_top, /* Top margin */ page_bottom, /* Bottom margin */ page_left, /* Left margin */ page_right, /* Right margin */ linesize, /* Bytes per line */ lineoffset; /* Offset into line */ int tmp; unsigned char white; /* White pixel */ ppd_file_t *ppd; /* PPD file */ ppd_attr_t *back; /* cupsBackSide attribute */ _ppd_cache_t *cache; /* PPD cache */ pwg_size_t *pwg_size; /* PWG media size */ pwg_media_t *pwg_media; /* PWG media name */ int num_options; /* Number of options */ cups_option_t *options = NULL;/* Options */ const char *val; /* Option value */ if (argc != 6 && argc != 7) { puts("Usage: rastertopwg job user title copies options [filename]"); return (1); } else if (argc == 7) { if ((fd = open(argv[6], O_RDONLY)) < 0) { perror("ERROR: Unable to open print file"); return (1); } } else fd = 0; if ((final_content_type = getenv("FINAL_CONTENT_TYPE")) == NULL) final_content_type = "image/pwg-raster"; inras = cupsRasterOpen(fd, CUPS_RASTER_READ); outras = cupsRasterOpen(1, !strcmp(final_content_type, "image/pwg-raster") ? CUPS_RASTER_WRITE_PWG : CUPS_RASTER_WRITE_APPLE); ppd = ppdOpenFile(getenv("PPD")); back = ppdFindAttr(ppd, "cupsBackSide", NULL); num_options = cupsParseOptions(argv[5], 0, &options); ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); cache = ppd ? ppd->cache : NULL; while (cupsRasterReadHeader2(inras, &inheader)) { /* * Show page device dictionary... */ fprintf(stderr, "DEBUG: Duplex = %d\n", inheader.Duplex); fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", inheader.HWResolution[0], inheader.HWResolution[1]); fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", inheader.ImagingBoundingBox[0], inheader.ImagingBoundingBox[1], inheader.ImagingBoundingBox[2], inheader.ImagingBoundingBox[3]); fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", inheader.Margins[0], inheader.Margins[1]); fprintf(stderr, "DEBUG: ManualFeed = %d\n", inheader.ManualFeed); fprintf(stderr, "DEBUG: MediaPosition = %d\n", inheader.MediaPosition); fprintf(stderr, "DEBUG: NumCopies = %d\n", inheader.NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", inheader.Orientation); fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", inheader.PageSize[0], inheader.PageSize[1]); fprintf(stderr, "DEBUG: cupsWidth = %d\n", inheader.cupsWidth); fprintf(stderr, "DEBUG: cupsHeight = %d\n", inheader.cupsHeight); fprintf(stderr, "DEBUG: cupsMediaType = %d\n", inheader.cupsMediaType); fprintf(stderr, "DEBUG: cupsBitsPerColor = %d\n", inheader.cupsBitsPerColor); fprintf(stderr, "DEBUG: cupsBitsPerPixel = %d\n", inheader.cupsBitsPerPixel); fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", inheader.cupsBytesPerLine); fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", inheader.cupsColorOrder); fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", inheader.cupsColorSpace); fprintf(stderr, "DEBUG: cupsCompression = %d\n", inheader.cupsCompression); /* * Compute the real raster size... */ page ++; fprintf(stderr, "PAGE: %d %d\n", page, inheader.NumCopies); page_width = (unsigned)(inheader.cupsPageSize[0] * inheader.HWResolution[0] / 72.0); if (page_width < inheader.cupsWidth && page_width >= inheader.cupsWidth - 1) page_width = (unsigned)inheader.cupsWidth; page_height = (unsigned)(inheader.cupsPageSize[1] * inheader.HWResolution[1] / 72.0); if (page_height < inheader.cupsHeight && page_height >= inheader.cupsHeight - 1) page_height = (unsigned)inheader.cupsHeight; page_left = (unsigned)(inheader.cupsImagingBBox[0] * inheader.HWResolution[0] / 72.0); page_bottom = (unsigned)(inheader.cupsImagingBBox[1] * inheader.HWResolution[1] / 72.0); tmp = (int)(page_height - page_bottom - inheader.cupsHeight); if (tmp < 0 && tmp >= -1) /* Rounding error */ page_top = 0; else page_top = (unsigned)tmp; tmp = (int)(page_width - page_left - inheader.cupsWidth); if (tmp < 0 && tmp >= -1) /* Rounding error */ page_right = 0; else page_right = (unsigned)tmp; linesize = (page_width * inheader.cupsBitsPerPixel + 7) / 8; lineoffset = page_left * inheader.cupsBitsPerPixel / 8; /* Round down */ fprintf(stderr, "DEBUG: In pixels: Width: %u Height: %u Left: %u Right: %u Top: %u Bottom: %u\n", page_width, page_height, page_left, page_right, page_top, page_bottom); if (page_left > page_width || page_top > page_height || page_bottom > page_height || page_right > page_width) { _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported raster data.")); fprintf(stderr, "DEBUG: Bad bottom/left/top margin on page %d.\n", page); return (1); } if (inheader.cupsColorOrder != CUPS_ORDER_CHUNKED) { _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported raster data.")); fprintf(stderr, "DEBUG: Unsupported cupsColorOrder %d on page %d.\n", inheader.cupsColorOrder, page); return (1); } if (inheader.cupsBitsPerPixel != 1 && inheader.cupsBitsPerColor != 8 && inheader.cupsBitsPerColor != 16) { _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported raster data.")); fprintf(stderr, "DEBUG: Unsupported cupsBitsPerColor %d on page %d.\n", inheader.cupsBitsPerColor, page); return (1); } switch (inheader.cupsColorSpace) { case CUPS_CSPACE_W : case CUPS_CSPACE_RGB : case CUPS_CSPACE_SW : case CUPS_CSPACE_SRGB : case CUPS_CSPACE_ADOBERGB : white = 255; break; case CUPS_CSPACE_K : case CUPS_CSPACE_CMYK : case CUPS_CSPACE_DEVICE1 : case CUPS_CSPACE_DEVICE2 : case CUPS_CSPACE_DEVICE3 : case CUPS_CSPACE_DEVICE4 : case CUPS_CSPACE_DEVICE5 : case CUPS_CSPACE_DEVICE6 : case CUPS_CSPACE_DEVICE7 : case CUPS_CSPACE_DEVICE8 : case CUPS_CSPACE_DEVICE9 : case CUPS_CSPACE_DEVICEA : case CUPS_CSPACE_DEVICEB : case CUPS_CSPACE_DEVICEC : case CUPS_CSPACE_DEVICED : case CUPS_CSPACE_DEVICEE : case CUPS_CSPACE_DEVICEF : white = 0; break; default : _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported raster data.")); fprintf(stderr, "DEBUG: Unsupported cupsColorSpace %d on page %d.\n", inheader.cupsColorSpace, page); return (1); } memcpy(&outheader, &inheader, sizeof(outheader)); outheader.cupsWidth = page_width; outheader.cupsHeight = page_height; outheader.cupsBytesPerLine = linesize; outheader.cupsInteger[14] = 0; /* VendorIdentifier */ outheader.cupsInteger[15] = 0; /* VendorLength */ if ((val = cupsGetOption("print-content-optimize", num_options, options)) != NULL) { if (!strcmp(val, "automatic")) strlcpy(outheader.OutputType, "Automatic", sizeof(outheader.OutputType)); else if (!strcmp(val, "graphics")) strlcpy(outheader.OutputType, "Graphics", sizeof(outheader.OutputType)); else if (!strcmp(val, "photo")) strlcpy(outheader.OutputType, "Photo", sizeof(outheader.OutputType)); else if (!strcmp(val, "text")) strlcpy(outheader.OutputType, "Text", sizeof(outheader.OutputType)); else if (!strcmp(val, "text-and-graphics")) strlcpy(outheader.OutputType, "TextAndGraphics", sizeof(outheader.OutputType)); else { fputs("DEBUG: Unsupported print-content-optimize value.\n", stderr); outheader.OutputType[0] = '\0'; } } if ((val = cupsGetOption("print-quality", num_options, options)) != NULL) { unsigned quality = (unsigned)atoi(val); /* print-quality value */ if (quality >= IPP_QUALITY_DRAFT && quality <= IPP_QUALITY_HIGH) outheader.cupsInteger[8] = quality; else { fprintf(stderr, "DEBUG: Unsupported print-quality %d.\n", quality); outheader.cupsInteger[8] = 0; } } if ((val = cupsGetOption("print-rendering-intent", num_options, options)) != NULL) { if (!strcmp(val, "absolute")) strlcpy(outheader.cupsRenderingIntent, "Absolute", sizeof(outheader.cupsRenderingIntent)); else if (!strcmp(val, "automatic")) strlcpy(outheader.cupsRenderingIntent, "Automatic", sizeof(outheader.cupsRenderingIntent)); else if (!strcmp(val, "perceptual")) strlcpy(outheader.cupsRenderingIntent, "Perceptual", sizeof(outheader.cupsRenderingIntent)); else if (!strcmp(val, "relative")) strlcpy(outheader.cupsRenderingIntent, "Relative", sizeof(outheader.cupsRenderingIntent)); else if (!strcmp(val, "relative-bpc")) strlcpy(outheader.cupsRenderingIntent, "RelativeBpc", sizeof(outheader.cupsRenderingIntent)); else if (!strcmp(val, "saturation")) strlcpy(outheader.cupsRenderingIntent, "Saturation", sizeof(outheader.cupsRenderingIntent)); else { fputs("DEBUG: Unsupported print-rendering-intent value.\n", stderr); outheader.cupsRenderingIntent[0] = '\0'; } } if (inheader.cupsPageSizeName[0] && (pwg_size = _ppdCacheGetSize(cache, inheader.cupsPageSizeName)) != NULL && pwg_size->map.pwg) { strlcpy(outheader.cupsPageSizeName, pwg_size->map.pwg, sizeof(outheader.cupsPageSizeName)); } else { pwg_media = pwgMediaForSize((int)(2540.0 * inheader.cupsPageSize[0] / 72.0), (int)(2540.0 * inheader.cupsPageSize[1] / 72.0)); if (pwg_media) strlcpy(outheader.cupsPageSizeName, pwg_media->pwg, sizeof(outheader.cupsPageSizeName)); else { fprintf(stderr, "DEBUG: Unsupported PageSize %.2fx%.2f.\n", inheader.cupsPageSize[0], inheader.cupsPageSize[1]); outheader.cupsPageSizeName[0] = '\0'; } } if (inheader.Duplex && !(page & 1) && back && _cups_strcasecmp(back->value, "Normal")) { if (_cups_strcasecmp(back->value, "Flipped")) { if (inheader.Tumble) { outheader.cupsInteger[1] = ~0U;/* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */ outheader.cupsInteger[3] = page_right; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_top; /* ImageBoxTop */ outheader.cupsInteger[5] = page_width - page_left; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_bottom; /* ImageBoxBottom */ } else { outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = ~0U;/* FeedTransform */ outheader.cupsInteger[3] = page_left; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_bottom; /* ImageBoxTop */ outheader.cupsInteger[5] = page_left + inheader.cupsWidth; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_top; /* ImageBoxBottom */ } } else if (_cups_strcasecmp(back->value, "ManualTumble")) { if (inheader.Tumble) { outheader.cupsInteger[1] = ~0U;/* CrossFeedTransform */ outheader.cupsInteger[2] = ~0U;/* FeedTransform */ outheader.cupsInteger[3] = page_width - page_left - inheader.cupsWidth; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_bottom; /* ImageBoxTop */ outheader.cupsInteger[5] = page_width - page_left; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_top; /* ImageBoxBottom */ } else { outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */ outheader.cupsInteger[3] = page_left; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_top; /* ImageBoxTop */ outheader.cupsInteger[5] = page_left + inheader.cupsWidth; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_bottom; /* ImageBoxBottom */ } } else if (_cups_strcasecmp(back->value, "Rotated")) { if (inheader.Tumble) { outheader.cupsInteger[1] = ~0U;/* CrossFeedTransform */ outheader.cupsInteger[2] = ~0U;/* FeedTransform */ outheader.cupsInteger[3] = page_right; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_bottom; /* ImageBoxTop */ outheader.cupsInteger[5] = page_width - page_left; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_top; /* ImageBoxBottom */ } else { outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */ outheader.cupsInteger[3] = page_left; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_top; /* ImageBoxTop */ outheader.cupsInteger[5] = page_left + inheader.cupsWidth; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_bottom; /* ImageBoxBottom */ } } else { /* * Unsupported value... */ fputs("DEBUG: Unsupported cupsBackSide value.\n", stderr); outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */ outheader.cupsInteger[3] = page_left; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_top; /* ImageBoxTop */ outheader.cupsInteger[5] = page_left + inheader.cupsWidth; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_bottom; /* ImageBoxBottom */ } } else { outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */ outheader.cupsInteger[3] = page_left; /* ImageBoxLeft */ outheader.cupsInteger[4] = page_top; /* ImageBoxTop */ outheader.cupsInteger[5] = page_left + inheader.cupsWidth; /* ImageBoxRight */ outheader.cupsInteger[6] = page_height - page_bottom; /* ImageBoxBottom */ } if (!cupsRasterWriteHeader2(outras, &outheader)) { _cupsLangPrintFilter(stderr, "ERROR", _("Error sending raster data.")); fprintf(stderr, "DEBUG: Unable to write header for page %d.\n", page); return (1); } /* * Copy raster data... */ if (linesize < inheader.cupsBytesPerLine) linesize = inheader.cupsBytesPerLine; if ((lineoffset + inheader.cupsBytesPerLine) > linesize) lineoffset = linesize - inheader.cupsBytesPerLine; line = malloc(linesize); memset(line, white, linesize); for (y = page_top; y > 0; y --) if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) { _cupsLangPrintFilter(stderr, "ERROR", _("Error sending raster data.")); fprintf(stderr, "DEBUG: Unable to write line %d for page %d.\n", page_top - y + 1, page); return (1); } for (y = inheader.cupsHeight; y > 0; y --) { if (cupsRasterReadPixels(inras, line + lineoffset, inheader.cupsBytesPerLine) != inheader.cupsBytesPerLine) { _cupsLangPrintFilter(stderr, "ERROR", _("Error reading raster data.")); fprintf(stderr, "DEBUG: Unable to read line %d for page %d.\n", inheader.cupsHeight - y + page_top + 1, page); return (1); } if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) { _cupsLangPrintFilter(stderr, "ERROR", _("Error sending raster data.")); fprintf(stderr, "DEBUG: Unable to write line %d for page %d.\n", inheader.cupsHeight - y + page_top + 1, page); return (1); } } memset(line, white, linesize); for (y = page_bottom; y > 0; y --) if (!cupsRasterWritePixels(outras, line, outheader.cupsBytesPerLine)) { _cupsLangPrintFilter(stderr, "ERROR", _("Error sending raster data.")); fprintf(stderr, "DEBUG: Unable to write line %d for page %d.\n", page_bottom - y + page_top + inheader.cupsHeight + 1, page); return (1); } free(line); } cupsRasterClose(inras); if (fd) close(fd); cupsRasterClose(outras); return (0); } cups-2.4.7/filter/rastertolabel.c0000644000175000017500000006502714502571342016667 0ustar zdohnalzdohnal/* * Label printer filter for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 2001-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #include /* * This driver filter currently supports DYMO, Intellitech, and Zebra * label printers. * * The DYMO portion of the driver has been tested with the 300, 330, * 330 Turbo, and 450 Twin Turbo label printers; it may also work with other * models. The DYMO printers support printing at 136, 203, and 300 DPI. * * The Intellitech portion of the driver has been tested with the * Intellibar 408, 412, and 808 and supports their PCL variant. * * The Zebra portion of the driver has been tested with the LP-2844, * LP-2844Z, QL-320, and QL-420 label printers; it may also work with * other models. The driver supports EPL line mode, EPL page mode, * ZPL, and CPCL as defined in Zebra's online developer documentation. */ /* * Model number constants... */ #define DYMO_3x0 0 /* DYMO Labelwriter 300/330/330 Turbo */ #define ZEBRA_EPL_LINE 0x10 /* Zebra EPL line mode printers */ #define ZEBRA_EPL_PAGE 0x11 /* Zebra EPL page mode printers */ #define ZEBRA_ZPL 0x12 /* Zebra ZPL-based printers */ #define ZEBRA_CPCL 0x13 /* Zebra CPCL-based printers */ #define INTELLITECH_PCL 0x20 /* Intellitech PCL-based printers */ /* * Globals... */ unsigned char *Buffer; /* Output buffer */ unsigned char *CompBuffer; /* Compression buffer */ unsigned char *LastBuffer; /* Last buffer */ unsigned Feed; /* Number of lines to skip */ int LastSet; /* Number of repeat characters */ int ModelNumber, /* cupsModelNumber attribute */ Page, /* Current page */ Canceled; /* Non-zero if job is canceled */ /* * Prototypes... */ void Setup(ppd_file_t *ppd); void StartPage(ppd_file_t *ppd, cups_page_header2_t *header); void EndPage(ppd_file_t *ppd, cups_page_header2_t *header); void CancelJob(int sig); void OutputLine(ppd_file_t *ppd, cups_page_header2_t *header, unsigned y); void PCLCompress(unsigned char *line, unsigned length); void ZPLCompress(unsigned char repeat_char, unsigned repeat_count); /* * 'Setup()' - Prepare the printer for printing. */ void Setup(ppd_file_t *ppd) /* I - PPD file */ { int i; /* Looping var */ /* * Get the model number from the PPD file... */ if (ppd) ModelNumber = ppd->model_number; /* * Initialize based on the model number... */ switch (ModelNumber) { case DYMO_3x0 : /* * Clear any remaining data... */ for (i = 0; i < 100; i ++) putchar(0x1b); /* * Reset the printer... */ fputs("\033@", stdout); break; case ZEBRA_EPL_LINE : break; case ZEBRA_EPL_PAGE : break; case ZEBRA_ZPL : break; case ZEBRA_CPCL : break; case INTELLITECH_PCL : /* * Send a PCL reset sequence. */ putchar(0x1b); putchar('E'); break; } } /* * 'StartPage()' - Start a page of graphics. */ void StartPage(ppd_file_t *ppd, /* I - PPD file */ cups_page_header2_t *header) /* I - Page header */ { ppd_choice_t *choice; /* Marked choice */ unsigned length; /* Actual label length */ /* * Show page device dictionary... */ fprintf(stderr, "DEBUG: StartPage...\n"); 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: 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: NumCopies = %d\n", header->NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); 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); switch (ModelNumber) { case DYMO_3x0 : /* * Setup printer/job attributes... */ length = header->PageSize[1] * header->HWResolution[1] / 72; printf("\033L%c%c", length >> 8, length); printf("\033D%c", header->cupsBytesPerLine); printf("\033%c", header->cupsCompression + 'c'); /* Darkness */ printf("\033q%d", header->MediaPosition + 1); /* Roll Select */ break; case ZEBRA_EPL_LINE : /* * Set print rate... */ if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && strcmp(choice->choice, "Default")) printf("\033S%.0f", atof(choice->choice) * 2.0 - 2.0); /* * Set darkness... */ if (header->cupsCompression > 0 && header->cupsCompression <= 100) printf("\033D%d", 7 * header->cupsCompression / 100); /* * Set left margin to 0... */ fputs("\033M01", stdout); /* * Start buffered output... */ fputs("\033B", stdout); break; case ZEBRA_EPL_PAGE : /* * Start a new label... */ puts(""); puts("N"); /* * Set hardware options... */ if (!strcmp(header->MediaType, "Direct")) puts("OD"); /* * Set print rate... */ if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && strcmp(choice->choice, "Default")) { double val = atof(choice->choice); if (val >= 3.0) printf("S%.0f\n", val); else printf("S%.0f\n", val * 2.0 - 2.0); } /* * Set darkness... */ if (header->cupsCompression > 0 && header->cupsCompression <= 100) printf("D%u\n", 15 * header->cupsCompression / 100); /* * Set label size... */ printf("q%u\n", (header->cupsWidth + 7) & ~7U); break; case ZEBRA_ZPL : /* * Set darkness... */ if (header->cupsCompression > 0 && header->cupsCompression <= 100) printf("~SD%02u\n", 30 * header->cupsCompression / 100); /* * Start bitmap graphics... */ printf("~DGR:CUPS.GRF,%u,%u,\n", header->cupsHeight * header->cupsBytesPerLine, header->cupsBytesPerLine); /* * Allocate compression buffers... */ CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); LastBuffer = malloc(header->cupsBytesPerLine); LastSet = 0; break; case ZEBRA_CPCL : /* * Start label... */ printf("! 0 %u %u %u %u\r\n", header->HWResolution[0], header->HWResolution[1], header->cupsHeight, header->NumCopies); printf("PAGE-WIDTH %u\r\n", header->cupsWidth); printf("PAGE-HEIGHT %u\r\n", header->cupsHeight); break; case INTELLITECH_PCL : /* * Set the media size... */ printf("\033&l6D\033&k12H"); /* Set 6 LPI, 10 CPI */ printf("\033&l0O"); /* Set portrait orientation */ switch (header->PageSize[1]) { case 540 : /* Monarch Envelope */ printf("\033&l80A"); /* Set page size */ break; case 624 : /* DL Envelope */ printf("\033&l90A"); /* Set page size */ break; case 649 : /* C5 Envelope */ printf("\033&l91A"); /* Set page size */ break; case 684 : /* COM-10 Envelope */ printf("\033&l81A"); /* Set page size */ break; case 756 : /* Executive */ printf("\033&l1A"); /* Set page size */ break; case 792 : /* Letter */ printf("\033&l2A"); /* Set page size */ break; case 842 : /* A4 */ printf("\033&l26A"); /* Set page size */ break; case 1008 : /* Legal */ printf("\033&l3A"); /* Set page size */ break; default : /* Custom size */ printf("\033!f%uZ", header->PageSize[1] * 300 / 72); break; } printf("\033&l%uP", /* Set page length */ header->PageSize[1] / 12); printf("\033&l0E"); /* Set top margin to 0 */ if (header->NumCopies) printf("\033&l%uX", header->NumCopies); /* Set number copies */ printf("\033&l0L"); /* Turn off perforation skip */ /* * Print settings... */ if (Page == 1) { if (header->cupsRowFeed) /* inPrintRate */ printf("\033!p%uS", header->cupsRowFeed); if (header->cupsCompression != ~0U) /* inPrintDensity */ printf("\033&d%dA", 30 * header->cupsCompression / 100 - 15); if ((choice = ppdFindMarkedChoice(ppd, "inPrintMode")) != NULL) { if (!strcmp(choice->choice, "Standard")) fputs("\033!p0M", stdout); else if (!strcmp(choice->choice, "Tear")) { fputs("\033!p1M", stdout); if (header->cupsRowCount) /* inTearInterval */ printf("\033!n%uT", header->cupsRowCount); } else { fputs("\033!p2M", stdout); if (header->cupsRowStep) /* inCutInterval */ printf("\033!n%uC", header->cupsRowStep); } } } /* * Setup graphics... */ printf("\033*t%uR", header->HWResolution[0]); /* Set resolution */ printf("\033*r%uS", header->cupsWidth); /* Set width */ printf("\033*r%uT", header->cupsHeight); /* Set height */ printf("\033&a0H"); /* Set horizontal position */ printf("\033&a0V"); /* Set vertical position */ printf("\033*r1A"); /* Start graphics */ printf("\033*b3M"); /* Set compression */ /* * Allocate compression buffers... */ CompBuffer = malloc(2 * header->cupsBytesPerLine + 1); LastBuffer = malloc(header->cupsBytesPerLine); LastSet = 0; break; } /* * Allocate memory for a line of graphics... */ Buffer = malloc(header->cupsBytesPerLine); Feed = 0; } /* * 'EndPage()' - Finish a page of graphics. */ void EndPage(ppd_file_t *ppd, /* I - PPD file */ cups_page_header2_t *header) /* I - Page header */ { int val; /* Option value */ ppd_choice_t *choice; /* Marked choice */ switch (ModelNumber) { case DYMO_3x0 : /* * Eject the current page... */ fputs("\033E", stdout); break; case ZEBRA_EPL_LINE : /* * End buffered output, eject the label... */ fputs("\033E\014", stdout); break; case ZEBRA_EPL_PAGE : /* * Print the label... */ puts("P1"); /* * Cut the label as needed... */ if (header->CutMedia) puts("C"); break; case ZEBRA_ZPL : if (Canceled) { /* * Cancel bitmap download... */ puts("~DN"); break; } /* * Start label... */ puts("^XA"); /* * Rotate 180 degrees so that the top of the label/page is at the * leading edge... */ puts("^POI"); /* * Set print width... */ printf("^PW%u\n", header->cupsWidth); /* * Set print rate... */ if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && strcmp(choice->choice, "Default")) { val = atoi(choice->choice); printf("^PR%d,%d,%d\n", val, val, val); } /* * Put label home in default position (0,0)... */ printf("^LH0,0\n"); /* * Set media tracking... */ if (ppdIsMarked(ppd, "zeMediaTracking", "Continuous")) { /* * Add label length command for continuous... */ printf("^LL%d\n", header->cupsHeight); printf("^MNN\n"); } else if (ppdIsMarked(ppd, "zeMediaTracking", "Web")) printf("^MNY\n"); else if (ppdIsMarked(ppd, "zeMediaTracking", "Mark")) printf("^MNM\n"); /* * Set label top */ if (header->cupsRowStep != 200) printf("^LT%d\n", header->cupsRowStep); /* * Set media type... */ if (!strcmp(header->MediaType, "Thermal")) printf("^MTT\n"); else if (!strcmp(header->MediaType, "Direct")) printf("^MTD\n"); /* * Set print mode... */ if ((choice = ppdFindMarkedChoice(ppd, "zePrintMode")) != NULL && strcmp(choice->choice, "Saved")) { printf("^MM"); if (!strcmp(choice->choice, "Tear")) printf("T,Y\n"); else if (!strcmp(choice->choice, "Peel")) printf("P,Y\n"); else if (!strcmp(choice->choice, "Rewind")) printf("R,Y\n"); else if (!strcmp(choice->choice, "Applicator")) printf("A,Y\n"); else printf("C,Y\n"); } /* * Set tear-off adjust position... */ if (header->AdvanceDistance != 1000) { if ((int)header->AdvanceDistance < 0) printf("~TA%04d\n", (int)header->AdvanceDistance); else printf("~TA%03d\n", (int)header->AdvanceDistance); } /* * Allow for reprinting after an error... */ if (ppdIsMarked(ppd, "zeErrorReprint", "Always")) printf("^JZY\n"); else if (ppdIsMarked(ppd, "zeErrorReprint", "Never")) printf("^JZN\n"); /* * Print multiple copies */ if (header->NumCopies > 1) printf("^PQ%d, 0, 0, N\n", header->NumCopies); /* * Display the label image... */ puts("^FO0,0^XGR:CUPS.GRF,1,1^FS"); /* * End the label and eject... */ puts("^XZ"); /* * Delete the label image... */ puts("^XA"); puts("^IDR:CUPS.GRF^FS"); puts("^XZ"); /* * Cut the label as needed... */ if (header->CutMedia) puts("^CN1"); break; case ZEBRA_CPCL : /* * Set tear-off adjust position... */ if (header->AdvanceDistance != 1000) printf("PRESENT-AT %d 1\r\n", (int)header->AdvanceDistance); /* * Allow for reprinting after an error... */ if (ppdIsMarked(ppd, "zeErrorReprint", "Always")) puts("ON-OUT-OF-PAPER WAIT\r"); else if (ppdIsMarked(ppd, "zeErrorReprint", "Never")) puts("ON-OUT-OF-PAPER PURGE\r"); /* * Cut label? */ if (header->CutMedia) puts("CUT\r"); /* * Set darkness... */ if (header->cupsCompression > 0) printf("TONE %u\r\n", 2 * header->cupsCompression); /* * Set print rate... */ if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && strcmp(choice->choice, "Default")) { val = atoi(choice->choice); printf("SPEED %d\r\n", val); } /* * Print the label... */ if ((choice = ppdFindMarkedChoice(ppd, "zeMediaTracking")) == NULL || strcmp(choice->choice, "Continuous")) puts("FORM\r"); puts("PRINT\r"); break; case INTELLITECH_PCL : printf("\033*rB"); /* End GFX */ printf("\014"); /* Eject current page */ break; } fflush(stdout); /* * Free memory... */ free(Buffer); if (CompBuffer) { free(CompBuffer); CompBuffer = NULL; } if (LastBuffer) { free(LastBuffer); LastBuffer = NULL; } } /* * 'CancelJob()' - Cancel the current job... */ void CancelJob(int sig) /* I - Signal */ { /* * Tell the main loop to stop... */ (void)sig; Canceled = 1; } /* * 'OutputLine()' - Output a line of graphics... */ void OutputLine(ppd_file_t *ppd, /* I - PPD file */ cups_page_header2_t *header, /* I - Page header */ unsigned y) /* I - Line number */ { unsigned i; /* Looping var */ unsigned char *ptr; /* Pointer into buffer */ unsigned char *compptr; /* Pointer into compression buffer */ unsigned char repeat_char; /* Repeated character */ unsigned repeat_count; /* Number of repeated characters */ static const unsigned char *hex = (const unsigned char *)"0123456789ABCDEF"; /* Hex digits */ (void)ppd; switch (ModelNumber) { case DYMO_3x0 : /* * See if the line is blank; if not, write it to the printer... */ if (Buffer[0] || memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine - 1)) { if (Feed) { while (Feed > 255) { printf("\033f\001%c", 255); Feed -= 255; } printf("\033f\001%c", Feed); Feed = 0; } putchar(0x16); fwrite(Buffer, header->cupsBytesPerLine, 1, stdout); fflush(stdout); } else Feed ++; break; case ZEBRA_EPL_LINE : printf("\033g%03d", header->cupsBytesPerLine); fwrite(Buffer, 1, header->cupsBytesPerLine, stdout); fflush(stdout); break; case ZEBRA_EPL_PAGE : if (Buffer[0] || memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine)) { printf("GW0,%d,%d,1\n", y, header->cupsBytesPerLine); for (i = header->cupsBytesPerLine, ptr = Buffer; i > 0; i --, ptr ++) putchar(~*ptr); putchar('\n'); fflush(stdout); } break; case ZEBRA_ZPL : /* * Determine if this row is the same as the previous line. * If so, output a ':' and return... */ if (LastSet) { if (!memcmp(Buffer, LastBuffer, header->cupsBytesPerLine)) { putchar(':'); return; } } /* * Convert the line to hex digits... */ for (ptr = Buffer, compptr = CompBuffer, i = header->cupsBytesPerLine; i > 0; i --, ptr ++) { *compptr++ = hex[*ptr >> 4]; *compptr++ = hex[*ptr & 15]; } *compptr = '\0'; /* * Run-length compress the graphics... */ for (compptr = CompBuffer + 1, repeat_char = CompBuffer[0], repeat_count = 1; *compptr; compptr ++) if (*compptr == repeat_char) repeat_count ++; else { ZPLCompress(repeat_char, repeat_count); repeat_char = *compptr; repeat_count = 1; } if (repeat_char == '0') { /* * Handle 0's on the end of the line... */ if (repeat_count & 1) { repeat_count --; putchar('0'); } if (repeat_count > 0) putchar(','); } else ZPLCompress(repeat_char, repeat_count); fflush(stdout); /* * Save this line for the next round... */ memcpy(LastBuffer, Buffer, header->cupsBytesPerLine); LastSet = 1; break; case ZEBRA_CPCL : if (Buffer[0] || memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine)) { printf("CG %u 1 0 %d ", header->cupsBytesPerLine, y); fwrite(Buffer, 1, header->cupsBytesPerLine, stdout); puts("\r"); fflush(stdout); } break; case INTELLITECH_PCL : if (Buffer[0] || memcmp(Buffer, Buffer + 1, header->cupsBytesPerLine - 1)) { if (Feed) { printf("\033*b%dY", Feed); Feed = 0; LastSet = 0; } PCLCompress(Buffer, header->cupsBytesPerLine); } else Feed ++; break; } } /* * 'PCLCompress()' - Output a PCL (mode 3) compressed line. */ void PCLCompress(unsigned char *line, /* I - Line to compress */ unsigned length) /* I - Length of line */ { unsigned char *line_ptr, /* Current byte pointer */ *line_end, /* End-of-line byte pointer */ *comp_ptr, /* Pointer into compression buffer */ *start, /* Start of compression sequence */ *seed; /* Seed buffer pointer */ unsigned count, /* Count of bytes for output */ offset; /* Offset of bytes for output */ /* * Do delta-row compression... */ line_ptr = line; line_end = line + length; comp_ptr = CompBuffer; seed = LastBuffer; while (line_ptr < line_end) { /* * Find the next non-matching sequence... */ start = line_ptr; if (!LastSet) { /* * The seed buffer is invalid, so do the next 8 bytes, max... */ offset = 0; if ((count = (unsigned)(line_end - line_ptr)) > 8) count = 8; line_ptr += count; } else { /* * The seed buffer is valid, so compare against it... */ while (*line_ptr == *seed && line_ptr < line_end) { line_ptr ++; seed ++; } if (line_ptr == line_end) break; offset = (unsigned)(line_ptr - start); /* * Find up to 8 non-matching bytes... */ start = line_ptr; count = 0; while (*line_ptr != *seed && line_ptr < line_end && count < 8) { line_ptr ++; seed ++; count ++; } } /* * Place mode 3 compression data in the buffer; see HP manuals * for details... */ if (offset >= 31) { /* * Output multi-byte offset... */ *comp_ptr++ = (unsigned char)(((count - 1) << 5) | 31); offset -= 31; while (offset >= 255) { *comp_ptr++ = 255; offset -= 255; } *comp_ptr++ = (unsigned char)offset; } else { /* * Output single-byte offset... */ *comp_ptr++ = (unsigned char)(((count - 1) << 5) | offset); } memcpy(comp_ptr, start, count); comp_ptr += count; } /* * Set the length of the data and write it... */ printf("\033*b%dW", (int)(comp_ptr - CompBuffer)); fwrite(CompBuffer, (size_t)(comp_ptr - CompBuffer), 1, stdout); /* * Save this line as a "seed" buffer for the next... */ memcpy(LastBuffer, line, length); LastSet = 1; } /* * 'ZPLCompress()' - Output a run-length compression sequence. */ void ZPLCompress(unsigned char repeat_char, /* I - Character to repeat */ unsigned repeat_count) /* I - Number of repeated characters */ { if (repeat_count > 1) { /* * Print as many z's as possible - they are the largest denomination * representing 400 characters (zC stands for 400 adjacent C's) */ while (repeat_count >= 400) { putchar('z'); repeat_count -= 400; } /* * Then print 'g' through 'y' as multiples of 20 characters... */ if (repeat_count >= 20) { putchar((int)('f' + repeat_count / 20)); repeat_count %= 20; } /* * Finally, print 'G' through 'Y' as 1 through 19 characters... */ if (repeat_count > 0) putchar((int)('F' + repeat_count)); } /* * Then the character to be repeated... */ putchar((int)repeat_char); } /* * 'main()' - Main entry and processing of driver. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int fd; /* File descriptor */ cups_raster_t *ras; /* Raster stream for printing */ cups_page_header2_t header; /* Page header from file */ unsigned y; /* Current line */ ppd_file_t *ppd; /* PPD file */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Check command-line... */ if (argc != 6 && argc != 7) { /* * We don't have the correct number of arguments; write an error message * and return. */ _cupsLangPrintFilter(stderr, "ERROR", _("%s job-id user title copies options [file]"), "rastertolabel"); return (1); } /* * Open the page stream... */ if (argc == 7) { if ((fd = open(argv[6], O_RDONLY)) == -1) { _cupsLangPrintError("ERROR", _("Unable to open raster file")); sleep(1); return (1); } } else fd = 0; ras = cupsRasterOpen(fd, CUPS_RASTER_READ); /* * Register a signal handler to eject the current page if the * job is cancelled. */ Canceled = 0; #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, CancelJob); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = CancelJob; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, CancelJob); #endif /* HAVE_SIGSET */ /* * Open the PPD file and apply options... */ num_options = cupsParseOptions(argv[5], 0, &options); ppd = ppdOpenFile(getenv("PPD")); if (!ppd) { ppd_status_t status; /* PPD error */ int linenum; /* Line number */ _cupsLangPrintFilter(stderr, "ERROR", _("The PPD file could not be opened.")); status = ppdLastError(&linenum); fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum); return (1); } ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); /* * Initialize the print device... */ Setup(ppd); /* * Process pages as needed... */ Page = 0; while (cupsRasterReadHeader2(ras, &header)) { /* * Write a status message with the page number and number of copies. */ if (Canceled) break; Page ++; fprintf(stderr, "PAGE: %d 1\n", Page); _cupsLangPrintFilter(stderr, "INFO", _("Starting page %d."), Page); /* * Start the page... */ StartPage(ppd, &header); /* * Loop for each line on the page... */ for (y = 0; y < header.cupsHeight; y ++) { /* * Let the user know how far we have progressed... */ if (Canceled) break; if ((y & 15) == 0) { _cupsLangPrintFilter(stderr, "INFO", _("Printing page %d, %u%% complete."), Page, 100 * y / header.cupsHeight); fprintf(stderr, "ATTR: job-media-progress=%u\n", 100 * y / header.cupsHeight); } /* * Read a line of graphics... */ if (cupsRasterReadPixels(ras, Buffer, header.cupsBytesPerLine) < 1) break; /* * Write it to the printer... */ OutputLine(ppd, &header, y); } /* * Eject the page... */ _cupsLangPrintFilter(stderr, "INFO", _("Finished page %d."), Page); EndPage(ppd, &header); if (Canceled) break; } /* * Close the raster stream... */ cupsRasterClose(ras); if (fd != 0) close(fd); /* * Close the PPD file and free the options... */ ppdClose(ppd); cupsFreeOptions(num_options, options); /* * If no pages were printed, send an error message... */ if (Page == 0) { _cupsLangPrintFilter(stderr, "ERROR", _("No pages were found.")); return (1); } else return (0); } cups-2.4.7/filter/rastertohp.c0000644000175000017500000004504614502571342016216 0ustar zdohnalzdohnal/* * Hewlett-Packard Page Control Language filter for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 1993-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #include /* * Globals... */ unsigned char *Planes[4], /* Output buffers */ *CompBuffer, /* Compression buffer */ *BitBuffer; /* Buffer for output bits */ unsigned NumPlanes, /* Number of color planes */ ColorBits, /* Number of bits per color */ Feed; /* Number of lines to skip */ cups_bool_t Duplex; /* Current duplex mode */ int Page, /* Current page number */ Canceled; /* Has the current job been canceled? */ /* * Prototypes... */ void Setup(void); void StartPage(ppd_file_t *ppd, cups_page_header2_t *header); void EndPage(void); void Shutdown(void); void CancelJob(int sig); void CompressData(unsigned char *line, unsigned length, unsigned plane, unsigned type); void OutputLine(cups_page_header2_t *header); /* * 'Setup()' - Prepare the printer for printing. */ void Setup(void) { /* * Send a PCL reset sequence. */ putchar(0x1b); putchar('E'); } /* * 'StartPage()' - Start a page of graphics. */ void StartPage(ppd_file_t *ppd, /* I - PPD file */ cups_page_header2_t *header) /* I - Page header */ { unsigned plane; /* Looping var */ /* * Show page device dictionary... */ fprintf(stderr, "DEBUG: StartPage...\n"); 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: 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: NumCopies = %d\n", header->NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); 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... */ Duplex = header->Duplex; ColorBits = header->cupsBitsPerColor; 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 size... */ printf("\033&l6D\033&k12H"); /* Set 6 LPI, 10 CPI */ printf("\033&l0O"); /* Set portrait orientation */ switch (header->PageSize[1]) { case 540 : /* Monarch Envelope */ printf("\033&l80A"); /* Set page size */ break; case 595 : /* A5 */ printf("\033&l25A"); /* Set page size */ break; case 624 : /* DL Envelope */ printf("\033&l90A"); /* Set page size */ break; case 649 : /* C5 Envelope */ printf("\033&l91A"); /* Set page size */ break; case 684 : /* COM-10 Envelope */ printf("\033&l81A"); /* Set page size */ break; case 709 : /* B5 Envelope */ printf("\033&l100A"); /* Set page size */ break; case 756 : /* Executive */ printf("\033&l1A"); /* Set page size */ break; case 792 : /* Letter */ printf("\033&l2A"); /* Set page size */ break; case 842 : /* A4 */ printf("\033&l26A"); /* Set page size */ break; case 1008 : /* Legal */ printf("\033&l3A"); /* Set page size */ break; case 1191 : /* A3 */ printf("\033&l27A"); /* Set page size */ break; case 1224 : /* Tabloid */ printf("\033&l6A"); /* Set page size */ break; } printf("\033&l%dP", /* Set page length */ header->PageSize[1] / 12); printf("\033&l0E"); /* Set top margin to 0 */ } if (!Duplex || (Page & 1)) { /* * Set other job options... */ printf("\033&l%dX", header->NumCopies); /* Set number copies */ if (header->cupsMediaType && (!ppd || ppd->model_number != 2 || header->HWResolution[0] == 600)) printf("\033&l%dM", /* Set media type */ header->cupsMediaType); if (!ppd || ppd->model_number != 2) { int mode = Duplex ? 1 + header->Tumble != 0 : 0; printf("\033&l%dS", mode); /* Set duplex mode */ printf("\033&l0L"); /* Turn off perforation skip */ } } else if (!ppd || ppd->model_number != 2) printf("\033&a2G"); /* Set back side */ /* * Set graphics mode... */ if (ppd && ppd->model_number == 2) { /* * Figure out the number of color planes... */ if (header->cupsColorSpace == CUPS_CSPACE_KCMY) NumPlanes = 4; 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... */ printf("\033*g26W"); putchar(2); /* Format 2 */ putchar((int)NumPlanes); /* Output planes */ putchar((int)(header->HWResolution[0] >> 8));/* Black resolution */ putchar((int)header->HWResolution[0]); putchar((int)(header->HWResolution[1] >> 8)); putchar((int)header->HWResolution[1]); putchar(0); putchar(1 << ColorBits); /* # of black levels */ putchar((int)(header->HWResolution[0] >> 8));/* Cyan resolution */ putchar((int)header->HWResolution[0]); putchar((int)(header->HWResolution[1] >> 8)); putchar((int)header->HWResolution[1]); putchar(0); putchar(1 << ColorBits); /* # of cyan levels */ putchar((int)(header->HWResolution[0] >> 8));/* Magenta resolution */ putchar((int)header->HWResolution[0]); putchar((int)(header->HWResolution[1] >> 8)); putchar((int)header->HWResolution[1]); putchar(0); putchar(1 << ColorBits); /* # of magenta levels */ putchar((int)(header->HWResolution[0] >> 8));/* Yellow resolution */ putchar((int)header->HWResolution[0]); putchar((int)(header->HWResolution[1] >> 8)); putchar((int)header->HWResolution[1]); putchar(0); putchar(1 << ColorBits); /* # of yellow levels */ printf("\033&l0H"); /* Set media position */ } else { printf("\033*t%uR", header->HWResolution[0]); /* Set resolution */ if (header->cupsColorSpace == CUPS_CSPACE_KCMY) { NumPlanes = 4; printf("\033*r-4U"); /* Set KCMY graphics */ } else if (header->cupsColorSpace == CUPS_CSPACE_CMY) { NumPlanes = 3; printf("\033*r-3U"); /* Set CMY graphics */ } else NumPlanes = 1; /* Black&white graphics */ /* * Set size and position of graphics... */ printf("\033*r%uS", header->cupsWidth); /* Set width */ printf("\033*r%uT", header->cupsHeight); /* Set height */ 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 */ } printf("\033*r1A"); /* Start graphics */ if (header->cupsCompression) printf("\033*b%uM", /* Set compression */ header->cupsCompression); Feed = 0; /* No blank lines yet */ /* * Allocate memory for a line of graphics... */ if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); } for (plane = 1; plane < NumPlanes; plane ++) Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; if (ColorBits > 1) BitBuffer = malloc((size_t)ColorBits * (((size_t)header->cupsWidth + 7) / 8)); else BitBuffer = NULL; if (header->cupsCompression) CompBuffer = malloc(header->cupsBytesPerLine * 2 + 2); else CompBuffer = NULL; } /* * 'EndPage()' - Finish a page of graphics. */ void EndPage(void) { /* * Eject the current page... */ if (NumPlanes > 1) { printf("\033*rC"); /* End color GFX */ if (!(Duplex && (Page & 1))) printf("\033&l0H"); /* Eject current page */ } else { printf("\033*r0B"); /* End GFX */ if (!(Duplex && (Page & 1))) printf("\014"); /* Eject current page */ } fflush(stdout); /* * Free memory... */ free(Planes[0]); if (BitBuffer) free(BitBuffer); if (CompBuffer) free(CompBuffer); } /* * 'Shutdown()' - Shutdown the printer. */ void Shutdown(void) { /* * Send a PCL reset sequence. */ putchar(0x1b); putchar('E'); } /* * 'CancelJob()' - Cancel the current job... */ void CancelJob(int sig) /* I - Signal */ { (void)sig; Canceled = 1; } /* * 'CompressData()' - Compress a line of graphics. */ void CompressData(unsigned char *line, /* I - Data to compress */ unsigned length, /* I - Number of bytes */ unsigned plane, /* I - Color plane */ unsigned type) /* I - Type of compression */ { unsigned char *line_ptr, /* Current byte pointer */ *line_end, /* End-of-line byte pointer */ *comp_ptr, /* Pointer into compression buffer */ *start; /* Start of compression sequence */ unsigned count; /* Count of bytes for output */ switch (type) { default : /* * Do no compression... */ line_ptr = line; line_end = line + length; break; case 1 : /* * Do run-length encoding... */ line_end = line + length; for (line_ptr = line, comp_ptr = CompBuffer; line_ptr < line_end; comp_ptr += 2, line_ptr += count) { for (count = 1; (line_ptr + count) < line_end && line_ptr[0] == line_ptr[count] && count < 256; count ++); comp_ptr[0] = (unsigned char)(count - 1); comp_ptr[1] = line_ptr[0]; } line_ptr = CompBuffer; line_end = comp_ptr; break; case 2 : /* * Do TIFF pack-bits encoding... */ line_ptr = line; line_end = line + length; comp_ptr = CompBuffer; while (line_ptr < line_end) { if ((line_ptr + 1) >= line_end) { /* * Single byte on the end... */ *comp_ptr++ = 0x00; *comp_ptr++ = *line_ptr++; } else if (line_ptr[0] == line_ptr[1]) { /* * Repeated sequence... */ line_ptr ++; count = 2; while (line_ptr < (line_end - 1) && line_ptr[0] == line_ptr[1] && count < 127) { line_ptr ++; count ++; } *comp_ptr++ = (unsigned char)(257 - count); *comp_ptr++ = *line_ptr++; } else { /* * Non-repeated sequence... */ start = line_ptr; line_ptr ++; count = 1; while (line_ptr < (line_end - 1) && line_ptr[0] != line_ptr[1] && count < 127) { line_ptr ++; count ++; } *comp_ptr++ = (unsigned char)(count - 1); memcpy(comp_ptr, start, count); comp_ptr += count; } } line_ptr = CompBuffer; line_end = comp_ptr; break; } /* * Set the length of the data and write a raster plane... */ printf("\033*b%d%c", (int)(line_end - line_ptr), plane); fwrite(line_ptr, (size_t)(line_end - line_ptr), 1, stdout); } /* * 'OutputLine()' - Output a line of graphics. */ void OutputLine(cups_page_header2_t *header) /* I - Page header */ { unsigned plane, /* Current plane */ bytes, /* Bytes to write */ count; /* Bytes to convert */ unsigned char bit, /* Current plane data */ bit0, /* Current low bit data */ bit1, /* Current high bit data */ *plane_ptr, /* Pointer into Planes */ *bit_ptr; /* Pointer into BitBuffer */ /* * Output whitespace as needed... */ if (Feed > 0) { printf("\033*b%dY", Feed); Feed = 0; } /* * Write bitmap data as needed... */ bytes = (header->cupsWidth + 7) / 8; for (plane = 0; plane < NumPlanes; plane ++) if (ColorBits == 1) { /* * Send bits as-is... */ CompressData(Planes[plane], bytes, plane < (NumPlanes - 1) ? 'V' : 'W', header->cupsCompression); } else { /* * Separate low and high bit data into separate buffers. */ for (count = header->cupsBytesPerLine / NumPlanes, plane_ptr = Planes[plane], bit_ptr = BitBuffer; count > 0; count -= 2, plane_ptr += 2, bit_ptr ++) { bit = plane_ptr[0]; bit0 = (unsigned char)(((bit & 64) << 1) | ((bit & 16) << 2) | ((bit & 4) << 3) | ((bit & 1) << 4)); bit1 = (unsigned char)((bit & 128) | ((bit & 32) << 1) | ((bit & 8) << 2) | ((bit & 2) << 3)); if (count > 1) { bit = plane_ptr[1]; bit0 |= (unsigned char)((bit & 1) | ((bit & 4) >> 1) | ((bit & 16) >> 2) | ((bit & 64) >> 3)); bit1 |= (unsigned char)(((bit & 2) >> 1) | ((bit & 8) >> 2) | ((bit & 32) >> 3) | ((bit & 128) >> 4)); } bit_ptr[0] = bit0; bit_ptr[bytes] = bit1; } /* * Send low and high bits... */ CompressData(BitBuffer, bytes, 'V', header->cupsCompression); CompressData(BitBuffer + bytes, bytes, plane < (NumPlanes - 1) ? 'V' : 'W', header->cupsCompression); } fflush(stdout); } /* * 'main()' - Main entry and processing of driver. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int fd; /* File descriptor */ cups_raster_t *ras; /* Raster stream for printing */ cups_page_header2_t header; /* Page header from file */ unsigned y; /* Current line */ ppd_file_t *ppd; /* PPD file */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Check command-line... */ if (argc != 6 && argc != 7) { /* * We don't have the correct number of arguments; write an error message * and return. */ _cupsLangPrintFilter(stderr, "ERROR", _("%s job-id user title copies options [file]"), "rastertohp"); return (1); } /* * Open the page stream... */ if (argc == 7) { if ((fd = open(argv[6], O_RDONLY)) == -1) { _cupsLangPrintError("ERROR", _("Unable to open raster file")); sleep(1); return (1); } } else fd = 0; ras = cupsRasterOpen(fd, CUPS_RASTER_READ); /* * Register a signal handler to eject the current page if the * job is cancelled. */ Canceled = 0; #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, CancelJob); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = CancelJob; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, CancelJob); #endif /* HAVE_SIGSET */ /* * Initialize the print device... */ ppd = ppdOpenFile(getenv("PPD")); if (!ppd) { ppd_status_t status; /* PPD error */ int linenum; /* Line number */ _cupsLangPrintFilter(stderr, "ERROR", _("The PPD file could not be opened.")); status = ppdLastError(&linenum); fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum); return (1); } Setup(); /* * Process pages as needed... */ Page = 0; while (cupsRasterReadHeader2(ras, &header)) { /* * Write a status message with the page number and number of copies. */ if (Canceled) break; Page ++; fprintf(stderr, "PAGE: %d %d\n", Page, header.NumCopies); _cupsLangPrintFilter(stderr, "INFO", _("Starting page %d."), Page); /* * Start the page... */ StartPage(ppd, &header); /* * Loop for each line on the page... */ for (y = 0; y < header.cupsHeight; y ++) { /* * Let the user know how far we have progressed... */ if (Canceled) break; if ((y & 127) == 0) { _cupsLangPrintFilter(stderr, "INFO", _("Printing page %d, %u%% complete."), Page, 100 * y / header.cupsHeight); fprintf(stderr, "ATTR: job-media-progress=%u\n", 100 * y / header.cupsHeight); } /* * Read a line of graphics... */ if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) break; /* * See if the line is blank; if not, write it to the printer... */ if (Planes[0][0] || memcmp(Planes[0], Planes[0] + 1, header.cupsBytesPerLine - 1)) OutputLine(&header); else Feed ++; } /* * Eject the page... */ _cupsLangPrintFilter(stderr, "INFO", _("Finished page %d."), Page); EndPage(); if (Canceled) break; } /* * Shutdown the printer... */ Shutdown(); ppdClose(ppd); /* * Close the raster stream... */ cupsRasterClose(ras); if (fd != 0) close(fd); /* * If no pages were printed, send an error message... */ if (Page == 0) { _cupsLangPrintFilter(stderr, "ERROR", _("No pages were found.")); return (1); } else return (0); } cups-2.4.7/filter/rastertoepson.c0000644000175000017500000005764114502571342016737 0ustar zdohnalzdohnal/* * EPSON ESC/P and ESC/P2 filter for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1993-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #include /* * Model numbers... */ #define EPSON_9PIN 0 #define EPSON_24PIN 1 #define EPSON_COLOR 2 #define EPSON_PHOTO 3 #define EPSON_ICOLOR 4 #define EPSON_IPHOTO 5 /* * Macros... */ #define pwrite(s,n) fwrite((s), 1, (n), stdout) /* * Globals... */ unsigned char *Planes[6], /* Output buffers */ *CompBuffer, /* Compression buffer */ *LineBuffers[2]; /* Line bitmap buffers */ int Model, /* Model number */ EjectPage, /* Eject the page when done? */ Shingling, /* Shingle output? */ Canceled; /* Has the current job been canceled? */ unsigned NumPlanes, /* Number of color planes */ Feed, /* Number of lines to skip */ DotBit, /* Bit in buffers */ DotBytes, /* # bytes in a dot column */ DotColumns, /* # columns in 1/60 inch */ LineCount, /* # of lines processed */ EvenOffset, /* Offset into 'even' buffers */ OddOffset; /* Offset into 'odd' buffers */ /* * Prototypes... */ void Setup(void); void StartPage(const ppd_file_t *ppd, const cups_page_header2_t *header); void EndPage(const cups_page_header2_t *header); void Shutdown(void); void CancelJob(int sig); void CompressData(const unsigned char *line, unsigned length, unsigned plane, unsigned type, unsigned xstep, unsigned ystep); void OutputLine(const cups_page_header2_t *header); void OutputRows(const cups_page_header2_t *header, int row); /* * 'Setup()' - Prepare the printer for printing. */ void Setup(void) { const char *device_uri; /* The device for the printer... */ /* * EPSON USB printers need an additional command issued at the * beginning of each job to exit from "packet" mode... */ if ((device_uri = getenv("DEVICE_URI")) != NULL && strncmp(device_uri, "usb:", 4) == 0 && Model >= EPSON_ICOLOR) pwrite("\000\000\000\033\001@EJL 1284.4\n@EJL \n\033@", 29); } /* * 'StartPage()' - Start a page of graphics. */ void StartPage( const ppd_file_t *ppd, /* I - PPD file */ const cups_page_header2_t *header) /* I - Page header */ { int n, t; /* Numbers */ unsigned plane; /* Looping var */ /* * Show page device dictionary... */ fprintf(stderr, "DEBUG: StartPage...\n"); 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: 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: NumCopies = %d\n", header->NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); 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); /* * Send a reset sequence. */ if (ppd && ppd->nickname && strstr(ppd->nickname, "OKIDATA") != NULL) printf("\033{A"); /* Set EPSON emulation mode */ printf("\033@"); /* * See which type of printer we are using... */ switch (Model) { case EPSON_9PIN : case EPSON_24PIN : printf("\033P\022"); /* Set 10 CPI */ if (header->HWResolution[0] == 360 || header->HWResolution[0] == 240) { printf("\033x1"); /* LQ printing */ printf("\033U1"); /* Unidirectional */ } else { printf("\033x0"); /* Draft printing */ printf("\033U0"); /* Bidirectional */ } printf("\033l%c\033Q%c", 0, /* Side margins */ (int)(10.0 * header->PageSize[0] / 72.0 + 0.5)); printf("\033\062\033C%c", /* Page length in 1/6th inches */ (int)(header->PageSize[1] / 12.0 + 0.5)); printf("\033N%c", 0); /* Bottom margin */ printf("\033O"); /* No perforation skip */ /* * Setup various buffer limits... */ DotBytes = header->cupsRowCount / 8; DotColumns = header->HWResolution[0] / 60; Shingling = 0; if (Model == EPSON_9PIN) printf("\033\063\030"); /* Set line feed */ else switch (header->HWResolution[0]) { case 60: case 120 : case 240 : printf("\033\063\030"); /* Set line feed */ break; case 180 : case 360 : Shingling = 1; if (header->HWResolution[1] == 180) printf("\033\063\010");/* Set line feed */ else printf("\033+\010"); /* Set line feed */ break; } break; default : /* * Set graphics mode... */ pwrite("\033(G\001\000\001", 6); /* Graphics mode */ /* * Set the media size... */ if (Model < EPSON_ICOLOR) { pwrite("\033(U\001\000", 5); /* Resolution/units */ putchar((int)(3600 / header->HWResolution[1])); } else { pwrite("\033(U\005\000", 5); putchar((int)(1440 / header->HWResolution[1])); putchar((int)(1440 / header->HWResolution[1])); putchar((int)(1440 / header->HWResolution[0])); putchar(0xa0); /* n/1440ths... */ putchar(0x05); } n = (int)(header->PageSize[1] * header->HWResolution[1] / 72.0); pwrite("\033(C\002\000", 5); /* Page length */ putchar(n); putchar(n >> 8); if (ppd) t = (int)((ppd->sizes[1].length - ppd->sizes[1].top) * header->HWResolution[1] / 72.0); else t = 0; pwrite("\033(c\004\000", 5); /* Top & bottom margins */ putchar(t); putchar(t >> 8); putchar(n); putchar(n >> 8); if (header->HWResolution[1] == 720) { pwrite("\033(i\001\000\001", 6); /* Microweave */ pwrite("\033(e\002\000\000\001", 7); /* Small dots */ } pwrite("\033(V\002\000\000\000", 7); /* Set absolute position 0 */ DotBytes = 0; DotColumns = 0; Shingling = 0; break; } /* * Set other stuff... */ if (header->cupsColorSpace == CUPS_CSPACE_CMY) NumPlanes = 3; else if (header->cupsColorSpace == CUPS_CSPACE_KCMY) NumPlanes = 4; else if (header->cupsColorSpace == CUPS_CSPACE_KCMYcm) NumPlanes = 6; else NumPlanes = 1; Feed = 0; /* No blank lines yet */ /* * Allocate memory for a line/row of graphics... */ if ((Planes[0] = malloc(header->cupsBytesPerLine + NumPlanes)) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); } for (plane = 1; plane < NumPlanes; plane ++) Planes[plane] = Planes[0] + plane * header->cupsBytesPerLine / NumPlanes; if (header->cupsCompression || DotBytes) { if ((CompBuffer = calloc(2, header->cupsWidth + 1)) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); } } else CompBuffer = NULL; if (DotBytes) { if ((LineBuffers[0] = calloc((size_t)DotBytes, (header->cupsWidth + 7) * (size_t)(Shingling + 1))) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); } LineBuffers[1] = LineBuffers[0] + DotBytes * header->cupsWidth; DotBit = 128; LineCount = 0; EvenOffset = 0; OddOffset = 0; } } /* * 'EndPage()' - Finish a page of graphics. */ void EndPage( const cups_page_header2_t *header) /* I - Page header */ { if (DotBytes && header) { /* * Flush remaining graphics as needed... */ if (!Shingling) { if (DotBit < 128 || EvenOffset) OutputRows(header, 0); } else if (OddOffset > EvenOffset) { OutputRows(header, 1); OutputRows(header, 0); } else { OutputRows(header, 0); OutputRows(header, 1); } } /* * Eject the current page... */ putchar(12); /* Form feed */ fflush(stdout); /* * Free memory... */ free(Planes[0]); if (CompBuffer) free(CompBuffer); if (DotBytes) free(LineBuffers[0]); } /* * 'Shutdown()' - Shutdown the printer. */ void Shutdown(void) { /* * Send a reset sequence. */ printf("\033@"); } /* * 'CancelJob()' - Cancel the current job... */ void CancelJob(int sig) /* I - Signal */ { (void)sig; Canceled = 1; } /* * 'CompressData()' - Compress a line of graphics. */ void CompressData(const unsigned char *line, /* I - Data to compress */ unsigned length,/* I - Number of bytes */ unsigned plane, /* I - Color plane */ unsigned type, /* I - Type of compression */ unsigned xstep, /* I - X resolution */ unsigned ystep) /* I - Y resolution */ { const unsigned char *line_ptr, /* Current byte pointer */ *line_end, /* End-of-line byte pointer */ *start; /* Start of compression sequence */ unsigned char *comp_ptr, /* Pointer into compression buffer */ temp; /* Current byte */ int count; /* Count of bytes for output */ static int ctable[6] = { 0, 2, 1, 4, 18, 17 }; /* KCMYcm color values */ /* * Setup pointers... */ line_ptr = line; line_end = line + length; /* * Do depletion for 720 DPI printing... */ if (ystep == 5) { for (comp_ptr = (unsigned char *)line; comp_ptr < line_end;) { /* * Grab the current byte... */ temp = *comp_ptr; /* * Check adjacent bits... */ if ((temp & 0xc0) == 0xc0) temp &= 0xbf; if ((temp & 0x60) == 0x60) temp &= 0xdf; if ((temp & 0x30) == 0x30) temp &= 0xef; if ((temp & 0x18) == 0x18) temp &= 0xf7; if ((temp & 0x0c) == 0x0c) temp &= 0xfb; if ((temp & 0x06) == 0x06) temp &= 0xfd; if ((temp & 0x03) == 0x03) temp &= 0xfe; *comp_ptr++ = temp; /* * Check the last bit in the current byte... */ if ((temp & 0x01) && comp_ptr < line_end) *comp_ptr &= 0x7f; } } switch (type) { case 0 : /* * Do no compression... */ break; case 1 : /* * Do TIFF pack-bits encoding... */ comp_ptr = CompBuffer; while (line_ptr < line_end) { if ((line_ptr + 1) >= line_end) { /* * Single byte on the end... */ *comp_ptr++ = 0x00; *comp_ptr++ = *line_ptr++; } else if (line_ptr[0] == line_ptr[1]) { /* * Repeated sequence... */ line_ptr ++; count = 2; while (line_ptr < (line_end - 1) && line_ptr[0] == line_ptr[1] && count < 127) { line_ptr ++; count ++; } *comp_ptr++ = (unsigned char)(257 - count); *comp_ptr++ = *line_ptr++; } else { /* * Non-repeated sequence... */ start = line_ptr; line_ptr ++; count = 1; while (line_ptr < (line_end - 1) && line_ptr[0] != line_ptr[1] && count < 127) { line_ptr ++; count ++; } *comp_ptr++ = (unsigned char)(count - 1); memcpy(comp_ptr, start, (size_t)count); comp_ptr += count; } } line_ptr = CompBuffer; line_end = comp_ptr; break; } putchar(0x0d); /* Move print head to left margin */ if (Model < EPSON_ICOLOR) { /* * Do graphics the "old" way... */ if (NumPlanes > 1) { /* * Set the color... */ if (plane > 3) printf("\033(r%c%c%c%c", 2, 0, 1, ctable[plane] & 15); /* Set extended color */ else if (NumPlanes == 3) printf("\033r%c", ctable[plane + 1]); /* Set color */ else printf("\033r%c", ctable[plane]); /* Set color */ } /* * Send a raster plane... */ length *= 8; printf("\033."); /* Raster graphics */ putchar((int)type); putchar((int)ystep); putchar((int)xstep); putchar(1); putchar((int)length); putchar((int)(length >> 8)); } else { /* * Do graphics the "new" way... */ printf("\033i"); putchar(ctable[plane]); putchar((int)type); putchar(1); putchar((int)length); putchar((int)(length >> 8)); putchar(1); putchar(0); } pwrite(line_ptr, (size_t)(line_end - line_ptr)); fflush(stdout); } /* * 'OutputLine()' - Output a line of graphics. */ void OutputLine( const cups_page_header2_t *header) /* I - Page header */ { if (header->cupsRowCount) { unsigned width; unsigned char *tempptr, *evenptr, *oddptr; unsigned int x; unsigned char bit; const unsigned char *pixel; unsigned char *temp; /* * Collect bitmap data in the line buffers and write after each buffer. */ for (x = header->cupsWidth, bit = 128, pixel = Planes[0], temp = CompBuffer; x > 0; x --, temp ++) { if (*pixel & bit) *temp |= DotBit; if (bit > 1) bit >>= 1; else { bit = 128; pixel ++; } } if (DotBit > 1) DotBit >>= 1; else { /* * Copy the holding buffer to the output buffer, shingling as necessary... */ if (Shingling && LineCount != 0) { /* * Shingle the output... */ if (LineCount & 1) { evenptr = LineBuffers[1] + OddOffset; oddptr = LineBuffers[0] + EvenOffset + DotBytes; } else { evenptr = LineBuffers[0] + EvenOffset; oddptr = LineBuffers[1] + OddOffset + DotBytes; } for (width = header->cupsWidth, tempptr = CompBuffer; width > 1; width -= 2, tempptr += 2, oddptr += DotBytes * 2, evenptr += DotBytes * 2) { evenptr[0] = tempptr[0]; oddptr[0] = tempptr[1]; } if (width == 1) { evenptr[0] = tempptr[0]; oddptr[0] = tempptr[1]; } } else { /* * Don't shingle the output... */ for (width = header->cupsWidth, tempptr = CompBuffer, evenptr = LineBuffers[0] + EvenOffset; width > 0; width --, tempptr ++, evenptr += DotBytes) *evenptr = tempptr[0]; } if (Shingling && LineCount != 0) { EvenOffset ++; OddOffset ++; if (EvenOffset == DotBytes) { EvenOffset = 0; OutputRows(header, 0); } if (OddOffset == DotBytes) { OddOffset = 0; OutputRows(header, 1); } } else { EvenOffset ++; if (EvenOffset == DotBytes) { EvenOffset = 0; OutputRows(header, 0); } } DotBit = 128; LineCount ++; memset(CompBuffer, 0, header->cupsWidth); } } else { unsigned plane; /* Current plane */ unsigned bytes; /* Bytes per plane */ unsigned xstep, ystep; /* X & Y resolutions */ /* * Write a single line of bitmap data as needed... */ xstep = 3600 / header->HWResolution[0]; ystep = 3600 / header->HWResolution[1]; bytes = header->cupsBytesPerLine / NumPlanes; for (plane = 0; plane < NumPlanes; plane ++) { /* * Skip blank data... */ if (!Planes[plane][0] && memcmp(Planes[plane], Planes[plane] + 1, (size_t)bytes - 1) == 0) continue; /* * Output whitespace as needed... */ if (Feed > 0) { pwrite("\033(v\002\000", 5); /* Relative vertical position */ putchar((int)Feed); putchar((int)(Feed >> 8)); Feed = 0; } CompressData(Planes[plane], bytes, plane, header->cupsCompression, xstep, ystep); } Feed ++; } } /* * 'OutputRows()' - Output 8, 24, or 48 rows. */ void OutputRows( const cups_page_header2_t *header, /* I - Page image header */ int row) /* I - Row number (0 or 1) */ { unsigned i, n, /* Looping vars */ dot_count, /* Number of bytes to print */ dot_min; /* Minimum number of bytes */ unsigned char *dot_ptr, /* Pointer to print data */ *ptr; /* Current data */ dot_min = DotBytes * DotColumns; if (LineBuffers[row][0] != 0 || memcmp(LineBuffers[row], LineBuffers[row] + 1, header->cupsWidth * DotBytes - 1)) { /* * Skip leading space... */ i = 0; dot_count = header->cupsWidth * DotBytes; dot_ptr = LineBuffers[row]; while (dot_count >= dot_min && dot_ptr[0] == 0 && memcmp(dot_ptr, dot_ptr + 1, dot_min - 1) == 0) { i ++; dot_ptr += dot_min; dot_count -= dot_min; } /* * Skip trailing space... */ while (dot_count >= dot_min && dot_ptr[dot_count - dot_min] == 0 && memcmp(dot_ptr + dot_count - dot_min, dot_ptr + dot_count - dot_min + 1, dot_min - 1) == 0) dot_count -= dot_min; /* * Position print head for printing... */ if (i == 0) putchar('\r'); else { putchar(0x1b); putchar('$'); putchar((int)(i & 255)); putchar((int)(i >> 8)); } /* * Start bitmap graphics for this line... */ printf("\033*"); /* Select bit image */ switch (header->HWResolution[0]) { case 60 : /* 60x60/72 DPI gfx */ putchar(0); break; case 120 : /* 120x60/72 DPI gfx */ putchar(1); break; case 180 : /* 180 DPI gfx */ putchar(39); break; case 240 : /* 240x72 DPI gfx */ putchar(3); break; case 360 : /* 360x180/360 DPI gfx */ if (header->HWResolution[1] == 180) { if (Shingling && LineCount != 0) putchar(40); /* 360x180 fast */ else putchar(41); /* 360x180 slow */ } else { if (Shingling && LineCount != 0) putchar(72); /* 360x360 fast */ else putchar(73); /* 360x360 slow */ } break; } n = dot_count / DotBytes; putchar((int)(n & 255)); putchar((int)(n / 256)); /* * Write the graphics data... */ if (header->HWResolution[0] == 120 || header->HWResolution[0] == 240) { /* * Need to interleave the dots to avoid hosing the print head... */ for (n = dot_count / 2, ptr = dot_ptr; n > 0; n --, ptr += 2) { putchar(*ptr); putchar(0); } if (dot_count & 1) putchar(*ptr); /* * Move the head back and print the odd bytes... */ if (i == 0) putchar('\r'); else { putchar(0x1b); putchar('$'); putchar((int)(i & 255)); putchar((int)(i >> 8)); } if (header->HWResolution[0] == 120) printf("\033*\001"); /* Select bit image */ else printf("\033*\003"); /* Select bit image */ n = (unsigned)dot_count / DotBytes; putchar((int)(n & 255)); putchar((int)(n / 256)); for (n = dot_count / 2, ptr = dot_ptr + 1; n > 0; n --, ptr += 2) { putchar(0); putchar(*ptr); } if (dot_count & 1) putchar(0); } else pwrite(dot_ptr, dot_count); } /* * Feed the paper... */ putchar('\n'); if (Shingling && row == 1) { if (header->HWResolution[1] == 360) printf("\n\n\n\n"); else printf("\n"); } fflush(stdout); /* * Clear the buffer... */ memset(LineBuffers[row], 0, (size_t)header->cupsWidth * (size_t)DotBytes); } /* * 'main()' - Main entry and processing of driver. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int fd; /* File descriptor */ cups_raster_t *ras; /* Raster stream for printing */ cups_page_header2_t header; /* Page header from file */ ppd_file_t *ppd; /* PPD file */ int page; /* Current page */ unsigned y; /* Current line */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Check command-line... */ if (argc != 6 && argc != 7) { /* * We don't have the correct number of arguments; write an error message * and return. */ _cupsLangPrintFilter(stderr, "ERROR", _("%s job-id user title copies options [file]"), "rastertoepson"); return (1); } /* * Open the page stream... */ if (argc == 7) { if ((fd = open(argv[6], O_RDONLY)) == -1) { _cupsLangPrintError("ERROR", _("Unable to open raster file")); sleep(1); return (1); } } else fd = 0; ras = cupsRasterOpen(fd, CUPS_RASTER_READ); /* * Register a signal handler to eject the current page if the * job is cancelled. */ Canceled = 0; #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, CancelJob); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = CancelJob; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, CancelJob); #endif /* HAVE_SIGSET */ /* * Initialize the print device... */ ppd = ppdOpenFile(getenv("PPD")); if (!ppd) { ppd_status_t status; /* PPD error */ int linenum; /* Line number */ _cupsLangPrintFilter(stderr, "ERROR", _("The PPD file could not be opened.")); status = ppdLastError(&linenum); fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum); return (1); } Model = ppd->model_number; Setup(); /* * Process pages as needed... */ page = 0; while (cupsRasterReadHeader2(ras, &header)) { /* * Write a status message with the page number and number of copies. */ if (Canceled) break; page ++; fprintf(stderr, "PAGE: %d %d\n", page, header.NumCopies); _cupsLangPrintFilter(stderr, "INFO", _("Starting page %d."), page); /* * Start the page... */ StartPage(ppd, &header); /* * Loop for each line on the page... */ for (y = 0; y < header.cupsHeight; y ++) { /* * Let the user know how far we have progressed... */ if (Canceled) break; if ((y & 127) == 0) { _cupsLangPrintFilter(stderr, "INFO", _("Printing page %d, %u%% complete."), page, 100 * y / header.cupsHeight); fprintf(stderr, "ATTR: job-media-progress=%u\n", 100 * y / header.cupsHeight); } /* * Read a line of graphics... */ if (cupsRasterReadPixels(ras, Planes[0], header.cupsBytesPerLine) < 1) break; /* * Write it to the printer... */ OutputLine(&header); } /* * Eject the page... */ _cupsLangPrintFilter(stderr, "INFO", _("Finished page %d."), page); EndPage(&header); if (Canceled) break; } /* * Shutdown the printer... */ Shutdown(); ppdClose(ppd); /* * Close the raster stream... */ cupsRasterClose(ras); if (fd != 0) close(fd); /* * If no pages were printed, send an error message... */ if (page == 0) { _cupsLangPrintFilter(stderr, "ERROR", _("No pages were found.")); return (1); } else return (0); } cups-2.4.7/filter/raster-driver.shtml0000644000175000017500000002713514502571342017520 0ustar zdohnalzdohnal

    Printer Driver Basics

    A CUPS raster printer driver consists of a PostScript Printer Description (PPD) file that describes the features and capabilities of the device, one or more filter programs that prepare print data for the device, and zero or more support files for color management, online help, and so forth. The PPD file includes references to all of the filters and support files used by the driver.

    Every time a user prints something the scheduler program, cupsd(8), determines the format of the print job and the programs required to convert that job into something the printer understands. CUPS includes filter programs for many common formats, for example to convert Portable Document Format (PDF) files into CUPS raster data. Figure 1 shows the data flow of a typical print job.

    The raster filter converts CUPS raster data into a format the printer understands, for example HP-PCL. CUPS includes several sample raster filters supporting standard page description languages (PDLs). Table 1 shows the raster filters that are bundled with CUPS and the languages they support.

    Table 1: Standard CUPS Raster Filters
    FilterPDLsppdc DriverTypeppdc #include file
    rastertoepsonESC/P, ESC/P2epsonepson.h
    rastertoescpxESC/P, ESC/P2, EPSON Remote Modeescpescp.h
    rastertohpHP-PCL3, HP-PCL5hphp.h
    rastertolabelCPCL, Dymo, EPL1, EPL2, Intellitech PCL, ZPLlabellabel.h
    rastertopclxHP-RTL, HP-PCL3, HP-PCL3GUI, HP-PCL5, HP-PCL5c, HP-PCL5epclpcl.h

    The optional port monitor handles interface-specific protocol or encoding issues. For example, some raster printers use the 1284.4 communications protocol.

    The backend handles communications with the printer, sending print data from the last filter to the printer and relaying back-channel data from the printer to the upstream filters. CUPS includes backend programs for common direct-connect interfaces and network protocols, and you can provide your own backend to support custom interfaces and protocols.

    The scheduler also supports a special "command" file format for sending maintenance commands and status queries to a printer or printer driver. Command print jobs typically use a single command filter program defined in the PPD file to generate the appropriate printer commands and handle any responses from the printer. Figure 2 shows the data flow of a typical command job.

    Raster printer drivers must provide their own command filter.

    Creating New PPD Files

    We recommend using the CUPS PPD compiler, ppdc(1), to create new PPD files since it manages many of the tedious (and error-prone!) details of paper sizes and localization for you. It also allows you to easily support multiple devices from a single source file. For more information see the "Introduction to the PPD Compiler" document. Listing 1 shows a driver information file for several similar black-and-white HP-PCL5 laser printers.

    Listing 1: "examples/laserjet-basic.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // Include HP-PCL driver definitions
    #include <pcl.h>
    
    // Specify that this driver uses the HP-PCL driver...
    DriverType pcl
    
    // Specify the driver options via the model number...
    ModelNumber ($PCL_PAPER_SIZE $PCL_PJL $PCL_PJL_RESOLUTION)
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and driver version
    Manufacturer "HP"
    Version 1.0
    
    // Supported page sizes and their margins
    HWMargins 18 12 18 12
    *MediaSize Letter
    MediaSize Legal
    MediaSize Executive
    MediaSize Monarch
    MediaSize Statement
    MediaSize FanFoldGermanLegal
    
    HWMargins 18 12.72 18 12.72
    MediaSize Env10
    
    HWMargins 9.72 12 9.72 12
    MediaSize A4
    MediaSize A5
    MediaSize B5
    MediaSize EnvC5
    MediaSize EnvDL
    MediaSize EnvISOB5
    MediaSize Postcard
    MediaSize DoublePostcard
    
    // Only black-and-white output with mode 3 compression...
    ColorModel Gray k chunky 3
    
    // Supported resolutions
    Resolution - 1 0 0 0 "300dpi/300 DPI"
    *Resolution - 8 0 0 0 "600dpi/600 DPI"
    
    // Supported input slots
    *InputSlot 7 "Auto/Automatic Selection"
    InputSlot 2 "Manual/Tray 1 - Manual Feed"
    InputSlot 4 "Upper/Tray 1"
    InputSlot 1 "Lower/Tray 2"
    InputSlot 5 "LargeCapacity/Tray 3"
    
    // Tray 3 is an option...
    Installable "OptionLargeCapacity/Tray 3 Installed"
    UIConstraints "*OptionLargeCapacity False *InputSlot LargeCapacity"
    
    {
      // HP LaserJet 2100 Series
      Throughput 10
      ModelName "LaserJet 2100 Series"
      PCFileName "hpljt211.ppd"
    }
    
    {
      // LaserJet 2200 and 2300 series have duplexer option...
      Duplex normal
      Installable "OptionDuplex/Duplexer Installed"
      UIConstraints "*OptionDuplex False *Duplex"
    
      {
        // HP LaserJet 2200 Series
        Throughput 19
        ModelName "LaserJet 2200 Series"
        PCFileName "hpljt221.ppd"
      }
    
      {
        // HP LaserJet 2300 Series
        Throughput 25
        ModelName "LaserJet 2300 Series"
        PCFileName "hpljt231.ppd"
      }
    }
    

    Using Filters

    The standard CUPS raster filters can be specified using the DriverType directive, for example:

    // Specify that this driver uses the HP-PCL driver...
    DriverType pcl
    

    Table 1 shows the driver types for each of the standard CUPS raster filters. For drivers that do not use the standard raster filters, the "custom" type is used with Filter directives:

    DriverType custom
    Filter application/vnd.cups-raster 100 /path/to/raster/filter
    Filter application/vnd.cups-command 100 /path/to/command/filter
    

    Implementing Color Management

    CUPS uses ICC color profiles to provide more accurate color reproduction. The cupsICCProfile attribute defines the color profiles that are available for a given printer, for example:

    Attribute cupsICCProfile "ColorModel.MediaType.Resolution/Description" /path/to/ICC/profile
    

    where "ColorModel.MediaType.Resolution" defines a selector based on the corresponding option selections. A simple driver might only define profiles for the color models that are supported, for example a printer supporting Gray and RGB might use:

    Attribute cupsICCProfile "Gray../Grayscale Profile" /path/to/ICC/gray-profile
    Attribute cupsICCProfile "RGB../Full Color Profile" /path/to/ICC/rgb-profile
    

    The options used for profile selection can be customized using the cupsICCQualifier2 and cupsICCQualifier3 attributes.

    Since macOS 10.5Custom Color Matching Support

    macOS printer drivers that are based on an existing standard RGB colorspace can tell the system to use the corresponding colorspace instead of an arbitrary ICC color profile when doing color management. The APSupportsCustomColorMatching and APDefaultCustomColorMatchingProfile attributes can be used to enable this mode:

    Attribute APSupportsCustomColorMatching "" true
    Attribute APDefaultCustomColorMatchingProfile "" sRGB
    

    Adding macOS Features

    macOS printer drivers can provide additional attributes to specify additional option panes in the print dialog, an image of the printer, a help book, and option presets for the driver software:

    Attribute APDialogExtension "" /Library/Printers/Vendor/filename.plugin
    Attribute APHelpBook "" /Library/Printers/Vendor/filename.bundle
    Attribute APPrinterIconPath "" /Library/Printers/Vendor/filename.icns
    Attribute APPrinterPreset "name/text" "*option choice ..."
    
    cups-2.4.7/filter/raster-driver.header0000644000175000017500000000232014502571342017606 0ustar zdohnalzdohnal

    Developing Raster Printer Drivers

    This document describes how to develop printer drivers for raster printers. Topics include: printer driver basics, creating new PPD files, using filters, implementing color management, and adding macOS features.

    cups-2.4.7/filter/pstops.c0000644000175000017500000025076114502571342015355 0ustar zdohnalzdohnal/* * PostScript filter for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1993-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "common.h" #include #include #include #include #include #include /* * Constants... */ #define PSTOPS_BORDERNONE 0 /* No border or hairline border */ #define PSTOPS_BORDERTHICK 1 /* Think border */ #define PSTOPS_BORDERSINGLE 2 /* Single-line hairline border */ #define PSTOPS_BORDERSINGLE2 3 /* Single-line thick border */ #define PSTOPS_BORDERDOUBLE 4 /* Double-line hairline border */ #define PSTOPS_BORDERDOUBLE2 5 /* Double-line thick border */ #define PSTOPS_LAYOUT_LRBT 0 /* Left to right, bottom to top */ #define PSTOPS_LAYOUT_LRTB 1 /* Left to right, top to bottom */ #define PSTOPS_LAYOUT_RLBT 2 /* Right to left, bottom to top */ #define PSTOPS_LAYOUT_RLTB 3 /* Right to left, top to bottom */ #define PSTOPS_LAYOUT_BTLR 4 /* Bottom to top, left to right */ #define PSTOPS_LAYOUT_TBLR 5 /* Top to bottom, left to right */ #define PSTOPS_LAYOUT_BTRL 6 /* Bottom to top, right to left */ #define PSTOPS_LAYOUT_TBRL 7 /* Top to bottom, right to left */ #define PSTOPS_LAYOUT_NEGATEY 1 /* The bits for the layout */ #define PSTOPS_LAYOUT_NEGATEX 2 /* definitions above... */ #define PSTOPS_LAYOUT_VERTICAL 4 /* * Types... */ typedef struct /**** Page information ****/ { char *label; /* Page label */ int bounding_box[4]; /* PageBoundingBox */ off_t offset; /* Offset to start of page */ ssize_t length; /* Number of bytes for page */ int num_options; /* Number of options for this page */ cups_option_t *options; /* Options for this page */ } pstops_page_t; typedef struct /**** Document information ****/ { int page; /* Current page */ int bounding_box[4]; /* BoundingBox from header */ int new_bounding_box[4]; /* New composite bounding box */ int num_options; /* Number of document-wide options */ cups_option_t *options; /* Document-wide options */ int normal_landscape, /* Normal rotation for landscape? */ saw_eof, /* Saw the %%EOF comment? */ slow_collate, /* Collate copies by hand? */ slow_duplex, /* Duplex pages slowly? */ slow_order, /* Reverse pages slowly? */ use_ESPshowpage; /* Use ESPshowpage? */ cups_array_t *pages; /* Pages in document */ cups_file_t *temp; /* Temporary file, if any */ char tempfile[1024]; /* Temporary filename */ int job_id; /* Job ID */ const char *user, /* User name */ *title; /* Job name */ int copies; /* Number of copies */ const char *ap_input_slot, /* AP_FIRSTPAGE_InputSlot value */ *ap_manual_feed, /* AP_FIRSTPAGE_ManualFeed value */ *ap_media_color, /* AP_FIRSTPAGE_MediaColor value */ *ap_media_type, /* AP_FIRSTPAGE_MediaType value */ *ap_page_region, /* AP_FIRSTPAGE_PageRegion value */ *ap_page_size; /* AP_FIRSTPAGE_PageSize value */ int collate, /* Collate copies? */ emit_jcl, /* Emit JCL commands? */ fit_to_page; /* Fit pages to media */ const char *input_slot, /* InputSlot value */ *manual_feed, /* ManualFeed value */ *media_color, /* MediaColor value */ *media_type, /* MediaType value */ *page_region, /* PageRegion value */ *page_size; /* PageSize value */ int mirror, /* doc->mirror/mirror pages */ number_up, /* Number of pages on each sheet */ number_up_layout, /* doc->number_up_layout of N-up pages */ output_order, /* Requested reverse output order? */ page_border; /* doc->page_border around pages */ const char *page_label, /* page-label option, if any */ *page_ranges, /* page-ranges option, if any */ *page_set; /* page-set option, if any */ } pstops_doc_t; /* * Convenience macros... */ #define is_first_page(p) (doc->number_up == 1 || \ ((p) % doc->number_up) == 1) #define is_last_page(p) (doc->number_up == 1 || \ ((p) % doc->number_up) == 0) #define is_not_last_page(p) (doc->number_up > 1 && \ ((p) % doc->number_up) != 0) /* * Local globals... */ static int JobCanceled = 0;/* Set to 1 on SIGTERM */ /* * Local functions... */ static pstops_page_t *add_page(pstops_doc_t *doc, const char *label); static void cancel_job(int sig); static int check_range(pstops_doc_t *doc, int page); static void copy_bytes(cups_file_t *fp, off_t offset, size_t length); static ssize_t copy_comments(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, char *line, ssize_t linelen, size_t linesize); static void copy_dsc(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, char *line, ssize_t linelen, size_t linesize); static void copy_non_dsc(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, char *line, ssize_t linelen, size_t linesize); static ssize_t copy_page(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, int number, char *line, ssize_t linelen, size_t linesize); static ssize_t copy_prolog(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, char *line, ssize_t linelen, size_t linesize); static ssize_t copy_setup(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, char *line, ssize_t linelen, size_t linesize); static ssize_t copy_trailer(cups_file_t *fp, pstops_doc_t *doc, ppd_file_t *ppd, int number, char *line, ssize_t linelen, size_t linesize); static void do_prolog(pstops_doc_t *doc, ppd_file_t *ppd); static void do_setup(pstops_doc_t *doc, ppd_file_t *ppd); static void doc_printf(pstops_doc_t *doc, const char *format, ...) _CUPS_FORMAT(2, 3); static void doc_puts(pstops_doc_t *doc, const char *s); static void doc_write(pstops_doc_t *doc, const char *s, size_t len); static void end_nup(pstops_doc_t *doc, int number); static int include_feature(ppd_file_t *ppd, const char *line, int num_options, cups_option_t **options); static char *parse_text(const char *start, char **end, char *buffer, size_t bufsize); static void set_pstops_options(pstops_doc_t *doc, ppd_file_t *ppd, char *argv[], int num_options, cups_option_t *options); static ssize_t skip_page(cups_file_t *fp, char *line, ssize_t linelen, size_t linesize); static void start_nup(pstops_doc_t *doc, int number, int show_border, const int *bounding_box); static void write_label_prolog(pstops_doc_t *doc, const char *label, float bottom, float top, float width); static void write_labels(pstops_doc_t *doc, int orient); static void write_options(pstops_doc_t *doc, ppd_file_t *ppd, int num_options, cups_option_t *options); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { pstops_doc_t doc; /* Document information */ cups_file_t *fp; /* Print file */ ppd_file_t *ppd; /* PPD file */ int num_options; /* Number of print options */ cups_option_t *options; /* Print options */ char line[8192]; /* Line buffer */ ssize_t len; /* Length of line buffer */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Ignore broken pipe signals... */ signal(SIGPIPE, SIG_IGN); /* * Check command-line... */ if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } /* * Register a signal handler to cleanly cancel a job. */ #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, cancel_job); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = cancel_job; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, cancel_job); #endif /* HAVE_SIGSET */ /* * If we have 7 arguments, print the file named on the command-line. * Otherwise, send stdin instead... */ if (argc == 6) fp = cupsFileStdin(); else { /* * Try to open the print file... */ if ((fp = cupsFileOpen(argv[6], "r")) == NULL) { if (!JobCanceled) { fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", argv[6]); _cupsLangPrintError("ERROR", _("Unable to open print file")); } return (1); } } /* * Read the first line to see if we have DSC comments... */ if ((len = (ssize_t)cupsFileGetLine(fp, line, sizeof(line))) == 0) { fputs("DEBUG: The print file is empty.\n", stderr); return (1); } /* * Process command-line options... */ options = NULL; num_options = cupsParseOptions(argv[5], 0, &options); ppd = SetCommonOptions(num_options, options, 1); set_pstops_options(&doc, ppd, argv, num_options, options); /* * Write any "exit server" options that have been selected... */ ppdEmit(ppd, stdout, PPD_ORDER_EXIT); /* * Write any JCL commands that are needed to print PostScript code... */ if (doc.emit_jcl) ppdEmitJCL(ppd, stdout, doc.job_id, doc.user, doc.title); /* * Start with a DSC header... */ puts("%!PS-Adobe-3.0"); /* * Skip leading PJL in the document... */ while (!strncmp(line, "\033%-12345X", 9) || !strncmp(line, "@PJL ", 5)) { /* * Yup, we have leading PJL fun, so skip it until we hit the line * with "ENTER LANGUAGE"... */ fputs("DEBUG: Skipping PJL header...\n", stderr); while (strstr(line, "ENTER LANGUAGE") == NULL && strncmp(line, "%!", 2)) if ((len = (ssize_t)cupsFileGetLine(fp, line, sizeof(line))) == 0) break; if (!strncmp(line, "%!", 2)) break; if ((len = (ssize_t)cupsFileGetLine(fp, line, sizeof(line))) == 0) break; } /* * Now see if the document conforms to the Adobe Document Structuring * Conventions... */ if (!strncmp(line, "%!PS-Adobe-", 11)) { /* * Yes, filter the document... */ copy_dsc(fp, &doc, ppd, line, len, sizeof(line)); } else { /* * No, display an error message and treat the file as if it contains * a single page... */ copy_non_dsc(fp, &doc, ppd, line, len, sizeof(line)); } /* * Send %%EOF as needed... */ if (!doc.saw_eof) puts("%%EOF"); /* * End the job with the appropriate JCL command or CTRL-D... */ if (doc.emit_jcl) { if (ppd && ppd->jcl_end) ppdEmitJCLEnd(ppd, stdout); else putchar(0x04); } /* * Close files and remove the temporary file if needed... */ if (doc.temp) { cupsFileClose(doc.temp); unlink(doc.tempfile); } ppdClose(ppd); cupsFreeOptions(num_options, options); cupsFileClose(fp); return (0); } /* * 'add_page()' - Add a page to the pages array. */ static pstops_page_t * /* O - New page info object */ add_page(pstops_doc_t *doc, /* I - Document information */ const char *label) /* I - Page label */ { pstops_page_t *pageinfo; /* New page info object */ if (!doc->pages) doc->pages = cupsArrayNew(NULL, NULL); if (!doc->pages) { _cupsLangPrintError("EMERG", _("Unable to allocate memory for pages array")); exit(1); } if ((pageinfo = calloc(1, sizeof(pstops_page_t))) == NULL) { _cupsLangPrintError("EMERG", _("Unable to allocate memory for page info")); exit(1); } pageinfo->label = strdup(label); pageinfo->offset = cupsFileTell(doc->temp); cupsArrayAdd(doc->pages, pageinfo); doc->page ++; return (pageinfo); } /* * 'cancel_job()' - Flag the job as canceled. */ static void cancel_job(int sig) /* I - Signal number (unused) */ { (void)sig; JobCanceled = 1; } /* * 'check_range()' - Check to see if the current page is selected for * printing. */ static int /* O - 1 if selected, 0 otherwise */ check_range(pstops_doc_t *doc, /* I - Document information */ int page) /* I - Page number */ { const char *range; /* Pointer into range string */ int lower, upper; /* Lower and upper page numbers */ if (doc->page_set) { /* * See if we only print even or odd pages... */ if (!_cups_strcasecmp(doc->page_set, "even") && (page & 1)) return (0); if (!_cups_strcasecmp(doc->page_set, "odd") && !(page & 1)) return (0); } if (!doc->page_ranges) return (1); /* No range, print all pages... */ for (range = doc->page_ranges; *range != '\0';) { if (*range == '-') { lower = 1; range ++; upper = (int)strtol(range, (char **)&range, 10); } else { lower = (int)strtol(range, (char **)&range, 10); if (*range == '-') { range ++; if (!isdigit(*range & 255)) upper = 65535; else upper = (int)strtol(range, (char **)&range, 10); } else upper = lower; } if (page >= lower && page <= upper) return (1); if (*range == ',') range ++; else break; } return (0); } /* * 'copy_bytes()' - Copy bytes from the input file to stdout. */ static void copy_bytes(cups_file_t *fp, /* I - File to read from */ off_t offset, /* I - Offset to page data */ size_t length) /* I - Length of page data */ { char buffer[8192]; /* Data buffer */ ssize_t nbytes; /* Number of bytes read */ size_t nleft; /* Number of bytes left/remaining */ nleft = length; if (cupsFileSeek(fp, offset) < 0) { _cupsLangPrintError("ERROR", _("Unable to see in file")); return; } while (nleft > 0 || length == 0) { if (nleft > sizeof(buffer) || length == 0) nbytes = sizeof(buffer); else nbytes = (ssize_t)nleft; if ((nbytes = cupsFileRead(fp, buffer, (size_t)nbytes)) < 1) return; nleft -= (size_t)nbytes; fwrite(buffer, 1, (size_t)nbytes, stdout); } } /* * 'copy_comments()' - Copy all of the comments section. * * This function expects "line" to be filled with a comment line. * On return, "line" will contain the next line in the file, if any. */ static ssize_t /* O - Length of next line */ copy_comments(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { int saw_bounding_box, /* Saw %%BoundingBox: comment? */ saw_for, /* Saw %%For: comment? */ saw_pages, /* Saw %%Pages: comment? */ saw_title; /* Saw %%Title: comment? */ /* * Loop until we see %%EndComments or a non-comment line... */ saw_bounding_box = 0; saw_for = 0; saw_pages = 0; saw_title = 0; while (line[0] == '%') { /* * Strip trailing whitespace... */ while (linelen > 0) { linelen --; if (!isspace(line[linelen] & 255)) break; else line[linelen] = '\0'; } /* * Log the header... */ fprintf(stderr, "DEBUG: %s\n", line); /* * Pull the headers out... */ if (!strncmp(line, "%%Pages:", 8)) { int pages; /* Number of pages */ if (saw_pages) fputs("DEBUG: A duplicate %%Pages: comment was seen.\n", stderr); saw_pages = 1; if (Duplex && (pages = atoi(line + 8)) > 0 && pages <= doc->number_up) { /* * Since we will only be printing on a single page, disable duplexing. */ Duplex = 0; doc->slow_duplex = 0; if (cupsGetOption("sides", doc->num_options, doc->options)) doc->num_options = cupsAddOption("sides", "one-sided", doc->num_options, &(doc->options)); if (cupsGetOption("Duplex", doc->num_options, doc->options)) doc->num_options = cupsAddOption("Duplex", "None", doc->num_options, &(doc->options)); if (cupsGetOption("EFDuplex", doc->num_options, doc->options)) doc->num_options = cupsAddOption("EFDuplex", "None", doc->num_options, &(doc->options)); if (cupsGetOption("EFDuplexing", doc->num_options, doc->options)) doc->num_options = cupsAddOption("EFDuplexing", "False", doc->num_options, &(doc->options)); if (cupsGetOption("KD03Duplex", doc->num_options, doc->options)) doc->num_options = cupsAddOption("KD03Duplex", "None", doc->num_options, &(doc->options)); if (cupsGetOption("JCLDuplex", doc->num_options, doc->options)) doc->num_options = cupsAddOption("JCLDuplex", "None", doc->num_options, &(doc->options)); ppdMarkOption(ppd, "Duplex", "None"); ppdMarkOption(ppd, "EFDuplex", "None"); ppdMarkOption(ppd, "EFDuplexing", "False"); ppdMarkOption(ppd, "KD03Duplex", "None"); ppdMarkOption(ppd, "JCLDuplex", "None"); } } else if (!strncmp(line, "%%BoundingBox:", 14)) { if (saw_bounding_box) fputs("DEBUG: A duplicate %%BoundingBox: comment was seen.\n", stderr); else if (strstr(line + 14, "(atend)")) { /* * Do nothing for now but use the default imageable area... */ } else if (sscanf(line + 14, "%d%d%d%d", doc->bounding_box + 0, doc->bounding_box + 1, doc->bounding_box + 2, doc->bounding_box + 3) != 4) { fputs("DEBUG: A bad %%BoundingBox: comment was seen.\n", stderr); doc->bounding_box[0] = (int)PageLeft; doc->bounding_box[1] = (int)PageBottom; doc->bounding_box[2] = (int)PageRight; doc->bounding_box[3] = (int)PageTop; } saw_bounding_box = 1; } else if (!strncmp(line, "%%For:", 6)) { saw_for = 1; doc_printf(doc, "%s\n", line); } else if (!strncmp(line, "%%Title:", 8)) { saw_title = 1; doc_printf(doc, "%s\n", line); } else if (!strncmp(line, "%cupsRotation:", 14)) { /* * Reset orientation of document? */ int orient = (atoi(line + 14) / 90) & 3; if (orient != Orientation) { /* * Yes, update things so that the pages come out right... */ Orientation = (4 - Orientation + orient) & 3; UpdatePageVars(); Orientation = orient; } } else if (!strcmp(line, "%%EndComments")) { linelen = (ssize_t)cupsFileGetLine(fp, line, linesize); break; } else if (strncmp(line, "%!", 2) && strncmp(line, "%cups", 5)) doc_printf(doc, "%s\n", line); if ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) == 0) break; } if (!saw_bounding_box) fputs("DEBUG: There wasn't a %%BoundingBox: comment in the header.\n", stderr); if (!saw_pages) fputs("DEBUG: There wasn't a %%Pages: comment in the header.\n", stderr); if (!saw_for) WriteTextComment("For", doc->user); if (!saw_title) WriteTextComment("Title", doc->title); if (doc->copies != 1 && (!doc->collate || !doc->slow_collate)) { /* * Tell the document processor the copy and duplex options * that are required... */ doc_printf(doc, "%%%%Requirements: numcopies(%d)%s%s\n", doc->copies, doc->collate ? " collate" : "", Duplex ? " duplex" : ""); /* * Apple uses RBI comments for various non-PPD options... */ doc_printf(doc, "%%RBINumCopies: %d\n", doc->copies); } else { /* * Tell the document processor the duplex option that is required... */ if (Duplex) doc_puts(doc, "%%Requirements: duplex\n"); /* * Apple uses RBI comments for various non-PPD options... */ doc_puts(doc, "%RBINumCopies: 1\n"); } doc_puts(doc, "%%Pages: (atend)\n"); doc_puts(doc, "%%BoundingBox: (atend)\n"); doc_puts(doc, "%%EndComments\n"); return (linelen); } /* * 'copy_dsc()' - Copy a DSC-conforming document. * * This function expects "line" to be filled with the %!PS-Adobe comment line. */ static void copy_dsc(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { int number; /* Page number */ pstops_page_t *pageinfo; /* Page information */ /* * Make sure we use ESPshowpage for EPS files... */ if (strstr(line, "EPSF")) { doc->use_ESPshowpage = 1; doc->number_up = 1; } /* * Start sending the document with any commands needed... */ fprintf(stderr, "DEBUG: Before copy_comments - %s", line); linelen = copy_comments(fp, doc, ppd, line, linelen, linesize); /* * Now find the prolog section, if any... */ fprintf(stderr, "DEBUG: Before copy_prolog - %s", line); linelen = copy_prolog(fp, doc, ppd, line, linelen, linesize); /* * Then the document setup section... */ fprintf(stderr, "DEBUG: Before copy_setup - %s", line); linelen = copy_setup(fp, doc, ppd, line, linelen, linesize); /* * Copy until we see %%Page:... */ while (strncmp(line, "%%Page:", 7) && strncmp(line, "%%Trailer", 9)) { doc_write(doc, line, (size_t)linelen); if ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) == 0) break; } /* * Then process pages until we have no more... */ number = 0; fprintf(stderr, "DEBUG: Before page loop - %s", line); while (!strncmp(line, "%%Page:", 7)) { if (JobCanceled) break; number ++; if (check_range(doc, (number - 1) / doc->number_up + 1)) { fprintf(stderr, "DEBUG: Copying page %d...\n", number); linelen = copy_page(fp, doc, ppd, number, line, linelen, linesize); } else { fprintf(stderr, "DEBUG: Skipping page %d...\n", number); linelen = skip_page(fp, line, linelen, linesize); } } /* * Finish up the last page(s)... */ if (number && is_not_last_page(number) && cupsArrayLast(doc->pages) && check_range(doc, (number - 1) / doc->number_up + 1)) { pageinfo = (pstops_page_t *)cupsArrayLast(doc->pages); start_nup(doc, doc->number_up, 0, doc->bounding_box); doc_puts(doc, "showpage\n"); end_nup(doc, doc->number_up); pageinfo->length = (ssize_t)(cupsFileTell(doc->temp) - pageinfo->offset); } if (doc->slow_duplex && (doc->page & 1)) { /* * Make sure we have an even number of pages... */ pageinfo = add_page(doc, "(filler)"); if (!doc->slow_order) { if (!ppd || !ppd->num_filters) fprintf(stderr, "PAGE: %d %d\n", doc->page, doc->slow_collate ? 1 : doc->copies); printf("%%%%Page: (filler) %d\n", doc->page); } start_nup(doc, doc->number_up, 0, doc->bounding_box); doc_puts(doc, "showpage\n"); end_nup(doc, doc->number_up); pageinfo->length = (ssize_t)(cupsFileTell(doc->temp) - pageinfo->offset); } /* * Make additional copies as necessary... */ number = doc->slow_order ? 0 : doc->page; if (doc->temp && !JobCanceled && cupsArrayCount(doc->pages) > 0) { int copy; /* Current copy */ /* * Reopen the temporary file for reading... */ cupsFileClose(doc->temp); doc->temp = cupsFileOpen(doc->tempfile, "r"); /* * Make the copies... */ if (doc->slow_collate) copy = !doc->slow_order; else copy = doc->copies - 1; for (; copy < doc->copies; copy ++) { if (JobCanceled) break; /* * Send end-of-job stuff followed by any start-of-job stuff required * for the JCL options... */ if (number && doc->emit_jcl && ppd && ppd->jcl_end) { /* * Send the trailer... */ puts("%%Trailer"); printf("%%%%Pages: %d\n", cupsArrayCount(doc->pages)); if (doc->number_up > 1 || doc->fit_to_page) printf("%%%%BoundingBox: %.0f %.0f %.0f %.0f\n", PageLeft, PageBottom, PageRight, PageTop); else printf("%%%%BoundingBox: %d %d %d %d\n", doc->new_bounding_box[0], doc->new_bounding_box[1], doc->new_bounding_box[2], doc->new_bounding_box[3]); puts("%%EOF"); /* * Start a new document... */ ppdEmitJCLEnd(ppd, stdout); ppdEmitJCL(ppd, stdout, doc->job_id, doc->user, doc->title); puts("%!PS-Adobe-3.0"); number = 0; } /* * Copy the prolog as needed... */ if (!number) { pageinfo = (pstops_page_t *)cupsArrayFirst(doc->pages); copy_bytes(doc->temp, 0, (size_t)pageinfo->offset); } /* * Then copy all of the pages... */ pageinfo = doc->slow_order ? (pstops_page_t *)cupsArrayLast(doc->pages) : (pstops_page_t *)cupsArrayFirst(doc->pages); while (pageinfo) { if (JobCanceled) break; number ++; if (!ppd || !ppd->num_filters) fprintf(stderr, "PAGE: %d %d\n", number, doc->slow_collate ? 1 : doc->copies); if (doc->number_up > 1) { printf("%%%%Page: (%d) %d\n", number, number); printf("%%%%PageBoundingBox: %.0f %.0f %.0f %.0f\n", PageLeft, PageBottom, PageRight, PageTop); } else { printf("%%%%Page: %s %d\n", pageinfo->label, number); printf("%%%%PageBoundingBox: %d %d %d %d\n", pageinfo->bounding_box[0], pageinfo->bounding_box[1], pageinfo->bounding_box[2], pageinfo->bounding_box[3]); } copy_bytes(doc->temp, pageinfo->offset, (size_t)pageinfo->length); pageinfo = doc->slow_order ? (pstops_page_t *)cupsArrayPrev(doc->pages) : (pstops_page_t *)cupsArrayNext(doc->pages); } } } /* * Restore the old showpage operator as needed... */ if (doc->use_ESPshowpage) puts("userdict/showpage/ESPshowpage load put\n"); /* * Write/copy the trailer... */ if (!JobCanceled) copy_trailer(fp, doc, ppd, number, line, linelen, linesize); } /* * 'copy_non_dsc()' - Copy a document that does not conform to the DSC. * * This function expects "line" to be filled with the %! comment line. */ static void copy_non_dsc(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { int copy; /* Current copy */ char buffer[8192]; /* Copy buffer */ ssize_t bytes; /* Number of bytes copied */ (void)linesize; /* * First let the user know that they are attempting to print a file * that may not print correctly... */ fputs("DEBUG: This document does not conform to the Adobe Document " "Structuring Conventions and may not print correctly.\n", stderr); /* * Then write a standard DSC comment section... */ printf("%%%%BoundingBox: %.0f %.0f %.0f %.0f\n", PageLeft, PageBottom, PageRight, PageTop); if (doc->slow_collate && doc->copies > 1) printf("%%%%Pages: %d\n", doc->copies); else puts("%%Pages: 1"); WriteTextComment("For", doc->user); WriteTextComment("Title", doc->title); if (doc->copies != 1 && (!doc->collate || !doc->slow_collate)) { /* * Tell the document processor the copy and duplex options * that are required... */ printf("%%%%Requirements: numcopies(%d)%s%s\n", doc->copies, doc->collate ? " collate" : "", Duplex ? " duplex" : ""); /* * Apple uses RBI comments for various non-PPD options... */ printf("%%RBINumCopies: %d\n", doc->copies); } else { /* * Tell the document processor the duplex option that is required... */ if (Duplex) puts("%%Requirements: duplex"); /* * Apple uses RBI comments for various non-PPD options... */ puts("%RBINumCopies: 1"); } puts("%%EndComments"); /* * Then the prolog... */ puts("%%BeginProlog"); do_prolog(doc, ppd); puts("%%EndProlog"); /* * Then the setup section... */ puts("%%BeginSetup"); do_setup(doc, ppd); puts("%%EndSetup"); /* * Finally, embed a copy of the file inside a %%Page... */ if (!ppd || !ppd->num_filters) fprintf(stderr, "PAGE: 1 %d\n", doc->temp ? 1 : doc->copies); puts("%%Page: 1 1"); puts("%%BeginPageSetup"); ppdEmit(ppd, stdout, PPD_ORDER_PAGE); puts("%%EndPageSetup"); puts("%%BeginDocument: nondsc"); fwrite(line, (size_t)linelen, 1, stdout); if (doc->temp) cupsFileWrite(doc->temp, line, (size_t)linelen); while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) { fwrite(buffer, 1, (size_t)bytes, stdout); if (doc->temp) cupsFileWrite(doc->temp, buffer, (size_t)bytes); } puts("%%EndDocument"); if (doc->use_ESPshowpage) { WriteLabels(Orientation); puts("ESPshowpage"); } if (doc->temp && !JobCanceled) { /* * Reopen the temporary file for reading... */ cupsFileClose(doc->temp); doc->temp = cupsFileOpen(doc->tempfile, "r"); /* * Make the additional copies as needed... */ for (copy = 1; copy < doc->copies; copy ++) { if (JobCanceled) break; if (!ppd || !ppd->num_filters) fputs("PAGE: 1 1\n", stderr); printf("%%%%Page: %d %d\n", copy + 1, copy + 1); puts("%%BeginPageSetup"); ppdEmit(ppd, stdout, PPD_ORDER_PAGE); puts("%%EndPageSetup"); puts("%%BeginDocument: nondsc"); copy_bytes(doc->temp, 0, 0); puts("%%EndDocument"); if (doc->use_ESPshowpage) { WriteLabels(Orientation); puts("ESPshowpage"); } } } /* * Restore the old showpage operator as needed... */ if (doc->use_ESPshowpage) puts("userdict/showpage/ESPshowpage load put\n"); } /* * 'copy_page()' - Copy a page description. * * This function expects "line" to be filled with a %%Page comment line. * On return, "line" will contain the next line in the file, if any. */ static ssize_t /* O - Length of next line */ copy_page(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ int number, /* I - Current page number */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { char label[256], /* Page label string */ *ptr; /* Pointer into line */ int level; /* Embedded document level */ pstops_page_t *pageinfo; /* Page information */ int first_page; /* First page on N-up output? */ int has_page_setup = 0; /* Does the page have %%Begin/EndPageSetup? */ int bounding_box[4]; /* PageBoundingBox */ /* * Get the page label for this page... */ first_page = is_first_page(number); if (!parse_text(line + 7, &ptr, label, sizeof(label))) { fputs("DEBUG: There was a bad %%Page: comment in the file.\n", stderr); label[0] = '\0'; number = doc->page; } else if (strtol(ptr, &ptr, 10) == LONG_MAX || !isspace(*ptr & 255)) { fputs("DEBUG: There was a bad %%Page: comment in the file.\n", stderr); number = doc->page; } /* * Create or update the current output page... */ if (first_page) pageinfo = add_page(doc, label); else pageinfo = (pstops_page_t *)cupsArrayLast(doc->pages); /* * Handle first page override... */ if (doc->ap_input_slot || doc->ap_manual_feed) { if ((doc->page == 1 && (!doc->slow_order || !Duplex)) || (doc->page == 2 && doc->slow_order && Duplex)) { /* * First page/sheet gets AP_FIRSTPAGE_* options... */ pageinfo->num_options = cupsAddOption("InputSlot", doc->ap_input_slot, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("ManualFeed", doc->ap_input_slot ? "False" : doc->ap_manual_feed, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("MediaColor", doc->ap_media_color, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("MediaType", doc->ap_media_type, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("PageRegion", doc->ap_page_region, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("PageSize", doc->ap_page_size, pageinfo->num_options, &(pageinfo->options)); } else if (doc->page == (Duplex + 2)) { /* * Second page/sheet gets default options... */ pageinfo->num_options = cupsAddOption("InputSlot", doc->input_slot, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("ManualFeed", doc->input_slot ? "False" : doc->manual_feed, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("MediaColor", doc->media_color, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("MediaType", doc->media_type, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("PageRegion", doc->page_region, pageinfo->num_options, &(pageinfo->options)); pageinfo->num_options = cupsAddOption("PageSize", doc->page_size, pageinfo->num_options, &(pageinfo->options)); } } /* * Scan comments until we see something other than %%Page*: or * %%Include*... */ memcpy(bounding_box, doc->bounding_box, sizeof(bounding_box)); while ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) > 0) { if (!strncmp(line, "%%PageBoundingBox:", 18)) { /* * %%PageBoundingBox: llx lly urx ury */ if (sscanf(line + 18, "%d%d%d%d", bounding_box + 0, bounding_box + 1, bounding_box + 2, bounding_box + 3) != 4) { fputs("DEBUG: There was a bad %%PageBoundingBox: comment in the file.\n", stderr); memcpy(bounding_box, doc->bounding_box, sizeof(bounding_box)); } else if (doc->number_up == 1 && !doc->fit_to_page && Orientation) { int temp_bbox[4]; /* Temporary bounding box */ memcpy(temp_bbox, bounding_box, sizeof(temp_bbox)); fprintf(stderr, "DEBUG: Orientation = %d\n", Orientation); fprintf(stderr, "DEBUG: original bounding_box = [ %d %d %d %d ]\n", bounding_box[0], bounding_box[1], bounding_box[2], bounding_box[3]); fprintf(stderr, "DEBUG: PageWidth = %.1f, PageLength = %.1f\n", PageWidth, PageLength); switch (Orientation) { case 1 : /* Landscape */ bounding_box[0] = (int)(PageLength - temp_bbox[3]); bounding_box[1] = temp_bbox[0]; bounding_box[2] = (int)(PageLength - temp_bbox[1]); bounding_box[3] = temp_bbox[2]; break; case 2 : /* Reverse Portrait */ bounding_box[0] = (int)(PageWidth - temp_bbox[2]); bounding_box[1] = (int)(PageLength - temp_bbox[3]); bounding_box[2] = (int)(PageWidth - temp_bbox[0]); bounding_box[3] = (int)(PageLength - temp_bbox[1]); break; case 3 : /* Reverse Landscape */ bounding_box[0] = temp_bbox[1]; bounding_box[1] = (int)(PageWidth - temp_bbox[2]); bounding_box[2] = temp_bbox[3]; bounding_box[3] = (int)(PageWidth - temp_bbox[0]); break; } fprintf(stderr, "DEBUG: updated bounding_box = [ %d %d %d %d ]\n", bounding_box[0], bounding_box[1], bounding_box[2], bounding_box[3]); } } #if 0 else if (!strncmp(line, "%%PageCustomColors:", 19) || !strncmp(line, "%%PageMedia:", 12) || !strncmp(line, "%%PageOrientation:", 18) || !strncmp(line, "%%PageProcessColors:", 20) || !strncmp(line, "%%PageRequirements:", 19) || !strncmp(line, "%%PageResources:", 16)) { /* * Copy literal... */ } #endif /* 0 */ else if (!strncmp(line, "%%PageCustomColors:", 19)) { /* * %%PageCustomColors: ... */ } else if (!strncmp(line, "%%PageMedia:", 12)) { /* * %%PageMedia: ... */ } else if (!strncmp(line, "%%PageOrientation:", 18)) { /* * %%PageOrientation: ... */ } else if (!strncmp(line, "%%PageProcessColors:", 20)) { /* * %%PageProcessColors: ... */ } else if (!strncmp(line, "%%PageRequirements:", 19)) { /* * %%PageRequirements: ... */ } else if (!strncmp(line, "%%PageResources:", 16)) { /* * %%PageResources: ... */ } else if (!strncmp(line, "%%IncludeFeature:", 17)) { /* * %%IncludeFeature: *MainKeyword OptionKeyword */ if (doc->number_up == 1 &&!doc->fit_to_page) pageinfo->num_options = include_feature(ppd, line, pageinfo->num_options, &(pageinfo->options)); } else if (!strncmp(line, "%%BeginPageSetup", 16)) { has_page_setup = 1; break; } else break; } if (doc->number_up == 1) { /* * Update the document's composite and page bounding box... */ memcpy(pageinfo->bounding_box, bounding_box, sizeof(pageinfo->bounding_box)); if (bounding_box[0] < doc->new_bounding_box[0]) doc->new_bounding_box[0] = bounding_box[0]; if (bounding_box[1] < doc->new_bounding_box[1]) doc->new_bounding_box[1] = bounding_box[1]; if (bounding_box[2] > doc->new_bounding_box[2]) doc->new_bounding_box[2] = bounding_box[2]; if (bounding_box[3] > doc->new_bounding_box[3]) doc->new_bounding_box[3] = bounding_box[3]; } /* * Output the page header as needed... */ if (!doc->slow_order && first_page) { if (!ppd || !ppd->num_filters) fprintf(stderr, "PAGE: %d %d\n", doc->page, doc->slow_collate ? 1 : doc->copies); if (doc->number_up > 1) { printf("%%%%Page: (%d) %d\n", doc->page, doc->page); printf("%%%%PageBoundingBox: %.0f %.0f %.0f %.0f\n", PageLeft, PageBottom, PageRight, PageTop); } else { printf("%%%%Page: %s %d\n", pageinfo->label, doc->page); printf("%%%%PageBoundingBox: %d %d %d %d\n", pageinfo->bounding_box[0], pageinfo->bounding_box[1], pageinfo->bounding_box[2], pageinfo->bounding_box[3]); } } /* * Copy any page setup commands... */ if (first_page) doc_puts(doc, "%%BeginPageSetup\n"); if (has_page_setup) { int feature = 0; /* In a Begin/EndFeature block? */ while ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) > 0) { if (!strncmp(line, "%%EndPageSetup", 14)) break; else if (!strncmp(line, "%%BeginFeature:", 15)) { feature = 1; if (doc->number_up > 1 || doc->fit_to_page) continue; } else if (!strncmp(line, "%%EndFeature", 12)) { feature = 0; if (doc->number_up > 1 || doc->fit_to_page) continue; } else if (!strncmp(line, "%%IncludeFeature:", 17)) { pageinfo->num_options = include_feature(ppd, line, pageinfo->num_options, &(pageinfo->options)); continue; } else if (!strncmp(line, "%%Include", 9)) continue; if (line[0] != '%' && !feature) break; if (!feature || (doc->number_up == 1 && !doc->fit_to_page)) doc_write(doc, line, (size_t)linelen); } /* * Skip %%EndPageSetup... */ if (linelen > 0 && !strncmp(line, "%%EndPageSetup", 14)) linelen = (ssize_t)cupsFileGetLine(fp, line, linesize); } if (first_page) { char *page_setup; /* PageSetup commands to send */ if (pageinfo->num_options > 0) write_options(doc, ppd, pageinfo->num_options, pageinfo->options); /* * Output commands for the current page... */ page_setup = ppdEmitString(ppd, PPD_ORDER_PAGE, 0); if (page_setup) { doc_puts(doc, page_setup); free(page_setup); } } /* * Prep for the start of the page description... */ start_nup(doc, number, 1, bounding_box); if (first_page) doc_puts(doc, "%%EndPageSetup\n"); /* * Read the rest of the page description... */ level = 0; do { if (level == 0 && (!strncmp(line, "%%Page:", 7) || !strncmp(line, "%%Trailer", 9) || !strncmp(line, "%%EOF", 5))) break; else if (!strncmp(line, "%%BeginDocument", 15) || !strncmp(line, "%ADO_BeginApplication", 21)) { doc_write(doc, line, (size_t)linelen); level ++; } else if ((!strncmp(line, "%%EndDocument", 13) || !strncmp(line, "%ADO_EndApplication", 19)) && level > 0) { doc_write(doc, line, (size_t)linelen); level --; } else if (!strncmp(line, "%%BeginBinary:", 14) || (!strncmp(line, "%%BeginData:", 12) && !strstr(line, "ASCII") && !strstr(line, "Hex"))) { /* * Copy binary data... */ int bytes; /* Bytes of data */ doc_write(doc, line, (size_t)linelen); bytes = atoi(strchr(line, ':') + 1); while (bytes > 0) { if ((size_t)bytes > linesize) linelen = cupsFileRead(fp, line, linesize); else linelen = cupsFileRead(fp, line, (size_t)bytes); if (linelen < 1) { line[0] = '\0'; perror("ERROR: Early end-of-file while reading binary data"); return (0); } doc_write(doc, line, (size_t)linelen); bytes -= linelen; } } else doc_write(doc, line, (size_t)linelen); } while ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) > 0); /* * Finish up this page and return... */ end_nup(doc, number); pageinfo->length = (ssize_t)(cupsFileTell(doc->temp) - pageinfo->offset); return (linelen); } /* * 'copy_prolog()' - Copy the document prolog section. * * This function expects "line" to be filled with a %%BeginProlog comment line. * On return, "line" will contain the next line in the file, if any. */ static ssize_t /* O - Length of next line */ copy_prolog(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { while (strncmp(line, "%%BeginProlog", 13)) { if (!strncmp(line, "%%BeginSetup", 12) || !strncmp(line, "%%Page:", 7)) break; doc_write(doc, line, (size_t)linelen); if ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) == 0) break; } doc_puts(doc, "%%BeginProlog\n"); do_prolog(doc, ppd); if (!strncmp(line, "%%BeginProlog", 13)) { while ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) > 0) { if (!strncmp(line, "%%EndProlog", 11) || !strncmp(line, "%%BeginSetup", 12) || !strncmp(line, "%%Page:", 7)) break; doc_write(doc, line, (size_t)linelen); } if (!strncmp(line, "%%EndProlog", 11)) linelen = (ssize_t)cupsFileGetLine(fp, line, linesize); else fputs("DEBUG: The %%EndProlog comment is missing.\n", stderr); } doc_puts(doc, "%%EndProlog\n"); return (linelen); } /* * 'copy_setup()' - Copy the document setup section. * * This function expects "line" to be filled with a %%BeginSetup comment line. * On return, "line" will contain the next line in the file, if any. */ static ssize_t /* O - Length of next line */ copy_setup(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { int num_options; /* Number of options */ cups_option_t *options; /* Options */ while (strncmp(line, "%%BeginSetup", 12)) { if (!strncmp(line, "%%Page:", 7)) break; doc_write(doc, line, (size_t)linelen); if ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) == 0) break; } doc_puts(doc, "%%BeginSetup\n"); do_setup(doc, ppd); num_options = 0; options = NULL; if (!strncmp(line, "%%BeginSetup", 12)) { while (strncmp(line, "%%EndSetup", 10)) { if (!strncmp(line, "%%Page:", 7)) break; else if (!strncmp(line, "%%IncludeFeature:", 17)) { /* * %%IncludeFeature: *MainKeyword OptionKeyword */ if (doc->number_up == 1 && !doc->fit_to_page) num_options = include_feature(ppd, line, num_options, &options); } else if (strncmp(line, "%%BeginSetup", 12)) doc_write(doc, line, (size_t)linelen); if ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) == 0) break; } if (!strncmp(line, "%%EndSetup", 10)) linelen = (ssize_t)cupsFileGetLine(fp, line, linesize); else fputs("DEBUG: The %%EndSetup comment is missing.\n", stderr); } if (num_options > 0) { write_options(doc, ppd, num_options, options); cupsFreeOptions(num_options, options); } doc_puts(doc, "%%EndSetup\n"); return (linelen); } /* * 'copy_trailer()' - Copy the document trailer. * * This function expects "line" to be filled with a %%Trailer comment line. * On return, "line" will contain the next line in the file, if any. */ static ssize_t /* O - Length of next line */ copy_trailer(cups_file_t *fp, /* I - File to read from */ pstops_doc_t *doc, /* I - Document info */ ppd_file_t *ppd, /* I - PPD file */ int number, /* I - Number of pages */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { /* * Write the trailer comments... */ (void)ppd; puts("%%Trailer"); while (linelen > 0) { if (!strncmp(line, "%%EOF", 5)) break; else if (strncmp(line, "%%Trailer", 9) && strncmp(line, "%%Pages:", 8) && strncmp(line, "%%BoundingBox:", 14)) fwrite(line, 1, (size_t)linelen, stdout); linelen = (ssize_t)cupsFileGetLine(fp, line, linesize); } fprintf(stderr, "DEBUG: Wrote %d pages...\n", number); printf("%%%%Pages: %d\n", number); if (doc->number_up > 1 || doc->fit_to_page) printf("%%%%BoundingBox: %.0f %.0f %.0f %.0f\n", PageLeft, PageBottom, PageRight, PageTop); else printf("%%%%BoundingBox: %d %d %d %d\n", doc->new_bounding_box[0], doc->new_bounding_box[1], doc->new_bounding_box[2], doc->new_bounding_box[3]); return (linelen); } /* * 'do_prolog()' - Send the necessary document prolog commands. */ static void do_prolog(pstops_doc_t *doc, /* I - Document information */ ppd_file_t *ppd) /* I - PPD file */ { char *ps; /* PS commands */ /* * Send the document prolog commands... */ if (ppd && ppd->patches) { doc_puts(doc, "%%BeginFeature: *JobPatchFile 1\n"); doc_puts(doc, ppd->patches); doc_puts(doc, "\n%%EndFeature\n"); } if ((ps = ppdEmitString(ppd, PPD_ORDER_PROLOG, 0.0)) != NULL) { doc_puts(doc, ps); free(ps); } /* * Define ESPshowpage here so that applications that define their * own procedure to do a showpage pick it up... */ if (doc->use_ESPshowpage) doc_puts(doc, "userdict/ESPshowpage/showpage load put\n" "userdict/showpage{}put\n"); } /* * 'do_setup()' - Send the necessary document setup commands. */ static void do_setup(pstops_doc_t *doc, /* I - Document information */ ppd_file_t *ppd) /* I - PPD file */ { char *ps; /* PS commands */ /* * Disable CTRL-D so that embedded files don't cause printing * errors... */ doc_puts(doc, "% Disable CTRL-D as an end-of-file marker...\n"); doc_puts(doc, "userdict dup(\\004)cvn{}put (\\004\\004)cvn{}put\n"); /* * Mark job options... */ cupsMarkOptions(ppd, doc->num_options, doc->options); /* * Send all the printer-specific setup commands... */ if ((ps = ppdEmitString(ppd, PPD_ORDER_DOCUMENT, 0.0)) != NULL) { doc_puts(doc, ps); free(ps); } if ((ps = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL) { doc_puts(doc, ps); free(ps); } /* * Set the number of copies for the job... */ if (doc->copies != 1 && (!doc->collate || !doc->slow_collate)) { doc_printf(doc, "%%RBIBeginNonPPDFeature: *NumCopies %d\n", doc->copies); doc_printf(doc, "%d/languagelevel where{pop languagelevel 2 ge}{false}ifelse\n" "{1 dict begin/NumCopies exch def currentdict end " "setpagedevice}\n" "{userdict/#copies 3 -1 roll put}ifelse\n", doc->copies); doc_puts(doc, "%RBIEndNonPPDFeature\n"); } /* * If we are doing N-up printing, disable setpagedevice... */ if (doc->number_up > 1) { doc_puts(doc, "userdict/CUPSsetpagedevice/setpagedevice load put\n"); doc_puts(doc, "userdict/setpagedevice{pop}bind put\n"); } /* * Make sure we have rectclip and rectstroke procedures of some sort... */ doc_puts(doc, "% x y w h ESPrc - Clip to a rectangle.\n" "userdict/ESPrc/rectclip where{pop/rectclip load}\n" "{{newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath clip newpath}bind}ifelse put\n"); doc_puts(doc, "% x y w h ESPrf - Fill a rectangle.\n" "userdict/ESPrf/rectfill where{pop/rectfill load}\n" "{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath fill grestore}bind}ifelse put\n"); doc_puts(doc, "% x y w h ESPrs - Stroke a rectangle.\n" "userdict/ESPrs/rectstroke where{pop/rectstroke load}\n" "{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath stroke grestore}bind}ifelse put\n"); /* * Write the page and label prologs... */ if (doc->number_up == 2 || doc->number_up == 6) { /* * For 2- and 6-up output, rotate the labels to match the orientation * of the pages... */ if (Orientation & 1) write_label_prolog(doc, doc->page_label, PageBottom, PageWidth - PageLength + PageTop, PageLength); else write_label_prolog(doc, doc->page_label, PageLeft, PageRight, PageLength); } else write_label_prolog(doc, doc->page_label, PageBottom, PageTop, PageWidth); } /* * 'doc_printf()' - Send a formatted string to stdout and/or the temp file. * * This function should be used for all page-level output that is affected * by ordering, collation, etc. */ static void doc_printf(pstops_doc_t *doc, /* I - Document information */ const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to arguments */ char buffer[1024]; /* Output buffer */ ssize_t bytes; /* Number of bytes to write */ va_start(ap, format); bytes = vsnprintf(buffer, sizeof(buffer), format, ap); va_end(ap); if ((size_t)bytes > sizeof(buffer)) { _cupsLangPrintFilter(stderr, "ERROR", _("Buffer overflow detected, aborting.")); exit(1); } doc_write(doc, buffer, (size_t)bytes); } /* * 'doc_puts()' - Send a nul-terminated string to stdout and/or the temp file. * * This function should be used for all page-level output that is affected * by ordering, collation, etc. */ static void doc_puts(pstops_doc_t *doc, /* I - Document information */ const char *s) /* I - String to send */ { doc_write(doc, s, strlen(s)); } /* * 'doc_write()' - Send data to stdout and/or the temp file. */ static void doc_write(pstops_doc_t *doc, /* I - Document information */ const char *s, /* I - Data to send */ size_t len) /* I - Number of bytes to send */ { if (!doc->slow_order) fwrite(s, 1, len, stdout); if (doc->temp) cupsFileWrite(doc->temp, s, len); } /* * 'end_nup()' - End processing for N-up printing. */ static void end_nup(pstops_doc_t *doc, /* I - Document information */ int number) /* I - Page number */ { if (doc->number_up > 1) doc_puts(doc, "userdict/ESPsave get restore\n"); switch (doc->number_up) { case 1 : if (doc->use_ESPshowpage) { write_labels(doc, Orientation); doc_puts(doc, "ESPshowpage\n"); } break; case 2 : case 6 : if (is_last_page(number) && doc->use_ESPshowpage) { if (Orientation & 1) { /* * Rotate the labels back to portrait... */ write_labels(doc, Orientation - 1); } else if (Orientation == 0) { /* * Rotate the labels to landscape... */ write_labels(doc, doc->normal_landscape ? 1 : 3); } else { /* * Rotate the labels to landscape... */ write_labels(doc, doc->normal_landscape ? 3 : 1); } doc_puts(doc, "ESPshowpage\n"); } break; default : if (is_last_page(number) && doc->use_ESPshowpage) { write_labels(doc, Orientation); doc_puts(doc, "ESPshowpage\n"); } break; } fflush(stdout); } /* * 'include_feature()' - Include a printer option/feature command. */ static int /* O - New number of options */ include_feature( ppd_file_t *ppd, /* I - PPD file */ const char *line, /* I - DSC line */ int num_options, /* I - Number of options */ cups_option_t **options) /* IO - Options */ { char name[255], /* Option name */ value[255]; /* Option value */ ppd_option_t *option; /* Option in file */ /* * Get the "%%IncludeFeature: *Keyword OptionKeyword" values... */ if (sscanf(line + 17, "%254s%254s", name, value) != 2) { fputs("DEBUG: The %%IncludeFeature: comment is not valid.\n", stderr); return (num_options); } /* * Find the option and choice... */ if ((option = ppdFindOption(ppd, name + 1)) == NULL) { _cupsLangPrintFilter(stderr, "WARNING", _("Unknown option \"%s\"."), name + 1); return (num_options); } if (option->section == PPD_ORDER_EXIT || option->section == PPD_ORDER_JCL) { _cupsLangPrintFilter(stderr, "WARNING", _("Option \"%s\" cannot be included via " "%%%%IncludeFeature."), name + 1); return (num_options); } if (!ppdFindChoice(option, value)) { _cupsLangPrintFilter(stderr, "WARNING", _("Unknown choice \"%s\" for option \"%s\"."), value, name + 1); return (num_options); } /* * Add the option to the option array and return... */ return (cupsAddOption(name + 1, value, num_options, options)); } /* * 'parse_text()' - Parse a text value in a comment. * * This function parses a DSC text value as defined on page 36 of the * DSC specification. Text values are either surrounded by parenthesis * or whitespace-delimited. * * The value returned is the literal characters for the entire text * string, including any parenthesis and escape characters. */ static char * /* O - Value or NULL on error */ parse_text(const char *start, /* I - Start of text value */ char **end, /* O - End of text value */ char *buffer, /* I - Buffer */ size_t bufsize) /* I - Size of buffer */ { char *bufptr, /* Pointer in buffer */ *bufend; /* End of buffer */ int level; /* Parenthesis level */ /* * Skip leading whitespace... */ while (isspace(*start & 255)) start ++; /* * Then copy the value... */ level = 0; bufptr = buffer; bufend = buffer + bufsize - 1; while (*start && bufptr < bufend) { if (isspace(*start & 255) && !level) break; *bufptr++ = *start; if (*start == '(') level ++; else if (*start == ')') { if (!level) { start ++; break; } else level --; } else if (*start == '\\') { /* * Copy escaped character... */ int i; /* Looping var */ for (i = 1; i <= 3 && isdigit(start[i] & 255) && bufptr < bufend; *bufptr++ = start[i], i ++); } start ++; } *bufptr = '\0'; /* * Return the value and new pointer into the line... */ if (end) *end = (char *)start; if (bufptr == bufend) return (NULL); else return (buffer); } /* * 'set_pstops_options()' - Set pstops options. */ static void set_pstops_options( pstops_doc_t *doc, /* I - Document information */ ppd_file_t *ppd, /* I - PPD file */ char *argv[], /* I - Command-line arguments */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { const char *val; /* Option value */ int intval; /* Integer option value */ ppd_attr_t *attr; /* PPD attribute */ ppd_option_t *option; /* PPD option */ ppd_choice_t *choice; /* PPD choice */ const char *content_type; /* Original content type */ int max_copies; /* Maximum number of copies supported */ /* * Initialize document information structure... */ memset(doc, 0, sizeof(pstops_doc_t)); doc->job_id = atoi(argv[1]); doc->user = argv[2]; doc->title = argv[3]; doc->copies = atoi(argv[4]); if (ppd && ppd->landscape > 0) doc->normal_landscape = 1; doc->bounding_box[0] = (int)PageLeft; doc->bounding_box[1] = (int)PageBottom; doc->bounding_box[2] = (int)PageRight; doc->bounding_box[3] = (int)PageTop; doc->new_bounding_box[0] = INT_MAX; doc->new_bounding_box[1] = INT_MAX; doc->new_bounding_box[2] = INT_MIN; doc->new_bounding_box[3] = INT_MIN; /* * AP_FIRSTPAGE_* and the corresponding non-first-page options. */ doc->ap_input_slot = cupsGetOption("AP_FIRSTPAGE_InputSlot", num_options, options); doc->ap_manual_feed = cupsGetOption("AP_FIRSTPAGE_ManualFeed", num_options, options); doc->ap_media_color = cupsGetOption("AP_FIRSTPAGE_MediaColor", num_options, options); doc->ap_media_type = cupsGetOption("AP_FIRSTPAGE_MediaType", num_options, options); doc->ap_page_region = cupsGetOption("AP_FIRSTPAGE_PageRegion", num_options, options); doc->ap_page_size = cupsGetOption("AP_FIRSTPAGE_PageSize", num_options, options); if ((choice = ppdFindMarkedChoice(ppd, "InputSlot")) != NULL) doc->input_slot = choice->choice; if ((choice = ppdFindMarkedChoice(ppd, "ManualFeed")) != NULL) doc->manual_feed = choice->choice; if ((choice = ppdFindMarkedChoice(ppd, "MediaColor")) != NULL) doc->media_color = choice->choice; if ((choice = ppdFindMarkedChoice(ppd, "MediaType")) != NULL) doc->media_type = choice->choice; if ((choice = ppdFindMarkedChoice(ppd, "PageRegion")) != NULL) doc->page_region = choice->choice; if ((choice = ppdFindMarkedChoice(ppd, "PageSize")) != NULL) doc->page_size = choice->choice; /* * collate, multiple-document-handling */ if ((val = cupsGetOption("multiple-document-handling", num_options, options)) != NULL) { /* * This IPP attribute is unnecessarily complicated... * * single-document, separate-documents-collated-copies, and * single-document-new-sheet all require collated copies. * * separate-documents-uncollated-copies allows for uncollated copies. */ doc->collate = _cups_strcasecmp(val, "separate-documents-uncollated-copies") != 0; } if ((val = cupsGetOption("Collate", num_options, options)) != NULL && (!_cups_strcasecmp(val, "true") ||!_cups_strcasecmp(val, "on") || !_cups_strcasecmp(val, "yes"))) doc->collate = 1; /* * emit-jcl */ if ((val = cupsGetOption("emit-jcl", num_options, options)) != NULL && (!_cups_strcasecmp(val, "false") || !_cups_strcasecmp(val, "off") || !_cups_strcasecmp(val, "no") || !strcmp(val, "0"))) doc->emit_jcl = 0; else doc->emit_jcl = 1; /* * fit-to-page/ipp-attribute-fidelity * * (Only for original PostScript content) */ if ((content_type = getenv("CONTENT_TYPE")) == NULL) content_type = "application/postscript"; if (!_cups_strcasecmp(content_type, "application/postscript")) { if ((val = cupsGetOption("fit-to-page", num_options, options)) != NULL && !_cups_strcasecmp(val, "true")) doc->fit_to_page = 1; else if ((val = cupsGetOption("ipp-attribute-fidelity", num_options, options)) != NULL && !_cups_strcasecmp(val, "true")) doc->fit_to_page = 1; } /* * mirror/MirrorPrint */ if ((choice = ppdFindMarkedChoice(ppd, "MirrorPrint")) != NULL) { val = choice->choice; choice->marked = 0; } else val = cupsGetOption("mirror", num_options, options); if (val && (!_cups_strcasecmp(val, "true") || !_cups_strcasecmp(val, "on") || !_cups_strcasecmp(val, "yes"))) doc->mirror = 1; /* * number-up */ if ((val = cupsGetOption("number-up", num_options, options)) != NULL) { switch (intval = atoi(val)) { case 1 : case 2 : case 4 : case 6 : case 9 : case 16 : doc->number_up = intval; break; default : _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported number-up value %d, using " "number-up=1."), intval); doc->number_up = 1; break; } } else doc->number_up = 1; /* * number-up-layout */ if ((val = cupsGetOption("number-up-layout", num_options, options)) != NULL) { if (!_cups_strcasecmp(val, "lrtb")) doc->number_up_layout = PSTOPS_LAYOUT_LRTB; else if (!_cups_strcasecmp(val, "lrbt")) doc->number_up_layout = PSTOPS_LAYOUT_LRBT; else if (!_cups_strcasecmp(val, "rltb")) doc->number_up_layout = PSTOPS_LAYOUT_RLTB; else if (!_cups_strcasecmp(val, "rlbt")) doc->number_up_layout = PSTOPS_LAYOUT_RLBT; else if (!_cups_strcasecmp(val, "tblr")) doc->number_up_layout = PSTOPS_LAYOUT_TBLR; else if (!_cups_strcasecmp(val, "tbrl")) doc->number_up_layout = PSTOPS_LAYOUT_TBRL; else if (!_cups_strcasecmp(val, "btlr")) doc->number_up_layout = PSTOPS_LAYOUT_BTLR; else if (!_cups_strcasecmp(val, "btrl")) doc->number_up_layout = PSTOPS_LAYOUT_BTRL; else { _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported number-up-layout value %s, using " "number-up-layout=lrtb."), val); doc->number_up_layout = PSTOPS_LAYOUT_LRTB; } } else doc->number_up_layout = PSTOPS_LAYOUT_LRTB; /* * OutputOrder */ if ((val = cupsGetOption("OutputOrder", num_options, options)) != NULL) { if (!_cups_strcasecmp(val, "Reverse")) doc->output_order = 1; } else if (ppd) { /* * Figure out the right default output order from the PPD file... */ if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL && (attr = ppdFindAttr(ppd, "PageStackOrder", choice->choice)) != NULL && attr->value) doc->output_order = !_cups_strcasecmp(attr->value, "Reverse"); else if ((attr = ppdFindAttr(ppd, "DefaultOutputOrder", NULL)) != NULL && attr->value) doc->output_order = !_cups_strcasecmp(attr->value, "Reverse"); } /* * page-border */ if ((val = cupsGetOption("page-border", num_options, options)) != NULL) { if (!_cups_strcasecmp(val, "none")) doc->page_border = PSTOPS_BORDERNONE; else if (!_cups_strcasecmp(val, "single")) doc->page_border = PSTOPS_BORDERSINGLE; else if (!_cups_strcasecmp(val, "single-thick")) doc->page_border = PSTOPS_BORDERSINGLE2; else if (!_cups_strcasecmp(val, "double")) doc->page_border = PSTOPS_BORDERDOUBLE; else if (!_cups_strcasecmp(val, "double-thick")) doc->page_border = PSTOPS_BORDERDOUBLE2; else { _cupsLangPrintFilter(stderr, "ERROR", _("Unsupported page-border value %s, using " "page-border=none."), val); doc->page_border = PSTOPS_BORDERNONE; } } else doc->page_border = PSTOPS_BORDERNONE; /* * page-label */ doc->page_label = cupsGetOption("page-label", num_options, options); /* * page-ranges */ doc->page_ranges = cupsGetOption("page-ranges", num_options, options); /* * page-set */ doc->page_set = cupsGetOption("page-set", num_options, options); /* * Now figure out if we have to force collated copies, etc. */ if ((attr = ppdFindAttr(ppd, "cupsMaxCopies", NULL)) != NULL) max_copies = atoi(attr->value); else if (ppd && ppd->manual_copies) max_copies = 1; else max_copies = 9999; if (doc->copies > max_copies) doc->collate = 1; else if (ppd && ppd->manual_copies && Duplex && doc->copies > 1) { /* * Force collated copies when printing a duplexed document to * a non-PS printer that doesn't do hardware copy generation. * Otherwise the copies will end up on the front/back side of * each page. */ doc->collate = 1; } /* * See if we have to filter the fast or slow way... */ if (doc->collate && doc->copies > 1) { /* * See if we need to manually collate the pages... */ doc->slow_collate = 1; if (doc->copies <= max_copies && (choice = ppdFindMarkedChoice(ppd, "Collate")) != NULL && !_cups_strcasecmp(choice->choice, "True")) { /* * Hardware collate option is selected, see if the option is * conflicting - if not, collate in hardware. Otherwise, * turn the hardware collate option off... */ if ((option = ppdFindOption(ppd, "Collate")) != NULL && !option->conflicted) doc->slow_collate = 0; else ppdMarkOption(ppd, "Collate", "False"); } } else doc->slow_collate = 0; if (!ppdFindOption(ppd, "OutputOrder") && doc->output_order) doc->slow_order = 1; else doc->slow_order = 0; if (Duplex && (doc->slow_collate || doc->slow_order || ((attr = ppdFindAttr(ppd, "cupsEvenDuplex", NULL)) != NULL && attr->value && !_cups_strcasecmp(attr->value, "true")))) doc->slow_duplex = 1; else doc->slow_duplex = 0; /* * Create a temporary file for page data if we need to filter slowly... */ if (doc->slow_order || doc->slow_collate) { if ((doc->temp = cupsTempFile2(doc->tempfile, sizeof(doc->tempfile))) == NULL) { perror("DEBUG: Unable to create temporary file"); exit(1); } } /* * Figure out if we should use ESPshowpage or not... */ if (doc->page_label || getenv("CLASSIFICATION") || doc->number_up > 1 || doc->page_border) { /* * Yes, use ESPshowpage... */ doc->use_ESPshowpage = 1; } fprintf(stderr, "DEBUG: slow_collate=%d, slow_duplex=%d, slow_order=%d\n", doc->slow_collate, doc->slow_duplex, doc->slow_order); } /* * 'skip_page()' - Skip past a page that won't be printed. */ static ssize_t /* O - Length of next line */ skip_page(cups_file_t *fp, /* I - File to read from */ char *line, /* I - Line buffer */ ssize_t linelen, /* I - Length of initial line */ size_t linesize) /* I - Size of line buffer */ { int level; /* Embedded document level */ level = 0; while ((linelen = (ssize_t)cupsFileGetLine(fp, line, linesize)) > 0) { if (level == 0 && (!strncmp(line, "%%Page:", 7) || !strncmp(line, "%%Trailer", 9))) break; else if (!strncmp(line, "%%BeginDocument", 15) || !strncmp(line, "%ADO_BeginApplication", 21)) level ++; else if ((!strncmp(line, "%%EndDocument", 13) || !strncmp(line, "%ADO_EndApplication", 19)) && level > 0) level --; else if (!strncmp(line, "%%BeginBinary:", 14) || (!strncmp(line, "%%BeginData:", 12) && !strstr(line, "ASCII") && !strstr(line, "Hex"))) { /* * Skip binary data... */ ssize_t bytes; /* Bytes of data */ bytes = atoi(strchr(line, ':') + 1); while (bytes > 0) { if ((size_t)bytes > linesize) linelen = (ssize_t)cupsFileRead(fp, line, linesize); else linelen = (ssize_t)cupsFileRead(fp, line, (size_t)bytes); if (linelen < 1) { line[0] = '\0'; perror("ERROR: Early end-of-file while reading binary data"); return (0); } bytes -= linelen; } } } return (linelen); } /* * 'start_nup()' - Start processing for N-up printing. */ static void start_nup(pstops_doc_t *doc, /* I - Document information */ int number, /* I - Page number */ int show_border, /* I - Show the border? */ const int *bounding_box) /* I - BoundingBox value */ { int pos; /* Position on page */ int x, y; /* Relative position of subpage */ double w, l, /* Width and length of subpage */ tx, ty; /* Translation values for subpage */ double pagew, /* Printable width of page */ pagel; /* Printable height of page */ int bboxx, /* BoundingBox X origin */ bboxy, /* BoundingBox Y origin */ bboxw, /* BoundingBox width */ bboxl; /* BoundingBox height */ double margin = 0; /* Current margin for border */ if (doc->number_up > 1) doc_puts(doc, "userdict/ESPsave save put\n"); pos = (number - 1) % doc->number_up; pagew = PageRight - PageLeft; pagel = PageTop - PageBottom; if (doc->fit_to_page) { bboxx = bounding_box[0]; bboxy = bounding_box[1]; bboxw = bounding_box[2] - bounding_box[0]; bboxl = bounding_box[3] - bounding_box[1]; } else { bboxx = 0; bboxy = 0; bboxw = (int)PageWidth; bboxl = (int)PageLength; } fprintf(stderr, "DEBUG: pagew = %.1f, pagel = %.1f\n", pagew, pagel); fprintf(stderr, "DEBUG: bboxx = %d, bboxy = %d, bboxw = %d, bboxl = %d\n", bboxx, bboxy, bboxw, bboxl); fprintf(stderr, "DEBUG: PageLeft = %.1f, PageRight = %.1f\n", PageLeft, PageRight); fprintf(stderr, "DEBUG: PageTop = %.1f, PageBottom = %.1f\n", PageTop, PageBottom); fprintf(stderr, "DEBUG: PageWidth = %.1f, PageLength = %.1f\n", PageWidth, PageLength); switch (Orientation) { case 1 : /* Landscape */ doc_printf(doc, "%.1f 0.0 translate 90 rotate\n", PageLength); break; case 2 : /* Reverse Portrait */ doc_printf(doc, "%.1f %.1f translate 180 rotate\n", PageWidth, PageLength); break; case 3 : /* Reverse Landscape */ doc_printf(doc, "0.0 %.1f translate -90 rotate\n", PageWidth); break; } /* * Mirror the page as needed... */ if (doc->mirror) doc_printf(doc, "%.1f 0.0 translate -1 1 scale\n", PageWidth); /* * Offset and scale as necessary for fit_to_page/fit-to-page/number-up... */ if (Duplex && doc->number_up > 1 && ((number / doc->number_up) & 1)) doc_printf(doc, "%.1f %.1f translate\n", PageWidth - PageRight, PageBottom); else if (doc->number_up > 1 || doc->fit_to_page) doc_printf(doc, "%.1f %.1f translate\n", PageLeft, PageBottom); switch (doc->number_up) { default : if (doc->fit_to_page) { w = pagew; l = w * bboxl / bboxw; if (l > pagel) { l = pagel; w = l * bboxw / bboxl; } tx = 0.5 * (pagew - w); ty = 0.5 * (pagel - l); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx, ty, w / bboxw, l / bboxl); } else w = PageWidth; break; case 2 : if (Orientation & 1) { x = pos & 1; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) x = 1 - x; w = pagel; l = w * bboxl / bboxw; if (l > (pagew * 0.5)) { l = pagew * 0.5; w = l * bboxw / bboxl; } tx = 0.5 * (pagew * 0.5 - l); ty = 0.5 * (pagel - w); if (doc->normal_landscape) doc_printf(doc, "0.0 %.1f translate -90 rotate\n", pagel); else doc_printf(doc, "%.1f 0.0 translate 90 rotate\n", pagew); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", ty, tx + pagew * 0.5 * x, w / bboxw, l / bboxl); } else { x = pos & 1; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 1 - x; l = pagew; w = l * bboxw / bboxl; if (w > (pagel * 0.5)) { w = pagel * 0.5; l = w * bboxl / bboxw; } tx = 0.5 * (pagel * 0.5 - w); ty = 0.5 * (pagew - l); if (doc->normal_landscape) doc_printf(doc, "%.1f 0.0 translate 90 rotate\n", pagew); else doc_printf(doc, "0.0 %.1f translate -90 rotate\n", pagel); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + pagel * 0.5 * x, ty, w / bboxw, l / bboxl); } break; case 4 : if (doc->number_up_layout & PSTOPS_LAYOUT_VERTICAL) { x = (pos / 2) & 1; y = pos & 1; } else { x = pos & 1; y = (pos / 2) & 1; } if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 1 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 1 - y; w = pagew * 0.5; l = w * bboxl / bboxw; if (l > (pagel * 0.5)) { l = pagel * 0.5; w = l * bboxw / bboxl; } tx = 0.5 * (pagew * 0.5 - w); ty = 0.5 * (pagel * 0.5 - l); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + x * pagew * 0.5, ty + y * pagel * 0.5, w / bboxw, l / bboxl); break; case 6 : if (Orientation & 1) { if (doc->number_up_layout & PSTOPS_LAYOUT_VERTICAL) { x = pos / 3; y = pos % 3; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 1 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 2 - y; } else { x = pos & 1; y = pos / 2; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 1 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 2 - y; } w = pagel * 0.5; l = w * bboxl / bboxw; if (l > (pagew * 0.333)) { l = pagew * 0.333; w = l * bboxw / bboxl; } tx = 0.5 * (pagel - 2 * w); ty = 0.5 * (pagew - 3 * l); if (doc->normal_landscape) doc_printf(doc, "0 %.1f translate -90 rotate\n", pagel); else doc_printf(doc, "%.1f 0 translate 90 rotate\n", pagew); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + x * w, ty + y * l, l / bboxl, w / bboxw); } else { if (doc->number_up_layout & PSTOPS_LAYOUT_VERTICAL) { x = pos / 2; y = pos & 1; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 2 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 1 - y; } else { x = pos % 3; y = pos / 3; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 2 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 1 - y; } l = pagew * 0.5; w = l * bboxw / bboxl; if (w > (pagel * 0.333)) { w = pagel * 0.333; l = w * bboxl / bboxw; } tx = 0.5 * (pagel - 3 * w); ty = 0.5 * (pagew - 2 * l); if (doc->normal_landscape) doc_printf(doc, "%.1f 0 translate 90 rotate\n", pagew); else doc_printf(doc, "0 %.1f translate -90 rotate\n", pagel); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + w * x, ty + l * y, w / bboxw, l / bboxl); } break; case 9 : if (doc->number_up_layout & PSTOPS_LAYOUT_VERTICAL) { x = (pos / 3) % 3; y = pos % 3; } else { x = pos % 3; y = (pos / 3) % 3; } if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 2 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 2 - y; w = pagew * 0.333; l = w * bboxl / bboxw; if (l > (pagel * 0.333)) { l = pagel * 0.333; w = l * bboxw / bboxl; } tx = 0.5 * (pagew * 0.333 - w); ty = 0.5 * (pagel * 0.333 - l); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + x * pagew * 0.333, ty + y * pagel * 0.333, w / bboxw, l / bboxl); break; case 16 : if (doc->number_up_layout & PSTOPS_LAYOUT_VERTICAL) { x = (pos / 4) & 3; y = pos & 3; } else { x = pos & 3; y = (pos / 4) & 3; } if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX) x = 3 - x; if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEY) y = 3 - y; w = pagew * 0.25; l = w * bboxl / bboxw; if (l > (pagel * 0.25)) { l = pagel * 0.25; w = l * bboxw / bboxl; } tx = 0.5 * (pagew * 0.25 - w); ty = 0.5 * (pagel * 0.25 - l); doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n", tx + x * pagew * 0.25, ty + y * pagel * 0.25, w / bboxw, l / bboxl); break; } /* * Draw borders as necessary... */ if (doc->page_border && show_border) { int rects; /* Number of border rectangles */ double fscale; /* Scaling value for points */ rects = (doc->page_border & PSTOPS_BORDERDOUBLE) ? 2 : 1; fscale = PageWidth / w; margin = 2.25 * fscale; /* * Set the line width and color... */ doc_puts(doc, "gsave\n"); doc_printf(doc, "%.3f setlinewidth 0 setgray newpath\n", (doc->page_border & PSTOPS_BORDERTHICK) ? 0.5 * fscale : 0.24 * fscale); /* * Draw border boxes... */ for (; rects > 0; rects --, margin += 2 * fscale) if (doc->number_up > 1) doc_printf(doc, "%.1f %.1f %.1f %.1f ESPrs\n", margin, margin, bboxw - 2 * margin, bboxl - 2 * margin); else doc_printf(doc, "%.1f %.1f %.1f %.1f ESPrs\n", PageLeft + margin, PageBottom + margin, PageRight - PageLeft - 2 * margin, PageTop - PageBottom - 2 * margin); /* * Restore pen settings... */ doc_puts(doc, "grestore\n"); } if (doc->fit_to_page) { /* * Offset the page by its bounding box... */ doc_printf(doc, "%d %d translate\n", -bounding_box[0], -bounding_box[1]); } if (doc->fit_to_page || doc->number_up > 1) { /* * Clip the page to the page's bounding box... */ doc_printf(doc, "%.1f %.1f %.1f %.1f ESPrc\n", bboxx + margin, bboxy + margin, bboxw - 2 * margin, bboxl - 2 * margin); } } /* * 'write_label_prolog()' - Write the prolog with the classification * and page label. */ static void write_label_prolog(pstops_doc_t *doc, /* I - Document info */ const char *label, /* I - Page label */ float bottom, /* I - Bottom position in points */ float top, /* I - Top position in points */ float width) /* I - Width in points */ { const char *classification; /* CLASSIFICATION environment variable */ const char *ptr; /* Temporary string pointer */ /* * First get the current classification... */ if ((classification = getenv("CLASSIFICATION")) == NULL) classification = ""; if (strcmp(classification, "none") == 0) classification = ""; /* * If there is nothing to show, bind an empty 'write labels' procedure * and return... */ if (!classification[0] && (label == NULL || !label[0])) { doc_puts(doc, "userdict/ESPwl{}bind put\n"); return; } /* * Set the classification + page label string... */ doc_puts(doc, "userdict"); if (!strcmp(classification, "confidential")) doc_puts(doc, "/ESPpl(CONFIDENTIAL"); else if (!strcmp(classification, "classified")) doc_puts(doc, "/ESPpl(CLASSIFIED"); else if (!strcmp(classification, "secret")) doc_puts(doc, "/ESPpl(SECRET"); else if (!strcmp(classification, "topsecret")) doc_puts(doc, "/ESPpl(TOP SECRET"); else if (!strcmp(classification, "unclassified")) doc_puts(doc, "/ESPpl(UNCLASSIFIED"); else { doc_puts(doc, "/ESPpl("); for (ptr = classification; *ptr; ptr ++) { if (*ptr < 32 || *ptr > 126) doc_printf(doc, "\\%03o", *ptr); else if (*ptr == '_') doc_puts(doc, " "); else if (*ptr == '(' || *ptr == ')' || *ptr == '\\') doc_printf(doc, "\\%c", *ptr); else doc_printf(doc, "%c", *ptr); } } if (label) { if (classification[0]) doc_puts(doc, " - "); /* * Quote the label string as needed... */ for (ptr = label; *ptr; ptr ++) { if (*ptr < 32 || *ptr > 126) doc_printf(doc, "\\%03o", *ptr); else if (*ptr == '(' || *ptr == ')' || *ptr == '\\') doc_printf(doc, "\\%c", *ptr); else doc_printf(doc, "%c", *ptr); } } doc_puts(doc, ")put\n"); /* * Then get a 14 point Helvetica-Bold font... */ doc_puts(doc, "userdict/ESPpf /Helvetica-Bold findfont 14 scalefont put\n"); /* * Finally, the procedure to write the labels on the page... */ doc_puts(doc, "userdict/ESPwl{\n"); doc_puts(doc, " ESPpf setfont\n"); doc_printf(doc, " ESPpl stringwidth pop dup 12 add exch -0.5 mul %.0f add\n", width * 0.5f); doc_puts(doc, " 1 setgray\n"); doc_printf(doc, " dup 6 sub %.0f 3 index 20 ESPrf\n", bottom - 2.0); doc_printf(doc, " dup 6 sub %.0f 3 index 20 ESPrf\n", top - 18.0); doc_puts(doc, " 0 setgray\n"); doc_printf(doc, " dup 6 sub %.0f 3 index 20 ESPrs\n", bottom - 2.0); doc_printf(doc, " dup 6 sub %.0f 3 index 20 ESPrs\n", top - 18.0); doc_printf(doc, " dup %.0f moveto ESPpl show\n", bottom + 2.0); doc_printf(doc, " %.0f moveto ESPpl show\n", top - 14.0); doc_puts(doc, "pop\n"); doc_puts(doc, "}bind put\n"); } /* * 'write_labels()' - Write the actual page labels. * * This function is a copy of the one in common.c since we need to * use doc_puts/doc_printf instead of puts/printf... */ static void write_labels(pstops_doc_t *doc, /* I - Document information */ int orient) /* I - Orientation of the page */ { float width, /* Width of page */ length; /* Length of page */ doc_puts(doc, "gsave\n"); if ((orient ^ Orientation) & 1) { width = PageLength; length = PageWidth; } else { width = PageWidth; length = PageLength; } switch (orient & 3) { case 1 : /* Landscape */ doc_printf(doc, "%.1f 0.0 translate 90 rotate\n", length); break; case 2 : /* Reverse Portrait */ doc_printf(doc, "%.1f %.1f translate 180 rotate\n", width, length); break; case 3 : /* Reverse Landscape */ doc_printf(doc, "0.0 %.1f translate -90 rotate\n", width); break; } doc_puts(doc, "ESPwl\n"); doc_puts(doc, "grestore\n"); } /* * 'write_options()' - Write options provided via %%IncludeFeature. */ static void write_options( pstops_doc_t *doc, /* I - Document */ ppd_file_t *ppd, /* I - PPD file */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int i; /* Looping var */ ppd_option_t *option; /* PPD option */ float min_order; /* Minimum OrderDependency value */ char *doc_setup, /* DocumentSetup commands to send */ *any_setup; /* AnySetup commands to send */ /* * Figure out the minimum OrderDependency value... */ if ((option = ppdFindOption(ppd, "PageRegion")) != NULL) min_order = option->order; else min_order = 999.0f; for (i = 0; i < num_options; i ++) if ((option = ppdFindOption(ppd, options[i].name)) != NULL && option->order < min_order) min_order = option->order; /* * Mark and extract them... */ cupsMarkOptions(ppd, num_options, options); doc_setup = ppdEmitString(ppd, PPD_ORDER_DOCUMENT, min_order); any_setup = ppdEmitString(ppd, PPD_ORDER_ANY, min_order); /* * Then send them out... */ if (doc->number_up > 1) { /* * Temporarily restore setpagedevice so we can set the options... */ doc_puts(doc, "userdict/setpagedevice/CUPSsetpagedevice load put\n"); } if (doc_setup) { doc_puts(doc, doc_setup); free(doc_setup); } if (any_setup) { doc_puts(doc, any_setup); free(any_setup); } if (doc->number_up > 1) { /* * Disable setpagedevice again... */ doc_puts(doc, "userdict/setpagedevice{pop}bind put\n"); } } cups-2.4.7/filter/ppd-compiler.shtml0000644000175000017500000010751614502571342017324 0ustar zdohnalzdohnal

    The Basics

    The PPD compiler, ppdc(1), is a simple command-line tool that takes a single driver information file, which by convention uses the extension .drv, and produces one or more PPD files that may be distributed with your printer drivers for use with CUPS. For example, you would run the following command to create the English language PPD files defined by the driver information file mydrivers.drv:

    ppdc mydrivers.drv
    

    The PPD files are placed in a subdirectory called ppd. The -d option is used to put the PPD files in a different location, for example:

    ppdc -d myppds mydrivers.drv
    

    places the PPD files in a subdirectory named myppds. Finally, use the -l option to specify the language localization for the PPD files that are created, for example:

    ppdc -d myppds/de -l de mydrivers.drv
    ppdc -d myppds/en -l en mydrivers.drv
    ppdc -d myppds/es -l es mydrivers.drv
    ppdc -d myppds/fr -l fr mydrivers.drv
    ppdc -d myppds/it -l it mydrivers.drv
    

    creates PPD files in German (de), English (en), Spanish (es), French (fr), and Italian (it) in the corresponding subdirectories. Specify multiple languages (separated by commas) to produce "globalized" PPD files:

    ppdc -d myppds -l de,en,es,fr,it mydrivers.drv
    

    Driver Information Files

    The driver information files accepted by the PPD compiler are plain text files that define the various attributes and options that are included in the PPD files that are generated. A driver information file can define the information for one or more printers and their corresponding PPD files.

    Listing 1: "examples/minimum.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    A Simple Example

    The example in Listing 1 shows a driver information file which defines the minimum required attributes to provide a valid PPD file. The first part of the file includes standard definition files for fonts and media sizes:

    #include <font.defs>
    #include <media.defs>
    

    The #include directive works just like the C/C++ include directive; files included using the angle brackets (<filename>) are found in any of the standard include directories and files included using quotes ("filename") are found in the same directory as the source or include file. The <font.defs> include file defines the standard fonts which are included with GPL Ghostscript and the Apple PDF RIP, while the <media.defs> include file defines the standard media sizes listed in Appendix B of the Adobe PostScript Printer Description File Format Specification.

    CUPS provides several other standard include files:

    • <epson.h> - Defines all of the rastertoepson driver constants.
    • <escp.h> - Defines all of the rastertoescpx driver constants.
    • <hp.h> - Defines all of the rastertohp driver constants.
    • <label.h> - Defines all of the rastertolabel driver constants.
    • <pcl.h> - Defines all of the rastertopclx driver constants.
    • <raster.defs> - Defines all of the CUPS raster format constants.

    Next we list all of the fonts that are available in the driver; for CUPS raster drivers, the following line is all that is usually supplied:

    Font *
    

    The Font directive specifies the name of a single font or the asterisk to specify all fonts. For example, you would use the following line to define an additional bar code font that you are supplying with your printer driver:

    //   name         encoding  version  charset  status
    Font Barcode-Foo  Special   "(1.0)"  Special  ROM
    

    The name of the font is Barcode-Foo. Since it is not a standard text font, the encoding and charset name Special is used. The version number is 1.0 and the status (where the font is located) is ROM to indicate that the font does not need to be embedded in documents that use the font for this printer.

    Third comes the manufacturer, model name, and version number information strings:

    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    

    These strings are used when the user (or auto-configuration program) selects the printer driver for a newly connected device.

    The list of filters comes after the information strings; for the example in Listing 1, we have a single filter that takes CUPS raster data:

    Filter application/vnd.cups-raster 100 rastertofoo
    

    Each filter specified in the driver information file is the equivalent of a printer driver for that format; if a user submits a print job in a different format, CUPS figures out the sequence of commands that will produce a supported format for the least relative cost.

    Once we have defined the driver information we specify the supported options. For the example driver we support a single resolution of 600 dots per inch and two media sizes, A4 and Letter:

    *MediaSize Letter
    MediaSize A4
    
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    

    The asterisk in front of the MediaSize and Resolution directives specify that those option choices are the default. The MediaSize directive is followed by a media size name which is normally defined in the <media.defs> file and corresponds to a standard Adobe media size name. If the default media size is Letter, the PPD compiler will override it to be A4 for non-English localizations for you automatically.

    The Resolution directive accepts several values after it as follows:

    1. Colorspace for this resolution, if any. In the example file, the colorspace k is used which corresponds to black. For printer drivers that support color printing, this field is usually specified as "-" for "no change".
    2. Bits per color. In the example file, we define 8 bits per color, for a continuous-tone grayscale output. All versions of CUPS support 1 and 8 bits per color. CUPS 1.2 and higher (macOS 10.5 and higher) also supports 16 bits per color.
    3. Rows per band. In the example file, we define 0 rows per band to indicate that our printer driver does not process the page in bands.
    4. Row feed. In the example, we define the feed value to be 0 to indicate that our printer driver does not interleave the output.
    5. Row step. In the example, we define the step value to be 0 to indicate that our printer driver does not interleave the output. This value normally indicates the spacing between the nozzles of an inkjet printer - when combined with the previous two values, it informs the driver how to stagger the output on the page to produce interleaved lines on the page for higher-resolution output.
    6. Choice name and text. In the example, we define the choice name and text to be "600dpi/600 DPI". The name and text are separated by slash (/) character; if no text is specified, then the name is used as the text. The PPD compiler parses the name to determine the actual resolution; the name can be of the form RESOLUTIONdpi for resolutions that are equal horizontally and vertically or HRESxVRESdpi for isometric resolutions. Only integer resolution values are supported, so a resolution name of 300dpi is valid while 300.1dpi is not.

    Finally, the PCFileName directive specifies that the named PPD file should be written for the current driver definitions:

    PCFileName "foojet2k.ppd"
    

    The filename follows the directive and must conform to the Adobe filename requirements in the Adobe Postscript Printer Description File Format Specification. Specifically, the filename may not exceed 8 characters followed by the extension .ppd. The FileName directive can be used to specify longer filenames:

    FileName "FooJet 2000"
    

    Grouping and Inheritance

    The previous example created a single PPD file. Driver information files can also define multiple printers by using the PPD compiler grouping functionality. Directives are grouped using the curly braces ({ and }) and every group that uses the PCFileName or FileName directives produces a PPD file with that name. Listing 2 shows a variation of the original example that uses two groups to define two printers that share the same printer driver filter but provide two different resolution options.

    Listing 2: "examples/grouping.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and version
    Manufacturer "Foo"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "1200dpi/1200 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2001"
      PCFileName "foojt2k1.ppd"
    }
    

    The second example is essentially the same as the first, except that each printer model is defined inside of a pair of curly braces. For example, the first printer is defined using:

    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    

    The printer inherits all of the definitions from the parent group (the top part of the file) and adds the additional definitions inside the curly braces for that printer driver. When we define the second group, it also inherits the same definitions from the parent group but none of the definitions from the first driver. Groups can be nested to any number of levels to support variations of similar models without duplication of information.

    Color Support

    For printer drivers that support color printing, the ColorDevice and ColorModel directives should be used to tell the printing system that color output is desired and in what formats. Listing 3 shows a variation of the previous example which includes a color printer that supports printing at 300 and 600 DPI.

    The key changes are the addition of the ColorDevice directive:

    ColorDevice true
    

    which tells the printing system that the printer supports color printing, and the ColorModel directives:

    ColorModel Gray/Grayscale w chunky 0
    *ColorModel RGB/Color rgb chunky 0
    

    which tell the printing system which colorspaces are supported by the printer driver for color printing. Each of the ColorModel directives is followed by the option name and text (Gray/Grayscale and RGB/Color), the colorspace name (w and rgb), the color organization (chunky), and the compression mode number (0) to be passed to the driver. The option name can be any of the standard Adobe ColorModel names:

    • Gray - Grayscale output.
    • RGB - Color output, typically using the RGB colorspace, but without a separate black channel.
    • CMYK - Color output with a separate black channel.

    Custom names can be used, however it is recommended that you use your vendor prefix for any custom names, for example "fooName".

    The colorspace name can be any of the following universally supported colorspaces:

    • w - Luminance
    • rgb - Red, green, blue
    • k - Black
    • cmy - Cyan, magenta, yellow
    • cmyk - Cyan, magenta, yellow, black

    The color organization can be any of the following values:

    • chunky - Color values are passed together on a line as RGB RGB RGB RGB
    • banded - Color values are passed separately on a line as RRRR GGGG BBBB; not supported by the Apple RIP filters
    • planar - Color values are passed separately on a page as RRRR RRRR RRRR ... GGGG GGGG GGGG ... BBBB BBBB BBBB; not supported by the Apple RIP filters

    The compression mode value is passed to the driver in the cupsCompression attribute. It is traditionally used to select an appropriate compression mode for the color model but can be used for any purpose, such as specifying a photo mode vs. standard mode.

    Listing 3: "examples/color.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and version
    Manufacturer "Foo"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    
    {
      // Supports color printing
      ColorDevice true
    
      // Supported colorspaces
      ColorModel Gray/Grayscale w chunky 0
      *ColorModel RGB/Color rgb chunky 0
    
      // Supported resolutions
      *Resolution - 8 0 0 0 "300dpi/300 DPI"
      Resolution - 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet Color"
      PCFileName "foojetco.ppd"
    }
    

    Defining Custom Options and Option Groups

    The Group, Option, and Choice directives are used to define or select a group, option, or choice. Listing 4 shows a variation of the first example that provides two custom options in a group named "Footasm".

    Listing 4: "examples/custom.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Option Group
    Group "Footasm"
    
      // Boolean option
      Option "fooEnhance/Resolution Enhancement" Boolean AnySetup 10
        *Choice True/Yes "<</cupsCompression 1>>setpagedevice"
        Choice False/No "<</cupsCompression 0>>setpagedevice"
    
      // Multiple choice option
      Option "fooOutputType/Output Quality" PickOne AnySetup 10
        *Choice "Auto/Automatic Selection"
                "<</OutputType(Auto)>>setpagedevice""
        Choice "Text/Optimize for Text"
                "<</OutputType(Text)>>setpagedevice""
        Choice "Graph/Optimize for Graphics"
                "<</OutputType(Graph)>>setpagedevice""
        Choice "Photo/Optimize for Photos"
                "<</OutputType(Photo)>>setpagedevice""
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    The custom group is introduced by the Group directive which is followed by the name and optionally text for the user:

    Group "Footasm/Footastic Options"
    

    The group name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length. The groups General, Extra, and InstallableOptions are predefined by CUPS; the general and extra groups are filled by the UI options defined by the PPD specification. The InstallableOptions group is reserved for options that define whether accessories for the printer (duplexer unit, finisher, stapler, etc.) are installed.

    Once the group is specified, the Option directive is used to introduce a new option:

    Option "fooEnhance/Resolution Enhancement" Boolean AnySetup 10
    

    The directive is followed by the name of the option and any optional user text, the option type, the PostScript document group, and the sort order number. The option name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length.

    The option type can be Boolean for true/false selections, PickOne for picking one of many choices, or PickMany for picking zero or more choices. Boolean options can have at most two choices with the names False and True. Pick options can have any number of choices, although for Windows compatibility reasons the number of choices should not exceed 255.

    The PostScript document group is typically AnySetup, meaning that the option can be introduced at any point in the PostScript document. Other values include PageSetup to include the option before each page and DocumentSetup to include the option once at the beginning of the document.

    The sort order number is used to sort the printer commands associated with each option choice within the PostScript document. This allows you to setup certain options before others as required by the printer. For most CUPS raster printer drivers, the value 10 can be used for all options.

    Once the option is specified, each option choice can be listed using the Choice directive:

    *Choice True/Yes "<</cupsCompression 1>>setpagedevice"
    Choice False/No "<</cupsCompression 0>>setpagedevice"
    

    The directive is followed by the choice name and optionally user text, and the PostScript commands that should be inserted when printing a file to this printer. The option name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length.

    The PostScript commands are also interpreted by any RIP filters, so these commands typically must be present for all option choices. Most commands take the form:

    <</name value>>setpagedevice
    

    where name is the name of the PostScript page device attribute and value is the numeric or string value for that attribute.

    Defining Constants

    Sometimes you will want to define constants for your drivers so that you can share values in different groups within the same driver information file, or to share values between different driver information files using the #include directive. The #define directive is used to define constants for use in your printer definitions:

    #define NAME value
    

    The NAME is any sequence of letters, numbers, and the underscore. The value is a number or string; if the value contains spaces you must put double quotes around it, for example:

    #define FOO "My String Value"
    

    Constants can also be defined on the command-line using the -D option:

    ppdc -DNAME="value" filename.drv
    

    Once defined, you use the notation $NAME to substitute the value of the constant in the file, for example:

    #define MANUFACTURER "Foo"
    #define FOO_600      0
    #define FOO_1200     1
    
    {
      Manufacturer "$MANUFACTURER"
      ModelNumber $FOO_600
      ModelName "FooJet 2000"
      ...
    }
    
    {
      Manufacturer "$MANUFACTURER"
      ModelNumber $FOO_1200
      ModelName "FooJet 2001"
      ...
    }
    

    Numeric constants can be bitwise OR'd together by placing the constants inside parenthesis, for example:

    // ModelNumber capability bits
    #define DUPLEX 1
    #define COLOR  2
    
    ...
    
    {
      // Define a model number specifying the capabilities of the printer...
      ModelNumber ($DUPLEX $COLOR)
      ...
    }
    

    Conditional Statements

    The PPD compiler supports conditional compilation using the #if, #elif, #else, and #endif directives. The #if and #elif directives are followed by a constant name or an expression. For example, to include a group of options when "ADVANCED" is defined:

    #if ADVANCED
    Group "Advanced/Advanced Options"
      Option "fooCyanAdjust/Cyan Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooMagentaAdjust/Magenta Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooYellowAdjust/Yellow Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooBlackAdjust/Black Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
    #endif
    

    Defining Constraints

    Constraints are strings that are used to specify that one or more option choices are incompatible, for example two-sided printing on transparency media. Constraints are also used to prevent the use of uninstalled features such as the duplexer unit, additional media trays, and so forth.

    The UIConstraints directive is used to specify a constraint that is placed in the PPD file. The directive is followed by a string using one of the following formats:

    UIConstraints "*Option1 *Option2"
    UIConstraints "*Option1 Choice1 *Option2"
    UIConstraints "*Option1 *Option2 Choice2"
    UIConstraints "*Option1 Choice1 *Option2 Choice2"
    

    Each option name is preceded by the asterisk (*). If no choice is given for an option, then all choices except False and None will conflict with the other option and choice(s). Since the PPD compiler automatically adds reciprocal constraints (option A conflicts with option B, so therefore option B conflicts with option A), you need only specify the constraint once.

    Listing 5: "examples/constraint.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Installable Option Group
    Group "InstallableOptions/Options Installed"
    
      // Duplexing unit option
      Option "OptionDuplexer/Duplexing Unit" Boolean AnySetup 10
        Choice True/Installed ""
        *Choice "False/Not Installed" ""
    
    // General Option Group
    Group General
    
      // Duplexing option
      Option "Duplex/Two-Sided Printing" PickOne AnySetup 10
        *Choice "None/No" "<</Duplex false>>setpagedevice""
        Choice "DuplexNoTumble/Long Edge Binding"
               "<</Duplex true/Tumble false>>setpagedevice""
        Choice "DuplexTumble/Short Edge Binding"
               "<</Duplex true/Tumble true>>setpagedevice""
    
    // Only allow duplexing if the duplexer is installed
    UIConstraints "*Duplex *OptionDuplexer False"
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    Listing 5 shows a variation of the first example with an added Duplex option and installable option for the duplexer, OptionDuplex. A constraint is added at the end to specify that any choice of the Duplex option that is not None is incompatible with the "Duplexer Installed" option set to "Not Installed" (False):

    UIConstraints "*Duplex *OptionDuplexer False"
    

    Enhanced Constraints

    CUPS 1.4 supports constraints between 2 or more options using the Attribute directive. cupsUIConstraints attributes define the constraints, while cupsUIResolver attributes define option changes to resolve constraints. For example, we can specify the previous duplex constraint with a resolver that turns off duplexing with the following two lines:

    Attribute cupsUIConstraints DuplexOff "*Duplex *OptionDuplexer False"
    Attribute cupsUIResolver DuplexOff "*Duplex None"
    

    Localization

    The PPD compiler provides localization of PPD files in different languages through message catalog files in the GNU gettext or Apple .strings formats. Each user text string and several key PPD attribute values such as LanguageVersion and LanguageEncoding are looked up in the corresponding message catalog and the translated text is substituted in the generated PPD files. One message catalog file can be used by multiple driver information files, and each file contains a single language translation.

    The ppdpo Utility

    While CUPS includes localizations of all standard media sizes and options in several languages, your driver information files may provide their own media sizes and options that need to be localized. CUPS provides a utility program to aid in the localization of drivers called ppdpo(1). The ppdpo program creates or updates a message catalog file based upon one or more driver information files. New messages are added with the word "TRANSLATE" added to the front of the translation string to make locating new strings for translation easier. The program accepts the message catalog filename and one or more driver information files.

    For example, run the following command to create a new German message catalog called de.po for all of the driver information files in the current directory:

    ppdpo -o de.po *.drv
    

    If the file de.po already exists, ppdpo will update the contents of the file with any new messages that need to be translated. To create an Apple .strings file instead, specify the output filename with a .strings extension, for example:

    ppdpo -o de.strings *.drv
    

    Using Message Catalogs with the PPD Compiler

    Once you have created a message catalog, use the #po directive to declare it in each driver information file. For example, to declare the German message catalog for a driver use:

    #po de "de.po"  // German
    

    In fact, you can use the #po directive as many times as needed:

    #po de "de.po"  // German
    #po es "es.po"  // Spanish
    #po fr "fr.po"  // French
    #po it "it.po"  // Italian
    #po ja "ja.po"  // Japanese
    

    The filename ("de.po", etc.) can be relative to the location of the driver information file or an absolute path. Once defined, the PPD compiler will automatically generate a globalized PPD for every language declared in your driver information file. To generate a single-language PPD file, simply use the -l option to list the corresponding locale, for example:

    ppdc -l de -d ppd/de mydrivers.drv
    

    to generate German PPD files.

    cups-2.4.7/filter/ppd-compiler.header0000644000175000017500000000237314502571342017420 0ustar zdohnalzdohnal

    Introduction to the PPD Compiler

    This document describes how to use the CUPS PostScript Printer Description (PPD) file compiler. The PPD compiler generates PPD files from simple text files that describe the features and capabilities of one or more printers.

    Note:

    The PPD compiler and related tools are deprecated and will be removed in a future release of CUPS.

    cups-2.4.7/filter/postscript-driver.shtml0000644000175000017500000003455514502571342020436 0ustar zdohnalzdohnal

    Printer Driver Basics

    A CUPS PostScript printer driver consists of a PostScript Printer Description (PPD) file that describes the features and capabilities of the device, zero or more filter programs that prepare print data for the device, and zero or more support files for color management, online help, and so forth. The PPD file includes references to all of the filters and support files used by the driver.

    Every time a user prints something the scheduler program, cupsd(8), determines the format of the print job and the programs required to convert that job into something the printer understands. CUPS includes filter programs for many common formats, for example to convert Portable Document Format (PDF) files into device-independent PostScript, and then from device-independent PostScript to device-dependent PostScript. Figure 1 shows the data flow of a typical print job.

    The optional PostScript filter can be provided to add printer-specific commands to the PostScript output that cannot be represented in the PPD file or to reorganize the output for special printer features. Typically this is used to support advanced job management or finishing functions on the printer. CUPS includes a generic PostScript filter that handles all PPD-defined commands.

    The optional port monitor handles interface-specific protocol or encoding issues. For example, many PostScript printers support the Binary Communications Protocol (BCP) and Tagged Binary Communications Protocol (TBCP) to allow applications to print 8-bit ("binary") PostScript jobs. CUPS includes port monitors for BCP and TBCP, and you can supply your own port monitors as needed.

    The backend handles communications with the printer, sending print data from the last filter to the printer and relaying back-channel data from the printer to the upstream filters. CUPS includes backend programs for common direct-connect interfaces and network protocols, and you can provide your own backend to support custom interfaces and protocols.

    The scheduler also supports a special "command" file format for sending maintenance commands and status queries to a printer or printer driver. Command print jobs typically use a single command filter program defined in the PPD file to generate the appropriate printer commands and handle any responses from the printer. Figure 2 shows the data flow of a typical command job.

    PostScript printer drivers typically do not require their own command filter since CUPS includes a generic PostScript command filter that supports all of the standard functions using PPD-defined commands.

    Creating New PPD Files

    We recommend using the CUPS PPD compiler, ppdc(1), to create new PPD files since it manages many of the tedious (and error-prone!) details of paper sizes and localization for you. It also allows you to easily support multiple devices from a single source file. For more information see the "Introduction to the PPD Compiler" document. Listing 1 shows a driver information file for a black-and-white PostScript printer.

    Listing 1: "examples/postscript.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // Specify this is a PostScript printer driver
    DriverType ps
    
    // List the fonts that are supported, in this case all standard fonts
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "Foo LaserProofer 2000"
    Version 1.0
    
    // PostScript printer attributes
    Attribute DefaultColorSpace "" Gray
    Attribute LandscapeOrientation "" Minus90
    Attribute LanguageLevel "" "3"
    Attribute Product "" "(Foo LaserProofer 2000)"
    Attribute PSVersion "" "(3010) 0"
    Attribute TTRasterizer "" Type42
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize Legal
    MediaSize A4
    
    // Query command for page size
    Attribute "?PageSize" "" "
          save
          currentpagedevice /PageSize get aload pop
          2 copy gt {exch} if (Unknown)
          23 dict
                  dup [612 792] (Letter) put
                  dup [612 1008] (Legal) put
                  dup [595 842] (A4) put
                  {exch aload pop 4 index sub abs 5 le exch
                   5 index sub abs 5 le and
                  {exch pop exit} {pop} ifelse
          } bind forall = flush pop pop
          restore"
    
    // Specify the name of the PPD file we want to generate
    PCFileName "fooproof.ppd"
    

    Required Attributes

    PostScript drivers require the attributes listed in Table 1. If not specified, the defaults for CUPS drivers are used. A typical PostScript driver information file would include the following attributes:

    Attribute DefaultColorSpace "" Gray
    Attribute LandscapeOrientation "" Minus90
    Attribute LanguageLevel "" "3"
    Attribute Product "" "(Foo LaserProofer 2000)"
    Attribute PSVersion "" "(3010) 0"
    Attribute TTRasterizer "" Type42
    
    Table 1: Required PostScript Printer Driver Attributes
    Attribute Description
    DefaultColorSpace The default colorspace: Gray, RGB, CMY, or CMYK. If not specified, then RGB is assumed.
    LandscapeOrientation The preferred landscape orientation: Plus90, Minus90, or Any. If not specified, Plus90 is assumed.
    LanguageLevel The PostScript language level supported by the device: 1, 2, or 3. If not specified, 2 is assumed.
    Product The string returned by the PostScript product operator, which must include parenthesis to conform with PostScript syntax rules for strings. Multiple Product attributes may be specified to support multiple products with the same PPD file. If not specified, "(ESP Ghostscript)" and "(GNU Ghostscript)" are assumed.
    PSVersion The PostScript interpreter version numbers as returned by the version and revision operators. The required format is "(version) revision". Multiple PSVersion attributes may be specified to support multiple interpreter version numbers. If not specified, "(3010) 705" and "(3010) 707" are assumed.
    TTRasterizer The type of TrueType font rasterizer supported by the device, if any. The supported values are None, Accept68k, Type42, and TrueImage. If not specified, None is assumed.

    Query Commands

    Most PostScript printer PPD files include query commands (?PageSize, etc.) that allow applications to query the printer for its current settings and configuration. Query commands are included in driver information files as attributes. For example, the example in Listing 1 uses the following definition for the PageSize query command:

    Attribute "?PageSize" "" "
          save
          currentpagedevice /PageSize get aload pop
          2 copy gt {exch} if (Unknown)
          23 dict
                  dup [612 792] (Letter) put
                  dup [612 1008] (Legal) put
                  dup [595 842] (A4) put
                  {exch aload pop 4 index sub abs 5 le exch
                   5 index sub abs 5 le and
                  {exch pop exit} {pop} ifelse
          } bind forall = flush pop pop
          restore"
    

    Query commands can span multiple lines, however no single line may contain more than 255 characters.

    Importing Existing PPD Files

    CUPS includes a utility called ppdi(1) which allows you to import existing PPD files into the driver information file format used by the PPD compiler ppdc(1). Once imported, you can modify, localize, and regenerate the PPD files easily. Type the following command to import the PPD file mydevice.ppd into the driver information file mydevice.drv:

    ppdi -o mydevice.drv mydevice.ppd
    

    If you have a whole directory of PPD files that you would like to import, you can list multiple filenames or use shell wildcards to import more than one PPD file on the command-line:

    ppdi -o mydevice.drv mydevice1.ppd mydevice2.ppd
    ppdi -o mydevice.drv *.ppd
    

    If the driver information file already exists, the new PPD file entries are appended to the end of the file. Each PPD file is placed in its own group of curly braces within the driver information file.

    Using Custom Filters

    Normally a PostScript printer driver will not utilize any additional print filters. For drivers that provide additional filters such as a CUPS command file filter for doing printer maintenance, you must also list the following Filter directive to handle printing PostScript files:

    Filter application/vnd.cups-postscript 0 -
    

    Custom Command Filters

    The application/vnd.cups-command file type is used for CUPS command files. Use the following Filter directive to handle CUPS command files:

    Filter application/vnd.cups-command 100 /path/to/command/filter
    

    To use the standard PostScript command filter, specify commandtops as the path to the command filter.

    Custom PDF Filters

    The application/pdf file type is used for unfiltered PDF files while the application/vnd.cups-pdf file type is used for filtered PDF files. Use the following Filter directive to handle filtered PDF files:

    Filter application/vnd.cups-pdf 100 /path/to/pdf/filter
    

    For unfiltered PDF files, use:

    Filter application/pdf 100 /path/to/pdf/filter
    

    Custom PDF filters that accept filtered data do not need to perform number-up processing and other types of page imposition, while those that accept unfiltered data MUST do the number-up processing themselves.

    Custom PostScript Filters

    The application/vnd.cups-postscript file type is used for filtered PostScript files. Use the following Filter directive to handle PostScript files:

    Filter application/vnd.cups-postscript 100 /path/to/postscript/filter
    

    Implementing Color Management

    CUPS uses ICC color profiles to provide more accurate color reproduction. The cupsICCProfile attribute defines the color profiles that are available for a given printer, for example:

    Attribute cupsICCProfile "ColorModel.MediaType.Resolution/Description" /path/to/ICC/profile
    

    where "ColorModel.MediaType.Resolution" defines a selector based on the corresponding option selections. A simple driver might only define profiles for the color models that are supported, for example a printer supporting Gray and RGB might use:

    Attribute cupsICCProfile "Gray../Grayscale Profile" /path/to/ICC/gray-profile
    Attribute cupsICCProfile "RGB../Full Color Profile" /path/to/ICC/rgb-profile
    

    The options used for profile selection can be customized using the cupsICCQualifier2 and cupsICCQualifier3 attributes.

    Adding macOS Features

    macOS printer drivers can provide additional attributes to specify additional option panes in the print dialog, an image of the printer, a help book, and option presets for the driver software:

    Attribute APDialogExtension "" /Library/Printers/Vendor/filename.plugin
    Attribute APHelpBook "" /Library/Printers/Vendor/filename.bundle
    Attribute APPrinterIconPath "" /Library/Printers/Vendor/filename.icns
    Attribute APPrinterPreset "name/text" "*option choice ..."
    
    cups-2.4.7/filter/postscript-driver.header0000644000175000017500000000241714502571342020527 0ustar zdohnalzdohnal

    Developing PostScript Printer Drivers

    This document describes how to develop printer drivers for PostScript printers. Topics include: printer driver basics, creating new PPD files, importing existing PPD files, using custom filters, implementing color management, and adding macOS features.

    cups-2.4.7/filter/gziptoany.c0000644000175000017500000000412614502571342016041 0ustar zdohnalzdohnal/* * GZIP/raw pre-filter for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2015 by Apple Inc. * Copyright © 1993-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * 'main()' - Copy (and uncompress) files to stdout. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { cups_file_t *fp; /* File */ char buffer[8192]; /* Data buffer */ ssize_t bytes; /* Number of bytes read/written */ int copies; /* Number of copies */ /* * Check command-line... */ if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } /* * Get the copy count; if we have no final content type, this is a * raw queue or raw print file, so we need to make copies... */ if (!getenv("FINAL_CONTENT_TYPE")) { if ((copies = atoi(argv[4])) < 1) copies = 1; } else { copies = 1; } /* * Open the file... */ if (argc == 6) { copies = 1; fp = cupsFileStdin(); } else if ((fp = cupsFileOpen(argv[6], "r")) == NULL) { fprintf(stderr, "DEBUG: Unable to open \"%s\".\n", argv[6]); _cupsLangPrintError("ERROR", _("Unable to open print file")); return (1); } /* * Copy the file to stdout... */ while (copies > 0) { if (!getenv("FINAL_CONTENT_TYPE")) fputs("PAGE: 1 1\n", stderr); cupsFileRewind(fp); while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) if (write(1, buffer, (size_t)bytes) < bytes) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to write uncompressed print data: %s"), strerror(errno)); if (argc == 7) cupsFileClose(fp); return (1); } copies --; } /* * Close the file and return... */ if (argc == 7) cupsFileClose(fp); return (0); } cups-2.4.7/filter/common.h0000644000175000017500000000250014502571342015304 0ustar zdohnalzdohnal/* * Common filter definitions for CUPS. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include /* * C++ magic... */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* * Globals... */ extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */ Duplex, /* Duplexed? */ LanguageLevel, /* Language level of printer */ ColorDevice; /* Do color text? */ extern float PageLeft, /* Left margin */ PageRight, /* Right margin */ PageBottom, /* Bottom margin */ PageTop, /* Top margin */ PageWidth, /* Total page width */ PageLength; /* Total page length */ /* * Prototypes... */ extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options, int change_size); extern void UpdatePageVars(void); extern void WriteCommon(void); extern void WriteLabelProlog(const char *label, float bottom, float top, float width); extern void WriteLabels(int orient); extern void WriteTextComment(const char *name, const char *value); /* * C++ magic... */ #ifdef __cplusplus } #endif /* __cplusplus */ cups-2.4.7/filter/common.c0000644000175000017500000002654314502571342015314 0ustar zdohnalzdohnal/* * Common filter routines for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "common.h" #include /* * Globals... */ int Orientation = 0, /* 0 = portrait, 1 = landscape, etc. */ Duplex = 0, /* Duplexed? */ LanguageLevel = 1, /* Language level of printer */ ColorDevice = 1; /* Do color text? */ float PageLeft = 18.0f, /* Left margin */ PageRight = 594.0f, /* Right margin */ PageBottom = 36.0f, /* Bottom margin */ PageTop = 756.0f, /* Top margin */ PageWidth = 612.0f, /* Total page width */ PageLength = 792.0f; /* Total page length */ /* * 'SetCommonOptions()' - Set common filter options for media size, etc. */ ppd_file_t * /* O - PPD file */ SetCommonOptions( int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ int change_size) /* I - Change page size? */ { ppd_file_t *ppd; /* PPD file */ ppd_size_t *pagesize; /* Current page size */ const char *val; /* Option value */ #ifdef LC_TIME setlocale(LC_TIME, ""); #endif /* LC_TIME */ ppd = ppdOpenFile(getenv("PPD")); ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); if ((pagesize = ppdPageSize(ppd, NULL)) != NULL) { PageWidth = pagesize->width; PageLength = pagesize->length; PageTop = pagesize->top; PageBottom = pagesize->bottom; PageLeft = pagesize->left; PageRight = pagesize->right; fprintf(stderr, "DEBUG: Page = %.0fx%.0f; %.0f,%.0f to %.0f,%.0f\n", PageWidth, PageLength, PageLeft, PageBottom, PageRight, PageTop); } if (ppd != NULL) { ColorDevice = ppd->color_device; LanguageLevel = ppd->language_level; } if ((val = cupsGetOption("landscape", num_options, options)) != NULL) { if (_cups_strcasecmp(val, "no") != 0 && _cups_strcasecmp(val, "off") != 0 && _cups_strcasecmp(val, "false") != 0) { if (ppd && ppd->landscape > 0) Orientation = 1; else Orientation = 3; } } else if ((val = cupsGetOption("orientation-requested", num_options, options)) != NULL) { /* * Map IPP orientation values to 0 to 3: * * 3 = 0 degrees = 0 * 4 = 90 degrees = 1 * 5 = -90 degrees = 3 * 6 = 180 degrees = 2 */ Orientation = atoi(val) - 3; if (Orientation >= 2) Orientation ^= 1; } if ((val = cupsGetOption("page-left", num_options, options)) != NULL) { switch (Orientation & 3) { case 0 : PageLeft = (float)atof(val); break; case 1 : PageBottom = (float)atof(val); break; case 2 : PageRight = PageWidth - (float)atof(val); break; case 3 : PageTop = PageLength - (float)atof(val); break; } } if ((val = cupsGetOption("page-right", num_options, options)) != NULL) { switch (Orientation & 3) { case 0 : PageRight = PageWidth - (float)atof(val); break; case 1 : PageTop = PageLength - (float)atof(val); break; case 2 : PageLeft = (float)atof(val); break; case 3 : PageBottom = (float)atof(val); break; } } if ((val = cupsGetOption("page-bottom", num_options, options)) != NULL) { switch (Orientation & 3) { case 0 : PageBottom = (float)atof(val); break; case 1 : PageLeft = (float)atof(val); break; case 2 : PageTop = PageLength - (float)atof(val); break; case 3 : PageRight = PageWidth - (float)atof(val); break; } } if ((val = cupsGetOption("page-top", num_options, options)) != NULL) { switch (Orientation & 3) { case 0 : PageTop = PageLength - (float)atof(val); break; case 1 : PageRight = PageWidth - (float)atof(val); break; case 2 : PageBottom = (float)atof(val); break; case 3 : PageLeft = (float)atof(val); break; } } if (change_size) UpdatePageVars(); if (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") || ppdIsMarked(ppd, "Duplex", "DuplexTumble") || ppdIsMarked(ppd, "JCLDuplex", "DuplexNoTumble") || ppdIsMarked(ppd, "JCLDuplex", "DuplexTumble") || ppdIsMarked(ppd, "EFDuplex", "DuplexNoTumble") || ppdIsMarked(ppd, "EFDuplex", "DuplexTumble") || ppdIsMarked(ppd, "KD03Duplex", "DuplexNoTumble") || ppdIsMarked(ppd, "KD03Duplex", "DuplexTumble")) Duplex = 1; return (ppd); } /* * 'UpdatePageVars()' - Update the page variables for the orientation. */ void UpdatePageVars(void) { float temp; /* Swapping variable */ switch (Orientation & 3) { case 0 : /* Portrait */ break; case 1 : /* Landscape */ temp = PageLeft; PageLeft = PageBottom; PageBottom = temp; temp = PageRight; PageRight = PageTop; PageTop = temp; temp = PageWidth; PageWidth = PageLength; PageLength = temp; break; case 2 : /* Reverse Portrait */ temp = PageWidth - PageLeft; PageLeft = PageWidth - PageRight; PageRight = temp; temp = PageLength - PageBottom; PageBottom = PageLength - PageTop; PageTop = temp; break; case 3 : /* Reverse Landscape */ temp = PageWidth - PageLeft; PageLeft = PageWidth - PageRight; PageRight = temp; temp = PageLength - PageBottom; PageBottom = PageLength - PageTop; PageTop = temp; temp = PageLeft; PageLeft = PageBottom; PageBottom = temp; temp = PageRight; PageRight = PageTop; PageTop = temp; temp = PageWidth; PageWidth = PageLength; PageLength = temp; break; } } /* * 'WriteCommon()' - Write common procedures... */ void WriteCommon(void) { puts("% x y w h ESPrc - Clip to a rectangle.\n" "userdict/ESPrc/rectclip where{pop/rectclip load}\n" "{{newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath clip newpath}bind}ifelse put"); puts("% x y w h ESPrf - Fill a rectangle.\n" "userdict/ESPrf/rectfill where{pop/rectfill load}\n" "{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath fill grestore}bind}ifelse put"); puts("% x y w h ESPrs - Stroke a rectangle.\n" "userdict/ESPrs/rectstroke where{pop/rectstroke load}\n" "{{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto\n" "neg 0 rlineto closepath stroke grestore}bind}ifelse put"); } /* * 'WriteLabelProlog()' - Write the prolog with the classification * and page label. */ void WriteLabelProlog(const char *label, /* I - Page label */ float bottom, /* I - Bottom position in points */ float top, /* I - Top position in points */ float width) /* I - Width in points */ { const char *classification; /* CLASSIFICATION environment variable */ const char *ptr; /* Temporary string pointer */ /* * First get the current classification... */ if ((classification = getenv("CLASSIFICATION")) == NULL) classification = ""; else if (strcmp(classification, "none") == 0) classification = ""; /* * If there is nothing to show, bind an empty 'write labels' procedure * and return... */ if (!classification[0] && (label == NULL || !label[0])) { puts("userdict/ESPwl{}bind put"); return; } /* * Set the classification + page label string... */ printf("userdict"); if (strcmp(classification, "confidential") == 0) printf("/ESPpl(CONFIDENTIAL"); else if (strcmp(classification, "classified") == 0) printf("/ESPpl(CLASSIFIED"); else if (strcmp(classification, "secret") == 0) printf("/ESPpl(SECRET"); else if (strcmp(classification, "topsecret") == 0) printf("/ESPpl(TOP SECRET"); else if (strcmp(classification, "unclassified") == 0) printf("/ESPpl(UNCLASSIFIED"); else { printf("/ESPpl("); for (ptr = classification; *ptr; ptr ++) if (*ptr < 32 || *ptr > 126) printf("\\%03o", *ptr); else if (*ptr == '_') putchar(' '); else { if (*ptr == '(' || *ptr == ')' || *ptr == '\\') putchar('\\'); putchar(*ptr); } } if (label) { if (classification[0]) printf(" - "); /* * Quote the label string as needed... */ for (ptr = label; *ptr; ptr ++) if (*ptr < 32 || *ptr > 126) printf("\\%03o", *ptr); else { if (*ptr == '(' || *ptr == ')' || *ptr == '\\') putchar('\\'); putchar(*ptr); } } puts(")put"); /* * Then get a 14 point Helvetica-Bold font... */ puts("userdict/ESPpf /Helvetica-Bold findfont 14 scalefont put"); /* * Finally, the procedure to write the labels on the page... */ puts("userdict/ESPwl{"); puts(" ESPpf setfont"); printf(" ESPpl stringwidth pop dup 12 add exch -0.5 mul %.0f add\n", width * 0.5f); puts(" 1 setgray"); printf(" dup 6 sub %.0f 3 index 20 ESPrf\n", bottom - 2.0); printf(" dup 6 sub %.0f 3 index 20 ESPrf\n", top - 18.0); puts(" 0 setgray"); printf(" dup 6 sub %.0f 3 index 20 ESPrs\n", bottom - 2.0); printf(" dup 6 sub %.0f 3 index 20 ESPrs\n", top - 18.0); printf(" dup %.0f moveto ESPpl show\n", bottom + 2.0); printf(" %.0f moveto ESPpl show\n", top - 14.0); puts("pop"); puts("}bind put"); } /* * 'WriteLabels()' - Write the actual page labels. */ void WriteLabels(int orient) /* I - Orientation of the page */ { float width, /* Width of page */ length; /* Length of page */ puts("gsave"); if ((orient ^ Orientation) & 1) { width = PageLength; length = PageWidth; } else { width = PageWidth; length = PageLength; } switch (orient & 3) { case 1 : /* Landscape */ printf("%.1f 0.0 translate 90 rotate\n", length); break; case 2 : /* Reverse Portrait */ printf("%.1f %.1f translate 180 rotate\n", width, length); break; case 3 : /* Reverse Landscape */ printf("0.0 %.1f translate -90 rotate\n", width); break; } puts("ESPwl"); puts("grestore"); } /* * 'WriteTextComment()' - Write a DSC text comment. */ void WriteTextComment(const char *name, /* I - Comment name ("Title", etc.) */ const char *value) /* I - Comment value */ { int len; /* Current line length */ /* * DSC comments are of the form: * * %%name: value * * The name and value must be limited to 7-bit ASCII for most printers, * so we escape all non-ASCII and ASCII control characters as described * in the Adobe Document Structuring Conventions specification. */ printf("%%%%%s: (", name); len = 5 + (int)strlen(name); while (*value) { if (*value < ' ' || *value >= 127) { /* * Escape this character value... */ if (len >= 251) /* Keep line < 254 chars */ break; printf("\\%03o", *value & 255); len += 4; } else if (*value == '\\') { /* * Escape the backslash... */ if (len >= 253) /* Keep line < 254 chars */ break; putchar('\\'); putchar('\\'); len += 2; } else { /* * Put this character literally... */ if (len >= 254) /* Keep line < 254 chars */ break; putchar(*value); len ++; } value ++; } puts(")"); } cups-2.4.7/filter/commandtops.c0000644000175000017500000002642714502571342016351 0ustar zdohnalzdohnal/* * PostScript command filter for CUPS. * * Copyright 2008-2014 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include /* * Local functions... */ static int auto_configure(ppd_file_t *ppd, const char *user); static void begin_ps(ppd_file_t *ppd, const char *user); static void end_ps(ppd_file_t *ppd); static void print_self_test_page(ppd_file_t *ppd, const char *user); static void report_levels(ppd_file_t *ppd, const char *user); /* * 'main()' - Process a CUPS command file. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int status = 0; /* Exit status */ cups_file_t *fp; /* Command file */ char line[1024], /* Line from file */ *value; /* Value on line */ int linenum; /* Line number in file */ ppd_file_t *ppd; /* PPD file */ /* * Check for valid arguments... */ if (argc != 6 && argc != 7) { /* * We don't have the correct number of arguments; write an error message * and return. */ _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } /* * Open the PPD file... */ if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL) { fputs("ERROR: Unable to open PPD file!\n", stderr); return (1); } /* * Open the command file as needed... */ if (argc == 7) { if ((fp = cupsFileOpen(argv[6], "r")) == NULL) { perror("ERROR: Unable to open command file - "); return (1); } } else fp = cupsFileStdin(); /* * Read the commands from the file and send the appropriate commands... */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { /* * Parse the command... */ if (!_cups_strcasecmp(line, "AutoConfigure")) status |= auto_configure(ppd, argv[2]); else if (!_cups_strcasecmp(line, "PrintSelfTestPage")) print_self_test_page(ppd, argv[2]); else if (!_cups_strcasecmp(line, "ReportLevels")) report_levels(ppd, argv[2]); else { _cupsLangPrintFilter(stderr, "ERROR", _("Invalid printer command \"%s\"."), line); status = 1; } } return (status); } /* * 'auto_configure()' - Automatically configure the printer using PostScript * query commands and/or SNMP lookups. */ static int /* O - Exit status */ auto_configure(ppd_file_t *ppd, /* I - PPD file */ const char *user) /* I - Printing user */ { int status = 0; /* Exit status */ ppd_option_t *option; /* Current option in PPD */ ppd_attr_t *attr; /* Query command attribute */ const char *valptr; /* Pointer into attribute value */ char buffer[1024], /* String buffer */ *bufptr; /* Pointer into buffer */ ssize_t bytes; /* Number of bytes read */ int datalen; /* Side-channel data length */ /* * See if the backend supports bidirectional I/O... */ datalen = 1; if (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_BIDI, buffer, &datalen, 30.0) != CUPS_SC_STATUS_OK || buffer[0] != CUPS_SC_BIDI_SUPPORTED) { fputs("DEBUG: Unable to auto-configure PostScript Printer - no " "bidirectional I/O available!\n", stderr); return (1); } /* * Put the printer in PostScript mode... */ begin_ps(ppd, user); /* * (STR #4028) * * As a lot of PPDs contain bad PostScript query code, we need to prevent one * bad query sequence from affecting all auto-configuration. The following * error handler allows us to log PostScript errors to cupsd. */ puts("/cups_handleerror {\n" " $error /newerror false put\n" " (:PostScript error in \") print cups_query_keyword print (\": ) " "print\n" " $error /errorname get 128 string cvs print\n" " (; offending command:) print $error /command get 128 string cvs " "print (\n) print flush\n" "} bind def\n" "errordict /timeout {} put\n" "/cups_query_keyword (?Unknown) def\n"); fflush(stdout); /* * Wait for the printer to become connected... */ do { sleep(1); datalen = 1; } while (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_CONNECTED, buffer, &datalen, 5.0) == CUPS_SC_STATUS_OK && !buffer[0]); /* * Then loop through every option in the PPD file and ask for the current * value... */ fputs("DEBUG: Auto-configuring PostScript printer...\n", stderr); for (option = ppdFirstOption(ppd); option; option = ppdNextOption(ppd)) { /* * See if we have a query command for this option... */ snprintf(buffer, sizeof(buffer), "?%s", option->keyword); if ((attr = ppdFindAttr(ppd, buffer, NULL)) == NULL || !attr->value) { fprintf(stderr, "DEBUG: Skipping %s option...\n", option->keyword); continue; } /* * Send the query code to the printer... */ fprintf(stderr, "DEBUG: Querying %s...\n", option->keyword); for (bufptr = buffer, valptr = attr->value; *valptr; valptr ++) { /* * Log the query code, breaking at newlines... */ if (*valptr == '\n') { *bufptr = '\0'; fprintf(stderr, "DEBUG: %s\\n\n", buffer); bufptr = buffer; } else if (*valptr < ' ') { if (bufptr >= (buffer + sizeof(buffer) - 4)) { *bufptr = '\0'; fprintf(stderr, "DEBUG: %s\n", buffer); bufptr = buffer; } if (*valptr == '\r') { *bufptr++ = '\\'; *bufptr++ = 'r'; } else if (*valptr == '\t') { *bufptr++ = '\\'; *bufptr++ = 't'; } else { *bufptr++ = '\\'; *bufptr++ = '0' + ((*valptr / 64) & 7); *bufptr++ = '0' + ((*valptr / 8) & 7); *bufptr++ = '0' + (*valptr & 7); } } else { if (bufptr >= (buffer + sizeof(buffer) - 1)) { *bufptr = '\0'; fprintf(stderr, "DEBUG: %s\n", buffer); bufptr = buffer; } *bufptr++ = *valptr; } } if (bufptr > buffer) { *bufptr = '\0'; fprintf(stderr, "DEBUG: %s\n", buffer); } printf("/cups_query_keyword (?%s) def\n", option->keyword); /* Set keyword for error reporting */ fputs("{ (", stdout); for (valptr = attr->value; *valptr; valptr ++) { if (*valptr == '(' || *valptr == ')' || *valptr == '\\') putchar('\\'); putchar(*valptr); } fputs(") cvx exec } stopped { cups_handleerror } if clear\n", stdout); /* Send query code */ fflush(stdout); datalen = 0; cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, buffer, &datalen, 5.0); /* * Read the response data... */ bufptr = buffer; buffer[0] = '\0'; while ((bytes = cupsBackChannelRead(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer) - 1, 10.0)) > 0) { /* * No newline at the end? Go on reading ... */ bufptr += bytes; *bufptr = '\0'; if (bytes == 0 || (bufptr > buffer && bufptr[-1] != '\r' && bufptr[-1] != '\n')) continue; /* * Trim whitespace and control characters from both ends... */ bytes = bufptr - buffer; for (bufptr --; bufptr >= buffer; bufptr --) if (isspace(*bufptr & 255) || iscntrl(*bufptr & 255)) *bufptr = '\0'; else break; for (bufptr = buffer; isspace(*bufptr & 255) || iscntrl(*bufptr & 255); bufptr ++); if (bufptr > buffer) { _cups_strcpy(buffer, bufptr); bufptr = buffer; } fprintf(stderr, "DEBUG: Got %d bytes.\n", (int)bytes); /* * Skip blank lines... */ if (!buffer[0]) continue; /* * Check the response... */ if ((bufptr = strchr(buffer, ':')) != NULL) { /* * PostScript code for this option in the PPD is broken; show the * interpreter's error message that came back... */ fprintf(stderr, "DEBUG%s\n", bufptr); break; } /* * Verify the result is a valid option choice... */ if (!ppdFindChoice(option, buffer)) { if (!strcasecmp(buffer, "Unknown")) break; bufptr = buffer; buffer[0] = '\0'; continue; } /* * Write out the result and move on to the next option... */ fprintf(stderr, "PPD: Default%s=%s\n", option->keyword, buffer); break; } /* * Printer did not answer this option's query */ if (bytes <= 0) { fprintf(stderr, "DEBUG: No answer to query for option %s within 10 seconds.\n", option->keyword); status = 1; } } /* * Finish the job... */ fflush(stdout); end_ps(ppd); /* * Return... */ if (status) _cupsLangPrintFilter(stderr, "WARNING", _("Unable to configure printer options.")); return (0); } /* * 'begin_ps()' - Send the standard PostScript prolog. */ static void begin_ps(ppd_file_t *ppd, /* I - PPD file */ const char *user) /* I - Username */ { (void)user; if (ppd->jcl_begin) { fputs(ppd->jcl_begin, stdout); fputs(ppd->jcl_ps, stdout); } puts("%!"); puts("userdict dup(\\004)cvn{}put (\\004\\004)cvn{}put\n"); fflush(stdout); } /* * 'end_ps()' - Send the standard PostScript trailer. */ static void end_ps(ppd_file_t *ppd) /* I - PPD file */ { if (ppd->jcl_end) fputs(ppd->jcl_end, stdout); else putchar(0x04); fflush(stdout); } /* * 'print_self_test_page()' - Print a self-test page. */ static void print_self_test_page(ppd_file_t *ppd, /* I - PPD file */ const char *user) /* I - Printing user */ { /* * Put the printer in PostScript mode... */ begin_ps(ppd, user); /* * Send a simple file the draws a box around the imageable area and shows * the product/interpreter information... */ puts("\r%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" "%%%%%%%%%%%%%\n" "\r%%%% If you can read this, you are using the wrong driver for your " "printer. %%%%\n" "\r%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" "%%%%%%%%%%%%%\n" "0 setgray\n" "2 setlinewidth\n" "initclip newpath clippath gsave stroke grestore pathbbox\n" "exch pop exch pop exch 9 add exch 9 sub moveto\n" "/Courier findfont 12 scalefont setfont\n" "0 -12 rmoveto gsave product show grestore\n" "0 -12 rmoveto gsave version show ( ) show revision 20 string cvs show " "grestore\n" "0 -12 rmoveto gsave serialnumber 20 string cvs show grestore\n" "showpage"); /* * Finish the job... */ end_ps(ppd); } /* * 'report_levels()' - Report supply levels. */ static void report_levels(ppd_file_t *ppd, /* I - PPD file */ const char *user) /* I - Printing user */ { /* * Put the printer in PostScript mode... */ begin_ps(ppd, user); /* * Don't bother sending any additional PostScript commands, since we just * want the backend to have enough time to collect the supply info. */ /* * Finish the job... */ end_ps(ppd); } cups-2.4.7/filter/Makefile0000644000175000017500000000750514502571342015315 0ustar zdohnalzdohnal# # Filter makefile for CUPS. # # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs TARGETS = \ commandtops \ gziptoany \ pstops \ rastertoepson \ rastertohp \ rastertolabel \ rastertopwg OBJS = commandtops.o gziptoany.o common.o pstops.o \ rastertoepson.o rastertohp.o rastertolabel.o \ rastertopwg.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter for file in $(TARGETS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(TARGETS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: for file in $(TARGETS); do \ $(RM) $(SERVERBIN)/filter/$$file; \ done -$(RMDIR) $(SERVERBIN)/filter -$(RMDIR) $(SERVERBIN) # # Automatic API help files... # apihelp: echo Generating CUPS API help files... codedoc --section "Programming" \ --title "Developing PostScript Printer Drivers" \ --header postscript-driver.header \ --body postscript-driver.shtml \ >../doc/help/postscript-driver.html codedoc --section "Programming" \ --title "Introduction to the PPD Compiler" \ --header ppd-compiler.header \ --body ppd-compiler.shtml \ >../doc/help/ppd-compiler.html codedoc --section "Programming" \ --title "Developing Raster Printer Drivers" \ --header raster-driver.header \ --body raster-driver.shtml \ >../doc/help/raster-driver.html codedoc --section "Specifications" \ --title "CUPS PPD Extensions" \ --header spec-ppd.header \ --body spec-ppd.shtml \ >../doc/help/spec-ppd.html # # commandtops # commandtops: commandtops.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ commandtops.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # gziptoany # gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ gziptoany.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # pstops # pstops: pstops.o common.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ pstops.o common.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # rastertoepson # rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertoepson.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # rastertohp # rastertohp: rastertohp.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertohp.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # rastertolabel # rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertolabel.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # rastertopwg # rastertopwg: rastertopwg.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertopwg.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ rastertopwg-static: rastertopwg.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertopwg.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies cups-2.4.7/filter/Dependencies0000644000175000017500000000523714502571342016166 0ustar zdohnalzdohnalcommandtops.o: commandtops.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/ppd.h ../cups/raster.h \ ../cups/sidechannel.h gziptoany.o: gziptoany.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h common.o: common.c common.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/array.h ../cups/language.h ../cups/pwg.h \ ../cups/ppd.h ../cups/raster.h pstops.o: pstops.c common.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/array.h ../cups/language.h ../cups/pwg.h \ ../cups/ppd.h ../cups/raster.h ../cups/language-private.h \ ../cups/transcode.h rastertoepson.o: rastertoepson.c ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h ../cups/ppd.h ../cups/raster.h \ ../cups/string-private.h ../config.h ../cups/language-private.h \ ../cups/transcode.h rastertohp.o: rastertohp.c ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h ../cups/ppd.h ../cups/raster.h \ ../cups/string-private.h ../config.h ../cups/language-private.h \ ../cups/transcode.h rastertolabel.o: rastertolabel.c ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h ../cups/ppd.h ../cups/raster.h \ ../cups/string-private.h ../config.h ../cups/language-private.h \ ../cups/transcode.h rastertopwg.o: rastertopwg.c ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/ppd-private.h ../cups/ppd.h \ ../cups/raster.h cups-2.4.7/examples/0000755000175000017500000000000014502571342014177 5ustar zdohnalzdohnalcups-2.4.7/examples/validate-job.test0000644000175000017500000000113314502571342017437 0ustar zdohnalzdohnal# Validate a test page using Validate-Job { # The name of the test... NAME "Validate file/ticket using Validate-Job" # The operation to use OPERATION Validate-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype GROUP job-attributes-tag ATTR integer copies 1 # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes } cups-2.4.7/examples/testppdx.ppd0000644000175000017500000001344314502571342016564 0ustar zdohnalzdohnal*PPD-Adobe: "4.3" *% *% Test PPD file for data encoding example. *% *% This file cannot be used with any known printers. *% *% Copyright (c) 2007-2012 by Apple Inc. *% Copyright (c) 2002-2006 by Easy Software Products. *% *% Licensed under Apache License v2.0. See the file "LICENSE" for more *% information. *FormatVersion: "4.3" *FileVersion: "2.3" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "TESTPPDX.PPD" *Manufacturer: "Apple" *Product: "(Test PPDX)" *cupsVersion: 2.3 *ModelName: "Test PPDX" *ShortNickName: "Test PPDX" *NickName: "Test PPDX for CUPS" *PSVersion: "(3010.000) 0" *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "1" *LandscapeOrientation: Plus90 *TTRasterizer: Type42 *cupsFilter: "application/vnd.cups-raster 0 -" *RequiresPageRegion All: True *% For PageSize, we have put all of the translations in-line... *OpenUI *PageSize/Page Size: PickOne *OrderDependency: 10 AnySetup *PageSize *DefaultPageSize: Letter *PageSize Letter/US Letter: "PageSize=Letter" *PageSize Letter.Banner/US Letter Banner: "PageSize=Letter.Banner" *PageSize Letter.Fullbleed/US Letter Borderless: "PageSize=Letter.Fullbleed" *PageSize A4/A4: "PageSize=A4" *PageSize Env10/#10 Envelope: "PageSize=Env10" *CloseUI: *PageSize *% For PageRegion, we have separated the translations... *OpenUI *PageRegion/Page Region: PickOne *OrderDependency: 10 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion Letter/US Letter: "PageRegion=Letter" *PageRegion Letter.Banner/US Letter Banner: "PageRegion=Letter.Fullbleed" *PageRegion Letter.Fullbleed/US Letter Borderless: "PageRegion=Letter.Fullbleed" *PageRegion A4/A4: "PageRegion=A4" *PageRegion Env10/#10 Envelope: "PageRegion=Env10" *CloseUI: *PageRegion *DefaultImageableArea: Letter *ImageableArea Letter: "18 36 594 756" *ImageableArea Letter.Banner: "18 0 594 792" *ImageableArea Letter.Fullbleed: "0 0 612 792" *ImageableArea A4: "18 36 577 806" *ImageableArea Env10: "18 36 279 648" *DefaultPaperDimension: Letter *PaperDimension Letter: "612 792" *PaperDimension Letter.Banner: "612 792" *PaperDimension Letter.Fullbleed: "612 792" *PaperDimension A4: "595 842" *PaperDimension Env10: "297 684" *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM *EXData0000: "eNqlVm1v2zYQ/hz/ipvWznLgl6T7siXrgCJ2AANBEyQpNmAtAlqiLG4SKZBU7LTIf9/dUW9Og32ZAFsieffcc88dKS2OR3AM0Zt1+ibCJxoA3EvnobJma0UJmbFwc7OEVHgBUicmVXoLci/KqpCAQznvHC9MWSmc3Smfn3WzdG2TBGYGPCJXVbqH2fIBQR+Wq5vb1cWH+9XyfRTBbNs" *EXData0001: "GcwTaG6zIqkrh7evgzDVk1Xb3MO7k9N3sHmCDxWRWeuk53KfSxf4paC087ZOvDLaTcF54WUptcdnoVO0KavaS9um7EBYCT6XAQhnK2n9E5hsEIc9yQ6XvUw8RkEelzKVVhQI2TAMEIXYzQGWClmoTU002L1GgmwVIpraF0ozXYoOGUkZXa0vVh/vVnO/91FA2+UqycHlpi5SyMWjhI0" *EXData0002: "lBq9kqKmbEl9BFCOETDwOuuHoFxAaQZQKueooljmVJRiK1NUSHL+UKhEaiQpPES599XZYrHb7eZUkLmx20U0lLsPAK7e/I2agDcME1S7vpst5aMsUM0U7kzmd5S03CeyIkVaqAujPdWm759SKB1PYAa3UqShDzNrShDcLdycHJgk3VnlWUnQcgdJXut/HCEvRqMFw62DSricSOeEfYI" *EXData0003: "HFGldfN5Y/djIyT85nyqzDz//WDKolgHcxE3ah6N2hDjQHj8vxkr7Y/oWhzDNYKt9spz89aOljnKo1HpZPRtBMDGzep7ODlntxcuAJfrq9XR0XFWnQfcS6KBZbJElC2SXNijo6Spwl+/nP7685cp27aVoY3A9NEesSi9Bm3ZZUopMpxTX+WDZzx6nPZRaRggCIFG5z1Iuwh0DDxQNAQ" *EXData0004: "OcbnJtJ9qyPpNAISHpW/rmTYOrRC4m6l53FfAuW50OzH4IBq4Y1ciVYcdUcQ/kWTc7Rib7baU0GJYIyDKUSrP2kQTeGnNgd0eEmHNoSpbSL7orPch1SyCkNkuDn0gEKC0JENLFQGcVZN8InKjYVqJCU3wovbmk3hdMoCmqybo+2Ds+h/zs5ZUhgn427c1btF/YKw488nY1p+xp8snDw" *EXData0005: "CM3WJ0OzASUA7kH27eSgtwNteZJqmDklRnN9ajTTYf3wHjpxeTXYkGK4F30W4zaV1lI1bm+vb8+4+Llw8LagMxm1nIZt155O3fz8s46mDVh7xYXR20kbcNqMWzKNWgDdRjsNM8/8TyIxeTwmkrIaVITze0m/9i4ekqbO6JmSVNqE/nWilMwWQrL/waMTMCwdxqT5+NVOQ4LUa7tNNJk" *EXData0006: "kOQfP11dTRqvb51GGZ9WXC3usl6nrpNe667v072jN8wgNn9mpMPj49V0n5t7043hwrezNTaOPmmxCacZ5QbjIf44mhwIhDsmpDFpmxSabopW7TdO1yftNxA2LZP6rifCSbL/g8Th06E/GPoWOLS30tdWQ3yKw+fu1bHCDsDTNXyPhbfAvwxF0gE=" *EXData0007: "" cups-2.4.7/examples/testppdx.c0000644000175000017500000000366614502571342016231 0ustar zdohnalzdohnal/* * Test program for PPD data encoding example code. * * Compile with: * * gcc -o testppdx -D_PPD_DEPRECATED="" -g testppdx.c ppdx.c -lcups -lz * * Copyright 2012 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include "ppdx.h" /* * 'main()' - Read data from a test PPD file and write out new chunks. */ int /* O - Exit status */ main(void) { int status = 0; /* Exit status */ FILE *fp; /* File to read */ char contents[8193], /* Contents of file */ *data; /* Data from PPD */ size_t contsize, /* File size */ datasize; /* Data size */ ppd_file_t *ppd; /* Test PPD */ /* * Open the PPD and get the data from it... */ ppd = ppdOpenFile("testppdx.ppd"); data = ppdxReadData(ppd, "EXData", &datasize); /* * Open this source file and read it... */ fp = fopen("testppdx.c", "r"); if (fp) { contsize = fread(contents, 1, sizeof(contents) - 1, fp); fclose(fp); contents[contsize] = '\0'; } else { contents[0] = '\0'; contsize = 0; } /* * Compare data... */ if (data) { if (contsize != datasize) { fprintf(stderr, "ERROR: PPD has %ld bytes, test file is %ld bytes.\n", (long)datasize, (long)contsize); status = 1; } else if (strcmp(contents, data)) { fputs("ERROR: PPD and test file are not the same.\n", stderr); status = 1; } if (status) { if ((fp = fopen("testppdx.dat", "wb")) != NULL) { fwrite(data, 1, datasize, fp); fclose(fp); fputs("ERROR: See testppdx.dat for data from PPD.\n", stderr); } else perror("Unable to open 'testppdx.dat'"); } free(data); } printf("Encoding %ld bytes for PPD...\n", (long)contsize); ppdxWriteData("EXData", contents, contsize); return (1); } cups-2.4.7/examples/testfile.txt0000644000175000017500000000734414502571342016567 0ustar zdohnalzdohnalAll work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. cups-2.4.7/examples/testfile.ps0000644000175000017500000004135414502571342016371 0ustar zdohnalzdohnal%!PS-Adobe-3.0 %%BoundingBox: 0 0 612 792 %%Pages: 1 %%LanguageLevel: 1 %%DocumentData: Clean7Bit %%DocumentSuppliedResources: procset testprint/2.3 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman %%Creator: Michael Sweet, Apple Inc. %%CreationDate: D:20070606214000+0500 %%Title: Test Page %%EndComments %%BeginProlog %%BeginResource procset testprint 2.4 0 % % PostScript test page for CUPS. % % Copyright (c) 2022-2023 by OpenPrinting. % Copyright (c) 2007-2011 by Apple Inc. % Copyright (c) 1993-2007 by Easy Software Products % % Licensed under Apache License v2.0. See the file "LICENSE" for more % information. % /SEXTANT { % Draw a color wheel sextant... % (name) white radius r g b SEXTANT - % Loop through 100 shades... 0 0.010101 0.98 { % Set the color... dup 0.75 le { % Get "white" value % Start from black dup 0.75 div % val2 = val / 0.75 0 index 5 index mul % R = R * val2 1 index 5 index mul % G = G * val2 2 index 5 index mul % B = B * val2 4 -1 roll pop % Discard val2 } { % Fade to white dup neg 1 add 4 mul % val2 = (1 - val) * 4 0 index 5 index mul % R = R * val2 1 index neg 1 add add % + (1 - val2) 1 index 5 index mul % G = G * val2 2 index neg 1 add add % + (1 - val2) 2 index 5 index mul % B = B * val2 3 index neg 1 add add % + (1 - val2) 4 -1 roll pop % Discard val2 } ifelse setrgbcolor % Set the color... % Draw the polygon... newpath % Start a new path... dup 5 index mul % r1 = radius * val 0 0 3 -1 roll 0 60 arc % Draw the inner arc dup 0.010101 add 5 index mul% r2 = (radius + 0.010101) * val 0 0 3 -1 roll 60 0 arcn % Draw the outer arc closepath % Close the path fill % Fill it... pop % Pop value... } for % Draw a line around the polygons... pop pop pop dup % Pop R, G, B, start 0 setgray % Black newpath 0 0 moveto % Center 0 0 3 -1 roll 0 60 arc % Arc around octant closepath % Back to center stroke % Stroke it... % Draw the label... dup % Save radius dup 30 cos mul % X = radius * cos(30) exch 30 sin mul % Y = radius * sin(30) moveto % Position label gsave 30 rotate % Rotate label dup 0.05 mul % Offset to the right exch -0.05 mul % and down... rmoveto % Offset label show % Show label grestore } bind def /CENTER { % Draw centered text % (name) CENTER - dup stringwidth pop % Get the width of the string 0.5 mul neg 0 rmoveto % Shift left 1/2 of the distance show % Show the string } bind def /RIGHT { % Draw right-justified text % (name) RIGHT - dup stringwidth pop % Get the width of the string neg 0 rmoveto % Shift left the entire distance show % Show the string } bind def /NUMBER { % Draw a number % power n NUMBER - 1 index 1 eq { % power == 1? round cvi exch pop % Convert "n" to integer } { 1 index mul round exch div % Truncate extra decimal places } ifelse 100 string cvs show % Convert to a string and show it... } bind def /CUPSLOGO { % Draw the CUPS logo % height CUPSLOGO % Start with a big C... /Helvetica findfont 1 index scalefont setfont 0 setgray 0 0 moveto (C) show % Then "UNIX Printing System" much smaller... /Helvetica-Bold findfont 1 index 9 div scalefont setfont 0.25 mul dup dup 2.0 mul moveto (UNIX) show dup dup 1.6 mul moveto (Printing) show dup 1.2 mul moveto (System) show } bind def %%EndResource %%EndProlog %%Page: 1 1 gsave % Determine the imageable area and device resolution... initclip newpath clippath pathbbox % Get bounding rectangle 72 div /pageTop exch def % Get top margin in inches 72 div /pageRight exch def % Get right margin in inches 72 div /pageBottom exch def % Get bottom margin in inches 72 div /pageLeft exch def % Get left margin in inches 4 setlinewidth % Draw wide lines 0 setgray closepath stroke % Draw a clipping rectangle /pageWidth pageRight pageLeft sub def % pageWidth = pageRight - pageLeft /pageHeight pageTop pageBottom sub def% pageHeight = pageTop - pageBottom 72 72 dtransform % Get device resolution per inch /yResolution exch abs def % yResolution = abs(yres) /xResolution exch abs def % xResolution = abs(xres) % Figure out the sizes of things... /wheelSize % size of wheels pageWidth pageHeight lt { pageWidth 9 mul } { pageHeight 7 mul } ifelse def % Create fonts... /bigFont /Helvetica-Bold findfont % bigFont = Helvetica-Bold pageHeight 3 mul scalefont def % size = pageHeight * 3 (nominally 33) /mediumFont /Helvetica findfont % mediumFont = Helvetica pageHeight 1.5 mul scalefont def % size = pageHeight * 1.5 (nominally 16.5) /smallFont /Times-Roman findfont % smallFont = Times-Roman pageHeight scalefont def % size = pageHeight (nominally 11) % Draw rulers along the edges... /CENTIMETER 72 2.54 div def /MILLIMETER 72 25.4 div def /Times-Roman findfont % Font for ruler numbers 11 scalefont setfont % 11 points gsave % Left side inches pageLeft 72 mul 0 translate % Offset left edge 1 setlinewidth % Draw normal lines 72 72 pageTop 72 mul { % Height inches dup dup 0 exch moveto 24 0 rlineto stroke % Draw tic mark 24 exch pageHeight sub moveto % Draw number 72 div cvi 10 string cvs RIGHT } for 0.5 setlinewidth % Draw thin lines 18 18 pageTop 72 mul { % 1/4 inches 0 exch moveto 15 0 rlineto stroke % Draw tic mark } for 9 9 pageTop 72 mul { % 1/8 inches 0 exch moveto 6 0 rlineto stroke % Draw tic mark } for grestore gsave % Bottom inches 0 pageBottom 72 mul translate % Offset bottom edge 1 setlinewidth % Draw normal lines 72 72 pageRight 72 mul { % Width inches dup dup 0 moveto 0 24 rlineto stroke % Draw tic mark 3 add 27 pageHeight sub moveto % Draw number 72 div cvi 10 string cvs show } for 0.5 setlinewidth % Draw thin lines 18 18 pageRight 72 mul { % 1/4 inches 0 moveto 0 15 rlineto stroke % Draw tic mark } for 9 9 pageRight 72 mul { % 1/8 inches 0 moveto 0 6 rlineto stroke % Draw tic mark } for grestore gsave % Right side centimeters pageRight 72 mul 0 translate % Offset right edge 1 setlinewidth % Draw normal lines CENTIMETER CENTIMETER pageTop 72 mul { % Height centimeters 0 exch moveto -24 0 rlineto stroke% Draw tic mark } for 1 1 pageTop 2.54 mul { % Height labels dup -24 exch CENTIMETER mul pageHeight sub moveto % Draw number cvi 10 string cvs show } for 0.5 setlinewidth % Draw thin lines 0 0.5 CENTIMETER mul pageTop 72 mul { % 1/2 centimeters 0 exch moveto -15 0 rlineto stroke% Draw tic mark } for 0 MILLIMETER pageTop 72 mul { % Millimeters 0 exch moveto -6 0 rlineto stroke % Draw tic mark } for grestore gsave % Top centimeters 0 pageTop 72 mul translate % Offset top edge 1 setlinewidth % Draw normal lines CENTIMETER CENTIMETER pageRight 72 mul { % Width centimeters 0 moveto 0 -24 rlineto stroke % Draw tic mark } for 1 1 pageRight 2.54 mul { % Width labels dup CENTIMETER mul 3 add -24 moveto % Draw number cvi 10 string cvs show } for 0.5 setlinewidth % Draw thin lines 0 0.5 CENTIMETER mul pageRight 72 mul { % 1/2 centimeters 0 moveto 0 -15 rlineto stroke % Draw tic mark } for 0 MILLIMETER pageRight 72 mul { % Millimeters 0 moveto 0 -6 rlineto stroke % Draw tic mark } for grestore % Offset page to account for lower-left margin... pageLeft 72 mul pageBottom 72 mul translate % Set text font and color... mediumFont setfont % Font 0 setgray % Color 1 setlinewidth % Draw normal lines % Draw the color wheel... gsave % Position the wheel on the left side... pageWidth 18 mul % x = pageWidth * 1/4 * 72 pageHeight 54 mul % y = pageHeight * 3/4 * 72 translate % Size the wheel... wheelSize % Draw the colors... dup (C) 3 -1 roll 0 1 1 SEXTANT 60 rotate dup (M) 3 -1 roll 1 0 1 SEXTANT 60 rotate dup (Y) 3 -1 roll 1 1 0 SEXTANT 60 rotate dup (R) 3 -1 roll 1 0 0 SEXTANT 60 rotate dup (G) 3 -1 roll 0 1 0 SEXTANT 60 rotate dup (B) 3 -1 roll 0 0 1 SEXTANT 60 rotate pop grestore % Label the color wheel... pageWidth 18 mul % x = pageWidth * 1/4 * 72 pageHeight 43 mul % y = pageHeight * 19/32 * 72 moveto % Position the text (Color Wheel) CENTER % Show the text centered % Draw the gray ramp... gsave % Position the gray ramp in the center... pageWidth 36 mul % x = pageWidth * 1/2 * 72 pageHeight 54 mul % y = pageHeight * 3/4 * 72 wheelSize sub % - wheelSize translate % Loop through 100 shades... 0 0.010101 0.98 { % Set the color... dup setgray % Set the grayscale... % Draw the polygon... newpath % Start a new path... wheelSize -0.2 mul % X = -wheelSize / 5 1 index 2 mul wheelSize mul % Y = val * 2 * wheelSize moveto % Move there... wheelSize 0.4 mul 0 rlineto % Right side... wheelSize 0.2 mul % X = wheelSize / 5 1 index 0.010101 add 2 mul wheelSize mul % Y = (val + 0.010101) * 2 * wheelSize lineto % Move there... wheelSize -0.4 mul 0 rlineto % Left side... closepath % Close the path fill % Fill it... pop % Pop value... } for 0 setgray % Black newpath % Start a new path wheelSize -0.2 mul 0 moveto % Bottom left wheelSize 0.4 mul 0 rlineto % Bottom right 0 wheelSize 2 mul rlineto % Upper right wheelSize -0.4 mul 0 rlineto % Upper left closepath % Close the path stroke % Stroke it... 0 wheelSize -0.2 mul moveto % Center bottom for label (K) CENTER % Center K at bottom 0 wheelSize 2.05 mul moveto % Center top for label (W) CENTER % Center W at top grestore % Label the gray ramp... pageWidth 36 mul % x = pageWidth * 1/2 * 72 pageHeight 43 mul % y = pageHeight * 19/32 * 72 moveto % Position the text (Gray Ramp) CENTER % Show the text centered % Draw radial lines... gsave 0 setlinewidth % 1 pixel lines % Position the lines on the left side... pageWidth 54 mul % x = pageWidth * 3/4 * 72 pageHeight 54 mul % y = pageHeight * 3/4 * 72 translate % Size the wheel... wheelSize % Loop at 1 degree increments 0 1 359 { pop % Discard angle - not used 0 0 moveto % Start line at the center dup 0 lineto % Draw to the radius 1 rotate % Rotate 1 degree } for pop % Discard radius - not needed anymore stroke % Draw lines... grestore % Label the lines... pageWidth 54 mul % x = pageWidth * 3/4 * 72 pageHeight 43 mul % y = pageHeight * 19/32 * 72 moveto % Position the text (1 Degree Radial Lines) CENTER % Show the text centered % Imageable area... pageHeight 15 mul % Height of imageable area pageWidth 4.5 mul % x = pageWidth * 1/16 * 72 pageHeight 35.5 mul % y = pageHeight * 1/2 * 72 2 index sub % y -= height pageWidth 28 mul % width = pageWidth * 1/4 * 72 3 index % height 0.5 setgray rectfill % Draw a shadow pageWidth 4 mul % x = pageWidth * 1/16 * 72 pageHeight 36 mul % y = pageHeight * 1/2 * 72 2 index sub % y -= height pageWidth 28 mul % width = pageWidth * 3/8 * 72 3 index % height 4 copy 1 setgray rectfill % Clear the box to white 0 setgray rectstroke % Draw a black box around it... pop % Discard height % Label the imageable area... pageWidth 4 mul % x = pageWidth * 1/16 * 72 pageHeight 37 mul % y = pageHeight * 1/2 * 72 moveto % Position the text mediumFont setfont % Font (Imageable Area) show % Show the text smallFont setfont % Font pageWidth 14 mul % x = pageWidth * 3/16 * 72 pageHeight 36 mul % y = pageWidth * 1/2 * 72 pageHeight -2 mul add % y -= 2 * smallFont height % Page Size inches 2 copy moveto % Move to x & y (Page Size: ) RIGHT % Label 100 pageWidth NUMBER % pageWidth (x) show % "x" 100 pageHeight NUMBER % pageHeight (in) show % "in" % Page Size millimeters pageHeight sub % Move down... 2 copy moveto % Move to x & y 10 pageWidth 25.4 mul NUMBER % pageWidth (x) show % "x" 10 pageHeight 25.4 mul NUMBER % pageHeight (mm) show % "mm" % Lower-left inches pageHeight 2 mul sub % Move down... 2 copy moveto % Move to x & y (Lower-Left: ) RIGHT % Label 100 pageLeft NUMBER % pageLeft (x) show % "x" 100 pageBottom NUMBER % pageBottom (in) show % "in" % Lower-left millimeters pageHeight sub % Move down... 2 copy moveto % Move to x & y 10 pageLeft 25.4 mul NUMBER % pageLeft (x) show % "x" 10 pageBottom 25.4 mul NUMBER % pageBottom (mm) show % "mm" % Upper-right inches pageHeight 2 mul sub % Move down... 2 copy moveto % Move to x & y (Upper-Right: ) RIGHT % Label 100 pageRight NUMBER % pageRight (x) show % "x" 100 pageTop NUMBER % pageTop (in) show % "in" % Upper-right millimeters pageHeight sub % Move down... 2 copy moveto % Move to x & y 10 pageRight 25.4 mul NUMBER % pageRight (x) show % "x" 10 pageTop 25.4 mul NUMBER % pageTop (mm) show % "mm" % Resolution dots-per-inch pageHeight 2 mul sub % Move down... 2 copy moveto % Move to x & y (Resolution: ) RIGHT % Label 1 xResolution NUMBER % xResolution (x) show % "x" 1 yResolution NUMBER % yResolution (dpi) show % "dpi" % Resolution dots-per-meter pageHeight sub % Move down... moveto % Move to x & y 1 xResolution 39.27 mul NUMBER % xResolution (x) show % "x" 1 yResolution 39.27 mul NUMBER % yResolution (dpm) show % "dpm" % Interpreter Information... pageHeight 15 mul % Height of interpreter information pageWidth 40.5 mul % x = pageWidth * 9/16 * 72 pageHeight 35.5 mul % y = pageHeight * 1/2 * 72 2 index sub % y -= height pageWidth 28 mul % width = pageWidth * 1/4 * 72 3 index % height 0.5 setgray rectfill % Draw a shadow pageWidth 40 mul % x = pageWidth * 9/16 * 72 pageHeight 36 mul % y = pageHeight * 1/2 * 72 2 index sub % y -= height pageWidth 28 mul % width = pageWidth * 3/8 * 72 3 index % height 4 copy 1 setgray rectfill % Clear the box to white 0 setgray rectstroke % Draw a black box around it... pop % Discard height % Label the interpreter info... pageWidth 40 mul % x = pageWidth * 9/16 * 72 pageHeight 37 mul % y = pageHeight * 1/2 * 72 moveto % Position the text mediumFont setfont % Font (Interpreter Information) show % Show the text smallFont setfont % Font pageWidth 49 mul % x = pageWidth * 11/16 * 72 pageHeight 36 mul % y = pageWidth * 1/2 * 72 pageHeight 2 mul sub % y -= 2 * smallFont height % Language level 2 copy moveto % Move to x & y (PostScript: ) RIGHT % Label (Level ) show % "Level " 1 languagelevel NUMBER % Language level % Version pageHeight 2 mul sub % Move down... 2 copy moveto % Move to x & y (Version: ) RIGHT % Label version show % Version ( \() show % " (" 1 revision NUMBER % Revision (\)) show % ")" % Product pageHeight 2 mul sub % Move down... 2 copy moveto % Move to x & y (Product: ) RIGHT % Label product show % Product name % Serial Number pageHeight 2 mul sub % Move down... moveto % Move to x & y (Serial #: ) RIGHT % Label 1 serialnumber NUMBER % S/N % Draw the label at the top... pageWidth 36 mul % Center of page pageHeight 66 mul % Top of page (11/12ths) moveto % Position text bigFont setfont % Font (Printer Test Page) CENTER % Show text centered % Draw the copyright notice at the bottom... pageWidth 17 mul % Center of page pageHeight 10 mul % Bottom of page moveto % Position text (Printed Using CUPS v2.3.x) show pageWidth 17 mul % Left side of page pageHeight 8 mul % Move down... 2 copy moveto % Position text smallFont setfont % Font (Copyright 2007-2018 Apple Inc., All Rights Reserved. CUPS and the CUPS logo are trademarks) show pageHeight 2 add sub % Move down... 2 copy moveto % Position text (of Apple Inc., One Apple Park Way, Cupertino, CA 95014, USA.) show pageHeight 2 mul 4 add sub % Move down... moveto % Position text (Need help? Contact your operating system vendor or visit "http://openprinting.github.io/cups/".) show % Then the CUPS logo.... gsave pageWidth 4 mul pageHeight 4 mul translate pageWidth 15 mul CUPSLOGO grestore % Show the page... grestore showpage %%EOF cups-2.4.7/examples/testfile.pdf0000644000175000017500000017645714502571342016535 0ustar zdohnalzdohnal%PDF-1.7 %쏢 7 0 obj <> stream xWr8}WtaGQOc;r&lU$4= 2$rB }9}F 5ޫmLDZ-.MtGo7hDɺc i<QL0 z׊>eVLaQDhBI_N+hYjCGcnb +eerȇAȧ2%(yq9`bȄF}n, Х0Gk{թ5^7 zco"t@GCw zN=Zi4$d:ls+KQʊ2i*_Iɢ)#q0Lh썾piK8&a8//$ԕBPɿT&ǫr<i7Ke8֕ Cy03`@F@!u+Ɇ3.eFO ȰM:vTTX!(M:8^Tǂc[ai+دTddQeU LRCfK; R4q.o{,7կ 1uغFQӵ)qUL/Eh;:r\N_,y_}%$W^l-pҺ46/؍xP5߈qTjE`N=v7D1ORsi%6.`<8hzFCCe!t+ ߧ:H[!q@[>]]e:GU>Jh]džh|q7}Ұh ^z_*n^6YC{Ћ M]rYv"{,;mMNHN*C hB,Wx]> hiZl\u}aztX SQU^Ӡ8CWS/Aȸ+R, Ϧ9 E1E=4cNdr;*pߝ'goKe!Shh_SCjHolttxL<%o &թ.7%MպcDGw+$yMX?ْ#qTu0k&AX7h9;k5-p? ?$]xqGÙ=bBvVNJ3z%<}}sieu;[p/'P5I ۇ*,=@K{. vۑ{*M@0IISYn0ɕK>ɛ溓jilSe'^dDi<>VTw"{7x`\ 8Ode˦i# yIqT(+_ r^9vc l؆l}TE(]T_CMYI:as6_IϯSۃ*d;EqbX|gs7nm@6'/3O 'e!-Ng )=#EW34sۀS01MxֺU fu)GwM zQmUiⴭ+)֝&p48v?>ҵTn/]qh8Cmp>cW֐wn8dǾ W ./`FiG@nF0E+ 0oFȐiӔэSA B%4hoW2_U1>y[e> -cؚG 420`_>$.|Ǻendstream endobj 8 0 obj 1810 endobj 24 0 obj <> stream xVMs6WR{FEJ:$J bP c ] I Sy]`6[,aKH4M[}3m7pSazPTQHly6+ݩr΁ҠNq'btG80 ,E NlZNul#Ou)k-9ѹ?N7ia, K:c@@S\4B9ߘ! 0];sCΒ'06k v~:k k}-s|!k%0#,aߛZ4<^!*֊9ϭ܁1DG\4Bf,끹Vn| .0(PaL~iKiUB?o%r wҙ ~_G\<=̯ݓ ldNSwx!sZGujNS=o[hXo+77u0{P/gٗ/ΖI\-;4mgZmE}+ԭFzn'W2qAk*hl1W2:;igV'𯆬[ø$/ pYtžZxM !zarF \X_ 9cx7KFXw.WlŜU۵60M,*ljoĽl_".(lE5l+Ww .*E%p\.=W$ݯWZ&C8|WY^'mMOOZ3endstream endobj 25 0 obj 1171 endobj 36 0 obj <> stream x}WMs8 Wpri2}4MIC/4El(R%d$+IǙMR",'#|";y|©|FldNcm98kChtI`TRpǙ@ܑ؇-<##PImyAv/ܟXn!N{#',I6&ۻV+7ܾTC|ͧs-p1BY,rن$te'Ӵ瞅8-t_5΢zIagŔ C,+Bt>j.KzbNRg|ឫbr<%WY+y>f&fuY ]\JJ-fuӲg!|iK2#vNHj>"(Lo=!=^?@pEh:1V>[Єͻ m_^?ZD 6 Ԡ/U 5nVdH3\VK1,'9*u=]mɺ䖠K?(?_.v '᫪3LWкxԢh9ҵC_.>6Ӱ}-t&F" _GHI)!vk\5C-u;0#_kD%Og*S+\E l.1[,Z_Ox(*2K#, 6V -0MAݳod>R1a$tȈIBS0I{'d)/qL zj 5D ,3dy b>ɂ: +ibusC<PҶIKI!*иƴfoƻ=u;K*{c'n7C4!}׾/S6ށf~_Ӵv"[4o8 =u>j^)7|9 uУo»")q42\Vš] }.Gٲ\z 4endstream endobj 37 0 obj 1767 endobj 45 0 obj <> stream x}Vr6}WlR{FbHʾII'7'} DBTҮg(X{NaQoZ^}N`GQHO#'qHq2[Q1"u>x*Z x $|Kj挅K^Tکt;HCS_^̗CI$aWiN=1f ¸ 2V ݆]),SW߁i "f %6h:Acð8Są7کt;HP0H]1増87ŬEHQ/w0^kF߹I ݢ#6~[!]ߊԙ~4Gky9Ly0 eI=T*(*lǔ(L>TRiH4(-iJP s{FǰjhL1{3wwwc@>6%+z[Voه@5?Lf4PDŋ`mn(A,:i^g|yW92Nwm.c8ב M;I'U[!N$H`z DLg\E|A㐛N&ҏM ǶFd D]:OGaVj*5RG 8 ` F30yݿ}‚keYT"="Ő8sp O.1S\i#)dPuemV#90fLpSSZ;9٢5SJ"']8֐qt>5yBiec$X|hD(-zɖDXyFڹJs|`Iڛ@_\.d`Ǵ+UupHcJ3A(]| 9<#UwӗZ;՘ P`uuU(tWMc6j9 <zdzR-;jٓom IH8U#b4 $Um>ZHsT )ڴ,!iW(\j^\-OpZ:gl:{eQ\36 u\Ig&; rk=R͌,y3n=:gFrB-K;Awa>[)*V_ י}kZNT?` ħ;;p'Q\Q@~ \dROTJ7cx]W#ߞ%f~ok)OB^*/)i]|KǍD\^8=I^\]8weV .wt OJmF?Z|5s@1x"G ȧ|;Z7Nsc[{q!,I8iJ7_l}SepѾT]FVF櫄r{"^`L9s{W+O g˦G9|ٰlU0K"Z, kMus.p=hZ*F&0ƟgUH&=C܎KDYendstream endobj 46 0 obj 1599 endobj 50 0 obj <> stream xVn8}W RgkmDZ\Z@t -6TIʮ ))j/ r~a2!տikں^xKv'-vFUFoԶJ֑ڐI^T&W &7#*\^|HprA ʕd6oe2C#9, MVG03oYv·Ro{wt^xLB^ky`R8I"wyZYG<*!oPՏUY[`xm}K !i=\v{p§&1N=ф{6't+F* Mh4x< w%@{z@ /r.B(Q4{U_V LxuBZ) |Jcy8Z[~(tSgMkKeyYaP)\!D;܄vLxN.ƯkVӣճ+J_E # Y z06st줠=#32- XW]_r>ʾ5/,\HɝHrrDsMӔ{?xM˄V;15A|- ai2O:cjk\ImҐh0p4tde=R c;.`_tHa Sib- TL@ eB +n2P_&kl.,_Πt"8(~f͓͢Y2 ~˞  Kj ?h fcķp a2&5W'Iendstream endobj 51 0 obj 1416 endobj 55 0 obj <> stream xVMs6WɥʌĈtc7wD6\@CV_}D9N;DطWE1Mѫ?q#yKfu'-scZ磰3].GV:6놌(QNgd޾[sayt>7Wzh2l-%Q~7׺mS*մ3~K[fhg[!͑2rm]# 2; Z -TiFSo&zh~IAcǦ> stream xVMs8+沤68@rZ0l[&d&5EeK6? "^ӢD!8~b03owwqҮ;IlЯ;8LhgN4Hƴ^~M;^w~4. `L"7E-9[ s $8[|GAϝV֬܈hg^ذ-ViM%P˛y V3U;qv:!@! vʸd~(l`>;dh v%UǼ1 {:r_+ eBydRL6*U cXVV(i](:[*cJ-_ L_L+yybʴ%H0~1;AJ@q4yCw'N=I(nQEeKdٓ~ܷBдY˱=x7ӵp cJ .So_-oLAbC'\"Y;=GTH^6P b\./^7emH^Ê3 K"SWX F=Y'ܓNlQҲԾ!GY(M$t_84rҿR}3'+oywF؅b|J-~7I$Х&[0 K, `Na<'x ڼ~AAp9 Cף4 Sg_qlAp7N{`< zD㶺&Y!$u'2,:ݡf+|ƨeñw=puK7EعKoGß?x:4GEoRfendstream endobj 61 0 obj 1159 endobj 65 0 obj <> stream x}Tr0+0zKR0 LnlɑƤg::xݷo+>3czQ@TބEmXz8 9,L&mi&qw 6ޫkԝ#6ƀoVaF+j>yo*C!>HZTrK*S K_+J@2EHjU"U]b [( jvpK<CzS+U^f.U=;IEYfZŜ r<`jAئR#\[ؽEl'U\'ȉ/D. (I@'϶zg,ߑ|XѸ:W>d QcYK[{]+py)f!C5|/gH3,1/Sj½j-Y\ i6y2 y-mj,qpG?j'E/-t1E;{U<}|[u3kJ9 ] :>9gœ`6HyO^ꑄ|YmY"Fa.r{A@+uO(()0IwP > /Contents 7 0 R >> endobj 23 0 obj <> /Contents 24 0 R >> endobj 35 0 obj <> /Contents 36 0 R >> endobj 44 0 obj <> /Contents 45 0 R >> endobj 49 0 obj <> /Contents 50 0 R >> endobj 54 0 obj <> /Contents 55 0 R >> endobj 59 0 obj <> /Contents 60 0 R >> endobj 64 0 obj <> /Contents 65 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R 23 0 R 35 0 R 44 0 R 49 0 R 54 0 R 59 0 R 64 0 R ] /Count 8 >> endobj 5 0 obj << /Count 1 /First 6 0 R /Last 6 0 R >> endobj 1 0 obj <> 0 << /S /D /P () /St 1 >>] >> /Metadata 80 0 R >> endobj 9 0 obj <>endobj 10 0 obj [/Indexed /DeviceRGB 5 (\000\000\000333fff\231\231\231\314\314\314\377\377\377)]endobj 19 0 obj <> endobj 20 0 obj <> endobj 21 0 obj <> endobj 12 0 obj <>stream xM{8-'7^uL^oD")!)s^CJI)RrZJt8NV \ח㷃O~Ԣuݏp\ןo] he{w$ͩ`U*R*TbEVs%U>+eRGqV#[JIeF9v>%ˊqe [׵ҥksҝ%䏍~Uc/w-O[7* es4u12*9BS\k$,RrVJZe,u\b畸-K:keO0V6g:s퓸V \N1ke ;R#kb|-fK8\dS((r9{&ukOi*pu[Cr_kV8J_kD :6Jڢ\;Q ڋB1װ5.}1BK(ׁsi!kGNc"뀹AlipoH@=x%!| 'zkg>^JlA\ ɋ\etu_Wt•]_ Ad^&!]tW^w=S_h,XWir= \~|M's Xd3ɕj~t) 45a%mN@2Er%%!,)yۃ2R+kK?{\)9o Mz+scr>9\IsĹ6br(ɗ0B!.diqn:ĽW]GLDEe#es= N 25.(*3J sN0Eec(ĸ^.aӉX1_ruѽKaAmKsRY*BFs \KP\Ee#G~8X%dwa (פ95kl5\QI0jzޚapuTW8E&u'5L*2HE qvsݤqxHqa'< "5LEZ\eqKzE& %=}K<=[\@$rAWL.d'(.\!8r4X %.xM\opX.8\FۉQī`㲏A\ٝE݁\aKԫZqTlkzí$AF=ltl.S>q9~_]Ttm)O|SieyrCҨ]eթ.t%1hG.: *um_&沎a\vv0rCҨ5sUa\V% ?#磹E2:*z\3NܖZ#\u8V̻-\t-:d{r+u\^]Ѝ:g\KE8V reQ'xYKE8V"Em<q>˩?}Jq>˩_qq.]֫sr*78ol)p0A\v CpVrsTA\v P_E8eW r|d UO+wTA\v%\]1ƹ%U5TNeUJ<$2ڷ2.e֯u*M7=\Υ?Ը䲇gA5v*M\z}G"L|\<*sPW 2}hJ,!W4rw-:uYiC,O9pxq2+-wNr{Ӕ|.8eVY?ieU!˨$ ON|0QkrɚVҏ\fN|~2+)y|8Y+g q}s}7AJ.|8U谷aE>eV2]&Š$BDۺeUZ [Y.պeWR~\(y|7U^3zprZگ{m#e\_KZ+<_k%ϙOd-.l5ì)%\UTv2eYΚGꖂr0}U[6K]xʥKh̗y}(eeӝ&|fm= \rY˩6&p)uer_zClLTWᒏ5GilѸu.1x׿j.p]-Υ5Tƿ'b}uo*ݻ*}&!,_Jq5 >VvЖ&ӷo<ŕ06/ʲluޗO6хʲ{"xq7D'qeqfjryGT, HܖNT`eY\zj\Gً҇Q,knhj\Y%0{&ʲ.yk(WkNmKv-`hո SOMrȲ*<=%^vdYׇ؍{;%1&odYUa9pBe,&m=.km ri`La&-#s.ǫUAX!^*\y\侯_Y6+06\C6Lf+/ۋ\kv v"ꡲ .r Y2D`&߫}`)V*y +q-i.,K\9W,^mrrO\k^/QXYקhYe6כZ$be9\cOU617be9\9w1?+햧\g՛0CIl,K&w5 raFl,K>r!?VR6Ve%\mky=2 q)=|ZB ~Gƅ8j5PhN2(:8`~*sйLjF+8Ot.`mxskmۦ<0DZ<3)ؖs03 ▋C9 86\,\WFӳV/ܪyɅDV4frAy#ClI۲`q!y#Ch4fqA]G 2D\B"6fH71D`msuW" BR- 1VCl҇ͅ '+3 i'+pAlY3ڭa_`+o2Å Chd V4Ru=GBr!ԕQ.4[5瀼e@ZCBk{0O.:%x<\_ eBsC=K@B(u,;+0J>CA.#։ΰWƂ\|tƭo-aU| !\;0FI\lEp .F;xℰ`.V+v 41Q %TcG ,U9>f0h"Q.( Q.^1IӯvUq.^!JbyQD.%{".'a}p$k>ɿMvBT&7"D.Ώοt)׏$?6kd5~|OztNretا4?(s|I"4WN _jŝǫoחS:JHt:z{(m6W+.G+w >/Length 1307>>stream W22̖/2RNdZȤy !98 p8  8A Nt8N'Aӄp:tӧ tN*Dͱ< wD}t @R؛@nnAxA =7H7A>t OA7 nnOJn^}^zѨ!N)N!CA_zi>ߺO_}}Km'Km[߽uIz_"]i_>M~Kߦwc}_]oMokNV}+oXH5|!h5׮&.MB, JqJqp[}B"j"A7zȃu*/(> endobj 26 0 obj [/Indexed /DeviceRGB 15 (\b\006\b$HI7\216\212>hsLKeM46^\247`rr\276r\306t\207\212\213\216PR\240\245\247\273\273\275\306rt\333\340\337\377\377\377)]endobj 31 0 obj <> endobj 32 0 obj <> endobj 33 0 obj <> endobj 28 0 obj <>stream xMhICjW3%kx/.e=M-k#9LcA\|D]qE]]>,sCԥ }hA1i㽈ȏʬ̈Ȭ2+"WȈ+Rt7vA2TO?Y +8`_Jw?I_蔈Vf!M _o|a0ujƽi7rN 7{gS|tRW= ֋Bz77%o^Ia51j:(Y3` iŰ^ֽ g!5oS2Y/mCDVӊ`]R h"iX/yQ  R{lC1_ʩ.hӵ*ȕzW+Ë&~a&|zB9E1HmpV-J4" `}xr*a`,w܉0tA֫OQa+:֫oWEڅ,oe̻Ϳ9[xM&2z?[L9y)x brϢc{!3hh?kKҜ`}.+5Gv^%T77Ysngm<91?oqʏGv~kejaXDn1/'-f7ͷ>[:tecXiYAu'[-nn{=ϮdlwX[|xA,ESXo-aM1 x+ ^Iھ~W#6q^KO딀X[sT ku,c]l 5\z~_Pb4ހRLaXm7%E(Ѷ>GX/amWgZ-=pNz&,Vb'Oo->g׹~ۈ[V=ݪgQ:fWXљ]&Xžƺ'm1|nXphA$HQ/ j.Q%֊.VsCª VmǺmaՖ}mS7c嵧N/K[U[%`2E.aW X7 T-^ ʫݿ6 ku5YժMšI%a,"&aͦ׼-JÊd@DXUVMs ݄U_%b܄2V}ZeyX.VVop1(?]WJ45`6k(Iy<ᚔV"jU30* r}oSZ kU9YoŁ.o$7U_Ub(ª/ZP&ZP&ZP&ZP&ZP&ZP&ZP&ZPuo)V}U;LteՐEukU+vwU%d;-&:Q &Q"1U-; @s{kؘvԖEX á[V)XFΙ08m/V|[ٱi)kr8 5t;;Gɉ<_Wujk"J +~7k櫔DtrοWuQa]LĚ3մ*KPʦHXgVXT8XۊN-aM&%-ᜉ B5K[s&V҃9t5(VjF@ Gn&Ƅs&VN/a=bہl8Ǘ}3܎ulsnm8h2Iqч![$Q!?m*vx BgQ0a` kDLQ.a=)Ʊ=~e$:+5v€bEx@/sSx=NUCbg8|{_v.a &z\W^zf/L&d'Ya2aUNP1^-]Cby6sb}]u2z[a:R^qLSɶK=ӪYFXxI_~i)m&sQɈ<Ֆzu͋L5qUﵥѹ˥"XeQWP`Kx6W{N9GtͺaoÞ{-˔V[e| vY}muq`u WW?ȋ{Ӑúg?:xuL/:e[C_]y}}ԝuՅLUZN{%~{U'$ANr[e`wVRlLUZsRtۍIԹˣqb^sq}i Ǫ^tqV62u\]Xg`)+ԚpU'%*(lONJTq6룪}XKpH9ֆc}`uq}i  j/tls(7W{h6VԱ6E nk`}Zubzkmm6wNLTֻ6ks;nk`uq}iAbFcEY~4l\u캭j֮JXak%ήJXvVZ."Y~THXQǪJX+ j֪JX+i\k5ΪJX+VVZ.NFXٷ7CkXfAz*6,(?QL˹`š(k#EX)HF6R"amk#EX)HF6R=#MZA`+]Ãf#X$8V",lrϋjEBgYšIn`=Bn`!p5z7:šIn``i<|*lrkvNT:C` PM&%>a*g* v*?&XE?VV CSX:JƺkkI`L&V&;Ub94Vv;k'88,wBV) X#65kG#e\LXKʙ׸~oU.j)!ʄ0/")GQ&j,(~V墖B C;j!R>D +}l(y@}ہV"!űVC NXbM, uM'g&fq:8hU;2f0`eGsAg|<;É#3(*4UmZU} +?E@Cab9h[!=(+C,P C+"ar&AV.X,*w#!MǺ̹-Ce^0WmCuw:E .V^!,Mn*Vn8Ʊy:7vPtGkK>WXeꏵGV&Ql[8~ԩʘ4K,+?~\a1N+|k׋fuv*6gk0sܚ+0ϢQ&H)YxΫ')7Vs'wB"amk#EX)HF6R"amk#EX)HF6R"amk#EX)HFjN = f;xeowp:U]]_ 3f1gP>ߚu˭a%&VDXDX s" "9yzخ<TQCg"VӒp8pp/YtH1KX\!VQMqPX#dz,}ϔf8b+&@?t`|'r&6Ÿ(XbEyʉ!57MXm*!˽L=S! 8U20[ꯩy9tg!VgH-S0ָ&྘*>{{2Ą9԰0RTPLiXcXX\cII=SZXE8ԇv?uG1}Oeﯥa=ưkJXM7)zh5`ջ*f;$)5 S*ֶVEbŚ̄j:d],2LVU D3GL! &>u5`Y -aȘxe Gxga<X񴭆(u>C}U᷎`' ![טz`IN,˽L=S&Zr50e&)ܙ8fm:Vg k$2>/Length 415>>stream * ,XrVȰr$W @xir >>| | }>Z`iSNH?+T g2ܯ~}Ii>a}&POڃO <4Dڑ`<+O,YM???vZ`=? g}/p3 a?0Y@ endstream endobj 34 0 obj <> endobj 42 0 obj <> endobj 43 0 obj <> endobj 47 0 obj <> endobj 48 0 obj <> endobj 52 0 obj <> endobj 53 0 obj <> endobj 57 0 obj <> endobj 58 0 obj <> endobj 62 0 obj <> endobj 63 0 obj <> endobj 67 0 obj <> endobj 68 0 obj <> endobj 38 0 obj <> endobj 75 0 obj <> endobj 13 0 obj <> endobj 76 0 obj <> endobj 40 0 obj <> endobj 77 0 obj <> endobj 29 0 obj <> endobj 78 0 obj <> endobj 15 0 obj <> endobj 79 0 obj <> endobj 17 0 obj <> endobj 39 0 obj <> endobj 69 0 obj <>stream xWwTW!K;6NUR4JsװIvWJ1n4 * U$L16WpILw-v촓y9/wÞgw;W P(E{"lVyPP0.,.JJCh#7O^ |ƴ[w^KݕKEp$7OC$$]`goJF8LcG&"uWѬaԹ]U1PA6܂Ip8d~uc \%݇" &';?z)pOaK|—t6bf_jZ6`n8[Dv:R,"8g\}0gF-T!'{ݣ1 ?9R"~Zge@[lb~ mo\ʼnZďO_#1@ f_vc{@ W/5s|Ό.91 7doV | gCP芴g p}[3cxo&bEċl&&e`dp<P2EMOWI>HWđ(IXA*nMRPC0;0tH᳍: 2c}TyX5M"(Ɗp;z;pr00 y@_]xfLb0VH7j1j<^oeu:,X. lbϯ'b;@F#3t5wˬ'ޅ7XG]-2P~XeL"PZ":uaȧac} IO\'P`S.f\4C>-;p#LsMs031 ?Ŷ-(,$bnĊ$_ :q ;9=:tK<_G*aeV/%{XzHi11FW  El3uF Z!mQv}Nḿv.niH*!cTm6@ _CP QnN Pv0m{Ms\~p,FnP᣿*r)~Ocm [ vaƬzQYXqG,~p))xRpbϝ˳ƒDPTi4jT6>u|YxL^cTjEW *me!!k9ib N,4{ޟblQfQvlb-v%VD: Dq;;G>*ژ.Ԑ,CXg\5焨}?2L#saǿKjonMhA#*"z%Qÿ x~Z=yc}ϏUpykj,vu|8sf"ky9.M@.I2)kWՊAM~HP]hI#͇q gEaV2~ ΒZ-&Z P6c zC>ޥJg5N-Nɰ A%Z>5}o[fI*抮.yHNU?>7KISk5LV9]Wa+}ʜVϾ~YaX^רlR6hrذvC'ȭ lTvO;l=bC5e}uG!7zIRc" OS.fPԪHكA_?y| wvoM' q:j86#is]&`7VYA~9 4\5d4br:ʊ+䤱5HcrDUyM vVS` v'< ~y`+ mpr4mz(`buN>M? =7qQA\J,AaFWϜhmhw*,PJ`4c'nd|A%V4U4&T|k&)t<1BK⛢P޺ "27 endstream endobj 14 0 obj <> endobj 70 0 obj <>stream xWiXS>rrDBP )/*K-Pj N9S75r")ʗ&PD* ܩydj JQT0IYS6Al*ʌ,)+JJ Xʓ02fSy$jѽ! hQwƶƅ q/mC+sbI c5C&&+LLL~>` 4t ff-f0_m~Мȶh$T RR*8w4&W45`3hJy7*bY]=y+޽ve{`wd|CT:Kz 0(4p(~4dpH 4apxhq"K~p2-`U5ܧ ŭW%t3W;#oU7_Eg2:b#g"ߣ [A֫–&؃ƖOK_jXX-4X bĢ$A'b/,¾`xoLy>wv=+o`l9^ Vn.j'+ϻ56~3 Wx8u ` ȱԍa;Lg09גR-/^' !nbU)xP .W F`ϭ8}la1`3;ggChJ5)~~z^h`5`)K Hk 4ӗ/@8Ecc(wҽ`FI@|a'b9?P HѧQ" oj߿w6(4.͛Nx-N BM7_`+3 H:0^Q;z aދ퉇vSQԒr`z ףLfyyɪ݅ٲ5>rށM/7f3!pcsYBY{A]ۊ>~$ɥow@@0K-=!(}q+sc(-P1P(|=;1㞁z/}+61&߅`{9tcۉ Q⭒͒Ebٲ1C @Q'_AyLL nƣP ߓ`2x"9}a5ō"J/a#o#p!r;es77P7:uxMx3C5Z뻬 HSAm~^ N4nIqxK,ވC/D;nԙwf]CɗECl񜧣̞cЊ+bYfxU_mNhծۓB];IYo$VlY{ d,{ݯ˿K}5@@'>o~1Y7OŽ)68 0zB42ɳWrT[ e$lKB[tYnwt -6z&UnPBl["ǷYcr|[2{NRtʐR$F.tkQAO3acPr[2/2wiJYzp~\.%J@*K.L}9FxFu?aCP71VSdָzhbYa(nOIGJ2b4,̦Wڰu|kF̒Tڢvش׭2z.H[~,el19P҂n: D)9kV]y,bOw KwfуiDdJ tX#%EkZ#;!4s,ƫ忯-^BF&M_rs 7S!FHz%QrLqRO#aNg1T/˿`AI:}'m. /,+6WXvG[~gܿے3a0:]׆m3l%f+ rlFz?uWNIa~y+ɫW1L'lRPʨ%L3*kqzd+)a~)ֵ`1"C0ZI.f `􊤀7X@'xmI bnY(R{O=@F%)6|//bh]D&ׂ ROr˳+;/&@E|M$>$w5OĜ:Zt:*F381sVԒ1v^'0<|%uXiak:6j*fAc3ܲ3@ a޺ت `FI~]ykh}{ThAm 96x4l_{M)x(;h< gbnm|<$  {9\ݍm6OS-C OZ߰dڒ&\U'{?5PF_&Jv_m@=H2 ^ h bsm9__ 3K`bI)kjFQ T endstream endobj 41 0 obj <> endobj 71 0 obj <>stream xXiXS>rrTjs: jqʨ8,W A@0$@! A@BEp:*8j:Tp:zXm|; }z#g﵇.m/B PB2*Ľscaļ>#r6㟲rOؘ Yeq *ujiӦI]3Roybmt/RFcԮErTN.TDɥ/ c䪰(i&gcYkoYX:ѭp7Ei݄րZ˷NMC/YB{j= ՛jT B@!F`]}$tp X]0wIb9+r}X57[Q  iWhi_@&v>bGo;~|􎱬xŴΩ|o ]fQSEh(t@p5ͧ%_UV=U^U-]' l/PߠsKl6/~X/M*L/Tya1vVDoI֥%H%P dz ዼ#0xh !VxBЯ\`>p>>Ûa_~ XDB߈;{q2z7<+c(aXyNJt%O"(hk5h Nphs㺣5j.c%tIb߳? Gw1J&a\$IԃJ( EgͳL51Z:5!8œOD[+Xl%+EeE IzBոin`LVr UZ\\ZQXlܭ) %UFdFMMorrޜXn΅rrNTUtmSXkK&cdۻR$@6sC͒BQYzV+SEt@B%".ؙkC Q "K 'gi)zo|iJeŐ;Z K*3gZE iKzJ|ch +2d%w%)6 yx>M.wMYa'#:pk^}1ZXYۂhlMjVDZbse:2n*8;$"yΖtACE=orz:\M SBgC4X26N bx߷*}îb Y<*A"g\%\xwXK™vBӞF(.pЏxKoKݙ)h6# Y,}J{p0xphD8AoxoF99[%)Y:Jss%kwԝ3W0ޢ՘KL vc4+K_߼Յ^H7NІsWnĩP)p@/H1AfEyڎ],$;!_a/VY#D#`EZO5#c%Ř;0ˬӀ}Eț$}%ŝЮǵ#{>mXMA~0}ici'ḚXG6wyBDlsUǪDS4>Yd3 =ϭC A8CƎC_C׍gZ*PJӊSu%KW–/ヌ݅ [%Еuq+=`!xoK!B򻰨SӅ'>g4vG@%Wwצ)"dè^a៖|?嘣ʣrŭرcLġ}QVOޤ&˃D ]I`!$ /^zЛ.%$LۡE~1!pt^XC_Rg3gBqPwnM)$,``=$πC,EFO{0U ͌U'VUmw#s19 iXm*Z(,"KZVu{56q(t(N> Z&oaEYM1<ȍ[7 ~6&3pa5'LfW.cCLaYzs뭭2MܰnO׳%9E[eR ۇ*3ӛgeLAYeY^UUer!/~r|f߰vb^_|c^W| "L%N“JdލA^4B7]̘ :X؊OV ''}FمԦg$KrI7_J6+5 S5uY5`+D>uBh$У<:hϳޝ#feAH(~ރ8߮k>1DAFxg4z氤#(gR޶8xL_[F*M^M+T/>P8a:Zyf[WBr>l$/: |}rDsjÞ5@Lb6 aGI rvbp>(3?P%E%kQ^x[7 BDO i!%U;+<n^9ea߲'Lv1c 1r,+x&u#N}NVNK}AAEsk=DZK'`4"3 ?J*RQVàJh7'/ѧbA;R__^(11w Z& c|'= Q@,qIm=HI\Q׼p  ݊U~`.5I&E(0MCts p"zqb )33F>&,CS=]MW:r>l$~W~x©+=a?>pz5K"H6nK4HpScGywM7u P 鳨"ܷiGΟ՚Gܼ\p9pzI2I|RrRqm+K56+)ea L|jRr@%vqk/3a"U +/Pii[ʶ'2'ƪK_6Y;v8\vX{d@WVnwi; W`5+FI(êdh$acv endstream endobj 30 0 obj <> endobj 72 0 obj <>stream xkSAwhT/9XAxM{V BPě%ew}Г^zV,#gZy0VG}hλĒ'O=%QAg13d)} yF+ciđ.-86,|^Yʬc |c3ϪVnh^g]8}ks5M?g?hvX-.1& endstream endobj 16 0 obj <> endobj 73 0 obj <>stream xyyXS֡%$ Z8O8"2@ 0m!HQ&Q'U֩jop7};;<߽y ֻz׻6 i `0 }a kh7={ = %cy1c˦9W5sάY9S 0 :~[2>Ldž <C.\U,Q$DEܗ^wO4&*]GP$ dK}BwY=2F$tߺ;p׾vw!L&ܽbݽb… R|HqpqBD,F ]Y.cKByPXX.&Ho{TRXL.$## 2wIX*'HdDo/lEJc8?!Ovx5YXL]&GH%0>o%I4!Y' ’"DBTy&'12Pd2W8Dľ [ā[%ےKwv&JٝG~KWO?;*'7/_t0W5kߝ;oM Ye_Ao[7x8@C\G @b+"<%D0xN,%vˈ.}b7C$*bAN KL!xE &^"7WuD#1@ ^%^#\61qBNϐL9%t]nuNgw9^guH;š2s/Ru,{Tש?N;_<^5hg,s^Ov%\߹rsryfztf-7G[k5`x$À~ ;cs@_ ʧsSY(bBM a N4TY%ghe/,s)9,!'4I )<VzyƧOf%&, RUGȢT0JA7;S'j;5R/%@Bxi"dPPPA~rar#Ґ&]_ArֹJNviS #9kCj՟2 .Z]WPֆa wU(1Y@u pF,V!?ą˯b6yGnsa5te/vrIfl&IYȦرrܮnO$)]9j)آZkO,| mF_r~Ù*EiS,.S ui;ajLV-,p͌`WLX@rK">r]]~+CG31ɥhr>cSDd}_@<1M}m#qo>g:!Fs23*Jy0IWif(m/eGPܹV8>c4pcW zGZP1$8yF3[Tݡ6o@-%k srM`kFHd2#T;k(P>r:߭Ջ{E)ZZhq砠Y76DPx9^6)-5<dY_چVraɇr ٭s~\Ѝw)l7RP LmFS-a@+KnlX6[uxJ é<-W9eFZmr(ӨUhRvx@ ,bjñ WRv;6czCl6O߱bmd{1Xkbs+2n=b9a*Ia /!9,+&@ &*IO!9߂36~7w߁TA'G^#fՇ5Xӿ5ce*etP;Y[4]:+*aл9ty nq( }QnV+ӲrԂHXlȲL@i0tLM6fUJr(VɼdAzHnR*qΦJcۓn>'KEvsY}ϑwhF&&\ %=Bw[teqkmu\uL"QGK D_e[75oP]eǜ@wy"d_PmG(q"(H,Ӣu0{{ZGsVց_(z. 'N:Wʠ?nE>ИQʘܹ,XKwls5zI> &;i> *闛M`&QρsG+IEnTTfyh%/,+%)]bK0&yor~Sӷ0z"5I(O <#:PgOw!:]Ge=6KEYEar7"˚nWFrgQ}$;6d[}2GovHv3EЃ14a- +ʸoIj>Rs acOCzg%$w |.v\W@زAOnt3:&YLqE=}1/#cgCwx䧄~^Vu/P; aEwܹ5S')d裊8Zvh8^IKЊ8+X*LeȒ FËJXWrtsNqj2o/Dd:/_Ɵd};tmNjôML:ro SjJ.J$E.ټuWX\P3c43kS=IbA$ua6{۪A/zx`ss'J`j*)5[%>k[SG -uv &fq: Gu&:eഠ~˹5֨WGoBa࿸q;ǸñZ V醨mDzK2c E`skäE2 FƓ80wzj$#T0c J(֗'_|j|0>%tc{Zh''Eb }BN(굛e֊ˬKH<4a: W3N680%,J?m\W]v8`MZxY<ߒW x[펼[]Ee ɦ` G"ŵ斺ږfY]@Ϫ4ꏱ~տ8/VLSbC ,s !؄h" k|a(HG,:eV\b{+nx̲N޾>7H~#mcaCu~yT-"Oa}947 #oP[gͷ^]t 6f'RzuޤQԩKpS(dK/(`@Vq3Mt:GS:u%H:4g+,#\Ϫ:tԋ2>8cM:4o5V25/<xz/. JO7jrLB D3h1y*pEd`G0.VK<(> !L̏T#<2S^8?  ވ,ސsҫX>{<!) .#5R:yvz+oJľm;Sl j*JZa~ 1,7[1xr`< M||t"w@O  *xòŎi='^&&նJOovp'P|>>p&9?7϶^kv.mK=>KDN혵 >1#hW|ۜꣀ/ƾV;0v~0|,j\Nxs0d @V6y0(c꫼_zj2\!KίZG^_VP?H;53Za^J@'y͑ܿ_Ѝ߃/!ze M*U%RԬt]X{𕋕kUs 8`fA&̃LMpE I-m -m;ў .!S{ܕwVep:}h49Ύ|yn%ƌ8q~aKsqfmvon>B+x0D)әzB%{>w&涚:Kn^rǎ’M|a<*ޢ>}|{|f#cnŁ*37.<C 2t\0^~e'SmÝQAѡCl-ˈwqpѩm\khdvƩgLx GE+ ~E8jmE~TbvmSM;\CO,×;ahs86=ϕd.g}tf'jt*mw/ FFn4| fsJXLyEył伝&р bbm==xɦ|͐➄Sn?=IɁ[p&ڋB=th eG{.ZO4X99Jd "eOw ۻmLh9yc&gPd)JTjm5ٖL _e}DkkMQP5F9$(+O(4LCb4PuR#ⓒ,n# ꋛmŶJ`j*SSUTm8_[$JC k䕱ݩ,䪴T]}*]ch4fXRH $Q"[TVj*uehixiOprVbӪ+6U%Ś>mp k\z t>g$B!# Br(R?"{| z1LJXRQ|w .GXYgI FgEh1DZ\A_ Ep? Bb'sq砍h">Z!W܂< W\R> endobj 74 0 obj <>stream xViXS׺1d-"V8lAT@("d$LUzAN(VA<PQ!Xxb|sJp%^oSiNDV&j-1Wu^Y/4e|6KLiu u]8<9^v-U3?e̶XW_ɕI'?x(HWXgdg'$.%'D("SѪY9s]\gTI9R*L-(g*BVRT,GSnT5 fPAT05 DЭ_ CtzTG26vZy _QΤ`,ba^C%2QKgVH1?Y!$Y0a.+T9%ma|9s&R!^R&׼>|-IwT<qGk-?c;`O§Ž|0\|"=/>\o^+;YeH$Z}*4bR%+0 DhdEj>&iY_%f h"=‘ .dkw&sz ::];Ī??xBSU, MOLҾTZ>BO51tdoö9;S7/*W@֥)צwD@QQɽ,ٶIW(^Ɍ9UDX)bO4Q$rw%s7'e妠_܂=B;G?T }# ¨T켶r_Bqnbnж>:wκx?ĺ- W-YdXp :m#ťtJ})4q<wa+' KoCeg-ޏdV,K¾QL6MIUFHF+Z!,AϾͩRݙx4d/|5&]G3H&A(-\ranwTڳ%b-WwEۡ]/{ %MBWW|h zyx߰h? !yYjṴZ9PuB~: <n bY%bdUq o&S5MlP+eDrا?up۷;ΰBp aٹꋵ ag-txh˭*`x)YA:`QA۝<5XZi%]zs⢵bp7婱.ېj,҅ 3dy!h_T#ATBn?'*k5ÂGQ_ZِޔNm%eEP;+.щ(\ҔRcOe3gsK %d5ZL䁣s^@GD xտtI(b$J Fu-h:RvWbŕ'\ | Bԅ/:ӈ&3KSOIc6FK"h96 YΠ?xCXkE'-td :\8QqEe)S*M/t%߱ӯn|`k$ kY, lQeoא1rqZG(LAr{n:ip/;?ok^$-,*-XuugX!4hƵƪHe.?[ȧHh0я؟dge46^AIǷa po𘘄ͪS+Z=D~ &`}a y!y|h\@q_Iy 21ÄVeM/.%~%wq 繤.N_H*-i=x1W)粯*| +lxgP yo\J_.(ÀЙ^X\ZݼĄpQx3n%񬒊{0 %Okc-jc9wNXYa::6^^x7A3WbL+/d`>+H=mMLB8Hƾe 2sMlGWa$u%1 oƈ_n\{LN V B3PPjbV%nbH@IɥG쳻>V&V`9낶#ye?V^m9 OWzv_6uuADK:ZؒCМ Fu\].w6~c<;x_Kt=W].%t3ԬYJ\RsIk )3`o#xhϯ#!rezki?V KCKhm _: S endstream endobj 6 0 obj << /Title(An Overview of the Common UNIX Printing System) /Dest [4 0 R /XYZ 0 734.0 0] /Parent 5 0 R >> endobj 80 0 obj <>stream 2019-05-15T11:19:09-04:00 2019-05-15T11:19:09-04:00 UnknownApplication An Overview of the Common UNIX Printing SystemMichael Sweet endstream endobj 2 0 obj <>endobj xref 0 81 0000000000 65535 f 0000013388 00000 n 0000062840 00000 n 0000013225 00000 n 0000011885 00000 n 0000013333 00000 n 0000061188 00000 n 0000000015 00000 n 0000001895 00000 n 0000013546 00000 n 0000013607 00000 n 0000021026 00000 n 0000013808 00000 n 0000031134 00000 n 0000038168 00000 n 0000032717 00000 n 0000048470 00000 n 0000033394 00000 n 0000057264 00000 n 0000013703 00000 n 0000013735 00000 n 0000013765 00000 n 0000022514 00000 n 0000012095 00000 n 0000001915 00000 n 0000003158 00000 n 0000022568 00000 n 0000029426 00000 n 0000022835 00000 n 0000032177 00000 n 0000047731 00000 n 0000022730 00000 n 0000022762 00000 n 0000022792 00000 n 0000030021 00000 n 0000012307 00000 n 0000003179 00000 n 0000005018 00000 n 0000030656 00000 n 0000033819 00000 n 0000031662 00000 n 0000042754 00000 n 0000030086 00000 n 0000030116 00000 n 0000012460 00000 n 0000005039 00000 n 0000006710 00000 n 0000030192 00000 n 0000030222 00000 n 0000012613 00000 n 0000006731 00000 n 0000008219 00000 n 0000030287 00000 n 0000030317 00000 n 0000012766 00000 n 0000008240 00000 n 0000009881 00000 n 0000030382 00000 n 0000030412 00000 n 0000012919 00000 n 0000009902 00000 n 0000011133 00000 n 0000030477 00000 n 0000030507 00000 n 0000013072 00000 n 0000011154 00000 n 0000011865 00000 n 0000030572 00000 n 0000030602 00000 n 0000034112 00000 n 0000038543 00000 n 0000043165 00000 n 0000047951 00000 n 0000048991 00000 n 0000057618 00000 n 0000031047 00000 n 0000031575 00000 n 0000032090 00000 n 0000032628 00000 n 0000033307 00000 n 0000061307 00000 n trailer << /Size 81 /Root 1 0 R /Info 2 0 R /ID [<5CCCD38535FC72A9BAC5B1A2B068F200><5CCCD38535FC72A9BAC5B1A2B068F200>] >> startxref 63041 %%EOF cups-2.4.7/examples/testfile.pcl0000644000175000017500000000735114502571342016524 0ustar zdohnalzdohnalEAll work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. All work and no play makes Johhny a dull boy. E cups-2.4.7/examples/testfile.jpg0000644000175000017500000061657414502571342016543 0ustar zdohnalzdohnalJFIFExifMM*C  !"$"$CC" h  !1"AQaq2#Bru$34567RTUVbstS Cv%&DWce'EFdG!1AQ"q23Ra4#BSr$TCUb“ ?(('Dq4llb44:;m>B澬~vC.qDm-6TXՑ]8UR"[ŐߌV\?+WV^/9mC$0:wNUoұ0]88q@fHL-Ŵ4I$y3!WE}3ެ6.z7ӅF0HJ=C"k>l0Ψ% D2j?pxd*ܷV][*oRpqY5I+OLQ I~NK.9կp['ݮ[i}b Z@Lx]vnwۭl6{';W yT"ntD'8=e qJLO1l8Nx [ćPRJ^归AHO@2(R i6H> 7Kѝ%]PJRƒ>:k+OMO"cd.,!'xV2APq(ȯvM%/5!Cjm!`6@Ύrb-5qqIO1Kkpp弨*[wB__ èʮq\+nSeDNOyQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQE;ߦ| 7Ρ}B9o::t}"CMeL&WTp%=m[PP< PYmiJ$";u8;iq\w8fevgdh} =gbGiC9A-SY!io8{ή4v[t,02.BtE`kc0aEGM@''HI;J9%Q ߌ ZiaZ iϊz% čVUEQ#KtE q6,Y<(=G^ BrQpg5Tzkt5jM. Aq֮k3 1]E\meꂼqD\UUgM6ֶRTyJ<`i|K^3pLyTs'EŁqчqd&[f:bf)WyRGyyެZ8fb tFha)I'rI&:)tsd>Ü9g7_, %JPՠdd !WOClO C_RbqUMY$`' IgdIuw>g¬U ]QSug(}~h"\1\8u;sug(}~h"\(yz+C4n {F OJy$z+C4^ {EOaʀ+I1?(x+C` W|=NydO^38/AfCGS~h G}4c4(uY>o}~h!\XU<GO?/bWn P{VV'<=GO?Rq >b*+v, [c4ʀ'EQf5iULA|0y^#E(G֝H3W<[+rGw)'V>.yWWSԣSgb_[ʴMm8֍Ӄ/Oc+߮c*KՐx!p8 \CǤ>cKZL)5l;$oqUG-ts+WLK a)'V*#%1$AO1;j ?W'_EgEqTW;&)Σ2;4vQ?G>'?V*Kϊ W)w W|]het~7+҈~/Jr#lwTyt"ѺHy8Yxc,ϧSSZ|F~/F9X=JT6U˼CfkI'ן= m%SoXVh# U'62ԆXx~l}c~05f]nBJR`(0GF.;nU}tu1KOl(IqIZ9` N+ G*36!R  VɊu-d_xBfږT G`79[N"駕]Jչq֥%R'׀q"*JDzZ.I^>SÓ lu)[檣svq$4T*[8ˇV)k B CgvU[[ہ_5nROKtT{8flʎ(;qx8Bfq,#J|r;{I}R\zSUˈ驇:sl>u*|S5DۺE8:.H#;Cn_}vRӔ#񏀪JPZ%7c[q -)# ׊u ) P=\m"DVV m7@Ɯgm rVҐm)wu2q{8cZ%khMJ\'WXj(qqȐy-TwVs !Jd$@=uxE$bٸׅڃmǓ%ԕ6s2y *t!sKH(B˅ӓNqU5YU$QEh8QEQEEPQ@QEQEr\xQں/qp\^Z^ĻŪH < FkvQ'H4+8h([-dc5ܒhǕ(S%,B] ˮ?ψ];y\Kjv-e*:N"PUiaOj$m1^]K9ҕzZJIQJ^B}nj|H%G}!Hq-z6^.z͡imZc^l}ܭ2Xxd~ Y/>p{}FF[6eղPP#7c-㶎[!J rc ?)I?8ME5VLnV+[@V6j^&PR5$lO#3ݡM1PZUݠ1NcXIb[lUj~9 BZƃ+$d[oUcI) aeN%[[|60*l9jMUԍƄ!Ns&\C gOFİm(6\%JF[V?qM/)RAp$55 2Ypj;d75)qzJ8!'8UW*RQM:?!s$)娜L[.U~QW*klhr\l(>¤J;֌#;mQwv6Giՠ([ * N y-48'jq:ܣAYP܎^u8_NyfX}ZRwfl {+.l$o `=QqQV,ywJSF^a@XR!A@Uo]+(#Nqa%-2 oJ=ե J)ޤVz;|,Voc5 =4Ցd%u۝J-?kRN u7Bn;{vVNp7rmޅr5*7 wm.(sM7f֚W~9yJmn+sLӜ(j8vB'&NUH\Fk ع\ˣ|5\EpR$m+*єUc*6t'.գWL"^#ۗ;b7;A֝]s dImȼK`JcVYa3\PZlqޓqF[h vpmM <96SYEʫaՒ\ y)ANKٖ؊Tj(痈ޢ;2nI)8@;g4KAqup }%)#sJ8~^^ Zlzb) -Jb3l{1ʜNX8P;{/^42DuRARG,c(N J98U|oFzԓBSs>[sjD-A YYP `8B\Q 4 |_6p+;d'g!*pR\N ]ޤw\% Kh#Gj? Q'JElu}bG}&U eGkпSti"_ qL 9"gr?l/]enA[ٸ@HZAP5 H %jFV9z>t=߄賨*!ژ՞eXO,gykэeut ٖfX Fj5`B¢7Hm9Dmc$u7BIq #"8#3uZ|,*'~EJ[+Ci:!sm(?E  2^rp H<}SM {j K7tI8$xrTp;;Sխnu\O)ÙBuTRBV<*HX75D)YR@8#at}P=QJVT6)9K ģ5i=7\tc:eo)wq{E(T `nGQ;6b!'H$dM]HӵV2YAbd41)*15%%zP*^#vsnD-lht$'(Jw9sT^2͸gnӡE. +PH(φaP~# FRtr $cyW[n*˭'ecbnsTrp~e{L(-DH/eQZJ6G qZo_+'g3oYJEU2٢q;|x RtBMsДR(!#⚟t} ԵϸT *[wI#56N.2;0$bsI dj%uH}O",DV{S(j9vLb1[Z$¤)9RζzB kWPIF>$2VP EQtI5lMm;XQT\HS*tjR@+Rv״Ō91/fcʙ,3)PKTVjIP \MڒJyWv1/<gJOu%Xɧ)4wձ3,lwiv+0H!ÜT?WwxUKXK*^q\1ƝfD!hZ$[ZNޢ7ȒN zv8h 3ߩ;%[)\ɫ4,C{a e@gs!ې4C.: H C+A S&В.;Fm3},@ZUs[z6 c=a-%<ķ[mɿB K6A^O;g}r48 ' ߃XXŠ(DB( (((( (tѓvzBR?꒯77ۦ /i)5 o1a픗Re%D@ָ˜c]U!4P S``c8?UTU+FV kݽV>="1 m$R#!CʜCyD-7n֕M4r@wd\1-7ciJ5ĐP zZ]$y5j٠t"GxK$2rC>ִ|PϐVvs3-V+bKi.KԥYZU_b8m=<›lvudr쫣Y8J0DV~zc}s.FsC uP U).mKkAJux>';{+$G~ԩkh$#ˇiTQ(nkU>THHI$%2!ΡI;f8VFRGǕl{o)IQO:J!1'2fh(#jԷe0q$9"C yIy֗'P<wz4n_r^ìej ݃βpVTqfDVɦԴk3ʳV'@~@F\H4FR mIVR@\Rg\`a*:Gy4;m.-Wr8jԎVVN}Hqz_\2+y|Y,(EE\ԅ{һMkA Ɲ-< Tt<*,Ѻ=(a(㭿{dcyRDLx͡ A9$eMFJt$m5S+3FRx缇Lu͓ݹW ZH*RHX|kLg%+Q(OqRyQ;bPB iYe-[IAXBD6N;OjRxwlaSPҬ]D~Ǝ*q+\cou-ͼ9p멒J liRO^}%frkAYWK.Hpn9ۚNY#N@L) J}`qX,S޷*3-;}ci,܉󫐸IYH퓎z dx4O\m)m&j$cQDžD]ꟑ*P 6RdEXAQNt;z]dJp=G;{U, c%q:q[K4!wS5c^BO3J.q:eC<37uk:V7=ZZ:);d'[@:Yr+'fps\UXaY,wׇ$gT9\/E|KiZ]SaX+#36#˸p0PKodrJpBC$u5}B,NGC_vMyą%mJB\>:4o4L;im|Dco1RqpՁ2(]̧BBRVNdvE  W)mJc R0Jw05E:s͕(,_/fޔō+>cʤ!W+žӞܚzu|;lz4i'(BtI;ds'<ثA s̙ҒR5e+> 8zxbj:sߐpq⩪7 cݏ*qVIV1% 6F )P+\)=p9[ yRPqJ46@WpgñuT͕:Ą!##'ľ-7!X)6gQqD9YT9.jL)1!/-m9Ղ]⧢eȰQ|-$ot%$w (J I1GK[[SBw99<+[Q[E` Gg 偕{*Z{ޢo :' ţvlP=BR2212d6XgJi&F`}ƚX-? HyL鷹![Vo:xtǖ5ɖ)JZT]C$ ?h6ݢ]ʊP(́ݟuTgZOe/V1Zs:l6-\-CNFe[7>lDElAЮ-$yl<ڳbpԅ}M]7N#dn,t9P]2Z.8)w {Cwﱮxf41N< ( (((( (( ӓW'xime%p,~滗6ŢSɂr"D7q˝t&H>>ҵ*|93nRJ-\DN܋cNEg]#my7)MCZe8n^T6]{.mhm]K()WVtl`Ծ}Dh;n1)#S{Q Fߎ/v9wMi)JNAcf惕Eb괝dÈulrTtJPd@jmDq ~j=CBT*Q=^@.g$|c95q3vYR$-ЉNPj!DjSSk} 6 ;靖Tr{\;e5)nfX؁ui6im-#P%IY'ʫ[-Mj@i4GF_Hq(礆mEA)ʶ#qc'2 ^x U0+RH>9;uQ%拺qG?R3K}tIPzp ')ǞnJy JN1GX۴ -#*SyʰqNiJy>/g!dl2;d^܊tQ GөGzi+/f=s-)Tk*9% ]l.|=>i[)֙Mځ' ugo Ĭ)SJ%+yOf$B^_-2#u)9} P 4\^~2Gi@aJް$x#u2[^%ZXj :Bv)JyZT![J?jZZqz\ZРs6XD_!,6i I8V;>Ul=82؜,'f8 T *b}mBx綧buX[U9t0Ԝ(of+ewD>&vc #1ŒzVR2k=Xd vUQx?&#-0|u~1N͜0ZAljc!$IʒK[e#I88usS}}*GȚ)}* s5F&0W.Д°Ѐq,ʌyۣHHۑ<{=j@w8fxHIqo62j9˕bƺPr4yIuzm$is [[}{!,PhmjO2VጃxkTmHh)J96=Pu˧B*ĺЀ[i\mz%C^ygOiz̀VIarvNx84/B]2: -!ܑ("]v%]e{|dsmtnG]4y>Dhu'%-//r# oF1(wh* JܱcNȹ%jK%i@h+me@7߻];}iu (82SϽ@zGic) j'z\0" 0 ,FwdQ .u8!-ώW)+GS- uNIt˩} @J(a8ΰ!T| =T6BDyoN*2(XwᛣX}Ȁ<5P9_E=5w{-)e6@{}NEBR|cGK3IB;՜E-t+rFhRRڐ Ps4洹u$w9ׂlq!!8Rqk2hGxWjzH0S|ksy4:] I#N3΄5TffuaJ$]4KL=!„឴Q$ #{*ϙx`18劆]Y8mM d=UPyNjGMNFE1%L4%$$$IZHRT{Ip_L{$]!wPbcy!*mj SzGINq\iz:|T֖H'Q=Uq8ͱ2P뮧Qsb0wVѺ͹K4 Z2Ar+BdžH 'PP%9 z=.2%; lj9JIwž1tQ*)Q*ǎ sn6MRHOꯒ3,WxMiˑvìTzo|9:,8K+L7(FP Adr5Sn~7 %.amFA/)#+O^^͕7} 6q|sZݶ#cca;9Q{iL:HJ)R5bsQiT9xkN s*#R$>p~j1_iw57!KZT!G+P:8jp- ѡC)>xzqHbdL!JuyޟԦ.G[Sώ(8ӈ$䅤=5<0a=5K]Qev@<<{iobR }Gh 5k:Ϯ>8|RwHp SRHGw'zIi]YW>urҖqc5K9\9Pߟ/ zSdprUE/DDi|H}Tbe  Zg=k(+#=N}Ra$yi[2;%C VGY;OI(#{JQ#$|8F։ӡ@+H')$ *cjq l(,ual }TJt탎xԻk]XEu/!kK=jI*N~/dcl>4cK ^3sT}/tń |vr589^TFv2<}bJsݚJLezL6BOm8 :R`V14iikȀцFH{!I%(lsmJOZʆq|?띭“ }Wj HJG#2om!0HOXr}zXə+2^q JJJFs]¢ihPH;aOJS7I,$\jmh@gEBT}ӥBKxA:v'4We!XZit#>RdNhȪݥ)Ji"!Da dΣSWZٷ>) JHѧSzM6A`$d:T}bq2j8FIߝ K-zs,xwpPwwe>N{H匦89zo\|%yWlF cuQwK?kR[$34 )Ī"8Ri<|EE7yi zYmN*eZL-<3pmH @Wkϯ11RZKBͶQEL((( ((( z ?GoFN{ͱu9I忕w'HK)R6%4$5Ɇ5nZ޷5NPH۞fWo>Z\ȗ~-mfNAENb}2#ɘ9Y(sJ#u)*:N÷;VP;,$\SHYp5&fnWSNǎ -IQ9+dT&Y%fDbNlt- ^ 6#ڄyŜc'H#<+W:jhр+i(tA;a9w 9}SV׵*u'8$o*SRQh"ti(Ry!v[H\dih$0`vR%8yZxN҈NGbr ;rJ߼wny{\2_q8J8m8BcNvQ&^:z$! 2nD;7Hw8?[cZu#d"R;yJFH8Xe:AJ q/*Xv?)TT2T,ih6\%]bb>I; =-0CKkCr- 2vdGv&VTө8$aY`uw5-J & &Ep[R Q5b$KyV5g!u8H=>iFvLl)m$69ګI6m\58SKiħQBO ]ԵV9RkʠHs+K IIs0]!=1Gxf7ih2ְ(JäO~ *GEr#db,R҄䬸bTZԠ$vRm@w} >یCVڮ)M'a ,O:[)e.ő\Rp*A08;kƂJI-L9ֻ=.Ư փÄ76vhMYJ`5+mN& 0U*n 2S'c:R<@)Ϗ:@D\ҧ$yՌzu. Yҭ,_ yEJ 鑮<@GVdly7`PMlу,{Nn&UvŦfR +4nh2[j޽n t05 ޭ? Gvto@9%SV!S!*I9.&ib;<}GvT_pz{_T)]L{PTiNN{dvtlw"|(D-XryE(q*|4ښt8~4`0UGh7B4{Q`wƣ4ZZէ[D T2K$% TRxI;aR< ]1 -u[Yc2[&0/sBq[SHeo`L(e H^"!׺Uwָ UU `ԏ;)*匍cr+ d jL(JNN pS7p$|zfYFWPt o-L=ql/@‰h'Ni$aPFBpHpwj74CyRq鷙f-޹u<ybt)jnG\sG[qe)xJR.lJ/McJs̲|K`ۏU+DUJST9Vp̅ T-d,y^=Ƭ>3nILvRR o"xˈ CS)IQ }c¢sDl$7%*Qp!2$?l[o[U%9L0f8*%Mp9*芞4) վ#jB՜sj+RNH7/]'${jCW, "GJJXQXSuqc7iTd7胕)ƃ6ؤD jBKJV)-\Ysu ۙ#$F6F!1hG l}5"t(QNXΡH4Ԇ[j*ӊ$`jS8m閔hQγmaZڐSw۔lrxmZL-!M6) lwR;vKj@鯇%"IXl(Ύ~?9{~QveNɷQE2!EPQ@QEQEEPQ@T_U˗mm)cHunNvBb#5&"RFT㰔s+_$jYHV;\ZS3gԖ gʲWR4RI РT;\fBijtpr89s *JzH mIv8L}:pǗ"}U/{nܵe- 9'9ǨiMi̹FK?î귪q)el228;,˸yƥGWrt0Qi"IJ;J.:UWM~r'm `?T9*e ȎУ;JU;ss<):VzƣFoq([mYYֲ<|3ϗ 7fub]wpv32![p/ V~7~yZ.8c#BcNۑ5^ [Ikљ*8Μmqv7KBYJZ-%8u3sp;r%ɲJuz5R3F ޡ;7*!** Rh9es:2*V1Uݕ/x@F yr#M8⫑2:0B%Gc0)ŞRn[${MKsϖý0O\;C^춤>V2>LMwŴԦKi)*'C)<>iۍyE0ûg:7o0E.IX-:A;ž3&mm)*%#lIM-L&,\~ ʜi•ՁIn/ͳz#msIܨN7_}r>mp1s /Fc $a#ʛ!JBrrRBS8=܇}vR̼!;;ܩq,)O<5#%(s >Gš_luFJPדah%Cqk͛tu.2PRBBxߘ|ꤖK{[}9w$ gFP)9ԣdVFuO [9,or,rV*8PQ#ױp s]l\=%FHy 7Rnh # 3m8;e~e_f^eRԧKZV|H48]?apuB U؎ucqGqKRcLdZXu.549F+nCɻĊK)K@% $Wd!); m:#dt KO>cH vz:[+Rn+@Yqy!'8/ޝosٶ=yJBc' Zv]RSe\jrcSD =` ]ZV>rT(ߙez}xD ;mEjjhu*Ԗ?6}4qjw)yeF9#Q4j h4ʣR0FTAϺoAQR7܁IT'~uKFSKVA53ù6_ R) `㗻4`ղl;iZSHCxFu7hIpp)mN-޽-֢y;Ou'q*:V5ڕ#YC; ׶D74APSɴiB]냤IU&}ѥa`JG fHȎl#`yӡ(civԢ9q_2!G+!$B $xR i!* kiA%; I,p_X1q,kܐH ou`PPJ0 }la凨ˑ3Rd =bH[./+k |qV RfS:\ZԠ7V+Z95Ǘi%:V5)WwyMPBRH*3NVD`{T9+-J | Ğ*-"ql8JNOO3^::JW#B7Sg == <Y=nu#8N]% OPW6]]^mD[ޅJR\$<<\G,m٭ηDy+?b R|9ƣb-< He`oF+ZeI;k.Vlr>6; v\oѕ.Ci:ث8v~JOXV )Br"J#bAk1 bQ"U~*=P%9ޅm 6ߝHUM(PzRlUi<2 qlJeԮ8@g )%u߿µ:Zʂpy{Ra&2c@6 `~J-jWfг @ySunO!ކҕ~(z1Q.iȍ! !?IBRm)BVO?.om.oThRJ<>[ K2 >icXA\iԍ;9V ȎַP; 7sg9d2]KQ[F:Уs#o-M#坴4(M9/KO):GN=›k!IVr ӊEy O:"֝bV2Ĕ}jܥn@[k'c ?meyW. !u eGnP\C+m\6yΆƔ$TFuBHv82^>?* >θyO(a ZyRXҖ-ZT)8ǿ]ڒzGONVҮ{;~{Stuim̂}}vN;0*G( (((( ( E4]B&z5[ $QG(XP LJ[+#TUi-rpf4X:ΩZRRB}BIoeX10"B\qWBre;5'`9Ԯ3JIqDx':㵵G{E} NF#G[Y+]:a/X2UT!g)ݦֻm'9f]c͹$ LrTUXUqymwk# HqNN;/# k* `娧?O)M|A>G אJ@@`TTq-qp5AՒT-6Y䓚[n!fGlʊB.IB_QJ:pPm;r*ڔĉ9*HSJH#eK\ʝFdʋid3- <5ylq+:SRHKm?ϒ~)և L+AC? 'lF̈.{Ȩ󔯌r,=޿A=%Rɤ/ ZwRTBGҋs7Hm)g1Ev-ʐTvwu'Rsld~fg&d8ӎe'm'{{-6JgʬGMl)dso*|**hXޒWD+8F >1ZT.ĕ5 .gԵ=I{XR@@QRqP PC'wyIr:ckGH0 '⓼JG;d{8!ᧆ`V^j$}&J-Hi {MfJ 2Clyx׊T'-6RT OZ0yZ܆R+-j q:m䳤5 29RqqevN\jds6nDHҮ  TZN)Hҭ)ŲT ea Gm_֕%BsJ*!( JN[(%Z$~J5)տd˟"KwZ\)Գآ5 ㄵ%+%Iޣ\;8a48SmΖ[N-YoRqQPVl NqOH y #*i$-:yN-'bȦՅJB2܌CIyЭ* "r(뒄'GNN yྦ#=-9*nHqJKi<9Ҷ6sQsq+)ӑL8ۨJJ~6䕈s{&: zGŭLGf-"V &f}?9.>\Vn= { $\>ʝKZ0 VG,BG8Ns-#XZdv)=`IR5}ؚX\{ksNdV)@ߞƘx*-%, :*ut-n3B֜NsꨧqCP Byn,m9:rIIr}M8ӕ FeNi&,%+-:ms%O))*Ndck]g\ѹ$yniՎ(lmW+y_~Q?95!) uhjluO[z;-ͷpq^CͷpFG=䎊l _T``26'<ø> VOR.Tj J Sw v) րwR1:0 4aCtgO(.p-?cx/zES_օ 9>s) bD teIR:4ZdOq K2Q u7y% a\ƓQ>g ể/j GpHSg[p[L u +*82N7^(}eaFiy[L_ iLJ?]kőݸz`:GRAd6$׫uLNL;M.ՂKdr,TZrk1m6VO9-J‘i<ȥB]h̔,~pR⋍-$`{Vž-S$Orycbsq{Z.u _7=1&.ujNU\Ghj즜!iB܌IS~'ʡ^2sRZo)T4Ny\FhM7q#+†H Gʕ:)Vyc⁖ܞg ieHNH.JDU$j2r.P4F/ԕJeۮiN)I0q]G %<ʟ.Adp`r'VI$~\LHg)JAߖ{L44' 3c%tq `:C`x`.6vڧ#rK['ӎ` ω5Ekɤ|IܕNzTEi8mҕ6F!~Hں/ %ҝ^|u:`À'׍1ꮴ|u3˛QE^VQEQEEPQ@QEQEmH::3q%Q?m\ԹQ"l)|T#ĶvZ<={͂W07ʻs#RVGvGJLIiҒns=W^d:҆Iwf!f!'u$!~[䮩3F!$/ X: O^7W`MT<*zu({4 ŒÊZ<]Jd]~mF2 Ƣ@ Am}gaNS˥&W]BKNU)INI&8B @TqЋ6;JxV^: I< w=D1UHmκ3 a` μJ޹#᷁X5}[,ZZrDdeXH r66b˚SJ`83%`{qPwR? eDVVH#89ڣ]$b;lQc&@ ƹGxlBǸXmSBJOV- iČ|϶ccfz1^2 @e8|ҮAc#' I{#'5=C}IC'q rqGzJhi=-Hq翿辶$&dV*\|6ڜKH-PӜwʘٚ8$)vqiN|,Ӵ1BjPT0sjdbQKo20Y'a*<U<C ()% wI P+'[`!Qp:96g)KS: 9B[J[ 6R %);X]%.óC>T)( $i'RpTrGl*8TylMn;}M()^8c#ʜaW+v;|]!F:eL!Cs<Ǵfnz 814) $:P%e$χ#WuHͰ㩌t V(I U7@r%̡\@Nxi=ʏ*q\F^u*TOGIsNB?jU(M$+T+)]B%2eŗR1皼)K̕clpyp2 YP$(>H +}6=֌m>]G!b2Sn#';{iI4M( `u#=7 HB:qAEXNun@ʹ4uI9y\G}ȸcw!zR3M2q7-7R:L4qF0}#;ǰnлRk^ d|aԾs!Jc\eȷ#`6%$MUٸbCжF|6->P |zR f4!jCGCb-/ʞXgSW{gC`Wo<-ZP( qJ+V!ˈurR}q XWW@bQE,b+FPQ@Q@(( (((( ((ы8|o\nţ،\.#鮖2z'$^uͶ.i+|xUq+m1K\ zq8~ԓRmȥI=M+!b!@Q8,ia Y#TC.*ĉ}E<"MіL50y:j{jin7չaXΠ7]%Gˇ~z'bI6#h0i<<=T园„><)zp.7X801{AM%kTh)inВAIkR`.!˭ĥ ds|32UwjRAI(+;dwc7f2!@(r; qIǫy8`7jJْk.4%X.oa-Ϲ+ Cdq)E,yK zT}A :N4GcPlvPkr#͆X ԡ~C, ~ ǝmaL6T%%cJէ*'3>Z*Ez42[y8qG7qkP%YH'i4\PZz@HҮZo]I"݈R!YAVOwƣNycGTiNb%!Y=uA55s)Y*Z|ơ%.iWg*IҴ9AҠq[8UT|)*llEM2-֢΄aVyK0v Q$hq%%D  )m!+sLh#P!=6FNM[Qz2ZS8BN2I% rSʖ; qwTp(g|K>dR9Y;oL~A!^\7@P\I>4Jki@Xݑ_I f/8=^s+M HЫK))JHBv,Τ6PJt% uy+%^yI ul%c>;cYY!ϸ%r2 3jSQ##ncsݏ_:Dx%pMw`V&b8zF-E9ZylύI=l3rZ $9aݔry^U$k Ԭ/=ղʓ-P`F6 N|+&%QM8n.̀m2RQx,)HQ9*b-MeSҮHZzlGy<"Gnx|zte8 %*ߚP*W1I5ƳJ ZyI-;'(NwV8+;~[W jCdTThտ‰Ŭ~ F8:ukiCNQ)94drdȆD)ivp0A崕ÝNſ#rsUƟT{n5ROZt #␢v;[dn1M_SV [qxb.}߇x_Tc#*B[\&.$Ju;G*тrk،Kq%U˧L#} aXNvӸ J(v6#?=Tguv3h[H+'9Wq{k#YSh+Stݷ\"k [K NFw¥2!球%嗚qmDbت&'Cz=8n!ɺ@*e"C%HdJHwRXiF5TK3k_K!nDF+:IeNgd¶m>ޙ[2:R1 ;YTL֣wOe`ˎ,ҽAOHDa3$N@rbE:!#-=wcǺIZz=MTص8s3:3)%^pgdϬԄ䀱icC·uʋՀd)DӋn%Rw?WSW]+$J)Vq蓩UWlu3z8nz3yP$T5}V2mkYˏv'w-Nr~SJ^jkc`F(aN9fB9O-Ӂ O(3-%ŷޔ)dn)D\Gef)Gq'&\2Piip{NayV;-J2LBq~XƜePSt؈O7qNC}"ݵܮjA܎Ȧ{a!Uʶ{bZ,]ƴ+EY;v/s ڽw*z*Dv,~ùSk;T+Dd {½fO\+&aHqL* Np{Hy}奶IZԣI5̉*}P]gQ($6GaV3WL3E#9.7Zpm Mr*\Xԡ8T5p+ԩ$rMɶAkV)hyEw8yNXʊ4fh;Ac*3X漮:y5hAc*(;EW@QEEPQ@QEQEEP3Ѻ/ϬzwQp7>]!Fi!I2=K( }g\8!⨥R?%V|NgI>Y?כZ, /FS /I80ղ[u@ g٫XyHX=qQ[C ` xTi%NύAIRV̘_mR) ヷ>=nmEp=ygj}MZh#wpWޠ8sHܟ lxS+CRgs,Sԩh/)߸c=W]INBv=ǝ4ˊE1ȁTJ4#~F:F8 !g_~/jFYͲZZX+ Hϰc;cԈHqՎD1*^9!2kH ۊ>()qA/ve$$Vo6AoE[qhЁ>&j=-'E NQsjɥrMxj>綆2 $ĩ 6Sy֋Lc4˒sRs^HԥfI7 O\s͂iB*C ΎK6')XG/^ Hru0slp#v )ZW\֨=>',l#BO X[K +RpMCʴXSq9(FVB% O8jᖱ$C-n-'› WZGr {>U]jDz҇UA؏g-tjK-JIXG-i[coϝ4CQRpe\A%5KRFM?%eomFyoɎG_lJP8޺f3VJԻZ46ր9v$ns志ܔi"Vw*۳J+S#uPBH `%Zk֋y2IwDC{*pxvx\ሁD*ps V/vάItQyMliH_^A*${Zc(NFtuc)oځeŨ|ʩ6噞TiS!1-$+$Y 9J!+qJʀc3<9׳ ڕ@uxݍ$iqfRJB)Ds$l_B4[p #! HoJ[oVnNɐfe7+l_\w// <'SE PҝD 6Kh.!PU<@߶)N6Բ]TbN`\Xb[ ҖPRTp1$aJܝ$⛛ojv?qd~H|oMFy ,[n Ddg~ơ [pSh-J)Ӕw;V4Rԅ'QH9'av)Mqyc< ?=o-l&'JAt}{qYE3-Ǐ^%Ιn{YR 셥^vRWAIWڒ7R^(~i!ƛJ;ՏeH^ dsȐ*Kk^bup×m ʺk`I#Rsʷ’qobloCڟ :SE7݃gM8evǿz0 C0{;U9'xIد͊{eb%'<"MˇNOS.jPI@Wz Â\c2#<qKsʷ 4Tٚ+"vqp: ZnzJ *E,)OV`쐮~tйQkiFLucm>Z]?:TiaI}{YeBeW6FMiq.Ful͖}۽twaTXRm:q<9m=pG:iEJ73Mَ.56G’# \- ZuũN_>;*Dr1H!$jMeآN;[jR+NdrGi 念V VxTMhNN1]lUSlY;LҘ g>x=I'r7$RI$H֊r\huNѝSa :mibPH:e<%F`(!Q˓$)T'Mʅֺ]۶)gvvJ 0ҧ^:I r P- )BC a;k #:yޣNp).5cvm ֺfEm!U rL*Ċ)A8'Z∰eT`t1$%gH;QDKg:Պvxq}*i5%+lǾ'B[m(8$Μ torkLAA'zV4Ÿn&:WHR}vJ1w T6 K ֢J<óJ܍BOR)WZH>Dwz:DhHZԅ(sJV*;iRTllCei?b°|+r$~ 0W_SҹR/J5(P2WwֳM:xrC UxG[2om({;]0${ '$xr=~TԮ]@~JwHBju] U)0"* >R ]"`jT-5*^V-49{ϳ|֛݆JCl9 ̄x=5g5Cw[@NeYJ;ӑ|)(=UXԎh-Js7SoW/NKknJU= oO(lRO"r#.[ZRUԀ'%VJyžZlLT >;k7왞57&-ޒB-eŠ i-dGv_Z6 3yR^U:4BHyCenK-7܂|ʲRV'u:HPB/.tU#U%@sVʒ וFGQ;`0Qָ-vr?\&KEV9=>p}W2"RqH܎[㗉a]ӎ%G<9A[I%I#Κ%J.#{W + ڂqGTd3.op@'akWzжX IĻ`Zxs㭗 do翫XQJ^;J T'xۓTXb,ny)9<}K[T8 }Qפ$5ń}zNHՍ&B"IZF7ړcX$UjXZӊp8 ![ lHR'*3JtHu{VD.uBi3Yu5C&TZJ\*^sSQEoҋn"0ZQkx(1YI26>ut.WogcusOR)pZLJ-A Ho 1V1ua1u8_[# AVDiIN̫&u|`U$ڒD$})*ۇj=VL9?1>^f pk&'4dh'Mx3;@v)ˎ6i0}DTISh qt9̴Ĵuǜ-m5ӉeFyqz|JPJv m'(*~ܫ(aSü١vY+kc8S.Pn cٚ\&kj7uj܆GX+#10=^`sr<Z\ٙ;ltFE5ZKv9/,?dФ_r[8 z^R{njQRAFkGY7B7c+7י1α.Voȯ hkΪlQWbƱ. ) Xe:Ld/eY^+u S/S*G+QEQEEPQ@QEQEEP?bzө}sx'&}ޤJL E?m_@WK= \[ Yn%Ϋ0+ݦC,KJmiw5$6Ǻ[Y\kBH*'Tᶘl1!-:?J؏jmO<9rۊ'mđYLtgߕ"^pf eJzIc ?#Q\[ n3V+HfWB*t5$N TGv KK!*R|OW4 mIR;}X;U]-G:֢ ;@VkltH@BT;gi#˕I#GRcyoSod+Q Q8#~do49lifLbg~UHI7I#8"NԀ(?jF}qF(= !j P?kfW<,EK JJ#V9Zꓝ*}.|[6b%}JPZAUL|kR=mӆА>(oqM·ʶV尨6;BV~COev7\Ypmαo-hle ?mꮫC{U K|8tjޱb@\Oi*RF{q8ݻ1%1a*tz*j23:UU|DIA+K $e+Y(Q*2g5]zݜ[ӥ밟xg ^ݹX([o8' ]zoDe  gb 8۟x5,iqܺ&lZCh8y{; ?imalʻr~2~<窉CSYRKb+z R?Qr; X[JBY0:ς Xm9cҷW9.\'_^*Jl`UƫIʀ DbwE:wз yr#;(^icvj.8=[vl~̏}r7D<6mŶEvBšqHxՏnXUnZZʊFsԇGg^CPNiH zUXa_ZN2!ZD-JzIE,\KJvi:I}Dryaryf F )ƍUHBDsqڈϯOGs2ddH>^McuQa8Oh` ZN&x֔D ' PP*]WXSIL5 VguU9rEY]Z` _#irҙ,'W؁WJr@} SPIY6?_!81%E:p7N6"Α:,dA_#tj#keHu֥uN(l@~(p&5)n1sq(d~#P+c6E1 @CTI:E ՎU;{ T1R~#[o*vŽ-J v9#9'Y<)nꜶnc#*zBxۚPc@3P!ƂTut`ΰOETFk;QVeYڙ[KyKkB2 81TFD  N6@dphᡑ3/3Յ - /YӜg+ShCe”QZfo[o'ʓS7kH[h ¬i9.f6w%Юm3JT{8$翻m!W2AʊF6ӱ)='Yq%l3mU HJrTA:J&-HV%IN摁ZCR UڑJ!!%-ED?VUFo $ (ϸBBHȚTކ/-M6_?}F(G>xO ɔ)VFͤ'UuĒyqZ\#V qjVkp($̫'[ V!*weIJJ2䥤{ֵX8ZwYVGhS';پj ҌzIieשmwFg'dAI]!,,xM6]eB1qiA<O}]x2R/-4 3S!9HoQޯ⤤!rc^qKFԟ.m|uż!k}OLxB5ui9 {`dhtJĞS❍K%IW5rK*?X IO߻Tw|7qG N}ƔZ8Ȫ #n&ޅEuBPXCIiPGYQ#IŖJ&vA*Wm<J9WfqJ]pmOwA1%QT]IUEIcQ[|>2FHt6C9HRNrqIl,̵K3eaؒ(q$`oITaEi OOlaV R_RFmojR.в5iJ:It-JnL}mҦ׏h#ȌƽPU%AP:2Ķ&b<Du6;8w|wm8I$=܁:BQ6eY\>/n}vy/]H\w0A`q7]((s@˸R(ӍՎ̰A\#܄*C )o.wE_-.Ixc[Sǎ-2JZX"2*91DqPFgi'lT~_q$L!GԖscB'qW˽[=r?F}/y;QYpb}ebNkDYD]ir;Á:g%X<7h"Lم ,$H7 8P@JvQcD99;*!EPQ@QEQEEPQ@T?U]HHSYO|Ni#QRRdW/etG2< NHi+:>o'RP#~uN.ăn1dCZe TspzYC5=1Z3gZCJl1oL̜qrT]Rm:ifyY- VʐN7Ȭw܁*UG"ku9Ժ˺{!yq-O*)9@qt,/(6r.2@JE#`sˇBvXYSԪ] RPSI;#s;Eԃ3״]y4#y=?x..wG>Պ\T9^RFJOF gΤ񐶈kfWaGb"|"}9~LFiK :TK.Q+Xys4ārun% 'QHVXjXTV xsMlHnR_jp$RykZ[m >XϷl [ZJh2Zjmq%kљoZl3(*IOo'6}uy=X{*2 ŔX lC=Vy?gFJ+BTRBHd sW Ϭb"1%HOF$W% 4{iBLy\P '|;tq 4*R/>VP'Ǘ?\-VNNiE$dˏNTPqqwǙ*̩TN*9 _)Rۏ Z6i0)S_B@g0v)*@9p Х)LQJnvՎ3iyi ) ZH`F;'KqÍ\#|J)RBʲRTF;RXIR@VBy!Zr>AN8ʐhQA'.g SZf|y )P_ SJB@tjǼUƽ :}kdu0'KeY)plsUI"8N },{1ۖYlYQ;.0˪FRUI\y|?đ`[/r#DI[l(lRsGT7QE:mQ^;J ; |%Ei$-a9j Pg8Պڷ:8g*9&$)7d}Ⴣߖ|6H9J‰ +3m=V:۽[Wc6IdYr8ڇm e(g¢kJb,)\-cOxqJItr(Y5dpԢ9MC8GntbMoe J9NP{Kh)-7PRAw'!Ϫ1k!jV2]}wl  (zRR58Nm4eE Β0F+]7bԍg-y;y% @$$'ǝ$;*BTv"(^&w-HBzCQioՠ|aqrHtflx+ԁ(X5e;v =i}%A4J_Wj:;Wv ]ˑR2P1$ )$탔|Ռ&ؖef;#@pDZ,4$dOΆ@LHeM[e )$wXv2V(*lsΝ">!z0}:PӠ'?sA'6N0qt@LM(?lp ʙ.[z2#VP lx{So(5v*C\/!\G ztg@)Q |sĘ@Z!HV\qAnIk89FJWdnRKBþ>oB}!@Qwma!JaX;!;j:Rr8#9|kb ȷ98͹[SmR< RjؐKsQU-|A!ZKq+{2_i$jtPlk \cNe!ĆItw|[3)JCsNu"Z=:zl8 8  YnaYh7q,V[re)kZRv$Բ(1g[ոυIcrHeKAѷ% UݻxǛz5R%Nv=*=vݓmiyzRxTmtC2R5e3 aܐԐTI#ši'$XY kVsG:ݝWfK Ս|siciIm]aIC r*DxͰ\Ru[t3NlL>0cb[P>/kz3îCOK<4@*xO'(;+EV!EPQ@QEQEEPQ@UU)b%׆.t4\ʖ+t/qPPI4r{5JNrm T$88o6qᲒ=>!q%DvPOTmU  JŬ*)K+ִ~cQԙˉuԎ ӶuK+d:̨g+qlZt3Lp#,|cnZ- "#i.)Ȓ A3- $l04E;kw\ۊ+mI ӃG{K` QW4lfa $;{&sHrSE~D%m:NV}ܾ芄mʳ+|݌w{D[o'ylСKzvrVG3m|!G^Zgȶ۔z/N4esѩz)PVr T|VuiC-`gM#aBdRΥ4#zj)^FyAtM!ZC %9ueW Fpg壆A~5R%RA*e#l㿾%GTg^YS-TsjVX"+~i I:IdN|JIcn}u)%#";#~)HҀB|G-CK6FcF V{뎫!܁},`{CLwi)VBtĦd6]am*Č i{KQSʴDUзMzRC(ԬK=2 f vƤz#p'ciJ3RIsdv,piY8pPǴjJYY ;{0)Zޑ1IQСHkS j+m=%cK-'P8*Ӟ^ʐzCH*; s(P Σ䀂B.3}EEQu.x%A*) >tq5,)^¿f;*4}#.):4&m6)NS ̉o'nМ[Mp@N^-蟍;5K@?_i} VItHJ!G-jG{z81SIP$6y>5:I|7݁]*u=g JF:I=:G Gl;>^qIP VF;*bdKnoFϢ$gP9kc0TpR:Fzw؊sYVjͨk×K\9M\K)#?J6fmnH~Z*tg!<*|IIU9 `餲{is{$zM15>uM7Guk}i*jd+'CZ󝶧m-(B3 퀑H&[]X*ޞ$6>.6࿵媢,b))M{#5:Z({*svSq]pzIXpJ@)[++Fr*As7ᎥBvZ$1R S|:Zer88fº Z[)oJTҴr@M՗= zE;u€ (y1Zypd)xyN0M0sHpJp\! |-Ua RN;s?^1CCsjH#+#X./M JSzlmi+2wB~=0*[t>Ak89=P=Ʀ^P[#QᶚHq.(N34yu [n î"==JʛI'}4Jr?HC# =󚲔TE:.@mxH9ܞa?%ou="-YNROIsTi$'r+[PSpIgkzX{faai-@ H]?R¤\uة:\'ۍ'>uCHHGoĜqqS}KA|v*ba dxsU ;I8ttyu1e:J@ _4Yxv4y.HK-e#NyV-z⩷x,-dhPm B{@Hjs)$c+$D;erX j&y߬YI۶qaE쬠+Olgqʆ޳Ȓ뭶T“?%fF8< }-`g z)yc*NcmR;1`$7NM):uH<H(2S:8i}OՑd3pW]WM{ih| skԦOP+Y(( (((()dxa- BR2TwWd57nku0o*[ŦQ ws̞]SRGkNSr/K- IP]Pϊ NvqJJZ)#%9 ?icsS 8:3!Gs3}f -#!!HJ҉ײgD9֘+wLI#Z)YR2}{}I~jTc!Cgq5pvBkC1Gַ|iJ@&y6Wp: a uMdN3̎>gx 8&ޅ()MY$s^is̻)ۤHzKHyOi#`1*,Ҁ fZM)7liCMp3K1QZN0@S:1]sV9!О%MDcc9`zvٮ9.j ,З>6M p-.,m#},CaD:^#V2||:^frV8)%!zoKo!99{5lcѕ†U-?C|-|%mlFBTts#>FZZB) F=쑓0kJEcI=f)꺙&GdJFO}B<6y*NTo6|Am~Ic" .\Hg;ޝ-[ِބ~KNs:>VrĂX=ۚȡm[:J[gnv*{ܚ|K !%2 B3d*ޟNmm:OغáO*ɳ-3!mËQ+ZFr=8ٷb4gߺz7+^SVR4ΜgEr} aqϒOK(uN2 $ÿ13e&cTFWaYNc)WVSrD@BVZ ֔ 5lȵS -o/r'YܙFbDRRwApF|+_1.˸^1p"0!*Q+$r ['ʜ祽;0xM!CCudjw-"Di$J@pyY rt|nmCO2C[~\=ώ\ڵ$ nÈI2))XZRI۳jU2zRL™BKjoVrzrR<,-%0IJHQ ؟b5~l WR5z}RxHfu%S k G O5dnrp9q&tG+`IƤOSy.#6P6>&5eSR3k#1&FTWZJjOA-)^ۇJqN򧞺dh$>1;{pıYXn#kpIGoJ? ؄[(Ь`g/P' :]w%5oB|XWo<2ԶN.M2f[jynPYiN6ΟWǩ/)vHP9T aGq(Pt=nl[-=HQVF(;FXglJ3ήQEtQEEPQ@QEQEEPwAS6vx%+RC H!HW^WJ:ꔌɮ414eX|+38q$X,76@$qQ {Oh6#|~Uc, )Rʊ<1I\(J^.lyz3n.Z5[Xy.N풤K*Q'7ڕ3 (TH՜w 41Mt~VJބ.7):g;vSOW$.,#K#%'#MK’X=_%UﳴJH4}E\-GOž"\%C{I:RQ$r{Ý+@Խ2cKIYF7 ߟǕR1 Kj%OU'4#i,pS֊xEYʌ&gSD鏈zKkuʾdsqw(!\PmzR&>$$#BYNMs'^%mM) h$5H?95}iJZ^)sBJoso]SK,:l4HK?2R!hĝX6"h\`O`)@"*r D`Je'%P߼vƭ㖚u[f*PO(TBV u($oy黲2xEǔF#9ׇխ: AR1U05 %LL(9Ih#c`#^YfV$%?cRBV5` 'YaVz,T?-c:Y8~~0Qڙ>S+Cl}{qo0L5*]߶i~`xl7=,EԞƒ>V_8}B0DGw@œ iA9:!6¬ZJR &u\TdK.%jF;ϺmuW-m)g}6C\ 9Ν-+Wi9X8S&T.$8K-PxeIRK!N;}.ۛ @˖}cC+jB$+J|6r IRTi Zr{ׄd ޢ݂mSqwJRcbJ_χ,XdEm(ԩ{pY{g^{ԥ IKѐ08KnX$QB-G9aE qaGWBduIۖ zB XS8ucpjkK3 ̔Śԗ$2[r|ybể6c˪q;@xڤhx#;%Y1js'/!qē8cu %]Q4ҒV'p< 8t[q2>*@45 $X]#/CSSBΠ> 5Mќ~B }l• gsv҄KA8U+:w"9#νR UDPյ2S98w%6*ck2Ю>Czbً{9 "9aCqLǒ^\SE=XI*1^$oߚBTR0{bcc>jT1BUv\n,a:JGNr)Lm>O4JkZ"8hBOp sܚ +Ķ0d{+yu'!fcAף-[sJ^qie_>{՗=H6ykq@H'2{;uX5"ۅtⴧgU NR=EMJ4ۧ(NNN7>:IDž aЄg]lTtuFs+ νxj}n ADi7 T'vhM՞T؏u]<]\7!?%ZPF 'v慎!Dw0WMR%!YlSlvRn칎%I<yƲSkK6cB HTVlM2#U%T֥)ePFt{$9/HY iTx5fr綄<%l 9:,ՍXqzVYI(!Pir#) KH{j.SJ4yƤ#Poe6d]^^q_%H@QEi4kH'Pq]Foa?Vn9^, 8%!XRN@oHj6 @$g~yKkR@)Pkgr\U+ͩ [nc~yŐf`7նT6;9zB2N@$NpDՑeKO& iʴ?4Uzco+8N~"v!ō)#d WmR:nWi\u->¤8lof>SI#:i=nq %#Ւ=›l*%N={rd8.'#VϴTn6\"6[%;iǿPo ;.]BI#q9p@'aXȕ¤jk$vA獿ƭw}N?hb"r굴 QOǾ.!nԧ%#J(lwSH~[p[eQ)J;N : I)RT矪l]ά ]փ6’bfZ[CeKIΓsS+Bc5gaM- ġvaI<| ]l=ma.]|)?ж['um Y)IA#|6tBRJ/ Hi1+#祍z|rg42TR @d⟞ס:#ۊNPqE )u$z䮋[\eyaG>ҤJJ#!ƥuli(`AbAyw)hC6$dj='x9Q瓱y6+V$diX҇㤴BmHyւ 8s^Gc&l3gz%qCvA>\P+2cE76%- <(+oPԃ{{'XSMkQ?Vӓ̈YΧ.mU[lmVɞv62Tw-7)m{$V;pk|_&#d|w GU5-˨Xƒ,}Evoq[օv9F:~֔1I'q2=iTOFz*=sLהcBAli*% X<Ǎ?Ɋی/>{7}䥷N?W,|Y $Ҁ?%&LqDuJH䰯5#x˛w@ֽZSpj,R d kl^6U\5֤ v2yT¸5o!`G8aGݯV&"*#N앸 :!\PCPG2N6W=q%ؖJ$+=Ě1b]lV S o9An9S O<_xRw{m3v.<@CJ5p6PKեf6Ůi¿H9$9$w[mZRW)UjVHmC׭N$zo!L\JC9{FMB;jASe:[UՂJ<*r]w#'VSjG%TI<Х ʌӟ](H#ʘ0(G rS.ø:8kC*RMrɃkř5,:Iְ߿;WLK|T|1kkV8:zqcu؟Q;j |9zx%Crd>Y]R#ͷ"9rLqw%7!SN[:\LuHpgle#~Ja<[& Unli Ox5I8*qI6L) e*BNMnR!]z~6=ƫ4^ Rp1wdEiVbyɫ3KD닧ŇE.' y <ꟸ!.y`#gRˎHI`n@(1؈Ұx!*Z'úGk6!#i.׉lVo^]銥FOb:('l.NA$[hyYTؔ= x8JXHy^Rw]^;(IvZr ɁNJӕd-Tv\X$O.DrE(_XK'$9[sMyRU#fJ7>% o,aCcs羵CrGڐH|$94bWF([/"*[х;SoFFw皴yu%952,2iPVcνL&̸9+32]X%)NIn&rK*XlAq/jJyMp ԲU$VY-%F iVgmƒvP\ر--%{(矟:w#hJAN*H<)֜@ _p֕Pt:0I>>z^pv19 ~|Ss3ŵ!?YӅe9}?Pjz)2+rCIygqLHiݐc7w#z9mqϾJaGX\4yc R|{LW^Oe $NyShܭӕR7O0x֥2@NNϝJ"Z &CQ lcGg7m(lmݴ܉!hRJr2>(U% -eZGK܂5hMe B&m=G@`%(m*=Dڞ~CmÅ =Ϗ[\Bf ~RiԤNBv|+n8S*P(aI Y|Ȯץ*OgF4[ٷrBLTC,n04n`W\ RIХ9@p]g8s0eZ҇=lX+x'rCL. TC+|Z Ռbqmc}MwUz'~^ia*ΜmR+3Z8-iP[+ 6ՑyC6_WO%H 'Gy#Qep&TXO:Ӄ+*׌Fr5ftlm=ڒcl 9Wԩ'$ocRSIhu:!^5סBof#ZK:e8rRI#ll)h opԜoBP1 d$n2Gp\TfӬ0P3m];r,ͶO"IT90jAы*OH5CkX|t˾#^yt$H c{bpFNyua%ZqyxUr5H A(Z{UH:6k)R;P0-zqHVwklY2e];|r ]E;F'tѴ ָZ Zua$9}c(-.g`|F:pOݸ[(m=K5H#P`9EAѨ]{.)2y  )RHrsxIT\x,qI=|Mp2Tw⭾ .i1ږV|bR ˉ8)7 K:w-'Uw?/e]^`jڬEav=QmXKN}^nz9)$3ʲR܌(jQ8>!WkRFyρ4dsm{%'R9 lv$:[yGaX2;o7N4%JuNSY&miO84HRmH#- 5}ۜ K. ,y=ZK{xL=XVaW ޿])\MJZs_I-薋LKTHl9% H{q}«TvH|Z)_Wk;HF>Y]M6PqRO²wM)en JzAbq>`ar}IIq1MQY\^0A't<.CϤ!IW LB$ %ogV\pjD!I'5\֌[]DbJdBe_$JyHR5 ;{Y p[pkt>CLQ21O1ZzC)8S>+dd,L-xb+!M~\z!:lHԟyB\e!v"wכc%`sc;SZM\w钣ʐF>/,:^+(x!oypk{e )8'RT0jTN6\(q% + RW񓓾KSL*enuZ9m06uF5^Fț)' {&p?϶Žcs/Z6띺,iiRu0u6!{Wv2qM|WflK>9|oª$[Y唫2ieH8Lʃ 䤫#ڪ^pϔV]QgƶZxS\(Hm+Nq*q-?!YWn83&eAM2PD/1z!㌸g}YݓeM47bQqdzoHIX}`~ZԲH$y&.R@.@:Q+,=?Hh և8[pw>;HWk߃b0 943>,qtY}Œ|FW2AzO =k{릫]^EU((( ((( l:V8p*T+2qw=ٟT]cy3XRRB _ ޮ.SVFqiҕ(Վ*?X1w4ЄdĶ\&FI#ΙoӦaO2!OAHƒݩOPm@PGp;A[]jۺ-!  e "6ޫjw".Fsd!j 9tw0KZ6**\1YhHa`Xywթ7ln?hkT+BҬ; STc82Rp޻4%ߞQcjp7予-4jV3F9s>5tDKQӸ lZH?%W5sC6c͖(qI ~ݚCQ7^;=tv\իS(Ge`r^A#9%-ʂZT|: V]$⢉x.?viBH8Ӆ y>hcQJR3wccyRUDFnGh8BHek-_}Md)m]yd}5e%pKhup60N}D~GȌHjQt# m+RT~.ϨQ\'@ o*`N=j;~)Jdm7|Ү}[_tkQˤB1u ;k :!)F\F98<oUO涥aihN29bsH{xWwaÌ0HNQm"eK ZnP$(۵jeN%/)h62OkDc cg ףwfxj]c5.ripIe{uk m,ӅZPX $ǐ~TU47{hzxWI j aW7eA*XARSlrߘ'BIPw:IqbE-NeeqK=v*m9F|F7sMwDdͰ Ԕ6] ϾIIERXU+)E_B&l},sVP dr|xfZvK-FJT=16.B]]T1FޭSt5i4Y+QIj𫫻-})_][F&{ќ΂~]0R@+`E ګ8ln' h]dcEb A |.GO:9V3Al8TK$g#BۑxURnnW l|&A^Il+*by{)(BT l>(|*Ӆ"4HY Ճ)S),±\фn01"IOcMY4rh^BrSw|rA7c9'ĦKx`cʱ l{뮄ܥ>僁cZ\ZO\0}8}i*TrpESbJҔܮ(hJhb G%J}*J˘9,99eZFN4ؐ540;Ý,oF>cK;Sgq'T1,M)I+X 6|4(D+{hANqe k%'N>Ji899䨨kn!Ph'.T wGI&Zuv53ZJ.O5_^ZcnHI 1[}((Sq",N<Jv4,ӰCuԕ{ )+*^h (EPQ@QEQEEPQ@VTaތl(lF~ڹJƒKSh[iH;N;?T9#BA0\v ǰ4 [ixft.: [#D`QV'a_2}-S=}&Ztq.`+ ⠜`̋zڳ"Eq,Y`lq qrJH )pm(ucu d c`dJvd*!!-jQNCe'22|kFВz;J̗ 4%]O[F8O`3Qc ;?gfX†A'p0mZm,Ng'SH)Aʰ3O ϸEuZhHԽ,oCb6Nj*bڲKvE՘QdŎGK !G$'n:r֍LӨR2( c`8gخ1v߳N{S>y r dw3\PCwy^0Thyլ) Βg; ͨj :]PNNtr$zMIf1f`u_aC8NwۻWx*-Bd>eIS+uo#Q$)µy`HJBʒXm::20ߞ[lq'CO N:Y)\YRP+t, r`"C!2LvKKO*"2f3N) 8@.w*t-]\! JZ ^ppV |ۗ!iT83S 5^\xM il9}P :@Pq}6Ah<慺INAJH@ g },8 ˋ)RvɨĆY|1\RɭN[WR| ?=pv38]fu$$- xw88۾N&<8PKzѯJFV[2RkxKMVFg;eN{G>U%<6A; #>*ܭ$m߸Ϸ4w4DI}2 ݐ1k}_6RbuPTt-!j> NN:TSU$B #QI}19Bd!^|vFWKV9Oχ24 g8T*\[s̯KLuknF1ȥC3`^PiP#v"dmH(q|] eΟ&[%xٜg˕y|\e9)=c+' r6:; d-p԰BCkKm*q+o\lVטu.μ[qA$Pb]=pU2ǐC }Zqぞ_]K`"J ?֧Mӧ\ȿ_#$pD)Sm$ dripP Tg桺{DvsvE_v~@UK-GФw1q|c}NąmmO$;(ϙ]ŰnK*Wn9ӒYE0iJBTvO#rx#2nm6=| I<:J;=$z+J,Eo>rjNyRmC) cBBpfnNO }մnN{VcIxRЍJQz9ӂkO<+q|?! $s>'j+'xy[t g)t`ګ'~)trrR]ҿ_;ؗBVs#L7;,xצˑ rq԰\iPVkYՓS*;q C&ܥFbRc<:/pg :|g9S C)Ā@O/asNJl6}eXqM*⤨%x4a;㾴+#<1`:鏨ϣy3 u" =HgRR '~>ebn.eضB9K|Rߟ3ݶТƷf&i 9RS5JY;RW+s,5'vy]a(_"sprX9'E$ iߧZh_r")H |NVwD>LŕڜNI*u: TNu4˹X?5k}Ґr^ꤹL Q VOHPI(Q7Jֺ2`β?A"Cnh>UZlZ+^?hJʜ %#$ߊ!ae*Q>u)X!kXlV" t+k=Pް. wR$>)p$HVIX;%޵T_.;dxuiV՘rVsKV.9!{r; H $/r•yZj|v\5!釒F qJ oS`sZ@)8 ɥV@ l.{jT-ED'9ʱYZv@ o]XI{a#crdʜHHN3gԕ&2Ca,'o|nuiRy![):RvCcNpEd˒3%Ԃ0Ϯ8YS뚺W$Hя;k>'䯦+*%R?@sk-QSEPQ@QEQEEPQ@VTjM`}s />ha>Hں/QGE,'^%tW,5!!}cc}݀k.IIӽ'w"0`- ) ,dӸP R#8 >X֩dgIPO}9".BJ o$gKܷ.Q8LHScb}֐Zt6Icm4hrIH#XO n(#߿zDq3mS ()دvA۟U$Ͽ"jL@ RB@;bYLѠg! g9;|jA}~oė|[lDJHlEy'7K!:vQI=v)_R!ו'Jtځ}9)tʛpˊmj_uHm!zd'+VTXVXOv9;2[kw|G5'kwe!!Nu(!Jq`lFO >ΈdKc,R͉1#R=hwg陭d)3[fRe@ߖTd7 S$2&ry,ZuIVT;M= ˆ(BYQ#Yps!D_qy9R<WjO]8.[x9ɯtijpT6>99Ti廊!C͒֙RVKZ)J@G%1des_QE%ݷv:%(u\G'婿CII>s5@zѷ=@ٗ It i8 @jt}%XSE"s$"{Y 滬g>5lk8Fj[ E8_L7sGdH#>yΩ4NxOqk*W_'ؘ0< @UU''}oN^lu^+FvN⭏YΓCVFXjME6#8>v<:@ >N|OhBU3y)K6巕hSeĐ H$c)埐-r$cVfxt!dˏM:0V|=a"tY@JTwx:>wRו~FziR$q-dRsR>5z3-sʚII3J.qsT'|hYJdI쑐|iDW֣ʳl̆Tqg>I\>dWrU iJtM9i$VgפF#eqąI ZJIʁ?Rȼp#ғ=V pFJGdErh}Oi 0+ .L bpя"*T{gZeiTȊP dRNG]SC$# Je2\mi Jr" itmP<-t|bWp>ʽb3-G ·PsYCO$|BպP?!!j_Q8>V/HRou-H$Rt $hK A+ߐ=N-!U˝=1q% 4ڇ$~+ J[)>SGu5 ?H16R"E4:5-@2G[=VH EgK.2?BPU$:ϑǾuJ ~DrBj8#HKe'|җ6wMd܇rKxJq\F6T‹ԲG4ҹ%d[QI*mk:\z5k8y p:ğǮZ@!O$Esi.^$d?Z( dX>%6ϸ՝qձanڊ\X{E JRm':եGܭA I4sVL]s+&ZJQQ's?8ͮ"܊W39n *@((( ((( HWDB F\iዅ ybChu:Œp]gA%pRap kܚg8^ې 6幬fhЭ-0וNAW'Ri76(G#A#󮎰'lVI'S$R 1(,(HG*d|"`IB4n'K$r۟y5%qW9m=,G!BvXMo\:T|z󧫌{#ԾK/%*Jqu kE{_Ӏ⥡)>QvD∳7&4bR㴤WywbJڔui*R8mDWF-Qn!c<Ƭ3D 6WX!Xlw)>AVE@]k jRFEC KAX vH^uyM )ꔂ1b9\NT5ƏIziR;H.c; T]),X=ƆS[WՄw؝OZ,;>+ "2UFf -v@9$ K\fΊ[Z-Sksr :sd3r8׹*48KQ,@hlRO-U" D铤N$ lwӋP`JJ$r؈:˗&/ë) ~3H Y??^)$vy4˘i ܉`'!*m-Bҥ' 0*2g*ˀzKδY$^}I3"B׎m}#!zR@$( d 2jIn\EĖup*JRg9־v OUњlgHFyD|:<.JMK7oƜpNIm!\6w7ã7oQ%>Rp*I-'qʧ华W۔4ym4AhVHʱs2`gj0nJAX)ZTxgfj.lKuZWYNr<Ϯ] y5%hmE-9Պ8>G3+[> vzlÍzr2 ^yaDr% CkP9w8'L6C0sԝ'T#NGvrW QDu h,%m dl'ڸИXȚ\8Y%kϺ ¹tCk?ЋUxzoKqw.# ˭%*ʏI:CMW$ZW jD;lT$hm߸ύ]!a6"~25Y<;{*{I Z&UoUЙ˘@6iKAVpvf,w&n%Fk&9#4厦+eZ\ #V^ڞJu03|i(^BmS@D/jl .=HNH`=54vWoybcF.YdiHYjNne{ YI5 ~^m8%pG܅nV@0"Ok줓FwR>T$; =\ziiY9CXVwӛ(%"Ro:>ʒCCΡQo K#j#ՍωaO-m5R בYp(gIrﭱ"R\IO<9x Z}P~3Bl!AD>GM!L`u4ҵ' HuDI5}{>+f>[@I ;۠'Vq-_ʢ@^%jsЋ} RS%ZIlw;mn0D>O49**p3I'3\[grF~.3rh@[p6)-~FuD@IEn C+ ysM2.4{,9X+FnV?G(xv 1꿽/Z[V]ۿϕoz,i?p}9+!Jb{9%mQu}|QN9r]J86ZZ;Ii{+Ho Tjjb v;3M7u/Y GR+%tk*at{E[_Lr4>U m$*qpT'8.n:;绕*j #2P#a^ɶՈnl6Ҳ>LPᩨ)RS쥐h:$H)94< ?D'O/)ISĔr>ZS `!aNC~~Ro/K,ʁ?~4%)Xr)#hl5\nOq79Ne(GL2i1‰#͚b40VX|=[+ u#! 'n[|y)+a'r=蒕C|@lŋgWtdiQ[o)|JqɅq IܛqCATԯjv$QEHQ@QEQEEPQ@QESV*(b/4~S\m*v'Z8]iV2-&-,"uZ[֢A# J%spG2`J9oZiҕ =N! ))5wIRp oӥVgB"HÀour5m;Rȋ/t=H*BI|[Ed%bkpAZִ8;:Zk;IE )99ReoƵHoCiYECKF*Oj'( =թiY&-z퀜##xlDž) fR58]: H6+\YE)ZiUѱRʷɤ;ynScIl6iIo)5ȫlnR O!2[C>hХ:w;d_-rJ}6vW=V4v>8՞܋]!}%4n:23d>aJq iX5D?HQ%>)8N2<|;^ێ*;%m,aH=>ڄ}C H4ж R*usQ# @1RC\SgsZTB ޛ5n9rCA*xZNElP02jn>@QOgd!ĸI $a@xmPxhP?lIi$hR# }~"NY?Y\WӭE&A5h5uklʐڊG-:ږ#BaEW.sIKiXMW4iE[oɊ #"tR1}fp%023Jg[OLW{Bt\w:d4O4`H+Zءnnmj,(gE$dX>z^#R&D Ih;#!^`xVsCnj ;_zz<+Z*?v( xQ!XuuEޱ=X8*aQt5!\ o*qt5!YNխ+siac>p;9 LP&E6H_/UӧjL&}hۙLȪp!O?D5%zt5A)TqDTG("F4l/m+r+[^6NsEdX"CZNB*En+Z”#6TiW9dN2Br|č`Տ҆aSF5~YxPqUʽF솘V` ڊ&bCcQXeΜzX{8BKKi2O:RnoSv`3$ $^"WppnDC<Ӡ,cO)j/v4\w>̞;,6zmߑZ <e9B^J zrUǾM!.:p AՌx{GSS*k\RJڀ)L{lZ޼[ztf׫F )>_OCi.-J^A8SR9mjV(\D㞑$j.ETWΟj4 aA 1p=w˅d-5 6礓uƟ3,k-Fӡds]e \q=B뺫4X.S}b*#Y՞CszZG*EUB( (((( (>)}BJ-KaC6O*꿪@$f_3\1ޞe |N客:Po9yna~N>JPYpuXՅ ;./S6@JVȔԗJKIB)ڴ&^66JےsÐO*?zĨ =62\ e * Y ;ηȰ\I-FI}c*#rx/]ZœS8 Ҕ`rN㑏*],gR|Fe+@)g5cJŖH?Q+e#ߝtk[qЂRPu+?'~1I p[זz3;j]3:OkRӬM9.`BLJVtM?h' ,wUQwbj7vBG5*W\]e[q7H|1V ! ‡4毩JTdFJR^ zd Fy6PPs9#qT䄸iJUI[{Zq[N֕Ct$f)NjW#mL_' ${\ؐ8Ҁu8;''`s]NF|sQE}%98YLZb Vh8UaBe2d#SiJsr48⒮˴?—pVVc<[*Q[>X k!NzeIs%ML.HB~*R3񻻱}ST6~JPK{֢(ԛ{m1kd)Mj7 "v--j*Ny %hKJgEpӍlũK!RI p%jm,'I9^XʊCOh!i 씩=RpI?Vڧ !mjB$wy2lCۜdjNVS+i:] SmQ!H:9BW$$)?VzĎ 7J8x$㍨$LWVi IBjJN660Jb+zl]Պ <4|篒HYi<`K=mcM8)TJ#SG diCNp/0]fBXPp}^-mpqUTL^fGo\Y-' I⨯p,-զ ʒU:o%rR^(#lAԧl+*QcsW  Z!h,@N|jNhCͫe$p Z K4D!f F~׬BJv` ӞP[GXQK|Ԛ7 SRnjBxȧ,ٮz'~emJe/ Pr*QN}B-*(CVcsUpF)!sYb[[uOtK$]i S ƛ:2ޡ\`)k⃊ `c33hO[Ե%Ydޫ ha@קp^(D{wUl5Rl G^V(6R5ĵlA A*Nݻ,7#amBq cUE/8vTbl0Gq;URh䘑𒄰zzBƯ<{#¨[F$T~[5%MC,Q[liح`Bv  SZQBC2x8-0XI)NDc8{k=:կKObϱpa"lW)U$cmrjL?Cu>2S;-D**/Dq`gƕ:ؖ\ɒhkB)NW`wxwZm3f?UɈ+=K3fn5(Ϋ>'̂.o +  6}Jv8Yp{B*mTcw{rlG<~hdL7eʓ֬Jp qRBmHy`r*.q#4) # cߊRi:tKXnQ.FJwa& *+dg$oM.*U(yQ |Ckoa%$Yսo=?oķkB Nq yǢҕzߌrU[GL*ҡ޿}mgT³V~CQZVd҅9]ouoCzs$XOjtGI^:䂄l8Ux)jxUI`OY%ē~J$| =gF\vt~Y8d-%#rFsҸ6&JK,[A+!);n<#WUϡK8?b($)?)P; TURʒM!K Z5(U=ԅԴ)C}GApVyZSg8[㴭 qnR.CfշShLc+;RV+EwِRAN+}Mg+N7Zy@wF&hnTu!RUA˶;_JsFp}͓Q+EJZБ՜(CZi#$dVSmHf2FLRyQV_G % #9:FU ԳG>CԴIĦ}u?SŅ62$,( av5l&EUB( (((( (>S L\Cꐐt lq-u_(`drAzDt)::a#>|WJ繊C$2!Jtv@S5BJTpu]I/}h~1OJmrnA ]!p(mp3gN~Tп _SnO":%OoiJӤ(V7u3}e(-!%dۏꭐk_;|.ޜ8 (w ,u8Eғ͔ӗy#Kf*K(嬣I_vڵ(x;W\gHj,%ou!XlMՑ70wmIH{4Yr! % 再eqy3%BOzX-[֧N97 婍>֥$$|[g9׊G ȻJ-XR;d:sZsNpۉ i? V-kʲyVhp)Y;܁["$]{ox dRʒGBlh ˄T~ar<9J ƣ K܎{ȥ֛a)*R 9 YKlt+P!Cls %k9ŁymZ`HOxP'0f̶2du:n**Qږ@~]~rDzX2 8(џj%msfj`u ;sqN8) 00Hǁ?Ay,(FK+Iiӧ9GwRiMZV8sOPRd+D)FJ Ru {[o-Dcƛ-!8 <3Jɪ+MǙI-1ʒIe'K rg%mxSsP "ڿkH%G^)58\ȺCcE%/um~qJ'|(`lLper7( [\uwZTWًԞFxs0 i\m]wɋ7IBqԴ' &1MmuRosyf{R̘2K֊Ӂ>unvߠm)qV5r5tTn L/ڋyw|yUP͖R$#) ljCÎO0]yVHVZ9H8(u܁8%Q[8HKuӀ :z\Ooa+4o75džo BbTkud Ӥϥwȓ+udj:R [{4PA;'BR>7!4WmdqR-/THV nI8:KS "ZvfT׆c6v! Htd7ԍqzIQ{uIoj0Rc,1({8~cvvY!ˉ'$pVO^z/ pLQ&Qԉ.8%aG 1Uׅ,hmFzCB(#r{HV"v̂IJl{TlLh͝-oy2;N ds\Vz9Yt v]XIlu%e]rrUC0q<߭9 ꒴n RR:RcQ =|JCgPGuC nCkؐ9UrL]"2xcn)ZJ@P4A{8hJ0k`ڔt"%.)+#՚g5/l)@bT>/7e}:жz;0l1S*\DXi9Iy#%@[(4Tڐځvvmt{3na캤_a^2v/fORlJԌ`z{V88ܦ2߮[$ŒCD V@eJ)QlM%|ܖR(᭵B3<(J0y}UBXQ:HuOtQou(|`BЧb:rX;Ri@{@Jjrc"4-BV$e'ڜ oUڙBLx4w*ZNBΝ@I H* -KBFiO~B}&#ɮp_w?~B_RwKޠJG]^Op+I(( ((((*|㢉$ L =YX֪i 4TNqT W)O[I´-H}t+ 9)t@P PjTŨ#O<{E^ i)%GVJw~"^ ,u'oސ_)U0Z&>]-'ARR>.|W/hb&L.5c(,u/;aA!$drSCW&2|GJ5JX9⭩\shWվҢݒq^f/NDK8As ,Qrf+Ku+t!a$a[$G#S!ȓ%:RTAyW; )dGd*;yܤ[}#̥eNIPP Xɭ}+Lv(C:]h s'潹K`TY!%CI׏#mʢc,d+@ ͌'+\7<[<)V,CqU[HCj$&cq+ 4RWw\ ۈH92?$yןpd,{>)K  }uag RBT <2n<<ʏ˺(]tvUR<(])pZr#feJJ)ŪԟOp4F2%Ţ+a,eԲA8'*s{leRր5u86h6})anue)c=;viGD5r0P~*Ժ!buDv,ӡ1K̨-<"v&̴EQ*R<Pr|`:E&2QhzQޗ0$m /im{}%Hj5!)Cr{9N䠅F%Q4tFSP!HTbruUQ?-JdѨ.hN>X9l@PTc䏦620 I'b>Y9aBʙi-IJ@Y vDt>.8>E^k\Ċt]a?6j7bRPF`'Vpf,XzTbAUG{[husXXP$a@-8?eQҸ@+ZZ{r<R;rb5)䅶r'}di%{6Lme*'Gq$zE9 !5Z u'I!UGyV;5c_fu$ˊ*Hu^:i3 )`IT@|)sWR=?)?jM=:gR)Qp+3]JöR(XHeH9>_odk7K"ɩ2VukV0}Ɯe5$&8{#;oU[tVՈɒgฅDFA[{}A%*JR Sj㮼ur:S޲;IDL;KIg2^ms<VG,R ؕ(Hm*OZrʥW63' kOLfCmKST'Iޟ!$*ӌjVӤ"2Aۮ6D!_`qKvWm}bKhV2O%Ǻñ .-ع[}YP^^}V͘U(WFw1;%2MV OWQ~7≼Im)IKKP@=܎8犏" l 銐pT2zI5D(A!FO}"PF3s=ĴFu^Dt*H@;gHm=ǤfvKbJt7úVn̙ ultk\\$ Kle@HMdYKeLH,˴VN6ぱE3n2 @qs+W-M7V$()g7doFYBï Ii\y%`$X>Imi̸+Ci$`JR Ht8SoikINNܵcbk4\KM%M1JsB6tBN"ԮC"ڵEIR%8'JP+';{H! d[԰GƢJg=C>ULvΥyfJ+~'K%6pc]%OJBUd~*G!@[iY*Ԭ`wFJޔ )Vc>brX$IY4iJN5n7$:T@2i;6J1C΍ zYJucGwʺ~N:@Hsp1WzxOFF[QZQ@QEQEEPQ@QE[}Q jBkޮPkujQ9|+VJAW+CɔHB1*9!- 2+jg#ӥ%64)!Okh5idږs<<=hl.;(JP3PgO4*P }Ƭ .:Ǣ:EDu|1ԤD*PFR~ @ƋQrqI; h"nl cϷnjZ4$RQ!&IeV;&f"<$*bR )**]|)M VMdED)*-XQNÿS%@E ?9Vypa֧?bxcT]3nR7ܪf(rH6۟&&K剕'|q*v pʮNpͽrRV:Sn+ftd_ 9 Մ_iytfڮ J@[6 ˎilR=N|VF x -I/7#Q;A<Ϻ'5+5 + ?jIlڹN lT[`cO' P)=[R96+uj)$piV4d <2 SFqGHQ{? *"i**eY)!IOM!Pۤ@S aIl$gTw҅p嶱BIxR-ʪW9wBԜʯKr<ؐ`t,㻞ڨ(Ky!BT[vCAZ73Z-FeyիxV] }#lXqM 6x~De)MfTNqHUm3I:ReKcؘ-8hRS_8~[,WЙ’N Jno%C8%RzJJrA)\JĄz4 #H /bV n% eZtr<27  s8X7#\u|vFKiԕ +5=H4N4ܠ!+* *9o)a'IqAVo2N&J.:6Y)22Qb9\&沮` uj8#MpJPHlJϳ)Zu Z4j9d"8ʱW)oZN´)kyO-L'$g`e`MĀ>zg]ZbݎDuP8CG"i:hm|?ƭd2ZƄGFOg^9;(嫉TJ$c+B ەxJ\P8!@皶 겜s- e$S٢kˡVtD8rTUN|bNϾ*-T7RQA!;~R6JTE{`dBTbq6[NU"$]Jm'J%'e ߻=ۇљ,e IY$Gm!@cx;2\eGVt GgUY߂$,uaI䑫qlZf:dnNF@5v2ርKplHl$ tzmh}׀<7}8J*c/(I x- "']3F *r$(-jxZ X 4X>9TĄ%)Ҝ#Uk7kxCA9=VC8*>t2w)x(v>C\ R@r]gR,FQZoPH%D~T| mQiŅvRGdVkN<}gWi[Ewi'!QZ֦J翫4qJI-d;du5$g CAjD9OZKr⧠qNR$o3H`[E(uX =vVBd[~(kRܳ^6*d { amc-4 Ĕ,p;<H`wsĭHk8 ) $ƨBeDsVw(Ի &ܤeM(ّP{\m*’ҎP8>U,=C#I#fO^=T*#)ROH0@HV#zKtv5a-î* o ̷)*XoN|`|+;IRUd$2ku'L]k1'x@v^Y$;F2u)J=%:F=`BxVF;+dcqCWCz!;U$}h@sI><6d@4ȯRֽlヽfXN3nIjPRr'|85(d5hPRKZ4g 9;$]RUէPlxfOk 32KWq{Ẽǁ)R֍m%k)XNXӨq]l”JAHR^PN~7RQe;zo $ uZ|!9Ђ^uBMpF QgZ՚^5gt/vtYX#V+5RJT2h9Oy#ºvG'ޫ֨H't4Dn8[c >@kZT\ہlH?lumW6S}b$Y{>[d%ZV 55 -Qiiqv| J2=6'S l DnFQĭ,$+s~Jpۅ5[α */$vӂgI>*t.u (2|氕B]l,ǘsm$Dg<U >8bLԶF{J75+[\oHiS㺭)mK"%c}cݣ ÔSaՅ|{\#Sw:PƔ%SkwcV݉[4΀iA#2q }SxFJ*2Uwk̨-5<2@. ]6 P $a#rO }t±V"p48dZ5"O qBju4Rp ( JQ88 8Rnux[p807wGq6G^I/}$Jdže":áXk  ;wu:v=Jq ʴ%!QIH kc4H\n̺|aԡr,s9V 8 m+HP -;ɜd5U1IDRtZB}$Ӌi,(t`{VfB҂ -v$ԕ9Gc^FmXZ]O: t[HbBRRi"6Qot;>gu 9 /Un7 s!TR:48ǸIaYC{TGK$uIi[)(R)ԌcVgOFz -X%AU*BXX^IMo%! JHÜR$iJ$Φfɴ.u23>i=yTfdmI\BMowm-~N8\~à$aX#wԢCgtFP/sDžjH氐;i.|-vld*u[ u|xR$ͽG: Z1̥Jd`ꬆxc$n4V d8)2 $dh TJ1)B=j`qU˳*I$ h*Ե|E[Gu,g5RA p;|I53yL7ѓ{fGXW±K^.]j#'2HWkd s|eꭩ jJyTn7ȶ1'%cRAg,,Ĥ6x )#J P;3$ KIIH>XfZq**ǮӜ䒟Wpd$BIg{GeEY1uZWdy֠%< !`}@ysX8 ,WbdD0=`FO<fPQry ) ۑ8'ZChWh{wԻ*bnC'9'VRa!I9?u(Sg@W#/ʨ%NY5D 7sԁvuGxL14'Ս>ݲk%o=BF H>JJA)P^N5wdmY |O[`\OB앍`)3j܂^EQAš !c{+<6ڂ{e$iS)R0[RIZÏ&6B54grtiweq*u!ox%r*z8%V %>sqT\[8Es K)RLj;r6oTQ)-h+'ϗ-QYqLR:Nr\QpfMCVۍ+c{F#U%e!JRpH#&$(+q^,jJHr7* Ius~ :~y<ۑܚξ)vBP[bX mrPIdwUVSO*x{YŒN*gA]yI>#*5usˌ; \aKkFw۵ȍ񱨽6n\.ZmXK׌ddjA㊓S+~U ӣcǭ⮐1֏=0MnA-@mrӹweC@2ԘJ47#89vΫ 3%&~DR4΍E lEVEHa G} چys6?<z-xwxv4SO$NFUWfj)QY=M DM4Rqp%Ώ[ws92:  wۑ27]zЦI8օ^OfO>&6!K?x'oī}k{PJQQ3Lt$%%C}>;ĦVњnnm:5c8u/ԫ;%nӪōJ@'R5Ns-,HR{JxI:BA+H-'0~X+B?be! yRy^U Ow $^z ?ܑEAqVw:)xeKKhRuҖZ@RSH$+~[Uj^j<_fu5c~}(_#T+#V>,~( ǁiMĶ%Rf6Aj?{L$U)7%$(`oΦʶ*ϣ3paV?bX{Nw)∌P?Ij7.| :SrR31@*bPK5ZamȪXtxU ߏஆT8@WN8'qT$V >g79tN}-nP+%Ĉl6F?h+ gp/ SC'qHulAØ]?rKBEdi)ee>-N< \W+o3ZP ǫd%lWio #Po5 )J} dR%!JI$o˝t-N2y<. o"|Gb9~M!D-8^Z"=z\[Syr5moID1?[ a: -?6$)XIyTP3ui,\KA+Q) XHs$}BFqGQxEnG(Az#^k'(#Opm3M!2mCq5%R6[ФlZ(I,s޺Ci%ˆ)gĘ[jAۤwӵG u#6DBG5 `# #(KWĽuyW0)TH nGQXH# Ry  4\ 2S# +=AYo*zg1{9 [75**Ju+ݽix4:Rt'גyFR|A}<)sMJHnkAIk +՚[AX!ƏiH?VB?AcoGռ󍎠qZRJ q#1A9IqKx(o *Zޛ#@l0{)2H@H.|OJ-Rd! qilvd 8m1rLV,›ZkZ\C S9S%n:TAclKWrRmiғ2GrnWXZpВج% `THrhj_c-? 贲5!IvSV5Ѡme#n~J5m&XMbEweMf.jjy qFB:1G2N=ygq좈 83uGv\)-ާM[$b[I60~*fD0FQ=GYkpSvzyʴ35bMם1?O[wfl'v4iy8Q ;wt0O\f1#{(ue%ȷJ&G9?Mbհ'>.{sU^8ܒF:;,qd" Kܜ*'8]:^+qKJ sMwNj\ex(TEZV Sz^}Z<(PFu$+#$Y#whA{cJkGkxw3&¦\$)' `qO:D[%Mm\n1@qрTz8!Υ 5y]2t,y?MkU5jWlLāCgK#p'p|Mlt68I.p6@p8˩ƑCǨmoBKS1Taۑ܂Ǿ7i-s32-+9kIʻR z`h/g/)63ޏi>h$;W O X"V`Hqʣ1%' ?̍A۟ޏ%qBb6$b X#g']8 qF+JPTJ R) NVXw/UʥGP[y7aگpʁT$Erڹˊ\!:ZH-RJ9(rջz"kCR_ ZP SddOJR퓐 JB@"ujc+sxmżԐۮ`߿qYYV3S'%L*À] )ߩ>Ib$! e:>}rg`=!n K5%eRs\Tz8dLϵ_i&#+R #Tf(Y2m"BzqgKF1|ߜ5:!_SWoU,kWLwK? "4iVQ#t|FӁ$"rK@]MX ! aXMwW]/w! 8MƓ58yBIV7'NK'Zzվ[Բ􂄜d`nk%h3c0rF_$QzPv+h>*64$$ϨT _nQ"8җm 26Ϟj;[X:M4]q #*RĚ(Am}lo̐-2yȚlmNw[.8Rɥڙz3rP-I> 38/ %jIz;'brۚ)ƄBF!1e237ߞFƬKqmXHk[@PR BN++#zl yWnk &;=tcNqV=fذhK*O`X/qRP},ylq%Y^-m6nGVR[1iuɫ R{*mwRovGecUSօ)Üzt%,&[ 2}m[(FKB7J2UG2_RGYHUĉfjy W]%RQu7*Srܱ"!rN\q*ղT>4>zƆ_LąV*Ŷӭ*N2X jS #u>:wEE2HBM:BG4z3дC|4 >LI qH,Xfµ;wuZRA%Y2{Dܹ=!|Q$6<2w84ubDK@&cl(0Q9*;}JG!ƵI^$eÑJ#UTenBkRXF0?j<~KZ]m+o[( X'dgljy$7)%Ipe8r*MKjN H߲[<䮼bBCJ=Ǻ)F[-1֡[m\xkN֣}0KoS%)}#cT=Iȱ+g 5Ā94nBqwp7q%2-.`'r FOdk`G p XNN:YSPB lMy8J<ȼ4ef>6刨$SGHΏx>~.u֐Pή oXQn$7zvThq̅ȔRj8'$X gUʟX}?pFN4Od;)F9/J/-Ce׀}v#:v*;G8;BٯѝpQKp *ѩ@i~lp\EjYo(|ޗCAfwyl!a8 7܄*IEh_#MVPEf'pQ:}v+m0!b}aWs/K Rb;+T{mCC-i$⫿RM\"n3jRo)oGp-ܩOؤK|bGtKx Բ:;mWjm=. (XQEQEEPQ@QEQE}s.CjG m*Pn>qM'8V)1m'oY=Y%JO<9#JѺ eLMa9+5w.4\GL֖*9 dViFF1X1$a%#V;T)n2$)4U L6I)HK6)A@YLOKq BnOڜs5}6PI= ^!UņИS&:֠:6N%\F/v(I`>*' owA2u94 PP-RT;i q;'54t!HAX9&2FOgj8;X.:\'$ԐFݒOU96BGn"Q :/bI8e\C|1r{oĕ$%+yyJzlN*.:Z#dB]KSbp($"$d {vk[o6K k"@Z䱰)<)F[$#^BJR-C 'DXiEM=ue㌼i:Ϙ/8,[ [|VWҙ2hYPT>0t(?o~l}ƣܦYu+yPljgZ Qu[8PS$1')Rq}%ƹ@HGaH%*'#<1˝vQ"=ЃRYlckL$붮,eu2sysވ.jl,g;}*-IR=țVBpúū?a--$ uda<`napߒ[֦@RNN;UЭ奔pd ƛK-!(Kx(%@6TJ1dפN*Qc=STRFrP†;>4'O×+ʎZRp+kۉ~jӝw'zXD(RLB`PJ/E[os\\9e+BjȟCB\863֒ "yg|Rtk^.* q*WFvE# ݮx?Qr̃:VբEua2.FR47 [z-Ť0ZjXQCiIQ’uvDQwG wuLNV;j$+qXALQrѭT.q` IIxåܸ6I^a RFAd5 d9V*ByVxZkc6*.۽ף C{ &(A#; Ml.p!eI%JU3#|jfž3}L g P 4$ IRm0´Jxs\(HJH_Ip6*5hZH<(|AUJ`BӲHi9'!t 6N$*NDBgSIGӥDzxӆ |qUxKY '8޲TqD7߹Kl4r!N; w [cRn,IHA;_绾˳Zֶ~մg`STQ\ȱqa\4SZ9è? 'VIXJoaaZU&vB~֗1Go'.>l' ]Ww*yk!iTlG#Vӥi'p&n"4 e4էI=NMKHP%h*ul)LCyNBBHӃW(O̦NQa9*c^i#3U$3-iSsN`'=I5icªicH UQ?;C]#Q=h*2nnDyPN9i*Pv4d6( -d&R-| a{Xa 6WT,a$qBά %9~AR-4$m85!)#X4zQd%;RUԽU *'i\= Y_%%6[uRWtymc1V\-%INBt*:-UTTZl1krQ-6G6 Q RV#~HHЗT}ᚭָz""J$yJJ^Q -rw*ntْe(Rˉ GO7W"qz2\ ZdCH_3l)CW]eAI Wa0G<;?r`ZHlGU*U#n˜1:- l=^.7)눛ր:QX5t1bsm#Ryqu!.$` ǻ_-1/iJJu nU  q#6=>G]pI9 NGK HJS5}x}鰮A!n5 l\sl!'r2{DVĄnl'drq㥹~+Bpws5iX0.Ra$J'VIg;|B~9ؒF:v#?ydhh,PS Rxui($2I=Ap=e%>u$'J m``Zo[Dt:# \$t 9T6q+1˅*ye.<$ed큟:o9)>Rpmic~ۺا3*rb[)mN-n/H$nBtFFAְ  W_L+]YpiraZ\fA(ߚGl;T=՝u*'cco,Hm"ww3THd4fEy[u+r2 dwH8% c-<L K$DG‹$-2i H8'۟NFz0ng̳sW-5ECímXe@$n3 ;SNbK.TZm]$#% G|&-od1FΨ Ï {p3򩄫<8)-3*d4m%'js~XnirP1dRBy`VJ] ڜy ֹ vm*rL4ٗrT$k9)G/:eڛg']J ֖RYNձ(\h6i_6hZTKiUBmqࠬ% lR@7SӋ`\ƅ&Sߘ4 m0[g ub#+\J@ P'| `\[Q0I;stMs_E*Vds(gwmIjJu<مQV (((( ((ODZՏ h5 j#pTUסJgZ>UOwL @ڎ8gu)Xa0n]9d)eNeDgF*[C:šC)$Vycسؕg+~JFw:2!ırtX+d,!'mD>[TUe(o^]Z F,mcN :u#U3.c@S4,5dm(\G2SqfH۟)~l/T fO*U'v|Lr{J\20@<өBkΣ{/N7O.ݧ& WKmGy^N],|K 7 װ0 O⊥CinJO3zrs$yr Us=0YBҗ@gplG RRʐS00RO T&uYr<崥NJ)={NWjZ_ou(}ל ;4euع0VqCV{*cOCFr]R 8%" Mqǹ6YTy$`s(mVX|.;ʘTɍ(ZH)uK' XRt"HVm")Jr0Vޤ.D)0 S DqB@98Q8WR$FPSQTQ3e3b楹%PCeh욞^Xa duICXB88@-D^3uLJ/2Jy^˟>t"8yPlh۱ն9ҽ2<+֎*1yU$5rJmN,uʟ. xTDŽ!vid ROI)ڭom!8:h::ψZg5np³Zj}<ހ°0~KpqT~ߞ='@1w6}{=CneN@QӱF񓑵%!!NSD?F4-#d=818]wKc{vIJ 8B5 N Jbj^}ޢ,<(( Yo;C9RIcLVXR-;;yVH=YqĨ6FJ2{NJķRJK6J;+JӨϖإ$Ւrv|jm+xYRV% Ogǘ'I.)+N߀vۻz#~:R Q

    OiԫF%m{݌oN!ٮ8lF@FڹaʀH|"TӚds#:Hp|+DZ/GKՒ x 3u.Ql;PҖڵ @) Ar)[E¡8'VܐoԐ5i)YHRI'Zұȃ Xu9JHV|S3Nrڂ՚T:Qφ<7- l#p1zu#HeJ FGBhg!Y1t#XbA-pFrP}sZ=0?c RO/YڱCSy@ՓR*I2-cΕ[_1RH:1~qIg8d5:>ʢ<99Rb.DbFN/58#dsYbnF%AtƊ K̹`w CZ@o+8iwQ2,@qڑJN`t ښ1SVYsJ̼!H@9;c5jtoV1ov9^T[դ)j}8w n]'ctj(CRE MڝK%.$Q5R㝆+J~@NnLkhn,WP]N^JTO0ͼi[+uĩIA+9'*uELu23p³9pLDIո 9Q̌ 譒y63E:Z(cZtzwHSZh.jd4/>pSOxkJC/QB*߿w*qvI,aҖdc{5GeY;+g*nNP↢2ZqNμSqJNT'li:֔ N$s52PhyY<rF74-Re4y9i°DXw$Pۉ.'W'5ODPuoO}G"e mT|;t3.-Z\|iש 8HhƟ%yʹ7!Mu(cr|{H۸uc\ˋlmeֲZV4dsڸ6Bе:M1?Ŷlpp)XBdRi $^J2m TrO/ k\fʚ]ZP]ʉrN98qTxs,IV7+=>z6Χ6'D%v[e JqGҏR.)[hm:pu/`+/޷) [G NvβB{kJ -8(;r>J%(]fLRʢʚ5#纶v 2.wԝt{feC uZ<Nkx{mc8u菄 3OSv|/Iܸ@hlv>s_7J\ˑ5e!?;|}PKN-0VA9PP8w![vOc: K%A ][Ӣ7PlC1 N#;xUݟ]~+. ë) +k 9޷aq-690.)bTnun:B x7l.c)ʼnJ(Rҷ[r8)([RGZ$]q[d4ޜZn IbLCQnܒ $]ȭŭOYuɵqs)+s9mNwmvMjb-Ժ+`wCœXfEs[^j3<t'EJ]7 DACB4Z#8AŇvB[D[o#e)?> Smd(}9ޜ䦛Znd%ds6PΓq}fZG&AʖHuhN$@H$of |&rp gm#;gޥbOBe婸'$ )W:,9I++(+$TН>g<]W9UŠ((( ((((*ߪ \>'\c/[P1l RǘUB%:E88ҒqXA VUb-NpC8HFFJ6j9pl8ԠI Zxָ - 5ƴˌGi"GTr3 ncc^&+$Ԧtܞd+ƒْJA8’|짻 5N}.99H?I8ǂRKT3)rx 9mD+c;;V?#)Nsw|=JQj+Mxǃ(%X[[_GYch[H%)HQbAw[cJ( -#Wqw.mD{1z]ZwÁ5yJUη`:^KM5_HHR./CJu$mm|ocbcliX)I؟oYJp[~HJaZcm2yϝi%%tfVu$%;9ܩZLgtucN6 w>}uRλCJv#odHj8 4y<"ҖBFߋaD*tބӍ7x A2#&S!+} V޼\XMJm\YQRGG!=S?Z``[gECO6̕w1';+ad_pgGҕ'Rs3ϐ0؈*LwJ#PN{zsZv2Pc)H PQj?,Bj"m *S=ֻ{g n6" 1D-jᜏ%Նsia9`[a+x'bO:o1D *ZRN+b8eu|XS2LJ2س^*Rkj*#'#) %jKŒS;Ւv[<|`aOۦ/*!4 xIϯj[n[N9 RI y{N6(N)KSKPJm]i*$>Tu.,5줟6z7-0+B( RFH#J-&JG^BUsp2sGGtK/ĶC,e@<{$HjnTUiaN:oV '<nTeӘ䒗K`g՜zČmtdtuHmdl|V!Х"2>QL`cH#)Kiz n*T(|7x޺ڎU쑑JyiG~?5&JTAEV0*2^ea" wzAqu$BLɷ@ #8!Y6A<(='@*rNFFRC< Ju$#Z @)p9cʲSM+SǻjG.im)8'Sefdl8ju$#p+[[!(u(8!AG5\čE\dw;M'#zưY9IE]"$O$|ڢut%D!di @dkS)’Fy:03Xq :H cz.mΐW-=KVA]N ~Y݃Z:*:yۨVŒfHsWj3;KYNT#+-1arKS*BR3@$ 6X~+nP"4[r{GO*@)Tc#`0qOR}O,jJOAh&nҶC$r s=R8/{՛\IàB2#Ͼ\V AZPsS]pEjRm* ,H!R·SYʇ93evވOO,Kb N$v=& a$((cl`f1za)*i/7`_ tE1qn֨d' `lI#o=mFI  +z1s\opZVӉ0=lX֨&D%8ҀHG X'ܟnTv%7J(> :p je9S Hh( ;ΤkZHo[&naosZ~r=fց`HyRN ڤ&eMgval`+:Hiispxpۗ 7x'+;`'JJWNYNJ.3/ݬJnǛ 8PP9ωY7|I J.KM>wc=ުfF\b۔>2}IHCQ+U-x58V;@g`N9u9(jG/ͺAl%;BB@(wqO92C+u!ƒIޱY kR@$WЕž{Xs?w8V)N%ho:wf[ArcI+pAJq翖i\]Ėm4p%*$qQZuIJ% iN*#=?Y{\aej oSۊXێoo,Tg1~9|5!$n 3.kt;2;Q46BS{*G'pdiJsJ*W='X6s޲Мʈkw wѣ\i@6ʔv{cU* t >f8\Sm5#2;mkLhh>B\+R '!n KktYB+T؋y$O^ٗ%d8!]Oڍ MJzN>@ylp ETyl[[.1V-j kJ>ϬxHHA~½6oAV>2At*m>YM4ƭHHJGRu}ӊ!JI][7=9qduθR$4'ZAA.H8,*8Jy *VvC!AI[&訥\BGIs%*Xg嬴G[R%#k7R oPF[LPlT rA5=2GDPO;+$Ĕ˔4/^zÿn* Л*WMB\G5nHV?tUOm@vjt!ԶoG@֤}sR^"gN\S;z]=$)*XbRr9>& b?tssJmnh sOp5"pn6C OZics(dzJуFJ rul o?r.eE' w)䋡%vk\hvFo( pqɎč!łVzGxӎuђTYVBG{ɷDi6BZZ):mbWz}0 0nd g{5`ܤKRêYmEY` xyc>;7$9չҦRCm/9Iu4 Zai8s g* )_R 7eƋH<π^ s"k, CJB|$,z=rsH{'e -48IpU#lU(,+MܮBcj[[ wpw?E6_ըHOjZu:I #ߝ8&섏]租[.^]䨇Im@\#QNRyNSJ"6/CIҗ HHS 5o?;ɇ i( Zw[@g=Ԟ%2BFTR4Sn0K@ ܭY;Dm\b"鉇za8TG,jey.U6L1#d0GgV܁!JRΕw9aED'STZZNACMvQˠ{ت|ԭ{y+ dd ϑU8v`-E$: J#<9 "~$K~jԝPIvs Yfepd8%p;A԰RGL5oqL% #'rIN'j\Yn4I8ScmnmIDiQ9Rmrn]Z\(Q[`Ii$.t/&3mJY${=pq.[e95!AM)igg̝mCM*JH)t'm''9n~rʜ19qn;jͷBvVMwB,n1'46\h /qr)ymXq)D<#p)◙-*;}[8rsʚ8DvOj!)VLj>COn+[qHxi[X_V[KHhQC ou .+MxmglhJ\Zu0Tq{OBj l?Nr$)+#b>?-cjlץ$p-K>;G2}UqaⓅ>J@2۷%R祍^YnQvarSiaFd6dF*dCpiШYoT](V0s ${ur_bI-mhHZVNJrO!Z_Od,RmAG8Ryv1Lh8%NGBCcWNpHd}pX nӒK2p61M,].eЭ"y9׬NW!Nz= իK?c$ŗ%ĶrڀK[tLdվt96ڑČZJe8[$G(Q8Ԧ5>s-;}l JqDvS写qZXWqWRK!,dUmb嵒ҰNH9iH e༔ϹM/Xjҁ; $hӚy@TZϱG3Ub BWݹy^aZ#KD9Kg0fs2X>_jDz@%=ZIi씦A8;j';cjLtE*RA΅xwvV%%8ZW\+gBuRE;[;yDMJmk5O::8hX^s9a|d7J mIXJRY >T$*Tbrd^|"< -I)'IV*!Űd) %`K:<0MJxh+u! ^Kj ; y{Q)9mO+y)yɺO:J*Kn,$NsgyҾt=bV% )byr#>cT]˘dմQ;H C; 黊+^R_coN`;xN.[H-Қ2#Q#Sg)sە ``r$w&ЖH|fZ ggۿ«N!iaPQީԥr7^# Fj-%;%.[,)lJAFGvUQ&cqd8$lNl˺-leį-! PICeEk xcUqy7#ZhK-HّYLNTrRM-֨@[3뭲-+sb"/ʛxχGLKk(|%/Fix5^p5T+YI7S:`3>U%|e(% )[nw)Z84ԦIo$)Ec7QpE4͋i%ZaJ)aϸV}ʻ)='9ė0G( hP&_&[7շⶀ+lx*Յg謌iui>I"*,GX}M+]G#!K? BTH`E"0@W%ż'j>,^.V^D%Ïh֕HI9ϟoVRNvcYʹ Aãt4 μ<6?&И.(eH;=#^L7XA>6uB<@D 5]Ɯ%dĿhҐ JNyo\F}Ekdv,.'x?qOR= /VO"FtOnvd7 "K_ykuwV˗MwY~z`zL0B–r^;%.)LLwT` zrHD4#Y8V4e5r[e '<+Mյ!NqҶrNjF䃾;#j! ݄9%8Gx#F0w:t6nVRJ/fҕ FwTW;Υ Q|*ZXڗ7 e$Zn7=Dw Cnn .* #'RsJe@Z2mCmFRUJSn(dqk{KN0-B\SmOzR$y)/ ~W 4iOpy,rHyRc#bKmTJ9YhcE *JSvxsȨ|w.$ve<Ԗ, 'hnmMR$КE@E^W'i-c'Dz~Qw6Vyn!9 @TYVxElTuI1neD$ݱX\.W.05. d9ю}: ߊﬦ D jN2t݂9+#DK=唹nm-vqzEh]*qI:79NvQq|I^އ$25ug vVspdD0Ydˀ(3g$Sr*K].{mʔPJ[ pԮU^.1M iy<))ǷoZ߸qdv e2}ḦKS %%'>sKQ1GD` ++eK͘", e:8+SmIi%)ܕ'Ah+ !2֍]VVJH>Sf 8tYeV35'%ߔˈ=BKޤ,~瘭7U.>LΡ!yTbq'+I8'{"[ўVIqn U2ŏt ߘ8I%#At=ϖgo2΍ jk5l-֜^ih?;mjmxBm%vH~orh5֔UU:*NlOc \dl}֑Kٹ|!=X'l^Uq3]eb|FrA'<ʼI$ާ55#B1| #־īK,̕rQ\9/RIYYRQ+ >U"1Sm1/K)9NkFeS澑.1$iY v#vgHmbB]X^VKvF: 6cն%T5T!#]e^(#-u|QEi@QEEPQ@QEQEEPG`b%ʁd5_e: {]\䮄nηm)&\)2]C-ʆOy8s$Ui膻%3I<JkԸ=kҰ cs祳xfS04- %]hy*卻(YH/%TR iGxmiM IszR'7r_$ h% +;W*haHeQ@sw;ΜBNWqS[Wk.$|STR8F dFV=R񁂍c$Ɣ |8M(eeY>u EoYf5AR. n΂W3NCR{;y%gtN2MebIqp]qԷr)J9zxր!Η[QR VǸwciТr#$r g>8XRKk!@lT1RhE^7R~2{NDǘJMOU?rqVV_̇NöpA;g$A7r\Îέ;svh3kt3ü-w%L`uxv~MaY i:6ݰ{ʒY,r_Jʏ/sU--+%ġmf,LxܝBنe AZ_ݯU!5 Eԣ>=٩wqJrFa'| T$?oWڵ,T{C⣈ZA8V܌D⼴Y|I=$+!C%#nF3T `dul]IJF$cׂjrŊ0\T4.2$`nz܈l̤r;꧵HZNUZԀn`QՒ:-ou̡ԍ[a)i1HX*샜'ouxZp[' BAǬ>s.78:1M(';yT۞TVR6ca3-éB2{HI շ}%)FHLE`ڰFh.Yi2bڒH0B;)RHZnL5%$+2h f> cr| '8CӥRđF)koJL2x}p|)}X:TUsl3sZi9)'ׁ^>ĂXK9.>jDl[Nry!IqiޅrVc)I?5$ꥅEbq5+qo.i=O=u!iIH挟E{5ZTWt#پYIwRZBveME;U*rwh Gvꈮd3i%?dZA8*BA*JG<J~,w;{:wjr{kZR³CRFv川``<rtb ,;uDr=YKKaKRR N1NVW}64RwPkaD? 6vYpw p,d H5*PG2~^j-M[ڒvlJeˠ~ZeG;7rT:RN);JdoI$0=&,~-̒7a)_';o0y,Fi/:% !di:/h 8piTLwB"yw%N1q5³S76\rg~` tܧ%o6 =;RٔXPaǞ+umJ^I$UlDkn|GP\- |T< E^R2ܨ)}!i)k@ <文{&d^S6rz% @JJ9ʎFD+u pNJ̭ƫ; 㙤鵰?Ǻd?IHn3Ql$~tqB-r> S@v:_hF;zK? * I~e)$m[J<1lGXM$=A-bGv MzʢT!)Y,& К)X8W+rR4%qP3a}kUf1o;Z]CDl־/?IgB]LLUlи(Α]`ңeҠ3sc` I}X.mBT+4YJMNۭb?dRq#B8}t<ףaYy& ~xdgL\BD8H~jҡ/XVi!-V»vյ*/߷f[n1ՒknV;8 8a.]jNJҬc8Ν*7*<7n I}8RpI #>ׁͩ܊]f:G2BFp3)dYb8eL\Zm\Hoqf-4䴤cJT72g;"kr ]y|4JSte? SiSa44',: 6lqaqF6q;-ZH*jST#JT{R2$%52aDqGw>ʗo™-)$dξ~{ ߲*I2ZA Q v=ptm. ء[m" \'YBwUA!7,QZQS̩;ymS~n`e1u+I\+:C`G|nd]w>سX.'n#Buw<87Yq/ m)ukR1嚐e,N)\IrƧ>R c= 98:Zm7NM܎AҤ`垚MrM[ 3npHs%)Q)QA ' %j*# \KcSK#%Emߥ#ي}~ԘYB@u*sܨNHߟxۺ%i meIi#ZNNXe,e aR#!IE:S{֮-ҭweܥ. jcY˅[uԥKHԅ1mPֺ-RTW%g84LB1zڰGRt=dj Pj'fnu»> [_ve*q#LJ)P֝q-K6sS;l2Z,wxg>֩nB 8#z8 rԶq RSUu} !Sor= ACՑqiq1we^- [*ZXq@C=k]NECI' RVZ[QS^U|]5rHuJ[FqgaحW+x-M%I@RĖըDN{|#rb?Ω)rYNlIr !idIMg,rHe:A 1U uzbzlnci 8T d*R90q|&VZ18p $a4֛w j*r@U:?Jʾ61\ͶrsH5>LIw*0p3oeu sCv[,ۗ @/ù;[ E; *Ґ(( ((((+;r>gܜTvy>lR1%`ZqDž^U 3,Zqm )*I'pG*垏.7|eoC) V^RN$wVL40JUB~ĕ[8 @Q pլ4^ |`x#qqHn7ˬ6dK]q>ܫ}Wlç䏍!PT+v+K+ ֓V":CN WT11>JD!9 >2{qaqMؠ1,ehp%*?>U7w`{KN%JN0 9gqK Д) 5,N<@LJA8S((VT;#O@iĎ/>&IR: @*$q[QUocKFw}dʈ;|ɷjI0 ZP{%xj/X6z!*8;l6c,֘irnBIW,Vp )NuCSƝGa۲@L\*C!ZNsT\a Fs1[R nsʓNH !a$ v2}HN $dQβR=j¶&α' ve:ҟyqYuĤpZqu^#5ϩ>=ÏI5Q˭ĩ'5#TkeD(I ( `;c J+V}5l-l:@ySarjc8@ B]RH-#[bFrAZ{Jb]%KkB)9\r{Xx69:&W$[j:Z .5%+vK\4sJs^E[N4 | ie, V ^羒Ln:!6N8Z151YI Zrig:[H' vqwmJmE Ћc%!@IJZғܴ$gV X V9s4Sge_;tt:4WNu-Ƹ* (I#H;{a v2Tڞl:]'Uэ+)vt d u3=ωDݫ 0Iv NIrJI|P2'!:IڿYBjEjr"1)DE0y9Sŭ>qͰp7NTI@Vq+OUl2\|7!_V**2XËr~I))Zʓ\vZTt5f&c^XhCճN9Fgvq 5y}b{`o\hju~yg4%cp#{CX=OŶHin/#[gٚfj5)&_^U;) C A?џy5g$c1H}>9o'V|oo2 >nHTg|2/H))W# H:#*ijnظ"#mH981WsEg&biJV3v>;_C_>(@QEEPQ@QEQEEP_PBzIoṮV衠8ߨ>wƯ8r|cg,fb"=|J!]q- 8T;zSm*K/-A'{]vwDcƷu?.1)*/e-T^$ }yUY3Pyd;ѫX PIlJ5V=)j#V cp<ճJԣ++uiJ;H#=;khts-DRb4!A3aw1F1@j+% 8ҥ(ㄤ2v; mD:[L;J} [.HJs' j]vEsͶc.@nZCp03?k$~r磈CJRPs}:'1J&jB1#xm)B)8 j%D F'Vǯ9fn[^R` M=$ߙZjDomJ[PXVV@I[A)n=xZ_0O~byxPH)=J~jj'Lג)i5՟B0 JN:P&{g):&R9iBG2=n@(Gzcc~&>SbR>`#PR1W{;PYIӤ4A9NޓDl~jؘHH¦K䢂J\< 7Ȏ8:A:lk Ae:X zw>"rB0Pw' K,a1q8rI'8oRi*m&Q)bc9+hўWCַ <ŕl d ji08(SmϰGqD  #GcNF[֪M;Ş6.. T{ղ$>*8!":d>Y I,8> sfLGR;$E^RN;w7mbU`U5v$u 9 Z26#ynߎo4>0BbZƣK*Zz#ds1ʭ{Y5\CJAuX }nS lywo[[*P{TFFeucLڴkTeN 9^<u$ A998_Zoq8q[iSjh0`gPOvU϶eZ[IRwIiunԴFPy^_"m2# |yrE:[x%7&֋-uI2EWcJ_zTGڦJB!qEN6>usb0RTiu?q,=*bdždf(ڢ#Vz.K|_MP~bOL8v]ŵG ۘ7pHw/pʞ~tҌ9vw _4f.q-% xShA>]&\vnB}*$( ΍a_ׅb$؉Z<w'Ý}gyOQSABӺ*أ ^NhZu*JJT##שV"cV z=UXP[ &]gjY J'\]$4)繨eB*Xݼ╶εOX J[Wnw^FH񨶶:NIiW/2RԲ0UV9Gz}mְrX1.R~Ȓмˊi 'ڡԷ\$'urJRN9-<,v, dXR!9qT(y9A '*S+V$ӿyR%T@ÅKR:ܝ)@#8$Qlcv۷xm\vu< SJ)P ffQSⓃJ3wSXW2ʺRVΜNrN{ϘG/͗S5[RTK!x'|~V-OTXqP#=sH\nqYʷu!Zt#692 vUwiΖ ]bTNSnKm`')~wRWG%J$s gq6ʪaOqErn ~3Al)^lGwZMst@=TN(.N?kRVľ@zI؜cc쩪8r0bDHL|rDHcЌ|dqD:ѐHIO#I' s?Z>Rp;+!,ȶ➌f\~܇(vK%D(6W-uISg2sR}[MhOPeRc>%Eq 4U HRK+Q*$2sO~9Ԋ ؈Q@TH8jrkC(mM/|;,TcF 뛖J&2_8E&C 9|һ$[[-V WZ mNͶ'I RTTT YAi(9IiC|,zp:k+zOvѨA6%~kyvhJW +$@sN,[4HPI  'rv m4vgo*epdDKj9GZT$^)6k\ƒH}y$z$t uHbJۥcEKIQFY{w䜜drV;$\Gy:VN'jWl |g$4AyCjA(4ưX'OxǗw3ZeխMKd9foBbcs_vB]Z'#+eTXy XBtFd0*Bw+p'G"Nh8{°w]%V۞r[mK~[ x-J#~\{+bajH!aIғݷEaqW(;Hd% `6pA``co<)b/8T[֮Ivۘ=¼SIB'=imI薥XKpZ}u7*e@訸u\9RY'';Ͼrry vSI?6$}U8ꕑ+Ǹ $m rSc)*/onxFVU6QLx[Iɍ1-9kjY: G'q1>jf<2GTyn<ǝi;VԮ&@2ZnssjV[28zJU(c. i9 HҠ}cPtY[ļL+}|bcudH ۞t%gWkqU4)$`ƕ Yލ*KM)HQtְrtQ⭋ ~>_*L8^j|xiXFJ I'm1:uoն1O!~oH-G-F+kIv7X5ԣViUW nɽvuiR#`J9 rVYq!H' >ѽxx'Ԃn=z>564 _]iVS>Tp|nLyMRt+ȟ֭d|G:EoTRрTްygv(tq\d(Ɍ8ɪ枎}u;) IIjy S8HpIʵ_E䡁h}mUn ޲MX_ձ6ȨC2Q-'ޘlϾYV3<ʁlfkե􆌝ѯ#JjOB/xUu̵,)T~g(WRf7vXU>>nXٮLȷ@R8XV i  Kq;]mؤu՜:jBROu2%} rT}dLT 0)d;f#V|Nk4U'!vrc֜)4cʒ}~f#a);7@T#*9RRR{Hhe]瓜N9U$7H!؃?纶,o^C(;ueʫ䶴x0VlKb"GHP ctUxJeBP2AdXjCyI\!(tFJN (U&sz:sq %j#;wW?ts383gx(HQEEPQ@QEQEEPOx< HB>yI\n ߧ|9n3!Au8*'r9 Ɉ2\ia5@lVryTĦ)idsP?jT< Z3X> 7XMTⱨuG;oe> *GXkBAIsI. KqMI[Kj=痍nSUQ)ls#czבCj%G|`~!s\n2d9)Ow_t!4"`S,.$xc֩DXL`jRK* $VmIs(|˪m.&ⴃd94N1/-%-XJ'1DNIW\䅍J) /!9uFdqMNNűa'4<| Z։! imJ;(xM5t 202{T*KP%UĆ yJm`=z)+mZRԤ )pO)Qխ*@A d Dxy׮4$[ $me[cuFZl$-[$ ŌK?q֑6Ď´%Ou.wTKh;qhvix;*ݞ^ج&csYJtaMc#1'Ieު_))W R2s1Zpa~+`-J8R0FĞ{ƧTĖzb˂EķVƝ`mi)sΡq#;n^$;S!!DRݠr@(*=;XxByVVcZSgIExwZ/X۴q5ԉ2T\9RR>xDGmN:jʜ#H?5*)UR?)>F$oݚ-Ɂ-\[kmd|rmQ/!0(y)ZBx5zLeVwY"FF$n+ weӔy!؊KIRj(yv>yl}TZ+k \k&3ΎSB\H!Ky~c!r7{ JVU4Ɏ V1 ]SVU)#WJԓar z9hvs$JnTT8Gb!dYë3 _V[j|AHKOPԜwyz*ӒkJK?kTow\)ӅG$`q›7`N\3*Nwv~&$*/ag$`%g$"9Y&8 I8BH<5xb#4.Bq{[[> Zo\h_mJq[uj̧_:@*\%[I ‡[ÿ#*m|IP#K(4W?o{Mw[oi%D$!Ô<#vou”S>Nkĩ``+ƍ'MޛdZ,G^ cYRe6ZBJ|׏ܸ $\ʳ4O0u.!*ϝ:[oiqnn ,~;YŹ2Jäu3TB桝^TY{e:N>#JҴ^%1NҵH#']簝{}fNQj *ȥ͸i+8(0]),$y c$v9&r Qΐy֗Rs%]"O*L |D7I# ?k=}y۫Fg8vt HsJJ9VO =_:am8BN$`@gjJ-:Ryb:nR48ĴdBeDgRO$ ;ɴ4gH;~i.GSǙ n/$*jM.Bqo{*Ÿl2h 63.VnZrz*9A87$FbBsSkݴIg}%҂ANPN7iIt[Ң@"Lؕ1P 3 rPziGXp/JlLWnjK qiRH0=vDגwqYJE)<9im'HOY)HBA?lyV[# LRѥ$vzāNHm0sLΤ*k$ >U.F?"<#)NΒ%CJTCuxv2g@}Xi8d (w9+Ӵ(d@mN>V ` |*RPX{i٨9JN6Ox|k.˲gw !G.QWGt or[$Eu {nQM?1PP+Q]0Q@QEQEEPQ@QE\Q.)TFT<{U<{*{|3)eki.mi P<8:<+y:+#WrHGRWېج5XԪ?ը-xR"cIH_[Q^rGKXyG+̕+;wrKu9 OZN@r˼Q%*+n89-'$sRW&ޒ$$nH>udlmiցƕa[:OCr}fTґ1DF)mIH7<:a O0@` ]O4ßXݷIz.GYǖR, Nʥ]:Ad5 /rx2\MHwGe:3=Ԛsi]% ߎe}+l4P oVA:i J\""ItBo!(M߹,YI[e6jI'~eR)^D[@>Njvjo 1³|yz[:tI8wpO@&sP-Aԑ[%lmYD#%$T6CV% O/]]/ MdVAbrsTF6;羯ipzSIFsc>^5M+ޓTL(@ZJy4}HPv1:I8ag%;t_Zbt*8o>?uG-ǓR1e-ҢÀck,69/[2j ^T@R _;_O; t,V7QR!9F;tÓ. ԋǘ(^q6φkj3¸Z{?1Q}J~Hl)).c;P$kQ >+7g$+[;)3-~π[mJBȤjJ:G톬t^hM?ye uեEZ4b'H;m̏n:Ij?Mw2ܯuKןF})Z^VIΤg#Kc>'\VX(Wg3ζ28`WH@VdEQɞY\R$JT I )8d|뗶9cKv8ؐNsk[ %Jֹn26\^B}MG3ХRĩ ON8F?ύzC)-= NFHxgcqlrs@RTqeÆ\;T)$M1cky䤲R1y愝8;SUjc{F'өdoY%fzƽ54ow Hpm+:_'7q;5VF;XQ섩\77iOKi '핂5gV'#r~a@w\dt4YմNI?+Ԧ> ؅KP##F~Z`*hynJR-:߻{NtGOR46,z4"J.wь{Fq-s^M~FV~y,q!:*}Ÿ8e{ %!A?(FyT&BV꺕y|QvNIB Mқ)7瑅x5m`*ySQ Sz0~2Uт.!)ҷ2|q}TWS,P5\dzK ZL򦼕%i,FĞxQlȈ;F`G3k8jH-,gSi/K}LԧJ$d㒆GJ-ZqT7jzR>%OpUHGgW.;: }@_N=J:uzpnPMY.ݳPd7==NH:[Ԭunf]%./GIѱMn=:PGqF),B*R)kVPG8)pxjTQV"z]mnd}y\էZO*hr-Cn<;ys|#+{:T%G){/(PʊևP%)5(nj aє-F@٘;7M g ul 1Oq[NwOkt>pKilԓ'GWg7aCC%Cc緬sbmǍn99FM;3Q\X ЎbKwhL9u.> o.W-7G.2P]ڔ;4"v$ RfYq(m(R!)d %!% 81'֟(ʍl:J/p\N1"A֓2<=H"-|UQ7a*sv"d&kI-+Gg_H۹8%snvoT~/{cԞ&7l?o 81dJemIQY)Ͼ\l .H.-ɴcSRZ[gΝqZ)%'b/rei:Y|9#tyͼL[j\ Y|פA;j5$gmc[Ȧϡrk@м{:KҴ$03Mnr:O#*NRw.BS*u83glnie +BVGUIr+kN%X$kKN -ߟiۈ*qͻBU; Xjma"EPFWu28jA:s}]ăMyC>0/f#*ѻBBÀ$ @<߻걧 V3>Zf]F2 '2rug??l;?5)SB2N1: XKNwwkK,R))e(Š(((( ((( t1ѓLdq\zA.)Iʱgh?ѫK?Ү_TX*YL75TT$ddUmII*/zsᦿ'38ٳBJS۩ݞl/(sq]{$ [+ĩ8d$9%ԥdrMtu*B/)RHQ# Rm\d Oriy9)WzxXCny\[OIYq#t%#|ۖP~GsDh{B*OW)GتצQLCRvpr77EW1uUӨ XhJ~ZUU+9#٭uFW:ܤ7uaI<9kTn] !Y~8)Cq SVVY;{}uDʷ2e䞥,!ܠWvN6BJG;mN%UjFv8wU!Kݏ\'Oߝ*1Qz1.!]()n[RR|=2e$&yҷ4,#l%@INV]4'Pt!IYymjKEQ4ʑNydGgMۈSJIK9Qv#^3\Z1JRBIN9;j,SÉX(A[X aJNʧ4]4ݥڃ+#9G2rp2y5bF}ΖI ) TOSozn -G'>X9?[&Du8& # G~tҘE jxojOOp+-zB & W8'IvyөdhVh'>`dlrGNki|1d>hvX%QƒgX+Ē^)4O=coJеmޡW=䕽S@HV&Jֵe+JJG>淨6p2~}%-Z s[O+Ԯm*Әd``[>U~FZCR 1iK#r՗qZ!9jJ6BBG8<=Ö+rAq@ F}UwdҴRG;:|N5i'R=A@JHR1^-]Ur2IZNq yC,@8PDg q)PȤ[p)J#8R,Db:{ ݳ|+]HFr͑!pk@RTf2)ӆ&5 *7}ҧ7LEvS%ywg誢{}qZ⊔|9N"!h, ߿ WIh|  .|XZ$E_#gd ϒ-G= f229V ; 𬰜QXdFB|VsWq\{"bPz7#;?[ :-'sӒ1m $'A9x R܆]i`A|>.ҹkE$-i3qcR2>ZpIv;AjՓ[T#]OEJ*iįaG5ct tI*獪մZ2\֮?V$)UD[:+)[de9WӚ=M8f5߮$.2H OeiSM.OX6zP|MIމ(W֒#ILj$M<dGSluQJI0~ު\RJlISq\J>yjl%X}7' žVcR|q-u`+5#ylF^SM S3G486޳T(Pҡ9Ä@Nr)Ղi쮦BW#fL)w ӬgBRSd۬%:2inisHb%NW%|d$(N9R3o~KpʔˊbIiIeR*XN1VW"B:(>[3&;RP=ݝճbYʛ6) l؎_wiŲrK !IIx${jU)G+ortI+wz|yQҸ!ml+"k"TUF~JIJqddGKaqQs;#OqX#U&%mzz[ZZBRrOB~1ڦ r! 恤[:tTRyjSGc:١d&zzԚ(9@R|NqN)챕dw曆KpTWtޤ#MlF^p4po+NJO?jר$aD>'p՟Dթ'Y]f֕r8ks=2sz;~sYd+#`rVq쬧/ZYNDF|-Jx$IrⓃ׵]Hug'XI*:[J9Z =Ԛ#KJR%I8ϲuqZNN0;JP8KoJ-.(-'pkqR|\t6v-Cvf)A.#9ueҡmd;nyꒆN*ݍYa,ՙ(BP\0C$f(]XWj ySJx%)$\U7C *-99ȷ 5w&}.mq'!iU:҈zug9+|ŽPivl[o$=nqLZWsޯyy3vBB76rp1=@Wfv#Ipd l;ޠ-եn e9g9ﭦ:9s)ԬLg.B[oCiA Nx$ձ!B 'P iXy5\'d<\Xdj'#H߼|^ g$$iQEhJyՄ6|h)Y\hy x`TI w^B̏p.J1JW#5Nl]ο 4Pդa9~^T2Knp0sb yRPΖ張ԠRs}s('i F@m/ tV})OmT ز<|Vf|*^t23B@J>05g>X}rkoғH0BR\8@P#9pt~rA#SRVU|ࠥq$e vR?B~k%YnGo8N4uj(I^VP~يͷ^q~_ǐ\YKyT}:Ojnj@*G>*PIBD['Q:T]VN S>]QfsZ`x'r+uq n^IIO &}*ړ)9*䓱U4b2*Tx&;\M+Rsܓqn84;GݷZBޘ$VTU\F~|) W0 J;~ˍ/yR.*#OeHH_=ܽtf-9T?Iy huGP]e]VTi †Muln/ TNFʬ's˩2N{<%olCzPS&s6R=bnqDˋHV yVv<;0 ph=K'#wG첆 aq;iIa2&-Z`X~_)VN}R?DX >4,xι*,|^mKFR["+2㓝Nzx!H'.eX"#/s - (N}[R/&e !-'[xPv~'$yK&G#<[rv͡[_!z8-4 A;o4m2+rP.4=<ҒA #9W^5zydϤTZQhJT+J GSH i\pt]EGB#\W? 3ƺ2S+hozwE쐹/tWx2 _BPP#֓Nj,) qNG a<u87ۿ.Ο]͊1Nk +_ ZQ݉$γko͂BTFGyrwt{z+JWԨ "=Xxz=_ O<_WrNfg /l4PCŸvMq8 qhk9aZ7J4a3gZYڒn%QO#SC38E΍/k`8g#|p~%4'wWHPt k-_D/8 rDErAbJlLR} {tgݴSBӨ` ɭqXq:Z Bw4UV͘l{Dp 1 _~M{9;9ɮ(Y~[OQ|N߅/&Orwk(P_H|p7oӿg&bT=fO-_Q|N Nwk\`A;?&z52/%Wp2x/FZ{Kw*+|*'xϪ2_iݚ83?wsGgd|b MU ~cMxx7s _+CgZ1cNNwk|c֕}i߻~ֻ(\I*6p/g&ap}bW>ɿ_8/Bsw}h<8߄ޯ4b\=b>v8'4\ƱCFP^S_@޽|0Q;+q9տv8K83z3xZ)RN :qӟ}E~77ǿ&W*)+\ڳ<8'Hj<LjK%ɯtS]Nr>l3v@خ%iB8@߂o~M}']IyC| 8ԛ .> ߘ d=eԃ9e>UW rKӽFO!g.2sksO.p~*W>Oe/Ē#mCsZ+nuIPM} i9x;wx¹ *3#r8+BA?=5a*)IJ:>Wg<*2+#πxo.v]Jm ]b.,)|)~N ]ѷ0wOw^+SUsP'ղ[ Qe|mx/KÆoD( 'Փݍ5`QSRd┭pGwv)''>W<2n%ic¼R9pE(g(gn؜+F)wC#L9z"O5\htf R{q]Ɋ1SACeU+]JB Uꎉr }$XخNcWWbWnz5{-Ң+ZTe$u =zъ(UjvkQ\* (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( 3LyĶ](mIj$$y\hDÏq6oᾕ=eGoVtP Z(c>gDZ?tĉ;64eq>,68c :7{3׃ azNCtq,*wxwuxnþpգJQ:T`8؁Hl;OwpaȺ8RRӝSgRN݅oݚʢ:gףv*faOZB :ГJ ZA=1ի/vIϷLl8ĆR ` EPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEEPQ@QEQEsMKuꇵtgѷ͘,YB$mj(fs8k>+^%zg*ɦI҄iY j$tsk)Ս|wDfSRtb0@ 4U=Hv.?4ݧ[~D[8%6jhJPSsJr&5Lux:VHF:ۚעrHxI8mp jji^N Ƣ4;t=6{EH[.2oigO;2iK DWա/B[ ^:I?[x~i%̶!IW^\H @IVHmͿ\`Œ/,iBRTv=-/P5fj8.uJ Z dd$ kES=tqt&%Ze9lz8t$!IsIr@¥]HW F̎kaL3I%:qw„QTB}z:W}!-  pްvʏTq賋o4$6e -!+>1@XTdۇU׉b}X0֗m IH 71I8ӧ^;ïu$ (I ;'"h.cσ!1dYy!(e*ss[( (((( (((( (((( ((((9~[]:}}KXTQu}+pHp^nB\TԆBZabvǿ8j1;/.9wFr U/ÿRWFdK׻mjdF֒ c;gwqB= ]\.\_j}Clr%ԟ]2X>%'tskޔ-œ)lkJtu?f$6F;bz&=>@:J49qHNC@%)Q%*$iQj{]xGxj?2Ǻ;b-NICْҲ'cح\#>? qM"JIB%˛)I)&$ BM}P|oťǧD_I N| HXRq<Z.\i0BhNJtVTIt!G+ t#x'xA&Lq ΞeIP)yz(xoq\IDg/Ldl683Y(9*ޔV/tW./Tfk!Ah)JItlkovKd::(+r5|PiRF/ K~∋Vs5c=ڶ]Qm,7,f 6%$P ((( (((( (((( (((( ((((ʸ.AzEwőxrM3mrS5#HIBAJ2O/ 2*GՌaRn01]]mHM91W4yKtt`!8'>6/ENv5WKsG^BoN19rύ6D=QDU f tkX[I&ڻ'~` :gFrRYl*,Uӯ[z60c]M 8mQ%@$wRgz9${ntWmJCgSP}Z2%Q5jXۚѪCa_&k>OT dJK;FF\+#9 Z 0ʹJQ<8}f~$c>:;+$RVn0TBmP Ϸ:9׆p[$돦[:\/Q *g܅}niDڡ#)=d4anTX(LP PI$Dz$! B@# ((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((( (((]/GwfbûLlCII <59@58'nv/|Cmz|˸H6Tug@ع"w]887qe.;!n!e NPӄK@$FjCy(ui((WŠ=dxN$ėN- ķ>o\ yIiPIX8Z+헙LjOȔdHe$)4!RR)@Zׅ<< {q' 8),Tqա)@!Iy)dJ(EVT~M&LhM9)+p O蚵' v"u'W"807U) jC\U$v 7N[l@T.DT':w@#P<1ijw'W)hilJ\yI#Δi˩Np@JPj ((s-We^'LhM jհqB)RPV0+܏\W䞐7NIN*_jSf-:fRiq޽IqNySmM |Ef. N$FKCE#/Hp(+  P>x7'8bHzES- yBJ5('ǮTWq ^.-ag OfCm:ࣂ@ANG23勇q,Y)HMx\ܡ5BRHV- 5nGI;7k Lh}v>ąKud@&I\P!}:M$ ŇKZPu VOT%tv!q5/wjiLgXJq2*@; ^#\̕"q;\f´]XnL6up}I!9jێ ^,3V"eLa mI*GP1FP@RGlJkp,#Tޒ\}.]a|Z ~;!M%JJ*ZR7Т@< SB|ؗ\9{XBfCzv ay$jHE(Usxvusq/MuRN9 ItdBq qjTT|I; I5\{4GH\IlSL$BIPSmjǷxen>%&US\OT#:!%J'^ zgtи^vFuf ^'*)E~kF$VA;nqWqtt[[-iŪCT=S .7 ɮ5-VN!A 㑠&Y"^Ut/,7 t.S/""ਨakBqp5kSdqO\SpeYmnORڛ-U-yUadwΐl\eU&iM6SJ#| j#hY62X]75߰Himj= +P{1 IaDg2M[]qoq}2U CTk0rH< QTJ7>&WJ1)[Dl`DjS+q8Ki#cfGA/$*|6dޣN;;Ju$:rݸA.sXBFSM$# V׎KԐHH,L^9[NLמ?ő ͹yPmKj:RečBMuʐK [zS,7AXI_uєW?8Z#+e٣-L%Xa:#lqWj.J=(FFӜ;QEEPQ@QEQEEPRy8E+y:HT3HڟK7(n `nt`Ju\A I884."Z8mq: BAGpP~[@v̝6(~Ƿg}ߝ=\VcЙ*[IV T@Sww + z )puN l0)뻄_~U]''ok)뻄_~U]''okdd?={_Y7Ŝ,m%-kPJR͒v \Vz)՘gxy"JQ X>)ء%!60!- (%#aHܫš*)U !^|5gMX;kElm% Fl!p)|5gM Y}hG@/|5gM Y}hG@/;e-a1- >܆B!c<ֿ?#魭\ \H8*K#>s>\̸*;0[.=|}jN8x?mA/-?mv1K@g| =: =: nL $ o~U ϼy \ \OпuQпuP F\)kB]q* ACY4&'[`7 (:/?9 DŸJ ia[mxPAYr+ BPlJӗ1 =!HPxvdnCa#8[QY KW5;NULf( VHc3zC6QX/:c'4E%p&KcL۩R'P#Zn A2~Ο/~ Q2{7VTRҢN)~)S4)ykIZNBAtQEQ^-IBJ@=ԌA1nP@K>FF[xf[E ]ЏKsCǥe<3&;(i֠YүQ6M G y6TqW@LlHѝYv)3@V3"Nd SZ Sem8'#AVr_f3 !e+ZO*e/U6ÉA(T„jϐ޶nqN-Lt%Ԓ0oF}n_v&vxuE-d2F2kd;kC0$!-<4NInT(&D2fS *J]eA w++ٻnTV]u R@m`U$'38>bLi (ƞ4C T[mGF<z8fdYZKP5R(T +}nf&ϲFN 'I1|9go.}y|dLE*'Nh[zn..gq5DV$@Rrt#nU sQ>iT]À^'Q&"zʗTc8Nip3}öX7vOiAy  di sQ>iT5"4I%7-p9B}>F|rwU-ZZXpZS@'88=q%UcS XmNEDNdNxGQdSQxQގx!(gÐeCO@FA N`d 諣ϵN-Chl#8VIY )DŽO~U^<#(okCI<+` Hq%Լ)jICΕ%I yXxʭq7>ҝbku%KDA 2=:xZx?ӁZ&ZXCV@eP4(A A[ìt1-lT)¢z$JFm.o}4}qR>x9Wco񢡯\UWPI) Ƥ$e')9Sp;Mp~mIlRAUȊwo}4}qR>gQWc诣60D6 zTJXlLDDָVHԵ}Tmjo}4}qR>gQWcT._E})A+=sJ}n8zh-Rui9A)ʤ^:GJMޒRђA|˩F/2pWfYY !֢))+R*ƔFgX'\gYlērx-K*R3ԥ+*'4;o֧;o֧ee>[z*؜+ӌ)ISnNmtgml(dKR+%S |'m4|'m4̺}8 Zxj$d-AҤIvT’|'m4|'m4̺}\iw,+]"N(0"b4~Bێ*t$}Uw"=#U=#2Q ;4V0ԆmkJRs8>mk8iɲŠ $l7#@:<1@;Eh2$:RZVӁiԕ9 }Q@QESξPVRJ50܄I1qr{<>b>S$Eq[ %@INj*Bq#9bv1CsOmf-,BL8[QIS$!!; Pox`%DU-LP+JUIH## c?}ɕVc_z2((Wgr_U¦?9IERg?i=QEEPM8#'Bi?Gz((( M3~qRGsQxQ?8KG5^@yE{E7~|շ$Ib*%,q[%k %)ǙVn΀忩ms۔ܻ{Fi%]- [JչRQx&bzpkz1&̋_ Kߛj 48+)J-Όno\ l˷oq)!5uZ! F*H 3R=#{ѷ*( /^+ DsBc-OPBSȍEQ|qiP1-[zFƱ$G*Txѳ"SNKar :S]a^iNsP [*aoER %\n}+m-”rZ]'|p2ͩCKtH(NRGuq u{(6.M0\o#[.Ay㤐J; JIdJlgIUjzۤ%="Co5n-Tf @%)PIBӝvy8HC&w}Jv b%CTTvZ]Xq07=ا&?'0xHw.2bsnm49$6$c+Ӄp<+”b;t |?wo!Zeb=ѐkf Y_RZv\ߌP2ɝs-R[S!֢P MzC-]aQRk49Ϫ)J'to4lV%]Chh46ByxT,Q nIZL,)7ɲCK)*q { f3¼8mʀ~ ^,} ^,f.{\)@[3I}'HV#`IԀ8ngeǝlLvZC.ã-N/Y<1}#9Ϫ<53;ߞE|cߞ|{<K ;xQyEb>ǻxQyEvo  _A"熿aLMYOh(=VXˣ’R??]u|O}US&O=>*j/ni* 'Ɗ*6X2|h\X3V/G'b.]U&78O?G/d9^Zϝ<&?GkYcߪ?_l8mO^ZO+ &5賜S0 >?w.fqZig3}) )N:NGddaP*opLȝ)jqOFZ jk?juy8ƑU^y?-sWk jC,ZPָ–8ЀQjV bje37&䇘Ca/:I*Ga!$s޻3Œ 'G=4?2EV#B( (8kyO\5Ot(( ߪ?_T [oi˯ƶa|>kj~Ț('QEPhkg95賜S0ލ >?wQW`QEEPQ@QEQBW5X:p.@r#K=5 [I(ԞV@BZ 6ɠ:V7J"SD&̉LK03/Ys (m0J$%$1o-  PuʆYR!A>@7m `}kOW&WZWUY3([]oҜ@O7Ǽ(}|#_\@i}|#_\G<%+w<%}|#_\@i.uYG*i<%¼jx֧ \ԈN'.$dv?U&8sƓқIέ21Փeίˠ pGvO:q_S> 4'KlW_՟g=M_aV~>W_՟5~YhM_aV~l_L(TV-FS#С yԡD>Y8Q<c'ҕ蟦ʊҕ蟦JW?~*+JW?~=)_hnΚ}n' c$Lw*J\):6$w("IcCwެ6Òg=qBuRB@PV6`~Ulّ\-˂[ S8ڕգ:BF@tۋSW"QHr qRS0aJwI}QEAc XHZ͓>ޕ>CaZF`G,怜T'tybjU%?"#|Pڝ899u`F|%Vϙ+EKij3A=Rt[@/*%ineˊ&L[\Td 0N Rv8ҟZu sW2lq24ARPU@Qj±+eڧ$) rY zX+ o·-1,DVaC-f&GY8y )#l@\4TG:@::oWia)q+INP`~ˋU~%KԨOM b[w?=[w?=v>`Y~\bUnpGnpGӷ}?Rcrۿ!}rۿ!k~O_ȦZ:nkBxQ,#F07McO gw%y]T|0_ tjm%TtUO gw%gwV_.4s/nzu?GY<3noTttxUO gw%n:|4֣q܎Wc}<ӊ=}|T]P, C*[kRʎ{|9A˯*NOw?:UogݎOXh Yw,s꿭~oh Yw,s1qFՉ&7w9A˩7 Aĵֶ2*BP7ʥϗ͋Ѿ)*=cFj ?UgVʭXa_é4f@Z_Q Wk}a_é4f@Z_Q Wk}a_é݌uoXUwUi6~X-c7 u1f[V%du`ge}9x?o RU)BiGGt"5*x_?~=lO蟦E>%_W{bD4}/Ԋ投z! <$6hRBW$,e vB 3>N:fhQ:ԶAnZ)K5 @A8. *)6.fskaI=įCTygzQ@bjm`)*{@/8!D\ " 4(@[-(cp1%]=j H*_h[oO!`VDZ&Oy,)םZֵ$SnlJ쿫w&g/PQ@QES~,|~4NTbwi-*Nr% ((GySΏZTQEQEEPacT?L;g稄?ӌ*TG~(((59LdȊ. lIA"xg|@BWѭpp{KEԭc#PVQ'skZ&vt;q)?3@HJ JBt3Z(5eA6C*Q_ThH[{[Jh)b/eT4Mѫ0덥A VGA[wSC;<߆S#n51r\ 鶸Hum{d>>{#O#RGlqnv _n+M.1Wթ77䔸uJ!8aS[m"E-.*ASPڂ-8RPZ#5`@@K0p Sn%{``Tn_@<6SqAmGaPBVpW KB,p ;EehBd8JmVGeQ*8z9E{EzyE{Exh |i?:Tw4H8} }2tXΑ.q04)EEPQ@QED[5?~һ/~ ƔEPQ@߯ (߅M5ӧ~,|~4yXKJ?Ih( (*y^_:ּtQ@QEQEU?8|!ʧ/a߻?=( ((A{N?Cz(( (((( ((((;םĽ<-A袊(+V__?^ל>xO{_ӯQEyQERw#“ҋw#§ODȹ8qt G:wWb<_g*xQEA(? ~tI[g󦿸z\+ɞeQEQEEPDЩO}ھz#DЩO}ھz8gz9EWzEPxku"|i?:WpXaEV (((( ((bk߶qv_ջ[(( ()Ӄ^?Q kNxXF*h ;˿4^V'9wQ@QETּuGy((( N1~qRB?O*_#ÿv~z]Q@QEQE 飆A{NEPQ@QEQEEPQ@QEQEEPQ@xş|誫WO?}w;z5y<[ăEQEEWN#c;߸~8 3}x#^(,(G'#§ODȹ8qt G:wWb<_g*xQEA(? ~tI[g󦿸z\+ɞϺ_!eQ^Q@QE?DO 4ݫB?DO 4ݫc9 3]Q^( xk\pwƓGx;IWԊ' (QEEPQ@QETPt&&eo_@[]P%C;i $ JzI]o#9=&0jj[FSl K/P8k6qU]*4)8(HNH w—lH^kR' CAȽ͓SjGSAme\d:`::t';8H!*ht%23U a)KqW)ӖV):2rBB |#ф}/ /-?ax`)[jߗIW}5W;m,/e x7Gֲ<cW}4}k+S>h,/e x7N\) GٜM p(2+w>UUӿ~l?}"4VmZU9®-;gIVΝai7GfnP?͇IQ@J6u6X=WJG638MLB>#ʩ:7iLP_D`jM?vԚhwAlI(D`jM?vԚh| lLpvS*T@sZ\Xݛ:K12^uaBG2I3UU{G&[K0BDqJJTImKJRV).⮅"[xRː{4u\)KIPBB`@X(.\XeGtMlѤ Va+c,o).]vbJJqG B=p&hތp\pTGR]tGi@Vp:^ms;/BUM4gGZзsORu)uFQ=Zr)CJHdRFI53`4,\\yڍ+ZblH*JH\[ùca|+pM|pLnm!냋~n$I' ʸ#w>וjtjUϑq i-yT}_ģl?V*q i-Պ.'c>KE<>>erO]b-WxjjeA;uk飢5oO8T륒.fzExg~ uG uO=ja~h~iGZ#f֗~ u[pXYd]I8<[bgDO'$~!}4+, _}9!ŤTH蘭XA?5jgsXcξ1Mv\7?ÄՓsIVcqchOV<ǝgEோ#Vp^ҭ1'?П,yя:}Wŏo/?M>xN%`-rP2HJMqJ/kz51U+i.o-$HNwuN#b[l\*w*1^nKB xF6?;Ǖ i|WA>/QxF§xTa/*8^$¥-SU!Glx7pX]{s\KS%-};X("wTb_,^] Ց'~ѿN Sn|;X(6oRQyb ՉfKpHՌaYKne*s0͔Sn_- &DV8rKNG*}33i=gk8TJخm.#?&z-R$=9Qh NxN8M  ̋,eBn.9&y+l*[c+:9@bJYDi,BVtnッߊnGphەN6bJC9`o)ګ8E5c]L'!0}3](9PQ@`xQE`xQE>}^?~~mEPQ@_[HE4S~l?}"B^VΝpt$ ((֜Ͼ)Wubtoә?((6=TxTO~_=B~?*k'˿vEPQ@QE ?d}v4S`x 0<(0<(Š(ŒEF`x ( 0<P`x QE`xQ(0<(<:px=w\Ӈ|^>?e=mQ_6\QEQE?7^az/S|E|Т+- (+l_L(V?'e/=xEϻ?=aYϻ?=a_cS5QY Q@' ƒҨ/޿/*(B((z8/Mp_Wz:+)<+ QEW {)M&S_uS  0<W@0<Q@ ( ((((9mW;m ((~ z~E2)+aȠ:pt$wիi%QEEPX}O઻֜Ͼ)EPQ@QEʣ¦Lj QSY?]|(((  #OtSQEEPQ@QEQEEPQ@QEQEEP\Ӈ|*?e'^/Q)Chࢊ((-Xׯ?SDkX߁z8W/Q^9hQE[bgDVؿQ?8)y:.G} G} f(H(Q?@_ݧ4Dv׷~|Uo4EWQ@QEc)^oǬS:u _M]Q^(5xh0~Ji4R 8{fZpQE (((( ((>Ov?\?]zö߿ff;W/Mn z~E2(~\?;I)]nI@QEQEV'F9|S*3@?QEEPQ@mz?𩬟.ھzB=TxTO~_=( ((AS2p2>|@QEQEEPQ@QEQEEPQ@QEQEyWt.?>zsʸ#w>׋ƽ|"{(nER(-Xׯ?SDkX߁z8W4QB((M3~qZl_L(Ur[#w>g#w>~mO3\|QEd$QER/KJ~1o22i() ((ǬS:t=b믤^*4f2xk׵{)M%^U_wS (BEPQ@QEQEN'lW3Yv\n%6ivje/_hq) $륤4À8q;Gjf+"P( _Wy_ۂ+ecdp4\GHqBR22U=p2hq2QzVNJe,~Β}t1ÿ=߫/}T}t1ÿ=8wvEҟPZ>SQ( J;Cj$pE.!:m,dڲ0f?@LV/_[˦(/U >V/鶊m.U mxv6:~ vg&V$=12R]WV#§Ms@l/Uc$_P },~}4zX*i5K"E_M?rEME)Gz_=SmCd;:SɌ⣡.<KhR+pp3߃L 5?,924[ )um *J4 +إZijaߗ./!%@Hm ՗Ip̛̻<[D7(! \ϩ*yA%:O=Ho uǢ=HJ’OѰ5pݩ-~SGѭxBed,s{?82;jm T+I=Z7Tf_`-վ6#1 4ی4CqqĔ *-VRʞ[o/+jn;:q+e|?g4^ QUq%ndfZ5Gz?5Gz(oEYԱ5Gz?5Gz(Gyu,a/foi깢T`Կxw..WH|+8/Shm@]'PӁ"izO d{-C_DI{/sڻesR.ɖğZ?7$ GIEz?d8?_)2޸3ŸGğZ()OW?D??8q/(:EÿSߍsIeK1"*tr5*U7o|kl.TE*Z6в.q~miGƟlٗuZQ^?؟T~QWe7e]of_iE> QWe7e]of_iE> QWeMfAbͅ- v_yqzsB(i9hDbi/.x׉>|5XFM;+[[,jj߯8?ԫJ*W gԕ__GUUPGPgԕ__GUUPGPgԶ6ξSOTy|*eUBǯ8zx|LҊU^mW8jl*,r$}&jpJOg@cP/M\]{]ؖg/40۷rLD)㋴eMb3q:uH.5:AV3RDKWr]1U۾B[H@' s,b$8oŎqDG^`ƒLx-֔QC9+B*NC/E[Zï[y PD-n$d:I/}R|P2sVqnN$Lq'%-1RJA_kj'JRF@mw.8\b1kvv IZ]xh@SËY j4 7#J-1_qRPAQ'o:~ץ>۴u.FaM*SA jRRx$%eymG$tkxux;Q(ڒ}j!V:F#H Gpe/<*Zla HNJI&QEEPQ@QE~¶@$WWx ?\@QEQEO\ e}pXMwǿEKo߫/}T((?Y~UiV_Fٿ| Q@QEQEoSQ_9B7o((($ 5?'OEPQ@QEQEEPQ@QEQEEPQ@=}GTƟ}^ Q_LPQEP(PW't?j)RW't?j)_MYE_8(JŠ( YcZ GK,PUչ)GL⟿2 T3~29_RUF9nŠ(dB( &~aMUkM>4">pEWΚ( (?'|_Wg9sƨxߦQ?8?˟5O>=zqJ~\i ^EEP9~wOI &+~wOI &ŔU(d(?ը?[t]_1[d)/˨HQ8̿.?/_$c(D(_o$QVD߱?IG-QE|(( M3~qWv?ji/_3=5?䶞CEWL(( nw?cqз;j8'#U?4( Q@QEQEEPTyo. Ԧ a+0o%;υ.̯|[ E#8%;υ.̯|[<9|?՘?[W_|-ߋtwu|.B_A8E'eu G Qm,%d)/˨[}!]x24KwaN#L_'~]~8iZ7ʹ  7uF_BEO2N+`mF?2N+`mF4~(8O_@hI,ߗGI,ߗOC'/ 5kM>f8G~]Xty8n\IEх' irBhm| L*PG TdA}aڌUXw?^XO/gb/"Tgÿ}e" _EG-QKgj3T EA 4_\?_vрO>#rl3ݻu rP̤ݚ5άf81]5dvwݸ>n?*룾M[4QN[G𿵷ʨy5oQE;no [M[\>;սGdnw?c{tzYJj烷:WqiFx>H1qV )|3eA C"BP8)'''avMt +, l/Fd!8=$J褰.P'!LfNCiaCBP@ޘ%a&H[{Q2))͘|lP+ʽԟ+m)kZRDZ\`>-$6e6RT6 @((%(RJ9o q_|e 3lFa\XKou?he*XG590"7x}Y6Ryh#=vduiJH J %zПn$ qJZWRTPtǕJ<nT6'Z yU߿BEpQEEP>{߾ bޏ_;/S@_C={4\7?~T((.Y5VեO"wTEEPQ@(E]aL8W(ˣ¬)Q_95QEEPQ@Jx5>iĆÌ$KT?S X^'ە?eBP]g)ըh%gӟ;yzjP鑗wޓ,Aoeĕ)X= 7˼? :9wH(iDtEτj(N@'G~'V-e"8zO-TޝG WPQ@P]/GpLLZ:jCm `d*/(x_Ukǝ Z D(A޺yA Lh8z%"3$+C,l-c't2\G)ۆ /ɞY~qbuf -vsq!##lF+?Go&\H$W,IbZOP %HIԔӂ#|3l7;tvi׽1% 8Ci qʻTz%owXR0+Ƴcs@GzWqΉp-ns$&4%GCB)u%I;yS?J\k.<pwb hZJPyb 0<(JÜkw?vvsZ5P0x uĀ ;(_q+MUΌ IOcHe:ٔJBx P %؞Ƒ۷Yf.<) iEMPrNf׸wVTaZK\DrK-i\2:ʰPL/$͖ MQɍzאˮ)KdN~XlSa#3NFe0ZJIXqN77,FᯛT!}9T'}ᾑ 5@{3^Q@{3^Q]?="pOw"׳=_~,3Fh԰fE4txRjSjS?*3Y ,2ۋ_|"zM5Ux/4QWdQE,, ?N?ݨ=NxroW=#/oG QlxG<h_7c>?U8B'U|n'!#ǥQ^y(P+ @Kz:~:T?3OS ~!|zsJd\DPg\ٟt\َi+j:vM]p-|ebPd뒑*q *P gmU`xV#*>Ķ۽nN'Z+uBBY!В#Nj\kuSv%yn8 e;낳Jx@qwz@zpɇCM;l;-k} 1l RGh/\{C`ݎ橒-2Yeu!%ZmCQGigs]{|/U{߾  ߄U!C={4EPQ@itSȝ?.Y4( ((EJ/ gWjE]aL8( ((S}EQ/+R*(( (((( ((((<5_x=}(5_x=z<7?>^(d((,.R]?=O{#?QEzQERWOIMN'dg?ׅU4ӷ/_|" !G`OW(QET?Zw/As;z+=#}QƊ($B( (ћ.?Wjof| ꄟU񸟤zXx?OEWyAEP ގ4?L*ƙ㩅|ĿGq_KAEV# (((( ((?-<*Da _c" ((z=XM1SG/!pER]?׿C@QEQEVE?}Sj;@H袊(([T. ~E|o_Vӏ(((%<^WݏU|" (((( (((( ((_5Oٷ;҃_5Oٷ;ף}#=^e@袊O ((؞'E!#DȤ5Cg=aEWzEP)~]ڿT. F~k,3x^?ESM;q*k밾 } |(!EPNxroT< ӹ?7⾃޾h8ݿhO(([8B'U|Fo*иIU_9H?8ǥQEyQEPh-LS¡|i~:WK|wԽ$QEb<(( ((w/H#aM.͚ĸekZR0zW~4gn雎D;2^XYs$L>}}?g⏯G ;3P}ÿ}b4h{y^6&S 2ܣ8ؙdph C\7?~ToSpf<5)22-[=Α}vFdƠ}vFdƠ}vFdƠ;Udoo FOjz/3#漞G %[I{IuN{x|4%.ģᦿy-w%Q_Ez)GM~ZJ>kPJ/ gWj o6T59}!.v}.bD ?Ơ[=5bTzj?p+ tVMG~U1}]Q/_G _r*?y?v>jT{1$Zk #;M>KSȌ㶗J B!Jdh%xGE 5u.9H> hH([84<9WpPnQě5khc[ YH8+( W[Dkqm؋Pʽ(:4Ķ7OVjpU DjK!]@[n 6 @n\=+qSxxr32^aX #WJd% BѸ:qD-ŎrYfV].i9]Z N>{;lh 0 q ʊSV_xq])^%Cv&] [cI@ KZP*mٸ"08saEHu-iSJ :w섑7I~ nľۆ`ChV{X# P|vhTW$ޭ`'q[s/I+ng6[GQ=[EU//קK4}߼F*vvKk0=+Q>_z>_z.f #DȤ5hp44WXmxٓDhr7ڶ? {ƯS#NW/$pʲ.~򪢭^V/|u? {ƭZC[l?VҿR^V/|u? {Ƨ֐_gU)~D]fu? {ƭМzkOZdme 8~ 5)_^TWî^8qHpenDI Xa8Ҋ˧o"aoun^>>×̟/Rt|??=t|??=t~2DJҿR9O֕Rxg7ǿ.{viMdjR!+^gXxR5{JkF8{1}j{#Ƭ_,?QE'󾶧?3GZҿR#Ƭ_,?QE'}mO?O_]dxёV/Ohs"N~U>??Vԯ=Y$*DZls]&HqJ%dJ^f;F_>iEo3QLњ,P?pWX> pޒ/ԌfԟР~gޯBzyd}W\7 #& >}4z,#}%_s?u0.f;*a gI?OcgcR__QUwJ}\)-SZH"DżJ iR= t ma},LFiI eI(A #Q }qSQ Q+ip[+*dԔnU1 }*h ?\_T'*PQ@QEU tz:#aOPZ(((H"oʯ5[U!8o¬d*((%^_ݧ*) pyvQ3 [xf,..{jxm Te@I=2qOE-5Đd"dTMGW&; Tr ;(h8PI#V[.`8`Cr/WiZ+Byj1&"Yll-ă :[BBR2y-(##Q@VwΊR%[q/ St8Z{꒍ I S}]o8ڣz-6 rb-<1,`|ܢxâ|O{u]_OP*mHm:uIi wY5z;PYÓMvkn)zz,n3S( N/D\B[įN ,<Z39$,!zU9^qJCwݣ\۾-ǘA BmQt`yE^蛇~%B !ւUvpp0G Ap]D ʂEHSj**$߃S*( zEtnmqhW/1!(qkQ]R*q<%o$0liҖS#$,vq1k\Kps}m12SN*sĝ*:R2Fl60/GiQR]܄uQ⩄$c P+[D( h*D?]5*_BO}|c⯾N| 3~>? +iaEPQ@Y}~W1,]~W1-x_3|AEV (+tӱG+Mnz?fYKEyWKJ?9Ik٥GaEU@()#tutOv/Թˣد3ޏo}21UQXϤ ((~=J$~sQt|tQ#ÿv~zʼn^xEVs ((<7]짊ge*i;8s_¦u|H)~.ϟ"QEEP[O*c?%(( (QkT &sUR*țvG( (([?~jTgK& (((( (((( ((_=x=} =ُۧ9֜/(D&(ͅQ@QEetq^>tq^>|ys+QZO(OGUA=TxTe,p%Wy#~mO0* QEbK?d\lWG>|(gQ@QE>:~|(a߻?=ECD'_Cx3]QYl(A8oOx+\pŠ(OP((( (((ig&?+}g&?+QEEP?tw pXM0G}Tw~.ϟ"/O%U ((c?TltGŸ?$QEQEEP -7VDӲ?_jCpYNU95QEEPQ@KxORjyvEPQ@QEQEEPQ@QEQEEPQ@x{O}s篡'{t1W'>zӅEȄEͅQK)pY]~W1-}~W1,x_3|AEV (+tGiOGUl)yĽ/?9IiU^o?i-{4cS(QE=ؿR.)#tuu{_&*+aEPQ@z=J$~wQt|tQ#ÿv~zʼnnxEVsڸQE P7]짊fe<ו 8{aEU'QEQEEPQ@QEQEh'td  [Zo NV@\M#]}0:n's.Q@|s.:n':n'ۃ~m_fKD4u~҄N}[B%I$áM=)Khe*Y oH1cc?]E?Iʣ?6?3UPSt?1cc?]E?Iʫ3 ϳd9r%:98]'EC`g`MXh޻'zȟ_"~@1p PYMuek=s>EQEEPQ@QEQEEPQ@QEQEEPU,/E Z ~u=)I;dWdQSћ&*3pҿe??0)Wx`xQS~՜O*3U`xS$>՜O*3U`xS$>՜]n໕e7%Ih iԨ+ԟ})8ԷUoWSTFWl&&y)^ߡ'~*̓xK]_`}i|WrI߼ʣ$?RWWFƯD>`}i|WrI߼ʭz'JejO7z75_$v?CQiKBp댗-'Zw;?֍?M[zhZc%e%_Äթ*sm>ohѿ'oMk^:/į+IOG֍?M[zhOq?ʾTZ7_D4jiȘZB9ъN3^HՃ ^i ku[+.?M]r>1:.ח~' OV=TcOC.ח~' OV=TcOC.ח~~X>*$n*C77v O%-mrF G*Iw6HnWHqOUaHiD΄qWxvZAd6@ iKS`r4F?l|i<+ȵǵ 0#\6cTV 'zh#߸Q Xuq䛋E䜨98r80%4v;WZ` 9i8H$2I$&h( (((( (((( (((żi*1lVۍwOXPίsQ[G)xx>")T!k}ۉPP() HhwqH"Ė8er^9L +.v4tOg}s#x8&5A Zۏ,5+i լo+)o~ng݁=fi C4VXqAd)aD(9ޜ8_7{oKK$z:CR #b җJ<9"H􋌦i)`8R|D+O37l‹zum\t6'`#u)'#l՛s[R-&Gn1 Q[ZՀp{.,oyC'tya렽sXiŜZMξuJ[)Ũ̕(K\%lS6ӣ\#qhBZlYKv[N`ts!w2m2q-ΡֶyëJZD%(uiJTӚHJ4zE߮9c\RnwM!ǚʛBPp)nN9U8a&t2}ŒRG4) XFg5?Ύe:뛷84~9Ȯ-1!ZFG78![-aMp*'tt^f]FT{k/6q-z\NPJR5lSlAEՇem6RN4%JJ:2@RNTF;aLUJg:ۓ_-o$6D匎-vN6I.z p6R 8B qZGz-|WOp^Pu%K]l7VÁi J00|E!mJNHDwQӄ5Ԩ`90:͌SÓD9YQ^)Δอ>qdOHRT-G* 't0KRƃ.\jTaͰӛr10j;5TW1QkRCbZpT @|T"ل52S%G'8ƒ Q?cFalά*(( ((((?cups-2.4.7/examples/set-attrs-hold.test0000644000175000017500000000751614502571342017763 0ustar zdohnalzdohnal# Test print-job and later job-hold-until attribute { # The name of the test... NAME "Disable printer..." # The resource to use for the POST RESOURCE /admin/ # The operation to use OPERATION pause-printer # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes } { # The name of the test... NAME "Print job" # The resource to use for the POST # RESOURCE /admin # The operation to use OPERATION print-job # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimetype document-format application/postscript GROUP job ATTR integer copies 1 FILE ../data/testprint.ps # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } { # The name of the test... NAME "Get job attrs" # The resource to use for the POST RESOURCE / # The operation to use OPERATION get-job-attributes # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-state EXPECT job-hold-until } { # The name of the test... NAME "Set job attrs with job-hold-until" # The resource to use for the POST # RESOURCE /admin # The operation to use OPERATION set-job-attributes # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id ATTR name requesting-user-name $user GROUP job ATTR name job-hold-until 00:30:00 # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes } { # The name of the test... NAME "Get job attrs again" # The resource to use for the POST RESOURCE / # The operation to use OPERATION get-job-attributes # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-state EXPECT job-hold-until } { # The name of the test... NAME "Enable printer..." # The resource to use for the POST RESOURCE /admin/ # The operation to use OPERATION resume-printer # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes } { # The name of the test... NAME "Get job attrs (last time)" # The resource to use for the POST RESOURCE / # The operation to use OPERATION get-job-attributes # Attributes, starting in the operation group... GROUP operation ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-state EXPECT job-hold-until } cups-2.4.7/examples/r300-remote.drv0000644000175000017500000000366514502571342016703 0ustar zdohnalzdohnal// Include standard font and media definitions #include #include // Include ESC/P driver definitions #include // Specify that this driver uses the ESC/P driver... DriverType escp // Specify the driver options via the model number... ModelNumber ($ESCP_ESCK $ESCP_EXT_UNITS $ESCP_EXT_MARGINS $ESCP_USB $ESCP_PAGE_SIZE $ESCP_RASTER_ESCI $ESCP_REMOTE) // List the fonts that are supported, in this case all standard // fonts... Font * // Manufacturer and driver version Manufacturer "Epson" Version 2.0 // Supported page sizes and their margins HWMargins 0 0 0 0 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Statement MediaSize A4 MediaSize A5 MediaSize A6 MediaSize B5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvISOB5 MediaSize Postcard MediaSize DoublePostcard VariablePaperSize Yes MinSize 1in 4in MaxSize 8.5in 44in // Borderless printing offset... Attribute cupsESCPFP "" -80 // Four color modes are supported... ColorModel Gray/Grayscale w chunky 1 ColorModel Black k chunky 1 *ColorModel RGB/Color rgb chunky 1 ColorModel CMYK cmyk chunky 1 // Supported resolutions Resolution - 8 90 0 103 "360dpi/360 DPI" *Resolution - 8 90 0 206 "720dpi/720 DPI" Resolution - 8 90 0 412 "1440dpi/1440 DPI" // Paper trays... *InputSlot 0 "Auto/Auto Select" InputSlot 1 "Manual/Manual Feed" Attribute cupsESCPPP 0 "1 255" Attribute cupsESCPPP 1 "2 1" // Very basic dithering settings Attribute cupsInkChannels "" 6 Attribute cupsInkLimit "" 2.0 Attribute cupsCyanLtDk "" "0.5 1.0" Attribute cupsMagentaLtDk "" "0.5 1.0" Attribute cupsAllDither 360dpi "0.5 0.75 1.0" Attribute cupsAllDither 720dpi "0.6 0.9 1.2" Attribute cupsAllDither 1440dpi "0.9 1.35" Attribute cupsESCPDotSize 360dpi 16 Attribute cupsESCPDotSize 720dpi 17 Attribute cupsESCPDotSize 1440dpi 18 { // EPSON Stylus Photo R300 Series Throughput 1 ModelName "Epson Stylus Photo R300" PCFileName "epspr302.ppd" } cups-2.4.7/examples/r300-colorman.drv0000644000175000017500000000366314502571342017220 0ustar zdohnalzdohnal// Include standard font and media definitions #include #include // Include ESC/P driver definitions #include // Specify that this driver uses the ESC/P driver... DriverType escp // Specify the driver options via the model number... ModelNumber ($ESCP_ESCK $ESCP_EXT_UNITS $ESCP_EXT_MARGINS $ESCP_USB $ESCP_PAGE_SIZE $ESCP_RASTER_ESCI $ESCP_REMOTE) // List the fonts that are supported, in this case all standard // fonts... Font * // Manufacturer and driver version Manufacturer "Epson" Version 3.0 // Supported page sizes and their margins HWMargins 0 0 0 0 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Statement MediaSize A4 MediaSize A5 MediaSize A6 MediaSize B5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvISOB5 MediaSize Postcard MediaSize DoublePostcard VariablePaperSize Yes MinSize 1in 4in MaxSize 8.5in 44in // Borderless printing offset... Attribute cupsESCPFP "" 0 // Four color modes are supported... ColorModel Gray/Grayscale w chunky 1 ColorModel Black k chunky 1 *ColorModel RGB/Color rgb chunky 1 ColorModel CMYK cmyk chunky 1 // Supported resolutions Resolution - 8 90 0 103 "360dpi/360 DPI" *Resolution - 8 90 0 206 "720dpi/720 DPI" Resolution - 8 90 0 412 "1440dpi/1440 DPI" // Paper trays... *InputSlot 0 "Auto/Auto Select" InputSlot 1 "Manual/Manual Feed" Attribute cupsESCPPP 0 "1 255" Attribute cupsESCPPP 1 "2 1" // Very basic dithering settings Attribute cupsInkChannels "" 6 Attribute cupsInkLimit "" 3.0 Attribute cupsCyanLtDk "" "0.5 1.0" Attribute cupsMagentaLtDk "" "0.5 1.0" Attribute cupsAllDither 360dpi "0.5 0.75 1.0" Attribute cupsAllDither 720dpi "0.6 0.9 1.2" Attribute cupsAllDither 1440dpi "0.9 1.35" Attribute cupsESCPDotSize 360dpi 16 Attribute cupsESCPDotSize 720dpi 17 Attribute cupsESCPDotSize 1440dpi 18 { // EPSON Stylus Photo R300 Series Throughput 1 ModelName "Epson Stylus Photo R300" PCFileName "epspr303.ppd" } cups-2.4.7/examples/r300-basic.drv0000644000175000017500000000332714502571342016464 0ustar zdohnalzdohnal// Include standard font and media definitions #include #include // Include ESC/P driver definitions #include // Specify that this driver uses the ESC/P driver... DriverType escp // Specify the driver options via the model number... ModelNumber ($ESCP_ESCK $ESCP_EXT_UNITS $ESCP_EXT_MARGINS $ESCP_USB $ESCP_PAGE_SIZE $ESCP_RASTER_ESCI) // List the fonts that are supported, in this case all standard // fonts... Font * // Manufacturer and driver version Manufacturer "Epson" Version 1.0 // Supported page sizes and their margins HWMargins 8.4 0 8.4 0 *MediaSize Letter MediaSize Legal MediaSize Executive MediaSize Statement MediaSize A4 MediaSize A5 MediaSize A6 MediaSize B5 MediaSize Env10 MediaSize EnvC5 MediaSize EnvDL MediaSize EnvISOB5 MediaSize Postcard MediaSize DoublePostcard VariablePaperSize Yes MinSize 1in 4in MaxSize 8.5in 44in // Four color modes are supported... ColorModel Gray/Grayscale w chunky 1 ColorModel Black k chunky 1 *ColorModel RGB/Color rgb chunky 1 ColorModel CMYK cmyk chunky 1 // Supported resolutions Resolution - 8 90 0 103 "360dpi/360 DPI" *Resolution - 8 90 0 206 "720dpi/720 DPI" Resolution - 8 90 0 412 "1440dpi/1440 DPI" // Very basic dithering settings Attribute cupsInkChannels "" 6 Attribute cupsInkLimit "" 2.0 Attribute cupsCyanLtDk "" "0.5 1.0" Attribute cupsMagentaLtDk "" "0.5 1.0" Attribute cupsAllDither 360dpi "0.5 0.75 1.0" Attribute cupsAllDither 720dpi "0.6 0.9 1.2" Attribute cupsAllDither 1440dpi "0.9 1.35" Attribute cupsESCPDotSize 360dpi 16 Attribute cupsESCPDotSize 720dpi 17 Attribute cupsESCPDotSize 1440dpi 18 { // EPSON Stylus Photo R300 Series Throughput 1 ModelName "Stylus Photo R300" PCFileName "epspr301.ppd" } cups-2.4.7/examples/print-uri.test0000644000175000017500000000117314502571342017033 0ustar zdohnalzdohnal# Print a file using Print-URI { # The name of the test... NAME "Print file using Print-URI" # The operation to use OPERATION Print-URI # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR uri document-uri file://$filename GROUP job-attributes-tag ATTR integer copies 1 # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job.test0000644000175000017500000000122714502571342017006 0ustar zdohnalzdohnal# Print a test page using print-job { # The name of the test... NAME "Print file using Print-Job" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype GROUP job-attributes-tag ATTR integer copies 1 FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-password.test0000644000175000017500000000134614502571342020650 0ustar zdohnalzdohnal# Print a test page using print-job { # The name of the test... NAME "Print file using Print-Job" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype ATTR octetString job-password 1234 ATTR keyword job-password-encryption none GROUP job-attributes-tag ATTR integer copies 1 FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-media-needed.test0000644000175000017500000000272014502571342021304 0ustar zdohnalzdohnal# Print a test page, expecting the printer to run out of media { PAUSE "Remove Paper" NAME "Print file expecting media-empty" OPERATION Print-Job GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype FILE $filename STATUS successful-ok MONITOR-PRINTER-STATE $uri { EXPECT printer-state-reasons WITH-VALUE "/^media-needed/" DEFINE-MATCH HAVE_MEDIA_NEEDED } } { PASS-IF-DEFINED HAVE_MEDIA_NEEDED NAME "Wait for media-empty" OPERATION Get-Printer-Attributes GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR keyword requested-attributes printer-state-reasons STATUS successful-ok EXPECT printer-state-reasons WITH-VALUE "/^media-needed/" REPEAT-NO-MATCH } { PAUSE "Load Paper" NAME "Wait for no media-empty" OPERATION Get-Printer-Attributes GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR keyword requested-attributes printer-state-reasons STATUS successful-ok EXPECT printer-state-reasons WITH-VALUE "/^media-needed/" REPEAT-MATCH } cups-2.4.7/examples/print-job-media-col.test0000644000175000017500000000216314502571342020636 0ustar zdohnalzdohnal# Print a test page using Print-Job + media-col # # Usage: # # ./ipptest -f filename ipp://... print-job-media-col.test { # The name of the test... NAME "Print test page using Print-Job + media-col" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimetype document-format application/octet-stream GROUP job-attributes-tag ATTR collection media-col { MEMBER collection media-size { # 4x6 MEMBER integer x-dimension 10160 MEMBER integer y-dimension 15240 } # Borderless MEMBER integer media-left-margin 0 MEMBER integer media-right-margin 0 MEMBER integer media-top-margin 0 MEMBER integer media-bottom-margin 0 } ATTR enum print-quality 5 FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id OF-TYPE integer WITH-VALUE >0 EXPECT job-uri OF-TYPE uri } cups-2.4.7/examples/print-job-manual.test0000644000175000017500000000172314502571342020262 0ustar zdohnalzdohnal# Print a test page using print-job { # The name of the test... NAME "Print file using Print-Job" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype GROUP job-attributes-tag ATTR integer copies 1 ATTR collection media-col { MEMBER keyword media-source manual MEMBER collection media-size { MEMBER integer x-dimension 21590 MEMBER integer y-dimension 27940 } } ATTR keyword print-scaling none FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-letter.test0000644000175000017500000000127614502571342020307 0ustar zdohnalzdohnal# Print a test page using print-job { # The name of the test... NAME "Print file using Print-Job" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype GROUP job-attributes-tag ATTR integer copies 1 ATTR keyword media na_letter_8.5x11in FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-hold.test0000644000175000017500000000170514502571342017733 0ustar zdohnalzdohnal# Test print-job and job-hold-until attribute { # The name of the test... NAME "Print-Job w/job-hold-until=indefinite" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR keyword job-hold-until indefinite ATTR name job-name $filename FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } { NAME "Release-Job" OPERATION Release-Job GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id ATTR name requesting-user-name $user # What statuses are OK? STATUS successful-ok } cups-2.4.7/examples/print-job-gzip.test0000644000175000017500000000136214502571342017755 0ustar zdohnalzdohnal# Print a test page using print-job and compression=gzip { # The name of the test... NAME "Print file using Print-Job and compression=gzip" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype ATTR keyword compression gzip GROUP job-attributes-tag ATTR integer copies 1 COMPRESSION gzip FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-deflate.test0000644000175000017500000000137314502571342020412 0ustar zdohnalzdohnal# Print a test page using print-job and compression=gzip { # The name of the test... NAME "Print file using Print-Job and compression=deflate" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype ATTR keyword compression deflate GROUP job-attributes-tag ATTR integer copies 1 COMPRESSION deflate FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } cups-2.4.7/examples/print-job-and-wait.test0000644000175000017500000000206414502571342020510 0ustar zdohnalzdohnal# Print a test page using print-job { # The name of the test... NAME "Print file using Print-Job" # The operation to use OPERATION Print-Job # Attributes, starting in the operation group... GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR name requesting-user-name $user ATTR mimeMediaType document-format $filetype GROUP job-attributes-tag ATTR integer copies 1 FILE $filename # What statuses are OK? STATUS successful-ok STATUS successful-ok-ignored-or-substituted-attributes # What attributes do we expect? EXPECT job-id EXPECT job-uri } { NAME "Wait for job to complete..." OPERATION Get-Job-Attributes GROUP operation-attributes-tag ATTR charset attributes-charset utf-8 ATTR language attributes-natural-language en ATTR uri printer-uri $uri ATTR integer job-id $job-id ATTR name requesting-user-name $user STATUS successful-ok EXPECT job-id EXPECT job-state WITH-VALUE >5 REPEAT-NO-MATCH DISPLAY job-state DISPLAY job-state-reasons } cups-2.4.7/examples/ppdx.h0000644000175000017500000000313114502571342015321 0ustar zdohnalzdohnal/* * Header for PPD data encoding example code. * * Copyright 2012 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _PPDX_H_ # define _PPDX_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Maximum amount of data to encode/decode... */ # define PPDX_MAX_STATUS 1024 /* Limit on log messages in 10.6 */ # define PPDX_MAX_DATA 16777216/* 16MiB */ /* * 'ppdxReadData()' - Read encoded data from a ppd_file_t *. * * Reads chunked data in the PPD file "ppd" using the prefix "name". Returns * an allocated pointer to the data (which is nul-terminated for convenience) * along with the length of the data in the variable pointed to by "datasize", * which can be NULL to indicate the caller doesn't need the length. * * Returns NULL if no data is present in the PPD with the prefix. */ extern void *ppdxReadData(ppd_file_t *ppd, const char *name, size_t *datasize); /* * 'ppdxWriteData()' - Writes encoded data to stderr using PPD: messages. * * Writes chunked data to the PPD file using PPD: messages sent to stderr for * cupsd. "name" must be a valid PPD keyword string whose length is less than * 37 characters to allow for chunk numbering. "data" provides a pointer to the * data to be written, and "datasize" provides the length. */ extern void ppdxWriteData(const char *name, const void *data, size_t datasize); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_PPDX_H */ cups-2.4.7/examples/ppdx.c0000644000175000017500000001564514502571342015331 0ustar zdohnalzdohnal/* * Example code for encoding and decoding large amounts of data in a PPD file. * This would typically be used in a driver to save configuration/state * information that could be used by an application. * * Copyright 2012 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "ppdx.h" #include #include #include #include /* For compression of the data */ /* * Constants... */ #define PPDX_MAX_VALUE (PPD_MAX_LINE - PPD_MAX_NAME - 4) /* Max value length with delimiters + nul */ #define PPDX_MAX_CHUNK (PPDX_MAX_VALUE * 3 / 4) /* Max length of each chunk when Base64-encoded */ /* * 'ppdxReadData()' - Read encoded data from a ppd_file_t *. * * Reads chunked data in the PPD file "ppd" using the prefix "name". Returns * an allocated pointer to the data (which is nul-terminated for convenience) * along with the length of the data in the variable pointed to by "datasize", * which can be NULL to indicate the caller doesn't need the length. * * Returns NULL if no data is present in the PPD with the prefix. */ void * /* O - Data or NULL */ ppdxReadData(ppd_file_t *ppd, /* I - PPD file */ const char *name, /* I - Keyword prefix */ size_t *datasize) /* O - Size of data or NULL for don't care */ { char keyword[PPD_MAX_NAME], /* Keyword name */ decoded[PPDX_MAX_CHUNK + 1]; /* Decoded string */ unsigned chunk = 0; /* Current chunk number */ int len; /* Length of current chunk */ ppd_attr_t *attr; /* Keyword/value from PPD file */ Bytef *data; /* Pointer to data */ size_t alloc_size; /* Allocated size of data buffer */ z_stream decomp; /* Decompressor stream */ int error; /* Error/status from inflate() */ /* * Range check input... */ if (datasize) *datasize = 0; if (!ppd || !name) return (NULL); /* * First see if there are any instances of the named keyword in the PPD... */ snprintf(keyword, sizeof(keyword), "%s%04x", name, chunk); if ((attr = ppdFindAttr(ppd, keyword, NULL)) == NULL) return (NULL); /* * Allocate some memory and start decoding... */ data = malloc(257); alloc_size = 256; memset(&decomp, 0, sizeof(decomp)); decomp.next_out = data; decomp.avail_out = 256; inflateInit(&decomp); do { /* * Grab the data from the current attribute and decode it... */ len = sizeof(decoded); if (!httpDecode64_2(decoded, &len, attr->value) || len == 0) break; // printf("chunk %04x has length %d\n", chunk, len); /* * Decompress this chunk... */ decomp.next_in = decoded; decomp.avail_in = len; do { Bytef *temp; /* Temporary pointer */ size_t temp_size; /* Temporary allocation size */ // printf("Before inflate: avail_in=%d, avail_out=%d\n", decomp.avail_in, // decomp.avail_out); if ((error = inflate(&decomp, Z_NO_FLUSH)) < Z_OK) { fprintf(stderr, "ERROR: inflate returned %d (%s)\n", error, decomp.msg); break; } // printf("After inflate: avail_in=%d, avail_out=%d, error=%d\n", // decomp.avail_in, decomp.avail_out, error); if (decomp.avail_out == 0) { if (alloc_size < 2048) temp_size = alloc_size * 2; else if (alloc_size < PPDX_MAX_DATA) temp_size = alloc_size + 2048; else break; if ((temp = realloc(data, temp_size + 1)) == NULL) { free(data); return (NULL); } decomp.next_out = temp + (decomp.next_out - data); decomp.avail_out = temp_size - alloc_size; data = temp; alloc_size = temp_size; } } while (decomp.avail_in > 0); chunk ++; snprintf(keyword, sizeof(keyword), "%s%04x", name, chunk); } while ((attr = ppdFindAttr(ppd, keyword, NULL)) != NULL); inflateEnd(&decomp); /* * Nul-terminate the data (usually a string)... */ *(decomp.next_out) = '\0'; if (datasize) *datasize = decomp.next_out - data; return (data); } /* * 'ppdxWriteData()' - Writes encoded data to stderr using PPD: messages. * * Writes chunked data to the PPD file using PPD: messages sent to stderr for * cupsd. "name" must be a valid PPD keyword string whose length is less than * 37 characters to allow for chunk numbering. "data" provides a pointer to the * data to be written, and "datasize" provides the length. */ extern void ppdxWriteData(const char *name, /* I - Base name of keyword */ const void *data, /* I - Data to write */ size_t datasize) /* I - Number of bytes in data */ { char buffer[PPDX_MAX_CHUNK], /* Chunk buffer */ encoded[PPDX_MAX_VALUE + 1], /* Encoded data */ pair[PPD_MAX_LINE], /* name=value pair */ line[PPDX_MAX_STATUS], /* Line buffer */ *lineptr, /* Current position in line buffer */ *lineend; /* End of line buffer */ unsigned chunk = 0; /* Current chunk number */ int len; /* Length of current chunk */ z_stream comp; /* Compressor stream */ int error; /* Error/status from deflate() */ /* * Range check input... */ if (!name || (!data && datasize > 0) || datasize > PPDX_MAX_DATA) return; strlcpy(line, "PPD:", sizeof(line)); lineptr = line + 4; lineend = line + sizeof(line) - 2; if (datasize > 0) { /* * Compress and encode output... */ memset(&comp, 0, sizeof(comp)); comp.next_in = (Bytef *)data; comp.avail_in = datasize; deflateInit(&comp, 9); do { /* * Compress a chunk... */ comp.next_out = buffer; comp.avail_out = sizeof(buffer); if ((error = deflate(&comp, Z_FINISH)) < Z_OK) { fprintf(stderr, "ERROR: deflate returned %d (%s)\n", error, comp.msg); break; } /* * Write a chunk... */ len = sizeof(buffer) - comp.avail_out; httpEncode64_2(encoded, sizeof(encoded), buffer, len); len = (int)snprintf(pair, sizeof(pair), " %s%04x=%s", name, chunk, encoded); #ifdef DEBUG fprintf(stderr, "DEBUG: *%s%04x: \"%s\"\n", name, chunk, encoded); #endif /* DEBUG */ if ((lineptr + len) >= lineend) { *lineptr++ = '\n'; *lineptr = '\0'; fputs(line, stderr); lineptr = line + 4; } strlcpy(lineptr, pair, lineend - lineptr); lineptr += len; /* * Setup for the next one... */ chunk ++; } while (comp.avail_out == 0); } deflateEnd(&comp); /* * Write a trailing empty chunk to signal EOD... */ len = (int)snprintf(pair, sizeof(pair), " %s%04x=\"\"", name, chunk); #ifdef DEBUG fprintf(stderr, "DEBUG: *%s%04x: \"\"\n", name, chunk); #endif /* DEBUG */ if ((lineptr + len) >= lineend) { *lineptr++ = '\n'; *lineptr = '\0'; fputs(line, stderr); lineptr = line + 4; } strlcpy(lineptr, pair, lineend - lineptr); lineptr += len; *lineptr++ = '\n'; *lineptr = '\0'; fputs(line, stderr); } cups-2.4.7/examples/postscript.drv0000644000175000017500000000231414502571342017126 0ustar zdohnalzdohnal// Include standard font and media definitions #include #include // Specify this is a PostScript printer driver DriverType ps // List the fonts that are supported, in this case all standard fonts Font * // Manufacturer, model name, and version Manufacturer "Foo" ModelName "Foo LaserProofer 2000" Version 1.0 // PostScript printer attributes Attribute DefaultColorSpace "" Gray Attribute LandscapeOrientation "" Minus90 Attribute LanguageLevel "" "3" Attribute Product "" "(Foo LaserProofer 2000)" Attribute PSVersion "" "(3010) 0" Attribute TTRasterizer "" Type42 // Supported page sizes *MediaSize Letter MediaSize Legal MediaSize A4 // Query command for page size Attribute "?PageSize" "" " save currentpagedevice /PageSize get aload pop 2 copy gt {exch} if (Unknown) 23 dict dup [612 792] (Letter) put dup [612 1008] (Legal) put dup [595 842] (A4) put {exch aload pop 4 index sub abs 5 le exch 5 index sub abs 5 le and {exch pop exit} {pop} ifelse } bind forall = flush pop pop restore" // Specify the name of the PPD file we want to generate PCFileName "fooproof.ppd" cups-2.4.7/examples/onepage-letter.sla0000644000175000017500000012270014502571342017615 0ustar zdohnalzdohnal

    CUPS PPD Extensions

    This specification describes the attributes and extensions that CUPS adds to Adobe TechNote #5003: PostScript Printer Description File Format Specification Version 4.3. PostScript Printer Description ("PPD") files describe the capabilities of each printer and are used by CUPS to support printer-specific features and intelligent filtering.

    PPD File Syntax

    The PPD format is text-based and uses lines of up to 255 characters terminated by a carriage return, linefeed, or combination of carriage return and line feed. The following ABNF definition [RFC5234] defines the general format of lines in a PPD file:

    PPD-FILE = HEADER +(DATA / COMMENT / LINE-END)
    
    HEADER   = "*PPD-Adobe:" *WSP DQUOTE VERSION DQUOTE LINE-END
    
    VERSION  = "4.0" / "4.1" / "4.2" / "4.3"
    
    COMMENT  = "*%" *TCHAR LINE-END
    
    DATA     = "*" 1*KCHAR [ WSP 1*KCHAR [ "/" 1*TCHAR ] ] ":"
               1*(*WSP VALUE) LINE-END
    
    VALUE    = 1*TCHAR / DQUOTE 1*SCHAR DQUOTE
    
    KCHAR    = ALPHA / DIGIT / "_" / "." / "-"
    
    SCHAR    = LINE-END / WSP / %x21.23-7E.A0-FF
    
    TCHAR    = %x20-7E.A0-FF
    
    LINE-END = CR / LF / CR LF
    

    Auto-Configuration

    CUPS supports several methods of auto-configuration via PPD keywords.

    macOS 10.5APAutoSetupTool

    *APAutoSetupTool: "/LibraryPrinters/vendor/filename"

    This macOS keyword defines a program that sets the default option choices. It is run when a printer is added from the Add Printer window or the Nearby Printers list in the Print dialog.

    The program is provided with two arguments: the printer's device URI and the PPD file to be used for the printer. The program must write an updated PPD file to stdout.

    Examples:

    *% Use our setup tool when adding a printer
    *APAutoSetupTool: "/Library/Printers/vendor/Tools/autosetuptool"
    

    macOS 10.2/CUPS 1.4?MainKeyword

    *?MainKeyword: "
    PostScript query code that writes a message using the = operator...
    "
    *End

    The ?MainKeyword keyword defines PostScript code that determines the currently selected/enabled option keyword (choice) for the main keyword (option). It is typically used when communicating with USB, serial, Appletalk, and AppSocket (port 9100) printers.

    The PostScript code typically sends its response back using the = operator.

    Example:

    *OpenUI OptionDuplex/Duplexer Installed: Boolean
    *DuplexOptionDuplex: False
    *OptionDuplex False/Not Installed: ""
    *OptionDuplex True/Installed: ""
    
    *% Query the printer for the presence of the duplexer option...
    *?OptionDuplex: "
      currentpagedevice /Duplex known
      {(True)} {(False)} ifelse
      = flush
    "
    *End
    *CloseUI: OptionDuplex
    

    macOS 10.4/CUPS 1.5OIDMainKeyword

    *?OIDMainKeyword: ".n.n.n..."
    *OIDMainKeyword OptionKeyword1: "value"
    ...
    *OIDMainKeyword OptionKeywordN: "value"

    The OIDMainKeyword keyword is used to define SNMP OIDs that map to installable options. The first (query) line defines the OID to lookup on the network device. The second and subsequent keywords define a mapping from OID value to option keyword. Since SNMP is an IP-based network protocol, this method is typically only used to configure AppSocket, IPP, and LPD network printers.

    Examples:

    *% Get the installed memory on the printer...
    *?OIDInstalledMemory: ".1.3.6.1.2.1.25.2.2.0"
    *OIDInstalledMemory 16MB: "16384 KBytes"
    *OIDInstalledMemory 32MB: "32768 KBytes"
    *OIDInstalledMemory 48MB: "49152 KBytes"
    *OIDInstalledMemory 72MB: "73728 KBytes"
    

    Color Profiles

    CUPS supports three types of color profiles. The first type is based on sRGB and is used by the standard CUPS raster filters and GPL Ghostscript. The second type is based on ICC profiles and is used by the Quartz-based filters on macOS. The final type is based on well-known colorspaces such as sRGB and Adobe RGB.

    Note:

    At this time, none of the CUPS raster filters support ICC profiles. This will be addressed as time and resources permit.

    DeprecatedcupsColorProfile

    *cupsColorProfile Resolution/MediaType: "density gamma m00 m01 m02 m10 m11 m12 m20 m21 m22"

    This string keyword specifies an sRGB-based color profile consisting of gamma and density controls and a 3x3 CMY color transform matrix. This keyword is not supported on macOS.

    The Resolution and MediaType values may be "-" to act as a wildcard. Otherwise they must match one of the Resolution or MediaType option keywords defined in the PPD file.

    The density and gamma values define gamma and density adjustment function such that:

    f(x) = density * x gamma
    

    The m00 through m22 values define a 3x3 transformation matrix for the CMY color values. The density function is applied after the CMY transformation:

    | m00 m01 m02 |
    | m10 m11 m12 |
    | m20 m21 m22 |
    

    Examples:

    *% Specify a profile for printing at 360dpi on all media types
    *cupsColorProfile 360dpi/-: "1.0 1.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    
    *% Specify a profile for printing at 720dpi on Glossy media
    *cupsColorProfile 720dpi/Glossy: "1.0 2.5 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    
    *% Specify a default profile for printing at all other resolutions and media types
    *cupsColorProfile -/-: "0.9 2.0 1.0 0.0 -0.2 -0.4 1.0 0.0 -0.2 0.0 1.0"
    

    macOS 10.3/CUPS 1.2cupsICCProfile

    *cupsICCProfile ColorModel.MediaType.Resolution/Description: "filename"

    This keyword specifies an ICC color profile that is used to convert the document colors to the device colorspace. The ColorModel, MediaType, and Resolution option keywords specify a selector for color profiles. If omitted, the color profile will match any option keyword for the corresponding main keyword.

    The Description specifies human-readable text that is associated with the color profile. The filename portion specifies the ICC color profile to use; if the filename is not absolute, it is loaded relative to the /usr/share/cups/profiles directory.

    Examples:

    *% Specify a profile for CMYK printing at 360dpi on all media types
    *cupsICCProfile CMYK..360dpi/360dpi CMYK: "/Library/Printers/vendor/Profiles/foo-360-cmyk.icc"
    
    *% Specify a profile for RGB printing at 720dpi on Glossy media
    *cupsColorProfile RGB.Glossy.720dpi/720dpi Glossy: "/Library/Printers/vendor/Profiles/foo-720-glossy-rgb.icc"
    
    *% Specify a default profile for printing at all other resolutions and media types
    *cupsICCProfile ../Default: "/Library/Printers/vendor/Profiles/foo-default.icc"
    

    Customizing the Profile Selection Keywords

    The ColorModel, MediaType, and Resolution main keywords can be reassigned to different main keywords, allowing drivers to do color profile selection based on different parameters. The cupsICCQualifier1, cupsICCQualifier2, and cupsICCQualifier3 keywords define the mapping from selector to main keyword:

    *cupsICCQualifier1: MainKeyword1
    *cupsICCQualifier2: MainKeyword2
    *cupsICCQualifier3: MainKeyword3
    

    The default mapping is as follows:

    *cupsICCQualifier1: ColorModel
    *cupsICCQualifier2: MediaType
    *cupsICCQualifier3: Resolution
    

    macOS 10.4Custom Color Matching Support

    *APSupportsCustomColorMatching: true
    *APCustomColorMatchingName name/text: ""
    *APCustomColorMatchingProfile: profile
    *APDefaultCustomColorMatchingProfile: profile

    These keywords tell the macOS raster filters that the printer driver provides its own custom color matching and that generic color profiles should be used when generating 1-, 3-, and 4-component raster data as requested by the driver. The APCustomColorMatchingProfile and APDefaultColorMatchingProfile keywords specify alternate color profiles (sRGB or AdobeRGB) to use for 3-color (RGB) raster data.

    Note:

    Prior to macOS 10.6, the default RGB color space was Apple's "GenericRGB". The new default in macOS 10.6 and later is "sRGB". For more information, see "macOS v10.6: About gamma 2.2" on Apple's support site.

    macOS 10.5APCustomColorMatchingName

    *APCustomColorMatchingName name/text: ""

    This keyword defines an alternate name for the color matching provided by a driver in the Color Matching print panel. The default is to use the name "Vendor Matching" or its localized equivalent.

    Examples:

    *% Define the names for our color matching...
    *APCustomColorMatchingName name/AcmeColor(tm): ""
    *fr.APCustomColorMatchingName name/La AcmeColor(tm): ""
    

    macOS 10.5APCustomColorMatchingProfile

    *APCustomColorMatchingProfile: name

    This keyword defines a supported RGB color profile that can be used when doing custom color matching. Currently only sRGB, AdobeRGB, and GenericRGB are supported. If not specified, RGB data will use the GenericRGB colorspace.

    Note:

    If you provide multiple APCustomColorMatchingProfile keywords, you are responsible for providing the necessary user interface controls to select the profile in a print dialog pane. Add the named profile to the print settings using the key kPMCustomColorMatchingProfileKey.

    Examples:

    *% Use sRGB for RGB color by default, but support both sRGB and AdobeRGB
    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    *APCustomColorMatchingProfile: sRGB
    *APCustomColorMatchingProfile: AdobeRGB
    

    macOS 10.5APDefaultCustomColorMatchingProfile

    *APDefaultCustomColorMatchingProfile: name

    This keyword defines the default RGB color profile that will be used when doing custom color matching. Currently only sRGB, AdobeRGB, and GenericRGB are supported.

    Examples:

    *% Use sRGB for RGB color by default
    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    

    macOS 10.4APSupportsCustomColorMatching

    *APSupportsCustomColorMatching: boolean

    This keyword specifies that the driver provides its own custom color matching. When true, the default hand-off colorspace will be GenericGray, GenericRGB, or GenericCMYK depending on the number of components the driver requests. The APDefaultCustomColorMatchingProfile keyword can be used to override the default 3-component (RGB) colorspace.

    The default for APSupportsCustomColorMatching is false.

    Examples:

    *APSupportsCustomColorMatching: true
    *APDefaultCustomColorMatchingProfile: sRGB
    

    Constraints

    Constraints are option choices that are not allowed by the driver or device, for example printing 2-sided transparencies. All versions of CUPS support constraints defined by the legacy Adobe UIConstraints and NonUIConstraints keywords which support conflicts between any two option choices, for example:

    *% Do not allow 2-sided printing on transparency media
    *UIConstraints: "*Duplex *MediaType Transparency"
    *UIConstraints: "*MediaType Transparency *Duplex"
    

    While nearly all constraints can be expressed using these keywords, there are valid scenarios requiring constraints between more than two option choices. In addition, resolution of constraints is problematic since users and software have to guess how a particular constraint is best resolved.

    CUPS 1.4 and higher define two new keywords for constraints, cupsUIConstraints and cupsUIResolver. Each cupsUIConstraints keyword points to a cupsUIResolver keyword which specifies alternate options that resolve the conflict condition. The same cupsUIResolver can be used by multiple cupsUIConstraints.

    Note:

    When developing PPD files that contain constraints, it is very important to use the cupstestppd(1) program to verify that your constraints are accurate and cannot result in unresolvable option selections.

    CUPS 1.4/macOS 10.6cupsUIConstraints

    *cupsUIConstraints resolver: "*Keyword1 *Keyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 *Keyword2 OptionKeyword2 ..."
    *cupsUIConstraints resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."
    *cupsUIConstraints: "*InstallableKeyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."

    Lists two or more options which conflict. The "resolver" string is a (possibly unique) keyword which specifies which options to change when the constraint exists. When no resolver is provided, CUPS first tries the default choice followed by testing each option choice to resolve the conflict.

    Examples:

    *% Specify that 2-sided printing cannot happen on transparencies
    *cupsUIConstraints transparency: "*Duplex *MediaType Transparency"
    
    *% Specify that envelope printing cannot happen from the paper trays
    *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
    *cupsUIConstraints envelope: "*PageSize Env10 *InputSlot Tray1"
    *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
    *cupsUIConstraints envelope: "*PageSize EnvDL *InputSlot Tray2"
    
    *% Specify an installable option constraint for the envelope feeder
    *cupsUIConstraints: "*InputSlot EnvFeeder *InstalledEnvFeeder"
    
    *% Specify that photo printing cannot happen on plain paper or transparencies at 1200dpi
    *cupsUIConstraints photo: "*OutputMode Photo *MediaType Plain *Resolution 1200dpi"
    *cupsUIConstraints photo: "*OutputMode Photo *MediaType Transparency *Resolution 1200dpi"
    

    CUPS 1.4/macOS 10.6cupsUIResolver

    *cupsUIResolver resolver: "*Keyword1 OptionKeyword1 *Keyword2 OptionKeyword2 ..."

    Specifies two or more options to mark/select to resolve a constraint. The "resolver" string identifies a particular action to take for one or more cupsUIConstraints. The same action can be used for multiple constraints. The option keyword pairs are treated as an ordered list of option selections to try - only the first N selections will be used, where N is the minimum number of selections required. Because cupsResolveConflicts() will not change the most recent option selection passed to it, at least two options from the constraints must be listed to avoid situations where conflicts cannot be resolved.

    Examples:

    *% Specify the options to change for the 2-sided transparency constraint
    *cupsUIResolver transparency: "*Duplex None *MediaType Plain"
    
    *% Specify the options to change for the envelope printing constraints.  Notice
    *% that we try to change the InputSlot to either the envelope feeder or the
    *% manual feed first, then we change the page size...
    *cupsUIResolver envelope: "*InputSlot EnvFeeder *InputSlot ManualFeed *PageSize Letter"
    
    *% Specify the options to change for the photo printing constraints
    *cupsUIResolver photo: "*OutputMode Best *Resolution 600dpi"
    

    Globalized PPD Support

    CUPS 1.2 and higher adds support for PPD files containing multiple languages by following the following additional rules:

    1. The LanguageVersion MUST be English
    2. The LanguageEncoding MUST be ISOLatin1
    3. The cupsLanguages keyword MUST be provided and list each of the supported locales in the PPD file
    4. Main and option keywords MUST NOT exceed 34 (instead of 40) characters to allow room for the locale prefixes in translation keywords
    5. The main keyword "Translation" MUST NOT be used
    6. Translation strings included with the main and option keywords MUST NOT contain characters outside the ASCII subset of ISOLatin1 and UTF-8; developers wishing to use characters outside ASCII MUST provide a separate set of English localization keywords for the affected keywords.
    7. Localizations are specified using a locale prefix of the form "ll" or "ll_CC." where "ll" is the 2-letter ISO language code and "CC" is the 2-letter ISO country code
      • A generic language translation ("ll") SHOULD be provided with country-specific differences ("ll_CC") provided only as needed
      • For historical reasons, the "zh" and "zh_CN" locales map to Simplified Chinese while the "zh_TW" locale maps to Traditional Chinese
    8. Locale-specific translation strings MUST be encoded using UTF-8.
    9. Main keywords MUST be localized using one of the following forms:

      *ll.Translation MainKeyword/translation text: ""
      *ll_CC.Translation MainKeyword/translation text: ""

    10. Option keywords MUST be localized using one of the following forms:

      *ll.MainKeyword OptionKeyword/translation text: ""
      *ll_CC.MainKeyword OptionKeyword/translation text: ""

    11. Localization keywords MAY appear anywhere after the first line of the PPD file
    Note:

    We use a LanguageEncoding value of ISOLatin1 and limit the allowed base translation strings to ASCII to avoid character coding issues that would otherwise occur. In addition, requiring the base translation strings to be in English allows for easier fallback translation when no localization is provided in the PPD file for a given locale.

    Examples:

    *LanguageVersion: English
    *LanguageEncoding: ISOLatin1
    *cupsLanguages: "de fr_CA"
    *ModelName: "Foobar Laser 9999"
    
    *% Localize ModelName for French and German
    *fr_CA.Translation ModelName/La Foobar Laser 9999: ""
    *de.Translation ModelName/Foobar LaserDrucken 9999: ""
    
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
    *% Localize printer-state-reason for French and German
    *fr_CA.cupsIPPReason com.vendor-error/Une erreur sèrieuse s'est produite: "/help/com.vendor/error.html"
    *de.cupsIPPReason com.vendor-error/Eine ernste Störung trat: "/help/com.vendor/error.html"
    
    ...
    
    *OpenUI *InputSlot/Paper Source: PickOne
    *OrderDependency: 10 AnySetup *InputSlot
    *DefaultInputSlot: Auto
    *% Localize InputSlot for French and German
    *fr_CA.Translation InputSlot/Papier source: ""
    *de.Translation InputSlot/Papiereinzug: ""
    *InputSlot Auto/Default: "<</ManualFeed false>>setpagedevice"
    *% Localize InputSlot=Auto for French and German
    *fr_CA.InputSlot Auto/Par Defaut: ""
    *de.InputSlot Auto/Standard: ""
    *InputSlot Manual/Manual Feed: "<</ManualFeed true>>setpagedevice"
    *% Localize InputSlot=Manual for French and German
    *fr_CA.InputSlot Manual/Manuel mecanisme de alimentation: ""
    *de.InputSlot Manual/Manueller Einzug: ""
    *CloseUI: *InputSlot
    

    CUPS 1.3/macOS 10.6Custom Options

    CUPS supports custom options using an extension of the CustomPageSize and ParamCustomPageSize syntax:

    *CustomFoo True: "command"
    *ParamCustomFoo Name1/Text 1: order type minimum maximum
    *ParamCustomFoo Name2/Text 2: order type minimum maximum
    ...
    *ParamCustomFoo NameN/Text N: order type minimum maximum
    

    When the base option is part of the JCLSetup section, the "command" string contains JCL commands with "\order" placeholders for each numbered parameter. The CUPS API handles any necessary value quoting for HP-PJL commands. For example, if the JCL command string is "@PJL SET PASSCODE=\1" and the first option value is "1234" then CUPS will output the string "@PJL SET PASSCODE=1234".

    For non-JCLSetup options, the "order" value is a number from 1 to N and specifies the order of values as they are placed on the stack before the command. For example, if the PostScript command string is "<</cupsReal1 2 1 roll>>setpagedevice" and the option value is "2.0" then CUPS will output the string "2.0 <</cupsReal1 2 1 roll>>setpagedevice".

    The "type" is one of the following keywords:

    • curve - a real value from "minimum" to "maximum" representing a gamma correction curve using the function: f(x) = x value
    • int - an integer value from "minimum" to "maximum"
    • invcurve - a real value from "minimum" to "maximum" representing a gamma correction curve using the function: f(x) = x 1 / value
    • passcode - a string of numbers value with a minimum of "minimum" numbers and a maximum of "maximum" numbers ("minimum" and "maximum" are numbers and passcode strings are not displayed in the user interface)
    • password - a string value with a minimum of "minimum" characters and a maximum of "maximum" characters ("minimum" and "maximum" are numbers and password strings are not displayed in the user interface)
    • points - a measurement value in points from "minimum" to "maximum"
    • real - a real value from "minimum" to "maximum"
    • string - a string value with a minimum of "minimum" characters and a maximum of "maximum" characters ("minimum" and "maximum" are numbers)

    Examples:

    *% Base JCL key code option
    *JCLOpenUI JCLPasscode/Key Code: PickOne
    *OrderDependency: 10 JCLSetup *JCLPasscode
    *DefaultJCLPasscode: None
    *JCLPasscode None/No Code: ""
    *JCLPasscode 1111: "@PJL SET PASSCODE = 1111<0A>"
    *JCLPasscode 2222: "@PJL SET PASSCODE = 2222<0A>"
    *JCLPasscode 3333: "@PJL SET PASSCODE = 3333<0A>"
    *JCLCloseUI: *JCLPasscode
    
    *% Custom JCL key code option
    *CustomJCLPasscode True: "@PJL SET PASSCODE = \1<0A>"
    *ParamCustomJCLPasscode Code/Key Code: 1 passcode 4 4
    
    
    *% Base PostScript watermark option
    *OpenUI WatermarkText/Watermark Text: PickOne
    *OrderDependency: 10 AnySetup *WatermarkText
    *DefaultWatermarkText: None
    *WatermarkText None: ""
    *WatermarkText Draft: "<</cupsString1(Draft)>>setpagedevice"
    *CloseUI: *WatermarkText
    
    *% Custom PostScript watermark option
    *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice"
    *ParamCustomWatermarkText Text: 1 string 0 32
    
    
    *% Base PostScript gamma/density option
    *OpenUI GammaDensity/Gamma and Density: PickOne
    *OrderDependency: 10 AnySetup *GammaDensity
    *DefaultGammaDensity: Normal
    *GammaDensity Normal/Normal: "<</cupsReal1 1.0/cupsReal2 1.0>>setpagedevice"
    *GammaDensity Light/Lighter: "<</cupsReal1 0.9/cupsReal2 0.67>>setpagedevice"
    *GammaDensity Dark/Darker: "<</cupsReal1 1.1/cupsReal2 1.5>>setpagedevice"
    *CloseUI: *GammaDensity
    
    *% Custom PostScript gamma/density option
    *CustomGammaDensity True: "<</cupsReal1 3 -1 roll/cupsReal2 5 -1>>setpagedevice"
    *ParamCustomGammaDensity Gamma: 1 curve 0.1 10
    *ParamCustomGammaDensity Density: 2 real 0 2
    

    Writing PostScript Option Commands for Raster Drivers

    PPD files are used for both PostScript and non-PostScript printers. For CUPS raster drivers, you use a subset of the PostScript language to set page device keywords such as page size, resolution, and so forth. For example, the following code sets the page size to A4 size:

    *PageSize A4: "<</PageSize[595 842]>>setpagedevice"
    

    Custom options typically use other operators to organize the values into a key/value dictionary for setpagedevice. For example, our previous CustomWatermarkText option code uses the roll operator to move the custom string value into the dictionary for setpagedevice:

    *CustomWatermarkText True: "<</cupsString1 3 -1 roll>>setpagedevice"
    

    For a custom string value of "My Watermark", CUPS will produce the following PostScript code for the option:

    (My Watermark)
    <</cupsString1 3 -1 roll>>setpagedevice
    

    The code moves the string value ("My Watermark") from the bottom of the stack to the top, creating a dictionary that looks like:

    <</cupsString1(My Watermark)>>setpagedevice
    

    The resulting dictionary sets the page device attributes that are sent to your raster driver in the page header.

    Custom Page Size Code

    There are many possible implementations of the CustomPageSize code. For CUPS raster drivers, the following code is recommended:

    *ParamCustomPageSize Width:        1 points min-width max-width
    *ParamCustomPageSize Height:       2 points min-height max-height
    *ParamCustomPageSize WidthOffset:  3 points 0 0
    *ParamCustomPageSize HeightOffset: 4 points 0 0
    *ParamCustomPageSize Orientation:  5 int 0 0
    *CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
    

    Supported PostScript Operators

    CUPS supports the following PostScript operators in addition to the usual PostScript number, string (literal and hex-encoded), boolean, null, and name values:

    • << - Start a dictionary.
    • >> - End a dictionary.
    • [ - Start an array.
    • ] - End an array.
    • copy - Copy the top N objects on the stack.
    • dup - Copy the top object on the stack.
    • index - Copy the Nth from the top object on the stack.
    • pop - Pop the top object on the stack.
    • roll - Shift the top N objects on the stack.
    • setpagedevice - Set the page header values according to the key/value dictionary on the stack.
    Note:

    Never use the unsupported dict or put operators in your option code. These operators are typically used in option code dating back to Level 1 PostScript printers, which did not support the simpler << or >> operators. If you have old option code using dict or put, you can rewrite it very easily to use the newer << and >> operators instead. For example, the following code to set the page size:

    1 dict dup /PageSize [612 792] put setpagedevice
    

    can be rewritten as:

    << /PageSize [612 792] >> setpagedevice
    

    Supported Page Device Attributes

    Table 2 shows the supported page device attributes along with PostScript code examples.

    Table 2: Supported Page Device Attributes
    Name(s) Type Description Example(s)
    AdvanceDistance Integer Specifies the number of points to advance roll media after printing. <</AdvanceDistance 18>>setpagedevice
    AdvanceMedia Integer Specifies when to advance the media: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</AdvanceMedia 4>>setpagedevice
    Collate Boolean Specifies whether collated copies are required. <</Collate true>>setpagedevice
    CutMedia Integer Specifies when to cut the media: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</CutMedia 1>>setpagedevice
    Duplex Boolean Specifies whether 2-sided printing is required. <</Duplex true>>setpagedevice
    HWResolution Integer Array Specifies the resolution of the page image in pixels per inch. <</HWResolution[1200 1200]>>setpagedevice
    InsertSheet Boolean Specifies whether to insert a blank sheet before the job. <</InsertSheet true>>setpagedevice
    Jog Integer Specifies when to shift the media in the output bin: 0 = never, 1 = after the file, 2 = after the job, 3 = after the set, and 4 = after the page. <</Jog 2>>setpagedevice
    LeadingEdge Integer Specifies the leading edge of the media: 0 = top, 1 = right, 2 = bottom, 3 = left. <</LeadingEdge 0>>setpagedevice
    ManualFeed Boolean Specifies whether media should be drawn from the manual feed tray. Note: The MediaPosition attribute is preferred over the ManualFeed attribute. <</ManualFeed true>>setpagedevice
    MediaClass String Specifies a named media. <</MediaClass (Invoices)>>setpagedevice
    MediaColor String Specifies the color of the media. <</MediaColor >>setpagedevice
    MediaPosition Integer Specifies the tray or source of the media. <</MediaPosition 12>>setpagedevice
    MediaType String Specifies the general media type. <</MediaType (Glossy)>>setpagedevice
    MediaWeight Integer Specifies the media weight in grams per meter2. <</MediaWeight 100>>setpagedevice
    MirrorPrint Boolean Specifies whether to flip the output image horizontally. <</MirrorPrint true>>setpagedevice
    NegativePrint Boolean Specifies whether to invert the output image. <</NegativePrint true>>setpagedevice
    NumCopies Integer Specifies the number of copies to produce of each page. <</NumCopies 100>>setpagedevice
    Orientation Integer Specifies the orientation of the output: 0 = portrait, 1 = landscape rotated counter-clockwise, 2 = upside-down, 3 = landscape rotated clockwise. <</Orientation 3>>setpagedevice
    OutputFaceUp Boolean Specifies whether to place the media face-up in the output bin/tray. <</OutputFaceUp true>>setpagedevice
    OutputType String Specifies the output type name. <</OutputType (Photo)>>setpagedevice
    PageSize Integer/Real Array Specifies the width and length/height of the page in points. <</PageSize[595 842]>>setpagedevice
    Separations Boolean Specifies whether to produce color separations. <</Separations true>>setpagedevice
    TraySwitch Boolean Specifies whether to switch trays automatically. <</TraySwitch true>>setpagedevice
    Tumble Boolean Specifies whether the back sides of pages are rotated 180 degrees. <</Tumble true>>setpagedevice
    cupsBorderlessScalingFactor Real Specifies the amount to scale the page image dimensions. <</cupsBorderlessScalingFactor 1.01>>setpagedevice
    cupsColorOrder Integer Specifies the order of colors: 0 = chunked, 1 = banded, 2 = planar. <</cupsColorOrder 0>>setpagedevice
    cupsColorSpace Integer Specifies the page image colorspace: 0 = W, 1 = RGB, 2 = RGBA, 3 = K, 4 = CMY, 5 = YMC, 6 = CMYK, 7 = YMCK, 8 = KCMY, 9 = KCMYcm, 10 = GMCK, 11 = GMCS, 12 = White, 13 = Gold, 14 = Silver, 15 = CIE XYZ, 16 = CIE Lab, 17 = RGBW, 32 to 46 = CIE Lab (1 to 15 inks) <</cupsColorSpace 1 >>setpagedevice
    cupsCompression Integer Specifies a driver compression type/mode. <</cupsCompression 2>>setpagedevice
    cupsInteger0
    ...
    cupsInteger15
    Integer Specifies driver integer values. <</cupsInteger11 1234>>setpagedevice
    cupsMarkerType String Specifies the type of ink/toner to use. <</cupsMarkerType (Black+Color)>>setpagedevice
    cupsMediaType Integer Specifies a numeric media type. <</cupsMediaType 999>>setpagedevice
    cupsPageSizeName String Specifies the name of the page size. <</cupsPageSizeName (A4.Full)>>setpagedevice
    cupsPreferredBitsPerColor Integer Specifies the preferred number of bits per color, typically 8 or 16. <</cupsPreferredBitsPerColor 16>>setpagedevice
    cupsReal0
    ...
    cupsReal15
    Real Specifies driver real number values. <</cupsReal15 1.234>>setpagedevice
    cupsRenderingIntent String Specifies the color rendering intent. <</cupsRenderingIntent (AbsoluteColorimetric)>>setpagedevice
    cupsRowCount Integer Specifies the number of rows of raster data to print on each line for some drivers. <</cupsRowCount 24>>setpagedevice
    cupsRowFeed Integer Specifies the number of rows to feed between passes for some drivers. <</cupsRowFeed 17>>setpagedevice
    cupsRowStep Integer Specifies the number of lines between columns/rows on the print head for some drivers. <</cupsRowStep 2>>setpagedevice
    cupsString0
    ...
    cupsString15
    String Specifies driver string values. <</cupsString0(String Value)>>setpagedevice

    Media Keywords

    The CUPS media keywords allow drivers to specify alternate custom page size limits based on up to two options.

    CUPS 1.4/macOS 10.6cupsMediaQualifier2

    *cupsMediaQualifier2: MainKeyword

    This keyword specifies the second option to use for overriding the custom page size limits.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMediaQualifier3

    *cupsMediaQualifier3: MainKeyword

    This keyword specifies the third option to use for overriding the custom page size limits.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMinSize

    *cupsMinSize .Qualifier2.Qualifier3: "width length"
    *cupsMinSize .Qualifier2.: "width length"
    *cupsMinSize ..Qualifier3: "width length"

    This keyword specifies alternate minimum custom page sizes in points. The cupsMediaQualifier2 and cupsMediaQualifier3 keywords are used to identify options to use for matching.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsMaxSize

    *cupsMaxSize .Qualifier2.Qualifier3: "width length"
    *cupsMaxSize .Qualifier2.: "width length"
    *cupsMaxSize ..Qualifier3: "width length"

    This keyword specifies alternate maximum custom page sizes in points. The cupsMediaQualifier2 and cupsMediaQualifier3 keywords are used to identify options to use for matching.

    Example:

    *% Specify alternate custom page size limits based on InputSlot and Quality
    *cupsMediaQualifier2: InputSlot
    *cupsMediaQualifier3: Quality
    *cupsMaxSize .Manual.: "1000 1000"
    *cupsMinSize .Manual.: "100 100"
    *cupsMinSize .Manual.Photo: "200 200"
    *cupsMinSize ..Photo: "300 300"
    

    CUPS 1.4/macOS 10.6cupsPageSizeCategory

    *cupsPageSizeCategory name/text: "name name2 ... nameN"

    This keyword lists related paper size names that should be grouped together in the Print or Page Setup dialogs. The "name" portion of the keyword specifies the root/default size for the grouping. On macOS the grouped paper sizes are shown in a submenu of the main paper size. When omitted, sizes with the same dimensions are automatically grouped together, for example "Letter" and "Letter.Borderless".

    Example:

    *% Specify grouping of borderless/non-borderless sizes
    *cupsPageSizeCategory Letter/US Letter: "Letter Letter.Borderless"
    *cupsPageSizeCategory A4/A4: "A4 A4.Borderless"
    

    General Attributes

    CUPS 1.3/macOS 10.5cupsBackSide

    *cupsBackSide: keyword

    This keyword requests special handling of the back side of pages when doing duplexed (2-sided) output. Table 1 shows the supported keyword values for this keyword and their effect on the raster data sent to your driver. For example, when cupsBackSide is Rotated and Tumble is false, your driver will receive print data starting at the bottom right corner of the page, with each line going right-to-left instead of left-to-right. The default value is Normal.

    Note:

    cupsBackSide replaces the older cupsFlipDuplex keyword - if cupsBackSide is specified, cupsFlipDuplex will be ignored.

    Table 1: Back Side Raster Coordinate System
    cupsBackSide Tumble Value Image Presentation
    Normal false Left-to-right, top-to-bottom
    Normal true Left-to-right, top-to-bottom
    ManualTumble false Left-to-right, top-to-bottom
    ManualTumble true Right-to-left, bottom-to-top
    Rotated false Right-to-left, bottom-to-top
    Rotated true Right-to-left, top-to-bottom
    Flipped * false Left-to-right, bottom-to-top
    Flipped * true Right-to-left, top-to-bottom

    * - Not supported in macOS 10.5.x and earlier

    Figure 1: Back side images
    Back side images

    Examples:

    *% Flip the page image for the back side of duplexed output
    *cupsBackSide: Flipped
    
    *% Rotate the page image for the back side of duplexed output
    *cupsBackSide: Rotated
    

    Also see the related APDuplexRequiresFlippedMargin keyword.

    CUPS 1.4/macOS 10.6cupsCommands

    *cupsCommands: "name name2 ... nameN"

    This string keyword specifies the commands that are supported by the CUPS command file filter for this device. The command names are separated by whitespace.

    Example:

    *% Specify the list of commands we support
    *cupsCommands: "AutoConfigure Clean PrintSelfTestPage ReportLevels com.vendor.foo"
    

    CUPS 1.3/macOS 10.5cupsEvenDuplex

    *cupsEvenDuplex: boolean

    This boolean keyword notifies the RIP filters that the destination printer requires an even number of pages when 2-sided printing is selected. The default value is false.

    Example:

    *% Always send an even number of pages when duplexing
    *cupsEvenDuplex: true
    

    cupsFax

    *cupsFax: boolean

    This boolean keyword specifies whether the PPD defines a facsimile device. The default is false.

    Examples:

    *cupsFax: true
    

    cupsFilter

    *cupsFilter: "source/type cost program"

    This string keyword provides a conversion rule from the given source type to the printer's native format using the filter "program". If a printer supports the source type directly, the special filter program "-" may be specified.

    Examples:

    *% Standard raster printer driver filter
    *cupsFilter: "application/vnd.cups-raster 100 rastertofoo"
    
    *% Plain text filter
    *cupsFilter: "text/plain 10 texttofoo"
    
    *% Pass-through filter for PostScript printers
    *cupsFilter: "application/vnd.cups-postscript 0 -"
    

    CUPS 1.5cupsFilter2

    *cupsFilter2: "source/type destination/type cost program"

    This string keyword provides a conversion rule from the given source type to the printer's native format using the filter "program". If a printer supports the source type directly, the special filter program "-" may be specified. The destination type is automatically created as needed and is passed to the filters and backend as the FINAL_CONTENT_TYPE value.

    Note:

    The presence of a single cupsFilter2 keyword in the PPD file will hide any cupsFilter keywords from the CUPS scheduler. When using cupsFilter2 to provide filters specific for CUPS 1.5 and later, provide a cupsFilter2 line for every filter and a cupsFilter line for each filter that is compatible with older versions of CUPS.

    Examples:

    *% Standard raster printer driver filter
    *cupsFilter2: "application/vnd.cups-raster application/vnd.foo 100 rastertofoo"
    
    *% Plain text filter
    *cupsFilter2: "text/plain application/vnd.foo 10 texttofoo"
    
    *% Pass-through filter for PostScript printers
    *cupsFilter2: "application/vnd.cups-postscript application/postscript 0 -"
    

    CUPS 2.3cupsFinishingTemplate

    *cupsFinishingTemplate name/text: ""

    This option keyword specifies a finishing template (preset) that applies zero or more finishing processes to a job. Unlike cupsIPPFinishings, only one template can be selected by the user. PPD files also generally apply a constraint between this option and other finishing options like Booklet, FoldType, PunchMedia, and StapleWhen.

    Examples:

    *cupsFinishingTemplate none/None: ""
    *cupsFinishingTemplate fold/Letter Fold: ""
    *cupsFinishingTemplate punch/2/3-Hole Punch: ""
    *cupsFinishingTemplate staple/Corner Staple: ""
    *cupsFinishingTemplate staple-dual/Double Staple: ""
    *cupsFinishingTemplate staple-and-fold/Corner Staple and Letter Fold: ""
    *cupsFinishingTemplate staple-and-punch/Corner Staple and 2/3-Hole Punch: ""
    

    DeprecatedcupsFlipDuplex

    *cupsFlipDuplex: boolean

    Due to implementation differences between macOS and Ghostscript, the cupsFlipDuplex keyword is deprecated. Instead, use the cupsBackSide keyword to specify the coordinate system (pixel layout) of the page data on the back side of duplex pages.

    The value true maps to a cupsBackSide value of Rotated on macOS and Flipped with Ghostscript.

    The default value is false.

    Note:

    macOS drivers that previously used cupsFlipDuplex may wish to provide both the old and new keywords for maximum compatibility, for example:

    *cupsBackSide: Rotated
    *cupsFlipDuplex: true
    

    Similarly, drivers written for other operating systems using Ghostscript can use:

    *cupsBackSide: Flipped
    *cupsFlipDuplex: true
    

    CUPS 1.3/macOS 10.5cupsIPPFinishings

    *cupsIPPFinishings number/text: "*Option Choice ..."

    This keyword defines a mapping from IPP finishings values to PPD options and choices.

    Examples:

    *cupsIPPFinishings 4/staple: "*StapleLocation SinglePortrait"
    *cupsIPPFinishings 5/punch: "*PunchMedia Yes *PunchLocation LeftSide"
    *cupsIPPFinishings 20/staple-top-left: "*StapleLocation SinglePortrait"
    *cupsIPPFinishings 21/staple-bottom-left: "*StapleLocation SingleLandscape"
    

    CUPS 1.3/macOS 10.5cupsIPPReason

    *cupsIPPReason reason/Reason Text: "optional URIs"

    This optional keyword maps custom printer-state-reasons keywords that are generated by the driver to human readable text. The optional URIs string contains zero or more URIs separated by a newline. Each URI can be a CUPS server absolute path to a help file under the scheduler's DocumentRoot directory, a full HTTP URL ("http://www.domain.com/path/to/help/page.html"), or any other valid URI which directs the user at additional information concerning the condition that is being reported.

    Since the reason text is limited to 80 characters by the PPD specification, longer text strings can be included by URI-encoding the text with the "text" scheme, for example "text:some%20text". Multiple text URIs are combined by the ppdLocalizeIPPReason into a single string that can be displayed to the user.

    Examples:

    *% Map com.vendor-error to text but no page
    *cupsIPPReason com.vendor-error/A serious error occurred: ""
    
    *% Map com.vendor-error to more than 80 characters of text but no page
    *cupsIPPReason com.vendor-error/A serious error occurred: "text:Now%20is%20the%20time
    text:for%20all%20good%20men%20to%20come%20to%20the%20aid%20of%20their%20country."
    
    *% Map com.vendor-error to text and a local page
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html"
    
    *% Map com.vendor-error to text and a remote page
    *cupsIPPReason com.vendor-error/A serious error occurred: "http://www.vendor.com/help"
    
    *% Map com.vendor-error to text and a local, Apple help book, and remote page
    *APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
    *cupsIPPReason com.vendor-error/A serious error occurred: "/help/com.vendor/error.html
    help:anchor='com.vendor-error'%20bookID=Vendor%20Help
    http://www.vendor.com/help"
    *End
    

    CUPS 1.5cupsIPPSupplies

    *cupsIPPSupplies: boolean

    This keyword tells the IPP backend whether it should report the current marker-xxx supply attribute values. The default value is True.

    Example:

    *% Do not use IPP marker-xxx attributes to report supply levels
    *cupsIPPSupplies: False
    

    CUPS 1.7/macOS 10.9cupsJobAccountId

    *cupsJobAccountId: boolean

    This keyword defines whether the printer accepts the job-account-id IPP attribute.

    Example:

    *% Specify the printer accepts the job-account-id IPP attribute.
    *cupsJobAccountId: True
    

    CUPS 1.7/macOS 10.9cupsJobAccountingUserId

    *cupsJobAccountingUserId: boolean

    This keyword defines whether the printer accepts the job-accounting-user-id IPP attribute.

    Example:

    *% Specify the printer accepts the job-accounting-user-id IPP attribute.
    *cupsJobAccountingUserId: True
    

    CUPS 1.7/macOS 10.9cupsJobPassword

    *cupsJobPassword: "format"

    This keyword defines the format of the "job-password" IPP attribute, if supported by the printer. The following format characters are supported:

    • 1: US ASCII digits.
    • A: US ASCII letters.
    • C: US ASCII letters, numbers, and punctuation.
    • .: Any US ASCII printable character (0x20 to 0x7e).
    • N: Any Unicode digit character.
    • U: Any Unicode letter character.
    • *: Any Unicode (utf-8) character.

    The format characters are repeated to indicate the length of the password string. For example, "1111" indicated a 4-digit US ASCII PIN code.

    Example:

    *% Specify the printer supports 4-digit PIN codes.
    *cupsJobPassword: "1111"
    

    CUPS 1.2/macOS 10.5cupsLanguages

    *cupsLanguages: "locale list"

    This keyword describes which language localizations are included in the PPD. The "locale list" string is a space-delimited list of locale names ("en", "en_US", "fr_CA", etc.)

    Example:

    *% Specify Canadian, UK, and US English, and Canadian and French French
    *cupsLanguages: "en_CA en_UK en_US fr_CA fr_FR"
    

    CUPS 1.7/macOS 10.9cupsMandatory

    *cupsMandatory: "attribute1 attribute2 ... attributeN"

    This keyword defines a list of IPP attributes that must be provided when submitting a print job creation request.

    Example:

    *% Specify that the user must supply a job-password
    *cupsMandatory: "job-password job-password-encryption"
    

    cupsManualCopies

    *cupsManualCopies: boolean

    This boolean keyword notifies the RIP filters that the destination printer does not support copy generation in hardware. The default value is false.

    Example:

    *% Tell the RIP filters to generate the copies for us
    *cupsManualCopies: True
    

    CUPS 1.4/macOS 10.6cupsMarkerName

    *cupsMarkerName/Name Text: ""

    This optional keyword maps marker-names strings that are generated by the driver to human readable text.

    Examples:

    *% Map cyanToner to "Cyan Toner"
    *cupsMarkerName cyanToner/Cyan Toner: ""
    

    CUPS 1.4/macOS 10.6cupsMarkerNotice

    *cupsMarkerNotice: "disclaimer text"

    This optional keyword provides disclaimer text for the supply level information provided by the driver, typically something like "supply levels are approximate".

    Examples:

    *cupsMarkerNotice: "Supply levels are approximate."
    

    CUPS 1.6/macOS 10.8cupsMaxCopies

    *cupsMaxCopies: integer

    This integer keyword notifies the filters that the destination printer supports up to N copies in hardware. The default value is 9999.

    Example:

    *% Tell the RIP filters we can do up to 99 copies
    *cupsMaxCopies: 99
    

    cupsModelNumber

    *cupsModelNumber: number

    This integer keyword specifies a printer-specific model number. This number can be used by a filter program to adjust the output for a specific model of printer.

    Example:

    *% Specify an integer for a driver-specific model number
    *cupsModelNumber: 1234
    

    CUPS 1.3/macOS 10.5cupsPJLCharset

    *cupsPJLCharset: "ISO character set name"

    This string keyword specifies the character set that is used for strings in PJL commands. If not specified, US-ASCII is assumed.

    Example:

    *% Specify UTF-8 is used in PJL strings
    *cupsPJLCharset: "UTF-8"
    

    CUPS 1.4/macOS 10.6cupsPJLDisplay

    *cupsPJLDisplay: "what"

    This optional keyword specifies which command is used to display the job ID, name, and user on the printer's control panel. "What" is either "none" to disable this functionality, "job" to use "@PJL JOB DISPLAY", or "rdymsg" to use "@PJL RDYMSG DISPLAY". The default is "job".

    Examples:

    *% Display job information using @PJL SET RDYMSG DISPLAY="foo"
    *cupsPJLDisplay: "rdymsg"
    
    *% Display job information display
    *cupsPJLDisplay: "none"
    

    CUPS 1.2/macOS 10.5cupsPortMonitor

    *cupsPortMonitor urischeme/Descriptive Text: "port monitor"

    This string keyword specifies printer-specific "port monitor" filters that may be used with the printer. The CUPS scheduler also looks for the Protocols keyword to see if the BCP or TBCP protocols are supported. If so, the corresponding port monitor ("bcp" and "tbcp", respectively) is listed in the printer's port-monitor-supported keyword.

    The "urischeme" portion of the keyword specifies the URI scheme that this port monitor should be used for. Typically this is used to pre-select a particular port monitor for each type of connection that is supported by the printer. The "port monitor" string can be "none" to disable the port monitor for the given URI scheme.

    Examples:

    *% Specify a PostScript printer that supports the TBCP protocol
    *Protocols: TBCP PJL
    
    *% Specify that TBCP should be used for socket connections but not USB
    *cupsPortMonitor socket/AppSocket Printing: "tbcp"
    *cupsPortMonitor usb/USB Printing: "none"
    
    *% Specify a printer-specific port monitor for an Epson USB printer
    *cupsPortMonitor usb/USB Status Monitor: "epson-usb"
    

    CUPS 1.3/macOS 10.5cupsPreFilter

    *cupsPreFilter: "source/type cost program"

    This string keyword provides a pre-filter rule. The pre-filter program will be inserted in the conversion chain immediately before the filter that accepts the given MIME type.

    Examples:

    *% PDF pre-filter
    *cupsPreFilter: "application/pdf 100 mypdfprefilter"
    
    *% PNG pre-filter
    *cupsPreFilter: "image/png 0 mypngprefilter"
    

    CUPS 1.5cupsPrintQuality

    *cupsPrintQuality keyword/text: "code"

    This UI keyword defines standard print qualities that directly map from the IPP "print-quality" job template keyword. Standard keyword values are "Draft", "Normal", and "High" which are mapped from the IPP "print-quality" values 3, 4, and 5 respectively. Each cupsPrintQuality option typically sets output mode and resolution parameters in the page device dictionary, eliminating the need for separate (and sometimes confusing) output mode and resolution options.

    Note:

    Unlike all of the other keywords defined in this document, cupsPrintQuality is a UI keyword that MUST be enclosed inside the PPD OpenUI and CloseUI keywords.

    Examples:

    *OpenUI *cupsPrintQuality/Print Quality: PickOne
    *OrderDependency: 10 AnySetup *cupsPrintQuality
    *DefaultcupsPrintQuality: Normal
    *cupsPrintQuality Draft/Draft: "code"
    *cupsPrintQuality Normal/Normal: "code"
    *cupsPrintQuality High/Photo: "code"
    *CloseUI: *cupsPrintQuality
    

    CUPS 1.5cupsSingleFile

    *cupsSingleFile: Boolean

    This boolean keyword tells the scheduler whether to print multiple files in a job together or singly. The default is "False" which uses a single instance of the backend for all files in the print job. Setting this keyword to "True" will result in separate instances of the backend for each file in the print job.

    Examples:

    *% Send all print data to a single backend
    *cupsSingleFile: False
    
    *% Send each file using a separate backend
    *cupsSingleFile: True
    

    CUPS 1.4/macOS 10.6cupsSNMPSupplies

    *cupsSNMPSupplies: boolean

    This keyword tells the standard network backends whether they should query the standard SNMP Printer MIB OIDs for supply levels. The default value is True.

    Example:

    *% Do not use SNMP queries to report supply levels
    *cupsSNMPSupplies: False
    

    cupsVersion

    *cupsVersion: major.minor

    This required keyword describes which version of the CUPS PPD file extensions was used. Currently it must be the string "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", or "1.6".

    Example:

    *% Specify a CUPS 1.2 driver
    *cupsVersion: "1.2"
    

    CUPS 1.6/macOS 10.8JCLToPDFInterpreter

    *JCLToPDFInterpreter: "JCL"

    This keyword provides the JCL command to insert a PDF job file into a printer-ready data stream. The JCL command is added after the JCLBegin value and any commands for JCL options in the PPD file.

    Example:

    *% PJL command to start the PDF interpreter
    *JCLToPDFInterpreter: "@PJL ENTER LANGUAGE = PDF<0A>"
    

    macOS Attributes

    DeprecatedAPDialogExtension

    *APDialogExtension: "/Library/Printers/vendor/filename.plugin"

    This keyword defines additional option panes that are displayed in the print dialog. Each keyword adds one or more option panes. See the "OutputBinsPDE" example and Apple Technical Q&A QA1352 for information on writing your own print dialog plug-ins.

    Note:

    Since 2010, AirPrint has enabled the printing of full quality photos and documents from the Mac without requiring driver software. Starting with macOS 10.12, system level security features prevent print dialog plug-ins from being loaded into applications that have enabled the library validation security feature. As of macOS 10.14 the APDialogExtension attribute used to create macOS print drivers is deprecated. All new printer models should support AirPrint moving forward.

    Examples:

    *% Add two panes for finishing and driver options
    *APDialogExtension: "/Library/Printers/vendor/finishing.plugin"
    *APDialogExtension: "/Library/Printers/vendor/options.plugin"
    

    macOS 10.4APDuplexRequiresFlippedMargin

    *APDuplexRequiresFlippedMargin: boolean

    This boolean keyword notifies the RIP filters that the destination printer requires the top and bottom margins of the ImageableArea to be swapped for the back page. The default is true when cupsBackSide is Flipped and false otherwise. Table 2 shows how APDuplexRequiresFlippedMargin interacts with cupsBackSide and the Tumble page attribute.

    Table 2: Margin Flipping Modes
    APDuplexRequiresFlippedMargin cupsBackSide Tumble Value Margins
    false any any Normal
    any Normal any Normal
    true ManualDuplex false Normal
    true ManualDuplex true Flipped
    true Rotated false Flipped
    true Rotated true Normal
    true or unspecified Flipped any Flipped

    Example:

    *% Rotate the back side images
    *cupsBackSide: Rotated
    
    *% Don't swap the top and bottom margins for the back side
    *APDuplexRequiresFlippedMargin: false
    

    Also see the related cupsBackSide keyword.

    APHelpBook

    *APHelpBook: "bundle URL"

    This string keyword specifies the Apple help book bundle to use when looking up IPP reason codes for this printer driver. The cupsIPPReason keyword maps "help" URIs to this file.

    Example:

    *APHelpBook: "file:///Library/Printers/vendor/Help.bundle"
    

    macOS 10.6APICADriver

    *APICADriver: boolean

    This keyword specifies whether the device has a matching Image Capture Architecture (ICA) driver for scanning. The default is False.

    Examples:

    *APICADriver: True
    *APScanAppBundleID: "com.apple.ImageCaptureApp"
    

    macOS 10.3APPrinterIconPath

    *APPrinterIconPath: "/Library/Printers/vendor/filename.icns"

    This keyword defines the location of a printer icon file to use when displaying the printer. The file must be in the Apple icon format.

    Examples:

    *% Apple icon file
    *APPrinterIconPath: "/Library/Printers/vendor/Icons/filename.icns"
    

    macOS 10.4APPrinterLowInkTool

    *APPrinterLowInkTool: "/Library/Printers/vendor/program"

    This keyword defines an program that checks the ink/toner/marker levels on a printer, returning an XML document with those levels. See the "InkTool" example and Apple Technical Note TN2144 for more information.

    Examples:

    *% Use a vendor monitoring program
    *APPrinterLowInkTool: "/Library/Printers/vendor/Tools/lowinktool"
    

    macOS 10.5APPrinterPreset

    *APPrinterPreset name/text: "*Option Choice ..."

    This keyword defines presets for multiple options that show up in the print dialog of applications (such as iPhoto) that set the job style hint to NSPrintPhotoJobStyleHint. Each preset maps to one or more pairs of PPD options and choices as well as providing key/value data for the application. The following standard preset names are currently defined:

    • General_with_Paper_Auto-Detect; Normal quality general printing with auto-detected media.
    • General_with_Paper_Auto-Detect_-_Draft; Draft quality general printing with auto-detected media.
    • General_on_Plain_Paper; Normal quality general printing on plain paper.
    • General_on_Plain_Paper_-_Draft; Draft quality general printing on plain paper.
    • Photo_with_Paper_Auto-Detect; Normal quality photo printing with auto-detected media.
    • Photo_with_Paper_Auto-Detect_-_Fine; High quality photo printing with auto-detected media.
    • Photo_on_Plain_Paper; Normal quality photo printing on plain paper.
    • Photo_on_Plain_Paper_-_Fine; High quality photo printing on plain paper.
    • Photo_on_Photo_Paper; Normal quality photo printing on glossy photo paper.
    • Photo_on_Photo_Paper_-_Fine; High quality photo printing on glossy photo paper.
    • Photo_on_Matte_Paper; Normal quality photo printing on matte paper.
    • Photo_on_Matte_Paper_-_Fine; High quality photo printing on matte paper.

    The value string consists of pairs of keywords, either an option name and choice (*MainKeyword OptionKeyword) or a preset identifier and value (com.apple.print.preset.foo value). The following preset identifiers are currently used:

    • com.apple.print.preset.graphicsType; specifies the type of printing used for this printing - "General" for general purpose printing and "Photo" for photo printing.
    • com.apple.print.preset.media-front-coating; specifies the media type selected by this preset - "none" (plain paper), "glossy", "high-gloss", "semi-gloss", "satin", "matte", and "autodetect".
    • com.apple.print.preset.output-mode; specifies the output mode for this preset - "color" (default for color printers) or "monochrome" (grayscale, default for B&W printers).
    • com.apple.print.preset.quality; specifies the overall print quality selected by this preset - "low" (draft), "mid" (normal), or "high".

    Presets, like options, can also be localized in multiple languages.

    Examples:

    *APPrinterPreset Photo_on_Photo_Paper/Photo on Photo Paper: "
      *MediaType Glossy
      *ColorModel RGB
      *Resolution 300dpi
      com.apple.print.preset.graphicsType Photo
      com.apple.print.preset.quality mid
      com.apple.print.preset.media-front-coating glossy"
    *End
    *fr.APPrinterPreset Photo_on_Photo_Paper/Photo sur papier photographique: ""
    

    macOS 10.3APPrinterUtilityPath

    *APPrinterPrinterUtilityPath: "/Library/Printers/vendor/filename.app"

    This keyword defines a GUI application that can be used to do printer maintenance functions such as cleaning the print head(s). See ... for more information.

    Examples:

    *% Define the printer utility application
    *APPrinterPrinterUtilityPath: "/Library/Printers/vendor/Tools/utility.app"
    

    macOS 10.6APScannerOnly

    *APScannerOnly: boolean

    This keyword specifies whether the device has scanning but no printing capabilities. The default is False.

    Examples:

    *APICADriver: True
    *APScannerOnly: True
    

    macOS 10.3APScanAppBundleID

    *APScanAppBundleID: "bundle ID"

    This keyword defines the application to use when scanning pages from the device.

    Examples:

    *APICADriver: True
    *APScanAppBundleID: "com.apple.ImageCaptureApp"
    

    Change History

    Changes in CUPS 2.3

    Changes in CUPS 1.7

    Changes in CUPS 1.6

    Changes in CUPS 1.5

    • Changes all instances of PPD attributes to PPD keywords, to be consistent with the parent specification from Adobe.

    Changes in CUPS 1.4.5

    Changes in CUPS 1.4

    Changes in CUPS 1.3.1

    • Added missing macOS AP keywords.
    • Added section on auto-configuration including the OIDMainKeyword and ?MainKeyword keywords.
    • Minor reorganization.

    Changes in CUPS 1.3

    Changes in CUPS 1.2.8

    • Added section on supported PostScript commands for raster drivers

    Changes in CUPS 1.2

    Changes in CUPS 1.1

    cups-2.4.7/doc/help/spec-ipp.html0000644000175000017500000020264014502571342016470 0ustar zdohnalzdohnal CUPS Implementation of IPP

    CUPS Implementation of IPP

    Introduction

    CUPS implements IPP/2.1 and the operations and attributes defined in the following specifications:

    CUPS also provides 17 new operations and many new attributes to support multiple IPP printers and printer classes on a single host.

    IPP URIs

    CUPS supports the "http", "https", "ipp", and "ipps" schemes. The following resource names are used:

    scheme://hostname:port/
    Can be used for all "get" operations and for server subscriptions.
    scheme://hostname:port/admin/
    Used for all administrative operations.
    scheme://hostname:port/classes/name
    Specifies a printer class.
    scheme://hostname:port/jobs/id
    Specifies a job.
    scheme://hostname:port/printers/name
    Specifies a printer.

    So a typical printer URI would be "ipp://foo.example.com/printers/LaserJet". In addition, the CUPS scheduler also supports (when enabled) normal browser access via "http://foo.example.com:port/" and "https://foo.example.com:port/".

    CUPS IPP Operations

    CUPS provides 17 vendor extension operations in addition to most of the standard IPP and registered extension operations:

    Operation Name CUPS Code Brief Description
    Print-Job 1.0 0x0002 Print a file.
    Validate-Job 1.0 0x0004 Validate job attributes.
    Create-Job 1.1 0x0005 Create a print job.
    Send-Document 1.1 0x0006 Send a file for a print job.
    Cancel-Job 1.0 0x0008 Cancel a print job.
    Get-Job-Attributes 1.0 0x0009 Get job attributes.
    Get-Jobs 1.0 0x000A Get all jobs.
    Get-Printer-Attributes 1.0 0x000B Get printer attributes.
    Hold-Job 1.1 0x000C Hold a job for printing.
    Release-Job 1.1 0x000D Release a job for printing.
    Restart-Job 1.1 0x000E Restarts a print job.
    Pause-Printer 1.0 0x0010 Pause printing on a printer.
    Resume-Printer 1.0 0x0011 Resume printing on a printer.
    Purge-Jobs 1.0 0x0012 Purge all jobs.
    Set-Printer-Attributes 1.4 0x0013 Set attributes for a printer.
    Set-Job-Attributes 1.1 0x0014 Set attributes for a pending or held job.
    Create-Printer-Subscription 1.2 0x0016 Creates a subscription associated with a printer or the server.
    Create-Job-Subscription 1.2 0x0017 Creates a subscription associated with a job.
    Get-Subscription-Attributes 1.2 0x0018 Gets the attributes for a subscription.
    Get-Subscriptions 1.2 0x0019 Gets the attributes for zero or more subscriptions.
    Renew-Subscription 1.2 0x001A Renews a subscription.
    Cancel-Subscription 1.2 0x001B Cancels a subscription.
    Get-Notifications 1.2 0x001C Get notification events for ippget subscriptions.
    Enable-Printer 1.2 0x0022 Accepts jobs on a printer.
    Disable-Printer 1.2 0x0023 Rejects jobs on a printer.
    Hold-New-Jobs 1.4 0x0025 Hold new jobs by default.
    Release-Held-New-Jobs 1.4 0x0026 Releases all jobs that were previously held.
    Cancel-Jobs 1.5 0x0038 Cancel all jobs (administrator).
    Cancel-My-Jobs 1.5 0x0039 Cancel all jobs (user).
    Close-Job 1.5 0x003b Close a created job.
    CUPS-Get-Default 1.0 0x4001 Get the default destination.
    CUPS-Get-Printers 1.0 0x4002 Get all of the available printers.
    CUPS-Add-Modify-Printer 1.0 0x4003 Add or modify a printer.
    CUPS-Delete-Printer 1.0 0x4004 Delete a printer.
    CUPS-Get-Classes 1.0 0x4005 Get all of the available printer classes.
    CUPS-Add-Modify-Class 1.0 0x4006 Add or modify a printer class.
    CUPS-Delete-Class 1.0 0x4007 Delete a printer class.
    CUPS-Accept-Jobs 1.0 0x4008 Accept jobs on a printer or printer class. This operation is deprecated - use the Enable-Printer operation instead.
    CUPS-Reject-Jobs 1.0 0x4009 Reject jobs on a printer or printer class. This operation is deprecated - use the Disable-Printer operation instead.
    CUPS-Set-Default 1.0 0x400A Set the default destination.
    CUPS-Get-Devices 1.1 0x400B Get all of the available devices.
    CUPS-Get-PPDs 1.1 0x400C Get all of the available PPDs.
    CUPS-Move-Job 1.1 0x400D Move a job to a different printer.
    CUPS-Authenticate-Job 1.2 0x400E Authenticate a job for printing.
    CUPS-Get-PPD 1.3 0x400F Get a PPD file.
    CUPS-Get-Document 1.4 0x4027 Get a document file from a job.
    CUPS-Create-Local-Printer 2.2 0x4028 Creates a local (temporary) print queue pointing to a remote IPP Everywhere printer.

    Operations

    The following sections describe the operations supported by CUPS. In the interest of brevity, operations which use only the standard IPP attributes are not described.

    Cancel Job Operation (Extension)

    The Cancel-Job operation (0x0008) cancels the specified job. CUPS 1.4 added support for the purge-job (boolean) operation attribute that (if 'true') removes all history and document files for the job as well.

    Purge-Jobs Operation

    The Purge-Jobs operation (0x0012) cancels all of the jobs on a given destination and optionally removes all history and document files for the jobs as well. CUPS 1.2 added support for the purge-job (boolean) operation attribute that (if 'false') retains all history and document files for the canceled jobs.

    Note:

    The Cancel-Jobs and Cancel-My-Jobs operations should be used instead of Purge-Jobs.

    CUPS 1.2/macOS 10.5Create-Printer-Subscription

    The Create-Printer-Subscription operation (0x0016) creates a subscription for printer or server event notifications. CUPS provides several additional events in addition to the standard events in the IPP notifications specification. CUPS adds the following notify-events (1setOf type2 keyword) values:

    • printer-added - Get notified whenever a printer or class is added
    • printer-deleted - Get notified whenever a printer or class is deleted
    • printer-modified - Get notified whenever a printer or class is modified
    • server-audit - Get notified when a security condition occurs
    • server-restarted - Get notified when the server is restarted
    • server-started - Get notified when the server is started
    • server-stopped - Get notified when the server is stopped

    CUPS-Get-Default Operation

    The CUPS-Get-Default operation (0x4001) returns the default printer URI and attributes.

    CUPS-Get-Default Request

    The following groups of attributes are supplied as part of the CUPS-Get-Default request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "requested-attributes" (1setOf keyword):
    The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'.

    CUPS-Get-Default Response

    The following groups of attributes are send as part of the CUPS-Get-Default Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Group 2: Printer Object Attributes

    The set of requested attributes and their current values.

    CUPS-Get-Printers Operation

    The CUPS-Get-Printers operation (0x4002) returns the printer attributes for every printer known to the system. This may include printers that are not served directly by the server.

    CUPS-Get-Printers Request

    The following groups of attributes are supplied as part of the CUPS-Get-Printers request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "first-printer-name" (name(127)): CUPS 1.2/macOS 10.5
    The client OPTIONALLY supplies this attribute to select the first printer that is returned.
    "limit" (integer (1:MAX)):
    The client OPTIONALLY supplies this attribute limiting the number of printers that are returned.
    "printer-id" (integer(0:65535)): CUPS 2.2
    The client OPTIONALLY supplies this attribute to select which printer is returned.
    "printer-location" (text(127)): CUPS 1.1.7
    The client OPTIONALLY supplies this attribute to select which printers are returned.
    "printer-type" (type2 enum): CUPS 1.1.7
    The client OPTIONALLY supplies a printer type enumeration to select which printers are returned.
    "printer-type-mask" (type2 enum): CUPS 1.1.7
    The client OPTIONALLY supplies a printer type mask enumeration to select which bits are used in the "printer-type" attribute.
    "requested-attributes" (1setOf keyword):
    The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'.
    "requested-user-name" (name(127)): CUPS 1.2/macOS 10.5
    The client OPTIONALLY supplies a user name that is used to filter the returned printers.

    CUPS-Get-Printers Response

    The following groups of attributes are send as part of the CUPS-Get-Printers Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Group 2: Printer Object Attributes

    The set of requested attributes and their current values for each printer.

    CUPS-Add-Modify-Printer Operation

    The CUPS-Add-Modify-Printer operation (0x4003) adds a new printer or modifies an existing printer on the system.

    CUPS-Add-Modify-Printer Request

    The following groups of attributes are supplied as part of the CUPS-Add-Modify-Printer request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri):
    The client MUST supply a URI for the specified printer.

    Group 2: Printer Object Attributes

    "auth-info-required" (1setOf type2 keyword): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
    "job-sheets-default" (1setOf name(127)): CUPS 1.1.7
    The client OPTIONALLY supplies one or two banner page names that are printed before and after files in a job. The reserved name "none" is used to specify that no banner page should be printed.
    "device-uri" (uri):
    The client OPTIONALLY supplies a device URI for the specified printer.
    "port-monitor" (name(127)):
    The client OPTIONALLY supplies a port monitor name for the specified printer.
    "ppd-name" (name(255)):
    The client OPTIONALLY supplies a PPD name for the specified printer.
    "printer-is-accepting-jobs" (boolean):
    The client OPTIONALLY supplies this boolean attribute indicating whether the printer object should accept new jobs.
    "printer-info" (text(127)):
    The client OPTIONALLY supplies this attribute indicating the printer information string.
    "printer-location" (text(127)):
    The client OPTIONALLY supplies this attribute indicating a textual location of the printer.
    "printer-more-info" (uri):
    The client OPTIONALLY supplies this attribute indicating a URI for additional printer information.
    "printer-state" (type2 enum):
    The client OPTIONALLY supplies this attribute indicating the initial/current state of the printer. Only the 'idle(3)' and 'stopped(5)' enumerations are recognized.
    "printer-state-message" (text(MAX)):
    The client OPTIONALLY supplies this attribute indicating a textual reason for the current printer state.
    "requesting-user-name-allowed" (1setof name(127) | delete)
    OR
    "requesting-user-name-denied" (1setof name(127) | delete):
    The client OPTIONALLY supplies one of these attributes to specify an access control list for incoming print jobs. To allow all users access to a printer, use the delete tag for the attribute value.

    The CUPS-Add-Modify-Printer request can optionally be followed by a PPD file to be used for the printer. The "ppd-name" attribute overrides any file that is attached to the end of the request with a local CUPS PPD file.

    CUPS-Add-Modify-Printer Response

    The following groups of attributes are send as part of the CUPS-Add-Modify-Printer Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    CUPS-Delete-Printer Operation

    The CUPS-Delete-Printer operation (0x4004) removes an existing printer from the system.

    CUPS-Delete-Printer Request

    The following groups of attributes are supplied as part of the CUPS-Delete-Printer request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri):
    The client MUST supply a URI for the specified printer.

    CUPS-Delete-Printer Response

    The following groups of attributes are send as part of the CUPS-Delete-Printer Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    CUPS-Get-Classes Operation

    The CUPS-Get-Classes operation (0x4005) returns the printer attributes for every printer class known to the system. This may include printer classes that are not served directly by the server.

    CUPS-Get-Classes Request

    The following groups of attributes are supplied as part of the CUPS-Get-Classes request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "first-printer-name" (name(127)): CUPS 1.2/macOS 10.5
    The client OPTIONALLY supplies this attribute to select the first printer that is returned.
    "limit" (integer (1:MAX)):
    The client OPTIONALLY supplies this attribute limiting the number of printer classes that are returned.
    "printer-location" (text(127)): CUPS 1.1.7
    The client OPTIONALLY supplies this attribute to select which printer classes are returned.
    "printer-type" (type2 enum): CUPS 1.1.7
    The client OPTIONALLY supplies a printer type enumeration to select which printer classes are returned.
    "printer-type-mask" (type2 enum): CUPS 1.1.7
    The client OPTIONALLY supplies a printer type mask enumeration to select which bits are used in the "printer-type" attribute.
    "requested-attributes" (1setOf keyword):
    The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'.
    "requested-user-name" (name(127)): CUPS 1.2/macOS 10.5
    The client OPTIONALLY supplies a user name that is used to filter the returned printers.

    CUPS-Get-Classes Response

    The following groups of attributes are send as part of the CUPS-Get-Classes Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Group 2: Printer Class Object Attributes

    The set of requested attributes and their current values for each printer class.

    CUPS-Add-Modify-Class Operation

    The CUPS-Add-Modify-Class operation (0x4006) adds a new printer class or modifies and existing printer class on the system.

    CUPS-Add-Modify-Class Request

    The following groups of attributes are supplied as part of the CUPS-Add-Modify-Class request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri):
    The client MUST supply a URI for the specified printer class.

    Group 2: Printer Object Attributes

    "auth-info-required" (1setOf type2 keyword): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies one or more authentication keywords that are required to communicate with the printer/remote queue.
    "member-uris" (1setof uri):
    The client OPTIONALLY supplies the "member-uris" set specifying the printers and printer classes that are part of the class.
    "printer-is-accepting-jobs" (boolean):
    The client OPTIONALLY supplies this boolean attribute indicating whether the class object should accept new jobs.
    "printer-info" (text(127)):
    The client OPTIONALLY supplies this attribute indicating the printer information string.
    "printer-location" (text(127)):
    The client OPTIONALLY supplies this attribute indicating a textual location of the class.
    "printer-more-info" (uri):
    The client OPTIONALLY supplies this attribute indicating a URI for additional class information.
    "printer-state" (type2 enum):
    The client OPTIONALLY supplies this attribute indicating the initial/current state of the class. Only the 'idle(3)' and 'stopped(5)' enumerations are recognized.
    "printer-state-message" (text(MAX)):
    The client OPTIONALLY supplies this attribute indicating a textual reason for the current class state.
    "requesting-user-name-allowed" (1setof name(127))
    OR
    "requesting-user-name-denied" (1setof name(127)):
    The client OPTIONALLY supplies one of these attributes to specify an access control list for incoming print jobs. To allow all users access to a class, use the delete tag for the attribute value.

    CUPS-Add-Modify-Class Response

    The following groups of attributes are send as part of the CUPS-Add-Modify-Class Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    CUPS-Delete-Class Operation

    The CUPS-Delete-Class operation (0x4007) removes an existing printer class from the system.

    CUPS-Delete-Class Request

    The following groups of attributes are supplied as part of the CUPS-Delete-Class request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri):
    The client MUST supply a URI for the specified printer class.

    CUPS-Delete-Class Response

    The following groups of attributes are send as part of the CUPS-Delete-Class Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    CUPS-Set-Default Operation

    The CUPS-Set-Default operation (0x400A) sets the default printer destination for all clients when a resource name of "/printers" is specified.

    CUPS-Set-Default Request

    The following groups of attributes are supplied as part of the CUPS-Set-Default request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri):
    The client MUST supply a URI for the specified printer or printer class.

    CUPS-Set-Default Response

    The following groups of attributes are send as part of the CUPS-Set-Default Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    DeprecatedCUPS-Get-Devices Operation

    The CUPS-Get-Devices operation (0x400B) returns all of the supported device-uri's for the server.

    CUPS-Get-Devices Request

    The following groups of attributes are supplied as part of the CUPS-Get-Devices request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "device-class" (type1 keyword):
    The client OPTIONALLY supplies a device class keyword to select which devices are returned.
    "exclude-schemes" (1setOf name): CUPS 1.4/macOS 10.6
    The client OPTIONALLY supplies a set of scheme names that the requestor does not want to discover. If the client omits this attribute, the server responds with devices of all schemes specified by the "include-schemes" attribute.
    "include-schemes" (1setOf name): CUPS 1.4/macOS 10.6
    The client OPTIONALLY supplies a set of scheme names that the requestor wants to discover. If the client omits this attribute, the server responds with devices of all schemes except those specified by the "exclude-schemes" attribute.
    "limit" (integer (1:MAX)):
    The client OPTIONALLY supplies this attribute limiting the number of devices that are returned.
    "requested-attributes" (1setOf keyword):
    The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'.
    "timeout" (integer (1:MAX)): CUPS 1.4/macOS 10.6
    The client OPTIONALLY supplies this attribute to limit the duration of the lookup. The default timeout is 15 seconds.

    CUPS-Get-Devices Response

    The following groups of attributes are send as part of the CUPS-Get-Devices Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Groups 2-N: Device Object Attributes (using printer-attributes-tag group)

    The set of requested attributes and their current values for each device.

    DeprecatedCUPS-Get-PPDs Operation

    The CUPS-Get-PPDs operation (0x400C) returns all of the locally available PPD files on the system.

    CUPS-Get-PPDs Request

    The following groups of attributes are supplied as part of the CUPS-Get-PPDs request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "exclude-schemes" (1setOf name): CUPS 1.4/macOS 10.6
    The client OPTIONALLY supplies a set of scheme names that the requestor does not want to list. If the client omits this attribute, the server responds with PPDs of all schemes specified by the "include-schemes" attribute.
    "include-schemes" (1setOf name): CUPS 1.4/macOS 10.6
    The client OPTIONALLY supplies a set of scheme names that the requestor wants to list. If the client omits this attribute, the server responds with PPDs of all schemes except those specified by the "exclude-schemes" attribute.
    "limit" (integer (1:MAX)):
    The client OPTIONALLY supplies this attribute limiting the number of PPDs that are returned.
    "ppd-make" (text(127)):
    The client OPTIONALLY supplies a printer manufacturer to select which PPDs are returned.
    "ppd-make-and-model" (text(127)): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a make and model to select which PPDs are returned.
    "ppd-model-number" (integer): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a model number to select which PPDs are returned.
    "ppd-natural-language" (naturalLanguage): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a language to select which PPDs are returned.
    "ppd-product" (text(127)): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a PostScript product string to select which PPDs are returned.
    "ppd-psversion" (text(127)): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a PostScript version string to select which PPDs are returned.
    "ppd-type" (type1 keyword): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a driver type to select which PPDs are returned.
    "requested-attributes" (1setOf keyword):
    The client OPTIONALLY supplies a set of attribute names and/or attribute group names in whose values the requester is interested. If the client omits this attribute, the server responds as if this attribute had been supplied with a value of 'all'. Specify "ppd-make" to get a list of manufacturers.

    CUPS-Get-PPDs Response

    The following groups of attributes are send as part of the CUPS-Get-PPDs Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Groups 2-N: PPD Attributes (using printer-attributes-tag group)

    The set of requested attributes and their current values for each PPD file.

    CUPS 1.1CUPS-Move-Job Operation

    The CUPS-Move-Job operation (0x400D) moves an active print job or all print jobs for a printer to a different printer.

    CUPS-Move-Job Request

    The following groups of attributes are supplied as part of the CUPS-Move-Job request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri)
    OR
    "printer-uri" (uri) and "job-id" (integer)
    OR
    "job-uri" (uri):
    The client MUST supply a URI for the specified printer, the URI for the specified printer and a job ID number, or the job URI.

    Group 2: Job Template Attributes

    "job-printer-uri" (uri):
    The client MUST supply a URI for a printer on the same server.

    CUPS-Move-Job Response

    The following groups of attributes are send as part of the CUPS-Move-Job Response:

    Group 1: Operation Attributes

    Status Message:
    The standard response status message.
    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.

    CUPS 1.2/macOS 10.5CUPS-Authenticate-Job Operation

    The CUPS-Authenticate-Job operation (0x400E) authenticates a print job for printing, releasing the job if it is held. Typically this is used when printing to a remote server. The authentication information is passed in the HTTP request; the HTTP connection is normally encrypted for this type of request.

    CUPS-Authenticate-Job Request

    The following groups of attributes are supplied as part of the CUPS-Authenticate-Job request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri) and "job-id" (integer)
    OR
    "job-uri" (uri):
    The client MUST supply a URI for the specified printer and a job ID number, or the job URI.

    Group 2: Job Attributes

    "auth-info" (1setOf text(MAX)): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies one or more authentication values as specified by the "auth-info-required" attribute.
    "job-hold-until" (keyword | name(MAX)): CUPS 1.3/macOS 10.5
    The client OPTIONALLY supplies a new job-hold-until value for the job. If specified and not the "no-hold" value, the job is held instead of released for printing.

    CUPS-Authenticate-Job Response

    The following groups of attributes are send as part of the CUPS-Authenticate-Job Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Group 2: Unsupported Attributes (status=client-eror-attributes-or-values-not-supported)

    auth-info-required (1setOf Type2 keyword)
    The required authentication information.

    DeprecatedCUPS-Get-PPD Operation

    The CUPS-Get-PPD operation (0x400F) gets a PPD file from the server. The PPD file can be specified using a ppd-name returned by CUPS-Get-PPDs or using the printer-uri for a queue.

    If the PPD file is found, successful-ok is returned with the PPD file following the response data.

    If the PPD file cannot be served by the local server because the printer-uri attribute points to an external printer, a cups-see-other status is returned with the correct URI to use.

    If the PPD file does not exist, client-error-not-found is returned.

    CUPS-Get-PPD Request

    The following group of attributes is supplied as part of the CUPS-Get-PPD request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri)
    OR
    "ppd-name" (name(255)):
    The client MUST supply a printer URI or PPD name.

    CUPS-Get-PPD Response

    The following group of attributes is sent as part of the CUPS-Get-PPD Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.
    "printer-uri" (uri):
    The printer that provides the actual PPD file when the status code is cups-see-other (0x280).

    If the status code is successful-ok, the PPD file follows the end of the IPP response.

    CUPS 1.4/macOS 10.6CUPS-Get-Document Operation

    The CUPS-Get-Document operation (0x4027) gets a document file from a job on the server. The document file is specified using the document-number and either the job-uri or printer-uri and job-id identifying the job.

    If the document file is found, successful-ok is returned with the document file following the response data.

    If the document file does not exist, client-error-not-found is returned.

    If the requesting user does not have access to the document file, client-error-not-authorized is returned.

    CUPS-Get-Document Request

    The following group of attributes is supplied as part of the CUPS-Get-Document request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.
    "printer-uri" (uri) and "job-id" (integer)
    OR
    "job-uri" (uri):
    The client MUST supply a printer URI and job ID or job URI.
    "document-number" (integer(1:MAX)):
    The client MUST supply a document number to retrieve. The number-of-documents attribute for the job defines the maximum document number that can be specified. In the case of jobs with banners (job-sheets is not "none"), document number 1 will typically contain the start banner and document number N will typically contain the end banner.

    CUPS-Get-Document Response

    The following group of attributes is sent as part of the CUPS-Get-Document Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.
    "document-format" (mimeType):
    The format of the document file.
    "document-number" (integer(1:MAX)):
    The requested document number.
    "document-name" (name(MAX)):
    The name that was supplied with the document, if any.

    If the status code is successful-ok, the document file follows the end of the IPP response.

    CUPS-Create-Local-Printer

    The CUPS-Create-Local-Printer operation (0x4028) creates a local (temporary) print queue pointing to a remote IPP Everywhere Printer. The queue will remain until the scheduler idle exits, is restarted, or the system is restarted or shutdown. Temporary print queues can be made permanent by an administrator by setting the "printer-is-shared" attribute to 'true'.

    At a minimum, the scheduler requires a name and URI for the Printer to add. When successful, the local "printer-uri" values are returned and may be used by the Client to submit Job Creation Requests, monitor for state changes, and so forth.

    If the named printer already exists, the scheduler will reject the request with the 'client-error-not-possible' status code.

    Access Rights: The authenticated user performing this operation MUST be a Local User of the system, and the request MUST be made over a local (domain socket or loopback interface) address. Otherwise, the request will be rejected with the 'client-error-forbidden' status code.

    CUPS-Create-Local-Printer Request

    The following group of attributes is supplied as part of the CUPS-Create-Local-Printer request:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.1 of the IPP Model and Semantics document.

    Group 2: Printer Attributes

    "printer-name" (name(127)):
    The Client MUST supply this attribute which provides the name for the new Printer.
    "device-uri" (uri):
    The Client MUST supply this attribute which provides an "ipp" or "ipps" URI pointing to an IPP Everywhere Printer.
    "printer-device-id" (text(1023)):
    The Client OPTIONALLY supplies this attribute which provides the IEEE 1284 device ID for the new Printer.
    "printer-geo-location" (uri):
    The Client OPTIONALLY supplies this attribute which provides the geo-location of the new Printer as a "geo" URI.
    "printer-info" (text(127)):
    The Client OPTIONALLY supplies this attribute which provides the description for the new Printer.
    "printer-location" (text(127)):
    The Client OPTIONALLY supplies this attribute which provides the location of the new Printer.

    CUPS-Create-Local-Printer Response

    The following group of attributes is sent as part of the CUPS-Create-Local-Printer Response:

    Group 1: Operation Attributes

    Natural Language and Character Set:
    The "attributes-charset" and "attributes-natural-language" attributes as described in section 3.1.4.2 of the IPP Model and Semantics document.
    Status Message:
    The standard response status message.

    Group 2: Printer Attributes

    "printer-id" (integer(0:65535)):
    The numeric identifier for the created Printer.
    "printer-is-accepting-jobs" (boolean):
    Whether the created Printer is accepting jobs at the time of the response.
    "printer-state" (type1 enum):
    The state of the created Printer at the time of the response.
    "printer-state-reasons" (1setOf type2 keyword):
    The state keywords for the created Printer at the time of the response.
    "printer-uri-supported" (1setOf uri):
    The URIs for the created Printer.

    Attributes

    CUPS provides many extension attributes to support multiple devices, PPD files, standard job filters, printers, and printer classes.

    Device AttributesDeprecated

    Device attributes are returned by the CUPS-Get-Devices operation and enumerate all of the available hardware devices and network protocols that are supported by the server. Device attributes are reported in the printer-attributes-tag group.

    device-class (type2 keyword)Deprecated

    The "device-class" attribute provides the class of device and can be one of the following:

    • 'file': A disk file.
    • 'direct': A parallel or fixed-rate serial data port, currently used for Centronics, IEEE-1284, and USB printer ports.
    • 'serial': A variable-rate serial port.
    • 'network': A network connection, typically via AppSocket, HTTP, IPP, LPD, or SMB/CIFS protocols.

    device-id (text(1023))Deprecated

    The "device-id" attribute provides the IEEE-1284 device ID string for the device.

    device-info (text(127))Deprecated

    The "device-info" attribute specifies a human-readable string describing the device, e.g., 'Parallel Port #1'.

    device-location (text(127))Deprecated

    The "device-location" attribute specifies the physical location of the printer, e.g., '2nd Floor Computer Lab'.

    device-make-and-model (text(127))Deprecated

    The "device-make-and-model" attribute specifies a device identification string provided by the printer connected to the device. If the device or printer does not support identification then this attribute contains the string 'unknown'.

    device-uri (uri)

    The "device-uri" attribute specifies a unique identifier for the device. The actual format of the "device-uri" string depends on the value of the "device-class" attribute:

    • 'file': The "device-uri" will be of the form 'file:///path/to/filename'.
    • 'direct': The "device-uri" will be of the form 'scheme:/dev/filename' or 'scheme://vendor/identifier', where scheme may be 'parallel' or 'usb' in the current implementation.
    • 'serial': The "device-uri" will be of the form 'serial:/dev/filename?baud=value+parity=value+flow=value'. The baud value is the data rate in bits per second; the supported values depend on the underlying hardware. The parity value can be one of "none", "even", or "odd". The flow value can be one of "none", "soft" (XON/XOFF handshaking), "hard" or "rts/cts" (RTS/CTS handshaking), or "dtrdsr" (DTR/DSR handshaking).

      The URI returned by CUPS-Get-Devices will contain the maximum baud rate supported by the device and the best type of flow control available ("soft" or "hard").

    • 'network': The "device-uri" will be of the form 'scheme://[username:password@]hostname[:port]/[resource]', where scheme may be "http", "https", "ipp", "lpd", "smb", or "socket" in the current implementation.

      The URI returned by CUPS-Get-Devices MAY only contain the scheme name ('scheme'). It is up to the client application to add the appropriate host and other information when adding a new printer.

      The URI returned by Get-Printer-Attributes and CUPS-Get-Printers has any username and password information stripped; the information is still stored and used by the server internally to perform any needed authentication.

    Job Attributes

    auth-info (1setOf text(MAX))CUPS 1.3/macOS 10.5

    The "auth-info" attribute specifies the authentication information to use when printing to a remote device. The order and content of each text value is specified by the auth-info-required printer attribute.

    job-cancel-after (integer(1:MAX))CUPS 2.0

    The "job-cancel-after" attribute provides the maximum number of seconds that are allowed for processing a job.

    job-hold-until (keyword | name(MAX))CUPS 1.1

    The "job-hold-until" attribute specifies a hold time. In addition to the standard IPP/1.1 keyword names, CUPS supports name values of the form "HH:MM" and "HH:MM:SS" that specify a hold time. The hold time is in Universal Coordinated Time (UTC) and not in the local time zone. If the specified time is less than the current time, the job is held until the next day.

    job-media-progress (integer(0:100))CUPS 1.4/macOS 10.6

    The "job-media-progress" status attribute specifies the percentage of completion of the current page. It is only valid when the "job-state" attribute has the 'processing(5)' value.

    job-printer-state-message (text(MAX))CUPS 1.3/macOS 10.5

    The "job-printer-state-message" status attribute provides the last known value of the "printer-state-message" attribute for the printer that processed (or is processing) the job.

    job-printer-state-reasons (1setOf type2 keyword)CUPS 1.3/macOS 10.5

    The "job-printer-state-reasons" status attribute provides the last known value of the "printer-state-reasons" attribute for the printer that processed (or is processing) the job.

    job-sheets (1setof type3 keyword | name(MAX))CUPS 1.1

    The "job-sheets" attribute specifies one or two banner files that are printed before and after a job. The reserved value of "none" disables banner printing. The default value is stored in the "job-sheets-default" attribute.

    If only one value is supplied, the banner file is printed before the job. If two values are supplied, the first value is used as the starting banner file and the second as the ending banner file.

    job-originating-host-name (name(MAX))CUPS 1.1.5/macOS 10.2

    The "job-originating-host-name" status attribute specifies the host from which the job was queued. The value will be the hostname or IP address of the client depending on whether hostname resolution is enabled. The localhost address (127.0.0.1) is always resolved to the name "localhost".

    This attribute is read-only.

    page-border (type2 keyword)CUPS 1.1.15

    The "page-border" attribute specifies whether a border is draw around each page. The following keywords are presently defined:

    • 'double': Two hairline borders are drawn
    • 'double-thick': Two 1pt borders are drawn
    • 'none': No border is drawn (default)
    • 'single': A single hairline border is drawn
    • 'single-thick': A single 1pt border is drawn

    page-set (type2 keyword)Deprecated

    The "page-set" attribute specifies which pages to print in a file. The supported keywords are 'all', 'even', and 'odd'. The default value is 'all'.

    PPD AttributesDeprecated

    PPD attributes are returned in the printer-attributes-tag group.

    ppd-device-id (text(127))Deprecated

    The "ppd-device-id" attribute specifies the IEEE-1284 device ID string for the device described by the PPD file.

    ppd-make (text(127))Deprecated

    The "ppd-make" attribute specifies the manufacturer of the printer (the Manufacturer attribute in the PPD file). If the manufacturer is not specified in the PPD file then an educated guess is made using the NickName attribute in the PPD file.

    ppd-make-and-model (text(127))Deprecated

    The "ppd-make-and-model" attribute specifies the manufacturer and model name of the PPD file (the NickName attribute in the PPD file). If the make and model is not specified in the PPD file then the ModelName or ShortNickName attributes are used instead.

    ppd-model-number (integer)Deprecated

    The "ppd-model-number" attribute provides the cupsModelNumber value from the PPD file.

    ppd-name (name(255))Deprecated

    The "ppd-name" attribute specifies either the PPD filename on the server relative to the model directory or a URI that maps to a specific driver interface in the driver directory. The forward slash (/) is used to delineate directories.

    ppd-natural-language (1setOf naturalLanguage)Deprecated

    The "ppd-natural-language" attribute specifies the language encoding of the PPD file (the LanguageVersion attribute in the PPD file). If the language is unknown or undefined then "en" (English) is assumed.

    ppd-product (1setOf text(127))Deprecated

    The "ppd-product" attribute specifies the Product attribute values in the PPD file.

    ppd-psversion (1setOf text(127))Deprecated

    The "ppd-product" attribute specifies the PSVersion attribute values in the PPD file.

    ppd-type (type1 keyword)Deprecated

    The "ppd-type" attribute specifies the type of driver described by the PPD file:

    • 'fax': A facsimile or multi-function device
    • 'pdf': A PDF printer
    • 'postscript': A PostScript printer (no filters)
    • 'raster': A CUPS raster driver
    • 'unknown': An unknown or hybrid driver

    Printer Attributes

    auth-info-required (1setOf type2 keyword)CUPS 1.3/macOS 10.5

    The "auth-info-required" attribute specifies the authentication information that is required for printing a job. The following keywords are recognized:

    • 'domain': A domain name is required.
    • 'negotiate': Kerberos is required - this keyword can only appear by itself and causes cupsd to collect the UID of the printing user.
    • 'none': No authentication is required - this keyword can only appear by itself.
    • 'password': A password is required.
    • 'username': A username is required. Some protocols (like SMB) prefix the username with the domain, for example "DOMAIN\user".

    job-k-limit (integer)CUPS 1.1

    The "job-k-limit" attribute specifies the maximum number of kilobytes that may be printed by a user, including banner files. The default value of 0 specifies that there is no limit.

    job-page-limit (integer)CUPS 1.1

    The "job-page-limit" attribute specifies the maximum number of pages that may be printed by a user, including banner files. The default value of 0 specifies that there is no limit.

    job-quota-period (integer)CUPS 1.1

    The "job-quota-period" attribute specifies the time period used for quota calculations, in seconds. The default value of 0 specifies that the limits apply to all jobs that have been printed by a user that are still known to the system.

    marker-change-time (integer)CUPS 1.3/macOS 10.5

    The "marker-change-time" status attribute specifies the "printer-up-time" value when the last change to the marker-colors, marker-levels, marker-message, marker-names, or marker-types attributes was made.

    marker-colors (1setof name(MAX))CUPS 1.3/macOS 10.5

    The "marker-colors" status attribute specifies the color(s) for each supply in the printer. It is only available when the driver provides supply levels. The color is either 'none' or one or more hex-encoded sRGB colors of the form '#RRGGBB'.

    marker-high-levels (1setof integer(0:100))CUPS 1.4/macOS 10.6

    The "marker-high-levels" status attribute specifies the supply levels that indicate a near-full condition. A value of 100 should be used for supplies that are consumed/emptied, e.g. ink cartridges.

    marker-levels (1setof integer(-3:100))CUPS 1.3/macOS 10.5

    The "marker-levels" status attribute specifies the current supply levels for the printer. It is only available when the driver provides supply levels. A value of -1 indicates the level is unavailable, -2 indicates unknown, and -3 indicates the level is unknown but has not yet reached capacity. Values from 0 to 100 indicate the corresponding percentage.

    marker-low-levels (1setof integer(0:100))CUPS 1.4/macOS 10.6

    The "marker-low-levels" status attribute specifies the supply levels that indicate a near-empty condition. A value of 0 should be used for supplies that are filled, e.g. waste ink tanks.

    marker-message (text(MAX))CUPS 1.4/macOS 10.6

    The "marker-message" status attribute provides a human-readable status message for the current supply levels, e.g. "12 pages of ink remaining." It is only available when the driver provides supply levels.

    marker-names (1setof name(MAX))CUPS 1.3/macOS 10.5

    The "marker-names" status attribute specifies the name(s) for each supply in the printer. It is only available when the driver provides supply levels.

    marker-types (1setof type3 keyword)CUPS 1.3/macOS 10.5

    The "marker-types" status attribute specifies the type(s) of each supply in the printer. It is only available when the driver provides supply levels. The following (RFC 3805) types are currently supported:

    • 'toner'
    • 'waste-toner'
    • 'ink'
    • 'ink-cartridge'
    • 'ink-ribbon'
    • 'waste-ink'
    • 'opc'
    • 'developer'
    • 'fuser-oil'
    • 'solid-wax'
    • 'ribbon-wax'
    • 'waste-wax'
    • 'fuser'
    • 'corona-wire'
    • 'fuser-oil-wick'
    • 'cleaner-unit'
    • 'fuser-cleaning-pad'
    • 'transfer-unit'
    • 'toner-cartridge'
    • 'fuser-oiler'
    • 'water'
    • 'waste-water'
    • 'binding-supply'
    • 'banding-supply'
    • 'stiching-wire'
    • 'shrink-wrap'
    • 'paper-wrap'
    • 'staples'
    • 'inserts'
    • 'covers'

    port-monitor" (name(127))Deprecated

    The "port-monitor" attribute specifies the port monitor to use when printing to this printer. The default port monitor is 'none'.

    port-monitor-supported" (1setOf name(127))Deprecated

    The "port-monitor-supported" attribute specifies the available port monitors.

    printer-commands (1setOf Type3 keyword)Deprecated

    The "printer-commands" attribute specifies the commands that are supported by the CUPS command file filter. The keyword 'none' indicates that no commands are supported.

    printer-dns-sd-name (name(MAX) | noValue)CUPS 1.4/macOS 10.6

    The "printer-dns-sd-name" attribute specifies the registered DNS-SD service name for the printer. If the printer is not being shared using this protocol, "printer-dns-sd-name" will have the no-value value.

    printer-id (integer(0:65535)CUPS 2.2

    The "printer-id" status attribute provides a unique integer identifying the printer. It is used when only an IP address and integer are provided for identifying a print queue.

    printer-type (type2 enum)

    The "printer-type" status attribute specifies printer type and capability bits for the printer or class. The default value is computed from internal state information and the PPD file for the printer. The following bits are defined:

    Bit Description
    0x00000001 Is a printer class.
    0x00000002 Is a remote destination.
    0x00000004 Can print in black.
    0x00000008 Can print in color.
    0x00000010 Can print on both sides of the page in hardware.
    0x00000020 Can staple output.
    0x00000040 Can do fast copies in hardware.
    0x00000080 Can do fast copy collation in hardware.
    0x00000100 Can punch output.
    0x00000200 Can cover output.
    0x00000400 Can bind output.
    0x00000800 Can sort output.
    0x00001000 Can handle media up to US-Legal/A4.
    0x00002000 Can handle media from US-Legal/A4 to ISO-C/A2.
    0x00004000 Can handle media larger than ISO-C/A2.
    0x00008000 Can handle user-defined media sizes.
    0x00010000 Is an implicit (server-generated) class.
    0x00020000 Is the a default printer on the network.
    0x00040000 Is a facsimile device.
    0x00080000 Is rejecting jobs.
    0x00100000 Delete this queue.
    0x00200000 Queue is not shared.
    0x00400000 Queue requires authentication.
    0x00800000 Queue supports CUPS command files.
    0x01000000 Queue was automatically discovered and added.
    0x02000000 Queue is a scanner with no printing capabilities.
    0x04000000 Queue is a printer with scanning capabilities.
    0x08000000 Queue is a printer with 3D capabilities.

    printer-type-mask (type2 enum)CUPS 1.1

    The "printer-type-mask" attribute is used to choose printers or classes with the CUPS-Get-Printers and CUPS-Get-Classes operations. The bits are defined identically to the printer-type attribute and default to all 1's.

    requesting-user-name-allowed (1setof name(127))CUPS 1.1

    The "requesting-user-name-allowed" attribute lists all of the users that are allowed to access a printer or class. Either this attribute or the "requesting-user-name-denied" attribute will be defined, but not both.

    requesting-user-name-denied (1setof name(127))CUPS 1.1

    The "requesting-user-name-denied" attribute lists all of the users that are not allowed to access a printer or class. Either this attribute or the "requesting-user-name-allowed" attribute will be defined, but not both.

    Printer Class Attributes

    Printer class attributes are placed in the printer-attributes-tag group.

    member-names (1setof name(127))

    The "member-names" attribute specifies the "printer-name" attributes for each the member printer and class. Each name corresponds to the same element of the "member-uris" attribute.

    member-uris (1setof uri)

    The "member-uris" attribute specifies the "printer-uri-supported" values for each member printer and class. Each URI corresponds to the same element of the "member-names" attribute. cups-2.4.7/doc/help/spec-design.html0000644000175000017500000002716114502571342017154 0ustar zdohnalzdohnal CUPS Design Description

    CUPS Design Description

    This design description documents the overall organization of CUPS. The purpose is not to provide a line-by-line description of the CUPS source code, but rather to describe the overall architecture and location of key pieces so that developers can more easily understand the underlying operation of CUPS.

    Introduction

    Like most printing systems, CUPS is designed around a central print scheduling process that dispatches print jobs, processes administrative commands, provides printer status information to local and remote programs, and informs users as needed. Figure 1 shows the basic organization of CUPS.

    Scheduler

    The scheduler is a HTTP/1.1 and IPP/2.1 server application that manages HTTP and IPP requests, printers, classes, jobs, subscriptions, and notifications on the system. HTTP is used for normal web browser services as well as IPP operation messages passed via HTTP POST requests with the application/ipp content type. The scheduler uses a series of helper applications based on the Common Gateway Interface ("CGI") to provide dynamic web interfaces and can be configured to run additional site-specific programs or scripts for the web interface.

    The scheduler is designed as a traditional single-threaded server process which runs external processes to do longer-term operations such as printing, notification, device/driver enumeration, and remote printer monitoring. External processes are normally run as a non-privileged account ("lp") and, on some platforms, with additional restrictions that limit what the processes are allowed to do.

    The maximum number of simultaneous clients and print jobs that can be supported is primarily limited by the available server memory, file descriptors, and CPU - the scheduler itself imposes no hard limits.

    Figure 1: CUPS Block Diagram
    CUPS Block Diagram

    Config Files

    The scheduler uses several configuration files to store the server settings (cupsd.conf), available classes (classes.conf), available printers (printers.conf), current notification subscriptions (subscriptions.conf), and supported file types and filters (mime.types, mime.convs). In addition, PostScript Printer Description ("PPD") files are associated with each printer, and the scheduler has cache files for remote printers, PPD files, and current jobs to optimize the scheduler's startup speed and availability.

    Job Files

    The scheduler stores job files in a spool directory, typically /var/spool/cups. Two types of files will be found in the spool directory: control files starting with the letter "c" ("c00001", "c99999", "c100000", etc.) and data files starting with the letter "d" ("d00001-001", "d99999-001", "d100000-001", etc.) Control files are IPP messages based on the original IPP Print-Job or Create-Job messages, while data files are the original print files that were submitted for printing. There is one control file for every job known to the system and 0 or more data files for each job.

    Control files are normally cleaned out after the 500th job is submitted, while data files are removed immediately after a job has successfully printed. Both behaviors can be configured.

    Log Files

    The scheduler keeps three kinds of log files which are normally stored in the /var/log/cups directory. The access_log file lists every HTTP and IPP request that is processed by the scheduler. The error_log file contains messages from the scheduler and its helper applications that can be used to track down problems. The page_log file lists every page that is printed, allowing for simple print accounting.

    Log files are rotated automatically by the scheduler when they reach the configured size limit, by default 1MB. If the limit is set to 0 then no rotation is performed in the scheduler - this mode is often used by Linux distributions so they can use the logrotated(8) program to rotate them instead.

    Berkeley Commands

    CUPS provides the Berkeley lpc(8), lpq(1), lpr(1), and lprm(1) commands. In general, they function identically to the original Berkeley commands with the following exceptions:

    1. The lpc command currently only supports the "status" sub-command.
    2. The lpr command does not support the format modifier options "1" (TROFF font set 1), "2" (TROFF font set 2), "3" (TROFF font set 3), "4" (TROFF font set 4), "c" (CIFPLOT), "d" (DVI), "f" (FORTRAN), "g" (GNU plot), "i" (indentation), "n" (Ditroff), "r" (Sun raster), "t" (Troff), or "w" (width), as they do not map to the IPP MIME media type based document formats.

    System V Commands

    CUPS provides the System V cancel(1), lp(1), lpadmin(8), lpmove(8), and lpstat(1) commands. In general, they function identically to the original System V commands with the following exceptions:

    1. All commands may ask for a password; the System V print spooler requires root access to perform administration tasks, while CUPS allows for more flexible configurations.
    2. The lpadmin command does not implement the Solaris "-A" (alert), "-F" (fault recovery), "-M" (mount form/wheel), "-P" (paper list), "-S" (print wheels), "-T" (type list), "-U" (dialer info), "-W" (wait), "-f" (form name), "-l" (content-type list), "-s" (remote printer), or "-t" (number of trays) options.

    CUPS Commands

    CUPS provides the cupsaccept(8), cupsdisable(8), cupsenable(8), cupsreject(8), cupstestppd(1), and lpinfo(8) commands. The cupsaccept, cupsdisable, cupsenable, and cupsreject commands correspond to the System V accept, disable, enable, and reject commands but have been renamed to avoid confusion and conflicts with the bash(1) internal enable command of the same name.

    LPD Support

    LPD client support is provided via the cups-lpd(8) program. Incoming LPD requests are accepted on TCP port 515 by the local inetd(8), launchd(8), or xinetd(8) process and forwarded to the cups-lpd program for conversion to the corresponding IPP request(s).

    The cups-lpd program conforms, for the most part, to RFC 1179: Line Printer Daemon Protocol, but does not enforce the privileged source port restriction specified in that document. In addition, the banner page and output format options are usually overridden via command-line options to the cups-lpd program when it is invoked by the corresponding super-daemon program.

    Web Interface

    The web interface is supported by five CGI programs. Table 1 describes the purpose of each of the programs.

    Table 1: CGI Programs
    Program Location Description
    admin.cgi /admin Provides all of the administrative functions
    classes.cgi /classes Lists classes and provides class management functions
    help.cgi /help Provides access to online help documents
    jobs.cgi /jobs Lists jobs and provides job management functions
    printers.cgi /printers Lists printers and provides printer management functions

    Notifiers

    Notifiers (notifier(7)) provide the means for sending asynchronous event notifications from the scheduler. Notifiers are executed with the recipient information on the command-line and the event data on the standard input. For example:

    CUPS_SERVERBIN/notifier/foo recipient user-data
    

    CUPS includes two notifiers: mailto to provide SMTP-based email notifications and rss to provide Really Simple Syndication ("RSS") notifications from the scheduler. Additional notifiers can be installed in the notifier directory as needed to support other methods.

    Filters

    Filters (filter(7)) convert job files into a printable format. Multiple filters are run, as needed, to convert from the job file format to the printable format. A filter program reads from the standard input or from a file if a filename is supplied. All filters must support a common set of options including printer name, job ID, username, job title, number of copies, and job options. All output is sent to the standard output.

    CUPS provides filters for printing text, PostScript, PDF, HP-GL/2, and many types of image files. CUPS also provides printer driver filters for HP-PCL, ESC/P, and several types of label printers. Additional filters can be registered with CUPS via mime.convs and PPD files.

    Port Monitors

    Port monitors handle the device- and channel-specific data formatting for a printer. Port monitors use the same interface as filters.

    CUPS includes two port monitors: the bcp port monitor which supports the PostScript Binary Communications Protocol ("BCP") and the tbcp port monitor which supports the PostScript Tagged Binary Communications Protocol ("TBCP"). Additional port monitors can be registered in PPD files.

    Backends

    Backends (backend(7)) send print data to the printer and enumerate available printers/devices as needed. Backends use the same interface as filters.

    CUPS includes backends for AppSocket (JetDirect), IPP, LPD, and USB connections and DNS-SD and SNMP for discovery. Additional backends can be added as needed without additional configuration.

    Programming Interfaces

    The CUPS library (libcups) contains all of the core HTTP and IPP communications code as well as convenience functions for queuing print jobs, getting printer information, accessing resources via HTTP and IPP, manipulating PPD files, and reading and writing raster streams. The scheduler and all commands, filters, and backends use this library.

    cups-2.4.7/doc/help/spec-command.html0000644000175000017500000001412214502571342017312 0ustar zdohnalzdohnal CUPS Command File Format

    CUPS Command File Format

    Introduction

    This specification describes the CUPS command file format (application/vnd.cups-command) which is used to send printer maintenance commands to a printer in a device-independent way. The current specification supports basic maintenance functions such as head cleaning and self-test pages and query functions such as auto-configure, report supply levels, and report status.

    Printer drivers advertise support for the CUPS command file format by providing a filter for the application/vnd.cups-command file type. Applications can determine if a printer supports printing of CUPS command files by checking the printer-type attribute for the CUPS_PRINTER_COMMANDS capability bit.

    In addition, the PPD file for a printer can contain a cupsCommands keyword that provides a list of supported commands separated by spaces, for example:

    *cupsCommands: "AutoConfigure Clean PrintSelfTestPage ReportLevels ReportStatus"
    

    If no cupsCommands keyword is provided, the command filter must support AutoConfigure, Clean, PrintSelfTestPage, and ReportLevels. The scheduler also provides the printer-commands attribute containing the list of supported commands.

    File Syntax

    CUPS command files are ASCII text files. The first line of a CUPS command file MUST contain:

    #CUPS-COMMAND
    

    After that, each line is either a command or a comment. Comments begin with the # character, e.g.:

    # This is a comment
    

    Commands are any sequence of letters, numbers, and punctuation characters optionally followed by parameters separated by whitespace, e.g.:

    Clean all
    PrintSelfTestPage
    

    Command names are case-insensitive, so "PRINTSELFTESTPAGE", "printselftestpage", and "PrintSelfTestPage" are equivalent. Vendor-specific commands should use a domain name prefix, e.g.:

    com.vendor.foo
    com.vendor.bar param param2 ... paramN
    

    Standard Commands

    The following are the standard commands supported by the format. The only required command is PrintSelfTestPage.

    AutoConfigure

    AutoConfigure

    The AutoConfigure command updates the printer's PPD file and driver state information to reflect the current configuration of the printer. There are no arguments for this command.

    Example:

    #CUPS-COMMAND
    AutoConfigure
    

    Clean

    Clean colorname

    The Clean command performs a standard print head cleaning. The "colorname" parameter specifies which color or head to clean. If a printer does not support cleaning of individual colors or cartridges, then all colors are cleaned. Command filters MUST support the "all" colorname. Other standard color names include "black", "color", "photo", "cyan", "magenta", "yellow", "light-cyan", "light-magenta", "light-black", "light-gray", and "dark-gray".

    Example:

    #CUPS-COMMAND
    Clean all
    

    PrintAlignmentPage

    PrintAlignmentPage pass

    The PrintAlignmentPage command prints a head alignment page on the printer. The "pass" parameter provides a pass number from 1 to N. The number of passes is device-dependent.

    Example:

    #CUPS-COMMAND
    PrintAlignmentPage 1
    

    PrintSelfTestPage

    PrintSelfTestPage

    The PrintSelfTestPage command prints a self-test page on the printer. Typically this page shows whether all jets on a print head are functioning and that the print feed mechanisms are working properly.

    Example:

    #CUPS-COMMAND
    PrintSelfTestPage
    

    ReportLevels

    ReportLevels

    The ReportLevels command queries the supply levels on a printer and reports "marker-colors", "marker-levels", "marker-names", and "marker-types" attributes using "ATTR:" messages sent to the scheduler. This command should also report the current printer status using "STATE:" messages like the ReportStatus command.

    Example:

    #CUPS-COMMAND
    ReportLevels
    

    ReportStatus

    ReportStatus

    The ReportStatus command queries the printer for its current status and reports it using "STATE:" messages sent to the scheduler.

    Example:

    #CUPS-COMMAND
    ReportLevels
    

    SetAlignment

    SetAlignment pass value ... valueN

    The SetAlignment command sets print head alignment values. The "pass" parameter is a number from 1 to N. All parameters are device-dependent.

    Example:

    #CUPS-COMMAND
    SetAlignment 1 14
    
    cups-2.4.7/doc/help/spec-banner.html0000644000175000017500000001012514502571342017140 0ustar zdohnalzdohnal CUPS Banner File Format

    CUPS Banner File Format

    Introduction

    This specification describes the CUPS banner file format (application/vnd.cups-banner) which is used to generate print job cover pages and the CUPS test page. The format itself consists of a header followed by lines of UTF-8 text containing comments or keywords and values:

    #CUPS-BANNER
    
    # What to show on the cover page
    Show job-id job-name job-originating-user-name time-at-creation
    
    # The header and footer text
    Header Cover Page
    Footer Cover Page
    
    # Arbitrary "notice" text
    Notice All work and no play makes Johnny a dull boy.
    Notice All work and no play makes Johnny a dull boy.
    Notice All work and no play makes Johnny a dull boy.
    Notice All work and no play makes Johnny a dull boy.
    
    # Images to place below the rest
    Image /usr/local/share/company-logo.png
    Image /usr/share/doc/cups/images/smiley.jpg
    

    Standard Keywords

    Footer

    Footer text for footer

    The Footer key defines the text that is centered at the bottom of the page. Only one Footer key can be specified.

    Header

    Header text for Header

    The Header key defines the text that is centered at the top of the page. Only one Header key can be specified.

    Image

    Image /path/to/image/filename
    Image relative/path/in/DocumentRoot/filename

    The Image key defines images that are centered above the footer text. Multiple images are centered as a group from left to right. Images are scaled as needed to fit on the page with a nominal size of 1"/25cm.

    Notice

    Notice Text to display below the job information.
    Notice More text to display below the job information.

    The Notice key defines lines of text that are centered below the job information.

    Show

    Show value value ... value

    The Show key lists the job information that is shown. The following values are supported:

    • imageable-area: The imageable area of the current page size
    • job-billing: Billing information for the job
    • job-id: The job ID
    • job-name: The title of the job
    • job-originating-host-name: The computer that printed the job
    • job-originating-user-name: The user that printed the job
    • job-uuid: The job UUID
    • options: The options that were provided with the job
    • paper-name: The name of the paper size used
    • paper-size: The dimensions of the paper size used.
    • printer-driver-name: The printer driver used
    • printer-driver-version: The driver version
    • printer-info: The printer description
    • printer-location: The location of the printer
    • printer-make-and-model: The make and model strings reported by the printer driver
    • printer-name: The printer used
    • time-at-creation: When the job was submitted
    • time-at-processing: The current date and time
    cups-2.4.7/doc/help/sharing.html0000644000175000017500000001074014502571342016401 0ustar zdohnalzdohnal Printer Sharing

    Printer Sharing

    This document discusses several ways to configure printer sharing.

    The Basics

    A "server" is any machine that communicates directly to a printer. A "client" is any machine that sends print jobs to a server for final printing. Clients can also be servers if they communicate directly with any printers of their own.

    By default, CUPS uses the Internet Printing Protocol (IPP) to send jobs from a client to a server. When printing to legacy print servers you may also use the Line Printer Daemon (LPD) protocol when printing to older UNIX-based servers or Server Message Block (SMB) when printing to Windows® servers.

    Clients can automatically discover and access shared printers via DNS Service Discovery (DNS-SD a.k.a. Bonjour®). SMB browsing can also be used to manually discover and access shared printers when Samba is installed.

    Configuring the Server

    You must enable printer sharing on the server before clients can print through it. The simplest way to do this is to use the cupsctl(8) command on the server:

    cupsctl --share-printers
    

    By default, the above command will allow printing from other clients on the same subnet as your server. To allow printing from any subnet, use the following command instead:

    cupsctl --share-printers --remote-any
    

    Next, tag each printer that you want to share using the lpadmin(8) command on the server, for example:

    lpadmin -p printer -o printer-is-shared=true
    

    You can require authentication for shared printing by setting the policy on each printer, for example:

    lpadmin -p printer -o printer-op-policy=authenticated
    

    Automatic Configuration using IPP

    Note:

    This method of configuration does not work on macOS 10.7 or later because sandboxed applications do not always have direct network access.

    CUPS can be configured to run without a local spooler and send all jobs to a single server. However, if that server goes down then all printing will be disabled. Use this configuration only as absolutely necessary.

    The default server is normally the local system ("localhost"). To override the default server create a file named /etc/cups/client.conf with a line as follows:

    ServerName server
    

    The server name can be the hostname or IP address of the default server. If the server is not using the default IPP port (631), you can add the port number at the end like this:

    ServerName server:port
    

    The default server can also be customized on a per-user basis. To set a user-specific server create a file named ~/.cups/client.conf instead. The user client.conf file takes precedence over the system one.

    Finally, you can set the CUPS_SERVER environment variable to override the default server for a single process, for example:

    CUPS_SERVER=server:port firefox https://openprinting.github.io/cups
    

    will run the Firefox web browser pointed to the specified server and port. The environment variable overrides both the user and system client.conf files, if any.

    Manual Configuration of Print Queues

    Note:

    This method of configuration does not work on macOS 10.7 or later because sandboxed applications do not always have direct network access.

    The most tedious method of configuring client machines is to configure each remote queue by hand using the lpadmin(8) command:

    lpadmin -p printer -E -v ipp://server/printers/printer -m everywhere
    

    The printer name is the name of the printer on the server machine. The server name is the hostname or IP address of the server machine. Repeat the lpadmin command for each remote printer you wish to use.

    cups-2.4.7/doc/help/security.html0000644000175000017500000001070714502571342016620 0ustar zdohnalzdohnal Server Security

    Server Security

    In the default "standalone" configuration, there are few potential security risks - the CUPS server does not accept remote connections, and only accepts shared printer information from the local subnet. When you share printers and/or enable remote administration, you expose your system to potential unauthorized access. This help page provides an analysis of possible CUPS security concerns and describes how to better secure your server.

    Authentication Issues

    When you enable remote administration, the server will use Basic authentication for administration tasks. The current CUPS server supports Basic, Kerberos, and local certificate authentication:

    1. Basic authentication essentially places the clear text of the username and password on the network.

      Since CUPS uses the system username and password account information, the authentication information could be used to gain access to possibly privileged accounts on the server.

      Recommendation: Enable encryption to hide the username and password information - this is the default on macOS and systems with GNU TLS installed.

    2. Local certificate authentication passes 128-bit "certificates" that identify an authenticated user. Certificates are created on-the-fly from random data and stored in files under /var/run/cups/certs. They have restricted read permissions: root + system-group(s) for the root certificate, and lp + lp for CGI certificates.

      Because certificates are only available on the local system, the CUPS server does not accept local authentication unless the client is connected to the loopback interface (127.0.0.1 or ::1) or domain socket.

      Recommendation: Ensure that unauthorized users are not added to the system group(s).

    Denial of Service Attacks

    When printer sharing or remote administration is enabled, the CUPS server, like all Internet services, is vulnerable to a variety of denial of service attacks:

    1. Establishing multiple connections to the server until the server will accept no more.

      This cannot be protected against by any known software. The MaxClientsPerHost directive can be used to configure CUPS to limit the number of connections allowed from a single host, however that does not prevent a distributed attack.

      Recommendation: Limit access to trusted systems and networks.

    2. Repeatedly opening and closing connections to the server as fast as possible.

      There is no easy way of protecting against this in the CUPS software. If the attack is coming from outside the local network, it may be possible to filter such an attack. However, once the connection request has been received by the server it must at least accept the connection to find out who is connecting.

      Recommendation: None.

    3. Sending partial IPP requests; specifically, sending part of an attribute value and then stopping transmission.

      The current code will wait up to 1 second before timing out the partial value and closing the connection. This will slow the server responses to valid requests and may lead to dropped browsing packets, but will otherwise not affect the operation of the server.

      Recommendation: Block IPP packets from foreign or untrusted networks using a router or firewall.

    4. Sending large/long print jobs to printers, preventing other users from printing.

      There are limited facilities for protecting against large print jobs (the MaxRequestSize attribute), however this will not protect printers from malicious users and print files that generate hundreds or thousands of pages.

      Recommendation: Restrict printer access to known hosts or networks, and add user-level access controls as needed for expensive printers.

    Encryption Issues

    CUPS supports 128-bit TLS encryption of network connections via the GNU TLS library, macOS Security framework, and Windows Schannel APIs. Secure deployment of TLS depends on proper certificate management and software maintenance.

    cups-2.4.7/doc/help/ref-ppdcfile.html0000644000175000017500000021245414502571342017314 0ustar zdohnalzdohnal PPD Compiler Driver Information File Reference

    PPD Compiler Driver Information File Reference

    The CUPS PPD compiler reads meta files that contain descriptions of one or more PPD files to be generated by ppdc(1) or the corresponding driver interface program drv(1). The source file format is plain ASCII text that can be edited using your favorite text editor.

    Directives may be placed anywhere on a line and are followed by zero or more values.

    Comments are supported using the C (/* ... */) and C++ (// ...) comment mechanisms.

    Directives that accept expressions look for sequences of the form:

    NAME
    Evaluates to 1 if NAME is defined, otherwise 0.
    number
    Evaluates to the specified integer; the number can be preceded by a leading sign (+/-) followed by a decimal number (1234), octal number (01234), or hexadecimal number (0x1234) using the same rules as C and C++.
    (NAME NAME ... number number ...)
    Evaluates to the bitwise OR of each named #define constant or number.
    (NAME == OTHERNAME)
    (NAME == number)
    Evaluates to 1 if NAME is equal to the other named constant or number, otherwise 0.
    (NAME != OTHERNAME)
    (NAME != number)
    Evaluates to 1 if NAME is not equal to the other named constant or number, otherwise 0.
    (NAME < OTHERNAME)
    (NAME < number)
    Evaluates to 1 if NAME is less than to the other named constant or number, otherwise 0.
    (NAME <= OTHERNAME)
    (NAME <= number)
    Evaluates to 1 if NAME is less than or equal to the other named constant or number, otherwise 0.
    (NAME > OTHERNAME)
    (NAME > number)
    Evaluates to 1 if NAME is greater than to the other named constant or number, otherwise 0.
    (NAME >= OTHERNAME)
    (NAME >= number)
    Evaluates to 1 if NAME is greater than or equal to the other named constant or number, otherwise 0.

    Printer driver information can be grouped and shared using curly braces ({ ... }); PPD files are written when a close brace or end-of-file is seen and a PCFileName directive has been defined.

    #define

    Syntax

    #define name expression
    

    Examples

    #define FOO 100
    #define BAR "Bar, Inc."
    

    Description

    The #define directive assigns a value to a name which can be later referenced using $name. The name is case-insensitive and can be any sequence of letters, numbers, and the underscore. The value can be any valid expression.

    Predefined Names

    The following #define names are set by the PPD compiler:

    • CUPS_VERSION - The full CUPS version string, e.g. "1.4.0"
    • CUPS_VERSION_MAJOR - The major version number, e.g. "1"
    • CUPS_VERSION_MINOR - The minor version number, e.g. "4"
    • CUPS_VERSION_PATCH - The patch version number, e.g. "0"
    • PLATFORM_NAME - The operating system name used by the current system as reported by "uname" ("Windows" on Microsoft Windows)
    • PLATFORM_ARCH - The processor architecture used by the current system as reported by "uname -m" ("X86" or "X64" on Microsoft Windows)

    See Also

    #include

    #elif

    Syntax

    #elif expression
    

    Examples

    #if HAVE_FOO
    ...
    #elif (HAVE_BAR >= 999)
    ...
    #else
    ...
    #endif
    

    Description

    The #elif directive allows portions of a driver information file to be used conditionally. #elif directives must appear after a corresponding #if directive.

    See Also

    #else, #endif, #if

    #else

    Syntax

    #else
    

    Examples

    #if HAVE_FOO
    ...
    #elif (HAVE_BAR >= 999)
    ...
    #else
    ...
    #endif
    

    Description

    The #else directive allows portions of a driver information file to be used conditionally when the corresponding #if and #elif expressions are non-zero.

    See Also

    #elif, #endif, #if

    #endif

    Syntax

    #endif
    

    Examples

    #if HAVE_FOO
    ...
    #elif (HAVE_BAR >= 999)
    ...
    #else
    ...
    #endif
    

    Description

    The #endif directive ends a conditional block of a driver information file. It must appear after all of the #if, #elif, and #else directives for the current conditional block.

    See Also

    #elif, #else, #if

    #font

    Syntax

    #font name encoding "version" charset status
    

    Examples

    #font Courier Standard "(1.05)" Standard ROM
    #font Symbol Special "(001.005)" Special ROM
    #font Barcode-Foo Special "(1.0)" Special Disk
    #font Unicode-Foo Expert "(2.0)" Adobe-Identity ROM
    

    Description

    The #font directive defines a "base font" for all printer drivers. The name is the PostScript font name.

    The encoding is the default encoding of the font, usually Standard, Expert, or Special, as defined in the Adobe PPD file specification.

    The version is the PostScript string definition that corresponds to the font version number.

    The charset defines the available characters in the font, usually Standard or Special, as defined in the Adobe PPD file specification.

    The status is the installation status of the font and must be either the word ROM or Disk.

    Base fonts differ from fonts defined using the Font directive in that they are not automatically associated with all drivers - you must use the special Font * directive to include them in a driver.

    Currently the #font directive is used mainly for defining the standard raster fonts in the <font.defs> include file.

    See Also

    #include, Font

    #if

    Syntax

    #if name or expression
    

    Examples

    #if HAVE_FOO
    ...
    #elif (HAVE_BAR >= 999)
    ...
    #else
    ...
    #endif
    

    Description

    The #if directive allows portions of a driver information file to be used conditionally. When followed by a name, the data that follows is used only when the name is defined, otherwise the data is ignored. #if directives can be nested up to 100 times.

    See Also

    #elif, #else, #endif

    #include

    Syntax

    #include <filename>
    #include "filename"
    

    Examples

    #include <font.defs>
    #include "myfile.h"
    

    Description

    The #include directive reads the named driver information file. If the filename is included inside angle brackets (<filename>), then the PPD compiler will look for the file in all of the include directories it knows about. Otherwise, the file is opened in the current directory relative to the current driver information file, and if that fails then it looks in the include directories for the file.

    The #include directive can be nested to as many files as are allowed by the host operating system, typically at least 100 files.

    See Also

    #define, #font, #media

    #media

    Syntax

    #media name width length
    #media "name/text" width length
    

    Examples

    #media "Letter/Letter - 8.5x11in" 8.5in 11in
    #media "A4/A4 - 210x297mm" 210mm 297mm
    #media "w936h1368/Super B/A3 - 13x19in" 936 1368
    #media Photo 4in 6in
    

    Description

    The #media directive defines a named media size for inclusion in a driver. The name with optional user text defines the name for the media size and is used with the MediaSize directive to associate the media size with the driver. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58). The user text, if supplied, may not exceed 80 bytes in length.

    The width and length define the dimensions of the media. Each number is optionally followed by one of the following unit suffixes:

    • cm - centimeters
    • ft - feet
    • in - inches
    • m - meters
    • mm - millimeters
    • pt - points (72 points = 1 inch)

    Points are assumed if no units are specified.

    See Also

    #include, CustomMedia, MediaSize

    #po

    Syntax

    #po locale filename
    

    Examples

    #po es "es.po"
    #po fr_CA "mydriver-fr_CA.po"
    

    Description

    The #po directive defines a message catalog to use for the given POSIX language abbreviation. Multiple #po directives can be specified to list multiple catalogs. The filename can be an absolute path or relative to the driver information file. GNU gettext and macOS .strings files are supported.

    Attribute

    Syntax

    Attribute name "" value
    Attribute name keyword value
    Attribute name "keyword/text" value
    

    Examples

    Attribute cupsInkChannels "" 1
    Attribute cupsAllDither 600dpi "1.0"
    Attribute fooProfile "Photo/Photographic Profile" "photopro.icc"
    

    Description

    The Attribute directive creates a PPD attribute. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    The selector can be the empty string ("") or text of up to 80 bytes.

    The value is any string or number; the string may contain multiple lines, however no one line may exceed 255 bytes.

    See Also

    LocAttribute

    Choice

    Syntax

    Choice name "code"
    Choice "name/text" "code"
    

    Examples

    Choice None "<</MediaType (None)>>setpagedevice"
    Choice "False/No" "<</cupsCompression 0>>setpagedevice"
    

    Description

    The Choice directive adds a single choice to the current option. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The code is any string and may contain multiple lines, however no one line may exceed 255 bytes.

    See Also

    ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    ColorDevice

    Syntax

    ColorDevice boolean-value
    

    Examples

    ColorDevice no
    ColorDevice yes
    

    Description

    The ColorDevice directive tells the application if the printer supports color. It is typically used in conjunction with the ColorModel directive to provide color printing support.

    See Also

    ColorModel

    DeprecatedColorModel

    Syntax

    ColorModel name colorspace colororder compression
    ColorModel "name/text" colorspace colororder compression
    

    Examples

    ColorModel Gray/Grayscale w chunky 0
    ColorModel RGB/Color rgb chunky 0
    ColorModel CMYK cmyk chunky 0
    

    Description

    The ColorModel directive is a convenience directive which creates a ColorModel option and choice for the current printer driver. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The colorspace argument is one of the standard colorspace keywords defined later in this appendix in the section titled, "Colorspace Keywords".

    The colororder argument is one of the standard color order keywords defined later in this appendix in the section titled, "Color Order Keywords".

    The compression argument is any number and is assigned to the cupsCompression attribute in the PostScript page device dictionary.

    See Also

    Choice, ColorDevice, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    DeprecatedColorProfile

    Syntax

    ColorProfile resolution/mediatype gamma density matrix
    

    Examples

    ColorProfile -/- 1.7 1.0
         1.0    0.0    0.0
         0.0    1.0    0.0
         0.0    0.0    1.0
    
    ColorProfile 360dpi/- 1.6 1.0
         1.0   -0.05  -0.3
        -0.35   1.0   -0.15
        -0.095 -0.238  0.95
    
    ColorProfile 720dpi/Special 1.5 1.0
         1.0    0.0   -0.38
        -0.4    1.0    0.0
         0.0   -0.38   0.9
    

    Description

    The ColorProfile directive defines a CMY transform-based color profile. The resolution and mediatype arguments specify the Resolution and MediaType choices which use the profile; the hyphen (-) is used to specify that any resolution or mediatype can be used with the profile.

    The gamma argument specifies the gamma correction to apply to the color values (P = pg) and is a real number greater than 0. Values larger than 1 cause a general lightening of the print while values smaller than 1 cause a general darkening of the print. A value of 1 disables gamma correction.

    The density argument specifies the linear density correction to apply to the color values (P = d * pg) and is a real number greater than 0 and less than or equal to 1. A value 1 of disables density correction while lower values produce proportionately lighter output.

    The matrix argument specifies a 3x3 linear transformation matrix in row-major order. The matrix is applied only to the CMY component of a RGB to CMYK transformation and is not used when printing in grayscale or CMYK mode unless the printer only supports printing with 3 colors.

    See Also

    SimpleColorProfile

    Copyright

    Syntax

    Copyright "text"
    

    Examples

    Copyright "Copyright 2008 by Foo Enterprises"
    
    Copyright
    "This software 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 software 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 software; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
    MA 02111 USA"
    

    Description

    The Copyright directive adds text comments to the top of a PPD file, typically for use in copyright notices. The text argument can contain multiple lines of text, but no line may exceed 255 bytes.

    CustomMedia

    Syntax

    CustomMedia name width length left bottom right top
        "size-code" "region-code"
    
    CustomMedia "name/text" width length left bottom right top
        "size-code" "region-code"
    

    Examples

    CustomMedia Letter 8.5in 11in 0.25in 0.46in 0.25in 0.04in
        "<</PageSize[612 792]/ImagingBBox null/ManualFeed false>>
         setpagedevice"
        "<</PageSize[612 792]/ImagingBBox null/ManualFeed true>>
         setpagedevice"
    
    CustomMedia "A4/A4 - 210x297mm" 210mm 297mm 12 12 12 12
        "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
        "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
    

    Description

    The CustomMedia directive adds a custom media size to the driver. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The width and length arguments specify the dimensions of the media as defined for the #media directive.

    The left, bottom, right, and top arguments specify the printable margins of the media.

    The size-code and region-code arguments specify the PostScript commands to run for the PageSize and PageRegion options, respectively. The commands can contain multiple lines, however no line may be more than 255 bytes in length.

    See Also

    #media, MediaSize

    Cutter

    Syntax

    Cutter boolean-value
    

    Examples

    Cutter yes
    Cutter no
    

    Description

    The Cutter directive specifies whether the printer has a built-in media cutter. When a cutter is present, the printer's PPD file will contain a CutMedia option that allows the user to control whether the media is cut at the end of the job.

    See Also

    Choice, ColorModel, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    DeprecatedDarkness

    Syntax

    Darkness temperature name
    Darkness temperature "name/text"
    

    Examples

    Darkness 0 Light
    Darkness 2 "Normal/Standard"
    

    Description

    The Darkness directive defines a choice for the cupsDarkness option which sets the cupsCompression attribute in the PostScript page device dictionary. It is used with the CUPS rastertolabel sample driver to control the print head temperature and therefore the darkness of the print.

    The temperature argument specifies a temperature value for the Dymo driver from 0 (lowest) to 3 (highest), with 2 representing the normal setting.

    The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    See Also

    Choice, ColorModel, Cutter, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    DriverType

    Syntax

    DriverType type
    

    Examples

    DriverType custom
    DriverType escp
    DriverType pcl
    DriverType ps
    

    Description

    The DriverType directive tells the PPD compiler which DDK filters to include in the PPD file. The following types are supported:

    • custom - Use only those filters that are defined in the driver information file
    • epson - Use the CUPS sample Epson driver filter rastertoepson
    • escp - Use the ESC/P DDK driver filters commandtoescpx and rastertoescpx
    • hp - Use the CUPS sample HP driver filter rastertohp
    • label - Use the CUPS sample label driver filter rastertolabel
    • pcl - Use the HP-PCL DDK driver filters commandtopclx and rastertopclx
    • ps - Use no filters; this driver is for a standard PostScript device

    See Also

    Filter, ModelNumber

    Duplex

    Syntax

    Duplex type
    

    Examples

    Duplex none
    Duplex normal
    Duplex flip
    Duplex rotated
    Duplex manualtumble
    

    Description

    The Duplex directive determines whether double-sided printing is supported in the current driver. The type argument specifies the type of duplexing that is supported:

    • none - double-sided printing is not supported
    • normal - double-sided printing is supported
    • flip - double-sided printing is supported, but the back side image needs to be flipped vertically (used primarily with inkjet printers)
    • rotated - double-sided printing is supported, but the back side image needs to be rotated 180 degrees for DuplexNoTumble
    • manualtumble - double-sided printing is supported, but the back side image needs to be rotated 180 degrees for DuplexTumble

    See Also

    Choice, ColorModel, Cutter, Darkness, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    FileName

    Syntax

    FileName "filename"
    

    Examples

    FileName "Acme Laser Printer 2000"
    FileName "Acme Ink Waster 1000"
    

    Description

    The FileName attribute specifies the "long" name of the PPD file for the current driver.

    See Also

    Manufacturer, ModelName, PCFileName, Version

    Filter

    Syntax

    Filter mime-type cost program
    

    Examples

    Filter application/vnd.cups-raster 50 rastertofoo
    Filter application/vnd.hp-HPGL 25 /usr/foo/filter/hpgltofoo
    

    Description

    The Filter directive adds a filter for the current driver. The mime-type argument is a valid MIME media type name as defined in a CUPS mime.types file.

    The cost argument specifies the relative cost of the filter. In general, use a number representing the average percentage of CPU time that is used when printing the specified MIME media type.

    The program argument specifies the program to run; if the program is not an absolute filename, then CUPS will look for the program in the CUPS filter directory.

    See Also

    DriverType

    DeprecatedFinishing

    Syntax

    Finishing name
    Finishing "name/text"
    

    Examples

    Finishing None
    Finishing "Glossy/Photo Overcoat"
    

    Description

    The Finishing directive adds a choice to the cupsFinishing option. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The name is stored in the OutputType attribute in the PostScript page device dictionary.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Group, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    Font

    Syntax

    Font name encoding "version" charset status
    Font *
    

    Examples

    Font *
    Font Courier Standard "(1.05)" Standard ROM
    Font Symbol Special "(001.005)" Special ROM
    Font Barcode-Foo Special "(1.0)" Special Disk
    Font Unicode-Foo Expert "(2.0)" Adobe-Identity ROM
    

    Description

    The Font directive defines a "device font" for the current printer driver. The name is the PostScript font name.

    The encoding is the default encoding of the font, usually Standard, Expert, or Special, as defined in the Adobe PPD file specification.

    The version is the PostScript string definition that corresponds to the font version number.

    The charset defines the available characters in the font, usually Standard or Special, as defined in the Adobe PPD file specification.

    The status is the installation status of the font and must be either the word ROM or Disk.

    Device fonts differ from fonts defined using the #font directive in that they are automatically associated with the current driver. Fonts defined using #font may be imported into the current driver using the Font * form of this directive.

    See Also

    #font

    Group

    Syntax

    Group name
    Group "name/text"
    

    Examples

    Group General
    Group "InstallableOptions/Options Installed"
    Group "Special/Vendor Options"
    

    Description

    The Group directive specifies the group for new Option directives. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 40 bytes in length. If no text is provided, the name is used.

    The names General and InstallableOptions are predefined for the standard Adobe UI keywords and for installable options, respectively.

    Note:

    Because of certain API binary compatibility issues, CUPS limits the length of PPD group translation strings (text) to 40 bytes, while the PPD specification allows for up to 80 bytes.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, InputSlot, Installable, MediaType, Option, Resolution, UIConstraints

    HWMargins

    Syntax

    HWMargins left bottom right top
    

    Examples

    HWMargins 18 36 18 36
    HWMargins 0.25in 0.5in 0.25in 0.5in
    HWMargins 0.6cm 1.2cm 0.6cm 1.2cm
    

    Description

    The HWMargins directive specifies the current margins for MediaSize that follow. The left, bottom, right, and top margin values specify the printable margins.

    See Also

    MediaSize

    InputSlot

    Syntax

    InputSlot position name
    InputSlot position "name/text"
    

    Examples

    InputSlot 0 Auto
    InputSlot 1 "Upper/Tray 1"
    

    Description

    The InputSlot directive adds a new choice to the InputSlot option. The position argument is a number from 0 to 232-1 specifying the value that is placed in the MediaPosition attribute in the PostScript page device dictionary.

    The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, Installable, MediaType, Option, Resolution, UIConstraints

    Installable

    Syntax

    Installable name
    Installable "name/text"
    

    Examples

    Installable EnvTray
    Installable "Option1/Duplexer Installed"
    

    Description

    The Installable directive adds a new boolean option to the InstallableOptions group with a default value of False. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    LocAttribute

    Syntax

    LocAttribute name "keyword/text" value
    

    Examples

    LocAttribute fooProfile "Photo/Photographic Profile" "photopro.icc"
    

    Description

    The LocAttribute directive creates a localized PPD attribute. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    The selector can be the empty string ("") or text of up to 80 bytes.

    The value is any string or number; the string may contain multiple lines, however no one line may exceed 255 bytes.

    See Also

    Attribute

    ManualCopies

    Syntax

    ManualCopies boolean-value
    

    Examples

    ManualCopies no
    ManualCopies yes
    

    Description

    The ManualCopies directive specifies whether copies need to be produced by the RIP filters. The default is no.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, MediaType, Option, Resolution, UIConstraints

    Manufacturer

    Syntax

    Manufacturer "name"
    

    Examples

    Manufacturer "Foo"
    Manufacturer "HP"
    

    Description

    The Manufacturer directive specifies the manufacturer name for the current driver. The name argument must conform to the manufacturer name requirements in the Adobe PPD file specification.

    See Also

    FileName, ModelName, PCFileName, Version

    MaxSize

    Syntax

    MaxSize width length
    

    Examples

    MaxSize 36in 100ft
    MaxSize 300cm 30m
    

    Description

    The MaxSize directive specifies the maximum width and length that is supported for custom page sizes.

    See Also

    MinSize, VariablePaperSize

    MediaSize

    Syntax

    MediaSize name
    

    Examples

    MediaSize Letter
    MediaSize A4
    

    Description

    The MediaSize directive adds the named size to the current printer driver using the current margins defined with the HWMargins directive. The name argument must match a media size defined using the #media directive.

    See Also

    #media, HWMargins

    MediaType

    Syntax

    MediaType type name
    MediaType type "name/text"
    

    Examples

    MediaType 0 Auto
    MediaType 1 "Plain/Plain Paper"
    

    Description

    The MediaType directive adds a new choice to the MediaType option. The type argument is a number from 0 to 232-1 specifying the value that is placed in the cupsMediaType attribute in the PostScript page device dictionary.

    The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The name is placed in the MediaType attribute in the PostScript page device dictionary.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, Option, Resolution, UIConstraints

    MinSize

    Syntax

    MinSize width length
    

    Examples

    MinSize 4in 8in
    MinSize 10cm 20cm
    

    Description

    The MinSize directive specifies the minimum width and length that is supported for custom page sizes.

    See Also

    MaxSize, VariablePaperSize

    ModelName

    Syntax

    ModelName "name"
    

    Examples

    ModelName "Foo Laser Printer 2000"
    ModelName "Colorific 123"
    

    Description

    The ModelName directive sets the printer name for the ModelName, NickName, and ShortNickName attributes for the printer driver. The name is any string of letters, numbers, spaces, and the characters ".", "/", "-", and "+" and should not begin with the manufacturer name since the PPD compiler will add this automatically for you. The maximum length of the name string is 31 bytes to conform to the Adobe limits on the length of ShortNickName.

    See Also

    FileName, Manufacturer, PCFileName, Version

    ModelNumber

    Syntax

    ModelNumber expression
    

    Examples

    ModelNumber 123
    ModelNumber ($PCL_PAPER_SIZE $PCL_PJL)
    

    Description

    The ModelNumber directive sets the cupsModelNumber attribute for the printer driver, which is often used by the printer driver filter to tailor its output for the current device. The number is any integer or bitwise OR of integers and constants that is appropriate for the printer driver filters.

    A complete list of printer driver model number constants is available later in this appendix in the section titled, "Printer Driver ModelNumber Constants".

    See Also

    DriverType, Filter

    Option

    Syntax

    Option name type section order
    Option "name/text" type section order
    

    Examples

    Option Punch Boolean AnySetup 10
    Option "fooFinish/Finishing Option" PickOne DocumentSetup 10
    

    Description

    The Option directive creates a new option in the current group, by default the General group. The name may contain up to 40 ASCII characters within the range of decimal 33 to decimal 126 inclusive, except for the characters comma (44), slash (47) and colon (58).

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    The type argument is one of the following keywords:

    • Boolean - a true/false option
    • PickOne - allows the user to pick one choice from a list
    • PickMany - allows the user to pick zero or more choices from a list

    The section argument is one of the following keywords:

    • AnySetup - The option can be placed in either the DocumentSetup or PageSetup sections of the PostScript document
    • DocumentSetup - The option must be placed in the DocumentSetup section of the PostScript document; this does not allow the option to be overridden on individual pages
    • ExitServer - The option must be placed in a separate initialization job prior to the document (not used for raster printer drivers)
    • JCLSetup - The option contains job control language commands and must be sent prior to the document using the JCLBegin and JCLToPSInterpreter attributes (not used for raster printer drivers)
    • PageSetup - The option must be placed at the beginning of each page in the PostScript document
    • Prolog - The option must be placed in the prolog section of the PostScript document; this is typically used to add special comments for high-end typesetters, but can also be used to add CUPS PostScript job ticket comments.

    The order argument is a real number greater than or equal to 0.0 and is used to sort the printer commands from many options before sending them to the printer or RIP filter.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Resolution, UIConstraints

    PCFileName

    Syntax

    PCFileName "filename.ppd"
    

    Examples

    PCFileName "foljt2k1.ppd"
    PCFileName "deskjet.ppd"
    

    Description

    The PCFileName attribute specifies the name of the PPD file for the current driver. The filename argument must conform to the Adobe PPD file specification and can be no more than 8 filename characters plus the extension ".ppd".

    See Also

    FileName, Manufacturer, ModelName, Version

    DeprecatedResolution

    Syntax

    Resolution colorspace bits-per-color row-count row-feed row-step name
    Resolution colorspace bits-per-color row-count row-feed row-step "name/text"
    

    Examples

    Resolution - 8 0 0 0 300dpi
    Resolution k 8 0 0 0 "600x300dpi/600 DPI Grayscale"
    

    Description

    The Resolution directive creates a new Resolution option choice which sets the HWResolution, cupsBitsPerColor, cupsRowCount, cupsRowFeed, cupsRowStep, and optionally the cupsColorSpace page device dictionary attributes. The colorspace argument specifies a colorspace to use for the specified resolution and can be the hyphen (-) character to make no change to the selected color model or any keyword listed in the section titled, "Colorspace Keywords", to force the named colorspace.

    The bits-per-color argument specifies the number of bits per color to generate when RIP'ing a job. The values 1, 2, 4, and 8 are currently supported by CUPS.

    The row-count, row-feed, and row-step argument specify the driver-dependent values for the cupsRowCount, cupsRowFeed, and cupsRowStep attributes, respectively. Most drivers leave these attributes set to 0, but any number from 0 to 232-1 is allowed.

    The name argument must conform to the resolution naming conventions in the Adobe PPD file specification, either HHHdpi for symmetric resolutions or HHHxVVVdpi for asymmetric resolutions. The HHH and VVV in the examples represent the horizontal and vertical resolutions which must be positive integer values.

    If provided, the text can be any string up to 80 bytes in length. If no text is provided, the name is used.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, UIConstraints

    DeprecatedSimpleColorProfile

    Syntax

    SimpleColorProfile resolution/mediatype density
        yellow-density red-density gamma
        red-adjust green-adjust blue-adjust
    

    Examples

    SimpleColorProfile -/- 100 100 200 1.0 0 0 0
    
    SimpleColorProfile 360dpi/- 100 95 150 1.2 5 10 15
    
    SimpleColorProfile 720dpi/Glossy 100 90 120 1.5 -5 5 10
    

    Description

    The SimpleColorProfile directive creates a matrix-based ColorProfile. The resolution and mediatype arguments specify the Resolution and MediaType choices which use the profile; the hyphen (-) is used to specify that any resolution or mediatype can be used with the profile.

    The density argument specifies the linear density correction to apply to the color values (P = d * 0.01 * pg) and is an integer greater than 0 and less than or equal to 100. A value 100 of disables density correction while lower values produce proportionately lighter output. The density value adjusts all color channels equally in all color modes.

    The yellow-density argument specifies the density of the yellow channel when printing in grayscale or RGB mode and is an integer greater than 0 and less then or equal to 100. A value of 100 disables yellow density correction while lower values produce proportionately lighter output.

    The red-density argument specifies the two-color density limit (e.g. C + M, C + Y, M + Y) when printing in grayscale or RGB mode and is an integer greater than 0 and less then or equal to 200. A value of 200 disables two-color density correction while lower values produce proportionately lighter output.

    The gamma argument specifies the gamma correction to apply to the color values (P = pg) and is a real number greater than 0. Values larger than 1 cause a general lightening of the print while values smaller than 1 cause a general darkening of the print. A value of 1 disables gamma correction.

    The red-adjust, green-adjust, blue-adjust arguments specify the percentage of color to add or remove. Positive red-adjust values add magenta and negative values add yellow. Positive green-adjust values add cyan and negative values add yellow. Positive blue-adjust values add cyan and negative values add magenta. Values of 0 disable color adjustments.

    See Also

    ColorProfile

    Throughput

    Syntax

    Throughput pages-per-minute
    

    Examples

    Throughput 1
    Throughput 10
    

    Description

    The Throughput directive sets the Throughput attribute for the current printer driver. The pages-per-minute argument is a positive integer representing the peak number of pages per minute that the printer is capable of producing. Use a value of 1 for printers that produce less than 1 page per minute.

    UIConstraints

    Syntax

    UIConstraints "*Option1 *Option2"
    UIConstraints "*Option1 Choice1 *Option2"
    UIConstraints "*Option1 *Option2 Choice2"
    UIConstraints "*Option1 Choice1 *Option2 Choice2"
    

    Examples

    UIConstraints "*Finishing *MediaType"
    UIConstraints "*Option1 False *Duplex"
    UIConstraints "*Duplex *MediaType Transparency"
    UIConstraints "*Resolution 600dpi *ColorModel RGB"
    

    Description

    The UIConstraints directive adds a constraint between two options. Constraints inform the application when a user has chosen incompatible options. Each option name is preceded by the asterisk (*). If no choice is given for an option, then all choices except False and None will conflict with the other option and choice(s). Since the PPD compiler automatically adds reciprocal constraints (option A conflicts with option B, so therefore option B conflicts with option A), you need only specify the constraint once.

    See Also

    Choice, ColorModel, Cutter, Darkness, Duplex, Finishing, Group, InputSlot, Installable, MediaType, Option, Resolution

    VariablePaperSize

    Syntax

    VariablePaperSize boolean-value
    

    Examples

    VariablePaperSize yes
    VariablePaperSize no
    

    Description

    The VariablePaperSize directive specifies whether the current printer supports variable (custom) page sizes. When yes is specified, the PPD compiler will include the standard PPD attributes required to support custom page sizes.

    See Also

    MaxSize, MinSize

    Version

    Syntax

    Version number
    

    Examples

    Version 1.0
    Version 3.7
    

    Description

    The Version directive sets the FileVersion attribute in the PPD file and is also used for the NickName attribute. The number argument is a positive real number.

    See Also

    Manufacturer, ModelName, PCFileName

    Standard Include Files

    Table B-1 shows the standard include files which are provided with the DDK.

    Table B-1, Standard Include Files
    Include File Description
    <font.defs> Defines all of the standard fonts which are included with ESP Ghostscript and the Apple PDF RIP.
    <epson.h> Defines all of the CUPS ESC/P sample driver constants.
    <escp.h> Defines all of the DDK ESC/P driver constants.
    <hp.h> Defines all of the CUPS HP-PCL sample driver constants.
    <label.h> Defines all of the CUPS label sample driver constants.
    <media.defs> Defines all of the standard media sizes listed in Appendix B of the Adobe PostScript Printer Description File Format Specification.
    <pcl.h> Defines all of the DDK HP-PCL driver constants.
    <raster.defs> Defines all of the CUPS raster format constants.

    Printer Driver ModelNumber Constants

    The CUPS DDK and sample drivers use the cupsModelNumber attribute in the PPD file to tailor their output to the printer. The following sections describe the constants for each driver.

    The CUPS ESC/P Sample Driver (epson)

    The epson driver supports Epson and Okidata dot-matrix, Epson Stylus Color, and Epson Stylus Photo printers. Table B-2 lists the constants for the ModelNumber directive. ModelNumber values should be inserted by referencing only one of these constants.

    Table B-2, epson driver constants
    Constant Description
    EPSON_9PIN Epson and Okidata 9-pin dot-matrix printers
    EPSON_24PIN Epson and Okidata 24-pin dot-matrix printers
    EPSON_COLOR Older Epson Stylus Color printers that use the ESC . graphics command
    EPSON_PHOTO Older Epson Stylus Photo printers that use the ESC . graphics command
    EPSON_ICOLOR Newer Epson Stylus Color printers that use the ESC i graphics command
    EPSON_IPHOTO Newer Epson Stylus Photo printers that use the ESC i graphics command

    The CUPS HP-PCL Sample Driver (hp)

    The hp driver supports HP LaserJet and DeskJet printers. Table B-3 lists the constants for the ModelNumber directive. ModelNumber values should be inserted by referencing only one of these constants.

    Table B-3, hp driver constants
    Constant Description
    HP_LASERJET HP LaserJet printers supporting PCL 3, 4, or 5
    HP_DESKJET HP DeskJet printers supporting PCL 3 and using the simple color graphics command (ESC * r # U)
    HP_DESKJET2 HP DeskJet printers supporting PCL3GUI and using the configure raster graphics command (ESC * g # W)

    The CUPS Label Sample Driver (label)

    The label driver supports the Dymo Labelwriter, Zebra CPCL, Zebra EPL, and Zebra ZPL, and Intellitech PCL label printers. Table B-4 lists the constants for the ModelNumber directive. ModelNumber values should be inserted by referencing only one of these constants.

    Table B-4, label driver constants
    Constant Description
    DYMO_3x0 Format output for the Dymo Labelwriter 300, 330, or 330 Turbo.
    INTELLITECH_PCL Format output for the Intellitech PCL printers.
    ZEBRA_CPCL Format output for the Zebra CPCL printers.
    ZEBRA_EPL_LINE Format output for the Zebra EPL line mode (EPL 1) printers.
    ZEBRA_EPL_PAGE Format output for the Zebra EPL page mode (EPL 2) printers.
    ZEBRA_ZPL Format output for the Zebra ZPL printers.

    The DDK ESC/P Driver (escp)

    The escp driver supports all Epson inkjet printers. Table B-6 lists the constants for the ModelNumber directive. ModelNumber values should be specified as the bitwise OR of one or more of these constants.

    Table B-6, escp driver constants
    Constant Description
    ESCP_MICROWEAVE Use microweave command?
    ESCP_STAGGER Are color jets staggered?
    ESCP_ESCK Use print mode command?
    ESCP_EXT_UNITS Use extended unit commands?
    ESCP_EXT_MARGINS Use extended margin command?
    ESCP_USB Send USB packet mode escape
    ESCP_PAGE_SIZE Use page size command
    ESCP_RASTER_ESCI Use ESC i graphics command
    ESCP_REMOTE Use remote mode commands
    ESCP_REMOTE_AC Use auto-cutter command
    ESCP_REMOTE_CO Use cutter-operation command
    ESCP_REMOTE_EX Use media-position command
    ESCP_REMOTE_MS Use media-size command
    ESCP_REMOTE_MT Use media-type command
    ESCP_REMOTE_PC Use paper-check command
    ESCP_REMOTE_PH Use paper-thickness command
    ESCP_REMOTE_PP Use paper-path command
    ESCP_REMOTE_SN0 Use feed-sequence-0 command
    ESCP_REMOTE_SN1 Use platten-gap command
    ESCP_REMOTE_SN2 Use feed-sequence-2 command
    ESCP_REMOTE_SN6 Use eject-delay command
    ESCP_REMOTE_FP Use print-position command

    The DDK HP-PCL Driver (pcl)

    The pcl driver supports all HP LaserJet, DeskJet, and DesignJet printers. Table B-5 lists the constants for the ModelNumber directive. ModelNumber values should be specified as the bitwise OR of one or more of these constants.

    Table B-5, pcl driver constants
    Constant Description
    PCL_PAPER_SIZE Use paper size command (ESC & l # A)
    PCL_INKJET Use inkjet commands
    PCL_RASTER_END_COLOR Use new end-raster command (ESC * r C)
    PCL_RASTER_CID Use configure-image-data command (ESC * v # W)
    PCL_RASTER_CRD Use configure-raster-data command (ESC * g # W)
    PCL_RASTER_SIMPLE Use simple-raster-color command (ESC * r # U)
    PCL_RASTER_RGB24 Use 24-bit RGB mode
    PCL_PJL Use PJL commands
    PCL_PJL_PAPERWIDTH Use PJL PAPERWIDTH/LENGTH commands
    PCL_PJL_HPGL2 Use PJL ENTER HPGL2 command
    PCL_PJL_PCL3GUI Use PJL ENTER PCL3GUI command
    PCL_PJL_RESOLUTION Use PJL SET RESOLUTION command

    Color Keywords

    The PPD compiler defines two types of color keywords: colorspace and color order. The following sections list the supported keywords for each type.

    Colorspace Keywords

    The following colorspace keywords are recognized:

    • cielab - CIE Lab **
    • ciexyz - CIE XYZ **
    • cmy - Cyan, magenta, yellow
    • cmyk - Cyan, magenta, yellow, black
    • gmck - Gold, magenta, yellow, black **
    • gmcs - Gold, magenta, yellow, silver **
    • gold - Gold foil **
    • icc1 - ICC-based, 1 color **
    • icc2 - ICC-based, 2 colors **
    • icc3 - ICC-based, 3 colors **
    • icc4 - ICC-based, 4 colors **
    • icc5 - ICC-based, 5 colors **
    • icc6 - ICC-based, 6 colors **
    • icc7 - ICC-based, 7 colors **
    • icc8 - ICC-based, 8 colors **
    • icc9 - ICC-based, 9 colors **
    • icca - ICC-based, 10 colors **
    • iccb - ICC-based, 11 colors **
    • iccc - ICC-based, 12 colors **
    • iccd - ICC-based, 13 colors **
    • icce - ICC-based, 14 colors **
    • iccf - ICC-based, 15 colors **
    • k - Black
    • kcmy - Black, cyan, magenta, yellow *
    • kcmycm - Black, cyan, magenta, yellow, light-cyan, light-magenta *
    • rgb - Red, green, blue
    • rgba - Red, green, blue, alpha
    • rgbw - Red, green, blue, luminance *
    • silver - Silver foil **
    • w - Luminance
    • white - White ink (as black) **
    • ymc - Yellow, magenta, cyan *
    • ymck - Yellow, magenta, cyan, black *
       
      * = This colorspace is not supported on macOS prior to 10.4.
      ** = This colorspace is not supported on macOS.

    Color Order Keywords

    The following color order keywords are recognized:

    • chunked or chunky - Color values are passed together on a line as RGB RGB RGB RGB
    • banded - Color values are passed separately on a line as RRRR GGGG BBBB *
    • planar - Color values are passed separately on a page as RRRR RRRR RRRR ... GGGG GGGG GGGG ... BBBB BBBB BBBB *
       
      * = This color order is not supported by the current Apple RIP filters and should not be used when developing printer drivers for macOS.
    cups-2.4.7/doc/help/raster-driver.html0000644000175000017500000004311014502571342017534 0ustar zdohnalzdohnal Developing Raster Printer Drivers

    Developing Raster Printer Drivers

    This document describes how to develop printer drivers for raster printers. Topics include: printer driver basics, creating new PPD files, using filters, implementing color management, and adding macOS features.

    Printer Driver Basics

    A CUPS raster printer driver consists of a PostScript Printer Description (PPD) file that describes the features and capabilities of the device, one or more filter programs that prepare print data for the device, and zero or more support files for color management, online help, and so forth. The PPD file includes references to all of the filters and support files used by the driver.

    Every time a user prints something the scheduler program, cupsd(8), determines the format of the print job and the programs required to convert that job into something the printer understands. CUPS includes filter programs for many common formats, for example to convert Portable Document Format (PDF) files into CUPS raster data. Figure 1 shows the data flow of a typical print job.

    The raster filter converts CUPS raster data into a format the printer understands, for example HP-PCL. CUPS includes several sample raster filters supporting standard page description languages (PDLs). Table 1 shows the raster filters that are bundled with CUPS and the languages they support.

    Table 1: Standard CUPS Raster Filters
    FilterPDLsppdc DriverTypeppdc #include file
    rastertoepsonESC/P, ESC/P2epsonepson.h
    rastertoescpxESC/P, ESC/P2, EPSON Remote Modeescpescp.h
    rastertohpHP-PCL3, HP-PCL5hphp.h
    rastertolabelCPCL, Dymo, EPL1, EPL2, Intellitech PCL, ZPLlabellabel.h
    rastertopclxHP-RTL, HP-PCL3, HP-PCL3GUI, HP-PCL5, HP-PCL5c, HP-PCL5epclpcl.h

    The optional port monitor handles interface-specific protocol or encoding issues. For example, some raster printers use the 1284.4 communications protocol.

    The backend handles communications with the printer, sending print data from the last filter to the printer and relaying back-channel data from the printer to the upstream filters. CUPS includes backend programs for common direct-connect interfaces and network protocols, and you can provide your own backend to support custom interfaces and protocols.

    The scheduler also supports a special "command" file format for sending maintenance commands and status queries to a printer or printer driver. Command print jobs typically use a single command filter program defined in the PPD file to generate the appropriate printer commands and handle any responses from the printer. Figure 2 shows the data flow of a typical command job.

    Raster printer drivers must provide their own command filter.

    Creating New PPD Files

    We recommend using the CUPS PPD compiler, ppdc(1), to create new PPD files since it manages many of the tedious (and error-prone!) details of paper sizes and localization for you. It also allows you to easily support multiple devices from a single source file. For more information see the "Introduction to the PPD Compiler" document. Listing 1 shows a driver information file for several similar black-and-white HP-PCL5 laser printers.

    Listing 1: "examples/laserjet-basic.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // Include HP-PCL driver definitions
    #include <pcl.h>
    
    // Specify that this driver uses the HP-PCL driver...
    DriverType pcl
    
    // Specify the driver options via the model number...
    ModelNumber ($PCL_PAPER_SIZE $PCL_PJL $PCL_PJL_RESOLUTION)
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and driver version
    Manufacturer "HP"
    Version 1.0
    
    // Supported page sizes and their margins
    HWMargins 18 12 18 12
    *MediaSize Letter
    MediaSize Legal
    MediaSize Executive
    MediaSize Monarch
    MediaSize Statement
    MediaSize FanFoldGermanLegal
    
    HWMargins 18 12.72 18 12.72
    MediaSize Env10
    
    HWMargins 9.72 12 9.72 12
    MediaSize A4
    MediaSize A5
    MediaSize B5
    MediaSize EnvC5
    MediaSize EnvDL
    MediaSize EnvISOB5
    MediaSize Postcard
    MediaSize DoublePostcard
    
    // Only black-and-white output with mode 3 compression...
    ColorModel Gray k chunky 3
    
    // Supported resolutions
    Resolution - 1 0 0 0 "300dpi/300 DPI"
    *Resolution - 8 0 0 0 "600dpi/600 DPI"
    
    // Supported input slots
    *InputSlot 7 "Auto/Automatic Selection"
    InputSlot 2 "Manual/Tray 1 - Manual Feed"
    InputSlot 4 "Upper/Tray 1"
    InputSlot 1 "Lower/Tray 2"
    InputSlot 5 "LargeCapacity/Tray 3"
    
    // Tray 3 is an option...
    Installable "OptionLargeCapacity/Tray 3 Installed"
    UIConstraints "*OptionLargeCapacity False *InputSlot LargeCapacity"
    
    {
      // HP LaserJet 2100 Series
      Throughput 10
      ModelName "LaserJet 2100 Series"
      PCFileName "hpljt211.ppd"
    }
    
    {
      // LaserJet 2200 and 2300 series have duplexer option...
      Duplex normal
      Installable "OptionDuplex/Duplexer Installed"
      UIConstraints "*OptionDuplex False *Duplex"
    
      {
        // HP LaserJet 2200 Series
        Throughput 19
        ModelName "LaserJet 2200 Series"
        PCFileName "hpljt221.ppd"
      }
    
      {
        // HP LaserJet 2300 Series
        Throughput 25
        ModelName "LaserJet 2300 Series"
        PCFileName "hpljt231.ppd"
      }
    }
    

    Using Filters

    The standard CUPS raster filters can be specified using the DriverType directive, for example:

    // Specify that this driver uses the HP-PCL driver...
    DriverType pcl
    

    Table 1 shows the driver types for each of the standard CUPS raster filters. For drivers that do not use the standard raster filters, the "custom" type is used with Filter directives:

    DriverType custom
    Filter application/vnd.cups-raster 100 /path/to/raster/filter
    Filter application/vnd.cups-command 100 /path/to/command/filter
    

    Implementing Color Management

    CUPS uses ICC color profiles to provide more accurate color reproduction. The cupsICCProfile attribute defines the color profiles that are available for a given printer, for example:

    Attribute cupsICCProfile "ColorModel.MediaType.Resolution/Description" /path/to/ICC/profile
    

    where "ColorModel.MediaType.Resolution" defines a selector based on the corresponding option selections. A simple driver might only define profiles for the color models that are supported, for example a printer supporting Gray and RGB might use:

    Attribute cupsICCProfile "Gray../Grayscale Profile" /path/to/ICC/gray-profile
    Attribute cupsICCProfile "RGB../Full Color Profile" /path/to/ICC/rgb-profile
    

    The options used for profile selection can be customized using the cupsICCQualifier2 and cupsICCQualifier3 attributes.

    Since macOS 10.5Custom Color Matching Support

    macOS printer drivers that are based on an existing standard RGB colorspace can tell the system to use the corresponding colorspace instead of an arbitrary ICC color profile when doing color management. The APSupportsCustomColorMatching and APDefaultCustomColorMatchingProfile attributes can be used to enable this mode:

    Attribute APSupportsCustomColorMatching "" true
    Attribute APDefaultCustomColorMatchingProfile "" sRGB
    

    Adding macOS Features

    macOS printer drivers can provide additional attributes to specify additional option panes in the print dialog, an image of the printer, a help book, and option presets for the driver software:

    Attribute APDialogExtension "" /Library/Printers/Vendor/filename.plugin
    Attribute APHelpBook "" /Library/Printers/Vendor/filename.bundle
    Attribute APPrinterIconPath "" /Library/Printers/Vendor/filename.icns
    Attribute APPrinterPreset "name/text" "*option choice ..."
    
    cups-2.4.7/doc/help/ppd-compiler.html0000644000175000017500000012445414502571342017351 0ustar zdohnalzdohnal Introduction to the PPD Compiler

    Introduction to the PPD Compiler

    This document describes how to use the CUPS PostScript Printer Description (PPD) file compiler. The PPD compiler generates PPD files from simple text files that describe the features and capabilities of one or more printers.

    Note:

    The PPD compiler and related tools are deprecated and will be removed in a future release of CUPS.

    The Basics

    The PPD compiler, ppdc(1), is a simple command-line tool that takes a single driver information file, which by convention uses the extension .drv, and produces one or more PPD files that may be distributed with your printer drivers for use with CUPS. For example, you would run the following command to create the English language PPD files defined by the driver information file mydrivers.drv:

    ppdc mydrivers.drv
    

    The PPD files are placed in a subdirectory called ppd. The -d option is used to put the PPD files in a different location, for example:

    ppdc -d myppds mydrivers.drv
    

    places the PPD files in a subdirectory named myppds. Finally, use the -l option to specify the language localization for the PPD files that are created, for example:

    ppdc -d myppds/de -l de mydrivers.drv
    ppdc -d myppds/en -l en mydrivers.drv
    ppdc -d myppds/es -l es mydrivers.drv
    ppdc -d myppds/fr -l fr mydrivers.drv
    ppdc -d myppds/it -l it mydrivers.drv
    

    creates PPD files in German (de), English (en), Spanish (es), French (fr), and Italian (it) in the corresponding subdirectories. Specify multiple languages (separated by commas) to produce "globalized" PPD files:

    ppdc -d myppds -l de,en,es,fr,it mydrivers.drv
    

    Driver Information Files

    The driver information files accepted by the PPD compiler are plain text files that define the various attributes and options that are included in the PPD files that are generated. A driver information file can define the information for one or more printers and their corresponding PPD files.

    Listing 1: "examples/minimum.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    A Simple Example

    The example in Listing 1 shows a driver information file which defines the minimum required attributes to provide a valid PPD file. The first part of the file includes standard definition files for fonts and media sizes:

    #include <font.defs>
    #include <media.defs>
    

    The #include directive works just like the C/C++ include directive; files included using the angle brackets (<filename>) are found in any of the standard include directories and files included using quotes ("filename") are found in the same directory as the source or include file. The <font.defs> include file defines the standard fonts which are included with GPL Ghostscript and the Apple PDF RIP, while the <media.defs> include file defines the standard media sizes listed in Appendix B of the Adobe PostScript Printer Description File Format Specification.

    CUPS provides several other standard include files:

    • <epson.h> - Defines all of the rastertoepson driver constants.
    • <escp.h> - Defines all of the rastertoescpx driver constants.
    • <hp.h> - Defines all of the rastertohp driver constants.
    • <label.h> - Defines all of the rastertolabel driver constants.
    • <pcl.h> - Defines all of the rastertopclx driver constants.
    • <raster.defs> - Defines all of the CUPS raster format constants.

    Next we list all of the fonts that are available in the driver; for CUPS raster drivers, the following line is all that is usually supplied:

    Font *
    

    The Font directive specifies the name of a single font or the asterisk to specify all fonts. For example, you would use the following line to define an additional bar code font that you are supplying with your printer driver:

    //   name         encoding  version  charset  status
    Font Barcode-Foo  Special   "(1.0)"  Special  ROM
    

    The name of the font is Barcode-Foo. Since it is not a standard text font, the encoding and charset name Special is used. The version number is 1.0 and the status (where the font is located) is ROM to indicate that the font does not need to be embedded in documents that use the font for this printer.

    Third comes the manufacturer, model name, and version number information strings:

    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    

    These strings are used when the user (or auto-configuration program) selects the printer driver for a newly connected device.

    The list of filters comes after the information strings; for the example in Listing 1, we have a single filter that takes CUPS raster data:

    Filter application/vnd.cups-raster 100 rastertofoo
    

    Each filter specified in the driver information file is the equivalent of a printer driver for that format; if a user submits a print job in a different format, CUPS figures out the sequence of commands that will produce a supported format for the least relative cost.

    Once we have defined the driver information we specify the supported options. For the example driver we support a single resolution of 600 dots per inch and two media sizes, A4 and Letter:

    *MediaSize Letter
    MediaSize A4
    
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    

    The asterisk in front of the MediaSize and Resolution directives specify that those option choices are the default. The MediaSize directive is followed by a media size name which is normally defined in the <media.defs> file and corresponds to a standard Adobe media size name. If the default media size is Letter, the PPD compiler will override it to be A4 for non-English localizations for you automatically.

    The Resolution directive accepts several values after it as follows:

    1. Colorspace for this resolution, if any. In the example file, the colorspace k is used which corresponds to black. For printer drivers that support color printing, this field is usually specified as "-" for "no change".
    2. Bits per color. In the example file, we define 8 bits per color, for a continuous-tone grayscale output. All versions of CUPS support 1 and 8 bits per color. CUPS 1.2 and higher (macOS 10.5 and higher) also supports 16 bits per color.
    3. Rows per band. In the example file, we define 0 rows per band to indicate that our printer driver does not process the page in bands.
    4. Row feed. In the example, we define the feed value to be 0 to indicate that our printer driver does not interleave the output.
    5. Row step. In the example, we define the step value to be 0 to indicate that our printer driver does not interleave the output. This value normally indicates the spacing between the nozzles of an inkjet printer - when combined with the previous two values, it informs the driver how to stagger the output on the page to produce interleaved lines on the page for higher-resolution output.
    6. Choice name and text. In the example, we define the choice name and text to be "600dpi/600 DPI". The name and text are separated by slash (/) character; if no text is specified, then the name is used as the text. The PPD compiler parses the name to determine the actual resolution; the name can be of the form RESOLUTIONdpi for resolutions that are equal horizontally and vertically or HRESxVRESdpi for isometric resolutions. Only integer resolution values are supported, so a resolution name of 300dpi is valid while 300.1dpi is not.

    Finally, the PCFileName directive specifies that the named PPD file should be written for the current driver definitions:

    PCFileName "foojet2k.ppd"
    

    The filename follows the directive and must conform to the Adobe filename requirements in the Adobe Postscript Printer Description File Format Specification. Specifically, the filename may not exceed 8 characters followed by the extension .ppd. The FileName directive can be used to specify longer filenames:

    FileName "FooJet 2000"
    

    Grouping and Inheritance

    The previous example created a single PPD file. Driver information files can also define multiple printers by using the PPD compiler grouping functionality. Directives are grouped using the curly braces ({ and }) and every group that uses the PCFileName or FileName directives produces a PPD file with that name. Listing 2 shows a variation of the original example that uses two groups to define two printers that share the same printer driver filter but provide two different resolution options.

    Listing 2: "examples/grouping.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and version
    Manufacturer "Foo"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "1200dpi/1200 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2001"
      PCFileName "foojt2k1.ppd"
    }
    

    The second example is essentially the same as the first, except that each printer model is defined inside of a pair of curly braces. For example, the first printer is defined using:

    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    

    The printer inherits all of the definitions from the parent group (the top part of the file) and adds the additional definitions inside the curly braces for that printer driver. When we define the second group, it also inherits the same definitions from the parent group but none of the definitions from the first driver. Groups can be nested to any number of levels to support variations of similar models without duplication of information.

    Color Support

    For printer drivers that support color printing, the ColorDevice and ColorModel directives should be used to tell the printing system that color output is desired and in what formats. Listing 3 shows a variation of the previous example which includes a color printer that supports printing at 300 and 600 DPI.

    The key changes are the addition of the ColorDevice directive:

    ColorDevice true
    

    which tells the printing system that the printer supports color printing, and the ColorModel directives:

    ColorModel Gray/Grayscale w chunky 0
    *ColorModel RGB/Color rgb chunky 0
    

    which tell the printing system which colorspaces are supported by the printer driver for color printing. Each of the ColorModel directives is followed by the option name and text (Gray/Grayscale and RGB/Color), the colorspace name (w and rgb), the color organization (chunky), and the compression mode number (0) to be passed to the driver. The option name can be any of the standard Adobe ColorModel names:

    • Gray - Grayscale output.
    • RGB - Color output, typically using the RGB colorspace, but without a separate black channel.
    • CMYK - Color output with a separate black channel.

    Custom names can be used, however it is recommended that you use your vendor prefix for any custom names, for example "fooName".

    The colorspace name can be any of the following universally supported colorspaces:

    • w - Luminance
    • rgb - Red, green, blue
    • k - Black
    • cmy - Cyan, magenta, yellow
    • cmyk - Cyan, magenta, yellow, black

    The color organization can be any of the following values:

    • chunky - Color values are passed together on a line as RGB RGB RGB RGB
    • banded - Color values are passed separately on a line as RRRR GGGG BBBB; not supported by the Apple RIP filters
    • planar - Color values are passed separately on a page as RRRR RRRR RRRR ... GGGG GGGG GGGG ... BBBB BBBB BBBB; not supported by the Apple RIP filters

    The compression mode value is passed to the driver in the cupsCompression attribute. It is traditionally used to select an appropriate compression mode for the color model but can be used for any purpose, such as specifying a photo mode vs. standard mode.

    Listing 3: "examples/color.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer and version
    Manufacturer "Foo"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    {
      // Supported resolutions
      *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet 2000"
      PCFileName "foojet2k.ppd"
    }
    
    {
      // Supports color printing
      ColorDevice true
    
      // Supported colorspaces
      ColorModel Gray/Grayscale w chunky 0
      *ColorModel RGB/Color rgb chunky 0
    
      // Supported resolutions
      *Resolution - 8 0 0 0 "300dpi/300 DPI"
      Resolution - 8 0 0 0 "600dpi/600 DPI"
    
      // Specify the model name and filename...
      ModelName "FooJet Color"
      PCFileName "foojetco.ppd"
    }
    

    Defining Custom Options and Option Groups

    The Group, Option, and Choice directives are used to define or select a group, option, or choice. Listing 4 shows a variation of the first example that provides two custom options in a group named "Footasm".

    Listing 4: "examples/custom.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Option Group
    Group "Footasm"
    
      // Boolean option
      Option "fooEnhance/Resolution Enhancement" Boolean AnySetup 10
        *Choice True/Yes "<</cupsCompression 1>>setpagedevice"
        Choice False/No "<</cupsCompression 0>>setpagedevice"
    
      // Multiple choice option
      Option "fooOutputType/Output Quality" PickOne AnySetup 10
        *Choice "Auto/Automatic Selection"
                "<</OutputType(Auto)>>setpagedevice""
        Choice "Text/Optimize for Text"
                "<</OutputType(Text)>>setpagedevice""
        Choice "Graph/Optimize for Graphics"
                "<</OutputType(Graph)>>setpagedevice""
        Choice "Photo/Optimize for Photos"
                "<</OutputType(Photo)>>setpagedevice""
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    The custom group is introduced by the Group directive which is followed by the name and optionally text for the user:

    Group "Footasm/Footastic Options"
    

    The group name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length. The groups General, Extra, and InstallableOptions are predefined by CUPS; the general and extra groups are filled by the UI options defined by the PPD specification. The InstallableOptions group is reserved for options that define whether accessories for the printer (duplexer unit, finisher, stapler, etc.) are installed.

    Once the group is specified, the Option directive is used to introduce a new option:

    Option "fooEnhance/Resolution Enhancement" Boolean AnySetup 10
    

    The directive is followed by the name of the option and any optional user text, the option type, the PostScript document group, and the sort order number. The option name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length.

    The option type can be Boolean for true/false selections, PickOne for picking one of many choices, or PickMany for picking zero or more choices. Boolean options can have at most two choices with the names False and True. Pick options can have any number of choices, although for Windows compatibility reasons the number of choices should not exceed 255.

    The PostScript document group is typically AnySetup, meaning that the option can be introduced at any point in the PostScript document. Other values include PageSetup to include the option before each page and DocumentSetup to include the option once at the beginning of the document.

    The sort order number is used to sort the printer commands associated with each option choice within the PostScript document. This allows you to setup certain options before others as required by the printer. For most CUPS raster printer drivers, the value 10 can be used for all options.

    Once the option is specified, each option choice can be listed using the Choice directive:

    *Choice True/Yes "<</cupsCompression 1>>setpagedevice"
    Choice False/No "<</cupsCompression 0>>setpagedevice"
    

    The directive is followed by the choice name and optionally user text, and the PostScript commands that should be inserted when printing a file to this printer. The option name must conform to the PPD specification and cannot exceed 40 characters in length. If you specify user text, it cannot exceed 80 characters in length.

    The PostScript commands are also interpreted by any RIP filters, so these commands typically must be present for all option choices. Most commands take the form:

    <</name value>>setpagedevice
    

    where name is the name of the PostScript page device attribute and value is the numeric or string value for that attribute.

    Defining Constants

    Sometimes you will want to define constants for your drivers so that you can share values in different groups within the same driver information file, or to share values between different driver information files using the #include directive. The #define directive is used to define constants for use in your printer definitions:

    #define NAME value
    

    The NAME is any sequence of letters, numbers, and the underscore. The value is a number or string; if the value contains spaces you must put double quotes around it, for example:

    #define FOO "My String Value"
    

    Constants can also be defined on the command-line using the -D option:

    ppdc -DNAME="value" filename.drv
    

    Once defined, you use the notation $NAME to substitute the value of the constant in the file, for example:

    #define MANUFACTURER "Foo"
    #define FOO_600      0
    #define FOO_1200     1
    
    {
      Manufacturer "$MANUFACTURER"
      ModelNumber $FOO_600
      ModelName "FooJet 2000"
      ...
    }
    
    {
      Manufacturer "$MANUFACTURER"
      ModelNumber $FOO_1200
      ModelName "FooJet 2001"
      ...
    }
    

    Numeric constants can be bitwise OR'd together by placing the constants inside parenthesis, for example:

    // ModelNumber capability bits
    #define DUPLEX 1
    #define COLOR  2
    
    ...
    
    {
      // Define a model number specifying the capabilities of the printer...
      ModelNumber ($DUPLEX $COLOR)
      ...
    }
    

    Conditional Statements

    The PPD compiler supports conditional compilation using the #if, #elif, #else, and #endif directives. The #if and #elif directives are followed by a constant name or an expression. For example, to include a group of options when "ADVANCED" is defined:

    #if ADVANCED
    Group "Advanced/Advanced Options"
      Option "fooCyanAdjust/Cyan Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooMagentaAdjust/Magenta Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooYellowAdjust/Yellow Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
      Option "fooBlackAdjust/Black Adjustment"
        Choice "plus10/+10%" ""
        Choice "plus5/+5%" ""
        *Choice "none/No Adjustment" ""
        Choice "minus5/-5%" ""
        Choice "minus10/-10%" ""
    #endif
    

    Defining Constraints

    Constraints are strings that are used to specify that one or more option choices are incompatible, for example two-sided printing on transparency media. Constraints are also used to prevent the use of uninstalled features such as the duplexer unit, additional media trays, and so forth.

    The UIConstraints directive is used to specify a constraint that is placed in the PPD file. The directive is followed by a string using one of the following formats:

    UIConstraints "*Option1 *Option2"
    UIConstraints "*Option1 Choice1 *Option2"
    UIConstraints "*Option1 *Option2 Choice2"
    UIConstraints "*Option1 Choice1 *Option2 Choice2"
    

    Each option name is preceded by the asterisk (*). If no choice is given for an option, then all choices except False and None will conflict with the other option and choice(s). Since the PPD compiler automatically adds reciprocal constraints (option A conflicts with option B, so therefore option B conflicts with option A), you need only specify the constraint once.

    Listing 5: "examples/constraint.drv"

    
    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // List the fonts that are supported, in this case all standard fonts...
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "FooJet 2000"
    Version 1.0
    
    // Each filter provided by the driver...
    Filter application/vnd.cups-raster 100 rastertofoo
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize A4
    
    // Supported resolutions
    *Resolution k 8 0 0 0 "600dpi/600 DPI"
    
    // Installable Option Group
    Group "InstallableOptions/Options Installed"
    
      // Duplexing unit option
      Option "OptionDuplexer/Duplexing Unit" Boolean AnySetup 10
        Choice True/Installed ""
        *Choice "False/Not Installed" ""
    
    // General Option Group
    Group General
    
      // Duplexing option
      Option "Duplex/Two-Sided Printing" PickOne AnySetup 10
        *Choice "None/No" "<</Duplex false>>setpagedevice""
        Choice "DuplexNoTumble/Long Edge Binding"
               "<</Duplex true/Tumble false>>setpagedevice""
        Choice "DuplexTumble/Short Edge Binding"
               "<</Duplex true/Tumble true>>setpagedevice""
    
    // Only allow duplexing if the duplexer is installed
    UIConstraints "*Duplex *OptionDuplexer False"
    
    // Specify the name of the PPD file we want to generate...
    PCFileName "foojet2k.ppd"
    

    Listing 5 shows a variation of the first example with an added Duplex option and installable option for the duplexer, OptionDuplex. A constraint is added at the end to specify that any choice of the Duplex option that is not None is incompatible with the "Duplexer Installed" option set to "Not Installed" (False):

    UIConstraints "*Duplex *OptionDuplexer False"
    

    Enhanced Constraints

    CUPS 1.4 supports constraints between 2 or more options using the Attribute directive. cupsUIConstraints attributes define the constraints, while cupsUIResolver attributes define option changes to resolve constraints. For example, we can specify the previous duplex constraint with a resolver that turns off duplexing with the following two lines:

    Attribute cupsUIConstraints DuplexOff "*Duplex *OptionDuplexer False"
    Attribute cupsUIResolver DuplexOff "*Duplex None"
    

    Localization

    The PPD compiler provides localization of PPD files in different languages through message catalog files in the GNU gettext or Apple .strings formats. Each user text string and several key PPD attribute values such as LanguageVersion and LanguageEncoding are looked up in the corresponding message catalog and the translated text is substituted in the generated PPD files. One message catalog file can be used by multiple driver information files, and each file contains a single language translation.

    The ppdpo Utility

    While CUPS includes localizations of all standard media sizes and options in several languages, your driver information files may provide their own media sizes and options that need to be localized. CUPS provides a utility program to aid in the localization of drivers called ppdpo(1). The ppdpo program creates or updates a message catalog file based upon one or more driver information files. New messages are added with the word "TRANSLATE" added to the front of the translation string to make locating new strings for translation easier. The program accepts the message catalog filename and one or more driver information files.

    For example, run the following command to create a new German message catalog called de.po for all of the driver information files in the current directory:

    ppdpo -o de.po *.drv
    

    If the file de.po already exists, ppdpo will update the contents of the file with any new messages that need to be translated. To create an Apple .strings file instead, specify the output filename with a .strings extension, for example:

    ppdpo -o de.strings *.drv
    

    Using Message Catalogs with the PPD Compiler

    Once you have created a message catalog, use the #po directive to declare it in each driver information file. For example, to declare the German message catalog for a driver use:

    #po de "de.po"  // German
    

    In fact, you can use the #po directive as many times as needed:

    #po de "de.po"  // German
    #po es "es.po"  // Spanish
    #po fr "fr.po"  // French
    #po it "it.po"  // Italian
    #po ja "ja.po"  // Japanese
    

    The filename ("de.po", etc.) can be relative to the location of the driver information file or an absolute path. Once defined, the PPD compiler will automatically generate a globalized PPD for every language declared in your driver information file. To generate a single-language PPD file, simply use the -l option to list the corresponding locale, for example:

    ppdc -l de -d ppd/de mydrivers.drv
    

    to generate German PPD files.

    cups-2.4.7/doc/help/postscript-driver.html0000644000175000017500000005077414502571342020464 0ustar zdohnalzdohnal Developing PostScript Printer Drivers

    Developing PostScript Printer Drivers

    This document describes how to develop printer drivers for PostScript printers. Topics include: printer driver basics, creating new PPD files, importing existing PPD files, using custom filters, implementing color management, and adding macOS features.

    Printer Driver Basics

    A CUPS PostScript printer driver consists of a PostScript Printer Description (PPD) file that describes the features and capabilities of the device, zero or more filter programs that prepare print data for the device, and zero or more support files for color management, online help, and so forth. The PPD file includes references to all of the filters and support files used by the driver.

    Every time a user prints something the scheduler program, cupsd(8), determines the format of the print job and the programs required to convert that job into something the printer understands. CUPS includes filter programs for many common formats, for example to convert Portable Document Format (PDF) files into device-independent PostScript, and then from device-independent PostScript to device-dependent PostScript. Figure 1 shows the data flow of a typical print job.

    The optional PostScript filter can be provided to add printer-specific commands to the PostScript output that cannot be represented in the PPD file or to reorganize the output for special printer features. Typically this is used to support advanced job management or finishing functions on the printer. CUPS includes a generic PostScript filter that handles all PPD-defined commands.

    The optional port monitor handles interface-specific protocol or encoding issues. For example, many PostScript printers support the Binary Communications Protocol (BCP) and Tagged Binary Communications Protocol (TBCP) to allow applications to print 8-bit ("binary") PostScript jobs. CUPS includes port monitors for BCP and TBCP, and you can supply your own port monitors as needed.

    The backend handles communications with the printer, sending print data from the last filter to the printer and relaying back-channel data from the printer to the upstream filters. CUPS includes backend programs for common direct-connect interfaces and network protocols, and you can provide your own backend to support custom interfaces and protocols.

    The scheduler also supports a special "command" file format for sending maintenance commands and status queries to a printer or printer driver. Command print jobs typically use a single command filter program defined in the PPD file to generate the appropriate printer commands and handle any responses from the printer. Figure 2 shows the data flow of a typical command job.

    PostScript printer drivers typically do not require their own command filter since CUPS includes a generic PostScript command filter that supports all of the standard functions using PPD-defined commands.

    Creating New PPD Files

    We recommend using the CUPS PPD compiler, ppdc(1), to create new PPD files since it manages many of the tedious (and error-prone!) details of paper sizes and localization for you. It also allows you to easily support multiple devices from a single source file. For more information see the "Introduction to the PPD Compiler" document. Listing 1 shows a driver information file for a black-and-white PostScript printer.

    Listing 1: "examples/postscript.drv"

    // Include standard font and media definitions
    #include <font.defs>
    #include <media.defs>
    
    // Specify this is a PostScript printer driver
    DriverType ps
    
    // List the fonts that are supported, in this case all standard fonts
    Font *
    
    // Manufacturer, model name, and version
    Manufacturer "Foo"
    ModelName "Foo LaserProofer 2000"
    Version 1.0
    
    // PostScript printer attributes
    Attribute DefaultColorSpace "" Gray
    Attribute LandscapeOrientation "" Minus90
    Attribute LanguageLevel "" "3"
    Attribute Product "" "(Foo LaserProofer 2000)"
    Attribute PSVersion "" "(3010) 0"
    Attribute TTRasterizer "" Type42
    
    // Supported page sizes
    *MediaSize Letter
    MediaSize Legal
    MediaSize A4
    
    // Query command for page size
    Attribute "?PageSize" "" "
          save
          currentpagedevice /PageSize get aload pop
          2 copy gt {exch} if (Unknown)
          23 dict
                  dup [612 792] (Letter) put
                  dup [612 1008] (Legal) put
                  dup [595 842] (A4) put
                  {exch aload pop 4 index sub abs 5 le exch
                   5 index sub abs 5 le and
                  {exch pop exit} {pop} ifelse
          } bind forall = flush pop pop
          restore"
    
    // Specify the name of the PPD file we want to generate
    PCFileName "fooproof.ppd"
    

    Required Attributes

    PostScript drivers require the attributes listed in Table 1. If not specified, the defaults for CUPS drivers are used. A typical PostScript driver information file would include the following attributes:

    Attribute DefaultColorSpace "" Gray
    Attribute LandscapeOrientation "" Minus90
    Attribute LanguageLevel "" "3"
    Attribute Product "" "(Foo LaserProofer 2000)"
    Attribute PSVersion "" "(3010) 0"
    Attribute TTRasterizer "" Type42
    
    Table 1: Required PostScript Printer Driver Attributes
    Attribute Description
    DefaultColorSpace The default colorspace: Gray, RGB, CMY, or CMYK. If not specified, then RGB is assumed.
    LandscapeOrientation The preferred landscape orientation: Plus90, Minus90, or Any. If not specified, Plus90 is assumed.
    LanguageLevel The PostScript language level supported by the device: 1, 2, or 3. If not specified, 2 is assumed.
    Product The string returned by the PostScript product operator, which must include parenthesis to conform with PostScript syntax rules for strings. Multiple Product attributes may be specified to support multiple products with the same PPD file. If not specified, "(ESP Ghostscript)" and "(GNU Ghostscript)" are assumed.
    PSVersion The PostScript interpreter version numbers as returned by the version and revision operators. The required format is "(version) revision". Multiple PSVersion attributes may be specified to support multiple interpreter version numbers. If not specified, "(3010) 705" and "(3010) 707" are assumed.
    TTRasterizer The type of TrueType font rasterizer supported by the device, if any. The supported values are None, Accept68k, Type42, and TrueImage. If not specified, None is assumed.

    Query Commands

    Most PostScript printer PPD files include query commands (?PageSize, etc.) that allow applications to query the printer for its current settings and configuration. Query commands are included in driver information files as attributes. For example, the example in Listing 1 uses the following definition for the PageSize query command:

    Attribute "?PageSize" "" "
          save
          currentpagedevice /PageSize get aload pop
          2 copy gt {exch} if (Unknown)
          23 dict
                  dup [612 792] (Letter) put
                  dup [612 1008] (Legal) put
                  dup [595 842] (A4) put
                  {exch aload pop 4 index sub abs 5 le exch
                   5 index sub abs 5 le and
                  {exch pop exit} {pop} ifelse
          } bind forall = flush pop pop
          restore"
    

    Query commands can span multiple lines, however no single line may contain more than 255 characters.

    Importing Existing PPD Files

    CUPS includes a utility called ppdi(1) which allows you to import existing PPD files into the driver information file format used by the PPD compiler ppdc(1). Once imported, you can modify, localize, and regenerate the PPD files easily. Type the following command to import the PPD file mydevice.ppd into the driver information file mydevice.drv:

    ppdi -o mydevice.drv mydevice.ppd
    

    If you have a whole directory of PPD files that you would like to import, you can list multiple filenames or use shell wildcards to import more than one PPD file on the command-line:

    ppdi -o mydevice.drv mydevice1.ppd mydevice2.ppd
    ppdi -o mydevice.drv *.ppd
    

    If the driver information file already exists, the new PPD file entries are appended to the end of the file. Each PPD file is placed in its own group of curly braces within the driver information file.

    Using Custom Filters

    Normally a PostScript printer driver will not utilize any additional print filters. For drivers that provide additional filters such as a CUPS command file filter for doing printer maintenance, you must also list the following Filter directive to handle printing PostScript files:

    Filter application/vnd.cups-postscript 0 -
    

    Custom Command Filters

    The application/vnd.cups-command file type is used for CUPS command files. Use the following Filter directive to handle CUPS command files:

    Filter application/vnd.cups-command 100 /path/to/command/filter
    

    To use the standard PostScript command filter, specify commandtops as the path to the command filter.

    Custom PDF Filters

    The application/pdf file type is used for unfiltered PDF files while the application/vnd.cups-pdf file type is used for filtered PDF files. Use the following Filter directive to handle filtered PDF files:

    Filter application/vnd.cups-pdf 100 /path/to/pdf/filter
    

    For unfiltered PDF files, use:

    Filter application/pdf 100 /path/to/pdf/filter
    

    Custom PDF filters that accept filtered data do not need to perform number-up processing and other types of page imposition, while those that accept unfiltered data MUST do the number-up processing themselves.

    Custom PostScript Filters

    The application/vnd.cups-postscript file type is used for filtered PostScript files. Use the following Filter directive to handle PostScript files:

    Filter application/vnd.cups-postscript 100 /path/to/postscript/filter
    

    Implementing Color Management

    CUPS uses ICC color profiles to provide more accurate color reproduction. The cupsICCProfile attribute defines the color profiles that are available for a given printer, for example:

    Attribute cupsICCProfile "ColorModel.MediaType.Resolution/Description" /path/to/ICC/profile
    

    where "ColorModel.MediaType.Resolution" defines a selector based on the corresponding option selections. A simple driver might only define profiles for the color models that are supported, for example a printer supporting Gray and RGB might use:

    Attribute cupsICCProfile "Gray../Grayscale Profile" /path/to/ICC/gray-profile
    Attribute cupsICCProfile "RGB../Full Color Profile" /path/to/ICC/rgb-profile
    

    The options used for profile selection can be customized using the cupsICCQualifier2 and cupsICCQualifier3 attributes.

    Adding macOS Features

    macOS printer drivers can provide additional attributes to specify additional option panes in the print dialog, an image of the printer, a help book, and option presets for the driver software:

    Attribute APDialogExtension "" /Library/Printers/Vendor/filename.plugin
    Attribute APHelpBook "" /Library/Printers/Vendor/filename.bundle
    Attribute APPrinterIconPath "" /Library/Printers/Vendor/filename.icns
    Attribute APPrinterPreset "name/text" "*option choice ..."
    
    cups-2.4.7/doc/help/policies.html0000644000175000017500000005240114502571342016555 0ustar zdohnalzdohnal Managing Operation Policies

    Managing Operation Policies

    Operation policies are the rules used for each IPP operation in CUPS. These rules include things like "user must provide a password", "user must be in the system group", "allow only from the local system", and so forth. Until CUPS 1.2, these rules were largely hardcoded and could only be customized at a very basic level.

    CUPS 1.2 and later provides a fine-grained policy layer which allows you to completely redefine the rules for each operation and/or printer. Each policy is named and defines access control rules for each IPP operation. This document describes how to manage policies and their rules.

    The Basics

    Operation policies are used for all IPP requests sent to the scheduler and are evaluated after the Location based access control rules. This means that operation policies can only add additional security restrictions to a request, never relax them. Use Location based access control rules for server-wide limits and operation policies for limits on individual printers, tasks, or services.

    Policies are stored in the cupsd.conf file in Policy sections. Each policy has an alphanumeric name that is used to select it. Inside the policy section are one or more Limit subsections which list the operations that are affected by the rules inside it. Listing 1 shows the default operation policy, appropriately called "default", that is shipped with CUPS.

    The easiest way to add a policy to the cupsd.conf file is to use the web interface. Click on the Administration tab and then the Edit Configuration File button to edit the current cupsd.conf file. Click on the Save Changes button to save the changes and restart the scheduler. If you edit the cupsd.conf file from the console, make sure to restart the cupsd process before trying to use the new policy.

    Listing 1: Default Operation Policy
    
     1    <Policy default>
     2      # Job-related operations must be done by the owner or an
          administrator...
     3      <Limit Send-Document Send-URI Hold-Job Release-Job
          Restart-Job Purge-Jobs Set-Job-Attributes
          Create-Job-Subscription Renew-Subscription
          Cancel-Subscription Get-Notifications Reprocess-Job
          Cancel-Current-Job Suspend-Current-Job Resume-Job
          CUPS-Move-Job CUPS-Get-Document>
     4        Require user @OWNER @SYSTEM
     5        Order deny,allow
     6      </Limit>
     7
     8      # All administration operations require an administrator
          to authenticate...
     9      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class
          CUPS-Delete-Class CUPS-Set-Default>
    10        AuthType Default
    11        Require user @SYSTEM
    12        Order deny,allow
    13      </Limit>
    14
    15      # All printer operations require a printer operator
          to authenticate...
    16      <Limit Pause-Printer Resume-Printer
          Set-Printer-Attributes Enable-Printer Disable-Printer
          Pause-Printer-After-Current-Job Hold-New-Jobs
          Release-Held-New-Jobs Deactivate-Printer Activate-Printer
          Restart-Printer Shutdown-Printer Startup-Printer
          Promote-Job Schedule-Job-After CUPS-Accept-Jobs
          CUPS-Reject-Jobs>
    17        AuthType Default
    18        Require user varies by OS
    19        Order deny,allow
    20      </Limit>
    21
    22      # Only the owner or an administrator can cancel or
          authenticate a job...
    23      <Limit Cancel-Job CUPS-Authenticate-Job>
    24        Require user @OWNER @SYSTEM
    25        Order deny,allow
    26      </Limit>
    27
    28      <Limit All>
    29        Order deny,allow
    30      </Limit>
    31    </Policy>
    

    The Default CUPS Operation Policy

    The policy definition starts with an opening Policy directive:

     1    <Policy default>
    

    The first Limit subsection defines the rules for IPP job operations:

     3      <Limit Send-Document Send-URI Hold-Job Release-Job
          Restart-Job Purge-Jobs Set-Job-Attributes
          Create-Job-Subscription Renew-Subscription
          Cancel-Subscription Get-Notifications Reprocess-Job
          Cancel-Current-Job Suspend-Current-Job Resume-Job
          CUPS-Move-Job CUPS-Get-Document>
     4        Require user @OWNER @SYSTEM
     5        Order deny,allow
     6      </Limit>
    

    The operation names are listed on a single line with spaces separating them. Each name corresponds to the IPP operation described in any of the IETF or PWG standards documents for the Internet Printing Protocol. Table 1 lists all of the operations that have been defined along with their usage in CUPS.

    The access control rules are listed after the Limit line and are the same as those used for Location sections. In this case, we require the owner of the job ("@OWNER") or a member of the SystemGroup ("@SYSTEM") to do the operation. Because we do not include an AuthType directive here, the user information can come from the IPP request itself or the authenticated username from the HTTP request. The administrative operations starting on line 9, however, do use the AuthType directive, and so administrative operations need to be authenticated:

     9      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class
          CUPS-Delete-Class CUPS-Set-Default>
    10        AuthType Default
    11        Require user @SYSTEM
    12        Order deny,allow
    13      </Limit>
    14
    15      # All printer operations require a printer operator
          to authenticate...
    16      <Limit Pause-Printer Resume-Printer
          Set-Printer-Attributes Enable-Printer Disable-Printer
          Pause-Printer-After-Current-Job Hold-New-Jobs
          Release-Held-New-Jobs Deactivate-Printer Activate-Printer
          Restart-Printer Shutdown-Printer Startup-Printer
          Promote-Job Schedule-Job-After CUPS-Accept-Jobs
          CUPS-Reject-Jobs>
    17        AuthType Default
    18        Require user varies by OS
    19        Order deny,allow
    20      </Limit>
    

    The "Order deny,allow" line at the end of both Limit subsections allows the request to come from any system allowed by the Location sections elsewhere in the cupsd.conf file.

    The Cancel-Job and CUPS-Authenticate-Job operations are listed separately to allow the web interface to more easily edit their policy without disturbing the rest. Like the rest of the job operations, we want the job's owner ("@OWNER") or an administrator ("@SYSTEM") to do it:

    16      <Limit Cancel-Job CUPS-Authenticate-Job>
    17        Require user @OWNER @SYSTEM
    18        Order deny,allow
    19      </Limit>
    

    The last Limit subsection in any policy uses the special operation name All. CUPS will use the rules in this subsection for any operation you don't list specifically in the policy. In this case, all other operations are allowed without a username or authentication:

    21      <Limit All>
    22        Order deny,allow
    23      </Limit>
    24    </Policy>
    
    Table 1: IPP Operation Names
    Name Used by CUPS? Description
    Activate-Printer No Activates a printer or class.
    Cancel-Current-Job No Cancels the current job on a printer or class.
    Cancel-Job Yes Cancels a print job.
    Cancel-Jobs Yes Cancels all print jobs.
    Cancel-My-Jobs Yes Cancels a user's print job.
    Cancel-Subscription Yes Cancels an event subscription.
    Close-Job Yes Closes a user's print job so that it can be printed.
    Create-Job Yes Creates a print job with no files or URIs.
    Create-Job-Subscriptions Yes Creates one or more event subscriptions for a job.
    Create-Printer-Subscriptions Yes Creates one or more event subscriptions for a printer or the server.
    Deactivate-Printer No Deactivates a printer or class.
    Disable-Printer Yes Stops a printer or class.
    Enable-Printer Yes Starts a printer or class.
    Get-Job-Attributes Yes Gets information and options associated with a job.
    Get-Jobs Yes Gets a list of jobs.
    Get-Notifications Yes Gets (pending) events for an event subscription.
    Get-Printer-Attributes Yes Gets information and options associated with a printer or class.
    Get-Printer-Supported-Values Yes Gets -supported attributes for a printer based on job options.
    Get-Subscription-Attributes Yes Gets information for an event subscription.
    Get-Subscriptions Yes Gets a list of event subscriptions.
    Hold-Job Yes Holds a print job for printing.
    Hold-New-Jobs Yes Holds new jobs submitted to a printer or class.
    Pause-Printer Yes Stops a printer or class.
    Pause-Printer-After-Current-Job No Stops a printer or class after the current job is finished.
    Print-Job Yes Creates a print job with a single file.
    Print-URI No Create a print job with a single URI.
    Promote-Job No Prints a job before others.
    Purge-Jobs Yes Cancels all jobs on the server or a printer or class and removes the job history information.
    Release-Held-New-Jobs Yes Releases jobs that were held because of the Hold-New-Jobs operation.
    Release-Job Yes Releases a print job for printing.
    Renew-Subscription Yes Renews an event subscription that is about to expire.
    Reprocess-Job No Reprints a job on a different printer or class; CUPS has the CUPS-Move-Job operation instead.
    Restart-Job Yes Reprints a print job.
    Restart-Printer No Restarts a printer or class, resuming print jobs as needed.
    Resubmit-Job No Reprints a job with new options.
    Resume-Job No Resumes printing of a stopped job.
    Resume-Printer Yes Starts a printer or class.
    Schedule-Job-After No Prints a job after others.
    Send-Document Yes Adds a file to a print job.
    Send-URI No Adds a URI to a print job.
    Set-Printer-Attributes Yes Sets printer or class information; CUPS uses CUPS-Add-Modify-Printer and CUPS-Add-Modify-Class for most attributes instead.
    Set-Job-Attributes Yes Changes job options.
    Shutdown-Printer No Powers a printer or class off.
    Startup-Printer No Powers a printer or class on.
    Suspend-Current-Job No Stops the current job on a printer or class.
    Validate-Document No Validates a document request before sending.
    Validate-Job Yes Validates a print request before printing.
    CUPS-Accept-Jobs Yes Sets a printer's or class' printer-is-accepting-jobs attribute to true.
    CUPS-Add-Modify-Class Yes Adds or modifies a class.
    CUPS-Add-Modify-Printer Yes Adds or modifies a printer.
    CUPS-Authenticate-Job Yes Authenticates a job for printing.
    CUPS-Delete-Class * Yes Removes a class.
    CUPS-Delete-Printer * Yes Removes a printer.
    CUPS-Get-Classes * Yes Gets a list of classes.
    CUPS-Get-Default * Yes Gets the server/network default printer or class.
    CUPS-Get-Devices * Yes Gets a list of printer devices.
    CUPS-Get-Document Yes Retrieves a document file from a job.
    CUPS-Get-PPDs * Yes Gets a list of printer drivers or manufacturers.
    CUPS-Get-Printers * Yes Gets a list of printers and/or classes.
    CUPS-Move-Job Yes Moves a job to a different printer or class.
    CUPS-Reject-Jobs Yes Sets a printer's or class' printer-is-accepting-jobs attribute to false.
    CUPS-Set-Default * Yes Sets the server/network default printer or class.

    * = These operations only apply to the default policy.

    Creating Your Own Policies

    The easiest way to create a new policy is to start with the default policy and then make changes to the copy. The first change you'll make is to give the policy a new name. Policy names can use the same characters as a printer name, specifically all printable characters except space, slash (/), and pound (#):

    <Policy mypolicy>
    

    Then you need to decide exactly what limits you want for the policy. For example, if you want to allow any user to cancel any other users' jobs, you can change the Cancel-Job limits to:

    <Limit Cancel-Job>
      Order deny,allow
    </Limit>
    

    The directives inside the Limit subsection can use any of the normal limiting directives: Allow, AuthType, Deny, Encryption, Require, and Satisfy. Table 2 lists some basic "recipes" for different access control rules.

    Table 2: Access Control Recipes
    Access Level Directives to Use
    Allow Everyone
    Order deny,allow
    Allow from all
    Allow Everyone on the Local Network
    Order deny,allow
    Allow from @LOCAL
    Deny Everyone/Disable Operation(s)
    Order deny,allow
    Require Login (System) Password
    AuthType Basic
    Require CUPS (lppasswd) Password
    AuthType BasicDigest
    Require Kerberos
    AuthType Negotiate
    Require the Owner of a Job or Subscription
    Require user @OWNER
    Require an Administrative User
    Require user @SYSTEM
    Require Member of Group "foogroup"
    Require user @foogroup
    Require "john" or "mary"
    Require user john mary
    Require Encryption
    Encryption Required

    Creating a Policy for a Computer Lab

    One common operating scenario is a computer lab. The lab is managed by one or more technicians that assist the users of the lab and handle the basic administration tasks. Listing 2 shows an operation policy that only allows access from the lab's subnet, 10.0.2.x, and allows the lab technicians, who are members of a special UNIX group for that lab called "lab999", to do job, printer, and subscription management operations.

    Listing 2: Operation Policy for a Lab
    
     1    <Policy lab999>
     2      # Job- and subscription-related operations must be done
          by the owner, a lab technician, or an administrator...
     3      <Limit Send-Document Send-URI Hold-Job Release-Job
          Restart-Job Purge-Jobs Set-Job-Attributes
          Create-Job-Subscription Renew-Subscription
          Cancel-Subscription Get-Notifications Reprocess-Job
          Cancel-Current-Job Suspend-Current-Job Resume-Job
          CUPS-Move-Job Cancel-Job CUPS-Authenticate-Job CUPS-Get-Document>
     4        Require user @OWNER @lab999 @SYSTEM
     5        Order allow,deny
     6        Allow from 10.0.2.0/24
     7      </Limit>
     8
     9      # All administration operations require a lab technician
          or an administrator to authenticate...
    10      <Limit Pause-Printer Resume-Printer
          Set-Printer-Attributes Enable-Printer Disable-Printer
          Pause-Printer-After-Current-Job Hold-New-Jobs
          Release-Held-New-Jobs Deactivate-Printer Activate-Printer
          Restart-Printer Shutdown-Printer Startup-Printer
          Promote-Job Schedule-Job-After CUPS-Accept-Jobs
          CUPS-Reject-Jobs CUPS-Set-Default>
    11        AuthType Default
    12        Require user @lab999 @SYSTEM
    13        Order allow,deny
    14        Allow from 10.0.2.0/24
    15      </Limit>
    16
    17      # All other operations are allowed from the lab network...
    18      <Limit All>
    19        Order allow,deny
    20        Allow from 10.0.2.0/24
    21      </Limit>
    22    </Policy>
    

    Using Policies

    Once you have created a policy, you can use it in two ways. The first way is to assign it as the default policy for the system using the DefaultPolicy directive in the cupsd.conf file. For example, add the following line to the cupsd.conf file to use the "lab999" policy from the previous section:

    DefaultPolicy lab999
    

    To associate the policy with one or more printers, use either the lpadmin(8) command or the web interface to change the operation policy for each printer. When using the lpadmin command, the -o printer-op-policy=name option sets the operation policy for a printer. For example, enter the following command to use the "lab999" policy from the previous section with a printer named "LaserJet4000":

    lpadmin -p LaserJet4000 -o printer-op-policy=lab999
    

    To make the same change in the web interface, go to the printer's web page, for example "http://localhost:631/printers/LaserJet4000", and choose Set Default Options from the Administration menu button. Click on the Policies link and choose the desired policy from the pull-down list. Click on Set Default Options to change the policy for the printer.

    cups-2.4.7/doc/help/overview.html0000644000175000017500000000663614502571342016625 0ustar zdohnalzdohnal Overview of CUPS

    Overview of CUPS

    CUPS is the software you use to print from applications like the web browser you are using to read this page. It converts the page descriptions produced by your application (put a paragraph here, draw a line there, and so forth) into something your printer can understand and then sends the information to the printer for printing.

    Now, since every printer manufacturer does things differently, printing can be very complicated. CUPS does its best to hide this from you and your application so that you can concentrate on printing and less on how to print. Generally, the only time you need to know anything about your printer is when you use it for the first time, and even then CUPS can often figure things out on its own.

    How Does It Work?

    The first time you print to a printer, CUPS creates a queue to keep track of the current status of the printer (everything OK, out of paper, etc.) and any pages you have printed. Most of the time the queue points to a printer connected directly to your computer via a USB port, however it can also point to a printer on your network, a printer on the Internet, or multiple printers depending on the configuration. Regardless of where the queue points, it will look like any other printer to you and your applications.

    Every time you print something, CUPS creates a job which contains the queue you are sending the print to, the name of the document you are printing, and the page descriptions. Job are numbered (queue-1, queue-2, and so forth) so you can monitor the job as it is printed or cancel it if you see a mistake. When CUPS gets a job for printing, it determines the best programs (filters, printer drivers, port monitors, and backends) to convert the pages into a printable format and then runs them to actually print the job.

    When the print job is completely printed, CUPS removes the job from the queue and moves on to any other jobs you have submitted. You can also be notified when the job is finished, or if there are any errors during printing, in several different ways.

    Where Do I Begin?

    Click on the Administration tab. Click on the Add Printer button and follow the prompts.

    When you are asked for a username and password, enter your login username and password or the "root" username and password. On macOS®, the login username (or "short name") is typically your first and last name in lowercase.

    After the printer is added, CUPS will ask you to set the default printer options (paper size, output mode, etc.) for the printer. Make any changes as needed and then click on the Set Default Options button to save them. Some printers also support auto-configuration - click on the Query Printer for Default Options button to update the options automatically.

    Once you have added the printer, you can print to it from any application. You can also choose Print Test Page from the maintenance menu to print a simple test page and verify that everything is working properly.

    cups-2.4.7/doc/help/options.html0000644000175000017500000004066214502571342016447 0ustar zdohnalzdohnal Command-Line Printing and Options

    Command-Line Printing and Options

    CUPS provides both the System V (lp(1)) and Berkeley (lpr(1)) printing commands for printing files. In addition, it supported a large number of standard and printer-specific options that allow you to control how and where files are printed.

    Printing Files

    CUPS understands many different types of files directly, including text, PostScript, PDF, and image files. This allows you to print from inside your applications or at the command-line, whichever is most convenient! Type either of the following commands to print a file to the default (or only) printer on the system:

    lp filename
    lpr filename
    

    Choosing a Printer

    Many systems will have more than one printer available to the user. These printers can be attached to the local system via a parallel, serial, or USB port, or available over the network. Use the lpstat(1) command to see a list of available printers:

    lpstat -p -d
    

    The -p option specifies that you want to see a list of printers, and the -d option reports the current default printer or class.

    Use the -d option with the lp command to print to a specific printer:

    lp -d printer filename
    

    or the -P option with the lpr command:

    lpr -P printer filename
    

    Setting the Default Printer

    If you normally use a particular printer, you can tell CUPS to use it by default using the lpoptions(1) command:

    lpoptions -d printer
    

    Printing the Output of a Program

    Both the lp and lpr commands support printing from the standard input:

    program | lp
    program | lp -d printer
    program | lpr
    program | lpr -P printer
    

    If the program does not provide any output, then nothing will be queued for printing.

    Specifying Printer Options

    For many types of files, the default printer options may be sufficient for your needs. However, there may be times when you need to change the options for a particular file you are printing.

    The lp and lpr commands allow you to pass printer options using the -o option:

    lp -o landscape -o fit-to-page -o media=A4 filename.jpg
    lpr -o landscape -o fit-to-page -o media=A4 filename.jpg
    

    The available printer options vary depending on the printer. The standard options are described in the "Standard Printing Options" section below. Printer-specific options are also available and can be listed using the lpoptions command:

    lpoptions -p printer -l
    

    Creating Saved Options

    Saved options are supported in CUPS through printer instances. Printer instances are, as their name implies, copies of a printer that have certain options associated with them. Use the lpoptions command to create a printer instance:

    lpoptions -p printer/instance -o name=value ...
    

    The -p printer/instance option provides the name of the instance, which is always the printer name, a slash, and the instance name which can contain any printable characters except space and slash. The remaining options are then associated with the instance instead of the main queue. For example, the following command creates a duplex instance of the LaserJet queue:

    lpoptions -p LaserJet/duplex -o sides=two-sided-long-edge
    

    Instances do not inherit lpoptions from the main queue.

    Printing Multiple Copies

    Both the lp and lpr commands have options for printing more than one copy of a file:

    lp -n num-copies filename
    lpr -#num-copies filename
    

    Copies are normally not collated for you. Use the -o collate=true option to get collated copies:

    lp -n num-copies -o collate=true filename
    lpr -#num-copies -o collate=true filename
    

    Canceling a Print Job

    The cancel(1) and lprm(1) commands cancel a print job:

    cancel job-id
    lprm job-id
    

    The job-id is the number that was reported to you by the lp command. You can also get the job ID using the lpq(1) or lpstat commands:

    lpq
    lpstat
    

    Moving a Print Job

    The lpmove(8) command moves a print job to a new printer or class:

    lpmove job-id destination
    

    The job-id is the number that was reported to you by the lp or lpstat commands. Destination is the name of a printer or class that you want to actually print the job.

    Note:

    The lpmove command is located in the system command directory (typically /usr/sbin or /usr/local/sbin), and so may not be in your command path. Specify the full path to the command if you get a "command not found" error, for example:

    /usr/sbin/lpmove foo-123 bar
    

    Standard Printing Options

    The following options apply when printing all types of files.

    Selecting the Media Size, Type, and Source

    The -o media=xyz option sets the media size, type, and/or source:

    lp -o media=Letter filename
    lp -o media=Letter,MultiPurpose filename
    lpr -o media=Letter,Transparency filename
    lpr -o media=Letter,MultiPurpose,Transparency filename
    

    The available media sizes, types, and sources depend on the printer, but most support the following options (case is not significant):

    • Letter - US Letter (8.5x11 inches, or 216x279mm)
    • Legal - US Legal (8.5x14 inches, or 216x356mm)
    • A4 - ISO A4 (8.27x11.69 inches, or 210x297mm)
    • COM10 - US #10 Envelope (9.5x4.125 inches, or 241x105mm)
    • DL - ISO DL Envelope (8.66x4.33 inches, or 220x110mm)
    • Transparency - Transparency media type or source
    • Upper - Upper paper tray
    • Lower - Lower paper tray
    • MultiPurpose - Multi-purpose paper tray
    • LargeCapacity - Large capacity paper tray

    The actual options supported are defined in the printer's PPD file in the PageSize, InputSlot, and MediaType options. You can list them using the lpoptions(1) command:

    lpoptions -p printer -l
    

    When Custom is listed for the PageSize option, you can specify custom media sizes using one of the following forms:

    lp -o media=Custom.WIDTHxLENGTH filename
    lp -o media=Custom.WIDTHxLENGTHin filename
    lp -o media=Custom.WIDTHxLENGTHcm filename
    lp -o media=Custom.WIDTHxLENGTHmm filename
    

    where "WIDTH" and "LENGTH" are the width and length of the media in points, inches, centimeters, or millimeters, respectively.

    Setting the Orientation

    The -o landscape option will rotate the page 90 degrees to print in landscape orientation:

    lp -o landscape filename
    lpr -o landscape filename
    

    The -o orientation-requested=N option rotates the page depending on the value of N:

    • -o orientation-requested=3 - portrait orientation (no rotation)
    • -o orientation-requested=4 - landscape orientation (90 degrees)
    • -o orientation-requested=5 - reverse landscape or seascape orientation (270 degrees)
    • -o orientation-requested=6 - reverse portrait or upside-down orientation (180 degrees)

    Printing On Both Sides of the Paper

    The -o sides=two-sided-short-edge and -o sides=two-sided-long-edge options will enable two-sided printing on the printer if the printer supports it. The -o sides=two-sided-short-edge option is suitable for landscape pages, while the -o sides=two-sided-long-edge option is suitable for portrait pages:

    lp -o sides=two-sided-short-edge filename
    lp -o sides=two-sided-long-edge filename
    lpr -o sides=two-sided-long-edge filename
    

    The default is to print single-sided:

    lp -o sides=one-sided filename
    lpr -o sides=one-sided filename
    

    Selecting the Banner Page(s)

    The -o job-sheets=start,end option sets the banner page(s) to use for a job:

    lp -o job-sheets=none filename
    lp -o job-sheets=standard filename
    lpr -o job-sheets=classified,classified filename
    

    If only one banner file is specified, it will be printed before the files in the job. If a second banner file is specified, it is printed after the files in the job.

    The available banner pages depend on the local system configuration; CUPS includes the following banner files:

    • none - Do not produce a banner page.
    • classified - A banner page with a "classified" label at the top and bottom.
    • confidential - A banner page with a "confidential" label at the top and bottom.
    • secret - A banner page with a "secret" label at the top and bottom.
    • standard - A banner page with no label at the top and bottom.
    • topsecret - A banner page with a "top secret" label at the top and bottom.
    • unclassified - A banner page with an "unclassified" label at the top and bottom.

    Holding Jobs for Later Printing

    The -o job-hold-until=when option tells CUPS to delay printing until the "when" time, which can be one of the following:

    • -o job-hold-until=indefinite; print only after released by the user or an administrator
    • -o job-hold-until=day-time; print from 6am to 6pm local time
    • -o job-hold-until=night; print from 6pm to 6am local time
    • -o job-hold-until=second-shift; print from 4pm to 12am local time
    • -o job-hold-until=third-shift; print from 12am to 8am local time
    • -o job-hold-until=weekend; print on Saturday or Sunday
    • -o job-hold-until=HH:MM; print at the specified UTC time

    Releasing Held Jobs

    Aside from the web interface, you can use the lp command to release a held job:

    lp -i job-id -H resume
    

    where "job-id" is the job ID reported by the lpstat command.

    Setting the Job Priority

    The -o job-priority=NNN option tells CUPS to assign a priority to your job from 1 (lowest) to 100 (highest), which influences where the job appears in the print queue. Higher priority jobs are printed before lower priority jobs, however submitting a new job with a high priority will not interrupt an already printing job.

    Specifying the Output Order

    The -o outputorder=normal and -o outputorder=reverse options specify the order of the pages. Normal order prints page 1 first, page 2 second, and so forth. Reverse order prints page 1 last.

    Selecting a Range of Pages

    The -o page-ranges=pages option selects a range of pages for printing:

    lp -o page-ranges=1 filename
    lp -o page-ranges=1-4 filename
    lp -o page-ranges=1-4,7,9-12 filename
    lpr -o page-ranges=1-4,7,9-12 filename
    

    As shown above, the pages value can be a single page, a range of pages, or a collection of page numbers and ranges separated by commas. The pages will always be printed in ascending order, regardless of the order of the pages in the page-ranges option.

    The default is to print all pages.

    Note:

    The page numbers used by page-ranges refer to the output pages and not the document's page numbers. Options like number-up can make the output page numbering not match the document page numbers.

    N-Up Printing

    The -o number-up=value option selects N-Up printing. N-Up printing places multiple document pages on a single printed page. CUPS supports 1, 2, 4, 6, 9, and 16-Up formats; the default format is 1-Up:

    lp -o number-up=1 filename
    lp -o number-up=2 filename
    lp -o number-up=4 filename
    lpr -o number-up=16 filename
    

    The -o page-border=value option chooses the border to draw around each page:

    • -o page-border=double; draw two hairline borders around each page
    • -o page-border=double-thick; draw two 1pt borders around each page
    • -o page-border=none; do not draw a border (default)
    • -o page-border=single; draw one hairline border around each page
    • -o page-border=single-thick; draw one 1pt border around each page

    The -o number-up-layout=value option chooses the layout of the pages on each output page:

    • -o number-up-layout=btlr; Bottom to top, left to right
    • -o number-up-layout=btrl; Bottom to top, right to left
    • -o number-up-layout=lrbt; Left to right, bottom to top
    • -o number-up-layout=lrtb; Left to right, top to bottom (default)
    • -o number-up-layout=rlbt; Right to left, bottom to top
    • -o number-up-layout=rltb; Right to left, top to bottom
    • -o number-up-layout=tblr; Top to bottom, left to right
    • -o number-up-layout=tbrl; Top to bottom, right to left

    Scaling to Fit

    The -o fit-to-page option specifies that the document should be scaled to fit on the page:

    lp -o fit-to-page filename
    lpr -o fit-to-page filename
    

    The default is to use the size specified in the file.

    Note:

    This feature depends upon an accurate size in the print file. If no size is given in the file, the page may be scaled incorrectly!

    Printing in Reverse Order

    The -o outputorder=reverse option will print the pages in reverse order:

    lp -o outputorder=reverse filename
    lpr -o outputorder=reverse filename
    

    Similarly, the -o outputorder=normal option will print starting with page 1:

    lp -o outputorder=normal filename
    lpr -o outputorder=normal filename
    

    The default is -o outputorder=normal for printers that print face down and -o outputorder=reverse for printers that print face up.

    Printing Mirrored Pages

    The -o mirror option flips each page along the vertical axis to produce a mirrored image:

    lp -o mirror filename
    lpr -o mirror filename
    

    This is typically used when printing on T-shirt transfer media or sometimes on transparencies.

    cups-2.4.7/doc/help/network.html0000644000175000017500000004510214502571342016437 0ustar zdohnalzdohnal Using Network Printers

    Using Network Printers

    This help document describes how to discover, configure, and use TCP/IP network printers with CUPS.

    Automatic Configuration Using Bonjour

    Most network printers support a protocol known as Bonjour, which is a combination of zero-configuration networking ("ZeroConf"), multicast DNS (mDNS), and DNS service discovery (DNS-SD) standards published by the Internet Engineering Task Force (IETF), the same group that defined TCP/IP and all of the networking we use today.

    A printer that supports Bonjour can be found automatically using the dnssd backend. Run the lpinfo(8) command to find your printer's URI:

    lpinfo --include-schemes dnssd -v
    network dnssd://Acme%20Laser%20Pro._ipp._tcp.local./?uuid=545253fb-1cb7-4d8d-98ed-ab6cd607cea7
    network dnssd://Bar99._printer.tcp.local./?uuid=f9efff58-9086-4c95-accb-81dee876a475
    network dnssd://Example%20EX-42._ipps._tcp.local./?uuid=4a0c67ad-2824-4ddf-9115-7d4226c5fe65
    network dnssd://Foo%20Fighter-1969._pdl-datastream._tcp.local./?uuid=4e216bea-c3de-4f65-a710-c99e11c80d2b

    You can then add a printer using the URI reported.

    Manual Configuration Using IP Addresses

    You can also manually configure a printer using its Internet Protocol v4 (IPv4) address. This address is either configured manually ("static IP") through the printer's control panel or set using an automatic network protocol such as the Dynamic Host Control Protocol (DHCP) or ZeroConf.

    Note: Configuring a printer using an IP address set using DHCP or ZeroConf is not recommended since the address will change every time the printer is turned on or after long periods of inactivity. Thus, every time the address changes you will need to modify the print queue using the lpadmin command.

    Finding the IP Address

    You can normally find the IP address of a printer on the printer's control panel or by printing the configuration or status page. The Simple Network Management Protocol (SNMP) can also be used to get the IP address remotely. To test that the IP address has been successfully assigned and that the printer is properly connected to your LAN or Wi-Fi network, type:

    ping ip-address

    where "ip-address" is the address reported by the printer's control panel, configuration page, and/or status page. If the connection is working properly you will see something like:

    ping 10.0.1.42
    PING 10.0.1.42 (10.0.1.42): 56 data bytes
    64 bytes from 10.0.1.42: icmp_seq=0 ttl=15 time=1.123 ms
    64 bytes from 10.0.1.42: icmp_seq=1 ttl=15 time=2.034 ms
    64 bytes from 10.0.1.42: icmp_seq=2 ttl=15 time=1.765 ms
    64 bytes from 10.0.1.42: icmp_seq=3 ttl=15 time=1.234 ms
    ...

    If the connection is not working properly you will see something like:

    ping 10.0.1.42
    PING 10.0.1.42 (10.0.1.42): 56 data bytes
    Request timeout for icmp_seq 0
    Request timeout for icmp_seq 1
    ...

    Press CTRL+C to quit the ping command.

    Note: If the command does not show responses from the printer, verify that the printer or print server is powered on and connected to the same LAN or Wi-Fi network as your computer. For LAN connections, also verify that your network cabling is good.

    Choosing a Network Protocol (Backend)

    CUPS supports most network printers using one of three TCP/IP-based protocols: AppSocket, Internet Printing Protocol, and Line Printer Daemon. The following sections describe the options for each of the backends.

    AppSocket Protocol (aka JetDirect)

    The AppSocket protocol (sometimes also called the JetDirect protocol, owing to its origins with the HP JetDirect network interfaces) is the simplest and fastest network protocol used for printers. AppSocket printing normally happens over port 9100 and uses the socket backend. Device URIs for the socket backend look like this:

    socket://ip-address
    socket://ip-address/?contimeout=30
    socket://ip-address/?waiteof=false
    socket://ip-address/?contimeout=30&waiteof=false
    socket://ip-address:port-number/?...

    The "contimeout" option controls the number of seconds that the backend will wait to obtain a connection to the printer. The default is 1 week or 604800 seconds.

    The "waiteof" option controls whether the socket backend waits for the printer to complete the printing of the job. The default is to wait (waiteof=true). Add waiteof=false to the URI to tell the backend not to wait.

    Note: While the AppSocket protocol is simple and fast, it also offers no security and is often an attack vector with printers. Consider using the Internet Printing Protocol which supports encryption and other security features.

    Internet Printing Protocol (IPP)

    IPP is the only protocol that CUPS supports natively and is supported by most network printers and print servers. IPP supports encryption and other security features over port 631 and uses the http (Windows), ipp, and ipps backends. Device URIs for these backends look like this:

    http://ip-address-or-hostname:port-number/printers/name/.printer
    ipp://ip-address/ipp/print
    ipp://ip-address-or-hostname/printers/name
    ipps://ip-address/ipp/print
    ipps://ip-address:443/ipp/print
    ipps://ip-address-or-hostname/printers/name

    The backends supports many options, which are summarized in Table 2. Like all backends, options are added to the end of the URI using the URL form encoding format, for example:

    ipp://10.0.1.42/ipp/print?version=1.1
    ipps://10.0.1.42:443/ipp/print?waitjob=false&waitprinter=false
    Table 2: IPP URI Options
    Option Description
    contimeout=seconds Specifies the number of seconds to wait for the connection to the printer to complete (default 1 week or 604800 seconds).
    encryption=always Specifies that the connection to the IPP printer should be encrypted using SSL.
    encryption=ifrequested Specifies that the connection to the IPP printer should only be encrypted if the printer requests it.
    encryption=never Specifies that the connection to the IPP printer should not be encrypted.
    encryption=required Specifies that the connection to the IPP printer should be encrypted using TLS.
    version=1.0 Specifies that version 1.0 of the IPP protocol should be used instead of the default version 2.0.
    version=1.1 Specifies that version 1.1 of the IPP protocol should be used instead of the default version 2.0.
    version=2.1 Specifies that version 2.1 of the IPP protocol should be used instead of the default version 2.0.
    waitjob=false Specifies that the IPP backend should not wait for the job to complete.
    waitprinter=false Specifies that the IPP backend should not wait for the printer to become idle before sending the print job.

    Line Printer Daemon (LPD) Protocol (aka lpr)

    LPD is the original network printing protocol created for the Berkeley UNIX line printer daemon (spooler) and is supported by many network printers. LPD printing normally happens over port 515 and uses the lpd backend. Device URIsfor the lpd backend look like this:

    lpd://ip-address/queue
    lpd://ip-address/queue?format=l
    lpd://ip-address/queue?format=l&reserve=rfc1179

    Table 3 summarizes the options supported by the lpd backend.

    Note: Due to limitations in the LPD protocol, we do not recommend using it if the printer or server supports any of the other protocols. Like AppSocket, LPD offers no security and is a common attack vector. LPD also, by default, requires that the computer save a copy of the entire print job before sending it to the printer - this can result in gigabytes of print data being saved to disk before any printing happens, delaying print jobs and shortening the life of your mass storage device!
    Table 3: LPD URI Options
    Option Description
    banner=on Specifies that a banner page should be printed by the printer.
    contimeout=seconds Specifies the number of seconds to wait for the connection to the printer to complete (default 1 week or 604800 seconds).
    format=f Specifies that the print data is a plain text file.
    format=o Specifies that the print data is a PostScript file.
    format=p Specifies that the print data is a plain text file that should be "pretty" printed with a header and footer.
    mode=stream Specifies that the backend should stream print data to the printer and not wait for confirmation that the job has been successfully printed.
    order=data,control Specifies that the print data files should be sent before the control file.
    reserve=none Specifies that the backend should not reserve a source port.
    reserve=rfc1179 Specifies that the backend should reserve a source port from 721 to 731 as required by RFC 1179.
    sanitize_title=no Specifies that the job title string should not be restricted to ASCII alphanumeric and space characters.
    sanitize_title=yes Specifies that the job title string should be restricted to ASCII alphanumeric and space characters.
    timeout=seconds Specifies the number of seconds to wait for LPD commands to complete (default 5 minutes or 300 seconds).

    Finding Printers Using SNMP

    Whenever you view the administration web page or a list of supported device URIs, the snmp backend can probe the local network(s) using Simple Network Management Protocol (SNMP) v1 broadcasts. Printers that respond to these broadcasts are then interrogated for the make, model, and supported protocols, yielding a device URI that can be used to add the printer.

    The /etc/cups/snmp.conf file configures the snmp backend. Add the following line to enable discovery using the snmp backend:

    Address @LOCAL

    If you don't use "public" as your community name, change the Community line as well:

    Community your community name
    Note: The snmp backend will not be able to find any printers on your network if SNMP v1 or broadcasting are disabled on your network. Also, broadcasts are typically limited to the local subnet, so printers on different networks cannot be discovered using SNMP.

    Troubleshooting SNMP Problems

    The snmp backend sometimes exposes problems in vendor implementations. If you are experiencing long delays in loading the CUPS web interface administration page, or if you don't see your printer listed, the following instructions will help you to diagnose those problems and/or provide important feedback to the CUPS developers so that we can correct problems and improve the snmp backend in future releases.

    The SNMP backend supports a debugging mode that is activated by running it from a shell prompt. Run the following command to get a verbose log of the snmp backend:

    CUPS_DEBUG_LEVEL=2 /usr/lib/cups/backend/snmp @LOCAL 2>&1 | tee snmp.log

    On macOS you'll find the backend in /usr/libexec/cups/backend instead:

    CUPS_DEBUG_LEVEL=2 /usr/libexec/cups/backend/snmp @LOCAL 2>&1 | tee snmp.log

    The output will look something like this:

     1  INFO: Using default SNMP Address @LOCAL
     2  INFO: Using default SNMP Community public
     3  DEBUG: Scanning for devices in "public" via "@LOCAL"...
     4  DEBUG: 0.000 Sending 46 bytes to 10.0.1.255...
     5  DEBUG: SEQUENCE 44 bytes
     6  DEBUG:     INTEGER 1 bytes 0
     7  DEBUG:     OCTET STRING 6 bytes "public"
     8  DEBUG:     Get-Request-PDU 31 bytes
     9  DEBUG:         INTEGER 4 bytes 1149539174
    10  DEBUG:         INTEGER 1 bytes 0
    11  DEBUG:         INTEGER 1 bytes 0
    12  DEBUG:         SEQUENCE 17 bytes
    13  DEBUG:             SEQUENCE 15 bytes
    14  DEBUG:                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
    15  DEBUG:                 NULL VALUE 0 bytes
    16  DEBUG: 0.001 Received 55 bytes from 10.0.1.42...
    17  DEBUG: community="public"
    18  DEBUG: request-id=1149539174
    19  DEBUG: error-status=0
    20  DEBUG: SEQUENCE 53 bytes
    21  DEBUG:     INTEGER 1 bytes 0
    22  DEBUG:     OCTET STRING 6 bytes "public"
    23  DEBUG:     Get-Response-PDU 40 bytes
    24  DEBUG:         INTEGER 4 bytes 1149539174
    25  DEBUG:         INTEGER 1 bytes 0
    26  DEBUG:         INTEGER 1 bytes 0
    27  DEBUG:         SEQUENCE 26 bytes
    28  DEBUG:             SEQUENCE 24 bytes
    29  DEBUG:                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
    30  DEBUG:                 OID 9 bytes .1.3.6.1.2.1.25.3.1.5
    31  DEBUG: add_cache(addr=0xbfffe170, addrname="10.0.1.42", uri="(null)", id="(null)", make_and_model="(null)")
    32  DEBUG: 0.002 Sending 46 bytes to 10.0.1.42...
    33  DEBUG: SEQUENCE 44 bytes
    34  DEBUG:     INTEGER 1 bytes 0
    35  DEBUG:     OCTET STRING 6 bytes "public"
    36  DEBUG:     Get-Request-PDU 31 bytes
    37  DEBUG:         INTEGER 4 bytes 1149539175
    38  DEBUG:         INTEGER 1 bytes 0
    39  DEBUG:         INTEGER 1 bytes 0
    40  DEBUG:         SEQUENCE 17 bytes
    41  DEBUG:             SEQUENCE 15 bytes
    42  DEBUG:                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.3.1
    43  DEBUG:                 NULL VALUE 0 bytes
    44  DEBUG: 0.003 Received 69 bytes from 10.0.1.42...
    45  DEBUG: community="public"
    46  DEBUG: request-id=1149539175
    47  DEBUG: error-status=0
    48  DEBUG: SEQUENCE 67 bytes
    49  DEBUG:     INTEGER 1 bytes 0
    50  DEBUG:     OCTET STRING 6 bytes "public"
    51  DEBUG:     Get-Response-PDU 54 bytes
    52  DEBUG:         INTEGER 4 bytes 1149539175
    53  DEBUG:         INTEGER 1 bytes 0
    54  DEBUG:         INTEGER 1 bytes 0
    55  DEBUG:         SEQUENCE 40 bytes
    56  DEBUG:             SEQUENCE 38 bytes
    57  DEBUG:                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.3.1
    58  DEBUG:                 OCTET STRING 23 bytes "HP LaserJet 4000 Series"
    59  DEBUG: 1.001 Probing 10.0.1.42...
    60  DEBUG: 1.001 Trying socket://10.0.1.42:9100...
    61  DEBUG: 10.0.1.42 supports AppSocket!
    62  DEBUG: 1.002 Scan complete!
    63  network socket://10.0.1.42 "HP LaserJet 4000 Series" "HP LaserJet 4000 Series 10.0.1.42" ""

    The first two lines are just informational and let you know that the default community name and address are being used. Lines 3-15 contain the initial SNMP query for the device type OID (.1.3.6.1.2.1.25.3.2.1.2.1) from the Host MIB.

    Lines 16-31 show the response we got from an HP LaserJet 4000 network printer. At this point we discover that it is a printer device and then send another SNMP query (lines 32-43) for the device description OID (.1.3.6.1.2.1.25.3.2.1.3.1) from the Host MIB as well.

    Lines 44-58 show the response to the device description query, which tells us that this is an HP LaserJet 4000 Series printer.

    On line 59 we start our active connection probe and discover that this print server supports the AppSocket (JetDirect) protocol on port 9100.

    Finally, line 63 shows the device information line for the print server that is sent to CUPS.

    If you don't see your printer listed, or the wrong information is listed, then you need to gather more information on the printer. The easiest way to do this is to run the snmpwalk command:

    snmpwalk -Cc -v 1 -c public ip-address | tee snmpwalk.log

    where "ip-address" is the IP address of the printer or print server. You should see a lot of values stream by - the ones you want to see are:

    HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter
    HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HP LaserJet 4000 Series

    The hrDeviceType line should show hrDevicePrinter; if not, then your printer or print server doesn't identify itself as a printer. The hrDeviceDescr line should provide a human-readable string for the make and model of the printer, although in some cases you'll just see something less useful like "Axis OfficeBASIC Parallel Print Server".

    Once you have collected the snmpwalk output, you should go to the CUPS Issue Tracker page to submit a feature request to support your printer or print server. Be sure to attach those two log files you created - they will help us to identify the SNMP values we need to look for.

    cups-2.4.7/doc/help/man-subscriptions.conf.html0000644000175000017500000000316214502571342021352 0ustar zdohnalzdohnal subscriptions.conf(5)

    subscriptions.conf(5)

    Name

    subscriptions.conf - subscription configuration file for cups

    Description

    The subscriptions.conf file defines the local event notification subscriptions that are active. It is normally located in the /etc/cups directory and is maintained by the cupsd(8) program. This file is not intended to be edited or managed manually.

    Notes

    The name, location, and format of this file are an implementation detail that will change in future releases of CUPS.

    See Also

    classes.conf(5), cups-files.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-printers.conf.html0000644000175000017500000000311614502571342020310 0ustar zdohnalzdohnal printers.conf(5)

    printers.conf(5)

    Name

    printers.conf - printer configuration file for cups

    Description

    The printers.conf file defines the local printers that are available. It is normally located in the /etc/cups directory and is maintained by the cupsd(8) program. This file is not intended to be edited or managed manually.

    Notes

    The name, location, and format of this file are an implementation detail that will change in future releases of CUPS.

    See Also

    classes.conf(5), cups-files.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), subscriptions.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdpo.html0000644000175000017500000000451714502571342016646 0ustar zdohnalzdohnal ppdpo(1)

    ppdpo(1)

    Name

    ppdpo - ppd message catalog generator (deprecated)

    Synopsis

    ppdpo [ -D name[=value] ] [ -I include-directory ] [ -o output-file ] source-file

    Description

    ppdpo extracts UI strings from PPDC source files and updates either a GNU gettext or macOS strings format message catalog source file for translation. This program is deprecated and will be removed in a future release of CUPS.

    Options

    ppdpo supports the following options:
    -D name[=value]
    Sets the named variable for use in the source file. It is equivalent to using the #define directive in the source file.
    -I include-directory
    Specifies an alternate include directory. Multiple -I options can be supplied to add additional directories.
    -o output-file
    Specifies the output file. The supported extensions are .po or .po.gz for GNU gettext format message catalogs and .strings for macOS strings files.

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    ppdc(1), ppdhtml(1), ppdi(1), ppdmerge(1), ppdcfile(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdmerge.html0000644000175000017500000000403314502571342017320 0ustar zdohnalzdohnal ppdmerge(1)

    ppdmerge(1)

    Name

    ppdmerge - merge ppd files (deprecated)

    Synopsis

    ppdmerge [ -o output-ppd-file ] ppd-file ppd-file [ ... ppd-file ]

    Description

    ppdmerge merges two or more PPD files into a single, multi-language PPD file. This program is deprecated and will be removed in a future release of CUPS.

    Options

    ppdmerge supports the following options:
    -o output-ppd-file
    Specifies the PPD file to create. If not specified, the merged PPD file is written to the standard output. If the output file already exists, it is silently overwritten.

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    ppdmerge does not check whether the merged PPD files are for the same device. Merging of different device PPDs will yield unpredictable results.

    See Also

    ppdc(1), ppdhtml(1), ppdi(1), ppdpo(1), ppdcfile(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdi.html0000644000175000017500000000443014502571342016452 0ustar zdohnalzdohnal ppdi(1)

    ppdi(1)

    Name

    ppdi - import ppd files (deprecated)

    Synopsis

    ppdi [ -I include-directory ] [ -o source-file ] ppd-file [ ... ppd-file ]

    Description

    ppdi imports one or more PPD files into a PPD compiler source file. Multiple languages of the same PPD file are merged into a single printer definition to facilitate accurate changes for all localizations. This program is deprecated and will be removed in a future release of CUPS.

    Options

    ppdi supports the following options:
    -I include-directory
    Specifies an alternate include directory. Multiple -I options can be supplied to add additional directories.
    -o source-file
    Specifies the PPD source file to update. If the source file does not exist, a new source file is created. Otherwise the existing file is merged with the new PPD file(s) on the command-line. If no source file is specified, the filename ppdi.drv is used.

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    ppdc(1), ppdhtml(1), ppdmerge(1), ppdpo(1), ppdcfile(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdhtml.html0000644000175000017500000000415614502571342017173 0ustar zdohnalzdohnal ppdhtml(1)

    ppdhtml(1)

    Name

    ppdhtml - cups html summary generator (deprecated)

    Synopsis

    ppdhtml [ -D name[=value] ] [ -I include-directory ] source-file

    Description

    ppdhtml reads a driver information file and produces a HTML summary page that lists all of the drivers in a file and the supported options. This program is deprecated and will be removed in a future release of CUPS.

    Options

    ppdhtml supports the following options:
    -D name[=value]
    Sets the named variable for use in the source file. It is equivalent to using the #define directive in the source file.
    -I include-directory
    Specifies an alternate include directory. Multiple -I options can be supplied to add additional directories.

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    ppdc(1), ppdcfile(5), ppdi(1), ppdmerge(1), ppdpo(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdcfile.html0000644000175000017500000001722214502571342017307 0ustar zdohnalzdohnal ppdcfile(5)

    ppdcfile(5)

    Name

    ppdcfile - cups ppd compiler source file format (deprecated)

    Description

    The CUPS PPD compiler reads meta files that contain descriptions of one or more PPD files to be generated by ppdc(1). This man page provides a quick reference to the supported keywords and should be used in conjunction with the online help for CUPS.

    The source file format is plain ASCII text that can be edited using your favorite text editor. Comments are supported using the C (/* ... */) and C++ (// ...) comment mechanisms.

    Printer driver information can be grouped and shared using curly braces ({ ... }); PPD files are written when a close brace or end-of-file is seen and a PCFileName directive has been defined.

    Directives may be placed anywhere on a line and are followed by one or more values. The following is a list of the available directives and the values they accept:

    #define name value
    #elif {name | value}
    #else
    #endif
    #font name encoding "version" charset status
    #if {name | value}
    #include <filename>
    #include "filename"
    #media name width length
    #media "name/text" width length
    #po locale "filename"
    Attribute name "" value
    Attribute name keyword value
    Attribute name "keyword/text" value
    Choice name "code"
    Choice "name/text" "code"
    ColorDevice boolean-value
    ColorModel name colorspace colororder compression
    ColorModel "name/text" colorspace colororder compression
    ColorProfile resolution/mediatype gamma density matrix
    Copyright "text"
    CustomMedia name width length left bottom right top "size-code" "region-code"
    CustomMedia "name/text" width length left bottom right top "size-code" "region-code"
    Cutter boolean-value
    Darkness temperature name
    Darkness temperature "name/text"
    DriverType type
    Duplex type
    Filter mime-type cost program
    Finishing name
    Finishing "name/text"
    Font *
    Font name encoding "version" charset status
    Group name
    Group "name/text"
    HWMargins left bottom right top
    InputSlot position name
    InputSlot position "name/text"
    Installable name
    Installable "name/text"
    LocAttribute name "keyword/text" value
    ManualCopies boolean-value
    Manufacturer "name"
    MaxSize width length
    MediaSize name
    MediaType type name
    MediaType type "name/text"
    MinSize width length
    ModelName "name"
    ModelNumber number
    Option name type section order
    Option "name/text" type section order
    PCFileName "filename.ppd"
    Resolution colorspace bits-per-color row-count row-feed row-step name
    Resolution colorspace bits-per-color row-count row-feed row-step "name/text"
    SimpleColorProfile resolution/mediatype density yellow-density red-density gamma red-adjust green-adjust blue-adjust
    Throughput pages-per-minute
    UIConstraints "*Option1 *Option2"
    UIConstraints "*Option1 Choice1 *Option2"
    UIConstraints "*Option1 *Option2 Choice2"
    UIConstraints "*Option1 Choice1 *Option2 Choice2"
    VariablePaperSize boolean-value
    Version number

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    ppdc(1), ppdhtml(1), ppdi(1), ppdmerge(1), ppdpo(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ppdc.html0000644000175000017500000000744214502571342016452 0ustar zdohnalzdohnal ppdc(1)

    ppdc(1)

    Name

    ppdc - cups ppd compiler (deprecated)

    Synopsis

    ppdc [ -D name[=value] ] [ -I include-directory ] [ -c message-catalog ] [ -d output-directory ] [ -l language(s) ] [ -m ] [ -t ] [ -v ] [ -z ] [ --cr ] [ --crlf ] [ --lf ] source-file

    Description

    ppdc compiles PPDC source files into one or more PPD files. This program is deprecated and will be removed in a future release of CUPS.

    Options

    ppdc supports the following options:
    -D name[=value]
    Sets the named variable for use in the source file. It is equivalent to using the #define directive in the source file.
    -I include-directory
    Specifies an alternate include directory. Multiple -I options can be supplied to add additional directories.
    -c message-catalog
    Specifies a single message catalog file in GNU gettext (filename.po) or Apple strings (filename.strings) format to be used for localization.
    -d output-directory
    Specifies the output directory for PPD files. The default output directory is "ppd".
    -l language(s)
    Specifies one or more languages to use when localizing the PPD file(s). The default language is "en" (English). Separate multiple languages with commas, for example "de_DE,en_UK,es_ES,es_MX,es_US,fr_CA,fr_FR,it_IT" will create PPD files with German, UK English, Spanish (Spain, Mexico, and US), French (France and Canada), and Italian languages in each file.
    -m
    Specifies that the output filename should be based on the ModelName value instead of FileName or PCFileName.
    -t
    Specifies that PPD files should be tested instead of generated.
    -v
    Specifies verbose output, basically a running status of which files are being loaded or written. -z Generates compressed PPD files (filename.ppd.gz). The default is to generate uncompressed PPD files.
    --cr
    --crlf
    --lf
    Specifies the line ending to use - carriage return, carriage return and line feed, or line feed alone. The default is to use the line feed character alone.

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    ppdhtml(1), ppdi(1), ppdmerge(1), ppdpo(1), ppdcfile(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-notifier.html0000644000175000017500000000276114502571342017342 0ustar zdohnalzdohnal notifier(7)

    notifier(7)

    Name

    notifier - cups notification interface

    Synopsis

    notifier recipient [ user-data ]

    Description

    The CUPS notifier interface provides a standard method for adding support for new event notification methods to CUPS. Each notifier delivers one or more IPP events from the standard input to the specified recipient.

    Notifiers MUST read IPP messages from the standard input using the ippNew() and ippReadFile() functions and exit on error. Notifiers are encouraged to exit after a suitable period of inactivity, however they may exit after reading the first message or stay running until an error is seen. Notifiers inherit the environment and can use the logging mechanism documented in filter(7).

    See Also

    cupsd(8), filter(7), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-mime.types.html0000644000175000017500000001333514502571342017614 0ustar zdohnalzdohnal mime.types(5)

    mime.types(5)

    Name

    mime.types - mime type description file for cups

    Description

    The mime.types file defines the recognized file types.

    Additional file types are specified in files with the extension .types in the CUPS configuration directory.

    Each line in the mime.types file is a comment, blank, or rule line. Comment lines start with the # character. Rule lines start with the MIME media type and are optionally followed by a series of file recognition rules:

        mime/type [ rule ... rule ]
    
    
    Rules can be extended over multiple lines using the backslash character (\):
        mime/type [ really-really-really-long-rule ... \
          rule ]
    
    
    MIME media types specified by the mime/type field are case-insensitive and are sorted in ascending alphanumeric order for the purposes of matching. See the "TYPE MATCHING AND PRIORITY" section for more information.

    The rules may be grouped using parenthesis, joined using "+" for a logical AND, joined using "," or whitespace for a logical OR, and negated using "!".

    Rules

    Rules take two forms - a filename extension by itself and functions with test values inside parenthesis. The following functions are available:
    match("pattern")
    True if the filename matches the given shell wildcard pattern.
    ascii(offset,length)
    True if the length bytes starting at offset are valid printable ASCII (CR, NL, TAB, BS, 32-126).
    printable(offset,length)
    True if the length bytes starting at offset are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254).
    priority(number)
    Specifies the relative priority of this MIME media type. The default priority is 100. Larger values have higher priority while smaller values have lower priority.
    string(offset,"string")
    True if the bytes starting at offset are identical to string.
    istring(offset,"string")
    True if the bytes starting at offset match string without respect to case.
    char(offset,value)
    True if the byte at offset is identical to value.
    short(offset,value)
    True if the 16-bit big-endian integer at offset is identical to value.
    int(offset,value)
    True if the 32-bit big-endian integer at offset is identical to value.
    locale("string")
    True if current locale matches string.
    contains(offset,range,"string")
    True if the bytes starting at offset for range bytes contains string.

    String Constants

    String constants can be specified inside quotes ("") for strings containing whitespace and angle brackets (<>) for hexadecimal strings.

    Type Matching And Priority

    When CUPS needs to determine the MIME media type of a given file, it checks every MIME media type defined in the .types files. When two or more types match a given file, the type chosen will depend on the type name and priority, with higher-priority types being used over lower-priority ones. If the types have the same priority, the type names are sorted alphanumerically in ascending order and the first type is chosen.

    For example, if two types "text/bar" and "text/foo" are defined as matching the extension "doc", normally the type "text/bar" will be chosen since its name is alphanumerically smaller than "text/foo". However, if "text/foo" also defines a higher priority than "text/bar", "text/foo" will be chosen instead.

    Files

    /etc/cups - Typical CUPS configuration directory.

    Examples

    Define two MIME media types for raster data, with one being a subset with higher priority:
        application/vnd.cups-raster  string(0,"RaSt") string(0,"tSaR") \
                                      string(0,"RaS2") string(0,"2SaR") \
                                      string(0,"RaS3") string(0,"3SaR")
    
        image/pwg-raster              string(0,"RaS2") + \
                                      string(4,PwgRaster<00>) priority(150)
    

    See Also

    cups-files.conf(5), cupsd.conf(5), cupsd(8), cupsfilter(8), mime.convs(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-mime.convs.html0000644000175000017500000000561514502571342017602 0ustar zdohnalzdohnal mime.convs(5)

    mime.convs(5)

    Name

    mime.convs - mime type conversion file for cups (deprecated)

    Description

    The mime.convs file defines the filters that are available for converting files from one format to another. The standard filters support text, PDF, PostScript, and many types of image files.

    Additional filters are specified in files with the extension .convs in the CUPS configuration directory.

    Each line in the mime.convs file is a comment, blank, or filter line. Comment lines start with the # character. Filter lines specify the source and destination MIME types along with a relative cost associated with the filter and the filter to run:

        source/type destination/type cost filter
    
    
    The source/type field specifies the source MIME media type that is consumed by the filter.

    The destination/type field specifies the destination MIME media type that is produced by the filter.

    The cost field specifies the relative cost for running the filter. A value of 100 means that the filter uses a large amount of resources while a value of 0 means that the filter uses very few resources.

    The filter field specifies the filter program filename. Filenames are relative to the CUPS filter directory.

    Files

    /etc/cups - Typical CUPS configuration directory.
    /usr/lib/cups/filter - Typical CUPS filter directory.
    /usr/libexec/cups/filter - CUPS filter directory on macOS.

    Examples

    Define a filter that converts PostScript documents to CUPS Raster format:
        application/vnd.cups-postscript application/vnd.cups-raster 50 pstoraster
    
    

    Notes

    CUPS filters are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    cups-files.conf(5), cupsd.conf(5), cupsd(8), cupsfilter(8), mime.types(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-mailto.conf.html0000644000175000017500000000417014502571342017730 0ustar zdohnalzdohnal mailto.conf(5)

    mailto.conf(5)

    Name

    mailto.conf - configuration file for cups email notifier

    Description

    The mailto.conf file defines the local mail server and email notification preferences for CUPS.

    Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character.

    Directives

    Cc cc-address@domain.com
    Specifies an additional recipient for all email notifications.
    From from-address@domain.com
    Specifies the sender of email notifications.
    Sendmail sendmail command and options
    Specifies the sendmail command to use when sending email notifications. Only one Sendmail or SMTPServer line may be present in the mailto.conf file. If multiple lines are present, only the last one is used.
    SMTPServer servername
    Specifies a SMTP server to send email notifications to. Only one Sendmail or SMTPServer line may be present in the mailto.conf file. If multiple lines are present, only the last one is used.
    Subject subject-prefix
    Specifies a prefix string for the subject line of an email notification.

    See Also

    cupsd(8), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpstat.html0000644000175000017500000001150014502571342017021 0ustar zdohnalzdohnal lpstat(1)

    lpstat(1)

    Name

    lpstat - print cups status information

    Synopsis

    lpstat [ -h hostname[:port] ] [ -E ] [ -H ] [ -U username ] [ -l ] [ -W which-jobs ] [ -a [ destination(s) ] ] [ -c [ class(es) ] ] [ -d ] [ -e ] [ -o [ destination(s) ] ] [ -p [ printer(s) ] ] [ -r ] [ -R ] [ -s ] [ -t ] [ -u [ user(s) ] ] [ -v [ printer(s) ] ]

    Description

    lpstat displays status information about the current classes, jobs, and printers. When run with no arguments, lpstat will list active jobs queued by the current user.

    Options

    The lpstat command supports the following options:
    -E
    Forces encryption when connecting to the server.
    -H
    Shows the server hostname and port.
    -R
    Shows the ranking of print jobs.
    -U username
    Specifies an alternate username.
    -W which-jobs
    Specifies which jobs to show, "completed" or "not-completed" (the default). This option must appear before the -o option and/or any printer names, otherwise the default ("not-completed") value will be used in the request to the scheduler.
    -a [printer(s)]
    Shows the accepting state of printer queues. If no printers are specified then all printers are listed.
    -c [class(es)]
    Shows the printer classes and the printers that belong to them. If no classes are specified then all classes are listed.
    -d
    Shows the current default destination.
    -e
    Shows all available destinations on the local network.
    -h server[:port]
    Specifies an alternate server. Note: This option must occur before all others.
    -l
    Shows a long listing of printers, classes, or jobs.
    -o [destination(s)]
    Shows the jobs queued on the specified destinations. If no destinations are specified all jobs are shown.
    -p [printer(s)]
    Shows the printers and whether they are enabled for printing. If no printers are specified then all printers are listed.
    -r
    Shows whether the CUPS server is running.
    -s
    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 -v options.
    -t
    Shows all status information. This is equivalent to using the -r, -d, -c, -v, -a, -p, and -o options.
    -u [user(s)]
    Shows a list of print jobs queued by the specified users. If no users are specified, lists the jobs queued by the current user.
    -v [printer(s)]
    Shows the printers and what device they are attached to. If no printers are specified then all printers are listed.

    Conforming To

    Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", and "#". Also, printer and class names are not case-sensitive.

    The -h, -e, -E, -U, and -W options are unique to CUPS.

    The Solaris -f, -P, and -S options are silently ignored.

    See Also

    cancel(1), lp(1), lpq(1), lpr(1), lprm(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lprm.html0000644000175000017500000000455114502571342016474 0ustar zdohnalzdohnal lprm(1)

    lprm(1)

    Name

    lprm - cancel print jobs

    Synopsis

    lprm [ -h hostname[:port] ] [ -E ] [ -U username ] [ -P destination[/instance] ] [ - ] [ job-id(s) ]

    Description

    lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default destination is canceled. You can specify one or more job ID numbers to cancel those jobs or use the - option to cancel all jobs.

    Options

    The lprm command supports the following options:
    -E
    Forces encryption when connecting to the server.
    -P destination[/instance]
    Specifies the destination printer or class.
    -U username
    Specifies an alternate username.
    -h server[:port]
    Specifies an alternate server. Note: This option must occur before all others.

    Conforming To

    The CUPS version of lprm is compatible with the standard Berkeley command of the same name.

    Examples

    Cancel the current job on the default printer:
        lprm
    
    
    Cancel job 1234:
        lprm 1234
    
    
    Cancel all jobs:
        lprm -
    

    See Also

    cancel(1), lp(1), lpq(1), lpr(1), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpr.html0000644000175000017500000001466414502571342016325 0ustar zdohnalzdohnal lpr(1)

    lpr(1)

    Name

    lpr - print files

    Synopsis

    lpr [ -H server[:port] ] [ -E ] [ -U username ] [ -P destination[/instance] ] [ -# num-copies [ -h ] [ -l ] [ -m ] [ -o option[=value] ] [ -p ] [ -q ] [ -r ] [ -C title ] [ -J title ] [ -T title ] [ file(s) ]

    Description

    lpr submits files for printing. Files named on the command line are sent to the named printer or the default destination if no destination is specified. If no files are listed on the command-line, lpr reads the print file from the standard input.

    The Default Destination

    CUPS provides many ways to set the default destination. The LPDEST and PRINTER environment variables are consulted first. If neither are set, the current default set using the lpoptions(1) command is used, followed by the default set using the lpadmin(8) command.

    Options

    The following options are recognized by lpr:
    -E
    Forces encryption when connecting to the server.
    -H server[:port]
    Specifies an alternate server. Note: This option must occur before all others.
    -C "name"
    -J "name"
    -T "name"
    Sets the job name/title.
    -P destination[/instance]
    Prints files to the named printer.
    -U username
    Specifies an alternate username.
    -# copies
    Sets the number of copies to print.
    -h
    Disables banner printing. This option is equivalent to -o job-sheets=none.
    -l
    Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to -o raw.
    -m
    Send an email on job completion.
    -o option[=value]
    Sets a job option. See "COMMON JOB OPTIONS" below.
    -p
    Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to -o prettyprint and is only useful when printing text files.
    -q
    Hold job for printing.
    -r
    Specifies that the named print files should be deleted after submitting them.

    Common Job Options

    Aside from the printer-specific options reported by the lpoptions(1) command, the following generic options are available:
    -o job-sheets=name
    Prints a cover page (banner) with the document. The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified".
    -o media=size
    Sets the page size to size. Most printers support at least the size names "a4", "letter", and "legal".
    -o number-up={2|4|6|9|16}
    Prints 2, 4, 6, 9, or 16 document (input) pages on each output page.
    -o orientation-requested=4
    Prints the job in landscape (rotated 90 degrees counter-clockwise).
    -o orientation-requested=5
    Prints the job in landscape (rotated 90 degrees clockwise).
    -o orientation-requested=6
    Prints the job in reverse portrait (rotated 180 degrees).
    -o print-quality=3
    -o print-quality=4
    -o print-quality=5
    Specifies the output quality - draft (3), normal (4), or best (5).
    -o sides=one-sided
    Prints on one side of the paper.
    -o sides=two-sided-long-edge
    Prints on both sides of the paper for portrait output.
    -o sides=two-sided-short-edge
    Prints on both sides of the paper for landscape output.

    Notes

    The -c, -d, -f, -g, -i, -n, -t, -v, and -w options are not supported by CUPS and produce a warning message if used.

    Examples

    Print two copies of a document to the default printer:
        lpr -# 2 filename
    
    
    Print a double-sided legal document to a printer called "foo":
        lpr -P foo -o media=legal -o sides=two-sided-long-edge filename
    
    
    Print a presentation document 2-up to a printer called "foo":
        lpr -P foo -o number-up=2 filename
    

    See Also

    cancel(1), lp(1), lpadmin(8), lpoptions(1), lpq(1), lprm(1), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpq.html0000644000175000017500000000436614502571342016322 0ustar zdohnalzdohnal lpq(1)

    lpq(1)

    Name

    lpq - show printer queue status

    Synopsis

    lpq [ -h server[:port] ] [ -E ] [ -U username ] [ -P destination[/instance] ] [ -a ] [ -l ] [ +interval ]

    Description

    lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line.

    The +interval option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every interval seconds.

    Options

    lpq supports the following options:
    -E
    Forces encryption when connecting to the server.
    -P destination[/instance]
    Specifies an alternate printer or class name.
    -U username
    Specifies an alternate username.
    -a
    Reports jobs on all printers.
    -h server[:port]
    Specifies an alternate server. Note: This option must occur before all others.
    -l
    Requests a more verbose (long) reporting format.

    See Also

    cancel(1), lp(1), lpr(1), lprm(1), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpoptions.html0000644000175000017500000001055614502571342017553 0ustar zdohnalzdohnal lpoptions(1)

    lpoptions(1)

    Name

    lpoptions - display or set printer options and defaults

    Synopsis

    lpoptions [ -h server[:port] ] [ -E ] -d destination[/instance] [ -l ]
    lpoptions [ -h server[:port] ] [ -E ] [ -p destination[/instance] ] -o option[=value] ...
    lpoptions [ -h server[:port] ] [ -E ] [ -p destination[/instance] ] -r option
    lpoptions [ -h server[:port] ] [ -E ] -x destination[/instance]

    Description

    lpoptions displays or sets printer options and defaults. If no printer is specified using the -p option, the default printer is used as described in lp(1).

    If no -l, -o, or -r options are specified, the current options are reported on the standard output.

    Options set with the lpoptions command are used by the lp(1) and lpr(1) commands when submitting jobs.

    When run by the root user, lpoptions gets and sets default options and instances for all users in the /etc/cups/lpoptions file. Otherwise, the per-user defaults are managed in the ~/.cups/lpoptions file.

    Options

    lpoptions supports the following options:
    -E
    Enables encryption when communicating with the CUPS server.
    -d destination[/instance]
    Sets the user default printer to destination. If instance is supplied then that particular instance is used. This option overrides the system default printer for the current user.
    -h server[:port]
    Uses an alternate server. Note: This option must occur before all others.
    -l
    Lists the printer specific options and their current settings.
    -o option[=value]
    Specifies a new option for the named destination.
    -p destination[/instance]
    Sets the destination and instance, if specified, for any options that follow. If the named instance does not exist then it is created. Destinations can only be created using the lpadmin(8) program.
    -r option
    Removes the specified option from the named destination.
    -x destination[/instance]
    Removes the options for the named destination and instance, if specified. If the named instance does not exist then this does nothing. Destinations can only be removed using the lpadmin(8) command.

    Files

    ~/.cups/lpoptions - user defaults and instances created by non-root users.
    /etc/cups/lpoptions - system-wide defaults and instances created by the root user.

    Conforming To

    The lpoptions command is unique to CUPS.

    See Also

    cancel(1), lp(1), lpadmin(8), lpr(1), lprm(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpmove.html0000644000175000017500000000417714502571342017030 0ustar zdohnalzdohnal lpmove(8)

    lpmove(8)

    Name

    lpmove - move a job or all jobs to a new destination

    Synopsis

    lpmove [ -h server[:port] ] [ -E ] [ -U username ] job destination
    lpmove [ -h server[:port] ] [ -E ] [ -U username ] source destination

    Description

    lpmove moves the specified job or all jobs from source to destination. job can be the job ID number or the old destination and job ID.

    Options

    The lpmove command supports the following options:
    -E
    Forces encryption when connecting to the server.
    -U username
    Specifies an alternate username.
    -h server[:port]
    Specifies an alternate server. Note: This option must occur before all others.

    Examples

    Move job 123 from "oldprinter" to "newprinter":
        lpmove 123 newprinter
    
                or
    
        lpmove oldprinter-123 newprinter
    
    
    Move all jobs from "oldprinter" to "newprinter":
        lpmove oldprinter newprinter
    

    See Also

    cancel(1), lp(1), lpr(1), lprm(1),
    CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpinfo.html0000644000175000017500000000747014502571342017014 0ustar zdohnalzdohnal lpinfo(8)

    lpinfo(8)

    Name

    lpinfo - show available devices or drivers (deprecated)

    Synopsis

    lpinfo [ -h server[:port] ] [ -E ] [ -l ] [ --device-id device-id-string ] [ --exclude-schemes scheme-list ] [ --include-schemes scheme-list ] [ --language locale ] [ --make-and-model name ] [ --product name ] -m
    lpinfo [ -h server[:port] ] [ -E ] [ -l ] [ --exclude-schemes scheme-list ] [ --include-schemes scheme-list ] [ --timeout seconds ] -v

    Description

    lpinfo lists the available devices or drivers known to the CUPS server. The first form (-m) lists the available drivers, while the second form (-v) lists the available devices.

    Options

    lpinfo accepts the following options:
    -E
    Forces encryption when connecting to the server.
    -h server[:port]
    Selects an alternate server. Note: This option must occur before all others.
    -l
    Shows a "long" listing of devices or drivers.
    --device-id device-id-string
    Specifies the IEEE-1284 device ID to match when listing drivers with the -m option.
    --exclude-schemes scheme-list
    Specifies a comma-delimited list of device or PPD schemes that should be excluded from the results. Static PPD files use the "file" scheme.
    --include-schemes scheme-list
    Specifies a comma-delimited list of device or PPD schemes that should be included in the results. Static PPD files use the "file" scheme.
    --language locale
    Specifies the language to match when listing drivers with the -m option.
    --make-and-model name
    Specifies the make and model to match when listing drivers with the -m option.
    --product name
    Specifies the product to match when listing drivers with the -m option.
    --timeout seconds
    Specifies the timeout when listing devices with the -v option.

    Conforming To

    The lpinfo command is unique to CUPS.

    Examples

    List all devices:
        lpinfo -v
    
    
    List all drivers:
        lpinfo -m
    
    
    List drivers matching "HP LaserJet":
        lpinfo --make-and-model "HP LaserJet" -m
    

    Notes

    CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    lpadmin(8), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpc.html0000644000175000017500000000502614502571342016276 0ustar zdohnalzdohnal lpc(8)

    lpc(8)

    Name

    lpc - line printer control program (deprecated)

    Synopsis

    lpc [ command [ parameter(s) ] ]

    Description

    lpc provides limited control over printer and class queues provided by CUPS. It can also be used to query the state of queues.

    If no command is specified on the command-line, lpc displays a prompt and accepts commands from the standard input.

    Commands

    The lpc program accepts a subset of commands accepted by the Berkeley lpc program of the same name:
    exit
    Exits the command interpreter.
    help [command]
    ? [command]
    Displays a short help message.
    quit
    Exits the command interpreter.
    status [queue]
    Displays the status of one or more printer or class queues.

    Notes

    This program is deprecated and will be removed in a future feature release of CUPS.

    Since lpc is geared towards the Berkeley printing system, it is impossible to use lpc to configure printer or class queues provided by CUPS. To configure printer or class queues you must use the lpadmin(8) command or another CUPS-compatible client with that functionality.

    See Also

    cancel(1), cupsaccept(8), cupsenable(8), lp(1), lpadmin(8), lpr(1), lprm(1), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lpadmin.html0000644000175000017500000002523314502571342017146 0ustar zdohnalzdohnal lpadmin(8)

    lpadmin(8)

    Name

    lpadmin - configure cups printers and classes

    Synopsis

    lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -d destination
    lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -p destination [ -R name-default ] option(s)
    lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -x destination

    Description

    lpadmin configures printer and class queues provided by CUPS. It can also be used to set the server default printer or class.

    When specified before the -d, -p, or -x options, the -E option forces encryption when connecting to the server.

    The first form of the command (-d) sets the default printer or class to destination. Subsequent print jobs submitted via the lp(1) or lpr(1) commands will use this destination unless the user specifies otherwise with the lpoptions(1) command.

    The second form of the command (-p) configures the named printer or class. The additional options are described below.

    The third form of the command (-x) deletes the printer or class destination. Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted.

    Options

    The following options are recognized when configuring a printer queue:
    -c class
    Adds the named printer to class. If class does not exist it is created automatically.
    -m model
    Sets a standard PPD file for the printer from the model directory or using one of the driver interfaces. Use the -m option with the lpinfo(8) command to get a list of supported models. The model "raw" clears any existing PPD file and the model "everywhere" queries the printer referred to by the specified IPP device-uri. Note: Models other than "everywhere" are deprecated and will not be supported in a future version of CUPS.
    -o cupsIPPSupplies=true
    -o cupsIPPSupplies=false
    Specifies whether IPP supply level values should be reported.
    -o cupsSNMPSupplies=true
    -o cupsSNMPSupplies=false
    Specifies whether SNMP supply level (RFC 3805) values should be reported.
    -o job-k-limit=value
    Sets the kilobyte limit for per-user quotas. The value is an integer number of kilobytes; one kilobyte is 1024 bytes.
    -o job-page-limit=value
    Sets the page limit for per-user quotas. The value is the integer number of pages that can be printed; double-sided pages are counted as two pages.
    -o job-quota-period=value
    Sets the accounting period for per-user quotas. The value is an integer number of seconds; 86,400 seconds are in one day.
    -o job-sheets-default=banner
    -o job-sheets-default=banner,banner
    Sets the default banner page(s) to use for print jobs.
    -o name=value
    Sets a PPD option for the printer. PPD options can be listed using the -l option with the lpoptions(1) command.
    -o name-default=value
    Sets a default server-side option for the destination. Any print-time option can be defaulted, e.g., "-o number-up-default=2" to set the default "number-up" option value to 2.
    -o port-monitor=name
    Sets the binary communications program to use when printing, "none", "bcp", or "tbcp". The default program is "none". The specified port monitor must be listed in the printer's PPD file.
    -o printer-error-policy=name
    Sets the policy for errors such as printers that cannot be found or accessed, don't support the format being printed, fail during submission of the print data, or cause one or more filters to crash. The name must be one of "abort-job" (abort the job on error), "retry-job" (retry the job at a future time), "retry-current-job" (retry the current job immediately), or "stop-printer" (stop the printer on error). The default error policy is "stop-printer" for printers and "retry-current-job" for classes.
    -o printer-is-shared=true
    -o printer-is-shared=false
    Sets the destination to shared/published or unshared/unpublished. Shared/published destinations are publicly announced by the server on the LAN based on the browsing configuration in cupsd.conf, while unshared/unpublished destinations are not announced. The default value is "true".
    -o printer-op-policy=name
    Sets the IPP operation policy associated with the destination. The name must be defined in the cupsd.conf in a Policy section. The default operation policy is "default".
    -R name-default
    Deletes the named option from printer.
    -r class
    Removes the named printer from class. If the resulting class becomes empty it is removed.
    -u allow:{user|@group}{,user|,@group}*
    -u deny:{user|@group}{,user|,@group}*
    -u allow:all
    -u deny:none
    Sets user-level access control on a destination. Names starting with "@" are interpreted as UNIX groups. The latter two forms turn user-level access control off. Note: The user 'root' is not granted special access - using "-u allow:foo,bar" will allow users 'foo' and 'bar' to access the printer but NOT 'root'.
    -v "device-uri"
    Sets the device-uri attribute of the printer queue. Use the -v option with the lpinfo(8) command to get a list of supported device URIs and schemes.
    -D "info"
    Provides a textual description of the destination.
    -E
    When specified before the -d, -p, or -x options, forces the use of TLS encryption on the connection to the scheduler. Otherwise, enables the destination and accepts jobs; this is the same as running the cupsaccept(8) and cupsenable(8) programs on the destination.
    -L "location"
    Provides a textual location of the destination.

    Deprecated Options

    The following lpadmin options are deprecated:
    -i filename
    This option historically has been used to provide either a System V interface script or (as an implementation side-effect) a PPD file. Note: Interface scripts are not supported by CUPS. PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS.
    -P ppd-file
    Specifies a PostScript Printer Description (PPD) file to use with the printer. Note: PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS.

    Conforming To

    Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.

    Finally, the CUPS version of lpadmin may ask the user for an access password depending on the printing system configuration. This differs from the System V version which requires the root user to execute this command.

    Notes

    CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    The CUPS version of lpadmin does not support all of the System V or Solaris printing system configuration options.

    Interface scripts are not supported for security reasons.

    The double meaning of the -E option is an unfortunate historical oddity.

    The lpadmin command communicates with the scheduler (cupsd) to make changes to the printing system configuration. This configuration information is stored in several files including printers.conf and classes.conf. These files should not be edited directly and are an implementation detail of CUPS that is subject to change at any time.

    Example

    Create an IPP Everywhere print queue:
        lpadmin -p myprinter -E -v ipp://myprinter.local/ipp/print -m everywhere
    
    

    See Also

    cupsaccept(8), cupsenable(8), lpinfo(8), lpoptions(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-lp.html0000644000175000017500000001751214502571342016136 0ustar zdohnalzdohnal lp(1)

    lp(1)

    Name

    lp - print files

    Synopsis

    lp [ -h hostname[:port] ] [ -E ] [ -U username ] [ -c ] [ -d destination[/instance] ] [ -m ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -s ] [ -t title ] [ -H handling ] [ -P page-list ] [ -- ] [ file(s) ]
    lp [ -h hostname[:port] ] [ -E ] [ -U username ] [ -c ] [ -i job-id ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -t title ] [ -H handling ] [ -P page-list ]

    Description

    lp submits files for printing or alters a pending job. Use a filename of "-" to force printing from the standard input.

    The Default Destination

    CUPS provides many ways to set the default destination. The LPDEST and PRINTER environment variables are consulted first. If neither are set, the current default set using the lpoptions(1) command is used, followed by the default set using the lpadmin(8) command.

    Options

    The following options are recognized by lp:
    --
    Marks the end of options; use this to print a file whose name begins with a dash (-).
    -E
    Forces encryption when connecting to the server.
    -U username
    Specifies the username to use when connecting to the server.
    -c
    This option is provided for backwards-compatibility only. On systems that support it, this option forces the print file to be copied to the spool directory before printing. In CUPS, print files are always sent to the scheduler via IPP which has the same effect.
    -d destination
    Prints files to the named printer.
    -h hostname[:port]
    Chooses an alternate server. Note: This option must occur before all others.
    -i job-id
    Specifies an existing job to modify.
    -m
    Sends an email when the job is completed.
    -n copies
    Sets the number of copies to print.
    -o "name=value [ ... name=value ]"
    Sets one or more job options. See "COMMON JOB OPTIONS" below.
    -q priority
    Sets the job priority from 1 (lowest) to 100 (highest). The default priority is 50.
    -s
    Do not report the resulting job IDs (silent mode.)
    -t "name"
    Sets the job name.
    -H hh:mm
    -H hold
    -H immediate
    -H restart
    -H resume
    Specifies when the job should be printed. A value of immediate will print the file immediately, a value of hold will hold the job indefinitely, and a UTC time value (HH:MM) will hold the job until the specified UTC (not local) time. Use a value of resume with the -i option to resume a held job. Use a value of restart with the -i option to restart a completed job.
    -P page-list
    Specifies which pages to print in the document. The list can contain a list of numbers and ranges (#-#) separated by commas, e.g., "1,3-5,16". The page numbers refer to the output pages and not the document's original pages - options like "number-up" can affect the numbering of the pages.

    Common Job Options

    Aside from the printer-specific options reported by the lpoptions(1) command, the following generic options are available:
    -o job-sheets=name
    Prints a cover page (banner) with the document. The "name" can be "classified", "confidential", "secret", "standard", "topsecret", or "unclassified".
    -o media=size
    Sets the page size to size. Most printers support at least the size names "a4", "letter", and "legal".
    -o number-up={2|4|6|9|16}
    Prints 2, 4, 6, 9, or 16 document (input) pages on each output page.
    -o orientation-requested=4
    Prints the job in landscape (rotated 90 degrees counter-clockwise).
    -o orientation-requested=5
    Prints the job in landscape (rotated 90 degrees clockwise).
    -o orientation-requested=6
    Prints the job in reverse portrait (rotated 180 degrees).
    -o print-quality=3
    -o print-quality=4
    -o print-quality=5
    Specifies the output quality - draft (3), normal (4), or best (5).
    -o sides=one-sided
    Prints on one side of the paper.
    -o sides=two-sided-long-edge
    Prints on both sides of the paper for portrait output.
    -o sides=two-sided-short-edge
    Prints on both sides of the paper for landscape output.

    Conforming To

    Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.

    The -q option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority).

    Examples

    Print two copies of a document to the default printer:
        lp -n 2 filename
    
    
    Print a double-sided legal document to a printer called "foo":
        lp -d foo -o media=legal -o sides=two-sided-long-edge filename
    
    
    Print a presentation document 2-up to a printer called "bar":
        lp -d bar -o number-up=2 filename
    

    See Also

    cancel(1), lpadmin(8), lpoptions(1), lpq(1), lpr(1), lprm(1), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ipptoolfile.html0000644000175000017500000007416414502571342020057 0ustar zdohnalzdohnal ipptoolfile(5)

    ipptoolfile(5)

    Name

    ipptoolfile - ipptool file format

    Description

    The ipptool(1) program accepts free-form plain text files that describe one or more IPP requests. Comments start with the "#" character and continue to the end of the line. Each request is enclosed by curly braces, for example:
        # This is a comment
        {
          # The name of the test
          NAME "Print PDF File"
    
          # The request to send
          OPERATION Print-Job
    
          GROUP operation-attributes-tag
          ATTR charset attributes-charset utf-8
          ATTR language attributes-natural-language en
          ATTR uri printer-uri $uri
          ATTR name requesting-user-name $user
          ATTR mimeMediaType document-format application/pdf
    
          GROUP job-attributes-tag
          ATTR collection media-col {
            # US Letter plain paper from the "main" tray
            MEMBER collection media-size {
              MEMBER integer x-dimension 21590
              MEMBER integer y-dimension 27940
            }
            MEMBER integer media-top-margin 423
            MEMBER integer media-bottom-margin 423
            MEMBER integer media-left-margin 423
            MEMBER integer media-right-margin 423
            MEMBER keyword media-source "main"
            MEMBER keyword media-type "stationery"
          }
    
          FILE testfile.pdf
    
          # The response to expect
          STATUS successful-ok
          EXPECT job-id OF-TYPE integer WITH-VALUE >0
          EXPECT job-uri OF-TYPE uri
        }
        {
          # The name of the test
          NAME "Wait for Job to Complete"
    
          # The request to send
          OPERATION Get-Job-Attributes
    
          GROUP operation-attributes-tag
          ATTR charset attributes-charset utf-8
          ATTR language attributes-natural-language en
          ATTR uri printer-uri $uri
          ATTR integer job-id $job-id
          ATTR name requesting-user-name $user
    
          # The response to expect
          STATUS successful-ok
          EXPECT job-id OF-TYPE integer WITH-VALUE $job-id
          EXPECT job-uri OF-TYPE uri
          EXPECT job-state OF-TYPE enum WITH-VALUE >5 REPEAT-NO-MATCH
          EXPECT job-originating-user-name OF-TYPE name WITH-VALUE "$user"
    
          # Show the job state until completed...
          DISPLAY job-state
          DISPLAY job-state-reasons
        }
    

    Top-level Directives

    The following directives can be used outside of a test:
    { test }
    Defines a test.
    DEFINE variable-name value
    Defines the named variable to the given value. This is equivalent to specifying -d variable-name=value on the ipptool(8) command-line.
    DEFINE-DEFAULT variable-name value
    Defines the named variable to the given value if it does not already have a value.
    FILE-ID "identifier"
    Specifies an identifier string for the current file.
    IGNORE-ERRORS yes
    IGNORE-ERRORS no
    Specifies whether, by default, ipptool(8) will ignore errors and continue with subsequent tests.
    INCLUDE "filename"
    INCLUDE <filename>
    Includes another test file. The first form includes a file relative to the current test file, while the second form includes a file from the ipptool(8) include directory.
    INCLUDE-IF-DEFINED name "filename"
    INCLUDE-IF-DEFINED name <filename>
    Includes another test file if the named variable is defined. The first form includes a file relative to the current test file, while the second form includes a file from the ipptool(8) include directory.
    INCLUDE-IF-NOT-DEFINED name "filename"
    INCLUDE-IF-NOT-DEFINED name <filename>
    Includes another test file if the named variable is not defined. The first form includes a file relative to the current test file, while the second form includes a file from the ipptool(8) include directory.
    SKIP-IF-DEFINED variable-name
    SKIP-IF-NOT-DEFINED variable-name
    Specifies that the remainder of the test file should be skipped when the variable is or is not defined.
    STOP-AFTER-INCLUDE-ERROR no
    STOP-AFTER-INCLUDE-ERROR yes
    Specifies whether tests will be stopped after an error in an included file.
    TRANSFER auto
    Specifies that tests will, by default, use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files.
    TRANSFER chunked
    Specifies that tests will, by default, use the HTTP/1.1 "Transfer-Encoding: chunked" header. This is the default and is equivalent to specifying -c on the ipptool(8) command-line. Support for chunked requests is required for conformance with all versions of IPP.
    TRANSFER length
    Specifies that tests will, by default, use the HTTP/1.0 "Content-Length:" header. This is equivalent to specifying -l on the ipptool(8) command-line. Support for content length requests is required for conformance with all versions of IPP.
    VERSION 1.0
    VERSION 1.1
    VERSION 2.0
    VERSION 2.1
    VERSION 2.2
    Specifies the default IPP version number to use for the tests that follow.

    Test Directives

    The following directives are understood within a test:
    ATTR out-of-band-tag attribute-name
    ATTR tag attribute-name value(s)
    Adds an attribute to the test request. Out-of-band tags (admin-define, delete-attribute, no-value, not-settable, unknown, unsupported) have no value. Values for other tags are delimited by the comma (",") character - escape commas using the "\" character. Common attributes and values are listed in the IANA IPP registry - see references below.
    ATTR collection attribute-name { MEMBER tag member-name value(s) ... } [ ... ,{ ... } ]
    Adds a collection attribute to the test request. Member attributes follow the same syntax as regular attributes and can themselves be nested collections. Multiple collection values can be supplied as needed, separated by commas.
    COMPRESSION deflate
    COMPRESSION gzip
    COMPRESSION none
    Uses the specified compression on the document data following the attributes in a Print-Job or Send-Document request.
    DELAY seconds[,repeat-seconds]
    Specifies a delay in seconds before this test will be run. If two values are specified, the second value is used as the delay between repeated tests. A default repeat interval of 5 seconds is used if this directive is not provided.
    DISPLAY attribute-name
    Specifies that value of the named attribute should be output as part of the test report.
    EXPECT attribute-name [ predicate(s) ]
    EXPECT ?attribute-name predicate(s)
    EXPECT !attribute-name
    Specifies that the response must/may/must not include the named attribute. Additional requirements can be added as predicates - see the "EXPECT PREDICATES" section for more information on predicates. Attribute names can specify member attributes by separating the attribute and member names with the forward slash, for example "media-col/media-size/x-dimension".
    EXPECT-ALL attribute-name [ predicate(s) ]
    EXPECT-ALL ?attribute-name predicate(s)
    Specifies that the response must/may include the named attribute and that all occurrences of that attribute must match the given predicates.
    FILE filename
    Specifies a file to include at the end of the request. This is typically used when sending a test print file.
    GROUP tag
    Specifies the group tag for subsequent attributes in the request.
    IGNORE-ERRORS yes
    IGNORE-ERRORS no
    Specifies whether ipptool(8) will ignore errors and continue with subsequent tests.
    MONITOR-PRINTER-STATE [ printer-uri ] { EXPECT attribute-name [ predicate(s) ] }
    Specifies printer state monitoring tests to run in parallel with the test operation. The monitoring tests will run until all of the EXPECT conditions are satisfied or the primary test operation has completed, whichever occurs first.
    NAME "literal string"
    Specifies the human-readable name of the test.
    OPERATION operation-code
    Specifies the operation to be performed.
    PASS-IF-DEFINED variable-name
    PASS-IF-NOT-DEFINED variable-name
    Specifies that the current test should be passed automatically when the variable is or is not defined.
    PAUSE "message"
    Displays the provided message and waits for the user to press a key to continue.
    REQUEST-ID number
    REQUEST-ID random
    Specifies the request-id value to use in the request, either an integer or the word "random" to use a randomly generated value (the default).
    RESOURCE path
    Specifies an alternate resource path that is used for the HTTP POST request. The default is the resource from the URI provided to the ipptool(8) program.
    SKIP-IF-DEFINED variable-name
    SKIP-IF-NOT-DEFINED variable-name
    Specifies that the current test should be skipped when the variable is or is not defined.
    SKIP-PREVIOUS-ERROR yes
    SKIP-PREVIOUS-ERROR no
    Specifies whether ipptool(8) will skip the current test if the previous test resulted in an error/failure.
    STATUS status-code [ predicate ]
    Specifies an expected response status-code value. Additional requirements can be added as predicates - see the "STATUS PREDICATES" section for more information on predicates.
    TEST-ID "identifier"
    Specifies an identifier string for the current test.
    TRANSFER auto
    Specifies that this test will use "Transfer-Encoding: chunked" if it has an attached file or "Content-Length:" otherwise.
    TRANSFER chunked
    Specifies that this test will use the HTTP/1.1 "Transfer-Encoding: chunked" header.
    TRANSFER length
    Specifies that this test will use the HTTP/1.0 "Content-Length:" header.
    VERSION 1.0
    VERSION 1.1
    VERSION 2.0
    VERSION 2.1
    VERSION 2.2
    Specifies the IPP version number to use for this test.

    Expect Predicates

    The following predicates are understood following the EXPECT test directive:
    COUNT number
    Requires the EXPECT attribute to have the specified number of values.
    DEFINE-MATCH variable-name
    Defines the variable to "1" when the EXPECT condition matches. A side-effect of this predicate is that this EXPECT will never fail a test.
    DEFINE-NO-MATCH variable-name
    Defines the variable to "1" when the EXPECT condition does not match. A side-effect of this predicate is that this EXPECT will never fail a test.
    DEFINE-VALUE variable-name
    Defines the variable to the value of the attribute when the EXPECT condition matches. A side-effect of this predicate is that this EXPECT will never fail a test.
    DISPLAY-MATCH "message"
    Displays the specified message when the EXPECT condition matches.
    IF-DEFINED variable-name
    Makes the EXPECT conditions apply only if the specified variable is defined.
    IF-NOT-DEFINED variable-name
    Makes the EXPECT conditions apply only if the specified variable is not defined.
    IN-GROUP tag
    Requires the EXPECT attribute to be in the specified group tag.
    OF-TYPE tag[(limits)|tag|...]
    Requires the EXPECT attribute to use one of the specified value tag(s). Most value tags also support the specification of limits in parenthesis, for example "name(42)" would allow nameWith/WithoutLanguage strings up to 42 octets in length, "name(4:MAX)" would allow nameWith/WithoutLanguage strings between 4 and 255 octets in length, and "integer(-273:MAX)" would allow integers between -273 and 2147483647.
    REPEAT-LIMIT number

    Specifies the maximum number of times to repeat if the REPEAT-MATCH or REPEAT-NO-MATCH predicate is specified. The default value is 1000.
    REPEAT-MATCH
    REPEAT-NO-MATCH
    Specifies that the current test should be repeated when the EXPECT condition matches or does not match.
    SAME-COUNT-AS attribute-name
    Requires the EXPECT attribute to have the same number of values as the specified parallel attribute.
    WITH-ALL-HOSTNAMES "literal string"
    WITH-ALL-HOSTNAMES "/regular expression/"
    Requires that all URI values contain a matching hostname.
    WITH-ALL-RESOURCES "literal string"
    WITH-ALL-RESOURCES "/regular expression/"
    Requires that all URI values contain a matching resource (including leading /).
    WITH-ALL-SCHEMES "literal string"
    WITH-ALL-SCHEMES "/regular expression/"
    Requires that all URI values contain a matching scheme.
    WITH-ALL-VALUES "literal string"
    Requires that all values of the EXPECT attribute match the literal string. Comparisons are case-sensitive.
    WITH-ALL-VALUES <number
    WITH-ALL-VALUES =number
    WITH-ALL-VALUES >number
    WITH-ALL-VALUES number[,...,number]
    Requires that all values of the EXPECT attribute match the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range.
    WITH-ALL-VALUES "false"
    WITH-ALL-VALUES "true"
    Requires that all values of the EXPECT attribute match the boolean value given.
    WITH-ALL-VALUES "/regular expression/"
    Requires that all values of the EXPECT attribute match the regular expression, which must conform to the POSIX regular expression syntax. Comparisons are case-sensitive.
    WITH-DISTINCT-VALUES
    Requires that all values of the EXPECT attribute are unique. Comparisons are case-sensitive. Only charset, collection, enum, integer, keyword, mimeMediaType, naturalLanguage, rangeOfInteger, resolution, uriScheme attributes support this predicate.
    WITH-HOSTNAME "literal string"
    WITH-HOSTNAME "/regular expression/"
    Requires that at least one URI value contains a matching hostname.
    WITH-RESOURCE "literal string"
    WITH-RESOURCE "/regular expression/"
    Requires that at least one URI value contains a matching resource (including leading /).
    WITH-SCHEME "literal string"
    WITH-SCHEME "/regular expression/"
    Requires that at least one URI value contains a matching scheme.
    WITH-VALUE "literal string"
    Requires that at least one value of the EXPECT attribute matches the literal string. Comparisons are case-sensitive.
    WITH-VALUE <number
    WITH-VALUE =number
    WITH-VALUE >number
    WITH-VALUE number[,...,number]
    Requires that at least one value of the EXPECT attribute matches the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range.
    WITH-VALUE "false"
    WITH-VALUE "true"
    Requires that at least one value of the EXPECT attribute matches the boolean value given.
    WITH-VALUE "/regular expression/"
    Requires that at least one value of the EXPECT attribute matches the regular expression, which must conform to the POSIX regular expression syntax. Comparisons are case-sensitive.
    WITH-VALUE-FROM attribute-name
    Requires that the value(s) of the EXPECT attribute matches the value(s) in the specified attribute. For example, "EXPECT job-sheets WITH-VALUE-FROM job-sheets-supported" requires that the "job-sheets" value is listed as a value of the "job-sheets-supported" attribute.

    Status Predicates

    The following predicates are understood following the STATUS test directive:
    DEFINE-MATCH variable-name
    Defines the variable to "1" when the STATUS matches. A side-effect of this predicate is that this STATUS will never fail a test.
    DEFINE-NO-MATCH variable-name
    Defines the variable to "1" when the STATUS does not match. A side-effect of this predicate is that this STATUS will never fail a test.
    IF-DEFINED variable-name
    Makes the STATUS apply only if the specified variable is defined.
    IF-NOT-DEFINED variable-name
    Makes the STATUS apply only if the specified variable is not defined.
    REPEAT-LIMIT number

    Specifies the maximum number of times to repeat. The default value is 1000.
    REPEAT-MATCH
    REPEAT-NO-MATCH
    Specifies that the current test should be repeated when the response status-code matches or does not match the value specified by the STATUS directive.

    Operation Codes

    Operation codes correspond to the hexadecimal numbers (0xHHHH) and names from RFC 8011 and other IPP extension specifications. Here is a complete list of names supported by ipptool(8):
        Acknowledge-Document
        Acknowledge-Identify-Printer
        Acknowledge-Job
        Activate-Printer
        Add-Document-Images
        Allocate-Printer-Resources
        Cancel-Current-Job
        Cancel-Job
        Cancel-Jobs
        Cancel-My-Jobs
        Cancel-Resource
        Cancel-Subscription
        Close-Job
        Create-Job
        Create-Job-Subscriptions
        Create-Printer
        Create-Printer-Subscriptions
        Create-Resource
        Create-Resource-Subscriptions
        Create-System-Subscriptions
        CUPS-Accept-Jobs
        CUPS-Accept-Jobs
        CUPS-Add-Modify-Class
        CUPS-Add-Modify-Printer
        CUPS-Authenticate-Job
        CUPS-Create-Local-Printer
        CUPS-Delete-Class
        CUPS-Delete-Printer
        CUPS-Get-Classes
        CUPS-Get-Default
        CUPS-Get-Devices
        CUPS-Get-Document
        CUPS-Get-PPD
        CUPS-Get-PPDs
        CUPS-Get-Printers
        CUPS-Move-Job
        CUPS-Reject-Jobs
        CUPS-Set-Default
        Deactivate-Printer
        Deallocate-Printer-Resources
        Delete-Printer
        Deregister-Output-Device
        Disable-All-Printers
        Disable-Printer
        Enable-All-Printers
        Enable-Printer
        Fetch-Document
        Fetch-Job
        Get-Job-Attributes
        Get-Jobs
        Get-Next-Document-Data
        Get-Notifications
        Get-Output-Device-Attributes
        Get-Printer-Attributes
        Get-Printer-Support-Files
        Get-Printer-Supported-Values
        Get-Printers
        Get-Subscription-Attributes
        Get-Subscriptions
        Get-System-Attributes
        Get-System-Supported-Values
        Hold-Job
        Hold-New-Jobs
        Identify-Printer
        Install-Resource
        Pause-All-Printers
        Pause-All-Printers-After-Current-Job
        Pause-Printer
        Pause-Printer-After-Current-Job
        Print-Job
        Print-URI
        Promote-Job
        Purge-Jobs
        Register-Output-Device
        Release-Held-New-Jobs
        Release-Job
        Renew-Subscription
        Reprocess-Job
        Restart-Job
        Restart-Printer
        Restart-System
        Resubmit-Job
        Resume-All-Printers
        Resume-Job
        Resume-Printer
        Schedule-Job-After
        Send-Document
        Send-Hardcopy-Document
        Send-Notifications
        Send-Resource-Data
        Send-URI
        Set-Job-Attributes
        Set-Printer-Attributes
        Set-Resource-Attributes
        Set-System-Attributes
        Shutdown-All-Printers
        Shutdown-One-Printer
        Shutdown-Printer
        Startup-All-Printers
        Startup-One-Printer
        Startup-Printer
        Suspend-Current-Job
        Update-Active-Jobs
        Update-Document-Status
        Update-Job-Status
        Update-Output-Device-Attributes
        Validate-Document
        Validate-Job
    

    Status Codes

    Status codes correspond to the hexadecimal numbers (0xHHHH) and names from RFC 8011 and other IPP extension specifications. Here is a complete list of the names supported by ipptool(8):
        client-error-account-authorization-failed
        client-error-account-closed
        client-error-account-info-needed
        client-error-account-limit-reached
        client-error-attributes-not-settable
        client-error-attributes-or-values-not-supported
        client-error-bad-request
        client-error-charset-not-supported
        client-error-compression-error
        client-error-compression-not-supported
        client-error-conflicting-attributes
        client-error-document-access-error
        client-error-document-format-error
        client-error-document-format-not-supported
        client-error-document-password-error
        client-error-document-permission-error
        client-error-document-security-error
        client-error-document-unprintable-error
        client-error-forbidden
        client-error-gone
        client-error-ignored-all-notifications
        client-error-ignored-all-subscriptions
        client-error-not-authenticated
        client-error-not-authorized
        client-error-not-fetchable
        client-error-not-found
        client-error-not-possible
        client-error-print-support-file-not-found
        client-error-request-entity-too-large
        client-error-request-value-too-long
        client-error-timeout
        client-error-too-many-subscriptions
        client-error-uri-scheme-not-supported
        cups-error-account-authorization-failed
        cups-error-account-closed
        cups-error-account-info-needed
        cups-error-account-limit-reached
        cups-see-other
        redirection-other-site
        server-error-busy
        server-error-device-error
        server-error-internal-error
        server-error-job-canceled
        server-error-multiple-document-jobs-not-supported
        server-error-not-accepting-jobs
        server-error-operation-not-supported
        server-error-printer-is-deactivated
        server-error-service-unavailable
        server-error-temporary-error
        server-error-version-not-supported
        successful-ok
        successful-ok-but-cancel-subscription
        successful-ok-conflicting-attributes
        successful-ok-events-complete
        successful-ok-ignored-notifications
        successful-ok-ignored-or-substituted-attributes
        successful-ok-ignored-subscriptions
        successful-ok-too-many-events
    

    Tags

    Value and group tags correspond to the names from RFC 8011 and other IPP extension specifications. Here are the group tags:
        document-attributes-tag
        event-notification-attributes-tag
        job | job-attributes-tag
        operation | operation-attributes-tag
        printer | printer-attributes-tag
        resource-attributes-tag
        subscription-attributes-tag
        system-attributes-tag
        unsupported-attributes-tag
    

    Here are the value tags:

        admin-define
        boolean
        charset
        collection | begCollection
        dateTime
        default
        delete-attribute
        enum
        integer
        keyword
        language | naturalLanguage
        mimetype | mimeMediaType
        name | nameWithLanguage | nameWithoutLanguage
        no-value
        not-settable
        octetString
        rangeOfInteger
        resolution
        text | textWithLanguage | textWithoutLanguage
        unknown
        unsupported
        uri
        uriScheme
    

    Variables

    The ipptool(8) program maintains a list of variables that can be used in any literal string or attribute value by specifying "$variable-name". Aside from variables defined using the -d option or DEFINE directive, the following pre-defined variables are available:
    $$
    Inserts a single "$" character.
    $ENV[name]
    Inserts the value of the named environment variable, or an empty string if the environment variable is not defined.
    $date-current
    Inserts the current date and time using the ISO-8601 format ("yyyy-mm-ddThh:mm:ssZ").
    $date-start
    Inserts the starting date and time using the ISO-8601 format ("yyyy-mm-ddThh:mm:ssZ").
    $filename
    Inserts the filename provided to ipptool(8) with the -f option.
    $filetype
    Inserts the MIME media type for the filename provided to ipptool(8) with the -f option.
    $hostname
    Inserts the hostname from the URI provided to ipptool(8).
    $job-id
    Inserts the last "job-id" attribute value returned in a test response or 0 if no "job-id" attribute has been seen.
    $job-uri
    Inserts the last "job-uri" attribute value returned in a test response or an empty string if no "job-uri" attribute has been seen.
    $notify-subscription-id
    Inserts the last "notify-subscription-id" attribute value returned in a test response or 0 if no "notify-subscription-id" attribute has been seen.
    $port
    Inserts the port number from the URI provided to ipptool(8).
    $resource
    Inserts the resource path from the URI provided to ipptool(8).
    $scheme
    Inserts the scheme from the URI provided to ipptool(8).
    $uri
    Inserts the URI provided to ipptool(8).
    $uriuser
    Inserts the username from the URI provided to ipptool(8), if any.
    $user
    Inserts the current user's login name.

    See Also

    ipptool(1), IANA IPP Registry (https://www.iana.org/assignments/ipp-registrations), PWG Internet Printing Protocol Workgroup (https://www.pwg.org/ipp), RFC 8011 (https://datatracker.ietf.org/doc/html/rfc8011)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ipptool.html0000644000175000017500000001726114502571342017212 0ustar zdohnalzdohnal ipptool(1)

    ipptool(1)

    Name

    ipptool - perform internet printing protocol requests

    Synopsis

    ipptool [ --help ] [ --ippserver filename ] [ --stop-after-include-error ] [ --version ] [ -4 ] [ -6 ] [ -C ] [ -E ] [ -I ] [ -L ] [ -P filename.plist ] [ -S ] [ -T seconds ] [ -V version ] [ -X ] [ -c ] [ -d name=value ] [ -f filename ] [ -h ] [ -i seconds ] [ -j ] [ -n repeat-count ] [ -q ] [ -t ] [ -v] printer-uri testfile [ ... testfile ]

    Description

    ipptool sends IPP requests to the specified printer-uri and tests and/or displays the results. Each named testfile defines one or more requests, including the expected response status, attributes, and values. Output is either a plain text, formatted text, CSV, or XML report on the standard output, with a non-zero exit status indicating that one or more tests have failed. The testfile format is described in ipptoolfile(5).

    Options

    The following options are recognized by ipptool:
    --help
    Shows program help.
    --ippserver filename
    Specifies that the test results should be written to the named ippserver attributes file.
    --stop-after-include-error
    Tells ipptool to stop if an error occurs in an included file. Normally ipptool will continue with subsequent tests after the INCLUDE directive.
    --version
    Shows the version of ipptool being used.
    -4
    Specifies that ipptool must connect to the printer or server using IPv4.
    -6
    Specifies that ipptool must connect to the printer or server using IPv6.
    -C
    Specifies that requests should be sent using the HTTP/1.1 "Transfer-Encoding: chunked" header, which is required for conformance by all versions of IPP. The default is to use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files.
    -E
    Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header.
    -I
    Specifies that ipptool will continue past errors.
    -L
    Specifies that requests should be sent using the HTTP/1.0 "Content-Length:" header, which is required for conformance by all versions of IPP. The default is to use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files.
    -P filename.plist
    Specifies that the test results should be written to the named XML (Apple plist) file in addition to the regular test report (-t). This option is incompatible with the -i (interval) and -n (repeat-count) options.
    -S
    Forces (dedicated) TLS encryption when connecting to the server.
    -T seconds
    Specifies a timeout for IPP requests in seconds.
    -V version
    Specifies the default IPP version to use: 1.0, 1.1, 2.0, 2.1, or 2.2. If not specified, version 1.1 is used.
    -X
    Specifies that XML (Apple plist) output is desired instead of the plain text report. This option is incompatible with the -i (interval) and -n (repeat-count) options.
    -c
    Specifies that CSV (comma-separated values) output is desired instead of the plain text output.
    -d name=value
    Defines the named variable.
    -f filename
    Defines the default request filename for tests.
    -h
    Validate HTTP response headers.
    -i seconds
    Specifies that the (last) testfile should be repeated at the specified interval. This option is incompatible with the -X (XML plist output) option.
    -j
    Specifies that ipptool will produce JSON output.
    -l
    Specifies that plain text output is desired.
    -n repeat-count
    Specifies that the (last) testfile should be repeated the specified number of times. This option is incompatible with the -X (XML plist output) option.
    -q
    Be quiet and produce no output.
    -t
    Specifies that CUPS test report output is desired instead of the plain text output.
    -v
    Specifies that all request and response attributes should be output in CUPS test mode (-t). This is the default for XML output.

    Exit Status

    The ipptool program returns 0 if all tests were successful and 1 otherwise.

    Files

    The following standard files are available:
        color.jpg
        create-printer-subscription.test
        document-a4.pdf
        document-a4.ps
        document-letter.pdf
        document-letter.ps
        get-completed-jobs.test
        get-jobs.test
        get-notifications.test
        get-printer-attributes.test
        get-subscriptions.test
        gray.jpg
        ipp-1.1.test
        ipp-2.0.test
        ipp-2.1.test
        ipp-2.2.test
        ipp-everywhere.test
        onepage-a4.pdf
        onepage-a4.ps
        onepage-letter.pdf
        onepage-letter.ps
        print-job.test
        print-job-deflate.test
        print-job-gzip.test
        testfile.jpg
        testfile.pcl
        testfile.pdf
        testfile.ps
        testfile.txt
        validate-job.test
    

    Conforming To

    The ipptool program is unique to CUPS and conforms to the Internet Printing Protocol up to version 2.2.

    Examples

    Get a list of completed jobs for "myprinter":
        ipptool ipp://localhost/printers/myprinter get-completed-jobs.test
    

    Send email notifications to "user@example.com" when "myprinter" changes:

        ipptool -d recipient=mailto:user@example.com \
            ipp://localhost/printers/myprinter create-printer-subscription.test
    

    See Also

    ipptoolfile(5), IANA IPP Registry (https://www.iana.org/assignments/ipp-registrations), PWG Internet Printing Protocol Workgroup (https://www.pwg.org/ipp) RFC 8011 (https://datatracker.ietf.org/doc/html/rfc8011),

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ippfind.html0000644000175000017500000002342514502571342017154 0ustar zdohnalzdohnal ippfind(1)

    ippfind(1)

    Name

    ippfind - find internet printing protocol printers

    Synopsis

    ippfind [ options ] regtype[,subtype][.domain.] ... [ expression ... ]
    ippfind [ options ] name[.regtype[.domain.]] ... [ expression ... ]
    ippfind --help
    ippfind --version

    Description

    ippfind finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.

    Registration Types

    ippfind supports the following registration types:
    _http._tcp
    HyperText Transport Protocol (HTTP, RFC 2616)
    _https._tcp
    Secure HyperText Transport Protocol (HTTPS, RFC 2818)
    _ipp._tcp
    Internet Printing Protocol (IPP, RFC 2911)
    _ipps._tcp
    Secure Internet Printing Protocol (IPPS, draft)
    _printer._tcp
    Line Printer Daemon (LPD, RFC 1179)

    Expressions

    ippfind supports expressions much like the find(1) utility. However, unlike find(1), ippfind uses POSIX regular expressions instead of shell filename matching patterns. If --exec, -l, --ls, -p, --print, --print-name, -q, --quiet, -s, or -x is not specified, ippfind adds --print to print the service URI of anything it finds. The following expressions are supported:
    -d regex
    --domain regex
    True if the domain matches the given regular expression.
    --false
    Always false.
    -h regex
    --host regex
    True is the hostname matches the given regular expression.
    -l
    --ls
    Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional find "-ls" output for HTTP URLs. The result is true if the URI is accessible, false otherwise.
    --local
    True if the service is local to this computer.
    -N name
    --literal-name name
    True if the service instance name matches the given name.
    -n regex
    --name regex
    True if the service instance name matches the given regular expression.
    --path regex
    True if the URI resource path matches the given regular expression.
    -P number[-number]
    --port number[-number]
    True if the port matches the given number or range.
    -p
    --print
    Prints the URI if the result of previous expressions is true. The result is always true.
    -q
    --quiet
    Quiet mode - just returns the exit codes below.
    -r
    --remote
    True if the service is not local to this computer.
    -s
    --print-name
    Prints the service instance name if the result of previous expressions is true. The result is always true.
    --true
    Always true.
    -t key
    --txt key
    True if the TXT record contains the named key.
    --txt-key regex
    True if the TXT record contains the named key and matches the given regular expression.
    -u regex
    --uri regex
    True if the URI matches the given regular expression.
    -x utility [ argument ... ] ;
    --exec utility [ argument ... ] ;
    Executes the specified program if the current result is true. "{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.

    Expressions may also contain modifiers:

    ( expression )
    Group the result of expressions.
    ! expression
    --not expression
    Unary NOT of the expression.
    expression expression
    expression --and expression
    Logical AND of expressions.
    expression --or expression
    Logical OR of expressions.

    Substitutions

    The substitutions for "{foo}" in -e and --exec are:
    {service_domain}
    Domain name, e.g., "example.com.", "local.", etc.
    {service_hostname}
    Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
    {service_name}
    Service instance name, e.g., "My Fine Printer".
    {service_port}
    Port number for server, typically 631 for IPP and 80 for HTTP.
    {service_regtype}
    DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
    {service_scheme}
    URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
    {}
    {service_uri}
    URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
    {txt_key}
    Value of TXT record key (lowercase).

    Options

    ippfind supports the following options:
    --help
    Show program help.
    --version
    Show program version.
    -4
    Use IPv4 when listing.
    -6
    Use IPv6 when listing.
    -T seconds
    Specify find timeout in seconds. If 1 or less, ippfind stops as soon as it thinks it has found everything. The default timeout is 1 second.
    -V version
    Specifies the IPP version when listing. Supported values are "1.1", "2.0", "2.1", and "2.2".

    Exit Status

    ippfind returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.

    Environment

    When executing a program, ippfind sets the following environment variables for the matching service registration:
    IPPFIND_SERVICE_DOMAIN
    Domain name, e.g., "example.com.", "local.", etc.
    IPPFIND_SERVICE_HOSTNAME
    Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
    IPPFIND_SERVICE_NAME
    Service instance name, e.g., "My Fine Printer".
    IPPFIND_SERVICE_PORT
    Port number for server, typically 631 for IPP and 80 for HTTP.
    IPPFIND_SERVICE_REGTYPE
    DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
    IPPFIND_SERVICE_SCHEME
    URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
    IPPFIND_SERVICE_URI
    URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
    IPPFIND_TXT_fIKEYfR
    Values of TXT record KEY (uppercase).

    Examples

    To show the status of all registered IPP printers on your network, run:
        ippfind --ls
    
    
    Similarly, to send a PostScript test page to every PostScript printer, run:
        ippfind --txt-pdl application/postscript --exec ipptool
          -f onepage-letter.ps '{}' print-job.test \;
    

    See Also

    ipptool(1)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ippeveprinter.html0000644000175000017500000002403214502571342020412 0ustar zdohnalzdohnal ippeveprinter(1)

    ippeveprinter(1)

    Name

    ippeveprinter - an ipp everywhere printer application for cups

    Synopsis

    ippeveprinter [ --help ] [ --no-web-forms ] [ --pam-service service ] [ --version ] [ -2 ] [ -A ] [ -D device-uri ] [ -F output-type/subtype ] [ -K keypath ] [ -M manufacturer ] [ -P filename.ppd ] [ -V ipp-version ] [ -a filename.conf ] [ -c command ] [ -d spool-directory ] [ -f type/subtype[,...] ] [ -i iconfile.png ] [ -k ] [ -l location ] [ -m model ] [ -n hostname ] [ -p port ] [ -r subtype[,subtype] ] [ -s speed[,color-speed] ] [ -v[vvv] ] service-name

    Description

    ippeveprinter is a simple Internet Printing Protocol (IPP) server conforming to the IPP Everywhere (PWG 5100.14) specification. It can be used to test client software or act as a very basic print server that runs a command for every job that is printed.

    Options

    The following options are recognized by ippeveprinter:
    --help
    Show program usage.
    --no-web-forms
    Disable the web interface forms used to update the media and supply levels.
    --pam-service service
    Set the PAM service name. The default service is "cups".
    --version
    Show the CUPS version.
    -2
    Report support for two-sided (duplex) printing.
    -A
    Enable authentication for the created printer. ippeveprinter uses PAM to authenticate HTTP Basic credentials.
    -D device-uri
    Set the device URI for print output. The URI can be a filename, directory, or a network socket URI of the form "socket://ADDRESS[:PORT]" (where the default port number is 9100). When specifying a directory, ippeveprinter will create an output file using the job ID and name.
    -F output-type/subtype[,...]
    Specifies the output MIME media type. The default is "application/postscript" when the -P option is specified.
    -M manufacturer
    Set the manufacturer of the printer. The default is "Example".
    -P filename.ppd
    Load printer attributes from the specified PPD file. This option is typically used in conjunction with the ippeveps(7) printer command ("-c ippeveps").
    -V 1.1
    -V 2.0
    Specifies the maximum IPP version to report. 2.0 is the default.
    -c command
    Run the specified command for each document that is printed. If "command" is not an absolute path ("/path/to/command"), ippeveprinter looks for the command in the "command" subdirectory of the CUPS binary directory, typically /usr/lib/cups/command or /usr/libexec/cups/command. The cups-config(1) command can be used to discover the correct binary directory ("cups-config --serverbin"). In addition, the CUPS_SERVERBIN environment variable can be used to override the default location of this directory - see the cups(1) man page for more details.
    -d spool-directory
    Specifies the directory that will hold the print files. The default is a directory under the user's current temporary directory.
    -f type/subtype[,...]
    Specifies a list of MIME media types that the server will accept. The default depends on the type of printer created.
    -i iconfile.png
    Specifies the printer icon file for the server. The file must be a PNG format image. The default is an internally-provided PNG image.
    -k
    Keeps the print documents in the spool directory rather than deleting them.
    -l location
    Specifies the human-readable location string that is reported by the server. The default is the empty string.
    -m model
    Specifies the model name of the printer. The default is "Printer".
    -n hostname
    Specifies the hostname that is reported by the server. The default is the name returned by the hostname(1) command.
    -p port
    Specifies the port number to listen on. The default is a user-specific number from 8000 to 8999.
    -roff
    Turns off DNS-SD service advertisements entirely.
    -r subtype[,subtype]
    Specifies the DNS-SD subtype(s) to advertise. Separate multiple subtypes with a comma. The default is "_print".
    -s speed[,color-speed]
    Specifies the printer speed in pages per minute. If two numbers are specified and the second number is greater than zero, the server will report support for color printing. The default is "10,0".
    -v[vvv]
    Be (very) verbose when logging activity to standard error.

    Exit Status

    The ippeveprinter program returns 1 if it is unable to process the command-line arguments or register the IPP service. Otherwise ippeveprinter will run continuously until terminated.

    Conforming To

    The ippeveprinter program is unique to CUPS and conforms to the IPP Everywhere (PWG 5100.14) specification.

    Environment

    ippeveprinter adds environment variables starting with "IPP_" for all IPP Job attributes in the print request. For example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute.

    In addition, all IPP "xxx-default" and "pwg-xxx" Printer Description attributes are added to the environment. For example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute.

    Enumerated values are converted to their keyword equivalents. For example, a "print-quality" Job Template attribute with a enum value of 3 will become the "IPP_PRINT_QUALITY" environment variable with a value of "draft". This string conversion only happens for standard Job Template attributes, currently "finishings", "orientation-requested", and "print-quality".

    Finally, the "CONTENT_TYPE" environment variable contains the MIME media type of the document being printed, the "DEVICE_URI" environment variable contains the device URI as specified with the "-D" option, the "OUTPUT_FORMAT" environment variable contains the output MIME media type, and the "PPD" environment variable contains the PPD filename as specified with the "-P" option.

    Command Output

    Unless they communicate directly with a printer, print commands send printer-ready data to the standard output.

    Print commands can send messages back to ippeveprinter on the standard error with one of the following prefixes:

    ATTR: attribute=value[ attribute=value]
    Sets the named attribute(s) to the given values. Currently only the "job-impressions" and "job-impressions-completed" Job Status attributes and the "marker-xxx", "printer-alert", "printer-alert-description", "printer-supply", and "printer-supply-description" Printer Status attributes can be set.
    DEBUG: Debugging message
    Logs a debugging message if at least two -v's have been specified.
    ERROR: Error message
    Logs an error message and copies the message to the "job-state-message" attribute.
    INFO: Informational message
    Logs an informational/progress message if -v has been specified and copies the message to the "job-state-message" attribute unless an error has been reported.
    STATE: keyword[,keyword,...]
    Sets the printer's "printer-state-reasons" attribute to the listed keywords.
    STATE: -keyword[,keyword,...]
    Removes the listed keywords from the printer's "printer-state-reasons" attribute.
    STATE: +keyword[,keyword,...]
    Adds the listed keywords to the printer's "printer-state-reasons" attribute.

    Examples

    Run ippeveprinter with a service name of My Cool Printer:
        ippeveprinter "My Cool Printer"
    

    Run the file(1) command whenever a job is sent to the server:

        ippeveprinter -c /usr/bin/file "My Cool Printer"
    

    See Also

    ippevepcl(7), ippeveps(7), PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-ippevepcl.html0000644000175000017500000000370014502571342017504 0ustar zdohnalzdohnal ippevepcl/ps(7)

    ippevepcl/ps(7)

    Name

    ippevepcl/ps - pcl and postscript print commands for ippeveprinter

    Synopsis

    ippevepcl [ filename ]
    ippeveps [ filename ]

    Description

    ippevepcl and ippeveps are print commands for ippeveprinter(1). As with all print commands, these commands read either the filename specified on the command-line or from the standard input. Output is sent to the standard output. Status and progress messages are sent to the standard error.

    ippevepcl prints to B&W HP PCL laser printers and supports printing of HP PCL (application/vnd.hp-pcl), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files.

    ippeveps print to Adobe PostScript printers and supports printing of PDF (application/pdf), PostScript (application/postscript), JPEG (image/jpeg), PWG Raster (image/pwg-raster), and Apple Raster (image/urf) print files. Printer-specific commands are read from a supplied PPD file. If no PPD file is specified, generic commands suitable for any Level 2 or Level 3 PostScript printer are used instead to specify duplex printing and media size.

    Exit Status

    These programs return 1 on error and 0 on success.

    Environment

    These program inherit the environment provided by the ippeveprinter program.

    See Also

    ippeveprinter(8)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-filter.html0000644000175000017500000002731514502571342017012 0ustar zdohnalzdohnal filter(7)

    filter(7)

    Name

    filter - cups file conversion filter interface

    Synopsis

    filter job user title num-copies options [ filename ]
    #include <cups/cups.h>
    
    ssize_t cupsBackChannelRead(char *buffer, size_t bytes,
                                double timeout);
    
    cups_sc_status_t cupsSideChannelDoRequest(cups_sc_command_t command,
                                              char *data, int *datalen,
                                              double timeout);
    
    #include <cups/ppd.h>
    
    const char *cupsGetOption(const char *name, int num_options,
                     cups_option_t *options);
    
    int cupsMarkOptions(ppd_file_t *ppd, int num_options,
                        cups_option_t *options);
    
    int cupsParseOptions(const char *arg, int num_options,
                         cups_option_t **options);
    
    ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *keyword);
    
    void ppdMarkDefaults(ppd_file_t *ppd);
    
    ppd_file_t *ppdOpenFile(const char *filename);
    

    Description

    The CUPS filter interface provides a standard method for adding support for new document types or printers to CUPS. Each filter is capable of converting from one or more input formats to another format that can either be printed directly or piped into another filter to get it to a printable format.

    Filters 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 as required by the file format. All output MUST be sent to the standard output. Filters MUST NOT attempt to communicate directly with the printer, other processes, or other services.

    The command name (argv[0]) is set to the name of the destination printer but is also available in the PRINTER environment variable.

    Options

    Options are passed in argv[5] and are encoded from the corresponding IPP attributes used when the job was submitted. Use the cupsParseOptions() function to load the options into a cups_option_t array and the cupsGetOption() function to get the value of a specific attribute. Be careful to look for common aliases of IPP attributes such as "landscape" for the IPP "orientation-requested" attribute.

    Options passed on the command-line typically do not include the default choices the printer's PPD file. Use the ppdMarkDefaults() and cupsMarkOptions() functions in the CUPS library to apply the options to the PPD defaults and map any IPP attributes to the corresponding PPD options. Use ppdFindMarkedChoice() to get the user-selected choice for a PPD option. For example, a filter might use the following code to determine the current value of the Duplex PPD option:

        ppd_file_t *ppd = ppdOpenFile(getenv("PPD"));
        cups_option_t *options = NULL;
        int num_options = cupsParseOptions(argv[5], 0, &options);
    
        ppdMarkDefaults(ppd);
        cupsMarkOptions(ppd, num_options, options);
    
        ppd_choice_t *choice = ppdFindMarkedChoice(ppd, "Duplex");
    

    Raster filters should use option choices set through the raster page header, as those reflect the options in effect for a given page. Options specified on the command-line determine the default values for the entire job, which can be overridden on a per-page basis.

    Log Messages

    Messages sent to the standard error are generally stored in the printer's "printer-state-message" attribute and the current ErrorLog file. Each line begins with a standard prefix:
    ALERT: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "alert" log level.
    ATTR: attribute=value [ ... attribute=value]
    Sets the named job or printer attribute(s). The following job attributes can be set: "job-media-progress". The following printer attributes can be set: "auth-info-required", "marker-colors", "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", "marker-names", "marker-types", "printer-alert", and "printer-alert-description".
    CRIT: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "critical" log level.
    DEBUG: message
    Adds the specified message to the current ErrorLog using the "debug" log level. DEBUG messages are never stored in the "printer-state-message" attribute.
    DEBUG2: message

    Adds the specified message to the current ErrorLog using the "debug2" log level. DEBUG2 messages are never stored in the "printer-state-message" attribute.
    EMERG: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "emergency" log level.
    ERROR: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "error" log level.
    INFO: message
    Sets the "printer-state-message" attribute. If the current LogLevel is set to "debug2", also adds the specified message to the current ErrorLog using the "info" log level.
    NOTICE: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "notice" log level.
    PAGE: page-number #-copies
    PAGE: total #-pages
    Adds an entry to the current PageLog. The first form adds #-copies to the "job-media-sheets-completed" attribute. The second form sets the "job-media-sheets-completed" attribute to #-pages.
    PPD: Keyword=Value [ ... KeywordN=Value ]
    Sets the named keywords in the printer's PPD file. This is typically used to update default option keywords such as DefaultPageSize and the various installable options in the PPD file.
    STATE: printer-state-reason [ ... printer-state-reason ]
    STATE: + printer-state-reason [ ... printer-state-reason ]
    STATE: - printer-state-reason [ ... printer-state-reason ]
    Sets, adds, or removes "printer-state-reason" keywords for the current queue. Typically this is used to indicate media, ink, and toner conditions on a printer.
    WARNING: message
    Sets the "printer-state-message" attribute and adds the specified message to the current ErrorLog using the "warning" log level.

    Environment Variables

    The following environment variables are defined by the CUPS server when executing the filter:
    CHARSET
    The default text character set, typically "utf-8".
    CLASS
    When a job is submitted to a printer class, contains the name of the destination printer class. Otherwise this environment variable will not be set.
    CONTENT_TYPE
    The MIME media type associated with the submitted job file, for example "application/postscript".
    CUPS_CACHEDIR
    The directory where semi-persistent cache files can be found and stored.
    CUPS_DATADIR
    The directory where data files can be found.
    CUPS_FILETYPE
    The type of file being printed: "job-sheet" for a banner page and "document" for a regular print file.
    CUPS_MAX_MESSAGE
    The maximum size of a message sent to stderr, including any leading prefix and the trailing newline.
    CUPS_SERVERROOT
    The root directory of the server.
    FINAL_CONTENT_TYPE
    The MIME media type associated with the output destined for the printer, for example "application/vnd.cups-postscript".
    LANG
    The default language locale (typically C or en).
    PATH
    The standard execution path for external programs that may be run by the filter.
    PPD
    The full pathname of the PostScript Printer Description (PPD) file for this printer.
    PRINTER
    The name of the printer.
    RIP_CACHE
    The recommended amount of memory to use for Raster Image Processors (RIPs).
    SOFTWARE
    The name and version number of the server (typically CUPS/major.minor).
    TZ
    The timezone of the server.
    USER
    The user executing the filter, typically "lp" or "root"; consult the cups-files.conf file for the current setting.

    Conforming To

    While the filter interface is compatible with System V interface scripts, CUPS does not support System V interface scripts.

    Notes

    CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    CUPS filters are not meant to be run directly by the user. Aside from the legacy System V interface issues (argv[0] is the printer name), CUPS filters also expect specific environment variables and file descriptors, and typically run in a user session that (on macOS) has additional restrictions that affect how it runs. Unless you are a developer and know what you are doing, please do not run filters directly. Instead, use the cupsfilter(8) program to use the appropriate filters to do the conversions you need.

    See Also

    backend(7), cups(1), cups-files.conf(5), cupsd(8), cupsfilter(8),
    CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupstestppd.html0000644000175000017500000001170214502571342020074 0ustar zdohnalzdohnal cupstestppd(1)

    cupstestppd(1)

    Name

    cupstestppd - test conformance of ppd files (deprecated)

    Synopsis

    cupstestppd [ -I category ] [ -R rootdir ] [ -W category ] [ -q ] [ -r ] [ -v[v] ] filename.ppd[.gz] [ ... filename.ppd[.gz] ]
    cupstestppd [ -R rootdir ] [ -W category ] [ -q ] [ -r ] [ -v[v] ] -

    Description

    cupstestppd tests the conformance of PPD files to the Adobe PostScript Printer Description file format specification version 4.3. It can also be used to list the supported options and available fonts in a PPD file. The results of testing and any other output are sent to the standard output.

    The first form of cupstestppd tests one or more PPD files on the command-line. The second form tests the PPD file provided on the standard input.

    Options

    cupstestppd supports the following options:
    -I filename
    Ignores all PCFileName warnings.
    -I filters
    Ignores all filter errors.
    -I profiles
    Ignores all profile errors.
    -R rootdir
    Specifies an alternate root directory for the filter, pre-filter, and other support file checks.
    -W constraints
    Report all UIConstraint errors as warnings.
    -W defaults
    Except for size-related options, report all default option errors as warnings.
    -W filters
    Report all filter errors as warnings.
    -W profiles
    Report all profile errors as warnings.
    -W sizes
    Report all media size errors as warnings.
    -W translations
    Report all translation errors as warnings.
    -W all
    Report all of the previous errors as warnings.
    -W none
    Report all of the previous errors as errors.
    -q
    Specifies that no information should be displayed.
    -r
    Relaxes the PPD conformance requirements so that common whitespace, control character, and formatting problems are not treated as hard errors.
    -v
    Specifies that detailed conformance testing results should be displayed rather than the concise PASS/FAIL/ERROR status.
    -vv
    Specifies that all information in the PPD file should be displayed in addition to the detailed conformance testing results.

    The -q, -v, and -vv options are mutually exclusive.

    Exit Status

    cupstestppd returns zero on success and non-zero on error. The error codes are as follows:
    1
    Bad command-line arguments or missing PPD filename.
    2
    Unable to open or read PPD file.
    3
    The PPD file contains format errors that cannot be skipped.
    4
    The PPD file does not conform to the Adobe PPD specification.

    Examples

    The following command will test all PPD files under the current directory and print the names of each file that does not conform:
        find . -name \*.ppd \! -exec cupstestppd -q '{}' \; -print
    
    
    The next command tests all PPD files under the current directory and print detailed conformance testing results for the files that do not conform:
        find . -name \*.ppd \! -exec cupstestppd -q '{}' \; \
            -exec cupstestppd -v '{}' \;
    

    Notes

    PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    lpadmin(8), CUPS Online Help (http://localhost:631/help), Adobe PostScript Printer Description File Format Specification, Version 4.3.

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsfilter.html0000644000175000017500000001105114502571342017673 0ustar zdohnalzdohnal cupsfilter(8)

    cupsfilter(8)

    Name

    cupsfilter - convert a file to another format using cups filters (deprecated)

    Synopsis

    cupsfilter [ --list-filters ] [ -D ] [ -U user ] [ -c config-file ] [ -d printer ] [ -e ] [ -i mime/type ] [ -j job-id[,N] ] [ -m mime/type ] [ -n copies ] [ -o name=value ] [ -p filename.ppd ] [ -t title ] [ -u ] filename

    Description

    cupsfilter is a front-end to the CUPS filter subsystem which allows you to convert a file to a specific format, just as if you had printed the file through CUPS. By default, cupsfilter generates a PDF file. The converted file is sent to the standard output.

    Options

    --list-filters
    Do not actually run the filters, just print the filters used to stdout.
    -D
    Delete the input file after conversion.
    -U user
    Specifies the username passed to the filters. The default is the name of the current user.
    -c config-file
    Uses the named cups-files.conf configuration file.
    -d printer
    Uses information from the named printer.
    -e
    Use every filter from the PPD file.
    -i mime/type
    Specifies the source file type. The default file type is guessed using the filename and contents of the file.
    -j job-id[,N]
    Converts document N from the specified job. If N is omitted, document 1 is converted.
    -m mime/type
    Specifies the destination file type. The default file type is application/pdf. Use printer/foo to convert to the printer format defined by the filters in the PPD file.
    -n copies
    Specifies the number of copies to generate.
    -o name=value
    Specifies options to pass to the CUPS filters.
    -p filename.ppd
    Specifies the PPD file to use.
    -t title
    Specifies the document title.
    -u
    Delete the PPD file after conversion.

    Exit Status

    cupsfilter returns a non-zero exit status on any error.

    Environment

    All of the standard cups(1) environment variables affect the operation of cupsfilter.

    Files

    /etc/cups/cups-files.conf
    /etc/cups/*.convs
    /etc/cups/*.types
    /usr/share/cups/mime/*.convs
    /usr/share/cups/mime/*.types
    

    Notes

    CUPS printer drivers, filters, and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    Unlike when printing, filters run using the cupsfilter command use the current user and security session. This may result in different output or unexpected behavior.

    Example

    The following command will generate a PDF preview of job 42 for a printer named "myprinter" and save it to a file named "preview.pdf":
        cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
    

    See Also

    cups(1), cupsd.conf(5), filter(7), mime.convs(7), mime.types(7), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsenable.html0000644000175000017500000000631714502571342017645 0ustar zdohnalzdohnal cupsenable(8)

    cupsenable(8)

    Name

    cupsdisable, cupsenable - stop/start printers and classes

    Synopsis

    cupsdisable [ -E ] [ -U username ] [ -c ] [ -h server[:port] ] [ -r reason ] [ --hold ] destination(s)
    cupsenable [ -E ] [ -U username ] [ -c ] [ -h server[:port] ] [ --release ] destination(s)

    Description

    cupsenable starts the named printers or classes while cupsdisable stops the named printers or classes.

    Options

    The following options may be used:
    -E
    Forces encryption of the connection to the server.
    -U username
    Uses the specified username when connecting to the server.
    -c
    Cancels all jobs on the named destination.
    -h server[:port]
    Uses the specified server and port.
    --hold
    Holds remaining jobs on the named printer. Useful for allowing the current job to complete before performing maintenance.
    -r "reason"
    Sets the message associated with the stopped state. If no reason is specified then the message is set to "Reason Unknown".
    --release
    Releases pending jobs for printing. Use after running cupsdisable with the --hold option to resume printing.

    Conforming To

    Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.

    The System V versions of these commands are disable and enable, respectively. They have been renamed to avoid conflicts with the bash(1) built-in commands of the same names.

    The CUPS versions of disable and enable may ask the user for an access password depending on the printing system configuration. This differs from the System V versions which require the root user to execute these commands.

    See Also

    cupsaccept(8), cupsreject(8), cancel(1), lp(1), lpadmin(8), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsd.html0000644000175000017500000000740714502571342016643 0ustar zdohnalzdohnal cupsd(8)

    cupsd(8)

    Name

    cupsd - cups scheduler

    Synopsis

    cupsd [ -c cupsd.conf ] [ -f ] [ -F ] [ -h ] [ -l ] [ -s cups-files.conf ] [ -t ]

    Description

    cupsd is the scheduler for CUPS. It implements a printing system based upon the Internet Printing Protocol, version 2.1, and supports most of the requirements for IPP Everywhere. If no options are specified on the command-line then the default configuration file /etc/cups/cupsd.conf will be used.

    Options

    -c cupsd.conf
    Uses the named cupsd.conf configuration file.
    -f
    Run cupsd in the foreground; the default is to run in the background as a "daemon".
    -F
    Run cupsd in the foreground but detach the process from the controlling terminal and current directory. This is useful for running cupsd from init(8).
    -h
    Shows the program usage.
    -l
    This option is passed to cupsd when it is run from launchd(8) or systemd(8).
    -s cups-files.conf
    Uses the named cups-files.conf configuration file.
    -t
    Test the configuration file for syntax errors.

    Files

    /etc/cups/classes.conf
    /etc/cups/cups-files.conf
    /etc/cups/cupsd.conf
    /usr/share/cups/mime/mime.convs
    /usr/share/cups/mime/mime.types
    /etc/cups/printers.conf
    /etc/cups/subscriptions.conf
    

    Conforming To

    cupsd implements all of the required IPP/2.1 attributes and operations. It also implements several CUPS-specific administrative operations.

    Examples

    Run cupsd in the background with the default configuration file:
        cupsd
    
    
    Test a configuration file called test.conf:
        cupsd -t -c test.conf
    
    
    Run cupsd in the foreground with a test configuration file called test.conf:
        cupsd -f -c test.conf
    
    

    See Also

    backend(7), classes.conf(5), cups(1), cups-files.conf(5), cups-lpd(8), cupsd.conf(5), cupsd-helper(8), cupsd-logs(8), filter(7), launchd(8), mime.convs(5), mime.types(5), printers.conf(5), systemd(8), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsd.conf.html0000644000175000017500000011733014502571342017564 0ustar zdohnalzdohnal cupsd.conf(5)

    cupsd.conf(5)

    Name

    cupsd.conf - server configuration file for cups

    Description

    The cupsd.conf file configures the CUPS scheduler, cupsd(8). It is normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character.

    Top-level Directives

    The following top-level directives are understood by cupsd(8):
    AccessLogLevel config
    AccessLogLevel actions
    AccessLogLevel all
    Specifies the logging level for the AccessLog file. The "config" level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated. The "actions" level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for "config". The "all" level logs all requests. The default access log level is "actions".
    AutoPurgeJobs Yes
    AutoPurgeJobs No

    Specifies whether to purge job history data automatically when it is no longer required for quotas. The default is "No".
    BrowseDNSSDSubTypes_subtype[,...]
    Specifies a list of Bonjour sub-types to advertise for each shared printer. For example, "BrowseDNSSDSubTypes _cups,_print" will tell network clients that both CUPS sharing and IPP Everywhere are supported. The default is "_cups" which is necessary for printer sharing to work between systems using CUPS.
    BrowseLocalProtocols all
    BrowseLocalProtocols dnssd
    BrowseLocalProtocols none
    Specifies which protocols to use for local printer sharing. The default is "dnssd" on systems that support Bonjour and "none" otherwise.
    BrowseWebIF Yes
    BrowseWebIF No

    Specifies whether the CUPS web interface is advertised. The default is "No".
    Browsing Yes
    Browsing No

    Specifies whether shared printers are advertised. The default is "No".
    DefaultAuthType Basic

    Specifies the default type of authentication to use. The default is "Basic".
    DefaultEncryption Never
    DefaultEncryption IfRequested
    DefaultEncryption Required
    Specifies whether encryption will be used for authenticated requests. The default is "Required".
    DefaultLanguage locale
    Specifies the default language to use for text and web content. The default is "en".
    DefaultPaperSize Auto
    DefaultPaperSize None
    DefaultPaperSize sizename
    Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size. Specific size names are typically "Letter" or "A4". The default is "Auto". Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name.
    DefaultPolicy policy-name
    Specifies the default access policy to use. The default access policy is "default".
    DefaultShared Yes
    DefaultShared No
    Specifies whether local printers are shared by default. The default is "Yes".
    DirtyCleanInterval seconds
    Specifies the delay for updating of configuration and state files. A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds. The default value is "30".
    DNSSDHostNamehostname.example.com
    Specifies the fully-qualified domain name for the server that is used for Bonjour sharing. The default is typically the server's ".local" hostname.
    ErrorPolicy abort-job
    Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.
    ErrorPolicy retry-current-job
    Specifies that a failed print job should be retried immediately unless otherwise specified for the printer.
    ErrorPolicy retry-job
    Specifies that a failed print job should be retried at a later time unless otherwise specified for the printer.
    ErrorPolicy stop-printer
    Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
    FilterLimit limit
    Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems. A limit of 0 disables filter limiting. An average print to a non-PostScript printer needs a filter limit of about 200. A PostScript printer needs about half that (100). Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time. The default limit is "0".
    FilterNice nice-value
    Specifies the scheduling priority ( nice(8) value) of filters that are run to print a job. The nice value ranges from 0, the highest priority, to 19, the lowest priority. The default is 0.
    HostNameLookups On
    HostNameLookups Off
    HostNameLookups Double
    Specifies whether to do reverse lookups on connecting clients. The "Double" setting causes cupsd(8) to verify that the hostname resolved from the address matches one of the addresses returned for that hostname. Double lookups also prevent clients with unregistered addresses from connecting to your server. The default is "Off" to avoid the potential server performance problems with hostname lookups. Only set this option to "On" or "Double" if absolutely required.
    IdleExitTimeout seconds
    Specifies the length of time to wait before shutting down due to inactivity. The default is "60" seconds. Note: Only applicable when cupsd(8) is run on-demand (e.g., with -l).
    JobKillDelay seconds
    Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job. The default is "30".
    JobRetryInterval seconds
    Specifies the interval between retries of jobs in seconds. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "30".
    JobRetryLimit count
    Specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job" or "retry-current-job". The default is "5".
    KeepAlive Yes
    KeepAlive No
    Specifies whether to support HTTP keep-alive connections. The default is "Yes".
    <Limit operation ...> ... </Limit>
    Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATION NAMES".
    <Limit method ...> ... </Limit>
    <LimitExcept method ...> ... </LimitExcept>
    Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHOD NAMES".
    LimitRequestBody size
    Specifies the maximum size of print files, IPP requests, and HTML form data. The default is "0" which disables the limit check.
    Listen ipv4-address:port
    Listen [ipv6-address]:port
    Listen *:port
    Listen /path/to/domain/socket
    Listens to the specified address and port or domain socket path for connections. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks. Note: "Listen *:port" and "Port port" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
    <Location /path> ... </Location>
    Specifies access control for the named location. Paths are documented below in the section "LOCATION PATHS".
    LogDebugHistory number
    Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting.
    LogLevel none
    LogLevel emerg
    LogLevel alert
    LogLevel crit
    LogLevel error
    LogLevel warn
    LogLevel notice
    LogLevel info
    LogLevel debug
    LogLevel debug2
    Specifies the level of logging for the ErrorLog file. The value "none" stops all logging while "debug2" logs everything. The default is "warn".
    LogTimeFormat standard
    LogTimeFormat usecs
    Specifies the format of the date and time in the log files. The value "standard" is the default and logs whole seconds while "usecs" logs microseconds.
    MaxClients number
    Specifies the maximum number of simultaneous clients that are allowed by the scheduler. The default is "100".
    MaxClientsPerHost number
    Specifies the maximum number of simultaneous clients that are allowed from a single address. The default is the MaxClients value.
    MaxCopies number
    Specifies the maximum number of copies that a user can print of each job. The default is "9999".
    MaxHoldTime seconds
    Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled. The default is "0" which disables cancellation of held jobs.
    MaxJobs number
    Specifies the maximum number of simultaneous jobs that are allowed. Set to "0" to allow an unlimited number of jobs. The default is "500".
    MaxJobsPerPrinter number
    Specifies the maximum number of simultaneous jobs that are allowed per printer. The default is "0" which allows up to MaxJobs jobs per printer.
    MaxJobsPerUser number
    Specifies the maximum number of simultaneous jobs that are allowed per user. The default is "0" which allows up to MaxJobs jobs per user.
    MaxJobTime seconds
    Specifies the maximum time a job may take to print before it is canceled. Set to "0" to disable cancellation of "stuck" jobs. The default is "10800" (3 hours).
    MaxLogSize size
    Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation. The default is "1048576" (1MB).
    MaxSubscriptions number
    Specifies the maximum number of simultaneous event subscriptions that are allowed. Set to "0" to allow an unlimited number of subscriptions. The default is "100".
    MaxSubscriptionsPerJob number
    Specifies the maximum number of simultaneous event subscriptions that are allowed per job. The default is "0" which allows up to MaxSubscriptions subscriptions per job.
    MaxSubscriptionsPerPrinter number
    Specifies the maximum number of simultaneous event subscriptions that are allowed per printer. The default is "0" which allows up to MaxSubscriptions subscriptions per printer.
    MaxSubscriptionsPerUser number
    Specifies the maximum number of simultaneous event subscriptions that are allowed per user. The default is "0" which allows up to MaxSubscriptions subscriptions per user.
    MultipleOperationTimeout seconds
    Specifies the maximum amount of time to allow between files in a multiple file print job. The default is "900" (15 minutes).
    <Policy name> ... </Policy>
    Specifies access control for the named policy.
    Port number
    Listens to the specified port number for connections.
    PreserveJobFiles Yes
    PreserveJobFiles No
    PreserveJobFiles seconds
    Specifies whether job files (documents) are preserved after a job is printed. If a numeric value is specified, job files are preserved for the indicated number of seconds after printing. The default is "86400" (preserve 1 day).
    PreserveJobHistory Yes
    PreserveJobHistory No
    PreserveJobHistory seconds
    Specifies whether the job history is preserved after a job is printed. If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing. If "Yes", the job history is preserved until the MaxJobs limit is reached. The default is "Yes".
    ReadyPaperSizes sizename[,...]
    Specifies a list of potential paper sizes that are reported as "ready" (loaded). The actual list will only contain sizes that each printer supports. The default is "Letter,Legal,Tabloid,4x6,Env10" when the default paper size is "Letter" and "A3,A4,A5,A6,EnvDL" otherwise. Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names.
    ReloadTimeout seconds
    Specifies the amount of time to wait for job completion before restarting the scheduler. The default is "30".
    ServerAdmin email-address
    Specifies the email address of the server administrator. The default value is "root@ServerName".
    ServerAlias hostname [ ... hostname ]
    ServerAlias *
    The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces. Using the special name "*" can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall. If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*".
    ServerName hostname
    Specifies the fully-qualified hostname of the server. The default is the value reported by the hostname(1) command.
    ServerTokens None
    ServerTokens ProductOnly
    ServerTokens Major
    ServerTokens Minor
    ServerTokens Minimal
    ServerTokens OS
    ServerTokens Full
    Specifies what information is included in the Server header of HTTP responses. "None" disables the Server header. "ProductOnly" reports "CUPS". "Major" reports "CUPS/major IPP/2". "Minor" reports "CUPS/major.minor IPP/2.1". "Minimal" reports "CUPS/major.minor.patch IPP/2.1". "OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1". "Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1". The default is "Minimal".
    SSLListen ipv4-address:port
    SSLListen [ipv6-address]:port
    SSLListen *:port
    Listens on the specified address and port for encrypted connections.
    SSLOptions [AllowDH] [AllowRC4] [AllowSSL3] [DenyCBC] [DenyTLS1.0] [MaxTLS1.0] [MaxTLS1.1] [MaxTLS1.2] [MaxTLS1.3] [MinTLS1.0] [MinTLS1.1] [MinTLS1.2] [MinTLS1.3]
    SSLOptions None
    Sets encryption options (only in /etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when Allow options are used. Security is enhanced when Deny options are used. The AllowDH option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). The AllowRC4 option enables the 128-bit RC4 cipher suites, which are required for some older clients. The AllowSSL3 option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. The DenyCBC option disables all CBC cipher suites. The DenyTLS1.0 option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1. The MinTLS options set the minimum TLS version to support. The MaxTLS options set the maximum TLS version to support. Not all operating systems support TLS 1.3 at this time.
    SSLPort port
    Listens on the specified port for encrypted connections.
    StrictConformance Yes
    StrictConformance No
    Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications. The default is "No".
    Timeout seconds
    Specifies the HTTP request timeout. The default is "900" (15 minutes).
    WebInterface yes
    WebInterface no
    Specifies whether the web interface is enabled. The default is "No".

    Http Method Names

    The following HTTP methods are supported by cupsd(8):
    GET
    Used by a client to download icons and other printer resources and to access the CUPS web interface.
    HEAD
    Used by a client to get the type, size, and modification date of resources.
    OPTIONS
    Used by a client to establish a secure (SSL/TLS) connection.
    POST
    Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
    PUT
    Used by a client to upload configuration files.

    Ipp Operation Names

    The following IPP operations are supported by cupsd(8):
    CUPS-Accept-Jobs
    Allows a printer to accept new jobs.
    CUPS-Add-Modify-Class
    Adds or modifies a printer class.
    CUPS-Add-Modify-Printer
    Adds or modifies a printer.
    CUPS-Authenticate-Job
    Releases a job that is held for authentication.
    CUPS-Delete-Class
    Deletes a printer class.
    CUPS-Delete-Printer
    Deletes a printer.
    CUPS-Get-Classes
    Gets a list of printer classes.
    CUPS-Get-Default
    Gets the server default printer or printer class.
    CUPS-Get-Devices
    Gets a list of devices that are currently available.
    CUPS-Get-Document
    Gets a document file for a job.
    CUPS-Get-PPD
    Gets a PPD file.
    CUPS-Get-PPDs
    Gets a list of installed PPD files.
    CUPS-Get-Printers
    Gets a list of printers.
    CUPS-Move-Job
    Moves a job.
    CUPS-Reject-Jobs
    Prevents a printer from accepting new jobs.
    CUPS-Set-Default
    Sets the server default printer or printer class.
    Cancel-Job
    Cancels a job.
    Cancel-Jobs
    Cancels one or more jobs.
    Cancel-My-Jobs
    Cancels one or more jobs creates by a user.
    Cancel-Subscription
    Cancels a subscription.
    Close-Job
    Closes a job that is waiting for more documents.
    Create-Job
    Creates a new job with no documents.
    Create-Job-Subscriptions
    Creates a subscription for job events.
    Create-Printer-Subscriptions
    Creates a subscription for printer events.
    Get-Job-Attributes
    Gets information about a job.
    Get-Jobs
    Gets a list of jobs.
    Get-Notifications
    Gets a list of event notifications for a subscription.
    Get-Printer-Attributes
    Gets information about a printer or printer class.
    Get-Subscription-Attributes
    Gets information about a subscription.
    Get-Subscriptions
    Gets a list of subscriptions.
    Hold-Job
    Holds a job from printing.
    Hold-New-Jobs
    Holds all new jobs from printing.
    Pause-Printer
    Stops processing of jobs by a printer or printer class.
    Pause-Printer-After-Current-Job
    Stops processing of jobs by a printer or printer class after the current job is finished.
    Print-Job
    Creates a new job with a single document.
    Purge-Jobs
    Cancels one or more jobs and deletes the job history.
    Release-Held-New-Jobs
    Allows previously held jobs to print.
    Release-Job
    Allows a job to print.
    Renew-Subscription
    Renews a subscription.
    Restart-Job
    Reprints a job, if possible.
    Send-Document
    Adds a document to a job.
    Set-Job-Attributes
    Changes job information.
    Set-Printer-Attributes
    Changes printer or printer class information.
    Validate-Job
    Validates options for a new job.

    Location Paths

    The following paths are commonly used when configuring cupsd(8):
    /
    The path for all get operations (get-printers, get-jobs, etc.)
    /admin
    The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
    /admin/conf
    The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
    /admin/log
    The path for access to the CUPS log files (access_log, error_log, page_log)
    /classes
    The path for all printer classes
    /classes/name
    The resource for the named printer class
    /jobs
    The path for all jobs (hold-job, release-job, etc.)
    /jobs/id
    The path for the specified job
    /printers
    The path for all printers
    /printers/name
    The path for the named printer
    /printers/name.png
    The icon file path for the named printer
    /printers/name.ppd
    The PPD file path for the named printer

    Directives Valid Within Location And Limit Sections

    The following directives may be placed inside Location and Limit sections in the cupsd.conf file:
    Allow all
    Allow none
    Allow host.domain.com
    Allow *.domain.com
    Allow ipv4-address
    Allow ipv4-address/netmask
    Allow ipv4-address/mm
    Allow [ipv6-address]
    Allow [ipv6-address]/mm
    Allow @IF(name)
    Allow @LOCAL
    Allows access from the named hosts, domains, addresses, or interfaces. The @IF(name) form uses the current subnets configured for the named interface. The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not. The Order directive controls whether Allow lines are evaluated before or after Deny lines.
    AuthType None
    AuthType Basic
    AuthType Default
    Specifies the type of authentication required. The value "Default" corresponds to the DefaultAuthType value.
    Deny all
    Deny none
    Deny host.domain.com
    Deny *.domain.com
    Deny ipv4-address
    Deny ipv4-address/netmask
    Deny ipv4-address/mm
    Deny [ipv6-address]
    Deny [ipv6-address]/mm
    Deny @IF(name)
    Deny @LOCAL
    Denies access from the named hosts, domains, addresses, or interfaces. The @IF(name) form uses the current subnets configured for the named interface. The @LOCAL form uses the current subnets configured for all interfaces that are not point-to-point, for example Ethernet and Wi-Fi interfaces are used but DSL and VPN interfaces are not. The Order directive controls whether Deny lines are evaluated before or after Allow lines.
    Encryption IfRequested
    Encryption Never
    Encryption Required
    Specifies the level of encryption that is required for a particular location. The default value is "IfRequested".
    Order allow,deny
    Specifies that access is denied by default. Allow lines are then processed followed by Deny lines to determine whether a client may access a particular resource.
    Order deny,allow
    Specifies that access is allowed by default. Deny lines are then processed followed by Allow lines to determine whether a client may access a particular resource.
    Require group group-name [ group-name ... ]
    Specifies that an authenticated user must be a member of one of the named groups.
    Require user {user-name|@group-name} ...
    Specifies that an authenticated user must match one of the named users or be a member of one of the named groups. The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the cups-files.conf(5) file. The group name "@OWNER" corresponds to the owner of the resource, for example the person that submitted a print job. Note: The 'root' user is not special and must be granted privileges like any other user account.
    Require valid-user
    Specifies that any authenticated user is acceptable.
    Satisfy all
    Specifies that all Allow, AuthType, Deny, Order, and Require conditions must be satisfied to allow access.
    Satisfy any
    Specifies that any a client may access a resource if either the authentication (AuthType/Require) or address (Allow/Deny/Order) conditions are satisfied. For example, this can be used to require authentication only for remote accesses.

    Directives Valid Within Policy Sections

    The following directives may be placed inside Policy sections in the cupsd.conf file:
    JobPrivateAccess all
    JobPrivateAccess default
    JobPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM} ...
    Specifies an access list for a job's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. "@OWNER" maps to the job's owner. "@SYSTEM" maps to the groups listed for the SystemGroup directive in the cups-files.conf(5) file.
    JobPrivateValues all
    JobPrivateValues default
    JobPrivateValues none
    JobPrivateValues attribute-name [ ... attribute-name ]
    Specifies the list of job values to make private. The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
    SubscriptionPrivateAccess all
    SubscriptionPrivateAccess default
    SubscriptionPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM} ...
    Specifies an access list for a subscription's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. "@OWNER" maps to the job's owner. "@SYSTEM" maps to the groups listed for the SystemGroup directive in the cups-files.conf(5) file.
    SubscriptionPrivateValues all
    SubscriptionPrivateValues default
    SubscriptionPrivateValues none
    SubscriptionPrivateValues attribute-name [ ... attribute-name ]
    Specifies the list of subscription values to make private. The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".

    Deprecated Directives

    The following directives are deprecated and will be removed in a future release of CUPS:
    AuthType Negotiate
    Specifies Kerberos authentication is required.
    Classification banner

    Specifies the security classification of the server. Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions. The default is no classification banner.
    ClassifyOverride Yes
    ClassifyOverride No

    Specifies whether users may override the classification (cover page) of individual print jobs using the "job-sheets" option. The default is "No".
    DefaultAuthType Negotiate
    Specifies that Kerberos authentication is required by default.
    GSSServiceName name
    Specifies the service name when using Kerberos authentication. The default service name is "http."
    PageLogFormat format-string
    Specifies the format of PageLog lines. Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally. The following percent sequences are recognized:
        "%%" inserts a single percent character.
        "%{name}" inserts the value of the specified IPP attribute.
        "%C" inserts the number of copies for the current page.
        "%P" inserts the current page number.
        "%T" inserts the current date and time in common log format.
        "%j" inserts the job ID.
        "%p" inserts the printer name.
        "%u" inserts the username.
    
    
    The default is the empty string, which disables page logging. The string "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}" creates a page log with the standard items. Use "%{job-impressions-completed}" to insert the number of pages (sides) that were printed, or "%{job-media-sheets-completed}" to insert the number of sheets that were printed.

    Notes

    File, directory, and user configuration directives that used to be allowed in the cupsd.conf file are now stored in the cups-files.conf(5) file instead in order to prevent certain types of privilege escalation attacks.

    The scheduler MUST be restarted manually after making changes to the cupsd.conf file. On Linux this is typically done using the systemctl(8) command, while on macOS the launchctl(8) command is used instead.

    The @LOCAL macro name can be confusing since the system running cupsd often belongs to a different set of subnets from its clients.

    Conforming To

    The cupsd.conf file format is based on the Apache HTTP Server configuration file format.

    Examples

    Log everything with a maximum log file size of 32 megabytes:
        AccessLogLevel all
        LogLevel debug2
        MaxLogSize 32m
    
    
    Require authentication for accesses from outside the 10. network:
        <Location />
        Order allow,deny
        Allow from 10./8
        AuthType Basic
        Require valid-user
        Satisfy any
        </Location>
    

    See Also

    classes.conf(5), cups-files.conf(5), cupsd(8), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2020-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsd-logs.html0000644000175000017500000002367514502571342017612 0ustar zdohnalzdohnal cupsd-logs(5)

    cupsd-logs(5)

    Name

    cupsd-logs - cupsd log files (access_log, error_log, and page_log)

    Description

    cupsd(8) normally maintains three log files: access_log to track requests that are submitted to the scheduler, error_log to track progress and errors, and page_log to track pages that are printed. Configuration directives in cupsd.conf(5) and cups-files.conf(5) control what information is logged and where it is stored.

    Access Log File Format

    The access_log file lists each HTTP resource that is accessed by a web browser or client. Each line is in an extended version of the so-called "Common Log Format" used by many web servers and web reporting tools:
        host group user date-time "method resource version" status bytes
          ipp-operation ipp-status
    
    
    For example:
        10.0.1.2 - - [01/Dec/2005:21:50:28 +0000] "POST / HTTP/1.1" 200 317
          CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes
        localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1"
          200 0 - -
        localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1"
          200 157 CUPS-Get-Printers
          successful-ok-ignored-or-substituted-attributes
        localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1"
          200 1411 CUPS-Get-Devices -
        localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1"
          200 6667 - -
    
    
    The host field will normally only be an IP address unless you have enabled the HostNameLookups directive in the cupsd.conf file or if the IP address corresponds to your local machine.

    The group field always contains "-".

    The user field is the authenticated username of the requesting user. If no username and password is supplied for the request then this field contains "-".

    The date-time field is the date and time of the request in local time and is in the format "[DD/MON/YYYY:HH:MM:SS +ZZZZ]".

    The method field is the HTTP method used: "GET", "HEAD", "OPTIONS", "POST", or "PUT". "GET" requests are used to get files from the server, both for the web interface and to get configuration and log files. "HEAD" requests are used to get information about a resource prior to a "GET". "OPTIONS" requests are used to upgrade connections to TLS encryption. "POST" requests are used for web interface forms and IPP requests. "PUT" requests are used to upload configuration files.

    The resource field is the filename of the requested resource.

    The version field is the HTTP specification version used by the client. For CUPS clients this will always be "HTTP/1.1".

    The status field contains the HTTP result status of the request, as follows:

    200
    Successful operation.
    201
    File created/modified successfully.
    304
    The requested file has not changed.
    400
    Bad HTTP request; typically this means that you have a malicious program trying to access your server.
    401
    Unauthorized, authentication (username + password) is required.
    403
    Access is forbidden; typically this means that a client tried to access a file or resource they do not have permission to access.
    404
    The file or resource does not exist.
    405
    URL access method is not allowed; typically this means you have a web browser using your server as a proxy.
    413
    Request too large; typically this means that a client tried to print a file larger than the MaxRequestSize allows.
    426
    Upgrading to TLS-encrypted connection.
    500
    Server error; typically this happens when the server is unable to open/create a file - consult the error_log file for details.
    501
    The client requested encryption but encryption support is not enabled/compiled in.
    505
    HTTP version number not supported; typically this means that you have a malicious program trying to access your server.
  • The bytes field contains the number of bytes in the request. For POST requests the bytes field contains the number of bytes of non-IPP data that is received from the client.

    The ipp-operation field contains either "-" for non-IPP requests or the IPP operation name for POST requests containing an IPP request.

    The ipp-status field contains either "-" for non-IPP requests or the IPP status code name for POST requests containing an IPP response.

    Error Log File Format

    The error_log file lists messages from the scheduler - errors, warnings, etc. The LogLevel directive in the cupsd.conf(5) file controls which messages are logged:
        level date-time message
    
    
    For example:
        I [20/May/1999:19:18:28 +0000] [Job 1] Queued on 'DeskJet' by 'mike'.
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[0]="DeskJet"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[1]="1"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[2]="mike"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[3]="myjob"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[4]="1"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[5]="media=
          na_letter_8.5x11in sides=one-sided"
        D [20/May/1999:19:18:28 +0000] [Job 1] argv[6]="/var/spool/cups/
          d000001-001"
        I [20/May/1999:19:21:02 +0000] [Job 2] Queued on 'DeskJet' by 'mike'.
        I [20/May/1999:19:22:24 +0000] [Job 2] Canceled by 'mike'.
    
    
    The level field contains the type of message:
    A
    Alert message (LogLevel alert)
    C
    Critical error message (LogLevel crit)
    D
    Debugging message (LogLevel debug)
    d
    Detailed debugging message (LogLevel debug2)
    E
    Normal error message (LogLevel error)
    I
    Informational message (LogLevel info)
    N
    Notice message (LogLevel notice)
    W
    Warning message (LogLevel warn)
    X
    Emergency error message (LogLevel emerg)

    The date-time field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the access_log file.

    The message field contains a free-form textual message. Messages from job filters are prefixed with "[Job NNN]" where "NNN" is the job ID.

    Page Log File Format

    The page_log file lists the total number of pages (sheets) that are printed. By default, each line contains the following information:
        printer user job-id date-time total num-sheets job-billing
          job-originating-host-name job-name media sides
    
    
    For example the entry for a two page job called "myjob" might look like:
        DeskJet root 1 [20/May/1999:19:21:06 +0000] total 2 acme-123
          localhost myjob na_letter_8.5x11in one-sided
    
    
    The PageLogFormat directive in the cupsd.conf(5) file can be used to change this information.

    The printer field contains the name of the printer that printed the page. If you send a job to a printer class, this field will contain the name of the printer that was assigned the job.

    The user field contains the name of the user (the IPP requesting-user-name attribute) that submitted this file for printing.

    The job-id field contains the job number of the page being printed.

    The date-time field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the access_log file.

    The num-sheets field provides the total number of pages (sheets) that have been printed on for the job.

    The job-billing field contains a copy of the job-billing or job-account-id attributes provided with the IPP Create-Job or Print-Job requests or "-" if neither was provided.

    The job-originating-host-name field contains the hostname or IP address of the client that printed the job.

    The job-name field contains a copy of the job-name attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided.

    The media field contains a copy of the media or media-col/media-size attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided.

    The sides field contains a copy of the sides attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided.

    See Also

    cupsd(8), cupsd.conf(5), cups-files.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsd-helper.html0000644000175000017500000000606414502571342020116 0ustar zdohnalzdohnal cupsd-helper(8)

    cupsd-helper(8)

    Name

    cupsd-helper - cupsd helper programs (deprecated)

    Synopsis

    cups-deviced request-id limit user-id options
    cups-driverd cat ppd-name
    cups-driverd list request_id limit options
    cups-exec sandbox-profile [ -g group-id ] [ -n nice-value ] [ -u user-id ] /path/to/program argv0 ... argvN

    Description

    The cupsd-helper programs perform long-running operations on behalf of the scheduler, cupsd(8). The cups-deviced helper program runs each CUPS backend(7) with no arguments in order to discover the available printers.

    The cups-driverd helper program lists all available printer drivers, a subset of "matching" printer drivers, or a copy of a specific driver PPD file.

    The cups-exec helper program runs backends, filters, and other programs. On macOS these programs are run in a secure sandbox.

    Files

    The cups-driverd program looks for PPD and driver information files in the following directories:
        /Library/Printers
        /opt/share/ppd
        /System/Library/Printers
        /usr/local/share/ppd
        /usr/share/cups/drv
        /usr/share/cups/model
        /usr/share/ppd
    

    PPD files can be compressed using the gzip(1) program or placed in compressed tar(1) archives to further reduce their size.

    Driver information files must conform to the format defined in ppdcfile(5).

    Notes

    CUPS printer drivers, backends, and PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    backend(7), cups(1), cupsd(8), cupsd.conf(5), filter(7), ppdcfile(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsctl.html0000644000175000017500000000603614502571342017177 0ustar zdohnalzdohnal cupsctl(8)

    cupsctl(8)

    Name

    cupsctl - configure cupsd.conf options

    Synopsis

    cupsctl [ -h server[:port] ] [ -E ] [ -U username ] [ --[no-]debug-logging ] [ --[no-]remote-admin ] [ --[no-]remote-any ] [ --[no-]share-printers ] [ --[no-]user-cancel-any ] [ name=value ]

    Description

    cupsctl updates or queries the cupsd.conf file for a server. When no changes are requested, the current configuration values are written to the standard output in the format "name=value", one per line.

    Options

    The following options are recognized:
    -E
    Enables encryption on the connection to the scheduler.
    -U username
    Specifies an alternate username to use when authenticating with the scheduler.
    -h server[:port]
    Specifies the server address. Note: This option must occur before all others.
    --[no-]debug-logging
    Enables (disables) debug logging to the error_log file.
    --[no-]remote-admin
    Enables (disables) remote administration.
    --[no-]remote-any
    Enables (disables) printing from any address, e.g., the Internet.
    --[no-]share-printers
    Enables (disables) sharing of local printers with other computers.
    --[no-]user-cancel-any
    Allows (prevents) users to cancel jobs owned by others.

    Examples

    Display the current settings:
        cupsctl
    
    
    Enable debug logging:
        cupsctl --debug-logging
    
    
    Get the current debug logging state:
        cupsctl | grep '^_debug_logging' | awk -F= '{print $2}'
    
    
    Disable printer sharing:
        cupsctl --no-share-printers
    

    Known Issues

    You cannot set the Listen or Port directives using cupsctl.

    See Also

    cupsd.conf(5), cupsd(8),
    CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cupsaccept.html0000644000175000017500000000532614502571342017655 0ustar zdohnalzdohnal cupsaccept(8)

    cupsaccept(8)

    Name

    cupsaccept/cupsreject - accept/reject jobs sent to a destination

    Synopsis

    cupsaccept [ -E ] [ -U username ] [ -h hostname[:port] ] destination(s)
    cupsreject [ -E ] [ -U username ] [ -h hostname[:port] ] [ -r reason ] destination(s)

    Description

    The cupsaccept command instructs the printing system to accept print jobs to the specified destinations.

    The cupsreject command instructs the printing system to reject print jobs to the specified destinations. The -r option sets the reason for rejecting print jobs. If not specified, the reason defaults to "Reason Unknown".

    Options

    The following options are supported by both cupsaccept and cupsreject:
    -E
    Forces encryption when connecting to the server.
    -U username
    Sets the username that is sent when connecting to the server.
    -h hostname[:port]
    Chooses an alternate server.
    -r "reason"
    Sets the reason string that is shown for a printer that is rejecting jobs.

    Conforming To

    The cupsaccept and cupsreject commands correspond to the System V printing system commands "accept" and "reject", respectively. Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.

    Finally, the CUPS versions may ask the user for an access password depending on the printing system configuration.

    See Also

    cancel(1), cupsenable(8), lp(1), lpadmin(8), lpstat(1),
    CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups.html0000644000175000017500000002031414502571342016467 0ustar zdohnalzdohnal cups(1)

    cups(1)

    Name

    cups - a standards-based, open source printing system

    Description

    CUPS is the software you use to print from applications like word processors, email readers, photo editors, and web browsers. It converts the page descriptions produced by your application (put a paragraph here, draw a line there, and so forth) into something your printer can understand and then sends the information to the printer for printing.

    Now, since every printer manufacturer does things differently, printing can be very complicated. CUPS does its best to hide this from you and your application so that you can concentrate on printing and less on how to print. Generally, the only time you need to know anything about your printer is when you use it for the first time, and even then CUPS can often figure things out on its own.

    How Does It Work?

    The first time you print to a printer, CUPS creates a queue to keep track of the current status of the printer (everything OK, out of paper, etc.) and any pages you have printed. Most of the time the queue points to a printer connected directly to your computer via a USB port, however it can also point to a printer on your network, a printer on the Internet, or multiple printers depending on the configuration. Regardless of where the queue points, it will look like any other printer to you and your applications.

    Every time you print something, CUPS creates a job which contains the queue you are sending the print to, the name of the document you are printing, and the page descriptions. Job are numbered (queue-1, queue-2, and so forth) so you can monitor the job as it is printed or cancel it if you see a mistake. When CUPS gets a job for printing, it determines the best programs (filters, printer drivers, port monitors, and backends) to convert the pages into a printable format and then runs them to actually print the job.

    When the print job is completely printed, CUPS removes the job from the queue and moves on to any other jobs you have submitted. You can also be notified when the job is finished, or if there are any errors during printing, in several different ways.

    Where Do I Begin?

    The easiest way to start is by using the web interface to configure your printer. Go to "http://localhost:631" and choose the Administration tab at the top of the page. Click/press on the Add Printer button and follow the prompts.

    When you are asked for a username and password, enter your login username and password or the "root" username and password.

    After the printer is added you will be asked to set the default printer options (paper size, output mode, etc.) for the printer. Make any changes as needed and then click/press on the Set Default Options button to save them. Some printers also support auto-configuration - click/press on the Query Printer for Default Options button to update the options automatically.

    Once you have added the printer, you can print to it from any application. You can also choose Print Test Page from the maintenance menu to print a simple test page and verify that everything is working properly.

    You can also use the lpadmin(8) and lpinfo(8) commands to add printers to CUPS. Additionally, your operating system may include graphical user interfaces or automatically create printer queues when you connect a printer to your computer.

    How Do I Get Help?

    The OpenPrintingCUPS website (https://openprinting.github.io/cups) provides access to the cups and cups-devel mailing lists, additional documentation and resources, and a bug report database. Most vendors also provide online discussion forums to ask printing questions for your operating system of choice.

    Environment

    CUPS commands use the following environment variables to override the default locations of files and so forth. For security reasons, these environment variables are ignored for setuid programs:
    CUPS_ANYROOT
    Whether to allow any X.509 certificate root (Y or N).
    CUPS_CACHEDIR
    The directory where semi-persistent cache files can be found.
    CUPS_DATADIR
    The directory where data files can be found.
    CUPS_ENCRYPTION
    The default level of encryption (Always, IfRequested, Never, Required).
    CUPS_EXPIREDCERTS
    Whether to allow expired X.509 certificates (Y or N).
    CUPS_GSSSERVICENAME
    The Kerberos service name used for authentication.
    CUPS_SERVER
    The hostname/IP address and port number of the CUPS scheduler (hostname:port or ipaddress:port).
    CUPS_SERVERBIN
    The directory where server helper programs, filters, backend, etc. can be found.
    CUPS_SERVERROOT
    The root directory of the server.
    CUPS_STATEDIR
    The directory where state files can be found.
    CUPS_USER
    Specifies the name of the user for print requests.
    HOME
    Specifies the home directory of the current user.
    IPP_PORT
    Specifies the default port number for IPP requests.
    LOCALEDIR
    Specifies the location of localization files.
    LPDEST
    Specifies the default print queue (System V standard).
    PRINTER
    Specifies the default print queue (Berkeley standard).
    TMPDIR
    Specifies the location of temporary files.

    Files

    ~/.cups/client.conf
    ~/.cups/lpoptions
    

    Conforming To

    CUPS conforms to the Internet Printing Protocol version 2.1 and implements the Berkeley and System V UNIX print commands.

    Notes

    CUPS printer drivers, backends, and PPD files are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    cancel(1), client.conf(5), cupsctl(8), cupsd(8), lp(1), lpadmin(8), lpinfo(8), lpoptions(1), lpr(1), lprm(1), lpq(1), lpstat(1), CUPS Online Help (http://localhost:631/help), OpenPrinting CUPS Web Site (https://openprinting.github.io/cups), PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups-snmp.html0000644000175000017500000000572514502571342017453 0ustar zdohnalzdohnal cups-snmp(8)

    cups-snmp(8)

    Name

    snmp - cups snmp backend (deprecated)

    Synopsis

    /usr/lib/cups/backend/snmp ip-address-or-hostname
    /usr/libexec/cups/backend/snmp ip-address-or-hostname
    lpinfo -v --include-schemes snmp

    Description

    The DEPRECATED CUPS SNMP backend provides legacy discovery and identification of network printers using SNMPv1. When used for discovery through the scheduler, the backend will list all printers that respond to a broadcast SNMPv1 query with the "public" community name. Additional queries are then sent to printers that respond in order to determine the correct device URI, make and model, and other information needed for printing.

    In the first form, the SNMP backend is run directly by the user to look up the device URI and other information when you have an IP address or hostname. This can be used for programs that need to configure print queues where the user has supplied an address but nothing else.

    In the second form, the SNMP backend is run indirectly using the lpinfo(8) command. The output provides all printers detected via SNMP on the configured broadcast addresses. Note: no broadcast addresses are configured by default.

    Environment

    The DebugLevel value can be overridden using the CUPS_DEBUG_LEVEL environment variable. The MaxRunTime value can be overridden using the CUPS_MAX_RUN_TIME environment variable.

    Files

    The SNMP backend reads the /etc/cups/snmp.conf configuration file, if present, to set the default broadcast address, community name, and logging level.

    Notes

    The CUPS SNMP backend is deprecated and will no longer be supported in a future version of CUPS.

    Conforming To

    The CUPS SNMP backend uses the information from the Host, Printer, and Port Monitor MIBs along with some vendor private MIBs and intelligent port probes to determine the correct device URI and make and model for each printer.

    See Also

    backend(7), cups-snmp.conf(5), cupsd(8), lpinfo(8), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups-snmp.conf.html0000644000175000017500000000650014502571342020367 0ustar zdohnalzdohnal snmp.conf(5)

    snmp.conf(5)

    Name

    snmp.conf - snmp configuration file for cups (deprecated)

    Description

    The snmp.conf file configures how the standard CUPS network backends (http, https, ipp, ipps, lpd, snmp, and socket) access printer information using SNMPv1 and is normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character.

    The Community and DebugLevel directives are used by all backends. The remainder apply only to the SNMP backend - cups-snmp(8).

    Directives

    The following directives are understood by the CUPS network backends:
    Address @IF(name)
    Address @LOCAL
    Address address
    Sends SNMP broadcast queries (for discovery) to the specified address(es). There is no default for the broadcast address.
    Community name
    Specifies the community name to use. Only a single community name may be specified. The default community name is "public". If no name is specified, all SNMP functions are disabled.
    DebugLevel number
    Specifies the logging level from 0 (none) to 3 (everything). Typically only used for debugging (thus the name). The default debug level is 0.
    DeviceURI "regular expression" device-uri [... device-uri]
    Specifies one or more device URIs that should be used for a given make and model string. The regular expression is used to match the detected make and model, and the device URI strings must be of the form "scheme://%s[:port]/[path]", where "%s" represents the detected address or hostname. There are no default device URI matching rules.
    HostNameLookups on
    HostNameLookups off
    Specifies whether the addresses of printers should be converted to hostnames or left as numeric IP addresses. The default is "off".
    MaxRunTime seconds
    Specifies the maximum number of seconds that the SNMP backend will scan the network for printers. The default is 120 seconds (2 minutes).

    Notes

    CUPS backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    cups-snmp(8), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups-lpd.html0000644000175000017500000001125014502571342017243 0ustar zdohnalzdohnal cups-lpd(8)

    cups-lpd(8)

    Name

    cups-lpd - receive print jobs and report printer status to lpd clients (deprecated)

    Synopsis

    cups-lpd [ -h hostname[:port] ] [ -n ] [ -o option=value ]

    Description

    cups-lpd is the CUPS Line Printer Daemon ("LPD") mini-server that supports legacy client systems that use the LPD protocol. cups-lpd does not act as a standalone network daemon but instead operates using any of the Internet "super-servers" such as inetd(8), launchd(8), and systemd(8).

    Options

    -h hostname[:port]
    Sets the CUPS server (and port) to use.
    -n
    Disables reverse address lookups; normally cups-lpd will try to discover the hostname of the client via a reverse DNS lookup.
    -o name=value
    Inserts options for all print queues. Most often this is used to disable the "l" filter so that remote print jobs are filtered as needed for printing; the inetd(8) example below sets the "document-format" option to "application/octet-stream" which forces autodetection of the print file format.

    Conforming To

    cups-lpd does not enforce the restricted source port number specified in RFC 1179, as using restricted ports does not prevent users from submitting print jobs. While this behavior is different than standard Berkeley LPD implementations, it should not affect normal client operations.

    The output of the status requests follows RFC 2569, Mapping between LPD and IPP Protocols. Since many LPD implementations stray from this definition, remote status reporting to LPD clients may be unreliable.

    Errors

    Errors are sent to the system log.

    Files

    /etc/inetd.conf
    /etc/xinetd.d/cups-lpd
    /System/Library/LaunchDaemons/org.cups.cups-lpd.plist
    

    Notes

    The cups-lpd program is deprecated and will no longer be supported in a future feature release of CUPS.

    Performance

    cups-lpd performs well with small numbers of clients and printers. However, since a new process is created for each connection and since each process must query the printing system before each job submission, it does not scale to larger configurations. We highly recommend that large configurations use the native IPP support provided by CUPS instead.

    Security

    cups-lpd currently does not perform any access control based on the settings in cupsd.conf(5) or in the hosts.allow(5) or hosts.deny(5) files used by TCP wrappers. Therefore, running cups-lpd on your server will allow any computer on your network (and perhaps the entire Internet) to print to your server.

    While xinetd(8) has built-in access control support, you should use the TCP wrappers package with inetd(8) to limit access to only those computers that should be able to print through your server.

    cups-lpd is not enabled by the standard CUPS distribution. Please consult with your operating system vendor to determine whether it is enabled by default on your system.

    Example

    If you are using inetd(8), add the following line to the inetd.conf file to enable the cups-lpd mini-server:
        printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd \
            -o document-format=application/octet-stream
    
    

    CUPS includes configuration files for launchd(8), systemd(8), and xinetd(8). Simply enable the cups-lpd service using the corresponding control program.

    See Also

    cups(1), cupsd(8), inetd(8), launchd(8), xinetd(8), CUPS Online Help (http://localhost:631/help), RFC 2569

    Copyright

    Copyright © 2020-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups-files.conf.html0000644000175000017500000003057114502571342020521 0ustar zdohnalzdohnal cups-files.conf(5)

    cups-files.conf(5)

    Name

    cups-files.conf - file and directory configuration file for cups

    Description

    The cups-files.conf file configures the files and directories used by the CUPS scheduler, cupsd(8). It is normally located in the /etc/cups directory.

    Each line in the file can be a configuration directive, a blank line, or a comment. Configuration directives typically consist of a name and zero or more values separated by whitespace. The configuration directive name and values are case-insensitive. Comment lines start with the # character.

    Directives

    The following directives are understood by cupsd(8):
    AccessLog
    AccessLog filename
    AccessLog stderr
    AccessLog syslog
    Defines the access log filename. Specifying a blank filename disables access log generation. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string "%s", for example:
        AccessLog /var/log/cups/%s-access_log
    
    
    The default is "/var/log/cups/access_log".
    CacheDir directory
    Specifies the directory to use for long-lived temporary (cache) files. The default is "/var/spool/cups/cache" or "/var/cache/cups" depending on the platform.
    ConfigFilePerm mode
    Specifies the permissions for all configuration files that the scheduler writes. The default is "0644" on macOS and "0640" on all other operating systems.

    Note: The permissions for the printers.conf file are currently masked to only allow access from the scheduler user (typically root). This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system. There is no way to disable this security feature.

    CreateSelfSignedCerts yes
    CreateSelfSignedCerts no
    Specifies whether the scheduler automatically creates self-signed certificates for client connections using TLS. The default is yes.
    DataDir path
    Specifies the directory where data files can be found. The default is usually "/usr/share/cups".
    DocumentRoot directory
    Specifies the root directory for the CUPS web interface content. The default is usually "/usr/share/doc/cups".
    ErrorLog
    ErrorLog filename
    ErrorLog stderr
    ErrorLog syslog
    Defines the error log filename. Specifying a blank filename disables error log generation. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string "%s", for example:
        ErrorLog /var/log/cups/%s-error_log
    
    
    The default is "/var/log/cups/error_log".
    FatalErrors none
    FatalErrors all -kind [ ... -kind ]
    FatalErrors kind [ ... kind ]
    Specifies which errors are fatal, causing the scheduler to exit. The default is "config". The kind strings are:
    none
    No errors are fatal.
    all
    All of the errors below are fatal.
    browse
    Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon.
    config
    Configuration file syntax errors are fatal.
    listen
    Listen or Port errors are fatal, except for IPv6 failures on the loopback or "any" addresses.
    log
    Log file creation or write errors are fatal.
    permissions
    Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions.
    Group group-name-or-number
    Specifies the group name or ID that will be used when executing external programs. The default group is operating system specific but is usually "lp" or "nobody".
    LogFileGroup group-name-or-number
    Specifies the group name or ID that will be used for log files. The default group is operating system specific but is usually "lp" or "nobody".
    LogFilePerm mode
    Specifies the permissions of all log files that the scheduler writes. The default is "0644".
    PageLog [ filename ]
    PageLog stderr
    PageLog syslog
    Defines the page log filename. The value "stderr" causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value "syslog" causes log entries to be sent to the system log daemon. Specifying a blank filename disables page log generation. The server name may be included in filenames using the string "%s", for example:
        PageLog /var/log/cups/%s-page_log
    
    
    The default is "/var/log/cups/page_log".
    PassEnv variable [ ... variable ]
    Passes the specified environment variable(s) to child processes. Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
    RemoteRoot username
    Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is "remroot".
    RequestRoot directory
    Specifies the directory that contains print jobs and other HTTP request data. The default is "/var/spool/cups".
    Sandboxing relaxed
    Sandboxing strict
    Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler. The default is "strict". This directive is currently only used/supported on macOS.
    ServerBin directory
    Specifies the directory containing the backends, CGI programs, filters, helper programs, notifiers, and port monitors. The default is "/usr/lib/cups" or "/usr/libexec/cups" depending on the platform.
    ServerKeychain path
    Specifies the location of TLS certificates and private keys. The default is "/Library/Keychains/System.keychain" on macOS and "/etc/cups/ssl" on all other operating systems. macOS uses its keychain database to store certificates and keys while other platforms use separate files in the specified directory, *.crt for PEM-encoded certificates and *.key for PEM-encoded private keys.
    ServerRoot directory
    Specifies the directory containing the server configuration files. The default is "/etc/cups".
    SetEnv variable value
    Set the specified environment variable to be passed to child processes. Note: the standard CUPS filter and backend environment variables cannot be overridden using this directive.
    StateDir directory
    Specifies the directory to use for PID and local certificate files. The default is "/var/run/cups" or "/etc/cups" depending on the platform.
    SyncOnClose Yes
    SyncOnClose No
    Specifies whether the scheduler calls fsync(2) after writing configuration or state files.
    SystemGroup group-name [ ... group-name ]
    Specifies the group(s) to use for @SYSTEM group authentication. The default contains "admin", "lpadmin", "root", "sys", and/or "system".
    TempDir directory
    Specifies the directory where short-term temporary files are stored. The default is "/var/spool/cups/tmp".
    User username
    Specifies the user name or ID that is used when running external programs. The default is "lp".

    Deprecated Directives

    The following directives are deprecated and will be removed from a future version of CUPS:
    FileDevice Yes
    FileDevice No
    Specifies whether the file pseudo-device can be used for new printer queues. The URI "file:///dev/null" is always allowed. File devices cannot be used with "raw" print queues - a PPD file is required. The specified file is overwritten for every print job. Writing to directories is not supported.
    Printcap filename
    Specifies a file that is filled with a list of local print queues.
    PrintcapFormat bsd
    PrintcapFormat plist
    PrintcapFormat solaris
    Specifies the format to use for the Printcap file. "bsd" is the historical LPD printcap file format. "plist" is the Apple plist file format. "solaris" is the historical Solaris LPD printcap file format.

    Notes

    The scheduler MUST be restarted manually after making changes to the cups-files.conf file. On Linux this is typically done using the systemctl(8) command, while on macOS the launchctl(8) command is used instead.

    See Also

    classes.conf(5), cups(1), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2020-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cups-config.html0000644000175000017500000000702514502571342017736 0ustar zdohnalzdohnal cups-config(1)

    cups-config(1)

    Name

    cups-config - get cups api, compiler, directory, and link information (deprecated).

    Synopsis

    cups-config --api-version
    cups-config --build
    cups-config --cflags
    cups-config --datadir
    cups-config --help
    cups-config --ldflags
    cups-config [ --image ] [ --static ] --libs
    cups-config --serverbin
    cups-config --serverroot
    cups-config --version

    Description

    The cups-config command allows application developers to determine the necessary command-line options for the compiler and linker, as well as the installation directories for filters, configuration files, and drivers. All values are reported to the standard output. Note: This command is deprecated and will be removed in a future version of CUPS. The pkg-config(1) command should be used instead.

    Options

    The cups-config command accepts the following command-line options:
    --api-version
    Reports the current API version (major.minor).
    --build
    Reports a system-specific build number.
    --cflags
    Reports the necessary compiler options.
    --datadir
    Reports the default CUPS data directory.
    --help
    Reports the program usage message.
    --ldflags
    Reports the necessary linker options.
    --libs
    Reports the necessary libraries to link to.
    --serverbin
    Reports the default CUPS binary directory, where filters and backends are stored.
    --serverroot
    Reports the default CUPS configuration file directory.
    --static
    When used with --libs, reports the static libraries instead of the default (shared) libraries.
    --version
    Reports the full version number of the CUPS installation (major.minor.patch).

    Examples

    Show the currently installed version of CUPS:
        cups-config --version
    
    
    Compile a simple one-file CUPS filter:
        cc `cups-config --cflags --ldflags` -o filter filter.c \
            `cups-config --libs`
    

    Deprecated Options

    The following options are deprecated but continue to work for backwards compatibility:
    --image
    Formerly used to add the CUPS imaging library to the list of libraries.

    See Also

    cups(1), pkg-config(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-client.conf.html0000644000175000017500000001572114502571342017725 0ustar zdohnalzdohnal client.conf(5)

    client.conf(5)

    Name

    client.conf - client configuration file for cups (deprecated on macos)

    Description

    The client.conf file configures the CUPS client and is normally located in the /etc/cups and/or ~/.cups directories. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character.

    Note: Starting with macOS 10.7, this file is only used by command-line and X11 applications plus the IPP backend. The ServerName directive is not supported on macOS at all. Starting with macOS 10.12, all applications can access these settings in the /Library/Preferences/org.cups.PrintingPrefs.plist file instead. See the NOTES section below for more information.

    Directives

    The following directives are understood by the client. Consult the online help for detailed descriptions:
    AllowAnyRoot Yes
    AllowAnyRoot No
    Specifies whether to allow TLS with certificates that have not been signed by a trusted Certificate Authority. The default is "Yes".
    AllowExpiredCerts Yes
    AllowExpiredCerts No
    Specifies whether to allow TLS with expired certificates. The default is "No".
    DigestOptions DenyMD5
    DigestOptions None
    Specifies HTTP Digest authentication options. DenyMD5 disables support for the original MD5 hash algorithm.
    Encryption IfRequested
    Encryption Never
    Encryption Required
    Specifies the level of encryption that should be used.
    GSSServiceName name
    Specifies the Kerberos service name that is used for authentication, typically "host", "http", or "ipp". CUPS adds the remote hostname ("name@server.example.com") for you. The default name is "http".
    ServerName hostname-or-ip-address[:port]
    ServerName /domain/socket
    Specifies the address and optionally the port to use when connecting to the server. Note: This directive is not supported on macOS 10.7 or later.
    ServerName hostname-or-ip-address[:port]/version=1.1
    Specifies the address and optionally the port to use when connecting to a server running CUPS 1.3.12 and earlier.
    SSLOptions [AllowDH] [AllowRC4] [AllowSSL3] [DenyCBC] [DenyTLS1.0] [MaxTLS1.0] [MaxTLS1.1] [MaxTLS1.2] [MaxTLS1.3] [MinTLS1.0] [MinTLS1.1] [MinTLS1.2] [MinTLS1.3]
    SSLOptions None
    Sets encryption options (only in /etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when Allow options are used. Security is enhanced when Deny options are used. The AllowDH option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). The AllowRC4 option enables the 128-bit RC4 cipher suites, which are required for some older clients. The AllowSSL3 option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. The DenyCBC option disables all CBC cipher suites. The DenyTLS1.0 option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1. The MinTLS options set the minimum TLS version to support. The MaxTLS options set the maximum TLS version to support. Not all operating systems support TLS 1.3 at this time.
    TrustOnFirstUse Yes
    TrustOnFirstUse No
    Specifies whether to trust new TLS certificates by default. The default is "Yes".
    User name
    Specifies the default user name to use for requests.
    UserAgentTokens None
    UserAgentTokens ProductOnly
    UserAgentTokens Major
    UserAgentTokens Minor
    UserAgentTokens Minimal
    UserAgentTokens OS
    UserAgentTokens Full
    Specifies what information is included in the User-Agent header of HTTP requests. "None" disables the User-Agent header. "ProductOnly" reports "CUPS". "Major" reports "CUPS/major IPP/2". "Minor" reports "CUPS/major.minor IPP/2.1". "Minimal" reports "CUPS/major.minor.patch IPP/2.1". "OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1". "Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1". The default is "Minimal".
    ValidateCerts Yes
    ValidateCerts No
    Specifies whether to only allow TLS with certificates whose common name matches the hostname. The default is "No".

    Notes

    The client.conf file is deprecated on macOS and will no longer be supported in a future version of CUPS. Configuration settings can instead be viewed or changed using the defaults(1) command:
    defaults write /Library/Preferences/org.cups.PrintingPrefs.plist Encryption Required
    defaults write /Library/Preferences/org.cups.PrintingPrefs.plist TrustOnFirstUse -bool NO
    
    defaults read /Library/Preferences/org.cups.PrintingPrefs.plist Encryption
    
    On Linux and other systems using GNU TLS, the /etc/cups/ssl/site.crl file, if present, provides a list of revoked X.509 certificates and is used when validating certificates.

    See Also

    cups(1), default(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-classes.conf.html0000644000175000017500000000277714502571342020113 0ustar zdohnalzdohnal classes.conf(5)

    classes.conf(5)

    Name

    classes.conf - class configuration file for cups

    Description

    The classes.conf file defines the local printer classes that are available. It is normally located in the /etc/cups directory and is maintained by the cupsd(8) program. This file is not intended to be edited or managed manually.

    Notes

    The name, location, and format of this file are an implementation detail that will change in future releases of CUPS.

    See Also

    cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-cancel.html0000644000175000017500000000552514502571342016751 0ustar zdohnalzdohnal cancel(1)

    cancel(1)

    Name

    cancel - cancel jobs

    Synopsis

    cancel [ -h hostname[:port] ] [ -E ] [ -U username ] [ -a ] [ -u username ] [ -x ] [ id ] [ destination ] [ destination-id ]

    Description

    The cancel command cancels print jobs. If no destination or id is specified, the currently printing job on the default destination is canceled.

    Options

    The following options are recognized by cancel:
    -a
    Cancel all jobs on the named destination, or all jobs on all destinations if none is provided.
    -E
    Forces encryption when connecting to the server.
    -h hostname[:port]
    Specifies an alternate server. Note: This option must occur before all others.
    -U username
    Specifies the username to use when connecting to the server.
    -u username
    Cancels jobs owned by username.
    -x
    Deletes job data files in addition to canceling.

    Conforming To

    Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive.

    Examples

    Cancel the current print job:
        cancel
    
    
    Cancel job "myprinter-42":
        cancel myprinter-42
    
    
    Cancel all jobs:
        cancel -a
    

    Notes

    Administrators wishing to prevent unauthorized cancellation of jobs via the -u option should require authentication for Cancel-Jobs operations in cupsd.conf(5).

    See Also

    cupsd.conf(5), lp(1), lpmove(8), lpstat(1), CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/man-backend.html0000644000175000017500000002333114502571342017106 0ustar zdohnalzdohnal backend(7)

    backend(7)

    Name

    backend - cups backend transmission interfaces

    Synopsis

    backend
    backend job user title num-copies options [ filename ]
    #include <cups/cups.h>
    
    const char *cupsBackendDeviceURI(char **argv);
    
    void cupsBackendReport(const char *device_scheme,
                           const char *device_uri,
                           const char *device_make_and_model,
                           const char *device_info,
                           const char *device_id,
                           const char *device_location);
    
    ssize_t cupsBackChannelWrite(const char *buffer,
                                 size_t bytes, double timeout);
    
    int cupsSideChannelRead(cups_sc_command_t *command,
                            cups_sc_status_t *status, char *data,
                            int *datalen, double timeout);
    
    int cupsSideChannelWrite(cups_sc_command_t command,
                             cups_sc_status_t status, const char *data,
                             int datalen, double timeout);
    

    Description

    Backends are a special type of filter(7) which is used to send print data to and discover different devices on the system.

    Like filters, 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 as required by the physical interface.

    The command name (argv[0]) is set to the device URI of the destination printer. Authentication information in argv[0] is removed, so backend developers are urged to use the DEVICE_URI environment variable whenever authentication information is required. The cupsBackendDeviceURI() function may be used to retrieve the correct device URI.

    Back-channel data from the device should be relayed to the job filters using the cupsBackChannelWrite function.

    Backends are responsible for reading side-channel requests using the cupsSideChannelRead() function and responding with the cupsSideChannelWrite() function. The CUPS_SC_FD constant defines the file descriptor that should be monitored for incoming requests.

    Device Discovery

    When run with no arguments, the backend should list the devices and schemes it supports or is advertising to the standard output. The output consists of zero or more lines consisting of any of the following forms:
        device-class scheme "Unknown" "device-info"
        device-class device-uri "device-make-and-model" "device-info"
        device-class device-uri "device-make-and-model" "device-info" "device-id"
        device-class device-uri "device-make-and-model" "device-info" "device-id" "device-location"
    

    The cupsBackendReport() function can be used to generate these lines and handle any necessary escaping of characters in the various strings.

    The device-class field is one of the following values:

    direct
    The device-uri refers to a specific direct-access device with no options, such as a parallel, USB, or SCSI device.
    file
    The device-uri refers to a file on disk.
    network
    The device-uri refers to a networked device and conforms to the general form for network URIs.
    serial
    The device-uri refers to a serial device with configurable baud rate and other options. If the device-uri contains a baud value, it represents the maximum baud rate supported by the device.

    The scheme field provides the URI scheme that is supported by the backend. Backends should use this form only when the backend supports any URI using that scheme. The device-uri field specifies the full URI to use when communicating with the device.

    The device-make-and-model field specifies the make and model of the device, e.g. "Example Foojet 2000". If the make and model is not known, you must report "Unknown".

    The device-info field specifies additional information about the device. Typically this includes the make and model along with the port number or network address, e.g. "Example Foojet 2000 USB #1".

    The optional device-id field specifies the IEEE-1284 device ID string for the device, which is used to select a matching driver.

    The optional device-location field specifies the physical location of the device, which is often used to pre-populate the printer-location attribute when adding a printer.

    Permissions

    Backends without world read and execute permissions are run as the root user. Otherwise, the backend is run using an unprivileged user account, typically "lp".

    Exit Status

    The following exit codes are defined for backends:
    CUPS_BACKEND_OK
    The print file was successfully transmitted to the device or remote server.
    CUPS_BACKEND_FAILED

    The print file was not successfully transmitted to the device or remote server. The scheduler will respond to this by canceling the job, retrying the job, or stopping the queue depending on the state of the printer-error-policy attribute.
    CUPS_BACKEND_AUTH_REQUIRED
    The print file was not successfully transmitted because valid authentication information is required. The scheduler will respond to this by holding the job and adding the 'cups-held-for-authentication' keyword to the "job-reasons" Job Description attribute.
    CUPS_BACKEND_HOLD
    The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by holding the job.
    CUPS_BACKEND_STOP
    The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by stopping the queue.
    CUPS_BACKEND_CANCEL
    The print file was not successfully transmitted because one or more attributes are not supported or the job was canceled at the printer. The scheduler will respond to this by canceling the job.
    CUPS_BACKEND_RETRY
    The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job at a future time - other jobs may print before this one.
    CUPS_BACKEND_RETRY_CURRENT
    The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job immediately without allowing intervening jobs.

    All other exit code values are reserved.

    Environment

    In addition to the environment variables listed in cups(1) and filter(7), CUPS backends can expect the following environment variable:
    DEVICE_URI
    The device URI associated with the printer.

    Files

    /etc/cups/cups-files.conf

    Notes

    CUPS backends are not generally designed to be run directly by the user. Aside from the device URI issue ( argv[0] and DEVICE_URI environment variable contain the device URI), CUPS backends also expect specific environment variables and file descriptors, and typically run in a user session that (on macOS) has additional restrictions that affect how it runs. Backends can also be installed with restricted permissions (0500 or 0700) that tell the scheduler to run them as the "root" user instead of an unprivileged user (typically "lp") on the system.

    Unless you are a developer and know what you are doing, please do not run backends directly. Instead, use the lp(1) or lpr(1) programs to send print jobs or lpinfo(8) to query for available printers using the backend. The one exception is the SNMP backend - see cups-snmp(8) for more information.

    Notes

    CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS. Printers that do not support IPP can be supported using applications such as ippeveprinter(1).

    See Also

    cups(1), cups-files.conf(5), cups-snmp(8), cupsd(8), filter(7), lp(1), lpinfo(8), lpr(1),
    CUPS Online Help (http://localhost:631/help)

    Copyright

    Copyright © 2021-2023 by OpenPrinting. cups-2.4.7/doc/help/license.html0000644000175000017500000002744214502571342016377 0ustar zdohnalzdohnal Apache License Version 2.0

    Apache License

    Version 2.0, January 2004

    http://www.apache.org/licenses/

    TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

    1. Definitions.

    "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

    "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

    "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.

    "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

    "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

    "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

    "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

    "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."

    "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

    2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

    3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

    4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

    1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
    2. You must cause any modified files to carry prominent notices stating that You changed the files; and
    3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
    4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

      You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

    5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

    6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

    7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

    8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

    9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

    END OF TERMS AND CONDITIONS

    APPENDIX: How to apply the Apache License to your work

    To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.

    Copyright [yyyy] [name of copyright owner]
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    

    CUPS Exceptions to the Apache 2.0 License

    As an exception, if, as a result of your compiling your source code, portions of this Software are embedded into an Object form of such source code, you may redistribute such embedded portions in such Object form without complying with the conditions of Sections 4(a), 4(b) and 4(d) of the License.

    In addition, if you combine or link compiled forms of this Software with software that is licensed under the GPLv2 ("Combined Software") and if a court of competent jurisdiction determines that the patent provision (Section 3), the indemnity provision (Section 9) or other Section of the License conflicts with the conditions of the GPLv2, you may retroactively and prospectively choose to deem waived or otherwise exclude such Section(s) of the License, but only in their entirety and only with respect to the Combined Software.

    cups-2.4.7/doc/help/kerberos.html0000644000175000017500000001112314502571342016556 0ustar zdohnalzdohnal Using Kerberos Authentication

    Using Kerberos Authentication

    CUPS allows you to use a Key Distribution Center (KDC) for authentication on your local CUPS server and when printing to a remote authenticated queue. This document describes how to configure CUPS to use Kerberos authentication and provides links to the MIT help pages for configuring Kerberos on your systems and network.

    Note: Kerberos authentication is deprecated starting in CUPS 2.4.0. OAuth 2.0 is the recommended SSO replacement.

    System Requirements

    The following are required to use Kerberos with CUPS:

    1. Heimdal Kerberos (any version) or MIT Kerberos (1.6.3 or newer)
    2. Properly configured Domain Name System (DNS) infrastructure (for your servers):
      1. DNS server(s) with static IP addresses for all CUPS servers or configured to allow DHCP updates to the host addresses and
      2. All CUPS clients and servers configured to use the same DNS server(s).
    3. Properly configured Kerberos infrastructure:
      1. KDC configured to allow CUPS servers to obtain Service Granting Tickets (SGTs) for the "host" and "HTTP" services/principals,
      2. LDAP-based user accounts - both OpenDirectory and ActiveDirectory provide this with the KDC, and
      3. CUPS clients and servers bound to the same KDC and LDAP server(s).

    Configuring Kerberos on Your System

    Before you can use Kerberos with CUPS, you will need to configure Kerberos on your system and setup a system as a KDC. Because this configuration is highly system and site-specific, please consult the following on-line resources provided by the creators of Kerberos at the Massachusetts Institute of Technology (MIT):

    The Linux Documentation Project also has a HOWTO on Kerberos:

    Configuring CUPS to Use Kerberos

    Once you have configured Kerberos on your system(s), you can then enable Kerberos authentication by selecting the Negotiate authentication type. The simplest way to do this is using the cupsctl(8) command on your server(s):

    cupsctl DefaultAuthType=Negotiate

    You can also enable Kerberos from the web interface by checking the Use Kerberos Authentication box and clicking Change Settings:

    https://server.example.com:631/admin

    After you have enabled Kerberos authentication, use the built-in "authenticated" policy or your own custom policies with the printers you will be sharing. See Managing Operation Policies for more information.

    Implementation Information

    CUPS implements Kerberos over HTTP using GSSAPI and the service/principal names "host/server.example.com" for command-line access and "HTTP/server.example.com" for web-based access, where "server.example.com" is replaced by your CUPS server's hostname. Because of limitations in the HTTP GSSAPI protocol extension, only a single domain/KDC is supported for authentication. The (experimental) HTTP extension is described in RFC 4559.

    When doing printing tasks that require authentication, CUPS requests single-use "tickets" from your login session to authenticate who you are. These tickets give CUPS a username of the form "user@REALM", which is then truncated to just "user" for purposes of user and group checks.

    In order to support printing to a shared printer, CUPS runs the IPP or SMB backend as the owner of the print job so it can obtain the necessary credentials when the job is de-spooled to the server.

    cups-2.4.7/doc/help/glossary.html0000644000175000017500000000524314502571342016613 0ustar zdohnalzdohnal Glossary

    Glossary

    A

    ASCII
    American Standard Code for Information Interchange

    C

    C
    A computer language
    Character Set
    The association of numbers with specific printed or displayed characters or symbols

    E

    ESC/P
    EPSON Standard Code for Printers

    F

    FTP
    File Transfer Protocol

    G

    GIF
    Graphics Interchange Format

    H

    HP-PCL
    Hewlett-Packard Page Control Language
    HP-PJL
    Hewlett-Packard Printer Job Language

    I

    IETF
    Internet Engineering Task Force
    IP
    Internet Protocol
    IPv4
    Internet Protocol, version 4; IPv4 addresses are 32-bits in length and often look like "nnn.nnn.nnn.nnn" and "127.0.0.1"
    IPv6
    Internet Protocol, version 6: IPv6 addresses are 128-bits in length and look like "xxxx::xxxx:xxxx:xxxx:xxxx" and "::1"
    IPP
    Internet Printing Protocol
    ISO
    International Standards Organization

    J

    JFIF
    JPEG File Interchange Format
    JPEG
    Joint Photographic Experts Group

    L

    LPD
    Line Printer Daemon

    M

    MIME
    Multimedia Internet Mail Exchange

    P

    parallel
    Sending or receiving data more than 1 bit at a time
    PDF
    Portable Document Format
    pipe
    A one-way communications channel between two programs
    PNG
    Portable Network Graphics
    PostScript
    A page description language that is most often used for printing
    PPD
    PostScript Printer Description
    PWG
    Printer Working Group

    S

    serial
    Sending or receiving data 1 bit at a time
    SMB
    Server Message Block
    socket
    A two-way network communications channel

    T

    TCP
    Transmission Control Protocol
    TFTP
    Trivial File Transfer Protocol
    TIFF
    Tagged Image File Format

    U

    UDP
    Unicast Datagram Protocol
    Unicode
    A universal character set for all languages of the world
    UTF-8
    Unicode Transfer Format 8-Bit
    cups-2.4.7/doc/help/firewalls.html0000644000175000017500000000770214502571342016742 0ustar zdohnalzdohnal Firewalls

    Firewalls

    This help document describes the ports that CUPS uses so that firewall administrators can allow traffic used for printing.

    Ports Used for Printer Sharing

    Table 1 lists the ports that are used for IPP printer sharing via CUPS.

    Table 1: Ports Used for IPP Printer Sharing
    (Destination) PortTCP/UDPDirectionDescription
    53 (DNS)TCP/UDPOUTDomain Name System lookups and service registrations.
    631 (IPP/IPPS)TCPINInternet Printing Protocol requests and responses (print jobs, status monitoring, etc.)
    5353 (mDNS)UDPIN+OUTMulticast DNS lookups and service registrations.

    Table 2 lists the ports that are used for SMB (Windows) printer sharing, typically via the Samba software.

    Table 2: Ports Used for SMB Printer Sharing
    (Destination) Port(s)TCP/UDPDirectionDescription
    137 (WINS)UDPIN+OUTWindows Internet Naming Service (name lookup for SMB printing).
    139 (SMB)TCPINWindows SMB printing.
    445 (SMBDS)TCPIN+OUTWindows SMB Domain Server (authenticated SMB printing).

    Ports Used for Network Printers

    Table 3 lists the ports for outgoing network traffic that are used for network printers.

    Notes:
    1. DNS and mDNS are used for all printing protocols except SMB.
    2. SNMP is used to provide status and supply level information for AppSocket and LPD printers.
    Table 3: Outgoing Ports Used for Network Printers
    (Destination) Port(s)TCP/UDPDescription
    53 (DNS)TCP/UDPDomain Name System lookups.
    137 (WINS)UDPWindows Internet Naming Service (name lookup for SMB printing).
    139 (SMB)TCPWindows SMB printing.
    161 (SNMP)UDPSNMP browsing (broadcast) and status monitoring (directed to printer IP address).
    443 (IPPS)TCPInternet Printing Protocol requests and responses (print jobs, status monitoring, etc.)
    445 (SMBDS)TCPWindows SMB Domain Server (authenticated SMB printing).
    515 (LPD)TCPLine Printer Daemon (LPD/lpr) print job submission and status monitoring.
    631 (IPP/IPPS)TCPInternet Printing Protocol requests and responses (print jobs, status monitoring, etc.)
    5353 (mDNS)UDPMulticast DNS lookups.
    9100-9102TCPRaw print data stream (AppSocket/JetDirect).
    cups-2.4.7/doc/help/encryption.html0000644000175000017500000001033214502571342017135 0ustar zdohnalzdohnal Managing Encryption

    Managing Encryption

    CUPS supports TLS encryption in two ways:

    1. Using HTTPS (always on) as soon as a connection is established, and
    2. Using HTTP Upgrade to TLS (opportunistic) after the connection is established.

    CUPS supports self-signed, CA-signed, and enterprise certificates, with configurable certificate validation, cipher suite, and SSL/TLS version policies.

    Out of the box, CUPS uses a Trust On First Use ("TOFU") certificate validation policy like the popular Secure Shell (ssh) software, requires TLS/1.0 or higher, only allows secure cipher suites, and automatically creates a "self-signed" certificate and private key for the scheduler so that remote administration operations and printer sharing are encrypted by default.

    Configuring Client TLS Policies

    The client.conf file controls the client TLS policies. The default policy is:

    AllowAnyRoot Yes
    AllowExpiredCerts No
    Encryption IfRequested
    SSLOptions None
    TrustOnFirstUse Yes
    ValidateCerts No
    

    A client can be configured to only communicate with trusted TLS/1.1+ servers and printers by copying the corresponding certificates to the client (see below) and using the following policy in the client.conf file or macOS® printing preferences:

    AllowAnyRoot No
    AllowExpiredCerts No
    Encryption Required
    SSLOptions DenyTLS1.0
    TrustOnFirstUse No
    ValidateCerts Yes
    

    Similarly, if a client needs to support an older server that only supports SSL/3.0 and RC4 cipher suites you can use the following policy option:

    SSLOptions AllowRC4 AllowSSL3
    

    Configuring Server TLS Policies

    Two directives in the cups-files.conf file control the server (scheduler) TLS policies - CreateSelfSignedCerts and ServerKeychain. The default policy creates self-signed certificates as needed.

    The DefaultEncryption and Encryption directives in the cupsd.conf file control whether encryption is used. The default configuration requires encryption for remote access whenever authentication is required.

    Platform Differences

    macOS®

    On macOS, client configuration settings for ordinary users are stored in the ~/Library/Preferences/org.cups.PrintingPrefs.plist file. System-wide and user certificates are stored in the system and login keychains, with private CUPS keychains being used for self-signed and CUPS-managed certificates.

    Windows®

    On Windows, client configuration settings are controlled by the SSL/TLS Group Policy settings and certificate stores.

    Other Platforms

    Other platforms only use the client.conf file and PEM-encoded certificates (hostname.crt) and private keys (hostname.key) in the /etc/cups/ssl and ~/.cups/ssl directories. If present, the /etc/cups/ssl/site.crt file defines a site-wide CA certificate that is used to validate server and printer certificates. Certificates for known servers and printers are stored by CUPS in the corresponding ssl directory so they can be validated for subsequent connections.

    CUPS also supports certificates created and managed by the popular Let's Encrypt certificate service, which are stored in the /etc/letsencrypt/live directory.

    cups-2.4.7/doc/help/cupspm.html0000644000175000017500000154452314502571342016271 0ustar zdohnalzdohnal CUPS Programming Manual

    CUPS Programming Manual

    Michael R Sweet

    Copyright © 2021-2023 by OpenPrinting. All Rights Reserved.

    Contents

    Please file issues on GitHub to provide feedback on this document.

    Introduction

    CUPS provides the "cups" library to talk to the different parts of CUPS and with Internet Printing Protocol (IPP) printers. The "cups" library functions are accessed by including the <cups/cups.h> header.

    CUPS is based on the Internet Printing Protocol ("IPP"), which allows clients (applications) to communicate with a server (the scheduler, printers, etc.) to get a list of destinations, send print jobs, and so forth. You identify which server you want to communicate with using a pointer to the opaque structure http_t. The CUPS_HTTP_DEFAULT constant can be used when you want to talk to the CUPS scheduler.

    Guidelines

    When writing software (other than printer drivers) that uses the "cups" library:

    • Do not use undocumented or deprecated APIs,

    • Do not rely on pre-configured printers,

    • Do not assume that printers support specific features or formats, and

    • Do not rely on implementation details (PPDs, etc.)

    CUPS is designed to insulate users and developers from the implementation details of printers and file formats. The goal is to allow an application to supply a print file in a standard format with the user intent ("print four copies, two-sided on A4 media, and staple each copy") and have the printing system manage the printer communication and format conversion needed.

    Similarly, printer and job management applications can use standard query operations to obtain the status information in a common, generic form and use standard management operations to control the state of those printers and jobs.

    Note:

    CUPS printer drivers necessarily depend on specific file formats and certain implementation details of the CUPS software. Please consult the Postscript and raster printer driver developer documentation on the OpenPrinting CUPS website for more information.

    Terms Used in This Document

    A Destination is a printer or print queue that accepts print jobs. A Print Job is a collection of one or more documents that are processed by a destination using options supplied when creating the job. A Document is a file (JPEG image, PDF file, etc.) suitable for printing. An Option controls some aspect of printing, such as the media used. Media is the sheets or roll that is printed on. An Attribute is an option encoded for an Internet Printing Protocol (IPP) request.

    Compiling Programs That Use the CUPS API

    The CUPS libraries can be used from any C, C++, or Objective-C program. The method of compiling against the libraries varies depending on the operating system and installation of CUPS. The following sections show how to compile a simple program (shown below) in two common environments.

    The following simple program lists the available destinations:

    #include <stdio.h>
    #include <cups/cups.h>
    
    int print_dest(void *user_data, unsigned flags, cups_dest_t *dest)
    {
      if (dest->instance)
        printf("%s/%s\n", dest->name, dest->instance);
      else
        puts(dest->name);
    
      return (1);
    }
    
    int main(void)
    {
      cupsEnumDests(CUPS_DEST_FLAGS_NONE, 1000, NULL, 0, 0, print_dest, NULL);
    
      return (0);
    }
    

    Compiling with Xcode

    In Xcode, choose New Project... from the File menu (or press SHIFT+CMD+N), then select the Command Line Tool under the macOS Application project type. Click Next and enter a name for the project, for example "firstcups". Click Next and choose a project directory. The click Next to create the project.

    In the project window, click on the Build Phases group and expand the Link Binary with Libraries section. Click +, type "libcups" to show the library, and then double-click on libcups.tbd.

    Finally, click on the main.c file in the sidebar and copy the example program to the file. Build and run (CMD+R) to see the list of destinations.

    Compiling with GCC

    From the command-line, create a file called simple.c using your favorite editor, copy the example to this file, and save. Then run the following command to compile it with GCC and run it:

    gcc -o simple `cups-config --cflags` simple.c `cups-config --libs`
    ./simple
    

    The cups-config command provides the compiler flags (cups-config --cflags) and libraries (cups-config --libs) needed for the local system.

    Working with Destinations

    Destinations, which in CUPS represent individual printers or classes (collections or pools) of printers, are represented by the cups_dest_t structure which includes the name (name), instance (instance, saved options/settings), whether the destination is the default for the user (is_default), and the options and basic information associated with that destination (num_options and options).

    Historically destinations have been manually maintained by the administrator of a system or network, but CUPS also supports dynamic discovery of destinations on the current network.

    Finding Available Destinations

    The cupsEnumDests function finds all of the available destinations:

     int
     cupsEnumDests(unsigned flags, int msec, int *cancel,
                   cups_ptype_t type, cups_ptype_t mask,
                   cups_dest_cb_t cb, void *user_data)
    

    The flags argument specifies enumeration options, which at present must be CUPS_DEST_FLAGS_NONE.

    The msec argument specifies the maximum amount of time that should be used for enumeration in milliseconds - interactive applications should keep this value to 5000 or less when run on the main thread.

    The cancel argument points to an integer variable that, when set to a non-zero value, will cause enumeration to stop as soon as possible. It can be NULL if not needed.

    The type and mask arguments are bitfields that allow the caller to filter the destinations based on categories and/or capabilities. The destination's "printer-type" value is masked by the mask value and compared to the type value when filtering. For example, to only enumerate destinations that are hosted on the local system, pass CUPS_PRINTER_LOCAL for the type argument and CUPS_PRINTER_DISCOVERED for the mask argument. The following constants can be used for filtering:

    • CUPS_PRINTER_CLASS: A collection of destinations.

    • CUPS_PRINTER_FAX: A facsimile device.

    • CUPS_PRINTER_LOCAL: A local printer or class. This constant has the value 0 (no bits set) and is only used for the type argument and is paired with the CUPS_PRINTER_REMOTE or CUPS_PRINTER_DISCOVERED constant passed in the mask argument.

    • CUPS_PRINTER_REMOTE: A remote (shared) printer or class.

    • CUPS_PRINTER_DISCOVERED: An available network printer or class.

    • CUPS_PRINTER_BW: Can do B&W printing.

    • CUPS_PRINTER_COLOR: Can do color printing.

    • CUPS_PRINTER_DUPLEX: Can do two-sided printing.

    • CUPS_PRINTER_STAPLE: Can staple output.

    • CUPS_PRINTER_COLLATE: Can quickly collate copies.

    • CUPS_PRINTER_PUNCH: Can punch output.

    • CUPS_PRINTER_COVER: Can cover output.

    • CUPS_PRINTER_BIND: Can bind output.

    • CUPS_PRINTER_SORT: Can sort output (mailboxes, etc.)

    • CUPS_PRINTER_SMALL: Can print on Letter/Legal/A4-size media.

    • CUPS_PRINTER_MEDIUM: Can print on Tabloid/B/C/A3/A2-size media.

    • CUPS_PRINTER_LARGE: Can print on D/E/A1/A0-size media.

    • CUPS_PRINTER_VARIABLE: Can print on rolls and custom-size media.

    The cb argument specifies a function to call for every destination that is found:

    typedef int (*cups_dest_cb_t)(void *user_data,
                                  unsigned flags,
                                  cups_dest_t *dest);
    

    The callback function receives a copy of the user_data argument along with a bitfield (flags) and the destination that was found. The flags argument can have any of the following constant (bit) values set:

    • CUPS_DEST_FLAGS_MORE: There are more destinations coming.

    • CUPS_DEST_FLAGS_REMOVED: The destination has gone away and should be removed from the list of destinations a user can select.

    • CUPS_DEST_FLAGS_ERROR: An error occurred. The reason for the error can be found by calling the cupsLastError and/or cupsLastErrorString functions.

    The callback function returns 0 to stop enumeration or 1 to continue.

    Note:

    The callback function will likely be called multiple times for the same destination, so it is up to the caller to suppress any duplicate destinations.

    The following example shows how to use cupsEnumDests to get a filtered array of destinations:

    typedef struct
    {
      int num_dests;
      cups_dest_t *dests;
    } my_user_data_t;
    
    int
    my_dest_cb(my_user_data_t *user_data, unsigned flags,
               cups_dest_t *dest)
    {
      if (flags & CUPS_DEST_FLAGS_REMOVED)
      {
       /*
        * Remove destination from array...
        */
    
        user_data->num_dests =
            cupsRemoveDest(dest->name, dest->instance,
                           user_data->num_dests,
                           &(user_data->dests));
      }
      else
      {
       /*
        * Add destination to array...
        */
    
        user_data->num_dests =
            cupsCopyDest(dest, user_data->num_dests,
                         &(user_data->dests));
      }
    
      return (1);
    }
    
    int
    my_get_dests(cups_ptype_t type, cups_ptype_t mask,
                 cups_dest_t **dests)
    {
      my_user_data_t user_data = { 0, NULL };
    
      if (!cupsEnumDests(CUPS_DEST_FLAGS_NONE, 1000, NULL, type,
                         mask, (cups_dest_cb_t)my_dest_cb,
                         &user_data))
      {
       /*
        * An error occurred, free all of the destinations and
        * return...
        */
    
        cupsFreeDests(user_data.num_dests, user_data.dests);
    
        *dests = NULL;
    
        return (0);
      }
    
     /*
      * Return the destination array...
      */
    
      *dests = user_data.dests;
    
      return (user_data.num_dests);
    }
    

    Basic Destination Information

    The num_options and options members of the cups_dest_t structure provide basic attributes about the destination in addition to the user default options and values for that destination. The following names are predefined for various destination attributes:

    • "auth-info-required": The type of authentication required for printing to this destination: "none", "username,password", "domain,username,password", or "negotiate" (Kerberos).

    • "printer-info": The human-readable description of the destination such as "My Laser Printer".

    • "printer-is-accepting-jobs": "true" if the destination is accepting new jobs, "false" otherwise.

    • "printer-is-shared": "true" if the destination is being shared with other computers, "false" otherwise.

    • "printer-location": The human-readable location of the destination such as "Lab 4".

    • "printer-make-and-model": The human-readable make and model of the destination such as "ExampleCorp LaserPrinter 4000 Series".

    • "printer-state": "3" if the destination is idle, "4" if the destination is printing a job, and "5" if the destination is stopped.

    • "printer-state-change-time": The UNIX time when the destination entered the current state.

    • "printer-state-reasons": Additional comma-delimited state keywords for the destination such as "media-tray-empty-error" and "toner-low-warning".

    • "printer-type": The cups_ptype_t value associated with the destination.

    • "printer-uri-supported": The URI associated with the destination; if not set, this destination was discovered but is not yet setup as a local printer.

    Use the cupsGetOption function to retrieve the value. For example, the following code gets the make and model of a destination:

    const char *model = cupsGetOption("printer-make-and-model",
                                      dest->num_options,
                                      dest->options);
    

    Detailed Destination Information

    Once a destination has been chosen, the cupsCopyDestInfo function can be used to gather detailed information about the destination:

    cups_dinfo_t *
    cupsCopyDestInfo(http_t *http, cups_dest_t *dest);
    

    The http argument specifies a connection to the CUPS scheduler and is typically the constant CUPS_HTTP_DEFAULT. The dest argument specifies the destination to query.

    The cups_dinfo_t structure that is returned contains a snapshot of the supported options and their supported, ready, and default values. It also can report constraints between different options and values, and recommend changes to resolve those constraints.

    Getting Supported Options and Values

    The cupsCheckDestSupported function can be used to test whether a particular option or option and value is supported:

    int
    cupsCheckDestSupported(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *info,
                           const char *option,
                           const char *value);
    

    The option argument specifies the name of the option to check. The following constants can be used to check the various standard options:

    • CUPS_COPIES: Controls the number of copies that are produced.

    • CUPS_FINISHINGS: A comma-delimited list of integer constants that control the finishing processes that are applied to the job, including stapling, punching, and folding.

    • CUPS_MEDIA: Controls the media size that is used, typically one of the following: CUPS_MEDIA_3X5, CUPS_MEDIA_4X6, CUPS_MEDIA_5X7, CUPS_MEDIA_8X10, CUPS_MEDIA_A3, CUPS_MEDIA_A4, CUPS_MEDIA_A5, CUPS_MEDIA_A6, CUPS_MEDIA_ENV10, CUPS_MEDIA_ENVDL, CUPS_MEDIA_LEGAL, CUPS_MEDIA_LETTER, CUPS_MEDIA_PHOTO_L, CUPS_MEDIA_SUPERBA3, or CUPS_MEDIA_TABLOID.

    • CUPS_MEDIA_SOURCE: Controls where the media is pulled from, typically either CUPS_MEDIA_SOURCE_AUTO or CUPS_MEDIA_SOURCE_MANUAL.

    • CUPS_MEDIA_TYPE: Controls the type of media that is used, typically one of the following: CUPS_MEDIA_TYPE_AUTO, CUPS_MEDIA_TYPE_ENVELOPE, CUPS_MEDIA_TYPE_LABELS, CUPS_MEDIA_TYPE_LETTERHEAD, CUPS_MEDIA_TYPE_PHOTO, CUPS_MEDIA_TYPE_PHOTO_GLOSSY, CUPS_MEDIA_TYPE_PHOTO_MATTE, CUPS_MEDIA_TYPE_PLAIN, or CUPS_MEDIA_TYPE_TRANSPARENCY.

    • CUPS_NUMBER_UP: Controls the number of document pages that are placed on each media side.

    • CUPS_ORIENTATION: Controls the orientation of document pages placed on the media: CUPS_ORIENTATION_PORTRAIT or CUPS_ORIENTATION_LANDSCAPE.

    • CUPS_PRINT_COLOR_MODE: Controls whether the output is in color (CUPS_PRINT_COLOR_MODE_COLOR), grayscale (CUPS_PRINT_COLOR_MODE_MONOCHROME), or either (CUPS_PRINT_COLOR_MODE_AUTO).

    • CUPS_PRINT_QUALITY: Controls the generate quality of the output: CUPS_PRINT_QUALITY_DRAFT, CUPS_PRINT_QUALITY_NORMAL, or CUPS_PRINT_QUALITY_HIGH.

    • CUPS_SIDES: Controls whether prints are placed on one or both sides of the media: CUPS_SIDES_ONE_SIDED, CUPS_SIDES_TWO_SIDED_PORTRAIT, or CUPS_SIDES_TWO_SIDED_LANDSCAPE.

    If the value argument is NULL, the cupsCheckDestSupported function returns whether the option is supported by the destination. Otherwise, the function returns whether the specified value of the option is supported.

    The cupsFindDestSupported function returns the IPP attribute containing the supported values for a given option:

     ipp_attribute_t *
     cupsFindDestSupported(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *dinfo,
                           const char *option);
    

    For example, the following code prints the supported finishing processes for a destination, if any, to the standard output:

    cups_dinfo_t *info = cupsCopyDestInfo(CUPS_HTTP_DEFAULT,
                                          dest);
    
    if (cupsCheckDestSupported(CUPS_HTTP_DEFAULT, dest, info,
                               CUPS_FINISHINGS, NULL))
    {
      ipp_attribute_t *finishings =
          cupsFindDestSupported(CUPS_HTTP_DEFAULT, dest, info,
                                CUPS_FINISHINGS);
      int i, count = ippGetCount(finishings);
    
      puts("finishings supported:");
      for (i = 0; i < count; i ++)
        printf("  %d\n", ippGetInteger(finishings, i));
    }
    else
      puts("finishings not supported.");
    

    The "job-creation-attributes" option can be queried to get a list of supported options. For example, the following code prints the list of supported options to the standard output:

    ipp_attribute_t *attrs =
        cupsFindDestSupported(CUPS_HTTP_DEFAULT, dest, info,
                              "job-creation-attributes");
    int i, count = ippGetCount(attrs);
    
    for (i = 0; i < count; i ++)
      puts(ippGetString(attrs, i, NULL));
    

    Getting Default Values

    There are two sets of default values - user defaults that are available via the num_options and options members of the cups_dest_t structure, and destination defaults that available via the cups_dinfo_t structure and the cupsFindDestDefault function which returns the IPP attribute containing the default value(s) for a given option:

    ipp_attribute_t *
    cupsFindDestDefault(http_t *http, cups_dest_t *dest,
                        cups_dinfo_t *dinfo,
                        const char *option);
    

    The user defaults from cupsGetOption should always take preference over the destination defaults. For example, the following code prints the default finishings value(s) to the standard output:

    const char *def_value =
        cupsGetOption(CUPS_FINISHINGS, dest->num_options,
                      dest->options);
    ipp_attribute_t *def_attr =
        cupsFindDestDefault(CUPS_HTTP_DEFAULT, dest, info,
                            CUPS_FINISHINGS);
    
    if (def_value != NULL)
    {
      printf("Default finishings: %s\n", def_value);
    }
    else
    {
      int i, count = ippGetCount(def_attr);
    
      printf("Default finishings: %d",
             ippGetInteger(def_attr, 0));
      for (i = 1; i < count; i ++)
        printf(",%d", ippGetInteger(def_attr, i));
      putchar('\n');
    }
    

    Getting Ready (Loaded) Values

    The finishings and media options also support queries for the ready, or loaded, values. For example, a printer may have punch and staple finishers installed but be out of staples - the supported values will list both punch and staple finishing processes but the ready values will only list the punch processes. Similarly, a printer may support hundreds of different sizes of media but only have a single size loaded at any given time - the ready values are limited to the media that is actually in the printer.

    The cupsFindDestReady function finds the IPP attribute containing the ready values for a given option:

    ipp_attribute_t *
    cupsFindDestReady(http_t *http, cups_dest_t *dest,
                      cups_dinfo_t *dinfo, const char *option);
    

    For example, the following code lists the ready finishing processes:

    ipp_attribute_t *ready_finishings =
        cupsFindDestReady(CUPS_HTTP_DEFAULT, dest, info,
                          CUPS_FINISHINGS);
    
    if (ready_finishings != NULL)
    {
      int i, count = ippGetCount(ready_finishings);
    
      puts("finishings ready:");
      for (i = 0; i < count; i ++)
        printf("  %d\n", ippGetInteger(ready_finishings, i));
    }
    else
      puts("no finishings are ready.");
    

    Media Size Options

    CUPS provides functions for querying the dimensions and margins for each of the supported media size options. The cups_size_t structure is used to describe a media size:

    typedef struct cups_size_s
    {
      char media[128];
      int width, length;
      int bottom, left, right, top;
    } cups_size_t;
    

    The width and length members specify the dimensions of the media in hundredths of millimeters (1/2540th of an inch). The bottom, left, right, and top members specify the margins of the printable area, also in hundredths of millimeters.

    The cupsGetDestMediaByName and cupsGetDestMediaBySize functions lookup the media size information using a standard media size name or dimensions in hundredths of millimeters:

    int
    cupsGetDestMediaByName(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *dinfo,
                           const char *media,
                           unsigned flags, cups_size_t *size);
    
    int
    cupsGetDestMediaBySize(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *dinfo,
                           int width, int length,
                           unsigned flags, cups_size_t *size);
    

    The media, width, and length arguments specify the size to lookup. The flags argument specifies a bitfield controlling various lookup options:

    • CUPS_MEDIA_FLAGS_DEFAULT: Find the closest size supported by the printer.

    • CUPS_MEDIA_FLAGS_BORDERLESS: Find a borderless size.

    • CUPS_MEDIA_FLAGS_DUPLEX: Find a size compatible with two-sided printing.

    • CUPS_MEDIA_FLAGS_EXACT: Find an exact match for the size.

    • CUPS_MEDIA_FLAGS_READY: If the printer supports media sensing or configuration of the media in each tray/source, find the size amongst the "ready" media.

    If a matching size is found for the destination, the size information is stored in the structure pointed to by the size argument and 1 is returned. Otherwise 0 is returned.

    For example, the following code prints the margins for two-sided printing on US Letter media:

    cups_size_t size;
    
    if (cupsGetDestMediaByName(CUPS_HTTP_DEFAULT, dest, info,
                               CUPS_MEDIA_LETTER,
                               CUPS_MEDIA_FLAGS_DUPLEX, &size))
    {
      puts("Margins for duplex US Letter:");
      printf("  Bottom: %.2fin\n", size.bottom / 2540.0);
      printf("    Left: %.2fin\n", size.left / 2540.0);
      printf("   Right: %.2fin\n", size.right / 2540.0);
      printf("     Top: %.2fin\n", size.top / 2540.0);
    }
    else
      puts("Margins for duplex US Letter are not available.");
    

    You can also enumerate all of the sizes that match a given flags value using the cupsGetDestMediaByIndex and cupsGetDestMediaCount functions:

    int
    cupsGetDestMediaByIndex(http_t *http, cups_dest_t *dest,
                            cups_dinfo_t *dinfo, int n,
                            unsigned flags, cups_size_t *size);
    
    int
    cupsGetDestMediaCount(http_t *http, cups_dest_t *dest,
                          cups_dinfo_t *dinfo, unsigned flags);
    

    For example, the following code prints the list of ready media and corresponding margins:

    cups_size_t size;
    int i;
    int count = cupsGetDestMediaCount(CUPS_HTTP_DEFAULT,
                                      dest, info,
                                      CUPS_MEDIA_FLAGS_READY);
    
    for (i = 0; i < count; i ++)
    {
      if (cupsGetDestMediaByIndex(CUPS_HTTP_DEFAULT, dest, info,
                                  i, CUPS_MEDIA_FLAGS_READY,
                                  &size))
      {
        printf("%s:\n", size.name);
        printf("   Width: %.2fin\n", size.width / 2540.0);
        printf("  Length: %.2fin\n", size.length / 2540.0);
        printf("  Bottom: %.2fin\n", size.bottom / 2540.0);
        printf("    Left: %.2fin\n", size.left / 2540.0);
        printf("   Right: %.2fin\n", size.right / 2540.0);
        printf("     Top: %.2fin\n", size.top / 2540.0);
      }
    }
    

    Finally, the cupsGetDestMediaDefault function returns the default media size:

    int
    cupsGetDestMediaDefault(http_t *http, cups_dest_t *dest,
                            cups_dinfo_t *dinfo, unsigned flags,
                            cups_size_t *size);
    

    Localizing Options and Values

    CUPS provides three functions to get localized, human-readable strings in the user's current locale for options and values: cupsLocalizeDestMedia, cupsLocalizeDestOption, and cupsLocalizeDestValue:

    const char *
    cupsLocalizeDestMedia(http_t *http, cups_dest_t *dest,
                          cups_dinfo_t *info, unsigned flags,
                          cups_size_t *size);
    
    const char *
    cupsLocalizeDestOption(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *info,
                           const char *option);
    
    const char *
    cupsLocalizeDestValue(http_t *http, cups_dest_t *dest,
                          cups_dinfo_t *info,
                          const char *option, const char *value);
    

    Submitting a Print Job

    Once you are ready to submit a print job, you create a job using the cupsCreateDestJob function:

    ipp_status_t
    cupsCreateDestJob(http_t *http, cups_dest_t *dest,
                      cups_dinfo_t *info, int *job_id,
                      const char *title, int num_options,
                      cups_option_t *options);
    

    The title argument specifies a name for the print job such as "My Document". The num_options and options arguments specify the options for the print job which are allocated using the cupsAddOption function.

    When successful, the job's numeric identifier is stored in the integer pointed to by the job_id argument and IPP_STATUS_OK is returned. Otherwise, an IPP error status is returned.

    For example, the following code creates a new job that will print 42 copies of a two-sided US Letter document:

    int job_id = 0;
    int num_options = 0;
    cups_option_t *options = NULL;
    
    num_options = cupsAddOption(CUPS_COPIES, "42",
                                num_options, &options);
    num_options = cupsAddOption(CUPS_MEDIA, CUPS_MEDIA_LETTER,
                                num_options, &options);
    num_options = cupsAddOption(CUPS_SIDES,
                                CUPS_SIDES_TWO_SIDED_PORTRAIT,
                                num_options, &options);
    
    if (cupsCreateDestJob(CUPS_HTTP_DEFAULT, dest, info,
                          &job_id, "My Document", num_options,
                          options) == IPP_STATUS_OK)
      printf("Created job: %d\n", job_id);
    else
      printf("Unable to create job: %s\n",
             cupsLastErrorString());
    

    Once the job is created, you submit documents for the job using the cupsStartDestDocument, cupsWriteRequestData, and cupsFinishDestDocument functions:

    http_status_t
    cupsStartDestDocument(http_t *http, cups_dest_t *dest,
                          cups_dinfo_t *info, int job_id,
                          const char *docname,
                          const char *format,
                          int num_options,
                          cups_option_t *options,
                          int last_document);
    
    http_status_t
    cupsWriteRequestData(http_t *http, const char *buffer,
                         size_t length);
    
    ipp_status_t
    cupsFinishDestDocument(http_t *http, cups_dest_t *dest,
                           cups_dinfo_t *info);
    

    The docname argument specifies the name of the document, typically the original filename. The format argument specifies the MIME media type of the document, including the following constants:

    • CUPS_FORMAT_JPEG: "image/jpeg"

    • CUPS_FORMAT_PDF: "application/pdf"

    • CUPS_FORMAT_POSTSCRIPT: "application/postscript"

    • CUPS_FORMAT_TEXT: "text/plain"

    The num_options and options arguments specify per-document print options, which at present must be 0 and NULL. The last_document argument specifies whether this is the last document in the job.

    For example, the following code submits a PDF file to the job that was just created:

    FILE *fp = fopen("filename.pdf", "rb");
    size_t bytes;
    char buffer[65536];
    
    if (cupsStartDestDocument(CUPS_HTTP_DEFAULT, dest, info,
                              job_id, "filename.pdf", 0, NULL,
                              1) == HTTP_STATUS_CONTINUE)
    {
      while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0)
        if (cupsWriteRequestData(CUPS_HTTP_DEFAULT, buffer,
                                 bytes) != HTTP_STATUS_CONTINUE)
          break;
    
      if (cupsFinishDestDocument(CUPS_HTTP_DEFAULT, dest,
                                 info) == IPP_STATUS_OK)
        puts("Document send succeeded.");
      else
        printf("Document send failed: %s\n",
               cupsLastErrorString());
    }
    
    fclose(fp);
    

    Sending IPP Requests

    CUPS provides a rich API for sending IPP requests to the scheduler or printers, typically from management or utility applications whose primary purpose is not to send print jobs.

    Connecting to the Scheduler or Printer

    The connection to the scheduler or printer is represented by the HTTP connection type http_t. The cupsConnectDest function connects to the scheduler or printer associated with the destination:

    http_t *
    cupsConnectDest(cups_dest_t *dest, unsigned flags, int msec,
                    int *cancel, char *resource,
                    size_t resourcesize, cups_dest_cb_t cb,
                    void *user_data);
    

    The dest argument specifies the destination to connect to.

    The flags argument specifies whether you want to connect to the scheduler (CUPS_DEST_FLAGS_NONE) or device/printer (CUPS_DEST_FLAGS_DEVICE) associated with the destination.

    The msec argument specifies how long you are willing to wait for the connection to be established in milliseconds. Specify a value of -1 to wait indefinitely.

    The cancel argument specifies the address of an integer variable that can be set to a non-zero value to cancel the connection. Specify a value of NULL to not provide a cancel variable.

    The resource and resourcesize arguments specify the address and size of a character string array to hold the path to use when sending an IPP request.

    The cb and user_data arguments specify a destination callback function that returns 1 to continue connecting or 0 to stop. The destination callback work the same way as the one used for the cupsEnumDests function.

    On success, a HTTP connection is returned that can be used to send IPP requests and get IPP responses.

    For example, the following code connects to the printer associated with a destination with a 30 second timeout:

    char resource[256];
    http_t *http = cupsConnectDest(dest, CUPS_DEST_FLAGS_DEVICE,
                                   30000, NULL, resource,
                                   sizeof(resource), NULL, NULL);
    

    Creating an IPP Request

    IPP requests are represented by the IPP message type ipp_t and each IPP attribute in the request is representing using the type ipp_attribute_t. Each IPP request includes an operation code (IPP_OP_CREATE_JOB, IPP_OP_GET_PRINTER_ATTRIBUTES, etc.) and a 32-bit integer identifier.

    The ippNewRequest function creates a new IPP request:

    ipp_t *
    ippNewRequest(ipp_op_t op);
    

    The op argument specifies the IPP operation code for the request. For example, the following code creates an IPP Get-Printer-Attributes request:

    ipp_t *request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES);
    

    The request identifier is automatically set to a unique value for the current process.

    Each IPP request starts with two IPP attributes, "attributes-charset" and "attributes-natural-language", followed by IPP attribute(s) that specify the target of the operation. The ippNewRequest automatically adds the correct "attributes-charset" and "attributes-natural-language" attributes, but you must add the target attribute(s). For example, the following code adds the "printer-uri" attribute to the IPP Get-Printer-Attributes request to specify which printer is being queried:

    const char *printer_uri = cupsGetOption("device-uri",
                                            dest->num_options,
                                            dest->options);
    
    ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
                 "printer-uri", NULL, printer_uri);
    

    Note:

    If we wanted to query the scheduler instead of the device, we would look up the "printer-uri-supported" option instead of the "device-uri" value.

    The ippAddString function adds the "printer-uri" attribute to the IPP request. The IPP_TAG_OPERATION argument specifies that the attribute is part of the operation. The IPP_TAG_URI argument specifies that the value is a Universal Resource Identifier (URI) string. The NULL argument specifies there is no language (English, French, Japanese, etc.) associated with the string, and the printer_uri argument specifies the string value.

    The IPP Get-Printer-Attributes request also supports an IPP attribute called "requested-attributes" that lists the attributes and values you are interested in. For example, the following code requests the printer state attributes:

    static const char * const requested_attributes[] =
    {
      "printer-state",
      "printer-state-message",
      "printer-state-reasons"
    };
    
    ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
                  "requested-attributes", 3, NULL,
                  requested_attributes);
    

    The ippAddStrings function adds an attribute with one or more strings, in this case three. The IPP_TAG_KEYWORD argument specifies that the strings are keyword values, which are used for attribute names. All strings use the same language (NULL), and the attribute will contain the three strings in the array requested_attributes.

    CUPS provides many functions to adding attributes of different types:

    • ippAddBoolean adds a boolean (IPP_TAG_BOOLEAN) attribute with one value.

    • ippAddInteger adds an enum (IPP_TAG_ENUM) or integer (IPP_TAG_INTEGER) attribute with one value.

    • ippAddIntegers adds an enum or integer attribute with one or more values.

    • ippAddOctetString adds an octetString attribute with one value.

    • ippAddOutOfBand adds a admin-defined (IPP_TAG_ADMINDEFINE), default (IPP_TAG_DEFAULT), delete-attribute (IPP_TAG_DELETEATTR), no-value (IPP_TAG_NOVALUE), not-settable (IPP_TAG_NOTSETTABLE), unknown (IPP_TAG_UNKNOWN), or unsupported (IPP_TAG_UNSUPPORTED_VALUE) out-of-band attribute.

    • ippAddRange adds a rangeOfInteger attribute with one range.

    • ippAddRanges adds a rangeOfInteger attribute with one or more ranges.

    • ippAddResolution adds a resolution attribute with one resolution.

    • ippAddResolutions adds a resolution attribute with one or more resolutions.

    • ippAddString adds a charset (IPP_TAG_CHARSET), keyword (IPP_TAG_KEYWORD), mimeMediaType (IPP_TAG_MIMETYPE), name (IPP_TAG_NAME and IPP_TAG_NAMELANG), naturalLanguage (IPP_TAG_NATURAL_LANGUAGE), text (IPP_TAG_TEXT and IPP_TAG_TEXTLANG), uri (IPP_TAG_URI), or uriScheme (IPP_TAG_URISCHEME) attribute with one value.

    • ippAddStrings adds a charset, keyword, mimeMediaType, name, naturalLanguage, text, uri, or uriScheme attribute with one or more values.

    Sending the IPP Request

    Once you have created the IPP request, you can send it using the cupsDoRequest function. For example, the following code sends the IPP Get-Printer-Attributes request to the destination and saves the response:

    ipp_t *response = cupsDoRequest(http, request, resource);
    

    For requests like Send-Document that include a file, the cupsDoFileRequest function should be used:

    ipp_t *response = cupsDoFileRequest(http, request, resource,
                                        filename);
    

    Both cupsDoRequest and cupsDoFileRequest free the IPP request. If a valid IPP response is received, it is stored in a new IPP message (ipp_t) and returned to the caller. Otherwise NULL is returned.

    The status from the most recent request can be queried using the cupsLastError function, for example:

    if (cupsLastError() >= IPP_STATUS_ERROR_BAD_REQUEST)
    {
      /* request failed */
    }
    

    A human-readable error message is also available using the cupsLastErrorString function:

    if (cupsLastError() >= IPP_STATUS_ERROR_BAD_REQUEST)
    {
      /* request failed */
      printf("Request failed: %s\n", cupsLastErrorString());
    }
    

    Processing the IPP Response

    Each response to an IPP request is also an IPP message (ipp_t) with its own IPP attributes (ipp_attribute_t) that includes a status code (IPP_STATUS_OK, IPP_STATUS_ERROR_BAD_REQUEST, etc.) and the corresponding 32-bit integer identifier from the request.

    For example, the following code finds the printer state attributes and prints their values:

    ipp_attribute_t *attr;
    
    if ((attr = ippFindAttribute(response, "printer-state",
                                 IPP_TAG_ENUM)) != NULL)
    {
      printf("printer-state=%s\n",
             ippEnumString("printer-state", ippGetInteger(attr, 0)));
    }
    else
      puts("printer-state=unknown");
    
    if ((attr = ippFindAttribute(response, "printer-state-message",
                                 IPP_TAG_TEXT)) != NULL)
    {
      printf("printer-state-message=\"%s\"\n",
             ippGetString(attr, 0, NULL)));
    }
    
    if ((attr = ippFindAttribute(response, "printer-state-reasons",
                                 IPP_TAG_KEYWORD)) != NULL)
    {
      int i, count = ippGetCount(attr);
    
      puts("printer-state-reasons=");
      for (i = 0; i < count; i ++)
        printf("    %s\n", ippGetString(attr, i, NULL)));
    }
    

    The ippGetCount function returns the number of values in an attribute.

    The ippGetInteger and ippGetString functions return a single integer or string value from an attribute.

    The ippEnumString function converts a enum value to its keyword (string) equivalent.

    Once you are done using the IPP response message, free it using the ippDelete function:

    ippDelete(response);
    

    Authentication

    CUPS normally handles authentication through the console. GUI applications should set a password callback using the cupsSetPasswordCB2 function:

    void
    cupsSetPasswordCB2(cups_password_cb2_t cb, void *user_data);
    

    The password callback will be called when needed and is responsible for setting the current user name using cupsSetUser and returning a string:

    const char *
    cups_password_cb2(const char *prompt, http_t *http,
                      const char *method, const char *resource,
                      void *user_data);
    

    The prompt argument is a string from CUPS that should be displayed to the user.

    The http argument is the connection hosting the request that is being authenticated. The password callback can call the httpGetField and httpGetSubField functions to look for additional details concerning the authentication challenge.

    The method argument specifies the HTTP method used for the request and is typically "POST".

    The resource argument specifies the path used for the request.

    The user_data argument provides the user data pointer from the cupsSetPasswordCB2 call.

    Functions

    cupsAddDest

    Add a destination to the list of destinations.

    int cupsAddDest(const char *name, const char *instance, int num_dests, cups_dest_t **dests);

    Parameters

    name Destination name
    instance Instance name or NULL for none/primary
    num_dests Number of destinations
    dests Destinations

    Return Value

    New number of destinations

    Discussion

    This function cannot be used to add a new class or printer queue, it only adds a new container of saved options for the named destination or instance.

    If the named destination already exists, the destination list is returned unchanged. Adding a new instance of a destination creates a copy of that destination's options.

    Use the cupsSaveDests function to save the updated list of destinations to the user's lpoptions file.

     CUPS 2.3/macOS 10.14 cupsAddDestMediaOptions

    Add the option corresponding to the specified media size.

    int cupsAddDestMediaOptions(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size, int num_options, cups_option_t **options);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    flags Media matching flags
    size Media size
    num_options Current number of options
    options Options

    Return Value

    New number of options

     CUPS 2.2.4/macOS 10.13 cupsAddIntegerOption

    Add an integer option to an option array.

    int cupsAddIntegerOption(const char *name, int value, int num_options, cups_option_t **options);

    Parameters

    name Name of option
    value Value of option
    num_options Number of options
    options Pointer to options

    Return Value

    Number of options

    Discussion

    New option arrays can be initialized simply by passing 0 for the "num_options" parameter.

    cupsAddOption

    Add an option to an option array.

    int cupsAddOption(const char *name, const char *value, int num_options, cups_option_t **options);

    Parameters

    name Name of option
    value Value of option
    num_options Number of options
    options Pointer to options

    Return Value

    Number of options

    Discussion

    New option arrays can be initialized simply by passing 0 for the "num_options" parameter.

     CUPS 1.2/macOS 10.5 cupsArrayAdd

    Add an element to the array.

    int cupsArrayAdd(cups_array_t *a, void *e);

    Parameters

    a Array
    e Element

    Return Value

    1 on success, 0 on failure

    Discussion

    When adding an element to a sorted array, non-unique elements are appended at the end of the run of identical elements. For unsorted arrays, the element is appended to the end of the array.

     CUPS 1.2/macOS 10.5 cupsArrayClear

    Clear the array.

    void cupsArrayClear(cups_array_t *a);

    Parameters

    a Array

    Discussion

    This function is equivalent to removing all elements in the array. The caller is responsible for freeing the memory used by the elements themselves.

     CUPS 1.2/macOS 10.5 cupsArrayCount

    Get the number of elements in the array.

    int cupsArrayCount(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Number of elements

     CUPS 1.2/macOS 10.5 cupsArrayCurrent

    Return the current element in the array.

    void *cupsArrayCurrent(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Element

    Discussion

    The current element is undefined until you call cupsArrayFind, cupsArrayFirst, or cupsArrayIndex, or cupsArrayLast.

     CUPS 1.2/macOS 10.5 cupsArrayDelete

    Free all memory used by the array.

    void cupsArrayDelete(cups_array_t *a);

    Parameters

    a Array

    Discussion

    The caller is responsible for freeing the memory used by the elements themselves.

     CUPS 1.2/macOS 10.5 cupsArrayDup

    Duplicate the array.

    cups_array_t *cupsArrayDup(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Duplicate array

     CUPS 1.2/macOS 10.5 cupsArrayFind

    Find an element in the array.

    void *cupsArrayFind(cups_array_t *a, void *e);

    Parameters

    a Array
    e Element

    Return Value

    Element found or NULL

     CUPS 1.2/macOS 10.5 cupsArrayFirst

    Get the first element in the array.

    void *cupsArrayFirst(cups_array_t *a);

    Parameters

    a Array

    Return Value

    First element or NULL if the array is empty

     CUPS 1.3/macOS 10.5 cupsArrayGetIndex

    Get the index of the current element.

    int cupsArrayGetIndex(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Index of the current element, starting at 0

    Discussion

    The current element is undefined until you call cupsArrayFind, cupsArrayFirst, or cupsArrayIndex, or cupsArrayLast.

     CUPS 1.3/macOS 10.5 cupsArrayGetInsert

    Get the index of the last inserted element.

    int cupsArrayGetInsert(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Index of the last inserted element, starting at 0

     CUPS 1.2/macOS 10.5 cupsArrayIndex

    Get the N-th element in the array.

    void *cupsArrayIndex(cups_array_t *a, int n);

    Parameters

    a Array
    n Index into array, starting at 0

    Return Value

    N-th element or NULL

     CUPS 1.2/macOS 10.5 cupsArrayInsert

    Insert an element in the array.

    int cupsArrayInsert(cups_array_t *a, void *e);

    Parameters

    a Array
    e Element

    Return Value

    0 on failure, 1 on success

    Discussion

    When inserting an element in a sorted array, non-unique elements are inserted at the beginning of the run of identical elements. For unsorted arrays, the element is inserted at the beginning of the array.

     CUPS 1.2/macOS 10.5 cupsArrayLast

    Get the last element in the array.

    void *cupsArrayLast(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Last element or NULL if the array is empty

     CUPS 1.2/macOS 10.5 cupsArrayNew

    Create a new array.

    cups_array_t *cupsArrayNew(cups_array_func_t f, void *d);

    Parameters

    f Comparison function or NULL for an unsorted array
    d User data pointer or NULL

    Return Value

    Array

    Discussion

    The comparison function ("f") is used to create a sorted array. The function receives pointers to two elements and the user data pointer ("d") - the user data pointer argument can safely be omitted when not required so functions like strcmp can be used for sorted string arrays.

     CUPS 1.3/macOS 10.5 cupsArrayNew2

    Create a new array with hash.

    cups_array_t *cupsArrayNew2(cups_array_func_t f, void *d, cups_ahash_func_t h, int hsize);

    Parameters

    f Comparison function or NULL for an unsorted array
    d User data or NULL
    h Hash function or NULL for unhashed lookups
    hsize Hash size (>= 0)

    Return Value

    Array

    Discussion

    The comparison function ("f") is used to create a sorted array. The function receives pointers to two elements and the user data pointer ("d") - the user data pointer argument can safely be omitted when not required so functions like strcmp can be used for sorted string arrays.

    The hash function ("h") is used to implement cached lookups with the specified hash size ("hsize").

     CUPS 1.5/macOS 10.7 cupsArrayNew3

    Create a new array with hash and/or free function.

    cups_array_t *cupsArrayNew3(cups_array_func_t f, void *d, cups_ahash_func_t h, int hsize, cups_acopy_func_t cf, cups_afree_func_t ff);

    Parameters

    f Comparison function or NULL for an unsorted array
    d User data or NULL
    h Hash function or NULL for unhashed lookups
    hsize Hash size (>= 0)
    cf Copy function
    ff Free function

    Return Value

    Array

    Discussion

    The comparison function ("f") is used to create a sorted array. The function receives pointers to two elements and the user data pointer ("d") - the user data pointer argument can safely be omitted when not required so functions like strcmp can be used for sorted string arrays.

    The hash function ("h") is used to implement cached lookups with the specified hash size ("hsize").

    The copy function ("cf") is used to automatically copy/retain elements when added or the array is copied.

    The free function ("cf") is used to automatically free/release elements when removed or the array is deleted.

     CUPS 1.2/macOS 10.5 cupsArrayNext

    Get the next element in the array.

    void *cupsArrayNext(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Next element or NULL

    Discussion

    This function is equivalent to "cupsArrayIndex(a, cupsArrayGetIndex(a) + 1)".

    The next element is undefined until you call cupsArrayFind, cupsArrayFirst, or cupsArrayIndex, or cupsArrayLast to set the current element.

     CUPS 1.2/macOS 10.5 cupsArrayPrev

    Get the previous element in the array.

    void *cupsArrayPrev(cups_array_t *a);

    Parameters

    a Array

    Return Value

    Previous element or NULL

    Discussion

    This function is equivalent to "cupsArrayIndex(a, cupsArrayGetIndex(a) - 1)".

    The previous element is undefined until you call cupsArrayFind, cupsArrayFirst, or cupsArrayIndex, or cupsArrayLast to set the current element.

     CUPS 1.2/macOS 10.5 cupsArrayRemove

    Remove an element from the array.

    int cupsArrayRemove(cups_array_t *a, void *e);

    Parameters

    a Array
    e Element

    Return Value

    1 on success, 0 on failure

    Discussion

    If more than one element matches "e", only the first matching element is removed.

    The caller is responsible for freeing the memory used by the removed element.

     CUPS 1.2/macOS 10.5 cupsArrayRestore

    Reset the current element to the last cupsArraySave.

    void *cupsArrayRestore(cups_array_t *a);

    Parameters

    a Array

    Return Value

    New current element

     CUPS 1.2/macOS 10.5 cupsArraySave

    Mark the current element for a later cupsArrayRestore.

    int cupsArraySave(cups_array_t *a);

    Parameters

    a Array

    Return Value

    1 on success, 0 on failure

    Discussion

    The current element is undefined until you call cupsArrayFind, cupsArrayFirst, or cupsArrayIndex, or cupsArrayLast to set the current element.

    The save/restore stack is guaranteed to be at least 32 elements deep.

     CUPS 1.2/macOS 10.5 cupsArrayUserData

    Return the user data for an array.

    void *cupsArrayUserData(cups_array_t *a);

    Parameters

    a Array

    Return Value

    User data

     CUPS 1.6/macOS 10.8 cupsCancelDestJob

    Cancel a job on a destination.

    ipp_status_t cupsCancelDestJob(http_t *http, cups_dest_t *dest, int job_id);

    Parameters

    http Connection to destination
    dest Destination
    job_id Job ID

    Return Value

    Status of cancel operation

    Discussion

    The "job_id" is the number returned by cupsCreateDestJob.

    Returns IPP_STATUS_OK on success and IPP_STATUS_ERROR_NOT_AUTHORIZED or IPP_STATUS_ERROR_FORBIDDEN on failure.

     CUPS 1.6/macOS 10.8 cupsCheckDestSupported

    Check that the option and value are supported by the destination.

    int cupsCheckDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option
    value Value or NULL

    Return Value

    1 if supported, 0 otherwise

    Discussion

    Returns 1 if supported, 0 otherwise.

     CUPS 1.6/macOS 10.8 cupsCloseDestJob

    Close a job and start printing.

    ipp_status_t cupsCloseDestJob(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id);

    Parameters

    http Connection to destination
    dest Destination
    info Destination information
    job_id Job ID

    Return Value

    IPP status code

    Discussion

    Use when the last call to cupsStartDocument passed 0 for "last_document". "job_id" is the job ID returned by cupsCreateDestJob. Returns IPP_STATUS_OK on success.

     CUPS 1.6/macOS 10.8 cupsConnectDest

    Open a connection to the destination.

    http_t *cupsConnectDest(cups_dest_t *dest, unsigned flags, int msec, int *cancel, char *resource, size_t resourcesize, cups_dest_cb_t cb, void *user_data);

    Parameters

    dest Destination
    flags Connection flags
    msec Timeout in milliseconds
    cancel Pointer to "cancel" variable
    resource Resource buffer
    resourcesize Size of resource buffer
    cb Callback function
    user_data User data pointer

    Return Value

    Connection to destination or NULL

    Discussion

    Connect to the destination, returning a new http_t connection object and optionally the resource path to use for the destination. These calls will block until a connection is made, the timeout expires, the integer pointed to by "cancel" is non-zero, or the callback function (or block) returns 0. The caller is responsible for calling httpClose on the returned connection.

    Starting with CUPS 2.2.4, the caller can pass CUPS_DEST_FLAGS_DEVICE for the "flags" argument to connect directly to the device associated with the destination. Otherwise, the connection is made to the CUPS scheduler associated with the destination.

     CUPS 1.6/macOS 10.8 cupsCopyDest

    Copy a destination.

    int cupsCopyDest(cups_dest_t *dest, int num_dests, cups_dest_t **dests);

    Parameters

    dest Destination to copy
    num_dests Number of destinations
    dests Destination array

    Return Value

    New number of destinations

    Discussion

    Make a copy of the destination to an array of destinations (or just a single copy) - for use with the cupsEnumDests* functions. The caller is responsible for calling cupsFreeDests() on the returned object(s).

     CUPS 1.6/macOS 10.8 cupsCopyDestConflicts

    Get conflicts and resolutions for a new option/value pair.

    int cupsCopyDestConflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options, const char *new_option, const char *new_value, int *num_conflicts, cups_option_t **conflicts, int *num_resolved, cups_option_t **resolved);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    num_options Number of current options
    options Current options
    new_option New option
    new_value New value
    num_conflicts Number of conflicting options
    conflicts Conflicting options
    num_resolved Number of options to resolve
    resolved Resolved options

    Return Value

    1 if there is a conflict, 0 if none, -1 on error

    Discussion

    "num_options" and "options" represent the currently selected options by the user. "new_option" and "new_value" are the setting the user has just changed.

    Returns 1 if there is a conflict, 0 if there are no conflicts, and -1 if there was an unrecoverable error such as a resolver loop.

    If "num_conflicts" and "conflicts" are not NULL, they are set to contain the list of conflicting option/value pairs. Similarly, if "num_resolved" and "resolved" are not NULL they will be set to the list of changes needed to resolve the conflict.

    If cupsCopyDestConflicts returns 1 but "num_resolved" and "resolved" are set to 0 and NULL, respectively, then the conflict cannot be resolved.

     CUPS 1.6/macOS 10.8 cupsCopyDestInfo

    Get the supported values/capabilities for the destination.

    cups_dinfo_t *cupsCopyDestInfo(http_t *http, cups_dest_t *dest);

    Parameters

    http Connection to destination
    dest Destination

    Return Value

    Destination information

    Discussion

    The caller is responsible for calling cupsFreeDestInfo on the return value. NULL is returned on error.

     CUPS 1.6/macOS 10.8 cupsCreateDestJob

    Create a job on a destination.

    ipp_status_t cupsCreateDestJob(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int *job_id, const char *title, int num_options, cups_option_t *options);

    Parameters

    http Connection to destination
    dest Destination
    info Destination information
    job_id Job ID or 0 on error
    title Job name
    num_options Number of job options
    options Job options

    Return Value

    IPP status code

    Discussion

    Returns IPP_STATUS_OK or IPP_STATUS_OK_SUBST on success, saving the job ID in the variable pointed to by "job_id".

     CUPS 1.2/macOS 10.5 cupsDirClose

    Close a directory.

    void cupsDirClose(cups_dir_t *dp);

    Parameters

    dp Directory pointer

     CUPS 1.2/macOS 10.5 cupsDirOpen

    Open a directory.

    cups_dir_t *cupsDirOpen(const char *directory);

    Parameters

    directory Directory name

    Return Value

    Directory pointer or NULL if the directory could not be opened.

     CUPS 1.2/macOS 10.5 cupsDirRead

    Read the next directory entry.

    cups_dentry_t *cupsDirRead(cups_dir_t *dp);

    Parameters

    dp Directory pointer

    Return Value

    Directory entry or NULL when there are no more

     CUPS 1.2/macOS 10.5 cupsDirRewind

    Rewind to the start of the directory.

    void cupsDirRewind(cups_dir_t *dp);

    Parameters

    dp Directory pointer

     CUPS 1.1.20/macOS 10.4 cupsDoAuthentication

    Authenticate a request.

    int cupsDoAuthentication(http_t *http, const char *method, const char *resource);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    method Request method ("GET", "POST", "PUT")
    resource Resource path

    Return Value

    0 on success, -1 on error

    Discussion

    This function should be called in response to a HTTP_STATUS_UNAUTHORIZED status, prior to resubmitting your request.

     CUPS 2.3/macOS 10.14 cupsEncodeOption

    Encode a single option into an IPP attribute.

    ipp_attribute_t *cupsEncodeOption(ipp_t *ipp, ipp_tag_t group_tag, const char *name, const char *value);

    Parameters

    ipp IPP request/response
    group_tag Attribute group
    name Option name
    value Option string value

    Return Value

    New attribute or NULL on error

    cupsEncodeOptions

    Encode printer options into IPP attributes.

    void cupsEncodeOptions(ipp_t *ipp, int num_options, cups_option_t *options);

    Parameters

    ipp IPP request/response
    num_options Number of options
    options Options

    Discussion

    This function adds operation, job, and then subscription attributes, in that order. Use the cupsEncodeOptions2 function to add attributes for a single group.

     CUPS 1.2/macOS 10.5 cupsEncodeOptions2

    Encode printer options into IPP attributes for a group.

    void cupsEncodeOptions2(ipp_t *ipp, int num_options, cups_option_t *options, ipp_tag_t group_tag);

    Parameters

    ipp IPP request/response
    num_options Number of options
    options Options
    group_tag Group to encode

    Discussion

    This function only adds attributes for a single group. Call this function multiple times for each group, or use cupsEncodeOptions to add the standard groups.

    cupsEncryption

    Get the current encryption settings.

    http_encryption_t cupsEncryption(void);

    Return Value

    Encryption settings

    Discussion

    The default encryption setting comes from the CUPS_ENCRYPTION environment variable, then the ~/.cups/client.conf file, and finally the /etc/cups/client.conf file. If not set, the default is HTTP_ENCRYPTION_IF_REQUESTED.

    Note: The current encryption setting is tracked separately for each thread in a program. Multi-threaded programs that override the setting via the cupsSetEncryption function need to do so in each thread for the same setting to be used.

     CUPS 1.6/macOS 10.8 cupsEnumDests

    Enumerate available destinations with a callback function.

    int cupsEnumDests(unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_cb_t cb, void *user_data);

    Parameters

    flags Enumeration flags
    msec Timeout in milliseconds, -1 for indefinite
    cancel Pointer to "cancel" variable
    type Printer type bits
    mask Mask for printer type bits
    cb Callback function
    user_data User data

    Return Value

    1 on success, 0 on failure

    Discussion

    Destinations are enumerated from one or more sources. The callback function receives the user_data pointer and the destination pointer which can be used as input to the cupsCopyDest function. The function must return 1 to continue enumeration or 0 to stop.

    The type and mask arguments allow the caller to filter the destinations that are enumerated. Passing 0 for both will enumerate all printers. The constant CUPS_PRINTER_DISCOVERED is used to filter on destinations that are available but have not yet been added locally.

    Enumeration happens on the current thread and does not return until all destinations have been enumerated or the callback function returns 0.

    Note: The callback function will likely receive multiple updates for the same destinations - it is up to the caller to suppress any duplicate destinations.

     CUPS 1.2/macOS 10.5 cupsFileClose

    Close a CUPS file.

    int cupsFileClose(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    0 on success, -1 on error

     CUPS 1.2/macOS 10.5 cupsFileCompression

    Return whether a file is compressed.

    int cupsFileCompression(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    CUPS_FILE_NONE or CUPS_FILE_GZIP

     CUPS 1.2/macOS 10.5 cupsFileEOF

    Return the end-of-file status.

    int cupsFileEOF(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    1 on end of file, 0 otherwise

     CUPS 1.2/macOS 10.5 cupsFileFind

    Find a file using the specified path.

    const char *cupsFileFind(const char *filename, const char *path, int executable, char *buffer, int bufsize);

    Parameters

    filename File to find
    path Colon/semicolon-separated path
    executable 1 = executable files, 0 = any file/dir
    buffer Filename buffer
    bufsize Size of filename buffer

    Return Value

    Full path to file or NULL if not found

    Discussion

    This function allows the paths in the path string to be separated by colons (UNIX standard) or semicolons (Windows standard) and stores the result in the buffer supplied. If the file cannot be found in any of the supplied paths, NULL is returned. A NULL path only matches the current directory.

     CUPS 1.2/macOS 10.5 cupsFileFlush

    Flush pending output.

    int cupsFileFlush(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    0 on success, -1 on error

     CUPS 1.2/macOS 10.5 cupsFileGetChar

    Get a single character from a file.

    int cupsFileGetChar(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    Character or -1 on end of file

     CUPS 1.2/macOS 10.5 cupsFileGetConf

    Get a line from a configuration file.

    char *cupsFileGetConf(cups_file_t *fp, char *buf, size_t buflen, char **value, int *linenum);

    Parameters

    fp CUPS file
    buf String buffer
    buflen Size of string buffer
    value Pointer to value
    linenum Current line number

    Return Value

    Line read or NULL on end of file or error

     CUPS 1.2/macOS 10.5 cupsFileGetLine

    Get a CR and/or LF-terminated line that may contain binary data.

    size_t cupsFileGetLine(cups_file_t *fp, char *buf, size_t buflen);

    Parameters

    fp File to read from
    buf Buffer
    buflen Size of buffer

    Return Value

    Number of bytes on line or 0 on end of file

    Discussion

    This function differs from cupsFileGets in that the trailing CR and LF are preserved, as is any binary data on the line. The buffer is nul-terminated, however you should use the returned length to determine the number of bytes on the line.

     CUPS 1.2/macOS 10.5 cupsFileGets

    Get a CR and/or LF-terminated line.

    char *cupsFileGets(cups_file_t *fp, char *buf, size_t buflen);

    Parameters

    fp CUPS file
    buf String buffer
    buflen Size of string buffer

    Return Value

    Line read or NULL on end of file or error

     CUPS 1.2/macOS 10.5 cupsFileLock

    Temporarily lock access to a file.

    int cupsFileLock(cups_file_t *fp, int block);

    Parameters

    fp CUPS file
    block 1 to wait for the lock, 0 to fail right away

    Return Value

    0 on success, -1 on error

     CUPS 1.2/macOS 10.5 cupsFileNumber

    Return the file descriptor associated with a CUPS file.

    int cupsFileNumber(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    File descriptor

     CUPS 1.2/macOS 10.5 cupsFileOpen

    Open a CUPS file.

    cups_file_t *cupsFileOpen(const char *filename, const char *mode);

    Parameters

    filename Name of file
    mode Open mode

    Return Value

    CUPS file or NULL if the file or socket cannot be opened

    Discussion

    The "mode" parameter can be "r" to read, "w" to write, overwriting any existing file, "a" to append to an existing file or create a new file, or "s" to open a socket connection.

    When opening for writing ("w"), an optional number from 1 to 9 can be supplied which enables Flate compression of the file. Compression is not supported for the "a" (append) mode.

    When opening a socket connection, the filename is a string of the form "address:port" or "hostname:port". The socket will make an IPv4 or IPv6 connection as needed, generally preferring IPv6 connections when there is a choice.

     CUPS 1.2/macOS 10.5 cupsFileOpenFd

    Open a CUPS file using a file descriptor.

    cups_file_t *cupsFileOpenFd(int fd, const char *mode);

    Parameters

    fd File descriptor
    mode Open mode

    Return Value

    CUPS file or NULL if the file could not be opened

    Discussion

    The "mode" parameter can be "r" to read, "w" to write, "a" to append, or "s" to treat the file descriptor as a bidirectional socket connection.

    When opening for writing ("w"), an optional number from 1 to 9 can be supplied which enables Flate compression of the file. Compression is not supported for the "a" (append) mode.

     CUPS 1.2/macOS 10.5 cupsFilePeekChar

    Peek at the next character from a file.

    int cupsFilePeekChar(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    Character or -1 on end of file

     CUPS 1.2/macOS 10.5 cupsFilePrintf

    Write a formatted string.

    int cupsFilePrintf(cups_file_t *fp, const char *format, ...);

    Parameters

    fp CUPS file
    format Printf-style format string
    ... Additional args as necessary

    Return Value

    Number of bytes written or -1 on error

     CUPS 1.2/macOS 10.5 cupsFilePutChar

    Write a character.

    int cupsFilePutChar(cups_file_t *fp, int c);

    Parameters

    fp CUPS file
    c Character to write

    Return Value

    0 on success, -1 on error

     CUPS 1.4/macOS 10.6 cupsFilePutConf

    Write a configuration line.

    ssize_t cupsFilePutConf(cups_file_t *fp, const char *directive, const char *value);

    Parameters

    fp CUPS file
    directive Directive
    value Value

    Return Value

    Number of bytes written or -1 on error

    Discussion

    This function handles any comment escaping of the value.

     CUPS 1.2/macOS 10.5 cupsFilePuts

    Write a string.

    int cupsFilePuts(cups_file_t *fp, const char *s);

    Parameters

    fp CUPS file
    s String to write

    Return Value

    Number of bytes written or -1 on error

    Discussion

    Like the fputs function, no newline is appended to the string.

     CUPS 1.2/macOS 10.5 cupsFileRead

    Read from a file.

    ssize_t cupsFileRead(cups_file_t *fp, char *buf, size_t bytes);

    Parameters

    fp CUPS file
    buf Buffer
    bytes Number of bytes to read

    Return Value

    Number of bytes read or -1 on error

     CUPS 1.2/macOS 10.5 cupsFileRewind

    Set the current file position to the beginning of the file.

    off_t cupsFileRewind(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    New file position or -1 on error

     CUPS 1.2/macOS 10.5 cupsFileSeek

    Seek in a file.

    off_t cupsFileSeek(cups_file_t *fp, off_t pos);

    Parameters

    fp CUPS file
    pos Position in file

    Return Value

    New file position or -1 on error

     CUPS 1.2/macOS 10.5 cupsFileStderr

    Return a CUPS file associated with stderr.

    cups_file_t *cupsFileStderr(void);

    Return Value

    CUPS file

     CUPS 1.2/macOS 10.5 cupsFileStdin

    Return a CUPS file associated with stdin.

    cups_file_t *cupsFileStdin(void);

    Return Value

    CUPS file

     CUPS 1.2/macOS 10.5 cupsFileStdout

    Return a CUPS file associated with stdout.

    cups_file_t *cupsFileStdout(void);

    Return Value

    CUPS file

     CUPS 1.2/macOS 10.5 cupsFileTell

    Return the current file position.

    off_t cupsFileTell(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    File position

     CUPS 1.2/macOS 10.5 cupsFileUnlock

    Unlock access to a file.

    int cupsFileUnlock(cups_file_t *fp);

    Parameters

    fp CUPS file

    Return Value

    0 on success, -1 on error

     CUPS 1.2/macOS 10.5 cupsFileWrite

    Write to a file.

    ssize_t cupsFileWrite(cups_file_t *fp, const char *buf, size_t bytes);

    Parameters

    fp CUPS file
    buf Buffer
    bytes Number of bytes to write

    Return Value

    Number of bytes written or -1 on error

     CUPS 1.7/macOS 10.9 cupsFindDestDefault

    Find the default value(s) for the given option.

    ipp_attribute_t *cupsFindDestDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option/attribute name

    Return Value

    Default attribute or NULL for none

    Discussion

    The returned value is an IPP attribute. Use the ippGetBoolean, ippGetCollection, ippGetCount, ippGetDate, ippGetInteger, ippGetOctetString, ippGetRange, ippGetResolution, ippGetString, and ippGetValueTag functions to inspect the default value(s) as needed.

     CUPS 1.7/macOS 10.9 cupsFindDestReady

    Find the default value(s) for the given option.

    ipp_attribute_t *cupsFindDestReady(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option/attribute name

    Return Value

    Default attribute or NULL for none

    Discussion

    The returned value is an IPP attribute. Use the ippGetBoolean, ippGetCollection, ippGetCount, ippGetDate, ippGetInteger, ippGetOctetString, ippGetRange, ippGetResolution, ippGetString, and ippGetValueTag functions to inspect the default value(s) as needed.

     CUPS 1.7/macOS 10.9 cupsFindDestSupported

    Find the default value(s) for the given option.

    ipp_attribute_t *cupsFindDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option/attribute name

    Return Value

    Default attribute or NULL for none

    Discussion

    The returned value is an IPP attribute. Use the ippGetBoolean, ippGetCollection, ippGetCount, ippGetDate, ippGetInteger, ippGetOctetString, ippGetRange, ippGetResolution, ippGetString, and ippGetValueTag functions to inspect the default value(s) as needed.

     CUPS 1.6/macOS 10.8 cupsFinishDestDocument

    Finish the current document.

    ipp_status_t cupsFinishDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info);

    Parameters

    http Connection to destination
    dest Destination
    info Destination information

    Return Value

    Status of document submission

    Discussion

    Returns IPP_STATUS_OK or IPP_STATUS_OK_SUBST on success.

     CUPS 1.6/macOS 10.8 cupsFreeDestInfo

    Free destination information obtained using cupsCopyDestInfo.

    void cupsFreeDestInfo(cups_dinfo_t *dinfo);

    Parameters

    dinfo Destination information

    cupsFreeDests

    Free the memory used by the list of destinations.

    void cupsFreeDests(int num_dests, cups_dest_t *dests);

    Parameters

    num_dests Number of destinations
    dests Destinations

    cupsFreeJobs

    Free memory used by job data.

    void cupsFreeJobs(int num_jobs, cups_job_t *jobs);

    Parameters

    num_jobs Number of jobs
    jobs Jobs

    cupsFreeOptions

    Free all memory used by options.

    void cupsFreeOptions(int num_options, cups_option_t *options);

    Parameters

    num_options Number of options
    options Pointer to options

    cupsGetDest

    Get the named destination from the list.

    cups_dest_t *cupsGetDest(const char *name, const char *instance, int num_dests, cups_dest_t *dests);

    Parameters

    name Destination name or NULL for the default destination
    instance Instance name or NULL
    num_dests Number of destinations
    dests Destinations

    Return Value

    Destination pointer or NULL

    Discussion

    Use the cupsEnumDests or cupsGetDests2 functions to get a list of supported destinations for the current user.

     CUPS 1.7/macOS 10.9 cupsGetDestMediaByIndex

    Get a media name, dimension, and margins for a specific size.

    int cupsGetDestMediaByIndex(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int n, unsigned flags, cups_size_t *size);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    n Media size number (0-based)
    flags Media flags
    size Media size information

    Return Value

    1 on success, 0 on failure

    Discussion

    The flags parameter determines which set of media are indexed. For example, passing CUPS_MEDIA_FLAGS_BORDERLESS will get the Nth borderless size supported by the printer.

     CUPS 1.6/macOS 10.8 cupsGetDestMediaByName

    Get media names, dimensions, and margins.

    int cupsGetDestMediaByName(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *media, unsigned flags, cups_size_t *size);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    media Media name
    flags Media matching flags
    size Media size information

    Return Value

    1 on match, 0 on failure

    Discussion

    The "media" string is a PWG media name. "Flags" provides some matching guidance (multiple flags can be combined):

    CUPS_MEDIA_FLAGS_DEFAULT = find the closest size supported by the printer, CUPS_MEDIA_FLAGS_BORDERLESS = find a borderless size, CUPS_MEDIA_FLAGS_DUPLEX = find a size compatible with 2-sided printing, CUPS_MEDIA_FLAGS_EXACT = find an exact match for the size, and CUPS_MEDIA_FLAGS_READY = if the printer supports media sensing, find the size amongst the "ready" media.

    The matching result (if any) is returned in the "cups_size_t" structure.

    Returns 1 when there is a match and 0 if there is not a match.

     CUPS 1.6/macOS 10.8 cupsGetDestMediaBySize

    Get media names, dimensions, and margins.

    int cupsGetDestMediaBySize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int width, int length, unsigned flags, cups_size_t *size);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    width Media width in hundredths of of millimeters
    length Media length in hundredths of of millimeters
    flags Media matching flags
    size Media size information

    Return Value

    1 on match, 0 on failure

    Discussion

    "Width" and "length" are the dimensions in hundredths of millimeters. "Flags" provides some matching guidance (multiple flags can be combined):

    CUPS_MEDIA_FLAGS_DEFAULT = find the closest size supported by the printer, CUPS_MEDIA_FLAGS_BORDERLESS = find a borderless size, CUPS_MEDIA_FLAGS_DUPLEX = find a size compatible with 2-sided printing, CUPS_MEDIA_FLAGS_EXACT = find an exact match for the size, and CUPS_MEDIA_FLAGS_READY = if the printer supports media sensing, find the size amongst the "ready" media.

    The matching result (if any) is returned in the "cups_size_t" structure.

    Returns 1 when there is a match and 0 if there is not a match.

     CUPS 1.7/macOS 10.9 cupsGetDestMediaCount

    Get the number of sizes supported by a destination.

    int cupsGetDestMediaCount(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    flags Media flags

    Return Value

    Number of sizes

    Discussion

    The flags parameter determines the set of media sizes that are counted. For example, passing CUPS_MEDIA_FLAGS_BORDERLESS will return the number of borderless sizes.

     CUPS 1.7/macOS 10.9 cupsGetDestMediaDefault

    Get the default size for a destination.

    int cupsGetDestMediaDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    flags Media flags
    size Media size information

    Return Value

    1 on success, 0 on failure

    Discussion

    The flags parameter determines which default size is returned. For example, passing CUPS_MEDIA_FLAGS_BORDERLESS will return the default borderless size, typically US Letter or A4, but sometimes 4x6 photo media.

     CUPS 2.0/macOS 10.10 cupsGetDestWithURI

    Get a destination associated with a URI.

    cups_dest_t *cupsGetDestWithURI(const char *name, const char *uri);

    Parameters

    name Desired printer name or NULL
    uri URI for the printer

    Return Value

    Destination or NULL

    Discussion

    "name" is the desired name for the printer. If NULL, a name will be created using the URI.

    "uri" is the "ipp" or "ipps" URI for the printer.

     CUPS 1.1.21/macOS 10.4 cupsGetDests2

    Get the list of destinations from the specified server.

    int cupsGetDests2(http_t *http, cups_dest_t **dests);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    dests Destinations

    Return Value

    Number of destinations

    Discussion

    Starting with CUPS 1.2, the returned list of destinations include the "printer-info", "printer-is-accepting-jobs", "printer-is-shared", "printer-make-and-model", "printer-state", "printer-state-change-time", "printer-state-reasons", "printer-type", and "printer-uri-supported" attributes as options.

    CUPS 1.4 adds the "marker-change-time", "marker-colors", "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", "marker-names", "marker-types", and "printer-commands" attributes as options.

    CUPS 2.2 adds accessible IPP printers to the list of destinations that can be used. The "printer-uri-supported" option will be present for those IPP printers that have been recently used.

    Use the cupsFreeDests function to free the destination list and the cupsGetDest function to find a particular destination.

     CUPS 2.2.4/macOS 10.13 cupsGetIntegerOption

    Get an integer option value.

    int cupsGetIntegerOption(const char *name, int num_options, cups_option_t *options);

    Parameters

    name Name of option
    num_options Number of options
    options Options

    Return Value

    Option value or INT_MIN

    Discussion

    INT_MIN is returned when the option does not exist, is not an integer, or exceeds the range of values for the "int" type.

     CUPS 1.1.21/macOS 10.4 cupsGetJobs2

    Get the jobs from the specified server.

    int cupsGetJobs2(http_t *http, cups_job_t **jobs, const char *name, int myjobs, int whichjobs);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    jobs Job data
    name NULL = all destinations, otherwise show jobs for named destination
    myjobs 0 = all users, 1 = mine
    whichjobs CUPS_WHICHJOBS_ALL, CUPS_WHICHJOBS_ACTIVE, or CUPS_WHICHJOBS_COMPLETED

    Return Value

    Number of jobs

    Discussion

    A "whichjobs" value of CUPS_WHICHJOBS_ALL returns all jobs regardless of state, while CUPS_WHICHJOBS_ACTIVE returns jobs that are pending, processing, or held and CUPS_WHICHJOBS_COMPLETED returns jobs that are stopped, canceled, aborted, or completed.

     CUPS 1.4/macOS 10.6 cupsGetNamedDest

    Get options for the named destination.

    cups_dest_t *cupsGetNamedDest(http_t *http, const char *name, const char *instance);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    name Destination name or NULL for the default destination
    instance Instance name or NULL

    Return Value

    Destination or NULL

    Discussion

    This function is optimized for retrieving a single destination and should be used instead of cupsGetDests2 and cupsGetDest when you either know the name of the destination or want to print to the default destination. If NULL is returned, the destination does not exist or there is no default destination.

    If "http" is CUPS_HTTP_DEFAULT, the connection to the default print server will be used.

    If "name" is NULL, the default printer for the current user will be returned.

    The returned destination must be freed using cupsFreeDests with a "num_dests" value of 1.

    cupsGetOption

    Get an option value.

    const char *cupsGetOption(const char *name, int num_options, cups_option_t *options);

    Parameters

    name Name of option
    num_options Number of options
    options Options

    Return Value

    Option value or NULL

     CUPS 1.4/macOS 10.6 cupsGetPassword2

    Get a password from the user using the current password callback.

    const char *cupsGetPassword2(const char *prompt, http_t *http, const char *method, const char *resource);

    Parameters

    prompt Prompt string
    http Connection to server or CUPS_HTTP_DEFAULT
    method Request method ("GET", "POST", "PUT")
    resource Resource path

    Return Value

    Password

    Discussion

    Uses the current password callback function. Returns NULL if the user does not provide a password.

    Note: The current password callback function is tracked separately for each thread in a program. Multi-threaded programs that override the setting via the cupsSetPasswordCB2 function need to do so in each thread for the same function to be used.

     CUPS 2.0/macOS 10.10 cupsLocalizeDestMedia

    Get the localized string for a destination media size.

    const char *cupsLocalizeDestMedia(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    flags Media flags
    size Media size

    Return Value

    Localized string

    Discussion

    The returned string is stored in the destination information and will become invalid if the destination information is deleted.

     CUPS 1.6/macOS 10.8 cupsLocalizeDestOption

    Get the localized string for a destination option.

    const char *cupsLocalizeDestOption(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option to localize

    Return Value

    Localized string

    Discussion

    The returned string is stored in the destination information and will become invalid if the destination information is deleted.

     CUPS 1.6/macOS 10.8 cupsLocalizeDestValue

    Get the localized string for a destination option+value pair.

    const char *cupsLocalizeDestValue(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);

    Parameters

    http Connection to destination
    dest Destination
    dinfo Destination information
    option Option to localize
    value Value to localize

    Return Value

    Localized string

    Discussion

    The returned string is stored in the destination information and will become invalid if the destination information is deleted.

     CUPS 2.0/OS 10.10 cupsMakeServerCredentials

    Make a self-signed certificate and private key pair.

    int cupsMakeServerCredentials(const char *path, const char *common_name, int num_alt_names, const char **alt_names, time_t expiration_date);

    Parameters

    path Keychain path or NULL for default
    common_name Common name
    num_alt_names Number of subject alternate names
    alt_names Subject Alternate Names
    expiration_date Expiration date

    Return Value

    1 on success, 0 on failure

    cupsParseOptions

    Parse options from a command-line argument.

    int cupsParseOptions(const char *arg, int num_options, cups_option_t **options);

    Parameters

    arg Argument to parse
    num_options Number of options
    options Options found

    Return Value

    Number of options found

    Discussion

    This function converts space-delimited name/value pairs according to the PAPI text option ABNF specification. Collection values ("name={a=... b=... c=...}") are stored with the curley brackets intact - use cupsParseOptions on the value to extract the collection attributes.

    cupsRasterClose

    Close a raster stream.

    void cupsRasterClose(cups_raster_t *r);

    Parameters

    r Stream to close

    Discussion

    The file descriptor associated with the raster stream must be closed separately as needed.

     CUPS 1.3/macOS 10.5 cupsRasterErrorString

    Return the last error from a raster function.

    const char *cupsRasterErrorString(void);

    Return Value

    Last error or NULL

    Discussion

    If there are no recent errors, NULL is returned.

     CUPS 2.2/macOS 10.12 cupsRasterInitPWGHeader

    Initialize a page header for PWG Raster output.

    int cupsRasterInitPWGHeader(cups_page_header2_t *h, pwg_media_t *media, const char *type, int xdpi, int ydpi, const char *sides, const char *sheet_back);

    Parameters

    h Page header
    media PWG media information
    type PWG raster type string
    xdpi Cross-feed direction (horizontal) resolution
    ydpi Feed direction (vertical) resolution
    sides IPP "sides" option value
    sheet_back Transform for back side or NULL for none

    Return Value

    1 on success, 0 on failure

    Discussion

    The "media" argument specifies the media to use.

    The "type" argument specifies a "pwg-raster-document-type-supported" value that controls the color space and bit depth of the raster data.

    The "xres" and "yres" arguments specify the raster resolution in dots per inch.

    The "sheet_back" argument specifies a "pwg-raster-document-sheet-back" value to apply for the back side of a page. Pass NULL for the front side.

    cupsRasterOpen

    Open a raster stream using a file descriptor.

    cups_raster_t *cupsRasterOpen(int fd, cups_mode_t mode);

    Parameters

    fd File descriptor
    mode Mode - CUPS_RASTER_READ, CUPS_RASTER_WRITE, CUPS_RASTER_WRITE_COMPRESSED, or CUPS_RASTER_WRITE_PWG

    Return Value

    New stream

    Discussion

    This function associates a raster stream with the given file descriptor. For most printer driver filters, "fd" will be 0 (stdin). For most raster image processor (RIP) filters that generate raster data, "fd" will be 1 (stdout).

    When writing raster data, the CUPS_RASTER_WRITE, CUPS_RASTER_WRITE_COMPRESS, or CUPS_RASTER_WRITE_PWG mode can be used - compressed and PWG output is generally 25-50% smaller but adds a 100-300% execution time overhead.

    cupsRasterOpenIO

    Open a raster stream using a callback function.

    cups_raster_t *cupsRasterOpenIO(cups_raster_iocb_t iocb, void *ctx, cups_mode_t mode);

    Parameters

    iocb Read/write callback
    ctx Context pointer for callback
    mode Mode - CUPS_RASTER_READ, CUPS_RASTER_WRITE, CUPS_RASTER_WRITE_COMPRESSED, or CUPS_RASTER_WRITE_PWG

    Return Value

    New stream

    Discussion

    This function associates a raster stream with the given callback function and context pointer.

    When writing raster data, the CUPS_RASTER_WRITE, CUPS_RASTER_WRITE_COMPRESS, or CUPS_RASTER_WRITE_PWG mode can be used - compressed and PWG output is generally 25-50% smaller but adds a 100-300% execution time overhead.

     DEPRECATED cupsRasterReadHeader

    Read a raster page header and store it in a version 1 page header structure.

    unsigned cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h);

    Parameters

    r Raster stream
    h Pointer to header data

    Return Value

    1 on success, 0 on failure/end-of-file

    Discussion

    This function is deprecated. Use cupsRasterReadHeader2 instead.

    Version 1 page headers were used in CUPS 1.0 and 1.1 and contain a subset of the version 2 page header data. This function handles reading version 2 page headers and copying only the version 1 data into the provided buffer.

     CUPS 1.2/macOS 10.5 cupsRasterReadHeader2

    Read a raster page header and store it in a version 2 page header structure.

    unsigned cupsRasterReadHeader2(cups_raster_t *r, cups_page_header2_t *h);

    Parameters

    r Raster stream
    h Pointer to header data

    Return Value

    1 on success, 0 on failure/end-of-file

    cupsRasterReadPixels

    Read raster pixels.

    unsigned cupsRasterReadPixels(cups_raster_t *r, unsigned char *p, unsigned len);

    Parameters

    r Raster stream
    p Pointer to pixel buffer
    len Number of bytes to read

    Return Value

    Number of bytes read

    Discussion

    For best performance, filters should read one or more whole lines. The "cupsBytesPerLine" value from the page header can be used to allocate the line buffer and as the number of bytes to read.

     DEPRECATED cupsRasterWriteHeader

    Write a raster page header from a version 1 page header structure.

    unsigned cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h);

    Parameters

    r Raster stream
    h Raster page header

    Return Value

    1 on success, 0 on failure

    Discussion

    This function is deprecated. Use cupsRasterWriteHeader2 instead.

     CUPS 1.2/macOS 10.5 cupsRasterWriteHeader2

    Write a raster page header from a version 2 page header structure.

    unsigned cupsRasterWriteHeader2(cups_raster_t *r, cups_page_header2_t *h);

    Parameters

    r Raster stream
    h Raster page header

    Return Value

    1 on success, 0 on failure

    Discussion

    The page header can be initialized using cupsRasterInitPWGHeader.

    cupsRasterWritePixels

    Write raster pixels.

    unsigned cupsRasterWritePixels(cups_raster_t *r, unsigned char *p, unsigned len);

    Parameters

    r Raster stream
    p Bytes to write
    len Number of bytes to write

    Return Value

    Number of bytes written

    Discussion

    For best performance, filters should write one or more whole lines. The "cupsBytesPerLine" value from the page header can be used to allocate the line buffer and as the number of bytes to write.

     CUPS 1.3/macOS 10.5 cupsRemoveDest

    Remove a destination from the destination list.

    int cupsRemoveDest(const char *name, const char *instance, int num_dests, cups_dest_t **dests);

    Parameters

    name Destination name
    instance Instance name or NULL
    num_dests Number of destinations
    dests Destinations

    Return Value

    New number of destinations

    Discussion

    Removing a destination/instance does not delete the class or printer queue, merely the lpoptions for that destination/instance. Use the cupsSetDests or cupsSetDests2 functions to save the new options for the user.

     CUPS 1.2/macOS 10.5 cupsRemoveOption

    Remove an option from an option array.

    int cupsRemoveOption(const char *name, int num_options, cups_option_t **options);

    Parameters

    name Option name
    num_options Current number of options
    options Options

    Return Value

    New number of options

    cupsServer

    Return the hostname/address of the current server.

    const char *cupsServer(void);

    Return Value

    Server name

    Discussion

    The default server comes from the CUPS_SERVER environment variable, then the ~/.cups/client.conf file, and finally the /etc/cups/client.conf file. If not set, the default is the local system - either "localhost" or a domain socket path.

    The returned value can be a fully-qualified hostname, a numeric IPv4 or IPv6 address, or a domain socket pathname.

    Note: The current server is tracked separately for each thread in a program. Multi-threaded programs that override the server via the cupsSetServer function need to do so in each thread for the same server to be used.

     CUPS 1.5/macOS 10.7 cupsSetClientCertCB

    Set the client certificate callback.

    void cupsSetClientCertCB(cups_client_cert_cb_t cb, void *user_data);

    Parameters

    cb Callback function
    user_data User data pointer

    Discussion

    Pass NULL to restore the default callback.

    Note: The current certificate callback is tracked separately for each thread in a program. Multi-threaded programs that override the callback need to do so in each thread for the same callback to be used.

     CUPS 1.5/macOS 10.7 cupsSetCredentials

    Set the default credentials to be used for SSL/TLS connections.

    int cupsSetCredentials(cups_array_t *credentials);

    Parameters

    credentials Array of credentials

    Return Value

    Status of call (0 = success)

    Discussion

    Note: The default credentials are tracked separately for each thread in a program. Multi-threaded programs that override the setting need to do so in each thread for the same setting to be used.

     CUPS 1.3/macOS 10.5 cupsSetDefaultDest

    Set the default destination.

    void cupsSetDefaultDest(const char *name, const char *instance, int num_dests, cups_dest_t *dests);

    Parameters

    name Destination name
    instance Instance name or NULL
    num_dests Number of destinations
    dests Destinations

     CUPS 1.1.21/macOS 10.4 cupsSetDests2

    Save the list of destinations for the specified server.

    int cupsSetDests2(http_t *http, int num_dests, cups_dest_t *dests);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    num_dests Number of destinations
    dests Destinations

    Return Value

    0 on success, -1 on error

    Discussion

    This function saves the destinations to /etc/cups/lpoptions when run as root and ~/.cups/lpoptions when run as a normal user.

    cupsSetEncryption

    Set the encryption preference.

    void cupsSetEncryption(http_encryption_t e);

    Parameters

    e New encryption preference

    Discussion

    The default encryption setting comes from the CUPS_ENCRYPTION environment variable, then the ~/.cups/client.conf file, and finally the /etc/cups/client.conf file. If not set, the default is HTTP_ENCRYPTION_IF_REQUESTED.

    Note: The current encryption setting is tracked separately for each thread in a program. Multi-threaded programs that override the setting need to do so in each thread for the same setting to be used.

     CUPS 1.4/macOS 10.6 cupsSetPasswordCB2

    Set the advanced password callback for CUPS.

    void cupsSetPasswordCB2(cups_password_cb2_t cb, void *user_data);

    Parameters

    cb Callback function
    user_data User data pointer

    Discussion

    Pass NULL to restore the default (console) password callback, which reads the password from the console. Programs should call either this function or cupsSetPasswordCB2, as only one callback can be registered by a program per thread.

    Note: The current password callback is tracked separately for each thread in a program. Multi-threaded programs that override the callback need to do so in each thread for the same callback to be used.

    cupsSetServer

    Set the default server name and port.

    void cupsSetServer(const char *server);

    Parameters

    server Server name

    Discussion

    The "server" string can be a fully-qualified hostname, a numeric IPv4 or IPv6 address, or a domain socket pathname. Hostnames and numeric IP addresses can be optionally followed by a colon and port number to override the default port 631, e.g. "hostname:8631". Pass NULL to restore the default server name and port.

    Note: The current server is tracked separately for each thread in a program. Multi-threaded programs that override the server need to do so in each thread for the same server to be used.

     CUPS 1.5/macOS 10.7 cupsSetServerCertCB

    Set the server certificate callback.

    void cupsSetServerCertCB(cups_server_cert_cb_t cb, void *user_data);

    Parameters

    cb Callback function
    user_data User data pointer

    Discussion

    Pass NULL to restore the default callback.

    Note: The current credentials callback is tracked separately for each thread in a program. Multi-threaded programs that override the callback need to do so in each thread for the same callback to be used.

     CUPS 2.0/macOS 10.10 cupsSetServerCredentials

    Set the default server credentials.

    int cupsSetServerCredentials(const char *path, const char *common_name, int auto_create);

    Parameters

    path Keychain path or NULL for default
    common_name Default common name for server
    auto_create 1 = automatically create self-signed certificates

    Return Value

    1 on success, 0 on failure

    Discussion

    Note: The server credentials are used by all threads in the running process. This function is threadsafe.

    cupsSetUser

    Set the default user name.

    void cupsSetUser(const char *user);

    Parameters

    user User name

    Discussion

    Pass NULL to restore the default user name.

    Note: The current user name is tracked separately for each thread in a program. Multi-threaded programs that override the user name need to do so in each thread for the same user name to be used.

     CUPS 1.7/macOS 10.9 cupsSetUserAgent

    Set the default HTTP User-Agent string.

    void cupsSetUserAgent(const char *user_agent);

    Parameters

    user_agent User-Agent string or NULL

    Discussion

    Setting the string to NULL forces the default value containing the CUPS version, IPP version, and operating system version and architecture.

     CUPS 1.6/macOS 10.8 cupsStartDestDocument

    Start a new document.

    http_status_t cupsStartDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id, const char *docname, const char *format, int num_options, cups_option_t *options, int last_document);

    Parameters

    http Connection to destination
    dest Destination
    info Destination information
    job_id Job ID
    docname Document name
    format Document format
    num_options Number of document options
    options Document options
    last_document 1 if this is the last document

    Return Value

    Status of document creation

    Discussion

    "job_id" is the job ID returned by cupsCreateDestJob. "docname" is the name of the document/file being printed, "format" is the MIME media type for the document (see CUPS_FORMAT_xxx constants), and "num_options" and "options" are the options do be applied to the document. "last_document" should be 1 if this is the last document to be submitted in the job. Returns HTTP_CONTINUE on success.

    cupsUser

    Return the current user's name.

    const char *cupsUser(void);

    Return Value

    User name

    Discussion

    Note: The current user name is tracked separately for each thread in a program. Multi-threaded programs that override the user name with the cupsSetUser function need to do so in each thread for the same user name to be used.

     CUPS 1.7/macOS 10.9 cupsUserAgent

    Return the default HTTP User-Agent string.

    const char *cupsUserAgent(void);

    Return Value

    User-Agent string

     CUPS 1.7/macOS 10.9 httpAcceptConnection

    Accept a new HTTP client connection from the specified listening socket.

    http_t *httpAcceptConnection(int fd, int blocking);

    Parameters

    fd Listen socket file descriptor
    blocking 1 if the connection should be blocking, 0 otherwise

    Return Value

    HTTP connection or NULL

     CUPS 1.5/macOS 10.7 httpAddCredential

    Allocates and adds a single credential to an array.

    int httpAddCredential(cups_array_t *credentials, const void *data, size_t datalen);

    Parameters

    credentials Credentials array
    data PEM-encoded X.509 data
    datalen Length of data

    Return Value

    0 on success, -1 on error

    Discussion

    Use cupsArrayNew(NULL, NULL) to create a credentials array.

     CUPS 1.2/macOS 10.5 httpAddrAny

    Check for the "any" address.

    int httpAddrAny(const http_addr_t *addr);

    Parameters

    addr Address to check

    Return Value

    1 if "any", 0 otherwise

     CUPS 2.0/OS 10.10 httpAddrClose

    Close a socket created by httpAddrConnect or httpAddrListen.

    int httpAddrClose(http_addr_t *addr, int fd);

    Parameters

    addr Listen address or NULL
    fd Socket file descriptor

    Return Value

    0 on success, -1 on failure

    Discussion

    Pass NULL for sockets created with httpAddrConnect2 and the listen address for sockets created with httpAddrListen. This function ensures that domain sockets are removed when closed.

     CUPS 1.7/macOS 10.9 httpAddrConnect2

    Connect to any of the addresses in the list with a timeout and optional cancel.

    http_addrlist_t *httpAddrConnect2(http_addrlist_t *addrlist, int *sock, int msec, int *cancel);

    Parameters

    addrlist List of potential addresses
    sock Socket
    msec Timeout in milliseconds
    cancel Pointer to "cancel" variable

    Return Value

    Connected address or NULL on failure

     CUPS 1.7/macOS 10.9 httpAddrCopyList

    Copy an address list.

    http_addrlist_t *httpAddrCopyList(http_addrlist_t *src);

    Parameters

    src Source address list

    Return Value

    New address list or NULL on error

     CUPS 1.2/macOS 10.5 httpAddrEqual

    Compare two addresses.

    int httpAddrEqual(const http_addr_t *addr1, const http_addr_t *addr2);

    Parameters

    addr1 First address
    addr2 Second address

    Return Value

    1 if equal, 0 if not

    httpAddrFamily

    Get the address family of an address.

    int httpAddrFamily(http_addr_t *addr);

    Parameters

    addr Address

    Return Value

    Address family

     CUPS 1.2/macOS 10.5 httpAddrFreeList

    Free an address list.

    void httpAddrFreeList(http_addrlist_t *addrlist);

    Parameters

    addrlist Address list to free

     CUPS 1.2/macOS 10.5 httpAddrGetList

    Get a list of addresses for a hostname.

    http_addrlist_t *httpAddrGetList(const char *hostname, int family, const char *service);

    Parameters

    hostname Hostname, IP address, or NULL for passive listen address
    family Address family or AF_UNSPEC
    service Service name or port number

    Return Value

    List of addresses or NULL

     CUPS 1.2/macOS 10.5 httpAddrLength

    Return the length of the address in bytes.

    int httpAddrLength(const http_addr_t *addr);

    Parameters

    addr Address

    Return Value

    Length in bytes

     CUPS 1.7/macOS 10.9 httpAddrListen

    Create a listening socket bound to the specified address and port.

    int httpAddrListen(http_addr_t *addr, int port);

    Parameters

    addr Address to bind to
    port Port number to bind to

    Return Value

    Socket or -1 on error

     CUPS 1.2/macOS 10.5 httpAddrLocalhost

    Check for the local loopback address.

    int httpAddrLocalhost(const http_addr_t *addr);

    Parameters

    addr Address to check

    Return Value

    1 if local host, 0 otherwise

     CUPS 1.2/macOS 10.5 httpAddrLookup

    Lookup the hostname associated with the address.

    char *httpAddrLookup(const http_addr_t *addr, char *name, int namelen);

    Parameters

    addr Address to lookup
    name Host name buffer
    namelen Size of name buffer

    Return Value

    Host name

     CUPS 1.7/macOS 10.9 httpAddrPort

    Get the port number associated with an address.

    int httpAddrPort(http_addr_t *addr);

    Parameters

    addr Address

    Return Value

    Port number

     CUPS 1.2/macOS 10.5 httpAddrString

    Convert an address to a numeric string.

    char *httpAddrString(const http_addr_t *addr, char *s, int slen);

    Parameters

    addr Address to convert
    s String buffer
    slen Length of string

    Return Value

    Numeric address string

     CUPS 1.2/macOS 10.5 httpAssembleURI

    Assemble a uniform resource identifier from its components.

    http_uri_status_t httpAssembleURI(http_uri_coding_t encoding, char *uri, int urilen, const char *scheme, const char *username, const char *host, int port, const char *resource);

    Parameters

    encoding Encoding flags
    uri URI buffer
    urilen Size of URI buffer
    scheme Scheme name
    username Username
    host Hostname or address
    port Port number
    resource Resource

    Return Value

    URI status

    Discussion

    This function escapes reserved characters in the URI depending on the value of the "encoding" argument. You should use this function in place of traditional string functions whenever you need to create a URI string.

     CUPS 1.2/macOS 10.5 httpAssembleURIf

    Assemble a uniform resource identifier from its components with a formatted resource.

    http_uri_status_t httpAssembleURIf(http_uri_coding_t encoding, char *uri, int urilen, const char *scheme, const char *username, const char *host, int port, const char *resourcef, ...);

    Parameters

    encoding Encoding flags
    uri URI buffer
    urilen Size of URI buffer
    scheme Scheme name
    username Username
    host Hostname or address
    port Port number
    resourcef Printf-style resource
    ... Additional arguments as needed

    Return Value

    URI status

    Discussion

    This function creates a formatted version of the resource string argument "resourcef" and escapes reserved characters in the URI depending on the value of the "encoding" argument. You should use this function in place of traditional string functions whenever you need to create a URI string.

     CUPS 1.7/macOS 10.9 httpAssembleUUID

    Assemble a name-based UUID URN conforming to RFC 4122.

    char *httpAssembleUUID(const char *server, int port, const char *name, int number, char *buffer, size_t bufsize);

    Parameters

    server Server name
    port Port number
    name Object name or NULL
    number Object number or 0
    buffer String buffer
    bufsize Size of buffer

    Return Value

    UUID string

    Discussion

    This function creates a unique 128-bit identifying number using the server name, port number, random data, and optionally an object name and/or object number. The result is formatted as a UUID URN as defined in RFC 4122.

    The buffer needs to be at least 46 bytes in size.

    httpBlocking

    Set blocking/non-blocking behavior on a connection.

    void httpBlocking(http_t *http, int b);

    Parameters

    http HTTP connection
    b 1 = blocking, 0 = non-blocking

    httpCheck

    Check to see if there is a pending response from the server.

    int httpCheck(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    0 = no data, 1 = data available

     CUPS 1.1.19/macOS 10.3 httpClearCookie

    Clear the cookie value(s).

    void httpClearCookie(http_t *http);

    Parameters

    http HTTP connection

    httpClearFields

    Clear HTTP request fields.

    void httpClearFields(http_t *http);

    Parameters

    http HTTP connection

    httpClose

    Close an HTTP connection.

    void httpClose(http_t *http);

    Parameters

    http HTTP connection

     CUPS 2.0/OS 10.10 httpCompareCredentials

    Compare two sets of X.509 credentials.

    int httpCompareCredentials(cups_array_t *cred1, cups_array_t *cred2);

    Parameters

    cred1 First set of X.509 credentials
    cred2 Second set of X.509 credentials

    Return Value

    1 if they match, 0 if they do not

     CUPS 1.7/macOS 10.9 httpConnect2

    Connect to a HTTP server.

    http_t *httpConnect2(const char *host, int port, http_addrlist_t *addrlist, int family, http_encryption_t encryption, int blocking, int msec, int *cancel);

    Parameters

    host Host to connect to
    port Port number
    addrlist List of addresses or NULL to lookup
    family Address family to use or AF_UNSPEC for any
    encryption Type of encryption to use
    blocking 1 for blocking connection, 0 for non-blocking
    msec Connection timeout in milliseconds, 0 means don't connect
    cancel Pointer to "cancel" variable

    Return Value

    New HTTP connection

     CUPS 1.5/macOS 10.7 httpCopyCredentials

    Copy the credentials associated with the peer in an encrypted connection.

    int httpCopyCredentials(http_t *http, cups_array_t **credentials);

    Parameters

    http Connection to server
    credentials Array of credentials

    Return Value

    Status of call (0 = success)

     CUPS 2.0/macOS 10.10 httpCredentialsAreValidForName

    Return whether the credentials are valid for the given name.

    int httpCredentialsAreValidForName(cups_array_t *credentials, const char *common_name);

    Parameters

    credentials Credentials
    common_name Name to check

    Return Value

    1 if valid, 0 otherwise

     CUPS 2.0/macOS 10.10 httpCredentialsGetExpiration

    Return the expiration date of the credentials.

    time_t httpCredentialsGetExpiration(cups_array_t *credentials);

    Parameters

    credentials Credentials

    Return Value

    Expiration date of credentials

     CUPS 2.0/macOS 10.10 httpCredentialsGetTrust

    Return the trust of credentials.

    http_trust_t httpCredentialsGetTrust(cups_array_t *credentials, const char *common_name);

    Parameters

    credentials Credentials
    common_name Common name for trust lookup

    Return Value

    Level of trust

     CUPS 2.0/macOS 10.10 httpCredentialsString

    Return a string representing the credentials.

    size_t httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize);

    Parameters

    credentials Credentials
    buffer Buffer or NULL
    bufsize Size of buffer

    Return Value

    Total size of credentials string

     CUPS 1.1.21/macOS 10.4 httpDecode64_2

    Base64-decode a string.

    char *httpDecode64_2(char *out, int *outlen, const char *in);

    Parameters

    out String to write to
    outlen Size of output string
    in String to read from

    Return Value

    Decoded string

    Discussion

    The caller must initialize "outlen" to the maximum size of the decoded string before calling httpDecode64_2. On return "outlen" contains the decoded length of the string.

    httpDelete

    Send a DELETE request to the server.

    int httpDelete(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI to delete

    Return Value

    Status of call (0 = success)

     CUPS 1.1.21/macOS 10.4 httpEncode64_2

    Base64-encode a string.

    char *httpEncode64_2(char *out, int outlen, const char *in, int inlen);

    Parameters

    out String to write to
    outlen Maximum size of output string
    in String to read from
    inlen Size of input string

    Return Value

    Encoded string

    httpEncryption

    Set the required encryption on the link.

    int httpEncryption(http_t *http, http_encryption_t e);

    Parameters

    http HTTP connection
    e New encryption preference

    Return Value

    -1 on error, 0 on success

    httpError

    Get the last error on a connection.

    int httpError(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Error code (errno) value

    httpFieldValue

    Return the HTTP field enumeration value for a field name.

    http_field_t httpFieldValue(const char *name);

    Parameters

    name String name

    Return Value

    Field index

    httpFlush

    Flush data read from a HTTP connection.

    void httpFlush(http_t *http);

    Parameters

    http HTTP connection

     CUPS 1.2/macOS 10.5 httpFlushWrite

    Flush data written to a HTTP connection.

    int httpFlushWrite(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Bytes written or -1 on error

    httpFreeCredentials

    Free an array of credentials.

    void httpFreeCredentials(cups_array_t *credentials);

    Parameters

    credentials Array of credentials

    httpGet

    Send a GET request to the server.

    int httpGet(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI to get

    Return Value

    Status of call (0 = success)

     CUPS 2.0/OS 10.10 httpGetActivity

    Get the most recent activity for a connection.

    time_t httpGetActivity(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Time of last read or write

    Discussion

    The return value is the time in seconds of the last read or write.

     CUPS 2.0/OS 10.10 httpGetAddress

    Get the address of the connected peer of a connection.

    http_addr_t *httpGetAddress(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Connected address or NULL

    Discussion

    For connections created with httpConnect2, the address is for the server. For connections created with httpAccept, the address is for the client.

    Returns NULL if the socket is currently unconnected.

     CUPS 1.3/macOS 10.5 httpGetAuthString

    Get the current authorization string.

    char *httpGetAuthString(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Authorization string

    Discussion

    The authorization string is set by cupsDoAuthentication and httpSetAuthString. Use httpGetAuthString to retrieve the string to use with httpSetField for the HTTP_FIELD_AUTHORIZATION value.

     CUPS 1.2/macOS 10.5 httpGetBlocking

    Get the blocking/non-block state of a connection.

    int httpGetBlocking(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    1 if blocking, 0 if non-blocking

     CUPS 1.7/macOS 10.9 httpGetContentEncoding

    Get a common content encoding, if any, between the client and server.

    const char *httpGetContentEncoding(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Content-Coding value or NULL for the identity coding.

    Discussion

    This function uses the value of the Accepts-Encoding HTTP header and must be called after receiving a response from the server or a request from the client. The value returned can be use in subsequent requests (for clients) or in the response (for servers) in order to compress the content stream.

     CUPS 1.1.19/macOS 10.3 httpGetCookie

    Get any cookie data from the response.

    const char *httpGetCookie(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Cookie data or NULL

     CUPS 1.2/macOS 10.5 httpGetDateString2

    Get a formatted date/time string from a time value.

    const char *httpGetDateString2(time_t t, char *s, int slen);

    Parameters

    t Time in seconds
    s String buffer
    slen Size of string buffer

    Return Value

    Date/time string

    httpGetDateTime

    Get a time value from a formatted date/time string.

    time_t httpGetDateTime(const char *s);

    Parameters

    s Date/time string

    Return Value

    Time in seconds

     CUPS 2.0/OS 10.10 httpGetEncryption

    Get the current encryption mode of a connection.

    http_encryption_t httpGetEncryption(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Current encryption mode

    Discussion

    This function returns the encryption mode for the connection. Use the httpIsEncrypted function to determine whether a TLS session has been established.

     CUPS 1.7/macOS 10.9 httpGetExpect

    Get the value of the Expect header, if any.

    http_status_t httpGetExpect(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Expect: status, if any

    Discussion

    Returns HTTP_STATUS_NONE if there is no Expect header, otherwise returns the expected HTTP status code, typically HTTP_STATUS_CONTINUE.

     CUPS 1.2/macOS 10.5 httpGetFd

    Get the file descriptor associated with a connection.

    int httpGetFd(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    File descriptor or -1 if none

    httpGetField

    Get a field value from a request/response.

    const char *httpGetField(http_t *http, http_field_t field);

    Parameters

    http HTTP connection
    field Field to get

    Return Value

    Field value

     CUPS 1.2/macOS 10.5 httpGetHostname

    Get the FQDN for the connection or local system.

    const char *httpGetHostname(http_t *http, char *s, int slen);

    Parameters

    http HTTP connection or NULL
    s String buffer for name
    slen Size of buffer

    Return Value

    FQDN for connection or system

    Discussion

    When "http" points to a connected socket, return the hostname or address that was used in the call to httpConnect() or httpConnectEncrypt(), or the address of the client for the connection from httpAcceptConnection(). Otherwise, return the FQDN for the local system using both gethostname() and gethostbyname() to get the local hostname with domain.

     CUPS 2.0/OS 10.10 httpGetKeepAlive

    Get the current Keep-Alive state of the connection.

    http_keepalive_t httpGetKeepAlive(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Keep-Alive state

     CUPS 1.2/macOS 10.5 httpGetLength2

    Get the amount of data remaining from the content-length or transfer-encoding fields.

    off_t httpGetLength2(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Content length

    Discussion

    This function returns the complete content length, even for content larger than 2^31 - 1.

     CUPS 2.0/OS 10.10 httpGetPending

    Get the number of bytes that are buffered for writing.

    size_t httpGetPending(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Number of bytes buffered

     CUPS 2.0/OS 10.10 httpGetReady

    Get the number of bytes that can be read without blocking.

    size_t httpGetReady(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Number of bytes available

     CUPS 2.0/OS 10.10 httpGetRemaining

    Get the number of remaining bytes in the message body or current chunk.

    size_t httpGetRemaining(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Remaining bytes

    Discussion

    The httpIsChunked function can be used to determine whether the message body is chunked or fixed-length.

    httpGetState

    Get the current state of the HTTP request.

    http_state_t httpGetState(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    HTTP state

     CUPS 1.2/macOS 10.5 httpGetStatus

    Get the status of the last HTTP request.

    http_status_t httpGetStatus(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    HTTP status

     CUPS 1.2/macOS 10.5 httpGetSubField2

    Get a sub-field value.

    char *httpGetSubField2(http_t *http, http_field_t field, const char *name, char *value, int valuelen);

    Parameters

    http HTTP connection
    field Field index
    name Name of sub-field
    value Value string
    valuelen Size of value buffer

    Return Value

    Value or NULL

    httpGetVersion

    Get the HTTP version at the other end.

    http_version_t httpGetVersion(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    Version number

    httpGets

    Get a line of text from a HTTP connection.

    char *httpGets(char *line, int length, http_t *http);

    Parameters

    line Line to read into
    length Max length of buffer
    http HTTP connection

    Return Value

    Line or NULL

    httpHead

    Send a HEAD request to the server.

    int httpHead(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI for head

    Return Value

    Status of call (0 = success)

    httpInitialize

    Initialize the HTTP interface library and set the default HTTP proxy (if any).

    void httpInitialize(void);

     CUPS 2.0/OS 10.10 httpIsChunked

    Report whether a message body is chunked.

    int httpIsChunked(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    1 if chunked, 0 if not

    Discussion

    This function returns non-zero if the message body is composed of variable-length chunks.

     CUPS 2.0/OS 10.10 httpIsEncrypted

    Report whether a connection is encrypted.

    int httpIsEncrypted(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    1 if encrypted, 0 if not

    Discussion

    This function returns non-zero if the connection is currently encrypted.

     CUPS 2.0/OS 10.10 httpLoadCredentials

    Load X.509 credentials from a keychain file.

    int httpLoadCredentials(const char *path, cups_array_t **credentials, const char *common_name);

    Parameters

    path Keychain path or NULL for default
    credentials Credentials
    common_name Common name for credentials

    Return Value

    0 on success, -1 on error

    httpOptions

    Send an OPTIONS request to the server.

    int httpOptions(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI for options

    Return Value

    Status of call (0 = success)

     CUPS 1.7/macOS 10.9 httpPeek

    Peek at data from a HTTP connection.

    ssize_t httpPeek(http_t *http, char *buffer, size_t length);

    Parameters

    http HTTP connection
    buffer Buffer for data
    length Maximum number of bytes

    Return Value

    Number of bytes copied

    Discussion

    This function copies available data from the given HTTP connection, reading a buffer as needed. The data is still available for reading using httpRead2.

    For non-blocking connections the usual timeouts apply.

    httpPost

    Send a POST request to the server.

    int httpPost(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI for post

    Return Value

    Status of call (0 = success)

    httpPut

    Send a PUT request to the server.

    int httpPut(http_t *http, const char *uri);

    Parameters

    http HTTP connection
    uri URI to put

    Return Value

    Status of call (0 = success)

     CUPS 1.2/macOS 10.5 httpRead2

    Read data from a HTTP connection.

    ssize_t httpRead2(http_t *http, char *buffer, size_t length);

    Parameters

    http HTTP connection
    buffer Buffer for data
    length Maximum number of bytes

    Return Value

    Number of bytes read

     CUPS 1.7/macOS 10.9 httpReadRequest

    Read a HTTP request from a connection.

    http_state_t httpReadRequest(http_t *http, char *uri, size_t urilen);

    Parameters

    http HTTP connection
    uri URI buffer
    urilen Size of URI buffer

    Return Value

    New state of connection

    httpReconnect2

    Reconnect to a HTTP server with timeout and optional cancel.

    int httpReconnect2(http_t *http, int msec, int *cancel);

    Parameters

    http HTTP connection
    msec Timeout in milliseconds
    cancel Pointer to "cancel" variable

    Return Value

    0 on success, non-zero on failure

     CUPS 2.0/OS 10.10 httpResolveHostname

    Resolve the hostname of the HTTP connection address.

    const char *httpResolveHostname(http_t *http, char *buffer, size_t bufsize);

    Parameters

    http HTTP connection
    buffer Hostname buffer
    bufsize Size of buffer

    Return Value

    Resolved hostname or NULL

     CUPS 2.0/OS 10.10 httpSaveCredentials

    Save X.509 credentials to a keychain file.

    int httpSaveCredentials(const char *path, cups_array_t *credentials, const char *common_name);

    Parameters

    path Keychain path or NULL for default
    credentials Credentials
    common_name Common name for credentials

    Return Value

    -1 on error, 0 on success

     CUPS 1.2/macOS 10.5 httpSeparateURI

    Separate a Universal Resource Identifier into its components.

    http_uri_status_t httpSeparateURI(http_uri_coding_t decoding, const char *uri, char *scheme, int schemelen, char *username, int usernamelen, char *host, int hostlen, int *port, char *resource, int resourcelen);

    Parameters

    decoding Decoding flags
    uri Universal Resource Identifier
    scheme Scheme (http, https, etc.)
    schemelen Size of scheme buffer
    username Username
    usernamelen Size of username buffer
    host Hostname
    hostlen Size of hostname buffer
    port Port number to use
    resource Resource/filename
    resourcelen Size of resource buffer

    Return Value

    Result of separation

     CUPS 1.3/macOS 10.5 httpSetAuthString

    Set the current authorization string.

    void httpSetAuthString(http_t *http, const char *scheme, const char *data);

    Parameters

    http HTTP connection
    scheme Auth scheme (NULL to clear it)
    data Auth data (NULL for none)

    Discussion

    This function just stores a copy of the current authorization string in the HTTP connection object. You must still call httpSetField to set HTTP_FIELD_AUTHORIZATION prior to issuing a HTTP request using httpGet, httpHead, httpOptions, httpPost, or httpPut.

     CUPS 1.1.19/macOS 10.3 httpSetCookie

    Set the cookie value(s).

    void httpSetCookie(http_t *http, const char *cookie);

    Parameters

    http Connection
    cookie Cookie string

     CUPS 1.5/macOS 10.7 httpSetCredentials

    Set the credentials associated with an encrypted connection.

    int httpSetCredentials(http_t *http, cups_array_t *credentials);

    Parameters

    http HTTP connection
    credentials Array of credentials

    Return Value

    Status of call (0 = success)

     CUPS 1.7/macOS 10.9 httpSetDefaultField

    Set the default value of an HTTP header.

    void httpSetDefaultField(http_t *http, http_field_t field, const char *value);

    Parameters

    http HTTP connection
    field Field index
    value Value

    Discussion

    Currently only HTTP_FIELD_ACCEPT_ENCODING, HTTP_FIELD_SERVER, and HTTP_FIELD_USER_AGENT can be set.

     CUPS 1.2/macOS 10.5 httpSetExpect

    Set the Expect: header in a request.

    void httpSetExpect(http_t *http, http_status_t expect);

    Parameters

    http HTTP connection
    expect HTTP status to expect (HTTP_STATUS_CONTINUE)

    Discussion

    Currently only HTTP_STATUS_CONTINUE is supported for the "expect" argument.

    httpSetField

    Set the value of an HTTP header.

    void httpSetField(http_t *http, http_field_t field, const char *value);

    Parameters

    http HTTP connection
    field Field index
    value Value

     CUPS 2.0/OS 10.10 httpSetKeepAlive

    Set the current Keep-Alive state of a connection.

    void httpSetKeepAlive(http_t *http, http_keepalive_t keep_alive);

    Parameters

    http HTTP connection
    keep_alive New Keep-Alive value

     CUPS 1.2/macOS 10.5 httpSetLength

    Set the content-length and content-encoding.

    void httpSetLength(http_t *http, size_t length);

    Parameters

    http HTTP connection
    length Length (0 for chunked)

     CUPS 1.5/macOS 10.7 httpSetTimeout

    Set read/write timeouts and an optional callback.

    void httpSetTimeout(http_t *http, double timeout, http_timeout_cb_t cb, void *user_data);

    Parameters

    http HTTP connection
    timeout Number of seconds for timeout, must be greater than 0
    cb Callback function or NULL
    user_data User data pointer

    Discussion

    The optional timeout callback receives both the HTTP connection and a user data pointer and must return 1 to continue or 0 to error (time) out.

     CUPS 2.0/OS 10.10 httpShutdown

    Shutdown one side of an HTTP connection.

    void httpShutdown(http_t *http);

    Parameters

    http HTTP connection

     CUPS 2.0/OS 10.10 httpStateString

    Return the string describing a HTTP state value.

    const char *httpStateString(http_state_t state);

    Parameters

    state HTTP state value

    Return Value

    State string

    httpStatus

    Return a short string describing a HTTP status code.

    const char *httpStatus(http_status_t status);

    Parameters

    status HTTP status code

    Return Value

    Localized status string

    Discussion

    The returned string is localized to the current POSIX locale and is based on the status strings defined in RFC 7231.

     CUPS 2.0/OS 10.10 httpURIStatusString

    Return a string describing a URI status code.

    const char *httpURIStatusString(http_uri_status_t status);

    Parameters

    status URI status code

    Return Value

    Localized status string

    httpUpdate

    Update the current HTTP state for incoming data.

    http_status_t httpUpdate(http_t *http);

    Parameters

    http HTTP connection

    Return Value

    HTTP status

     CUPS 1.1.19/macOS 10.3 httpWait

    Wait for data available on a connection.

    int httpWait(http_t *http, int msec);

    Parameters

    http HTTP connection
    msec Milliseconds to wait

    Return Value

    1 if data is available, 0 otherwise

     CUPS 1.2/macOS 10.5 httpWrite2

    Write data to a HTTP connection.

    ssize_t httpWrite2(http_t *http, const char *buffer, size_t length);

    Parameters

    http HTTP connection
    buffer Buffer for data
    length Number of bytes to write

    Return Value

    Number of bytes written

     CUPS 1.7/macOS 10.9 httpWriteResponse

    Write a HTTP response to a client connection.

    int httpWriteResponse(http_t *http, http_status_t status);

    Parameters

    http HTTP connection
    status Status code

    Return Value

    0 on success, -1 on error

    ippAddBoolean

    Add a boolean attribute to an IPP message.

    ipp_attribute_t *ippAddBoolean(ipp_t *ipp, ipp_tag_t group, const char *name, char value);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    value Value of attribute

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddBooleans

    Add an array of boolean values.

    ipp_attribute_t *ippAddBooleans(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const char *values);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    num_values Number of values
    values Values

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

     CUPS 1.1.19/macOS 10.3 ippAddCollection

    Add a collection value.

    ipp_attribute_t *ippAddCollection(ipp_t *ipp, ipp_tag_t group, const char *name, ipp_t *value);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    value Value

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

     CUPS 1.1.19/macOS 10.3 ippAddCollections

    Add an array of collection values.

    ipp_attribute_t *ippAddCollections(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const ipp_t **values);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    num_values Number of values
    values Values

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddDate

    Add a dateTime attribute to an IPP message.

    ipp_attribute_t *ippAddDate(ipp_t *ipp, ipp_tag_t group, const char *name, const ipp_uchar_t *value);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    value Value

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddInteger

    Add a integer attribute to an IPP message.

    ipp_attribute_t *ippAddInteger(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int value);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    value Value of attribute

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported values include enum (IPP_TAG_ENUM) and integer (IPP_TAG_INTEGER).

    ippAddIntegers

    Add an array of integer values.

    ipp_attribute_t *ippAddIntegers(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int num_values, const int *values);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    num_values Number of values
    values Values

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported values include enum (IPP_TAG_ENUM) and integer (IPP_TAG_INTEGER).

     CUPS 1.2/macOS 10.5 ippAddOctetString

    Add an octetString value to an IPP message.

    ipp_attribute_t *ippAddOctetString(ipp_t *ipp, ipp_tag_t group, const char *name, const void *data, int datalen);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    data octetString data
    datalen Length of data in bytes

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

     CUPS 1.6/macOS 10.8 ippAddOutOfBand

    Add an out-of-band value to an IPP message.

    ipp_attribute_t *ippAddOutOfBand(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported out-of-band values include unsupported-value (IPP_TAG_UNSUPPORTED_VALUE), default (IPP_TAG_DEFAULT), unknown (IPP_TAG_UNKNOWN), no-value (IPP_TAG_NOVALUE), not-settable (IPP_TAG_NOTSETTABLE), delete-attribute (IPP_TAG_DELETEATTR), and admin-define (IPP_TAG_ADMINDEFINE).

    ippAddRange

    Add a range of values to an IPP message.

    ipp_attribute_t *ippAddRange(ipp_t *ipp, ipp_tag_t group, const char *name, int lower, int upper);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    lower Lower value
    upper Upper value

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    The lower parameter must be less than or equal to the upper parameter.

    ippAddRanges

    Add ranges of values to an IPP message.

    ipp_attribute_t *ippAddRanges(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const int *lower, const int *upper);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    num_values Number of values
    lower Lower values
    upper Upper values

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddResolution

    Add a resolution value to an IPP message.

    ipp_attribute_t *ippAddResolution(ipp_t *ipp, ipp_tag_t group, const char *name, ipp_res_t units, int xres, int yres);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    units Units for resolution
    xres X resolution
    yres Y resolution

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddResolutions

    Add resolution values to an IPP message.

    ipp_attribute_t *ippAddResolutions(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, ipp_res_t units, const int *xres, const int *yres);

    Parameters

    ipp IPP message
    group IPP group
    name Name of attribute
    num_values Number of values
    units Units for resolution
    xres X resolutions
    yres Y resolutions

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    ippAddSeparator

    Add a group separator to an IPP message.

    ipp_attribute_t *ippAddSeparator(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    ippAddString

    Add a language-encoded string to an IPP message.

    ipp_attribute_t *ippAddString(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *value);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    language Language code
    value Value

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported string values include charset (IPP_TAG_CHARSET), keyword (IPP_TAG_KEYWORD), language (IPP_TAG_LANGUAGE), mimeMediaType (IPP_TAG_MIMETYPE), name (IPP_TAG_NAME), nameWithLanguage (IPP_TAG_NAMELANG), text (code IPP_TAG_TEXT@), textWithLanguage (IPP_TAG_TEXTLANG), uri (IPP_TAG_URI), and uriScheme (IPP_TAG_URISCHEME).

    The language parameter must be non-NULL for nameWithLanguage and textWithLanguage string values and must be NULL for all other string values.

     CUPS 1.7/macOS 10.9 ippAddStringf

    Add a formatted string to an IPP message.

    ipp_attribute_t *ippAddStringf(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *format, ...);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    language Language code (NULL for default)
    format Printf-style format string
    ... Additional arguments as needed

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported string values include charset (IPP_TAG_CHARSET), keyword (IPP_TAG_KEYWORD), language (IPP_TAG_LANGUAGE), mimeMediaType (IPP_TAG_MIMETYPE), name (IPP_TAG_NAME), nameWithLanguage (IPP_TAG_NAMELANG), text (code IPP_TAG_TEXT@), textWithLanguage (IPP_TAG_TEXTLANG), uri (IPP_TAG_URI), and uriScheme (IPP_TAG_URISCHEME).

    The language parameter must be non-NULL for nameWithLanguage and textWithLanguage string values and must be NULL for all other string values.

    The format parameter uses formatting characters compatible with the printf family of standard functions. Additional arguments follow it as needed. The formatted string is truncated as needed to the maximum length of the corresponding value type.

     CUPS 1.7/macOS 10.9 ippAddStringfv

    Add a formatted string to an IPP message.

    ipp_attribute_t *ippAddStringfv(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *format, va_list ap);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    language Language code (NULL for default)
    format Printf-style format string
    ap Additional arguments

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported string values include charset (IPP_TAG_CHARSET), keyword (IPP_TAG_KEYWORD), language (IPP_TAG_LANGUAGE), mimeMediaType (IPP_TAG_MIMETYPE), name (IPP_TAG_NAME), nameWithLanguage (IPP_TAG_NAMELANG), text (code IPP_TAG_TEXT@), textWithLanguage (IPP_TAG_TEXTLANG), uri (IPP_TAG_URI), and uriScheme (IPP_TAG_URISCHEME).

    The language parameter must be non-NULL for nameWithLanguage and textWithLanguage string values and must be NULL for all other string values.

    The format parameter uses formatting characters compatible with the printf family of standard functions. Additional arguments are passed in the stdarg pointer ap. The formatted string is truncated as needed to the maximum length of the corresponding value type.

    ippAddStrings

    Add language-encoded strings to an IPP message.

    ipp_attribute_t *ippAddStrings(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int num_values, const char *language, const char *const *values);

    Parameters

    ipp IPP message
    group IPP group
    value_tag Type of attribute
    name Name of attribute
    num_values Number of values
    language Language code (NULL for default)
    values Values

    Return Value

    New attribute

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

    Supported string values include charset (IPP_TAG_CHARSET), keyword (IPP_TAG_KEYWORD), language (IPP_TAG_LANGUAGE), mimeMediaType (IPP_TAG_MIMETYPE), name (IPP_TAG_NAME), nameWithLanguage (IPP_TAG_NAMELANG), text (code IPP_TAG_TEXT@), textWithLanguage (IPP_TAG_TEXTLANG), uri (IPP_TAG_URI), and uriScheme (IPP_TAG_URISCHEME).

    The language parameter must be non-NULL for nameWithLanguage and textWithLanguage string values and must be NULL for all other string values.

     CUPS 1.6/macOS 10.8 ippAttributeString

    Convert the attribute's value to a string.

    size_t ippAttributeString(ipp_attribute_t *attr, char *buffer, size_t bufsize);

    Parameters

    attr Attribute
    buffer String buffer or NULL
    bufsize Size of string buffer

    Return Value

    Number of bytes less nul

    Discussion

    Returns the number of bytes that would be written, not including the trailing nul. The buffer pointer can be NULL to get the required length, just like (v)snprintf.

     CUPS 1.7/macOS 10.9 ippContainsInteger

    Determine whether an attribute contains the specified value or is within the list of ranges.

    int ippContainsInteger(ipp_attribute_t *attr, int value);

    Parameters

    attr Attribute
    value Integer/enum value

    Return Value

    1 on a match, 0 on no match

    Discussion

    Returns non-zero when the attribute contains either a matching integer or enum value, or the value falls within one of the rangeOfInteger values for the attribute.

     CUPS 1.7/macOS 10.9 ippContainsString

    Determine whether an attribute contains the specified string value.

    int ippContainsString(ipp_attribute_t *attr, const char *value);

    Parameters

    attr Attribute
    value String value

    Return Value

    1 on a match, 0 on no match

    Discussion

    Returns non-zero when the attribute contains a matching charset, keyword, naturalLanguage, mimeMediaType, name, text, uri, or uriScheme value.

     CUPS 1.6/macOS 10.8 ippCopyAttribute

    Copy an attribute.

    ipp_attribute_t *ippCopyAttribute(ipp_t *dst, ipp_attribute_t *srcattr, int quickcopy);

    Parameters

    dst Destination IPP message
    srcattr Attribute to copy
    quickcopy 1 for a referenced copy, 0 for normal

    Return Value

    New attribute

    Discussion

    The specified attribute, attr, is copied to the destination IPP message. When quickcopy is non-zero, a "shallow" reference copy of the attribute is created - this should only be done as long as the original source IPP message will not be freed for the life of the destination.

     CUPS 1.6/macOS 10.8 ippCopyAttributes

    Copy attributes from one IPP message to another.

    int ippCopyAttributes(ipp_t *dst, ipp_t *src, int quickcopy, ipp_copycb_t cb, void *context);

    Parameters

    dst Destination IPP message
    src Source IPP message
    quickcopy 1 for a referenced copy, 0 for normal
    cb Copy callback or NULL for none
    context Context pointer

    Return Value

    1 on success, 0 on error

    Discussion

    Zero or more attributes are copied from the source IPP message, src, to the destination IPP message, dst. When quickcopy is non-zero, a "shallow" reference copy of the attribute is created - this should only be done as long as the original source IPP message will not be freed for the life of the destination.

    The cb and context parameters provide a generic way to "filter" the attributes that are copied - the function must return 1 to copy the attribute or 0 to skip it. The function may also choose to do a partial copy of the source attribute itself.

     CUPS 1.7/macOS 10.9 ippCreateRequestedArray

    Create a CUPS array of attribute names from the given requested-attributes attribute.

    cups_array_t *ippCreateRequestedArray(ipp_t *request);

    Parameters

    request IPP request

    Return Value

    CUPS array or NULL if all

    Discussion

    This function creates a (sorted) CUPS array of attribute names matching the list of "requested-attribute" values supplied in an IPP request. All IANA- registered values are supported in addition to the CUPS IPP extension attributes.

    The request parameter specifies the request message that was read from the client. NULL is returned if all attributes should be returned. Otherwise, the result is a sorted array of attribute names, where cupsArrayFind(array, "attribute-name") will return a non-NULL pointer. The array must be freed using the cupsArrayDelete function.

    ippDateToTime

    Convert from RFC 2579 Date/Time format to time in seconds.

    time_t ippDateToTime(const ipp_uchar_t *date);

    Parameters

    date RFC 2579 date info

    Return Value

    UNIX time value

    ippDelete

    Delete an IPP message.

    void ippDelete(ipp_t *ipp);

    Parameters

    ipp IPP message

     CUPS 1.1.19/macOS 10.3 ippDeleteAttribute

    Delete a single attribute in an IPP message.

    void ippDeleteAttribute(ipp_t *ipp, ipp_attribute_t *attr);

    Parameters

    ipp IPP message
    attr Attribute to delete

     CUPS 1.6/macOS 10.8 ippDeleteValues

    Delete values in an attribute.

    int ippDeleteValues(ipp_t *ipp, ipp_attribute_t **attr, int element, int count);

    Parameters

    ipp IPP message
    attr Attribute
    element Index of first value to delete (0-based)
    count Number of values to delete

    Return Value

    1 on success, 0 on failure

    Discussion

    The element parameter specifies the first value to delete, starting at 0. It must be less than the number of values returned by ippGetCount.

    The attr parameter may be modified as a result of setting the value.

    Deleting all values in an attribute deletes the attribute.

    ippEnumString

    Return a string corresponding to the enum value.

    const char *ippEnumString(const char *attrname, int enumvalue);

    Parameters

    attrname Attribute name
    enumvalue Enum value

    Return Value

    Enum string

    ippEnumValue

    Return the value associated with a given enum string.

    int ippEnumValue(const char *attrname, const char *enumstring);

    Parameters

    attrname Attribute name
    enumstring Enum string

    Return Value

    Enum value or -1 if unknown

    ippErrorString

    Return a name for the given status code.

    const char *ippErrorString(ipp_status_t error);

    Parameters

    error Error status

    Return Value

    Text string

     CUPS 1.2/macOS 10.5 ippErrorValue

    Return a status code for the given name.

    ipp_status_t ippErrorValue(const char *name);

    Parameters

    name Name

    Return Value

    IPP status code

    ippFindAttribute

    Find a named attribute in a request.

    ipp_attribute_t *ippFindAttribute(ipp_t *ipp, const char *name, ipp_tag_t type);

    Parameters

    ipp IPP message
    name Name of attribute
    type Type of attribute

    Return Value

    Matching attribute

    Discussion

    Starting with CUPS 2.0, the attribute name can contain a hierarchical list of attribute and member names separated by slashes, for example "media-col/media-size".

    ippFindNextAttribute

    Find the next named attribute in a request.

    ipp_attribute_t *ippFindNextAttribute(ipp_t *ipp, const char *name, ipp_tag_t type);

    Parameters

    ipp IPP message
    name Name of attribute
    type Type of attribute

    Return Value

    Matching attribute

    Discussion

    Starting with CUPS 2.0, the attribute name can contain a hierarchical list of attribute and member names separated by slashes, for example "media-col/media-size".

     CUPS 1.6/macOS 10.8 ippFirstAttribute

    Return the first attribute in the message.

    ipp_attribute_t *ippFirstAttribute(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    First attribute or NULL if none

     CUPS 1.6/macOS 10.8 ippGetBoolean

    Get a boolean value for an attribute.

    int ippGetBoolean(ipp_attribute_t *attr, int element);

    Parameters

    attr IPP attribute
    element Value number (0-based)

    Return Value

    Boolean value or 0 on error

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetCollection

    Get a collection value for an attribute.

    ipp_t *ippGetCollection(ipp_attribute_t *attr, int element);

    Parameters

    attr IPP attribute
    element Value number (0-based)

    Return Value

    Collection value or NULL on error

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetCount

    Get the number of values in an attribute.

    int ippGetCount(ipp_attribute_t *attr);

    Parameters

    attr IPP attribute

    Return Value

    Number of values or 0 on error

     CUPS 1.6/macOS 10.8 ippGetDate

    Get a dateTime value for an attribute.

    const ipp_uchar_t *ippGetDate(ipp_attribute_t *attr, int element);

    Parameters

    attr IPP attribute
    element Value number (0-based)

    Return Value

    dateTime value or NULL

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetGroupTag

    Get the group associated with an attribute.

    ipp_tag_t ippGetGroupTag(ipp_attribute_t *attr);

    Parameters

    attr IPP attribute

    Return Value

    Group tag or IPP_TAG_ZERO on error

     CUPS 1.6/macOS 10.8 ippGetInteger

    Get the integer/enum value for an attribute.

    int ippGetInteger(ipp_attribute_t *attr, int element);

    Parameters

    attr IPP attribute
    element Value number (0-based)

    Return Value

    Value or 0 on error

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetName

    Get the attribute name.

    const char *ippGetName(ipp_attribute_t *attr);

    Parameters

    attr IPP attribute

    Return Value

    Attribute name or NULL for separators

     CUPS 1.7/macOS 10.9 ippGetOctetString

    Get an octetString value from an IPP attribute.

    void *ippGetOctetString(ipp_attribute_t *attr, int element, int *datalen);

    Parameters

    attr IPP attribute
    element Value number (0-based)
    datalen Length of octetString data

    Return Value

    Pointer to octetString data

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetOperation

    Get the operation ID in an IPP message.

    ipp_op_t ippGetOperation(ipp_t *ipp);

    Parameters

    ipp IPP request message

    Return Value

    Operation ID or 0 on error

     CUPS 1.6/macOS 10.8 ippGetRange

    Get a rangeOfInteger value from an attribute.

    int ippGetRange(ipp_attribute_t *attr, int element, int *uppervalue);

    Parameters

    attr IPP attribute
    element Value number (0-based)
    uppervalue Upper value of range

    Return Value

    Lower value of range or 0

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetRequestId

    Get the request ID from an IPP message.

    int ippGetRequestId(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    Request ID or 0 on error

     CUPS 1.6/macOS 10.8 ippGetResolution

    Get a resolution value for an attribute.

    int ippGetResolution(ipp_attribute_t *attr, int element, int *yres, ipp_res_t *units);

    Parameters

    attr IPP attribute
    element Value number (0-based)
    yres Vertical/feed resolution
    units Units for resolution

    Return Value

    Horizontal/cross feed resolution or 0

    Discussion

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetState

    Get the IPP message state.

    ipp_state_t ippGetState(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    IPP message state value

     CUPS 1.6/macOS 10.8 ippGetStatusCode

    Get the status code from an IPP response or event message.

    ipp_status_t ippGetStatusCode(ipp_t *ipp);

    Parameters

    ipp IPP response or event message

    Return Value

    Status code in IPP message

    ippGetString

    const char *ippGetString(ipp_attribute_t *attr, int element, const char **language);

    Parameters

    attr IPP attribute
    element Value number (0-based)
    language Language code (NULL for don't care)

    Return Value

    Get the string and optionally the language code for an attribute.

    The element parameter specifies which value to get from 0 to ippGetCount(attr) - 1.

     CUPS 1.6/macOS 10.8 ippGetValueTag

    Get the value tag for an attribute.

    ipp_tag_t ippGetValueTag(ipp_attribute_t *attr);

    Parameters

    attr IPP attribute

    Return Value

    Value tag or IPP_TAG_ZERO on error

     CUPS 1.6/macOS 10.8 ippGetVersion

    Get the major and minor version number from an IPP message.

    int ippGetVersion(ipp_t *ipp, int *minor);

    Parameters

    ipp IPP message
    minor Minor version number or NULL for don't care

    Return Value

    Major version number or 0 on error

    ippLength

    Compute the length of an IPP message.

    size_t ippLength(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    Size of IPP message

    ippNew

    Allocate a new IPP message.

    ipp_t *ippNew(void);

    Return Value

    New IPP message

     CUPS 1.2/macOS 10.5 ippNewRequest

    Allocate a new IPP request message.

    ipp_t *ippNewRequest(ipp_op_t op);

    Parameters

    op Operation code

    Return Value

    IPP request message

    Discussion

    The new request message is initialized with the "attributes-charset" and "attributes-natural-language" attributes added. The "attributes-natural-language" value is derived from the current locale.

     CUPS 1.7/macOS 10.9 ippNewResponse

    Allocate a new IPP response message.

    ipp_t *ippNewResponse(ipp_t *request);

    Parameters

    request IPP request message

    Return Value

    IPP response message

    Discussion

    The new response message is initialized with the same "version-number", "request-id", "attributes-charset", and "attributes-natural-language" as the provided request message. If the "attributes-charset" or "attributes-natural-language" attributes are missing from the request, 'utf-8' and a value derived from the current locale are substituted, respectively.

     CUPS 1.6/macOS 10.8 ippNextAttribute

    Return the next attribute in the message.

    ipp_attribute_t *ippNextAttribute(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    Next attribute or NULL if none

     CUPS 1.2/macOS 10.5 ippOpString

    Return a name for the given operation id.

    const char *ippOpString(ipp_op_t op);

    Parameters

    op Operation ID

    Return Value

    Name

     CUPS 1.2/macOS 10.5 ippOpValue

    Return an operation id for the given name.

    ipp_op_t ippOpValue(const char *name);

    Parameters

    name Textual name

    Return Value

    Operation ID

    ippPort

    Return the default IPP port number.

    int ippPort(void);

    Return Value

    Port number

    ippRead

    Read data for an IPP message from a HTTP connection.

    ipp_state_t ippRead(http_t *http, ipp_t *ipp);

    Parameters

    http HTTP connection
    ipp IPP data

    Return Value

    Current state

     CUPS 1.1.19/macOS 10.3 ippReadFile

    Read data for an IPP message from a file.

    ipp_state_t ippReadFile(int fd, ipp_t *ipp);

    Parameters

    fd HTTP data
    ipp IPP data

    Return Value

    Current state

     CUPS 1.2/macOS 10.5 ippReadIO

    Read data for an IPP message.

    ipp_state_t ippReadIO(void *src, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp);

    Parameters

    src Data source
    cb Read callback function
    blocking Use blocking IO?
    parent Parent request, if any
    ipp IPP data

    Return Value

    Current state

     CUPS 1.6/macOS 10.8 ippSetBoolean

    Set a boolean value in an attribute.

    int ippSetBoolean(ipp_t *ipp, ipp_attribute_t **attr, int element, int boolvalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    boolvalue Boolean value

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetCollection

    Set a collection value in an attribute.

    int ippSetCollection(ipp_t *ipp, ipp_attribute_t **attr, int element, ipp_t *colvalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    colvalue Collection value

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetDate

    Set a dateTime value in an attribute.

    int ippSetDate(ipp_t *ipp, ipp_attribute_t **attr, int element, const ipp_uchar_t *datevalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    datevalue dateTime value

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetGroupTag

    Set the group tag of an attribute.

    int ippSetGroupTag(ipp_t *ipp, ipp_attribute_t **attr, ipp_tag_t group_tag);

    Parameters

    ipp IPP message
    attr Attribute
    group_tag Group tag

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The group parameter specifies the IPP attribute group tag: none (IPP_TAG_ZERO, for member attributes), document (IPP_TAG_DOCUMENT), event notification (IPP_TAG_EVENT_NOTIFICATION), operation (IPP_TAG_OPERATION), printer (IPP_TAG_PRINTER), subscription (IPP_TAG_SUBSCRIPTION), or unsupported (IPP_TAG_UNSUPPORTED_GROUP).

     CUPS 1.6/macOS 10.8 ippSetInteger

    Set an integer or enum value in an attribute.

    int ippSetInteger(ipp_t *ipp, ipp_attribute_t **attr, int element, int intvalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    intvalue Integer/enum value

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetName

    Set the name of an attribute.

    int ippSetName(ipp_t *ipp, ipp_attribute_t **attr, const char *name);

    Parameters

    ipp IPP message
    attr IPP attribute
    name Attribute name

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

     CUPS 1.7/macOS 10.9 ippSetOctetString

    Set an octetString value in an IPP attribute.

    int ippSetOctetString(ipp_t *ipp, ipp_attribute_t **attr, int element, const void *data, int datalen);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    data Pointer to octetString data
    datalen Length of octetString data

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetOperation

    Set the operation ID in an IPP request message.

    int ippSetOperation(ipp_t *ipp, ipp_op_t op);

    Parameters

    ipp IPP request message
    op Operation ID

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    ippSetPort

    Set the default port number.

    void ippSetPort(int p);

    Parameters

    p Port number to use

     CUPS 1.6/macOS 10.8 ippSetRange

    Set a rangeOfInteger value in an attribute.

    int ippSetRange(ipp_t *ipp, ipp_attribute_t **attr, int element, int lowervalue, int uppervalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    lowervalue Lower bound for range
    uppervalue Upper bound for range

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetRequestId

    Set the request ID in an IPP message.

    int ippSetRequestId(ipp_t *ipp, int request_id);

    Parameters

    ipp IPP message
    request_id Request ID

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The request_id parameter must be greater than 0.

     CUPS 1.6/macOS 10.8 ippSetResolution

    Set a resolution value in an attribute.

    int ippSetResolution(ipp_t *ipp, ipp_attribute_t **attr, int element, ipp_res_t unitsvalue, int xresvalue, int yresvalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    unitsvalue Resolution units
    xresvalue Horizontal/cross feed resolution
    yresvalue Vertical/feed resolution

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.6/macOS 10.8 ippSetState

    Set the current state of the IPP message.

    int ippSetState(ipp_t *ipp, ipp_state_t state);

    Parameters

    ipp IPP message
    state IPP state value

    Return Value

    1 on success, 0 on failure

     CUPS 1.6/macOS 10.8 ippSetStatusCode

    Set the status code in an IPP response or event message.

    int ippSetStatusCode(ipp_t *ipp, ipp_status_t status);

    Parameters

    ipp IPP response or event message
    status Status code

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

     CUPS 1.6/macOS 10.8 ippSetString

    Set a string value in an attribute.

    int ippSetString(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *strvalue);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    strvalue String value

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

     CUPS 1.7/macOS 10.9 ippSetStringf

    Set a formatted string value of an attribute.

    int ippSetStringf(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *format, ...);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    format Printf-style format string
    ... Additional arguments as needed

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

    The format parameter uses formatting characters compatible with the printf family of standard functions. Additional arguments follow it as needed. The formatted string is truncated as needed to the maximum length of the corresponding value type.

     CUPS 1.7/macOS 10.9 ippSetStringfv

    Set a formatted string value of an attribute.

    int ippSetStringfv(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *format, va_list ap);

    Parameters

    ipp IPP message
    attr IPP attribute
    element Value number (0-based)
    format Printf-style format string
    ap Pointer to additional arguments

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    The element parameter specifies which value to set from 0 to ippGetCount(attr).

    The format parameter uses formatting characters compatible with the printf family of standard functions. Additional arguments follow it as needed. The formatted string is truncated as needed to the maximum length of the corresponding value type.

     CUPS 1.6/macOS 10.8 ippSetValueTag

    Set the value tag of an attribute.

    int ippSetValueTag(ipp_t *ipp, ipp_attribute_t **attr, ipp_tag_t value_tag);

    Parameters

    ipp IPP message
    attr IPP attribute
    value_tag Value tag

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The attr parameter may be modified as a result of setting the value.

    Integer (IPP_TAG_INTEGER) values can be promoted to rangeOfInteger (IPP_TAG_RANGE) values, the various string tags can be promoted to name (IPP_TAG_NAME) or nameWithLanguage (IPP_TAG_NAMELANG) values, text (IPP_TAG_TEXT) values can be promoted to textWithLanguage (IPP_TAG_TEXTLANG) values, and all values can be demoted to the various out-of-band value tags such as no-value (IPP_TAG_NOVALUE). All other changes will be rejected.

    Promoting a string attribute to nameWithLanguage or textWithLanguage adds the language code in the "attributes-natural-language" attribute or, if not present, the language code for the current locale.

     CUPS 1.6/macOS 10.8 ippSetVersion

    Set the version number in an IPP message.

    int ippSetVersion(ipp_t *ipp, int major, int minor);

    Parameters

    ipp IPP message
    major Major version number (major.minor)
    minor Minor version number (major.minor)

    Return Value

    1 on success, 0 on failure

    Discussion

    The ipp parameter refers to an IPP message previously created using the ippNew, ippNewRequest, or ippNewResponse functions.

    The valid version numbers are currently 1.0, 1.1, 2.0, 2.1, and 2.2.

     CUPS 2.0/OS 10.10 ippStateString

    Return the name corresponding to a state value.

    const char *ippStateString(ipp_state_t state);

    Parameters

    state State value

    Return Value

    State name

     CUPS 1.4/macOS 10.6 ippTagString

    Return the tag name corresponding to a tag value.

    const char *ippTagString(ipp_tag_t tag);

    Parameters

    tag Tag value

    Return Value

    Tag name

    Discussion

    The returned names are defined in RFC 8011 and the IANA IPP Registry.

     CUPS 1.4/macOS 10.6 ippTagValue

    Return the tag value corresponding to a tag name.

    ipp_tag_t ippTagValue(const char *name);

    Parameters

    name Tag name

    Return Value

    Tag value

    Discussion

    The tag names are defined in RFC 8011 and the IANA IPP Registry.

    ippTimeToDate

    Convert from time in seconds to RFC 2579 format.

    const ipp_uchar_t *ippTimeToDate(time_t t);

    Parameters

    t Time in seconds

    Return Value

    RFC-2579 date/time data

     CUPS 1.7/macOS 10.9 ippValidateAttribute

    Validate the contents of an attribute.

    int ippValidateAttribute(ipp_attribute_t *attr);

    Parameters

    attr Attribute

    Return Value

    1 if valid, 0 otherwise

    Discussion

    This function validates the contents of an attribute based on the name and value tag. 1 is returned if the attribute is valid, 0 otherwise. On failure, cupsLastErrorString is set to a human-readable message.

     CUPS 1.7/macOS 10.9 ippValidateAttributes

    Validate all attributes in an IPP message.

    int ippValidateAttributes(ipp_t *ipp);

    Parameters

    ipp IPP message

    Return Value

    1 if valid, 0 otherwise

    Discussion

    This function validates the contents of the IPP message, including each attribute. Like ippValidateAttribute, cupsLastErrorString is set to a human-readable message on failure.

    ippWrite

    Write data for an IPP message to a HTTP connection.

    ipp_state_t ippWrite(http_t *http, ipp_t *ipp);

    Parameters

    http HTTP connection
    ipp IPP data

    Return Value

    Current state

     CUPS 1.1.19/macOS 10.3 ippWriteFile

    Write data for an IPP message to a file.

    ipp_state_t ippWriteFile(int fd, ipp_t *ipp);

    Parameters

    fd HTTP data
    ipp IPP data

    Return Value

    Current state

     CUPS 1.2/macOS 10.5 ippWriteIO

    Write data for an IPP message.

    ipp_state_t ippWriteIO(void *dst, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp);

    Parameters

    dst Destination
    cb Write callback function
    blocking Use blocking IO?
    parent Parent IPP message
    ipp IPP data

    Return Value

    Current state

    Data Types

    cups_acopy_func_t

    Array element copy function

    typedef void *(*)(void *element, void *data)cups_acopy_func_t;

    cups_adv_t

    AdvanceMedia attribute values

    typedef enum cups_adv_e cups_adv_t;

    cups_afree_func_t

    Array element free function

    typedef void(*)(void *element, void *data)cups_afree_func_t;

    cups_ahash_func_t

    Array hash function

    typedef int(*)(void *element, void *data)cups_ahash_func_t;

    cups_array_func_t

    Array comparison function

    typedef int(*)(void *first, void *second, void *data)cups_array_func_t;

    cups_array_t

    CUPS array type

    typedef struct _cups_array_s cups_array_t;

    cups_bool_t

    Boolean type

    typedef enum cups_bool_e cups_bool_t;

     CUPS 1.5/macOS 10.7 cups_client_cert_cb_t

    Client credentials callback

    typedef int(*)(http_t *http, void *tls, cups_array_t *distinguished_names, void *user_data)cups_client_cert_cb_t;

    cups_cspace_t

    cupsColorSpace attribute values

    typedef enum cups_cspace_e cups_cspace_t;

    cups_cut_t

    CutMedia attribute values

    typedef enum cups_cut_e cups_cut_t;

    cups_dentry_t

    Directory entry type

    typedef struct cups_dentry_s cups_dentry_t;

     CUPS 1.6/macOS 10.8 cups_dest_cb_t

    Destination enumeration callback

    typedef int(*)(void *user_data, unsigned flags, cups_dest_t *dest)cups_dest_cb_t;

    cups_dest_t

    Destination

    typedef struct cups_dest_s cups_dest_t;

     CUPS 1.6/macOS 10.8 cups_dinfo_t

    Destination capability and status information

    typedef struct _cups_dinfo_s cups_dinfo_t;

    cups_dir_t

    Directory type

    typedef struct _cups_dir_s cups_dir_t;

    cups_edge_t

    LeadingEdge attribute values

    typedef enum cups_edge_e cups_edge_t;

    cups_file_t

    CUPS file type

    typedef struct _cups_file_s cups_file_t;

    cups_job_t

    Job

    typedef struct cups_job_s cups_job_t;

    cups_jog_t

    Jog attribute values

    typedef enum cups_jog_e cups_jog_t;

    cups_mode_t

    cupsRasterOpen modes

    typedef enum cups_mode_e cups_mode_t;

    cups_option_t

    Printer Options

    typedef struct cups_option_s cups_option_t;

    cups_order_t

    cupsColorOrder attribute values

    typedef enum cups_order_e cups_order_t;

    cups_orient_t

    Orientation attribute values

    typedef enum cups_orient_e cups_orient_t;

     CUPS 1.2/macOS 10.5 cups_page_header2_t

    Version 2 page header

    typedef struct cups_page_header2_s cups_page_header2_t;

     DEPRECATED cups_page_header_t

    Version 1 page header

    typedef struct cups_page_header_s cups_page_header_t;

     CUPS 1.4/macOS 10.6 cups_password_cb2_t

    New password callback

    typedef const char *(*)(const char *prompt, http_t *http, const char *method, const char *resource, void *user_data)cups_password_cb2_t;

    cups_ptype_t

    Printer type/capability bits

    typedef unsigned cups_ptype_t;

    cups_raster_iocb_t

    cupsRasterOpenIO callback function

    typedef ssize_t(*)(void *ctx, unsigned char *buffer, size_t length) cups_raster_iocb_t;

    cups_raster_t

    Raster stream data

    typedef struct _cups_raster_s cups_raster_t;

     CUPS 1.5/macOS 10.7 cups_server_cert_cb_t

    Server credentials callback

    typedef int(*)(http_t *http, void *tls, cups_array_t *certs, void *user_data)cups_server_cert_cb_t;

     CUPS 1.6/macOS 10.8 cups_size_t

    Media Size

    typedef struct cups_size_s cups_size_t;

     CUPS 1.2/macOS 10.5 http_addr_t

    Socket address union, which makes using IPv6 and other address types easier and more portable.

    typedef union _http_addr_u / http_addr_t;

    http_encoding_t

    HTTP transfer encoding values

    typedef enum http_encoding_e http_encoding_t;

    http_encryption_t

    HTTP encryption values

    typedef enum http_encryption_e http_encryption_t;

    http_field_t

    HTTP field names

    typedef enum http_field_e http_field_t;

    http_keepalive_t

    HTTP keep-alive values

    typedef enum http_keepalive_e http_keepalive_t;

    http_state_t

    HTTP state values; states are server-oriented...

    typedef enum http_state_e http_state_t;

    http_t

    HTTP connection type

    typedef struct _http_s http_t;

     CUPS 1.5/macOS 10.7 http_timeout_cb_t

    HTTP timeout callback

    typedef int(*)(http_t *http, void *user_data)http_timeout_cb_t;

     CUPS 2.0/OS 10.10 http_trust_t

    Level of trust for credentials

    typedef enum http_trust_e http_trust_t;

    http_uri_coding_t

    URI en/decode flags

    typedef enum http_uri_coding_e http_uri_coding_t;

     CUPS 1.2 http_uri_status_t

    URI separation status

    typedef enum http_uri_status_e http_uri_status_t;

    ipp_attribute_t

    IPP attribute

    typedef struct _ipp_attribute_s ipp_attribute_t;

     CUPS 1.6/macOS 10.8 ipp_copycb_t

    ippCopyAttributes callback function

    typedef int(*)(void *context, ipp_t *dst, ipp_attribute_t *attr)ipp_copycb_t;

     CUPS 1.2/macOS 10.5 ipp_iocb_t

    ippReadIO/ippWriteIO callback function

    typedef ssize_t(*)(void *context, ipp_uchar_t *buffer, size_t bytes) ipp_iocb_t;

    ipp_orient_t

    Orientation values

    typedef enum ipp_orient_e ipp_orient_t;

    ipp_pstate_t

    Printer state values

    typedef enum ipp_pstate_e ipp_pstate_t;

    ipp_quality_t

    Print quality values

    typedef enum ipp_quality_e ipp_quality_t;

    ipp_res_t

    Resolution units

    typedef enum ipp_res_e ipp_res_t;

    ipp_rstate_t

    resource-state values

    typedef enum ipp_rstate_e ipp_rstate_t;

    ipp_sstate_t

    system-state values

    typedef enum ipp_sstate_e ipp_sstate_t;

    ipp_state_t

    ipp_t state values

    typedef enum ipp_state_e ipp_state_t;

    ipp_t

    IPP request/response data

    typedef struct _ipp_s ipp_t;

    pwg_media_t

    Common media size data

    typedef struct pwg_media_s pwg_media_t;

    Structures

    cups_dentry_s

    Directory entry type

    struct cups_dentry_s {
        struct stat fileinfo;
        char filename[260];
    };

    Members

    fileinfo File information
    filename[260] File name

    cups_dest_s

    Destination

    struct cups_dest_s {
        char *name, *instance;
        int is_default;
        int num_options;
        cups_option_t *options;
    };

    Members

    instance Local instance name or NULL
    is_default Is this printer the default?
    num_options Number of options
    options Options

    cups_job_s

    Job

    struct cups_job_s {
        time_t completed_time;
        time_t creation_time;
        char *dest;
        char *format;
        int id;
        int priority;
        time_t processing_time;
        int size;
        ipp_jstate_t state;
        char *title;
        char *user;
    };

    Members

    completed_time Time the job was completed
    creation_time Time the job was created
    dest Printer or class name
    format Document format
    id The job ID
    priority Priority (1-100)
    processing_time Time the job was processed
    size Size in kilobytes
    state Job state
    title Title/job name
    user User that submitted the job

    cups_option_s

    Printer Options

    struct cups_option_s {
        char *name;
        char *value;
    };

    Members

    name Name of option
    value Value of option

     CUPS 1.2/macOS 10.5 cups_page_header2_s

    Version 2 page header

    struct cups_page_header2_s {
        unsigned AdvanceDistance;
        cups_adv_t AdvanceMedia;
        cups_bool_t Collate;
        cups_cut_t CutMedia;
        cups_bool_t Duplex;
        unsigned HWResolution[2];
        unsigned ImagingBoundingBox[4];
        cups_bool_t InsertSheet;
        cups_jog_t Jog;
        cups_edge_t LeadingEdge;
        cups_bool_t ManualFeed;
        unsigned Margins[2];
        char MediaClass[64];
        char MediaColor[64];
        unsigned MediaPosition;
        char MediaType[64];
        unsigned MediaWeight;
        cups_bool_t MirrorPrint;
        cups_bool_t NegativePrint;
        unsigned NumCopies;
        cups_orient_t Orientation;
        cups_bool_t OutputFaceUp;
        char OutputType[64];
        unsigned PageSize[2];
        cups_bool_t Separations;
        cups_bool_t TraySwitch;
        cups_bool_t Tumble;
        unsigned cupsBitsPerColor;
        unsigned cupsBitsPerPixel;
        float cupsBorderlessScalingFactor;
        unsigned cupsBytesPerLine;
        cups_order_t cupsColorOrder;
        cups_cspace_t cupsColorSpace;
        unsigned cupsCompression;
        unsigned cupsHeight;
        float cupsImagingBBox[4];
        unsigned cupsInteger[16];
        char cupsMarkerType[64];
        unsigned cupsMediaType;
        unsigned cupsNumColors;
        char cupsPageSizeName[64];
        float cupsPageSize[2];
        float cupsReal[16];
        char cupsRenderingIntent[64];
        unsigned cupsRowCount;
        unsigned cupsRowFeed;
        unsigned cupsRowStep;
        char cupsString[16][64];
        unsigned cupsWidth;
    };

    Members

    AdvanceDistance AdvanceDistance value in points
    AdvanceMedia AdvanceMedia value (cups_adv_t)
    Collate Collated copies value
    CutMedia CutMedia value (cups_cut_t)
    Duplex Duplexed (double-sided) value
    HWResolution[2] Resolution in dots-per-inch
    ImagingBoundingBox[4] Pixel region that is painted (points, left, bottom, right, top)
    InsertSheet InsertSheet value
    Jog Jog value (cups_jog_t)
    LeadingEdge LeadingEdge value (cups_edge_t)
    ManualFeed ManualFeed value
    Margins[2] Lower-lefthand margins in points
    MediaClass[64] MediaClass string
    MediaColor[64] MediaColor string
    MediaPosition MediaPosition value
    MediaType[64] MediaType string
    MediaWeight MediaWeight value in grams/m^2
    MirrorPrint MirrorPrint value
    NegativePrint NegativePrint value
    NumCopies Number of copies to produce
    Orientation Orientation value (cups_orient_t)
    OutputFaceUp OutputFaceUp value
    OutputType[64] OutputType string
    PageSize[2] Width and length of page in points
    Separations Separations value
    TraySwitch TraySwitch value
    Tumble Tumble value
    cupsBitsPerColor Number of bits for each color
    cupsBitsPerPixel Number of bits for each pixel
    cupsBorderlessScalingFactor  CUPS 1.2/macOS 10.5  Scaling that was applied to page data
    cupsBytesPerLine Number of bytes per line
    cupsColorOrder Order of colors
    cupsColorSpace True colorspace
    cupsCompression Device compression to use
    cupsHeight Height of page image in pixels
    cupsImagingBBox[4]  CUPS 1.2/macOS 10.5  Floating point ImagingBoundingBox (scaling factor not applied, left, bottom, right, top)
    cupsInteger[16]  CUPS 1.2/macOS 10.5  User-defined integer values
    cupsMarkerType[64]  CUPS 1.2/macOS 10.5  Ink/toner type
    cupsMediaType Media type code
    cupsNumColors  CUPS 1.2/macOS 10.5  Number of color components
    cupsPageSizeName[64]  CUPS 1.2/macOS 10.5  PageSize name
    cupsPageSize[2]  CUPS 1.2/macOS 10.5  Floating point PageSize (scaling * factor not applied)
    cupsReal[16]  CUPS 1.2/macOS 10.5  User-defined floating-point values
    cupsRenderingIntent[64]  CUPS 1.2/macOS 10.5  Color rendering intent
    cupsRowCount Rows per band
    cupsRowFeed Feed between bands
    cupsRowStep Spacing between lines
    cupsString[16][64]  CUPS 1.2/macOS 10.5  User-defined string values
    cupsWidth Width of page image in pixels

     DEPRECATED cups_page_header_s

    Version 1 page header

    struct cups_page_header_s {
        unsigned AdvanceDistance;
        cups_adv_t AdvanceMedia;
        cups_bool_t Collate;
        cups_cut_t CutMedia;
        cups_bool_t Duplex;
        unsigned HWResolution[2];
        unsigned ImagingBoundingBox[4];
        cups_bool_t InsertSheet;
        cups_jog_t Jog;
        cups_edge_t LeadingEdge;
        cups_bool_t ManualFeed;
        unsigned Margins[2];
        char MediaClass[64];
        char MediaColor[64];
        unsigned MediaPosition;
        char MediaType[64];
        unsigned MediaWeight;
        cups_bool_t MirrorPrint;
        cups_bool_t NegativePrint;
        unsigned NumCopies;
        cups_orient_t Orientation;
        cups_bool_t OutputFaceUp;
        char OutputType[64];
        unsigned PageSize[2];
        cups_bool_t Separations;
        cups_bool_t TraySwitch;
        cups_bool_t Tumble;
        unsigned cupsBitsPerColor;
        unsigned cupsBitsPerPixel;
        unsigned cupsBytesPerLine;
        cups_order_t cupsColorOrder;
        cups_cspace_t cupsColorSpace;
        unsigned cupsCompression;
        unsigned cupsHeight;
        unsigned cupsMediaType;
        unsigned cupsRowCount;
        unsigned cupsRowFeed;
        unsigned cupsRowStep;
        unsigned cupsWidth;
    };

    Members

    AdvanceDistance AdvanceDistance value in points
    AdvanceMedia AdvanceMedia value (cups_adv_t)
    Collate Collated copies value
    CutMedia CutMedia value (cups_cut_t)
    Duplex Duplexed (double-sided) value
    HWResolution[2] Resolution in dots-per-inch
    ImagingBoundingBox[4] Pixel region that is painted (points, left, bottom, right, top)
    InsertSheet InsertSheet value
    Jog Jog value (cups_jog_t)
    LeadingEdge LeadingEdge value (cups_edge_t)
    ManualFeed ManualFeed value
    Margins[2] Lower-lefthand margins in points
    MediaClass[64] MediaClass string
    MediaColor[64] MediaColor string
    MediaPosition MediaPosition value
    MediaType[64] MediaType string
    MediaWeight MediaWeight value in grams/m^2
    MirrorPrint MirrorPrint value
    NegativePrint NegativePrint value
    NumCopies Number of copies to produce
    Orientation Orientation value (cups_orient_t)
    OutputFaceUp OutputFaceUp value
    OutputType[64] OutputType string
    PageSize[2] Width and length of page in points
    Separations Separations value
    TraySwitch TraySwitch value
    Tumble Tumble value
    cupsBitsPerColor Number of bits for each color
    cupsBitsPerPixel Number of bits for each pixel
    cupsBytesPerLine Number of bytes per line
    cupsColorOrder Order of colors
    cupsColorSpace True colorspace
    cupsCompression Device compression to use
    cupsHeight Height of page image in pixels
    cupsMediaType Media type code
    cupsRowCount Rows per band
    cupsRowFeed Feed between bands
    cupsRowStep Spacing between lines
    cupsWidth Width of page image in pixels

     CUPS 1.6/macOS 10.8 cups_size_s

    Media Size

    struct cups_size_s {
        char media[128];
        int width, length, bottom, left, right, top;
    };

    Members

    media[128] Media name to use
    top Top margin in hundredths of millimeters

    pwg_media_s

    Common media size data

    struct pwg_media_s {
        int width, length;
        const char *pwg, *legacy, *ppd;
    };

    Members

    length Length in 2540ths
    ppd Standard Adobe PPD name

    Constants

    cups_adv_e

    AdvanceMedia attribute values

    Constants

    CUPS_ADVANCE_FILE Advance the roll after this file
    CUPS_ADVANCE_JOB Advance the roll after this job
    CUPS_ADVANCE_NONE Never advance the roll
    CUPS_ADVANCE_PAGE Advance the roll after this page
    CUPS_ADVANCE_SET Advance the roll after this set

    cups_bool_e

    Boolean type

    Constants

    CUPS_FALSE Logical false
    CUPS_TRUE Logical true

    cups_cspace_e

    cupsColorSpace attribute values

    Constants

    CUPS_CSPACE_ADOBERGB  CUPS 1.4.5 Red, green, blue (Adobe RGB)
    CUPS_CSPACE_CIELab  CUPS 1.1.19/macOS 10.3 CIE Lab
    CUPS_CSPACE_CIEXYZ  CUPS 1.1.19/macOS 10.3 CIE XYZ
    CUPS_CSPACE_CMY Cyan, magenta, yellow (DeviceCMY)
    CUPS_CSPACE_CMYK Cyan, magenta, yellow, black (DeviceCMYK)
    CUPS_CSPACE_DEVICE1  CUPS 1.4.5 DeviceN, 1 color
    CUPS_CSPACE_DEVICE2  CUPS 1.4.5 DeviceN, 2 colors
    CUPS_CSPACE_DEVICE3  CUPS 1.4.5 DeviceN, 3 colors
    CUPS_CSPACE_DEVICE4  CUPS 1.4.5 DeviceN, 4 colors
    CUPS_CSPACE_DEVICE5  CUPS 1.4.5 DeviceN, 5 colors
    CUPS_CSPACE_DEVICE6  CUPS 1.4.5 DeviceN, 6 colors
    CUPS_CSPACE_DEVICE7  CUPS 1.4.5 DeviceN, 7 colors
    CUPS_CSPACE_DEVICE8  CUPS 1.4.5 DeviceN, 8 colors
    CUPS_CSPACE_DEVICE9  CUPS 1.4.5 DeviceN, 9 colors
    CUPS_CSPACE_DEVICEA  CUPS 1.4.5 DeviceN, 10 colors
    CUPS_CSPACE_DEVICEB  CUPS 1.4.5 DeviceN, 11 colors
    CUPS_CSPACE_DEVICEC  CUPS 1.4.5 DeviceN, 12 colors
    CUPS_CSPACE_DEVICED  CUPS 1.4.5 DeviceN, 13 colors
    CUPS_CSPACE_DEVICEE  CUPS 1.4.5 DeviceN, 14 colors
    CUPS_CSPACE_DEVICEF  CUPS 1.4.5 DeviceN, 15 colors
    CUPS_CSPACE_GMCK  DEPRECATED Gold, magenta, yellow, black
    CUPS_CSPACE_GMCS  DEPRECATED Gold, magenta, yellow, silver
    CUPS_CSPACE_GOLD  DEPRECATED Gold foil
    CUPS_CSPACE_ICC1  CUPS 1.1.19/macOS 10.3 ICC-based, 1 color
    CUPS_CSPACE_ICC2  CUPS 1.1.19/macOS 10.3 ICC-based, 2 colors
    CUPS_CSPACE_ICC3  CUPS 1.1.19/macOS 10.3 ICC-based, 3 colors
    CUPS_CSPACE_ICC4  CUPS 1.1.19/macOS 10.3 ICC-based, 4 colors
    CUPS_CSPACE_ICC5  CUPS 1.1.19/macOS 10.3 ICC-based, 5 colors
    CUPS_CSPACE_ICC6  CUPS 1.1.19/macOS 10.3 ICC-based, 6 colors
    CUPS_CSPACE_ICC7  CUPS 1.1.19/macOS 10.3 ICC-based, 7 colors
    CUPS_CSPACE_ICC8  CUPS 1.1.19/macOS 10.3 ICC-based, 8 colors
    CUPS_CSPACE_ICC9  CUPS 1.1.19/macOS 10.3 ICC-based, 9 colors
    CUPS_CSPACE_ICCA  CUPS 1.1.19/macOS 10.3 ICC-based, 10 colors
    CUPS_CSPACE_ICCB  CUPS 1.1.19/macOS 10.3 ICC-based, 11 colors
    CUPS_CSPACE_ICCC  CUPS 1.1.19/macOS 10.3 ICC-based, 12 colors
    CUPS_CSPACE_ICCD  CUPS 1.1.19/macOS 10.3 ICC-based, 13 colors
    CUPS_CSPACE_ICCE  CUPS 1.1.19/macOS 10.3 ICC-based, 14 colors
    CUPS_CSPACE_ICCF  CUPS 1.1.19/macOS 10.3 ICC-based, 15 colors
    CUPS_CSPACE_K Black (DeviceK)
    CUPS_CSPACE_KCMY  DEPRECATED Black, cyan, magenta, yellow
    CUPS_CSPACE_KCMYcm  DEPRECATED Black, cyan, magenta, yellow, light-cyan, light-magenta
    CUPS_CSPACE_RGB Red, green, blue (DeviceRGB, sRGB by default)
    CUPS_CSPACE_RGBA Red, green, blue, alpha (DeviceRGB, sRGB by default)
    CUPS_CSPACE_RGBW  CUPS 1.2/macOS 10.5 Red, green, blue, white (DeviceRGB, sRGB by default)
    CUPS_CSPACE_SILVER  DEPRECATED Silver foil
    CUPS_CSPACE_SRGB  CUPS 1.4.5 Red, green, blue (sRGB)
    CUPS_CSPACE_SW  CUPS 1.4.5 Luminance (gamma 2.2)
    CUPS_CSPACE_W Luminance (DeviceGray, gamma 2.2 by default)
    CUPS_CSPACE_WHITE  DEPRECATED White ink (as black)
    CUPS_CSPACE_YMC  DEPRECATED Yellow, magenta, cyan
    CUPS_CSPACE_YMCK  DEPRECATED Yellow, magenta, cyan, black

    cups_cut_e

    CutMedia attribute values

    Constants

    CUPS_CUT_FILE Cut the roll after this file
    CUPS_CUT_JOB Cut the roll after this job
    CUPS_CUT_NONE Never cut the roll
    CUPS_CUT_PAGE Cut the roll after this page
    CUPS_CUT_SET Cut the roll after this set

    cups_edge_e

    LeadingEdge attribute values

    Constants

    CUPS_EDGE_BOTTOM Leading edge is the bottom of the page
    CUPS_EDGE_LEFT Leading edge is the left of the page
    CUPS_EDGE_RIGHT Leading edge is the right of the page
    CUPS_EDGE_TOP Leading edge is the top of the page

    cups_jog_e

    Jog attribute values

    Constants

    CUPS_JOG_FILE Move pages after this file
    CUPS_JOG_JOB Move pages after this job
    CUPS_JOG_NONE Never move pages
    CUPS_JOG_SET Move pages after this set

    cups_mode_e

    cupsRasterOpen modes

    Constants

    CUPS_RASTER_READ Open stream for reading
    CUPS_RASTER_WRITE Open stream for writing
    CUPS_RASTER_WRITE_COMPRESSED  CUPS 1.3/macOS 10.5 Open stream for compressed writing
    CUPS_RASTER_WRITE_PWG  CUPS 1.5/macOS 10.7 Open stream for compressed writing in PWG Raster mode

    cups_order_e

    cupsColorOrder attribute values

    Constants

    CUPS_ORDER_BANDED CCC MMM YYY KKK ...
    CUPS_ORDER_CHUNKED CMYK CMYK CMYK ...
    CUPS_ORDER_PLANAR CCC ... MMM ... YYY ... KKK ...

    cups_orient_e

    Orientation attribute values

    Constants

    CUPS_ORIENT_0 Don't rotate the page
    CUPS_ORIENT_180 Turn the page upside down
    CUPS_ORIENT_270 Rotate the page clockwise
    CUPS_ORIENT_90 Rotate the page counter-clockwise

    cups_ptype_e

    Printer type/capability bit constants

    Constants

    CUPS_PRINTER_AUTHENTICATED  CUPS 1.2/macOS 10.5 Printer requires authentication
    CUPS_PRINTER_BIND Can bind output
    CUPS_PRINTER_BW Can do B&W printing
    CUPS_PRINTER_CLASS Printer class
    CUPS_PRINTER_COLLATE Can quickly collate copies
    CUPS_PRINTER_COLOR Can do color printing
    CUPS_PRINTER_COMMANDS  CUPS 1.2/macOS 10.5 Printer supports maintenance commands
    CUPS_PRINTER_COPIES Can do copies in hardware
    CUPS_PRINTER_COVER Can cover output
    CUPS_PRINTER_DEFAULT Default printer on network
    CUPS_PRINTER_DISCOVERED  CUPS 1.2/macOS 10.5 Printer was discovered
    CUPS_PRINTER_DUPLEX Can do two-sided printing
    CUPS_PRINTER_FAX Fax queue
    CUPS_PRINTER_LARGE Can print on D/E/A1/A0-size media
    CUPS_PRINTER_LOCAL Local printer or class
    CUPS_PRINTER_MEDIUM Can print on Tabloid/B/C/A3/A2-size media
    CUPS_PRINTER_NOT_SHARED  CUPS 1.2/macOS 10.5 Printer is not shared
    CUPS_PRINTER_PUNCH Can punch output
    CUPS_PRINTER_REJECTING Printer is rejecting jobs
    CUPS_PRINTER_REMOTE Remote printer or class
    CUPS_PRINTER_SMALL Can print on Letter/Legal/A4-size media
    CUPS_PRINTER_SORT Can sort output
    CUPS_PRINTER_STAPLE Can staple output
    CUPS_PRINTER_VARIABLE Can print on rolls and custom-size media

    http_encoding_e

    HTTP transfer encoding values

    Constants

    HTTP_ENCODING_CHUNKED Data is chunked
    HTTP_ENCODING_FIELDS Sending HTTP fields
    HTTP_ENCODING_LENGTH Data is sent with Content-Length

    http_encryption_e

    HTTP encryption values

    Constants

    HTTP_ENCRYPTION_ALWAYS Always encrypt (SSL)
    HTTP_ENCRYPTION_IF_REQUESTED Encrypt if requested (TLS upgrade)
    HTTP_ENCRYPTION_NEVER Never encrypt
    HTTP_ENCRYPTION_REQUIRED Encryption is required (TLS upgrade)

    http_field_e

    HTTP field names

    Constants

    HTTP_FIELD_ACCEPT_ENCODING  CUPS 1.7/macOS 10.9 Accepting-Encoding field
    HTTP_FIELD_ACCEPT_LANGUAGE Accept-Language field
    HTTP_FIELD_ACCEPT_RANGES Accept-Ranges field
    HTTP_FIELD_ALLOW  CUPS 1.7/macOS 10.9 Allow field
    HTTP_FIELD_AUTHENTICATION_INFO  CUPS 2.2.9) Authentication-Info field (
    HTTP_FIELD_AUTHORIZATION Authorization field
    HTTP_FIELD_CONNECTION Connection field
    HTTP_FIELD_CONTENT_ENCODING Content-Encoding field
    HTTP_FIELD_CONTENT_LANGUAGE Content-Language field
    HTTP_FIELD_CONTENT_LENGTH Content-Length field
    HTTP_FIELD_CONTENT_LOCATION Content-Location field
    HTTP_FIELD_CONTENT_MD5 Content-MD5 field
    HTTP_FIELD_CONTENT_RANGE Content-Range field
    HTTP_FIELD_CONTENT_TYPE Content-Type field
    HTTP_FIELD_CONTENT_VERSION Content-Version field
    HTTP_FIELD_DATE Date field
    HTTP_FIELD_HOST Host field
    HTTP_FIELD_IF_MODIFIED_SINCE If-Modified-Since field
    HTTP_FIELD_IF_UNMODIFIED_SINCE If-Unmodified-Since field
    HTTP_FIELD_KEEP_ALIVE Keep-Alive field
    HTTP_FIELD_LAST_MODIFIED Last-Modified field
    HTTP_FIELD_LINK Link field
    HTTP_FIELD_LOCATION Location field
    HTTP_FIELD_MAX Maximum field index
    HTTP_FIELD_RANGE Range field
    HTTP_FIELD_REFERER Referer field
    HTTP_FIELD_RETRY_AFTER Retry-After field
    HTTP_FIELD_SERVER  CUPS 1.7/macOS 10.9 Server field
    HTTP_FIELD_TRANSFER_ENCODING Transfer-Encoding field
    HTTP_FIELD_UNKNOWN Unknown field
    HTTP_FIELD_UPGRADE Upgrade field
    HTTP_FIELD_USER_AGENT User-Agent field
    HTTP_FIELD_WWW_AUTHENTICATE WWW-Authenticate field

    http_keepalive_e

    HTTP keep-alive values

    Constants

    HTTP_KEEPALIVE_OFF No keep alive support
    HTTP_KEEPALIVE_ON Use keep alive

    http_state_e

    HTTP state values; states are server-oriented...

    Constants

    HTTP_STATE_CONNECT CONNECT command, waiting for blank line
    HTTP_STATE_DELETE DELETE command, waiting for blank line
    HTTP_STATE_ERROR Error on socket
    HTTP_STATE_GET GET command, waiting for blank line
    HTTP_STATE_GET_SEND GET command, sending data
    HTTP_STATE_HEAD HEAD command, waiting for blank line
    HTTP_STATE_OPTIONS OPTIONS command, waiting for blank line
    HTTP_STATE_POST POST command, waiting for blank line
    HTTP_STATE_POST_RECV POST command, receiving data
    HTTP_STATE_POST_SEND POST command, sending data
    HTTP_STATE_PUT PUT command, waiting for blank line
    HTTP_STATE_PUT_RECV PUT command, receiving data
    HTTP_STATE_STATUS Command complete, sending status
    HTTP_STATE_TRACE TRACE command, waiting for blank line
    HTTP_STATE_UNKNOWN_METHOD  CUPS 1.7/macOS 10.9 Unknown request method, waiting for blank line
    HTTP_STATE_UNKNOWN_VERSION  CUPS 1.7/macOS 10.9 Unknown request method, waiting for blank line
    HTTP_STATE_WAITING Waiting for command

    http_status_e

    HTTP status codes

    Constants

    HTTP_STATUS_ACCEPTED DELETE command was successful
    HTTP_STATUS_BAD_GATEWAY Bad gateway
    HTTP_STATUS_BAD_REQUEST Bad request
    HTTP_STATUS_CONFLICT Request is self-conflicting
    HTTP_STATUS_CONTINUE Everything OK, keep going...
    HTTP_STATUS_CREATED PUT command was successful
    HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED  CUPS 1.4 User canceled authorization
    HTTP_STATUS_CUPS_PKI_ERROR  CUPS 1.5/macOS 10.7 Error negotiating a secure connection
    HTTP_STATUS_ERROR An error response from httpXxxx()
    HTTP_STATUS_EXPECTATION_FAILED The expectation given in an Expect header field was not met
    HTTP_STATUS_FORBIDDEN Forbidden to access this URI
    HTTP_STATUS_FOUND Document was found at a different URI
    HTTP_STATUS_GATEWAY_TIMEOUT Gateway connection timed out
    HTTP_STATUS_GONE Server has gone away
    HTTP_STATUS_LENGTH_REQUIRED A content length or encoding is required
    HTTP_STATUS_METHOD_NOT_ALLOWED Method is not allowed
    HTTP_STATUS_MOVED_PERMANENTLY Document has moved permanently
    HTTP_STATUS_MULTIPLE_CHOICES Multiple files match request
    HTTP_STATUS_NONE  CUPS 1.7/macOS 10.9 No Expect value
    HTTP_STATUS_NOT_ACCEPTABLE Not Acceptable
    HTTP_STATUS_NOT_AUTHORITATIVE Information isn't authoritative
    HTTP_STATUS_NOT_FOUND URI was not found
    HTTP_STATUS_NOT_IMPLEMENTED Feature not implemented
    HTTP_STATUS_NOT_MODIFIED File not modified
    HTTP_STATUS_NOT_SUPPORTED HTTP version not supported
    HTTP_STATUS_NO_CONTENT Successful command, no new data
    HTTP_STATUS_OK OPTIONS/GET/HEAD/POST/TRACE command was successful
    HTTP_STATUS_PARTIAL_CONTENT Only a partial file was received/sent
    HTTP_STATUS_PAYMENT_REQUIRED Payment required
    HTTP_STATUS_PRECONDITION Precondition failed
    HTTP_STATUS_PROXY_AUTHENTICATION Proxy Authentication is Required
    HTTP_STATUS_REQUESTED_RANGE The requested range is not satisfiable
    HTTP_STATUS_REQUEST_TIMEOUT Request timed out
    HTTP_STATUS_REQUEST_TOO_LARGE Request entity too large
    HTTP_STATUS_RESET_CONTENT Content was reset/recreated
    HTTP_STATUS_SEE_OTHER See this other link
    HTTP_STATUS_SERVER_ERROR Internal server error
    HTTP_STATUS_SERVICE_UNAVAILABLE Service is unavailable
    HTTP_STATUS_SWITCHING_PROTOCOLS HTTP upgrade to TLS/SSL
    HTTP_STATUS_TEMPORARY_REDIRECT Temporary redirection
    HTTP_STATUS_UNAUTHORIZED Unauthorized to access host
    HTTP_STATUS_UNSUPPORTED_MEDIATYPE The requested media type is unsupported
    HTTP_STATUS_UPGRADE_REQUIRED Upgrade to SSL/TLS required
    HTTP_STATUS_URI_TOO_LONG URI too long
    HTTP_STATUS_USE_PROXY Must use a proxy to access this URI

     CUPS 2.0/OS 10.10 http_trust_e

    Level of trust for credentials

    Constants

    HTTP_TRUST_CHANGED Credentials have changed
    HTTP_TRUST_EXPIRED Credentials are expired
    HTTP_TRUST_INVALID Credentials are invalid
    HTTP_TRUST_OK Credentials are OK/trusted
    HTTP_TRUST_RENEWED Credentials have been renewed
    HTTP_TRUST_UNKNOWN Credentials are unknown/new

    http_uri_coding_e

    URI en/decode flags

    Constants

    HTTP_URI_CODING_ALL En/decode everything
    HTTP_URI_CODING_HOSTNAME En/decode the hostname portion
    HTTP_URI_CODING_MOST En/decode all but the query
    HTTP_URI_CODING_NONE Don't en/decode anything
    HTTP_URI_CODING_QUERY En/decode the query portion
    HTTP_URI_CODING_RESOURCE En/decode the resource portion
    HTTP_URI_CODING_RFC6874 Use RFC 6874 address format
    HTTP_URI_CODING_USERNAME En/decode the username portion

     CUPS 1.2 http_uri_status_e

    URI separation status

    Constants

    HTTP_URI_STATUS_BAD_ARGUMENTS Bad arguments to function (error)
    HTTP_URI_STATUS_BAD_HOSTNAME Bad hostname in URI (error)
    HTTP_URI_STATUS_BAD_PORT Bad port number in URI (error)
    HTTP_URI_STATUS_BAD_RESOURCE Bad resource in URI (error)
    HTTP_URI_STATUS_BAD_SCHEME Bad scheme in URI (error)
    HTTP_URI_STATUS_BAD_URI Bad/empty URI (error)
    HTTP_URI_STATUS_BAD_USERNAME Bad username in URI (error)
    HTTP_URI_STATUS_MISSING_RESOURCE Missing resource in URI (warning)
    HTTP_URI_STATUS_MISSING_SCHEME Missing scheme in URI (warning)
    HTTP_URI_STATUS_OK URI decoded OK
    HTTP_URI_STATUS_OVERFLOW URI buffer for httpAssembleURI is too small
    HTTP_URI_STATUS_UNKNOWN_SCHEME Unknown scheme in URI (warning)

    ipp_finishings_e

    Finishings values

    Constants

    IPP_FINISHINGS_BALE Bale (any type)
    IPP_FINISHINGS_BIND Bind
    IPP_FINISHINGS_BIND_BOTTOM Bind on bottom
    IPP_FINISHINGS_BIND_LEFT Bind on left
    IPP_FINISHINGS_BIND_RIGHT Bind on right
    IPP_FINISHINGS_BIND_TOP Bind on top
    IPP_FINISHINGS_BOOKLET_MAKER Fold to make booklet
    IPP_FINISHINGS_COAT Apply protective liquid or powder coating
    IPP_FINISHINGS_COVER Add cover
    IPP_FINISHINGS_EDGE_STITCH Stitch along any side
    IPP_FINISHINGS_EDGE_STITCH_BOTTOM Stitch along bottom edge
    IPP_FINISHINGS_EDGE_STITCH_LEFT Stitch along left side
    IPP_FINISHINGS_EDGE_STITCH_RIGHT Stitch along right side
    IPP_FINISHINGS_EDGE_STITCH_TOP Stitch along top edge
    IPP_FINISHINGS_FOLD Fold (any type)
    IPP_FINISHINGS_FOLD_ACCORDION Accordion-fold the paper vertically into four sections
    IPP_FINISHINGS_FOLD_DOUBLE_GATE Fold the top and bottom quarters of the paper towards the midline, then fold in half vertically
    IPP_FINISHINGS_FOLD_ENGINEERING_Z Fold the paper vertically into two small sections and one larger, forming an elongated Z
    IPP_FINISHINGS_FOLD_GATE Fold the top and bottom quarters of the paper towards the midline
    IPP_FINISHINGS_FOLD_HALF Fold the paper in half vertically
    IPP_FINISHINGS_FOLD_HALF_Z Fold the paper in half horizontally, then Z-fold the paper vertically
    IPP_FINISHINGS_FOLD_LEFT_GATE Fold the top quarter of the paper towards the midline
    IPP_FINISHINGS_FOLD_LETTER Fold the paper into three sections vertically; sometimes also known as a C fold
    IPP_FINISHINGS_FOLD_PARALLEL Fold the paper in half vertically two times, yielding four sections
    IPP_FINISHINGS_FOLD_POSTER Fold the paper in half horizontally and vertically; sometimes also called a cross fold
    IPP_FINISHINGS_FOLD_RIGHT_GATE Fold the bottom quarter of the paper towards the midline
    IPP_FINISHINGS_FOLD_Z Fold the paper vertically into three sections, forming a Z
    IPP_FINISHINGS_JOG_OFFSET Offset for binding (any type)
    IPP_FINISHINGS_LAMINATE Apply protective (solid) material
    IPP_FINISHINGS_NONE No finishing
    IPP_FINISHINGS_PUNCH Punch (any location/count)
    IPP_FINISHINGS_PUNCH_BOTTOM_LEFT Punch 1 hole bottom left
    IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT Punch 1 hole bottom right
    IPP_FINISHINGS_PUNCH_DUAL_BOTTOM Punch 2 holes bottom edge
    IPP_FINISHINGS_PUNCH_DUAL_LEFT Punch 2 holes left side
    IPP_FINISHINGS_PUNCH_DUAL_RIGHT Punch 2 holes right side
    IPP_FINISHINGS_PUNCH_DUAL_TOP Punch 2 holes top edge
    IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM Punch multiple holes bottom edge
    IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT Punch multiple holes left side
    IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT Punch multiple holes right side
    IPP_FINISHINGS_PUNCH_MULTIPLE_TOP Punch multiple holes top edge
    IPP_FINISHINGS_PUNCH_QUAD_BOTTOM Punch 4 holes bottom edge
    IPP_FINISHINGS_PUNCH_QUAD_LEFT Punch 4 holes left side
    IPP_FINISHINGS_PUNCH_QUAD_RIGHT Punch 4 holes right side
    IPP_FINISHINGS_PUNCH_QUAD_TOP Punch 4 holes top edge
    IPP_FINISHINGS_PUNCH_TOP_LEFT Punch 1 hole top left
    IPP_FINISHINGS_PUNCH_TOP_RIGHT Punch 1 hole top right
    IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM Punch 3 holes bottom edge
    IPP_FINISHINGS_PUNCH_TRIPLE_LEFT Punch 3 holes left side
    IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT Punch 3 holes right side
    IPP_FINISHINGS_PUNCH_TRIPLE_TOP Punch 3 holes top edge
    IPP_FINISHINGS_SADDLE_STITCH Staple interior
    IPP_FINISHINGS_STAPLE Staple (any location/method)
    IPP_FINISHINGS_STAPLE_BOTTOM_LEFT Staple bottom left corner
    IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT Staple bottom right corner
    IPP_FINISHINGS_STAPLE_DUAL_BOTTOM Two staples on bottom
    IPP_FINISHINGS_STAPLE_DUAL_LEFT Two staples on left
    IPP_FINISHINGS_STAPLE_DUAL_RIGHT Two staples on right
    IPP_FINISHINGS_STAPLE_DUAL_TOP Two staples on top
    IPP_FINISHINGS_STAPLE_TOP_LEFT Staple top left corner
    IPP_FINISHINGS_STAPLE_TOP_RIGHT Staple top right corner
    IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM Three staples on bottom
    IPP_FINISHINGS_STAPLE_TRIPLE_LEFT Three staples on left
    IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT Three staples on right
    IPP_FINISHINGS_STAPLE_TRIPLE_TOP Three staples on top
    IPP_FINISHINGS_TRIM Trim (any type)
    IPP_FINISHINGS_TRIM_AFTER_COPIES Trim output after each copy
    IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS Trim output after each document
    IPP_FINISHINGS_TRIM_AFTER_JOB Trim output after job
    IPP_FINISHINGS_TRIM_AFTER_PAGES Trim output after each page

    ipp_jstate_e

    Job states

    Constants

    IPP_JSTATE_ABORTED Job has aborted due to error
    IPP_JSTATE_CANCELED Job has been canceled
    IPP_JSTATE_COMPLETED Job has completed successfully
    IPP_JSTATE_HELD Job is held for printing
    IPP_JSTATE_PENDING Job is waiting to be printed
    IPP_JSTATE_PROCESSING Job is currently printing
    IPP_JSTATE_STOPPED Job has been stopped

    ipp_op_e

    IPP operations

    Constants

    IPP_OP_ALLOCATE_PRINTER_RESOURCES Allocate-Printer-Resources: Use resources for a printer.
    IPP_OP_CANCEL_CURRENT_JOB Cancel-Current-Job: Cancel the current job
    IPP_OP_CANCEL_JOB Cancel-Job: Cancel a job
    IPP_OP_CANCEL_JOBS Cancel-Jobs: Cancel all jobs (administrative)
    IPP_OP_CANCEL_MY_JOBS Cancel-My-Jobs: Cancel a user's jobs
    IPP_OP_CANCEL_RESOURCE Cancel-Resource: Uninstall a resource.
    IPP_OP_CANCEL_SUBSCRIPTION  CUPS 1.2/macOS 10.5 Cancel-Subscription: Cancel a subscription
    IPP_OP_CLOSE_JOB Close-Job: Close a job and start printing
    IPP_OP_CREATE_JOB Create-Job: Create an empty print job
    IPP_OP_CREATE_JOB_SUBSCRIPTIONS  CUPS 1.2/macOS 10.5 Create-Job-Subscriptions: Create one of more job subscriptions
    IPP_OP_CREATE_PRINTER Create-Printer: Create a new service.
    IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS  CUPS 1.2/macOS 10.5 Create-Printer-Subscriptions: Create one or more printer subscriptions
    IPP_OP_CREATE_RESOURCE Create-Resource: Create a new (empty) resource.
    IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS Create-Resource-Subscriptions: Create event subscriptions for a resource.
    IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS Create-System-Subscriptions: Create event subscriptions for a system.
    IPP_OP_CUPS_ADD_MODIFY_CLASS CUPS-Add-Modify-Class: Add or modify a class
    IPP_OP_CUPS_ADD_MODIFY_PRINTER CUPS-Add-Modify-Printer: Add or modify a printer
    IPP_OP_CUPS_AUTHENTICATE_JOB  CUPS 1.2/macOS 10.5 CUPS-Authenticate-Job: Authenticate a job
    IPP_OP_CUPS_CREATE_LOCAL_PRINTER  CUPS 2.2 CUPS-Create-Local-Printer: Create a local (temporary) printer
    IPP_OP_CUPS_DELETE_CLASS CUPS-Delete-Class: Delete a class
    IPP_OP_CUPS_DELETE_PRINTER CUPS-Delete-Printer: Delete a printer
    IPP_OP_CUPS_GET_DEFAULT CUPS-Get-Default: Get the default printer
    IPP_OP_CUPS_GET_DEVICES  DEPRECATED CUPS-Get-Devices: Get a list of supported devices
    IPP_OP_CUPS_GET_DOCUMENT  CUPS 1.4/macOS 10.6 CUPS-Get-Document: Get a document file
    IPP_OP_CUPS_GET_PPD  DEPRECATED CUPS-Get-PPD: Get a PPD file
    IPP_OP_CUPS_GET_PPDS  DEPRECATED CUPS-Get-PPDs: Get a list of supported drivers
    IPP_OP_CUPS_GET_PRINTERS CUPS-Get-Printers: Get a list of printers and/or classes
    IPP_OP_CUPS_INVALID Invalid operation name for ippOpValue
    IPP_OP_CUPS_MOVE_JOB CUPS-Move-Job: Move a job to a different printer
    IPP_OP_CUPS_SET_DEFAULT CUPS-Set-Default: Set the default printer
    IPP_OP_DEALLOCATE_PRINTER_RESOURCES Deallocate-Printer-Resources: Stop using resources for a printer.
    IPP_OP_DELETE_PRINTER Delete-Printer: Delete an existing service.
    IPP_OP_DISABLE_ALL_PRINTERS Disable-All-Printers: Stop accepting new jobs on all services.
    IPP_OP_DISABLE_PRINTER Disable-Printer: Reject new jobs for a printer
    IPP_OP_ENABLE_ALL_PRINTERS Enable-All-Printers: Start accepting new jobs on all services.
    IPP_OP_ENABLE_PRINTER Enable-Printer: Accept new jobs for a printer
    IPP_OP_GET_JOBS Get-Jobs: Get a list of jobs
    IPP_OP_GET_JOB_ATTRIBUTES Get-Job-Attribute: Get information about a job
    IPP_OP_GET_NOTIFICATIONS  CUPS 1.2/macOS 10.5 Get-Notifications: Get notification events
    IPP_OP_GET_PRINTERS Get-Printers: Get a list of services.
    IPP_OP_GET_PRINTER_ATTRIBUTES Get-Printer-Attributes: Get information about a printer
    IPP_OP_GET_PRINTER_SUPPORTED_VALUES Get-Printer-Supported-Values: Get supported values
    IPP_OP_GET_SUBSCRIPTIONS  CUPS 1.2/macOS 10.5 Get-Subscriptions: Get list of subscriptions
    IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES  CUPS 1.2/macOS 10.5 Get-Subscription-Attributes: Get subscription information
    IPP_OP_GET_SYSTEM_ATTRIBUTES Get-System-Attributes: Get system object attributes.
    IPP_OP_GET_SYSTEM_SUPPORTED_VALUES Get-System-Supported-Values: Get supported values for system object attributes.
    IPP_OP_HOLD_JOB Hold-Job: Hold a job for printing
    IPP_OP_HOLD_NEW_JOBS Hold-New-Jobs: Hold new jobs
    IPP_OP_IDENTIFY_PRINTER Identify-Printer: Make the printer beep, flash, or display a message for identification
    IPP_OP_INSTALL_RESOURCE Install-Resource: Install a resource.
    IPP_OP_PAUSE_ALL_PRINTERS Pause-All-Printers: Stop all services immediately.
    IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB Pause-All-Printers-After-Current-Job: Stop all services after processing the current jobs.
    IPP_OP_PAUSE_PRINTER Pause-Printer: Stop a printer
    IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB Pause-Printer-After-Current-Job: Stop printer after the current job
    IPP_OP_PRINT_JOB Print-Job: Print a single file
    IPP_OP_PROMOTE_JOB Promote-Job: Promote a job to print sooner
    IPP_OP_REGISTER_OUTPUT_DEVICE Register-Output-Device: Register a remote service.
    IPP_OP_RELEASE_HELD_NEW_JOBS Release-Held-New-Jobs: Release new jobs that were previously held
    IPP_OP_RELEASE_JOB Release-Job: Release a job for printing
    IPP_OP_RENEW_SUBSCRIPTION  CUPS 1.2/macOS 10.5 Renew-Subscription: Renew a printer subscription
    IPP_OP_RESTART_JOB  DEPRECATED Restart-Job: Reprint a job
    IPP_OP_RESTART_SYSTEM Restart-System: Restart all services.
    IPP_OP_RESUME_ALL_PRINTERS Resume-All-Printers: Start job processing on all services.
    IPP_OP_RESUME_JOB Resume-Job: Resume the current job
    IPP_OP_RESUME_PRINTER Resume-Printer: Start a printer
    IPP_OP_SCHEDULE_JOB_AFTER Schedule-Job-After: Schedule a job to print after another
    IPP_OP_SEND_DOCUMENT Send-Document: Add a file to a job
    IPP_OP_SEND_RESOURCE_DATA Send-Resource-Data: Upload the data for a resource.
    IPP_OP_SET_JOB_ATTRIBUTES Set-Job-Attributes: Set job values
    IPP_OP_SET_PRINTER_ATTRIBUTES Set-Printer-Attributes: Set printer values
    IPP_OP_SET_RESOURCE_ATTRIBUTES Set-Resource-Attributes: Set resource object attributes.
    IPP_OP_SET_SYSTEM_ATTRIBUTES Set-System-Attributes: Set system object attributes.
    IPP_OP_SHUTDOWN_ALL_PRINTERS Shutdown-All-Printers: Shutdown all services.
    IPP_OP_SHUTDOWN_ONE_PRINTER Shutdown-One-Printer: Shutdown a service.
    IPP_OP_STARTUP_ALL_PRINTERS Startup-All-Printers: Startup all services.
    IPP_OP_STARTUP_ONE_PRINTER Startup-One-Printer: Start a service.
    IPP_OP_SUSPEND_CURRENT_JOB Suspend-Current-Job: Suspend the current job
    IPP_OP_VALIDATE_JOB Validate-Job: Validate job values prior to submission

    ipp_orient_e

    Orientation values

    Constants

    IPP_ORIENT_LANDSCAPE 90 degrees counter-clockwise
    IPP_ORIENT_NONE No rotation
    IPP_ORIENT_PORTRAIT No rotation
    IPP_ORIENT_REVERSE_LANDSCAPE 90 degrees clockwise
    IPP_ORIENT_REVERSE_PORTRAIT 180 degrees

    ipp_pstate_e

    Printer state values

    Constants

    IPP_PSTATE_IDLE Printer is idle
    IPP_PSTATE_PROCESSING Printer is working
    IPP_PSTATE_STOPPED Printer is stopped

    ipp_quality_e

    Print quality values

    Constants

    IPP_QUALITY_DRAFT Draft quality
    IPP_QUALITY_HIGH High quality
    IPP_QUALITY_NORMAL Normal quality

    ipp_res_e

    Resolution units

    Constants

    IPP_RES_PER_CM Pixels per centimeter
    IPP_RES_PER_INCH Pixels per inch

    ipp_rstate_e

    resource-state values

    Constants

    IPP_RSTATE_ABORTED Resource has been aborted and is pending deletion.
    IPP_RSTATE_AVAILABLE Resource is available for installation.
    IPP_RSTATE_CANCELED Resource has been canceled and is pending deletion.
    IPP_RSTATE_INSTALLED Resource is installed.
    IPP_RSTATE_PENDING Resource is created but has no data yet.

    ipp_sstate_e

    system-state values

    Constants

    IPP_SSTATE_IDLE At least one printer is idle and none are processing a job.
    IPP_SSTATE_PROCESSING At least one printer is processing a job.
    IPP_SSTATE_STOPPED All printers are stopped.

    ipp_state_e

    ipp_t state values

    Constants

    IPP_STATE_ATTRIBUTE One or more attributes need to be sent/received
    IPP_STATE_DATA IPP request data needs to be sent/received
    IPP_STATE_ERROR An error occurred
    IPP_STATE_HEADER The request header needs to be sent/received
    IPP_STATE_IDLE Nothing is happening/request completed

    ipp_status_e

    IPP status code values

    Constants

    IPP_STATUS_CUPS_INVALID Invalid status name for ippErrorValue
    IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED client-error-account-authorization-failed
    IPP_STATUS_ERROR_ACCOUNT_CLOSED client-error-account-closed
    IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED client-error-account-info-needed
    IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED client-error-account-limit-reached
    IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE client-error-attributes-not-settable
    IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES client-error-attributes-or-values-not-supported
    IPP_STATUS_ERROR_BAD_REQUEST client-error-bad-request
    IPP_STATUS_ERROR_BUSY server-error-busy
    IPP_STATUS_ERROR_CHARSET client-error-charset-not-supported
    IPP_STATUS_ERROR_COMPRESSION_ERROR client-error-compression-error
    IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED client-error-compression-not-supported
    IPP_STATUS_ERROR_CONFLICTING client-error-conflicting-attributes
    IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED  DEPRECATED cups-error-account-authorization-failed
    IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED cups-error-account-closed @deprecate@
    IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED  DEPRECATED cups-error-account-info-needed
    IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED  DEPRECATED cups-error-account-limit-reached
    IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED  CUPS 1.5/macOS 10.7 cups-authentication-canceled - Authentication canceled by user
    IPP_STATUS_ERROR_CUPS_PKI  CUPS 1.5/macOS 10.7 cups-pki-error - Error negotiating a secure connection
    IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED  CUPS 1.5/macOS 10.7 cups-upgrade-required - TLS upgrade required
    IPP_STATUS_ERROR_DEVICE server-error-device-error
    IPP_STATUS_ERROR_DOCUMENT_ACCESS client-error-document-access-error
    IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR client-error-document-format-error
    IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED client-error-document-format-not-supported
    IPP_STATUS_ERROR_DOCUMENT_PASSWORD client-error-document-password-error
    IPP_STATUS_ERROR_DOCUMENT_PERMISSION client-error-document-permission-error
    IPP_STATUS_ERROR_DOCUMENT_SECURITY client-error-document-security-error
    IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE client-error-document-unprintable-error
    IPP_STATUS_ERROR_FORBIDDEN client-error-forbidden
    IPP_STATUS_ERROR_GONE client-error-gone
    IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS client-error-ignored-all-subscriptions
    IPP_STATUS_ERROR_INTERNAL server-error-internal-error
    IPP_STATUS_ERROR_JOB_CANCELED server-error-job-canceled
    IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED server-error-multiple-document-jobs-not-supported
    IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS server-error-not-accepting-jobs
    IPP_STATUS_ERROR_NOT_AUTHENTICATED client-error-not-authenticated
    IPP_STATUS_ERROR_NOT_AUTHORIZED client-error-not-authorized
    IPP_STATUS_ERROR_NOT_FETCHABLE client-error-not-fetchable
    IPP_STATUS_ERROR_NOT_FOUND client-error-not-found
    IPP_STATUS_ERROR_NOT_POSSIBLE client-error-not-possible
    IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED server-error-operation-not-supported
    IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED server-error-printer-is-deactivated
    IPP_STATUS_ERROR_REQUEST_ENTITY client-error-request-entity-too-large
    IPP_STATUS_ERROR_REQUEST_VALUE client-error-request-value-too-long
    IPP_STATUS_ERROR_SERVICE_UNAVAILABLE server-error-service-unavailable
    IPP_STATUS_ERROR_TEMPORARY server-error-temporary-error
    IPP_STATUS_ERROR_TIMEOUT client-error-timeout
    IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS server-error-too-many-documents
    IPP_STATUS_ERROR_TOO_MANY_JOBS server-error-too-many-jobs
    IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS client-error-too-many-subscriptions
    IPP_STATUS_ERROR_URI_SCHEME client-error-uri-scheme-not-supported
    IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED server-error-version-not-supported
    IPP_STATUS_OK successful-ok
    IPP_STATUS_OK_CONFLICTING successful-ok-conflicting-attributes
    IPP_STATUS_OK_EVENTS_COMPLETE successful-ok-events-complete
    IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED successful-ok-ignored-or-substituted-attributes
    IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS successful-ok-ignored-subscriptions
    IPP_STATUS_OK_TOO_MANY_EVENTS successful-ok-too-many-events

    ipp_tag_e

    Value and group tag values for attributes

    Constants

    IPP_TAG_ADMINDEFINE Admin-defined value
    IPP_TAG_BOOLEAN Boolean value
    IPP_TAG_CHARSET Character set value
    IPP_TAG_CUPS_INVALID Invalid tag name for ippTagValue
    IPP_TAG_DATE Date/time value
    IPP_TAG_DEFAULT Default value
    IPP_TAG_DELETEATTR Delete-attribute value
    IPP_TAG_DOCUMENT Document group
    IPP_TAG_END End-of-attributes
    IPP_TAG_ENUM Enumeration value
    IPP_TAG_EVENT_NOTIFICATION Event group
    IPP_TAG_INTEGER Integer value
    IPP_TAG_JOB Job group
    IPP_TAG_KEYWORD Keyword value
    IPP_TAG_LANGUAGE Language value
    IPP_TAG_MIMETYPE MIME media type value
    IPP_TAG_NAME Name value
    IPP_TAG_NAMELANG Name-with-language value
    IPP_TAG_NOTSETTABLE Not-settable value
    IPP_TAG_NOVALUE No-value value
    IPP_TAG_OPERATION Operation group
    IPP_TAG_PRINTER Printer group
    IPP_TAG_RANGE Range value
    IPP_TAG_RESOLUTION Resolution value
    IPP_TAG_RESOURCE Resource group
    IPP_TAG_STRING Octet string value
    IPP_TAG_SUBSCRIPTION Subscription group
    IPP_TAG_SYSTEM System group
    IPP_TAG_TEXT Text value
    IPP_TAG_TEXTLANG Text-with-language value
    IPP_TAG_UNKNOWN Unknown value
    IPP_TAG_UNSUPPORTED_GROUP Unsupported attributes group
    IPP_TAG_UNSUPPORTED_VALUE Unsupported value
    IPP_TAG_URI URI value
    IPP_TAG_URISCHEME URI scheme value
    IPP_TAG_ZERO Zero tag - used for separators
    cups-2.4.7/doc/help/cupspm.epub0000644000175000017500000062562714502571342016264 0ustar zdohnalzdohnalPKQRoa,mimetypeapplication/epub+zipPK QR META-INF/PKQRwMETA-INF/container.xmlUA 0E=EѝZәФ)uozpb J㸫`LmCV8cs`t0MFq#v쉓1Δ*:OVYyt|:^:}`GTO<U!xg1M-n&?YWR/PK QROEBPS/PKQRGpmOEBPS/body.xhtmlvו(OQ^ IȖ4E vn: PHU+}׸OvpƚAe3"Nq=ϳw-$o_n|e:z_Nz&l >'o_Ltf{fV_mm^`7S{g;o?N*g3tpOSnt4ϗm~~&Rߛ3'q{AETӷ//_xn+1FvAȻ~28?/ޙ7"}^WDnH(Z$Zg]ox,4),hNallxg"r}˃zzgv*v S9%ɋwݿQpOU-f;x8QN%? oğ'T8֯⍷HkSn4j{0qտM7g55Q^ ?Eۛ{+5 -}RWt&7VF6FXHt?uy'uܗkW3? ojWݬF 7bF_8͇QF3蜿(uo7nC7ٽl!& 淋6!xi:4J^?bÿQc b6>FS?|9CD~3I(?b -/,`B=Hix{[?(ޝ;zb)[dG0#89 H^>̄%·3#ζyaG/ؽ=&]9d߰paǷ87`A>ѿ.x~ [=̟ [ESL#ozoyU*;|H$ 'g8MhB#M~oSv|koWwo- !8[ס.I`fDitD785M.DL #[{ncS;jKڞHG[L'N f}l%$R-&o\帷ƇϊfLpݾh2%̖e6!2{G/p/8??<v/98nXx7 78ӲaJo)@{_ ZJH`@x2,0D6n)o{r>LfPW''W:Ffk\2d @D tyq P'  7 {l l7]:JCS`no2׀ vmV2Rc6_ 8$ ˆ"Zx / T{/n_~ Tx9 /'ǽ6vQۡ3vh4ɬiĄ_gBƾG!Oμ&hl$BZ(XëxAz@l-CG?<ǃ?"BMl)f78<0G'p-&pS!?i~;dM( a1'F38IPޱ_σTQ|7wTX$$ž$Hqe8 p /QMa;?yG|(?Л6mj7n?s %`4V: ЩV}"c뮓)TDȀE#/NI*%Qn]#l dDHVErDn;(ֶHFaekV-'c:di@ 99uPMET/BoT;DF7ftNgD={[[>0wF svt_r1o#%6C y,i3ȧLn^_~[ r|҈AĨHPV,a>ZY\pi7 ɦ-+2_: ):KR"·AhVn()*ު߲E5Pv"RR qbN|5N^(}= m/1"Kٓ _/65P fa=PecDwi46apUFapiHTJ ~mN=0fKrCGݛa>b̦}gKjfrN4 N%`-x!e,|;]mɞ> `wODoE$DX7(Xun}PgUft;7\XE#UG}^d=h{Ɓ$D׊vrjj ޠ^7"4 A":3 S8i$q% H2àb*"r Cn# 81Gl}ij4s%%*8KUpCg ?ftZܖΉBCI:|(TADIjlO6/B`Fj{gG']}~P:slN7ɏAq_Eg#(CNF 1yH\h h4Qag?JP獇pD>m^p,M#-VjDFvyw"ͼb0hjp|VDzO6:u=u7VAs&zDn$]lmnoPhhd0t>ʟOFڨlWbGG=j λНӛCEtL/{v% ikNo `&+ `ѕx?>phYٹhm (2w{tnY-3T##qOqfwпX9\&`'oow_mwV{WvoYg~ !mpF5b׆oo@&;, c %D.SOg2FMjbG.Gzű `4UB/IO7ORH'Tbn^i'o|OIIh{Ss)dI3JĒd>fAޱ["ѢdƖ+A7-k؃ZT V7["a@cE`D<~%M$+HG 7뢅x'i[ŶYrJI.bl$)ApcoW󥸋@$MO53req6ѻ:6:rQ %1 0dA,ъBf9W*_'eD{1kiJq ؾZS]Ya7RZP }U͏y%:}ѥt0qwvSdm˞wQgS,%%#Uo_X.wE}VzQB*B6qŜP R{ou'aeU.Mx+hF0wj619`֥h/yP<.UelowK >mYT43c*/eHMv[ݱl/޽'3u{ߐ\yF9qW=pCo Цe_%c2F&D|tBBB u2qOTO2zi;U~Μ Dct\TSJL jI Qn!/npT`:P.mʞU]Ij;7]pQY:R\r;V Q{x{ʝKo)$Ckzj]^?FK ??^ .4ʱ,Fs7P1D֔|,$q&ҙ,CfRAm~-2) Ӷ+Ce+ol~F;b^ywmUŻ*ڭjǪ냣Gڞ]ˊ֞ Ul(BiIT $BB%=_v/OXfzL6 8vIщRYѠAMC&m.? mcnGq5$b{;k=wvyqZU&qa+ x{]LY<2.HfT}aP<=9m Q`=5:r`7ˏ'WZ;KT̥FEgf$pDWOO8;3PSm6YdT? SP+{x^tf'g-_১CXu$['(ks@$˓UhO'$ ufWRsmsq94LN9^XP-XhP?c8Q]GS1Jp9h{1!-ۜ;oYeZ (RHpZ$+@EMK^wKvc#;F[F~aQYċo~%hR-ED2rHK,T3Fb0|"/z߈$oq^D6̔،L1*nWֈ2C 'zB;y!E(&6gg)њ$t()5Vг*-9;*,Q [=*-){yrzuJ{izSr?0=0(55 Т!T 1nnq ]I$ҩI_Nv yt_,m8z[5IZz4J&Uա9ZzDyZ|֘:{l6yrZ0Ƅ=ϸtT](HR:vJF)]d cQfSqh|P(ie ;S19whAn{xnه!eSM2%,]k{;.mHzҮCd9}EPәF~ v3|m"d%6Xْa4+u"fTZ3]9YǓ@ .S IDdH\!1veϒ\^{(픴# ylw[]کr"`2`O^8\3rPFOlFi2H\*} Nq v $N97܅BѧL)^kկ> 2 % ܠ^dj6&; )g9.U*H.GxYDMra\5Y5xh4v/-2^6D {9D4c: L +CmwOdaJZb~NCηަmߖڭ~J#1ugy,Z&G3FĘa&(+7wR:J0l{K)q}GXV_5i rtHHP !}{lRX3˷C GU>aؐkٵTgwմcs~lNzJ}!+ztE 'm5 {nX}X;uU\tn}ۥ$ ;DC9m/8*]'(PHoFFqxHcl%Di/+yrv;;Yy-h(_V28V.3dw4_JZb鉺b{j!O ŕ[)$BNɋҞ;F!Fo$Z#@icYDjn'B-}tkr ]6#:I<6Y5p$6wr>q^T&6c4^ di,cHX6 pO"Ӵ}FP7 m9%k~gXa!̌x,[;E{0և**4U~}5 (Ճ{Xs >.b۫x*H& ,WvL$+r)Y""*g5|h;3 Ų1ENsgΆ;εpTiU$pޮ8"5T$D?J.ޑ;a/K0&$^zzc(Y݇6٬o2F&.P1x?qŵB4E,rZdeM+"{{!{.֕*r9V-33ePr{)/ v8үչ0H/GB~&2K%D{1Hq"|;@AF>̶q~ MhpUZx" ʉJ;bqlJ ¸d9lL;0vŻ~E,&fa~X &AsV,N$ پIR; \Tyv}j!wQkGk}9f31YS7ᓧ T:9'e[s9rn&f%&q U9`"&[0]Q~L|)Dc~º!g\d~2yd-BsBd! =$gIvr4h߲ hn9ݭ8R6^~f/"K)O2,2}28@'Bڴv&@4T?pWt5|)g0.kb$%vF&T,pyUӃL/VE0^`z^գ.pټ.b|7L"h>;\[cJɹ0eBDoMdS~kynRˑ&G=| 4XcT;ɋGx oi c}7/_;5]h*bE'-]?9>_X# 0Q6<7$nvYͶ7^lnzZyu,gT6яxڲLFYz ,ǨF$CQg':.·cJzSgsZl'WLJ6ghaG)M^Ȋ(Y3e\ňA}K՟_oتeucoQœgXo[zvN}ꪫ Ϊe';rXNSث@EjGXYL.~Wyu_`I畼JS"PU&!_V cvAwS yvßsunDfHt3ǷQ[j⨎̶:钯z?wRѭP# suS}DW7~hعXQdv|ZipNIX4MoWrJc<9 bĒX\ʬb-v ,ѝJq VnHNR-"gaxED9ahʎM jaL*-]RBO.HT xot\/+̪1EE*=8zX; p%ȠCq Isi~ wW;U2+@7C274J1\xce"/.x_~Su R71q|.6L|d4WeqRl3fPב׈\)'eo~͕T7U#՟ Ē: r'gy/'3I#*=8G0T6rrԿ؈sA r#ڤ8~K;[Y?3b(*gG*Tz?n6̬P [FH]&7;nu| dPmle~JD: ьUz"4\k,nɝ`%9n %D,D4\'yx-ğ<7X|:ܔB=-SXjt< ſw߿ . @ang2gX\Cp@c@$ i0tA߈ 솶݄uLL%%Nd#%BsH ȱz-L_[,AhHNS "La,;X^ ՜3bd[adΆG5dx`?7!KUIۑr͖םNuKdssXaX{XGHQ=(F] !8ުX2s휤 ( Zϭ4nr{q'?;Psk>8E׬3#L҉Ɲ!Ij5gr3㳓qEVJ-٧Z// 6?Yi}HEΓRgtQf\AY8OڨLktag##vWg͸Gv$e{Ya?\t?XGR08uGtY-*_(4ػ/ΰ'o~nx[haٯ]^ZѮhZ[ ]YMvI$+I{MX? *Q*m#Wm4PYX_RѡozZ]% ,!Nww'bU0~2E)%fX]-E-=8xٴx45T\6FUyS,Hvf;Z?/؟sBtg #<}E&Wh[A@3ɟџocCE/w.zqK=Al]eN;߳r}ʣ/,t4ps#5vI_;/-T/5.& yeImډ otPW гlJ;Ԓ;VRckYz}1?4*βQc@NyY4PڮV Uϖ`77+:]-E^x2tΒ<RlؠrF!_|oS?M}QgRĐ]mM\‰_A;:;W5Tӯ [7ee9yNwU#iƞu>,5s*ŎBqWD,j^g vB4It2pdcc$Mze })irK }Gܲ/uߚfJsSJ:0m&x:DWbpwm%ǝP^}U8>dT6Wjp8mJ㡶ڜU9Nyݙ980N;Hܻ@,Dy5GG,NTR.`:7NJY+'TTF-o8#;%9 rKQ(h,a0Sݺґxlr,RN;Jdx\ ȄB'zxqvw/eikcN<26Q+դz…xY̘`՛GV&"A&} ȅ{IwX}ά [fa˂lkKQpb{ xn]Z`{{݉Z]uG}J+8d l8UvlJYgY_Jz潄qcaDlыwg̗6xƮE ;V_& OOjui1:[> T_vx %P& hjfa/j=\ Bi]sz/k]ޠw%,cqʣ9f`xGNM2P"X_2&^R͏DCH-^Nk uV TTukwVwyoIW$@,f5Ԁ:ZE+T* zoY-'%bz-G14X  Ҍ1xSi6Z L8yV gOjO_6j9ox^fC&JNm _Ptn ?is_ڭ>%+Ok*4ڮS5E>ƇַQٝĺVV/ I<@ȥ3od`!fhCA@Â=8B6XkF[3Tu;_YL~-;91< I"Gwrcl}/88B_!9[@.{D0[gM$=5oJX <OVX%"NWQ:\gWf7/:w=;{e, O yÔ#eS:{|!0n᠜ͳQ0mzk{Y q38 ^ofT*S,Ŋy\hc"W4Dnq8>Yj  UoUB x0~13#;W8xx׹`0A\l!!pdz\ S1}^#0w-}异Sd4~2C-$Q17e|8J˫v-/=X",ǫcC#YbJ$21}-JmRaƣ@ʫ"$#=sg̘A1PDοf>&\7cp3_qfS(>"fgjK8&0)>>r# t疉ךX@P7%%rQ{d̎ 8f w0 ͹`:xڱ: Ș5l`b}]Ӕ.#7?x*9Nlo[T0-tx}k~{hx;~ŧ;U<wi3b(D`35ߍQSƷ3#n n ֹ 1yJ{g,ǡ b>SB*Fi(U+ZjTvry yoG.j hIYK.qɨr d.מWY?X+J4Fu=‡.[04{^LL:tV ("!,d20EH(eڬQ\}wl #I}?OUQzz**nLt ɖNo%$SHjqv{NBT6=.zk']f?.Tbci4<%@%1Ȇ3c5E~; Cb'¼` >o)fu'wI%^Lp"Ffm@6V9 P 3=-0ĚփZ rv5|5Z"Lj8#q,#%3lM¦~t4hكCc -4V p&%}g"N@'HH^k?q :75w?r7QKV u毩`ҠA8 ~}}8"DʘH$#ibkUiqWꃳZ6tqS&l,y[\V%Ii5Op/W2{'b ~f:W#=ۘacFr溢賓d5Rӷ7qҋ^.|mtV,6[Tval R} m+;J#Ǧp*(#(_//`$"B ZAw_"fv`c [N&mF6jR+GS:%¿F@EfZ ll> t 3\% veLjivC9͹IpTvOэ>Y'v %tVq TS #@g* MN[sC?OmuYwvy;3)rnpS3=O'5; 4 Ʃf 젍)'b!cѦIqWe@ [:3)TƝ`R( 6֣GB |5ʌ3rąl sV[/X.l_!0˄"V=gm&:Z5Ŭ%3&znqDѕ`F|w>.O{96>J%p<ɡJ&P1:ѸCּc<s@(A>uOP{_玍:X&ʷҔKBw&E{L ;[ WRg1Zwk**USz w,ɜ0"hY8¿:J'T!zo#-q%s;uFe攧,͸KT2'CRa)Hz`Q '54+i(f핁m$6.?k&N_ {7 8HL'ud xCt4m~QDWѮY hɨoB`]>.g=vV='.SuC~IHY^ )?Bt.~SI &dǁh>v4i8Ѽ^-ڸ\H,X-Uo^?p@jU,T̛qIM_ ,U{Y ͒jp>ޯ#o`aÿ85჆nL>:PJJ\.)6g'0-)KE<ȝ|{r{8z(3E-@4QW'] 2A D'zf[6h(I!i)IILٖКze Wͩ$W&rjݎ7ncqн>r:@eUa7Z :oM)t򕢂O3(}2j\Q֣4>+p^Ҹ>-hҎU+`cn0Ֆ;_{qx5p\_PerhXt-Kt]8? ̔m]?$viP{6=L{J4ǨlbӉ+ݬaf-Q'S$^pLe|-dyca 'S߶0l(MikCzh$bW;UD'Ŷ4t&furw1x@rkZZwSwVɝ|̉nye_'=u37-ڨ ަMͪUlB[MJ>(85(ɔ{~lz'QbKT3$6y?mYY}h]g 1Fd&؁Y>`(=0pa2W?K/H⠁¦D\b[9SD% #@0dc ~} r*'tlS44w_/n"G}~ſkA's)7S&O#mmm=- OAXĸ>W!&EAU,* QnS1@qˌ^>h 5FwV|צzm:qLAsq $cJqL =>`‰?DpR  q\44 ,O'ce |O /\)↬"HXI VMNYza'jjƓ,N LfQ2?*Skg4k!sIAjEv㡸 sC>Z0 `d D^OVBY9BR0:Ly7=i#YCZmBֲPOd\i=h Jaù8?xe0~-Jp׺b:5[Vq*dD`sڸ|fwq-/KƜOh֩; L_Y, ;Bh :07Tp}Mt[h:#+gs_/i?=穸B[(@ ޟau^t>M:8~Mz:0pNvvav|ċz[ңti(>g5܁uѮ~Q3}F~i$? 0(QƿM0|"6-Y׭(k>8phAȣrc=뿧x}ghh-jvS%VrNч#zZwmV_2帜2փfu2' 597Ui|{VhqˈI~4\L] wL)fQ]V8%#a ?>$]& TZ]ݨ)+)[[RdR{ke徬uYX]ͮ~8+SyKܒaQ#0]KqE&)H`OɫXikN9"y >;~0S ?s!K ś:bW\ߒFPRT0$52Ìp/){+V@ <TZFh(T wXV<:5U^&DUP)KtD&H!< %~"QC-d-5A{yx0|rv;; jL6t%tR)?~+ERYmUaN"zLJjibA+!Oلhx(wԕ5":$p(M}T|eC2f;uOrC?"*CD O-n]-ÀČ ]v]%E!*V7߸yrwؽ8:o,sX!nl%vm*p2ȺૃӣϞ5  o/Eu+ZX6}Z 7ԈĹ bqU!3zr3yn h:JLh~V) lgJ6Hـ]G v4Al@ewuyّ7LK}d:)Ǘ8SAn@Zϴh)}F N  -d|I:&#ȬLH'+-OC=Ye0O3j5%3&_ _U#IWy/ZNw'qaطK@i Odp@[cjz:'TVkTv=Uv?ZD.]H8a/#e2$O&n *>KO=## 5~cDlnȁ6.<xG"7\ا $zI0֎A;5'/2m|!\UjC_' }wG_b-X^p_vv͍}]sa%Ґ])r5Ne9Scʸ=(Ӳ.gUD~8??U:ܮ|{wSB*M;Sh H3&AD4o9Z-m| uy.0HT_QV[z ;To#u‚_t9fa Q̏?AgG(N5Wjҙk1M ?zTä́+Q8*m K73vS"#~˵ItP60[qrBrq๪%431UA){~gTi~XMHޙpգ}@j~s, D+ԏA>]`Uq!'w=mGd}N4"?YXo_~?-sJ˯/b[+5=GBH#}'*Z(x_ 1/j"pNF [Cߒ뉑zDQŚ!ZxKaQ6GMd1D7$8gS=w[9*pUQEP,?kI ?tLGAQ UuU-DIT;jNbʄ΋!W~E_U"t? vYwG]i+ "Ŀ<&bXjFur:)FU'Xh< t=pFZRlMdr7azRy-z"B[r*dtC,iǡ%៩+}!:JČ.)N9D9b8oeKHeOs*Y7>7$*ZQ*}mx\[5#=È6\G!bΖ @F ҧU!Yҽ[M“W6wxyïk:o802~dKwX$ hhO]yhg ǻ#;25cDxϲ20)/oN`gK嶪޹)?=d\EqVw䜾˩A$5]̓mynV.mt4k!Q*ސ~t?R1h ţZb0܆-#w9s)%FqȦ6#{uwDM?zri%d̷YQ{ lct{܊.TӪHrE<{>{p(s78M(6eQ(V QkϚ<ߖf?*SPW&)<ƅ)zOwț]1Xl^a|$Bz8}F|F+VdG U=cN(xI]Ob@}X ?N _( -!b:Hd$ɁLkBMʭpǴ *fh~j|iz)Lm_Z0 `kxui]i9/PpimAÆekWN_f|(/K^ID 3GWmO7d/pUmE(K kIо'=p;p73, o=s {Wg]UBW.윸§d_c>x sDH\8 SCmUbiIiBHM0ڷG)US'VpR= 5$eo ԇzF^C]{VL; pz}8}LzP\AFF" ܏'_p\C!h=#ގFn UlW d\ky,Ásw!Ub|=IՈlRަ\XQjmi&t&;Jf|,E摌!vGB&,^azӇGH=|l|Eִ+MCE1?"wEtc% &E28%QP!lVcqsuIMeFS;"n/5D kP?-IgY+ͩI|l\nݭF(I:c4Ua,$D@vIZ p[;akG0c:OSiçnܘғTy<%idQ} $XBYa?er,W7W*'FQh@ڬ\Tz/`t&s輸@ ~l\dc =&jz(=(FTA& {=/9hXҏ-C ge,p"USC+' 1 o(#K?-?5svdQqq1Zw?sθƳ݅"rC ,ϫwFI26?{u)27LWףֈ O-Tk#AFq[5l%'9C􊃆)G}+|w$|Sf>xV8CD=\ccұv[80!K9= wСhǕtch`ch$f-tC{t qt{kwgjމb(0֊ذŇaļoCI!Fl?1^_l|6`YM-駟k #SV(λb{9>,Ӥ`uAg^yb6P9u[uBb{@X@uYI v-jT.Ejyt} nDy[̃N4 ECcF`ä3g.Ͻe8cXÉwzRQڥ>,H[RrVbϹ$H{Z'Tȗ^}rƒ-nI4:RϨd8!~93^cus%pxgO<,i"U9r>m 6ՀYLg>d=Ec@-(\ISυ-riDH\xLC [TYi!8 K@Z"›I4qsLt~px;tBuL3e"tc*ZF3"'bޯ LY0,cal؃ُ3O̯8xd;k-\hbŘPT"m RY$ڭDnRHYՈBdNYG@˒cZ+Z1G'jaʝ/A, 8NF8ׯq(ۖv֒'QG+ʣZ% rETL"tY&RiCYw'P2'0q^!a- NvM*B*2+sϗ幕}Ln\c#k?ST NM&\"{sgmi%dK`[t\"xhv[wM17U}'&Np5{T̷JhѠeR'5;$SEKapˆ)!~>l钸"&oEHMs=RKfIYB/>5 HH[cCS}}Y#['zz*UFUA,JTicV/w+b{T%Y<6FR6I*Q/-?∪В*[ 4}Gs53BU!8h@iP;hz~Dk Q*uMZךkCQqkdŖrzg==9^c}N^sdD3Y?.zS9V*XzɁw=;OY@'*(3ҦIg*AĚ @Ӈac)(!MTpۺK R?&Cځ̅(!2, wō*!SlMv/Zk K4 3UdaqyS:} Tk/ ̪{K4E í<2]>t֠8Y,S G[>3b r.M*!2^u'!o˓5 rnD RSߦC,5jsccOƜ֪@މDHϟ4l[{-Xu|%*+w@\f %WT0)+[$(fH-YgYB[, -ۦE*u!e2@IV>A $o3,k0Kïg#)0=Bc=s]_Vl$ \,kI4ءZicGqov˝guUH̯B3©JFfR/FR>sV6Q_l"7V} ٠_p,B ^CAB&Ealʐ XO Zu.qE;I&I\tzd28c7uA+9NdTZz8P(,,£5xWQa3IV)x 9 d٬0ZSh-1O`$]13Ds{F{}!ܐ9[ xIun-9-Si`1$i39{,Zƪߌ:^DCz G,ۋ(<*iQ]}4F)E%.`5yQ)L]Mq6^Nj>ٻ8aNlMF5R.nBO\- Lr~x.+_$a7Ձ2 gC֞(#Q`w$f RD4`Ѩ; J^壽`ݺ"nqM)r™9#,c=SA$ZS:C%nZ${EQ 'Hk=Ů.ROj6$@epgKc]2:]Gl?C} $bv+h~#f$S۴tkr1pݓԿ*ҿk7ݯw#jSΦ>B(qLFk%{25ŷL!*<2FT"۹?RWiB.M^+)5PlWAyW2kTKG[?b?+95udE`-tbd] pxH\r2ZS+㶷埱X~\ ;Iz;^\ew|lp C&R*X8qP 4B8F-xI<1XhS+K{ЦV6yѦVm65҂(}?Ц nNu>&OaLjqe.}^xlM sbNw h=_~ O(~XkmƑsuNY${GdG[d[qds"ZuE7^RДDɨ6#`wh4~q]QQv0mcO"wg5E Wi0;qQ9MPx"߰K9\+`-C_$W'z(Ri:PD yJR T/q bIVr>rod_otL$!# ~< 8Qރ`2PhsRɵnD\eтq3Fc^ut&P VKܙQF{9PlN f^)A`1esоܺ|ʫ_S2eC O3^"x[ M4~a[o,:{46X 1R1c_X 3 s89"Zf!22 } )BiiiV)zRbRQJ Cۆ*OW'28_LCKٰǭBX٨eSds-QPoS(Ifu9X@$`)`qo.Lj[ꐴC8;R{AQf IxnjZJt*}XL7492!Y Lq_tڤ7v@A) @ȼLR¸dP#8dKFMK Ydyݠ[w%:W[;B iӋ0Y ]wj=uZ=lJΨٹ_nxvГA@%K?ҴeW`ҷ|C7k +:Dz(Z?T>uxv/mZ-\YsΖjUo[dqڝΨT8\ "Y)2>XE Wfj itV6tL"w3]LbXJA-q9SP;ӳdPlym\/ 5@\ 2/ B4d)ŠZ6[{4Hb_+1<ȧ4f$Tp,XN{o8n|p"MU >]tf| ¢%Dn1 =)%(%4־]QxvS{ʔ}|tXӞZ E*kBSVѢq|>c >W P \B)£ zҫ$'23brw]T]898$oFc>4:YڗHq!H# |xTZu((s %@/NH%D`A@FScDTqhIdv-vĈz\%i<~IңVwBo-t 曵P^k0E||Π^ |%2tJ;RrȉzaF7F\iy%]$Ip V8ʙdTjydzncɱn8WM\Q\kH=O'aja$ _oS}G|deEV/ddܐ /abTOF'2j<~W?m"mr]tyaޜ Fn4.:T poouYTv@8a :) h4k+׆4U"5NqcY\!ឩ/ p:itw3(;o#/z(8&6]F'T8XɥNZ.:w&>ʡ[yڲZ4*bk7B'6b%.k6ȸf9eVeO.wNWUFydPzϢ9L٬#Bo(ʙ~Re?''Z39l>, dnwj@iq1P?~K!jr>B,-rn.K\B9T%D" ᗕj(Q>6nJ\i <(0no!lҹ;8O¥V T:;, -.~pw)T+&G($K<ȏbCPsI9X+oJ@~.' TeaL8% $B5^dRlsxK&X F.WWS.;<3$Mwqwu**C!R&/he rft`Q֫^ڏO}M*9;km X2qK. r>8ys*06YO'x9@2EUG-%Jէ D,dz '),t-Ù-v\gd4q'vUjaROTo-I˘ {wVM+{A] qFpiwO:I o^:p%C ;4opbe(8^ sb!! 6~ik\\{|_hҏ5a,4C+!W.9R"2A0SUXٗAMg"k3#JZ-ft4k;񵴀AmxB%bP-__{父U s/ tV/0!$Q$ t֦BWtd3Jݤ F7^.f| wZm͘7i^vz# \-=useʢ!~f %,rnca^HEfLLKYɩ5/Ŕj v9 Ả'^tZ@r⼚^~\6etdt # j XΞuod>KhC C*EVF>W/|de@R" l#x+pУ։El/u@. 3 A ="Gy!֛|"DMi h347sBܞ9/n7QSQhIUu9>'see$[gQxAuc7000/TeS*BKH)]d SFXO9=loYY̮ӬBgV1z0`u&\*,t5RgA.poMOL(@`Qaxr~~unaWp)r/+pqC~u͑p[חd\ oYT-e3p< \c")pVxG/C#tfDU\67a8gyr oʙVvgDJt3r/d;~-I[m;GwQZlm[.l`KytIV5\'^ghg?\'Bw:d}p`/*JQu@:+Z "q.%O:/TDt'_qEjA݌7 ;Q_~k|8;B` $kLt{M?^t[2.,StHs-noxxu5q[ GE䬂q#͸pi\e5zL\+E%quHx/`tzG1_DD:fT-Z.1b–6q&6MV83 4x~6^mexq[qKsK9>1/t]#A5uA6A>MG>t܇P ~o|.%`W (xx8:(쿝.'EJGE{I"?}~#I{mI^]k|Ff\ @{2ڠ N:O02]ō*T-[jӪhwZ7taoӠ6m7WƷc؍%*ou Odjzx{4퉴  PUK:ogϹ`2EIaRfP(v*hteJ7|;{zAyVI#5naK=Σvo"hja9G2WKЎ""p,0hKჱd&ȢuܕqW.4x9$1)Ha)ҋ2}gv n@aw:}*NLƛu j{]fw4Twn MPBXSj}Qp'Z~}s䯧U/pYk '"mzdp$̀~ c tܔߔ]xh}_&`^k6In? ڸ{XvNڝr/-jE!Y4(v-sze}9LeUfDKjSg˗/:өȯ.4=f؟f8y3@qNey\/͘K 璣nwvNl۝l9VdΡv'Gլ۝MNr]IԖX\Xӛ7ŒHP1}QX]3s Ջsh'|_:o |>fR\bkv},lj@? #Qmjs&)ಒSxTV[5ߣ[zQ=Guݣ]/B{YX/e(V S2n+]dMvׅU8'K.ヨOI!ѕI( nx7Thw{$Sy̾x0x`QJ FQvj/Τu _Bk:6(ܞ)39E`8@&vDE`5]$m2aIy W)'KIfu~^J"ϟ'%@Sل1 NG|C?`uO\>qP,{g]mzg( EV9&8JDeȏp:GZ|D.uB\5։mmle1u9^9\󜅗LϜ)V#fQd7/M G,F'h ʺ֟u3$`S=ɠ?b4쫚/Vnk~/<3dkMVq$8$o~Vc8m5tqRZ会哞u75uYN36fhoI>ڎ!&Vǵɧ GU7-m'~ Md THww3W%I,p_,$*~3-'@>3~v׿Va.}SY'R{T`J6mB.<MI ˘tv,bL*sBbH ˘Fc(l6K6'aV}홬 &tkx@$On7EFyM>~\bU]L 6RGx5"NU4#3WJDɺ RyF \yZ"fS}MSYSIZE?*)^cgAȟ8?n}0->Ɯ6D%UJ)aO'08%<_އaBz MN~a4F}'1oB&wYlڄ:b*}x]1/8z#a5=Y-ٸI'Evg6OT3c؇j^B4vѧP`e.KuZ&ǛFo醋nlpqy(r!Rf l)nQָW6K;4Ns1Nl>aw-H@F],ePhdR2݈GG?s;PU:Eg`GK؅LO񛳓П4xōCY54K B4 : 7r`km,UwDǥ6Q8b>oP /ZrSG?8צe6oh%nR"N)-+V`QL>HX^%c=4u`gU{ŠJaGKvZZ 6לh TDC5ޑI0Ϩ6Eȡ6gW6 eB0l(6hMWKL+0 WA5sKײ) ̏$~׸b0'V6yM*ON1*ګ͊eOz^rKT:M!:S/Y҂)1+TO6զE8VX~=\T9𸚱\,rDb=S>3{bPy[bN=XA"b9g'ϰ$_w. {\:/[ră í Ǖy\_ݦwz6_U9# Ff%c}g) xp&.Y& G+|Y݊*^ *XSd;DHݗpD okE^QB ޙMfIԜ ^x NA'kSRkv>E9ښ7%2T[%!帀Z-5Ub#sAXI(#u Ơa9EBm:!AwcFo*WDe!elnn$Q%$ywj)gxnVWv}UF L G2k#8lx 0!n׈"kKGiqf(ӕRZc~D' K w+8a&?Eݥxwo΂oXQKI՜5VȜH\>=JTT/r;M maUKjz#U+_,aqNYdZ*|\CL}'DLwzAJJqa*EI.?O|"Bc]>L101>xuN*(2ӿ̢u֚ F2 rb_ ō9e`f؝xKrd*km8x!}iKfʏ>WPrGpT?BN2JT=QbYl!OׄtgF[cBNn% g'Y%/xr[VLz'~1L BVzy(s#0K_ 둽pJPKÊvJzS?B\nީGZ4M#g4;2(,YLI+oV,ʉpFB*ZF ~Kf !pbv<?ylŚw9oG\-"Z -'$[إ,vsW5e,\8lHx37Cg1a-ߤEZ2.ow 路f[U[٭URAMm-uSekJ-6F Q|k5~ wsAx&[)[¼>V 酉1G}2Qոi|T~<(=YK*ȔGQ}T }0M|R+pb°[w R/ N˨^L/)je4#[)[ZߴWL@Z>}aŏd࿕F>~6=`ہJݡ~}<PNjlR&偣9ߊM?JQ|hUE%KRAˣ0S1V_O5i$sH(:4EwJ QTEsehպc],V:ɛ"j$}_3΅ 3t<Mu%3 ĎOM5sƋ8<.`,DbHk MH<-6E/=x79zdf`u6vƾmfTt+Tt* VݻJJ ֑J`(7.uLq4s eA|-[p&Be e'Ll)y9 nA+N:s>>"t>5q)ĉe)K!sF8&HKV=n:aCwy5cir!+>y[pmtcvB:XNKfȡGnH@3Oeai&[%LI`xVY챐q5* zhZ+փ?geV R)~Rtj_K7ׯ{sOs-jI wgP3y ^/ɯ_ApXBLsy>W 6cVeeE<`\?[O%P'*|2^U4=ryF!Gr# \H!ml/Z/߽z2] &!Vki7PӄnZj2p ϣf9M>XM ޹,eFNa>|㕶sbƧzZǟ\:C) UܲRr#>qHj;{jG," q -kHOZ~w2+n ~F5`'x㽈?ֺ%2jT:xBYvmx8wP_xUTܩCm &M}8rY2&$ڏYXnrW'29jn {/xE|A b>b"v}"?r tC3?uwneen=7w$N$qn c# 5J*|lh}#fb4VHdsM1U~(S3޵O|tL5Y|}PKV~|Ϧ7x bT  xԣu̠u+=|BbfYB RQ;J^o;}m~n->;F)GkO~a7>.rݐ,8팢ܟKC8S*qrq]F3~߁z62~b2x@n9D'aJ>ޭ?' CN;B [ @nђDQe\QƈL!ޥ;xx<:ww)3)0$0龈m7—.p#Do+oY<63#{\L/8&Mx ):C/NX_"c&f bBKB=Z1oDWEm"ڕhR(g>s ,C1;.rvJFbfyR#Iz^:~KRNG:bg>OugXT2xHBқLwxC |/'[A{S|uƋ&QCUe2:* %v2;V ud W;k"R|mc WM `D+q?e` `}`sCTʪ@xX><,"*or{ڻˉ<2tt։0fV*i;ASZgi8bveFD"5GDʎ>"0˥H,ɡ _;^`[m~L&5>Clgg)5>4ʂ!j!y'[y|w֢d Tޒ8CA 1&R3qXfqm'_HԦMΜV;axk@1VҚK3zۚ{t98ORcʦsэ1c@9UQ̒4 .STם<, 2'Ʌ3'T^6khW\_[|/3@Xǜ%lV?tȅoHk)diN)8KD2 !z Zq-6Қ9AeW+BыS+42`,C(b ^2,d%BT57Nv,[]EJI4;}xw/ !e =B?p>"eUK-pTkz9N:$b^.|M/j aΎWЎh2Ovu!+,;;j_/PBx@,+whW+isAZc:WXiE9*mOW|7ꀿuo|~.t."]E8%1^{ʛ_06%  ?Pp|  Ax>0>, 7=A;>0L3~lKU>ڗ"8ƝΞ_%UrMxIfAyMT=)wv'{rdr/ŭq~'E`pfsۇy ̹N9Ak稯U@"',Tus.w:Vp%woI-6 *Y埯~ ߃>O̯JF>1D%=@e~4d޼YY3=VaE٪~TIא߸ [;&@XTq˝+[9lkqg  |J$ࢩ*SxIlӌΫYd zj Z}M%ȰS͊{" dQ& OC6+NП @pKIpڙ3g̹ $\9l gN.87.Ee6]ɴs14q"e1gqiHchnX6Azy N⻍'{Ѫ͞H: R鶥i)@q-^py|^Nϓ6F˲~gΒ6em)Du$q" v?]MރϼMO Nϵװy>b6-q3 *DK C&`rm)F˲ާ'\mHڰnmpD2/! i:g9֏^ہ_·eF͓,n߼r"KQVN ͡&,Jp8ƦX@ARpnCك?ax=> 8^ 恭ʆ k. "47| >%I@-@:Yior)ӾNI0[bmfTݙsNrZHvpF|^w|Ҋ2,mRM$" o3 Jrsuzΰ9{."&Is׫V޵ju:)EU@Āi7{E#Fb Q8;L$cLUd+21f{TE{=6ArYף`p;,!JR.-)}\^yZF*!̛ǥC<`e䆚As^^P Sn#9wWx!9B.VsZ5۾;JQ/Bz ~@'6Ω8'_+Najww[W4w漒$"^DkyԥQ}MT|_jJTX?V⧚?Dϕ&*~Dů5Qk%*u *.2^U"Ug.2N]dTuA׭wNeM4\ia=5?`V?9,6VU}j,޸bAJ!{:A?x~AN!g:A_z~<\NћPNQ0UPTAZwCQq}qbazcvwhۧ.ϜI)@dq8zΜ9\6oF*ymŔ >/Țհ9|yÎѝtjd&^ ;8PN1~/W}靷Xx뗯D|p0Ō_Ffl_K?:ȋ~[%PZb"Pd [%*!\8C\G{|NQ;|l/R'Men{2{ f3BU4i_vnGE  4,͟6\#72a8"LJB2W۰0#֝*k޿$ȳACLf*͊ne*&hVySL"FfmɧG?QkUâF!mxf ~et4?xKǚ~r2Ib3v{ [>|]<dR}J~ŊOCƓU4l"S}S'ĐH+vpyoD ۱ۺjC ^iSV>O'cZAKB\Ó}7fnWe%D”w؉t;. @^4}"fVXI;e۝ʢemgUBK|EkIyuR;ix?E^2^4-/|mu¯K:E`Vw ,+~ye 4?Z9bEsW/6LݽwdcbLr5r).򦌂ױjp*A wD1XNL߆phO4]+ziZHFs'J [bseS!ٻۣxG V`s@$Cv<Ї:INtm"`jqݻ[hz__T%c^ht9|\Em[7 %mED@飑v<E}m(o#j9"yaR6ܞuj { zm鿉ċxWqM7Ľ=G'5z#3n)r;Tj\uhph@&a0sK6ûA(a$ΠYPd- [ԁ>,}h'Lҋ-vu*"6amJ}³3>ۆhI4r|߱r[F_9KX:@ GWf \?DIB7ם~&ORX,Xr(֧Of~K,t*lHW1?kǮ4Zo2{.z8īɄl54Ûf‡%+oq{"W%v, rqյ)9Cɍx)65<#-btO=aݙ@BXQA04hj(2odἢdcp79]jP8xU]-^B) ]a-K-f0Dx8?E)ϟO_P>ຸf{KN;~|| ;^U6p=Y0ۺtuFt03L)2îئ% Ё(r?B30?Hv3^w6R1)yӆ #9/w!<&UU ͸ zC᭜ 5ʩɃ6;Nf^7{#` h u41_+~~l7׫y T'mE",X)I&kA H)!74Ip[CyB-PFv9C\sγ1%Zm(h7 ˄D x02 oP8MEi%$=J!e@dR8qGɭ*4hGo`7qa.ok$%I"(!U@Ž{bc†#d`G:ݧ(WHS^()Z8A&1ҴuzxOqVa'H܋]p;#7˻l1K9OD̳ӹs>T&Ծsfd f _r.ltߌ{\A%ޅU=UB`"Cwz ^|ŌKUѕ{W45G>m.Hl[p9EO||kJmrj_ ZqO\ߴ{xd".D=#QssލD56,Cbv@\Ӄ҄,mbIqQݹPp_}pM llya32қN pev-@>{A! v3Au!?o<{߼V,[ ۴w]+ȿɅBSfdg6%q֨icgp׼PC4%X @sm;LQxs+s%z":yy8Xe Uxت4 \O WѤ$ /Z?v t 0a& wŨ] 5Tp}4$A ԪۥqO-c8~XAFa8=EEŦI5`@g`)N n5\g[q[o;A'l!/l]NZ+wt1x1X&ы*)ӣ妨6Voeuؾߖ$}5ILD^2vjTB 1JJ 48T tGb3gF"L\b+"#@#0\ mDc1Q-(hL$֕CAK4,'^ 㪓NxXEk*](gTkm>"Q E:"Rw/2G$\>U(^%2JkuduQ@zcE1Cg1UneZ]7„nѕڙS Cxr&bjڞ2\sa%& NϞ|KV)hߪD薑 0LVQ!D].?&4sɦ;.p.N.%O-1*F5dPzuQ9#c%)5!^X%g믎xfDlQ!Tq {>|.ܛDGŠ#S+z%.|D1sp|`U(yψeRwu_# ^a$7OLxS&JlR 0a6 *~7^(5UW(63Ù#CfKX!iȤ`K ~c?æD񆡋-uJG\tgyig懲 %C`خԹQz ܧ8aʔ&0N-?R*'t*R>5Z!K.[Sr#,kCo/±TOC2Bd"+-EB%ae6NJU}Ńxt`m\U$.YF̒T ]!˾NuHߋ-e@2HUoł@>\TsCTW왵64K3"ZeD AUAn}mȇ)$*s/nx1J'EvEDoz6j8A}f?/~/C`?BLo_Fz AˆbBCtƋ& J5ŏ[U;ۚ`pv` 02QO99+bđUiow]ȝ",|n,쵧‹yE=+Bb%K"tX0śr^wuKBH4#"wyv H:a-JͶ 9 oƣ K t^̻ x{QB&5 ğTHrx8lx{Φ\J3|ZHT鍫⪍$(U@&*as'\ 4Oh<;k`0Ta?i(X#_;-J|O%꬧Coܪn Si/i^A#{rQͥA yYL5D0<2<(XD~{`Y8n/I;mf [aVԉU U\Qڃ/0?VOp+/:5ZRi>q뾌B{uTl:<7ݐd4犁 _!M?&GYfź)BحPCz&qFyعBM}ސ{\sH<3+nMݷ,#TNydx) W X^рC0WnׅCHΕ-w^rQuB K?qJ"Xod8Hb]1:]C>J\{6]m+rLˋ;!ɽn ka[Ixþ =lp"}+n\*/'!3ϭxwGX`|m4w[r`J0QXr1$Ӏ[L z2ʽ_%1K)*4~(84~`5jY$WKr_%ZzW%lO$ts"]uWdHV/^lv톾UVOȀB6 ȫS?tH:=Q>Y]PX>vejR)3ewc0B98O~\z:HQl 8_n`5!U6F q]n0HWFTNg83fP~v6*ըQo_PTD*<>Wu0w LVSh@UJbH,L_#J7tRʺN`=h 6 Bnd`6'U Uwѿu:NO5W.؛`_I#p"bm{e;#B,j-RA4b܄?QU0'J jjA}MUב]KqQNA_O͡5Cbɽ)>L>Ň/E9H5)&a豨nUr(uUvAI0i d ٩L:IF#)SUsFdD91_3MکơH)F,F{5x׭O}N3*]\  J1ɔWgC佁~M!D}P^ X.ܭA2 0*-;cʻ&dtVȗcM3E%Y$V@vZawqĸi ^WT5U&"!#\nw 2[:e^6. H'eE$z;T˸8IgHCv{MU3o$V4:y08V8*pʑrZ]~P "bkl_Gid";`Z!u!6Qښ3'jr0Xϓ>"o̸KɠϷY|/ wothsuW]țgj5AÏA1*OJ ,J{44`/ VmC[D@:Yd0!PLv^7[}IA:\s.j؈tN~1^w*"W$n>Rsf;ghOzs+ hl @#V++X]PN2 QWg](l?Ӕ ncV>` ueEھ<>5JID{V订B(&Bh]^zbwRL;u?xwQZ:+3}/7u\tmǬ&d:Toɬ7Ui9 9+0-Fދ,| R|:ש2i[Kv{c12c ,#aѼjLR!Bbelױ:i36hz[{(aP/\S?YC wv#;<+EWyiYW^pxk֎>硕 ^н-h`vPG?G#b9n{ƭ<* M-Z:ח ilȧgMiZS@s8hP[WЪ {Tˆao2"t"EԨ\l#}w{ 8%WҤ/x`&u1\"mCjb! îo@B9*(q:BGg , QylE(%WV0|8'o'?PKQRҍ==OEBPS/cover.pngPNG  IHDRxQ"Ug=IDATxj+9reAx i彑<>~'B!B!g<<<}zyyyO<<<<<<<<ϟчn<<<<yyyyyoZ1=<<{u6<<<<_<<<B<<<<|A~}q-<<<<#nN<<<<;o< <<<GqadX֜s`&ND0fȩ頻o}3]^:]ַ><=?xTME9jEI% .c$ne޲KѦM/(L!)u D{҆ Uq&O?]t(,Qz%3UWHDEa\Q9iS1hujB_9Μh.C|nyycGx|9@Ѓ^JFD:{O͙#oYL }?_n]-XȤinAzaӟ&Kо\q6j梃y~%:K}uټ?_2Dzk֞ n}Xw+KyZ5DkȉEaaf<01&|Nꮻhf Ւ 1cZi/[4?EA@KPq=z?o,_hwTbL/x0 p~0ZZD׫ENN m|.jr -tb`GP rh+|Æ'5h9mj?>ɑ7Hk-fϩyA=sACoV<<ڲEC|Dkֈk?:0| iaAD$6{`Gծ$)Not!h{Uxɋk3H}l&x뇙 ~'# V:hp Pm=zD}ե }N B]Jx!]Fy6&xt?Az饠(:{`4@'G}յq9+A'C(+-~XODkZEdpu={ĠAQy_uN۶@0O^]x5R"=zDapuzđP{Cb~OŃ/L(lDUԉ6mThO ?Y o?hp}~_j}*4o /͇yO8[?Bm.N<=hxA qq~OG^b1AUx;v=/܃g4ÇEԜ92A'/!qc3+oߞRWSD6-|/܃g4z-[֭}z_ɫURD7SE~Ndm[ }L y9^ V:hp D[PPJqI&]DǎoFbCj<֭4@ /܃g4:RKUδ{ > ^|o~\|˖qK^-lp HqUǺ 5w.we)w4i1E  A$|yx4XAUACFѡCG+1f@t|2h81Y3*)6/B?7{`܃GА)Aq0{_կO|!fRo]-g<|C8я=hxA#hȔ yMWj, A!1awU9WsjۂpTX^{`̃GА)AݹĈD!6D;va~6"v"-ʇ1ھ H={`̃GАAA pB9TRgc~8""uh~ =hxA#hȸ z}WjjmTRzK?_͚%zHz1C^vZyS˖W^Qkкugs> yUQ|y2!5g=hxA;4@8\7?b`1}W'3[eeFDbx9sZ0J{M97_(It|qu D%%"+VR;k N<1M7o.Sŋinan|Ő!2"8 V:hpG_xI޵ע}ς&M2ÇuD۷yyW"[jE[* ӦMvzmKjѢdޣʙ3+.Lțn#{L=D"VSU؄wr_܃g4#AѦMANSE=n N.S+VСC:2'Go~^Ď#d"<:uT(R+WG&%i/(ucnHLe 6Dxе+=hxA#h-gKϞD}yT,+tD6APj4& ߮;V>xbJ*Q'b?Y NAysP#E-\߯grڴ 7|Q>= XJ|o݉Gߣ:"ĹlN>92^={[nIfL-1q"=hxA=$gu1|яy&owݕ}|hΝY$ 4<=ECKΪ]ŌK 1lX$\hgoGg~00vt0>D߼9ƌ}E~aԫ2h/K'lEhxiJ>ۧ=d޽5sɓ#4_de'Ծ(1IDw.^-^# R>h˓>T1pſ?Y / / ʛo`/gԜ%J-[hx{48?/+}Y'[ҨEE˧bw- |"٘aPa9^H\|s_:aN`^рR9߭㚭Tqq:l@3,.F?*K|yJK~AE;zhǎ[c6ԪU=hx /W4`TwݥJ}Ad%y5[;^3n+|0tH$D0x1>+K/2h-/xASрR_XHvi 3=Z3T0r$|0hfଳn/沊J# x7G\S#hA۶iW_yEU߻-1R5['_і-^ BxA^#^?N#4sѺunϿ?+0^ƷnMAyJNf1qfxǎ<%}oBxվ2hԨVoteCW̃[_hx*/{kC?mƍ+3<20X?<П Z|vz-\bDtª?Y Ͽ㥪|0`)vmkW0=86n'(wQAZrZ|Vc,9oSsu܃jm߮|Pƍ+izPu>q᝘_G\~fi'g4`~KuyeYGYҖnC/*<o1oߐ*0?g͋ɓ F'i~S};~ru+0^s^.ߪ?X2{6Uxڵ*WǼFL gɫE\(=~ݧ*? V:hpAKuyq͚…VQJX_^h N>1o5 3ϜOgoL۵SJG4X<} /رԚ5VQKj>C 4H Gz̧~qE hxAxںUsg;.ƍ+Qq{xE, 0<'v%#3~?$Sbd4xAxc*^=隭裏Oua,q5]#FpDƙ<}f(ɾ? 0Yv GL9+8,V2a.=hxAh?Ւ%,GSNwﮙKouO( i31.]4sٳ3'l:xPs)ϰg4?j^>fW/ԩCBhRoYڠ ޳f(hQ4X<} <- XGL}y0jhӦ4?4޽724K|Dg~yYU ՠ((PO>X{o ED+&{/(x?7pa^;wg>~̰{ūUV*6m/y|h`Eo|u*^!i\]+e&GwB|C9ti_G;wdŋ1_x['o8߳g#ՋRxc0x߲e'O|U;0<' +@ϋ(~ÆIƢT=]y^ee_sBnЮ!&c-ы)]4?S'8_jڳdIc,H`̗e2OsOd?d8n?hPrP:%O>C8w'߱#19^>|[ƣ 7Sh0!3B])6?p񑙯N oo%O>CzUC`&%o^40Ly|ыΗ|fQi;^}PRJ+~JJ#/y~Mh`E /%|>N}U+s9D)%[xm%O>C)4c>O>U2_E͔. ߞ/Z xBJ}Uta^۶>ɓ_VA@ÌGӦR|ƇE͔.h|ѱ-'[^xq7m/]*TD[ЫWc_Knb 0'=o?K6E͔.h|Yt/_.qGQZ%-_=v'sJ|k+cGK>h`E۴u%8(zX$X(Xl֞"x#ON"V[ Ty<%o^40Ly|Ηm3:\cg e˃s5t'K-0'߮J} '_40 ytы/[lk2~GO eɑq^׽J Owpק.2k%Oh𒢁fɃ ^4|v՚5bK!JRj)ߏfL~!Ovps=X 2_y['o5KCT`2~ȓQ}sEp|ppk%O>/o}ΊzH}%`y5k=h<_?ɯ!uO͓9F`||3䡋G/lgP.`}wU>N$e#J)dw!O>"t2 " FbVN0 y|_Y ~+3 3(*8TR6T{k˖u?Jv?q/Γ:K`|o`EC UW%K9џ%>wgȐ`0{s ƌ 'L'Mn%=;=O<~t)'QOٵ?WwË/X|o`ES4PT;^&7O'RfGq;ww57\*J0'/wۍZɓ_|3䡋7hc,3HRB0z۬ A) yĉ+k%O!]4QEEů:=|>Rf7~s:յÛnXy{3_+y['o}l]Rx|4wj+k%Oh`E7z@Qeqk.2EE(ßg4h <Vn6J<~|3䡋7h֭|o~~eRft7w:Ktua8OUT0_+ydE7n@Qq#ʕRN 6mP3 u.K};yK/ |Zɓ? fC ߈EE=ezA $z|Υˉ y%+E k%O͐/RY7KptRKBwUA GO>)Jok%OE͐. .Ov SLJ}קO]\VXp|+o뭙,g럊Yk>2/ы)^4EEv݄O/OKW0r$s9jJG 罝wXůje^ɣ 7Sh0?? `'_Q_8qb eTe$:!X7|ǎ+VE}x3vSPW e&mI>aS/9}"ױ0/ы)^4 ۭoH|&&`gU e›n{|ijK  پȓG/o~۬}|n#h"UTsxkWbEey'fC  Tm7hW[&~z)?5H'(<_QX`ey'^40Lytkԏ?G+*x)OU+/)פԪU6m,?䫈ES$o4B`jU^o`E|EEEơ5 6UD+k?j æȓG/oz׵kc!SC ϢRBtG&[y!o(8{7߬VV0f5stQїN1_cyg&EIX~ Ch0r> RtǺZCo<85KW_&_[ éS?(6o| R>1i+w2|{vw/RQ=tp)[C)8QR~v|ɧ/v~K^IO8A58@/^܈~& 3|[ލ éScq;t@|9~(Kȗ|zCn#N+90ף +*k&\x*1 'LXyCfy_"ʕoe@oMB[Yi<|>\۵j#_9(j v~CwW+0_3{Pqgpe+2 TrRQ4 n׮/;23&YG&+~;%:c&*v| _@#F4 Q2<1ɦ*(U,o͟v[0fLr~y?YANP않b˖y.^`Hkߢ菷dym#v?L!/T]4K&Ϭpફc .HIu!'ͺyݻ;t&05oD?XW_?qS~|os'O:wO:ӦYymn C1;@kP)bwapʔ !h<_B/8_ȓ'Ii"5k| NI<-R+W&wOk ϫkPid맷cc ΗɓƌkWR~ey00@q5wwA0{n ='-N`rh|!O'A>|o,ZD\y%E.6< ߼9~cc[o5Of*90#Gs|ыΗ#@#~-ʕpT mD -vyD>zA0W^L'dI+!=0܁h|!Otkx 7 ?lAVx]/DJx?|+_o#n+woXg&M [omEK y>?fWTğ|"ff|[oTQ$Rav|.\0֬)&~*93 '5?zRC.{oFhBWɫ#ITptX|납g 37N`-]??6V6~! <Y/l.|~!,woыΗ Iov;p*3 %Ygޛ6>JcE { @%7Cv"zt!j#7yکBA,(6m|3(V9N";!'BVꫯPG/8_לbE͊<"*~EJv?b _|A_|i{#FSɲ,AV4w.E ԩ)wov<2F 2_tF EK,Lo)6iR/'OdcǢ_4p)C68fǟ|Xg3_t>$]~y g3ߌhrAVs&ϫk4P/?T ?~B{AWovPf7i13/:t?AqGH ̷~fp'ۣ+!&MyC\^4p~Պ'͝+8?(/:ۈ{,[ a& =0DZ`7|x!=k/ ыίZp<[۫n;oߐ"4n&o㯐ץwsxw|ůf3&Mb.E-G/8jœF~4u׮̷~y*8ϥʉ..[WT+"/X`u *pqIwu|xmtyX _{ +2/L&h|NZB;[R?^Ubogu[D|r m[>ZQU+ί[o W8}:EWxuV*ܞ=o=_MY>CT{ V͛ǟ}&v)<֖˚|;[)_)O><詧Y̷VT 㙯=l\]'2ߚQb7_|8vܓ|׿Vql [m?zU[.#oС(c/;6{OS0a ?_UߟZoxVT/.y5\~9~,[r bI86?Eyp u<\50ݺ)MXL6w3_|^D]S]c[;NbK/e="Ŗ-aw/y')CWbΝG/y.{Aws`$T>WzLx ozlPZ,R8u**Hワ_yA?Mb^EC!O?(bǎ̷|jj%vE>WHuz]AV>z9T#ڶxk.%[Rr Vv{Je-ǍC h?g*_ѲeMopLۿyTc'~~L,v)Z/՚5b>(l5λ{ﭢHlQo_ļЋC|֜|k˻C.c)8E>6(nPWODJRq[nb^]?حUodSzP7ȓǏ-[ mS[y(UE/ o1oTcLCEE8cXAN8AZ*~2\=h^EC!OuWHg3͚s Qɋv\C$ypl]ym)|;/$I)U5dmZʏ?CN'h^EC!O>~5~{#G2M-C/iM^u:}bdp;wVk׊JQ^p%_w`wbyE RasN2~l䱯eP_|QAB/yȑKFby0-ʋJ'6%R{اW(l S :/c>ر?vT. h?WV{S6e"zQpΦt"ͥ$o?8ђ%RRA\uUE +MoG˗ >f/{V=mv}JXrKܼC|pb 3_jSFƑG&q `N_ģ\آE%%|w_Ahp|ׇ Θ $F\jY` ~*Ik~V_ `*ZUVf^pO\)_ɫqIjN<_;GK܊|7pqa*9!ԩ\ GE{ᗖ dH1BQ{,52oC+ |>u3௾hTH=H$+Ybc4E3Qc{ַo!W$B [K$:s _,h|ç!6>]ю߲2j(p4Z+d<=>SU*hm͕h4_RBm2~12K՚Q5p~s]v}L)r7t1J+~g5/Ndg|iw-.q7ۏR=СtH^K(B#P -o/-u>4vZ[/[7d^|1^awqKI4HMn':uR-5YӷNsOӬo}cߐYCLE.]Z*m `잾^;RJNh#GdJ"K.ӭN:UfQ3 _K.Jc/;w.>ME% hO"r^Zׇu;X0WnQK+'j<5$R>rtOG@>#F"Ȉ_$8>[=&y]GPVϗۯ,KMXLxGp]Hl ~<Ai+gaAKkj\zP+̑#T(EuWZ&[ˇq1#?E6e =(HxԆ aqP8Js _b$8>ρ_W_58jܓ//Ke8vwvOg%F@ #~EW[)/o}7 WHDx~hKQw4*-Y|bzjl=,iyNͿEq~H:X[}퓩C1N:ɼ*Gwޡ^l 6@ģ~N9X~4| &jkGjRTV _h,I>|mxx6hE+*~$GPė(K'<>p@ ׼bp[%R8yĝ4IDċ/# 9iG^~(Ÿh|=ZցbH~qcL:TGC>|6PYZVxuq-P| O?Zq~5@^W ѐ6wwc#}0ģ$~a歷"CE‡䗔~15>p 3M@` jz _bT4v|ڕJ9ǝ>ZP!k<ФbqX:Kg$mp&OV6 [Qx{gOW~<@I+^! ~U;cYj/9''A^J"uLzÇr /wJǷg1#ďQ*:wΛdzlrD|I{ɇoEʞGiWu _5CqRŗ 9᫽{?3fKf?eKf`xO˧\VuM/m $pŋ'|t7 sG]1CG"歷-Xn=>ƍm8K/,x‡m`o\|Iϧ_?pj}=>r Yc北' 3 lF0oQA|{9x ~|;c}=%Sr s2u"O~زeDFdǧ\Ä e`M{LH/T4r|y 1.1z)MZ$Q* 7N`Wxh5ugVRvzP^Q* :G"-Z xx~5.Wu1kÆ)'P:vDWP_<؝?$8_xiև1~vpؼRs{w}| 8tċH 6᫽zK.=`¼Zxiɇ{ _G?kfǁ@(:`ۏŬF.Z%xIh)P~ǎCI {xߺ|SN.-v󿀾~1LQ4J ҉]vqKyG :PSr"޷rÇ_Sc?<O-ttz%"$zٺ^\3Mc%?-?`NlԺB}|."̼Nf7z ?'[ϛǁ)hH>}{@n};w2]D&%QQ\>|bV2?_D0[H4cѼ68mn]`ozI~>|ڶm:[H?a㬳؊=fڳ'K'4k3fp VG>[?5g+WrP[K㢋ǝ;Wgv2|v3ÇWkWkq8q>@9p>m&et*/҉@?|WvQ@ oG9#g?o |[ϼj|9Ł3iX ߡC2z5~-~+(K"ٸAU9qLTWc>|dv|2 QG)aO! J7 |u=~<5|NGC>|GirP;%&[m ?[~f^|t1.-YA~a KutS\B痃"d?RWW O3`J uM0g"ѣ]t6yƅR 7Y|~isPYݧ-_f8)}Η_rP 9sOMᇼe-%W/:C#7dͳj_}=&a7hT?hg+P [7T4 ç4T|aO￿̹?!ix>şxnh3g^7߬F4.sg g[Y_y3gr33+P6-o>|_k;&>5ӝ?q>\?8W700ۦ",*Ţ,̷$p~ÆY#Y[->ԗ|m$|Qm}^bA ׹y=T~,ﻯALgҤdߓ̷Fw/64w端cjn=Jra̷C_~֣7u_;W]E'|~I/qHo gD+z̟T4—Wz(~_|R{o%)?ۛr |*̚%aҁYRO?|07 -mP_Ƙ3my]{':whÇ~yvO~ˁhƱnST>P{Q(>Bf_1/s Uvp<Ïhyy5G1Ӕv5g >|P׍H~5Zn%C1} -.~>|UU!1괿'*Ἇ'|eet'߼&ݟ~8GuHza㬳6Ç>m 㢋1cxqw\{8KH}yEt>Ji 79s&1Fs\ B}k//W8?ioti/ͳǎ5Z; Ç>|OP`a=h9ג%]|G9z Lf8?KQ$U_rI>|HDY}mJf^}6".l[ܙ:J3FCÇO=4FUΞMr AATA;)H>|vI./t]G /ͻ6N=U<8Q^.Ç_qy9>|һNiQ3,:}F~p,jLƘe+?r>ܼOn ;wl5z?s[n~~},Ylgf 5yļZ3WzP">|G􏼶O?di,]nQeVTD{x+lj~sOD?|M#m$4Ϛu UhvU;@jH >N;n1}ѮJ,lއ?j^ L}=%(1AEmԐ\?XSAOOzJ t=WWbU]EB`<>|çu MAo:?miQvH^<R*VZb e ]R]顈+yyyygϴ yyyy?^gn<<<@"?l<<<d"yyyyk)yyy3'Y=<<иovyyyy35<<<<_}N4Gm<<<<ŧU7K4<<<<[r綿FY<<<{yyyy,nyyyy MV<<<4"#7yyyy>~0<<< ,<<<<|<<<<-o3yyy<$I$IJ^a<<<Ÿkm5<<<{io<<<|6<t<<<Wyyyy#yyyy|m<<<<*z<<<>>>>>>o;kDO`Fk_ c~`y~ʬɆlŎ89 B]#<˼|8:xb;D}|c`nZ5ڑA",-g]6c[vchNl.n6<;ziCtRӜoٙ؂#~ʬFlNYl8b b {ygx؂EFForfecgY-[0Vc=6c;vgN.-`^lxxD䌌N&U[#i_1 4mX؂5;b ƅ\s/[0a$_2zx__epLɴ%$0 ?gb lnaé˥\`M>`%GC+>>S%9KIRɂ,ɏ`l\lسi ƙ\p2WyOY^EyMczؐۘ@$폡\ϋLxuI%>>~,s,dI2s3ZM*==]+72;,ˢìE;Ⱦ\ӌ}?k0jcfղɾ|>_o"Owsz.|N8``Gdd%<31XLWp5#Kߏ ThDÕ%3i>>>>>>>>^# S"YŘY2%2;s'r'2H˲5'ɻRl؂qWrgrGq{[06.`$ 2' 0=M)&MTOyA|@q:hY˟G6?Zs> ^InnVR0ewg3g5V(`,Zlhlaw.1!C|||||||||^BgiY^&O\.?g7.*r_Yz .dVf[1>>>>>>>Չ+.r-hes![Gcv<}S)/s(jYKA>~Or{ Q~Ď|@?>>>>>>>>^7.ʏ:yFѪg֣eYO||iaO~05rl9ttUT>>~_3YُGxӲ bSbF{W'feYbݡT!J4j7WkiO`ea-g|J7̤FYm9{EWҥa_IUCkSby̚~>'0؛Y[s0ze|@}|<3|dfֲŁ<g|eEfٺV|g||||||||tOa*3C+.WZo4|DZc%fU,#i?GտFZ4Yi`?ԲY('OF2#W~z D||m&?,e6M/^ ]0rrZhʏDUv=ܦ!=Z%9/A9( 'p?m^a?VU&>' tUnVٺlɇzO/v4T\~5>~U9OV߫q70T˲Gx}_euTF|W||||||||^(#c TVyڟq?ʬ sfFa\j؀ce|P?̪e}o'`-VmKW|||||||7{ϯ*?\ Z_q _g3G6Qa=oCW|||||||WyeZP_g Uy@ֲ.r .Yko?.N؄(sL3>>>>>>>}S%:3uMtI?O'kYfgO [|FHD6eQ5ʬʁKLh?SzOJUkYE+3 oO'QfaUz^dm'>>>>>>>^yM/*Н!̫eG/?'/NasW*u<fD?Yޕ(k뇨Wts?3в,i|DgS٢~+j׼&QFy}">#Uc1- 6NƓǏnNg+TĊ>>>>>~ UK >.UO?4ʬ-&T/W ai5P~^\ӌ#+>>>>>>?GRD!GꉏRCٖYdfֲ́<ϴO||YlDzj=.D W^?AU"}NKiL$n~pKU }N>a$Ix>o-мhQ~_[47{S$Iuy^yCX4o*G$I8:MyM/*/>ߏolH$I|wWQgk8%$ILn_)*E||=Ǫ29#DfJ$y^oqsO9J$r"+M1*>OҐ$Ig|w7NWV$I?]ᡬO }*>;ݯ*ד>+au{iT:g||ʃ.zr#>~ 6}ǯ*&}w]U&}wի5+H鳣}|-}|||||D =~&U>>UYKS@||L2?JU1>>3>>>>>>^YW/ZЏMm/bNWʖxKkSIw NǪAxբR|| 4I7ʦN9xidkTe g{ޤNkʟ4g||||||ĪOU}Iʉ}|r3>>>>>>^U_+>U+HR4g||||||=5[5߫]ώg||||||慇eT<.U_eU)>>)3>>>>>>^y=ǔY||},=~6Uy>>.UY+>>>>>>a*wD4kgQ6XgGK4m>*ER||ggk3>=~1 pT0zBLd?*>3Cg"43ah[o//4> zP^[6vrEy;nk.K.LN9#e])drCYcRg%Ydy昕ib ƩI1Fead@)*U:vhfilT~/~|_3{V^9X`kԶm۶m[9|\D7ջ`@lڶmD( Y,uUu7MhضLv\0^ǥq\iZ` u7 DB`K!Pzcǜp~*ęR^TJko~sk̝>8ܓ޿[cH3 `MmIP a :B 0n!Ki!#!BLJ9SjB+clZsn!\bxK#gίNjdڶay>_Gq!uB6)m1fs}!R)5VjT1sc.]9~6]1S:t[)`آo XۃU%@cQdRUls̼2 b jJ? lmB<-? " "qغ ˬ߿Zaj|n9ϙ̽'d,'Ktҟ-[e~|//Պ?"vz^`]^z[r<4ӏDErn둲r<D^zmPzD9 GQ.?_bzdHmqoE:>|>^BQf/#|QD)kwiN'(roo^ \2<(@(?(+~WND)OtEe"!B ·z^x=DӎzDyE3O'_A?Y#+L* I:!x Q&~z^PoWDy 4ӏX reEew xtC^'zx9^?(hD,D)(;L*oI:!xK%|(^뫯#"mh}? #O!W?OP#F"Ӳ^8}:̀}QC^(^OC?8롁~%ʖ;r '"Ӳn=Tҹ2:p>(^7PuC'^L? \2wu':8!'rz^OśFc~'h wͽȴv)<\=?KzbQ>s<,f_Ou)'//Eem=<?5ޟ$Tp>\z^t şw(S4ӏ<<r=l9lX0-˗Nl\vC~pz:Wj;O ʫ~ (QyYdZ#}!x(awz^O:O%~e읲9kDy68z^\Dz\9^ߞ(߄foCC~!#G읲92Fp>z~pW^5q E 'C~cǺ읲6tfCQ>·Kz=w/ewh)HgLw.>{[ƌ!UkD^iz$ꢯVx3 Gf9(rA+KRGγ x2QvC^-6-b'2 G(Q΄I͞Z:$Ro'Q|z*Q=z]D tD,XԷ |re8z^o˃nƽ^?(K~󈲜"W? Z&^ťwa-I[k%5|z+VRt/!L?Dmm/laz}7Vf=s C^-vN|b{~Q^@WQs^{_v-dg|zӲHV!^?(h|r8Q17qwZ92QDy+8z^oT9T!^߁(_foOo@~n'OL}3{wEqBσ^?^5q4Џ᷐fʔ Wo; ҙzSp>z^Hq6^Qvf(A~fӧMƑ25?OO·uz:: z^Qfѿ(GC~N&[;1~&8ֽ^z-)*Zh!ʕL?{r˗~!\w?|k?(sz^S=ҭ[UL(~ rl9lXf GVmwrk^z=-/oڸ{2(A~>BA:k^߽k4M۽^G "W?W3.|cw謳Hr5?M=pHz!6]^ Qvf(C~啗\R_7 /0t@ 9z^]av׿(G@3?@#ٳW+]gw r.8z^P`{DLH,\8m=4K<7^z}暫=m#L?rkTkX#ܓt UDz^멿T f G( W?'nR76%5ާIp>z^'}mzDG Q)HؽOqw˺uEQw{5G=|8z^O}{~*Q^ ?(B~%Y:ȼx^ߝqDS8z^STڒmzQDy4ӏx"W?e'_uz}]}|\G|8z^Ͽ3K;T^ߕ(_hD4&:5N8\]_w3reop>z^Cl^ׯ(?f'ʏ!W?ӧ x]w9Ők('^zRGz#4ӏDy d$u2z}wU'-k?L|z>4fږz(H0hLjr dg_|~x wHN5e8z^Oy$N׿(~')+VWnq۬eDz^קz^TϩDA_{^(~k2r!.cVy|+/$6VW^oO:\Pz}ʷ~_h"]L?rJ ҙp~ 7^}!,z밾> E=Q ·z^S\_Ӣ^F'~ӉσDtԨ~W?~'T?vf~d l RoPz}3Z^䭶z~$QAL?Dy-g1Q׳kίϟ`ܸޚZW֧nt\#Dz^p_EuE^ߝ(_fDB~ gkKͿ[/v衄ytƌn+Ig,)KcPz}ٰmzz#O~;B޸auSOwNy2ͯ?}:Dz^sK_LhA~?!Jrs8Q>z^xW"XwW S~!^݅ 7UoV|쳏}wW)oB[YʟX7|2鬃\b·z^OA}mz+;B3Jc!W??'Zv\O~gx6Ç&Ny_Xѽ o9{L[n)_;y>c p> ^zjGDħamzCDG(Q΀\|({lfÚ5O^p'SINo{WLIK:o\|z Tzq[J^(~wPՐRq{, `wfrc6~;6ZyJ~;H:5޷&w)zBz,AL?yDYy!Q:n_77^y#FEA7(olٿzu͔/7OjKCmlz^g0!TFןNǡ~!:9]1tٲ;M;`ȑr 3;7ܰ٬%{T|r x ·z^φM_nx}mz1DyE3'R=Qo9]wӃ>vc)'Oܹ?/#xp>^zAu~E%l$g~#~\KΘEV_sOr(=∷Ϛ[oV9S*n9 rr)8^z=jgYTOGeQ~ ߁(_\H͜/̛w'o#{mI~xqc7݊rgqz?t΁\}Qaz^3|(6yD Gk ” W?\wOk׾x 2^q%^v;{3raz^ӲOǢevyCs4ӏDr ʯ:]pĉ{l-9Ö[|)_~2G4ʽz𔊹G*5O&ʫ0z^~C_Bu\Ew K`  2kw 1wpZ<9N}霮g:ߑk]'~PDJODjov S DL<w:ꡳaz1b;ϻx߄(?χz^c _F`t}A"P'rDf;xGlz?s]xK܌l0FT%(5|{^4cd72SMD9JYRas5mZ\o~xE"cR~7QVχ/z^3}#Z'$Cgդ:#5P]vYSr|gi%R:fq٭gU%{%Kx>|Izh\{E0GPYDyT=_)ΦwgFJd5ָ:G撊o|,##%^zZ+.1`݈MS0| JsQz5yJ~Sj+ ' z%=^U!PjD>gC^/Bc*^xׯ,?(:w&mRLϟvZ _?'ټs=eP 6T9{6JKrx>z^D˵^}V#ʃPD-g{ f:aVDvhwwܲyFP%8$9JWPzKzZyݠ^_ QCz`(JճQ螘;GP"ʩ;$K*p3 J݈e|z%= !Q:!ʚPGIc:&gۄBҗΫ;o0K*wxEC>(?χz^_&z}}%uD>@z~Ef),X3vdRϪtZ# +ſ(3N=ϓg?(U7媫w&ND6X}C7kO2m.8h-sPd)kC^xmWzJbSD9 J;eJ3*)m3k`ϪbI{Pd(S^^QCz72(U"tYd>cX}.c_^rɠ6T=~;A~ QK|zOk-MWGB=RlL_~yd_:gWwiK*J=ƥB>(_χz^{ݹm_5@(Az=\)PK>̿`ro9ye#撊,zs+C^x2+[&Dԣ(AzYe' Kg1E6~sU_9!a|z-fz}Ueu(/R|(nAycC(:Cߡ%9{4y%zPz}E$CC"N=eO(UgrЖ[4~S;To6Tt.@m |oeg|zG%gz}}?(sN=8(UϛrƮƳFz}i(2#^=C32B,:(U5D~WT|s;Pd'yGzP6 ^Sb̃RNsؙha#ﳉ<z^bM7R$WHu ʻH9(_8IZ<[^k%ux?(χ=z^4r09Q~JS~|JճQ~Sx߉("y>z^E\:2r/N=CRz$ʽ]9[hzO?|R}]<z^׳g`h (BթGQ 0|RJ%hz;|N" (a^z}{MwgD ԣ( Bz~EkudT{"+x݆wz/݂r%$ԣ!AzA"6$u^?ou"kḛ{z^(] WGcN=ogW(Urܔ),kow}:^vۑGxw8χ{^/KthtӋ^_/"PGrg!Q.kQ]'O&oC~3Q޽^zڨD1k͑Ũ:_G"sT=eɡvo?^5$_C~.Q޽^? z}eQMSJ\9(>T-i.^z^M^ӉESTT݈sm&cMQn|րR} Qn#y>z^gBE_߂(?:"ʧIL?\q_3?Rg(5$a^z=>kD2;LUDWS~ Q"< CDy[Z3;^g_(28O<z^ȊZ/ 2S~] sQ7.X7J^'Pd( y^ ߹uYq]/zDԣDǡH=@6ؠ{Y{bT{~!%Pd(z^ :_'nPSD9xN^p=No'p^z6~ۼkhSLR(g ݃zqSx(z^y& {S_LN=O`(U5Dwg6^cM"L<z^OBE|^__LPr4c?^t" |p^ZgNJDTuD Js Qx陹Y0^*s?N|B^z}w~|ԣ?(RlKϙ}yGn|VR}M Wz^yy?5.J~+TDT=kon;׷ގVgs(2#Ox^;V1kS~|0|Rŋ== +^9^Pd(Šz^0,hiS~# L^k-G?4c e:hz^Y1/2S~i(AzF7٤+z;|."-D9V^z7mԽHE"iP=DYJ^j`l7J^3krhz^4({qKHSD J3(WomT{w$wC~*Qn_z劦h^_ǿ(Bz_ ʾP ҹ|LH}^rS_z>p˵&Rz$ (U1Dȉ'3Q-[|~EDhz^ ϖhx Iԣ(Cz^AΚ5fzꫭF>B*2'BWV^z^8%R/ߏ(:'"(Uˈ+fhA^b\YBǿ{z^QAI6DԩG,QEyycgک+gc(2޿G-`z^Z+~ MS~|Tgq 6&mf+x4)uz^%S:7#OIE깋(O6N:|" $9Fп^z=˽ ,_BM"Z=DTO琭riS# Pd_Ik`z^|WM"N={I*,# D9s4g1ծw_Dy3^zIBjZhGz}u(Az& 6ک;L>o"}:Q>#_z07rS-QΆ:J"ݡT=6ځ[n_(27#I+ڿ^z} C ޯ^__AN=(UD;󴍩HE8^z^jEwz}  QBS~1|΃RlC\t3OۘjGx;`dz^|<ߴA?(&թG QBz _6vڿ/X@H5^zrhDz} Q:O$;HEy(C)N>mc媫'ρ0z^YFNuE9|6^k-g1%0z^i\I]cIRz[PeM7uiSӧB>A~)Qz^^وe/ $ѯA{H=!S:󴍩棏&x?(oz^߬\~l^_(;Az'S"%ӧ;󴍩vuPdA/Fֿ^z=-,h^Hs(ԩGkR#]z'k;̙mL3vݕ|D*2'0z^ܸ^_J"3N=oeg(UD̙w@D#_zG]l^?xQuѿ(gAz6"ҙmL&NF~|z^$/W@?(:$uP'!eyk6ڿ\{-Epܝ #_zeٕz}.QuLO@z ʔIyTT(2&qz^,"Dחۗ.AI:vRz>A"kB~Q_z.2-zD-ԩGQ>E2QtSg1:6PdI_zj^/KO(ԩG+Q Ey7|Nag1վr;Oz^ ]t@ :PˈKRzn!ϥӧ;󴍩W|fB>Q~ z^ONw}35M(SN= Q$g6Q^{T=G3g:󴍩v{ϫI_{^zQzr ԩGl ٕ(Ϟ6ڱSHe^z)Q^?@Q:@"T=OW^'~6ۇf8kڴgϯvdx{r4ٿ^z=Kz@DyԩGNEyQUlAO\m5`v^msR}.Q.>z^D|bH?(!թG?(sH=$ǯֹs}&+[dա!x?( z^8KIz@NDԩGQs;Q: ^_wVLЕfEzFEDٿ^z=m|>2!~~Q~uGqֹs#z})߹yLeեPd@o_z}izDIuI/Cz^O"_~ͭ3ez^ߧ'"xB^?(|j'_HE9(<GSgѢy5Czs=l=K=4ބ3lz^+Ѹ zrԩG|VP3Ǟ.7Swŋ ? >ؚn⷗_^KO7a%z^i޷/W _o&PO g+_r}Y֬_fhs1bax;Hsx>z^߿ _tѽdo ePHoHo!-Yr~X_fڦ|=7,܄5?o$|zayݾJ>ΟC@z'P{Pg‹/ L?ڹyL?k޷fP=n +3Pz}e0mÉ!Rz2l+M;1qCz5{ۚbp_upV#$χz^4ź뛩~|ԣ(7AzL6,^܎ޫZ1y=MGU}M >ܹoš6|zb@/7$ʯHuџHAzE"ήxݿo,-= f,h=XϦPdI?<z^߳m}P/" AS~?|TDlc|Կ_rO:B= Zwg"ݡ~Q-;SCV[eosNz|[3TuGox<|χz^xIt_W/?K"}N=GHyT]r߇3%K=2ʄUWף{ߚN=WL('@^z=]_Jz@H3ԣ |&Az&W]=me.^|;C7Gs攭G_5òsN;ۡ~-Q."^z/Qďo$%Pw#q۠E2 R+f< Zo|x?(#9z^/7-{^? .Q@z%+H=':&l޶…n =d+G_:#jֿI R^z= jDӆޗ^? $Q>@SVE깍߯?n{+eֺ꫋S5C;kpnoE;Dzs,iDԩG5Q"|D>fhMz޼=6ݔ{u)[o[3ԬyIR}"Q"^z{Mb}YLCzV(Rr+^ѽĽ`sC`n@=~Go}[3T)l&*9z^yB V!:!HE깜(7tr~"nrgt|A"=sIⱛo_ 7Lxczg̨_G>@$JOz^Y7Ԉ5B(Z=](RLfU_źCvd΂YekR'O>|7:z^BkrD>[Bz7P}3^O{#=d7f^;瞻@[3xQs6?@"P|z^pFd6?GN=' P-/~.AUIkAfWXp%֯ ':4D`k_~s?ޯ"ʕP_8 y^OF^/Qzۉ2ԣ#|ֆRL ʃ7ؽ=Uu'L7e/ZT~sKt6|hƌXJ>oIDy z{,x(~bԡ{־z $ԣ(Az(ߟ;S`Gs9n=`uV8IJ7O^O>Wt;EyMAzo!P/efӳ`esYmU!Oy@}խ\'i=#4iQ4χzv8(p ?zǭznD*N=g'Cpw`Akq(i;I]xu^_ݡ.8ܖ_Va;3w& s{l)ť=7#֔Ν?:kVz ˌח-ɡbRRy?دCq8DyKpy[ՁapI7xcu9ކc\Ğq4bܩ6xn͜YL@mg* џp a[7r"WCK+vx9oUP4)H|1~ .ݍxb\bԨd|cD mB}=ZA8W.%:B [7__Tz9 )0o<V92!nOK^x\W\CC8cnړWC:P|q zhU: |8o<.wHOofp]{ŋ#B";пmSB#!ǍcZ 6BjoocPU-`#ȡ$Y7xΜ 9.cx<'\>}K X6_{l)(xk$eka!?'HJooq#)<( 7xA?B4xo[Bk#Vxbqm׮dz@BtQa|ng~Ϟ֕BRl}3xCʐzx1=2kM-׵W'ՀFANx' hy&7k C|1u\j .J'a  v<~|XMj#ٶ-'$1. )o !hY|u,Ys%^}ɫؼyL, &x9xG0x%=?K}{GN &ud NntRkֳ~IǥXߌ7ghS6t۶Up|ݺ?Oi[fg'C W!H|~_oS eS:Psx{8q2Z s9.-읊6is1Ν!La{:DyKmCORgr)eKƢ/۟]಑#uҶn]Ojc`+WekY(=7)nDbmp Ğ\>dfVmX~2Y]ݺ#Mڴd7EC!`'D+3[wW%K/.׳&UMOOCa܇xϔp`A4>FbgpVĞ)t J`EEUG[fӦ$[+VZ }/Bh[7>WiNRAי^Pc}mڴZF~Rp+rx+֙ wE-o"aUގXc|_\zĞqۑS ,PH]HLfB?WR)zxxず׮}1t jhdm`5qYڴulҒŨkE[?COC" x[x$lGs{oKo'Vr߂|hlv]qq4BĒqChMtzgx H[3֑I"yhFd[avT$^=bgyG# rI7W*h"| c|6.F<'ܭRjm.QqJZ*R~tZ*zX9y㟇cg#Ph%":vKa.,W;bNJJsDzm;0o`h{u35yF*eE9.Ui%pDmOC|wwk mH=wni59=zT(/W^&{͒޽ ^oqR!R -<$ZeW-x\> Si"D6cG2ʻ\J=ʼnZB5E׌3{w&jmK<(>BTx9~Np'<7~ҐH(1]j.5U}?a nLԏ"vLv)A=H \r=܊ uψ.ؽu_%"۾2+Δ%dEݻXj8J0V6rR|4xL;?=o?*H'M/!b{?Z={A͚o ,]k\.bt=|anQHo?>5~=5" Q#^ߌ7LC|b~+H}L\)Ӣ Fy0m[*5i˖ܱ#!As^oԒ Zn@^B@*OUǔ IƥQ=7ᒦmAe>ޕ'C^^I̟[@o1w ҇j[^Di}7Qz<ߟEƿ +u-$xm<3~]ը1uk}m-ᎶZibKAU^N~R:tp ,ao<"Q'xµKqi>xb6Z3`@%w4衎̓ȭjUkQ_4tPEmhu[ث~6 E.9c4ISp5xj1si;t역[Z3=Zo5kWct&"MS( <ƥbeH+*ސXB Rtu~XR--Ib=,MigTZ9Zs|Mkgjar|4Ps=@Nj@h6ϊ%T 35 &5ODh(?'x &B|E57&\Fl>+Oå{p`JIzhvB%D/HRoy&CU"W)B"W\njffkT4n}iSTtc.ի[Æ9T a ܃ }o9wݓ'4Wƫ7A#5_Anv2a c5.s#w1qbt~f_;f|-!;LY:]VҒ%ku F19Yx}?t&`>K{Cmۚ b>>p-ǯ8p\}P7kҏlۖ,15/.ZΝƎVXw]>UflҘG<Rze69&̄'ԃI}a 5tky>-ZP=:{ߦ?vV&h/M$F ~x z+]PxƟB.D&b!'%\e.>ѨфWњ%zug2ڸQK=>g׍/MBhZK7UFDy߁Z'둾x*0ABBOt=A8NܹZ134wL{K%iU~688dԩZH]3NH 'v9k=>;+d*(VOP*\سv jށ8{*-^zO)Z2@;kӦ>qi/m>kWݺ͛k%0uX4];Zi"vCZ׳~Jԟ]@ q$uKJچ}kakjqڵ-Dy@Őx!8!"^ B A“|n˗` S׭VdԞZ"An=ҥ!fEm4Y3vatI_W5--((l,ۑ_7r?K9"gxDpRis.O왌KM`^p;Δi-ח-ӰXhuqPψޖiL %iџ qi'xO#"jៈFʠ>"7is4u6mSMWƋoLnQKI:!?n٢|{%<|7x.$cqnL9ٍ ,\Ğ%_\CիZ-3fKAFXhƍժU5=US|/¥;8?R MX`6@ dd[O-p|/0/v ^/֍0U5^n?^jB }w?M[&77M0:5OK&{%8g0HT/Ps.OiK\+qjvq̚հv _]MV>Dw¥x5U^xhioH!W OWwyI݇'ji)M|܄&MJ4 ٯZCQgLiɝ:i6D2 Z /ncHBs堀9/x㓈 iM$j g>3'dR@hV B>y t'J76 EFkOMkպ}i,D¥?#Ő W ߂\?=U O;JƨѸ̓⬫]fMEL݃3gV,t!]7rP`tt;gO"\dFP3>D\d)jeֽdi qH]>EyywP7UF MH/Nfg`>Tc RW8]nOkdvVCΧ_m3A\$"m֝ԩ>꒮OHC4zpKF٭7d?QD (#H IDpޞ/Ö-(2Q(ל=Fm׬͐) BO s`\wW] 6CcB q>ǥ=5\ X0!sH'"T#JOi"8Pv]񍲪Ts{P׳$vD%&<%,x A8{o|G`3dcHy !ڀ'܈KZ<<έ\y`dz RKj@x^9Z&cْ߬޽/.~a_nȠx-Y]7> #?o| #"|ǐT@ĞR҂k>Yo7!K{رƃ>" AG(&+r>FB2[BkD ;̅jxV>BbdpT!"Zݦkz3Ң"mr'!Vݜ̓+Kj]$Ȓs"'=iB$j !)3?7 ĞytͦMoXܹwOH/ZJےum@Lՠ106ȽS[a$Uù~XAbdIOHUo81kX/3f\XZ+8X˒_@r'OF.䮐7( 8 ^Z¼ם;ozIfڪWLա􅱰6հ9 ߀o=.=o ,l@ܮGgʴQ'wXWJюZl0M Ԏږ?ޓ<Β ̋#Uy㍿i@$j yg .݉xbO..ǵhJJ_ӯ+.ZX(?_d4iҢvHL0a7r+)rlKyyO!O!!Jc$vG"< i- Рsf jY u٫^ UT,^O7@:g7'd%WH2OO\z(!Ox ?- m93|uӻvҪUzrr"F0Մ"(}ȻbOLqIb"x !m^鄧m۪O,Xp͘1 zRwy |, v`5KbY)>o<oCB|&yG}%Dkqm$z{>B-c=T@[@AjKAZo߻Im3HpJ`r< ֓o!VC4,:2a,<@bj':S+FK/^S3粑#guﮍ3teԔ 6Kb{IHʬ?\V]OR7"yD,=TťyqW1vrzIȬYMkp5KmjC[`1lEE3??K`i]3g^;6ÒOVX͒SRܒ <,!U,q x0Jƿjup x@=RWZu" F0 B{a lGGJrVg%D@=SbҵxzIze|% pQEa_;(n¥=ʆf F\#w&r9 v~y^TO" cgH|#r94'Exd,9^~-{LԪٿYE?p ~K++3O?qsdo_ED4X? ~D\ <'$V5ha ̃p܋<o߆髿OqN!)3^?EvC;h ⥺99Y=vq⋃q۟(6rС;wnأ–-#WWuZ4x"Dyp'pC=taL #H}okn25 )c n=܂t$~ʄ:&dڠR=.\@R8կ^}X%>qKؾ=\+ ?ɒ8^o{.>o ՉDMH-qU$z{^%a/ 5O=wƟ@je~l\⪦Nx{9A#?6 ?QEmڬ8I^_tY7S`~MF%brlrOnx?l"Q!6'SJB#`& F^B>G!fz#ͰYatD+Jfd+ VxCvCc4NxHo?ڳ5kzEeCNܹ]^^zZ߱ODsItDOy_SZ?0b_ACQ7x+'U 3Rwd~A.|ߏq yy a|hDoȃdcuȗH6IAsSܷVp ={>()ۆ ر>ҧos}^6&4Q׉:P"oXѱ^=T}xO㍯0O(rtx㍯8ҊHXBhȾx?" G5H)&@h $L/吋j+ x#FYDAxսG>}mZ74pd3/S\lJM[0TK톯tO~vXoaS٦~'?b(yhӍ?Ob5.̴8kTys td 9h$Z+ Z9mZlmMsَ7vXoZĦG0yÆۻw-5YzȆ,_N:imM'zـlmylԒ_/dvl`o0!Qp'?e拏I~_F&p  _'?;_&q8@Jaa7Fq1S^<"^QGô~q$M]F|N[b?a OohŅV;ulȿY,)ͣ&bH׮s饅o/SONc,Efl6 @# ]xm^_1o+ޮ3Ds%ȴ_$_i'D{e;ʖ[q b TV2ù&Jaò}"X,rӻC-?} .?W_]R<_SN!{t֪iS%mrYgfdaH3.kDR1抣D_'ّ|nYQ1pIFz喇<Ӣx^(~N+kDΓv"N'$6e/T$.ߒg#rU c"klyZ5?nAi4c*),AIFfGCõYgYSSfI'}9׉%C<kIs 0e qE7#'ďBU2q=Ɓ}f &` 3 E`^.ol jڴxYAϙEeS9لq-b=S<_^r!Du ),t=\-"OfL~_b<7b  9->L 2CLf%63;q8{}Xl]!GD̵bxyW2HhqO4j3FmMʆP ?7vB =7n\@+gm&9ᄫF.K.dV>vl{P,c,zI|%Xhr`"~'?k6 ϋgb\HWyL&p'0!t$jhOFp$s)7y)@,}n\<'a,Z޵ r:픙L២1c1N@g.s|+NV2AJOǎosΦd,>]~Mx>dOd3*ASc6\#qϦL9O%Қ߈eDQ%T9R1 V\Y`~8X"$ŸVm7$bN/$6dD~5.OX+R',vŕ\Be'XKc(KbMX)6S"G}P٦%`g|U/~z.~U͚e{Cꪒώ-ϞO&\Zr"bh+'{񒨂Z~OB16 ~WЁ[D?ynQM7bx?s&cGY$jَ]x*~/y"ߊ2C8.1Ti-VʻZ+S颯b4=~'x AoA׶mU l ;[m[Cc]CNz3ZD1h(('?kEt!LwUE'9xY<,8F]i"?Z:1}8I\.ng?2=$wo) "@#/rèUfv:HI7eHe(yJ#K)٠,B6eUr+:u:yȐ,sA6 BΞrL*DiKN1[UpFG2ԟ&O.(\Q5' q<ΊT;Mq)aIoZ,͞)LuLT=$xD\́Y޵iN2Ӌ, ie^:LgZљPS̞]8F-S>Uӧg;GdGٳy&*AVqrgg*_y+/+_{3FjRS!-fc[1r2:+3+(O~+׉D;y؋uњje}拇o 1dV~M؆ُc9g wbh?H+c8- ߰2ӔøWL(+-8wؔxLimF6_q[İ9ۑqO 9\DuSvy:+Ƨ"ɷ9؏53 Qx̌1N, Sp:G2Y$ZН!a"2G&UX#6&1&OOhޥg({pX-6=[D+ъyEU;vyUMoƌgO;mȑ#m]36o~FPRUʙgIt1r҂),_,CkffI('"W=xV'~@OQxilCxe8_?L$҅8qLJnA""dC'.2ӑxN4`e 2_b\-*3Hx -}{aN]ڴQ úwh}8qW4lK|9'b1Z9:U\-Z|gN123ɷ 1WDOXa2 xE<&(f 8LwO"Fpgp)3O<-/Dzl~oFDgZ1Xi'V5bq t">xJYF*-[>6qbܐ xdv_>tmU!}C뻘=۷W"}6'w fr2?}J ~<)~t#OV6Bp"RW\f"ԉ[MI /mmVd$.O::?!1iRLA(3øI|%a{x]L2#\1V<*Q%϶MVj" &t?=1-X1m'm9GlIEj͕Wf(?>bU_|Dyh%_'#)=,_!z*V˩T_%fR~f,4qǰ/;ЉDgWF1sJyI,+Ig/߈qRaZ2O(J}O+'J/a{}1<)4jo4jkj5g3y'޶u듇 „lUpי3_41c8},qC=ɓNھm[%29_%'-V/-<{lp6"LY;ߚ¦уy'qDRC'c9i,O-}&?{Ĺ ӏQ*VW[\L'8\#z)B/o8Y%@4zugoʨuъCDգG6mX}ʷq{:aݲM>ֹ(Z~JQ>rR$_^H{mmBogVyET0?&(6as S5w\}&2%`;#Gbc+JYq ;+39*8Bq6\-yJP2Y.~+Z*=ZclRԲ6oܸ.<9&ٳkO YM(9lٕDaVLaK&L&L?&L4Dߓ(X+D>?˹\4(F31Q2J~9]UIjؙS DlN,v1ef8hPB}ԉ,gŗ4Z5mz1l5KX!/{t6_;19ꮼSOӧeӦJ'~,첣 S_!VY'沭ēTSr'>&C1OY,CB1LEORjٖAϱtqŻb)$R<..lˡ\)&U'qTf0MOm?ŭb2ЌyMlf/JD]i _l̈́r;.w{췗]1{v`C͆Y FePz:,+D/oTԿ'_.XwDr1\Ns`@Pm9Ӹ#Vo[){pw~9ϊREن3Ocn?)tT:s|˻K-5rQ4.{>kVlKK&[zpg9QeG6sǞy`?Ǘ\m]DZ0Kԉw#'-RQ52qMLp2_~t?[";OUxIT*'ԖAKz;c\-n*բ)؇V*LwX![^Eٔ$fAL X-syI&nQ,Gyf7%s4KĢwn:{?_6ڴQom|N;>v업kVű+81{x![(%eُ63QmcǶiL‚ǎ3Z9Dwy"_<]@⊟Ek99EO?H ]ؙdf[yP2O~WĵK%{sSQ(E-@Bٛ[׍zZ-)5e*o#))֊y8dIΘma#`veʾp酏]TǑ~̶ȶӿn6TNP"NԱ~\lVN󒨦=C;kO~ z$3~bbC-t7L߉Jşy#QeFqxZC,!_$b2CinuF4X(JF<.Rth qݔvEJf4L4f7w&O6̶PϴnwQG}>u"IGu͇#(=PMJ1CcLlf<}_"?$_63O~ {I7R'inʡE\#O5"_S* ӞQ\&+Q))䫜[-hN2ПX&ʹ*kw_m/YictH>t < ^s|6ѵm[Oߎ>o'\0R%U"c Sh.'gVsh-cXDyىt|k 27NH'3q"!-\,?_%bk'xWa'[,>5;rh ^/Σ2Е|!b1V[d4 _\|qeGw^{I?搽P7vX*W&Dzx1md'"zN,=yPG7omGY%78Ob9bh'g.`oZ0=EV->3]̫bKiop$5P$VQ?DgQ%d8OiDL9͙xَO8i={oաYÆ=qߌ19 9+  ̥NTSX&MeSmFmĢ$?ɿO=x^='?_.׈tWaZ/آ_Вq<&Vo!?@~|QdXYR٣}W<1]pu:_YƁ}C}[FS/z 9iTe(Qot|S?_LFNx'Nfw09[xSaKoĭ-~>@G.cQ߬4a=Ʊ;j-eeUI'^}:vTtkC=ᄺ+R3ߩXLVNƳ*^ GxSA-\qN-L)?jLt?ORWq8mT QCCsefGb D);2W, hDN-U-6m-wiGM~َl_}{f̘llY!٢_tNcދY/Q254LMOG9$c6O~_g?9ٞۨ>O~_'Vq ;*I-rUVYtRf<[P(yB4|y?(Ή|C?/z(ݶ߾j2 י3:F6ڴ9er2DǑ/aq1Vٞ#)Db̴bO:7K1$)w 3̩Dm֬gSo=wءUӦꙚlYG3yrs6w(`2}arҎYbUK(Dǿb&IЈ\(`h+'DzHl'x@_9{KQee[|8moſi򎥐,Y} V۴jOFUd3)ϝvEcm[8x߱ɓNھm[%2o/'Lb1U-L&B]Ugo뾿ᶙeT7\R3ɯzCq/3*Loq/Ux@M3ef-~b4(]m|(ꩼK6Lcٞ;aJct~K/,nm_ǣ>jР6͚뒊|aWnJX~+\Nư^0gEU1^~&ַ,XwO~v:3ɯ&xV(0m؟)'EAhPva2b{h4N2+8 kΜW<ҵD4&סi,X׊cSVTi#||}?,[-4Hh=ZLm&t/D0BxAC:>Sbi7v{2}[lւITt(!Sh> ph%m4s ۄW u7?,zj7dy7?}G->=nxk>^Ik5tYhA-Zo뿭ZUB}UpB) C?Nҡn]JI}xH&̃(!?5x*܏Qןp zn>E Y*Lěo*S,xrDJSX | nU5W_=ի{S+"QJFDH#!(/}A^o/V|aooǨ-PcWT Lk N: 4zBP1==us2\Awu.kբ4P(QǍ^K. [}eEaqo~mh8gX|̯ J|?GӠ 1MifMɿ? e/ڷ/g4#u^/dbt`S(PQ|?43( \>_ѳ6 )I t,ʆBW>W h; h:Ac-32m5dOvnv6yr)% = P.J+=wH?.6!['dIaj#1GqF"t%TgpX[I'y_RD\@|z &C |j ׶kȰaMߡM#5v={z&nGRN8×3^h [Ob#|C*tY#1`Q;<6 NL) 3OTo#></ ߨy]uƌWߢ?~6ĉ VԂ <(QϗCv3Jd .6 [o'\-cQ? xdFhLS/Q.<^ ) PTSG/M'R8x*t@3h 47gfС#F>s^?Mr?vJ)Ix#G ukϡZx? z|M4X?>HhT0A}1p4ʄQAgVoB9KT=B5kvt|;`̧{O X #5a:,O^{'3m`<<ߢ|aB/ԁ`'*{0T(+06&qW:uz=OxĽDx$qḦ́TJv8 > O9<:|o@H{X,ϲ@24 35*}"5?n4*Kkx7!ʛ{OhT7T|s^9s\bp8H nI 9(/􀯓f}RFs= 7hG]`yO[#'nnTMZ?8bD9($FO@|؁V2QJ1]< {uGA/\8MbE_ <AW*HOA}l4J|鐎`*|}`ԇka%چNBypK;؏]ĎuE6R42UogAQp3@ɶ>\ړ(DߢUd7_0^+} <.;`!|ͷyh+ZCѨZݺ4r~ i7o- Ua:G- %~5.[ͧ0l QB替u#mcdy&7z̀ i!(cqtS~tDoiR9g@h !hR_5Ђ狿W^fӉ>pD }4@&“h*AO‡htjԸGso:bPٳ/k҄?C<U !%RC^ѢE ?$oLH pBg]A;OPͷ'?up,P0*`315kNѣ.\?81k2RS>a=J}(.EO;RGoohYdy?` ʂZLMȂ`=: cМRSFxCCkJ͇T}|E!PXG u'jպWnآE̘҆ѭAO]xog\8jaxl}3"7(~Eד7ͨi!3@~B=?Inp'~1RV# Q6*/aG)C=\E^ !PhD?zMIڵ[n9yE+!,VZ2xpZJ Q& = 5`؍os~!T]T' ~Bg{0B|!\3t O&R:?_,"Ҵ_{ Jy,/T{94'mԹOwnj9xq#PiYLP.g4@bϷoPO^Fv>-d\w $# }? /]pY硯Ch4g2/̀y" 62F,-z{P Eeu#`-ghh[wj߾{6uލ/+W?E"(Q4R:1G`PX|"\LR|C Cg:}>n6oEi.ʫ?o#JbD~C\@=ezt֡~ұ^]ѸqK[K E~(s"25T/ox-.@^EnCR$7+GZ }Vu `!@yMD۟yD~I 7EtQ]aJXYA@pt_2~|^h\֣o}e*8=P_7W_P!QfP]<2~˳|yttTD&SG(@A\ L=Mp M`\XYg eA|CR f~„K⧓'7^h wxa< d>>5_¤Z@wAdyz'h1j3a(,Aq.RhNNB7ş(>E[Rõ&T!@K C&!{Æsbĉ˖]j~=2Y~>NE![̧KYt|Ϳ݀GZ,H|zL:eD5 h-@h 0/KC8yE52.o|:,p?bFԳQs%7Oth8ŇUM:zH*";_J߈W-Oa{a76GZ{zͅPi7Z9:F |F"E~Ӓ67 hexCv?6|in:nxtB4 O@>J㛋VLp)o+4}!|g"o~!zA=<Ϡ/h4g2r o(}QTLԀW~nE'C1yȀ^0^C9yp+zMa<<PAp4$fAH!Ȅp%mBKX|i>|y=FH3| 4{&lyWTL+ oYj>F9pYJl(6䠆pA3[q Jeau[|+墠iq ]HFC$݇LΠQx Ysᯇ?5|p# kP.$p>'a ZF@=| !::C!+˿.vouȄ0C4xG*^Ȃ|4&\\ ."7Ϡ;i ɧegR3(c~=.5&AcA::Ыh2$id8^;PW@GEdyO=Ӣ2#7,#;|`3ua,Mv>F P:$N|,idG CSOoM/*t%: (5i0N@9q<<'|sPo@!/mh'ZBk|&zxb{h6 p "Vĥ xJFCPY*: uDg-?I;$Cϣxʽ?߂i>ap io'?*W?޽6 W@E| p D/d@\Xda5.@W+\d#ϡ/-zF_ց X@ch$%dq. YRg4~o^QO<B4E7B|\m|O IPӖVGdp1 j no==D%C',Hn\/iA/QC<vXw2=!i`Dg替>Ѥ1VÅVDoPxb_0[\l>/L_:q4څ?O `'ZBUʍGɐ[!^; 7,.Aw,-oh!d$EaZA|\ad'|ʛpD^"Ηxŏs3-CͰyh%*L Q2+/TP>Ai>pr|\|7?#U`:ޟ| =nNBg Ϣ]OGK$RFCJ|N^ x Ysr7/P/< @s>@ `0TgXOPW;ޟ1n %vPw{T^1/eRL7(44ڌQ jf?O"|q^_^D H?؉CߠGhT0^C9ȗ,'bj0XDyP}!~nxn>tw(1z[֡+y}s ^CI4/Te(žO`y3aZt|7$Zp`_$D3rgM ڎ@l7߱PuGQi PbqC:<5:[m:\kaE`:agP/ ?_7YS%?m|ρ[H%XKag*ljq y~k"b* |(1?ve"؀_o#^h !_V\<,OqO8^ooG v0Gߡ|W$} ,r?Hilt|脋:=C 1h^Hp,OpYS,KeԈ&d}h=:8>Nb!^{|߃ :X(y$=p%qG3"otW(ײ t J;^?@ &#7v\< %zhoԗX }a:B8>Nb<3k4=^C+tl~xY[-uk'WQ} v"3>;p0<'v_T*jLn+/Oq}xqQ)%~R _BpBezAev#;^E4wAx< xYs+[ w7|h DaQi>N<w'4?'Q⚹y>q%Joi-AWZZXwx - 01.\<,O q7=PR I=: I8>Nb<7pѯ4ُ:L運/Q NY6(7} /tϐn\<۟+9W_7Ԃm@GQ2i>N<w..,e53!|z -_Y)&ڋ8sеx2A`yſ#?zKqoq,O\M{p}| Oـ.'~O/\||40zf_ցg.0Vx:؃,`b-<ͧ ?ĕo.dyB/QP{q}v7 >J|q775?C56\u^oFB 1b <ͧXT|#*dƏo򌥟 Q?H"xh0K%c-Pҡ4C )u. ڝ73 M AEJo\| v_*e*@X*<cBXQ@1*.V#|.!.7|;b'؆- dyOoW{0|M򌥏w4.Rg|B wb Ϗ`Q1y.Q"cL\,Ga zoq򌥏 w;QpfT.7?eRL7^T5't^OYX,O/p[o~8 xNɬC1݃mbx7?}D7B}/p /TYH|̟%`y V7oŋ(nP#HF"9:[?i>(\%H*xfNoCĉ͇:*`?$Fpx|N `,8$^y( p,O)-6-7Z%Ḟ'_ƛ@0A;ߏ".M@|7WxMoP(i qYs?aNj?+Pǻ#L[q{8xOh!L/{%UGMdŜ%+`ƜsfP1(&ssN  V~^ow]=G nB{3*?OVڏ}Уp6mA_V2t"M=mٿE OT0ʖo~JZ~@'jB~?QR2C=-n)]0P')JoWz[~pX["')O/Cܧ} Vo~~0!g΂&'J!~梓`0 4=.ES`z9 G_ݠkoDЌr"Z hNRC~u9">S6?L/%"к:f!`i:ϡ{DiN0Q LSAjߓO"گm+t~[!~~GӠ"E>SrI!߾}!œhߢmi É0}kЛ*4dl D%J -} xl?k1:kf*}R Z֡欿 -,mN9 e7u=iJD }'c5O'Z2"\x-Ey&a!J_?Q>0΄PJe0= sP5?ط %A'`SX_~[nŸCJ}~&z,'iܿ;jվ} œ bT8GMγΥZA{DiCgD(\ob< `~_b,Eӈ]a"\uhrR@S8~Cط5">u/_|F9{P=nCkPKz$Fdh!:Np:܇>G,kYby"c~<QT_6"/)ֵo~q0CGug?XR3ʌ'J 듄!p8LG*TYGBmh~}2˳u_v[xiTVo}O0J} ?Tq"qnH9o0|\(O&O/\E"AkS4(c>" 0uWur^D+!0@3B~O_s6OUr۷f?(fOQwb(<3U>Qr?y\1ڏtQ+~kJDP_ðo\aycVoJi~Auw֘0{B@6yVBWs T>Qr(e~`7Ё AԴO/C 3,DgЎ+{?LQk 0gOp8'_` ,E+ga&@I Tח}O S-CǾ[aNiY| Ps6B8bb "䟋s"y%D}AHo8 >{81ܾ0Ch}f4QACy۟I}6+B-IrD E? 5"J ShpZNp<֠l{DAC__C9B$Ip?Z Ob,K9}"Li"MEC=HFf#=k0G@-QrO~鿏Ά4_B?"o~RGCh}`8F_SqАjoCOJPȒEM=IH/0!c"JW!t[pSt+:v t^wa_EQ"(rϪͻ(0>C'1Tط4>eC?GF5۟z5_Ϳu!vPcE|/F oh1}_QM9۷_ OjC`&1~BoJC@ig!ƑK~ 0|/Dj켈oE0~?w"ozD!> hZ!o?>h8ܧ}JVJyh:L2: e~=1PO H{Xj켈ogڏ.T_s!'s6z6j@iӛ?T˾ٕ >p'҇~?]H̎)8NX 9ߌ ΋( 8گ&)wB۷1.Gɕ0F?}Jۿ*ܧ}\j޷߈AIF'5N_Q^?Dj(oq گnР"o\b\BS:X V/1T˾;+ ܧ},FY_YmKbvP6WfN/#g΋(CPݯ1@EoĘ2dȐ={Ց-`WQsG!o.Dc}'| v|Хw O%(c2j򼈒c^ߣֻ_xbFEoq O1qva-իW}}=R;9 %z^]i>7DR$1;j~_y%!l z# ĸ9}.Z(˘4iҎ;8t>}k׎l byٷ4 >%FdD-נsdt^~9%\DPMQr"1ۯt>4hpEFPhDN;4|}oߞLHOACeD}v+ '1{RF$b,@5y^DlDGP͸+<ꩊې,ob<'4Dˈ#סCR#i?JۿHpS"4ðo5:D2z#ME("ʗ(sa:r~3 $:zs+rEO!(>Q&7]wuȑ ر#-J~V4x^ߋsOݎ\%}]$`XZ0m6>*TO&ϋ(o78RoJ_@göPGg} O-n6zvԉf-J۟s8OoPa D'T;5} ´Z=zb܋" +z MK>\3w%(>Q&4{ǖ[nw҅&M JۿO`Qz¾&$85?]>0=Vϫ+1.,E=1Q'J3= RT~ߞoBh}LNcnVni׮]lJQe0˾h3Fc<1Cf(~Kc[@&rdjN4!eh:ƀHQo+bJ< qƍ[4[nDI b|R=/!~'žJ ?59x/b ~p))aT(FF6;QaKf#Z((Iٌ_4˾ʃi/2t ^BMcb,@Hh}+T~CTY>o =NɿQosb|AC~*7yٷ">SY+KbNU%$CyT 1A:4W #LN&IcG:FR"7b,F%~|KۗݸW䋔 1[}&%y9h}>s9r@XR248ex~< lKPo1~ #{ذa;I 9hʃ˾ai ?5IW'$.}VE![a*׿Q9(.Cz Sx -Am@Sa8Yvi_ ƍP>JPh}}5j!Q? i}#~kk ڋČju<1fQcb u8>`e:%Fefܿ=4YhotI0i; *jI}j|''0ܹ&l2f̘qC_ھ4aWFT>h,'%oi,ԍdϸ?3Qc(Z4*oDQS;u2ӠݏN-r.\Ϣ(1n@߾FD4ݻom݄ 4$g b|}air;~ٷd4l #N#t}^s%'Ah٨*=aYvyT}s+ ۿ}Qy,-D]]]^N;5DIPb|R=/ >} FoԙdtPrO#( 糈0D? 騙3#U1@M7^t &k:npIp!Q`~9"L7O k׮_~#Gm4$g1>Fi} >Ec7BbvO,#U(rT> Ɨ(PWe 5!@k_/_9<p z nlb\ {^"2;vx㍷jcǶܠ!A?ÉJ_O܈"ko:t-H2: Ԉ߯q >]T>d;hgvp(<@]FR ݍAy eeZpTo[DY3ѵkAm6:%i?É!Jfop 5F%}-%1}n@8qxa&Lb:î0@3Vt:'".t$lBtpz{nACA˾aCdetud=z 2dv(Q3Ҡ!o1D)>X}-E$ F׵0@&WyAa j?st':6&k:x֠ {1F=/?DU+ZNdG}}}>}.T3hHb|R=/G ܧ}yJ5[mIb&w}ވsd:">P>G"aעɍp{79dMWq?*To0c /Fw#?ѡC%i?# {?'JS.ط$;܋x3aN/@DEs21AYsԓ৿2t;: 5]a\^(~'ƕ~o D)ЍI1C}O"Li3E`~ h86,D! *>ʷ0cye8k |nC@ ע7ZT~.$kK0AKY^C]4ʃ˾a&Oc?цطj}ޅs d5!>B}j<`3e4܊V6~!܊~dMw Go\HˡkĘiYO3a4XR=/テ>B4g㿂gp%P.}Eq(`pZQp)uCt :5pz+|oߟv}X؄I+bz^?]i>X1 W>@9rɿ/rdbtPyLs;ї?C[ЁЛ?>/&e@2ϧh&z T4z^?3ܧ}÷p<޾Ѧ$XH Q!>AD6Q-aK s7?4 ?c/܄E y 1.EoJ%:I4hHҠ}ڧ|D7[o?{7t4Oc0{A.GT(>?C]1Qy:t& F4}֠zoD'YhjD5%ĸ ߾;aBϢsa"iJۏƁOo?/I4LMn 2 _Q6}.E Aٟ. =Țp@u oLDPC$LSHgJTks0c}ڧw/CH xp?#yߕ8Qyh/Bfo@ްYK 5KLCa۷"P_C$ͳ 1ކTk >=uG}H d? yQ <AVn?n@S;Y["EP_s."t= tmJu;O4^ 1[kyf;1NT,R9 q8 R~z ]ndM?8nE0Ba۷_8j")1D׾a7p)ZE|DQ߾{PQ*TKf EDue|2@j~AokdJC61yU46}Jz-Dpo_yАb~_Fܧ}Jǵ ۷EbF;fyf@B-Gtt2;J_^GנIЅ, y]|(l~zT]AIߞT۷4> D/(olԍdåT|+ԑ _&/: :Qcaj~^GW ЙG3J <(l~O! ԖفoTطJAOh Rӷok4ČQkKD !Pƒh1f#l؂L(~^AWЉ;Uu6}'cjHPyۯ|'ri }ס3hנzf䞿B óh1Z6|h ΅Wj c)w/P+޷?sP[g'bRc0;OÌ+/9څV0}@i:A͢+Sg$/]:0Cnaz@A?ș  k%z]vc9 s(i~MPK SyАjテ}'t_i~v$f7fDN􂻑_/8\x.ݠY3{ѷ(ڏ΂o21@m]2J5}o l>D& - ']`jE] @tK`9ÅEKÅ!pEߡkDiP%s-+1^BoMD}'n/[mEb&Uw-"hDɂp.9;z];C{f((~ gBQ۷_mʃTط"̶>/|'*[GhAA=i-܅V6_ANЎW?oD9 ߾m6jFQyҠ}':P2m4L%HE>HK2B =΃.{T~ Ca۷?xǾwaiMW3A$'@9 ߾N4pDg<1Ao"hp =&}5?a9*Baa< -CԿaNo? wQ3OTط"(pznQ_.ط_K03^@EE?Gi0m,xj Lbo%"É0}Zu?* Rc0#}'>n~>$tXr̿ 1A!t*"k`;8Gп0bo9"eFi?HPyfOcK۷_3^Cy߁|=z #Țz΅'r+"IP/Cd`[8F+Pg1Dio}ڧwԵ߾{Q!8VBQ}_@Sa8Yvs)4oN+D[۟zRϟ#i䱿E'P= |^x(f~AȔ7LGS^x ǾaO_9߾o83CBe-N!dM.gJoCy3Tط ">a&a,dVQ6۷݌:p Zο?1B7t< c\C+~lD㠘f_h:6!S6`e^xT˾O+Bݧ}"_Դcas#JԴ߁s,2}o5Yt+:)[I Z'J-%۰oZt=H2:tԀR1 oW.t c\^BPk~|p 3}!Œ*_)2NGѯ(~&yٷ4l>%.`߾v$fW8bF>߸ 5`,\^FQ׾ʃBoD1tMtȎ:΃g逸٧Ҡ!oJiueWOطo ']VyN"L*@B/ _B9߾7a欿.=vK+h5jN?yٷ_v>eFك}Hx`S16|o6:1\WWj~ۏboUDBg6PGvtIp-z54hHҠ}g]Z:+F@=ws&1Gm>E0jeߏ}sabo%D]!<4Al¿(?6yٷ4l >cР"[)5?Ϲĸ BB+Lkh ʵ+߾aBy9(JTokDM}IPr#1}KUhdyy.B?B3!Џ{MA9߾a&@yAw#`)Aߕ}ab۟[iPGGFl[j?3ܧ}֕ԯ+dDa߾*Ц$H%s"Ъl@ ?"kz>p#uk[4 oC0CAoPw ɟy(ڷ4i?En#Y>o~U8DB(Q#œ .dMOn+C~C9߾a_GЎ|_SG~>PD`d}@I UVDUـ}Y El6yZ1۷oG`kPTkb4OT\2H۷ogtϣj֟s,t'Bo8fk@~>ۯ=?>h8߾;aVߟdN܇Rݯ}KaIX"2H۷oԇĜ+P|90G@i@oFdM8nF ??׼ "́P^iު݋A½(ܧ}J۷: WQdeͽ5-tɚ~p0D ??ےo򠡘۟s~fà?-ƽ)cRD>S>۟z ٰ*0Mxw\E{B< mCgW|s(f~gTq ==hH5}?"iŧo1ڋČQj az]&CW?oW3,f~oD9j70 ]H=( =}ڧ|8`%طo;P7QjDw5z]&Bf Oo o0ӠWhHUAo'D>Mʼ|߾}_q$f ,BV{fhP*MdpF!?ۏ#+a΅9.ĸǾa6i`E[ܷ߀nFIF{ E{ fghr4:5‘p'c~#0_L2D s1BoYAOĈ\-۷os >B+K24:5h}߾}aYLEĸ~&Ɲ)c~|ܧ}O|7Pw=H2:™D/KK1p75{~#}0~ڶmk۶m۶mۘ"?y={LMRL%5SuOQ}ng=R9hx?{GGP9>^DC; x>gS`MY 6$(`cH\E*uwǚj)ęHړ;dFQu}VC}[A* goRg6O=nnn5%V YϠ/)DFRuV;&(ζ`En!K6S~ցO+rd ˽LW'-f) ĉP v{쳞^ \A4}Hק c>uk}2^_Xn p q=1}G g=~_ROFqF}$z}W 7+Ap#Q>zV^_W~ruA}I'w2^_Xe%8&~"az1lYORhx?UG@PQ`zIW8pCLԼO^8AqI* R 3SO~Q1LX*Bؿ^E lYOߕT&kx?DGGDP`o|d=^GK*Jؿ^ߥIlYO߉T#ρŹ(N SO~&K ӞGDaz0Af`HAD*w~2Aq2O=Ei3޿{a&p$ʳD9T.X?z}ɋV?7xg^_+M0-XGv!(`zIJ*w~*q2}wڔElj?4ا~Ryhx? GGlKL#?qOM,z^8} ׉s\~e( >E"?[^gHeCO}=*6~'׏^1'%L"SO+9Z0z*Rn#'S_7O4I6_HM .#Q>ᙡ]Ώ(z^ߋAeM8#&_T>&ϑr,׏'D慧 _q}nz^W\Np%9aCKg_G֏^5:% |Ag_M?S^z}1Yq}VWD9TΟ~)]> ewDAz}T1\B|J[~vRG4c sv~\o7(>iO/[^W:Áp? aI/K*gGX;19 9דGg[^(l goS|Jy}T& xR9|?ĉhO =3?$-^zřFQEo/`|O*gP"k}(z^8_A4eU8&>_>O 3[?$DփS_ʓ!^7 _W;\TѰ\J|B|y"NފabNJaaECwz^AqV2,q<AYWAqƂ}D*zD0ش2>g{>^A7baHk緙723'Ir*ϻ{P"3}δSҷz^8@EKl "sp5(Aq=ĿREևӈWɄ'YdE'A@l@,F'O.^ugy|!;FSE=zKХ>n<=YщDѿQrȻ^;wz^!Y<#drTHxEjghl?ۈє0϶{=cz^?$҃:oȮ&v"`+p߿IP>ӃBO[ ד޹b*Yx^gYBH @FY\?g-3IhZ?bkJdQxy=ӡl[rwuz^Yjuw{bTueb8}8hT?e) {>;;ye^ACm=bKCv#% \?C%(Ά`g'+:ӏ!bJd/Hfz Fnɺz^gx Tpx~OghH?s`WSU^AR][k`(. #\oU%9y??vDg WZ+^$tLLB -ȂAH:"(6`&+: w?/U)U >Uzr"[z^kӃ%`<߈}ũ""1 ?Aqvo=\[z^Oqپ8e-8'H>M{zp ǫE r@bߟ8{w%yky-ٲ(+Qa1Jb '^333;Y,Yt;K=K=zg©}vUFsGvWa U+Bu>4 7/ ;Ȁԯ3wis]Ca?]z~HS,G\ILOy%dZtU:'pݯaiWã~3uz^t4:ar?EL>/&7MdT ~4Ct+ɋhb?)-!z^PAK7)E GÇ_ȓd%]~%:a_H&!z=[I,(z^:/>ԣ_Eq>9^Er|$(.?$_)կ#Av ߍz~0\A r8B?2)'Sۯ4 xbd/!zo/*} caz^U+jWp   K`@ 2b?|jkhҙ!z^+ B_ȇ#x |D `P_o4 l?4`#CO& z^_NQ?h,O 28u=q;hio~Sǥez^/'Tg. l$')rLm>LΟ緄|~2w b?)!*؀{^+P/ɑ0~d'8~J!Sr.%qwi~ua z^ szr5?Z"Cq{Bu>S| IXG{=k:叆z^_E%gn#x3|b#i~.(ȷkb?SFYz~  wlqF]'?)A5~꧍ǕDrz^ׯ!TgG̯&aOp)YK&~\D 2$ GO'\bX^9hؕ~dG8~L&Y˥'Bu> SX B~꧙YbX^94x}Br EQlCo.W LUM[t??`tz^9soc~5r=F2D]?h{i]"b?ճ즲+z^'Tgϙo''#8XE1n.&>߿s='i^b?S^P?z~:;5"7fLP G=YH)~z{z^ׯ'TS??B~C0YB&RV יVd6 %H~{&v.3,^zzBmNKZ 7k(E&RϾ+:>ԣ_O>O'sx=ݣhSz^H@{$e_JN>/eS22z.P /%A~gzS ^ktͰx^ z:OV=#Ͳ&X+} ֣U4[2S.DIw^!lk§_d5_K.!}PF&xEab A{%; udS.z^?$l8 ~M[Gq0\?uy7hh& „3 ~Cff?zz=}Ӳ{Fzy&5i?dH*YL?t]cwz^?C@y!;YJ֯@]Q7G|."S=]z^\Jq vӁ=OC]6y.Ea; 4pz$ҙez^|:=s }@N`s 9)vA~[z,/~Y3-^ ~G &3 F<|}l+dz?7iLՈiz^ׯ'W^;vb(N0p}z9„3Aa?zƈtK?0c^ȏ;afD.&kL~:ˆ$TPhz}sA^WyJ373z^_NA>Bn;?KAu^#~kAy;.z^=ir ̥̃R2Ftw=F^GmGSt;z^<<xo{)?k yY?hx'߶ב Gr=zz'w$zNz^&%of,\N'Մo4owd6 r*l$Y^;~(/TL/z^Kə0v+L/'T0 o:„3΢zz=c+z^ד`/Mr;~~;q=CAn#U^uFWvx^ɏ;afD.&k(9F fxnx xLb=z-`j^zrX@GǟOAuc?$T0sC֣=u(z^o ג"Th1*Bu3? g6Q^^z^?L~Nٴ)'YEsω3?4K:R=z<^3^z~9fG8~I!U Bu>#~^3af>oh^Oz^Co zzlO?a2gM0s y aXCZ_׳޸u)z^"o0v>gP| F~0sCR0=҇z=_(z^^\@q<,̂wOOPOKb YC!d\JS^g˷ FJ+;lzx^[7!}Kz3BuN #|-:oiߟGk}ozs(/tz^O?c`.f|$Kߪ:q?_G`zZbHXAz=ӈOz^_K.%i7x;C|F߄q~Gf F>ׯ)P\Gz^3IGYf#Oi/RoPoלF̆ߓA_ӥcg]z^u_i=gɈtHAu^ ~i:2 zw%=z^Z9fn'|L~LΏsHA0{/هy=H̃Ku?z=c+z^'h7ŀdĻh~nϾp?颞hS^z~m on/z_ȈtFAuk(XA1KӫWO)z^10v3>%ϑϱ0m~4D29l z=X4f\1z^kɥ3;oɔ(rfw0<9&Cz=S=z^IG YrybJ0r>1 ~&oA^ay^zCşMz^/%gy]8'u ^d Nxb^g/{ y B |z==fxx^zCY(z.wPW”kh~2m^jQz^Ʌ",x7ܿ"_E]%#u?:9Vz=TN銝z^Q|BWSNQɈy=@a E|Lݓkz^gXK3KˣyԿxd8LE)-z^ \Jq ٝd#AACKSZVP^z~;w[C )"Tezn"hwód?/^Oy٦)_Qz^AS#)~s&ى,YG%z^_Gf !G ڮn '3gztz]J {^z~=ŵT8ZL?FKz. si2^{եņ{^z!sr0̦,Od%g / M~LfT|IQw[Ud> r 3y?z6 Ř3Lz^oկ"eYn1b4Lb=$; _'g^O]QcE߼^z^+&Y _)֑S&SM g^-ņz^zS ǒy8Kή _Jq0 RzV=)K+Lz^?ŏȻ`fդPwQI,'MWyƜ*+< z^!(N>Bn8E{xF'K|Pz}򥈊Bz^R\K8Z*LֿѰ L$aOM׏K,]tz^a6f!,s 2)/:;DG.'x^OWtztKz^<%d!f6?'SlO ՙ!hA ^g7&iz^(J^C9N(֓v̧A3qcLgz^?F~C9QrR2WRjgd&7H~z=hKZ֥z^xXD)_IΎ]C s< zʋ߯(z^4 &Y _:r=)l(y Imz-]z^3?Er,K3ȳdU~0Ki^g 6}+Cz^ׯBvt=rjBufH|#^g̩Ģt\z^zN=Vn^E]v15?H3~v^SQ=fVz^kL؁ n ^gK]5ҁ^z^ϓ+>/l*&xLVzu];iz^z}G]0vS@U=K,!k$ޯ^׳2NՔBz^o_JN>BJUG.wI_^{4VW,(z^uZSLrjypElrtY^z^?i!a6zn Abz}K ?})g^z^oɯ R,! ϩzzP|Bz^׷o 8֯Ez^zc&G&uSX^3fPE^z^ׯd zL#*z^zVMFcb zz+֗Gz^z$ǒ!SX^K;`Vz^kȥ?v 5o ȜǶ{&V`fY?l}z?WSx~7=0]b];ZZ6}O}O< Yy>pK'eJ->ϩ<ϧ9A><'큨><Qڻwvyy> Yy> Qܥ|}h(J߱cwu,Yxyl4g$D!ϳ/҉8vnG?VzyyO <7cu{tpK9Q@wt;-n=<<ϧzl<ěq" E[F1y Sl4gdRO*ry )&V=<<_L l<7 +O7 EM<1C=<<_8jA>y'([|b⪫n4K.U?<<ħ8A><'GQ+FFK2x(yS ŻNg$> ޮȿgO>~yysu7|{wg& bĦ'9s6s׬M=u͚--[Wڿ4<<<|R~U9YhL^Y_ly2}6u,Y]yyy$D4˿燲h4d'.\dyyy@4~8+Nhl{ĞsOFyyy>"kgtbJwƬu7X*d<<<'UmKhǿoz Xw'#<<< F, '|5l yyyOڎ%jY6M, '|7Tcs穟=<<|t1pwA=5|[RDdyyy(@L^`F <@1q'<<<h5HyY,85 W϶m{=*>CGOA209!HLU '5kP$f}71 p:Kk >"+r'Ӗz?@ D>[ՆRX´jL5s}jv#ㅤ!h '+J  -[T6:=\AbP Η7mHݴV}'Ms+ko`6޸ `mX惑(`iS ]i;Xffff23333[fnW̌14W߉H+N6h4 V v3#l㼍ښ6q9$,p1oz*x[VPKWffoۖzָF (C+xGC/GcpBK ϯG-w: WdoV'>uHI1AR&M<Z:țc'ļ1"q` H' 78QD>7ƭN)(#?LcB۲>$ZS?L߱Z@y@FgxׯfwS9K&0k"ަmOȅt-H"kW^q=b%oTԃ7[ÕB 0CAY/#YUTRsmjo(C~xo Հd [駄+BzN|~sgξ g82q?o-PSUP E>Fdtsez:?5Ǎ5N|l L"駃ZC(8B_Z&j+lZgƱax|phvEI|0}4|;S>*nG 7#G7 f|J<0E[$sQ^/f EyA?Q#`z #\Q):!4akk:wrZĉnڄ &=~-GWHCB$~PkM8Ƀ{x;3}BuW^i^pff$Ν67ҰQ޶maq *S_xrD3>TA:N]|fK9lI o-5!+19N^!(tCe&ì=v82%ޕ^z&?H_za$K1@EBeepH ?3}& qE5/ES-Srʩ(a{]OFӐ>UEs35,9oTa/}Tn/Ҍf|JI AORMR /+xN ] W~͵:2u?ƛHqd"?.r.ءyϽMGDK,d?t>T>TGu?HkĈ.};1\'<ݰ F6 ~DGn/']F3>T 1KbKWs o-5-TX" S| pXՃax?~8A%ǬǟfGGtMiSCxl <,FKشsΣd<3*L#T~>RfE\n5:p#frpiң&L27iuF3>=9-[~DC+xK]S+Q < כȣ ]2> ֘8ڻPHV]ǟri#zUJBhX00Ӈ:A{L, 96ylW%E}QcL/t=d5w!$n>h&CO< i7p<Es07CGn"~g40CAN/,w#o(C~xo <]pEpuCh&neL "TUC&cHD1 XL2Ї(rAxY_%Km1БF_H|C tc:aHfnbFq3 ܤ_ x)T,C ޥ)7W:6\ 3`zwQ:IS:A{3aPe40ֶ]TG};[gOF \bg]]n}KkC|c9f=58e*&n7R E?)7Ir~!,>'?p;wj %D@"W Qk }'6!<0{F+]Æ;~[#1蛪f>y@F<885- ڴtY6*ٴ\9STzo&U$XtCbK'!AiҌ o-ZXhuLdW< sWoC'>tCwD~G&'MA> JS0P|f̤@Sh*LOҺ\Z_0Na=eoP_T1IOΒ%s '_&SbdR.=7Ia 8QcHߐ^[B!5 ]Hh0w03C:>}g;21ѥ of-xgҌYnHy9ϬN蔇s%|XBt]1V|I~?߈FzM#t b~іNCtX|{iƭ7!?2B"8VW~xϩtf֧UfdLJTI+V #~_}M9xȧ{ݜPYfυ}ûnڥ]xQ]ڤ[׈If]~o$D:<))757)P{" o-5AHW]LJȔ8eJCy=v[ӪbL=3&Vdu D3odiMxyl#ѺS>7!~ ߽4r|0:J5ڤ)72/ڌhƐa7W \!?S:azɧ〝H?>$fݬNuHL ^s^X~M)+٣v7:ޥ[℉瞟q]h$ |嗙އ]\8M;sŕYO<ւ ?Eք 'J;8)yW3>N<KhEr2ƹKzP,*B!$SR2MEx#WqS*n|* 2 T>"LQ#S;W2>0*| .r nkզ&= >G|Wl! ޽9>G9" dfQnEO I!d_d~~78ڢɳ._εbK/ 7!?Ih&eWJ'į7iL>:2顿wƐ;d9 w=< '- SzBn6mƢ/qO>g υ?J( =NJXT za{zqt~O^p꣓5ϟ5nѽI\):{ɍ[ܷCq8aS8OYo(C~xo>!Fj_WN^oM7sNL^DRFl%?#Y׸c+ȉ4c&xy~6@C:$''r_+w}4-ؿޱs}6ybfå7=]c ?7;WsAq" 2\mAXeu7fUI7!?ԄK""?4uBh5q ao ݴ9go5Nw4kNʙg=˖!Uߋ?w腄UڞvhH%q˝Nڮϔ3"a_n=Hֶ}or5 .l:5瞧i3ִfy5a_7$(!f6|D&0eƇ_FPL\oyZawQɯ.8sQr-Mf|ɼ?HI@(= I0|C+xKm +xnwc'-L/Lv{Β%H.? (ڽ51<ɣyeE^!wk&d$YX*}A**^N'p:.RqupI_Xc b]4(xs34f/8ps3>A@~q : $g&uUߐ^[BBDRDX:A? S9ϻf j^<2o'sG <yvz mFI3f|`qA\eEkʴ4 ZXk%y\* ܛ~ THښ`ÇS=~z4sțo(5b.f|I ًC1<)7w3C6bSF۴#qkB#P RtoIQ:AS̛ڟy}SO\yšol(4H1L`_5 sd}l; a(Sp)re233s.e1cx>-(?.w~]*710% cg){7yngje`P/L:o7|zOWD?+—\%[Iʳ6=v)1 ,:F\[ɾnj5Dj3ru"U|\뤌J$w1rh,xSО[tOv>8_G ʫ&Da _}"~C U4f\73>)!?>^_|I'Oqcs~oXd7Ź|*TtvM.åYǯd[?g-\V4GSݍ'ðr}yj>D׿hswm 7 hSԦZ>/iPRɧ1'=>a2LJx9D':ycU{"@ϗ}wlZV m>4\| |zw{_# R`Ex4;"O$eBܨ_(Г}%>%RM6ӢMԞaAQQG gFOEoǿCECK&H)nj gYS9zdĻkG et_l{, C*+CS1&ymצM|p_PhaX̩x>x-?9?CEC?-W$nC׿3r=E Rl|Ɏę}h&k`-Z$Ѡþ:H y6^w=H-+Q e,h|"ڼ&amnM|@_ f'ogoAs3gx>x񱊆5OC!%xFZyZNȋcꦾtz) yrln-s:~%]=݃5]h*Gb yJ ?B,">gM|ڜ`Ym*T?:ugF7g|* P* ?+>N|Ph]uđzyuw!/_>vm_K HV|3 &#AǯckGĂV4hk$ϪHvFN,3Wǧdm8mhqm_\ >`EZ>/Lm[RTe~x#3>Ǝ=>$VI^f)ls,˺rW|KԍSRu=bZc3W15dM4(s5g{R$[|H̽kOD{/y:>`P-HmmH`^ox#Ƨ O_Z'upQ.OT:oⳟC/3z|Xr!?kۇڏrj>)pǗSoLR=~F,yWdm|=أM|4ڿ jSզZ>/(9>Bo7>m~d{ b%9 ȓ>2u@e;~3.4{>==lwtB&Ps)\ |V4(/쒉FA'+|ȣh(jh_jSԦZ>/hiq`otaÙF7k|dFC!-銀Z'$ W)yG&*zTo'4SsY)?sl"O%_59jG)iBSO @V0 R=ﲛxhCW|C zX}Ѭ<#S[9^uu(cMh=7\yRp%_C^SroJK9ǯ=_KJ4d >x?ъ0"Ȁ *+S$Xx=H\Ӥs3N/ϒO;S72&b:~cQɇ5!\x-|NHVO VxaW9^bQ&_s2lTr(/؇ok}.>W~;2VX$N,϶WIifZ?yXy>6MM+7ԦTG|z=o&"F{OE2('0|NH.h jN/bzDΑRFzל<쳼wo{ᅾrJZ't f%wtgj՞jn?ڴ6u|Њ|(_P%ywW4x8xh#/έ]eZ<2n;zo7ɮ\yY0WAʯ}?< k '/̙-D3>*z.>XݤXawɮjWgGaPwV*[|H,h?⏦V=*ڴۏVAm&uM|X_ ?_ x#}Ƨ2$G?b }eer|I ɶgs.*Kvˁi_|F6|/+$b;yàg}2L~w+VѠx1/h_Ѡv[G6 )vL4(Tȇ'louTECf>!㍀*vYľ2{E`WWer_NӍ7Ut-<˙=pQW/_*Acz&|]|]ۼ|Y?+V eA!/h[o`Aզ~iaOPmu"F{Osk*Mg4 ^ 94PnEӦ&OrkuϿk޿GMvwgȃЊl,Z̶oYrz&|]#5[)j5؇S~k֨"ag4SM&7<Ѡ&#V >6 u"F{OeLQDq/x!g]_wy$Y}RJ6|ڛ,zBQɇ5+d$md4s5EMޮ :;aSpXh0'6|@mNtFCf>!㍀mXCDH4DCʓr!/}!/#תZz#ʆOرdMݯgqj>I>͘Ƈ@6^w}塇ozre y;GS't|@mٷ4cgO8mj{_!07|uB~Eq7hDC+;k?i|ҥꋺGbS&ީ:PRF5nל}!Cmh #c$ |WZN<|{T $5z -!>'P{GJ1c%eJ|]}ѡnr t?h6Y0,oI6DÆy6ŋ/XѠ&P '6u|Xm{:ox| >E\އ~|N\ϝoЖRFSQPmz˜'Oҥy Z~d=ES9s[I Aɇro︓D?; RL4/nb{ 4`/ ;{jSܛj'2!o茆ȷ}|Nl~ VmPOXox넎6Rȇ x|(:O>+-['rML9" F_4eO^ >y,@I_`=~qQ/ui:4_mgNGS;GS;M|شFz['t|XmC{^o x|GZ'"ߋO`xiYyn2{C-=rϿcN3gpԃ8Xϵ45A͇5C3P2lfS&|b{;Ѯ~;&|ش+kSLJN4(W4鋯hu?>࣭&Bxܔ'&3ny{mO3Uk˧sLszR:~5ȵ}ǔq'3t| _{ xV4ڴwVAmpF6hu?>SќD=3rVLy}Or?o$uYk˧v&j}Y|ϨWsKᘱLK_+t|Ì~ͺa_0H;{&t|@m;}Nx>ax|U4<||RpX߼.W},omM@dfF|%23x-==ַr)h߁+hAF|̆AP:>6!?: x|91_|:ďLtB,.SMH`@vv_duu hϤaE~)soos߻~s0Ѡ5/=G|Ex4[ez+t|н ?hpox|H<ohEyn2+*z$u¿ꈣ:>[/NͶN~fNlz~IoaGg4GS; &t|@mڭVvԦM|@_`o !07|*cEMDt >oucO?o~-/|Q'/Um-~38BZ|z~Y寰[`@uM<8__bF=jS)2F7|*#47Fo'&|^Tw/'Lj'OUifܧ;p[hqʕ8W5 д-<h u|Ì~-~DMX>60zSt|$Z>/⍏"S2v\>9%O<畫1UQ!l7gbxu§la2R'3^~sj0oiߋM%V4ټ~Z'xGS^igO@mTʇmy?>S*"Ԓ5>moQyn2 #AS?ʂ`#=e2 SpoR\sj~7~_yXuMLJ/3>>PNa1igO@mvoy?>SkX|[Ny#fnTˮ߳t)W5K鋘~):0%[mMDAfڍ+i#^>i#+{t|н D։o>%@D?>-['rM|>>-]0ﺻ`Xz)lAw*6g~47蘆U_]jT %@)cϸ(SLMyӌ3h+K M\ W4x8x[x7hAy~r-Zw{&Uއ-~G)j35?zlEK9jKnupŕ.AwIy2HEo'h/oeb{^|,igO@mTˇ -O< OEq:3ޮu" IOW-D_qqŗMGwݙx-< njKss_Wrl||m;ufɓ>+x̷Nڴw6 M>E)8hD7 :1F 9*OMz0gH9 d ?E3fkq'ԝsn`JJ4.Ï>{ q\'wPåX'tp <~DnDM~M\ N_|EC7, u"?v )OMW]'2ӫ**$r/ʵL&;U KWyyWl{Nx8_z}>hڈM}=jS-UG+!xB"޾!I}z^is,Zl(Qm/Wu\8~|]z?aAV7tRS2A8te 7wk>I< _)l6[h ͒9su|@mjGPvo7BSќD0;(ѐdݤO@W7sԘ%K|GWʇo8r_vR"zŬV fK'3hASLh;{&|XmC{@: x#ǧhVhyxߞ`(e:yG1?o?'/8 q &R-9p:y+҉; &|Xm/Xz㵩jS-u"F{O}UD?~7hAynҷ-n60Ǔ^Jy=LR.y _^'h0ÿr_FJSo|kj_vF}>&)e['fPѠM|@_`k['BaoԲh!CB"??.ѐ= l˳`$i"RS#=bowR|_<'_~ngDMR>64'6|Xm+}N< gFOeLQL"[N61kh}W'b5KxDCnɓu>o[,]:,2V)ʳdm:x#o瞂c?ćzà\&'z u3vz >6y{kcgO0  l'BaoȌGqD~kMy>?oIbYc-<@9EaoձXn8yXNee:y;6 <46 MbNjsOxY># W7u"'} W\9,Z{{k?䙞2M^e߉Tw9bV>IPU'gG?*?Q_(9 |b{3W0OMB4`gO@mjTȇO4vd7㍀ZADI-s]DuC>'4Y:|]~O9͓Cp2fL!hj__op]G=e[oܻ^~o+je_ͳK_[>5-_\V>dp~Kwر,dly |QG#7| yfPlღ#6 6A!FOE!"xF M!㇣|ٮ'K1tv6pD6"h_Thg嗌>ԊCgX9r=,ŗ .oȺo-9/}ɒ 31)"sO\[;Xlkߏ6 MVj7p ]oԲhxE/ x9(OMkΞsNiӦ+2^*]˿e5:=%nk7{AGyCf]%5\vy˳K[7^Ԧ~A V4 pOUQoDnu^>m"Ο\NYW^9cWx9.jC|ƛ_zY_qIDׯ~_r6|löN o0ZoTMG:mį7uBզZ>/(=>ze[1#1KNA1ޗN#Yb2ioSNKօi#K~k|m۶m۶mlD{nyyةN*̬_u~pcY3?x :;bFγ6Uo*)sdeoOI; '&; ݁[oS  ƬB;Fsx<ξfըBx5x<O oE+O{<?EQԙ_+WړSY_< ^(x[NQ F{r*x!ѽ6 g  Ө=QEQX"pk:pbx<'o¦{}E* x<oKpU]U\jʶ'&3?wG#I@ucϬg_o*p R_(uys4'rco5<<<Fr<<<<_ Gyyy'Ev,?<<<<8yyyy<<<|г%<<<<7?-<<<12yyyywnyyyy5nQ0<<<Eyyyzq}Nyyyyy;hq(xyyyo4]yyyywyyyy"0yyy'§<<<<ϫq<<<3<<<<?TxyyyOA<<<o'n<<<<_/F#<<<<4w<<<[4(^ox<exI x<h2(6_vR4(^ox<ex <89$z<wZ4أf=d擙yVIj}vѠvx|;+&XBS+x<^wU4أv}哙~WE1h O<v4Lxdh=|jvUhPx<> y3 K'=l jGZ4'WM:ܸox<^w]4أ醲YWQ/d}x<>NM8 ,ۢa/ɧzmFaw4>{<ǎxD8 {Eחm!dmTx|E|xڢAS>x<oHD΋o` 3i9/d}x<>AM>x<oHD΋{4u|++h`}x<>΢AA>x<o\ix</K*:}m>k<[4>Uy<sѠ&<7/0 #h ;ZZHѠga,4 0QPxǟ0LFBTx|E|x< ð!]%Pq];a0  0 y+^`!' \t1E0 Eap| z1E=N=I>=? h`}x<>AS>x<o&d;=)"|J_RۢAzMx ^h< x!/X4yԢAzexQVxMgp>ݟ.hвx<>AY>x<o{BxQECϷ&O =ONѠvx|E|xJ+䯟3=oKzņWmm&nʫ,Lт g+鸿 {cBRᦛW^pɥm2P/h`=(xοv4Yx<oB?VrB= ЗJŝOzٽ>iEyVwWT$|Ƀ^W]o44 ;xOK[bROk~;ІFrk<%ネk wNoӹ煼{6$|N v4POȾlYx6 8qN<3ff~w3y擕T[M_nխnH|*Dg, iA@ÏC-ܝkJiwɦOfw>Y0F#mic:\r~4屿c|e^|Ew҆:ɓ'[tBcTu?Eʒk4?ȾmO<vt4Y'(Ο;w~ؾ27>h~|C g?' hECkɓwgȓ'O<_i9M'khGw?P_4#¿zIs]姞_7ސ}_`r| !%ʹ{x^o`Wɓ7_43Pg}OC)w k4ٓh?ó?v_j K^c3!`+̎oP?n 3{.Fɓ $&OF8OhLٻFPu_aE"M|R&wR`V4Fn|+O@X{+6_'OnEɓ'cm4|x ~G VYh޾aUk+/M=>?hLk}IIh0>AL Z X99h"߆!h0:%`- ɓ'0JÏyɓ7a4y4(x Qr6xE}kwsɓ'O[ѐ89u%qgXҾ&KFvD;:3fs~ュ݄3 h)~j j4p~'O|xa 5O C}|1״ߣ6zҟ=,+'FwE'O =i6mO>Yy%y+w̞`'a'ZOh0kMdEN7' 2>T “'O޽`3*|Γ'OQA~sɢwV)7gB7a<4o4(WQ2JW`U\xJd:=&ޜqk@y/փ7@Olc>zFɓOn4$yɓ z:^~s*WvpohP,o.XchG`W^IW\փ7[P|*`ɓ'o1ɓ'oA~>rhgg^orF}Quܖ_sTzFCSO_iBݽkpEͰJbM@=`Gn4 ˍ-=$N\Pj4F{=Gp 0uzFɓelwNkC+jsA9 `l|  48'Ob]D/j~ጆj1ߪo@Uk4Hגf.pUwFh0ߠFC h*`ɓ'oڅQkbyɓV4ѐT E/[zwQß4oٌѐ3ox@6O =pt M&B{x[ (#i!D>ɓ'Ot"|Ql` <}f땻_Tx!Y 2-s܄N+h{N?9ښxv2DmӃuzP*hDW4lPk4p~Oo(hP;g7KUHFLDW4H>7xP6+)# ɓ'X:JQɓ's}OH${/ަy{.aɞ5`N>{77so/n4ӃjU4_2z 3rg&t7 |MKJv'z ɓ'Or$x+&yBOmC_xO^'v3 9ƛZ8j4Un+w\s˭i_9+@+g['V ɓ'O޲V yW4ЃflpP*o~~)k~G ŽocJ*s] Ѓh0?h0׾gVN@F.>VDi|Md}#Cx O wxb74r,ozh{;@o*49r =:\\t"`5y[-hgӂ{4kBn~|U6'xy&>Xpbp̏o=zNl&O|"(e~|ŇKGc|j56_'O";y^l>+>FswOf Ϙ%[W}vtnwV+5 F^Z`~|2:=~MRI@Ѡh|M=6_'Oٲ Ea1D>Gf^ˤa|kӟQFNOPFpH!雮vDkɓd#h;yW4֓9aR՛V O"Ϛ6õ~|Em:?J}܇l.{|"7TW4ߚV? NP8~ӧi/FCzZwL9wvǓ=\{4۷Kt`@^ CeuLn[z`|h 'A(T7?O+$Ò.5456_'OhH$q)ȓ'OG/p@lex| ˤGm'?K@]| GCkɓAv:cɓ'c։WR3zl1#Օ5qJF} r?P__s{12使dE.PA⢋0u*\10(=' [ƍz %bvNh|MLoBOhLl+6_'Oe#OaM@lECkɓ?Խ Oɓ'Oz 8=YYioomjO  =-27) M@Go4ќѠSs&07F =h*ɓ'o "O O@hECkɓ~K!V 1Oȓ'Oy$`6FZOAh`H~Jz  z=7D[[eIEm<}_Vҟ'`mg ґG*3v3Hɓ'o%< )ln3*ȓ'Oޗ<~WǍo'hP)6P_Z*Y"U=Rfߖ|xM{Ah):kpt^iM@]=`CZѠ058'O5..?!O&6RWWk4_|EqTUU)y &gϝ/0=j"|O3G'C6s`<F$sĚ;L[ﳦpփ3Jt0Np~O<ތ?^VpPrkB;Rh0Px@* 4рiiXԴ!y[ctV'p+yɓ@8ɓ'OxY^t7ޜZrnpXʭ۞~{$w'伸ZV(ɖݟ|"8&sniWy՛v#%`C0`E6:WR< υĬyyyyv4b<<<<_30Qyyyy_řyyyy+&[oyyyy>yyyyk ]?5xyyyΖ<<<g37<<<<_]" ţyyyy~%Pyyyyba<<<yyyy|%<<<yyyy|Kyyyy~;kc1 yyyyyyyt<<<<< ]>\q$<< myyyyWb]Lyyyy~󵠈%yyyy/__kyyyy|-><<<<.溂yyyy~yyy|"Z*xyyy}}5zE<<<%t yyy_op yyyy_|]yyy<|yyyy~?#52<<<Ayyyy+(r<<<<|-b,*.<<<]g<<<<IENDB`PKQR,{ OEBPS/package.opf͎0y imaUyhӽM>'qɶ'f<ԏg9#X'2/04ѷجjCw j嶸TN\pvd]DQ#d`oNSB)^gnF;D2gH`R&YyzR)C虪5I,Pm,XOa@/hQ|ڀ-̃ayu.b\WךLi7n n@eBIdE{uɋxQQ !IEih~τ Ľ!\*т[dtWQo{9`$ VԘA0Vy)'eaOzCQ[bԐ^pzPpG`jLI&ݬ~PKQRJ@mOEBPS/nav.xhtml]]wܶ}ϯ`k%JO۸r(=>P]F\@}5 ^,KK1\Gjw|?ˠYelzswG9Zgymծɴf[OOOo~|ӊ?gfwz ]Yzqvrf\(U<[v#NNh>:;EmY]I5\t6kсo)3sNof]͎Zseuu|Td[w3:Z5JeRfǗ_nj@_PdZE^B9Vr^~ߘ٭ޘUMv7fgn㷝WYl杭_ e 0_]5;^=}KH}Bgzlh%:恮OKj S~>MٔM߬u՘N;/.uOH/o Ynu+vf3.oi?wRC%=z{{?;5޳ZT)*-].ٵcَi`5j(W[(ļAT;^½ upW@gWG_dY.]t2lDv㷝^kU\/;I0\~Z\^}7+]kF<Bŝ?BYWѿv؀`d K-D5NCH=`s:Xq5(@8CkBR k)Yx"A>S$gH@L?*Q?sz) da>,ZZ #/s0։8+TH Qݞ2},ܬ;N0S =6d^T};szb 30"NWA2&a1u/Hl ]Ӥ֧Ј9q,uC@`L]=DAt~w,@O{Q FY.5r s^|׻#4>i+f1&N{ZK+`cKy #=T!t5inBW1wNV+t},ѫ,c9#L]IЕ.H Cm8ѽ|3f-/]U *ab /88LǓ'/;DӘjxTbrpvcI-I4r9KDM.se%=QanYׅ"]urTU2;m(<"iNID'4=Y;"l'g;y[b$`ʑ}ܪ? #섳0:ޑGQ:gGG`YKӻd;Lo{UO.xDԪO:y$>r⫾a#ԕ!CesQ7%Lxf usB}ۥiPN S-GrI/ںO1 CNMgr6x,Su/u#9V$O(K֧yvDPfo,LBw{OdrjB>AvH~vu*^3Տ##O/S9cʑ|jJ|38:"t/* brjB_e˱>l^{6֮$vKǡP5:>ڭD& 9oP߈v+Ѵa>L$,KȉH.f=e?Rգ%aP!cqehxT=d#3XƙNJ]:F!f:v,t$I[D-eym7 WzL~.$k/u>@OSLԏf|աɕI:+CW +̷jAeYi^E*OR΋K$.츔3K>.93ity%G%gD|]r~t%FήLŨsR>J97*哨RRΉJ$*쨔x!S8?RIL̙11Ocb΋BoIz}HUÅ4޴ap^4+s :/ߌ63u ][@t m@3RvGU۽ܭfu^O(wELխ舢l  blF.bTNJr5|itc&bAWQjDy)byHV1Yi~/6J-"kR Ml ʵ6P&6H!v:B vx)$h=E U"k.-$B7~#LR/~G Z1|RzWN8Ȃçy1vLSݪ?cuX@{Lk9\DQ=EtYW?CD@W>1Diw*5c&| ,"j{QݍS 9ORܻ§wvN IMmUbD#i8cDvaDӚ+WE*9_:_h%OH9Jng~h`MkuRε\J+ Wr2T3T$$/i%_}+}0+q̕^#q^s~-cRgzN h~ %%怐14μ @ 225Ody`Ґa?i9 Lr@`倐Nz@V.I.\s9rJdg͋iwv3ahVu^gJLLX$29H39gr39`erdr 䀓^b)7bCqtŦx4e_ZPKQRoa,mimetypePK QR A:META-INF/PKQRwaMETA-INF/container.xmlPK QRA@OEBPS/PKQRGpmdOEBPS/body.xhtmlPKQRҍ==0OEBPS/cover.pngPKQR,{ LOEBPS/package.opfPKQRJ@mrOEBPS/nav.xhtmlPK)cups-2.4.7/doc/help/cgi.html0000644000175000017500000000417214502571342015512 0ustar zdohnalzdohnal Using CGI Programs

    Using CGI Programs

    CUPS provides a dynamic web interface through dedicated CGI programs that are executed when users open special directories on the CUPS server. Each CGI performs administration, class, help, job, and printer functions as directed by the user, but the actual programs that are run and functions that are available are limited to those that were originally designed into the scheduler.

    CUPS also supports CGI scripts/programs for pages you want to provide, although this functionality is disabled by default. The "application/x-httpd-cgi" MIME media type is used to identify CGI content and can be associated with any filename extension. The scheduler requires CGI content to have the execute bit set, not have world or group write permissions, and any CGI scripts need to include a #! line as the first line of a script to identify the script interpreter. For example, a PHP script would look like:

    #!/usr/bin/php -fn
    <?php
    ...
    ?>
    

    Configuring the Server

    In order to enable the corresponding type, you must create a new /etc/cups/cgi.types file which maps the filename extensions you use to the appropriate MIME types. For example, the following will support CGI programs/scripts with the "cgi" extension:

    application/x-httpd-cgi cgi
    

    Limitations

    CUPS implements most of the CGI/1.1 specification, with the following exceptions:

    • No PATH_INFO or PATH_TRANSLATED support
    • Limited HTTP field support; only the Content-Length (CONTENT_LENGTH), Content-Type (CONTENT_TYPE), Cookie (HTTP_COOKIE), Referrer (HTTP_REFERRER), and User-Agent (HTTP_USER_AGENT) fields are placed in environment variables at this time
    cups-2.4.7/doc/help/api-ppd.html0000644000175000017500000025121114502571342016300 0ustar zdohnalzdohnal PPD API (DEPRECATED)

    PPD API (DEPRECATED)

    Note:

    The PPD API was deprecated in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the CUPS Programming Manual documentation. These functions will be removed in a future release of CUPS.

    Header cups/ppd.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS Programming Manual
    Specifications: CUPS PPD Extensions

    Overview

    Note:

    The PPD API was deprecated in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the CUPS Programming Manual documentation. These functions will be removed in a future release of CUPS.

    The CUPS PPD API provides read-only access the data in PostScript Printer Description ("PPD") files which are used for all printers with a driver. With it you can obtain the data necessary to display printer options to users, mark option choices and check for conflicting choices, and output marked choices in PostScript output. The ppd_file_t structure contains all of the information in a PPD file.

    Note:

    The CUPS PPD API uses the terms "option" and "choice" instead of the Adobe terms "MainKeyword" and "OptionKeyword" to refer to specific printer options and features. CUPS also treats option ("MainKeyword") and choice ("OptionKeyword") values as case-insensitive strings, so option "InputSlot" and choice "Upper" are equivalent to "inputslot" and "upper", respectively.

    Loading a PPD File

    The ppdOpenFile function "opens" a PPD file and loads it into memory. For example, the following code opens the current printer's PPD file in a CUPS filter:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd = ppdOpenFile(getenv("PPD"));
    

    The return value is a pointer to a new ppd_file_t structure or NULL if the PPD file does not exist or cannot be loaded. The ppdClose function frees the memory used by the structure:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdClose(ppd);
    

    Once closed, pointers to the ppd_file_t structure and any data in it will no longer be valid.

    Options and Groups

    PPD files support multiple options, which are stored in arrays of ppd_option_t and ppd_choice_t structures.

    Each option in turn is associated with a group stored in a ppd_group_t structure. Groups can be specified in the PPD file; if an option is not associated with a group then it is put in an automatically-generated "General" group. Groups can also have sub-groups, however CUPS currently ignores sub-groups because of past abuses of this functionality.

    Option choices are selected by marking them using one of three functions. The first is ppdMarkDefaults which selects all of the default options in the PPD file:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdMarkDefaults(ppd);
    

    The second is ppdMarkOption which selects a single option choice in the PPD file. For example, the following code selects the upper paper tray:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdMarkOption(ppd, "InputSlot", "Upper");
    

    The last function is cupsMarkOptions which selects multiple option choices in the PPD file from an array of CUPS options, mapping IPP attributes like "media" and "sides" to their corresponding PPD options. You typically use this function in a print filter with cupsParseOptions and ppdMarkDefaults to select all of the option choices needed for the job, for example:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd = ppdOpenFile(getenv("PPD"));
    cups_option_t *options = NULL;
    int num_options = cupsParseOptions(argv[5], 0, &options);
    
    ppdMarkDefaults(ppd);
    cupsMarkOptions(ppd, num_options, options);
    cupsFreeOptions(num_options, options);
    

    Constraints

    PPD files support specification of conflict conditions, called constraints, between different options. Constraints are stored in an array of ppd_const_t structures which specify the options and choices that conflict with each other. The ppdConflicts function tells you how many of the selected options are incompatible. Since constraints are normally specified in pairs, the returned value is typically an even number.

    Page Sizes

    Page sizes are special options which have physical dimensions and margins associated with them. The size information is stored in ppd_size_t structures and is available by looking up the named size with the ppdPageSize function. The page size and margins are returned in units called points; there are 72 points per inch. If you pass NULL for the size, the currently selected size is returned:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    ppd_size_t *size = ppdPageSize(ppd, NULL);
    

    Besides the standard page sizes listed in a PPD file, some printers support variable or custom page sizes. Custom page sizes are supported if the variables_sizes member of the ppd_file_t structure is non-zero. The custom_min, custom_max, and custom_margins members of the ppd_file_t structure define the limits of the printable area. To get the resulting media size, use a page size string of the form "Custom.widthxlength", where "width" and "length" are in points. Custom page size names can also be specified in inches ("Custom.widthxheightin"), centimeters ("Custom.widthxheightcm"), or millimeters ("Custom.widthxheightmm"):

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    /* Get an 576x720 point custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.576x720");
    
    /* Get an 8x10 inch custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.8x10in");
    
    /* Get a 100x200 millimeter custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.100x200mm");
    
    /* Get a 12.7x34.5 centimeter custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.12.7x34.5cm");
    

    If the PPD does not support variable page sizes, the ppdPageSize function will return NULL.

    Attributes

    Every PPD file is composed of one or more attributes. Most of these attributes are used to define groups, options, choices, and page sizes, however several informational attributes may be present which you can access in your program or filter. Attributes normally look like one of the following examples in a PPD file:

    *name: "value"
    *name spec: "value"
    *name spec/text: "value"
    

    The ppdFindAttr and ppdFindNextAttr functions find the first and next instances, respectively, of the named attribute with the given "spec" string and return a ppd_attr_t structure. If you provide a NULL specifier string, all attributes with the given name will be returned. For example, the following code lists all of the Product attributes in a PPD file:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    ppd_attr_t *attr;
    
    for (attr = ppdFindAttr(ppd, "Product", NULL);
         attr != NULL;
         attr = ppdFindNextAttr(ppd, "Product", NULL))
      puts(attr->value);
    

    Functions

     CUPS 1.4/macOS 10.6 cupsGetConflicts

    Get a list of conflicting options in a marked PPD.

    int cupsGetConflicts(ppd_file_t *ppd, const char *option, const char *choice, cups_option_t **options);

    Parameters

    ppd PPD file
    option Option to test
    choice Choice to test
    options Conflicting options

    Return Value

    Number of conflicting options

    Discussion

    This function gets a list of options that would conflict if "option" and "choice" were marked in the PPD. You would typically call this function after marking the currently selected options in the PPD in order to determine whether a new option selection would cause a conflict.

    The number of conflicting options are returned with "options" pointing to the conflicting options. The returned option array must be freed using cupsFreeOptions.

    cupsGetPPD

    Get the PPD file for a printer on the default server.

    const char *cupsGetPPD(const char *name);

    Parameters

    name Destination name

    Return Value

    Filename for PPD file

    Discussion

    For classes, cupsGetPPD returns the PPD file for the first printer in the class.

    The returned filename is stored in a static buffer and is overwritten with each call to cupsGetPPD or cupsGetPPD2. The caller "owns" the file that is created and must unlink the returned filename.

     CUPS 1.1.21/macOS 10.4 cupsGetPPD2

    Get the PPD file for a printer from the specified server.

    const char *cupsGetPPD2(http_t *http, const char *name);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    name Destination name

    Return Value

    Filename for PPD file

    Discussion

    For classes, cupsGetPPD2 returns the PPD file for the first printer in the class.

    The returned filename is stored in a static buffer and is overwritten with each call to cupsGetPPD or cupsGetPPD2. The caller "owns" the file that is created and must unlink the returned filename.

     CUPS 1.4/macOS 10.6 cupsGetPPD3

    Get the PPD file for a printer on the specified server if it has changed.

    http_status_t cupsGetPPD3(http_t *http, const char *name, time_t *modtime, char *buffer, size_t bufsize);

    Parameters

    http HTTP connection or CUPS_HTTP_DEFAULT
    name Destination name
    modtime Modification time
    buffer Filename buffer
    bufsize Size of filename buffer

    Return Value

    HTTP status

    Discussion

    The "modtime" parameter contains the modification time of any locally-cached content and is updated with the time from the PPD file on the server.

    The "buffer" parameter contains the local PPD filename. If it contains the empty string, a new temporary file is created, otherwise the existing file will be overwritten as needed. The caller "owns" the file that is created and must unlink the returned filename.

    On success, HTTP_STATUS_OK is returned for a new PPD file and HTTP_STATUS_NOT_MODIFIED if the existing PPD file is up-to-date. Any other status is an error.

    For classes, cupsGetPPD3 returns the PPD file for the first printer in the class.

     CUPS 1.3/macOS 10.5 cupsGetServerPPD

    Get an available PPD file from the server.

    char *cupsGetServerPPD(http_t *http, const char *name);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    name Name of PPD file ("ppd-name")

    Return Value

    Name of PPD file or NULL on error

    Discussion

    This function returns the named PPD file from the server. The list of available PPDs is provided by the IPP CUPS_GET_PPDS operation.

    You must remove (unlink) the PPD file when you are finished with it. The PPD filename is stored in a static location that will be overwritten on the next call to cupsGetPPD, cupsGetPPD2, or cupsGetServerPPD.

    cupsMarkOptions

    Mark command-line options in a PPD file.

    int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options);

    Parameters

    ppd PPD file
    num_options Number of options
    options Options

    Return Value

    1 if conflicts exist, 0 otherwise

    Discussion

    This function maps the IPP "finishings", "media", "mirror", "multiple-document-handling", "output-bin", "print-color-mode", "print-quality", "printer-resolution", and "sides" attributes to their corresponding PPD options and choices.

     CUPS 1.2/macOS 10.5 cupsRasterInterpretPPD

    Interpret PPD commands to create a page header.

    int cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func);

    Parameters

    h Page header to create
    ppd PPD file
    num_options Number of options
    options Options
    func Optional page header callback (NULL for none)

    Return Value

    0 on success, -1 on failure

    Discussion

    This function is used by raster image processing (RIP) filters like cgpdftoraster and imagetoraster when writing CUPS raster data for a page. It is not used by raster printer driver filters which only read CUPS raster data.

    cupsRasterInterpretPPD does not mark the options in the PPD using the "num_options" and "options" arguments. Instead, mark the options with cupsMarkOptions and ppdMarkOption prior to calling it - this allows for per-page options without manipulating the options array.

    The "func" argument specifies an optional callback function that is called prior to the computation of the final raster data. The function can make changes to the cups_page_header2_t data as needed to use a supported raster format and then returns 0 on success and -1 if the requested attributes cannot be supported.

    cupsRasterInterpretPPD supports a subset of the PostScript language. Currently only the [, ], <<, >>, {, }, cleartomark, copy, dup, index, pop, roll, setpagedevice, and stopped operators are supported.

     CUPS 1.4/macOS 10.6 cupsResolveConflicts

    Resolve conflicts in a marked PPD.

    int cupsResolveConflicts(ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options);

    Parameters

    ppd PPD file
    option Newly selected option or NULL for none
    choice Newly selected choice or NULL for none
    num_options Number of additional selected options
    options Additional selected options

    Return Value

    1 on success, 0 on failure

    Discussion

    This function attempts to resolve any conflicts in a marked PPD, returning a list of option changes that are required to resolve them. On input, "num_options" and "options" contain any pending option changes that have not yet been marked, while "option" and "choice" contain the most recent selection which may or may not be in "num_options" or "options".

    On successful return, "num_options" and "options" are updated to contain "option" and "choice" along with any changes required to resolve conflicts specified in the PPD file and 1 is returned.

    If option conflicts cannot be resolved, "num_options" and "options" are not changed and 0 is returned.

    When resolving conflicts, cupsResolveConflicts does not consider changes to the current page size (media, PageSize, and PageRegion) or to the most recent option specified in "option". Thus, if the only way to resolve a conflict is to change the page size or the option the user most recently changed, cupsResolveConflicts will return 0 to indicate it was unable to resolve the conflicts.

    The cupsResolveConflicts function uses one of two sources of option constraint information. The preferred constraint information is defined by cupsUIConstraints and cupsUIResolver attributes - in this case, the PPD file provides constraint resolution actions.

    The backup constraint information is defined by the UIConstraints and NonUIConstraints attributes. These constraints are resolved algorithmically by first selecting the default choice for the conflicting option, then iterating over all possible choices until a non-conflicting option choice is found.

    ppdCollect

    Collect all marked options that reside in the specified section.

    int ppdCollect(ppd_file_t *ppd, ppd_section_t section, ppd_choice_t ***choices);

    Parameters

    ppd PPD file data
    section Section to collect
    choices Pointers to choices

    Return Value

    Number of options marked

    Discussion

    The choices array should be freed using free when you are finished with it.

     CUPS 1.2/macOS 10.5 ppdCollect2

    Collect all marked options that reside in the specified section and minimum order.

    int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, float min_order, ppd_choice_t ***choices);

    Parameters

    ppd PPD file data
    section Section to collect
    min_order Minimum OrderDependency value
    choices Pointers to choices

    Return Value

    Number of options marked

    Discussion

    The choices array should be freed using free when you are finished with it.

    ppdConflicts

    Check to see if there are any conflicts among the marked option choices.

    int ppdConflicts(ppd_file_t *ppd);

    Parameters

    ppd PPD to check

    Return Value

    Number of conflicts found

    Discussion

    The returned value is the same as returned by ppdMarkOption.

    ppdEmit

    Emit code for marked options to a file.

    int ppdEmit(ppd_file_t *ppd, FILE *fp, ppd_section_t section);

    Parameters

    ppd PPD file record
    fp File to write to
    section Section to write

    Return Value

    0 on success, -1 on failure

     CUPS 1.2/macOS 10.5 ppdEmitAfterOrder

    Emit a subset of the code for marked options to a file.

    int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, ppd_section_t section, int limit, float min_order);

    Parameters

    ppd PPD file record
    fp File to write to
    section Section to write
    limit Non-zero to use min_order
    min_order Lowest OrderDependency

    Return Value

    0 on success, -1 on failure

    Discussion

    When "limit" is non-zero, this function only emits options whose OrderDependency value is greater than or equal to "min_order".

    When "limit" is zero, this function is identical to ppdEmit().

    ppdEmitFd

    Emit code for marked options to a file.

    int ppdEmitFd(ppd_file_t *ppd, int fd, ppd_section_t section);

    Parameters

    ppd PPD file record
    fd File to write to
    section Section to write

    Return Value

    0 on success, -1 on failure

    ppdEmitJCL

    Emit code for JCL options to a file.

    int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, const char *user, const char *title);

    Parameters

    ppd PPD file record
    fp File to write to
    job_id Job ID
    user Username
    title Title

    Return Value

    0 on success, -1 on failure

     CUPS 1.2/macOS 10.5 ppdEmitJCLEnd

    Emit JCLEnd code to a file.

    int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp);

    Parameters

    ppd PPD file record
    fp File to write to

    Return Value

    0 on success, -1 on failure

     CUPS 1.2/macOS 10.5 ppdEmitString

    Get a string containing the code for marked options.

    char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, float min_order);

    Parameters

    ppd PPD file record
    section Section to write
    min_order Lowest OrderDependency

    Return Value

    String containing option code or NULL if there is no option code

    Discussion

    When "min_order" is greater than zero, this function only includes options whose OrderDependency value is greater than or equal to "min_order". Otherwise, all options in the specified section are included in the returned string.

    The return string is allocated on the heap and should be freed using free when you are done with it.

     CUPS 1.1.19/macOS 10.3 ppdFindAttr

    Find the first matching attribute.

    ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, const char *spec);

    Parameters

    ppd PPD file data
    name Attribute name
    spec Specifier string or NULL

    Return Value

    Attribute or NULL if not found

    ppdFindChoice

    Return a pointer to an option choice.

    ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *choice);

    Parameters

    o Pointer to option
    choice Name of choice

    Return Value

    Choice pointer or NULL

     CUPS 1.2/macOS 10.5 ppdFindCustomOption

    Find a custom option.

    ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, const char *keyword);

    Parameters

    ppd PPD file
    keyword Custom option name

    Return Value

    Custom option or NULL

     CUPS 1.2/macOS 10.5 ppdFindCustomParam

    Find a parameter for a custom option.

    ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, const char *name);

    Parameters

    opt Custom option
    name Parameter name

    Return Value

    Custom parameter or NULL

    ppdFindMarkedChoice

    Return the marked choice for the specified option.

    ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *option);

    Parameters

    ppd PPD file
    option Keyword/option name

    Return Value

    Pointer to choice or NULL

     CUPS 1.1.19/macOS 10.3 ppdFindNextAttr

    Find the next matching attribute.

    ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, const char *spec);

    Parameters

    ppd PPD file data
    name Attribute name
    spec Specifier string or NULL

    Return Value

    Attribute or NULL if not found

    ppdFindOption

    Return a pointer to the specified option.

    ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *option);

    Parameters

    ppd PPD file data
    option Option/Keyword name

    Return Value

    Pointer to option or NULL

     CUPS 1.2/macOS 10.5 ppdFirstCustomParam

    Return the first parameter for a custom option.

    ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt);

    Parameters

    opt Custom option

    Return Value

    Custom parameter or NULL

     CUPS 1.2/macOS 10.5 ppdFirstOption

    Return the first option in the PPD file.

    ppd_option_t *ppdFirstOption(ppd_file_t *ppd);

    Parameters

    ppd PPD file

    Return Value

    First option or NULL

    Discussion

    Options are returned from all groups in ascending alphanumeric order.

     CUPS 1.4/macOS 10.6 ppdInstallableConflict

    Test whether an option choice conflicts with an installable option.

    int ppdInstallableConflict(ppd_file_t *ppd, const char *option, const char *choice);

    Parameters

    ppd PPD file
    option Option
    choice Choice

    Return Value

    1 if conflicting, 0 if not conflicting

    Discussion

    This function tests whether a particular option choice is available based on constraints against options in the "InstallableOptions" group.

    ppdIsMarked

    Check to see if an option is marked.

    int ppdIsMarked(ppd_file_t *ppd, const char *option, const char *choice);

    Parameters

    ppd PPD file data
    option Option/Keyword name
    choice Choice name

    Return Value

    Non-zero if option is marked

     CUPS 1.2/macOS 10.5 ppdLocalize

    Localize the PPD file to the current locale.

    int ppdLocalize(ppd_file_t *ppd);

    Parameters

    ppd PPD file

    Return Value

    0 on success, -1 on error

    Discussion

    All groups, options, and choices are localized, as are ICC profile descriptions, printer presets, and custom option parameters. Each localized string uses the UTF-8 character encoding.

    ppdLocalizeAttr

    Localize an attribute.

    ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, const char *spec);

    Parameters

    ppd PPD file
    keyword Main keyword
    spec Option keyword or NULL for none

    Return Value

    Localized attribute or NULL if none exists

    Discussion

    This function uses the current locale to find the localized attribute for the given main and option keywords. If no localized version of the attribute exists for the current locale, the unlocalized version is returned.

     CUPS 1.3/macOS 10.5 ppdLocalizeIPPReason

    Get the localized version of a cupsIPPReason attribute.

    const char *ppdLocalizeIPPReason(ppd_file_t *ppd, const char *reason, const char *scheme, char *buffer, size_t bufsize);

    Parameters

    ppd PPD file
    reason IPP reason keyword to look up
    scheme URI scheme or NULL for text
    buffer Value buffer
    bufsize Size of value buffer

    Return Value

    Value or NULL if not found

    Discussion

    This function uses the current locale to find the corresponding reason text or URI from the attribute value. If "scheme" is NULL or "text", the returned value contains human-readable (UTF-8) text from the translation string or attribute value. Otherwise the corresponding URI is returned.

    If no value of the requested scheme can be found, NULL is returned.

     CUPS 1.4/macOS 10.6 ppdLocalizeMarkerName

    Get the localized version of a marker-names attribute value.

    const char *ppdLocalizeMarkerName(ppd_file_t *ppd, const char *name);

    Parameters

    ppd PPD file
    name Marker name to look up

    Return Value

    Value or NULL if not found

    Discussion

    This function uses the current locale to find the corresponding name text from the attribute value. If no localized text for the requested name can be found, NULL is returned.

    ppdMarkDefaults

    Mark all default options in the PPD file.

    void ppdMarkDefaults(ppd_file_t *ppd);

    Parameters

    ppd PPD file record

    ppdMarkOption

    Mark an option in a PPD file and return the number of conflicts.

    int ppdMarkOption(ppd_file_t *ppd, const char *option, const char *choice);

    Parameters

    ppd PPD file record
    option Keyword
    choice Option name

    Return Value

    Number of conflicts

     CUPS 1.2/macOS 10.5 ppdNextCustomParam

    Return the next parameter for a custom option.

    ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt);

    Parameters

    opt Custom option

    Return Value

    Custom parameter or NULL

     CUPS 1.2/macOS 10.5 ppdNextOption

    Return the next option in the PPD file.

    ppd_option_t *ppdNextOption(ppd_file_t *ppd);

    Parameters

    ppd PPD file

    Return Value

    Next option or NULL

    Discussion

    Options are returned from all groups in ascending alphanumeric order.

    ppdPageLength

    Get the page length for the given size.

    float ppdPageLength(ppd_file_t *ppd, const char *name);

    Parameters

    ppd PPD file
    name Size name

    Return Value

    Length of page in points or 0.0

    ppdPageSize

    Get the page size record for the named size.

    ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name);

    Parameters

    ppd PPD file record
    name Size name

    Return Value

    Size record for page or NULL

     CUPS 1.4/macOS 10.6 ppdPageSizeLimits

    Return the custom page size limits.

    int ppdPageSizeLimits(ppd_file_t *ppd, ppd_size_t *minimum, ppd_size_t *maximum);

    Parameters

    ppd PPD file record
    minimum Minimum custom size
    maximum Maximum custom size

    Return Value

    1 if custom sizes are supported, 0 otherwise

    Discussion

    This function returns the minimum and maximum custom page sizes and printable areas based on the currently-marked (selected) options.

    If the specified PPD file does not support custom page sizes, both "minimum" and "maximum" are filled with zeroes.

    ppdPageWidth

    Get the page width for the given size.

    float ppdPageWidth(ppd_file_t *ppd, const char *name);

    Parameters

    ppd PPD file record
    name Size name

    Return Value

    Width of page in points or 0.0

    Data Types

    cups_interpret_cb_t

    cupsRasterInterpretPPD callback function

    typedef int (*cups_interpret_cb_t)(cups_page_header2_t *header, int preferred_bits);

     DEPRECATED ppd_attr_t

    PPD Attribute Structure

    typedef struct ppd_attr_s ppd_attr_t;

     DEPRECATED ppd_choice_t

    Option choices

    typedef struct ppd_choice_s ppd_choice_t;

     DEPRECATED ppd_conform_t

    Conformance Levels

    typedef enum ppd_conform_e ppd_conform_t;

     DEPRECATED ppd_const_t

    Constraints

    typedef struct ppd_const_s ppd_const_t;

     DEPRECATED ppd_coption_t

    Custom Option

    typedef struct ppd_coption_s ppd_coption_t;

     DEPRECATED ppd_cparam_t

    Custom Parameter

    typedef struct ppd_cparam_s ppd_cparam_t;

     DEPRECATED ppd_cplimit_t

    Custom Parameter Limit

    typedef union ppd_cplimit_u ppd_cplimit_t;

     DEPRECATED ppd_cptype_t

    Custom Parameter Type

    typedef enum ppd_cptype_e ppd_cptype_t;

     DEPRECATED ppd_cpvalue_t

    Custom Parameter Value

    typedef union ppd_cpvalue_u ppd_cpvalue_t;

     DEPRECATED ppd_cs_t

    Colorspaces

    typedef enum ppd_cs_e ppd_cs_t;

     DEPRECATED ppd_emul_t

    Emulators

    typedef struct ppd_emul_s ppd_emul_t;

     DEPRECATED ppd_file_t

    PPD File

    typedef struct ppd_file_s ppd_file_t;

     DEPRECATED ppd_group_t

    Groups

    typedef struct ppd_group_s ppd_group_t;

     DEPRECATED ppd_option_t

    Options

    typedef struct ppd_option_s ppd_option_t;

     DEPRECATED ppd_profile_t

    sRGB Color Profiles

    typedef struct ppd_profile_s ppd_profile_t;

     DEPRECATED ppd_section_t

    Order dependency sections

    typedef enum ppd_section_e ppd_section_t;

     DEPRECATED ppd_size_t

    Page Sizes

    typedef struct ppd_size_s ppd_size_t;

     DEPRECATED ppd_status_t

    Status Codes

    typedef enum ppd_status_e ppd_status_t;

     DEPRECATED ppd_ui_t

    UI Types

    typedef enum ppd_ui_e ppd_ui_t;

    Structures

     DEPRECATED ppd_attr_s

    PPD Attribute Structure

    struct ppd_attr_s {
        char name[PPD_MAX_NAME];
        char spec[PPD_MAX_NAME];
        char text[PPD_MAX_TEXT];
        char *value;
    };

    Members

    name[PPD_MAX_NAME] Name of attribute (cupsXYZ)
    spec[PPD_MAX_NAME] Specifier string, if any
    text[PPD_MAX_TEXT] Human-readable text, if any
    value Value string

     DEPRECATED ppd_choice_s

    Option choices

    struct ppd_choice_s {
        char choice[PPD_MAX_NAME];
        char *code;
        char marked;
        ppd_option_t *option;
        char text[PPD_MAX_TEXT];
    };

    Members

    choice[PPD_MAX_NAME] Computer-readable option name
    code Code to send for this option
    marked 0 if not selected, 1 otherwise
    option Pointer to parent option structure
    text[PPD_MAX_TEXT] Human-readable option name

     DEPRECATED ppd_const_s

    Constraints

    struct ppd_const_s {
        char choice1[PPD_MAX_NAME];
        char choice2[PPD_MAX_NAME];
        char option1[PPD_MAX_NAME];
        char option2[PPD_MAX_NAME];
    };

    Members

    choice1[PPD_MAX_NAME] First option/choice (blank for all)
    choice2[PPD_MAX_NAME] Second option/choice (blank for all)
    option1[PPD_MAX_NAME] First keyword
    option2[PPD_MAX_NAME] Second keyword

     DEPRECATED ppd_coption_s

    Custom Option

    struct ppd_coption_s {
        char keyword[PPD_MAX_NAME];
        int marked;
        ppd_option_t *option;
        cups_array_t *params;
    };

    Members

    keyword[PPD_MAX_NAME] Name of option that is being extended...
    marked Extended option is marked
    option Option that is being extended...
    params Parameters

     DEPRECATED ppd_cparam_s

    Custom Parameter

    struct ppd_cparam_s {
        ppd_cpvalue_t current;
        ppd_cplimit_t minimum, maximum;
        char name[PPD_MAX_NAME];
        int order;
        char text[PPD_MAX_TEXT];
        ppd_cptype_t type;
    };

    Members

    current Current value
    maximum Maximum value
    name[PPD_MAX_NAME] Parameter name
    order Order (0 to N)
    text[PPD_MAX_TEXT] Human-readable text
    type Parameter type

     DEPRECATED ppd_emul_s

    Emulators

    struct ppd_emul_s {
        char name[PPD_MAX_NAME];
        char *start;
        char *stop;
    };

    Members

    name[PPD_MAX_NAME] Emulator name
    start Code to switch to this emulation
    stop Code to stop this emulation

     DEPRECATED ppd_file_s

    PPD File

    struct ppd_file_s {
        int accurate_screens;
        int color_device;
        ppd_cs_t colorspace;
        ppd_const_t *consts;
        int contone_only;
        float custom_margins[4];
        float custom_max[2];
        float custom_min[2];
        char **filters;
        int flip_duplex;
        char **fonts;
        ppd_group_t *groups;
        char *jcl_begin;
        char *jcl_end;
        char *jcl_ps;
        int landscape;
        char *lang_encoding;
        char *lang_version;
        int language_level;
        int manual_copies;
        char *manufacturer;
        int model_number;
        char *modelname;
        char *nickname;
        int num_consts;
        int num_filters;
        int num_fonts;
        int num_groups;
        int num_profiles;
        int num_sizes;
        char *patches;
        char *pcfilename;
        char *product;
        ppd_profile_t *profiles;
        char *protocols;
        char *shortnickname;
        ppd_size_t *sizes;
        int throughput;
        char *ttrasterizer;
        int variable_sizes;
    };

    Members

    accurate_screens 1 = supports accurate screens, 0 = not
    color_device 1 = color device, 0 = grayscale
    colorspace Default colorspace
    consts UI/Non-UI constraints
    contone_only 1 = continuous tone only, 0 = not
    custom_margins[4] Margins around page
    custom_max[2] Maximum variable page size
    custom_min[2] Minimum variable page size
    filters Filter strings...
    flip_duplex  DEPRECATED  1 = Flip page for back sides
    fonts Pre-loaded fonts
    groups UI groups
    jcl_begin Start JCL commands
    jcl_end End JCL commands
    jcl_ps Enter PostScript interpreter
    landscape -90 or 90
    lang_encoding Language encoding
    lang_version Language version (English, Spanish, etc.)
    language_level Language level of device
    manual_copies 1 = Copies done manually, 0 = hardware
    manufacturer Manufacturer name
    model_number Device-specific model number
    modelname Model name (general)
    nickname Nickname (specific)
    num_consts Number of UI/Non-UI constraints
    num_filters Number of filters
    num_fonts Number of pre-loaded fonts
    num_groups Number of UI groups
    num_profiles  DEPRECATED  Number of sRGB color profiles
    num_sizes Number of page sizes
    patches Patch commands to be sent to printer
    pcfilename  CUPS 1.1.19/macOS 10.3  PCFileName string
    product Product name (from PS RIP/interpreter)
    profiles  DEPRECATED  sRGB color profiles
    protocols  CUPS 1.1.19/macOS 10.3  Protocols (BCP, TBCP) string
    shortnickname Short version of nickname
    sizes Page sizes
    throughput Pages per minute
    ttrasterizer Truetype rasterizer
    variable_sizes 1 = supports variable sizes, 0 = doesn't

     DEPRECATED ppd_group_s

    Groups

    struct ppd_group_s {
        char text[PPD_MAX_TEXT - PPD_MAX_NAME];
        char name[PPD_MAX_NAME];
        int num_options;
        int num_subgroups;
        ppd_option_t *options;
        struct ppd_group_s *subgroups;
    };

    Members

    PPD_MAX_NAME] Human-readable group name
    name[PPD_MAX_NAME]  CUPS 1.1.18/macOS 10.3  Group name
    num_options Number of options
    num_subgroups Number of sub-groups
    options Options
    subgroups Sub-groups (max depth = 1)

     DEPRECATED ppd_option_s

    Options

    struct ppd_option_s {
        ppd_choice_t *choices;
        char conflicted;
        char defchoice[PPD_MAX_NAME];
        char keyword[PPD_MAX_NAME];
        int num_choices;
        float order;
        ppd_section_t section;
        char text[PPD_MAX_TEXT];
        ppd_ui_t ui;
    };

    Members

    choices Option choices
    conflicted 0 if no conflicts exist, 1 otherwise
    defchoice[PPD_MAX_NAME] Default option choice
    keyword[PPD_MAX_NAME] Option keyword name ("PageSize", etc.)
    num_choices Number of option choices
    order Order number
    section Section for command
    text[PPD_MAX_TEXT] Human-readable text
    ui Type of UI option

     DEPRECATED ppd_profile_s

    sRGB Color Profiles

    struct ppd_profile_s {
        float density;
        float gamma;
        float matrix[3][3];
        char media_type[PPD_MAX_NAME];
        char resolution[PPD_MAX_NAME];
    };

    Members

    density Ink density to use
    gamma Gamma correction to use
    matrix[3][3] Transform matrix
    media_type[PPD_MAX_NAME] Media type or "-"
    resolution[PPD_MAX_NAME] Resolution or "-"

     DEPRECATED ppd_size_s

    Page Sizes

    struct ppd_size_s {
        float bottom;
        float left;
        float length;
        int marked;
        char name[PPD_MAX_NAME];
        float right;
        float top;
        float width;
    };

    Members

    bottom Bottom printable margin in points
    left Left printable margin in points
    length Length of media in points
    marked Page size selected?
    name[PPD_MAX_NAME] Media size option
    right Right printable margin in points
    top Top printable margin in points
    width Width of media in points

    Unions

     DEPRECATED ppd_cplimit_u

    Custom Parameter Limit

    union ppd_cplimit_u {
        float custom_curve;
        int custom_int;
        float custom_invcurve;
        int custom_passcode;
        int custom_password;
        float custom_points;
        float custom_real;
        int custom_string;
    };

    Members

    custom_curve Gamma value
    custom_int Integer value
    custom_invcurve Gamma value
    custom_passcode Passcode length
    custom_password Password length
    custom_points Measurement value
    custom_real Real value
    custom_string String length

     DEPRECATED ppd_cpvalue_u

    Custom Parameter Value

    union ppd_cpvalue_u {
        float custom_curve;
        int custom_int;
        float custom_invcurve;
        char *custom_passcode;
        char *custom_password;
        float custom_points;
        float custom_real;
        char *custom_string;
    };

    Members

    custom_curve Gamma value
    custom_int Integer value
    custom_invcurve Gamma value
    custom_passcode Passcode value
    custom_password Password value
    custom_points Measurement value
    custom_real Real value
    custom_string String value

    Constants

     DEPRECATED ppd_conform_e

    Conformance Levels

    Constants

    PPD_CONFORM_RELAXED Relax whitespace and control char
    PPD_CONFORM_STRICT Require strict conformance

     DEPRECATED ppd_cptype_e

    Custom Parameter Type

    Constants

    PPD_CUSTOM_CURVE Curve value for f(x) = x^value
    PPD_CUSTOM_INT Integer number value
    PPD_CUSTOM_INVCURVE Curve value for f(x) = x^(1/value)
    PPD_CUSTOM_PASSCODE String of (hidden) numbers
    PPD_CUSTOM_PASSWORD String of (hidden) characters
    PPD_CUSTOM_POINTS Measurement value in points
    PPD_CUSTOM_REAL Real number value
    PPD_CUSTOM_STRING String of characters
    PPD_CUSTOM_UNKNOWN Unknown type (error)

     DEPRECATED ppd_cs_e

    Colorspaces

    Constants

    PPD_CS_CMY CMY colorspace
    PPD_CS_CMYK CMYK colorspace
    PPD_CS_GRAY Grayscale colorspace
    PPD_CS_N DeviceN colorspace
    PPD_CS_RGB RGB colorspace
    PPD_CS_RGBK RGBK (K = gray) colorspace

     DEPRECATED ppd_section_e

    Order dependency sections

    Constants

    PPD_ORDER_ANY Option code can be anywhere in the file
    PPD_ORDER_DOCUMENT ... must be in the DocumentSetup section
    PPD_ORDER_EXIT ... must be sent prior to the document
    PPD_ORDER_JCL ... must be sent as a JCL command
    PPD_ORDER_PAGE ... must be in the PageSetup section
    PPD_ORDER_PROLOG ... must be in the Prolog section

     DEPRECATED ppd_status_e

    Status Codes

    Constants

    PPD_ALLOC_ERROR Memory allocation error
    PPD_BAD_CLOSE_UI Bad CloseUI/JCLCloseUI
    PPD_BAD_CUSTOM_PARAM Bad custom parameter
    PPD_BAD_OPEN_GROUP Bad OpenGroup
    PPD_BAD_OPEN_UI Bad OpenUI/JCLOpenUI
    PPD_BAD_ORDER_DEPENDENCY Bad OrderDependency
    PPD_BAD_UI_CONSTRAINTS Bad UIConstraints
    PPD_BAD_VALUE Bad value string
    PPD_FILE_OPEN_ERROR Unable to open PPD file
    PPD_ILLEGAL_CHARACTER Illegal control character
    PPD_ILLEGAL_MAIN_KEYWORD Illegal main keyword string
    PPD_ILLEGAL_OPTION_KEYWORD Illegal option keyword string
    PPD_ILLEGAL_TRANSLATION Illegal translation string
    PPD_ILLEGAL_WHITESPACE Illegal whitespace character
    PPD_INTERNAL_ERROR Internal error
    PPD_LINE_TOO_LONG Line longer than 255 chars
    PPD_MISSING_ASTERISK Missing asterisk in column 0
    PPD_MISSING_CLOSE_GROUP Missing CloseGroup
    PPD_MISSING_CLOSE_UI Missing CloseUI/JCLCloseUI
    PPD_MISSING_OPTION_KEYWORD Missing option keyword
    PPD_MISSING_PPDADOBE4 Missing PPD-Adobe-4.x header
    PPD_MISSING_VALUE Missing value string
    PPD_NESTED_OPEN_GROUP OpenGroup without a CloseGroup first
    PPD_NESTED_OPEN_UI OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first
    PPD_NULL_FILE NULL PPD file pointer
    PPD_OK OK

     DEPRECATED ppd_ui_e

    UI Types

    Constants

    PPD_UI_BOOLEAN True or False option
    PPD_UI_PICKMANY Pick zero or more from a list
    PPD_UI_PICKONE Pick one from a list
    cups-2.4.7/doc/help/api-filter.html0000644000175000017500000016232414502571342017010 0ustar zdohnalzdohnal Filter and Backend Programming

    Filter and Backend Programming

    Headers cups/backend.h
    cups/ppd.h
    cups/sidechannel.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS API
    Programming: PPD API
    Programming: Raster API
    Programming: Developing PostScript Printer Drivers
    Programming: Developing Raster Printer Drivers
    Specifications: CUPS Design Description

    Overview

    Filters (which include printer drivers and port monitors) and backends are used to convert job files to a printable format and send that data to the printer itself. All of these programs use a common interface for processing print jobs and communicating status information to the scheduler. Each is run with a standard set of command-line arguments:

    argv[1]
    The job ID
    argv[2]
    The user printing the job
    argv[3]
    The job name/title
    argv[4]
    The number of copies to print
    argv[5]
    The options that were provided when the job was submitted
    argv[6]
    The file to print (first program only)

    The scheduler runs one or more of these programs to print any given job. The first filter reads from the print file and writes to the standard output, while the remaining filters read from the standard input and write to the standard output. The backend is the last filter in the chain and writes to the device.

    Filters are always run as a non-privileged user, typically "lp", with no connection to the user's desktop. Backends are run either as a non-privileged user or as root if the file permissions do not allow user or group execution. The file permissions section talks about this in more detail.

    Security Considerations

    It is always important to use security programming practices. Filters and most backends are run as a non-privileged user, so the major security consideration is resource utilization - filters should not depend on unlimited amounts of CPU, memory, or disk space, and should protect against conditions that could lead to excess usage of any resource like infinite loops and unbounded recursion. In addition, filters must never allow the user to specify an arbitrary file path to a separator page, template, or other file used by the filter since that can lead to an unauthorized disclosure of information. Always treat input as suspect and validate it!

    If you are developing a backend that runs as root, make sure to check for potential buffer overflows, integer under/overflow conditions, and file accesses since these can lead to privilege escalations. When writing files, always validate the file path and never allow a user to determine where to store a file.

    Note:

    Never write files to a user's home directory. Aside from the security implications, CUPS is a network print service and as such the network user may not be the same as the local user and/or there may not be a local home directory to write to.

    In addition, some operating systems provide additional security mechanisms that further limit file system access, even for backends running as root. On macOS, for example, no backend may write to a user's home directory. See the Sandboxing on macOS section for more information.

    Canceled Jobs and Signal Handling

    The scheduler sends SIGTERM when a printing job is canceled or held. Filters, backends, and port monitors must catch SIGTERM and perform any cleanup necessary to produce a valid output file or return the printer to a known good state. The recommended behavior is to end the output on the current page, preferably on the current line or object being printed.

    Filters and backends may also receive SIGPIPE when an upstream or downstream filter/backend exits with a non-zero status. Developers should generally ignore SIGPIPE at the beginning of main() with the following function call:

    #include <signal.h>
    
    ...
    
    int
    main(int argc, char *argv[])
    {
      signal(SIGPIPE, SIG_IGN);
    
      ...
    }
    

    File Permissions

    For security reasons, CUPS will only run filters and backends that are owned by root and do not have world or group write permissions. The recommended permissions for filters and backends are 0555 - read and execute but no write. Backends that must run as root should use permissions of 0500 - read and execute by root, no access for other users. Write permissions can be enabled for the root user only.

    To avoid a warning message, the directory containing your filter(s) must also be owned by root and have world and group write disabled - permissions of 0755 or 0555 are strongly encouraged.

    Temporary Files

    Temporary files should be created in the directory specified by the "TMPDIR" environment variable. The cupsTempFile2 function can be used to safely create temporary files in this directory.

    Copy Generation

    The argv[4] argument specifies the number of copies to produce of the input file. In general, you should only generate copies if the filename argument is supplied. The only exception to this are filters that produce device-independent PostScript output, since the PostScript filter pstops is responsible for generating copies of PostScript files.

    Exit Codes

    Filters must exit with status 0 when they successfully generate print data or 1 when they encounter an error. Backends can return any of the cups_backend_t constants.

    Environment Variables

    The following environment variables are defined by the printing system when running print filters and backends:

    APPLE_LANGUAGE
    The Apple language identifier associated with the job (macOS only).
    CHARSET
    The job character set, typically "utf-8".
    CLASS
    When a job is submitted to a printer class, contains the name of the destination printer class. Otherwise this environment variable will not be set.
    CONTENT_TYPE
    The MIME type associated with the file (e.g. application/postscript).
    CUPS_CACHEDIR
    The directory where cache files can be stored. Cache files can be used to retain information between jobs or files in a job.
    CUPS_DATADIR
    The directory where (read-only) CUPS data files can be found.
    CUPS_FILETYPE
    The type of file being printed: "job-sheet" for a banner page and "document" for a regular print file.
    CUPS_SERVERROOT
    The root directory of the server.
    DEVICE_URI
    The device-uri associated with the printer.
    FINAL_CONTENT_TYPE
    The MIME type associated with the printer (e.g. application/vnd.cups-postscript).
    LANG
    The language locale associated with the job.
    PPD
    The full pathname of the PostScript Printer Description (PPD) file for this printer.
    PRINTER
    The queue name of the class or printer.
    RIP_CACHE
    The recommended amount of memory to use for Raster Image Processors (RIPs).
    TMPDIR
    The directory where temporary files should be created.

    Communicating with the Scheduler

    Filters and backends communicate with the scheduler by writing messages to the standard error file. The scheduler reads messages from all filters in a job and processes the message based on its prefix. For example, the following code sets the current printer state message to "Printing page 5":

    int page = 5;
    
    fprintf(stderr, "INFO: Printing page %d\n", page);
    

    Each message is a single line of text starting with one of the following prefix strings:

    ALERT: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "alert" log level.
    ATTR: attribute=value [attribute=value]
    Sets the named printer or job attribute(s). Typically this is used to set the marker-colors, marker-high-levels, marker-levels, marker-low-levels, marker-message, marker-names, marker-types, printer-alert, and printer-alert-description printer attributes. Standard marker-types values are listed in Table 1. String values need special handling - see Reporting Attribute String Values below.
    CRIT: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "critical" log level.
    DEBUG: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "debug" log level.
    DEBUG2: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "debug2" log level.
    EMERG: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "emergency" log level.
    ERROR: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "error" log level. Use "ERROR:" messages for non-persistent processing errors.
    INFO: message
    Sets the printer-state-message attribute. If the current log level is set to "debug2", also adds the specified message to the current error log file using the "info" log level.
    NOTICE: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "notice" log level.
    PAGE: page-number #-copies
    PAGE: total #-pages
    Adds an entry to the current page log file. The first form adds #-copies to the job-media-sheets-completed attribute. The second form sets the job-media-sheets-completed attribute to #-pages.
    PPD: keyword=value [keyword=value ...]
    Changes or adds keywords to the printer's PPD file. Typically this is used to update installable options or default media settings based on the printer configuration.
    STATE: + printer-state-reason [printer-state-reason ...]
    STATE: - printer-state-reason [printer-state-reason ...]
    Sets or clears printer-state-reason keywords for the current queue. Typically this is used to indicate persistent media, ink, toner, and configuration conditions or errors on a printer. Table 2 lists some of the standard "printer-state-reasons" keywords from the IANA IPP Registry - use vendor-prefixed ("com.example.foo") keywords for custom states. See Managing Printer State in a Filter for more information.
    WARNING: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "warning" log level.

    Messages without one of these prefixes are treated as if they began with the "DEBUG:" prefix string.

    Table 1: Standard marker-types Values
    marker-type Description
    developer Developer unit
    fuser Fuser unit
    fuser-cleaning-pad Fuser cleaning pad
    fuser-oil Fuser oil
    ink Ink supply
    opc Photo conductor
    solid-wax Wax supply
    staples Staple supply
    toner Toner supply
    transfer-unit Transfer unit
    waste-ink Waste ink tank
    waste-toner Waste toner tank
    waste-wax Waste wax tank

    Table 2: Standard State Keywords
    Keyword Description
    connecting-to-device Connecting to printer but not printing yet.
    cover-open The printer's cover is open.
    input-tray-missing The paper tray is missing.
    marker-supply-empty The printer is out of ink.
    marker-supply-low The printer is almost out of ink.
    marker-waste-almost-full The printer's waste bin is almost full.
    marker-waste-full The printer's waste bin is full.
    media-empty The paper tray (any paper tray) is empty.
    media-jam There is a paper jam.
    media-low The paper tray (any paper tray) is almost empty.
    media-needed The paper tray needs to be filled (for a job that is printing).
    paused Stop the printer.
    timed-out Unable to connect to printer.
    toner-empty The printer is out of toner.
    toner-low The printer is low on toner.

    Reporting Attribute String Values

    When reporting string values using "ATTR:" messages, a filter or backend must take special care to appropriately quote those values. The scheduler uses the CUPS option parsing code for attributes, so the general syntax is:

    name=simple
    name=simple,simple,...
    name='complex value'
    name="complex value"
    name='"complex value"','"complex value"',...
    

    Simple values are strings that do not contain spaces, quotes, backslashes, or the comma and can be placed verbatim in the "ATTR:" message, for example:

    int levels[4] = { 40, 50, 60, 70 }; /* CMYK */
    
    fputs("ATTR: marker-colors=#00FFFF,#FF00FF,#FFFF00,#000000\n", stderr);
    fputs("ATTR: marker-high-levels=100,100,100,100\n", stderr);
    fprintf(stderr, "ATTR: marker-levels=%d,%d,%d,%d\n", levels[0], levels[1],
            levels[2], levels[3], levels[4]);
    fputs("ATTR: marker-low-levels=5,5,5,5\n", stderr);
    fputs("ATTR: marker-types=toner,toner,toner,toner\n", stderr);
    

    Complex values that contains spaces, quotes, backslashes, or the comma must be quoted. For a single value a single set of quotes is sufficient:

    fputs("ATTR: marker-message='Levels shown are approximate.'\n", stderr);
    

    When multiple values are reported, each value must be enclosed by a set of single and double quotes:

    fputs("ATTR: marker-names='\"Cyan Toner\"','\"Magenta Toner\"',"
          "'\"Yellow Toner\"','\"Black Toner\"'\n", stderr);
    

    The IPP backend includes a quote_string function that may be used to properly quote a complex value in an "ATTR:" message:

    static const char *                     /* O - Quoted string */
    quote_string(const char *s,             /* I - String */
                 char       *q,             /* I - Quoted string buffer */
                 size_t     qsize)          /* I - Size of quoted string buffer */
    {
      char  *qptr,                          /* Pointer into string buffer */
            *qend;                          /* End of string buffer */
    
    
      qptr = q;
      qend = q + qsize - 5;
    
      if (qend < q)
      {
        *q = '\0';
        return (q);
      }
    
      *qptr++ = '\'';
      *qptr++ = '\"';
    
      while (*s && qptr < qend)
      {
        if (*s == '\\' || *s == '\"' || *s == '\'')
        {
          if (qptr < (qend - 4))
          {
            *qptr++ = '\\';
            *qptr++ = '\\';
            *qptr++ = '\\';
          }
          else
            break;
        }
    
        *qptr++ = *s++;
      }
    
      *qptr++ = '\"';
      *qptr++ = '\'';
      *qptr   = '\0';
    
      return (q);
    }
    

    Managing Printer State in a Filter

    Filters are responsible for managing the state keywords they set using "STATE:" messages. Typically you will update all of the keywords that are used by the filter at startup, for example:

    if (foo_condition != 0)
      fputs("STATE: +com.example.foo\n", stderr);
    else
      fputs("STATE: -com.example.foo\n", stderr);
    
    if (bar_condition != 0)
      fputs("STATE: +com.example.bar\n", stderr);
    else
      fputs("STATE: -com.example.bar\n", stderr);
    

    Then as conditions change, your filter sends "STATE: +keyword" or "STATE: -keyword" messages as necessary to set or clear the corresponding keyword, respectively.

    State keywords are often used to notify the user of issues that span across jobs, for example "media-empty-warning" that indicates one or more paper trays are empty. These keywords should not be cleared unless the corresponding issue no longer exists.

    Filters should clear job-related keywords on startup and exit so that they do not remain set between jobs. For example, "connecting-to-device" is a job sub-state and not an issue that applies when a job is not printing.

    Note:

    "STATE:" messages often provide visible alerts to the user. For example, on macOS setting a printer-state-reason value with an "-error" or "-warning" suffix will cause the printer's dock item to bounce if the corresponding reason is localized with a cupsIPPReason keyword in the printer's PPD file.

    When providing a vendor-prefixed keyword, always provide the corresponding standard keyword (if any) to allow clients to respond to the condition correctly. For example, if you provide a vendor-prefixed keyword for a low cyan ink condition ("com.example.cyan-ink-low") you must also set the "marker-supply-low-warning" keyword. In such cases you should also refrain from localizing the vendor-prefixed keyword in the PPD file - otherwise both the generic and vendor-specific keyword will be shown in the user interface.

    Reporting Supply Levels

    CUPS tracks several "marker-*" attributes for ink/toner supply level reporting. These attributes allow applications to display the current supply levels for a printer without printer-specific software. Table 3 lists the marker attributes and what they represent.

    Filters set marker attributes by sending "ATTR:" messages to stderr. For example, a filter supporting an inkjet printer with black and tri-color ink cartridges would use the following to initialize the supply attributes:

    fputs("ATTR: marker-colors=#000000,#00FFFF#FF00FF#FFFF00\n", stderr);
    fputs("ATTR: marker-low-levels=5,10\n", stderr);
    fputs("ATTR: marker-names=Black,Tri-Color\n", stderr);
    fputs("ATTR: marker-types=ink,ink\n", stderr);
    

    Then periodically the filter queries the printer for its current supply levels and updates them with a separate "ATTR:" message:

    int black_level, tri_level;
    ...
    fprintf(stderr, "ATTR: marker-levels=%d,%d\n", black_level, tri_level);
    
    Table 3: Supply Level Attributes
    Attribute Description
    marker-colors A list of comma-separated colors; each color is either "none" or one or more hex-encoded sRGB colors of the form "#RRGGBB".
    marker-high-levels A list of comma-separated "almost full" level values from 0 to 100; a value of 100 should be used for supplies that are consumed/emptied like ink cartridges.
    marker-levels A list of comma-separated level values for each supply. A value of -1 indicates the level is unavailable, -2 indicates unknown, and -3 indicates the level is unknown but has not yet reached capacity. Values from 0 to 100 indicate the corresponding percentage.
    marker-low-levels A list of comma-separated "almost empty" level values from 0 to 100; a value of 0 should be used for supplies that are filled like waste ink tanks.
    marker-message A human-readable supply status message for the user like "12 pages of ink remaining."
    marker-names A list of comma-separated supply names like "Cyan Ink", "Fuser", etc.
    marker-types A list of comma-separated supply types; the types are listed in Table 1.

    Communicating with the Backend

    Filters can communicate with the backend via the cupsBackChannelRead and cupsSideChannelDoRequest functions. The cupsBackChannelRead function reads data that has been sent back from the device and is typically used to obtain status and configuration information. For example, the following code polls the backend for back-channel data:

    #include <cups/cups.h>
    
    char buffer[8192];
    ssize_t bytes;
    
    /* Use a timeout of 0.0 seconds to poll for back-channel data */
    bytes = cupsBackChannelRead(buffer, sizeof(buffer), 0.0);
    

    Filters can also use select() or poll() on the back-channel file descriptor (3 or CUPS_BC_FD) to read data only when it is available.

    The cupsSideChannelDoRequest function allows you to get out-of-band status information and do synchronization with the device. For example, the following code gets the current IEEE-1284 device ID string from the backend:

    #include <cups/sidechannel.h>
    
    char data[2049];
    int datalen;
    cups_sc_status_t status;
    
    /* Tell cupsSideChannelDoRequest() how big our buffer is, less 1 byte for
       nul-termination... */
    datalen = sizeof(data) - 1;
    
    /* Get the IEEE-1284 device ID, waiting for up to 1 second */
    status = cupsSideChannelDoRequest(CUPS_SC_CMD_GET_DEVICE_ID, data, &datalen, 1.0);
    
    /* Use the returned value if OK was returned and the length is non-zero */
    if (status == CUPS_SC_STATUS_OK && datalen > 0)
      data[datalen] = '\0';
    else
      data[0] = '\0';
    

    Forcing All Output to a Printer

    The cupsSideChannelDoRequest function allows you to tell the backend to send all pending data to the printer. This is most often needed when sending query commands to the printer. For example:

    #include <cups/cups.h>
    #include <cups/sidechannel.h>
    
    char data[1024];
    int datalen = sizeof(data);
    cups_sc_status_t status;
    
    /* Flush pending output to stdout */
    fflush(stdout);
    
    /* Drain output to backend, waiting for up to 30 seconds */
    status = cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, data, &datalen, 30.0);
    
    /* Read the response if the output was sent */
    if (status == CUPS_SC_STATUS_OK)
    {
      ssize_t bytes;
    
      /* Wait up to 10.0 seconds for back-channel data */
      bytes = cupsBackChannelRead(data, sizeof(data), 10.0);
      /* do something with the data from the printer */
    }
    

    Communicating with Filters

    Backends communicate with filters using the reciprocal functions cupsBackChannelWrite, cupsSideChannelRead, and cupsSideChannelWrite. We recommend writing back-channel data using a timeout of 1.0 seconds:

    #include <cups/cups.h>
    
    char buffer[8192];
    ssize_t bytes;
    
    /* Obtain data from printer/device */
    ...
    
    /* Use a timeout of 1.0 seconds to give filters a chance to read */
    cupsBackChannelWrite(buffer, bytes, 1.0);
    

    The cupsSideChannelRead function reads a side-channel command from a filter, driver, or port monitor. Backends can either poll for commands using a timeout of 0.0, wait indefinitely for commands using a timeout of -1.0 (probably in a separate thread for that purpose), or use select or poll on the CUPS_SC_FD file descriptor (4) to handle input and output on several file descriptors at the same time.

    Once a command is processed, the backend uses the cupsSideChannelWrite function to send its response. For example, the following code shows how to poll for a side-channel command and respond to it:

    #include <cups/sidechannel.h>
    
    cups_sc_command_t command;
    cups_sc_status_t status;
    char data[2048];
    int datalen = sizeof(data);
    
    /* Poll for a command... */
    if (!cupsSideChannelRead(&command, &status, data, &datalen, 0.0))
    {
      switch (command)
      {
        /* handle supported commands, fill data/datalen/status with values as needed */
    
        default :
            status  = CUPS_SC_STATUS_NOT_IMPLEMENTED;
    	datalen = 0;
    	break;
      }
    
      /* Send a response... */
      cupsSideChannelWrite(command, status, data, datalen, 1.0);
    }
    

    Doing SNMP Queries with Network Printers

    The Simple Network Management Protocol (SNMP) allows you to get the current status, page counter, and supply levels from most network printers. Every piece of information is associated with an Object Identifier (OID), and every printer has a community name associated with it. OIDs can be queried directly or by "walking" over a range of OIDs with a common prefix.

    The two CUPS SNMP functions provide a simple API for querying network printers through the side-channel interface. Each accepts a string containing an OID like ".1.3.6.1.2.1.43.10.2.1.4.1.1" (the standard page counter OID) along with a timeout for the query.

    The cupsSideChannelSNMPGet function queries a single OID and returns the value as a string in a buffer you supply:

    #include <cups/sidechannel.h>
    
    char data[512];
    int datalen = sizeof(data);
    
    if (cupsSideChannelSNMPGet(".1.3.6.1.2.1.43.10.2.1.4.1.1", data, &datalen, 5.0)
            == CUPS_SC_STATUS_OK)
    {
      /* Do something with the value */
      printf("Page counter is: %s\n", data);
    }
    

    The cupsSideChannelSNMPWalk function allows you to query a whole group of OIDs, calling a function of your choice for each OID that is found:

    #include <cups/sidechannel.h>
    
    void
    my_callback(const char *oid, const char *data, int datalen, void *context)
    {
      /* Do something with the value */
      printf("%s=%s\n", oid, data);
    }
    
    ...
    
    void *my_data;
    
    cupsSNMPSideChannelWalk(".1.3.6.1.2.1.43", 5.0, my_callback, my_data);
    

    Sandboxing on macOS

    Starting with macOS 10.6, filters and backends are run inside a security "sandbox" which further limits (beyond the normal UNIX user/group permissions) what a filter or backend can do. This helps to both secure the printing system from malicious software and enforce the functional separation of components in the CUPS filter chain. What follows is a list of actions that are explicitly allowed for all filters and backends:

    1. Reading of files: pursuant to normal UNIX file permissions, filters and backends can read files for the current job from the /private/var/spool/cups directory and other files on mounted filesystems except for user home directories under /Users.
    2. Writing of files: pursuant to normal UNIX file permissions, filters and backends can read/write files to the cache directory specified by the CUPS_CACHEDIR environment variable, to the state directory specified by the CUPS_STATEDIR environment variable, to the temporary directory specified by the TMPDIR environment variable, and under the /private/var/db, /private/var/folders, /private/var/lib, /private/var/mysql, /private/var/run, /private/var/spool (except /private/var/spool/cups), /Library/Application Support, /Library/Caches, /Library/Logs, /Library/Preferences, /Library/WebServer, and /Users/Shared directories.
    3. Execution of programs: pursuant to normal UNIX file permissions, filters and backends can execute any program not located under the /Users directory. Child processes inherit the sandbox and are subject to the same restrictions as the parent.
    4. Bluetooth and USB: backends can access Bluetooth and USB printers through IOKit. Filters cannot access Bluetooth and USB printers directly.
    5. Network: filters and backends can access UNIX domain sockets under the /private/tmp, /private/var/run, and /private/var/tmp directories. Backends can also create IPv4 and IPv6 TCP (outgoing) and UDP (incoming and outgoing) socket, and bind to local source ports. Filters cannot directly create IPv4 and IPv6 TCP or UDP sockets.
    6. Notifications: filters and backends can send notifications via the Darwin notify_post() API.
    Note:

    The sandbox profile used in CUPS still allows some actions that are not listed above - these privileges will be removed over time until the profile matches the list above.

    Functions

     CUPS 1.2/macOS 10.5 cupsBackChannelRead

    Read data from the backchannel.

    ssize_t cupsBackChannelRead(char *buffer, size_t bytes, double timeout);

    Parameters

    buffer Buffer to read into
    bytes Bytes to read
    timeout Timeout in seconds, typically 0.0 to poll

    Return Value

    Bytes read or -1 on error

    Discussion

    Reads up to "bytes" bytes from the backchannel/backend. The "timeout" parameter controls how many seconds to wait for the data - use 0.0 to return immediately if there is no data, -1.0 to wait for data indefinitely.

     CUPS 1.2/macOS 10.5 cupsBackChannelWrite

    Write data to the backchannel.

    ssize_t cupsBackChannelWrite(const char *buffer, size_t bytes, double timeout);

    Parameters

    buffer Buffer to write
    bytes Bytes to write
    timeout Timeout in seconds, typically 1.0

    Return Value

    Bytes written or -1 on error

    Discussion

    Writes "bytes" bytes to the backchannel/filter. The "timeout" parameter controls how many seconds to wait for the data to be written - use 0.0 to return immediately if the data cannot be written, -1.0 to wait indefinitely.

     CUPS 1.2/macOS 10.5 cupsBackendDeviceURI

    Get the device URI for a backend.

    const char *cupsBackendDeviceURI(char **argv);

    Parameters

    argv Command-line arguments

    Return Value

    Device URI or NULL

    Discussion

    The "argv" argument is the argv argument passed to main(). This function returns the device URI passed in the DEVICE_URI environment variable or the device URI passed in argv[0], whichever is found first.

     CUPS 1.4/macOS 10.6 cupsBackendReport

    Write a device line from a backend.

    void cupsBackendReport(const char *device_scheme, const char *device_uri, const char *device_make_and_model, const char *device_info, const char *device_id, const char *device_location);

    Parameters

    device_scheme device-scheme string
    device_uri device-uri string
    device_make_and_model device-make-and-model string or NULL
    device_info device-info string or NULL
    device_id device-id string or NULL
    device_location device-location string or NULL

    Discussion

    This function writes a single device line to stdout for a backend. It handles quoting of special characters in the device-make-and-model, device-info, device-id, and device-location strings.

     CUPS 1.3/macOS 10.5 cupsSideChannelDoRequest

    Send a side-channel command to a backend and wait for a response.

    cups_sc_status_t cupsSideChannelDoRequest(cups_sc_command_t command, char *data, int *datalen, double timeout);

    Parameters

    command Command to send
    data Response data buffer pointer
    datalen Size of data buffer on entry, number of bytes in buffer on return
    timeout Timeout in seconds

    Return Value

    Status of command

    Discussion

    This function is normally only called by filters, drivers, or port monitors in order to communicate with the backend used by the current printer. Programs must be prepared to handle timeout or "not implemented" status codes, which indicate that the backend or device do not support the specified side-channel command.

    The "datalen" parameter must be initialized to the size of the buffer pointed to by the "data" parameter. cupsSideChannelDoRequest() will update the value to contain the number of data bytes in the buffer.

     CUPS 1.3/macOS 10.5 cupsSideChannelRead

    Read a side-channel message.

    int cupsSideChannelRead(cups_sc_command_t *command, cups_sc_status_t *status, char *data, int *datalen, double timeout);

    Parameters

    command Command code
    status Status code
    data Data buffer pointer
    datalen Size of data buffer on entry, number of bytes in buffer on return
    timeout Timeout in seconds

    Return Value

    0 on success, -1 on error

    Discussion

    This function is normally only called by backend programs to read commands from a filter, driver, or port monitor program. The caller must be prepared to handle incomplete or invalid messages and return the corresponding status codes.

    The "datalen" parameter must be initialized to the size of the buffer pointed to by the "data" parameter. cupsSideChannelDoRequest() will update the value to contain the number of data bytes in the buffer.

     CUPS 1.4/macOS 10.6 cupsSideChannelSNMPGet

    Query a SNMP OID's value.

    cups_sc_status_t cupsSideChannelSNMPGet(const char *oid, char *data, int *datalen, double timeout);

    Parameters

    oid OID to query
    data Buffer for OID value
    datalen Size of OID buffer on entry, size of value on return
    timeout Timeout in seconds

    Return Value

    Query status

    Discussion

    This function asks the backend to do a SNMP OID query on behalf of the filter, port monitor, or backend using the default community name.

    "oid" contains a numeric OID consisting of integers separated by periods, for example ".1.3.6.1.2.1.43". Symbolic names from SNMP MIBs are not supported and must be converted to their numeric forms.

    On input, "data" and "datalen" provide the location and size of the buffer to hold the OID value as a string. HEX-String (binary) values are converted to hexadecimal strings representing the binary data, while NULL-Value and unknown OID types are returned as the empty string. The returned "datalen" does not include the trailing nul. CUPS_SC_STATUS_NOT_IMPLEMENTED is returned by backends that do not support SNMP queries. CUPS_SC_STATUS_NO_RESPONSE is returned when the printer does not respond to the SNMP query.

     CUPS 1.4/macOS 10.6 cupsSideChannelSNMPWalk

    Query multiple SNMP OID values.

    cups_sc_status_t cupsSideChannelSNMPWalk(const char *oid, double timeout, cups_sc_walk_func_t cb, void *context);

    Parameters

    oid First numeric OID to query
    timeout Timeout for each query in seconds
    cb Function to call with each value
    context Application-defined pointer to send to callback

    Return Value

    Status of first query of CUPS_SC_STATUS_OK on success

    Discussion

    This function asks the backend to do multiple SNMP OID queries on behalf of the filter, port monitor, or backend using the default community name. All OIDs under the "parent" OID are queried and the results are sent to the callback function you provide.

    "oid" contains a numeric OID consisting of integers separated by periods, for example ".1.3.6.1.2.1.43". Symbolic names from SNMP MIBs are not supported and must be converted to their numeric forms.

    "timeout" specifies the timeout for each OID query. The total amount of time will depend on the number of OID values found and the time required for each query.

    "cb" provides a function to call for every value that is found. "context" is an application-defined pointer that is sent to the callback function along with the OID and current data. The data passed to the callback is the same as returned by cupsSideChannelSNMPGet. CUPS_SC_STATUS_NOT_IMPLEMENTED is returned by backends that do not support SNMP queries. CUPS_SC_STATUS_NO_RESPONSE is returned when the printer does not respond to the first SNMP query.

     CUPS 1.3/macOS 10.5 cupsSideChannelWrite

    Write a side-channel message.

    int cupsSideChannelWrite(cups_sc_command_t command, cups_sc_status_t status, const char *data, int datalen, double timeout);

    Parameters

    command Command code
    status Status code
    data Data buffer pointer
    datalen Number of bytes of data
    timeout Timeout in seconds

    Return Value

    0 on success, -1 on error

    Discussion

    This function is normally only called by backend programs to send responses to a filter, driver, or port monitor program.

    Data Types

    cups_backend_t

    Backend exit codes

    typedef enum cups_backend_e cups_backend_t;

    cups_sc_bidi_t

    Bidirectional capabilities

    typedef enum cups_sc_bidi_e cups_sc_bidi_t;

    cups_sc_command_t

    Request command codes

    typedef enum cups_sc_command_e cups_sc_command_t;

    cups_sc_connected_t

    Connectivity values

    typedef enum cups_sc_connected_e cups_sc_connected_t;

    cups_sc_state_t

    Printer state bits

    typedef enum cups_sc_state_e cups_sc_state_t;

    cups_sc_status_t

    Response status codes

    typedef enum cups_sc_status_e cups_sc_status_t;

    cups_sc_walk_func_t

    SNMP walk callback

    typedef void (*cups_sc_walk_func_t)(const char *oid, const char *data, int datalen, void *context);

    Constants

    cups_backend_e

    Backend exit codes

    Constants

    CUPS_BACKEND_AUTH_REQUIRED Job failed, authentication required
    CUPS_BACKEND_CANCEL Job failed, cancel job
    CUPS_BACKEND_FAILED Job failed, use error-policy
    CUPS_BACKEND_HOLD Job failed, hold job
    CUPS_BACKEND_OK Job completed successfully
    CUPS_BACKEND_RETRY Job failed, retry this job later
    CUPS_BACKEND_RETRY_CURRENT Job failed, retry this job immediately
    CUPS_BACKEND_STOP Job failed, stop queue

    cups_sc_bidi_e

    Bidirectional capability values

    Constants

    CUPS_SC_BIDI_NOT_SUPPORTED Bidirectional I/O is not supported
    CUPS_SC_BIDI_SUPPORTED Bidirectional I/O is supported

    cups_sc_command_e

    Request command codes

    Constants

    CUPS_SC_CMD_DRAIN_OUTPUT Drain all pending output
    CUPS_SC_CMD_GET_BIDI Return bidirectional capabilities
    CUPS_SC_CMD_GET_CONNECTED  CUPS 1.5/macOS 10.7 Return whether the backend is "connected" to the printer
    CUPS_SC_CMD_GET_DEVICE_ID Return the IEEE-1284 device ID
    CUPS_SC_CMD_GET_STATE Return the device state
    CUPS_SC_CMD_SNMP_GET  CUPS 1.4/macOS 10.6 Query an SNMP OID
    CUPS_SC_CMD_SNMP_GET_NEXT  CUPS 1.4/macOS 10.6 Query the next SNMP OID
    CUPS_SC_CMD_SOFT_RESET Do a soft reset

    cups_sc_connected_e

    Connectivity values

    Constants

    CUPS_SC_CONNECTED Backend is "connected" to printer
    CUPS_SC_NOT_CONNECTED Backend is not "connected" to printer

    cups_sc_state_e

    Printer state bits

    Constants

    CUPS_SC_STATE_BUSY Device is busy
    CUPS_SC_STATE_ERROR Other error condition
    CUPS_SC_STATE_MARKER_EMPTY Toner/ink out condition
    CUPS_SC_STATE_MARKER_LOW Toner/ink low condition
    CUPS_SC_STATE_MEDIA_EMPTY Paper out condition
    CUPS_SC_STATE_MEDIA_LOW Paper low condition
    CUPS_SC_STATE_OFFLINE Device is offline
    CUPS_SC_STATE_ONLINE Device is online

    cups_sc_status_e

    Response status codes

    Constants

    CUPS_SC_STATUS_BAD_MESSAGE The command/response message was invalid
    CUPS_SC_STATUS_IO_ERROR An I/O error occurred
    CUPS_SC_STATUS_NONE No status
    CUPS_SC_STATUS_NOT_IMPLEMENTED Command not implemented
    CUPS_SC_STATUS_NO_RESPONSE The device did not respond
    CUPS_SC_STATUS_OK Operation succeeded
    CUPS_SC_STATUS_TIMEOUT The backend did not respond
    CUPS_SC_STATUS_TOO_BIG Response too big
    cups-2.4.7/doc/help/api-admin.html0000644000175000017500000004155514502571342016615 0ustar zdohnalzdohnal Administration APIs

    Administrative APIs

    Header cups/adminutil.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS API
    Programming: HTTP and IPP APIs

    Overview

    The administrative APIs provide convenience functions to perform certain administrative functions with the CUPS scheduler.

    Note:

    Administrative functions normally require administrative privileges to execute and must not be used in ordinary user applications!

    Scheduler Settings

    The cupsAdminGetServerSettings and cupsAdminSetServerSettings functions allow you to get and set simple directives and their values, respectively, in the cupsd.conf file for the CUPS scheduler. Settings are stored in CUPS option arrays which provide a simple list of string name/value pairs. While any simple cupsd.conf directive name can be specified, the following convenience names are also defined to control common complex directives:

    • CUPS_SERVER_DEBUG_LOGGING
    • : For cupsAdminGetServerSettings, a value of "1" means that the LogLevel directive is set to debug or debug2 while a value of "0" means it is set to any other value. For cupsAdminSetServerSettings a value of "1" sets the LogLeveL to debug while a value of "0" sets it to warn.
    • CUPS_SERVER_REMOTE_ADMIN
    • : A value of "1" specifies that administrative requests are accepted from remote addresses while "0" specifies that requests are only accepted from local addresses (loopback interface and domain sockets).
    • CUPS_SERVER_REMOTE_ANY
    • : A value of "1" specifies that requests are accepts from any address while "0" specifies that requests are only accepted from the local subnet (when sharing is enabled) or local addresses (loopback interface and domain sockets).
    • CUPS_SERVER_SHARE_PRINTERS
    • : A value of "1" specifies that printer sharing is enabled for selected printers and remote requests are accepted while a value of "0" specifies that printer sharing is disables and remote requests are not accepted.
    • CUPS_SERVER_USER_CANCEL_ANY
    • : A value of "1" specifies that the default security policy allows any user to cancel any print job, regardless of the owner. A value of "0" specifies that only administrative users can cancel other user's jobs.
    Note:

    Changing settings will restart the CUPS scheduler.

    When printer sharing or the web interface are enabled, the scheduler's launch-on-demand functionality is effectively disabled. This can affect power usage, system performance, and the security profile of a system.

    The recommended way to make changes to the cupsd.conf is to first call cupsAdminGetServerSettings, make any changes to the returned option array, and then call cupsAdminSetServerSettings to save those settings. For example, to enable the web interface:

    #include <cups/cups.h>
    #include <cups/adminutil.h>
    
    void
    enable_web_interface(void)
    {
      int num_settings = 0;           /* Number of settings */
      cups_option_t *settings = NULL; /* Settings */
    
    
      if (!cupsAdminGetServerSettings(CUPS_HTTP_DEFAULT, &num_settings, &settings))
      {
        fprintf(stderr, "ERROR: Unable to get server settings: %s\n", cupsLastErrorString());
        return;
      }
    
      num_settings = cupsAddOption("WebInterface", "Yes", num_settings, &settings);
    
      if (!cupsAdminSetServerSettings(CUPS_HTTP_DEFAULT, num_settings, settings))
      {
        fprintf(stderr, "ERROR: Unable to set server settings: %s\n", cupsLastErrorString());
      }
    
      cupsFreeOptions(num_settings, settings);
    }
    

    Devices

    Printers can be discovered through the CUPS scheduler using the cupsGetDevices API. Typically this API is used to locate printers to add to the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:

    #include <cups/cups.h>
    #include <cups/adminutil.h>
    
    
    void
    get_devices_cb(
        const char *device_class,           /* I - Class */
        const char *device_id,              /* I - 1284 device ID */
        const char *device_info,            /* I - Description */
        const char *device_make_and_model,  /* I - Make and model */
        const char *device_uri,             /* I - Device URI */
        const char *device_location,        /* I - Location */
        void       *user_data)              /* I - User data */
    {
      puts(device_uri);
    }
    
    
    void
    show_devices(void)
    {
      cupsGetDevices(CUPS_HTTP_DEFAULT, 30, NULL, NULL, get_devices_cb, NULL);
    }
    

    Functions

     DEPRECATED cupsAdminCreateWindowsPPD

    Create the Windows PPD file for a printer.

    char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest, char *buffer, int bufsize);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    dest Printer or class
    buffer Filename buffer
    bufsize Size of filename buffer

    Return Value

    PPD file or NULL

     DEPRECATED cupsAdminExportSamba

    Export a printer to Samba.

    int cupsAdminExportSamba(const char *dest, const char *ppd, const char *samba_server, const char *samba_user, const char *samba_password, FILE *logfile);

    Parameters

    dest Destination to export
    ppd PPD file
    samba_server Samba server
    samba_user Samba username
    samba_password Samba password
    logfile Log file, if any

    Return Value

    1 on success, 0 on failure

     CUPS 1.3/macOS 10.5 cupsAdminGetServerSettings

    Get settings from the server.

    int cupsAdminGetServerSettings(http_t *http, int *num_settings, cups_option_t **settings);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    num_settings Number of settings
    settings Settings

    Return Value

    1 on success, 0 on failure

    Discussion

    The returned settings should be freed with cupsFreeOptions() when you are done with them.

     CUPS 1.3/macOS 10.5 cupsAdminSetServerSettings

    Set settings on the server.

    int cupsAdminSetServerSettings(http_t *http, int num_settings, cups_option_t *settings);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    num_settings Number of settings
    settings Settings

    Return Value

    1 on success, 0 on failure

     DEPRECATED cupsGetDevices

    Get available printer devices.

    ipp_status_t cupsGetDevices(http_t *http, int timeout, const char *include_schemes, const char *exclude_schemes, cups_device_cb_t callback, void *user_data);

    Parameters

    http Connection to server or CUPS_HTTP_DEFAULT
    timeout Timeout in seconds or CUPS_TIMEOUT_DEFAULT
    include_schemes Comma-separated URI schemes to include or CUPS_INCLUDE_ALL
    exclude_schemes Comma-separated URI schemes to exclude or CUPS_EXCLUDE_NONE
    callback Callback function
    user_data User data pointer

    Return Value

    Request status - IPP_OK on success.

    Discussion

    This function sends a CUPS-Get-Devices request and streams the discovered devices to the specified callback function. The "timeout" parameter controls how long the request lasts, while the "include_schemes" and "exclude_schemes" parameters provide comma-delimited lists of backends to include or omit from the request respectively.

    This function is deprecated with the IPP printer discovery functionality being provided by the cupsEnumDests and @cupsGetDests@ functions.

    Data Types

     CUPS 1.4/macOS 10.6 cups_device_cb_t

    Device callback

    typedef void (*cups_device_cb_t)(const char *device_class, const char *device_id, const char *device_info, const char *device_make_and_model, const char *device_uri, const char *device_location, void *user_data);

    cups-2.4.7/doc/help/admin.html0000644000175000017500000002724114502571342016042 0ustar zdohnalzdohnal Command-Line Printer Administration

    Command-Line Printer Administration

    This help document describes how to configure and manage destinations with CUPS.

    Introduction

    Destinations are individual printers and classes (pools) of printers. Printers use a description file with one or more driver ("filter") programs that communicate with the printer through a "backend" program. CUPS currently uses PPD (PostScript Printer Description) files to describe the printer and driver programs needed, some of which come with CUPS while others come with your operating system or Linux distribution. Backends are specified using a URI (Universal Resource Identifier) where the URI scheme is the backend name, e.g., "ipp://11.22.33.44/ipp/print" specifies the "ipp" backend - like PPD files, some backends come with CUPS while others come with your operating system.

    Classes are associated with one or more printers and are typically used to distribute print jobs amongst a group of printers or provide redundancy or high availability when printing. Print jobs sent to a class are forwarded to the next available printer in the class.

    The lpadmin(8) program is used to add, modify, or delete destinations, while the lpinfo(8) command is used to list the available printer drivers and backends. The cupsctl(8) program is used to manage the printing system as a whole, including things like debug logging and printer sharing. The CUPS web interface ("http://localhost:631" or "https://servername:631") can also be used, and most operating systems provide their own GUI administration tools.

    Managing Printers

    The lpadmin command is used to create, modify, or delete a printer. The -p option specifies a printer to create or modify:

    lpadmin -p printername ...

    The lpadmin accepts several additional options after -p printername when adding or modifying a printer:

    -D "description"
    Sets the description of the printer which is often shown instead of the printer name, for example "HP LaserJet".
    -E
    Enables the printer and accepts new print jobs.
    -L "location"
    Sets the location of the printer, for example "Conference Room".
    -m model
    Sets the printer driver using the model name.
    -o option=value
    Sets the named option.
    -v device-uri
    Sets the URI for the printer.

    The -x option deletes the named printer:

    lpadmin -x printername

    Printer Drivers and PPDs

    The -m option to lpadmin specifies the driver ("model") to use for the printer. You can run the lpinfo -m command to list all of the available drivers ("models") on your system:

    lpinfo -m

    Each line contains the driver name followed by its description, for example:

    drv:///sample.drv/dymo.ppd Dymo Label Printer
    drv:///sample.drv/epson9.ppd Epson 9-Pin Series
    drv:///sample.drv/epson24.ppd Epson 24-Pin Series
    drv:///sample.drv/generpcl.ppd Generic PCL Laser Printer
    drv:///sample.drv/generic.ppd Generic PostScript Printer
    drv:///sample.drv/deskjet.ppd HP DeskJet Series
    drv:///sample.drv/laserjet.ppd HP LaserJet Series PCL 4/5
    drv:///sample.drv/intelbar.ppd Intellitech IntelliBar Label Printer, 2.1
    drv:///sample.drv/okidata9.ppd Oki 9-Pin Series
    drv:///sample.drv/okidat24.ppd Oki 24-Pin Series
    drv:///sample.drv/zebracpl.ppd Zebra CPCL Label Printer
    drv:///sample.drv/zebraep1.ppd Zebra EPL1 Label Printer
    drv:///sample.drv/zebraep2.ppd Zebra EPL2 Label Printer
    drv:///sample.drv/zebra.ppd Zebra ZPL Label Printer
    everywhere IPP Everywhere

    The everywhere driver is used for nearly all modern networks printers sold since about 2009. For example, the following command creates a destination for a printer at IP address 11.22.33.44:

    lpadmin -p printername -E -v ipp://11.22.33.44/ipp/print -m everywhere

    The CUPS sample drivers (the "drv:///sample.drv/..." lines above) can be used for "legacy" printers. For example, the following command creates a destination for a HP LaserJet printer at IP address 11.22.33.44:

    lpadmin -p printername -E -v socket://11.22.33.44 -m drv:///sample.drv/laserjet.ppd
    Note: The CUPS sample drivers are designed to provide basic printing capabilities for the broadest range of printers possible, but generally do not exercise the full potential of the printers or CUPS. Other drivers (including the everywhere driver) provide greater printing capabilities and better print quality.

    Device URIs (Backends)

    CUPS comes with several standard backends that communicate with printers:

    1. dnssd: The Bonjour (DNS-SD) protocol.
    2. ipp: The Internet Printing Protocol (IPP) with optional encryption.
    3. ipps: The Internet Printing Protocol with mandatory encryption.
    4. lpd: The Line Printer Daemon protocol.
    5. socket: The AppSocket (JetDirect) protocol.
    6. usb: The Universal Serial Bus (USB) printer class.

    Run the lpinfo -v command to list the available backends and printers:

    lpinfo -v

    Each line contains the backend "class" followed by the backend name or a full printer device URI, for example:

    network lpd
    network ipps
    network ipp
    network socket
    network dnssd://Acme%20Laser%20Pro._ipp._tcp.local./?uuid=545253fb-1cb7-4d8d-98ed-ab6cd607cea7
    network dnssd://Bar99._printer.tcp.local./?uuid=f9efff58-9086-4c95-accb-81dee876a475
    network dnssd://Example%20EX-42._ipps._tcp.local./?uuid=4a0c67ad-2824-4ddf-9115-7d4226c5fe65
    network dnssd://Foo%20Fighter-1969._pdl-datastream._tcp.local./?uuid=4e216bea-c3de-4f65-a710-c99e11c80d2b
    direct usb://ZP/LazerJet%20MFP?serial=42

    The network class of backends is used for all network protocols. The Using Network Printers help document describes how to use the standard CUPS network backends. The direct class of backends is used for directly-connected printers such as USB and Bluetooth. Because these backends use a system-specific identifier, you should only use the reported device URIs.

    Once you know the correct URI for the printer, set it using the lpadmin command's -v option:

    lpadmin -p printername -v device-uri

    Printer Options

    The lpadmin command allows you to set various options for a printer:

    -o cupsIPPSupplies=false
    Turns off IPP supply level reporting for a printer.
    -o cupsSNMPSupplies=false
    Turns off SNMP supply level reporting for a printer.
    -o name=value
    Sets the default value for the named PPD option. For example, -o PageSize=Legal sets the default page size to US Legal.
    -o printer-error-policy=name
    Sets the policy for errors such as printers that cannot be found or accessed, don't support the format being printed, fail during submission of the print data, or cause one or more filters to crash:
    abort-job
    Aborts the job on error.
    retry-job
    Retries the job at a future time.
    retry-current-job
    Retries the current job immediately.
    stop-printer
    Stops the printer on error.
    -o printer-is-shared=true/false
    Enables/disables per-printer sharing. See the section on Printer Sharing for more information.
    -o printer-op-policy=name
    Sets the operation policy associated with the printer. See the Managing Operation Policies help document for more information.
    -u allow:{user|@group}{,user|,@group}*
    -u allow:all
    -u deny:{user|@group}{,user|,@group}*
    -u deny:none
    Sets user-level access control for the printer. The allow: list defines a whitelist of users and groups while the deny: list defines a blacklist of users and groups.

    Printer Sharing

    CUPS supports sharing of printers with other computers and mobile devices. Two cupsctl options control the general printer sharing features:

    --share-printers
    Enables sharing of printers with other computers and mobile devices on your local network.
    --remote-any
    Expands printer sharing to any network that can reach your server.

    Once you have enabled printer sharing, you then must select which printers will be shared using the lpadmin command and the -o printer-is-shared=true option.

    For example, to share two printers ("foo" and "bar") on the local network, run the following commands:

    cupsctl --share-printers
    lpadmin -p foo -o printer-is-shared=true
    lpadmin -p bar -o printer-is-shared=true

    Managing Classes

    The lpadmin command is used to create, modify, or delete a class. The -c option specifies a class to create or modify and is combined with the -p option:

    lpadmin -p printername -c classname

    The -r option specifies that the named printer is removed from the class:

    lpadmin -p printername -r classname

    The -x option deletes the named class:

    lpadmin -x classname

    Debug Logging and Troubleshooting

    The printing system log files track the activity of the scheduler, printer drivers, and backends. If problems occur and the log files do not provide sufficient details to diagnose the problem, you can enable debug logging using the cupsctl command:

    cupsctl --debug-logging

    To disable debug logging, run the same command with the --no-debug-logging option:

    cupsctl --no-debug-logging
    cups-2.4.7/doc/help/accounting.html0000644000175000017500000000520414502571342017077 0ustar zdohnalzdohnal Printer Accounting Basics

    Printer Accounting Basics

    CUPS supports a variety of printer accounting schemes. Aside from the built-in quota and page logging support, there are several third-party solutions that can be found online.

    Quota Support

    CUPS supports page and size-based quotas for each printer. The quotas are tracked individually for each user, but a single set of limits applies to all users for a particular printer. For example, you can limit every user to 5 pages per day on an expensive printer, but you cannot limit every user except Johnny.

    The job-k-limit, job-page-limit, and job-quota-period options determine whether and how quotas are enforced for a printer. The job-quota-period option determines the time interval for quota tracking. The interval is expressed in seconds, so a day is 86,400, a week is 604,800, and a month is 2,592,000 seconds. The job-k-limit option specifies the job size limit in kilobytes. The job-page-limit option specifies the number of pages limit.

    For quotas to be enforced, the period and at least one of the limits must be set to a non-zero value. The following options will enable weekly quotas with the given size and page count limits:

    /usr/sbin/lpadmin -p printer -o job-quota-period=604800 \
        -o job-k-limit=1024 ENTER
    /usr/sbin/lpadmin -p printer -o job-quota-period=604800 \
        -o job-page-limit=100 ENTER
    

    Or, you can combine all three options on the same line.

    While there is no way to query the current quota state for a particular user, any application can request a list of jobs for a user and printer that can be used to easily determine that information.

    Page Logging

    CUPS can log every page that is printed on a system to the page_log file. Page logging must be enabled by setting the PageLogFormat directive in the cupsd.conf file and is only available for drivers that provide page accounting information, typically all PostScript and CUPS raster devices. Raw queues and queues using third-party solutions such as Foomatic generally do not have useful page accounting information available.

    cups-2.4.7/doc/fr/0000755000175000017500000000000014502571342013535 5ustar zdohnalzdohnalcups-2.4.7/doc/fr/index.html.in0000644000175000017500000000446614502571342016151 0ustar zdohnalzdohnal Home - CUPS @CUPS_VERSION@

    OpenPrinting CUPS @CUPS_VERSION@

    Le système d'impression open source basé sur des normes, développé par OpenPrinting for Linux® and other Unix®-like operating systems. CUPS uses IPP Everywhere™ pour prendre en charge l'impression vers des imprimantes locales et de réseau.

    cups-2.4.7/doc/es/0000755000175000017500000000000014502571342013535 5ustar zdohnalzdohnalcups-2.4.7/doc/es/index.html.in0000644000175000017500000000470014502571342016140 0ustar zdohnalzdohnal Inicio - CUPS @CUPS_VERSION@

    CUPS @CUPS_VERSION@

    CUPS es el sistema de impresión de código abierto basado en estándares desarrollado por OpenPrinting para macOS® y otros sistemas operativos tipo UNIX®. CUPS uses IPP Everywhere™ to support printing to local and network printers.

    cups-2.4.7/doc/de/0000755000175000017500000000000014502571342013516 5ustar zdohnalzdohnalcups-2.4.7/doc/de/index.html.in0000644000175000017500000000443614502571342016127 0ustar zdohnalzdohnal Startseite - CUPS @CUPS_VERSION@

    OpenPrinting CUPS @CUPS_VERSION@

    CUPS basiert auf Standards, Open Source Drucksystem entwickelt durch OpenPrinting für Linux® und andere UNIX®-artige Betriebssysteme. CUPS benutzt IPP Everywhere™ zur Unterstützung lokaler und Netzwerkdrucker.

    cups-2.4.7/doc/da/0000755000175000017500000000000014502571342013512 5ustar zdohnalzdohnalcups-2.4.7/doc/da/index.html.in0000644000175000017500000000443114502571342016116 0ustar zdohnalzdohnal Hjem - CUPS @CUPS_VERSION@

    CUPS @CUPS_VERSION@

    CUPS er det standardbaseret, open source-udskrivningssystem som er udviklet af OpenPrinting til Linux® og andre UNIX®-lignende styresystemer. CUPS uses IPP Everywhere™ to support printing to local and network printers

    cups-2.4.7/doc/cups.css0000644000175000017500000002560714502571342014624 0ustar zdohnalzdohnal/* Layout CSS */ .cups-header { background: rgba(46,46,46,.9); box-shadow: 0 2px 5px rgba(0,0,0,0.25); color: white; left: 0; margin-bottom: 20px; padding: 0; position: fixed; right: 0; top: 0; width: 100%; } .cups-header ul { list-style: none; margin: 0; -webkit-margin-before: 0; -webkit-margin-after: 0; -webkit-margin-start: 0; -webkit-margin-end: 5px; -webkit-padding-start: 0; } .cups-header ul li { float: left; } .cups-header a { display: block; padding: 5px 10px !important; } .cups-header a:link, .cups-header a:visited { color: white !important; text-decoration: none !important; } .cups-header a:hover { background: #cccccc !important; color: #333333 !important; text-decoration: none !important; } .cups-header a.active { background: white !important; box-shadow: rgba(0,0,0,0.1) 0 0 10px 0 inset; color: black !important; text-decoration: none !important; } .cups-body { padding: 40px 20px; } .row .cups-body { padding: 0; } .cups-footer { background: rgba(46,46,46,.9); bottom: 0; box-shadow: 0 -2px 5px rgba(0,0,0,0.25); color: #cccccc; font-size: 10px; height: 20px; left: 0; padding: 10px 10px 3px; position: fixed; width: 100%; } .cups-footer a:link, footer a:hover, .cups-footer a:visited { color: white !important; text-decoration: none !important; } .row { width: 100%; *zoom: 1; } .row:after { clear: both; } .row .thirds { float: left; margin-left: 0.5%; margin-right: 0; padding-bottom: 40px; width: 33%; } .row .thirds:first-child { margin-left: 0; } .row .halves { float: left; margin-left: 0.5%; margin-right: 0; padding-bottom: 40px; width: 49.75%; } .row .halves:first-child { margin-left: 0; } .mobile { display: none; } .no-mobile { display: inherit; } /* Appearance CSS */ body { background: white; color: black; font-family: lucida grande, geneva, helvetica, arial, sans-serif; margin: 0; } h1, h2, h3, h4, h5, h6, p, td, th { font-family: lucida grande, geneva, helvetica, arial, sans-serif; } h1 { font-size: 2em; } h2 { font-size: 1.75em; } h3 { font-size: 1.5em; } h4 { font-size: 1.25em; } kbd { color: #006600; font-family: monaco, courier, monospace; font-weight: bold; } pre { font-family: monaco, courier, monospace; } blockquote { background: rgba(191,191,191,0.1); border-left: solid 2px #777; margin: 1em 0; padding: 10px; } blockquote ol li { margin-left: -1em; } pre.command, pre.example { padding: 10px 20px; } p.example { font-style: italic; margin-left: 36pt; } dl.man dd { margin-left: 5em; } DL.man DT { margin-left: 0; } pre.man { margin: 0; } pre.command EM, pre.example EM { color: #3f0000; font-family: lucida grande, geneva, helvetica, arial, sans-serif; } p.command { color: #7f0000; font-family: monaco, courier, monospace; margin-left: 36pt; } p.formula { font-style: italic; margin-left: 36pt; } a img { border: none; } a:link:hover img { background: #f0f0f0; border-radius: 10px; -moz-border-radius: 10px; } a:link, a:visited { font-weight: inherit; text-decoration: none; color: #000099; } a:link:hover, a:visited:hover, a:active { text-decoration: underline; color: #990099; } table.page { border: none; border-collapse: collapse; height: 100%; margin: 0; padding: 0; width: 100%; } td.cups-body { height: 100%; vertical-align: top; } td.trailer { background: #f0f0f0; border: solid thin #e0e0e0; color: #666666; font-size: 80%; padding: 5px; } td.trailer a { color: #666699; } form { display: inline; } input[type="text"], textarea { font-family: monaco, courier, monospace; } input[type="image"] { border: none; padding: 2pt; vertical-align: bottom; } sub, sup { font-size: 50%; } tr.data, td.data, tr.data td { margin-top: 10pt; padding: 5pt; border-bottom: solid 1pt #999999; } tr.data th { border-bottom: solid 1pt #999999; padding-top: 10pt; padding-left: 5pt; text-align: left; } div.table table { border: solid thin rgba(191,191,191,.3); border-collapse: collapse; border-spacing: 0; margin-left: auto; margin-right: auto; } div.table caption { caption-side: top; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } div.table table td { background: white; border: solid thin rgba(191,191,191,.45); padding: 5pt 10pt 0; } div.table table th { background: rgba(191,191,191,.15); border: none; border-bottom: solid thin rgba(191,191,191,.3); } div.figure table { margin-left: auto; margin-right: auto; } div.figure caption { caption-side: bottom; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } th.label { text-align: right; vertical-align: top; } th.sublabel { text-align: right; font-weight: normal; } hr { border: solid thin; } span.info { background: black; border: thin solid black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h2 span.info, h3 span.info, h4 span.info { float: right; font-size: 100%; } .conflict { background: red; color: white; } th.conflict { text-align: right; } h1.title { display: none; } h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { border-bottom: solid 2pt black; } table.indent { margin-top: 2em; margin-left: auto; margin-right: auto; width: 90%; } table.indent { border-collapse: collapse; } table.indent td, table.indent th { padding: 0; } table.list { border-collapse: collapse; margin-left: auto; margin-right: auto; width: 90%; } table.list th { background: white; border-bottom: solid thin #cccccc; border-right: 2px solid rgba(191,191,191,.45); color: #444444; padding: 5px 10px 5px 12px; text-align: left; vertical-align: bottom; white-space: nowrap; } table.list th a { color: #4444cc; } table.list td { border-bottom: solid thin rgba(191,191,191,.45); padding: 5px 2px 5px 10px; } table.list tr:nth-child(even) { background: rgba(191,191,191,0.15); } table.list tr:nth-child(odd) { background: rgba(191,191,191,0.3); } div.sidebar { float: right; min-width: 25%; margin-left: 10px; max-width: 33%; } div.sidebar p.l0 { margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 12pt; } div.sidebar p.l1 { margin-bottom: 0; margin-left: 36pt; margin-right: 0; margin-top: 0; text-indent: -18pt; } div.sidebar p.l2 { font-style: italic; margin-bottom: 0; margin-left: 54pt; margin-right: 0; margin-top: 0; text-indent: -18pt; } table.inset { background: #f4f4f4; border: thin solid rgba(191,191,191,0.5); margin-top: 1em; padding: 0; width: 100%; /* these are not implemented by all browsers, but that's ok */ border-radius: 5px; -moz-border-radius: 5px; } table.inset caption { caption-side: top; color: #666666; font-size: 80%; margin-left: 10px; margin-bottom: 2px; text-align: left; } table.inset td { padding: 2px 5px; } dt { margin-left: 36pt; margin-top: 12pt; } dd { margin-left: 54pt; } dl.category dt { font-weight: bold; } p.summary { margin-left: 36pt; font-family: monaco, courier, monospace; } div.summary table { border: solid thin #999999; border-collapse: collapse; border-spacing: 0; margin: 10px; } div.summary table td, div.summary table th { background: white; border: solid thin #999999; border-spacing: 0; padding: 5px; text-align: left; vertical-align: top; } div.summary table thead th { background: #f0f0f0; } div.tabs { height: 480px; overflow: hidden; } div.tab { float: left; height: 100%; overflow-y: auto; width: 100%; } /* API documentation styles... */ div.cups-body h1 { } div.cups-body h2 { } div.cups-body h3 { } div.cups-body h4 { } div.cups-body h5 { } div.contents { } div.contents h1 { } div.contents h2 { } div.contents ul.contents { } div.contents ul.contents li ul { display: none; } .class { border-bottom: solid 2px gray; } .constants { } .description { margin-top: 0.5em; } .discussion { } .enumeration { border-bottom: solid 2px gray; } .function { border-bottom: solid 2px gray; margin-bottom: 0; } .members { } .method { } .parameters { } .returnvalue { } .struct { border-bottom: solid 2px gray; } .typedef { border-bottom: solid 2px gray; } .union { border-bottom: solid 2px gray; } .variable { } h1, h2, h3, h4, h5, h6 { page-break-inside: avoid; } blockquote { page-break-inside: avoid; } p.code, pre, ul.code li { border-left: thin dotted gray; background: rgba(191,191,191,0.1); } p code, li code { background: rgba(191,191,191,0.3); } p code, li code, p.code, pre, ul.code li { font-family: monospace; hyphens: manual; margin: 18pt 0; -webkit-hyphens: manual; page-break-inside: avoid; } p.code, pre, ul.code li { padding: 10px; } p code, li code { padding: 2px 5px; } span.info { background: black; border: solid thin black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h3 span.info, h4 span.info { border-top-left-radius: 10px; border-top-right-radius: 10px; float: right; padding: 3px 6px; } ul.code, ul.contents, ul.subcontents { list-style-type: none; margin: 0; padding-left: 0; } ul.code li { margin: 0; } ul.contents > li { margin-top: 1em; } ul.contents li ul.code, ul.contents li ul.subcontents { padding-left: 2em; } /* iPhone/iPod touch overrides */ @media only screen and (min-device-width: 320px) and (max-device-width: 480px), only screen and (min-device-width: 320px) and (max-device-width: 568px) { .mobile { display: inherit; } .no-mobile { display: none; } .cups-header { margin: 0; position: relative; } .cups-header ul li { float: none; } .cups-body { padding: 0; } .cups-footer { font-size: 10px; height: auto; position: relative; } .row .thirds, .row .halves { float: none; margin: 0; width: 100%; } div.sidebar { float: none; margin-left: 0; max-width: 100%; min-width: 100%; width: 100%; } blockquote { margin: 0; } p.example { margin-left: 0; } pre.command, pre.example, pre.man { margin-left: 0; white-space: pre-wrap; } } /* iPad overrides */ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { .mobile { display: inherit; } .no-mobile { display: none; } } /* Dark mode overrides */ @media (prefers-color-scheme: dark) { body { background: black; color: #ccc; } a:link, a:visited, table.list th a { color: #6666ff; } a:link:hover, a:visited:hover, a:active, table.list th a { color: #ff66ff; } hr { color: #666; } table.inset { background: #1d1d1d; } h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { border-bottom: solid 2pt #ccc; } div.table table td, table.list th { background: black; } table.list th { color: #666; } } cups-2.4.7/doc/cups-printable.css0000644000175000017500000001512614502571342016575 0ustar zdohnalzdohnalbody { font-family: lucida grande, geneva, helvetica, arial, sans-serif; } h1, h2, h3, h4, h5, h6, p, td, th { font-family: lucida grande, geneva, helvetica, arial, sans-serif; } h1 { font-size: 2em; } h2 { font-size: 1.75em; } h3 { font-size: 1.5em; } h4 { font-size: 1.25em; } kbd { font-family: monaco, courier, monospace; font-weight: bold; } pre { font-family: monaco, courier, monospace; } blockquote { border-left: solid 2px #777; margin: 1em 0; padding: 10px; } blockquote ol li { margin-left: -1em; } pre.command, pre.example { padding: 10px 20px; } p.compact { margin: 0; } p.example { font-style: italic; margin-left: 36pt; } dl.man dd { margin-left: 5em; } dl.man dt { margin-left: 0; } pre.command em, pre.example em { font-family: lucida grande, geneva, helvetica, arial, sans-serif; } p.command { font-family: monaco, courier, monospace; margin-left: 36pt; } p.formula { font-style: italic; margin-left: 36pt; } a img { border: none; } a:link:hover img { background: #f0f0f0; border-radius: 10px; -moz-border-radius: 10px; } a:link, a:visited { font-weight: inherit; text-decoration: none; } a:link:hover, a:visited:hover, a:active { text-decoration: underline; } sub, sup { font-size: 50%; } tr.data, td.data, tr.data td { margin-top: 10pt; padding: 5pt; border-bottom: solid 1pt #999999; } tr.data th { border-bottom: solid 1pt #999999; padding-top: 10pt; padding-left: 5pt; text-align: left; } div.table table { border: solid thin #999999; border-collapse: collapse; border-spacing: 0; margin-left: auto; margin-right: auto; } div.table caption { caption-side: top; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } div.table table td { border: solid thin #cccccc; padding: 5pt 10pt 0; } div.table table th { background: #cccccc; border: none; border-bottom: solid thin #999999; } div.figure table { margin-left: auto; margin-right: auto; } div.figure caption { caption-side: bottom; font-size: 120%; font-style: italic; font-weight: bold; margin-left: auto; margin-right: auto; } th.label { text-align: right; vertical-align: top; } th.sublabel { text-align: right; font-weight: normal; } hr { border: solid thin; } span.info { background: black; border: thin solid black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h2 span.info, h3 span.info, h4 span.info { float: right; font-size: 100%; } h1.title { } h2.title, h3.title { border-bottom: solid 2pt #000000; } div.indent, table.indent { margin-top: 2em; margin-left: auto; margin-right: auto; width: 90%; } table.indent { border-collapse: collapse; } table.indent td, table.indent th { padding: 0; } table.list { border-collapse: collapse; margin-left: auto; margin-right: auto; width: 90%; } table.list th { background: white; border-bottom: solid thin #cccccc; color: #444444; padding-top: 10pt; padding-left: 5pt; text-align: left; vertical-align: bottom; white-space: nowrap; } table.list th a { color: #4444cc; } table.list td { border-bottom: solid thin #eeeeee; padding-top: 5pt; padding-left: 5pt; } table.list tr:nth-child(even) { background: #f8f8f8; } table.list tr:nth-child(odd) { background: #f4f4f4; } dt { margin-left: 36pt; margin-top: 12pt; } dd { margin-left: 54pt; } dl.category dt { font-weight: bold; } p.summary { margin-left: 36pt; font-family: monaco, courier, monospace; } div.summary table { border: solid thin #999999; border-collapse: collapse; border-spacing: 0; margin: 10px; } div.summary table td, div.summary table th { border: solid thin #999999; padding: 5px; text-align: left; vertical-align: top; } div.summary table thead th { background: #eeeeee; } /* API documentation styles... */ div.body h1 { font-size: 250%; font-weight: bold; margin: 0; } div.body h2 { font-size: 250%; margin-top: 1.5em; } div.body h3 { font-size: 150%; margin-bottom: 0.5em; margin-top: 1.5em; } div.body h4 { font-size: 110%; margin-bottom: 0.5em; margin-top: 1.5em; } div.body h5 { font-size: 100%; margin-bottom: 0.5em; margin-top: 1.5em; } /*div.contents { }*/ div.contents h1 { font-size: 110%; } div.contents h2 { font-size: 100%; } div.contents ul.contents { font-size: 80%; } .class { border-bottom: solid 2px gray; } .constants { } .description { margin-top: 0.5em; } .discussion { } .enumeration { border-bottom: solid 2px gray; } .function { border-bottom: solid 2px gray; margin-bottom: 0; } .members { } .method { } .parameters { } .returnvalue { } .struct { border-bottom: solid 2px gray; } .typedef { border-bottom: solid 2px gray; } .union { border-bottom: solid 2px gray; } .variable { } h1, h2, h3, h4, h5, h6 { page-break-inside: avoid; } blockquote { background: rgba(191,191,191,0.1); border-left: solid 2px #777; margin: 1em 0; padding: 10px; page-break-inside: avoid; } p.code, pre, ul.code li { border-left: thin dotted gray; background: rgba(191,191,191,0.1); } p code, li code { background: rgba(191,191,191,0.3); } p code, li code, p.code, pre, ul.code li { font-family: monospace; hyphens: manual; margin: 18pt 0; -webkit-hyphens: manual; page-break-inside: avoid; } p.code, pre, ul.code li { padding: 10px; } p code, li code { padding: 2px 5px; } a:link, a:visited { text-decoration: none; } span.info { background: black; border: solid thin black; color: white; font-size: 80%; font-style: italic; font-weight: bold; white-space: nowrap; } h2 span.info, h3 span.info, h4 span.info { border-radius: 10px; float: right; font-size: 80%; padding: 3px 6px; } h2.title span.info, h3.title span.info, h4.title span.info { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } h2.title span.info { padding: 4px 6px; } ul.code, ul.contents, ul.subcontents { list-style-type: none; margin: 0; padding-left: 0; } ul.code li { margin: 0; } ul.contents > li { margin-top: 1em; } ul.contents li ul.code, ul.contents li ul.subcontents { padding-left: 2em; } table.list { border-collapse: collapse; width: 100%; } table.list tr:nth-child(even) { background: rgba(127,127,127,0.1); } table.list th { border-right: 2px solid gray; font-family: monospace; padding: 5px 10px 5px 2px; text-align: right; vertical-align: top; } table.list td { padding: 5px 2px 5px 10px; text-align: left; vertical-align: top; } h1.title { } h2.title { border-bottom: solid 2px black; } h3.title { border-bottom: solid 2px black; } cups-2.4.7/doc/apple-touch-icon.png0000644000175000017500000000501314502571342017002 0ustar zdohnalzdohnalPNG  IHDR ߁(PLTE~~~}}}zzzxxxyyyvvvwwwuuuttttuusssrrrqqqpppooonnnmmmlllkkkjjjiiiggghhhfffeeedddbbbcccaaa```___^^^\\\]]][[[WWWXXXVVVUUUTTTSSSRRRPPPQQQNNNOOOLLLMMMKKKJJJHHHIIIGGGFFFDDDEEEϳZZZιCCCBBBYYY{{{ƺ񮮮|||޸Ž鲲ߪM8rIDATẋaEA.Ͻf0 Ev9Na GV1 c4vbG1ǘUpcVñX.%.$Xom|9$׿xD>^ |9;z^؟o۝<$x>/ϋK$wx4AOEq3? G" Re6 GBQEI|u]75`>, Hŏ%0# GCXp$X<jLH慇#J~Hz8ҙL:Ni$l6jpi,QcT GIUupT,AVz8 XGjVp;hC[c 1 BWp/cc:My8Bz8eZ^7*vݱg؋*jX{Η`[)3񘙙2Tffff$r.n_SFUKg^R[Vk]x+ϙo={ \߰C_sFsK3;بwmgg7~|Fa G+$!6F>ta NZ6x);!9n=IQ,Ǧ8}eǠ4[tq{*_p%<#\NjS5?} (U}!wO$SZG+m3=< *M׋VU%Mq;a{N "5vVďv +vJLFW GEI:u ;?Y%W`ɖ{)"VW%ÁOk~U:aO` ‚)&ryNK7-oE DžϢBvbbݑ-"rg2?,1U~TF1 t>k/$ݺt-ږf~%YEm.n)E2xd 8m7KpUf>,">ML Z. (B*;L'eXd:ɽ%]hQ:;Ry%-nye^\fg\/>c#+*c"2-/1h,ɒxm7G'Wp|@zdD9}s3^(L´pe΋LS x|C3ېQpd^pZ*EDZђ9ORݣ|ɴ% EO3?u/~^E^w}GwU^{2xհa}r'CZƿA4F@yMX/mK2HدxDI -=~_ƅ-_u+^o)3tX~m_H37/%bO^t;w^oEL aXP%mz~/C8OtDhz ^97u-:y|n)|f~卿MUAB. {-}rNZX +MX|\<\n?1ikz<2[< 1;:yKc7faZMq_>>{Sv `(bd$r:VoVoVo孫{{=V[}ooV[qo֯-----------'yNʜIENDB`cups-2.4.7/doc/Makefile0000644000175000017500000001071014502571342014565 0ustar zdohnalzdohnal# # Documentation makefile for CUPS. # # Copyright © 2021-2023 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more #s information. # include ../Makedefs # # Document files... # WEBPAGES = \ apple-touch-icon.png \ cups.css \ cups-printable.css \ index.html \ robots.txt WEBIMAGES = \ images/cups.png \ images/wait.gif HELPIMAGES = \ images/cups-block-diagram.png \ images/cups-command-chain.png \ images/cups-postscript-chain.png \ images/cups-raster-chain.png \ images/raster.png \ images/raster-organization.png \ images/sample-image.png \ images/smiley.jpg HELPFILES = \ help/accounting.html \ help/admin.html \ help/api-admin.html \ help/api-filter.html \ help/api-ppd.html \ help/cgi.html \ help/cupspm.html \ help/encryption.html \ help/firewalls.html \ help/glossary.html \ help/kerberos.html \ help/license.html \ help/man-backend.html \ help/man-cancel.html \ help/man-classes.conf.html \ help/man-client.conf.html \ help/man-cups.html \ help/man-cups-config.html \ help/man-cups-files.conf.html \ help/man-cups-lpd.html \ help/man-cups-snmp.html \ help/man-cupsaccept.html \ help/man-cupsd.conf.html \ help/man-cupsd.html \ help/man-cupsd-helper.html \ help/man-cupsd-logs.html \ help/man-cupsenable.html \ help/man-cupstestppd.html \ help/man-filter.html \ help/man-ippevepcl.html \ help/man-ippeveprinter.html \ help/man-ipptool.html \ help/man-ipptoolfile.html \ help/man-lp.html \ help/man-lpadmin.html \ help/man-lpc.html \ help/man-lpinfo.html \ help/man-lpmove.html \ help/man-lpoptions.html \ help/man-lpq.html \ help/man-lpr.html \ help/man-lprm.html \ help/man-lpstat.html \ help/man-mime.convs.html \ help/man-mime.types.html \ help/man-notifier.html \ help/man-ppdc.html \ help/man-ppdhtml.html \ help/man-ppdi.html \ help/man-ppdmerge.html \ help/man-ppdpo.html \ help/man-printers.conf.html \ help/man-subscriptions.conf.html \ help/network.html \ help/options.html \ help/overview.html \ help/policies.html \ help/postscript-driver.html \ help/ppd-compiler.html \ help/raster-driver.html \ help/ref-ppdcfile.html \ help/security.html \ help/sharing.html \ help/spec-banner.html \ help/spec-command.html \ help/spec-design.html \ help/spec-ipp.html \ help/spec-ppd.html \ help/spec-raster.html \ help/spec-stp.html \ help/translation.html # # Make all documents... # all: # # Make library targets... # libs: # # Make unit tests... # unittests: # # Remove all generated files... # clean: # # Dummy depend target... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_LANGUAGES) $(INSTALL_DIR) -m 755 $(DOCDIR) for file in $(WEBPAGES); do \ $(INSTALL_MAN) $$file $(DOCDIR); \ done $(INSTALL_DIR) -m 755 $(DOCDIR)/help for file in $(HELPFILES); do \ $(INSTALL_MAN) $$file $(DOCDIR)/help; \ done if test "x$(IPPFIND_MAN)" != x; then \ $(INSTALL_MAN) help/man-ippfind.html $(DOCDIR)/help; \ fi $(INSTALL_DIR) -m 755 $(DOCDIR)/images for file in $(WEBIMAGES) $(HELPIMAGES); do \ $(INSTALL_MAN) $$file $(DOCDIR)/images; \ done install-languages: for lang in $(LANGUAGES); do \ if test -d $$lang; then \ $(INSTALL_DIR) -m 755 $(DOCDIR)/$$lang; \ $(INSTALL_DATA) $$lang/index.html $(DOCDIR)/$$lang; \ $(INSTALL_DATA) $$lang/cups.css $(DOCDIR)/$$lang >/dev/null 2>&1 || true; \ fi; \ done install-langbundle: # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all documentation files... # uninstall: $(UNINSTALL_LANGUAGES) for file in $(WEBPAGES); do \ $(RM) $(DOCDIR)/$$file; \ done for file in $(HELPFILES); do \ $(RM) $(DOCDIR)/help/$$file; \ done if test "x$(IPPFIND_MAN)" != x; then \ $(RM) $(DOCDIR)/help/man-ippfind.html; \ done for file in $(WEBIMAGES); do \ $(RM) $(DOCDIR)/images/$$file; \ done -$(RMDIR) $(DOCDIR)/images -$(RMDIR) $(DOCDIR)/help -$(RMDIR) $(DOCDIR) uninstall-languages: -for lang in $(LANGUAGES); do \ $(RM) $(DOCDIR)/$$lang/index.html; \ $(RM) $(DOCDIR)/$$lang/cups.css; \ $(RMDIR) $(DOCDIR)/$$lang; \ done install-langbundle: cups-2.4.7/desktop/0000755000175000017500000000000014502571342014032 5ustar zdohnalzdohnalcups-2.4.7/desktop/cups.svg0000644000175000017500000001310414502571342015524 0ustar zdohnalzdohnal New Image Michael Sweet Copyright 2020 Michael Sweet image/svg+xml en Background Logo Printer cups-2.4.7/desktop/cups.desktop.in0000644000175000017500000000421114502571342017002 0ustar zdohnalzdohnal[Desktop Entry] Categories=System;Printing;HardwareSettings;X-Red-Hat-Base; Exec=@CUPS_HTMLVIEW@ http://localhost:631/ Icon=cups StartupNotify=false Terminal=false Type=Application Name=Manage Printing Comment=CUPS Web Interface Name[af]=bestuur Printing Comment[af]=CUPS Web Interface Name[ar]=إدارة الطباعة Comment[ar]=الكؤوس واجهة الويب Name[az]=Çap idarə Comment[az]=CUPS Web Interface Name[bn-IN]=মুদ্রণ পরিচালনা Comment[bn-IN]=CUPS ওয়েব ইন্টারফেস Name[ca]=Gestor d'impressió Comment[ca]=Interfície web de CUPS Name[cs]=Správa tisku CUPS Comment[cs]=Webové rozhraní CUPS Name[da]=Håndter udskrivning Comment[da]=CUPS-webgrænseflade Name[de]=Druckerverwaltung Comment[de]=CUPS Webinterface Name[en_US]=Manage Printing Comment[en_US]=CUPS Web Interface Name[es]=Administrar impresión Comment[es]=Interfaz Web de CUPS Name[et]=Trükkimise haldur Comment[et]=CUPS-i veebiliides Name[eu]=Kudeatu inprimaketak Comment[eu]=CUPSen web interfazea Name[fr]=Gestionnaire d'impression Comment[fr]=Interface Web de CUPS Name[he]=נהל הדפסות Comment[he]=ממשק דפדפן של CUPS Name[id]=Manajemen Pencetakan Comment[id]=Antarmuka Web CUPS Name[it]=Gestione stampa Comment[it]=Interfaccia web di CUPS Name[ja]=印刷の管理 Comment[ja]=CUPS Web インタフェース Name[ko]=인쇄 관리 Comment[ko]=CUPS 웹 인터페이스 Name[pl]=Zarządzanie drukowaniem Comment[pl]=Interfejs WWW CUPS Name[pt_BR]=Gerenciador de impressão Comment[pt_BR]=Interface web do CUPS Name[pt-PT]=Gerenciador de impressão Comment[pt-PT]=Interface sítio do CUPS Name[ru]=Настройка печати Comment[ru]=Настройка CUPS Name[sv]=Hantera skrivare Comment[sv]=CUPS webb-gränssnitt Name[sq]=Menaxho Printime Comment[sq]=CUPS Web Interface Name[th]=จัดการการพิมพ์ Comment[th]=CUPS เว็บอินเตอร์เฟส Name[tr]=Yazıcıları Yönet Comment[tr]=CUPS Web Arayüzü Name[uz]=chop boshqarish Comment[uz]=CUPS veb interfeysi Name[zh]=打印机管理 Comment[zh]=CUPS网页界面 Name[zh_TW]=印表管理 Comment[zh_TW]=CUPS 網頁介面 cups-2.4.7/desktop/cups.conf0000644000175000017500000000071414502571342015655 0ustar zdohnalzdohnal cups-2.4.7/desktop/cups-64.png0000644000175000017500000000473614502571342015753 0ustar zdohnalzdohnalPNG  IHDR@@sRGBDeXIfMM*i@@FQBeiTXtXML:com.adobe.xmp New Image Copyright 2020 Michael Sweet Michael Sweet New Image Sve:PLTE@fvzz{{zz>y{{||}}~~  !"#%')*+-./02345789;<=?BCEFIJKMNOPUXYZ[\_bfgjklmnpqrtvwyz{~ tRNS)N{IDATXå_A\$7,-;Rд̲N;2NN͌j]@NgX +ٙ35aׯ& 6:n/( 0⭡qB47GX$ yCĀn8zɤiګ!/zf0&t)f,SzG2`5<\q=& ; Yk3Z[- ܎Q'9ӈ$:[pv]6|  x k_%bpeh^: b$rV~ فСhfI?v=2sb|a[?>~ ߘkxC'A$Sz2͈>!F@"d9`kM# [""+4L5>   y@6ߍ,p{@Y W腁]ga4o܇b'y P0\w.qVvN::"`'d v3& k${(*H︬\ u%I?_ר. &,`(#uH9 F|q&peŌ1Bu.C# 8joO&I` New Image Copyright 2020 Michael Sweet Michael Sweet New Image Sve5IDATxwVս jT1F4F D&iFz$ƨlIS0" EtaJ&00a`3cKiSޙoYKW;g=g b5QmQ}UUhhjh*De"*0Q B>'1D4Ddj`"oe)Q{<U:'6 MTLDM3=e7 /U5MhPO>6M1{p LD=l^tj'LDM3̍Q] U.'S&A&/WoAN@L1oAn߯g"J|@iz&Ql>n |U>]'R&ƨJ8MTD &i86'`.4`rp!> @B>C?DCC(Q1,$@$nMMUwjf,bJ`yE5]:\ _(̓7UTʟ*L&V|@%~"XYp/W/XJ9– ?n}Z\ޏ@dxVc lDub?+S] X 67FD nŬ>LzЧl7g"*`U(0MU,9xKw[rz43pڔ>A $ 0EA r[`D9X)@L P]nG8HPS=r=8H5@m[DA ҌQUkcLD985@ UV{oZ&"EjSB:{ x qPygtnoMT@4Qmc" TLr0Dā ThPeLDs9@\B>3CPzkzs4cifiNi^im툔zB:zZ:-ʕH*,;3GJ?-eJ{3_[EF\j@j6Czi_K{GJ{xTrkLT8_JEzrZv4to?*e*,V>(uZ$>=uJ1P~[I? 9SړaoA"i141wߑNb`1Qep0uet_OcK,Qxr4biB1eq ugG#n|nBi]4 Ex s ,c"*`n]vU)\+l= p^(0 j'I/hoOqC:|J`K𥶜J F6@Hx WJ-O$qm!ij&\GNIVH@p!4%%or0w}C~5LN:M2,uu\ r_O&RRJ7Z>M:r?~k z/NpWC5Y/UQcYRDžvuG+lno?͋]ډp =EgM*=ڏkR] 15E's Tjqv{Oq#*~— J.ѻ07ʭ]z7(@to)k)(;:HcscB2鋭~AJF?5)X$xgbҮtn T0j!A.NWi6nT0ÍmA\):mWuB^pՒ=R\ 'H+ZϳO@@(7iwz0.:QFQg/5@d _\--ՉīRN>;ENHύf4v:E:-;_2|z)L5sT=@DX**4N8ʚ GS0`wH{3b2c7H}KJ$qK}Gtk;3ݵ-JytMs6ҝ{IkjxC)2S֘j7o^1ƀ}ut2UZj1Gz~H_+T=gGم&oa*{JXRJ]K7JљCg`UvJ`Rf}/*; }rşHI KmyTl4sFJZ@@2^귂8mSRj$r\u-gJSӜ7ũPanjc•c'i|9SpYJ(atK[PI~u<[Jzr0fc'I=0b尝M g^0n?zIr~vZf?~g>t*sR>9f}1 ;}9\  ':]9'FGa~vtXXiZZە9@552&K|}]Q1s܎9p:)s2[K 9$HJ>…2t4A]h(a}Z4:\s󥮋7Zϳ녥3Up \YgSauK[uX5\C³!OzHo1~ |OO99.wx~ &z])+/؃^a]KPA~oJ\O76)H| ?Y]f~"H<-}-}$IwusE4}{+#Ω'-Һ4x}$)M-<^DA:tku&;|pQW |~ =$ w;dIK> {Ȕ]*׋v=DxXI47{E]\|7H {DJX  g?dzZ?*Lc~'W LK0[IDz3sdrV;I:Ϳ \{yE`j?uiռ.kV'+RQé\n(;s~2%$r(?ow@IUVz# Nd7Lg0~׿W~c77b*:ӿ^@u_-  n:euSڞOh*}# &Z?k;l_2.Rww@,kx}#L&7 ^8RzF@l1y;yg3'7JBns(O;¯1%vK[6i8j?c°_7e{D YlD@ʯwޡo@E~ԟAbk:ݯ_V3"u?Cb*#7"Hc8ɗAˋc m3N<."֥sQo<$]RnCG' L#1V,KOJh??ƋB -~6c3Co?7qg%K繶? JNW>bw6Wހs&nc-")~\wwJfs?v^o. pըu#w'=/ӓ7/e3qdۆ kG/V#я}~WƬwU6|5| %:%\zUQYz~}咒*\'Op~sE xI.GW'Jί}@Y~Q8Ҟ~%XI.K!l}}a4ggscdS7חzGSt|Iv4ZXZKʼ: Y `:?''O ]z<)4NTZG:[N @|W;^(Ҫ'H^/\ZZ=2+@|UCJy[}j6, HV(GNI3KI ߍ!WaAs] Jp)O!|l9.(,oZ4u  ~7WA7~:@zk4bHكj &gKO Ҟ [lwՓpHO ͰQL/cҸ Rd ,#׺}C97 nY҄MތIێ46@e8 eħ. jr4eKٟlp4tp] -J0|}鳿?@AznvUB֫hwY @Z& Lޘ(=t?fx207K]ͷs=5Y;)|}N^ 穥mGJA|rp}97τ Wy,0*ɚnnG&jױ-YZ%/V9z-ۃ:B!s Tjq/8g>KIU(*%H%)^ .|_a>$``ێ01 T_ s`C{Zr]DWגƯ]@%:>X=Z1~m/ߴt|& L zł^qA IR%r@/z]o+r9A $>O)XswyޜfჽSo.(H(?`.o@@aZ&="b||@ ވnV# u{ |k="b)g#bVWD@@LͿH@ :vXsǬG@@^ y="bÍnL[AsEs{=:#3ǪF=ݾyo ]9]W%Bl`?-yׅ{H(:]?/^K70ksύ&#}wGg2^JI1{aۋc/ڿv@@<9pz.[]> L]}R#w^Jv@@aM(yӅlߍ_nbocגo M1Fr``H"39&jCrt`z$-"3q @nQ~SɛΟ9azO9} ,FJ{UmΰL# 5|#s=pzDbnn#s=~=1EML(@@8xGzDbno7!P8tE,Z#sYyngOKnUE (@ g3 @:V "޾n,MPv=R 6v{=16[]EE(@@}OޣG fls{"nM(@@_j2=1i`"\,EOr{|g)=1XQE_s{Q s{p$=bvPG2^**r;Ԇ>1wnLs=>>@bn(@@ _ 8@b H!Pk2ApvEƸ=n9L1@ӹswwv "|5BG(@@p{ XE#PpzEnk w|-ӹREG?N"P 2s ߚF1|ۃᐏ  t9@14|xEznwEGշ#QFs cU)/6Zݧ9+Sݾ _Orrθ۽Zݾ2sqc X1P{5y ="@v WOf7&ݫw#@dž'0Gg$-pW#@\B**rb,\=2^vbjۑpyq1#ֺݯߍG|-%wT!Cg[2G;Fbf70TyAw"}-="?'?H>/4t/sgYy s 'Q ;91y]="5ͥB/ݣ+,a,W۾ [mȄ{9j="̆n_t'sjq .=C30_Q20/' t{'="ݝɛdw{ *,NO:w,y@=51hW:="ȵ?QU,ǟ[ ^Kv?t]LBzDz= ǟ?GO O$ǞouOKE8>A/FVI k4}ǝ>Gݏտڑ^AjcN%'M' (md/OkْsO~"ǚx xz}_z-O~~+G?<0u{3PofǖIRI S{?l9L!vO?@VtC+"2q ! W_O!7ˏT-~ێ1A׵X2w'}"@&*-GXJ>X DLTzi?O~8w2Qfs5m+\{c4J9z-)wz/5W'J=!o"O~yaǓlK Jc pǢ'X@W͏qpɀ= XTL^]>b-s?OEPm!rγK<+*'/=*S~7+.kf] ,'+C˫zz=*+#NŶ|?`Q>*Z8K5t5"~_ONg@Ezn?Vգt/I's[7"\oP2 F@ >ѯL[/J0\EE7&'NH_H%{1jO?Kgbxi1B@d&JtKzG@0ƿ_ Z't_{,F@k3]Ӏ7m_yFP~.[XKHr7cyYG˹kȖnhE(w_io?NJtߵj.}#4S% \N̑jwT t?C@;HdzΧwT_ (]DzyO@嘼#} LTj:iJS;Vj6G|=U$=$mm``?6:S/?n?~=D8۩[f`/qwg)+"AY^LpJ(ҏC YΩfAg*V+yJR^yow=~^"Zڕq!=$iO׵vrUߓumA pބM~%z`$wZ}pV헮oI/΋xRaϒ=s}-vGߙb?<4pnCm'\| #/,~^ཟ$IOI{~]O ^]K㍉ De@COge}G٪yoe0B@^`;^lEEҏ s5ş(0rxgI@`}]vK_jK_Q9ε6Y47ɁiWʓe? TeI/(7>$Xsj ^En[:Ui[fH?O2su`MBVҖ Ry|%2">- L3_ g?K@ٮZWӕtnkg/ueٕ/ϲ35A V_p~ǜgCg\ՉvA^ kؿ^s4@WQ]A{w0ĜcY:gp))=;JBKJ/515sZOzС.-L#uBS6H_L ˃=Lu[L @ TJW'؁Q'q^hīXPUF)]ۂC]j>fsNʰڨu ]>%5'SApGipM|v~pTx+`X ŭB9\w}K)qt<;|iFtOPPn BKsFV8SFPn^M ޞ!ڎs2}lXVx-u^ wt ]u䔴 q*Zci_I3܆zۥa`ׇjY} ҍ*!=N(d<=kt1")nc l^@ڄbY'sX<~%)*V3ݮrvK[i6u*Nn?eP%j+p1^z =E]  'ζPTkf<aRb7*/k*jq[NzZ`z_,-ō vH :\ g})i nTj>vk[HmIټ;Ioabz(gR/u SH]2'2jJ]K׵?'^aL:(G5CUnMP4NFDUl͐^= RtNʹeIMQ\{ =d댢bYGNzВ YWdzz*ceJpɵ &l Qů}ǥ7'{wv:.d uZOzn4KU FH3KEE()@Vz]<h>G~`X'/NZzKݗ`x4h<⤟'\j'Qש\53C *>h7_Zƍԧ:xRJvhgm?mNdsu e{lxEx@D^<. ;mt2pE׎}cpN&* (T+m $y1nб6Mzgҭ8瀋,c`H7 [EE1OnhS1@nWK]KӷI{2»(鍉ң+@7&u 5{I||d,k?G/oGYq?UuD4C8JHO e7i1Ǿ4~4{|1@~NRͿ{B6 ;;Oʳ 褞6VJswJ7KH}WHI SO޳aFn@e<kLD8*2&$dL3ʁ TQ}zPߘ& D1U:PH7q@ys@fz@4Se"*_Ejs*UV*ZTpƨ`Eԃ@ @s5azo^p @f.[5@/fU. @5t)VE4@ ~2ŮrDkJTQM)౷)UEGɦTLDHgT`Uc\t* 2L#dbRQ5&v*&T~U11&clDuLTDsp\+hO6^th'n_ٿ xDÁRo9&LVD/s𲩔*P)L啪F*_zSMD3iySՍjR ~_h^QMT5uD'> u~/ `b ;}'Sʞ_łX1>ϩE~bl0{P>SB"o+nc}*&pl&DuX/scQbj`ʠ0Q5sYn21p"BD4M&TLDɜMSz[pfy[rBuMDLT4O嚈rc/MT8f"j+g#&&4N.cLD=LS= >!ihm"Ze"*TdOAM_U?Wt5T-LOڛ晨991ng"jo)P`mQ}LLDLDsMTLDMT&,=a&Q&$L&[[}X^IENDB`cups-2.4.7/desktop/cups-32.png0000644000175000017500000000720514502571342015740 0ustar zdohnalzdohnalPNG  IHDRsRGBDeXIfMM*iHweiTXtXML:com.adobe.xmp New Image Copyright 2020 Michael Sweet Michael Sweet New Image SvePLTEUftwsv{{zzzzzzz{z{>>{{{||}}~~   !"#$%&'()*+,./0123456789:;<=>??@ABDEFGHHIJKLNOPSTVWXYZ[\^_`abcdefgijklmppqsuwxy{}~,82tRNS )U'SIDATx͛i|E=LJCBKi A@۶rGAVQTTD *P R+ȕ&MIݤM27o޾H@EDKtDXhP]DwM"C껩DcQOE5 G$܇IE j A%:EGJ$.@$.@$BҸ Y뎽kJ4CpM?K6VeѩՌ]w19%e6cV۝RXvvĚ  ˚ gb5@&Ӈ،v@Lb5mlnN?Ť' -ݱNRûkUJZmO f ׋sJܼIr)+2U#<Ÿk'|^l-OF8qܨ W;H9x|S;/Qrq=`pq~_& 1e'Е_ ڎBqlYF"60TJx~$ƞ/`~8VytL*1@.D7;ƭ#m_̥^d8?uۗ}?b-,,p@j @$9d{>g d%x ` x->xfE@ױJ$>Tw 5jHzU :{\Pڸ.nε#)ōϡ:1?pMgZB, ,un\ROxA spXrPbx}Bw*=XBVQp+&.Rxn2O'+{)5`k$S ;h&poc_N|ml~4Tx1`_ @Ǥ@᫥n 4AD`/Tc5$(f zLK"V al}.K=:ᾀ)! 5a("@hO?[1zM˶*?xPL@lVtWN sX*R/{x㳫6tna~@kW!h$@VNSߛH0סw^YD@ùz#OԚ+1q HNcn#CSX$Jukh0SxZ!}yV 7H4$y,W,vf֩G?<$"BC/ QK5 Zeׯf%~"X (HʠzWMm?YUڴc$G 1+R]p\SlSJC7)Zf}-uEƮ:sxD\_~щU/ѿ' I+k/>ӿM;Yű;IENDB`cups-2.4.7/desktop/cups-256.png0000644000175000017500000001623314502571342016031 0ustar zdohnalzdohnalPNG  IHDR\rfsRGBDeXIfMM*igIeiTXtXML:com.adobe.xmp New Image Copyright 2020 Michael Sweet Michael Sweet New Image SveIDATx xՕ?Z+jZq(֥NcEqfmcGkUƲ6[@"hMd'B y|! $9}y֢_{sMlR=U_j4J5R 0@X01]# bIk 5/}^">dB*Eѱ(Xr~Zu|xhB!bcuy|HB^q!"R;e c05@H,PX=|:!"86-OqW FM&Yo(88 gU_s qWUe~1Xsϣ>BrDX<&d rI~@0[@d8P$wPz~RR fuJ;c'B|^J? !@38(xEx @q_@ARŷp0Qa0Ad#@F`vRBF"9?tOi Y(2iHzUD+@!#E"EsPd>" 6X#2r<5R^"״1wMrSn`8EDa<39"=*BDyezߍ( {1n "o}*=l(0X'mcCD.o# SsqsGD~&aw<,+1Kh,Gng9x6"/yoHaIu;~݈ϝ1'LX.rȍ7mg0~ܝ@3z;}Y$_D.mA$L]%rl_wP&b+& <2Pd&sU7.I8qG bM!`ӿ(1I/XTߖ T(1Z]aٚV_(ݎ` 3ݘ[֘`sPI @H\a*h2 ] Moj]+e6jIDRTAJƌVYϡ#&uo~b-oEz EH"46u j'rkW"/4K%"78ؠɿR@~p~~8Cw:ګ72tp3i'30|BOA ǩ3&*4paS.- {9# 9FBz, pD8Hx25]^+܇E!ЉGOA}!Oa -9o|kRyy{™jۘc=|cC>ңMX:9j[97BJV9vE mgR!kǾpNEݘ>6l>/w ltoz-P^j7ѩ}vA=-g{{QNm?/m'TG ow``yfZnŎ= @BymmQ֋rUuwnq,B^m!R'o]?>y`F Xޥ߿Np6 me2HeS1b 8qsijcp$i⒠t>{GDIo"ͧ̏)N;Sl8q/ l+'@mCv70}*`cF CYbچ+xLt݆-ʣĞkښ<4roIS"̶?d`ğfwg^ (AqmRQIv}AhnA\˳ ćvC3d}@3Y @d:=JeI{ȷuխKwŝu "y{ ^;= НYzeSbS^oH9y <<@_-c$nsKM҃M^7 s] VgS=3T7%:fO.-fD 2}JrAg]q? Ce}xEk @$d}˷[A'a0Ic?'1hv1(Uz[߇N+}mύ6I*N+)x-nfJ$Vt;]Ԯ/rfox R.h*R/ʋ>8~<wފAED]jy@M@_mEgPQB5mآ5$MGDoRhWn  PBAh{w\T?0䶣ھ?"b4kٯ@)6acPQB&D#L@5-FO7]m'(c. ]4\`Q"?jZkM{ / ̝vx{fx{ȋly @,yunLZw"8\>"4)WݵٴS#FSź9(2m#x*L9W;%n3<۔eY0 ZNgQFD}5v7W<>J@p?8T \ѥi[E]Kx$>fӰ`R*3%[Kf:೎:* Ӱ' Tv3u ? 4yaPaF)wtEH Hf4\AP:PpGPִ^\ MC# ώu)3@Tt4D}.no& PaDQVA o @Pq).*DGQ HT >Pb#~Q)J4_kdk7cR*ĺx}{  :( 3T%sMPgjX%@p#EhCP( K M@ G1`uR(~^D + xS  u@7( 2SV:C) 3XOP(+[_O' gh3CWZ@' gxq%gxlbS@8ziڲ- n ) 3ؔ=lCP7jڽ( ـόP(Π}?`R 4XgI@)| =K׶MNb7]8fi4cz0mu<|ziv @(<2Pm8wKW|8_'}9(vp$hKKo/r&Nhg4XIqyYM;:Ѕ< $5`7-2(BsV{ T.R'2OnJBOePĬz'PiAa`ED  s;8?;O3>K @$}stHKQn-H2 I涮Q6Z54M=4{ $~r+D[>PL1P˪m3 @vtac$+EtaA3ͬ,ID$o״DJ153`7Z('`,xbԮ,MxuI6ﱇK[0p\C_ZP pC &\mw;~ZZFs~국l&iF"_ͧ1\F6- @]v\ٚ*?ӆ^'%a_d:jg6E C) >aʊAۺ2\eھPb=t\A}Q_$d?W~sXv|P;l^ۖwWi'4NIwy_;lBpiҞ?녱 r]{ScF@?V--ۆ%N}pl -7EH hW8Ȅb͜m@hmg_LVHF0Pd~B"| }~Hܶz{"擃|ܖ xX$< ўST[EѠA?b6lH0 s00;=M{P>Kw`MA݈j{bl @co)̡ E֘j˂ދ7 |hz=Ie9kg [}{E\s!`oerv3=SΔ\Uߙ\W~tfFҿY,U`.1W.Sҹ~0 }q-> g^/puݾmNU9{0 ;;UOal2Z) r1% 2^qپMAZH ?"Qkj}i8}'@Th%]l7BL_gfFa㱿3.0 ky3n Ijγ=u{Ⱥ O> .L. ՗P#tyђ&8xvIIʘ"j}f95(23EpF`]TieLWp6!byQ>lXDߦT(}hE mך+oJ?])mڏ}[џ)"GwKVq-Z&$d!)jK5,ʢ(P_oĠY!0S|& oG[=#4hI>  *XKaIP^Mf;c'F~ݤ#Wė47b46YxՎc郖XhH}rH)&Q"8J{bw& 6$Z !#VU U#~WfZzqpG7& u3`c> @$<$p6[w]|)n$ AXVajGߣ+0[7?5Fv{5]f]>MpoIz.39 + M/pAʭȔs){OO !3GL&l7}PЇ~آEz. Wy)(GkvT\^њ@[Ƥ?We-C٦Ј-)(;lE lm qUڹMB;l"->1o%ɯLE:q0j 8n$#~?,caw; Nf g~\F򸨙i  B>sMgt -h8;XV%?潦vA`dzC<  K@/`p*U_q0~Z BZR="!^QT@q@j?/uJ8! f5R_1.pRCuN8@$X/K]!~Miu_Zǁ"$+r@ȷYC#$QLH5 FH"/ Y=BX՗z@B^KUK&'?3Uuj cWǂLjʞ7 _gv:#BBvW`!qI9Β6k0{m L!K 1wž0 5h4B+?.fz fR]}Cs{#åVb^MN|8LLdb1so=/05g[IENDB`cups-2.4.7/desktop/cups-16.png0000644000175000017500000000262314502571342015741 0ustar zdohnalzdohnalPNG  IHDR(-SsRGBDeXIfMM*i4UqeiTXtXML:com.adobe.xmp New Image Copyright 2020 Michael Sweet Michael Sweet New Image SvePLTEx{y{{z||~  !+,024?GLMNbdglouyʎF<tRNSH7aIDATB`)˖-F /]D `8}- deRFt&;mOU9,~o xogEG!_3@V<4߯-vv>Հ8j찮=&eR ʧ]"2 Y2QIENDB`cups-2.4.7/desktop/cups-128.png0000644000175000017500000000720514502571342016026 0ustar zdohnalzdohnalPNG  IHDRsRGBDeXIfMM*iHweiTXtXML:com.adobe.xmp New Image Copyright 2020 Michael Sweet Michael Sweet New Image SvePLTEUftwsv{{zzzzzzz{z{>>{{{||}}~~   !"#$%&'()*+,./0123456789:;<=>??@ABDEFGHHIJKLNOPSTVWXYZ[\^_`abcdefgijklmppqsuwxy{}~,82tRNS )U'SIDATx͛i|E=LJCBKi A@۶rGAVQTTD *P R+ȕ&MIݤM27o޾H@EDKtDXhP]DwM"C껩DcQOE5 G$܇IE j A%:EGJ$.@$.@$BҸ Y뎽kJ4CpM?K6VeѩՌ]w19%e6cV۝RXvvĚ  ˚ gb5@&Ӈ،v@Lb5mlnN?Ť' -ݱNRûkUJZmO f ׋sJܼIr)+2U#<Ÿk'|^l-OF8qܨ W;H9x|S;/Qrq=`pq~_& 1e'Е_ ڎBqlYF"60TJx~$ƞ/`~8VytL*1@.D7;ƭ#m_̥^d8?uۗ}?b-,,p@j @$9d{>g d%x ` x->xfE@ױJ$>Tw 5jHzU :{\Pڸ.nε#)ōϡ:1?pMgZB, ,un\ROxA spXrPbx}Bw*=XBVQp+&.Rxn2O'+{)5`k$S ;h&poc_N|ml~4Tx1`_ @Ǥ@᫥n 4AD`/Tc5$(f zLK"V al}.K=:ᾀ)! 5a("@hO?[1zM˶*?xPL@lVtWN sX*R/{x㳫6tna~@kW!h$@VNSߛH0סw^YD@ùz#OԚ+1q HNcn#CSX$Jukh0SxZ!}yV 7H4$y,W,vf֩G?<$"BC/ QK5 Zeׯf%~"X (HʠzWMm?YUڴc$G 1+R]p\SlSJC7)Zf}-uEƮ:sxD\_~щU/ѿ' I+k/>ӿM;Yű;IENDB`cups-2.4.7/desktop/Makefile0000644000175000017500000000464014502571342015476 0ustar zdohnalzdohnal# # Desktop makefile for CUPS. # # Copyright 2007-2009 by Apple Inc. # Copyright 1993-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs # # Make everything... # all: # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: # # Dummy depend... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: if test "x$(DBUSDIR)" != x; then \ echo Installing cups.conf in $(DBUSDIR)...;\ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR)/system.d; \ $(INSTALL_DATA) cups.conf $(BUILDROOT)$(DBUSDIR)/system.d/cups.conf; \ fi if test "x$(MENUDIR)" != x; then \ echo Installing desktop menu...; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(MENUDIR); \ $(INSTALL_DATA) cups.desktop $(BUILDROOT)$(MENUDIR); \ fi if test "x$(ICONDIR)" != x; then \ echo Installing desktop icons...; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps; \ $(INSTALL_DATA) cups-16.png $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps; \ $(INSTALL_DATA) cups-32.png $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps; \ $(INSTALL_DATA) cups-64.png $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps; \ $(INSTALL_DATA) cups-128.png $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \ fi # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: if test "x$(DBUSDIR)" != x; then \ echo Uninstalling cups.conf in $(DBUSDIR)...;\ $(RM) $(BUILDROOT)$(DBUSDIR)/cups.conf; \ $(RMDIR) $(BUILDROOT)$(DBUSDIR); \ fi if test "x$(MENUDIR)" != x; then \ echo Uninstalling desktop menu...; \ $(RM) $(BUILDROOT)$(MENUDIR)/cups.desktop; \ fi if test "x$(ICONDIR)" != x; then \ echo Uninstalling desktop icons...; \ $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/16x16/apps/cups.png; \ $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/32x32/apps/cups.png; \ $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/64x64/apps/cups.png; \ $(RM) $(BUILDROOT)$(ICONDIR)/hicolor/128x128/apps/cups.png; \ fi cups-2.4.7/data/0000755000175000017500000000000014502571342013272 5ustar zdohnalzdohnalcups-2.4.7/data/smiley.ps0000644000175000017500000000103414502571342015136 0ustar zdohnalzdohnal%!PS-Adobe-3.0 %%BoundingBox: 36 36 576 756 %%Pages: 1 %%LanguageLevel: 2 %%EndComments %%Page: (1) 1 % Draw a black box around the page 0 setgray 1 setlinewidth 36 36 540 720 rectstroke % Draw a two inch blue circle in the middle of the page 0 0 1 setrgbcolor 306 396 144 0 360 arc closepath fill % Draw two half inch yellow circles for eyes 1 1 0 setrgbcolor 252 432 36 0 360 arc closepath fill 360 432 36 0 360 arc closepath fill % Draw the smile 1 setlinecap 18 setlinewidth 306 396 99 200 340 arc stroke % Print it! showpage %%EOF cups-2.4.7/data/raster.defs0000644000175000017500000000730514502571342015442 0ustar zdohnalzdohnal/* * This file contains the standard definitions for enumerated attributes * in the CUPS raster page device dictionary. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* Jog values */ #define CUPS_JOG_NONE 0 /* Never move pages */ #define CUPS_JOG_FILE 1 /* Move pages after this file */ #define CUPS_JOG_JOB 2 /* Move pages after this job */ #define CUPS_JOG_SET 3 /* Move pages after this set */ /* Orientation values */ #define CUPS_ORIENT_0 0 /* Don't rotate the page */ #define CUPS_ORIENT_90 1 /* Rotate the page counter-clockwise */ #define CUPS_ORIENT_180 2 /* Turn the page upside down */ #define CUPS_ORIENT_270 3 /* Rotate the page clockwise */ /* CutMedia values */ #define CUPS_CUT_NONE 0 /* Never cut the roll */ #define CUPS_CUT_FILE 1 /* Cut the roll after this file */ #define CUPS_CUT_JOB 2 /* Cut the roll after this job */ #define CUPS_CUT_SET 3 /* Cut the roll after this set */ #define CUPS_CUT_PAGE 4 /* Cut the roll after this page */ /* AdvanceMedia values */ #define CUPS_ADVANCE_NONE 0 /* Never advance the roll */ #define CUPS_ADVANCE_FILE 1 /* Advance the roll after this file */ #define CUPS_ADVANCE_JOB 2 /* Advance the roll after this job */ #define CUPS_ADVANCE_SET 3 /* Advance the roll after this set */ #define CUPS_ADVANCE_PAGE 4 /* Advance the roll after this page */ /* LeadingEdge values */ #define CUPS_EDGE_TOP 0 /* Leading edge is the top of the page */ #define CUPS_EDGE_RIGHT 1 /* Leading edge is the right of the page */ #define CUPS_EDGE_BOTTOM 2 /* Leading edge is the bottom of the page */ #define CUPS_EDGE_LEFT 3 /* Leading edge is the left of the page */ /* cupsColorOrder values */ #define CUPS_ORDER_CHUNKED 0 /* CMYK CMYK CMYK ... */ #define CUPS_ORDER_BANDED 1 /* CCC MMM YYY KKK ... */ #define CUPS_ORDER_PLANAR 2 /* CCC ... MMM ... YYY ... KKK ... */ /* cupsColorSpace values */ #define CUPS_CSPACE_W 0 /* Luminance */ #define CUPS_CSPACE_RGB 1 /* Red, green, blue */ #define CUPS_CSPACE_RGBA 2 /* Red, green, blue, alpha */ #define CUPS_CSPACE_K 3 /* Black */ #define CUPS_CSPACE_CMY 4 /* Cyan, magenta, yellow */ #define CUPS_CSPACE_YMC 5 /* Yellow, magenta, cyan */ #define CUPS_CSPACE_CMYK 6 /* Cyan, magenta, yellow, black */ #define CUPS_CSPACE_YMCK 7 /* Yellow, magenta, cyan, black */ #define CUPS_CSPACE_KCMY 8 /* Black, cyan, magenta, yellow */ #define CUPS_CSPACE_KCMYcm 9 /* Black, cyan, magenta, yellow, * * light-cyan, light-magenta */ #define CUPS_CSPACE_GMCK 10 /* Gold, magenta, yellow, black */ #define CUPS_CSPACE_GMCS 11 /* Gold, magenta, yellow, silver */ #define CUPS_CSPACE_WHITE 12 /* White ink (as black) */ #define CUPS_CSPACE_GOLD 13 /* Gold foil */ #define CUPS_CSPACE_SILVER 14 /* Silver foil */ #define CUPS_CSPACE_CIEXYZ 15 /* CIE XYZ */ #define CUPS_CSPACE_CIELab 16 /* CIE Lab */ #define CUPS_CSPACE_ICC1 32 /* ICC-based, 1 color */ #define CUPS_CSPACE_ICC2 33 /* ICC-based, 2 colors */ #define CUPS_CSPACE_ICC3 34 /* ICC-based, 3 colors */ #define CUPS_CSPACE_ICC4 35 /* ICC-based, 4 colors */ #define CUPS_CSPACE_ICC5 36 /* ICC-based, 5 colors */ #define CUPS_CSPACE_ICC6 37 /* ICC-based, 6 colors */ #define CUPS_CSPACE_ICC7 38 /* ICC-based, 7 colors */ #define CUPS_CSPACE_ICC8 39 /* ICC-based, 8 colors */ #define CUPS_CSPACE_ICC9 40 /* ICC-based, 9 colors */ #define CUPS_CSPACE_ICCA 41 /* ICC-based, 10 colors */ #define CUPS_CSPACE_ICCB 42 /* ICC-based, 11 colors */ #define CUPS_CSPACE_ICCC 43 /* ICC-based, 12 colors */ #define CUPS_CSPACE_ICCD 44 /* ICC-based, 13 colors */ #define CUPS_CSPACE_ICCE 45 /* ICC-based, 14 colors */ #define CUPS_CSPACE_ICCF 46 /* ICC-based, 15 colors */ cups-2.4.7/data/media.defs0000644000175000017500000001633414502571342015223 0ustar zdohnalzdohnal/* * Adobe standard media size definitions for the CUPS PPD file compiler. * * Copyright © 2007-2016 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #media "3x5/3 x 5" 216 360 #media "3.5x5/3.5 x 5" 252 360 #media "5x7/5 x 7" 360 504 #media "10x11/10 x 11" 720 792 #media "10x13/10 x 13" 720 936 #media "10x14/10 x 14" 720 1008 #media "12x11/12 x 11" 864 792 #media "15x11/15 x 11" 1080 792 #media "7x9/7 x 9" 504 648 #media "8x10/8 x 10" 576 720 #media "9x11/9 x 11" 648 792 #media "9x12/9 x 12" 648 864 #media "A0/A0" 2384 3370 #media "A0.Transverse/A0 Long Edge" 3370 2384 #media "A1/A1" 1684 2384 #media "A1.Transverse/A1 Long Edge" 2384 1684 #media "A2/A2" 1191 1684 #media "A2.Transverse/A2 Long Edge" 1684 1191 #media "A3/A3" 842 1191 #media "A3.Transverse/A3 Long Edge" 1191 842 #media "A3Extra/A3 Oversize" 913 1262 #media "A3Extra.Transverse/A3 Oversize Long Edge" 913 1262 #media "A3Rotated/A3 Long Edge" 1191 842 #media "A4/A4" 595 842 #media "A4Extra/A4 Oversize" 667 914 #media "A4Plus/A4 Oversize" 595 936 #media "A4Rotated/A4 Long Edge" 842 595 #media "A4Small/A4 Small" 595 842 #media "A4.Transverse/A4 Long Edge" 842 595 #media "A5/A5" 420 595 #media "A5Extra/A5 Oversize" 492 668 #media "A5Rotated/A5 Long Edge" 595 420 #media "A5.Transverse/A5 Long Edge" 595 420 #media "A6/A6" 297 420 #media "A6Rotated/A6 Long Edge" 420 297 #media "A7/A7" 210 297 #media "A8/A8" 148 210 #media "A9/A9" 105 148 #media "A10/A10" 73 105 #media "AnsiA/ANSI A" 612 792 #media "AnsiB/ANSI B" 792 1224 #media "AnsiC/ANSI C" 1224 1584 #media "AnsiD/ANSI D" 1584 2448 #media "AnsiE/ANSI E" 2448 3168 #media "ARCHA/Letter Oversize" 648 864 #media "ARCHA.Transverse/Letter Oversize Long Edge" 864 648 #media "ARCHB/Tabloid Oversize" 864 1296 #media "ARCHB.Transverse/Tabloid Oversize Long Edge" 1296 864 #media "ARCHC/ARCH C" 1296 1728 #media "ARCHC.Transverse/ARCH C Long Edge" 1728 1296 #media "ARCHD/ARCH D" 1728 2592 #media "ARCHD.Transverse/ARCH D Long Edge" 2592 1728 #media "ARCHE/ARCH E" 2592 3456 #media "ARCHE.Transverse/ARCH E Long Edge" 3456 2592 #media "B0/JIS B0" 2920 4127 #media "B10/JIS B10" 91 127 #media "B1/JIS B1" 2064 2918 #media "B1/JIS B1" 2064 2920 #media "B2/JIS B2" 1460 2064 #media "B3/JIS B3" 1032 1460 #media "B4/JIS B4" 729 1032 #media "B4Rotated/JIS B4 Long Edge" 1032 729 #media "B5/JIS B5" 516 729 #media "B5Rotated/JIS B5 Long Edge" 729 516 #media "B5.Transverse/JIS B5 Long Edge" 516 729 #media "B6/JIS B6" 363 516 #media "B6Rotated/JIS B6 Long Edge" 516 363 #media "B7/JIS B7" 258 363 #media "B8/JIS B8" 181 258 #media "B9/JIS B9" 127 181 #media "C4/Envelope C4" 649 918 #media "C5/Envelope C5" 459 649 #media "C6/Envelope C6" 323 459 #media "DL/Envelope DL" 312 624 #media "DoublePostcard/Postcard Double" 567 420 #media "DoublePostcardRotated/Postcard Double Long Edge" 420 567 #media "Env10/Envelope #10" 297 684 #media "Env11/Envelope #11" 324 747 #media "Env12/Envelope #12" 342 792 #media "Env14/Envelope #14" 360 828 #media "Env9/Envelope #9" 279 639 #media "EnvC0/Envelope C0" 2599 3676 #media "EnvC1/Envelope C1" 1837 2599 #media "EnvC2/Envelope C2" 1298 1837 #media "EnvC3/Envelope C3" 918 1296 #media "EnvC4/Envelope C4" 649 918 #media "EnvC5/Envelope C5" 459 649 #media "EnvC65/Envelope C65" 324 648 #media "EnvC6/Envelope C6" 323 459 #media "EnvC7/Envelope C7" 230 323 #media "EnvChou3/Envelope Choukei 3" 340 666 #media "EnvChou3Rotated/Envelope Choukei 3 Long Edge" 666 340 #media "EnvChou4/Envelope Choukei 4" 255 581 #media "EnvChou4Rotated/Envelope Choukei 4 Long Edge" 581 255 #media "EnvDL/Envelope DL" 312 624 #media "EnvInvite/Envelope Invite" 624 624 #media "EnvISOB4/Envelope B4" 708 1001 #media "EnvISOB5/Envelope B5" 499 709 #media "EnvISOB6/Envelope B6" 499 354 #media "EnvItalian/Envelope Italian" 312 652 #media "EnvKaku2/Envelope Kaku2" 680 941 #media "EnvKaku2Rotated/Envelope Kaku2 Long Edge" 941 680 #media "EnvKaku3/Envelope Kaku3" 612 785 #media "EnvKaku3Rotated/Envelope Kaku3 Long Edge" 785 612 #media "EnvMonarch/Envelope Monarch" 279 540 #media "EnvPersonal/Envelope Personal" 261 468 #media "EnvPRC1/Envelope PRC1" 289 468 #media "EnvPRC1Rotated/Envelope PRC1 Long Edge" 468 289 #media "EnvPRC2/Envelope PRC2" 289 499 #media "EnvPRC2Rotated/Envelope PRC2 Long Edge" 499 289 #media "EnvPRC3/Envelope PRC3" 354 499 #media "EnvPRC3Rotated/Envelope PRC3 Long Edge" 499 354 #media "EnvPRC4/Envelope PRC4" 312 590 #media "EnvPRC4Rotated/Envelope PRC4 Long Edge" 590 312 #media "EnvPRC5/Envelope PRC5PRC5" 312 624 #media "EnvPRC5Rotated/Envelope PRC5 Long Edge" 624 312 #media "EnvPRC6/Envelope PRC6" 340 652 #media "EnvPRC6Rotated/Envelope PRC6 Long Edge" 652 340 #media "EnvPRC7/Envelope PRC7" 454 652 #media "EnvPRC7Rotated/Envelope PRC7 Long Edge" 652 454 #media "EnvPRC8/Envelope PRC8" 340 876 #media "EnvPRC8Rotated/Envelope PRC8 Long Edge" 876 340 #media "EnvPRC9/Envelope PRC9" 649 918 #media "EnvPRC9Rotated/Envelope PRC9 Long Edge" 918 649 #media "EnvPRC10/Envelope PRC10" 918 1298 #media "EnvPRC10Rotated/Envelope PRC10 Long Edge" 1298 918 #media "EnvYou4/Envelope You4" 298 666 #media "EnvYou4Rotated/Envelope You4 Long Edge" 666 298 #media "Executive/Executive" 522 756 #media "FanFoldGerman/European Fanfold" 612 864 #media "FanFoldGermanLegal/European Fanfold Legal" 612 936 #media "FanFoldUS/US Fanfold" 1071 792 #media "Folio/Folio" 595 935 #media "ISOB0/B0" 2835 4008 #media "ISOB1/B1" 2004 2835 #media "ISOB2/B2" 1417 2004 #media "ISOB3/B3" 1001 1417 #media "ISOB4/B4" 709 1001 #media "ISOB5/B5" 499 709 #media "ISOB5Extra/B5 Oversize" 570 782 #media "ISOB6/B6" 354 499 #media "ISOB7/B7" 249 354 #media "ISOB8/B8" 176 249 #media "ISOB9/B9" 125 176 #media "ISOB10/B10" 88 125 #media "Ledger/US Ledger" 1224 792 #media "Legal/US Legal" 612 1008 #media "LegalExtra/US Legal Oversize" 684 1080 #media "Letter/US Letter" 612 792 #media "Letter.Transverse/US Letter Long Edge" 792 612 #media "LetterExtra/US Letter Oversize" 684 864 #media "LetterExtra.Transverse/US Letter Oversize Long Edge" 864 684 #media "LetterPlus/US Letter Oversize" 612 914 #media "LetterRotated/US Letter Long Edge" 792 612 #media "LetterSmall/US Letter Small" 612 792 #media "Monarch/Envelope Monarch" 279 540 #media "Note/Note" 612 792 #media "Postcard/Postcard" 284 419 #media "PostcardRotated/Postcard Long Edge" 419 284 #media "PRC16K/PRC16K" 414 610 #media "PRC16KRotated/PRC16K Long Edge" 610 414 #media "PRC32K/PRC32K" 275 428 #media "PRC32KBig/PRC32K Oversize" 275 428 #media "PRC32KBigRotated/PRC32K Oversize Long Edge" 428 275 #media "PRC32KRotated/PRC32K Long Edge" 428 275 #media "Quarto/Quarto" 610 780 #media "Statement/Statement" 396 612 #media "SuperA/Super A" 643 1009 #media "SuperB/Super B" 864 1380 #media "Tabloid/Tabloid" 792 1224 #media "TabloidExtra/Tabloid Oversize" 864 1296 /* * Non-standard sizes... */ #media "Photo4x6/Photo" 288 432 #media "PhotoLabel/Photo Labels" 288 468 #media "w936h1368/Super B/A3" 936 1368 #media "w81h252/Address" 81 252 #media "w101h252/Large Address" 101 252 #media "w54h144/Return Address" 54 144 #media "w167h288/Shipping Address" 167 288 #media "w162h540/Internet Postage 2-Part" 162 540 #media "w162h504/Internet Postage 3-Part" 162 504 #media "w41h248/File Folder" 41 248 #media "w41h144/Hanging Folder" 41 144 #media "w153h198/3.5\" Disk" 153 198 cups-2.4.7/data/label.h0000644000175000017500000000127014502571342014522 0ustar zdohnalzdohnal/* * This file contains model number definitions for the CUPS sample * label printer driver. * * Copyright 2007 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #define DYMO_3x0 0 /* Dymo Labelwriter 300/330/330 Turbo */ #define ZEBRA_EPL_LINE 0x10 /* Zebra EPL line mode printers */ #define ZEBRA_EPL_PAGE 0x11 /* Zebra EPL page mode printers */ #define ZEBRA_ZPL 0x12 /* Zebra ZPL-based printers */ #define ZEBRA_CPCL 0x13 /* Zebra CPCL-based printers */ #define INTELLITECH_PCL 0x20 /* Intellitech PCL-based printers */ cups-2.4.7/data/hp.h0000644000175000017500000000064014502571342014052 0ustar zdohnalzdohnal/* * This file contains model number definitions for the CUPS sample * HP driver. * * Copyright 2007 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #define HP_LASERJET 0 /* HP LaserJet */ #define HP_DESKJET 1 /* HP DeskJet with simple color */ #define HP_DESKJET2 2 /* HP DeskJet with CRet color */ cups-2.4.7/data/font.defs0000644000175000017500000000417214502571342015107 0ustar zdohnalzdohnal/* * Standard font definitions for the CUPS PPD file compiler. * * Copyright © 2007 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #font AvantGarde-Book Standard "(1.05)" Standard ROM #font AvantGarde-BookOblique Standard "(1.05)" Standard ROM #font AvantGarde-Demi Standard "(1.05)" Standard ROM #font AvantGarde-DemiOblique Standard "(1.05)" Standard ROM #font Bookman-Demi Standard "(1.05)" Standard ROM #font Bookman-DemiItalic Standard "(1.05)" Standard ROM #font Bookman-Light Standard "(1.05)" Standard ROM #font Bookman-LightItalic Standard "(1.05)" Standard ROM #font Courier Standard "(1.05)" Standard ROM #font Courier-Bold Standard "(1.05)" Standard ROM #font Courier-BoldOblique Standard "(1.05)" Standard ROM #font Courier-Oblique Standard "(1.05)" Standard ROM #font Helvetica Standard "(1.05)" Standard ROM #font Helvetica-Bold Standard "(1.05)" Standard ROM #font Helvetica-BoldOblique Standard "(1.05)" Standard ROM #font Helvetica-Narrow Standard "(1.05)" Standard ROM #font Helvetica-Narrow-Bold Standard "(1.05)" Standard ROM #font Helvetica-Narrow-BoldOblique Standard "(1.05)" Standard ROM #font Helvetica-Narrow-Oblique Standard "(1.05)" Standard ROM #font Helvetica-Oblique Standard "(1.05)" Standard ROM #font NewCenturySchlbk-Bold Standard "(1.05)" Standard ROM #font NewCenturySchlbk-BoldItalic Standard "(1.05)" Standard ROM #font NewCenturySchlbk-Italic Standard "(1.05)" Standard ROM #font NewCenturySchlbk-Roman Standard "(1.05)" Standard ROM #font Palatino-Bold Standard "(1.05)" Standard ROM #font Palatino-BoldItalic Standard "(1.05)" Standard ROM #font Palatino-Italic Standard "(1.05)" Standard ROM #font Palatino-Roman Standard "(1.05)" Standard ROM #font Symbol Special "(001.005)" Special ROM #font Times-Bold Standard "(1.05)" Standard ROM #font Times-BoldItalic Standard "(1.05)" Standard ROM #font Times-Italic Standard "(1.05)" Standard ROM #font Times-Roman Standard "(1.05)" Standard ROM #font ZapfChancery-MediumItalic Standard "(1.05)" Standard ROM #font ZapfDingbats Special "(001.005)" Special ROM cups-2.4.7/data/epson.h0000644000175000017500000000112314502571342014564 0ustar zdohnalzdohnal/* * This file contains model number definitions for the CUPS sample * ESC/P driver. * * Copyright 2007 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #define EPSON_9PIN 0 /* 9-pin dot matrix */ #define EPSON_24PIN 1 /* 24-pin dot matrix */ #define EPSON_COLOR 2 /* Epson Stylus Color with ESC . */ #define EPSON_PHOTO 3 /* Epson Stylus Photo with ESC . */ #define EPSON_ICOLOR 4 /* Epson Stylus Color with ESC i */ #define EPSON_IPHOTO 5 /* Epson Stylus Photo with ESC i */ cups-2.4.7/data/cups.suse0000644000175000017500000000010714502571342015143 0ustar zdohnalzdohnalauth required pam_unix2.so nullok shadow account required pam_unix2.so cups-2.4.7/data/cups.pam0000644000175000017500000000014114502571342014737 0ustar zdohnalzdohnalauth required /lib/security/pam_pwdb.so nullok shadow account required /lib/security/pam_pwdb.so cups-2.4.7/data/cups.irix0000644000175000017500000000012714502571342015141 0ustar zdohnalzdohnal#%PAM-1.0 auth required pam_unix.so shadow nodelay nullok account required pam_unix.so cups-2.4.7/data/Makefile0000644000175000017500000000253714502571342014741 0ustar zdohnalzdohnal# # Datafile makefile for CUPS. # # Copyright 2007-2014 by Apple Inc. # Copyright 1993-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs # # Data files... # PPDCFILES = \ epson.h \ font.defs \ hp.h \ label.h \ media.defs \ raster.defs # # Make everything... # all: # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: # # Dummy depend... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: $(INSTALL_DIR) -m 755 $(DATADIR)/banners $(INSTALL_DIR) -m 755 $(DATADIR)/data $(INSTALL_DIR) -m 755 $(DATADIR)/model $(INSTALL_DIR) -m 755 $(DATADIR)/ppdc for file in $(PPDCFILES); do \ $(INSTALL_DATA) $$file $(DATADIR)/ppdc; \ done $(INSTALL_DIR) -m 755 $(DATADIR)/profiles # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: for file in $(PPDCFILES); do \ $(RM) $(DATADIR)/ppdc/$$file; \ done -$(RMDIR) $(DATADIR)/profiles -$(RMDIR) $(DATADIR)/ppdc -$(RMDIR) $(DATADIR)/model -$(RMDIR) $(DATADIR)/data -$(RMDIR) $(DATADIR)/banners -$(RMDIR) $(DATADIR) cups-2.4.7/cups/0000755000175000017500000000000014502571342013333 5ustar zdohnalzdohnalcups-2.4.7/cups/versioning.h0000644000175000017500000002650614502571342015700 0ustar zdohnalzdohnal/* * API versioning definitions for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_VERSIONING_H_ # define _CUPS_VERSIONING_H_ /* * This header defines several macros that add compiler-specific attributes for * functions: * * - _CUPS_API_major_minor[_patch]: Specifies when an API became available by * CUPS version. * - _CUPS_DEPRECATED: Function is deprecated with no replacement. * - _CUPS_DEPRECATED_MSG("message"): Function is deprecated and has a * replacement. * - _CUPS_FORMAT(format-index, additional-args-index): Function has a * printf-style format argument followed by zero or more additional * arguments. Indices start at 1. * - _CUPS_INTERNAL: Function is internal with no replacement API. * - _CUPS_INTERNAL_MSG("msg"): Function is internal - use specified API * instead. * - _CUPS_NONNULL((arg list)): Specifies the comma-separated argument indices * are assumed non-NULL. Indices start at 1. * - _CUPS_NORETURN: Specifies the function does not return. * - _CUPS_PRIVATE: Specifies the function is private to CUPS. * - _CUPS_PUBLIC: Specifies the function is public API. */ /* * Determine which compiler is being used and what annotation features are * available... */ # if defined(__APPLE__) && defined(__has_include) # if __has_include() # include # define _CUPS_API_AVAILABLE(...) API_AVAILABLE(__VA_ARGS__) # define _CUPS_API_DEPRECATED(...) API_DEPRECATED(__VA_ARGS__) # else # define _CUPS_API_AVAILABLE(...) # define _CUPS_API_DEPRECATED(...) # endif /* __has_include() */ # else # define _CUPS_API_AVAILABLE(...) # define _CUPS_API_DEPRECATED(...) # endif /* __APPLE__ && __has_include */ # ifdef __has_extension /* Clang */ # define _CUPS_HAS_DEPRECATED # define _CUPS_HAS_FORMAT # define _CUPS_HAS_NORETURN # define _CUPS_HAS_VISIBILITY # if __has_extension(attribute_deprecated_with_message) # define _CUPS_HAS_DEPRECATED_WITH_MESSAGE # endif # if __has_extension(attribute_unavailable_with_message) # define _CUPS_HAS_UNAVAILABLE_WITH_MESSAGE # endif # elif defined(__GNUC__) /* GCC and compatible */ # if __GNUC__ >= 3 /* GCC 3.0 or higher */ # define _CUPS_HAS_DEPRECATED # define _CUPS_HAS_FORMAT # define _CUPS_HAS_NORETURN # define _CUPS_HAS_VISIBILITY # endif /* __GNUC__ >= 3 */ # if __GNUC__ >= 5 /* GCC 5.x */ # define _CUPS_HAS_DEPRECATED_WITH_MESSAGE # elif __GNUC__ == 4 && __GNUC_MINOR__ >= 5 /* GCC 4.5 or higher */ # define _CUPS_HAS_DEPRECATED_WITH_MESSAGE # endif /* __GNUC__ >= 5 */ # elif defined(_WIN32) # define __attribute__(...) # endif /* __has_extension */ /* * Define _CUPS_INTERNAL, _CUPS_PRIVATE, and _CUPS_PUBLIC visibility macros for * internal/private/public functions... */ # ifdef _CUPS_HAS_VISIBILITY # define _CUPS_INTERNAL __attribute__ ((visibility("hidden"))) # define _CUPS_PRIVATE __attribute__ ((visibility("default"))) # define _CUPS_PUBLIC __attribute__ ((visibility("default"))) # elif defined(_WIN32) && defined(LIBCUPS2_EXPORTS) && 0 # define _CUPS_INTERNAL # define _CUPS_PRIVATE __declspec(dllexport) # define _CUPS_PUBLIC __declspec(dllexport) # else # define _CUPS_INTERNAL # define _CUPS_PRIVATE # define _CUPS_PUBLIC # endif /* _CUPS_HAS_VISIBILITY */ /* * Define _CUPS_API_major_minor[_patch] availability macros for CUPS. * * Note: Using any of the _CUPS_API macros automatically adds _CUPS_PUBLIC. */ # if defined(__APPLE__) && !defined(_CUPS_SOURCE) && TARGET_OS_OSX /* * On Apple operating systems, the _CUPS_API_* constants are defined using the * API_ macros in . * * On iOS, we don't actually have libcups available directly, but the supplied * libcups_static target in the Xcode project supports building on iOS 11.0 and * later. */ # define _CUPS_API_1_1_19 _CUPS_API_AVAILABLE(macos(10.3), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_1_20 _CUPS_API_AVAILABLE(macos(10.4), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_1_21 _CUPS_API_AVAILABLE(macos(10.4), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_2 _CUPS_API_AVAILABLE(macos(10.5), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_3 _CUPS_API_AVAILABLE(macos(10.5), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_4 _CUPS_API_AVAILABLE(macos(10.6), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_5 _CUPS_API_AVAILABLE(macos(10.7), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_6 _CUPS_API_AVAILABLE(macos(10.8), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_1_7 _CUPS_API_AVAILABLE(macos(10.9), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_2_0 _CUPS_API_AVAILABLE(macos(10.10), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_2_2 _CUPS_API_AVAILABLE(macos(10.12), ios(11.0)) _CUPS_PUBLIC # define _CUPS_API_2_2_4 _CUPS_API_AVAILABLE(macos(10.13), ios(12.0)) _CUPS_PUBLIC # define _CUPS_API_2_2_7 _CUPS_API_AVAILABLE(macos(10.14), ios(13.0)) _CUPS_PUBLIC # define _CUPS_API_2_3 _CUPS_API_AVAILABLE(macos(10.14), ios(13.0)) _CUPS_PUBLIC # define _CUPS_API_2_4 _CUPS_PUBLIC # else # define _CUPS_API_1_1_19 _CUPS_PUBLIC # define _CUPS_API_1_1_20 _CUPS_PUBLIC # define _CUPS_API_1_1_21 _CUPS_PUBLIC # define _CUPS_API_1_2 _CUPS_PUBLIC # define _CUPS_API_1_3 _CUPS_PUBLIC # define _CUPS_API_1_4 _CUPS_PUBLIC # define _CUPS_API_1_5 _CUPS_PUBLIC # define _CUPS_API_1_6 _CUPS_PUBLIC # define _CUPS_API_1_7 _CUPS_PUBLIC # define _CUPS_API_2_0 _CUPS_PUBLIC # define _CUPS_API_2_2 _CUPS_PUBLIC # define _CUPS_API_2_2_4 _CUPS_PUBLIC # define _CUPS_API_2_2_7 _CUPS_PUBLIC # define _CUPS_API_2_3 _CUPS_PUBLIC # define _CUPS_API_2_4 _CUPS_PUBLIC # endif /* __APPLE__ && !_CUPS_SOURCE */ /* * Define _CUPS_DEPRECATED and _CUPS_INTERNAL macros to mark old APIs as * "deprecated" or "unavailable" with messages so you get warnings/errors are * compile-time... * * Note: Using any of the _CUPS_DEPRECATED macros automatically adds * _CUPS_PUBLIC. */ # if !defined(_CUPS_HAS_DEPRECATED) || (defined(_CUPS_SOURCE) && !defined(_CUPS_NO_DEPRECATED)) /* * Don't mark functions deprecated if the compiler doesn't support it * or we are building CUPS source that doesn't care. */ # define _CUPS_DEPRECATED _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) _CUPS_PUBLIC # elif defined(__APPLE__) && defined(_CUPS_NO_DEPRECATED) /* * Compiler supports the unavailable attribute, so use it when the code * wants to exclude the use of deprecated API. */ # define _CUPS_DEPRECATED __attribute__ ((unavailable)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.5), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.8), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.9), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.12), ios(11.0,11.0)) _CUPS_PUBLIC # elif defined(__APPLE__) /* * Just mark things as deprecated... */ # define _CUPS_DEPRECATED __attribute__ ((deprecated)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.5), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.8), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.9), ios(11.0,11.0)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) _CUPS_API_DEPRECATED(m, macos(10.2,10.12), ios(11.0,11.0)) _CUPS_PUBLIC # elif defined(_CUPS_HAS_UNAVAILABLE_WITH_MESSAGE) && defined(_CUPS_NO_DEPRECATED) /* * Compiler supports the unavailable attribute, so use it when the code * wants to exclude the use of deprecated API. */ # define _CUPS_DEPRECATED __attribute__ ((unavailable)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # else /* * Compiler supports the deprecated attribute, so use it. */ # define _CUPS_DEPRECATED __attribute__ ((deprecated)) _CUPS_PUBLIC # ifdef _CUPS_HAS_DEPRECATED_WITH_MESSAGE # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # else # define _CUPS_DEPRECATED_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_2_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_6_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_1_7_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # define _CUPS_DEPRECATED_2_2_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # endif /* _CUPS_HAS_DEPRECATED_WITH_MESSAGE */ # endif /* !_CUPS_HAS_DEPRECATED || (_CUPS_SOURCE && !_CUPS_NO_DEPRECATED) */ /* * Define _CUPS_FORMAT macro for printf-style functions... */ # ifdef _CUPS_HAS_FORMAT # define _CUPS_FORMAT(a,b) __attribute__ ((__format__(__printf__, a,b))) # else # define _CUPS_FORMAT(a,b) # endif /* _CUPS_HAS_FORMAT */ /* * Define _CUPS_INTERNAL_MSG macro for private APIs that have (historical) * public visibility. * * Note: Using the _CUPS_INTERNAL_MSG macro automatically adds _CUPS_PUBLIC. */ # ifdef _CUPS_SOURCE # define _CUPS_INTERNAL_MSG(m) _CUPS_PUBLIC # elif defined(_CUPS_HAS_UNAVAILABLE_WITH_MESSAGE) # define _CUPS_INTERNAL_MSG(m) __attribute__ ((unavailable(m))) _CUPS_PUBLIC # elif defined(_CUPS_HAS_DEPRECATED_WITH_MESSAGE) # define _CUPS_INTERNAL_MSG(m) __attribute__ ((deprecated(m))) _CUPS_PUBLIC # else # define _CUPS_INTERNAL_MSG(m) __attribute__ ((deprecated)) _CUPS_PUBLIC # endif /* _CUPS_SOURCE */ /* * Define _CUPS_NONNULL macro for functions that don't expect non-null * arguments... */ # ifdef _CUPS_HAS_NONNULL # define _CUPS_NONNULL(...) __attribute__ ((nonnull(__VA_ARGS__))) # else # define _CUPS_NONNULL(...) # endif /* _CUPS_HAS_FORMAT */ /* * Define _CUPS_NORETURN macro for functions that don't return. */ # ifdef _CUPS_HAS_NORETURN # define _CUPS_NORETURN __attribute__ ((noreturn)) # else # define _CUPS_NORETURN # endif /* _CUPS_HAS_NORETURN */ #endif /* !_CUPS_VERSIONING_H_ */ cups-2.4.7/cups/util.c0000644000175000017500000006501314502571342014461 0ustar zdohnalzdohnal/* * Printing utilities for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ /* * 'cupsCancelJob()' - Cancel a print job on the default server. * * Pass @code CUPS_JOBID_ALL@ to cancel all jobs or @code CUPS_JOBID_CURRENT@ * to cancel the current job on the named destination. * * Use the @link cupsLastError@ and @link cupsLastErrorString@ functions to get * the cause of any failure. * * @exclude all@ */ int /* O - 1 on success, 0 on failure */ cupsCancelJob(const char *name, /* I - Name of printer or class */ int job_id) /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */ { return (cupsCancelJob2(CUPS_HTTP_DEFAULT, name, job_id, 0) < IPP_STATUS_REDIRECTION_OTHER_SITE); } /* * 'cupsCancelJob2()' - Cancel or purge a print job. * * Canceled jobs remain in the job history while purged jobs are removed * from the job history. * * Pass @code CUPS_JOBID_ALL@ to cancel all jobs or @code CUPS_JOBID_CURRENT@ * to cancel the current job on the named destination. * * Use the @link cupsLastError@ and @link cupsLastErrorString@ functions to get * the cause of any failure. * * @since CUPS 1.4/macOS 10.6@ @exclude all@ */ ipp_status_t /* O - IPP status */ cupsCancelJob2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Name of printer or class */ int job_id, /* I - Job ID, @code CUPS_JOBID_CURRENT@ for the current job, or @code CUPS_JOBID_ALL@ for all jobs */ int purge) /* I - 1 to purge, 0 to cancel */ { char uri[HTTP_MAX_URI]; /* Job/printer URI */ ipp_t *request; /* IPP request */ /* * Range check input... */ if (job_id < -1 || (!name && job_id == 0)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Connect to the default server as needed... */ if (!http) if ((http = _cupsConnect()) == NULL) return (IPP_STATUS_ERROR_SERVICE_UNAVAILABLE); /* * Build an IPP_CANCEL_JOB or IPP_PURGE_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * job-uri or printer-uri + job-id * requesting-user-name * [purge-job] or [purge-jobs] */ request = ippNewRequest(job_id < 0 ? IPP_OP_PURGE_JOBS : IPP_OP_CANCEL_JOB); if (name) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); } else if (job_id > 0) { snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); } ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (purge && job_id >= 0) ippAddBoolean(request, IPP_TAG_OPERATION, "purge-job", 1); else if (!purge && job_id < 0) ippAddBoolean(request, IPP_TAG_OPERATION, "purge-jobs", 0); /* * Do the request... */ ippDelete(cupsDoRequest(http, request, "/jobs/")); return (cupsLastError()); } /* * 'cupsCreateJob()' - Create an empty job for streaming. * * Use this function when you want to stream print data using the * @link cupsStartDocument@, @link cupsWriteRequestData@, and * @link cupsFinishDocument@ functions. If you have one or more files to * print, use the @link cupsPrintFile2@ or @link cupsPrintFiles2@ function * instead. * * @since CUPS 1.4/macOS 10.6@ @exclude all@ */ int /* O - Job ID or 0 on error */ cupsCreateJob( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Destination name */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int job_id = 0; /* job-id value */ ipp_status_t status; /* Create-Job status */ cups_dest_t *dest; /* Destination */ cups_dinfo_t *info; /* Destination information */ DEBUG_printf(("cupsCreateJob(http=%p, name=\"%s\", title=\"%s\", num_options=%d, options=%p)", (void *)http, name, title, num_options, (void *)options)); /* * Range check input... */ if (!name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Lookup the destination... */ if ((dest = cupsGetNamedDest(http, name, NULL)) == NULL) { DEBUG_puts("1cupsCreateJob: Destination not found."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOENT), 0); return (0); } /* * Query dest information and create the job... */ DEBUG_puts("1cupsCreateJob: Querying destination info."); if ((info = cupsCopyDestInfo(http, dest)) == NULL) { DEBUG_puts("1cupsCreateJob: Query failed."); cupsFreeDests(1, dest); return (0); } status = cupsCreateDestJob(http, dest, info, &job_id, title, num_options, options); DEBUG_printf(("1cupsCreateJob: cupsCreateDestJob returned %04x (%s)", status, ippErrorString(status))); cupsFreeDestInfo(info); cupsFreeDests(1, dest); /* * Return the job... */ if (status >= IPP_STATUS_REDIRECTION_OTHER_SITE) return (0); else return (job_id); } /* * 'cupsFinishDocument()' - Finish sending a document. * * The document must have been started using @link cupsStartDocument@. * * @since CUPS 1.4/macOS 10.6@ @exclude all@ */ ipp_status_t /* O - Status of document submission */ cupsFinishDocument(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name) /* I - Destination name */ { char resource[1024]; /* Printer resource */ snprintf(resource, sizeof(resource), "/printers/%s", name); ippDelete(cupsGetResponse(http, resource)); return (cupsLastError()); } /* * 'cupsFreeJobs()' - Free memory used by job data. */ void cupsFreeJobs(int num_jobs, /* I - Number of jobs */ cups_job_t *jobs) /* I - Jobs */ { int i; /* Looping var */ cups_job_t *job; /* Current job */ if (num_jobs <= 0 || !jobs) return; for (i = num_jobs, job = jobs; i > 0; i --, job ++) { _cupsStrFree(job->dest); _cupsStrFree(job->user); _cupsStrFree(job->format); _cupsStrFree(job->title); } free(jobs); } /* * 'cupsGetClasses()' - Get a list of printer classes from the default server. * * This function is deprecated and no longer returns a list of printer * classes - use @link cupsGetDests@ instead. * * @deprecated@ @exclude all@ */ int /* O - Number of classes */ cupsGetClasses(char ***classes) /* O - Classes */ { if (classes) *classes = NULL; return (0); } /* * 'cupsGetDefault()' - Get the default printer or class for the default server. * * This function returns the default printer or class as defined by * the LPDEST or PRINTER environment variables. If these environment * variables are not set, the server default destination is returned. * Applications should use the @link cupsGetDests@ and @link cupsGetDest@ * functions to get the user-defined default printer, as this function does * not support the lpoptions-defined default printer. * * @exclude all@ */ const char * /* O - Default printer or @code NULL@ */ cupsGetDefault(void) { /* * Return the default printer... */ return (cupsGetDefault2(CUPS_HTTP_DEFAULT)); } /* * 'cupsGetDefault2()' - Get the default printer or class for the specified server. * * This function returns the default printer or class as defined by * the LPDEST or PRINTER environment variables. If these environment * variables are not set, the server default destination is returned. * Applications should use the @link cupsGetDests@ and @link cupsGetDest@ * functions to get the user-defined default printer, as this function does * not support the lpoptions-defined default printer. * * @since CUPS 1.1.21/macOS 10.4@ @exclude all@ */ const char * /* O - Default printer or @code NULL@ */ cupsGetDefault2(http_t *http) /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * See if we have a user default printer set... */ if (_cupsUserDefault(cg->def_printer, sizeof(cg->def_printer))) return (cg->def_printer); /* * Connect to the server as needed... */ if (!http) if ((http = _cupsConnect()) == NULL) return (NULL); /* * Build a CUPS_GET_DEFAULT request, which requires the following * attributes: * * attributes-charset * attributes-natural-language */ request = ippNewRequest(IPP_OP_CUPS_GET_DEFAULT); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { if ((attr = ippFindAttribute(response, "printer-name", IPP_TAG_NAME)) != NULL) { strlcpy(cg->def_printer, attr->values[0].string.text, sizeof(cg->def_printer)); ippDelete(response); return (cg->def_printer); } ippDelete(response); } return (NULL); } /* * 'cupsGetJobs()' - Get the jobs from the default server. * * A "whichjobs" value of @code CUPS_WHICHJOBS_ALL@ returns all jobs regardless * of state, while @code CUPS_WHICHJOBS_ACTIVE@ returns jobs that are * pending, processing, or held and @code CUPS_WHICHJOBS_COMPLETED@ returns * jobs that are stopped, canceled, aborted, or completed. * * @exclude all@ */ int /* O - Number of jobs */ cupsGetJobs(cups_job_t **jobs, /* O - Job data */ const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */ int myjobs, /* I - 0 = all users, 1 = mine */ int whichjobs) /* I - @code CUPS_WHICHJOBS_ALL@, @code CUPS_WHICHJOBS_ACTIVE@, or @code CUPS_WHICHJOBS_COMPLETED@ */ { /* * Return the jobs... */ return (cupsGetJobs2(CUPS_HTTP_DEFAULT, jobs, name, myjobs, whichjobs)); } /* * 'cupsGetJobs2()' - Get the jobs from the specified server. * * A "whichjobs" value of @code CUPS_WHICHJOBS_ALL@ returns all jobs regardless * of state, while @code CUPS_WHICHJOBS_ACTIVE@ returns jobs that are * pending, processing, or held and @code CUPS_WHICHJOBS_COMPLETED@ returns * jobs that are stopped, canceled, aborted, or completed. * * @since CUPS 1.1.21/macOS 10.4@ */ int /* O - Number of jobs */ cupsGetJobs2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ cups_job_t **jobs, /* O - Job data */ const char *name, /* I - @code NULL@ = all destinations, otherwise show jobs for named destination */ int myjobs, /* I - 0 = all users, 1 = mine */ int whichjobs) /* I - @code CUPS_WHICHJOBS_ALL@, @code CUPS_WHICHJOBS_ACTIVE@, or @code CUPS_WHICHJOBS_COMPLETED@ */ { int n; /* Number of jobs */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ cups_job_t *temp; /* Temporary pointer */ int id, /* job-id */ priority, /* job-priority */ size; /* job-k-octets */ ipp_jstate_t state; /* job-state */ time_t completed_time, /* time-at-completed */ creation_time, /* time-at-creation */ processing_time; /* time-at-processing */ const char *dest, /* job-printer-uri */ *format, /* document-format */ *title, /* job-name */ *user; /* job-originating-user-name */ char uri[HTTP_MAX_URI]; /* URI for jobs */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ static const char * const attrs[] = /* Requested attributes */ { "document-format", "job-id", "job-k-octets", "job-name", "job-originating-user-name", "job-printer-uri", "job-priority", "job-state", "time-at-completed", "time-at-creation", "time-at-processing" }; /* * Range check input... */ if (!jobs) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (-1); } /* * Get the right URI... */ if (name) { if (httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", name) < HTTP_URI_STATUS_OK) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create printer-uri"), 1); return (-1); } } else strlcpy(uri, "ipp://localhost/", sizeof(uri)); if (!http) if ((http = _cupsConnect()) == NULL) return (-1); /* * Build an IPP_GET_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name * which-jobs * my-jobs * requested-attributes */ request = ippNewRequest(IPP_OP_GET_JOBS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (myjobs) ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1); if (whichjobs == CUPS_WHICHJOBS_COMPLETED) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "which-jobs", NULL, "completed"); else if (whichjobs == CUPS_WHICHJOBS_ALL) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "which-jobs", NULL, "all"); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(attrs) / sizeof(attrs[0]), NULL, attrs); /* * Do the request and get back a response... */ n = 0; *jobs = NULL; if ((response = cupsDoRequest(http, request, "/")) != NULL) { for (attr = response->attrs; attr; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr && attr->group_tag != IPP_TAG_JOB) attr = attr->next; if (!attr) break; /* * Pull the needed attributes from this job... */ id = 0; size = 0; priority = 50; state = IPP_JSTATE_PENDING; user = "unknown"; dest = NULL; format = "application/octet-stream"; title = "untitled"; creation_time = 0; completed_time = 0; processing_time = 0; while (attr && attr->group_tag == IPP_TAG_JOB) { if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) id = attr->values[0].integer; else if (!strcmp(attr->name, "job-state") && attr->value_tag == IPP_TAG_ENUM) state = (ipp_jstate_t)attr->values[0].integer; else if (!strcmp(attr->name, "job-priority") && attr->value_tag == IPP_TAG_INTEGER) priority = attr->values[0].integer; else if (!strcmp(attr->name, "job-k-octets") && attr->value_tag == IPP_TAG_INTEGER) size = attr->values[0].integer; else if (!strcmp(attr->name, "time-at-completed") && attr->value_tag == IPP_TAG_INTEGER) completed_time = attr->values[0].integer; else if (!strcmp(attr->name, "time-at-creation") && attr->value_tag == IPP_TAG_INTEGER) creation_time = attr->values[0].integer; else if (!strcmp(attr->name, "time-at-processing") && attr->value_tag == IPP_TAG_INTEGER) processing_time = attr->values[0].integer; else if (!strcmp(attr->name, "job-printer-uri") && attr->value_tag == IPP_TAG_URI) { if ((dest = strrchr(attr->values[0].string.text, '/')) != NULL) dest ++; } else if (!strcmp(attr->name, "job-originating-user-name") && attr->value_tag == IPP_TAG_NAME) user = attr->values[0].string.text; else if (!strcmp(attr->name, "document-format") && attr->value_tag == IPP_TAG_MIMETYPE) format = attr->values[0].string.text; else if (!strcmp(attr->name, "job-name") && (attr->value_tag == IPP_TAG_TEXT || attr->value_tag == IPP_TAG_NAME)) title = attr->values[0].string.text; attr = attr->next; } /* * See if we have everything needed... */ if (!dest || !id) { if (!attr) break; else continue; } /* * Allocate memory for the job... */ if (n == 0) temp = malloc(sizeof(cups_job_t)); else temp = realloc(*jobs, sizeof(cups_job_t) * (size_t)(n + 1)); if (!temp) { /* * Ran out of memory! */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); cupsFreeJobs(n, *jobs); *jobs = NULL; ippDelete(response); return (-1); } *jobs = temp; temp += n; n ++; /* * Copy the data over... */ temp->dest = _cupsStrAlloc(dest); temp->user = _cupsStrAlloc(user); temp->format = _cupsStrAlloc(format); temp->title = _cupsStrAlloc(title); temp->id = id; temp->priority = priority; temp->state = state; temp->size = size; temp->completed_time = completed_time; temp->creation_time = creation_time; temp->processing_time = processing_time; if (!attr) break; } ippDelete(response); } if (n == 0 && cg->last_error >= IPP_STATUS_ERROR_BAD_REQUEST) return (-1); else return (n); } /* * 'cupsGetPrinters()' - Get a list of printers from the default server. * * This function is deprecated and no longer returns a list of printers - use * @link cupsGetDests@ instead. * * @deprecated@ @exclude all@ */ int /* O - Number of printers */ cupsGetPrinters(char ***printers) /* O - Printers */ { if (printers) *printers = NULL; return (0); } /* * 'cupsPrintFile()' - Print a file to a printer or class on the default server. * * @exclude all@ */ int /* O - Job ID or 0 on error */ cupsPrintFile(const char *name, /* I - Destination name */ const char *filename, /* I - File to print */ const char *title, /* I - Title of job */ int num_options,/* I - Number of options */ cups_option_t *options) /* I - Options */ { DEBUG_printf(("cupsPrintFile(name=\"%s\", filename=\"%s\", title=\"%s\", num_options=%d, options=%p)", name, filename, title, num_options, (void *)options)); return (cupsPrintFiles2(CUPS_HTTP_DEFAULT, name, 1, &filename, title, num_options, options)); } /* * 'cupsPrintFile2()' - Print a file to a printer or class on the specified * server. * * @since CUPS 1.1.21/macOS 10.4@ @exclude all@ */ int /* O - Job ID or 0 on error */ cupsPrintFile2( http_t *http, /* I - Connection to server */ const char *name, /* I - Destination name */ const char *filename, /* I - File to print */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { DEBUG_printf(("cupsPrintFile2(http=%p, name=\"%s\", filename=\"%s\", title=\"%s\", num_options=%d, options=%p)", (void *)http, name, filename, title, num_options, (void *)options)); return (cupsPrintFiles2(http, name, 1, &filename, title, num_options, options)); } /* * 'cupsPrintFiles()' - Print one or more files to a printer or class on the * default server. * * @exclude all@ */ int /* O - Job ID or 0 on error */ cupsPrintFiles( const char *name, /* I - Destination name */ int num_files, /* I - Number of files */ const char **files, /* I - File(s) to print */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { DEBUG_printf(("cupsPrintFiles(name=\"%s\", num_files=%d, files=%p, title=\"%s\", num_options=%d, options=%p)", name, num_files, (void *)files, title, num_options, (void *)options)); /* * Print the file(s)... */ return (cupsPrintFiles2(CUPS_HTTP_DEFAULT, name, num_files, files, title, num_options, options)); } /* * 'cupsPrintFiles2()' - Print one or more files to a printer or class on the * specified server. * * @since CUPS 1.1.21/macOS 10.4@ @exclude all@ */ int /* O - Job ID or 0 on error */ cupsPrintFiles2( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Destination name */ int num_files, /* I - Number of files */ const char **files, /* I - File(s) to print */ const char *title, /* I - Title of job */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int i; /* Looping var */ int job_id; /* New job ID */ const char *docname; /* Basename of current filename */ const char *format; /* Document format */ cups_file_t *fp; /* Current file */ char buffer[8192]; /* Copy buffer */ ssize_t bytes; /* Bytes in buffer */ http_status_t status; /* Status of write */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ ipp_status_t cancel_status; /* Status code to preserve */ char *cancel_message; /* Error message to preserve */ DEBUG_printf(("cupsPrintFiles2(http=%p, name=\"%s\", num_files=%d, files=%p, title=\"%s\", num_options=%d, options=%p)", (void *)http, name, num_files, (void *)files, title, num_options, (void *)options)); /* * Range check input... */ if (!name || num_files < 1 || !files) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Create the print job... */ if ((job_id = cupsCreateJob(http, name, title, num_options, options)) == 0) return (0); /* * Send each of the files... */ if (cupsGetOption("raw", num_options, options)) format = CUPS_FORMAT_RAW; else if ((format = cupsGetOption("document-format", num_options, options)) == NULL) format = CUPS_FORMAT_AUTO; for (i = 0; i < num_files; i ++) { /* * Start the next file... */ if ((docname = strrchr(files[i], '/')) != NULL) docname ++; else docname = files[i]; if ((fp = cupsFileOpen(files[i], "rb")) == NULL) { /* * Unable to open print file, cancel the job and return... */ _cupsSetError(IPP_STATUS_ERROR_DOCUMENT_ACCESS, NULL, 0); goto cancel_job; } status = cupsStartDocument(http, name, job_id, docname, format, i == (num_files - 1)); while (status == HTTP_STATUS_CONTINUE && (bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) status = cupsWriteRequestData(http, buffer, (size_t)bytes); cupsFileClose(fp); if (status != HTTP_STATUS_CONTINUE || cupsFinishDocument(http, name) != IPP_STATUS_OK) { /* * Unable to queue, cancel the job and return... */ goto cancel_job; } } return (job_id); /* * If we get here, something happened while sending the print job so we need * to cancel the job without setting the last error (since we need to preserve * the current error... */ cancel_job: cancel_status = cg->last_error; cancel_message = cg->last_status_message ? _cupsStrRetain(cg->last_status_message) : NULL; cupsCancelJob2(http, name, job_id, 0); cg->last_error = cancel_status; cg->last_status_message = cancel_message; return (0); } /* * 'cupsStartDocument()' - Add a document to a job created with cupsCreateJob(). * * Use @link cupsWriteRequestData@ to write data for the document and * @link cupsFinishDocument@ to finish the document and get the submission status. * * The MIME type constants @code CUPS_FORMAT_AUTO@, @code CUPS_FORMAT_PDF@, * @code CUPS_FORMAT_POSTSCRIPT@, @code CUPS_FORMAT_RAW@, and * @code CUPS_FORMAT_TEXT@ are provided for the "format" argument, although * any supported MIME type string can be supplied. * * @since CUPS 1.4/macOS 10.6@ @exclude all@ */ http_status_t /* O - HTTP status of request */ cupsStartDocument( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Destination name */ int job_id, /* I - Job ID from @link cupsCreateJob@ */ const char *docname, /* I - Name of document */ const char *format, /* I - MIME type or @code CUPS_FORMAT_foo@ */ int last_document) /* I - 1 for last document in job, 0 otherwise */ { char resource[1024], /* Resource for destination */ printer_uri[1024]; /* Printer URI */ ipp_t *request; /* Send-Document request */ http_status_t status; /* HTTP status */ /* * Create a Send-Document request... */ if ((request = ippNewRequest(IPP_OP_SEND_DOCUMENT)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOMEM), 0); return (HTTP_STATUS_ERROR); } httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", name); snprintf(resource, sizeof(resource), "/printers/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (docname) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name", NULL, docname); if (format) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, format); ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", (char)last_document); /* * Send and delete the request, then return the status... */ status = cupsSendRequest(http, request, resource, CUPS_LENGTH_VARIABLE); ippDelete(request); return (status); } cups-2.4.7/cups/utf8demo.txt0000644000175000017500000003332514502571342015635 0ustar zdohnalzdohnalUTF-8 encoded sample plain-text file ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ Markus Kuhn [ˈmaʳkʊs kuːn] — 2002-07-25 The ASCII compatible UTF-8 encoding used in this plain-text file is defined in Unicode, ISO 10646-1, and RFC 2279. Using Unicode/UTF-8, you can write in emails and source code things such as Mathematics and sciences: ∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i), ⎧⎡⎛┌─────┐⎞⎤⎫ ⎪⎢⎜│a²+b³ ⎟⎥⎪ ∀x∈ℝ: ⌈x⌉ = −⌊−x⌋, α ∧ ¬β = ¬(¬α ∨ β), ⎪⎢⎜│───── ⎟⎥⎪ ⎪⎢⎜⎷ c₈ ⎟⎥⎪ ℕ ⊆ ℕ₀ ⊂ ℤ ⊂ ℚ ⊂ ℝ ⊂ ℂ, ⎨⎢⎜ ⎟⎥⎬ ⎪⎢⎜ ∞ ⎟⎥⎪ ⊥ < a ≠ b ≡ c ≤ d ≪ ⊤ ⇒ (⟦A⟧ ⇔ ⟪B⟫), ⎪⎢⎜ ⎲ ⎟⎥⎪ ⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪ 2H₂ + O₂ ⇌ 2H₂O, R = 4.7 kΩ, ⌀ 200 mm ⎩⎣⎝i=1 ⎠⎦⎭ Linguistics and dictionaries: ði ıntəˈnæʃənəl fəˈnɛtık əsoʊsiˈeıʃn Y [ˈʏpsilɔn], Yen [jɛn], Yoga [ˈjoːgɑ] APL: ((V⍳V)=⍳⍴V)/V←,V ⌷←⍳→⍴∆∇⊃‾⍎⍕⌈ Nicer typography in plain text files: ╔══════════════════════════════════════════╗ ║ ║ ║ • ‘single’ and “double” quotes ║ ║ ║ ║ • Curly apostrophes: “We’ve been here” ║ ║ ║ ║ • Latin-1 apostrophe and accents: '´` ║ ║ ║ ║ • ‚deutsche‘ „Anführungszeichen“ ║ ║ ║ ║ • †, ‡, ‰, •, 3–4, —, −5/+5, ™, … ║ ║ ║ ║ • ASCII safety test: 1lI|, 0OD, 8B ║ ║ ╭─────────╮ ║ ║ • the euro symbol: │ 14.95 € │ ║ ║ ╰─────────╯ ║ ╚══════════════════════════════════════════╝ Combining characters: STARGΛ̊TE SG-1, a = v̇ = r̈, a⃑ ⊥ b⃑ Greek (in Polytonic): The Greek anthem: Σὲ γνωρίζω ἀπὸ τὴν κόψη τοῦ σπαθιοῦ τὴν τρομερή, σὲ γνωρίζω ἀπὸ τὴν ὄψη ποὺ μὲ βία μετράει τὴ γῆ. ᾿Απ᾿ τὰ κόκκαλα βγαλμένη τῶν ῾Ελλήνων τὰ ἱερά καὶ σὰν πρῶτα ἀνδρειωμένη χαῖρε, ὦ χαῖρε, ᾿Ελευθεριά! From a speech of Demosthenes in the 4th century BC: Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν, ὦ ἄνδρες ᾿Αθηναῖοι, ὅταν τ᾿ εἰς τὰ πράγματα ἀποβλέψω καὶ ὅταν πρὸς τοὺς λόγους οὓς ἀκούω· τοὺς μὲν γὰρ λόγους περὶ τοῦ τιμωρήσασθαι Φίλιππον ὁρῶ γιγνομένους, τὰ δὲ πράγματ᾿ εἰς τοῦτο προήκοντα, ὥσθ᾿ ὅπως μὴ πεισόμεθ᾿ αὐτοὶ πρότερον κακῶς σκέψασθαι δέον. οὐδέν οὖν ἄλλο μοι δοκοῦσιν οἱ τὰ τοιαῦτα λέγοντες ἢ τὴν ὑπόθεσιν, περὶ ἧς βουλεύεσθαι, οὐχὶ τὴν οὖσαν παριστάντες ὑμῖν ἁμαρτάνειν. ἐγὼ δέ, ὅτι μέν ποτ᾿ ἐξῆν τῇ πόλει καὶ τὰ αὑτῆς ἔχειν ἀσφαλῶς καὶ Φίλιππον τιμωρήσασθαι, καὶ μάλ᾿ ἀκριβῶς οἶδα· ἐπ᾿ ἐμοῦ γάρ, οὐ πάλαι γέγονεν ταῦτ᾿ ἀμφότερα· νῦν μέντοι πέπεισμαι τοῦθ᾿ ἱκανὸν προλαβεῖν ἡμῖν εἶναι τὴν πρώτην, ὅπως τοὺς συμμάχους σώσομεν. ἐὰν γὰρ τοῦτο βεβαίως ὑπάρξῃ, τότε καὶ περὶ τοῦ τίνα τιμωρήσεταί τις καὶ ὃν τρόπον ἐξέσται σκοπεῖν· πρὶν δὲ τὴν ἀρχὴν ὀρθῶς ὑποθέσθαι, μάταιον ἡγοῦμαι περὶ τῆς τελευτῆς ὁντινοῦν ποιεῖσθαι λόγον. Δημοσθένους, Γ´ ᾿Ολυνθιακὸς Georgian: From a Unicode conference invitation: გთხოვთ ახლავე გაიაროთ რეგისტრაცია Unicode-ის მეათე საერთაშორისო კონფერენციაზე დასასწრებად, რომელიც გაიმართება 10-12 მარტს, ქ. მაინცში, გერმანიაში. კონფერენცია შეჰკრებს ერთად მსოფლიოს ექსპერტებს ისეთ დარგებში როგორიცაა ინტერნეტი და Unicode-ი, ინტერნაციონალიზაცია და ლოკალიზაცია, Unicode-ის გამოყენება ოპერაციულ სისტემებსა, და გამოყენებით პროგრამებში, შრიფტებში, ტექსტების დამუშავებასა და მრავალენოვან კომპიუტერულ სისტემებში. Russian: From a Unicode conference invitation: Зарегистрируйтесь сейчас на Десятую Международную Конференцию по Unicode, которая состоится 10-12 марта 1997 года в Майнце в Германии. Конференция соберет широкий круг экспертов по вопросам глобального Интернета и Unicode, локализации и интернационализации, воплощению и применению Unicode в различных операционных системах и программных приложениях, шрифтах, верстке и многоязычных компьютерных системах. Thai (UCS Level 2): Excerpt from a poetry on The Romance of The Three Kingdoms (a Chinese classic 'San Gua'): [----------------------------|------------------------] ๏ แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช พระปกเกศกองบู๊กู้ขึ้นใหม่ สิบสองกษัตริย์ก่อนหน้าแลถัดไป สององค์ไซร้โง่เขลาเบาปัญญา ทรงนับถือขันทีเป็นที่พึ่ง บ้านเมืองจึงวิปริตเป็นนักหนา โฮจิ๋นเรียกทัพทั่วหัวเมืองมา หมายจะฆ่ามดชั่วตัวสำคัญ เหมือนขับไสไล่เสือจากเคหา รับหมาป่าเข้ามาเลยอาสัญ ฝ่ายอ้องอุ้นยุแยกให้แตกกัน ใช้สาวนั้นเป็นชนวนชื่นชวนใจ พลันลิฉุยกุยกีกลับก่อเหตุ ช่างอาเพศจริงหนาฟ้าร้องไห้ ต้องรบราฆ่าฟันจนบรรลัย ฤๅหาใครค้ำชูกู้บรรลังก์ ฯ (The above is a two-column text. If combining characters are handled correctly, the lines of the second column should be aligned with the | character above.) Ethiopian: Proverbs in the Amharic language: ሰማይ አይታረስ ንጉሥ አይከሰስ። ብላ ካለኝ እንደአባቴ በቆመጠኝ። ጌጥ ያለቤቱ ቁምጥና ነው። ደሀ በሕልሙ ቅቤ ባይጠጣ ንጣት በገደለው። የአፍ ወለምታ በቅቤ አይታሽም። አይጥ በበላ ዳዋ ተመታ። ሲተረጉሙ ይደረግሙ። ቀስ በቀስ፥ ዕንቁላል በእግሩ ይሄዳል። ድር ቢያብር አንበሳ ያስር። ሰው እንደቤቱ እንጅ እንደ ጉረቤቱ አይተዳደርም። እግዜር የከፈተውን ጉሮሮ ሳይዘጋው አይድርም። የጎረቤት ሌባ፥ ቢያዩት ይስቅ ባያዩት ያጠልቅ። ሥራ ከመፍታት ልጄን ላፋታት። ዓባይ ማደሪያ የለው፥ ግንድ ይዞ ይዞራል። የእስላም አገሩ መካ የአሞራ አገሩ ዋርካ። ተንጋሎ ቢተፉ ተመልሶ ባፉ። ወዳጅህ ማር ቢሆን ጨርስህ አትላሰው። እግርህን በፍራሽህ ልክ ዘርጋ። Runes: ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ (Old English, which transcribed into Latin reads 'He cwaeth that he bude thaem lande northweardum with tha Westsae.' and means 'He said that he lived in the northern land near the Western Sea.') Braille: ⡌⠁⠧⠑ ⠼⠁⠒ ⡍⠜⠇⠑⠹⠰⠎ ⡣⠕⠌ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠙⠑⠁⠙⠒ ⠞⠕ ⠃⠑⠛⠔ ⠺⠊⠹⠲ ⡹⠻⠑ ⠊⠎ ⠝⠕ ⠙⠳⠃⠞ ⠱⠁⠞⠑⠧⠻ ⠁⠃⠳⠞ ⠹⠁⠞⠲ ⡹⠑ ⠗⠑⠛⠊⠌⠻ ⠕⠋ ⠙⠊⠎ ⠃⠥⠗⠊⠁⠇ ⠺⠁⠎ ⠎⠊⠛⠝⠫ ⠃⠹ ⠹⠑ ⠊⠇⠻⠛⠹⠍⠁⠝⠂ ⠹⠑ ⠊⠇⠻⠅⠂ ⠹⠑ ⠥⠝⠙⠻⠞⠁⠅⠻⠂ ⠁⠝⠙ ⠹⠑ ⠡⠊⠑⠋ ⠍⠳⠗⠝⠻⠲ ⡎⠊⠗⠕⠕⠛⠑ ⠎⠊⠛⠝⠫ ⠊⠞⠲ ⡁⠝⠙ ⡎⠊⠗⠕⠕⠛⠑⠰⠎ ⠝⠁⠍⠑ ⠺⠁⠎ ⠛⠕⠕⠙ ⠥⠏⠕⠝ ⠰⡡⠁⠝⠛⠑⠂ ⠋⠕⠗ ⠁⠝⠹⠹⠔⠛ ⠙⠑ ⠡⠕⠎⠑ ⠞⠕ ⠏⠥⠞ ⠙⠊⠎ ⠙⠁⠝⠙ ⠞⠕⠲ ⡕⠇⠙ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡍⠔⠙⠖ ⡊ ⠙⠕⠝⠰⠞ ⠍⠑⠁⠝ ⠞⠕ ⠎⠁⠹ ⠹⠁⠞ ⡊ ⠅⠝⠪⠂ ⠕⠋ ⠍⠹ ⠪⠝ ⠅⠝⠪⠇⠫⠛⠑⠂ ⠱⠁⠞ ⠹⠻⠑ ⠊⠎ ⠏⠜⠞⠊⠊⠥⠇⠜⠇⠹ ⠙⠑⠁⠙ ⠁⠃⠳⠞ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡊ ⠍⠊⠣⠞ ⠙⠁⠧⠑ ⠃⠑⠲ ⠔⠊⠇⠔⠫⠂ ⠍⠹⠎⠑⠇⠋⠂ ⠞⠕ ⠗⠑⠛⠜⠙ ⠁ ⠊⠕⠋⠋⠔⠤⠝⠁⠊⠇ ⠁⠎ ⠹⠑ ⠙⠑⠁⠙⠑⠌ ⠏⠊⠑⠊⠑ ⠕⠋ ⠊⠗⠕⠝⠍⠕⠝⠛⠻⠹ ⠔ ⠹⠑ ⠞⠗⠁⠙⠑⠲ ⡃⠥⠞ ⠹⠑ ⠺⠊⠎⠙⠕⠍ ⠕⠋ ⠳⠗ ⠁⠝⠊⠑⠌⠕⠗⠎ ⠊⠎ ⠔ ⠹⠑ ⠎⠊⠍⠊⠇⠑⠆ ⠁⠝⠙ ⠍⠹ ⠥⠝⠙⠁⠇⠇⠪⠫ ⠙⠁⠝⠙⠎ ⠩⠁⠇⠇ ⠝⠕⠞ ⠙⠊⠌⠥⠗⠃ ⠊⠞⠂ ⠕⠗ ⠹⠑ ⡊⠳⠝⠞⠗⠹⠰⠎ ⠙⠕⠝⠑ ⠋⠕⠗⠲ ⡹⠳ ⠺⠊⠇⠇ ⠹⠻⠑⠋⠕⠗⠑ ⠏⠻⠍⠊⠞ ⠍⠑ ⠞⠕ ⠗⠑⠏⠑⠁⠞⠂ ⠑⠍⠏⠙⠁⠞⠊⠊⠁⠇⠇⠹⠂ ⠹⠁⠞ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ (The first couple of paragraphs of "A Christmas Carol" by Dickens) Compact font selection example text: ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789 abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ –—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд ∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi?⑀₂ἠḂӥẄɐː⍎אԱა Greetings in various languages: Hello world, Καλημέρα κόσμε, コンニチハ Box drawing alignment tests: █ ▉ ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳ ║┌─╨─┐║ │╔═╧═╗│ │╒═╪═╕│ │╓─╁─╖│ ┃┌─╂─┐┃ ┗╃╄┙ ╶┼╴╺╋╸┠┼┨ ┝╋┥ ▋ ╲╱╲╱╳╳╳ ║│╲ ╱│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╿ │┃ ┍╅╆┓ ╵ ╹ ┗┷┛ └┸┘ ▌ ╱╲╱╲╳╳╳ ╠╡ ╳ ╞╣ ├╢ ╟┤ ├┼─┼─┼┤ ├╫─╂─╫┤ ┣┿╾┼╼┿┫ ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳ ║│╱ ╲│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╽ │┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▎ ║└─╥─┘║ │╚═╤═╝│ │╘═╪═╛│ │╙─╀─╜│ ┃└─╂─┘┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▏ ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ ▗▄▖▛▀▜ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█ ▝▀▘▙▄▟ cups-2.4.7/cups/usersys.c0000644000175000017500000012411714502571342015222 0ustar zdohnalzdohnal/* * User, system, and password routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #ifdef _WIN32 # include #else # include # include # include #endif /* _WIN32 */ #ifdef __APPLE__ # include #endif /* __APPLE__ */ /* * Local constants... */ #ifdef __APPLE__ # if TARGET_OS_OSX # define kCUPSPrintingPrefs CFSTR("org.cups.PrintingPrefs") # define kPREFIX "" # else # define kCUPSPrintingPrefs CFSTR(".GlobalPreferences") # define kPREFIX "AirPrint" # endif /* TARGET_OS_OSX */ # define kDigestOptionsKey CFSTR(kPREFIX "DigestOptions") # define kUserKey CFSTR(kPREFIX "User") # define kUserAgentTokensKey CFSTR(kPREFIX "UserAgentTokens") # define kAllowAnyRootKey CFSTR(kPREFIX "AllowAnyRoot") # define kAllowExpiredCertsKey CFSTR(kPREFIX "AllowExpiredCerts") # define kEncryptionKey CFSTR(kPREFIX "Encryption") # define kGSSServiceNameKey CFSTR(kPREFIX "GSSServiceName") # define kSSLOptionsKey CFSTR(kPREFIX "SSLOptions") # define kTrustOnFirstUseKey CFSTR(kPREFIX "TrustOnFirstUse") # define kValidateCertsKey CFSTR(kPREFIX "ValidateCerts") /* Deprecated */ # define kAllowRC4 CFSTR(kPREFIX "AllowRC4") # define kAllowSSL3 CFSTR(kPREFIX "AllowSSL3") # define kAllowDH CFSTR(kPREFIX "AllowDH") #endif /* __APPLE__ */ #define _CUPS_PASSCHAR '*' /* Character that is echoed for password */ /* * Local types... */ typedef struct _cups_client_conf_s /**** client.conf config data ****/ { _cups_digestoptions_t digestoptions; /* DigestOptions values */ _cups_uatokens_t uatokens; /* UserAgentTokens values */ #ifdef HAVE_TLS int ssl_options, /* SSLOptions values */ ssl_min_version,/* Minimum SSL/TLS version */ ssl_max_version;/* Maximum SSL/TLS version */ #endif /* HAVE_TLS */ int trust_first, /* Trust on first use? */ any_root, /* Allow any (e.g., self-signed) root */ expired_certs, /* Allow expired certs */ validate_certs; /* Validate certificates */ http_encryption_t encryption; /* Encryption setting */ char user[65], /* User name */ server_name[256]; /* Server hostname */ #ifdef HAVE_GSSAPI char gss_service_name[32]; /* Kerberos service name */ #endif /* HAVE_GSSAPI */ } _cups_client_conf_t; /* * Local functions... */ #ifdef __APPLE__ # ifdef HAVE_TLS static int cups_apple_get_boolean(CFStringRef key, int *value); # endif /* HAVE_TLS */ static int cups_apple_get_string(CFStringRef key, char *value, size_t valsize); #endif /* __APPLE__ */ static int cups_boolean_value(const char *value); static void cups_finalize_client_conf(_cups_client_conf_t *cc); static void cups_init_client_conf(_cups_client_conf_t *cc); static void cups_read_client_conf(cups_file_t *fp, _cups_client_conf_t *cc); static void cups_set_default_ipp_port(_cups_globals_t *cg); static void cups_set_digestoptions(_cups_client_conf_t *cc, const char *value); static void cups_set_encryption(_cups_client_conf_t *cc, const char *value); #ifdef HAVE_GSSAPI static void cups_set_gss_service_name(_cups_client_conf_t *cc, const char *value); #endif /* HAVE_GSSAPI */ static void cups_set_server_name(_cups_client_conf_t *cc, const char *value); #ifdef HAVE_TLS static void cups_set_ssl_options(_cups_client_conf_t *cc, const char *value); #endif /* HAVE_TLS */ static void cups_set_uatokens(_cups_client_conf_t *cc, const char *value); static void cups_set_user(_cups_client_conf_t *cc, const char *value); /* * 'cupsEncryption()' - Get the current encryption settings. * * The default encryption setting comes from the CUPS_ENCRYPTION * environment variable, then the ~/.cups/client.conf file, and finally the * /etc/cups/client.conf file. If not set, the default is * @code HTTP_ENCRYPTION_IF_REQUESTED@. * * Note: The current encryption setting is tracked separately for each thread * in a program. Multi-threaded programs that override the setting via the * @link cupsSetEncryption@ function need to do so in each thread for the same * setting to be used. */ http_encryption_t /* O - Encryption settings */ cupsEncryption(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (cg->encryption == (http_encryption_t)-1) _cupsSetDefaults(); return (cg->encryption); } /* * 'cupsGetPassword()' - Get a password from the user. * * Uses the current password callback function. Returns @code NULL@ if the * user does not provide a password. * * Note: The current password callback function is tracked separately for each * thread in a program. Multi-threaded programs that override the setting via * the @link cupsSetPasswordCB@ or @link cupsSetPasswordCB2@ functions need to * do so in each thread for the same function to be used. * * @exclude all@ */ const char * /* O - Password */ cupsGetPassword(const char *prompt) /* I - Prompt string */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ return ((cg->password_cb)(prompt, NULL, NULL, NULL, cg->password_data)); } /* * 'cupsGetPassword2()' - Get a password from the user using the current * password callback. * * Uses the current password callback function. Returns @code NULL@ if the * user does not provide a password. * * Note: The current password callback function is tracked separately for each * thread in a program. Multi-threaded programs that override the setting via * the @link cupsSetPasswordCB2@ function need to do so in each thread for the * same function to be used. * * @since CUPS 1.4/macOS 10.6@ */ const char * /* O - Password */ cupsGetPassword2(const char *prompt, /* I - Prompt string */ http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *method, /* I - Request method ("GET", "POST", "PUT") */ const char *resource) /* I - Resource path */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (!http) http = _cupsConnect(); return ((cg->password_cb)(prompt, http, method, resource, cg->password_data)); } /* * 'cupsServer()' - Return the hostname/address of the current server. * * The default server comes from the CUPS_SERVER environment variable, then the * ~/.cups/client.conf file, and finally the /etc/cups/client.conf file. If not * set, the default is the local system - either "localhost" or a domain socket * path. * * The returned value can be a fully-qualified hostname, a numeric IPv4 or IPv6 * address, or a domain socket pathname. * * Note: The current server is tracked separately for each thread in a program. * Multi-threaded programs that override the server via the * @link cupsSetServer@ function need to do so in each thread for the same * server to be used. */ const char * /* O - Server name */ cupsServer(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (!cg->server[0]) _cupsSetDefaults(); return (cg->server); } /* * 'cupsSetClientCertCB()' - Set the client certificate callback. * * Pass @code NULL@ to restore the default callback. * * Note: The current certificate callback is tracked separately for each thread * in a program. Multi-threaded programs that override the callback need to do * so in each thread for the same callback to be used. * * @since CUPS 1.5/macOS 10.7@ */ void cupsSetClientCertCB( cups_client_cert_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data pointer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ cg->client_cert_cb = cb; cg->client_cert_data = user_data; } /* * 'cupsSetCredentials()' - Set the default credentials to be used for SSL/TLS * connections. * * Note: The default credentials are tracked separately for each thread in a * program. Multi-threaded programs that override the setting need to do so in * each thread for the same setting to be used. * * @since CUPS 1.5/macOS 10.7@ */ int /* O - Status of call (0 = success) */ cupsSetCredentials( cups_array_t *credentials) /* I - Array of credentials */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (cupsArrayCount(credentials) < 1) return (-1); #ifdef HAVE_TLS _httpFreeCredentials(cg->tls_credentials); cg->tls_credentials = _httpCreateCredentials(credentials); #endif /* HAVE_TLS */ return (cg->tls_credentials ? 0 : -1); } /* * 'cupsSetEncryption()' - Set the encryption preference. * * The default encryption setting comes from the CUPS_ENCRYPTION * environment variable, then the ~/.cups/client.conf file, and finally the * /etc/cups/client.conf file. If not set, the default is * @code HTTP_ENCRYPTION_IF_REQUESTED@. * * Note: The current encryption setting is tracked separately for each thread * in a program. Multi-threaded programs that override the setting need to do * so in each thread for the same setting to be used. */ void cupsSetEncryption(http_encryption_t e) /* I - New encryption preference */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ cg->encryption = e; if (cg->http) httpEncryption(cg->http, e); } /* * 'cupsSetOAuthCB()' - Set the OAuth 2.0 callback for CUPS. * * This function sets the OAuth 2.0 callback for the various CUPS APIs that * send HTTP requests. Pass @code NULL@ to restore the default (console-based) * callback. * * The OAuth callback receives the HTTP connection, realm name, scope name (if * any), resource path, and the "user_data" pointer for each request that * requires an OAuth access token. The function then returns either the Bearer * token string or `NULL` if no authorization could be obtained. * * Beyond reusing the Bearer token for subsequent requests on the same HTTP * connection, no caching of the token is done by the CUPS library. The * callback can determine whether to refresh a cached token by examining any * existing token returned by the @link httpGetAuthString@ function. * * Note: The current OAuth callback is tracked separately for each thread in a * program. Multi-threaded programs that override the callback need to do so in * each thread for the same callback to be used. * * @since CUPS 2.4@ */ void cupsSetOAuthCB( cups_oauth_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data pointer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ cg->oauth_cb = cb; cg->oauth_data = user_data; } /* * 'cupsSetPasswordCB()' - Set the password callback for CUPS. * * Pass @code NULL@ to restore the default (console) password callback, which * reads the password from the console. Programs should call either this * function or @link cupsSetPasswordCB2@, as only one callback can be registered * by a program per thread. * * Note: The current password callback is tracked separately for each thread * in a program. Multi-threaded programs that override the callback need to do * so in each thread for the same callback to be used. * * @exclude all@ */ void cupsSetPasswordCB(cups_password_cb_t cb)/* I - Callback function */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (cb == (cups_password_cb_t)0) cg->password_cb = (cups_password_cb2_t)_cupsGetPassword; else cg->password_cb = (cups_password_cb2_t)cb; cg->password_data = NULL; } /* * 'cupsSetPasswordCB2()' - Set the advanced password callback for CUPS. * * Pass @code NULL@ to restore the default (console) password callback, which * reads the password from the console. Programs should call either this * function or @link cupsSetPasswordCB2@, as only one callback can be registered * by a program per thread. * * Note: The current password callback is tracked separately for each thread * in a program. Multi-threaded programs that override the callback need to do * so in each thread for the same callback to be used. * * @since CUPS 1.4/macOS 10.6@ */ void cupsSetPasswordCB2( cups_password_cb2_t cb, /* I - Callback function */ void *user_data) /* I - User data pointer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (cb == (cups_password_cb2_t)0) cg->password_cb = (cups_password_cb2_t)_cupsGetPassword; else cg->password_cb = cb; cg->password_data = user_data; } /* * 'cupsSetServer()' - Set the default server name and port. * * The "server" string can be a fully-qualified hostname, a numeric * IPv4 or IPv6 address, or a domain socket pathname. Hostnames and numeric IP * addresses can be optionally followed by a colon and port number to override * the default port 631, e.g. "hostname:8631". Pass @code NULL@ to restore the * default server name and port. * * Note: The current server is tracked separately for each thread in a program. * Multi-threaded programs that override the server need to do so in each * thread for the same server to be used. */ void cupsSetServer(const char *server) /* I - Server name */ { char *options, /* Options */ *port; /* Pointer to port */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (server) { strlcpy(cg->server, server, sizeof(cg->server)); if (cg->server[0] != '/' && (options = strrchr(cg->server, '/')) != NULL) { *options++ = '\0'; if (!strcmp(options, "version=1.0")) cg->server_version = 10; else if (!strcmp(options, "version=1.1")) cg->server_version = 11; else if (!strcmp(options, "version=2.0")) cg->server_version = 20; else if (!strcmp(options, "version=2.1")) cg->server_version = 21; else if (!strcmp(options, "version=2.2")) cg->server_version = 22; } else cg->server_version = 20; if (cg->server[0] != '/' && (port = strrchr(cg->server, ':')) != NULL && !strchr(port, ']') && isdigit(port[1] & 255)) { *port++ = '\0'; cg->ipp_port = atoi(port); } if (!cg->ipp_port) cups_set_default_ipp_port(cg); if (cg->server[0] == '/') strlcpy(cg->servername, "localhost", sizeof(cg->servername)); else strlcpy(cg->servername, cg->server, sizeof(cg->servername)); } else { cg->server[0] = '\0'; cg->servername[0] = '\0'; cg->server_version = 20; cg->ipp_port = 0; } if (cg->http) { httpClose(cg->http); cg->http = NULL; } } /* * 'cupsSetServerCertCB()' - Set the server certificate callback. * * Pass @code NULL@ to restore the default callback. * * Note: The current credentials callback is tracked separately for each thread * in a program. Multi-threaded programs that override the callback need to do * so in each thread for the same callback to be used. * * @since CUPS 1.5/macOS 10.7@ */ void cupsSetServerCertCB( cups_server_cert_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data pointer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ cg->server_cert_cb = cb; cg->server_cert_data = user_data; } /* * 'cupsSetUser()' - Set the default user name. * * Pass @code NULL@ to restore the default user name. * * Note: The current user name is tracked separately for each thread in a * program. Multi-threaded programs that override the user name need to do so * in each thread for the same user name to be used. */ void cupsSetUser(const char *user) /* I - User name */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (user) strlcpy(cg->user, user, sizeof(cg->user)); else cg->user[0] = '\0'; } /* * 'cupsSetUserAgent()' - Set the default HTTP User-Agent string. * * Setting the string to NULL forces the default value containing the CUPS * version, IPP version, and operating system version and architecture. * * @since CUPS 1.7/macOS 10.9@ */ void cupsSetUserAgent(const char *user_agent)/* I - User-Agent string or @code NULL@ */ { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ #ifdef _WIN32 SYSTEM_INFO sysinfo; /* System information */ OSVERSIONINFOW version; /* OS version info */ const char *machine; /* Hardware/machine name */ #elif defined(__APPLE__) struct utsname name; /* uname info */ char version[256]; /* macOS/iOS version */ size_t len; /* Length of value */ #else struct utsname name; /* uname info */ #endif /* _WIN32 */ if (user_agent) { strlcpy(cg->user_agent, user_agent, sizeof(cg->user_agent)); return; } if (cg->uatokens < _CUPS_UATOKENS_OS) { switch (cg->uatokens) { default : case _CUPS_UATOKENS_NONE : cg->user_agent[0] = '\0'; break; case _CUPS_UATOKENS_PRODUCT_ONLY : strlcpy(cg->user_agent, "CUPS IPP", sizeof(cg->user_agent)); break; case _CUPS_UATOKENS_MAJOR : snprintf(cg->user_agent, sizeof(cg->user_agent), "CUPS/%d IPP/2", CUPS_VERSION_MAJOR); break; case _CUPS_UATOKENS_MINOR : snprintf(cg->user_agent, sizeof(cg->user_agent), "CUPS/%d.%d IPP/2.1", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR); break; case _CUPS_UATOKENS_MINIMAL : strlcpy(cg->user_agent, CUPS_MINIMAL " IPP/2.1", sizeof(cg->user_agent)); break; } } #ifdef _WIN32 /* * Gather Windows version information for the User-Agent string... */ typedef NTSTATUS(WINAPI * RtlGetVersionPtr)(PRTL_OSVERSIONINFOW); memset(&version, 0, sizeof(version)); version.dwOSVersionInfoSize = sizeof(version); /* RtlGetVersion gets the current native version of Windows, even when running in compatibility mode */ RtlGetVersionPtr RtlGetVersionInternal = (RtlGetVersionPtr)GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlGetVersion"); if (RtlGetVersionInternal) { RtlGetVersionInternal((PRTL_OSVERSIONINFOW)&version); } else { /* Should not happen, but just in case, fallback to deprecated GetVersionExW */ GetVersionExW(&version); } GetNativeSystemInfo(&sysinfo); switch (sysinfo.wProcessorArchitecture) { case PROCESSOR_ARCHITECTURE_AMD64 : machine = "amd64"; break; case PROCESSOR_ARCHITECTURE_ARM : machine = "arm"; break; case PROCESSOR_ARCHITECTURE_IA64 : machine = "ia64"; break; case PROCESSOR_ARCHITECTURE_INTEL : machine = "intel"; break; default : machine = "unknown"; break; } if (cg->uatokens == _CUPS_UATOKENS_OS) snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %lu.%lu) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion); else snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (Windows %lu.%lu; %s) IPP/2.0", version.dwMajorVersion, version.dwMinorVersion, machine); #elif defined(__APPLE__) /* * Gather macOS/iOS version information for the User-Agent string... */ uname(&name); len = sizeof(version) - 1; if (!sysctlbyname("kern.osproductversion", version, &len, NULL, 0)) version[len] = '\0'; else strlcpy(version, "unknown", sizeof(version)); # if TARGET_OS_OSX if (cg->uatokens == _CUPS_UATOKENS_OS) snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (macOS %s) IPP/2.0", version); else snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (macOS %s; %s) IPP/2.0", version, name.machine); # else if (cg->uatokens == _CUPS_UATOKENS_OS) snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (iOS %s) IPP/2.0", version); else snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (iOS %s; %s) IPP/2.0", version, name.machine); # endif /* TARGET_OS_OSX */ #else /* * Gather generic UNIX version information for the User-Agent string... */ uname(&name); if (cg->uatokens == _CUPS_UATOKENS_OS) snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (%s %s) IPP/2.0", name.sysname, name.release); else snprintf(cg->user_agent, sizeof(cg->user_agent), CUPS_MINIMAL " (%s %s; %s) IPP/2.0", name.sysname, name.release, name.machine); #endif /* _WIN32 */ } /* * 'cupsUser()' - Return the current user's name. * * Note: The current user name is tracked separately for each thread in a * program. Multi-threaded programs that override the user name with the * @link cupsSetUser@ function need to do so in each thread for the same user * name to be used. */ const char * /* O - User name */ cupsUser(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (!cg->user[0]) _cupsSetDefaults(); return (cg->user); } /* * 'cupsUserAgent()' - Return the default HTTP User-Agent string. * * @since CUPS 1.7/macOS 10.9@ */ const char * /* O - User-Agent string */ cupsUserAgent(void) { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ if (!cg->user_agent[0]) cupsSetUserAgent(NULL); return (cg->user_agent); } /* * '_cupsGetPassword()' - Get a password from the user. */ const char * /* O - Password or @code NULL@ if none */ _cupsGetPassword(const char *prompt) /* I - Prompt string */ { #ifdef _WIN32 HANDLE tty; /* Console handle */ DWORD mode; /* Console mode */ char passch, /* Current key press */ *passptr, /* Pointer into password string */ *passend; /* End of password string */ DWORD passbytes; /* Bytes read */ _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ /* * Disable input echo and set raw input... */ if ((tty = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) return (NULL); if (!GetConsoleMode(tty, &mode)) return (NULL); if (!SetConsoleMode(tty, 0)) return (NULL); /* * Display the prompt... */ printf("%s ", prompt); fflush(stdout); /* * Read the password string from /dev/tty until we get interrupted or get a * carriage return or newline... */ passptr = cg->password; passend = cg->password + sizeof(cg->password) - 1; while (ReadFile(tty, &passch, 1, &passbytes, NULL)) { if (passch == 0x0A || passch == 0x0D) { /* * Enter/return... */ break; } else if (passch == 0x08 || passch == 0x7F) { /* * Backspace/delete (erase character)... */ if (passptr > cg->password) { passptr --; fputs("\010 \010", stdout); } else putchar(0x07); } else if (passch == 0x15) { /* * CTRL+U (erase line) */ if (passptr > cg->password) { while (passptr > cg->password) { passptr --; fputs("\010 \010", stdout); } } else putchar(0x07); } else if (passch == 0x03) { /* * CTRL+C... */ passptr = cg->password; break; } else if ((passch & 255) < 0x20 || passptr >= passend) putchar(0x07); else { *passptr++ = passch; putchar(_CUPS_PASSCHAR); } fflush(stdout); } putchar('\n'); fflush(stdout); /* * Cleanup... */ SetConsoleMode(tty, mode); /* * Return the proper value... */ if (passbytes == 1 && passptr > cg->password) { *passptr = '\0'; return (cg->password); } else { memset(cg->password, 0, sizeof(cg->password)); return (NULL); } #else int tty; /* /dev/tty - never read from stdin */ struct termios original, /* Original input mode */ noecho; /* No echo input mode */ char passch, /* Current key press */ *passptr, /* Pointer into password string */ *passend; /* End of password string */ ssize_t passbytes; /* Bytes read */ _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ /* * Disable input echo and set raw input... */ if ((tty = open("/dev/tty", O_RDONLY)) < 0) return (NULL); if (tcgetattr(tty, &original)) { close(tty); return (NULL); } noecho = original; noecho.c_lflag &= (tcflag_t)~(ICANON | ECHO | ECHOE | ISIG); noecho.c_cc[VMIN] = 1; noecho.c_cc[VTIME] = 0; if (tcsetattr(tty, TCSAFLUSH, &noecho)) { close(tty); return (NULL); } /* * Display the prompt... */ printf("%s ", prompt); fflush(stdout); /* * Read the password string from /dev/tty until we get interrupted or get a * carriage return or newline... */ passptr = cg->password; passend = cg->password + sizeof(cg->password) - 1; while ((passbytes = read(tty, &passch, 1)) == 1) { if (passch == noecho.c_cc[VEOL] || # ifdef VEOL2 passch == noecho.c_cc[VEOL2] || # endif /* VEOL2 */ passch == 0x0A || passch == 0x0D) { /* * Enter/return... */ break; } else if (passch == noecho.c_cc[VERASE] || passch == 0x08 || passch == 0x7F) { /* * Backspace/delete (erase character)... */ if (passptr > cg->password) { passptr --; fputs("\010 \010", stdout); } else putchar(0x07); } else if (passch == noecho.c_cc[VKILL]) { /* * CTRL+U (erase line) */ if (passptr > cg->password) { while (passptr > cg->password) { passptr --; fputs("\010 \010", stdout); } } else putchar(0x07); } else if (passch == noecho.c_cc[VINTR] || passch == noecho.c_cc[VQUIT] || passch == noecho.c_cc[VEOF]) { /* * CTRL+C, CTRL+D, or CTRL+Z... */ passptr = cg->password; break; } else if ((passch & 255) < 0x20 || passptr >= passend) putchar(0x07); else { *passptr++ = passch; putchar(_CUPS_PASSCHAR); } fflush(stdout); } putchar('\n'); fflush(stdout); /* * Cleanup... */ tcsetattr(tty, TCSAFLUSH, &original); close(tty); /* * Return the proper value... */ if (passbytes == 1 && passptr > cg->password) { *passptr = '\0'; return (cg->password); } else { memset(cg->password, 0, sizeof(cg->password)); return (NULL); } #endif /* _WIN32 */ } #ifdef HAVE_GSSAPI /* * '_cupsGSSServiceName()' - Get the GSS (Kerberos) service name. */ const char * _cupsGSSServiceName(void) { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ if (!cg->gss_service_name[0]) _cupsSetDefaults(); return (cg->gss_service_name); } #endif /* HAVE_GSSAPI */ /* * '_cupsSetDefaults()' - Set the default server, port, and encryption. */ void _cupsSetDefaults(void) { cups_file_t *fp; /* File */ char filename[1024]; /* Filename */ _cups_client_conf_t cc; /* client.conf values */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_puts("_cupsSetDefaults()"); /* * Load initial client.conf values... */ cups_init_client_conf(&cc); /* * Read the /etc/cups/client.conf and ~/.cups/client.conf files, if * present. */ snprintf(filename, sizeof(filename), "%s/client.conf", cg->cups_serverroot); if ((fp = cupsFileOpen(filename, "r")) != NULL) { cups_read_client_conf(fp, &cc); cupsFileClose(fp); } if (cg->home) { /* * Look for ~/.cups/client.conf... */ #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups/client.conf", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups/client.conf", cg->home); #endif // _WIN32 if ((fp = cupsFileOpen(filename, "r")) != NULL) { cups_read_client_conf(fp, &cc); cupsFileClose(fp); } } /* * Finalize things so every client.conf value is set... */ cups_finalize_client_conf(&cc); cg->uatokens = cc.uatokens; if (cg->encryption == (http_encryption_t)-1) cg->encryption = cc.encryption; if (!cg->server[0] || !cg->ipp_port) cupsSetServer(cc.server_name); if (!cg->ipp_port) cups_set_default_ipp_port(cg); if (!cg->user[0]) strlcpy(cg->user, cc.user, sizeof(cg->user)); #ifdef HAVE_GSSAPI if (!cg->gss_service_name[0]) strlcpy(cg->gss_service_name, cc.gss_service_name, sizeof(cg->gss_service_name)); #endif /* HAVE_GSSAPI */ if (cg->trust_first < 0) cg->trust_first = cc.trust_first; if (cg->any_root < 0) cg->any_root = cc.any_root; if (cg->expired_certs < 0) cg->expired_certs = cc.expired_certs; if (cg->validate_certs < 0) cg->validate_certs = cc.validate_certs; #ifdef HAVE_TLS _httpTLSSetOptions(cc.ssl_options | _HTTP_TLS_SET_DEFAULT, cc.ssl_min_version, cc.ssl_max_version); #endif /* HAVE_TLS */ } #ifdef __APPLE__ # ifdef HAVE_TLS /* * 'cups_apple_get_boolean()' - Get a boolean setting from the CUPS preferences. */ static int /* O - 1 if set, 0 otherwise */ cups_apple_get_boolean( CFStringRef key, /* I - Key (name) */ int *value) /* O - Boolean value */ { Boolean bval, /* Preference value */ bval_set; /* Value is set? */ bval = CFPreferencesGetAppBooleanValue(key, kCUPSPrintingPrefs, &bval_set); if (bval_set) *value = (int)bval; return ((int)bval_set); } # endif /* HAVE_TLS */ /* * 'cups_apple_get_string()' - Get a string setting from the CUPS preferences. */ static int /* O - 1 if set, 0 otherwise */ cups_apple_get_string( CFStringRef key, /* I - Key (name) */ char *value, /* O - String value */ size_t valsize) /* I - Size of value buffer */ { CFStringRef sval; /* String value */ if ((sval = CFPreferencesCopyAppValue(key, kCUPSPrintingPrefs)) != NULL) { Boolean result = CFStringGetCString(sval, value, (CFIndex)valsize, kCFStringEncodingUTF8); CFRelease(sval); if (result) return (1); } return (0); } #endif /* __APPLE__ */ /* * 'cups_boolean_value()' - Convert a string to a boolean value. */ static int /* O - Boolean value */ cups_boolean_value(const char *value) /* I - String value */ { return (!_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "true")); } /* * 'cups_finalize_client_conf()' - Finalize client.conf values. */ static void cups_finalize_client_conf( _cups_client_conf_t *cc) /* I - client.conf values */ { const char *value; /* Environment variable */ if ((value = getenv("CUPS_TRUSTFIRST")) != NULL) cc->trust_first = cups_boolean_value(value); if ((value = getenv("CUPS_ANYROOT")) != NULL) cc->any_root = cups_boolean_value(value); if ((value = getenv("CUPS_ENCRYPTION")) != NULL) cups_set_encryption(cc, value); if ((value = getenv("CUPS_EXPIREDCERTS")) != NULL) cc->expired_certs = cups_boolean_value(value); #ifdef HAVE_GSSAPI if ((value = getenv("CUPS_GSSSERVICENAME")) != NULL) cups_set_gss_service_name(cc, value); #endif /* HAVE_GSSAPI */ if ((value = getenv("CUPS_SERVER")) != NULL) cups_set_server_name(cc, value); if ((value = getenv("CUPS_USER")) != NULL) cups_set_user(cc, value); if ((value = getenv("CUPS_VALIDATECERTS")) != NULL) cc->validate_certs = cups_boolean_value(value); /* * Then apply defaults for those values that haven't been set... */ if (cc->trust_first < 0) cc->trust_first = 1; if (cc->any_root < 0) cc->any_root = 1; if (cc->encryption == (http_encryption_t)-1) cc->encryption = HTTP_ENCRYPTION_IF_REQUESTED; if (cc->expired_certs < 0) cc->expired_certs = 0; #ifdef HAVE_GSSAPI if (!cc->gss_service_name[0]) cups_set_gss_service_name(cc, CUPS_DEFAULT_GSSSERVICENAME); #endif /* HAVE_GSSAPI */ if (!cc->server_name[0]) { /* * If we are compiled with domain socket support, only use the * domain socket if it exists and has the right permissions... */ #if defined(__APPLE__) && !TARGET_OS_OSX cups_set_server_name(cc, "/private/var/run/printd"); #else # ifdef CUPS_DEFAULT_DOMAINSOCKET if (!access(CUPS_DEFAULT_DOMAINSOCKET, R_OK)) cups_set_server_name(cc, CUPS_DEFAULT_DOMAINSOCKET); else # endif /* CUPS_DEFAULT_DOMAINSOCKET */ cups_set_server_name(cc, "localhost"); #endif /* __APPLE__ && !TARGET_OS_OSX */ } if (!cc->user[0]) { #ifdef _WIN32 /* * Get the current user name from the OS... */ DWORD size; /* Size of string */ size = sizeof(cc->user); if (!GetUserNameA(cc->user, &size)) #else /* * Try the USER environment variable as the default username... */ const char *envuser = getenv("USER"); /* Default username */ struct passwd pw; /* Account information */ struct passwd *result = NULL; /* Auxiliary pointer */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (envuser) { /* * Validate USER matches the current UID, otherwise don't allow it to * override things... This makes sure that printing after doing su * or sudo records the correct username. */ getpwnam_r(envuser, &pw, cg->pw_buf, PW_BUF_SIZE, &result); if (result && pw.pw_uid != getuid()) result = NULL; } if (!result) getpwuid_r(getuid(), &pw, cg->pw_buf, PW_BUF_SIZE, &result); if (result) strlcpy(cc->user, pw.pw_name, sizeof(cc->user)); else #endif /* _WIN32 */ { /* * Use the default "unknown" user name... */ strlcpy(cc->user, "unknown", sizeof(cc->user)); } } if (cc->validate_certs < 0) cc->validate_certs = 0; } /* * 'cups_init_client_conf()' - Initialize client.conf values. */ static void cups_init_client_conf( _cups_client_conf_t *cc) /* I - client.conf values */ { /* * Clear all values to "not set"... */ memset(cc, 0, sizeof(_cups_client_conf_t)); cc->uatokens = _CUPS_UATOKENS_MINIMAL; #if defined(__APPLE__) && !TARGET_OS_OSX cups_set_user(cc, "mobile"); #endif /* __APPLE__ && !TARGET_OS_OSX */ #ifdef HAVE_TLS cc->ssl_min_version = _HTTP_TLS_1_0; cc->ssl_max_version = _HTTP_TLS_MAX; #endif /* HAVE_TLS */ cc->encryption = (http_encryption_t)-1; cc->trust_first = -1; cc->any_root = -1; cc->expired_certs = -1; cc->validate_certs = -1; /* * Load settings from the org.cups.PrintingPrefs plist (which trump * everything...) */ #if defined(__APPLE__) char sval[1024]; /* String value */ # ifdef HAVE_TLS int bval; /* Boolean value */ if (cups_apple_get_boolean(kAllowAnyRootKey, &bval)) cc->any_root = bval; if (cups_apple_get_boolean(kAllowExpiredCertsKey, &bval)) cc->expired_certs = bval; if (cups_apple_get_string(kEncryptionKey, sval, sizeof(sval))) cups_set_encryption(cc, sval); if (cups_apple_get_string(kSSLOptionsKey, sval, sizeof(sval))) { cups_set_ssl_options(cc, sval); } else { sval[0] = '\0'; if (cups_apple_get_boolean(kAllowRC4, &bval) && bval) strlcat(sval, " AllowRC4", sizeof(sval)); if (cups_apple_get_boolean(kAllowSSL3, &bval) && bval) strlcat(sval, " AllowSSL3", sizeof(sval)); if (cups_apple_get_boolean(kAllowDH, &bval) && bval) strlcat(sval, " AllowDH", sizeof(sval)); if (sval[0]) cups_set_ssl_options(cc, sval); } if (cups_apple_get_boolean(kTrustOnFirstUseKey, &bval)) cc->trust_first = bval; if (cups_apple_get_boolean(kValidateCertsKey, &bval)) cc->validate_certs = bval; # endif /* HAVE_TLS */ if (cups_apple_get_string(kDigestOptionsKey, sval, sizeof(sval))) cups_set_digestoptions(cc, sval); if (cups_apple_get_string(kUserKey, sval, sizeof(sval))) strlcpy(cc->user, sval, sizeof(cc->user)); if (cups_apple_get_string(kUserAgentTokensKey, sval, sizeof(sval))) cups_set_uatokens(cc, sval); #endif /* __APPLE__ */ } /* * 'cups_read_client_conf()' - Read a client.conf file. */ static void cups_read_client_conf( cups_file_t *fp, /* I - File to read */ _cups_client_conf_t *cc) /* I - client.conf values */ { int linenum; /* Current line number */ char line[1024], /* Line from file */ *value; /* Pointer into line */ /* * Read from the file... */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "DigestOptions") && value) cups_set_digestoptions(cc, value); else if (!_cups_strcasecmp(line, "Encryption") && value) cups_set_encryption(cc, value); #ifndef __APPLE__ /* * The ServerName directive is not supported on macOS due to app * sandboxing restrictions, i.e. not all apps request network access. */ else if (!_cups_strcasecmp(line, "ServerName") && value) cups_set_server_name(cc, value); #endif /* !__APPLE__ */ else if (!_cups_strcasecmp(line, "User") && value) cups_set_user(cc, value); else if (!_cups_strcasecmp(line, "UserAgentTokens") && value) cups_set_uatokens(cc, value); else if (!_cups_strcasecmp(line, "TrustOnFirstUse") && value) cc->trust_first = cups_boolean_value(value); else if (!_cups_strcasecmp(line, "AllowAnyRoot") && value) cc->any_root = cups_boolean_value(value); else if (!_cups_strcasecmp(line, "AllowExpiredCerts") && value) cc->expired_certs = cups_boolean_value(value); else if (!_cups_strcasecmp(line, "ValidateCerts") && value) cc->validate_certs = cups_boolean_value(value); #ifdef HAVE_GSSAPI else if (!_cups_strcasecmp(line, "GSSServiceName") && value) cups_set_gss_service_name(cc, value); #endif /* HAVE_GSSAPI */ #ifdef HAVE_TLS else if (!_cups_strcasecmp(line, "SSLOptions") && value) cups_set_ssl_options(cc, value); #endif /* HAVE_TLS */ } } /* * 'cups_set_default_ipp_port()' - Set the default IPP port value. */ static void cups_set_default_ipp_port( _cups_globals_t *cg) /* I - Global data */ { const char *ipp_port; /* IPP_PORT environment variable */ if ((ipp_port = getenv("IPP_PORT")) != NULL) { if ((cg->ipp_port = atoi(ipp_port)) <= 0) cg->ipp_port = CUPS_DEFAULT_IPP_PORT; } else cg->ipp_port = CUPS_DEFAULT_IPP_PORT; } /* * 'cups_set_digestoptions()' - Set the DigestOptions value. */ static void cups_set_digestoptions( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { if (!_cups_strcasecmp(value, "DenyMD5")) cc->digestoptions = _CUPS_DIGESTOPTIONS_DENYMD5; else if (!_cups_strcasecmp(value, "None")) cc->digestoptions = _CUPS_DIGESTOPTIONS_NONE; } /* * 'cups_set_encryption()' - Set the Encryption value. */ static void cups_set_encryption( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { if (!_cups_strcasecmp(value, "never")) cc->encryption = HTTP_ENCRYPTION_NEVER; else if (!_cups_strcasecmp(value, "always")) cc->encryption = HTTP_ENCRYPTION_ALWAYS; else if (!_cups_strcasecmp(value, "required")) cc->encryption = HTTP_ENCRYPTION_REQUIRED; else cc->encryption = HTTP_ENCRYPTION_IF_REQUESTED; } /* * 'cups_set_gss_service_name()' - Set the GSSServiceName value. */ #ifdef HAVE_GSSAPI static void cups_set_gss_service_name( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { strlcpy(cc->gss_service_name, value, sizeof(cc->gss_service_name)); } #endif /* HAVE_GSSAPI */ /* * 'cups_set_server_name()' - Set the ServerName value. */ static void cups_set_server_name( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { strlcpy(cc->server_name, value, sizeof(cc->server_name)); } /* * 'cups_set_ssl_options()' - Set the SSLOptions value. */ #ifdef HAVE_TLS static void cups_set_ssl_options( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { /* * SSLOptions [AllowRC4] [AllowSSL3] [AllowDH] [DenyTLS1.0] [None] */ int options = _HTTP_TLS_NONE, /* SSL/TLS options */ min_version = _HTTP_TLS_1_0, /* Minimum SSL/TLS version */ max_version = _HTTP_TLS_MAX; /* Maximum SSL/TLS version */ char temp[256], /* Copy of value */ *start, /* Start of option */ *end; /* End of option */ strlcpy(temp, value, sizeof(temp)); for (start = temp; *start; start = end) { /* * Find end of keyword... */ end = start; while (*end && !_cups_isspace(*end)) end ++; if (*end) *end++ = '\0'; /* * Compare... */ if (!_cups_strcasecmp(start, "AllowRC4")) options |= _HTTP_TLS_ALLOW_RC4; else if (!_cups_strcasecmp(start, "AllowSSL3")) min_version = _HTTP_TLS_SSL3; else if (!_cups_strcasecmp(start, "AllowDH")) options |= _HTTP_TLS_ALLOW_DH; else if (!_cups_strcasecmp(start, "DenyCBC")) options |= _HTTP_TLS_DENY_CBC; else if (!_cups_strcasecmp(start, "DenyTLS1.0")) min_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MaxTLS1.0")) max_version = _HTTP_TLS_1_0; else if (!_cups_strcasecmp(start, "MaxTLS1.1")) max_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MaxTLS1.2")) max_version = _HTTP_TLS_1_2; else if (!_cups_strcasecmp(start, "MaxTLS1.3")) max_version = _HTTP_TLS_1_3; else if (!_cups_strcasecmp(start, "MinTLS1.0")) min_version = _HTTP_TLS_1_0; else if (!_cups_strcasecmp(start, "MinTLS1.1")) min_version = _HTTP_TLS_1_1; else if (!_cups_strcasecmp(start, "MinTLS1.2")) min_version = _HTTP_TLS_1_2; else if (!_cups_strcasecmp(start, "MinTLS1.3")) min_version = _HTTP_TLS_1_3; else if (!_cups_strcasecmp(start, "None")) options = _HTTP_TLS_NONE; } cc->ssl_options = options; cc->ssl_max_version = max_version; cc->ssl_min_version = min_version; DEBUG_printf(("4cups_set_ssl_options(cc=%p, value=\"%s\") options=%x, min_version=%d, max_version=%d", (void *)cc, value, options, min_version, max_version)); } #endif /* HAVE_TLS */ /* * 'cups_set_uatokens()' - Set the UserAgentTokens value. */ static void cups_set_uatokens( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { int i; /* Looping var */ static const char * const uatokens[] =/* UserAgentTokens values */ { "NONE", "PRODUCTONLY", "MAJOR", "MINOR", "MINIMAL", "OS", "FULL" }; for (i = 0; i < (int)(sizeof(uatokens) / sizeof(uatokens[0])); i ++) { if (!_cups_strcasecmp(value, uatokens[i])) { cc->uatokens = (_cups_uatokens_t)i; return; } } } /* * 'cups_set_user()' - Set the User value. */ static void cups_set_user( _cups_client_conf_t *cc, /* I - client.conf values */ const char *value) /* I - Value */ { strlcpy(cc->user, value, sizeof(cc->user)); } cups-2.4.7/cups/transcode.h0000644000175000017500000000321014502571342015462 0ustar zdohnalzdohnal/* * Transcoding definitions for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_TRANSCODE_H_ # define _CUPS_TRANSCODE_H_ /* * Include necessary headers... */ # include "language.h" # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define CUPS_MAX_USTRING 8192 /* Max size of Unicode string */ /* * Types... */ typedef unsigned char cups_utf8_t; /* UTF-8 Unicode/ISO-10646 unit */ typedef unsigned long cups_utf32_t; /* UTF-32 Unicode/ISO-10646 unit */ typedef unsigned short cups_ucs2_t; /* UCS-2 Unicode/ISO-10646 unit */ typedef unsigned long cups_ucs4_t; /* UCS-4 Unicode/ISO-10646 unit */ typedef unsigned char cups_sbcs_t; /* SBCS Legacy 8-bit unit */ typedef unsigned short cups_dbcs_t; /* DBCS Legacy 16-bit unit */ typedef unsigned long cups_vbcs_t; /* VBCS Legacy 32-bit unit */ /* EUC uses 8, 16, 24, 32-bit */ /* * Prototypes... */ extern int cupsCharsetToUTF8(cups_utf8_t *dest, const char *src, const int maxout, const cups_encoding_t encoding) _CUPS_API_1_2; extern int cupsUTF8ToCharset(char *dest, const cups_utf8_t *src, const int maxout, const cups_encoding_t encoding) _CUPS_API_1_2; extern int cupsUTF8ToUTF32(cups_utf32_t *dest, const cups_utf8_t *src, const int maxout) _CUPS_API_1_2; extern int cupsUTF32ToUTF8(cups_utf8_t *dest, const cups_utf32_t *src, const int maxout) _CUPS_API_1_2; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_TRANSCODE_H_ */ cups-2.4.7/cups/transcode.c0000644000175000017500000003614414502571342015471 0ustar zdohnalzdohnal/* * Transcoding support for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #ifdef HAVE_ICONV_H # include #endif /* HAVE_ICONV_H */ /* * Local globals... */ #ifdef HAVE_ICONV_H static _cups_mutex_t map_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex to control access to maps */ static iconv_t map_from_utf8 = (iconv_t)-1; /* Convert from UTF-8 to charset */ static iconv_t map_to_utf8 = (iconv_t)-1; /* Convert from charset to UTF-8 */ static cups_encoding_t map_encoding = CUPS_AUTO_ENCODING; /* Which charset is cached */ #endif /* HAVE_ICONV_H */ /* * '_cupsCharmapFlush()' - Flush all character set maps out of cache. */ void _cupsCharmapFlush(void) { #ifdef HAVE_ICONV_H if (map_from_utf8 != (iconv_t)-1) { iconv_close(map_from_utf8); map_from_utf8 = (iconv_t)-1; } if (map_to_utf8 != (iconv_t)-1) { iconv_close(map_to_utf8); map_to_utf8 = (iconv_t)-1; } map_encoding = CUPS_AUTO_ENCODING; #endif /* HAVE_ICONV_H */ } /* * 'cupsCharsetToUTF8()' - Convert legacy character set to UTF-8. */ int /* O - Count or -1 on error */ cupsCharsetToUTF8( cups_utf8_t *dest, /* O - Target string */ const char *src, /* I - Source string */ const int maxout, /* I - Max output */ const cups_encoding_t encoding) /* I - Encoding */ { cups_utf8_t *destptr; /* Pointer into UTF-8 buffer */ #ifdef HAVE_ICONV_H size_t srclen, /* Length of source string */ outBytesLeft; /* Bytes remaining in output buffer */ #endif /* HAVE_ICONV_H */ /* * Check for valid arguments... */ DEBUG_printf(("2cupsCharsetToUTF8(dest=%p, src=\"%s\", maxout=%d, encoding=%d)", (void *)dest, src, maxout, encoding)); if (!dest || !src || maxout < 1) { if (dest) *dest = '\0'; DEBUG_puts("3cupsCharsetToUTF8: Bad arguments, returning -1"); return (-1); } /* * Handle identity conversions... */ if (encoding == CUPS_UTF8 || encoding <= CUPS_US_ASCII || encoding >= CUPS_ENCODING_VBCS_END) { strlcpy((char *)dest, src, (size_t)maxout); return ((int)strlen((char *)dest)); } /* * Handle ISO-8859-1 to UTF-8 directly... */ destptr = dest; if (encoding == CUPS_ISO8859_1) { int ch; /* Character from string */ cups_utf8_t *destend; /* End of UTF-8 buffer */ destend = dest + maxout - 2; while (*src && destptr < destend) { ch = *src++ & 255; if (ch & 128) { *destptr++ = (cups_utf8_t)(0xc0 | (ch >> 6)); *destptr++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); } else *destptr++ = (cups_utf8_t)ch; } *destptr = '\0'; return ((int)(destptr - dest)); } /* * Convert input legacy charset to UTF-8... */ #ifdef HAVE_ICONV_H _cupsMutexLock(&map_mutex); if (map_encoding != encoding) { char toset[1024]; /* Destination character set */ _cupsCharmapFlush(); snprintf(toset, sizeof(toset), "%s//IGNORE", _cupsEncodingName(encoding)); map_encoding = encoding; map_from_utf8 = iconv_open(_cupsEncodingName(encoding), "UTF-8"); map_to_utf8 = iconv_open("UTF-8", toset); } if (map_to_utf8 != (iconv_t)-1) { char *altdestptr = (char *)dest; /* Silence bogus GCC type-punned */ srclen = strlen(src); outBytesLeft = (size_t)maxout - 1; iconv(map_to_utf8, (char **)&src, &srclen, &altdestptr, &outBytesLeft); *altdestptr = '\0'; _cupsMutexUnlock(&map_mutex); return ((int)(altdestptr - (char *)dest)); } _cupsMutexUnlock(&map_mutex); #endif /* HAVE_ICONV_H */ /* * No iconv() support, so error out... */ *destptr = '\0'; return (-1); } /* * 'cupsUTF8ToCharset()' - Convert UTF-8 to legacy character set. */ int /* O - Count or -1 on error */ cupsUTF8ToCharset( char *dest, /* O - Target string */ const cups_utf8_t *src, /* I - Source string */ const int maxout, /* I - Max output */ const cups_encoding_t encoding) /* I - Encoding */ { char *destptr; /* Pointer into destination */ #ifdef HAVE_ICONV_H size_t srclen, /* Length of source string */ outBytesLeft; /* Bytes remaining in output buffer */ #endif /* HAVE_ICONV_H */ /* * Check for valid arguments... */ if (!dest || !src || maxout < 1) { if (dest) *dest = '\0'; return (-1); } /* * Handle identity conversions... */ if (encoding == CUPS_UTF8 || encoding >= CUPS_ENCODING_VBCS_END) { strlcpy(dest, (char *)src, (size_t)maxout); return ((int)strlen(dest)); } /* * Handle UTF-8 to ISO-8859-1 directly... */ destptr = dest; if (encoding == CUPS_ISO8859_1 || encoding <= CUPS_US_ASCII) { int ch, /* Character from string */ maxch; /* Maximum character for charset */ char *destend; /* End of ISO-8859-1 buffer */ maxch = encoding == CUPS_ISO8859_1 ? 256 : 128; destend = dest + maxout - 1; while (*src && destptr < destend) { ch = *src++; if ((ch & 0xe0) == 0xc0) { ch = ((ch & 0x1f) << 6) | (*src++ & 0x3f); if (ch < maxch) *destptr++ = (char)ch; else *destptr++ = '?'; } else if ((ch & 0xf0) == 0xe0 || (ch & 0xf8) == 0xf0) *destptr++ = '?'; else if (!(ch & 0x80)) *destptr++ = (char)ch; } *destptr = '\0'; return ((int)(destptr - dest)); } #ifdef HAVE_ICONV_H /* * Convert input UTF-8 to legacy charset... */ _cupsMutexLock(&map_mutex); if (map_encoding != encoding) { char toset[1024]; /* Destination character set */ _cupsCharmapFlush(); snprintf(toset, sizeof(toset), "%s//IGNORE", _cupsEncodingName(encoding)); map_encoding = encoding; map_from_utf8 = iconv_open(_cupsEncodingName(encoding), "UTF-8"); map_to_utf8 = iconv_open("UTF-8", toset); } if (map_from_utf8 != (iconv_t)-1) { char *altsrc = (char *)src; /* Silence bogus GCC type-punned */ srclen = strlen((char *)src); outBytesLeft = (size_t)maxout - 1; iconv(map_from_utf8, &altsrc, &srclen, &destptr, &outBytesLeft); *destptr = '\0'; _cupsMutexUnlock(&map_mutex); return ((int)(destptr - dest)); } _cupsMutexUnlock(&map_mutex); #endif /* HAVE_ICONV_H */ /* * No iconv() support, so error out... */ *destptr = '\0'; return (-1); } /* * 'cupsUTF8ToUTF32()' - Convert UTF-8 to UTF-32. * * 32-bit UTF-32 (actually 21-bit) maps to UTF-8 as follows... * * UTF-32 char UTF-8 char(s) * -------------------------------------------------- * 0 to 127 = 0xxxxxxx (US-ASCII) * 128 to 2047 = 110xxxxx 10yyyyyy * 2048 to 65535 = 1110xxxx 10yyyyyy 10zzzzzz * > 65535 = 11110xxx 10yyyyyy 10zzzzzz 10xxxxxx * * UTF-32 prohibits chars beyond Plane 16 (> 0x10ffff) in UCS-4, * which would convert to five- or six-octet UTF-8 sequences... */ int /* O - Count or -1 on error */ cupsUTF8ToUTF32( cups_utf32_t *dest, /* O - Target string */ const cups_utf8_t *src, /* I - Source string */ const int maxout) /* I - Max output */ { int i; /* Looping variable */ cups_utf8_t ch; /* Character value */ cups_utf8_t next; /* Next character value */ cups_utf32_t ch32; /* UTF-32 character value */ /* * Check for valid arguments and clear output... */ DEBUG_printf(("2cupsUTF8ToUTF32(dest=%p, src=\"%s\", maxout=%d)", (void *)dest, src, maxout)); if (dest) *dest = 0; if (!dest || !src || maxout < 1 || maxout > CUPS_MAX_USTRING) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad arguments)"); return (-1); } /* * Convert input UTF-8 to output UTF-32... */ for (i = maxout - 1; *src && i > 0; i --) { ch = *src++; /* * Convert UTF-8 character(s) to UTF-32 character... */ if (!(ch & 0x80)) { /* * One-octet UTF-8 <= 127 (US-ASCII)... */ *dest++ = ch; DEBUG_printf(("4cupsUTF8ToUTF32: %02x => %08X", src[-1], ch)); continue; } else if ((ch & 0xe0) == 0xc0) { /* * Two-octet UTF-8 <= 2047 (Latin-x)... */ next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (cups_utf32_t)((ch & 0x1f) << 6) | (cups_utf32_t)(next & 0x3f); /* * Check for non-shortest form (invalid UTF-8)... */ if (ch32 < 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } *dest++ = ch32; DEBUG_printf(("4cupsUTF8ToUTF32: %02x %02x => %08X", src[-2], src[-1], (unsigned)ch32)); } else if ((ch & 0xf0) == 0xe0) { /* * Three-octet UTF-8 <= 65535 (Plane 0 - BMP)... */ next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (cups_utf32_t)((ch & 0x0f) << 6) | (cups_utf32_t)(next & 0x3f); next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (ch32 << 6) | (cups_utf32_t)(next & 0x3f); /* * Check for non-shortest form (invalid UTF-8)... */ if (ch32 < 0x800) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } *dest++ = ch32; DEBUG_printf(("4cupsUTF8ToUTF32: %02x %02x %02x => %08X", src[-3], src[-2], src[-1], (unsigned)ch32)); } else if ((ch & 0xf8) == 0xf0) { /* * Four-octet UTF-8... */ next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (cups_utf32_t)((ch & 0x07) << 6) | (cups_utf32_t)(next & 0x3f); next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (ch32 << 6) | (cups_utf32_t)(next & 0x3f); next = *src++; if ((next & 0xc0) != 0x80) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } ch32 = (ch32 << 6) | (cups_utf32_t)(next & 0x3f); /* * Check for non-shortest form (invalid UTF-8)... */ if (ch32 < 0x10000) { DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } *dest++ = ch32; DEBUG_printf(("4cupsUTF8ToUTF32: %02x %02x %02x %02x => %08X", src[-4], src[-3], src[-2], src[-1], (unsigned)ch32)); } else { /* * More than 4-octet (invalid UTF-8 sequence)... */ DEBUG_puts("3cupsUTF8ToUTF32: Returning -1 (bad UTF-8 sequence)"); return (-1); } /* * Check for UTF-16 surrogate (illegal UTF-8)... */ if (ch32 >= 0xd800 && ch32 <= 0xdfff) return (-1); } *dest = 0; DEBUG_printf(("3cupsUTF8ToUTF32: Returning %d characters", maxout - 1 - i)); return (maxout - 1 - i); } /* * 'cupsUTF32ToUTF8()' - Convert UTF-32 to UTF-8. * * 32-bit UTF-32 (actually 21-bit) maps to UTF-8 as follows... * * UTF-32 char UTF-8 char(s) * -------------------------------------------------- * 0 to 127 = 0xxxxxxx (US-ASCII) * 128 to 2047 = 110xxxxx 10yyyyyy * 2048 to 65535 = 1110xxxx 10yyyyyy 10zzzzzz * > 65535 = 11110xxx 10yyyyyy 10zzzzzz 10xxxxxx * * UTF-32 prohibits chars beyond Plane 16 (> 0x10ffff) in UCS-4, * which would convert to five- or six-octet UTF-8 sequences... */ int /* O - Count or -1 on error */ cupsUTF32ToUTF8( cups_utf8_t *dest, /* O - Target string */ const cups_utf32_t *src, /* I - Source string */ const int maxout) /* I - Max output */ { cups_utf8_t *start; /* Start of destination string */ int i; /* Looping variable */ int swap; /* Byte-swap input to output */ cups_utf32_t ch; /* Character value */ /* * Check for valid arguments and clear output... */ DEBUG_printf(("2cupsUTF32ToUTF8(dest=%p, src=%p, maxout=%d)", (void *)dest, (void *)src, maxout)); if (dest) *dest = '\0'; if (!dest || !src || maxout < 1) { DEBUG_puts("3cupsUTF32ToUTF8: Returning -1 (bad args)"); return (-1); } /* * Check for leading BOM in UTF-32 and inverted BOM... */ start = dest; swap = *src == 0xfffe0000; DEBUG_printf(("4cupsUTF32ToUTF8: swap=%d", swap)); if (*src == 0xfffe0000 || *src == 0xfeff) src ++; /* * Convert input UTF-32 to output UTF-8... */ for (i = maxout - 1; *src && i > 0;) { ch = *src++; /* * Byte swap input UTF-32, if necessary... * (only byte-swapping 24 of 32 bits) */ if (swap) ch = ((ch >> 24) | ((ch >> 8) & 0xff00) | ((ch << 8) & 0xff0000)); /* * Check for beyond Plane 16 (invalid UTF-32)... */ if (ch > 0x10ffff) { DEBUG_puts("3cupsUTF32ToUTF8: Returning -1 (character out of range)"); return (-1); } /* * Convert UTF-32 character to UTF-8 character(s)... */ if (ch < 0x80) { /* * One-octet UTF-8 <= 127 (US-ASCII)... */ *dest++ = (cups_utf8_t)ch; i --; DEBUG_printf(("4cupsUTF32ToUTF8: %08x => %02x", (unsigned)ch, dest[-1])); } else if (ch < 0x800) { /* * Two-octet UTF-8 <= 2047 (Latin-x)... */ if (i < 2) { DEBUG_puts("3cupsUTF32ToUTF8: Returning -1 (too long 2)"); return (-1); } *dest++ = (cups_utf8_t)(0xc0 | ((ch >> 6) & 0x1f)); *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); i -= 2; DEBUG_printf(("4cupsUTF32ToUTF8: %08x => %02x %02x", (unsigned)ch, dest[-2], dest[-1])); } else if (ch < 0x10000) { /* * Three-octet UTF-8 <= 65535 (Plane 0 - BMP)... */ if (i < 3) { DEBUG_puts("3cupsUTF32ToUTF8: Returning -1 (too long 3)"); return (-1); } *dest++ = (cups_utf8_t)(0xe0 | ((ch >> 12) & 0x0f)); *dest++ = (cups_utf8_t)(0x80 | ((ch >> 6) & 0x3f)); *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); i -= 3; DEBUG_printf(("4cupsUTF32ToUTF8: %08x => %02x %02x %02x", (unsigned)ch, dest[-3], dest[-2], dest[-1])); } else { /* * Four-octet UTF-8... */ if (i < 4) { DEBUG_puts("3cupsUTF32ToUTF8: Returning -1 (too long 4)"); return (-1); } *dest++ = (cups_utf8_t)(0xf0 | ((ch >> 18) & 0x07)); *dest++ = (cups_utf8_t)(0x80 | ((ch >> 12) & 0x3f)); *dest++ = (cups_utf8_t)(0x80 | ((ch >> 6) & 0x3f)); *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); i -= 4; DEBUG_printf(("4cupsUTF32ToUTF8: %08x => %02x %02x %02x %02x", (unsigned)ch, dest[-4], dest[-3], dest[-2], dest[-1])); } } *dest = '\0'; DEBUG_printf(("3cupsUTF32ToUTF8: Returning %d", (int)(dest - start))); return ((int)(dest - start)); } cups-2.4.7/cups/tlscheck.c0000644000175000017500000005610214502571342015303 0ustar zdohnalzdohnal/* * TLS check program for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #ifndef HAVE_TLS int main(void) { puts("Sorry, no TLS support compiled in."); return (1); } #else /* * Local functions... */ static void usage(void) _CUPS_NORETURN; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ http_t *http; /* HTTP connection */ const char *server = NULL; /* Hostname from command-line */ int port = 0; /* Port number */ cups_array_t *creds; /* Server credentials */ char creds_str[2048]; /* Credentials string */ const char *cipherName = "UNKNOWN";/* Cipher suite name */ int dhBits = 0; /* Diffie-Hellman bits */ int tlsVersion = 0; /* TLS version number */ char uri[1024], /* Printer URI */ scheme[32], /* URI scheme */ host[256], /* Hostname */ userpass[256], /* Username/password */ resource[256]; /* Resource path */ int af = AF_UNSPEC, /* Address family */ tls_options = _HTTP_TLS_NONE, /* TLS options */ tls_min_version = _HTTP_TLS_1_0, tls_max_version = _HTTP_TLS_MAX, verbose = 0; /* Verbosity */ ipp_t *request, /* IPP Get-Printer-Attributes request */ *response; /* IPP Get-Printer-Attributes response */ ipp_attribute_t *attr; /* Current attribute */ const char *name; /* Attribute name */ char value[1024]; /* Attribute (string) value */ static const char * const pattrs[] = /* Requested attributes */ { "color-supported", "compression-supported", "document-format-supported", "pages-per-minute", "printer-location", "printer-make-and-model", "printer-state", "printer-state-reasons", "sides-supported", "uri-authentication-supported", "uri-security-supported" }; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--dh")) { tls_options |= _HTTP_TLS_ALLOW_DH; } else if (!strcmp(argv[i], "--no-cbc")) { tls_options |= _HTTP_TLS_DENY_CBC; } else if (!strcmp(argv[i], "--no-tls10")) { tls_min_version = _HTTP_TLS_1_1; } else if (!strcmp(argv[i], "--tls10")) { tls_min_version = _HTTP_TLS_1_0; tls_max_version = _HTTP_TLS_1_0; } else if (!strcmp(argv[i], "--tls11")) { tls_min_version = _HTTP_TLS_1_1; tls_max_version = _HTTP_TLS_1_1; } else if (!strcmp(argv[i], "--tls12")) { tls_min_version = _HTTP_TLS_1_2; tls_max_version = _HTTP_TLS_1_2; } else if (!strcmp(argv[i], "--tls13")) { tls_min_version = _HTTP_TLS_1_3; tls_max_version = _HTTP_TLS_1_3; } else if (!strcmp(argv[i], "--rc4")) { tls_options |= _HTTP_TLS_ALLOW_RC4; } else if (!strcmp(argv[i], "--verbose") || !strcmp(argv[i], "-v")) { verbose = 1; } else if (!strcmp(argv[i], "-4")) { af = AF_INET; } else if (!strcmp(argv[i], "-6")) { af = AF_INET6; } else if (argv[i][0] == '-') { printf("tlscheck: Unknown option '%s'.\n", argv[i]); usage(); } else if (!server) { if (!strncmp(argv[i], "ipps://", 7)) { httpSeparateURI(HTTP_URI_CODING_ALL, argv[i], scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)); server = host; } else { server = argv[i]; strlcpy(resource, "/ipp/print", sizeof(resource)); } } else if (!port && (argv[i][0] == '=' || isdigit(argv[i][0] & 255))) { if (argv[i][0] == '=') port = atoi(argv[i] + 1); else port = atoi(argv[i]); } else { printf("tlscheck: Unexpected argument '%s'.\n", argv[i]); usage(); } } if (!server) usage(); if (!port) port = 631; _httpTLSSetOptions(tls_options, tls_min_version, tls_max_version); for (i = 0; i < 10; i ++) { if ((http = httpConnect2(server, port, NULL, af, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL)) != NULL) break; } if (!http) { printf("%s: ERROR (%s)\n", server, cupsLastErrorString()); return (1); } if (httpCopyCredentials(http, &creds)) { strlcpy(creds_str, "Unable to get server X.509 credentials.", sizeof(creds_str)); } else { if (!httpCredentialsString(creds, creds_str, sizeof(creds_str))) strlcpy(creds_str, "Unable to convert X.509 credential to string.", sizeof(creds_str)); httpFreeCredentials(creds); } #ifdef HAVE_OPENSSL int cipherBits; // Encryption key bits char cipherStr[1024]; // Combined cipher name switch (SSL_version(http->tls)) { default : tlsVersion = 0; break; case TLS1_VERSION : tlsVersion = 10; break; case TLS1_1_VERSION : tlsVersion = 11; break; case TLS1_2_VERSION : tlsVersion = 12; break; # ifdef TLS1_3_VERSION case TLS1_3_VERSION : tlsVersion = 13; break; # endif // TLS1_3_VERSION } snprintf(cipherStr, sizeof(cipherStr), "%s_%dbits", SSL_get_cipher_name(http->tls), SSL_get_cipher_bits(http->tls, &cipherBits)); cipherName = cipherStr; #elif defined(HAVE_GNUTLS) #elif defined(__APPLE__) SSLProtocol protocol; SSLCipherSuite cipher; char unknownCipherName[256]; int paramsNeeded = 0; const void *params; size_t paramsLen; OSStatus err; if ((err = SSLGetNegotiatedProtocolVersion(http->tls, &protocol)) != noErr) { printf("%s: ERROR (No protocol version - %d)\n", server, (int)err); httpClose(http); return (1); } switch (protocol) { default : tlsVersion = 0; break; case kSSLProtocol3 : tlsVersion = 30; break; case kTLSProtocol1 : tlsVersion = 10; break; case kTLSProtocol11 : tlsVersion = 11; break; case kTLSProtocol12 : tlsVersion = 12; break; } if ((err = SSLGetNegotiatedCipher(http->tls, &cipher)) != noErr) { printf("%s: ERROR (No cipher suite - %d)\n", server, (int)err); httpClose(http); return (1); } switch (cipher) { case TLS_NULL_WITH_NULL_NULL: cipherName = "TLS_NULL_WITH_NULL_NULL"; break; case TLS_RSA_WITH_NULL_MD5: cipherName = "TLS_RSA_WITH_NULL_MD5"; break; case TLS_RSA_WITH_NULL_SHA: cipherName = "TLS_RSA_WITH_NULL_SHA"; break; case TLS_RSA_WITH_RC4_128_MD5: cipherName = "TLS_RSA_WITH_RC4_128_MD5"; break; case TLS_RSA_WITH_RC4_128_SHA: cipherName = "TLS_RSA_WITH_RC4_128_SHA"; break; case TLS_RSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_RSA_WITH_3DES_EDE_CBC_SHA"; break; case TLS_RSA_WITH_NULL_SHA256: cipherName = "TLS_RSA_WITH_NULL_SHA256"; break; case TLS_RSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_RSA_WITH_AES_128_CBC_SHA256"; break; case TLS_RSA_WITH_AES_256_CBC_SHA256: cipherName = "TLS_RSA_WITH_AES_256_CBC_SHA256"; break; case TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_DSS_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DH_DSS_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DH_RSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DH_DSS_WITH_AES_256_CBC_SHA256: cipherName = "TLS_DH_DSS_WITH_AES_256_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_256_CBC_SHA256: cipherName = "TLS_DH_RSA_WITH_AES_256_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_256_CBC_SHA256: cipherName = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_AES_256_CBC_SHA256: cipherName = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_RC4_128_MD5: cipherName = "TLS_DH_anon_WITH_RC4_128_MD5"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DH_anon_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DH_anon_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_256_CBC_SHA256: cipherName = "TLS_DH_anon_WITH_AES_256_CBC_SHA256"; paramsNeeded = 1; break; case TLS_PSK_WITH_RC4_128_SHA: cipherName = "TLS_PSK_WITH_RC4_128_SHA"; break; case TLS_PSK_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_PSK_WITH_3DES_EDE_CBC_SHA"; break; case TLS_PSK_WITH_AES_128_CBC_SHA: cipherName = "TLS_PSK_WITH_AES_128_CBC_SHA"; break; case TLS_PSK_WITH_AES_256_CBC_SHA: cipherName = "TLS_PSK_WITH_AES_256_CBC_SHA"; break; case TLS_DHE_PSK_WITH_RC4_128_SHA: cipherName = "TLS_DHE_PSK_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_AES_128_CBC_SHA: cipherName = "TLS_DHE_PSK_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_AES_256_CBC_SHA: cipherName = "TLS_DHE_PSK_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_RSA_PSK_WITH_RC4_128_SHA: cipherName = "TLS_RSA_PSK_WITH_RC4_128_SHA"; break; case TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA"; break; case TLS_RSA_PSK_WITH_AES_128_CBC_SHA: cipherName = "TLS_RSA_PSK_WITH_AES_128_CBC_SHA"; break; case TLS_RSA_PSK_WITH_AES_256_CBC_SHA: cipherName = "TLS_RSA_PSK_WITH_AES_256_CBC_SHA"; break; case TLS_PSK_WITH_NULL_SHA: cipherName = "TLS_PSK_WITH_NULL_SHA"; break; case TLS_DHE_PSK_WITH_NULL_SHA: cipherName = "TLS_DHE_PSK_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_RSA_PSK_WITH_NULL_SHA: cipherName = "TLS_RSA_PSK_WITH_NULL_SHA"; break; case TLS_RSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_RSA_WITH_AES_128_GCM_SHA256"; break; case TLS_RSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_RSA_WITH_AES_256_GCM_SHA384"; break; case TLS_DHE_RSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DH_RSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DH_RSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_DH_DSS_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DH_DSS_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DH_DSS_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DH_DSS_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DH_anon_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DH_anon_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_PSK_WITH_AES_128_GCM_SHA256: cipherName = "TLS_PSK_WITH_AES_128_GCM_SHA256"; break; case TLS_PSK_WITH_AES_256_GCM_SHA384: cipherName = "TLS_PSK_WITH_AES_256_GCM_SHA384"; break; case TLS_DHE_PSK_WITH_AES_128_GCM_SHA256: cipherName = "TLS_DHE_PSK_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_AES_256_GCM_SHA384: cipherName = "TLS_DHE_PSK_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_RSA_PSK_WITH_AES_128_GCM_SHA256: cipherName = "TLS_RSA_PSK_WITH_AES_128_GCM_SHA256"; break; case TLS_RSA_PSK_WITH_AES_256_GCM_SHA384: cipherName = "TLS_RSA_PSK_WITH_AES_256_GCM_SHA384"; break; case TLS_PSK_WITH_AES_128_CBC_SHA256: cipherName = "TLS_PSK_WITH_AES_128_CBC_SHA256"; break; case TLS_PSK_WITH_AES_256_CBC_SHA384: cipherName = "TLS_PSK_WITH_AES_256_CBC_SHA384"; break; case TLS_PSK_WITH_NULL_SHA256: cipherName = "TLS_PSK_WITH_NULL_SHA256"; break; case TLS_PSK_WITH_NULL_SHA384: cipherName = "TLS_PSK_WITH_NULL_SHA384"; break; case TLS_DHE_PSK_WITH_AES_128_CBC_SHA256: cipherName = "TLS_DHE_PSK_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_AES_256_CBC_SHA384: cipherName = "TLS_DHE_PSK_WITH_AES_256_CBC_SHA384"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_NULL_SHA256: cipherName = "TLS_DHE_PSK_WITH_NULL_SHA256"; paramsNeeded = 1; break; case TLS_DHE_PSK_WITH_NULL_SHA384: cipherName = "TLS_DHE_PSK_WITH_NULL_SHA384"; paramsNeeded = 1; break; case TLS_RSA_PSK_WITH_AES_128_CBC_SHA256: cipherName = "TLS_RSA_PSK_WITH_AES_128_CBC_SHA256"; break; case TLS_RSA_PSK_WITH_AES_256_CBC_SHA384: cipherName = "TLS_RSA_PSK_WITH_AES_256_CBC_SHA384"; break; case TLS_RSA_PSK_WITH_NULL_SHA256: cipherName = "TLS_RSA_PSK_WITH_NULL_SHA256"; break; case TLS_RSA_PSK_WITH_NULL_SHA384: cipherName = "TLS_RSA_PSK_WITH_NULL_SHA384"; break; case TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384: cipherName = "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384: cipherName = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256: cipherName = "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384: cipherName = "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256: cipherName = "TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384: cipherName = "TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384"; paramsNeeded = 1; break; case TLS_RSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_RSA_WITH_AES_128_CBC_SHA"; break; case TLS_DH_DSS_WITH_AES_128_CBC_SHA: cipherName = "TLS_DH_DSS_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_DH_RSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_128_CBC_SHA: cipherName = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_128_CBC_SHA: cipherName = "TLS_DH_anon_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_RSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_RSA_WITH_AES_256_CBC_SHA"; break; case TLS_DH_DSS_WITH_AES_256_CBC_SHA: cipherName = "TLS_DH_DSS_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_RSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_DH_RSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_DSS_WITH_AES_256_CBC_SHA: cipherName = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_DHE_RSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_DH_anon_WITH_AES_256_CBC_SHA: cipherName = "TLS_DH_anon_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_NULL_SHA: cipherName = "TLS_ECDH_ECDSA_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_RC4_128_SHA: cipherName = "TLS_ECDH_ECDSA_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_NULL_SHA: cipherName = "TLS_ECDHE_ECDSA_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: cipherName = "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_NULL_SHA: cipherName = "TLS_ECDH_RSA_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_RC4_128_SHA: cipherName = "TLS_ECDH_RSA_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_RSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_NULL_SHA: cipherName = "TLS_ECDHE_RSA_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_RC4_128_SHA: cipherName = "TLS_ECDHE_RSA_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: cipherName = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: cipherName = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_anon_WITH_NULL_SHA: cipherName = "TLS_ECDH_anon_WITH_NULL_SHA"; paramsNeeded = 1; break; case TLS_ECDH_anon_WITH_RC4_128_SHA: cipherName = "TLS_ECDH_anon_WITH_RC4_128_SHA"; paramsNeeded = 1; break; case TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA: cipherName = "TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_anon_WITH_AES_128_CBC_SHA: cipherName = "TLS_ECDH_anon_WITH_AES_128_CBC_SHA"; paramsNeeded = 1; break; case TLS_ECDH_anon_WITH_AES_256_CBC_SHA: cipherName = "TLS_ECDH_anon_WITH_AES_256_CBC_SHA"; paramsNeeded = 1; break; default : snprintf(unknownCipherName, sizeof(unknownCipherName), "UNKNOWN_%04X", cipher); cipherName = unknownCipherName; break; } if (cipher == TLS_RSA_WITH_RC4_128_MD5 || cipher == TLS_RSA_WITH_RC4_128_SHA) { printf("%s: ERROR (Printers MUST NOT negotiate RC4 cipher suites.)\n", server); httpClose(http); return (1); } if ((err = SSLGetDiffieHellmanParams(http->tls, ¶ms, ¶msLen)) != noErr && paramsNeeded) { printf("%s: ERROR (Unable to get Diffie-Hellman parameters - %d)\n", server, (int)err); httpClose(http); return (1); } if (paramsLen < 128 && paramsLen != 0) { printf("%s: ERROR (Diffie-Hellman parameters MUST be at least 2048 bits, but Printer uses only %d bits/%d bytes)\n", server, (int)paramsLen * 8, (int)paramsLen); httpClose(http); return (1); } dhBits = (int)paramsLen * 8; #endif /* HAVE_OPENSSL */ if (dhBits > 0) printf("%s: OK (TLS: %d.%d, %s, %d DH bits)\n", server, tlsVersion / 10, tlsVersion % 10, cipherName, dhBits); else printf("%s: OK (TLS: %d.%d, %s)\n", server, tlsVersion / 10, tlsVersion % 10, cipherName); printf(" %s\n", creds_str); if (verbose) { httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipps", NULL, server, port, resource); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); response = cupsDoRequest(http, request, resource); for (attr = ippFirstAttribute(response); attr; attr = ippNextAttribute(response)) { if (ippGetGroupTag(attr) != IPP_TAG_PRINTER) continue; if ((name = ippGetName(attr)) == NULL) continue; ippAttributeString(attr, value, sizeof(value)); printf(" %s=%s\n", name, value); } ippDelete(response); puts(""); } httpClose(http); return (0); } /* * 'usage()' - Show program usage. */ static void usage(void) { puts("Usage: ./tlscheck [options] server [port]"); puts(" ./tlscheck [options] ipps://server[:port]/path"); puts(""); puts("Options:"); puts(" --dh Allow DH/DHE key exchange"); puts(" --no-cbc Disable CBC cipher suites"); puts(" --no-tls10 Disable TLS/1.0"); puts(" --rc4 Allow RC4 encryption"); puts(" --tls10 Only use TLS/1.0"); puts(" --tls11 Only use TLS/1.1"); puts(" --tls12 Only use TLS/1.2"); puts(" --tls13 Only use TLS/1.3"); puts(" --verbose Be verbose"); puts(" -4 Connect using IPv4 addresses only"); puts(" -6 Connect using IPv6 addresses only"); puts(" -v Be verbose"); puts(""); puts("The default port is 631."); exit(1); } #endif /* !HAVE_TLS */ cups-2.4.7/cups/tls.c0000644000175000017500000000403714502571342014305 0ustar zdohnalzdohnal/* * TLS routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright @ 2007-2014 by Apple Inc. * Copyright @ 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #ifdef _WIN32 # include #else # include # include # include #endif /* _WIN32 */ #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ /* * Include platform-specific TLS code... */ #ifdef HAVE_TLS # ifdef HAVE_OPENSSL # include "tls-openssl.c" # elif defined(HAVE_GNUTLS) # include "tls-gnutls.c" # elif defined(HAVE_CDSASSL) # include "tls-darwin.c" # elif defined(HAVE_SSPISSL) # include "tls-sspi.c" # endif /* HAVE_GNUTLS */ #else /* Stubs for when TLS is not supported/available */ int httpCopyCredentials(http_t *http, cups_array_t **credentials) { (void)http; if (credentials) *credentials = NULL; return (-1); } int httpCredentialsAreValidForName(cups_array_t *credentials, const char *common_name) { (void)credentials; (void)common_name; return (1); } time_t httpCredentialsGetExpiration(cups_array_t *credentials) { (void)credentials; return (INT_MAX); } http_trust_t httpCredentialsGetTrust(cups_array_t *credentials, const char *common_name) { (void)credentials; (void)common_name; return (HTTP_TRUST_OK); } size_t httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize) { (void)credentials; (void)bufsize; if (buffer) *buffer = '\0'; return (0); } int httpLoadCredentials(const char *path, cups_array_t **credentials, const char *common_name) { (void)path; (void)credentials; (void)common_name; return (-1); } int httpSaveCredentials(const char *path, cups_array_t *credentials, const char *common_name) { (void)path; (void)credentials; (void)common_name; return (-1); } #endif /* HAVE_TLS */ cups-2.4.7/cups/tls-sspi.c0000644000175000017500000021423614502571342015265 0ustar zdohnalzdohnal/* * TLS support for CUPS on Windows using the Security Support Provider * Interface (SSPI). * * Copyright © 2020-2023 by OpenPrinting. * Copyright © 2010-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /**** This file is included from tls.c ****/ /* * Include necessary headers... */ #include "debug-private.h" #include /* * Include necessary libraries... */ #pragma comment(lib, "Crypt32.lib") #pragma comment(lib, "Secur32.lib") #pragma comment(lib, "Ws2_32.lib") /* * Constants... */ #ifndef SECURITY_FLAG_IGNORE_UNKNOWN_CA # define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100 /* Untrusted root */ #endif /* SECURITY_FLAG_IGNORE_UNKNOWN_CA */ #ifndef SECURITY_FLAG_IGNORE_CERT_CN_INVALID # define SECURITY_FLAG_IGNORE_CERT_CN_INVALID 0x00001000 /* Common name does not match */ #endif /* !SECURITY_FLAG_IGNORE_CERT_CN_INVALID */ #ifndef SECURITY_FLAG_IGNORE_CERT_DATE_INVALID # define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000 /* Expired X509 Cert. */ #endif /* !SECURITY_FLAG_IGNORE_CERT_DATE_INVALID */ /* * Local globals... */ static int tls_options = -1,/* Options for TLS connections */ tls_min_version = _HTTP_TLS_1_0, tls_max_version = _HTTP_TLS_MAX; /* * Local functions... */ static _http_sspi_t *http_sspi_alloc(void); static int http_sspi_client(http_t *http, const char *hostname); static PCCERT_CONTEXT http_sspi_create_credential(http_credential_t *cred); static BOOL http_sspi_find_credentials(http_t *http, const LPWSTR containerName, const char *common_name); static void http_sspi_free(_http_sspi_t *sspi); static BOOL http_sspi_make_credentials(_http_sspi_t *sspi, const LPWSTR containerName, const char *common_name, _http_mode_t mode, int years); static int http_sspi_server(http_t *http, const char *hostname); static void http_sspi_set_error(const char *title); static const char *http_sspi_strerror(char *buffer, size_t bufsize, DWORD code); static DWORD http_sspi_verify(PCCERT_CONTEXT cert, const char *common_name, DWORD dwCertFlags); /* * 'cupsMakeServerCredentials()' - Make a self-signed certificate and private key pair. */ int /* O - 1 on success, 0 on failure */ cupsMakeServerCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ const char *common_name, /* I - Common name */ int num_alt_names, /* I - Number of subject alternate names */ const char **alt_names, /* I - Subject Alternate Names */ time_t expiration_date) /* I - Expiration date */ { _http_sspi_t *sspi; /* SSPI data */ int ret; /* Return value */ DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, alt_names, (int)expiration_date)); (void)path; (void)num_alt_names; (void)alt_names; sspi = http_sspi_alloc(); ret = http_sspi_make_credentials(sspi, L"ServerContainer", common_name, _HTTP_MODE_SERVER, (int)((expiration_date - time(NULL) + 86399) / 86400 / 365)); http_sspi_free(sspi); return (ret); } /* * 'cupsSetServerCredentials()' - Set the default server credentials. * * Note: The server credentials are used by all threads in the running process. * This function is threadsafe. */ int /* O - 1 on success, 0 on failure */ cupsSetServerCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ const char *common_name, /* I - Default common name for server */ int auto_create) /* I - 1 = automatically create self-signed certificates */ { DEBUG_printf(("cupsSetServerCredentials(path=\"%s\", common_name=\"%s\", auto_create=%d)", path, common_name, auto_create)); (void)path; (void)common_name; (void)auto_create; return (0); } /* * 'httpCopyCredentials()' - Copy the credentials associated with the peer in * an encrypted connection. */ int /* O - Status of call (0 = success) */ httpCopyCredentials( http_t *http, /* I - Connection to server */ cups_array_t **credentials) /* O - Array of credentials */ { DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials)); if (!http || !http->tls || !http->tls->remoteCert || !credentials) { if (credentials) *credentials = NULL; return (-1); } *credentials = cupsArrayNew(NULL, NULL); httpAddCredential(*credentials, http->tls->remoteCert->pbCertEncoded, http->tls->remoteCert->cbCertEncoded); return (0); } /* * '_httpCreateCredentials()' - Create credentials in the internal format. */ http_tls_credentials_t /* O - Internal credentials */ _httpCreateCredentials( cups_array_t *credentials) /* I - Array of credentials */ { return (http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials))); } /* * 'httpCredentialsAreValidForName()' - Return whether the credentials are valid for the given name. */ int /* O - 1 if valid, 0 otherwise */ httpCredentialsAreValidForName( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Name to check */ { int valid = 1; /* Valid name? */ PCCERT_CONTEXT cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials)); /* Certificate */ char cert_name[1024]; /* Name from certificate */ if (cert) { if (CertNameToStrA(X509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) { /* * Extract common name at end... */ char *ptr = strrchr(cert_name, ','); if (ptr && ptr[1]) _cups_strcpy(cert_name, ptr + 2); } else strlcpy(cert_name, "unknown", sizeof(cert_name)); CertFreeCertificateContext(cert); } else strlcpy(cert_name, "unknown", sizeof(cert_name)); /* * Compare the common names... */ if (_cups_strcasecmp(common_name, cert_name)) { /* * Not an exact match for the common name, check for wildcard certs... */ const char *domain = strchr(common_name, '.'); /* Domain in common name */ if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) { /* * Not a wildcard match. */ /* TODO: Check subject alternate names */ valid = 0; } } return (valid); } /* * 'httpCredentialsGetTrust()' - Return the trust of credentials. */ http_trust_t /* O - Level of trust */ httpCredentialsGetTrust( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for trust lookup */ { http_trust_t trust = HTTP_TRUST_OK; /* Level of trust */ PCCERT_CONTEXT cert = NULL; /* Certificate to validate */ DWORD certFlags = 0; /* Cert verification flags */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread global data */ if (!common_name) return (HTTP_TRUST_UNKNOWN); cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials)); if (!cert) return (HTTP_TRUST_UNKNOWN); if (cg->any_root < 0) _cupsSetDefaults(); if (cg->any_root) certFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA; if (cg->expired_certs) certFlags |= SECURITY_FLAG_IGNORE_CERT_DATE_INVALID; if (!cg->validate_certs) certFlags |= SECURITY_FLAG_IGNORE_CERT_CN_INVALID; if (http_sspi_verify(cert, common_name, certFlags) != SEC_E_OK) trust = HTTP_TRUST_INVALID; CertFreeCertificateContext(cert); return (trust); } /* * 'httpCredentialsGetExpiration()' - Return the expiration date of the credentials. */ time_t /* O - Expiration date of credentials */ httpCredentialsGetExpiration( cups_array_t *credentials) /* I - Credentials */ { time_t expiration_date = 0; /* Expiration data of credentials */ PCCERT_CONTEXT cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials)); /* Certificate */ if (cert) { SYSTEMTIME systime; /* System time */ struct tm tm; /* UNIX date/time */ FileTimeToSystemTime(&(cert->pCertInfo->NotAfter), &systime); tm.tm_year = systime.wYear - 1900; tm.tm_mon = systime.wMonth - 1; tm.tm_mday = systime.wDay; tm.tm_hour = systime.wHour; tm.tm_min = systime.wMinute; tm.tm_sec = systime.wSecond; expiration_date = mktime(&tm); CertFreeCertificateContext(cert); } return (expiration_date); } /* * 'httpCredentialsString()' - Return a string representing the credentials. */ size_t /* O - Total size of credentials string */ httpCredentialsString( cups_array_t *credentials, /* I - Credentials */ char *buffer, /* I - Buffer or @code NULL@ */ size_t bufsize) /* I - Size of buffer */ { http_credential_t *first = (http_credential_t *)cupsArrayFirst(credentials); /* First certificate */ PCCERT_CONTEXT cert; /* Certificate */ DEBUG_printf(("httpCredentialsString(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")", credentials, buffer, CUPS_LLCAST bufsize)); if (!buffer) return (0); if (bufsize > 0) *buffer = '\0'; cert = http_sspi_create_credential(first); if (cert) { char cert_name[256]; /* Common name */ SYSTEMTIME systime; /* System time */ struct tm tm; /* UNIX date/time */ time_t expiration; /* Expiration date of cert */ unsigned char md5_digest[16]; /* MD5 result */ FileTimeToSystemTime(&(cert->pCertInfo->NotAfter), &systime); tm.tm_year = systime.wYear - 1900; tm.tm_mon = systime.wMonth - 1; tm.tm_mday = systime.wDay; tm.tm_hour = systime.wHour; tm.tm_min = systime.wMinute; tm.tm_sec = systime.wSecond; expiration = mktime(&tm); if (CertNameToStrA(X509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) { /* * Extract common name at end... */ char *ptr = strrchr(cert_name, ','); if (ptr && ptr[1]) _cups_strcpy(cert_name, ptr + 2); } else strlcpy(cert_name, "unknown", sizeof(cert_name)); cupsHashData("md5", first->data, first->datalen, md5_digest, sizeof(md5_digest)); snprintf(buffer, bufsize, "%s / %s / %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", cert_name, httpGetDateString(expiration), md5_digest[0], md5_digest[1], md5_digest[2], md5_digest[3], md5_digest[4], md5_digest[5], md5_digest[6], md5_digest[7], md5_digest[8], md5_digest[9], md5_digest[10], md5_digest[11], md5_digest[12], md5_digest[13], md5_digest[14], md5_digest[15]); CertFreeCertificateContext(cert); } DEBUG_printf(("1httpCredentialsString: Returning \"%s\".", buffer)); return (strlen(buffer)); } /* * '_httpFreeCredentials()' - Free internal credentials. */ void _httpFreeCredentials( http_tls_credentials_t credentials) /* I - Internal credentials */ { if (!credentials) return; CertFreeCertificateContext(credentials); } /* * 'httpLoadCredentials()' - Load X.509 credentials from a keychain file. */ int /* O - 0 on success, -1 on error */ httpLoadCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ cups_array_t **credentials, /* IO - Credentials */ const char *common_name) /* I - Common name for credentials */ { HCERTSTORE store = NULL; /* Certificate store */ PCCERT_CONTEXT storedContext = NULL; /* Context created from the store */ DWORD dwSize = 0; /* 32 bit size */ PBYTE p = NULL; /* Temporary storage */ HCRYPTPROV hProv = (HCRYPTPROV)NULL; /* Handle to a CSP */ CERT_NAME_BLOB sib; /* Arbitrary array of bytes */ #ifdef DEBUG char error[1024]; /* Error message buffer */ #endif /* DEBUG */ DEBUG_printf(("httpLoadCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, credentials, common_name)); (void)path; if (credentials) { *credentials = NULL; } else { DEBUG_puts("1httpLoadCredentials: NULL credentials pointer, returning -1."); return (-1); } if (!common_name) { DEBUG_puts("1httpLoadCredentials: Bad common name, returning -1."); return (-1); } if (!CryptAcquireContextW(&hProv, L"RememberedContainer", MS_DEF_PROV_W, PROV_RSA_FULL, CRYPT_NEWKEYSET /*| CRYPT_MACHINE_KEYSET*/)) { if (GetLastError() == NTE_EXISTS) { if (!CryptAcquireContextW(&hProv, L"RememberedContainer", MS_DEF_PROV_W, PROV_RSA_FULL, 0 /*CRYPT_MACHINE_KEYSET*/)) { DEBUG_printf(("1httpLoadCredentials: CryptAcquireContext failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CryptAquireContext"); goto cleanup; } } } store = CertOpenStore(CERT_STORE_PROV_SYSTEM, X509_ASN_ENCODING|PKCS_7_ASN_ENCODING, hProv, CERT_SYSTEM_STORE_LOCAL_MACHINE | CERT_STORE_NO_CRYPT_RELEASE_FLAG | CERT_STORE_OPEN_EXISTING_FLAG, L"MY"); if (!store) { DEBUG_printf(("1httpLoadCredentials: CertOpenSystemStore failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertOpenSystemStore"); goto cleanup; } dwSize = 0; if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL)) { DEBUG_printf(("1httpLoadCredentials: CertStrToName failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertStrToName"); goto cleanup; } p = (PBYTE)malloc(dwSize); if (!p) { DEBUG_printf(("1httpLoadCredentials: malloc failed for %d bytes.", dwSize)); _cupsSetHTTPError(HTTP_STATUS_ERROR); goto cleanup; } if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL)) { DEBUG_printf(("1httpLoadCredentials: CertStrToName failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertStrToName"); goto cleanup; } sib.cbData = dwSize; sib.pbData = p; storedContext = CertFindCertificateInStore(store, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 0, CERT_FIND_SUBJECT_NAME, &sib, NULL); if (!storedContext) { DEBUG_printf(("1httpLoadCredentials: Unable to find credentials for \"%s\".", common_name)); goto cleanup; } *credentials = cupsArrayNew(NULL, NULL); httpAddCredential(*credentials, storedContext->pbCertEncoded, storedContext->cbCertEncoded); cleanup: /* * Cleanup */ if (storedContext) CertFreeCertificateContext(storedContext); if (p) free(p); if (store) CertCloseStore(store, 0); if (hProv) CryptReleaseContext(hProv, 0); DEBUG_printf(("1httpLoadCredentials: Returning %d.", *credentials ? 0 : -1)); return (*credentials ? 0 : -1); } /* * 'httpSaveCredentials()' - Save X.509 credentials to a keychain file. */ int /* O - -1 on error, 0 on success */ httpSaveCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for credentials */ { HCERTSTORE store = NULL; /* Certificate store */ PCCERT_CONTEXT storedContext = NULL; /* Context created from the store */ PCCERT_CONTEXT createdContext = NULL; /* Context created by us */ DWORD dwSize = 0; /* 32 bit size */ PBYTE p = NULL; /* Temporary storage */ HCRYPTPROV hProv = (HCRYPTPROV)NULL; /* Handle to a CSP */ CRYPT_KEY_PROV_INFO ckp; /* Handle to crypto key */ int ret = -1; /* Return value */ #ifdef DEBUG char error[1024]; /* Error message buffer */ #endif /* DEBUG */ DEBUG_printf(("httpSaveCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, credentials, common_name)); (void)path; if (!common_name) { DEBUG_puts("1httpSaveCredentials: Bad common name, returning -1."); return (-1); } createdContext = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials)); if (!createdContext) { DEBUG_puts("1httpSaveCredentials: Bad credentials, returning -1."); return (-1); } if (!CryptAcquireContextW(&hProv, L"RememberedContainer", MS_DEF_PROV_W, PROV_RSA_FULL, CRYPT_NEWKEYSET /*| CRYPT_MACHINE_KEYSET*/)) { if (GetLastError() == NTE_EXISTS) { if (!CryptAcquireContextW(&hProv, L"RememberedContainer", MS_DEF_PROV_W, PROV_RSA_FULL, 0 /*CRYPT_MACHINE_KEYSET*/)) { DEBUG_printf(("1httpSaveCredentials: CryptAcquireContext failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CryptAquireContext"); goto cleanup; } } } store = CertOpenStore(CERT_STORE_PROV_SYSTEM, X509_ASN_ENCODING|PKCS_7_ASN_ENCODING, hProv, CERT_SYSTEM_STORE_LOCAL_MACHINE | CERT_STORE_NO_CRYPT_RELEASE_FLAG | CERT_STORE_OPEN_EXISTING_FLAG, L"MY"); if (!store) { DEBUG_printf(("1httpSaveCredentials: CertOpenSystemStore failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertOpenSystemStore"); goto cleanup; } dwSize = 0; if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL)) { DEBUG_printf(("1httpSaveCredentials: CertStrToName failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertStrToName"); goto cleanup; } p = (PBYTE)malloc(dwSize); if (!p) { DEBUG_printf(("1httpSaveCredentials: malloc failed for %d bytes.", dwSize)); _cupsSetHTTPError(HTTP_STATUS_ERROR); goto cleanup; } if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL)) { DEBUG_printf(("1httpSaveCredentials: CertStrToName failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertToToName"); goto cleanup; } /* * Add the created context to the named store, and associate it with the named * container... */ if (!CertAddCertificateContextToStore(store, createdContext, CERT_STORE_ADD_REPLACE_EXISTING, &storedContext)) { DEBUG_printf(("1httpSaveCredentials: CertAddCertificateContextToStore failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertAddCertificateContextToStore"); goto cleanup; } ZeroMemory(&ckp, sizeof(ckp)); ckp.pwszContainerName = L"RememberedContainer"; ckp.pwszProvName = MS_DEF_PROV_W; ckp.dwProvType = PROV_RSA_FULL; ckp.dwFlags = 0 /*CRYPT_MACHINE_KEYSET*/; ckp.dwKeySpec = AT_KEYEXCHANGE; if (!CertSetCertificateContextProperty(storedContext, CERT_KEY_PROV_INFO_PROP_ID, 0, &ckp)) { DEBUG_printf(("1httpSaveCredentials: CertSetCertificateContextProperty failed: %s", http_sspi_strerror(error, sizeof(error), GetLastError()))); http_sspi_set_error("CertSetCertificateContextProperty"); goto cleanup; } ret = 0; cleanup: /* * Cleanup */ if (createdContext) CertFreeCertificateContext(createdContext); if (storedContext) CertFreeCertificateContext(storedContext); if (p) free(p); if (store) CertCloseStore(store, 0); if (hProv) CryptReleaseContext(hProv, 0); DEBUG_printf(("1httpSaveCredentials: Returning %d.", ret)); return (ret); } /* * '_httpTLSInitialize()' - Initialize the TLS stack. */ void _httpTLSInitialize(void) { /* * Nothing to do... */ } /* * '_httpTLSPending()' - Return the number of pending TLS-encrypted bytes. */ size_t /* O - Bytes available */ _httpTLSPending(http_t *http) /* I - HTTP connection */ { if (http->tls) { DEBUG_printf(("4_httpTLSPending: Returning %d.", http->tls->readBufferUsed + http->tls->decryptBufferUsed)); return (http->tls->readBufferUsed + http->tls->decryptBufferUsed); } else { DEBUG_puts("4_httpTLSPending: Returning 0."); return (0); } } /* * '_httpTLSRead()' - Read from a SSL/TLS connection. */ int /* O - Bytes read */ _httpTLSRead(http_t *http, /* I - HTTP connection */ char *buf, /* I - Buffer to store data */ int len) /* I - Length of buffer */ { int i; /* Looping var */ _http_sspi_t *sspi = http->tls; /* SSPI data */ SecBufferDesc message; /* Array of SecBuffer struct */ SecBuffer buffers[4] = { 0 }; /* Security package buffer */ int num = 0; /* Return value */ PSecBuffer pDataBuffer; /* Data buffer */ PSecBuffer pExtraBuffer; /* Excess data buffer */ SECURITY_STATUS scRet; /* SSPI status */ DEBUG_printf(("4_httpTLSRead(http=%p, buf=%p, len=%d)", http, buf, len)); /* * If there are bytes that have already been decrypted and have not yet been * read, return those... */ if (sspi->readBufferUsed > 0) { int bytesToCopy = min(sspi->readBufferUsed, len); /* Number of bytes to copy */ memcpy(buf, sspi->readBuffer, bytesToCopy); sspi->readBufferUsed -= bytesToCopy; if (sspi->readBufferUsed > 0) memmove(sspi->readBuffer, sspi->readBuffer + bytesToCopy, sspi->readBufferUsed); DEBUG_printf(("5_httpTLSRead: Returning %d bytes previously decrypted.", bytesToCopy)); return (bytesToCopy); } /* * Initialize security buffer structs */ message.ulVersion = SECBUFFER_VERSION; message.cBuffers = 4; message.pBuffers = buffers; do { /* * If there is not enough space in the buffer, then increase its size... */ if (sspi->decryptBufferLength <= sspi->decryptBufferUsed) { BYTE *temp; /* New buffer */ if (sspi->decryptBufferLength >= 262144) { WSASetLastError(E_OUTOFMEMORY); DEBUG_puts("5_httpTLSRead: Decryption buffer too large (>256k)"); return (-1); } if ((temp = realloc(sspi->decryptBuffer, sspi->decryptBufferLength + 4096)) == NULL) { DEBUG_printf(("5_httpTLSRead: Unable to allocate %d byte decryption buffer.", sspi->decryptBufferLength + 4096)); WSASetLastError(E_OUTOFMEMORY); return (-1); } sspi->decryptBufferLength += 4096; sspi->decryptBuffer = temp; DEBUG_printf(("5_httpTLSRead: Resized decryption buffer to %d bytes.", sspi->decryptBufferLength)); } buffers[0].pvBuffer = sspi->decryptBuffer; buffers[0].cbBuffer = (unsigned long)sspi->decryptBufferUsed; buffers[0].BufferType = SECBUFFER_DATA; buffers[1].BufferType = SECBUFFER_EMPTY; buffers[2].BufferType = SECBUFFER_EMPTY; buffers[3].BufferType = SECBUFFER_EMPTY; DEBUG_printf(("5_httpTLSRead: decryptBufferUsed=%d", sspi->decryptBufferUsed)); scRet = DecryptMessage(&sspi->context, &message, 0, NULL); if (scRet == SEC_E_INCOMPLETE_MESSAGE) { num = recv(http->fd, sspi->decryptBuffer + sspi->decryptBufferUsed, (int)(sspi->decryptBufferLength - sspi->decryptBufferUsed), 0); if (num < 0) { DEBUG_printf(("5_httpTLSRead: recv failed: %d", WSAGetLastError())); return (-1); } else if (num == 0) { DEBUG_puts("5_httpTLSRead: Server disconnected."); return (0); } DEBUG_printf(("5_httpTLSRead: Read %d bytes into decryption buffer.", num)); sspi->decryptBufferUsed += num; } } while (scRet == SEC_E_INCOMPLETE_MESSAGE); if (scRet == SEC_I_CONTEXT_EXPIRED) { http_sspi_set_error("DecryptMessage"); DEBUG_puts("5_httpTLSRead: Context expired."); WSASetLastError(WSAECONNRESET); return (-1); } else if (scRet != SEC_E_OK) { http_sspi_set_error("DecryptMessage"); DEBUG_printf(("5_httpTLSRead: DecryptMessage failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); WSASetLastError(WSASYSCALLFAILURE); return (-1); } /* * The decryption worked. Now, locate data buffer. */ pDataBuffer = NULL; pExtraBuffer = NULL; for (i = 1; i < 4; i++) { if (buffers[i].BufferType == SECBUFFER_DATA) pDataBuffer = &buffers[i]; else if (!pExtraBuffer && (buffers[i].BufferType == SECBUFFER_EXTRA)) pExtraBuffer = &buffers[i]; } /* * If a data buffer is found, then copy the decrypted bytes to the passed-in * buffer... */ if (pDataBuffer) { int bytesToCopy = min((int)pDataBuffer->cbBuffer, len); /* Number of bytes to copy into buf */ int bytesToSave = pDataBuffer->cbBuffer - bytesToCopy; /* Number of bytes to save in our read buffer */ if (bytesToCopy) memcpy(buf, pDataBuffer->pvBuffer, bytesToCopy); /* * If there are more decrypted bytes than can be copied to the passed in * buffer, then save them... */ if (bytesToSave) { if ((sspi->readBufferLength - sspi->readBufferUsed) < bytesToSave) { BYTE *temp; /* New buffer pointer */ if ((temp = realloc(sspi->readBuffer, sspi->readBufferUsed + bytesToSave)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5_httpTLSRead: Unable to allocate %d bytes.", sspi->readBufferUsed + bytesToSave)); WSASetLastError(E_OUTOFMEMORY); return (-1); } sspi->readBufferLength = sspi->readBufferUsed + bytesToSave; sspi->readBuffer = temp; } memcpy(((BYTE *)sspi->readBuffer) + sspi->readBufferUsed, ((BYTE *)pDataBuffer->pvBuffer) + bytesToCopy, bytesToSave); sspi->readBufferUsed += bytesToSave; } num = bytesToCopy; } else { DEBUG_puts("5_httpTLSRead: Unable to find data buffer."); _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, "Unable to find data buffer.", 0); WSASetLastError(WSASYSCALLFAILURE); return (-1); } /* * If the decryption process left extra bytes, then save those back in * decryptBuffer. They will be processed the next time through the loop. */ if (pExtraBuffer) { memmove(sspi->decryptBuffer, pExtraBuffer->pvBuffer, pExtraBuffer->cbBuffer); sspi->decryptBufferUsed = pExtraBuffer->cbBuffer; } else { sspi->decryptBufferUsed = 0; } return (num); } /* * '_httpTLSSetOptions()' - Set TLS protocol and cipher suite options. */ void _httpTLSSetOptions(int options, /* I - Options */ int min_version, /* I - Minimum TLS version */ int max_version) /* I - Maximum TLS version */ { if (!(options & _HTTP_TLS_SET_DEFAULT) || tls_options < 0) { tls_options = options; tls_min_version = min_version; tls_max_version = max_version; } } /* * '_httpTLSStart()' - Set up SSL/TLS support on a connection. */ int /* O - 0 on success, -1 on failure */ _httpTLSStart(http_t *http) /* I - HTTP connection */ { char hostname[256], /* Hostname */ *hostptr; /* Pointer into hostname */ DEBUG_printf(("3_httpTLSStart(http=%p)", http)); if (tls_options < 0) { DEBUG_puts("4_httpTLSStart: Setting defaults."); _cupsSetDefaults(); DEBUG_printf(("4_httpTLSStart: tls_options=%x", tls_options)); } if ((http->tls = http_sspi_alloc()) == NULL) return (-1); if (http->mode == _HTTP_MODE_CLIENT) { /* * Client: determine hostname... */ if (httpAddrLocalhost(http->hostaddr)) { strlcpy(hostname, "localhost", sizeof(hostname)); } else { /* * Otherwise make sure the hostname we have does not end in a trailing dot. */ strlcpy(hostname, http->hostname, sizeof(hostname)); if ((hostptr = hostname + strlen(hostname) - 1) >= hostname && *hostptr == '.') *hostptr = '\0'; } return (http_sspi_client(http, hostname)); } else { /* * Server: determine hostname to use... */ if (http->fields[HTTP_FIELD_HOST]) { /* * Use hostname for TLS upgrade... */ strlcpy(hostname, http->fields[HTTP_FIELD_HOST], sizeof(hostname)); } else { /* * Resolve hostname from connection address... */ http_addr_t addr; /* Connection address */ socklen_t addrlen; /* Length of address */ addrlen = sizeof(addr); if (getsockname(http->fd, (struct sockaddr *)&addr, &addrlen)) { DEBUG_printf(("4_httpTLSStart: Unable to get socket address: %s", strerror(errno))); hostname[0] = '\0'; } else if (httpAddrLocalhost(&addr)) hostname[0] = '\0'; else { httpAddrLookup(&addr, hostname, sizeof(hostname)); DEBUG_printf(("4_httpTLSStart: Resolved socket address to \"%s\".", hostname)); } } // fprintf(stderr, "_httpTLSStart: Using hostname '%s'.\n", hostname); return (http_sspi_server(http, hostname)); } } /* * '_httpTLSStop()' - Shut down SSL/TLS on a connection. */ void _httpTLSStop(http_t *http) /* I - HTTP connection */ { _http_sspi_t *sspi = http->tls; /* SSPI data */ if (sspi->contextInitialized && http->fd >= 0) { SecBufferDesc message; /* Array of SecBuffer struct */ SecBuffer buffers[1] = { 0 }; /* Security package buffer */ DWORD dwType; /* Type */ DWORD status; /* Status */ /* * Notify schannel that we are about to close the connection. */ dwType = SCHANNEL_SHUTDOWN; buffers[0].pvBuffer = &dwType; buffers[0].BufferType = SECBUFFER_TOKEN; buffers[0].cbBuffer = sizeof(dwType); message.cBuffers = 1; message.pBuffers = buffers; message.ulVersion = SECBUFFER_VERSION; status = ApplyControlToken(&sspi->context, &message); if (SUCCEEDED(status)) { PBYTE pbMessage; /* Message buffer */ DWORD cbMessage; /* Message buffer count */ DWORD cbData; /* Data count */ DWORD dwSSPIFlags; /* SSL attributes we requested */ DWORD dwSSPIOutFlags; /* SSL attributes we received */ TimeStamp tsExpiry; /* Time stamp */ dwSSPIFlags = ASC_REQ_SEQUENCE_DETECT | ASC_REQ_REPLAY_DETECT | ASC_REQ_CONFIDENTIALITY | ASC_REQ_EXTENDED_ERROR | ASC_REQ_ALLOCATE_MEMORY | ASC_REQ_STREAM; buffers[0].pvBuffer = NULL; buffers[0].BufferType = SECBUFFER_TOKEN; buffers[0].cbBuffer = 0; message.cBuffers = 1; message.pBuffers = buffers; message.ulVersion = SECBUFFER_VERSION; status = AcceptSecurityContext(&sspi->creds, &sspi->context, NULL, dwSSPIFlags, SECURITY_NATIVE_DREP, NULL, &message, &dwSSPIOutFlags, &tsExpiry); if (SUCCEEDED(status)) { pbMessage = buffers[0].pvBuffer; cbMessage = buffers[0].cbBuffer; /* * Send the close notify message to the client. */ if (pbMessage && cbMessage) { cbData = send(http->fd, pbMessage, cbMessage, 0); if ((cbData == SOCKET_ERROR) || (cbData == 0)) { status = WSAGetLastError(); DEBUG_printf(("4_httpTLSStop: sending close notify failed: %d", status)); } else { FreeContextBuffer(pbMessage); } } } else { http_sspi_set_error("AcceptSecurityContext"); DEBUG_printf(("4_httpTLSStop: AcceptSecurityContext failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), status))); } } else { http_sspi_set_error("ApplyControlToken"); DEBUG_printf(("4_httpTLSStop: ApplyControlToken failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), status))); } } http_sspi_free(sspi); http->tls = NULL; } /* * '_httpTLSWrite()' - Write to a SSL/TLS connection. */ int /* O - Bytes written */ _httpTLSWrite(http_t *http, /* I - HTTP connection */ const char *buf, /* I - Buffer holding data */ int len) /* I - Length of buffer */ { _http_sspi_t *sspi = http->tls; /* SSPI data */ SecBufferDesc message; /* Array of SecBuffer struct */ SecBuffer buffers[4] = { 0 }; /* Security package buffer */ int bufferLen; /* Buffer length */ int bytesLeft; /* Bytes left to write */ const char *bufptr; /* Pointer into buffer */ int num = 0; /* Return value */ bufferLen = sspi->streamSizes.cbMaximumMessage + sspi->streamSizes.cbHeader + sspi->streamSizes.cbTrailer; if (bufferLen > sspi->writeBufferLength) { BYTE *temp; /* New buffer pointer */ if ((temp = (BYTE *)realloc(sspi->writeBuffer, bufferLen)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5_httpTLSWrite: Unable to allocate buffer of %d bytes.", bufferLen)); WSASetLastError(E_OUTOFMEMORY); return (-1); } sspi->writeBuffer = temp; sspi->writeBufferLength = bufferLen; } bytesLeft = len; bufptr = buf; while (bytesLeft) { int chunk = min((int)sspi->streamSizes.cbMaximumMessage, bytesLeft); /* Size of data to write */ SECURITY_STATUS scRet; /* SSPI status */ /* * Copy user data into the buffer, starting just past the header... */ memcpy(sspi->writeBuffer + sspi->streamSizes.cbHeader, bufptr, chunk); /* * Setup the SSPI buffers */ message.ulVersion = SECBUFFER_VERSION; message.cBuffers = 4; message.pBuffers = buffers; buffers[0].pvBuffer = sspi->writeBuffer; buffers[0].cbBuffer = sspi->streamSizes.cbHeader; buffers[0].BufferType = SECBUFFER_STREAM_HEADER; buffers[1].pvBuffer = sspi->writeBuffer + sspi->streamSizes.cbHeader; buffers[1].cbBuffer = (unsigned long) chunk; buffers[1].BufferType = SECBUFFER_DATA; buffers[2].pvBuffer = sspi->writeBuffer + sspi->streamSizes.cbHeader + chunk; buffers[2].cbBuffer = sspi->streamSizes.cbTrailer; buffers[2].BufferType = SECBUFFER_STREAM_TRAILER; buffers[3].BufferType = SECBUFFER_EMPTY; /* * Encrypt the data */ scRet = EncryptMessage(&sspi->context, 0, &message, 0); if (FAILED(scRet)) { http_sspi_set_error("EncryptMessage"); DEBUG_printf(("5_httpTLSWrite: EncryptMessage failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); WSASetLastError(WSASYSCALLFAILURE); return (-1); } /* * Send the data. Remember the size of the total data to send is the size * of the header, the size of the data the caller passed in and the size * of the trailer... */ num = send(http->fd, sspi->writeBuffer, buffers[0].cbBuffer + buffers[1].cbBuffer + buffers[2].cbBuffer, 0); if (num <= 0) { DEBUG_printf(("5_httpTLSWrite: send failed: %ld", WSAGetLastError())); return (num); } bytesLeft -= chunk; bufptr += chunk; } return (len); } /* * 'http_sspi_alloc()' - Allocate SSPI object. */ static _http_sspi_t * /* O - New SSPI/SSL object */ http_sspi_alloc(void) { return ((_http_sspi_t *)calloc(1, sizeof(_http_sspi_t))); } /* * 'http_sspi_client()' - Negotiate a TLS connection as a client. */ static int /* O - 0 on success, -1 on failure */ http_sspi_client(http_t *http, /* I - Client connection */ const char *hostname) /* I - Server hostname */ { _http_sspi_t *sspi = http->tls; /* SSPI data */ DWORD dwSSPIFlags; /* SSL connection attributes we want */ DWORD dwSSPIOutFlags; /* SSL connection attributes we got */ TimeStamp tsExpiry; /* Time stamp */ SECURITY_STATUS scRet; /* Status */ int cbData; /* Data count */ SecBufferDesc inBuffer; /* Array of SecBuffer structs */ SecBuffer inBuffers[2]; /* Security package buffer */ SecBufferDesc outBuffer; /* Array of SecBuffer structs */ SecBuffer outBuffers[1]; /* Security package buffer */ int ret = 0; /* Return value */ DEBUG_printf(("4http_sspi_client(http=%p, hostname=\"%s\")", http, hostname)); dwSSPIFlags = ISC_REQ_SEQUENCE_DETECT | ISC_REQ_REPLAY_DETECT | ISC_REQ_CONFIDENTIALITY | ISC_RET_EXTENDED_ERROR | ISC_REQ_ALLOCATE_MEMORY | ISC_REQ_STREAM; /* * Lookup the client certificate... */ if (!http_sspi_find_credentials(http, L"ClientContainer", NULL)) { DEBUG_puts("5http_sspi_client: Unable to get client credentials."); return (-1); } /* * Initiate a ClientHello message and generate a token. */ outBuffers[0].pvBuffer = NULL; outBuffers[0].BufferType = SECBUFFER_TOKEN; outBuffers[0].cbBuffer = 0; outBuffer.cBuffers = 1; outBuffer.pBuffers = outBuffers; outBuffer.ulVersion = SECBUFFER_VERSION; scRet = InitializeSecurityContext(&sspi->creds, NULL, TEXT(""), dwSSPIFlags, 0, SECURITY_NATIVE_DREP, NULL, 0, &sspi->context, &outBuffer, &dwSSPIOutFlags, &tsExpiry); if (scRet != SEC_I_CONTINUE_NEEDED) { http_sspi_set_error("InitializeSecurityContext"); DEBUG_printf(("5http_sspi_client: InitializeSecurityContext(1) failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); return (-1); } /* * Send response to server if there is one. */ if (outBuffers[0].cbBuffer && outBuffers[0].pvBuffer) { if ((cbData = send(http->fd, outBuffers[0].pvBuffer, outBuffers[0].cbBuffer, 0)) <= 0) { DEBUG_printf(("5http_sspi_client: send failed: %d", WSAGetLastError())); FreeContextBuffer(outBuffers[0].pvBuffer); DeleteSecurityContext(&sspi->context); return (-1); } DEBUG_printf(("5http_sspi_client: %d bytes of handshake data sent.", cbData)); FreeContextBuffer(outBuffers[0].pvBuffer); outBuffers[0].pvBuffer = NULL; } dwSSPIFlags = ISC_REQ_MANUAL_CRED_VALIDATION | ISC_REQ_SEQUENCE_DETECT | ISC_REQ_REPLAY_DETECT | ISC_REQ_CONFIDENTIALITY | ISC_RET_EXTENDED_ERROR | ISC_REQ_ALLOCATE_MEMORY | ISC_REQ_STREAM; sspi->decryptBufferUsed = 0; /* * Loop until the handshake is finished or an error occurs. */ scRet = SEC_I_CONTINUE_NEEDED; while(scRet == SEC_I_CONTINUE_NEEDED || scRet == SEC_E_INCOMPLETE_MESSAGE || scRet == SEC_I_INCOMPLETE_CREDENTIALS) { if (sspi->decryptBufferUsed == 0 || scRet == SEC_E_INCOMPLETE_MESSAGE) { if (sspi->decryptBufferLength <= sspi->decryptBufferUsed) { BYTE *temp; /* New buffer */ if (sspi->decryptBufferLength >= 262144) { WSASetLastError(E_OUTOFMEMORY); DEBUG_puts("5http_sspi_client: Decryption buffer too large (>256k)"); return (-1); } if ((temp = realloc(sspi->decryptBuffer, sspi->decryptBufferLength + 4096)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5http_sspi_client: Unable to allocate %d byte buffer.", sspi->decryptBufferLength + 4096)); WSASetLastError(E_OUTOFMEMORY); return (-1); } sspi->decryptBufferLength += 4096; sspi->decryptBuffer = temp; } cbData = recv(http->fd, sspi->decryptBuffer + sspi->decryptBufferUsed, (int)(sspi->decryptBufferLength - sspi->decryptBufferUsed), 0); if (cbData < 0) { DEBUG_printf(("5http_sspi_client: recv failed: %d", WSAGetLastError())); return (-1); } else if (cbData == 0) { DEBUG_printf(("5http_sspi_client: Server unexpectedly disconnected.")); return (-1); } DEBUG_printf(("5http_sspi_client: %d bytes of handshake data received", cbData)); sspi->decryptBufferUsed += cbData; } /* * Set up the input buffers. Buffer 0 is used to pass in data received from * the server. Schannel will consume some or all of this. Leftover data * (if any) will be placed in buffer 1 and given a buffer type of * SECBUFFER_EXTRA. */ inBuffers[0].pvBuffer = sspi->decryptBuffer; inBuffers[0].cbBuffer = (unsigned long)sspi->decryptBufferUsed; inBuffers[0].BufferType = SECBUFFER_TOKEN; inBuffers[1].pvBuffer = NULL; inBuffers[1].cbBuffer = 0; inBuffers[1].BufferType = SECBUFFER_EMPTY; inBuffer.cBuffers = 2; inBuffer.pBuffers = inBuffers; inBuffer.ulVersion = SECBUFFER_VERSION; /* * Set up the output buffers. These are initialized to NULL so as to make it * less likely we'll attempt to free random garbage later. */ outBuffers[0].pvBuffer = NULL; outBuffers[0].BufferType = SECBUFFER_TOKEN; outBuffers[0].cbBuffer = 0; outBuffer.cBuffers = 1; outBuffer.pBuffers = outBuffers; outBuffer.ulVersion = SECBUFFER_VERSION; /* * Call InitializeSecurityContext. */ scRet = InitializeSecurityContext(&sspi->creds, &sspi->context, NULL, dwSSPIFlags, 0, SECURITY_NATIVE_DREP, &inBuffer, 0, NULL, &outBuffer, &dwSSPIOutFlags, &tsExpiry); /* * If InitializeSecurityContext was successful (or if the error was one of * the special extended ones), send the contents of the output buffer to the * server. */ if (scRet == SEC_E_OK || scRet == SEC_I_CONTINUE_NEEDED || FAILED(scRet) && (dwSSPIOutFlags & ISC_RET_EXTENDED_ERROR)) { if (outBuffers[0].cbBuffer && outBuffers[0].pvBuffer) { cbData = send(http->fd, outBuffers[0].pvBuffer, outBuffers[0].cbBuffer, 0); if (cbData <= 0) { DEBUG_printf(("5http_sspi_client: send failed: %d", WSAGetLastError())); FreeContextBuffer(outBuffers[0].pvBuffer); DeleteSecurityContext(&sspi->context); return (-1); } DEBUG_printf(("5http_sspi_client: %d bytes of handshake data sent.", cbData)); /* * Free output buffer. */ FreeContextBuffer(outBuffers[0].pvBuffer); outBuffers[0].pvBuffer = NULL; } } /* * If InitializeSecurityContext returned SEC_E_INCOMPLETE_MESSAGE, then we * need to read more data from the server and try again. */ if (scRet == SEC_E_INCOMPLETE_MESSAGE) continue; /* * If InitializeSecurityContext returned SEC_E_OK, then the handshake * completed successfully. */ if (scRet == SEC_E_OK) { /* * If the "extra" buffer contains data, this is encrypted application * protocol layer stuff. It needs to be saved. The application layer will * later decrypt it with DecryptMessage. */ DEBUG_puts("5http_sspi_client: Handshake was successful."); if (inBuffers[1].BufferType == SECBUFFER_EXTRA) { memmove(sspi->decryptBuffer, sspi->decryptBuffer + sspi->decryptBufferUsed - inBuffers[1].cbBuffer, inBuffers[1].cbBuffer); sspi->decryptBufferUsed = inBuffers[1].cbBuffer; DEBUG_printf(("5http_sspi_client: %d bytes of app data was bundled with handshake data", sspi->decryptBufferUsed)); } else sspi->decryptBufferUsed = 0; /* * Bail out to quit */ break; } /* * Check for fatal error. */ if (FAILED(scRet)) { http_sspi_set_error("InitializeSecurityContext"); DEBUG_printf(("5http_sspi_client: InitializeSecurityContext(2) failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); ret = -1; break; } /* * If InitializeSecurityContext returned SEC_I_INCOMPLETE_CREDENTIALS, * then the server just requested client authentication. */ if (scRet == SEC_I_INCOMPLETE_CREDENTIALS) { /* * Unimplemented */ _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, "Need client credentials.", 0); DEBUG_printf(("5http_sspi_client: server requested client credentials.")); ret = -1; break; } /* * Copy any leftover data from the "extra" buffer, and go around again. */ if (inBuffers[1].BufferType == SECBUFFER_EXTRA) { memmove(sspi->decryptBuffer, sspi->decryptBuffer + sspi->decryptBufferUsed - inBuffers[1].cbBuffer, inBuffers[1].cbBuffer); sspi->decryptBufferUsed = inBuffers[1].cbBuffer; } else { sspi->decryptBufferUsed = 0; } } if (!ret) { /* * Success! Get the server cert */ sspi->contextInitialized = TRUE; scRet = QueryContextAttributes(&sspi->context, SECPKG_ATTR_REMOTE_CERT_CONTEXT, (VOID *)&(sspi->remoteCert)); if (scRet != SEC_E_OK) { http_sspi_set_error("QueryContextAttributes"); DEBUG_printf(("5http_sspi_client: QueryContextAttributes failed(SECPKG_ATTR_REMOTE_CERT_CONTEXT): %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); return (-1); } /* * Find out how big the header/trailer will be: */ scRet = QueryContextAttributes(&sspi->context, SECPKG_ATTR_STREAM_SIZES, &sspi->streamSizes); if (scRet != SEC_E_OK) { http_sspi_set_error("QueryContextAttributes"); DEBUG_printf(("5http_sspi_client: QueryContextAttributes failed(SECPKG_ATTR_STREAM_SIZES): %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); ret = -1; } } return (ret); } /* * 'http_sspi_create_credential()' - Create an SSPI certificate context. */ static PCCERT_CONTEXT /* O - Certificate context */ http_sspi_create_credential( http_credential_t *cred) /* I - Credential */ { if (cred) return (CertCreateCertificateContext(X509_ASN_ENCODING, cred->data, (DWORD)cred->datalen)); else return (NULL); } /* * 'http_sspi_find_credentials()' - Retrieve a TLS certificate from the system store. */ static BOOL /* O - 1 on success, 0 on failure */ http_sspi_find_credentials( http_t *http, /* I - HTTP connection */ const LPWSTR container, /* I - Cert container name */ const char *common_name) /* I - Common name of certificate */ { _http_sspi_t *sspi = http->tls; /* SSPI data */ HCERTSTORE store = NULL; /* Certificate store */ PCCERT_CONTEXT storedContext = NULL; /* Context created from the store */ DWORD dwSize = 0; /* 32 bit size */ PBYTE p = NULL; /* Temporary storage */ HCRYPTPROV hProv = (HCRYPTPROV)NULL; /* Handle to a CSP */ CERT_NAME_BLOB sib; /* Arbitrary array of bytes */ SCHANNEL_CRED SchannelCred; /* Schannel credential data */ TimeStamp tsExpiry; /* Time stamp */ SECURITY_STATUS Status; /* Status */ BOOL ok = TRUE; /* Return value */ if (!CryptAcquireContextW(&hProv, (LPWSTR)container, MS_DEF_PROV_W, PROV_RSA_FULL, CRYPT_NEWKEYSET /*| CRYPT_MACHINE_KEYSET*/)) { if (GetLastError() == NTE_EXISTS) { if (!CryptAcquireContextW(&hProv, (LPWSTR)container, MS_DEF_PROV_W, PROV_RSA_FULL, 0 /*CRYPT_MACHINE_KEYSET*/)) { http_sspi_set_error("CryptAquireContext"); DEBUG_printf(("5http_sspi_find_credentials: CryptAcquireContext failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } } } store = CertOpenStore(CERT_STORE_PROV_SYSTEM, X509_ASN_ENCODING|PKCS_7_ASN_ENCODING, hProv, CERT_SYSTEM_STORE_CURRENT_USER | CERT_STORE_NO_CRYPT_RELEASE_FLAG | CERT_STORE_OPEN_EXISTING_FLAG, L"MY"); if (!store) { http_sspi_set_error("CertOpenSystemStore"); DEBUG_printf(("5http_sspi_find_credentials: CertOpenSystemStore failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } if (common_name) { dwSize = 0; if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL)) { http_sspi_set_error("CertStrToName"); DEBUG_printf(("5http_sspi_find_credentials: CertStrToName failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } p = (PBYTE)malloc(dwSize); if (!p) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5http_sspi_find_credentials: malloc failed for %d bytes.", dwSize)); ok = FALSE; goto cleanup; } if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL)) { http_sspi_set_error("CertStrToName"); DEBUG_printf(("5http_sspi_find_credentials: CertStrToName failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } sib.cbData = dwSize; sib.pbData = p; storedContext = CertFindCertificateInStore(store, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 0, CERT_FIND_SUBJECT_NAME, &sib, NULL); if (!storedContext) { http_sspi_set_error("CertFindCertificateInStore"); DEBUG_printf(("5http_sspi_find_credentials: Unable to find credentials for \"%s\".", common_name)); ok = FALSE; goto cleanup; } } ZeroMemory(&SchannelCred, sizeof(SchannelCred)); SchannelCred.dwVersion = SCHANNEL_CRED_VERSION; if (common_name) { SchannelCred.cCreds = 1; SchannelCred.paCred = &storedContext; } /* * Set supported protocols (can also be overridden in the registry...) */ #ifdef SP_PROT_TLS1_2_SERVER if (http->mode == _HTTP_MODE_SERVER) { if (tls_min_version > _HTTP_TLS_1_1) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER; else if (tls_min_version > _HTTP_TLS_1_0) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER; else if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER | SP_PROT_TLS1_0_SERVER | SP_PROT_SSL3_SERVER; else SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_SERVER | SP_PROT_TLS1_1_SERVER | SP_PROT_TLS1_0_SERVER; } else { if (tls_min_version > _HTTP_TLS_1_1) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT; else if (tls_min_version > _HTTP_TLS_1_0) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT; else if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT | SP_PROT_TLS1_0_CLIENT | SP_PROT_SSL3_CLIENT; else SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_2_CLIENT | SP_PROT_TLS1_1_CLIENT | SP_PROT_TLS1_0_CLIENT; } #else if (http->mode == _HTTP_MODE_SERVER) { if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_SERVER | SP_PROT_SSL3_SERVER; else SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_SERVER; } else { if (tls_min_version == _HTTP_TLS_SSL3) SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_CLIENT | SP_PROT_SSL3_CLIENT; else SchannelCred.grbitEnabledProtocols = SP_PROT_TLS1_CLIENT; } #endif /* SP_PROT_TLS1_2_SERVER */ /* TODO: Support _HTTP_TLS_ALLOW_RC4, _HTTP_TLS_ALLOW_DH, and _HTTP_TLS_DENY_CBC options; right now we'll rely on Windows registry to enable/disable RC4/DH/CBC... */ /* * Create an SSPI credential. */ Status = AcquireCredentialsHandle(NULL, UNISP_NAME, http->mode == _HTTP_MODE_SERVER ? SECPKG_CRED_INBOUND : SECPKG_CRED_OUTBOUND, NULL, &SchannelCred, NULL, NULL, &sspi->creds, &tsExpiry); if (Status != SEC_E_OK) { http_sspi_set_error("AcquireCredentialsHandle"); DEBUG_printf(("5http_sspi_find_credentials: AcquireCredentialsHandle failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), Status))); ok = FALSE; goto cleanup; } cleanup: /* * Cleanup */ if (storedContext) CertFreeCertificateContext(storedContext); if (p) free(p); if (store) CertCloseStore(store, 0); if (hProv) CryptReleaseContext(hProv, 0); return (ok); } /* * 'http_sspi_free()' - Close a connection and free resources. */ static void http_sspi_free(_http_sspi_t *sspi) /* I - SSPI data */ { if (!sspi) return; if (sspi->contextInitialized) DeleteSecurityContext(&sspi->context); if (sspi->decryptBuffer) free(sspi->decryptBuffer); if (sspi->readBuffer) free(sspi->readBuffer); if (sspi->writeBuffer) free(sspi->writeBuffer); if (sspi->localCert) CertFreeCertificateContext(sspi->localCert); if (sspi->remoteCert) CertFreeCertificateContext(sspi->remoteCert); free(sspi); } /* * 'http_sspi_make_credentials()' - Create a TLS certificate in the system store. */ static BOOL /* O - 1 on success, 0 on failure */ http_sspi_make_credentials( _http_sspi_t *sspi, /* I - SSPI data */ const LPWSTR container, /* I - Cert container name */ const char *common_name, /* I - Common name of certificate */ _http_mode_t mode, /* I - Client or server? */ int years) /* I - Years until expiration */ { HCERTSTORE store = NULL; /* Certificate store */ PCCERT_CONTEXT storedContext = NULL; /* Context created from the store */ PCCERT_CONTEXT createdContext = NULL; /* Context created by us */ DWORD dwSize = 0; /* 32 bit size */ PBYTE p = NULL; /* Temporary storage */ HCRYPTPROV hProv = (HCRYPTPROV)NULL; /* Handle to a CSP */ CERT_NAME_BLOB sib; /* Arbitrary array of bytes */ SCHANNEL_CRED SchannelCred; /* Schannel credential data */ TimeStamp tsExpiry; /* Time stamp */ SECURITY_STATUS Status; /* Status */ HCRYPTKEY hKey = (HCRYPTKEY)NULL; /* Handle to crypto key */ CRYPT_KEY_PROV_INFO kpi; /* Key container info */ SYSTEMTIME et; /* System time */ CERT_EXTENSIONS exts; /* Array of cert extensions */ CRYPT_KEY_PROV_INFO ckp; /* Handle to crypto key */ BOOL ok = TRUE; /* Return value */ DEBUG_printf(("4http_sspi_make_credentials(sspi=%p, container=%p, common_name=\"%s\", mode=%d, years=%d)", sspi, container, common_name, mode, years)); if (!CryptAcquireContextW(&hProv, (LPWSTR)container, MS_DEF_PROV_W, PROV_RSA_FULL, CRYPT_NEWKEYSET /* | CRYPT_MACHINE_KEYSET*/)) { if (GetLastError() == NTE_EXISTS) { if (!CryptAcquireContextW(&hProv, (LPWSTR)container, MS_DEF_PROV_W, PROV_RSA_FULL, 0 /*CRYPT_MACHINE_KEYSET*/)) { http_sspi_set_error("CryptAquireContext"); DEBUG_printf(("5http_sspi_make_credentials: CryptAcquireContext failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CryptAcquireContext failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } } } store = CertOpenStore(CERT_STORE_PROV_SYSTEM, X509_ASN_ENCODING|PKCS_7_ASN_ENCODING, hProv, CERT_SYSTEM_STORE_CURRENT_USER | CERT_STORE_NO_CRYPT_RELEASE_FLAG | CERT_STORE_OPEN_EXISTING_FLAG, L"MY"); if (!store) { http_sspi_set_error("CertOpenSystemStore"); DEBUG_printf(("5http_sspi_make_credentials: CertOpenSystemStore failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CertOpenSystemStore failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } dwSize = 0; if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, NULL, &dwSize, NULL)) { http_sspi_set_error("CertStrToName"); DEBUG_printf(("5http_sspi_make_credentials: CertStrToName failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CertStrToName failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } p = (PBYTE)malloc(dwSize); if (!p) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5http_sspi_make_credentials: malloc failed for %d bytes", dwSize)); // fprintf(stderr, "5http_sspi_make_credentials: malloc failed for %d bytes\n", dwSize); ok = FALSE; goto cleanup; } if (!CertStrToNameA(X509_ASN_ENCODING, common_name, CERT_OID_NAME_STR, NULL, p, &dwSize, NULL)) { http_sspi_set_error("CertStrToName"); DEBUG_printf(("5http_sspi_make_credentials: CertStrToName failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CertStrToName failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } sib.cbData = dwSize; sib.pbData = p; /* * Create a private key and self-signed certificate... */ if (!CryptGenKey(hProv, AT_KEYEXCHANGE, CRYPT_EXPORTABLE | RSA1024BIT_KEY, &hKey)) { http_sspi_set_error("CryptGenKey"); DEBUG_printf(("5http_sspi_make_credentials: CryptGenKey failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CryptGenKey failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } ZeroMemory(&kpi, sizeof(kpi)); kpi.pwszContainerName = (LPWSTR)container; kpi.pwszProvName = MS_DEF_PROV_W; kpi.dwProvType = PROV_RSA_FULL; kpi.dwFlags = CERT_SET_KEY_CONTEXT_PROP_ID; kpi.dwKeySpec = AT_KEYEXCHANGE; GetSystemTime(&et); et.wYear += years; if (et.wMonth == 2 && et.wDay == 29) et.wDay = 28; /* Avoid Feb 29th due to leap years */ ZeroMemory(&exts, sizeof(exts)); createdContext = CertCreateSelfSignCertificate(hProv, &sib, 0, &kpi, NULL, NULL, &et, &exts); if (!createdContext) { http_sspi_set_error("CertCreateSelfSignCertificate"); DEBUG_printf(("5http_sspi_make_credentials: CertCreateSelfSignCertificate failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); // fprintf(stderr, "5http_sspi_make_credentials: CertCreateSelfSignCertificate failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError())); ok = FALSE; goto cleanup; } /* * Add the created context to the named store, and associate it with the named * container... */ if (!CertAddCertificateContextToStore(store, createdContext, CERT_STORE_ADD_REPLACE_EXISTING, &storedContext)) { http_sspi_set_error("CertAddCertificateContextToStore"); DEBUG_printf(("5http_sspi_make_credentials: CertAddCertificateContextToStore failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } ZeroMemory(&ckp, sizeof(ckp)); ckp.pwszContainerName = (LPWSTR) container; ckp.pwszProvName = MS_DEF_PROV_W; ckp.dwProvType = PROV_RSA_FULL; ckp.dwFlags = 0 /*CRYPT_MACHINE_KEYSET*/; ckp.dwKeySpec = AT_KEYEXCHANGE; if (!CertSetCertificateContextProperty(storedContext, CERT_KEY_PROV_INFO_PROP_ID, 0, &ckp)) { http_sspi_set_error("CertSetCertificateContextProperty"); DEBUG_printf(("5http_sspi_make_credentials: CertSetCertificateContextProperty failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), GetLastError()))); ok = FALSE; goto cleanup; } /* * Get a handle to use the certificate... */ ZeroMemory(&SchannelCred, sizeof(SchannelCred)); SchannelCred.dwVersion = SCHANNEL_CRED_VERSION; SchannelCred.cCreds = 1; SchannelCred.paCred = &storedContext; /* * Create an SSPI credential. */ Status = AcquireCredentialsHandle(NULL, UNISP_NAME, mode == _HTTP_MODE_SERVER ? SECPKG_CRED_INBOUND : SECPKG_CRED_OUTBOUND, NULL, &SchannelCred, NULL, NULL, &sspi->creds, &tsExpiry); if (Status != SEC_E_OK) { http_sspi_set_error("AcquireCredentialsHandle"); DEBUG_printf(("5http_sspi_make_credentials: AcquireCredentialsHandle failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), Status))); // fprintf(stderr, "5http_sspi_make_credentials: AcquireCredentialsHandle failed: %s\n", http_sspi_strerror(sspi->error, sizeof(sspi->error), Status)); ok = FALSE; goto cleanup; } cleanup: /* * Cleanup */ if (hKey) CryptDestroyKey(hKey); if (createdContext) CertFreeCertificateContext(createdContext); if (storedContext) CertFreeCertificateContext(storedContext); if (p) free(p); if (store) CertCloseStore(store, 0); if (hProv) CryptReleaseContext(hProv, 0); return (ok); } /* * 'http_sspi_server()' - Negotiate a TLS connection as a server. */ static int /* O - 0 on success, -1 on failure */ http_sspi_server(http_t *http, /* I - HTTP connection */ const char *hostname) /* I - Hostname of server */ { _http_sspi_t *sspi = http->tls; /* SSPI data */ char common_name[512]; /* Common name for cert */ DWORD dwSSPIFlags; /* SSL connection attributes we want */ DWORD dwSSPIOutFlags; /* SSL connection attributes we got */ TimeStamp tsExpiry; /* Time stamp */ SECURITY_STATUS scRet; /* SSPI Status */ SecBufferDesc inBuffer; /* Array of SecBuffer structs */ SecBuffer inBuffers[2]; /* Security package buffer */ SecBufferDesc outBuffer; /* Array of SecBuffer structs */ SecBuffer outBuffers[1]; /* Security package buffer */ int num = 0; /* 32 bit status value */ BOOL fInitContext = TRUE; /* Has the context been init'd? */ int ret = 0; /* Return value */ DEBUG_printf(("4http_sspi_server(http=%p, hostname=\"%s\")", http, hostname)); dwSSPIFlags = ASC_REQ_SEQUENCE_DETECT | ASC_REQ_REPLAY_DETECT | ASC_REQ_CONFIDENTIALITY | ASC_REQ_EXTENDED_ERROR | ASC_REQ_ALLOCATE_MEMORY | ASC_REQ_STREAM; sspi->decryptBufferUsed = 0; /* * Lookup the server certificate... */ snprintf(common_name, sizeof(common_name), "CN=%s", hostname); if (!http_sspi_find_credentials(http, L"ServerContainer", common_name)) if (!http_sspi_make_credentials(http->tls, L"ServerContainer", common_name, _HTTP_MODE_SERVER, 10)) { DEBUG_puts("5http_sspi_server: Unable to get server credentials."); return (-1); } /* * Set OutBuffer for AcceptSecurityContext call */ outBuffer.cBuffers = 1; outBuffer.pBuffers = outBuffers; outBuffer.ulVersion = SECBUFFER_VERSION; scRet = SEC_I_CONTINUE_NEEDED; while (scRet == SEC_I_CONTINUE_NEEDED || scRet == SEC_E_INCOMPLETE_MESSAGE || scRet == SEC_I_INCOMPLETE_CREDENTIALS) { if (sspi->decryptBufferUsed == 0 || scRet == SEC_E_INCOMPLETE_MESSAGE) { if (sspi->decryptBufferLength <= sspi->decryptBufferUsed) { BYTE *temp; /* New buffer */ if (sspi->decryptBufferLength >= 262144) { WSASetLastError(E_OUTOFMEMORY); DEBUG_puts("5http_sspi_server: Decryption buffer too large (>256k)"); return (-1); } if ((temp = realloc(sspi->decryptBuffer, sspi->decryptBufferLength + 4096)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_printf(("5http_sspi_server: Unable to allocate %d byte buffer.", sspi->decryptBufferLength + 4096)); WSASetLastError(E_OUTOFMEMORY); return (-1); } sspi->decryptBufferLength += 4096; sspi->decryptBuffer = temp; } for (;;) { num = recv(http->fd, sspi->decryptBuffer + sspi->decryptBufferUsed, (int)(sspi->decryptBufferLength - sspi->decryptBufferUsed), 0); if (num == -1 && WSAGetLastError() == WSAEWOULDBLOCK) Sleep(1); else break; } if (num < 0) { DEBUG_printf(("5http_sspi_server: recv failed: %d", WSAGetLastError())); return (-1); } else if (num == 0) { DEBUG_puts("5http_sspi_server: client disconnected"); return (-1); } DEBUG_printf(("5http_sspi_server: received %d (handshake) bytes from client.", num)); sspi->decryptBufferUsed += num; } /* * InBuffers[1] is for getting extra data that SSPI/SCHANNEL doesn't process * on this run around the loop. */ inBuffers[0].pvBuffer = sspi->decryptBuffer; inBuffers[0].cbBuffer = (unsigned long)sspi->decryptBufferUsed; inBuffers[0].BufferType = SECBUFFER_TOKEN; inBuffers[1].pvBuffer = NULL; inBuffers[1].cbBuffer = 0; inBuffers[1].BufferType = SECBUFFER_EMPTY; inBuffer.cBuffers = 2; inBuffer.pBuffers = inBuffers; inBuffer.ulVersion = SECBUFFER_VERSION; /* * Initialize these so if we fail, pvBuffer contains NULL, so we don't try to * free random garbage at the quit. */ outBuffers[0].pvBuffer = NULL; outBuffers[0].BufferType = SECBUFFER_TOKEN; outBuffers[0].cbBuffer = 0; scRet = AcceptSecurityContext(&sspi->creds, (fInitContext?NULL:&sspi->context), &inBuffer, dwSSPIFlags, SECURITY_NATIVE_DREP, (fInitContext?&sspi->context:NULL), &outBuffer, &dwSSPIOutFlags, &tsExpiry); fInitContext = FALSE; if (scRet == SEC_E_OK || scRet == SEC_I_CONTINUE_NEEDED || (FAILED(scRet) && ((dwSSPIOutFlags & ISC_RET_EXTENDED_ERROR) != 0))) { if (outBuffers[0].cbBuffer && outBuffers[0].pvBuffer) { /* * Send response to server if there is one. */ num = send(http->fd, outBuffers[0].pvBuffer, outBuffers[0].cbBuffer, 0); if (num <= 0) { DEBUG_printf(("5http_sspi_server: handshake send failed: %d", WSAGetLastError())); return (-1); } DEBUG_printf(("5http_sspi_server: sent %d handshake bytes to client.", outBuffers[0].cbBuffer)); FreeContextBuffer(outBuffers[0].pvBuffer); outBuffers[0].pvBuffer = NULL; } } if (scRet == SEC_E_OK) { /* * If there's extra data then save it for next time we go to decrypt. */ if (inBuffers[1].BufferType == SECBUFFER_EXTRA) { memcpy(sspi->decryptBuffer, (LPBYTE)(sspi->decryptBuffer + sspi->decryptBufferUsed - inBuffers[1].cbBuffer), inBuffers[1].cbBuffer); sspi->decryptBufferUsed = inBuffers[1].cbBuffer; } else { sspi->decryptBufferUsed = 0; } break; } else if (FAILED(scRet) && scRet != SEC_E_INCOMPLETE_MESSAGE) { http_sspi_set_error("AcceptSecurityContext"); DEBUG_printf(("5http_sspi_server: AcceptSecurityContext failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); ret = -1; break; } if (scRet != SEC_E_INCOMPLETE_MESSAGE && scRet != SEC_I_INCOMPLETE_CREDENTIALS) { if (inBuffers[1].BufferType == SECBUFFER_EXTRA) { memcpy(sspi->decryptBuffer, (LPBYTE)(sspi->decryptBuffer + sspi->decryptBufferUsed - inBuffers[1].cbBuffer), inBuffers[1].cbBuffer); sspi->decryptBufferUsed = inBuffers[1].cbBuffer; } else { sspi->decryptBufferUsed = 0; } } } if (!ret) { sspi->contextInitialized = TRUE; /* * Find out how big the header will be: */ scRet = QueryContextAttributes(&sspi->context, SECPKG_ATTR_STREAM_SIZES, &sspi->streamSizes); if (scRet != SEC_E_OK) { http_sspi_set_error("QueryContextAttributes"); DEBUG_printf(("5http_sspi_server: QueryContextAttributes failed: %s", http_sspi_strerror(sspi->error, sizeof(sspi->error), scRet))); ret = -1; } } return (ret); } // // 'http_sspi_set_error()' - Copy the Windows error string to the CUPS error string. // static void http_sspi_set_error(const char *title) // I - Prefix/title for error { char temp[8192]; // Error string size_t templen; // Length of prefix snprintf(temp, sizeof(temp), "%s (%08x): ", title, GetLastError()); templen = strlen(temp); http_sspi_strerror(temp + templen, sizeof(temp) - templen, GetLastError()); _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, temp, 0); } /* * 'http_sspi_strerror()' - Return a string for the specified error code. */ static const char * /* O - String for error */ http_sspi_strerror(char *buffer, /* I - Error message buffer */ size_t bufsize, /* I - Size of buffer */ DWORD code) /* I - Error code */ { if (FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, code, 0, buffer, (DWORD)bufsize, NULL)) { /* * Strip trailing CR + LF... */ char *ptr; /* Pointer into error message */ for (ptr = buffer + strlen(buffer) - 1; ptr >= buffer; ptr --) if (*ptr == '\n' || *ptr == '\r') *ptr = '\0'; else break; } else snprintf(buffer, bufsize, "Unknown error %x", code); return (buffer); } /* * 'http_sspi_verify()' - Verify a certificate. */ static DWORD /* O - Error code (0 == No error) */ http_sspi_verify( PCCERT_CONTEXT cert, /* I - Server certificate */ const char *common_name, /* I - Common name */ DWORD dwCertFlags) /* I - Verification flags */ { HTTPSPolicyCallbackData httpsPolicy; /* HTTPS Policy Struct */ CERT_CHAIN_POLICY_PARA policyPara; /* Cert chain policy parameters */ CERT_CHAIN_POLICY_STATUS policyStatus;/* Cert chain policy status */ CERT_CHAIN_PARA chainPara; /* Used for searching and matching criteria */ PCCERT_CHAIN_CONTEXT chainContext = NULL; /* Certificate chain */ PWSTR commonNameUnicode = NULL; /* Unicode common name */ LPSTR rgszUsages[] = { szOID_PKIX_KP_SERVER_AUTH, szOID_SERVER_GATED_CRYPTO, szOID_SGC_NETSCAPE }; /* How are we using this certificate? */ DWORD cUsages = sizeof(rgszUsages) / sizeof(LPSTR); /* Number of ites in rgszUsages */ DWORD count; /* 32 bit count variable */ DWORD status; /* Return value */ #ifdef DEBUG char error[1024]; /* Error message string */ #endif /* DEBUG */ if (!cert) return (SEC_E_WRONG_PRINCIPAL); /* * Convert common name to Unicode. */ if (!common_name || !*common_name) return (SEC_E_WRONG_PRINCIPAL); count = MultiByteToWideChar(CP_ACP, 0, common_name, -1, NULL, 0); commonNameUnicode = LocalAlloc(LMEM_FIXED, count * sizeof(WCHAR)); if (!commonNameUnicode) return (SEC_E_INSUFFICIENT_MEMORY); if (!MultiByteToWideChar(CP_ACP, 0, common_name, -1, commonNameUnicode, count)) { LocalFree(commonNameUnicode); return (SEC_E_WRONG_PRINCIPAL); } /* * Build certificate chain. */ ZeroMemory(&chainPara, sizeof(chainPara)); chainPara.cbSize = sizeof(chainPara); chainPara.RequestedUsage.dwType = USAGE_MATCH_TYPE_OR; chainPara.RequestedUsage.Usage.cUsageIdentifier = cUsages; chainPara.RequestedUsage.Usage.rgpszUsageIdentifier = rgszUsages; if (!CertGetCertificateChain(NULL, cert, NULL, cert->hCertStore, &chainPara, 0, NULL, &chainContext)) { status = GetLastError(); http_sspi_set_error("CertGetCertificateChain"); DEBUG_printf(("5http_sspi_verify: CertGetCertificateChain returned: %s", http_sspi_strerror(error, sizeof(error), status))); LocalFree(commonNameUnicode); return (status); } /* * Validate certificate chain. */ ZeroMemory(&httpsPolicy, sizeof(HTTPSPolicyCallbackData)); httpsPolicy.cbStruct = sizeof(HTTPSPolicyCallbackData); httpsPolicy.dwAuthType = AUTHTYPE_SERVER; httpsPolicy.fdwChecks = dwCertFlags; httpsPolicy.pwszServerName = commonNameUnicode; memset(&policyPara, 0, sizeof(policyPara)); policyPara.cbSize = sizeof(policyPara); policyPara.pvExtraPolicyPara = &httpsPolicy; memset(&policyStatus, 0, sizeof(policyStatus)); policyStatus.cbSize = sizeof(policyStatus); if (!CertVerifyCertificateChainPolicy(CERT_CHAIN_POLICY_SSL, chainContext, &policyPara, &policyStatus)) { status = GetLastError(); http_sspi_set_error("CertVerifyCertificateChainPolicy"); DEBUG_printf(("5http_sspi_verify: CertVerifyCertificateChainPolicy returned %s", http_sspi_strerror(error, sizeof(error), status))); } else if (policyStatus.dwError) status = policyStatus.dwError; else status = SEC_E_OK; if (chainContext) CertFreeCertificateChain(chainContext); if (commonNameUnicode) LocalFree(commonNameUnicode); return (status); } cups-2.4.7/cups/tls-openssl.c0000644000175000017500000012542314502571342015771 0ustar zdohnalzdohnal/* * TLS support code for CUPS using OpenSSL/LibreSSL. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /**** This file is included from tls.c ****/ /* * Include necessary headers... */ #include #include /* * Local functions... */ static long http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2); static int http_bio_free(BIO *data); static int http_bio_new(BIO *h); static int http_bio_puts(BIO *h, const char *str); static int http_bio_read(BIO *h, char *buf, int size); static int http_bio_write(BIO *h, const char *buf, int num); static X509 *http_create_credential(http_credential_t *credential); static const char *http_default_path(char *buffer, size_t bufsize); static time_t http_get_date(X509 *cert, int which); //static void http_load_crl(void); static const char *http_make_path(char *buffer, size_t bufsize, const char *dirname, const char *filename, const char *ext); static int http_x509_add_ext(X509 *cert, int nid, const char *value); static void http_x509_add_san(GENERAL_NAMES *gens, const char *name); /* * Local globals... */ static int tls_auto_create = 0; /* Auto-create self-signed certs? */ static BIO_METHOD *tls_bio_method = NULL; /* OpenSSL BIO method */ static char *tls_common_name = NULL; /* Default common name */ //static X509_CRL *tls_crl = NULL;/* Certificate revocation list */ static char *tls_keypath = NULL; /* Server cert keychain path */ static _cups_mutex_t tls_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for keychain/certs */ static int tls_options = -1,/* Options for TLS connections */ tls_min_version = _HTTP_TLS_1_0, tls_max_version = _HTTP_TLS_MAX; /* * 'cupsMakeServerCredentials()' - Make a self-signed certificate and private key pair. * * @since CUPS 2.0/OS 10.10@ */ int // O - 1 on success, 0 on failure cupsMakeServerCredentials( const char *path, // I - Path to keychain/directory const char *common_name, // I - Common name int num_alt_names, // I - Number of subject alternate names const char **alt_names, // I - Subject Alternate Names time_t expiration_date) // I - Expiration date { int result = 0; // Return value EVP_PKEY *pkey; // Private key RSA *rsa; // RSA key pair X509 *cert; // Certificate cups_lang_t *language; // Default language info time_t curtime; // Current time X509_NAME *name; // Subject/issuer name ASN1_INTEGER *serial; // Serial number ASN1_TIME *notBefore, // Initial date *notAfter; // Expiration date BIO *bio; // Output file char temp[1024], // Temporary directory name crtfile[1024], // Certificate filename keyfile[1024]; // Private key filename const char *common_ptr; // Pointer into common name GENERAL_NAMES *gens; // Names for SubjectAltName certificate extension DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, alt_names, (int)expiration_date)); // Filenames... if (!path) path = http_default_path(temp, sizeof(temp)); if (!path || !common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } http_make_path(crtfile, sizeof(crtfile), path, common_name, "crt"); http_make_path(keyfile, sizeof(keyfile), path, common_name, "key"); // Create the encryption key... DEBUG_puts("1cupsMakeServerCredentials: Creating key pair."); if ((rsa = RSA_generate_key(3072, RSA_F4, NULL, NULL)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create key pair."), 1); return (0); } if ((pkey = EVP_PKEY_new()) == NULL) { RSA_free(rsa); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create private key."), 1); return (0); } EVP_PKEY_assign_RSA(pkey, rsa); DEBUG_puts("1cupsMakeServerCredentials: Key pair created."); // Create the X.509 certificate... DEBUG_puts("1cupsMakeServerCredentials: Generating self-signed X.509 certificate."); if ((cert = X509_new()) == NULL) { EVP_PKEY_free(pkey); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create X.509 certificate."), 1); return (0); } curtime = time(NULL); notBefore = ASN1_TIME_new(); ASN1_TIME_set(notBefore, curtime); X509_set_notBefore(cert, notBefore); ASN1_TIME_free(notBefore); notAfter = ASN1_TIME_new(); ASN1_TIME_set(notAfter, expiration_date); X509_set_notAfter(cert, notAfter); ASN1_TIME_free(notAfter); serial = ASN1_INTEGER_new(); ASN1_INTEGER_set(serial, (int)curtime); X509_set_serialNumber(cert, serial); ASN1_INTEGER_free(serial); X509_set_pubkey(cert, pkey); language = cupsLangDefault(); name = X509_NAME_new(); if (strlen(language->language) == 5) X509_NAME_add_entry_by_txt(name, SN_countryName, MBSTRING_ASC, (unsigned char *)language->language + 3, -1, -1, 0); else X509_NAME_add_entry_by_txt(name, SN_countryName, MBSTRING_ASC, (unsigned char *)"US", -1, -1, 0); X509_NAME_add_entry_by_txt(name, SN_commonName, MBSTRING_ASC, (unsigned char *)common_name, -1, -1, 0); X509_NAME_add_entry_by_txt(name, SN_organizationName, MBSTRING_ASC, (unsigned char *)common_name, -1, -1, 0); X509_NAME_add_entry_by_txt(name, SN_organizationalUnitName, MBSTRING_ASC, (unsigned char *)"Unknown", -1, -1, 0); X509_NAME_add_entry_by_txt(name, SN_stateOrProvinceName, MBSTRING_ASC, (unsigned char *)"Unknown", -1, -1, 0); X509_NAME_add_entry_by_txt(name, SN_localityName, MBSTRING_ASC, (unsigned char *)"Unknown", -1, -1, 0); X509_set_issuer_name(cert, name); X509_set_subject_name(cert, name); X509_NAME_free(name); gens = sk_GENERAL_NAME_new_null(); http_x509_add_san(gens, common_name); if ((common_ptr = strstr(common_name, ".local")) == NULL) { // Add common_name.local to the list, too... char localname[256], // hostname.local *localptr; // Pointer into localname strlcpy(localname, common_name, sizeof(localname)); if ((localptr = strchr(localname, '.')) != NULL) *localptr = '\0'; strlcat(localname, ".local", sizeof(localname)); http_x509_add_san(gens, localname); } if (num_alt_names > 0) { int i; // Looping var... for (i = 0; i < num_alt_names; i ++) { if (strcmp(alt_names[i], "localhost")) http_x509_add_san(gens, alt_names[i]); } } // Add extension with DNS names and free buffer for GENERAL_NAME X509_add1_ext_i2d(cert, NID_subject_alt_name, gens, 0, X509V3_ADD_DEFAULT); sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free); // Add extensions that are required to make Chrome happy... http_x509_add_ext(cert, NID_basic_constraints, "critical,CA:FALSE,pathlen:0"); http_x509_add_ext(cert, NID_key_usage, "critical,digitalSignature,keyEncipherment"); http_x509_add_ext(cert, NID_ext_key_usage, "1.3.6.1.5.5.7.3.1"); http_x509_add_ext(cert, NID_subject_key_identifier, "hash"); http_x509_add_ext(cert, NID_authority_key_identifier, "keyid,issuer"); X509_set_version(cert, 2); // v3 X509_sign(cert, pkey, EVP_sha256()); // Save them... if ((bio = BIO_new_file(keyfile, "wb")) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto done; } if (!PEM_write_bio_PrivateKey(bio, pkey, NULL, NULL, 0, NULL, NULL)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to write private key."), 1); BIO_free(bio); goto done; } BIO_free(bio); if ((bio = BIO_new_file(crtfile, "wb")) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto done; } if (!PEM_write_bio_X509(bio, cert)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to write X.509 certificate."), 1); BIO_free(bio); goto done; } BIO_free(bio); result = 1; DEBUG_puts("1cupsMakeServerCredentials: Successfully created credentials."); // Cleanup... done: X509_free(cert); EVP_PKEY_free(pkey); return (result); } /* * 'cupsSetServerCredentials()' - Set the default server credentials. * * Note: The server credentials are used by all threads in the running process. * This function is threadsafe. * * @since CUPS 2.0/OS 10.10@ */ int // O - 1 on success, 0 on failure cupsSetServerCredentials( const char *path, // I - Path to keychain/directory const char *common_name, // I - Default common name for server int auto_create) // I - 1 = automatically create self-signed certificates { char temp[1024]; // Default path buffer DEBUG_printf(("cupsSetServerCredentials(path=\"%s\", common_name=\"%s\", auto_create=%d)", path, common_name, auto_create)); /* * Use defaults as needed... */ if (!path) path = http_default_path(temp, sizeof(temp)); /* * Range check input... */ if (!path || !common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } _cupsMutexLock(&tls_mutex); /* * Free old values... */ if (tls_keypath) _cupsStrFree(tls_keypath); if (tls_common_name) _cupsStrFree(tls_common_name); /* * Save the new values... */ tls_keypath = _cupsStrAlloc(path); tls_auto_create = auto_create; tls_common_name = _cupsStrAlloc(common_name); _cupsMutexUnlock(&tls_mutex); return (1); } /* * 'httpCopyCredentials()' - Copy the credentials associated with the peer in * an encrypted connection. * * @since CUPS 1.5/macOS 10.7@ */ int // O - Status of call (0 = success) httpCopyCredentials( http_t *http, // I - Connection to server cups_array_t **credentials) // O - Array of credentials { STACK_OF(X509) *chain; // Certificate chain DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials)); if (credentials) *credentials = NULL; if (!http || !http->tls || !credentials) return (-1); *credentials = cupsArrayNew(NULL, NULL); chain = SSL_get_peer_cert_chain(http->tls); DEBUG_printf(("1httpCopyCredentials: chain=%p", chain)); if (chain) { int i, // Looping var count; // Number of certs for (i = 0, count = sk_X509_num(chain); i < count; i ++) { X509 *cert = sk_X509_value(chain, i); // Current certificate BIO *bio = BIO_new(BIO_s_mem()); // Memory buffer for cert if (bio) { long bytes; // Number of bytes char *buffer; // Pointer to bytes if (PEM_write_bio_X509(bio, cert)) { bytes = BIO_get_mem_data(bio, &buffer); httpAddCredential(*credentials, buffer, (int)bytes); } BIO_free(bio); } } } return (0); } /* * '_httpCreateCredentials()' - Create credentials in the internal format. */ http_tls_credentials_t // O - Internal credentials _httpCreateCredentials( cups_array_t *credentials) // I - Array of credentials { (void)credentials; return (NULL); } /* * '_httpFreeCredentials()' - Free internal credentials. */ void _httpFreeCredentials( http_tls_credentials_t credentials) // I - Internal credentials { X509_free(credentials); } /* * 'httpCredentialsAreValidForName()' - Return whether the credentials are valid for the given name. * * @since CUPS 2.0/OS 10.10@ */ int // O - 1 if valid, 0 otherwise httpCredentialsAreValidForName( cups_array_t *credentials, // I - Credentials const char *common_name) // I - Name to check { X509 *cert; // Certificate int result = 0; // Result cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials)); if (cert) { result = X509_check_host(cert, common_name, strlen(common_name), 0, NULL); X509_free(cert); } return (result); } /* * 'httpCredentialsGetTrust()' - Return the trust of credentials. * * @since CUPS 2.0/OS 10.10@ */ http_trust_t // O - Level of trust httpCredentialsGetTrust( cups_array_t *credentials, // I - Credentials const char *common_name) // I - Common name for trust lookup { http_trust_t trust = HTTP_TRUST_OK; // Trusted? X509 *cert; // Certificate cups_array_t *tcreds = NULL; // Trusted credentials _cups_globals_t *cg = _cupsGlobals(); // Per-thread globals if (!common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No common name specified."), 1); return (HTTP_TRUST_UNKNOWN); } if ((cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create credentials from array."), 1); return (HTTP_TRUST_UNKNOWN); } if (cg->any_root < 0) { _cupsSetDefaults(); // http_load_crl(); } // Look this common name up in the default keychains... httpLoadCredentials(NULL, &tcreds, common_name); if (tcreds) { char credentials_str[1024], /* String for incoming credentials */ tcreds_str[1024]; /* String for saved credentials */ httpCredentialsString(credentials, credentials_str, sizeof(credentials_str)); httpCredentialsString(tcreds, tcreds_str, sizeof(tcreds_str)); if (strcmp(credentials_str, tcreds_str)) { // Credentials don't match, let's look at the expiration date of the new // credentials and allow if the new ones have a later expiration... if (!cg->trust_first) { // Do not trust certificates on first use... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds)) { // The new credentials are not newly issued... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are older than stored credentials."), 1); trust = HTTP_TRUST_INVALID; } else if (!httpCredentialsAreValidForName(credentials, common_name)) { // The common name does not match the issued certificate... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(tcreds) < time(NULL)) { // Save the renewed credentials... trust = HTTP_TRUST_RENEWED; httpSaveCredentials(NULL, credentials, common_name); } } httpFreeCredentials(tcreds); } else if (cg->validate_certs && !httpCredentialsAreValidForName(credentials, common_name)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No stored credentials, not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (!cg->trust_first) { // See if we have a site CA certificate we can compare... if (!httpLoadCredentials(NULL, &tcreds, "site")) { if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1)) { // Certificate isn't directly generated from the CA cert... trust = HTTP_TRUST_INVALID; } else { // Do a tail comparison of the two certificates... http_credential_t *a, *b; // Certificates for (a = (http_credential_t *)cupsArrayFirst(tcreds), b = (http_credential_t *)cupsArrayIndex(credentials, 1); a && b; a = (http_credential_t *)cupsArrayNext(tcreds), b = (http_credential_t *)cupsArrayNext(credentials)) { if (a->datalen != b->datalen || memcmp(a->data, b->data, a->datalen)) break; } if (a || b) trust = HTTP_TRUST_INVALID; } if (trust != HTTP_TRUST_OK) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials do not validate against site CA certificate."), 1); } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } } if (trust == HTTP_TRUST_OK && !cg->expired_certs) { time_t curtime; // Current date/time time(&curtime); if (curtime < http_get_date(cert, 0) || curtime > http_get_date(cert, 1)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials have expired."), 1); trust = HTTP_TRUST_EXPIRED; } } if (trust == HTTP_TRUST_OK && !cg->any_root && cupsArrayCount(credentials) == 1) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Self-signed credentials are blocked."), 1); trust = HTTP_TRUST_INVALID; } X509_free(cert); return (trust); } /* * 'httpCredentialsGetExpiration()' - Return the expiration date of the credentials. * * @since CUPS 2.0/OS 10.10@ */ time_t // O - Expiration date of credentials httpCredentialsGetExpiration( cups_array_t *credentials) // I - Credentials { time_t result = 0; // Result X509 *cert; // Certificate if ((cert = http_create_credential((http_credential_t *)cupsArrayFirst(credentials))) != NULL) { result = http_get_date(cert, 1); X509_free(cert); } return (result); } /* * 'httpCredentialsString()' - Return a string representing the credentials. * * @since CUPS 2.0/OS 10.10@ */ size_t // O - Total size of credentials string httpCredentialsString( cups_array_t *credentials, // I - Credentials char *buffer, // I - Buffer size_t bufsize) // I - Size of buffer { http_credential_t *first; // First certificate X509 *cert; // Certificate DEBUG_printf(("httpCredentialsString(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")", credentials, buffer, CUPS_LLCAST bufsize)); if (!buffer) return (0); if (bufsize > 0) *buffer = '\0'; first = (http_credential_t *)cupsArrayFirst(credentials); cert = http_create_credential(first); if (cert) { char name[256], // Common name associated with cert issuer[256]; // Issuer associated with cert time_t expiration; // Expiration date of cert const char *sigalg; // Signature algorithm unsigned char md5_digest[16]; // MD5 result X509_NAME_get_text_by_NID(X509_get_subject_name(cert), NID_commonName, name, sizeof(name)); X509_NAME_get_text_by_NID(X509_get_issuer_name(cert), NID_commonName, issuer, sizeof(issuer)); expiration = http_get_date(cert, 1); switch (X509_get_signature_nid(cert)) { case NID_ecdsa_with_SHA1 : sigalg = "SHA1WithECDSAEncryption"; break; case NID_ecdsa_with_SHA224 : sigalg = "SHA224WithECDSAEncryption"; break; case NID_ecdsa_with_SHA256 : sigalg = "SHA256WithECDSAEncryption"; break; case NID_ecdsa_with_SHA384 : sigalg = "SHA384WithECDSAEncryption"; break; case NID_ecdsa_with_SHA512 : sigalg = "SHA512WithECDSAEncryption"; break; case NID_sha1WithRSAEncryption : sigalg = "SHA1WithRSAEncryption"; break; case NID_sha224WithRSAEncryption : sigalg = "SHA224WithRSAEncryption"; break; case NID_sha256WithRSAEncryption : sigalg = "SHA256WithRSAEncryption"; break; case NID_sha384WithRSAEncryption : sigalg = "SHA384WithRSAEncryption"; break; case NID_sha512WithRSAEncryption : sigalg = "SHA512WithRSAEncryption"; break; default : sigalg = "Unknown"; break; } cupsHashData("md5", first->data, first->datalen, md5_digest, sizeof(md5_digest)); snprintf(buffer, bufsize, "%s (issued by %s) / %s / %s / %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", name, issuer, httpGetDateString(expiration), sigalg, md5_digest[0], md5_digest[1], md5_digest[2], md5_digest[3], md5_digest[4], md5_digest[5], md5_digest[6], md5_digest[7], md5_digest[8], md5_digest[9], md5_digest[10], md5_digest[11], md5_digest[12], md5_digest[13], md5_digest[14], md5_digest[15]); X509_free(cert); } DEBUG_printf(("1httpCredentialsString: Returning \"%s\".", buffer)); return (strlen(buffer)); } /* * 'httpLoadCredentials()' - Load X.509 credentials from a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int // O - 0 on success, -1 on error httpLoadCredentials( const char *path, // I - Keychain/PKCS#12 path cups_array_t **credentials, // IO - Credentials const char *common_name) // I - Common name for credentials { cups_file_t *fp; // Certificate file char filename[1024], // filename.crt temp[1024], // Temporary string line[256]; // Base64-encoded line unsigned char *data = NULL; // Buffer for cert data size_t alloc_data = 0, // Bytes allocated num_data = 0; // Bytes used int decoded; // Bytes decoded int in_certificate = 0; // In a certificate? if (!credentials || !common_name) return (-1); if (!path) path = http_default_path(temp, sizeof(temp)); if (!path) return (-1); http_make_path(filename, sizeof(filename), path, common_name, "crt"); if ((fp = cupsFileOpen(filename, "r")) == NULL) return (-1); while (cupsFileGets(fp, line, sizeof(line))) { if (!strcmp(line, "-----BEGIN CERTIFICATE-----")) { if (in_certificate) { /* * Missing END CERTIFICATE... */ httpFreeCredentials(*credentials); *credentials = NULL; break; } in_certificate = 1; } else if (!strcmp(line, "-----END CERTIFICATE-----")) { if (!in_certificate || !num_data) { /* * Missing data... */ httpFreeCredentials(*credentials); *credentials = NULL; break; } if (!*credentials) *credentials = cupsArrayNew(NULL, NULL); if (httpAddCredential(*credentials, data, num_data)) { httpFreeCredentials(*credentials); *credentials = NULL; break; } num_data = 0; in_certificate = 0; } else if (in_certificate) { if (alloc_data == 0) { data = malloc(2048); alloc_data = 2048; if (!data) break; } else if ((num_data + strlen(line)) >= alloc_data) { unsigned char *tdata = realloc(data, alloc_data + 1024); /* Expanded buffer */ if (!tdata) { httpFreeCredentials(*credentials); *credentials = NULL; break; } data = tdata; alloc_data += 1024; } decoded = alloc_data - num_data; httpDecode64_2((char *)data + num_data, &decoded, line); num_data += (size_t)decoded; } } cupsFileClose(fp); if (in_certificate) { /* * Missing END CERTIFICATE... */ httpFreeCredentials(*credentials); *credentials = NULL; } if (data) free(data); return (*credentials ? 0 : -1); } /* * 'httpSaveCredentials()' - Save X.509 credentials to a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int // O - -1 on error, 0 on success httpSaveCredentials( const char *path, // I - Keychain/PKCS#12 path cups_array_t *credentials, // I - Credentials const char *common_name) // I - Common name for credentials { cups_file_t *fp; // Certificate file char filename[1024], // filename.crt nfilename[1024],// filename.crt.N temp[1024], // Temporary string line[256]; // Base64-encoded line const unsigned char *ptr; // Pointer into certificate ssize_t remaining; // Bytes left http_credential_t *cred; // Current credential if (!credentials || !common_name) return (-1); if (!path) path = http_default_path(temp, sizeof(temp)); if (!path) return (-1); http_make_path(filename, sizeof(filename), path, common_name, "crt"); snprintf(nfilename, sizeof(nfilename), "%s.N", filename); if ((fp = cupsFileOpen(nfilename, "w")) == NULL) return (-1); #ifndef _WIN32 fchmod(cupsFileNumber(fp), 0600); #endif // !_WIN32 for (cred = (http_credential_t *)cupsArrayFirst(credentials); cred; cred = (http_credential_t *)cupsArrayNext(credentials)) { cupsFilePuts(fp, "-----BEGIN CERTIFICATE-----\n"); for (ptr = cred->data, remaining = (ssize_t)cred->datalen; remaining > 0; remaining -= 45, ptr += 45) { httpEncode64_2(line, sizeof(line), (char *)ptr, remaining > 45 ? 45 : remaining); cupsFilePrintf(fp, "%s\n", line); } cupsFilePuts(fp, "-----END CERTIFICATE-----\n"); } cupsFileClose(fp); return (rename(nfilename, filename)); } /* * '_httpTLSInitialize()' - Initialize the TLS stack. */ void _httpTLSInitialize(void) { // OpenSSL no longer requires explicit initialization... } /* * '_httpTLSPending()' - Return the number of pending TLS-encrypted bytes. */ size_t // O - Bytes available _httpTLSPending(http_t *http) // I - HTTP connection { return ((size_t)SSL_pending(http->tls)); } /* * '_httpTLSRead()' - Read from a SSL/TLS connection. */ int // O - Bytes read _httpTLSRead(http_t *http, // I - Connection to server char *buf, // I - Buffer to store data int len) // I - Length of buffer { return (SSL_read((SSL *)(http->tls), buf, len)); } /* * '_httpTLSSetOptions()' - Set TLS protocol and cipher suite options. */ void _httpTLSSetOptions(int options, // I - Options int min_version, // I - Minimum TLS version int max_version) // I - Maximum TLS version { if (!(options & _HTTP_TLS_SET_DEFAULT) || tls_options < 0) { tls_options = options; tls_min_version = min_version; tls_max_version = max_version; } } /* * '_httpTLSStart()' - Set up SSL/TLS support on a connection. */ int // O - 0 on success, -1 on failure _httpTLSStart(http_t *http) // I - Connection to server { BIO *bio; // Basic input/output context SSL_CTX *context; // Encryption context char hostname[256], // Hostname cipherlist[256]; // List of cipher suites unsigned long error; // Error code, if any static const int versions[] = // SSL/TLS versions { TLS1_VERSION, // No more SSL support in OpenSSL TLS1_VERSION, // TLS/1.0 TLS1_1_VERSION, // TLS/1.1 TLS1_2_VERSION, // TLS/1.2 #ifdef TLS1_3_VERSION TLS1_3_VERSION, // TLS/1.3 TLS1_3_VERSION // TLS/1.3 (max) #else TLS1_2_VERSION, // TLS/1.2 TLS1_2_VERSION // TLS/1.2 (max) #endif // TLS1_3_VERSION }; DEBUG_printf(("3_httpTLSStart(http=%p)", http)); if (tls_options < 0) { DEBUG_puts("4_httpTLSStart: Setting defaults."); _cupsSetDefaults(); DEBUG_printf(("4_httpTLSStart: tls_options=%x", tls_options)); } if (http->mode == _HTTP_MODE_SERVER && !tls_keypath) { DEBUG_puts("4_httpTLSStart: cupsSetServerCredentials not called."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Server credentials not set."), 1); return (-1); } if (http->mode == _HTTP_MODE_CLIENT) { // Negotiate a TLS connection as a client... context = SSL_CTX_new(TLS_client_method()); } else { // Negotiate a TLS connection as a server char crtfile[1024], // Certificate file keyfile[1024]; // Private key file const char *cn, // Common name to lookup *cnptr; // Pointer into common name int have_creds = 0; // Have credentials? int key_status, crt_status; // Key and certificate load status context = SSL_CTX_new(TLS_server_method()); // Find the TLS certificate... if (http->fields[HTTP_FIELD_HOST]) { // Use hostname for TLS upgrade... strlcpy(hostname, http->fields[HTTP_FIELD_HOST], sizeof(hostname)); } else { // Resolve hostname from connection address... http_addr_t addr; // Connection address socklen_t addrlen; // Length of address addrlen = sizeof(addr); if (getsockname(http->fd, (struct sockaddr *)&addr, &addrlen)) { // Unable to get local socket address so use default... DEBUG_printf(("4_httpTLSStart: Unable to get socket address: %s", strerror(errno))); hostname[0] = '\0'; } else if (httpAddrLocalhost(&addr)) { // Local access top use default... hostname[0] = '\0'; } else { // Lookup the socket address... httpAddrLookup(&addr, hostname, sizeof(hostname)); DEBUG_printf(("4_httpTLSStart: Resolved socket address to \"%s\".", hostname)); } } if (isdigit(hostname[0] & 255) || hostname[0] == '[') hostname[0] = '\0'; // Don't allow numeric addresses if (hostname[0]) cn = hostname; else cn = tls_common_name; _cupsMutexLock(&tls_mutex); if (cn) { // First look in the CUPS keystore... http_make_path(crtfile, sizeof(crtfile), tls_keypath, cn, "crt"); http_make_path(keyfile, sizeof(keyfile), tls_keypath, cn, "key"); if (access(crtfile, R_OK) || access(keyfile, R_OK)) { // No CUPS-managed certs, look for CA certs... char cacrtfile[1024], cakeyfile[1024]; // CA cert files snprintf(cacrtfile, sizeof(cacrtfile), "/etc/letsencrypt/live/%s/fullchain.pem", cn); snprintf(cakeyfile, sizeof(cakeyfile), "/etc/letsencrypt/live/%s/privkey.pem", cn); if ((access(cacrtfile, R_OK) || access(cakeyfile, R_OK)) && (cnptr = strchr(cn, '.')) != NULL) { // Try just domain name... cnptr ++; if (strchr(cnptr, '.')) { snprintf(cacrtfile, sizeof(cacrtfile), "/etc/letsencrypt/live/%s/fullchain.pem", cnptr); snprintf(cakeyfile, sizeof(cakeyfile), "/etc/letsencrypt/live/%s/privkey.pem", cnptr); } } if (!access(cacrtfile, R_OK) && !access(cakeyfile, R_OK)) { // Use the CA certs... strlcpy(crtfile, cacrtfile, sizeof(crtfile)); strlcpy(keyfile, cakeyfile, sizeof(keyfile)); } } have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); } if (!have_creds && tls_auto_create && cn) { DEBUG_printf(("4_httpTLSStart: Auto-create credentials for \"%s\".", cn)); if (!cupsMakeServerCredentials(tls_keypath, cn, 0, NULL, time(NULL) + 3650 * 86400)) { DEBUG_puts("4_httpTLSStart: cupsMakeServerCredentials failed."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create server credentials."), 1); SSL_CTX_free(context); _cupsMutexUnlock(&tls_mutex); return (-1); } } _cupsMutexUnlock(&tls_mutex); DEBUG_printf(("4_httpTLSStart: Using private key file '%s'.", keyfile)); DEBUG_printf(("4_httpTLSStart: Using certificate file '%s'.", crtfile)); crt_status = SSL_CTX_use_certificate_chain_file(context, crtfile); key_status = SSL_CTX_use_PrivateKey_file(context, keyfile, SSL_FILETYPE_PEM); if (!key_status || !crt_status) { // Unable to load private key or certificate... DEBUG_puts("4_httpTLSStart: Unable to use private key or certificate chain file."); if ((error = ERR_get_error()) != 0) _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, ERR_error_string(error, NULL), 0); http->status = HTTP_STATUS_ERROR; http->error = EIO; SSL_CTX_free(context); return (-1); } } // Set TLS options... strlcpy(cipherlist, "HIGH:!DH:+DHE", sizeof(cipherlist)); if ((tls_options & _HTTP_TLS_ALLOW_RC4) && http->mode == _HTTP_MODE_CLIENT) strlcat(cipherlist, ":+RC4", sizeof(cipherlist)); else strlcat(cipherlist, ":!RC4", sizeof(cipherlist)); if (tls_options & _HTTP_TLS_DENY_CBC) strlcat(cipherlist, ":!SHA1:!SHA256:!SHA384", sizeof(cipherlist)); strlcat(cipherlist, ":@STRENGTH", sizeof(cipherlist)); DEBUG_printf(("4_httpTLSStart: cipherlist='%s', tls_min_version=%d, tls_max_version=%d", cipherlist, tls_min_version, tls_max_version)); SSL_CTX_set_min_proto_version(context, versions[tls_min_version]); SSL_CTX_set_max_proto_version(context, versions[tls_max_version]); SSL_CTX_set_cipher_list(context, cipherlist); // Setup a TLS session _cupsMutexLock(&tls_mutex); if (!tls_bio_method) { tls_bio_method = BIO_meth_new(BIO_get_new_index(), "http"); BIO_meth_set_ctrl(tls_bio_method, http_bio_ctrl); BIO_meth_set_create(tls_bio_method, http_bio_new); BIO_meth_set_destroy(tls_bio_method, http_bio_free); BIO_meth_set_read(tls_bio_method, http_bio_read); BIO_meth_set_puts(tls_bio_method, http_bio_puts); BIO_meth_set_write(tls_bio_method, http_bio_write); } _cupsMutexUnlock(&tls_mutex); bio = BIO_new(tls_bio_method); BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)http); http->tls = SSL_new(context); SSL_set_bio(http->tls, bio, bio); if (http->mode == _HTTP_MODE_CLIENT) { // Negotiate as a client... DEBUG_puts("4_httpTLSStart: Calling SSL_connect..."); if (SSL_connect(http->tls) < 1) { // Failed if ((error = ERR_get_error()) != 0) _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, ERR_error_string(error, NULL), 0); http->status = HTTP_STATUS_ERROR; http->error = EPIPE; SSL_CTX_free(context); SSL_free(http->tls); http->tls = NULL; DEBUG_printf(("4_httpTLSStart: Returning -1 (%s)", ERR_error_string(error, NULL))); return (-1); } } else { // Negotiate as a server... DEBUG_puts("4_httpTLSStart: Calling SSL_accept..."); if (SSL_accept(http->tls) < 1) { // Failed if ((error = ERR_get_error()) != 0) _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, ERR_error_string(error, NULL), 0); http->status = HTTP_STATUS_ERROR; http->error = EPIPE; SSL_CTX_free(context); SSL_free(http->tls); http->tls = NULL; DEBUG_printf(("4_httpTLSStart: Returning -1 (%s)", ERR_error_string(error, NULL))); return (-1); } } DEBUG_puts("4_httpTLSStart: Returning 0."); return (0); } /* * '_httpTLSStop()' - Shut down SSL/TLS on a connection. */ void _httpTLSStop(http_t *http) // I - Connection to server { SSL_CTX *context; // Context for encryption context = SSL_get_SSL_CTX(http->tls); SSL_shutdown(http->tls); SSL_CTX_free(context); SSL_free(http->tls); http->tls = NULL; } /* * '_httpTLSWrite()' - Write to a SSL/TLS connection. */ int // O - Bytes written _httpTLSWrite(http_t *http, // I - Connection to server const char *buf, // I - Buffer holding data int len) // I - Length of buffer { return (SSL_write(http->tls, buf, len)); } /* * 'http_bio_ctrl()' - Control the HTTP connection. */ static long // O - Result/data http_bio_ctrl(BIO *h, // I - BIO data int cmd, // I - Control command long arg1, // I - First argument void *arg2) // I - Second argument { switch (cmd) { default : return (0); case BIO_CTRL_RESET : BIO_set_data(h, NULL); return (0); case BIO_C_SET_FILE_PTR : BIO_set_data(h, arg2); BIO_set_init(h, 1); return (1); case BIO_C_GET_FILE_PTR : if (arg2) { *((void **)arg2) = BIO_get_data(h); return (1); } else return (0); case BIO_CTRL_DUP : case BIO_CTRL_FLUSH : return (1); } } /* * 'http_bio_free()' - Free OpenSSL data. */ static int // O - 1 on success, 0 on failure http_bio_free(BIO *h) // I - BIO data { if (!h) return (0); if (BIO_get_shutdown(h)) BIO_set_init(h, 0); return (1); } /* * 'http_bio_new()' - Initialize an OpenSSL BIO structure. */ static int // O - 1 on success, 0 on failure http_bio_new(BIO *h) // I - BIO data { if (!h) return (0); BIO_set_init(h, 0); BIO_set_data(h, NULL); return (1); } /* * 'http_bio_puts()' - Send a string for OpenSSL. */ static int // O - Bytes written http_bio_puts(BIO *h, // I - BIO data const char *str) // I - String to write { #ifdef WIN32 return (send(((http_t *)BIO_get_data(h))->fd, str, (int)strlen(str), 0)); #else return ((int)send(((http_t *)BIO_get_data(h))->fd, str, strlen(str), 0)); #endif // WIN32 } /* * 'http_bio_read()' - Read data for OpenSSL. */ static int // O - Bytes read http_bio_read(BIO *h, // I - BIO data char *buf, // I - Buffer int size) // I - Number of bytes to read { http_t *http; // HTTP connection http = (http_t *)BIO_get_data(h); if (!http->blocking) { /* * Make sure we have data before we read... */ if (!_httpWait(http, 10000, 0)) { #ifdef WIN32 http->error = WSAETIMEDOUT; #else http->error = ETIMEDOUT; #endif // WIN32 return (-1); } } return ((int)recv(http->fd, buf, (size_t)size, 0)); } /* * 'http_bio_write()' - Write data for OpenSSL. */ static int // O - Bytes written http_bio_write(BIO *h, // I - BIO data const char *buf, // I - Buffer to write int num) // I - Number of bytes to write { return (send(((http_t *)BIO_get_data(h))->fd, buf, num, 0)); } /* * 'http_create_credential()' - Create a single credential in the internal format. */ static X509 * // O - Certificate http_create_credential( http_credential_t *credential) // I - Credential { X509 *cert = NULL; // Certificate BIO *bio; // Basic I/O for string if (!credential) return (NULL); if ((bio = BIO_new_mem_buf(credential->data, credential->datalen)) == NULL) return (NULL); PEM_read_bio_X509(bio, &cert, NULL, (void *)""); BIO_free(bio); return (cert); } /* * 'http_default_path()' - Get the default credential store path. */ static const char * // O - Path or NULL on error http_default_path( char *buffer, // I - Path buffer size_t bufsize) // I - Size of path buffer { _cups_globals_t *cg = _cupsGlobals(); // Pointer to library globals #ifdef _WIN32 if (cg->home) #else if (cg->home && getuid()) #endif // _WIN32 { snprintf(buffer, bufsize, "%s/.cups", cg->home); if (access(buffer, 0)) { DEBUG_printf(("1http_default_path: Making directory \"%s\".", buffer)); if (mkdir(buffer, 0700)) { DEBUG_printf(("1http_default_path: Failed to make directory: %s", strerror(errno))); return (NULL); } } snprintf(buffer, bufsize, "%s/.cups/ssl", cg->home); if (access(buffer, 0)) { DEBUG_printf(("1http_default_path: Making directory \"%s\".", buffer)); if (mkdir(buffer, 0700)) { DEBUG_printf(("1http_default_path: Failed to make directory: %s", strerror(errno))); return (NULL); } } } else strlcpy(buffer, CUPS_SERVERROOT "/ssl", bufsize); DEBUG_printf(("1http_default_path: Using default path \"%s\".", buffer)); return (buffer); } // // 'http_get_date()' - Get the notBefore or notAfter date of a certificate. // static time_t // O - UNIX time in seconds http_get_date(X509 *cert, // I - Certificate int which) // I - 0 for notBefore, 1 for notAfter { struct tm exptm; // Expiration date components if (which) ASN1_TIME_to_tm(X509_get0_notAfter(cert), &exptm); else ASN1_TIME_to_tm(X509_get0_notBefore(cert), &exptm); return (mktime(&exptm)); } #if 0 /* * 'http_load_crl()' - Load the certificate revocation list, if any. */ static void http_load_crl(void) { _cupsMutexLock(&tls_mutex); if (!openssl_x509_crl_init(&tls_crl)) { cups_file_t *fp; // CRL file char filename[1024], // site.crl line[256]; // Base64-encoded line unsigned char *data = NULL; // Buffer for cert data size_t alloc_data = 0, // Bytes allocated num_data = 0; // Bytes used int decoded; // Bytes decoded openssl_datum_t datum; // Data record http_make_path(filename, sizeof(filename), CUPS_SERVERROOT, "site", "crl"); if ((fp = cupsFileOpen(filename, "r")) != NULL) { while (cupsFileGets(fp, line, sizeof(line))) { if (!strcmp(line, "-----BEGIN X509 CRL-----")) { if (num_data) { /* * Missing END X509 CRL... */ break; } } else if (!strcmp(line, "-----END X509 CRL-----")) { if (!num_data) { /* * Missing data... */ break; } datum.data = data; datum.size = num_data; openssl_x509_crl_import(tls_crl, &datum, GNUTLS_X509_FMT_PEM); num_data = 0; } else { if (alloc_data == 0) { data = malloc(2048); alloc_data = 2048; if (!data) break; } else if ((num_data + strlen(line)) >= alloc_data) { unsigned char *tdata = realloc(data, alloc_data + 1024); // Expanded buffer if (!tdata) break; data = tdata; alloc_data += 1024; } decoded = alloc_data - num_data; httpDecode64_2((char *)data + num_data, &decoded, line); num_data += (size_t)decoded; } } cupsFileClose(fp); if (data) free(data); } } _cupsMutexUnlock(&tls_mutex); } #endif // 0 /* * 'http_make_path()' - Format a filename for a certificate or key file. */ static const char * // O - Filename http_make_path( char *buffer, // I - Filename buffer size_t bufsize, // I - Size of buffer const char *dirname, // I - Directory const char *filename, // I - Filename (usually hostname) const char *ext) // I - Extension { char *bufptr, // Pointer into buffer *bufend = buffer + bufsize - 1; // End of buffer snprintf(buffer, bufsize, "%s/", dirname); bufptr = buffer + strlen(buffer); while (*filename && bufptr < bufend) { if (_cups_isalnum(*filename) || *filename == '-' || *filename == '.') *bufptr++ = *filename; else *bufptr++ = '_'; filename ++; } if (bufptr < bufend && filename[-1] != '.') *bufptr++ = '.'; strlcpy(bufptr, ext, (size_t)(bufend - bufptr + 1)); return (buffer); } // // 'http_x509_add_ext()' - Add an extension to a certificate. // static int // O - 1 on success, 0 on failure http_x509_add_ext(X509 *cert, // I - Certificate int nid, // I - Extension ID const char *value) // I - Value { int ret; // Return value X509_EXTENSION *ex = NULL; // Extension X509V3_CTX ctx; // Certificate context DEBUG_printf(("3http_x509_add_ext(cert=%p, nid=%d, value=\"%s\")", (void *)cert, nid, value)); // Don't use a configuration database... X509V3_set_ctx_nodb(&ctx); // Self-signed certificates use the same issuer and subject... X509V3_set_ctx(&ctx, /*issuer*/cert, /*subject*/cert, /*req*/NULL, /*crl*/NULL, /*flags*/0); // Create and add the extension... if ((ex = X509V3_EXT_conf_nid(/*conf*/NULL, &ctx, nid, value)) == NULL) { DEBUG_puts("4http_x509_add_ext: Unable to create extension, returning false."); return (0); } ret = X509_add_ext(cert, ex, -1) != 0; DEBUG_printf(("4http_x509_add_ext: X509_add_ext returned %s.", ret ? "true" : "false")); // Free the extension and return... X509_EXTENSION_free(ex); return (ret); } // // 'http_x509_add_san()' - Add a subjectAltName to GENERAL_NAMES used for // the extension to an X.509 certificate. // static void http_x509_add_san(GENERAL_NAMES *gens, // I - Concatenation of DNS names const char *name) // I - Hostname { GENERAL_NAME *gen_dns = GENERAL_NAME_new(); // DNS: name ASN1_IA5STRING *ia5 = ASN1_IA5STRING_new(); // Hostname string // Set the strings and push it on the GENERAL_NAMES list... ASN1_STRING_set(ia5, name, strlen(name)); GENERAL_NAME_set0_value(gen_dns, GEN_DNS, ia5); sk_GENERAL_NAME_push(gens, gen_dns); } cups-2.4.7/cups/tls-gnutls.c0000644000175000017500000013014714502571342015621 0ustar zdohnalzdohnal/* * TLS support code for CUPS using GNU TLS. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /**** This file is included from tls.c ****/ /* * Include necessary headers... */ #include /* * Local globals... */ static int tls_auto_create = 0; /* Auto-create self-signed certs? */ static char *tls_common_name = NULL; /* Default common name */ static gnutls_x509_crl_t tls_crl = NULL;/* Certificate revocation list */ static char *tls_keypath = NULL; /* Server cert keychain path */ static _cups_mutex_t tls_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for keychain/certs */ static int tls_options = -1,/* Options for TLS connections */ tls_min_version = _HTTP_TLS_1_0, tls_max_version = _HTTP_TLS_MAX; /* * Local functions... */ static gnutls_x509_crt_t http_gnutls_create_credential(http_credential_t *credential); static const char *http_gnutls_default_path(char *buffer, size_t bufsize); static void http_gnutls_load_crl(void); static const char *http_gnutls_make_path(char *buffer, size_t bufsize, const char *dirname, const char *filename, const char *ext); static ssize_t http_gnutls_read(gnutls_transport_ptr_t ptr, void *data, size_t length); static ssize_t http_gnutls_write(gnutls_transport_ptr_t ptr, const void *data, size_t length); /* * 'cupsMakeServerCredentials()' - Make a self-signed certificate and private key pair. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 on success, 0 on failure */ cupsMakeServerCredentials( const char *path, /* I - Path to keychain/directory */ const char *common_name, /* I - Common name */ int num_alt_names, /* I - Number of subject alternate names */ const char **alt_names, /* I - Subject Alternate Names */ time_t expiration_date) /* I - Expiration date */ { gnutls_x509_crt_t crt; /* Self-signed certificate */ gnutls_x509_privkey_t key; /* Encryption private key */ char temp[1024], /* Temporary directory name */ crtfile[1024], /* Certificate filename */ keyfile[1024]; /* Private key filename */ cups_lang_t *language; /* Default language info */ cups_file_t *fp; /* Key/cert file */ unsigned char buffer[8192]; /* Buffer for x509 data */ size_t bytes; /* Number of bytes of data */ unsigned char serial[4]; /* Serial number buffer */ time_t curtime; /* Current time */ int result; /* Result of GNU TLS calls */ DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, alt_names, (int)expiration_date)); /* * Filenames... */ if (!path) path = http_gnutls_default_path(temp, sizeof(temp)); if (!path || !common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } http_gnutls_make_path(crtfile, sizeof(crtfile), path, common_name, "crt"); http_gnutls_make_path(keyfile, sizeof(keyfile), path, common_name, "key"); /* * Create the encryption key... */ DEBUG_puts("1cupsMakeServerCredentials: Creating key pair."); gnutls_x509_privkey_init(&key); gnutls_x509_privkey_generate(key, GNUTLS_PK_RSA, 2048, 0); DEBUG_puts("1cupsMakeServerCredentials: Key pair created."); /* * Save it... */ bytes = sizeof(buffer); if ((result = gnutls_x509_privkey_export(key, GNUTLS_X509_FMT_PEM, buffer, &bytes)) < 0) { DEBUG_printf(("1cupsMakeServerCredentials: Unable to export private key: %s", gnutls_strerror(result))); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(result), 0); gnutls_x509_privkey_deinit(key); return (0); } else if ((fp = cupsFileOpen(keyfile, "w")) != NULL) { DEBUG_printf(("1cupsMakeServerCredentials: Writing private key to \"%s\".", keyfile)); cupsFileWrite(fp, (char *)buffer, bytes); cupsFileClose(fp); } else { DEBUG_printf(("1cupsMakeServerCredentials: Unable to create private key file \"%s\": %s", keyfile, strerror(errno))); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); gnutls_x509_privkey_deinit(key); return (0); } /* * Create the self-signed certificate... */ DEBUG_puts("1cupsMakeServerCredentials: Generating self-signed X.509 certificate."); language = cupsLangDefault(); curtime = time(NULL); serial[0] = curtime >> 24; serial[1] = curtime >> 16; serial[2] = curtime >> 8; serial[3] = curtime; gnutls_x509_crt_init(&crt); if (strlen(language->language) == 5) gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_COUNTRY_NAME, 0, language->language + 3, 2); else gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_COUNTRY_NAME, 0, "US", 2); gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_COMMON_NAME, 0, common_name, strlen(common_name)); gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_ORGANIZATION_NAME, 0, common_name, strlen(common_name)); gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_ORGANIZATIONAL_UNIT_NAME, 0, "Unknown", 7); gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_STATE_OR_PROVINCE_NAME, 0, "Unknown", 7); gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_X520_LOCALITY_NAME, 0, "Unknown", 7); /* gnutls_x509_crt_set_dn_by_oid(crt, GNUTLS_OID_PKCS9_EMAIL, 0, ServerAdmin, strlen(ServerAdmin));*/ gnutls_x509_crt_set_key(crt, key); gnutls_x509_crt_set_serial(crt, serial, sizeof(serial)); gnutls_x509_crt_set_activation_time(crt, curtime); gnutls_x509_crt_set_expiration_time(crt, expiration_date); gnutls_x509_crt_set_ca_status(crt, 0); gnutls_x509_crt_set_subject_alt_name(crt, GNUTLS_SAN_DNSNAME, common_name, (unsigned)strlen(common_name), GNUTLS_FSAN_SET); if (!strchr(common_name, '.')) { /* * Add common_name.local to the list, too... */ char localname[256]; /* hostname.local */ snprintf(localname, sizeof(localname), "%s.local", common_name); gnutls_x509_crt_set_subject_alt_name(crt, GNUTLS_SAN_DNSNAME, localname, (unsigned)strlen(localname), GNUTLS_FSAN_APPEND); } gnutls_x509_crt_set_subject_alt_name(crt, GNUTLS_SAN_DNSNAME, "localhost", 9, GNUTLS_FSAN_APPEND); if (num_alt_names > 0) { int i; /* Looping var */ for (i = 0; i < num_alt_names; i ++) { if (strcmp(alt_names[i], "localhost")) { gnutls_x509_crt_set_subject_alt_name(crt, GNUTLS_SAN_DNSNAME, alt_names[i], (unsigned)strlen(alt_names[i]), GNUTLS_FSAN_APPEND); } } } gnutls_x509_crt_set_key_purpose_oid(crt, GNUTLS_KP_TLS_WWW_SERVER, 0); gnutls_x509_crt_set_key_usage(crt, GNUTLS_KEY_DIGITAL_SIGNATURE | GNUTLS_KEY_KEY_ENCIPHERMENT); gnutls_x509_crt_set_version(crt, 3); bytes = sizeof(buffer); if (gnutls_x509_crt_get_key_id(crt, 0, buffer, &bytes) >= 0) gnutls_x509_crt_set_subject_key_id(crt, buffer, bytes); gnutls_x509_crt_sign(crt, crt, key); /* * Save it... */ bytes = sizeof(buffer); if ((result = gnutls_x509_crt_export(crt, GNUTLS_X509_FMT_PEM, buffer, &bytes)) < 0) { DEBUG_printf(("1cupsMakeServerCredentials: Unable to export public key and X.509 certificate: %s", gnutls_strerror(result))); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(result), 0); gnutls_x509_crt_deinit(crt); gnutls_x509_privkey_deinit(key); return (0); } else if ((fp = cupsFileOpen(crtfile, "w")) != NULL) { DEBUG_printf(("1cupsMakeServerCredentials: Writing public key and X.509 certificate to \"%s\".", crtfile)); cupsFileWrite(fp, (char *)buffer, bytes); cupsFileClose(fp); } else { DEBUG_printf(("1cupsMakeServerCredentials: Unable to create public key and X.509 certificate file \"%s\": %s", crtfile, strerror(errno))); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); gnutls_x509_crt_deinit(crt); gnutls_x509_privkey_deinit(key); return (0); } /* * Cleanup... */ gnutls_x509_crt_deinit(crt); gnutls_x509_privkey_deinit(key); DEBUG_puts("1cupsMakeServerCredentials: Successfully created credentials."); return (1); } /* * 'cupsSetServerCredentials()' - Set the default server credentials. * * Note: The server credentials are used by all threads in the running process. * This function is threadsafe. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 on success, 0 on failure */ cupsSetServerCredentials( const char *path, /* I - Path to keychain/directory */ const char *common_name, /* I - Default common name for server */ int auto_create) /* I - 1 = automatically create self-signed certificates */ { char temp[1024]; /* Default path buffer */ DEBUG_printf(("cupsSetServerCredentials(path=\"%s\", common_name=\"%s\", auto_create=%d)", path, common_name, auto_create)); /* * Use defaults as needed... */ if (!path) path = http_gnutls_default_path(temp, sizeof(temp)); /* * Range check input... */ if (!path || !common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } _cupsMutexLock(&tls_mutex); /* * Free old values... */ if (tls_keypath) _cupsStrFree(tls_keypath); if (tls_common_name) _cupsStrFree(tls_common_name); /* * Save the new values... */ tls_keypath = _cupsStrAlloc(path); tls_auto_create = auto_create; tls_common_name = _cupsStrAlloc(common_name); _cupsMutexUnlock(&tls_mutex); return (1); } /* * 'httpCopyCredentials()' - Copy the credentials associated with the peer in * an encrypted connection. * * @since CUPS 1.5/macOS 10.7@ */ int /* O - Status of call (0 = success) */ httpCopyCredentials( http_t *http, /* I - Connection to server */ cups_array_t **credentials) /* O - Array of credentials */ { unsigned count; /* Number of certificates */ const gnutls_datum_t *certs; /* Certificates */ DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials)); if (credentials) *credentials = NULL; if (!http || !http->tls || !credentials) return (-1); *credentials = cupsArrayNew(NULL, NULL); certs = gnutls_certificate_get_peers(http->tls, &count); DEBUG_printf(("1httpCopyCredentials: certs=%p, count=%u", certs, count)); if (certs && count) { while (count > 0) { httpAddCredential(*credentials, certs->data, certs->size); certs ++; count --; } } return (0); } /* * '_httpCreateCredentials()' - Create credentials in the internal format. */ http_tls_credentials_t /* O - Internal credentials */ _httpCreateCredentials( cups_array_t *credentials) /* I - Array of credentials */ { (void)credentials; return (NULL); } /* * '_httpFreeCredentials()' - Free internal credentials. */ void _httpFreeCredentials( http_tls_credentials_t credentials) /* I - Internal credentials */ { (void)credentials; } /* * 'httpCredentialsAreValidForName()' - Return whether the credentials are valid for the given name. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 if valid, 0 otherwise */ httpCredentialsAreValidForName( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Name to check */ { gnutls_x509_crt_t cert; /* Certificate */ int result = 0; /* Result */ cert = http_gnutls_create_credential((http_credential_t *)cupsArrayFirst(credentials)); if (cert) { result = gnutls_x509_crt_check_hostname(cert, common_name) != 0; if (result) { gnutls_x509_crl_iter_t iter = NULL; /* Iterator */ unsigned char cserial[1024], /* Certificate serial number */ rserial[1024]; /* Revoked serial number */ size_t cserial_size, /* Size of cert serial number */ rserial_size; /* Size of revoked serial number */ _cupsMutexLock(&tls_mutex); if (gnutls_x509_crl_get_crt_count(tls_crl) > 0) { cserial_size = sizeof(cserial); gnutls_x509_crt_get_serial(cert, cserial, &cserial_size); rserial_size = sizeof(rserial); while (!gnutls_x509_crl_iter_crt_serial(tls_crl, &iter, rserial, &rserial_size, NULL)) { if (cserial_size == rserial_size && !memcmp(cserial, rserial, rserial_size)) { result = 0; break; } rserial_size = sizeof(rserial); } gnutls_x509_crl_iter_deinit(iter); } _cupsMutexUnlock(&tls_mutex); } gnutls_x509_crt_deinit(cert); } return (result); } /* * 'httpCredentialsGetTrust()' - Return the trust of credentials. * * @since CUPS 2.0/OS 10.10@ */ http_trust_t /* O - Level of trust */ httpCredentialsGetTrust( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for trust lookup */ { http_trust_t trust = HTTP_TRUST_OK; /* Trusted? */ gnutls_x509_crt_t cert; /* Certificate */ cups_array_t *tcreds = NULL; /* Trusted credentials */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread globals */ if (!common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No common name specified."), 1); return (HTTP_TRUST_UNKNOWN); } if ((cert = http_gnutls_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create credentials from array."), 1); return (HTTP_TRUST_UNKNOWN); } if (cg->any_root < 0) { _cupsSetDefaults(); http_gnutls_load_crl(); } /* * Look this common name up in the default keychains... */ httpLoadCredentials(NULL, &tcreds, common_name); if (tcreds) { char credentials_str[1024], /* String for incoming credentials */ tcreds_str[1024]; /* String for saved credentials */ httpCredentialsString(credentials, credentials_str, sizeof(credentials_str)); httpCredentialsString(tcreds, tcreds_str, sizeof(tcreds_str)); if (strcmp(credentials_str, tcreds_str)) { /* * Credentials don't match, let's look at the expiration date of the new * credentials and allow if the new ones have a later expiration... */ if (!cg->trust_first) { /* * Do not trust certificates on first use... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds)) { /* * The new credentials are not newly issued... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are older than stored credentials."), 1); trust = HTTP_TRUST_INVALID; } else if (!httpCredentialsAreValidForName(credentials, common_name)) { /* * The common name does not match the issued certificate... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(tcreds) < time(NULL)) { /* * Save the renewed credentials... */ trust = HTTP_TRUST_RENEWED; httpSaveCredentials(NULL, credentials, common_name); } } httpFreeCredentials(tcreds); } else if (cg->validate_certs && !httpCredentialsAreValidForName(credentials, common_name)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No stored credentials, not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (!cg->trust_first) { /* * See if we have a site CA certificate we can compare... */ if (!httpLoadCredentials(NULL, &tcreds, "site")) { if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1)) { /* * Certificate isn't directly generated from the CA cert... */ trust = HTTP_TRUST_INVALID; } else { /* * Do a tail comparison of the two certificates... */ http_credential_t *a, *b; /* Certificates */ for (a = (http_credential_t *)cupsArrayFirst(tcreds), b = (http_credential_t *)cupsArrayIndex(credentials, 1); a && b; a = (http_credential_t *)cupsArrayNext(tcreds), b = (http_credential_t *)cupsArrayNext(credentials)) if (a->datalen != b->datalen || memcmp(a->data, b->data, a->datalen)) break; if (a || b) trust = HTTP_TRUST_INVALID; } if (trust != HTTP_TRUST_OK) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials do not validate against site CA certificate."), 1); } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } } if (trust == HTTP_TRUST_OK && !cg->expired_certs) { time_t curtime; /* Current date/time */ time(&curtime); if (curtime < gnutls_x509_crt_get_activation_time(cert) || curtime > gnutls_x509_crt_get_expiration_time(cert)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials have expired."), 1); trust = HTTP_TRUST_EXPIRED; } } if (trust == HTTP_TRUST_OK && !cg->any_root && cupsArrayCount(credentials) == 1) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Self-signed credentials are blocked."), 1); trust = HTTP_TRUST_INVALID; } gnutls_x509_crt_deinit(cert); return (trust); } /* * 'httpCredentialsGetExpiration()' - Return the expiration date of the credentials. * * @since CUPS 2.0/OS 10.10@ */ time_t /* O - Expiration date of credentials */ httpCredentialsGetExpiration( cups_array_t *credentials) /* I - Credentials */ { gnutls_x509_crt_t cert; /* Certificate */ time_t result = 0; /* Result */ cert = http_gnutls_create_credential((http_credential_t *)cupsArrayFirst(credentials)); if (cert) { result = gnutls_x509_crt_get_expiration_time(cert); gnutls_x509_crt_deinit(cert); } return (result); } /* * 'httpCredentialsString()' - Return a string representing the credentials. * * @since CUPS 2.0/OS 10.10@ */ size_t /* O - Total size of credentials string */ httpCredentialsString( cups_array_t *credentials, /* I - Credentials */ char *buffer, /* I - Buffer or @code NULL@ */ size_t bufsize) /* I - Size of buffer */ { http_credential_t *first; /* First certificate */ gnutls_x509_crt_t cert; /* Certificate */ DEBUG_printf(("httpCredentialsString(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")", credentials, buffer, CUPS_LLCAST bufsize)); if (!buffer) return (0); if (bufsize > 0) *buffer = '\0'; if ((first = (http_credential_t *)cupsArrayFirst(credentials)) != NULL && (cert = http_gnutls_create_credential(first)) != NULL) { char name[256], /* Common name associated with cert */ issuer[256]; /* Issuer associated with cert */ size_t len; /* Length of string */ time_t expiration; /* Expiration date of cert */ int sigalg; /* Signature algorithm */ unsigned char md5_digest[16]; /* MD5 result */ len = sizeof(name) - 1; if (gnutls_x509_crt_get_dn_by_oid(cert, GNUTLS_OID_X520_COMMON_NAME, 0, 0, name, &len) >= 0) name[len] = '\0'; else strlcpy(name, "unknown", sizeof(name)); len = sizeof(issuer) - 1; if (gnutls_x509_crt_get_issuer_dn_by_oid(cert, GNUTLS_OID_X520_ORGANIZATION_NAME, 0, 0, issuer, &len) >= 0) issuer[len] = '\0'; else strlcpy(issuer, "unknown", sizeof(issuer)); expiration = gnutls_x509_crt_get_expiration_time(cert); sigalg = gnutls_x509_crt_get_signature_algorithm(cert); cupsHashData("md5", first->data, first->datalen, md5_digest, sizeof(md5_digest)); snprintf(buffer, bufsize, "%s (issued by %s) / %s / %s / %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", name, issuer, httpGetDateString(expiration), gnutls_sign_get_name((gnutls_sign_algorithm_t)sigalg), md5_digest[0], md5_digest[1], md5_digest[2], md5_digest[3], md5_digest[4], md5_digest[5], md5_digest[6], md5_digest[7], md5_digest[8], md5_digest[9], md5_digest[10], md5_digest[11], md5_digest[12], md5_digest[13], md5_digest[14], md5_digest[15]); gnutls_x509_crt_deinit(cert); } DEBUG_printf(("1httpCredentialsString: Returning \"%s\".", buffer)); return (strlen(buffer)); } /* * 'httpLoadCredentials()' - Load X.509 credentials from a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 0 on success, -1 on error */ httpLoadCredentials( const char *path, /* I - Keychain/PKCS#12 path */ cups_array_t **credentials, /* IO - Credentials */ const char *common_name) /* I - Common name for credentials */ { cups_file_t *fp; /* Certificate file */ char filename[1024], /* filename.crt */ temp[1024], /* Temporary string */ line[256]; /* Base64-encoded line */ unsigned char *data = NULL; /* Buffer for cert data */ size_t alloc_data = 0, /* Bytes allocated */ num_data = 0; /* Bytes used */ int decoded; /* Bytes decoded */ int in_certificate = 0; /* In a certificate? */ if (!credentials || !common_name) return (-1); if (!path) path = http_gnutls_default_path(temp, sizeof(temp)); if (!path) return (-1); http_gnutls_make_path(filename, sizeof(filename), path, common_name, "crt"); if ((fp = cupsFileOpen(filename, "r")) == NULL) return (-1); while (cupsFileGets(fp, line, sizeof(line))) { if (!strcmp(line, "-----BEGIN CERTIFICATE-----")) { if (in_certificate) { /* * Missing END CERTIFICATE... */ httpFreeCredentials(*credentials); *credentials = NULL; break; } in_certificate = 1; } else if (!strcmp(line, "-----END CERTIFICATE-----")) { if (!in_certificate || !num_data) { /* * Missing data... */ httpFreeCredentials(*credentials); *credentials = NULL; break; } if (!*credentials) *credentials = cupsArrayNew(NULL, NULL); if (httpAddCredential(*credentials, data, num_data)) { httpFreeCredentials(*credentials); *credentials = NULL; break; } num_data = 0; in_certificate = 0; } else if (in_certificate) { if (alloc_data == 0) { data = malloc(2048); alloc_data = 2048; if (!data) break; } else if ((num_data + strlen(line)) >= alloc_data) { unsigned char *tdata = realloc(data, alloc_data + 1024); /* Expanded buffer */ if (!tdata) { httpFreeCredentials(*credentials); *credentials = NULL; break; } data = tdata; alloc_data += 1024; } decoded = alloc_data - num_data; httpDecode64_2((char *)data + num_data, &decoded, line); num_data += (size_t)decoded; } } cupsFileClose(fp); if (in_certificate) { /* * Missing END CERTIFICATE... */ httpFreeCredentials(*credentials); *credentials = NULL; } if (data) free(data); return (*credentials ? 0 : -1); } /* * 'httpSaveCredentials()' - Save X.509 credentials to a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int /* O - -1 on error, 0 on success */ httpSaveCredentials( const char *path, /* I - Keychain/PKCS#12 path */ cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for credentials */ { cups_file_t *fp; /* Certificate file */ char filename[1024], /* filename.crt */ nfilename[1024],/* filename.crt.N */ temp[1024], /* Temporary string */ line[256]; /* Base64-encoded line */ const unsigned char *ptr; /* Pointer into certificate */ ssize_t remaining; /* Bytes left */ http_credential_t *cred; /* Current credential */ if (!credentials || !common_name) return (-1); if (!path) path = http_gnutls_default_path(temp, sizeof(temp)); if (!path) return (-1); http_gnutls_make_path(filename, sizeof(filename), path, common_name, "crt"); snprintf(nfilename, sizeof(nfilename), "%s.N", filename); if ((fp = cupsFileOpen(nfilename, "w")) == NULL) return (-1); fchmod(cupsFileNumber(fp), 0600); for (cred = (http_credential_t *)cupsArrayFirst(credentials); cred; cred = (http_credential_t *)cupsArrayNext(credentials)) { cupsFilePuts(fp, "-----BEGIN CERTIFICATE-----\n"); for (ptr = cred->data, remaining = (ssize_t)cred->datalen; remaining > 0; remaining -= 45, ptr += 45) { httpEncode64_2(line, sizeof(line), (char *)ptr, remaining > 45 ? 45 : remaining); cupsFilePrintf(fp, "%s\n", line); } cupsFilePuts(fp, "-----END CERTIFICATE-----\n"); } cupsFileClose(fp); return (rename(nfilename, filename)); } /* * 'http_gnutls_create_credential()' - Create a single credential in the internal format. */ static gnutls_x509_crt_t /* O - Certificate */ http_gnutls_create_credential( http_credential_t *credential) /* I - Credential */ { int result; /* Result from GNU TLS */ gnutls_x509_crt_t cert; /* Certificate */ gnutls_datum_t datum; /* Data record */ DEBUG_printf(("3http_gnutls_create_credential(credential=%p)", credential)); if (!credential) return (NULL); if ((result = gnutls_x509_crt_init(&cert)) < 0) { DEBUG_printf(("4http_gnutls_create_credential: init error: %s", gnutls_strerror(result))); return (NULL); } datum.data = credential->data; datum.size = credential->datalen; if ((result = gnutls_x509_crt_import(cert, &datum, GNUTLS_X509_FMT_DER)) < 0) { DEBUG_printf(("4http_gnutls_create_credential: import error: %s", gnutls_strerror(result))); gnutls_x509_crt_deinit(cert); return (NULL); } return (cert); } /* * 'http_gnutls_default_path()' - Get the default credential store path. */ static const char * /* O - Path or NULL on error */ http_gnutls_default_path(char *buffer,/* I - Path buffer */ size_t bufsize)/* I - Size of path buffer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if (cg->home && getuid()) { snprintf(buffer, bufsize, "%s/.cups", cg->home); if (access(buffer, 0)) { DEBUG_printf(("1http_gnutls_default_path: Making directory \"%s\".", buffer)); if (mkdir(buffer, 0700)) { DEBUG_printf(("1http_gnutls_default_path: Failed to make directory: %s", strerror(errno))); return (NULL); } } snprintf(buffer, bufsize, "%s/.cups/ssl", cg->home); if (access(buffer, 0)) { DEBUG_printf(("1http_gnutls_default_path: Making directory \"%s\".", buffer)); if (mkdir(buffer, 0700)) { DEBUG_printf(("1http_gnutls_default_path: Failed to make directory: %s", strerror(errno))); return (NULL); } } } else strlcpy(buffer, CUPS_SERVERROOT "/ssl", bufsize); DEBUG_printf(("1http_gnutls_default_path: Using default path \"%s\".", buffer)); return (buffer); } /* * 'http_gnutls_load_crl()' - Load the certificate revocation list, if any. */ static void http_gnutls_load_crl(void) { _cupsMutexLock(&tls_mutex); if (!gnutls_x509_crl_init(&tls_crl)) { cups_file_t *fp; /* CRL file */ char filename[1024], /* site.crl */ line[256]; /* Base64-encoded line */ unsigned char *data = NULL; /* Buffer for cert data */ size_t alloc_data = 0, /* Bytes allocated */ num_data = 0; /* Bytes used */ int decoded; /* Bytes decoded */ gnutls_datum_t datum; /* Data record */ http_gnutls_make_path(filename, sizeof(filename), CUPS_SERVERROOT, "site", "crl"); if ((fp = cupsFileOpen(filename, "r")) != NULL) { while (cupsFileGets(fp, line, sizeof(line))) { if (!strcmp(line, "-----BEGIN X509 CRL-----")) { if (num_data) { /* * Missing END X509 CRL... */ break; } } else if (!strcmp(line, "-----END X509 CRL-----")) { if (!num_data) { /* * Missing data... */ break; } datum.data = data; datum.size = num_data; gnutls_x509_crl_import(tls_crl, &datum, GNUTLS_X509_FMT_PEM); num_data = 0; } else { if (alloc_data == 0) { data = malloc(2048); alloc_data = 2048; if (!data) break; } else if ((num_data + strlen(line)) >= alloc_data) { unsigned char *tdata = realloc(data, alloc_data + 1024); /* Expanded buffer */ if (!tdata) break; data = tdata; alloc_data += 1024; } decoded = alloc_data - num_data; httpDecode64_2((char *)data + num_data, &decoded, line); num_data += (size_t)decoded; } } cupsFileClose(fp); if (data) free(data); } } _cupsMutexUnlock(&tls_mutex); } /* * 'http_gnutls_make_path()' - Format a filename for a certificate or key file. */ static const char * /* O - Filename */ http_gnutls_make_path( char *buffer, /* I - Filename buffer */ size_t bufsize, /* I - Size of buffer */ const char *dirname, /* I - Directory */ const char *filename, /* I - Filename (usually hostname) */ const char *ext) /* I - Extension */ { char *bufptr, /* Pointer into buffer */ *bufend = buffer + bufsize - 1; /* End of buffer */ snprintf(buffer, bufsize, "%s/", dirname); bufptr = buffer + strlen(buffer); while (*filename && bufptr < bufend) { if (_cups_isalnum(*filename) || *filename == '-' || *filename == '.') *bufptr++ = *filename; else *bufptr++ = '_'; filename ++; } if (bufptr < bufend) *bufptr++ = '.'; strlcpy(bufptr, ext, (size_t)(bufend - bufptr + 1)); return (buffer); } /* * 'http_gnutls_read()' - Read function for the GNU TLS library. */ static ssize_t /* O - Number of bytes read or -1 on error */ http_gnutls_read( gnutls_transport_ptr_t ptr, /* I - Connection to server */ void *data, /* I - Buffer */ size_t length) /* I - Number of bytes to read */ { http_t *http; /* HTTP connection */ ssize_t bytes; /* Bytes read */ DEBUG_printf(("5http_gnutls_read(ptr=%p, data=%p, length=%d)", ptr, data, (int)length)); http = (http_t *)ptr; if (!http->blocking || http->timeout_value > 0.0) { /* * Make sure we have data before we read... */ while (!_httpWait(http, http->wait_value, 0)) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; http->error = ETIMEDOUT; return (-1); } } bytes = recv(http->fd, data, length, 0); DEBUG_printf(("5http_gnutls_read: bytes=%d", (int)bytes)); return (bytes); } /* * 'http_gnutls_write()' - Write function for the GNU TLS library. */ static ssize_t /* O - Number of bytes written or -1 on error */ http_gnutls_write( gnutls_transport_ptr_t ptr, /* I - Connection to server */ const void *data, /* I - Data buffer */ size_t length) /* I - Number of bytes to write */ { ssize_t bytes; /* Bytes written */ DEBUG_printf(("5http_gnutls_write(ptr=%p, data=%p, length=%d)", ptr, data, (int)length)); bytes = send(((http_t *)ptr)->fd, data, length, 0); DEBUG_printf(("5http_gnutls_write: bytes=%d", (int)bytes)); return (bytes); } /* * '_httpTLSInitialize()' - Initialize the TLS stack. */ void _httpTLSInitialize(void) { /* * Initialize GNU TLS... */ gnutls_global_init(); } /* * '_httpTLSPending()' - Return the number of pending TLS-encrypted bytes. */ size_t /* O - Bytes available */ _httpTLSPending(http_t *http) /* I - HTTP connection */ { return (gnutls_record_check_pending(http->tls)); } /* * '_httpTLSRead()' - Read from a SSL/TLS connection. */ int /* O - Bytes read */ _httpTLSRead(http_t *http, /* I - Connection to server */ char *buf, /* I - Buffer to store data */ int len) /* I - Length of buffer */ { ssize_t result; /* Return value */ result = gnutls_record_recv(http->tls, buf, (size_t)len); if (result < 0 && !errno) { /* * Convert GNU TLS error to errno value... */ switch (result) { case GNUTLS_E_INTERRUPTED : errno = EINTR; break; case GNUTLS_E_AGAIN : errno = EAGAIN; break; default : errno = EPIPE; break; } result = -1; } return ((int)result); } /* * '_httpTLSSetOptions()' - Set TLS protocol and cipher suite options. */ void _httpTLSSetOptions(int options, /* I - Options */ int min_version, /* I - Minimum TLS version */ int max_version) /* I - Maximum TLS version */ { if (!(options & _HTTP_TLS_SET_DEFAULT) || tls_options < 0) { tls_options = options; tls_min_version = min_version; tls_max_version = max_version; } } /* * '_httpTLSStart()' - Set up SSL/TLS support on a connection. */ int /* O - 0 on success, -1 on failure */ _httpTLSStart(http_t *http) /* I - Connection to server */ { char hostname[256], /* Hostname */ *hostptr; /* Pointer into hostname */ int status; /* Status of handshake */ gnutls_certificate_credentials_t *credentials; /* TLS credentials */ char priority_string[2048]; /* Priority string */ int version; /* Current version */ double old_timeout; /* Old timeout value */ http_timeout_cb_t old_cb; /* Old timeout callback */ void *old_data; /* Old timeout data */ static const char * const versions[] =/* SSL/TLS versions */ { "VERS-SSL3.0", "VERS-TLS1.0", "VERS-TLS1.1", "VERS-TLS1.2", "VERS-TLS1.3", "VERS-TLS-ALL" }; DEBUG_printf(("3_httpTLSStart(http=%p)", http)); if (tls_options < 0) { DEBUG_puts("4_httpTLSStart: Setting defaults."); _cupsSetDefaults(); DEBUG_printf(("4_httpTLSStart: tls_options=%x", tls_options)); } if (http->mode == _HTTP_MODE_SERVER && !tls_keypath) { DEBUG_puts("4_httpTLSStart: cupsSetServerCredentials not called."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Server credentials not set."), 1); return (-1); } credentials = (gnutls_certificate_credentials_t *) malloc(sizeof(gnutls_certificate_credentials_t)); if (credentials == NULL) { DEBUG_printf(("8_httpStartTLS: Unable to allocate credentials: %s", strerror(errno))); http->error = errno; http->status = HTTP_STATUS_ERROR; _cupsSetHTTPError(HTTP_STATUS_ERROR); return (-1); } gnutls_certificate_allocate_credentials(credentials); status = gnutls_init(&http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_CLIENT : GNUTLS_SERVER); if (!status) status = gnutls_set_default_priority(http->tls); if (status) { http->error = EIO; http->status = HTTP_STATUS_ERROR; DEBUG_printf(("4_httpTLSStart: Unable to initialize common TLS parameters: %s", gnutls_strerror(status))); _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, gnutls_strerror(status), 0); gnutls_deinit(http->tls); gnutls_certificate_free_credentials(*credentials); free(credentials); http->tls = NULL; return (-1); } if (http->mode == _HTTP_MODE_CLIENT) { /* * Client: get the hostname to use for TLS... */ if (httpAddrLocalhost(http->hostaddr)) { strlcpy(hostname, "localhost", sizeof(hostname)); } else { /* * Otherwise make sure the hostname we have does not end in a trailing dot. */ strlcpy(hostname, http->hostname, sizeof(hostname)); if ((hostptr = hostname + strlen(hostname) - 1) >= hostname && *hostptr == '.') *hostptr = '\0'; } status = gnutls_server_name_set(http->tls, GNUTLS_NAME_DNS, hostname, strlen(hostname)); } else { /* * Server: get certificate and private key... */ char crtfile[1024], /* Certificate file */ keyfile[1024]; /* Private key file */ const char *cn, // Common name to lookup *cnptr; // Pointer into common name int have_creds = 0; /* Have credentials? */ if (http->fields[HTTP_FIELD_HOST]) { /* * Use hostname for TLS upgrade... */ strlcpy(hostname, http->fields[HTTP_FIELD_HOST], sizeof(hostname)); } else { /* * Resolve hostname from connection address... */ http_addr_t addr; /* Connection address */ socklen_t addrlen; /* Length of address */ addrlen = sizeof(addr); if (getsockname(http->fd, (struct sockaddr *)&addr, &addrlen)) { DEBUG_printf(("4_httpTLSStart: Unable to get socket address: %s", strerror(errno))); hostname[0] = '\0'; } else if (httpAddrLocalhost(&addr)) hostname[0] = '\0'; else { httpAddrLookup(&addr, hostname, sizeof(hostname)); DEBUG_printf(("4_httpTLSStart: Resolved socket address to \"%s\".", hostname)); } } if (isdigit(hostname[0] & 255) || hostname[0] == '[') hostname[0] = '\0'; /* Don't allow numeric addresses */ _cupsMutexLock(&tls_mutex); if (hostname[0]) cn = hostname; else cn = tls_common_name; if (cn) { /* * First look in the CUPS keystore... */ http_gnutls_make_path(crtfile, sizeof(crtfile), tls_keypath, cn, "crt"); http_gnutls_make_path(keyfile, sizeof(keyfile), tls_keypath, cn, "key"); if (access(crtfile, R_OK) || access(keyfile, R_OK)) { /* * No CUPS-managed certs, look for CA certs... */ char cacrtfile[1024], cakeyfile[1024]; /* CA cert files */ snprintf(cacrtfile, sizeof(cacrtfile), "/etc/letsencrypt/live/%s/fullchain.pem", cn); snprintf(cakeyfile, sizeof(cakeyfile), "/etc/letsencrypt/live/%s/privkey.pem", cn); if ((access(cacrtfile, R_OK) || access(cakeyfile, R_OK)) && (cnptr = strchr(cn, '.')) != NULL) { /* * Try just domain name... */ cnptr ++; if (strchr(cnptr, '.')) { snprintf(cacrtfile, sizeof(cacrtfile), "/etc/letsencrypt/live/%s/fullchain.pem", cnptr); snprintf(cakeyfile, sizeof(cakeyfile), "/etc/letsencrypt/live/%s/privkey.pem", cnptr); } } if (!access(cacrtfile, R_OK) && !access(cakeyfile, R_OK)) { /* * Use the CA certs... */ strlcpy(crtfile, cacrtfile, sizeof(crtfile)); strlcpy(keyfile, cakeyfile, sizeof(keyfile)); } } have_creds = !access(crtfile, R_OK) && !access(keyfile, R_OK); } if (!have_creds && tls_auto_create && cn) { DEBUG_printf(("4_httpTLSStart: Auto-create credentials for \"%s\".", cn)); if (!cupsMakeServerCredentials(tls_keypath, cn, 0, NULL, time(NULL) + 3650 * 86400)) { DEBUG_puts("4_httpTLSStart: cupsMakeServerCredentials failed."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create server credentials."), 1); _cupsMutexUnlock(&tls_mutex); return (-1); } } DEBUG_printf(("4_httpTLSStart: Using certificate \"%s\" and private key \"%s\".", crtfile, keyfile)); _cupsMutexUnlock(&tls_mutex); status = gnutls_certificate_set_x509_key_file(*credentials, crtfile, keyfile, GNUTLS_X509_FMT_PEM); } if (!status) status = gnutls_credentials_set(http->tls, GNUTLS_CRD_CERTIFICATE, *credentials); if (status) { http->error = EIO; http->status = HTTP_STATUS_ERROR; DEBUG_printf(("4_httpTLSStart: Unable to complete client/server setup: %s", gnutls_strerror(status))); _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, gnutls_strerror(status), 0); gnutls_deinit(http->tls); gnutls_certificate_free_credentials(*credentials); free(credentials); http->tls = NULL; return (-1); } strlcpy(priority_string, "NORMAL", sizeof(priority_string)); if (tls_max_version < _HTTP_TLS_MAX) { /* * Require specific TLS versions... */ strlcat(priority_string, ":-VERS-TLS-ALL", sizeof(priority_string)); for (version = tls_min_version; version <= tls_max_version; version ++) { strlcat(priority_string, ":+", sizeof(priority_string)); strlcat(priority_string, versions[version], sizeof(priority_string)); } } else if (tls_min_version == _HTTP_TLS_SSL3) { /* * Allow all versions of TLS and SSL/3.0... */ strlcat(priority_string, ":+VERS-TLS-ALL:+VERS-SSL3.0", sizeof(priority_string)); } else { /* * Require a minimum version... */ strlcat(priority_string, ":+VERS-TLS-ALL", sizeof(priority_string)); for (version = 0; version < tls_min_version; version ++) { strlcat(priority_string, ":-", sizeof(priority_string)); strlcat(priority_string, versions[version], sizeof(priority_string)); } } if (tls_options & _HTTP_TLS_ALLOW_RC4) strlcat(priority_string, ":+ARCFOUR-128", sizeof(priority_string)); else strlcat(priority_string, ":!ARCFOUR-128", sizeof(priority_string)); strlcat(priority_string, ":!ANON-DH", sizeof(priority_string)); if (tls_options & _HTTP_TLS_DENY_CBC) strlcat(priority_string, ":!AES-128-CBC:!AES-256-CBC:!CAMELLIA-128-CBC:!CAMELLIA-256-CBC:!3DES-CBC", sizeof(priority_string)); #ifdef HAVE_GNUTLS_PRIORITY_SET_DIRECT gnutls_priority_set_direct(http->tls, priority_string, NULL); #else gnutls_priority_t priority; /* Priority */ gnutls_priority_init(&priority, priority_string, NULL); gnutls_priority_set(http->tls, priority); gnutls_priority_deinit(priority); #endif /* HAVE_GNUTLS_PRIORITY_SET_DIRECT */ gnutls_transport_set_ptr(http->tls, (gnutls_transport_ptr_t)http); gnutls_transport_set_pull_function(http->tls, http_gnutls_read); #ifdef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION gnutls_transport_set_pull_timeout_function(http->tls, (gnutls_pull_timeout_func)httpWait); #endif /* HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION */ gnutls_transport_set_push_function(http->tls, http_gnutls_write); /* * Enforce a minimum timeout of 10 seconds for the TLS handshake... */ old_timeout = http->timeout_value; old_cb = http->timeout_cb; old_data = http->timeout_data; if (!old_cb || old_timeout < 10.0) { DEBUG_puts("4_httpTLSStart: Setting timeout to 10 seconds."); httpSetTimeout(http, 10.0, NULL, NULL); } /* * Do the TLS handshake... */ while ((status = gnutls_handshake(http->tls)) != GNUTLS_E_SUCCESS) { DEBUG_printf(("5_httpStartTLS: gnutls_handshake returned %d (%s)", status, gnutls_strerror(status))); if (gnutls_error_is_fatal(status)) { http->error = EIO; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, gnutls_strerror(status), 0); gnutls_deinit(http->tls); gnutls_certificate_free_credentials(*credentials); free(credentials); http->tls = NULL; httpSetTimeout(http, old_timeout, old_cb, old_data); return (-1); } } /* * Restore the previous timeout settings... */ httpSetTimeout(http, old_timeout, old_cb, old_data); http->tls_credentials = credentials; return (0); } /* * '_httpTLSStop()' - Shut down SSL/TLS on a connection. */ void _httpTLSStop(http_t *http) /* I - Connection to server */ { int error; /* Error code */ error = gnutls_bye(http->tls, GNUTLS_SHUT_WR); if (error != GNUTLS_E_SUCCESS) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gnutls_strerror(errno), 0); gnutls_deinit(http->tls); http->tls = NULL; if (http->tls_credentials) { gnutls_certificate_free_credentials(*(http->tls_credentials)); free(http->tls_credentials); http->tls_credentials = NULL; } } /* * '_httpTLSWrite()' - Write to a SSL/TLS connection. */ int /* O - Bytes written */ _httpTLSWrite(http_t *http, /* I - Connection to server */ const char *buf, /* I - Buffer holding data */ int len) /* I - Length of buffer */ { ssize_t result; /* Return value */ DEBUG_printf(("5_httpTLSWrite(http=%p, buf=%p, len=%d)", http, buf, len)); result = gnutls_record_send(http->tls, buf, (size_t)len); if (result < 0 && !errno) { /* * Convert GNU TLS error to errno value... */ switch (result) { case GNUTLS_E_INTERRUPTED : errno = EINTR; break; case GNUTLS_E_AGAIN : errno = EAGAIN; break; default : errno = EPIPE; break; } result = -1; } DEBUG_printf(("5_httpTLSWrite: Returning %d.", (int)result)); return ((int)result); } cups-2.4.7/cups/tls-darwin.h0000644000175000017500000000274614502571342015601 0ustar zdohnalzdohnal/* * TLS support header for CUPS on macOS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /**** This file is included from tls-darwin.c ****/ extern char **environ; #ifndef _SECURITY_VERSION_GREATER_THAN_57610_ typedef CF_OPTIONS(uint32_t, SecKeyUsage) { kSecKeyUsageAll = 0x7FFFFFFF }; #endif /* !_SECURITY_VERSION_GREATER_THAN_57610_ */ extern const void * kSecCSRChallengePassword; extern const void * kSecSubjectAltName; extern const void * kSecCertificateKeyUsage; extern const void * kSecCSRBasicConstraintsPathLen; extern const void * kSecCertificateExtensions; extern const void * kSecCertificateExtensionsEncoded; extern const void * kSecOidCommonName; extern const void * kSecOidCountryName; extern const void * kSecOidStateProvinceName; extern const void * kSecOidLocalityName; extern const void * kSecOidOrganization; extern const void * kSecOidOrganizationalUnit; extern bool SecCertificateIsValid(SecCertificateRef certificate, CFAbsoluteTime verifyTime); extern CFAbsoluteTime SecCertificateNotValidAfter(SecCertificateRef certificate); extern SecCertificateRef SecGenerateSelfSignedCertificate(CFArrayRef subject, CFDictionaryRef parameters, SecKeyRef publicKey, SecKeyRef privateKey); extern SecIdentityRef SecIdentityCreate(CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey); cups-2.4.7/cups/tls-darwin.c0000644000175000017500000017744314502571342015603 0ustar zdohnalzdohnal/* * TLS support code for CUPS on macOS. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /**** This file is included from tls.c ****/ /* * Include necessary headers... */ #include #include "tls-darwin.h" /* * Constants, very secure stuff... */ #define _CUPS_CDSA_PASSWORD "42" /* CUPS keychain password */ #define _CUPS_CDSA_PASSLEN 2 /* Length of keychain password */ /* * Local globals... */ static int tls_auto_create = 0; /* Auto-create self-signed certs? */ static char *tls_common_name = NULL; /* Default common name */ #if TARGET_OS_OSX static int tls_cups_keychain = 0; /* Opened the CUPS keychain? */ static SecKeychainRef tls_keychain = NULL; /* Server cert keychain */ #else static SecIdentityRef tls_selfsigned = NULL; /* Temporary self-signed cert */ #endif /* TARGET_OS_OSX */ static char *tls_keypath = NULL; /* Server cert keychain path */ static _cups_mutex_t tls_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for keychain/certs */ static int tls_options = -1,/* Options for TLS connections */ tls_min_version = _HTTP_TLS_1_0, tls_max_version = _HTTP_TLS_MAX; /* * Local functions... */ static CFArrayRef http_cdsa_copy_server(const char *common_name); static SecCertificateRef http_cdsa_create_credential(http_credential_t *credential); #if TARGET_OS_OSX static const char *http_cdsa_default_path(char *buffer, size_t bufsize); static SecKeychainRef http_cdsa_open_keychain(const char *path, char *filename, size_t filesize); static SecKeychainRef http_cdsa_open_system_keychain(void); #endif /* TARGET_OS_OSX */ static OSStatus http_cdsa_read(SSLConnectionRef connection, void *data, size_t *dataLength); static int http_cdsa_set_credentials(http_t *http); static OSStatus http_cdsa_write(SSLConnectionRef connection, const void *data, size_t *dataLength); /* * 'cupsMakeServerCredentials()' - Make a self-signed certificate and private key pair. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 on success, 0 on failure */ cupsMakeServerCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ const char *common_name, /* I - Common name */ int num_alt_names, /* I - Number of subject alternate names */ const char **alt_names, /* I - Subject Alternate Names */ time_t expiration_date) /* I - Expiration date */ { #if TARGET_OS_OSX int pid, /* Process ID of command */ status, /* Status of command */ i; /* Looping var */ char command[1024], /* Command */ *argv[5], /* Command-line arguments */ *envp[1000], /* Environment variables */ days[32], /* CERTTOOL_EXPIRATION_DAYS env var */ keychain[1024], /* Keychain argument */ infofile[1024], /* Type-in information for cert */ filename[1024]; /* Default keychain path */ cups_file_t *fp; /* Seed/info file */ DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, (void *)alt_names, (int)expiration_date)); (void)num_alt_names; (void)alt_names; if (!path) path = http_cdsa_default_path(filename, sizeof(filename)); /* * Run the "certtool" command to generate a self-signed certificate... */ if (!cupsFileFind("certtool", getenv("PATH"), 1, command, sizeof(command))) return (0); /* * Create a file with the certificate information fields... * * Note: This assumes that the default questions are asked by the certtool * command... */ if ((fp = cupsTempFile2(infofile, sizeof(infofile))) == NULL) return (0); cupsFilePrintf(fp, "CUPS Self-Signed Certificate\n" /* Enter key and certificate label */ "r\n" /* Generate RSA key pair */ "2048\n" /* 2048 bit encryption key */ "y\n" /* OK (y = yes) */ "b\n" /* Usage (b=signing/encryption) */ "2\n" /* Sign with SHA256 */ "y\n" /* OK (y = yes) */ "%s\n" /* Common name */ "\n" /* Country (default) */ "\n" /* Organization (default) */ "\n" /* Organizational unit (default) */ "\n" /* State/Province (default) */ "\n" /* Email address */ "y\n", /* OK (y = yes) */ common_name); cupsFileClose(fp); snprintf(keychain, sizeof(keychain), "k=%s", path); argv[0] = "certtool"; argv[1] = "c"; argv[2] = keychain; argv[3] = NULL; snprintf(days, sizeof(days), "CERTTOOL_EXPIRATION_DAYS=%d", (int)((expiration_date - time(NULL) + 86399) / 86400)); envp[0] = days; for (i = 0; i < (int)(sizeof(envp) / sizeof(envp[0]) - 2) && environ[i]; i ++) envp[i + 1] = environ[i]; envp[i] = NULL; posix_spawn_file_actions_t actions; /* File actions */ posix_spawn_file_actions_init(&actions); posix_spawn_file_actions_addclose(&actions, 0); posix_spawn_file_actions_addopen(&actions, 0, infofile, O_RDONLY, 0); posix_spawn_file_actions_addclose(&actions, 1); posix_spawn_file_actions_addopen(&actions, 1, "/dev/null", O_WRONLY, 0); posix_spawn_file_actions_addclose(&actions, 2); posix_spawn_file_actions_addopen(&actions, 2, "/dev/null", O_WRONLY, 0); if (posix_spawn(&pid, command, &actions, NULL, argv, envp)) { unlink(infofile); return (0); } posix_spawn_file_actions_destroy(&actions); unlink(infofile); while (waitpid(pid, &status, 0) < 0) if (errno != EINTR) { return (0); } return (!status); #else int status = 0; /* Return status */ OSStatus err; /* Error code (if any) */ CFStringRef cfcommon_name = NULL; /* CF string for server name */ SecIdentityRef ident = NULL; /* Identity */ SecKeyRef publicKey = NULL, /* Public key */ privateKey = NULL; /* Private key */ SecCertificateRef cert = NULL; /* Self-signed certificate */ CFMutableDictionaryRef keyParams = NULL; /* Key generation parameters */ DEBUG_printf(("cupsMakeServerCredentials(path=\"%s\", common_name=\"%s\", num_alt_names=%d, alt_names=%p, expiration_date=%d)", path, common_name, num_alt_names, alt_names, (int)expiration_date)); (void)path; (void)num_alt_names; (void)alt_names; (void)expiration_date; if (path) { DEBUG_puts("1cupsMakeServerCredentials: No keychain support compiled in, returning 0."); return (0); } if (tls_selfsigned) { DEBUG_puts("1cupsMakeServerCredentials: Using existing self-signed cert."); return (1); } cfcommon_name = CFStringCreateWithCString(kCFAllocatorDefault, common_name, kCFStringEncodingUTF8); if (!cfcommon_name) { DEBUG_puts("1cupsMakeServerCredentials: Unable to create CF string of common name."); goto cleanup; } /* * Create a public/private key pair... */ keyParams = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (!keyParams) { DEBUG_puts("1cupsMakeServerCredentials: Unable to create key parameters dictionary."); goto cleanup; } CFDictionaryAddValue(keyParams, kSecAttrKeyType, kSecAttrKeyTypeRSA); CFDictionaryAddValue(keyParams, kSecAttrKeySizeInBits, CFSTR("2048")); CFDictionaryAddValue(keyParams, kSecAttrLabel, cfcommon_name); err = SecKeyGeneratePair(keyParams, &publicKey, &privateKey); if (err != noErr) { DEBUG_printf(("1cupsMakeServerCredentials: Unable to generate key pair: %d.", (int)err)); goto cleanup; } /* * Create a self-signed certificate using the public/private key pair... */ CFIndex usageInt = kSecKeyUsageAll; CFNumberRef usage = CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &usageInt); CFIndex lenInt = 0; CFNumberRef len = CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &lenInt); CFTypeRef certKeys[] = { kSecCSRBasicConstraintsPathLen, kSecSubjectAltName, kSecCertificateKeyUsage }; CFTypeRef certValues[] = { len, cfcommon_name, usage }; CFDictionaryRef certParams = CFDictionaryCreate(kCFAllocatorDefault, certKeys, certValues, sizeof(certKeys) / sizeof(certKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFRelease(usage); CFRelease(len); const void *ca_o[] = { kSecOidOrganization, CFSTR("") }; const void *ca_cn[] = { kSecOidCommonName, cfcommon_name }; CFArrayRef ca_o_dn = CFArrayCreate(kCFAllocatorDefault, ca_o, 2, NULL); CFArrayRef ca_cn_dn = CFArrayCreate(kCFAllocatorDefault, ca_cn, 2, NULL); const void *ca_dn_array[2]; ca_dn_array[0] = CFArrayCreate(kCFAllocatorDefault, (const void **)&ca_o_dn, 1, NULL); ca_dn_array[1] = CFArrayCreate(kCFAllocatorDefault, (const void **)&ca_cn_dn, 1, NULL); CFArrayRef subject = CFArrayCreate(kCFAllocatorDefault, ca_dn_array, 2, NULL); cert = SecGenerateSelfSignedCertificate(subject, certParams, publicKey, privateKey); CFRelease(subject); CFRelease(certParams); if (!cert) { DEBUG_puts("1cupsMakeServerCredentials: Unable to create self-signed certificate."); goto cleanup; } ident = SecIdentityCreate(kCFAllocatorDefault, cert, privateKey); if (ident) { _cupsMutexLock(&tls_mutex); if (tls_selfsigned) CFRelease(ident); else tls_selfsigned = ident; _cupsMutexUnlock(&tls_mutex); # if 0 /* Someday perhaps SecItemCopyMatching will work for identities, at which point */ CFTypeRef itemKeys[] = { kSecClass, kSecAttrLabel, kSecValueRef }; CFTypeRef itemValues[] = { kSecClassIdentity, cfcommon_name, ident }; CFDictionaryRef itemAttrs = CFDictionaryCreate(kCFAllocatorDefault, itemKeys, itemValues, sizeof(itemKeys) / sizeof(itemKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); err = SecItemAdd(itemAttrs, NULL); /* SecItemAdd consumes itemAttrs... */ CFRelease(ident); if (err != noErr) { DEBUG_printf(("1cupsMakeServerCredentials: Unable to add identity to keychain: %d.", (int)err)); goto cleanup; } # endif /* 0 */ status = 1; } else DEBUG_puts("1cupsMakeServerCredentials: Unable to create identity from cert and keys."); /* * Cleanup and return... */ cleanup: if (cfcommon_name) CFRelease(cfcommon_name); if (keyParams) CFRelease(keyParams); if (cert) CFRelease(cert); if (publicKey) CFRelease(publicKey); if (privateKey) CFRelease(privateKey); DEBUG_printf(("1cupsMakeServerCredentials: Returning %d.", status)); return (status); #endif /* TARGET_OS_OSX */ } /* * 'cupsSetServerCredentials()' - Set the default server credentials. * * Note: The server credentials are used by all threads in the running process. * This function is threadsafe. * * @since CUPS 2.0/macOS 10.10@ */ int /* O - 1 on success, 0 on failure */ cupsSetServerCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ const char *common_name, /* I - Default common name for server */ int auto_create) /* I - 1 = automatically create self-signed certificates */ { DEBUG_printf(("cupsSetServerCredentials(path=\"%s\", common_name=\"%s\", auto_create=%d)", path, common_name, auto_create)); #if TARGET_OS_OSX char filename[1024]; /* Keychain filename */ SecKeychainRef keychain = http_cdsa_open_keychain(path, filename, sizeof(filename)); if (!keychain) { DEBUG_puts("1cupsSetServerCredentials: Unable to open keychain."); return (0); } _cupsMutexLock(&tls_mutex); /* * Close any keychain that is currently open... */ if (tls_keychain) CFRelease(tls_keychain); if (tls_keypath) _cupsStrFree(tls_keypath); if (tls_common_name) _cupsStrFree(tls_common_name); /* * Save the new keychain... */ tls_keychain = keychain; tls_keypath = _cupsStrAlloc(filename); tls_auto_create = auto_create; tls_common_name = _cupsStrAlloc(common_name); _cupsMutexUnlock(&tls_mutex); DEBUG_puts("1cupsSetServerCredentials: Opened keychain, returning 1."); return (1); #else if (path) { DEBUG_puts("1cupsSetServerCredentials: No keychain support compiled in, returning 0."); return (0); } tls_auto_create = auto_create; tls_common_name = _cupsStrAlloc(common_name); return (1); #endif /* TARGET_OS_OSX */ } /* * 'httpCopyCredentials()' - Copy the credentials associated with the peer in * an encrypted connection. * * @since CUPS 1.5/macOS 10.7@ */ int /* O - Status of call (0 = success) */ httpCopyCredentials( http_t *http, /* I - Connection to server */ cups_array_t **credentials) /* O - Array of credentials */ { OSStatus error; /* Error code */ SecTrustRef peerTrust; /* Peer trust reference */ CFIndex count; /* Number of credentials */ SecCertificateRef secCert; /* Certificate reference */ CFDataRef data; /* Certificate data */ CFIndex i; /* Looping var */ DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", (void *)http, (void *)credentials)); if (credentials) *credentials = NULL; if (!http || !http->tls || !credentials) return (-1); if (!(error = SSLCopyPeerTrust(http->tls, &peerTrust)) && peerTrust) { DEBUG_printf(("2httpCopyCredentials: Peer provided %ld certificates.", (long)SecTrustGetCertificateCount(peerTrust))); if ((*credentials = cupsArrayNew(NULL, NULL)) != NULL) { count = SecTrustGetCertificateCount(peerTrust); for (i = 0; i < count; i ++) { secCert = SecTrustGetCertificateAtIndex(peerTrust, i); #ifdef DEBUG CFStringRef cf_name = SecCertificateCopySubjectSummary(secCert); char name[1024]; if (cf_name) CFStringGetCString(cf_name, name, sizeof(name), kCFStringEncodingUTF8); else strlcpy(name, "unknown", sizeof(name)); DEBUG_printf(("2httpCopyCredentials: Certificate %ld name is \"%s\".", (long)i, name)); #endif /* DEBUG */ if ((data = SecCertificateCopyData(secCert)) != NULL) { DEBUG_printf(("2httpCopyCredentials: Adding %ld byte certificate blob.", (long)CFDataGetLength(data))); httpAddCredential(*credentials, CFDataGetBytePtr(data), (size_t)CFDataGetLength(data)); CFRelease(data); } } } CFRelease(peerTrust); } return (error); } /* * '_httpCreateCredentials()' - Create credentials in the internal format. */ http_tls_credentials_t /* O - Internal credentials */ _httpCreateCredentials( cups_array_t *credentials) /* I - Array of credentials */ { CFMutableArrayRef peerCerts; /* Peer credentials reference */ SecCertificateRef secCert; /* Certificate reference */ http_credential_t *credential; /* Credential data */ if (!credentials) return (NULL); if ((peerCerts = CFArrayCreateMutable(kCFAllocatorDefault, cupsArrayCount(credentials), &kCFTypeArrayCallBacks)) == NULL) return (NULL); for (credential = (http_credential_t *)cupsArrayFirst(credentials); credential; credential = (http_credential_t *)cupsArrayNext(credentials)) { if ((secCert = http_cdsa_create_credential(credential)) != NULL) { CFArrayAppendValue(peerCerts, secCert); CFRelease(secCert); } } return (peerCerts); } /* * 'httpCredentialsAreValidForName()' - Return whether the credentials are valid for the given name. * * @since CUPS 2.0/macOS 10.10@ */ int /* O - 1 if valid, 0 otherwise */ httpCredentialsAreValidForName( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Name to check */ { SecCertificateRef secCert; /* Certificate reference */ CFStringRef cfcert_name = NULL; /* Certificate's common name (CF string) */ char cert_name[256]; /* Certificate's common name (C string) */ int valid = 1; /* Valid name? */ if ((secCert = http_cdsa_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) return (0); /* * Compare the common names... */ if ((cfcert_name = SecCertificateCopySubjectSummary(secCert)) == NULL) { /* * Can't get common name, cannot be valid... */ valid = 0; } else if (CFStringGetCString(cfcert_name, cert_name, sizeof(cert_name), kCFStringEncodingUTF8) && _cups_strcasecmp(common_name, cert_name)) { /* * Not an exact match for the common name, check for wildcard certs... */ const char *domain = strchr(common_name, '.'); /* Domain in common name */ if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) { /* * Not a wildcard match. */ /* TODO: Check subject alternate names */ valid = 0; } } if (cfcert_name) CFRelease(cfcert_name); CFRelease(secCert); return (valid); } /* * 'httpCredentialsGetTrust()' - Return the trust of credentials. * * @since CUPS 2.0/macOS 10.10@ */ http_trust_t /* O - Level of trust */ httpCredentialsGetTrust( cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for trust lookup */ { SecCertificateRef secCert; /* Certificate reference */ http_trust_t trust = HTTP_TRUST_OK; /* Trusted? */ cups_array_t *tcreds = NULL; /* Trusted credentials */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread globals */ if (!common_name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No common name specified."), 1); return (HTTP_TRUST_UNKNOWN); } if ((secCert = http_cdsa_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create credentials from array."), 1); return (HTTP_TRUST_UNKNOWN); } if (cg->any_root < 0) _cupsSetDefaults(); /* * Look this common name up in the default keychains... */ httpLoadCredentials(NULL, &tcreds, common_name); if (tcreds) { char credentials_str[1024], /* String for incoming credentials */ tcreds_str[1024]; /* String for saved credentials */ httpCredentialsString(credentials, credentials_str, sizeof(credentials_str)); httpCredentialsString(tcreds, tcreds_str, sizeof(tcreds_str)); if (strcmp(credentials_str, tcreds_str)) { /* * Credentials don't match, let's look at the expiration date of the new * credentials and allow if the new ones have a later expiration... */ if (!cg->trust_first) { /* * Do not trust certificates on first use... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(credentials) <= httpCredentialsGetExpiration(tcreds)) { /* * The new credentials are not newly issued... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are older than stored credentials."), 1); trust = HTTP_TRUST_INVALID; } else if (!httpCredentialsAreValidForName(credentials, common_name)) { /* * The common name does not match the issued certificate... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("New credentials are not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (httpCredentialsGetExpiration(tcreds) < time(NULL)) { /* * Save the renewed credentials... */ trust = HTTP_TRUST_RENEWED; httpSaveCredentials(NULL, credentials, common_name); } } httpFreeCredentials(tcreds); } else if (cg->validate_certs && !httpCredentialsAreValidForName(credentials, common_name)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No stored credentials, not valid for name."), 1); trust = HTTP_TRUST_INVALID; } else if (!cg->trust_first) { /* * See if we have a site CA certificate we can compare... */ if (!httpLoadCredentials(NULL, &tcreds, "site")) { if (cupsArrayCount(credentials) != (cupsArrayCount(tcreds) + 1)) { /* * Certificate isn't directly generated from the CA cert... */ trust = HTTP_TRUST_INVALID; } else { /* * Do a tail comparison of the two certificates... */ http_credential_t *a, *b; /* Certificates */ for (a = (http_credential_t *)cupsArrayFirst(tcreds), b = (http_credential_t *)cupsArrayIndex(credentials, 1); a && b; a = (http_credential_t *)cupsArrayNext(tcreds), b = (http_credential_t *)cupsArrayNext(credentials)) if (a->datalen != b->datalen || memcmp(a->data, b->data, a->datalen)) break; if (a || b) trust = HTTP_TRUST_INVALID; } if (trust != HTTP_TRUST_OK) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials do not validate against site CA certificate."), 1); } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Trust on first use is disabled."), 1); trust = HTTP_TRUST_INVALID; } } if (trust == HTTP_TRUST_OK && !cg->expired_certs && !SecCertificateIsValid(secCert, CFAbsoluteTimeGetCurrent())) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Credentials have expired."), 1); trust = HTTP_TRUST_EXPIRED; } if (trust == HTTP_TRUST_OK && !cg->any_root && cupsArrayCount(credentials) == 1) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Self-signed credentials are blocked."), 1); trust = HTTP_TRUST_INVALID; } CFRelease(secCert); return (trust); } /* * 'httpCredentialsGetExpiration()' - Return the expiration date of the credentials. * * @since CUPS 2.0/macOS 10.10@ */ time_t /* O - Expiration date of credentials */ httpCredentialsGetExpiration( cups_array_t *credentials) /* I - Credentials */ { SecCertificateRef secCert; /* Certificate reference */ time_t expiration; /* Expiration date */ if ((secCert = http_cdsa_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) return (0); expiration = (time_t)(SecCertificateNotValidAfter(secCert) + kCFAbsoluteTimeIntervalSince1970); CFRelease(secCert); return (expiration); } /* * 'httpCredentialsString()' - Return a string representing the credentials. * * @since CUPS 2.0/macOS 10.10@ */ size_t /* O - Total size of credentials string */ httpCredentialsString( cups_array_t *credentials, /* I - Credentials */ char *buffer, /* I - Buffer or @code NULL@ */ size_t bufsize) /* I - Size of buffer */ { http_credential_t *first; /* First certificate */ SecCertificateRef secCert; /* Certificate reference */ DEBUG_printf(("httpCredentialsString(credentials=%p, buffer=%p, bufsize=" CUPS_LLFMT ")", (void *)credentials, (void *)buffer, CUPS_LLCAST bufsize)); if (!buffer) return (0); if (bufsize > 0) *buffer = '\0'; if ((first = (http_credential_t *)cupsArrayFirst(credentials)) != NULL && (secCert = http_cdsa_create_credential(first)) != NULL) { /* * Copy certificate (string) values from the SecCertificateRef and produce * a one-line summary. The API for accessing certificate values like the * issuer name is, um, "interesting"... */ # if TARGET_OS_OSX CFDictionaryRef cf_dict; /* Dictionary for certificate */ # endif /* TARGET_OS_OSX */ CFStringRef cf_string; /* CF string */ char commonName[256],/* Common name associated with cert */ issuer[256], /* Issuer name */ sigalg[256]; /* Signature algorithm */ time_t expiration; /* Expiration date of cert */ unsigned char md5_digest[16]; /* MD5 result */ if (SecCertificateCopyCommonName(secCert, &cf_string) == noErr) { CFStringGetCString(cf_string, commonName, (CFIndex)sizeof(commonName), kCFStringEncodingUTF8); CFRelease(cf_string); } else { strlcpy(commonName, "unknown", sizeof(commonName)); } strlcpy(issuer, "unknown", sizeof(issuer)); strlcpy(sigalg, "UnknownSignature", sizeof(sigalg)); # if TARGET_OS_OSX if ((cf_dict = SecCertificateCopyValues(secCert, NULL, NULL)) != NULL) { CFDictionaryRef cf_issuer = CFDictionaryGetValue(cf_dict, kSecOIDX509V1IssuerName); CFDictionaryRef cf_sigalg = CFDictionaryGetValue(cf_dict, kSecOIDX509V1SignatureAlgorithm); if (cf_issuer) { CFArrayRef cf_values = CFDictionaryGetValue(cf_issuer, kSecPropertyKeyValue); CFIndex i, count = CFArrayGetCount(cf_values); CFDictionaryRef cf_value; for (i = 0; i < count; i ++) { cf_value = CFArrayGetValueAtIndex(cf_values, i); if (!CFStringCompare(CFDictionaryGetValue(cf_value, kSecPropertyKeyLabel), kSecOIDOrganizationName, kCFCompareCaseInsensitive)) CFStringGetCString(CFDictionaryGetValue(cf_value, kSecPropertyKeyValue), issuer, (CFIndex)sizeof(issuer), kCFStringEncodingUTF8); } } if (cf_sigalg) { CFArrayRef cf_values = CFDictionaryGetValue(cf_sigalg, kSecPropertyKeyValue); CFIndex i, count = CFArrayGetCount(cf_values); CFDictionaryRef cf_value; for (i = 0; i < count; i ++) { cf_value = CFArrayGetValueAtIndex(cf_values, i); if (!CFStringCompare(CFDictionaryGetValue(cf_value, kSecPropertyKeyLabel), CFSTR("Algorithm"), kCFCompareCaseInsensitive)) { CFStringRef cf_algorithm = CFDictionaryGetValue(cf_value, kSecPropertyKeyValue); if (!CFStringCompare(cf_algorithm, CFSTR("1.2.840.113549.1.1.5"), kCFCompareCaseInsensitive)) strlcpy(sigalg, "SHA1WithRSAEncryption", sizeof(sigalg)); else if (!CFStringCompare(cf_algorithm, CFSTR("1.2.840.113549.1.1.11"), kCFCompareCaseInsensitive)) strlcpy(sigalg, "SHA256WithRSAEncryption", sizeof(sigalg)); else if (!CFStringCompare(cf_algorithm, CFSTR("1.2.840.113549.1.1.4"), kCFCompareCaseInsensitive)) strlcpy(sigalg, "MD5WithRSAEncryption", sizeof(sigalg)); } } } CFRelease(cf_dict); } # endif /* TARGET_OS_OSX */ expiration = (time_t)(SecCertificateNotValidAfter(secCert) + kCFAbsoluteTimeIntervalSince1970); cupsHashData("md5", first->data, first->datalen, md5_digest, sizeof(md5_digest)); snprintf(buffer, bufsize, "%s (issued by %s) / %s / %s / %02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", commonName, issuer, httpGetDateString(expiration), sigalg, md5_digest[0], md5_digest[1], md5_digest[2], md5_digest[3], md5_digest[4], md5_digest[5], md5_digest[6], md5_digest[7], md5_digest[8], md5_digest[9], md5_digest[10], md5_digest[11], md5_digest[12], md5_digest[13], md5_digest[14], md5_digest[15]); CFRelease(secCert); } DEBUG_printf(("1httpCredentialsString: Returning \"%s\".", buffer)); return (strlen(buffer)); } /* * '_httpFreeCredentials()' - Free internal credentials. */ void _httpFreeCredentials( http_tls_credentials_t credentials) /* I - Internal credentials */ { if (credentials) CFRelease(credentials); } /* * 'httpLoadCredentials()' - Load X.509 credentials from a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 0 on success, -1 on error */ httpLoadCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ cups_array_t **credentials, /* IO - Credentials */ const char *common_name) /* I - Common name for credentials */ { OSStatus err; /* Error info */ #if TARGET_OS_OSX char filename[1024]; /* Filename for keychain */ SecKeychainRef keychain = NULL,/* Keychain reference */ syschain = NULL;/* System keychain */ CFArrayRef list; /* Keychain list */ #endif /* TARGET_OS_OSX */ SecCertificateRef cert = NULL; /* Certificate */ CFDataRef data; /* Certificate data */ SecPolicyRef policy = NULL; /* Policy ref */ CFStringRef cfcommon_name = NULL; /* Server name */ CFMutableDictionaryRef query = NULL; /* Query qualifiers */ DEBUG_printf(("httpLoadCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, (void *)credentials, common_name)); if (!credentials) return (-1); *credentials = NULL; #if TARGET_OS_OSX keychain = http_cdsa_open_keychain(path, filename, sizeof(filename)); if (!keychain) goto cleanup; syschain = http_cdsa_open_system_keychain(); #else if (path) return (-1); #endif /* TARGET_OS_OSX */ cfcommon_name = CFStringCreateWithCString(kCFAllocatorDefault, common_name, kCFStringEncodingUTF8); policy = SecPolicyCreateSSL(1, cfcommon_name); if (cfcommon_name) CFRelease(cfcommon_name); if (!policy) goto cleanup; if (!(query = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks))) goto cleanup; CFDictionaryAddValue(query, kSecClass, kSecClassCertificate); CFDictionaryAddValue(query, kSecMatchPolicy, policy); CFDictionaryAddValue(query, kSecReturnRef, kCFBooleanTrue); CFDictionaryAddValue(query, kSecMatchLimit, kSecMatchLimitOne); #if TARGET_OS_OSX if (syschain) { const void *values[2] = { syschain, keychain }; list = CFArrayCreate(kCFAllocatorDefault, (const void **)values, 2, &kCFTypeArrayCallBacks); } else list = CFArrayCreate(kCFAllocatorDefault, (const void **)&keychain, 1, &kCFTypeArrayCallBacks); CFDictionaryAddValue(query, kSecMatchSearchList, list); CFRelease(list); #endif /* TARGET_OS_OSX */ err = SecItemCopyMatching(query, (CFTypeRef *)&cert); if (err) goto cleanup; if (CFGetTypeID(cert) != SecCertificateGetTypeID()) goto cleanup; if ((data = SecCertificateCopyData(cert)) != NULL) { DEBUG_printf(("1httpLoadCredentials: Adding %d byte certificate blob.", (int)CFDataGetLength(data))); *credentials = cupsArrayNew(NULL, NULL); httpAddCredential(*credentials, CFDataGetBytePtr(data), (size_t)CFDataGetLength(data)); CFRelease(data); } cleanup : #if TARGET_OS_OSX if (keychain) CFRelease(keychain); if (syschain) CFRelease(syschain); #endif /* TARGET_OS_OSX */ if (cert) CFRelease(cert); if (policy) CFRelease(policy); if (query) CFRelease(query); DEBUG_printf(("1httpLoadCredentials: Returning %d.", *credentials ? 0 : -1)); return (*credentials ? 0 : -1); } /* * 'httpSaveCredentials()' - Save X.509 credentials to a keychain file. * * @since CUPS 2.0/OS 10.10@ */ int /* O - -1 on error, 0 on success */ httpSaveCredentials( const char *path, /* I - Keychain path or @code NULL@ for default */ cups_array_t *credentials, /* I - Credentials */ const char *common_name) /* I - Common name for credentials */ { int ret = 0; /* Return value */ OSStatus err; /* Error info */ #if TARGET_OS_OSX char filename[1024]; /* Filename for keychain */ SecKeychainRef keychain = NULL;/* Keychain reference */ CFArrayRef list; /* Keychain list */ #endif /* TARGET_OS_OSX */ SecCertificateRef cert = NULL; /* Certificate */ CFMutableDictionaryRef attrs = NULL; /* Attributes for add */ DEBUG_printf(("httpSaveCredentials(path=\"%s\", credentials=%p, common_name=\"%s\")", path, (void *)credentials, common_name)); if (!credentials) { DEBUG_puts("1httpSaveCredentials: No credentials, returning -1."); return (-1); } if (!httpCredentialsAreValidForName(credentials, common_name)) { DEBUG_puts("1httpSaveCredentials: Common name does not match."); return (-1); } if ((cert = http_cdsa_create_credential((http_credential_t *)cupsArrayFirst(credentials))) == NULL) { DEBUG_puts("1httpSaveCredentials: Unable to create certificate."); goto cleanup; } #if TARGET_OS_OSX keychain = http_cdsa_open_keychain(path, filename, sizeof(filename)); if (!keychain) { DEBUG_puts("1httpSaveCredentials: No keychain, returning -1."); return (-1); } #else if (path) { DEBUG_puts("1httpSaveCredentials: No path, returning -1."); return (-1); } #endif /* TARGET_OS_OSX */ if ((attrs = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks)) == NULL) { DEBUG_puts("1httpSaveCredentials: Unable to create dictionary."); goto cleanup; } CFDictionaryAddValue(attrs, kSecClass, kSecClassCertificate); CFDictionaryAddValue(attrs, kSecValueRef, cert); #if TARGET_OS_OSX if ((list = CFArrayCreate(kCFAllocatorDefault, (const void **)&keychain, 1, &kCFTypeArrayCallBacks)) == NULL) { DEBUG_puts("1httpSaveCredentials: Unable to create list of keychains."); ret = -1; goto cleanup; } CFDictionaryAddValue(attrs, kSecMatchSearchList, list); CFRelease(list); #endif /* TARGET_OS_OSX */ /* Note: SecItemAdd consumes "attrs"... */ if((err = SecItemAdd(attrs, NULL)) != 0) { DEBUG_printf(("1httpSaveCredentials: SecItemAdd failed, returned %d.", (int)err)); ret = -1; } cleanup : #if TARGET_OS_OSX CFRelease(keychain); #endif /* TARGET_OS_OSX */ CFRelease(cert); DEBUG_printf(("1httpSaveCredentials: Returning %d.", ret)); return (ret); } /* * '_httpTLSInitialize()' - Initialize the TLS stack. */ void _httpTLSInitialize(void) { /* * Nothing to do... */ } /* * '_httpTLSPending()' - Return the number of pending TLS-encrypted bytes. */ size_t _httpTLSPending(http_t *http) /* I - HTTP connection */ { size_t bytes; /* Bytes that are available */ if (!SSLGetBufferedReadSize(http->tls, &bytes)) return (bytes); return (0); } /* * '_httpTLSRead()' - Read from a SSL/TLS connection. */ int /* O - Bytes read */ _httpTLSRead(http_t *http, /* I - HTTP connection */ char *buf, /* I - Buffer to store data */ int len) /* I - Length of buffer */ { int result; /* Return value */ OSStatus error; /* Error info */ size_t processed; /* Number of bytes processed */ error = SSLRead(http->tls, buf, (size_t)len, &processed); DEBUG_printf(("5_httpTLSRead: error=%d, processed=%d", (int)error, (int)processed)); switch (error) { case 0 : result = (int)processed; break; case errSSLWouldBlock : if (processed) result = (int)processed; else { result = -1; errno = EINTR; } break; case errSSLClosedGraceful : default : if (processed) result = (int)processed; else { result = -1; errno = EPIPE; } break; } return (result); } /* * '_httpTLSSetOptions()' - Set TLS protocol and cipher suite options. */ void _httpTLSSetOptions(int options, /* I - Options */ int min_version, /* I - Minimum TLS version */ int max_version) /* I - Maximum TLS version */ { if (!(options & _HTTP_TLS_SET_DEFAULT) || tls_options < 0) { tls_options = options; tls_min_version = min_version; tls_max_version = max_version; } } /* * '_httpTLSStart()' - Set up SSL/TLS support on a connection. */ int /* O - 0 on success, -1 on failure */ _httpTLSStart(http_t *http) /* I - HTTP connection */ { char hostname[256], /* Hostname */ *hostptr; /* Pointer into hostname */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ OSStatus error; /* Error code */ const char *message = NULL;/* Error message */ char msgbuf[1024]; /* Error message buffer */ cups_array_t *credentials; /* Credentials array */ cups_array_t *names; /* CUPS distinguished names */ CFArrayRef dn_array; /* CF distinguished names array */ CFIndex count; /* Number of credentials */ CFDataRef data; /* Certificate data */ int i; /* Looping var */ http_credential_t *credential; /* Credential data */ DEBUG_printf(("3_httpTLSStart(http=%p)", (void *)http)); if (tls_options < 0) { DEBUG_puts("4_httpTLSStart: Setting defaults."); _cupsSetDefaults(); DEBUG_printf(("4_httpTLSStart: tls_options=%x, tls_min_version=%d, tls_max_version=%d", tls_options, tls_min_version, tls_max_version)); } #if TARGET_OS_OSX if (http->mode == _HTTP_MODE_SERVER && !tls_keychain) { DEBUG_puts("4_httpTLSStart: cupsSetServerCredentials not called."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Server credentials not set."), 1); return (-1); } #endif /* TARGET_OS_OSX */ if ((http->tls = SSLCreateContext(kCFAllocatorDefault, http->mode == _HTTP_MODE_CLIENT ? kSSLClientSide : kSSLServerSide, kSSLStreamType)) == NULL) { DEBUG_puts("4_httpTLSStart: SSLCreateContext failed."); http->error = errno = ENOMEM; http->status = HTTP_STATUS_ERROR; _cupsSetHTTPError(HTTP_STATUS_ERROR); return (-1); } error = SSLSetConnection(http->tls, http); DEBUG_printf(("4_httpTLSStart: SSLSetConnection, error=%d", (int)error)); if (!error) { error = SSLSetIOFuncs(http->tls, http_cdsa_read, http_cdsa_write); DEBUG_printf(("4_httpTLSStart: SSLSetIOFuncs, error=%d", (int)error)); } if (!error) { error = SSLSetSessionOption(http->tls, kSSLSessionOptionBreakOnServerAuth, true); DEBUG_printf(("4_httpTLSStart: SSLSetSessionOption, error=%d", (int)error)); } if (!error) { static const SSLProtocol protocols[] = /* Min/max protocol versions */ { kSSLProtocol3, kTLSProtocol1, kTLSProtocol11, kTLSProtocol12, kTLSProtocol13 }; if (tls_min_version < _HTTP_TLS_MAX) { error = SSLSetProtocolVersionMin(http->tls, protocols[tls_min_version]); DEBUG_printf(("4_httpTLSStart: SSLSetProtocolVersionMin(%d), error=%d", protocols[tls_min_version], (int)error)); } if (!error && tls_max_version < _HTTP_TLS_MAX) { error = SSLSetProtocolVersionMax(http->tls, protocols[tls_max_version]); DEBUG_printf(("4_httpTLSStart: SSLSetProtocolVersionMax(%d), error=%d", protocols[tls_max_version], (int)error)); } } if (!error) { SSLCipherSuite supported[100]; /* Supported cipher suites */ size_t num_supported; /* Number of supported cipher suites */ SSLCipherSuite enabled[100]; /* Cipher suites to enable */ size_t num_enabled; /* Number of cipher suites to enable */ num_supported = sizeof(supported) / sizeof(supported[0]); error = SSLGetSupportedCiphers(http->tls, supported, &num_supported); if (!error) { DEBUG_printf(("4_httpTLSStart: %d cipher suites supported.", (int)num_supported)); for (i = 0, num_enabled = 0; i < (int)num_supported && num_enabled < (sizeof(enabled) / sizeof(enabled[0])); i ++) { switch (supported[i]) { /* Obviously insecure cipher suites that we never want to use */ case SSL_NULL_WITH_NULL_NULL : case SSL_RSA_WITH_NULL_MD5 : case SSL_RSA_WITH_NULL_SHA : case SSL_RSA_EXPORT_WITH_RC4_40_MD5 : case SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 : case SSL_RSA_EXPORT_WITH_DES40_CBC_SHA : case SSL_RSA_WITH_DES_CBC_SHA : case SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA : case SSL_DH_DSS_WITH_DES_CBC_SHA : case SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA : case SSL_DH_RSA_WITH_DES_CBC_SHA : case SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA : case SSL_DHE_DSS_WITH_DES_CBC_SHA : case SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA : case SSL_DHE_RSA_WITH_DES_CBC_SHA : case SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 : case SSL_DH_anon_WITH_RC4_128_MD5 : case SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA : case SSL_DH_anon_WITH_DES_CBC_SHA : case SSL_DH_anon_WITH_3DES_EDE_CBC_SHA : case SSL_FORTEZZA_DMS_WITH_NULL_SHA : case TLS_DH_anon_WITH_AES_128_CBC_SHA : case TLS_DH_anon_WITH_AES_256_CBC_SHA : case TLS_ECDH_ECDSA_WITH_NULL_SHA : case TLS_ECDHE_RSA_WITH_NULL_SHA : case TLS_ECDH_anon_WITH_NULL_SHA : case TLS_ECDH_anon_WITH_RC4_128_SHA : case TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA : case TLS_ECDH_anon_WITH_AES_128_CBC_SHA : case TLS_ECDH_anon_WITH_AES_256_CBC_SHA : case TLS_RSA_WITH_NULL_SHA256 : case TLS_DH_anon_WITH_AES_128_CBC_SHA256 : case TLS_DH_anon_WITH_AES_256_CBC_SHA256 : case TLS_PSK_WITH_NULL_SHA : case TLS_DHE_PSK_WITH_NULL_SHA : case TLS_RSA_PSK_WITH_NULL_SHA : case TLS_DH_anon_WITH_AES_128_GCM_SHA256 : case TLS_DH_anon_WITH_AES_256_GCM_SHA384 : case TLS_PSK_WITH_NULL_SHA256 : case TLS_PSK_WITH_NULL_SHA384 : case TLS_DHE_PSK_WITH_NULL_SHA256 : case TLS_DHE_PSK_WITH_NULL_SHA384 : case TLS_RSA_PSK_WITH_NULL_SHA256 : case TLS_RSA_PSK_WITH_NULL_SHA384 : case SSL_RSA_WITH_DES_CBC_MD5 : DEBUG_printf(("4_httpTLSStart: Excluding insecure cipher suite %d", supported[i])); break; /* RC4 cipher suites that should only be used as a last resort */ case SSL_RSA_WITH_RC4_128_MD5 : case SSL_RSA_WITH_RC4_128_SHA : case TLS_ECDH_ECDSA_WITH_RC4_128_SHA : case TLS_ECDHE_ECDSA_WITH_RC4_128_SHA : case TLS_ECDH_RSA_WITH_RC4_128_SHA : case TLS_ECDHE_RSA_WITH_RC4_128_SHA : case TLS_PSK_WITH_RC4_128_SHA : case TLS_DHE_PSK_WITH_RC4_128_SHA : case TLS_RSA_PSK_WITH_RC4_128_SHA : if (tls_options & _HTTP_TLS_ALLOW_RC4) enabled[num_enabled ++] = supported[i]; else DEBUG_printf(("4_httpTLSStart: Excluding RC4 cipher suite %d", supported[i])); break; /* DH/DHE cipher suites that are problematic with parameters < 1024 bits */ case TLS_DH_DSS_WITH_AES_128_CBC_SHA : case TLS_DH_RSA_WITH_AES_128_CBC_SHA : case TLS_DHE_DSS_WITH_AES_128_CBC_SHA : case TLS_DHE_RSA_WITH_AES_128_CBC_SHA : case TLS_DH_DSS_WITH_AES_256_CBC_SHA : case TLS_DH_RSA_WITH_AES_256_CBC_SHA : case TLS_DHE_DSS_WITH_AES_256_CBC_SHA : case TLS_DHE_RSA_WITH_AES_256_CBC_SHA : case TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA : case TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA : case TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA : case TLS_DH_DSS_WITH_AES_128_CBC_SHA256 : case TLS_DH_RSA_WITH_AES_128_CBC_SHA256 : case TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 : case TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 : case TLS_DH_DSS_WITH_AES_256_CBC_SHA256 : case TLS_DH_RSA_WITH_AES_256_CBC_SHA256 : case TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 : case TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 : case TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA : case TLS_DHE_PSK_WITH_AES_128_CBC_SHA : case TLS_DHE_PSK_WITH_AES_256_CBC_SHA : case TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 : case TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 : if (tls_options & _HTTP_TLS_DENY_CBC) { DEBUG_printf(("4_httpTLSStart: Excluding CBC cipher suite %d", supported[i])); break; } // case TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 : // case TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 : case TLS_DH_RSA_WITH_AES_128_GCM_SHA256 : case TLS_DH_RSA_WITH_AES_256_GCM_SHA384 : // case TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 : // case TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 : case TLS_DH_DSS_WITH_AES_128_GCM_SHA256 : case TLS_DH_DSS_WITH_AES_256_GCM_SHA384 : case TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 : case TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 : if (tls_options & _HTTP_TLS_ALLOW_DH) enabled[num_enabled ++] = supported[i]; else DEBUG_printf(("4_httpTLSStart: Excluding DH/DHE cipher suite %d", supported[i])); break; case TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA : case TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 : case TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 : case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 : case TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 : case TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 : case TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 : case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 : case TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 : case TLS_RSA_WITH_3DES_EDE_CBC_SHA : case TLS_RSA_WITH_AES_128_CBC_SHA : case TLS_RSA_WITH_AES_256_CBC_SHA : if (tls_options & _HTTP_TLS_DENY_CBC) { DEBUG_printf(("4_httpTLSStart: Excluding CBC cipher suite %d", supported[i])); break; } /* Anything else we'll assume is "secure" */ default : enabled[num_enabled ++] = supported[i]; break; } } DEBUG_printf(("4_httpTLSStart: %d cipher suites enabled.", (int)num_enabled)); error = SSLSetEnabledCiphers(http->tls, enabled, num_enabled); } } if (!error && http->mode == _HTTP_MODE_CLIENT) { /* * Client: set client-side credentials, if any... */ if (cg->client_cert_cb) { error = SSLSetSessionOption(http->tls, kSSLSessionOptionBreakOnCertRequested, true); DEBUG_printf(("4_httpTLSStart: kSSLSessionOptionBreakOnCertRequested, error=%d", (int)error)); } else { error = http_cdsa_set_credentials(http); DEBUG_printf(("4_httpTLSStart: http_cdsa_set_credentials, error=%d", (int)error)); } } else if (!error) { /* * Server: find/create a certificate for TLS... */ if (http->fields[HTTP_FIELD_HOST]) { /* * Use hostname for TLS upgrade... */ strlcpy(hostname, http->fields[HTTP_FIELD_HOST], sizeof(hostname)); } else { /* * Resolve hostname from connection address... */ http_addr_t addr; /* Connection address */ socklen_t addrlen; /* Length of address */ addrlen = sizeof(addr); if (getsockname(http->fd, (struct sockaddr *)&addr, &addrlen)) { DEBUG_printf(("4_httpTLSStart: Unable to get socket address: %s", strerror(errno))); hostname[0] = '\0'; } else if (httpAddrLocalhost(&addr)) hostname[0] = '\0'; else { httpAddrLookup(&addr, hostname, sizeof(hostname)); DEBUG_printf(("4_httpTLSStart: Resolved socket address to \"%s\".", hostname)); } } if (isdigit(hostname[0] & 255) || hostname[0] == '[') hostname[0] = '\0'; /* Don't allow numeric addresses */ _cupsMutexLock(&tls_mutex); if (hostname[0]) http->tls_credentials = http_cdsa_copy_server(hostname); else if (tls_common_name) http->tls_credentials = http_cdsa_copy_server(tls_common_name); if (!http->tls_credentials && tls_auto_create && (hostname[0] || tls_common_name)) { DEBUG_printf(("4_httpTLSStart: Auto-create credentials for \"%s\".", hostname[0] ? hostname : tls_common_name)); if (!cupsMakeServerCredentials(tls_keypath, hostname[0] ? hostname : tls_common_name, 0, NULL, time(NULL) + 365 * 86400)) { DEBUG_puts("4_httpTLSStart: cupsMakeServerCredentials failed."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create server credentials."), 1); _cupsMutexUnlock(&tls_mutex); return (-1); } http->tls_credentials = http_cdsa_copy_server(hostname[0] ? hostname : tls_common_name); } _cupsMutexUnlock(&tls_mutex); if (!http->tls_credentials) { DEBUG_puts("4_httpTLSStart: Unable to find server credentials."); http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to find server credentials."), 1); return (-1); } error = SSLSetCertificate(http->tls, http->tls_credentials); DEBUG_printf(("4_httpTLSStart: SSLSetCertificate, error=%d", (int)error)); } DEBUG_printf(("4_httpTLSStart: tls_credentials=%p", (void *)http->tls_credentials)); /* * Let the server know which hostname/domain we are trying to connect to * in case it wants to serve up a certificate with a matching common name. */ if (!error && http->mode == _HTTP_MODE_CLIENT) { /* * Client: get the hostname to use for TLS... */ if (httpAddrLocalhost(http->hostaddr)) { strlcpy(hostname, "localhost", sizeof(hostname)); } else { /* * Otherwise make sure the hostname we have does not end in a trailing dot. */ strlcpy(hostname, http->hostname, sizeof(hostname)); if ((hostptr = hostname + strlen(hostname) - 1) >= hostname && *hostptr == '.') *hostptr = '\0'; } error = SSLSetPeerDomainName(http->tls, hostname, strlen(hostname)); DEBUG_printf(("4_httpTLSStart: SSLSetPeerDomainName, error=%d", (int)error)); } if (!error) { int done = 0; /* Are we done yet? */ double old_timeout; /* Old timeout value */ http_timeout_cb_t old_cb; /* Old timeout callback */ void *old_data; /* Old timeout data */ /* * Enforce a minimum timeout of 10 seconds for the TLS handshake... */ old_timeout = http->timeout_value; old_cb = http->timeout_cb; old_data = http->timeout_data; if (!old_cb || old_timeout < 10.0) { DEBUG_puts("4_httpTLSStart: Setting timeout to 10 seconds."); httpSetTimeout(http, 10.0, NULL, NULL); } /* * Do the TLS handshake... */ while (!error && !done) { error = SSLHandshake(http->tls); DEBUG_printf(("4_httpTLSStart: SSLHandshake returned %d.", (int)error)); switch (error) { case noErr : done = 1; break; case errSSLWouldBlock : error = noErr; /* Force a retry */ usleep(1000); /* in 1 millisecond */ break; case errSSLServerAuthCompleted : error = 0; if (cg->server_cert_cb) { error = httpCopyCredentials(http, &credentials); if (!error) { error = (cg->server_cert_cb)(http, http->tls, credentials, cg->server_cert_data); httpFreeCredentials(credentials); } DEBUG_printf(("4_httpTLSStart: Server certificate callback returned %d.", (int)error)); } break; case errSSLClientCertRequested : error = 0; if (cg->client_cert_cb) { names = NULL; error = SSLCopyDistinguishedNames(http->tls, &dn_array); if (dn_array) { if (!error) { if ((names = cupsArrayNew(NULL, NULL)) != NULL) { for (i = 0, count = CFArrayGetCount(dn_array); i < count; i++) { data = (CFDataRef)CFArrayGetValueAtIndex(dn_array, i); if ((credential = malloc(sizeof(*credential))) != NULL) { credential->datalen = (size_t)CFDataGetLength(data); if ((credential->data = malloc(credential->datalen))) { memcpy((void *)credential->data, CFDataGetBytePtr(data), credential->datalen); cupsArrayAdd(names, credential); } else free(credential); } } } } CFRelease(dn_array); } if (!error) { error = (cg->client_cert_cb)(http, http->tls, names, cg->client_cert_data); DEBUG_printf(("4_httpTLSStart: Client certificate callback returned %d.", (int)error)); } httpFreeCredentials(names); } break; case errSSLUnknownRootCert : message = _("Unable to establish a secure connection to host (untrusted certificate)."); break; case errSSLNoRootCert : message = _("Unable to establish a secure connection to host (self-signed certificate)."); break; case errSSLCertExpired : message = _("Unable to establish a secure connection to host (expired certificate)."); break; case errSSLCertNotYetValid : message = _("Unable to establish a secure connection to host (certificate not yet valid)."); break; case errSSLHostNameMismatch : message = _("Unable to establish a secure connection to host (host name mismatch)."); break; case errSSLXCertChainInvalid : message = _("Unable to establish a secure connection to host (certificate chain invalid)."); break; case errSSLConnectionRefused : message = _("Unable to establish a secure connection to host (peer dropped connection before responding)."); break; default : break; } } /* * Restore the previous timeout settings... */ httpSetTimeout(http, old_timeout, old_cb, old_data); } if (error) { http->error = error; http->status = HTTP_STATUS_ERROR; errno = ECONNREFUSED; CFRelease(http->tls); http->tls = NULL; /* * If an error string wasn't set by the callbacks use a generic one... */ if (!message) { if (!cg->lang_default) cg->lang_default = cupsLangDefault(); snprintf(msgbuf, sizeof(msgbuf), _cupsLangString(cg->lang_default, _("Unable to establish a secure connection to host (%d).")), error); message = msgbuf; } _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, message, 1); return (-1); } return (0); } /* * '_httpTLSStop()' - Shut down SSL/TLS on a connection. */ void _httpTLSStop(http_t *http) /* I - HTTP connection */ { while (SSLClose(http->tls) == errSSLWouldBlock) usleep(1000); CFRelease(http->tls); http->tls = NULL; if (http->tls_credentials) { CFRelease(http->tls_credentials); http->tls_credentials = NULL; } } /* * '_httpTLSWrite()' - Write to a SSL/TLS connection. */ int /* O - Bytes written */ _httpTLSWrite(http_t *http, /* I - HTTP connection */ const char *buf, /* I - Buffer holding data */ int len) /* I - Length of buffer */ { ssize_t result; /* Return value */ OSStatus error; /* Error info */ size_t processed; /* Number of bytes processed */ DEBUG_printf(("4_httpTLSWrite(http=%p, buf=%p, len=%d)", (void *)http, (void *)buf, len)); error = SSLWrite(http->tls, buf, (size_t)len, &processed); switch (error) { case 0 : result = (int)processed; break; case errSSLWouldBlock : if (processed) { result = (int)processed; } else { result = -1; errno = EINTR; } break; case errSSLClosedGraceful : default : if (processed) { result = (int)processed; } else { result = -1; errno = EPIPE; } break; } DEBUG_printf(("5_httpTLSWrite: Returning %d.", (int)result)); return ((int)result); } /* * 'http_cdsa_copy_server()' - Find and copy server credentials from the keychain. */ static CFArrayRef /* O - Array of certificates or NULL */ http_cdsa_copy_server( const char *common_name) /* I - Server's hostname */ { #if TARGET_OS_OSX OSStatus err; /* Error info */ SecIdentityRef identity = NULL;/* Identity */ CFArrayRef certificates = NULL; /* Certificate array */ SecPolicyRef policy = NULL; /* Policy ref */ CFStringRef cfcommon_name = NULL; /* Server name */ CFMutableDictionaryRef query = NULL; /* Query qualifiers */ CFArrayRef list = NULL; /* Keychain list */ SecKeychainRef syschain = NULL;/* System keychain */ SecKeychainStatus status = 0; /* Keychain status */ DEBUG_printf(("3http_cdsa_copy_server(common_name=\"%s\")", common_name)); cfcommon_name = CFStringCreateWithCString(kCFAllocatorDefault, common_name, kCFStringEncodingUTF8); policy = SecPolicyCreateSSL(1, cfcommon_name); if (!policy) { DEBUG_puts("4http_cdsa_copy_server: Unable to create SSL policy."); goto cleanup; } if (!(query = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks))) { DEBUG_puts("4http_cdsa_copy_server: Unable to create query dictionary."); goto cleanup; } _cupsMutexLock(&tls_mutex); err = SecKeychainGetStatus(tls_keychain, &status); if (err == noErr && !(status & kSecUnlockStateStatus) && tls_cups_keychain) SecKeychainUnlock(tls_keychain, _CUPS_CDSA_PASSLEN, _CUPS_CDSA_PASSWORD, TRUE); CFDictionaryAddValue(query, kSecClass, kSecClassIdentity); CFDictionaryAddValue(query, kSecMatchPolicy, policy); CFDictionaryAddValue(query, kSecReturnRef, kCFBooleanTrue); CFDictionaryAddValue(query, kSecMatchLimit, kSecMatchLimitOne); syschain = http_cdsa_open_system_keychain(); if (syschain) { const void *values[2] = { syschain, tls_keychain }; list = CFArrayCreate(kCFAllocatorDefault, (const void **)values, 2, &kCFTypeArrayCallBacks); } else list = CFArrayCreate(kCFAllocatorDefault, (const void **)&tls_keychain, 1, &kCFTypeArrayCallBacks); CFDictionaryAddValue(query, kSecMatchSearchList, list); CFRelease(list); err = SecItemCopyMatching(query, (CFTypeRef *)&identity); _cupsMutexUnlock(&tls_mutex); if (err != noErr) { DEBUG_printf(("4http_cdsa_copy_server: SecItemCopyMatching failed with status %d.", (int)err)); goto cleanup; } if (CFGetTypeID(identity) != SecIdentityGetTypeID()) { DEBUG_puts("4http_cdsa_copy_server: Search returned something that is not an identity."); goto cleanup; } if ((certificates = CFArrayCreate(NULL, (const void **)&identity, 1, &kCFTypeArrayCallBacks)) == NULL) { DEBUG_puts("4http_cdsa_copy_server: Unable to create array of certificates."); goto cleanup; } cleanup : if (syschain) CFRelease(syschain); if (identity) CFRelease(identity); if (policy) CFRelease(policy); if (cfcommon_name) CFRelease(cfcommon_name); if (query) CFRelease(query); DEBUG_printf(("4http_cdsa_copy_server: Returning %p.", (void *)certificates)); return (certificates); #else (void)common_name; if (!tls_selfsigned) return (NULL); return (CFArrayCreate(NULL, (const void **)&tls_selfsigned, 1, &kCFTypeArrayCallBacks)); #endif /* TARGET_OS_OSX */ } /* * 'http_cdsa_create_credential()' - Create a single credential in the internal format. */ static SecCertificateRef /* O - Certificate */ http_cdsa_create_credential( http_credential_t *credential) /* I - Credential */ { SecCertificateRef cert; /* Certificate */ CFDataRef data; /* Data object */ if (!credential) return (NULL); data = CFDataCreate(kCFAllocatorDefault, credential->data, (CFIndex)credential->datalen); cert = SecCertificateCreateWithData(kCFAllocatorDefault, data); CFRelease(data); return (cert); } #if TARGET_OS_OSX /* * 'http_cdsa_default_path()' - Get the default keychain path. */ static const char * /* O - Keychain path */ http_cdsa_default_path(char *buffer, /* I - Path buffer */ size_t bufsize) /* I - Size of buffer */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * Determine the default keychain path. Note that the login and system * keychains are no longer accessible to user applications starting in macOS * 10.11.4 (!), so we need to create our own keychain just for CUPS. */ if (cg->home) snprintf(buffer, bufsize, "%s/.cups/ssl.keychain", cg->home); else strlcpy(buffer, "/etc/cups/ssl.keychain", bufsize); DEBUG_printf(("1http_cdsa_default_path: Using default path \"%s\".", buffer)); return (buffer); } /* * 'http_cdsa_open_keychain()' - Open (or create) a keychain. */ static SecKeychainRef /* O - Keychain or NULL */ http_cdsa_open_keychain( const char *path, /* I - Path to keychain */ char *filename, /* I - Keychain filename */ size_t filesize) /* I - Size of filename buffer */ { SecKeychainRef keychain = NULL;/* Temporary keychain */ OSStatus err; /* Error code */ Boolean interaction; /* Interaction allowed? */ SecKeychainStatus status = 0; /* Keychain status */ /* * Get the keychain filename... */ if (!path) { path = http_cdsa_default_path(filename, filesize); tls_cups_keychain = 1; } else { strlcpy(filename, path, filesize); tls_cups_keychain = 0; } /* * Save the interaction setting and disable while we open the keychain... */ SecKeychainGetUserInteractionAllowed(&interaction); SecKeychainSetUserInteractionAllowed(FALSE); if (access(path, R_OK) && tls_cups_keychain) { /* * Create a new keychain at the given path... */ err = SecKeychainCreate(path, _CUPS_CDSA_PASSLEN, _CUPS_CDSA_PASSWORD, FALSE, NULL, &keychain); } else { /* * Open the existing keychain and unlock as needed... */ err = SecKeychainOpen(path, &keychain); if (err == noErr) err = SecKeychainGetStatus(keychain, &status); if (err == noErr && !(status & kSecUnlockStateStatus) && tls_cups_keychain) err = SecKeychainUnlock(keychain, _CUPS_CDSA_PASSLEN, _CUPS_CDSA_PASSWORD, TRUE); } /* * Restore interaction setting... */ SecKeychainSetUserInteractionAllowed(interaction); /* * Release the keychain if we had any errors... */ if (err != noErr) { /* TODO: Set cups last error string */ DEBUG_printf(("4http_cdsa_open_keychain: Unable to open keychain (%d), returning NULL.", (int)err)); if (keychain) { CFRelease(keychain); keychain = NULL; } } /* * Return the keychain or NULL... */ return (keychain); } /* * 'http_cdsa_open_system_keychain()' - Open the System keychain. */ static SecKeychainRef http_cdsa_open_system_keychain(void) { SecKeychainRef keychain = NULL;/* Temporary keychain */ OSStatus err; /* Error code */ Boolean interaction; /* Interaction allowed? */ SecKeychainStatus status = 0; /* Keychain status */ /* * Save the interaction setting and disable while we open the keychain... */ SecKeychainGetUserInteractionAllowed(&interaction); SecKeychainSetUserInteractionAllowed(TRUE); err = SecKeychainOpen("/Library/Keychains/System.keychain", &keychain); if (err == noErr) err = SecKeychainGetStatus(keychain, &status); if (err == noErr && !(status & kSecUnlockStateStatus)) err = errSecInteractionNotAllowed; /* * Restore interaction setting... */ SecKeychainSetUserInteractionAllowed(interaction); /* * Release the keychain if we had any errors... */ if (err != noErr) { /* TODO: Set cups last error string */ DEBUG_printf(("4http_cdsa_open_system_keychain: Unable to open keychain (%d), returning NULL.", (int)err)); if (keychain) { CFRelease(keychain); keychain = NULL; } } /* * Return the keychain or NULL... */ return (keychain); } #endif /* TARGET_OS_OSX */ /* * 'http_cdsa_read()' - Read function for the CDSA library. */ static OSStatus /* O - -1 on error, 0 on success */ http_cdsa_read( SSLConnectionRef connection, /* I - SSL/TLS connection */ void *data, /* I - Data buffer */ size_t *dataLength) /* IO - Number of bytes */ { OSStatus result; /* Return value */ ssize_t bytes; /* Number of bytes read */ http_t *http; /* HTTP connection */ http = (http_t *)connection; if (!http->blocking || http->timeout_value > 0.0) { /* * Make sure we have data before we read... */ while (!_httpWait(http, http->wait_value, 0)) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; http->error = ETIMEDOUT; return (-1); } } do { bytes = recv(http->fd, data, *dataLength, 0); } while (bytes == -1 && (errno == EINTR || errno == EAGAIN)); if ((size_t)bytes == *dataLength) { result = 0; } else if (bytes > 0) { *dataLength = (size_t)bytes; result = errSSLWouldBlock; } else { *dataLength = 0; if (bytes == 0) result = errSSLClosedGraceful; else if (errno == EAGAIN) result = errSSLWouldBlock; else result = errSSLClosedAbort; } return (result); } /* * 'http_cdsa_set_credentials()' - Set the TLS credentials. */ static int /* O - Status of connection */ http_cdsa_set_credentials(http_t *http) /* I - HTTP connection */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ OSStatus error = 0; /* Error code */ http_tls_credentials_t credentials = NULL; /* TLS credentials */ DEBUG_printf(("7http_tls_set_credentials(%p)", (void *)http)); /* * Prefer connection specific credentials... */ if ((credentials = http->tls_credentials) == NULL) credentials = cg->tls_credentials; if (credentials) { error = SSLSetCertificate(http->tls, credentials); DEBUG_printf(("4http_tls_set_credentials: SSLSetCertificate, error=%d", (int)error)); } else DEBUG_puts("4http_tls_set_credentials: No credentials to set."); return (error); } /* * 'http_cdsa_write()' - Write function for the CDSA library. */ static OSStatus /* O - -1 on error, 0 on success */ http_cdsa_write( SSLConnectionRef connection, /* I - SSL/TLS connection */ const void *data, /* I - Data buffer */ size_t *dataLength) /* IO - Number of bytes */ { OSStatus result; /* Return value */ ssize_t bytes; /* Number of bytes read */ http_t *http; /* HTTP connection */ http = (http_t *)connection; do { bytes = write(http->fd, data, *dataLength); } while (bytes == -1 && (errno == EINTR || errno == EAGAIN)); if ((size_t)bytes == *dataLength) { result = 0; } else if (bytes >= 0) { *dataLength = (size_t)bytes; result = errSSLWouldBlock; } else { *dataLength = 0; if (errno == EAGAIN) result = errSSLWouldBlock; else result = errSSLClosedAbort; } return (result); } cups-2.4.7/cups/thread.c0000644000175000017500000002166314502571342014756 0ustar zdohnalzdohnal/* * Threading primitives for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2009-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "thread-private.h" #if defined(HAVE_PTHREAD_H) /* * '_cupsCondBroadcast()' - Wake up waiting threads. */ void _cupsCondBroadcast(_cups_cond_t *cond) /* I - Condition */ { pthread_cond_broadcast(cond); } /* * '_cupsCondInit()' - Initialize a condition variable. */ void _cupsCondInit(_cups_cond_t *cond) /* I - Condition */ { pthread_cond_init(cond, NULL); } /* * '_cupsCondWait()' - Wait for a condition with optional timeout. */ void _cupsCondWait(_cups_cond_t *cond, /* I - Condition */ _cups_mutex_t *mutex, /* I - Mutex */ double timeout) /* I - Timeout in seconds (0 or negative for none) */ { if (timeout > 0.0) { struct timespec abstime; /* Timeout */ clock_gettime(CLOCK_REALTIME, &abstime); abstime.tv_sec += (long)timeout; abstime.tv_nsec += (long)(1000000000 * (timeout - (long)timeout)); while (abstime.tv_nsec >= 1000000000) { abstime.tv_nsec -= 1000000000; abstime.tv_sec ++; }; (void)pthread_cond_timedwait(cond, mutex, &abstime); } else (void)pthread_cond_wait(cond, mutex); } /* * '_cupsMutexInit()' - Initialize a mutex. */ void _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ { pthread_mutex_init(mutex, NULL); } /* * '_cupsMutexLock()' - Lock a mutex. */ void _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ { pthread_mutex_lock(mutex); } /* * '_cupsMutexUnlock()' - Unlock a mutex. */ void _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ { pthread_mutex_unlock(mutex); } /* * '_cupsRWInit()' - Initialize a reader/writer lock. */ void _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { pthread_rwlock_init(rwlock, NULL); } /* * '_cupsRWLockRead()' - Acquire a reader/writer lock for reading. */ void _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { pthread_rwlock_rdlock(rwlock); } /* * '_cupsRWLockWrite()' - Acquire a reader/writer lock for writing. */ void _cupsRWLockWrite(_cups_rwlock_t *rwlock)/* I - Reader/writer lock */ { pthread_rwlock_wrlock(rwlock); } /* * '_cupsRWUnlock()' - Release a reader/writer lock. */ void _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { pthread_rwlock_unlock(rwlock); } /* * '_cupsThreadCancel()' - Cancel (kill) a thread. */ void _cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */ { pthread_cancel(thread); } /* * '_cupsThreadCreate()' - Create a thread. */ _cups_thread_t /* O - Thread ID */ _cupsThreadCreate( _cups_thread_func_t func, /* I - Entry point */ void *arg) /* I - Entry point context */ { pthread_t thread; if (pthread_create(&thread, NULL, (void *(*)(void *))func, arg)) return (0); else return (thread); } /* * '_cupsThreadDetach()' - Tell the OS that the thread is running independently. */ void _cupsThreadDetach(_cups_thread_t thread)/* I - Thread ID */ { pthread_detach(thread); } /* * '_cupsThreadWait()' - Wait for a thread to exit. */ void * /* O - Return value */ _cupsThreadWait(_cups_thread_t thread) /* I - Thread ID */ { void *ret; /* Return value */ if (pthread_join(thread, &ret)) return (NULL); else return (ret); } #elif defined(_WIN32) # include /* * '_cupsCondBroadcast()' - Wake up waiting threads. */ void _cupsCondBroadcast(_cups_cond_t *cond) /* I - Condition */ { // TODO: Implement me } /* * '_cupsCondInit()' - Initialize a condition variable. */ void _cupsCondInit(_cups_cond_t *cond) /* I - Condition */ { // TODO: Implement me } /* * '_cupsCondWait()' - Wait for a condition with optional timeout. */ void _cupsCondWait(_cups_cond_t *cond, /* I - Condition */ _cups_mutex_t *mutex, /* I - Mutex */ double timeout) /* I - Timeout in seconds (0 or negative for none) */ { // TODO: Implement me } /* * '_cupsMutexInit()' - Initialize a mutex. */ void _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ { InitializeCriticalSection(&mutex->m_criticalSection); mutex->m_init = 1; } /* * '_cupsMutexLock()' - Lock a mutex. */ void _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ { if (!mutex->m_init) { _cupsGlobalLock(); if (!mutex->m_init) { InitializeCriticalSection(&mutex->m_criticalSection); mutex->m_init = 1; } _cupsGlobalUnlock(); } EnterCriticalSection(&mutex->m_criticalSection); } /* * '_cupsMutexUnlock()' - Unlock a mutex. */ void _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ { LeaveCriticalSection(&mutex->m_criticalSection); } /* * '_cupsRWInit()' - Initialize a reader/writer lock. */ void _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { _cupsMutexInit((_cups_mutex_t *)rwlock); } /* * '_cupsRWLockRead()' - Acquire a reader/writer lock for reading. */ void _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { _cupsMutexLock((_cups_mutex_t *)rwlock); } /* * '_cupsRWLockWrite()' - Acquire a reader/writer lock for writing. */ void _cupsRWLockWrite(_cups_rwlock_t *rwlock)/* I - Reader/writer lock */ { _cupsMutexLock((_cups_mutex_t *)rwlock); } /* * '_cupsRWUnlock()' - Release a reader/writer lock. */ void _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { _cupsMutexUnlock((_cups_mutex_t *)rwlock); } /* * '_cupsThreadCancel()' - Cancel (kill) a thread. */ void _cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */ { // TODO: Implement me } /* * '_cupsThreadCreate()' - Create a thread. */ _cups_thread_t /* O - Thread ID */ _cupsThreadCreate( _cups_thread_func_t func, /* I - Entry point */ void *arg) /* I - Entry point context */ { return (_beginthreadex(NULL, 0, (LPTHREAD_START_ROUTINE)func, arg, 0, NULL)); } /* * '_cupsThreadDetach()' - Tell the OS that the thread is running independently. */ void _cupsThreadDetach(_cups_thread_t thread)/* I - Thread ID */ { // TODO: Implement me (void)thread; } /* * '_cupsThreadWait()' - Wait for a thread to exit. */ void * /* O - Return value */ _cupsThreadWait(_cups_thread_t thread) /* I - Thread ID */ { // TODO: Implement me (void)thread; return (NULL); } #else /* No threading */ /* * '_cupsCondBroadcast()' - Wake up waiting threads. */ void _cupsCondBroadcast(_cups_cond_t *cond) /* I - Condition */ { // TODO: Implement me } /* * '_cupsCondInit()' - Initialize a condition variable. */ void _cupsCondInit(_cups_cond_t *cond) /* I - Condition */ { // TODO: Implement me } /* * '_cupsCondWait()' - Wait for a condition with optional timeout. */ void _cupsCondWait(_cups_cond_t *cond, /* I - Condition */ _cups_mutex_t *mutex, /* I - Mutex */ double timeout) /* I - Timeout in seconds (0 or negative for none) */ { // TODO: Implement me } /* * '_cupsMutexInit()' - Initialize a mutex. */ void _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ { (void)mutex; } /* * '_cupsMutexLock()' - Lock a mutex. */ void _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ { (void)mutex; } /* * '_cupsMutexUnlock()' - Unlock a mutex. */ void _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ { (void)mutex; } /* * '_cupsRWInit()' - Initialize a reader/writer lock. */ void _cupsRWInit(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { (void)rwlock; } /* * '_cupsRWLockRead()' - Acquire a reader/writer lock for reading. */ void _cupsRWLockRead(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { (void)rwlock; } /* * '_cupsRWLockWrite()' - Acquire a reader/writer lock for writing. */ void _cupsRWLockWrite(_cups_rwlock_t *rwlock)/* I - Reader/writer lock */ { (void)rwlock; } /* * '_cupsRWUnlock()' - Release a reader/writer lock. */ void _cupsRWUnlock(_cups_rwlock_t *rwlock) /* I - Reader/writer lock */ { (void)rwlock; } /* * '_cupsThreadCancel()' - Cancel (kill) a thread. */ void _cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */ { (void)thread; } /* * '_cupsThreadCreate()' - Create a thread. */ _cups_thread_t /* O - Thread ID */ _cupsThreadCreate( _cups_thread_func_t func, /* I - Entry point */ void *arg) /* I - Entry point context */ { fputs("DEBUG: CUPS was compiled without threading support, no thread created.\n", stderr); (void)func; (void)arg; return (0); } /* * '_cupsThreadDetach()' - Tell the OS that the thread is running independently. */ void _cupsThreadDetach(_cups_thread_t thread)/* I - Thread ID */ { (void)thread; } /* * '_cupsThreadWait()' - Wait for a thread to exit. */ void * /* O - Return value */ _cupsThreadWait(_cups_thread_t thread) /* I - Thread ID */ { (void)thread; return (NULL); } #endif /* HAVE_PTHREAD_H */ cups-2.4.7/cups/thread-private.h0000644000175000017500000000666114502571342016434 0ustar zdohnalzdohnal/* * Private threading definitions for CUPS. * * Copyright 2009-2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_THREAD_PRIVATE_H_ # define _CUPS_THREAD_PRIVATE_H_ /* * Include necessary headers... */ # include "config.h" # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ # ifdef HAVE_PTHREAD_H /* POSIX threading */ # include typedef void *(*_cups_thread_func_t)(void *arg); typedef pthread_t _cups_thread_t; typedef pthread_cond_t _cups_cond_t; typedef pthread_mutex_t _cups_mutex_t; typedef pthread_rwlock_t _cups_rwlock_t; typedef pthread_key_t _cups_threadkey_t; # define _CUPS_COND_INITIALIZER PTHREAD_COND_INITIALIZER # define _CUPS_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER # define _CUPS_RWLOCK_INITIALIZER PTHREAD_RWLOCK_INITIALIZER # define _CUPS_THREADKEY_INITIALIZER 0 # define _cupsThreadGetData(k) pthread_getspecific(k) # define _cupsThreadSetData(k,p) pthread_setspecific(k,p) # elif defined(_WIN32) /* Windows threading */ # include # include typedef void *(__stdcall *_cups_thread_func_t)(void *arg); typedef int _cups_thread_t; typedef char _cups_cond_t; /* TODO: Implement Win32 conditional */ typedef struct _cups_mutex_s { int m_init; /* Flag for on-demand initialization */ CRITICAL_SECTION m_criticalSection; /* Win32 Critical Section */ } _cups_mutex_t; typedef _cups_mutex_t _cups_rwlock_t; /* TODO: Implement Win32 reader/writer lock */ typedef DWORD _cups_threadkey_t; # define _CUPS_COND_INITIALIZER 0 # define _CUPS_MUTEX_INITIALIZER { 0, 0 } # define _CUPS_RWLOCK_INITIALIZER { 0, 0 } # define _CUPS_THREADKEY_INITIALIZER 0 # define _cupsThreadGetData(k) TlsGetValue(k) # define _cupsThreadSetData(k,p) TlsSetValue(k,p) # else /* No threading */ typedef void *(*_cups_thread_func_t)(void *arg); typedef int _cups_thread_t; typedef char _cups_cond_t; typedef char _cups_mutex_t; typedef char _cups_rwlock_t; typedef void *_cups_threadkey_t; # define _CUPS_COND_INITIALIZER 0 # define _CUPS_MUTEX_INITIALIZER 0 # define _CUPS_RWLOCK_INITIALIZER 0 # define _CUPS_THREADKEY_INITIALIZER (void *)0 # define _cupsThreadGetData(k) k # define _cupsThreadSetData(k,p) k=p # endif /* HAVE_PTHREAD_H */ /* * Functions... */ extern void _cupsCondBroadcast(_cups_cond_t *cond) _CUPS_PRIVATE; extern void _cupsCondInit(_cups_cond_t *cond) _CUPS_PRIVATE; extern void _cupsCondWait(_cups_cond_t *cond, _cups_mutex_t *mutex, double timeout) _CUPS_PRIVATE; extern void _cupsMutexInit(_cups_mutex_t *mutex) _CUPS_PRIVATE; extern void _cupsMutexLock(_cups_mutex_t *mutex) _CUPS_PRIVATE; extern void _cupsMutexUnlock(_cups_mutex_t *mutex) _CUPS_PRIVATE; extern void _cupsRWInit(_cups_rwlock_t *rwlock) _CUPS_PRIVATE; extern void _cupsRWLockRead(_cups_rwlock_t *rwlock) _CUPS_PRIVATE; extern void _cupsRWLockWrite(_cups_rwlock_t *rwlock) _CUPS_PRIVATE; extern void _cupsRWUnlock(_cups_rwlock_t *rwlock) _CUPS_PRIVATE; extern void _cupsThreadCancel(_cups_thread_t thread) _CUPS_PRIVATE; extern _cups_thread_t _cupsThreadCreate(_cups_thread_func_t func, void *arg) _CUPS_PRIVATE; extern void _cupsThreadDetach(_cups_thread_t thread) _CUPS_PRIVATE; extern void *_cupsThreadWait(_cups_thread_t thread) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_THREAD_PRIVATE_H_ */ cups-2.4.7/cups/testthreads.c0000644000175000017500000001523314502571342016035 0ustar zdohnalzdohnal/* * Threaded test program for CUPS. * * Copyright © 2012-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include /* * Local functions... */ static int enum_dests_cb(void *_name, unsigned flags, cups_dest_t *dest); static void *run_query(cups_dest_t *dest); static void show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { /* * Go through all the available destinations to find the requested one... */ (void)argc; cupsEnumDests(CUPS_DEST_FLAGS_NONE, -1, NULL, 0, 0, enum_dests_cb, argv[1]); return (0); } /* * 'enum_dests_cb()' - Destination enumeration function... */ static int /* O - 1 to continue, 0 to stop */ enum_dests_cb(void *_name, /* I - Printer name, if any */ unsigned flags, /* I - Enumeration flags */ cups_dest_t *dest) /* I - Found destination */ { const char *name = (const char *)_name; /* Printer name */ cups_dest_t *cdest; /* Copied destination */ (void)flags; /* * If a name was specified, compare it... */ if (name && strcasecmp(name, dest->name)) return (1); /* Continue */ /* * Copy the destination and run the query on a separate thread... */ cupsCopyDest(dest, 0, &cdest); _cupsThreadWait(_cupsThreadCreate((_cups_thread_func_t)run_query, cdest)); cupsFreeDests(1, cdest); /* * Continue if no name was specified or the name matches... */ return (!name || !strcasecmp(name, dest->name)); } /* * 'run_query()' - Query printer capabilities on a separate thread. */ static void * /* O - Return value (not used) */ run_query(cups_dest_t *dest) /* I - Destination to query */ { http_t *http; /* Connection to destination */ cups_dinfo_t *dinfo; /* Destination info */ unsigned dflags = CUPS_DEST_FLAGS_NONE; /* Destination flags */ if ((http = cupsConnectDest(dest, dflags, 300, NULL, NULL, 0, NULL, NULL)) == NULL) { printf("testthreads: Unable to connect to destination \"%s\": %s\n", dest->name, cupsLastErrorString()); return (NULL); } if ((dinfo = cupsCopyDestInfo(http, dest)) == NULL) { printf("testdest: Unable to get information for destination \"%s\": %s\n", dest->name, cupsLastErrorString()); return (NULL); } printf("\n%s:\n", dest->name); show_supported(http, dest, dinfo, NULL, NULL); return (NULL); } /* * 'show_supported()' - Show supported options, values, etc. */ static void show_supported(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option, /* I - Option, if any */ const char *value) /* I - Value, if any */ { ipp_attribute_t *attr; /* Attribute */ int i, /* Looping var */ count; /* Number of values */ if (!option) { attr = cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes"); if (attr) { count = ippGetCount(attr); for (i = 0; i < count; i ++) show_supported(http, dest, dinfo, ippGetString(attr, i, NULL), NULL); } else { static const char * const options[] = { /* List of standard options */ CUPS_COPIES, CUPS_FINISHINGS, CUPS_MEDIA, CUPS_NUMBER_UP, CUPS_ORIENTATION, CUPS_PRINT_COLOR_MODE, CUPS_PRINT_QUALITY, CUPS_SIDES }; puts(" No job-creation-attributes-supported attribute, probing instead."); for (i = 0; i < (int)(sizeof(options) / sizeof(options[0])); i ++) if (cupsCheckDestSupported(http, dest, dinfo, options[i], NULL)) show_supported(http, dest, dinfo, options[i], NULL); } } else if (!value) { printf(" %s (%s - %s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option), cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported"); if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL) { count = ippGetCount(attr); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : for (i = 0; i < count; i ++) printf(" %d\n", ippGetInteger(attr, i)); break; case IPP_TAG_ENUM : for (i = 0; i < count; i ++) { int val = ippGetInteger(attr, i); char valstr[256]; snprintf(valstr, sizeof(valstr), "%d", val); printf(" %s (%s)\n", ippEnumString(option, ippGetInteger(attr, i)), cupsLocalizeDestValue(http, dest, dinfo, option, valstr)); } break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int upper, lower = ippGetRange(attr, i, &upper); printf(" %d-%d\n", lower, upper); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { int xres, yres; ipp_res_t units; xres = ippGetResolution(attr, i, &yres, &units); if (xres == yres) printf(" %d%s\n", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else printf(" %dx%d%s\n", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_KEYWORD : for (i = 0; i < count; i ++) printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL))); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < count; i ++) printf(" %s\n", ippGetString(attr, i, NULL)); break; case IPP_TAG_STRING : for (i = 0; i < count; i ++) { int j, len; unsigned char *data = ippGetOctetString(attr, i, &len); fputs(" ", stdout); for (j = 0; j < len; j ++) { if (data[j] < ' ' || data[j] >= 0x7f) printf("<%02X>", data[j]); else putchar(data[j]); } putchar('\n'); } break; case IPP_TAG_BOOLEAN : break; default : printf(" %s\n", ippTagString(ippGetValueTag(attr))); break; } } } else if (cupsCheckDestSupported(http, dest, dinfo, option, value)) puts("YES"); else puts("NO"); } cups-2.4.7/cups/testsnmp.c0000644000175000017500000001422314502571342015356 0ustar zdohnalzdohnal/* * SNMP test program for CUPS. * * Copyright 2008-2014 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "snmp-private.h" /* * Local functions... */ static void print_packet(cups_snmp_t *packet, void *data); static int show_oid(int fd, const char *community, http_addr_t *addr, const char *s, int walk); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int fd = -1; /* SNMP socket */ http_addrlist_t *host = NULL; /* Address of host */ int walk = 0; /* Walk OIDs? */ char *oid = NULL; /* Last OID shown */ const char *community; /* Community name */ fputs("_cupsSNMPDefaultCommunity: ", stdout); if ((community = _cupsSNMPDefaultCommunity()) == NULL) { puts("FAIL (NULL community name)"); return (1); } printf("PASS (%s)\n", community); /* * Query OIDs from the command-line... */ for (i = 1; i < argc; i ++) if (!strcmp(argv[i], "-c")) { i ++; if (i >= argc) usage(); else community = argv[i]; } else if (!strcmp(argv[i], "-d")) _cupsSNMPSetDebug(10); else if (!strcmp(argv[i], "-w")) walk = 1; else if (!host) { if ((host = httpAddrGetList(argv[i], AF_UNSPEC, "161")) == NULL) { printf("testsnmp: Unable to find \"%s\"!\n", argv[1]); return (1); } if (fd < 0) { fputs("_cupsSNMPOpen: ", stdout); if ((fd = _cupsSNMPOpen(host->addr.addr.sa_family)) < 0) { printf("FAIL (%s)\n", strerror(errno)); return (1); } puts("PASS"); } } else if (!show_oid(fd, community, &(host->addr), argv[i], walk)) return (1); else oid = argv[i]; if (!host) usage(); if (!oid) { if (!show_oid(fd, community, &(host->addr), walk ? ".1.3.6.1.2.1.43" : ".1.3.6.1.2.1.43.10.2.1.4.1.1", walk)) return (1); } return (0); } /* * 'print_packet()' - Print the contents of the response packet. */ static void print_packet(cups_snmp_t *packet, /* I - SNMP response packet */ void *data) /* I - User data pointer (not used) */ { unsigned i; /* Looping var */ char temp[1024]; /* Temporary OID string */ (void)data; printf("%s = ", _cupsSNMPOIDToString(packet->object_name, temp, sizeof(temp))); switch (packet->object_type) { case CUPS_ASN1_BOOLEAN : printf("BOOLEAN %s\n", packet->object_value.boolean ? "TRUE" : "FALSE"); break; case CUPS_ASN1_INTEGER : printf("INTEGER %d\n", packet->object_value.integer); break; case CUPS_ASN1_BIT_STRING : printf("BIT-STRING \"%s\"\n", (char *)packet->object_value.string.bytes); break; case CUPS_ASN1_OCTET_STRING : printf("OCTET-STRING \"%s\"\n", (char *)packet->object_value.string.bytes); break; case CUPS_ASN1_NULL_VALUE : puts("NULL-VALUE"); break; case CUPS_ASN1_OID : printf("OID %s\n", _cupsSNMPOIDToString(packet->object_value.oid, temp, sizeof(temp))); break; case CUPS_ASN1_HEX_STRING : fputs("Hex-STRING", stdout); for (i = 0; i < packet->object_value.string.num_bytes; i ++) printf(" %02X", packet->object_value.string.bytes[i]); putchar('\n'); break; case CUPS_ASN1_COUNTER : printf("Counter %d\n", packet->object_value.counter); break; case CUPS_ASN1_GAUGE : printf("Gauge %u\n", packet->object_value.gauge); break; case CUPS_ASN1_TIMETICKS : printf("Timeticks %u days, %u:%02u:%02u.%02u\n", packet->object_value.timeticks / 8640000, (packet->object_value.timeticks / 360000) % 24, (packet->object_value.timeticks / 6000) % 60, (packet->object_value.timeticks / 100) % 60, packet->object_value.timeticks % 100); break; default : printf("Unknown-%X\n", packet->object_type); break; } } /* * 'show_oid()' - Show the specified OID. */ static int /* O - 1 on success, 0 on error */ show_oid(int fd, /* I - SNMP socket */ const char *community, /* I - Community name */ http_addr_t *addr, /* I - Address to query */ const char *s, /* I - OID to query */ int walk) /* I - Walk OIDs? */ { int i; /* Looping var */ int oid[CUPS_SNMP_MAX_OID]; /* OID */ cups_snmp_t packet; /* SNMP packet */ char temp[1024]; /* Temporary OID string */ if (!_cupsSNMPStringToOID(s, oid, sizeof(oid) / sizeof(oid[0]))) { puts("testsnmp: Bad OID"); return (0); } if (walk) { printf("_cupsSNMPWalk(%s): ", _cupsSNMPOIDToString(oid, temp, sizeof(temp))); if (_cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5.0, print_packet, NULL) < 0) { printf("FAIL (%s)\n", strerror(errno)); return (0); } } else { printf("_cupsSNMPWrite(%s): ", _cupsSNMPOIDToString(oid, temp, sizeof(temp))); if (!_cupsSNMPWrite(fd, addr, CUPS_SNMP_VERSION_1, community, CUPS_ASN1_GET_REQUEST, 1, oid)) { printf("FAIL (%s)\n", strerror(errno)); return (0); } puts("PASS"); fputs("_cupsSNMPRead(5.0): ", stdout); if (!_cupsSNMPRead(fd, &packet, 5.0)) { puts("FAIL (timeout)"); return (0); } if (!_cupsSNMPIsOID(&packet, oid)) { printf("FAIL (bad OID %d", packet.object_name[0]); for (i = 1; packet.object_name[i] >= 0; i ++) printf(".%d", packet.object_name[i]); puts(")"); return (0); } if (packet.error) { printf("FAIL (%s)\n", packet.error); return (0); } puts("PASS"); print_packet(&packet, NULL); } return (1); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { puts("Usage: testsnmp [options] host-or-ip [oid ...]"); puts(""); puts("Options:"); puts(""); puts(" -c community Set community name"); puts(" -d Enable debugging"); puts(" -w Walk all OIDs under the specified one"); exit (1); } cups-2.4.7/cups/testraster.c0000644000175000017500000005075114502571342015707 0ustar zdohnalzdohnal/* * Raster test program routines for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include /* * Local functions... */ static int do_ras_file(const char *filename); static int do_raster_tests(cups_mode_t mode); static void print_changes(cups_page_header2_t *header, cups_page_header2_t *expected); /* * 'main()' - Test the raster functions. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int errors = 0; /* Number of errors */ if (argc == 1) { errors += do_raster_tests(CUPS_RASTER_WRITE); errors += do_raster_tests(CUPS_RASTER_WRITE_COMPRESSED); errors += do_raster_tests(CUPS_RASTER_WRITE_PWG); errors += do_raster_tests(CUPS_RASTER_WRITE_APPLE); } else { int i; /* Looping var */ for (i = 1; i < argc; i ++) errors += do_ras_file(argv[i]); } return (errors); } /* * 'do_ras_file()' - Test reading of a raster file. */ static int /* O - Number of errors */ do_ras_file(const char *filename) /* I - Filename */ { unsigned y; /* Looping vars */ int fd; /* File descriptor */ cups_raster_t *ras; /* Raster stream */ cups_page_header2_t header; /* Page header */ unsigned char *data; /* Raster data */ int errors = 0; /* Number of errors */ unsigned pages = 0; /* Number of pages */ if ((fd = open(filename, O_RDONLY)) < 0) { printf("%s: %s\n", filename, strerror(errno)); return (1); } if ((ras = cupsRasterOpen(fd, CUPS_RASTER_READ)) == NULL) { printf("%s: cupsRasterOpen failed.\n", filename); close(fd); return (1); } printf("%s:\n", filename); while (cupsRasterReadHeader2(ras, &header)) { pages ++; data = malloc(header.cupsBytesPerLine); printf(" Page %u: %ux%ux%u@%ux%udpi", pages, header.cupsWidth, header.cupsHeight, header.cupsBitsPerPixel, header.HWResolution[0], header.HWResolution[1]); fflush(stdout); for (y = 0; y < header.cupsHeight; y ++) if (cupsRasterReadPixels(ras, data, header.cupsBytesPerLine) < header.cupsBytesPerLine) break; if (y < header.cupsHeight) printf(" ERROR AT LINE %d\n", y); else putchar('\n'); free(data); } printf("EOF at %ld\n", (long)lseek(fd, SEEK_CUR, 0)); cupsRasterClose(ras); close(fd); return (errors); } /* * 'do_raster_tests()' - Test reading and writing of raster data. */ static int /* O - Number of errors */ do_raster_tests(cups_mode_t mode) /* O - Write mode */ { unsigned page, x, y, count;/* Looping vars */ FILE *fp; /* Raster file */ cups_raster_t *r; /* Raster stream */ cups_page_header2_t header, /* Page header */ expected; /* Expected page header */ unsigned char data[2048]; /* Raster data */ int errors = 0; /* Number of errors */ /* * Test writing... */ printf("cupsRasterOpen(%s): ", mode == CUPS_RASTER_WRITE ? "CUPS_RASTER_WRITE" : mode == CUPS_RASTER_WRITE_COMPRESSED ? "CUPS_RASTER_WRITE_COMPRESSED" : mode == CUPS_RASTER_WRITE_PWG ? "CUPS_RASTER_WRITE_PWG" : "CUPS_RASTER_WRITE_APPLE"); fflush(stdout); if ((fp = fopen("test.raster", "wb")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); return (1); } if ((r = cupsRasterOpen(fileno(fp), mode)) == NULL) { printf("FAIL (%s)\n", strerror(errno)); fclose(fp); return (1); } puts("PASS"); for (page = 0; page < 4; page ++) { memset(&header, 0, sizeof(header)); header.cupsWidth = 256; header.cupsHeight = 256; header.cupsBytesPerLine = 256; header.HWResolution[0] = 64; header.HWResolution[1] = 64; header.PageSize[0] = 288; header.PageSize[1] = 288; header.cupsPageSize[0] = 288.0f; header.cupsPageSize[1] = 288.0f; strlcpy(header.MediaType, "auto", sizeof(header.MediaType)); if (page & 1) { header.cupsBytesPerLine *= 4; header.cupsColorSpace = CUPS_CSPACE_CMYK; header.cupsColorOrder = CUPS_ORDER_CHUNKED; header.cupsNumColors = 4; } else { header.cupsColorSpace = CUPS_CSPACE_W; header.cupsColorOrder = CUPS_ORDER_CHUNKED; header.cupsNumColors = 1; } if (page & 2) { header.cupsBytesPerLine *= 2; header.cupsBitsPerColor = 16; header.cupsBitsPerPixel = (page & 1) ? 64 : 16; } else { header.cupsBitsPerColor = 8; header.cupsBitsPerPixel = (page & 1) ? 32 : 8; } printf("cupsRasterWriteHeader2(page %d): ", page + 1); if (cupsRasterWriteHeader2(r, &header)) { puts("PASS"); } else { puts("FAIL"); errors ++; } fputs("cupsRasterWritePixels: ", stdout); fflush(stdout); memset(data, 0, header.cupsBytesPerLine); for (y = 0; y < 64; y ++) if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) break; if (y < 64) { puts("FAIL"); errors ++; } else { for (x = 0; x < header.cupsBytesPerLine; x ++) data[x] = (unsigned char)x; for (y = 0; y < 64; y ++) if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) break; if (y < 64) { puts("FAIL"); errors ++; } else { memset(data, 255, header.cupsBytesPerLine); for (y = 0; y < 64; y ++) if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) break; if (y < 64) { puts("FAIL"); errors ++; } else { for (x = 0; x < header.cupsBytesPerLine; x ++) data[x] = (unsigned char)(x / 4); for (y = 0; y < 64; y ++) if (!cupsRasterWritePixels(r, data, header.cupsBytesPerLine)) break; if (y < 64) { puts("FAIL"); errors ++; } else puts("PASS"); } } } } cupsRasterClose(r); fclose(fp); /* * Test reading... */ fputs("cupsRasterOpen(CUPS_RASTER_READ): ", stdout); fflush(stdout); if ((fp = fopen("test.raster", "rb")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); return (1); } if ((r = cupsRasterOpen(fileno(fp), CUPS_RASTER_READ)) == NULL) { printf("FAIL (%s)\n", strerror(errno)); fclose(fp); return (1); } puts("PASS"); for (page = 0; page < 4; page ++) { memset(&expected, 0, sizeof(expected)); expected.cupsWidth = 256; expected.cupsHeight = 256; expected.cupsBytesPerLine = 256; expected.HWResolution[0] = 64; expected.HWResolution[1] = 64; expected.PageSize[0] = 288; expected.PageSize[1] = 288; strlcpy(expected.MediaType, "auto", sizeof(expected.MediaType)); if (mode != CUPS_RASTER_WRITE_PWG) { expected.cupsPageSize[0] = 288.0f; expected.cupsPageSize[1] = 288.0f; } if (mode >= CUPS_RASTER_WRITE_PWG) { strlcpy(expected.MediaClass, "PwgRaster", sizeof(expected.MediaClass)); expected.cupsInteger[7] = 0xffffff; } if (page & 1) { expected.cupsBytesPerLine *= 4; expected.cupsColorSpace = CUPS_CSPACE_CMYK; expected.cupsColorOrder = CUPS_ORDER_CHUNKED; expected.cupsNumColors = 4; } else { expected.cupsColorSpace = CUPS_CSPACE_W; expected.cupsColorOrder = CUPS_ORDER_CHUNKED; expected.cupsNumColors = 1; } if (page & 2) { expected.cupsBytesPerLine *= 2; expected.cupsBitsPerColor = 16; expected.cupsBitsPerPixel = (page & 1) ? 64 : 16; } else { expected.cupsBitsPerColor = 8; expected.cupsBitsPerPixel = (page & 1) ? 32 : 8; } printf("cupsRasterReadHeader2(page %d): ", page + 1); fflush(stdout); if (!cupsRasterReadHeader2(r, &header)) { puts("FAIL (read error)"); errors ++; break; } else if (memcmp(&header, &expected, sizeof(header))) { puts("FAIL (bad page header)"); errors ++; print_changes(&header, &expected); } else puts("PASS"); fputs("cupsRasterReadPixels: ", stdout); fflush(stdout); for (y = 0; y < 64; y ++) { if (!cupsRasterReadPixels(r, data, header.cupsBytesPerLine)) { puts("FAIL (read error)"); errors ++; break; } if (data[0] != 0 || memcmp(data, data + 1, header.cupsBytesPerLine - 1)) { printf("FAIL (raster line %d corrupt)\n", y); for (x = 0, count = 0; x < header.cupsBytesPerLine && count < 10; x ++) { if (data[x]) { count ++; if (count == 10) puts(" ..."); else printf(" %4u %02X (expected %02X)\n", x, data[x], 0); } } errors ++; break; } } if (y == 64) { for (y = 0; y < 64; y ++) { if (!cupsRasterReadPixels(r, data, header.cupsBytesPerLine)) { puts("FAIL (read error)"); errors ++; break; } for (x = 0; x < header.cupsBytesPerLine; x ++) if (data[x] != (x & 255)) break; if (x < header.cupsBytesPerLine) { printf("FAIL (raster line %d corrupt)\n", y + 64); for (x = 0, count = 0; x < header.cupsBytesPerLine && count < 10; x ++) { if (data[x] != (x & 255)) { count ++; if (count == 10) puts(" ..."); else printf(" %4u %02X (expected %02X)\n", x, data[x], x & 255); } } errors ++; break; } } if (y == 64) { for (y = 0; y < 64; y ++) { if (!cupsRasterReadPixels(r, data, header.cupsBytesPerLine)) { puts("FAIL (read error)"); errors ++; break; } if (data[0] != 255 || memcmp(data, data + 1, header.cupsBytesPerLine - 1)) { printf("fail (raster line %d corrupt)\n", y + 128); for (x = 0, count = 0; x < header.cupsBytesPerLine && count < 10; x ++) { if (data[x] != 255) { count ++; if (count == 10) puts(" ..."); else printf(" %4u %02X (expected %02X)\n", x, data[x], 255); } } errors ++; break; } } if (y == 64) { for (y = 0; y < 64; y ++) { if (!cupsRasterReadPixels(r, data, header.cupsBytesPerLine)) { puts("FAIL (read error)"); errors ++; break; } for (x = 0; x < header.cupsBytesPerLine; x ++) if (data[x] != ((x / 4) & 255)) break; if (x < header.cupsBytesPerLine) { printf("FAIL (raster line %d corrupt)\n", y + 192); for (x = 0, count = 0; x < header.cupsBytesPerLine && count < 10; x ++) { if (data[x] != ((x / 4) & 255)) { count ++; if (count == 10) puts(" ..."); else printf(" %4u %02X (expected %02X)\n", x, data[x], (x / 4) & 255); } } errors ++; break; } } if (y == 64) puts("PASS"); } } } } cupsRasterClose(r); fclose(fp); return (errors); } /* * 'print_changes()' - Print differences in the page header. */ static void print_changes( cups_page_header2_t *header, /* I - Actual page header */ cups_page_header2_t *expected) /* I - Expected page header */ { int i; /* Looping var */ if (strcmp(header->MediaClass, expected->MediaClass)) printf(" MediaClass (%s), expected (%s)\n", header->MediaClass, expected->MediaClass); if (strcmp(header->MediaColor, expected->MediaColor)) printf(" MediaColor (%s), expected (%s)\n", header->MediaColor, expected->MediaColor); if (strcmp(header->MediaType, expected->MediaType)) printf(" MediaType (%s), expected (%s)\n", header->MediaType, expected->MediaType); if (strcmp(header->OutputType, expected->OutputType)) printf(" OutputType (%s), expected (%s)\n", header->OutputType, expected->OutputType); if (header->AdvanceDistance != expected->AdvanceDistance) printf(" AdvanceDistance %d, expected %d\n", header->AdvanceDistance, expected->AdvanceDistance); if (header->AdvanceMedia != expected->AdvanceMedia) printf(" AdvanceMedia %d, expected %d\n", header->AdvanceMedia, expected->AdvanceMedia); if (header->Collate != expected->Collate) printf(" Collate %d, expected %d\n", header->Collate, expected->Collate); if (header->CutMedia != expected->CutMedia) printf(" CutMedia %d, expected %d\n", header->CutMedia, expected->CutMedia); if (header->Duplex != expected->Duplex) printf(" Duplex %d, expected %d\n", header->Duplex, expected->Duplex); if (header->HWResolution[0] != expected->HWResolution[0] || header->HWResolution[1] != expected->HWResolution[1]) printf(" HWResolution [%d %d], expected [%d %d]\n", header->HWResolution[0], header->HWResolution[1], expected->HWResolution[0], expected->HWResolution[1]); if (memcmp(header->ImagingBoundingBox, expected->ImagingBoundingBox, sizeof(header->ImagingBoundingBox))) printf(" ImagingBoundingBox [%d %d %d %d], expected [%d %d %d %d]\n", header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], header->ImagingBoundingBox[2], header->ImagingBoundingBox[3], expected->ImagingBoundingBox[0], expected->ImagingBoundingBox[1], expected->ImagingBoundingBox[2], expected->ImagingBoundingBox[3]); if (header->InsertSheet != expected->InsertSheet) printf(" InsertSheet %d, expected %d\n", header->InsertSheet, expected->InsertSheet); if (header->Jog != expected->Jog) printf(" Jog %d, expected %d\n", header->Jog, expected->Jog); if (header->LeadingEdge != expected->LeadingEdge) printf(" LeadingEdge %d, expected %d\n", header->LeadingEdge, expected->LeadingEdge); if (header->Margins[0] != expected->Margins[0] || header->Margins[1] != expected->Margins[1]) printf(" Margins [%d %d], expected [%d %d]\n", header->Margins[0], header->Margins[1], expected->Margins[0], expected->Margins[1]); if (header->ManualFeed != expected->ManualFeed) printf(" ManualFeed %d, expected %d\n", header->ManualFeed, expected->ManualFeed); if (header->MediaPosition != expected->MediaPosition) printf(" MediaPosition %d, expected %d\n", header->MediaPosition, expected->MediaPosition); if (header->MediaWeight != expected->MediaWeight) printf(" MediaWeight %d, expected %d\n", header->MediaWeight, expected->MediaWeight); if (header->MirrorPrint != expected->MirrorPrint) printf(" MirrorPrint %d, expected %d\n", header->MirrorPrint, expected->MirrorPrint); if (header->NegativePrint != expected->NegativePrint) printf(" NegativePrint %d, expected %d\n", header->NegativePrint, expected->NegativePrint); if (header->NumCopies != expected->NumCopies) printf(" NumCopies %d, expected %d\n", header->NumCopies, expected->NumCopies); if (header->Orientation != expected->Orientation) printf(" Orientation %d, expected %d\n", header->Orientation, expected->Orientation); if (header->OutputFaceUp != expected->OutputFaceUp) printf(" OutputFaceUp %d, expected %d\n", header->OutputFaceUp, expected->OutputFaceUp); if (header->PageSize[0] != expected->PageSize[0] || header->PageSize[1] != expected->PageSize[1]) printf(" PageSize [%d %d], expected [%d %d]\n", header->PageSize[0], header->PageSize[1], expected->PageSize[0], expected->PageSize[1]); if (header->Separations != expected->Separations) printf(" Separations %d, expected %d\n", header->Separations, expected->Separations); if (header->TraySwitch != expected->TraySwitch) printf(" TraySwitch %d, expected %d\n", header->TraySwitch, expected->TraySwitch); if (header->Tumble != expected->Tumble) printf(" Tumble %d, expected %d\n", header->Tumble, expected->Tumble); if (header->cupsWidth != expected->cupsWidth) printf(" cupsWidth %d, expected %d\n", header->cupsWidth, expected->cupsWidth); if (header->cupsHeight != expected->cupsHeight) printf(" cupsHeight %d, expected %d\n", header->cupsHeight, expected->cupsHeight); if (header->cupsMediaType != expected->cupsMediaType) printf(" cupsMediaType %d, expected %d\n", header->cupsMediaType, expected->cupsMediaType); if (header->cupsBitsPerColor != expected->cupsBitsPerColor) printf(" cupsBitsPerColor %d, expected %d\n", header->cupsBitsPerColor, expected->cupsBitsPerColor); if (header->cupsBitsPerPixel != expected->cupsBitsPerPixel) printf(" cupsBitsPerPixel %d, expected %d\n", header->cupsBitsPerPixel, expected->cupsBitsPerPixel); if (header->cupsBytesPerLine != expected->cupsBytesPerLine) printf(" cupsBytesPerLine %d, expected %d\n", header->cupsBytesPerLine, expected->cupsBytesPerLine); if (header->cupsColorOrder != expected->cupsColorOrder) printf(" cupsColorOrder %d, expected %d\n", header->cupsColorOrder, expected->cupsColorOrder); if (header->cupsColorSpace != expected->cupsColorSpace) printf(" cupsColorSpace %d, expected %d\n", header->cupsColorSpace, expected->cupsColorSpace); if (header->cupsCompression != expected->cupsCompression) printf(" cupsCompression %d, expected %d\n", header->cupsCompression, expected->cupsCompression); if (header->cupsRowCount != expected->cupsRowCount) printf(" cupsRowCount %d, expected %d\n", header->cupsRowCount, expected->cupsRowCount); if (header->cupsRowFeed != expected->cupsRowFeed) printf(" cupsRowFeed %d, expected %d\n", header->cupsRowFeed, expected->cupsRowFeed); if (header->cupsRowStep != expected->cupsRowStep) printf(" cupsRowStep %d, expected %d\n", header->cupsRowStep, expected->cupsRowStep); if (header->cupsNumColors != expected->cupsNumColors) printf(" cupsNumColors %d, expected %d\n", header->cupsNumColors, expected->cupsNumColors); if (fabs(header->cupsBorderlessScalingFactor - expected->cupsBorderlessScalingFactor) > 0.001) printf(" cupsBorderlessScalingFactor %g, expected %g\n", header->cupsBorderlessScalingFactor, expected->cupsBorderlessScalingFactor); if (fabs(header->cupsPageSize[0] - expected->cupsPageSize[0]) > 0.001 || fabs(header->cupsPageSize[1] - expected->cupsPageSize[1]) > 0.001) printf(" cupsPageSize [%g %g], expected [%g %g]\n", header->cupsPageSize[0], header->cupsPageSize[1], expected->cupsPageSize[0], expected->cupsPageSize[1]); if (fabs(header->cupsImagingBBox[0] - expected->cupsImagingBBox[0]) > 0.001 || fabs(header->cupsImagingBBox[1] - expected->cupsImagingBBox[1]) > 0.001 || fabs(header->cupsImagingBBox[2] - expected->cupsImagingBBox[2]) > 0.001 || fabs(header->cupsImagingBBox[3] - expected->cupsImagingBBox[3]) > 0.001) printf(" cupsImagingBBox [%g %g %g %g], expected [%g %g %g %g]\n", header->cupsImagingBBox[0], header->cupsImagingBBox[1], header->cupsImagingBBox[2], header->cupsImagingBBox[3], expected->cupsImagingBBox[0], expected->cupsImagingBBox[1], expected->cupsImagingBBox[2], expected->cupsImagingBBox[3]); for (i = 0; i < 16; i ++) if (header->cupsInteger[i] != expected->cupsInteger[i]) printf(" cupsInteger%d %d, expected %d\n", i, header->cupsInteger[i], expected->cupsInteger[i]); for (i = 0; i < 16; i ++) if (fabs(header->cupsReal[i] - expected->cupsReal[i]) > 0.001) printf(" cupsReal%d %g, expected %g\n", i, header->cupsReal[i], expected->cupsReal[i]); for (i = 0; i < 16; i ++) if (strcmp(header->cupsString[i], expected->cupsString[i])) printf(" cupsString%d (%s), expected (%s)\n", i, header->cupsString[i], expected->cupsString[i]); if (strcmp(header->cupsMarkerType, expected->cupsMarkerType)) printf(" cupsMarkerType (%s), expected (%s)\n", header->cupsMarkerType, expected->cupsMarkerType); if (strcmp(header->cupsRenderingIntent, expected->cupsRenderingIntent)) printf(" cupsRenderingIntent (%s), expected (%s)\n", header->cupsRenderingIntent, expected->cupsRenderingIntent); if (strcmp(header->cupsPageSizeName, expected->cupsPageSizeName)) printf(" cupsPageSizeName (%s), expected (%s)\n", header->cupsPageSizeName, expected->cupsPageSizeName); } cups-2.4.7/cups/testpwg.c0000644000175000017500000003241314502571342015177 0ustar zdohnalzdohnal/* * PWG unit test program for CUPS. * * Copyright 2009-2016 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "ppd-private.h" #include "file-private.h" /* * Local functions... */ static int test_pagesize(_ppd_cache_t *pc, ppd_file_t *ppd, const char *ppdsize); static int test_ppd_cache(_ppd_cache_t *pc, ppd_file_t *ppd); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int status; /* Status of tests (0 = success, 1 = fail) */ const char *ppdfile; /* PPD filename */ ppd_file_t *ppd; /* PPD file */ _ppd_cache_t *pc; /* PPD cache and PWG mapping data */ const pwg_media_t *pwgmedia; /* PWG media size */ size_t i, /* Looping var */ num_media; /* Number of media sizes */ const pwg_media_t *mediatable; /* Media size table */ int dupmedia = 0; /* Duplicate media sizes? */ status = 0; if (argc < 2 || argc > 3) { puts("Usage: ./testpwg filename.ppd [jobfile]"); return (1); } ppdfile = argv[1]; printf("ppdOpenFile(%s): ", ppdfile); if ((ppd = ppdOpenFile(ppdfile)) == NULL) { ppd_status_t err; /* Last error in file */ int line; /* Line number in file */ err = ppdLastError(&line); printf("FAIL (%s on line %d)\n", ppdErrorString(err), line); return (1); } else puts("PASS"); fputs("_ppdCacheCreateWithPPD(ppd): ", stdout); if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL) { puts("FAIL"); status ++; } else { puts("PASS"); status += test_ppd_cache(pc, ppd); if (argc == 3) { /* * Test PageSize mapping code. */ int fd; /* Job file descriptor */ const char *pagesize; /* PageSize value */ ipp_t *job; /* Job attributes */ ipp_attribute_t *media; /* Media attribute */ if ((fd = open(argv[2], O_RDONLY)) >= 0) { job = ippNew(); ippReadFile(fd, job); close(fd); if ((media = ippFindAttribute(job, "media", IPP_TAG_ZERO)) != NULL && media->value_tag != IPP_TAG_NAME && media->value_tag != IPP_TAG_KEYWORD) media = NULL; if (media) printf("_ppdCacheGetPageSize(media=%s): ", media->values[0].string.text); else fputs("_ppdCacheGetPageSize(media-col): ", stdout); fflush(stdout); if ((pagesize = _ppdCacheGetPageSize(pc, job, NULL, NULL)) == NULL) { puts("FAIL (Not Found)"); status = 1; } else if (media && _cups_strcasecmp(pagesize, media->values[0].string.text)) { printf("FAIL (Got \"%s\", Expected \"%s\")\n", pagesize, media->values[0].string.text); status = 1; } else printf("PASS (%s)\n", pagesize); ippDelete(job); } else { perror(argv[2]); status = 1; } } /* * _ppdCacheDestroy should never fail... */ fputs("_ppdCacheDestroy(pc): ", stdout); _ppdCacheDestroy(pc); puts("PASS"); } fputs("pwgMediaForPWG(\"iso_a4_210x297mm\"): ", stdout); if ((pwgmedia = pwgMediaForPWG("iso_a4_210x297mm")) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "iso_a4_210x297mm")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else if (pwgmedia->width != 21000 || pwgmedia->length != 29700) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else puts("PASS"); fputs("pwgMediaForPWG(\"roll_max_36.1025x3622.0472in\"): ", stdout); if ((pwgmedia = pwgMediaForPWG("roll_max_36.1025x3622.0472in")) == NULL) { puts("FAIL (not found)"); status ++; } else if (pwgmedia->width != 91700 || pwgmedia->length != 9199999) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); fputs("pwgMediaForPWG(\"disc_test_10x100mm\"): ", stdout); if ((pwgmedia = pwgMediaForPWG("disc_test_10x100mm")) == NULL) { puts("FAIL (not found)"); status ++; } else if (pwgmedia->width != 10000 || pwgmedia->length != 10000) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else printf("PASS (%dx%d)\n", pwgmedia->width, pwgmedia->length); fputs("pwgMediaForLegacy(\"na-letter\"): ", stdout); if ((pwgmedia = pwgMediaForLegacy("na-letter")) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "na_letter_8.5x11in")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else if (pwgmedia->width != 21590 || pwgmedia->length != 27940) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else puts("PASS"); fputs("pwgMediaForPPD(\"4x6\"): ", stdout); if ((pwgmedia = pwgMediaForPPD("4x6")) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "na_index-4x6_4x6in")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else if (pwgmedia->width != 10160 || pwgmedia->length != 15240) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else puts("PASS"); fputs("pwgMediaForPPD(\"10x15cm\"): ", stdout); if ((pwgmedia = pwgMediaForPPD("10x15cm")) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "om_100x150mm_100x150mm")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else puts("PASS"); fputs("pwgMediaForPPD(\"Custom.10x15cm\"): ", stdout); if ((pwgmedia = pwgMediaForPPD("Custom.10x15cm")) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "custom_10x15cm_100x150mm")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else if (pwgmedia->width != 10000 || pwgmedia->length != 15000) { printf("FAIL (%dx%d)\n", pwgmedia->width, pwgmedia->length); status ++; } else puts("PASS"); fputs("pwgMediaForSize(29700, 42000): ", stdout); if ((pwgmedia = pwgMediaForSize(29700, 42000)) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "iso_a3_297x420mm")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else puts("PASS"); fputs("pwgMediaForSize(9842, 19050): ", stdout); if ((pwgmedia = pwgMediaForSize(9842, 19050)) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "na_monarch_3.875x7.5in")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else printf("PASS (%s)\n", pwgmedia->pwg); fputs("pwgMediaForSize(9800, 19000): ", stdout); if ((pwgmedia = pwgMediaForSize(9800, 19000)) == NULL) { puts("FAIL (not found)"); status ++; } else if (strcmp(pwgmedia->pwg, "jpn_you6_98x190mm")) { printf("FAIL (%s)\n", pwgmedia->pwg); status ++; } else printf("PASS (%s)\n", pwgmedia->pwg); fputs("Duplicate size test: ", stdout); for (mediatable = _pwgMediaTable(&num_media); num_media > 1; num_media --, mediatable ++) { for (i = num_media - 1, pwgmedia = mediatable + 1; i > 0; i --, pwgmedia ++) { if (pwgmedia->width == mediatable->width && pwgmedia->length == mediatable->length) { if (!dupmedia) { dupmedia = 1; status ++; puts("FAIL"); } printf(" %s and %s have the same dimensions (%dx%d)\n", pwgmedia->pwg, mediatable->pwg, pwgmedia->width, pwgmedia->length); } } } if (!dupmedia) puts("PASS"); return (status); } /* * 'test_pagesize()' - Test the PWG mapping functions. */ static int /* O - 1 on failure, 0 on success */ test_pagesize(_ppd_cache_t *pc, /* I - PWG mapping data */ ppd_file_t *ppd, /* I - PPD file */ const char *ppdsize) /* I - PPD page size */ { int status = 0; /* Return status */ ipp_t *job; /* Job attributes */ const char *pagesize; /* PageSize value */ if (ppdPageSize(ppd, ppdsize)) { printf("_ppdCacheGetPageSize(keyword=%s): ", ppdsize); fflush(stdout); if ((pagesize = _ppdCacheGetPageSize(pc, NULL, ppdsize, NULL)) == NULL) { puts("FAIL (Not Found)"); status = 1; } else if (_cups_strcasecmp(pagesize, ppdsize)) { printf("FAIL (Got \"%s\", Expected \"%s\")\n", pagesize, ppdsize); status = 1; } else puts("PASS"); job = ippNew(); ippAddString(job, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media", NULL, ppdsize); printf("_ppdCacheGetPageSize(media=%s): ", ppdsize); fflush(stdout); if ((pagesize = _ppdCacheGetPageSize(pc, job, NULL, NULL)) == NULL) { puts("FAIL (Not Found)"); status = 1; } else if (_cups_strcasecmp(pagesize, ppdsize)) { printf("FAIL (Got \"%s\", Expected \"%s\")\n", pagesize, ppdsize); status = 1; } else puts("PASS"); ippDelete(job); } return (status); } /* * 'test_ppd_cache()' - Test the PPD cache functions. */ static int /* O - 1 on failure, 0 on success */ test_ppd_cache(_ppd_cache_t *pc, /* I - PWG mapping data */ ppd_file_t *ppd) /* I - PPD file */ { int i, /* Looping var */ status = 0; /* Return status */ _ppd_cache_t *pc2; /* Loaded data */ pwg_size_t *size, /* Size from original */ *size2; /* Size from saved */ pwg_map_t *map, /* Map from original */ *map2; /* Map from saved */ /* * Verify that we can write and read back the same data... */ fputs("_ppdCacheWriteFile(test.pwg): ", stdout); if (!_ppdCacheWriteFile(pc, "test.pwg", NULL)) { puts("FAIL"); status ++; } else puts("PASS"); fputs("_ppdCacheCreateWithFile(test.pwg): ", stdout); if ((pc2 = _ppdCacheCreateWithFile("test.pwg", NULL)) == NULL) { puts("FAIL"); status ++; } else { // TODO: FINISH ADDING ALL VALUES IN STRUCTURE if (pc2->num_sizes != pc->num_sizes) { if (!status) puts("FAIL"); printf(" SAVED num_sizes=%d, ORIG num_sizes=%d\n", pc2->num_sizes, pc->num_sizes); status ++; } else { for (i = pc->num_sizes, size = pc->sizes, size2 = pc2->sizes; i > 0; i --, size ++, size2 ++) { if (strcmp(size2->map.pwg, size->map.pwg) || strcmp(size2->map.ppd, size->map.ppd) || size2->width != size->width || size2->length != size->length || size2->left != size->left || size2->bottom != size->bottom || size2->right != size->right || size2->top != size->top) { if (!status) puts("FAIL"); if (strcmp(size->map.pwg, size2->map.pwg)) printf(" SAVED size->map.pwg=\"%s\", ORIG " "size->map.pwg=\"%s\"\n", size2->map.pwg, size->map.pwg); if (strcmp(size2->map.ppd, size->map.ppd)) printf(" SAVED size->map.ppd=\"%s\", ORIG " "size->map.ppd=\"%s\"\n", size2->map.ppd, size->map.ppd); if (size2->width != size->width) printf(" SAVED size->width=%d, ORIG size->width=%d\n", size2->width, size->width); if (size2->length != size->length) printf(" SAVED size->length=%d, ORIG size->length=%d\n", size2->length, size->length); if (size2->left != size->left) printf(" SAVED size->left=%d, ORIG size->left=%d\n", size2->left, size->left); if (size2->bottom != size->bottom) printf(" SAVED size->bottom=%d, ORIG size->bottom=%d\n", size2->bottom, size->bottom); if (size2->right != size->right) printf(" SAVED size->right=%d, ORIG size->right=%d\n", size2->right, size->right); if (size2->top != size->top) printf(" SAVED size->top=%d, ORIG size->top=%d\n", size2->top, size->top); status ++; break; } } for (i = pc->num_sources, map = pc->sources, map2 = pc2->sources; i > 0; i --, map ++, map2 ++) { if (strcmp(map2->pwg, map->pwg) || strcmp(map2->ppd, map->ppd)) { if (!status) puts("FAIL"); if (strcmp(map->pwg, map2->pwg)) printf(" SAVED source->pwg=\"%s\", ORIG source->pwg=\"%s\"\n", map2->pwg, map->pwg); if (strcmp(map2->ppd, map->ppd)) printf(" SAVED source->ppd=\"%s\", ORIG source->ppd=\"%s\"\n", map2->ppd, map->ppd); status ++; break; } } for (i = pc->num_types, map = pc->types, map2 = pc2->types; i > 0; i --, map ++, map2 ++) { if (strcmp(map2->pwg, map->pwg) || strcmp(map2->ppd, map->ppd)) { if (!status) puts("FAIL"); if (strcmp(map->pwg, map2->pwg)) printf(" SAVED type->pwg=\"%s\", ORIG type->pwg=\"%s\"\n", map2->pwg, map->pwg); if (strcmp(map2->ppd, map->ppd)) printf(" SAVED type->ppd=\"%s\", ORIG type->ppd=\"%s\"\n", map2->ppd, map->ppd); status ++; break; } } } if (!status) puts("PASS"); _ppdCacheDestroy(pc2); } /* * Test PageSize mapping code... */ status += test_pagesize(pc, ppd, "Letter"); status += test_pagesize(pc, ppd, "na-letter"); status += test_pagesize(pc, ppd, "A4"); status += test_pagesize(pc, ppd, "iso-a4"); return (status); } cups-2.4.7/cups/testppd.c0000644000175000017500000014423214502571342015170 0ustar zdohnalzdohnal/* * PPD test program for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #undef _CUPS_NO_DEPRECATED #include "cups-private.h" #include "ppd-private.h" #include "raster-private.h" #include #ifdef _WIN32 # include #else # include # include #endif /* _WIN32 */ #include /* * Local functions... */ static int do_ppd_tests(const char *filename, int num_options, cups_option_t *options); static int do_ps_tests(void); static void print_changes(cups_page_header2_t *header, cups_page_header2_t *expected); /* * Test data... */ static const char *dsc_code = "[{\n" "%%BeginFeature: *PageSize Tabloid\n" "<>setpagedevice\n" "%%EndFeature\n" "} stopped cleartomark\n"; static const char *setpagedevice_code = "<<" "/MediaClass(Media Class)" "/MediaColor((Media Color))" "/MediaType(Media\\\\Type)" "/OutputType<416263>" "/AdvanceDistance 1000" "/AdvanceMedia 1" "/Collate false" "/CutMedia 2" "/Duplex true" "/HWResolution[100 200]" "/InsertSheet true" "/Jog 3" "/LeadingEdge 1" "/ManualFeed true" "/MediaPosition 8#777" "/MediaWeight 16#fe01" "/MirrorPrint true" "/NegativePrint true" "/NumCopies 1" "/Orientation 1" "/OutputFaceUp true" "/PageSize[612 792.1]" "/Separations true" "/TraySwitch true" "/Tumble true" "/cupsMediaType 2" "/cupsColorOrder 1" "/cupsColorSpace 1" "/cupsCompression 1" "/cupsRowCount 1" "/cupsRowFeed 1" "/cupsRowStep 1" "/cupsBorderlessScalingFactor 1.001" "/cupsInteger0 1" "/cupsInteger1 2" "/cupsInteger2 3" "/cupsInteger3 4" "/cupsInteger4 5" "/cupsInteger5 6" "/cupsInteger6 7" "/cupsInteger7 8" "/cupsInteger8 9" "/cupsInteger9 10" "/cupsInteger10 11" "/cupsInteger11 12" "/cupsInteger12 13" "/cupsInteger13 14" "/cupsInteger14 15" "/cupsInteger15 16" "/cupsReal0 1.1" "/cupsReal1 2.1" "/cupsReal2 3.1" "/cupsReal3 4.1" "/cupsReal4 5.1" "/cupsReal5 6.1" "/cupsReal6 7.1" "/cupsReal7 8.1" "/cupsReal8 9.1" "/cupsReal9 10.1" "/cupsReal10 11.1" "/cupsReal11 12.1" "/cupsReal12 13.1" "/cupsReal13 14.1" "/cupsReal14 15.1" "/cupsReal15 16.1" "/cupsString0(1)" "/cupsString1(2)" "/cupsString2(3)" "/cupsString3(4)" "/cupsString4(5)" "/cupsString5(6)" "/cupsString6(7)" "/cupsString7(8)" "/cupsString8(9)" "/cupsString9(10)" "/cupsString10(11)" "/cupsString11(12)" "/cupsString12(13)" "/cupsString13(14)" "/cupsString14(15)" "/cupsString15(16)" "/cupsMarkerType(Marker Type)" "/cupsRenderingIntent(Rendering Intent)" "/cupsPageSizeName(Letter)" "/cupsPreferredBitsPerColor 17" ">> setpagedevice"; static cups_page_header2_t setpagedevice_header = { "Media Class", /* MediaClass */ "(Media Color)", /* MediaColor */ "Media\\Type", /* MediaType */ "Abc", /* OutputType */ 1000, /* AdvanceDistance */ CUPS_ADVANCE_FILE, /* AdvanceMedia */ CUPS_FALSE, /* Collate */ CUPS_CUT_JOB, /* CutMedia */ CUPS_TRUE, /* Duplex */ { 100, 200 }, /* HWResolution */ { 0, 0, 0, 0 }, /* ImagingBoundingBox */ CUPS_TRUE, /* InsertSheet */ CUPS_JOG_SET, /* Jog */ CUPS_EDGE_RIGHT, /* LeadingEdge */ { 0, 0 }, /* Margins */ CUPS_TRUE, /* ManualFeed */ 0777, /* MediaPosition */ 0xfe01, /* MediaWeight */ CUPS_TRUE, /* MirrorPrint */ CUPS_TRUE, /* NegativePrint */ 1, /* NumCopies */ CUPS_ORIENT_90, /* Orientation */ CUPS_TRUE, /* OutputFaceUp */ { 612, 792 }, /* PageSize */ CUPS_TRUE, /* Separations */ CUPS_TRUE, /* TraySwitch */ CUPS_TRUE, /* Tumble */ 0, /* cupsWidth */ 0, /* cupsHeight */ 2, /* cupsMediaType */ 0, /* cupsBitsPerColor */ 0, /* cupsBitsPerPixel */ 0, /* cupsBytesPerLine */ CUPS_ORDER_BANDED, /* cupsColorOrder */ CUPS_CSPACE_RGB, /* cupsColorSpace */ 1, /* cupsCompression */ 1, /* cupsRowCount */ 1, /* cupsRowFeed */ 1, /* cupsRowStep */ 0, /* cupsNumColors */ 1.001f, /* cupsBorderlessScalingFactor */ { 612.0f, 792.1f }, /* cupsPageSize */ { 0.0f, 0.0f, 0.0f, 0.0f }, /* cupsImagingBBox */ { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, /* cupsInteger[16] */ { 1.1f, 2.1f, 3.1f, 4.1f, 5.1f, 6.1f, 7.1f, 8.1f, 9.1f, 10.1f, 11.1f, 12.1f, 13.1f, 14.1f, 15.1f, 16.1f }, /* cupsReal[16] */ { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" }, /* cupsString[16] */ "Marker Type", /* cupsMarkerType */ "Rendering Intent", /* cupsRenderingIntent */ "Letter" /* cupsPageSizeName */ }; static const char *default_code = "[{\n" "%%BeginFeature: *InstalledDuplexer False\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *PageRegion Letter\n" "PageRegion=Letter\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *InputSlot Tray\n" "InputSlot=Tray\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *OutputBin Tray1\n" "OutputBin=Tray1\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *MediaType Plain\n" "MediaType=Plain\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *IntOption None\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *StringOption None\n" "%%EndFeature\n" "} stopped cleartomark\n"; static const char *custom_code = "[{\n" "%%BeginFeature: *InstalledDuplexer False\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *InputSlot Tray\n" "InputSlot=Tray\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *MediaType Plain\n" "MediaType=Plain\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *OutputBin Tray1\n" "OutputBin=Tray1\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *IntOption None\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *CustomStringOption True\n" "(value\\0502\\051)\n" "(value 1)\n" "StringOption=Custom\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *CustomPageSize True\n" "400\n" "500\n" "0\n" "0\n" "0\n" "PageSize=Custom\n" "%%EndFeature\n" "} stopped cleartomark\n"; static const char *default2_code = "[{\n" "%%BeginFeature: *InstalledDuplexer False\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *InputSlot Tray\n" "InputSlot=Tray\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *Quality Normal\n" "Quality=Normal\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *IntOption None\n" "%%EndFeature\n" "} stopped cleartomark\n" "[{\n" "%%BeginFeature: *StringOption None\n" "%%EndFeature\n" "} stopped cleartomark\n"; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ ppd_file_t *ppd = NULL; /* PPD file loaded from disk */ int status; /* Status of tests (0 = success, 1 = fail) */ int conflicts; /* Number of conflicts */ char *s; /* String */ char buffer[8192]; /* String buffer */ const char *text, /* Localized text */ *val; /* Option value */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ ppd_size_t minsize, /* Minimum size */ maxsize, /* Maximum size */ *size; /* Current size */ ppd_attr_t *attr; /* Current attribute */ _ppd_cache_t *pc; /* PPD cache */ status = 0; if (argc == 1) { /* * Setup directories for locale stuff... */ if (access("locale", 0)) { mkdir("locale", 0777); mkdir("locale/fr", 0777); symlink("../../../locale/cups_fr.po", "locale/fr/cups_fr.po"); mkdir("locale/zh_TW", 0777); symlink("../../../locale/cups_zh_TW.po", "locale/zh_TW/cups_zh_TW.po"); } putenv("LOCALEDIR=locale"); putenv("SOFTWARE=CUPS"); /* * Do tests with test.ppd... */ fputs("ppdOpenFile(test.ppd): ", stdout); if ((ppd = _ppdOpenFile("test.ppd", _PPD_LOCALIZATION_ALL)) != NULL) puts("PASS"); else { ppd_status_t err; /* Last error in file */ int line; /* Line number in file */ status ++; err = ppdLastError(&line); printf("FAIL (%s on line %d)\n", ppdErrorString(err), line); } fputs("ppdFindAttr(wildcard): ", stdout); if ((attr = ppdFindAttr(ppd, "cupsTest", NULL)) == NULL) { status ++; puts("FAIL (not found)"); } else if (strcmp(attr->name, "cupsTest") || strcmp(attr->spec, "Foo")) { status ++; printf("FAIL (got \"%s %s\")\n", attr->name, attr->spec); } else puts("PASS"); fputs("ppdFindNextAttr(wildcard): ", stdout); if ((attr = ppdFindNextAttr(ppd, "cupsTest", NULL)) == NULL) { status ++; puts("FAIL (not found)"); } else if (strcmp(attr->name, "cupsTest") || strcmp(attr->spec, "Bar")) { status ++; printf("FAIL (got \"%s %s\")\n", attr->name, attr->spec); } else puts("PASS"); fputs("ppdFindAttr(Foo): ", stdout); if ((attr = ppdFindAttr(ppd, "cupsTest", "Foo")) == NULL) { status ++; puts("FAIL (not found)"); } else if (strcmp(attr->name, "cupsTest") || strcmp(attr->spec, "Foo")) { status ++; printf("FAIL (got \"%s %s\")\n", attr->name, attr->spec); } else puts("PASS"); fputs("ppdFindNextAttr(Foo): ", stdout); if ((attr = ppdFindNextAttr(ppd, "cupsTest", "Foo")) != NULL) { status ++; printf("FAIL (got \"%s %s\")\n", attr->name, attr->spec); } else puts("PASS"); fputs("ppdMarkDefaults: ", stdout); ppdMarkDefaults(ppd); if ((conflicts = ppdConflicts(ppd)) == 0) puts("PASS"); else { status ++; printf("FAIL (%d conflicts)\n", conflicts); } fputs("ppdEmitString (defaults): ", stdout); if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL && !strcmp(s, default_code)) puts("PASS"); else { status ++; printf("FAIL (%d bytes instead of %d)\n", s ? (int)strlen(s) : 0, (int)strlen(default_code)); if (s) puts(s); } if (s) free(s); fputs("ppdEmitString (custom size and string): ", stdout); ppdMarkOption(ppd, "PageSize", "Custom.400x500"); ppdMarkOption(ppd, "StringOption", "{String1=\"value 1\" String2=value(2)}"); if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL && !strcmp(s, custom_code)) puts("PASS"); else { status ++; printf("FAIL (%d bytes instead of %d)\n", s ? (int)strlen(s) : 0, (int)strlen(custom_code)); if (s) puts(s); } if (s) free(s); /* * Test constraints... */ fputs("cupsGetConflicts(InputSlot=Envelope): ", stdout); ppdMarkOption(ppd, "PageSize", "Letter"); num_options = cupsGetConflicts(ppd, "InputSlot", "Envelope", &options); if (num_options != 2 || (val = cupsGetOption("PageRegion", num_options, options)) == NULL || _cups_strcasecmp(val, "Letter") || (val = cupsGetOption("PageSize", num_options, options)) == NULL || _cups_strcasecmp(val, "Letter")) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); status ++; } else puts("PASS"); fputs("ppdConflicts(): ", stdout); ppdMarkOption(ppd, "InputSlot", "Envelope"); if ((conflicts = ppdConflicts(ppd)) == 2) puts("PASS (2)"); else { printf("FAIL (%d)\n", conflicts); status ++; } fputs("cupsResolveConflicts(InputSlot=Envelope): ", stdout); num_options = 0; options = NULL; if (!cupsResolveConflicts(ppd, "InputSlot", "Envelope", &num_options, &options)) { puts("FAIL (Unable to resolve)"); status ++; } else if (num_options != 2 || !cupsGetOption("PageSize", num_options, options)) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); status ++; } else puts("PASS (Resolved by changing PageSize)"); cupsFreeOptions(num_options, options); fputs("cupsResolveConflicts(No option/choice): ", stdout); num_options = 0; options = NULL; if (cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options) && num_options == 1 && !_cups_strcasecmp(options[0].name, "InputSlot") && !_cups_strcasecmp(options[0].value, "Tray")) puts("PASS (Resolved by changing InputSlot)"); else if (num_options > 0) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); status ++; } else { puts("FAIL (Unable to resolve)"); status ++; } cupsFreeOptions(num_options, options); fputs("ppdInstallableConflict(): ", stdout); if (ppdInstallableConflict(ppd, "Duplex", "DuplexNoTumble") && !ppdInstallableConflict(ppd, "Duplex", "None")) puts("PASS"); else if (!ppdInstallableConflict(ppd, "Duplex", "DuplexNoTumble")) { puts("FAIL (Duplex=DuplexNoTumble did not conflict)"); status ++; } else { puts("FAIL (Duplex=None conflicted)"); status ++; } /* * ppdPageSizeLimits */ fputs("ppdPageSizeLimits: ", stdout); if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) { if (fabs(minsize.width - 36.0) > 0.001 || fabs(minsize.length - 36.0) > 0.001 || fabs(maxsize.width - 1080.0) > 0.001 || fabs(maxsize.length - 86400.0) > 0.001) { printf("FAIL (got min=%.3fx%.3f, max=%.3fx%.3f, " "expected min=36x36, max=1080x86400)\n", minsize.width, minsize.length, maxsize.width, maxsize.length); status ++; } else puts("PASS"); } else { puts("FAIL (returned 0)"); status ++; } /* * cupsMarkOptions with PWG and IPP size names. */ fputs("cupsMarkOptions(media=iso-a4): ", stdout); num_options = cupsAddOption("media", "iso-a4", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options); size = ppdPageSize(ppd, NULL); if (!size || strcmp(size->name, "A4")) { printf("FAIL (%s)\n", size ? size->name : "unknown"); status ++; } else puts("PASS"); fputs("cupsMarkOptions(media=na_letter_8.5x11in): ", stdout); num_options = cupsAddOption("media", "na_letter_8.5x11in", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options); size = ppdPageSize(ppd, NULL); if (!size || strcmp(size->name, "Letter")) { printf("FAIL (%s)\n", size ? size->name : "unknown"); status ++; } else puts("PASS"); fputs("cupsMarkOptions(media=oe_letter-fullbleed_8.5x11in): ", stdout); num_options = cupsAddOption("media", "oe_letter-fullbleed_8.5x11in", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options); size = ppdPageSize(ppd, NULL); if (!size || strcmp(size->name, "Letter.Fullbleed")) { printf("FAIL (%s)\n", size ? size->name : "unknown"); status ++; } else puts("PASS"); fputs("cupsMarkOptions(media=A4): ", stdout); num_options = cupsAddOption("media", "A4", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options); size = ppdPageSize(ppd, NULL); if (!size || strcmp(size->name, "A4")) { printf("FAIL (%s)\n", size ? size->name : "unknown"); status ++; } else puts("PASS"); /* * Custom sizes... */ fputs("cupsMarkOptions(media=Custom.8x10in): ", stdout); num_options = cupsAddOption("media", "Custom.8x10in", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options); size = ppdPageSize(ppd, NULL); if (!size || strcmp(size->name, "Custom") || fabs(size->width - 576.0) > 0.001 || fabs(size->length - 720.0) > 0.001) { printf("FAIL (%s - %gx%g)\n", size ? size->name : "unknown", size ? size->width : 0.0, size ? size->length : 0.0); status ++; } else puts("PASS"); /* * Test localization... */ /* Force US English base locale */ putenv("LANG=en"); putenv("LC_ALL=en"); putenv("LC_CTYPE=en"); putenv("LC_MESSAGES=en"); fputs("ppdLocalizeIPPReason(text): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", NULL, buffer, sizeof(buffer)) && !strcmp(buffer, "Foo Reason")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"Foo Reason\")\n", buffer); } fputs("ppdLocalizeIPPReason(http): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", "http", buffer, sizeof(buffer)) && !strcmp(buffer, "http://foo/bar.html")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"http://foo/bar.html\")\n", buffer); } fputs("ppdLocalizeIPPReason(help): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", "help", buffer, sizeof(buffer)) && !strcmp(buffer, "help:anchor='foo'%20bookID=Vendor%20Help")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"help:anchor='foo'%%20bookID=Vendor%%20Help\")\n", buffer); } fputs("ppdLocalizeIPPReason(file): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", "file", buffer, sizeof(buffer)) && !strcmp(buffer, "/help/foo/bar.html")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"/help/foo/bar.html\")\n", buffer); } /* Force French */ putenv("LANG=fr"); putenv("LC_ALL=fr"); putenv("LC_CTYPE=fr"); putenv("LC_MESSAGES=fr"); fputs("ppdLocalizeIPPReason(fr text): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", NULL, buffer, sizeof(buffer)) && !strcmp(buffer, "La Long Foo Reason")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"La Long Foo Reason\")\n", buffer); } /* Force Simplified Chinese */ putenv("LANG=zh_TW"); putenv("LC_ALL=zh_TW"); putenv("LC_CTYPE=zh_TW"); putenv("LC_MESSAGES=zh_TW"); fputs("ppdLocalizeIPPReason(zh_TW text): ", stdout); if (ppdLocalizeIPPReason(ppd, "foo", NULL, buffer, sizeof(buffer)) && !strcmp(buffer, "Number 1 Foo Reason")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"Number 1 Foo Reason\")\n", buffer); } /* * cupsMarkerName localization... */ /* Force US English base locale */ putenv("LANG=en"); putenv("LC_ALL=en"); putenv("LC_CTYPE=en"); putenv("LC_MESSAGES=en"); fputs("ppdLocalizeMarkerName(bogus): ", stdout); if ((text = ppdLocalizeMarkerName(ppd, "bogus")) != NULL) { status ++; printf("FAIL (\"%s\" instead of NULL)\n", text); } else puts("PASS"); fputs("ppdLocalizeMarkerName(cyan): ", stdout); if ((text = ppdLocalizeMarkerName(ppd, "cyan")) != NULL && !strcmp(text, "Cyan Toner")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"Cyan Toner\")\n", text ? text : "(null)"); } /* Force French locale */ putenv("LANG=fr"); putenv("LC_ALL=fr"); putenv("LC_CTYPE=fr"); putenv("LC_MESSAGES=fr"); fputs("ppdLocalizeMarkerName(fr cyan): ", stdout); if ((text = ppdLocalizeMarkerName(ppd, "cyan")) != NULL && !strcmp(text, "La Toner Cyan")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"La Toner Cyan\")\n", text ? text : "(null)"); } /* Force Simplified Chinese locale */ putenv("LANG=zh_TW"); putenv("LC_ALL=zh_TW"); putenv("LC_CTYPE=zh_TW"); putenv("LC_MESSAGES=zh_TW"); fputs("ppdLocalizeMarkerName(zh_TW cyan): ", stdout); if ((text = ppdLocalizeMarkerName(ppd, "cyan")) != NULL && !strcmp(text, "Number 1 Cyan Toner")) puts("PASS"); else { status ++; printf("FAIL (\"%s\" instead of \"Number 1 Cyan Toner\")\n", text ? text : "(null)"); } ppdClose(ppd); /* Force US English base locale */ putenv("LANG=en"); putenv("LC_ALL=en"); putenv("LC_CTYPE=en"); putenv("LC_MESSAGES=en"); /* * Test new constraints... */ fputs("ppdOpenFile(test2.ppd): ", stdout); if ((ppd = ppdOpenFile("test2.ppd")) != NULL) puts("PASS"); else { ppd_status_t err; /* Last error in file */ int line; /* Line number in file */ status ++; err = ppdLastError(&line); printf("FAIL (%s on line %d)\n", ppdErrorString(err), line); } fputs("ppdMarkDefaults: ", stdout); ppdMarkDefaults(ppd); if ((conflicts = ppdConflicts(ppd)) == 0) puts("PASS"); else { status ++; printf("FAIL (%d conflicts)\n", conflicts); } fputs("ppdEmitString (defaults): ", stdout); if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL && !strcmp(s, default2_code)) puts("PASS"); else { status ++; printf("FAIL (%d bytes instead of %d)\n", s ? (int)strlen(s) : 0, (int)strlen(default2_code)); if (s) puts(s); } if (s) free(s); fputs("ppdConflicts(): ", stdout); ppdMarkOption(ppd, "PageSize", "Env10"); ppdMarkOption(ppd, "InputSlot", "Envelope"); ppdMarkOption(ppd, "Quality", "Photo"); if ((conflicts = ppdConflicts(ppd)) == 1) puts("PASS (1)"); else { printf("FAIL (%d)\n", conflicts); status ++; } fputs("cupsResolveConflicts(Quality=Photo): ", stdout); num_options = 0; options = NULL; if (cupsResolveConflicts(ppd, "Quality", "Photo", &num_options, &options)) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); status ++; } else puts("PASS (Unable to resolve)"); cupsFreeOptions(num_options, options); fputs("cupsResolveConflicts(No option/choice): ", stdout); num_options = 0; options = NULL; if (cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options) && num_options == 1 && !_cups_strcasecmp(options->name, "Quality") && !_cups_strcasecmp(options->value, "Normal")) puts("PASS"); else if (num_options > 0) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); status ++; } else { puts("FAIL (Unable to resolve!)"); status ++; } cupsFreeOptions(num_options, options); fputs("cupsResolveConflicts(loop test): ", stdout); ppdMarkOption(ppd, "PageSize", "A4"); ppdMarkOption(ppd, "InputSlot", "Tray"); ppdMarkOption(ppd, "Quality", "Photo"); num_options = 0; options = NULL; if (!cupsResolveConflicts(ppd, NULL, NULL, &num_options, &options)) puts("PASS"); else if (num_options > 0) { printf("FAIL (%d options:", num_options); for (i = 0; i < num_options; i ++) printf(" %s=%s", options[i].name, options[i].value); puts(")"); } else puts("FAIL (No conflicts!)"); fputs("ppdInstallableConflict(): ", stdout); if (ppdInstallableConflict(ppd, "Duplex", "DuplexNoTumble") && !ppdInstallableConflict(ppd, "Duplex", "None")) puts("PASS"); else if (!ppdInstallableConflict(ppd, "Duplex", "DuplexNoTumble")) { puts("FAIL (Duplex=DuplexNoTumble did not conflict)"); status ++; } else { puts("FAIL (Duplex=None conflicted)"); status ++; } /* * ppdPageSizeLimits */ ppdMarkDefaults(ppd); fputs("ppdPageSizeLimits(default): ", stdout); if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) { if (fabs(minsize.width - 36.0) > 0.001 || fabs(minsize.length - 36.0) > 0.001 || fabs(maxsize.width - 1080.0) > 0.001 || fabs(maxsize.length - 86400.0) > 0.001) { printf("FAIL (got min=%.0fx%.0f, max=%.0fx%.0f, " "expected min=36x36, max=1080x86400)\n", minsize.width, minsize.length, maxsize.width, maxsize.length); status ++; } else puts("PASS"); } else { puts("FAIL (returned 0)"); status ++; } ppdMarkOption(ppd, "InputSlot", "Manual"); fputs("ppdPageSizeLimits(InputSlot=Manual): ", stdout); if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) { if (fabs(minsize.width - 100.0) > 0.001 || fabs(minsize.length - 100.0) > 0.001 || fabs(maxsize.width - 1000.0) > 0.001 || fabs(maxsize.length - 1000.0) > 0.001) { printf("FAIL (got min=%.0fx%.0f, max=%.0fx%.0f, " "expected min=100x100, max=1000x1000)\n", minsize.width, minsize.length, maxsize.width, maxsize.length); status ++; } else puts("PASS"); } else { puts("FAIL (returned 0)"); status ++; } ppdMarkOption(ppd, "Quality", "Photo"); fputs("ppdPageSizeLimits(Quality=Photo): ", stdout); if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) { if (fabs(minsize.width - 200.0) > 0.001 || fabs(minsize.length - 200.0) > 0.001 || fabs(maxsize.width - 1000.0) > 0.001 || fabs(maxsize.length - 1000.0) > 0.001) { printf("FAIL (got min=%.0fx%.0f, max=%.0fx%.0f, " "expected min=200x200, max=1000x1000)\n", minsize.width, minsize.length, maxsize.width, maxsize.length); status ++; } else puts("PASS"); } else { puts("FAIL (returned 0)"); status ++; } ppdMarkOption(ppd, "InputSlot", "Tray"); fputs("ppdPageSizeLimits(Quality=Photo): ", stdout); if (ppdPageSizeLimits(ppd, &minsize, &maxsize)) { if (fabs(minsize.width - 300.0) > 0.001 || fabs(minsize.length - 300.0) > 0.001 || fabs(maxsize.width - 1080.0) > 0.001 || fabs(maxsize.length - 86400.0) > 0.001) { printf("FAIL (got min=%.0fx%.0f, max=%.0fx%.0f, " "expected min=300x300, max=1080x86400)\n", minsize.width, minsize.length, maxsize.width, maxsize.length); status ++; } else puts("PASS"); } else { puts("FAIL (returned 0)"); status ++; } status += do_ps_tests(); } else if (!strcmp(argv[1], "--raster")) { for (status = 0, num_options = 0, options = NULL, i = 1; i < argc; i ++) { if (argv[i][0] == '-') { if (argv[i][1] == 'o') { if (argv[i][2]) num_options = cupsParseOptions(argv[i] + 2, num_options, &options); else { i ++; if (i < argc) num_options = cupsParseOptions(argv[i], num_options, &options); else { puts("Usage: testppd --raster [-o name=value ...] [filename.ppd ...]"); return (1); } } } else { puts("Usage: testppd --raster [-o name=value ...] [filename.ppd ...]"); return (1); } } else status += do_ppd_tests(argv[i], num_options, options); } cupsFreeOptions(num_options, options); } else if (!strncmp(argv[1], "ipp://", 6) || !strncmp(argv[1], "ipps://", 7)) { /* * ipp://... or ipps://... */ http_t *http; /* Connection to printer */ ipp_t *request, /* Get-Printer-Attributes request */ *response; /* Get-Printer-Attributes response */ char scheme[32], /* URI scheme */ userpass[256], /* Username:password */ host[256], /* Hostname */ resource[256]; /* Resource path */ int port; /* Port number */ static const char * const pattrs[] =/* Requested printer attributes */ { "job-template", "printer-defaults", "printer-description", "media-col-database" }; if (httpSeparateURI(HTTP_URI_CODING_ALL, argv[1], scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { printf("Bad URI \"%s\".\n", argv[1]); return (1); } http = httpConnect2(host, port, NULL, AF_UNSPEC, !strcmp(scheme, "ipps") ? HTTP_ENCRYPTION_ALWAYS : HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL); if (!http) { printf("Unable to connect to \"%s:%d\": %s\n", host, port, cupsLastErrorString()); return (1); } request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, argv[1]); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); response = cupsDoRequest(http, request, resource); if (_ppdCreateFromIPP(buffer, sizeof(buffer), response)) printf("Created PPD: %s\n", buffer); else puts("Unable to create PPD."); ippDelete(response); httpClose(http); return (0); } else { const char *filename; /* PPD filename */ struct stat fileinfo; /* File information */ if (strchr(argv[1], ':')) { /* * Server PPD... */ if ((filename = cupsGetServerPPD(CUPS_HTTP_DEFAULT, argv[1])) == NULL) { printf("%s: %s\n", argv[1], cupsLastErrorString()); return (1); } } else if (!strncmp(argv[1], "-d", 2)) { const char *printer; /* Printer name */ if (argv[1][2]) printer = argv[1] + 2; else if (argv[2]) printer = argv[2]; else { puts("Usage: ./testppd -d printer"); return (1); } filename = cupsGetPPD(printer); if (!filename) { printf("%s: %s\n", printer, cupsLastErrorString()); return (1); } } else filename = argv[1]; if (lstat(filename, &fileinfo)) { printf("%s: %s\n", filename, strerror(errno)); return (1); } if (S_ISLNK(fileinfo.st_mode)) { char realfile[1024]; /* Real file path */ ssize_t realsize; /* Size of real file path */ if ((realsize = readlink(filename, realfile, sizeof(realfile) - 1)) < 0) strlcpy(realfile, "Unknown", sizeof(realfile)); else realfile[realsize] = '\0'; if (stat(realfile, &fileinfo)) printf("%s: symlink to \"%s\", %s\n", filename, realfile, strerror(errno)); else printf("%s: symlink to \"%s\", %ld bytes\n", filename, realfile, (long)fileinfo.st_size); } else printf("%s: regular file, %ld bytes\n", filename, (long)fileinfo.st_size); if ((ppd = ppdOpenFile(filename)) == NULL) { ppd_status_t err; /* Last error in file */ int line; /* Line number in file */ status ++; err = ppdLastError(&line); printf("%s: %s on line %d\n", argv[1], ppdErrorString(err), line); } else { int j, k; /* Looping vars */ ppd_group_t *group; /* Option group */ ppd_option_t *option; /* Option */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ ppd_const_t *c; /* UIConstraints */ char lang[255], /* LANG environment variable */ lc_all[255], /* LC_ALL environment variable */ lc_ctype[255], /* LC_CTYPE environment variable */ lc_messages[255];/* LC_MESSAGES environment variable */ if (argc > 2) { snprintf(lang, sizeof(lang), "LANG=%s", argv[2]); putenv(lang); snprintf(lc_all, sizeof(lc_all), "LC_ALL=%s", argv[2]); putenv(lc_all); snprintf(lc_ctype, sizeof(lc_ctype), "LC_CTYPE=%s", argv[2]); putenv(lc_ctype); snprintf(lc_messages, sizeof(lc_messages), "LC_MESSAGES=%s", argv[2]); putenv(lc_messages); } ppdLocalize(ppd); ppdMarkDefaults(ppd); if (argc > 3) { text = ppdLocalizeIPPReason(ppd, argv[3], NULL, buffer, sizeof(buffer)); printf("ppdLocalizeIPPReason(%s)=%s\n", argv[3], text ? text : "(null)"); return (text == NULL); } for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) { printf("%s (%s):\n", group->name, group->text); for (j = group->num_options, option = group->options; j > 0; j --, option ++) { printf(" %s (%s):\n", option->keyword, option->text); for (k = 0; k < option->num_choices; k ++) printf(" - %s%s (%s)\n", option->choices[k].marked ? "*" : "", option->choices[k].choice, option->choices[k].text); if ((coption = ppdFindCustomOption(ppd, option->keyword)) != NULL) { for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : printf(" %s(%s): PPD_CUSTOM_UNKNOWN (error)\n", cparam->name, cparam->text); break; case PPD_CUSTOM_CURVE : printf(" %s(%s): PPD_CUSTOM_CURVE (%g to %g)\n", cparam->name, cparam->text, cparam->minimum.custom_curve, cparam->maximum.custom_curve); break; case PPD_CUSTOM_INT : printf(" %s(%s): PPD_CUSTOM_INT (%d to %d)\n", cparam->name, cparam->text, cparam->minimum.custom_int, cparam->maximum.custom_int); break; case PPD_CUSTOM_INVCURVE : printf(" %s(%s): PPD_CUSTOM_INVCURVE (%g to %g)\n", cparam->name, cparam->text, cparam->minimum.custom_invcurve, cparam->maximum.custom_invcurve); break; case PPD_CUSTOM_PASSCODE : printf(" %s(%s): PPD_CUSTOM_PASSCODE (%d to %d)\n", cparam->name, cparam->text, cparam->minimum.custom_passcode, cparam->maximum.custom_passcode); break; case PPD_CUSTOM_PASSWORD : printf(" %s(%s): PPD_CUSTOM_PASSWORD (%d to %d)\n", cparam->name, cparam->text, cparam->minimum.custom_password, cparam->maximum.custom_password); break; case PPD_CUSTOM_POINTS : printf(" %s(%s): PPD_CUSTOM_POINTS (%g to %g)\n", cparam->name, cparam->text, cparam->minimum.custom_points, cparam->maximum.custom_points); break; case PPD_CUSTOM_REAL : printf(" %s(%s): PPD_CUSTOM_REAL (%g to %g)\n", cparam->name, cparam->text, cparam->minimum.custom_real, cparam->maximum.custom_real); break; case PPD_CUSTOM_STRING : printf(" %s(%s): PPD_CUSTOM_STRING (%d to %d)\n", cparam->name, cparam->text, cparam->minimum.custom_string, cparam->maximum.custom_string); break; } } } } } puts("\nSizes:"); for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) printf(" %s = %gx%g, [%g %g %g %g]\n", size->name, size->width, size->length, size->left, size->bottom, size->right, size->top); puts("\nConstraints:"); for (i = ppd->num_consts, c = ppd->consts; i > 0; i --, c ++) printf(" *UIConstraints: *%s %s *%s %s\n", c->option1, c->choice1, c->option2, c->choice2); if (ppd->num_consts == 0) puts(" NO CONSTRAINTS"); puts("\nFilters:"); for (i = 0; i < ppd->num_filters; i ++) printf(" %s\n", ppd->filters[i]); if (ppd->num_filters == 0) puts(" NO FILTERS"); puts("\nAttributes:"); for (attr = (ppd_attr_t *)cupsArrayFirst(ppd->sorted_attrs); attr; attr = (ppd_attr_t *)cupsArrayNext(ppd->sorted_attrs)) printf(" *%s %s/%s: \"%s\"\n", attr->name, attr->spec, attr->text, attr->value ? attr->value : ""); puts("\nPPD Cache:"); if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL) printf(" Unable to create: %s\n", cupsLastErrorString()); else { _ppdCacheWriteFile(pc, "t.cache", NULL); puts(" Wrote t.cache."); } } if (!strncmp(argv[1], "-d", 2)) unlink(filename); } #ifdef __APPLE__ if (getenv("MallocStackLogging") && getenv("MallocStackLoggingNoCompact")) { char command[1024]; /* malloc_history command */ snprintf(command, sizeof(command), "malloc_history %d -all_by_size", getpid()); fflush(stdout); system(command); } #endif /* __APPLE__ */ ppdClose(ppd); return (status); } /* * 'do_ppd_tests()' - Test the default option commands in a PPD file. */ static int /* O - Number of errors */ do_ppd_tests(const char *filename, /* I - PPD file */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { ppd_file_t *ppd; /* PPD file data */ cups_page_header2_t header; /* Page header */ printf("\"%s\": ", filename); fflush(stdout); if ((ppd = ppdOpenFile(filename)) == NULL) { ppd_status_t status; /* Status from PPD loader */ int line; /* Line number containing error */ status = ppdLastError(&line); puts("FAIL (bad PPD file)"); printf(" %s on line %d\n", ppdErrorString(status), line); return (1); } ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); if (cupsRasterInterpretPPD(&header, ppd, 0, NULL, NULL)) { puts("FAIL (error from function)"); puts(cupsRasterErrorString()); return (1); } else { puts("PASS"); return (0); } } /* * 'do_ps_tests()' - Test standard PostScript commands. */ static int do_ps_tests(void) { cups_page_header2_t header; /* Page header */ int preferred_bits; /* Preferred bits */ int errors = 0; /* Number of errors */ /* * Test PS exec code... */ fputs("_cupsRasterExecPS(\"setpagedevice\"): ", stdout); fflush(stdout); memset(&header, 0, sizeof(header)); header.Collate = CUPS_TRUE; preferred_bits = 0; if (_cupsRasterExecPS(&header, &preferred_bits, setpagedevice_code)) { puts("FAIL (error from function)"); puts(cupsRasterErrorString()); errors ++; } else if (preferred_bits != 17 || memcmp(&header, &setpagedevice_header, sizeof(header))) { puts("FAIL (bad header)"); if (preferred_bits != 17) printf(" cupsPreferredBitsPerColor %d, expected 17\n", preferred_bits); print_changes(&setpagedevice_header, &header); errors ++; } else puts("PASS"); fputs("_cupsRasterExecPS(\"roll\"): ", stdout); fflush(stdout); if (_cupsRasterExecPS(&header, &preferred_bits, "792 612 0 0 0\n" "pop pop pop\n" "<>" "setpagedevice\n")) { puts("FAIL (error from function)"); puts(cupsRasterErrorString()); errors ++; } else if (header.PageSize[0] != 792 || header.PageSize[1] != 612) { printf("FAIL (PageSize [%d %d], expected [792 612])\n", header.PageSize[0], header.PageSize[1]); errors ++; } else puts("PASS"); fputs("_cupsRasterExecPS(\"dup index\"): ", stdout); fflush(stdout); if (_cupsRasterExecPS(&header, &preferred_bits, "true false dup\n" "<>setpagedevice\n" "pop pop pop")) { puts("FAIL (error from function)"); puts(cupsRasterErrorString()); errors ++; } else { if (!header.Collate) { printf("FAIL (Collate false, expected true)\n"); errors ++; } if (header.Duplex) { printf("FAIL (Duplex true, expected false)\n"); errors ++; } if (header.Tumble) { printf("FAIL (Tumble true, expected false)\n"); errors ++; } if(header.Collate && !header.Duplex && !header.Tumble) puts("PASS"); } fputs("_cupsRasterExecPS(\"%%Begin/EndFeature code\"): ", stdout); fflush(stdout); if (_cupsRasterExecPS(&header, &preferred_bits, dsc_code)) { puts("FAIL (error from function)"); puts(cupsRasterErrorString()); errors ++; } else if (header.PageSize[0] != 792 || header.PageSize[1] != 1224) { printf("FAIL (bad PageSize [%d %d], expected [792 1224])\n", header.PageSize[0], header.PageSize[1]); errors ++; } else puts("PASS"); return (errors); } /* * 'print_changes()' - Print differences in the page header. */ static void print_changes( cups_page_header2_t *header, /* I - Actual page header */ cups_page_header2_t *expected) /* I - Expected page header */ { int i; /* Looping var */ if (strcmp(header->MediaClass, expected->MediaClass)) printf(" MediaClass (%s), expected (%s)\n", header->MediaClass, expected->MediaClass); if (strcmp(header->MediaColor, expected->MediaColor)) printf(" MediaColor (%s), expected (%s)\n", header->MediaColor, expected->MediaColor); if (strcmp(header->MediaType, expected->MediaType)) printf(" MediaType (%s), expected (%s)\n", header->MediaType, expected->MediaType); if (strcmp(header->OutputType, expected->OutputType)) printf(" OutputType (%s), expected (%s)\n", header->OutputType, expected->OutputType); if (header->AdvanceDistance != expected->AdvanceDistance) printf(" AdvanceDistance %d, expected %d\n", header->AdvanceDistance, expected->AdvanceDistance); if (header->AdvanceMedia != expected->AdvanceMedia) printf(" AdvanceMedia %d, expected %d\n", header->AdvanceMedia, expected->AdvanceMedia); if (header->Collate != expected->Collate) printf(" Collate %d, expected %d\n", header->Collate, expected->Collate); if (header->CutMedia != expected->CutMedia) printf(" CutMedia %d, expected %d\n", header->CutMedia, expected->CutMedia); if (header->Duplex != expected->Duplex) printf(" Duplex %d, expected %d\n", header->Duplex, expected->Duplex); if (header->HWResolution[0] != expected->HWResolution[0] || header->HWResolution[1] != expected->HWResolution[1]) printf(" HWResolution [%d %d], expected [%d %d]\n", header->HWResolution[0], header->HWResolution[1], expected->HWResolution[0], expected->HWResolution[1]); if (memcmp(header->ImagingBoundingBox, expected->ImagingBoundingBox, sizeof(header->ImagingBoundingBox))) printf(" ImagingBoundingBox [%d %d %d %d], expected [%d %d %d %d]\n", header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], header->ImagingBoundingBox[2], header->ImagingBoundingBox[3], expected->ImagingBoundingBox[0], expected->ImagingBoundingBox[1], expected->ImagingBoundingBox[2], expected->ImagingBoundingBox[3]); if (header->InsertSheet != expected->InsertSheet) printf(" InsertSheet %d, expected %d\n", header->InsertSheet, expected->InsertSheet); if (header->Jog != expected->Jog) printf(" Jog %d, expected %d\n", header->Jog, expected->Jog); if (header->LeadingEdge != expected->LeadingEdge) printf(" LeadingEdge %d, expected %d\n", header->LeadingEdge, expected->LeadingEdge); if (header->Margins[0] != expected->Margins[0] || header->Margins[1] != expected->Margins[1]) printf(" Margins [%d %d], expected [%d %d]\n", header->Margins[0], header->Margins[1], expected->Margins[0], expected->Margins[1]); if (header->ManualFeed != expected->ManualFeed) printf(" ManualFeed %d, expected %d\n", header->ManualFeed, expected->ManualFeed); if (header->MediaPosition != expected->MediaPosition) printf(" MediaPosition %d, expected %d\n", header->MediaPosition, expected->MediaPosition); if (header->MediaWeight != expected->MediaWeight) printf(" MediaWeight %d, expected %d\n", header->MediaWeight, expected->MediaWeight); if (header->MirrorPrint != expected->MirrorPrint) printf(" MirrorPrint %d, expected %d\n", header->MirrorPrint, expected->MirrorPrint); if (header->NegativePrint != expected->NegativePrint) printf(" NegativePrint %d, expected %d\n", header->NegativePrint, expected->NegativePrint); if (header->NumCopies != expected->NumCopies) printf(" NumCopies %d, expected %d\n", header->NumCopies, expected->NumCopies); if (header->Orientation != expected->Orientation) printf(" Orientation %d, expected %d\n", header->Orientation, expected->Orientation); if (header->OutputFaceUp != expected->OutputFaceUp) printf(" OutputFaceUp %d, expected %d\n", header->OutputFaceUp, expected->OutputFaceUp); if (header->PageSize[0] != expected->PageSize[0] || header->PageSize[1] != expected->PageSize[1]) printf(" PageSize [%d %d], expected [%d %d]\n", header->PageSize[0], header->PageSize[1], expected->PageSize[0], expected->PageSize[1]); if (header->Separations != expected->Separations) printf(" Separations %d, expected %d\n", header->Separations, expected->Separations); if (header->TraySwitch != expected->TraySwitch) printf(" TraySwitch %d, expected %d\n", header->TraySwitch, expected->TraySwitch); if (header->Tumble != expected->Tumble) printf(" Tumble %d, expected %d\n", header->Tumble, expected->Tumble); if (header->cupsWidth != expected->cupsWidth) printf(" cupsWidth %d, expected %d\n", header->cupsWidth, expected->cupsWidth); if (header->cupsHeight != expected->cupsHeight) printf(" cupsHeight %d, expected %d\n", header->cupsHeight, expected->cupsHeight); if (header->cupsMediaType != expected->cupsMediaType) printf(" cupsMediaType %d, expected %d\n", header->cupsMediaType, expected->cupsMediaType); if (header->cupsBitsPerColor != expected->cupsBitsPerColor) printf(" cupsBitsPerColor %d, expected %d\n", header->cupsBitsPerColor, expected->cupsBitsPerColor); if (header->cupsBitsPerPixel != expected->cupsBitsPerPixel) printf(" cupsBitsPerPixel %d, expected %d\n", header->cupsBitsPerPixel, expected->cupsBitsPerPixel); if (header->cupsBytesPerLine != expected->cupsBytesPerLine) printf(" cupsBytesPerLine %d, expected %d\n", header->cupsBytesPerLine, expected->cupsBytesPerLine); if (header->cupsColorOrder != expected->cupsColorOrder) printf(" cupsColorOrder %d, expected %d\n", header->cupsColorOrder, expected->cupsColorOrder); if (header->cupsColorSpace != expected->cupsColorSpace) printf(" cupsColorSpace %s, expected %s\n", _cupsRasterColorSpaceString(header->cupsColorSpace), _cupsRasterColorSpaceString(expected->cupsColorSpace)); if (header->cupsCompression != expected->cupsCompression) printf(" cupsCompression %d, expected %d\n", header->cupsCompression, expected->cupsCompression); if (header->cupsRowCount != expected->cupsRowCount) printf(" cupsRowCount %d, expected %d\n", header->cupsRowCount, expected->cupsRowCount); if (header->cupsRowFeed != expected->cupsRowFeed) printf(" cupsRowFeed %d, expected %d\n", header->cupsRowFeed, expected->cupsRowFeed); if (header->cupsRowStep != expected->cupsRowStep) printf(" cupsRowStep %d, expected %d\n", header->cupsRowStep, expected->cupsRowStep); if (header->cupsNumColors != expected->cupsNumColors) printf(" cupsNumColors %d, expected %d\n", header->cupsNumColors, expected->cupsNumColors); if (fabs(header->cupsBorderlessScalingFactor - expected->cupsBorderlessScalingFactor) > 0.001) printf(" cupsBorderlessScalingFactor %g, expected %g\n", header->cupsBorderlessScalingFactor, expected->cupsBorderlessScalingFactor); if (fabs(header->cupsPageSize[0] - expected->cupsPageSize[0]) > 0.001 || fabs(header->cupsPageSize[1] - expected->cupsPageSize[1]) > 0.001) printf(" cupsPageSize [%g %g], expected [%g %g]\n", header->cupsPageSize[0], header->cupsPageSize[1], expected->cupsPageSize[0], expected->cupsPageSize[1]); if (fabs(header->cupsImagingBBox[0] - expected->cupsImagingBBox[0]) > 0.001 || fabs(header->cupsImagingBBox[1] - expected->cupsImagingBBox[1]) > 0.001 || fabs(header->cupsImagingBBox[2] - expected->cupsImagingBBox[2]) > 0.001 || fabs(header->cupsImagingBBox[3] - expected->cupsImagingBBox[3]) > 0.001) printf(" cupsImagingBBox [%g %g %g %g], expected [%g %g %g %g]\n", header->cupsImagingBBox[0], header->cupsImagingBBox[1], header->cupsImagingBBox[2], header->cupsImagingBBox[3], expected->cupsImagingBBox[0], expected->cupsImagingBBox[1], expected->cupsImagingBBox[2], expected->cupsImagingBBox[3]); for (i = 0; i < 16; i ++) if (header->cupsInteger[i] != expected->cupsInteger[i]) printf(" cupsInteger%d %d, expected %d\n", i, header->cupsInteger[i], expected->cupsInteger[i]); for (i = 0; i < 16; i ++) if (fabs(header->cupsReal[i] - expected->cupsReal[i]) > 0.001) printf(" cupsReal%d %g, expected %g\n", i, header->cupsReal[i], expected->cupsReal[i]); for (i = 0; i < 16; i ++) if (strcmp(header->cupsString[i], expected->cupsString[i])) printf(" cupsString%d (%s), expected (%s)\n", i, header->cupsString[i], expected->cupsString[i]); if (strcmp(header->cupsMarkerType, expected->cupsMarkerType)) printf(" cupsMarkerType (%s), expected (%s)\n", header->cupsMarkerType, expected->cupsMarkerType); if (strcmp(header->cupsRenderingIntent, expected->cupsRenderingIntent)) printf(" cupsRenderingIntent (%s), expected (%s)\n", header->cupsRenderingIntent, expected->cupsRenderingIntent); if (strcmp(header->cupsPageSizeName, expected->cupsPageSizeName)) printf(" cupsPageSizeName (%s), expected (%s)\n", header->cupsPageSizeName, expected->cupsPageSizeName); } cups-2.4.7/cups/testoptions.c0000644000175000017500000001165014502571342016075 0ustar zdohnalzdohnal/* * Option unit test program for CUPS. * * Copyright 2008-2016 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" /* * 'main()' - Test option processing functions. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int status = 0, /* Exit status */ num_options; /* Number of options */ cups_option_t *options; /* Options */ const char *value; /* Value of an option */ ipp_t *request; /* IPP request */ ipp_attribute_t *attr; /* IPP attribute */ int count; /* Number of attributes */ if (argc == 1) { /* * cupsParseOptions() */ fputs("cupsParseOptions: ", stdout); num_options = cupsParseOptions("foo=1234 " "bar=\"One Fish\",\"Two Fish\",\"Red Fish\"," "\"Blue Fish\" " "baz={param1=1 param2=2} " "foobar=FOO\\ BAR " "barfoo=barfoo " "barfoo=\"\'BAR FOO\'\" " "auth-info=user,pass\\\\,word\\\\\\\\", 0, &options); if (num_options != 6) { printf("FAIL (num_options=%d, expected 6)\n", num_options); status ++; } else if ((value = cupsGetOption("foo", num_options, options)) == NULL || strcmp(value, "1234")) { printf("FAIL (foo=\"%s\", expected \"1234\")\n", value); status ++; } else if ((value = cupsGetOption("bar", num_options, options)) == NULL || strcmp(value, "One Fish,Two Fish,Red Fish,Blue Fish")) { printf("FAIL (bar=\"%s\", expected \"One Fish,Two Fish,Red Fish,Blue " "Fish\")\n", value); status ++; } else if ((value = cupsGetOption("baz", num_options, options)) == NULL || strcmp(value, "{param1=1 param2=2}")) { printf("FAIL (baz=\"%s\", expected \"{param1=1 param2=2}\")\n", value); status ++; } else if ((value = cupsGetOption("foobar", num_options, options)) == NULL || strcmp(value, "FOO BAR")) { printf("FAIL (foobar=\"%s\", expected \"FOO BAR\")\n", value); status ++; } else if ((value = cupsGetOption("barfoo", num_options, options)) == NULL || strcmp(value, "\'BAR FOO\'")) { printf("FAIL (barfoo=\"%s\", expected \"\'BAR FOO\'\")\n", value); status ++; } else if ((value = cupsGetOption("auth-info", num_options, options)) == NULL || strcmp(value, "user,pass\\,word\\\\")) { printf("FAIL (auth-info=\"%s\", expected \"user,pass\\,word\\\\\")\n", value); status ++; } else puts("PASS"); fputs("cupsEncodeOptions2: ", stdout); request = ippNew(); ippSetOperation(request, IPP_OP_PRINT_JOB); cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); for (count = 0, attr = ippFirstAttribute(request); attr; attr = ippNextAttribute(request), count ++); if (count != 6) { printf("FAIL (%d attributes, expected 6)\n", count); status ++; } else if ((attr = ippFindAttribute(request, "foo", IPP_TAG_ZERO)) == NULL) { puts("FAIL (Unable to find attribute \"foo\")"); status ++; } else if (ippGetValueTag(attr) != IPP_TAG_NAME) { printf("FAIL (\"foo\" of type %s, expected name)\n", ippTagString(ippGetValueTag(attr))); status ++; } else if (ippGetCount(attr) != 1) { printf("FAIL (\"foo\" has %d values, expected 1)\n", (int)ippGetCount(attr)); status ++; } else if (strcmp(ippGetString(attr, 0, NULL), "1234")) { printf("FAIL (\"foo\" has value %s, expected 1234)\n", ippGetString(attr, 0, NULL)); status ++; } else if ((attr = ippFindAttribute(request, "auth-info", IPP_TAG_ZERO)) == NULL) { puts("FAIL (Unable to find attribute \"auth-info\")"); status ++; } else if (ippGetValueTag(attr) != IPP_TAG_TEXT) { printf("FAIL (\"auth-info\" of type %s, expected text)\n", ippTagString(ippGetValueTag(attr))); status ++; } else if (ippGetCount(attr) != 2) { printf("FAIL (\"auth-info\" has %d values, expected 2)\n", (int)ippGetCount(attr)); status ++; } else if (strcmp(ippGetString(attr, 0, NULL), "user")) { printf("FAIL (\"auth-info\"[0] has value \"%s\", expected \"user\")\n", ippGetString(attr, 0, NULL)); status ++; } else if (strcmp(ippGetString(attr, 1, NULL), "pass,word\\")) { printf("FAIL (\"auth-info\"[1] has value \"%s\", expected \"pass,word\\\")\n", ippGetString(attr, 1, NULL)); status ++; } else puts("PASS"); } else { int i; /* Looping var */ cups_option_t *option; /* Current option */ num_options = cupsParseOptions(argv[1], 0, &options); for (i = 0, option = options; i < num_options; i ++, option ++) printf("options[%d].name=\"%s\", value=\"%s\"\n", i, option->name, option->value); } exit (status); } cups-2.4.7/cups/testlang.c0000644000175000017500000002512314502571342015323 0ustar zdohnalzdohnal/* * Localization test program for CUPS. * * Usage: * * ./testlang [-l locale] [-p ppd] ["String to localize"] * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #ifdef __APPLE__ # include #endif /* __APPLE__ */ #include /* * Local functions... */ static int show_ppd(const char *filename); #ifdef __APPLE__ static int test_apple(void); #endif // __APPLE__ static int test_language(const char *locale); static int test_string(cups_lang_t *language, const char *msgid); static void usage(void); /* * 'main()' - Load the specified language and show the strings for yes and no. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *opt; /* Current option */ int errors = 0; /* Number of errors */ int dotests = 1; /* Do standard tests? */ const char *lang = NULL; /* Single language test? */ cups_lang_t *language = NULL; /* Message catalog */ /* * Parse command-line... */ _cupsSetLocale(argv); for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { if (!strcmp(argv[i], "--help")) { usage(); } else { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'l' : i ++; if (i >= argc) { usage(); return (1); } lang = argv[i]; break; case 'p' : i ++; if (i >= argc) { usage(); return (1); } dotests = 0; errors += show_ppd(argv[i]); break; default : usage(); return (1); } } } } else { if (!language) language = cupsLangGet(lang); dotests = 0; errors += test_string(language, argv[i]); } } if (dotests) { if (lang) { /* * Test a single language... */ errors += test_language(lang); } else { /* * Test all locales we find in LOCALEDIR... */ cups_dir_t *dir; /* Locale directory */ cups_dentry_t *dent; /* Directory entry */ if ((dir = cupsDirOpen(getenv("LOCALEDIR"))) != NULL) { while ((dent = cupsDirRead(dir)) != NULL) errors += test_language(dent->filename); } else { // No LOCALEDIR, just use the default language... errors += test_language(NULL); } cupsDirClose(dir); } #ifdef __APPLE__ errors += test_apple(); #endif // __APPLE__ if (!errors) puts("ALL TESTS PASSED"); } return (errors > 0); } /* * 'show_ppd()' - Show localized strings in a PPD file. * * TODO: Move this to the testppd program. */ static int /* O - Number of errors */ show_ppd(const char *filename) /* I - Filename */ { ppd_file_t *ppd; /* PPD file */ ppd_option_t *option; /* PageSize option */ ppd_choice_t *choice; /* PageSize/Letter choice */ char buffer[1024]; /* String buffer */ if ((ppd = ppdOpenFile(filename)) == NULL) { printf("Unable to open PPD file \"%s\".\n", filename); return (1); } ppdLocalize(ppd); if ((option = ppdFindOption(ppd, "PageSize")) == NULL) { puts("No PageSize option."); return (1); } else { printf("PageSize: %s\n", option->text); if ((choice = ppdFindChoice(option, "Letter")) == NULL) { puts("No Letter PageSize choice."); return (1); } else { printf("Letter: %s\n", choice->text); } } printf("media-empty: %s\n", ppdLocalizeIPPReason(ppd, "media-empty", NULL, buffer, sizeof(buffer))); ppdClose(ppd); return (0); } #ifdef __APPLE__ /* * 'test_apple()' - Test macOS locale handing... */ static int /* O - Number of errors */ test_apple(void) { int errors = 0; /* Number of errors */ CFIndex i, /* Looping var */ num_locales; /* Number of locales */ CFArrayRef locales; /* Locales */ CFStringRef locale_id, /* Current locale ID */ language_id; /* Current language ID */ cups_lang_t *language = NULL; /* Message catalog */ char locale_str[256], /* Locale ID C string */ language_str[256], /* Language ID C string */ buffer[1024], /* String buffer */ *bufptr; /* Pointer to ".UTF-8" in POSIX locale */ size_t buflen; /* Length of POSIX locale */ /* * Test all possible language IDs for compatibility with _cupsAppleLocale... */ locales = CFLocaleCopyAvailableLocaleIdentifiers(); num_locales = CFArrayGetCount(locales); printf("CFLocaleCopyAvailableLocaleIdentifiers: %d locales\n", (int)num_locales); for (i = 0; i < num_locales; i ++) { locale_id = CFArrayGetValueAtIndex(locales, i); language_id = CFLocaleCreateCanonicalLanguageIdentifierFromString(kCFAllocatorDefault, locale_id); printf("CFStringGetCString(locale_id %d): ", (int)i); if (!locale_id || !CFStringGetCString(locale_id, locale_str, (CFIndex)sizeof(locale_str), kCFStringEncodingASCII)) { puts("FAIL"); errors ++; continue; } else printf("PASS (\"%s\")\n", locale_str); printf("CFStringGetCString(language_id %d): ", (int)i); if (!language_id || !CFStringGetCString(language_id, language_str, (CFIndex)sizeof(language_str), kCFStringEncodingASCII)) { printf("%d %s: FAIL (unable to get language ID string)\n", (int)i + 1, locale_str); errors ++; continue; } else printf("PASS (\"%s\")\n", language_str); printf("_cupsAppleLocale(\"%s\"): ", language_str); if (!_cupsAppleLocale(language_id, buffer, sizeof(buffer))) { puts("FAIL"); errors ++; continue; } else printf("PASS (\"%s\")\n", buffer); if ((bufptr = strstr(buffer, ".UTF-8")) != NULL) buflen = (size_t)(bufptr - buffer); else buflen = strlen(buffer); printf("cupsLangGet(\"%s\"): ", buffer); if ((language = cupsLangGet(buffer)) == NULL) { puts("FAIL"); errors ++; continue; } else if (strncasecmp(language->language, buffer, buflen)) { printf("FAIL (got \"%s\")\n", language->language); errors ++; continue; } else puts("PASS"); } CFRelease(locales); return (errors); } #endif // __APPLE__ /* * 'test_language()' - Test a specific language... */ static int /* O - Number of errors */ test_language(const char *lang) /* I - Locale language code, NULL for default */ { int i; /* Looping var */ int errors = 0; /* Number of errors */ cups_lang_t *language = NULL, /* Message catalog */ *language2 = NULL; /* Message catalog (second time) */ struct lconv *loc; /* Locale data */ char buffer[1024]; /* String buffer */ double number; /* Number */ static const char * const tests[] = /* Test strings */ { "1", "-1", "3", "5.125" }; // Override the locale environment as needed... if (lang) { // Test the specified locale code... setenv("LANG", lang, 1); setenv("SOFTWARE", "CUPS/" CUPS_SVERSION, 1); printf("cupsLangGet(\"%s\"): ", lang); if ((language = cupsLangGet(lang)) == NULL) { puts("FAIL"); errors ++; } else if (strcasecmp(language->language, lang)) { printf("FAIL (got \"%s\")\n", language->language); errors ++; } else puts("PASS"); printf("cupsLangGet(\"%s\") again: ", lang); if ((language2 = cupsLangGet(lang)) == NULL) { puts("FAIL"); errors ++; } else if (strcasecmp(language2->language, lang)) { printf("FAIL (got \"%s\")\n", language2->language); errors ++; } else if (language2 != language) { puts("FAIL (cache failure)"); errors ++; } else puts("PASS"); } else { // Test the default locale... fputs("cupsLangDefault: ", stdout); if ((language = cupsLangDefault()) == NULL) { puts("FAIL"); errors ++; } else puts("PASS"); fputs("cupsLangDefault again: ", stdout); if ((language2 = cupsLangDefault()) == NULL) { puts("FAIL"); errors ++; } else if (language2 != language) { puts("FAIL (cache failure)"); errors ++; } else puts("PASS"); } printf("language->language: \"%s\"\n", language->language); printf("_cupsEncodingName(language): \"%s\"\n", _cupsEncodingName(language->encoding)); errors += test_string(language, "No"); errors += test_string(language, "Yes"); if (language != language2) { printf("language2->language: \"%s\"\n", language2->language); printf("_cupsEncodingName(language2): \"%s\"\n", _cupsEncodingName(language2->encoding)); } loc = localeconv(); for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i ++) { number = _cupsStrScand(tests[i], NULL, loc); printf("_cupsStrScand(\"%s\"): %f\n", tests[i], number); _cupsStrFormatd(buffer, buffer + sizeof(buffer), number, loc); printf("_cupsStrFormatd(%f): ", number); if (strcmp(buffer, tests[i])) { errors ++; printf("FAIL (got \"%s\")\n", buffer); } else puts("PASS"); } return (errors); } /* * 'test_string()' - Test the localization of a string. */ static int /* O - 1 on failure, 0 on success */ test_string(cups_lang_t *language, /* I - Language */ const char *msgid) /* I - Message */ { const char *msgstr; /* Localized string */ /* * Get the localized string and then see if we got what we expected. * * For the POSIX locale, the string pointers should be the same. * For any other locale, the string pointers should be different. */ printf("_cupsLangString(\"%s\"): ", msgid); msgstr = _cupsLangString(language, msgid); if (strcmp(language->language, "C") && msgid == msgstr) { puts("FAIL (no message catalog loaded)"); return (1); } else if (!strcmp(language->language, "C") && msgid != msgstr) { puts("FAIL (POSIX locale is localized)"); return (1); } printf("PASS (\"%s\")\n", msgstr); return (0); } /* * 'usage()' - Show program usage. */ static void usage(void) { puts("Usage: ./testlang [-l locale] [-p ppd] [\"String to localize\"]"); puts(""); puts("If no arguments are specified, all locales are tested."); } cups-2.4.7/cups/testipp.c0000644000175000017500000007271314502571342015201 0ustar zdohnalzdohnal/* * IPP test program for CUPS. * * Copyright © 2022-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "file.h" #include "string-private.h" #include "ipp-private.h" #ifdef _WIN32 # include #else # include # include #endif /* _WIN32 */ /* * Local types... */ typedef struct _ippdata_t { size_t rpos, /* Read position */ wused, /* Bytes used */ wsize; /* Max size of buffer */ ipp_uchar_t *wbuffer; /* Buffer */ } _ippdata_t; /* * Local globals... */ static ipp_uchar_t collection[] = /* Collection buffer */ { 0x01, 0x01, /* IPP version */ 0x00, 0x02, /* Print-Job operation */ 0x00, 0x00, 0x00, 0x01, /* Request ID */ IPP_TAG_OPERATION, IPP_TAG_CHARSET, 0x00, 0x12, /* Name length + name */ 'a','t','t','r','i','b','u','t','e','s','-', 'c','h','a','r','s','e','t', 0x00, 0x05, /* Value length + value */ 'u','t','f','-','8', IPP_TAG_LANGUAGE, 0x00, 0x1b, /* Name length + name */ 'a','t','t','r','i','b','u','t','e','s','-', 'n','a','t','u','r','a','l','-','l','a','n', 'g','u','a','g','e', 0x00, 0x02, /* Value length + value */ 'e','n', IPP_TAG_URI, 0x00, 0x0b, /* Name length + name */ 'p','r','i','n','t','e','r','-','u','r','i', 0x00, 0x1c, /* Value length + value */ 'i','p','p',':','/','/','l','o','c','a','l', 'h','o','s','t','/','p','r','i','n','t','e', 'r','s','/','f','o','o', IPP_TAG_JOB, /* job group tag */ IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x09, /* Name length + name */ 'm', 'e', 'd', 'i', 'a', '-', 'c', 'o', 'l', 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0a, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 's', 'i', 'z', 'e', IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x00, /* Name length + name */ 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'x', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x00, /* No name */ 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x54, 0x56, IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'y', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x00, /* No name */ 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x6d, 0x24, IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 'c', 'o', 'l', 'o', 'r', IPP_TAG_KEYWORD, /* keyword tag */ 0x00, 0x00, /* No name */ 0x00, 0x04, /* Value length + value */ 'b', 'l', 'u', 'e', IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0a, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 't', 'y', 'p', 'e', IPP_TAG_KEYWORD, /* keyword tag */ 0x00, 0x00, /* No name */ 0x00, 0x05, /* Value length + value */ 'p', 'l', 'a', 'i', 'n', IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0a, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 's', 'i', 'z', 'e', IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x00, /* Name length + name */ 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'x', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x00, /* No name */ 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x52, 0x08, IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'y', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x00, /* No name */ 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x74, 0x04, IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0b, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 'c', 'o', 'l', 'o', 'r', IPP_TAG_KEYWORD, /* keyword tag */ 0x00, 0x00, /* No name */ 0x00, 0x05, /* Value length + value */ 'p', 'l', 'a', 'i', 'd', IPP_TAG_MEMBERNAME, /* memberAttrName tag */ 0x00, 0x00, /* No name */ 0x00, 0x0a, /* Value length + value */ 'm', 'e', 'd', 'i', 'a', '-', 't', 'y', 'p', 'e', IPP_TAG_KEYWORD, /* keyword tag */ 0x00, 0x00, /* No name */ 0x00, 0x06, /* Value length + value */ 'g', 'l', 'o', 's', 's', 'y', IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_END /* end tag */ }; static ipp_uchar_t bad_collection[] = /* Collection buffer (bad encoding) */ { 0x01, 0x01, /* IPP version */ 0x00, 0x02, /* Print-Job operation */ 0x00, 0x00, 0x00, 0x01, /* Request ID */ IPP_TAG_OPERATION, IPP_TAG_CHARSET, 0x00, 0x12, /* Name length + name */ 'a','t','t','r','i','b','u','t','e','s','-', 'c','h','a','r','s','e','t', 0x00, 0x05, /* Value length + value */ 'u','t','f','-','8', IPP_TAG_LANGUAGE, 0x00, 0x1b, /* Name length + name */ 'a','t','t','r','i','b','u','t','e','s','-', 'n','a','t','u','r','a','l','-','l','a','n', 'g','u','a','g','e', 0x00, 0x02, /* Value length + value */ 'e','n', IPP_TAG_URI, 0x00, 0x0b, /* Name length + name */ 'p','r','i','n','t','e','r','-','u','r','i', 0x00, 0x1c, /* Value length + value */ 'i','p','p',':','/','/','l','o','c','a','l', 'h','o','s','t','/','p','r','i','n','t','e', 'r','s','/','f','o','o', IPP_TAG_JOB, /* job group tag */ IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x09, /* Name length + name */ 'm', 'e', 'd', 'i', 'a', '-', 'c', 'o', 'l', 0x00, 0x00, /* No value */ IPP_TAG_BEGIN_COLLECTION, /* begCollection tag */ 0x00, 0x0a, /* Name length + name */ 'm', 'e', 'd', 'i', 'a', '-', 's', 'i', 'z', 'e', 0x00, 0x00, /* No value */ IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x0b, /* Name length + name */ 'x', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x54, 0x56, IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x0b, /* Name length + name */ 'y', '-', 'd', 'i', 'm', 'e', 'n', 's', 'i', 'o', 'n', 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x6d, 0x24, IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_END_COLLECTION, /* endCollection tag */ 0x00, 0x00, /* No name */ 0x00, 0x00, /* No value */ IPP_TAG_END /* end tag */ }; static ipp_uchar_t mixed[] = /* Mixed value buffer */ { 0x01, 0x01, /* IPP version */ 0x00, 0x02, /* Print-Job operation */ 0x00, 0x00, 0x00, 0x01, /* Request ID */ IPP_TAG_OPERATION, IPP_TAG_INTEGER, /* integer tag */ 0x00, 0x1f, /* Name length + name */ 'n', 'o', 't', 'i', 'f', 'y', '-', 'l', 'e', 'a', 's', 'e', '-', 'd', 'u', 'r', 'a', 't', 'i', 'o', 'n', '-', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 0x00, 0x04, /* Value length + value */ 0x00, 0x00, 0x00, 0x01, IPP_TAG_RANGE, /* rangeOfInteger tag */ 0x00, 0x00, /* No name */ 0x00, 0x08, /* Value length + value */ 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, IPP_TAG_END /* end tag */ }; /* * Local functions... */ void hex_dump(const char *title, ipp_uchar_t *buffer, size_t bytes); void print_attributes(ipp_t *ipp, int indent); ssize_t read_cb(_ippdata_t *data, ipp_uchar_t *buffer, size_t bytes); ssize_t read_hex(cups_file_t *fp, ipp_uchar_t *buffer, size_t bytes); int token_cb(_ipp_file_t *f, _ipp_vars_t *v, void *user_data, const char *token); ssize_t write_cb(_ippdata_t *data, ipp_uchar_t *buffer, size_t bytes); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { _ippdata_t data; /* IPP buffer */ ipp_uchar_t buffer[8192]; /* Write buffer data */ ipp_t *cols[2], /* Collections */ *size; /* media-size collection */ ipp_t *request; /* Request */ ipp_attribute_t *media_col, /* media-col attribute */ *media_size, /* media-size attribute */ *attr; /* Other attribute */ ipp_state_t state; /* State */ size_t length; /* Length of data */ cups_file_t *fp; /* File pointer */ size_t i; /* Looping var */ int status; /* Status of tests (0 = success, 1 = fail) */ #ifdef DEBUG const char *name; /* Option name */ #endif /* DEBUG */ static const char * const test_strings[] = { /* Test strings */ "one-string", "two-string", "red-string", "blue-string" }; status = 0; if (argc == 1) { /* * Test request generation code... */ printf("Create Sample Request: "); request = ippNew(); request->request.op.version[0] = 0x01; request->request.op.version[1] = 0x01; request->request.op.operation_id = IPP_OP_PRINT_JOB; request->request.op.request_id = 1; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, "en"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/foo"); cols[0] = ippNew(); size = ippNew(); ippAddInteger(size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "x-dimension", 21590); ippAddInteger(size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "y-dimension", 27940); ippAddCollection(cols[0], IPP_TAG_JOB, "media-size", size); ippDelete(size); ippAddString(cols[0], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-color", NULL, "blue"); ippAddString(cols[0], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, "plain"); cols[1] = ippNew(); size = ippNew(); ippAddInteger(size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "x-dimension", 21000); ippAddInteger(size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "y-dimension", 29700); ippAddCollection(cols[1], IPP_TAG_JOB, "media-size", size); ippDelete(size); ippAddString(cols[1], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-color", NULL, "plaid"); ippAddString(cols[1], IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, "glossy"); ippAddCollections(request, IPP_TAG_JOB, "media-col", 2, (const ipp_t **)cols); ippDelete(cols[0]); ippDelete(cols[1]); length = ippLength(request); if (length != sizeof(collection)) { printf("FAIL - wrong ippLength(), %d instead of %d bytes!\n", (int)length, (int)sizeof(collection)); status = 1; } else puts("PASS"); /* * Write test #1... */ printf("Write Sample to Memory: "); data.wused = 0; data.wsize = sizeof(buffer); data.wbuffer = buffer; while ((state = ippWriteIO(&data, (ipp_iocb_t)write_cb, 1, NULL, request)) != IPP_STATE_DATA) if (state == IPP_STATE_ERROR) break; if (state != IPP_STATE_DATA) { printf("FAIL - %d bytes written.\n", (int)data.wused); status = 1; } else if (data.wused != sizeof(collection)) { printf("FAIL - wrote %d bytes, expected %d bytes!\n", (int)data.wused, (int)sizeof(collection)); hex_dump("Bytes Written", data.wbuffer, data.wused); hex_dump("Baseline", collection, sizeof(collection)); status = 1; } else if (memcmp(data.wbuffer, collection, data.wused)) { for (i = 0; i < data.wused; i ++) if (data.wbuffer[i] != collection[i]) break; printf("FAIL - output does not match baseline at 0x%04x!\n", (unsigned)i); hex_dump("Bytes Written", data.wbuffer, data.wused); hex_dump("Baseline", collection, sizeof(collection)); status = 1; } else puts("PASS"); ippDelete(request); /* * Read the data back in and confirm... */ printf("Read Sample from Memory: "); request = ippNew(); data.rpos = 0; while ((state = ippReadIO(&data, (ipp_iocb_t)read_cb, 1, NULL, request)) != IPP_STATE_DATA) if (state == IPP_STATE_ERROR) break; length = ippLength(request); if (state != IPP_STATE_DATA) { printf("FAIL - %d bytes read.\n", (int)data.rpos); status = 1; } else if (data.rpos != data.wused) { printf("FAIL - read %d bytes, expected %d bytes!\n", (int)data.rpos, (int)data.wused); print_attributes(request, 8); status = 1; } else if (length != sizeof(collection)) { printf("FAIL - wrong ippLength(), %d instead of %d bytes!\n", (int)length, (int)sizeof(collection)); print_attributes(request, 8); status = 1; } else puts("PASS"); fputs("ippFindAttribute(media-col): ", stdout); if ((media_col = ippFindAttribute(request, "media-col", IPP_TAG_BEGIN_COLLECTION)) == NULL) { if ((media_col = ippFindAttribute(request, "media-col", IPP_TAG_ZERO)) == NULL) puts("FAIL (not found)"); else printf("FAIL (wrong type - %s)\n", ippTagString(media_col->value_tag)); status = 1; } else if (media_col->num_values != 2) { printf("FAIL (wrong count - %d)\n", media_col->num_values); status = 1; } else puts("PASS"); if (media_col) { fputs("ippFindAttribute(media-size 1): ", stdout); if ((media_size = ippFindAttribute(media_col->values[0].collection, "media-size", IPP_TAG_BEGIN_COLLECTION)) == NULL) { if ((media_size = ippFindAttribute(media_col->values[0].collection, "media-col", IPP_TAG_ZERO)) == NULL) puts("FAIL (not found)"); else printf("FAIL (wrong type - %s)\n", ippTagString(media_size->value_tag)); status = 1; } else { if ((attr = ippFindAttribute(media_size->values[0].collection, "x-dimension", IPP_TAG_INTEGER)) == NULL) { if ((attr = ippFindAttribute(media_size->values[0].collection, "x-dimension", IPP_TAG_ZERO)) == NULL) puts("FAIL (missing x-dimension)"); else printf("FAIL (wrong type for x-dimension - %s)\n", ippTagString(attr->value_tag)); status = 1; } else if (attr->values[0].integer != 21590) { printf("FAIL (wrong value for x-dimension - %d)\n", attr->values[0].integer); status = 1; } else if ((attr = ippFindAttribute(media_size->values[0].collection, "y-dimension", IPP_TAG_INTEGER)) == NULL) { if ((attr = ippFindAttribute(media_size->values[0].collection, "y-dimension", IPP_TAG_ZERO)) == NULL) puts("FAIL (missing y-dimension)"); else printf("FAIL (wrong type for y-dimension - %s)\n", ippTagString(attr->value_tag)); status = 1; } else if (attr->values[0].integer != 27940) { printf("FAIL (wrong value for y-dimension - %d)\n", attr->values[0].integer); status = 1; } else puts("PASS"); } fputs("ippFindAttribute(media-size 2): ", stdout); if ((media_size = ippFindAttribute(media_col->values[1].collection, "media-size", IPP_TAG_BEGIN_COLLECTION)) == NULL) { if ((media_size = ippFindAttribute(media_col->values[1].collection, "media-col", IPP_TAG_ZERO)) == NULL) puts("FAIL (not found)"); else printf("FAIL (wrong type - %s)\n", ippTagString(media_size->value_tag)); status = 1; } else { if ((attr = ippFindAttribute(media_size->values[0].collection, "x-dimension", IPP_TAG_INTEGER)) == NULL) { if ((attr = ippFindAttribute(media_size->values[0].collection, "x-dimension", IPP_TAG_ZERO)) == NULL) puts("FAIL (missing x-dimension)"); else printf("FAIL (wrong type for x-dimension - %s)\n", ippTagString(attr->value_tag)); status = 1; } else if (attr->values[0].integer != 21000) { printf("FAIL (wrong value for x-dimension - %d)\n", attr->values[0].integer); status = 1; } else if ((attr = ippFindAttribute(media_size->values[0].collection, "y-dimension", IPP_TAG_INTEGER)) == NULL) { if ((attr = ippFindAttribute(media_size->values[0].collection, "y-dimension", IPP_TAG_ZERO)) == NULL) puts("FAIL (missing y-dimension)"); else printf("FAIL (wrong type for y-dimension - %s)\n", ippTagString(attr->value_tag)); status = 1; } else if (attr->values[0].integer != 29700) { printf("FAIL (wrong value for y-dimension - %d)\n", attr->values[0].integer); status = 1; } else puts("PASS"); } } /* * Test hierarchical find... */ fputs("ippFindAttribute(media-col/media-size/x-dimension): ", stdout); if ((attr = ippFindAttribute(request, "media-col/media-size/x-dimension", IPP_TAG_INTEGER)) != NULL) { if (ippGetInteger(attr, 0) != 21590) { printf("FAIL (wrong value for x-dimension - %d)\n", ippGetInteger(attr, 0)); status = 1; } else puts("PASS"); } else { puts("FAIL (not found)"); status = 1; } fputs("ippFindNextAttribute(media-col/media-size/x-dimension): ", stdout); if ((attr = ippFindNextAttribute(request, "media-col/media-size/x-dimension", IPP_TAG_INTEGER)) != NULL) { if (ippGetInteger(attr, 0) != 21000) { printf("FAIL (wrong value for x-dimension - %d)\n", ippGetInteger(attr, 0)); status = 1; } else puts("PASS"); } else { puts("FAIL (not found)"); status = 1; } fputs("ippFindNextAttribute(media-col/media-size/x-dimension) again: ", stdout); if ((attr = ippFindNextAttribute(request, "media-col/media-size/x-dimension", IPP_TAG_INTEGER)) != NULL) { printf("FAIL (got %d, expected nothing)\n", ippGetInteger(attr, 0)); status = 1; } else puts("PASS"); ippDelete(request); /* * Read the bad collection data and confirm we get an error... */ fputs("Read Bad Collection from Memory: ", stdout); request = ippNew(); data.rpos = 0; data.wused = sizeof(bad_collection); data.wsize = sizeof(bad_collection); data.wbuffer = bad_collection; while ((state = ippReadIO(&data, (ipp_iocb_t)read_cb, 1, NULL, request)) != IPP_STATE_DATA) if (state == IPP_STATE_ERROR) break; if (state != IPP_STATE_ERROR) puts("FAIL (read successful)"); else puts("PASS"); /* * Read the mixed data and confirm we converted everything to rangeOfInteger * values... */ fputs("Read Mixed integer/rangeOfInteger from Memory: ", stdout); request = ippNew(); data.rpos = 0; data.wused = sizeof(mixed); data.wsize = sizeof(mixed); data.wbuffer = mixed; while ((state = ippReadIO(&data, (ipp_iocb_t)read_cb, 1, NULL, request)) != IPP_STATE_DATA) if (state == IPP_STATE_ERROR) break; length = ippLength(request); if (state != IPP_STATE_DATA) { printf("FAIL - %d bytes read.\n", (int)data.rpos); status = 1; } else if (data.rpos != sizeof(mixed)) { printf("FAIL - read %d bytes, expected %d bytes!\n", (int)data.rpos, (int)sizeof(mixed)); print_attributes(request, 8); status = 1; } else if (length != (sizeof(mixed) + 4)) { printf("FAIL - wrong ippLength(), %d instead of %d bytes!\n", (int)length, (int)sizeof(mixed) + 4); print_attributes(request, 8); status = 1; } else puts("PASS"); fputs("ippFindAttribute(notify-lease-duration-supported): ", stdout); if ((attr = ippFindAttribute(request, "notify-lease-duration-supported", IPP_TAG_ZERO)) == NULL) { puts("FAIL (not found)"); status = 1; } else if (attr->value_tag != IPP_TAG_RANGE) { printf("FAIL (wrong type - %s)\n", ippTagString(attr->value_tag)); status = 1; } else if (attr->num_values != 2) { printf("FAIL (wrong count - %d)\n", attr->num_values); status = 1; } else if (attr->values[0].range.lower != 1 || attr->values[0].range.upper != 1 || attr->values[1].range.lower != 16 || attr->values[1].range.upper != 32) { printf("FAIL (wrong values - %d,%d and %d,%d)\n", attr->values[0].range.lower, attr->values[0].range.upper, attr->values[1].range.lower, attr->values[1].range.upper); status = 1; } else puts("PASS"); fputs("ippDeleteValues: ", stdout); attr = ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "test-strings", 4, NULL, test_strings); if (ippGetCount(attr) != 4) { printf("FAIL (got %d values, expected 4 values)\n", ippGetCount(attr)); status = 1; } else if (!ippDeleteValues(request, &attr, 3, 1)) { puts("FAIL (returned 0)"); status = 1; } else if (ippGetCount(attr) != 3) { printf("FAIL (got %d values, expected 3 values)\n", ippGetCount(attr)); status = 1; } else { puts("PASS"); } ippDelete(request); #ifdef DEBUG /* * Test that private option array is sorted... */ fputs("_ippCheckOptions: ", stdout); if ((name = _ippCheckOptions()) == NULL) puts("PASS"); else { printf("FAIL (\"%s\" out of order)\n", name); status = 1; } #endif /* DEBUG */ /* * Test _ippFindOption() private API... */ fputs("_ippFindOption(\"printer-type\"): ", stdout); if (_ippFindOption("printer-type")) puts("PASS"); else { puts("FAIL"); status = 1; } /* * Summarize... */ putchar('\n'); if (status) puts("Core IPP tests failed."); else puts("Core IPP tests passed."); } else { /* * Read IPP files... */ for (i = 1; i < (size_t)argc; i ++) { if (strlen(argv[i]) > 5 && !strcmp(argv[i] + strlen(argv[i]) - 5, ".test")) { /* * Read an ASCII IPP message... */ _ipp_vars_t v; /* IPP variables */ _ippVarsInit(&v, NULL, NULL, token_cb); request = _ippFileParse(&v, argv[i], NULL); _ippVarsDeinit(&v); } else if (strlen(argv[i]) > 4 && !strcmp(argv[i] + strlen(argv[i]) - 4, ".hex")) { /* * Read a hex-encoded IPP message... */ if ((fp = cupsFileOpen(argv[i], "r")) == NULL) { printf("Unable to open \"%s\" - %s\n", argv[i], strerror(errno)); status = 1; continue; } request = ippNew(); while ((state = ippReadIO(fp, (ipp_iocb_t)read_hex, 1, NULL, request)) == IPP_STATE_ATTRIBUTE); if (state != IPP_STATE_DATA) { printf("Error reading IPP message from \"%s\": %s\n", argv[i], cupsLastErrorString()); status = 1; ippDelete(request); request = NULL; } cupsFileClose(fp); } else { /* * Read a raw (binary) IPP message... */ if ((fp = cupsFileOpen(argv[i], "r")) == NULL) { printf("Unable to open \"%s\" - %s\n", argv[i], strerror(errno)); status = 1; continue; } request = ippNew(); while ((state = ippReadIO(fp, (ipp_iocb_t)cupsFileRead, 1, NULL, request)) == IPP_STATE_ATTRIBUTE); if (state != IPP_STATE_DATA) { printf("Error reading IPP message from \"%s\": %s\n", argv[i], cupsLastErrorString()); status = 1; ippDelete(request); request = NULL; } cupsFileClose(fp); } if (request) { printf("\n%s:\n", argv[i]); print_attributes(request, 4); ippDelete(request); } } } return (status); } /* * 'hex_dump()' - Produce a hex dump of a buffer. */ void hex_dump(const char *title, /* I - Title */ ipp_uchar_t *buffer, /* I - Buffer to dump */ size_t bytes) /* I - Number of bytes */ { size_t i, j; /* Looping vars */ int ch; /* Current ASCII char */ /* * Show lines of 16 bytes at a time... */ printf(" %s:\n", title); for (i = 0; i < bytes; i += 16) { /* * Show the offset... */ printf(" %04x ", (unsigned)i); /* * Then up to 16 bytes in hex... */ for (j = 0; j < 16; j ++) if ((i + j) < bytes) printf(" %02x", buffer[i + j]); else printf(" "); /* * Then the ASCII representation of the bytes... */ putchar(' '); putchar(' '); for (j = 0; j < 16 && (i + j) < bytes; j ++) { ch = buffer[i + j] & 127; if (ch < ' ' || ch == 127) putchar('.'); else putchar(ch); } putchar('\n'); } } /* * 'print_attributes()' - Print the attributes in a request... */ void print_attributes(ipp_t *ipp, /* I - IPP request */ int indent) /* I - Indentation */ { ipp_tag_t group; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[2048]; /* Value string */ for (group = IPP_TAG_ZERO, attr = ipp->attrs; attr; attr = attr->next) { if (!attr->name && indent == 4) { group = IPP_TAG_ZERO; putchar('\n'); continue; } if (group != attr->group_tag) { group = attr->group_tag; printf("\n%*s%s:\n\n", indent - 4, "", ippTagString(group)); } ippAttributeString(attr, buffer, sizeof(buffer)); printf("%*s%s (%s%s): %s\n", indent, "", attr->name ? attr->name : "(null)", attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag), buffer); } } /* * 'read_cb()' - Read data from a buffer. */ ssize_t /* O - Number of bytes read */ read_cb(_ippdata_t *data, /* I - Data */ ipp_uchar_t *buffer, /* O - Buffer to read */ size_t bytes) /* I - Number of bytes to read */ { size_t count; /* Number of bytes */ /* * Copy bytes from the data buffer to the read buffer... */ if ((count = data->wsize - data->rpos) > bytes) count = bytes; memcpy(buffer, data->wbuffer + data->rpos, count); data->rpos += count; /* * Return the number of bytes read... */ return ((ssize_t)count); } /* * 'read_hex()' - Read a hex dump of an IPP request. */ ssize_t /* O - Number of bytes read */ read_hex(cups_file_t *fp, /* I - File to read from */ ipp_uchar_t *buffer, /* I - Buffer to read */ size_t bytes) /* I - Number of bytes to read */ { size_t total = 0; /* Total bytes read */ static char hex[256] = ""; /* Line from file */ static char *hexptr = NULL; /* Pointer in line */ while (total < bytes) { if (!hexptr || (isspace(hexptr[0] & 255) && isspace(hexptr[1] & 255))) { if (!cupsFileGets(fp, hex, sizeof(hex))) break; hexptr = hex; while (isxdigit(*hexptr & 255)) hexptr ++; while (isspace(*hexptr & 255)) hexptr ++; if (!isxdigit(*hexptr & 255)) { hexptr = NULL; continue; } } *buffer++ = (ipp_uchar_t)strtol(hexptr, &hexptr, 16); total ++; } return (total == 0 ? -1 : (ssize_t)total); } /* * 'token_cb()' - Token callback for ASCII IPP data file parser. */ int /* O - 1 on success, 0 on failure */ token_cb(_ipp_file_t *f, /* I - IPP file data */ _ipp_vars_t *v, /* I - IPP variables */ void *user_data, /* I - User data pointer */ const char *token) /* I - Token string */ { (void)v; (void)user_data; if (!token) { f->attrs = ippNew(); f->group_tag = IPP_TAG_PRINTER; } else { fprintf(stderr, "Unknown directive \"%s\" on line %d of \"%s\".\n", token, f->linenum, f->filename); return (0); } return (1); } /* * 'write_cb()' - Write data into a buffer. */ ssize_t /* O - Number of bytes written */ write_cb(_ippdata_t *data, /* I - Data */ ipp_uchar_t *buffer, /* I - Buffer to write */ size_t bytes) /* I - Number of bytes to write */ { size_t count; /* Number of bytes */ /* * Loop until all bytes are written... */ if ((count = data->wsize - data->wused) > bytes) count = bytes; memcpy(data->wbuffer + data->wused, buffer, count); data->wused += count; /* * Return the number of bytes written... */ return ((ssize_t)count); } cups-2.4.7/cups/testi18n.c0000644000175000017500000003403114502571342015157 0ustar zdohnalzdohnal/* * Internationalization test for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "string-private.h" #include "language-private.h" #include #include #include /* * Local globals... */ static const char * const lang_encodings[] = { /* Encoding strings */ "us-ascii", "iso-8859-1", "iso-8859-2", "iso-8859-3", "iso-8859-4", "iso-8859-5", "iso-8859-6", "iso-8859-7", "iso-8859-8", "iso-8859-9", "iso-8859-10", "utf-8", "iso-8859-13", "iso-8859-14", "iso-8859-15", "windows-874", "windows-1250", "windows-1251", "windows-1252", "windows-1253", "windows-1254", "windows-1255", "windows-1256", "windows-1257", "windows-1258", "koi8-r", "koi8-u", "iso-8859-11", "iso-8859-16", "mac-roman", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "windows-932", "windows-936", "windows-949", "windows-950", "windows-1361", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "euc-cn", "euc-jp", "euc-kr", "euc-tw", "jis-x0213" }; /* * Local functions... */ static void print_utf8(const char *msg, const cups_utf8_t *src); /* * 'main()' - Main entry for internationalization test module. */ int /* O - Exit code */ main(int argc, /* I - Argument Count */ char *argv[]) /* I - Arguments */ { FILE *fp; /* File pointer */ int count; /* File line counter */ int status, /* Status of current test */ errors; /* Error count */ char line[1024]; /* File line source string */ int len; /* Length (count) of string */ char legsrc[1024], /* Legacy source string */ legdest[1024], /* Legacy destination string */ *legptr; /* Pointer into legacy string */ cups_utf8_t utf8latin[] = /* UTF-8 Latin-1 source */ { 0x41, 0x20, 0x21, 0x3D, 0x20, 0xC3, 0x84, 0x2E, 0x00 }; /* "A != ." - use ISO 8859-1 */ cups_utf8_t utf8repla[] = /* UTF-8 Latin-1 replacement */ { 0x41, 0x20, 0xE2, 0x89, 0xA2, 0x20, 0xC3, 0x84, 0x2E, 0x00 }; /* "A ." */ cups_utf8_t utf8greek[] = /* UTF-8 Greek source string */ { 0x41, 0x20, 0x21, 0x3D, 0x20, 0xCE, 0x91, 0x2E, 0x00 }; /* "A != ." - use ISO 8859-7 */ cups_utf8_t utf8japan[] = /* UTF-8 Japanese source */ { 0x41, 0x20, 0x21, 0x3D, 0x20, 0xEE, 0x9C, 0x80, 0x2E, 0x00 }; /* "A != ." - use Windows 932 or EUC-JP */ cups_utf8_t utf8taiwan[] = /* UTF-8 Chinese source */ { 0x41, 0x20, 0x21, 0x3D, 0x20, 0xE4, 0xB9, 0x82, 0x2E, 0x00 }; /* "A != ." - use Windows 950 (Big5) or EUC-TW */ cups_utf8_t utf8dest[1024]; /* UTF-8 destination string */ cups_utf32_t utf32dest[1024]; /* UTF-32 destination string */ if (argc > 1) { int i; /* Looping var */ cups_encoding_t encoding; /* Source encoding */ if (argc != 3) { puts("Usage: ./testi18n [filename charset]"); return (1); } if ((fp = fopen(argv[1], "rb")) == NULL) { perror(argv[1]); return (1); } for (i = 0, encoding = CUPS_AUTO_ENCODING; i < (int)(sizeof(lang_encodings) / sizeof(lang_encodings[0])); i ++) if (!_cups_strcasecmp(lang_encodings[i], argv[2])) { encoding = (cups_encoding_t)i; break; } if (encoding == CUPS_AUTO_ENCODING) { fprintf(stderr, "%s: Unknown character set!\n", argv[2]); fclose(fp); return (1); } while (fgets(line, sizeof(line), fp)) { if (cupsCharsetToUTF8(utf8dest, line, sizeof(utf8dest), encoding) < 0) { fprintf(stderr, "%s: Unable to convert line: %s", argv[1], line); fclose(fp); return (1); } fputs((char *)utf8dest, stdout); } fclose(fp); return (0); } /* * Start with some conversion tests from a UTF-8 test file. */ errors = 0; if ((fp = fopen("utf8demo.txt", "rb")) == NULL) { perror("utf8demo.txt"); return (1); } /* * cupsUTF8ToUTF32 */ fputs("cupsUTF8ToUTF32 of utfdemo.txt: ", stdout); for (count = 0, status = 0; fgets(line, sizeof(line), fp);) { count ++; if (cupsUTF8ToUTF32(utf32dest, (cups_utf8_t *)line, 1024) < 0) { printf("FAIL (UTF-8 to UTF-32 on line %d)\n", count); errors ++; status = 1; break; } } if (!status) puts("PASS"); /* * cupsUTF8ToCharset(CUPS_EUC_JP) */ fputs("cupsUTF8ToCharset(CUPS_EUC_JP) of utfdemo.txt: ", stdout); rewind(fp); for (count = 0, status = 0; fgets(line, sizeof(line), fp);) { count ++; len = cupsUTF8ToCharset(legdest, (cups_utf8_t *)line, 1024, CUPS_EUC_JP); if (len < 0) { printf("FAIL (UTF-8 to EUC-JP on line %d)\n", count); errors ++; status = 1; break; } } if (!status) puts("PASS"); fclose(fp); /* * Test UTF-8 to legacy charset (ISO 8859-1)... */ fputs("cupsUTF8ToCharset(CUPS_ISO8859_1): ", stdout); legdest[0] = 0; len = cupsUTF8ToCharset(legdest, utf8latin, 1024, CUPS_ISO8859_1); if (len < 0) { printf("FAIL (len=%d)\n", len); errors ++; } else puts("PASS"); /* * cupsCharsetToUTF8 */ fputs("cupsCharsetToUTF8(CUPS_ISO8859_1): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_ISO8859_1); if ((size_t)len != strlen((char *)utf8latin)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8latin)); print_utf8(" utf8latin", utf8latin); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8latin, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8latin", utf8latin); print_utf8(" utf8dest", utf8dest); errors ++; } else if (cupsUTF8ToCharset(legdest, utf8repla, 1024, CUPS_ISO8859_1) < 0) { puts("FAIL (replacement characters do not work!)"); errors ++; } else puts("PASS"); /* * Test UTF-8 to/from legacy charset (ISO 8859-7)... */ fputs("cupsUTF8ToCharset(CUPS_ISO8859_7): ", stdout); if (cupsUTF8ToCharset(legdest, utf8greek, 1024, CUPS_ISO8859_7) < 0) { puts("FAIL"); errors ++; } else { for (legptr = legdest; *legptr && *legptr != '?'; legptr ++); if (*legptr) { puts("FAIL (unknown character)"); errors ++; } else puts("PASS"); } fputs("cupsCharsetToUTF8(CUPS_ISO8859_7): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_ISO8859_7); if ((size_t)len != strlen((char *)utf8greek)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8greek)); print_utf8(" utf8greek", utf8greek); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8greek, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8greek", utf8greek); print_utf8(" utf8dest", utf8dest); errors ++; } else puts("PASS"); /* * Test UTF-8 to/from legacy charset (Windows 932)... */ fputs("cupsUTF8ToCharset(CUPS_WINDOWS_932): ", stdout); if (cupsUTF8ToCharset(legdest, utf8japan, 1024, CUPS_WINDOWS_932) < 0) { puts("FAIL"); errors ++; } else { for (legptr = legdest; *legptr && *legptr != '?'; legptr ++); if (*legptr) { puts("FAIL (unknown character)"); errors ++; } else puts("PASS"); } fputs("cupsCharsetToUTF8(CUPS_WINDOWS_932): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_WINDOWS_932); if ((size_t)len != strlen((char *)utf8japan)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8japan)); print_utf8(" utf8japan", utf8japan); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8japan, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8japan", utf8japan); print_utf8(" utf8dest", utf8dest); errors ++; } else puts("PASS"); /* * Test UTF-8 to/from legacy charset (EUC-JP)... */ fputs("cupsUTF8ToCharset(CUPS_EUC_JP): ", stdout); if (cupsUTF8ToCharset(legdest, utf8japan, 1024, CUPS_EUC_JP) < 0) { puts("FAIL"); errors ++; } else { for (legptr = legdest; *legptr && *legptr != '?'; legptr ++); if (*legptr) { puts("FAIL (unknown character)"); errors ++; } else puts("PASS"); } #if !defined(__linux__) && !defined(__GLIBC__) fputs("cupsCharsetToUTF8(CUPS_EUC_JP): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_EUC_JP); if ((size_t)len != strlen((char *)utf8japan)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8japan)); print_utf8(" utf8japan", utf8japan); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8japan, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8japan", utf8japan); print_utf8(" utf8dest", utf8dest); errors ++; } else puts("PASS"); #endif /* !__linux && !__GLIBC__ */ /* * Test UTF-8 to/from legacy charset (Windows 950)... */ fputs("cupsUTF8ToCharset(CUPS_WINDOWS_950): ", stdout); if (cupsUTF8ToCharset(legdest, utf8taiwan, 1024, CUPS_WINDOWS_950) < 0) { puts("FAIL"); errors ++; } else { for (legptr = legdest; *legptr && *legptr != '?'; legptr ++); if (*legptr) { puts("FAIL (unknown character)"); errors ++; } else puts("PASS"); } fputs("cupsCharsetToUTF8(CUPS_WINDOWS_950): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_WINDOWS_950); if ((size_t)len != strlen((char *)utf8taiwan)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8taiwan)); print_utf8(" utf8taiwan", utf8taiwan); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8taiwan, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8taiwan", utf8taiwan); print_utf8(" utf8dest", utf8dest); errors ++; } else puts("PASS"); /* * Test UTF-8 to/from legacy charset (EUC-TW)... */ fputs("cupsUTF8ToCharset(CUPS_EUC_TW): ", stdout); if (cupsUTF8ToCharset(legdest, utf8taiwan, 1024, CUPS_EUC_TW) < 0) { puts("FAIL"); errors ++; } else { for (legptr = legdest; *legptr && *legptr != '?'; legptr ++); if (*legptr) { puts("FAIL (unknown character)"); errors ++; } else puts("PASS"); } fputs("cupsCharsetToUTF8(CUPS_EUC_TW): ", stdout); strlcpy(legsrc, legdest, sizeof(legsrc)); len = cupsCharsetToUTF8(utf8dest, legsrc, 1024, CUPS_EUC_TW); if ((size_t)len != strlen((char *)utf8taiwan)) { printf("FAIL (len=%d, expected %d)\n", len, (int)strlen((char *)utf8taiwan)); print_utf8(" utf8taiwan", utf8taiwan); print_utf8(" utf8dest", utf8dest); errors ++; } else if (memcmp(utf8taiwan, utf8dest, (size_t)len)) { puts("FAIL (results do not match)"); print_utf8(" utf8taiwan", utf8taiwan); print_utf8(" utf8dest", utf8dest); errors ++; } else puts("PASS"); #if 0 /* * Test UTF-8 (16-bit) to UTF-32 (w/ BOM)... */ if (verbose) printf("\ntesti18n: Testing UTF-8 to UTF-32 (w/ BOM)...\n"); len = cupsUTF8ToUTF32(utf32dest, utf8good, 1024); if (len < 0) return (1); if (verbose) { print_utf8(" utf8good ", utf8good); print_utf32(" utf32dest", utf32dest); } memcpy(utf32src, utf32dest, (len + 1) * sizeof(cups_utf32_t)); len = cupsUTF32ToUTF8(utf8dest, utf32src, 1024); if (len < 0) return (1); if (len != strlen ((char *) utf8good)) return (1); if (memcmp(utf8good, utf8dest, len) != 0) return (1); /* * Test invalid UTF-8 (16-bit) to UTF-32 (w/ BOM)... */ if (verbose) printf("\ntesti18n: Testing UTF-8 bad 16-bit source string...\n"); len = cupsUTF8ToUTF32(utf32dest, utf8bad, 1024); if (len >= 0) return (1); if (verbose) print_utf8(" utf8bad ", utf8bad); /* * Test _cupsCharmapFlush()... */ if (verbose) printf("\ntesti18n: Testing _cupsCharmapFlush()...\n"); _cupsCharmapFlush(); return (0); #endif /* 0 */ return (errors > 0); } /* * 'print_utf8()' - Print UTF-8 string with (optional) message. */ static void print_utf8(const char *msg, /* I - Message String */ const cups_utf8_t *src) /* I - UTF-8 Source String */ { const char *prefix; /* Prefix string */ if (msg) printf("%s:", msg); for (prefix = " "; *src; src ++) { printf("%s%02x", prefix, *src); if ((src[0] & 0x80) && (src[1] & 0x80)) prefix = ""; else prefix = " "; } putchar('\n'); } cups-2.4.7/cups/testhttp.c0000644000175000017500000006527614502571342015376 0ustar zdohnalzdohnal/* * HTTP test program for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" /* * Types and structures... */ typedef struct uri_test_s /**** URI test cases ****/ { http_uri_status_t result; /* Expected return value */ const char *uri, /* URI */ *scheme, /* Scheme string */ *username, /* Username:password string */ *hostname, /* Hostname string */ *resource; /* Resource string */ int port, /* Port number */ assemble_port; /* Port number for httpAssembleURI() */ http_uri_coding_t assemble_coding;/* Coding for httpAssembleURI() */ } uri_test_t; /* * Local globals... */ static uri_test_t uri_tests[] = /* URI test data */ { /* Start with valid URIs */ { HTTP_URI_STATUS_OK, "file:/filename", "file", "", "", "/filename", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "file:/filename%20with%20spaces", "file", "", "", "/filename with spaces", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "file:///filename", "file", "", "", "/filename", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "file:///filename%20with%20spaces", "file", "", "", "/filename with spaces", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "file://localhost/filename", "file", "", "localhost", "/filename", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "file://localhost/filename%20with%20spaces", "file", "", "localhost", "/filename with spaces", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://server/", "http", "", "server", "/", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://username@server/", "http", "username", "server", "/", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://username:passwor%64@server/", "http", "username:password", "server", "/", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://username:passwor%64@server:8080/", "http", "username:password", "server", "/", 8080, 8080, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://username:passwor%64@server:8080/directory/filename", "http", "username:password", "server", "/directory/filename", 8080, 8080, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "http://[2000::10:100]:631/ipp", "http", "", "2000::10:100", "/ipp", 631, 631, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "https://username:passwor%64@server/directory/filename", "https", "username:password", "server", "/directory/filename", 443, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "ipp://username:passwor%64@[::1]/ipp", "ipp", "username:password", "::1", "/ipp", 631, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "lpd://server/queue?reserve=yes", "lpd", "", "server", "/queue?reserve=yes", 515, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "mailto:user@domain.com", "mailto", "", "", "user@domain.com", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "socket://server/", "socket", "", "server", "/", 9100, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "socket://192.168.1.1:9101/", "socket", "", "192.168.1.1", "/", 9101, 9101, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "tel:8005551212", "tel", "", "", "8005551212", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "ipp://username:password@[v1.fe80::200:1234:5678:9abc+eth0]:999/ipp", "ipp", "username:password", "fe80::200:1234:5678:9abc%eth0", "/ipp", 999, 999, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "ipp://username:password@[fe80::200:1234:5678:9abc%25eth0]:999/ipp", "ipp", "username:password", "fe80::200:1234:5678:9abc%eth0", "/ipp", 999, 999, (http_uri_coding_t)(HTTP_URI_CODING_MOST | HTTP_URI_CODING_RFC6874) }, { HTTP_URI_STATUS_OK, "http://server/admin?DEVICE_URI=usb://HP/Photosmart%25202600%2520series?serial=MY53OK70V10400", "http", "", "server", "/admin?DEVICE_URI=usb://HP/Photosmart%25202600%2520series?serial=MY53OK70V10400", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "lpd://Acme%20Laser%20(01%3A23%3A45).local._tcp._printer/", "lpd", "", "Acme Laser (01:23:45).local._tcp._printer", "/", 515, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "ipp://HP%20Officejet%204500%20G510n-z%20%40%20Will's%20MacBook%20Pro%2015%22._ipp._tcp.local./", "ipp", "", "HP Officejet 4500 G510n-z @ Will's MacBook Pro 15\"._ipp._tcp.local.", "/", 631, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_OK, "ipp://%22%23%2F%3A%3C%3E%3F%40%5B%5C%5D%5E%60%7B%7C%7D/", "ipp", "", "\"#/:<>?@[\\]^`{|}", "/", 631, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_UNKNOWN_SCHEME, "smb://server/Some%20Printer", "smb", "", "server", "/Some Printer", 0, 0, HTTP_URI_CODING_ALL }, /* Missing scheme */ { HTTP_URI_STATUS_MISSING_SCHEME, "/path/to/file/index.html", "file", "", "", "/path/to/file/index.html", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_MISSING_SCHEME, "//server/ipp", "ipp", "", "server", "/ipp", 631, 0, HTTP_URI_CODING_MOST }, /* Unknown scheme */ { HTTP_URI_STATUS_UNKNOWN_SCHEME, "vendor://server/resource", "vendor", "", "server", "/resource", 0, 0, HTTP_URI_CODING_MOST }, /* Missing resource */ { HTTP_URI_STATUS_MISSING_RESOURCE, "socket://[::192.168.2.1]", "socket", "", "::192.168.2.1", "/", 9100, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_MISSING_RESOURCE, "socket://192.168.1.1:9101", "socket", "", "192.168.1.1", "/", 9101, 0, HTTP_URI_CODING_MOST }, /* Bad URI */ { HTTP_URI_STATUS_BAD_URI, "", "", "", "", "", 0, 0, HTTP_URI_CODING_MOST }, /* Bad scheme */ { HTTP_URI_STATUS_BAD_SCHEME, "://server/ipp", "", "", "", "", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_SCHEME, "bad_scheme://server/resource", "", "", "", "", 0, 0, HTTP_URI_CODING_MOST }, /* Bad username */ { HTTP_URI_STATUS_BAD_USERNAME, "http://username:passwor%6@server/resource", "http", "", "", "", 80, 0, HTTP_URI_CODING_MOST }, /* Bad hostname */ { HTTP_URI_STATUS_BAD_HOSTNAME, "http://[/::1]/index.html", "http", "", "", "", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_HOSTNAME, "http://[", "http", "", "", "", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_HOSTNAME, "http://serve%7/index.html", "http", "", "", "", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_HOSTNAME, "http://server with spaces/index.html", "http", "", "", "", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_HOSTNAME, "ipp://\"#/:<>?@[\\]^`{|}/", "ipp", "", "", "", 631, 0, HTTP_URI_CODING_MOST }, /* Bad port number */ { HTTP_URI_STATUS_BAD_PORT, "http://127.0.0.1:9999a/index.html", "http", "", "127.0.0.1", "", 0, 0, HTTP_URI_CODING_MOST }, /* Bad resource */ { HTTP_URI_STATUS_BAD_RESOURCE, "mailto:\r\nbla", "mailto", "", "", "", 0, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_RESOURCE, "http://server/index.html%", "http", "", "server", "", 80, 0, HTTP_URI_CODING_MOST }, { HTTP_URI_STATUS_BAD_RESOURCE, "http://server/index with spaces.html", "http", "", "server", "", 80, 0, HTTP_URI_CODING_MOST } }; static const char * const base64_tests[][2] = { { "A", "QQ==" }, /* 010000 01 */ { "AB", "QUI=" }, /* 010000 010100 0010 */ { "ABC", "QUJD" }, /* 010000 010100 001001 000011 */ { "ABCD", "QUJDRA==" }, /* 010000 010100 001001 000011 010001 00 */ { "ABCDE", "QUJDREU=" }, /* 010000 010100 001001 000011 010001 000100 0101 */ { "ABCDEF", "QUJDREVG" }, /* 010000 010100 001001 000011 010001 000100 010101 000110 */ }; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i, j, k; /* Looping vars */ http_t *http; /* HTTP connection */ http_encryption_t encryption; /* Encryption type */ http_status_t status; /* Status of GET command */ int failures; /* Number of test failures */ char buffer[8192]; /* Input buffer */ long bytes; /* Number of bytes read */ FILE *out; /* Output file */ char encode[256], /* Base64-encoded string */ decode[256]; /* Base64-decoded string */ int decodelen; /* Length of decoded string */ char scheme[HTTP_MAX_URI], /* Scheme from URI */ hostname[HTTP_MAX_URI], /* Hostname from URI */ username[HTTP_MAX_URI], /* Username:password from URI */ resource[HTTP_MAX_URI]; /* Resource from URI */ int port; /* Port number from URI */ http_uri_status_t uri_status; /* Status of URI separation */ http_addrlist_t *addrlist, /* Address list */ *addr; /* Current address */ off_t length, total; /* Length and total bytes */ time_t start, current; /* Start and end time */ const char *encoding; /* Negotiated Content-Encoding */ static const char * const uri_status_strings[] = { "HTTP_URI_STATUS_OVERFLOW", "HTTP_URI_STATUS_BAD_ARGUMENTS", "HTTP_URI_STATUS_BAD_RESOURCE", "HTTP_URI_STATUS_BAD_PORT", "HTTP_URI_STATUS_BAD_HOSTNAME", "HTTP_URI_STATUS_BAD_USERNAME", "HTTP_URI_STATUS_BAD_SCHEME", "HTTP_URI_STATUS_BAD_URI", "HTTP_URI_STATUS_OK", "HTTP_URI_STATUS_MISSING_SCHEME", "HTTP_URI_STATUS_UNKNOWN_SCHEME", "HTTP_URI_STATUS_MISSING_RESOURCE" }; /* * Do API tests if we don't have a URL on the command-line... */ if (argc == 1) { failures = 0; /* * httpGetDateString()/httpGetDateTime() */ fputs("httpGetDateString()/httpGetDateTime(): ", stdout); start = time(NULL); strlcpy(buffer, httpGetDateString(start), sizeof(buffer)); current = httpGetDateTime(buffer); i = (int)(current - start); if (i < 0) i = -i; if (!i) puts("PASS"); else { failures ++; puts("FAIL"); printf(" Difference is %d seconds, %02d:%02d:%02d...\n", i, i / 3600, (i / 60) % 60, i % 60); printf(" httpGetDateString(%d) returned \"%s\"\n", (int)start, buffer); printf(" httpGetDateTime(\"%s\") returned %d\n", buffer, (int)current); printf(" httpGetDateString(%d) returned \"%s\"\n", (int)current, httpGetDateString(current)); } /* * httpDecode64_2()/httpEncode64_2() */ fputs("httpDecode64_2()/httpEncode64_2(): ", stdout); for (i = 0, j = 0; i < (int)(sizeof(base64_tests) / sizeof(base64_tests[0])); i ++) { httpEncode64_2(encode, sizeof(encode), base64_tests[i][0], (int)strlen(base64_tests[i][0])); decodelen = (int)sizeof(decode); httpDecode64_2(decode, &decodelen, base64_tests[i][1]); if (strcmp(decode, base64_tests[i][0])) { failures ++; if (j) { puts("FAIL"); j = 1; } printf(" httpDecode64_2() returned \"%s\", expected \"%s\"...\n", decode, base64_tests[i][0]); } if (strcmp(encode, base64_tests[i][1])) { failures ++; if (j) { puts("FAIL"); j = 1; } printf(" httpEncode64_2() returned \"%s\", expected \"%s\"...\n", encode, base64_tests[i][1]); } } if (!j) puts("PASS"); #if 0 /* * _httpDigest() */ fputs("_httpDigest(MD5): ", stdout); if (!_httpDigest(buffer, sizeof(buffer), "MD5", "Mufasa", "http-auth@example.org", "Circle of Life", "7ypf/xlj9XXwfDPEoM4URrv/xwf94BcCAzFZH4GiTo0v", 1, "f2/wE4q74E6zIJEtWaHKaf5wv/H5QzzpXusqGemxURZJ", "auth", "GET", "/dir/index.html")) { failures ++; puts("FAIL (unable to calculate hash)"); } else if (strcmp(buffer, "8ca523f5e9506fed4657c9700eebdbec")) { failures ++; printf("FAIL (got \"%s\", expected \"8ca523f5e9506fed4657c9700eebdbec\")\n", buffer); } else puts("PASS"); fputs("_httpDigest(SHA-256): ", stdout); if (!_httpDigest(buffer, sizeof(buffer), "SHA-256", "Mufasa", "http-auth@example.org", "Circle of Life", "7ypf/xlj9XXwfDPEoM4URrv/xwf94BcCAzFZH4GiTo0v", 1, "f2/wE4q74E6zIJEtWaHKaf5wv/H5QzzpXusqGemxURZJ", "auth", "GET", "/dir/index.html")) { failures ++; puts("FAIL (unable to calculate hash)"); } else if (strcmp(buffer, "753927fa0e85d155564e2e272a28d1802ca10daf4496794697cf8db5856cb6c1")) { failures ++; printf("FAIL (got \"%s\", expected \"753927fa0e85d155564e2e272a28d1802ca10daf4496794697cf8db5856cb6c1\")\n", buffer); } else puts("PASS"); #endif /* 0 */ /* * httpGetHostname() */ fputs("httpGetHostname(): ", stdout); if (httpGetHostname(NULL, hostname, sizeof(hostname))) printf("PASS (%s)\n", hostname); else { failures ++; puts("FAIL"); } /* * httpAddrGetList() */ printf("httpAddrGetList(%s): ", hostname); addrlist = httpAddrGetList(hostname, AF_UNSPEC, NULL); if (addrlist) { for (i = 0, addr = addrlist; addr; i ++, addr = addr->next) { char numeric[1024]; /* Numeric IP address */ httpAddrString(&(addr->addr), numeric, sizeof(numeric)); if (!strcmp(numeric, "UNKNOWN")) break; } if (addr) printf("FAIL (bad address for %s)\n", hostname); else printf("PASS (%d address(es) for %s)\n", i, hostname); httpAddrFreeList(addrlist); } else if (isdigit(hostname[0] & 255)) { puts("FAIL (ignored because hostname is numeric)"); } else { failures ++; puts("FAIL"); } /* * Test httpSeparateURI()... */ fputs("httpSeparateURI(): ", stdout); for (i = 0, j = 0; i < (int)(sizeof(uri_tests) / sizeof(uri_tests[0])); i ++) { uri_status = httpSeparateURI(HTTP_URI_CODING_MOST, uri_tests[i].uri, scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (uri_status != uri_tests[i].result || strcmp(scheme, uri_tests[i].scheme) || strcmp(username, uri_tests[i].username) || strcmp(hostname, uri_tests[i].hostname) || port != uri_tests[i].port || strcmp(resource, uri_tests[i].resource)) { failures ++; if (!j) { puts("FAIL"); j = 1; } printf(" \"%s\":\n", uri_tests[i].uri); if (uri_status != uri_tests[i].result) printf(" Returned %s instead of %s\n", uri_status_strings[uri_status + 8], uri_status_strings[uri_tests[i].result + 8]); if (strcmp(scheme, uri_tests[i].scheme)) printf(" Scheme \"%s\" instead of \"%s\"\n", scheme, uri_tests[i].scheme); if (strcmp(username, uri_tests[i].username)) printf(" Username \"%s\" instead of \"%s\"\n", username, uri_tests[i].username); if (strcmp(hostname, uri_tests[i].hostname)) printf(" Hostname \"%s\" instead of \"%s\"\n", hostname, uri_tests[i].hostname); if (port != uri_tests[i].port) printf(" Port %d instead of %d\n", port, uri_tests[i].port); if (strcmp(resource, uri_tests[i].resource)) printf(" Resource \"%s\" instead of \"%s\"\n", resource, uri_tests[i].resource); } } if (!j) printf("PASS (%d URIs tested)\n", (int)(sizeof(uri_tests) / sizeof(uri_tests[0]))); /* * Test httpAssembleURI()... */ fputs("httpAssembleURI(): ", stdout); for (i = 0, j = 0, k = 0; i < (int)(sizeof(uri_tests) / sizeof(uri_tests[0])); i ++) if (uri_tests[i].result == HTTP_URI_STATUS_OK && !strstr(uri_tests[i].uri, "%64") && strstr(uri_tests[i].uri, "//")) { k ++; uri_status = httpAssembleURI(uri_tests[i].assemble_coding, buffer, sizeof(buffer), uri_tests[i].scheme, uri_tests[i].username, uri_tests[i].hostname, uri_tests[i].assemble_port, uri_tests[i].resource); if (uri_status != HTTP_URI_STATUS_OK) { failures ++; if (!j) { puts("FAIL"); j = 1; } printf(" \"%s\": %s\n", uri_tests[i].uri, uri_status_strings[uri_status + 8]); } else if (strcmp(buffer, uri_tests[i].uri)) { failures ++; if (!j) { puts("FAIL"); j = 1; } printf(" \"%s\": assembled = \"%s\"\n", uri_tests[i].uri, buffer); } } if (!j) printf("PASS (%d URIs tested)\n", k); /* * httpAssembleUUID */ fputs("httpAssembleUUID: ", stdout); httpAssembleUUID("hostname.example.com", 631, "printer", 12345, buffer, sizeof(buffer)); if (strncmp(buffer, "urn:uuid:", 9)) { printf("FAIL (%s)\n", buffer); failures ++; } else printf("PASS (%s)\n", buffer); /* * Show a summary and return... */ if (failures) printf("\n%d TESTS FAILED!\n", failures); else puts("\nALL TESTS PASSED!"); return (failures); } else if (strstr(argv[1], "._tcp")) { /* * Test resolving an mDNS name. */ char resolved[1024]; /* Resolved URI */ printf("_httpResolveURI(%s, _HTTP_RESOLVE_DEFAULT): ", argv[1]); fflush(stdout); if (!_httpResolveURI(argv[1], resolved, sizeof(resolved), _HTTP_RESOLVE_DEFAULT, NULL, NULL)) { puts("FAIL"); return (1); } else printf("PASS (%s)\n", resolved); printf("_httpResolveURI(%s, _HTTP_RESOLVE_FQDN): ", argv[1]); fflush(stdout); if (!_httpResolveURI(argv[1], resolved, sizeof(resolved), _HTTP_RESOLVE_FQDN, NULL, NULL)) { puts("FAIL"); return (1); } else if (strstr(resolved, ".local:")) { printf("FAIL (%s)\n", resolved); return (1); } else { printf("PASS (%s)\n", resolved); return (0); } } else if (!strcmp(argv[1], "-u") && argc == 3) { /* * Test URI separation... */ uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, argv[2], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); printf("uri_status = %s\n", uri_status_strings[uri_status + 8]); printf("scheme = \"%s\"\n", scheme); printf("username = \"%s\"\n", username); printf("hostname = \"%s\"\n", hostname); printf("port = %d\n", port); printf("resource = \"%s\"\n", resource); return (0); } /* * Test HTTP GET requests... */ http = NULL; out = stdout; for (i = 1; i < argc; i ++) { int new_auth; if (!strcmp(argv[i], "-o")) { i ++; if (i >= argc) break; out = fopen(argv[i], "wb"); continue; } httpSeparateURI(HTTP_URI_CODING_MOST, argv[i], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (!_cups_strcasecmp(scheme, "https") || !_cups_strcasecmp(scheme, "ipps") || port == 443) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = HTTP_ENCRYPTION_IF_REQUESTED; http = httpConnect2(hostname, port, NULL, AF_UNSPEC, encryption, 1, 30000, NULL); if (http == NULL) { perror(hostname); continue; } if (httpIsEncrypted(http)) { cups_array_t *creds; char info[1024]; static const char *trusts[] = { "OK", "Invalid", "Changed", "Expired", "Renewed", "Unknown" }; if (!httpCopyCredentials(http, &creds)) { cups_array_t *lcreds; http_trust_t trust = httpCredentialsGetTrust(creds, hostname); httpCredentialsString(creds, info, sizeof(info)); printf("Count: %d\n", cupsArrayCount(creds)); printf("Trust: %s\n", trusts[trust]); printf("Expiration: %s\n", httpGetDateString(httpCredentialsGetExpiration(creds))); printf("IsValidName: %d\n", httpCredentialsAreValidForName(creds, hostname)); printf("String: \"%s\"\n", info); printf("LoadCredentials: %d\n", httpLoadCredentials(NULL, &lcreds, hostname)); httpCredentialsString(lcreds, info, sizeof(info)); printf(" Count: %d\n", cupsArrayCount(lcreds)); printf(" String: \"%s\"\n", info); if (lcreds && cupsArrayCount(creds) == cupsArrayCount(lcreds)) { http_credential_t *cred, *lcred; for (i = 1, cred = (http_credential_t *)cupsArrayFirst(creds), lcred = (http_credential_t *)cupsArrayFirst(lcreds); cred && lcred; i ++, cred = (http_credential_t *)cupsArrayNext(creds), lcred = (http_credential_t *)cupsArrayNext(lcreds)) { if (cred->datalen != lcred->datalen) printf(" Credential #%d: Different lengths (saved=%d, current=%d)\n", i, (int)cred->datalen, (int)lcred->datalen); else if (memcmp(cred->data, lcred->data, cred->datalen)) printf(" Credential #%d: Different data\n", i); else printf(" Credential #%d: Matches\n", i); } } if (trust != HTTP_TRUST_OK) { printf("SaveCredentials: %d\n", httpSaveCredentials(NULL, creds, hostname)); trust = httpCredentialsGetTrust(creds, hostname); printf("New Trust: %s\n", trusts[trust]); } httpFreeCredentials(creds); } else puts("No credentials!"); } printf("Checking file \"%s\"...\n", resource); new_auth = 0; do { if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { httpClearFields(http); if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } } if (http->authstring && !strncmp(http->authstring, "Digest ", 7) && !new_auth) _httpSetDigestAuthString(http, http->nextnonce, "HEAD", resource); httpClearFields(http); httpSetField(http, HTTP_FIELD_AUTHORIZATION, httpGetAuthString(http)); httpSetField(http, HTTP_FIELD_ACCEPT_LANGUAGE, "en"); if (httpHead(http, resource)) { if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } else { status = HTTP_STATUS_UNAUTHORIZED; continue; } } while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE); new_auth = 0; if (status == HTTP_STATUS_UNAUTHORIZED) { /* * Flush any error message... */ httpFlush(http); /* * See if we can do authentication... */ new_auth = 1; if (cupsDoAuthentication(http, "HEAD", resource)) { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break; } if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } continue; } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* Flush any error message... */ httpFlush(http); /* Reconnect... */ if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } /* Upgrade with encryption... */ httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); /* Try again, this time with encryption enabled... */ continue; } #endif /* HAVE_TLS */ } while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED); if (status == HTTP_STATUS_OK) puts("HEAD OK:"); else printf("HEAD failed with status %d...\n", status); encoding = httpGetContentEncoding(http); printf("Requesting file \"%s\" (Accept-Encoding: %s)...\n", resource, encoding ? encoding : "identity"); new_auth = 0; do { if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { httpClearFields(http); if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } } if (http->authstring && !strncmp(http->authstring, "Digest ", 7) && !new_auth) _httpSetDigestAuthString(http, http->nextnonce, "GET", resource); httpClearFields(http); httpSetField(http, HTTP_FIELD_AUTHORIZATION, httpGetAuthString(http)); httpSetField(http, HTTP_FIELD_ACCEPT_LANGUAGE, "en"); httpSetField(http, HTTP_FIELD_ACCEPT_ENCODING, encoding); if (httpGet(http, resource)) { if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } else { status = HTTP_STATUS_UNAUTHORIZED; continue; } } while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE); new_auth = 0; if (status == HTTP_STATUS_UNAUTHORIZED) { /* * Flush any error message... */ httpFlush(http); /* * See if we can do authentication... */ new_auth = 1; if (cupsDoAuthentication(http, "GET", resource)) { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break; } if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } continue; } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* Flush any error message... */ httpFlush(http); /* Reconnect... */ if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } /* Upgrade with encryption... */ httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); /* Try again, this time with encryption enabled... */ continue; } #endif /* HAVE_TLS */ } while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED); if (status == HTTP_STATUS_OK) puts("GET OK:"); else printf("GET failed with status %d...\n", status); start = time(NULL); length = httpGetLength2(http); total = 0; while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) { total += bytes; fwrite(buffer, (size_t)bytes, 1, out); if (out != stdout) { current = time(NULL); if (current == start) current ++; printf("\r" CUPS_LLFMT "/" CUPS_LLFMT " bytes (" CUPS_LLFMT " bytes/sec) ", CUPS_LLCAST total, CUPS_LLCAST length, CUPS_LLCAST (total / (current - start))); fflush(stdout); } } } if (out != stdout) putchar('\n'); puts("Closing connection to server..."); httpClose(http); if (out != stdout) fclose(out); return (0); } cups-2.4.7/cups/testgetdests.c0000644000175000017500000000177514502571342016233 0ustar zdohnalzdohnal/* * CUPS cupsGetDests API test program for CUPS. * * Copyright 2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include "cups.h" #include /* * 'main()' - Loop calling cupsGetDests. */ int /* O - Exit status */ main(void) { int num_dests; /* Number of destinations */ cups_dest_t *dests; /* Destinations */ struct timeval start, end; /* Start and stop time */ double secs; /* Total seconds to run cupsGetDests */ for (;;) { gettimeofday(&start, NULL); num_dests = cupsGetDests(&dests); gettimeofday(&end, NULL); secs = end.tv_sec - start.tv_sec + 0.000001 * (end.tv_usec - start.tv_usec); printf("Found %d printers in %.3f seconds...\n", num_dests, secs); cupsFreeDests(num_dests, dests); sleep(1); } return (0); } cups-2.4.7/cups/testfile.txt0000644000175000017500000007534414502571342015730 0ustar zdohnalzdohnalLorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi faucibus viverra nibh ut molestie. Sed aliquet vestibulum dignissim. Praesent dignissim mauris arcu. Donec porta velit quis nibh rutrum sollicitudin. Aliquam vel tellus vulputate, sollicitudin turpis in, luctus quam. Donec hendrerit enim dignissim varius tincidunt. Phasellus mi felis, ultrices nec magna in, ultrices interdum justo. Nulla aliquam sem ac porta tincidunt. Praesent nec fermentum mauris. Suspendisse ullamcorper mauris orci, eu ornare dui mollis quis. In vitae lorem id nulla pellentesque sagittis. Duis aliquet ligula nisl, sed mollis sapien commodo nec. Etiam placerat arcu turpis, eget viverra magna ultrices sed. Nullam dapibus urna et tristique consectetur. Curabitur iaculis nisl lobortis condimentum accumsan. Praesent sagittis purus nunc, vitae bibendum leo ornare a. Maecenas neque mauris, mollis a sem ut, rhoncus posuere orci. Aliquam luctus suscipit erat ut semper. In neque augue, vulputate ornare massa fermentum, sodales faucibus mauris. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque mattis ante nunc, sit amet blandit felis cursus sed. Quisque pellentesque ipsum ac mauris fringilla, a rhoncus nunc lacinia. Vestibulum tempor orci ut nisl cursus, at euismod sem sodales. Integer ornare tellus at sapien tincidunt ultrices. Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer placerat eleifend magna, eget volutpat nibh vulputate eget. Donec cursus orci nisl, eget malesuada sem porta at. Sed maximus eleifend leo, posuere pellentesque urna viverra id. Aenean pharetra nunc ut suscipit aliquam. Sed dolor massa, ultrices sed sollicitudin nec, dapibus vitae tortor. Cras in scelerisque tellus. Sed eu felis vitae neque tempor eleifend vitae ac augue. Nunc felis ex, fringilla quis sapien vel, tempor congue nibh. Nullam placerat sit amet lacus quis facilisis. Sed semper nisi eget auctor semper. Phasellus sodales tempus massa ut suscipit. Integer malesuada convallis neque, sed pretium leo rhoncus ac. In hac habitasse platea dictumst. Nullam efficitur mollis lorem. Integer convallis lobortis dictum. Suspendisse euismod in mauris vel pharetra. Sed vitae magna ut turpis viverra rhoncus ut sit amet mauris. Nam vel lacinia metus. Proin ut elementum felis. Nullam massa velit, euismod vel metus eget, feugiat aliquet odio. Fusce venenatis lorem ut lectus ultricies, vitae accumsan nibh dictum. Maecenas porta euismod cursus. Nunc at ligula congue, lobortis quam id, volutpat felis. Proin blandit pulvinar ligula, at dapibus dui rutrum dictum. Etiam non finibus urna. Pellentesque semper pharetra arcu non dapibus. Vestibulum gravida dictum libero, quis dictum odio hendrerit sit amet. Aenean a venenatis ante, tincidunt convallis orci. Morbi tincidunt, orci vitae suscipit lacinia, nisl nunc rutrum ex, vitae convallis nulla libero ut mauris. Donec ac pellentesque sapien. Phasellus elementum orci a nisl feugiat tempus. Quisque id justo sed tellus ultricies porttitor. Fusce elementum mauris nunc. Nullam vel elit ultrices, rhoncus elit id, scelerisque erat. Pellentesque molestie efficitur purus, at malesuada orci efficitur et. Curabitur blandit nisi a ante viverra, vel ornare turpis molestie. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras scelerisque est non velit placerat, eu volutpat sem fermentum. Cras vitae gravida nisi, non vestibulum velit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras sollicitudin rutrum tincidunt. Pellentesque non nisl condimentum, commodo turpis non, fringilla ante. Nunc non ante vel est porttitor tempor sed vitae nunc. Donec bibendum orci justo, lobortis laoreet purus accumsan vel. Phasellus non posuere orci. In hac habitasse platea dictumst. Praesent nec mi sit amet urna ornare pulvinar faucibus at sem. Vestibulum vel cursus nisl, vel ultricies justo. Proin sed consequat odio, eget dignissim dolor. Fusce mattis porttitor nulla rutrum aliquet. Duis vehicula enim nec condimentum dignissim. Phasellus viverra ex at erat lacinia varius. Nullam rutrum felis ac lacus dignissim elementum quis sit amet felis. Phasellus eget sapien sit amet sapien maximus tincidunt elementum ut ante. Mauris dictum pulvinar diam ac lobortis. Duis vitae dui metus. Donec imperdiet risus vitae augue placerat ultrices. Integer euismod, sapien sit amet faucibus venenatis, nisl lacus rhoncus lacus, a auctor justo ante sed turpis. Integer facilisis est non venenatis hendrerit. Vivamus quis ante sodales, mollis turpis in, bibendum turpis. In hac habitasse platea dictumst. Phasellus nisl est, porta feugiat eros ut, scelerisque efficitur diam. Suspendisse sit amet magna libero. Quisque eu arcu vel orci iaculis sagittis nec id orci. Mauris mattis nunc id quam tristique pellentesque. Vestibulum vehicula, mauris ac venenatis lobortis, ex risus bibendum nunc, eu bibendum dolor metus vitae purus. Ut bibendum sed ante viverra tincidunt. Vestibulum id semper lacus. Fusce lacinia dignissim semper. Proin diam enim, pellentesque vel dui eu, maximus tincidunt mauris. Cras lorem lectus, malesuada non dui ac, iaculis elementum justo. Fusce fringilla tempor arcu. Proin vel turpis vitae purus facilisis dapibus condimentum sed ipsum. Duis mollis justo at ante convallis ornare. Suspendisse accumsan eleifend mauris, ut aliquet eros scelerisque eget. Proin ornare elit eu felis dapibus, sit amet posuere est porttitor. Vivamus tincidunt metus ac nisl pharetra, vel mollis neque egestas. Quisque turpis ligula, lacinia id suscipit eget, cursus eget mauris. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales, urna eget luctus congue, metus magna viverra nisl, ut eleifend nulla urna eu arcu. Pellentesque interdum interdum erat, et hendrerit arcu rhoncus ut. Nulla congue tortor nec egestas aliquam. Nulla elementum augue eu est imperdiet, nec maximus sapien ornare. Donec aliquam blandit felis, sed vulputate orci ultrices non. Vivamus rutrum dapibus ligula, non ullamcorper ante eleifend vel. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam sed lacus condimentum odio commodo tristique. Proin ultrices non tellus sit amet condimentum. Ut aliquam nulla eget viverra aliquet. Fusce aliquet orci nec finibus tempor. Etiam luctus eleifend diam vitae tempor. Fusce sagittis porttitor dignissim. Morbi euismod pellentesque mi vel malesuada. Praesent cursus rutrum diam sit amet auctor. Praesent non leo consequat, dapibus massa pellentesque, egestas nulla. Nulla efficitur luctus purus eu aliquet. Phasellus sed enim pharetra, molestie felis eget, tempor neque. Proin efficitur vestibulum libero ut hendrerit. Mauris vitae vestibulum augue, in pellentesque ligula. Phasellus at libero dictum, pretium mauris vitae, elementum ex. Pellentesque ut euismod orci. In ac elit vel nisl bibendum fermentum eget in dui. Donec fringilla, nisl vitae tincidunt varius, tellus sapien accumsan lectus, ac tincidunt eros ipsum nec libero. Sed mollis purus nec magna tempus, vitae laoreet purus luctus. Morbi accumsan, urna eget placerat volutpat, nunc magna mattis mi, vitae efficitur eros quam quis lacus. Etiam eros ligula, tempus vel consectetur non, consectetur quis risus. Phasellus venenatis lectus arcu, quis bibendum diam dignissim a. Donec tristique, felis quis dignissim tempor, justo sapien faucibus odio, at venenatis arcu purus et justo. Nunc vel ex a augue luctus pharetra ac ac turpis. Proin auctor turpis lobortis, scelerisque mi sit amet, elementum dui. Duis blandit arcu eros, eu dapibus enim imperdiet sed. Sed auctor urna sed lectus condimentum rhoncus. Mauris luctus dolor rhoncus suscipit semper. Sed molestie felis ut laoreet porta. Duis at purus viverra, faucibus elit eu, fringilla odio. Suspendisse sit amet sodales urna. In hac habitasse platea dictumst. Integer a sem sed augue sodales dictum. Quisque ut nisi pellentesque, lobortis lectus et, hendrerit eros. Phasellus posuere metus sit amet orci viverra vehicula. Nulla urna est, pellentesque in placerat ut, congue a ligula. Maecenas non viverra arcu. Vivamus fermentum odio tincidunt tellus tempus, ut suscipit justo hendrerit. Nunc quis sapien eget turpis mollis porta. Curabitur ultrices est molestie lacus finibus, vel sodales leo aliquam. Quisque ultrices semper porta. Nulla facilisi. Aenean nunc leo, ultrices quis augue non, hendrerit semper lectus. Nulla facilisi. In in volutpat tellus. Sed tincidunt efficitur sem, vel bibendum ex pharetra eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed nec erat at ipsum fringilla commodo eget eu est. Donec suscipit ligula eu ipsum lobortis tristique. Nulla dignissim nisi quis dignissim faucibus. Nunc finibus lacus eget est laoreet ultrices. Fusce molestie mattis facilisis. Fusce dictum blandit sem ac tincidunt. Suspendisse aliquam, dolor ac tincidunt scelerisque, lacus leo luctus quam, ac auctor ligula neque quis dolor. Maecenas laoreet viverra lectus, eget hendrerit urna congue ac. Donec convallis, erat ut consectetur ornare, diam diam accumsan lacus, at consectetur mauris nisi vitae massa. Vestibulum vestibulum dictum volutpat. Quisque et commodo velit. Praesent in odio nunc. Vivamus consectetur leo sem, sit amet auctor arcu blandit vitae. Donec non auctor mauris. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin nibh tellus, fermentum quis erat in, vulputate faucibus nunc. Vestibulum imperdiet ipsum purus, eget efficitur mi hendrerit vel. Aenean iaculis elementum metus nec consectetur. Suspendisse felis turpis, maximus sit amet diam at, elementum vestibulum nulla. Quisque et lacinia elit. Pellentesque tincidunt bibendum neque, non molestie massa ultrices eget. Duis scelerisque magna in blandit dictum. Pellentesque lacinia augue vitae fermentum mollis. Etiam mi velit, tempor at risus vel, luctus vestibulum odio. Phasellus vel ipsum sit amet velit malesuada hendrerit. Donec consequat laoreet enim. Aliquam sed justo eget ex rhoncus laoreet. Duis maximus tortor at odio suscipit, non accumsan arcu efficitur. Nunc pharetra id neque nec dignissim. Sed condimentum magna ut viverra porttitor. Pellentesque rutrum magna et pretium semper. Fusce tincidunt ipsum at auctor commodo. Duis et ipsum nec turpis pharetra pulvinar a nec risus. Praesent in enim et ligula maximus consectetur. Aenean nec turpis turpis. Quisque mollis dignissim elit, sit amet interdum urna venenatis sit amet. Quisque interdum, diam eu ullamcorper suscipit, augue purus fermentum purus, nec consequat purus nibh laoreet lectus. Ut nisi mauris, ultrices non euismod ac, mollis id libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras vitae tristique mi. Mauris ut bibendum dolor. Suspendisse potenti. Ut tempus ultricies erat, a molestie sapien aliquet non. Aliquam sagittis nisi vel enim rhoncus eleifend. Proin aliquam eros ut metus consectetur suscipit. Curabitur ornare mi eget faucibus aliquam. Praesent ultricies libero est, eget porttitor risus ornare nec. Curabitur pharetra ex ut eleifend lacinia. Nam nec finibus nunc. Sed hendrerit risus nisi, eu sollicitudin tellus sollicitudin nec. Proin vel est leo. Fusce et orci finibus, auctor purus eu, varius magna. Sed sollicitudin elit vitae turpis tincidunt, at suscipit lacus ultricies. Mauris pretium, nisi sed cursus ullamcorper, sem sem vulputate neque, a pellentesque lectus massa vel metus. Sed tincidunt iaculis lectus, non facilisis elit finibus at. Nunc odio purus, eleifend ac pretium nec, malesuada condimentum eros. Aenean interdum dolor et malesuada auctor. Donec placerat velit ex, vel cursus metus posuere sed. Phasellus rutrum nisl vel imperdiet egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam volutpat quam ut risus ultricies blandit. Mauris commodo ullamcorper pretium. Nam interdum lobortis eleifend. Fusce quam nisl, feugiat vitae dui non, egestas eleifend erat. Mauris in ligula purus. Morbi vel mollis diam. Praesent leo felis, luctus ac blandit sit amet, aliquam at enim. Duis sit amet augue enim. Donec feugiat ultricies neque, ut porttitor lectus sagittis ut. Sed ante sem, mollis ut dui quis, finibus rutrum justo. Phasellus ornare nibh ac scelerisque fringilla. Donec rhoncus luctus elit sed accumsan. Maecenas fermentum quam nec eros consequat, vitae sollicitudin elit facilisis. Phasellus urna metus, viverra at nibh ac, euismod fringilla mi. Aliquam nec odio neque. Duis pulvinar congue aliquam. Suspendisse laoreet bibendum sapien, non ultricies velit porta id. Vivamus dignissim rhoncus mi, sit amet mollis arcu cursus nec. Maecenas sagittis cursus dictum. Nam fermentum tincidunt pellentesque. Vivamus tempus tincidunt rutrum. Mauris semper orci non scelerisque accumsan. Nulla fermentum in lacus at aliquet. Proin ut ligula venenatis, maximus elit a, finibus felis. Nam euismod arcu vel diam laoreet, sed hendrerit urna pharetra. Phasellus non hendrerit tortor. Donec ut congue odio. Nunc pellentesque ipsum et est venenatis, sed vehicula magna convallis. Quisque eget euismod orci. In ut nulla ac augue auctor dapibus a vel arcu. Duis elementum, libero at ullamcorper consequat, libero nulla vestibulum elit, vel congue lacus nulla quis nulla. Nulla vel dolor vulputate, dictum nunc nec, pellentesque lacus. Nulla nibh mi, gravida vel velit vel, tempus dapibus magna. Mauris ornare elementum feugiat. Vestibulum non finibus lorem, a ullamcorper quam. Duis eget velit sodales, rhoncus odio nec, laoreet lorem. Donec fermentum est eu ornare placerat. Sed interdum metus ac metus hendrerit rhoncus. In molestie diam sem, et faucibus purus lacinia eu. Donec quam arcu, tempus ac commodo sit amet, porttitor sit amet urna. Suspendisse pellentesque placerat mi, at semper orci tincidunt non. Fusce ut mattis nisi. Pellentesque vel nisi quis massa volutpat aliquam vel nec tortor. Maecenas vitae risus quis nibh vestibulum rutrum. Vestibulum egestas dolor ullamcorper lorem placerat tincidunt. Curabitur massa urna, pharetra sed gravida vitae, venenatis a tellus. Duis condimentum lectus tellus, ut sodales ipsum hendrerit ac. Nullam sed accumsan arcu, ut sollicitudin diam. Integer eu ligula vitae purus vehicula vulputate nec et metus. Aenean mollis tempor lectus eu elementum. Integer in dui tempus, porttitor erat sed, malesuada magna. Cras nec orci sed tellus porta tristique a ac dui. Nam eu faucibus mi. Praesent condimentum laoreet augue id pellentesque. In malesuada ex sed turpis consectetur, non sodales mi cursus. Nunc id sem luctus, mattis lorem vel, tempus ipsum. Nunc efficitur augue et nunc hendrerit, non tincidunt magna commodo. Aenean sodales porta mi. Sed semper accumsan turpis vitae aliquam. Phasellus vitae ex faucibus, suscipit ante non, commodo ligula. Aliquam erat volutpat. Etiam odio sem, fringilla in sem eu, bibendum ornare est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec fringilla magna. Morbi eu cursus sem. Fusce euismod eget turpis et bibendum. Donec vel tincidunt neque. Suspendisse commodo euismod sodales. Integer pretium congue tortor nec ullamcorper. Nam imperdiet, urna auctor pretium facilisis, sem arcu malesuada turpis, sit amet sodales nisi lectus sollicitudin tellus. Praesent consequat leo in dui congue, euismod ornare risus malesuada. Nunc id tincidunt tortor. Vestibulum sit amet sapien urna. Donec quis tristique elit, non facilisis neque. Donec gravida molestie tellus, sagittis accumsan metus varius eu. Duis nec est vitae augue laoreet rhoncus non nec mi. Phasellus pretium pharetra magna, et congue urna posuere eget. Sed finibus arcu magna, sed luctus ante suscipit quis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce at accumsan quam. Mauris dolor lectus, tempus auctor ante ut, auctor maximus turpis. Proin pulvinar dolor in consectetur aliquam. Fusce sagittis elementum fermentum. Aliquam nec posuere ipsum. Nulla commodo est at magna fringilla lobortis. Etiam diam orci, venenatis non erat iaculis, commodo hendrerit diam. Nam imperdiet justo vitae massa consectetur, ornare feugiat ipsum molestie. Curabitur dignissim vitae augue et euismod. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent justo nunc, pellentesque vel ante vitae, dignissim maximus felis. Proin vel congue nisl. Quisque ac tempus libero. In at placerat tellus. Integer lobortis ligula vel dolor ornare finibus. Donec semper nisl mauris, eu consectetur lacus sollicitudin a. Integer sem enim, consectetur sed tincidunt id, dignissim at mauris. In a justo non erat cursus tincidunt et sed sapien. Aenean vulputate placerat ornare. Etiam id lectus lacus. Donec a sodales sapien. Duis in suscipit est, ultrices mollis magna. Etiam blandit diam vitae sollicitudin sodales. Proin vel diam nec neque ullamcorper ullamcorper ut at sapien. Sed quis sollicitudin libero. Nulla sed arcu consequat, egestas libero viverra, dignissim magna. Nullam semper turpis a sem tincidunt, ut molestie ante tincidunt. Curabitur efficitur nisl quis aliquam tristique. Proin a auctor lectus. Donec dictum mauris a leo consequat, eu bibendum neque efficitur. Donec euismod, mi nec faucibus ornare, elit est tincidunt ligula, at molestie neque augue non justo. Vestibulum condimentum varius felis non pretium. Praesent maximus ex sed justo tristique elementum. Phasellus nec feugiat dolor. Nulla sed odio quam. Nulla nec massa sit amet tellus efficitur accumsan sed et orci. Nullam sed mollis augue, eget dictum metus. Etiam ut velit elit. Nullam nibh eros, commodo vitae maximus sit amet, convallis sit amet elit. Nullam faucibus arcu tortor, vitae tincidunt augue ullamcorper in. Praesent quis metus et purus volutpat pulvinar. Sed commodo vehicula sodales. Phasellus fringilla vehicula placerat. Vestibulum sit amet ante in ante condimentum laoreet. Sed id purus diam. Suspendisse in libero in risus eleifend fringilla. Cras non sapien vel sapien condimentum tristique. Integer non semper mi, a aliquet enim. Phasellus congue erat sed lorem molestie consectetur. Integer iaculis nisi et nisi blandit auctor. Nullam magna diam, hendrerit sollicitudin urna vel, gravida congue diam. Curabitur finibus ipsum ex, ac feugiat massa posuere at. Pellentesque in molestie lorem. Fusce rhoncus velit at magna accumsan convallis. Aliquam posuere elementum turpis, eget eleifend quam auctor et. Mauris a diam vitae magna malesuada fermentum sit amet ut justo. Quisque in purus et erat rhoncus accumsan. Donec feugiat, ipsum vel pulvinar suscipit, nibh nisi volutpat felis, nec rutrum nisi turpis at diam. Suspendisse posuere, ante ut imperdiet tempor, tortor magna maximus risus, id fermentum urna mauris hendrerit magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut eu faucibus neque. Fusce tempus luctus dui ut ullamcorper. Suspendisse in velit a turpis facilisis scelerisque. Nullam ultricies sodales convallis. Proin viverra vulputate justo sit amet interdum. Donec mi neque, dapibus ac ex at, dignissim tincidunt lacus. Praesent ultricies, erat ac sagittis tempor, justo turpis porta tortor, eget consectetur turpis odio sed nibh. Vestibulum vitae porta lorem, efficitur viverra enim. Nullam sodales sagittis tristique. Duis ac velit ultrices, efficitur tortor sit amet, varius lacus. Praesent blandit et arcu sit amet tempus. Quisque neque lectus, congue at rutrum at, commodo eu velit. Aliquam sed mi a ante condimentum consectetur. Morbi feugiat risus dolor, ac auctor massa ultrices in. Praesent laoreet metus non urna rhoncus, vel lacinia ex dapibus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur vitae arcu vel enim feugiat rhoncus. Nullam nec neque sed nulla hendrerit iaculis sed non erat. Pellentesque orci lacus, ullamcorper posuere odio vel, efficitur elementum ipsum. Morbi justo risus, faucibus sit amet urna eu, facilisis consequat ipsum. Quisque et congue ipsum, at ornare lacus. Nunc laoreet elit nec arcu lobortis consectetur. Sed consectetur ultrices risus, quis tincidunt lectus fermentum at. Nunc libero sem, dignissim pharetra lacinia eu, posuere quis libero. Sed at lacus consectetur, molestie nisi quis, scelerisque tortor. Etiam accumsan placerat nulla, vel consectetur felis aliquam et. Cras pellentesque massa a ex commodo condimentum. Integer nec nulla sed metus dignissim placerat. Ut vel urna augue. Donec pharetra justo ac ex pretium, ut condimentum erat lacinia. Nunc id porta nunc, ac dapibus massa. Suspendisse accumsan justo quis felis pharetra tempus. Donec rutrum nulla in consectetur tincidunt. Sed eu orci eu ligula maximus aliquet eget sed ex. Donec rhoncus fringilla tellus, a bibendum mi placerat eu. Pellentesque luctus finibus neque blandit pharetra. Aenean nec elit pretium, sodales lacus sed, mollis felis. Duis commodo pellentesque risus et semper. Praesent pretium, libero pharetra fringilla faucibus, ipsum urna porta nunc, nec euismod dolor risus eget lacus. Curabitur malesuada dapibus tellus ut luctus. Aliquam gravida mauris tellus, ut vestibulum massa dignissim vestibulum. Sed pulvinar, ex et consequat malesuada, erat tellus bibendum mi, nec auctor nulla massa eu justo. Suspendisse imperdiet interdum ligula. Donec at pretium urna. Donec quis diam leo. Aenean ac lectus non justo aliquam consequat vitae mattis ipsum. Integer at consectetur felis, et volutpat sapien. Suspendisse efficitur libero eu pulvinar cursus. Suspendisse interdum enim id nibh imperdiet, et pulvinar lectus aliquet. Donec ultricies mattis lorem eget malesuada. Sed hendrerit massa in rutrum auctor. Suspendisse interdum mauris in sem vestibulum volutpat. Maecenas interdum facilisis dui, posuere volutpat eros suscipit eget. Curabitur blandit odio turpis, non dignissim magna varius sit amet. Suspendisse cursus ipsum id metus venenatis, eu malesuada arcu congue. Nulla vitae mi ut nibh pretium cursus in vitae turpis. In hac habitasse platea dictumst. Phasellus consectetur, metus at tempus sollicitudin, nibh est molestie nunc, sed imperdiet purus sapien in lorem. Etiam eget leo nec sem efficitur luctus. Vestibulum mattis a odio ut volutpat. Duis consequat magna eget luctus vulputate. Nam viverra posuere ultricies. Duis sagittis nunc et sem sagittis venenatis. Sed massa lacus, vestibulum eget convallis ac, facilisis nec turpis. Morbi ac ornare ex. Quisque non laoreet lectus, sed tempus libero. Sed non neque risus. Sed gravida, mauris ac aliquam porttitor, dolor massa faucibus est, eget vestibulum eros eros et risus. Morbi sit amet tincidunt eros, ut cursus mauris. Integer a lectus pharetra, molestie massa vel, laoreet sem. Suspendisse et enim libero. Nam molestie risus nec ex laoreet, a faucibus massa rhoncus. Vivamus faucibus sapien eget lorem efficitur auctor. Curabitur sit amet leo non massa tempor bibendum. Nunc in tristique est. Donec id mollis mauris, vel porta magna. Nulla vulputate eleifend lacus sed tincidunt. Maecenas vitae sapien eu neque hendrerit venenatis sit amet nec nulla. Morbi vestibulum dui lectus, id commodo dui vehicula eget. Nulla laoreet turpis vitae lacus vehicula lacinia. Integer rhoncus tellus mi, vitae gravida metus convallis quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris et accumsan sem. Sed elementum egestas tellus eget eleifend. Sed finibus luctus felis. Maecenas ultrices sodales orci non dapibus. Phasellus vitae lacus at diam ultrices mattis porta non ipsum. Aliquam erat volutpat. Vestibulum auctor diam vehicula gravida volutpat. In rhoncus, dui sit amet consequat convallis, odio mauris tincidunt mi, vestibulum imperdiet lacus erat sed metus. Aenean in augue eu tortor dictum tempor a ac magna. Mauris aliquet justo eget sem sollicitudin, congue facilisis velit mollis. Proin dignissim, nulla a efficitur fringilla, orci nulla malesuada velit, eget cursus dolor metus vitae nisl. Phasellus non neque ipsum. Pellentesque porta vehicula ipsum, nec posuere urna bibendum et. Etiam nec nisl eu nulla tempus placerat. Pellentesque risus magna, accumsan vitae sem vitae, cursus fermentum elit. Ut varius efficitur turpis, et pellentesque libero rutrum hendrerit. Maecenas condimentum lobortis eros, a euismod metus. Ut risus sapien, pulvinar quis euismod id, vestibulum ac erat. Donec feugiat tempor commodo. Donec ligula est, aliquet eu sagittis eu, posuere vel eros. Nullam sollicitudin diam eget libero malesuada, vel tempus lectus congue. Praesent a odio risus. Nullam maximus tellus sed ligula eleifend, sed mollis nunc consequat. Quisque eros mi, imperdiet nec ipsum in, pretium feugiat nibh. Pellentesque cursus justo at metus condimentum consectetur. Nulla facilisi. Ut tincidunt sem eget diam rhoncus, vitae gravida ipsum facilisis. Integer et condimentum purus. Sed faucibus tempus orci, id cursus eros volutpat non. Nam pulvinar ex nec enim egestas ultricies. Suspendisse at eros ac metus sodales varius eu in ante. Cras sed est quis magna tempus mollis id faucibus nibh. Curabitur convallis nisi dolor, in imperdiet ante tempor eu. Quisque placerat leo et leo cursus, nec eleifend urna scelerisque. Duis consequat ex a sapien facilisis consectetur. Vivamus et aliquam lacus. Praesent consequat lacus in aliquam ultricies. Sed consectetur vehicula aliquet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus tellus neque, eleifend sed purus quis, elementum luctus mi. Nullam elit lacus, finibus a sollicitudin in, suscipit non nunc. Nulla vulputate odio vitae mauris tristique, ac interdum urna interdum. Phasellus nec tortor hendrerit, mattis ante non, pharetra tortor. Pellentesque vitae tempor urna, ut gravida enim. Sed eget sem purus. Nunc semper quam mi, sed mollis ligula feugiat at. Pellentesque finibus augue risus, et ultricies lacus scelerisque vel. Proin euismod tortor quam, et cursus ipsum dictum ac. Suspendisse laoreet velit consequat ullamcorper cursus. Nam ultricies gravida viverra. Vivamus non sodales quam, eget rutrum quam. Suspendisse venenatis lorem sodales lectus eleifend, ac consequat odio finibus. Morbi id maximus metus, a molestie neque. Integer eget felis sit amet sem tempor placerat. Suspendisse lobortis congue justo eu accumsan. Nullam accumsan laoreet purus. Nulla quis efficitur risus. Ut ac leo libero. Nam nec nisi iaculis, ornare nunc fringilla, sodales lectus. Nulla laoreet mauris sodales, sagittis enim non, vestibulum orci. Fusce orci dui, dapibus nec ligula vitae, vulputate maximus ante. Mauris vitae felis tincidunt, ullamcorper neque quis, pulvinar nisl. Fusce ut augue ac nisl posuere tristique ac sed leo. Nunc pellentesque pretium turpis. Integer maximus rutrum felis, ut molestie mauris mattis non. Morbi ac risus ut mauris porta pharetra. Fusce mollis pharetra turpis nec consequat. Aenean tincidunt felis vel nulla porta, faucibus egestas ligula efficitur. Morbi et dictum velit. Proin scelerisque justo in tristique congue. Maecenas consequat ante dapibus justo vehicula pretium. Sed consequat turpis ac orci suscipit malesuada non a risus. In id leo molestie, venenatis risus quis, dignissim nulla. Nulla aliquet risus nulla, a convallis sem tincidunt ac. Pellentesque scelerisque, elit eu finibus eleifend, orci lectus egestas lorem, nec bibendum libero est non leo. Nullam nisl ante, ullamcorper in efficitur a, consectetur sit amet tellus. Ut et pellentesque eros. Etiam mattis nulla justo, sed ultricies dui commodo vel. Ut tristique posuere leo, ac facilisis massa lobortis nec. Quisque leo ligula, venenatis vel facilisis vel, volutpat ac sapien. Fusce sed porttitor urna. Phasellus tempus semper condimentum. Aliquam sit amet felis vel nulla porta luctus id vel leo. Ut ut odio tincidunt, ultrices enim at, pellentesque sem. Proin bibendum ligula lacus, ut tempus mauris tincidunt id. Praesent sollicitudin interdum tellus, vel tincidunt nisi ultrices a. Aliquam cursus faucibus elit, quis lacinia erat elementum eu. Duis sollicitudin lectus lectus, ut ultrices elit malesuada quis. Phasellus viverra turpis sit amet erat iaculis dapibus. Donec semper turpis sed risus pharetra pharetra. Donec ut ante ac orci blandit interdum. Pellentesque facilisis id purus egestas placerat. Suspendisse sit amet euismod velit, et rutrum ipsum. Maecenas at mi pulvinar, dignissim erat quis, blandit libero. Praesent quam tortor, tempus et laoreet nec, aliquet sed libero. Duis vestibulum est sed risus venenatis rhoncus. Phasellus arcu libero, commodo eget tincidunt non, aliquam in velit. Phasellus imperdiet ante a laoreet gravida. Cras faucibus semper nulla eu facilisis. Praesent non sem sem. Nulla tempus ullamcorper sollicitudin. Ut eget nisi eget augue fermentum consequat. Proin congue a nisi eget ullamcorper. Pellentesque luctus diam felis, a pharetra nunc cursus in. Vivamus a quam dolor. Curabitur fermentum elit sit amet purus ultricies, ut placerat nisl finibus. Nunc sed ligula diam. Ut efficitur risus tortor. Suspendisse sem elit, posuere sit amet nisi et, placerat tristique ipsum. Ut nunc ex, fermentum sed tempor vitae, scelerisque quis nulla. Duis ac aliquam lectus. Curabitur consequat maximus leo sed cursus. Maecenas cursus lectus non porttitor consectetur. Vivamus ultricies, lectus non tempor porttitor, turpis velit auctor leo, at auctor nibh justo ut mi. Vivamus interdum massa at fermentum cursus. Nulla suscipit purus nulla, vel condimentum eros rhoncus eget. Nulla malesuada aliquet maximus. Nulla blandit ipsum finibus leo rhoncus, non lobortis felis scelerisque. Duis blandit massa quis velit efficitur cursus. Aliquam nibh arcu, dictum et feugiat eget, iaculis ac risus. Nunc facilisis pellentesque mauris, a aliquet libero eleifend eu. Pellentesque a turpis et justo blandit maximus. Phasellus imperdiet dui odio, eu facilisis quam porttitor id. Morbi accumsan, mauris eget fermentum porta, mi risus sagittis nisi, in semper odio orci a magna. Praesent maximus accumsan odio, vitae bibendum ipsum ultrices eu. Vestibulum laoreet purus nec neque fringilla dignissim. Morbi interdum diam eget ornare vestibulum. Etiam egestas at ipsum eget dapibus. Nullam feugiat mi ex, et varius odio ornare id. Sed sagittis augue quam, in maximus orci tincidunt vel. Duis molestie felis nunc, et feugiat risus vestibulum et. Integer efficitur augue elit, id commodo lorem volutpat sed. Fusce quam velit, suscipit a posuere sit amet, pulvinar sed nisi. Fusce lacinia accumsan nunc vitae lobortis. Vivamus eu fringilla velit. Cras hendrerit efficitur faucibus. Praesent facilisis a nulla non efficitur. Etiam quis est ac neque pharetra bibendum a vitae neque. Phasellus dui dui, pellentesque in facilisis quis, vulputate non nibh. Integer in lobortis velit. Curabitur efficitur imperdiet dolor, vel tempus dui fermentum quis. Maecenas porttitor nibh at nibh cursus mattis. In dolor neque, efficitur at ligula nec, lobortis aliquam ipsum. Phasellus quam magna, imperdiet at nunc a, suscipit aliquam metus. Cras consequat, enim vitae feugiat venenatis, enim urna venenatis ligula, vel cursus odio lectus id purus. Integer sit amet finibus diam. Fusce aliquet vehicula mauris, a varius metus semper in. Cras sodales malesuada consectetur.cups-2.4.7/cups/testfile.c0000644000175000017500000004324614502571342015327 0ustar zdohnalzdohnal/* * File/directory test program for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "string-private.h" #include "debug-private.h" #include "file.h" #include "dir.h" #include #include #ifdef _WIN32 # include #else # include #endif /* _WIN32 */ #include /* * Local functions... */ static int count_lines(cups_file_t *fp); static int random_tests(void); static int read_write_tests(int compression); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int status; /* Exit status */ int i; /* Looping var */ char filename[1024]; /* Filename buffer */ cups_file_t *fp; /* File pointer */ #ifndef _WIN32 int fds[2]; /* Open file descriptors */ cups_file_t *fdfile; /* File opened with cupsFileOpenFd() */ #endif /* !_WIN32 */ int count; /* Number of lines in file */ if (argc == 1) { /* * Do uncompressed file tests... */ status = read_write_tests(0); #ifdef HAVE_LIBZ /* * Do compressed file tests... */ putchar('\n'); status += read_write_tests(1); #endif /* HAVE_LIBZ */ /* * Do uncompressed random I/O tests... */ status += random_tests(); #ifndef _WIN32 /* * Test fdopen and close without reading... */ pipe(fds); close(fds[1]); fputs("\ncupsFileOpenFd(fd, \"r\"): ", stdout); fflush(stdout); if ((fdfile = cupsFileOpenFd(fds[0], "r")) == NULL) { puts("FAIL"); status ++; } else { /* * Able to open file, now close without reading. If we don't return * before the alarm fires, that is a failure and we will crash on the * alarm signal... */ puts("PASS"); fputs("cupsFileClose(no read): ", stdout); fflush(stdout); alarm(5); cupsFileClose(fdfile); alarm(0); puts("PASS"); } #endif /* !_WIN32 */ /* * Count lines in test file, rewind, then count again. */ fputs("\ncupsFileOpen(\"testfile.txt\", \"r\"): ", stdout); if ((fp = cupsFileOpen("testfile.txt", "r")) == NULL) { puts("FAIL"); status ++; } else { puts("PASS"); fputs("cupsFileGets: ", stdout); if ((count = count_lines(fp)) != 477) { printf("FAIL (got %d lines, expected 477)\n", count); status ++; } else { puts("PASS"); fputs("cupsFileRewind: ", stdout); if (cupsFileRewind(fp) != 0) { puts("FAIL"); status ++; } else { puts("PASS"); fputs("cupsFileGets: ", stdout); if ((count = count_lines(fp)) != 477) { printf("FAIL (got %d lines, expected 477)\n", count); status ++; } else puts("PASS"); } } cupsFileClose(fp); } /* * Test path functions... */ fputs("\ncupsFileFind: ", stdout); #ifdef _WIN32 if (cupsFileFind("notepad.exe", "C:/WINDOWS", 1, filename, sizeof(filename)) && cupsFileFind("notepad.exe", "C:/WINDOWS;C:/WINDOWS/SYSTEM32", 1, filename, sizeof(filename))) #else if (cupsFileFind("cat", "/bin", 1, filename, sizeof(filename)) && cupsFileFind("cat", "/bin:/usr/bin", 1, filename, sizeof(filename))) #endif /* _WIN32 */ printf("PASS (%s)\n", filename); else { puts("FAIL"); status ++; } /* * Test directory functions... */ fputs("\nCreating test directory \"test.d\"...\n", stdout); fputs("mkdir(test.d): ", stdout); if (mkdir("test.d", 0777)) { printf("FAIL (%s)\n", strerror(errno)); status ++; } else { int num_files; // Number of files seen cups_dir_t *dir; // Directory pointer cups_dentry_t *dent; // Directory entry puts("PASS"); fputs("cupsDirOpen(test.d): ", stdout); if ((dir = cupsDirOpen("test.d")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); status ++; } else { puts("PASS"); fputs("cupsDirRead: ", stdout); if ((dent = cupsDirRead(dir)) != NULL) { printf("FAIL (Got '%s', expected NULL)\n", dent->filename); status ++; } else puts("PASS"); cupsDirClose(dir); } // Create some files... for (i = 0; i < 10; i ++) { snprintf(filename, sizeof(filename), "test.d/testfile%d.txt", i); printf("cupsFileOpen(%s): ", filename); if ((fp = cupsFileOpen(filename, "w")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); status ++; break; } else { puts("PASS"); cupsFilePuts(fp, "This is a test.\n"); cupsFileClose(fp); } } if (i >= 10) { fputs("cupsDirOpen(test.d): ", stdout); if ((dir = cupsDirOpen("test.d")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); status ++; } else { puts("PASS"); fputs("cupsDirRead: ", stdout); for (num_files = 0; (dent = cupsDirRead(dir)) != NULL; num_files ++) printf("%s ", dent->filename); if (num_files != 10) { printf("FAIL (Got %d files, expected 10)\n", num_files); status ++; } else puts("PASS"); cupsDirClose(dir); } } // Cleanup for (i = 0; i < 10; i ++) { snprintf(filename, sizeof(filename), "test.d/testfile%d.txt", i); unlink(filename); } rmdir("test.d"); } /* * Summarize the results and return... */ if (!status) puts("\nALL TESTS PASSED!"); else printf("\n%d TEST(S) FAILED!\n", status); } else { /* * Cat the filename on the command-line... */ char line[8192]; /* Line from file */ if ((fp = cupsFileOpen(argv[1], "r")) == NULL) { perror(argv[1]); status = 1; } else if (argc == 2) { status = 0; while (cupsFileGets(fp, line, sizeof(line))) puts(line); if (!cupsFileEOF(fp)) perror(argv[1]); cupsFileClose(fp); } else { status = 0; ssize_t bytes; while ((bytes = cupsFileRead(fp, line, sizeof(line))) > 0) printf("%s: %d bytes\n", argv[1], (int)bytes); if (cupsFileEOF(fp)) printf("%s: EOF\n", argv[1]); else perror(argv[1]); cupsFileClose(fp); } } return (status); } /* * 'count_lines()' - Count the number of lines in a file. */ static int /* O - Number of lines */ count_lines(cups_file_t *fp) /* I - File to read from */ { int count; /* Number of lines */ char line[1024]; /* Line buffer */ for (count = 0; cupsFileGets(fp, line, sizeof(line)); count ++); return (count); } /* * 'random_tests()' - Do random access tests. */ static int /* O - Status */ random_tests(void) { int status, /* Status of tests */ pass, /* Current pass */ count, /* Number of records read */ record, /* Current record */ num_records; /* Number of records */ off_t pos; /* Position in file */ ssize_t expected; /* Expected position in file */ cups_file_t *fp; /* File */ char buffer[512]; /* Data buffer */ /* * Run 4 passes, each time appending to a data file and then reopening the * file for reading to validate random records in the file. */ for (status = 0, pass = 0; pass < 4; pass ++) { /* * cupsFileOpen(append) */ printf("\ncupsFileOpen(append %d): ", pass); if ((fp = cupsFileOpen("testfile.dat", "a")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); status ++; break; } else puts("PASS"); /* * cupsFileTell() */ expected = 256 * (ssize_t)sizeof(buffer) * pass; fputs("cupsFileTell(): ", stdout); if ((pos = cupsFileTell(fp)) != (off_t)expected) { printf("FAIL (" CUPS_LLFMT " instead of " CUPS_LLFMT ")\n", CUPS_LLCAST pos, CUPS_LLCAST expected); status ++; break; } else puts("PASS"); /* * cupsFileWrite() */ fputs("cupsFileWrite(256 512-byte records): ", stdout); for (record = 0; record < 256; record ++) { memset(buffer, record, sizeof(buffer)); if (cupsFileWrite(fp, buffer, sizeof(buffer)) < (ssize_t)sizeof(buffer)) break; } if (record < 256) { printf("FAIL (%d: %s)\n", record, strerror(errno)); status ++; break; } else puts("PASS"); /* * cupsFileTell() */ expected += 256 * (ssize_t)sizeof(buffer); fputs("cupsFileTell(): ", stdout); if ((pos = cupsFileTell(fp)) != (off_t)expected) { printf("FAIL (" CUPS_LLFMT " instead of " CUPS_LLFMT ")\n", CUPS_LLCAST pos, CUPS_LLCAST expected); status ++; break; } else puts("PASS"); cupsFileClose(fp); /* * cupsFileOpen(read) */ printf("\ncupsFileOpen(read %d): ", pass); if ((fp = cupsFileOpen("testfile.dat", "r")) == NULL) { printf("FAIL (%s)\n", strerror(errno)); status ++; break; } else puts("PASS"); /* * cupsFileSeek, cupsFileRead */ fputs("cupsFileSeek(), cupsFileRead(): ", stdout); for (num_records = (pass + 1) * 256, count = (pass + 1) * 256, record = ((int)CUPS_RAND() & 65535) % num_records; count > 0; count --, record = (record + ((int)CUPS_RAND() & 31) - 16 + num_records) % num_records) { /* * The last record is always the first... */ if (count == 1) record = 0; /* * Try reading the data for the specified record, and validate the * contents... */ expected = (ssize_t)sizeof(buffer) * record; if ((pos = cupsFileSeek(fp, expected)) != expected) { printf("FAIL (" CUPS_LLFMT " instead of " CUPS_LLFMT ")\n", CUPS_LLCAST pos, CUPS_LLCAST expected); status ++; break; } else { if (cupsFileRead(fp, buffer, sizeof(buffer)) != sizeof(buffer)) { printf("FAIL (%s)\n", strerror(errno)); status ++; break; } else if ((buffer[0] & 255) != (record & 255) || memcmp(buffer, buffer + 1, sizeof(buffer) - 1)) { printf("FAIL (Bad Data - %d instead of %d)\n", buffer[0] & 255, record & 255); status ++; break; } } } if (count == 0) puts("PASS"); cupsFileClose(fp); } /* * Remove the test file... */ unlink("testfile.dat"); /* * Return the test status... */ return (status); } /* * 'read_write_tests()' - Perform read/write tests. */ static int /* O - Status */ read_write_tests(int compression) /* I - Use compression? */ { int i; /* Looping var */ cups_file_t *fp; /* File */ int status; /* Exit status */ char line[1024], /* Line from file */ *value; /* Directive value from line */ int linenum; /* Line number */ unsigned char readbuf[8192], /* Read buffer */ writebuf[8192]; /* Write buffer */ int byte; /* Byte from file */ ssize_t bytes; /* Number of bytes read/written */ off_t length; /* Length of file */ static const char *partial_line = "partial line"; /* Partial line */ /* * No errors so far... */ status = 0; /* * Initialize the write buffer with random data... */ CUPS_SRAND((unsigned)time(NULL)); for (i = 0; i < (int)sizeof(writebuf); i ++) writebuf[i] = (unsigned char)CUPS_RAND(); /* * cupsFileOpen(write) */ printf("cupsFileOpen(write%s): ", compression ? " compressed" : ""); fp = cupsFileOpen(compression ? "testfile.dat.gz" : "testfile.dat", compression ? "w9" : "w"); if (fp) { puts("PASS"); /* * cupsFileCompression() */ fputs("cupsFileCompression(): ", stdout); if (cupsFileCompression(fp) == compression) puts("PASS"); else { printf("FAIL (Got %d, expected %d)\n", cupsFileCompression(fp), compression); status ++; } /* * cupsFilePuts() */ fputs("cupsFilePuts(): ", stdout); if (cupsFilePuts(fp, "# Hello, World\n") > 0) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFilePrintf() */ fputs("cupsFilePrintf(): ", stdout); for (i = 0; i < 1000; i ++) if (cupsFilePrintf(fp, "TestLine %03d\n", i) < 0) break; if (i >= 1000) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFilePutChar() */ fputs("cupsFilePutChar(): ", stdout); for (i = 0; i < 256; i ++) if (cupsFilePutChar(fp, i) < 0) break; if (i >= 256) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileWrite() */ fputs("cupsFileWrite(): ", stdout); for (i = 0; i < 10000; i ++) if (cupsFileWrite(fp, (char *)writebuf, sizeof(writebuf)) < 0) break; if (i >= 10000) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFilePuts() with partial line... */ fputs("cupsFilePuts(\"partial line\"): ", stdout); if (cupsFilePuts(fp, partial_line) > 0) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileTell() */ fputs("cupsFileTell(): ", stdout); if ((length = cupsFileTell(fp)) == 81933283) puts("PASS"); else { printf("FAIL (" CUPS_LLFMT " instead of 81933283)\n", CUPS_LLCAST length); status ++; } /* * cupsFileClose() */ fputs("cupsFileClose(): ", stdout); if (!cupsFileClose(fp)) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileOpen(read) */ fputs("\ncupsFileOpen(read): ", stdout); fp = cupsFileOpen(compression ? "testfile.dat.gz" : "testfile.dat", "r"); if (fp) { puts("PASS"); /* * cupsFileGets() */ fputs("cupsFileGets(): ", stdout); if (cupsFileGets(fp, line, sizeof(line))) { if (line[0] == '#') puts("PASS"); else { printf("FAIL (Got line \"%s\", expected comment line)\n", line); status ++; } } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileCompression() */ fputs("cupsFileCompression(): ", stdout); if (cupsFileCompression(fp) == compression) puts("PASS"); else { printf("FAIL (Got %d, expected %d)\n", cupsFileCompression(fp), compression); status ++; } /* * cupsFileGetConf() */ linenum = 1; fputs("cupsFileGetConf(): ", stdout); for (i = 0, value = NULL; i < 1000; i ++) if (!cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) break; else if (_cups_strcasecmp(line, "TestLine") || !value || atoi(value) != i || linenum != (i + 2)) break; if (i >= 1000) puts("PASS"); else if (line[0]) { printf("FAIL (Line %d, directive \"%s\", value \"%s\")\n", linenum, line, value ? value : "(null)"); status ++; } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileGetChar() */ fputs("cupsFileGetChar(): ", stdout); for (i = 0, byte = 0; i < 256; i ++) if ((byte = cupsFileGetChar(fp)) != i) break; if (i >= 256) puts("PASS"); else if (byte >= 0) { printf("FAIL (Got %d, expected %d)\n", byte, i); status ++; } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileRead() */ fputs("cupsFileRead(): ", stdout); for (i = 0, bytes = 0; i < 10000; i ++) if ((bytes = cupsFileRead(fp, (char *)readbuf, sizeof(readbuf))) < 0) break; else if (memcmp(readbuf, writebuf, sizeof(readbuf))) break; if (i >= 10000) puts("PASS"); else if (bytes > 0) { printf("FAIL (Pass %d, ", i); for (i = 0; i < (int)sizeof(readbuf); i ++) if (readbuf[i] != writebuf[i]) break; printf("match failed at offset %d - got %02X, expected %02X)\n", i, readbuf[i], writebuf[i]); } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * cupsFileGetChar() with partial line... */ fputs("cupsFileGetChar(partial line): ", stdout); for (i = 0; i < (int)strlen(partial_line); i ++) if ((byte = cupsFileGetChar(fp)) < 0) break; else if (byte != partial_line[i]) break; if (!partial_line[i]) puts("PASS"); else { printf("FAIL (got '%c', expected '%c')\n", byte, partial_line[i]); status ++; } /* * cupsFileTell() */ fputs("cupsFileTell(): ", stdout); if ((length = cupsFileTell(fp)) == 81933283) puts("PASS"); else { printf("FAIL (" CUPS_LLFMT " instead of 81933283)\n", CUPS_LLCAST length); status ++; } /* * cupsFileClose() */ fputs("cupsFileClose(): ", stdout); if (!cupsFileClose(fp)) puts("PASS"); else { printf("FAIL (%s)\n", strerror(errno)); status ++; } } else { printf("FAIL (%s)\n", strerror(errno)); status ++; } /* * Remove the test file... */ if (!status) unlink(compression ? "testfile.dat.gz" : "testfile.dat"); /* * Return the test status... */ return (status); } cups-2.4.7/cups/testdest.c0000644000175000017500000005122014502571342015336 0ustar zdohnalzdohnal/* * CUPS destination API test program for CUPS. * * Copyright © 2012-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include "cups.h" /* * Local functions... */ static int enum_cb(void *user_data, unsigned flags, cups_dest_t *dest); static void localize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value); static void print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t *options); static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options); static void show_default(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option); static void show_media(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, const char *name); static void show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value); static void usage(const char *arg) _CUPS_NORETURN; /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ http_t *http; /* Connection to destination */ cups_dest_t *dest = NULL; /* Destination */ cups_dinfo_t *dinfo; /* Destination info */ unsigned dflags = CUPS_DEST_FLAGS_NONE; /* Destination flags */ if (argc < 2) return (0); if (!strcmp(argv[1], "--get")) { cups_dest_t *dests; /* Destinations */ int num_dests = cupsGetDests2(CUPS_HTTP_DEFAULT, &dests); /* Number of destinations */ for (i = 0; i < num_dests; i ++) enum_cb(NULL, 0, dests + i); cupsFreeDests(num_dests, dests); return (0); } else if (!strcmp(argv[1], "--enum")) { cups_ptype_t type = 0, /* Printer type filter */ mask = 0; /* Printer type mask */ for (i = 2; i < argc; i ++) { if (!strcmp(argv[i], "grayscale")) { type |= CUPS_PRINTER_BW; mask |= CUPS_PRINTER_BW; } else if (!strcmp(argv[i], "color")) { type |= CUPS_PRINTER_COLOR; mask |= CUPS_PRINTER_COLOR; } else if (!strcmp(argv[i], "duplex")) { type |= CUPS_PRINTER_DUPLEX; mask |= CUPS_PRINTER_DUPLEX; } else if (!strcmp(argv[i], "staple")) { type |= CUPS_PRINTER_STAPLE; mask |= CUPS_PRINTER_STAPLE; } else if (!strcmp(argv[i], "small")) { type |= CUPS_PRINTER_SMALL; mask |= CUPS_PRINTER_SMALL; } else if (!strcmp(argv[i], "medium")) { type |= CUPS_PRINTER_MEDIUM; mask |= CUPS_PRINTER_MEDIUM; } else if (!strcmp(argv[i], "large")) { type |= CUPS_PRINTER_LARGE; mask |= CUPS_PRINTER_LARGE; } else usage(argv[i]); } cupsEnumDests(CUPS_DEST_FLAGS_NONE, 5000, NULL, type, mask, enum_cb, NULL); return (0); } i = 1; if (!strcmp(argv[i], "--device")) { dflags = CUPS_DEST_FLAGS_DEVICE; i ++; } if (!strncmp(argv[i], "ipp://", 6) || !strncmp(argv[i], "ipps://", 7)) dest = cupsGetDestWithURI(NULL, argv[i]); else if (!strcmp(argv[i], "default")) { dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); if (dest && dest->instance) printf("default is \"%s/%s\".\n", dest->name, dest->instance); else if (dest) printf("default is \"%s\".\n", dest->name); else puts("no default destination."); } else dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, argv[i], NULL); if (!dest) { printf("testdest: Unable to get destination \"%s\": %s\n", argv[i], cupsLastErrorString()); return (1); } i ++; if ((http = cupsConnectDest(dest, dflags, 30000, NULL, NULL, 0, NULL, NULL)) == NULL) { printf("testdest: Unable to connect to destination \"%s\": %s\n", dest->name, cupsLastErrorString()); return (1); } if ((dinfo = cupsCopyDestInfo(http, dest)) == NULL) { printf("testdest: Unable to get information for destination \"%s\": %s\n", dest->name, cupsLastErrorString()); return (1); } if (i == argc || !strcmp(argv[i], "supported")) { i ++; if ((i + 1) < argc) show_supported(http, dest, dinfo, argv[i], argv[i + 1]); else if (argc > 2) show_supported(http, dest, dinfo, argv[i], NULL); else show_supported(http, dest, dinfo, NULL, NULL); } else if (!strcmp(argv[i], "conflicts") && (i + 1) < argc) { int num_options = 0;/* Number of options */ cups_option_t *options = NULL;/* Options */ for (i ++; i < argc; i ++) num_options = cupsParseOptions(argv[i], num_options, &options); show_conflicts(http, dest, dinfo, num_options, options); } else if (!strcmp(argv[i], "default") && (i + 1) < argc) { show_default(http, dest, dinfo, argv[i + 1]); } else if (!strcmp(argv[i], "localize")) { i ++; if ((i + 1) < argc) localize(http, dest, dinfo, argv[i], argv[i + 1]); else if (argc > 2) localize(http, dest, dinfo, argv[i], NULL); else localize(http, dest, dinfo, NULL, NULL); } else if (!strcmp(argv[i], "media")) { const char *name = NULL; /* Media name, if any */ unsigned flags = CUPS_MEDIA_FLAGS_DEFAULT; /* Media selection flags */ for (i ++; i < argc; i ++) { if (!strcmp(argv[i], "borderless")) flags = CUPS_MEDIA_FLAGS_BORDERLESS; else if (!strcmp(argv[i], "duplex")) flags = CUPS_MEDIA_FLAGS_DUPLEX; else if (!strcmp(argv[i], "exact")) flags = CUPS_MEDIA_FLAGS_EXACT; else if (!strcmp(argv[i], "ready")) flags = CUPS_MEDIA_FLAGS_READY; else if (name) usage(argv[i]); else name = argv[i]; } show_media(http, dest, dinfo, flags, name); } else if (!strcmp(argv[i], "print") && (i + 1) < argc) { int num_options = 0;/* Number of options */ cups_option_t *options = NULL;/* Options */ const char *filename = argv[i + 1]; for (i += 2; i < argc; i ++) num_options = cupsParseOptions(argv[i], num_options, &options); print_file(http, dest, dinfo, filename, num_options, options); } else usage(argv[i]); return (0); } /* * 'enum_cb()' - Print the results from the enumeration of destinations. */ static int /* O - 1 to continue */ enum_cb(void *user_data, /* I - User data (unused) */ unsigned flags, /* I - Flags */ cups_dest_t *dest) /* I - Destination */ { int i; /* Looping var */ (void)user_data; (void)flags; if (dest->instance) printf("%s%s/%s%s:\n", (flags & CUPS_DEST_FLAGS_REMOVED) ? "REMOVE " : "", dest->name, dest->instance, dest->is_default ? " (Default)" : ""); else printf("%s%s%s:\n", (flags & CUPS_DEST_FLAGS_REMOVED) ? "REMOVE " : "", dest->name, dest->is_default ? " (Default)" : ""); for (i = 0; i < dest->num_options; i ++) printf(" %s=\"%s\"\n", dest->options[i].name, dest->options[i].value); puts(""); return (1); } /* * 'localize()' - Localize an option and value. */ static void localize(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option, /* I - Option */ const char *value) /* I - Value, if any */ { ipp_attribute_t *attr; /* Attribute */ int i, /* Looping var */ count; /* Number of values */ if (!option) { attr = cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes"); if (attr) { count = ippGetCount(attr); for (i = 0; i < count; i ++) localize(http, dest, dinfo, ippGetString(attr, i, NULL), NULL); } else { static const char * const options[] = { /* List of standard options */ CUPS_COPIES, CUPS_FINISHINGS, CUPS_MEDIA, CUPS_NUMBER_UP, CUPS_ORIENTATION, CUPS_PRINT_COLOR_MODE, CUPS_PRINT_QUALITY, CUPS_SIDES }; puts("No job-creation-attributes-supported attribute, probing instead."); for (i = 0; i < (int)(sizeof(options) / sizeof(options[0])); i ++) if (cupsCheckDestSupported(http, dest, dinfo, options[i], NULL)) localize(http, dest, dinfo, options[i], NULL); } } else if (!value) { printf("%s (%s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option)); if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL) { count = ippGetCount(attr); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : for (i = 0; i < count; i ++) printf(" %d\n", ippGetInteger(attr, i)); break; case IPP_TAG_ENUM : for (i = 0; i < count; i ++) printf(" %s\n", ippEnumString(option, ippGetInteger(attr, i))); break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int upper, lower = ippGetRange(attr, i, &upper); printf(" %d-%d\n", lower, upper); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { int xres, yres; ipp_res_t units; xres = ippGetResolution(attr, i, &yres, &units); if (xres == yres) printf(" %d%s\n", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else printf(" %dx%d%s\n", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < count; i ++) printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL))); break; case IPP_TAG_STRING : for (i = 0; i < count; i ++) { int j, len; unsigned char *data = ippGetOctetString(attr, i, &len); fputs(" ", stdout); for (j = 0; j < len; j ++) { if (data[j] < ' ' || data[j] >= 0x7f) printf("<%02X>", data[j]); else putchar(data[j]); } putchar('\n'); } break; case IPP_TAG_BOOLEAN : break; default : printf(" %s\n", ippTagString(ippGetValueTag(attr))); break; } } } else puts(cupsLocalizeDestValue(http, dest, dinfo, option, value)); } /* * 'print_file()' - Print a file. */ static void print_file(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *filename, /* I - File to print */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { cups_file_t *fp; /* File to print */ int job_id; /* Job ID */ const char *title; /* Title of job */ char buffer[32768]; /* File buffer */ ssize_t bytes; /* Bytes read/to write */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { printf("Unable to open \"%s\": %s\n", filename, strerror(errno)); return; } if ((title = strrchr(filename, '/')) != NULL) title ++; else title = filename; if (cupsCreateDestJob(http, dest, dinfo, &job_id, title, num_options, options) > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED) { printf("Unable to create job: %s\n", cupsLastErrorString()); cupsFileClose(fp); return; } printf("Created job ID: %d\n", job_id); if (cupsStartDestDocument(http, dest, dinfo, job_id, title, CUPS_FORMAT_AUTO, 0, NULL, 1) != HTTP_STATUS_CONTINUE) { printf("Unable to send document: %s\n", cupsLastErrorString()); cupsFileClose(fp); return; } while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) { if (cupsWriteRequestData(http, buffer, (size_t)bytes) != HTTP_STATUS_CONTINUE) { printf("Unable to write document data: %s\n", cupsLastErrorString()); break; } } cupsFileClose(fp); if (cupsFinishDestDocument(http, dest, dinfo) > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED) { printf("Unable to send document: %s\n", cupsLastErrorString()); return; } puts("Job queued."); } /* * 'show_conflicts()' - Show conflicts for selected options. */ static void show_conflicts( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { (void)http; (void)dest; (void)dinfo; (void)num_options; (void)options; } /* * 'show_default()' - Show default value for option. */ static void show_default(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option) /* I - Option */ { if (!strcmp(option, "media")) { /* * Show default media option... */ cups_size_t size; /* Media size information */ if (cupsGetDestMediaDefault(http, dest, dinfo, CUPS_MEDIA_FLAGS_DEFAULT, &size)) printf("%s (%.2fx%.2fmm, margins=[%.2f %.2f %.2f %.2f])\n", size.media, size.width * 0.01, size.length * 0.01, size.left * 0.01, size.bottom * 0.01, size.right * 0.01, size.top * 0.01); else puts("FAILED"); } else { /* * Show default other option... */ ipp_attribute_t *defattr; /* Default attribute */ if ((defattr = cupsFindDestDefault(http, dest, dinfo, option)) != NULL) { char value[1024]; /* Value of default attribute */ ippAttributeString(defattr, value, sizeof(value)); puts(value); } else puts("FAILED"); } } /* * 'show_media()' - Show available media. */ static void show_media(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags, /* I - Media flags */ const char *name) /* I - Size name */ { int i, /* Looping var */ count; /* Number of sizes */ cups_size_t size; /* Media size info */ if (name) { double dw, dl; /* Width and length from name */ char units[32]; /* Units */ int width, /* Width in 100ths of millimeters */ length; /* Length in 100ths of millimeters */ if (sscanf(name, "%lfx%lf%31s", &dw, &dl, units) == 3) { if (!strcmp(units, "in")) { width = (int)(dw * 2540.0); length = (int)(dl * 2540.0); } else if (!strcmp(units, "mm")) { width = (int)(dw * 100.0); length = (int)(dl * 100.0); } else { puts(" bad units in size"); return; } if (cupsGetDestMediaBySize(http, dest, dinfo, width, length, flags, &size)) { printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top); } else { puts(" not supported"); } } else if (cupsGetDestMediaByName(http, dest, dinfo, name, flags, &size)) { printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top); } else { puts(" not supported"); } } else { count = cupsGetDestMediaCount(http, dest, dinfo, flags); printf("%d size%s:\n", count, count == 1 ? "" : "s"); for (i = 0; i < count; i ++) { if (cupsGetDestMediaByIndex(http, dest, dinfo, i, flags, &size)) printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top); else puts(" error"); } } } /* * 'show_supported()' - Show supported options, values, etc. */ static void show_supported(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option, /* I - Option, if any */ const char *value) /* I - Value, if any */ { ipp_attribute_t *attr; /* Attribute */ int i, /* Looping var */ count; /* Number of values */ if (!option) { attr = cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes"); if (attr) { count = ippGetCount(attr); for (i = 0; i < count; i ++) show_supported(http, dest, dinfo, ippGetString(attr, i, NULL), NULL); } else { static const char * const options[] = { /* List of standard options */ CUPS_COPIES, CUPS_FINISHINGS, CUPS_MEDIA, CUPS_NUMBER_UP, CUPS_ORIENTATION, CUPS_PRINT_COLOR_MODE, CUPS_PRINT_QUALITY, CUPS_SIDES }; puts("No job-creation-attributes-supported attribute, probing instead."); for (i = 0; i < (int)(sizeof(options) / sizeof(options[0])); i ++) if (cupsCheckDestSupported(http, dest, dinfo, options[i], NULL)) show_supported(http, dest, dinfo, options[i], NULL); } } else if (!value) { printf("%s (%s - %s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option), cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported"); if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL) { count = ippGetCount(attr); switch (ippGetValueTag(attr)) { case IPP_TAG_INTEGER : for (i = 0; i < count; i ++) printf(" %d\n", ippGetInteger(attr, i)); break; case IPP_TAG_ENUM : for (i = 0; i < count; i ++) { int val = ippGetInteger(attr, i); char valstr[256]; snprintf(valstr, sizeof(valstr), "%d", val); printf(" %s (%s)\n", ippEnumString(option, ippGetInteger(attr, i)), cupsLocalizeDestValue(http, dest, dinfo, option, valstr)); } break; case IPP_TAG_RANGE : for (i = 0; i < count; i ++) { int upper, lower = ippGetRange(attr, i, &upper); printf(" %d-%d\n", lower, upper); } break; case IPP_TAG_RESOLUTION : for (i = 0; i < count; i ++) { int xres, yres; ipp_res_t units; xres = ippGetResolution(attr, i, &yres, &units); if (xres == yres) printf(" %d%s\n", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else printf(" %dx%d%s\n", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } break; case IPP_TAG_KEYWORD : for (i = 0; i < count; i ++) printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL))); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < count; i ++) printf(" %s\n", ippGetString(attr, i, NULL)); break; case IPP_TAG_STRING : for (i = 0; i < count; i ++) { int j, len; unsigned char *data = ippGetOctetString(attr, i, &len); fputs(" ", stdout); for (j = 0; j < len; j ++) { if (data[j] < ' ' || data[j] >= 0x7f) printf("<%02X>", data[j]); else putchar(data[j]); } putchar('\n'); } break; case IPP_TAG_BOOLEAN : break; default : printf(" %s\n", ippTagString(ippGetValueTag(attr))); break; } } } else if (cupsCheckDestSupported(http, dest, dinfo, option, value)) puts("YES"); else puts("NO"); } /* * 'usage()' - Show program usage. */ static void usage(const char *arg) /* I - Argument for usage message */ { if (arg) printf("testdest: Unknown option \"%s\".\n", arg); puts("Usage:"); puts(" ./testdest [--device] name [operation ...]"); puts(" ./testdest [--device] ipp://... [operation ...]"); puts(" ./testdest [--device] ipps://... [operation ...]"); puts(" ./testdest --get"); puts(" ./testdest --enum [grayscale] [color] [duplex] [staple] [small]\n" " [medium] [large]"); puts(""); puts("Operations:"); puts(" conflicts options"); puts(" default option"); puts(" localize option [value]"); puts(" media [borderless] [duplex] [exact] [ready] [name or size]"); puts(" print filename [options]"); puts(" supported [option [value]]"); exit(arg != NULL); } cups-2.4.7/cups/testcups.c0000644000175000017500000003452414502571342015361 0ustar zdohnalzdohnal/* * CUPS API test program for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #undef _CUPS_NO_DEPRECATED #include "cups-private.h" #include "ppd.h" #include /* * Local functions... */ static int dests_equal(cups_dest_t *a, cups_dest_t *b); static int enum_cb(void *user_data, unsigned flags, cups_dest_t *dest); static void show_diffs(cups_dest_t *a, cups_dest_t *b); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { http_t *http, /* First HTTP connection */ *http2; /* Second HTTP connection */ int status = 0, /* Exit status */ i, /* Looping var */ num_dests; /* Number of destinations */ cups_dest_t *dests, /* Destinations */ *dest, /* Current destination */ *named_dest; /* Current named destination */ const char *dest_name, /* Destination name */ *dval, /* Destination value */ *ppdfile; /* PPD file */ ppd_file_t *ppd; /* PPD file data */ int num_jobs; /* Number of jobs for queue */ cups_job_t *jobs; /* Jobs for queue */ if (argc > 1) { if (!strcmp(argv[1], "enum")) { cups_ptype_t mask = CUPS_PRINTER_LOCAL, /* Printer type mask */ type = CUPS_PRINTER_LOCAL; /* Printer type */ int msec = 0; /* Timeout in milliseconds */ for (i = 2; i < argc; i ++) if (isdigit(argv[i][0] & 255) || argv[i][0] == '.') msec = (int)(atof(argv[i]) * 1000); else if (!_cups_strcasecmp(argv[i], "bw")) { mask |= CUPS_PRINTER_BW; type |= CUPS_PRINTER_BW; } else if (!_cups_strcasecmp(argv[i], "color")) { mask |= CUPS_PRINTER_COLOR; type |= CUPS_PRINTER_COLOR; } else if (!_cups_strcasecmp(argv[i], "mono")) { mask |= CUPS_PRINTER_COLOR; } else if (!_cups_strcasecmp(argv[i], "duplex")) { mask |= CUPS_PRINTER_DUPLEX; type |= CUPS_PRINTER_DUPLEX; } else if (!_cups_strcasecmp(argv[i], "simplex")) { mask |= CUPS_PRINTER_DUPLEX; } else if (!_cups_strcasecmp(argv[i], "staple")) { mask |= CUPS_PRINTER_STAPLE; type |= CUPS_PRINTER_STAPLE; } else if (!_cups_strcasecmp(argv[i], "copies")) { mask |= CUPS_PRINTER_COPIES; type |= CUPS_PRINTER_COPIES; } else if (!_cups_strcasecmp(argv[i], "collate")) { mask |= CUPS_PRINTER_COLLATE; type |= CUPS_PRINTER_COLLATE; } else if (!_cups_strcasecmp(argv[i], "punch")) { mask |= CUPS_PRINTER_PUNCH; type |= CUPS_PRINTER_PUNCH; } else if (!_cups_strcasecmp(argv[i], "cover")) { mask |= CUPS_PRINTER_COVER; type |= CUPS_PRINTER_COVER; } else if (!_cups_strcasecmp(argv[i], "bind")) { mask |= CUPS_PRINTER_BIND; type |= CUPS_PRINTER_BIND; } else if (!_cups_strcasecmp(argv[i], "sort")) { mask |= CUPS_PRINTER_SORT; type |= CUPS_PRINTER_SORT; } else if (!_cups_strcasecmp(argv[i], "mfp")) { mask |= CUPS_PRINTER_MFP; type |= CUPS_PRINTER_MFP; } else if (!_cups_strcasecmp(argv[i], "printer")) { mask |= CUPS_PRINTER_MFP; } else if (!_cups_strcasecmp(argv[i], "large")) { mask |= CUPS_PRINTER_LARGE; type |= CUPS_PRINTER_LARGE; } else if (!_cups_strcasecmp(argv[i], "medium")) { mask |= CUPS_PRINTER_MEDIUM; type |= CUPS_PRINTER_MEDIUM; } else if (!_cups_strcasecmp(argv[i], "small")) { mask |= CUPS_PRINTER_SMALL; type |= CUPS_PRINTER_SMALL; } else fprintf(stderr, "Unknown argument \"%s\" ignored...\n", argv[i]); cupsEnumDests(CUPS_DEST_FLAGS_NONE, msec, NULL, type, mask, enum_cb, NULL); } else if (!strcmp(argv[1], "password")) { const char *pass = cupsGetPassword("Password:"); /* Password string */ if (pass) printf("Password entered: %s\n", pass); else puts("No password entered."); } else if (!strcmp(argv[1], "ppd") && argc == 3) { /* * ./testcups ppd printer */ http_status_t http_status; /* Status */ char buffer[1024]; /* PPD filename */ time_t modtime = 0; /* Last modified */ if ((http_status = cupsGetPPD3(CUPS_HTTP_DEFAULT, argv[2], &modtime, buffer, sizeof(buffer))) != HTTP_STATUS_OK) printf("Unable to get PPD: %d (%s)\n", (int)http_status, cupsLastErrorString()); else puts(buffer); } else if (!strcmp(argv[1], "print") && argc == 5) { /* * ./testcups print printer file interval */ int interval, /* Interval between writes */ job_id; /* Job ID */ cups_file_t *fp; /* Print file */ char buffer[16384]; /* Read/write buffer */ ssize_t bytes; /* Bytes read/written */ if ((fp = cupsFileOpen(argv[3], "r")) == NULL) { printf("Unable to open \"%s\": %s\n", argv[2], strerror(errno)); return (1); } if ((job_id = cupsCreateJob(CUPS_HTTP_DEFAULT, argv[2], "testcups", 0, NULL)) <= 0) { printf("Unable to create print job on %s: %s\n", argv[1], cupsLastErrorString()); return (1); } interval = atoi(argv[4]); if (cupsStartDocument(CUPS_HTTP_DEFAULT, argv[1], job_id, argv[2], CUPS_FORMAT_AUTO, 1) != HTTP_STATUS_CONTINUE) { puts("Unable to start document!"); return (1); } while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0) { printf("Writing %d bytes...\n", (int)bytes); if (cupsWriteRequestData(CUPS_HTTP_DEFAULT, buffer, (size_t)bytes) != HTTP_STATUS_CONTINUE) { puts("Unable to write bytes!"); return (1); } if (interval > 0) sleep((unsigned)interval); } cupsFileClose(fp); if (cupsFinishDocument(CUPS_HTTP_DEFAULT, argv[1]) > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED) { puts("Unable to finish document!"); return (1); } } else { puts("Usage:"); puts(""); puts("Run basic unit tests:"); puts(""); puts(" ./testcups"); puts(""); puts("Enumerate printers (for N seconds, -1 for indefinitely):"); puts(""); puts(" ./testcups enum [seconds]"); puts(""); puts("Ask for a password:"); puts(""); puts(" ./testcups password"); puts(""); puts("Get the PPD file:"); puts(""); puts(" ./testcups ppd printer"); puts(""); puts("Print a file (interval controls delay between buffers in seconds):"); puts(""); puts(" ./testcups print printer file interval"); return (1); } return (0); } /* * _cupsConnect() connection reuse... */ fputs("_cupsConnect: ", stdout); http = _cupsConnect(); http2 = _cupsConnect(); if (http == http2) { puts("PASS"); } else { puts("FAIL (different connections)"); return (1); } /* * cupsGetDests() */ fputs("cupsGetDests: ", stdout); fflush(stdout); num_dests = cupsGetDests(&dests); if (num_dests == 0) { puts("FAIL"); return (1); } else { printf("PASS (%d dests)\n", num_dests); for (i = num_dests, dest = dests; i > 0; i --, dest ++) { printf(" %s", dest->name); if (dest->instance) printf(" /%s", dest->instance); if (dest->is_default) puts(" ***DEFAULT***"); else putchar('\n'); } } /* * cupsGetDest(NULL) */ fputs("cupsGetDest(NULL): ", stdout); fflush(stdout); if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL) { for (i = num_dests, dest = dests; i > 0; i --, dest ++) if (dest->is_default) break; if (i) { status = 1; puts("FAIL"); } else puts("PASS (no default)"); dest = NULL; } else printf("PASS (%s)\n", dest->name); /* * cupsGetNamedDest(NULL, NULL, NULL) */ fputs("cupsGetNamedDest(NULL, NULL, NULL): ", stdout); fflush(stdout); if ((named_dest = cupsGetNamedDest(NULL, NULL, NULL)) == NULL || !dests_equal(dest, named_dest)) { if (!dest) puts("PASS (no default)"); else if (named_dest) { puts("FAIL (different values)"); show_diffs(dest, named_dest); status = 1; } else { puts("FAIL (no default)"); status = 1; } } else printf("PASS (%s)\n", named_dest->name); if (named_dest) cupsFreeDests(1, named_dest); /* * cupsGetDest(printer) */ for (i = 0, dest_name = NULL; i < num_dests; i ++) { if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dests[i].options)) != NULL && !strcmp(dval, "false")) { dest_name = dests[i].name; break; } } printf("cupsGetDest(\"%s\"): ", dest_name ? dest_name : "(null)"); fflush(stdout); if ((dest = cupsGetDest(dest_name, NULL, num_dests, dests)) == NULL) { puts("FAIL"); return (1); } else puts("PASS"); /* * cupsGetNamedDest(NULL, printer, instance) */ printf("cupsGetNamedDest(NULL, \"%s\", \"%s\"): ", dest->name, dest->instance ? dest->instance : "(null)"); fflush(stdout); if ((named_dest = cupsGetNamedDest(NULL, dest->name, dest->instance)) == NULL || !dests_equal(dest, named_dest)) { if (named_dest) { puts("FAIL (different values)"); show_diffs(dest, named_dest); } else puts("FAIL (no destination)"); status = 1; } else puts("PASS"); if (named_dest) cupsFreeDests(1, named_dest); /* * cupsPrintFile() */ fputs("cupsPrintFile: ", stdout); fflush(stdout); if (cupsPrintFile(dest->name, "../test/testfile.pdf", "Test Page", dest->num_options, dest->options) <= 0) { printf("FAIL (%s)\n", cupsLastErrorString()); return (1); } else puts("PASS"); /* * cupsGetPPD(printer) */ fputs("cupsGetPPD: ", stdout); fflush(stdout); if ((ppdfile = cupsGetPPD(dest->name)) == NULL) { puts("FAIL"); } else { puts("PASS"); /* * ppdOpenFile() */ fputs("ppdOpenFile: ", stdout); fflush(stdout); if ((ppd = ppdOpenFile(ppdfile)) == NULL) { puts("FAIL"); return (1); } else puts("PASS"); ppdClose(ppd); unlink(ppdfile); } /* * cupsGetJobs() */ fputs("cupsGetJobs: ", stdout); fflush(stdout); num_jobs = cupsGetJobs(&jobs, NULL, 0, -1); if (num_jobs == 0) { puts("FAIL"); return (1); } else puts("PASS"); cupsFreeJobs(num_jobs, jobs); cupsFreeDests(num_dests, dests); return (status); } /* * 'dests_equal()' - Determine whether two destinations are equal. */ static int /* O - 1 if equal, 0 if not equal */ dests_equal(cups_dest_t *a, /* I - First destination */ cups_dest_t *b) /* I - Second destination */ { int i; /* Looping var */ cups_option_t *aoption; /* Current option */ const char *bval; /* Option value */ if (a == b) return (1); if (!a || !b) return (0); if (_cups_strcasecmp(a->name, b->name) || (a->instance && !b->instance) || (!a->instance && b->instance) || (a->instance && _cups_strcasecmp(a->instance, b->instance)) || a->num_options != b->num_options) return (0); for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) if ((bval = cupsGetOption(aoption->name, b->num_options, b->options)) == NULL || strcmp(aoption->value, bval)) return (0); return (1); } /* * 'enum_cb()' - Report additions and removals. */ static int /* O - 1 to continue, 0 to stop */ enum_cb(void *user_data, /* I - User data (unused) */ unsigned flags, /* I - Destination flags */ cups_dest_t *dest) /* I - Destination */ { int i; /* Looping var */ cups_option_t *option; /* Current option */ (void)user_data; if (flags & CUPS_DEST_FLAGS_REMOVED) printf("Removed '%s':\n", dest->name); else printf("Added '%s':\n", dest->name); for (i = dest->num_options, option = dest->options; i > 0; i --, option ++) printf(" %s=\"%s\"\n", option->name, option->value); putchar('\n'); return (1); } /* * 'show_diffs()' - Show differences between two destinations. */ static void show_diffs(cups_dest_t *a, /* I - First destination */ cups_dest_t *b) /* I - Second destination */ { int i; /* Looping var */ cups_option_t *aoption; /* Current option */ cups_option_t *boption; /* Current option */ const char *bval; /* Option value */ if (!a || !b) return; puts(" Item cupsGetDest cupsGetNamedDest"); puts(" -------------------- ------------------------ ------------------------"); if (_cups_strcasecmp(a->name, b->name)) printf(" name %-24.24s %-24.24s\n", a->name, b->name); if ((a->instance && !b->instance) || (!a->instance && b->instance) || (a->instance && _cups_strcasecmp(a->instance, b->instance))) printf(" instance %-24.24s %-24.24s\n", a->instance ? a->instance : "(null)", b->instance ? b->instance : "(null)"); if (a->num_options != b->num_options) printf(" num_options %-24d %-24d\n", a->num_options, b->num_options); for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) if ((bval = cupsGetOption(aoption->name, b->num_options, b->options)) == NULL || strcmp(aoption->value, bval)) printf(" %-20.20s %-24.24s %-24.24s\n", aoption->name, aoption->value, bval ? bval : "(null)"); for (i = b->num_options, boption = b->options; i > 0; i --, boption ++) if (!cupsGetOption(boption->name, a->num_options, a->options)) printf(" %-20.20s %-24.24s %-24.24s\n", boption->name, boption->value, "(null)"); } cups-2.4.7/cups/testcreds.c0000644000175000017500000000652714502571342015511 0ustar zdohnalzdohnal/* * HTTP credentials test program for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { http_t *http; /* HTTP connection */ char scheme[HTTP_MAX_URI], /* Scheme from URI */ hostname[HTTP_MAX_URI], /* Hostname from URI */ username[HTTP_MAX_URI], /* Username:password from URI */ resource[HTTP_MAX_URI]; /* Resource from URI */ int port; /* Port number from URI */ http_trust_t trust; /* Trust evaluation for connection */ cups_array_t *hcreds, /* Credentials from connection */ *tcreds; /* Credentials from trust store */ char hinfo[1024], /* String for connection credentials */ tinfo[1024]; /* String for trust store credentials */ static const char *trusts[] = /* Trust strings */ { "OK", "Invalid", "Changed", "Expired", "Renewed", "Unknown" }; /* * Check command-line... */ if (argc != 2) { puts("Usage: ./testcreds hostname"); puts(" ./testcreds https://hostname[:port]"); return (1); } if (!strncmp(argv[1], "https://", 8)) { /* * Connect to the host and validate credentials... */ if (httpSeparateURI(HTTP_URI_CODING_MOST, argv[1], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { printf("ERROR: Bad URI \"%s\".\n", argv[1]); return (1); } if ((http = httpConnect2(hostname, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL)) == NULL) { printf("ERROR: Unable to connect to \"%s\" on port %d: %s\n", hostname, port, cupsLastErrorString()); return (1); } puts("HTTP Credentials:"); if (!httpCopyCredentials(http, &hcreds)) { trust = httpCredentialsGetTrust(hcreds, hostname); httpCredentialsString(hcreds, hinfo, sizeof(hinfo)); printf(" Certificate Count: %d\n", cupsArrayCount(hcreds)); if (trust == HTTP_TRUST_OK) puts(" Trust: OK"); else printf(" Trust: %s (%s)\n", trusts[trust], cupsLastErrorString()); printf(" Expiration: %s\n", httpGetDateString(httpCredentialsGetExpiration(hcreds))); printf(" IsValidName: %d\n", httpCredentialsAreValidForName(hcreds, hostname)); printf(" String: \"%s\"\n", hinfo); httpFreeCredentials(hcreds); } else puts(" Not present (error)."); puts(""); } else { /* * Load stored credentials... */ strlcpy(hostname, argv[1], sizeof(hostname)); } printf("Trust Store for \"%s\":\n", hostname); if (!httpLoadCredentials(NULL, &tcreds, hostname)) { httpCredentialsString(tcreds, tinfo, sizeof(tinfo)); printf(" Certificate Count: %d\n", cupsArrayCount(tcreds)); printf(" Expiration: %s\n", httpGetDateString(httpCredentialsGetExpiration(tcreds))); printf(" IsValidName: %d\n", httpCredentialsAreValidForName(tcreds, hostname)); printf(" String: \"%s\"\n", tinfo); httpFreeCredentials(tcreds); } else puts(" Not present."); return (0); } cups-2.4.7/cups/testconflicts.c0000644000175000017500000000535614502571342016374 0ustar zdohnalzdohnal/* * PPD constraint test program for CUPS. * * Copyright 2008-2012 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups.h" #include "ppd.h" #include "string-private.h" /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ ppd_file_t *ppd; /* PPD file loaded from disk */ char line[256], /* Input buffer */ *ptr, /* Pointer into buffer */ *optr, /* Pointer to first option name */ *cptr; /* Pointer to first choice */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ char *option, /* Current option */ *choice; /* Current choice */ if (argc != 2) { puts("Usage: testconflicts filename.ppd"); return (1); } if ((ppd = ppdOpenFile(argv[1])) == NULL) { ppd_status_t err; /* Last error in file */ int linenum; /* Line number in file */ err = ppdLastError(&linenum); printf("Unable to open PPD file \"%s\": %s on line %d\n", argv[1], ppdErrorString(err), linenum); return (1); } ppdMarkDefaults(ppd); option = NULL; choice = NULL; for (;;) { num_options = 0; options = NULL; if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) puts("Unable to resolve conflicts!"); else if ((!option && num_options > 0) || (option && num_options > 1)) { fputs("Resolved conflicts with the following options:\n ", stdout); for (i = 0; i < num_options; i ++) if (!option || _cups_strcasecmp(option, options[i].name)) printf(" %s=%s", options[i].name, options[i].value); putchar('\n'); cupsFreeOptions(num_options, options); } if (option) { free(option); option = NULL; } if (choice) { free(choice); choice = NULL; } printf("\nNew Option(s): "); fflush(stdout); if (!fgets(line, sizeof(line), stdin) || line[0] == '\n') break; for (ptr = line; isspace(*ptr & 255); ptr ++); for (optr = ptr; *ptr && *ptr != '='; ptr ++); if (!*ptr) break; for (*ptr++ = '\0', cptr = ptr; *ptr && !isspace(*ptr & 255); ptr ++); if (!*ptr) break; *ptr++ = '\0'; option = strdup(optr); choice = strdup(cptr); num_options = cupsParseOptions(ptr, 0, &options); ppdMarkOption(ppd, option, choice); if (cupsMarkOptions(ppd, num_options, options)) puts("Options Conflict!"); cupsFreeOptions(num_options, options); } if (option) free(option); if (choice) free(choice); return (0); } cups-2.4.7/cups/testclient.c0000644000175000017500000007212014502571342015657 0ustar zdohnalzdohnal/* * Simulated client test program for CUPS. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2017-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include /* * Constants... */ #define MAX_CLIENTS 100 /* Maximum number of client threads */ /* * Local types... */ typedef struct _client_data_s { const char *uri, /* Printer URI */ *hostname, /* Hostname */ *user, /* Username */ *resource; /* Resource path */ int port; /* Port number */ http_encryption_t encryption; /* Use encryption? */ const char *docfile, /* Document file */ *docformat; /* Document format */ int grayscale, /* Force grayscale? */ keepfile; /* Keep temporary file? */ ipp_pstate_t printer_state; /* Current printer state */ char printer_state_reasons[1024]; /* Current printer-state-reasons */ int job_id; /* Job ID for submitted job */ ipp_jstate_t job_state; /* Current job state */ char job_state_reasons[1024]; /* Current job-state-reasons */ } _client_data_t; /* * Local globals... */ static int client_count = 0; static _cups_mutex_t client_mutex = _CUPS_MUTEX_INITIALIZER; static int verbosity = 0; /* * Local functions... */ static const char *make_raster_file(ipp_t *response, int grayscale, char *tempname, size_t tempsize, const char **format); static void *monitor_printer(_client_data_t *data); static void *run_client(_client_data_t *data); static void show_attributes(const char *title, int request, ipp_t *ipp); static void show_capabilities(ipp_t *response); static void usage(void); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *opt; /* Current option */ int num_clients = 0;/* Number of clients to simulate */ char scheme[32], /* URI scheme */ userpass[256], /* Username:password */ hostname[256], /* Hostname */ resource[256]; /* Resource path */ _client_data_t data; /* Client data */ /* * Parse command-line options... */ if (argc == 1) return (0); memset(&data, 0, sizeof(data)); for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'c' : /* -c num-clients */ if (num_clients) { puts("Number of clients can only be specified once."); usage(); return (1); } i ++; if (i >= argc) { puts("Expected client count after '-c'."); usage(); return (1); } if ((num_clients = atoi(argv[i])) < 1) { puts("Number of clients must be one or more."); usage(); return (1); } break; case 'd' : /* -d document-format */ if (data.docformat) { puts("Document format can only be specified once."); usage(); return (1); } i ++; if (i >= argc) { puts("Expected document format after '-d'."); usage(); return (1); } data.docformat = argv[i]; break; case 'f' : /* -f print-file */ if (data.docfile) { puts("Print file can only be specified once."); usage(); return (1); } i ++; if (i >= argc) { puts("Expected print file after '-f'."); usage(); return (1); } data.docfile = argv[i]; break; case 'g' : data.grayscale = 1; break; case 'k' : data.keepfile = 1; break; case 'v' : verbosity ++; break; default : printf("Unknown option '-%c'.\n", *opt); usage(); return (1); } } } else if (data.uri || (strncmp(argv[i], "ipp://", 6) && strncmp(argv[i], "ipps://", 7))) { printf("Unknown command-line argument '%s'.\n", argv[i]); usage(); return (1); } else data.uri = argv[i]; } /* * Make sure we have everything we need. */ if (!data.uri) { puts("Expected printer URI."); usage(); return (1); } if (num_clients < 1) num_clients = 1; /* * Connect to the printer... */ if (httpSeparateURI(HTTP_URI_CODING_ALL, data.uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &data.port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { printf("Bad printer URI '%s'.\n", data.uri); return (1); } if (!data.port) data.port = IPP_PORT; if (!strcmp(scheme, "https") || !strcmp(scheme, "ipps")) data.encryption = HTTP_ENCRYPTION_ALWAYS; else data.encryption = HTTP_ENCRYPTION_IF_REQUESTED; /* * Start the client threads... */ data.hostname = hostname; data.resource = resource; while (client_count < num_clients) { _cupsMutexLock(&client_mutex); if (client_count < MAX_CLIENTS) { _cups_thread_t tid; /* New thread */ client_count ++; _cupsMutexUnlock(&client_mutex); tid = _cupsThreadCreate((_cups_thread_func_t)run_client, &data); _cupsThreadDetach(tid); } else { _cupsMutexUnlock(&client_mutex); sleep(1); } } while (client_count > 0) { _cupsMutexLock(&client_mutex); printf("%d RUNNING CLIENTS\n", client_count); _cupsMutexUnlock(&client_mutex); sleep(1); } return (0); } /* * 'make_raster_file()' - Create a temporary raster file. */ static const char * /* O - Print filename */ make_raster_file(ipp_t *response, /* I - Printer attributes */ int grayscale, /* I - Force grayscale? */ char *tempname, /* I - Temporary filename buffer */ size_t tempsize, /* I - Size of temp file buffer */ const char **format) /* O - Print format */ { int i, /* Looping var */ count; /* Number of values */ ipp_attribute_t *attr; /* Printer attribute */ const char *type = NULL; /* Raster type (colorspace + bits) */ pwg_media_t *media = NULL; /* Media size */ int xdpi = 0, /* Horizontal resolution */ ydpi = 0; /* Vertical resolution */ int fd; /* Temporary file */ cups_mode_t mode; /* Raster mode */ cups_raster_t *ras; /* Raster stream */ cups_page_header2_t header; /* Page header */ unsigned char *line, /* Line of raster data */ *lineptr; /* Pointer into line */ unsigned y, /* Current position on page */ xcount, ycount, /* Current count for X and Y */ xrep, yrep, /* Repeat count for X and Y */ xoff, yoff, /* Offsets for X and Y */ yend; /* End Y value */ int temprow, /* Row in template */ tempcolor; /* Template color */ const char *template; /* Pointer into template */ const unsigned char *color; /* Current color */ static const unsigned char colors[][3] = { /* Colors for test */ { 191, 191, 191 }, { 127, 127, 127 }, { 63, 63, 63 }, { 0, 0, 0 }, { 255, 0, 0 }, { 255, 127, 0 }, { 255, 255, 0 }, { 127, 255, 0 }, { 0, 255, 0 }, { 0, 255, 127 }, { 0, 255, 255 }, { 0, 127, 255 }, { 0, 0, 255 }, { 127, 0, 255 }, { 255, 0, 255 } }; static const char * const templates[] = { /* Raster template */ " CCC U U PPPP SSS TTTTT EEEEE SSS TTTTT 000 1 222 333 4 55555 66 77777 888 999 ", "C C U U P P S S T E S S T 0 0 11 2 2 3 3 4 4 5 6 7 8 8 9 9 ", "C U U P P S T E S T 0 0 1 2 3 4 4 5 6 7 8 8 9 9 ", "C U U PPPP SSS ----- T EEEE SSS T 0 0 0 1 22 333 44444 555 6666 7 888 9999 ", "C U U P S T E S T 0 0 1 2 3 4 5 6 6 7 8 8 9 ", "C C U U P S S T E S S T 0 0 1 2 3 3 4 5 5 6 6 7 8 8 9 ", " CCC UUU P SSS T EEEEE SSS T 000 111 22222 333 4 555 666 7 888 99 ", " " }; /* * Figure out the output format... */ if ((attr = ippFindAttribute(response, "document-format-supported", IPP_TAG_MIMETYPE)) == NULL) { puts("No supported document formats, aborting."); return (NULL); } if (*format) { if (!ippContainsString(attr, *format)) { printf("Printer does not support document-format '%s'.\n", *format); return (NULL); } if (!strcmp(*format, "image/urf")) mode = CUPS_RASTER_WRITE_APPLE; else if (!strcmp(*format, "image/pwg-raster")) mode = CUPS_RASTER_WRITE_PWG; else { printf("Unable to generate document-format '%s'.\n", *format); return (NULL); } } else if (ippContainsString(attr, "image/urf")) { /* * Apple Raster format... */ *format = "image/urf"; mode = CUPS_RASTER_WRITE_APPLE; } else if (ippContainsString(attr, "image/pwg-raster")) { /* * PWG Raster format... */ *format = "image/pwg-raster"; mode = CUPS_RASTER_WRITE_PWG; } else { /* * No supported raster format... */ puts("Printer does not support Apple or PWG raster files, aborting."); return (NULL); } /* * Figure out the media, resolution, and color mode... */ if ((attr = ippFindAttribute(response, "media-ready", IPP_TAG_KEYWORD)) != NULL) { /* * Use ready media... */ if (ippContainsString(attr, "na_letter_8.5x11in")) media = pwgMediaForPWG("na_letter_8.5x11in"); else if (ippContainsString(attr, "iso_a4_210x297mm")) media = pwgMediaForPWG("iso_a4_210x297mm"); else media = pwgMediaForPWG(ippGetString(attr, 0, NULL)); } else if ((attr = ippFindAttribute(response, "media-default", IPP_TAG_KEYWORD)) != NULL) { /* * Use default media... */ media = pwgMediaForPWG(ippGetString(attr, 0, NULL)); } else { puts("No default or ready media reported by printer, aborting."); return (NULL); } if (mode == CUPS_RASTER_WRITE_APPLE && (attr = ippFindAttribute(response, "urf-supported", IPP_TAG_KEYWORD)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { const char *val = ippGetString(attr, i, NULL); if (!strncmp(val, "RS", 2)) xdpi = ydpi = atoi(val + 2); else if (!strncmp(val, "W8", 2) && !type) type = "sgray_8"; else if (!strncmp(val, "SRGB24", 6) && !grayscale) type = "srgb_8"; } } else if (mode == CUPS_RASTER_WRITE_PWG && (attr = ippFindAttribute(response, "pwg-raster-document-resolution-supported", IPP_TAG_RESOLUTION)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { int tempxdpi, tempydpi; ipp_res_t tempunits; tempxdpi = ippGetResolution(attr, 0, &tempydpi, &tempunits); if (i == 0 || tempxdpi < xdpi || tempydpi < ydpi) { xdpi = tempxdpi; ydpi = tempydpi; } } if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) != NULL) { if (!grayscale && ippContainsString(attr, "srgb_8")) type = "srgb_8"; else if (ippContainsString(attr, "sgray_8")) type = "sgray_8"; } } if (xdpi < 72 || ydpi < 72) { puts("No supported raster resolutions, aborting."); return (NULL); } if (!type) { puts("No supported color spaces or bit depths, aborting."); return (NULL); } /* * Make the raster context and details... */ if (!cupsRasterInitPWGHeader(&header, media, type, xdpi, ydpi, "one-sided", NULL)) { printf("Unable to initialize raster context: %s\n", cupsRasterErrorString()); return (NULL); } header.cupsInteger[CUPS_RASTER_PWG_TotalPageCount] = 1; if (header.cupsWidth > (2 * header.HWResolution[0])) { xoff = header.HWResolution[0] / 2; yoff = header.HWResolution[1] / 2; } else { xoff = header.HWResolution[0] / 4; yoff = header.HWResolution[1] / 4; } xrep = (header.cupsWidth - 2 * xoff) / 140; yrep = xrep * header.HWResolution[1] / header.HWResolution[0]; yend = header.cupsHeight - yoff; /* * Prepare the raster file... */ if ((line = malloc(header.cupsBytesPerLine)) == NULL) { printf("Unable to allocate %u bytes for raster output: %s\n", header.cupsBytesPerLine, strerror(errno)); return (NULL); } if ((fd = cupsTempFd(tempname, (int)tempsize)) < 0) { printf("Unable to create temporary print file: %s\n", strerror(errno)); free(line); return (NULL); } if ((ras = cupsRasterOpen(fd, mode)) == NULL) { printf("Unable to open raster stream: %s\n", cupsRasterErrorString()); close(fd); free(line); return (NULL); } /* * Write a single page consisting of the template dots repeated over the page. */ cupsRasterWriteHeader2(ras, &header); memset(line, 0xff, header.cupsBytesPerLine); for (y = 0; y < yoff; y ++) cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); for (temprow = 0, tempcolor = 0; y < yend;) { template = templates[temprow]; color = colors[tempcolor]; temprow ++; if (temprow >= (int)(sizeof(templates) / sizeof(templates[0]))) { temprow = 0; tempcolor ++; if (tempcolor >= (int)(sizeof(colors) / sizeof(colors[0]))) tempcolor = 0; else if (tempcolor > 3 && header.cupsColorSpace == CUPS_CSPACE_SW) tempcolor = 0; } memset(line, 0xff, header.cupsBytesPerLine); if (header.cupsColorSpace == CUPS_CSPACE_SW) { /* * Do grayscale output... */ for (lineptr = line + xoff; *template; template ++) { if (*template != ' ') { for (xcount = xrep; xcount > 0; xcount --) *lineptr++ = *color; } else { lineptr += xrep; } } } else { /* * Do color output... */ for (lineptr = line + 3 * xoff; *template; template ++) { if (*template != ' ') { for (xcount = xrep; xcount > 0; xcount --, lineptr += 3) memcpy(lineptr, color, 3); } else { lineptr += 3 * xrep; } } } for (ycount = yrep; ycount > 0 && y < yend; ycount --, y ++) cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); } memset(line, 0xff, header.cupsBytesPerLine); for (; y < header.cupsHeight; y ++) cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); free(line); cupsRasterClose(ras); close(fd); printf("PRINT FILE: %s\n", tempname); return (tempname); } /* * 'monitor_printer()' - Monitor the job and printer states. */ static void * /* O - Thread exit code */ monitor_printer( _client_data_t *data) /* I - Client data */ { http_t *http; /* Connection to printer */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Attribute in response */ ipp_pstate_t printer_state; /* Printer state */ char printer_state_reasons[1024]; /* Printer state reasons */ ipp_jstate_t job_state; /* Job state */ char job_state_reasons[1024];/* Printer state reasons */ static const char * const jattrs[] = /* Job attributes we want */ { "job-state", "job-state-reasons" }; static const char * const pattrs[] = /* Printer attributes we want */ { "printer-state", "printer-state-reasons" }; /* * Open a connection to the printer... */ http = httpConnect2(data->hostname, data->port, NULL, AF_UNSPEC, data->encryption, 1, 0, NULL); /* * Loop until the job is canceled, aborted, or completed. */ printer_state = (ipp_pstate_t)0; printer_state_reasons[0] = '\0'; job_state = (ipp_jstate_t)0; job_state_reasons[0] = '\0'; while (data->job_state < IPP_JSTATE_CANCELED) { /* * Reconnect to the printer as needed... */ if (httpGetFd(http) < 0) httpReconnect2(http, 30000, NULL); if (httpGetFd(http) >= 0) { /* * Connected, so check on the printer state... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, data->uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); response = cupsDoRequest(http, request, data->resource); if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) printer_state = (ipp_pstate_t)ippGetInteger(attr, 0); if ((attr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) != NULL) ippAttributeString(attr, printer_state_reasons, sizeof(printer_state_reasons)); if (printer_state != data->printer_state || strcmp(printer_state_reasons, data->printer_state_reasons)) { printf("PRINTER: %s (%s)\n", ippEnumString("printer-state", (int)printer_state), printer_state_reasons); data->printer_state = printer_state; strlcpy(data->printer_state_reasons, printer_state_reasons, sizeof(data->printer_state_reasons)); } ippDelete(response); if (data->job_id > 0) { /* * Check the status of the job itself... */ request = ippNewRequest(IPP_OP_GET_JOB_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, data->uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", data->job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(jattrs) / sizeof(jattrs[0])), NULL, jattrs); response = cupsDoRequest(http, request, data->resource); if ((attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM)) != NULL) job_state = (ipp_jstate_t)ippGetInteger(attr, 0); if ((attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD)) != NULL) ippAttributeString(attr, job_state_reasons, sizeof(job_state_reasons)); if (job_state != data->job_state || strcmp(job_state_reasons, data->job_state_reasons)) { printf("JOB %d: %s (%s)\n", data->job_id, ippEnumString("job-state", (int)job_state), job_state_reasons); data->job_state = job_state; strlcpy(data->job_state_reasons, job_state_reasons, sizeof(data->job_state_reasons)); } ippDelete(response); } } if (data->job_state < IPP_JSTATE_CANCELED) { /* * Sleep for 5 seconds... */ sleep(5); } } /* * Cleanup and return... */ httpClose(http); printf("FINISHED MONITORING JOB %d\n", data->job_id); return (NULL); } /* * 'run_client()' - Run a client thread. */ static void * /* O - Thread exit code */ run_client( _client_data_t *data) /* I - Client data */ { _cups_thread_t monitor_id; /* Monitoring thread ID */ const char *name; /* Job name */ char tempfile[1024] = ""; /* Temporary file (if any) */ _client_data_t ldata; /* Local client data */ http_t *http; /* Connection to printer */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Attribute in response */ static const char * const pattrs[] = /* Printer attributes we are interested in */ { "all", "media-col-database" }; ldata = *data; /* * Start monitoring the printer in the background... */ monitor_id = _cupsThreadCreate((_cups_thread_func_t)monitor_printer, &ldata); /* * Open a connection to the printer... */ http = httpConnect2(data->hostname, data->port, NULL, AF_UNSPEC, data->encryption, 1, 0, NULL); /* * Query printer status and capabilities... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, ldata.uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); response = cupsDoRequest(http, request, ldata.resource); if (verbosity) show_capabilities(response); /* * Now figure out what we will be printing... */ if (ldata.docfile) { /* * User specified a print file, figure out the format... */ const char *ext; /* Filename extension */ if ((ext = strrchr(ldata.docfile, '.')) != NULL) { /* * Guess the format from the extension... */ if (!strcmp(ext, ".jpg")) ldata.docformat = "image/jpeg"; else if (!strcmp(ext, ".pdf")) ldata.docformat = "application/pdf"; else if (!strcmp(ext, ".ps")) ldata.docformat = "application/postscript"; else if (!strcmp(ext, ".pwg")) ldata.docformat = "image/pwg-raster"; else if (!strcmp(ext, ".urf")) ldata.docformat = "image/urf"; else ldata.docformat = "application/octet-stream"; } else { /* * Tell the printer to auto-detect... */ ldata.docformat = "application/octet-stream"; } } else { /* * No file specified, make something to test with... */ if ((ldata.docfile = make_raster_file(response, ldata.grayscale, tempfile, sizeof(tempfile), &ldata.docformat)) == NULL) return ((void *)1); } ippDelete(response); /* * Create a job and wait for completion... */ do { request = ippNewRequest(IPP_OP_CREATE_JOB); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, ldata.uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if ((name = strrchr(ldata.docfile, '/')) != NULL) name ++; else name = ldata.docfile; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, name); if (verbosity) show_attributes("Create-Job request", 1, request); response = cupsDoRequest(http, request, ldata.resource); if (verbosity) show_attributes("Create-Job response", 0, response); if (cupsLastError() == IPP_STATUS_ERROR_BUSY) { puts("Printer is busy - retrying in 5 seconds..."); sleep(5); ippDelete(response); response = NULL; } else if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE) { printf("Unable to create print job: %s\n", cupsLastErrorString()); ldata.job_state = IPP_JSTATE_ABORTED; ippDelete(response); response = NULL; } } while (cupsLastError() == IPP_STATUS_ERROR_BUSY); if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE) goto cleanup; if ((attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { puts("No job-id returned in Create-Job request."); ldata.job_state = IPP_JSTATE_ABORTED; goto cleanup; } ldata.job_id = ippGetInteger(attr, 0); printf("CREATED JOB %d, sending %s of type %s\n", ldata.job_id, ldata.docfile, ldata.docformat); ippDelete(response); request = ippNewRequest(IPP_OP_SEND_DOCUMENT); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, ldata.uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", ldata.job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, ldata.docformat); ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1); if (verbosity) show_attributes("Send-Document request", 1, request); response = cupsDoFileRequest(http, request, ldata.resource, ldata.docfile); if (verbosity) show_attributes("Send-Document response", 0, response); if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE) { printf("Unable to print file: %s\n", cupsLastErrorString()); ldata.job_state = IPP_JSTATE_ABORTED; goto cleanup; } puts("WAITING FOR JOB TO COMPLETE"); while (ldata.job_state < IPP_JSTATE_CANCELED) sleep(1); /* * Cleanup after ourselves... */ cleanup: httpClose(http); if (tempfile[0] && !ldata.keepfile) unlink(tempfile); _cupsThreadWait(monitor_id); _cupsMutexLock(&client_mutex); client_count --; _cupsMutexUnlock(&client_mutex); return (NULL); } /* * 'show_attributes()' - Show attributes in a request or response. */ static void show_attributes(const char *title, /* I - Title */ int request, /* I - 1 for request, 0 for response */ ipp_t *ipp) /* I - IPP request/response */ { int minor, major = ippGetVersion(ipp, &minor); /* IPP version number */ ipp_tag_t group = IPP_TAG_ZERO; /* Current group tag */ ipp_attribute_t *attr; /* Current attribute */ const char *name; /* Attribute name */ char buffer[1024]; /* Value */ printf("%s:\n", title); printf(" version=%d.%d\n", major, minor); printf(" request-id=%d\n", ippGetRequestId(ipp)); if (!request) printf(" status-code=%s\n", ippErrorString(ippGetStatusCode(ipp))); for (attr = ippFirstAttribute(ipp); attr; attr = ippNextAttribute(ipp)) { if (group != ippGetGroupTag(attr)) { group = ippGetGroupTag(attr); if (group) printf(" %s:\n", ippTagString(group)); } if ((name = ippGetName(attr)) != NULL) { ippAttributeString(attr, buffer, sizeof(buffer)); printf(" %s(%s%s)=%s\n", name, ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr)), buffer); } } } /* * 'show_capabilities()' - Show printer capabilities. */ static void show_capabilities(ipp_t *response) /* I - Printer attributes */ { int i; /* Looping var */ ipp_attribute_t *attr; /* Attribute */ char buffer[1024]; /* Attribute value buffer */ static const char * const pattrs[] = /* Attributes we want to show */ { "copies-default", "copies-supported", "finishings-default", "finishings-ready", "finishings-supported", "media-default", "media-ready", "media-supported", "output-bin-default", "output-bin-supported", "print-color-mode-default", "print-color-mode-supported", "sides-default", "sides-supported", "document-format-default", "document-format-supported", "pwg-raster-document-resolution-supported", "pwg-raster-document-type-supported", "urf-supported" }; puts("CAPABILITIES:"); for (i = 0; i < (int)(sizeof(pattrs) / sizeof(pattrs[0])); i ++) { if ((attr = ippFindAttribute(response, pattrs[i], IPP_TAG_ZERO)) != NULL) { ippAttributeString(attr, buffer, sizeof(buffer)); printf(" %s=%s\n", pattrs[i], buffer); } } } /* * 'usage()' - Show program usage... */ static void usage(void) { puts("Usage: ./testclient printer-uri [options]"); puts("Options:"); puts(" -c num-clients Simulate multiple clients"); puts(" -d document-format Generate the specified format"); puts(" -f print-file Print the named file"); puts(" -g Force grayscale printing"); puts(" -k Keep temporary files"); puts(" -v Be more verbose"); } cups-2.4.7/cups/testcache.c0000644000175000017500000000423114502571342015442 0ustar zdohnalzdohnal/* * PPD cache testing program for CUPS. * * Copyright 2009-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "ppd-private.h" #include "file-private.h" /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ const char *ppdfile = NULL;/* PPD filename */ ppd_file_t *ppd; /* PPD file */ int num_options = 0;/* Number of options */ cups_option_t *options = NULL;/* Options */ _ppd_cache_t *pc; /* PPD cache and PWG mapping data */ int num_finishings, /* Number of finishing options */ finishings[20]; /* Finishing options */ ppd_choice_t *ppd_bin; /* OutputBin value */ const char *output_bin; /* output-bin value */ if (argc < 2) { puts("Usage: ./testcache filename.ppd [name=value ... name=value]"); return (1); } ppdfile = argv[1]; if ((ppd = ppdOpenFile(ppdfile)) == NULL) { ppd_status_t err; /* Last error in file */ int line; /* Line number in file */ err = ppdLastError(&line); fprintf(stderr, "Unable to open \"%s\": %s on line %d\n", ppdfile, ppdErrorString(err), line); return (1); } if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL) { fprintf(stderr, "Unable to create PPD cache from \"%s\".\n", ppdfile); return (1); } for (i = 2; i < argc; i ++) num_options = cupsParseOptions(argv[i], num_options, &options); ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); num_finishings = _ppdCacheGetFinishingValues(ppd, pc, (int)sizeof(finishings) / sizeof(finishings[0]), finishings); if (num_finishings > 0) { fputs("finishings=", stdout); for (i = 0; i < num_finishings; i ++) if (i) printf(",%d", finishings[i]); else printf("%d", finishings[i]); fputs("\n", stdout); } if ((ppd_bin = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL && (output_bin = _ppdCacheGetBin(pc, ppd_bin->choice)) != NULL) printf("output-bin=\"%s\"\n", output_bin); return (0); } cups-2.4.7/cups/testarray.c0000644000175000017500000002470214502571342015522 0ustar zdohnalzdohnal/* * Array test program for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "string-private.h" #include "debug-private.h" #include "array-private.h" #include "dir.h" /* * Local functions... */ static double get_seconds(void); static int load_words(const char *filename, cups_array_t *array); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(void) { int i; /* Looping var */ cups_array_t *array, /* Test array */ *dup_array; /* Duplicate array */ int status; /* Exit status */ char *text; /* Text from array */ char word[256]; /* Word from file */ double start, /* Start time */ end; /* End time */ cups_dir_t *dir; /* Current directory */ cups_dentry_t *dent; /* Directory entry */ char *saved[32]; /* Saved entries */ void *data; /* User data for arrays */ /* * No errors so far... */ status = 0; /* * cupsArrayNew() */ fputs("cupsArrayNew: ", stdout); data = (void *)"testarray"; array = cupsArrayNew((cups_array_func_t)strcmp, data); if (array) puts("PASS"); else { puts("FAIL (returned NULL, expected pointer)"); status ++; } /* * cupsArrayUserData() */ fputs("cupsArrayUserData: ", stdout); if (cupsArrayUserData(array) == data) puts("PASS"); else { printf("FAIL (returned %p instead of %p!)\n", cupsArrayUserData(array), data); status ++; } /* * cupsArrayAdd() */ fputs("cupsArrayAdd: ", stdout); if (!cupsArrayAdd(array, strdup("One Fish"))) { puts("FAIL (\"One Fish\")"); status ++; } else { if (!cupsArrayAdd(array, strdup("Two Fish"))) { puts("FAIL (\"Two Fish\")"); status ++; } else { if (!cupsArrayAdd(array, strdup("Red Fish"))) { puts("FAIL (\"Red Fish\")"); status ++; } else { if (!cupsArrayAdd(array, strdup("Blue Fish"))) { puts("FAIL (\"Blue Fish\")"); status ++; } else puts("PASS"); } } } /* * cupsArrayCount() */ fputs("cupsArrayCount: ", stdout); if (cupsArrayCount(array) == 4) puts("PASS"); else { printf("FAIL (returned %d, expected 4)\n", cupsArrayCount(array)); status ++; } /* * cupsArrayFirst() */ fputs("cupsArrayFirst: ", stdout); if ((text = (char *)cupsArrayFirst(array)) != NULL && !strcmp(text, "Blue Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"Blue Fish\")\n", text); status ++; } /* * cupsArrayNext() */ fputs("cupsArrayNext: ", stdout); if ((text = (char *)cupsArrayNext(array)) != NULL && !strcmp(text, "One Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text); status ++; } /* * cupsArrayLast() */ fputs("cupsArrayLast: ", stdout); if ((text = (char *)cupsArrayLast(array)) != NULL && !strcmp(text, "Two Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"Two Fish\")\n", text); status ++; } /* * cupsArrayPrev() */ fputs("cupsArrayPrev: ", stdout); if ((text = (char *)cupsArrayPrev(array)) != NULL && !strcmp(text, "Red Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"Red Fish\")\n", text); status ++; } /* * cupsArrayFind() */ fputs("cupsArrayFind: ", stdout); if ((text = (char *)cupsArrayFind(array, (void *)"One Fish")) != NULL && !strcmp(text, "One Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text); status ++; } /* * cupsArrayCurrent() */ fputs("cupsArrayCurrent: ", stdout); if ((text = (char *)cupsArrayCurrent(array)) != NULL && !strcmp(text, "One Fish")) puts("PASS"); else { printf("FAIL (returned \"%s\", expected \"One Fish\")\n", text); status ++; } /* * cupsArrayDup() */ fputs("cupsArrayDup: ", stdout); if ((dup_array = cupsArrayDup(array)) != NULL && cupsArrayCount(dup_array) == 4) puts("PASS"); else { printf("FAIL (returned %p with %d elements, expected pointer with 4 elements)\n", (void *)dup_array, cupsArrayCount(dup_array)); status ++; } /* * cupsArrayRemove() */ fputs("cupsArrayRemove: ", stdout); if (cupsArrayRemove(array, (void *)"One Fish") && cupsArrayCount(array) == 3) puts("PASS"); else { printf("FAIL (returned 0 with %d elements, expected 1 with 4 elements)\n", cupsArrayCount(array)); status ++; } /* * cupsArrayClear() */ fputs("cupsArrayClear: ", stdout); cupsArrayClear(array); if (cupsArrayCount(array) == 0) puts("PASS"); else { printf("FAIL (%d elements, expected 0 elements)\n", cupsArrayCount(array)); status ++; } /* * Now load this source file and grab all of the unique words... */ fputs("Load unique words: ", stdout); fflush(stdout); start = get_seconds(); if ((dir = cupsDirOpen(".")) == NULL) { puts("FAIL (cupsDirOpen failed)"); status ++; } else { while ((dent = cupsDirRead(dir)) != NULL) { i = (int)strlen(dent->filename) - 2; if (i > 0 && dent->filename[i] == '.' && (dent->filename[i + 1] == 'c' || dent->filename[i + 1] == 'h')) load_words(dent->filename, array); } cupsDirClose(dir); end = get_seconds(); printf("%d words in %.3f seconds (%.0f words/sec), ", cupsArrayCount(array), end - start, cupsArrayCount(array) / (end - start)); fflush(stdout); for (text = (char *)cupsArrayFirst(array); text;) { /* * Copy this word to the word buffer (safe because we strdup'd from * the same buffer in the first place... :) */ strlcpy(word, text, sizeof(word)); /* * Grab the next word and compare... */ if ((text = (char *)cupsArrayNext(array)) == NULL) break; if (strcmp(word, text) >= 0) break; } if (text) { printf("FAIL (\"%s\" >= \"%s\"!)\n", word, text); status ++; } else puts("PASS"); } /* * Test deleting with iteration... */ fputs("Delete While Iterating: ", stdout); text = (char *)cupsArrayFirst(array); cupsArrayRemove(array, text); free(text); text = (char *)cupsArrayNext(array); if (!text) { puts("FAIL (cupsArrayNext returned NULL!)"); status ++; } else puts("PASS"); /* * Test save/restore... */ fputs("cupsArraySave: ", stdout); for (i = 0, text = (char *)cupsArrayFirst(array); i < 32; i ++, text = (char *)cupsArrayNext(array)) { saved[i] = text; if (!cupsArraySave(array)) break; } if (i < 32) printf("FAIL (depth = %d)\n", i); else puts("PASS"); fputs("cupsArrayRestore: ", stdout); while (i > 0) { i --; text = cupsArrayRestore(array); if (text != saved[i]) break; } if (i) printf("FAIL (depth = %d)\n", i); else puts("PASS"); /* * Delete the arrays... */ cupsArrayDelete(array); cupsArrayDelete(dup_array); /* * Test the array with string functions... */ fputs("_cupsArrayNewStrings(\" \\t\\nfoo bar\\tboo\\nfar\", ' '): ", stdout); array = _cupsArrayNewStrings(" \t\nfoo bar\tboo\nfar", ' '); if (!array) { status = 1; puts("FAIL (unable to create array)"); } else if (cupsArrayCount(array) != 4) { status = 1; printf("FAIL (got %d elements, expected 4)\n", cupsArrayCount(array)); } else if (strcmp(text = (char *)cupsArrayFirst(array), "bar")) { status = 1; printf("FAIL (first element \"%s\", expected \"bar\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "boo")) { status = 1; printf("FAIL (first element \"%s\", expected \"boo\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "far")) { status = 1; printf("FAIL (first element \"%s\", expected \"far\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "foo")) { status = 1; printf("FAIL (first element \"%s\", expected \"foo\")\n", text); } else puts("PASS"); fputs("_cupsArrayAddStrings(array, \"foo2,bar2\", ','): ", stdout); _cupsArrayAddStrings(array, "foo2,bar2", ','); if (cupsArrayCount(array) != 6) { status = 1; printf("FAIL (got %d elements, expected 6)\n", cupsArrayCount(array)); } else if (strcmp(text = (char *)cupsArrayFirst(array), "bar")) { status = 1; printf("FAIL (first element \"%s\", expected \"bar\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "bar2")) { status = 1; printf("FAIL (first element \"%s\", expected \"bar2\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "boo")) { status = 1; printf("FAIL (first element \"%s\", expected \"boo\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "far")) { status = 1; printf("FAIL (first element \"%s\", expected \"far\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "foo")) { status = 1; printf("FAIL (first element \"%s\", expected \"foo\")\n", text); } else if (strcmp(text = (char *)cupsArrayNext(array), "foo2")) { status = 1; printf("FAIL (first element \"%s\", expected \"foo2\")\n", text); } else puts("PASS"); cupsArrayDelete(array); /* * Summarize the results and return... */ if (!status) puts("\nALL TESTS PASSED!"); else printf("\n%d TEST(S) FAILED!\n", status); return (status); } /* * 'get_seconds()' - Get the current time in seconds... */ #ifdef _WIN32 # include static double get_seconds(void) { } #else # include static double get_seconds(void) { struct timeval curtime; /* Current time */ gettimeofday(&curtime, NULL); return (curtime.tv_sec + 0.000001 * curtime.tv_usec); } #endif /* _WIN32 */ /* * 'load_words()' - Load words from a file. */ static int /* O - 1 on success, 0 on failure */ load_words(const char *filename, /* I - File to load */ cups_array_t *array) /* I - Array to add to */ { FILE *fp; /* Test file */ char word[256]; /* Word from file */ if ((fp = fopen(filename, "r")) == NULL) { perror(filename); return (0); } while (fscanf(fp, "%255s", word) == 1) { if (!cupsArrayFind(array, word)) cupsArrayAdd(array, strdup(word)); } fclose(fp); return (1); } cups-2.4.7/cups/testadmin.c0000644000175000017500000000415014502571342015467 0ustar zdohnalzdohnal/* * Admin function test program for CUPS. * * Copyright 2007-2013 by Apple Inc. * Copyright 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "adminutil.h" #include "string-private.h" /* * Local functions... */ static void show_settings(int num_settings, cups_option_t *settings); /* * 'main()' - Main entry. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, /* Looping var */ num_settings; /* Number of settings */ cups_option_t *settings; /* Settings */ http_t *http; /* Connection to server */ /* * Connect to the server using the defaults... */ http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL); /* * Set the current configuration if we have anything on the command-line... */ if (argc > 1) { for (i = 1, num_settings = 0, settings = NULL; i < argc; i ++) num_settings = cupsParseOptions(argv[i], num_settings, &settings); if (cupsAdminSetServerSettings(http, num_settings, settings)) { puts("New server settings:"); cupsFreeOptions(num_settings, settings); } else { printf("Server settings not changed: %s\n", cupsLastErrorString()); return (1); } } else puts("Current server settings:"); /* * Get the current configuration... */ if (cupsAdminGetServerSettings(http, &num_settings, &settings)) { show_settings(num_settings, settings); cupsFreeOptions(num_settings, settings); return (0); } else { printf(" %s\n", cupsLastErrorString()); return (1); } } /* * 'show_settings()' - Show settings in the array... */ static void show_settings( int num_settings, /* I - Number of settings */ cups_option_t *settings) /* I - Settings */ { while (num_settings > 0) { printf(" %s=%s\n", settings->name, settings->value); settings ++; num_settings --; } } cups-2.4.7/cups/test2.ppd0000644000175000017500000002137614502571342015112 0ustar zdohnalzdohnal*PPD-Adobe: "4.3" *% *% Test PPD file #2 for CUPS. *% *% This file is used to test the CUPS PPD API functions and cannot be *% used with any known printers. Look on the CUPS website for working PPD *% files. *% *% If you are a PPD file developer, consider using the PPD compiler (ppdc) *% to create your PPD files - not only will it save you time, it produces *% consistently high-quality files. *% *% Copyright (c) 2007-2018 by Apple Inc. *% Copyright (c) 2002-2006 by Easy Software Products. *% *% Licensed under Apache License v2.0. See the file "LICENSE" for more *% information. *FormatVersion: "4.3" *FileVersion: "2.3" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "TEST.PPD" *Manufacturer: "Apple" *Product: "(Test2)" *cupsVersion: 2.3 *ModelName: "Test2" *ShortNickName: "Test2" *NickName: "Test2 for CUPS" *PSVersion: "(3010.000) 0" *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "1" *LandscapeOrientation: Plus90 *TTRasterizer: Type42 *% These constraints are used to test ppdConflicts() and cupsResolveConflicts() *cupsUIConstraints envelope: "*PageSize Letter *InputSlot Envelope" *cupsUIConstraints envelope: "*PageSize A4 *InputSlot Envelope" *cupsUIResolver envelope: "*InputSlot Manual *PageSize Env10" *cupsUIConstraints envphoto: "*PageSize Env10 *InputSlot Envelope *Quality Photo" *cupsUIResolver envphoto: "*Quality Normal" *% This constraint is used to test ppdInstallableConflict() *cupsUIConstraints: "*Duplex *InstalledDuplexer False" *% These constraints are used to test the loop detection code in cupsResolveConflicts() *cupsUIConstraints loop1: "*PageSize A4 *Quality Photo" *cupsUIResolver loop1: "*Quality Normal" *cupsUIConstraints loop2: "*PageSize A4 *Quality Normal" *cupsUIResolver loop2: "*Quality Photo" *% For PageSize, we have put all of the translations in-line... *OpenUI *PageSize/Page Size: PickOne *fr.Translation PageSize/French Page Size: "" *fr_CA.Translation PageSize/French Canadian Page Size: "" *OrderDependency: 10 AnySetup *PageSize *DefaultPageSize: Letter *PageSize Letter/US Letter: "PageSize=Letter" *fr.PageSize Letter/French US Letter: "" *fr_CA.PageSize Letter/French Canadian US Letter: "" *PageSize A4/A4: "PageSize=A4" *fr.PageSize A4/French A4: "" *fr_CA.PageSize A4/French Canadian A4: "" *PageSize Env10/#10 Envelope: "PageSize=Env10" *fr.PageSize Env10/French #10 Envelope: "" *fr_CA.PageSize Env10/French Canadian #10 Envelope: "" *CloseUI: *PageSize *% For PageRegion, we have separated the translations... *OpenUI *PageRegion/Page Region: PickOne *OrderDependency: 10 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion Letter/US Letter: "PageRegion=Letter" *PageRegion A4/A4: "PageRegion=A4" *PageRegion Env10/#10 Envelope: "PageRegion=Env10" *CloseUI: *PageRegion *fr.Translation PageRegion/French Page Region: "" *fr.PageRegion Letter/French US Letter: "" *fr.PageRegion A4/French A4: "" *fr.PageRegion Env10/French #10 Envelope: "" *fr_CA.Translation PageRegion/French Canadian Page Region: "" *fr_CA.PageRegion Letter/French Canadian US Letter: "" *fr_CA.PageRegion A4/French Canadian A4: "" *fr_CA.PageRegion Env10/French Canadian #10 Envelope: "" *DefaultImageableArea: Letter *ImageableArea Letter: "18 36 594 756" *ImageableArea A4: "18 36 577 806" *ImageableArea Env10: "18 36 279 648" *DefaultPaperDimension: Letter *PaperDimension Letter: "612 792" *PaperDimension A4: "595 842" *PaperDimension Env10: "297 684" *% Custom page size support *HWMargins: 0 0 0 0 *NonUIOrderDependency: 100 AnySetup *CustomPageSize True *CustomPageSize True/Custom Page Size: "PageSize=Custom" *ParamCustomPageSize Width: 1 points 36 1080 *ParamCustomPageSize Height: 2 points 36 86400 *ParamCustomPageSize WidthOffset/Width Offset: 3 points 0 0 *ParamCustomPageSize HeightOffset/Height Offset: 4 points 0 0 *ParamCustomPageSize Orientation: 5 int 0 0 *cupsMediaQualifier2: InputSlot *cupsMediaQualifier3: Quality *cupsMaxSize .Manual.: "1000 1000" *cupsMinSize .Manual.: "100 100" *cupsMinSize .Manual.Photo: "200 200" *cupsMinSize ..Photo: "300 300" *OpenUI *InputSlot/Input Slot: PickOne *OrderDependency: 20 AnySetup *InputSlot *DefaultInputSlot: Tray *InputSlot Tray/Tray: "InputSlot=Tray" *InputSlot Manual/Manual Feed: "InputSlot=Manual" *InputSlot Envelope/Envelope Feed: "InputSlot=Envelope" *CloseUI: *InputSlot *OpenUI *Quality/Output Mode: PickOne *OrderDependency: 20 AnySetup *Quality *DefaultQuality: Normal *Quality Draft: "Quality=Draft" *Quality Normal: "Quality=Normal" *Quality Photo: "Quality=Photo" *CloseUI: *Quality *OpenUI *Duplex/2-Sided Printing: PickOne *OrderDependency: 10 DocumentSetup *Duplex *DefaultDuplex: None *Duplex None/Off: "Duplex=None" *Duplex DuplexNoTumble/Long Edge: "Duplex=DuplexNoTumble" *Duplex DuplexTumble/Short Edge: "Duplex=DuplexTumble" *CloseUI: *Duplex *% Installable option... *OpenGroup: InstallableOptions/Installable Options *OpenUI InstalledDuplexer/Duplexer Installed: Boolean *DefaultInstalledDuplexer: False *InstalledDuplexer False: "" *InstalledDuplexer True: "" *CloseUI: *InstalledDuplexer *CloseGroup: InstallableOptions *% Custom options... *OpenGroup: Extended/Extended Options *OpenUI IntOption/Integer: PickOne *OrderDependency: 30 AnySetup *IntOption *DefaultIntOption: None *IntOption None: "" *IntOption 1: "IntOption=1" *IntOption 2: "IntOption=2" *IntOption 3: "IntOption=3" *CloseUI: *IntOption *CustomIntOption True/Custom Integer: "IntOption=Custom" *ParamCustomIntOption Integer: 1 int -100 100 *OpenUI StringOption/String: PickOne *OrderDependency: 40 AnySetup *StringOption *DefaultStringOption: None *StringOption None: "" *StringOption foo: "StringOption=foo" *StringOption bar: "StringOption=bar" *CloseUI: *StringOption *CustomStringOption True/Custom String: "StringOption=Custom" *ParamCustomStringOption String: 1 string 1 10 *CloseGroup: Extended *% IPP reasons for ppdLocalizeIPPReason tests *cupsIPPReason foo/Foo Reason: "http://foo/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/foo/bar.html" *End *fr.cupsIPPReason foo/La Foo Reason: "text:La%20Long%20 text:Foo%20Reason http://foo/fr/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/fr/foo/bar.html" *End *zh_TW.cupsIPPReason foo/Number 1 Foo Reason: "text:Number%201%20 text:Foo%20Reason http://foo/zh_TW/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/zh_TW/foo/bar.html" *End *zh.cupsIPPReason foo/Number 2 Foo Reason: "text:Number%202%20 text:Foo%20Reason http://foo/zh/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/zh/foo/bar.html" *End *% Marker names for ppdLocalizeMarkerName tests *cupsMarkerName cyan/Cyan Toner: "" *fr.cupsMarkerName cyan/La Toner Cyan: "" *zh_TW.cupsMarkerName cyan/Number 1 Cyan Toner: "" *zh.cupsMarkerName cyan/Number 2 Cyan Toner: "" *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM cups-2.4.7/cups/test.ppd0000644000175000017500000002354714502571342015032 0ustar zdohnalzdohnal*PPD-Adobe: "4.3" *% *% Test PPD file for CUPS. *% *% This file is used to test the CUPS PPD API functions and cannot be *% used with any known printers. Look on the CUPS website for working PPD *% files. *% *% If you are a PPD file developer, consider using the PPD compiler (ppdc) *% to create your PPD files - not only will it save you time, it produces *% consistently high-quality files. *% *% Copyright (c) 2007-2018 by Apple Inc. *% Copyright (c) 2002-2006 by Easy Software Products. *% *% Licensed under Apache License v2.0. See the file "LICENSE" for more *% information. *FormatVersion: "4.3" *FileVersion: "2.3" *LanguageVersion: English *LanguageEncoding: ISOLatin1 *PCFileName: "TEST.PPD" *Manufacturer: "Apple" *Product: "(Test)" *cupsVersion: 2.3 *ModelName: "Test" *ShortNickName: "Test" *NickName: "Test for CUPS" *PSVersion: "(3010.000) 0" *LanguageLevel: "3" *ColorDevice: True *DefaultColorSpace: RGB *FileSystem: False *Throughput: "1" *LandscapeOrientation: Plus90 *TTRasterizer: Type42 *cupsFilter: "application/vnd.cups-raster 0 -" *RequiresPageRegion All: True *% These constraints are used to test ppdConflicts() and cupsResolveConflicts() *UIConstraints: *PageSize Letter *InputSlot Envelope *UIConstraints: *InputSlot Envelope *PageSize Letter *UIConstraints: *PageRegion Letter *InputSlot Envelope *UIConstraints: *InputSlot Envelope *PageRegion Letter *% These constraints are used to test ppdInstallableConflict() *UIConstraints: "*Duplex *InstalledDuplexer False" *UIConstraints: "*InstalledDuplexer False *Duplex" *% These attributes test ppdFindAttr/ppdFindNext... *cupsTest Foo/I Love Foo: "" *cupsTest Bar/I Love Bar: "" *% For PageSize, we have put all of the translations in-line... *OpenUI *PageSize/Page Size: PickOne *fr.Translation PageSize/French Page Size: "" *fr_CA.Translation PageSize/French Canadian Page Size: "" *OrderDependency: 10 AnySetup *PageSize *DefaultPageSize: Letter *PageSize Letter/US Letter: "PageSize=Letter" *fr.PageSize Letter/French US Letter: "" *fr_CA.PageSize Letter/French Canadian US Letter: "" *PageSize Letter.Banner/US Letter Banner: "PageSize=Letter.Banner" *fr.PageSize Letter.Banner/French US Letter Banner: "" *fr_CA.PageSize Letter.Banner/French Canadian US Letter Banner: "" *PageSize Letter.Fullbleed/US Letter Borderless: "PageSize=Letter.Fullbleed" *fr.PageSize Letter.Fullbleed/French US Letter Borderless: "" *fr_CA.PageSize Letter.Fullbleed/French Canadian US Letter Borderless: "" *PageSize A4/A4: "PageSize=A4" *fr.PageSize A4/French A4: "" *fr_CA.PageSize A4/French Canadian A4: "" *PageSize Env10/#10 Envelope: "PageSize=Env10" *fr.PageSize Env10/French #10 Envelope: "" *fr_CA.PageSize Env10/French Canadian #10 Envelope: "" *CloseUI: *PageSize *% For PageRegion, we have separated the translations... *OpenUI *PageRegion/Page Region: PickOne *OrderDependency: 10 AnySetup *PageRegion *DefaultPageRegion: Letter *PageRegion Letter/US Letter: "PageRegion=Letter" *PageRegion Letter.Banner/US Letter Banner: "PageRegion=Letter.Fullbleed" *PageRegion Letter.Fullbleed/US Letter Borderless: "PageRegion=Letter.Fullbleed" *PageRegion A4/A4: "PageRegion=A4" *PageRegion Env10/#10 Envelope: "PageRegion=Env10" *CloseUI: *PageRegion *fr.Translation PageRegion/French Page Region: "" *fr.PageRegion Letter/French US Letter: "" *fr.PageRegion Letter.Banner/French US Letter Banner: "" *fr.PageRegion Letter.Fullbleed/French US Letter Borderless: "" *fr.PageRegion A4/French A4: "" *fr.PageRegion Env10/French #10 Envelope: "" *fr_CA.Translation PageRegion/French Canadian Page Region: "" *fr_CA.PageRegion Letter/French Canadian US Letter: "" *fr_CA.PageRegion Letter.Banner/French Canadian US Letter Banner: "" *fr_CA.PageRegion Letter.Fullbleed/French Canadian US Letter Borderless: "" *fr_CA.PageRegion A4/French Canadian A4: "" *fr_CA.PageRegion Env10/French Canadian #10 Envelope: "" *DefaultImageableArea: Letter *ImageableArea Letter: "18 36 594 756" *ImageableArea Letter.Banner: "18 0 594 792" *ImageableArea Letter.Fullbleed: "0 0 612 792" *ImageableArea A4: "18 36 577 806" *ImageableArea Env10: "18 36 279 648" *DefaultPaperDimension: Letter *PaperDimension Letter: "612 792" *PaperDimension Letter.Banner: "612 792" *PaperDimension Letter.Fullbleed: "612 792" *PaperDimension A4: "595 842" *PaperDimension Env10: "297 684" *% Custom page size support *HWMargins: 0 0 0 0 *NonUIOrderDependency: 100 AnySetup *CustomPageSize True *CustomPageSize True/Custom Page Size: "PageSize=Custom" *ParamCustomPageSize Width: 1 points 36 1080 *ParamCustomPageSize Height: 2 points 36 86400 *ParamCustomPageSize WidthOffset/Width Offset: 3 points 0 0 *ParamCustomPageSize HeightOffset/Height Offset: 4 points 0 0 *ParamCustomPageSize Orientation: 5 int 0 0 *OpenUI *InputSlot/Input Slot: PickOne *OrderDependency: 20 AnySetup *InputSlot *DefaultInputSlot: Tray *InputSlot Tray/Tray: "InputSlot=Tray" *InputSlot Manual/Manual Feed: "InputSlot=Manual" *InputSlot Envelope/Envelope Feed: "InputSlot=Envelope" *CloseUI: *InputSlot *OpenUI *MediaType/Media Type: PickOne *OrderDependency: 25 AnySetup *MediaType *DefaultMediaType: Plain *MediaType Plain/Plain Paper: "MediaType=Plain" *MediaType Matte/Matte Photo: "MediaType=Matte" *MediaType Glossy/Glossy Photo: "MediaType=Glossy" *MediaType Transparency/Transparency Film: "MediaType=Transparency" *CloseUI: *MediaType *OpenUI *OutputBin/Output Tray: PickOne *OrderDependency: 25 AnySetup *OutputBin *DefaultOutputBin: Tray1 *OutputBin Auto/Automatic Tray: "OutputBin=Auto" *OutputBin Tray1/Tray 1: "OutputBin=Tray1" *OutputBin Tray2/Tray 2: "OutputBin=Tray2" *OutputBin MainTray/Main Tray: "OutputBin=MainTray" *CloseUI: *OutputBin *OpenUI *Duplex/2-Sided Printing: PickOne *OrderDependency: 10 DocumentSetup *Duplex *DefaultDuplex: None *Duplex None/Off: "Duplex=None" *Duplex DuplexNoTumble/Long Edge: "Duplex=DuplexNoTumble" *Duplex DuplexTumble/Short Edge: "Duplex=DuplexTumble" *CloseUI: *Duplex *% Installable option... *OpenGroup: InstallableOptions/Installable Options *OpenUI InstalledDuplexer/Duplexer Installed: Boolean *DefaultInstalledDuplexer: False *InstalledDuplexer False: "" *InstalledDuplexer True: "" *CloseUI: *InstalledDuplexer *CloseGroup: InstallableOptions *% Custom options... *OpenGroup: Extended/Extended Options *OpenUI IntOption/Integer: PickOne *OrderDependency: 30 AnySetup *IntOption *DefaultIntOption: None *IntOption None: "" *IntOption 1: "IntOption=1" *IntOption 2: "IntOption=2" *IntOption 3: "IntOption=3" *CloseUI: *IntOption *CustomIntOption True/Custom Integer: "IntOption=Custom" *ParamCustomIntOption Integer: 1 int -100 100 *OpenUI StringOption/String: PickOne *OrderDependency: 40 AnySetup *StringOption *DefaultStringOption: None *StringOption None: "" *StringOption foo: "StringOption=foo" *StringOption bar: "StringOption=bar" *CloseUI: *StringOption *CustomStringOption True/Custom String: "StringOption=Custom" *ParamCustomStringOption String1: 2 string 1 10 *ParamCustomStringOption String2: 1 string 1 10 *CloseGroup: Extended *% IPP reasons for ppdLocalizeIPPReason tests *cupsIPPReason foo/Foo Reason: "http://foo/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/foo/bar.html" *End *fr.cupsIPPReason foo/La Foo Reason: "text:La%20Long%20 text:Foo%20Reason http://foo/fr/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/fr/foo/bar.html" *End *zh_TW.cupsIPPReason foo/Number 1 Foo Reason: "text:Number%201%20 text:Foo%20Reason http://foo/zh_TW/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/zh_TW/foo/bar.html" *End *zh.cupsIPPReason foo/Number 2 Foo Reason: "text:Number%202%20 text:Foo%20Reason http://foo/zh/bar.html help:anchor='foo'%20bookID=Vendor%20Help /help/zh/foo/bar.html" *End *% Marker names for ppdLocalizeMarkerName tests *cupsMarkerName cyan/Cyan Toner: "" *fr.cupsMarkerName cyan/La Toner Cyan: "" *zh_TW.cupsMarkerName cyan/Number 1 Cyan Toner: "" *zh.cupsMarkerName cyan/Number 2 Cyan Toner: "" *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM *Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM *Font Bookman-Demi: Standard "(001.004S)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM *Font Bookman-Light: Standard "(001.004S)" Standard ROM *Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM *Font Courier: Standard "(002.004S)" Standard ROM *Font Courier-Bold: Standard "(002.004S)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM *Font Courier-Oblique: Standard "(002.004S)" Standard ROM *Font Helvetica: Standard "(001.006S)" Standard ROM *Font Helvetica-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM *Font Palatino-Bold: Standard "(001.005S)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM *Font Palatino-Italic: Standard "(001.005S)" Standard ROM *Font Palatino-Roman: Standard "(001.005S)" Standard ROM *Font Symbol: Special "(001.007S)" Special ROM *Font Times-Bold: Standard "(001.007S)" Standard ROM *Font Times-BoldItalic: Standard "(001.009S)" Standard ROM *Font Times-Italic: Standard "(001.007S)" Standard ROM *Font Times-Roman: Standard "(001.007S)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM *Font ZapfDingbats: Special "(001.004S)" Standard ROM cups-2.4.7/cups/tempfile.c0000644000175000017500000001152614502571342015311 0ustar zdohnalzdohnal/* * Temp file utilities for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ /* * 'cupsTempFd()' - Creates a temporary file. * * The temporary filename is returned in the filename buffer. * The temporary file is opened for reading and writing. */ int /* O - New file descriptor or -1 on error */ cupsTempFd(char *filename, /* I - Pointer to buffer */ int len) /* I - Size of buffer */ { int fd; /* File descriptor for temp file */ int tries; /* Number of tries */ const char *tmpdir; /* TMPDIR environment var */ #if (defined(__APPLE__) && defined(_CS_DARWIN_USER_TEMP_DIR)) || defined(_WIN32) char tmppath[1024]; /* Temporary directory */ #endif /* (__APPLE__ && _CS_DARWIN_USER_TEMP_DIR) || _WIN32 */ #ifdef _WIN32 DWORD curtime; /* Current time */ #else struct timeval curtime; /* Current time */ #endif /* _WIN32 */ /* * See if TMPDIR is defined... */ #ifdef _WIN32 if ((tmpdir = getenv("TEMP")) == NULL) { GetTempPathA(sizeof(tmppath), tmppath); tmpdir = tmppath; } #elif defined(__APPLE__) /* * On macOS and iOS, the TMPDIR environment variable is not always the best * location to place temporary files due to sandboxing. Instead, the confstr * function should be called to get the proper per-user, per-process TMPDIR * value. */ if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) tmpdir = NULL; if (!tmpdir) { #ifdef _CS_DARWIN_USER_TEMP_DIR if (confstr(_CS_DARWIN_USER_TEMP_DIR, tmppath, sizeof(tmppath))) tmpdir = tmppath; else #endif /* _CS_DARWIN_USER_TEMP_DIR */ tmpdir = "/private/tmp"; /* OS X 10.4 and earlier */ } #else /* * Previously we put root temporary files in the default CUPS temporary * directory under /var/spool/cups. However, since the scheduler cleans * out temporary files there and runs independently of the user apps, we * don't want to use it unless specifically told to by cupsd. */ if ((tmpdir = getenv("TMPDIR")) == NULL) tmpdir = "/tmp"; #endif /* _WIN32 */ /* * Make the temporary name using the specified directory... */ tries = 0; do { #ifdef _WIN32 /* * Get the current time of day... */ curtime = GetTickCount() + tries; /* * Format a string using the hex time values... */ snprintf(filename, (size_t)len - 1, "%s/%05lx%08lx", tmpdir, GetCurrentProcessId(), curtime); #else /* * Get the current time of day... */ gettimeofday(&curtime, NULL); /* * Format a string using the hex time values... */ snprintf(filename, (size_t)len - 1, "%s/%05x%08x", tmpdir, (unsigned)getpid(), (unsigned)(curtime.tv_sec + curtime.tv_usec + tries)); #endif /* _WIN32 */ /* * Open the file in "exclusive" mode, making sure that we don't * stomp on an existing file or someone's symlink crack... */ #ifdef _WIN32 fd = open(filename, _O_CREAT | _O_RDWR | _O_TRUNC | _O_BINARY, _S_IREAD | _S_IWRITE); #elif defined(O_NOFOLLOW) fd = open(filename, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); #else fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0600); #endif /* _WIN32 */ if (fd < 0 && errno != EEXIST) break; tries ++; } while (fd < 0 && tries < 1000); /* * Return the file descriptor... */ return (fd); } /* * 'cupsTempFile()' - Generates a temporary filename. * * The temporary filename is returned in the filename buffer. * This function is deprecated and will no longer generate a temporary * filename - use @link cupsTempFd@ or @link cupsTempFile2@ instead. * * @deprecated@ */ char * /* O - Filename or @code NULL@ on error */ cupsTempFile(char *filename, /* I - Pointer to buffer */ int len) /* I - Size of buffer */ { (void)len; if (filename) *filename = '\0'; return (NULL); } /* * 'cupsTempFile2()' - Creates a temporary CUPS file. * * The temporary filename is returned in the filename buffer. * The temporary file is opened for writing. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file or @code NULL@ on error */ cupsTempFile2(char *filename, /* I - Pointer to buffer */ int len) /* I - Size of buffer */ { cups_file_t *file; /* CUPS file */ int fd; /* File descriptor */ if ((fd = cupsTempFd(filename, len)) < 0) return (NULL); else if ((file = cupsFileOpenFd(fd, "w")) == NULL) { close(fd); unlink(filename); return (NULL); } else return (file); } cups-2.4.7/cups/string.c0000644000175000017500000003523514502571342015015 0ustar zdohnalzdohnal/* * String functions for CUPS. * * Copyright © 2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #define _CUPS_STRING_C_ #include "cups-private.h" #include "debug-internal.h" #include #include /* * Local globals... */ static _cups_mutex_t sp_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex to control access to pool */ static cups_array_t *stringpool = NULL; /* Global string pool */ /* * Local functions... */ static int compare_sp_items(_cups_sp_item_t *a, _cups_sp_item_t *b); /* * '_cupsStrAlloc()' - Allocate/reference a string. */ char * /* O - String pointer */ _cupsStrAlloc(const char *s) /* I - String */ { size_t slen; /* Length of string */ _cups_sp_item_t *item, /* String pool item */ *key; /* Search key */ /* * Range check input... */ if (!s) return (NULL); /* * Get the string pool... */ _cupsMutexLock(&sp_mutex); if (!stringpool) stringpool = cupsArrayNew((cups_array_func_t)compare_sp_items, NULL); if (!stringpool) { _cupsMutexUnlock(&sp_mutex); return (NULL); } /* * See if the string is already in the pool... */ key = (_cups_sp_item_t *)(s - offsetof(_cups_sp_item_t, str)); if ((item = (_cups_sp_item_t *)cupsArrayFind(stringpool, key)) != NULL) { /* * Found it, return the cached string... */ item->ref_count ++; #ifdef DEBUG_GUARDS DEBUG_printf(("5_cupsStrAlloc: Using string %p(%s) for \"%s\", guard=%08x, " "ref_count=%d", item, item->str, s, item->guard, item->ref_count)); if (item->guard != _CUPS_STR_GUARD) abort(); #endif /* DEBUG_GUARDS */ _cupsMutexUnlock(&sp_mutex); return (item->str); } /* * Not found, so allocate a new one... */ slen = strlen(s); item = (_cups_sp_item_t *)calloc(1, sizeof(_cups_sp_item_t) + slen); if (!item) { _cupsMutexUnlock(&sp_mutex); return (NULL); } item->ref_count = 1; memcpy(item->str, s, slen + 1); #ifdef DEBUG_GUARDS item->guard = _CUPS_STR_GUARD; DEBUG_printf(("5_cupsStrAlloc: Created string %p(%s) for \"%s\", guard=%08x, " "ref_count=%d", item, item->str, s, item->guard, item->ref_count)); #endif /* DEBUG_GUARDS */ /* * Add the string to the pool and return it... */ cupsArrayAdd(stringpool, item); _cupsMutexUnlock(&sp_mutex); return (item->str); } /* * '_cupsStrDate()' - Return a localized date for a given time value. * * This function works around the locale encoding issues of strftime... */ char * /* O - Buffer */ _cupsStrDate(char *buf, /* I - Buffer */ size_t bufsize, /* I - Size of buffer */ time_t timeval) /* I - Time value */ { struct tm date; /* Local date/time */ char temp[1024]; /* Temporary buffer */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread globals */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); localtime_r(&timeval, &date); if (cg->lang_default->encoding != CUPS_UTF8) { strftime(temp, sizeof(temp), "%c", &date); cupsCharsetToUTF8((cups_utf8_t *)buf, temp, (int)bufsize, cg->lang_default->encoding); } else strftime(buf, bufsize, "%c", &date); return (buf); } /* * '_cupsStrFlush()' - Flush the string pool. */ void _cupsStrFlush(void) { _cups_sp_item_t *item; /* Current item */ DEBUG_printf(("4_cupsStrFlush: %d strings in array", cupsArrayCount(stringpool))); _cupsMutexLock(&sp_mutex); for (item = (_cups_sp_item_t *)cupsArrayFirst(stringpool); item; item = (_cups_sp_item_t *)cupsArrayNext(stringpool)) free(item); cupsArrayDelete(stringpool); stringpool = NULL; _cupsMutexUnlock(&sp_mutex); } /* * '_cupsStrFormatd()' - Format a floating-point number. */ char * /* O - Pointer to end of string */ _cupsStrFormatd(char *buf, /* I - String */ char *bufend, /* I - End of string buffer */ double number, /* I - Number to format */ struct lconv *loc) /* I - Locale data */ { char *bufptr, /* Pointer into buffer */ temp[1024], /* Temporary string */ *tempdec, /* Pointer to decimal point */ *tempptr; /* Pointer into temporary string */ const char *dec; /* Decimal point */ int declen; /* Length of decimal point */ /* * Format the number using the "%.12f" format and then eliminate * unnecessary trailing 0's. */ snprintf(temp, sizeof(temp), "%.12f", number); for (tempptr = temp + strlen(temp) - 1; tempptr > temp && *tempptr == '0'; *tempptr-- = '\0'); /* * Next, find the decimal point... */ if (loc && loc->decimal_point) { dec = loc->decimal_point; declen = (int)strlen(dec); } else { dec = "."; declen = 1; } if (declen == 1) tempdec = strchr(temp, *dec); else tempdec = strstr(temp, dec); /* * Copy everything up to the decimal point... */ if (tempdec) { for (tempptr = temp, bufptr = buf; tempptr < tempdec && bufptr < bufend; *bufptr++ = *tempptr++); tempptr += declen; if (*tempptr && bufptr < bufend) { *bufptr++ = '.'; while (*tempptr && bufptr < bufend) *bufptr++ = *tempptr++; } *bufptr = '\0'; } else { strlcpy(buf, temp, (size_t)(bufend - buf + 1)); bufptr = buf + strlen(buf); } return (bufptr); } /* * '_cupsStrFree()' - Free/dereference a string. */ void _cupsStrFree(const char *s) /* I - String to free */ { _cups_sp_item_t *item, /* String pool item */ *key; /* Search key */ /* * Range check input... */ if (!s) return; /* * Check the string pool... * * We don't need to lock the mutex yet, as we only want to know if * the stringpool is initialized. The rest of the code will still * work if it is initialized before we lock... */ if (!stringpool) return; /* * See if the string is already in the pool... */ _cupsMutexLock(&sp_mutex); key = (_cups_sp_item_t *)(s - offsetof(_cups_sp_item_t, str)); if ((item = (_cups_sp_item_t *)cupsArrayFind(stringpool, key)) != NULL && item == key) { /* * Found it, dereference... */ #ifdef DEBUG_GUARDS if (key->guard != _CUPS_STR_GUARD) { DEBUG_printf(("5_cupsStrFree: Freeing string %p(%s), guard=%08x, ref_count=%d", key, key->str, key->guard, key->ref_count)); abort(); } #endif /* DEBUG_GUARDS */ item->ref_count --; if (!item->ref_count) { /* * Remove and free... */ cupsArrayRemove(stringpool, item); free(item); } } _cupsMutexUnlock(&sp_mutex); } /* * '_cupsStrRetain()' - Increment the reference count of a string. * * Note: This function does not verify that the passed pointer is in the * string pool, so any calls to it MUST know they are passing in a * good pointer. */ char * /* O - Pointer to string */ _cupsStrRetain(const char *s) /* I - String to retain */ { _cups_sp_item_t *item; /* Pointer to string pool item */ if (s) { item = (_cups_sp_item_t *)(s - offsetof(_cups_sp_item_t, str)); #ifdef DEBUG_GUARDS if (item->guard != _CUPS_STR_GUARD) { DEBUG_printf(("5_cupsStrRetain: Retaining string %p(%s), guard=%08x, " "ref_count=%d", item, s, item->guard, item->ref_count)); abort(); } #endif /* DEBUG_GUARDS */ _cupsMutexLock(&sp_mutex); item->ref_count ++; _cupsMutexUnlock(&sp_mutex); } return ((char *)s); } /* * '_cupsStrScand()' - Scan a string for a floating-point number. * * This function handles the locale-specific BS so that a decimal * point is always the period (".")... */ double /* O - Number */ _cupsStrScand(const char *buf, /* I - Pointer to number */ char **bufptr, /* O - New pointer or NULL on error */ struct lconv *loc) /* I - Locale data */ { char temp[1024], /* Temporary buffer */ *tempptr; /* Pointer into temporary buffer */ /* * Range check input... */ if (!buf) return (0.0); /* * Skip leading whitespace... */ while (_cups_isspace(*buf)) buf ++; /* * Copy leading sign, numbers, period, and then numbers... */ tempptr = temp; if (*buf == '-' || *buf == '+') *tempptr++ = *buf++; while (isdigit(*buf & 255)) if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = *buf++; else { if (bufptr) *bufptr = NULL; return (0.0); } if (*buf == '.') { /* * Read fractional portion of number... */ buf ++; if (loc && loc->decimal_point) { strlcpy(tempptr, loc->decimal_point, sizeof(temp) - (size_t)(tempptr - temp)); tempptr += strlen(tempptr); } else if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = '.'; else { if (bufptr) *bufptr = NULL; return (0.0); } while (isdigit(*buf & 255)) if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = *buf++; else { if (bufptr) *bufptr = NULL; return (0.0); } } if (*buf == 'e' || *buf == 'E') { /* * Read exponent... */ if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = *buf++; else { if (bufptr) *bufptr = NULL; return (0.0); } if (*buf == '+' || *buf == '-') { if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = *buf++; else { if (bufptr) *bufptr = NULL; return (0.0); } } while (isdigit(*buf & 255)) if (tempptr < (temp + sizeof(temp) - 1)) *tempptr++ = *buf++; else { if (bufptr) *bufptr = NULL; return (0.0); } } /* * Nul-terminate the temporary string and return the value... */ if (bufptr) *bufptr = (char *)buf; *tempptr = '\0'; return (atof(temp)); } /* * '_cupsStrStatistics()' - Return allocation statistics for string pool. */ size_t /* O - Number of strings */ _cupsStrStatistics(size_t *alloc_bytes, /* O - Allocated bytes */ size_t *total_bytes) /* O - Total string bytes */ { size_t count, /* Number of strings */ abytes, /* Allocated string bytes */ tbytes, /* Total string bytes */ len; /* Length of string */ _cups_sp_item_t *item; /* Current item */ /* * Loop through strings in pool, counting everything up... */ _cupsMutexLock(&sp_mutex); for (count = 0, abytes = 0, tbytes = 0, item = (_cups_sp_item_t *)cupsArrayFirst(stringpool); item; item = (_cups_sp_item_t *)cupsArrayNext(stringpool)) { /* * Count allocated memory, using a 64-bit aligned buffer as a basis. */ count += item->ref_count; len = (strlen(item->str) + 8) & (size_t)~7; abytes += sizeof(_cups_sp_item_t) + len; tbytes += item->ref_count * len; } _cupsMutexUnlock(&sp_mutex); /* * Return values... */ if (alloc_bytes) *alloc_bytes = abytes; if (total_bytes) *total_bytes = tbytes; return (count); } /* * '_cups_strcpy()' - Copy a string allowing for overlapping strings. */ void _cups_strcpy(char *dst, /* I - Destination string */ const char *src) /* I - Source string */ { while (*src) *dst++ = *src++; *dst = '\0'; } /* * '_cups_strdup()' - Duplicate a string. */ #ifndef HAVE_STRDUP char * /* O - New string pointer */ _cups_strdup(const char *s) /* I - String to duplicate */ { char *t; /* New string pointer */ size_t slen; /* Length of string */ if (!s) return (NULL); slen = strlen(s); if ((t = malloc(slen + 1)) == NULL) return (NULL); return (memcpy(t, s, slen + 1)); } #endif /* !HAVE_STRDUP */ /* * '_cups_strcasecmp()' - Do a case-insensitive comparison. */ int /* O - Result of comparison (-1, 0, or 1) */ _cups_strcasecmp(const char *s, /* I - First string */ const char *t) /* I - Second string */ { while (*s != '\0' && *t != '\0') { if (_cups_tolower(*s) < _cups_tolower(*t)) return (-1); else if (_cups_tolower(*s) > _cups_tolower(*t)) return (1); s ++; t ++; } if (*s == '\0' && *t == '\0') return (0); else if (*s != '\0') return (1); else return (-1); } /* * '_cups_strncasecmp()' - Do a case-insensitive comparison on up to N chars. */ 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 */ { while (*s != '\0' && *t != '\0' && n > 0) { if (_cups_tolower(*s) < _cups_tolower(*t)) return (-1); else if (_cups_tolower(*s) > _cups_tolower(*t)) return (1); s ++; t ++; n --; } if (n == 0) return (0); else if (*s == '\0' && *t == '\0') return (0); else if (*s != '\0') return (1); else return (-1); } #ifndef HAVE_STRLCAT /* * '_cups_strlcat()' - Safely concatenate two strings. */ size_t /* O - Length of string */ _cups_strlcat(char *dst, /* O - Destination string */ const char *src, /* I - Source string */ size_t size) /* I - Size of destination string buffer */ { size_t srclen; /* Length of source string */ size_t dstlen; /* Length of destination string */ /* * Figure out how much room is left... */ dstlen = strlen(dst); if (size < (dstlen + 1)) return (dstlen); /* No room, return immediately... */ size -= dstlen + 1; /* * Figure out how much room is needed... */ srclen = strlen(src); /* * Copy the appropriate amount... */ if (srclen > size) srclen = size; memmove(dst + dstlen, src, srclen); dst[dstlen + srclen] = '\0'; return (dstlen + srclen); } #endif /* !HAVE_STRLCAT */ #ifndef HAVE_STRLCPY /* * '_cups_strlcpy()' - Safely copy two strings. */ size_t /* O - Length of string */ _cups_strlcpy(char *dst, /* O - Destination string */ const char *src, /* I - Source string */ size_t size) /* I - Size of destination string buffer */ { size_t srclen; /* Length of source string */ if (size == 0) return (0); /* * Figure out how much room is needed... */ size --; srclen = strlen(src); /* * Copy the appropriate amount... */ if (srclen > size) srclen = size; memmove(dst, src, srclen); dst[srclen] = '\0'; return (srclen); } #endif /* !HAVE_STRLCPY */ /* * 'compare_sp_items()' - Compare two string pool items... */ static int /* O - Result of comparison */ compare_sp_items(_cups_sp_item_t *a, /* I - First item */ _cups_sp_item_t *b) /* I - Second item */ { return (strcmp(a->str, b->str)); } cups-2.4.7/cups/string-private.h0000644000175000017500000001243114502571342016463 0ustar zdohnalzdohnal/* * Private string definitions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_STRING_PRIVATE_H_ # define _CUPS_STRING_PRIVATE_H_ /* * Include necessary headers... */ # include "config.h" # include # include # include # include # include # include # include # include # include # if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) # define __CUPS_SSIZE_T_DEFINED # include /* Windows does not support the ssize_t type, so map it to __int64... */ typedef __int64 ssize_t; /* @private@ */ # endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * String pool structures... */ # define _CUPS_STR_GUARD 0x12344321 typedef struct _cups_sp_item_s /**** String Pool Item ****/ { # ifdef DEBUG_GUARDS unsigned int guard; /* Guard word */ # endif /* DEBUG_GUARDS */ unsigned int ref_count; /* Reference count */ char str[1]; /* String */ } _cups_sp_item_t; /* * Replacements for the ctype macros that are not affected by locale, since we * really only care about testing for ASCII characters when parsing files, etc. * * The _CUPS_INLINE definition controls whether we get an inline function body, * and external function body, or an external definition. */ # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L # define _CUPS_INLINE static inline # elif defined(_MSC_VER) # define _CUPS_INLINE static __inline # elif defined(_CUPS_STRING_C_) # define _CUPS_INLINE # endif /* __GNUC__ || __STDC_VERSION__ */ # ifdef _CUPS_INLINE _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_isalnum(int ch) /* I - Character to test */ { return ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')); } _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_isalpha(int ch) /* I - Character to test */ { return ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')); } _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_islower(int ch) /* I - Character to test */ { return (ch >= 'a' && ch <= 'z'); } _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_isspace(int ch) /* I - Character to test */ { return (ch == ' ' || ch == '\f' || ch == '\n' || ch == '\r' || ch == '\t' || ch == '\v'); } _CUPS_INLINE int /* O - 1 on match, 0 otherwise */ _cups_isupper(int ch) /* I - Character to test */ { return (ch >= 'A' && ch <= 'Z'); } _CUPS_INLINE int /* O - Converted character */ _cups_tolower(int ch) /* I - Character to convert */ { return (_cups_isupper(ch) ? ch - 'A' + 'a' : ch); } _CUPS_INLINE int /* O - Converted character */ _cups_toupper(int ch) /* I - Character to convert */ { return (_cups_islower(ch) ? ch - 'a' + 'A' : ch); } # else extern int _cups_isalnum(int ch); extern int _cups_isalpha(int ch); extern int _cups_islower(int ch); extern int _cups_isspace(int ch); extern int _cups_isupper(int ch); extern int _cups_tolower(int ch); extern int _cups_toupper(int ch); # endif /* _CUPS_INLINE */ /* * Prototypes... */ extern ssize_t _cups_safe_vsnprintf(char *buffer, size_t bufsize, const char *format, va_list args) _CUPS_PRIVATE; extern void _cups_strcpy(char *dst, const char *src) _CUPS_PRIVATE; # ifndef HAVE_STRDUP extern char *_cups_strdup(const char *) _CUPS_PRIVATE; # define strdup _cups_strdup # endif /* !HAVE_STRDUP */ extern int _cups_strcasecmp(const char *, const char *) _CUPS_PRIVATE; extern int _cups_strncasecmp(const char *, const char *, size_t n) _CUPS_PRIVATE; # ifndef HAVE_STRLCAT extern size_t _cups_strlcat(char *, const char *, size_t) _CUPS_PRIVATE; # define strlcat _cups_strlcat # endif /* !HAVE_STRLCAT */ # ifndef HAVE_STRLCPY extern size_t _cups_strlcpy(char *, const char *, size_t) _CUPS_PRIVATE; # define strlcpy _cups_strlcpy # endif /* !HAVE_STRLCPY */ # ifndef HAVE_SNPRINTF extern int _cups_snprintf(char *, size_t, const char *, ...) _CUPS_FORMAT(3, 4) _CUPS_PRIVATE; # define snprintf _cups_snprintf # endif /* !HAVE_SNPRINTF */ # ifndef HAVE_VSNPRINTF extern int _cups_vsnprintf(char *, size_t, const char *, va_list) _CUPS_PRIVATE; # define vsnprintf _cups_vsnprintf # endif /* !HAVE_VSNPRINTF */ /* * String pool functions... */ extern char *_cupsStrAlloc(const char *s) _CUPS_PRIVATE; extern void _cupsStrFlush(void) _CUPS_PRIVATE; extern void _cupsStrFree(const char *s) _CUPS_PRIVATE; extern char *_cupsStrRetain(const char *s) _CUPS_PRIVATE; extern size_t _cupsStrStatistics(size_t *alloc_bytes, size_t *total_bytes) _CUPS_PRIVATE; /* * Floating point number functions... */ extern char *_cupsStrFormatd(char *buf, char *bufend, double number, struct lconv *loc) _CUPS_PRIVATE; extern double _cupsStrScand(const char *buf, char **bufptr, struct lconv *loc) _CUPS_PRIVATE; /* * Date function... */ extern char *_cupsStrDate(char *buf, size_t bufsize, time_t timeval) _CUPS_PRIVATE; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_STRING_H_ */ cups-2.4.7/cups/snprintf.c0000644000175000017500000001641314502571342015347 0ustar zdohnalzdohnal/* * snprintf functions for CUPS. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "string-private.h" #ifndef HAVE_VSNPRINTF /* * '_cups_vsnprintf()' - Format a string into a fixed size buffer. */ 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 */ { char *bufptr, /* Pointer to position in buffer */ *bufend, /* Pointer to end of buffer */ sign, /* Sign of format width */ size, /* Size character (h, l, L) */ type; /* Format type character */ int width, /* Width of field */ prec; /* Number of characters of precision */ char tformat[100], /* Temporary format string for sprintf() */ *tptr, /* Pointer into temporary format */ temp[1024]; /* Buffer for formatted numbers */ size_t templen; /* Length of "temp" */ char *s; /* Pointer to string */ int slen; /* Length of string */ int bytes; /* Total number of bytes needed */ /* * Loop through the format string, formatting as needed... */ bufptr = buffer; bufend = buffer + bufsize - 1; bytes = 0; while (*format) { if (*format == '%') { tptr = tformat; *tptr++ = *format++; if (*format == '%') { if (bufptr && bufptr < bufend) *bufptr++ = *format; bytes ++; format ++; continue; } else if (strchr(" -+#\'", *format)) { *tptr++ = *format; sign = *format++; } else sign = 0; if (*format == '*') { /* * Get width from argument... */ format ++; width = va_arg(ap, int); /* Note: Can't use snprintf here since we are implementing this function... */ sprintf(tptr, "%d", width); tptr += strlen(tptr); } else { width = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; width = width * 10 + *format++ - '0'; } } if (*format == '.') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; format ++; if (*format == '*') { /* * Get precision from argument... */ format ++; prec = va_arg(ap, int); /* Note: Can't use snprintf here since we are implementing this function... */ sprintf(tptr, "%d", prec); tptr += strlen(tptr); } else { prec = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; prec = prec * 10 + *format++ - '0'; } } } else prec = -1; if (*format == 'l' && format[1] == 'l') { size = 'L'; if (tptr < (tformat + sizeof(tformat) - 2)) { *tptr++ = 'l'; *tptr++ = 'l'; } format += 2; } else if (*format == 'h' || *format == 'l' || *format == 'L') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; size = *format++; } if (!*format) break; if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; type = *format++; *tptr = '\0'; switch (type) { case 'E' : /* Floating point formats */ case 'G' : case 'e' : case 'f' : case 'g' : if ((width + 2) > sizeof(temp)) break; /* Note: Can't use snprintf here since we are implementing this function... */ sprintf(temp, tformat, va_arg(ap, double)); templen = strlen(temp); bytes += (int)templen; if (bufptr) { if ((bufptr + templen) > bufend) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr = bufend; } else { memcpy(bufptr, temp, templen + 1); bufptr += templen; } } break; case 'B' : /* Integer formats */ case 'X' : case 'b' : case 'd' : case 'i' : case 'o' : case 'u' : case 'x' : if ((width + 2) > sizeof(temp)) break; /* Note: Can't use snprintf here since we are implementing this function... */ sprintf(temp, tformat, va_arg(ap, int)); templen = strlen(temp); bytes += (int)templen; if (bufptr) { if ((bufptr + templen) > bufend) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr = bufend; } else { memcpy(bufptr, temp, templen + 1); bufptr += templen; } } break; case 'p' : /* Pointer value */ if ((width + 2) > sizeof(temp)) break; /* Note: Can't use snprintf here since we are implementing this function... */ sprintf(temp, tformat, va_arg(ap, void *)); templen = strlen(temp); bytes += (int)templen; if (bufptr) { if ((bufptr + templen) > bufend) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr = bufend; } else { memcpy(bufptr, temp, templen + 1); bufptr += templen; } } break; case 'c' : /* Character or character array */ bytes += width; if (bufptr) { if (width <= 1) *bufptr++ = va_arg(ap, int); else { if ((bufptr + width) > bufend) width = (int)(bufend - bufptr); memcpy(bufptr, va_arg(ap, char *), (size_t)width); bufptr += width; } } break; case 's' : /* String */ if ((s = va_arg(ap, char *)) == NULL) s = "(null)"; slen = (int)strlen(s); if (slen > width && prec != width) width = slen; bytes += width; if (bufptr) { if ((bufptr + width) > bufend) width = (int)(bufend - bufptr); if (slen > width) slen = width; if (sign == '-') { memcpy(bufptr, s, (size_t)slen); memset(bufptr + slen, ' ', (size_t)(width - slen)); } else { memset(bufptr, ' ', (size_t)(width - slen)); memcpy(bufptr + width - slen, s, (size_t)slen); } bufptr += width; } break; case 'n' : /* Output number of chars so far */ *(va_arg(ap, int *)) = bytes; break; } } else { bytes ++; if (bufptr && bufptr < bufend) *bufptr++ = *format; format ++; } } /* * Nul-terminate the string and return the number of characters needed. */ if (bufptr && bufptr < bufend) *bufptr = '\0'; return (bytes); } #endif /* !HAVE_VSNPRINT */ #ifndef HAVE_SNPRINTF /* * '_cups_snprintf()' - Format a string into a fixed size 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 */ { int bytes; /* Number of bytes formatted */ va_list ap; /* Pointer to additional arguments */ va_start(ap, format); bytes = vsnprintf(buffer, bufsize, format, ap); va_end(ap); return (bytes); } #endif /* !HAVE_SNPRINTF */ cups-2.4.7/cups/snmp.c0000644000175000017500000012163414502571342014463 0ustar zdohnalzdohnal/* * SNMP functions for CUPS. * * Copyright © 2022-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "cups-private.h" #include "snmp-private.h" #include "debug-internal.h" #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ /* * Local functions... */ static void asn1_debug(const char *prefix, unsigned char *buffer, size_t len, int indent); static int asn1_decode_snmp(unsigned char *buffer, size_t len, cups_snmp_t *packet); static int asn1_encode_snmp(unsigned char *buffer, size_t len, cups_snmp_t *packet); static int asn1_get_integer(unsigned char **buffer, unsigned char *bufend, unsigned length); static int asn1_get_oid(unsigned char **buffer, unsigned char *bufend, unsigned length, int *oid, int oidsize); static int asn1_get_packed(unsigned char **buffer, unsigned char *bufend); static char *asn1_get_string(unsigned char **buffer, unsigned char *bufend, unsigned length, char *string, size_t strsize); static unsigned asn1_get_length(unsigned char **buffer, unsigned char *bufend); static int asn1_get_type(unsigned char **buffer, unsigned char *bufend); static void asn1_set_integer(unsigned char **buffer, int integer); static void asn1_set_length(unsigned char **buffer, unsigned length); static void asn1_set_oid(unsigned char **buffer, const int *oid); static void asn1_set_packed(unsigned char **buffer, int integer); static unsigned asn1_size_integer(int integer); static unsigned asn1_size_length(unsigned length); static unsigned asn1_size_oid(const int *oid); static unsigned asn1_size_packed(int integer); static void snmp_set_error(cups_snmp_t *packet, const char *message); /* * '_cupsSNMPClose()' - Close a SNMP socket. */ void _cupsSNMPClose(int fd) /* I - SNMP socket file descriptor */ { DEBUG_printf(("4_cupsSNMPClose(fd=%d)", fd)); httpAddrClose(NULL, fd); } /* * '_cupsSNMPCopyOID()' - Copy an OID. * * The array pointed to by "src" is terminated by the value -1. */ int * /* O - New OID */ _cupsSNMPCopyOID(int *dst, /* I - Destination OID */ const int *src, /* I - Source OID */ int dstsize) /* I - Number of integers in dst */ { int i; /* Looping var */ DEBUG_printf(("4_cupsSNMPCopyOID(dst=%p, src=%p, dstsize=%d)", dst, src, dstsize)); for (i = 0, dstsize --; src[i] >= 0 && i < dstsize; i ++) dst[i] = src[i]; dst[i] = -1; return (dst); } /* * '_cupsSNMPDefaultCommunity()' - Get the default SNMP community name. * * The default community name is the first community name found in the * snmp.conf file. If no community name is defined there, "public" is used. */ const char * /* O - Default community name */ _cupsSNMPDefaultCommunity(void) { cups_file_t *fp; /* snmp.conf file */ char line[1024], /* Line from file */ *value; /* Value from file */ int linenum; /* Line number in file */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ DEBUG_puts("4_cupsSNMPDefaultCommunity()"); if (!cg->snmp_community[0]) { strlcpy(cg->snmp_community, "public", sizeof(cg->snmp_community)); snprintf(line, sizeof(line), "%s/snmp.conf", cg->cups_serverroot); if ((fp = cupsFileOpen(line, "r")) != NULL) { linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) if (!_cups_strcasecmp(line, "Community")) { if (value) strlcpy(cg->snmp_community, value, sizeof(cg->snmp_community)); else cg->snmp_community[0] = '\0'; break; } cupsFileClose(fp); } } DEBUG_printf(("5_cupsSNMPDefaultCommunity: Returning \"%s\"", cg->snmp_community)); return (cg->snmp_community); } /* * '_cupsSNMPIsOID()' - Test whether a SNMP response contains the specified OID. * * The array pointed to by "oid" is terminated by the value -1. */ int /* O - 1 if equal, 0 if not equal */ _cupsSNMPIsOID(cups_snmp_t *packet, /* I - Response packet */ const int *oid) /* I - OID */ { int i; /* Looping var */ /* * Range check input... */ DEBUG_printf(("4_cupsSNMPIsOID(packet=%p, oid=%p)", packet, oid)); if (!packet || !oid) { DEBUG_puts("5_cupsSNMPIsOID: Returning 0"); return (0); } /* * Compare OIDs... */ for (i = 0; i < CUPS_SNMP_MAX_OID && oid[i] >= 0 && packet->object_name[i] >= 0; i ++) if (oid[i] != packet->object_name[i]) { DEBUG_puts("5_cupsSNMPIsOID: Returning 0"); return (0); } DEBUG_printf(("5_cupsSNMPIsOID: Returning %d", i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i])); return (i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i]); } /* * '_cupsSNMPIsOIDPrefixed()' - Test whether a SNMP response uses the specified * OID prefix. * * The array pointed to by "prefix" is terminated by the value -1. */ int /* O - 1 if prefixed, 0 if not prefixed */ _cupsSNMPIsOIDPrefixed( cups_snmp_t *packet, /* I - Response packet */ const int *prefix) /* I - OID prefix */ { int i; /* Looping var */ /* * Range check input... */ DEBUG_printf(("4_cupsSNMPIsOIDPrefixed(packet=%p, prefix=%p)", packet, prefix)); if (!packet || !prefix) { DEBUG_puts("5_cupsSNMPIsOIDPrefixed: Returning 0"); return (0); } /* * Compare OIDs... */ for (i = 0; i < CUPS_SNMP_MAX_OID && prefix[i] >= 0 && packet->object_name[i] >= 0; i ++) if (prefix[i] != packet->object_name[i]) { DEBUG_puts("5_cupsSNMPIsOIDPrefixed: Returning 0"); return (0); } DEBUG_printf(("5_cupsSNMPIsOIDPrefixed: Returning %d", i < CUPS_SNMP_MAX_OID)); return (i < CUPS_SNMP_MAX_OID); } /* * '_cupsSNMPOIDToString()' - Convert an OID to a string. */ char * /* O - New string or @code NULL@ on error */ _cupsSNMPOIDToString(const int *src, /* I - OID */ char *dst, /* I - String buffer */ size_t dstsize) /* I - Size of string buffer */ { char *dstptr, /* Pointer into string buffer */ *dstend; /* End of string buffer */ DEBUG_printf(("4_cupsSNMPOIDToString(src=%p, dst=%p, dstsize=" CUPS_LLFMT ")", src, dst, CUPS_LLCAST dstsize)); /* * Range check input... */ if (!src || !dst || dstsize < 4) return (NULL); /* * Loop through the OID array and build a string... */ for (dstptr = dst, dstend = dstptr + dstsize - 1; *src >= 0 && dstptr < dstend; src ++, dstptr += strlen(dstptr)) snprintf(dstptr, (size_t)(dstend - dstptr + 1), ".%d", *src); if (*src >= 0) return (NULL); else return (dst); } /* * '_cupsSNMPOpen()' - Open a SNMP socket. */ int /* O - SNMP socket file descriptor */ _cupsSNMPOpen(int family) /* I - Address family - @code AF_INET@ or @code AF_INET6@ */ { int fd; /* SNMP socket file descriptor */ int val; /* Socket option value */ /* * Create the SNMP socket... */ DEBUG_printf(("4_cupsSNMPOpen(family=%d)", family)); if ((fd = socket(family, SOCK_DGRAM, 0)) < 0) { DEBUG_printf(("5_cupsSNMPOpen: Returning -1 (%s)", strerror(errno))); return (-1); } /* * Set the "broadcast" flag... */ val = 1; if (setsockopt(fd, SOL_SOCKET, SO_BROADCAST, CUPS_SOCAST &val, sizeof(val))) { DEBUG_printf(("5_cupsSNMPOpen: Returning -1 (%s)", strerror(errno))); close(fd); return (-1); } DEBUG_printf(("5_cupsSNMPOpen: Returning %d", fd)); return (fd); } /* * '_cupsSNMPRead()' - Read and parse a SNMP response. * * If "timeout" is negative, @code _cupsSNMPRead@ will wait for a response * indefinitely. */ cups_snmp_t * /* O - SNMP packet or @code NULL@ if none */ _cupsSNMPRead(int fd, /* I - SNMP socket file descriptor */ cups_snmp_t *packet, /* I - SNMP packet buffer */ double timeout) /* I - Timeout in seconds */ { unsigned char buffer[CUPS_SNMP_MAX_PACKET]; /* Data packet */ ssize_t bytes; /* Number of bytes received */ socklen_t addrlen; /* Source address length */ http_addr_t address; /* Source address */ /* * Range check input... */ DEBUG_printf(("4_cupsSNMPRead(fd=%d, packet=%p, timeout=%.1f)", fd, packet, timeout)); if (fd < 0 || !packet) { DEBUG_puts("5_cupsSNMPRead: Returning NULL"); return (NULL); } /* * Optionally wait for a response... */ if (timeout >= 0.0) { int ready; /* Data ready on socket? */ #ifdef HAVE_POLL struct pollfd pfd; /* Polled file descriptor */ pfd.fd = fd; pfd.events = POLLIN; while ((ready = poll(&pfd, 1, (int)(timeout * 1000.0))) < 0 && (errno == EINTR || errno == EAGAIN)); #else fd_set input_set; /* select() input set */ struct timeval stimeout; /* select() timeout */ do { FD_ZERO(&input_set); FD_SET(fd, &input_set); stimeout.tv_sec = (int)timeout; stimeout.tv_usec = (int)((timeout - stimeout.tv_sec) * 1000000); ready = select(fd + 1, &input_set, NULL, NULL, &stimeout); } # ifdef _WIN32 while (ready < 0 && WSAGetLastError() == WSAEINTR); # else while (ready < 0 && (errno == EINTR || errno == EAGAIN)); # endif /* _WIN32 */ #endif /* HAVE_POLL */ /* * If we don't have any data ready, return right away... */ if (ready <= 0) { DEBUG_puts("5_cupsSNMPRead: Returning NULL (timeout)"); return (NULL); } } /* * Read the response data... */ addrlen = sizeof(address); if ((bytes = recvfrom(fd, buffer, sizeof(buffer), 0, (void *)&address, &addrlen)) < 0) { DEBUG_printf(("5_cupsSNMPRead: Returning NULL (%s)", strerror(errno))); return (NULL); } /* * Look for the response status code in the SNMP message header... */ asn1_debug("DEBUG: IN ", buffer, (size_t)bytes, 0); asn1_decode_snmp(buffer, (size_t)bytes, packet); memcpy(&(packet->address), &address, sizeof(packet->address)); /* * Return decoded data packet... */ DEBUG_puts("5_cupsSNMPRead: Returning packet"); return (packet); } /* * '_cupsSNMPSetDebug()' - Enable/disable debug logging to stderr. */ void _cupsSNMPSetDebug(int level) /* I - 1 to enable debug output, 0 otherwise */ { _cups_globals_t *cg = _cupsGlobals(); /* Global data */ DEBUG_printf(("4_cupsSNMPSetDebug(level=%d)", level)); cg->snmp_debug = level; } /* * '_cupsSNMPStringToOID()' - Convert a numeric OID string to an OID array. * * This function converts a string of the form ".N.N.N.N.N" to the * corresponding OID array terminated by -1. * * @code NULL@ is returned if the array is not large enough or the string is * not a valid OID number. */ int * /* O - Pointer to OID array or @code NULL@ on error */ _cupsSNMPStringToOID(const char *src, /* I - OID string */ int *dst, /* I - OID array */ int dstsize)/* I - Number of integers in OID array */ { int *dstptr, /* Pointer into OID array */ *dstend; /* End of OID array */ DEBUG_printf(("4_cupsSNMPStringToOID(src=\"%s\", dst=%p, dstsize=%d)", src, dst, dstsize)); /* * Range check input... */ if (!src || !dst || dstsize < 2) return (NULL); /* * Skip leading "."... */ if (*src == '.') src ++; /* * Loop to the end of the string... */ for (dstend = dst + dstsize - 1, dstptr = dst, *dstptr = 0; *src && dstptr < dstend; src ++) { if (*src == '.') { dstptr ++; *dstptr = 0; } else if (isdigit(*src & 255)) *dstptr = *dstptr * 10 + *src - '0'; else break; } if (*src) return (NULL); /* * Terminate the end of the OID array and return... */ dstptr[1] = -1; return (dst); } /* * '_cupsSNMPWalk()' - Enumerate a group of OIDs. * * This function queries all of the OIDs with the specified OID prefix, * calling the "cb" function for every response that is received. * * The array pointed to by "prefix" is terminated by the value -1. * * If "timeout" is negative, @code _cupsSNMPWalk@ will wait for a response * indefinitely. */ int /* O - Number of OIDs found or -1 on error */ _cupsSNMPWalk(int fd, /* I - SNMP socket */ http_addr_t *address, /* I - Address to query */ int version, /* I - SNMP version */ const char *community,/* I - Community name */ const int *prefix, /* I - OID prefix */ double timeout, /* I - Timeout for each response in seconds */ cups_snmp_cb_t cb, /* I - Function to call for each response */ void *data) /* I - User data pointer that is passed to the callback function */ { int count = 0; /* Number of OIDs found */ unsigned request_id = 0; /* Current request ID */ cups_snmp_t packet; /* Current response packet */ int lastoid[CUPS_SNMP_MAX_OID]; /* Last OID we got */ /* * Range check input... */ DEBUG_printf(("4_cupsSNMPWalk(fd=%d, address=%p, version=%d, " "community=\"%s\", prefix=%p, timeout=%.1f, cb=%p, data=%p)", fd, address, version, community, prefix, timeout, cb, data)); if (fd < 0 || !address || version != CUPS_SNMP_VERSION_1 || !community || !prefix || !cb) { DEBUG_puts("5_cupsSNMPWalk: Returning -1"); return (-1); } /* * Copy the OID prefix and then loop until we have no more OIDs... */ _cupsSNMPCopyOID(packet.object_name, prefix, CUPS_SNMP_MAX_OID); lastoid[0] = -1; for (;;) { request_id ++; if (!_cupsSNMPWrite(fd, address, version, community, CUPS_ASN1_GET_NEXT_REQUEST, request_id, packet.object_name)) { DEBUG_puts("5_cupsSNMPWalk: Returning -1"); return (-1); } if (!_cupsSNMPRead(fd, &packet, timeout)) { DEBUG_puts("5_cupsSNMPWalk: Returning -1"); return (-1); } if (!_cupsSNMPIsOIDPrefixed(&packet, prefix) || _cupsSNMPIsOID(&packet, lastoid)) { DEBUG_printf(("5_cupsSNMPWalk: Returning %d", count)); return (count); } if (packet.error || packet.error_status) { DEBUG_printf(("5_cupsSNMPWalk: Returning %d", count > 0 ? count : -1)); return (count > 0 ? count : -1); } _cupsSNMPCopyOID(lastoid, packet.object_name, CUPS_SNMP_MAX_OID); count ++; (*cb)(&packet, data); } } /* * '_cupsSNMPWrite()' - Send an SNMP query packet. * * The array pointed to by "oid" is terminated by the value -1. */ int /* O - 1 on success, 0 on error */ _cupsSNMPWrite( int fd, /* I - SNMP socket */ http_addr_t *address, /* I - Address to send to */ int version, /* I - SNMP version */ const char *community, /* I - Community name */ cups_asn1_t request_type, /* I - Request type */ const unsigned request_id, /* I - Request ID */ const int *oid) /* I - OID */ { int i; /* Looping var */ cups_snmp_t packet; /* SNMP message packet */ unsigned char buffer[CUPS_SNMP_MAX_PACKET]; /* SNMP message buffer */ ssize_t bytes; /* Size of message */ http_addr_t temp; /* Copy of address */ /* * Range check input... */ DEBUG_printf(("4_cupsSNMPWrite(fd=%d, address=%p, version=%d, " "community=\"%s\", request_type=%d, request_id=%u, oid=%p)", fd, address, version, community, request_type, request_id, oid)); if (fd < 0 || !address || version != CUPS_SNMP_VERSION_1 || !community || (request_type != CUPS_ASN1_GET_REQUEST && request_type != CUPS_ASN1_GET_NEXT_REQUEST) || request_id < 1 || !oid) { DEBUG_puts("5_cupsSNMPWrite: Returning 0 (bad arguments)"); return (0); } /* * Create the SNMP message... */ memset(&packet, 0, sizeof(packet)); packet.version = version; packet.request_type = request_type; packet.request_id = request_id; packet.object_type = CUPS_ASN1_NULL_VALUE; strlcpy(packet.community, community, sizeof(packet.community)); for (i = 0; oid[i] >= 0 && i < (CUPS_SNMP_MAX_OID - 1); i ++) packet.object_name[i] = oid[i]; packet.object_name[i] = -1; if (oid[i] >= 0) { DEBUG_puts("5_cupsSNMPWrite: Returning 0 (OID too big)"); errno = E2BIG; return (0); } bytes = asn1_encode_snmp(buffer, sizeof(buffer), &packet); if (bytes < 0) { DEBUG_puts("5_cupsSNMPWrite: Returning 0 (request too big)"); errno = E2BIG; return (0); } asn1_debug("DEBUG: OUT ", buffer, (size_t)bytes, 0); /* * Send the message... */ temp = *address; _httpAddrSetPort(&temp, CUPS_SNMP_PORT); return (sendto(fd, buffer, (size_t)bytes, 0, (void *)&temp, (socklen_t)httpAddrLength(&temp)) == bytes); } /* * 'asn1_debug()' - Decode an ASN1-encoded message. */ static void asn1_debug(const char *prefix, /* I - Prefix string */ unsigned char *buffer, /* I - Buffer */ size_t len, /* I - Length of buffer */ int indent) /* I - Indentation */ { size_t i; /* Looping var */ unsigned char *bufend; /* End of buffer */ int integer; /* Number value */ int oid[CUPS_SNMP_MAX_OID]; /* OID value */ char string[CUPS_SNMP_MAX_STRING]; /* String value */ unsigned char value_type; /* Type of value */ unsigned value_length; /* Length of value */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ #ifdef __clang_analyzer__ /* Suppress bogus clang error */ memset(string, 0, sizeof(string)); #endif /* __clang_analyzer__ */ if (cg->snmp_debug <= 0) return; if (cg->snmp_debug > 1 && indent == 0) { /* * Do a hex dump of the packet... */ size_t j; fprintf(stderr, "%sHex Dump (%d bytes):\n", prefix, (int)len); for (i = 0; i < len; i += 16) { fprintf(stderr, "%s%04x:", prefix, (unsigned)i); for (j = 0; j < 16 && (i + j) < len; j ++) { if (j && !(j & 3)) fprintf(stderr, " %02x", buffer[i + j]); else fprintf(stderr, " %02x", buffer[i + j]); } while (j < 16) { if (j && !(j & 3)) fputs(" ", stderr); else fputs(" ", stderr); j ++; } fputs(" ", stderr); for (j = 0; j < 16 && (i + j) < len; j ++) if (buffer[i + j] < ' ' || buffer[i + j] >= 0x7f) putc('.', stderr); else putc(buffer[i + j], stderr); putc('\n', stderr); } } if (indent == 0) fprintf(stderr, "%sMessage:\n", prefix); bufend = buffer + len; while (buffer < bufend) { /* * Get value type... */ value_type = (unsigned char)asn1_get_type(&buffer, bufend); value_length = asn1_get_length(&buffer, bufend); switch (value_type) { case CUPS_ASN1_BOOLEAN : integer = asn1_get_integer(&buffer, bufend, value_length); fprintf(stderr, "%s%*sBOOLEAN %d bytes %d\n", prefix, indent, "", value_length, integer); break; case CUPS_ASN1_INTEGER : integer = asn1_get_integer(&buffer, bufend, value_length); fprintf(stderr, "%s%*sINTEGER %d bytes %d\n", prefix, indent, "", value_length, integer); break; case CUPS_ASN1_COUNTER : integer = asn1_get_integer(&buffer, bufend, value_length); fprintf(stderr, "%s%*sCOUNTER %d bytes %u\n", prefix, indent, "", value_length, (unsigned)integer); break; case CUPS_ASN1_GAUGE : integer = asn1_get_integer(&buffer, bufend, value_length); fprintf(stderr, "%s%*sGAUGE %d bytes %u\n", prefix, indent, "", value_length, (unsigned)integer); break; case CUPS_ASN1_TIMETICKS : integer = asn1_get_integer(&buffer, bufend, value_length); fprintf(stderr, "%s%*sTIMETICKS %d bytes %u\n", prefix, indent, "", value_length, (unsigned)integer); break; case CUPS_ASN1_OCTET_STRING : fprintf(stderr, "%s%*sOCTET STRING %d bytes \"%s\"\n", prefix, indent, "", value_length, asn1_get_string(&buffer, bufend, value_length, string, sizeof(string))); break; case CUPS_ASN1_HEX_STRING : asn1_get_string(&buffer, bufend, value_length, string, sizeof(string)); fprintf(stderr, "%s%*sHex-STRING %d bytes", prefix, indent, "", value_length); for (i = 0; i < value_length; i ++) fprintf(stderr, " %02X", string[i] & 255); putc('\n', stderr); break; case CUPS_ASN1_NULL_VALUE : fprintf(stderr, "%s%*sNULL VALUE %d bytes\n", prefix, indent, "", value_length); buffer += value_length; break; case CUPS_ASN1_OID : integer = asn1_get_oid(&buffer, bufend, value_length, oid, CUPS_SNMP_MAX_OID); fprintf(stderr, "%s%*sOID %d bytes ", prefix, indent, "", value_length); for (i = 0; i < (unsigned)integer; i ++) fprintf(stderr, ".%d", oid[i]); putc('\n', stderr); break; case CUPS_ASN1_SEQUENCE : fprintf(stderr, "%s%*sSEQUENCE %d bytes\n", prefix, indent, "", value_length); asn1_debug(prefix, buffer, value_length, indent + 4); buffer += value_length; break; case CUPS_ASN1_GET_NEXT_REQUEST : fprintf(stderr, "%s%*sGet-Next-Request-PDU %d bytes\n", prefix, indent, "", value_length); asn1_debug(prefix, buffer, value_length, indent + 4); buffer += value_length; break; case CUPS_ASN1_GET_REQUEST : fprintf(stderr, "%s%*sGet-Request-PDU %d bytes\n", prefix, indent, "", value_length); asn1_debug(prefix, buffer, value_length, indent + 4); buffer += value_length; break; case CUPS_ASN1_GET_RESPONSE : fprintf(stderr, "%s%*sGet-Response-PDU %d bytes\n", prefix, indent, "", value_length); asn1_debug(prefix, buffer, value_length, indent + 4); buffer += value_length; break; default : fprintf(stderr, "%s%*sUNKNOWN(%x) %d bytes\n", prefix, indent, "", value_type, value_length); buffer += value_length; break; } } } /* * 'asn1_decode_snmp()' - Decode a SNMP packet. */ static int /* O - 0 on success, -1 on error */ asn1_decode_snmp(unsigned char *buffer, /* I - Buffer */ size_t len, /* I - Size of buffer */ cups_snmp_t *packet) /* I - SNMP packet */ { unsigned char *bufptr, /* Pointer into the data */ *bufend; /* End of data */ unsigned length; /* Length of value */ /* * Initialize the decoding... */ memset(packet, 0, sizeof(cups_snmp_t)); packet->object_name[0] = -1; bufptr = buffer; bufend = buffer + len; if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_SEQUENCE) snmp_set_error(packet, _("Packet does not start with SEQUENCE")); else if (asn1_get_length(&bufptr, bufend) == 0) snmp_set_error(packet, _("SEQUENCE uses indefinite length")); else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_INTEGER) snmp_set_error(packet, _("No version number")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("Version uses indefinite length")); else if ((packet->version = asn1_get_integer(&bufptr, bufend, length)) != CUPS_SNMP_VERSION_1) snmp_set_error(packet, _("Bad SNMP version number")); else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_OCTET_STRING) snmp_set_error(packet, _("No community name")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("Community name uses indefinite length")); else { asn1_get_string(&bufptr, bufend, length, packet->community, sizeof(packet->community)); if ((packet->request_type = (cups_asn1_t)asn1_get_type(&bufptr, bufend)) != CUPS_ASN1_GET_RESPONSE) snmp_set_error(packet, _("Packet does not contain a Get-Response-PDU")); else if (asn1_get_length(&bufptr, bufend) == 0) snmp_set_error(packet, _("Get-Response-PDU uses indefinite length")); else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_INTEGER) snmp_set_error(packet, _("No request-id")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("request-id uses indefinite length")); else { packet->request_id = (unsigned)asn1_get_integer(&bufptr, bufend, length); if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_INTEGER) snmp_set_error(packet, _("No error-status")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("error-status uses indefinite length")); else { packet->error_status = asn1_get_integer(&bufptr, bufend, length); if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_INTEGER) snmp_set_error(packet, _("No error-index")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("error-index uses indefinite length")); else { packet->error_index = asn1_get_integer(&bufptr, bufend, length); if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_SEQUENCE) snmp_set_error(packet, _("No variable-bindings SEQUENCE")); else if (asn1_get_length(&bufptr, bufend) == 0) snmp_set_error(packet, _("variable-bindings uses indefinite length")); else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_SEQUENCE) snmp_set_error(packet, _("No VarBind SEQUENCE")); else if (asn1_get_length(&bufptr, bufend) == 0) snmp_set_error(packet, _("VarBind uses indefinite length")); else if (asn1_get_type(&bufptr, bufend) != CUPS_ASN1_OID) snmp_set_error(packet, _("No name OID")); else if ((length = asn1_get_length(&bufptr, bufend)) == 0) snmp_set_error(packet, _("Name OID uses indefinite length")); else { asn1_get_oid(&bufptr, bufend, length, packet->object_name, CUPS_SNMP_MAX_OID); packet->object_type = (cups_asn1_t)asn1_get_type(&bufptr, bufend); if ((length = asn1_get_length(&bufptr, bufend)) == 0 && packet->object_type != CUPS_ASN1_NULL_VALUE && packet->object_type != CUPS_ASN1_OCTET_STRING) snmp_set_error(packet, _("Value uses indefinite length")); else { switch (packet->object_type) { case CUPS_ASN1_BOOLEAN : packet->object_value.boolean = asn1_get_integer(&bufptr, bufend, length); break; case CUPS_ASN1_INTEGER : packet->object_value.integer = asn1_get_integer(&bufptr, bufend, length); break; case CUPS_ASN1_NULL_VALUE : break; case CUPS_ASN1_OCTET_STRING : case CUPS_ASN1_BIT_STRING : case CUPS_ASN1_HEX_STRING : packet->object_value.string.num_bytes = length; asn1_get_string(&bufptr, bufend, length, (char *)packet->object_value.string.bytes, sizeof(packet->object_value.string.bytes)); break; case CUPS_ASN1_OID : asn1_get_oid(&bufptr, bufend, length, packet->object_value.oid, CUPS_SNMP_MAX_OID); break; case CUPS_ASN1_COUNTER : packet->object_value.counter = asn1_get_integer(&bufptr, bufend, length); break; case CUPS_ASN1_GAUGE : packet->object_value.gauge = (unsigned)asn1_get_integer(&bufptr, bufend, length); break; case CUPS_ASN1_TIMETICKS : packet->object_value.timeticks = (unsigned)asn1_get_integer(&bufptr, bufend, length); break; default : snmp_set_error(packet, _("Unsupported value type")); break; } } } } } } } return (packet->error ? -1 : 0); } /* * 'asn1_encode_snmp()' - Encode a SNMP packet. */ static int /* O - Length on success, -1 on error */ asn1_encode_snmp(unsigned char *buffer, /* I - Buffer */ size_t bufsize, /* I - Size of buffer */ cups_snmp_t *packet) /* I - SNMP packet */ { unsigned char *bufptr; /* Pointer into buffer */ unsigned total, /* Total length */ msglen, /* Length of entire message */ commlen, /* Length of community string */ reqlen, /* Length of request */ listlen, /* Length of variable list */ varlen, /* Length of variable */ namelen, /* Length of object name OID */ valuelen; /* Length of object value */ /* * Get the lengths of the community string, OID, and message... */ namelen = asn1_size_oid(packet->object_name); switch (packet->object_type) { case CUPS_ASN1_NULL_VALUE : valuelen = 0; break; case CUPS_ASN1_BOOLEAN : valuelen = asn1_size_integer(packet->object_value.boolean); break; case CUPS_ASN1_INTEGER : valuelen = asn1_size_integer(packet->object_value.integer); break; case CUPS_ASN1_OCTET_STRING : valuelen = packet->object_value.string.num_bytes; break; case CUPS_ASN1_OID : valuelen = asn1_size_oid(packet->object_value.oid); break; default : packet->error = "Unknown object type"; return (-1); } varlen = 1 + asn1_size_length(namelen) + namelen + 1 + asn1_size_length(valuelen) + valuelen; listlen = 1 + asn1_size_length(varlen) + varlen; reqlen = 2 + asn1_size_integer((int)packet->request_id) + 2 + asn1_size_integer(packet->error_status) + 2 + asn1_size_integer(packet->error_index) + 1 + asn1_size_length(listlen) + listlen; commlen = (unsigned)strlen(packet->community); msglen = 2 + asn1_size_integer(packet->version) + 1 + asn1_size_length(commlen) + commlen + 1 + asn1_size_length(reqlen) + reqlen; total = 1 + asn1_size_length(msglen) + msglen; if (total > bufsize) { packet->error = "Message too large for buffer"; return (-1); } /* * Then format the message... */ bufptr = buffer; *bufptr++ = CUPS_ASN1_SEQUENCE; /* SNMPv1 message header */ asn1_set_length(&bufptr, msglen); asn1_set_integer(&bufptr, packet->version); /* version */ *bufptr++ = CUPS_ASN1_OCTET_STRING; /* community */ asn1_set_length(&bufptr, commlen); memcpy(bufptr, packet->community, commlen); bufptr += commlen; *bufptr++ = (unsigned char)packet->request_type; /* Get-Request-PDU/Get-Next-Request-PDU */ asn1_set_length(&bufptr, reqlen); asn1_set_integer(&bufptr, (int)packet->request_id); asn1_set_integer(&bufptr, packet->error_status); asn1_set_integer(&bufptr, packet->error_index); *bufptr++ = CUPS_ASN1_SEQUENCE; /* variable-bindings */ asn1_set_length(&bufptr, listlen); *bufptr++ = CUPS_ASN1_SEQUENCE; /* variable */ asn1_set_length(&bufptr, varlen); asn1_set_oid(&bufptr, packet->object_name); /* ObjectName */ switch (packet->object_type) { case CUPS_ASN1_NULL_VALUE : *bufptr++ = CUPS_ASN1_NULL_VALUE; /* ObjectValue */ *bufptr++ = 0; /* Length */ break; case CUPS_ASN1_BOOLEAN : asn1_set_integer(&bufptr, packet->object_value.boolean); break; case CUPS_ASN1_INTEGER : asn1_set_integer(&bufptr, packet->object_value.integer); break; case CUPS_ASN1_OCTET_STRING : *bufptr++ = CUPS_ASN1_OCTET_STRING; asn1_set_length(&bufptr, valuelen); memcpy(bufptr, packet->object_value.string.bytes, valuelen); bufptr += valuelen; break; case CUPS_ASN1_OID : asn1_set_oid(&bufptr, packet->object_value.oid); break; default : break; } return ((int)(bufptr - buffer)); } /* * 'asn1_get_integer()' - Get an integer value. */ static int /* O - Integer value */ asn1_get_integer( unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend, /* I - End of buffer */ unsigned length) /* I - Length of value */ { int value; /* Integer value */ if (*buffer >= bufend) return (0); if (length > sizeof(int)) { if (length > (unsigned)(bufend - *buffer)) *buffer = bufend; else (*buffer) += length; return (0); } for (value = (**buffer & 0x80) ? ~0 : 0; length > 0 && *buffer < bufend; length --, (*buffer) ++) value = ((value & 0xffffff) << 8) | **buffer; return (value); } /* * 'asn1_get_length()' - Get a value length. */ static unsigned /* O - Length */ asn1_get_length(unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend) /* I - End of buffer */ { unsigned length; /* Length */ if (*buffer >= bufend) return (0); length = **buffer; (*buffer) ++; if (length & 128) { int count; /* Number of bytes for length */ if ((count = length & 127) > sizeof(unsigned)) { if (count > (bufend - *buffer)) *buffer = bufend; else (*buffer) += count; return (0); } for (length = 0; count > 0 && *buffer < bufend; count --, (*buffer) ++) length = (length << 8) | **buffer; } return (length); } /* * 'asn1_get_oid()' - Get an OID value. */ static int /* O - Number of OIDs */ asn1_get_oid( unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend, /* I - End of buffer */ unsigned length, /* I - Length of value */ int *oid, /* I - OID buffer */ int oidsize) /* I - Size of OID buffer */ { unsigned char *valend; /* End of value */ int *oidptr, /* Current OID */ *oidend; /* End of OID buffer */ int number; /* OID number */ if (*buffer >= bufend) { return (0); } else if (length > (unsigned)(bufend - *buffer)) { *buffer = bufend; return (0); } valend = *buffer + length; oidptr = oid; oidend = oid + oidsize - 1; if (valend > bufend) valend = bufend; number = asn1_get_packed(buffer, valend); if (number < 80) { *oidptr++ = number / 40; number = number % 40; *oidptr++ = number; } else { *oidptr++ = 2; number -= 80; *oidptr++ = number; } while (*buffer < valend) { number = asn1_get_packed(buffer, valend); if (oidptr < oidend) *oidptr++ = number; } *oidptr = -1; return ((int)(oidptr - oid)); } /* * 'asn1_get_packed()' - Get a packed integer value. */ static int /* O - Value */ asn1_get_packed( unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend) /* I - End of buffer */ { int value; /* Value */ if (*buffer >= bufend) return (0); value = 0; while (*buffer < bufend && (**buffer & 128)) { value = (value << 7) | (**buffer & 127); (*buffer) ++; } if (*buffer < bufend) { value = (value << 7) | **buffer; (*buffer) ++; } return (value); } /* * 'asn1_get_string()' - Get a string value. */ static char * /* O - String */ asn1_get_string( unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend, /* I - End of buffer */ unsigned length, /* I - Value length */ char *string, /* I - String buffer */ size_t strsize) /* I - String buffer size */ { if (*buffer >= bufend) return (NULL); if (length > (unsigned)(bufend - *buffer)) length = (unsigned)(bufend - *buffer); if (length < strsize) { /* * String is smaller than the buffer... */ if (length > 0) memcpy(string, *buffer, length); string[length] = '\0'; } else { /* * String is larger than the buffer... */ memcpy(string, *buffer, strsize - 1); string[strsize - 1] = '\0'; } if (length > 0) (*buffer) += length; return (string); } /* * 'asn1_get_type()' - Get a value type. */ static int /* O - Type */ asn1_get_type(unsigned char **buffer, /* IO - Pointer in buffer */ unsigned char *bufend) /* I - End of buffer */ { int type; /* Type */ if (*buffer >= bufend) return (0); type = **buffer; (*buffer) ++; if ((type & 31) == 31) type = asn1_get_packed(buffer, bufend); return (type); } /* * 'asn1_set_integer()' - Set an integer value. */ static void asn1_set_integer(unsigned char **buffer,/* IO - Pointer in buffer */ int integer) /* I - Integer value */ { **buffer = CUPS_ASN1_INTEGER; (*buffer) ++; if (integer > 0x7fffff || integer < -0x800000) { **buffer = 4; (*buffer) ++; **buffer = (unsigned char)(integer >> 24); (*buffer) ++; **buffer = (unsigned char)(integer >> 16); (*buffer) ++; **buffer = (unsigned char)(integer >> 8); (*buffer) ++; **buffer = (unsigned char)integer; (*buffer) ++; } else if (integer > 0x7fff || integer < -0x8000) { **buffer = 3; (*buffer) ++; **buffer = (unsigned char)(integer >> 16); (*buffer) ++; **buffer = (unsigned char)(integer >> 8); (*buffer) ++; **buffer = (unsigned char)integer; (*buffer) ++; } else if (integer > 0x7f || integer < -0x80) { **buffer = 2; (*buffer) ++; **buffer = (unsigned char)(integer >> 8); (*buffer) ++; **buffer = (unsigned char)integer; (*buffer) ++; } else { **buffer = 1; (*buffer) ++; **buffer = (unsigned char)integer; (*buffer) ++; } } /* * 'asn1_set_length()' - Set a value length. */ static void asn1_set_length(unsigned char **buffer, /* IO - Pointer in buffer */ unsigned length) /* I - Length value */ { if (length > 255) { **buffer = 0x82; /* 2-byte length */ (*buffer) ++; **buffer = (unsigned char)(length >> 8); (*buffer) ++; **buffer = (unsigned char)length; (*buffer) ++; } else if (length > 127) { **buffer = 0x81; /* 1-byte length */ (*buffer) ++; **buffer = (unsigned char)length; (*buffer) ++; } else { **buffer = (unsigned char)length; /* Length */ (*buffer) ++; } } /* * 'asn1_set_oid()' - Set an OID value. */ static void asn1_set_oid(unsigned char **buffer, /* IO - Pointer in buffer */ const int *oid) /* I - OID value */ { **buffer = CUPS_ASN1_OID; (*buffer) ++; asn1_set_length(buffer, asn1_size_oid(oid)); if (oid[1] < 0) { asn1_set_packed(buffer, oid[0] * 40); return; } asn1_set_packed(buffer, oid[0] * 40 + oid[1]); for (oid += 2; *oid >= 0; oid ++) asn1_set_packed(buffer, *oid); } /* * 'asn1_set_packed()' - Set a packed integer value. */ static void asn1_set_packed(unsigned char **buffer, /* IO - Pointer in buffer */ int integer) /* I - Integer value */ { if (integer > 0xfffffff) { **buffer = ((integer >> 28) & 0x7f) | 0x80; (*buffer) ++; } if (integer > 0x1fffff) { **buffer = ((integer >> 21) & 0x7f) | 0x80; (*buffer) ++; } if (integer > 0x3fff) { **buffer = ((integer >> 14) & 0x7f) | 0x80; (*buffer) ++; } if (integer > 0x7f) { **buffer = ((integer >> 7) & 0x7f) | 0x80; (*buffer) ++; } **buffer = integer & 0x7f; (*buffer) ++; } /* * 'asn1_size_integer()' - Figure out the number of bytes needed for an * integer value. */ static unsigned /* O - Size in bytes */ asn1_size_integer(int integer) /* I - Integer value */ { if (integer > 0x7fffff || integer < -0x800000) return (4); else if (integer > 0x7fff || integer < -0x8000) return (3); else if (integer > 0x7f || integer < -0x80) return (2); else return (1); } /* * 'asn1_size_length()' - Figure out the number of bytes needed for a * length value. */ static unsigned /* O - Size in bytes */ asn1_size_length(unsigned length) /* I - Length value */ { if (length > 0xff) return (3); else if (length > 0x7f) return (2); else return (1); } /* * 'asn1_size_oid()' - Figure out the number of bytes needed for an * OID value. */ static unsigned /* O - Size in bytes */ asn1_size_oid(const int *oid) /* I - OID value */ { unsigned length; /* Length of value */ if (oid[1] < 0) return (asn1_size_packed(oid[0] * 40)); for (length = asn1_size_packed(oid[0] * 40 + oid[1]), oid += 2; *oid >= 0; oid ++) length += asn1_size_packed(*oid); return (length); } /* * 'asn1_size_packed()' - Figure out the number of bytes needed for a * packed integer value. */ static unsigned /* O - Size in bytes */ asn1_size_packed(int integer) /* I - Integer value */ { if (integer > 0xfffffff) return (5); else if (integer > 0x1fffff) return (4); else if (integer > 0x3fff) return (3); else if (integer > 0x7f) return (2); else return (1); } /* * 'snmp_set_error()' - Set the localized error for a packet. */ static void snmp_set_error(cups_snmp_t *packet, /* I - Packet */ const char *message) /* I - Error message */ { _cups_globals_t *cg = _cupsGlobals(); /* Global data */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); packet->error = _cupsLangString(cg->lang_default, message); } cups-2.4.7/cups/snmp-private.h0000644000175000017500000001064714502571342016141 0ustar zdohnalzdohnal/* * Private SNMP definitions for CUPS. * * Copyright © 2007-2014 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_SNMP_PRIVATE_H_ # define _CUPS_SNMP_PRIVATE_H_ /* * Include necessary headers. */ #include /* * Constants... */ #define CUPS_SNMP_PORT 161 /* SNMP well-known port */ #define CUPS_SNMP_MAX_COMMUNITY 512 /* Maximum size of community name */ #define CUPS_SNMP_MAX_OID 128 /* Maximum number of OID numbers */ #define CUPS_SNMP_MAX_PACKET 1472 /* Maximum size of SNMP packet */ #define CUPS_SNMP_MAX_STRING 1024 /* Maximum size of string */ #define CUPS_SNMP_VERSION_1 0 /* SNMPv1 */ /* * Types... */ enum cups_asn1_e /**** ASN1 request/object types ****/ { CUPS_ASN1_END_OF_CONTENTS = 0x00, /* End-of-contents */ CUPS_ASN1_BOOLEAN = 0x01, /* BOOLEAN */ CUPS_ASN1_INTEGER = 0x02, /* INTEGER or ENUMERATION */ CUPS_ASN1_BIT_STRING = 0x03, /* BIT STRING */ CUPS_ASN1_OCTET_STRING = 0x04, /* OCTET STRING */ CUPS_ASN1_NULL_VALUE = 0x05, /* NULL VALUE */ CUPS_ASN1_OID = 0x06, /* OBJECT IDENTIFIER */ CUPS_ASN1_SEQUENCE = 0x30, /* SEQUENCE */ CUPS_ASN1_HEX_STRING = 0x40, /* Binary string aka Hex-STRING */ CUPS_ASN1_COUNTER = 0x41, /* 32-bit unsigned aka Counter32 */ CUPS_ASN1_GAUGE = 0x42, /* 32-bit unsigned aka Gauge32 */ CUPS_ASN1_TIMETICKS = 0x43, /* 32-bit unsigned aka Timeticks32 */ CUPS_ASN1_GET_REQUEST = 0xa0, /* GetRequest-PDU */ CUPS_ASN1_GET_NEXT_REQUEST = 0xa1, /* GetNextRequest-PDU */ CUPS_ASN1_GET_RESPONSE = 0xa2 /* GetResponse-PDU */ }; typedef enum cups_asn1_e cups_asn1_t; /**** ASN1 request/object types ****/ typedef struct cups_snmp_string_s /**** String value ****/ { unsigned char bytes[CUPS_SNMP_MAX_STRING]; /* Bytes in string */ unsigned num_bytes; /* Number of bytes */ } cups_snmp_string_t; union cups_snmp_value_u /**** Object value ****/ { int boolean; /* Boolean value */ int integer; /* Integer value */ int counter; /* Counter value */ unsigned gauge; /* Gauge value */ unsigned timeticks; /* Timeticks value */ int oid[CUPS_SNMP_MAX_OID]; /* OID value */ cups_snmp_string_t string; /* String value */ }; typedef struct cups_snmp_s /**** SNMP data packet ****/ { const char *error; /* Encode/decode error */ http_addr_t address; /* Source address */ int version; /* Version number */ char community[CUPS_SNMP_MAX_COMMUNITY]; /* Community name */ cups_asn1_t request_type; /* Request type */ unsigned request_id; /* request-id value */ int error_status; /* error-status value */ int error_index; /* error-index value */ int object_name[CUPS_SNMP_MAX_OID]; /* object-name value */ cups_asn1_t object_type; /* object-value type */ union cups_snmp_value_u object_value; /* object-value value */ } cups_snmp_t; typedef void (*cups_snmp_cb_t)(cups_snmp_t *packet, void *data); /* * Prototypes... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ extern void _cupsSNMPClose(int fd) _CUPS_PRIVATE; extern int *_cupsSNMPCopyOID(int *dst, const int *src, int dstsize) _CUPS_PRIVATE; extern const char *_cupsSNMPDefaultCommunity(void) _CUPS_PRIVATE; extern int _cupsSNMPIsOID(cups_snmp_t *packet, const int *oid) _CUPS_PRIVATE; extern int _cupsSNMPIsOIDPrefixed(cups_snmp_t *packet, const int *prefix) _CUPS_PRIVATE; extern char *_cupsSNMPOIDToString(const int *src, char *dst, size_t dstsize) _CUPS_PRIVATE; extern int _cupsSNMPOpen(int family) _CUPS_PRIVATE; extern cups_snmp_t *_cupsSNMPRead(int fd, cups_snmp_t *packet, double timeout) _CUPS_PRIVATE; extern void _cupsSNMPSetDebug(int level) _CUPS_PRIVATE; extern int *_cupsSNMPStringToOID(const char *src, int *dst, int dstsize) _CUPS_PRIVATE; extern int _cupsSNMPWalk(int fd, http_addr_t *address, int version, const char *community, const int *prefix, double timeout, cups_snmp_cb_t cb, void *data) _CUPS_PRIVATE; extern int _cupsSNMPWrite(int fd, http_addr_t *address, int version, const char *community, cups_asn1_t request_type, const unsigned request_id, const int *oid) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_SNMP_PRIVATE_H_ */ cups-2.4.7/cups/sidechannel.h0000644000175000017500000001167314502571342015771 0ustar zdohnalzdohnal/* * Side-channel API definitions for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_SIDECHANNEL_H_ # define _CUPS_SIDECHANNEL_H_ /* * Include necessary headers... */ # include "versioning.h" # include # if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) # define __CUPS_SSIZE_T_DEFINED # include /* Windows does not support the ssize_t type, so map it to __int64... */ typedef __int64 ssize_t; /* @private@ */ # endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ #define CUPS_SC_FD 4 /* File descriptor for select/poll */ /* * Enumerations... */ enum cups_sc_bidi_e /**** Bidirectional capability values ****/ { CUPS_SC_BIDI_NOT_SUPPORTED = 0, /* Bidirectional I/O is not supported */ CUPS_SC_BIDI_SUPPORTED = 1 /* Bidirectional I/O is supported */ }; typedef enum cups_sc_bidi_e cups_sc_bidi_t; /**** Bidirectional capabilities ****/ enum cups_sc_command_e /**** Request command codes ****/ { CUPS_SC_CMD_NONE = 0, /* No command @private@ */ CUPS_SC_CMD_SOFT_RESET = 1, /* Do a soft reset */ CUPS_SC_CMD_DRAIN_OUTPUT = 2, /* Drain all pending output */ CUPS_SC_CMD_GET_BIDI = 3, /* Return bidirectional capabilities */ CUPS_SC_CMD_GET_DEVICE_ID = 4, /* Return the IEEE-1284 device ID */ CUPS_SC_CMD_GET_STATE = 5, /* Return the device state */ CUPS_SC_CMD_SNMP_GET = 6, /* Query an SNMP OID @since CUPS 1.4/macOS 10.6@ */ CUPS_SC_CMD_SNMP_GET_NEXT = 7, /* Query the next SNMP OID @since CUPS 1.4/macOS 10.6@ */ CUPS_SC_CMD_GET_CONNECTED = 8, /* Return whether the backend is "connected" to the printer @since CUPS 1.5/macOS 10.7@ */ CUPS_SC_CMD_MAX /* End of valid values @private@ */ }; typedef enum cups_sc_command_e cups_sc_command_t; /**** Request command codes ****/ enum cups_sc_connected_e /**** Connectivity values ****/ { CUPS_SC_NOT_CONNECTED = 0, /* Backend is not "connected" to printer */ CUPS_SC_CONNECTED = 1 /* Backend is "connected" to printer */ }; typedef enum cups_sc_connected_e cups_sc_connected_t; /**** Connectivity values ****/ enum cups_sc_state_e /**** Printer state bits ****/ { CUPS_SC_STATE_OFFLINE = 0, /* Device is offline */ CUPS_SC_STATE_ONLINE = 1, /* Device is online */ CUPS_SC_STATE_BUSY = 2, /* Device is busy */ CUPS_SC_STATE_ERROR = 4, /* Other error condition */ CUPS_SC_STATE_MEDIA_LOW = 16, /* Paper low condition */ CUPS_SC_STATE_MEDIA_EMPTY = 32, /* Paper out condition */ CUPS_SC_STATE_MARKER_LOW = 64, /* Toner/ink low condition */ CUPS_SC_STATE_MARKER_EMPTY = 128 /* Toner/ink out condition */ }; typedef enum cups_sc_state_e cups_sc_state_t; /**** Printer state bits ****/ enum cups_sc_status_e /**** Response status codes ****/ { CUPS_SC_STATUS_NONE, /* No status */ CUPS_SC_STATUS_OK, /* Operation succeeded */ CUPS_SC_STATUS_IO_ERROR, /* An I/O error occurred */ CUPS_SC_STATUS_TIMEOUT, /* The backend did not respond */ CUPS_SC_STATUS_NO_RESPONSE, /* The device did not respond */ CUPS_SC_STATUS_BAD_MESSAGE, /* The command/response message was invalid */ CUPS_SC_STATUS_TOO_BIG, /* Response too big */ CUPS_SC_STATUS_NOT_IMPLEMENTED /* Command not implemented */ }; typedef enum cups_sc_status_e cups_sc_status_t; /**** Response status codes ****/ typedef void (*cups_sc_walk_func_t)(const char *oid, const char *data, int datalen, void *context); /**** SNMP walk callback ****/ /* * Prototypes... */ /**** New in CUPS 1.2/macOS 10.5 ****/ extern ssize_t cupsBackChannelRead(char *buffer, size_t bytes, double timeout) _CUPS_API_1_2; extern ssize_t cupsBackChannelWrite(const char *buffer, size_t bytes, double timeout) _CUPS_API_1_2; /**** New in CUPS 1.3/macOS 10.5 ****/ extern cups_sc_status_t cupsSideChannelDoRequest(cups_sc_command_t command, char *data, int *datalen, double timeout) _CUPS_API_1_3; extern int cupsSideChannelRead(cups_sc_command_t *command, cups_sc_status_t *status, char *data, int *datalen, double timeout) _CUPS_API_1_3; extern int cupsSideChannelWrite(cups_sc_command_t command, cups_sc_status_t status, const char *data, int datalen, double timeout) _CUPS_API_1_3; /**** New in CUPS 1.4/macOS 10.6 ****/ extern cups_sc_status_t cupsSideChannelSNMPGet(const char *oid, char *data, int *datalen, double timeout) _CUPS_API_1_4; extern cups_sc_status_t cupsSideChannelSNMPWalk(const char *oid, double timeout, cups_sc_walk_func_t cb, void *context) _CUPS_API_1_4; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_SIDECHANNEL_H_ */ cups-2.4.7/cups/sidechannel.c0000644000175000017500000004100014502571342015747 0ustar zdohnalzdohnal/* * Side-channel API code for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "sidechannel.h" #include "cups-private.h" #include "debug-internal.h" #ifdef _WIN32 # include #else # include # include # include #endif /* _WIN32 */ #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ /* * Buffer size for side-channel requests... */ #define _CUPS_SC_MAX_DATA 65535 #define _CUPS_SC_MAX_BUFFER 65540 /* * 'cupsSideChannelDoRequest()' - Send a side-channel command to a backend and wait for a response. * * This function is normally only called by filters, drivers, or port * monitors in order to communicate with the backend used by the current * printer. Programs must be prepared to handle timeout or "not * implemented" status codes, which indicate that the backend or device * do not support the specified side-channel command. * * The "datalen" parameter must be initialized to the size of the buffer * pointed to by the "data" parameter. cupsSideChannelDoRequest() will * update the value to contain the number of data bytes in the buffer. * * @since CUPS 1.3/macOS 10.5@ */ cups_sc_status_t /* O - Status of command */ cupsSideChannelDoRequest( cups_sc_command_t command, /* I - Command to send */ char *data, /* O - Response data buffer pointer */ int *datalen, /* IO - Size of data buffer on entry, number of bytes in buffer on return */ double timeout) /* I - Timeout in seconds */ { cups_sc_status_t status; /* Status of command */ cups_sc_command_t rcommand; /* Response command */ if (cupsSideChannelWrite(command, CUPS_SC_STATUS_NONE, NULL, 0, timeout)) return (CUPS_SC_STATUS_TIMEOUT); if (cupsSideChannelRead(&rcommand, &status, data, datalen, timeout)) return (CUPS_SC_STATUS_TIMEOUT); if (rcommand != command) return (CUPS_SC_STATUS_BAD_MESSAGE); return (status); } /* * 'cupsSideChannelRead()' - Read a side-channel message. * * This function is normally only called by backend programs to read * commands from a filter, driver, or port monitor program. The * caller must be prepared to handle incomplete or invalid messages * and return the corresponding status codes. * * The "datalen" parameter must be initialized to the size of the buffer * pointed to by the "data" parameter. cupsSideChannelDoRequest() will * update the value to contain the number of data bytes in the buffer. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsSideChannelRead( cups_sc_command_t *command, /* O - Command code */ cups_sc_status_t *status, /* O - Status code */ char *data, /* O - Data buffer pointer */ int *datalen, /* IO - Size of data buffer on entry, number of bytes in buffer on return */ double timeout) /* I - Timeout in seconds */ { char *buffer; /* Message buffer */ ssize_t bytes; /* Bytes read */ int templen; /* Data length from message */ int nfds; /* Number of file descriptors */ #ifdef HAVE_POLL struct pollfd pfd; /* Poll structure for poll() */ #else /* select() */ fd_set input_set; /* Input set for select() */ struct timeval stimeout; /* Timeout value for select() */ #endif /* HAVE_POLL */ DEBUG_printf(("cupsSideChannelRead(command=%p, status=%p, data=%p, " "datalen=%p(%d), timeout=%.3f)", command, status, data, datalen, datalen ? *datalen : -1, timeout)); /* * Range check input... */ if (!command || !status) return (-1); /* * See if we have pending data on the side-channel socket... */ #ifdef HAVE_POLL pfd.fd = CUPS_SC_FD; pfd.events = POLLIN; while ((nfds = poll(&pfd, 1, timeout < 0.0 ? -1 : (int)(timeout * 1000))) < 0 && (errno == EINTR || errno == EAGAIN)) ; #else /* select() */ FD_ZERO(&input_set); FD_SET(CUPS_SC_FD, &input_set); stimeout.tv_sec = (int)timeout; stimeout.tv_usec = (int)(timeout * 1000000) % 1000000; while ((nfds = select(CUPS_SC_FD + 1, &input_set, NULL, NULL, timeout < 0.0 ? NULL : &stimeout)) < 0 && (errno == EINTR || errno == EAGAIN)) ; #endif /* HAVE_POLL */ if (nfds < 1) { *command = CUPS_SC_CMD_NONE; *status = nfds==0 ? CUPS_SC_STATUS_TIMEOUT : CUPS_SC_STATUS_IO_ERROR; return (-1); } /* * Read a side-channel message for the format: * * Byte(s) Description * ------- ------------------------------------------- * 0 Command code * 1 Status code * 2-3 Data length (network byte order) * 4-N Data */ if ((buffer = _cupsBufferGet(_CUPS_SC_MAX_BUFFER)) == NULL) { *command = CUPS_SC_CMD_NONE; *status = CUPS_SC_STATUS_TOO_BIG; return (-1); } while ((bytes = read(CUPS_SC_FD, buffer, _CUPS_SC_MAX_BUFFER)) < 0) if (errno != EINTR && errno != EAGAIN) { DEBUG_printf(("1cupsSideChannelRead: Read error: %s", strerror(errno))); _cupsBufferRelease(buffer); *command = CUPS_SC_CMD_NONE; *status = CUPS_SC_STATUS_IO_ERROR; return (-1); } /* * Watch for EOF or too few bytes... */ if (bytes < 4) { DEBUG_printf(("1cupsSideChannelRead: Short read of " CUPS_LLFMT " bytes", CUPS_LLCAST bytes)); _cupsBufferRelease(buffer); *command = CUPS_SC_CMD_NONE; *status = CUPS_SC_STATUS_BAD_MESSAGE; return (-1); } /* * Validate the command code in the message... */ if (buffer[0] < CUPS_SC_CMD_SOFT_RESET || buffer[0] >= CUPS_SC_CMD_MAX) { DEBUG_printf(("1cupsSideChannelRead: Bad command %d!", buffer[0])); _cupsBufferRelease(buffer); *command = CUPS_SC_CMD_NONE; *status = CUPS_SC_STATUS_BAD_MESSAGE; return (-1); } *command = (cups_sc_command_t)buffer[0]; /* * Validate the data length in the message... */ templen = ((buffer[2] & 255) << 8) | (buffer[3] & 255); if (templen > 0 && (!data || !datalen)) { /* * Either the response is bigger than the provided buffer or the * response is bigger than we've read... */ *status = CUPS_SC_STATUS_TOO_BIG; } else if (!datalen || templen > *datalen || templen > (bytes - 4)) { /* * Either the response is bigger than the provided buffer or the * response is bigger than we've read... */ *status = CUPS_SC_STATUS_TOO_BIG; } else { /* * The response data will fit, copy it over and provide the actual * length... */ *status = (cups_sc_status_t)buffer[1]; *datalen = templen; memcpy(data, buffer + 4, (size_t)templen); } _cupsBufferRelease(buffer); DEBUG_printf(("1cupsSideChannelRead: Returning status=%d", *status)); return (0); } /* * 'cupsSideChannelSNMPGet()' - Query a SNMP OID's value. * * This function asks the backend to do a SNMP OID query on behalf of the * filter, port monitor, or backend using the default community name. * * "oid" contains a numeric OID consisting of integers separated by periods, * for example ".1.3.6.1.2.1.43". Symbolic names from SNMP MIBs are not * supported and must be converted to their numeric forms. * * On input, "data" and "datalen" provide the location and size of the * buffer to hold the OID value as a string. HEX-String (binary) values are * converted to hexadecimal strings representing the binary data, while * NULL-Value and unknown OID types are returned as the empty string. * The returned "datalen" does not include the trailing nul. * * @code CUPS_SC_STATUS_NOT_IMPLEMENTED@ is returned by backends that do not * support SNMP queries. @code CUPS_SC_STATUS_NO_RESPONSE@ is returned when * the printer does not respond to the SNMP query. * * @since CUPS 1.4/macOS 10.6@ */ cups_sc_status_t /* O - Query status */ cupsSideChannelSNMPGet( const char *oid, /* I - OID to query */ char *data, /* I - Buffer for OID value */ int *datalen, /* IO - Size of OID buffer on entry, size of value on return */ double timeout) /* I - Timeout in seconds */ { cups_sc_status_t status; /* Status of command */ cups_sc_command_t rcommand; /* Response command */ char *real_data; /* Real data buffer for response */ int real_datalen, /* Real length of data buffer */ real_oidlen; /* Length of returned OID string */ DEBUG_printf(("cupsSideChannelSNMPGet(oid=\"%s\", data=%p, datalen=%p(%d), " "timeout=%.3f)", oid, data, datalen, datalen ? *datalen : -1, timeout)); /* * Range check input... */ if (!oid || !*oid || !data || !datalen || *datalen < 2) return (CUPS_SC_STATUS_BAD_MESSAGE); *data = '\0'; /* * Send the request to the backend and wait for a response... */ if (cupsSideChannelWrite(CUPS_SC_CMD_SNMP_GET, CUPS_SC_STATUS_NONE, oid, (int)strlen(oid) + 1, timeout)) return (CUPS_SC_STATUS_TIMEOUT); if ((real_data = _cupsBufferGet(_CUPS_SC_MAX_BUFFER)) == NULL) return (CUPS_SC_STATUS_TOO_BIG); real_datalen = _CUPS_SC_MAX_BUFFER; if (cupsSideChannelRead(&rcommand, &status, real_data, &real_datalen, timeout)) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_TIMEOUT); } if (rcommand != CUPS_SC_CMD_SNMP_GET) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_BAD_MESSAGE); } if (status == CUPS_SC_STATUS_OK) { /* * Parse the response of the form "oid\0value"... */ real_oidlen = (int)strlen(real_data) + 1; real_datalen -= real_oidlen; if ((real_datalen + 1) > *datalen) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_TOO_BIG); } memcpy(data, real_data + real_oidlen, (size_t)real_datalen); data[real_datalen] = '\0'; *datalen = real_datalen; } _cupsBufferRelease(real_data); return (status); } /* * 'cupsSideChannelSNMPWalk()' - Query multiple SNMP OID values. * * This function asks the backend to do multiple SNMP OID queries on behalf * of the filter, port monitor, or backend using the default community name. * All OIDs under the "parent" OID are queried and the results are sent to * the callback function you provide. * * "oid" contains a numeric OID consisting of integers separated by periods, * for example ".1.3.6.1.2.1.43". Symbolic names from SNMP MIBs are not * supported and must be converted to their numeric forms. * * "timeout" specifies the timeout for each OID query. The total amount of * time will depend on the number of OID values found and the time required * for each query. * * "cb" provides a function to call for every value that is found. "context" * is an application-defined pointer that is sent to the callback function * along with the OID and current data. The data passed to the callback is the * same as returned by @link cupsSideChannelSNMPGet@. * * @code CUPS_SC_STATUS_NOT_IMPLEMENTED@ is returned by backends that do not * support SNMP queries. @code CUPS_SC_STATUS_NO_RESPONSE@ is returned when * the printer does not respond to the first SNMP query. * * @since CUPS 1.4/macOS 10.6@ */ cups_sc_status_t /* O - Status of first query of @code CUPS_SC_STATUS_OK@ on success */ cupsSideChannelSNMPWalk( const char *oid, /* I - First numeric OID to query */ double timeout, /* I - Timeout for each query in seconds */ cups_sc_walk_func_t cb, /* I - Function to call with each value */ void *context) /* I - Application-defined pointer to send to callback */ { cups_sc_status_t status; /* Status of command */ cups_sc_command_t rcommand; /* Response command */ char *real_data; /* Real data buffer for response */ int real_datalen; /* Real length of data buffer */ size_t real_oidlen, /* Length of returned OID string */ oidlen; /* Length of first OID */ const char *current_oid; /* Current OID */ char last_oid[2048]; /* Last OID */ DEBUG_printf(("cupsSideChannelSNMPWalk(oid=\"%s\", timeout=%.3f, cb=%p, " "context=%p)", oid, timeout, cb, context)); /* * Range check input... */ if (!oid || !*oid || !cb) return (CUPS_SC_STATUS_BAD_MESSAGE); if ((real_data = _cupsBufferGet(_CUPS_SC_MAX_BUFFER)) == NULL) return (CUPS_SC_STATUS_TOO_BIG); /* * Loop until the OIDs don't match... */ current_oid = oid; oidlen = strlen(oid); last_oid[0] = '\0'; do { /* * Send the request to the backend and wait for a response... */ if (cupsSideChannelWrite(CUPS_SC_CMD_SNMP_GET_NEXT, CUPS_SC_STATUS_NONE, current_oid, (int)strlen(current_oid) + 1, timeout)) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_TIMEOUT); } real_datalen = _CUPS_SC_MAX_BUFFER; if (cupsSideChannelRead(&rcommand, &status, real_data, &real_datalen, timeout)) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_TIMEOUT); } if (rcommand != CUPS_SC_CMD_SNMP_GET_NEXT) { _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_BAD_MESSAGE); } if (status == CUPS_SC_STATUS_OK) { /* * Parse the response of the form "oid\0value"... */ if (strncmp(real_data, oid, oidlen) || real_data[oidlen] != '.' || !strcmp(real_data, last_oid)) { /* * Done with this set of OIDs... */ _cupsBufferRelease(real_data); return (CUPS_SC_STATUS_OK); } if ((size_t)real_datalen < sizeof(real_data)) real_data[real_datalen] = '\0'; real_oidlen = strlen(real_data) + 1; real_datalen -= (int)real_oidlen; /* * Call the callback with the OID and data... */ (*cb)(real_data, real_data + real_oidlen, real_datalen, context); /* * Update the current OID... */ current_oid = real_data; strlcpy(last_oid, current_oid, sizeof(last_oid)); } } while (status == CUPS_SC_STATUS_OK); _cupsBufferRelease(real_data); return (status); } /* * 'cupsSideChannelWrite()' - Write a side-channel message. * * This function is normally only called by backend programs to send * responses to a filter, driver, or port monitor program. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsSideChannelWrite( cups_sc_command_t command, /* I - Command code */ cups_sc_status_t status, /* I - Status code */ const char *data, /* I - Data buffer pointer */ int datalen, /* I - Number of bytes of data */ double timeout) /* I - Timeout in seconds */ { char *buffer; /* Message buffer */ ssize_t bytes; /* Bytes written */ #ifdef HAVE_POLL struct pollfd pfd; /* Poll structure for poll() */ #else /* select() */ fd_set output_set; /* Output set for select() */ struct timeval stimeout; /* Timeout value for select() */ #endif /* HAVE_POLL */ /* * Range check input... */ if (command < CUPS_SC_CMD_SOFT_RESET || command >= CUPS_SC_CMD_MAX || datalen < 0 || datalen > _CUPS_SC_MAX_DATA || (datalen > 0 && !data)) return (-1); /* * See if we can safely write to the side-channel socket... */ #ifdef HAVE_POLL pfd.fd = CUPS_SC_FD; pfd.events = POLLOUT; if (timeout < 0.0) { if (poll(&pfd, 1, -1) < 1) return (-1); } else if (poll(&pfd, 1, (int)(timeout * 1000)) < 1) return (-1); #else /* select() */ FD_ZERO(&output_set); FD_SET(CUPS_SC_FD, &output_set); if (timeout < 0.0) { if (select(CUPS_SC_FD + 1, NULL, &output_set, NULL, NULL) < 1) return (-1); } else { stimeout.tv_sec = (int)timeout; stimeout.tv_usec = (int)(timeout * 1000000) % 1000000; if (select(CUPS_SC_FD + 1, NULL, &output_set, NULL, &stimeout) < 1) return (-1); } #endif /* HAVE_POLL */ /* * Write a side-channel message in the format: * * Byte(s) Description * ------- ------------------------------------------- * 0 Command code * 1 Status code * 2-3 Data length (network byte order) <= 16384 * 4-N Data */ if ((buffer = _cupsBufferGet((size_t)datalen + 4)) == NULL) return (-1); buffer[0] = (char)command; buffer[1] = (char)status; buffer[2] = (char)(datalen >> 8); buffer[3] = (char)(datalen & 255); bytes = 4; if (datalen > 0) { memcpy(buffer + 4, data, (size_t)datalen); bytes += datalen; } while (write(CUPS_SC_FD, buffer, (size_t)bytes) < 0) if (errno != EINTR && errno != EAGAIN) { _cupsBufferRelease(buffer); return (-1); } _cupsBufferRelease(buffer); return (0); } cups-2.4.7/cups/request.c0000644000175000017500000007276614502571342015211 0ustar zdohnalzdohnal/* * IPP utilities for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ #ifndef O_BINARY # define O_BINARY 0 #endif /* O_BINARY */ #ifdef _AIX # define MSG_DONTWAIT MSG_NONBLOCK #elif !defined(MSG_DONTWAIT) # define MSG_DONTWAIT 0 #endif /* _AIX */ /* * 'cupsDoFileRequest()' - Do an IPP request with a file. * * This function sends the IPP request and attached file to the specified * server, retrying and authenticating as necessary. The request is freed with * @link ippDelete@. */ ipp_t * /* O - Response data */ cupsDoFileRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - HTTP resource for POST */ const char *filename) /* I - File to send or @code NULL@ for none */ { ipp_t *response; /* IPP response data */ int infile; /* Input file */ DEBUG_printf(("cupsDoFileRequest(http=%p, request=%p(%s), resource=\"%s\", filename=\"%s\")", (void *)http, (void *)request, request ? ippOpString(request->request.op.operation_id) : "?", resource, filename)); if (filename) { if ((infile = open(filename, O_RDONLY | O_BINARY)) < 0) { /* * Can't get file information! */ _cupsSetError(errno == ENOENT ? IPP_STATUS_ERROR_NOT_FOUND : IPP_STATUS_ERROR_NOT_AUTHORIZED, NULL, 0); ippDelete(request); return (NULL); } } else infile = -1; response = cupsDoIORequest(http, request, resource, infile, -1); if (infile >= 0) close(infile); return (response); } /* * 'cupsDoIORequest()' - Do an IPP request with file descriptors. * * This function sends the IPP request with the optional input file "infile" to * the specified server, retrying and authenticating as necessary. The request * is freed with @link ippDelete@. * * If "infile" is a valid file descriptor, @code cupsDoIORequest@ copies * all of the data from the file after the IPP request message. * * If "outfile" is a valid file descriptor, @code cupsDoIORequest@ copies * all of the data after the IPP response message to the file. * * @since CUPS 1.3/macOS 10.5@ */ ipp_t * /* O - Response data */ cupsDoIORequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - HTTP resource for POST */ int infile, /* I - File to read from or -1 for none */ int outfile) /* I - File to write to or -1 for none */ { ipp_t *response = NULL; /* IPP response data */ size_t length = 0; /* Content-Length value */ http_status_t status; /* Status of HTTP request */ struct stat fileinfo; /* File information */ ssize_t bytes; /* Number of bytes read/written */ char buffer[32768]; /* Output buffer */ DEBUG_printf(("cupsDoIORequest(http=%p, request=%p(%s), resource=\"%s\", infile=%d, outfile=%d)", (void *)http, (void *)request, request ? ippOpString(request->request.op.operation_id) : "?", resource, infile, outfile)); /* * Range check input... */ if (!request || !resource) { ippDelete(request); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Get the default connection as needed... */ if (!http && (http = _cupsConnect()) == NULL) { ippDelete(request); return (NULL); } /* * See if we have a file to send... */ if (infile >= 0) { if (fstat(infile, &fileinfo)) { /* * Can't get file information! */ _cupsSetError(errno == EBADF ? IPP_STATUS_ERROR_NOT_FOUND : IPP_STATUS_ERROR_NOT_AUTHORIZED, NULL, 0); ippDelete(request); return (NULL); } #ifdef _WIN32 if (fileinfo.st_mode & _S_IFDIR) #else if (S_ISDIR(fileinfo.st_mode)) #endif /* _WIN32 */ { /* * Can't send a directory... */ _cupsSetError(IPP_STATUS_ERROR_NOT_POSSIBLE, strerror(EISDIR), 0); ippDelete(request); return (NULL); } #ifndef _WIN32 if (!S_ISREG(fileinfo.st_mode)) length = 0; /* Chunk when piping */ else #endif /* !_WIN32 */ length = ippLength(request) + (size_t)fileinfo.st_size; } else length = ippLength(request); DEBUG_printf(("2cupsDoIORequest: Request length=%lu, total length=%lu", (unsigned long)ippLength(request), (unsigned long)length)); /* * Clear any "Local" authentication data since it is probably stale... */ if (http->authstring && !strncmp(http->authstring, "Local ", 6)) httpSetAuthString(http, NULL, NULL); /* * Loop until we can send the request without authorization problems. */ while (response == NULL) { DEBUG_puts("2cupsDoIORequest: setup..."); /* * Send the request... */ status = cupsSendRequest(http, request, resource, length); DEBUG_printf(("2cupsDoIORequest: status=%d", status)); if (status == HTTP_STATUS_CONTINUE && request->state == IPP_STATE_DATA && infile >= 0) { DEBUG_puts("2cupsDoIORequest: file write..."); /* * Send the file with the request... */ #ifndef _WIN32 if (S_ISREG(fileinfo.st_mode)) #endif /* _WIN32 */ lseek(infile, 0, SEEK_SET); while ((bytes = read(infile, buffer, sizeof(buffer))) > 0) { if ((status = cupsWriteRequestData(http, buffer, (size_t)bytes)) != HTTP_STATUS_CONTINUE) break; } } /* * Get the server's response... */ if (status <= HTTP_STATUS_CONTINUE || status == HTTP_STATUS_OK) { response = cupsGetResponse(http, resource); status = httpGetStatus(http); } DEBUG_printf(("2cupsDoIORequest: status=%d", status)); if (status == HTTP_STATUS_ERROR || (status >= HTTP_STATUS_BAD_REQUEST && status != HTTP_STATUS_UNAUTHORIZED && status != HTTP_STATUS_UPGRADE_REQUIRED)) { _cupsSetHTTPError(status); break; } if (response && outfile >= 0) { /* * Write trailing data to file... */ while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) if (write(outfile, buffer, (size_t)bytes) < bytes) break; } if (http->state != HTTP_STATE_WAITING) { /* * Flush any remaining data... */ httpFlush(http); } } /* * Delete the original request and return the response... */ ippDelete(request); return (response); } /* * 'cupsDoRequest()' - Do an IPP request. * * This function sends the IPP request to the specified server, retrying * and authenticating as necessary. The request is freed with @link ippDelete@. */ ipp_t * /* O - Response data */ cupsDoRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource) /* I - HTTP resource for POST */ { DEBUG_printf(("cupsDoRequest(http=%p, request=%p(%s), resource=\"%s\")", (void *)http, (void *)request, request ? ippOpString(request->request.op.operation_id) : "?", resource)); return (cupsDoIORequest(http, request, resource, -1, -1)); } /* * 'cupsGetResponse()' - Get a response to an IPP request. * * Use this function to get the response for an IPP request sent using * @link cupsSendRequest@. For requests that return additional data, use * @link cupsReadResponseData@ after getting a successful response, * otherwise call @link httpFlush@ to complete the response processing. * * @since CUPS 1.4/macOS 10.6@ */ ipp_t * /* O - Response or @code NULL@ on HTTP error */ cupsGetResponse(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource) /* I - HTTP resource for POST */ { http_status_t status; /* HTTP status */ ipp_state_t state; /* IPP read state */ ipp_t *response = NULL; /* IPP response */ DEBUG_printf(("cupsGetResponse(http=%p, resource=\"%s\")", (void *)http, resource)); DEBUG_printf(("1cupsGetResponse: http->state=%d", http ? http->state : HTTP_STATE_ERROR)); /* * Connect to the default server as needed... */ if (!http) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if ((http = cg->http) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No active connection."), 1); DEBUG_puts("1cupsGetResponse: No active connection - returning NULL."); return (NULL); } } if (http->state != HTTP_STATE_POST_RECV && http->state != HTTP_STATE_POST_SEND) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No request sent."), 1); DEBUG_puts("1cupsGetResponse: Not in POST state - returning NULL."); return (NULL); } /* * Check for an unfinished chunked request... */ if (http->data_encoding == HTTP_ENCODING_CHUNKED) { /* * Send a 0-length chunk to finish off the request... */ DEBUG_puts("2cupsGetResponse: Finishing chunked POST..."); if (httpWrite2(http, "", 0) < 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to finish request."), 1); return (NULL); } } /* * Wait for a response from the server... */ DEBUG_printf(("2cupsGetResponse: Update loop, http->status=%d...", http->status)); do { status = httpUpdate(http); } while (status == HTTP_STATUS_CONTINUE); DEBUG_printf(("2cupsGetResponse: status=%d", status)); if (status == HTTP_STATUS_OK) { /* * Get the IPP response... */ response = ippNew(); while ((state = ippRead(http, response)) != IPP_STATE_DATA) if (state == IPP_STATE_ERROR) break; if (state == IPP_STATE_ERROR) { /* * Flush remaining data and delete the response... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to read response."), 1); DEBUG_puts("1cupsGetResponse: IPP read error!"); httpFlush(http); ippDelete(response); response = NULL; http->status = HTTP_STATUS_ERROR; http->error = EINVAL; } } else if (status != HTTP_STATUS_ERROR) { /* * Flush any error message... */ httpFlush(http); _cupsSetHTTPError(status); /* * Then handle encryption and authentication... */ if (status == HTTP_STATUS_UNAUTHORIZED) { /* * See if we can do authentication... */ DEBUG_puts("2cupsGetResponse: Need authorization..."); if (!cupsDoAuthentication(http, "POST", resource)) httpReconnect2(http, 30000, NULL); else http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* * Force a reconnect with encryption... */ DEBUG_puts("2cupsGetResponse: Need encryption..."); if (!httpReconnect2(http, 30000, NULL)) httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); } #endif /* HAVE_TLS */ } if (response) { ipp_attribute_t *attr; /* status-message attribute */ attr = ippFindAttribute(response, "status-message", IPP_TAG_TEXT); DEBUG_printf(("1cupsGetResponse: status-code=%s, status-message=\"%s\"", ippErrorString(response->request.status.status_code), attr ? attr->values[0].string.text : "")); _cupsSetError(response->request.status.status_code, attr ? attr->values[0].string.text : ippErrorString(response->request.status.status_code), 0); } return (response); } /* * 'cupsLastError()' - Return the last IPP status code received on the current * thread. */ ipp_status_t /* O - IPP status code from last request */ cupsLastError(void) { return (_cupsGlobals()->last_error); } /* * 'cupsLastErrorString()' - Return the last IPP status-message received on the * current thread. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - status-message text from last request */ cupsLastErrorString(void) { return (_cupsGlobals()->last_status_message); } /* * '_cupsNextDelay()' - Return the next retry delay value. * * This function currently returns the Fibonacci sequence 1 1 2 3 5 8. * * Pass 0 for the current delay value to initialize the sequence. */ int /* O - Next delay value */ _cupsNextDelay(int current, /* I - Current delay value or 0 */ int *previous) /* IO - Previous delay value */ { int next; /* Next delay value */ if (current > 0) { next = (current + *previous) % 12; *previous = next < current ? 0 : current; } else { next = 1; *previous = 0; } return (next); } /* * 'cupsReadResponseData()' - Read additional data after the IPP response. * * This function is used after @link cupsGetResponse@ to read the PPD or document * files from @code CUPS_GET_PPD@ and @code CUPS_GET_DOCUMENT@ requests, * respectively. * * @since CUPS 1.4/macOS 10.6@ */ ssize_t /* O - Bytes read, 0 on EOF, -1 on error */ cupsReadResponseData( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ char *buffer, /* I - Buffer to use */ size_t length) /* I - Number of bytes to read */ { /* * Get the default connection as needed... */ DEBUG_printf(("cupsReadResponseData(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); if (!http) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if ((http = cg->http) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No active connection"), 1); return (-1); } } /* * Then read from the HTTP connection... */ return (httpRead2(http, buffer, length)); } /* * 'cupsSendRequest()' - Send an IPP request. * * Use @link cupsWriteRequestData@ to write any additional data (document, PPD * file, etc.) for the request, @link cupsGetResponse@ to get the IPP response, * and @link cupsReadResponseData@ to read any additional data following the * response. Only one request can be sent/queued at a time per @code http_t@ * connection. * * Returns the initial HTTP status code, which will be @code HTTP_STATUS_CONTINUE@ * on a successful send of the request. * * Note: Unlike @link cupsDoFileRequest@, @link cupsDoIORequest@, and * @link cupsDoRequest@, the request is NOT freed with @link ippDelete@. * * @since CUPS 1.4/macOS 10.6@ */ http_status_t /* O - Initial HTTP status */ cupsSendRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ ipp_t *request, /* I - IPP request */ const char *resource, /* I - Resource path */ size_t length) /* I - Length of data to follow or @code CUPS_LENGTH_VARIABLE@ */ { http_status_t status; /* Status of HTTP request */ int got_status; /* Did we get the status? */ ipp_state_t state; /* State of IPP processing */ http_status_t expect; /* Expect: header to use */ char date[256]; /* Date: header value */ int digest; /* Are we using Digest authentication? */ DEBUG_printf(("cupsSendRequest(http=%p, request=%p(%s), resource=\"%s\", length=" CUPS_LLFMT ")", (void *)http, (void *)request, request ? ippOpString(request->request.op.operation_id) : "?", resource, CUPS_LLCAST length)); /* * Range check input... */ if (!request || !resource) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (HTTP_STATUS_ERROR); } /* * Get the default connection as needed... */ if (!http && (http = _cupsConnect()) == NULL) return (HTTP_STATUS_SERVICE_UNAVAILABLE); /* * If the prior request was not flushed out, do so now... */ if (http->state == HTTP_STATE_GET_SEND || http->state == HTTP_STATE_POST_SEND) { DEBUG_puts("2cupsSendRequest: Flush prior response."); httpFlush(http); } else if (http->state != HTTP_STATE_WAITING) { DEBUG_printf(("1cupsSendRequest: Unknown HTTP state (%d), " "reconnecting.", http->state)); if (httpReconnect2(http, 30000, NULL)) return (HTTP_STATUS_ERROR); } #ifdef HAVE_TLS /* * See if we have an auth-info attribute and are communicating over * a non-local link. If so, encrypt the link so that we can pass * the authentication information securely... */ if (ippFindAttribute(request, "auth-info", IPP_TAG_TEXT) && !httpAddrLocalhost(http->hostaddr) && !http->tls && httpEncryption(http, HTTP_ENCRYPTION_REQUIRED)) { DEBUG_puts("1cupsSendRequest: Unable to encrypt connection."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } #endif /* HAVE_TLS */ /* * Reconnect if the last response had a "Connection: close"... */ if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { DEBUG_puts("2cupsSendRequest: Connection: close"); httpClearFields(http); if (httpReconnect2(http, 30000, NULL)) { DEBUG_puts("1cupsSendRequest: Unable to reconnect."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } } /* * Loop until we can send the request without authorization problems. */ expect = HTTP_STATUS_CONTINUE; for (;;) { DEBUG_puts("2cupsSendRequest: Setup..."); /* * Setup the HTTP variables needed... */ httpClearFields(http); httpSetExpect(http, expect); httpSetField(http, HTTP_FIELD_CONTENT_TYPE, "application/ipp"); httpSetField(http, HTTP_FIELD_DATE, httpGetDateString2(time(NULL), date, (int)sizeof(date))); httpSetLength(http, length); digest = http->authstring && !strncmp(http->authstring, "Digest ", 7); if (digest) { /* * Update the Digest authentication string... */ _httpSetDigestAuthString(http, http->nextnonce, "POST", resource); } #ifdef HAVE_GSSAPI if (http->authstring && !strncmp(http->authstring, "Negotiate", 9)) { /* * Do not use cached Kerberos credentials since they will look like a * "replay" attack... */ _cupsSetNegotiateAuthString(http, "POST", resource); } #endif /* HAVE_GSSAPI */ httpSetField(http, HTTP_FIELD_AUTHORIZATION, http->authstring); DEBUG_printf(("2cupsSendRequest: authstring=\"%s\"", http->authstring)); /* * Try the request... */ DEBUG_puts("2cupsSendRequest: Sending HTTP POST..."); if (httpPost(http, resource)) { DEBUG_puts("2cupsSendRequest: POST failed, reconnecting."); if (httpReconnect2(http, 30000, NULL)) { DEBUG_puts("1cupsSendRequest: Unable to reconnect."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } else continue; } /* * Send the IPP data... */ DEBUG_puts("2cupsSendRequest: Writing IPP request..."); request->state = IPP_STATE_IDLE; status = HTTP_STATUS_CONTINUE; got_status = 0; while ((state = ippWrite(http, request)) != IPP_STATE_DATA) { if (httpCheck(http)) { got_status = 1; _httpUpdate(http, &status); if (status >= HTTP_STATUS_MULTIPLE_CHOICES) break; } else if (state == IPP_STATE_ERROR) break; } if (state == IPP_STATE_ERROR) { /* * We weren't able to send the IPP request. But did we already get a HTTP * error status? */ if (!got_status || status < HTTP_STATUS_MULTIPLE_CHOICES) { /* * No, something else went wrong. */ DEBUG_puts("1cupsSendRequest: Unable to send IPP request."); http->status = HTTP_STATUS_ERROR; http->state = HTTP_STATE_WAITING; return (HTTP_STATUS_ERROR); } } /* * Wait up to 1 second to get the 100-continue response as needed... */ if (!got_status || (digest && status == HTTP_STATUS_CONTINUE)) { if (expect == HTTP_STATUS_CONTINUE || digest) { DEBUG_puts("2cupsSendRequest: Waiting for 100-continue..."); if (httpWait(http, 1000)) _httpUpdate(http, &status); } else if (httpCheck(http)) _httpUpdate(http, &status); } DEBUG_printf(("2cupsSendRequest: status=%d", status)); /* * Process the current HTTP status... */ if (status >= HTTP_STATUS_MULTIPLE_CHOICES) { int temp_status; /* Temporary status */ _cupsSetHTTPError(status); do { temp_status = httpUpdate(http); } while (temp_status != HTTP_STATUS_ERROR && http->state == HTTP_STATE_POST_RECV); httpFlush(http); } switch (status) { case HTTP_STATUS_CONTINUE : case HTTP_STATUS_OK : case HTTP_STATUS_ERROR : DEBUG_printf(("1cupsSendRequest: Returning %d.", status)); return (status); case HTTP_STATUS_UNAUTHORIZED : if (cupsDoAuthentication(http, "POST", resource)) { DEBUG_puts("1cupsSendRequest: Returning HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED."); return (HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED); } DEBUG_puts("2cupsSendRequest: Reconnecting after HTTP_STATUS_UNAUTHORIZED."); if (httpReconnect2(http, 30000, NULL)) { DEBUG_puts("1cupsSendRequest: Unable to reconnect."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } break; #ifdef HAVE_TLS case HTTP_STATUS_UPGRADE_REQUIRED : /* * Flush any error message, reconnect, and then upgrade with * encryption... */ DEBUG_puts("2cupsSendRequest: Reconnecting after " "HTTP_STATUS_UPGRADE_REQUIRED."); if (httpReconnect2(http, 30000, NULL)) { DEBUG_puts("1cupsSendRequest: Unable to reconnect."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } DEBUG_puts("2cupsSendRequest: Upgrading to TLS."); if (httpEncryption(http, HTTP_ENCRYPTION_REQUIRED)) { DEBUG_puts("1cupsSendRequest: Unable to encrypt connection."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } break; #endif /* HAVE_TLS */ case HTTP_STATUS_EXPECTATION_FAILED : /* * Don't try using the Expect: header the next time around... */ expect = HTTP_STATUS_NONE; DEBUG_puts("2cupsSendRequest: Reconnecting after " "HTTP_EXPECTATION_FAILED."); if (httpReconnect2(http, 30000, NULL)) { DEBUG_puts("1cupsSendRequest: Unable to reconnect."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } break; default : /* * Some other error... */ return (status); } } } /* * 'cupsWriteRequestData()' - Write additional data after an IPP request. * * This function is used after @link cupsSendRequest@ to provide a PPD and * after @link cupsStartDocument@ to provide a document file. * * @since CUPS 1.4/macOS 10.6@ */ http_status_t /* O - @code HTTP_STATUS_CONTINUE@ if OK or HTTP status on error */ cupsWriteRequestData( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *buffer, /* I - Bytes to write */ size_t length) /* I - Number of bytes to write */ { int wused; /* Previous bytes in buffer */ /* * Get the default connection as needed... */ DEBUG_printf(("cupsWriteRequestData(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); if (!http) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ if ((http = cg->http) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No active connection"), 1); DEBUG_puts("1cupsWriteRequestData: Returning HTTP_STATUS_ERROR."); return (HTTP_STATUS_ERROR); } } /* * Then write to the HTTP connection... */ wused = http->wused; if (httpWrite2(http, buffer, length) < 0) { DEBUG_puts("1cupsWriteRequestData: Returning HTTP_STATUS_ERROR."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(http->error), 0); return (HTTP_STATUS_ERROR); } /* * Finally, check if we have any pending data from the server... */ if (length >= HTTP_MAX_BUFFER || http->wused < wused || (wused > 0 && (size_t)http->wused == length)) { /* * We've written something to the server, so check for response data... */ if (_httpWait(http, 0, 1)) { http_status_t status; /* Status from _httpUpdate */ _httpUpdate(http, &status); if (status >= HTTP_STATUS_MULTIPLE_CHOICES) { _cupsSetHTTPError(status); do { status = httpUpdate(http); } while (status != HTTP_STATUS_ERROR && http->state == HTTP_STATE_POST_RECV); httpFlush(http); } DEBUG_printf(("1cupsWriteRequestData: Returning %d.\n", status)); return (status); } } DEBUG_puts("1cupsWriteRequestData: Returning HTTP_STATUS_CONTINUE."); return (HTTP_STATUS_CONTINUE); } /* * '_cupsConnect()' - Get the default server connection... */ http_t * /* O - HTTP connection */ _cupsConnect(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * See if we are connected to the same server... */ if (cg->http) { /* * Compare the connection hostname, port, and encryption settings to * the cached defaults; these were initialized the first time we * connected... */ if (strcmp(cg->http->hostname, cg->server) || #ifdef AF_LOCAL (httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr)) || #else cg->ipp_port != httpAddrPort(cg->http->hostaddr) || #endif /* AF_LOCAL */ (cg->http->encryption != cg->encryption && cg->http->encryption == HTTP_ENCRYPTION_NEVER)) { /* * Need to close the current connection because something has changed... */ httpClose(cg->http); cg->http = NULL; } else { /* * Same server, see if the connection is still established... */ char ch; /* Connection check byte */ ssize_t n; /* Number of bytes */ #ifdef _WIN32 if ((n = recv(cg->http->fd, &ch, 1, MSG_PEEK)) == 0 || (n < 0 && WSAGetLastError() != WSAEWOULDBLOCK)) #else if ((n = recv(cg->http->fd, &ch, 1, MSG_PEEK | MSG_DONTWAIT)) == 0 || (n < 0 && errno != EWOULDBLOCK)) #endif /* _WIN32 */ { /* * Nope, close the connection... */ httpClose(cg->http); cg->http = NULL; } } } /* * (Re)connect as needed... */ if (!cg->http) { if ((cg->http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL)) == NULL) { if (errno) _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, NULL, 0); else _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, _("Unable to connect to host."), 1); } } /* * Return the cached connection... */ return (cg->http); } /* * '_cupsSetError()' - Set the last IPP status code and status-message. */ void _cupsSetError(ipp_status_t status, /* I - IPP status code */ const char *message, /* I - status-message value */ int localize) /* I - Localize the message? */ { _cups_globals_t *cg; /* Global data */ if (!message && errno) { message = strerror(errno); localize = 0; } cg = _cupsGlobals(); cg->last_error = status; if (cg->last_status_message) { _cupsStrFree(cg->last_status_message); cg->last_status_message = NULL; } if (message) { if (localize) { /* * Get the message catalog... */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); cg->last_status_message = _cupsStrAlloc(_cupsLangString(cg->lang_default, message)); } else cg->last_status_message = _cupsStrAlloc(message); } DEBUG_printf(("4_cupsSetError: last_error=%s, last_status_message=\"%s\"", ippErrorString(cg->last_error), cg->last_status_message)); } /* * '_cupsSetHTTPError()' - Set the last error using the HTTP status. */ void _cupsSetHTTPError(http_status_t status) /* I - HTTP status code */ { switch (status) { case HTTP_STATUS_NOT_FOUND : _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, httpStatus(status), 0); break; case HTTP_STATUS_UNAUTHORIZED : _cupsSetError(IPP_STATUS_ERROR_NOT_AUTHENTICATED, httpStatus(status), 0); break; case HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED : _cupsSetError(IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED, httpStatus(status), 0); break; case HTTP_STATUS_FORBIDDEN : _cupsSetError(IPP_STATUS_ERROR_FORBIDDEN, httpStatus(status), 0); break; case HTTP_STATUS_BAD_REQUEST : _cupsSetError(IPP_STATUS_ERROR_BAD_REQUEST, httpStatus(status), 0); break; case HTTP_STATUS_REQUEST_TOO_LARGE : _cupsSetError(IPP_STATUS_ERROR_REQUEST_VALUE, httpStatus(status), 0); break; case HTTP_STATUS_NOT_IMPLEMENTED : _cupsSetError(IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, httpStatus(status), 0); break; case HTTP_STATUS_NOT_SUPPORTED : _cupsSetError(IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, httpStatus(status), 0); break; case HTTP_STATUS_UPGRADE_REQUIRED : _cupsSetError(IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED, httpStatus(status), 0); break; case HTTP_STATUS_CUPS_PKI_ERROR : _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, httpStatus(status), 0); break; case HTTP_STATUS_ERROR : _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); break; default : DEBUG_printf(("4_cupsSetHTTPError: HTTP error %d mapped to " "IPP_STATUS_ERROR_SERVICE_UNAVAILABLE!", status)); _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, httpStatus(status), 0); break; } } cups-2.4.7/cups/rasterbench.c0000644000175000017500000001526314502571342016006 0ustar zdohnalzdohnal/* * Raster benchmark program for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include #include #include #include #include #include #include /* * Constants... */ #define TEST_WIDTH 1024 #define TEST_HEIGHT 1024 #define TEST_PAGES 16 #define TEST_PASSES 20 /* * Local functions... */ static double compute_median(double *secs); static double get_time(void); static void read_test(int fd); static int run_read_test(void); static void write_test(int fd, cups_mode_t mode); /* * 'main()' - Benchmark the raster read/write functions. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int ras_fd, /* File descriptor for read process */ status; /* Exit status of read process */ double start_secs, /* Start time */ write_secs, /* Write time */ read_secs, /* Read time */ pass_secs[TEST_PASSES]; /* Total test times */ cups_mode_t mode; /* Write mode */ /* * See if we have anything on the command-line... */ if (argc > 2 || (argc == 2 && strcmp(argv[1], "-z"))) { puts("Usage: rasterbench [-z]"); return (1); } mode = argc > 1 ? CUPS_RASTER_WRITE_COMPRESSED : CUPS_RASTER_WRITE; /* * Ignore SIGPIPE... */ signal(SIGPIPE, SIG_IGN); /* * Run the tests several times to get a good average... */ printf("Test read/write speed of %d pages, %dx%d pixels...\n\n", TEST_PAGES, TEST_WIDTH, TEST_HEIGHT); for (i = 0; i < TEST_PASSES; i ++) { printf("PASS %2d: ", i + 1); fflush(stdout); ras_fd = run_read_test(); start_secs = get_time(); write_test(ras_fd, mode); write_secs = get_time(); printf(" %.3f write,", write_secs - start_secs); fflush(stdout); close(ras_fd); wait(&status); read_secs = get_time(); pass_secs[i] = read_secs - start_secs; printf(" %.3f read, %.3f total\n", read_secs - write_secs, pass_secs[i]); } printf("\nMedian Total Time: %.3f seconds per document\n", compute_median(pass_secs)); return (0); } /* * 'compute_median()' - Compute the median time for a test. */ static double /* O - Median time in seconds */ compute_median(double *secs) /* I - Array of time samples */ { int i, j; /* Looping vars */ double temp; /* Swap variable */ /* * Sort the array into ascending order using a quick bubble sort... */ for (i = 0; i < (TEST_PASSES - 1); i ++) for (j = i + 1; j < TEST_PASSES; j ++) if (secs[i] > secs[j]) { temp = secs[i]; secs[i] = secs[j]; secs[j] = temp; } /* * Return the average of the middle two samples... */ return (0.5 * (secs[TEST_PASSES / 2 - 1] + secs[TEST_PASSES / 2])); } /* * 'get_time()' - Get the current time in seconds. */ static double /* O - Time in seconds */ get_time(void) { struct timeval curtime; /* Current time */ gettimeofday(&curtime, NULL); return (curtime.tv_sec + 0.000001 * curtime.tv_usec); } /* * 'read_test()' - Benchmark the raster read functions. */ static void read_test(int fd) /* I - File descriptor to read from */ { unsigned y; /* Looping var */ cups_raster_t *r; /* Raster stream */ cups_page_header2_t header; /* Page header */ unsigned char buffer[8 * TEST_WIDTH]; /* Read buffer */ /* * Test read speed... */ if ((r = cupsRasterOpen(fd, CUPS_RASTER_READ)) == NULL) { perror("Unable to create raster input stream"); return; } while (cupsRasterReadHeader2(r, &header)) { for (y = 0; y < header.cupsHeight; y ++) cupsRasterReadPixels(r, buffer, header.cupsBytesPerLine); } cupsRasterClose(r); } /* * 'run_read_test()' - Run the read test as a child process via pipes. */ static int /* O - Standard input of child */ run_read_test(void) { int ras_pipes[2]; /* Raster data pipes */ int pid; /* Child process ID */ if (pipe(ras_pipes)) return (-1); if ((pid = fork()) < 0) { /* * Fork error - return -1 on error... */ close(ras_pipes[0]); close(ras_pipes[1]); return (-1); } else if (pid == 0) { /* * Child comes here - read data from the input pipe... */ close(ras_pipes[1]); read_test(ras_pipes[0]); exit(0); } else { /* * Parent comes here - return the output pipe... */ close(ras_pipes[0]); return (ras_pipes[1]); } } /* * 'write_test()' - Benchmark the raster write functions. */ static void write_test(int fd, /* I - File descriptor to write to */ cups_mode_t mode) /* I - Write mode */ { unsigned page, x, y; /* Looping vars */ unsigned count; /* Number of bytes to set */ cups_raster_t *r; /* Raster stream */ cups_page_header2_t header; /* Page header */ unsigned char data[32][8 * TEST_WIDTH]; /* Raster data to write */ /* * Create a combination of random data and repeated data to simulate * text with some whitespace. */ CUPS_SRAND(time(NULL)); memset(data, 0, sizeof(data)); for (y = 0; y < 28; y ++) { for (x = CUPS_RAND() & 127, count = (CUPS_RAND() & 15) + 1; x < sizeof(data[0]); x ++, count --) { if (count <= 0) { x += (CUPS_RAND() & 15) + 1; count = (CUPS_RAND() & 15) + 1; if (x >= sizeof(data[0])) break; } data[y][x] = (unsigned char)CUPS_RAND(); } } /* * Test write speed... */ if ((r = cupsRasterOpen(fd, mode)) == NULL) { perror("Unable to create raster output stream"); return; } for (page = 0; page < TEST_PAGES; page ++) { memset(&header, 0, sizeof(header)); header.cupsWidth = TEST_WIDTH; header.cupsHeight = TEST_HEIGHT; header.cupsBytesPerLine = TEST_WIDTH; if (page & 1) { header.cupsBytesPerLine *= 4; header.cupsColorSpace = CUPS_CSPACE_CMYK; header.cupsColorOrder = CUPS_ORDER_CHUNKED; } else { header.cupsColorSpace = CUPS_CSPACE_K; header.cupsColorOrder = CUPS_ORDER_BANDED; } if (page & 2) { header.cupsBytesPerLine *= 2; header.cupsBitsPerColor = 16; header.cupsBitsPerPixel = (page & 1) ? 64 : 16; } else { header.cupsBitsPerColor = 8; header.cupsBitsPerPixel = (page & 1) ? 32 : 8; } cupsRasterWriteHeader2(r, &header); for (y = 0; y < TEST_HEIGHT; y ++) cupsRasterWritePixels(r, data[y & 31], header.cupsBytesPerLine); } cupsRasterClose(r); } cups-2.4.7/cups/raster.h0000644000175000017500000004261614502571342015015 0ustar zdohnalzdohnal/* * Raster file definitions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * This file is part of the CUPS Imaging library. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_RASTER_H_ # define _CUPS_RASTER_H_ /* * Include necessary headers... */ # include "cups.h" # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * 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/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 * a PS file to your driver this way as well... */ /* * Constants... */ # define CUPS_RASTER_SYNC 0x52615333 /* RaS3 */ # define CUPS_RASTER_REVSYNC 0x33536152 /* 3SaR */ # define CUPS_RASTER_SYNCv1 0x52615374 /* RaSt */ # define CUPS_RASTER_REVSYNCv1 0x74536152 /* tSaR */ # define CUPS_RASTER_SYNCv2 0x52615332 /* RaS2 */ # define CUPS_RASTER_REVSYNCv2 0x32536152 /* 2SaR */ # define CUPS_RASTER_SYNCapple 0x554E4952 /* UNIR */ # define CUPS_RASTER_REVSYNCapple 0x52494E55 /* RINU */ # define CUPS_RASTER_SYNC_PWG CUPS_RASTER_SYNCv2 /* * The following definition can be used to determine if the * colorimetric colorspaces (CIEXYZ, CIELAB, and ICCn) are * defined... */ # define CUPS_RASTER_HAVE_COLORIMETRIC 1 /* * The following definition can be used to determine if the * device colorspaces (DEVICEn) are defined... */ # define CUPS_RASTER_HAVE_DEVICE 1 /* * The following definition can be used to determine if PWG Raster is supported. */ # define CUPS_RASTER_HAVE_PWGRASTER 1 /* * The following definition can be used to determine if Apple Raster is * supported (beta). */ # define CUPS_RASTER_HAVE_APPLERASTER 1 /* * The following PWG 5102.4 definitions specify indices into the * cupsInteger[] array in the raster header. */ # define CUPS_RASTER_PWG_TotalPageCount 0 # define CUPS_RASTER_PWG_CrossFeedTransform 1 # define CUPS_RASTER_PWG_FeedTransform 2 # define CUPS_RASTER_PWG_ImageBoxLeft 3 # define CUPS_RASTER_PWG_ImageBoxTop 4 # define CUPS_RASTER_PWG_ImageBoxRight 5 # define CUPS_RASTER_PWG_ImageBoxBottom 6 # define CUPS_RASTER_PWG_AlternatePrimary 7 # define CUPS_RASTER_PWG_PrintQuality 8 # define CUPS_RASTER_PWG_VendorIdentifier 14 # define CUPS_RASTER_PWG_VendorLength 15 /* * Types... */ typedef enum cups_adv_e /**** AdvanceMedia attribute values ****/ { CUPS_ADVANCE_NONE = 0, /* Never advance the roll */ CUPS_ADVANCE_FILE = 1, /* Advance the roll after this file */ CUPS_ADVANCE_JOB = 2, /* Advance the roll after this job */ CUPS_ADVANCE_SET = 3, /* Advance the roll after this set */ CUPS_ADVANCE_PAGE = 4 /* Advance the roll after this page */ } cups_adv_t; typedef enum cups_bool_e /**** Boolean type ****/ { CUPS_FALSE = 0, /* Logical false */ CUPS_TRUE = 1 /* Logical true */ } cups_bool_t; typedef enum cups_cspace_e /**** cupsColorSpace attribute values ****/ { CUPS_CSPACE_W = 0, /* Luminance (DeviceGray, gamma 2.2 by default) */ CUPS_CSPACE_RGB = 1, /* Red, green, blue (DeviceRGB, sRGB by default) */ CUPS_CSPACE_RGBA = 2, /* Red, green, blue, alpha (DeviceRGB, sRGB by default) */ CUPS_CSPACE_K = 3, /* Black (DeviceK) */ CUPS_CSPACE_CMY = 4, /* Cyan, magenta, yellow (DeviceCMY) */ CUPS_CSPACE_YMC = 5, /* Yellow, magenta, cyan @deprecated@ */ CUPS_CSPACE_CMYK = 6, /* Cyan, magenta, yellow, black (DeviceCMYK) */ CUPS_CSPACE_YMCK = 7, /* Yellow, magenta, cyan, black @deprecated@ */ CUPS_CSPACE_KCMY = 8, /* Black, cyan, magenta, yellow @deprecated@ */ CUPS_CSPACE_KCMYcm = 9, /* Black, cyan, magenta, yellow, light-cyan, light-magenta @deprecated@ */ CUPS_CSPACE_GMCK = 10, /* Gold, magenta, yellow, black @deprecated@ */ CUPS_CSPACE_GMCS = 11, /* Gold, magenta, yellow, silver @deprecated@ */ CUPS_CSPACE_WHITE = 12, /* White ink (as black) @deprecated@ */ CUPS_CSPACE_GOLD = 13, /* Gold foil @deprecated@ */ CUPS_CSPACE_SILVER = 14, /* Silver foil @deprecated@ */ CUPS_CSPACE_CIEXYZ = 15, /* CIE XYZ @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_CIELab = 16, /* CIE Lab @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_RGBW = 17, /* Red, green, blue, white (DeviceRGB, sRGB by default) @since CUPS 1.2/macOS 10.5@ */ CUPS_CSPACE_SW = 18, /* Luminance (gamma 2.2) @since CUPS 1.4.5@ */ CUPS_CSPACE_SRGB = 19, /* Red, green, blue (sRGB) @since CUPS 1.4.5@ */ CUPS_CSPACE_ADOBERGB = 20, /* Red, green, blue (Adobe RGB) @since CUPS 1.4.5@ */ CUPS_CSPACE_ICC1 = 32, /* ICC-based, 1 color @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC2 = 33, /* ICC-based, 2 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC3 = 34, /* ICC-based, 3 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC4 = 35, /* ICC-based, 4 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC5 = 36, /* ICC-based, 5 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC6 = 37, /* ICC-based, 6 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC7 = 38, /* ICC-based, 7 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC8 = 39, /* ICC-based, 8 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICC9 = 40, /* ICC-based, 9 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCA = 41, /* ICC-based, 10 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCB = 42, /* ICC-based, 11 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCC = 43, /* ICC-based, 12 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCD = 44, /* ICC-based, 13 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCE = 45, /* ICC-based, 14 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_ICCF = 46, /* ICC-based, 15 colors @since CUPS 1.1.19/macOS 10.3@ */ CUPS_CSPACE_DEVICE1 = 48, /* DeviceN, 1 color @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE2 = 49, /* DeviceN, 2 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE3 = 50, /* DeviceN, 3 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE4 = 51, /* DeviceN, 4 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE5 = 52, /* DeviceN, 5 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE6 = 53, /* DeviceN, 6 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE7 = 54, /* DeviceN, 7 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE8 = 55, /* DeviceN, 8 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICE9 = 56, /* DeviceN, 9 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICEA = 57, /* DeviceN, 10 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICEB = 58, /* DeviceN, 11 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICEC = 59, /* DeviceN, 12 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICED = 60, /* DeviceN, 13 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICEE = 61, /* DeviceN, 14 colors @since CUPS 1.4.5@ */ CUPS_CSPACE_DEVICEF = 62 /* DeviceN, 15 colors @since CUPS 1.4.5@ */ } cups_cspace_t; typedef enum cups_cut_e /**** CutMedia attribute values ****/ { CUPS_CUT_NONE = 0, /* Never cut the roll */ CUPS_CUT_FILE = 1, /* Cut the roll after this file */ CUPS_CUT_JOB = 2, /* Cut the roll after this job */ CUPS_CUT_SET = 3, /* Cut the roll after this set */ CUPS_CUT_PAGE = 4 /* Cut the roll after this page */ } cups_cut_t; typedef enum cups_edge_e /**** LeadingEdge attribute values ****/ { CUPS_EDGE_TOP = 0, /* Leading edge is the top of the page */ CUPS_EDGE_RIGHT = 1, /* Leading edge is the right of the page */ CUPS_EDGE_BOTTOM = 2, /* Leading edge is the bottom of the page */ CUPS_EDGE_LEFT = 3 /* Leading edge is the left of the page */ } cups_edge_t; typedef enum cups_jog_e /**** Jog attribute values ****/ { CUPS_JOG_NONE = 0, /* Never move pages */ CUPS_JOG_FILE = 1, /* Move pages after this file */ CUPS_JOG_JOB = 2, /* Move pages after this job */ CUPS_JOG_SET = 3 /* Move pages after this set */ } cups_jog_t; enum cups_mode_e /**** cupsRasterOpen modes ****/ { CUPS_RASTER_READ = 0, /* Open stream for reading */ CUPS_RASTER_WRITE = 1, /* Open stream for writing */ CUPS_RASTER_WRITE_COMPRESSED = 2, /* Open stream for compressed writing @since CUPS 1.3/macOS 10.5@ */ CUPS_RASTER_WRITE_PWG = 3, /* Open stream for compressed writing in PWG Raster mode @since CUPS 1.5/macOS 10.7@ */ CUPS_RASTER_WRITE_APPLE = 4 /* Open stream for compressed writing in AppleRaster mode (beta) @private@ */ }; typedef enum cups_mode_e cups_mode_t; /**** cupsRasterOpen modes ****/ typedef enum cups_order_e /**** cupsColorOrder attribute values ****/ { CUPS_ORDER_CHUNKED = 0, /* CMYK CMYK CMYK ... */ CUPS_ORDER_BANDED = 1, /* CCC MMM YYY KKK ... */ CUPS_ORDER_PLANAR = 2 /* CCC ... MMM ... YYY ... KKK ... */ } cups_order_t; typedef enum cups_orient_e /**** Orientation attribute values ****/ { CUPS_ORIENT_0 = 0, /* Don't rotate the page */ CUPS_ORIENT_90 = 1, /* Rotate the page counter-clockwise */ CUPS_ORIENT_180 = 2, /* Turn the page upside down */ CUPS_ORIENT_270 = 3 /* Rotate the page clockwise */ } cups_orient_t; /* * The page header structure contains the standard PostScript page device * dictionary, along with some CUPS-specific parameters that are provided * by the RIPs... * * The API supports a "version 1" (from CUPS 1.0 and 1.1) and a "version 2" * (from CUPS 1.2 and higher) page header, for binary compatibility. */ typedef struct cups_page_header_s /**** Version 1 page header @deprecated@ ****/ { /**** Standard Page Device Dictionary String Values ****/ char MediaClass[64]; /* MediaClass string */ char MediaColor[64]; /* MediaColor string */ char MediaType[64]; /* MediaType string */ char OutputType[64]; /* OutputType string */ /**** Standard Page Device Dictionary Integer Values ****/ unsigned AdvanceDistance; /* AdvanceDistance value in points */ cups_adv_t AdvanceMedia; /* AdvanceMedia value (@link cups_adv_t@) */ cups_bool_t Collate; /* Collated copies value */ cups_cut_t CutMedia; /* CutMedia value (@link cups_cut_t@) */ cups_bool_t Duplex; /* Duplexed (double-sided) value */ unsigned HWResolution[2]; /* Resolution in dots-per-inch */ unsigned ImagingBoundingBox[4]; /* Pixel region that is painted (points, left, bottom, right, top) */ cups_bool_t InsertSheet; /* InsertSheet value */ cups_jog_t Jog; /* Jog value (@link cups_jog_t@) */ cups_edge_t LeadingEdge; /* LeadingEdge value (@link cups_edge_t@) */ unsigned Margins[2]; /* Lower-lefthand margins in points */ cups_bool_t ManualFeed; /* ManualFeed value */ unsigned MediaPosition; /* MediaPosition value */ unsigned MediaWeight; /* MediaWeight value in grams/m^2 */ cups_bool_t MirrorPrint; /* MirrorPrint value */ cups_bool_t NegativePrint; /* NegativePrint value */ unsigned NumCopies; /* Number of copies to produce */ cups_orient_t Orientation; /* Orientation value (@link cups_orient_t@) */ cups_bool_t OutputFaceUp; /* OutputFaceUp value */ unsigned PageSize[2]; /* Width and length of page in points */ cups_bool_t Separations; /* Separations value */ cups_bool_t TraySwitch; /* TraySwitch value */ cups_bool_t Tumble; /* Tumble value */ /**** CUPS Page Device Dictionary Values ****/ unsigned cupsWidth; /* Width of page image in pixels */ unsigned cupsHeight; /* Height of page image in pixels */ unsigned cupsMediaType; /* Media type code */ unsigned cupsBitsPerColor; /* Number of bits for each color */ unsigned cupsBitsPerPixel; /* Number of bits for each pixel */ unsigned cupsBytesPerLine; /* Number of bytes per line */ cups_order_t cupsColorOrder; /* Order of colors */ cups_cspace_t cupsColorSpace; /* True colorspace */ unsigned cupsCompression; /* Device compression to use */ unsigned cupsRowCount; /* Rows per band */ unsigned cupsRowFeed; /* Feed between bands */ unsigned cupsRowStep; /* Spacing between lines */ } cups_page_header_t; /**** New in CUPS 1.2 ****/ typedef struct cups_page_header2_s /**** Version 2 page header @since CUPS 1.2/macOS 10.5@ ****/ { /**** Standard Page Device Dictionary String Values ****/ char MediaClass[64]; /* MediaClass string */ char MediaColor[64]; /* MediaColor string */ char MediaType[64]; /* MediaType string */ char OutputType[64]; /* OutputType string */ /**** Standard Page Device Dictionary Integer Values ****/ unsigned AdvanceDistance; /* AdvanceDistance value in points */ cups_adv_t AdvanceMedia; /* AdvanceMedia value (@link cups_adv_t@) */ cups_bool_t Collate; /* Collated copies value */ cups_cut_t CutMedia; /* CutMedia value (@link cups_cut_t@) */ cups_bool_t Duplex; /* Duplexed (double-sided) value */ unsigned HWResolution[2]; /* Resolution in dots-per-inch */ unsigned ImagingBoundingBox[4]; /* Pixel region that is painted (points, left, bottom, right, top) */ cups_bool_t InsertSheet; /* InsertSheet value */ cups_jog_t Jog; /* Jog value (@link cups_jog_t@) */ cups_edge_t LeadingEdge; /* LeadingEdge value (@link cups_edge_t@) */ unsigned Margins[2]; /* Lower-lefthand margins in points */ cups_bool_t ManualFeed; /* ManualFeed value */ unsigned MediaPosition; /* MediaPosition value */ unsigned MediaWeight; /* MediaWeight value in grams/m^2 */ cups_bool_t MirrorPrint; /* MirrorPrint value */ cups_bool_t NegativePrint; /* NegativePrint value */ unsigned NumCopies; /* Number of copies to produce */ cups_orient_t Orientation; /* Orientation value (@link cups_orient_t@) */ cups_bool_t OutputFaceUp; /* OutputFaceUp value */ unsigned PageSize[2]; /* Width and length of page in points */ cups_bool_t Separations; /* Separations value */ cups_bool_t TraySwitch; /* TraySwitch value */ cups_bool_t Tumble; /* Tumble value */ /**** CUPS Page Device Dictionary Values ****/ unsigned cupsWidth; /* Width of page image in pixels */ unsigned cupsHeight; /* Height of page image in pixels */ unsigned cupsMediaType; /* Media type code */ unsigned cupsBitsPerColor; /* Number of bits for each color */ unsigned cupsBitsPerPixel; /* Number of bits for each pixel */ unsigned cupsBytesPerLine; /* Number of bytes per line */ cups_order_t cupsColorOrder; /* Order of colors */ cups_cspace_t cupsColorSpace; /* True colorspace */ unsigned cupsCompression; /* Device compression to use */ unsigned cupsRowCount; /* Rows per band */ unsigned cupsRowFeed; /* Feed between bands */ unsigned cupsRowStep; /* Spacing between lines */ /**** Version 2 Dictionary Values ****/ unsigned cupsNumColors; /* Number of color components @since CUPS 1.2/macOS 10.5@ */ float cupsBorderlessScalingFactor; /* Scaling that was applied to page data @since CUPS 1.2/macOS 10.5@ */ float cupsPageSize[2]; /* Floating point PageSize (scaling * * factor not applied) @since CUPS 1.2/macOS 10.5@ */ float cupsImagingBBox[4]; /* Floating point ImagingBoundingBox * (scaling factor not applied, left, * bottom, right, top) @since CUPS 1.2/macOS 10.5@ */ unsigned cupsInteger[16]; /* User-defined integer values @since CUPS 1.2/macOS 10.5@ */ float cupsReal[16]; /* User-defined floating-point values @since CUPS 1.2/macOS 10.5@ */ char cupsString[16][64]; /* User-defined string values @since CUPS 1.2/macOS 10.5@ */ char cupsMarkerType[64]; /* Ink/toner type @since CUPS 1.2/macOS 10.5@ */ char cupsRenderingIntent[64];/* Color rendering intent @since CUPS 1.2/macOS 10.5@ */ char cupsPageSizeName[64]; /* PageSize name @since CUPS 1.2/macOS 10.5@ */ } cups_page_header2_t; typedef struct _cups_raster_s cups_raster_t; /**** Raster stream data ****/ /**** New in CUPS 1.5 ****/ typedef ssize_t (*cups_raster_iocb_t)(void *ctx, unsigned char *buffer, size_t length); /**** cupsRasterOpenIO callback function * * This function is specified when * creating a raster stream with * @link cupsRasterOpenIO@ and handles * generic reading and writing of raster * data. It must return -1 on error or * the number of bytes specified by * "length" on success. ****/ /* * Prototypes... */ extern void cupsRasterClose(cups_raster_t *r) _CUPS_PUBLIC; extern cups_raster_t *cupsRasterOpen(int fd, cups_mode_t mode) _CUPS_PUBLIC; extern unsigned cupsRasterReadHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterReadHeader2 instead.") _CUPS_PUBLIC; extern unsigned cupsRasterReadPixels(cups_raster_t *r, unsigned char *p, unsigned len) _CUPS_PUBLIC; extern unsigned cupsRasterWriteHeader(cups_raster_t *r, cups_page_header_t *h) _CUPS_DEPRECATED_MSG("Use cupsRasterWriteHeader2 instead.") _CUPS_PUBLIC; extern unsigned cupsRasterWritePixels(cups_raster_t *r, unsigned char *p, unsigned len) _CUPS_PUBLIC; /**** New in CUPS 1.2 ****/ extern unsigned cupsRasterReadHeader2(cups_raster_t *r, cups_page_header2_t *h) _CUPS_API_1_2; extern unsigned cupsRasterWriteHeader2(cups_raster_t *r, cups_page_header2_t *h) _CUPS_API_1_2; /**** New in CUPS 1.3 ****/ extern const char *cupsRasterErrorString(void) _CUPS_API_1_3; /**** New in CUPS 1.5 ****/ extern cups_raster_t *cupsRasterOpenIO(cups_raster_iocb_t iocb, void *ctx, cups_mode_t mode) _CUPS_API_1_5; /**** New in CUPS 2.2/macOS 10.12 ****/ extern int cupsRasterInitPWGHeader(cups_page_header2_t *h, pwg_media_t *media, const char *type, int xdpi, int ydpi, const char *sides, const char *sheet_back) _CUPS_API_2_2; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_RASTER_H_ */ cups-2.4.7/cups/raster-stubs.c0000644000175000017500000002313614502571342016142 0ustar zdohnalzdohnal/* * Imaging library stubs for CUPS. * * Copyright © 2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "raster-private.h" /* * These stubs wrap the real functions in libcups - this allows one library to * provide all of the CUPS API functions while still supporting the old split * library organization... */ /* * Local functions... */ static ssize_t cups_read_fd(void *ctx, unsigned char *buf, size_t bytes); static ssize_t cups_write_fd(void *ctx, unsigned char *buf, size_t bytes); /* * 'cupsRasterClose()' - Close a raster stream. * * The file descriptor associated with the raster stream must be closed * separately as needed. */ void cupsRasterClose(cups_raster_t *r) /* I - Stream to close */ { _cupsRasterDelete(r); } /* * 'cupsRasterErrorString()' - Return the last error from a raster function. * * If there are no recent errors, `NULL` is returned. * * @since CUPS 1.3/macOS 10.5@ */ const char * /* O - Last error or `NULL` */ cupsRasterErrorString(void) { return (_cupsRasterErrorString()); } /* * 'cupsRasterInitPWGHeader()' - Initialize a page header for PWG Raster output. * * The "media" argument specifies the media to use. * * The "type" argument specifies a "pwg-raster-document-type-supported" value * that controls the color space and bit depth of the raster data. * * The "xres" and "yres" arguments specify the raster resolution in dots per * inch. * * The "sheet_back" argument specifies a "pwg-raster-document-sheet-back" value * to apply for the back side of a page. Pass @code NULL@ for the front side. * * @since CUPS 2.2/macOS 10.12@ */ int /* O - 1 on success, 0 on failure */ cupsRasterInitPWGHeader( cups_page_header2_t *h, /* I - Page header */ pwg_media_t *media, /* I - PWG media information */ const char *type, /* I - PWG raster type string */ int xdpi, /* I - Cross-feed direction (horizontal) resolution */ int ydpi, /* I - Feed direction (vertical) resolution */ const char *sides, /* I - IPP "sides" option value */ const char *sheet_back) /* I - Transform for back side or @code NULL@ for none */ { return (_cupsRasterInitPWGHeader(h, media, type, xdpi, ydpi, sides, sheet_back)); } /* * 'cupsRasterOpen()' - Open a raster stream using a file descriptor. * * This function associates a raster stream with the given file descriptor. * For most printer driver filters, "fd" will be 0 (stdin). For most raster * image processor (RIP) filters that generate raster data, "fd" will be 1 * (stdout). * * When writing raster data, the @code CUPS_RASTER_WRITE@, * @code CUPS_RASTER_WRITE_COMPRESS@, or @code CUPS_RASTER_WRITE_PWG@ mode can * be used - compressed and PWG output is generally 25-50% smaller but adds a * 100-300% execution time overhead. */ cups_raster_t * /* O - New stream */ cupsRasterOpen(int fd, /* I - File descriptor */ cups_mode_t mode) /* I - Mode - @code CUPS_RASTER_READ@, @code CUPS_RASTER_WRITE@, @code CUPS_RASTER_WRITE_COMPRESSED@, or @code CUPS_RASTER_WRITE_PWG@ */ { if (mode == CUPS_RASTER_READ) return (_cupsRasterNew(cups_read_fd, (void *)((intptr_t)fd), mode)); else return (_cupsRasterNew(cups_write_fd, (void *)((intptr_t)fd), mode)); } /* * 'cupsRasterOpenIO()' - Open a raster stream using a callback function. * * This function associates a raster stream with the given callback function and * context pointer. * * When writing raster data, the @code CUPS_RASTER_WRITE@, * @code CUPS_RASTER_WRITE_COMPRESS@, or @code CUPS_RASTER_WRITE_PWG@ mode can * be used - compressed and PWG output is generally 25-50% smaller but adds a * 100-300% execution time overhead. */ cups_raster_t * /* O - New stream */ cupsRasterOpenIO( cups_raster_iocb_t iocb, /* I - Read/write callback */ void *ctx, /* I - Context pointer for callback */ cups_mode_t mode) /* I - Mode - @code CUPS_RASTER_READ@, @code CUPS_RASTER_WRITE@, @code CUPS_RASTER_WRITE_COMPRESSED@, or @code CUPS_RASTER_WRITE_PWG@ */ { return (_cupsRasterNew(iocb, ctx, mode)); } /* * 'cupsRasterReadHeader()' - Read a raster page header and store it in a * version 1 page header structure. * * This function is deprecated. Use @link cupsRasterReadHeader2@ instead. * * Version 1 page headers were used in CUPS 1.0 and 1.1 and contain a subset * of the version 2 page header data. This function handles reading version 2 * page headers and copying only the version 1 data into the provided buffer. * * @deprecated@ */ unsigned /* O - 1 on success, 0 on failure/end-of-file */ cupsRasterReadHeader( cups_raster_t *r, /* I - Raster stream */ cups_page_header_t *h) /* I - Pointer to header data */ { /* * Get the raster header... */ if (!_cupsRasterReadHeader(r)) { memset(h, 0, sizeof(cups_page_header_t)); return (0); } /* * Copy the header to the user-supplied buffer... */ memcpy(h, &(r->header), sizeof(cups_page_header_t)); return (1); } /* * 'cupsRasterReadHeader2()' - Read a raster page header and store it in a * version 2 page header structure. * * @since CUPS 1.2/macOS 10.5@ */ unsigned /* O - 1 on success, 0 on failure/end-of-file */ cupsRasterReadHeader2( cups_raster_t *r, /* I - Raster stream */ cups_page_header2_t *h) /* I - Pointer to header data */ { /* * Get the raster header... */ if (!_cupsRasterReadHeader(r)) { memset(h, 0, sizeof(cups_page_header2_t)); return (0); } /* * Copy the header to the user-supplied buffer... */ memcpy(h, &(r->header), sizeof(cups_page_header2_t)); return (1); } /* * 'cupsRasterReadPixels()' - Read raster pixels. * * For best performance, filters should read one or more whole lines. * The "cupsBytesPerLine" value from the page header can be used to allocate * the line buffer and as the number of bytes to read. */ unsigned /* O - Number of bytes read */ cupsRasterReadPixels( cups_raster_t *r, /* I - Raster stream */ unsigned char *p, /* I - Pointer to pixel buffer */ unsigned len) /* I - Number of bytes to read */ { return (_cupsRasterReadPixels(r, p, len)); } /* * 'cupsRasterWriteHeader()' - Write a raster page header from a version 1 page * header structure. * * This function is deprecated. Use @link cupsRasterWriteHeader2@ instead. * * @deprecated@ */ unsigned /* O - 1 on success, 0 on failure */ cupsRasterWriteHeader( cups_raster_t *r, /* I - Raster stream */ cups_page_header_t *h) /* I - Raster page header */ { if (r == NULL || r->mode == CUPS_RASTER_READ) return (0); /* * Make a copy of the header and write using the private function... */ memset(&(r->header), 0, sizeof(r->header)); memcpy(&(r->header), h, sizeof(cups_page_header_t)); return (_cupsRasterWriteHeader(r)); } /* * 'cupsRasterWriteHeader2()' - Write a raster page header from a version 2 * page header structure. * * The page header can be initialized using @link cupsRasterInitPWGHeader@. * * @since CUPS 1.2/macOS 10.5@ */ unsigned /* O - 1 on success, 0 on failure */ cupsRasterWriteHeader2( cups_raster_t *r, /* I - Raster stream */ cups_page_header2_t *h) /* I - Raster page header */ { if (r == NULL || r->mode == CUPS_RASTER_READ) return (0); /* * Make a copy of the header, and compute the number of raster * lines in the page image... */ memcpy(&(r->header), h, sizeof(cups_page_header2_t)); return (_cupsRasterWriteHeader(r)); } /* * 'cupsRasterWritePixels()' - Write raster pixels. * * For best performance, filters should write one or more whole lines. * The "cupsBytesPerLine" value from the page header can be used to allocate * the line buffer and as the number of bytes to write. */ unsigned /* O - Number of bytes written */ cupsRasterWritePixels( cups_raster_t *r, /* I - Raster stream */ unsigned char *p, /* I - Bytes to write */ unsigned len) /* I - Number of bytes to write */ { return (_cupsRasterWritePixels(r, p, len)); } /* * 'cups_read_fd()' - Read bytes from a file. */ static ssize_t /* O - Bytes read or -1 */ cups_read_fd(void *ctx, /* I - File descriptor as pointer */ unsigned char *buf, /* I - Buffer for read */ size_t bytes) /* I - Maximum number of bytes to read */ { int fd = (int)((intptr_t)ctx); /* File descriptor */ ssize_t count; /* Number of bytes read */ #ifdef _WIN32 /* Sigh */ while ((count = read(fd, buf, (unsigned)bytes)) < 0) #else while ((count = read(fd, buf, bytes)) < 0) #endif /* _WIN32 */ if (errno != EINTR && errno != EAGAIN) return (-1); return (count); } /* * 'cups_write_fd()' - Write bytes to a file. */ static ssize_t /* O - Bytes written or -1 */ cups_write_fd(void *ctx, /* I - File descriptor pointer */ unsigned char *buf, /* I - Bytes to write */ size_t bytes) /* I - Number of bytes to write */ { int fd = (int)((intptr_t)ctx); /* File descriptor */ ssize_t count; /* Number of bytes written */ #ifdef _WIN32 /* Sigh */ while ((count = write(fd, buf, (unsigned)bytes)) < 0) #else while ((count = write(fd, buf, bytes)) < 0) #endif /* _WIN32 */ if (errno != EINTR && errno != EAGAIN) return (-1); return (count); } cups-2.4.7/cups/raster-stream.c0000644000175000017500000013766214502571342016307 0ustar zdohnalzdohnal/* * Raster file routines for CUPS. * * Copyright 2007-2019 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * This file is part of the CUPS Imaging library. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "raster-private.h" #include "debug-internal.h" #ifdef HAVE_STDINT_H # include #endif /* HAVE_STDINT_H */ /* * Private structures... */ typedef void (*_cups_copyfunc_t)(void *dst, const void *src, size_t bytes); /* * Local globals... */ static const char * const apple_media_types[] = { /* media-type values for Apple Raster */ "auto", "stationery", "transparency", "envelope", "cardstock", "labels", "stationery-letterhead", "disc", "photographic-matte", "photographic-satin", "photographic-semi-gloss", "photographic-glossy", "photographic-high-gloss", "other" }; #ifdef DEBUG static const char * const cups_modes[] = { /* Open modes */ "CUPS_RASTER_READ", "CUPS_RASTER_WRITE", "CUPS_RASTER_WRITE_COMPRESSED", "CUPS_RASTER_WRITE_PWG", "CUPS_RASTER_WRITE_APPLE" }; #endif /* DEBUG */ /* * Local functions... */ static ssize_t cups_raster_io(cups_raster_t *r, unsigned char *buf, size_t bytes); static ssize_t cups_raster_read(cups_raster_t *r, unsigned char *buf, size_t bytes); static int cups_raster_update(cups_raster_t *r); static ssize_t cups_raster_write(cups_raster_t *r, const unsigned char *pixels); static void cups_swap(unsigned char *buf, size_t bytes); static void cups_swap_copy(unsigned char *dst, const unsigned char *src, size_t bytes); /* * '_cupsRasterColorSpaceString()' - Return the colorspace name for a * cupsColorSpace value. */ const char * _cupsRasterColorSpaceString( cups_cspace_t cspace) /* I - cupsColorSpace value */ { static const char * const cups_color_spaces[] = { /* Color spaces */ "W", "RGB", "RGBA", "K", "CMY", "YMC", "CMYK", "YMCK", "KCMY", "KCMYcm", "GMCK", "GMCS", "WHITE", "GOLD", "SILVER", "CIEXYZ", "CIELab", "RGBW", "SW", "SRGB", "ADOBERGB", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "ICC1", "ICC2", "ICC3", "ICC4", "ICC5", "ICC6", "ICC7", "ICC8", "ICC9", "ICCA", "ICCB", "ICCC", "ICCD", "ICCE", "ICCF", "47", "DEVICE1", "DEVICE2", "DEVICE3", "DEVICE4", "DEVICE5", "DEVICE6", "DEVICE7", "DEVICE8", "DEVICE9", "DEVICEA", "DEVICEB", "DEVICEC", "DEVICED", "DEVICEE", "DEVICEF" }; if (cspace < CUPS_CSPACE_W || cspace > CUPS_CSPACE_DEVICEF) return ("Unknown"); else return (cups_color_spaces[cspace]); } /* * '_cupsRasterDelete()' - Free a raster stream. * * The file descriptor associated with the raster stream must be closed * separately as needed. */ void _cupsRasterDelete(cups_raster_t *r) /* I - Stream to free */ { if (r != NULL) { if (r->buffer) free(r->buffer); if (r->pixels) free(r->pixels); free(r); } } /* * '_cupsRasterInitPWGHeader()' - Initialize a page header for PWG Raster output. * * The "media" argument specifies the media to use. * * The "type" argument specifies a "pwg-raster-document-type-supported" value * that controls the color space and bit depth of the raster data. * * The "xres" and "yres" arguments specify the raster resolution in dots per * inch. * * The "sheet_back" argument specifies a "pwg-raster-document-sheet-back" value * to apply for the back side of a page. Pass @code NULL@ for the front side. * * @since CUPS 2.2/macOS 10.12@ */ int /* O - 1 on success, 0 on failure */ _cupsRasterInitPWGHeader( cups_page_header2_t *h, /* I - Page header */ pwg_media_t *media, /* I - PWG media information */ const char *type, /* I - PWG raster type string */ int xdpi, /* I - Cross-feed direction (horizontal) resolution */ int ydpi, /* I - Feed direction (vertical) resolution */ const char *sides, /* I - IPP "sides" option value */ const char *sheet_back) /* I - Transform for back side or @code NULL@ for none */ { if (!h || !media || !type || xdpi <= 0 || ydpi <= 0) { _cupsRasterAddError("%s", strerror(EINVAL)); return (0); } /* * Initialize the page header... */ memset(h, 0, sizeof(cups_page_header2_t)); strlcpy(h->cupsPageSizeName, media->pwg, sizeof(h->cupsPageSizeName)); h->PageSize[0] = (unsigned)(72 * media->width / 2540); h->PageSize[1] = (unsigned)(72 * media->length / 2540); /* This never gets written but is needed for some applications */ h->cupsPageSize[0] = 72.0f * media->width / 2540.0f; h->cupsPageSize[1] = 72.0f * media->length / 2540.0f; h->ImagingBoundingBox[2] = h->PageSize[0]; h->ImagingBoundingBox[3] = h->PageSize[1]; h->HWResolution[0] = (unsigned)xdpi; h->HWResolution[1] = (unsigned)ydpi; h->cupsWidth = (unsigned)(media->width * xdpi / 2540); h->cupsHeight = (unsigned)(media->length * ydpi / 2540); if (h->cupsWidth > 0x00ffffff || h->cupsHeight > 0x00ffffff) { _cupsRasterAddError("Raster dimensions too large."); return (0); } h->cupsInteger[CUPS_RASTER_PWG_ImageBoxRight] = h->cupsWidth; h->cupsInteger[CUPS_RASTER_PWG_ImageBoxBottom] = h->cupsHeight; /* * Colorspace and bytes per line... */ if (!strcmp(type, "adobe-rgb_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 24; h->cupsColorSpace = CUPS_CSPACE_ADOBERGB; } else if (!strcmp(type, "adobe-rgb_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 48; h->cupsColorSpace = CUPS_CSPACE_ADOBERGB; } else if (!strcmp(type, "black_1")) { h->cupsBitsPerColor = 1; h->cupsBitsPerPixel = 1; h->cupsColorSpace = CUPS_CSPACE_K; } else if (!strcmp(type, "black_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 8; h->cupsColorSpace = CUPS_CSPACE_K; } else if (!strcmp(type, "black_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 16; h->cupsColorSpace = CUPS_CSPACE_K; } else if (!strcmp(type, "cmyk_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 32; h->cupsColorSpace = CUPS_CSPACE_CMYK; } else if (!strcmp(type, "cmyk_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 64; h->cupsColorSpace = CUPS_CSPACE_CMYK; } else if (!strncmp(type, "device", 6) && type[6] >= '1' && type[6] <= '9') { int ncolors, bits; /* Number of colors and bits */ if (sscanf(type, "device%d_%d", &ncolors, &bits) != 2 || ncolors > 15 || (bits != 8 && bits != 16)) { _cupsRasterAddError("Unsupported raster type \'%s\'.", type); return (0); } h->cupsBitsPerColor = (unsigned)bits; h->cupsBitsPerPixel = (unsigned)(ncolors * bits); h->cupsColorSpace = (cups_cspace_t)(CUPS_CSPACE_DEVICE1 + ncolors - 1); } else if (!strcmp(type, "rgb_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 24; h->cupsColorSpace = CUPS_CSPACE_RGB; } else if (!strcmp(type, "rgb_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 48; h->cupsColorSpace = CUPS_CSPACE_RGB; } else if (!strcmp(type, "sgray_1")) { h->cupsBitsPerColor = 1; h->cupsBitsPerPixel = 1; h->cupsColorSpace = CUPS_CSPACE_SW; } else if (!strcmp(type, "sgray_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 8; h->cupsColorSpace = CUPS_CSPACE_SW; } else if (!strcmp(type, "sgray_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 16; h->cupsColorSpace = CUPS_CSPACE_SW; } else if (!strcmp(type, "srgb_8")) { h->cupsBitsPerColor = 8; h->cupsBitsPerPixel = 24; h->cupsColorSpace = CUPS_CSPACE_SRGB; } else if (!strcmp(type, "srgb_16")) { h->cupsBitsPerColor = 16; h->cupsBitsPerPixel = 48; h->cupsColorSpace = CUPS_CSPACE_SRGB; } else { _cupsRasterAddError("Unsupported raster type \'%s\'.", type); return (0); } h->cupsColorOrder = CUPS_ORDER_CHUNKED; h->cupsNumColors = h->cupsBitsPerPixel / h->cupsBitsPerColor; h->cupsBytesPerLine = (h->cupsWidth * h->cupsBitsPerPixel + 7) / 8; /* * Duplex support... */ h->cupsInteger[CUPS_RASTER_PWG_CrossFeedTransform] = 1; h->cupsInteger[CUPS_RASTER_PWG_FeedTransform] = 1; if (sides) { if (!strcmp(sides, "two-sided-long-edge")) { h->Duplex = 1; } else if (!strcmp(sides, "two-sided-short-edge")) { h->Duplex = 1; h->Tumble = 1; } else if (strcmp(sides, "one-sided")) { _cupsRasterAddError("Unsupported sides value \'%s\'.", sides); return (0); } if (sheet_back) { if (!strcmp(sheet_back, "flipped")) { if (h->Tumble) h->cupsInteger[CUPS_RASTER_PWG_CrossFeedTransform] = 0xffffffffU; else h->cupsInteger[CUPS_RASTER_PWG_FeedTransform] = 0xffffffffU; } else if (!strcmp(sheet_back, "manual-tumble")) { if (h->Tumble) { h->cupsInteger[CUPS_RASTER_PWG_CrossFeedTransform] = 0xffffffffU; h->cupsInteger[CUPS_RASTER_PWG_FeedTransform] = 0xffffffffU; } } else if (!strcmp(sheet_back, "rotated")) { if (!h->Tumble) { h->cupsInteger[CUPS_RASTER_PWG_CrossFeedTransform] = 0xffffffffU; h->cupsInteger[CUPS_RASTER_PWG_FeedTransform] = 0xffffffffU; } } else if (strcmp(sheet_back, "normal")) { _cupsRasterAddError("Unsupported sheet_back value \'%s\'.", sheet_back); return (0); } } } return (1); } /* * '_cupsRasterNew()' - Create a raster stream using a callback function. * * This function associates a raster stream with the given callback function and * context pointer. * * When writing raster data, the @code CUPS_RASTER_WRITE@, * @code CUPS_RASTER_WRITE_COMPRESS@, or @code CUPS_RASTER_WRITE_PWG@ mode can * be used - compressed and PWG output is generally 25-50% smaller but adds a * 100-300% execution time overhead. */ cups_raster_t * /* O - New stream */ _cupsRasterNew( cups_raster_iocb_t iocb, /* I - Read/write callback */ void *ctx, /* I - Context pointer for callback */ cups_mode_t mode) /* I - Mode - @code CUPS_RASTER_READ@, @code CUPS_RASTER_WRITE@, @code CUPS_RASTER_WRITE_COMPRESSED@, or @code CUPS_RASTER_WRITE_PWG@ */ { cups_raster_t *r; /* New stream */ DEBUG_printf(("_cupsRasterOpenIO(iocb=%p, ctx=%p, mode=%s)", (void *)iocb, ctx, cups_modes[mode])); _cupsRasterClearError(); if ((r = calloc(1, sizeof(cups_raster_t))) == NULL) { _cupsRasterAddError("Unable to allocate memory for raster stream: %s\n", strerror(errno)); DEBUG_puts("1_cupsRasterOpenIO: Returning NULL."); return (NULL); } r->ctx = ctx; r->iocb = iocb; r->mode = mode; if (mode == CUPS_RASTER_READ) { /* * Open for read - get sync word... */ if (cups_raster_io(r, (unsigned char *)&(r->sync), sizeof(r->sync)) != sizeof(r->sync)) { _cupsRasterAddError("Unable to read header from raster stream: %s\n", strerror(errno)); free(r); DEBUG_puts("1_cupsRasterOpenIO: Unable to read header, returning NULL."); return (NULL); } if (r->sync != CUPS_RASTER_SYNC && r->sync != CUPS_RASTER_REVSYNC && r->sync != CUPS_RASTER_SYNCv1 && r->sync != CUPS_RASTER_REVSYNCv1 && r->sync != CUPS_RASTER_SYNCv2 && r->sync != CUPS_RASTER_REVSYNCv2 && r->sync != CUPS_RASTER_SYNCapple && r->sync != CUPS_RASTER_REVSYNCapple) { _cupsRasterAddError("Unknown raster format %08x!\n", r->sync); free(r); DEBUG_puts("1_cupsRasterOpenIO: Unknown format, returning NULL."); return (NULL); } if (r->sync == CUPS_RASTER_SYNCv2 || r->sync == CUPS_RASTER_REVSYNCv2 || r->sync == CUPS_RASTER_SYNCapple || r->sync == CUPS_RASTER_REVSYNCapple) r->compressed = 1; DEBUG_printf(("1_cupsRasterOpenIO: sync=%08x", r->sync)); if (r->sync == CUPS_RASTER_REVSYNC || r->sync == CUPS_RASTER_REVSYNCv1 || r->sync == CUPS_RASTER_REVSYNCv2 || r->sync == CUPS_RASTER_REVSYNCapple) r->swapped = 1; if (r->sync == CUPS_RASTER_SYNCapple || r->sync == CUPS_RASTER_REVSYNCapple) { unsigned char header[8]; /* File header */ if (cups_raster_io(r, (unsigned char *)header, sizeof(header)) != sizeof(header)) { _cupsRasterAddError("Unable to read header from raster stream: %s\n", strerror(errno)); free(r); DEBUG_puts("1_cupsRasterOpenIO: Unable to read header, returning NULL."); return (NULL); } } #ifdef DEBUG r->iostart = r->iocount; #endif /* DEBUG */ } else { /* * Open for write - put sync word... */ switch (mode) { default : case CUPS_RASTER_WRITE : r->sync = CUPS_RASTER_SYNC; break; case CUPS_RASTER_WRITE_COMPRESSED : r->compressed = 1; r->sync = CUPS_RASTER_SYNCv2; break; case CUPS_RASTER_WRITE_PWG : r->compressed = 1; r->sync = htonl(CUPS_RASTER_SYNC_PWG); r->swapped = r->sync != CUPS_RASTER_SYNC_PWG; break; case CUPS_RASTER_WRITE_APPLE : r->compressed = 1; r->sync = htonl(CUPS_RASTER_SYNCapple); r->swapped = r->sync != CUPS_RASTER_SYNCapple; r->apple_page_count = 0xffffffffU; break; } if (cups_raster_io(r, (unsigned char *)&(r->sync), sizeof(r->sync)) < (ssize_t)sizeof(r->sync)) { _cupsRasterAddError("Unable to write raster stream header: %s\n", strerror(errno)); free(r); DEBUG_puts("1_cupsRasterOpenIO: Unable to write header, returning NULL."); return (NULL); } } DEBUG_printf(("1_cupsRasterOpenIO: compressed=%d, swapped=%d, returning %p", r->compressed, r->swapped, (void *)r)); return (r); } /* * '_cupsRasterReadHeader()' - Read a raster page header. */ unsigned /* O - 1 on success, 0 on fail */ _cupsRasterReadHeader( cups_raster_t *r) /* I - Raster stream */ { size_t len; /* Length for read/swap */ DEBUG_printf(("3_cupsRasterReadHeader(r=%p), r->mode=%s", (void *)r, r ? cups_modes[r->mode] : "")); if (r == NULL || r->mode != CUPS_RASTER_READ) return (0); DEBUG_printf(("4_cupsRasterReadHeader: r->iocount=" CUPS_LLFMT, CUPS_LLCAST r->iocount)); memset(&(r->header), 0, sizeof(r->header)); /* * Read the header... */ switch (r->sync) { default : /* * Get the length of the raster header... */ if (r->sync == CUPS_RASTER_SYNCv1 || r->sync == CUPS_RASTER_REVSYNCv1) len = sizeof(cups_page_header_t); else len = sizeof(cups_page_header2_t); DEBUG_printf(("4_cupsRasterReadHeader: len=%d", (int)len)); /* * Read it... */ if (cups_raster_read(r, (unsigned char *)&(r->header), len) < (ssize_t)len) { DEBUG_printf(("4_cupsRasterReadHeader: EOF, r->iocount=" CUPS_LLFMT, CUPS_LLCAST r->iocount)); return (0); } /* * Swap bytes as needed... */ if (r->swapped) { unsigned *s, /* Current word */ temp; /* Temporary copy */ DEBUG_puts("4_cupsRasterReadHeader: Swapping header bytes."); for (len = 81, s = &(r->header.AdvanceDistance); len > 0; len --, s ++) { temp = *s; *s = ((temp & 0xff) << 24) | ((temp & 0xff00) << 8) | ((temp & 0xff0000) >> 8) | ((temp & 0xff000000) >> 24); DEBUG_printf(("4_cupsRasterReadHeader: %08x => %08x", temp, *s)); } } break; case CUPS_RASTER_SYNCapple : case CUPS_RASTER_REVSYNCapple : { unsigned char appleheader[32]; /* Raw header */ static const unsigned rawcspace[] = { CUPS_CSPACE_SW, CUPS_CSPACE_SRGB, CUPS_CSPACE_CIELab, CUPS_CSPACE_ADOBERGB, CUPS_CSPACE_W, CUPS_CSPACE_RGB, CUPS_CSPACE_CMYK }; static const unsigned rawnumcolors[] = { 1, 3, 3, 3, 1, 3, 4 }; if (cups_raster_read(r, appleheader, sizeof(appleheader)) < (ssize_t)sizeof(appleheader)) { DEBUG_printf(("4_cupsRasterReadHeader: EOF, r->iocount=" CUPS_LLFMT, CUPS_LLCAST r->iocount)); return (0); } strlcpy(r->header.MediaClass, "PwgRaster", sizeof(r->header.MediaClass)); /* PwgRaster */ r->header.cupsBitsPerPixel = appleheader[0]; r->header.cupsColorSpace = appleheader[1] >= (sizeof(rawcspace) / sizeof(rawcspace[0])) ? CUPS_CSPACE_DEVICE1 : rawcspace[appleheader[1]]; r->header.cupsNumColors = appleheader[1] >= (sizeof(rawnumcolors) / sizeof(rawnumcolors[0])) ? 1 : rawnumcolors[appleheader[1]]; r->header.cupsBitsPerColor = r->header.cupsBitsPerPixel / r->header.cupsNumColors; r->header.cupsWidth = ((unsigned)appleheader[12] << 24) | ((unsigned)appleheader[13] << 16) | ((unsigned)appleheader[14] << 8) | (unsigned)appleheader[15]; r->header.cupsHeight = ((unsigned)appleheader[16] << 24) | ((unsigned)appleheader[17] << 16) | ((unsigned)appleheader[18] << 8) | (unsigned)appleheader[19]; r->header.cupsBytesPerLine = r->header.cupsWidth * r->header.cupsBitsPerPixel / 8; r->header.cupsColorOrder = CUPS_ORDER_CHUNKED; r->header.HWResolution[0] = r->header.HWResolution[1] = ((unsigned)appleheader[20] << 24) | ((unsigned)appleheader[21] << 16) | ((unsigned)appleheader[22] << 8) | (unsigned)appleheader[23]; if (r->header.HWResolution[0] > 0) { r->header.PageSize[0] = (r->header.cupsWidth * 72 / r->header.HWResolution[0]); r->header.PageSize[1] = (r->header.cupsHeight * 72 / r->header.HWResolution[1]); r->header.cupsPageSize[0] = (float)(r->header.cupsWidth * 72.0 / r->header.HWResolution[0]); r->header.cupsPageSize[1] = (float)(r->header.cupsHeight * 72.0 / r->header.HWResolution[1]); } r->header.cupsInteger[CUPS_RASTER_PWG_TotalPageCount] = r->apple_page_count; r->header.cupsInteger[CUPS_RASTER_PWG_AlternatePrimary] = 0xffffff; r->header.cupsInteger[CUPS_RASTER_PWG_PrintQuality] = appleheader[3]; if (appleheader[2] >= 2) r->header.Duplex = 1; if (appleheader[2] == 2) r->header.Tumble = 1; r->header.MediaPosition = appleheader[5]; if (appleheader[4] < (int)(sizeof(apple_media_types) / sizeof(apple_media_types[0]))) strlcpy(r->header.MediaType, apple_media_types[appleheader[4]], sizeof(r->header.MediaType)); else strlcpy(r->header.MediaType, "other", sizeof(r->header.MediaType)); } break; } /* * Update the header and row count... */ if (!cups_raster_update(r)) return (0); DEBUG_printf(("4_cupsRasterReadHeader: cupsColorSpace=%s", _cupsRasterColorSpaceString(r->header.cupsColorSpace))); DEBUG_printf(("4_cupsRasterReadHeader: cupsBitsPerColor=%u", r->header.cupsBitsPerColor)); DEBUG_printf(("4_cupsRasterReadHeader: cupsBitsPerPixel=%u", r->header.cupsBitsPerPixel)); DEBUG_printf(("4_cupsRasterReadHeader: cupsBytesPerLine=%u", r->header.cupsBytesPerLine)); DEBUG_printf(("4_cupsRasterReadHeader: cupsWidth=%u", r->header.cupsWidth)); DEBUG_printf(("4_cupsRasterReadHeader: cupsHeight=%u", r->header.cupsHeight)); DEBUG_printf(("4_cupsRasterReadHeader: r->bpp=%d", r->bpp)); return (r->header.cupsBitsPerPixel > 0 && r->header.cupsBitsPerPixel <= 240 && r->header.cupsBitsPerColor > 0 && r->header.cupsBitsPerColor <= 16 && r->header.cupsBytesPerLine > 0 && r->header.cupsBytesPerLine <= 0x7fffffff && r->header.cupsHeight != 0 && (r->header.cupsBytesPerLine % r->bpp) == 0); } /* * '_cupsRasterReadPixels()' - Read raster pixels. * * For best performance, filters should read one or more whole lines. * The "cupsBytesPerLine" value from the page header can be used to allocate * the line buffer and as the number of bytes to read. */ unsigned /* O - Number of bytes read */ _cupsRasterReadPixels( cups_raster_t *r, /* I - Raster stream */ unsigned char *p, /* I - Pointer to pixel buffer */ unsigned len) /* I - Number of bytes to read */ { ssize_t bytes; /* Bytes read */ unsigned cupsBytesPerLine; /* cupsBytesPerLine value */ unsigned remaining; /* Bytes remaining */ unsigned char *ptr, /* Pointer to read buffer */ byte, /* Byte from file */ *temp; /* Pointer into buffer */ unsigned count; /* Repetition count */ DEBUG_printf(("_cupsRasterReadPixels(r=%p, p=%p, len=%u)", (void *)r, (void *)p, len)); if (r == NULL || r->mode != CUPS_RASTER_READ || r->remaining == 0 || r->header.cupsBytesPerLine == 0) { DEBUG_puts("1_cupsRasterReadPixels: Returning 0."); return (0); } DEBUG_printf(("1_cupsRasterReadPixels: compressed=%d, remaining=%u", r->compressed, r->remaining)); if (!r->compressed) { /* * Read without compression... */ r->remaining -= len / r->header.cupsBytesPerLine; if (cups_raster_io(r, p, len) < (ssize_t)len) { DEBUG_puts("1_cupsRasterReadPixels: Read error, returning 0."); return (0); } /* * Swap bytes as needed... */ if (r->swapped && (r->header.cupsBitsPerColor == 16 || r->header.cupsBitsPerPixel == 12 || r->header.cupsBitsPerPixel == 16)) cups_swap(p, len); /* * Return... */ DEBUG_printf(("1_cupsRasterReadPixels: Returning %u", len)); return (len); } /* * Read compressed data... */ remaining = len; cupsBytesPerLine = r->header.cupsBytesPerLine; while (remaining > 0 && r->remaining > 0) { if (r->count == 0) { /* * Need to read a new row... */ if (remaining == cupsBytesPerLine) ptr = p; else ptr = r->pixels; /* * Read using a modified PackBits compression... */ if (!cups_raster_read(r, &byte, 1)) { DEBUG_puts("1_cupsRasterReadPixels: Read error, returning 0."); return (0); } r->count = (unsigned)byte + 1; if (r->count > 1) ptr = r->pixels; temp = ptr; bytes = (ssize_t)cupsBytesPerLine; while (bytes > 0) { /* * Get a new repeat count... */ if (!cups_raster_read(r, &byte, 1)) { DEBUG_puts("1_cupsRasterReadPixels: Read error, returning 0."); return (0); } if (byte == 128) { /* * Clear to end of line... */ switch (r->header.cupsColorSpace) { case CUPS_CSPACE_W : case CUPS_CSPACE_RGB : case CUPS_CSPACE_SW : case CUPS_CSPACE_SRGB : case CUPS_CSPACE_RGBW : case CUPS_CSPACE_ADOBERGB : memset(temp, 0xff, (size_t)bytes); break; default : memset(temp, 0x00, (size_t)bytes); break; } temp += bytes; bytes = 0; } else if (byte & 128) { /* * Copy N literal pixels... */ count = (unsigned)(257 - byte) * r->bpp; if (count > (unsigned)bytes) count = (unsigned)bytes; if (!cups_raster_read(r, temp, count)) { DEBUG_puts("1_cupsRasterReadPixels: Read error, returning 0."); return (0); } temp += count; bytes -= (ssize_t)count; } else { /* * Repeat the next N bytes... */ count = ((unsigned)byte + 1) * r->bpp; if (count > (unsigned)bytes) count = (unsigned)bytes; if (count < r->bpp) break; bytes -= (ssize_t)count; if (!cups_raster_read(r, temp, r->bpp)) { DEBUG_puts("1_cupsRasterReadPixels: Read error, returning 0."); return (0); } temp += r->bpp; count -= r->bpp; while (count > 0) { memcpy(temp, temp - r->bpp, r->bpp); temp += r->bpp; count -= r->bpp; } } } /* * Swap bytes as needed... */ if ((r->header.cupsBitsPerColor == 16 || r->header.cupsBitsPerPixel == 12 || r->header.cupsBitsPerPixel == 16) && r->swapped) { DEBUG_puts("1_cupsRasterReadPixels: Swapping bytes."); cups_swap(ptr, (size_t)cupsBytesPerLine); } /* * Update pointers... */ if (remaining >= cupsBytesPerLine) { bytes = (ssize_t)cupsBytesPerLine; r->pcurrent = r->pixels; r->count --; r->remaining --; } else { bytes = (ssize_t)remaining; r->pcurrent = r->pixels + bytes; } /* * Copy data as needed... */ if (ptr != p) memcpy(p, ptr, (size_t)bytes); } else { /* * Copy fragment from buffer... */ if ((unsigned)(bytes = (int)(r->pend - r->pcurrent)) > remaining) bytes = (ssize_t)remaining; memcpy(p, r->pcurrent, (size_t)bytes); r->pcurrent += bytes; if (r->pcurrent >= r->pend) { r->pcurrent = r->pixels; r->count --; r->remaining --; } } remaining -= (unsigned)bytes; p += bytes; } DEBUG_printf(("1_cupsRasterReadPixels: Returning %u", len)); return (len); } /* * '_cupsRasterWriteHeader()' - Write a raster page header. */ unsigned /* O - 1 on success, 0 on failure */ _cupsRasterWriteHeader( cups_raster_t *r) /* I - Raster stream */ { DEBUG_printf(("_cupsRasterWriteHeader(r=%p)", (void *)r)); DEBUG_printf(("1_cupsRasterWriteHeader: cupsColorSpace=%s", _cupsRasterColorSpaceString(r->header.cupsColorSpace))); DEBUG_printf(("1_cupsRasterWriteHeader: cupsBitsPerColor=%u", r->header.cupsBitsPerColor)); DEBUG_printf(("1_cupsRasterWriteHeader: cupsBitsPerPixel=%u", r->header.cupsBitsPerPixel)); DEBUG_printf(("1_cupsRasterWriteHeader: cupsBytesPerLine=%u", r->header.cupsBytesPerLine)); DEBUG_printf(("1_cupsRasterWriteHeader: cupsWidth=%u", r->header.cupsWidth)); DEBUG_printf(("1_cupsRasterWriteHeader: cupsHeight=%u", r->header.cupsHeight)); /* * Compute the number of raster lines in the page image... */ if (!cups_raster_update(r)) { DEBUG_puts("1_cupsRasterWriteHeader: Unable to update parameters, returning 0."); return (0); } if (r->mode == CUPS_RASTER_WRITE_APPLE) { r->rowheight = r->header.HWResolution[0] / r->header.HWResolution[1]; if (r->header.HWResolution[0] != (r->rowheight * r->header.HWResolution[1])) return (0); } else r->rowheight = 1; /* * Write the raster header... */ if (r->mode == CUPS_RASTER_WRITE_PWG) { /* * PWG raster data is always network byte order with much of the page header * zeroed. */ cups_page_header2_t fh; /* File page header */ memset(&fh, 0, sizeof(fh)); strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass)); strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor)); strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType)); strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType)); strlcpy(fh.cupsRenderingIntent, r->header.cupsRenderingIntent, sizeof(fh.cupsRenderingIntent)); strlcpy(fh.cupsPageSizeName, r->header.cupsPageSizeName, sizeof(fh.cupsPageSizeName)); fh.CutMedia = htonl(r->header.CutMedia); fh.Duplex = htonl(r->header.Duplex); fh.HWResolution[0] = htonl(r->header.HWResolution[0]); fh.HWResolution[1] = htonl(r->header.HWResolution[1]); fh.ImagingBoundingBox[0] = htonl(r->header.ImagingBoundingBox[0]); fh.ImagingBoundingBox[1] = htonl(r->header.ImagingBoundingBox[1]); fh.ImagingBoundingBox[2] = htonl(r->header.ImagingBoundingBox[2]); fh.ImagingBoundingBox[3] = htonl(r->header.ImagingBoundingBox[3]); fh.InsertSheet = htonl(r->header.InsertSheet); fh.Jog = htonl(r->header.Jog); fh.LeadingEdge = htonl(r->header.LeadingEdge); fh.ManualFeed = htonl(r->header.ManualFeed); fh.MediaPosition = htonl(r->header.MediaPosition); fh.MediaWeight = htonl(r->header.MediaWeight); fh.NumCopies = htonl(r->header.NumCopies); fh.Orientation = htonl(r->header.Orientation); fh.PageSize[0] = htonl(r->header.PageSize[0]); fh.PageSize[1] = htonl(r->header.PageSize[1]); fh.Tumble = htonl(r->header.Tumble); fh.cupsWidth = htonl(r->header.cupsWidth); fh.cupsHeight = htonl(r->header.cupsHeight); fh.cupsBitsPerColor = htonl(r->header.cupsBitsPerColor); fh.cupsBitsPerPixel = htonl(r->header.cupsBitsPerPixel); fh.cupsBytesPerLine = htonl(r->header.cupsBytesPerLine); fh.cupsColorOrder = htonl(r->header.cupsColorOrder); fh.cupsColorSpace = htonl(r->header.cupsColorSpace); fh.cupsNumColors = htonl(r->header.cupsNumColors); fh.cupsInteger[0] = htonl(r->header.cupsInteger[0]); fh.cupsInteger[1] = htonl(r->header.cupsInteger[1]); fh.cupsInteger[2] = htonl(r->header.cupsInteger[2]); fh.cupsInteger[3] = htonl((unsigned)(r->header.cupsImagingBBox[0] * r->header.HWResolution[0] / 72.0)); fh.cupsInteger[4] = htonl((unsigned)(r->header.cupsImagingBBox[1] * r->header.HWResolution[1] / 72.0)); fh.cupsInteger[5] = htonl((unsigned)(r->header.cupsImagingBBox[2] * r->header.HWResolution[0] / 72.0)); fh.cupsInteger[6] = htonl((unsigned)(r->header.cupsImagingBBox[3] * r->header.HWResolution[1] / 72.0)); fh.cupsInteger[7] = htonl(0xffffff); return (cups_raster_io(r, (unsigned char *)&fh, sizeof(fh)) == sizeof(fh)); } else if (r->mode == CUPS_RASTER_WRITE_APPLE) { /* * Raw raster data is always network byte order with most of the page header * zeroed. */ int i; /* Looping var */ unsigned char appleheader[32];/* Raw page header */ unsigned height = r->header.cupsHeight * r->rowheight; /* Computed page height */ if (r->apple_page_count == 0xffffffffU) { /* * Write raw page count from raster page header... */ r->apple_page_count = r->header.cupsInteger[0]; appleheader[0] = 'A'; appleheader[1] = 'S'; appleheader[2] = 'T'; appleheader[3] = 0; appleheader[4] = (unsigned char)(r->apple_page_count >> 24); appleheader[5] = (unsigned char)(r->apple_page_count >> 16); appleheader[6] = (unsigned char)(r->apple_page_count >> 8); appleheader[7] = (unsigned char)(r->apple_page_count); if (cups_raster_io(r, appleheader, 8) != 8) return (0); } memset(appleheader, 0, sizeof(appleheader)); appleheader[0] = (unsigned char)r->header.cupsBitsPerPixel; appleheader[1] = r->header.cupsColorSpace == CUPS_CSPACE_SRGB ? 1 : r->header.cupsColorSpace == CUPS_CSPACE_CIELab ? 2 : r->header.cupsColorSpace == CUPS_CSPACE_ADOBERGB ? 3 : r->header.cupsColorSpace == CUPS_CSPACE_W ? 4 : r->header.cupsColorSpace == CUPS_CSPACE_RGB ? 5 : r->header.cupsColorSpace == CUPS_CSPACE_CMYK ? 6 : 0; appleheader[2] = r->header.Duplex ? (r->header.Tumble ? 2 : 3) : 1; appleheader[3] = (unsigned char)(r->header.cupsInteger[CUPS_RASTER_PWG_PrintQuality]); appleheader[5] = (unsigned char)(r->header.MediaPosition); appleheader[12] = (unsigned char)(r->header.cupsWidth >> 24); appleheader[13] = (unsigned char)(r->header.cupsWidth >> 16); appleheader[14] = (unsigned char)(r->header.cupsWidth >> 8); appleheader[15] = (unsigned char)(r->header.cupsWidth); appleheader[16] = (unsigned char)(height >> 24); appleheader[17] = (unsigned char)(height >> 16); appleheader[18] = (unsigned char)(height >> 8); appleheader[19] = (unsigned char)(height); appleheader[20] = (unsigned char)(r->header.HWResolution[0] >> 24); appleheader[21] = (unsigned char)(r->header.HWResolution[0] >> 16); appleheader[22] = (unsigned char)(r->header.HWResolution[0] >> 8); appleheader[23] = (unsigned char)(r->header.HWResolution[0]); for (i = 0; i < (int)(sizeof(apple_media_types) / sizeof(apple_media_types[0])); i ++) { if (!strcmp(r->header.MediaType, apple_media_types[i])) { appleheader[4] = (unsigned char)i; break; } } return (cups_raster_io(r, appleheader, sizeof(appleheader)) == sizeof(appleheader)); } else return (cups_raster_io(r, (unsigned char *)&(r->header), sizeof(r->header)) == sizeof(r->header)); } /* * '_cupsRasterWritePixels()' - Write raster pixels. * * For best performance, filters should write one or more whole lines. * The "cupsBytesPerLine" value from the page header can be used to allocate * the line buffer and as the number of bytes to write. */ unsigned /* O - Number of bytes written */ _cupsRasterWritePixels( cups_raster_t *r, /* I - Raster stream */ unsigned char *p, /* I - Bytes to write */ unsigned len) /* I - Number of bytes to write */ { ssize_t bytes; /* Bytes read */ unsigned remaining; /* Bytes remaining */ DEBUG_printf(("_cupsRasterWritePixels(r=%p, p=%p, len=%u), remaining=%u", (void *)r, (void *)p, len, r->remaining)); if (r == NULL || r->mode == CUPS_RASTER_READ || r->remaining == 0) return (0); if (!r->compressed) { /* * Without compression, just write the raster data raw unless the data needs * to be swapped... */ r->remaining -= len / r->header.cupsBytesPerLine; if (r->swapped && (r->header.cupsBitsPerColor == 16 || r->header.cupsBitsPerPixel == 12 || r->header.cupsBitsPerPixel == 16)) { unsigned char *bufptr; /* Pointer into write buffer */ /* * Allocate a write buffer as needed... */ if ((size_t)len > r->bufsize) { if (r->buffer) bufptr = realloc(r->buffer, len); else bufptr = malloc(len); if (!bufptr) return (0); r->buffer = bufptr; r->bufsize = len; } /* * Byte swap the pixels and write them... */ cups_swap_copy(r->buffer, p, len); bytes = cups_raster_io(r, r->buffer, len); } else bytes = cups_raster_io(r, p, len); if (bytes < (ssize_t)len) return (0); else return (len); } /* * Otherwise, compress each line... */ for (remaining = len; remaining > 0; remaining -= (unsigned)bytes, p += bytes) { /* * Figure out the number of remaining bytes on the current line... */ if ((bytes = (ssize_t)remaining) > (ssize_t)(r->pend - r->pcurrent)) bytes = (ssize_t)(r->pend - r->pcurrent); if (r->count > 0) { /* * Check to see if this line is the same as the previous line... */ if (memcmp(p, r->pcurrent, (size_t)bytes)) { if (cups_raster_write(r, r->pixels) <= 0) return (0); r->count = 0; } else { /* * Mark more bytes as the same... */ r->pcurrent += bytes; if (r->pcurrent >= r->pend) { /* * Increase the repeat count... */ r->count += r->rowheight; r->pcurrent = r->pixels; /* * Flush out this line if it is the last one... */ r->remaining --; if (r->remaining == 0) { if (cups_raster_write(r, r->pixels) <= 0) return (0); else return (len); } else if (r->count > (256 - r->rowheight)) { if (cups_raster_write(r, r->pixels) <= 0) return (0); r->count = 0; } } continue; } } if (r->count == 0) { /* * Copy the raster data to the buffer... */ memcpy(r->pcurrent, p, (size_t)bytes); r->pcurrent += bytes; if (r->pcurrent >= r->pend) { /* * Increase the repeat count... */ r->count += r->rowheight; r->pcurrent = r->pixels; /* * Flush out this line if it is the last one... */ r->remaining --; if (r->remaining == 0) { if (cups_raster_write(r, r->pixels) <= 0) return (0); } } } } return (len); } /* * 'cups_raster_io()' - Read/write bytes from a context, handling interruptions. */ static ssize_t /* O - Bytes read/write or -1 */ cups_raster_io(cups_raster_t *r, /* I - Raster stream */ unsigned char *buf, /* I - Buffer for read/write */ size_t bytes) /* I - Number of bytes to read/write */ { ssize_t count, /* Number of bytes read/written */ total; /* Total bytes read/written */ DEBUG_printf(("5cups_raster_io(r=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)r, (void *)buf, CUPS_LLCAST bytes)); for (total = 0; total < (ssize_t)bytes; total += count, buf += count) { count = (*r->iocb)(r->ctx, buf, bytes - (size_t)total); DEBUG_printf(("6cups_raster_io: count=%d, total=%d", (int)count, (int)total)); if (count == 0) break; // { // DEBUG_puts("6cups_raster_io: Returning 0."); // return (0); // } else if (count < 0) { DEBUG_puts("6cups_raster_io: Returning -1 on error."); return (-1); } #ifdef DEBUG r->iocount += (size_t)count; #endif /* DEBUG */ } DEBUG_printf(("6cups_raster_io: iocount=" CUPS_LLFMT, CUPS_LLCAST r->iocount)); DEBUG_printf(("6cups_raster_io: Returning " CUPS_LLFMT ".", CUPS_LLCAST total)); return (total); } /* * 'cups_raster_read()' - Read through the raster buffer. */ static ssize_t /* O - Number of bytes read */ cups_raster_read(cups_raster_t *r, /* I - Raster stream */ unsigned char *buf, /* I - Buffer */ size_t bytes) /* I - Number of bytes to read */ { ssize_t count, /* Number of bytes read */ remaining, /* Remaining bytes in buffer */ total; /* Total bytes read */ DEBUG_printf(("4cups_raster_read(r=%p, buf=%p, bytes=" CUPS_LLFMT "), offset=" CUPS_LLFMT, (void *)r, (void *)buf, CUPS_LLCAST bytes, CUPS_LLCAST (r->iostart + (ssize_t)(r->bufptr - r->buffer)))); if (!r->compressed) return (cups_raster_io(r, buf, bytes)); /* * Allocate a read buffer as needed... */ count = (ssize_t)(2 * r->header.cupsBytesPerLine); if (count < 65536) count = 65536; if ((size_t)count > r->bufsize) { ssize_t offset = r->bufptr - r->buffer; /* Offset to current start of buffer */ ssize_t end = r->bufend - r->buffer;/* Offset to current end of buffer */ unsigned char *rptr; /* Pointer in read buffer */ if (r->buffer) rptr = realloc(r->buffer, (size_t)count); else rptr = malloc((size_t)count); if (!rptr) return (0); r->buffer = rptr; r->bufptr = rptr + offset; r->bufend = rptr + end; r->bufsize = (size_t)count; } /* * Loop until we have read everything... */ for (total = 0, remaining = (int)(r->bufend - r->bufptr); total < (ssize_t)bytes; total += count, buf += count) { count = (ssize_t)bytes - total; DEBUG_printf(("5cups_raster_read: count=" CUPS_LLFMT ", remaining=" CUPS_LLFMT ", buf=%p, bufptr=%p, bufend=%p", CUPS_LLCAST count, CUPS_LLCAST remaining, (void *)buf, (void *)r->bufptr, (void *)r->bufend)); if (remaining == 0) { if (count < 16) { /* * Read into the raster buffer and then copy... */ #ifdef DEBUG r->iostart += (size_t)(r->bufend - r->buffer); #endif /* DEBUG */ remaining = (*r->iocb)(r->ctx, r->buffer, r->bufsize); if (remaining <= 0) return (0); r->bufptr = r->buffer; r->bufend = r->buffer + remaining; #ifdef DEBUG r->iocount += (size_t)remaining; #endif /* DEBUG */ } else { /* * Read directly into "buf"... */ count = (*r->iocb)(r->ctx, buf, (size_t)count); if (count <= 0) return (0); #ifdef DEBUG r->iostart += (size_t)count; r->iocount += (size_t)count; #endif /* DEBUG */ continue; } } /* * Copy bytes from raster buffer to "buf"... */ if (count > remaining) count = remaining; if (count == 1) { /* * Copy 1 byte... */ *buf = *(r->bufptr)++; remaining --; } else if (count < 128) { /* * Copy up to 127 bytes without using memcpy(); this is * faster because it avoids an extra function call and is * often further optimized by the compiler... */ unsigned char *bufptr; /* Temporary buffer pointer */ remaining -= count; for (bufptr = r->bufptr; count > 0; count --, total ++) *buf++ = *bufptr++; r->bufptr = bufptr; } else { /* * Use memcpy() for a large read... */ memcpy(buf, r->bufptr, (size_t)count); r->bufptr += count; remaining -= count; } } DEBUG_printf(("5cups_raster_read: Returning %ld", (long)total)); return (total); } /* * 'cups_raster_update()' - Update the raster header and row count for the * current page. */ static int /* O - 1 on success, 0 on failure */ cups_raster_update(cups_raster_t *r) /* I - Raster stream */ { if (r->sync == CUPS_RASTER_SYNCv1 || r->sync == CUPS_RASTER_REVSYNCv1 || r->header.cupsNumColors == 0) { /* * Set the "cupsNumColors" field according to the colorspace... */ switch (r->header.cupsColorSpace) { case CUPS_CSPACE_W : case CUPS_CSPACE_K : case CUPS_CSPACE_WHITE : case CUPS_CSPACE_GOLD : case CUPS_CSPACE_SILVER : case CUPS_CSPACE_SW : r->header.cupsNumColors = 1; break; case CUPS_CSPACE_RGB : case CUPS_CSPACE_CMY : case CUPS_CSPACE_YMC : case CUPS_CSPACE_CIEXYZ : case CUPS_CSPACE_CIELab : case CUPS_CSPACE_SRGB : case CUPS_CSPACE_ADOBERGB : case CUPS_CSPACE_ICC1 : case CUPS_CSPACE_ICC2 : case CUPS_CSPACE_ICC3 : case CUPS_CSPACE_ICC4 : case CUPS_CSPACE_ICC5 : case CUPS_CSPACE_ICC6 : case CUPS_CSPACE_ICC7 : case CUPS_CSPACE_ICC8 : case CUPS_CSPACE_ICC9 : case CUPS_CSPACE_ICCA : case CUPS_CSPACE_ICCB : case CUPS_CSPACE_ICCC : case CUPS_CSPACE_ICCD : case CUPS_CSPACE_ICCE : case CUPS_CSPACE_ICCF : r->header.cupsNumColors = 3; break; case CUPS_CSPACE_RGBA : case CUPS_CSPACE_RGBW : case CUPS_CSPACE_CMYK : case CUPS_CSPACE_YMCK : case CUPS_CSPACE_KCMY : case CUPS_CSPACE_GMCK : case CUPS_CSPACE_GMCS : r->header.cupsNumColors = 4; break; case CUPS_CSPACE_KCMYcm : if (r->header.cupsBitsPerPixel < 8) r->header.cupsNumColors = 6; else r->header.cupsNumColors = 4; break; case CUPS_CSPACE_DEVICE1 : case CUPS_CSPACE_DEVICE2 : case CUPS_CSPACE_DEVICE3 : case CUPS_CSPACE_DEVICE4 : case CUPS_CSPACE_DEVICE5 : case CUPS_CSPACE_DEVICE6 : case CUPS_CSPACE_DEVICE7 : case CUPS_CSPACE_DEVICE8 : case CUPS_CSPACE_DEVICE9 : case CUPS_CSPACE_DEVICEA : case CUPS_CSPACE_DEVICEB : case CUPS_CSPACE_DEVICEC : case CUPS_CSPACE_DEVICED : case CUPS_CSPACE_DEVICEE : case CUPS_CSPACE_DEVICEF : r->header.cupsNumColors = r->header.cupsColorSpace - CUPS_CSPACE_DEVICE1 + 1; break; default : /* Unknown color space */ return (0); } } /* * Set the number of bytes per pixel/color... */ if (r->header.cupsColorOrder == CUPS_ORDER_CHUNKED) r->bpp = (r->header.cupsBitsPerPixel + 7) / 8; else r->bpp = (r->header.cupsBitsPerColor + 7) / 8; if (r->bpp == 0) r->bpp = 1; /* * Set the number of remaining rows... */ if (r->header.cupsColorOrder == CUPS_ORDER_PLANAR) r->remaining = r->header.cupsHeight * r->header.cupsNumColors; else r->remaining = r->header.cupsHeight; /* * Allocate the compression buffer... */ if (r->compressed) { if (r->pixels != NULL) free(r->pixels); if ((r->pixels = calloc(r->header.cupsBytesPerLine, 1)) == NULL) { r->pcurrent = NULL; r->pend = NULL; r->count = 0; return (0); } r->pcurrent = r->pixels; r->pend = r->pixels + r->header.cupsBytesPerLine; r->count = 0; } return (1); } /* * 'cups_raster_write()' - Write a row of compressed raster data... */ static ssize_t /* O - Number of bytes written */ cups_raster_write( cups_raster_t *r, /* I - Raster stream */ const unsigned char *pixels) /* I - Pixel data to write */ { const unsigned char *start, /* Start of sequence */ *ptr, /* Current pointer in sequence */ *pend, /* End of raster buffer */ *plast; /* Pointer to last pixel */ unsigned char *wptr; /* Pointer into write buffer */ unsigned bpp, /* Bytes per pixel */ count; /* Count */ _cups_copyfunc_t cf; /* Copy function */ DEBUG_printf(("3cups_raster_write(r=%p, pixels=%p)", (void *)r, (void *)pixels)); /* * Determine whether we need to swap bytes... */ if (r->swapped && (r->header.cupsBitsPerColor == 16 || r->header.cupsBitsPerPixel == 12 || r->header.cupsBitsPerPixel == 16)) { DEBUG_puts("4cups_raster_write: Swapping bytes when writing."); cf = (_cups_copyfunc_t)cups_swap_copy; } else cf = (_cups_copyfunc_t)memcpy; /* * Allocate a write buffer as needed... */ count = r->header.cupsBytesPerLine * 2; if (count < 65536) count = 65536; if ((size_t)count > r->bufsize) { if (r->buffer) wptr = realloc(r->buffer, count); else wptr = malloc(count); if (!wptr) { DEBUG_printf(("4cups_raster_write: Unable to allocate " CUPS_LLFMT " bytes for raster buffer: %s", CUPS_LLCAST count, strerror(errno))); return (-1); } r->buffer = wptr; r->bufsize = count; } /* * Write the row repeat count... */ bpp = r->bpp; pend = pixels + r->header.cupsBytesPerLine; plast = pend - bpp; wptr = r->buffer; *wptr++ = (unsigned char)(r->count - 1); /* * Write using a modified PackBits compression... */ for (ptr = pixels; ptr < pend;) { start = ptr; ptr += bpp; if (ptr == pend) { /* * Encode a single pixel at the end... */ *wptr++ = 0; (*cf)(wptr, start, bpp); wptr += bpp; } else if (!memcmp(start, ptr, bpp)) { /* * Encode a sequence of repeating pixels... */ for (count = 2; count < 128 && ptr < plast; count ++, ptr += bpp) if (memcmp(ptr, ptr + bpp, bpp)) break; *wptr++ = (unsigned char)(count - 1); (*cf)(wptr, ptr, bpp); wptr += bpp; ptr += bpp; } else { /* * Encode a sequence of non-repeating pixels... */ for (count = 1; count < 128 && ptr < plast; count ++, ptr += bpp) if (!memcmp(ptr, ptr + bpp, bpp)) break; if (ptr >= plast && count < 128) { count ++; ptr += bpp; } *wptr++ = (unsigned char)(257 - count); count *= bpp; (*cf)(wptr, start, count); wptr += count; } } DEBUG_printf(("4cups_raster_write: Writing " CUPS_LLFMT " bytes.", CUPS_LLCAST (wptr - r->buffer))); return (cups_raster_io(r, r->buffer, (size_t)(wptr - r->buffer))); } /* * 'cups_swap()' - Swap bytes in raster data... */ static void cups_swap(unsigned char *buf, /* I - Buffer to swap */ size_t bytes) /* I - Number of bytes to swap */ { unsigned char even, odd; /* Temporary variables */ bytes /= 2; while (bytes > 0) { even = buf[0]; odd = buf[1]; buf[0] = odd; buf[1] = even; buf += 2; bytes --; } } /* * 'cups_swap_copy()' - Copy and swap bytes in raster data... */ static void cups_swap_copy( unsigned char *dst, /* I - Destination */ const unsigned char *src, /* I - Source */ size_t bytes) /* I - Number of bytes to swap */ { bytes /= 2; while (bytes > 0) { dst[0] = src[1]; dst[1] = src[0]; dst += 2; src += 2; bytes --; } } cups-2.4.7/cups/raster-private.h0000644000175000017500000000613214502571342016456 0ustar zdohnalzdohnal/* * Private image library definitions for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1993-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_RASTER_PRIVATE_H_ # define _CUPS_RASTER_PRIVATE_H_ /* * Include necessary headers... */ # include "raster.h" # include # include # include # ifdef _WIN32 # include # include /* for htonl() definition */ # else # include # include # endif /* _WIN32 */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Structure... */ struct _cups_raster_s /**** Raster stream data ****/ { unsigned sync; /* Sync word from start of stream */ void *ctx; /* File descriptor */ cups_raster_iocb_t iocb; /* IO callback */ cups_mode_t mode; /* Read/write mode */ cups_page_header2_t header; /* Raster header for current page */ unsigned rowheight, /* Row height in lines */ count, /* Current row run-length count */ remaining, /* Remaining rows in page image */ bpp; /* Bytes per pixel/color */ unsigned char *pixels, /* Pixels for current row */ *pend, /* End of pixel buffer */ *pcurrent; /* Current byte in pixel buffer */ int compressed, /* Non-zero if data is compressed */ swapped; /* Non-zero if data is byte-swapped */ unsigned char *buffer, /* Read/write buffer */ *bufptr, /* Current (read) position in buffer */ *bufend; /* End of current (read) buffer */ size_t bufsize; /* Buffer size */ # ifdef DEBUG size_t iostart, /* Start of read/write buffer */ iocount; /* Number of bytes read/written */ # endif /* DEBUG */ unsigned apple_page_count;/* Apple raster page count */ }; #if 0 /* * min/max macros... */ # ifndef max # define max(a,b) ((a) > (b) ? (a) : (b)) # endif /* !max */ # ifndef min # define min(a,b) ((a) < (b) ? (a) : (b)) # endif /* !min */ #endif // 0 /* * Prototypes... */ extern void _cupsRasterAddError(const char *f, ...) _CUPS_FORMAT(1,2) _CUPS_PRIVATE; extern void _cupsRasterClearError(void) _CUPS_PRIVATE; extern const char *_cupsRasterColorSpaceString(cups_cspace_t cspace) _CUPS_PRIVATE; extern void _cupsRasterDelete(cups_raster_t *r) _CUPS_PRIVATE; extern const char *_cupsRasterErrorString(void) _CUPS_PRIVATE; extern int _cupsRasterInitPWGHeader(cups_page_header2_t *h, pwg_media_t *media, const char *type, int xdpi, int ydpi, const char *sides, const char *sheet_back) _CUPS_PRIVATE; extern cups_raster_t *_cupsRasterNew(cups_raster_iocb_t iocb, void *ctx, cups_mode_t mode) _CUPS_PRIVATE; extern unsigned _cupsRasterReadHeader(cups_raster_t *r) _CUPS_PRIVATE; extern unsigned _cupsRasterReadPixels(cups_raster_t *r, unsigned char *p, unsigned len) _CUPS_PRIVATE; extern unsigned _cupsRasterWriteHeader(cups_raster_t *r) _CUPS_PRIVATE; extern unsigned _cupsRasterWritePixels(cups_raster_t *r, unsigned char *p, unsigned len) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_RASTER_PRIVATE_H_ */ cups-2.4.7/cups/raster-interstub.c0000644000175000017500000000433614502571342017022 0ustar zdohnalzdohnal/* * cupsRasterInterpretPPD stub for CUPS. * * Copyright © 2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include /* * This stub wraps the _cupsRasterInterpretPPD function in libcups - this allows * one library to provide all of the CUPS API functions while still supporting * the old split library organization... */ /* * 'cupsRasterInterpretPPD()' - Interpret PPD commands to create a page header. * * This function is used by raster image processing (RIP) filters like * cgpdftoraster and imagetoraster when writing CUPS raster data for a page. * It is not used by raster printer driver filters which only read CUPS * raster data. * * * @code cupsRasterInterpretPPD@ does not mark the options in the PPD using * the "num_options" and "options" arguments. Instead, mark the options with * @code cupsMarkOptions@ and @code ppdMarkOption@ prior to calling it - * this allows for per-page options without manipulating the options array. * * The "func" argument specifies an optional callback function that is * called prior to the computation of the final raster data. The function * can make changes to the @link cups_page_header2_t@ data as needed to use a * supported raster format and then returns 0 on success and -1 if the * requested attributes cannot be supported. * * * @code cupsRasterInterpretPPD@ supports a subset of the PostScript language. * Currently only the @code [@, @code ]@, @code <<@, @code >>@, @code {@, * @code }@, @code cleartomark@, @code copy@, @code dup@, @code index@, * @code pop@, @code roll@, @code setpagedevice@, and @code stopped@ operators * are supported. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on failure */ cupsRasterInterpretPPD( cups_page_header2_t *h, /* O - Page header to create */ ppd_file_t *ppd, /* I - PPD file */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ cups_interpret_cb_t func) /* I - Optional page header callback (@code NULL@ for none) */ { return (_cupsRasterInterpretPPD(h, ppd, num_options, options, func)); } cups-2.4.7/cups/raster-interpret.c0000644000175000017500000012135414502571342017017 0ustar zdohnalzdohnal/* * PPD command interpreter for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1993-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include #include #include "debug-internal.h" /* * Stack values for the PostScript mini-interpreter... */ typedef enum { CUPS_PS_NAME, CUPS_PS_NUMBER, CUPS_PS_STRING, CUPS_PS_BOOLEAN, CUPS_PS_NULL, CUPS_PS_START_ARRAY, CUPS_PS_END_ARRAY, CUPS_PS_START_DICT, CUPS_PS_END_DICT, CUPS_PS_START_PROC, CUPS_PS_END_PROC, CUPS_PS_CLEARTOMARK, CUPS_PS_COPY, CUPS_PS_DUP, CUPS_PS_INDEX, CUPS_PS_POP, CUPS_PS_ROLL, CUPS_PS_SETPAGEDEVICE, CUPS_PS_STOPPED, CUPS_PS_OTHER } _cups_ps_type_t; typedef struct { _cups_ps_type_t type; /* Object type */ union { int boolean; /* Boolean value */ char name[64]; /* Name value */ double number; /* Number value */ char other[64]; /* Other operator */ char string[64]; /* String value */ } value; /* Value */ } _cups_ps_obj_t; typedef struct { int num_objs, /* Number of objects on stack */ alloc_objs; /* Number of allocated objects */ _cups_ps_obj_t *objs; /* Objects in stack */ } _cups_ps_stack_t; /* * Local functions... */ static int cleartomark_stack(_cups_ps_stack_t *st); static int copy_stack(_cups_ps_stack_t *st, int count); static void delete_stack(_cups_ps_stack_t *st); static void error_object(_cups_ps_obj_t *obj); static void error_stack(_cups_ps_stack_t *st, const char *title); static _cups_ps_obj_t *index_stack(_cups_ps_stack_t *st, int n); static _cups_ps_stack_t *new_stack(void); static _cups_ps_obj_t *pop_stack(_cups_ps_stack_t *st); static _cups_ps_obj_t *push_stack(_cups_ps_stack_t *st, _cups_ps_obj_t *obj); static int roll_stack(_cups_ps_stack_t *st, int c, int s); static _cups_ps_obj_t *scan_ps(_cups_ps_stack_t *st, char **ptr); static int setpagedevice(_cups_ps_stack_t *st, cups_page_header2_t *h, int *preferred_bits); #ifdef DEBUG static void DEBUG_object(const char *prefix, _cups_ps_obj_t *obj); static void DEBUG_stack(const char *prefix, _cups_ps_stack_t *st); #endif /* DEBUG */ /* * '_cupsRasterInterpretPPD()' - Interpret PPD commands to create a page header. * * This function is used by raster image processing (RIP) filters like * cgpdftoraster and imagetoraster when writing CUPS raster data for a page. * It is not used by raster printer driver filters which only read CUPS * raster data. * * * @code cupsRasterInterpretPPD@ does not mark the options in the PPD using * the "num_options" and "options" arguments. Instead, mark the options with * @code cupsMarkOptions@ and @code ppdMarkOption@ prior to calling it - * this allows for per-page options without manipulating the options array. * * The "func" argument specifies an optional callback function that is * called prior to the computation of the final raster data. The function * can make changes to the @link cups_page_header2_t@ data as needed to use a * supported raster format and then returns 0 on success and -1 if the * requested attributes cannot be supported. * * * @code cupsRasterInterpretPPD@ supports a subset of the PostScript language. * Currently only the @code [@, @code ]@, @code <<@, @code >>@, @code {@, * @code }@, @code cleartomark@, @code copy@, @code dup@, @code index@, * @code pop@, @code roll@, @code setpagedevice@, and @code stopped@ operators * are supported. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on failure */ _cupsRasterInterpretPPD( cups_page_header2_t *h, /* O - Page header to create */ ppd_file_t *ppd, /* I - PPD file */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ cups_interpret_cb_t func) /* I - Optional page header callback (@code NULL@ for none) */ { int status; /* Cumulative status */ char *code; /* Code to run */ const char *val; /* Option value */ ppd_size_t *size; /* Current size */ float left, /* Left position */ bottom, /* Bottom position */ right, /* Right position */ top, /* Top position */ temp1, temp2; /* Temporary variables for swapping */ int preferred_bits; /* Preferred bits per color */ /* * Range check input... */ _cupsRasterClearError(); if (!h) { _cupsRasterAddError("Page header cannot be NULL!\n"); return (-1); } /* * Reset the page header to the defaults... */ memset(h, 0, sizeof(cups_page_header2_t)); h->NumCopies = 1; h->PageSize[0] = 612; h->PageSize[1] = 792; h->HWResolution[0] = 100; h->HWResolution[1] = 100; h->cupsBitsPerColor = 1; h->cupsColorOrder = CUPS_ORDER_CHUNKED; h->cupsColorSpace = CUPS_CSPACE_K; h->cupsBorderlessScalingFactor = 1.0f; h->cupsPageSize[0] = 612.0f; h->cupsPageSize[1] = 792.0f; h->cupsImagingBBox[0] = 0.0f; h->cupsImagingBBox[1] = 0.0f; h->cupsImagingBBox[2] = 612.0f; h->cupsImagingBBox[3] = 792.0f; strlcpy(h->cupsPageSizeName, "Letter", sizeof(h->cupsPageSizeName)); #ifdef __APPLE__ /* * cupsInteger0 is also used for the total page count on macOS; set an * uncommon default value so we can tell if the driver is using cupsInteger0. */ h->cupsInteger[0] = 0x80000000; #endif /* __APPLE__ */ /* * Apply patches and options to the page header... */ status = 0; preferred_bits = 0; if (ppd) { /* * Apply any patch code (used to override the defaults...) */ if (ppd->patches) status |= _cupsRasterExecPS(h, &preferred_bits, ppd->patches); /* * Then apply printer options in the proper order... */ if ((code = ppdEmitString(ppd, PPD_ORDER_DOCUMENT, 0.0)) != NULL) { status |= _cupsRasterExecPS(h, &preferred_bits, code); free(code); } if ((code = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL) { status |= _cupsRasterExecPS(h, &preferred_bits, code); free(code); } if ((code = ppdEmitString(ppd, PPD_ORDER_PROLOG, 0.0)) != NULL) { status |= _cupsRasterExecPS(h, &preferred_bits, code); free(code); } if ((code = ppdEmitString(ppd, PPD_ORDER_PAGE, 0.0)) != NULL) { status |= _cupsRasterExecPS(h, &preferred_bits, code); free(code); } } /* * Allow option override for page scaling... */ if ((val = cupsGetOption("cupsBorderlessScalingFactor", num_options, options)) != NULL) { double sc = atof(val); /* Scale factor */ if (sc >= 0.1 && sc <= 2.0) h->cupsBorderlessScalingFactor = (float)sc; } /* * Get the margins for the current size... */ if ((size = ppdPageSize(ppd, NULL)) != NULL) { /* * Use the margins from the PPD file... */ left = size->left; bottom = size->bottom; right = size->right; top = size->top; strlcpy(h->cupsPageSizeName, size->name, sizeof(h->cupsPageSizeName)); h->cupsPageSize[0] = size->width; h->cupsPageSize[1] = size->length; } else { /* * Use the default margins... */ left = 0.0f; bottom = 0.0f; right = 612.0f; top = 792.0f; } /* * Handle orientation... */ switch (h->Orientation) { case CUPS_ORIENT_0 : default : /* Do nothing */ break; case CUPS_ORIENT_90 : temp1 = h->cupsPageSize[0]; h->cupsPageSize[0] = h->cupsPageSize[1]; h->cupsPageSize[1] = temp1; temp1 = left; temp2 = right; left = h->cupsPageSize[0] - top; right = h->cupsPageSize[0] - bottom; bottom = h->cupsPageSize[1] - temp1; top = h->cupsPageSize[1] - temp2; break; case CUPS_ORIENT_180 : temp1 = left; temp2 = bottom; left = h->cupsPageSize[0] - right; right = h->cupsPageSize[0] - temp1; bottom = h->cupsPageSize[1] - top; top = h->cupsPageSize[1] - temp2; break; case CUPS_ORIENT_270 : temp1 = h->cupsPageSize[0]; h->cupsPageSize[0] = h->cupsPageSize[1]; h->cupsPageSize[1] = temp1; temp1 = left; temp2 = right; left = bottom; right = top; bottom = h->cupsPageSize[1] - temp2; top = h->cupsPageSize[1] - temp1; break; } if (left > right) { temp1 = left; left = right; right = temp1; } if (bottom > top) { temp1 = bottom; bottom = top; top = temp1; } h->PageSize[0] = (unsigned)(h->cupsPageSize[0] * h->cupsBorderlessScalingFactor); h->PageSize[1] = (unsigned)(h->cupsPageSize[1] * h->cupsBorderlessScalingFactor); h->Margins[0] = (unsigned)(left * h->cupsBorderlessScalingFactor); h->Margins[1] = (unsigned)(bottom * h->cupsBorderlessScalingFactor); h->ImagingBoundingBox[0] = (unsigned)(left * h->cupsBorderlessScalingFactor); h->ImagingBoundingBox[1] = (unsigned)(bottom * h->cupsBorderlessScalingFactor); h->ImagingBoundingBox[2] = (unsigned)(right * h->cupsBorderlessScalingFactor); h->ImagingBoundingBox[3] = (unsigned)(top * h->cupsBorderlessScalingFactor); h->cupsImagingBBox[0] = left; h->cupsImagingBBox[1] = bottom; h->cupsImagingBBox[2] = right; h->cupsImagingBBox[3] = top; /* * Use the callback to validate the page header... */ if (func && (*func)(h, preferred_bits)) { _cupsRasterAddError("Page header callback returned error.\n"); return (-1); } /* * Check parameters... */ if (!h->HWResolution[0] || !h->HWResolution[1] || !h->PageSize[0] || !h->PageSize[1] || (h->cupsBitsPerColor != 1 && h->cupsBitsPerColor != 2 && h->cupsBitsPerColor != 4 && h->cupsBitsPerColor != 8 && h->cupsBitsPerColor != 16) || h->cupsBorderlessScalingFactor < 0.1 || h->cupsBorderlessScalingFactor > 2.0) { _cupsRasterAddError("Page header uses unsupported values.\n"); return (-1); } /* * Compute the bitmap parameters... */ h->cupsWidth = (unsigned)((right - left) * h->cupsBorderlessScalingFactor * h->HWResolution[0] / 72.0f + 0.5f); h->cupsHeight = (unsigned)((top - bottom) * h->cupsBorderlessScalingFactor * h->HWResolution[1] / 72.0f + 0.5f); switch (h->cupsColorSpace) { case CUPS_CSPACE_W : case CUPS_CSPACE_K : case CUPS_CSPACE_WHITE : case CUPS_CSPACE_GOLD : case CUPS_CSPACE_SILVER : case CUPS_CSPACE_SW : h->cupsNumColors = 1; h->cupsBitsPerPixel = h->cupsBitsPerColor; break; default : /* * Ensure that colorimetric colorspaces use at least 8 bits per * component... */ if (h->cupsColorSpace >= CUPS_CSPACE_CIEXYZ && h->cupsBitsPerColor < 8) h->cupsBitsPerColor = 8; /* * Figure out the number of bits per pixel... */ if (h->cupsColorOrder == CUPS_ORDER_CHUNKED) { if (h->cupsBitsPerColor >= 8) h->cupsBitsPerPixel = h->cupsBitsPerColor * 3; else h->cupsBitsPerPixel = h->cupsBitsPerColor * 4; } else h->cupsBitsPerPixel = h->cupsBitsPerColor; h->cupsNumColors = 3; break; case CUPS_CSPACE_KCMYcm : if (h->cupsBitsPerColor == 1) { if (h->cupsColorOrder == CUPS_ORDER_CHUNKED) h->cupsBitsPerPixel = 8; else h->cupsBitsPerPixel = 1; h->cupsNumColors = 6; break; } /* * Fall through to CMYK code... */ case CUPS_CSPACE_RGBA : case CUPS_CSPACE_RGBW : case CUPS_CSPACE_CMYK : case CUPS_CSPACE_YMCK : case CUPS_CSPACE_KCMY : case CUPS_CSPACE_GMCK : case CUPS_CSPACE_GMCS : if (h->cupsColorOrder == CUPS_ORDER_CHUNKED) h->cupsBitsPerPixel = h->cupsBitsPerColor * 4; else h->cupsBitsPerPixel = h->cupsBitsPerColor; h->cupsNumColors = 4; break; case CUPS_CSPACE_DEVICE1 : case CUPS_CSPACE_DEVICE2 : case CUPS_CSPACE_DEVICE3 : case CUPS_CSPACE_DEVICE4 : case CUPS_CSPACE_DEVICE5 : case CUPS_CSPACE_DEVICE6 : case CUPS_CSPACE_DEVICE7 : case CUPS_CSPACE_DEVICE8 : case CUPS_CSPACE_DEVICE9 : case CUPS_CSPACE_DEVICEA : case CUPS_CSPACE_DEVICEB : case CUPS_CSPACE_DEVICEC : case CUPS_CSPACE_DEVICED : case CUPS_CSPACE_DEVICEE : case CUPS_CSPACE_DEVICEF : h->cupsNumColors = h->cupsColorSpace - CUPS_CSPACE_DEVICE1 + 1; if (h->cupsColorOrder == CUPS_ORDER_CHUNKED) h->cupsBitsPerPixel = h->cupsBitsPerColor * h->cupsNumColors; else h->cupsBitsPerPixel = h->cupsBitsPerColor; break; } h->cupsBytesPerLine = (h->cupsBitsPerPixel * h->cupsWidth + 7) / 8; if (h->cupsColorOrder == CUPS_ORDER_BANDED) h->cupsBytesPerLine *= h->cupsNumColors; return (status); } /* * '_cupsRasterExecPS()' - Execute PostScript code to initialize a page header. */ int /* O - 0 on success, -1 on error */ _cupsRasterExecPS( cups_page_header2_t *h, /* O - Page header */ int *preferred_bits,/* O - Preferred bits per color */ const char *code) /* I - PS code to execute */ { int error = 0; /* Error condition? */ _cups_ps_stack_t *st; /* PostScript value stack */ _cups_ps_obj_t *obj; /* Object from top of stack */ char *codecopy, /* Copy of code */ *codeptr; /* Pointer into copy of code */ DEBUG_printf(("_cupsRasterExecPS(h=%p, preferred_bits=%p, code=\"%s\")\n", h, preferred_bits, code)); /* * Copy the PostScript code and create a stack... */ if ((codecopy = strdup(code)) == NULL) { _cupsRasterAddError("Unable to duplicate code string.\n"); return (-1); } if ((st = new_stack()) == NULL) { _cupsRasterAddError("Unable to create stack.\n"); free(codecopy); return (-1); } /* * Parse the PS string until we run out of data... */ codeptr = codecopy; while ((obj = scan_ps(st, &codeptr)) != NULL) { #ifdef DEBUG DEBUG_printf(("_cupsRasterExecPS: Stack (%d objects)", st->num_objs)); DEBUG_object("_cupsRasterExecPS", obj); #endif /* DEBUG */ switch (obj->type) { default : /* Do nothing for regular values */ break; case CUPS_PS_CLEARTOMARK : pop_stack(st); if (cleartomark_stack(st)) _cupsRasterAddError("cleartomark: Stack underflow.\n"); #ifdef DEBUG DEBUG_puts("1_cupsRasterExecPS: dup"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ break; case CUPS_PS_COPY : pop_stack(st); if ((obj = pop_stack(st)) != NULL) { copy_stack(st, (int)obj->value.number); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: copy"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ } break; case CUPS_PS_DUP : pop_stack(st); copy_stack(st, 1); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: dup"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ break; case CUPS_PS_INDEX : pop_stack(st); if ((obj = pop_stack(st)) != NULL) { index_stack(st, (int)obj->value.number); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: index"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ } break; case CUPS_PS_POP : pop_stack(st); pop_stack(st); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: pop"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ break; case CUPS_PS_ROLL : pop_stack(st); if ((obj = pop_stack(st)) != NULL) { int c; /* Count */ c = (int)obj->value.number; if ((obj = pop_stack(st)) != NULL) { roll_stack(st, (int)obj->value.number, c); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: roll"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ } } break; case CUPS_PS_SETPAGEDEVICE : pop_stack(st); setpagedevice(st, h, preferred_bits); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: setpagedevice"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ break; case CUPS_PS_START_PROC : case CUPS_PS_END_PROC : case CUPS_PS_STOPPED : pop_stack(st); break; case CUPS_PS_OTHER : _cupsRasterAddError("Unknown operator \"%s\".\n", obj->value.other); error = 1; DEBUG_printf(("_cupsRasterExecPS: Unknown operator \"%s\".", obj->value.other)); break; } if (error) break; } /* * Cleanup... */ free(codecopy); if (st->num_objs > 0) { error_stack(st, "Stack not empty:"); #ifdef DEBUG DEBUG_puts("_cupsRasterExecPS: Stack not empty"); DEBUG_stack("_cupsRasterExecPS", st); #endif /* DEBUG */ delete_stack(st); return (-1); } delete_stack(st); /* * Return success... */ return (0); } /* * 'cleartomark_stack()' - Clear to the last mark ([) on the stack. */ static int /* O - 0 on success, -1 on error */ cleartomark_stack(_cups_ps_stack_t *st) /* I - Stack */ { _cups_ps_obj_t *obj; /* Current object on stack */ while ((obj = pop_stack(st)) != NULL) if (obj->type == CUPS_PS_START_ARRAY) break; return (obj ? 0 : -1); } /* * 'copy_stack()' - Copy the top N stack objects. */ static int /* O - 0 on success, -1 on error */ copy_stack(_cups_ps_stack_t *st, /* I - Stack */ int c) /* I - Number of objects to copy */ { int n; /* Index */ if (c < 0) return (-1); else if (c == 0) return (0); if ((n = st->num_objs - c) < 0) return (-1); while (c > 0) { _cups_ps_obj_t temp; /* Temporary copy of object */ temp = st->objs[n]; if (!push_stack(st, &temp)) return (-1); n ++; c --; } return (0); } /* * 'delete_stack()' - Free memory used by a stack. */ static void delete_stack(_cups_ps_stack_t *st) /* I - Stack */ { free(st->objs); free(st); } /* * 'error_object()' - Add an object's value to the current error message. */ static void error_object(_cups_ps_obj_t *obj) /* I - Object to add */ { switch (obj->type) { case CUPS_PS_NAME : _cupsRasterAddError(" /%s", obj->value.name); break; case CUPS_PS_NUMBER : _cupsRasterAddError(" %g", obj->value.number); break; case CUPS_PS_STRING : _cupsRasterAddError(" (%s)", obj->value.string); break; case CUPS_PS_BOOLEAN : if (obj->value.boolean) _cupsRasterAddError(" true"); else _cupsRasterAddError(" false"); break; case CUPS_PS_NULL : _cupsRasterAddError(" null"); break; case CUPS_PS_START_ARRAY : _cupsRasterAddError(" ["); break; case CUPS_PS_END_ARRAY : _cupsRasterAddError(" ]"); break; case CUPS_PS_START_DICT : _cupsRasterAddError(" <<"); break; case CUPS_PS_END_DICT : _cupsRasterAddError(" >>"); break; case CUPS_PS_START_PROC : _cupsRasterAddError(" {"); break; case CUPS_PS_END_PROC : _cupsRasterAddError(" }"); break; case CUPS_PS_COPY : _cupsRasterAddError(" --copy--"); break; case CUPS_PS_CLEARTOMARK : _cupsRasterAddError(" --cleartomark--"); break; case CUPS_PS_DUP : _cupsRasterAddError(" --dup--"); break; case CUPS_PS_INDEX : _cupsRasterAddError(" --index--"); break; case CUPS_PS_POP : _cupsRasterAddError(" --pop--"); break; case CUPS_PS_ROLL : _cupsRasterAddError(" --roll--"); break; case CUPS_PS_SETPAGEDEVICE : _cupsRasterAddError(" --setpagedevice--"); break; case CUPS_PS_STOPPED : _cupsRasterAddError(" --stopped--"); break; case CUPS_PS_OTHER : _cupsRasterAddError(" --%s--", obj->value.other); break; } } /* * 'error_stack()' - Add a stack to the current error message... */ static void error_stack(_cups_ps_stack_t *st, /* I - Stack */ const char *title) /* I - Title string */ { int c; /* Looping var */ _cups_ps_obj_t *obj; /* Current object on stack */ _cupsRasterAddError("%s", title); for (obj = st->objs, c = st->num_objs; c > 0; c --, obj ++) error_object(obj); _cupsRasterAddError("\n"); } /* * 'index_stack()' - Copy the Nth value on the stack. */ static _cups_ps_obj_t * /* O - New object */ index_stack(_cups_ps_stack_t *st, /* I - Stack */ int n) /* I - Object index */ { if (n < 0 || (n = st->num_objs - n - 1) < 0) return (NULL); return (push_stack(st, st->objs + n)); } /* * 'new_stack()' - Create a new stack. */ static _cups_ps_stack_t * /* O - New stack */ new_stack(void) { _cups_ps_stack_t *st; /* New stack */ if ((st = calloc(1, sizeof(_cups_ps_stack_t))) == NULL) return (NULL); st->alloc_objs = 32; if ((st->objs = calloc(32, sizeof(_cups_ps_obj_t))) == NULL) { free(st); return (NULL); } else return (st); } /* * 'pop_stock()' - Pop the top object off the stack. */ static _cups_ps_obj_t * /* O - Object */ pop_stack(_cups_ps_stack_t *st) /* I - Stack */ { if (st->num_objs > 0) { st->num_objs --; return (st->objs + st->num_objs); } else return (NULL); } /* * 'push_stack()' - Push an object on the stack. */ static _cups_ps_obj_t * /* O - New object */ push_stack(_cups_ps_stack_t *st, /* I - Stack */ _cups_ps_obj_t *obj) /* I - Object */ { _cups_ps_obj_t *temp; /* New object */ if (st->num_objs >= st->alloc_objs) { st->alloc_objs += 32; if ((temp = realloc(st->objs, (size_t)st->alloc_objs * sizeof(_cups_ps_obj_t))) == NULL) return (NULL); st->objs = temp; memset(temp + st->num_objs, 0, 32 * sizeof(_cups_ps_obj_t)); } temp = st->objs + st->num_objs; st->num_objs ++; memcpy(temp, obj, sizeof(_cups_ps_obj_t)); return (temp); } /* * 'roll_stack()' - Rotate stack objects. */ static int /* O - 0 on success, -1 on error */ roll_stack(_cups_ps_stack_t *st, /* I - Stack */ int c, /* I - Number of objects */ int s) /* I - Amount to shift */ { _cups_ps_obj_t *temp; /* Temporary array of objects */ int n; /* Index into array */ DEBUG_printf(("3roll_stack(st=%p, s=%d, c=%d)", st, s, c)); /* * Range check input... */ if (c < 0) return (-1); else if (c == 0) return (0); if ((n = st->num_objs - c) < 0) return (-1); s %= c; if (s == 0) return (0); /* * Copy N objects and move things around... */ if (s < 0) { /* * Shift down... */ s = -s; if ((temp = calloc((size_t)s, sizeof(_cups_ps_obj_t))) == NULL) return (-1); memcpy(temp, st->objs + n, (size_t)s * sizeof(_cups_ps_obj_t)); memmove(st->objs + n, st->objs + n + s, (size_t)(c - s) * sizeof(_cups_ps_obj_t)); memcpy(st->objs + n + c - s, temp, (size_t)s * sizeof(_cups_ps_obj_t)); } else { /* * Shift up... */ if ((temp = calloc((size_t)s, sizeof(_cups_ps_obj_t))) == NULL) return (-1); memcpy(temp, st->objs + n + c - s, (size_t)s * sizeof(_cups_ps_obj_t)); memmove(st->objs + n + s, st->objs + n, (size_t)(c - s) * sizeof(_cups_ps_obj_t)); memcpy(st->objs + n, temp, (size_t)s * sizeof(_cups_ps_obj_t)); } free(temp); return (0); } /* * 'scan_ps()' - Scan a string for the next PS object. */ static _cups_ps_obj_t * /* O - New object or NULL on EOF */ scan_ps(_cups_ps_stack_t *st, /* I - Stack */ char **ptr) /* IO - String pointer */ { _cups_ps_obj_t obj; /* Current object */ char *start, /* Start of object */ *cur, /* Current position */ *valptr, /* Pointer into value string */ *valend; /* End of value string */ int parens; /* Parenthesis nesting level */ /* * Skip leading whitespace... */ for (cur = *ptr; *cur; cur ++) { if (*cur == '%') { /* * Comment, skip to end of line... */ for (cur ++; *cur && *cur != '\n' && *cur != '\r'; cur ++); if (!*cur) cur --; } else if (!isspace(*cur & 255)) break; } if (!*cur) { *ptr = NULL; return (NULL); } /* * See what we have... */ memset(&obj, 0, sizeof(obj)); switch (*cur) { case '(' : /* (string) */ obj.type = CUPS_PS_STRING; start = cur; for (cur ++, parens = 1, valptr = obj.value.string, valend = obj.value.string + sizeof(obj.value.string) - 1; *cur; cur ++) { if (*cur == ')' && parens == 1) break; if (*cur == '(') parens ++; else if (*cur == ')') parens --; if (valptr >= valend) { *ptr = start; return (NULL); } if (*cur == '\\') { /* * Decode escaped character... */ cur ++; /* * Return NULL if we reached NULL terminator, a lone backslash * is not a valid character in PostScript. */ if (!*cur) { *ptr = NULL; return (NULL); } if (*cur == 'b') *valptr++ = '\b'; else if (*cur == 'f') *valptr++ = '\f'; else if (*cur == 'n') *valptr++ = '\n'; else if (*cur == 'r') *valptr++ = '\r'; else if (*cur == 't') *valptr++ = '\t'; else if (*cur >= '0' && *cur <= '7') { int ch = *cur - '0'; if (cur[1] >= '0' && cur[1] <= '7') { cur ++; ch = (ch << 3) + *cur - '0'; } if (cur[1] >= '0' && cur[1] <= '7') { cur ++; ch = (ch << 3) + *cur - '0'; } *valptr++ = (char)ch; } else if (*cur == '\r') { if (cur[1] == '\n') cur ++; } else if (*cur != '\n') *valptr++ = *cur; } else *valptr++ = *cur; } if (*cur != ')') { *ptr = start; return (NULL); } cur ++; break; case '[' : /* Start array */ obj.type = CUPS_PS_START_ARRAY; cur ++; break; case ']' : /* End array */ obj.type = CUPS_PS_END_ARRAY; cur ++; break; case '<' : /* Start dictionary or hex string */ if (cur[1] == '<') { obj.type = CUPS_PS_START_DICT; cur += 2; } else { obj.type = CUPS_PS_STRING; start = cur; for (cur ++, valptr = obj.value.string, valend = obj.value.string + sizeof(obj.value.string) - 1; *cur; cur ++) { int ch; /* Current character */ if (*cur == '>') break; else if (valptr >= valend || !isxdigit(*cur & 255)) { *ptr = start; return (NULL); } if (*cur >= '0' && *cur <= '9') ch = (*cur - '0') << 4; else ch = (tolower(*cur) - 'a' + 10) << 4; if (isxdigit(cur[1] & 255)) { cur ++; if (*cur >= '0' && *cur <= '9') ch |= *cur - '0'; else ch |= tolower(*cur) - 'a' + 10; } *valptr++ = (char)ch; } if (*cur != '>') { *ptr = start; return (NULL); } cur ++; } break; case '>' : /* End dictionary? */ if (cur[1] == '>') { obj.type = CUPS_PS_END_DICT; cur += 2; } else { obj.type = CUPS_PS_OTHER; obj.value.other[0] = *cur; cur ++; } break; case '{' : /* Start procedure */ obj.type = CUPS_PS_START_PROC; cur ++; break; case '}' : /* End procedure */ obj.type = CUPS_PS_END_PROC; cur ++; break; case '-' : /* Possible number */ case '+' : if (!isdigit(cur[1] & 255) && cur[1] != '.') { obj.type = CUPS_PS_OTHER; obj.value.other[0] = *cur; cur ++; break; } case '0' : /* Number */ case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : case '.' : obj.type = CUPS_PS_NUMBER; start = cur; for (cur ++; *cur; cur ++) if (!isdigit(*cur & 255)) break; if (*cur == '#') { /* * Integer with radix... */ obj.value.number = strtol(cur + 1, &cur, atoi(start)); break; } else if (strchr(".Ee()<>[]{}/%", *cur) || isspace(*cur & 255)) { /* * Integer or real number... */ obj.value.number = _cupsStrScand(start, &cur, localeconv()); break; } else cur = start; default : /* Operator/variable name */ start = cur; if (*cur == '/') { obj.type = CUPS_PS_NAME; valptr = obj.value.name; valend = obj.value.name + sizeof(obj.value.name) - 1; cur ++; } else { obj.type = CUPS_PS_OTHER; valptr = obj.value.other; valend = obj.value.other + sizeof(obj.value.other) - 1; } while (*cur) { if (strchr("()<>[]{}/%", *cur) || isspace(*cur & 255)) break; else if (valptr < valend) *valptr++ = *cur++; else { *ptr = start; return (NULL); } } if (obj.type == CUPS_PS_OTHER) { if (!strcmp(obj.value.other, "true")) { obj.type = CUPS_PS_BOOLEAN; obj.value.boolean = 1; } else if (!strcmp(obj.value.other, "false")) { obj.type = CUPS_PS_BOOLEAN; obj.value.boolean = 0; } else if (!strcmp(obj.value.other, "null")) obj.type = CUPS_PS_NULL; else if (!strcmp(obj.value.other, "cleartomark")) obj.type = CUPS_PS_CLEARTOMARK; else if (!strcmp(obj.value.other, "copy")) obj.type = CUPS_PS_COPY; else if (!strcmp(obj.value.other, "dup")) obj.type = CUPS_PS_DUP; else if (!strcmp(obj.value.other, "index")) obj.type = CUPS_PS_INDEX; else if (!strcmp(obj.value.other, "pop")) obj.type = CUPS_PS_POP; else if (!strcmp(obj.value.other, "roll")) obj.type = CUPS_PS_ROLL; else if (!strcmp(obj.value.other, "setpagedevice")) obj.type = CUPS_PS_SETPAGEDEVICE; else if (!strcmp(obj.value.other, "stopped")) obj.type = CUPS_PS_STOPPED; } break; } /* * Save the current position in the string and return the new object... */ *ptr = cur; return (push_stack(st, &obj)); } /* * 'setpagedevice()' - Simulate the PostScript setpagedevice operator. */ static int /* O - 0 on success, -1 on error */ setpagedevice( _cups_ps_stack_t *st, /* I - Stack */ cups_page_header2_t *h, /* O - Page header */ int *preferred_bits)/* O - Preferred bits per color */ { int i; /* Index into array */ _cups_ps_obj_t *obj, /* Current object */ *end; /* End of dictionary */ const char *name; /* Attribute name */ /* * Make sure we have a dictionary on the stack... */ if (st->num_objs == 0) return (-1); obj = end = st->objs + st->num_objs - 1; if (obj->type != CUPS_PS_END_DICT) return (-1); obj --; while (obj > st->objs) { if (obj->type == CUPS_PS_START_DICT) break; obj --; } if (obj < st->objs) return (-1); /* * Found the start of the dictionary, empty the stack to this point... */ st->num_objs = (int)(obj - st->objs); /* * Now pull /name and value pairs from the dictionary... */ DEBUG_puts("3setpagedevice: Dictionary:"); for (obj ++; obj < end; obj ++) { /* * Grab the name... */ if (obj->type != CUPS_PS_NAME) return (-1); name = obj->value.name; obj ++; #ifdef DEBUG DEBUG_printf(("4setpagedevice: /%s ", name)); DEBUG_object("setpagedevice", obj); #endif /* DEBUG */ /* * Then grab the value... */ if (!strcmp(name, "MediaClass") && obj->type == CUPS_PS_STRING) strlcpy(h->MediaClass, obj->value.string, sizeof(h->MediaClass)); else if (!strcmp(name, "MediaColor") && obj->type == CUPS_PS_STRING) strlcpy(h->MediaColor, obj->value.string, sizeof(h->MediaColor)); else if (!strcmp(name, "MediaType") && obj->type == CUPS_PS_STRING) strlcpy(h->MediaType, obj->value.string, sizeof(h->MediaType)); else if (!strcmp(name, "OutputType") && obj->type == CUPS_PS_STRING) strlcpy(h->OutputType, obj->value.string, sizeof(h->OutputType)); else if (!strcmp(name, "AdvanceDistance") && obj->type == CUPS_PS_NUMBER) h->AdvanceDistance = (unsigned)obj->value.number; else if (!strcmp(name, "AdvanceMedia") && obj->type == CUPS_PS_NUMBER) h->AdvanceMedia = (unsigned)obj->value.number; else if (!strcmp(name, "Collate") && obj->type == CUPS_PS_BOOLEAN) h->Collate = (unsigned)obj->value.boolean; else if (!strcmp(name, "CutMedia") && obj->type == CUPS_PS_NUMBER) h->CutMedia = (cups_cut_t)(unsigned)obj->value.number; else if (!strcmp(name, "Duplex") && obj->type == CUPS_PS_BOOLEAN) h->Duplex = (unsigned)obj->value.boolean; else if (!strcmp(name, "HWResolution") && obj->type == CUPS_PS_START_ARRAY) { if (obj[1].type == CUPS_PS_NUMBER && obj[2].type == CUPS_PS_NUMBER && obj[3].type == CUPS_PS_END_ARRAY) { h->HWResolution[0] = (unsigned)obj[1].value.number; h->HWResolution[1] = (unsigned)obj[2].value.number; obj += 3; } else return (-1); } else if (!strcmp(name, "InsertSheet") && obj->type == CUPS_PS_BOOLEAN) h->InsertSheet = (unsigned)obj->value.boolean; else if (!strcmp(name, "Jog") && obj->type == CUPS_PS_NUMBER) h->Jog = (unsigned)obj->value.number; else if (!strcmp(name, "LeadingEdge") && obj->type == CUPS_PS_NUMBER) h->LeadingEdge = (unsigned)obj->value.number; else if (!strcmp(name, "ManualFeed") && obj->type == CUPS_PS_BOOLEAN) h->ManualFeed = (unsigned)obj->value.boolean; else if ((!strcmp(name, "cupsMediaPosition") || !strcmp(name, "MediaPosition")) && obj->type == CUPS_PS_NUMBER) { /* * cupsMediaPosition is supported for backwards compatibility only. * We added it back in the Ghostscript 5.50 days to work around a * bug in Ghostscript WRT handling of MediaPosition and setpagedevice. * * All new development should set MediaPosition... */ h->MediaPosition = (unsigned)obj->value.number; } else if (!strcmp(name, "MediaWeight") && obj->type == CUPS_PS_NUMBER) h->MediaWeight = (unsigned)obj->value.number; else if (!strcmp(name, "MirrorPrint") && obj->type == CUPS_PS_BOOLEAN) h->MirrorPrint = (unsigned)obj->value.boolean; else if (!strcmp(name, "NegativePrint") && obj->type == CUPS_PS_BOOLEAN) h->NegativePrint = (unsigned)obj->value.boolean; else if (!strcmp(name, "NumCopies") && obj->type == CUPS_PS_NUMBER) h->NumCopies = (unsigned)obj->value.number; else if (!strcmp(name, "Orientation") && obj->type == CUPS_PS_NUMBER) h->Orientation = (unsigned)obj->value.number; else if (!strcmp(name, "OutputFaceUp") && obj->type == CUPS_PS_BOOLEAN) h->OutputFaceUp = (unsigned)obj->value.boolean; else if (!strcmp(name, "PageSize") && obj->type == CUPS_PS_START_ARRAY) { if (obj[1].type == CUPS_PS_NUMBER && obj[2].type == CUPS_PS_NUMBER && obj[3].type == CUPS_PS_END_ARRAY) { h->cupsPageSize[0] = (float)obj[1].value.number; h->cupsPageSize[1] = (float)obj[2].value.number; h->PageSize[0] = (unsigned)obj[1].value.number; h->PageSize[1] = (unsigned)obj[2].value.number; obj += 3; } else return (-1); } else if (!strcmp(name, "Separations") && obj->type == CUPS_PS_BOOLEAN) h->Separations = (unsigned)obj->value.boolean; else if (!strcmp(name, "TraySwitch") && obj->type == CUPS_PS_BOOLEAN) h->TraySwitch = (unsigned)obj->value.boolean; else if (!strcmp(name, "Tumble") && obj->type == CUPS_PS_BOOLEAN) h->Tumble = (unsigned)obj->value.boolean; else if (!strcmp(name, "cupsMediaType") && obj->type == CUPS_PS_NUMBER) h->cupsMediaType = (unsigned)obj->value.number; else if (!strcmp(name, "cupsBitsPerColor") && obj->type == CUPS_PS_NUMBER) h->cupsBitsPerColor = (unsigned)obj->value.number; else if (!strcmp(name, "cupsPreferredBitsPerColor") && obj->type == CUPS_PS_NUMBER) *preferred_bits = (int)obj->value.number; else if (!strcmp(name, "cupsColorOrder") && obj->type == CUPS_PS_NUMBER) h->cupsColorOrder = (cups_order_t)(unsigned)obj->value.number; else if (!strcmp(name, "cupsColorSpace") && obj->type == CUPS_PS_NUMBER) h->cupsColorSpace = (cups_cspace_t)(unsigned)obj->value.number; else if (!strcmp(name, "cupsCompression") && obj->type == CUPS_PS_NUMBER) h->cupsCompression = (unsigned)obj->value.number; else if (!strcmp(name, "cupsRowCount") && obj->type == CUPS_PS_NUMBER) h->cupsRowCount = (unsigned)obj->value.number; else if (!strcmp(name, "cupsRowFeed") && obj->type == CUPS_PS_NUMBER) h->cupsRowFeed = (unsigned)obj->value.number; else if (!strcmp(name, "cupsRowStep") && obj->type == CUPS_PS_NUMBER) h->cupsRowStep = (unsigned)obj->value.number; else if (!strcmp(name, "cupsBorderlessScalingFactor") && obj->type == CUPS_PS_NUMBER) h->cupsBorderlessScalingFactor = (float)obj->value.number; else if (!strncmp(name, "cupsInteger", 11) && obj->type == CUPS_PS_NUMBER) { if ((i = atoi(name + 11)) < 0 || i > 15) return (-1); h->cupsInteger[i] = (unsigned)obj->value.number; } else if (!strncmp(name, "cupsReal", 8) && obj->type == CUPS_PS_NUMBER) { if ((i = atoi(name + 8)) < 0 || i > 15) return (-1); h->cupsReal[i] = (float)obj->value.number; } else if (!strncmp(name, "cupsString", 10) && obj->type == CUPS_PS_STRING) { if ((i = atoi(name + 10)) < 0 || i > 15) return (-1); strlcpy(h->cupsString[i], obj->value.string, sizeof(h->cupsString[i])); } else if (!strcmp(name, "cupsMarkerType") && obj->type == CUPS_PS_STRING) strlcpy(h->cupsMarkerType, obj->value.string, sizeof(h->cupsMarkerType)); else if (!strcmp(name, "cupsPageSizeName") && obj->type == CUPS_PS_STRING) strlcpy(h->cupsPageSizeName, obj->value.string, sizeof(h->cupsPageSizeName)); else if (!strcmp(name, "cupsRenderingIntent") && obj->type == CUPS_PS_STRING) strlcpy(h->cupsRenderingIntent, obj->value.string, sizeof(h->cupsRenderingIntent)); else { /* * Ignore unknown name+value... */ DEBUG_printf(("4setpagedevice: Unknown name (\"%s\") or value...\n", name)); while (obj[1].type != CUPS_PS_NAME && obj < end) obj ++; } } return (0); } #ifdef DEBUG /* * 'DEBUG_object()' - Print an object's value... */ static void DEBUG_object(const char *prefix, /* I - Prefix string */ _cups_ps_obj_t *obj) /* I - Object to print */ { switch (obj->type) { case CUPS_PS_NAME : DEBUG_printf(("4%s: /%s\n", prefix, obj->value.name)); break; case CUPS_PS_NUMBER : DEBUG_printf(("4%s: %g\n", prefix, obj->value.number)); break; case CUPS_PS_STRING : DEBUG_printf(("4%s: (%s)\n", prefix, obj->value.string)); break; case CUPS_PS_BOOLEAN : if (obj->value.boolean) DEBUG_printf(("4%s: true", prefix)); else DEBUG_printf(("4%s: false", prefix)); break; case CUPS_PS_NULL : DEBUG_printf(("4%s: null", prefix)); break; case CUPS_PS_START_ARRAY : DEBUG_printf(("4%s: [", prefix)); break; case CUPS_PS_END_ARRAY : DEBUG_printf(("4%s: ]", prefix)); break; case CUPS_PS_START_DICT : DEBUG_printf(("4%s: <<", prefix)); break; case CUPS_PS_END_DICT : DEBUG_printf(("4%s: >>", prefix)); break; case CUPS_PS_START_PROC : DEBUG_printf(("4%s: {", prefix)); break; case CUPS_PS_END_PROC : DEBUG_printf(("4%s: }", prefix)); break; case CUPS_PS_CLEARTOMARK : DEBUG_printf(("4%s: --cleartomark--", prefix)); break; case CUPS_PS_COPY : DEBUG_printf(("4%s: --copy--", prefix)); break; case CUPS_PS_DUP : DEBUG_printf(("4%s: --dup--", prefix)); break; case CUPS_PS_INDEX : DEBUG_printf(("4%s: --index--", prefix)); break; case CUPS_PS_POP : DEBUG_printf(("4%s: --pop--", prefix)); break; case CUPS_PS_ROLL : DEBUG_printf(("4%s: --roll--", prefix)); break; case CUPS_PS_SETPAGEDEVICE : DEBUG_printf(("4%s: --setpagedevice--", prefix)); break; case CUPS_PS_STOPPED : DEBUG_printf(("4%s: --stopped--", prefix)); break; case CUPS_PS_OTHER : DEBUG_printf(("4%s: --%s--", prefix, obj->value.other)); break; } } /* * 'DEBUG_stack()' - Print a stack... */ static void DEBUG_stack(const char *prefix, /* I - Prefix string */ _cups_ps_stack_t *st) /* I - Stack */ { int c; /* Looping var */ _cups_ps_obj_t *obj; /* Current object on stack */ for (obj = st->objs, c = st->num_objs; c > 0; c --, obj ++) DEBUG_object(prefix, obj); } #endif /* DEBUG */ cups-2.4.7/cups/raster-error.c0000644000175000017500000000503614502571342016132 0ustar zdohnalzdohnal/* * Raster error handling for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "raster-private.h" #include "debug-internal.h" /* * '_cupsRasterAddError()' - Add an error message to the error buffer. */ void _cupsRasterAddError(const char *f, /* I - Printf-style error message */ ...) /* I - Additional arguments as needed */ { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ _cups_raster_error_t *buf = &cg->raster_error; /* Error buffer */ va_list ap; /* Pointer to additional arguments */ char s[2048]; /* Message string */ ssize_t bytes; /* Bytes in message string */ DEBUG_printf(("_cupsRasterAddError(f=\"%s\", ...)", f)); va_start(ap, f); bytes = vsnprintf(s, sizeof(s), f, ap); va_end(ap); if (bytes <= 0) return; DEBUG_printf(("1_cupsRasterAddError: %s", s)); bytes ++; if ((size_t)bytes >= sizeof(s)) return; if (bytes > (ssize_t)(buf->end - buf->current)) { /* * Allocate more memory... */ char *temp; /* New buffer */ size_t size; /* Size of buffer */ size = (size_t)(buf->end - buf->start + 2 * bytes + 1024); if (buf->start) temp = realloc(buf->start, size); else temp = malloc(size); if (!temp) return; /* * Update pointers... */ buf->end = temp + size; buf->current = temp + (buf->current - buf->start); buf->start = temp; } /* * Append the message to the end of the current string... */ memcpy(buf->current, s, (size_t)bytes); buf->current += bytes - 1; } /* * '_cupsRasterClearError()' - Clear the error buffer. */ void _cupsRasterClearError(void) { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ _cups_raster_error_t *buf = &cg->raster_error; /* Error buffer */ buf->current = buf->start; if (buf->start) *(buf->start) = '\0'; } /* * '_cupsRasterErrorString()' - Return the last error from a raster function. * * If there are no recent errors, NULL is returned. * * @since CUPS 1.3/macOS 10.5@ */ const char * /* O - Last error */ _cupsRasterErrorString(void) { _cups_globals_t *cg = _cupsGlobals(); /* Thread globals */ _cups_raster_error_t *buf = &cg->raster_error; /* Error buffer */ if (buf->current == buf->start) return (NULL); else return (buf->start); } cups-2.4.7/cups/pwg.h0000644000175000017500000000403414502571342014302 0ustar zdohnalzdohnal/* * PWG media API definitions for CUPS. * * Copyright 2009-2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_PWG_H_ # define _CUPS_PWG_H_ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Macros... */ /* Convert from points to hundredths of millimeters */ # define PWG_FROM_POINTS(n) (int)(((n) * 2540 + 36) / 72) /* Convert from hundredths of millimeters to points */ # define PWG_TO_POINTS(n) ((n) * 72.0 / 2540.0) /* * Types and structures... */ typedef struct pwg_map_s /**** Map element - PPD to/from PWG @exclude all@ */ { char *pwg, /* PWG media keyword */ *ppd; /* PPD option keyword */ } pwg_map_t; typedef struct pwg_media_s /**** Common media size data ****/ { const char *pwg, /* PWG 5101.1 "self describing" name */ *legacy, /* IPP/ISO legacy name */ *ppd; /* Standard Adobe PPD name */ int width, /* Width in 2540ths */ length; /* Length in 2540ths */ } pwg_media_t; typedef struct pwg_size_s /**** Size element - PPD to/from PWG @exclude all@ */ { pwg_map_t map; /* Map element */ int width, /* Width in 2540ths */ length, /* Length in 2540ths */ left, /* Left margin in 2540ths */ bottom, /* Bottom margin in 2540ths */ right, /* Right margin in 2540ths */ top; /* Top margin in 2540ths */ } pwg_size_t; /* * Functions... */ extern int pwgFormatSizeName(char *keyword, size_t keysize, const char *prefix, const char *name, int width, int length, const char *units) _CUPS_API_1_7; extern int pwgInitSize(pwg_size_t *size, ipp_t *job, int *margins_set) _CUPS_API_1_7; extern pwg_media_t *pwgMediaForLegacy(const char *legacy) _CUPS_API_1_7; extern pwg_media_t *pwgMediaForPPD(const char *ppd) _CUPS_API_1_7; extern pwg_media_t *pwgMediaForPWG(const char *pwg) _CUPS_API_1_7; extern pwg_media_t *pwgMediaForSize(int width, int length) _CUPS_API_1_7; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_PWG_H_ */ cups-2.4.7/cups/pwg-private.h0000644000175000017500000000177414502571342015762 0ustar zdohnalzdohnal/* * Private PWG media API definitions for CUPS. * * Copyright 2009-2016 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_PWG_PRIVATE_H_ # define _CUPS_PWG_PRIVATE_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Functions... */ extern void _pwgGenerateSize(char *keyword, size_t keysize, const char *prefix, const char *name, int width, int length) _CUPS_INTERNAL_MSG("Use pwgFormatSizeName instead."); extern int _pwgInitSize(pwg_size_t *size, ipp_t *job, int *margins_set) _CUPS_INTERNAL_MSG("Use pwgInitSize instead."); extern const pwg_media_t *_pwgMediaTable(size_t *num_media) _CUPS_PRIVATE; extern pwg_media_t *_pwgMediaNearSize(int width, int length, int epsilon) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_PWG_PRIVATE_H_ */ cups-2.4.7/cups/pwg-media.c0000644000175000017500000011777514502571342015373 0ustar zdohnalzdohnal/* * PWG media name API implementation for CUPS. * * Copyright © 2023 by OpenPrinting. * Copyright © 2009-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include /* * Local macros... */ #define _PWG_MEDIA_IN(p,l,a,x,y) {p, l, a, (int)(x * 2540), (int)(y * 2540)} #define _PWG_MEDIA_MM(p,l,a,x,y) {p, l, a, (int)(x * 100), (int)(y * 100)} #define _PWG_EPSILON 50 /* Matching tolerance */ /* * Local functions... */ static int pwg_compare_legacy(pwg_media_t *a, pwg_media_t *b); static int pwg_compare_pwg(pwg_media_t *a, pwg_media_t *b); static int pwg_compare_ppd(pwg_media_t *a, pwg_media_t *b); static char *pwg_format_inches(char *buf, size_t bufsize, int val); static char *pwg_format_millimeters(char *buf, size_t bufsize, int val); static int pwg_scan_measurement(const char *buf, char **bufptr, int numer, int denom); /* * Local globals... */ static pwg_media_t const cups_pwg_media[] = { /* Media size lookup table */ /* North American Standard Sheet Media Sizes */ _PWG_MEDIA_IN("na_index-3x5_3x5in", NULL, "3x5", 3, 5), _PWG_MEDIA_IN("na_personal_3.625x6.5in", NULL, "EnvPersonal", 3.625, 6.5), _PWG_MEDIA_IN("na_monarch_3.875x7.5in", "monarch-envelope", "EnvMonarch", 3.875, 7.5), _PWG_MEDIA_IN("na_number-9_3.875x8.875in", "na-number-9-envelope", "Env9", 3.875, 8.875), _PWG_MEDIA_IN("na_index-4x6_4x6in", NULL, "4x6", 4, 6), _PWG_MEDIA_IN("na_number-10_4.125x9.5in", "na-number-10-envelope", "Env10", 4.125, 9.5), _PWG_MEDIA_IN("na_a2_4.375x5.75in", NULL, "EnvA2", 4.375, 5.75), _PWG_MEDIA_IN("na_number-11_4.5x10.375in", NULL, "Env11", 4.5, 10.375), _PWG_MEDIA_IN("na_number-12_4.75x11in", NULL, "Env12", 4.75, 11), _PWG_MEDIA_IN("na_5x7_5x7in", NULL, "5x7", 5, 7), _PWG_MEDIA_IN("na_index-5x8_5x8in", NULL, "5x8", 5, 8), _PWG_MEDIA_IN("na_number-14_5x11.5in", NULL, "Env14", 5, 11.5), _PWG_MEDIA_IN("na_invoice_5.5x8.5in", "invoice", "Statement", 5.5, 8.5), _PWG_MEDIA_IN("na_index-4x6-ext_6x8in", NULL, "6x8", 6, 8), _PWG_MEDIA_IN("na_6x9_6x9in", "na-6x9-envelope", "6x9", 6, 9), _PWG_MEDIA_IN("na_c5_6.5x9.5in", NULL, "6.5x9.5", 6.5, 9.5), _PWG_MEDIA_IN("na_7x9_7x9in", "na-7x9-envelope", "7x9", 7, 9), _PWG_MEDIA_IN("na_executive_7.25x10.5in", "executive", "Executive", 7.25, 10.5), _PWG_MEDIA_IN("na_govt-letter_8x10in", "na-8x10", "8x10", 8, 10), _PWG_MEDIA_IN("na_govt-legal_8x13in", NULL, "8x13", 8, 13), _PWG_MEDIA_IN("na_quarto_8.5x10.83in", "quarto", "Quarto", 8.5, 10.83), _PWG_MEDIA_IN("na_letter_8.5x11in", "na-letter", "Letter", 8.5, 11), _PWG_MEDIA_IN("na_fanfold-eur_8.5x12in", NULL, "FanFoldGerman", 8.5, 12), _PWG_MEDIA_IN("na_letter-plus_8.5x12.69in", NULL, "LetterPlus", 8.5, 12.69), _PWG_MEDIA_IN("na_foolscap_8.5x13in", NULL, "FanFoldGermanLegal", 8.5, 13), _PWG_MEDIA_IN("na_oficio_8.5x13.4in", NULL, "Oficio", 8.5, 13.4), _PWG_MEDIA_IN("na_legal_8.5x14in", "na-legal", "Legal", 8.5, 14), _PWG_MEDIA_IN("na_super-a_8.94x14in", NULL, "SuperA", 8.94, 14), _PWG_MEDIA_IN("na_9x11_9x11in", "na-9x11-envelope", "9x11", 9, 11), _PWG_MEDIA_IN("na_arch-a_9x12in", "arch-a", "ARCHA", 9, 12), _PWG_MEDIA_IN("na_letter-extra_9.5x12in", NULL, "LetterExtra", 9.5, 12), _PWG_MEDIA_IN("na_legal-extra_9.5x15in", NULL, "LegalExtra", 9.5, 15), _PWG_MEDIA_IN("na_10x11_10x11in", NULL, "10x11", 10, 11), _PWG_MEDIA_IN("na_10x13_10x13in", "na-10x13-envelope", "10x13", 10, 13), _PWG_MEDIA_IN("na_10x14_10x14in", "na-10x14-envelope", "10x14", 10, 14), _PWG_MEDIA_IN("na_10x15_10x15in", "na-10x15-envelope", "10x15", 10, 15), _PWG_MEDIA_IN("na_11x12_11x12in", NULL, "11x12", 11, 12), _PWG_MEDIA_IN("na_edp_11x14in", NULL, "11x14", 11, 14), _PWG_MEDIA_IN("na_fanfold-us_11x14.875in", NULL, "11x14.875", 11, 14.875), _PWG_MEDIA_IN("na_11x15_11x15in", NULL, "11x15", 11, 15), _PWG_MEDIA_IN("na_ledger_11x17in", "tabloid", "Tabloid", 11, 17), _PWG_MEDIA_IN("na_eur-edp_12x14in", NULL, NULL, 12, 14), _PWG_MEDIA_IN("na_arch-b_12x18in", "arch-b", "ARCHB", 12, 18), _PWG_MEDIA_IN("na_12x19_12x19in", NULL, "12x19", 12, 19), _PWG_MEDIA_IN("na_b-plus_12x19.17in", NULL, "SuperB", 12, 19.17), _PWG_MEDIA_IN("na_super-b_13x19in", "super-b", "13x19", 13, 19), _PWG_MEDIA_IN("na_c_17x22in", "c", "AnsiC", 17, 22), _PWG_MEDIA_IN("na_arch-c_18x24in", "arch-c", "ARCHC", 18, 24), _PWG_MEDIA_IN("na_d_22x34in", "d", "AnsiD", 22, 34), _PWG_MEDIA_IN("na_arch-d_24x36in", "arch-d", "ARCHD", 24, 36), _PWG_MEDIA_IN("na_arch-e2_26x38in", NULL, "26x38", 26, 38), _PWG_MEDIA_IN("na_arch-e3_27x39in", NULL, "27x39", 27, 39), _PWG_MEDIA_IN("asme_f_28x40in", "f", "28x40", 28, 40), _PWG_MEDIA_IN("na_wide-format_30x42in", NULL, "30x42", 30, 42), _PWG_MEDIA_IN("na_e_34x44in", "e", "AnsiE", 34, 44), _PWG_MEDIA_IN("na_arch-e_36x48in", "arch-e", "ARCHE", 36, 48), _PWG_MEDIA_IN("na_f_44x68in", NULL, "AnsiF", 44, 68), /* ISO Standard Sheet Media Sizes */ _PWG_MEDIA_MM("iso_a10_26x37mm", "iso-a10", "A10", 26, 37), _PWG_MEDIA_MM("iso_a9_37x52mm", "iso-a9", "A9", 37, 52), _PWG_MEDIA_MM("iso_a8_52x74mm", "iso-a8", "A8", 52, 74), _PWG_MEDIA_MM("iso_a7_74x105mm", "iso-a7", "A7", 74, 105), _PWG_MEDIA_MM("iso_a6_105x148mm", "iso-a6", "A6", 105, 148), _PWG_MEDIA_MM("iso_a5_148x210mm", "iso-a5", "A5", 148, 210), _PWG_MEDIA_MM("iso_a5-extra_174x235mm", NULL, "A5Extra", 174, 235), _PWG_MEDIA_MM("iso_a4_210x297mm", "iso-a4", "A4", 210, 297), _PWG_MEDIA_MM("iso_a4-tab_225x297mm", NULL, "A4Tab", 225, 297), _PWG_MEDIA_MM("iso_a4-extra_235.5x322.3mm", NULL, "A4Extra", 235.5, 322.3), _PWG_MEDIA_MM("iso_a3_297x420mm", "iso-a3", "A3", 297, 420), _PWG_MEDIA_MM("iso_a4x3_297x630mm", "iso-a4x3", "A4x3", 297, 630), _PWG_MEDIA_MM("iso_a4x4_297x841mm", "iso-a4x4", "A4x4", 297, 841), _PWG_MEDIA_MM("iso_a4x5_297x1051mm", "iso-a4x5", "A4x5", 297, 1051), _PWG_MEDIA_MM("iso_a4x6_297x1261mm", "iso-a4x6", "A4x6", 297, 1261), _PWG_MEDIA_MM("iso_a4x7_297x1471mm", "iso-a4x7", "A4x7", 297, 1471), _PWG_MEDIA_MM("iso_a4x8_297x1682mm", "iso-a4x8", "A4x8", 297, 1682), _PWG_MEDIA_MM("iso_a4x9_297x1892mm", "iso-a4x9", "A4x9", 297, 1892), _PWG_MEDIA_MM("iso_a3-extra_322x445mm", "iso-a3-extra", "A3Extra", 322, 445), _PWG_MEDIA_MM("iso_a2_420x594mm", "iso-a2", "A2", 420, 594), _PWG_MEDIA_MM("iso_a3x3_420x891mm", "iso-a3x3", "A3x3", 420, 891), _PWG_MEDIA_MM("iso_a3x4_420x1189mm", "iso-a3x4", "A3x4", 420, 1189), _PWG_MEDIA_MM("iso_a3x5_420x1486mm", "iso-a3x5", "A3x6", 420, 1486), _PWG_MEDIA_MM("iso_a3x6_420x1783mm", "iso-a3x6", "A3x6", 420, 1783), _PWG_MEDIA_MM("iso_a3x7_420x2080mm", "iso-a3x7", "A3x7", 420, 2080), _PWG_MEDIA_MM("iso_a1_594x841mm", "iso-a1", "A1", 594, 841), _PWG_MEDIA_MM("iso_a2x3_594x1261mm", "iso-a2x3", "A2x3", 594, 1261), _PWG_MEDIA_MM("iso_a2x4_594x1682mm", "iso-a2x4", "A2x4", 594, 1682), _PWG_MEDIA_MM("iso_a2x5_594x2102mm", "iso-a2x5", "A2x5", 594, 2102), _PWG_MEDIA_MM("iso_a0_841x1189mm", "iso-a0", "A0", 841, 1189), _PWG_MEDIA_MM("iso_a1x3_841x1783mm", "iso-a1x3", "A1x3", 841, 1783), _PWG_MEDIA_MM("iso_a1x4_841x2378mm", "iso-a1x4", "A1x4", 841, 2378), _PWG_MEDIA_MM("iso_2a0_1189x1682mm", NULL, "1189x1682mm", 1189, 1682), _PWG_MEDIA_MM("iso_a0x3_1189x2523mm", NULL, "A0x3", 1189, 2523), _PWG_MEDIA_MM("iso_b10_31x44mm", "iso-b10", "ISOB10", 31, 44), _PWG_MEDIA_MM("iso_b9_44x62mm", "iso-b9", "ISOB9", 44, 62), _PWG_MEDIA_MM("iso_b8_62x88mm", "iso-b8", "ISOB8", 62, 88), _PWG_MEDIA_MM("iso_b7_88x125mm", "iso-b7", "ISOB7", 88, 125), /* iso_id-3 is iso_b7_88x125mm. */ _PWG_MEDIA_MM("iso_b6_125x176mm", "iso-b6", "ISOB6", 125, 176), _PWG_MEDIA_MM("iso_b6c4_125x324mm", NULL, "125x324mm", 125, 324), _PWG_MEDIA_MM("iso_b5_176x250mm", "iso-b5", "ISOB5", 176, 250), _PWG_MEDIA_MM("iso_b5-extra_201x276mm", NULL, "ISOB5Extra", 201, 276), _PWG_MEDIA_MM("iso_b4_250x353mm", "iso-b4", "ISOB4", 250, 353), _PWG_MEDIA_MM("iso_b3_353x500mm", "iso-b3", "ISOB3", 353, 500), _PWG_MEDIA_MM("iso_b2_500x707mm", "iso-b2", "ISOB2", 500, 707), _PWG_MEDIA_MM("iso_b1_707x1000mm", "iso-b1", "ISOB1", 707, 1000), _PWG_MEDIA_MM("iso_b0_1000x1414mm", "iso-b0", "ISOB0", 1000, 1414), _PWG_MEDIA_MM("iso_c10_28x40mm", "iso-c10", "EnvC10", 28, 40), _PWG_MEDIA_MM("iso_c9_40x57mm", "iso-c9", "EnvC9", 40, 57), _PWG_MEDIA_MM("iso_c8_57x81mm", "iso-c8", "EnvC8", 57, 81), _PWG_MEDIA_MM("iso_c7_81x114mm", "iso-c7", "EnvC7", 81, 114), _PWG_MEDIA_MM("iso_c7c6_81x162mm", NULL, "EnvC76", 81, 162), _PWG_MEDIA_MM("iso_c6_114x162mm", "iso-c6", "EnvC6", 114, 162), _PWG_MEDIA_MM("iso_c6c5_114x229mm", NULL, "EnvC65", 114, 229), _PWG_MEDIA_MM("iso_c5_162x229mm", "iso-c5", "EnvC5", 162, 229), _PWG_MEDIA_MM("iso_c4_229x324mm", "iso-c4", "EnvC4", 229, 324), _PWG_MEDIA_MM("iso_c3_324x458mm", "iso-c3", "EnvC3", 324, 458), _PWG_MEDIA_MM("iso_c2_458x648mm", "iso-c2", "EnvC2", 458, 648), _PWG_MEDIA_MM("iso_c1_648x917mm", "iso-c1", "EnvC1", 648, 917), _PWG_MEDIA_MM("iso_c0_917x1297mm", "iso-c0", "EnvC0", 917, 1297), _PWG_MEDIA_MM("iso_dl_110x220mm", "iso-designated", "EnvDL", 110, 220), _PWG_MEDIA_MM("iso_ra4_215x305mm", "iso-ra4", "RA4", 215, 305), _PWG_MEDIA_MM("iso_sra4_225x320mm", "iso-sra4", "SRA4", 225, 320), _PWG_MEDIA_MM("iso_ra3_305x430mm", "iso-ra3", "RA3", 305, 430), _PWG_MEDIA_MM("iso_sra3_320x450mm", "iso-sra3", "SRA3", 320, 450), _PWG_MEDIA_MM("iso_ra2_430x610mm", "iso-ra2", "RA2", 430, 610), _PWG_MEDIA_MM("iso_sra2_450x640mm", "iso-sra2", "SRA2", 450, 640), _PWG_MEDIA_MM("iso_ra1_610x860mm", "iso-ra1", "RA1", 610, 860), _PWG_MEDIA_MM("iso_sra1_640x900mm", "iso-sra1", "SRA1", 640, 900), _PWG_MEDIA_MM("iso_ra0_860x1220mm", "iso-ra0", "RA0", 860, 1220), _PWG_MEDIA_MM("iso_sra0_900x1280mm", "iso-sra0", "SRA0", 900, 1280), /* Japanese Standard Sheet Media Sizes */ _PWG_MEDIA_MM("jis_b10_32x45mm", "jis-b10", "B10", 32, 45), _PWG_MEDIA_MM("jis_b9_45x64mm", "jis-b9", "B9", 45, 64), _PWG_MEDIA_MM("jis_b8_64x91mm", "jis-b8", "B8", 64, 91), _PWG_MEDIA_MM("jis_b7_91x128mm", "jis-b7", "B7", 91, 128), _PWG_MEDIA_MM("jis_b6_128x182mm", "jis-b6", "B6", 128, 182), _PWG_MEDIA_MM("jis_b5_182x257mm", "jis-b5", "B5", 182, 257), _PWG_MEDIA_MM("jis_b4_257x364mm", "jis-b4", "B4", 257, 364), _PWG_MEDIA_MM("jis_b3_364x515mm", "jis-b3", "B3", 364, 515), _PWG_MEDIA_MM("jis_b2_515x728mm", "jis-b2", "B2", 515, 728), _PWG_MEDIA_MM("jis_b1_728x1030mm", "jis-b1", "B1", 728, 1030), _PWG_MEDIA_MM("jis_b0_1030x1456mm", "jis-b0", "B0", 1030, 1456), _PWG_MEDIA_MM("jis_exec_216x330mm", NULL, "216x330mm", 216, 330), _PWG_MEDIA_MM("jpn_kaku1_270x382mm", NULL, "EnvKaku1", 270, 382), _PWG_MEDIA_MM("jpn_kaku2_240x332mm", NULL, "EnvKaku2", 240, 332), _PWG_MEDIA_MM("jpn_kaku3_216x277mm", NULL, "EnvKaku3", 216, 277), _PWG_MEDIA_MM("jpn_kaku4_197x267mm", NULL, "EnvKaku4", 197, 267), _PWG_MEDIA_MM("jpn_kaku5_190x240mm", NULL, "EnvKaku5", 190, 240), _PWG_MEDIA_MM("jpn_kaku7_142x205mm", NULL, "EnvKaku7", 142, 205), _PWG_MEDIA_MM("jpn_kaku8_119x197mm", NULL, "EnvKaku8", 119, 197), _PWG_MEDIA_MM("jpn_chou4_90x205mm", NULL, "EnvChou4", 90, 205), _PWG_MEDIA_MM("jpn_hagaki_100x148mm", NULL, "Postcard", 100, 148), _PWG_MEDIA_MM("jpn_you4_105x235mm", NULL, "EnvYou4", 105, 235), _PWG_MEDIA_MM("jpn_you6_98x190mm", NULL, "EnvYou6", 98, 190), _PWG_MEDIA_MM("jpn_chou2_111.1x146mm", NULL, NULL, 111.1, 146), _PWG_MEDIA_MM("jpn_chou3_120x235mm", NULL, "EnvChou3", 120, 235), _PWG_MEDIA_MM("jpn_chou40_90x225mm", NULL, "EnvChou40", 90, 225), _PWG_MEDIA_MM("jpn_oufuku_148x200mm", NULL, "DoublePostcardRotated", 148, 200), _PWG_MEDIA_MM("jpn_kahu_240x322.1mm", NULL, "240x322mm", 240, 322.1), /* Chinese Standard Sheet Media Sizes */ _PWG_MEDIA_MM("prc_32k_97x151mm", NULL, "PRC32K", 97, 151), _PWG_MEDIA_MM("prc_1_102x165mm", NULL, "EnvPRC1", 102, 165), _PWG_MEDIA_MM("prc_2_102x176mm", NULL, "EnvPRC2", 102, 176), _PWG_MEDIA_MM("prc_4_110x208mm", NULL, "EnvPRC4", 110, 208), /* prc_5 is iso_dl_110x220mm. */ _PWG_MEDIA_MM("prc_8_120x309mm", NULL, "EnvPRC8", 120, 309), _PWG_MEDIA_MM("prc_6_120x320mm", NULL, NULL, 120, 320), /* prc_3 is iso_b6_125x176mm. */ /* prc_10 is iso_c3_324x458mm. */ _PWG_MEDIA_MM("prc_16k_146x215mm", NULL, "PRC16K", 146, 215), _PWG_MEDIA_MM("prc_7_160x230mm", NULL, "EnvPRC7", 160, 230), _PWG_MEDIA_MM("om_juuro-ku-kai_198x275mm", NULL, "198x275mm", 198, 275), _PWG_MEDIA_MM("om_pa-kai_267x389mm", NULL, "267x389mm", 267, 389), _PWG_MEDIA_MM("om_dai-pa-kai_275x395mm", NULL, "275x395mm", 275, 395), /* Chinese Standard Sheet Media Inch Sizes */ _PWG_MEDIA_IN("roc_16k_7.75x10.75in", NULL, "roc16k", 7.75, 10.75), _PWG_MEDIA_IN("roc_8k_10.75x15.5in", NULL, "roc8k", 10.75, 15.5), /* Other English Standard Sheet Media Sizes */ _PWG_MEDIA_IN("oe_business-card_2x3.5in", NULL, "2x3.5", 2, 3.5), _PWG_MEDIA_IN("oe_photo-l_3.5x5in", NULL, "3.5x5", 3.5, 5), _PWG_MEDIA_IN("oe_square-photo_4x4in", NULL, "4x4", 4, 4), _PWG_MEDIA_IN("oe_square-photo_5x5in", NULL, "5x5", 5, 5), _PWG_MEDIA_IN("oe_photo-s8r_8x12in", NULL, "8x12", 8, 12), _PWG_MEDIA_IN("oe_photo-10r_10x12in", NULL, "10x12", 10, 12), /* oe_photo-s10r is na_10x15_10x15in. */ _PWG_MEDIA_IN("oe_photo-12r_12x15in", NULL, "12x15", 12, 15), _PWG_MEDIA_IN("oe_12x16_12x16in", NULL, "12x16", 12, 16), _PWG_MEDIA_IN("oe_14x17_14x17in", NULL, "14x17", 14, 17), _PWG_MEDIA_IN("oe_photo-14x18_14x18in", NULL, "14x18", 14, 18), _PWG_MEDIA_IN("oe_photo-16r_16x20in", NULL, "16x20", 16, 20), _PWG_MEDIA_IN("oe_a2plus_17x24in", NULL, "17x24", 17, 24), _PWG_MEDIA_IN("oe_18x22_18x22in", NULL, "18x22", 18, 22), _PWG_MEDIA_IN("oe_photo-20r_20x24in", NULL, "20x24", 20, 24), _PWG_MEDIA_IN("oe_photo-22x28_22x28in", NULL, "22x28", 22, 28), _PWG_MEDIA_IN("oe_photo-22r_22x29.5in", NULL, "22x29.5", 22, 29.5), _PWG_MEDIA_IN("oe_photo-24x30_24x30in", NULL, "24x30", 24, 30), _PWG_MEDIA_IN("oe_photo-24r_24x31.5in", NULL, "24x31.5", 24, 31.5), _PWG_MEDIA_IN("oe_photo-30r_30x40in", NULL, "30x40", 30, 40), /* Other Metric Standard Sheet Media Sizes */ _PWG_MEDIA_MM("om_business-card_55x85mm", NULL, "55x85mm", 55, 85), _PWG_MEDIA_MM("om_business-card_55x91mm", NULL, "55x91mm", 55, 91), _PWG_MEDIA_MM("om_card_54x86mm", NULL, "54x86mm", 54, 86), _PWG_MEDIA_MM("om_square-photo_89x89mm", NULL, "89x89mm", 89, 89), _PWG_MEDIA_MM("om_dsc-photo_89x119mm", NULL, "89x119mm", 89, 119), _PWG_MEDIA_MM("om_small-photo_100x150mm", NULL, "100x150mm", 100, 150), _PWG_MEDIA_MM("om_wide-photo_100x200mm", NULL, "100x200mm", 100, 200), _PWG_MEDIA_MM("om_italian_110x230mm", NULL, "EnvItalian", 110, 230), /* om_postfix is iso_c6c5_114x229mm. */ _PWG_MEDIA_MM("om_medium-photo_130x180mm", NULL, "130x180mm", 130, 180), _PWG_MEDIA_MM("om_16k_184x260mm", NULL, "184x260mm", 184, 260), _PWG_MEDIA_MM("om_16k_195x270mm", NULL, "195x270mm", 195, 270), _PWG_MEDIA_MM("om_large-photo_200x300mm", NULL, "200x300mm", 200, 300), _PWG_MEDIA_MM("om_folio_210x330mm", "folio", "Folio", 210, 330), _PWG_MEDIA_MM("om_folio-sp_215x315mm", NULL, "FolioSP", 215, 315), _PWG_MEDIA_MM("om_invite_220x220mm", NULL, "EnvInvite", 220, 220), _PWG_MEDIA_MM("om_photo-30x40_300x400mm", NULL, "300x400mm", 300, 400), _PWG_MEDIA_MM("om_photo-30x45_300x450mm", NULL, "300x450mm", 300, 450), _PWG_MEDIA_MM("om_photo-35x46_350x460mm", NULL, "350x460mm", 350, 460), _PWG_MEDIA_MM("om_photo-40x60_400x600mm", NULL, "400x600mm", 400, 600), _PWG_MEDIA_MM("om_photo-50x75_500x750mm", NULL, "500x750mm", 500, 750), _PWG_MEDIA_MM("om_photo-50x76_500x760mm", NULL, "500x760mm", 500, 760), _PWG_MEDIA_MM("om_photo-60x90_600x900mm", NULL, "600x900mm", 600, 900), /* Disc Sizes */ _PWG_MEDIA_MM("disc_standard_40x118mm", NULL, "Disc", 118, 118) }; /* * 'pwgFormatSizeName()' - Generate a PWG self-describing media size name. * * This function generates a PWG self-describing media size name of the form * "prefix_name_WIDTHxLENGTHunits". The prefix is typically "custom" or "roll" * for user-supplied sizes but can also be "disc", "iso", "jis", "jpn", "na", * "oe", "om", "prc", or "roc". A value of @code NULL@ automatically chooses * "oe" or "om" depending on the units. * * The size name may only contain lowercase letters, numbers, "-", and ".". If * @code NULL@ is passed, the size name will contain the formatted dimensions. * * The width and length are specified in hundredths of millimeters, equivalent * to 1/100000th of a meter or 1/2540th of an inch. The width, length, and * units used for the generated size name are calculated automatically if the * units string is @code NULL@, otherwise inches ("in") or millimeters ("mm") * are used. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ pwgFormatSizeName(char *keyword, /* I - Keyword buffer */ size_t keysize, /* I - Size of keyword buffer */ const char *prefix, /* I - Prefix for PWG size or @code NULL@ for automatic */ const char *name, /* I - Size name or @code NULL@ */ int width, /* I - Width of page in 2540ths */ int length, /* I - Length of page in 2540ths */ const char *units) /* I - Units - "in", "mm", or @code NULL@ for automatic */ { char usize[12 + 1 + 12 + 3], /* Unit size: NNNNNNNNNNNNxNNNNNNNNNNNNuu */ *uptr; /* Pointer into unit size */ char *(*format)(char *, size_t, int); /* Formatting function */ /* * Range check input... */ DEBUG_printf(("pwgFormatSize(keyword=%p, keysize=" CUPS_LLFMT ", prefix=\"%s\", name=\"%s\", width=%d, length=%d, units=\"%s\")", (void *)keyword, CUPS_LLCAST keysize, prefix, name, width, length, units)); if (keyword) *keyword = '\0'; if (!keyword || keysize < 32 || width < 0 || length < 0 || (units && strcmp(units, "in") && strcmp(units, "mm"))) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid media name arguments."), 1); return (0); } if (name) { /* * Validate name... */ const char *nameptr; /* Pointer into name */ for (nameptr = name; *nameptr; nameptr ++) if (!(*nameptr >= 'a' && *nameptr <= 'z') && !(*nameptr >= '0' && *nameptr <= '9') && *nameptr != '.' && *nameptr != '-') { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid media name arguments."), 1); return (0); } } else name = usize; if (prefix && !strcmp(prefix, "disc")) width = 4000; /* Disc sizes use hardcoded 40mm inner diameter */ if (!units) { if ((width % 635) == 0 && (length % 635) == 0) { /* * Use inches since the size is a multiple of 1/4 inch. */ units = "in"; } else { /* * Use millimeters since the size is not a multiple of 1/4 inch. */ units = "mm"; } } if (!strcmp(units, "in")) { format = pwg_format_inches; if (!prefix) prefix = "oe"; } else { format = pwg_format_millimeters; if (!prefix) prefix = "om"; } /* * Format the size string... */ uptr = usize; (*format)(uptr, sizeof(usize) - (size_t)(uptr - usize), width); uptr += strlen(uptr); *uptr++ = 'x'; (*format)(uptr, sizeof(usize) - (size_t)(uptr - usize), length); uptr += strlen(uptr); /* * Safe because usize can hold up to 12 + 1 + 12 + 4 bytes. */ memcpy(uptr, units, 3); /* * Format the name... */ snprintf(keyword, keysize, "%s_%s_%s", prefix, name, usize); return (1); } /* * 'pwgInitSize()' - Initialize a pwg_size_t structure using IPP Job Template * attributes. * * This function initializes a pwg_size_t structure from an IPP "media" or * "media-col" attribute in the specified IPP message. 0 is returned if neither * attribute is found in the message or the values are not valid. * * The "margins_set" variable is initialized to 1 if any "media-xxx-margin" * member attribute was specified in the "media-col" Job Template attribute, * otherwise it is initialized to 0. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 if size was initialized, 0 otherwise */ pwgInitSize(pwg_size_t *size, /* I - Size to initialize */ ipp_t *job, /* I - Job template attributes */ int *margins_set) /* O - 1 if margins were set, 0 otherwise */ { ipp_attribute_t *media, /* media attribute */ *media_bottom_margin, /* media-bottom-margin member attribute */ *media_col, /* media-col attribute */ *media_left_margin, /* media-left-margin member attribute */ *media_right_margin, /* media-right-margin member attribute */ *media_size, /* media-size member attribute */ *media_top_margin, /* media-top-margin member attribute */ *x_dimension, /* x-dimension member attribute */ *y_dimension; /* y-dimension member attribute */ pwg_media_t *pwg; /* PWG media value */ /* * Range check input... */ if (!size || !job || !margins_set) return (0); /* * Look for media-col and then media... */ memset(size, 0, sizeof(pwg_size_t)); *margins_set = 0; if ((media_col = ippFindAttribute(job, "media-col", IPP_TAG_BEGIN_COLLECTION)) != NULL) { /* * Got media-col, look for media-size member attribute... */ if ((media_size = ippFindAttribute(media_col->values[0].collection, "media-size", IPP_TAG_BEGIN_COLLECTION)) != NULL) { /* * Got media-size, look for x-dimension and y-dimension member * attributes... */ x_dimension = ippFindAttribute(media_size->values[0].collection, "x-dimension", IPP_TAG_INTEGER); y_dimension = ippFindAttribute(media_size->values[0].collection, "y-dimension", IPP_TAG_INTEGER); if (x_dimension && y_dimension) { size->width = x_dimension->values[0].integer; size->length = y_dimension->values[0].integer; } else if (!x_dimension) /* x_dimension is missing */ { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Missing x-dimension in media-size."), 1); return (0); } else /* y_dimension must be missing */ { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Missing y-dimension in media-size."), 1); return (0); } } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Missing media-size in media-col."), 1); return (0); } /* media-*-margin */ media_bottom_margin = ippFindAttribute(media_col->values[0].collection, "media-bottom-margin", IPP_TAG_INTEGER); media_left_margin = ippFindAttribute(media_col->values[0].collection, "media-left-margin", IPP_TAG_INTEGER); media_right_margin = ippFindAttribute(media_col->values[0].collection, "media-right-margin", IPP_TAG_INTEGER); media_top_margin = ippFindAttribute(media_col->values[0].collection, "media-top-margin", IPP_TAG_INTEGER); if (media_bottom_margin && media_left_margin && media_right_margin && media_top_margin) { *margins_set = 1; size->bottom = media_bottom_margin->values[0].integer; size->left = media_left_margin->values[0].integer; size->right = media_right_margin->values[0].integer; size->top = media_top_margin->values[0].integer; } } else { if ((media = ippFindAttribute(job, "media", IPP_TAG_NAME)) == NULL) if ((media = ippFindAttribute(job, "media", IPP_TAG_KEYWORD)) == NULL) if ((media = ippFindAttribute(job, "PageSize", IPP_TAG_NAME)) == NULL) media = ippFindAttribute(job, "PageRegion", IPP_TAG_NAME); if (media && media->values[0].string.text) { const char *name = media->values[0].string.text; /* Name string */ if ((pwg = pwgMediaForPWG(name)) == NULL) { /* * Not a PWG name, try a legacy name... */ if ((pwg = pwgMediaForLegacy(name)) == NULL) { /* * Not a legacy name, try a PPD name... */ const char *suffix; /* Suffix on media string */ pwg = pwgMediaForPPD(name); if (pwg && (suffix = name + strlen(name) - 10 /* .FullBleed */) > name && !_cups_strcasecmp(suffix, ".FullBleed")) { /* * Indicate that margins are set with the default values of 0. */ *margins_set = 1; } } } if (pwg) { size->width = pwg->width; size->length = pwg->length; } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unsupported media value."), 1); return (0); } } else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Missing media or media-col."), 1); return (0); } } return (1); } /* * 'pwgMediaForLegacy()' - Find a PWG media size by ISO/IPP legacy name. * * The "name" argument specifies the legacy ISO media size name, for example * "iso-a4" or "na-letter". * * @since CUPS 1.7/macOS 10.9@ */ pwg_media_t * /* O - Matching size or NULL */ pwgMediaForLegacy(const char *legacy) /* I - Legacy size name */ { pwg_media_t key; /* Search key */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (!legacy) return (NULL); /* * Build the lookup table for PWG names as needed... */ if (!cg->leg_size_lut) { int i; /* Looping var */ pwg_media_t *size; /* Current size */ cg->leg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_legacy, NULL); for (i = (int)(sizeof(cups_pwg_media) / sizeof(cups_pwg_media[0])), size = (pwg_media_t *)cups_pwg_media; i > 0; i --, size ++) if (size->legacy) cupsArrayAdd(cg->leg_size_lut, size); } /* * Lookup the name... */ key.legacy = legacy; return ((pwg_media_t *)cupsArrayFind(cg->leg_size_lut, &key)); } /* * 'pwgMediaForPPD()' - Find a PWG media size by Adobe PPD name. * * The "ppd" argument specifies an Adobe page size name as defined in Table B.1 * of the Adobe PostScript Printer Description File Format Specification Version * 4.3. * * If the name is non-standard, the returned PWG media size is stored in * thread-local storage and is overwritten by each call to the function in the * thread. Custom names can be of the form "Custom.WIDTHxLENGTH[units]" or * "WIDTHxLENGTH[units]". * * @since CUPS 1.7/macOS 10.9@ */ pwg_media_t * /* O - Matching size or NULL */ pwgMediaForPPD(const char *ppd) /* I - PPD size name */ { pwg_media_t key, /* Search key */ *size; /* Matching size */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (!ppd) return (NULL); /* * Build the lookup table for PWG names as needed... */ if (!cg->ppd_size_lut) { int i; /* Looping var */ cg->ppd_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_ppd, NULL); for (i = (int)(sizeof(cups_pwg_media) / sizeof(cups_pwg_media[0])), size = (pwg_media_t *)cups_pwg_media; i > 0; i --, size ++) if (size->ppd) cupsArrayAdd(cg->ppd_size_lut, size); } /* * Lookup the name... */ key.ppd = ppd; if ((size = (pwg_media_t *)cupsArrayFind(cg->ppd_size_lut, &key)) == NULL) { /* * See if the name is of the form: * * [Custom.]WIDTHxLENGTH[.FullBleed] - Size in points/inches [borderless] * [Custom.]WIDTHxLENGTHcm[.FullBleed] - Size in centimeters [borderless] * [Custom.]WIDTHxLENGTHft[.FullBleed] - Size in feet [borderless] * [Custom.]WIDTHxLENGTHin[.FullBleed] - Size in inches [borderless] * [Custom.]WIDTHxLENGTHm[.FullBleed] - Size in meters [borderless] * [Custom.]WIDTHxLENGTHmm[.FullBleed] - Size in millimeters [borderless] * [Custom.]WIDTHxLENGTHpt[.FullBleed] - Size in points [borderless] */ int w, l, /* Width and length of page */ numer, /* Unit scaling factor */ denom; /* ... */ char *ptr; /* Pointer into name */ const char *units; /* Pointer to units */ int custom; /* Custom page size? */ if (!_cups_strncasecmp(ppd, "Custom.", 7)) { custom = 1; numer = 2540; denom = 72; ptr = (char *)ppd + 7; } else { custom = 0; numer = 2540; denom = 1; ptr = (char *)ppd; } /* * Find any units in the size... */ units = strchr(ptr, '.'); while (units && isdigit(units[1] & 255)) units = strchr(units + 1, '.'); if (units) units -= 2; else units = ptr + strlen(ptr) - 2; if (units > ptr) { if (isdigit(*units & 255) || *units == '.') units ++; if (!_cups_strncasecmp(units, "cm", 2)) { numer = 1000; denom = 1; } else if (!_cups_strncasecmp(units, "ft", 2)) { numer = 2540 * 12; denom = 1; } else if (!_cups_strncasecmp(units, "in", 2)) { numer = 2540; denom = 1; } else if (!_cups_strncasecmp(units, "mm", 2)) { numer = 100; denom = 1; } else if (*units == 'm' || *units == 'M') { numer = 100000; denom = 1; } else if (!_cups_strncasecmp(units, "pt", 2)) { numer = 2540; denom = 72; } } w = pwg_scan_measurement(ptr, &ptr, numer, denom); if (ptr && ptr > ppd && *ptr == 'x') { l = pwg_scan_measurement(ptr + 1, &ptr, numer, denom); if (ptr) { /* * Not a standard size; convert it to a PWG custom name of the form: * * [oe|om]_WIDTHxHEIGHTuu_WIDTHxHEIGHTuu */ char wstr[32], lstr[32]; /* Width and length as strings */ size = &(cg->pwg_media); size->width = w; size->length = l; size->pwg = cg->pwg_name; pwgFormatSizeName(cg->pwg_name, sizeof(cg->pwg_name), custom ? "custom" : NULL, custom ? ppd + 7 : NULL, size->width, size->length, NULL); if ((w % 635) == 0 && (l % 635) == 0) snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pwg_format_inches(lstr, sizeof(lstr), l)); else snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), w), pwg_format_millimeters(lstr, sizeof(lstr), l)); size->ppd = cg->ppd_name; } } } return (size); } /* * 'pwgMediaForPWG()' - Find a PWG media size by 5101.1 self-describing name. * * The "pwg" argument specifies a self-describing media size name of the form * "prefix_name_WIDTHxLENGTHunits" as defined in PWG 5101.1. * * If the name is non-standard, the returned PWG media size is stored in * thread-local storage and is overwritten by each call to the function in the * thread. * * @since CUPS 1.7/macOS 10.9@ */ pwg_media_t * /* O - Matching size or NULL */ pwgMediaForPWG(const char *pwg) /* I - PWG size name */ { char *ptr; /* Pointer into name */ pwg_media_t key, /* Search key */ *size; /* Matching size */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (!pwg) return (NULL); /* * Build the lookup table for PWG names as needed... */ if (!cg->pwg_size_lut) { int i; /* Looping var */ cg->pwg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_pwg, NULL); for (i = (int)(sizeof(cups_pwg_media) / sizeof(cups_pwg_media[0])), size = (pwg_media_t *)cups_pwg_media; i > 0; i --, size ++) cupsArrayAdd(cg->pwg_size_lut, size); } /* * Lookup the name... */ key.pwg = pwg; if ((size = (pwg_media_t *)cupsArrayFind(cg->pwg_size_lut, &key)) == NULL && (ptr = (char *)strchr(pwg, '_')) != NULL && (ptr = (char *)strchr(ptr + 1, '_')) != NULL) { /* * Try decoding the self-describing name of the form: * * class_name_WWWxHHHin[_something] * class_name_WWWxHHHmm[_something] */ int w, l; /* Width and length of page */ int numer; /* Scale factor for units */ const char *units; /* Units from size */ if ((units = strchr(ptr + 1, '_')) != NULL) units -= 2; else units = ptr + strlen(ptr) - 2; ptr ++; if (units >= ptr && (!strcmp(units, "in") || !strncmp(units, "in_", 3))) numer = 2540; else numer = 100; w = pwg_scan_measurement(ptr, &ptr, numer, 1); if (ptr && *ptr == 'x') { l = pwg_scan_measurement(ptr + 1, &ptr, numer, 1); if (ptr) { char wstr[32], lstr[32]; /* Width and length strings */ if (!strncmp(pwg, "disc_", 5)) w = l; /* Make the media size OUTERxOUTER */ size = &(cg->pwg_media); size->width = w; size->length = l; strlcpy(cg->pwg_name, pwg, sizeof(cg->pwg_name)); size->pwg = cg->pwg_name; if (numer == 100) snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), w), pwg_format_millimeters(lstr, sizeof(lstr), l)); else snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pwg_format_inches(lstr, sizeof(lstr), l)); size->ppd = cg->ppd_name; } } } return (size); } /* * 'pwgMediaForSize()' - Get the PWG media size for the given dimensions. * * The "width" and "length" are in hundredths of millimeters, equivalent to * 1/100000th of a meter or 1/2540th of an inch. * * If the dimensions are non-standard, the returned PWG media size is stored in * thread-local storage and is overwritten by each call to the function in the * thread. * * @since CUPS 1.7/macOS 10.9@ */ pwg_media_t * /* O - PWG media name */ pwgMediaForSize(int width, /* I - Width in hundredths of millimeters */ int length) /* I - Length in hundredths of millimeters */ { /* * Adobe uses a size matching algorithm with an epsilon of 5 points, which * is just about 176/2540ths... But a lot of international media sizes are * very close so use 0.5mm (50/2540ths) as the maximum delta. */ return (_pwgMediaNearSize(width, length, _PWG_EPSILON)); } /* * '_pwgMediaNearSize()' - Get the PWG media size within the given tolerance. */ pwg_media_t * /* O - PWG media name */ _pwgMediaNearSize(int width, /* I - Width in hundredths of millimeters */ int length, /* I - Length in hundredths of millimeters */ int epsilon) /* I - Match within this tolernace. PWG units */ { int i; /* Looping var */ pwg_media_t *media, /* Current media */ *best_media = NULL; /* Best match */ int dw, dl, /* Difference in width and length */ best_dw = 999, /* Best difference in width and length */ best_dl = 999; char wstr[32], lstr[32]; /* Width and length as strings */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (width <= 0 || length <= 0) return (NULL); /* * Look for a standard size... */ for (i = (int)(sizeof(cups_pwg_media) / sizeof(cups_pwg_media[0])), media = (pwg_media_t *)cups_pwg_media; i > 0; i --, media ++) { dw = abs(media->width - width); dl = abs(media->length - length); if (!dw && !dl) return (media); else if (dw <= epsilon && dl <= epsilon) { if (dw <= best_dw && dl <= best_dl) { best_media = media; best_dw = dw; best_dl = dl; } } } if (best_media) return (best_media); /* * Not a standard size; convert it to a PWG custom name of the form: * * custom_WIDTHxHEIGHTuu_WIDTHxHEIGHTuu */ pwgFormatSizeName(cg->pwg_name, sizeof(cg->pwg_name), "custom", NULL, width, length, NULL); cg->pwg_media.pwg = cg->pwg_name; cg->pwg_media.width = width; cg->pwg_media.length = length; if ((width % 635) == 0 && (length % 635) == 0) snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), width), pwg_format_inches(lstr, sizeof(lstr), length)); else snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), width), pwg_format_millimeters(lstr, sizeof(lstr), length)); cg->pwg_media.ppd = cg->ppd_name; return (&(cg->pwg_media)); } /* * '_pwgMediaTable()' - Return the internal media size table. */ const pwg_media_t * /* O - Pointer to first entry */ _pwgMediaTable(size_t *num_media) /* O - Number of entries */ { *num_media = sizeof(cups_pwg_media) / sizeof(cups_pwg_media[0]); return (cups_pwg_media); } /* * 'pwg_compare_legacy()' - Compare two sizes using the legacy names. */ static int /* O - Result of comparison */ pwg_compare_legacy(pwg_media_t *a, /* I - First size */ pwg_media_t *b) /* I - Second size */ { return (strcmp(a->legacy, b->legacy)); } /* * 'pwg_compare_ppd()' - Compare two sizes using the PPD names. */ static int /* O - Result of comparison */ pwg_compare_ppd(pwg_media_t *a, /* I - First size */ pwg_media_t *b) /* I - Second size */ { return (strcmp(a->ppd, b->ppd)); } /* * 'pwg_compare_pwg()' - Compare two sizes using the PWG names. */ static int /* O - Result of comparison */ pwg_compare_pwg(pwg_media_t *a, /* I - First size */ pwg_media_t *b) /* I - Second size */ { return (strcmp(a->pwg, b->pwg)); } /* * 'pwg_format_inches()' - Convert and format PWG units as inches. */ static char * /* O - String */ pwg_format_inches(char *buf, /* I - Buffer */ size_t bufsize, /* I - Size of buffer */ int val) /* I - Value in hundredths of millimeters */ { int integer, /* Integer portion */ fraction; /* Fractional portion */ /* * Convert hundredths of millimeters to thousandths of inches and round to * the nearest thousandth. */ integer = val / 2540; fraction = ((val % 2540) * 1000 + 1270) / 2540; if (fraction >= 1000) { integer ++; fraction -= 1000; } /* * Format as a pair of integers (avoids locale stuff), avoiding trailing * zeros... */ if (fraction == 0) snprintf(buf, bufsize, "%d", integer); else if (fraction % 10) snprintf(buf, bufsize, "%d.%03d", integer, fraction); else if (fraction % 100) snprintf(buf, bufsize, "%d.%02d", integer, fraction / 10); else snprintf(buf, bufsize, "%d.%01d", integer, fraction / 100); return (buf); } /* * 'pwg_format_millimeters()' - Convert and format PWG units as millimeters. */ static char * /* O - String */ pwg_format_millimeters(char *buf, /* I - Buffer */ size_t bufsize, /* I - Size of buffer */ int val) /* I - Value in hundredths of millimeters */ { int integer, /* Integer portion */ fraction; /* Fractional portion */ /* * Convert hundredths of millimeters to integer and fractional portions. */ integer = val / 100; fraction = val % 100; /* * Format as a pair of integers (avoids locale stuff), avoiding trailing * zeros... */ if (fraction == 0) snprintf(buf, bufsize, "%d", integer); else if (fraction % 10) snprintf(buf, bufsize, "%d.%02d", integer, fraction); else snprintf(buf, bufsize, "%d.%01d", integer, fraction / 10); return (buf); } /* * 'pwg_scan_measurement()' - Scan a measurement in inches or millimeters. * * The "factor" argument specifies the scale factor for the units to convert to * hundredths of millimeters. The returned value is NOT rounded but is an * exact conversion of the fraction value (no floating point is used). */ static int /* O - Hundredths of millimeters */ pwg_scan_measurement( const char *buf, /* I - Number string */ char **bufptr, /* O - First byte after the number */ int numer, /* I - Numerator from units */ int denom) /* I - Denominator from units */ { int value = 0, /* Measurement value */ fractional = 0, /* Fractional value */ divisor = 1, /* Fractional divisor */ digits = 10 * numer * denom; /* Maximum fractional value to read */ /* * Scan integer portion... */ while (*buf >= '0' && *buf <= '9') value = value * 10 + (*buf++) - '0'; if (*buf == '.') { /* * Scan fractional portion... */ buf ++; while (divisor < digits && *buf >= '0' && *buf <= '9') { fractional = fractional * 10 + (*buf++) - '0'; divisor *= 10; } /* * Skip trailing digits that won't contribute... */ while (*buf >= '0' && *buf <= '9') buf ++; } if (bufptr) *bufptr = (char *)buf; return (value * numer / denom + fractional * numer / denom / divisor); } cups-2.4.7/cups/ppd.h0000644000175000017500000005245114502571342014276 0ustar zdohnalzdohnal/* * PostScript Printer Description definitions for CUPS. * * THESE APIS ARE DEPRECATED. THIS HEADER AND THESE FUNCTIONS WILL BE REMOVED * IN A FUTURE RELEASE OF CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ #ifndef _CUPS_PPD_H_ # define _CUPS_PPD_H_ /* * Include necessary headers... */ # include # include "cups.h" # include "array.h" # include "file.h" # include "raster.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * PPD version... */ # define PPD_VERSION 4.3 /* Kept in sync with Adobe version number */ /* * PPD size limits (defined in Adobe spec) */ # define PPD_MAX_NAME 41 /* Maximum size of name + 1 for nul */ # define PPD_MAX_TEXT 81 /* Maximum size of text + 1 for nul */ # define PPD_MAX_LINE 256 /* Maximum size of line + 1 for nul */ /* * Types and structures... */ typedef int (*cups_interpret_cb_t)(cups_page_header2_t *header, int preferred_bits); /**** cupsRasterInterpretPPD callback function * * This function is called by * @link cupsRasterInterpretPPD@ to * validate (and update, as needed) * the page header attributes. The * "preferred_bits" argument provides * the value of the * @code cupsPreferredBitsPerColor@ * key from the PostScript page device * dictionary and is 0 if undefined. ****/ typedef enum ppd_ui_e /**** UI Types @deprecated@ ****/ { PPD_UI_BOOLEAN, /* True or False option */ PPD_UI_PICKONE, /* Pick one from a list */ PPD_UI_PICKMANY /* Pick zero or more from a list */ } ppd_ui_t; typedef enum ppd_section_e /**** Order dependency sections @deprecated@ ****/ { PPD_ORDER_ANY, /* Option code can be anywhere in the file */ PPD_ORDER_DOCUMENT, /* ... must be in the DocumentSetup section */ PPD_ORDER_EXIT, /* ... must be sent prior to the document */ PPD_ORDER_JCL, /* ... must be sent as a JCL command */ PPD_ORDER_PAGE, /* ... must be in the PageSetup section */ PPD_ORDER_PROLOG /* ... must be in the Prolog section */ } ppd_section_t; typedef enum ppd_cs_e /**** Colorspaces @deprecated@ ****/ { PPD_CS_CMYK = -4, /* CMYK colorspace */ PPD_CS_CMY, /* CMY colorspace */ PPD_CS_GRAY = 1, /* Grayscale colorspace */ PPD_CS_RGB = 3, /* RGB colorspace */ PPD_CS_RGBK, /* RGBK (K = gray) colorspace */ PPD_CS_N /* DeviceN colorspace */ } ppd_cs_t; typedef enum ppd_status_e /**** Status Codes @deprecated@ ****/ { PPD_OK = 0, /* OK */ PPD_FILE_OPEN_ERROR, /* Unable to open PPD file */ PPD_NULL_FILE, /* NULL PPD file pointer */ PPD_ALLOC_ERROR, /* Memory allocation error */ PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */ PPD_MISSING_VALUE, /* Missing value string */ PPD_INTERNAL_ERROR, /* Internal error */ PPD_BAD_OPEN_GROUP, /* Bad OpenGroup */ PPD_NESTED_OPEN_GROUP, /* OpenGroup without a CloseGroup first */ PPD_BAD_OPEN_UI, /* Bad OpenUI/JCLOpenUI */ PPD_NESTED_OPEN_UI, /* OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first */ PPD_BAD_ORDER_DEPENDENCY, /* Bad OrderDependency */ PPD_BAD_UI_CONSTRAINTS, /* Bad UIConstraints */ PPD_MISSING_ASTERISK, /* Missing asterisk in column 0 */ PPD_LINE_TOO_LONG, /* Line longer than 255 chars */ PPD_ILLEGAL_CHARACTER, /* Illegal control character */ PPD_ILLEGAL_MAIN_KEYWORD, /* Illegal main keyword string */ PPD_ILLEGAL_OPTION_KEYWORD, /* Illegal option keyword string */ PPD_ILLEGAL_TRANSLATION, /* Illegal translation string */ PPD_ILLEGAL_WHITESPACE, /* Illegal whitespace character */ PPD_BAD_CUSTOM_PARAM, /* Bad custom parameter */ PPD_MISSING_OPTION_KEYWORD, /* Missing option keyword */ PPD_BAD_VALUE, /* Bad value string */ PPD_MISSING_CLOSE_GROUP, /* Missing CloseGroup */ PPD_BAD_CLOSE_UI, /* Bad CloseUI/JCLCloseUI */ PPD_MISSING_CLOSE_UI, /* Missing CloseUI/JCLCloseUI */ PPD_MAX_STATUS /* @private@ */ } ppd_status_t; enum ppd_conform_e /**** Conformance Levels @deprecated@ ****/ { PPD_CONFORM_RELAXED, /* Relax whitespace and control char */ PPD_CONFORM_STRICT /* Require strict conformance */ }; typedef enum ppd_conform_e ppd_conform_t; /**** Conformance Levels @deprecated@ ****/ typedef struct ppd_attr_s /**** PPD Attribute Structure @deprecated@ ****/ { char name[PPD_MAX_NAME]; /* Name of attribute (cupsXYZ) */ char spec[PPD_MAX_NAME]; /* Specifier string, if any */ char text[PPD_MAX_TEXT]; /* Human-readable text, if any */ char *value; /* Value string */ } ppd_attr_t; typedef struct ppd_option_s ppd_option_t; /**** Options @deprecated@ ****/ typedef struct ppd_choice_s /**** Option choices @deprecated@ ****/ { char marked; /* 0 if not selected, 1 otherwise */ char choice[PPD_MAX_NAME]; /* Computer-readable option name */ char text[PPD_MAX_TEXT]; /* Human-readable option name */ char *code; /* Code to send for this option */ ppd_option_t *option; /* Pointer to parent option structure */ } ppd_choice_t; struct ppd_option_s /**** Options @deprecated@ ****/ { char conflicted; /* 0 if no conflicts exist, 1 otherwise */ char keyword[PPD_MAX_NAME]; /* Option keyword name ("PageSize", etc.) */ char defchoice[PPD_MAX_NAME];/* Default option choice */ char text[PPD_MAX_TEXT]; /* Human-readable text */ ppd_ui_t ui; /* Type of UI option */ ppd_section_t section; /* Section for command */ float order; /* Order number */ int num_choices; /* Number of option choices */ ppd_choice_t *choices; /* Option choices */ }; typedef struct ppd_group_s /**** Groups @deprecated@ ****/ { /**** Group text strings are limited to 39 chars + nul in order to **** preserve binary compatibility and allow applications to get **** the group's keyword name. ****/ char text[PPD_MAX_TEXT - PPD_MAX_NAME]; /* Human-readable group name */ char name[PPD_MAX_NAME]; /* Group name @since CUPS 1.1.18/macOS 10.3@ */ int num_options; /* Number of options */ ppd_option_t *options; /* Options */ int num_subgroups; /* Number of sub-groups */ struct ppd_group_s *subgroups; /* Sub-groups (max depth = 1) */ } ppd_group_t; typedef struct ppd_const_s /**** Constraints @deprecated@ ****/ { char option1[PPD_MAX_NAME]; /* First keyword */ char choice1[PPD_MAX_NAME]; /* First option/choice (blank for all) */ char option2[PPD_MAX_NAME]; /* Second keyword */ char choice2[PPD_MAX_NAME]; /* Second option/choice (blank for all) */ } ppd_const_t; typedef struct ppd_size_s /**** Page Sizes @deprecated@ ****/ { int marked; /* Page size selected? */ char name[PPD_MAX_NAME]; /* Media size option */ float width; /* Width of media in points */ float length; /* Length of media in points */ float left; /* Left printable margin in points */ float bottom; /* Bottom printable margin in points */ float right; /* Right printable margin in points */ float top; /* Top printable margin in points */ } ppd_size_t; typedef struct ppd_emul_s /**** Emulators @deprecated@ ****/ { char name[PPD_MAX_NAME]; /* Emulator name */ char *start; /* Code to switch to this emulation */ char *stop; /* Code to stop this emulation */ } ppd_emul_t; typedef struct ppd_profile_s /**** sRGB Color Profiles @deprecated@ ****/ { char resolution[PPD_MAX_NAME]; /* Resolution or "-" */ char media_type[PPD_MAX_NAME]; /* Media type or "-" */ float density; /* Ink density to use */ float gamma; /* Gamma correction to use */ float matrix[3][3]; /* Transform matrix */ } ppd_profile_t; /**** New in CUPS 1.2/macOS 10.5 ****/ typedef enum ppd_cptype_e /**** Custom Parameter Type @deprecated@ ****/ { PPD_CUSTOM_UNKNOWN = -1, /* Unknown type (error) */ PPD_CUSTOM_CURVE, /* Curve value for f(x) = x^value */ PPD_CUSTOM_INT, /* Integer number value */ PPD_CUSTOM_INVCURVE, /* Curve value for f(x) = x^(1/value) */ PPD_CUSTOM_PASSCODE, /* String of (hidden) numbers */ PPD_CUSTOM_PASSWORD, /* String of (hidden) characters */ PPD_CUSTOM_POINTS, /* Measurement value in points */ PPD_CUSTOM_REAL, /* Real number value */ PPD_CUSTOM_STRING /* String of characters */ } ppd_cptype_t; typedef union ppd_cplimit_u /**** Custom Parameter Limit @deprecated@ ****/ { float custom_curve; /* Gamma value */ int custom_int; /* Integer value */ float custom_invcurve; /* Gamma value */ int custom_passcode; /* Passcode length */ int custom_password; /* Password length */ float custom_points; /* Measurement value */ float custom_real; /* Real value */ int custom_string; /* String length */ } ppd_cplimit_t; typedef union ppd_cpvalue_u /**** Custom Parameter Value @deprecated@ ****/ { float custom_curve; /* Gamma value */ int custom_int; /* Integer value */ float custom_invcurve; /* Gamma value */ char *custom_passcode; /* Passcode value */ char *custom_password; /* Password value */ float custom_points; /* Measurement value */ float custom_real; /* Real value */ char *custom_string; /* String value */ } ppd_cpvalue_t; typedef struct ppd_cparam_s /**** Custom Parameter @deprecated@ ****/ { char name[PPD_MAX_NAME]; /* Parameter name */ char text[PPD_MAX_TEXT]; /* Human-readable text */ int order; /* Order (0 to N) */ ppd_cptype_t type; /* Parameter type */ ppd_cplimit_t minimum, /* Minimum value */ maximum; /* Maximum value */ ppd_cpvalue_t current; /* Current value */ } ppd_cparam_t; typedef struct ppd_coption_s /**** Custom Option @deprecated@ ****/ { char keyword[PPD_MAX_NAME]; /* Name of option that is being extended... */ ppd_option_t *option; /* Option that is being extended... */ int marked; /* Extended option is marked */ cups_array_t *params; /* Parameters */ } ppd_coption_t; typedef struct _ppd_cache_s _ppd_cache_t; /**** PPD cache and mapping data @deprecated@ ****/ typedef struct ppd_file_s /**** PPD File @deprecated@ ****/ { int language_level; /* Language level of device */ int color_device; /* 1 = color device, 0 = grayscale */ int variable_sizes; /* 1 = supports variable sizes, 0 = doesn't */ int accurate_screens; /* 1 = supports accurate screens, 0 = not */ int contone_only; /* 1 = continuous tone only, 0 = not */ int landscape; /* -90 or 90 */ int model_number; /* Device-specific model number */ int manual_copies; /* 1 = Copies done manually, 0 = hardware */ int throughput; /* Pages per minute */ ppd_cs_t colorspace; /* Default colorspace */ char *patches; /* Patch commands to be sent to printer */ int num_emulations; /* Number of emulations supported (no longer supported) @private@ */ ppd_emul_t *emulations; /* Emulations and the code to invoke them (no longer supported) @private@ */ char *jcl_begin; /* Start JCL commands */ char *jcl_ps; /* Enter PostScript interpreter */ char *jcl_end; /* End JCL commands */ char *lang_encoding; /* Language encoding */ char *lang_version; /* Language version (English, Spanish, etc.) */ char *modelname; /* Model name (general) */ char *ttrasterizer; /* Truetype rasterizer */ char *manufacturer; /* Manufacturer name */ char *product; /* Product name (from PS RIP/interpreter) */ char *nickname; /* Nickname (specific) */ char *shortnickname; /* Short version of nickname */ int num_groups; /* Number of UI groups */ ppd_group_t *groups; /* UI groups */ int num_sizes; /* Number of page sizes */ ppd_size_t *sizes; /* Page sizes */ float custom_min[2]; /* Minimum variable page size */ float custom_max[2]; /* Maximum variable page size */ float custom_margins[4]; /* Margins around page */ int num_consts; /* Number of UI/Non-UI constraints */ ppd_const_t *consts; /* UI/Non-UI constraints */ int num_fonts; /* Number of pre-loaded fonts */ char **fonts; /* Pre-loaded fonts */ int num_profiles; /* Number of sRGB color profiles @deprecated@ */ ppd_profile_t *profiles; /* sRGB color profiles @deprecated@ */ int num_filters; /* Number of filters */ char **filters; /* Filter strings... */ /**** New in CUPS 1.1 ****/ int flip_duplex; /* 1 = Flip page for back sides @deprecated@ */ /**** New in CUPS 1.1.19 ****/ char *protocols; /* Protocols (BCP, TBCP) string @since CUPS 1.1.19/macOS 10.3@ */ char *pcfilename; /* PCFileName string @since CUPS 1.1.19/macOS 10.3@ */ int num_attrs; /* Number of attributes @since CUPS 1.1.19/macOS 10.3@ @private@ */ int cur_attr; /* Current attribute @since CUPS 1.1.19/macOS 10.3@ @private@ */ ppd_attr_t **attrs; /* Attributes @since CUPS 1.1.19/macOS 10.3@ @private@ */ /**** New in CUPS 1.2/macOS 10.5 ****/ cups_array_t *sorted_attrs; /* Attribute lookup array @since CUPS 1.2/macOS 10.5@ @private@ */ cups_array_t *options; /* Option lookup array @since CUPS 1.2/macOS 10.5@ @private@ */ cups_array_t *coptions; /* Custom options array @since CUPS 1.2/macOS 10.5@ @private@ */ /**** New in CUPS 1.3/macOS 10.5 ****/ cups_array_t *marked; /* Marked choices @since CUPS 1.3/macOS 10.5@ @private@ */ /**** New in CUPS 1.4/macOS 10.6 ****/ cups_array_t *cups_uiconstraints; /* cupsUIConstraints @since CUPS 1.4/macOS 10.6@ @private@ */ /**** New in CUPS 1.5 ****/ _ppd_cache_t *cache; /* PPD cache and mapping data @since CUPS 1.5/macOS 10.7@ @private@ */ } ppd_file_t; /* * Prototypes... */ extern const char *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern const char *cupsGetPPD2(http_t *http, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern http_status_t cupsGetPPD3(http_t *http, const char *name, time_t *modtime, char *buffer, size_t bufsize) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern char *cupsGetServerPPD(http_t *http, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdCollect(ppd_file_t *ppd, ppd_section_t section, ppd_choice_t ***choices) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdConflicts(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdEmit(ppd_file_t *ppd, FILE *fp, ppd_section_t section) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdEmitFd(ppd_file_t *ppd, int fd, ppd_section_t section) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, const char *user, const char *title) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *keyword) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword, const char *option) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword, const char *option) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_file_t *ppdOpen(FILE *fp) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_file_t *ppdOpenFd(int fd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern float ppdPageLength(ppd_file_t *ppd, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern float ppdPageWidth(ppd_file_t *ppd, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /**** New in CUPS 1.1.19 ****/ extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /**** New in CUPS 1.1.20 ****/ extern void ppdSetConformance(ppd_conform_t c) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /**** New in CUPS 1.2 ****/ extern int cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, float min_order, ppd_choice_t ***choices) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, ppd_section_t section, int limit, float min_order) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, float min_order) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, const char *keyword) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_option_t *ppdFirstOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_option_t *ppdNextOption(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdLocalize(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_file_t *ppdOpen2(cups_file_t *fp) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /**** New in CUPS 1.3/macOS 10.5 ****/ extern const char *ppdLocalizeIPPReason(ppd_file_t *ppd, const char *reason, const char *scheme, char *buffer, size_t bufsize) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /**** New in CUPS 1.4/macOS 10.6 ****/ extern int cupsGetConflicts(ppd_file_t *ppd, const char *option, const char *choice, cups_option_t **options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int cupsResolveConflicts(ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdInstallableConflict(ppd_file_t *ppd, const char *option, const char *choice) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, const char *spec) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern const char *ppdLocalizeMarkerName(ppd_file_t *ppd, const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); extern int ppdPageSizeLimits(ppd_file_t *ppd, ppd_size_t *minimum, ppd_size_t *maximum) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_PPD_H_ */ cups-2.4.7/cups/ppd.c0000644000175000017500000024404614502571342014274 0ustar zdohnalzdohnal/* * PPD file routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers. */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * Definitions... */ #define PPD_KEYWORD 1 /* Line contained a keyword */ #define PPD_OPTION 2 /* Line contained an option name */ #define PPD_TEXT 4 /* Line contained human-readable text */ #define PPD_STRING 8 /* Line contained a string or code */ #define PPD_HASHSIZE 512 /* Size of hash */ /* * Line buffer structure... */ typedef struct _ppd_line_s { char *buffer; /* Pointer to buffer */ size_t bufsize; /* Size of the buffer */ } _ppd_line_t; /* * Local globals... */ static _cups_threadkey_t ppd_globals_key = _CUPS_THREADKEY_INITIALIZER; /* Thread local storage key */ #ifdef HAVE_PTHREAD_H static pthread_once_t ppd_globals_key_once = PTHREAD_ONCE_INIT; /* One-time initialization object */ #endif /* HAVE_PTHREAD_H */ /* * Local functions... */ static ppd_attr_t *ppd_add_attr(ppd_file_t *ppd, const char *name, const char *spec, const char *text, const char *value); static ppd_choice_t *ppd_add_choice(ppd_option_t *option, const char *name); static ppd_size_t *ppd_add_size(ppd_file_t *ppd, const char *name); static int ppd_compare_attrs(ppd_attr_t *a, ppd_attr_t *b); static int ppd_compare_choices(ppd_choice_t *a, ppd_choice_t *b); static int ppd_compare_coptions(ppd_coption_t *a, ppd_coption_t *b); static int ppd_compare_options(ppd_option_t *a, ppd_option_t *b); static int ppd_decode(char *string); static void ppd_free_filters(ppd_file_t *ppd); static void ppd_free_group(ppd_group_t *group); static void ppd_free_option(ppd_option_t *option); static ppd_coption_t *ppd_get_coption(ppd_file_t *ppd, const char *name); static ppd_cparam_t *ppd_get_cparam(ppd_coption_t *opt, const char *param, const char *text); static ppd_group_t *ppd_get_group(ppd_file_t *ppd, const char *name, const char *text, _ppd_globals_t *pg, cups_encoding_t encoding); static ppd_option_t *ppd_get_option(ppd_group_t *group, const char *name); static _ppd_globals_t *ppd_globals_alloc(void); #if defined(HAVE_PTHREAD_H) || defined(_WIN32) static void ppd_globals_free(_ppd_globals_t *g); #endif /* HAVE_PTHREAD_H || _WIN32 */ #ifdef HAVE_PTHREAD_H static void ppd_globals_init(void); #endif /* HAVE_PTHREAD_H */ static int ppd_hash_option(ppd_option_t *option); static int ppd_read(cups_file_t *fp, _ppd_line_t *line, char *keyword, char *option, char *text, char **string, int ignoreblank, _ppd_globals_t *pg); static int ppd_update_filters(ppd_file_t *ppd, _ppd_globals_t *pg); /* * 'ppdClose()' - Free all memory used by the PPD file. */ void ppdClose(ppd_file_t *ppd) /* I - PPD file record */ { int i; /* Looping var */ ppd_group_t *group; /* Current group */ char **font; /* Current font */ ppd_attr_t **attr; /* Current attribute */ ppd_coption_t *coption; /* Current custom option */ ppd_cparam_t *cparam; /* Current custom parameter */ /* * Range check arguments... */ if (!ppd) return; /* * Free all strings at the top level... */ free(ppd->lang_encoding); free(ppd->nickname); free(ppd->patches); free(ppd->emulations); free(ppd->jcl_begin); free(ppd->jcl_end); free(ppd->jcl_ps); /* * Free any UI groups, subgroups, and options... */ if (ppd->num_groups > 0) { for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) ppd_free_group(group); free(ppd->groups); } cupsArrayDelete(ppd->options); cupsArrayDelete(ppd->marked); /* * Free any page sizes... */ if (ppd->num_sizes > 0) free(ppd->sizes); /* * Free any constraints... */ if (ppd->num_consts > 0) free(ppd->consts); /* * Free any filters... */ ppd_free_filters(ppd); /* * Free any fonts... */ if (ppd->num_fonts > 0) { for (i = ppd->num_fonts, font = ppd->fonts; i > 0; i --, font ++) free(*font); free(ppd->fonts); } /* * Free any profiles... */ if (ppd->num_profiles > 0) free(ppd->profiles); /* * Free any attributes... */ if (ppd->num_attrs > 0) { for (i = ppd->num_attrs, attr = ppd->attrs; i > 0; i --, attr ++) { free((*attr)->value); free(*attr); } free(ppd->attrs); } cupsArrayDelete(ppd->sorted_attrs); /* * Free custom options... */ for (coption = (ppd_coption_t *)cupsArrayFirst(ppd->coptions); coption; coption = (ppd_coption_t *)cupsArrayNext(ppd->coptions)) { for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { switch (cparam->type) { case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : free(cparam->current.custom_string); break; default : break; } free(cparam); } cupsArrayDelete(coption->params); free(coption); } cupsArrayDelete(ppd->coptions); /* * Free constraints... */ if (ppd->cups_uiconstraints) { _ppd_cups_uiconsts_t *consts; /* Current constraints */ for (consts = (_ppd_cups_uiconsts_t *)cupsArrayFirst(ppd->cups_uiconstraints); consts; consts = (_ppd_cups_uiconsts_t *)cupsArrayNext(ppd->cups_uiconstraints)) { free(consts->constraints); free(consts); } cupsArrayDelete(ppd->cups_uiconstraints); } /* * Free any PPD cache/mapping data... */ if (ppd->cache) _ppdCacheDestroy(ppd->cache); /* * Free the whole record... */ free(ppd); } /* * 'ppdErrorString()' - Returns the text associated with a status. * * @since CUPS 1.1.19/macOS 10.3@ */ const char * /* O - Status string */ ppdErrorString(ppd_status_t status) /* I - PPD status */ { static const char * const messages[] =/* Status messages */ { _("OK"), _("Unable to open PPD file"), _("NULL PPD file pointer"), _("Memory allocation error"), _("Missing PPD-Adobe-4.x header"), _("Missing value string"), _("Internal error"), _("Bad OpenGroup"), _("OpenGroup without a CloseGroup first"), _("Bad OpenUI/JCLOpenUI"), _("OpenUI/JCLOpenUI without a CloseUI/JCLCloseUI first"), _("Bad OrderDependency"), _("Bad UIConstraints"), _("Missing asterisk in column 1"), _("Line longer than the maximum allowed (255 characters)"), _("Illegal control character"), _("Illegal main keyword string"), _("Illegal option keyword string"), _("Illegal translation string"), _("Illegal whitespace character"), _("Bad custom parameter"), _("Missing option keyword"), _("Bad value string"), _("Missing CloseGroup"), _("Bad CloseUI/JCLCloseUI"), _("Missing CloseUI/JCLCloseUI") }; if (status < PPD_OK || status >= PPD_MAX_STATUS) return (_cupsLangString(cupsLangDefault(), _("Unknown"))); else return (_cupsLangString(cupsLangDefault(), messages[status])); } /* * '_ppdGetEncoding()' - Get the CUPS encoding value for the given * LanguageEncoding. */ cups_encoding_t /* O - CUPS encoding value */ _ppdGetEncoding(const char *name) /* I - LanguageEncoding string */ { if (!_cups_strcasecmp(name, "ISOLatin1")) return (CUPS_ISO8859_1); else if (!_cups_strcasecmp(name, "ISOLatin2")) return (CUPS_ISO8859_2); else if (!_cups_strcasecmp(name, "ISOLatin5")) return (CUPS_ISO8859_5); else if (!_cups_strcasecmp(name, "JIS83-RKSJ")) return (CUPS_JIS_X0213); else if (!_cups_strcasecmp(name, "MacStandard")) return (CUPS_MAC_ROMAN); else if (!_cups_strcasecmp(name, "WindowsANSI")) return (CUPS_WINDOWS_1252); else return (CUPS_UTF8); } /* * '_ppdGlobals()' - Return a pointer to thread local storage */ _ppd_globals_t * /* O - Pointer to global data */ _ppdGlobals(void) { _ppd_globals_t *pg; /* Pointer to global data */ #ifdef HAVE_PTHREAD_H /* * Initialize the global data exactly once... */ pthread_once(&ppd_globals_key_once, ppd_globals_init); #endif /* HAVE_PTHREAD_H */ /* * See if we have allocated the data yet... */ if ((pg = (_ppd_globals_t *)_cupsThreadGetData(ppd_globals_key)) == NULL) { /* * No, allocate memory as set the pointer for the key... */ if ((pg = ppd_globals_alloc()) != NULL) _cupsThreadSetData(ppd_globals_key, pg); } /* * Return the pointer to the data... */ return (pg); } /* * 'ppdLastError()' - Return the status from the last ppdOpen*(). * * @since CUPS 1.1.19/macOS 10.3@ */ ppd_status_t /* O - Status code */ ppdLastError(int *line) /* O - Line number */ { _ppd_globals_t *pg = _ppdGlobals(); /* Global data */ if (line) *line = pg->ppd_line; return (pg->ppd_status); } /* * '_ppdOpen()' - Read a PPD file into memory. * * @since CUPS 1.2/macOS 10.5@ */ ppd_file_t * /* O - PPD file record or @code NULL@ if the PPD file could not be opened. */ _ppdOpen( cups_file_t *fp, /* I - File to read from */ _ppd_localization_t localization) /* I - Localization to load */ { int i, j, k; /* Looping vars */ _ppd_line_t line; /* Line buffer */ ppd_file_t *ppd; /* PPD file record */ ppd_group_t *group, /* Current group */ *subgroup; /* Current sub-group */ ppd_option_t *option; /* Current option */ ppd_choice_t *choice; /* Current choice */ ppd_const_t *constraint; /* Current constraint */ ppd_size_t *size; /* Current page size */ int mask; /* Line data mask */ char keyword[PPD_MAX_NAME], /* Keyword from file */ name[PPD_MAX_NAME], /* Option from file */ text[PPD_MAX_LINE], /* Human-readable text from file */ *string, /* Code/text from file */ *sptr, /* Pointer into string */ *temp, /* Temporary string pointer */ **tempfonts; /* Temporary fonts pointer */ float order; /* Order dependency number */ ppd_section_t section; /* Order dependency section */ ppd_profile_t *profile; /* Pointer to color profile */ char **filter; /* Pointer to filter */ struct lconv *loc; /* Locale data */ int ui_keyword; /* Is this line a UI keyword? */ cups_lang_t *lang; /* Language data */ cups_encoding_t encoding; /* Encoding of PPD file */ _ppd_globals_t *pg = _ppdGlobals(); /* Global data */ char custom_name[PPD_MAX_NAME]; /* CustomFoo attribute name */ ppd_attr_t *custom_attr; /* CustomFoo attribute */ char ll[7], /* Base language + '.' */ ll_CC[7]; /* Language w/country + '.' */ size_t ll_len = 0, /* Base language length */ ll_CC_len = 0; /* Language w/country length */ static const char * const ui_keywords[] = { #ifdef CUPS_USE_FULL_UI_KEYWORDS_LIST /* * Adobe defines some 41 keywords as "UI", meaning that they are * user interface elements and that they should be treated as such * even if the PPD creator doesn't use Open/CloseUI around them. * * Since this can cause previously invisible options to appear and * confuse users, the default is to only treat the PageSize and * PageRegion keywords this way. */ /* Boolean keywords */ "BlackSubstitution", "Booklet", "Collate", "ManualFeed", "MirrorPrint", "NegativePrint", "Sorter", "TraySwitch", /* PickOne keywords */ "AdvanceMedia", "BindColor", "BindEdge", "BindType", "BindWhen", "BitsPerPixel", "ColorModel", "CutMedia", "Duplex", "FoldType", "FoldWhen", "InputSlot", "JCLFrameBufferSize", "JCLResolution", "Jog", "MediaColor", "MediaType", "MediaWeight", "OutputBin", "OutputMode", "OutputOrder", "PageRegion", "PageSize", "Resolution", "Separations", "Signature", "Slipsheet", "Smoothing", "StapleLocation", "StapleOrientation", "StapleWhen", "StapleX", "StapleY" #else /* !CUPS_USE_FULL_UI_KEYWORDS_LIST */ "PageRegion", "PageSize" #endif /* CUPS_USE_FULL_UI_KEYWORDS_LIST */ }; static const char * const color_keywords[] = /* Keywords associated with color profiles */ { ".cupsICCProfile", ".ColorModel", }; DEBUG_printf(("_ppdOpen(fp=%p)", fp)); /* * Default to "OK" status... */ pg->ppd_status = PPD_OK; pg->ppd_line = 0; /* * Range check input... */ if (fp == NULL) { pg->ppd_status = PPD_NULL_FILE; return (NULL); } /* * If only loading a single localization set up the strings to match... */ if (localization == _PPD_LOCALIZATION_DEFAULT) { if ((lang = cupsLangDefault()) == NULL) return (NULL); snprintf(ll_CC, sizeof(ll_CC), "%s.", lang->language); /* * * * * Need to use a different base language for some locales... */ if (!strcmp(lang->language, "zh_HK")) { /* Traditional Chinese + variants */ strlcpy(ll_CC, "zh_TW.", sizeof(ll_CC)); strlcpy(ll, "zh_", sizeof(ll)); } else if (!strncmp(lang->language, "zh", 2)) strlcpy(ll, "zh_", sizeof(ll)); /* Any Chinese variant */ else if (!strncmp(lang->language, "jp", 2)) { /* Any Japanese variant */ strlcpy(ll_CC, "ja", sizeof(ll_CC)); strlcpy(ll, "jp", sizeof(ll)); } else if (!strncmp(lang->language, "nb", 2) || !strncmp(lang->language, "no", 2)) { /* Any Norwegian variant */ strlcpy(ll_CC, "nb", sizeof(ll_CC)); strlcpy(ll, "no", sizeof(ll)); } else snprintf(ll, sizeof(ll), "%2.2s.", lang->language); ll_CC_len = strlen(ll_CC); ll_len = strlen(ll); DEBUG_printf(("2_ppdOpen: Loading localizations matching \"%s\" and \"%s\"", ll_CC, ll)); } /* * Grab the first line and make sure it reads '*PPD-Adobe: "major.minor"'... */ line.buffer = NULL; line.bufsize = 0; mask = ppd_read(fp, &line, keyword, name, text, &string, 0, pg); DEBUG_printf(("2_ppdOpen: mask=%x, keyword=\"%s\"...", mask, keyword)); if (mask == 0 || strcmp(keyword, "PPD-Adobe") || string == NULL || string[0] != '4') { /* * Either this is not a PPD file, or it is not a 4.x PPD file. */ if (pg->ppd_status == PPD_OK) pg->ppd_status = PPD_MISSING_PPDADOBE4; free(string); free(line.buffer); return (NULL); } DEBUG_printf(("2_ppdOpen: keyword=%s, string=%p", keyword, string)); /* * Allocate memory for the PPD file record... */ if ((ppd = calloc(1, sizeof(ppd_file_t))) == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; free(string); free(line.buffer); return (NULL); } free(string); string = NULL; ppd->language_level = 2; ppd->color_device = 0; ppd->colorspace = PPD_CS_N; ppd->landscape = -90; ppd->coptions = cupsArrayNew((cups_array_func_t)ppd_compare_coptions, NULL); /* * Read lines from the PPD file and add them to the file record... */ group = NULL; subgroup = NULL; option = NULL; choice = NULL; ui_keyword = 0; encoding = CUPS_ISO8859_1; loc = localeconv(); while ((mask = ppd_read(fp, &line, keyword, name, text, &string, 1, pg)) != 0) { DEBUG_printf(("2_ppdOpen: mask=%x, keyword=\"%s\", name=\"%s\", " "text=\"%s\", string=%d chars...", mask, keyword, name, text, string ? (int)strlen(string) : 0)); if (strncmp(keyword, "Default", 7) && !string && pg->ppd_conform != PPD_CONFORM_RELAXED) { /* * Need a string value! */ pg->ppd_status = PPD_MISSING_VALUE; goto error; } else if (!string) continue; /* * Certain main keywords (as defined by the PPD spec) may be used * without the usual OpenUI/CloseUI stuff. Presumably this is just * so that Adobe wouldn't completely break compatibility with PPD * files prior to v4.0 of the spec, but it is hopelessly * inconsistent... Catch these main keywords and automatically * create the corresponding option, as needed... */ if (ui_keyword) { /* * Previous line was a UI keyword... */ option = NULL; ui_keyword = 0; } /* * If we are filtering out keyword localizations, see if this line needs to * be used... */ if (localization != _PPD_LOCALIZATION_ALL && (temp = strchr(keyword, '.')) != NULL && ((temp - keyword) == 2 || (temp - keyword) == 5) && _cups_isalpha(keyword[0]) && _cups_isalpha(keyword[1]) && (keyword[2] == '.' || (keyword[2] == '_' && _cups_isalpha(keyword[3]) && _cups_isalpha(keyword[4]) && keyword[5] == '.'))) { if (localization == _PPD_LOCALIZATION_NONE || (localization == _PPD_LOCALIZATION_DEFAULT && strncmp(ll_CC, keyword, ll_CC_len) && strncmp(ll, keyword, ll_len))) { DEBUG_printf(("2_ppdOpen: Ignoring localization: \"%s\"\n", keyword)); free(string); string = NULL; continue; } else if (localization == _PPD_LOCALIZATION_ICC_PROFILES) { /* * Only load localizations for the color profile related keywords... */ for (i = 0; i < (int)(sizeof(color_keywords) / sizeof(color_keywords[0])); i ++) { if (!_cups_strcasecmp(temp, color_keywords[i])) break; } if (i >= (int)(sizeof(color_keywords) / sizeof(color_keywords[0]))) { DEBUG_printf(("2_ppdOpen: Ignoring localization: \"%s\"\n", keyword)); free(string); string = NULL; continue; } } } if (option == NULL && (mask & (PPD_KEYWORD | PPD_OPTION | PPD_STRING)) == (PPD_KEYWORD | PPD_OPTION | PPD_STRING)) { for (i = 0; i < (int)(sizeof(ui_keywords) / sizeof(ui_keywords[0])); i ++) if (!strcmp(keyword, ui_keywords[i])) break; if (i < (int)(sizeof(ui_keywords) / sizeof(ui_keywords[0]))) { /* * Create the option in the appropriate group... */ ui_keyword = 1; DEBUG_printf(("2_ppdOpen: FOUND ADOBE UI KEYWORD %s WITHOUT OPENUI!", keyword)); if (!group) { if ((group = ppd_get_group(ppd, "General", _("General"), pg, encoding)) == NULL) goto error; DEBUG_printf(("2_ppdOpen: Adding to group %s...", group->text)); option = ppd_get_option(group, keyword); group = NULL; } else option = ppd_get_option(group, keyword); if (option == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } /* * Now fill in the initial information for the option... */ if (!strncmp(keyword, "JCL", 3)) option->section = PPD_ORDER_JCL; else option->section = PPD_ORDER_ANY; option->order = 10.0f; if (i < 8) option->ui = PPD_UI_BOOLEAN; else option->ui = PPD_UI_PICKONE; for (j = 0; j < ppd->num_attrs; j ++) if (!strncmp(ppd->attrs[j]->name, "Default", 7) && !strcmp(ppd->attrs[j]->name + 7, keyword) && ppd->attrs[j]->value) { DEBUG_printf(("2_ppdOpen: Setting Default%s to %s via attribute...", option->keyword, ppd->attrs[j]->value)); strlcpy(option->defchoice, ppd->attrs[j]->value, sizeof(option->defchoice)); break; } if (!strcmp(keyword, "PageSize")) strlcpy(option->text, _("Media Size"), sizeof(option->text)); else if (!strcmp(keyword, "MediaType")) strlcpy(option->text, _("Media Type"), sizeof(option->text)); else if (!strcmp(keyword, "InputSlot")) strlcpy(option->text, _("Media Source"), sizeof(option->text)); else if (!strcmp(keyword, "ColorModel")) strlcpy(option->text, _("Output Mode"), sizeof(option->text)); else if (!strcmp(keyword, "Resolution")) strlcpy(option->text, _("Resolution"), sizeof(option->text)); else strlcpy(option->text, keyword, sizeof(option->text)); } } if (!strcmp(keyword, "LanguageLevel")) ppd->language_level = atoi(string); else if (!strcmp(keyword, "LanguageEncoding")) { /* * Say all PPD files are UTF-8, since we convert to UTF-8... */ ppd->lang_encoding = strdup("UTF-8"); encoding = _ppdGetEncoding(string); } else if (!strcmp(keyword, "LanguageVersion")) ppd->lang_version = string; else if (!strcmp(keyword, "Manufacturer")) ppd->manufacturer = string; else if (!strcmp(keyword, "ModelName")) ppd->modelname = string; else if (!strcmp(keyword, "Protocols")) ppd->protocols = string; else if (!strcmp(keyword, "PCFileName")) ppd->pcfilename = string; else if (!strcmp(keyword, "NickName")) { if (encoding != CUPS_UTF8) { cups_utf8_t utf8[256]; /* UTF-8 version of NickName */ cupsCharsetToUTF8(utf8, string, sizeof(utf8), encoding); ppd->nickname = strdup((char *)utf8); } else ppd->nickname = strdup(string); } else if (!strcmp(keyword, "Product")) ppd->product = string; else if (!strcmp(keyword, "ShortNickName")) ppd->shortnickname = string; else if (!strcmp(keyword, "TTRasterizer")) ppd->ttrasterizer = string; else if (!strcmp(keyword, "JCLBegin")) { ppd->jcl_begin = strdup(string); ppd_decode(ppd->jcl_begin); /* Decode quoted string */ } else if (!strcmp(keyword, "JCLEnd")) { ppd->jcl_end = strdup(string); ppd_decode(ppd->jcl_end); /* Decode quoted string */ } else if (!strcmp(keyword, "JCLToPSInterpreter")) { ppd->jcl_ps = strdup(string); ppd_decode(ppd->jcl_ps); /* Decode quoted string */ } else if (!strcmp(keyword, "AccurateScreensSupport")) ppd->accurate_screens = !strcasecmp(string, "True"); else if (!strcmp(keyword, "ColorDevice")) ppd->color_device = !strcasecmp(string, "True"); else if (!strcmp(keyword, "ContoneOnly")) ppd->contone_only = !strcasecmp(string, "True"); else if (!strcmp(keyword, "cupsFlipDuplex")) ppd->flip_duplex = !strcasecmp(string, "True"); else if (!strcmp(keyword, "cupsManualCopies")) ppd->manual_copies = !strcasecmp(string, "True"); else if (!strcmp(keyword, "cupsModelNumber")) ppd->model_number = atoi(string); else if (!strcmp(keyword, "cupsColorProfile")) { if (ppd->num_profiles == 0) profile = malloc(sizeof(ppd_profile_t)); else profile = realloc(ppd->profiles, sizeof(ppd_profile_t) * (size_t)(ppd->num_profiles + 1)); if (!profile) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } ppd->profiles = profile; profile += ppd->num_profiles; ppd->num_profiles ++; memset(profile, 0, sizeof(ppd_profile_t)); strlcpy(profile->resolution, name, sizeof(profile->resolution)); strlcpy(profile->media_type, text, sizeof(profile->media_type)); profile->density = (float)_cupsStrScand(string, &sptr, loc); profile->gamma = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[0][0] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[0][1] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[0][2] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[1][0] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[1][1] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[1][2] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[2][0] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[2][1] = (float)_cupsStrScand(sptr, &sptr, loc); profile->matrix[2][2] = (float)_cupsStrScand(sptr, &sptr, loc); } else if (!strcmp(keyword, "cupsFilter")) { if (ppd->num_filters == 0) filter = malloc(sizeof(char *)); else filter = realloc(ppd->filters, sizeof(char *) * (size_t)(ppd->num_filters + 1)); if (filter == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } ppd->filters = filter; filter += ppd->num_filters; ppd->num_filters ++; /* * Make a copy of the filter string... */ *filter = strdup(string); } else if (!strcmp(keyword, "Throughput")) ppd->throughput = atoi(string); else if (!strcmp(keyword, "Font")) { /* * Add this font to the list of available fonts... */ if (ppd->num_fonts == 0) tempfonts = (char **)malloc(sizeof(char *)); else tempfonts = (char **)realloc(ppd->fonts, sizeof(char *) * (size_t)(ppd->num_fonts + 1)); if (tempfonts == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } ppd->fonts = tempfonts; ppd->fonts[ppd->num_fonts] = strdup(name); ppd->num_fonts ++; } else if (!strncmp(keyword, "ParamCustom", 11)) { ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ int corder; /* Order number */ char ctype[33], /* Data type */ cminimum[65], /* Minimum value */ cmaximum[65]; /* Maximum value */ /* * Get the custom option and parameter... */ if ((coption = ppd_get_coption(ppd, keyword + 11)) == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } if ((cparam = ppd_get_cparam(coption, name, text)) == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } if (cparam->type != PPD_CUSTOM_UNKNOWN) { pg->ppd_status = PPD_BAD_CUSTOM_PARAM; goto error; } /* * Get the parameter data... */ if (!string || sscanf(string, "%d%32s%64s%64s", &corder, ctype, cminimum, cmaximum) != 4) { pg->ppd_status = PPD_BAD_CUSTOM_PARAM; goto error; } cparam->order = corder; if (!strcmp(ctype, "curve")) { cparam->type = PPD_CUSTOM_CURVE; cparam->minimum.custom_curve = (float)_cupsStrScand(cminimum, NULL, loc); cparam->maximum.custom_curve = (float)_cupsStrScand(cmaximum, NULL, loc); } else if (!strcmp(ctype, "int")) { cparam->type = PPD_CUSTOM_INT; cparam->minimum.custom_int = atoi(cminimum); cparam->maximum.custom_int = atoi(cmaximum); } else if (!strcmp(ctype, "invcurve")) { cparam->type = PPD_CUSTOM_INVCURVE; cparam->minimum.custom_invcurve = (float)_cupsStrScand(cminimum, NULL, loc); cparam->maximum.custom_invcurve = (float)_cupsStrScand(cmaximum, NULL, loc); } else if (!strcmp(ctype, "passcode")) { cparam->type = PPD_CUSTOM_PASSCODE; cparam->minimum.custom_passcode = atoi(cminimum); cparam->maximum.custom_passcode = atoi(cmaximum); } else if (!strcmp(ctype, "password")) { cparam->type = PPD_CUSTOM_PASSWORD; cparam->minimum.custom_password = atoi(cminimum); cparam->maximum.custom_password = atoi(cmaximum); } else if (!strcmp(ctype, "points")) { cparam->type = PPD_CUSTOM_POINTS; cparam->minimum.custom_points = (float)_cupsStrScand(cminimum, NULL, loc); cparam->maximum.custom_points = (float)_cupsStrScand(cmaximum, NULL, loc); } else if (!strcmp(ctype, "real")) { cparam->type = PPD_CUSTOM_REAL; cparam->minimum.custom_real = (float)_cupsStrScand(cminimum, NULL, loc); cparam->maximum.custom_real = (float)_cupsStrScand(cmaximum, NULL, loc); } else if (!strcmp(ctype, "string")) { cparam->type = PPD_CUSTOM_STRING; cparam->minimum.custom_string = atoi(cminimum); cparam->maximum.custom_string = atoi(cmaximum); } else { pg->ppd_status = PPD_BAD_CUSTOM_PARAM; goto error; } /* * Now special-case for CustomPageSize... */ if (!strcmp(coption->keyword, "PageSize")) { if (!strcmp(name, "Width")) { ppd->custom_min[0] = cparam->minimum.custom_points; ppd->custom_max[0] = cparam->maximum.custom_points; } else if (!strcmp(name, "Height")) { ppd->custom_min[1] = cparam->minimum.custom_points; ppd->custom_max[1] = cparam->maximum.custom_points; } } } else if (!strcmp(keyword, "HWMargins")) { for (i = 0, sptr = string; i < 4; i ++) ppd->custom_margins[i] = (float)_cupsStrScand(sptr, &sptr, loc); } else if (!strncmp(keyword, "Custom", 6) && !strcmp(name, "True") && !option) { ppd_option_t *custom_option; /* Custom option */ DEBUG_puts("2_ppdOpen: Processing Custom option..."); /* * Get the option and custom option... */ if (!ppd_get_coption(ppd, keyword + 6)) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } if (option && !_cups_strcasecmp(option->keyword, keyword + 6)) custom_option = option; else custom_option = ppdFindOption(ppd, keyword + 6); if (custom_option) { /* * Add the "custom" option... */ if ((choice = ppdFindChoice(custom_option, "Custom")) == NULL) if ((choice = ppd_add_choice(custom_option, "Custom")) == NULL) { DEBUG_puts("1_ppdOpen: Unable to add Custom choice!"); pg->ppd_status = PPD_ALLOC_ERROR; goto error; } strlcpy(choice->text, text[0] ? text : _("Custom"), sizeof(choice->text)); choice->code = strdup(string); if (custom_option->section == PPD_ORDER_JCL) ppd_decode(choice->code); } /* * Now process custom page sizes specially... */ if (!strcmp(keyword, "CustomPageSize")) { /* * Add a "Custom" page size entry... */ ppd->variable_sizes = 1; ppd_add_size(ppd, "Custom"); if (option && !_cups_strcasecmp(option->keyword, "PageRegion")) custom_option = option; else custom_option = ppdFindOption(ppd, "PageRegion"); if (custom_option) { if ((choice = ppdFindChoice(custom_option, "Custom")) == NULL) if ((choice = ppd_add_choice(custom_option, "Custom")) == NULL) { DEBUG_puts("1_ppdOpen: Unable to add Custom choice!"); pg->ppd_status = PPD_ALLOC_ERROR; goto error; } strlcpy(choice->text, text[0] ? text : _("Custom"), sizeof(choice->text)); } } } else if (!strcmp(keyword, "LandscapeOrientation")) { if (!strcmp(string, "Minus90")) ppd->landscape = -90; else if (!strcmp(string, "Plus90")) ppd->landscape = 90; } else if (!strcmp(keyword, "Emulators") && string && ppd->num_emulations == 0) { /* * Issue #5562: Samsung printer drivers incorrectly use Emulators keyword * to configure themselves * * The Emulators keyword was loaded but never used by anything in CUPS, * and has no valid purpose in CUPS. The old code was removed due to a * memory leak (Issue #5475), so the following (new) code supports a single * name for the Emulators keyword, allowing these drivers to work until we * remove PPD and driver support entirely in a future version of CUPS. */ ppd->num_emulations = 1; ppd->emulations = calloc(1, sizeof(ppd_emul_t)); strlcpy(ppd->emulations[0].name, string, sizeof(ppd->emulations[0].name)); } else if (!strcmp(keyword, "JobPatchFile")) { /* * CUPS STR #3421: Check for "*JobPatchFile: int: string" */ if (isdigit(*string & 255)) { for (sptr = string + 1; isdigit(*sptr & 255); sptr ++); if (*sptr == ':') { /* * Found "*JobPatchFile: int: string"... */ pg->ppd_status = PPD_BAD_VALUE; goto error; } } if (!name[0] && pg->ppd_conform == PPD_CONFORM_STRICT) { /* * Found "*JobPatchFile: string"... */ pg->ppd_status = PPD_MISSING_OPTION_KEYWORD; goto error; } if (ppd->patches == NULL) ppd->patches = strdup(string); else { temp = realloc(ppd->patches, strlen(ppd->patches) + strlen(string) + 1); if (temp == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } ppd->patches = temp; memcpy(ppd->patches + strlen(ppd->patches), string, strlen(string) + 1); } } else if (!strcmp(keyword, "OpenUI")) { /* * Don't allow nesting of options... */ if (option && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_NESTED_OPEN_UI; goto error; } /* * Add an option record to the current sub-group, group, or file... */ DEBUG_printf(("2_ppdOpen: name=\"%s\" (%d)", name, (int)strlen(name))); if (name[0] == '*') _cups_strcpy(name, name + 1); /* Eliminate leading asterisk */ for (i = (int)strlen(name) - 1; i > 0 && _cups_isspace(name[i]); i --) name[i] = '\0'; /* Eliminate trailing spaces */ DEBUG_printf(("2_ppdOpen: OpenUI of %s in group %s...", name, group ? group->text : "(null)")); if (subgroup != NULL) option = ppd_get_option(subgroup, name); else if (group == NULL) { if ((group = ppd_get_group(ppd, "General", _("General"), pg, encoding)) == NULL) goto error; DEBUG_printf(("2_ppdOpen: Adding to group %s...", group->text)); option = ppd_get_option(group, name); group = NULL; } else option = ppd_get_option(group, name); if (option == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } /* * Now fill in the initial information for the option... */ if (string && !strcmp(string, "PickMany")) option->ui = PPD_UI_PICKMANY; else if (string && !strcmp(string, "Boolean")) option->ui = PPD_UI_BOOLEAN; else if (string && !strcmp(string, "PickOne")) option->ui = PPD_UI_PICKONE; else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_OPEN_UI; goto error; } else option->ui = PPD_UI_PICKONE; for (j = 0; j < ppd->num_attrs; j ++) if (!strncmp(ppd->attrs[j]->name, "Default", 7) && !strcmp(ppd->attrs[j]->name + 7, name) && ppd->attrs[j]->value) { DEBUG_printf(("2_ppdOpen: Setting Default%s to %s via attribute...", option->keyword, ppd->attrs[j]->value)); strlcpy(option->defchoice, ppd->attrs[j]->value, sizeof(option->defchoice)); break; } if (text[0]) cupsCharsetToUTF8((cups_utf8_t *)option->text, text, sizeof(option->text), encoding); else { if (!strcmp(name, "PageSize")) strlcpy(option->text, _("Media Size"), sizeof(option->text)); else if (!strcmp(name, "MediaType")) strlcpy(option->text, _("Media Type"), sizeof(option->text)); else if (!strcmp(name, "InputSlot")) strlcpy(option->text, _("Media Source"), sizeof(option->text)); else if (!strcmp(name, "ColorModel")) strlcpy(option->text, _("Output Mode"), sizeof(option->text)); else if (!strcmp(name, "Resolution")) strlcpy(option->text, _("Resolution"), sizeof(option->text)); else strlcpy(option->text, name, sizeof(option->text)); } option->section = PPD_ORDER_ANY; free(string); string = NULL; /* * Add a custom option choice if we have already seen a CustomFoo * attribute... */ if (!_cups_strcasecmp(name, "PageRegion")) strlcpy(custom_name, "CustomPageSize", sizeof(custom_name)); else snprintf(custom_name, sizeof(custom_name), "Custom%s", name); if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) { if ((choice = ppdFindChoice(option, "Custom")) == NULL) if ((choice = ppd_add_choice(option, "Custom")) == NULL) { DEBUG_puts("1_ppdOpen: Unable to add Custom choice!"); pg->ppd_status = PPD_ALLOC_ERROR; goto error; } strlcpy(choice->text, custom_attr->text[0] ? custom_attr->text : _("Custom"), sizeof(choice->text)); choice->code = strdup(custom_attr->value); } } else if (!strcmp(keyword, "JCLOpenUI")) { /* * Don't allow nesting of options... */ if (option && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_NESTED_OPEN_UI; goto error; } /* * Find the JCL group, and add if needed... */ group = ppd_get_group(ppd, "JCL", _("JCL"), pg, encoding); if (group == NULL) goto error; /* * Add an option record to the current JCLs... */ if (name[0] == '*') _cups_strcpy(name, name + 1); option = ppd_get_option(group, name); if (option == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } /* * Now fill in the initial information for the option... */ if (string && !strcmp(string, "PickMany")) option->ui = PPD_UI_PICKMANY; else if (string && !strcmp(string, "Boolean")) option->ui = PPD_UI_BOOLEAN; else if (string && !strcmp(string, "PickOne")) option->ui = PPD_UI_PICKONE; else { pg->ppd_status = PPD_BAD_OPEN_UI; goto error; } for (j = 0; j < ppd->num_attrs; j ++) if (!strncmp(ppd->attrs[j]->name, "Default", 7) && !strcmp(ppd->attrs[j]->name + 7, name) && ppd->attrs[j]->value) { DEBUG_printf(("2_ppdOpen: Setting Default%s to %s via attribute...", option->keyword, ppd->attrs[j]->value)); strlcpy(option->defchoice, ppd->attrs[j]->value, sizeof(option->defchoice)); break; } if (text[0]) cupsCharsetToUTF8((cups_utf8_t *)option->text, text, sizeof(option->text), encoding); else strlcpy(option->text, name, sizeof(option->text)); option->section = PPD_ORDER_JCL; group = NULL; free(string); string = NULL; /* * Add a custom option choice if we have already seen a CustomFoo * attribute... */ snprintf(custom_name, sizeof(custom_name), "Custom%s", name); if ((custom_attr = ppdFindAttr(ppd, custom_name, "True")) != NULL) { if ((choice = ppd_add_choice(option, "Custom")) == NULL) { DEBUG_puts("1_ppdOpen: Unable to add Custom choice!"); pg->ppd_status = PPD_ALLOC_ERROR; goto error; } strlcpy(choice->text, custom_attr->text[0] ? custom_attr->text : _("Custom"), sizeof(choice->text)); choice->code = strdup(custom_attr->value); } } else if (!strcmp(keyword, "CloseUI")) { if ((!option || option->section == PPD_ORDER_JCL) && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_CLOSE_UI; goto error; } if (option && (!_cups_strcasecmp(option->defchoice, "custom") || !_cups_strncasecmp(option->defchoice, "custom.", 7))) { /* * "*DefaultOption: Custom..." may set the default to a custom value * or (for a very small number of incompatible PPD files) select a * standard choice for the option, which CUPS renames to "_Custom..." * to avoid compatibility issues. See which this is... */ char tchoice[PPD_MAX_NAME]; /* Temporary choice name */ snprintf(tchoice, sizeof(tchoice), "_%s", option->defchoice); if (ppdFindChoice(option, tchoice)) { strlcpy(option->defchoice, tchoice, sizeof(option->defchoice)); DEBUG_printf(("2_ppdOpen: Reset Default%s to %s...", option->keyword, tchoice)); } } option = NULL; free(string); string = NULL; } else if (!strcmp(keyword, "JCLCloseUI")) { if ((!option || option->section != PPD_ORDER_JCL) && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_CLOSE_UI; goto error; } if (option && (!_cups_strcasecmp(option->defchoice, "custom") || !_cups_strncasecmp(option->defchoice, "custom.", 7))) { /* * "*DefaultOption: Custom..." may set the default to a custom value * or (for a very small number of incompatible PPD files) select a * standard choice for the option, which CUPS renames to "_Custom..." * to avoid compatibility issues. See which this is... */ char tchoice[PPD_MAX_NAME]; /* Temporary choice name */ snprintf(tchoice, sizeof(tchoice), "_%s", option->defchoice); if (ppdFindChoice(option, tchoice)) { strlcpy(option->defchoice, tchoice, sizeof(option->defchoice)); DEBUG_printf(("2_ppdOpen: Reset Default%s to %s...", option->keyword, tchoice)); } } option = NULL; free(string); string = NULL; } else if (!strcmp(keyword, "OpenGroup")) { /* * Open a new group... */ if (group != NULL) { pg->ppd_status = PPD_NESTED_OPEN_GROUP; goto error; } if (!string) { pg->ppd_status = PPD_BAD_OPEN_GROUP; goto error; } /* * Separate the group name from the text (name/text)... */ if ((sptr = strchr(string, '/')) != NULL) *sptr++ = '\0'; else sptr = string; /* * Fix up the text... */ ppd_decode(sptr); /* * Find/add the group... */ group = ppd_get_group(ppd, string, sptr, pg, encoding); if (group == NULL) goto error; free(string); string = NULL; } else if (!strcmp(keyword, "CloseGroup")) { group = NULL; free(string); string = NULL; } else if (!strcmp(keyword, "OrderDependency")) { order = (float)_cupsStrScand(string, &sptr, loc); if (!sptr || sscanf(sptr, "%40s%40s", name, keyword) != 2) { pg->ppd_status = PPD_BAD_ORDER_DEPENDENCY; goto error; } if (keyword[0] == '*') _cups_strcpy(keyword, keyword + 1); if (!strcmp(name, "ExitServer")) section = PPD_ORDER_EXIT; else if (!strcmp(name, "Prolog")) section = PPD_ORDER_PROLOG; else if (!strcmp(name, "DocumentSetup")) section = PPD_ORDER_DOCUMENT; else if (!strcmp(name, "PageSetup")) section = PPD_ORDER_PAGE; else if (!strcmp(name, "JCLSetup")) section = PPD_ORDER_JCL; else section = PPD_ORDER_ANY; if (option == NULL) { ppd_group_t *gtemp; /* * Only valid for Non-UI options... */ for (i = ppd->num_groups, gtemp = ppd->groups; i > 0; i --, gtemp ++) if (gtemp->text[0] == '\0') break; if (i > 0) for (i = 0; i < gtemp->num_options; i ++) if (!strcmp(keyword, gtemp->options[i].keyword)) { gtemp->options[i].section = section; gtemp->options[i].order = order; break; } } else { option->section = section; option->order = order; } free(string); string = NULL; } else if (!strncmp(keyword, "Default", 7)) { if (string == NULL) continue; /* * Drop UI text, if any, from value... */ if (strchr(string, '/') != NULL) *strchr(string, '/') = '\0'; /* * Assign the default value as appropriate... */ if (!strcmp(keyword, "DefaultColorSpace")) { /* * Set default colorspace... */ if (!strcmp(string, "CMY")) ppd->colorspace = PPD_CS_CMY; else if (!strcmp(string, "CMYK")) ppd->colorspace = PPD_CS_CMYK; else if (!strcmp(string, "RGB")) ppd->colorspace = PPD_CS_RGB; else if (!strcmp(string, "RGBK")) ppd->colorspace = PPD_CS_RGBK; else if (!strcmp(string, "N")) ppd->colorspace = PPD_CS_N; else ppd->colorspace = PPD_CS_GRAY; } else if (option && !strcmp(keyword + 7, option->keyword)) { /* * Set the default as part of the current option... */ strlcpy(option->defchoice, string, sizeof(option->defchoice)); DEBUG_printf(("2_ppdOpen: Set %s to %s...", keyword, option->defchoice)); } else { /* * Lookup option and set if it has been defined... */ ppd_option_t *toption; /* Temporary option */ if ((toption = ppdFindOption(ppd, keyword + 7)) != NULL) { if (!_cups_strcasecmp(string, "custom") || !_cups_strncasecmp(string, "custom.", 7)) { /* * "*DefaultOption: Custom..." may set the default to a custom value * or (for a very small number of incompatible PPD files) select a * standard choice for the option, which CUPS renames to "_Custom..." * to avoid compatibility issues. See which this is... */ snprintf(toption->defchoice, sizeof(toption->defchoice), "_%s", string); if (!ppdFindChoice(toption, toption->defchoice)) strlcpy(toption->defchoice, string, sizeof(toption->defchoice)); } else { strlcpy(toption->defchoice, string, sizeof(toption->defchoice)); } DEBUG_printf(("2_ppdOpen: Set %s to %s...", keyword, toption->defchoice)); } } } else if (!strcmp(keyword, "UIConstraints") || !strcmp(keyword, "NonUIConstraints")) { if (!string) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (ppd->num_consts == 0) constraint = calloc(2, sizeof(ppd_const_t)); else constraint = realloc(ppd->consts, (size_t)(ppd->num_consts + 2) * sizeof(ppd_const_t)); if (constraint == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } ppd->consts = constraint; constraint += ppd->num_consts; ppd->num_consts ++; switch (sscanf(string, "%40s%40s%40s%40s", constraint->option1, constraint->choice1, constraint->option2, constraint->choice2)) { default : /* Error */ pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; case 2 : /* Two options... */ /* * Check for broken constraints like "* Option"... */ if (pg->ppd_conform == PPD_CONFORM_STRICT && (!strcmp(constraint->option1, "*") || !strcmp(constraint->choice1, "*"))) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } /* * The following strcpy's are safe, as optionN and * choiceN are all the same size (size defined by PPD spec...) */ if (constraint->option1[0] == '*') _cups_strcpy(constraint->option1, constraint->option1 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (constraint->choice1[0] == '*') _cups_strcpy(constraint->option2, constraint->choice1 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } constraint->choice1[0] = '\0'; constraint->choice2[0] = '\0'; break; case 3 : /* Two options, one choice... */ /* * Check for broken constraints like "* Option"... */ if (pg->ppd_conform == PPD_CONFORM_STRICT && (!strcmp(constraint->option1, "*") || !strcmp(constraint->choice1, "*") || !strcmp(constraint->option2, "*"))) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } /* * The following _cups_strcpy's are safe, as optionN and * choiceN are all the same size (size defined by PPD spec...) */ if (constraint->option1[0] == '*') _cups_strcpy(constraint->option1, constraint->option1 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (constraint->choice1[0] == '*') { if (pg->ppd_conform == PPD_CONFORM_STRICT && constraint->option2[0] == '*') { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } _cups_strcpy(constraint->choice2, constraint->option2); _cups_strcpy(constraint->option2, constraint->choice1 + 1); constraint->choice1[0] = '\0'; } else { if (constraint->option2[0] == '*') _cups_strcpy(constraint->option2, constraint->option2 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } constraint->choice2[0] = '\0'; } break; case 4 : /* Two options, two choices... */ /* * Check for broken constraints like "* Option"... */ if (pg->ppd_conform == PPD_CONFORM_STRICT && (!strcmp(constraint->option1, "*") || !strcmp(constraint->choice1, "*") || !strcmp(constraint->option2, "*") || !strcmp(constraint->choice2, "*"))) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (constraint->option1[0] == '*') _cups_strcpy(constraint->option1, constraint->option1 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (pg->ppd_conform == PPD_CONFORM_STRICT && constraint->choice1[0] == '*') { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (constraint->option2[0] == '*') _cups_strcpy(constraint->option2, constraint->option2 + 1); else if (pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } if (pg->ppd_conform == PPD_CONFORM_STRICT && constraint->choice2[0] == '*') { pg->ppd_status = PPD_BAD_UI_CONSTRAINTS; goto error; } break; } /* * Don't add this one as an attribute... */ free(string); string = NULL; } else if (!strcmp(keyword, "PaperDimension")) { if (!_cups_strcasecmp(name, "custom") || !_cups_strncasecmp(name, "custom.", 7)) { char cname[PPD_MAX_NAME]; /* Rewrite with a leading underscore */ snprintf(cname, sizeof(cname), "_%s", name); strlcpy(name, cname, sizeof(name)); } if ((size = ppdPageSize(ppd, name)) == NULL) size = ppd_add_size(ppd, name); if (size == NULL) { /* * Unable to add or find size! */ pg->ppd_status = PPD_ALLOC_ERROR; goto error; } size->width = (float)_cupsStrScand(string, &sptr, loc); size->length = (float)_cupsStrScand(sptr, NULL, loc); free(string); string = NULL; } else if (!strcmp(keyword, "ImageableArea")) { if (!_cups_strcasecmp(name, "custom") || !_cups_strncasecmp(name, "custom.", 7)) { char cname[PPD_MAX_NAME]; /* Rewrite with a leading underscore */ snprintf(cname, sizeof(cname), "_%s", name); strlcpy(name, cname, sizeof(name)); } if ((size = ppdPageSize(ppd, name)) == NULL) size = ppd_add_size(ppd, name); if (size == NULL) { /* * Unable to add or find size! */ pg->ppd_status = PPD_ALLOC_ERROR; goto error; } size->left = (float)_cupsStrScand(string, &sptr, loc); size->bottom = (float)_cupsStrScand(sptr, &sptr, loc); size->right = (float)_cupsStrScand(sptr, &sptr, loc); size->top = (float)_cupsStrScand(sptr, NULL, loc); free(string); string = NULL; } else if (option != NULL && (mask & (PPD_KEYWORD | PPD_OPTION | PPD_STRING)) == (PPD_KEYWORD | PPD_OPTION | PPD_STRING) && !strcmp(keyword, option->keyword)) { DEBUG_printf(("2_ppdOpen: group=%p, subgroup=%p", group, subgroup)); if (!_cups_strcasecmp(name, "custom") || !_cups_strncasecmp(name, "custom.", 7)) { char cname[PPD_MAX_NAME]; /* Rewrite with a leading underscore */ snprintf(cname, sizeof(cname), "_%s", name); strlcpy(name, cname, sizeof(name)); } if (!strcmp(keyword, "PageSize")) { /* * Add a page size... */ if (ppdPageSize(ppd, name) == NULL) ppd_add_size(ppd, name); } /* * Add the option choice... */ if ((choice = ppd_add_choice(option, name)) == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; goto error; } if (text[0]) cupsCharsetToUTF8((cups_utf8_t *)choice->text, text, sizeof(choice->text), encoding); else if (!strcmp(name, "True")) strlcpy(choice->text, _("Yes"), sizeof(choice->text)); else if (!strcmp(name, "False")) strlcpy(choice->text, _("No"), sizeof(choice->text)); else strlcpy(choice->text, name, sizeof(choice->text)); if (option->section == PPD_ORDER_JCL) ppd_decode(string); /* Decode quoted string */ choice->code = string; string = NULL; /* Don't add as an attribute below */ } /* * Add remaining lines with keywords and string values as attributes... */ if (string && (mask & (PPD_KEYWORD | PPD_STRING)) == (PPD_KEYWORD | PPD_STRING)) ppd_add_attr(ppd, keyword, name, text, string); else free(string); } /* * Check for a missing CloseUI/JCLCloseUI... */ if (option && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_MISSING_CLOSE_UI; goto error; } /* * Check for a missing CloseGroup... */ if (group && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_MISSING_CLOSE_GROUP; goto error; } free(line.buffer); /* * Reset language preferences... */ #ifdef DEBUG if (!cupsFileEOF(fp)) DEBUG_printf(("1_ppdOpen: Premature EOF at %lu...\n", (unsigned long)cupsFileTell(fp))); #endif /* DEBUG */ if (pg->ppd_status != PPD_OK) { /* * Had an error reading the PPD file, cannot continue! */ ppdClose(ppd); return (NULL); } /* * Update the filters array as needed... */ if (!ppd_update_filters(ppd, pg)) { ppdClose(ppd); return (NULL); } /* * Create the sorted options array and set the option back-pointer for * each choice and custom option... */ ppd->options = cupsArrayNew2((cups_array_func_t)ppd_compare_options, NULL, (cups_ahash_func_t)ppd_hash_option, PPD_HASHSIZE); for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) { for (j = group->num_options, option = group->options; j > 0; j --, option ++) { ppd_coption_t *coption; /* Custom option */ cupsArrayAdd(ppd->options, option); for (k = 0; k < option->num_choices; k ++) option->choices[k].option = option; if ((coption = ppdFindCustomOption(ppd, option->keyword)) != NULL) coption->option = option; } } /* * Create an array to track the marked choices... */ ppd->marked = cupsArrayNew((cups_array_func_t)ppd_compare_choices, NULL); /* * Return the PPD file structure... */ return (ppd); /* * Common exit point for errors to save code size... */ error: free(string); free(line.buffer); ppdClose(ppd); return (NULL); } /* * 'ppdOpen()' - Read a PPD file into memory. */ ppd_file_t * /* O - PPD file record */ ppdOpen(FILE *fp) /* I - File to read from */ { ppd_file_t *ppd; /* PPD file record */ cups_file_t *cf; /* CUPS file */ /* * Reopen the stdio file as a CUPS file... */ if ((cf = cupsFileOpenFd(fileno(fp), "r")) == NULL) return (NULL); /* * Load the PPD file using the newer API... */ ppd = _ppdOpen(cf, _PPD_LOCALIZATION_DEFAULT); /* * Close the CUPS file and return the PPD... */ cupsFileClose(cf); return (ppd); } /* * 'ppdOpen2()' - Read a PPD file into memory. * * @since CUPS 1.2/macOS 10.5@ */ ppd_file_t * /* O - PPD file record or @code NULL@ if the PPD file could not be opened. */ ppdOpen2(cups_file_t *fp) /* I - File to read from */ { return _ppdOpen(fp, _PPD_LOCALIZATION_DEFAULT); } /* * 'ppdOpenFd()' - Read a PPD file into memory. */ ppd_file_t * /* O - PPD file record or @code NULL@ if the PPD file could not be opened. */ ppdOpenFd(int fd) /* I - File to read from */ { cups_file_t *fp; /* CUPS file pointer */ ppd_file_t *ppd; /* PPD file record */ _ppd_globals_t *pg = _ppdGlobals(); /* Global data */ /* * Set the line number to 0... */ pg->ppd_line = 0; /* * Range check input... */ if (fd < 0) { pg->ppd_status = PPD_NULL_FILE; return (NULL); } /* * Try to open the file and parse it... */ if ((fp = cupsFileOpenFd(fd, "r")) != NULL) { ppd = ppdOpen2(fp); cupsFileClose(fp); } else { pg->ppd_status = PPD_FILE_OPEN_ERROR; ppd = NULL; } return (ppd); } /* * '_ppdOpenFile()' - Read a PPD file into memory. */ ppd_file_t * /* O - PPD file record or @code NULL@ if the PPD file could not be opened. */ _ppdOpenFile(const char *filename, /* I - File to read from */ _ppd_localization_t localization) /* I - Localization to load */ { cups_file_t *fp; /* File pointer */ ppd_file_t *ppd; /* PPD file record */ _ppd_globals_t *pg = _ppdGlobals(); /* Global data */ /* * Set the line number to 0... */ pg->ppd_line = 0; /* * Range check input... */ if (filename == NULL) { pg->ppd_status = PPD_NULL_FILE; return (NULL); } /* * Try to open the file and parse it... */ if ((fp = cupsFileOpen(filename, "r")) != NULL) { ppd = _ppdOpen(fp, localization); cupsFileClose(fp); } else { pg->ppd_status = PPD_FILE_OPEN_ERROR; ppd = NULL; } return (ppd); } /* * 'ppdOpenFile()' - Read a PPD file into memory. */ ppd_file_t * /* O - PPD file record or @code NULL@ if the PPD file could not be opened. */ ppdOpenFile(const char *filename) /* I - File to read from */ { return _ppdOpenFile(filename, _PPD_LOCALIZATION_DEFAULT); } /* * 'ppdSetConformance()' - Set the conformance level for PPD files. * * @since CUPS 1.1.20/macOS 10.4@ */ void ppdSetConformance(ppd_conform_t c) /* I - Conformance level */ { _ppd_globals_t *pg = _ppdGlobals(); /* Global data */ pg->ppd_conform = c; } /* * 'ppd_add_attr()' - Add an attribute to the PPD data. */ static ppd_attr_t * /* O - New attribute */ ppd_add_attr(ppd_file_t *ppd, /* I - PPD file data */ const char *name, /* I - Attribute name */ const char *spec, /* I - Specifier string, if any */ const char *text, /* I - Text string, if any */ const char *value) /* I - Value of attribute */ { ppd_attr_t **ptr, /* New array */ *temp; /* New attribute */ /* * Range check input... */ if (ppd == NULL || name == NULL || spec == NULL) return (NULL); /* * Create the array as needed... */ if (!ppd->sorted_attrs) ppd->sorted_attrs = cupsArrayNew((cups_array_func_t)ppd_compare_attrs, NULL); /* * Allocate memory for the new attribute... */ if (ppd->num_attrs == 0) ptr = malloc(sizeof(ppd_attr_t *)); else ptr = realloc(ppd->attrs, (size_t)(ppd->num_attrs + 1) * sizeof(ppd_attr_t *)); if (ptr == NULL) return (NULL); ppd->attrs = ptr; ptr += ppd->num_attrs; if ((temp = calloc(1, sizeof(ppd_attr_t))) == NULL) return (NULL); *ptr = temp; ppd->num_attrs ++; /* * Copy data over... */ if (!_cups_strcasecmp(spec, "custom") || !_cups_strncasecmp(spec, "custom.", 7)) { temp->spec[0] = '_'; strlcpy(temp->spec + 1, spec, sizeof(temp->spec) - 1); } else { strlcpy(temp->spec, spec, sizeof(temp->spec)); } strlcpy(temp->name, name, sizeof(temp->name)); strlcpy(temp->text, text, sizeof(temp->text)); temp->value = (char *)value; /* * Add the attribute to the sorted array... */ cupsArrayAdd(ppd->sorted_attrs, temp); /* * Return the attribute... */ return (temp); } /* * 'ppd_add_choice()' - Add a choice to an option. */ static ppd_choice_t * /* O - Named choice */ ppd_add_choice(ppd_option_t *option, /* I - Option */ const char *name) /* I - Name of choice */ { ppd_choice_t *choice; /* Choice */ if (option->num_choices == 0) choice = malloc(sizeof(ppd_choice_t)); else choice = realloc(option->choices, sizeof(ppd_choice_t) * (size_t)(option->num_choices + 1)); if (choice == NULL) return (NULL); option->choices = choice; choice += option->num_choices; option->num_choices ++; memset(choice, 0, sizeof(ppd_choice_t)); strlcpy(choice->choice, name, sizeof(choice->choice)); return (choice); } /* * 'ppd_add_size()' - Add a page size. */ static ppd_size_t * /* O - Named size */ ppd_add_size(ppd_file_t *ppd, /* I - PPD file */ const char *name) /* I - Name of size */ { ppd_size_t *size; /* Size */ if (ppd->num_sizes == 0) size = malloc(sizeof(ppd_size_t)); else size = realloc(ppd->sizes, sizeof(ppd_size_t) * (size_t)(ppd->num_sizes + 1)); if (size == NULL) return (NULL); ppd->sizes = size; size += ppd->num_sizes; ppd->num_sizes ++; memset(size, 0, sizeof(ppd_size_t)); strlcpy(size->name, name, sizeof(size->name)); return (size); } /* * 'ppd_compare_attrs()' - Compare two attributes. */ static int /* O - Result of comparison */ ppd_compare_attrs(ppd_attr_t *a, /* I - First attribute */ ppd_attr_t *b) /* I - Second attribute */ { return (_cups_strcasecmp(a->name, b->name)); } /* * 'ppd_compare_choices()' - Compare two choices... */ static int /* O - Result of comparison */ ppd_compare_choices(ppd_choice_t *a, /* I - First choice */ ppd_choice_t *b) /* I - Second choice */ { return (strcmp(a->option->keyword, b->option->keyword)); } /* * 'ppd_compare_coptions()' - Compare two custom options. */ static int /* O - Result of comparison */ ppd_compare_coptions(ppd_coption_t *a, /* I - First option */ ppd_coption_t *b) /* I - Second option */ { return (_cups_strcasecmp(a->keyword, b->keyword)); } /* * 'ppd_compare_options()' - Compare two options. */ static int /* O - Result of comparison */ ppd_compare_options(ppd_option_t *a, /* I - First option */ ppd_option_t *b) /* I - Second option */ { return (_cups_strcasecmp(a->keyword, b->keyword)); } /* * 'ppd_decode()' - Decode a string value... */ static int /* O - Length of decoded string */ ppd_decode(char *string) /* I - String to decode */ { char *inptr, /* Input pointer */ *outptr; /* Output pointer */ inptr = string; outptr = string; while (*inptr != '\0') if (*inptr == '<' && isxdigit(inptr[1] & 255)) { /* * Convert hex to 8-bit values... */ inptr ++; while (isxdigit(*inptr & 255)) { if (_cups_isalpha(*inptr)) *outptr = (char)((tolower(*inptr) - 'a' + 10) << 4); else *outptr = (char)((*inptr - '0') << 4); inptr ++; if (!isxdigit(*inptr & 255)) break; if (_cups_isalpha(*inptr)) *outptr |= (char)(tolower(*inptr) - 'a' + 10); else *outptr |= (char)(*inptr - '0'); inptr ++; outptr ++; } while (*inptr != '>' && *inptr != '\0') inptr ++; while (*inptr == '>') inptr ++; } else *outptr++ = *inptr++; *outptr = '\0'; return ((int)(outptr - string)); } /* * 'ppd_free_filters()' - Free the filters array. */ static void ppd_free_filters(ppd_file_t *ppd) /* I - PPD file */ { int i; /* Looping var */ char **filter; /* Current filter */ if (ppd->num_filters > 0) { for (i = ppd->num_filters, filter = ppd->filters; i > 0; i --, filter ++) free(*filter); free(ppd->filters); ppd->num_filters = 0; ppd->filters = NULL; } } /* * 'ppd_free_group()' - Free a single UI group. */ static void ppd_free_group(ppd_group_t *group) /* I - Group to free */ { int i; /* Looping var */ ppd_option_t *option; /* Current option */ ppd_group_t *subgroup; /* Current sub-group */ if (group->num_options > 0) { for (i = group->num_options, option = group->options; i > 0; i --, option ++) ppd_free_option(option); free(group->options); } if (group->num_subgroups > 0) { for (i = group->num_subgroups, subgroup = group->subgroups; i > 0; i --, subgroup ++) ppd_free_group(subgroup); free(group->subgroups); } } /* * 'ppd_free_option()' - Free a single option. */ static void ppd_free_option(ppd_option_t *option) /* I - Option to free */ { int i; /* Looping var */ ppd_choice_t *choice; /* Current choice */ if (option->num_choices > 0) { for (i = option->num_choices, choice = option->choices; i > 0; i --, choice ++) { free(choice->code); } free(option->choices); } } /* * 'ppd_get_coption()' - Get a custom option record. */ static ppd_coption_t * /* O - Custom option... */ ppd_get_coption(ppd_file_t *ppd, /* I - PPD file */ const char *name) /* I - Name of option */ { ppd_coption_t *copt; /* New custom option */ /* * See if the option already exists... */ if ((copt = ppdFindCustomOption(ppd, name)) != NULL) return (copt); /* * Not found, so create the custom option record... */ if ((copt = calloc(1, sizeof(ppd_coption_t))) == NULL) return (NULL); strlcpy(copt->keyword, name, sizeof(copt->keyword)); copt->params = cupsArrayNew((cups_array_func_t)NULL, NULL); cupsArrayAdd(ppd->coptions, copt); /* * Return the new record... */ return (copt); } /* * 'ppd_get_cparam()' - Get a custom parameter record. */ static ppd_cparam_t * /* O - Extended option... */ ppd_get_cparam(ppd_coption_t *opt, /* I - PPD file */ const char *param, /* I - Name of parameter */ const char *text) /* I - Human-readable text */ { ppd_cparam_t *cparam; /* New custom parameter */ /* * See if the parameter already exists... */ if ((cparam = ppdFindCustomParam(opt, param)) != NULL) return (cparam); /* * Not found, so create the custom parameter record... */ if ((cparam = calloc(1, sizeof(ppd_cparam_t))) == NULL) return (NULL); cparam->type = PPD_CUSTOM_UNKNOWN; strlcpy(cparam->name, param, sizeof(cparam->name)); strlcpy(cparam->text, text[0] ? text : param, sizeof(cparam->text)); /* * Add this record to the array... */ cupsArrayAdd(opt->params, cparam); /* * Return the new record... */ return (cparam); } /* * 'ppd_get_group()' - Find or create the named group as needed. */ static ppd_group_t * /* O - Named group */ ppd_get_group(ppd_file_t *ppd, /* I - PPD file */ const char *name, /* I - Name of group */ const char *text, /* I - Text for group */ _ppd_globals_t *pg, /* I - Global data */ cups_encoding_t encoding) /* I - Encoding of text */ { int i; /* Looping var */ ppd_group_t *group; /* Group */ DEBUG_printf(("7ppd_get_group(ppd=%p, name=\"%s\", text=\"%s\", cg=%p)", ppd, name, text, pg)); for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) if (!strcmp(group->name, name)) break; if (i == 0) { DEBUG_printf(("8ppd_get_group: Adding group %s...", name)); if (pg->ppd_conform == PPD_CONFORM_STRICT && strlen(text) >= sizeof(group->text)) { pg->ppd_status = PPD_ILLEGAL_TRANSLATION; return (NULL); } if (ppd->num_groups == 0) group = malloc(sizeof(ppd_group_t)); else group = realloc(ppd->groups, (size_t)(ppd->num_groups + 1) * sizeof(ppd_group_t)); if (group == NULL) { pg->ppd_status = PPD_ALLOC_ERROR; return (NULL); } ppd->groups = group; group += ppd->num_groups; ppd->num_groups ++; memset(group, 0, sizeof(ppd_group_t)); strlcpy(group->name, name, sizeof(group->name)); cupsCharsetToUTF8((cups_utf8_t *)group->text, text, sizeof(group->text), encoding); } return (group); } /* * 'ppd_get_option()' - Find or create the named option as needed. */ static ppd_option_t * /* O - Named option */ ppd_get_option(ppd_group_t *group, /* I - Group */ const char *name) /* I - Name of option */ { int i; /* Looping var */ ppd_option_t *option; /* Option */ DEBUG_printf(("7ppd_get_option(group=%p(\"%s\"), name=\"%s\")", group, group->name, name)); for (i = group->num_options, option = group->options; i > 0; i --, option ++) if (!strcmp(option->keyword, name)) break; if (i == 0) { if (group->num_options == 0) option = malloc(sizeof(ppd_option_t)); else option = realloc(group->options, (size_t)(group->num_options + 1) * sizeof(ppd_option_t)); if (option == NULL) return (NULL); group->options = option; option += group->num_options; group->num_options ++; memset(option, 0, sizeof(ppd_option_t)); strlcpy(option->keyword, name, sizeof(option->keyword)); } return (option); } /* * 'ppd_globals_alloc()' - Allocate and initialize global data. */ static _ppd_globals_t * /* O - Pointer to global data */ ppd_globals_alloc(void) { return ((_ppd_globals_t *)calloc(1, sizeof(_ppd_globals_t))); } /* * 'ppd_globals_free()' - Free global data. */ #if defined(HAVE_PTHREAD_H) || defined(_WIN32) static void ppd_globals_free(_ppd_globals_t *pg) /* I - Pointer to global data */ { free(pg); } #endif /* HAVE_PTHREAD_H || _WIN32 */ #ifdef HAVE_PTHREAD_H /* * 'ppd_globals_init()' - Initialize per-thread globals... */ static void ppd_globals_init(void) { /* * Register the global data for this thread... */ pthread_key_create(&ppd_globals_key, (void (*)(void *))ppd_globals_free); } #endif /* HAVE_PTHREAD_H */ /* * 'ppd_hash_option()' - Generate a hash of the option name... */ static int /* O - Hash index */ ppd_hash_option(ppd_option_t *option) /* I - Option */ { int hash = 0; /* Hash index */ const char *k; /* Pointer into keyword */ for (hash = option->keyword[0], k = option->keyword + 1; *k;) hash = (int)(33U * (unsigned)hash) + *k++; return (hash & 511); } /* * 'ppd_read()' - Read a line from a PPD file, skipping comment lines as * necessary. */ static int /* O - Bitmask of fields read */ ppd_read(cups_file_t *fp, /* I - File to read from */ _ppd_line_t *line, /* I - Line buffer */ char *keyword, /* O - Keyword from line */ char *option, /* O - Option from line */ char *text, /* O - Human-readable text from line */ char **string, /* O - Code/string data */ int ignoreblank, /* I - Ignore blank lines? */ _ppd_globals_t *pg) /* I - Global data */ { int ch, /* Character from file */ col, /* Column in line */ colon, /* Colon seen? */ endquote, /* Waiting for an end quote */ mask, /* Mask to be returned */ startline, /* Start line */ textlen; /* Length of text */ char *keyptr, /* Keyword pointer */ *optptr, /* Option pointer */ *textptr, /* Text pointer */ *strptr, /* Pointer into string */ *lineptr; /* Current position in line buffer */ /* * Now loop until we have a valid line... */ *string = NULL; col = 0; startline = pg->ppd_line + 1; if (!line->buffer) { line->bufsize = 1024; line->buffer = malloc(1024); if (!line->buffer) return (0); } do { /* * Read the line... */ lineptr = line->buffer; endquote = 0; colon = 0; while ((ch = cupsFileGetChar(fp)) != EOF) { if (lineptr >= (line->buffer + line->bufsize - 1)) { /* * Expand the line buffer... */ char *temp; /* Temporary line pointer */ line->bufsize += 1024; if (line->bufsize > 262144) { /* * Don't allow lines longer than 256k! */ pg->ppd_line = startline; pg->ppd_status = PPD_LINE_TOO_LONG; return (0); } temp = realloc(line->buffer, line->bufsize); if (!temp) { pg->ppd_line = startline; pg->ppd_status = PPD_LINE_TOO_LONG; return (0); } lineptr = temp + (lineptr - line->buffer); line->buffer = temp; } if (ch == '\r' || ch == '\n') { /* * Line feed or carriage return... */ pg->ppd_line ++; col = 0; if (ch == '\r') { /* * Check for a trailing line feed... */ if ((ch = cupsFilePeekChar(fp)) == EOF) { ch = '\n'; break; } if (ch == 0x0a) cupsFileGetChar(fp); } if (lineptr == line->buffer && ignoreblank) continue; /* Skip blank lines */ ch = '\n'; if (!endquote) /* Continue for multi-line text */ break; *lineptr++ = '\n'; } else if (ch < ' ' && ch != '\t' && pg->ppd_conform == PPD_CONFORM_STRICT) { /* * Other control characters... */ pg->ppd_line = startline; pg->ppd_status = PPD_ILLEGAL_CHARACTER; return (0); } else if (ch != 0x1a) { /* * Any other character... */ *lineptr++ = (char)ch; col ++; if (col > (PPD_MAX_LINE - 1)) { /* * Line is too long... */ pg->ppd_line = startline; pg->ppd_status = PPD_LINE_TOO_LONG; return (0); } if (ch == ':' && strncmp(line->buffer, "*%", 2) != 0) colon = 1; if (ch == '\"' && colon) endquote = !endquote; } } if (endquote) { /* * Didn't finish this quoted string... */ while ((ch = cupsFileGetChar(fp)) != EOF) if (ch == '\"') break; else if (ch == '\r' || ch == '\n') { pg->ppd_line ++; col = 0; if (ch == '\r') { /* * Check for a trailing line feed... */ if ((ch = cupsFilePeekChar(fp)) == EOF) break; if (ch == 0x0a) cupsFileGetChar(fp); } } else if (ch < ' ' && ch != '\t' && pg->ppd_conform == PPD_CONFORM_STRICT) { /* * Other control characters... */ pg->ppd_line = startline; pg->ppd_status = PPD_ILLEGAL_CHARACTER; return (0); } else if (ch != 0x1a) { col ++; if (col > (PPD_MAX_LINE - 1)) { /* * Line is too long... */ pg->ppd_line = startline; pg->ppd_status = PPD_LINE_TOO_LONG; return (0); } } } if (ch != '\n') { /* * Didn't finish this line... */ while ((ch = cupsFileGetChar(fp)) != EOF) if (ch == '\r' || ch == '\n') { /* * Line feed or carriage return... */ pg->ppd_line ++; col = 0; if (ch == '\r') { /* * Check for a trailing line feed... */ if ((ch = cupsFilePeekChar(fp)) == EOF) break; if (ch == 0x0a) cupsFileGetChar(fp); } break; } else if (ch < ' ' && ch != '\t' && pg->ppd_conform == PPD_CONFORM_STRICT) { /* * Other control characters... */ pg->ppd_line = startline; pg->ppd_status = PPD_ILLEGAL_CHARACTER; return (0); } else if (ch != 0x1a) { col ++; if (col > (PPD_MAX_LINE - 1)) { /* * Line is too long... */ pg->ppd_line = startline; pg->ppd_status = PPD_LINE_TOO_LONG; return (0); } } } if (lineptr > line->buffer && lineptr[-1] == '\n') lineptr --; *lineptr = '\0'; DEBUG_printf(("9ppd_read: LINE=\"%s\"", line->buffer)); /* * The dynamically created PPDs for older style macOS * drivers include a large blob of data inserted as comments * at the end of the file. As an optimization we can stop * reading the PPD when we get to the start of this data. */ if (!strcmp(line->buffer, "*%APLWORKSET START")) return (0); if (ch == EOF && lineptr == line->buffer) return (0); /* * Now parse it... */ mask = 0; lineptr = line->buffer + 1; keyword[0] = '\0'; option[0] = '\0'; text[0] = '\0'; *string = NULL; if ((!line->buffer[0] || /* Blank line */ !strncmp(line->buffer, "*%", 2) || /* Comment line */ !strcmp(line->buffer, "*End")) && /* End of multi-line string */ ignoreblank) /* Ignore these? */ { startline = pg->ppd_line + 1; continue; } if (!strcmp(line->buffer, "*")) /* (Bad) comment line */ { if (pg->ppd_conform == PPD_CONFORM_RELAXED) { startline = pg->ppd_line + 1; continue; } else { pg->ppd_line = startline; pg->ppd_status = PPD_ILLEGAL_MAIN_KEYWORD; return (0); } } if (line->buffer[0] != '*') /* All lines start with an asterisk */ { /* * Allow lines consisting of just whitespace... */ for (lineptr = line->buffer; *lineptr; lineptr ++) if (*lineptr && !_cups_isspace(*lineptr)) break; if (*lineptr) { pg->ppd_status = PPD_MISSING_ASTERISK; return (0); } else if (ignoreblank) continue; else return (0); } /* * Get a keyword... */ keyptr = keyword; while (*lineptr && *lineptr != ':' && !_cups_isspace(*lineptr)) { if (*lineptr <= ' ' || *lineptr > 126 || *lineptr == '/' || (keyptr - keyword) >= (PPD_MAX_NAME - 1)) { pg->ppd_status = PPD_ILLEGAL_MAIN_KEYWORD; return (0); } *keyptr++ = *lineptr++; } *keyptr = '\0'; if (!strcmp(keyword, "End")) continue; mask |= PPD_KEYWORD; if (_cups_isspace(*lineptr)) { /* * Get an option name... */ while (_cups_isspace(*lineptr)) lineptr ++; optptr = option; while (*lineptr && !_cups_isspace(*lineptr) && *lineptr != ':' && *lineptr != '/') { if (*lineptr <= ' ' || *lineptr > 126 || (optptr - option) >= (PPD_MAX_NAME - 1)) { pg->ppd_status = PPD_ILLEGAL_OPTION_KEYWORD; return (0); } *optptr++ = *lineptr++; } *optptr = '\0'; if (_cups_isspace(*lineptr) && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_ILLEGAL_WHITESPACE; return (0); } while (_cups_isspace(*lineptr)) lineptr ++; mask |= PPD_OPTION; if (*lineptr == '/') { /* * Get human-readable text... */ lineptr ++; textptr = text; while (*lineptr != '\0' && *lineptr != '\n' && *lineptr != ':') { if (((unsigned char)*lineptr < ' ' && *lineptr != '\t') || (textptr - text) >= (PPD_MAX_LINE - 1)) { pg->ppd_status = PPD_ILLEGAL_TRANSLATION; return (0); } *textptr++ = *lineptr++; } *textptr = '\0'; textlen = ppd_decode(text); if (textlen > PPD_MAX_TEXT && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_ILLEGAL_TRANSLATION; return (0); } mask |= PPD_TEXT; } } if (_cups_isspace(*lineptr) && pg->ppd_conform == PPD_CONFORM_STRICT) { pg->ppd_status = PPD_ILLEGAL_WHITESPACE; return (0); } while (_cups_isspace(*lineptr)) lineptr ++; if (*lineptr == ':') { /* * Get string after trimming leading and trailing whitespace... */ lineptr ++; while (_cups_isspace(*lineptr)) lineptr ++; strptr = lineptr + strlen(lineptr) - 1; while (strptr >= lineptr && _cups_isspace(*strptr)) *strptr-- = '\0'; if (*strptr == '\"') { /* * Quoted string by itself, remove quotes... */ *strptr = '\0'; lineptr ++; } *string = strdup(lineptr); mask |= PPD_STRING; } } while (mask == 0); return (mask); } /* * 'ppd_update_filters()' - Update the filters array as needed. * * This function re-populates the filters array with cupsFilter2 entries that * have been stripped of the destination MIME media types and any maxsize hints. * * (All for backwards-compatibility) */ static int /* O - 1 on success, 0 on failure */ ppd_update_filters(ppd_file_t *ppd, /* I - PPD file */ _ppd_globals_t *pg) /* I - Global data */ { ppd_attr_t *attr; /* Current cupsFilter2 value */ char srcsuper[16], /* Source MIME media type */ srctype[256], dstsuper[16], /* Destination MIME media type */ dsttype[256], *ptr, /* Pointer into command to run */ buffer[1024], /* Re-written cupsFilter value */ **filter; /* Current filter */ int cost; /* Cost of filter */ char program[1024] = { 0 }; /* Command to run */ DEBUG_printf(("4ppd_update_filters(ppd=%p, cg=%p)", ppd, pg)); /* * See if we have any cupsFilter2 lines... */ if ((attr = ppdFindAttr(ppd, "cupsFilter2", NULL)) == NULL) { DEBUG_puts("5ppd_update_filters: No cupsFilter2 keywords present."); return (1); } /* * Yes, free the cupsFilter-defined filters and re-build... */ ppd_free_filters(ppd); do { /* * Parse the cupsFilter2 string: * * src/type dst/type cost program * src/type dst/type cost maxsize(n) program */ DEBUG_printf(("5ppd_update_filters: cupsFilter2=\"%s\"", attr->value)); if (sscanf(attr->value, "%15[^/]/%255s%*[ \t]%15[^/]/%255s%d%*[ \t]%1023[^\n]", srcsuper, srctype, dstsuper, dsttype, &cost, program) != 6) { DEBUG_puts("5ppd_update_filters: Bad cupsFilter2 line."); pg->ppd_status = PPD_BAD_VALUE; return (0); } DEBUG_printf(("5ppd_update_filters: srcsuper=\"%s\", srctype=\"%s\", " "dstsuper=\"%s\", dsttype=\"%s\", cost=%d, program=\"%s\"", srcsuper, srctype, dstsuper, dsttype, cost, program)); if (!strncmp(program, "maxsize(", 8) && (ptr = strchr(program + 8, ')')) != NULL) { DEBUG_puts("5ppd_update_filters: Found maxsize(nnn)."); ptr ++; while (_cups_isspace(*ptr)) ptr ++; _cups_strcpy(program, ptr); DEBUG_printf(("5ppd_update_filters: New program=\"%s\"", program)); } /* * Convert to cupsFilter format: * * src/type cost program */ snprintf(buffer, sizeof(buffer), "%s/%s %d %s", srcsuper, srctype, cost, program); DEBUG_printf(("5ppd_update_filters: Adding \"%s\".", buffer)); /* * Add a cupsFilter-compatible string to the filters array. */ if (ppd->num_filters == 0) filter = malloc(sizeof(char *)); else filter = realloc(ppd->filters, sizeof(char *) * (size_t)(ppd->num_filters + 1)); if (filter == NULL) { DEBUG_puts("5ppd_update_filters: Out of memory."); pg->ppd_status = PPD_ALLOC_ERROR; return (0); } ppd->filters = filter; filter += ppd->num_filters; ppd->num_filters ++; *filter = strdup(buffer); } while ((attr = ppdFindNextAttr(ppd, "cupsFilter2", NULL)) != NULL); DEBUG_puts("5ppd_update_filters: Completed OK."); return (1); } cups-2.4.7/cups/ppd-util.c0000644000175000017500000004322114502571342015237 0ustar zdohnalzdohnal/* * PPD utilities for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ /* * Local functions... */ static int cups_get_printer_uri(http_t *http, const char *name, char *host, int hostsize, int *port, char *resource, int resourcesize); /* * 'cupsGetPPD()' - Get the PPD file for a printer on the default server. * * For classes, @code cupsGetPPD@ returns the PPD file for the first printer * in the class. * * The returned filename is stored in a static buffer and is overwritten with * each call to @code cupsGetPPD@ or @link cupsGetPPD2@. The caller "owns" the * file that is created and must @code unlink@ the returned filename. */ const char * /* O - Filename for PPD file */ cupsGetPPD(const char *name) /* I - Destination name */ { _ppd_globals_t *pg = _ppdGlobals(); /* Pointer to library globals */ time_t modtime = 0; /* Modification time */ /* * Return the PPD file... */ pg->ppd_filename[0] = '\0'; if (cupsGetPPD3(CUPS_HTTP_DEFAULT, name, &modtime, pg->ppd_filename, sizeof(pg->ppd_filename)) == HTTP_STATUS_OK) return (pg->ppd_filename); else return (NULL); } /* * 'cupsGetPPD2()' - Get the PPD file for a printer from the specified server. * * For classes, @code cupsGetPPD2@ returns the PPD file for the first printer * in the class. * * The returned filename is stored in a static buffer and is overwritten with * each call to @link cupsGetPPD@ or @code cupsGetPPD2@. The caller "owns" the * file that is created and must @code unlink@ the returned filename. * * @since CUPS 1.1.21/macOS 10.4@ */ const char * /* O - Filename for PPD file */ cupsGetPPD2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name) /* I - Destination name */ { _ppd_globals_t *pg = _ppdGlobals(); /* Pointer to library globals */ time_t modtime = 0; /* Modification time */ pg->ppd_filename[0] = '\0'; if (cupsGetPPD3(http, name, &modtime, pg->ppd_filename, sizeof(pg->ppd_filename)) == HTTP_STATUS_OK) return (pg->ppd_filename); else return (NULL); } /* * 'cupsGetPPD3()' - Get the PPD file for a printer on the specified * server if it has changed. * * The "modtime" parameter contains the modification time of any * locally-cached content and is updated with the time from the PPD file on * the server. * * The "buffer" parameter contains the local PPD filename. If it contains * the empty string, a new temporary file is created, otherwise the existing * file will be overwritten as needed. The caller "owns" the file that is * created and must @code unlink@ the returned filename. * * On success, @code HTTP_STATUS_OK@ is returned for a new PPD file and * @code HTTP_STATUS_NOT_MODIFIED@ if the existing PPD file is up-to-date. Any other * status is an error. * * For classes, @code cupsGetPPD3@ returns the PPD file for the first printer * in the class. * * @since CUPS 1.4/macOS 10.6@ */ http_status_t /* O - HTTP status */ cupsGetPPD3(http_t *http, /* I - HTTP connection or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Destination name */ time_t *modtime, /* IO - Modification time */ char *buffer, /* I - Filename buffer */ size_t bufsize) /* I - Size of filename buffer */ { int http_port; /* Port number */ char http_hostname[HTTP_MAX_HOST]; /* Hostname associated with connection */ http_t *http2; /* Alternate HTTP connection */ int fd; /* PPD file */ char localhost[HTTP_MAX_URI],/* Local hostname */ hostname[HTTP_MAX_URI], /* Hostname */ resource[HTTP_MAX_URI]; /* Resource name */ int port; /* Port number */ http_status_t status; /* HTTP status from server */ char tempfile[1024] = ""; /* Temporary filename */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * Range check input... */ DEBUG_printf(("cupsGetPPD3(http=%p, name=\"%s\", modtime=%p(%d), buffer=%p, " "bufsize=%d)", http, name, modtime, modtime ? (int)*modtime : 0, buffer, (int)bufsize)); if (!name) { DEBUG_puts("2cupsGetPPD3: No printer name, returning NULL."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No printer name"), 1); return (HTTP_STATUS_NOT_ACCEPTABLE); } if (!modtime) { DEBUG_puts("2cupsGetPPD3: No modtime, returning NULL."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No modification time"), 1); return (HTTP_STATUS_NOT_ACCEPTABLE); } if (!buffer || bufsize <= 1) { DEBUG_puts("2cupsGetPPD3: No filename buffer, returning NULL."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad filename buffer"), 1); return (HTTP_STATUS_NOT_ACCEPTABLE); } #ifndef _WIN32 /* * See if the PPD file is available locally... */ if (http) httpGetHostname(http, hostname, sizeof(hostname)); else { strlcpy(hostname, cupsServer(), sizeof(hostname)); if (hostname[0] == '/') strlcpy(hostname, "localhost", sizeof(hostname)); } if (!_cups_strcasecmp(hostname, "localhost")) { char ppdname[1024]; /* PPD filename */ struct stat ppdinfo; /* PPD file information */ snprintf(ppdname, sizeof(ppdname), "%s/ppd/%s.ppd", cg->cups_serverroot, name); if (!stat(ppdname, &ppdinfo) && !access(ppdname, R_OK)) { /* * OK, the file exists and is readable, use it! */ if (buffer[0]) { DEBUG_printf(("2cupsGetPPD3: Using filename \"%s\".", buffer)); unlink(buffer); if (symlink(ppdname, buffer) && errno != EEXIST) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); return (HTTP_STATUS_SERVER_ERROR); } } else { int tries; /* Number of tries */ const char *tmpdir; /* TMPDIR environment variable */ struct timeval curtime; /* Current time */ #ifdef __APPLE__ /* * On macOS and iOS, the TMPDIR environment variable is not always the * best location to place temporary files due to sandboxing. Instead, * the confstr function should be called to get the proper per-user, * per-process TMPDIR value. */ #ifdef _CS_DARWIN_USER_TEMP_DIR char tmppath[1024]; /* Temporary directory */ #endif /* _CS_DARWIN_USER_TEMP_DIR */ if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) tmpdir = NULL; if (!tmpdir) { #ifdef _CS_DARWIN_USER_TEMP_DIR if (confstr(_CS_DARWIN_USER_TEMP_DIR, tmppath, sizeof(tmppath))) tmpdir = tmppath; else #endif /* _CS_DARWIN_USER_TEMP_DIR */ tmpdir = "/private/tmp"; /* OS X 10.4 and earlier */ } #else /* * Previously we put root temporary files in the default CUPS temporary * directory under /var/spool/cups. However, since the scheduler cleans * out temporary files there and runs independently of the user apps, we * don't want to use it unless specifically told to by cupsd. */ if ((tmpdir = getenv("TMPDIR")) == NULL) tmpdir = "/tmp"; #endif /* __APPLE__ */ DEBUG_printf(("2cupsGetPPD3: tmpdir=\"%s\".", tmpdir)); /* * Make the temporary name using the specified directory... */ tries = 0; do { /* * Get the current time of day... */ gettimeofday(&curtime, NULL); /* * Format a string using the hex time values... */ snprintf(buffer, bufsize, "%s/%08lx%05lx", tmpdir, (unsigned long)curtime.tv_sec, (unsigned long)curtime.tv_usec); /* * Try to make a symlink... */ if (!symlink(ppdname, buffer)) break; DEBUG_printf(("2cupsGetPPD3: Symlink \"%s\" to \"%s\" failed: %s", ppdname, buffer, strerror(errno))); tries ++; } while (tries < 1000); if (tries >= 1000) { DEBUG_puts("2cupsGetPPD3: Unable to symlink after 1000 tries, returning error."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); return (HTTP_STATUS_SERVER_ERROR); } } if (*modtime >= ppdinfo.st_mtime) { DEBUG_printf(("2cupsGetPPD3: Returning not-modified, filename=\"%s\".", buffer)); return (HTTP_STATUS_NOT_MODIFIED); } else { DEBUG_printf(("2cupsGetPPD3: Returning ok, filename=\"%s\", modtime=%ld.", buffer, (long)ppdinfo.st_mtime)); *modtime = ppdinfo.st_mtime; return (HTTP_STATUS_OK); } } } #endif /* !_WIN32 */ /* * Try finding a printer URI for this printer... */ DEBUG_puts("2cupsGetPPD3: Unable to access local file, copying..."); if (!http) { if ((http = _cupsConnect()) == NULL) { DEBUG_puts("2cupsGetPPD3: Unable to connect to scheduler."); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } } if (!cups_get_printer_uri(http, name, hostname, sizeof(hostname), &port, resource, sizeof(resource))) { DEBUG_puts("2cupsGetPPD3: Unable to get printer URI."); return (HTTP_STATUS_NOT_FOUND); } DEBUG_printf(("2cupsGetPPD3: Printer hostname=\"%s\", port=%d", hostname, port)); if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort()) { /* * Redirect localhost to domain socket... */ strlcpy(hostname, cupsServer(), sizeof(hostname)); port = 0; DEBUG_printf(("2cupsGetPPD3: Redirecting to \"%s\".", hostname)); } /* * Remap local hostname to localhost... */ httpGetHostname(NULL, localhost, sizeof(localhost)); DEBUG_printf(("2cupsGetPPD3: Local hostname=\"%s\"", localhost)); if (!_cups_strcasecmp(localhost, hostname)) strlcpy(hostname, "localhost", sizeof(hostname)); /* * Get the hostname and port number we are connected to... */ httpGetHostname(http, http_hostname, sizeof(http_hostname)); http_port = httpAddrPort(http->hostaddr); DEBUG_printf(("2cupsGetPPD3: Connection hostname=\"%s\", port=%d", http_hostname, http_port)); /* * Reconnect to the correct server as needed... */ if (!_cups_strcasecmp(http_hostname, hostname) && port == http_port) http2 = http; else if ((http2 = httpConnect2(hostname, port, NULL, AF_UNSPEC, cupsEncryption(), 1, 30000, NULL)) == NULL) { DEBUG_puts("2cupsGetPPD3: Unable to connect to server"); return (HTTP_STATUS_SERVICE_UNAVAILABLE); } /* * Get a temp file... */ if (buffer[0]) fd = open(buffer, O_CREAT | O_TRUNC | O_WRONLY, 0600); else fd = cupsTempFd(tempfile, sizeof(tempfile)); if (fd < 0) { /* * Can't open file; close the server connection and return NULL... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); if (http2 != http) httpClose(http2); return (HTTP_STATUS_SERVER_ERROR); } /* * And send a request to the HTTP server... */ strlcat(resource, ".ppd", sizeof(resource)); if (*modtime > 0) httpSetField(http2, HTTP_FIELD_IF_MODIFIED_SINCE, httpGetDateString(*modtime)); status = cupsGetFd(http2, resource, fd); close(fd); /* * See if we actually got the file or an error... */ if (status == HTTP_STATUS_OK) { *modtime = httpGetDateTime(httpGetField(http2, HTTP_FIELD_DATE)); if (tempfile[0]) strlcpy(buffer, tempfile, bufsize); } else if (status != HTTP_STATUS_NOT_MODIFIED) { _cupsSetHTTPError(status); if (buffer[0]) unlink(buffer); else if (tempfile[0]) unlink(tempfile); } else if (tempfile[0]) unlink(tempfile); if (http2 != http) httpClose(http2); /* * Return the PPD file... */ DEBUG_printf(("2cupsGetPPD3: Returning status %d", status)); return (status); } /* * 'cupsGetServerPPD()' - Get an available PPD file from the server. * * This function returns the named PPD file from the server. The * list of available PPDs is provided by the IPP @code CUPS_GET_PPDS@ * operation. * * You must remove (unlink) the PPD file when you are finished with * it. The PPD filename is stored in a static location that will be * overwritten on the next call to @link cupsGetPPD@, @link cupsGetPPD2@, * or @link cupsGetServerPPD@. * * @since CUPS 1.3/macOS 10.5@ */ char * /* O - Name of PPD file or @code NULL@ on error */ cupsGetServerPPD(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name) /* I - Name of PPD file ("ppd-name") */ { int fd; /* PPD file descriptor */ ipp_t *request; /* IPP request */ _ppd_globals_t *pg = _ppdGlobals(); /* Pointer to library globals */ /* * Range check input... */ if (!name) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No PPD name"), 1); return (NULL); } if (!http) if ((http = _cupsConnect()) == NULL) return (NULL); /* * Get a temp file... */ if ((fd = cupsTempFd(pg->ppd_filename, sizeof(pg->ppd_filename))) < 0) { /* * Can't open file; close the server connection and return NULL... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); return (NULL); } /* * Get the PPD file... */ request = ippNewRequest(IPP_OP_CUPS_GET_PPD); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name", NULL, name); ippDelete(cupsDoIORequest(http, request, "/", -1, fd)); close(fd); if (cupsLastError() != IPP_STATUS_OK) { unlink(pg->ppd_filename); return (NULL); } else return (pg->ppd_filename); } /* * 'cups_get_printer_uri()' - Get the printer-uri-supported attribute for the * first printer in a class. */ static int /* O - 1 on success, 0 on failure */ cups_get_printer_uri( http_t *http, /* I - Connection to server */ const char *name, /* I - Name of printer or class */ char *host, /* I - Hostname buffer */ int hostsize, /* I - Size of hostname buffer */ int *port, /* O - Port number */ char *resource, /* I - Resource buffer */ int resourcesize) /* I - Size of resource buffer */ { int i; /* Looping var */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Current attribute */ char uri[HTTP_MAX_URI], /* printer-uri attribute */ scheme[HTTP_MAX_URI], /* Scheme name */ username[HTTP_MAX_URI]; /* Username:password */ static const char * const requested_attrs[] = { /* Requested attributes */ "member-uris", "printer-uri-supported" }; DEBUG_printf(("4cups_get_printer_uri(http=%p, name=\"%s\", host=%p, hostsize=%d, resource=%p, resourcesize=%d)", http, name, host, hostsize, resource, resourcesize)); /* * Setup the printer URI... */ if (httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", name) < HTTP_URI_STATUS_OK) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create printer-uri"), 1); *host = '\0'; *resource = '\0'; return (0); } DEBUG_printf(("5cups_get_printer_uri: printer-uri=\"%s\"", uri)); /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requested-attributes */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(requested_attrs) / sizeof(requested_attrs[0]), NULL, requested_attrs); /* * Do the request and get back a response... */ snprintf(resource, (size_t)resourcesize, "/printers/%s", name); if ((response = cupsDoRequest(http, request, resource)) != NULL) { if ((attr = ippFindAttribute(response, "member-uris", IPP_TAG_URI)) != NULL) { /* * Get the first actual printer name in the class... */ DEBUG_printf(("5cups_get_printer_uri: Got member-uris with %d values.", ippGetCount(attr))); for (i = 0; i < attr->num_values; i ++) { DEBUG_printf(("5cups_get_printer_uri: member-uris[%d]=\"%s\"", i, ippGetString(attr, i, NULL))); httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[i].string.text, scheme, sizeof(scheme), username, sizeof(username), host, hostsize, port, resource, resourcesize); if (!strncmp(resource, "/printers/", 10)) { /* * Found a printer! */ ippDelete(response); DEBUG_printf(("5cups_get_printer_uri: Found printer member with host=\"%s\", port=%d, resource=\"%s\"", host, *port, resource)); return (1); } } } else if ((attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL) { httpSeparateURI(HTTP_URI_CODING_ALL, _httpResolveURI(attr->values[0].string.text, uri, sizeof(uri), _HTTP_RESOLVE_DEFAULT, NULL, NULL), scheme, sizeof(scheme), username, sizeof(username), host, hostsize, port, resource, resourcesize); ippDelete(response); DEBUG_printf(("5cups_get_printer_uri: Resolved to host=\"%s\", port=%d, resource=\"%s\"", host, *port, resource)); if (!strncmp(resource, "/classes/", 9)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No printer-uri found for class"), 1); *host = '\0'; *resource = '\0'; DEBUG_puts("5cups_get_printer_uri: Not returning class."); return (0); } return (1); } ippDelete(response); } if (cupsLastError() != IPP_STATUS_ERROR_NOT_FOUND) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No printer-uri found"), 1); *host = '\0'; *resource = '\0'; DEBUG_puts("5cups_get_printer_uri: Printer URI not found."); return (0); } cups-2.4.7/cups/ppd-private.h0000644000175000017500000002226014502571342015741 0ustar zdohnalzdohnal/* * Private PPD definitions for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ #ifndef _CUPS_PPD_PRIVATE_H_ # define _CUPS_PPD_PRIVATE_H_ /* * Include necessary headers... */ # include # include # include "pwg-private.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define _PPD_CACHE_VERSION 11 /* Version number in cache file */ /* * Types and structures... */ typedef struct _ppd_globals_s /**** CUPS PPD global state data ****/ { /* ppd.c */ ppd_status_t ppd_status; /* Status of last ppdOpen*() */ int ppd_line; /* Current line number */ ppd_conform_t ppd_conform; /* Level of conformance required */ /* ppd-util.c */ char ppd_filename[HTTP_MAX_URI]; /* PPD filename */ } _ppd_globals_t; typedef enum _ppd_localization_e /**** Selector for _ppdOpen ****/ { _PPD_LOCALIZATION_DEFAULT, /* Load only the default localization */ _PPD_LOCALIZATION_ICC_PROFILES, /* Load only the color profile localization */ _PPD_LOCALIZATION_NONE, /* Load no localizations */ _PPD_LOCALIZATION_ALL /* Load all localizations */ } _ppd_localization_t; typedef enum _ppd_parse_e /**** Selector for _ppdParseOptions ****/ { _PPD_PARSE_OPTIONS, /* Parse only the options */ _PPD_PARSE_PROPERTIES, /* Parse only the properties */ _PPD_PARSE_ALL /* Parse everything */ } _ppd_parse_t; typedef struct _ppd_cups_uiconst_s /**** Constraint from cupsUIConstraints ****/ { ppd_option_t *option; /* Constrained option */ ppd_choice_t *choice; /* Constrained choice or @code NULL@ */ int installable; /* Installable option? */ } _ppd_cups_uiconst_t; typedef struct _ppd_cups_uiconsts_s /**** cupsUIConstraints ****/ { char resolver[PPD_MAX_NAME]; /* Resolver name */ int installable, /* Constrained against any installable options? */ num_constraints; /* Number of constraints */ _ppd_cups_uiconst_t *constraints; /* Constraints */ } _ppd_cups_uiconsts_t; typedef enum _pwg_print_color_mode_e /**** PWG print-color-mode indices ****/ { _PWG_PRINT_COLOR_MODE_MONOCHROME = 0, /* print-color-mode=monochrome */ _PWG_PRINT_COLOR_MODE_COLOR, /* print-color-mode=color */ /* Other values are not supported by CUPS yet. */ _PWG_PRINT_COLOR_MODE_MAX } _pwg_print_color_mode_t; typedef enum _pwg_print_quality_e /**** PWG print-quality values ****/ { _PWG_PRINT_QUALITY_DRAFT = 0, /* print-quality=3 */ _PWG_PRINT_QUALITY_NORMAL, /* print-quality=4 */ _PWG_PRINT_QUALITY_HIGH, /* print-quality=5 */ _PWG_PRINT_QUALITY_MAX } _pwg_print_quality_t; typedef struct _pwg_finishings_s /**** PWG finishings mapping data ****/ { ipp_finishings_t value; /* finishings value */ int num_options; /* Number of options to apply */ cups_option_t *options; /* Options to apply */ } _pwg_finishings_t; struct _ppd_cache_s /**** PPD cache and PWG conversion data ****/ { int num_bins; /* Number of output bins */ pwg_map_t *bins; /* Output bins */ int num_sizes; /* Number of media sizes */ pwg_size_t *sizes; /* Media sizes */ int custom_max_width, /* Maximum custom width in 2540ths */ custom_max_length, /* Maximum custom length in 2540ths */ custom_min_width, /* Minimum custom width in 2540ths */ custom_min_length; /* Minimum custom length in 2540ths */ char *custom_max_keyword, /* Maximum custom size PWG keyword */ *custom_min_keyword, /* Minimum custom size PWG keyword */ custom_ppd_size[41]; /* Custom PPD size name */ pwg_size_t custom_size; /* Custom size record */ char *source_option; /* PPD option for media source */ int num_sources; /* Number of media sources */ pwg_map_t *sources; /* Media sources */ int num_types; /* Number of media types */ pwg_map_t *types; /* Media types */ int num_presets[_PWG_PRINT_COLOR_MODE_MAX][_PWG_PRINT_QUALITY_MAX]; /* Number of print-color-mode/print-quality options */ cups_option_t *presets[_PWG_PRINT_COLOR_MODE_MAX][_PWG_PRINT_QUALITY_MAX]; /* print-color-mode/print-quality options */ char *sides_option, /* PPD option for sides */ *sides_1sided, /* Choice for one-sided */ *sides_2sided_long, /* Choice for two-sided-long-edge */ *sides_2sided_short; /* Choice for two-sided-short-edge */ char *product; /* Product value */ cups_array_t *filters, /* cupsFilter/cupsFilter2 values */ *prefilters; /* cupsPreFilter values */ int single_file; /* cupsSingleFile value */ cups_array_t *finishings; /* cupsIPPFinishings values */ cups_array_t *templates; /* cupsFinishingTemplate values */ int max_copies, /* cupsMaxCopies value */ account_id, /* cupsJobAccountId value */ accounting_user_id; /* cupsJobAccountingUserId value */ char *password; /* cupsJobPassword value */ cups_array_t *mandatory; /* cupsMandatory value */ char *charge_info_uri; /* cupsChargeInfoURI value */ cups_array_t *strings; /* Localization strings */ cups_array_t *support_files; /* Support files - ICC profiles, etc. */ }; /* * Prototypes... */ extern int _cupsConvertOptions(ipp_t *request, ppd_file_t *ppd, _ppd_cache_t *pc, ipp_attribute_t *media_col_sup, ipp_attribute_t *doc_handling_sup, ipp_attribute_t *print_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t *options) _CUPS_PRIVATE; extern int _cupsRasterExecPS(cups_page_header2_t *h, int *preferred_bits, const char *code) _CUPS_NONNULL(3) _CUPS_PRIVATE; extern int _cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func) _CUPS_PRIVATE; extern _ppd_cache_t *_ppdCacheCreateWithFile(const char *filename, ipp_t **attrs) _CUPS_PRIVATE; extern _ppd_cache_t *_ppdCacheCreateWithPPD(ppd_file_t *ppd) _CUPS_PRIVATE; extern void _ppdCacheDestroy(_ppd_cache_t *pc) _CUPS_PRIVATE; extern const char *_ppdCacheGetBin(_ppd_cache_t *pc, const char *output_bin) _CUPS_PRIVATE; extern int _ppdCacheGetFinishingOptions(_ppd_cache_t *pc, ipp_t *job, ipp_finishings_t value, int num_options, cups_option_t **options) _CUPS_PRIVATE; extern int _ppdCacheGetFinishingValues(ppd_file_t *ppd, _ppd_cache_t *pc, int max_values, int *values) _CUPS_PRIVATE; extern const char *_ppdCacheGetInputSlot(_ppd_cache_t *pc, ipp_t *job, const char *keyword) _CUPS_PRIVATE; extern const char *_ppdCacheGetMediaType(_ppd_cache_t *pc, ipp_t *job, const char *keyword) _CUPS_PRIVATE; extern const char *_ppdCacheGetOutputBin(_ppd_cache_t *pc, const char *keyword) _CUPS_PRIVATE; extern const char *_ppdCacheGetPageSize(_ppd_cache_t *pc, ipp_t *job, const char *keyword, int *exact) _CUPS_PRIVATE; extern pwg_size_t *_ppdCacheGetSize(_ppd_cache_t *pc, const char *page_size) _CUPS_PRIVATE; extern const char *_ppdCacheGetSource(_ppd_cache_t *pc, const char *input_slot) _CUPS_PRIVATE; extern const char *_ppdCacheGetType(_ppd_cache_t *pc, const char *media_type) _CUPS_PRIVATE; extern int _ppdCacheWriteFile(_ppd_cache_t *pc, const char *filename, ipp_t *attrs) _CUPS_PRIVATE; extern char *_ppdCreateFromIPP(char *buffer, size_t bufsize, ipp_t *response) _CUPS_PRIVATE; extern char *_ppdCreateFromIPP2(char *buffer, size_t bufsize, ipp_t *response, cups_lang_t *lang) _CUPS_PRIVATE; extern void _ppdFreeLanguages(cups_array_t *languages) _CUPS_PRIVATE; extern cups_encoding_t _ppdGetEncoding(const char *name) _CUPS_PRIVATE; extern cups_array_t *_ppdGetLanguages(ppd_file_t *ppd) _CUPS_PRIVATE; extern _ppd_globals_t *_ppdGlobals(void) _CUPS_PRIVATE; extern unsigned _ppdHashName(const char *name) _CUPS_PRIVATE; extern ppd_attr_t *_ppdLocalizedAttr(ppd_file_t *ppd, const char *keyword, const char *spec, const char *ll_CC) _CUPS_PRIVATE; extern char *_ppdNormalizeMakeAndModel(const char *make_and_model, char *buffer, size_t bufsize) _CUPS_PRIVATE; extern ppd_file_t *_ppdOpen(cups_file_t *fp, _ppd_localization_t localization) _CUPS_PRIVATE; extern ppd_file_t *_ppdOpenFile(const char *filename, _ppd_localization_t localization) _CUPS_PRIVATE; extern int _ppdParseOptions(const char *s, int num_options, cups_option_t **options, _ppd_parse_t which) _CUPS_PRIVATE; extern const char *_pwgInputSlotForSource(const char *media_source, char *name, size_t namesize) _CUPS_PRIVATE; extern const char *_pwgMediaTypeForType(const char *media_type, char *name, size_t namesize) _CUPS_PRIVATE; extern const char *_pwgPageSizeForMedia(pwg_media_t *media, char *name, size_t namesize) _CUPS_PRIVATE; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_PPD_PRIVATE_H_ */ cups-2.4.7/cups/ppd-page.c0000644000175000017500000002155714502571342015206 0ustar zdohnalzdohnal/* * Page size functions for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers... */ #include "string-private.h" #include "debug-internal.h" #include "ppd.h" /* * 'ppdPageSize()' - Get the page size record for the named size. */ ppd_size_t * /* O - Size record for page or NULL */ ppdPageSize(ppd_file_t *ppd, /* I - PPD file record */ const char *name) /* I - Size name */ { int i; /* Looping var */ ppd_size_t *size; /* Current page size */ double w, l; /* Width and length of page */ char *nameptr; /* Pointer into name */ struct lconv *loc; /* Locale data */ ppd_coption_t *coption; /* Custom option for page size */ ppd_cparam_t *cparam; /* Custom option parameter */ DEBUG_printf(("2ppdPageSize(ppd=%p, name=\"%s\")", ppd, name)); if (!ppd) { DEBUG_puts("3ppdPageSize: Bad PPD pointer, returning NULL..."); return (NULL); } if (name) { if (!strncmp(name, "Custom.", 7) && ppd->variable_sizes) { /* * Find the custom page size... */ for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) if (!strcmp("Custom", size->name)) break; if (!i) { DEBUG_puts("3ppdPageSize: No custom sizes, returning NULL..."); return (NULL); } /* * Variable size; size name can be one of the following: * * Custom.WIDTHxLENGTHin - Size in inches * Custom.WIDTHxLENGTHft - Size in feet * Custom.WIDTHxLENGTHcm - Size in centimeters * Custom.WIDTHxLENGTHmm - Size in millimeters * Custom.WIDTHxLENGTHm - Size in meters * Custom.WIDTHxLENGTH[pt] - Size in points */ loc = localeconv(); w = _cupsStrScand(name + 7, &nameptr, loc); if (!nameptr || *nameptr != 'x') return (NULL); l = _cupsStrScand(nameptr + 1, &nameptr, loc); if (!nameptr) return (NULL); if (!_cups_strcasecmp(nameptr, "in")) { w *= 72.0; l *= 72.0; } else if (!_cups_strcasecmp(nameptr, "ft")) { w *= 12.0 * 72.0; l *= 12.0 * 72.0; } else if (!_cups_strcasecmp(nameptr, "mm")) { w *= 72.0 / 25.4; l *= 72.0 / 25.4; } else if (!_cups_strcasecmp(nameptr, "cm")) { w *= 72.0 / 2.54; l *= 72.0 / 2.54; } else if (!_cups_strcasecmp(nameptr, "m")) { w *= 72.0 / 0.0254; l *= 72.0 / 0.0254; } size->width = (float)w; size->length = (float)l; size->left = ppd->custom_margins[0]; size->bottom = ppd->custom_margins[1]; size->right = (float)(w - ppd->custom_margins[2]); size->top = (float)(l - ppd->custom_margins[3]); /* * Update the custom option records for the page size, too... */ if ((coption = ppdFindCustomOption(ppd, "PageSize")) != NULL) { if ((cparam = ppdFindCustomParam(coption, "Width")) != NULL) cparam->current.custom_points = (float)w; if ((cparam = ppdFindCustomParam(coption, "Height")) != NULL) cparam->current.custom_points = (float)l; } /* * Return the page size... */ DEBUG_printf(("3ppdPageSize: Returning %p (\"%s\", %gx%g)", size, size->name, size->width, size->length)); return (size); } else { /* * Lookup by name... */ for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) if (!_cups_strcasecmp(name, size->name)) { DEBUG_printf(("3ppdPageSize: Returning %p (\"%s\", %gx%g)", size, size->name, size->width, size->length)); return (size); } } } else { /* * Find default... */ for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) if (size->marked) { DEBUG_printf(("3ppdPageSize: Returning %p (\"%s\", %gx%g)", size, size->name, size->width, size->length)); return (size); } } DEBUG_puts("3ppdPageSize: Size not found, returning NULL"); return (NULL); } /* * 'ppdPageSizeLimits()' - Return the custom page size limits. * * This function returns the minimum and maximum custom page sizes and printable * areas based on the currently-marked (selected) options. * * If the specified PPD file does not support custom page sizes, both * "minimum" and "maximum" are filled with zeroes. * * @since CUPS 1.4/macOS 10.6@ */ int /* O - 1 if custom sizes are supported, 0 otherwise */ ppdPageSizeLimits(ppd_file_t *ppd, /* I - PPD file record */ ppd_size_t *minimum, /* O - Minimum custom size */ ppd_size_t *maximum) /* O - Maximum custom size */ { ppd_choice_t *qualifier2, /* Second media qualifier */ *qualifier3; /* Third media qualifier */ ppd_attr_t *attr; /* Attribute */ float width, /* Min/max width */ length; /* Min/max length */ char spec[PPD_MAX_NAME]; /* Selector for min/max */ /* * Range check input... */ if (!ppd || !ppd->variable_sizes || !minimum || !maximum) { if (minimum) memset(minimum, 0, sizeof(ppd_size_t)); if (maximum) memset(maximum, 0, sizeof(ppd_size_t)); return (0); } /* * See if we have the cupsMediaQualifier2 and cupsMediaQualifier3 attributes... */ cupsArraySave(ppd->sorted_attrs); if ((attr = ppdFindAttr(ppd, "cupsMediaQualifier2", NULL)) != NULL && attr->value) qualifier2 = ppdFindMarkedChoice(ppd, attr->value); else qualifier2 = NULL; if ((attr = ppdFindAttr(ppd, "cupsMediaQualifier3", NULL)) != NULL && attr->value) qualifier3 = ppdFindMarkedChoice(ppd, attr->value); else qualifier3 = NULL; /* * Figure out the current minimum width and length... */ width = ppd->custom_min[0]; length = ppd->custom_min[1]; if (qualifier2) { /* * Try getting cupsMinSize... */ if (qualifier3) { snprintf(spec, sizeof(spec), ".%s.%s", qualifier2->choice, qualifier3->choice); attr = ppdFindAttr(ppd, "cupsMinSize", spec); } else attr = NULL; if (!attr) { snprintf(spec, sizeof(spec), ".%s.", qualifier2->choice); attr = ppdFindAttr(ppd, "cupsMinSize", spec); } if (!attr && qualifier3) { snprintf(spec, sizeof(spec), "..%s", qualifier3->choice); attr = ppdFindAttr(ppd, "cupsMinSize", spec); } if ((attr && attr->value && sscanf(attr->value, "%f%f", &width, &length) != 2) || !attr) { width = ppd->custom_min[0]; length = ppd->custom_min[1]; } } minimum->width = width; minimum->length = length; minimum->left = ppd->custom_margins[0]; minimum->bottom = ppd->custom_margins[1]; minimum->right = width - ppd->custom_margins[2]; minimum->top = length - ppd->custom_margins[3]; /* * Figure out the current maximum width and length... */ width = ppd->custom_max[0]; length = ppd->custom_max[1]; if (qualifier2) { /* * Try getting cupsMaxSize... */ if (qualifier3) { snprintf(spec, sizeof(spec), ".%s.%s", qualifier2->choice, qualifier3->choice); attr = ppdFindAttr(ppd, "cupsMaxSize", spec); } else attr = NULL; if (!attr) { snprintf(spec, sizeof(spec), ".%s.", qualifier2->choice); attr = ppdFindAttr(ppd, "cupsMaxSize", spec); } if (!attr && qualifier3) { snprintf(spec, sizeof(spec), "..%s", qualifier3->choice); attr = ppdFindAttr(ppd, "cupsMaxSize", spec); } if (!attr || (attr->value && sscanf(attr->value, "%f%f", &width, &length) != 2)) { width = ppd->custom_max[0]; length = ppd->custom_max[1]; } } maximum->width = width; maximum->length = length; maximum->left = ppd->custom_margins[0]; maximum->bottom = ppd->custom_margins[1]; maximum->right = width - ppd->custom_margins[2]; maximum->top = length - ppd->custom_margins[3]; /* * Return the min and max... */ cupsArrayRestore(ppd->sorted_attrs); return (1); } /* * 'ppdPageWidth()' - Get the page width for the given size. */ float /* O - Width of page in points or 0.0 */ ppdPageWidth(ppd_file_t *ppd, /* I - PPD file record */ const char *name) /* I - Size name */ { ppd_size_t *size; /* Page size */ if ((size = ppdPageSize(ppd, name)) == NULL) return (0.0); else return (size->width); } /* * 'ppdPageLength()' - Get the page length for the given size. */ float /* O - Length of page in points or 0.0 */ ppdPageLength(ppd_file_t *ppd, /* I - PPD file */ const char *name) /* I - Size name */ { ppd_size_t *size; /* Page size */ if ((size = ppdPageSize(ppd, name)) == NULL) return (0.0); else return (size->length); } cups-2.4.7/cups/ppd-mark.c0000644000175000017500000006576114502571342015231 0ustar zdohnalzdohnal/* * Option marking routines for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * Local functions... */ #ifdef DEBUG static void ppd_debug_marked(ppd_file_t *ppd, const char *title); #else # define ppd_debug_marked(ppd,title) #endif /* DEBUG */ static void ppd_defaults(ppd_file_t *ppd, ppd_group_t *g); static void ppd_mark_choices(ppd_file_t *ppd, const char *s); static void ppd_mark_option(ppd_file_t *ppd, const char *option, const char *choice); /* * 'cupsMarkOptions()' - Mark command-line options in a PPD file. * * This function maps the IPP "finishings", "media", "mirror", * "multiple-document-handling", "output-bin", "print-color-mode", * "print-quality", "printer-resolution", and "sides" attributes to their * corresponding PPD options and choices. */ int /* O - 1 if conflicts exist, 0 otherwise */ cupsMarkOptions( ppd_file_t *ppd, /* I - PPD file */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int i, j; /* Looping vars */ char *ptr, /* Pointer into string */ s[255]; /* Temporary string */ const char *val, /* Pointer into value */ *media, /* media option */ *output_bin, /* output-bin option */ *page_size, /* PageSize option */ *ppd_keyword, /* PPD keyword */ *print_color_mode, /* print-color-mode option */ *print_quality, /* print-quality option */ *sides; /* sides option */ cups_option_t *optptr; /* Current option */ ppd_attr_t *attr; /* PPD attribute */ _ppd_cache_t *cache; /* PPD cache and mapping data */ /* * Check arguments... */ if (!ppd || num_options <= 0 || !options) return (0); ppd_debug_marked(ppd, "Before..."); /* * Do special handling for finishings, media, output-bin, output-mode, * print-color-mode, print-quality, and PageSize... */ media = cupsGetOption("media", num_options, options); output_bin = cupsGetOption("output-bin", num_options, options); page_size = cupsGetOption("PageSize", num_options, options); print_quality = cupsGetOption("print-quality", num_options, options); sides = cupsGetOption("sides", num_options, options); if ((print_color_mode = cupsGetOption("print-color-mode", num_options, options)) == NULL) print_color_mode = cupsGetOption("output-mode", num_options, options); if ((media || output_bin || print_color_mode || print_quality || sides) && !ppd->cache) { /* * Load PPD cache and mapping data as needed... */ ppd->cache = _ppdCacheCreateWithPPD(ppd); } cache = ppd->cache; if (media) { /* * Loop through the option string, separating it at commas and marking each * individual option as long as the corresponding PPD option (PageSize, * InputSlot, etc.) is not also set. * * For PageSize, we also check for an empty option value since some versions * of macOS use it to specify auto-selection of the media based solely on * the size. */ for (val = media; *val;) { /* * Extract the sub-option from the string... */ for (ptr = s; *val && *val != ',' && (size_t)(ptr - s) < (sizeof(s) - 1);) *ptr++ = *val++; *ptr++ = '\0'; if (*val == ',') val ++; /* * Mark it... */ if (!page_size || !page_size[0]) { if (!_cups_strncasecmp(s, "Custom.", 7) || ppdPageSize(ppd, s)) ppd_mark_option(ppd, "PageSize", s); else if ((ppd_keyword = _ppdCacheGetPageSize(cache, NULL, s, NULL)) != NULL) ppd_mark_option(ppd, "PageSize", ppd_keyword); } if (cache && cache->source_option && !cupsGetOption(cache->source_option, num_options, options) && (ppd_keyword = _ppdCacheGetInputSlot(cache, NULL, s)) != NULL) ppd_mark_option(ppd, cache->source_option, ppd_keyword); if (!cupsGetOption("MediaType", num_options, options) && (ppd_keyword = _ppdCacheGetMediaType(cache, NULL, s)) != NULL) ppd_mark_option(ppd, "MediaType", ppd_keyword); } } if (cache) { if (!cupsGetOption("com.apple.print.DocumentTicket.PMSpoolFormat", num_options, options) && !cupsGetOption("APPrinterPreset", num_options, options) && (print_color_mode || print_quality)) { /* * Map output-mode and print-quality to a preset... */ _pwg_print_color_mode_t pwg_pcm;/* print-color-mode index */ _pwg_print_quality_t pwg_pq; /* print-quality index */ cups_option_t *preset;/* Current preset option */ if (print_color_mode && !strcmp(print_color_mode, "monochrome")) pwg_pcm = _PWG_PRINT_COLOR_MODE_MONOCHROME; else pwg_pcm = _PWG_PRINT_COLOR_MODE_COLOR; if (print_quality) { pwg_pq = (_pwg_print_quality_t)(atoi(print_quality) - IPP_QUALITY_DRAFT); if (pwg_pq < _PWG_PRINT_QUALITY_DRAFT) pwg_pq = _PWG_PRINT_QUALITY_DRAFT; else if (pwg_pq > _PWG_PRINT_QUALITY_HIGH) pwg_pq = _PWG_PRINT_QUALITY_HIGH; } else pwg_pq = _PWG_PRINT_QUALITY_NORMAL; if (cache->num_presets[pwg_pcm][pwg_pq] == 0) { /* * Try to find a preset that works so that we maximize the chances of us * getting a good print using IPP attributes. */ if (cache->num_presets[pwg_pcm][_PWG_PRINT_QUALITY_NORMAL] > 0) pwg_pq = _PWG_PRINT_QUALITY_NORMAL; else if (cache->num_presets[_PWG_PRINT_COLOR_MODE_COLOR][pwg_pq] > 0) pwg_pcm = _PWG_PRINT_COLOR_MODE_COLOR; else { pwg_pq = _PWG_PRINT_QUALITY_NORMAL; pwg_pcm = _PWG_PRINT_COLOR_MODE_COLOR; } } if (cache->num_presets[pwg_pcm][pwg_pq] > 0) { /* * Copy the preset options as long as the corresponding names are not * already defined in the IPP request... */ for (i = cache->num_presets[pwg_pcm][pwg_pq], preset = cache->presets[pwg_pcm][pwg_pq]; i > 0; i --, preset ++) { if (!cupsGetOption(preset->name, num_options, options)) ppd_mark_option(ppd, preset->name, preset->value); } } } if (output_bin && !cupsGetOption("OutputBin", num_options, options) && (ppd_keyword = _ppdCacheGetOutputBin(cache, output_bin)) != NULL) { /* * Map output-bin to OutputBin... */ ppd_mark_option(ppd, "OutputBin", ppd_keyword); } if (sides && cache->sides_option && !cupsGetOption(cache->sides_option, num_options, options)) { /* * Map sides to duplex option... */ if (!strcmp(sides, "one-sided") && cache->sides_1sided) ppd_mark_option(ppd, cache->sides_option, cache->sides_1sided); else if (!strcmp(sides, "two-sided-long-edge") && cache->sides_2sided_long) ppd_mark_option(ppd, cache->sides_option, cache->sides_2sided_long); else if (!strcmp(sides, "two-sided-short-edge") && cache->sides_2sided_short) ppd_mark_option(ppd, cache->sides_option, cache->sides_2sided_short); } } /* * Mark other options... */ for (i = num_options, optptr = options; i > 0; i --, optptr ++) { if (!_cups_strcasecmp(optptr->name, "media") || !_cups_strcasecmp(optptr->name, "output-bin") || !_cups_strcasecmp(optptr->name, "output-mode") || !_cups_strcasecmp(optptr->name, "print-quality") || !_cups_strcasecmp(optptr->name, "sides")) continue; else if (!_cups_strcasecmp(optptr->name, "resolution") || !_cups_strcasecmp(optptr->name, "printer-resolution")) { ppd_mark_option(ppd, "Resolution", optptr->value); ppd_mark_option(ppd, "SetResolution", optptr->value); /* Calcomp, Linotype, QMS, Summagraphics, Tektronix, Varityper */ ppd_mark_option(ppd, "JCLResolution", optptr->value); /* HP */ ppd_mark_option(ppd, "CNRes_PGP", optptr->value); /* Canon */ } else if (!_cups_strcasecmp(optptr->name, "multiple-document-handling")) { if (!cupsGetOption("Collate", num_options, options) && ppdFindOption(ppd, "Collate")) { if (_cups_strcasecmp(optptr->value, "separate-documents-uncollated-copies")) ppd_mark_option(ppd, "Collate", "True"); else ppd_mark_option(ppd, "Collate", "False"); } } else if (!_cups_strcasecmp(optptr->name, "finishings")) { /* * Lookup cupsIPPFinishings attributes for each value... */ for (ptr = optptr->value; *ptr;) { /* * Get the next finishings number... */ if (!isdigit(*ptr & 255)) break; if ((j = (int)strtol(ptr, &ptr, 10)) < 3) break; /* * Skip separator as needed... */ if (*ptr == ',') ptr ++; /* * Look it up in the PPD file... */ snprintf(s, sizeof(s), "%d", j); if ((attr = ppdFindAttr(ppd, "cupsIPPFinishings", s)) == NULL) continue; /* * Apply "*Option Choice" settings from the attribute value... */ ppd_mark_choices(ppd, attr->value); } } else if (!_cups_strcasecmp(optptr->name, "APPrinterPreset")) { /* * Lookup APPrinterPreset value... */ if ((attr = ppdFindAttr(ppd, "APPrinterPreset", optptr->value)) != NULL) { /* * Apply "*Option Choice" settings from the attribute value... */ ppd_mark_choices(ppd, attr->value); } } else if (!_cups_strcasecmp(optptr->name, "mirror")) ppd_mark_option(ppd, "MirrorPrint", optptr->value); else ppd_mark_option(ppd, optptr->name, optptr->value); } if (print_quality) { int pq = atoi(print_quality); /* print-quaity value */ if (pq == IPP_QUALITY_DRAFT) ppd_mark_option(ppd, "cupsPrintQuality", "Draft"); else if (pq == IPP_QUALITY_HIGH) ppd_mark_option(ppd, "cupsPrintQuality", "High"); else ppd_mark_option(ppd, "cupsPrintQuality", "Normal"); } ppd_debug_marked(ppd, "After..."); return (ppdConflicts(ppd) > 0); } /* * 'ppdFindChoice()' - Return a pointer to an option choice. */ ppd_choice_t * /* O - Choice pointer or @code NULL@ */ ppdFindChoice(ppd_option_t *o, /* I - Pointer to option */ const char *choice) /* I - Name of choice */ { int i; /* Looping var */ ppd_choice_t *c; /* Current choice */ if (!o || !choice) return (NULL); if (choice[0] == '{' || !_cups_strncasecmp(choice, "Custom.", 7)) choice = "Custom"; for (i = o->num_choices, c = o->choices; i > 0; i --, c ++) if (!_cups_strcasecmp(c->choice, choice)) return (c); return (NULL); } /* * 'ppdFindMarkedChoice()' - Return the marked choice for the specified option. */ ppd_choice_t * /* O - Pointer to choice or @code NULL@ */ ppdFindMarkedChoice(ppd_file_t *ppd, /* I - PPD file */ const char *option) /* I - Keyword/option name */ { ppd_choice_t key, /* Search key for choice */ *marked; /* Marked choice */ DEBUG_printf(("2ppdFindMarkedChoice(ppd=%p, option=\"%s\")", ppd, option)); if ((key.option = ppdFindOption(ppd, option)) == NULL) { DEBUG_puts("3ppdFindMarkedChoice: Option not found, returning NULL"); return (NULL); } marked = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key); DEBUG_printf(("3ppdFindMarkedChoice: Returning %p(%s)...", marked, marked ? marked->choice : "NULL")); return (marked); } /* * 'ppdFindOption()' - Return a pointer to the specified option. */ ppd_option_t * /* O - Pointer to option or @code NULL@ */ ppdFindOption(ppd_file_t *ppd, /* I - PPD file data */ const char *option) /* I - Option/Keyword name */ { /* * Range check input... */ if (!ppd || !option) return (NULL); if (ppd->options) { /* * Search in the array... */ ppd_option_t key; /* Option search key */ strlcpy(key.keyword, option, sizeof(key.keyword)); return ((ppd_option_t *)cupsArrayFind(ppd->options, &key)); } else { /* * Search in each group... */ int i, j; /* Looping vars */ ppd_group_t *group; /* Current group */ ppd_option_t *optptr; /* Current option */ for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) for (j = group->num_options, optptr = group->options; j > 0; j --, optptr ++) if (!_cups_strcasecmp(optptr->keyword, option)) return (optptr); return (NULL); } } /* * 'ppdIsMarked()' - Check to see if an option is marked. */ int /* O - Non-zero if option is marked */ ppdIsMarked(ppd_file_t *ppd, /* I - PPD file data */ const char *option, /* I - Option/Keyword name */ const char *choice) /* I - Choice name */ { ppd_choice_t key, /* Search key */ *c; /* Choice pointer */ if (!ppd) return (0); if ((key.option = ppdFindOption(ppd, option)) == NULL) return (0); if ((c = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) == NULL) return (0); return (!strcmp(c->choice, choice)); } /* * 'ppdMarkDefaults()' - Mark all default options in the PPD file. */ void ppdMarkDefaults(ppd_file_t *ppd) /* I - PPD file record */ { int i; /* Looping variables */ ppd_group_t *g; /* Current group */ ppd_choice_t *c; /* Current choice */ if (!ppd) return; /* * Clean out the marked array... */ for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked); c; c = (ppd_choice_t *)cupsArrayNext(ppd->marked)) { cupsArrayRemove(ppd->marked, c); c->marked = 0; } /* * Then repopulate it with the defaults... */ for (i = ppd->num_groups, g = ppd->groups; i > 0; i --, g ++) ppd_defaults(ppd, g); /* * Finally, tag any conflicts (API compatibility) once at the end. */ ppdConflicts(ppd); } /* * 'ppdMarkOption()' - Mark an option in a PPD file and return the number of * conflicts. */ int /* O - Number of conflicts */ ppdMarkOption(ppd_file_t *ppd, /* I - PPD file record */ const char *option, /* I - Keyword */ const char *choice) /* I - Option name */ { DEBUG_printf(("ppdMarkOption(ppd=%p, option=\"%s\", choice=\"%s\")", ppd, option, choice)); /* * Range check input... */ if (!ppd || !option || !choice) return (0); /* * Mark the option... */ ppd_mark_option(ppd, option, choice); /* * Return the number of conflicts... */ return (ppdConflicts(ppd)); } /* * 'ppdFirstOption()' - Return the first option in the PPD file. * * Options are returned from all groups in ascending alphanumeric order. * * @since CUPS 1.2/macOS 10.5@ */ ppd_option_t * /* O - First option or @code NULL@ */ ppdFirstOption(ppd_file_t *ppd) /* I - PPD file */ { if (!ppd) return (NULL); else return ((ppd_option_t *)cupsArrayFirst(ppd->options)); } /* * 'ppdNextOption()' - Return the next option in the PPD file. * * Options are returned from all groups in ascending alphanumeric order. * * @since CUPS 1.2/macOS 10.5@ */ ppd_option_t * /* O - Next option or @code NULL@ */ ppdNextOption(ppd_file_t *ppd) /* I - PPD file */ { if (!ppd) return (NULL); else return ((ppd_option_t *)cupsArrayNext(ppd->options)); } /* * '_ppdParseOptions()' - Parse options from a PPD file. * * This function looks for strings of the form: * * *option choice ... *optionN choiceN * property value ... propertyN valueN * * It stops when it finds a string that doesn't match this format. */ int /* O - Number of options */ _ppdParseOptions( const char *s, /* I - String to parse */ int num_options, /* I - Number of options */ cups_option_t **options, /* IO - Options */ _ppd_parse_t which) /* I - What to parse */ { char option[PPD_MAX_NAME * 2 + 1], /* Current option/property */ choice[PPD_MAX_NAME], /* Current choice/value */ *ptr; /* Pointer into option or choice */ if (!s) return (num_options); /* * Read all of the "*Option Choice" and "property value" pairs from the * string, add them to an options array as we go... */ while (*s) { /* * Skip leading whitespace... */ while (_cups_isspace(*s)) s ++; /* * Get the option/property name... */ ptr = option; while (*s && !_cups_isspace(*s) && ptr < (option + sizeof(option) - 1)) *ptr++ = *s++; if (ptr == s || !_cups_isspace(*s)) break; *ptr = '\0'; /* * Get the choice... */ while (_cups_isspace(*s)) s ++; if (!*s) break; ptr = choice; while (*s && !_cups_isspace(*s) && ptr < (choice + sizeof(choice) - 1)) *ptr++ = *s++; if (*s && !_cups_isspace(*s)) break; *ptr = '\0'; /* * Add it to the options array... */ if (option[0] == '*' && which != _PPD_PARSE_PROPERTIES) num_options = cupsAddOption(option + 1, choice, num_options, options); else if (option[0] != '*' && which != _PPD_PARSE_OPTIONS) num_options = cupsAddOption(option, choice, num_options, options); } return (num_options); } #ifdef DEBUG /* * 'ppd_debug_marked()' - Output the marked array to stdout... */ static void ppd_debug_marked(ppd_file_t *ppd, /* I - PPD file data */ const char *title) /* I - Title for list */ { ppd_choice_t *c; /* Current choice */ DEBUG_printf(("2cupsMarkOptions: %s", title)); for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked); c; c = (ppd_choice_t *)cupsArrayNext(ppd->marked)) DEBUG_printf(("2cupsMarkOptions: %s=%s", c->option->keyword, c->choice)); } #endif /* DEBUG */ /* * 'ppd_defaults()' - Set the defaults for this group and all sub-groups. */ static void ppd_defaults(ppd_file_t *ppd, /* I - PPD file */ ppd_group_t *g) /* I - Group to default */ { int i; /* Looping var */ ppd_option_t *o; /* Current option */ ppd_group_t *sg; /* Current sub-group */ for (i = g->num_options, o = g->options; i > 0; i --, o ++) if (_cups_strcasecmp(o->keyword, "PageRegion") != 0) ppd_mark_option(ppd, o->keyword, o->defchoice); for (i = g->num_subgroups, sg = g->subgroups; i > 0; i --, sg ++) ppd_defaults(ppd, sg); } /* * 'ppd_mark_choices()' - Mark one or more option choices from a string. */ static void ppd_mark_choices(ppd_file_t *ppd, /* I - PPD file */ const char *s) /* I - "*Option Choice ..." string */ { int i, /* Looping var */ num_options; /* Number of options */ cups_option_t *options, /* Options */ *option; /* Current option */ if (!s) return; options = NULL; num_options = _ppdParseOptions(s, 0, &options, 0); for (i = num_options, option = options; i > 0; i --, option ++) ppd_mark_option(ppd, option->name, option->value); cupsFreeOptions(num_options, options); } /* * 'ppd_mark_option()' - Quick mark an option without checking for conflicts. */ static void ppd_mark_option(ppd_file_t *ppd, /* I - PPD file */ const char *option, /* I - Option name */ const char *choice) /* I - Choice name */ { int i, j; /* Looping vars */ ppd_option_t *o; /* Option pointer */ ppd_choice_t *c, /* Choice pointer */ *oldc, /* Old choice pointer */ key; /* Search key for choice */ struct lconv *loc; /* Locale data */ DEBUG_printf(("7ppd_mark_option(ppd=%p, option=\"%s\", choice=\"%s\")", ppd, option, choice)); /* * AP_D_InputSlot is the "default input slot" on macOS, and setting * it clears the regular InputSlot choices... */ if (!_cups_strcasecmp(option, "AP_D_InputSlot")) { cupsArraySave(ppd->options); if ((o = ppdFindOption(ppd, "InputSlot")) != NULL) { key.option = o; if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } } cupsArrayRestore(ppd->options); } /* * Check for custom options... */ cupsArraySave(ppd->options); o = ppdFindOption(ppd, option); cupsArrayRestore(ppd->options); if (!o) return; loc = localeconv(); if (!_cups_strncasecmp(choice, "Custom.", 7)) { /* * Handle a custom option... */ if ((c = ppdFindChoice(o, "Custom")) == NULL) return; if (!_cups_strcasecmp(option, "PageSize")) { /* * Handle custom page sizes... */ ppdPageSize(ppd, choice); } else { /* * Handle other custom options... */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ char *units; /* Custom points units */ if ((coption = ppdFindCustomOption(ppd, option)) != NULL) { if ((cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params)) == NULL) return; switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : cparam->current.custom_real = (float)_cupsStrScand(choice + 7, NULL, loc); break; case PPD_CUSTOM_POINTS : cparam->current.custom_points = (float)_cupsStrScand(choice + 7, &units, loc); if (units) { if (!_cups_strcasecmp(units, "cm")) cparam->current.custom_points *= 72.0f / 2.54f; else if (!_cups_strcasecmp(units, "mm")) cparam->current.custom_points *= 72.0f / 25.4f; else if (!_cups_strcasecmp(units, "m")) cparam->current.custom_points *= 72.0f / 0.0254f; else if (!_cups_strcasecmp(units, "in")) cparam->current.custom_points *= 72.0f; else if (!_cups_strcasecmp(units, "ft")) cparam->current.custom_points *= 12.0f * 72.0f; } break; case PPD_CUSTOM_INT : cparam->current.custom_int = atoi(choice + 7); break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : if (cparam->current.custom_string) free(cparam->current.custom_string); cparam->current.custom_string = strdup(choice + 7); break; } } } /* * Make sure that we keep the option marked below... */ choice = "Custom"; } else if (choice[0] == '{') { /* * Handle multi-value custom options... */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ char *units; /* Custom points units */ int num_vals; /* Number of values */ cups_option_t *vals, /* Values */ *val; /* Value */ if ((c = ppdFindChoice(o, "Custom")) == NULL) return; if ((coption = ppdFindCustomOption(ppd, option)) != NULL) { num_vals = cupsParseOptions(choice, 0, &vals); for (i = 0, val = vals; i < num_vals; i ++, val ++) { if ((cparam = ppdFindCustomParam(coption, val->name)) == NULL) continue; switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : cparam->current.custom_real = (float)_cupsStrScand(val->value, NULL, loc); break; case PPD_CUSTOM_POINTS : cparam->current.custom_points = (float)_cupsStrScand(val->value, &units, loc); if (units) { if (!_cups_strcasecmp(units, "cm")) cparam->current.custom_points *= 72.0f / 2.54f; else if (!_cups_strcasecmp(units, "mm")) cparam->current.custom_points *= 72.0f / 25.4f; else if (!_cups_strcasecmp(units, "m")) cparam->current.custom_points *= 72.0f / 0.0254f; else if (!_cups_strcasecmp(units, "in")) cparam->current.custom_points *= 72.0f; else if (!_cups_strcasecmp(units, "ft")) cparam->current.custom_points *= 12.0f * 72.0f; } break; case PPD_CUSTOM_INT : cparam->current.custom_int = atoi(val->value); break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : if (cparam->current.custom_string) free(cparam->current.custom_string); cparam->current.custom_string = strdup(val->value); break; } } cupsFreeOptions(num_vals, vals); } } else { for (i = o->num_choices, c = o->choices; i > 0; i --, c ++) if (!_cups_strcasecmp(c->choice, choice)) break; if (!i) return; } /* * Option found; mark it and then handle unmarking any other options. */ if (o->ui != PPD_UI_PICKMANY) { /* * Unmark all other choices... */ if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, c)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } if (!_cups_strcasecmp(option, "PageSize") || !_cups_strcasecmp(option, "PageRegion")) { /* * Mark current page size... */ for (j = 0; j < ppd->num_sizes; j ++) ppd->sizes[j].marked = !_cups_strcasecmp(ppd->sizes[j].name, choice); /* * Unmark the current PageSize or PageRegion setting, as * appropriate... */ cupsArraySave(ppd->options); if (!_cups_strcasecmp(option, "PageSize")) { if ((o = ppdFindOption(ppd, "PageRegion")) != NULL) { key.option = o; if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } } } else { if ((o = ppdFindOption(ppd, "PageSize")) != NULL) { key.option = o; if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } } } cupsArrayRestore(ppd->options); } else if (!_cups_strcasecmp(option, "InputSlot")) { /* * Unmark ManualFeed option... */ cupsArraySave(ppd->options); if ((o = ppdFindOption(ppd, "ManualFeed")) != NULL) { key.option = o; if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } } cupsArrayRestore(ppd->options); } else if (!_cups_strcasecmp(option, "ManualFeed") && !_cups_strcasecmp(choice, "True")) { /* * Unmark InputSlot option... */ cupsArraySave(ppd->options); if ((o = ppdFindOption(ppd, "InputSlot")) != NULL) { key.option = o; if ((oldc = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) != NULL) { oldc->marked = 0; cupsArrayRemove(ppd->marked, oldc); } } cupsArrayRestore(ppd->options); } } c->marked = 1; cupsArrayAdd(ppd->marked, c); } cups-2.4.7/cups/ppd-localize.c0000644000175000017500000004237514502571342016075 0ustar zdohnalzdohnal/* * PPD localization routines for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers. */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * Local functions... */ static cups_lang_t *ppd_ll_CC(char *ll_CC, size_t ll_CC_size); /* * 'ppdLocalize()' - Localize the PPD file to the current locale. * * All groups, options, and choices are localized, as are ICC profile * descriptions, printer presets, and custom option parameters. Each * localized string uses the UTF-8 character encoding. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ ppdLocalize(ppd_file_t *ppd) /* I - PPD file */ { int i, j, k; /* Looping vars */ ppd_group_t *group; /* Current group */ ppd_option_t *option; /* Current option */ ppd_choice_t *choice; /* Current choice */ ppd_coption_t *coption; /* Current custom option */ ppd_cparam_t *cparam; /* Current custom parameter */ ppd_attr_t *attr, /* Current attribute */ *locattr; /* Localized attribute */ char ckeyword[PPD_MAX_NAME], /* Custom keyword */ ll_CC[6]; /* Language + country locale */ /* * Range check input... */ DEBUG_printf(("ppdLocalize(ppd=%p)", ppd)); if (!ppd) return (-1); /* * Get the default language... */ ppd_ll_CC(ll_CC, sizeof(ll_CC)); /* * Now lookup all of the groups, options, choices, etc. */ for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) { if ((locattr = _ppdLocalizedAttr(ppd, "Translation", group->name, ll_CC)) != NULL) strlcpy(group->text, locattr->text, sizeof(group->text)); for (j = group->num_options, option = group->options; j > 0; j --, option ++) { if ((locattr = _ppdLocalizedAttr(ppd, "Translation", option->keyword, ll_CC)) != NULL) strlcpy(option->text, locattr->text, sizeof(option->text)); for (k = option->num_choices, choice = option->choices; k > 0; k --, choice ++) { if (strcmp(choice->choice, "Custom") || !ppdFindCustomOption(ppd, option->keyword)) locattr = _ppdLocalizedAttr(ppd, option->keyword, choice->choice, ll_CC); else { snprintf(ckeyword, sizeof(ckeyword), "Custom%s", option->keyword); locattr = _ppdLocalizedAttr(ppd, ckeyword, "True", ll_CC); } if (locattr) strlcpy(choice->text, locattr->text, sizeof(choice->text)); } } } /* * Translate any custom parameters... */ for (coption = (ppd_coption_t *)cupsArrayFirst(ppd->coptions); coption; coption = (ppd_coption_t *)cupsArrayNext(ppd->coptions)) { for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { snprintf(ckeyword, sizeof(ckeyword), "ParamCustom%s", coption->keyword); if ((locattr = _ppdLocalizedAttr(ppd, ckeyword, cparam->name, ll_CC)) != NULL) strlcpy(cparam->text, locattr->text, sizeof(cparam->text)); } } /* * Translate ICC profile names... */ if ((attr = ppdFindAttr(ppd, "APCustomColorMatchingName", NULL)) != NULL) { if ((locattr = _ppdLocalizedAttr(ppd, "APCustomColorMatchingName", attr->spec, ll_CC)) != NULL) strlcpy(attr->text, locattr->text, sizeof(attr->text)); } for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); attr; attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) { cupsArraySave(ppd->sorted_attrs); if ((locattr = _ppdLocalizedAttr(ppd, "cupsICCProfile", attr->spec, ll_CC)) != NULL) strlcpy(attr->text, locattr->text, sizeof(attr->text)); cupsArrayRestore(ppd->sorted_attrs); } /* * Translate printer presets... */ for (attr = ppdFindAttr(ppd, "APPrinterPreset", NULL); attr; attr = ppdFindNextAttr(ppd, "APPrinterPreset", NULL)) { cupsArraySave(ppd->sorted_attrs); if ((locattr = _ppdLocalizedAttr(ppd, "APPrinterPreset", attr->spec, ll_CC)) != NULL) strlcpy(attr->text, locattr->text, sizeof(attr->text)); cupsArrayRestore(ppd->sorted_attrs); } return (0); } /* * 'ppdLocalizeAttr()' - Localize an attribute. * * This function uses the current locale to find the localized attribute for * the given main and option keywords. If no localized version of the * attribute exists for the current locale, the unlocalized version is returned. */ ppd_attr_t * /* O - Localized attribute or @code NULL@ if none exists */ ppdLocalizeAttr(ppd_file_t *ppd, /* I - PPD file */ const char *keyword, /* I - Main keyword */ const char *spec) /* I - Option keyword or @code NULL@ for none */ { ppd_attr_t *locattr; /* Localized attribute */ char ll_CC[6]; /* Language + country locale */ /* * Get the default language... */ ppd_ll_CC(ll_CC, sizeof(ll_CC)); /* * Find the localized attribute... */ if (spec) locattr = _ppdLocalizedAttr(ppd, keyword, spec, ll_CC); else locattr = _ppdLocalizedAttr(ppd, "Translation", keyword, ll_CC); if (!locattr) locattr = ppdFindAttr(ppd, keyword, spec); return (locattr); } /* * 'ppdLocalizeIPPReason()' - Get the localized version of a cupsIPPReason * attribute. * * This function uses the current locale to find the corresponding reason * text or URI from the attribute value. If "scheme" is NULL or "text", * the returned value contains human-readable (UTF-8) text from the translation * string or attribute value. Otherwise the corresponding URI is returned. * * If no value of the requested scheme can be found, NULL is returned. * * @since CUPS 1.3/macOS 10.5@ */ const char * /* O - Value or NULL if not found */ ppdLocalizeIPPReason( ppd_file_t *ppd, /* I - PPD file */ const char *reason, /* I - IPP reason keyword to look up */ const char *scheme, /* I - URI scheme or NULL for text */ char *buffer, /* I - Value buffer */ size_t bufsize) /* I - Size of value buffer */ { cups_lang_t *lang; /* Current language */ ppd_attr_t *locattr; /* Localized attribute */ char ll_CC[6], /* Language + country locale */ *bufptr, /* Pointer into buffer */ *bufend, /* Pointer to end of buffer */ *valptr; /* Pointer into value */ int ch; /* Hex-encoded character */ size_t schemelen; /* Length of scheme name */ /* * Range check input... */ if (buffer) *buffer = '\0'; if (!ppd || !reason || (scheme && !*scheme) || !buffer || bufsize < PPD_MAX_TEXT) return (NULL); /* * Get the default language... */ lang = ppd_ll_CC(ll_CC, sizeof(ll_CC)); /* * Find the localized attribute... */ if ((locattr = _ppdLocalizedAttr(ppd, "cupsIPPReason", reason, ll_CC)) == NULL) locattr = ppdFindAttr(ppd, "cupsIPPReason", reason); if (!locattr) { if (lang && (!scheme || !strcmp(scheme, "text")) && strcmp(reason, "none")) { /* * Try to localize a standard printer-state-reason keyword... */ char msgid[1024], /* State message identifier */ *ptr; /* Pointer to state suffix */ const char *message = NULL; /* Localized message */ snprintf(msgid, sizeof(msgid), "printer-state-reasons.%s", reason); if ((ptr = strrchr(msgid, '-')) != NULL && (!strcmp(ptr, "-error") || !strcmp(ptr, "-report") || !strcmp(ptr, "-warning"))) *ptr = '\0'; message = _cupsLangString(lang, msgid); if (message && strcmp(message, msgid)) { strlcpy(buffer, _cupsLangString(lang, message), bufsize); return (buffer); } } return (NULL); } /* * Now find the value we need... */ bufend = buffer + bufsize - 1; if (!scheme || !strcmp(scheme, "text")) { /* * Copy a text value (either the translation text or text:... URIs from * the value... */ strlcpy(buffer, locattr->text, bufsize); for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) { if (!strncmp(valptr, "text:", 5)) { /* * Decode text: URI and add to the buffer... */ valptr += 5; while (*valptr && !_cups_isspace(*valptr) && bufptr < bufend) { if (*valptr == '%' && isxdigit(valptr[1] & 255) && isxdigit(valptr[2] & 255)) { /* * Pull a hex-encoded character from the URI... */ valptr ++; if (isdigit(*valptr & 255)) ch = (*valptr - '0') << 4; else ch = (tolower(*valptr) - 'a' + 10) << 4; valptr ++; if (isdigit(*valptr & 255)) *bufptr++ = (char)(ch | (*valptr - '0')); else *bufptr++ = (char)(ch | (tolower(*valptr) - 'a' + 10)); valptr ++; } else if (*valptr == '+') { *bufptr++ = ' '; valptr ++; } else *bufptr++ = *valptr++; } } else { /* * Skip this URI... */ while (*valptr && !_cups_isspace(*valptr)) valptr++; } /* * Skip whitespace... */ while (_cups_isspace(*valptr)) valptr ++; } if (bufptr > buffer) *bufptr = '\0'; return (buffer); } else { /* * Copy a URI... */ schemelen = strlen(scheme); if (scheme[schemelen - 1] == ':') /* Force scheme to be just the name */ schemelen --; for (valptr = locattr->value, bufptr = buffer; *valptr && bufptr < bufend;) { if ((!strncmp(valptr, scheme, schemelen) && valptr[schemelen] == ':') || (*valptr == '/' && !strcmp(scheme, "file"))) { /* * Copy URI... */ while (*valptr && !_cups_isspace(*valptr) && bufptr < bufend) *bufptr++ = *valptr++; *bufptr = '\0'; return (buffer); } else { /* * Skip this URI... */ while (*valptr && !_cups_isspace(*valptr)) valptr++; } /* * Skip whitespace... */ while (_cups_isspace(*valptr)) valptr ++; } return (NULL); } } /* * 'ppdLocalizeMarkerName()' - Get the localized version of a marker-names * attribute value. * * This function uses the current locale to find the corresponding name * text from the attribute value. If no localized text for the requested * name can be found, @code NULL@ is returned. * * @since CUPS 1.4/macOS 10.6@ */ const char * /* O - Value or @code NULL@ if not found */ ppdLocalizeMarkerName( ppd_file_t *ppd, /* I - PPD file */ const char *name) /* I - Marker name to look up */ { ppd_attr_t *locattr; /* Localized attribute */ char ll_CC[6]; /* Language + country locale */ /* * Range check input... */ if (!ppd || !name) return (NULL); /* * Get the default language... */ ppd_ll_CC(ll_CC, sizeof(ll_CC)); /* * Find the localized attribute... */ if ((locattr = _ppdLocalizedAttr(ppd, "cupsMarkerName", name, ll_CC)) == NULL) locattr = ppdFindAttr(ppd, "cupsMarkerName", name); return (locattr ? locattr->text : NULL); } /* * '_ppdFreeLanguages()' - Free an array of languages from _ppdGetLanguages. */ void _ppdFreeLanguages( cups_array_t *languages) /* I - Languages array */ { char *language; /* Current language */ for (language = (char *)cupsArrayFirst(languages); language; language = (char *)cupsArrayNext(languages)) free(language); cupsArrayDelete(languages); } /* * '_ppdGetLanguages()' - Get an array of languages from a PPD file. */ cups_array_t * /* O - Languages array */ _ppdGetLanguages(ppd_file_t *ppd) /* I - PPD file */ { cups_array_t *languages; /* Languages array */ ppd_attr_t *attr; /* cupsLanguages attribute */ char *value, /* Copy of attribute value */ *start, /* Start of current language */ *ptr; /* Pointer into languages */ /* * See if we have a cupsLanguages attribute... */ if ((attr = ppdFindAttr(ppd, "cupsLanguages", NULL)) == NULL || !attr->value) return (NULL); /* * Yes, load the list... */ if ((languages = cupsArrayNew((cups_array_func_t)strcmp, NULL)) == NULL) return (NULL); if ((value = strdup(attr->value)) == NULL) { cupsArrayDelete(languages); return (NULL); } for (ptr = value; *ptr;) { /* * Skip leading whitespace... */ while (_cups_isspace(*ptr)) ptr ++; if (!*ptr) break; /* * Find the end of this language name... */ for (start = ptr; *ptr && !_cups_isspace(*ptr); ptr ++); if (*ptr) *ptr++ = '\0'; if (!strcmp(start, "en")) continue; cupsArrayAdd(languages, strdup(start)); } /* * Free the temporary string and return either an array with one or more * values or a NULL pointer... */ free(value); if (cupsArrayCount(languages) == 0) { cupsArrayDelete(languages); return (NULL); } else return (languages); } /* * '_ppdHashName()' - Generate a hash value for a device or profile name. * * This function is primarily used on macOS, but is generally accessible * since cupstestppd needs to check for profile name collisions in PPD files... */ unsigned /* O - Hash value */ _ppdHashName(const char *name) /* I - Name to hash */ { unsigned mult, /* Multiplier */ hash = 0; /* Hash value */ for (mult = 1; *name && mult <= 128; mult ++, name ++) hash += (*name & 255) * mult; return (hash); } /* * '_ppdLocalizedAttr()' - Find a localized attribute. */ ppd_attr_t * /* O - Localized attribute or NULL */ _ppdLocalizedAttr(ppd_file_t *ppd, /* I - PPD file */ const char *keyword, /* I - Main keyword */ const char *spec, /* I - Option keyword */ const char *ll_CC) /* I - Language + country locale */ { char lkeyword[PPD_MAX_NAME]; /* Localization keyword */ ppd_attr_t *attr; /* Current attribute */ DEBUG_printf(("4_ppdLocalizedAttr(ppd=%p, keyword=\"%s\", spec=\"%s\", " "ll_CC=\"%s\")", ppd, keyword, spec, ll_CC)); /* * Look for Keyword.ll_CC, then Keyword.ll... */ snprintf(lkeyword, sizeof(lkeyword), "%s.%s", ll_CC, keyword); if ((attr = ppdFindAttr(ppd, lkeyword, spec)) == NULL) { /* * * * Multiple locales need special handling... Sigh... */ if (!strcmp(ll_CC, "zh_HK")) { snprintf(lkeyword, sizeof(lkeyword), "zh_TW.%s", keyword); attr = ppdFindAttr(ppd, lkeyword, spec); } if (!attr) { snprintf(lkeyword, sizeof(lkeyword), "%2.2s.%s", ll_CC, keyword); attr = ppdFindAttr(ppd, lkeyword, spec); } if (!attr) { if (!strncmp(ll_CC, "ja", 2)) { /* * Due to a bug in the CUPS DDK 1.1.0 ppdmerge program, Japanese * PPD files were incorrectly assigned "jp" as the locale name * instead of "ja". Support both the old (incorrect) and new * locale names for Japanese... */ snprintf(lkeyword, sizeof(lkeyword), "jp.%s", keyword); attr = ppdFindAttr(ppd, lkeyword, spec); } else if (!strncmp(ll_CC, "nb", 2)) { /* * Norway has two languages, "Bokmal" (the primary one) * and "Nynorsk" (new Norwegian); this code maps from the (currently) * recommended "nb" to the previously recommended "no"... */ snprintf(lkeyword, sizeof(lkeyword), "no.%s", keyword); attr = ppdFindAttr(ppd, lkeyword, spec); } else if (!strncmp(ll_CC, "no", 2)) { /* * Norway has two languages, "Bokmal" (the primary one) * and "Nynorsk" (new Norwegian); we map "no" to "nb" here as * recommended by the locale folks... */ snprintf(lkeyword, sizeof(lkeyword), "nb.%s", keyword); attr = ppdFindAttr(ppd, lkeyword, spec); } } } #ifdef DEBUG if (attr) DEBUG_printf(("5_ppdLocalizedAttr: *%s %s/%s: \"%s\"\n", attr->name, attr->spec, attr->text, attr->value ? attr->value : "")); else DEBUG_puts("5_ppdLocalizedAttr: NOT FOUND"); #endif /* DEBUG */ return (attr); } /* * 'ppd_ll_CC()' - Get the current locale names. */ static cups_lang_t * /* O - Current language */ ppd_ll_CC(char *ll_CC, /* O - Country-specific locale name */ size_t ll_CC_size) /* I - Size of country-specific name */ { cups_lang_t *lang; /* Current language */ /* * Get the current locale... */ if ((lang = cupsLangDefault()) == NULL) { strlcpy(ll_CC, "en_US", ll_CC_size); return (NULL); } /* * Copy the locale name... */ strlcpy(ll_CC, lang->language, ll_CC_size); if (strlen(ll_CC) == 2) { /* * Map "ll" to primary/origin country locales to have the best * chance of finding a match... */ if (!strcmp(ll_CC, "cs")) strlcpy(ll_CC, "cs_CZ", ll_CC_size); else if (!strcmp(ll_CC, "en")) strlcpy(ll_CC, "en_US", ll_CC_size); else if (!strcmp(ll_CC, "ja")) strlcpy(ll_CC, "ja_JP", ll_CC_size); else if (!strcmp(ll_CC, "sv")) strlcpy(ll_CC, "sv_SE", ll_CC_size); else if (!strcmp(ll_CC, "zh")) /* Simplified Chinese */ strlcpy(ll_CC, "zh_CN", ll_CC_size); } DEBUG_printf(("8ppd_ll_CC: lang->language=\"%s\", ll_CC=\"%s\"...", lang->language, ll_CC)); return (lang); } cups-2.4.7/cups/ppd-emit.c0000644000175000017500000007152614502571342015231 0ustar zdohnalzdohnal/* * PPD code emission routines for CUPS. * * Copyright 2007-2019 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include "ppd.h" #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ /* * Local functions... */ static int ppd_compare_cparams(ppd_cparam_t *a, ppd_cparam_t *b); static void ppd_handle_media(ppd_file_t *ppd); /* * Local globals... */ static const char ppd_custom_code[] = "pop pop pop\n" "<>setpagedevice\n"; /* * 'ppdCollect()' - Collect all marked options that reside in the specified * section. * * The choices array should be freed using @code free@ when you are * finished with it. */ int /* O - Number of options marked */ ppdCollect(ppd_file_t *ppd, /* I - PPD file data */ ppd_section_t section, /* I - Section to collect */ ppd_choice_t ***choices) /* O - Pointers to choices */ { return (ppdCollect2(ppd, section, 0.0, choices)); } /* * 'ppdCollect2()' - Collect all marked options that reside in the * specified section and minimum order. * * The choices array should be freed using @code free@ when you are * finished with it. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Number of options marked */ ppdCollect2(ppd_file_t *ppd, /* I - PPD file data */ ppd_section_t section, /* I - Section to collect */ float min_order, /* I - Minimum OrderDependency value */ ppd_choice_t ***choices) /* O - Pointers to choices */ { ppd_choice_t *c; /* Current choice */ ppd_section_t csection; /* Current section */ float corder; /* Current OrderDependency value */ int count; /* Number of choices collected */ ppd_choice_t **collect; /* Collected choices */ float *orders; /* Collected order values */ DEBUG_printf(("ppdCollect2(ppd=%p, section=%d, min_order=%f, choices=%p)", ppd, section, min_order, choices)); if (!ppd || !choices) { if (choices) *choices = NULL; return (0); } /* * Allocate memory for up to N selected choices... */ count = 0; if ((collect = calloc((size_t)cupsArrayCount(ppd->marked), sizeof(ppd_choice_t *))) == NULL) { *choices = NULL; return (0); } if ((orders = calloc((size_t)cupsArrayCount(ppd->marked), sizeof(float))) == NULL) { *choices = NULL; free(collect); return (0); } /* * Loop through all options and add choices as needed... */ for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked); c; c = (ppd_choice_t *)cupsArrayNext(ppd->marked)) { csection = c->option->section; corder = c->option->order; if (!strcmp(c->choice, "Custom")) { ppd_attr_t *attr; /* NonUIOrderDependency value */ float aorder; /* Order value */ char asection[17], /* Section name */ amain[PPD_MAX_NAME + 1], aoption[PPD_MAX_NAME]; /* *CustomFoo and True */ for (attr = ppdFindAttr(ppd, "NonUIOrderDependency", NULL); attr; attr = ppdFindNextAttr(ppd, "NonUIOrderDependency", NULL)) if (attr->value && sscanf(attr->value, "%f%16s%41s%40s", &aorder, asection, amain, aoption) == 4 && !strncmp(amain, "*Custom", 7) && !strcmp(amain + 7, c->option->keyword) && !strcmp(aoption, "True")) { /* * Use this NonUIOrderDependency... */ corder = aorder; if (!strcmp(asection, "DocumentSetup")) csection = PPD_ORDER_DOCUMENT; else if (!strcmp(asection, "ExitServer")) csection = PPD_ORDER_EXIT; else if (!strcmp(asection, "JCLSetup")) csection = PPD_ORDER_JCL; else if (!strcmp(asection, "PageSetup")) csection = PPD_ORDER_PAGE; else if (!strcmp(asection, "Prolog")) csection = PPD_ORDER_PROLOG; else csection = PPD_ORDER_ANY; break; } } if (csection == section && corder >= min_order) { collect[count] = c; orders[count] = corder; count ++; } } /* * If we have more than 1 marked choice, sort them... */ if (count > 1) { int i, j; /* Looping vars */ for (i = 0; i < (count - 1); i ++) for (j = i + 1; j < count; j ++) if (orders[i] > orders[j]) { c = collect[i]; corder = orders[i]; collect[i] = collect[j]; orders[i] = orders[j]; collect[j] = c; orders[j] = corder; } } free(orders); DEBUG_printf(("2ppdCollect2: %d marked choices...", count)); /* * Return the array and number of choices; if 0, free the array since * it isn't needed. */ if (count > 0) { *choices = collect; return (count); } else { *choices = NULL; free(collect); return (0); } } /* * 'ppdEmit()' - Emit code for marked options to a file. */ int /* O - 0 on success, -1 on failure */ ppdEmit(ppd_file_t *ppd, /* I - PPD file record */ FILE *fp, /* I - File to write to */ ppd_section_t section) /* I - Section to write */ { return (ppdEmitAfterOrder(ppd, fp, section, 0, 0.0)); } /* * 'ppdEmitAfterOrder()' - Emit a subset of the code for marked options to a file. * * When "limit" is non-zero, this function only emits options whose * OrderDependency value is greater than or equal to "min_order". * * When "limit" is zero, this function is identical to ppdEmit(). * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on failure */ ppdEmitAfterOrder( ppd_file_t *ppd, /* I - PPD file record */ FILE *fp, /* I - File to write to */ ppd_section_t section, /* I - Section to write */ int limit, /* I - Non-zero to use min_order */ float min_order) /* I - Lowest OrderDependency */ { char *buffer; /* Option code */ int status; /* Return status */ /* * Range check input... */ if (!ppd || !fp) return (-1); /* * Get the string... */ buffer = ppdEmitString(ppd, section, limit ? min_order : 0.0f); /* * Write it as needed and return... */ if (buffer) { status = fputs(buffer, fp) < 0 ? -1 : 0; free(buffer); } else status = 0; return (status); } /* * 'ppdEmitFd()' - Emit code for marked options to a file. */ int /* O - 0 on success, -1 on failure */ ppdEmitFd(ppd_file_t *ppd, /* I - PPD file record */ int fd, /* I - File to write to */ ppd_section_t section) /* I - Section to write */ { char *buffer, /* Option code */ *bufptr; /* Pointer into code */ size_t buflength; /* Length of option code */ ssize_t bytes; /* Bytes written */ int status; /* Return status */ /* * Range check input... */ if (!ppd || fd < 0) return (-1); /* * Get the string... */ buffer = ppdEmitString(ppd, section, 0.0); /* * Write it as needed and return... */ if (buffer) { buflength = strlen(buffer); bufptr = buffer; bytes = 0; while (buflength > 0) { #ifdef _WIN32 if ((bytes = (ssize_t)write(fd, bufptr, (unsigned)buflength)) < 0) #else if ((bytes = write(fd, bufptr, buflength)) < 0) #endif /* _WIN32 */ { if (errno == EAGAIN || errno == EINTR) continue; break; } buflength -= (size_t)bytes; bufptr += bytes; } status = bytes < 0 ? -1 : 0; free(buffer); } else status = 0; return (status); } /* * 'ppdEmitJCL()' - Emit code for JCL options to a file. */ int /* O - 0 on success, -1 on failure */ ppdEmitJCL(ppd_file_t *ppd, /* I - PPD file record */ FILE *fp, /* I - File to write to */ int job_id, /* I - Job ID */ const char *user, /* I - Username */ const char *title) /* I - Title */ { char *ptr; /* Pointer into JCL string */ char temp[65], /* Local title string */ displaymsg[33]; /* Local display string */ /* * Range check the input... */ if (!ppd || !ppd->jcl_begin || !ppd->jcl_ps) return (0); /* * See if the printer supports HP PJL... */ if (!strncmp(ppd->jcl_begin, "\033%-12345X@", 10)) { /* * This printer uses HP PJL commands for output; filter the output * so that we only have a single "@PJL JOB" command in the header... * * To avoid bugs in the PJL implementation of certain vendors' products * (Xerox in particular), we add a dummy "@PJL" command at the beginning * of the PJL commands to initialize PJL processing. */ ppd_attr_t *charset; /* PJL charset */ ppd_attr_t *display; /* PJL display command */ if ((charset = ppdFindAttr(ppd, "cupsPJLCharset", NULL)) != NULL) { if (!charset->value || _cups_strcasecmp(charset->value, "UTF-8")) charset = NULL; } if ((display = ppdFindAttr(ppd, "cupsPJLDisplay", NULL)) != NULL) { if (!display->value) display = NULL; } fputs("\033%-12345X@PJL\n", fp); for (ptr = ppd->jcl_begin + 9; *ptr;) if (!strncmp(ptr, "@PJL JOB", 8)) { /* * Skip job command... */ for (;*ptr; ptr ++) if (*ptr == '\n') break; if (*ptr) ptr ++; } else { /* * Copy line... */ for (;*ptr; ptr ++) { putc(*ptr, fp); if (*ptr == '\n') break; } if (*ptr) ptr ++; } /* * Clean up the job title... */ if (!title) title = "Unknown"; if ((ptr = strrchr(title, '/')) != NULL) { /* * Only show basename of file path... */ title = ptr + 1; } if (!strncmp(title, "smbprn.", 7)) { /* * Skip leading smbprn.######## from Samba jobs... */ for (title += 7; *title && isdigit(*title & 255); title ++); while (_cups_isspace(*title)) title ++; if ((ptr = strstr(title, " - ")) != NULL) { /* * Skip application name in "Some Application - Title of job"... */ title = ptr + 3; } } /* * Replace double quotes with single quotes and UTF-8 characters with * question marks so that the title does not cause a PJL syntax error. */ strlcpy(temp, title, sizeof(temp)); for (ptr = temp; *ptr; ptr ++) if (*ptr == '\"') *ptr = '\''; else if (!charset && (*ptr & 128)) *ptr = '?'; /* * CUPS STR #3125: Long PJL JOB NAME causes problems with some printers * * Generate the display message, truncating at 32 characters + nul to avoid * issues with some printer's PJL implementations... */ if (!user) user = "anonymous"; snprintf(displaymsg, sizeof(displaymsg), "%d %s %s", job_id, user, temp); /* * Send PJL JOB and PJL RDYMSG commands before we enter PostScript mode... */ if (display && strcmp(display->value, "job")) fprintf(fp, "@PJL JOB NAME = \"%s\"\n", temp); else if (display && !strcmp(display->value, "rdymsg")) fprintf(fp, "@PJL RDYMSG DISPLAY = \"%s\"\n", displaymsg); else fprintf(fp, "@PJL JOB NAME = \"%s\" DISPLAY = \"%s\"\n", temp, displaymsg); /* * Replace double quotes with single quotes and UTF-8 characters with * question marks so that the user does not cause a PJL syntax error. */ strlcpy(temp, user, sizeof(temp)); for (ptr = temp; *ptr; ptr ++) if (*ptr == '\"') *ptr = '\''; else if (!charset && (*ptr & 128)) *ptr = '?'; fprintf(fp, "@PJL SET USERNAME = \"%s\"\n", temp); } else fputs(ppd->jcl_begin, fp); ppdEmit(ppd, fp, PPD_ORDER_JCL); fputs(ppd->jcl_ps, fp); return (0); } /* * 'ppdEmitJCLEnd()' - Emit JCLEnd code to a file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on failure */ ppdEmitJCLEnd(ppd_file_t *ppd, /* I - PPD file record */ FILE *fp) /* I - File to write to */ { /* * Range check the input... */ if (!ppd) return (0); if (!ppd->jcl_end) { if (ppd->num_filters == 0) putc(0x04, fp); return (0); } /* * See if the printer supports HP PJL... */ if (!strncmp(ppd->jcl_end, "\033%-12345X@", 10)) { /* * This printer uses HP PJL commands for output; filter the output * so that we only have a single "@PJL JOB" command in the header... * * To avoid bugs in the PJL implementation of certain vendors' products * (Xerox in particular), we add a dummy "@PJL" command at the beginning * of the PJL commands to initialize PJL processing. */ fputs("\033%-12345X@PJL\n", fp); fputs("@PJL RDYMSG DISPLAY = \"\"\n", fp); fputs(ppd->jcl_end + 9, fp); } else fputs(ppd->jcl_end, fp); return (0); } /* * 'ppdEmitString()' - Get a string containing the code for marked options. * * When "min_order" is greater than zero, this function only includes options * whose OrderDependency value is greater than or equal to "min_order". * Otherwise, all options in the specified section are included in the * returned string. * * The return string is allocated on the heap and should be freed using * @code free@ when you are done with it. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - String containing option code or @code NULL@ if there is no option code */ ppdEmitString(ppd_file_t *ppd, /* I - PPD file record */ ppd_section_t section, /* I - Section to write */ float min_order) /* I - Lowest OrderDependency */ { int i, j, /* Looping vars */ count; /* Number of choices */ ppd_choice_t **choices; /* Choices */ ppd_size_t *size; /* Custom page size */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ size_t bufsize; /* Size of string buffer needed */ char *buffer, /* String buffer */ *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ struct lconv *loc; /* Locale data */ DEBUG_printf(("ppdEmitString(ppd=%p, section=%d, min_order=%f)", ppd, section, min_order)); /* * Range check input... */ if (!ppd) return (NULL); /* * Use PageSize or PageRegion as required... */ ppd_handle_media(ppd); /* * Collect the options we need to emit... */ if ((count = ppdCollect2(ppd, section, min_order, &choices)) == 0) return (NULL); /* * Count the number of bytes that are required to hold all of the * option code... */ for (i = 0, bufsize = 1; i < count; i ++) { if (section == PPD_ORDER_JCL) { if (!_cups_strcasecmp(choices[i]->choice, "Custom") && (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) != NULL) { /* * Add space to account for custom parameter substitution... */ for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_POINTS : case PPD_CUSTOM_REAL : case PPD_CUSTOM_INT : bufsize += 10; break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : if (cparam->current.custom_string) bufsize += strlen(cparam->current.custom_string); break; } } } } else if (section != PPD_ORDER_EXIT) { bufsize += 3; /* [{\n */ if ((!_cups_strcasecmp(choices[i]->option->keyword, "PageSize") || !_cups_strcasecmp(choices[i]->option->keyword, "PageRegion")) && !_cups_strcasecmp(choices[i]->choice, "Custom")) { DEBUG_puts("2ppdEmitString: Custom size set!"); bufsize += 37; /* %%BeginFeature: *CustomPageSize True\n */ bufsize += 50; /* Five 9-digit numbers + newline */ } else if (!_cups_strcasecmp(choices[i]->choice, "Custom") && (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) != NULL) { bufsize += 23 + strlen(choices[i]->option->keyword) + 6; /* %%BeginFeature: *Customkeyword True\n */ for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) { switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_POINTS : case PPD_CUSTOM_REAL : case PPD_CUSTOM_INT : bufsize += 10; break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : bufsize += 3; if (cparam->current.custom_string) bufsize += 4 * strlen(cparam->current.custom_string); break; } } } else bufsize += 17 + strlen(choices[i]->option->keyword) + 1 + strlen(choices[i]->choice) + 1; /* %%BeginFeature: *keyword choice\n */ bufsize += 13; /* %%EndFeature\n */ bufsize += 22; /* } stopped cleartomark\n */ } if (choices[i]->code) bufsize += strlen(choices[i]->code) + 1; else bufsize += strlen(ppd_custom_code); } /* * Allocate memory... */ DEBUG_printf(("2ppdEmitString: Allocating %d bytes for string...", (int)bufsize)); if ((buffer = calloc(1, bufsize)) == NULL) { free(choices); return (NULL); } bufend = buffer + bufsize - 1; loc = localeconv(); /* * Copy the option code to the buffer... */ for (i = 0, bufptr = buffer; i < count; i ++, bufptr += strlen(bufptr)) if (section == PPD_ORDER_JCL) { if (!_cups_strcasecmp(choices[i]->choice, "Custom") && choices[i]->code && (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) != NULL) { /* * Handle substitutions in custom JCL options... */ char *cptr; /* Pointer into code */ int pnum; /* Parameter number */ for (cptr = choices[i]->code; *cptr && bufptr < bufend;) { if (*cptr == '\\') { cptr ++; if (isdigit(*cptr & 255)) { /* * Substitute parameter... */ pnum = *cptr++ - '0'; while (isdigit(*cptr & 255)) pnum = pnum * 10 + *cptr++ - '0'; for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) if (cparam->order == pnum) break; if (cparam) { switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_POINTS : case PPD_CUSTOM_REAL : bufptr = _cupsStrFormatd(bufptr, bufend, cparam->current.custom_real, loc); break; case PPD_CUSTOM_INT : snprintf(bufptr, (size_t)(bufend - bufptr), "%d", cparam->current.custom_int); bufptr += strlen(bufptr); break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : if (cparam->current.custom_string) { strlcpy(bufptr, cparam->current.custom_string, (size_t)(bufend - bufptr)); bufptr += strlen(bufptr); } break; } } } else if (*cptr) *bufptr++ = *cptr++; } else *bufptr++ = *cptr++; } } else if (choices[i]->code) { /* * Otherwise just copy the option code directly... */ strlcpy(bufptr, choices[i]->code, (size_t)(bufend - bufptr + 1)); bufptr += strlen(bufptr); } } else if (section != PPD_ORDER_EXIT) { /* * Add wrapper commands to prevent printer errors for unsupported * options... */ strlcpy(bufptr, "[{\n", (size_t)(bufend - bufptr + 1)); bufptr += 3; /* * Send DSC comments with option... */ DEBUG_printf(("2ppdEmitString: Adding code for %s=%s...", choices[i]->option->keyword, choices[i]->choice)); if ((!_cups_strcasecmp(choices[i]->option->keyword, "PageSize") || !_cups_strcasecmp(choices[i]->option->keyword, "PageRegion")) && !_cups_strcasecmp(choices[i]->choice, "Custom")) { /* * Variable size; write out standard size options, using the * parameter positions defined in the PPD file... */ ppd_attr_t *attr; /* PPD attribute */ int pos, /* Position of custom value */ orientation; /* Orientation to use */ float values[5]; /* Values for custom command */ strlcpy(bufptr, "%%BeginFeature: *CustomPageSize True\n", (size_t)(bufend - bufptr + 1)); bufptr += 37; size = ppdPageSize(ppd, "Custom"); memset(values, 0, sizeof(values)); if ((attr = ppdFindAttr(ppd, "ParamCustomPageSize", "Width")) != NULL) { pos = atoi(attr->value) - 1; if (pos < 0 || pos > 4) pos = 0; } else pos = 0; values[pos] = size->width; if ((attr = ppdFindAttr(ppd, "ParamCustomPageSize", "Height")) != NULL) { pos = atoi(attr->value) - 1; if (pos < 0 || pos > 4) pos = 1; } else pos = 1; values[pos] = size->length; /* * According to the Adobe PPD specification, an orientation of 1 * will produce a print that comes out upside-down with the X * axis perpendicular to the direction of feed, which is exactly * what we want to be consistent with non-PS printers. * * We could also use an orientation of 3 to produce output that * comes out rightside-up (this is the default for many large format * printer PPDs), however for consistency we will stick with the * value 1. * * If we wanted to get fancy, we could use orientations of 0 or * 2 and swap the width and length, however we don't want to get * fancy, we just want it to work consistently. * * The orientation value is range limited by the Orientation * parameter definition, so certain non-PS printer drivers that * only support an Orientation of 0 will get the value 0 as * expected. */ orientation = 1; if ((attr = ppdFindAttr(ppd, "ParamCustomPageSize", "Orientation")) != NULL) { int min_orient, max_orient; /* Minimum and maximum orientations */ if (sscanf(attr->value, "%d%*s%d%d", &pos, &min_orient, &max_orient) != 3) pos = 4; else { pos --; if (pos < 0 || pos > 4) pos = 4; if (orientation > max_orient) orientation = max_orient; else if (orientation < min_orient) orientation = min_orient; } } else pos = 4; values[pos] = (float)orientation; for (pos = 0; pos < 5; pos ++) { bufptr = _cupsStrFormatd(bufptr, bufend, values[pos], loc); *bufptr++ = '\n'; } if (!choices[i]->code) { /* * This can happen with certain buggy PPD files that don't include * a CustomPageSize command sequence... We just use a generic * Level 2 command sequence... */ strlcpy(bufptr, ppd_custom_code, (size_t)(bufend - bufptr + 1)); bufptr += strlen(bufptr); } } else if (!_cups_strcasecmp(choices[i]->choice, "Custom") && (coption = ppdFindCustomOption(ppd, choices[i]->option->keyword)) != NULL) { /* * Custom option... */ const char *s; /* Pointer into string value */ cups_array_t *params; /* Parameters in the correct output order */ params = cupsArrayNew((cups_array_func_t)ppd_compare_cparams, NULL); for (cparam = (ppd_cparam_t *)cupsArrayFirst(coption->params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(coption->params)) cupsArrayAdd(params, cparam); snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%%%%BeginFeature: *Custom%s True\n", coption->keyword); bufptr += strlen(bufptr); for (cparam = (ppd_cparam_t *)cupsArrayFirst(params); cparam; cparam = (ppd_cparam_t *)cupsArrayNext(params)) { switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_POINTS : case PPD_CUSTOM_REAL : bufptr = _cupsStrFormatd(bufptr, bufend, cparam->current.custom_real, loc); *bufptr++ = '\n'; break; case PPD_CUSTOM_INT : snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d\n", cparam->current.custom_int); bufptr += strlen(bufptr); break; case PPD_CUSTOM_PASSCODE : case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : *bufptr++ = '('; if (cparam->current.custom_string) { for (s = cparam->current.custom_string; *s; s ++) { if (*s < ' ' || *s == '(' || *s == ')' || *s >= 127) { snprintf(bufptr, (size_t)(bufend - bufptr + 1), "\\%03o", *s & 255); bufptr += strlen(bufptr); } else *bufptr++ = *s; } } *bufptr++ = ')'; *bufptr++ = '\n'; break; } } cupsArrayDelete(params); } else { snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%%%%BeginFeature: *%s %s\n", choices[i]->option->keyword, choices[i]->choice); bufptr += strlen(bufptr); } if (choices[i]->code && choices[i]->code[0]) { j = (int)strlen(choices[i]->code); memcpy(bufptr, choices[i]->code, (size_t)j); bufptr += j; if (choices[i]->code[j - 1] != '\n') *bufptr++ = '\n'; } strlcpy(bufptr, "%%EndFeature\n" "} stopped cleartomark\n", (size_t)(bufend - bufptr + 1)); bufptr += strlen(bufptr); DEBUG_printf(("2ppdEmitString: Offset in string is %d...", (int)(bufptr - buffer))); } else if (choices[i]->code) { strlcpy(bufptr, choices[i]->code, (size_t)(bufend - bufptr + 1)); bufptr += strlen(bufptr); } /* * Nul-terminate, free, and return... */ *bufptr = '\0'; free(choices); return (buffer); } /* * 'ppd_compare_cparams()' - Compare the order of two custom parameters. */ static int /* O - Result of comparison */ ppd_compare_cparams(ppd_cparam_t *a, /* I - First parameter */ ppd_cparam_t *b) /* I - Second parameter */ { return (a->order - b->order); } /* * 'ppd_handle_media()' - Handle media selection... */ static void ppd_handle_media(ppd_file_t *ppd) /* I - PPD file */ { ppd_choice_t *manual_feed, /* ManualFeed choice, if any */ *input_slot; /* InputSlot choice, if any */ ppd_size_t *size; /* Current media size */ ppd_attr_t *rpr; /* RequiresPageRegion value */ /* * This function determines what page size code to use, if any, for the * current media size, InputSlot, and ManualFeed selections. * * We use the PageSize code if: * * 1. A custom media size is selected. * 2. ManualFeed and InputSlot are not selected (or do not exist). * 3. ManualFeed is selected but is False and InputSlot is not selected or * the selection has no code - the latter check done to support "auto" or * "printer default" InputSlot options. * * We use the PageRegion code if: * * 4. RequiresPageRegion does not exist and the PPD contains cupsFilter * keywords, indicating this is a CUPS-based driver. * 5. RequiresPageRegion exists for the selected InputSlot (or "All" for any * InputSlot or ManualFeed selection) and is True. * * If none of the 5 conditions are true, no page size code is used and we * unmark any existing PageSize or PageRegion choices. */ if ((size = ppdPageSize(ppd, NULL)) == NULL) return; manual_feed = ppdFindMarkedChoice(ppd, "ManualFeed"); input_slot = ppdFindMarkedChoice(ppd, "InputSlot"); if (input_slot != NULL) rpr = ppdFindAttr(ppd, "RequiresPageRegion", input_slot->choice); else rpr = NULL; if (!rpr) rpr = ppdFindAttr(ppd, "RequiresPageRegion", "All"); if (!_cups_strcasecmp(size->name, "Custom") || (!manual_feed && !input_slot) || (manual_feed && !_cups_strcasecmp(manual_feed->choice, "False") && (!input_slot || (input_slot->code && !input_slot->code[0]))) || (!rpr && ppd->num_filters > 0)) { /* * Use PageSize code... */ ppdMarkOption(ppd, "PageSize", size->name); } else if (rpr && rpr->value && !_cups_strcasecmp(rpr->value, "True")) { /* * Use PageRegion code... */ ppdMarkOption(ppd, "PageRegion", size->name); } else { /* * Do not use PageSize or PageRegion code... */ ppd_choice_t *page; /* PageSize/Region choice, if any */ if ((page = ppdFindMarkedChoice(ppd, "PageSize")) != NULL) { /* * Unmark PageSize... */ page->marked = 0; cupsArrayRemove(ppd->marked, page); } if ((page = ppdFindMarkedChoice(ppd, "PageRegion")) != NULL) { /* * Unmark PageRegion... */ page->marked = 0; cupsArrayRemove(ppd->marked, page); } } } cups-2.4.7/cups/ppd-custom.c0000644000175000017500000000415314502571342015575 0ustar zdohnalzdohnal/* * PPD custom option routines for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers. */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * 'ppdFindCustomOption()' - Find a custom option. * * @since CUPS 1.2/macOS 10.5@ */ ppd_coption_t * /* O - Custom option or NULL */ ppdFindCustomOption(ppd_file_t *ppd, /* I - PPD file */ const char *keyword)/* I - Custom option name */ { ppd_coption_t key; /* Custom option search key */ if (!ppd) return (NULL); strlcpy(key.keyword, keyword, sizeof(key.keyword)); return ((ppd_coption_t *)cupsArrayFind(ppd->coptions, &key)); } /* * 'ppdFindCustomParam()' - Find a parameter for a custom option. * * @since CUPS 1.2/macOS 10.5@ */ ppd_cparam_t * /* O - Custom parameter or NULL */ ppdFindCustomParam(ppd_coption_t *opt, /* I - Custom option */ const char *name) /* I - Parameter name */ { ppd_cparam_t *param; /* Current custom parameter */ if (!opt) return (NULL); for (param = (ppd_cparam_t *)cupsArrayFirst(opt->params); param; param = (ppd_cparam_t *)cupsArrayNext(opt->params)) if (!_cups_strcasecmp(param->name, name)) break; return (param); } /* * 'ppdFirstCustomParam()' - Return the first parameter for a custom option. * * @since CUPS 1.2/macOS 10.5@ */ ppd_cparam_t * /* O - Custom parameter or NULL */ ppdFirstCustomParam(ppd_coption_t *opt) /* I - Custom option */ { if (!opt) return (NULL); return ((ppd_cparam_t *)cupsArrayFirst(opt->params)); } /* * 'ppdNextCustomParam()' - Return the next parameter for a custom option. * * @since CUPS 1.2/macOS 10.5@ */ ppd_cparam_t * /* O - Custom parameter or NULL */ ppdNextCustomParam(ppd_coption_t *opt) /* I - Custom option */ { if (!opt) return (NULL); return ((ppd_cparam_t *)cupsArrayNext(opt->params)); } cups-2.4.7/cups/ppd-conflicts.c0000644000175000017500000010111614502571342016244 0ustar zdohnalzdohnal/* * Option conflict management routines for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. * * PostScript is a trademark of Adobe Systems, Inc. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * Local constants... */ enum { _PPD_OPTION_CONSTRAINTS, _PPD_INSTALLABLE_CONSTRAINTS, _PPD_ALL_CONSTRAINTS }; /* * Local functions... */ static int ppd_is_installable(ppd_group_t *installable, const char *option); static void ppd_load_constraints(ppd_file_t *ppd); static cups_array_t *ppd_test_constraints(ppd_file_t *ppd, const char *option, const char *choice, int num_options, cups_option_t *options, int which); /* * 'cupsGetConflicts()' - Get a list of conflicting options in a marked PPD. * * This function gets a list of options that would conflict if "option" and * "choice" were marked in the PPD. You would typically call this function * after marking the currently selected options in the PPD in order to * determine whether a new option selection would cause a conflict. * * The number of conflicting options are returned with "options" pointing to * the conflicting options. The returned option array must be freed using * @link cupsFreeOptions@. * * @since CUPS 1.4/macOS 10.6@ */ int /* O - Number of conflicting options */ cupsGetConflicts( ppd_file_t *ppd, /* I - PPD file */ const char *option, /* I - Option to test */ const char *choice, /* I - Choice to test */ cups_option_t **options) /* O - Conflicting options */ { int i, /* Looping var */ num_options; /* Number of conflicting options */ cups_array_t *active; /* Active conflicts */ _ppd_cups_uiconsts_t *c; /* Current constraints */ _ppd_cups_uiconst_t *cptr; /* Current constraint */ ppd_choice_t *marked; /* Marked choice */ /* * Range check input... */ if (options) *options = NULL; if (!ppd || !option || !choice || !options) return (0); /* * Test for conflicts... */ active = ppd_test_constraints(ppd, option, choice, 0, NULL, _PPD_ALL_CONSTRAINTS); /* * Loop through all of the UI constraints and add any options that conflict... */ for (num_options = 0, c = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active); c; c = (_ppd_cups_uiconsts_t *)cupsArrayNext(active)) { for (i = c->num_constraints, cptr = c->constraints; i > 0; i --, cptr ++) if (_cups_strcasecmp(cptr->option->keyword, option)) { if (cptr->choice) num_options = cupsAddOption(cptr->option->keyword, cptr->choice->choice, num_options, options); else if ((marked = ppdFindMarkedChoice(ppd, cptr->option->keyword)) != NULL) num_options = cupsAddOption(cptr->option->keyword, marked->choice, num_options, options); } } cupsArrayDelete(active); return (num_options); } /* * 'cupsResolveConflicts()' - Resolve conflicts in a marked PPD. * * This function attempts to resolve any conflicts in a marked PPD, returning * a list of option changes that are required to resolve them. On input, * "num_options" and "options" contain any pending option changes that have * not yet been marked, while "option" and "choice" contain the most recent * selection which may or may not be in "num_options" or "options". * * On successful return, "num_options" and "options" are updated to contain * "option" and "choice" along with any changes required to resolve conflicts * specified in the PPD file and 1 is returned. * * If option conflicts cannot be resolved, "num_options" and "options" are not * changed and 0 is returned. * * When resolving conflicts, @code cupsResolveConflicts@ does not consider * changes to the current page size (@code media@, @code PageSize@, and * @code PageRegion@) or to the most recent option specified in "option". * Thus, if the only way to resolve a conflict is to change the page size * or the option the user most recently changed, @code cupsResolveConflicts@ * will return 0 to indicate it was unable to resolve the conflicts. * * The @code cupsResolveConflicts@ function uses one of two sources of option * constraint information. The preferred constraint information is defined by * @code cupsUIConstraints@ and @code cupsUIResolver@ attributes - in this * case, the PPD file provides constraint resolution actions. * * The backup constraint information is defined by the * @code UIConstraints@ and @code NonUIConstraints@ attributes. These * constraints are resolved algorithmically by first selecting the default * choice for the conflicting option, then iterating over all possible choices * until a non-conflicting option choice is found. * * @since CUPS 1.4/macOS 10.6@ */ int /* O - 1 on success, 0 on failure */ cupsResolveConflicts( ppd_file_t *ppd, /* I - PPD file */ const char *option, /* I - Newly selected option or @code NULL@ for none */ const char *choice, /* I - Newly selected choice or @code NULL@ for none */ int *num_options, /* IO - Number of additional selected options */ cups_option_t **options) /* IO - Additional selected options */ { int i, /* Looping var */ tries, /* Number of tries */ num_newopts; /* Number of new options */ cups_option_t *newopts; /* New options */ cups_array_t *active = NULL, /* Active constraints */ *pass, /* Resolvers for this pass */ *resolvers, /* Resolvers we have used */ *test; /* Test array for conflicts */ _ppd_cups_uiconsts_t *consts; /* Current constraints */ _ppd_cups_uiconst_t *constptr; /* Current constraint */ ppd_attr_t *resolver; /* Current resolver */ const char *resval; /* Pointer into resolver value */ char resoption[PPD_MAX_NAME], /* Current resolver option */ reschoice[PPD_MAX_NAME], /* Current resolver choice */ *resptr, /* Pointer into option/choice */ firstpage[255]; /* AP_FIRSTPAGE_Keyword string */ const char *value; /* Selected option value */ int changed; /* Did we change anything? */ ppd_choice_t *marked; /* Marked choice */ /* * Range check input... */ if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) return (0); /* * Build a shadow option array... */ num_newopts = 0; newopts = NULL; for (i = 0; i < *num_options; i ++) num_newopts = cupsAddOption((*options)[i].name, (*options)[i].value, num_newopts, &newopts); if (option && _cups_strcasecmp(option, "Collate")) num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); /* * Loop until we have no conflicts... */ cupsArraySave(ppd->sorted_attrs); resolvers = NULL; pass = cupsArrayNew((cups_array_func_t)_cups_strcasecmp, NULL); tries = 0; while (tries < 100 && (active = ppd_test_constraints(ppd, NULL, NULL, num_newopts, newopts, _PPD_ALL_CONSTRAINTS)) != NULL) { tries ++; if (!resolvers) resolvers = cupsArrayNew((cups_array_func_t)_cups_strcasecmp, NULL); for (consts = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active), changed = 0; consts; consts = (_ppd_cups_uiconsts_t *)cupsArrayNext(active)) { if (consts->resolver[0]) { /* * Look up the resolver... */ if (cupsArrayFind(pass, consts->resolver)) continue; /* Already applied this resolver... */ if (cupsArrayFind(resolvers, consts->resolver)) { /* * Resolver loop! */ DEBUG_printf(("1cupsResolveConflicts: Resolver loop with %s!", consts->resolver)); goto error; } if ((resolver = ppdFindAttr(ppd, "cupsUIResolver", consts->resolver)) == NULL) { DEBUG_printf(("1cupsResolveConflicts: Resolver %s not found!", consts->resolver)); goto error; } if (!resolver->value) { DEBUG_printf(("1cupsResolveConflicts: Resolver %s has no value!", consts->resolver)); goto error; } /* * Add the options from the resolver... */ cupsArrayAdd(pass, consts->resolver); cupsArrayAdd(resolvers, consts->resolver); for (resval = resolver->value; *resval && !changed;) { while (_cups_isspace(*resval)) resval ++; if (*resval != '*') break; for (resval ++, resptr = resoption; *resval && !_cups_isspace(*resval); resval ++) if (resptr < (resoption + sizeof(resoption) - 1)) *resptr++ = *resval; *resptr = '\0'; while (_cups_isspace(*resval)) resval ++; for (resptr = reschoice; *resval && !_cups_isspace(*resval); resval ++) if (resptr < (reschoice + sizeof(reschoice) - 1)) *resptr++ = *resval; *resptr = '\0'; if (!resoption[0] || !reschoice[0]) break; /* * Is this the option we are changing? */ snprintf(firstpage, sizeof(firstpage), "AP_FIRSTPAGE_%s", resoption); if (option && (!_cups_strcasecmp(resoption, option) || !_cups_strcasecmp(firstpage, option) || (!_cups_strcasecmp(option, "PageSize") && !_cups_strcasecmp(resoption, "PageRegion")) || (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && !_cups_strcasecmp(resoption, "PageSize")) || (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") && !_cups_strcasecmp(resoption, "PageRegion")) || (!_cups_strcasecmp(option, "PageRegion") && !_cups_strcasecmp(resoption, "PageSize")) || (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && !_cups_strcasecmp(resoption, "PageSize")) || (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion") && !_cups_strcasecmp(resoption, "PageRegion")))) continue; /* * Try this choice... */ if ((test = ppd_test_constraints(ppd, resoption, reschoice, num_newopts, newopts, _PPD_ALL_CONSTRAINTS)) == NULL) { /* * That worked... */ changed = 1; } else cupsArrayDelete(test); /* * Add the option/choice from the resolver regardless of whether it * worked; this makes sure that we can cascade several changes to * make things resolve... */ num_newopts = cupsAddOption(resoption, reschoice, num_newopts, &newopts); } } else { /* * Try resolving by choosing the default values for non-installable * options, then by iterating through the possible choices... */ int j; /* Looping var */ ppd_choice_t *cptr; /* Current choice */ ppd_size_t *size; /* Current page size */ for (i = consts->num_constraints, constptr = consts->constraints; i > 0 && !changed; i --, constptr ++) { /* * Can't resolve by changing an installable option... */ if (constptr->installable) continue; /* * Is this the option we are changing? */ if (option && (!_cups_strcasecmp(constptr->option->keyword, option) || (!_cups_strcasecmp(option, "PageSize") && !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) || (!_cups_strcasecmp(option, "PageRegion") && !_cups_strcasecmp(constptr->option->keyword, "PageSize")))) continue; /* * Get the current option choice... */ if ((value = cupsGetOption(constptr->option->keyword, num_newopts, newopts)) == NULL) { if (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || !_cups_strcasecmp(constptr->option->keyword, "PageRegion")) { if ((value = cupsGetOption("PageSize", num_newopts, newopts)) == NULL) value = cupsGetOption("PageRegion", num_newopts, newopts); if (!value) { if ((size = ppdPageSize(ppd, NULL)) != NULL) value = size->name; else value = ""; } } else { marked = ppdFindMarkedChoice(ppd, constptr->option->keyword); value = marked ? marked->choice : ""; } } if (!_cups_strncasecmp(value, "Custom.", 7)) value = "Custom"; /* * Try the default choice... */ test = NULL; if (_cups_strcasecmp(value, constptr->option->defchoice) && (test = ppd_test_constraints(ppd, constptr->option->keyword, constptr->option->defchoice, num_newopts, newopts, _PPD_OPTION_CONSTRAINTS)) == NULL) { /* * That worked... */ num_newopts = cupsAddOption(constptr->option->keyword, constptr->option->defchoice, num_newopts, &newopts); changed = 1; } else { /* * Try each choice instead... */ for (j = constptr->option->num_choices, cptr = constptr->option->choices; j > 0; j --, cptr ++) { cupsArrayDelete(test); test = NULL; if (_cups_strcasecmp(value, cptr->choice) && _cups_strcasecmp(constptr->option->defchoice, cptr->choice) && _cups_strcasecmp("Custom", cptr->choice) && (test = ppd_test_constraints(ppd, constptr->option->keyword, cptr->choice, num_newopts, newopts, _PPD_OPTION_CONSTRAINTS)) == NULL) { /* * This choice works... */ num_newopts = cupsAddOption(constptr->option->keyword, cptr->choice, num_newopts, &newopts); changed = 1; break; } } cupsArrayDelete(test); } } } } if (!changed) { DEBUG_puts("1cupsResolveConflicts: Unable to automatically resolve " "constraint!"); goto error; } cupsArrayClear(pass); cupsArrayDelete(active); active = NULL; } if (tries >= 100) goto error; /* * Free the caller's option array... */ cupsFreeOptions(*num_options, *options); /* * If Collate is the option we are testing, add it here. Otherwise, remove * any Collate option from the resolve list since the filters automatically * handle manual collation... */ if (option && !_cups_strcasecmp(option, "Collate")) num_newopts = cupsAddOption(option, choice, num_newopts, &newopts); else num_newopts = cupsRemoveOption("Collate", num_newopts, &newopts); /* * Return the new list of options to the caller... */ *num_options = num_newopts; *options = newopts; cupsArrayDelete(pass); cupsArrayDelete(resolvers); cupsArrayRestore(ppd->sorted_attrs); DEBUG_printf(("1cupsResolveConflicts: Returning %d options:", num_newopts)); #ifdef DEBUG for (i = 0; i < num_newopts; i ++) DEBUG_printf(("1cupsResolveConflicts: options[%d]: %s=%s", i, newopts[i].name, newopts[i].value)); #endif /* DEBUG */ return (1); /* * If we get here, we failed to resolve... */ error: cupsFreeOptions(num_newopts, newopts); cupsArrayDelete(active); cupsArrayDelete(pass); cupsArrayDelete(resolvers); cupsArrayRestore(ppd->sorted_attrs); DEBUG_puts("1cupsResolveConflicts: Unable to resolve conflicts!"); return (0); } /* * 'ppdConflicts()' - Check to see if there are any conflicts among the * marked option choices. * * The returned value is the same as returned by @link ppdMarkOption@. */ int /* O - Number of conflicts found */ ppdConflicts(ppd_file_t *ppd) /* I - PPD to check */ { int i, /* Looping variable */ conflicts; /* Number of conflicts */ cups_array_t *active; /* Active conflicts */ _ppd_cups_uiconsts_t *c; /* Current constraints */ _ppd_cups_uiconst_t *cptr; /* Current constraint */ ppd_option_t *o; /* Current option */ if (!ppd) return (0); /* * Clear all conflicts... */ cupsArraySave(ppd->options); for (o = ppdFirstOption(ppd); o; o = ppdNextOption(ppd)) o->conflicted = 0; cupsArrayRestore(ppd->options); /* * Test for conflicts... */ active = ppd_test_constraints(ppd, NULL, NULL, 0, NULL, _PPD_ALL_CONSTRAINTS); conflicts = cupsArrayCount(active); /* * Loop through all of the UI constraints and flag any options * that conflict... */ for (c = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active); c; c = (_ppd_cups_uiconsts_t *)cupsArrayNext(active)) { for (i = c->num_constraints, cptr = c->constraints; i > 0; i --, cptr ++) cptr->option->conflicted = 1; } cupsArrayDelete(active); /* * Return the number of conflicts found... */ return (conflicts); } /* * 'ppdInstallableConflict()' - Test whether an option choice conflicts with * an installable option. * * This function tests whether a particular option choice is available based * on constraints against options in the "InstallableOptions" group. * * @since CUPS 1.4/macOS 10.6@ */ int /* O - 1 if conflicting, 0 if not conflicting */ ppdInstallableConflict( ppd_file_t *ppd, /* I - PPD file */ const char *option, /* I - Option */ const char *choice) /* I - Choice */ { cups_array_t *active; /* Active conflicts */ DEBUG_printf(("2ppdInstallableConflict(ppd=%p, option=\"%s\", choice=\"%s\")", ppd, option, choice)); /* * Range check input... */ if (!ppd || !option || !choice) return (0); /* * Test constraints using the new option... */ active = ppd_test_constraints(ppd, option, choice, 0, NULL, _PPD_INSTALLABLE_CONSTRAINTS); cupsArrayDelete(active); return (active != NULL); } /* * 'ppd_is_installable()' - Determine whether an option is in the * InstallableOptions group. */ static int /* O - 1 if installable, 0 if normal */ ppd_is_installable( ppd_group_t *installable, /* I - InstallableOptions group */ const char *name) /* I - Option name */ { if (installable) { int i; /* Looping var */ ppd_option_t *option; /* Current option */ for (i = installable->num_options, option = installable->options; i > 0; i --, option ++) if (!_cups_strcasecmp(option->keyword, name)) return (1); } return (0); } /* * 'ppd_load_constraints()' - Load constraints from a PPD file. */ static void ppd_load_constraints(ppd_file_t *ppd) /* I - PPD file */ { int i; /* Looping var */ ppd_const_t *oldconst; /* Current UIConstraints data */ ppd_attr_t *constattr; /* Current cupsUIConstraints attribute */ _ppd_cups_uiconsts_t *consts; /* Current cupsUIConstraints data */ _ppd_cups_uiconst_t *constptr; /* Current constraint */ ppd_group_t *installable; /* Installable options group */ const char *vptr; /* Pointer into constraint value */ char option[PPD_MAX_NAME], /* Option name/MainKeyword */ choice[PPD_MAX_NAME], /* Choice/OptionKeyword */ *ptr; /* Pointer into option or choice */ DEBUG_printf(("7ppd_load_constraints(ppd=%p)", ppd)); /* * Create an array to hold the constraint data... */ ppd->cups_uiconstraints = cupsArrayNew(NULL, NULL); /* * Find the installable options group if it exists... */ for (i = ppd->num_groups, installable = ppd->groups; i > 0; i --, installable ++) if (!_cups_strcasecmp(installable->name, "InstallableOptions")) break; if (i <= 0) installable = NULL; /* * Load old-style [Non]UIConstraints data... */ for (i = ppd->num_consts, oldconst = ppd->consts; i > 0; i --, oldconst ++) { /* * Weed out nearby duplicates, since the PPD spec requires that you * define both "*Foo foo *Bar bar" and "*Bar bar *Foo foo"... */ if (i > 1 && !_cups_strcasecmp(oldconst[0].option1, oldconst[1].option2) && !_cups_strcasecmp(oldconst[0].choice1, oldconst[1].choice2) && !_cups_strcasecmp(oldconst[0].option2, oldconst[1].option1) && !_cups_strcasecmp(oldconst[0].choice2, oldconst[1].choice1)) continue; /* * Allocate memory... */ if ((consts = calloc(1, sizeof(_ppd_cups_uiconsts_t))) == NULL) { DEBUG_puts("8ppd_load_constraints: Unable to allocate memory for " "UIConstraints!"); return; } if ((constptr = calloc(2, sizeof(_ppd_cups_uiconst_t))) == NULL) { free(consts); DEBUG_puts("8ppd_load_constraints: Unable to allocate memory for " "UIConstraints!"); return; } /* * Fill in the information... */ consts->num_constraints = 2; consts->constraints = constptr; if (!_cups_strncasecmp(oldconst->option1, "Custom", 6) && !_cups_strcasecmp(oldconst->choice1, "True")) { constptr[0].option = ppdFindOption(ppd, oldconst->option1 + 6); constptr[0].choice = ppdFindChoice(constptr[0].option, "Custom"); constptr[0].installable = 0; } else { constptr[0].option = ppdFindOption(ppd, oldconst->option1); constptr[0].choice = ppdFindChoice(constptr[0].option, oldconst->choice1); constptr[0].installable = ppd_is_installable(installable, oldconst->option1); } if (!constptr[0].option || (!constptr[0].choice && oldconst->choice1[0])) { DEBUG_printf(("8ppd_load_constraints: Unknown option *%s %s!", oldconst->option1, oldconst->choice1)); free(consts->constraints); free(consts); continue; } if (!_cups_strncasecmp(oldconst->option2, "Custom", 6) && !_cups_strcasecmp(oldconst->choice2, "True")) { constptr[1].option = ppdFindOption(ppd, oldconst->option2 + 6); constptr[1].choice = ppdFindChoice(constptr[1].option, "Custom"); constptr[1].installable = 0; } else { constptr[1].option = ppdFindOption(ppd, oldconst->option2); constptr[1].choice = ppdFindChoice(constptr[1].option, oldconst->choice2); constptr[1].installable = ppd_is_installable(installable, oldconst->option2); } if (!constptr[1].option || (!constptr[1].choice && oldconst->choice2[0])) { DEBUG_printf(("8ppd_load_constraints: Unknown option *%s %s!", oldconst->option2, oldconst->choice2)); free(consts->constraints); free(consts); continue; } consts->installable = constptr[0].installable || constptr[1].installable; /* * Add it to the constraints array... */ cupsArrayAdd(ppd->cups_uiconstraints, consts); } /* * Then load new-style constraints... */ for (constattr = ppdFindAttr(ppd, "cupsUIConstraints", NULL); constattr; constattr = ppdFindNextAttr(ppd, "cupsUIConstraints", NULL)) { if (!constattr->value) { DEBUG_puts("8ppd_load_constraints: Bad cupsUIConstraints value!"); continue; } for (i = 0, vptr = strchr(constattr->value, '*'); vptr; i ++, vptr = strchr(vptr + 1, '*')); if (i == 0) { DEBUG_puts("8ppd_load_constraints: Bad cupsUIConstraints value!"); continue; } if ((consts = calloc(1, sizeof(_ppd_cups_uiconsts_t))) == NULL) { DEBUG_puts("8ppd_load_constraints: Unable to allocate memory for " "cupsUIConstraints!"); return; } if ((constptr = calloc((size_t)i, sizeof(_ppd_cups_uiconst_t))) == NULL) { free(consts); DEBUG_puts("8ppd_load_constraints: Unable to allocate memory for " "cupsUIConstraints!"); return; } consts->num_constraints = i; consts->constraints = constptr; strlcpy(consts->resolver, constattr->spec, sizeof(consts->resolver)); for (i = 0, vptr = strchr(constattr->value, '*'); vptr; i ++, vptr = strchr(vptr, '*'), constptr ++) { /* * Extract "*Option Choice" or just "*Option"... */ for (vptr ++, ptr = option; *vptr && !_cups_isspace(*vptr); vptr ++) if (ptr < (option + sizeof(option) - 1)) *ptr++ = *vptr; *ptr = '\0'; while (_cups_isspace(*vptr)) vptr ++; if (*vptr == '*') choice[0] = '\0'; else { for (ptr = choice; *vptr && !_cups_isspace(*vptr); vptr ++) if (ptr < (choice + sizeof(choice) - 1)) *ptr++ = *vptr; *ptr = '\0'; } if (!_cups_strncasecmp(option, "Custom", 6) && !_cups_strcasecmp(choice, "True")) { _cups_strcpy(option, option + 6); strlcpy(choice, "Custom", sizeof(choice)); } constptr->option = ppdFindOption(ppd, option); constptr->choice = ppdFindChoice(constptr->option, choice); constptr->installable = ppd_is_installable(installable, option); consts->installable |= constptr->installable; if (!constptr->option || (!constptr->choice && choice[0])) { DEBUG_printf(("8ppd_load_constraints: Unknown option *%s %s!", option, choice)); break; } } if (!vptr) cupsArrayAdd(ppd->cups_uiconstraints, consts); else { free(consts->constraints); free(consts); } } } /* * 'ppd_test_constraints()' - See if any constraints are active. */ static cups_array_t * /* O - Array of active constraints */ ppd_test_constraints( ppd_file_t *ppd, /* I - PPD file */ const char *option, /* I - Current option */ const char *choice, /* I - Current choice */ int num_options, /* I - Number of additional options */ cups_option_t *options, /* I - Additional options */ int which) /* I - Which constraints to test */ { int i; /* Looping var */ _ppd_cups_uiconsts_t *consts; /* Current constraints */ _ppd_cups_uiconst_t *constptr; /* Current constraint */ ppd_choice_t key, /* Search key */ *marked; /* Marked choice */ cups_array_t *active = NULL; /* Active constraints */ const char *value, /* Current value */ *firstvalue; /* AP_FIRSTPAGE_Keyword value */ char firstpage[255]; /* AP_FIRSTPAGE_Keyword string */ DEBUG_printf(("7ppd_test_constraints(ppd=%p, option=\"%s\", choice=\"%s\", " "num_options=%d, options=%p, which=%d)", ppd, option, choice, num_options, options, which)); if (!ppd->cups_uiconstraints) ppd_load_constraints(ppd); DEBUG_printf(("9ppd_test_constraints: %d constraints!", cupsArrayCount(ppd->cups_uiconstraints))); cupsArraySave(ppd->marked); for (consts = (_ppd_cups_uiconsts_t *)cupsArrayFirst(ppd->cups_uiconstraints); consts; consts = (_ppd_cups_uiconsts_t *)cupsArrayNext(ppd->cups_uiconstraints)) { DEBUG_printf(("9ppd_test_constraints: installable=%d, resolver=\"%s\", " "num_constraints=%d option1=\"%s\", choice1=\"%s\", " "option2=\"%s\", choice2=\"%s\", ...", consts->installable, consts->resolver, consts->num_constraints, consts->constraints[0].option->keyword, consts->constraints[0].choice ? consts->constraints[0].choice->choice : "", consts->constraints[1].option->keyword, consts->constraints[1].choice ? consts->constraints[1].choice->choice : "")); if (consts->installable && which < _PPD_INSTALLABLE_CONSTRAINTS) continue; /* Skip installable option constraint */ if (!consts->installable && which == _PPD_INSTALLABLE_CONSTRAINTS) continue; /* Skip non-installable option constraint */ if ((which == _PPD_OPTION_CONSTRAINTS || which == _PPD_INSTALLABLE_CONSTRAINTS) && option) { /* * Skip constraints that do not involve the current option... */ for (i = consts->num_constraints, constptr = consts->constraints; i > 0; i --, constptr ++) { if (!_cups_strcasecmp(constptr->option->keyword, option)) break; if (!_cups_strncasecmp(option, "AP_FIRSTPAGE_", 13) && !_cups_strcasecmp(constptr->option->keyword, option + 13)) break; } if (!i) continue; } DEBUG_puts("9ppd_test_constraints: Testing..."); for (i = consts->num_constraints, constptr = consts->constraints; i > 0; i --, constptr ++) { DEBUG_printf(("9ppd_test_constraints: %s=%s?", constptr->option->keyword, constptr->choice ? constptr->choice->choice : "")); if (constptr->choice && (!_cups_strcasecmp(constptr->option->keyword, "PageSize") || !_cups_strcasecmp(constptr->option->keyword, "PageRegion"))) { /* * PageSize and PageRegion are used depending on the selected input slot * and manual feed mode. Validate against the selected page size instead * of an individual option... */ if (option && choice && (!_cups_strcasecmp(option, "PageSize") || !_cups_strcasecmp(option, "PageRegion"))) { value = choice; } else if ((value = cupsGetOption("PageSize", num_options, options)) == NULL) if ((value = cupsGetOption("PageRegion", num_options, options)) == NULL) if ((value = cupsGetOption("media", num_options, options)) == NULL) { ppd_size_t *size = ppdPageSize(ppd, NULL); if (size) value = size->name; } if (value && !_cups_strncasecmp(value, "Custom.", 7)) value = "Custom"; if (option && choice && (!_cups_strcasecmp(option, "AP_FIRSTPAGE_PageSize") || !_cups_strcasecmp(option, "AP_FIRSTPAGE_PageRegion"))) { firstvalue = choice; } else if ((firstvalue = cupsGetOption("AP_FIRSTPAGE_PageSize", num_options, options)) == NULL) firstvalue = cupsGetOption("AP_FIRSTPAGE_PageRegion", num_options, options); if (firstvalue && !_cups_strncasecmp(firstvalue, "Custom.", 7)) firstvalue = "Custom"; if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) { DEBUG_puts("9ppd_test_constraints: NO"); break; } } else if (constptr->choice) { /* * Compare against the constrained choice... */ if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) { if (!_cups_strncasecmp(choice, "Custom.", 7)) value = "Custom"; else value = choice; } else if ((value = cupsGetOption(constptr->option->keyword, num_options, options)) != NULL) { if (!_cups_strncasecmp(value, "Custom.", 7)) value = "Custom"; } else if (constptr->choice->marked) value = constptr->choice->choice; else value = NULL; /* * Now check AP_FIRSTPAGE_option... */ snprintf(firstpage, sizeof(firstpage), "AP_FIRSTPAGE_%s", constptr->option->keyword); if (option && choice && !_cups_strcasecmp(option, firstpage)) { if (!_cups_strncasecmp(choice, "Custom.", 7)) firstvalue = "Custom"; else firstvalue = choice; } else if ((firstvalue = cupsGetOption(firstpage, num_options, options)) != NULL) { if (!_cups_strncasecmp(firstvalue, "Custom.", 7)) firstvalue = "Custom"; } else firstvalue = NULL; DEBUG_printf(("9ppd_test_constraints: value=%s, firstvalue=%s", value, firstvalue)); if ((!value || _cups_strcasecmp(value, constptr->choice->choice)) && (!firstvalue || _cups_strcasecmp(firstvalue, constptr->choice->choice))) { DEBUG_puts("9ppd_test_constraints: NO"); break; } } else if (option && choice && !_cups_strcasecmp(option, constptr->option->keyword)) { if (!_cups_strcasecmp(choice, "None") || !_cups_strcasecmp(choice, "Off") || !_cups_strcasecmp(choice, "False")) { DEBUG_puts("9ppd_test_constraints: NO"); break; } } else if ((value = cupsGetOption(constptr->option->keyword, num_options, options)) != NULL) { if (!_cups_strcasecmp(value, "None") || !_cups_strcasecmp(value, "Off") || !_cups_strcasecmp(value, "False")) { DEBUG_puts("9ppd_test_constraints: NO"); break; } } else { key.option = constptr->option; if ((marked = (ppd_choice_t *)cupsArrayFind(ppd->marked, &key)) == NULL || (!_cups_strcasecmp(marked->choice, "None") || !_cups_strcasecmp(marked->choice, "Off") || !_cups_strcasecmp(marked->choice, "False"))) { DEBUG_puts("9ppd_test_constraints: NO"); break; } } } if (i <= 0) { if (!active) active = cupsArrayNew(NULL, NULL); cupsArrayAdd(active, consts); DEBUG_puts("9ppd_test_constraints: Added..."); } } cupsArrayRestore(ppd->marked); DEBUG_printf(("8ppd_test_constraints: Found %d active constraints!", cupsArrayCount(active))); return (active); } cups-2.4.7/cups/ppd-cache.c0000644000175000017500000052732014502571342015334 0ustar zdohnalzdohnal/* * PPD cache implementation for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2010-2021 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" #include /* * Macro to test for two almost-equal PWG measurements. */ #define _PWG_EQUIVALENT(x, y) (abs((x)-(y)) < 2) /* * Local functions... */ static int cups_connect(http_t **http, const char *url, char *resource, size_t ressize); static int cups_get_url(http_t **http, const char *url, char *name, size_t namesize); static const char *ppd_inputslot_for_keyword(_ppd_cache_t *pc, const char *keyword); static void pwg_add_finishing(cups_array_t *finishings, ipp_finishings_t template, const char *name, const char *value); static void pwg_add_message(cups_array_t *a, const char *msg, const char *str); static int pwg_compare_finishings(_pwg_finishings_t *a, _pwg_finishings_t *b); static int pwg_compare_sizes(cups_size_t *a, cups_size_t *b); static cups_size_t *pwg_copy_size(cups_size_t *size); static void pwg_free_finishings(_pwg_finishings_t *f); static void pwg_ppdize_name(const char *ipp, char *name, size_t namesize); static void pwg_ppdize_resolution(ipp_attribute_t *attr, int element, int *xres, int *yres, char *name, size_t namesize); static void pwg_unppdize_name(const char *ppd, char *name, size_t namesize, const char *dashchars); /* * '_cupsConvertOptions()' - Convert printer options to standard IPP attributes. * * This functions converts PPD and CUPS-specific options to their standard IPP * attributes and values and adds them to the specified IPP request. */ int /* O - New number of copies */ _cupsConvertOptions( ipp_t *request, /* I - IPP request */ ppd_file_t *ppd, /* I - PPD file */ _ppd_cache_t *pc, /* I - PPD cache info */ ipp_attribute_t *media_col_sup, /* I - media-col-supported values */ ipp_attribute_t *doc_handling_sup, /* I - multiple-document-handling-supported values */ ipp_attribute_t *print_color_mode_sup, /* I - Printer supports print-color-mode */ const char *user, /* I - User info */ const char *format, /* I - document-format value */ int copies, /* I - Number of copies */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { int i; /* Looping var */ const char *keyword, /* PWG keyword */ *password; /* Password string */ pwg_size_t *size; /* PWG media size */ ipp_t *media_col, /* media-col value */ *media_size; /* media-size value */ const char *media_source, /* media-source value */ *media_type, /* media-type value */ *collate_str, /* multiple-document-handling value */ *color_attr_name, /* Supported color attribute */ *mandatory, /* Mandatory attributes */ *finishing_template; /* Finishing template */ int num_finishings = 0, /* Number of finishing values */ finishings[10]; /* Finishing enum values */ ppd_choice_t *choice; /* Marked choice */ int finishings_copies = copies, /* Number of copies for finishings */ job_pages = 0, /* job-pages value */ number_up = 1; /* number-up value */ const char *value; /* Option value */ /* * Send standard IPP attributes... */ if (pc->password && (password = cupsGetOption("job-password", num_options, options)) != NULL && ippGetOperation(request) != IPP_OP_VALIDATE_JOB) { ipp_attribute_t *attr = NULL; /* job-password attribute */ if ((keyword = cupsGetOption("job-password-encryption", num_options, options)) == NULL) keyword = "none"; if (!strcmp(keyword, "none")) { /* * Add plain-text job-password... */ attr = ippAddOctetString(request, IPP_TAG_OPERATION, "job-password", password, (int)strlen(password)); } else { /* * Add hashed job-password... */ unsigned char hash[64]; /* Hash of password */ ssize_t hashlen; /* Length of hash */ if ((hashlen = cupsHashData(keyword, password, strlen(password), hash, sizeof(hash))) > 0) attr = ippAddOctetString(request, IPP_TAG_OPERATION, "job-password", hash, (int)hashlen); } if (attr) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "job-password-encryption", NULL, keyword); } if (pc->account_id) { if ((keyword = cupsGetOption("job-account-id", num_options, options)) == NULL) keyword = cupsGetOption("job-billing", num_options, options); if (keyword) ippAddString(request, IPP_TAG_JOB, IPP_TAG_NAME, "job-account-id", NULL, keyword); } if (pc->accounting_user_id) { if ((keyword = cupsGetOption("job-accounting-user-id", num_options, options)) == NULL) keyword = user; if (keyword) ippAddString(request, IPP_TAG_JOB, IPP_TAG_NAME, "job-accounting-user-id", NULL, keyword); } for (mandatory = (const char *)cupsArrayFirst(pc->mandatory); mandatory; mandatory = (const char *)cupsArrayNext(pc->mandatory)) { if (strcmp(mandatory, "copies") && strcmp(mandatory, "destination-uris") && strcmp(mandatory, "finishings") && strcmp(mandatory, "finishings-col") && strcmp(mandatory, "finishing-template") && strcmp(mandatory, "job-account-id") && strcmp(mandatory, "job-accounting-user-id") && strcmp(mandatory, "job-password") && strcmp(mandatory, "job-password-encryption") && strcmp(mandatory, "media") && strncmp(mandatory, "media-col", 9) && strcmp(mandatory, "multiple-document-handling") && strcmp(mandatory, "output-bin") && strcmp(mandatory, "print-color-mode") && strcmp(mandatory, "print-quality") && strcmp(mandatory, "sides") && (keyword = cupsGetOption(mandatory, num_options, options)) != NULL) { _ipp_option_t *opt = _ippFindOption(mandatory); /* Option type */ ipp_tag_t value_tag = opt ? opt->value_tag : IPP_TAG_NAME; /* Value type */ switch (value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : ippAddInteger(request, IPP_TAG_JOB, value_tag, mandatory, atoi(keyword)); break; case IPP_TAG_BOOLEAN : ippAddBoolean(request, IPP_TAG_JOB, mandatory, !_cups_strcasecmp(keyword, "true")); break; case IPP_TAG_RANGE : { int lower, upper; /* Range */ if (sscanf(keyword, "%d-%d", &lower, &upper) != 2) lower = upper = atoi(keyword); ippAddRange(request, IPP_TAG_JOB, mandatory, lower, upper); } break; case IPP_TAG_STRING : ippAddOctetString(request, IPP_TAG_JOB, mandatory, keyword, (int)strlen(keyword)); break; default : if (!strcmp(mandatory, "print-color-mode") && !strcmp(keyword, "monochrome")) { if (ippContainsString(print_color_mode_sup, "auto-monochrome")) keyword = "auto-monochrome"; else if (ippContainsString(print_color_mode_sup, "process-monochrome") && !ippContainsString(print_color_mode_sup, "monochrome")) keyword = "process-monochrome"; } ippAddString(request, IPP_TAG_JOB, value_tag, mandatory, NULL, keyword); break; } } } if ((keyword = cupsGetOption("PageSize", num_options, options)) == NULL) keyword = cupsGetOption("media", num_options, options); media_source = _ppdCacheGetSource(pc, cupsGetOption("InputSlot", num_options, options)); media_type = _ppdCacheGetType(pc, cupsGetOption("MediaType", num_options, options)); size = _ppdCacheGetSize(pc, keyword); if (size || media_source || media_type) { /* * Add a media-col value... */ media_col = ippNew(); if (size) { media_size = ippNew(); ippAddInteger(media_size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "x-dimension", size->width); ippAddInteger(media_size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "y-dimension", size->length); ippAddCollection(media_col, IPP_TAG_ZERO, "media-size", media_size); } for (i = 0; i < media_col_sup->num_values; i ++) { if (size && !strcmp(media_col_sup->values[i].string.text, "media-left-margin")) ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-left-margin", size->left); else if (size && !strcmp(media_col_sup->values[i].string.text, "media-bottom-margin")) ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-bottom-margin", size->bottom); else if (size && !strcmp(media_col_sup->values[i].string.text, "media-right-margin")) ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-right-margin", size->right); else if (size && !strcmp(media_col_sup->values[i].string.text, "media-top-margin")) ippAddInteger(media_col, IPP_TAG_ZERO, IPP_TAG_INTEGER, "media-top-margin", size->top); else if (media_source && !strcmp(media_col_sup->values[i].string.text, "media-source")) ippAddString(media_col, IPP_TAG_ZERO, IPP_TAG_KEYWORD, "media-source", NULL, media_source); else if (media_type && !strcmp(media_col_sup->values[i].string.text, "media-type")) ippAddString(media_col, IPP_TAG_ZERO, IPP_TAG_KEYWORD, "media-type", NULL, media_type); } ippAddCollection(request, IPP_TAG_JOB, "media-col", media_col); } if ((keyword = cupsGetOption("output-bin", num_options, options)) == NULL) { if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) keyword = _ppdCacheGetBin(pc, choice->choice); } if (keyword) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "output-bin", NULL, keyword); color_attr_name = print_color_mode_sup ? "print-color-mode" : "output-mode"; /* * If we use PPD with standardized PPD option for color support - ColorModel, * prefer it to don't break color/grayscale support for PPDs, either classic * or the ones generated from IPP Get-Printer-Attributes response. */ if ((keyword = cupsGetOption("ColorModel", num_options, options)) == NULL) { /* * No ColorModel in options... */ if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) { /* * ColorModel is taken from PPD as its default option. */ if (!strcmp(choice->choice, "Gray") || !strcmp(choice->choice, "FastGray") || !strcmp(choice->choice, "DeviceGray")) keyword = "monochrome"; else keyword = "color"; } else /* * print-color-mode is a default option since 2.4.1, use it as a fallback if there is no * ColorModel in options or PPD... */ keyword = cupsGetOption("print-color-mode", num_options, options); } else { /* * ColorModel found in options... */ if (!strcmp(keyword, "Gray") || !strcmp(keyword, "FastGray") || !strcmp(keyword, "DeviceGray")) keyword = "monochrome"; else keyword = "color"; } if (keyword && !strcmp(keyword, "monochrome")) { if (ippContainsString(print_color_mode_sup, "auto-monochrome")) keyword = "auto-monochrome"; else if (ippContainsString(print_color_mode_sup, "process-monochrome") && !ippContainsString(print_color_mode_sup, "monochrome")) keyword = "process-monochrome"; } if (keyword) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, color_attr_name, NULL, keyword); if ((keyword = cupsGetOption("print-quality", num_options, options)) != NULL) ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", atoi(keyword)); else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) { if (!_cups_strcasecmp(choice->choice, "draft")) ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", IPP_QUALITY_DRAFT); else if (!_cups_strcasecmp(choice->choice, "normal")) ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", IPP_QUALITY_NORMAL); else if (!_cups_strcasecmp(choice->choice, "high")) ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", IPP_QUALITY_HIGH); } if ((keyword = cupsGetOption("sides", num_options, options)) != NULL) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "sides", NULL, keyword); else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) { if (pc->sides_1sided && !_cups_strcasecmp(choice->choice, pc->sides_1sided)) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "sides", NULL, "one-sided"); else if (pc->sides_2sided_long && !_cups_strcasecmp(choice->choice, pc->sides_2sided_long)) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "sides", NULL, "two-sided-long-edge"); else if (pc->sides_2sided_short && !_cups_strcasecmp(choice->choice, pc->sides_2sided_short)) ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "sides", NULL, "two-sided-short-edge"); } /* * Copies... */ if ((keyword = cupsGetOption("multiple-document-handling", num_options, options)) != NULL) { if (strstr(keyword, "uncollated")) keyword = "false"; else keyword = "true"; } else if ((keyword = cupsGetOption("collate", num_options, options)) == NULL) keyword = "true"; if (format) { if (!_cups_strcasecmp(format, "image/gif") || !_cups_strcasecmp(format, "image/jp2") || !_cups_strcasecmp(format, "image/jpeg") || !_cups_strcasecmp(format, "image/png") || !_cups_strcasecmp(format, "image/tiff") || !_cups_strncasecmp(format, "image/x-", 8)) { /* * Collation makes no sense for single page image formats... */ keyword = "false"; } else if (!_cups_strncasecmp(format, "image/", 6) || !_cups_strcasecmp(format, "application/vnd.cups-raster")) { /* * Multi-page image formats will have copies applied by the upstream * filters... */ copies = 1; } } if (doc_handling_sup) { if (!_cups_strcasecmp(keyword, "true")) collate_str = "separate-documents-collated-copies"; else collate_str = "separate-documents-uncollated-copies"; for (i = 0; i < doc_handling_sup->num_values; i ++) { if (!strcmp(doc_handling_sup->values[i].string.text, collate_str)) { ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "multiple-document-handling", NULL, collate_str); break; } } if (i >= doc_handling_sup->num_values) copies = 1; } /* * Map finishing options... */ if (copies != finishings_copies) { // Figure out the proper job-pages-per-set value... if ((value = cupsGetOption("job-pages", num_options, options)) == NULL) value = cupsGetOption("com.apple.print.PrintSettings.PMTotalBeginPages..n.", num_options, options); if (value) { if ((job_pages = atoi(value)) < 1) job_pages = 1; } // Adjust for number-up if ((value = cupsGetOption("number-up", num_options, options)) != NULL) { if ((number_up = atoi(value)) < 1) number_up = 1; } job_pages = (job_pages + number_up - 1) / number_up; // When duplex printing, raster data will include an extra (blank) page to // make the total number of pages even. Make sure this is reflected in the // page count... if ((job_pages & 1) && (keyword = cupsGetOption("sides", num_options, options)) != NULL && strcmp(keyword, "one-sided")) job_pages ++; } if ((finishing_template = cupsGetOption("cupsFinishingTemplate", num_options, options)) == NULL) finishing_template = cupsGetOption("finishing-template", num_options, options); if (finishing_template && strcmp(finishing_template, "none")) { ipp_t *fin_col = ippNew(); /* finishings-col value */ ippAddString(fin_col, IPP_TAG_JOB, IPP_TAG_KEYWORD, "finishing-template", NULL, finishing_template); ippAddCollection(request, IPP_TAG_JOB, "finishings-col", fin_col); ippDelete(fin_col); if (copies != finishings_copies && job_pages > 0) { /* * Send job-pages-per-set attribute to apply finishings correctly... */ ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-pages-per-set", job_pages); } } else { num_finishings = _ppdCacheGetFinishingValues(ppd, pc, (int)(sizeof(finishings) / sizeof(finishings[0])), finishings); if (num_finishings > 0) { ippAddIntegers(request, IPP_TAG_JOB, IPP_TAG_ENUM, "finishings", num_finishings, finishings); if (copies != finishings_copies && job_pages > 0) { /* * Send job-pages-per-set attribute to apply finishings correctly... */ ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-pages-per-set", job_pages); } } } return (copies); } /* * '_ppdCacheCreateWithFile()' - Create PPD cache and mapping data from a * written file. * * Use the @link _ppdCacheWriteFile@ function to write PWG mapping data to a * file. */ _ppd_cache_t * /* O - PPD cache and mapping data */ _ppdCacheCreateWithFile( const char *filename, /* I - File to read */ ipp_t **attrs) /* IO - IPP attributes, if any */ { cups_file_t *fp; /* File */ _ppd_cache_t *pc; /* PWG mapping data */ pwg_size_t *size; /* Current size */ pwg_map_t *map; /* Current map */ _pwg_finishings_t *finishings; /* Current finishings option */ int linenum, /* Current line number */ num_bins, /* Number of bins in file */ num_sizes, /* Number of sizes in file */ num_sources, /* Number of sources in file */ num_types; /* Number of types in file */ char line[2048], /* Current line */ *value, /* Pointer to value in line */ *valueptr, /* Pointer into value */ pwg_keyword[128], /* PWG keyword */ ppd_keyword[PPD_MAX_NAME]; /* PPD keyword */ _pwg_print_color_mode_t print_color_mode; /* Print color mode for preset */ _pwg_print_quality_t print_quality; /* Print quality for preset */ DEBUG_printf(("_ppdCacheCreateWithFile(filename=\"%s\")", filename)); /* * Range check input... */ if (attrs) *attrs = NULL; if (!filename) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Open the file... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (NULL); } /* * Read the first line and make sure it has "#CUPS-PPD-CACHE-version" in it... */ if (!cupsFileGets(fp, line, sizeof(line))) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); DEBUG_puts("_ppdCacheCreateWithFile: Unable to read first line."); cupsFileClose(fp); return (NULL); } if (strncmp(line, "#CUPS-PPD-CACHE-", 16)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); DEBUG_printf(("_ppdCacheCreateWithFile: Wrong first line \"%s\".", line)); cupsFileClose(fp); return (NULL); } if (atoi(line + 16) != _PPD_CACHE_VERSION) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Out of date PPD cache file."), 1); DEBUG_printf(("_ppdCacheCreateWithFile: Cache file has version %s, " "expected %d.", line + 16, _PPD_CACHE_VERSION)); cupsFileClose(fp); return (NULL); } /* * Allocate the mapping data structure... */ if ((pc = calloc(1, sizeof(_ppd_cache_t))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); DEBUG_puts("_ppdCacheCreateWithFile: Unable to allocate _ppd_cache_t."); goto create_error; } pc->max_copies = 9999; /* * Read the file... */ linenum = 0; num_bins = 0; num_sizes = 0; num_sources = 0; num_types = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { DEBUG_printf(("_ppdCacheCreateWithFile: line=\"%s\", value=\"%s\", " "linenum=%d", line, value, linenum)); if (!value) { DEBUG_printf(("_ppdCacheCreateWithFile: Missing value on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } else if (!_cups_strcasecmp(line, "Filter")) { if (!pc->filters) pc->filters = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); cupsArrayAdd(pc->filters, value); } else if (!_cups_strcasecmp(line, "PreFilter")) { if (!pc->prefilters) pc->prefilters = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); cupsArrayAdd(pc->prefilters, value); } else if (!_cups_strcasecmp(line, "Product")) { pc->product = strdup(value); } else if (!_cups_strcasecmp(line, "SingleFile")) { pc->single_file = !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(line, "IPP")) { off_t pos = cupsFileTell(fp), /* Position in file */ length = strtol(value, NULL, 10); /* Length of IPP attributes */ if (attrs && *attrs) { DEBUG_puts("_ppdCacheCreateWithFile: IPP listed multiple times."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } else if (length <= 0) { DEBUG_puts("_ppdCacheCreateWithFile: Bad IPP length."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (attrs) { /* * Read IPP attributes into the provided variable... */ *attrs = ippNew(); if (ippReadIO(fp, (ipp_iocb_t)cupsFileRead, 1, NULL, *attrs) != IPP_STATE_DATA) { DEBUG_puts("_ppdCacheCreateWithFile: Bad IPP data."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } } else { /* * Skip the IPP data entirely... */ cupsFileSeek(fp, pos + length); } if (cupsFileTell(fp) != (pos + length)) { DEBUG_puts("_ppdCacheCreateWithFile: Bad IPP data."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } } else if (!_cups_strcasecmp(line, "NumBins")) { if (num_bins > 0) { DEBUG_puts("_ppdCacheCreateWithFile: NumBins listed multiple times."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((num_bins = atoi(value)) <= 0 || num_bins > 65536) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad NumBins value %d on line " "%d.", num_sizes, linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((pc->bins = calloc((size_t)num_bins, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithFile: Unable to allocate %d bins.", num_sizes)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto create_error; } } else if (!_cups_strcasecmp(line, "Bin")) { if (sscanf(value, "%127s%40s", pwg_keyword, ppd_keyword) != 2) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad Bin on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (pc->num_bins >= num_bins) { DEBUG_printf(("_ppdCacheCreateWithFile: Too many Bin's on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } map = pc->bins + pc->num_bins; map->pwg = strdup(pwg_keyword); map->ppd = strdup(ppd_keyword); pc->num_bins ++; } else if (!_cups_strcasecmp(line, "NumSizes")) { if (num_sizes > 0) { DEBUG_puts("_ppdCacheCreateWithFile: NumSizes listed multiple times."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((num_sizes = atoi(value)) < 0 || num_sizes > 65536) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad NumSizes value %d on line " "%d.", num_sizes, linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (num_sizes > 0) { if ((pc->sizes = calloc((size_t)num_sizes, sizeof(pwg_size_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithFile: Unable to allocate %d sizes.", num_sizes)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto create_error; } } } else if (!_cups_strcasecmp(line, "Size")) { if (pc->num_sizes >= num_sizes) { DEBUG_printf(("_ppdCacheCreateWithFile: Too many Size's on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } size = pc->sizes + pc->num_sizes; if (sscanf(value, "%127s%40s%d%d%d%d%d%d", pwg_keyword, ppd_keyword, &(size->width), &(size->length), &(size->left), &(size->bottom), &(size->right), &(size->top)) != 8) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad Size on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } size->map.pwg = strdup(pwg_keyword); size->map.ppd = strdup(ppd_keyword); pc->num_sizes ++; } else if (!_cups_strcasecmp(line, "CustomSize")) { if (pc->custom_max_width > 0) { DEBUG_printf(("_ppdCacheCreateWithFile: Too many CustomSize's on line " "%d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (sscanf(value, "%d%d%d%d%d%d%d%d", &(pc->custom_max_width), &(pc->custom_max_length), &(pc->custom_min_width), &(pc->custom_min_length), &(pc->custom_size.left), &(pc->custom_size.bottom), &(pc->custom_size.right), &(pc->custom_size.top)) != 8) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad CustomSize on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } pwgFormatSizeName(pwg_keyword, sizeof(pwg_keyword), "custom", "max", pc->custom_max_width, pc->custom_max_length, NULL); pc->custom_max_keyword = strdup(pwg_keyword); pwgFormatSizeName(pwg_keyword, sizeof(pwg_keyword), "custom", "min", pc->custom_min_width, pc->custom_min_length, NULL); pc->custom_min_keyword = strdup(pwg_keyword); } else if (!_cups_strcasecmp(line, "SourceOption")) { pc->source_option = strdup(value); } else if (!_cups_strcasecmp(line, "NumSources")) { if (num_sources > 0) { DEBUG_puts("_ppdCacheCreateWithFile: NumSources listed multiple " "times."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((num_sources = atoi(value)) <= 0 || num_sources > 65536) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad NumSources value %d on " "line %d.", num_sources, linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((pc->sources = calloc((size_t)num_sources, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithFile: Unable to allocate %d sources.", num_sources)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto create_error; } } else if (!_cups_strcasecmp(line, "Source")) { if (sscanf(value, "%127s%40s", pwg_keyword, ppd_keyword) != 2) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad Source on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (pc->num_sources >= num_sources) { DEBUG_printf(("_ppdCacheCreateWithFile: Too many Source's on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } map = pc->sources + pc->num_sources; map->pwg = strdup(pwg_keyword); map->ppd = strdup(ppd_keyword); pc->num_sources ++; } else if (!_cups_strcasecmp(line, "NumTypes")) { if (num_types > 0) { DEBUG_puts("_ppdCacheCreateWithFile: NumTypes listed multiple times."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((num_types = atoi(value)) <= 0 || num_types > 65536) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad NumTypes value %d on " "line %d.", num_types, linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if ((pc->types = calloc((size_t)num_types, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithFile: Unable to allocate %d types.", num_types)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); goto create_error; } } else if (!_cups_strcasecmp(line, "Type")) { if (sscanf(value, "%127s%40s", pwg_keyword, ppd_keyword) != 2) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad Type on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (pc->num_types >= num_types) { DEBUG_printf(("_ppdCacheCreateWithFile: Too many Type's on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } map = pc->types + pc->num_types; map->pwg = strdup(pwg_keyword); map->ppd = strdup(ppd_keyword); pc->num_types ++; } else if (!_cups_strcasecmp(line, "Preset")) { /* * Preset output-mode print-quality name=value ... */ print_color_mode = (_pwg_print_color_mode_t)strtol(value, &valueptr, 10); print_quality = (_pwg_print_quality_t)strtol(valueptr, &valueptr, 10); if (print_color_mode < _PWG_PRINT_COLOR_MODE_MONOCHROME || print_color_mode >= _PWG_PRINT_COLOR_MODE_MAX || print_quality < _PWG_PRINT_QUALITY_DRAFT || print_quality >= _PWG_PRINT_QUALITY_MAX || valueptr == value || !*valueptr) { DEBUG_printf(("_ppdCacheCreateWithFile: Bad Preset on line %d.", linenum)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } pc->num_presets[print_color_mode][print_quality] = cupsParseOptions(valueptr, 0, pc->presets[print_color_mode] + print_quality); } else if (!_cups_strcasecmp(line, "SidesOption")) pc->sides_option = strdup(value); else if (!_cups_strcasecmp(line, "Sides1Sided")) pc->sides_1sided = strdup(value); else if (!_cups_strcasecmp(line, "Sides2SidedLong")) pc->sides_2sided_long = strdup(value); else if (!_cups_strcasecmp(line, "Sides2SidedShort")) pc->sides_2sided_short = strdup(value); else if (!_cups_strcasecmp(line, "Finishings")) { if (!pc->finishings) pc->finishings = cupsArrayNew3((cups_array_func_t)pwg_compare_finishings, NULL, NULL, 0, NULL, (cups_afree_func_t)pwg_free_finishings); if ((finishings = calloc(1, sizeof(_pwg_finishings_t))) == NULL) goto create_error; finishings->value = (ipp_finishings_t)strtol(value, &valueptr, 10); finishings->num_options = cupsParseOptions(valueptr, 0, &(finishings->options)); cupsArrayAdd(pc->finishings, finishings); } else if (!_cups_strcasecmp(line, "FinishingTemplate")) { if (!pc->templates) pc->templates = cupsArrayNew3((cups_array_func_t)strcmp, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); cupsArrayAdd(pc->templates, value); } else if (!_cups_strcasecmp(line, "MaxCopies")) pc->max_copies = atoi(value); else if (!_cups_strcasecmp(line, "ChargeInfoURI")) pc->charge_info_uri = strdup(value); else if (!_cups_strcasecmp(line, "JobAccountId")) pc->account_id = !_cups_strcasecmp(value, "true"); else if (!_cups_strcasecmp(line, "JobAccountingUserId")) pc->accounting_user_id = !_cups_strcasecmp(value, "true"); else if (!_cups_strcasecmp(line, "JobPassword")) pc->password = strdup(value); else if (!_cups_strcasecmp(line, "Mandatory")) { if (pc->mandatory) _cupsArrayAddStrings(pc->mandatory, value, ' '); else pc->mandatory = _cupsArrayNewStrings(value, ' '); } else if (!_cups_strcasecmp(line, "SupportFile")) { if (!pc->support_files) pc->support_files = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); cupsArrayAdd(pc->support_files, value); } else { DEBUG_printf(("_ppdCacheCreateWithFile: Unknown %s on line %d.", line, linenum)); } } if (pc->num_sizes < num_sizes) { DEBUG_printf(("_ppdCacheCreateWithFile: Not enough sizes (%d < %d).", pc->num_sizes, num_sizes)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (pc->num_sources < num_sources) { DEBUG_printf(("_ppdCacheCreateWithFile: Not enough sources (%d < %d).", pc->num_sources, num_sources)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } if (pc->num_types < num_types) { DEBUG_printf(("_ppdCacheCreateWithFile: Not enough types (%d < %d).", pc->num_types, num_types)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad PPD cache file."), 1); goto create_error; } cupsFileClose(fp); return (pc); /* * If we get here the file was bad - free any data and return... */ create_error: cupsFileClose(fp); _ppdCacheDestroy(pc); if (attrs) { ippDelete(*attrs); *attrs = NULL; } return (NULL); } /* * '_ppdCacheCreateWithPPD()' - Create PWG mapping data from a PPD file. */ _ppd_cache_t * /* O - PPD cache and mapping data */ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */ { int i, j, k; /* Looping vars */ _ppd_cache_t *pc; /* PWG mapping data */ ppd_option_t *input_slot, /* InputSlot option */ *media_type, /* MediaType option */ *output_bin, /* OutputBin option */ *color_model, /* ColorModel option */ *duplex, /* Duplex option */ *ppd_option; /* Other PPD option */ ppd_choice_t *choice; /* Current InputSlot/MediaType */ pwg_map_t *map; /* Current source/type map */ ppd_attr_t *ppd_attr; /* Current PPD preset attribute */ int num_options; /* Number of preset options and props */ cups_option_t *options; /* Preset options and properties */ ppd_size_t *ppd_size; /* Current PPD size */ pwg_size_t *pwg_size; /* Current PWG size */ char pwg_keyword[3 + PPD_MAX_NAME + 1 + 12 + 1 + 12 + 3], /* PWG keyword string */ ppd_name[PPD_MAX_NAME]; /* Normalized PPD name */ const char *pwg_name; /* Standard PWG media name */ pwg_media_t *pwg_media; /* PWG media data */ _pwg_print_color_mode_t pwg_print_color_mode; /* print-color-mode index */ _pwg_print_quality_t pwg_print_quality; /* print-quality index */ int similar; /* Are the old and new size similar? */ pwg_size_t *old_size; /* Current old size */ int old_imageable, /* Old imageable length in 2540ths */ old_borderless, /* Old borderless state */ old_known_pwg; /* Old PWG name is well-known */ int new_width, /* New width in 2540ths */ new_length, /* New length in 2540ths */ new_left, /* New left margin in 2540ths */ new_bottom, /* New bottom margin in 2540ths */ new_right, /* New right margin in 2540ths */ new_top, /* New top margin in 2540ths */ new_imageable, /* New imageable length in 2540ths */ new_borderless, /* New borderless state */ new_known_pwg; /* New PWG name is well-known */ pwg_size_t *new_size; /* New size to add, if any */ const char *filter; /* Current filter */ _pwg_finishings_t *finishings; /* Current finishings value */ char msg_id[256]; /* Message identifier */ DEBUG_printf(("_ppdCacheCreateWithPPD(ppd=%p)", ppd)); /* * Range check input... */ if (!ppd) return (NULL); /* * Allocate memory... */ if ((pc = calloc(1, sizeof(_ppd_cache_t))) == NULL) { DEBUG_puts("_ppdCacheCreateWithPPD: Unable to allocate _ppd_cache_t."); goto create_error; } pc->strings = _cupsMessageNew(NULL); /* * Copy and convert size data... */ if (ppd->num_sizes > 0) { if ((pc->sizes = calloc((size_t)ppd->num_sizes, sizeof(pwg_size_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithPPD: Unable to allocate %d " "pwg_size_t's.", ppd->num_sizes)); goto create_error; } for (i = ppd->num_sizes, pwg_size = pc->sizes, ppd_size = ppd->sizes; i > 0; i --, ppd_size ++) { /* * Don't copy over custom size... */ if (!_cups_strcasecmp(ppd_size->name, "Custom")) continue; /* * Convert the PPD size name to the corresponding PWG keyword name. */ if ((pwg_media = pwgMediaForSize(PWG_FROM_POINTS(ppd_size->width), PWG_FROM_POINTS(ppd_size->length))) != NULL) { /* * Standard name, do we have conflicts? */ for (j = 0; j < pc->num_sizes; j ++) if (!strcmp(pc->sizes[j].map.pwg, pwg_media->pwg)) { pwg_media = NULL; break; } } if (pwg_media) { /* * Standard name and no conflicts, use it! */ pwg_name = pwg_media->pwg; new_known_pwg = 1; } else { /* * Not a standard name; convert it to a PWG vendor name of the form: * * pp_lowerppd_WIDTHxHEIGHTuu */ pwg_name = pwg_keyword; new_known_pwg = 0; pwg_unppdize_name(ppd_size->name, ppd_name, sizeof(ppd_name), "_."); pwgFormatSizeName(pwg_keyword, sizeof(pwg_keyword), NULL, ppd_name, PWG_FROM_POINTS(ppd_size->width), PWG_FROM_POINTS(ppd_size->length), NULL); } /* * If we have a similar paper with non-zero margins then we only want to * keep it if it has a larger imageable area length. The NULL check is for * dimensions that are <= 0... */ if ((pwg_media = _pwgMediaNearSize(PWG_FROM_POINTS(ppd_size->width), PWG_FROM_POINTS(ppd_size->length), 0)) == NULL) continue; new_width = pwg_media->width; new_length = pwg_media->length; new_left = PWG_FROM_POINTS(ppd_size->left); new_bottom = PWG_FROM_POINTS(ppd_size->bottom); new_right = PWG_FROM_POINTS(ppd_size->width - ppd_size->right); new_top = PWG_FROM_POINTS(ppd_size->length - ppd_size->top); new_imageable = new_length - new_top - new_bottom; new_borderless = new_bottom == 0 && new_top == 0 && new_left == 0 && new_right == 0; for (k = pc->num_sizes, similar = 0, old_size = pc->sizes, new_size = NULL; k > 0 && !similar; k --, old_size ++) { old_imageable = old_size->length - old_size->top - old_size->bottom; old_borderless = old_size->left == 0 && old_size->bottom == 0 && old_size->right == 0 && old_size->top == 0; old_known_pwg = strncmp(old_size->map.pwg, "oe_", 3) && strncmp(old_size->map.pwg, "om_", 3); similar = old_borderless == new_borderless && _PWG_EQUIVALENT(old_size->width, new_width) && _PWG_EQUIVALENT(old_size->length, new_length); if (similar && (new_known_pwg || (!old_known_pwg && new_imageable > old_imageable))) { /* * The new paper has a larger imageable area so it could replace * the older paper. Regardless of the imageable area, we always * prefer the size with a well-known PWG name. */ new_size = old_size; free(old_size->map.ppd); free(old_size->map.pwg); } } if (!similar) { /* * The paper was unique enough to deserve its own entry so add it to the * end. */ new_size = pwg_size ++; pc->num_sizes ++; } if (new_size) { /* * Save this size... */ new_size->map.ppd = strdup(ppd_size->name); new_size->map.pwg = strdup(pwg_name); new_size->width = new_width; new_size->length = new_length; new_size->left = new_left; new_size->bottom = new_bottom; new_size->right = new_right; new_size->top = new_top; } } } if (ppd->variable_sizes) { /* * Generate custom size data... */ pwgFormatSizeName(pwg_keyword, sizeof(pwg_keyword), "custom", "max", PWG_FROM_POINTS(ppd->custom_max[0]), PWG_FROM_POINTS(ppd->custom_max[1]), NULL); pc->custom_max_keyword = strdup(pwg_keyword); pc->custom_max_width = PWG_FROM_POINTS(ppd->custom_max[0]); pc->custom_max_length = PWG_FROM_POINTS(ppd->custom_max[1]); pwgFormatSizeName(pwg_keyword, sizeof(pwg_keyword), "custom", "min", PWG_FROM_POINTS(ppd->custom_min[0]), PWG_FROM_POINTS(ppd->custom_min[1]), NULL); pc->custom_min_keyword = strdup(pwg_keyword); pc->custom_min_width = PWG_FROM_POINTS(ppd->custom_min[0]); pc->custom_min_length = PWG_FROM_POINTS(ppd->custom_min[1]); pc->custom_size.left = PWG_FROM_POINTS(ppd->custom_margins[0]); pc->custom_size.bottom = PWG_FROM_POINTS(ppd->custom_margins[1]); pc->custom_size.right = PWG_FROM_POINTS(ppd->custom_margins[2]); pc->custom_size.top = PWG_FROM_POINTS(ppd->custom_margins[3]); } /* * Copy and convert InputSlot data... */ if ((input_slot = ppdFindOption(ppd, "InputSlot")) == NULL) input_slot = ppdFindOption(ppd, "HPPaperSource"); if (input_slot) { pc->source_option = strdup(input_slot->keyword); if ((pc->sources = calloc((size_t)input_slot->num_choices, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithPPD: Unable to allocate %d " "pwg_map_t's for InputSlot.", input_slot->num_choices)); goto create_error; } pc->num_sources = input_slot->num_choices; for (i = input_slot->num_choices, choice = input_slot->choices, map = pc->sources; i > 0; i --, choice ++, map ++) { if (!_cups_strncasecmp(choice->choice, "Auto", 4) || !_cups_strcasecmp(choice->choice, "Default")) pwg_name = "auto"; else if (!_cups_strcasecmp(choice->choice, "Cassette")) pwg_name = "main"; else if (!_cups_strcasecmp(choice->choice, "PhotoTray")) pwg_name = "photo"; else if (!_cups_strcasecmp(choice->choice, "CDTray")) pwg_name = "disc"; else if (!_cups_strncasecmp(choice->choice, "Multipurpose", 12) || !_cups_strcasecmp(choice->choice, "MP") || !_cups_strcasecmp(choice->choice, "MPTray")) pwg_name = "by-pass-tray"; else if (!_cups_strcasecmp(choice->choice, "LargeCapacity")) pwg_name = "large-capacity"; else if (!_cups_strncasecmp(choice->choice, "Lower", 5)) pwg_name = "bottom"; else if (!_cups_strncasecmp(choice->choice, "Middle", 6)) pwg_name = "middle"; else if (!_cups_strncasecmp(choice->choice, "Upper", 5)) pwg_name = "top"; else if (!_cups_strncasecmp(choice->choice, "Side", 4)) pwg_name = "side"; else if (!_cups_strcasecmp(choice->choice, "Roll")) pwg_name = "main-roll"; else { /* * Convert PPD name to lowercase... */ pwg_name = pwg_keyword; pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); } map->pwg = strdup(pwg_name); map->ppd = strdup(choice->choice); /* * Add localized text for PWG keyword to message catalog... */ snprintf(msg_id, sizeof(msg_id), "media-source.%s", pwg_name); pwg_add_message(pc->strings, msg_id, choice->text); } } /* * Copy and convert MediaType data... */ if ((media_type = ppdFindOption(ppd, "MediaType")) != NULL) { static const struct { const char *ppd_name; /* PPD MediaType name or prefix to match */ int match_length; /* Length of prefix, or -1 to match entire string */ const char *pwg_name; /* Registered PWG media-type name to use */ } standard_types[] = { {"Auto", 4, "auto"}, {"Any", -1, "auto"}, {"Default", -1, "auto"}, {"Card", 4, "cardstock"}, {"Env", 3, "envelope"}, {"Gloss", 5, "photographic-glossy"}, {"HighGloss", -1, "photographic-high-gloss"}, {"Matte", -1, "photographic-matte"}, {"Plain", 5, "stationery"}, {"Coated", 6, "stationery-coated"}, {"Inkjet", -1, "stationery-inkjet"}, {"Letterhead", -1, "stationery-letterhead"}, {"Preprint", 8, "stationery-preprinted"}, {"Recycled", -1, "stationery-recycled"}, {"Transparen", 10, "transparency"}, }; const size_t num_standard_types = sizeof(standard_types) / sizeof(standard_types[0]); /* Length of the standard_types array */ int match_counts[sizeof(standard_types) / sizeof(standard_types[0])] = {0}; /* Number of matches for each standard type */ if ((pc->types = calloc((size_t)media_type->num_choices, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithPPD: Unable to allocate %d " "pwg_map_t's for MediaType.", media_type->num_choices)); goto create_error; } pc->num_types = media_type->num_choices; for (i = media_type->num_choices, choice = media_type->choices, map = pc->types; i > 0; i --, choice ++, map ++) { pwg_name = NULL; for (j = 0; j < num_standard_types; j ++) { if (standard_types[j].match_length <= 0) { if (!_cups_strcasecmp(choice->choice, standard_types[j].ppd_name)) { pwg_name = standard_types[j].pwg_name; match_counts[j] ++; } } else if (!_cups_strncasecmp(choice->choice, standard_types[j].ppd_name, standard_types[j].match_length)) { pwg_name = standard_types[j].pwg_name; match_counts[j] ++; } } if (!pwg_name) { /* * Convert PPD name to lowercase... */ pwg_name = pwg_keyword; pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); } map->pwg = strdup(pwg_name); map->ppd = strdup(choice->choice); } /* * Since three PPD name patterns can map to "auto", their match counts * should each be the count of all three combined. */ i = match_counts[0] + match_counts[1] + match_counts[2]; match_counts[0] = match_counts[1] = match_counts[2] = i; for (i = 0, choice = media_type->choices, map = pc->types; i < media_type->num_choices; i ++, choice ++, map ++) { /* * If there are two matches for any standard PWG media type, don't give * the PWG name to either one. */ for (j = 0; j < num_standard_types; j ++) { if (match_counts[j] > 1 && !strcmp(map->pwg, standard_types[j].pwg_name)) { free(map->pwg); pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); map->pwg = strdup(pwg_keyword); } } /* * Add localized text for PWG keyword to message catalog... */ snprintf(msg_id, sizeof(msg_id), "media-type.%s", map->pwg); pwg_add_message(pc->strings, msg_id, choice->text); } } /* * Copy and convert OutputBin data... */ if ((output_bin = ppdFindOption(ppd, "OutputBin")) != NULL) { if ((pc->bins = calloc((size_t)output_bin->num_choices, sizeof(pwg_map_t))) == NULL) { DEBUG_printf(("_ppdCacheCreateWithPPD: Unable to allocate %d " "pwg_map_t's for OutputBin.", output_bin->num_choices)); goto create_error; } pc->num_bins = output_bin->num_choices; for (i = output_bin->num_choices, choice = output_bin->choices, map = pc->bins; i > 0; i --, choice ++, map ++) { pwg_unppdize_name(choice->choice, pwg_keyword, sizeof(pwg_keyword), "_"); map->pwg = strdup(pwg_keyword); map->ppd = strdup(choice->choice); /* * Add localized text for PWG keyword to message catalog... */ snprintf(msg_id, sizeof(msg_id), "output-bin.%s", pwg_keyword); pwg_add_message(pc->strings, msg_id, choice->text); } } if ((ppd_attr = ppdFindAttr(ppd, "APPrinterPreset", NULL)) != NULL) { /* * Copy and convert APPrinterPreset (output-mode + print-quality) data... */ const char *quality, /* com.apple.print.preset.quality value */ *output_mode, /* com.apple.print.preset.output-mode value */ *color_model_val, /* ColorModel choice */ *graphicsType, /* com.apple.print.preset.graphicsType value */ *media_front_coating; /* com.apple.print.preset.media-front-coating value */ do { /* * Add localized text for PWG keyword to message catalog... */ snprintf(msg_id, sizeof(msg_id), "preset-name.%s", ppd_attr->spec); pwg_add_message(pc->strings, msg_id, ppd_attr->text); /* * Get the options for this preset... */ num_options = _ppdParseOptions(ppd_attr->value, 0, &options, _PPD_PARSE_ALL); if ((quality = cupsGetOption("com.apple.print.preset.quality", num_options, options)) != NULL) { /* * Get the print-quality for this preset... */ if (!strcmp(quality, "low")) pwg_print_quality = _PWG_PRINT_QUALITY_DRAFT; else if (!strcmp(quality, "high")) pwg_print_quality = _PWG_PRINT_QUALITY_HIGH; else pwg_print_quality = _PWG_PRINT_QUALITY_NORMAL; /* * Ignore graphicsType "Photo" presets that are not high quality. */ graphicsType = cupsGetOption("com.apple.print.preset.graphicsType", num_options, options); if (pwg_print_quality != _PWG_PRINT_QUALITY_HIGH && graphicsType && !strcmp(graphicsType, "Photo")) continue; /* * Ignore presets for normal and draft quality where the coating * isn't "none" or "autodetect". */ media_front_coating = cupsGetOption( "com.apple.print.preset.media-front-coating", num_options, options); if (pwg_print_quality != _PWG_PRINT_QUALITY_HIGH && media_front_coating && strcmp(media_front_coating, "none") && strcmp(media_front_coating, "autodetect")) continue; /* * Get the output mode for this preset... */ output_mode = cupsGetOption("com.apple.print.preset.output-mode", num_options, options); color_model_val = cupsGetOption("ColorModel", num_options, options); if (output_mode) { if (!strcmp(output_mode, "monochrome")) pwg_print_color_mode = _PWG_PRINT_COLOR_MODE_MONOCHROME; else pwg_print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; } else if (color_model_val) { if (!_cups_strcasecmp(color_model_val, "Gray")) pwg_print_color_mode = _PWG_PRINT_COLOR_MODE_MONOCHROME; else pwg_print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; } else pwg_print_color_mode = _PWG_PRINT_COLOR_MODE_COLOR; /* * Save the options for this combination as needed... */ if (!pc->num_presets[pwg_print_color_mode][pwg_print_quality]) pc->num_presets[pwg_print_color_mode][pwg_print_quality] = _ppdParseOptions(ppd_attr->value, 0, pc->presets[pwg_print_color_mode] + pwg_print_quality, _PPD_PARSE_OPTIONS); } cupsFreeOptions(num_options, options); } while ((ppd_attr = ppdFindNextAttr(ppd, "APPrinterPreset", NULL)) != NULL); } if (!pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][_PWG_PRINT_QUALITY_DRAFT] && !pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][_PWG_PRINT_QUALITY_NORMAL] && !pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][_PWG_PRINT_QUALITY_HIGH]) { /* * Try adding some common color options to create grayscale presets. These * are listed in order of popularity... */ const char *color_option = NULL, /* Color control option */ *gray_choice = NULL; /* Choice to select grayscale */ if ((color_model = ppdFindOption(ppd, "ColorModel")) != NULL && ppdFindChoice(color_model, "Gray")) { color_option = "ColorModel"; gray_choice = "Gray"; } else if ((color_model = ppdFindOption(ppd, "HPColorMode")) != NULL && ppdFindChoice(color_model, "grayscale")) { color_option = "HPColorMode"; gray_choice = "grayscale"; } else if ((color_model = ppdFindOption(ppd, "BRMonoColor")) != NULL && ppdFindChoice(color_model, "Mono")) { color_option = "BRMonoColor"; gray_choice = "Mono"; } else if ((color_model = ppdFindOption(ppd, "CNIJSGrayScale")) != NULL && ppdFindChoice(color_model, "1")) { color_option = "CNIJSGrayScale"; gray_choice = "1"; } else if ((color_model = ppdFindOption(ppd, "HPColorAsGray")) != NULL && ppdFindChoice(color_model, "True")) { color_option = "HPColorAsGray"; gray_choice = "True"; } if (color_option && gray_choice) { /* * Copy and convert ColorModel (output-mode) data... */ cups_option_t *coption, /* Color option */ *moption; /* Monochrome option */ for (pwg_print_quality = _PWG_PRINT_QUALITY_DRAFT; pwg_print_quality < _PWG_PRINT_QUALITY_MAX; pwg_print_quality ++) { if (pc->num_presets[_PWG_PRINT_COLOR_MODE_COLOR][pwg_print_quality]) { /* * Copy the color options... */ num_options = pc->num_presets[_PWG_PRINT_COLOR_MODE_COLOR] [pwg_print_quality]; options = calloc((size_t)num_options, sizeof(cups_option_t)); if (options) { for (i = num_options, moption = options, coption = pc->presets[_PWG_PRINT_COLOR_MODE_COLOR] [pwg_print_quality]; i > 0; i --, moption ++, coption ++) { moption->name = _cupsStrRetain(coption->name); moption->value = _cupsStrRetain(coption->value); } pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][pwg_print_quality] = num_options; pc->presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][pwg_print_quality] = options; } } else if (pwg_print_quality != _PWG_PRINT_QUALITY_NORMAL) continue; /* * Add the grayscale option to the preset... */ pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME][pwg_print_quality] = cupsAddOption(color_option, gray_choice, pc->num_presets[_PWG_PRINT_COLOR_MODE_MONOCHROME] [pwg_print_quality], pc->presets[_PWG_PRINT_COLOR_MODE_MONOCHROME] + pwg_print_quality); } } } /* * Copy and convert Duplex (sides) data... */ if ((duplex = ppdFindOption(ppd, "Duplex")) == NULL) if ((duplex = ppdFindOption(ppd, "JCLDuplex")) == NULL) if ((duplex = ppdFindOption(ppd, "EFDuplex")) == NULL) if ((duplex = ppdFindOption(ppd, "EFDuplexing")) == NULL) duplex = ppdFindOption(ppd, "KD03Duplex"); if (duplex) { pc->sides_option = strdup(duplex->keyword); for (i = duplex->num_choices, choice = duplex->choices; i > 0; i --, choice ++) { if ((!_cups_strcasecmp(choice->choice, "None") || !_cups_strcasecmp(choice->choice, "False")) && !pc->sides_1sided) pc->sides_1sided = strdup(choice->choice); else if ((!_cups_strcasecmp(choice->choice, "DuplexNoTumble") || !_cups_strcasecmp(choice->choice, "LongEdge") || !_cups_strcasecmp(choice->choice, "Top")) && !pc->sides_2sided_long) pc->sides_2sided_long = strdup(choice->choice); else if ((!_cups_strcasecmp(choice->choice, "DuplexTumble") || !_cups_strcasecmp(choice->choice, "ShortEdge") || !_cups_strcasecmp(choice->choice, "Bottom")) && !pc->sides_2sided_short) pc->sides_2sided_short = strdup(choice->choice); } } /* * Copy filters and pre-filters... */ pc->filters = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); cupsArrayAdd(pc->filters, "application/vnd.cups-raw application/octet-stream 0 -"); if ((ppd_attr = ppdFindAttr(ppd, "cupsFilter2", NULL)) != NULL) { do { cupsArrayAdd(pc->filters, ppd_attr->value); } while ((ppd_attr = ppdFindNextAttr(ppd, "cupsFilter2", NULL)) != NULL); } else if (ppd->num_filters > 0) { for (i = 0; i < ppd->num_filters; i ++) cupsArrayAdd(pc->filters, ppd->filters[i]); } else cupsArrayAdd(pc->filters, "application/vnd.cups-postscript 0 -"); /* * See if we have a command filter... */ for (filter = (const char *)cupsArrayFirst(pc->filters); filter; filter = (const char *)cupsArrayNext(pc->filters)) if (!_cups_strncasecmp(filter, "application/vnd.cups-command", 28) && _cups_isspace(filter[28])) break; if (!filter && ((ppd_attr = ppdFindAttr(ppd, "cupsCommands", NULL)) == NULL || _cups_strcasecmp(ppd_attr->value, "none"))) { /* * No command filter and no cupsCommands keyword telling us not to use one. * See if this is a PostScript printer, and if so add a PostScript command * filter... */ for (filter = (const char *)cupsArrayFirst(pc->filters); filter; filter = (const char *)cupsArrayNext(pc->filters)) if (!_cups_strncasecmp(filter, "application/vnd.cups-postscript", 31) && _cups_isspace(filter[31])) break; if (filter) cupsArrayAdd(pc->filters, "application/vnd.cups-command application/postscript 100 " "commandtops"); } if ((ppd_attr = ppdFindAttr(ppd, "cupsPreFilter", NULL)) != NULL) { pc->prefilters = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); do { cupsArrayAdd(pc->prefilters, ppd_attr->value); } while ((ppd_attr = ppdFindNextAttr(ppd, "cupsPreFilter", NULL)) != NULL); } if ((ppd_attr = ppdFindAttr(ppd, "cupsSingleFile", NULL)) != NULL) pc->single_file = !_cups_strcasecmp(ppd_attr->value, "true"); /* * Copy the product string, if any... */ if (ppd->product) pc->product = strdup(ppd->product); /* * Copy finishings mapping data... */ if ((ppd_attr = ppdFindAttr(ppd, "cupsIPPFinishings", NULL)) != NULL) { /* * Have proper vendor mapping of IPP finishings values to PPD options... */ pc->finishings = cupsArrayNew3((cups_array_func_t)pwg_compare_finishings, NULL, NULL, 0, NULL, (cups_afree_func_t)pwg_free_finishings); do { if ((finishings = calloc(1, sizeof(_pwg_finishings_t))) == NULL) goto create_error; finishings->value = (ipp_finishings_t)atoi(ppd_attr->spec); finishings->num_options = _ppdParseOptions(ppd_attr->value, 0, &(finishings->options), _PPD_PARSE_OPTIONS); cupsArrayAdd(pc->finishings, finishings); } while ((ppd_attr = ppdFindNextAttr(ppd, "cupsIPPFinishings", NULL)) != NULL); } else { /* * No IPP mapping data, try to map common/standard PPD keywords... */ pc->finishings = cupsArrayNew3((cups_array_func_t)pwg_compare_finishings, NULL, NULL, 0, NULL, (cups_afree_func_t)pwg_free_finishings); if ((ppd_option = ppdFindOption(ppd, "StapleLocation")) != NULL) { /* * Add staple finishings... */ if (ppdFindChoice(ppd_option, "SinglePortrait")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_STAPLE_TOP_LEFT, "StapleLocation", "SinglePortrait"); if (ppdFindChoice(ppd_option, "UpperLeft")) /* Ricoh extension */ pwg_add_finishing(pc->finishings, IPP_FINISHINGS_STAPLE_TOP_LEFT, "StapleLocation", "UpperLeft"); if (ppdFindChoice(ppd_option, "UpperRight")) /* Ricoh extension */ pwg_add_finishing(pc->finishings, IPP_FINISHINGS_STAPLE_TOP_RIGHT, "StapleLocation", "UpperRight"); if (ppdFindChoice(ppd_option, "SingleLandscape")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, "StapleLocation", "SingleLandscape"); if (ppdFindChoice(ppd_option, "DualLandscape")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_STAPLE_DUAL_LEFT, "StapleLocation", "DualLandscape"); } if ((ppd_option = ppdFindOption(ppd, "RIPunch")) != NULL) { /* * Add (Ricoh) punch finishings... */ if (ppdFindChoice(ppd_option, "Left2")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_DUAL_LEFT, "RIPunch", "Left2"); if (ppdFindChoice(ppd_option, "Left3")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, "RIPunch", "Left3"); if (ppdFindChoice(ppd_option, "Left4")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_QUAD_LEFT, "RIPunch", "Left4"); if (ppdFindChoice(ppd_option, "Right2")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_DUAL_RIGHT, "RIPunch", "Right2"); if (ppdFindChoice(ppd_option, "Right3")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, "RIPunch", "Right3"); if (ppdFindChoice(ppd_option, "Right4")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_QUAD_RIGHT, "RIPunch", "Right4"); if (ppdFindChoice(ppd_option, "Upper2")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_DUAL_TOP, "RIPunch", "Upper2"); if (ppdFindChoice(ppd_option, "Upper3")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_TRIPLE_TOP, "RIPunch", "Upper3"); if (ppdFindChoice(ppd_option, "Upper4")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_PUNCH_QUAD_TOP, "RIPunch", "Upper4"); } if ((ppd_option = ppdFindOption(ppd, "BindEdge")) != NULL) { /* * Add bind finishings... */ if (ppdFindChoice(ppd_option, "Left")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_BIND_LEFT, "BindEdge", "Left"); if (ppdFindChoice(ppd_option, "Right")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_BIND_RIGHT, "BindEdge", "Right"); if (ppdFindChoice(ppd_option, "Top")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_BIND_TOP, "BindEdge", "Top"); if (ppdFindChoice(ppd_option, "Bottom")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_BIND_BOTTOM, "BindEdge", "Bottom"); } if ((ppd_option = ppdFindOption(ppd, "FoldType")) != NULL) { /* * Add (Adobe) fold finishings... */ if (ppdFindChoice(ppd_option, "ZFold")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_Z, "FoldType", "ZFold"); if (ppdFindChoice(ppd_option, "Saddle")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_HALF, "FoldType", "Saddle"); if (ppdFindChoice(ppd_option, "DoubleGate")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_DOUBLE_GATE, "FoldType", "DoubleGate"); if (ppdFindChoice(ppd_option, "LeftGate")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_LEFT_GATE, "FoldType", "LeftGate"); if (ppdFindChoice(ppd_option, "RightGate")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_RIGHT_GATE, "FoldType", "RightGate"); if (ppdFindChoice(ppd_option, "Letter")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_LETTER, "FoldType", "Letter"); if (ppdFindChoice(ppd_option, "XFold")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_POSTER, "FoldType", "XFold"); } if ((ppd_option = ppdFindOption(ppd, "RIFoldType")) != NULL) { /* * Add (Ricoh) fold finishings... */ if (ppdFindChoice(ppd_option, "OutsideTwoFold")) pwg_add_finishing(pc->finishings, IPP_FINISHINGS_FOLD_LETTER, "RIFoldType", "OutsideTwoFold"); } if (cupsArrayCount(pc->finishings) == 0) { cupsArrayDelete(pc->finishings); pc->finishings = NULL; } } if ((ppd_option = ppdFindOption(ppd, "cupsFinishingTemplate")) != NULL) { pc->templates = cupsArrayNew3((cups_array_func_t)strcmp, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); for (choice = ppd_option->choices, i = ppd_option->num_choices; i > 0; choice ++, i --) { cupsArrayAdd(pc->templates, (void *)choice->choice); /* * Add localized text for PWG keyword to message catalog... */ snprintf(msg_id, sizeof(msg_id), "finishing-template.%s", choice->choice); pwg_add_message(pc->strings, msg_id, choice->text); } } /* * Max copies... */ if ((ppd_attr = ppdFindAttr(ppd, "cupsMaxCopies", NULL)) != NULL) pc->max_copies = atoi(ppd_attr->value); else if (ppd->manual_copies) pc->max_copies = 1; else pc->max_copies = 9999; /* * cupsChargeInfoURI, cupsJobAccountId, cupsJobAccountingUserId, * cupsJobPassword, and cupsMandatory. */ if ((ppd_attr = ppdFindAttr(ppd, "cupsChargeInfoURI", NULL)) != NULL) pc->charge_info_uri = strdup(ppd_attr->value); if ((ppd_attr = ppdFindAttr(ppd, "cupsJobAccountId", NULL)) != NULL) pc->account_id = !_cups_strcasecmp(ppd_attr->value, "true"); if ((ppd_attr = ppdFindAttr(ppd, "cupsJobAccountingUserId", NULL)) != NULL) pc->accounting_user_id = !_cups_strcasecmp(ppd_attr->value, "true"); if ((ppd_attr = ppdFindAttr(ppd, "cupsJobPassword", NULL)) != NULL) pc->password = strdup(ppd_attr->value); if ((ppd_attr = ppdFindAttr(ppd, "cupsMandatory", NULL)) != NULL) pc->mandatory = _cupsArrayNewStrings(ppd_attr->value, ' '); /* * Support files... */ pc->support_files = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); for (ppd_attr = ppdFindAttr(ppd, "cupsICCProfile", NULL); ppd_attr; ppd_attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) cupsArrayAdd(pc->support_files, ppd_attr->value); #ifdef HAVE_APPLICATIONSERVICES_H if ((ppd_attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL) cupsArrayAdd(pc->support_files, ppd_attr->value); #endif /* * Return the cache data... */ return (pc); /* * If we get here we need to destroy the PWG mapping data and return NULL... */ create_error: _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Out of memory."), 1); _ppdCacheDestroy(pc); return (NULL); } /* * '_ppdCacheDestroy()' - Free all memory used for PWG mapping data. */ void _ppdCacheDestroy(_ppd_cache_t *pc) /* I - PPD cache and mapping data */ { int i; /* Looping var */ pwg_map_t *map; /* Current map */ pwg_size_t *size; /* Current size */ /* * Range check input... */ if (!pc) return; /* * Free memory as needed... */ if (pc->bins) { for (i = pc->num_bins, map = pc->bins; i > 0; i --, map ++) { free(map->pwg); free(map->ppd); } free(pc->bins); } if (pc->sizes) { for (i = pc->num_sizes, size = pc->sizes; i > 0; i --, size ++) { free(size->map.pwg); free(size->map.ppd); } free(pc->sizes); } free(pc->source_option); if (pc->sources) { for (i = pc->num_sources, map = pc->sources; i > 0; i --, map ++) { free(map->pwg); free(map->ppd); } free(pc->sources); } if (pc->types) { for (i = pc->num_types, map = pc->types; i > 0; i --, map ++) { free(map->pwg); free(map->ppd); } free(pc->types); } free(pc->custom_max_keyword); free(pc->custom_min_keyword); free(pc->product); cupsArrayDelete(pc->filters); cupsArrayDelete(pc->prefilters); cupsArrayDelete(pc->finishings); free(pc->charge_info_uri); free(pc->password); cupsArrayDelete(pc->mandatory); cupsArrayDelete(pc->support_files); cupsArrayDelete(pc->strings); free(pc); } /* * '_ppdCacheGetBin()' - Get the PWG output-bin keyword associated with a PPD * OutputBin. */ const char * /* O - output-bin or NULL */ _ppdCacheGetBin( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *output_bin) /* I - PPD OutputBin string */ { int i; /* Looping var */ /* * Range check input... */ if (!pc || !output_bin) return (NULL); /* * Look up the OutputBin string... */ for (i = 0; i < pc->num_bins; i ++) if (!_cups_strcasecmp(output_bin, pc->bins[i].ppd) || !_cups_strcasecmp(output_bin, pc->bins[i].pwg)) return (pc->bins[i].pwg); return (NULL); } /* * '_ppdCacheGetFinishingOptions()' - Get PPD finishing options for the given * IPP finishings value(s). */ int /* O - New number of options */ _ppdCacheGetFinishingOptions( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ ipp_t *job, /* I - Job attributes or NULL */ ipp_finishings_t value, /* I - IPP finishings value of IPP_FINISHINGS_NONE */ int num_options, /* I - Number of options */ cups_option_t **options) /* IO - Options */ { int i; /* Looping var */ _pwg_finishings_t *f, /* PWG finishings options */ key; /* Search key */ ipp_attribute_t *attr; /* Finishings attribute */ cups_option_t *option; /* Current finishings option */ /* * Range check input... */ if (!pc || cupsArrayCount(pc->finishings) == 0 || !options || (!job && value == IPP_FINISHINGS_NONE)) return (num_options); /* * Apply finishing options... */ if (job && (attr = ippFindAttribute(job, "finishings", IPP_TAG_ENUM)) != NULL) { int num_values = ippGetCount(attr); /* Number of values */ for (i = 0; i < num_values; i ++) { key.value = (ipp_finishings_t)ippGetInteger(attr, i); if ((f = cupsArrayFind(pc->finishings, &key)) != NULL) { int j; /* Another looping var */ for (j = f->num_options, option = f->options; j > 0; j --, option ++) num_options = cupsAddOption(option->name, option->value, num_options, options); } } } else if (value != IPP_FINISHINGS_NONE) { key.value = value; if ((f = cupsArrayFind(pc->finishings, &key)) != NULL) { int j; /* Another looping var */ for (j = f->num_options, option = f->options; j > 0; j --, option ++) num_options = cupsAddOption(option->name, option->value, num_options, options); } } return (num_options); } /* * '_ppdCacheGetFinishingValues()' - Get IPP finishings value(s) from the given * PPD options. */ int /* O - Number of finishings values */ _ppdCacheGetFinishingValues( ppd_file_t *ppd, /* I - Marked PPD file */ _ppd_cache_t *pc, /* I - PPD cache and mapping data */ int max_values, /* I - Maximum number of finishings values */ int *values) /* O - Finishings values */ { int i, /* Looping var */ num_values = 0; /* Number of values */ _pwg_finishings_t *f; /* Current finishings option */ cups_option_t *option; /* Current option */ ppd_choice_t *choice; /* Marked PPD choice */ /* * Range check input... */ DEBUG_printf(("_ppdCacheGetFinishingValues(ppd=%p, pc=%p, max_values=%d, values=%p)", ppd, pc, max_values, values)); if (!ppd || !pc || max_values < 1 || !values) { DEBUG_puts("_ppdCacheGetFinishingValues: Bad arguments, returning 0."); return (0); } else if (!pc->finishings) { DEBUG_puts("_ppdCacheGetFinishingValues: No finishings support, returning 0."); return (0); } /* * Go through the finishings options and see what is set... */ for (f = (_pwg_finishings_t *)cupsArrayFirst(pc->finishings); f; f = (_pwg_finishings_t *)cupsArrayNext(pc->finishings)) { DEBUG_printf(("_ppdCacheGetFinishingValues: Checking %d (%s)", (int)f->value, ippEnumString("finishings", (int)f->value))); for (i = f->num_options, option = f->options; i > 0; i --, option ++) { DEBUG_printf(("_ppdCacheGetFinishingValues: %s=%s?", option->name, option->value)); if ((choice = ppdFindMarkedChoice(ppd, option->name)) == NULL || _cups_strcasecmp(option->value, choice->choice)) { DEBUG_puts("_ppdCacheGetFinishingValues: NO"); break; } } if (i == 0) { DEBUG_printf(("_ppdCacheGetFinishingValues: Adding %d (%s)", (int)f->value, ippEnumString("finishings", (int)f->value))); values[num_values ++] = (int)f->value; if (num_values >= max_values) break; } } if (num_values == 0) { /* * Always have at least "finishings" = 'none'... */ DEBUG_puts("_ppdCacheGetFinishingValues: Adding 3 (none)."); values[0] = IPP_FINISHINGS_NONE; num_values ++; } DEBUG_printf(("_ppdCacheGetFinishingValues: Returning %d.", num_values)); return (num_values); } /* * 'ppd_inputslot_for_keyword()' - Return the PPD InputSlot associated * a keyword string, or NULL if no mapping * exists. */ static const char * /* O - PPD InputSlot or NULL */ ppd_inputslot_for_keyword( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *keyword) /* I - Keyword string */ { int i; /* Looping var */ if (!pc || !keyword) return (NULL); for (i = 0; i < pc->num_sources; i ++) if (!_cups_strcasecmp(keyword, pc->sources[i].pwg)) return (pc->sources[i].ppd); return (NULL); } /* * '_ppdCacheGetInputSlot()' - Get the PPD InputSlot associated with the job * attributes or a keyword string. */ const char * /* O - PPD InputSlot or NULL */ _ppdCacheGetInputSlot( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ ipp_t *job, /* I - Job attributes or NULL */ const char *keyword) /* I - Keyword string or NULL */ { /* * Range check input... */ if (!pc || pc->num_sources == 0 || (!job && !keyword)) return (NULL); if (job && !keyword) { /* * Lookup the media-col attribute and any media-source found there... */ ipp_attribute_t *media_col, /* media-col attribute */ *media_source; /* media-source attribute */ pwg_size_t size; /* Dimensional size */ int margins_set; /* Were the margins set? */ media_col = ippFindAttribute(job, "media-col", IPP_TAG_BEGIN_COLLECTION); if (media_col && (media_source = ippFindAttribute(ippGetCollection(media_col, 0), "media-source", IPP_TAG_KEYWORD)) != NULL) { /* * Use the media-source value from media-col... */ keyword = ippGetString(media_source, 0, NULL); } else if (pwgInitSize(&size, job, &margins_set)) { /* * For media <= 5x7, try to ask for automatic selection so the printer can * pick the photo tray. If auto isn't available, fall back to explicitly * asking for the photo tray. */ if (size.width <= (5 * 2540) && size.length <= (7 * 2540)) { const char* match; if ((match = ppd_inputslot_for_keyword(pc, "auto")) != NULL) return (match); keyword = "photo"; } } } return (ppd_inputslot_for_keyword(pc, keyword)); } /* * '_ppdCacheGetMediaType()' - Get the PPD MediaType associated with the job * attributes or a keyword string. */ const char * /* O - PPD MediaType or NULL */ _ppdCacheGetMediaType( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ ipp_t *job, /* I - Job attributes or NULL */ const char *keyword) /* I - Keyword string or NULL */ { /* * Range check input... */ if (!pc || pc->num_types == 0 || (!job && !keyword)) return (NULL); if (job && !keyword) { /* * Lookup the media-col attribute and any media-source found there... */ ipp_attribute_t *media_col, /* media-col attribute */ *media_type; /* media-type attribute */ media_col = ippFindAttribute(job, "media-col", IPP_TAG_BEGIN_COLLECTION); if (media_col) { if ((media_type = ippFindAttribute(media_col->values[0].collection, "media-type", IPP_TAG_KEYWORD)) == NULL) media_type = ippFindAttribute(media_col->values[0].collection, "media-type", IPP_TAG_NAME); if (media_type) keyword = media_type->values[0].string.text; } } if (keyword) { int i; /* Looping var */ for (i = 0; i < pc->num_types; i ++) if (!_cups_strcasecmp(keyword, pc->types[i].pwg)) return (pc->types[i].ppd); } return (NULL); } /* * '_ppdCacheGetOutputBin()' - Get the PPD OutputBin associated with the keyword * string. */ const char * /* O - PPD OutputBin or NULL */ _ppdCacheGetOutputBin( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *output_bin) /* I - Keyword string */ { int i; /* Looping var */ /* * Range check input... */ if (!pc || !output_bin) return (NULL); /* * Look up the OutputBin string... */ for (i = 0; i < pc->num_bins; i ++) if (!_cups_strcasecmp(output_bin, pc->bins[i].pwg)) return (pc->bins[i].ppd); return (NULL); } /* * '_ppdCacheGetPageSize()' - Get the PPD PageSize associated with the job * attributes or a keyword string. */ const char * /* O - PPD PageSize or NULL */ _ppdCacheGetPageSize( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ ipp_t *job, /* I - Job attributes or NULL */ const char *keyword, /* I - Keyword string or NULL */ int *exact) /* O - 1 if exact match, 0 otherwise */ { int i; /* Looping var */ pwg_size_t *size, /* Current size */ *closest, /* Closest size */ jobsize; /* Size data from job */ int margins_set, /* Were the margins set? */ dwidth, /* Difference in width */ dlength, /* Difference in length */ dleft, /* Difference in left margins */ dright, /* Difference in right margins */ dbottom, /* Difference in bottom margins */ dtop, /* Difference in top margins */ dmin, /* Minimum difference */ dclosest; /* Closest difference */ const char *ppd_name; /* PPD media name */ DEBUG_printf(("_ppdCacheGetPageSize(pc=%p, job=%p, keyword=\"%s\", exact=%p)", pc, job, keyword, exact)); /* * Range check input... */ if (!pc || (!job && !keyword)) return (NULL); if (exact) *exact = 0; ppd_name = keyword; if (job) { /* * Try getting the PPD media name from the job attributes... */ ipp_attribute_t *attr; /* Job attribute */ if ((attr = ippFindAttribute(job, "PageSize", IPP_TAG_ZERO)) == NULL) if ((attr = ippFindAttribute(job, "PageRegion", IPP_TAG_ZERO)) == NULL) attr = ippFindAttribute(job, "media", IPP_TAG_ZERO); #ifdef DEBUG if (attr) DEBUG_printf(("1_ppdCacheGetPageSize: Found attribute %s (%s)", attr->name, ippTagString(attr->value_tag))); else DEBUG_puts("1_ppdCacheGetPageSize: Did not find media attribute."); #endif /* DEBUG */ if (attr && (attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_KEYWORD)) ppd_name = attr->values[0].string.text; } DEBUG_printf(("1_ppdCacheGetPageSize: ppd_name=\"%s\"", ppd_name)); if (ppd_name) { /* * Try looking up the named PPD size first... */ for (i = pc->num_sizes, size = pc->sizes; i > 0; i --, size ++) { DEBUG_printf(("2_ppdCacheGetPageSize: size[%d]=[\"%s\" \"%s\"]", (int)(size - pc->sizes), size->map.pwg, size->map.ppd)); if (!_cups_strcasecmp(ppd_name, size->map.ppd) || !_cups_strcasecmp(ppd_name, size->map.pwg)) { if (exact) *exact = 1; DEBUG_printf(("1_ppdCacheGetPageSize: Returning \"%s\"", ppd_name)); return (size->map.ppd); } } } if (job && !keyword) { /* * Get the size using media-col or media, with the preference being * media-col. */ if (!pwgInitSize(&jobsize, job, &margins_set)) return (NULL); } else { /* * Get the size using a media keyword... */ pwg_media_t *media; /* Media definition */ if ((media = pwgMediaForPWG(keyword)) == NULL) if ((media = pwgMediaForLegacy(keyword)) == NULL) if ((media = pwgMediaForPPD(keyword)) == NULL) return (NULL); jobsize.width = media->width; jobsize.length = media->length; margins_set = 0; } /* * Now that we have the dimensions and possibly the margins, look at the * available sizes and find the match... */ closest = NULL; dclosest = 999999999; if (!ppd_name || _cups_strncasecmp(ppd_name, "Custom.", 7) || _cups_strncasecmp(ppd_name, "custom_", 7)) { for (i = pc->num_sizes, size = pc->sizes; i > 0; i --, size ++) { /* * Adobe uses a size matching algorithm with an epsilon of 5 points, which * is just about 176/2540ths... */ dwidth = size->width - jobsize.width; dlength = size->length - jobsize.length; if (dwidth <= -176 || dwidth >= 176 || dlength <= -176 || dlength >= 176) continue; if (margins_set) { /* * Use a tighter epsilon of 1 point (35/2540ths) for margins... */ dleft = size->left - jobsize.left; dright = size->right - jobsize.right; dtop = size->top - jobsize.top; dbottom = size->bottom - jobsize.bottom; if (dleft <= -35 || dleft >= 35 || dright <= -35 || dright >= 35 || dtop <= -35 || dtop >= 35 || dbottom <= -35 || dbottom >= 35) { dleft = dleft < 0 ? -dleft : dleft; dright = dright < 0 ? -dright : dright; dbottom = dbottom < 0 ? -dbottom : dbottom; dtop = dtop < 0 ? -dtop : dtop; dmin = dleft + dright + dbottom + dtop; if (dmin < dclosest) { dclosest = dmin; closest = size; } continue; } } if (exact) *exact = 1; DEBUG_printf(("1_ppdCacheGetPageSize: Returning \"%s\"", size->map.ppd)); return (size->map.ppd); } } if (closest) { DEBUG_printf(("1_ppdCacheGetPageSize: Returning \"%s\" (closest)", closest->map.ppd)); return (closest->map.ppd); } /* * If we get here we need to check for custom page size support... */ if (jobsize.width >= pc->custom_min_width && jobsize.width <= pc->custom_max_width && jobsize.length >= pc->custom_min_length && jobsize.length <= pc->custom_max_length) { /* * In range, format as Custom.WWWWxLLLL (points). */ snprintf(pc->custom_ppd_size, sizeof(pc->custom_ppd_size), "Custom.%dx%d", (int)PWG_TO_POINTS(jobsize.width), (int)PWG_TO_POINTS(jobsize.length)); if (margins_set && exact) { dleft = pc->custom_size.left - jobsize.left; dright = pc->custom_size.right - jobsize.right; dtop = pc->custom_size.top - jobsize.top; dbottom = pc->custom_size.bottom - jobsize.bottom; if (dleft > -35 && dleft < 35 && dright > -35 && dright < 35 && dtop > -35 && dtop < 35 && dbottom > -35 && dbottom < 35) *exact = 1; } else if (exact) *exact = 1; DEBUG_printf(("1_ppdCacheGetPageSize: Returning \"%s\" (custom)", pc->custom_ppd_size)); return (pc->custom_ppd_size); } /* * No custom page size support or the size is out of range - return NULL. */ DEBUG_puts("1_ppdCacheGetPageSize: Returning NULL"); return (NULL); } /* * '_ppdCacheGetSize()' - Get the PWG size associated with a PPD PageSize. */ pwg_size_t * /* O - PWG size or NULL */ _ppdCacheGetSize( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *page_size) /* I - PPD PageSize */ { int i; /* Looping var */ pwg_media_t *media; /* Media */ pwg_size_t *size; /* Current size */ /* * Range check input... */ if (!pc || !page_size) return (NULL); if (!_cups_strncasecmp(page_size, "Custom.", 7)) { /* * Custom size; size name can be one of the following: * * Custom.WIDTHxLENGTHin - Size in inches * Custom.WIDTHxLENGTHft - Size in feet * Custom.WIDTHxLENGTHcm - Size in centimeters * Custom.WIDTHxLENGTHmm - Size in millimeters * Custom.WIDTHxLENGTHm - Size in meters * Custom.WIDTHxLENGTH[pt] - Size in points */ double w, l; /* Width and length of page */ char *ptr; /* Pointer into PageSize */ struct lconv *loc; /* Locale data */ loc = localeconv(); w = (float)_cupsStrScand(page_size + 7, &ptr, loc); if (!ptr || *ptr != 'x') return (NULL); l = (float)_cupsStrScand(ptr + 1, &ptr, loc); if (!ptr) return (NULL); if (!_cups_strcasecmp(ptr, "in")) { w *= 2540.0; l *= 2540.0; } else if (!_cups_strcasecmp(ptr, "ft")) { w *= 12.0 * 2540.0; l *= 12.0 * 2540.0; } else if (!_cups_strcasecmp(ptr, "mm")) { w *= 100.0; l *= 100.0; } else if (!_cups_strcasecmp(ptr, "cm")) { w *= 1000.0; l *= 1000.0; } else if (!_cups_strcasecmp(ptr, "m")) { w *= 100000.0; l *= 100000.0; } else { w *= 2540.0 / 72.0; l *= 2540.0 / 72.0; } pc->custom_size.width = (int)w; pc->custom_size.length = (int)l; return (&(pc->custom_size)); } /* * Not a custom size - look it up... */ for (i = pc->num_sizes, size = pc->sizes; i > 0; i --, size ++) if (!_cups_strcasecmp(page_size, size->map.ppd) || !_cups_strcasecmp(page_size, size->map.pwg)) return (size); /* * Look up standard sizes... */ if ((media = pwgMediaForPPD(page_size)) == NULL) if ((media = pwgMediaForLegacy(page_size)) == NULL) media = pwgMediaForPWG(page_size); if (media) { pc->custom_size.width = media->width; pc->custom_size.length = media->length; return (&(pc->custom_size)); } return (NULL); } /* * '_ppdCacheGetSource()' - Get the PWG media-source associated with a PPD * InputSlot. */ const char * /* O - PWG media-source keyword */ _ppdCacheGetSource( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *input_slot) /* I - PPD InputSlot */ { int i; /* Looping var */ pwg_map_t *source; /* Current source */ /* * Range check input... */ if (!pc || !input_slot) return (NULL); for (i = pc->num_sources, source = pc->sources; i > 0; i --, source ++) if (!_cups_strcasecmp(input_slot, source->ppd) || !_cups_strcasecmp(input_slot, source->pwg)) return (source->pwg); return (NULL); } /* * '_ppdCacheGetType()' - Get the PWG media-type associated with a PPD * MediaType. */ const char * /* O - PWG media-type keyword */ _ppdCacheGetType( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *media_type) /* I - PPD MediaType */ { int i; /* Looping var */ pwg_map_t *type; /* Current type */ /* * Range check input... */ if (!pc || !media_type) return (NULL); for (i = pc->num_types, type = pc->types; i > 0; i --, type ++) if (!_cups_strcasecmp(media_type, type->ppd) || !_cups_strcasecmp(media_type, type->pwg)) return (type->pwg); return (NULL); } /* * '_ppdCacheWriteFile()' - Write PWG mapping data to a file. */ int /* O - 1 on success, 0 on failure */ _ppdCacheWriteFile( _ppd_cache_t *pc, /* I - PPD cache and mapping data */ const char *filename, /* I - File to write */ ipp_t *attrs) /* I - Attributes to write, if any */ { int i, j, k; /* Looping vars */ cups_file_t *fp; /* Output file */ pwg_size_t *size; /* Current size */ pwg_map_t *map; /* Current map */ _pwg_finishings_t *f; /* Current finishing option */ cups_option_t *option; /* Current option */ const char *value; /* String value */ char newfile[1024]; /* New filename */ /* * Range check input... */ if (!pc || !filename) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Open the file and write with compression... */ snprintf(newfile, sizeof(newfile), "%s.N", filename); if ((fp = cupsFileOpen(newfile, "w9")) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (0); } /* * Standard header... */ cupsFilePrintf(fp, "#CUPS-PPD-CACHE-%d\n", _PPD_CACHE_VERSION); /* * Output bins... */ if (pc->num_bins > 0) { cupsFilePrintf(fp, "NumBins %d\n", pc->num_bins); for (i = pc->num_bins, map = pc->bins; i > 0; i --, map ++) cupsFilePrintf(fp, "Bin %s %s\n", map->pwg, map->ppd); } /* * Media sizes... */ cupsFilePrintf(fp, "NumSizes %d\n", pc->num_sizes); for (i = pc->num_sizes, size = pc->sizes; i > 0; i --, size ++) cupsFilePrintf(fp, "Size %s %s %d %d %d %d %d %d\n", size->map.pwg, size->map.ppd, size->width, size->length, size->left, size->bottom, size->right, size->top); if (pc->custom_max_width > 0) cupsFilePrintf(fp, "CustomSize %d %d %d %d %d %d %d %d\n", pc->custom_max_width, pc->custom_max_length, pc->custom_min_width, pc->custom_min_length, pc->custom_size.left, pc->custom_size.bottom, pc->custom_size.right, pc->custom_size.top); /* * Media sources... */ if (pc->source_option) cupsFilePrintf(fp, "SourceOption %s\n", pc->source_option); if (pc->num_sources > 0) { cupsFilePrintf(fp, "NumSources %d\n", pc->num_sources); for (i = pc->num_sources, map = pc->sources; i > 0; i --, map ++) cupsFilePrintf(fp, "Source %s %s\n", map->pwg, map->ppd); } /* * Media types... */ if (pc->num_types > 0) { cupsFilePrintf(fp, "NumTypes %d\n", pc->num_types); for (i = pc->num_types, map = pc->types; i > 0; i --, map ++) cupsFilePrintf(fp, "Type %s %s\n", map->pwg, map->ppd); } /* * Presets... */ for (i = _PWG_PRINT_COLOR_MODE_MONOCHROME; i < _PWG_PRINT_COLOR_MODE_MAX; i ++) for (j = _PWG_PRINT_QUALITY_DRAFT; j < _PWG_PRINT_QUALITY_MAX; j ++) if (pc->num_presets[i][j]) { cupsFilePrintf(fp, "Preset %d %d", i, j); for (k = pc->num_presets[i][j], option = pc->presets[i][j]; k > 0; k --, option ++) cupsFilePrintf(fp, " %s=%s", option->name, option->value); cupsFilePutChar(fp, '\n'); } /* * Duplex/sides... */ if (pc->sides_option) cupsFilePrintf(fp, "SidesOption %s\n", pc->sides_option); if (pc->sides_1sided) cupsFilePrintf(fp, "Sides1Sided %s\n", pc->sides_1sided); if (pc->sides_2sided_long) cupsFilePrintf(fp, "Sides2SidedLong %s\n", pc->sides_2sided_long); if (pc->sides_2sided_short) cupsFilePrintf(fp, "Sides2SidedShort %s\n", pc->sides_2sided_short); /* * Product, cupsFilter, cupsFilter2, and cupsPreFilter... */ if (pc->product) cupsFilePutConf(fp, "Product", pc->product); for (value = (const char *)cupsArrayFirst(pc->filters); value; value = (const char *)cupsArrayNext(pc->filters)) cupsFilePutConf(fp, "Filter", value); for (value = (const char *)cupsArrayFirst(pc->prefilters); value; value = (const char *)cupsArrayNext(pc->prefilters)) cupsFilePutConf(fp, "PreFilter", value); cupsFilePrintf(fp, "SingleFile %s\n", pc->single_file ? "true" : "false"); /* * Finishing options... */ for (f = (_pwg_finishings_t *)cupsArrayFirst(pc->finishings); f; f = (_pwg_finishings_t *)cupsArrayNext(pc->finishings)) { cupsFilePrintf(fp, "Finishings %d", f->value); for (i = f->num_options, option = f->options; i > 0; i --, option ++) cupsFilePrintf(fp, " %s=%s", option->name, option->value); cupsFilePutChar(fp, '\n'); } for (value = (const char *)cupsArrayFirst(pc->templates); value; value = (const char *)cupsArrayNext(pc->templates)) cupsFilePutConf(fp, "FinishingTemplate", value); /* * Max copies... */ cupsFilePrintf(fp, "MaxCopies %d\n", pc->max_copies); /* * Accounting/quota/PIN/managed printing values... */ if (pc->charge_info_uri) cupsFilePutConf(fp, "ChargeInfoURI", pc->charge_info_uri); cupsFilePrintf(fp, "JobAccountId %s\n", pc->account_id ? "true" : "false"); cupsFilePrintf(fp, "JobAccountingUserId %s\n", pc->accounting_user_id ? "true" : "false"); if (pc->password) cupsFilePutConf(fp, "JobPassword", pc->password); for (value = (char *)cupsArrayFirst(pc->mandatory); value; value = (char *)cupsArrayNext(pc->mandatory)) cupsFilePutConf(fp, "Mandatory", value); /* * Support files... */ for (value = (char *)cupsArrayFirst(pc->support_files); value; value = (char *)cupsArrayNext(pc->support_files)) cupsFilePutConf(fp, "SupportFile", value); /* * IPP attributes, if any... */ if (attrs) { cupsFilePrintf(fp, "IPP " CUPS_LLFMT "\n", CUPS_LLCAST ippLength(attrs)); attrs->state = IPP_STATE_IDLE; ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL, attrs); } /* * Close and return... */ if (cupsFileClose(fp)) { unlink(newfile); return (0); } unlink(filename); return (!rename(newfile, filename)); } /* * '_ppdCreateFromIPP()' - Create a PPD file describing the capabilities * of an IPP printer. */ char * /* O - PPD filename or @code NULL@ on error */ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ size_t bufsize, /* I - Size of filename buffer */ ipp_t *supported) /* I - Get-Printer-Attributes response */ { return (_ppdCreateFromIPP2(buffer, bufsize, supported, cupsLangDefault())); } /* * '_ppdCreateFromIPP()' - Create a PPD file describing the capabilities * of an IPP printer. */ char * _ppdCreateFromIPP2( char *buffer, /* I - Filename buffer */ size_t bufsize, /* I - Size of filename buffer */ ipp_t *supported, /* I - Get-Printer-Attributes response */ cups_lang_t *lang) /* I - Language */ { cups_file_t *fp; /* PPD file */ cups_array_t *sizes; /* Media sizes supported by printer */ cups_size_t *size; /* Current media size */ ipp_attribute_t *attr, /* xxx-supported */ *lang_supp, /* printer-strings-languages-supported */ *defattr, /* xxx-default */ *quality, /* print-quality-supported */ *x_dim, *y_dim; /* Media dimensions */ ipp_t *media_col, /* Media collection */ *media_size; /* Media size collection */ char make[256], /* Make and model */ *model, /* Model name */ ppdname[PPD_MAX_NAME]; /* PPD keyword */ int i, j, /* Looping vars */ count, /* Number of values */ bottom, /* Largest bottom margin */ left, /* Largest left margin */ right, /* Largest right margin */ top, /* Largest top margin */ max_length = 0, /* Maximum custom size */ max_width = 0, min_length = INT_MAX, /* Minimum custom size */ min_width = INT_MAX, is_apple = 0, /* Does the printer support Apple raster? */ is_pdf = 0, /* Does the printer support PDF? */ is_pwg = 0; /* Does the printer support PWG Raster? */ pwg_media_t *pwg; /* PWG media size */ int xres, yres; /* Resolution values */ int resolutions[1000]; /* Array of resolution indices */ int have_qdraft = 0,/* Have draft quality? */ have_qhigh = 0; /* Have high quality? */ char msgid[256]; /* Message identifier (attr.value) */ const char *keyword, /* Keyword value */ *msgstr; /* Localized string */ cups_array_t *strings = NULL;/* Printer strings file */ struct lconv *loc = localeconv(); /* Locale data */ cups_array_t *fin_options = NULL; /* Finishing options */ /* * Range check input... */ if (buffer) *buffer = '\0'; if (!buffer || bufsize < 1) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } if (!supported) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No IPP attributes."), 1); return (NULL); } /* * Open a temporary file for the PPD... */ if ((fp = cupsTempFile2(buffer, (int)bufsize)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (NULL); } /* * Standard stuff for PPD file... */ cupsFilePuts(fp, "*PPD-Adobe: \"4.3\"\n"); cupsFilePuts(fp, "*FormatVersion: \"4.3\"\n"); cupsFilePrintf(fp, "*FileVersion: \"%d.%d\"\n", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR); cupsFilePuts(fp, "*LanguageVersion: English\n"); cupsFilePuts(fp, "*LanguageEncoding: ISOLatin1\n"); cupsFilePuts(fp, "*PSVersion: \"(3010.000) 0\"\n"); cupsFilePuts(fp, "*LanguageLevel: \"3\"\n"); cupsFilePuts(fp, "*FileSystem: False\n"); cupsFilePuts(fp, "*PCFileName: \"ippeve.ppd\"\n"); if ((attr = ippFindAttribute(supported, "printer-make-and-model", IPP_TAG_TEXT)) != NULL) strlcpy(make, ippGetString(attr, 0, NULL), sizeof(make)); else strlcpy(make, "Unknown Printer", sizeof(make)); if (!_cups_strncasecmp(make, "Hewlett Packard ", 16) || !_cups_strncasecmp(make, "Hewlett-Packard ", 16)) { model = make + 16; strlcpy(make, "HP", sizeof(make)); } else if ((model = strchr(make, ' ')) != NULL) *model++ = '\0'; else model = make; cupsFilePrintf(fp, "*Manufacturer: \"%s\"\n", make); cupsFilePrintf(fp, "*ModelName: \"%s\"\n", model); cupsFilePrintf(fp, "*Product: \"(%s)\"\n", model); cupsFilePrintf(fp, "*NickName: \"%s - IPP Everywhere\"\n", model); cupsFilePrintf(fp, "*ShortNickName: \"%s - IPP Everywhere\"\n", model); if ((attr = ippFindAttribute(supported, "color-supported", IPP_TAG_BOOLEAN)) != NULL && ippGetBoolean(attr, 0)) cupsFilePuts(fp, "*ColorDevice: True\n"); else cupsFilePuts(fp, "*ColorDevice: False\n"); cupsFilePrintf(fp, "*cupsVersion: %d.%d\n", CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR); #ifdef __APPLE__ cupsFilePrintf(fp, "*APAirPrint: True\n"); #endif // __APPLE__ cupsFilePuts(fp, "*cupsSNMPSupplies: False\n"); cupsFilePrintf(fp, "*cupsLanguages: \"%s", lang->language); if ((lang_supp = ippFindAttribute(supported, "printer-strings-languages-supported", IPP_TAG_LANGUAGE)) != NULL) { for (i = 0, count = ippGetCount(lang_supp); i < count; i ++) { keyword = ippGetString(lang_supp, i, NULL); if (strcmp(keyword, lang->language)) cupsFilePrintf(fp, " %s", keyword); } } cupsFilePuts(fp, "\"\n"); if ((attr = ippFindAttribute(supported, "printer-more-info", IPP_TAG_URI)) != NULL) cupsFilePrintf(fp, "*APSupplies: \"%s\"\n", ippGetString(attr, 0, NULL)); if ((attr = ippFindAttribute(supported, "printer-charge-info-uri", IPP_TAG_URI)) != NULL) cupsFilePrintf(fp, "*cupsChargeInfoURI: \"%s\"\n", ippGetString(attr, 0, NULL)); if ((attr = ippFindAttribute(supported, "printer-strings-uri", IPP_TAG_URI)) != NULL) { http_t *http = NULL; /* Connection to printer */ char stringsfile[1024]; /* Temporary strings file */ if (cups_get_url(&http, ippGetString(attr, 0, NULL), stringsfile, sizeof(stringsfile))) { const char *printer_uri = ippGetString(ippFindAttribute(supported, "printer-uri-supported", IPP_TAG_URI), 0, NULL); // Printer URI char resource[256]; // Resource path ipp_t *request, // Get-Printer-Attributes request *response; // Response to request /* * Load strings and save the URL for clients using the destination API * instead of this PPD file... */ cupsFilePrintf(fp, "*cupsStringsURI: \"%s\"\n", ippGetString(attr, 0, NULL)); strings = _cupsMessageLoad(stringsfile, _CUPS_MESSAGE_STRINGS | _CUPS_MESSAGE_UNQUOTE); unlink(stringsfile); if (lang_supp && printer_uri && cups_connect(&http, printer_uri, resource, sizeof(resource))) { /* * Loop through all of the languages and save their URIs... */ for (i = 0, count = ippGetCount(lang_supp); i < count; i ++) { keyword = ippGetString(lang_supp, i, NULL); request = ippNew(); ippSetOperation(request, IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetRequestId(request, i + 1); ippAddString(request, IPP_TAG_OPERATION, IPP_CONST_TAG(IPP_TAG_CHARSET), "attributes-charset", NULL, "utf-8"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, keyword); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_CONST_TAG(IPP_TAG_KEYWORD), "requested-attributes", NULL, "printer-strings-uri"); response = cupsDoRequest(http, request, resource); if ((attr = ippFindAttribute(response, "printer-strings-uri", IPP_TAG_URI)) != NULL) cupsFilePrintf(fp, "*cupsStringsURI %s: \"%s\"\n", keyword, ippGetString(attr, 0, NULL)); ippDelete(response); } } } if (http) httpClose(http); } /* * Accounting... */ if (ippGetBoolean(ippFindAttribute(supported, "job-account-id-supported", IPP_TAG_BOOLEAN), 0)) cupsFilePuts(fp, "*cupsJobAccountId: True\n"); if (ippGetBoolean(ippFindAttribute(supported, "job-accounting-user-id-supported", IPP_TAG_BOOLEAN), 0)) cupsFilePuts(fp, "*cupsJobAccountingUserId: True\n"); if ((attr = ippFindAttribute(supported, "printer-privacy-policy-uri", IPP_TAG_URI)) != NULL) cupsFilePrintf(fp, "*cupsPrivacyURI: \"%s\"\n", ippGetString(attr, 0, NULL)); if ((attr = ippFindAttribute(supported, "printer-mandatory-job-attributes", IPP_TAG_KEYWORD)) != NULL) { char prefix = '\"'; // Prefix for string cupsFilePuts(fp, "*cupsMandatory: \""); for (i = 0, count = ippGetCount(attr); i < count; i ++) { keyword = ippGetString(attr, i, NULL); if (strcmp(keyword, "attributes-charset") && strcmp(keyword, "attributes-natural-language") && strcmp(keyword, "printer-uri")) { cupsFilePrintf(fp, "%c%s", prefix, keyword); prefix = ','; } } cupsFilePuts(fp, "\"\n"); } if ((attr = ippFindAttribute(supported, "printer-requested-job-attributes", IPP_TAG_KEYWORD)) != NULL) { char prefix = '\"'; // Prefix for string cupsFilePuts(fp, "*cupsRequested: \""); for (i = 0, count = ippGetCount(attr); i < count; i ++) { keyword = ippGetString(attr, i, NULL); if (strcmp(keyword, "attributes-charset") && strcmp(keyword, "attributes-natural-language") && strcmp(keyword, "printer-uri")) { cupsFilePrintf(fp, "%c%s", prefix, keyword); prefix = ','; } } cupsFilePuts(fp, "\"\n"); } /* * Password/PIN printing... */ if ((attr = ippFindAttribute(supported, "job-password-supported", IPP_TAG_INTEGER)) != NULL) { char pattern[33]; /* Password pattern */ int maxlen = ippGetInteger(attr, 0); /* Maximum length */ const char *repertoire = ippGetString(ippFindAttribute(supported, "job-password-repertoire-configured", IPP_TAG_KEYWORD), 0, NULL); /* Type of password */ if (maxlen > (int)(sizeof(pattern) - 1)) maxlen = (int)sizeof(pattern) - 1; if (!repertoire || !strcmp(repertoire, "iana_us-ascii_digits")) memset(pattern, '1', (size_t)maxlen); else if (!strcmp(repertoire, "iana_us-ascii_letters")) memset(pattern, 'A', (size_t)maxlen); else if (!strcmp(repertoire, "iana_us-ascii_complex")) memset(pattern, 'C', (size_t)maxlen); else if (!strcmp(repertoire, "iana_us-ascii_any")) memset(pattern, '.', (size_t)maxlen); else if (!strcmp(repertoire, "iana_utf-8_digits")) memset(pattern, 'N', (size_t)maxlen); else if (!strcmp(repertoire, "iana_utf-8_letters")) memset(pattern, 'U', (size_t)maxlen); else memset(pattern, '*', (size_t)maxlen); pattern[maxlen] = '\0'; cupsFilePrintf(fp, "*cupsJobPassword: \"%s\"\n", pattern); } /* * Filters... */ if ((attr = ippFindAttribute(supported, "document-format-supported", IPP_TAG_MIMETYPE)) != NULL) { is_apple = ippContainsString(attr, "image/urf"); is_pdf = ippContainsString(attr, "application/pdf"); is_pwg = ippContainsString(attr, "image/pwg-raster") && !is_apple; if (ippContainsString(attr, "image/jpeg")) cupsFilePuts(fp, "*cupsFilter2: \"image/jpeg image/jpeg 0 -\"\n"); if (ippContainsString(attr, "image/png")) cupsFilePuts(fp, "*cupsFilter2: \"image/png image/png 0 -\"\n"); if (is_pdf) { /* * Don't locally filter PDF content when printing to a CUPS shared * printer, otherwise the options will be applied twice... */ if (ippContainsString(attr, "application/vnd.cups-pdf")) cupsFilePuts(fp, "*cupsFilter2: \"application/pdf application/pdf 0 -\"\n"); else cupsFilePuts(fp, "*cupsFilter2: \"application/vnd.cups-pdf application/pdf 10 -\"\n"); } else cupsFilePuts(fp, "*cupsManualCopies: True\n"); if (is_apple) cupsFilePuts(fp, "*cupsFilter2: \"image/urf image/urf 100 -\"\n"); if (is_pwg) cupsFilePuts(fp, "*cupsFilter2: \"image/pwg-raster image/pwg-raster 100 -\"\n"); } if (!is_apple && !is_pdf && !is_pwg) goto bad_ppd; /* * PageSize/PageRegion/ImageableArea/PaperDimension */ if ((attr = ippFindAttribute(supported, "media-bottom-margin-supported", IPP_TAG_INTEGER)) != NULL) { for (i = 1, bottom = ippGetInteger(attr, 0), count = ippGetCount(attr); i < count; i ++) if (ippGetInteger(attr, i) > bottom) bottom = ippGetInteger(attr, i); } else bottom = 1270; if ((attr = ippFindAttribute(supported, "media-left-margin-supported", IPP_TAG_INTEGER)) != NULL) { for (i = 1, left = ippGetInteger(attr, 0), count = ippGetCount(attr); i < count; i ++) if (ippGetInteger(attr, i) > left) left = ippGetInteger(attr, i); } else left = 635; if ((attr = ippFindAttribute(supported, "media-right-margin-supported", IPP_TAG_INTEGER)) != NULL) { for (i = 1, right = ippGetInteger(attr, 0), count = ippGetCount(attr); i < count; i ++) if (ippGetInteger(attr, i) > right) right = ippGetInteger(attr, i); } else right = 635; if ((attr = ippFindAttribute(supported, "media-top-margin-supported", IPP_TAG_INTEGER)) != NULL) { for (i = 1, top = ippGetInteger(attr, 0), count = ippGetCount(attr); i < count; i ++) if (ippGetInteger(attr, i) > top) top = ippGetInteger(attr, i); } else top = 1270; if ((defattr = ippFindAttribute(supported, "media-col-default", IPP_TAG_BEGIN_COLLECTION)) != NULL) { if ((attr = ippFindAttribute(ippGetCollection(defattr, 0), "media-size", IPP_TAG_BEGIN_COLLECTION)) != NULL) { media_size = ippGetCollection(attr, 0); x_dim = ippFindAttribute(media_size, "x-dimension", IPP_TAG_INTEGER); y_dim = ippFindAttribute(media_size, "y-dimension", IPP_TAG_INTEGER); if (x_dim && y_dim && (pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0))) != NULL) strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); else strlcpy(ppdname, "Unknown", sizeof(ppdname)); } else strlcpy(ppdname, "Unknown", sizeof(ppdname)); } else if ((pwg = pwgMediaForPWG(ippGetString(ippFindAttribute(supported, "media-default", IPP_TAG_ZERO), 0, NULL))) != NULL) strlcpy(ppdname, pwg->ppd, sizeof(ppdname)); else strlcpy(ppdname, "Unknown", sizeof(ppdname)); sizes = cupsArrayNew3((cups_array_func_t)pwg_compare_sizes, NULL, NULL, 0, (cups_acopy_func_t)pwg_copy_size, (cups_afree_func_t)free); if ((attr = ippFindAttribute(supported, "media-col-database", IPP_TAG_BEGIN_COLLECTION)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { cups_size_t temp; /* Current size */ ipp_attribute_t *margin; /* media-xxx-margin attribute */ media_col = ippGetCollection(attr, i); media_size = ippGetCollection(ippFindAttribute(media_col, "media-size", IPP_TAG_BEGIN_COLLECTION), 0); x_dim = ippFindAttribute(media_size, "x-dimension", IPP_TAG_ZERO); y_dim = ippFindAttribute(media_size, "y-dimension", IPP_TAG_ZERO); pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0)); if (pwg) { temp.width = pwg->width; temp.length = pwg->length; if ((margin = ippFindAttribute(media_col, "media-bottom-margin", IPP_TAG_INTEGER)) != NULL) temp.bottom = ippGetInteger(margin, 0); else temp.bottom = bottom; if ((margin = ippFindAttribute(media_col, "media-left-margin", IPP_TAG_INTEGER)) != NULL) temp.left = ippGetInteger(margin, 0); else temp.left = left; if ((margin = ippFindAttribute(media_col, "media-right-margin", IPP_TAG_INTEGER)) != NULL) temp.right = ippGetInteger(margin, 0); else temp.right = right; if ((margin = ippFindAttribute(media_col, "media-top-margin", IPP_TAG_INTEGER)) != NULL) temp.top = ippGetInteger(margin, 0); else temp.top = top; if (temp.bottom == 0 && temp.left == 0 && temp.right == 0 && temp.top == 0) snprintf(temp.media, sizeof(temp.media), "%s.Borderless", pwg->ppd); else strlcpy(temp.media, pwg->ppd, sizeof(temp.media)); if (!cupsArrayFind(sizes, &temp)) cupsArrayAdd(sizes, &temp); } else if (ippGetValueTag(x_dim) == IPP_TAG_RANGE || ippGetValueTag(y_dim) == IPP_TAG_RANGE) { /* * Custom size - record the min/max values... */ int lower, upper; /* Range values */ if (ippGetValueTag(x_dim) == IPP_TAG_RANGE) lower = ippGetRange(x_dim, 0, &upper); else lower = upper = ippGetInteger(x_dim, 0); if (lower < min_width) min_width = lower; if (upper > max_width) max_width = upper; if (ippGetValueTag(y_dim) == IPP_TAG_RANGE) lower = ippGetRange(y_dim, 0, &upper); else lower = upper = ippGetInteger(y_dim, 0); if (lower < min_length) min_length = lower; if (upper > max_length) max_length = upper; } } if ((max_width == 0 || max_length == 0) && (attr = ippFindAttribute(supported, "media-size-supported", IPP_TAG_BEGIN_COLLECTION)) != NULL) { /* * Some printers don't list custom size support in media-col-database... */ for (i = 0, count = ippGetCount(attr); i < count; i ++) { media_size = ippGetCollection(attr, i); x_dim = ippFindAttribute(media_size, "x-dimension", IPP_TAG_ZERO); y_dim = ippFindAttribute(media_size, "y-dimension", IPP_TAG_ZERO); if (ippGetValueTag(x_dim) == IPP_TAG_RANGE || ippGetValueTag(y_dim) == IPP_TAG_RANGE) { /* * Custom size - record the min/max values... */ int lower, upper; /* Range values */ if (ippGetValueTag(x_dim) == IPP_TAG_RANGE) lower = ippGetRange(x_dim, 0, &upper); else lower = upper = ippGetInteger(x_dim, 0); if (lower < min_width) min_width = lower; if (upper > max_width) max_width = upper; if (ippGetValueTag(y_dim) == IPP_TAG_RANGE) lower = ippGetRange(y_dim, 0, &upper); else lower = upper = ippGetInteger(y_dim, 0); if (lower < min_length) min_length = lower; if (upper > max_length) max_length = upper; } } } } else if ((attr = ippFindAttribute(supported, "media-size-supported", IPP_TAG_BEGIN_COLLECTION)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { cups_size_t temp; /* Current size */ media_size = ippGetCollection(attr, i); x_dim = ippFindAttribute(media_size, "x-dimension", IPP_TAG_ZERO); y_dim = ippFindAttribute(media_size, "y-dimension", IPP_TAG_ZERO); pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0)); if (pwg) { temp.width = pwg->width; temp.length = pwg->length; temp.bottom = bottom; temp.left = left; temp.right = right; temp.top = top; if (temp.bottom == 0 && temp.left == 0 && temp.right == 0 && temp.top == 0) snprintf(temp.media, sizeof(temp.media), "%s.Borderless", pwg->ppd); else strlcpy(temp.media, pwg->ppd, sizeof(temp.media)); if (!cupsArrayFind(sizes, &temp)) cupsArrayAdd(sizes, &temp); } else if (ippGetValueTag(x_dim) == IPP_TAG_RANGE || ippGetValueTag(y_dim) == IPP_TAG_RANGE) { /* * Custom size - record the min/max values... */ int lower, upper; /* Range values */ if (ippGetValueTag(x_dim) == IPP_TAG_RANGE) lower = ippGetRange(x_dim, 0, &upper); else lower = upper = ippGetInteger(x_dim, 0); if (lower < min_width) min_width = lower; if (upper > max_width) max_width = upper; if (ippGetValueTag(y_dim) == IPP_TAG_RANGE) lower = ippGetRange(y_dim, 0, &upper); else lower = upper = ippGetInteger(y_dim, 0); if (lower < min_length) min_length = lower; if (upper > max_length) max_length = upper; } } } else if ((attr = ippFindAttribute(supported, "media-supported", IPP_TAG_ZERO)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { const char *pwg_size = ippGetString(attr, i, NULL); /* PWG size name */ cups_size_t temp; /* Current size */ if ((pwg = pwgMediaForPWG(pwg_size)) != NULL) { if (strstr(pwg_size, "_max_") || strstr(pwg_size, "_max.")) { if (pwg->width > max_width) max_width = pwg->width; if (pwg->length > max_length) max_length = pwg->length; } else if (strstr(pwg_size, "_min_") || strstr(pwg_size, "_min.")) { if (pwg->width < min_width) min_width = pwg->width; if (pwg->length < min_length) min_length = pwg->length; } else { temp.width = pwg->width; temp.length = pwg->length; temp.bottom = bottom; temp.left = left; temp.right = right; temp.top = top; if (temp.bottom == 0 && temp.left == 0 && temp.right == 0 && temp.top == 0) snprintf(temp.media, sizeof(temp.media), "%s.Borderless", pwg->ppd); else strlcpy(temp.media, pwg->ppd, sizeof(temp.media)); if (!cupsArrayFind(sizes, &temp)) cupsArrayAdd(sizes, &temp); } } } } if (cupsArrayCount(sizes) > 0) { /* * List all of the standard sizes... */ char tleft[256], /* Left string */ tbottom[256], /* Bottom string */ tright[256], /* Right string */ ttop[256], /* Top string */ twidth[256], /* Width string */ tlength[256]; /* Length string */ cupsFilePrintf(fp, "*OpenUI *PageSize: PickOne\n" "*OrderDependency: 10 AnySetup *PageSize\n" "*DefaultPageSize: %s\n", ppdname); for (size = (cups_size_t *)cupsArrayFirst(sizes); size; size = (cups_size_t *)cupsArrayNext(sizes)) { _cupsStrFormatd(twidth, twidth + sizeof(twidth), size->width * 72.0 / 2540.0, loc); _cupsStrFormatd(tlength, tlength + sizeof(tlength), size->length * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*PageSize %s: \"<>setpagedevice\"\n", size->media, twidth, tlength); } cupsFilePuts(fp, "*CloseUI: *PageSize\n"); cupsFilePrintf(fp, "*OpenUI *PageRegion: PickOne\n" "*OrderDependency: 10 AnySetup *PageRegion\n" "*DefaultPageRegion: %s\n", ppdname); for (size = (cups_size_t *)cupsArrayFirst(sizes); size; size = (cups_size_t *)cupsArrayNext(sizes)) { _cupsStrFormatd(twidth, twidth + sizeof(twidth), size->width * 72.0 / 2540.0, loc); _cupsStrFormatd(tlength, tlength + sizeof(tlength), size->length * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*PageRegion %s: \"<>setpagedevice\"\n", size->media, twidth, tlength); } cupsFilePuts(fp, "*CloseUI: *PageRegion\n"); cupsFilePrintf(fp, "*DefaultImageableArea: %s\n" "*DefaultPaperDimension: %s\n", ppdname, ppdname); for (size = (cups_size_t *)cupsArrayFirst(sizes); size; size = (cups_size_t *)cupsArrayNext(sizes)) { _cupsStrFormatd(tleft, tleft + sizeof(tleft), size->left * 72.0 / 2540.0, loc); _cupsStrFormatd(tbottom, tbottom + sizeof(tbottom), size->bottom * 72.0 / 2540.0, loc); _cupsStrFormatd(tright, tright + sizeof(tright), (size->width - size->right) * 72.0 / 2540.0, loc); _cupsStrFormatd(ttop, ttop + sizeof(ttop), (size->length - size->top) * 72.0 / 2540.0, loc); _cupsStrFormatd(twidth, twidth + sizeof(twidth), size->width * 72.0 / 2540.0, loc); _cupsStrFormatd(tlength, tlength + sizeof(tlength), size->length * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*ImageableArea %s: \"%s %s %s %s\"\n", size->media, tleft, tbottom, tright, ttop); cupsFilePrintf(fp, "*PaperDimension %s: \"%s %s\"\n", size->media, twidth, tlength); } cupsArrayDelete(sizes); /* * Custom size support... */ if (max_width > 0 && min_width < INT_MAX && max_length > 0 && min_length < INT_MAX) { char tmax[256], tmin[256]; /* Min/max values */ _cupsStrFormatd(tleft, tleft + sizeof(tleft), left * 72.0 / 2540.0, loc); _cupsStrFormatd(tbottom, tbottom + sizeof(tbottom), bottom * 72.0 / 2540.0, loc); _cupsStrFormatd(tright, tright + sizeof(tright), right * 72.0 / 2540.0, loc); _cupsStrFormatd(ttop, ttop + sizeof(ttop), top * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*HWMargins: \"%s %s %s %s\"\n", tleft, tbottom, tright, ttop); _cupsStrFormatd(tmax, tmax + sizeof(tmax), max_width * 72.0 / 2540.0, loc); _cupsStrFormatd(tmin, tmin + sizeof(tmin), min_width * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*ParamCustomPageSize Width: 1 points %s %s\n", tmin, tmax); _cupsStrFormatd(tmax, tmax + sizeof(tmax), max_length * 72.0 / 2540.0, loc); _cupsStrFormatd(tmin, tmin + sizeof(tmin), min_length * 72.0 / 2540.0, loc); cupsFilePrintf(fp, "*ParamCustomPageSize Height: 2 points %s %s\n", tmin, tmax); cupsFilePuts(fp, "*ParamCustomPageSize WidthOffset: 3 points 0 0\n"); cupsFilePuts(fp, "*ParamCustomPageSize HeightOffset: 4 points 0 0\n"); cupsFilePuts(fp, "*ParamCustomPageSize Orientation: 5 int 0 3\n"); cupsFilePuts(fp, "*CustomPageSize True: \"pop pop pop <>setpagedevice\"\n"); } } else { cupsArrayDelete(sizes); goto bad_ppd; } /* * InputSlot... */ if ((attr = ippFindAttribute(ippGetCollection(defattr, 0), "media-source", IPP_TAG_ZERO)) != NULL) pwg_ppdize_name(ippGetString(attr, 0, NULL), ppdname, sizeof(ppdname)); else ppdname[0] = '\0'; if ((attr = ippFindAttribute(supported, "media-source-supported", IPP_TAG_ZERO)) != NULL && (count = ippGetCount(attr)) > 1) { int have_default = ppdname[0] != '\0'; /* Do we have a default InputSlot? */ static const char * const sources[] = { /* Standard "media-source" strings */ "auto", "main", "alternate", "large-capacity", "manual", "envelope", "disc", "photo", "hagaki", "main-roll", "alternate-roll", "top", "middle", "bottom", "side", "left", "right", "center", "rear", "by-pass-tray", "tray-1", "tray-2", "tray-3", "tray-4", "tray-5", "tray-6", "tray-7", "tray-8", "tray-9", "tray-10", "tray-11", "tray-12", "tray-13", "tray-14", "tray-15", "tray-16", "tray-17", "tray-18", "tray-19", "tray-20", "roll-1", "roll-2", "roll-3", "roll-4", "roll-5", "roll-6", "roll-7", "roll-8", "roll-9", "roll-10" }; cupsFilePuts(fp, "*OpenUI *InputSlot: PickOne\n" "*OrderDependency: 10 AnySetup *InputSlot\n"); if (have_default) cupsFilePrintf(fp, "*DefaultInputSlot: %s\n", ppdname); for (i = 0; i < count; i ++) { keyword = ippGetString(attr, i, NULL); pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); if (i == 0 && !have_default) cupsFilePrintf(fp, "*DefaultInputSlot: %s\n", ppdname); for (j = 0; j < (int)(sizeof(sources) / sizeof(sources[0])); j ++) if (!strcmp(sources[j], keyword)) { snprintf(msgid, sizeof(msgid), "media-source.%s", keyword); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; cupsFilePrintf(fp, "*InputSlot %s: \"<>setpagedevice\"\n", ppdname, j); cupsFilePrintf(fp, "*%s.InputSlot %s/%s: \"\"\n", lang->language, ppdname, msgstr); break; } } cupsFilePuts(fp, "*CloseUI: *InputSlot\n"); } /* * MediaType... */ if ((attr = ippFindAttribute(ippGetCollection(defattr, 0), "media-type", IPP_TAG_ZERO)) != NULL) pwg_ppdize_name(ippGetString(attr, 0, NULL), ppdname, sizeof(ppdname)); else strlcpy(ppdname, "Unknown", sizeof(ppdname)); if ((attr = ippFindAttribute(supported, "media-type-supported", IPP_TAG_ZERO)) != NULL && (count = ippGetCount(attr)) > 1) { cupsFilePrintf(fp, "*OpenUI *MediaType: PickOne\n" "*OrderDependency: 10 AnySetup *MediaType\n" "*DefaultMediaType: %s\n", ppdname); for (i = 0; i < count; i ++) { keyword = ippGetString(attr, i, NULL); pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); snprintf(msgid, sizeof(msgid), "media-type.%s", keyword); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; cupsFilePrintf(fp, "*MediaType %s: \"<>setpagedevice\"\n", ppdname, ppdname); cupsFilePrintf(fp, "*%s.MediaType %s/%s: \"\"\n", lang->language, ppdname, msgstr); } cupsFilePuts(fp, "*CloseUI: *MediaType\n"); } /* * cupsPrintQuality and DefaultResolution... */ quality = ippFindAttribute(supported, "print-quality-supported", IPP_TAG_ENUM); if ((attr = ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD)) != NULL) { int lowdpi = 0, hidpi = 0; /* Lower and higher resolution */ for (i = 0, count = ippGetCount(attr); i < count; i ++) { const char *rs = ippGetString(attr, i, NULL); /* RS value */ if (_cups_strncasecmp(rs, "RS", 2)) continue; lowdpi = atoi(rs + 2); if ((rs = strrchr(rs, '-')) != NULL) hidpi = atoi(rs + 1); else hidpi = lowdpi; break; } if (lowdpi == 0) { /* * Invalid "urf-supported" value... */ goto bad_ppd; } else { /* * Generate print qualities based on low and high DPIs... */ cupsFilePrintf(fp, "*DefaultResolution: %ddpi\n", lowdpi); cupsFilePrintf(fp, "*OpenUI *cupsPrintQuality: PickOne\n" "*OrderDependency: 10 AnySetup *cupsPrintQuality\n" "*%s.Translation cupsPrintQuality/%s: \"\"\n" "*DefaultcupsPrintQuality: Normal\n", lang->language, _cupsLangString(lang, _("Print Quality"))); if ((lowdpi & 1) == 0) { cupsFilePrintf(fp, "*cupsPrintQuality Draft: \"<>setpagedevice\"\n*%s.cupsPrintQuality Draft/%s: \"\"\n", lowdpi, lowdpi / 2, lang->language, _cupsLangString(lang, _("Draft"))); have_qdraft = 1; } else if (ippContainsInteger(quality, IPP_QUALITY_DRAFT)) { cupsFilePrintf(fp, "*cupsPrintQuality Draft: \"<>setpagedevice\"\n*%s.cupsPrintQuality Draft/%s: \"\"\n", lowdpi, lowdpi, lang->language, _cupsLangString(lang, _("Draft"))); have_qdraft = 1; } cupsFilePrintf(fp, "*cupsPrintQuality Normal: \"<>setpagedevice\"\n*%s.cupsPrintQuality Normal/%s: \"\"\n", lowdpi, lowdpi, lang->language, _cupsLangString(lang, _("Normal"))); if (hidpi > lowdpi || ippContainsInteger(quality, IPP_QUALITY_HIGH)) { cupsFilePrintf(fp, "*cupsPrintQuality High: \"<>setpagedevice\"\n*%s.cupsPrintQuality High/%s: \"\"\n", hidpi, hidpi, lang->language, _cupsLangString(lang, _("High"))); have_qhigh = 1; } cupsFilePuts(fp, "*CloseUI: *cupsPrintQuality\n"); } } else if ((attr = ippFindAttribute(supported, "pwg-raster-document-resolution-supported", IPP_TAG_RESOLUTION)) != NULL) { /* * Make a sorted list of resolutions. */ count = ippGetCount(attr); if (count > (int)(sizeof(resolutions) / sizeof(resolutions[0]))) count = (int)(sizeof(resolutions) / sizeof(resolutions[0])); resolutions[0] = 0; /* Not in loop to silence Clang static analyzer... */ for (i = 1; i < count; i ++) resolutions[i] = i; for (i = 0; i < (count - 1); i ++) { for (j = i + 1; j < count; j ++) { int ix, iy, /* First X and Y resolution */ jx, jy, /* Second X and Y resolution */ temp; /* Swap variable */ ipp_res_t units; /* Resolution units */ ix = ippGetResolution(attr, resolutions[i], &iy, &units); jx = ippGetResolution(attr, resolutions[j], &jy, &units); if (ix > jx || (ix == jx && iy > jy)) { /* * Swap these two resolutions... */ temp = resolutions[i]; resolutions[i] = resolutions[j]; resolutions[j] = temp; } } } /* * Generate print quality options... */ pwg_ppdize_resolution(attr, resolutions[count / 2], &xres, &yres, ppdname, sizeof(ppdname)); cupsFilePrintf(fp, "*DefaultResolution: %s\n", ppdname); cupsFilePrintf(fp, "*OpenUI *cupsPrintQuality: PickOne\n" "*OrderDependency: 10 AnySetup *cupsPrintQuality\n" "*%s.Translation cupsPrintQuality/%s: \"\"\n" "*DefaultcupsPrintQuality: Normal\n", lang->language, _cupsLangString(lang, _("Print Quality"))); if (count > 2 || ippContainsInteger(quality, IPP_QUALITY_DRAFT)) { pwg_ppdize_resolution(attr, resolutions[0], &xres, &yres, NULL, 0); cupsFilePrintf(fp, "*cupsPrintQuality Draft: \"<>setpagedevice\"\n", xres, yres); cupsFilePrintf(fp, "*%s.cupsPrintQuality Draft/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Draft"))); have_qdraft = 1; } pwg_ppdize_resolution(attr, resolutions[count / 2], &xres, &yres, NULL, 0); cupsFilePrintf(fp, "*cupsPrintQuality Normal: \"<>setpagedevice\"\n", xres, yres); cupsFilePrintf(fp, "*%s.cupsPrintQuality Normal/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Normal"))); if (count > 1 || ippContainsInteger(quality, IPP_QUALITY_HIGH)) { pwg_ppdize_resolution(attr, resolutions[count - 1], &xres, &yres, NULL, 0); cupsFilePrintf(fp, "*cupsPrintQuality High: \"<>setpagedevice\"\n", xres, yres); cupsFilePrintf(fp, "*%s.cupsPrintQuality High/%s: \"\"\n", lang->language, _cupsLangString(lang, _("High"))); have_qhigh = 1; } cupsFilePuts(fp, "*CloseUI: *cupsPrintQuality\n"); } else if (is_apple || is_pwg) goto bad_ppd; else { if ((attr = ippFindAttribute(supported, "printer-resolution-default", IPP_TAG_RESOLUTION)) != NULL) { pwg_ppdize_resolution(attr, 0, &xres, &yres, ppdname, sizeof(ppdname)); } else { xres = yres = 300; strlcpy(ppdname, "300dpi", sizeof(ppdname)); } cupsFilePrintf(fp, "*DefaultResolution: %s\n", ppdname); cupsFilePrintf(fp, "*OpenUI *cupsPrintQuality: PickOne\n" "*OrderDependency: 10 AnySetup *cupsPrintQuality\n" "*%s.Translation cupsPrintQuality/%s: \"\"\n" "*DefaultcupsPrintQuality: Normal\n", lang->language, _cupsLangString(lang, _("Print Quality"))); if (ippContainsInteger(quality, IPP_QUALITY_DRAFT)) { cupsFilePrintf(fp, "*cupsPrintQuality Draft: \"<>setpagedevice\"\n*%s.cupsPrintQuality Draft/%s: \"\"\n", xres, yres, lang->language, _cupsLangString(lang, _("Draft"))); have_qdraft = 1; } cupsFilePrintf(fp, "*cupsPrintQuality Normal: \"<>setpagedevice\"\n*%s.cupsPrintQuality Normal/%s: \"\"\n", xres, yres, lang->language, _cupsLangString(lang, _("Normal"))); if (ippContainsInteger(quality, IPP_QUALITY_HIGH)) { cupsFilePrintf(fp, "*cupsPrintQuality High: \"<>setpagedevice\"\n*%s.cupsPrintQuality High/%s: \"\"\n", xres, yres, lang->language, _cupsLangString(lang, _("High"))); have_qhigh = 1; } cupsFilePuts(fp, "*CloseUI: *cupsPrintQuality\n"); } /* * ColorModel... */ if ((defattr = ippFindAttribute(supported, "print-color-mode-default", IPP_TAG_KEYWORD)) == NULL) defattr = ippFindAttribute(supported, "output-mode-default", IPP_TAG_KEYWORD); if ((attr = ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD)) == NULL) if ((attr = ippFindAttribute(supported, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL) if ((attr = ippFindAttribute(supported, "print-color-mode-supported", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(supported, "output-mode-supported", IPP_TAG_KEYWORD); if (attr) { int wrote_color = 0; const char *default_color = NULL; /* Default */ if ((keyword = ippGetString(defattr, 0, NULL)) != NULL && strcmp(keyword, "auto")) { if (!strcmp(keyword, "bi-level")) default_color = "FastGray"; else if (!strcmp(keyword, "monochrome") || !strcmp(keyword, "auto-monochrome")) default_color = "Gray"; else default_color = "RGB"; } cupsFilePrintf(fp, "*%% ColorModel from %s\n", ippGetName(attr)); for (i = 0, count = ippGetCount(attr); i < count; i ++) { keyword = ippGetString(attr, i, NULL); #define PRINTF_COLORMODEL if (!wrote_color) { cupsFilePrintf(fp, "*OpenUI *ColorModel: PickOne\n*OrderDependency: 10 AnySetup *ColorModel\n*%s.Translation ColorModel/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Color Mode"))); wrote_color = 1; } #define PRINTF_COLOROPTION(name,text,cspace,bpp) { cupsFilePrintf(fp, "*ColorModel %s: \"<>setpagedevice\"\n", name, cspace, bpp); cupsFilePrintf(fp, "*%s.ColorModel %s/%s: \"\"\n", lang->language, name, _cupsLangString(lang, text)); } if (!strcasecmp(keyword, "black_1") || !strcmp(keyword, "bi-level") || !strcmp(keyword, "process-bi-level")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("FastGray", _("Fast Grayscale"), CUPS_CSPACE_K, 1) if (!default_color) default_color = "FastGray"; } else if (!strcasecmp(keyword, "sgray_8") || !strcmp(keyword, "W8") || !strcmp(keyword, "monochrome") || !strcmp(keyword, "process-monochrome")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("Gray", _("Grayscale"), CUPS_CSPACE_SW, 8) if (!default_color || (!defattr && !strcmp(default_color, "FastGray"))) default_color = "Gray"; } else if (!strcasecmp(keyword, "sgray_16") || !strcmp(keyword, "W8-16")) { PRINTF_COLORMODEL if (!strcmp(keyword, "W8-16")) { PRINTF_COLOROPTION("Gray", _("Grayscale"), CUPS_CSPACE_SW, 8) if (!default_color || (!defattr && !strcmp(default_color, "FastGray"))) default_color = "Gray"; } PRINTF_COLOROPTION("Gray16", _("Deep Gray"), CUPS_CSPACE_SW, 16) } else if (!strcasecmp(keyword, "srgb_8") || !strncmp(keyword, "SRGB24", 6) || !strcmp(keyword, "color")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("RGB", _("Color"), CUPS_CSPACE_SRGB, 8) if (!default_color) default_color = "RGB"; // Apparently some printers only advertise color support, so make sure // we also do grayscale for these printers... if (!ippContainsString(attr, "sgray_8") && !ippContainsString(attr, "black_1") && !ippContainsString(attr, "black_8") && !ippContainsString(attr, "W8") && !ippContainsString(attr, "W8-16")) PRINTF_COLOROPTION("Gray", _("GrayScale"), CUPS_CSPACE_SW, 8) } else if (!strcasecmp(keyword, "adobe-rgb_16") || !strcmp(keyword, "ADOBERGB48") || !strcmp(keyword, "ADOBERGB24-48")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("AdobeRGB", _("Deep Color"), CUPS_CSPACE_ADOBERGB, 16) if (!default_color) default_color = "AdobeRGB"; } else if ((!strcasecmp(keyword, "adobe-rgb_8") && !ippContainsString(attr, "adobe-rgb_16")) || !strcmp(keyword, "ADOBERGB24")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("AdobeRGB", _("Deep Color"), CUPS_CSPACE_ADOBERGB, 8) if (!default_color) default_color = "AdobeRGB"; } else if ((!strcasecmp(keyword, "black_8") && !ippContainsString(attr, "black_16")) || !strcmp(keyword, "DEVW8")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("DeviceGray", _("Device Gray"), CUPS_CSPACE_W, 8) } else if (!strcasecmp(keyword, "black_16") || !strcmp(keyword, "DEVW16") || !strcmp(keyword, "DEVW8-16")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("DeviceGray", _("Device Gray"), CUPS_CSPACE_W, 16) } else if ((!strcasecmp(keyword, "cmyk_8") && !ippContainsString(attr, "cmyk_16")) || !strcmp(keyword, "DEVCMYK32")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("CMYK", _("Device CMYK"), CUPS_CSPACE_CMYK, 8) } else if (!strcasecmp(keyword, "cmyk_16") || !strcmp(keyword, "DEVCMYK32-64") || !strcmp(keyword, "DEVCMYK64")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("CMYK", _("Device CMYK"), CUPS_CSPACE_CMYK, 16) } else if ((!strcasecmp(keyword, "rgb_8") && ippContainsString(attr, "rgb_16")) || !strcmp(keyword, "DEVRGB24")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("DeviceRGB", _("Device RGB"), CUPS_CSPACE_RGB, 8) } else if (!strcasecmp(keyword, "rgb_16") || !strcmp(keyword, "DEVRGB24-48") || !strcmp(keyword, "DEVRGB48")) { PRINTF_COLORMODEL PRINTF_COLOROPTION("DeviceRGB", _("Device RGB"), CUPS_CSPACE_RGB, 16) } } if (default_color) cupsFilePrintf(fp, "*DefaultColorModel: %s\n", default_color); if (wrote_color) cupsFilePuts(fp, "*CloseUI: *ColorModel\n"); if (default_color) { // Standard presets for color mode and quality... if (have_qdraft) cupsFilePuts(fp, "*APPrinterPreset Gray_with_Paper_Auto-Detect_-_Draft/Draft B&W: \"\n" " *cupsPrintQuality Draft *ColorModel Gray\n" " com.apple.print.preset.graphicsType General\n" " com.apple.print.preset.quality low\n" " com.apple.print.preset.media-front-coating autodetect\n" " com.apple.print.preset.output-mode monochrome\"\n" "*End\n"); cupsFilePuts(fp, "*APPrinterPreset Gray_with_Paper_Auto-Detect/Black and White: \"\n" " *cupsPrintQuality Normal *ColorModel Gray\n" " com.apple.print.preset.graphicsType General\n" " com.apple.print.preset.quality mid\n" " com.apple.print.preset.media-front-coating autodetect\n" " com.apple.print.preset.output-mode monochrome\"\n" "*End\n"); if (strcmp(default_color, "Gray")) cupsFilePuts(fp, "*APPrinterPreset Color_with_Paper_Auto-Detect/Color: \"\n" " *cupsPrintQuality Normal *ColorModel RGB\n" " com.apple.print.preset.graphicsType General\n" " com.apple.print.preset.quality mid\n" " com.apple.print.preset.media-front-coating autodetect\n" " com.apple.print.preset.output-mode color\"\n" "*End\n"); if (!strcmp(default_color, "AdobeRGB") || have_qhigh) cupsFilePrintf(fp, "*APPrinterPreset Photo_with_Paper_Auto-Detect/Photo: \"\n" " *cupsPrintQuality %s *ColorModel %s\n" " com.apple.print.preset.graphicsType Photo\n" " com.apple.print.preset.quality %s\n" " com.apple.print.preset.media-front-coating autodetect\n" " com.apple.print.preset.output-mode color\"\n" "*End\n", have_qhigh ? "High" : "Normal", default_color, have_qhigh ? "high" : "mid"); } } /* * Duplex... */ if ((attr = ippFindAttribute(supported, "sides-supported", IPP_TAG_KEYWORD)) != NULL && ippContainsString(attr, "two-sided-long-edge")) { cupsFilePrintf(fp, "*OpenUI *Duplex: PickOne\n" "*OrderDependency: 10 AnySetup *Duplex\n" "*%s.Translation Duplex/%s: \"\"\n" "*DefaultDuplex: None\n" "*Duplex None: \"<>setpagedevice\"\n" "*%s.Duplex None/%s: \"\"\n" "*Duplex DuplexNoTumble: \"<>setpagedevice\"\n" "*%s.Duplex DuplexNoTumble/%s: \"\"\n" "*Duplex DuplexTumble: \"<>setpagedevice\"\n" "*%s.Duplex DuplexTumble/%s: \"\"\n" "*CloseUI: *Duplex\n", lang->language, _cupsLangString(lang, _("2-Sided Printing")), lang->language, _cupsLangString(lang, _("Off (1-Sided)")), lang->language, _cupsLangString(lang, _("Long-Edge (Portrait)")), lang->language, _cupsLangString(lang, _("Short-Edge (Landscape)"))); if ((attr = ippFindAttribute(supported, "urf-supported", IPP_TAG_KEYWORD)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { const char *dm = ippGetString(attr, i, NULL); /* DM value */ if (!_cups_strcasecmp(dm, "DM1")) { cupsFilePuts(fp, "*cupsBackSide: Normal\n"); break; } else if (!_cups_strcasecmp(dm, "DM2")) { cupsFilePuts(fp, "*cupsBackSide: Flipped\n"); break; } else if (!_cups_strcasecmp(dm, "DM3")) { cupsFilePuts(fp, "*cupsBackSide: Rotated\n"); break; } else if (!_cups_strcasecmp(dm, "DM4")) { cupsFilePuts(fp, "*cupsBackSide: ManualTumble\n"); break; } } } else if ((attr = ippFindAttribute(supported, "pwg-raster-document-sheet-back", IPP_TAG_KEYWORD)) != NULL) { keyword = ippGetString(attr, 0, NULL); if (!strcmp(keyword, "flipped")) cupsFilePuts(fp, "*cupsBackSide: Flipped\n"); else if (!strcmp(keyword, "manual-tumble")) cupsFilePuts(fp, "*cupsBackSide: ManualTumble\n"); else if (!strcmp(keyword, "normal")) cupsFilePuts(fp, "*cupsBackSide: Normal\n"); else cupsFilePuts(fp, "*cupsBackSide: Rotated\n"); } } /* * Output bin... */ if ((attr = ippFindAttribute(supported, "output-bin-default", IPP_TAG_ZERO)) != NULL) pwg_ppdize_name(ippGetString(attr, 0, NULL), ppdname, sizeof(ppdname)); else strlcpy(ppdname, "Unknown", sizeof(ppdname)); if ((attr = ippFindAttribute(supported, "output-bin-supported", IPP_TAG_ZERO)) != NULL && (count = ippGetCount(attr)) > 0) { ipp_attribute_t *trays = ippFindAttribute(supported, "printer-output-tray", IPP_TAG_STRING); /* printer-output-tray attribute, if any */ const char *tray_ptr; /* printer-output-tray value */ int tray_len; /* Len of printer-output-tray value */ char tray[IPP_MAX_OCTETSTRING]; /* printer-output-tray string value */ cupsFilePrintf(fp, "*OpenUI *OutputBin: PickOne\n" "*OrderDependency: 10 AnySetup *OutputBin\n" "*DefaultOutputBin: %s\n", ppdname); if (!strcmp(ppdname, "FaceUp")) cupsFilePuts(fp, "*DefaultOutputOrder: Reverse\n"); else cupsFilePuts(fp, "*DefaultOutputOrder: Normal\n"); for (i = 0; i < count; i ++) { keyword = ippGetString(attr, i, NULL); pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); snprintf(msgid, sizeof(msgid), "output-bin.%s", keyword); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; cupsFilePrintf(fp, "*OutputBin %s: \"\"\n", ppdname); cupsFilePrintf(fp, "*%s.OutputBin %s/%s: \"\"\n", lang->language, ppdname, msgstr); if ((tray_ptr = ippGetOctetString(trays, i, &tray_len)) != NULL) { if (tray_len >= (int)sizeof(tray)) tray_len = (int)sizeof(tray) - 1; memcpy(tray, tray_ptr, (size_t)tray_len); tray[tray_len] = '\0'; if (strstr(tray, "stackingorder=lastToFirst;")) cupsFilePrintf(fp, "*PageStackOrder %s: Reverse\n", ppdname); else cupsFilePrintf(fp, "*PageStackOrder %s: Normal\n", ppdname); } else if (!strcmp(ppdname, "FaceUp")) cupsFilePrintf(fp, "*PageStackOrder %s: Reverse\n", ppdname); else cupsFilePrintf(fp, "*PageStackOrder %s: Normal\n", ppdname); } cupsFilePuts(fp, "*CloseUI: *OutputBin\n"); } /* * Finishing options... */ if ((attr = ippFindAttribute(supported, "finishings-supported", IPP_TAG_ENUM)) != NULL) { int value; /* Enum value */ const char *ppd_keyword; /* PPD keyword for enum */ cups_array_t *names; /* Names we've added */ static const char * const base_keywords[] = { /* Base STD 92 keywords */ NULL, /* none */ "SingleAuto", /* staple */ "SingleAuto", /* punch */ NULL, /* cover */ "BindAuto", /* bind */ "SaddleStitch", /* saddle-stitch */ "EdgeStitchAuto", /* edge-stitch */ "Auto", /* fold */ NULL, /* trim */ NULL, /* bale */ NULL, /* booklet-maker */ NULL, /* jog-offset */ NULL, /* coat */ NULL /* laminate */ }; count = ippGetCount(attr); names = cupsArrayNew3((cups_array_func_t)strcmp, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free); fin_options = cupsArrayNew((cups_array_func_t)strcmp, NULL); /* * Staple/Bind/Stitch */ for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strncmp(keyword, "staple-", 7) || !strncmp(keyword, "bind-", 5) || !strncmp(keyword, "edge-stitch-", 12) || !strcmp(keyword, "saddle-stitch")) break; } if (i < count) { static const char * const staple_keywords[] = { /* StapleLocation keywords */ "SinglePortrait", "SingleRevLandscape", "SingleLandscape", "SingleRevPortrait", "EdgeStitchPortrait", "EdgeStitchLandscape", "EdgeStitchRevPortrait", "EdgeStitchRevLandscape", "DualPortrait", "DualLandscape", "DualRevPortrait", "DualRevLandscape", "TriplePortrait", "TripleLandscape", "TripleRevPortrait", "TripleRevLandscape" }; static const char * const bind_keywords[] = { /* StapleLocation binding keywords */ "BindPortrait", "BindLandscape", "BindRevPortrait", "BindRevLandscape" }; cupsArrayAdd(fin_options, "*StapleLocation"); cupsFilePuts(fp, "*OpenUI *StapleLocation: PickOne\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *StapleLocation\n"); cupsFilePrintf(fp, "*%s.Translation StapleLocation/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Staple"))); cupsFilePuts(fp, "*DefaultStapleLocation: None\n"); cupsFilePuts(fp, "*StapleLocation None: \"\"\n"); cupsFilePrintf(fp, "*%s.StapleLocation None/%s: \"\"\n", lang->language, _cupsLangString(lang, _("None"))); for (; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (strncmp(keyword, "staple-", 7) && strncmp(keyword, "bind-", 5) && strncmp(keyword, "edge-stitch-", 12) && strcmp(keyword, "saddle-stitch")) continue; if (cupsArrayFind(names, (char *)keyword)) continue; /* Already did this finishing template */ cupsArrayAdd(names, (char *)keyword); snprintf(msgid, sizeof(msgid), "finishings.%d", value); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; if (value >= IPP_FINISHINGS_NONE && value <= IPP_FINISHINGS_LAMINATE) ppd_keyword = base_keywords[value - IPP_FINISHINGS_NONE]; else if (value >= IPP_FINISHINGS_STAPLE_TOP_LEFT && value <= IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM) ppd_keyword = staple_keywords[value - IPP_FINISHINGS_STAPLE_TOP_LEFT]; else if (value >= IPP_FINISHINGS_BIND_LEFT && value <= IPP_FINISHINGS_BIND_BOTTOM) ppd_keyword = bind_keywords[value - IPP_FINISHINGS_BIND_LEFT]; else ppd_keyword = NULL; if (!ppd_keyword) continue; cupsFilePrintf(fp, "*StapleLocation %s: \"\"\n", ppd_keyword); cupsFilePrintf(fp, "*%s.StapleLocation %s/%s: \"\"\n", lang->language, ppd_keyword, msgstr); cupsFilePrintf(fp, "*cupsIPPFinishings %d/%s: \"*StapleLocation %s\"\n", value, keyword, ppd_keyword); } cupsFilePuts(fp, "*CloseUI: *StapleLocation\n"); } /* * Fold */ for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strncmp(keyword, "cups-fold-", 10) || !strcmp(keyword, "fold") || !strncmp(keyword, "fold-", 5)) break; } if (i < count) { static const char * const fold_keywords[] = { /* FoldType keywords */ "Accordion", "DoubleGate", "Gate", "Half", "HalfZ", "LeftGate", "Letter", "Parallel", "XFold", "RightGate", "ZFold", "EngineeringZ" }; cupsArrayAdd(fin_options, "*FoldType"); cupsFilePuts(fp, "*OpenUI *FoldType: PickOne\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *FoldType\n"); cupsFilePrintf(fp, "*%s.Translation FoldType/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Fold"))); cupsFilePuts(fp, "*DefaultFoldType: None\n"); cupsFilePuts(fp, "*FoldType None: \"\"\n"); cupsFilePrintf(fp, "*%s.FoldType None/%s: \"\"\n", lang->language, _cupsLangString(lang, _("None"))); for (; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strncmp(keyword, "cups-fold-", 10)) keyword += 5; else if (strcmp(keyword, "fold") && strncmp(keyword, "fold-", 5)) continue; if (cupsArrayFind(names, (char *)keyword)) continue; /* Already did this finishing template */ cupsArrayAdd(names, (char *)keyword); snprintf(msgid, sizeof(msgid), "finishings.%d", value); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; if (value >= IPP_FINISHINGS_NONE && value <= IPP_FINISHINGS_LAMINATE) ppd_keyword = base_keywords[value - IPP_FINISHINGS_NONE]; else if (value >= IPP_FINISHINGS_FOLD_ACCORDION && value <= IPP_FINISHINGS_FOLD_ENGINEERING_Z) ppd_keyword = fold_keywords[value - IPP_FINISHINGS_FOLD_ACCORDION]; else if (value >= IPP_FINISHINGS_CUPS_FOLD_ACCORDION && value <= IPP_FINISHINGS_CUPS_FOLD_Z) ppd_keyword = fold_keywords[value - IPP_FINISHINGS_CUPS_FOLD_ACCORDION]; else ppd_keyword = NULL; if (!ppd_keyword) continue; cupsFilePrintf(fp, "*FoldType %s: \"\"\n", ppd_keyword); cupsFilePrintf(fp, "*%s.FoldType %s/%s: \"\"\n", lang->language, ppd_keyword, msgstr); cupsFilePrintf(fp, "*cupsIPPFinishings %d/%s: \"*FoldType %s\"\n", value, keyword, ppd_keyword); } cupsFilePuts(fp, "*CloseUI: *FoldType\n"); } /* * Punch */ for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strncmp(keyword, "cups-punch-", 11) || !strncmp(keyword, "punch-", 6)) break; } if (i < count) { static const char * const punch_keywords[] = { /* PunchMedia keywords */ "SinglePortrait", "SingleRevLandscape", "SingleLandscape", "SingleRevPortrait", "DualPortrait", "DualLandscape", "DualRevPortrait", "DualRevLandscape", "TriplePortrait", "TripleLandscape", "TripleRevPortrait", "TripleRevLandscape", "QuadPortrait", "QuadLandscape", "QuadRevPortrait", "QuadRevLandscape", "MultiplePortrait", "MultipleLandscape", "MultipleRevPortrait", "MultipleRevLandscape" }; cupsArrayAdd(fin_options, "*PunchMedia"); cupsFilePuts(fp, "*OpenUI *PunchMedia: PickOne\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *PunchMedia\n"); cupsFilePrintf(fp, "*%s.Translation PunchMedia/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Punch"))); cupsFilePuts(fp, "*DefaultPunchMedia: None\n"); cupsFilePuts(fp, "*PunchMedia None: \"\"\n"); cupsFilePrintf(fp, "*%s.PunchMedia None/%s: \"\"\n", lang->language, _cupsLangString(lang, _("None"))); for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strncmp(keyword, "cups-punch-", 11)) keyword += 5; else if (strncmp(keyword, "punch-", 6)) continue; if (cupsArrayFind(names, (char *)keyword)) continue; /* Already did this finishing template */ cupsArrayAdd(names, (char *)keyword); snprintf(msgid, sizeof(msgid), "finishings.%d", value); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; if (value >= IPP_FINISHINGS_NONE && value <= IPP_FINISHINGS_LAMINATE) ppd_keyword = base_keywords[value - IPP_FINISHINGS_NONE]; else if (value >= IPP_FINISHINGS_PUNCH_TOP_LEFT && value <= IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM) ppd_keyword = punch_keywords[value - IPP_FINISHINGS_PUNCH_TOP_LEFT]; else if (value >= IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT && value <= IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM) ppd_keyword = punch_keywords[value - IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT]; else ppd_keyword = NULL; if (!ppd_keyword) continue; cupsFilePrintf(fp, "*PunchMedia %s: \"\"\n", ppd_keyword); cupsFilePrintf(fp, "*%s.PunchMedia %s/%s: \"\"\n", lang->language, ppd_keyword, msgstr); cupsFilePrintf(fp, "*cupsIPPFinishings %d/%s: \"*PunchMedia %s\"\n", value, keyword, ppd_keyword); } cupsFilePuts(fp, "*CloseUI: *PunchMedia\n"); } /* * Booklet */ if (ippContainsInteger(attr, IPP_FINISHINGS_BOOKLET_MAKER)) { cupsArrayAdd(fin_options, "*Booklet"); cupsFilePuts(fp, "*OpenUI *Booklet: Boolean\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *Booklet\n"); cupsFilePrintf(fp, "*%s.Translation Booklet/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Booklet"))); cupsFilePuts(fp, "*DefaultBooklet: False\n"); cupsFilePuts(fp, "*Booklet False: \"\"\n"); cupsFilePuts(fp, "*Booklet True: \"\"\n"); cupsFilePrintf(fp, "*cupsIPPFinishings %d/booklet-maker: \"*Booklet True\"\n", IPP_FINISHINGS_BOOKLET_MAKER); cupsFilePuts(fp, "*CloseUI: *Booklet\n"); } /* * CutMedia */ for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (!strcmp(keyword, "trim") || !strncmp(keyword, "trim-", 5)) break; } if (i < count) { static const char * const trim_keywords[] = { /* CutMedia keywords */ "EndOfPage", "EndOfDoc", "EndOfSet", "EndOfJob" }; cupsArrayAdd(fin_options, "*CutMedia"); cupsFilePuts(fp, "*OpenUI *CutMedia: PickOne\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *CutMedia\n"); cupsFilePrintf(fp, "*%s.Translation CutMedia/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Cut"))); cupsFilePuts(fp, "*DefaultCutMedia: None\n"); cupsFilePuts(fp, "*CutMedia None: \"\"\n"); cupsFilePrintf(fp, "*%s.CutMedia None/%s: \"\"\n", lang->language, _cupsLangString(lang, _("None"))); for (i = 0; i < count; i ++) { value = ippGetInteger(attr, i); keyword = ippEnumString("finishings", value); if (strcmp(keyword, "trim") && strncmp(keyword, "trim-", 5)) continue; if (cupsArrayFind(names, (char *)keyword)) continue; /* Already did this finishing template */ cupsArrayAdd(names, (char *)keyword); snprintf(msgid, sizeof(msgid), "finishings.%d", value); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; if (value == IPP_FINISHINGS_TRIM) ppd_keyword = "Auto"; else ppd_keyword = trim_keywords[value - IPP_FINISHINGS_TRIM_AFTER_PAGES]; cupsFilePrintf(fp, "*CutMedia %s: \"\"\n", ppd_keyword); cupsFilePrintf(fp, "*%s.CutMedia %s/%s: \"\"\n", lang->language, ppd_keyword, msgstr); cupsFilePrintf(fp, "*cupsIPPFinishings %d/%s: \"*CutMedia %s\"\n", value, keyword, ppd_keyword); } cupsFilePuts(fp, "*CloseUI: *CutMedia\n"); } cupsArrayDelete(names); } if ((attr = ippFindAttribute(supported, "finishings-col-database", IPP_TAG_BEGIN_COLLECTION)) != NULL) { ipp_t *finishing_col; /* Current finishing collection */ ipp_attribute_t *finishing_attr; /* Current finishing member attribute */ cups_array_t *templates; /* Finishing templates */ cupsFilePuts(fp, "*OpenUI *cupsFinishingTemplate: PickOne\n"); cupsFilePuts(fp, "*OrderDependency: 10 AnySetup *cupsFinishingTemplate\n"); cupsFilePrintf(fp, "*%s.Translation cupsFinishingTemplate/%s: \"\"\n", lang->language, _cupsLangString(lang, _("Finishing Preset"))); cupsFilePuts(fp, "*DefaultcupsFinishingTemplate: none\n"); cupsFilePuts(fp, "*cupsFinishingTemplate none: \"\"\n"); cupsFilePrintf(fp, "*%s.cupsFinishingTemplate none/%s: \"\"\n", lang->language, _cupsLangString(lang, _("None"))); templates = cupsArrayNew((cups_array_func_t)strcmp, NULL); count = ippGetCount(attr); for (i = 0; i < count; i ++) { finishing_col = ippGetCollection(attr, i); keyword = ippGetString(ippFindAttribute(finishing_col, "finishing-template", IPP_TAG_ZERO), 0, NULL); if (!keyword || cupsArrayFind(templates, (void *)keyword)) continue; if (!strcmp(keyword, "none")) continue; cupsArrayAdd(templates, (void *)keyword); snprintf(msgid, sizeof(msgid), "finishing-template.%s", keyword); if ((msgstr = _cupsLangString(lang, msgid)) == msgid || !strcmp(msgid, msgstr)) if ((msgstr = _cupsMessageLookup(strings, msgid)) == msgid) msgstr = keyword; cupsFilePrintf(fp, "*cupsFinishingTemplate %s: \"\n", keyword); for (finishing_attr = ippFirstAttribute(finishing_col); finishing_attr; finishing_attr = ippNextAttribute(finishing_col)) { if (ippGetValueTag(finishing_attr) == IPP_TAG_BEGIN_COLLECTION) { const char *name = ippGetName(finishing_attr); /* Member attribute name */ if (strcmp(name, "media-size")) cupsFilePrintf(fp, "%% %s\n", name); } } cupsFilePuts(fp, "\"\n"); cupsFilePrintf(fp, "*%s.cupsFinishingTemplate %s/%s: \"\"\n", lang->language, keyword, msgstr); cupsFilePuts(fp, "*End\n"); } cupsFilePuts(fp, "*CloseUI: *cupsFinishingTemplate\n"); if (cupsArrayCount(fin_options)) { const char *fin_option; /* Current finishing option */ cupsFilePuts(fp, "*cupsUIConstraint finishing-template: \"*cupsFinishingTemplate"); for (fin_option = (const char *)cupsArrayFirst(fin_options); fin_option; fin_option = (const char *)cupsArrayNext(fin_options)) cupsFilePrintf(fp, " %s", fin_option); cupsFilePuts(fp, "\"\n"); cupsFilePuts(fp, "*cupsUIResolver finishing-template: \"*cupsFinishingTemplate None"); for (fin_option = (const char *)cupsArrayFirst(fin_options); fin_option; fin_option = (const char *)cupsArrayNext(fin_options)) cupsFilePrintf(fp, " %s None", fin_option); cupsFilePuts(fp, "\"\n"); } cupsArrayDelete(templates); } cupsArrayDelete(fin_options); /* * Presets... */ if ((attr = ippFindAttribute(supported, "job-presets-supported", IPP_TAG_BEGIN_COLLECTION)) != NULL) { for (i = 0, count = ippGetCount(attr); i < count; i ++) { ipp_t *preset = ippGetCollection(attr, i); /* Preset collection */ const char *preset_name = ippGetString(ippFindAttribute(preset, "preset-name", IPP_TAG_ZERO), 0, NULL), /* Preset name */ *localized_name; /* Localized preset name */ ipp_attribute_t *member; /* Member attribute in preset */ const char *member_name; /* Member attribute name */ char member_value[256]; /* Member attribute value */ if (!preset || !preset_name) continue; cupsFilePrintf(fp, "*APPrinterPreset %s: \"\n", preset_name); for (member = ippFirstAttribute(preset); member; member = ippNextAttribute(preset)) { member_name = ippGetName(member); if (!member_name || !strcmp(member_name, "preset-name")) continue; if (!strcmp(member_name, "finishings")) { for (i = 0, count = ippGetCount(member); i < count; i ++) { const char *option = NULL; /* PPD option name */ keyword = ippEnumString("finishings", ippGetInteger(member, i)); if (!strcmp(keyword, "booklet-maker")) { option = "Booklet"; keyword = "True"; } else if (!strncmp(keyword, "fold-", 5)) option = "FoldType"; else if (!strncmp(keyword, "punch-", 6)) option = "PunchMedia"; else if (!strncmp(keyword, "bind-", 5) || !strncmp(keyword, "edge-stitch-", 12) || !strcmp(keyword, "saddle-stitch") || !strncmp(keyword, "staple-", 7)) option = "StapleLocation"; if (option && keyword) cupsFilePrintf(fp, "*%s %s\n", option, keyword); } } else if (!strcmp(member_name, "finishings-col")) { ipp_t *fin_col; /* finishings-col value */ for (i = 0, count = ippGetCount(member); i < count; i ++) { fin_col = ippGetCollection(member, i); if ((keyword = ippGetString(ippFindAttribute(fin_col, "finishing-template", IPP_TAG_ZERO), 0, NULL)) != NULL) cupsFilePrintf(fp, "*cupsFinishingTemplate %s\n", keyword); } } else if (!strcmp(member_name, "media")) { /* * Map media to PageSize... */ if ((pwg = pwgMediaForPWG(ippGetString(member, 0, NULL))) != NULL && pwg->ppd) cupsFilePrintf(fp, "*PageSize %s\n", pwg->ppd); } else if (!strcmp(member_name, "media-col")) { media_col = ippGetCollection(member, 0); if ((media_size = ippGetCollection(ippFindAttribute(media_col, "media-size", IPP_TAG_BEGIN_COLLECTION), 0)) != NULL) { x_dim = ippFindAttribute(media_size, "x-dimension", IPP_TAG_INTEGER); y_dim = ippFindAttribute(media_size, "y-dimension", IPP_TAG_INTEGER); if ((pwg = pwgMediaForSize(ippGetInteger(x_dim, 0), ippGetInteger(y_dim, 0))) != NULL && pwg->ppd) cupsFilePrintf(fp, "*PageSize %s\n", pwg->ppd); } if ((keyword = ippGetString(ippFindAttribute(media_col, "media-source", IPP_TAG_ZERO), 0, NULL)) != NULL) { pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); cupsFilePrintf(fp, "*InputSlot %s\n", keyword); } if ((keyword = ippGetString(ippFindAttribute(media_col, "media-type", IPP_TAG_ZERO), 0, NULL)) != NULL) { pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); cupsFilePrintf(fp, "*MediaType %s\n", keyword); } } else if (!strcmp(member_name, "print-quality")) { /* * Map print-quality to cupsPrintQuality... */ int qval = ippGetInteger(member, 0); /* print-quality value */ static const char * const qualities[] = { "Draft", "Normal", "High" }; /* cupsPrintQuality values */ if (qval >= IPP_QUALITY_DRAFT && qval <= IPP_QUALITY_HIGH) cupsFilePrintf(fp, "*cupsPrintQuality %s\n", qualities[qval - IPP_QUALITY_DRAFT]); } else if (!strcmp(member_name, "output-bin")) { pwg_ppdize_name(ippGetString(member, 0, NULL), ppdname, sizeof(ppdname)); cupsFilePrintf(fp, "*OutputBin %s\n", ppdname); } else if (!strcmp(member_name, "sides")) { keyword = ippGetString(member, 0, NULL); if (keyword && !strcmp(keyword, "one-sided")) cupsFilePuts(fp, "*Duplex None\n"); else if (keyword && !strcmp(keyword, "two-sided-long-edge")) cupsFilePuts(fp, "*Duplex DuplexNoTumble\n"); else if (keyword && !strcmp(keyword, "two-sided-short-edge")) cupsFilePuts(fp, "*Duplex DuplexTumble\n"); } else { /* * Add attribute name and value as-is... */ ippAttributeString(member, member_value, sizeof(member_value)); cupsFilePrintf(fp, "*%s %s\n", member_name, member_value); } } cupsFilePuts(fp, "\"\n*End\n"); if ((localized_name = _cupsMessageLookup(strings, preset_name)) != preset_name) cupsFilePrintf(fp, "*%s.APPrinterPreset %s/%s: \"\"\n", lang->language, preset_name, localized_name); } } /* * Add cupsSingleFile to support multiple files printing on printers * which don't support multiple files in its firmware... * * Adding the keyword degrades printing performance (there is 1-2 seconds * pause between files). */ cupsFilePuts(fp, "*cupsSingleFile: true\n"); /* * Close up and return... */ cupsFileClose(fp); _cupsMessageFree(strings); return (buffer); /* * If we get here then there was a problem creating the PPD... */ bad_ppd: cupsFileClose(fp); unlink(buffer); *buffer = '\0'; _cupsMessageFree(strings); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Printer does not support required IPP attributes or document formats."), 1); return (NULL); } /* * '_pwgInputSlotForSource()' - Get the InputSlot name for the given PWG * media-source. */ const char * /* O - InputSlot name */ _pwgInputSlotForSource( const char *media_source, /* I - PWG media-source */ char *name, /* I - Name buffer */ size_t namesize) /* I - Size of name buffer */ { /* * Range check input... */ if (!media_source || !name || namesize < PPD_MAX_NAME) return (NULL); if (_cups_strcasecmp(media_source, "main")) strlcpy(name, "Cassette", namesize); else if (_cups_strcasecmp(media_source, "alternate")) strlcpy(name, "Multipurpose", namesize); else if (_cups_strcasecmp(media_source, "large-capacity")) strlcpy(name, "LargeCapacity", namesize); else if (_cups_strcasecmp(media_source, "bottom")) strlcpy(name, "Lower", namesize); else if (_cups_strcasecmp(media_source, "middle")) strlcpy(name, "Middle", namesize); else if (_cups_strcasecmp(media_source, "top")) strlcpy(name, "Upper", namesize); else if (_cups_strcasecmp(media_source, "rear")) strlcpy(name, "Rear", namesize); else if (_cups_strcasecmp(media_source, "side")) strlcpy(name, "Side", namesize); else if (_cups_strcasecmp(media_source, "envelope")) strlcpy(name, "Envelope", namesize); else if (_cups_strcasecmp(media_source, "main-roll")) strlcpy(name, "Roll", namesize); else if (_cups_strcasecmp(media_source, "alternate-roll")) strlcpy(name, "Roll2", namesize); else pwg_ppdize_name(media_source, name, namesize); return (name); } /* * '_pwgMediaTypeForType()' - Get the MediaType name for the given PWG * media-type. */ const char * /* O - MediaType name */ _pwgMediaTypeForType( const char *media_type, /* I - PWG media-type */ char *name, /* I - Name buffer */ size_t namesize) /* I - Size of name buffer */ { /* * Range check input... */ if (!media_type || !name || namesize < PPD_MAX_NAME) return (NULL); if (_cups_strcasecmp(media_type, "auto")) strlcpy(name, "Auto", namesize); else if (_cups_strcasecmp(media_type, "cardstock")) strlcpy(name, "Cardstock", namesize); else if (_cups_strcasecmp(media_type, "envelope")) strlcpy(name, "Envelope", namesize); else if (_cups_strcasecmp(media_type, "photographic-glossy")) strlcpy(name, "Glossy", namesize); else if (_cups_strcasecmp(media_type, "photographic-high-gloss")) strlcpy(name, "HighGloss", namesize); else if (_cups_strcasecmp(media_type, "photographic-matte")) strlcpy(name, "Matte", namesize); else if (_cups_strcasecmp(media_type, "stationery")) strlcpy(name, "Plain", namesize); else if (_cups_strcasecmp(media_type, "stationery-coated")) strlcpy(name, "Coated", namesize); else if (_cups_strcasecmp(media_type, "stationery-inkjet")) strlcpy(name, "Inkjet", namesize); else if (_cups_strcasecmp(media_type, "stationery-letterhead")) strlcpy(name, "Letterhead", namesize); else if (_cups_strcasecmp(media_type, "stationery-preprinted")) strlcpy(name, "Preprinted", namesize); else if (_cups_strcasecmp(media_type, "transparency")) strlcpy(name, "Transparency", namesize); else pwg_ppdize_name(media_type, name, namesize); return (name); } /* * '_pwgPageSizeForMedia()' - Get the PageSize name for the given media. */ const char * /* O - PageSize name */ _pwgPageSizeForMedia( pwg_media_t *media, /* I - Media */ char *name, /* I - PageSize name buffer */ size_t namesize) /* I - Size of name buffer */ { const char *sizeptr, /* Pointer to size in PWG name */ *dimptr; /* Pointer to dimensions in PWG name */ /* * Range check input... */ if (!media || !name || namesize < PPD_MAX_NAME) return (NULL); /* * Copy or generate a PageSize name... */ if (media->ppd) { /* * Use a standard Adobe name... */ strlcpy(name, media->ppd, namesize); } else if (!media->pwg || !strncmp(media->pwg, "custom_", 7) || (sizeptr = strchr(media->pwg, '_')) == NULL || (dimptr = strchr(sizeptr + 1, '_')) == NULL || (size_t)(dimptr - sizeptr) > namesize) { /* * Use a name of the form "wNNNhNNN"... */ snprintf(name, namesize, "w%dh%d", (int)PWG_TO_POINTS(media->width), (int)PWG_TO_POINTS(media->length)); } else { /* * Copy the size name from class_sizename_dimensions... */ memcpy(name, sizeptr + 1, (size_t)(dimptr - sizeptr - 1)); name[dimptr - sizeptr - 1] = '\0'; } return (name); } /* * 'cups_connect()' - Connect to a URL and get the resource path. */ static int /* O - 1 on success, 0 on failure */ cups_connect(http_t **http, /* IO - Current HTTP connection */ const char *url, /* I - URL to connect */ char *resource, /* I - Resource path buffer */ size_t ressize) /* I - Size of resource path buffer */ { char scheme[32], /* URL scheme */ userpass[256], /* URL username:password */ host[256], /* URL host */ curhost[256]; /* Current host */ int port; /* URL port */ http_encryption_t encryption; /* Type of encryption to use */ // Separate the URI... if (httpSeparateURI(HTTP_URI_CODING_ALL, url, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, ressize) < HTTP_URI_STATUS_OK) return (0); // Use encryption as needed.. if (port == 443 || !strcmp(scheme, "https") || !strcmp(scheme, "ipps")) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = HTTP_ENCRYPTION_IF_REQUESTED; if (!*http || strcasecmp(host, httpGetHostname(*http, curhost, sizeof(curhost))) || httpAddrPort(httpGetAddress(*http)) != port || httpIsEncrypted(*http) != (encryption == HTTP_ENCRYPTION_ALWAYS)) { httpClose(*http); *http = httpConnect2(host, port, NULL, AF_UNSPEC, encryption, 1, 5000, NULL); } return (*http != NULL); } /* * 'cups_get_url()' - Get a copy of the file at the given URL. */ static int /* O - 1 on success, 0 on failure */ cups_get_url(http_t **http, /* IO - Current HTTP connection */ const char *url, /* I - URL to get */ char *name, /* I - Temporary filename */ size_t namesize) /* I - Size of temporary filename buffer */ { char resource[256]; /* URL resource */ http_status_t status; /* Status of GET request */ int fd; /* Temporary file */ if (!cups_connect(http, url, resource, sizeof(resource))) return (0); if ((fd = cupsTempFd(name, (int)namesize)) < 0) return (0); status = cupsGetFd(*http, resource, fd); close(fd); if (status != HTTP_STATUS_OK) { unlink(name); *name = '\0'; return (0); } return (1); } /* * 'pwg_add_finishing()' - Add a finishings value. */ static void pwg_add_finishing( cups_array_t *finishings, /* I - Finishings array */ ipp_finishings_t template, /* I - Finishing template */ const char *name, /* I - PPD option */ const char *value) /* I - PPD choice */ { _pwg_finishings_t *f; /* New finishings value */ if ((f = (_pwg_finishings_t *)calloc(1, sizeof(_pwg_finishings_t))) != NULL) { f->value = template; f->num_options = cupsAddOption(name, value, 0, &f->options); cupsArrayAdd(finishings, f); } } /* * 'pwg_add_message()' - Add a message to the PPD cached strings. */ static void pwg_add_message(cups_array_t *a, /* I - Message catalog */ const char *msg, /* I - Message identifier */ const char *str) /* I - Localized string */ { _cups_message_t *m; /* New message */ if ((m = calloc(1, sizeof(_cups_message_t))) != NULL) { m->msg = strdup(msg); m->str = strdup(str); cupsArrayAdd(a, m); } } /* * 'pwg_compare_finishings()' - Compare two finishings values. */ static int /* O - Result of comparison */ pwg_compare_finishings( _pwg_finishings_t *a, /* I - First finishings value */ _pwg_finishings_t *b) /* I - Second finishings value */ { return ((int)b->value - (int)a->value); } /* * 'pwg_compare_sizes()' - Compare two media sizes... */ static int /* O - Result of comparison */ pwg_compare_sizes(cups_size_t *a, /* I - First media size */ cups_size_t *b) /* I - Second media size */ { return (strcmp(a->media, b->media)); } /* * 'pwg_copy_size()' - Copy a media size. */ static cups_size_t * /* O - New media size */ pwg_copy_size(cups_size_t *size) /* I - Media size to copy */ { cups_size_t *newsize = (cups_size_t *)calloc(1, sizeof(cups_size_t)); /* New media size */ if (newsize) memcpy(newsize, size, sizeof(cups_size_t)); return (newsize); } /* * 'pwg_free_finishings()' - Free a finishings value. */ static void pwg_free_finishings( _pwg_finishings_t *f) /* I - Finishings value */ { cupsFreeOptions(f->num_options, f->options); free(f); } /* * 'pwg_ppdize_name()' - Convert an IPP keyword to a PPD keyword. */ static void pwg_ppdize_name(const char *ipp, /* I - IPP keyword */ char *name, /* I - Name buffer */ size_t namesize) /* I - Size of name buffer */ { char *ptr, /* Pointer into name buffer */ *end; /* End of name buffer */ if (!ipp) { *name = '\0'; return; } *name = (char)toupper(*ipp++); for (ptr = name + 1, end = name + namesize - 1; *ipp && ptr < end;) { if (*ipp == '-' && _cups_isalnum(ipp[1])) { ipp ++; *ptr++ = (char)toupper(*ipp++ & 255); } else *ptr++ = *ipp++; } *ptr = '\0'; } /* * 'pwg_ppdize_resolution()' - Convert PWG resolution values to PPD values. */ static void pwg_ppdize_resolution( ipp_attribute_t *attr, /* I - Attribute to convert */ int element, /* I - Element to convert */ int *xres, /* O - X resolution in DPI */ int *yres, /* O - Y resolution in DPI */ char *name, /* I - Name buffer */ size_t namesize) /* I - Size of name buffer */ { ipp_res_t units; /* Units for resolution */ *xres = ippGetResolution(attr, element, yres, &units); if (units == IPP_RES_PER_CM) { *xres = (int)(*xres * 2.54); *yres = (int)(*yres * 2.54); } if (name && namesize > 4) { if (*xres == *yres) snprintf(name, namesize, "%ddpi", *xres); else snprintf(name, namesize, "%dx%ddpi", *xres, *yres); } } /* * 'pwg_unppdize_name()' - Convert a PPD keyword to a lowercase IPP keyword. */ static void pwg_unppdize_name(const char *ppd, /* I - PPD keyword */ char *name, /* I - Name buffer */ size_t namesize, /* I - Size of name buffer */ const char *dashchars)/* I - Characters to be replaced by dashes */ { char *ptr, /* Pointer into name buffer */ *end; /* End of name buffer */ int nodash = 1; /* Next char in IPP name cannot be a dash (first char or after a dash) */ if (_cups_islower(*ppd)) { /* * Already lowercase name, use as-is? */ const char *ppdptr; /* Pointer into PPD keyword */ for (ppdptr = ppd + 1; *ppdptr; ppdptr ++) if (_cups_isupper(*ppdptr) || strchr(dashchars, *ppdptr) || (*ppdptr == '-' && *(ppdptr - 1) == '-') || (*ppdptr == '-' && *(ppdptr + 1) == '\0')) break; if (!*ppdptr) { strlcpy(name, ppd, namesize); return; } } for (ptr = name, end = name + namesize - 1; *ppd && ptr < end; ppd ++) { if (_cups_isalnum(*ppd)) { *ptr++ = (char)tolower(*ppd & 255); nodash = 0; } else if (*ppd == '-' || strchr(dashchars, *ppd)) { if (nodash == 0) { *ptr++ = '-'; nodash = 1; } } else { *ptr++ = *ppd; nodash = 0; } if (nodash == 0) { if (!_cups_isupper(*ppd) && _cups_isalnum(*ppd) && _cups_isupper(ppd[1]) && ptr < end) { *ptr++ = '-'; nodash = 1; } else if (!isdigit(*ppd & 255) && isdigit(ppd[1] & 255)) { *ptr++ = '-'; nodash = 1; } } } /* Remove trailing dashes */ while (ptr > name && *(ptr - 1) == '-') ptr --; *ptr = '\0'; } cups-2.4.7/cups/ppd-attr.c0000644000175000017500000001470014502571342015234 0ustar zdohnalzdohnal/* * PPD model-specific attribute routines for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ppd-private.h" #include "debug-internal.h" /* * 'ppdFindAttr()' - Find the first matching attribute. * * @since CUPS 1.1.19/macOS 10.3@ */ ppd_attr_t * /* O - Attribute or @code NULL@ if not found */ ppdFindAttr(ppd_file_t *ppd, /* I - PPD file data */ const char *name, /* I - Attribute name */ const char *spec) /* I - Specifier string or @code NULL@ */ { ppd_attr_t key, /* Search key */ *attr; /* Current attribute */ DEBUG_printf(("2ppdFindAttr(ppd=%p, name=\"%s\", spec=\"%s\")", ppd, name, spec)); /* * Range check input... */ if (!ppd || !name || ppd->num_attrs == 0) return (NULL); /* * Search for a matching attribute... */ memset(&key, 0, sizeof(key)); strlcpy(key.name, name, sizeof(key.name)); /* * Return the first matching attribute, if any... */ if ((attr = (ppd_attr_t *)cupsArrayFind(ppd->sorted_attrs, &key)) != NULL) { if (spec) { /* * Loop until we find the first matching attribute for "spec"... */ while (attr && _cups_strcasecmp(spec, attr->spec)) { if ((attr = (ppd_attr_t *)cupsArrayNext(ppd->sorted_attrs)) != NULL && _cups_strcasecmp(attr->name, name)) attr = NULL; } } } return (attr); } /* * 'ppdFindNextAttr()' - Find the next matching attribute. * * @since CUPS 1.1.19/macOS 10.3@ */ ppd_attr_t * /* O - Attribute or @code NULL@ if not found */ ppdFindNextAttr(ppd_file_t *ppd, /* I - PPD file data */ const char *name, /* I - Attribute name */ const char *spec) /* I - Specifier string or @code NULL@ */ { ppd_attr_t *attr; /* Current attribute */ /* * Range check input... */ if (!ppd || !name || ppd->num_attrs == 0) return (NULL); /* * See if there are more attributes to return... */ while ((attr = (ppd_attr_t *)cupsArrayNext(ppd->sorted_attrs)) != NULL) { /* * Check the next attribute to see if it is a match... */ if (_cups_strcasecmp(attr->name, name)) { /* * Nope, reset the current pointer to the end of the array... */ cupsArrayIndex(ppd->sorted_attrs, cupsArrayCount(ppd->sorted_attrs)); return (NULL); } if (!spec || !_cups_strcasecmp(attr->spec, spec)) break; } /* * Return the next attribute's value... */ return (attr); } /* * '_ppdNormalizeMakeAndModel()' - Normalize a product/make-and-model string. * * This function tries to undo the mistakes made by many printer manufacturers * to produce a clean make-and-model string we can use. */ char * /* O - Normalized make-and-model string or NULL on error */ _ppdNormalizeMakeAndModel( const char *make_and_model, /* I - Original make-and-model string */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of string buffer */ { char *bufptr; /* Pointer into buffer */ if (!make_and_model || !buffer || bufsize < 1) { if (buffer) *buffer = '\0'; return (NULL); } /* * Skip leading whitespace... */ while (_cups_isspace(*make_and_model)) make_and_model ++; /* * Remove parenthesis and add manufacturers as needed... */ if (make_and_model[0] == '(') { strlcpy(buffer, make_and_model + 1, bufsize); if ((bufptr = strrchr(buffer, ')')) != NULL) *bufptr = '\0'; } else if (!_cups_strncasecmp(make_and_model, "XPrint ", 7)) { /* * Xerox XPrint... * Note: We check for the space after XPrint to ensure we do not display * Xerox for Xprinter devices, which are NOT by Xerox. */ snprintf(buffer, bufsize, "Xerox %s", make_and_model); } else if (!_cups_strncasecmp(make_and_model, "Eastman", 7)) { /* * Kodak... */ snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); } else if (!_cups_strncasecmp(make_and_model, "laserwriter", 11)) { /* * Apple LaserWriter... */ snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); } else if (!_cups_strncasecmp(make_and_model, "colorpoint", 10)) { /* * Seiko... */ snprintf(buffer, bufsize, "Seiko %s", make_and_model); } else if (!_cups_strncasecmp(make_and_model, "fiery", 5)) { /* * EFI... */ snprintf(buffer, bufsize, "EFI %s", make_and_model); } else if (!_cups_strncasecmp(make_and_model, "ps ", 3) || !_cups_strncasecmp(make_and_model, "colorpass", 9)) { /* * Canon... */ snprintf(buffer, bufsize, "Canon %s", make_and_model); } else if (!_cups_strncasecmp(make_and_model, "designjet", 9) || !_cups_strncasecmp(make_and_model, "deskjet", 7)) { /* * HP... */ snprintf(buffer, bufsize, "HP %s", make_and_model); } else strlcpy(buffer, make_and_model, bufsize); /* * Clean up the make... */ if (!_cups_strncasecmp(buffer, "agfa", 4)) { /* * Replace with AGFA (all uppercase)... */ buffer[0] = 'A'; buffer[1] = 'G'; buffer[2] = 'F'; buffer[3] = 'A'; } else if (!_cups_strncasecmp(buffer, "Hewlett-Packard hp ", 19)) { /* * Just put "HP" on the front... */ buffer[0] = 'H'; buffer[1] = 'P'; _cups_strcpy(buffer + 2, buffer + 18); } else if (!_cups_strncasecmp(buffer, "Hewlett-Packard ", 16)) { /* * Just put "HP" on the front... */ buffer[0] = 'H'; buffer[1] = 'P'; _cups_strcpy(buffer + 2, buffer + 15); } else if (!_cups_strncasecmp(buffer, "Lexmark International", 21)) { /* * Strip "International"... */ _cups_strcpy(buffer + 8, buffer + 21); } else if (!_cups_strncasecmp(buffer, "herk", 4)) { /* * Replace with LHAG... */ buffer[0] = 'L'; buffer[1] = 'H'; buffer[2] = 'A'; buffer[3] = 'G'; } else if (!_cups_strncasecmp(buffer, "linotype", 8)) { /* * Replace with LHAG... */ buffer[0] = 'L'; buffer[1] = 'H'; buffer[2] = 'A'; buffer[3] = 'G'; _cups_strcpy(buffer + 4, buffer + 8); } /* * Remove trailing whitespace and return... */ for (bufptr = buffer + strlen(buffer) - 1; bufptr >= buffer && _cups_isspace(*bufptr); bufptr --); bufptr[1] = '\0'; return (buffer[0] ? buffer : NULL); } cups-2.4.7/cups/options.c0000644000175000017500000003717314502571342015205 0ustar zdohnalzdohnal/* * Option routines for CUPS. * * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * Local functions... */ static int cups_compare_options(cups_option_t *a, cups_option_t *b); static int cups_find_option(const char *name, int num_options, cups_option_t *option, int prev, int *rdiff); /* * 'cupsAddIntegerOption()' - Add an integer option to an option array. * * New option arrays can be initialized simply by passing 0 for the * "num_options" parameter. * * @since CUPS 2.2.4/macOS 10.13@ */ int /* O - Number of options */ cupsAddIntegerOption( const char *name, /* I - Name of option */ int value, /* I - Value of option */ int num_options, /* I - Number of options */ cups_option_t **options) /* IO - Pointer to options */ { char strvalue[32]; /* String value */ snprintf(strvalue, sizeof(strvalue), "%d", value); return (cupsAddOption(name, strvalue, num_options, options)); } /* * 'cupsAddOption()' - Add an option to an option array. * * New option arrays can be initialized simply by passing 0 for the * "num_options" parameter. */ int /* O - Number of options */ cupsAddOption(const char *name, /* I - Name of option */ const char *value, /* I - Value of option */ int num_options,/* I - Number of options */ cups_option_t **options) /* IO - Pointer to options */ { cups_option_t *temp; /* Pointer to new option */ int insert, /* Insertion point */ diff; /* Result of search */ DEBUG_printf(("2cupsAddOption(name=\"%s\", value=\"%s\", num_options=%d, options=%p)", name, value, num_options, (void *)options)); if (!name || !name[0] || !value || !options || num_options < 0) { DEBUG_printf(("3cupsAddOption: Returning %d", num_options)); return (num_options); } if (!_cups_strcasecmp(name, "cupsPrintQuality")) num_options = cupsRemoveOption("print-quality", num_options, options); else if (!_cups_strcasecmp(name, "print-quality")) num_options = cupsRemoveOption("cupsPrintQuality", num_options, options); /* * Look for an existing option with the same name... */ if (num_options == 0) { insert = 0; diff = 1; } else { insert = cups_find_option(name, num_options, *options, num_options - 1, &diff); if (diff > 0) insert ++; } if (diff) { /* * No matching option name... */ DEBUG_printf(("4cupsAddOption: New option inserted at index %d...", insert)); if (num_options == 0) temp = (cups_option_t *)malloc(sizeof(cups_option_t)); else temp = (cups_option_t *)realloc(*options, sizeof(cups_option_t) * (size_t)(num_options + 1)); if (!temp) { DEBUG_puts("3cupsAddOption: Unable to expand option array, returning 0"); return (0); } *options = temp; if (insert < num_options) { DEBUG_printf(("4cupsAddOption: Shifting %d options...", (int)(num_options - insert))); memmove(temp + insert + 1, temp + insert, (size_t)(num_options - insert) * sizeof(cups_option_t)); } temp += insert; temp->name = _cupsStrAlloc(name); num_options ++; } else { /* * Match found; free the old value... */ DEBUG_printf(("4cupsAddOption: Option already exists at index %d...", insert)); temp = *options + insert; _cupsStrFree(temp->value); } temp->value = _cupsStrAlloc(value); DEBUG_printf(("3cupsAddOption: Returning %d", num_options)); return (num_options); } /* * 'cupsFreeOptions()' - Free all memory used by options. */ void cupsFreeOptions( int num_options, /* I - Number of options */ cups_option_t *options) /* I - Pointer to options */ { int i; /* Looping var */ DEBUG_printf(("cupsFreeOptions(num_options=%d, options=%p)", num_options, (void *)options)); if (num_options <= 0 || !options) return; for (i = 0; i < num_options; i ++) { _cupsStrFree(options[i].name); _cupsStrFree(options[i].value); } free(options); } /* * 'cupsGetIntegerOption()' - Get an integer option value. * * INT_MIN is returned when the option does not exist, is not an integer, or * exceeds the range of values for the "int" type. * * @since CUPS 2.2.4/macOS 10.13@ */ int /* O - Option value or @code INT_MIN@ */ cupsGetIntegerOption( const char *name, /* I - Name of option */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { const char *value = cupsGetOption(name, num_options, options); /* String value of option */ char *ptr; /* Pointer into string value */ long intvalue; /* Integer value */ if (!value || !*value) return (INT_MIN); intvalue = strtol(value, &ptr, 10); if (intvalue < INT_MIN || intvalue > INT_MAX || *ptr) return (INT_MIN); return ((int)intvalue); } /* * 'cupsGetOption()' - Get an option value. */ const char * /* O - Option value or @code NULL@ */ cupsGetOption(const char *name, /* I - Name of option */ int num_options,/* I - Number of options */ cups_option_t *options) /* I - Options */ { int diff, /* Result of comparison */ match; /* Matching index */ DEBUG_printf(("2cupsGetOption(name=\"%s\", num_options=%d, options=%p)", name, num_options, (void *)options)); if (!name || num_options <= 0 || !options) { DEBUG_puts("3cupsGetOption: Returning NULL"); return (NULL); } match = cups_find_option(name, num_options, options, -1, &diff); if (!diff) { DEBUG_printf(("3cupsGetOption: Returning \"%s\"", options[match].value)); return (options[match].value); } DEBUG_puts("3cupsGetOption: Returning NULL"); return (NULL); } /* * 'cupsParseOptions()' - Parse options from a command-line argument. * * This function converts space-delimited name/value pairs according * to the PAPI text option ABNF specification. Collection values * ("name={a=... b=... c=...}") are stored with the curley brackets * intact - use @code cupsParseOptions@ on the value to extract the * collection attributes. */ int /* O - Number of options found */ cupsParseOptions( const char *arg, /* I - Argument to parse */ int num_options, /* I - Number of options */ cups_option_t **options) /* O - Options found */ { char *copyarg, /* Copy of input string */ *ptr, /* Pointer into string */ *name, /* Pointer to name */ *value, /* Pointer to value */ sep, /* Separator character */ quote; /* Quote character */ DEBUG_printf(("cupsParseOptions(arg=\"%s\", num_options=%d, options=%p)", arg, num_options, (void *)options)); /* * Range check input... */ if (!arg) { DEBUG_printf(("1cupsParseOptions: Returning %d", num_options)); return (num_options); } if (!options || num_options < 0) { DEBUG_puts("1cupsParseOptions: Returning 0"); return (0); } /* * Make a copy of the argument string and then divide it up... */ if ((copyarg = strdup(arg)) == NULL) { DEBUG_puts("1cupsParseOptions: Unable to copy arg string"); DEBUG_printf(("1cupsParseOptions: Returning %d", num_options)); return (num_options); } if (*copyarg == '{') { /* * Remove surrounding {} so we can parse "{name=value ... name=value}"... */ if ((ptr = copyarg + strlen(copyarg) - 1) > copyarg && *ptr == '}') { *ptr = '\0'; ptr = copyarg + 1; } else ptr = copyarg; } else ptr = copyarg; /* * Skip leading spaces... */ while (_cups_isspace(*ptr)) ptr ++; /* * Loop through the string... */ while (*ptr != '\0') { /* * Get the name up to a SPACE, =, or end-of-string... */ name = ptr; while (!strchr("\f\n\r\t\v =", *ptr) && *ptr) ptr ++; /* * Avoid an empty name... */ if (ptr == name) break; /* * Skip trailing spaces... */ while (_cups_isspace(*ptr)) *ptr++ = '\0'; if ((sep = *ptr) == '=') *ptr++ = '\0'; DEBUG_printf(("2cupsParseOptions: name=\"%s\"", name)); if (sep != '=') { /* * Boolean option... */ if (!_cups_strncasecmp(name, "no", 2)) num_options = cupsAddOption(name + 2, "false", num_options, options); else num_options = cupsAddOption(name, "true", num_options, options); continue; } /* * Remove = and parse the value... */ value = ptr; while (*ptr && !_cups_isspace(*ptr)) { if (*ptr == ',') ptr ++; else if (*ptr == '\'' || *ptr == '\"') { /* * Quoted string constant... */ quote = *ptr; _cups_strcpy(ptr, ptr + 1); while (*ptr != quote && *ptr) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); ptr ++; } if (*ptr) _cups_strcpy(ptr, ptr + 1); } else if (*ptr == '{') { /* * Collection value... */ int depth; for (depth = 0; *ptr; ptr ++) { if (*ptr == '{') depth ++; else if (*ptr == '}') { depth --; if (!depth) { ptr ++; break; } } else if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); } } else { /* * Normal space-delimited string... */ while (*ptr && !_cups_isspace(*ptr)) { if (*ptr == '\\' && ptr[1]) _cups_strcpy(ptr, ptr + 1); ptr ++; } } } if (*ptr != '\0') *ptr++ = '\0'; DEBUG_printf(("2cupsParseOptions: value=\"%s\"", value)); /* * Skip trailing whitespace... */ while (_cups_isspace(*ptr)) ptr ++; /* * Add the string value... */ num_options = cupsAddOption(name, value, num_options, options); } /* * Free the copy of the argument we made and return the number of options * found. */ free(copyarg); DEBUG_printf(("1cupsParseOptions: Returning %d", num_options)); return (num_options); } /* * 'cupsRemoveOption()' - Remove an option from an option array. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - New number of options */ cupsRemoveOption( const char *name, /* I - Option name */ int num_options, /* I - Current number of options */ cups_option_t **options) /* IO - Options */ { int i; /* Looping var */ cups_option_t *option; /* Current option */ DEBUG_printf(("2cupsRemoveOption(name=\"%s\", num_options=%d, options=%p)", name, num_options, (void *)options)); /* * Range check input... */ if (!name || num_options < 1 || !options) { DEBUG_printf(("3cupsRemoveOption: Returning %d", num_options)); return (num_options); } /* * Loop for the option... */ for (i = num_options, option = *options; i > 0; i --, option ++) if (!_cups_strcasecmp(name, option->name)) break; if (i) { /* * Remove this option from the array... */ DEBUG_puts("4cupsRemoveOption: Found option, removing it..."); num_options --; i --; _cupsStrFree(option->name); _cupsStrFree(option->value); if (i > 0) memmove(option, option + 1, (size_t)i * sizeof(cups_option_t)); } /* * Return the new number of options... */ DEBUG_printf(("3cupsRemoveOption: Returning %d", num_options)); return (num_options); } /* * '_cupsGet1284Values()' - Get 1284 device ID keys and values. * * The returned dictionary is a CUPS option array that can be queried with * cupsGetOption and freed with cupsFreeOptions. */ int /* O - Number of key/value pairs */ _cupsGet1284Values( const char *device_id, /* I - IEEE-1284 device ID string */ cups_option_t **values) /* O - Array of key/value pairs */ { int num_values; /* Number of values */ char key[256], /* Key string */ value[256], /* Value string */ *ptr; /* Pointer into key/value */ /* * Range check input... */ if (values) *values = NULL; if (!device_id || !values) return (0); /* * Parse the 1284 device ID value into keys and values. The format is * repeating sequences of: * * [whitespace]key:value[whitespace]; */ num_values = 0; while (*device_id) { while (_cups_isspace(*device_id)) device_id ++; if (!*device_id) break; for (ptr = key; *device_id && *device_id != ':'; device_id ++) if (ptr < (key + sizeof(key) - 1)) *ptr++ = *device_id; if (!*device_id) break; while (ptr > key && _cups_isspace(ptr[-1])) ptr --; *ptr = '\0'; device_id ++; while (_cups_isspace(*device_id)) device_id ++; if (!*device_id) break; for (ptr = value; *device_id && *device_id != ';'; device_id ++) if (ptr < (value + sizeof(value) - 1)) *ptr++ = *device_id; while (ptr > value && _cups_isspace(ptr[-1])) ptr --; *ptr = '\0'; num_values = cupsAddOption(key, value, num_values, values); if (!*device_id) break; device_id ++; } return (num_values); } /* * 'cups_compare_options()' - Compare two options. */ static int /* O - Result of comparison */ cups_compare_options(cups_option_t *a, /* I - First option */ cups_option_t *b) /* I - Second option */ { return (_cups_strcasecmp(a->name, b->name)); } /* * 'cups_find_option()' - Find an option using a binary search. */ static int /* O - Index of match */ cups_find_option( const char *name, /* I - Option name */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ int prev, /* I - Previous index */ int *rdiff) /* O - Difference of match */ { int left, /* Low mark for binary search */ right, /* High mark for binary search */ current, /* Current index */ diff; /* Result of comparison */ cups_option_t key; /* Search key */ DEBUG_printf(("7cups_find_option(name=\"%s\", num_options=%d, options=%p, prev=%d, rdiff=%p)", name, num_options, (void *)options, prev, (void *)rdiff)); #ifdef DEBUG for (left = 0; left < num_options; left ++) DEBUG_printf(("9cups_find_option: options[%d].name=\"%s\", .value=\"%s\"", left, options[left].name, options[left].value)); #endif /* DEBUG */ key.name = (char *)name; if (prev >= 0) { /* * Start search on either side of previous... */ if ((diff = cups_compare_options(&key, options + prev)) == 0 || (diff < 0 && prev == 0) || (diff > 0 && prev == (num_options - 1))) { *rdiff = diff; return (prev); } else if (diff < 0) { /* * Start with previous on right side... */ left = 0; right = prev; } else { /* * Start with previous on left side... */ left = prev; right = num_options - 1; } } else { /* * Start search in the middle... */ left = 0; right = num_options - 1; } do { current = (left + right) / 2; diff = cups_compare_options(&key, options + current); if (diff == 0) break; else if (diff < 0) right = current; else left = current; } while ((right - left) > 1); if (diff != 0) { /* * Check the last 1 or 2 elements... */ if ((diff = cups_compare_options(&key, options + left)) <= 0) current = left; else { diff = cups_compare_options(&key, options + right); current = right; } } /* * Return the closest destination and the difference... */ *rdiff = diff; return (current); } cups-2.4.7/cups/notify.c0000644000175000017500000001116414502571342015012 0ustar zdohnalzdohnal/* * Notification routines for CUPS. * * Copyright 2007-2013 by Apple Inc. * Copyright 2005-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * 'cupsNotifySubject()' - Return the subject for the given notification message. * * The returned string must be freed by the caller using @code free@. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Subject string or @code NULL@ */ cupsNotifySubject(cups_lang_t *lang, /* I - Language data */ ipp_t *event) /* I - Event data */ { char buffer[1024]; /* Subject buffer */ const char *prefix, /* Prefix on subject */ *state; /* Printer/job state string */ ipp_attribute_t *job_id, /* notify-job-id */ *job_name, /* job-name */ *job_state, /* job-state */ *printer_name, /* printer-name */ *printer_state, /* printer-state */ *printer_uri, /* notify-printer-uri */ *subscribed; /* notify-subscribed-event */ /* * Range check input... */ if (!event || !lang) return (NULL); /* * Get the required attributes... */ job_id = ippFindAttribute(event, "notify-job-id", IPP_TAG_INTEGER); job_name = ippFindAttribute(event, "job-name", IPP_TAG_NAME); job_state = ippFindAttribute(event, "job-state", IPP_TAG_ENUM); printer_name = ippFindAttribute(event, "printer-name", IPP_TAG_NAME); printer_state = ippFindAttribute(event, "printer-state", IPP_TAG_ENUM); printer_uri = ippFindAttribute(event, "notify-printer-uri", IPP_TAG_URI); subscribed = ippFindAttribute(event, "notify-subscribed-event", IPP_TAG_KEYWORD); if (job_id && printer_name && printer_uri && job_state) { /* * Job event... */ prefix = _cupsLangString(lang, _("Print Job:")); switch (job_state->values[0].integer) { case IPP_JSTATE_PENDING : state = _cupsLangString(lang, _("pending")); break; case IPP_JSTATE_HELD : state = _cupsLangString(lang, _("held")); break; case IPP_JSTATE_PROCESSING : state = _cupsLangString(lang, _("processing")); break; case IPP_JSTATE_STOPPED : state = _cupsLangString(lang, _("stopped")); break; case IPP_JSTATE_CANCELED : state = _cupsLangString(lang, _("canceled")); break; case IPP_JSTATE_ABORTED : state = _cupsLangString(lang, _("aborted")); break; case IPP_JSTATE_COMPLETED : state = _cupsLangString(lang, _("completed")); break; default : state = _cupsLangString(lang, _("unknown")); break; } snprintf(buffer, sizeof(buffer), "%s %s-%d (%s) %s", prefix, printer_name->values[0].string.text, job_id->values[0].integer, job_name ? job_name->values[0].string.text : _cupsLangString(lang, _("untitled")), state); } else if (printer_uri && printer_name && printer_state) { /* * Printer event... */ prefix = _cupsLangString(lang, _("Printer:")); switch (printer_state->values[0].integer) { case IPP_PSTATE_IDLE : state = _cupsLangString(lang, _("idle")); break; case IPP_PSTATE_PROCESSING : state = _cupsLangString(lang, _("processing")); break; case IPP_PSTATE_STOPPED : state = _cupsLangString(lang, _("stopped")); break; default : state = _cupsLangString(lang, _("unknown")); break; } snprintf(buffer, sizeof(buffer), "%s %s %s", prefix, printer_name->values[0].string.text, state); } else if (subscribed) strlcpy(buffer, subscribed->values[0].string.text, sizeof(buffer)); else return (NULL); /* * Duplicate and return the subject string... */ return (strdup(buffer)); } /* * 'cupsNotifyText()' - Return the text for the given notification message. * * The returned string must be freed by the caller using @code free@. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Message text or @code NULL@ */ cupsNotifyText(cups_lang_t *lang, /* I - Language data */ ipp_t *event) /* I - Event data */ { ipp_attribute_t *notify_text; /* notify-text */ /* * Range check input... */ if (!event || !lang) return (NULL); /* * Get the notify-text attribute from the server... */ if ((notify_text = ippFindAttribute(event, "notify-text", IPP_TAG_TEXT)) == NULL) return (NULL); /* * Return a copy... */ return (strdup(notify_text->values[0].string.text)); } cups-2.4.7/cups/md5passwd.c0000644000175000017500000000411114502571342015403 0ustar zdohnalzdohnal/* * MD5 password support for CUPS (deprecated). * * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include "http-private.h" #include "string-private.h" /* * 'httpMD5()' - Compute the MD5 sum of the username:group:password. * * The function was used for HTTP Digest authentication. Since CUPS 2.4.0 * it produces an empty string. Please use @link cupsDoAuthentication@ instead. * * @deprecated@ */ char * /* O - MD5 sum */ httpMD5(const char *username, /* I - User name */ const char *realm, /* I - Realm name */ const char *passwd, /* I - Password string */ char md5[33]) /* O - MD5 string */ { (void)username; (void)realm; (void)passwd; md5[0] = '\0'; return (NULL); } /* * 'httpMD5Final()' - Combine the MD5 sum of the username, group, and password * with the server-supplied nonce value, method, and * request-uri. * * The function was used for HTTP Digest authentication. Since CUPS 2.4.0 * it produces an empty string. Please use @link cupsDoAuthentication@ instead. * * @deprecated@ */ char * /* O - New sum */ httpMD5Final(const char *nonce, /* I - Server nonce value */ const char *method, /* I - METHOD (GET, POST, etc.) */ const char *resource, /* I - Resource path */ char md5[33]) /* IO - MD5 sum */ { (void)nonce; (void)method; (void)resource; md5[0] = '\0'; return (NULL); } /* * 'httpMD5String()' - Convert an MD5 sum to a character string. * * The function was used for HTTP Digest authentication. Since CUPS 2.4.0 * it produces an empty string. Please use @link cupsDoAuthentication@ instead. * * @deprecated@ */ char * /* O - MD5 sum in hex */ httpMD5String(const unsigned char *sum, /* I - MD5 sum data */ char md5[33]) /* O - MD5 sum in hex */ { (void)sum; md5[0] = '\0'; return (NULL); } cups-2.4.7/cups/md5.c0000644000175000017500000002342614502571342014173 0ustar zdohnalzdohnal/* * Private MD5 implementation for CUPS. * * Copyright © 2023 by OpenPrinting. * Copyright © 2007-2017 by Apple Inc. * Copyright © 2005 by Easy Software Products * Copyright © 1999 Aladdin Enterprises. All rights reserved. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * * L. Peter Deutsch * ghost@aladdin.com */ /* Independent implementation of MD5 (RFC 1321). This code implements the MD5 Algorithm defined in RFC 1321. It is derived directly from the text of the RFC and not from the reference implementation. The original and principal author of md5.c is L. Peter Deutsch . Other authors are noted in the change history that follows (in reverse chronological order): 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5). 1999-05-03 lpd Original version. */ #include "md5-internal.h" #include "string-private.h" #define T1 0xd76aa478 #define T2 0xe8c7b756 #define T3 0x242070db #define T4 0xc1bdceee #define T5 0xf57c0faf #define T6 0x4787c62a #define T7 0xa8304613 #define T8 0xfd469501 #define T9 0x698098d8 #define T10 0x8b44f7af #define T11 0xffff5bb1 #define T12 0x895cd7be #define T13 0x6b901122 #define T14 0xfd987193 #define T15 0xa679438e #define T16 0x49b40821 #define T17 0xf61e2562 #define T18 0xc040b340 #define T19 0x265e5a51 #define T20 0xe9b6c7aa #define T21 0xd62f105d #define T22 0x02441453 #define T23 0xd8a1e681 #define T24 0xe7d3fbc8 #define T25 0x21e1cde6 #define T26 0xc33707d6 #define T27 0xf4d50d87 #define T28 0x455a14ed #define T29 0xa9e3e905 #define T30 0xfcefa3f8 #define T31 0x676f02d9 #define T32 0x8d2a4c8a #define T33 0xfffa3942 #define T34 0x8771f681 #define T35 0x6d9d6122 #define T36 0xfde5380c #define T37 0xa4beea44 #define T38 0x4bdecfa9 #define T39 0xf6bb4b60 #define T40 0xbebfbc70 #define T41 0x289b7ec6 #define T42 0xeaa127fa #define T43 0xd4ef3085 #define T44 0x04881d05 #define T45 0xd9d4d039 #define T46 0xe6db99e5 #define T47 0x1fa27cf8 #define T48 0xc4ac5665 #define T49 0xf4292244 #define T50 0x432aff97 #define T51 0xab9423a7 #define T52 0xfc93a039 #define T53 0x655b59c3 #define T54 0x8f0ccc92 #define T55 0xffeff47d #define T56 0x85845dd1 #define T57 0x6fa87e4f #define T58 0xfe2ce6e0 #define T59 0xa3014314 #define T60 0x4e0811a1 #define T61 0xf7537e82 #define T62 0xbd3af235 #define T63 0x2ad7d2bb #define T64 0xeb86d391 static void _cups_md5_process(_cups_md5_state_t *pms, const unsigned char *data /*[64]*/) { unsigned int a = pms->abcd[0], b = pms->abcd[1], c = pms->abcd[2], d = pms->abcd[3]; unsigned int t; #ifndef ARCH_IS_BIG_ENDIAN # define ARCH_IS_BIG_ENDIAN 1 /* slower, default implementation */ #endif #if ARCH_IS_BIG_ENDIAN /* * On big-endian machines, we must arrange the bytes in the right * order. (This also works on machines of unknown byte order.) */ unsigned int X[16]; const unsigned char *xp = data; int i; for (i = 0; i < 16; ++i, xp += 4) X[i] = (unsigned)xp[0] + ((unsigned)xp[1] << 8) + ((unsigned)xp[2] << 16) + ((unsigned)xp[3] << 24); #else /* !ARCH_IS_BIG_ENDIAN */ /* * On little-endian machines, we can process properly aligned data * without copying it. */ unsigned int xbuf[16]; const unsigned int *X; if (!((data - (const unsigned char *)0) & 3)) { /* data are properly aligned */ X = (const unsigned int *)data; } else { /* not aligned */ memcpy(xbuf, data, 64); X = xbuf; } #endif #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) /* Round 1. */ /* Let [abcd k s i] denote the operation a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s). */ #define F(x, y, z) (((x) & (y)) | (~(x) & (z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + F(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 0, 7, T1); SET(d, a, b, c, 1, 12, T2); SET(c, d, a, b, 2, 17, T3); SET(b, c, d, a, 3, 22, T4); SET(a, b, c, d, 4, 7, T5); SET(d, a, b, c, 5, 12, T6); SET(c, d, a, b, 6, 17, T7); SET(b, c, d, a, 7, 22, T8); SET(a, b, c, d, 8, 7, T9); SET(d, a, b, c, 9, 12, T10); SET(c, d, a, b, 10, 17, T11); SET(b, c, d, a, 11, 22, T12); SET(a, b, c, d, 12, 7, T13); SET(d, a, b, c, 13, 12, T14); SET(c, d, a, b, 14, 17, T15); SET(b, c, d, a, 15, 22, T16); #undef SET /* Round 2. */ /* Let [abcd k s i] denote the operation a = b + ((a + G(b,c,d) + X[k] + T[i]) <<< s). */ #define G(x, y, z) (((x) & (z)) | ((y) & ~(z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + G(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 1, 5, T17); SET(d, a, b, c, 6, 9, T18); SET(c, d, a, b, 11, 14, T19); SET(b, c, d, a, 0, 20, T20); SET(a, b, c, d, 5, 5, T21); SET(d, a, b, c, 10, 9, T22); SET(c, d, a, b, 15, 14, T23); SET(b, c, d, a, 4, 20, T24); SET(a, b, c, d, 9, 5, T25); SET(d, a, b, c, 14, 9, T26); SET(c, d, a, b, 3, 14, T27); SET(b, c, d, a, 8, 20, T28); SET(a, b, c, d, 13, 5, T29); SET(d, a, b, c, 2, 9, T30); SET(c, d, a, b, 7, 14, T31); SET(b, c, d, a, 12, 20, T32); #undef SET /* Round 3. */ /* Let [abcd k s t] denote the operation a = b + ((a + H(b,c,d) + X[k] + T[i]) <<< s). */ #define H(x, y, z) ((x) ^ (y) ^ (z)) #define SET(a, b, c, d, k, s, Ti)\ t = a + H(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 5, 4, T33); SET(d, a, b, c, 8, 11, T34); SET(c, d, a, b, 11, 16, T35); SET(b, c, d, a, 14, 23, T36); SET(a, b, c, d, 1, 4, T37); SET(d, a, b, c, 4, 11, T38); SET(c, d, a, b, 7, 16, T39); SET(b, c, d, a, 10, 23, T40); SET(a, b, c, d, 13, 4, T41); SET(d, a, b, c, 0, 11, T42); SET(c, d, a, b, 3, 16, T43); SET(b, c, d, a, 6, 23, T44); SET(a, b, c, d, 9, 4, T45); SET(d, a, b, c, 12, 11, T46); SET(c, d, a, b, 15, 16, T47); SET(b, c, d, a, 2, 23, T48); #undef SET /* Round 4. */ /* Let [abcd k s t] denote the operation a = b + ((a + I(b,c,d) + X[k] + T[i]) <<< s). */ #define I(x, y, z) ((y) ^ ((x) | ~(z))) #define SET(a, b, c, d, k, s, Ti)\ t = a + I(b,c,d) + X[k] + Ti;\ a = ROTATE_LEFT(t, s) + b /* Do the following 16 operations. */ SET(a, b, c, d, 0, 6, T49); SET(d, a, b, c, 7, 10, T50); SET(c, d, a, b, 14, 15, T51); SET(b, c, d, a, 5, 21, T52); SET(a, b, c, d, 12, 6, T53); SET(d, a, b, c, 3, 10, T54); SET(c, d, a, b, 10, 15, T55); SET(b, c, d, a, 1, 21, T56); SET(a, b, c, d, 8, 6, T57); SET(d, a, b, c, 15, 10, T58); SET(c, d, a, b, 6, 15, T59); SET(b, c, d, a, 13, 21, T60); SET(a, b, c, d, 4, 6, T61); SET(d, a, b, c, 11, 10, T62); SET(c, d, a, b, 2, 15, T63); SET(b, c, d, a, 9, 21, T64); #undef SET /* Then perform the following additions. (That is increment each of the four registers by the value it had before this block was started.) */ pms->abcd[0] += a; pms->abcd[1] += b; pms->abcd[2] += c; pms->abcd[3] += d; } void _cupsMD5Init(_cups_md5_state_t *pms) { pms->count[0] = pms->count[1] = 0; pms->abcd[0] = 0x67452301; pms->abcd[1] = 0xefcdab89; pms->abcd[2] = 0x98badcfe; pms->abcd[3] = 0x10325476; } void _cupsMD5Append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes) { const unsigned char *p = data; int left = nbytes; int offset = (pms->count[0] >> 3) & 63; unsigned int nbits = (unsigned int)(nbytes << 3); if (nbytes <= 0) return; /* Update the message length. */ pms->count[1] += (unsigned)nbytes >> 29; pms->count[0] += nbits; if (pms->count[0] < nbits) pms->count[1]++; /* Process an initial partial block. */ if (offset) { int copy = (offset + nbytes > 64 ? 64 - offset : nbytes); memcpy(pms->buf + offset, p, (size_t)copy); if (offset + copy < 64) return; p += copy; left -= copy; _cups_md5_process(pms, pms->buf); } /* Process full blocks. */ for (; left >= 64; p += 64, left -= 64) _cups_md5_process(pms, p); /* Process a final partial block. */ if (left) memcpy(pms->buf, p, (size_t)left); } void _cupsMD5Finish(_cups_md5_state_t *pms, unsigned char digest[16]) { static const unsigned char pad[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; unsigned char data[8]; int i; /* Save the length before padding. */ for (i = 0; i < 8; ++i) data[i] = (unsigned char)(pms->count[i >> 2] >> ((i & 3) << 3)); /* Pad to 56 bytes mod 64. */ _cupsMD5Append(pms, pad, (int)((55 - (pms->count[0] >> 3)) & 63) + 1); /* Append the length. */ _cupsMD5Append(pms, data, 8); for (i = 0; i < 16; ++i) digest[i] = (unsigned char)(pms->abcd[i >> 2] >> ((i & 3) << 3)); } cups-2.4.7/cups/md5-internal.h0000644000175000017500000000516014502571342016005 0ustar zdohnalzdohnal/* * Private MD5 definitions for CUPS. * * Copyright 2007-2010 by Apple Inc. * Copyright 2005 by Easy Software Products * * Copyright (C) 1999 Aladdin Enterprises. All rights reserved. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * * L. Peter Deutsch * ghost@aladdin.com */ /* Independent implementation of MD5 (RFC 1321). This code implements the MD5 Algorithm defined in RFC 1321. It is derived directly from the text of the RFC and not from the reference implementation. The original and principal author of md5.h is L. Peter Deutsch . Other authors are noted in the change history that follows (in reverse chronological order): 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5); added conditionalization for C++ compilation from Martin Purschke . 1999-05-03 lpd Original version. */ #ifndef _CUPS_MD5_INTERNAL_H_ # define _CUPS_MD5_INTERNAL_H_ # include /* Define the state of the MD5 Algorithm. */ typedef struct _cups_md5_state_s { unsigned int count[2]; /* message length in bits, lsw first */ unsigned int abcd[4]; /* digest buffer */ unsigned char buf[64]; /* accumulate block */ } _cups_md5_state_t; # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* Initialize the algorithm. */ void _cupsMD5Init(_cups_md5_state_t *pms) _CUPS_INTERNAL; /* Append a string to the message. */ void _cupsMD5Append(_cups_md5_state_t *pms, const unsigned char *data, int nbytes) _CUPS_INTERNAL; /* Finish the message and return the digest. */ void _cupsMD5Finish(_cups_md5_state_t *pms, unsigned char digest[16]) _CUPS_INTERNAL; # ifdef __cplusplus } /* end extern "C" */ # endif /* __cplusplus */ #endif /* !_CUPS_MD5_INTERNAL_H_ */ cups-2.4.7/cups/libcups2.rc0000644000175000017500000000364214502571342015411 0ustar zdohnalzdohnal// Microsoft Visual C++ generated resource script. // #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" #include "WinVersRes.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (U.S.) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION MASTER_PROD_VERS PRODUCTVERSION MASTER_PROD_VERS FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", MASTER_COMPANY_NAME VALUE "FileDescription", "CUPS Library" VALUE "FileVersion", MASTER_PROD_VERS_STR VALUE "InternalName", "libcups2.dll" VALUE "LegalCopyright", MASTER_LEGAL_COPYRIGHT VALUE "OriginalFilename", "libcups2.dll" VALUE "ProductName", MASTER_PROD_NAME VALUE "ProductVersion", MASTER_PROD_VERS_STR END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 END END #endif // English (U.S.) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED cups-2.4.7/cups/libcups2.def0000644000175000017500000002230214502571342015535 0ustar zdohnalzdohnalLIBRARY libcups2 VERSION 2.14 EXPORTS _cupsArrayAddStrings _cupsArrayNewStrings _cupsBufferGet _cupsBufferRelease _cupsCharmapFlush _cupsCondBroadcast _cupsCondInit _cupsCondWait _cupsConnect _cupsConvertOptions _cupsCreateDest _cupsEncodeOption _cupsEncodingName _cupsFilePeekAhead _cupsGet1284Values _cupsGetDestResource _cupsGetDests _cupsGetPassword _cupsGlobalLock _cupsGlobalUnlock _cupsGlobals _cupsLangPrintError _cupsLangPrintf _cupsLangPuts _cupsLangString _cupsMessageFree _cupsMessageLoad _cupsMessageLookup _cupsMessageNew _cupsMessageSave _cupsMutexInit _cupsMutexLock _cupsMutexUnlock _cupsNextDelay _cupsRWInit _cupsRWLockRead _cupsRWLockWrite _cupsRWUnlock _cupsRasterAddError _cupsRasterClearError _cupsRasterColorSpaceString _cupsRasterDelete _cupsRasterErrorString _cupsRasterExecPS _cupsRasterInitPWGHeader _cupsRasterInterpretPPD _cupsRasterNew _cupsRasterReadHeader _cupsRasterReadPixels _cupsRasterWriteHeader _cupsRasterWritePixels _cupsSetDefaults _cupsSetError _cupsSetHTTPError _cupsSetLocale _cupsStrAlloc _cupsStrDate _cupsStrFlush _cupsStrFormatd _cupsStrFree _cupsStrRetain _cupsStrScand _cupsStrStatistics _cupsThreadCancel _cupsThreadCreate _cupsThreadDetach _cupsThreadWait _cupsUserDefault _cups_gettimeofday _cups_safe_vsnprintf _cups_strcasecmp _cups_strcpy _cups_strcpy _cups_strlcat _cups_strlcpy _cups_strncasecmp _httpAddrSetPort _httpCreateCredentials _httpDecodeURI _httpDisconnect _httpEncodeURI _httpFreeCredentials _httpResolveURI _httpSetDigestAuthString _httpStatus _httpTLSInitialize _httpTLSPending _httpTLSRead _httpTLSSetOptions _httpTLSStart _httpTLSStop _httpTLSWrite _httpUpdate _httpWait _ippCheckOptions _ippFileParse _ippFileReadToken _ippFindOption _ippVarsDeinit _ippVarsExpand _ippVarsGet _ippVarsInit _ippVarsPasswordCB _ippVarsSet _ppdCacheCreateWithFile _ppdCacheCreateWithPPD _ppdCacheDestroy _ppdCacheGetBin _ppdCacheGetFinishingOptions _ppdCacheGetFinishingValues _ppdCacheGetInputSlot _ppdCacheGetMediaType _ppdCacheGetOutputBin _ppdCacheGetPageSize _ppdCacheGetSize _ppdCacheGetSource _ppdCacheGetType _ppdCacheWriteFile _ppdCreateFromIPP _ppdFreeLanguages _ppdGetEncoding _ppdGetLanguages _ppdGlobals _ppdHashName _ppdLocalizedAttr _ppdNormalizeMakeAndModel _ppdOpen _ppdOpenFile _ppdParseOptions _pwgInputSlotForSource _pwgMediaNearSize _pwgMediaTable _pwgMediaTypeForType _pwgPageSizeForMedia cupsAddDest cupsAddDestMediaOptions cupsAddIntegerOption cupsAddOption cupsAdminCreateWindowsPPD cupsAdminExportSamba cupsAdminGetServerSettings cupsAdminSetServerSettings cupsArrayAdd cupsArrayClear cupsArrayCount cupsArrayCurrent cupsArrayDelete cupsArrayDup cupsArrayFind cupsArrayFirst cupsArrayGetIndex cupsArrayGetInsert cupsArrayIndex cupsArrayInsert cupsArrayLast cupsArrayNew cupsArrayNew2 cupsArrayNew3 cupsArrayNext cupsArrayPrev cupsArrayRemove cupsArrayRestore cupsArraySave cupsArrayUserData cupsCancelDestJob cupsCancelJob cupsCancelJob2 cupsCharsetToUTF8 cupsCheckDestSupported cupsCloseDestJob cupsConnectDest cupsCopyDest cupsCopyDestConflicts cupsCopyDestInfo cupsCreateDestJob cupsCreateJob cupsDirClose cupsDirOpen cupsDirRead cupsDirRewind cupsDoAuthentication cupsDoFileRequest cupsDoIORequest cupsDoRequest cupsEncodeOption cupsEncodeOptions cupsEncodeOptions2 cupsEncryption cupsEnumDests cupsFileClose cupsFileCompression cupsFileEOF cupsFileFind cupsFileFlush cupsFileGetChar cupsFileGetConf cupsFileGetLine cupsFileGets cupsFileLock cupsFileNumber cupsFileOpen cupsFileOpenFd cupsFilePeekChar cupsFilePrintf cupsFilePutChar cupsFilePutConf cupsFilePuts cupsFileRead cupsFileRewind cupsFileSeek cupsFileStderr cupsFileStdin cupsFileStdout cupsFileTell cupsFileUnlock cupsFileWrite cupsFindDestDefault cupsFindDestReady cupsFindDestSupported cupsFinishDestDocument cupsFinishDocument cupsFreeDestInfo cupsFreeDests cupsFreeJobs cupsFreeOptions cupsGetClasses cupsGetConflicts cupsGetDefault cupsGetDefault2 cupsGetDest cupsGetDestMediaByIndex cupsGetDestMediaByName cupsGetDestMediaBySize cupsGetDestMediaCount cupsGetDestMediaDefault cupsGetDestWithURI cupsGetDests cupsGetDests2 cupsGetDevices cupsGetFd cupsGetFile cupsGetIntegerOption cupsGetJobs cupsGetJobs2 cupsGetNamedDest cupsGetOption cupsGetPPD cupsGetPPD2 cupsGetPPD3 cupsGetPassword cupsGetPassword2 cupsGetPrinters cupsGetResponse cupsGetServerPPD cupsHashData cupsHashString cupsLangDefault cupsLangEncoding cupsLangFlush cupsLangFree cupsLangGet cupsLastError cupsLastErrorString cupsLocalizeDestMedia cupsLocalizeDestOption cupsLocalizeDestValue cupsMakeServerCredentials cupsMarkOptions cupsNotifySubject cupsNotifyText cupsParseOptions cupsPrintFile cupsPrintFile2 cupsPrintFiles cupsPrintFiles2 cupsPutFd cupsPutFile cupsRasterClose cupsRasterClose cupsRasterErrorString cupsRasterErrorString cupsRasterInitPWGHeader cupsRasterInitPWGHeader cupsRasterInterpretPPD cupsRasterInterpretPPD cupsRasterOpen cupsRasterOpen cupsRasterOpenIO cupsRasterOpenIO cupsRasterReadHeader cupsRasterReadHeader cupsRasterReadHeader2 cupsRasterReadHeader2 cupsRasterReadPixels cupsRasterReadPixels cupsRasterWriteHeader cupsRasterWriteHeader cupsRasterWriteHeader2 cupsRasterWriteHeader2 cupsRasterWritePixels cupsRasterWritePixels cupsReadResponseData cupsRemoveDest cupsRemoveOption cupsResolveConflicts cupsSendRequest cupsServer cupsSetClientCertCB cupsSetCredentials cupsSetDefaultDest cupsSetDests cupsSetDests2 cupsSetEncryption cupsSetPasswordCB cupsSetPasswordCB2 cupsSetServer cupsSetServerCertCB cupsSetServerCredentials cupsSetUser cupsSetUserAgent cupsStartDestDocument cupsStartDocument cupsTempFd cupsTempFile cupsTempFile2 cupsUTF32ToUTF8 cupsUTF8ToCharset cupsUTF8ToUTF32 cupsUser cupsUserAgent cupsWriteRequestData httpAcceptConnection httpAddCredential httpAddrAny httpAddrClose httpAddrConnect httpAddrConnect2 httpAddrCopyList httpAddrEqual httpAddrFamily httpAddrFreeList httpAddrGetList httpAddrLength httpAddrListen httpAddrLocalhost httpAddrLookup httpAddrPort httpAddrString httpAssembleURI httpAssembleURIf httpAssembleUUID httpBlocking httpCheck httpClearCookie httpClearFields httpClose httpCompareCredentials httpConnect httpConnect2 httpConnectEncrypt httpCopyCredentials httpCredentialsAreValidForName httpCredentialsGetExpiration httpCredentialsGetTrust httpCredentialsString httpDecode64 httpDecode64_2 httpDelete httpEncode64 httpEncode64_2 httpEncryption httpError httpFieldValue httpFlush httpFlushWrite httpFreeCredentials httpGet httpGetActivity httpGetAddress httpGetAuthString httpGetBlocking httpGetContentEncoding httpGetCookie httpGetDateString httpGetDateString2 httpGetDateTime httpGetEncryption httpGetExpect httpGetFd httpGetField httpGetHostByName httpGetHostname httpGetKeepAlive httpGetLength httpGetLength2 httpGetPending httpGetReady httpGetRemaining httpGetState httpGetStatus httpGetSubField httpGetSubField2 httpGetVersion httpGets httpHead httpInitialize httpIsChunked httpIsEncrypted httpLoadCredentials httpMD5 httpMD5Final httpMD5String httpOptions httpPeek httpPost httpPrintf httpPut httpRead httpRead2 httpReadRequest httpReconnect httpReconnect2 httpResolveHostname httpSaveCredentials httpSeparate httpSeparate2 httpSeparateURI httpSetAuthString httpSetCookie httpSetCredentials httpSetDefaultField httpSetExpect httpSetField httpSetKeepAlive httpSetLength httpSetTimeout httpShutdown httpStateString httpStatus httpTrace httpURIStatusString httpUpdate httpWait httpWrite httpWrite2 httpWriteResponse ippAddBoolean ippAddBooleans ippAddCollection ippAddCollections ippAddDate ippAddInteger ippAddIntegers ippAddOctetString ippAddOutOfBand ippAddRange ippAddRanges ippAddResolution ippAddResolutions ippAddSeparator ippAddString ippAddStringf ippAddStringfv ippAddStrings ippAttributeString ippContainsInteger ippContainsString ippCopyAttribute ippCopyAttributes ippCreateRequestedArray ippDateToTime ippDelete ippDeleteAttribute ippDeleteValues ippEnumString ippEnumValue ippErrorString ippErrorValue ippFindAttribute ippFindNextAttribute ippFirstAttribute ippGetBoolean ippGetCollection ippGetCount ippGetDate ippGetGroupTag ippGetInteger ippGetName ippGetOctetString ippGetOperation ippGetRange ippGetRequestId ippGetResolution ippGetState ippGetStatusCode ippGetString ippGetValueTag ippGetVersion ippLength ippNew ippNewRequest ippNewResponse ippNextAttribute ippOpString ippOpValue ippPort ippRead ippReadFile ippReadIO ippSetBoolean ippSetCollection ippSetDate ippSetGroupTag ippSetInteger ippSetName ippSetOctetString ippSetOperation ippSetPort ippSetRange ippSetRequestId ippSetResolution ippSetState ippSetStatusCode ippSetString ippSetStringf ippSetStringfv ippSetValueTag ippSetVersion ippStateString ippTagString ippTagValue ippTimeToDate ippValidateAttribute ippValidateAttributes ippWrite ippWriteFile ippWriteIO ppdClose ppdCollect ppdCollect2 ppdConflicts ppdEmit ppdEmitAfterOrder ppdEmitFd ppdEmitJCL ppdEmitJCLEnd ppdEmitString ppdErrorString ppdFindAttr ppdFindChoice ppdFindCustomOption ppdFindCustomParam ppdFindMarkedChoice ppdFindNextAttr ppdFindOption ppdFirstCustomParam ppdFirstOption ppdInstallableConflict ppdIsMarked ppdLastError ppdLocalize ppdLocalizeAttr ppdLocalizeIPPReason ppdLocalizeMarkerName ppdMarkDefaults ppdMarkOption ppdNextCustomParam ppdNextOption ppdOpen ppdOpen2 ppdOpenFd ppdOpenFile ppdPageLength ppdPageSize ppdPageSizeLimits ppdPageWidth ppdSetConformance pwgFormatSizeName pwgInitSize pwgMediaForLegacy pwgMediaForPPD pwgMediaForPWG pwgMediaForSize cups-2.4.7/cups/language.h0000644000175000017500000000626114502571342015274 0ustar zdohnalzdohnal/* * Multi-language support for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_LANGUAGE_H_ # define _CUPS_LANGUAGE_H_ /* * Include necessary headers... */ # include # include "array.h" # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types... */ typedef enum cups_encoding_e /**** Language Encodings @exclude all@ ****/ { CUPS_AUTO_ENCODING = -1, /* Auto-detect the encoding @private@ */ CUPS_US_ASCII, /* US ASCII */ CUPS_ISO8859_1, /* ISO-8859-1 */ CUPS_ISO8859_2, /* ISO-8859-2 */ CUPS_ISO8859_3, /* ISO-8859-3 */ CUPS_ISO8859_4, /* ISO-8859-4 */ CUPS_ISO8859_5, /* ISO-8859-5 */ CUPS_ISO8859_6, /* ISO-8859-6 */ CUPS_ISO8859_7, /* ISO-8859-7 */ CUPS_ISO8859_8, /* ISO-8859-8 */ CUPS_ISO8859_9, /* ISO-8859-9 */ CUPS_ISO8859_10, /* ISO-8859-10 */ CUPS_UTF8, /* UTF-8 */ CUPS_ISO8859_13, /* ISO-8859-13 */ CUPS_ISO8859_14, /* ISO-8859-14 */ CUPS_ISO8859_15, /* ISO-8859-15 */ CUPS_WINDOWS_874, /* CP-874 */ CUPS_WINDOWS_1250, /* CP-1250 */ CUPS_WINDOWS_1251, /* CP-1251 */ CUPS_WINDOWS_1252, /* CP-1252 */ CUPS_WINDOWS_1253, /* CP-1253 */ CUPS_WINDOWS_1254, /* CP-1254 */ CUPS_WINDOWS_1255, /* CP-1255 */ CUPS_WINDOWS_1256, /* CP-1256 */ CUPS_WINDOWS_1257, /* CP-1257 */ CUPS_WINDOWS_1258, /* CP-1258 */ CUPS_KOI8_R, /* KOI-8-R */ CUPS_KOI8_U, /* KOI-8-U */ CUPS_ISO8859_11, /* ISO-8859-11 */ CUPS_ISO8859_16, /* ISO-8859-16 */ CUPS_MAC_ROMAN, /* MacRoman */ CUPS_ENCODING_SBCS_END = 63, /* End of single-byte encodings @private@ */ CUPS_WINDOWS_932, /* Japanese JIS X0208-1990 */ CUPS_WINDOWS_936, /* Simplified Chinese GB 2312-80 */ CUPS_WINDOWS_949, /* Korean KS C5601-1992 */ CUPS_WINDOWS_950, /* Traditional Chinese Big Five */ CUPS_WINDOWS_1361, /* Korean Johab */ CUPS_BG18030, /* Chinese GB 18030 @since CUPS 2.4.0@ */ CUPS_ENCODING_DBCS_END = 127, /* End of double-byte encodings @private@ */ CUPS_EUC_CN, /* EUC Simplified Chinese */ CUPS_EUC_JP, /* EUC Japanese */ CUPS_EUC_KR, /* EUC Korean */ CUPS_EUC_TW, /* EUC Traditional Chinese */ CUPS_JIS_X0213, /* JIS X0213 aka Shift JIS */ CUPS_ENCODING_VBCS_END = 191 /* End of variable-length encodings @private@ */ } cups_encoding_t; typedef struct cups_lang_s /**** Language Cache Structure ****/ { struct cups_lang_s *next; /* Next language in cache */ int used; /* Number of times this entry has been used. */ cups_encoding_t encoding; /* Text encoding */ char language[16]; /* Language/locale name */ cups_array_t *strings; /* Message strings @private@ */ } cups_lang_t; /* * Prototypes... */ extern cups_lang_t *cupsLangDefault(void) _CUPS_PUBLIC; extern const char *cupsLangEncoding(cups_lang_t *lang) _CUPS_PUBLIC; extern void cupsLangFlush(void) _CUPS_PUBLIC; extern void cupsLangFree(cups_lang_t *lang) _CUPS_PUBLIC; extern cups_lang_t *cupsLangGet(const char *language) _CUPS_PUBLIC; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_LANGUAGE_H_ */ cups-2.4.7/cups/language.c0000644000175000017500000012675014502571342015275 0ustar zdohnalzdohnal/* * I18N/language support for CUPS. * * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #ifdef HAVE_LANGINFO_H # include #endif /* HAVE_LANGINFO_H */ #ifdef _WIN32 # include #else # include #endif /* _WIN32 */ #ifdef HAVE_COREFOUNDATION_H # include #endif /* HAVE_COREFOUNDATION_H */ /* * Local globals... */ static _cups_mutex_t lang_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex to control access to cache */ static cups_lang_t *lang_cache = NULL; /* Language string cache */ static const char * const lang_encodings[] = { /* Encoding strings */ "us-ascii", "iso-8859-1", "iso-8859-2", "iso-8859-3", "iso-8859-4", "iso-8859-5", "iso-8859-6", "iso-8859-7", "iso-8859-8", "iso-8859-9", "iso-8859-10", "utf-8", "iso-8859-13", "iso-8859-14", "iso-8859-15", "cp874", "cp1250", "cp1251", "cp1252", "cp1253", "cp1254", "cp1255", "cp1256", "cp1257", "cp1258", "koi8-r", "koi8-u", "iso-8859-11", "iso-8859-16", "mac", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "cp932", "cp936", "cp949", "cp950", "cp1361", "bg18030", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "unknown", "euc-cn", "euc-jp", "euc-kr", "euc-tw", "shift_jisx0213" }; #ifdef __APPLE__ typedef struct { const char * const language; /* Language ID */ const char * const locale; /* Locale ID */ } _apple_language_locale_t; static const _apple_language_locale_t apple_language_locale[] = { /* Language to locale ID LUT */ { "en", "en_US" }, { "nb", "no" }, { "nb_NO", "no" }, { "zh-Hans", "zh_CN" }, { "zh_HANS", "zh_CN" }, { "zh-Hant", "zh_TW" }, { "zh_HANT", "zh_TW" }, { "zh-Hant_CN", "zh_TW" } }; #endif /* __APPLE__ */ /* * Local functions... */ #ifdef __APPLE__ static const char *appleLangDefault(void); # ifdef CUPS_BUNDLEDIR # ifndef CF_RETURNS_RETAINED # if __has_feature(attribute_cf_returns_retained) # define CF_RETURNS_RETAINED __attribute__((cf_returns_retained)) # else # define CF_RETURNS_RETAINED # endif /* __has_feature(attribute_cf_returns_retained) */ # endif /* !CF_RETURNED_RETAINED */ static cups_array_t *appleMessageLoad(const char *locale) CF_RETURNS_RETAINED; # endif /* CUPS_BUNDLEDIR */ #endif /* __APPLE__ */ static cups_lang_t *cups_cache_lookup(const char *name, cups_encoding_t encoding); static int cups_message_compare(_cups_message_t *m1, _cups_message_t *m2); static void cups_message_free(_cups_message_t *m); static void cups_message_load(cups_lang_t *lang); static void cups_message_puts(cups_file_t *fp, const char *s); static int cups_read_strings(cups_file_t *fp, int flags, cups_array_t *a); static void cups_unquote(char *d, const char *s); #ifdef __APPLE__ /* * '_cupsAppleLanguage()' - Get the Apple language identifier associated with a * locale ID. */ const char * /* O - Language ID */ _cupsAppleLanguage(const char *locale, /* I - Locale ID */ char *language,/* I - Language ID buffer */ size_t langsize) /* I - Size of language ID buffer */ { int i; /* Looping var */ CFStringRef localeid, /* CF locale identifier */ langid; /* CF language identifier */ /* * Copy the locale name and convert, as needed, to the Apple-specific * locale identifier... */ switch (strlen(locale)) { default : /* * Invalid locale... */ strlcpy(language, "en", langsize); break; case 2 : strlcpy(language, locale, langsize); break; case 5 : strlcpy(language, locale, langsize); if (language[2] == '-') { /* * Convert ll-cc to ll_CC... */ language[2] = '_'; language[3] = (char)toupper(language[3] & 255); language[4] = (char)toupper(language[4] & 255); } break; } for (i = 0; i < (int)(sizeof(apple_language_locale) / sizeof(apple_language_locale[0])); i ++) if (!strcmp(locale, apple_language_locale[i].locale)) { strlcpy(language, apple_language_locale[i].language, sizeof(language)); break; } /* * Attempt to map the locale ID to a language ID... */ if ((localeid = CFStringCreateWithCString(kCFAllocatorDefault, language, kCFStringEncodingASCII)) != NULL) { if ((langid = CFLocaleCreateCanonicalLanguageIdentifierFromString( kCFAllocatorDefault, localeid)) != NULL) { CFStringGetCString(langid, language, (CFIndex)langsize, kCFStringEncodingASCII); CFRelease(langid); } CFRelease(localeid); } /* * Return what we got... */ return (language); } /* * '_cupsAppleLocale()' - Get the locale associated with an Apple language ID. */ const char * /* O - Locale */ _cupsAppleLocale(CFStringRef languageName, /* I - Apple language ID */ char *locale, /* I - Buffer for locale */ size_t localesize) /* I - Size of buffer */ { int i; /* Looping var */ CFStringRef localeName; /* Locale as a CF string */ #ifdef DEBUG char temp[1024]; /* Temporary string */ if (!CFStringGetCString(languageName, temp, (CFIndex)sizeof(temp), kCFStringEncodingASCII)) temp[0] = '\0'; DEBUG_printf(("_cupsAppleLocale(languageName=%p(%s), locale=%p, localsize=%d)", (void *)languageName, temp, (void *)locale, (int)localesize)); #endif /* DEBUG */ localeName = CFLocaleCreateCanonicalLocaleIdentifierFromString(kCFAllocatorDefault, languageName); if (localeName) { /* * Copy the locale name and tweak as needed... */ if (!CFStringGetCString(localeName, locale, (CFIndex)localesize, kCFStringEncodingASCII)) *locale = '\0'; DEBUG_printf(("_cupsAppleLocale: locale=\"%s\"", locale)); CFRelease(localeName); /* * Map new language identifiers to locales... */ for (i = 0; i < (int)(sizeof(apple_language_locale) / sizeof(apple_language_locale[0])); i ++) { size_t len = strlen(apple_language_locale[i].language); if (!strcmp(locale, apple_language_locale[i].language) || (!strncmp(locale, apple_language_locale[i].language, len) && (locale[len] == '_' || locale[len] == '-'))) { DEBUG_printf(("_cupsAppleLocale: Updating locale to \"%s\".", apple_language_locale[i].locale)); strlcpy(locale, apple_language_locale[i].locale, localesize); break; } } } else { /* * Just try the Apple language name... */ if (!CFStringGetCString(languageName, locale, (CFIndex)localesize, kCFStringEncodingASCII)) *locale = '\0'; } if (!*locale) { DEBUG_puts("_cupsAppleLocale: Returning NULL."); return (NULL); } /* * Convert language subtag into region subtag... */ if (locale[2] == '-') locale[2] = '_'; else if (locale[3] == '-') locale[3] = '_'; if (!strchr(locale, '.')) strlcat(locale, ".UTF-8", localesize); DEBUG_printf(("_cupsAppleLocale: Returning \"%s\".", locale)); return (locale); } #endif /* __APPLE__ */ /* * '_cupsEncodingName()' - Return the character encoding name string * for the given encoding enumeration. */ const char * /* O - Character encoding */ _cupsEncodingName( cups_encoding_t encoding) /* I - Encoding value */ { if (encoding < CUPS_US_ASCII || encoding >= (cups_encoding_t)(sizeof(lang_encodings) / sizeof(lang_encodings[0]))) { DEBUG_printf(("1_cupsEncodingName(encoding=%d) = out of range (\"%s\")", encoding, lang_encodings[0])); return (lang_encodings[0]); } else { DEBUG_printf(("1_cupsEncodingName(encoding=%d) = \"%s\"", encoding, lang_encodings[encoding])); return (lang_encodings[encoding]); } } /* * 'cupsLangDefault()' - Return the default language. */ cups_lang_t * /* O - Language data */ cupsLangDefault(void) { return (cupsLangGet(NULL)); } /* * 'cupsLangEncoding()' - Return the character encoding (us-ascii, etc.) * for the given language. */ const char * /* O - Character encoding */ cupsLangEncoding(cups_lang_t *lang) /* I - Language data */ { if (lang == NULL) return ((char*)lang_encodings[0]); else return ((char*)lang_encodings[lang->encoding]); } /* * 'cupsLangFlush()' - Flush all language data out of the cache. */ void cupsLangFlush(void) { cups_lang_t *lang, /* Current language */ *next; /* Next language */ /* * Free all languages in the cache... */ _cupsMutexLock(&lang_mutex); for (lang = lang_cache; lang != NULL; lang = next) { /* * Free all messages... */ _cupsMessageFree(lang->strings); /* * Then free the language structure itself... */ next = lang->next; free(lang); } lang_cache = NULL; _cupsMutexUnlock(&lang_mutex); } /* * 'cupsLangFree()' - Free language data. * * This does not actually free anything; use @link cupsLangFlush@ for that. */ void cupsLangFree(cups_lang_t *lang) /* I - Language to free */ { _cupsMutexLock(&lang_mutex); if (lang != NULL && lang->used > 0) lang->used --; _cupsMutexUnlock(&lang_mutex); } /* * 'cupsLangGet()' - Get a language. */ cups_lang_t * /* O - Language data */ cupsLangGet(const char *language) /* I - Language or locale */ { int i; /* Looping var */ #ifndef __APPLE__ char locale[255]; /* Copy of locale name */ #endif /* !__APPLE__ */ char langname[16], /* Requested language name */ country[16], /* Country code */ charset[16], /* Character set */ *csptr, /* Pointer to CODESET string */ *ptr, /* Pointer into language/charset */ real[48]; /* Real language name */ cups_encoding_t encoding; /* Encoding to use */ cups_lang_t *lang; /* Current language... */ static const char * const locale_encodings[] = { /* Locale charset names */ "ASCII", "ISO88591", "ISO88592", "ISO88593", "ISO88594", "ISO88595", "ISO88596", "ISO88597", "ISO88598", "ISO88599", "ISO885910", "UTF8", "ISO885913", "ISO885914", "ISO885915", "CP874", "CP1250", "CP1251", "CP1252", "CP1253", "CP1254", "CP1255", "CP1256", "CP1257", "CP1258", "KOI8R", "KOI8U", "ISO885911", "ISO885916", "MACROMAN", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "CP932", "CP936", "CP949", "CP950", "CP1361", "GB18030", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "EUCCN", "EUCJP", "EUCKR", "EUCTW", "SHIFT_JISX0213" }; DEBUG_printf(("2cupsLangGet(language=\"%s\")", language)); #ifdef __APPLE__ /* * Set the character set to UTF-8... */ strlcpy(charset, "UTF8", sizeof(charset)); /* * Apple's setlocale doesn't give us the user's localization * preference so we have to look it up this way... */ if (!language) { if (!getenv("SOFTWARE") || (language = getenv("LANG")) == NULL) language = appleLangDefault(); DEBUG_printf(("4cupsLangGet: language=\"%s\"", language)); } #else /* * Set the charset to "unknown"... */ charset[0] = '\0'; /* * Use setlocale() to determine the currently set locale, and then * fallback to environment variables to avoid setting the locale, * since setlocale() is not thread-safe! */ if (!language) { /* * First see if the locale has been set; if it is still "C" or * "POSIX", use the environment to get the default... */ # ifdef LC_MESSAGES ptr = setlocale(LC_MESSAGES, NULL); # else ptr = setlocale(LC_ALL, NULL); # endif /* LC_MESSAGES */ DEBUG_printf(("4cupsLangGet: current locale is \"%s\"", ptr)); if (!ptr || !strcmp(ptr, "C") || !strcmp(ptr, "POSIX")) { /* * Get the character set from the LC_CTYPE locale setting... */ if ((ptr = getenv("LC_CTYPE")) == NULL) if ((ptr = getenv("LC_ALL")) == NULL) if ((ptr = getenv("LANG")) == NULL) ptr = "en_US"; if ((csptr = strchr(ptr, '.')) != NULL) { /* * Extract the character set from the environment... */ for (ptr = charset, csptr ++; *csptr; csptr ++) if (ptr < (charset + sizeof(charset) - 1) && _cups_isalnum(*csptr)) *ptr++ = *csptr; *ptr = '\0'; } /* * Get the locale for messages from the LC_MESSAGES locale setting... */ if ((ptr = getenv("LC_MESSAGES")) == NULL) if ((ptr = getenv("LC_ALL")) == NULL) if ((ptr = getenv("LANG")) == NULL) ptr = "en_US"; } if (ptr) { strlcpy(locale, ptr, sizeof(locale)); language = locale; /* * CUPS STR #2575: Map "nb" to "no" for back-compatibility... */ if (!strncmp(locale, "nb", 2)) locale[1] = 'o'; DEBUG_printf(("4cupsLangGet: new language value is \"%s\"", language)); } } #endif /* __APPLE__ */ /* * If "language" is NULL at this point, then chances are we are using * a language that is not installed for the base OS. */ if (!language) { /* * Switch to the POSIX ("C") locale... */ language = "C"; } #ifdef CODESET /* * On systems that support the nl_langinfo(CODESET) call, use * this value as the character set... */ if (!charset[0] && (csptr = nl_langinfo(CODESET)) != NULL) { /* * Copy all of the letters and numbers in the CODESET string... */ for (ptr = charset; *csptr; csptr ++) if (_cups_isalnum(*csptr) && ptr < (charset + sizeof(charset) - 1)) *ptr++ = *csptr; *ptr = '\0'; DEBUG_printf(("4cupsLangGet: charset set to \"%s\" via " "nl_langinfo(CODESET)...", charset)); } #endif /* CODESET */ /* * If we don't have a character set by now, default to UTF-8... */ if (!charset[0]) strlcpy(charset, "UTF8", sizeof(charset)); /* * Parse the language string passed in to a locale string. "C" is the * standard POSIX locale and is copied unchanged. Otherwise the * language string is converted from ll-cc[.charset] (language-country) * to ll_CC[.CHARSET] to match the file naming convention used by all * POSIX-compliant operating systems. Invalid language names are mapped * to the POSIX locale. */ country[0] = '\0'; if (language == NULL || !language[0] || !strcmp(language, "POSIX")) strlcpy(langname, "C", sizeof(langname)); else { /* * Copy the parts of the locale string over safely... */ for (ptr = langname; *language; language ++) if (*language == '_' || *language == '-' || *language == '.') break; else if (ptr < (langname + sizeof(langname) - 1)) *ptr++ = (char)tolower(*language & 255); *ptr = '\0'; if (*language == '_' || *language == '-') { /* * Copy the country code... */ for (language ++, ptr = country; *language; language ++) if (*language == '.') break; else if (ptr < (country + sizeof(country) - 1)) *ptr++ = (char)toupper(*language & 255); *ptr = '\0'; /* * Map Chinese region codes to legacy country codes. */ if (!strcmp(language, "zh") && !strcmp(country, "HANS")) strlcpy(country, "CN", sizeof(country)); if (!strcmp(language, "zh") && !strcmp(country, "HANT")) strlcpy(country, "TW", sizeof(country)); } if (*language == '.' && !charset[0]) { /* * Copy the encoding... */ for (language ++, ptr = charset; *language; language ++) if (_cups_isalnum(*language) && ptr < (charset + sizeof(charset) - 1)) *ptr++ = (char)toupper(*language & 255); *ptr = '\0'; } /* * Force a POSIX locale for an invalid language name... */ if (strlen(langname) != 2 && strlen(langname) != 3) { strlcpy(langname, "C", sizeof(langname)); country[0] = '\0'; charset[0] = '\0'; } } DEBUG_printf(("4cupsLangGet: langname=\"%s\", country=\"%s\", charset=\"%s\"", langname, country, charset)); /* * Figure out the desired encoding... */ encoding = CUPS_AUTO_ENCODING; if (charset[0]) { for (i = 0; i < (int)(sizeof(locale_encodings) / sizeof(locale_encodings[0])); i ++) if (!_cups_strcasecmp(charset, locale_encodings[i])) { encoding = (cups_encoding_t)i; break; } if (encoding == CUPS_AUTO_ENCODING) { /* * Map alternate names for various character sets... */ if (!_cups_strcasecmp(charset, "iso-2022-jp") || !_cups_strcasecmp(charset, "sjis")) encoding = CUPS_WINDOWS_932; else if (!_cups_strcasecmp(charset, "iso-2022-cn")) encoding = CUPS_WINDOWS_936; else if (!_cups_strcasecmp(charset, "iso-2022-kr")) encoding = CUPS_WINDOWS_949; else if (!_cups_strcasecmp(charset, "big5")) encoding = CUPS_WINDOWS_950; } } DEBUG_printf(("4cupsLangGet: encoding=%d(%s)", encoding, encoding == CUPS_AUTO_ENCODING ? "auto" : lang_encodings[encoding])); /* * See if we already have this language/country loaded... */ if (country[0]) snprintf(real, sizeof(real), "%s_%s", langname, country); else strlcpy(real, langname, sizeof(real)); _cupsMutexLock(&lang_mutex); if ((lang = cups_cache_lookup(real, encoding)) != NULL) { _cupsMutexUnlock(&lang_mutex); DEBUG_printf(("3cupsLangGet: Using cached copy of \"%s\"...", real)); return (lang); } /* * See if there is a free language available; if so, use that * record... */ for (lang = lang_cache; lang != NULL; lang = lang->next) if (lang->used == 0) break; if (lang == NULL) { /* * Allocate memory for the language and add it to the cache. */ if ((lang = calloc(1, sizeof(cups_lang_t))) == NULL) { _cupsMutexUnlock(&lang_mutex); return (NULL); } lang->next = lang_cache; lang_cache = lang; } else { /* * Free all old strings as needed... */ _cupsMessageFree(lang->strings); lang->strings = NULL; } /* * Then assign the language and encoding fields... */ lang->used ++; strlcpy(lang->language, real, sizeof(lang->language)); if (encoding != CUPS_AUTO_ENCODING) lang->encoding = encoding; else lang->encoding = CUPS_UTF8; /* * Return... */ _cupsMutexUnlock(&lang_mutex); return (lang); } /* * '_cupsLangString()' - Get a message string. * * The returned string is UTF-8 encoded; use cupsUTF8ToCharset() to * convert the string to the language encoding. */ const char * /* O - Localized message */ _cupsLangString(cups_lang_t *lang, /* I - Language */ const char *message) /* I - Message */ { const char *s; /* Localized message */ DEBUG_printf(("_cupsLangString(lang=%p, message=\"%s\")", (void *)lang, message)); /* * Range check input... */ if (!lang || !message || !*message) return (message); _cupsMutexLock(&lang_mutex); /* * Load the message catalog if needed... */ if (!lang->strings) cups_message_load(lang); s = _cupsMessageLookup(lang->strings, message); _cupsMutexUnlock(&lang_mutex); return (s); } /* * '_cupsMessageFree()' - Free a messages array. */ void _cupsMessageFree(cups_array_t *a) /* I - Message array */ { #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) /* * Release the cups.strings dictionary as needed... */ if (cupsArrayUserData(a)) CFRelease((CFDictionaryRef)cupsArrayUserData(a)); #endif /* __APPLE__ && CUPS_BUNDLEDIR */ /* * Free the array... */ cupsArrayDelete(a); } /* * '_cupsMessageLoad()' - Load a .po or .strings file into a messages array. */ cups_array_t * /* O - New message array */ _cupsMessageLoad(const char *filename, /* I - Message catalog to load */ int flags) /* I - Load flags */ { cups_file_t *fp; /* Message file */ cups_array_t *a; /* Message array */ _cups_message_t *m; /* Current message */ char s[4096], /* String buffer */ *ptr, /* Pointer into buffer */ *temp; /* New string */ size_t length, /* Length of combined strings */ ptrlen; /* Length of string */ DEBUG_printf(("4_cupsMessageLoad(filename=\"%s\")", filename)); /* * Create an array to hold the messages... */ if ((a = _cupsMessageNew(NULL)) == NULL) { DEBUG_puts("5_cupsMessageLoad: Unable to allocate array!"); return (NULL); } /* * Open the message catalog file... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) { DEBUG_printf(("5_cupsMessageLoad: Unable to open file: %s", strerror(errno))); return (a); } if (flags & _CUPS_MESSAGE_STRINGS) { while (cups_read_strings(fp, flags, a)); } else { /* * Read messages from the catalog file until EOF... * * The format is the GNU gettext .po format, which is fairly simple: * * msgid "some text" * msgstr "localized text" * * The ID and localized text can span multiple lines using the form: * * msgid "" * "some long text" * msgstr "" * "localized text spanning " * "multiple lines" */ m = NULL; while (cupsFileGets(fp, s, sizeof(s)) != NULL) { /* * Skip blank and comment lines... */ if (s[0] == '#' || !s[0]) continue; /* * Strip the trailing quote... */ if ((ptr = strrchr(s, '\"')) == NULL) continue; *ptr = '\0'; /* * Find start of value... */ if ((ptr = strchr(s, '\"')) == NULL) continue; ptr ++; /* * Unquote the text... */ if (flags & _CUPS_MESSAGE_UNQUOTE) cups_unquote(ptr, ptr); /* * Create or add to a message... */ if (!strncmp(s, "msgid", 5)) { /* * Add previous message as needed... */ if (m) { if (m->str && (m->str[0] || (flags & _CUPS_MESSAGE_EMPTY))) { cupsArrayAdd(a, m); } else { /* * Translation is empty, don't add it... (STR #4033) */ free(m->msg); if (m->str) free(m->str); free(m); } } /* * Create a new message with the given msgid string... */ if ((m = (_cups_message_t *)calloc(1, sizeof(_cups_message_t))) == NULL) break; if ((m->msg = strdup(ptr)) == NULL) { free(m); m = NULL; break; } } else if (s[0] == '\"' && m) { /* * Append to current string... */ length = strlen(m->str ? m->str : m->msg); ptrlen = strlen(ptr); if ((temp = realloc(m->str ? m->str : m->msg, length + ptrlen + 1)) == NULL) { if (m->str) free(m->str); free(m->msg); free(m); m = NULL; break; } if (m->str) { /* * Copy the new portion to the end of the msgstr string - safe * to use memcpy because the buffer is allocated to the correct * size... */ m->str = temp; memcpy(m->str + length, ptr, ptrlen + 1); } else { /* * Copy the new portion to the end of the msgid string - safe * to use memcpy because the buffer is allocated to the correct * size... */ m->msg = temp; memcpy(m->msg + length, ptr, ptrlen + 1); } } else if (!strncmp(s, "msgstr", 6) && m) { /* * Set the string... */ if ((m->str = strdup(ptr)) == NULL) { free(m->msg); free(m); m = NULL; break; } } } /* * Add the last message string to the array as needed... */ if (m) { if (m->str && (m->str[0] || (flags & _CUPS_MESSAGE_EMPTY))) { cupsArrayAdd(a, m); } else { /* * Translation is empty, don't add it... (STR #4033) */ free(m->msg); if (m->str) free(m->str); free(m); } } } /* * Close the message catalog file and return the new array... */ cupsFileClose(fp); DEBUG_printf(("5_cupsMessageLoad: Returning %d messages...", cupsArrayCount(a))); return (a); } /* * '_cupsMessageLookup()' - Lookup a message string. */ const char * /* O - Localized message */ _cupsMessageLookup(cups_array_t *a, /* I - Message array */ const char *m) /* I - Message */ { _cups_message_t key, /* Search key */ *match; /* Matching message */ DEBUG_printf(("_cupsMessageLookup(a=%p, m=\"%s\")", (void *)a, m)); /* * Lookup the message string; if it doesn't exist in the catalog, * then return the message that was passed to us... */ key.msg = (char *)m; match = (_cups_message_t *)cupsArrayFind(a, &key); #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) if (!match && cupsArrayUserData(a)) { /* * Try looking the string up in the cups.strings dictionary... */ CFDictionaryRef dict; /* cups.strings dictionary */ CFStringRef cfm, /* Message as a CF string */ cfstr; /* Localized text as a CF string */ dict = (CFDictionaryRef)cupsArrayUserData(a); cfm = CFStringCreateWithCString(kCFAllocatorDefault, m, kCFStringEncodingUTF8); match = calloc(1, sizeof(_cups_message_t)); match->msg = strdup(m); cfstr = cfm ? CFDictionaryGetValue(dict, cfm) : NULL; if (cfstr) { char buffer[1024]; /* Message buffer */ CFStringGetCString(cfstr, buffer, sizeof(buffer), kCFStringEncodingUTF8); match->str = strdup(buffer); DEBUG_printf(("1_cupsMessageLookup: Found \"%s\" as \"%s\"...", m, buffer)); } else { match->str = strdup(m); DEBUG_printf(("1_cupsMessageLookup: Did not find \"%s\"...", m)); } cupsArrayAdd(a, match); if (cfm) CFRelease(cfm); } #endif /* __APPLE__ && CUPS_BUNDLEDIR */ if (match && match->str) return (match->str); else return (m); } /* * '_cupsMessageNew()' - Make a new message catalog array. */ cups_array_t * /* O - Array */ _cupsMessageNew(void *context) /* I - User data */ { return (cupsArrayNew3((cups_array_func_t)cups_message_compare, context, (cups_ahash_func_t)NULL, 0, (cups_acopy_func_t)NULL, (cups_afree_func_t)cups_message_free)); } /* * '_cupsMessageSave()' - Save a message catalog array. */ int /* O - 0 on success, -1 on failure */ _cupsMessageSave(const char *filename,/* I - Output filename */ int flags, /* I - Format flags */ cups_array_t *a) /* I - Message array */ { cups_file_t *fp; /* Output file */ _cups_message_t *m; /* Current message */ /* * Output message catalog file... */ if ((fp = cupsFileOpen(filename, "w")) == NULL) return (-1); /* * Write each message... */ if (flags & _CUPS_MESSAGE_STRINGS) { for (m = (_cups_message_t *)cupsArrayFirst(a); m; m = (_cups_message_t *)cupsArrayNext(a)) { cupsFilePuts(fp, "\""); cups_message_puts(fp, m->msg); cupsFilePuts(fp, "\" = \""); cups_message_puts(fp, m->str); cupsFilePuts(fp, "\";\n"); } } else { for (m = (_cups_message_t *)cupsArrayFirst(a); m; m = (_cups_message_t *)cupsArrayNext(a)) { cupsFilePuts(fp, "msgid \""); cups_message_puts(fp, m->msg); cupsFilePuts(fp, "\"\nmsgstr \""); cups_message_puts(fp, m->str); cupsFilePuts(fp, "\"\n"); } } return (cupsFileClose(fp)); } #ifdef __APPLE__ /* * 'appleLangDefault()' - Get the default locale string. */ static const char * /* O - Locale string */ appleLangDefault(void) { CFBundleRef bundle; /* Main bundle (if any) */ CFArrayRef bundleList; /* List of localizations in bundle */ CFPropertyListRef localizationList = NULL; /* List of localization data */ CFStringRef languageName; /* Current name */ char *lang; /* LANG environment variable */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_puts("2appleLangDefault()"); /* * Only do the lookup and translation the first time. */ if (!cg->language[0]) { if (getenv("SOFTWARE") != NULL && (lang = getenv("LANG")) != NULL) { DEBUG_printf(("3appleLangDefault: Using LANG=%s", lang)); strlcpy(cg->language, lang, sizeof(cg->language)); return (cg->language); } else if ((bundle = CFBundleGetMainBundle()) != NULL && (bundleList = CFBundleCopyBundleLocalizations(bundle)) != NULL) { CFURLRef resources = CFBundleCopyResourcesDirectoryURL(bundle); DEBUG_puts("3appleLangDefault: Getting localizationList from bundle."); if (resources) { CFStringRef cfpath = CFURLCopyPath(resources); char path[1024]; if (cfpath) { /* * See if we have an Info.plist file in the bundle... */ CFStringGetCString(cfpath, path, sizeof(path), kCFStringEncodingUTF8); DEBUG_printf(("3appleLangDefault: Got a resource URL (\"%s\")", path)); strlcat(path, "Contents/Info.plist", sizeof(path)); if (!access(path, R_OK)) localizationList = CFBundleCopyPreferredLocalizationsFromArray(bundleList); else DEBUG_puts("3appleLangDefault: No Info.plist, ignoring resource URL..."); CFRelease(cfpath); } CFRelease(resources); } else DEBUG_puts("3appleLangDefault: No resource URL."); CFRelease(bundleList); } if (!localizationList) { DEBUG_puts("3appleLangDefault: Getting localizationList from preferences."); localizationList = CFPreferencesCopyAppValue(CFSTR("AppleLanguages"), kCFPreferencesCurrentApplication); } if (localizationList) { #ifdef DEBUG if (CFGetTypeID(localizationList) == CFArrayGetTypeID()) DEBUG_printf(("3appleLangDefault: Got localizationList, %d entries.", (int)CFArrayGetCount(localizationList))); else DEBUG_puts("3appleLangDefault: Got localizationList but not an array."); #endif /* DEBUG */ if (CFGetTypeID(localizationList) == CFArrayGetTypeID() && CFArrayGetCount(localizationList) > 0) { languageName = CFArrayGetValueAtIndex(localizationList, 0); if (languageName && CFGetTypeID(languageName) == CFStringGetTypeID()) { if (_cupsAppleLocale(languageName, cg->language, sizeof(cg->language))) DEBUG_printf(("3appleLangDefault: cg->language=\"%s\"", cg->language)); else DEBUG_puts("3appleLangDefault: Unable to get locale."); } } CFRelease(localizationList); } /* * If we didn't find the language, default to en_US... */ if (!cg->language[0]) { DEBUG_puts("3appleLangDefault: Defaulting to en_US."); strlcpy(cg->language, "en_US.UTF-8", sizeof(cg->language)); } } else DEBUG_printf(("3appleLangDefault: Using previous locale \"%s\".", cg->language)); /* * Return the cached locale... */ return (cg->language); } # ifdef CUPS_BUNDLEDIR /* * 'appleMessageLoad()' - Load a message catalog from a localizable bundle. */ static cups_array_t * /* O - Message catalog */ appleMessageLoad(const char *locale) /* I - Locale ID */ { char filename[1024], /* Path to cups.strings file */ applelang[256], /* Apple language ID */ baselang[4]; /* Base language */ CFURLRef url; /* URL to cups.strings file */ CFReadStreamRef stream = NULL; /* File stream */ CFPropertyListRef plist = NULL; /* Localization file */ #ifdef DEBUG const char *cups_strings = getenv("CUPS_STRINGS"); /* Test strings file */ CFErrorRef error = NULL; /* Error when opening file */ #endif /* DEBUG */ DEBUG_printf(("appleMessageLoad(locale=\"%s\")", locale)); /* * Load the cups.strings file... */ #ifdef DEBUG if (cups_strings) { DEBUG_puts("1appleMessageLoad: Using debug CUPS_STRINGS file."); strlcpy(filename, cups_strings, sizeof(filename)); } else #endif /* DEBUG */ snprintf(filename, sizeof(filename), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", _cupsAppleLanguage(locale, applelang, sizeof(applelang))); if (access(filename, 0)) { /* * * * Try with original locale string... */ DEBUG_printf(("1appleMessageLoad: \"%s\": %s", filename, strerror(errno))); snprintf(filename, sizeof(filename), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", locale); } if (access(filename, 0)) { /* * * * Try with just the language code... */ DEBUG_printf(("1appleMessageLoad: \"%s\": %s", filename, strerror(errno))); strlcpy(baselang, locale, sizeof(baselang)); if (baselang[3] == '-' || baselang[3] == '_') baselang[3] = '\0'; snprintf(filename, sizeof(filename), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", baselang); } if (access(filename, 0)) { /* * Try alternate lproj directory names... */ DEBUG_printf(("1appleMessageLoad: \"%s\": %s", filename, strerror(errno))); if (!strncmp(locale, "en", 2)) locale = "English"; else if (!strncmp(locale, "nb", 2)) locale = "no"; else if (!strncmp(locale, "nl", 2)) locale = "Dutch"; else if (!strncmp(locale, "fr", 2)) locale = "French"; else if (!strncmp(locale, "de", 2)) locale = "German"; else if (!strncmp(locale, "it", 2)) locale = "Italian"; else if (!strncmp(locale, "ja", 2)) locale = "Japanese"; else if (!strncmp(locale, "es", 2)) locale = "Spanish"; else if (!strcmp(locale, "zh_HK") || !strncasecmp(locale, "zh-Hant", 7) || !strncasecmp(locale, "zh_Hant", 7)) { /* * * * * Try zh_TW first, then zh... Sigh... */ if (!access(CUPS_BUNDLEDIR "/Resources/zh_TW.lproj/cups.strings", 0)) locale = "zh_TW"; else locale = "zh"; } else if (strstr(locale, "_") != NULL || strstr(locale, "-") != NULL) { /* * Drop country code, just try language... */ strlcpy(baselang, locale, sizeof(baselang)); if (baselang[2] == '-' || baselang[2] == '_') baselang[2] = '\0'; locale = baselang; } snprintf(filename, sizeof(filename), CUPS_BUNDLEDIR "/Resources/%s.lproj/cups.strings", locale); } DEBUG_printf(("1appleMessageLoad: filename=\"%s\"", filename)); url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)filename, (CFIndex)strlen(filename), false); if (url) { stream = CFReadStreamCreateWithFile(kCFAllocatorDefault, url); if (stream) { /* * Read the property list containing the localization data. * * NOTE: This code currently generates a clang "potential leak" * warning, but the object is released in _cupsMessageFree(). */ CFReadStreamOpen(stream); #ifdef DEBUG plist = CFPropertyListCreateWithStream(kCFAllocatorDefault, stream, 0, kCFPropertyListImmutable, NULL, &error); if (error) { CFStringRef msg = CFErrorCopyDescription(error); /* Error message */ CFStringGetCString(msg, filename, sizeof(filename), kCFStringEncodingUTF8); DEBUG_printf(("1appleMessageLoad: %s", filename)); CFRelease(msg); CFRelease(error); } #else plist = CFPropertyListCreateWithStream(kCFAllocatorDefault, stream, 0, kCFPropertyListImmutable, NULL, NULL); #endif /* DEBUG */ if (plist && CFGetTypeID(plist) != CFDictionaryGetTypeID()) { CFRelease(plist); plist = NULL; } CFRelease(stream); } CFRelease(url); } DEBUG_printf(("1appleMessageLoad: url=%p, stream=%p, plist=%p", url, stream, plist)); /* * Create and return an empty array to act as a cache for messages, passing the * plist as the user data. */ return (_cupsMessageNew((void *)plist)); } # endif /* CUPS_BUNDLEDIR */ #endif /* __APPLE__ */ /* * 'cups_cache_lookup()' - Lookup a language in the cache... */ static cups_lang_t * /* O - Language data or NULL */ cups_cache_lookup( const char *name, /* I - Name of locale */ cups_encoding_t encoding) /* I - Encoding of locale */ { cups_lang_t *lang; /* Current language */ DEBUG_printf(("7cups_cache_lookup(name=\"%s\", encoding=%d(%s))", name, encoding, encoding == CUPS_AUTO_ENCODING ? "auto" : lang_encodings[encoding])); /* * Loop through the cache and return a match if found... */ for (lang = lang_cache; lang != NULL; lang = lang->next) { DEBUG_printf(("9cups_cache_lookup: lang=%p, language=\"%s\", " "encoding=%d(%s)", (void *)lang, lang->language, lang->encoding, lang_encodings[lang->encoding])); if (!strcmp(lang->language, name) && (encoding == CUPS_AUTO_ENCODING || encoding == lang->encoding)) { lang->used ++; DEBUG_puts("8cups_cache_lookup: returning match!"); return (lang); } } DEBUG_puts("8cups_cache_lookup: returning NULL!"); return (NULL); } /* * 'cups_message_compare()' - Compare two messages. */ static int /* O - Result of comparison */ cups_message_compare( _cups_message_t *m1, /* I - First message */ _cups_message_t *m2) /* I - Second message */ { return (strcmp(m1->msg, m2->msg)); } /* * 'cups_message_free()' - Free a message. */ static void cups_message_free(_cups_message_t *m) /* I - Message */ { if (m->msg) free(m->msg); if (m->str) free(m->str); free(m); } /* * 'cups_message_load()' - Load the message catalog for a language. */ static void cups_message_load(cups_lang_t *lang) /* I - Language */ { #if defined(__APPLE__) && defined(CUPS_BUNDLEDIR) lang->strings = appleMessageLoad(lang->language); #else char filename[1024]; /* Filename for language locale file */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ snprintf(filename, sizeof(filename), "%s/%s/cups_%s.po", cg->localedir, lang->language, lang->language); if (strchr(lang->language, '_') && access(filename, 0)) { /* * Country localization not available, look for generic localization... */ snprintf(filename, sizeof(filename), "%s/%.2s/cups_%.2s.po", cg->localedir, lang->language, lang->language); if (access(filename, 0)) { /* * No generic localization, so use POSIX... */ DEBUG_printf(("4cups_message_load: access(\"%s\", 0): %s", filename, strerror(errno))); snprintf(filename, sizeof(filename), "%s/C/cups_C.po", cg->localedir); } } /* * Read the strings from the file... */ lang->strings = _cupsMessageLoad(filename, _CUPS_MESSAGE_UNQUOTE); #endif /* __APPLE__ && CUPS_BUNDLEDIR */ } /* * 'cups_message_puts()' - Write a message string with quoting. */ static void cups_message_puts(cups_file_t *fp, /* I - File to write to */ const char *s) /* I - String to write */ { const char *start, /* Start of substring */ *ptr; /* Pointer into string */ for (start = s, ptr = s; *ptr; ptr ++) { if (strchr("\\\"\n\t", *ptr)) { if (ptr > start) { cupsFileWrite(fp, start, (size_t)(ptr - start)); start = ptr + 1; } if (*ptr == '\\') cupsFileWrite(fp, "\\\\", 2); else if (*ptr == '\"') cupsFileWrite(fp, "\\\"", 2); else if (*ptr == '\n') cupsFileWrite(fp, "\\n", 2); else /* if (*ptr == '\t') */ cupsFileWrite(fp, "\\t", 2); } } if (ptr > start) cupsFileWrite(fp, start, (size_t)(ptr - start)); } /* * 'cups_read_strings()' - Read a pair of strings from a .strings file. */ static int /* O - 1 on success, 0 on failure */ cups_read_strings(cups_file_t *fp, /* I - .strings file */ int flags, /* I - CUPS_MESSAGE_xxx flags */ cups_array_t *a) /* I - Message catalog array */ { char buffer[8192], /* Line buffer */ *bufptr, /* Pointer into buffer */ *msg, /* Pointer to start of message */ *str; /* Pointer to start of translation string */ _cups_message_t *m; /* New message */ while (cupsFileGets(fp, buffer, sizeof(buffer))) { /* * Skip any line (comments, blanks, etc.) that isn't: * * "message" = "translation"; */ for (bufptr = buffer; *bufptr && isspace(*bufptr & 255); bufptr ++); if (*bufptr != '\"') continue; /* * Find the end of the message... */ bufptr ++; for (msg = bufptr; *bufptr && *bufptr != '\"'; bufptr ++) if (*bufptr == '\\' && bufptr[1]) bufptr ++; if (!*bufptr) continue; *bufptr++ = '\0'; if (flags & _CUPS_MESSAGE_UNQUOTE) cups_unquote(msg, msg); /* * Find the start of the translation... */ while (*bufptr && isspace(*bufptr & 255)) bufptr ++; if (*bufptr != '=') continue; bufptr ++; while (*bufptr && isspace(*bufptr & 255)) bufptr ++; if (*bufptr != '\"') continue; /* * Find the end of the translation... */ bufptr ++; for (str = bufptr; *bufptr && *bufptr != '\"'; bufptr ++) if (*bufptr == '\\' && bufptr[1]) bufptr ++; if (!*bufptr) continue; *bufptr++ = '\0'; if (flags & _CUPS_MESSAGE_UNQUOTE) cups_unquote(str, str); /* * If we get this far we have a valid pair of strings, add them... */ if ((m = malloc(sizeof(_cups_message_t))) == NULL) break; m->msg = strdup(msg); m->str = strdup(str); if (m->msg && m->str) { cupsArrayAdd(a, m); } else { if (m->msg) free(m->msg); if (m->str) free(m->str); free(m); break; } return (1); } /* * No more strings... */ return (0); } /* * 'cups_unquote()' - Unquote characters in strings... */ static void cups_unquote(char *d, /* O - Unquoted string */ const char *s) /* I - Original string */ { while (*s) { if (*s == '\\') { s ++; if (isdigit(*s)) { *d = 0; while (isdigit(*s)) { *d = *d * 8 + *s - '0'; s ++; } d ++; } else { if (*s == 'n') *d ++ = '\n'; else if (*s == 'r') *d ++ = '\r'; else if (*s == 't') *d ++ = '\t'; else *d++ = *s; s ++; } } else *d++ = *s++; } *d = '\0'; } cups-2.4.7/cups/language-private.h0000644000175000017500000000477614502571342016755 0ustar zdohnalzdohnal/* * Private localization support for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_LANGUAGE_PRIVATE_H_ # define _CUPS_LANGUAGE_PRIVATE_H_ /* * Include necessary headers... */ # include "config.h" # include # include # ifdef __APPLE__ # include # endif /* __APPLE__ */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Macro for localized text... */ # define _(x) x /* * Constants... */ # define _CUPS_MESSAGE_PO 0 /* Message file is in GNU .po format */ # define _CUPS_MESSAGE_UNQUOTE 1 /* Unescape \foo in strings? */ # define _CUPS_MESSAGE_STRINGS 2 /* Message file is in Apple .strings format */ # define _CUPS_MESSAGE_EMPTY 4 /* Allow empty localized strings */ /* * Types... */ typedef struct _cups_message_s /**** Message catalog entry ****/ { char *msg, /* Original string */ *str; /* Localized string */ } _cups_message_t; /* * Prototypes... */ # ifdef __APPLE__ extern const char *_cupsAppleLanguage(const char *locale, char *language, size_t langsize) _CUPS_PRIVATE; extern const char *_cupsAppleLocale(CFStringRef languageName, char *locale, size_t localesize) _CUPS_PRIVATE; # endif /* __APPLE__ */ extern void _cupsCharmapFlush(void) _CUPS_INTERNAL; extern const char *_cupsEncodingName(cups_encoding_t encoding) _CUPS_PRIVATE; extern void _cupsLangPrintError(const char *prefix, const char *message) _CUPS_PRIVATE; extern int _cupsLangPrintFilter(FILE *fp, const char *prefix, const char *message, ...) _CUPS_FORMAT(3, 4) _CUPS_PRIVATE; extern int _cupsLangPrintf(FILE *fp, const char *message, ...) _CUPS_FORMAT(2, 3) _CUPS_PRIVATE; extern int _cupsLangPuts(FILE *fp, const char *message) _CUPS_PRIVATE; extern const char *_cupsLangString(cups_lang_t *lang, const char *message) _CUPS_PRIVATE; extern void _cupsMessageFree(cups_array_t *a) _CUPS_PRIVATE; extern cups_array_t *_cupsMessageLoad(const char *filename, int flags) _CUPS_PRIVATE; extern const char *_cupsMessageLookup(cups_array_t *a, const char *m) _CUPS_PRIVATE; extern cups_array_t *_cupsMessageNew(void *context) _CUPS_PRIVATE; extern int _cupsMessageSave(const char *filename, int flags, cups_array_t *a) _CUPS_PRIVATE; extern void _cupsSetLocale(char *argv[]) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_LANGUAGE_PRIVATE_H_ */ cups-2.4.7/cups/langprintf.c0000644000175000017500000001670614502571342015655 0ustar zdohnalzdohnal/* * Localized printf/puts functions for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 2002-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * '_cupsLangPrintError()' - Print a message followed by a standard error. */ void _cupsLangPrintError(const char *prefix, /* I - Non-localized message prefix */ const char *message)/* I - Message */ { ssize_t bytes; /* Number of bytes formatted */ int last_errno; /* Last error */ char buffer[2048], /* Message buffer */ *bufptr, /* Pointer into buffer */ output[8192]; /* Output buffer */ _cups_globals_t *cg; /* Global data */ /* * Range check... */ if (!message) return; /* * Save the errno value... */ last_errno = errno; /* * Get the message catalog... */ cg = _cupsGlobals(); if (!cg->lang_default) cg->lang_default = cupsLangDefault(); /* * Format the message... */ if (prefix) { snprintf(buffer, sizeof(buffer), "%s:", prefix); bufptr = buffer + strlen(buffer); } else bufptr = buffer; snprintf(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer), /* TRANSLATORS: Message is "subject: error" */ _cupsLangString(cg->lang_default, _("%s: %s")), _cupsLangString(cg->lang_default, message), strerror(last_errno)); strlcat(buffer, "\n", sizeof(buffer)); /* * Convert and write to stderr... */ bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)buffer, sizeof(output), cg->lang_default->encoding); if (bytes > 0) fwrite(output, 1, (size_t)bytes, stderr); } /* * '_cupsLangPrintFilter()' - Print a formatted filter message string to a file. */ int /* O - Number of bytes written */ _cupsLangPrintFilter( FILE *fp, /* I - File to write to */ const char *prefix, /* I - Non-localized message prefix */ const char *message, /* I - Message string to use */ ...) /* I - Additional arguments as needed */ { ssize_t bytes; /* Number of bytes formatted */ char temp[2048], /* Temporary format buffer */ buffer[2048], /* Message buffer */ output[8192]; /* Output buffer */ va_list ap; /* Pointer to additional arguments */ _cups_globals_t *cg; /* Global data */ /* * Range check... */ if (!fp || !message) return (-1); cg = _cupsGlobals(); if (!cg->lang_default) cg->lang_default = cupsLangDefault(); /* * Format the string... */ va_start(ap, message); snprintf(temp, sizeof(temp), "%s: %s\n", prefix, _cupsLangString(cg->lang_default, message)); vsnprintf(buffer, sizeof(buffer), temp, ap); va_end(ap); /* * Transcode to the destination charset... */ bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)buffer, sizeof(output), cg->lang_default->encoding); /* * Write the string and return the number of bytes written... */ if (bytes > 0) return ((int)fwrite(output, 1, (size_t)bytes, fp)); else return ((int)bytes); } /* * '_cupsLangPrintf()' - Print a formatted message string to a file. */ int /* O - Number of bytes written */ _cupsLangPrintf(FILE *fp, /* I - File to write to */ const char *message, /* I - Message string to use */ ...) /* I - Additional arguments as needed */ { ssize_t bytes; /* Number of bytes formatted */ char buffer[2048], /* Message buffer */ output[8192]; /* Output buffer */ va_list ap; /* Pointer to additional arguments */ _cups_globals_t *cg; /* Global data */ /* * Range check... */ if (!fp || !message) return (-1); cg = _cupsGlobals(); if (!cg->lang_default) cg->lang_default = cupsLangDefault(); /* * Format the string... */ va_start(ap, message); vsnprintf(buffer, sizeof(buffer) - 1, _cupsLangString(cg->lang_default, message), ap); va_end(ap); strlcat(buffer, "\n", sizeof(buffer)); /* * Transcode to the destination charset... */ bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)buffer, sizeof(output), cg->lang_default->encoding); /* * Write the string and return the number of bytes written... */ if (bytes > 0) return ((int)fwrite(output, 1, (size_t)bytes, fp)); else return ((int)bytes); } /* * '_cupsLangPuts()' - Print a static message string to a file. */ int /* O - Number of bytes written */ _cupsLangPuts(FILE *fp, /* I - File to write to */ const char *message) /* I - Message string to use */ { ssize_t bytes; /* Number of bytes formatted */ char output[8192]; /* Message buffer */ _cups_globals_t *cg; /* Global data */ /* * Range check... */ if (!fp || !message) return (-1); cg = _cupsGlobals(); if (!cg->lang_default) cg->lang_default = cupsLangDefault(); /* * Transcode to the destination charset... */ bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)_cupsLangString(cg->lang_default, message), sizeof(output) - 4, cg->lang_default->encoding); bytes += cupsUTF8ToCharset(output + bytes, (cups_utf8_t *)"\n", (int)(sizeof(output) - (size_t)bytes), cg->lang_default->encoding); /* * Write the string and return the number of bytes written... */ if (bytes > 0) return ((int)fwrite(output, 1, (size_t)bytes, fp)); else return ((int)bytes); } /* * '_cupsSetLocale()' - Set the current locale and transcode the command-line. */ void _cupsSetLocale(char *argv[]) /* IO - Command-line arguments */ { int i; /* Looping var */ char buffer[8192]; /* Command-line argument buffer */ _cups_globals_t *cg; /* Global data */ #ifdef LC_TIME const char *lc_time; /* Current LC_TIME value */ char new_lc_time[255], /* New LC_TIME value */ *charset; /* Pointer to character set */ #endif /* LC_TIME */ /* * Set the locale so that times, etc. are displayed properly. * * Unfortunately, while we need the localized time value, we *don't* * want to use the localized charset for the time value, so we need * to set LC_TIME to the locale name with .UTF-8 on the end (if * the locale includes a character set specifier...) */ setlocale(LC_ALL, ""); #ifdef LC_TIME if ((lc_time = setlocale(LC_TIME, NULL)) == NULL) lc_time = setlocale(LC_ALL, NULL); if (lc_time) { strlcpy(new_lc_time, lc_time, sizeof(new_lc_time)); if ((charset = strchr(new_lc_time, '.')) == NULL) charset = new_lc_time + strlen(new_lc_time); strlcpy(charset, ".UTF-8", sizeof(new_lc_time) - (size_t)(charset - new_lc_time)); } else strlcpy(new_lc_time, "C", sizeof(new_lc_time)); setlocale(LC_TIME, new_lc_time); #endif /* LC_TIME */ /* * Initialize the default language info... */ cg = _cupsGlobals(); if (!cg->lang_default) cg->lang_default = cupsLangDefault(); /* * Transcode the command-line arguments from the locale charset to * UTF-8... */ if (cg->lang_default->encoding != CUPS_US_ASCII && cg->lang_default->encoding != CUPS_UTF8) { for (i = 1; argv[i]; i ++) { /* * Try converting from the locale charset to UTF-8... */ if (cupsCharsetToUTF8((cups_utf8_t *)buffer, argv[i], sizeof(buffer), cg->lang_default->encoding) < 0) continue; /* * Save the new string if it differs from the original... */ if (strcmp(buffer, argv[i])) argv[i] = strdup(buffer); } } } cups-2.4.7/cups/ipp.h0000644000175000017500000015055214502571342014304 0ustar zdohnalzdohnal/* * Internet Printing Protocol definitions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_IPP_H_ # define _CUPS_IPP_H_ /* * Include necessary headers... */ # include "http.h" # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * IPP version string... */ # define IPP_VERSION "\002\001" /* * IPP registered port number... * * Note: Applications should never use IPP_PORT, but instead use the * ippPort() function to allow overrides via the IPP_PORT environment * variable and services file if needed! */ # define IPP_PORT 631 /* * Common limits... */ # define IPP_MAX_CHARSET 64 /* Maximum length of charset values w/nul */ # define IPP_MAX_KEYWORD 256 /* Maximum length of keyword values w/nul */ # define IPP_MAX_LANGUAGE 64 /* Maximum length of naturalLanguage values w/nul */ # define IPP_MAX_LENGTH 32767 /* Maximum size of any single value */ # define IPP_MAX_MIMETYPE 256 /* Maximum length of mimeMediaType values w/nul */ # define IPP_MAX_NAME 256 /* Maximum length of common name values w/nul */ # define IPP_MAX_OCTETSTRING 1023 /* Maximum length of octetString values w/o nul */ # define IPP_MAX_TEXT 1024 /* Maximum length of text values w/nul */ # define IPP_MAX_URI 1024 /* Maximum length of uri values w/nul */ # define IPP_MAX_URISCHEME 64 /* Maximum length of uriScheme values w/nul */ # define IPP_MAX_VALUES 8 /* Power-of-2 allocation increment */ /* * Macro to flag a text string attribute as "const" (static storage) vs. * allocated. */ # define IPP_CONST_TAG(x) (ipp_tag_t)(IPP_TAG_CUPS_CONST | (x)) /* * Types and structures... */ typedef enum ipp_dstate_e /**** Document states @exclude all@ ****/ { IPP_DSTATE_PENDING = 3, /* Document is pending */ IPP_DSTATE_PROCESSING = 5, /* Document is processing */ IPP_DSTATE_CANCELED = 7, /* Document is canceled */ IPP_DSTATE_ABORTED, /* Document is aborted */ IPP_DSTATE_COMPLETED /* Document is completed */ # ifndef _CUPS_NO_DEPRECATED # define IPP_DOCUMENT_PENDING IPP_DSTATE_PENDING # define IPP_DOCUMENT_PROCESSING IPP_DSTATE_PROCESSING # define IPP_DOCUMENT_CANCELED IPP_DSTATE_CANCELED # define IPP_DOCUMENT_ABORTED IPP_DSTATE_ABORTED # define IPP_DOCUMENT_COMPLETED IPP_DSTATE_COMPLETED # endif /* !_CUPS_NO_DEPRECATED */ } ipp_dstate_t; typedef enum ipp_finishings_e /**** Finishings values ****/ { IPP_FINISHINGS_NONE = 3, /* No finishing */ IPP_FINISHINGS_STAPLE, /* Staple (any location/method) */ IPP_FINISHINGS_PUNCH, /* Punch (any location/count) */ IPP_FINISHINGS_COVER, /* Add cover */ IPP_FINISHINGS_BIND, /* Bind */ IPP_FINISHINGS_SADDLE_STITCH, /* Staple interior */ IPP_FINISHINGS_EDGE_STITCH, /* Stitch along any side */ IPP_FINISHINGS_FOLD, /* Fold (any type) */ IPP_FINISHINGS_TRIM, /* Trim (any type) */ IPP_FINISHINGS_BALE, /* Bale (any type) */ IPP_FINISHINGS_BOOKLET_MAKER, /* Fold to make booklet */ IPP_FINISHINGS_JOG_OFFSET, /* Offset for binding (any type) */ IPP_FINISHINGS_COAT, /* Apply protective liquid or powder coating */ IPP_FINISHINGS_LAMINATE, /* Apply protective (solid) material */ IPP_FINISHINGS_STAPLE_TOP_LEFT = 20, /* Staple top left corner */ IPP_FINISHINGS_STAPLE_BOTTOM_LEFT, /* Staple bottom left corner */ IPP_FINISHINGS_STAPLE_TOP_RIGHT, /* Staple top right corner */ IPP_FINISHINGS_STAPLE_BOTTOM_RIGHT, /* Staple bottom right corner */ IPP_FINISHINGS_EDGE_STITCH_LEFT, /* Stitch along left side */ IPP_FINISHINGS_EDGE_STITCH_TOP, /* Stitch along top edge */ IPP_FINISHINGS_EDGE_STITCH_RIGHT, /* Stitch along right side */ IPP_FINISHINGS_EDGE_STITCH_BOTTOM, /* Stitch along bottom edge */ IPP_FINISHINGS_STAPLE_DUAL_LEFT, /* Two staples on left */ IPP_FINISHINGS_STAPLE_DUAL_TOP, /* Two staples on top */ IPP_FINISHINGS_STAPLE_DUAL_RIGHT, /* Two staples on right */ IPP_FINISHINGS_STAPLE_DUAL_BOTTOM, /* Two staples on bottom */ IPP_FINISHINGS_STAPLE_TRIPLE_LEFT, /* Three staples on left */ IPP_FINISHINGS_STAPLE_TRIPLE_TOP, /* Three staples on top */ IPP_FINISHINGS_STAPLE_TRIPLE_RIGHT, /* Three staples on right */ IPP_FINISHINGS_STAPLE_TRIPLE_BOTTOM, /* Three staples on bottom */ IPP_FINISHINGS_BIND_LEFT = 50, /* Bind on left */ IPP_FINISHINGS_BIND_TOP, /* Bind on top */ IPP_FINISHINGS_BIND_RIGHT, /* Bind on right */ IPP_FINISHINGS_BIND_BOTTOM, /* Bind on bottom */ IPP_FINISHINGS_TRIM_AFTER_PAGES = 60, /* Trim output after each page */ IPP_FINISHINGS_TRIM_AFTER_DOCUMENTS, /* Trim output after each document */ IPP_FINISHINGS_TRIM_AFTER_COPIES, /* Trim output after each copy */ IPP_FINISHINGS_TRIM_AFTER_JOB, /* Trim output after job */ IPP_FINISHINGS_PUNCH_TOP_LEFT = 70, /* Punch 1 hole top left */ IPP_FINISHINGS_PUNCH_BOTTOM_LEFT, /* Punch 1 hole bottom left */ IPP_FINISHINGS_PUNCH_TOP_RIGHT, /* Punch 1 hole top right */ IPP_FINISHINGS_PUNCH_BOTTOM_RIGHT, /* Punch 1 hole bottom right */ IPP_FINISHINGS_PUNCH_DUAL_LEFT, /* Punch 2 holes left side */ IPP_FINISHINGS_PUNCH_DUAL_TOP, /* Punch 2 holes top edge */ IPP_FINISHINGS_PUNCH_DUAL_RIGHT, /* Punch 2 holes right side */ IPP_FINISHINGS_PUNCH_DUAL_BOTTOM, /* Punch 2 holes bottom edge */ IPP_FINISHINGS_PUNCH_TRIPLE_LEFT, /* Punch 3 holes left side */ IPP_FINISHINGS_PUNCH_TRIPLE_TOP, /* Punch 3 holes top edge */ IPP_FINISHINGS_PUNCH_TRIPLE_RIGHT, /* Punch 3 holes right side */ IPP_FINISHINGS_PUNCH_TRIPLE_BOTTOM, /* Punch 3 holes bottom edge */ IPP_FINISHINGS_PUNCH_QUAD_LEFT, /* Punch 4 holes left side */ IPP_FINISHINGS_PUNCH_QUAD_TOP, /* Punch 4 holes top edge */ IPP_FINISHINGS_PUNCH_QUAD_RIGHT, /* Punch 4 holes right side */ IPP_FINISHINGS_PUNCH_QUAD_BOTTOM, /* Punch 4 holes bottom edge */ IPP_FINISHINGS_PUNCH_MULTIPLE_LEFT, /* Punch multiple holes left side */ IPP_FINISHINGS_PUNCH_MULTIPLE_TOP, /* Punch multiple holes top edge */ IPP_FINISHINGS_PUNCH_MULTIPLE_RIGHT, /* Punch multiple holes right side */ IPP_FINISHINGS_PUNCH_MULTIPLE_BOTTOM, /* Punch multiple holes bottom edge */ IPP_FINISHINGS_FOLD_ACCORDION = 90, /* Accordion-fold the paper vertically into four sections */ IPP_FINISHINGS_FOLD_DOUBLE_GATE, /* Fold the top and bottom quarters of the paper towards the midline, then fold in half vertically */ IPP_FINISHINGS_FOLD_GATE, /* Fold the top and bottom quarters of the paper towards the midline */ IPP_FINISHINGS_FOLD_HALF, /* Fold the paper in half vertically */ IPP_FINISHINGS_FOLD_HALF_Z, /* Fold the paper in half horizontally, then Z-fold the paper vertically */ IPP_FINISHINGS_FOLD_LEFT_GATE, /* Fold the top quarter of the paper towards the midline */ IPP_FINISHINGS_FOLD_LETTER, /* Fold the paper into three sections vertically; sometimes also known as a C fold*/ IPP_FINISHINGS_FOLD_PARALLEL, /* Fold the paper in half vertically two times, yielding four sections */ IPP_FINISHINGS_FOLD_POSTER, /* Fold the paper in half horizontally and vertically; sometimes also called a cross fold */ IPP_FINISHINGS_FOLD_RIGHT_GATE, /* Fold the bottom quarter of the paper towards the midline */ IPP_FINISHINGS_FOLD_Z, /* Fold the paper vertically into three sections, forming a Z */ IPP_FINISHINGS_FOLD_ENGINEERING_Z, /* Fold the paper vertically into two small sections and one larger, forming an elongated Z */ /* CUPS extensions for finishings (pre-standard versions of values above) */ IPP_FINISHINGS_CUPS_PUNCH_TOP_LEFT = 0x40000046, /* Punch 1 hole top left @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_LEFT,/* Punch 1 hole bottom left @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_TOP_RIGHT, /* Punch 1 hole top right @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_BOTTOM_RIGHT, /* Punch 1 hole bottom right @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_DUAL_LEFT, /* Punch 2 holes left side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_DUAL_TOP, /* Punch 2 holes top edge @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_DUAL_RIGHT, /* Punch 2 holes right side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_DUAL_BOTTOM,/* Punch 2 holes bottom edge @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_LEFT,/* Punch 3 holes left side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_TOP, /* Punch 3 holes top edge @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_RIGHT, /* Punch 3 holes right side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_TRIPLE_BOTTOM, /* Punch 3 holes bottom edge @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_QUAD_LEFT, /* Punch 4 holes left side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_QUAD_TOP, /* Punch 4 holes top edge @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_QUAD_RIGHT, /* Punch 4 holes right side @exclude all@ */ IPP_FINISHINGS_CUPS_PUNCH_QUAD_BOTTOM,/* Punch 4 holes bottom edge @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_ACCORDION = 0x4000005A, /* Accordion-fold the paper vertically into four sections @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_DOUBLE_GATE, /* Fold the top and bottom quarters of the paper towards the midline, then fold in half vertically @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_GATE, /* Fold the top and bottom quarters of the paper towards the midline @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_HALF, /* Fold the paper in half vertically @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_HALF_Z, /* Fold the paper in half horizontally, then Z-fold the paper vertically @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_LEFT_GATE, /* Fold the top quarter of the paper towards the midline @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_LETTER, /* Fold the paper into three sections vertically; sometimes also known as a C fold @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_PARALLEL, /* Fold the paper in half vertically two times, yielding four sections @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_POSTER, /* Fold the paper in half horizontally and vertically; sometimes also called a cross fold @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_RIGHT_GATE, /* Fold the bottom quarter of the paper towards the midline @exclude all@ */ IPP_FINISHINGS_CUPS_FOLD_Z /* Fold the paper vertically into three sections, forming a Z @exclude all@ */ } ipp_finishings_t; # ifndef _CUPS_NO_DEPRECATED # define IPP_FINISHINGS_CUPS_FOLD_ACCORDIAN IPP_FINISHINGS_CUPS_FOLD_ACCORDION # define IPP_FINISHINGS_FOLD_ACCORDIAN IPP_FINISHINGS_FOLD_ACCORDION # define IPP_FINISHINGS_JOB_OFFSET IPP_FINISHINGS_JOG_OFFSET /* Long-time misspellings... */ typedef enum ipp_finishings_e ipp_finish_t; # endif /* !_CUPS_NO_DEPRECATED */ typedef enum ipp_jcollate_e /**** Job collation types @deprecated@ @exclude all@ ****/ { IPP_JCOLLATE_UNCOLLATED_SHEETS = 3, IPP_JCOLLATE_COLLATED_DOCUMENTS, IPP_JCOLLATE_UNCOLLATED_DOCUMENTS # ifndef _CUPS_NO_DEPRECATED # define IPP_JOB_UNCOLLATED_SHEETS IPP_JCOLLATE_UNCOLLATED_SHEETS # define IPP_JOB_COLLATED_DOCUMENTS IPP_JCOLLATE_COLLATED_DOCUMENTS # define IPP_JOB_UNCOLLATED_DOCUMENTS IPP_JCOLLATE_UNCOLLATED_DOCUMENTS # endif /* !_CUPS_NO_DEPRECATED */ } ipp_jcollate_t; typedef enum ipp_jstate_e /**** Job states ****/ { IPP_JSTATE_PENDING = 3, /* Job is waiting to be printed */ IPP_JSTATE_HELD, /* Job is held for printing */ IPP_JSTATE_PROCESSING, /* Job is currently printing */ IPP_JSTATE_STOPPED, /* Job has been stopped */ IPP_JSTATE_CANCELED, /* Job has been canceled */ IPP_JSTATE_ABORTED, /* Job has aborted due to error */ IPP_JSTATE_COMPLETED /* Job has completed successfully */ # ifndef _CUPS_NO_DEPRECATED # define IPP_JOB_PENDING IPP_JSTATE_PENDING # define IPP_JOB_HELD IPP_JSTATE_HELD # define IPP_JOB_PROCESSING IPP_JSTATE_PROCESSING # define IPP_JOB_STOPPED IPP_JSTATE_STOPPED # define IPP_JOB_CANCELED IPP_JSTATE_CANCELED # define IPP_JOB_ABORTED IPP_JSTATE_ABORTED # define IPP_JOB_COMPLETED IPP_JSTATE_COMPLETED /* Legacy name for canceled state */ # define IPP_JOB_CANCELLED IPP_JSTATE_CANCELED # endif /* !_CUPS_NO_DEPRECATED */ } ipp_jstate_t; typedef enum ipp_op_e /**** IPP operations ****/ { IPP_OP_CUPS_INVALID = -1, /* Invalid operation name for @link ippOpValue@ */ IPP_OP_CUPS_NONE = 0, /* No operation @private@ */ IPP_OP_PRINT_JOB = 0x0002, /* Print-Job: Print a single file */ IPP_OP_PRINT_URI, /* Print-URI: Print a single URL @exclude all@ */ IPP_OP_VALIDATE_JOB, /* Validate-Job: Validate job values prior to submission */ IPP_OP_CREATE_JOB, /* Create-Job: Create an empty print job */ IPP_OP_SEND_DOCUMENT, /* Send-Document: Add a file to a job */ IPP_OP_SEND_URI, /* Send-URI: Add a URL to a job @exclude all@ */ IPP_OP_CANCEL_JOB, /* Cancel-Job: Cancel a job */ IPP_OP_GET_JOB_ATTRIBUTES, /* Get-Job-Attribute: Get information about a job */ IPP_OP_GET_JOBS, /* Get-Jobs: Get a list of jobs */ IPP_OP_GET_PRINTER_ATTRIBUTES, /* Get-Printer-Attributes: Get information about a printer */ IPP_OP_HOLD_JOB, /* Hold-Job: Hold a job for printing */ IPP_OP_RELEASE_JOB, /* Release-Job: Release a job for printing */ IPP_OP_RESTART_JOB, /* Restart-Job: Reprint a job @deprecated@ */ IPP_OP_PAUSE_PRINTER = 0x0010, /* Pause-Printer: Stop a printer */ IPP_OP_RESUME_PRINTER, /* Resume-Printer: Start a printer */ IPP_OP_PURGE_JOBS, /* Purge-Jobs: Delete all jobs @deprecated@ @exclude all@ */ IPP_OP_SET_PRINTER_ATTRIBUTES, /* Set-Printer-Attributes: Set printer values */ IPP_OP_SET_JOB_ATTRIBUTES, /* Set-Job-Attributes: Set job values */ IPP_OP_GET_PRINTER_SUPPORTED_VALUES, /* Get-Printer-Supported-Values: Get supported values */ IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, /* Create-Printer-Subscriptions: Create one or more printer subscriptions @since CUPS 1.2/macOS 10.5@ */ IPP_OP_CREATE_JOB_SUBSCRIPTIONS, /* Create-Job-Subscriptions: Create one of more job subscriptions @since CUPS 1.2/macOS 10.5@ */ IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES, /* Get-Subscription-Attributes: Get subscription information @since CUPS 1.2/macOS 10.5@ */ IPP_OP_GET_SUBSCRIPTIONS, /* Get-Subscriptions: Get list of subscriptions @since CUPS 1.2/macOS 10.5@ */ IPP_OP_RENEW_SUBSCRIPTION, /* Renew-Subscription: Renew a printer subscription @since CUPS 1.2/macOS 10.5@ */ IPP_OP_CANCEL_SUBSCRIPTION, /* Cancel-Subscription: Cancel a subscription @since CUPS 1.2/macOS 10.5@ */ IPP_OP_GET_NOTIFICATIONS, /* Get-Notifications: Get notification events @since CUPS 1.2/macOS 10.5@ */ IPP_OP_SEND_NOTIFICATIONS, /* Send-Notifications: Send notification events @private@ */ IPP_OP_GET_RESOURCE_ATTRIBUTES, /* Get-Resource-Attributes: Get resource information @private@ */ IPP_OP_GET_RESOURCE_DATA, /* Get-Resource-Data: Get resource data @private@ @deprecated@ */ IPP_OP_GET_RESOURCES, /* Get-Resources: Get list of resources @private@ */ IPP_OP_GET_PRINT_SUPPORT_FILES, /* Get-Printer-Support-Files: Get printer support files @private@ */ IPP_OP_ENABLE_PRINTER, /* Enable-Printer: Accept new jobs for a printer */ IPP_OP_DISABLE_PRINTER, /* Disable-Printer: Reject new jobs for a printer */ IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB, /* Pause-Printer-After-Current-Job: Stop printer after the current job */ IPP_OP_HOLD_NEW_JOBS, /* Hold-New-Jobs: Hold new jobs */ IPP_OP_RELEASE_HELD_NEW_JOBS, /* Release-Held-New-Jobs: Release new jobs that were previously held */ IPP_OP_DEACTIVATE_PRINTER, /* Deactivate-Printer: Stop a printer and do not accept jobs @deprecated@ @exclude all@ */ IPP_OP_ACTIVATE_PRINTER, /* Activate-Printer: Start a printer and accept jobs @deprecated@ @exclude all@ */ IPP_OP_RESTART_PRINTER, /* Restart-Printer: Restart a printer @exclude all@ */ IPP_OP_SHUTDOWN_PRINTER, /* Shutdown-Printer: Turn a printer off @exclude all@ */ IPP_OP_STARTUP_PRINTER, /* Startup-Printer: Turn a printer on @exclude all@ */ IPP_OP_REPROCESS_JOB, /* Reprocess-Job: Reprint a job @deprecated@ @exclude all@*/ IPP_OP_CANCEL_CURRENT_JOB, /* Cancel-Current-Job: Cancel the current job */ IPP_OP_SUSPEND_CURRENT_JOB, /* Suspend-Current-Job: Suspend the current job */ IPP_OP_RESUME_JOB, /* Resume-Job: Resume the current job */ IPP_OP_PROMOTE_JOB, /* Promote-Job: Promote a job to print sooner */ IPP_OP_SCHEDULE_JOB_AFTER, /* Schedule-Job-After: Schedule a job to print after another */ IPP_OP_CANCEL_DOCUMENT = 0x0033, /* Cancel-Document: Cancel a document @exclude all@ */ IPP_OP_GET_DOCUMENT_ATTRIBUTES, /* Get-Document-Attributes: Get document information @exclude all@ */ IPP_OP_GET_DOCUMENTS, /* Get-Documents: Get a list of documents in a job @exclude all@ */ IPP_OP_DELETE_DOCUMENT, /* Delete-Document: Delete a document @deprecated@ @exclude all@ */ IPP_OP_SET_DOCUMENT_ATTRIBUTES, /* Set-Document-Attributes: Set document values @exclude all@ */ IPP_OP_CANCEL_JOBS, /* Cancel-Jobs: Cancel all jobs (administrative) */ IPP_OP_CANCEL_MY_JOBS, /* Cancel-My-Jobs: Cancel a user's jobs */ IPP_OP_RESUBMIT_JOB, /* Resubmit-Job: Copy and reprint a job @exclude all@ */ IPP_OP_CLOSE_JOB, /* Close-Job: Close a job and start printing */ IPP_OP_IDENTIFY_PRINTER, /* Identify-Printer: Make the printer beep, flash, or display a message for identification */ IPP_OP_VALIDATE_DOCUMENT, /* Validate-Document: Validate document values prior to submission @exclude all@ */ IPP_OP_ADD_DOCUMENT_IMAGES, /* Add-Document-Images: Add image(s) from the specified scanner source @exclude all@ */ IPP_OP_ACKNOWLEDGE_DOCUMENT, /* Acknowledge-Document: Acknowledge processing of a document @exclude all@ */ IPP_OP_ACKNOWLEDGE_IDENTIFY_PRINTER, /* Acknowledge-Identify-Printer: Acknowledge action on an Identify-Printer request @exclude all@ */ IPP_OP_ACKNOWLEDGE_JOB, /* Acknowledge-Job: Acknowledge processing of a job @exclude all@ */ IPP_OP_FETCH_DOCUMENT, /* Fetch-Document: Fetch a document for processing @exclude all@ */ IPP_OP_FETCH_JOB, /* Fetch-Job: Fetch a job for processing @exclude all@ */ IPP_OP_GET_OUTPUT_DEVICE_ATTRIBUTES, /* Get-Output-Device-Attributes: Get printer information for a specific output device @exclude all@ */ IPP_OP_UPDATE_ACTIVE_JOBS, /* Update-Active-Jobs: Update the list of active jobs that a proxy has processed @exclude all@ */ IPP_OP_DEREGISTER_OUTPUT_DEVICE, /* Deregister-Output-Device: Remove an output device @exclude all@ */ IPP_OP_UPDATE_DOCUMENT_STATUS, /* Update-Document-Status: Update document values @exclude all@ */ IPP_OP_UPDATE_JOB_STATUS, /* Update-Job-Status: Update job values @exclude all@ */ IPP_OP_UPDATE_OUTPUT_DEVICE_ATTRIBUTES, /* Update-Output-Device-Attributes: Update output device values @exclude all@ */ IPP_OP_GET_NEXT_DOCUMENT_DATA, /* Get-Next-Document-Data: Scan more document data @exclude all@ */ IPP_OP_ALLOCATE_PRINTER_RESOURCES, /* Allocate-Printer-Resources: Use resources for a printer. */ IPP_OP_CREATE_PRINTER, /* Create-Printer: Create a new service. */ IPP_OP_DEALLOCATE_PRINTER_RESOURCES, /* Deallocate-Printer-Resources: Stop using resources for a printer. */ IPP_OP_DELETE_PRINTER, /* Delete-Printer: Delete an existing service. */ IPP_OP_GET_PRINTERS, /* Get-Printers: Get a list of services. */ IPP_OP_SHUTDOWN_ONE_PRINTER, /* Shutdown-One-Printer: Shutdown a service. */ IPP_OP_STARTUP_ONE_PRINTER, /* Startup-One-Printer: Start a service. */ IPP_OP_CANCEL_RESOURCE, /* Cancel-Resource: Uninstall a resource. */ IPP_OP_CREATE_RESOURCE, /* Create-Resource: Create a new (empty) resource. */ IPP_OP_INSTALL_RESOURCE, /* Install-Resource: Install a resource. */ IPP_OP_SEND_RESOURCE_DATA, /* Send-Resource-Data: Upload the data for a resource. */ IPP_OP_SET_RESOURCE_ATTRIBUTES, /* Set-Resource-Attributes: Set resource object attributes. */ IPP_OP_CREATE_RESOURCE_SUBSCRIPTIONS, /* Create-Resource-Subscriptions: Create event subscriptions for a resource. */ IPP_OP_CREATE_SYSTEM_SUBSCRIPTIONS, /* Create-System-Subscriptions: Create event subscriptions for a system. */ IPP_OP_DISABLE_ALL_PRINTERS, /* Disable-All-Printers: Stop accepting new jobs on all services. */ IPP_OP_ENABLE_ALL_PRINTERS, /* Enable-All-Printers: Start accepting new jobs on all services. */ IPP_OP_GET_SYSTEM_ATTRIBUTES, /* Get-System-Attributes: Get system object attributes. */ IPP_OP_GET_SYSTEM_SUPPORTED_VALUES, /* Get-System-Supported-Values: Get supported values for system object attributes. */ IPP_OP_PAUSE_ALL_PRINTERS, /* Pause-All-Printers: Stop all services immediately. */ IPP_OP_PAUSE_ALL_PRINTERS_AFTER_CURRENT_JOB, /* Pause-All-Printers-After-Current-Job: Stop all services after processing the current jobs. */ IPP_OP_REGISTER_OUTPUT_DEVICE, /* Register-Output-Device: Register a remote service. */ IPP_OP_RESTART_SYSTEM, /* Restart-System: Restart all services. */ IPP_OP_RESUME_ALL_PRINTERS, /* Resume-All-Printers: Start job processing on all services. */ IPP_OP_SET_SYSTEM_ATTRIBUTES, /* Set-System-Attributes: Set system object attributes. */ IPP_OP_SHUTDOWN_ALL_PRINTERS, /* Shutdown-All-Printers: Shutdown all services. */ IPP_OP_STARTUP_ALL_PRINTERS, /* Startup-All-Printers: Startup all services. */ IPP_OP_PRIVATE = 0x4000, /* Reserved @private@ */ IPP_OP_CUPS_GET_DEFAULT, /* CUPS-Get-Default: Get the default printer */ IPP_OP_CUPS_GET_PRINTERS, /* CUPS-Get-Printers: Get a list of printers and/or classes */ IPP_OP_CUPS_ADD_MODIFY_PRINTER, /* CUPS-Add-Modify-Printer: Add or modify a printer */ IPP_OP_CUPS_DELETE_PRINTER, /* CUPS-Delete-Printer: Delete a printer */ IPP_OP_CUPS_GET_CLASSES, /* CUPS-Get-Classes: Get a list of classes @deprecated@ @exclude all@ */ IPP_OP_CUPS_ADD_MODIFY_CLASS, /* CUPS-Add-Modify-Class: Add or modify a class */ IPP_OP_CUPS_DELETE_CLASS, /* CUPS-Delete-Class: Delete a class */ IPP_OP_CUPS_ACCEPT_JOBS, /* CUPS-Accept-Jobs: Accept new jobs on a printer @exclude all@ */ IPP_OP_CUPS_REJECT_JOBS, /* CUPS-Reject-Jobs: Reject new jobs on a printer @exclude all@ */ IPP_OP_CUPS_SET_DEFAULT, /* CUPS-Set-Default: Set the default printer */ IPP_OP_CUPS_GET_DEVICES, /* CUPS-Get-Devices: Get a list of supported devices @deprecated@ */ IPP_OP_CUPS_GET_PPDS, /* CUPS-Get-PPDs: Get a list of supported drivers @deprecated@ */ IPP_OP_CUPS_MOVE_JOB, /* CUPS-Move-Job: Move a job to a different printer */ IPP_OP_CUPS_AUTHENTICATE_JOB, /* CUPS-Authenticate-Job: Authenticate a job @since CUPS 1.2/macOS 10.5@ */ IPP_OP_CUPS_GET_PPD, /* CUPS-Get-PPD: Get a PPD file @deprecated@ */ IPP_OP_CUPS_GET_DOCUMENT = 0x4027, /* CUPS-Get-Document: Get a document file @since CUPS 1.4/macOS 10.6@ */ IPP_OP_CUPS_CREATE_LOCAL_PRINTER /* CUPS-Create-Local-Printer: Create a local (temporary) printer @since CUPS 2.2@ */ # ifndef _CUPS_NO_DEPRECATED # define IPP_PRINT_JOB IPP_OP_PRINT_JOB # define IPP_PRINT_URI IPP_OP_PRINT_URI # define IPP_VALIDATE_JOB IPP_OP_VALIDATE_JOB # define IPP_CREATE_JOB IPP_OP_CREATE_JOB # define IPP_SEND_DOCUMENT IPP_OP_SEND_DOCUMENT # define IPP_SEND_URI IPP_OP_SEND_URI # define IPP_CANCEL_JOB IPP_OP_CANCEL_JOB # define IPP_GET_JOB_ATTRIBUTES IPP_OP_GET_JOB_ATTRIBUTES # define IPP_GET_JOBS IPP_OP_GET_JOBS # define IPP_GET_PRINTER_ATTRIBUTES IPP_OP_GET_PRINTER_ATTRIBUTES # define IPP_HOLD_JOB IPP_OP_HOLD_JOB # define IPP_RELEASE_JOB IPP_OP_RELEASE_JOB # define IPP_RESTART_JOB IPP_OP_RESTART_JOB # define IPP_PAUSE_PRINTER IPP_OP_PAUSE_PRINTER # define IPP_RESUME_PRINTER IPP_OP_RESUME_PRINTER # define IPP_PURGE_JOBS IPP_OP_PURGE_JOBS # define IPP_SET_PRINTER_ATTRIBUTES IPP_OP_SET_PRINTER_ATTRIBUTES # define IPP_SET_JOB_ATTRIBUTES IPP_OP_SET_JOB_ATTRIBUTES # define IPP_GET_PRINTER_SUPPORTED_VALUES IPP_OP_GET_PRINTER_SUPPORTED_VALUES # define IPP_CREATE_PRINTER_SUBSCRIPTION IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS # define IPP_CREATE_JOB_SUBSCRIPTION IPP_OP_CREATE_JOB_SUBSCRIPTIONS # define IPP_OP_CREATE_PRINTER_SUBSCRIPTION IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS # define IPP_OP_CREATE_JOB_SUBSCRIPTION IPP_OP_CREATE_JOB_SUBSCRIPTIONS # define IPP_GET_SUBSCRIPTION_ATTRIBUTES IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES # define IPP_GET_SUBSCRIPTIONS IPP_OP_GET_SUBSCRIPTIONS # define IPP_RENEW_SUBSCRIPTION IPP_OP_RENEW_SUBSCRIPTION # define IPP_CANCEL_SUBSCRIPTION IPP_OP_CANCEL_SUBSCRIPTION # define IPP_GET_NOTIFICATIONS IPP_OP_GET_NOTIFICATIONS # define IPP_SEND_NOTIFICATIONS IPP_OP_SEND_NOTIFICATIONS # define IPP_GET_RESOURCE_ATTRIBUTES IPP_OP_GET_RESOURCE_ATTRIBUTES # define IPP_GET_RESOURCE_DATA IPP_OP_GET_RESOURCE_DATA # define IPP_GET_RESOURCES IPP_OP_GET_RESOURCES # define IPP_GET_PRINT_SUPPORT_FILES IPP_OP_GET_PRINT_SUPPORT_FILES # define IPP_ENABLE_PRINTER IPP_OP_ENABLE_PRINTER # define IPP_DISABLE_PRINTER IPP_OP_DISABLE_PRINTER # define IPP_PAUSE_PRINTER_AFTER_CURRENT_JOB IPP_OP_PAUSE_PRINTER_AFTER_CURRENT_JOB # define IPP_HOLD_NEW_JOBS IPP_OP_HOLD_NEW_JOBS # define IPP_RELEASE_HELD_NEW_JOBS IPP_OP_RELEASE_HELD_NEW_JOBS # define IPP_DEACTIVATE_PRINTER IPP_OP_DEACTIVATE_PRINTER # define IPP_ACTIVATE_PRINTER IPP_OP_ACTIVATE_PRINTER # define IPP_RESTART_PRINTER IPP_OP_RESTART_PRINTER # define IPP_SHUTDOWN_PRINTER IPP_OP_SHUTDOWN_PRINTER # define IPP_STARTUP_PRINTER IPP_OP_STARTUP_PRINTER # define IPP_REPROCESS_JOB IPP_OP_REPROCESS_JOB # define IPP_CANCEL_CURRENT_JOB IPP_OP_CANCEL_CURRENT_JOB # define IPP_SUSPEND_CURRENT_JOB IPP_OP_SUSPEND_CURRENT_JOB # define IPP_RESUME_JOB IPP_OP_RESUME_JOB # define IPP_PROMOTE_JOB IPP_OP_PROMOTE_JOB # define IPP_SCHEDULE_JOB_AFTER IPP_OP_SCHEDULE_JOB_AFTER # define IPP_CANCEL_DOCUMENT IPP_OP_CANCEL_DOCUMENT # define IPP_GET_DOCUMENT_ATTRIBUTES IPP_OP_GET_DOCUMENT_ATTRIBUTES # define IPP_GET_DOCUMENTS IPP_OP_GET_DOCUMENTS # define IPP_DELETE_DOCUMENT IPP_OP_DELETE_DOCUMENT # define IPP_SET_DOCUMENT_ATTRIBUTES IPP_OP_SET_DOCUMENT_ATTRIBUTES # define IPP_CANCEL_JOBS IPP_OP_CANCEL_JOBS # define IPP_CANCEL_MY_JOBS IPP_OP_CANCEL_MY_JOBS # define IPP_RESUBMIT_JOB IPP_OP_RESUBMIT_JOB # define IPP_CLOSE_JOB IPP_OP_CLOSE_JOB # define IPP_IDENTIFY_PRINTER IPP_OP_IDENTIFY_PRINTER # define IPP_VALIDATE_DOCUMENT IPP_OP_VALIDATE_DOCUMENT # define IPP_OP_SEND_HARDCOPY_DOCUMENT IPP_OP_ADD_DOCUMENT_IMAGES # define IPP_PRIVATE IPP_OP_PRIVATE # define CUPS_GET_DEFAULT IPP_OP_CUPS_GET_DEFAULT # define CUPS_GET_PRINTERS IPP_OP_CUPS_GET_PRINTERS # define CUPS_ADD_MODIFY_PRINTER IPP_OP_CUPS_ADD_MODIFY_PRINTER # define CUPS_DELETE_PRINTER IPP_OP_CUPS_DELETE_PRINTER # define CUPS_GET_CLASSES IPP_OP_CUPS_GET_CLASSES # define CUPS_ADD_MODIFY_CLASS IPP_OP_CUPS_ADD_MODIFY_CLASS # define CUPS_DELETE_CLASS IPP_OP_CUPS_DELETE_CLASS # define CUPS_ACCEPT_JOBS IPP_OP_CUPS_ACCEPT_JOBS # define CUPS_REJECT_JOBS IPP_OP_CUPS_REJECT_JOBS # define CUPS_SET_DEFAULT IPP_OP_CUPS_SET_DEFAULT # define CUPS_GET_DEVICES IPP_OP_CUPS_GET_DEVICES # define CUPS_GET_PPDS IPP_OP_CUPS_GET_PPDS # define CUPS_MOVE_JOB IPP_OP_CUPS_MOVE_JOB # define CUPS_AUTHENTICATE_JOB IPP_OP_CUPS_AUTHENTICATE_JOB # define CUPS_GET_PPD IPP_OP_CUPS_GET_PPD # define CUPS_GET_DOCUMENT IPP_OP_CUPS_GET_DOCUMENT /* Legacy names */ # define CUPS_ADD_PRINTER IPP_OP_CUPS_ADD_MODIFY_PRINTER # define CUPS_ADD_CLASS IPP_OP_CUPS_ADD_MODIFY_CLASS # endif /* !_CUPS_NO_DEPRECATED */ } ipp_op_t; typedef enum ipp_orient_e /**** Orientation values ****/ { IPP_ORIENT_PORTRAIT = 3, /* No rotation */ IPP_ORIENT_LANDSCAPE, /* 90 degrees counter-clockwise */ IPP_ORIENT_REVERSE_LANDSCAPE, /* 90 degrees clockwise */ IPP_ORIENT_REVERSE_PORTRAIT, /* 180 degrees */ IPP_ORIENT_NONE /* No rotation */ # ifndef _CUPS_NO_DEPRECATED # define IPP_PORTRAIT IPP_ORIENT_PORTRAIT # define IPP_LANDSCAPE IPP_ORIENT_LANDSCAPE # define IPP_REVERSE_LANDSCAPE IPP_ORIENT_REVERSE_LANDSCAPE # define IPP_REVERSE_PORTRAIT IPP_ORIENT_REVERSE_PORTRAIT # endif /* !_CUPS_NO_DEPRECATED */ } ipp_orient_t; typedef enum ipp_pstate_e /**** Printer state values ****/ { IPP_PSTATE_IDLE = 3, /* Printer is idle */ IPP_PSTATE_PROCESSING, /* Printer is working */ IPP_PSTATE_STOPPED /* Printer is stopped */ # ifndef _CUPS_NO_DEPRECATED # define IPP_PRINTER_IDLE IPP_PSTATE_IDLE # define IPP_PRINTER_PROCESSING IPP_PSTATE_PROCESSING # define IPP_PRINTER_STOPPED IPP_PSTATE_STOPPED # endif /* _CUPS_NO_DEPRECATED */ } ipp_pstate_t; typedef enum ipp_quality_e /**** Print quality values ****/ { IPP_QUALITY_DRAFT = 3, /* Draft quality */ IPP_QUALITY_NORMAL, /* Normal quality */ IPP_QUALITY_HIGH /* High quality */ } ipp_quality_t; typedef enum ipp_res_e /**** Resolution units ****/ { IPP_RES_PER_INCH = 3, /* Pixels per inch */ IPP_RES_PER_CM /* Pixels per centimeter */ } ipp_res_t; typedef enum ipp_rstate_e /**** resource-state values ****/ { IPP_RSTATE_PENDING = 3, /* Resource is created but has no data yet. */ IPP_RSTATE_AVAILABLE, /* Resource is available for installation. */ IPP_RSTATE_INSTALLED, /* Resource is installed. */ IPP_RSTATE_CANCELED, /* Resource has been canceled and is pending deletion. */ IPP_RSTATE_ABORTED /* Resource has been aborted and is pending deletion. */ } ipp_rstate_t; typedef enum ipp_sstate_e /**** system-state values ****/ { IPP_SSTATE_IDLE = 3, /* At least one printer is idle and none are processing a job. */ IPP_SSTATE_PROCESSING, /* At least one printer is processing a job. */ IPP_SSTATE_STOPPED /* All printers are stopped. */ } ipp_sstate_t; typedef enum ipp_state_e /**** ipp_t state values ****/ { IPP_STATE_ERROR = -1, /* An error occurred */ IPP_STATE_IDLE, /* Nothing is happening/request completed */ IPP_STATE_HEADER, /* The request header needs to be sent/received */ IPP_STATE_ATTRIBUTE, /* One or more attributes need to be sent/received */ IPP_STATE_DATA /* IPP request data needs to be sent/received */ # ifndef _CUPS_NO_DEPRECATED # define IPP_ERROR IPP_STATE_ERROR # define IPP_IDLE IPP_STATE_IDLE # define IPP_HEADER IPP_STATE_HEADER # define IPP_ATTRIBUTE IPP_STATE_ATTRIBUTE # define IPP_DATA IPP_STATE_DATA # endif /* !_CUPS_NO_DEPRECATED */ } ipp_state_t; typedef enum ipp_status_e /**** IPP status code values ****/ { IPP_STATUS_CUPS_INVALID = -1, /* Invalid status name for @link ippErrorValue@ */ IPP_STATUS_OK = 0x0000, /* successful-ok */ IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED, /* successful-ok-ignored-or-substituted-attributes */ IPP_STATUS_OK_CONFLICTING, /* successful-ok-conflicting-attributes */ IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS, /* successful-ok-ignored-subscriptions */ IPP_STATUS_OK_IGNORED_NOTIFICATIONS, /* successful-ok-ignored-notifications @private@ */ IPP_STATUS_OK_TOO_MANY_EVENTS, /* successful-ok-too-many-events */ IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION,/* successful-ok-but-cancel-subscription @private@ */ IPP_STATUS_OK_EVENTS_COMPLETE, /* successful-ok-events-complete */ IPP_STATUS_REDIRECTION_OTHER_SITE = 0x0200, /* redirection-other-site @private@ */ IPP_STATUS_CUPS_SEE_OTHER = 0x0280, /* cups-see-other @private@ */ IPP_STATUS_ERROR_BAD_REQUEST = 0x0400,/* client-error-bad-request */ IPP_STATUS_ERROR_FORBIDDEN, /* client-error-forbidden */ IPP_STATUS_ERROR_NOT_AUTHENTICATED, /* client-error-not-authenticated */ IPP_STATUS_ERROR_NOT_AUTHORIZED, /* client-error-not-authorized */ IPP_STATUS_ERROR_NOT_POSSIBLE, /* client-error-not-possible */ IPP_STATUS_ERROR_TIMEOUT, /* client-error-timeout */ IPP_STATUS_ERROR_NOT_FOUND, /* client-error-not-found */ IPP_STATUS_ERROR_GONE, /* client-error-gone */ IPP_STATUS_ERROR_REQUEST_ENTITY, /* client-error-request-entity-too-large */ IPP_STATUS_ERROR_REQUEST_VALUE, /* client-error-request-value-too-long */ IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED, /* client-error-document-format-not-supported */ IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES,/* client-error-attributes-or-values-not-supported */ IPP_STATUS_ERROR_URI_SCHEME, /* client-error-uri-scheme-not-supported */ IPP_STATUS_ERROR_CHARSET, /* client-error-charset-not-supported */ IPP_STATUS_ERROR_CONFLICTING, /* client-error-conflicting-attributes */ IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED, /* client-error-compression-not-supported */ IPP_STATUS_ERROR_COMPRESSION_ERROR, /* client-error-compression-error */ IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR, /* client-error-document-format-error */ IPP_STATUS_ERROR_DOCUMENT_ACCESS, /* client-error-document-access-error */ IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE, /* client-error-attributes-not-settable */ IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS, /* client-error-ignored-all-subscriptions */ IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS, /* client-error-too-many-subscriptions */ IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS, /* client-error-ignored-all-notifications @private@ */ IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND, /* client-error-print-support-file-not-found @private@ */ IPP_STATUS_ERROR_DOCUMENT_PASSWORD, /* client-error-document-password-error */ IPP_STATUS_ERROR_DOCUMENT_PERMISSION, /* client-error-document-permission-error */ IPP_STATUS_ERROR_DOCUMENT_SECURITY, /* client-error-document-security-error */ IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE,/* client-error-document-unprintable-error */ IPP_STATUS_ERROR_ACCOUNT_INFO_NEEDED, /* client-error-account-info-needed */ IPP_STATUS_ERROR_ACCOUNT_CLOSED, /* client-error-account-closed */ IPP_STATUS_ERROR_ACCOUNT_LIMIT_REACHED, /* client-error-account-limit-reached */ IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED, /* client-error-account-authorization-failed */ IPP_STATUS_ERROR_NOT_FETCHABLE, /* client-error-not-fetchable */ /* Legacy status codes for paid printing */ IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED = 0x049C, /* cups-error-account-info-needed @deprecated@ */ IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED, /* cups-error-account-closed @deprecate@ */ IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED, /* cups-error-account-limit-reached @deprecated@ */ IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED, /* cups-error-account-authorization-failed @deprecated@ */ IPP_STATUS_ERROR_INTERNAL = 0x0500, /* server-error-internal-error */ IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED, /* server-error-operation-not-supported */ IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, /* server-error-service-unavailable */ IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED, /* server-error-version-not-supported */ IPP_STATUS_ERROR_DEVICE, /* server-error-device-error */ IPP_STATUS_ERROR_TEMPORARY, /* server-error-temporary-error */ IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS, /* server-error-not-accepting-jobs */ IPP_STATUS_ERROR_BUSY, /* server-error-busy */ IPP_STATUS_ERROR_JOB_CANCELED, /* server-error-job-canceled */ IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED, /* server-error-multiple-document-jobs-not-supported */ IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED, /* server-error-printer-is-deactivated */ IPP_STATUS_ERROR_TOO_MANY_JOBS, /* server-error-too-many-jobs */ IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS, /* server-error-too-many-documents */ /* These are internal and never sent over the wire... */ IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED = 0x1000, /* cups-authentication-canceled - Authentication canceled by user @since CUPS 1.5/macOS 10.7@ */ IPP_STATUS_ERROR_CUPS_PKI, /* cups-pki-error - Error negotiating a secure connection @since CUPS 1.5/macOS 10.7@ */ IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED/* cups-upgrade-required - TLS upgrade required @since CUPS 1.5/macOS 10.7@ */ # ifndef _CUPS_NO_DEPRECATED # define IPP_OK IPP_STATUS_OK # define IPP_OK_SUBST IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED # define IPP_OK_CONFLICT IPP_STATUS_OK_CONFLICTING # define IPP_OK_IGNORED_SUBSCRIPTIONS IPP_STATUS_OK_IGNORED_SUBSCRIPTIONS # define IPP_OK_IGNORED_NOTIFICATIONS IPP_STATUS_OK_IGNORED_NOTIFICATIONS # define IPP_OK_TOO_MANY_EVENTS IPP_STATUS_OK_TOO_MANY_EVENTS # define IPP_OK_BUT_CANCEL_SUBSCRIPTION IPP_STATUS_OK_BUT_CANCEL_SUBSCRIPTION # define IPP_OK_EVENTS_COMPLETE IPP_STATUS_OK_EVENTS_COMPLETE # define IPP_REDIRECTION_OTHER_SITE IPP_STATUS_REDIRECTION_OTHER_SITE # define CUPS_SEE_OTHER IPP_STATUS_CUPS_SEE_OTHER # define IPP_BAD_REQUEST IPP_STATUS_ERROR_BAD_REQUEST # define IPP_FORBIDDEN IPP_STATUS_ERROR_FORBIDDEN # define IPP_NOT_AUTHENTICATED IPP_STATUS_ERROR_NOT_AUTHENTICATED # define IPP_NOT_AUTHORIZED IPP_STATUS_ERROR_NOT_AUTHORIZED # define IPP_NOT_POSSIBLE IPP_STATUS_ERROR_NOT_POSSIBLE # define IPP_TIMEOUT IPP_STATUS_ERROR_TIMEOUT # define IPP_NOT_FOUND IPP_STATUS_ERROR_NOT_FOUND # define IPP_GONE IPP_STATUS_ERROR_GONE # define IPP_REQUEST_ENTITY IPP_STATUS_ERROR_REQUEST_ENTITY # define IPP_REQUEST_VALUE IPP_STATUS_ERROR_REQUEST_VALUE # define IPP_DOCUMENT_FORMAT IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED # define IPP_ATTRIBUTES IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES # define IPP_URI_SCHEME IPP_STATUS_ERROR_URI_SCHEME # define IPP_CHARSET IPP_STATUS_ERROR_CHARSET # define IPP_CONFLICT IPP_STATUS_ERROR_CONFLICTING # define IPP_COMPRESSION_NOT_SUPPORTED IPP_STATUS_ERROR_COMPRESSION_NOT_SUPPORTED # define IPP_COMPRESSION_ERROR IPP_STATUS_ERROR_COMPRESSION_ERROR # define IPP_DOCUMENT_FORMAT_ERROR IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR # define IPP_DOCUMENT_ACCESS_ERROR IPP_STATUS_ERROR_DOCUMENT_ACCESS # define IPP_ATTRIBUTES_NOT_SETTABLE IPP_STATUS_ERROR_ATTRIBUTES_NOT_SETTABLE # define IPP_IGNORED_ALL_SUBSCRIPTIONS IPP_STATUS_ERROR_IGNORED_ALL_SUBSCRIPTIONS # define IPP_TOO_MANY_SUBSCRIPTIONS IPP_STATUS_ERROR_TOO_MANY_SUBSCRIPTIONS # define IPP_IGNORED_ALL_NOTIFICATIONS IPP_STATUS_ERROR_IGNORED_ALL_NOTIFICATIONS # define IPP_PRINT_SUPPORT_FILE_NOT_FOUND IPP_STATUS_ERROR_PRINT_SUPPORT_FILE_NOT_FOUND # define IPP_DOCUMENT_PASSWORD_ERROR IPP_STATUS_ERROR_DOCUMENT_PASSWORD # define IPP_DOCUMENT_PERMISSION_ERROR IPP_STATUS_ERROR_DOCUMENT_PERMISSION # define IPP_DOCUMENT_SECURITY_ERROR IPP_STATUS_ERROR_DOCUMENT_SECURITY # define IPP_DOCUMENT_UNPRINTABLE_ERROR IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE # define IPP_INTERNAL_ERROR IPP_STATUS_ERROR_INTERNAL # define IPP_OPERATION_NOT_SUPPORTED IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED # define IPP_SERVICE_UNAVAILABLE IPP_STATUS_ERROR_SERVICE_UNAVAILABLE # define IPP_VERSION_NOT_SUPPORTED IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED # define IPP_DEVICE_ERROR IPP_STATUS_ERROR_DEVICE # define IPP_TEMPORARY_ERROR IPP_STATUS_ERROR_TEMPORARY # define IPP_NOT_ACCEPTING IPP_STATUS_ERROR_NOT_ACCEPTING_JOBS # define IPP_PRINTER_BUSY IPP_STATUS_ERROR_BUSY # define IPP_ERROR_JOB_CANCELED IPP_STATUS_ERROR_JOB_CANCELED # define IPP_MULTIPLE_JOBS_NOT_SUPPORTED IPP_STATUS_ERROR_MULTIPLE_JOBS_NOT_SUPPORTED # define IPP_PRINTER_IS_DEACTIVATED IPP_STATUS_ERROR_PRINTER_IS_DEACTIVATED # define IPP_TOO_MANY_JOBS IPP_STATUS_ERROR_TOO_MANY_JOBS # define IPP_TOO_MANY_DOCUMENTS IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS # define IPP_AUTHENTICATION_CANCELED IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED # define IPP_PKI_ERROR IPP_STATUS_ERROR_CUPS_PKI # define IPP_UPGRADE_REQUIRED IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED /* Legacy name for canceled status */ # define IPP_ERROR_JOB_CANCELLED IPP_STATUS_ERROR_JOB_CANCELED # endif /* _CUPS_NO_DEPRECATED */ } ipp_status_t; typedef enum ipp_tag_e /**** Value and group tag values for attributes ****/ { IPP_TAG_CUPS_INVALID = -1, /* Invalid tag name for @link ippTagValue@ */ IPP_TAG_ZERO = 0x00, /* Zero tag - used for separators */ IPP_TAG_OPERATION, /* Operation group */ IPP_TAG_JOB, /* Job group */ IPP_TAG_END, /* End-of-attributes */ IPP_TAG_PRINTER, /* Printer group */ IPP_TAG_UNSUPPORTED_GROUP, /* Unsupported attributes group */ IPP_TAG_SUBSCRIPTION, /* Subscription group */ IPP_TAG_EVENT_NOTIFICATION, /* Event group */ IPP_TAG_RESOURCE, /* Resource group */ IPP_TAG_DOCUMENT, /* Document group */ IPP_TAG_SYSTEM, /* System group */ IPP_TAG_UNSUPPORTED_VALUE = 0x10, /* Unsupported value */ IPP_TAG_DEFAULT, /* Default value */ IPP_TAG_UNKNOWN, /* Unknown value */ IPP_TAG_NOVALUE, /* No-value value */ IPP_TAG_NOTSETTABLE = 0x15, /* Not-settable value */ IPP_TAG_DELETEATTR, /* Delete-attribute value */ IPP_TAG_ADMINDEFINE, /* Admin-defined value */ IPP_TAG_INTEGER = 0x21, /* Integer value */ IPP_TAG_BOOLEAN, /* Boolean value */ IPP_TAG_ENUM, /* Enumeration value */ IPP_TAG_STRING = 0x30, /* Octet string value */ IPP_TAG_DATE, /* Date/time value */ IPP_TAG_RESOLUTION, /* Resolution value */ IPP_TAG_RANGE, /* Range value */ IPP_TAG_BEGIN_COLLECTION, /* Beginning of collection value @exclude all@ */ IPP_TAG_TEXTLANG, /* Text-with-language value */ IPP_TAG_NAMELANG, /* Name-with-language value */ IPP_TAG_END_COLLECTION, /* End of collection value @exclude all@ */ IPP_TAG_TEXT = 0x41, /* Text value */ IPP_TAG_NAME, /* Name value */ IPP_TAG_RESERVED_STRING, /* Reserved for future string value @private@ */ IPP_TAG_KEYWORD, /* Keyword value */ IPP_TAG_URI, /* URI value */ IPP_TAG_URISCHEME, /* URI scheme value */ IPP_TAG_CHARSET, /* Character set value */ IPP_TAG_LANGUAGE, /* Language value */ IPP_TAG_MIMETYPE, /* MIME media type value */ IPP_TAG_MEMBERNAME, /* Collection member name value @exclude all@ */ IPP_TAG_EXTENSION = 0x7f, /* Extension point for 32-bit tags @exclude all@ */ IPP_TAG_CUPS_MASK = 0x7fffffff, /* Mask for copied attribute values @private@ */ /* The following expression is used to avoid compiler warnings with +/-0x80000000 */ IPP_TAG_CUPS_CONST = -0x7fffffff-1 /* Bitflag for copied/const attribute values @private@ */ # ifndef _CUPS_NO_DEPRECATED # define IPP_TAG_MASK IPP_TAG_CUPS_MASK # define IPP_TAG_COPY IPP_TAG_CUPS_CONST # endif /* !_CUPS_NO_DEPRECATED */ } ipp_tag_t; typedef unsigned char ipp_uchar_t; /**** Unsigned 8-bit integer/character @exclude all@ ****/ typedef struct _ipp_s ipp_t; /**** IPP request/response data ****/ typedef struct _ipp_attribute_s ipp_attribute_t; /**** IPP attribute ****/ /**** New in CUPS 1.2/macOS 10.5 ****/ typedef ssize_t (*ipp_iocb_t)(void *context, ipp_uchar_t *buffer, size_t bytes); /**** ippReadIO/ippWriteIO callback function @since CUPS 1.2/macOS 10.5@ ****/ /**** New in CUPS 1.6/macOS 10.8 ****/ typedef int (*ipp_copycb_t)(void *context, ipp_t *dst, ipp_attribute_t *attr); /**** ippCopyAttributes callback function @since CUPS 1.6/macOS 10.8 ****/ /* * Prototypes... */ extern ipp_attribute_t *ippAddBoolean(ipp_t *ipp, ipp_tag_t group, const char *name, char value) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddBooleans(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const char *values) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddDate(ipp_t *ipp, ipp_tag_t group, const char *name, const ipp_uchar_t *value) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddInteger(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int value) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddIntegers(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int num_values, const int *values) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddRange(ipp_t *ipp, ipp_tag_t group, const char *name, int lower, int upper) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddRanges(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const int *lower, const int *upper) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddResolution(ipp_t *ipp, ipp_tag_t group, const char *name, ipp_res_t units, int xres, int yres) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddResolutions(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, ipp_res_t units, const int *xres, const int *yres) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddSeparator(ipp_t *ipp) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddString(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *value) _CUPS_PUBLIC; extern ipp_attribute_t *ippAddStrings(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, int num_values, const char *language, const char * const *values) _CUPS_PUBLIC; extern time_t ippDateToTime(const ipp_uchar_t *date) _CUPS_PUBLIC; extern void ippDelete(ipp_t *ipp) _CUPS_PUBLIC; extern const char *ippErrorString(ipp_status_t error) _CUPS_PUBLIC; extern ipp_attribute_t *ippFindAttribute(ipp_t *ipp, const char *name, ipp_tag_t value_tag) _CUPS_PUBLIC; extern ipp_attribute_t *ippFindNextAttribute(ipp_t *ipp, const char *name, ipp_tag_t value_tag) _CUPS_PUBLIC; extern size_t ippLength(ipp_t *ipp) _CUPS_PUBLIC; extern ipp_t *ippNew(void) _CUPS_PUBLIC; extern ipp_state_t ippRead(http_t *http, ipp_t *ipp) _CUPS_PUBLIC; extern const ipp_uchar_t *ippTimeToDate(time_t t) _CUPS_PUBLIC; extern ipp_state_t ippWrite(http_t *http, ipp_t *ipp) _CUPS_PUBLIC; extern int ippPort(void) _CUPS_PUBLIC; extern void ippSetPort(int p) _CUPS_PUBLIC; /**** New in CUPS 1.1.19 ****/ extern ipp_attribute_t *ippAddCollection(ipp_t *ipp, ipp_tag_t group, const char *name, ipp_t *value) _CUPS_API_1_1_19; extern ipp_attribute_t *ippAddCollections(ipp_t *ipp, ipp_tag_t group, const char *name, int num_values, const ipp_t **values) _CUPS_API_1_1_19; extern void ippDeleteAttribute(ipp_t *ipp, ipp_attribute_t *attr) _CUPS_API_1_1_19; extern ipp_state_t ippReadFile(int fd, ipp_t *ipp) _CUPS_API_1_1_19; extern ipp_state_t ippWriteFile(int fd, ipp_t *ipp) _CUPS_API_1_1_19; /**** New in CUPS 1.2/macOS 10.5 ****/ extern ipp_attribute_t *ippAddOctetString(ipp_t *ipp, ipp_tag_t group, const char *name, const void *data, int datalen) _CUPS_API_1_2; extern ipp_status_t ippErrorValue(const char *name) _CUPS_API_1_2; extern ipp_t *ippNewRequest(ipp_op_t op) _CUPS_API_1_2; extern const char *ippOpString(ipp_op_t op) _CUPS_API_1_2; extern ipp_op_t ippOpValue(const char *name) _CUPS_API_1_2; extern ipp_state_t ippReadIO(void *src, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp) _CUPS_API_1_2; extern ipp_state_t ippWriteIO(void *dst, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp) _CUPS_API_1_2; /**** New in CUPS 1.4/macOS 10.6 ****/ extern const char *ippTagString(ipp_tag_t tag) _CUPS_API_1_4; extern ipp_tag_t ippTagValue(const char *name) _CUPS_API_1_4; /**** New in CUPS 1.6/macOS 10.8 ****/ extern ipp_attribute_t *ippAddOutOfBand(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name) _CUPS_API_1_6; extern size_t ippAttributeString(ipp_attribute_t *attr, char *buffer, size_t bufsize) _CUPS_API_1_6; extern ipp_attribute_t *ippCopyAttribute(ipp_t *dst, ipp_attribute_t *attr, int quickcopy) _CUPS_API_1_6; extern int ippCopyAttributes(ipp_t *dst, ipp_t *src, int quickcopy, ipp_copycb_t cb, void *context) _CUPS_API_1_6; extern int ippDeleteValues(ipp_t *ipp, ipp_attribute_t **attr, int element, int count) _CUPS_API_1_6; extern const char *ippEnumString(const char *attrname, int enumvalue) _CUPS_API_1_6; extern int ippEnumValue(const char *attrname, const char *enumstring) _CUPS_API_1_6; extern ipp_attribute_t *ippFirstAttribute(ipp_t *ipp) _CUPS_API_1_6; extern int ippGetBoolean(ipp_attribute_t *attr, int element) _CUPS_API_1_6; extern ipp_t *ippGetCollection(ipp_attribute_t *attr, int element) _CUPS_API_1_6; extern int ippGetCount(ipp_attribute_t *attr) _CUPS_API_1_6; extern const ipp_uchar_t *ippGetDate(ipp_attribute_t *attr, int element) _CUPS_API_1_6; extern ipp_tag_t ippGetGroupTag(ipp_attribute_t *attr) _CUPS_API_1_6; extern int ippGetInteger(ipp_attribute_t *attr, int element) _CUPS_API_1_6; extern const char *ippGetName(ipp_attribute_t *attr) _CUPS_API_1_6; extern ipp_op_t ippGetOperation(ipp_t *ipp) _CUPS_API_1_6; extern int ippGetRange(ipp_attribute_t *attr, int element, int *upper) _CUPS_API_1_6; extern int ippGetRequestId(ipp_t *ipp) _CUPS_API_1_6; extern int ippGetResolution(ipp_attribute_t *attr, int element, int *yres, ipp_res_t *units) _CUPS_API_1_6; extern ipp_state_t ippGetState(ipp_t *ipp) _CUPS_API_1_6; extern ipp_status_t ippGetStatusCode(ipp_t *ipp) _CUPS_API_1_6; extern const char *ippGetString(ipp_attribute_t *attr, int element, const char **language) _CUPS_API_1_6; extern ipp_tag_t ippGetValueTag(ipp_attribute_t *attr) _CUPS_API_1_6; extern int ippGetVersion(ipp_t *ipp, int *minor) _CUPS_API_1_6; extern ipp_attribute_t *ippNextAttribute(ipp_t *ipp) _CUPS_API_1_6; extern int ippSetBoolean(ipp_t *ipp, ipp_attribute_t **attr, int element, int boolvalue) _CUPS_API_1_6; extern int ippSetCollection(ipp_t *ipp, ipp_attribute_t **attr, int element, ipp_t *colvalue) _CUPS_API_1_6; extern int ippSetDate(ipp_t *ipp, ipp_attribute_t **attr, int element, const ipp_uchar_t *datevalue) _CUPS_API_1_6; extern int ippSetGroupTag(ipp_t *ipp, ipp_attribute_t **attr, ipp_tag_t group_tag) _CUPS_API_1_6; extern int ippSetInteger(ipp_t *ipp, ipp_attribute_t **attr, int element, int intvalue) _CUPS_API_1_6; extern int ippSetName(ipp_t *ipp, ipp_attribute_t **attr, const char *name) _CUPS_API_1_6; extern int ippSetOperation(ipp_t *ipp, ipp_op_t op) _CUPS_API_1_6; extern int ippSetRange(ipp_t *ipp, ipp_attribute_t **attr, int element, int lowervalue, int uppervalue) _CUPS_API_1_6; extern int ippSetRequestId(ipp_t *ipp, int request_id) _CUPS_API_1_6; extern int ippSetResolution(ipp_t *ipp, ipp_attribute_t **attr, int element, ipp_res_t unitsvalue, int xresvalue, int yresvalue) _CUPS_API_1_6; extern int ippSetState(ipp_t *ipp, ipp_state_t state) _CUPS_API_1_6; extern int ippSetStatusCode(ipp_t *ipp, ipp_status_t status) _CUPS_API_1_6; extern int ippSetString(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *strvalue) _CUPS_API_1_6; extern int ippSetValueTag(ipp_t *ipp, ipp_attribute_t **attr, ipp_tag_t value_tag) _CUPS_API_1_6; extern int ippSetVersion(ipp_t *ipp, int major, int minor) _CUPS_API_1_6; /**** New in CUPS 1.7 ****/ extern ipp_attribute_t *ippAddStringf(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *format, ...) _CUPS_API_1_7; extern ipp_attribute_t *ippAddStringfv(ipp_t *ipp, ipp_tag_t group, ipp_tag_t value_tag, const char *name, const char *language, const char *format, va_list ap) _CUPS_API_1_7; extern int ippContainsInteger(ipp_attribute_t *attr, int value) _CUPS_API_1_7; extern int ippContainsString(ipp_attribute_t *attr, const char *value) _CUPS_API_1_7; extern cups_array_t *ippCreateRequestedArray(ipp_t *request) _CUPS_API_1_7; extern void *ippGetOctetString(ipp_attribute_t *attr, int element, int *datalen) _CUPS_API_1_7; extern ipp_t *ippNewResponse(ipp_t *request) _CUPS_API_1_7; extern int ippSetOctetString(ipp_t *ipp, ipp_attribute_t **attr, int element, const void *data, int datalen) _CUPS_API_1_7; extern int ippSetStringf(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *format, ...) _CUPS_API_1_7; extern int ippSetStringfv(ipp_t *ipp, ipp_attribute_t **attr, int element, const char *format, va_list ap) _CUPS_API_1_7; extern int ippValidateAttribute(ipp_attribute_t *attr) _CUPS_API_1_7; extern int ippValidateAttributes(ipp_t *ipp) _CUPS_API_1_7; /**** New in CUPS 2.0 ****/ extern const char *ippStateString(ipp_state_t state) _CUPS_API_2_0; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_IPP_H_ */ cups-2.4.7/cups/ipp.c0000644000175000017500000055120214502571342014274 0ustar zdohnalzdohnal/* * Internet Printing Protocol functions for CUPS. * * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #ifdef _WIN32 # include #endif /* _WIN32 */ /* * Local functions... */ static ipp_attribute_t *ipp_add_attr(ipp_t *ipp, const char *name, ipp_tag_t group_tag, ipp_tag_t value_tag, int num_values); static void ipp_free_values(ipp_attribute_t *attr, int element, int count); static char *ipp_get_code(const char *locale, char *buffer, size_t bufsize) _CUPS_NONNULL(1,2); static char *ipp_lang_code(const char *locale, char *buffer, size_t bufsize) _CUPS_NONNULL(1,2); static size_t ipp_length(ipp_t *ipp, int collection); static ssize_t ipp_read_http(http_t *http, ipp_uchar_t *buffer, size_t length); static ssize_t ipp_read_file(int *fd, ipp_uchar_t *buffer, size_t length); static void ipp_set_error(ipp_status_t status, const char *format, ...); static _ipp_value_t *ipp_set_value(ipp_t *ipp, ipp_attribute_t **attr, int element); static ssize_t ipp_write_file(int *fd, ipp_uchar_t *buffer, size_t length); /* * '_cupsBufferGet()' - Get a read/write buffer. */ char * /* O - Buffer */ _cupsBufferGet(size_t size) /* I - Size required */ { _cups_buffer_t *buffer; /* Current buffer */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ for (buffer = cg->cups_buffers; buffer; buffer = buffer->next) if (!buffer->used && buffer->size >= size) break; if (!buffer) { if ((buffer = malloc(sizeof(_cups_buffer_t) + size - 1)) == NULL) return (NULL); buffer->next = cg->cups_buffers; buffer->size = size; cg->cups_buffers = buffer; } buffer->used = 1; return (buffer->d); } /* * '_cupsBufferRelease()' - Release a read/write buffer. */ void _cupsBufferRelease(char *b) /* I - Buffer to release */ { _cups_buffer_t *buffer; /* Buffer */ /* * Mark this buffer as unused... */ buffer = (_cups_buffer_t *)(b - offsetof(_cups_buffer_t, d)); buffer->used = 0; } /* * 'ippAddBoolean()' - Add a boolean attribute to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddBoolean(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ char value) /* I - Value of attribute */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddBoolean(ipp=%p, group=%02x(%s), name=\"%s\", value=%d)", (void *)ipp, group, ippTagString(group), name, value)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BOOLEAN, 1)) == NULL) return (NULL); attr->values[0].boolean = value; return (attr); } /* * 'ippAddBooleans()' - Add an array of boolean values. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddBooleans(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ int num_values, /* I - Number of values */ const char *values) /* I - Values */ { int i; /* Looping var */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippAddBooleans(ipp=%p, group=%02x(%s), name=\"%s\", num_values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BOOLEAN, num_values)) == NULL) return (NULL); if (values) { for (i = num_values, value = attr->values; i > 0; i --, value ++) value->boolean = *values++; } return (attr); } /* * 'ippAddCollection()' - Add a collection value. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * @since CUPS 1.1.19/macOS 10.3@ */ ipp_attribute_t * /* O - New attribute */ ippAddCollection(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ ipp_t *value) /* I - Value */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddCollection(ipp=%p, group=%02x(%s), name=\"%s\", value=%p)", (void *)ipp, group, ippTagString(group), name, (void *)value)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BEGIN_COLLECTION, 1)) == NULL) return (NULL); attr->values[0].collection = value; if (value) value->use ++; return (attr); } /* * 'ippAddCollections()' - Add an array of collection values. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * @since CUPS 1.1.19/macOS 10.3@ */ ipp_attribute_t * /* O - New attribute */ ippAddCollections( ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ int num_values, /* I - Number of values */ const ipp_t **values) /* I - Values */ { int i; /* Looping var */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippAddCollections(ipp=%p, group=%02x(%s), name=\"%s\", num_values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BEGIN_COLLECTION, num_values)) == NULL) return (NULL); if (values) { for (i = num_values, value = attr->values; i > 0; i --, value ++) { value->collection = (ipp_t *)*values++; value->collection->use ++; } } return (attr); } /* * 'ippAddDate()' - Add a dateTime attribute to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddDate(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ const ipp_uchar_t *value) /* I - Value */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddDate(ipp=%p, group=%02x(%s), name=\"%s\", value=%p)", (void *)ipp, group, ippTagString(group), name, (void *)value)); /* * Range check input... */ if (!ipp || !name || !value || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_DATE, 1)) == NULL) return (NULL); memcpy(attr->values[0].date, value, 11); return (attr); } /* * 'ippAddInteger()' - Add a integer attribute to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported values include enum (@code IPP_TAG_ENUM@) and integer * (@code IPP_TAG_INTEGER@). */ ipp_attribute_t * /* O - New attribute */ ippAddInteger(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ int value) /* I - Value of attribute */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddInteger(ipp=%p, group=%02x(%s), type=%02x(%s), name=\"%s\", value=%d)", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name, value)); value_tag &= IPP_TAG_CUPS_MASK; /* * Special-case for legacy usage: map out-of-band attributes to new ippAddOutOfBand * function... */ if (value_tag >= IPP_TAG_UNSUPPORTED_VALUE && value_tag <= IPP_TAG_ADMINDEFINE) return (ippAddOutOfBand(ipp, group, value_tag, name)); /* * Range check input... */ #if 0 if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (value_tag != IPP_TAG_INTEGER && value_tag != IPP_TAG_ENUM)) return (NULL); #else if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); #endif /* 0 */ /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, value_tag, 1)) == NULL) return (NULL); attr->values[0].integer = value; return (attr); } /* * 'ippAddIntegers()' - Add an array of integer values. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported values include enum (@code IPP_TAG_ENUM@) and integer * (@code IPP_TAG_INTEGER@). */ ipp_attribute_t * /* O - New attribute */ ippAddIntegers(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ int num_values, /* I - Number of values */ const int *values) /* I - Values */ { int i; /* Looping var */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippAddIntegers(ipp=%p, group=%02x(%s), type=%02x(%s), name=\"%s\", num_values=%d, values=%p)", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, (void *)values)); value_tag &= IPP_TAG_CUPS_MASK; /* * Range check input... */ #if 0 if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (value_tag != IPP_TAG_INTEGER && value_tag != IPP_TAG_ENUM) || num_values < 1) return (NULL); #else if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1) return (NULL); #endif /* 0 */ /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) return (NULL); if (values) { for (i = num_values, value = attr->values; i > 0; i --, value ++) value->integer = *values++; } return (attr); } /* * 'ippAddOctetString()' - Add an octetString value to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * @since CUPS 1.2/macOS 10.5@ */ ipp_attribute_t * /* O - New attribute */ ippAddOctetString(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ const void *data, /* I - octetString data */ int datalen) /* I - Length of data in bytes */ { ipp_attribute_t *attr; /* New attribute */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || datalen < 0 || datalen > IPP_MAX_LENGTH) return (NULL); if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_STRING, 1)) == NULL) return (NULL); /* * Initialize the attribute data... */ attr->values[0].unknown.length = datalen; if (data) { if ((attr->values[0].unknown.data = malloc((size_t)datalen)) == NULL) { ippDeleteAttribute(ipp, attr); return (NULL); } memcpy(attr->values[0].unknown.data, data, (size_t)datalen); } /* * Return the new attribute... */ return (attr); } /* * 'ippAddOutOfBand()' - Add an out-of-band value to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported out-of-band values include unsupported-value * (@code IPP_TAG_UNSUPPORTED_VALUE@), default (@code IPP_TAG_DEFAULT@), unknown * (@code IPP_TAG_UNKNOWN@), no-value (@code IPP_TAG_NOVALUE@), not-settable * (@code IPP_TAG_NOTSETTABLE@), delete-attribute (@code IPP_TAG_DELETEATTR@), and * admin-define (@code IPP_TAG_ADMINDEFINE@). * * @since CUPS 1.6/macOS 10.8@ */ ipp_attribute_t * /* O - New attribute */ ippAddOutOfBand(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name) /* I - Name of attribute */ { DEBUG_printf(("ippAddOutOfBand(ipp=%p, group=%02x(%s), value_tag=%02x(%s), name=\"%s\")", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name)); value_tag &= IPP_TAG_CUPS_MASK; /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (value_tag != IPP_TAG_UNSUPPORTED_VALUE && value_tag != IPP_TAG_DEFAULT && value_tag != IPP_TAG_UNKNOWN && value_tag != IPP_TAG_NOVALUE && value_tag != IPP_TAG_NOTSETTABLE && value_tag != IPP_TAG_DELETEATTR && value_tag != IPP_TAG_ADMINDEFINE)) return (NULL); /* * Create the attribute... */ return (ipp_add_attr(ipp, name, group, value_tag, 1)); } /* * 'ippAddRange()' - Add a range of values to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * The @code lower@ parameter must be less than or equal to the @code upper@ parameter. */ ipp_attribute_t * /* O - New attribute */ ippAddRange(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ int lower, /* I - Lower value */ int upper) /* I - Upper value */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddRange(ipp=%p, group=%02x(%s), name=\"%s\", lower=%d, upper=%d)", (void *)ipp, group, ippTagString(group), name, lower, upper)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RANGE, 1)) == NULL) return (NULL); attr->values[0].range.lower = lower; attr->values[0].range.upper = upper; return (attr); } /* * 'ippAddRanges()' - Add ranges of values to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddRanges(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ int num_values, /* I - Number of values */ const int *lower, /* I - Lower values */ const int *upper) /* I - Upper values */ { int i; /* Looping var */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippAddRanges(ipp=%p, group=%02x(%s), name=\"%s\", num_values=%d, lower=%p, upper=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)lower, (void *)upper)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RANGE, num_values)) == NULL) return (NULL); if (lower && upper) { for (i = num_values, value = attr->values; i > 0; i --, value ++) { value->range.lower = *lower++; value->range.upper = *upper++; } } return (attr); } /* * 'ippAddResolution()' - Add a resolution value to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddResolution(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ ipp_res_t units, /* I - Units for resolution */ int xres, /* I - X resolution */ int yres) /* I - Y resolution */ { ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("ippAddResolution(ipp=%p, group=%02x(%s), name=\"%s\", units=%d, xres=%d, yres=%d)", (void *)ipp, group, ippTagString(group), name, units, xres, yres)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || units < IPP_RES_PER_INCH || units > IPP_RES_PER_CM || xres < 0 || yres < 0) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RESOLUTION, 1)) == NULL) return (NULL); attr->values[0].resolution.xres = xres; attr->values[0].resolution.yres = yres; attr->values[0].resolution.units = units; return (attr); } /* * 'ippAddResolutions()' - Add resolution values to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). */ ipp_attribute_t * /* O - New attribute */ ippAddResolutions(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ const char *name, /* I - Name of attribute */ int num_values,/* I - Number of values */ ipp_res_t units, /* I - Units for resolution */ const int *xres, /* I - X resolutions */ const int *yres) /* I - Y resolutions */ { int i; /* Looping var */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippAddResolutions(ipp=%p, group=%02x(%s), name=\"%s\", num_value=%d, units=%d, xres=%p, yres=%p)", (void *)ipp, group, ippTagString(group), name, num_values, units, (void *)xres, (void *)yres)); /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1 || units < IPP_RES_PER_INCH || units > IPP_RES_PER_CM) return (NULL); /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RESOLUTION, num_values)) == NULL) return (NULL); if (xres && yres) { for (i = num_values, value = attr->values; i > 0; i --, value ++) { value->resolution.xres = *xres++; value->resolution.yres = *yres++; value->resolution.units = units; } } return (attr); } /* * 'ippAddSeparator()' - Add a group separator to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. */ ipp_attribute_t * /* O - New attribute */ ippAddSeparator(ipp_t *ipp) /* I - IPP message */ { DEBUG_printf(("ippAddSeparator(ipp=%p)", (void *)ipp)); /* * Range check input... */ if (!ipp) return (NULL); /* * Create the attribute... */ return (ipp_add_attr(ipp, NULL, IPP_TAG_ZERO, IPP_TAG_ZERO, 0)); } /* * 'ippAddString()' - Add a language-encoded string to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported string values include charset (@code IPP_TAG_CHARSET@), keyword * (@code IPP_TAG_KEYWORD@), language (@code IPP_TAG_LANGUAGE@), mimeMediaType * (@code IPP_TAG_MIMETYPE@), name (@code IPP_TAG_NAME@), nameWithLanguage * (@code IPP_TAG_NAMELANG), text (@code IPP_TAG_TEXT@), textWithLanguage * (@code IPP_TAG_TEXTLANG@), uri (@code IPP_TAG_URI@), and uriScheme * (@code IPP_TAG_URISCHEME@). * * The @code language@ parameter must be non-@code NULL@ for nameWithLanguage and * textWithLanguage string values and must be @code NULL@ for all other string values. */ ipp_attribute_t * /* O - New attribute */ ippAddString(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ const char *language, /* I - Language code */ const char *value) /* I - Value */ { ipp_tag_t temp_tag; /* Temporary value tag (masked) */ ipp_attribute_t *attr; /* New attribute */ char code[IPP_MAX_LANGUAGE]; /* Charset/language code buffer */ DEBUG_printf(("ippAddString(ipp=%p, group=%02x(%s), value_tag=%02x(%s), name=\"%s\", language=\"%s\", value=\"%s\")", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name, language, value)); /* * Range check input... */ temp_tag = (ipp_tag_t)((int)value_tag & IPP_TAG_CUPS_MASK); #if 0 if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (temp_tag < IPP_TAG_TEXT && temp_tag != IPP_TAG_TEXTLANG && temp_tag != IPP_TAG_NAMELANG) || temp_tag > IPP_TAG_MIMETYPE) return (NULL); if ((temp_tag == IPP_TAG_TEXTLANG || temp_tag == IPP_TAG_NAMELANG) != (language != NULL)) return (NULL); #else if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE) return (NULL); #endif /* 0 */ /* * See if we need to map charset, language, or locale values... */ if (language && ((int)value_tag & IPP_TAG_CUPS_CONST) && strcmp(language, ipp_lang_code(language, code, sizeof(code)))) value_tag = temp_tag; /* Don't do a fast copy */ else if (value && value_tag == (ipp_tag_t)(IPP_TAG_CHARSET | IPP_TAG_CUPS_CONST) && strcmp(value, ipp_get_code(value, code, sizeof(code)))) value_tag = temp_tag; /* Don't do a fast copy */ else if (value && value_tag == (ipp_tag_t)(IPP_TAG_LANGUAGE | IPP_TAG_CUPS_CONST) && strcmp(value, ipp_lang_code(value, code, sizeof(code)))) value_tag = temp_tag; /* Don't do a fast copy */ /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, value_tag, 1)) == NULL) return (NULL); /* * Initialize the attribute data... */ if ((int)value_tag & IPP_TAG_CUPS_CONST) { attr->values[0].string.language = (char *)language; attr->values[0].string.text = (char *)value; } else { if (language) attr->values[0].string.language = _cupsStrAlloc(ipp_lang_code(language, code, sizeof(code))); if (value) { if (value_tag == IPP_TAG_CHARSET) attr->values[0].string.text = _cupsStrAlloc(ipp_get_code(value, code, sizeof(code))); else if (value_tag == IPP_TAG_LANGUAGE) attr->values[0].string.text = _cupsStrAlloc(ipp_lang_code(value, code, sizeof(code))); else attr->values[0].string.text = _cupsStrAlloc(value); } } return (attr); } /* * 'ippAddStringf()' - Add a formatted string to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document * (@code IPP_TAG_DOCUMENT@), event notification * (@code IPP_TAG_EVENT_NOTIFICATION@), operation (@code IPP_TAG_OPERATION@), * printer (@code IPP_TAG_PRINTER@), subscription (@code IPP_TAG_SUBSCRIPTION@), * or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported string values include charset (@code IPP_TAG_CHARSET@), keyword * (@code IPP_TAG_KEYWORD@), language (@code IPP_TAG_LANGUAGE@), mimeMediaType * (@code IPP_TAG_MIMETYPE@), name (@code IPP_TAG_NAME@), nameWithLanguage * (@code IPP_TAG_NAMELANG), text (@code IPP_TAG_TEXT@), textWithLanguage * (@code IPP_TAG_TEXTLANG@), uri (@code IPP_TAG_URI@), and uriScheme * (@code IPP_TAG_URISCHEME@). * * The @code language@ parameter must be non-@code NULL@ for nameWithLanguage * and textWithLanguage string values and must be @code NULL@ for all other * string values. * * The @code format@ parameter uses formatting characters compatible with the * printf family of standard functions. Additional arguments follow it as * needed. The formatted string is truncated as needed to the maximum length of * the corresponding value type. * * @since CUPS 1.7/macOS 10.9@ */ ipp_attribute_t * /* O - New attribute */ ippAddStringf(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ const char *language, /* I - Language code (@code NULL@ for default) */ const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { ipp_attribute_t *attr; /* New attribute */ va_list ap; /* Argument pointer */ va_start(ap, format); attr = ippAddStringfv(ipp, group, value_tag, name, language, format, ap); va_end(ap); return (attr); } /* * 'ippAddStringfv()' - Add a formatted string to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document * (@code IPP_TAG_DOCUMENT@), event notification * (@code IPP_TAG_EVENT_NOTIFICATION@), operation (@code IPP_TAG_OPERATION@), * printer (@code IPP_TAG_PRINTER@), subscription (@code IPP_TAG_SUBSCRIPTION@), * or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported string values include charset (@code IPP_TAG_CHARSET@), keyword * (@code IPP_TAG_KEYWORD@), language (@code IPP_TAG_LANGUAGE@), mimeMediaType * (@code IPP_TAG_MIMETYPE@), name (@code IPP_TAG_NAME@), nameWithLanguage * (@code IPP_TAG_NAMELANG), text (@code IPP_TAG_TEXT@), textWithLanguage * (@code IPP_TAG_TEXTLANG@), uri (@code IPP_TAG_URI@), and uriScheme * (@code IPP_TAG_URISCHEME@). * * The @code language@ parameter must be non-@code NULL@ for nameWithLanguage * and textWithLanguage string values and must be @code NULL@ for all other * string values. * * The @code format@ parameter uses formatting characters compatible with the * printf family of standard functions. Additional arguments are passed in the * stdarg pointer @code ap@. The formatted string is truncated as needed to the * maximum length of the corresponding value type. * * @since CUPS 1.7/macOS 10.9@ */ ipp_attribute_t * /* O - New attribute */ ippAddStringfv(ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ const char *language, /* I - Language code (@code NULL@ for default) */ const char *format, /* I - Printf-style format string */ va_list ap) /* I - Additional arguments */ { char buffer[IPP_MAX_TEXT + 4]; /* Formatted text string */ ssize_t bytes, /* Length of formatted value */ max_bytes; /* Maximum number of bytes for value */ /* * Range check input... */ if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (value_tag < IPP_TAG_TEXT && value_tag != IPP_TAG_TEXTLANG && value_tag != IPP_TAG_NAMELANG) || value_tag > IPP_TAG_MIMETYPE || !format) return (NULL); if ((value_tag == IPP_TAG_TEXTLANG || value_tag == IPP_TAG_NAMELANG) != (language != NULL)) return (NULL); /* * Format the string... */ if (!strcmp(format, "%s")) { /* * Optimize the simple case... */ const char *s = va_arg(ap, char *); if (!s) s = "(null)"; bytes = (ssize_t)strlen(s); strlcpy(buffer, s, sizeof(buffer)); } else { /* * Do a full formatting of the message... */ if ((bytes = vsnprintf(buffer, sizeof(buffer), format, ap)) < 0) return (NULL); } /* * Limit the length of the string... */ switch (value_tag) { default : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : max_bytes = IPP_MAX_TEXT; break; case IPP_TAG_NAME : case IPP_TAG_NAMELANG : max_bytes = IPP_MAX_NAME; break; case IPP_TAG_CHARSET : max_bytes = IPP_MAX_CHARSET; break; case IPP_TAG_KEYWORD : max_bytes = IPP_MAX_KEYWORD; break; case IPP_TAG_LANGUAGE : max_bytes = IPP_MAX_LANGUAGE; break; case IPP_TAG_MIMETYPE : max_bytes = IPP_MAX_MIMETYPE; break; case IPP_TAG_URI : max_bytes = IPP_MAX_URI; break; case IPP_TAG_URISCHEME : max_bytes = IPP_MAX_URISCHEME; break; } if (bytes >= max_bytes) { char *bufmax, /* Buffer at max_bytes */ *bufptr; /* Pointer into buffer */ bufptr = buffer + strlen(buffer) - 1; bufmax = buffer + max_bytes - 1; while (bufptr > bufmax) { if (*bufptr & 0x80) { while ((*bufptr & 0xc0) == 0x80 && bufptr > buffer) bufptr --; } bufptr --; } *bufptr = '\0'; } /* * Add the formatted string and return... */ return (ippAddString(ipp, group, value_tag, name, language, buffer)); } /* * 'ippAddStrings()' - Add language-encoded strings to an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * Supported string values include charset (@code IPP_TAG_CHARSET@), keyword * (@code IPP_TAG_KEYWORD@), language (@code IPP_TAG_LANGUAGE@), mimeMediaType * (@code IPP_TAG_MIMETYPE@), name (@code IPP_TAG_NAME@), nameWithLanguage * (@code IPP_TAG_NAMELANG), text (@code IPP_TAG_TEXT@), textWithLanguage * (@code IPP_TAG_TEXTLANG@), uri (@code IPP_TAG_URI@), and uriScheme * (@code IPP_TAG_URISCHEME@). * * The @code language@ parameter must be non-@code NULL@ for nameWithLanguage and * textWithLanguage string values and must be @code NULL@ for all other string values. */ ipp_attribute_t * /* O - New attribute */ ippAddStrings( ipp_t *ipp, /* I - IPP message */ ipp_tag_t group, /* I - IPP group */ ipp_tag_t value_tag, /* I - Type of attribute */ const char *name, /* I - Name of attribute */ int num_values, /* I - Number of values */ const char *language, /* I - Language code (@code NULL@ for default) */ const char * const *values) /* I - Values */ { int i; /* Looping var */ ipp_tag_t temp_tag; /* Temporary value tag (masked) */ ipp_attribute_t *attr; /* New attribute */ _ipp_value_t *value; /* Current value */ char code[32]; /* Language/charset value buffer */ DEBUG_printf(("ippAddStrings(ipp=%p, group=%02x(%s), value_tag=%02x(%s), name=\"%s\", num_values=%d, language=\"%s\", values=%p)", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, language, (void *)values)); /* * Range check input... */ temp_tag = (ipp_tag_t)((int)value_tag & IPP_TAG_CUPS_MASK); #if 0 if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || (temp_tag < IPP_TAG_TEXT && temp_tag != IPP_TAG_TEXTLANG && temp_tag != IPP_TAG_NAMELANG) || temp_tag > IPP_TAG_MIMETYPE || num_values < 1) return (NULL); if ((temp_tag == IPP_TAG_TEXTLANG || temp_tag == IPP_TAG_NAMELANG) != (language != NULL)) return (NULL); #else if (!ipp || !name || group < IPP_TAG_ZERO || group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE || num_values < 1) return (NULL); #endif /* 0 */ /* * See if we need to map charset, language, or locale values... */ if (language && ((int)value_tag & IPP_TAG_CUPS_CONST) && strcmp(language, ipp_lang_code(language, code, sizeof(code)))) value_tag = temp_tag; /* Don't do a fast copy */ else if (values && value_tag == (ipp_tag_t)(IPP_TAG_CHARSET | IPP_TAG_CUPS_CONST)) { for (i = 0; i < num_values; i ++) if (strcmp(values[i], ipp_get_code(values[i], code, sizeof(code)))) { value_tag = temp_tag; /* Don't do a fast copy */ break; } } else if (values && value_tag == (ipp_tag_t)(IPP_TAG_LANGUAGE | IPP_TAG_CUPS_CONST)) { for (i = 0; i < num_values; i ++) if (strcmp(values[i], ipp_lang_code(values[i], code, sizeof(code)))) { value_tag = temp_tag; /* Don't do a fast copy */ break; } } /* * Create the attribute... */ if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) return (NULL); /* * Initialize the attribute data... */ for (i = num_values, value = attr->values; i > 0; i --, value ++) { if (language) { if (value == attr->values) { if ((int)value_tag & IPP_TAG_CUPS_CONST) value->string.language = (char *)language; else value->string.language = _cupsStrAlloc(ipp_lang_code(language, code, sizeof(code))); } else value->string.language = attr->values[0].string.language; } if (values) { if ((int)value_tag & IPP_TAG_CUPS_CONST) value->string.text = (char *)*values++; else if (value_tag == IPP_TAG_CHARSET) value->string.text = _cupsStrAlloc(ipp_get_code(*values++, code, sizeof(code))); else if (value_tag == IPP_TAG_LANGUAGE) value->string.text = _cupsStrAlloc(ipp_lang_code(*values++, code, sizeof(code))); else value->string.text = _cupsStrAlloc(*values++); } } return (attr); } /* * 'ippContainsInteger()' - Determine whether an attribute contains the * specified value or is within the list of ranges. * * Returns non-zero when the attribute contains either a matching integer or * enum value, or the value falls within one of the rangeOfInteger values for * the attribute. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on a match, 0 on no match */ ippContainsInteger( ipp_attribute_t *attr, /* I - Attribute */ int value) /* I - Integer/enum value */ { int i; /* Looping var */ _ipp_value_t *avalue; /* Current attribute value */ /* * Range check input... */ if (!attr) return (0); if (attr->value_tag != IPP_TAG_INTEGER && attr->value_tag != IPP_TAG_ENUM && attr->value_tag != IPP_TAG_RANGE) return (0); /* * Compare... */ if (attr->value_tag == IPP_TAG_RANGE) { for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) if (value >= avalue->range.lower && value <= avalue->range.upper) return (1); } else { for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) if (value == avalue->integer) return (1); } return (0); } /* * 'ippContainsString()' - Determine whether an attribute contains the * specified string value. * * Returns non-zero when the attribute contains a matching charset, keyword, * naturalLanguage, mimeMediaType, name, text, uri, or uriScheme value. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on a match, 0 on no match */ ippContainsString( ipp_attribute_t *attr, /* I - Attribute */ const char *value) /* I - String value */ { int i; /* Looping var */ _ipp_value_t *avalue; /* Current attribute value */ DEBUG_printf(("ippContainsString(attr=%p, value=\"%s\")", (void *)attr, value)); /* * Range check input... */ if (!attr || !value) { DEBUG_puts("1ippContainsString: Returning 0 (bad input)"); return (0); } /* * Compare... */ DEBUG_printf(("1ippContainsString: attr %s, %s with %d values.", attr->name, ippTagString(attr->value_tag), attr->num_values)); switch (attr->value_tag & IPP_TAG_CUPS_MASK) { case IPP_TAG_CHARSET : case IPP_TAG_KEYWORD : case IPP_TAG_LANGUAGE : case IPP_TAG_URI : case IPP_TAG_URISCHEME : for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) { DEBUG_printf(("1ippContainsString: value[%d]=\"%s\"", attr->num_values - i, avalue->string.text)); if (!strcmp(value, avalue->string.text)) { DEBUG_puts("1ippContainsString: Returning 1 (match)"); return (1); } } case IPP_TAG_MIMETYPE : case IPP_TAG_NAME : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) { DEBUG_printf(("1ippContainsString: value[%d]=\"%s\"", attr->num_values - i, avalue->string.text)); if (!_cups_strcasecmp(value, avalue->string.text)) { DEBUG_puts("1ippContainsString: Returning 1 (match)"); return (1); } } default : break; } DEBUG_puts("1ippContainsString: Returning 0 (no match)"); return (0); } /* * 'ippCopyAttribute()' - Copy an attribute. * * The specified attribute, @code attr@, is copied to the destination IPP message. * When @code quickcopy@ is non-zero, a "shallow" reference copy of the attribute is * created - this should only be done as long as the original source IPP message will * not be freed for the life of the destination. * * @since CUPS 1.6/macOS 10.8@ */ ipp_attribute_t * /* O - New attribute */ ippCopyAttribute( ipp_t *dst, /* I - Destination IPP message */ ipp_attribute_t *srcattr, /* I - Attribute to copy */ int quickcopy) /* I - 1 for a referenced copy, 0 for normal */ { int i; /* Looping var */ ipp_tag_t srctag; /* Source value tag */ ipp_attribute_t *dstattr; /* Destination attribute */ _ipp_value_t *srcval, /* Source value */ *dstval; /* Destination value */ DEBUG_printf(("ippCopyAttribute(dst=%p, srcattr=%p, quickcopy=%d)", (void *)dst, (void *)srcattr, quickcopy)); /* * Range check input... */ if (!dst || !srcattr) return (NULL); /* * Copy it... */ quickcopy = (quickcopy && (srcattr->value_tag & IPP_TAG_CUPS_CONST)) ? IPP_TAG_CUPS_CONST : 0; srctag = srcattr->value_tag & IPP_TAG_CUPS_MASK; switch (srctag) { case IPP_TAG_ZERO : dstattr = ippAddSeparator(dst); break; case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : dstattr = ippAddOutOfBand(dst, srcattr->group_tag, srctag, srcattr->name); break; case IPP_TAG_INTEGER : case IPP_TAG_ENUM : case IPP_TAG_BOOLEAN : case IPP_TAG_DATE : case IPP_TAG_RESOLUTION : case IPP_TAG_RANGE : if ((dstattr = ipp_add_attr(dst, srcattr->name, srcattr->group_tag, srctag, srcattr->num_values)) != NULL) memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_RESERVED_STRING : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : if ((dstattr = ippAddStrings(dst, srcattr->group_tag, (ipp_tag_t)(srctag | quickcopy), srcattr->name, srcattr->num_values, NULL, NULL)) == NULL) break; if (quickcopy) { /* * Can safely quick-copy these string values... */ memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); } else { /* * Otherwise do a normal reference counted copy... */ for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, srcval ++, dstval ++) dstval->string.text = _cupsStrAlloc(srcval->string.text); } break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : if ((dstattr = ippAddStrings(dst, srcattr->group_tag, (ipp_tag_t)(srctag | quickcopy), srcattr->name, srcattr->num_values, NULL, NULL)) == NULL) break; if (quickcopy) { /* * Can safely quick-copy these string values... */ memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); } else if (srcattr->value_tag & IPP_TAG_CUPS_CONST) { /* * Otherwise do a normal reference counted copy... */ for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, srcval ++, dstval ++) { if (srcval == srcattr->values) dstval->string.language = _cupsStrAlloc(srcval->string.language); else dstval->string.language = dstattr->values[0].string.language; dstval->string.text = _cupsStrAlloc(srcval->string.text); } } break; case IPP_TAG_BEGIN_COLLECTION : if ((dstattr = ippAddCollections(dst, srcattr->group_tag, srcattr->name, srcattr->num_values, NULL)) == NULL) break; for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, srcval ++, dstval ++) { dstval->collection = srcval->collection; srcval->collection->use ++; } break; case IPP_TAG_STRING : default : if ((dstattr = ipp_add_attr(dst, srcattr->name, srcattr->group_tag, srctag, srcattr->num_values)) == NULL) break; for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, srcval ++, dstval ++) { dstval->unknown.length = srcval->unknown.length; if (dstval->unknown.length > 0) { if ((dstval->unknown.data = malloc((size_t)dstval->unknown.length)) == NULL) dstval->unknown.length = 0; else memcpy(dstval->unknown.data, srcval->unknown.data, (size_t)dstval->unknown.length); } } break; /* anti-compiler-warning-code */ } return (dstattr); } /* * 'ippCopyAttributes()' - Copy attributes from one IPP message to another. * * Zero or more attributes are copied from the source IPP message, @code src@, to the * destination IPP message, @code dst@. When @code quickcopy@ is non-zero, a "shallow" * reference copy of the attribute is created - this should only be done as long as the * original source IPP message will not be freed for the life of the destination. * * The @code cb@ and @code context@ parameters provide a generic way to "filter" the * attributes that are copied - the function must return 1 to copy the attribute or * 0 to skip it. The function may also choose to do a partial copy of the source attribute * itself. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on error */ ippCopyAttributes( ipp_t *dst, /* I - Destination IPP message */ ipp_t *src, /* I - Source IPP message */ int quickcopy, /* I - 1 for a referenced copy, 0 for normal */ ipp_copycb_t cb, /* I - Copy callback or @code NULL@ for none */ void *context) /* I - Context pointer */ { ipp_attribute_t *srcattr; /* Source attribute */ DEBUG_printf(("ippCopyAttributes(dst=%p, src=%p, quickcopy=%d, cb=%p, context=%p)", (void *)dst, (void *)src, quickcopy, (void *)cb, context)); /* * Range check input... */ if (!dst || !src) return (0); /* * Loop through source attributes and copy as needed... */ for (srcattr = src->attrs; srcattr; srcattr = srcattr->next) if (!cb || (*cb)(context, dst, srcattr)) if (!ippCopyAttribute(dst, srcattr, quickcopy)) return (0); return (1); } /* * 'ippDateToTime()' - Convert from RFC 2579 Date/Time format to time in * seconds. */ time_t /* O - UNIX time value */ ippDateToTime(const ipp_uchar_t *date) /* I - RFC 2579 date info */ { struct tm unixdate; /* UNIX date/time info */ time_t t; /* Computed time */ if (!date) return (0); memset(&unixdate, 0, sizeof(unixdate)); /* * RFC-2579 date/time format is: * * Byte(s) Description * ------- ----------- * 0-1 Year (0 to 65535) * 2 Month (1 to 12) * 3 Day (1 to 31) * 4 Hours (0 to 23) * 5 Minutes (0 to 59) * 6 Seconds (0 to 60, 60 = "leap second") * 7 Deciseconds (0 to 9) * 8 +/- UTC * 9 UTC hours (0 to 11) * 10 UTC minutes (0 to 59) */ unixdate.tm_year = ((date[0] << 8) | date[1]) - 1900; unixdate.tm_mon = date[2] - 1; unixdate.tm_mday = date[3]; unixdate.tm_hour = date[4]; unixdate.tm_min = date[5]; unixdate.tm_sec = date[6]; t = mktime(&unixdate); if (date[8] == '-') t += date[9] * 3600 + date[10] * 60; else t -= date[9] * 3600 + date[10] * 60; return (t); } /* * 'ippDelete()' - Delete an IPP message. */ void ippDelete(ipp_t *ipp) /* I - IPP message */ { ipp_attribute_t *attr, /* Current attribute */ *next; /* Next attribute */ DEBUG_printf(("ippDelete(ipp=%p)", (void *)ipp)); if (!ipp) return; ipp->use --; if (ipp->use > 0) { DEBUG_printf(("4debug_retain: %p IPP message (use=%d)", (void *)ipp, ipp->use)); return; } DEBUG_printf(("4debug_free: %p IPP message", (void *)ipp)); for (attr = ipp->attrs; attr != NULL; attr = next) { next = attr->next; DEBUG_printf(("4debug_free: %p %s %s%s (%d values)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag), attr->num_values)); ipp_free_values(attr, 0, attr->num_values); if (attr->name) _cupsStrFree(attr->name); free(attr); } free(ipp); } /* * 'ippDeleteAttribute()' - Delete a single attribute in an IPP message. * * @since CUPS 1.1.19/macOS 10.3@ */ void ippDeleteAttribute( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t *attr) /* I - Attribute to delete */ { ipp_attribute_t *current, /* Current attribute */ *prev; /* Previous attribute */ DEBUG_printf(("ippDeleteAttribute(ipp=%p, attr=%p(%s))", (void *)ipp, (void *)attr, attr ? attr->name : "(null)")); /* * Range check input... */ if (!attr) return; DEBUG_printf(("4debug_free: %p %s %s%s (%d values)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag), attr->num_values)); /* * Find the attribute in the list... */ if (ipp) { for (current = ipp->attrs, prev = NULL; current; prev = current, current = current->next) if (current == attr) { /* * Found it, remove the attribute from the list... */ if (prev) prev->next = current->next; else ipp->attrs = current->next; if (current == ipp->last) ipp->last = prev; break; } if (!current) return; } /* * Free memory used by the attribute... */ ipp_free_values(attr, 0, attr->num_values); if (attr->name) _cupsStrFree(attr->name); free(attr); } /* * 'ippDeleteValues()' - Delete values in an attribute. * * The @code element@ parameter specifies the first value to delete, starting at * 0. It must be less than the number of values returned by @link ippGetCount@. * * The @code attr@ parameter may be modified as a result of setting the value. * * Deleting all values in an attribute deletes the attribute. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippDeleteValues( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - Attribute */ int element, /* I - Index of first value to delete (0-based) */ int count) /* I - Number of values to delete */ { /* * Range check input... */ if (!ipp || !attr || !*attr || element < 0 || element >= (*attr)->num_values || count <= 0 || (element + count) > (*attr)->num_values) return (0); /* * If we are deleting all values, just delete the attribute entirely. */ if (count == (*attr)->num_values) { ippDeleteAttribute(ipp, *attr); *attr = NULL; return (1); } /* * Otherwise free the values in question and return. */ ipp_free_values(*attr, element, count); return (1); } /* * 'ippFindAttribute()' - Find a named attribute in a request. * * Starting with CUPS 2.0, the attribute name can contain a hierarchical list * of attribute and member names separated by slashes, for example * "media-col/media-size". */ ipp_attribute_t * /* O - Matching attribute */ ippFindAttribute(ipp_t *ipp, /* I - IPP message */ const char *name, /* I - Name of attribute */ ipp_tag_t type) /* I - Type of attribute */ { DEBUG_printf(("2ippFindAttribute(ipp=%p, name=\"%s\", type=%02x(%s))", (void *)ipp, name, type, ippTagString(type))); if (!ipp || !name) return (NULL); /* * Reset the current pointer... */ ipp->current = NULL; ipp->atend = 0; /* * Search for the attribute... */ return (ippFindNextAttribute(ipp, name, type)); } /* * 'ippFindNextAttribute()' - Find the next named attribute in a request. * * Starting with CUPS 2.0, the attribute name can contain a hierarchical list * of attribute and member names separated by slashes, for example * "media-col/media-size". */ ipp_attribute_t * /* O - Matching attribute */ ippFindNextAttribute(ipp_t *ipp, /* I - IPP message */ const char *name, /* I - Name of attribute */ ipp_tag_t type) /* I - Type of attribute */ { ipp_attribute_t *attr, /* Current attribute */ *childattr; /* Child attribute */ ipp_tag_t value_tag; /* Value tag */ char parent[1024], /* Parent attribute name */ *child = NULL; /* Child attribute name */ DEBUG_printf(("2ippFindNextAttribute(ipp=%p, name=\"%s\", type=%02x(%s))", (void *)ipp, name, type, ippTagString(type))); if (!ipp || !name) return (NULL); DEBUG_printf(("3ippFindNextAttribute: atend=%d", ipp->atend)); if (ipp->atend) return (NULL); if (strchr(name, '/')) { /* * Search for child attribute... */ strlcpy(parent, name, sizeof(parent)); if ((child = strchr(parent, '/')) == NULL) { DEBUG_puts("3ippFindNextAttribute: Attribute name too long."); return (NULL); } *child++ = '\0'; if (ipp->current && ipp->current->name && ipp->current->value_tag == IPP_TAG_BEGIN_COLLECTION && !strcmp(parent, ipp->current->name)) { while (ipp->curindex < ipp->current->num_values) { if ((childattr = ippFindNextAttribute(ipp->current->values[ipp->curindex].collection, child, type)) != NULL) return (childattr); ipp->curindex ++; if (ipp->curindex < ipp->current->num_values && ipp->current->values[ipp->curindex].collection) ipp->current->values[ipp->curindex].collection->current = NULL; } ipp->prev = ipp->current; ipp->current = ipp->current->next; ipp->curindex = 0; if (!ipp->current) { ipp->atend = 1; return (NULL); } } if (!ipp->current) { ipp->prev = NULL; ipp->current = ipp->attrs; ipp->curindex = 0; } name = parent; attr = ipp->current; } else if (ipp->current) { ipp->prev = ipp->current; attr = ipp->current->next; } else { ipp->prev = NULL; attr = ipp->attrs; } for (; attr != NULL; ipp->prev = attr, attr = attr->next) { DEBUG_printf(("4ippFindAttribute: attr=%p, name=\"%s\"", (void *)attr, attr->name)); value_tag = (ipp_tag_t)(attr->value_tag & IPP_TAG_CUPS_MASK); if (attr->name != NULL && _cups_strcasecmp(attr->name, name) == 0 && (value_tag == type || type == IPP_TAG_ZERO || name == parent || (value_tag == IPP_TAG_TEXTLANG && type == IPP_TAG_TEXT) || (value_tag == IPP_TAG_NAMELANG && type == IPP_TAG_NAME))) { ipp->current = attr; if (name == parent && attr->value_tag == IPP_TAG_BEGIN_COLLECTION) { int i; /* Looping var */ for (i = 0; i < attr->num_values; i ++) { if ((childattr = ippFindAttribute(attr->values[i].collection, child, type)) != NULL) { attr->values[0].collection->curindex = i; return (childattr); } } } else return (attr); } } ipp->current = NULL; ipp->prev = NULL; ipp->atend = 1; return (NULL); } /* * 'ippFirstAttribute()' - Return the first attribute in the message. * * @since CUPS 1.6/macOS 10.8@ */ ipp_attribute_t * /* O - First attribute or @code NULL@ if none */ ippFirstAttribute(ipp_t *ipp) /* I - IPP message */ { /* * Range check input... */ if (!ipp) return (NULL); /* * Return the first attribute... */ return (ipp->current = ipp->attrs); } /* * 'ippGetBoolean()' - Get a boolean value for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Boolean value or 0 on error */ ippGetBoolean(ipp_attribute_t *attr, /* I - IPP attribute */ int element) /* I - Value number (0-based) */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_BOOLEAN || element < 0 || element >= attr->num_values) return (0); /* * Return the value... */ return (attr->values[element].boolean); } /* * 'ippGetCollection()' - Get a collection value for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ ipp_t * /* O - Collection value or @code NULL@ on error */ ippGetCollection( ipp_attribute_t *attr, /* I - IPP attribute */ int element) /* I - Value number (0-based) */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_BEGIN_COLLECTION || element < 0 || element >= attr->num_values) return (NULL); /* * Return the value... */ return (attr->values[element].collection); } /* * 'ippGetCount()' - Get the number of values in an attribute. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Number of values or 0 on error */ ippGetCount(ipp_attribute_t *attr) /* I - IPP attribute */ { /* * Range check input... */ if (!attr) return (0); /* * Return the number of values... */ return (attr->num_values); } /* * 'ippGetDate()' - Get a dateTime value for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ const ipp_uchar_t * /* O - dateTime value or @code NULL@ */ ippGetDate(ipp_attribute_t *attr, /* I - IPP attribute */ int element) /* I - Value number (0-based) */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_DATE || element < 0 || element >= attr->num_values) return (NULL); /* * Return the value... */ return (attr->values[element].date); } /* * 'ippGetGroupTag()' - Get the group associated with an attribute. * * @since CUPS 1.6/macOS 10.8@ */ ipp_tag_t /* O - Group tag or @code IPP_TAG_ZERO@ on error */ ippGetGroupTag(ipp_attribute_t *attr) /* I - IPP attribute */ { /* * Range check input... */ if (!attr) return (IPP_TAG_ZERO); /* * Return the group... */ return (attr->group_tag); } /* * 'ippGetInteger()' - Get the integer/enum value for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Value or 0 on error */ ippGetInteger(ipp_attribute_t *attr, /* I - IPP attribute */ int element) /* I - Value number (0-based) */ { /* * Range check input... */ if (!attr || (attr->value_tag != IPP_TAG_INTEGER && attr->value_tag != IPP_TAG_ENUM) || element < 0 || element >= attr->num_values) return (0); /* * Return the value... */ return (attr->values[element].integer); } /* * 'ippGetName()' - Get the attribute name. * * @since CUPS 1.6/macOS 10.8@ */ const char * /* O - Attribute name or @code NULL@ for separators */ ippGetName(ipp_attribute_t *attr) /* I - IPP attribute */ { /* * Range check input... */ if (!attr) return (NULL); /* * Return the name... */ return (attr->name); } /* * 'ippGetOctetString()' - Get an octetString value from an IPP attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.7/macOS 10.9@ */ void * /* O - Pointer to octetString data */ ippGetOctetString( ipp_attribute_t *attr, /* I - IPP attribute */ int element, /* I - Value number (0-based) */ int *datalen) /* O - Length of octetString data */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_STRING || element < 0 || element >= attr->num_values) { if (datalen) *datalen = 0; return (NULL); } /* * Return the values... */ if (datalen) *datalen = attr->values[element].unknown.length; return (attr->values[element].unknown.data); } /* * 'ippGetOperation()' - Get the operation ID in an IPP message. * * @since CUPS 1.6/macOS 10.8@ */ ipp_op_t /* O - Operation ID or 0 on error */ ippGetOperation(ipp_t *ipp) /* I - IPP request message */ { /* * Range check input... */ if (!ipp) return ((ipp_op_t)0); /* * Return the value... */ return (ipp->request.op.operation_id); } /* * 'ippGetRange()' - Get a rangeOfInteger value from an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Lower value of range or 0 */ ippGetRange(ipp_attribute_t *attr, /* I - IPP attribute */ int element, /* I - Value number (0-based) */ int *uppervalue)/* O - Upper value of range */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_RANGE || element < 0 || element >= attr->num_values) { if (uppervalue) *uppervalue = 0; return (0); } /* * Return the values... */ if (uppervalue) *uppervalue = attr->values[element].range.upper; return (attr->values[element].range.lower); } /* * 'ippGetRequestId()' - Get the request ID from an IPP message. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Request ID or 0 on error */ ippGetRequestId(ipp_t *ipp) /* I - IPP message */ { /* * Range check input... */ if (!ipp) return (0); /* * Return the request ID... */ return (ipp->request.any.request_id); } /* * 'ippGetResolution()' - Get a resolution value for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Horizontal/cross feed resolution or 0 */ ippGetResolution( ipp_attribute_t *attr, /* I - IPP attribute */ int element, /* I - Value number (0-based) */ int *yres, /* O - Vertical/feed resolution */ ipp_res_t *units) /* O - Units for resolution */ { /* * Range check input... */ if (!attr || attr->value_tag != IPP_TAG_RESOLUTION || element < 0 || element >= attr->num_values) { if (yres) *yres = 0; if (units) *units = (ipp_res_t)0; return (0); } /* * Return the value... */ if (yres) *yres = attr->values[element].resolution.yres; if (units) *units = attr->values[element].resolution.units; return (attr->values[element].resolution.xres); } /* * 'ippGetState()' - Get the IPP message state. * * @since CUPS 1.6/macOS 10.8@ */ ipp_state_t /* O - IPP message state value */ ippGetState(ipp_t *ipp) /* I - IPP message */ { /* * Range check input... */ if (!ipp) return (IPP_STATE_IDLE); /* * Return the value... */ return (ipp->state); } /* * 'ippGetStatusCode()' - Get the status code from an IPP response or event message. * * @since CUPS 1.6/macOS 10.8@ */ ipp_status_t /* O - Status code in IPP message */ ippGetStatusCode(ipp_t *ipp) /* I - IPP response or event message */ { /* * Range check input... */ if (!ipp) return (IPP_STATUS_ERROR_INTERNAL); /* * Return the value... */ return (ipp->request.status.status_code); } /* * 'ippGetString()' - Get the string and optionally the language code for an attribute. * * The @code element@ parameter specifies which value to get from 0 to * @code ippGetCount(attr)@ - 1. * * @since CUPS 1.6/macOS 10.8@ */ const char * ippGetString(ipp_attribute_t *attr, /* I - IPP attribute */ int element, /* I - Value number (0-based) */ const char **language)/* O - Language code (@code NULL@ for don't care) */ { ipp_tag_t tag; /* Value tag */ /* * Range check input... */ tag = ippGetValueTag(attr); if (!attr || element < 0 || element >= attr->num_values || (tag != IPP_TAG_TEXTLANG && tag != IPP_TAG_NAMELANG && (tag < IPP_TAG_TEXT || tag > IPP_TAG_MIMETYPE))) return (NULL); /* * Return the value... */ if (language) *language = attr->values[element].string.language; return (attr->values[element].string.text); } /* * 'ippGetValueTag()' - Get the value tag for an attribute. * * @since CUPS 1.6/macOS 10.8@ */ ipp_tag_t /* O - Value tag or @code IPP_TAG_ZERO@ on error */ ippGetValueTag(ipp_attribute_t *attr) /* I - IPP attribute */ { /* * Range check input... */ if (!attr) return (IPP_TAG_ZERO); /* * Return the value... */ return (attr->value_tag & IPP_TAG_CUPS_MASK); } /* * 'ippGetVersion()' - Get the major and minor version number from an IPP message. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - Major version number or 0 on error */ ippGetVersion(ipp_t *ipp, /* I - IPP message */ int *minor) /* O - Minor version number or @code NULL@ for don't care */ { /* * Range check input... */ if (!ipp) { if (minor) *minor = 0; return (0); } /* * Return the value... */ if (minor) *minor = ipp->request.any.version[1]; return (ipp->request.any.version[0]); } /* * 'ippLength()' - Compute the length of an IPP message. */ size_t /* O - Size of IPP message */ ippLength(ipp_t *ipp) /* I - IPP message */ { return (ipp_length(ipp, 0)); } /* * 'ippNextAttribute()' - Return the next attribute in the message. * * @since CUPS 1.6/macOS 10.8@ */ ipp_attribute_t * /* O - Next attribute or @code NULL@ if none */ ippNextAttribute(ipp_t *ipp) /* I - IPP message */ { /* * Range check input... */ if (!ipp || !ipp->current) return (NULL); /* * Return the next attribute... */ return (ipp->current = ipp->current->next); } /* * 'ippNew()' - Allocate a new IPP message. */ ipp_t * /* O - New IPP message */ ippNew(void) { ipp_t *temp; /* New IPP message */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ DEBUG_puts("ippNew()"); if ((temp = (ipp_t *)calloc(1, sizeof(ipp_t))) != NULL) { /* * Set default version - usually 2.0... */ DEBUG_printf(("4debug_alloc: %p IPP message", (void *)temp)); if (cg->server_version == 0) _cupsSetDefaults(); temp->request.any.version[0] = (ipp_uchar_t)(cg->server_version / 10); temp->request.any.version[1] = (ipp_uchar_t)(cg->server_version % 10); temp->use = 1; } DEBUG_printf(("1ippNew: Returning %p", (void *)temp)); return (temp); } /* * 'ippNewRequest()' - Allocate a new IPP request message. * * The new request message is initialized with the "attributes-charset" and * "attributes-natural-language" attributes added. The * "attributes-natural-language" value is derived from the current locale. * * @since CUPS 1.2/macOS 10.5@ */ ipp_t * /* O - IPP request message */ ippNewRequest(ipp_op_t op) /* I - Operation code */ { ipp_t *request; /* IPP request message */ cups_lang_t *language; /* Current language localization */ static int request_id = 0; /* Current request ID */ static _cups_mutex_t request_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex for request ID */ DEBUG_printf(("ippNewRequest(op=%02x(%s))", op, ippOpString(op))); /* * Create a new IPP message... */ if ((request = ippNew()) == NULL) return (NULL); /* * Set the operation and request ID... */ _cupsMutexLock(&request_mutex); request->request.op.operation_id = op; request->request.op.request_id = ++request_id; _cupsMutexUnlock(&request_mutex); /* * Use UTF-8 as the character set... */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); /* * Get the language from the current locale... */ language = cupsLangDefault(); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, language->language); /* * Return the new request... */ return (request); } /* * 'ippNewResponse()' - Allocate a new IPP response message. * * The new response message is initialized with the same "version-number", * "request-id", "attributes-charset", and "attributes-natural-language" as the * provided request message. If the "attributes-charset" or * "attributes-natural-language" attributes are missing from the request, * 'utf-8' and a value derived from the current locale are substituted, * respectively. * * @since CUPS 1.7/macOS 10.9@ */ ipp_t * /* O - IPP response message */ ippNewResponse(ipp_t *request) /* I - IPP request message */ { ipp_t *response; /* IPP response message */ ipp_attribute_t *attr; /* Current attribute */ /* * Range check input... */ if (!request) return (NULL); /* * Create a new IPP message... */ if ((response = ippNew()) == NULL) return (NULL); /* * Copy the request values over to the response... */ response->request.status.version[0] = request->request.op.version[0]; response->request.status.version[1] = request->request.op.version[1]; response->request.status.request_id = request->request.op.request_id; /* * The first attribute MUST be attributes-charset... */ attr = request->attrs; if (attr && attr->name && !strcmp(attr->name, "attributes-charset") && attr->group_tag == IPP_TAG_OPERATION && attr->value_tag == IPP_TAG_CHARSET && attr->num_values == 1) { /* * Copy charset from request... */ ippAddString(response, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, attr->values[0].string.text); } else { /* * Use "utf-8" as the default... */ ippAddString(response, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8"); } /* * Then attributes-natural-language... */ if (attr) attr = attr->next; if (attr && attr->name && !strcmp(attr->name, "attributes-natural-language") && attr->group_tag == IPP_TAG_OPERATION && attr->value_tag == IPP_TAG_LANGUAGE && attr->num_values == 1) { /* * Copy language from request... */ ippAddString(response, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, attr->values[0].string.text); } else { /* * Use the language from the current locale... */ cups_lang_t *language = cupsLangDefault(); /* Current locale */ ippAddString(response, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE, "attributes-natural-language", NULL, language->language); } return (response); } /* * 'ippRead()' - Read data for an IPP message from a HTTP connection. */ ipp_state_t /* O - Current state */ ippRead(http_t *http, /* I - HTTP connection */ ipp_t *ipp) /* I - IPP data */ { DEBUG_printf(("ippRead(http=%p, ipp=%p), data_remaining=" CUPS_LLFMT, (void *)http, (void *)ipp, CUPS_LLCAST (http ? http->data_remaining : -1))); if (!http) return (IPP_STATE_ERROR); DEBUG_printf(("2ippRead: http->state=%d, http->used=%d", http->state, http->used)); return (ippReadIO(http, (ipp_iocb_t)ipp_read_http, http->blocking, NULL, ipp)); } /* * 'ippReadFile()' - Read data for an IPP message from a file. * * @since CUPS 1.1.19/macOS 10.3@ */ ipp_state_t /* O - Current state */ ippReadFile(int fd, /* I - HTTP data */ ipp_t *ipp) /* I - IPP data */ { DEBUG_printf(("ippReadFile(fd=%d, ipp=%p)", fd, (void *)ipp)); return (ippReadIO(&fd, (ipp_iocb_t)ipp_read_file, 1, NULL, ipp)); } /* * 'ippReadIO()' - Read data for an IPP message. * * @since CUPS 1.2/macOS 10.5@ */ ipp_state_t /* O - Current state */ ippReadIO(void *src, /* I - Data source */ ipp_iocb_t cb, /* I - Read callback function */ int blocking, /* I - Use blocking IO? */ ipp_t *parent, /* I - Parent request, if any */ ipp_t *ipp) /* I - IPP data */ { int n; /* Length of data */ unsigned char *buffer, /* Data buffer */ string[IPP_MAX_TEXT], /* Small string buffer */ *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ ipp_attribute_t *attr = NULL; /* Current attribute */ ipp_tag_t tag; /* Current tag */ ipp_tag_t value_tag; /* Current value tag */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippReadIO(src=%p, cb=%p, blocking=%d, parent=%p, ipp=%p)", (void *)src, (void *)cb, blocking, (void *)parent, (void *)ipp)); DEBUG_printf(("2ippReadIO: ipp->state=%d", ipp ? ipp->state : IPP_STATE_ERROR)); if (!src || !ipp) return (IPP_STATE_ERROR); if ((buffer = (unsigned char *)_cupsBufferGet(IPP_BUF_SIZE)) == NULL) { DEBUG_puts("1ippReadIO: Unable to get read buffer."); return (IPP_STATE_ERROR); } switch (ipp->state) { case IPP_STATE_IDLE : ipp->state ++; /* Avoid common problem... */ case IPP_STATE_HEADER : if (parent == NULL) { /* * Get the request header... */ if ((*cb)(src, buffer, 8) < 8) { DEBUG_puts("1ippReadIO: Unable to read header."); goto rollback; } /* * Then copy the request header over... */ ipp->request.any.version[0] = buffer[0]; ipp->request.any.version[1] = buffer[1]; ipp->request.any.op_status = (buffer[2] << 8) | buffer[3]; ipp->request.any.request_id = (buffer[4] << 24) | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; DEBUG_printf(("2ippReadIO: version=%d.%d", buffer[0], buffer[1])); DEBUG_printf(("2ippReadIO: op_status=%04x", ipp->request.any.op_status)); DEBUG_printf(("2ippReadIO: request_id=%d", ipp->request.any.request_id)); } ipp->state = IPP_STATE_ATTRIBUTE; ipp->current = NULL; ipp->curtag = IPP_TAG_ZERO; ipp->prev = ipp->last; /* * If blocking is disabled, stop here... */ if (!blocking) break; case IPP_STATE_ATTRIBUTE : for (;;) { if ((*cb)(src, buffer, 1) < 1) { DEBUG_puts("1ippReadIO: Callback returned EOF/error"); goto rollback; } DEBUG_printf(("2ippReadIO: ipp->current=%p, ipp->prev=%p", (void *)ipp->current, (void *)ipp->prev)); /* * Read this attribute... */ tag = (ipp_tag_t)buffer[0]; if (tag == IPP_TAG_EXTENSION) { /* * Read 32-bit "extension" tag... */ if ((*cb)(src, buffer, 4) < 4) { DEBUG_puts("1ippReadIO: Callback returned EOF/error"); goto rollback; } tag = (ipp_tag_t)((buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]); if (tag & IPP_TAG_CUPS_CONST) { /* * Fail if the high bit is set in the tag... */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP extension tag larger than 0x7FFFFFFF."), 1); DEBUG_printf(("1ippReadIO: bad tag 0x%x.", tag)); goto rollback; } } if (tag == IPP_TAG_END) { /* * No more attributes left... */ DEBUG_puts("2ippReadIO: IPP_TAG_END."); ipp->state = IPP_STATE_DATA; break; } else if (tag == IPP_TAG_ZERO || (tag == IPP_TAG_OPERATION && ipp->curtag != IPP_TAG_ZERO)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid group tag."), 1); DEBUG_printf(("1ippReadIO: bad tag 0x%02x.", tag)); goto rollback; } else if (tag < IPP_TAG_UNSUPPORTED_VALUE) { /* * Group tag... Set the current group and continue... */ if (parent) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid group tag."), 1); DEBUG_printf(("1ippReadIO: bad tag 0x%02x.", tag)); goto rollback; } else if (ipp->curtag == tag) ipp->prev = ippAddSeparator(ipp); else if (ipp->current) ipp->prev = ipp->current; ipp->curtag = tag; ipp->current = NULL; attr = NULL; DEBUG_printf(("2ippReadIO: group tag=%x(%s), ipp->prev=%p", tag, ippTagString(tag), (void *)ipp->prev)); continue; } DEBUG_printf(("2ippReadIO: value tag=%x(%s)", tag, ippTagString(tag))); /* * Get the name... */ if ((*cb)(src, buffer, 2) < 2) { DEBUG_puts("1ippReadIO: unable to read name length."); goto rollback; } n = (buffer[0] << 8) | buffer[1]; if (n >= IPP_BUF_SIZE) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP name larger than 32767 bytes."), 1); DEBUG_printf(("1ippReadIO: bad name length %d.", n)); goto rollback; } DEBUG_printf(("2ippReadIO: name length=%d", n)); if (n && parent) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid named IPP attribute in collection."), 1); DEBUG_puts("1ippReadIO: bad attribute name in collection."); goto rollback; } else if (n == 0 && tag != IPP_TAG_MEMBERNAME && tag != IPP_TAG_END_COLLECTION) { /* * More values for current attribute... */ if (ipp->current == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP attribute has no name."), 1); DEBUG_puts("1ippReadIO: Attribute without name and no current."); goto rollback; } attr = ipp->current; value_tag = (ipp_tag_t)(attr->value_tag & IPP_TAG_CUPS_MASK); /* * Make sure we aren't adding a new value of a different * type... */ if (value_tag == IPP_TAG_ZERO) { /* * Setting the value of a collection member... */ attr->value_tag = tag; } else if (value_tag == IPP_TAG_TEXTLANG || value_tag == IPP_TAG_NAMELANG || (value_tag >= IPP_TAG_TEXT && value_tag <= IPP_TAG_MIMETYPE)) { /* * String values can sometimes come across in different * forms; accept sets of differing values... */ if (tag != IPP_TAG_TEXTLANG && tag != IPP_TAG_NAMELANG && (tag < IPP_TAG_TEXT || tag > IPP_TAG_MIMETYPE) && tag != IPP_TAG_NOVALUE) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP 1setOf attribute with incompatible value " "tags."), 1); DEBUG_printf(("1ippReadIO: 1setOf value tag %x(%s) != %x(%s)", value_tag, ippTagString(value_tag), tag, ippTagString(tag))); goto rollback; } if (value_tag != tag) { DEBUG_printf(("1ippReadIO: Converting %s attribute from %s to %s.", attr->name, ippTagString(value_tag), ippTagString(tag))); ippSetValueTag(ipp, &attr, tag); } } else if (value_tag == IPP_TAG_INTEGER || value_tag == IPP_TAG_RANGE) { /* * Integer and rangeOfInteger values can sometimes be mixed; accept * sets of differing values... */ if (tag != IPP_TAG_INTEGER && tag != IPP_TAG_RANGE) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP 1setOf attribute with incompatible value " "tags."), 1); DEBUG_printf(("1ippReadIO: 1setOf value tag %x(%s) != %x(%s)", value_tag, ippTagString(value_tag), tag, ippTagString(tag))); goto rollback; } if (value_tag == IPP_TAG_INTEGER && tag == IPP_TAG_RANGE) { /* * Convert integer values to rangeOfInteger values... */ DEBUG_printf(("1ippReadIO: Converting %s attribute to " "rangeOfInteger.", attr->name)); ippSetValueTag(ipp, &attr, IPP_TAG_RANGE); } } else if (value_tag != tag) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP 1setOf attribute with incompatible value " "tags."), 1); DEBUG_printf(("1ippReadIO: value tag %x(%s) != %x(%s)", value_tag, ippTagString(value_tag), tag, ippTagString(tag))); goto rollback; } /* * Finally, reallocate the attribute array as needed... */ if ((value = ipp_set_value(ipp, &attr, attr->num_values)) == NULL) goto rollback; } else if (tag == IPP_TAG_MEMBERNAME) { /* * Name must be length 0! */ if (n) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP member name is not empty."), 1); DEBUG_puts("1ippReadIO: member name not empty."); goto rollback; } else if (!parent) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP member attribute outside of collection."), 1); DEBUG_puts("1ippReadIO: member attribute outside of collection."); goto rollback; } if (ipp->current) ipp->prev = ipp->current; attr = ipp->current = ipp_add_attr(ipp, NULL, ipp->curtag, IPP_TAG_ZERO, 1); if (!attr) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_puts("1ippReadIO: unable to allocate attribute."); goto rollback; } DEBUG_printf(("2ippReadIO: membername, ipp->current=%p, ipp->prev=%p", (void *)ipp->current, (void *)ipp->prev)); value = attr->values; } else if (tag != IPP_TAG_END_COLLECTION) { /* * New attribute; read the name and add it... */ if ((*cb)(src, buffer, (size_t)n) < n) { DEBUG_puts("1ippReadIO: unable to read name."); goto rollback; } buffer[n] = '\0'; if (ipp->current) ipp->prev = ipp->current; if ((attr = ipp->current = ipp_add_attr(ipp, (char *)buffer, ipp->curtag, tag, 1)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_puts("1ippReadIO: unable to allocate attribute."); goto rollback; } DEBUG_printf(("2ippReadIO: name=\"%s\", ipp->current=%p, ipp->prev=%p", buffer, (void *)ipp->current, (void *)ipp->prev)); value = attr->values; } else { attr = NULL; value = NULL; } if ((*cb)(src, buffer, 2) < 2) { DEBUG_puts("1ippReadIO: unable to read value length."); goto rollback; } n = (buffer[0] << 8) | buffer[1]; DEBUG_printf(("2ippReadIO: value length=%d", n)); if (n >= IPP_BUF_SIZE) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP value larger than 32767 bytes."), 1); DEBUG_printf(("1ippReadIO: bad value length %d.", n)); goto rollback; } switch (tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : if (n != 4) { if (tag == IPP_TAG_INTEGER) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP integer value not 4 bytes."), 1); else _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP enum value not 4 bytes."), 1); DEBUG_printf(("1ippReadIO: bad integer value length %d.", n)); goto rollback; } if ((*cb)(src, buffer, 4) < 4) { DEBUG_puts("1ippReadIO: Unable to read integer value."); goto rollback; } n = (buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; if (attr->value_tag == IPP_TAG_RANGE) value->range.lower = value->range.upper = n; else value->integer = n; break; case IPP_TAG_BOOLEAN : if (n != 1) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP boolean value not 1 byte."), 1); DEBUG_printf(("1ippReadIO: bad boolean value length %d.", n)); goto rollback; } if ((*cb)(src, buffer, 1) < 1) { DEBUG_puts("1ippReadIO: Unable to read boolean value."); goto rollback; } value->boolean = (char)buffer[0]; break; case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : /* * These value types are not supposed to have values, however * some vendors (Brother) do not implement IPP correctly and so * we need to map non-empty values to text... */ if (attr->value_tag == tag) { if (n == 0) break; attr->value_tag = IPP_TAG_TEXT; } case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_RESERVED_STRING : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : if (n > 0) { if ((*cb)(src, buffer, (size_t)n) < n) { DEBUG_puts("1ippReadIO: unable to read string value."); goto rollback; } } buffer[n] = '\0'; value->string.text = _cupsStrAlloc((char *)buffer); DEBUG_printf(("2ippReadIO: value=\"%s\"", value->string.text)); break; case IPP_TAG_DATE : if (n != 11) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP date value not 11 bytes."), 1); DEBUG_printf(("1ippReadIO: bad date value length %d.", n)); goto rollback; } if ((*cb)(src, value->date, 11) < 11) { DEBUG_puts("1ippReadIO: Unable to read date value."); goto rollback; } break; case IPP_TAG_RESOLUTION : if (n != 9) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP resolution value not 9 bytes."), 1); DEBUG_printf(("1ippReadIO: bad resolution value length %d.", n)); goto rollback; } if ((*cb)(src, buffer, 9) < 9) { DEBUG_puts("1ippReadIO: Unable to read resolution value."); goto rollback; } value->resolution.xres = (buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; value->resolution.yres = (buffer[4] << 24) | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; value->resolution.units = (ipp_res_t)buffer[8]; break; case IPP_TAG_RANGE : if (n != 8) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP rangeOfInteger value not 8 bytes."), 1); DEBUG_printf(("1ippReadIO: bad rangeOfInteger value length " "%d.", n)); goto rollback; } if ((*cb)(src, buffer, 8) < 8) { DEBUG_puts("1ippReadIO: Unable to read range value."); goto rollback; } value->range.lower = (buffer[0] << 24) | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; value->range.upper = (buffer[4] << 24) | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : if (n < 4) { if (tag == IPP_TAG_TEXTLANG) _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP textWithLanguage value less than " "minimum 4 bytes."), 1); else _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP nameWithLanguage value less than " "minimum 4 bytes."), 1); DEBUG_printf(("1ippReadIO: bad stringWithLanguage value " "length %d.", n)); goto rollback; } if ((*cb)(src, buffer, (size_t)n) < n) { DEBUG_puts("1ippReadIO: Unable to read string w/language " "value."); goto rollback; } bufptr = buffer; bufend = buffer + n; /* * text-with-language and name-with-language are composite * values: * * language-length * language * text-length * text */ n = (bufptr[0] << 8) | bufptr[1]; if ((bufptr + 2 + n + 2) > bufend || n >= (int)sizeof(string)) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP language length overflows value."), 1); DEBUG_printf(("1ippReadIO: bad language value length %d.", n)); goto rollback; } else if (n >= IPP_MAX_LANGUAGE) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP language length too large."), 1); DEBUG_printf(("1ippReadIO: bad language value length %d.", n)); goto rollback; } memcpy(string, bufptr + 2, (size_t)n); string[n] = '\0'; value->string.language = _cupsStrAlloc((char *)string); bufptr += 2 + n; n = (bufptr[0] << 8) | bufptr[1]; if ((bufptr + 2 + n) > bufend) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP string length overflows value."), 1); DEBUG_printf(("1ippReadIO: bad string value length %d.", n)); goto rollback; } bufptr[2 + n] = '\0'; value->string.text = _cupsStrAlloc((char *)bufptr + 2); break; case IPP_TAG_BEGIN_COLLECTION : /* * Oh, boy, here comes a collection value, so read it... */ value->collection = ippNew(); if (n > 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP begCollection value not 0 bytes."), 1); DEBUG_puts("1ippReadIO: begCollection tag with value length " "> 0."); goto rollback; } if (ippReadIO(src, cb, 1, ipp, value->collection) == IPP_STATE_ERROR) { DEBUG_puts("1ippReadIO: Unable to read collection value."); goto rollback; } break; case IPP_TAG_END_COLLECTION : if (n > 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP endCollection value not 0 bytes."), 1); DEBUG_puts("1ippReadIO: endCollection tag with value length " "> 0."); goto rollback; } _cupsBufferRelease((char *)buffer); DEBUG_puts("1ippReadIO: endCollection tag..."); return (ipp->state = IPP_STATE_DATA); case IPP_TAG_MEMBERNAME : /* * The value the name of the member in the collection, which * we need to carry over... */ if (!attr) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName with no attribute."), 1); DEBUG_puts("1ippReadIO: Member name without attribute."); goto rollback; } else if (n == 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName value is empty."), 1); DEBUG_puts("1ippReadIO: Empty member name value."); goto rollback; } else if ((*cb)(src, buffer, (size_t)n) < n) { DEBUG_puts("1ippReadIO: Unable to read member name value."); goto rollback; } buffer[n] = '\0'; attr->name = _cupsStrAlloc((char *)buffer); /* * Since collection members are encoded differently than * regular attributes, make sure we don't start with an * empty value... */ attr->num_values --; DEBUG_printf(("2ippReadIO: member name=\"%s\"", attr->name)); break; case IPP_TAG_STRING : default : /* Other unsupported values */ if (tag == IPP_TAG_STRING && n > IPP_MAX_LENGTH) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP octetString length too large."), 1); DEBUG_printf(("1ippReadIO: bad octetString value length %d.", n)); goto rollback; } value->unknown.length = n; if (n > 0) { if ((value->unknown.data = malloc((size_t)n)) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_puts("1ippReadIO: Unable to allocate value"); goto rollback; } if ((*cb)(src, value->unknown.data, (size_t)n) < n) { DEBUG_puts("1ippReadIO: Unable to read unsupported value."); goto rollback; } } else value->unknown.data = NULL; break; } /* * If blocking is disabled, stop here... */ if (!blocking) break; } break; case IPP_STATE_DATA : break; default : break; /* anti-compiler-warning-code */ } DEBUG_printf(("1ippReadIO: returning ipp->state=%d.", ipp->state)); _cupsBufferRelease((char *)buffer); return (ipp->state); // If we get here, there was an error that required us to roll back the last // attribute read in order to keep the IPP message valid... rollback: _cupsBufferRelease((char *)buffer); if (attr) ippDeleteAttribute(ipp, attr); return (IPP_STATE_ERROR); } /* * 'ippSetBoolean()' - Set a boolean value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetBoolean(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ int boolvalue)/* I - Boolean value */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || (*attr)->value_tag != IPP_TAG_BOOLEAN || element < 0 || element > (*attr)->num_values) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) value->boolean = (char)boolvalue; return (value != NULL); } /* * 'ippSetCollection()' - Set a collection value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetCollection( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ ipp_t *colvalue) /* I - Collection value */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || (*attr)->value_tag != IPP_TAG_BEGIN_COLLECTION || element < 0 || element > (*attr)->num_values || !colvalue) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { if (value->collection) ippDelete(value->collection); value->collection = colvalue; colvalue->use ++; } return (value != NULL); } /* * 'ippSetDate()' - Set a dateTime value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetDate(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ const ipp_uchar_t *datevalue)/* I - dateTime value */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || ((*attr)->value_tag != IPP_TAG_DATE && (*attr)->value_tag != IPP_TAG_NOVALUE && (*attr)->value_tag != IPP_TAG_UNKNOWN) || element < 0 || element > (*attr)->num_values || !datevalue) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) memcpy(value->date, datevalue, sizeof(value->date)); return (value != NULL); } /* * 'ippSetGroupTag()' - Set the group tag of an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code group@ parameter specifies the IPP attribute group tag: none * (@code IPP_TAG_ZERO@, for member attributes), document (@code IPP_TAG_DOCUMENT@), * event notification (@code IPP_TAG_EVENT_NOTIFICATION@), operation * (@code IPP_TAG_OPERATION@), printer (@code IPP_TAG_PRINTER@), subscription * (@code IPP_TAG_SUBSCRIPTION@), or unsupported (@code IPP_TAG_UNSUPPORTED_GROUP@). * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetGroupTag( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - Attribute */ ipp_tag_t group_tag) /* I - Group tag */ { /* * Range check input - group tag must be 0x01 to 0x0F, per RFC 8011... */ if (!ipp || !attr || !*attr || group_tag < IPP_TAG_ZERO || group_tag == IPP_TAG_END || group_tag >= IPP_TAG_UNSUPPORTED_VALUE) return (0); /* * Set the group tag and return... */ (*attr)->group_tag = group_tag; return (1); } /* * 'ippSetInteger()' - Set an integer or enum value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetInteger(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ int intvalue) /* I - Integer/enum value */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || ((*attr)->value_tag != IPP_TAG_INTEGER && (*attr)->value_tag != IPP_TAG_ENUM && (*attr)->value_tag != IPP_TAG_NOVALUE && (*attr)->value_tag != IPP_TAG_UNKNOWN) || element < 0 || element > (*attr)->num_values) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { if ((*attr)->value_tag != IPP_TAG_ENUM) (*attr)->value_tag = IPP_TAG_INTEGER; value->integer = intvalue; } return (value != NULL); } /* * 'ippSetName()' - Set the name of an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetName(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ const char *name) /* I - Attribute name */ { char *temp; /* Temporary name value */ /* * Range check input... */ if (!ipp || !attr || !*attr) return (0); /* * Set the value and return... */ if ((temp = _cupsStrAlloc(name)) != NULL) { if ((*attr)->name) _cupsStrFree((*attr)->name); (*attr)->name = temp; } return (temp != NULL); } /* * 'ippSetOctetString()' - Set an octetString value in an IPP attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ ippSetOctetString( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ const void *data, /* I - Pointer to octetString data */ int datalen) /* I - Length of octetString data */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || ((*attr)->value_tag != IPP_TAG_STRING && (*attr)->value_tag != IPP_TAG_NOVALUE && (*attr)->value_tag != IPP_TAG_UNKNOWN) || element < 0 || element > (*attr)->num_values || datalen < 0 || datalen > IPP_MAX_LENGTH) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { if ((int)((*attr)->value_tag) & IPP_TAG_CUPS_CONST) { /* * Just copy the pointer... */ value->unknown.data = (void *)data; value->unknown.length = datalen; } else { /* * Copy the data... */ (*attr)->value_tag = IPP_TAG_STRING; if (value->unknown.data) { /* * Free previous data... */ free(value->unknown.data); value->unknown.data = NULL; value->unknown.length = 0; } if (datalen > 0) { void *temp; /* Temporary data pointer */ if ((temp = malloc((size_t)datalen)) != NULL) { memcpy(temp, data, (size_t)datalen); value->unknown.data = temp; value->unknown.length = datalen; } else return (0); } } } return (value != NULL); } /* * 'ippSetOperation()' - Set the operation ID in an IPP request message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetOperation(ipp_t *ipp, /* I - IPP request message */ ipp_op_t op) /* I - Operation ID */ { /* * Range check input... */ if (!ipp) return (0); /* * Set the operation and return... */ ipp->request.op.operation_id = op; return (1); } /* * 'ippSetRange()' - Set a rangeOfInteger value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetRange(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ int lowervalue, /* I - Lower bound for range */ int uppervalue) /* I - Upper bound for range */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || ((*attr)->value_tag != IPP_TAG_RANGE && (*attr)->value_tag != IPP_TAG_NOVALUE && (*attr)->value_tag != IPP_TAG_UNKNOWN) || element < 0 || element > (*attr)->num_values || lowervalue > uppervalue) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { (*attr)->value_tag = IPP_TAG_RANGE; value->range.lower = lowervalue; value->range.upper = uppervalue; } return (value != NULL); } /* * 'ippSetRequestId()' - Set the request ID in an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code request_id@ parameter must be greater than 0. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetRequestId(ipp_t *ipp, /* I - IPP message */ int request_id) /* I - Request ID */ { /* * Range check input; not checking request_id values since ipptool wants to send * invalid values for conformance testing and a bad request_id does not affect the * encoding of a message... */ if (!ipp) return (0); /* * Set the request ID and return... */ ipp->request.any.request_id = request_id; return (1); } /* * 'ippSetResolution()' - Set a resolution value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetResolution( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ ipp_res_t unitsvalue, /* I - Resolution units */ int xresvalue, /* I - Horizontal/cross feed resolution */ int yresvalue) /* I - Vertical/feed resolution */ { _ipp_value_t *value; /* Current value */ /* * Range check input... */ if (!ipp || !attr || !*attr || ((*attr)->value_tag != IPP_TAG_RESOLUTION && (*attr)->value_tag != IPP_TAG_NOVALUE && (*attr)->value_tag != IPP_TAG_UNKNOWN) || element < 0 || element > (*attr)->num_values || xresvalue <= 0 || yresvalue <= 0 || unitsvalue < IPP_RES_PER_INCH || unitsvalue > IPP_RES_PER_CM) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { (*attr)->value_tag = IPP_TAG_RESOLUTION; value->resolution.units = unitsvalue; value->resolution.xres = xresvalue; value->resolution.yres = yresvalue; } return (value != NULL); } /* * 'ippSetState()' - Set the current state of the IPP message. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetState(ipp_t *ipp, /* I - IPP message */ ipp_state_t state) /* I - IPP state value */ { /* * Range check input... */ if (!ipp) return (0); /* * Set the state and return... */ ipp->state = state; ipp->current = NULL; return (1); } /* * 'ippSetStatusCode()' - Set the status code in an IPP response or event message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetStatusCode(ipp_t *ipp, /* I - IPP response or event message */ ipp_status_t status) /* I - Status code */ { /* * Range check input... */ if (!ipp) return (0); /* * Set the status code and return... */ ipp->request.status.status_code = status; return (1); } /* * 'ippSetString()' - Set a string value in an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetString(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ const char *strvalue) /* I - String value */ { char *temp; /* Temporary string */ _ipp_value_t *value; /* Current value */ ipp_tag_t value_tag; /* Value tag */ /* * Range check input... */ if (attr && *attr) value_tag = (*attr)->value_tag & IPP_TAG_CUPS_MASK; else value_tag = IPP_TAG_ZERO; if (!ipp || !attr || !*attr || (value_tag < IPP_TAG_TEXT && value_tag != IPP_TAG_TEXTLANG && value_tag != IPP_TAG_NAMELANG && value_tag != IPP_TAG_NOVALUE && value_tag != IPP_TAG_UNKNOWN) || value_tag > IPP_TAG_MIMETYPE || element < 0 || element > (*attr)->num_values || !strvalue) return (0); /* * Set the value and return... */ if ((value = ipp_set_value(ipp, attr, element)) != NULL) { if (value_tag == IPP_TAG_NOVALUE || value_tag == IPP_TAG_UNKNOWN) (*attr)->value_tag = IPP_TAG_KEYWORD; if (element > 0) value->string.language = (*attr)->values[0].string.language; if ((int)((*attr)->value_tag) & IPP_TAG_CUPS_CONST) value->string.text = (char *)strvalue; else if ((temp = _cupsStrAlloc(strvalue)) != NULL) { if (value->string.text) _cupsStrFree(value->string.text); value->string.text = temp; } else return (0); } return (value != NULL); } /* * 'ippSetStringf()' - Set a formatted string value of an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * The @code format@ parameter uses formatting characters compatible with the * printf family of standard functions. Additional arguments follow it as * needed. The formatted string is truncated as needed to the maximum length of * the corresponding value type. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ ippSetStringf(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { int ret; /* Return value */ va_list ap; /* Pointer to additional arguments */ va_start(ap, format); ret = ippSetStringfv(ipp, attr, element, format, ap); va_end(ap); return (ret); } /* * 'ippSetStringf()' - Set a formatted string value of an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * The @code element@ parameter specifies which value to set from 0 to * @code ippGetCount(attr)@. * * The @code format@ parameter uses formatting characters compatible with the * printf family of standard functions. Additional arguments follow it as * needed. The formatted string is truncated as needed to the maximum length of * the corresponding value type. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ ippSetStringfv(ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element, /* I - Value number (0-based) */ const char *format, /* I - Printf-style format string */ va_list ap) /* I - Pointer to additional arguments */ { ipp_tag_t value_tag; /* Value tag */ char buffer[IPP_MAX_TEXT + 4]; /* Formatted text string */ ssize_t bytes, /* Length of formatted value */ max_bytes; /* Maximum number of bytes for value */ /* * Range check input... */ if (attr && *attr) value_tag = (*attr)->value_tag & IPP_TAG_CUPS_MASK; else value_tag = IPP_TAG_ZERO; if (!ipp || !attr || !*attr || (value_tag < IPP_TAG_TEXT && value_tag != IPP_TAG_TEXTLANG && value_tag != IPP_TAG_NAMELANG && value_tag != IPP_TAG_NOVALUE && value_tag != IPP_TAG_UNKNOWN) || value_tag > IPP_TAG_MIMETYPE || !format) return (0); /* * Format the string... */ if (!strcmp(format, "%s")) { /* * Optimize the simple case... */ const char *s = va_arg(ap, char *); if (!s) s = "(null)"; bytes = (ssize_t)strlen(s); strlcpy(buffer, s, sizeof(buffer)); } else { /* * Do a full formatting of the message... */ if ((bytes = vsnprintf(buffer, sizeof(buffer), format, ap)) < 0) return (0); } /* * Limit the length of the string... */ switch (value_tag) { default : case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : max_bytes = IPP_MAX_TEXT; break; case IPP_TAG_NAME : case IPP_TAG_NAMELANG : max_bytes = IPP_MAX_NAME; break; case IPP_TAG_CHARSET : max_bytes = IPP_MAX_CHARSET; break; case IPP_TAG_NOVALUE : case IPP_TAG_UNKNOWN : case IPP_TAG_KEYWORD : max_bytes = IPP_MAX_KEYWORD; break; case IPP_TAG_LANGUAGE : max_bytes = IPP_MAX_LANGUAGE; break; case IPP_TAG_MIMETYPE : max_bytes = IPP_MAX_MIMETYPE; break; case IPP_TAG_URI : max_bytes = IPP_MAX_URI; break; case IPP_TAG_URISCHEME : max_bytes = IPP_MAX_URISCHEME; break; } if (bytes >= max_bytes) { char *bufmax, /* Buffer at max_bytes */ *bufptr; /* Pointer into buffer */ bufptr = buffer + strlen(buffer) - 1; bufmax = buffer + max_bytes - 1; while (bufptr > bufmax) { if (*bufptr & 0x80) { while ((*bufptr & 0xc0) == 0x80 && bufptr > buffer) bufptr --; } bufptr --; } *bufptr = '\0'; } /* * Set the formatted string and return... */ return (ippSetString(ipp, attr, element, buffer)); } /* * 'ippSetValueTag()' - Set the value tag of an attribute. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The @code attr@ parameter may be modified as a result of setting the value. * * Integer (@code IPP_TAG_INTEGER@) values can be promoted to rangeOfInteger * (@code IPP_TAG_RANGE@) values, the various string tags can be promoted to name * (@code IPP_TAG_NAME@) or nameWithLanguage (@code IPP_TAG_NAMELANG@) values, text * (@code IPP_TAG_TEXT@) values can be promoted to textWithLanguage * (@code IPP_TAG_TEXTLANG@) values, and all values can be demoted to the various * out-of-band value tags such as no-value (@code IPP_TAG_NOVALUE@). All other changes * will be rejected. * * Promoting a string attribute to nameWithLanguage or textWithLanguage adds the language * code in the "attributes-natural-language" attribute or, if not present, the language * code for the current locale. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetValueTag( ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ ipp_tag_t value_tag) /* I - Value tag */ { int i; /* Looping var */ _ipp_value_t *value; /* Current value */ int integer; /* Current integer value */ cups_lang_t *language; /* Current language */ char code[32]; /* Language code */ ipp_tag_t temp_tag; /* Temporary value tag */ /* * Range check input... */ if (!ipp || !attr || !*attr) return (0); /* * If there is no change, return immediately... */ if (value_tag == (*attr)->value_tag) return (1); /* * Otherwise implement changes as needed... */ temp_tag = (ipp_tag_t)((int)((*attr)->value_tag) & IPP_TAG_CUPS_MASK); switch (value_tag) { case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : /* * Free any existing values... */ if ((*attr)->num_values > 0) ipp_free_values(*attr, 0, (*attr)->num_values); /* * Set out-of-band value... */ (*attr)->value_tag = value_tag; break; case IPP_TAG_RANGE : if (temp_tag != IPP_TAG_INTEGER) return (0); for (i = (*attr)->num_values, value = (*attr)->values; i > 0; i --, value ++) { integer = value->integer; value->range.lower = value->range.upper = integer; } (*attr)->value_tag = IPP_TAG_RANGE; break; case IPP_TAG_NAME : if (temp_tag != IPP_TAG_KEYWORD) return (0); (*attr)->value_tag = (ipp_tag_t)(IPP_TAG_NAME | ((*attr)->value_tag & IPP_TAG_CUPS_CONST)); break; case IPP_TAG_NAMELANG : case IPP_TAG_TEXTLANG : if (value_tag == IPP_TAG_NAMELANG && (temp_tag != IPP_TAG_NAME && temp_tag != IPP_TAG_KEYWORD)) return (0); if (value_tag == IPP_TAG_TEXTLANG && temp_tag != IPP_TAG_TEXT) return (0); if (ipp->attrs && ipp->attrs->next && ipp->attrs->next->name && !strcmp(ipp->attrs->next->name, "attributes-natural-language") && (ipp->attrs->next->value_tag & IPP_TAG_CUPS_MASK) == IPP_TAG_LANGUAGE) { /* * Use the language code from the IPP message... */ (*attr)->values[0].string.language = _cupsStrAlloc(ipp->attrs->next->values[0].string.text); } else { /* * Otherwise, use the language code corresponding to the locale... */ language = cupsLangDefault(); (*attr)->values[0].string.language = _cupsStrAlloc(ipp_lang_code(language->language, code, sizeof(code))); } for (i = (*attr)->num_values - 1, value = (*attr)->values + 1; i > 0; i --, value ++) value->string.language = (*attr)->values[0].string.language; if ((int)(*attr)->value_tag & IPP_TAG_CUPS_CONST) { /* * Make copies of all values... */ for (i = (*attr)->num_values, value = (*attr)->values; i > 0; i --, value ++) value->string.text = _cupsStrAlloc(value->string.text); } (*attr)->value_tag = IPP_TAG_NAMELANG; break; case IPP_TAG_KEYWORD : if (temp_tag == IPP_TAG_NAME || temp_tag == IPP_TAG_NAMELANG) break; /* Silently "allow" name -> keyword */ default : return (0); } return (1); } /* * 'ippSetVersion()' - Set the version number in an IPP message. * * The @code ipp@ parameter refers to an IPP message previously created using * the @link ippNew@, @link ippNewRequest@, or @link ippNewResponse@ functions. * * The valid version numbers are currently 1.0, 1.1, 2.0, 2.1, and 2.2. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ ippSetVersion(ipp_t *ipp, /* I - IPP message */ int major, /* I - Major version number (major.minor) */ int minor) /* I - Minor version number (major.minor) */ { /* * Range check input... */ if (!ipp || major < 0 || minor < 0) return (0); /* * Set the version number... */ ipp->request.any.version[0] = (ipp_uchar_t)major; ipp->request.any.version[1] = (ipp_uchar_t)minor; return (1); } /* * 'ippTimeToDate()' - Convert from time in seconds to RFC 2579 format. */ const ipp_uchar_t * /* O - RFC-2579 date/time data */ ippTimeToDate(time_t t) /* I - Time in seconds */ { struct tm unixdate; /* UNIX unixdate/time info */ ipp_uchar_t *date = _cupsGlobals()->ipp_date; /* RFC-2579 date/time data */ /* * RFC-2579 date/time format is: * * Byte(s) Description * ------- ----------- * 0-1 Year (0 to 65535) * 2 Month (1 to 12) * 3 Day (1 to 31) * 4 Hours (0 to 23) * 5 Minutes (0 to 59) * 6 Seconds (0 to 60, 60 = "leap second") * 7 Deciseconds (0 to 9) * 8 +/- UTC * 9 UTC hours (0 to 11) * 10 UTC minutes (0 to 59) */ gmtime_r(&t, &unixdate); unixdate.tm_year += 1900; date[0] = (ipp_uchar_t)(unixdate.tm_year >> 8); date[1] = (ipp_uchar_t)(unixdate.tm_year); date[2] = (ipp_uchar_t)(unixdate.tm_mon + 1); date[3] = (ipp_uchar_t)unixdate.tm_mday; date[4] = (ipp_uchar_t)unixdate.tm_hour; date[5] = (ipp_uchar_t)unixdate.tm_min; date[6] = (ipp_uchar_t)unixdate.tm_sec; date[7] = 0; date[8] = '+'; date[9] = 0; date[10] = 0; return (date); } /* * 'ippValidateAttribute()' - Validate the contents of an attribute. * * This function validates the contents of an attribute based on the name and * value tag. 1 is returned if the attribute is valid, 0 otherwise. On * failure, @link cupsLastErrorString@ is set to a human-readable message. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 if valid, 0 otherwise */ ippValidateAttribute( ipp_attribute_t *attr) /* I - Attribute */ { int i; /* Looping var */ char scheme[64], /* Scheme from URI */ userpass[256], /* Username/password from URI */ hostname[256], /* Hostname from URI */ resource[1024]; /* Resource from URI */ int port, /* Port number from URI */ uri_status; /* URI separation status */ const char *ptr; /* Pointer into string */ ipp_attribute_t *colattr; /* Collection attribute */ regex_t re; /* Regular expression */ ipp_uchar_t *date; /* Current date value */ /* * Skip separators. */ if (!attr->name) return (1); /* * Validate the attribute name. */ for (ptr = attr->name; *ptr; ptr ++) if (!isalnum(*ptr & 255) && *ptr != '-' && *ptr != '.' && *ptr != '_') break; if (*ptr || ptr == attr->name) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad attribute name - invalid character (RFC 8011 section 5.1.4)."), attr->name); return (0); } if ((ptr - attr->name) > 255) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad attribute name - bad length %d (RFC 8011 section 5.1.4)."), attr->name, (int)(ptr - attr->name)); return (0); } switch (attr->value_tag) { case IPP_TAG_INTEGER : break; case IPP_TAG_BOOLEAN : for (i = 0; i < attr->num_values; i ++) { if (attr->values[i].boolean != 0 && attr->values[i].boolean != 1) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad boolean value %d (RFC 8011 section 5.1.21)."), attr->name, attr->values[i].boolean); return (0); } } break; case IPP_TAG_ENUM : for (i = 0; i < attr->num_values; i ++) { if (attr->values[i].integer < 1) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad enum value %d - out of range (RFC 8011 section 5.1.5)."), attr->name, attr->values[i].integer); return (0); } } break; case IPP_TAG_STRING : for (i = 0; i < attr->num_values; i ++) { if (attr->values[i].unknown.length > IPP_MAX_OCTETSTRING) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad octetString value - bad length %d (RFC 8011 section 5.1.20)."), attr->name, attr->values[i].unknown.length); return (0); } } break; case IPP_TAG_DATE : for (i = 0; i < attr->num_values; i ++) { date = attr->values[i].date; if (date[2] < 1 || date[2] > 12) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime month %u (RFC 8011 section 5.1.15)."), attr->name, date[2]); return (0); } if (date[3] < 1 || date[3] > 31) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime day %u (RFC 8011 section 5.1.15)."), attr->name, date[3]); return (0); } if (date[4] > 23) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime hours %u (RFC 8011 section 5.1.15)."), attr->name, date[4]); return (0); } if (date[5] > 59) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime minutes %u (RFC 8011 section 5.1.15)."), attr->name, date[5]); return (0); } if (date[6] > 60) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime seconds %u (RFC 8011 section 5.1.15)."), attr->name, date[6]); return (0); } if (date[7] > 9) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime deciseconds %u (RFC 8011 section 5.1.15)."), attr->name, date[7]); return (0); } if (date[8] != '-' && date[8] != '+') { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC sign '%c' (RFC 8011 section 5.1.15)."), attr->name, date[8]); return (0); } if (date[9] > 11) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)."), attr->name, date[9]); return (0); } if (date[10] > 59) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC minutes %u (RFC 8011 section 5.1.15)."), attr->name, date[10]); return (0); } } break; case IPP_TAG_RESOLUTION : for (i = 0; i < attr->num_values; i ++) { if (attr->values[i].resolution.xres <= 0) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad resolution value %dx%d%s - cross feed resolution must be positive (RFC 8011 section 5.1.16)."), attr->name, attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : attr->values[i].resolution.units == IPP_RES_PER_CM ? "dpcm" : "unknown"); return (0); } if (attr->values[i].resolution.yres <= 0) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad resolution value %dx%d%s - feed resolution must be positive (RFC 8011 section 5.1.16)."), attr->name, attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : attr->values[i].resolution.units == IPP_RES_PER_CM ? "dpcm" : "unknown"); return (0); } if (attr->values[i].resolution.units != IPP_RES_PER_INCH && attr->values[i].resolution.units != IPP_RES_PER_CM) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad resolution value %dx%d%s - bad units value (RFC 8011 section 5.1.16)."), attr->name, attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : attr->values[i].resolution.units == IPP_RES_PER_CM ? "dpcm" : "unknown"); return (0); } } break; case IPP_TAG_RANGE : for (i = 0; i < attr->num_values; i ++) { if (attr->values[i].range.lower > attr->values[i].range.upper) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad rangeOfInteger value %d-%d - lower greater than upper (RFC 8011 section 5.1.14)."), attr->name, attr->values[i].range.lower, attr->values[i].range.upper); return (0); } } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0; i < attr->num_values; i ++) { for (colattr = attr->values[i].collection->attrs; colattr; colattr = colattr->next) { if (!ippValidateAttribute(colattr)) return (0); } } break; case IPP_TAG_TEXT : case IPP_TAG_TEXTLANG : for (i = 0; i < attr->num_values; i ++) { for (ptr = attr->values[i].string.text; *ptr; ptr ++) { if ((*ptr & 0xe0) == 0xc0) { if ((ptr[1] & 0xc0) != 0x80) break; ptr ++; } else if ((*ptr & 0xf0) == 0xe0) { if ((ptr[1] & 0xc0) != 0x80 || (ptr[2] & 0xc0) != 0x80) break; ptr += 2; } else if ((*ptr & 0xf8) == 0xf0) { if ((ptr[1] & 0xc0) != 0x80 || (ptr[2] & 0xc0) != 0x80 || (ptr[3] & 0xc0) != 0x80) break; ptr += 3; } else if (*ptr & 0x80) break; else if ((*ptr < ' ' && *ptr != '\n' && *ptr != '\r' && *ptr != '\t') || *ptr == 0x7f) break; } if (*ptr) { if (*ptr < ' ' || *ptr == 0x7f) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)."), attr->name, attr->values[i].string.text); return (0); } else { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)."), attr->name, attr->values[i].string.text); return (0); } } if ((ptr - attr->values[i].string.text) > (IPP_MAX_TEXT - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad length %d (RFC 8011 section 5.1.2)."), attr->name, attr->values[i].string.text, (int)(ptr - attr->values[i].string.text)); return (0); } } break; case IPP_TAG_NAME : case IPP_TAG_NAMELANG : for (i = 0; i < attr->num_values; i ++) { for (ptr = attr->values[i].string.text; *ptr; ptr ++) { if ((*ptr & 0xe0) == 0xc0) { if ((ptr[1] & 0xc0) != 0x80) break; ptr ++; } else if ((*ptr & 0xf0) == 0xe0) { if ((ptr[1] & 0xc0) != 0x80 || (ptr[2] & 0xc0) != 0x80) break; ptr += 2; } else if ((*ptr & 0xf8) == 0xf0) { if ((ptr[1] & 0xc0) != 0x80 || (ptr[2] & 0xc0) != 0x80 || (ptr[3] & 0xc0) != 0x80) break; ptr += 3; } else if (*ptr & 0x80) break; else if (*ptr < ' ' || *ptr == 0x7f) break; } if (*ptr) { if (*ptr < ' ' || *ptr == 0x7f) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)."), attr->name, attr->values[i].string.text); return (0); } else { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)."), attr->name, attr->values[i].string.text); return (0); } } if ((ptr - attr->values[i].string.text) > (IPP_MAX_NAME - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad length %d (RFC 8011 section 5.1.3)."), attr->name, attr->values[i].string.text, (int)(ptr - attr->values[i].string.text)); return (0); } } break; case IPP_TAG_KEYWORD : for (i = 0; i < attr->num_values; i ++) { for (ptr = attr->values[i].string.text; *ptr; ptr ++) { if (!isalnum(*ptr & 255) && *ptr != '-' && *ptr != '.' && *ptr != '_') break; } if (*ptr || ptr == attr->values[i].string.text) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad keyword value \"%s\" - invalid character (RFC 8011 section 5.1.4)."), attr->name, attr->values[i].string.text); return (0); } if ((ptr - attr->values[i].string.text) > (IPP_MAX_KEYWORD - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad keyword value \"%s\" - bad length %d (RFC 8011 section 5.1.4)."), attr->name, attr->values[i].string.text, (int)(ptr - attr->values[i].string.text)); return (0); } } break; case IPP_TAG_URI : for (i = 0; i < attr->num_values; i ++) { uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[i].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (uri_status < HTTP_URI_STATUS_OK) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad URI value \"%s\" - %s (RFC 8011 section 5.1.6)."), attr->name, attr->values[i].string.text, httpURIStatusString(uri_status)); return (0); } if (strlen(attr->values[i].string.text) > (IPP_MAX_URI - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad URI value \"%s\" - bad length %d (RFC 8011 section 5.1.6)."), attr->name, attr->values[i].string.text, (int)strlen(attr->values[i].string.text)); } } break; case IPP_TAG_URISCHEME : for (i = 0; i < attr->num_values; i ++) { ptr = attr->values[i].string.text; if (islower(*ptr & 255)) { for (ptr ++; *ptr; ptr ++) { if (!islower(*ptr & 255) && !isdigit(*ptr & 255) && *ptr != '+' && *ptr != '-' && *ptr != '.') break; } } if (*ptr || ptr == attr->values[i].string.text) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad uriScheme value \"%s\" - bad characters (RFC 8011 section 5.1.7)."), attr->name, attr->values[i].string.text); return (0); } if ((ptr - attr->values[i].string.text) > (IPP_MAX_URISCHEME - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad uriScheme value \"%s\" - bad length %d (RFC 8011 section 5.1.7)."), attr->name, attr->values[i].string.text, (int)(ptr - attr->values[i].string.text)); return (0); } } break; case IPP_TAG_CHARSET : for (i = 0; i < attr->num_values; i ++) { for (ptr = attr->values[i].string.text; *ptr; ptr ++) { if (!isprint(*ptr & 255) || isupper(*ptr & 255) || isspace(*ptr & 255)) break; } if (*ptr || ptr == attr->values[i].string.text) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad charset value \"%s\" - bad characters (RFC 8011 section 5.1.8)."), attr->name, attr->values[i].string.text); return (0); } if ((ptr - attr->values[i].string.text) > (IPP_MAX_CHARSET - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad charset value \"%s\" - bad length %d (RFC 8011 section 5.1.8)."), attr->name, attr->values[i].string.text, (int)(ptr - attr->values[i].string.text)); return (0); } } break; case IPP_TAG_LANGUAGE : /* * The following regular expression is derived from the ABNF for * language tags in RFC 4646. All I can say is that this is the * easiest way to check the values... */ if ((i = regcomp(&re, "^(" "(([a-z]{2,3}(-[a-z][a-z][a-z]){0,3})|[a-z]{4,8})" /* language */ "(-[a-z][a-z][a-z][a-z]){0,1}" /* script */ "(-([a-z][a-z]|[0-9][0-9][0-9])){0,1}" /* region */ "(-([a-z]{5,8}|[0-9][0-9][0-9]))*" /* variant */ "(-[a-wy-z](-[a-z0-9]{2,8})+)*" /* extension */ "(-x(-[a-z0-9]{1,8})+)*" /* privateuse */ "|" "x(-[a-z0-9]{1,8})+" /* privateuse */ "|" "[a-z]{1,3}(-[a-z][0-9]{2,8}){1,2}" /* grandfathered */ ")$", REG_NOSUB | REG_EXTENDED)) != 0) { char temp[256]; /* Temporary error string */ regerror(i, &re, temp, sizeof(temp)); ipp_set_error(IPP_STATUS_ERROR_INTERNAL, _("Unable to compile naturalLanguage regular expression: %s."), temp); return (0); } for (i = 0; i < attr->num_values; i ++) { if (regexec(&re, attr->values[i].string.text, 0, NULL, 0)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad naturalLanguage value \"%s\" - bad characters (RFC 8011 section 5.1.9)."), attr->name, attr->values[i].string.text); regfree(&re); return (0); } if (strlen(attr->values[i].string.text) > (IPP_MAX_LANGUAGE - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad naturalLanguage value \"%s\" - bad length %d (RFC 8011 section 5.1.9)."), attr->name, attr->values[i].string.text, (int)strlen(attr->values[i].string.text)); regfree(&re); return (0); } } regfree(&re); break; case IPP_TAG_MIMETYPE : /* * The following regular expression is derived from the ABNF for * MIME media types in RFC 2045 and 4288. All I can say is that this is * the easiest way to check the values... */ if ((i = regcomp(&re, "^" "[-a-zA-Z0-9!#$&.+^_]{1,127}" /* type-name */ "/" "[-a-zA-Z0-9!#$&.+^_]{1,127}" /* subtype-name */ "(;[-a-zA-Z0-9!#$&.+^_]{1,127}=" /* parameter= */ "([-a-zA-Z0-9!#$&.+^_]{1,127}|\"[^\"]*\"))*" /* value */ "$", REG_NOSUB | REG_EXTENDED)) != 0) { char temp[256]; /* Temporary error string */ regerror(i, &re, temp, sizeof(temp)); ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("Unable to compile mimeMediaType regular expression: %s."), temp); return (0); } for (i = 0; i < attr->num_values; i ++) { if (regexec(&re, attr->values[i].string.text, 0, NULL, 0)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad mimeMediaType value \"%s\" - bad characters (RFC 8011 section 5.1.10)."), attr->name, attr->values[i].string.text); regfree(&re); return (0); } if (strlen(attr->values[i].string.text) > (IPP_MAX_MIMETYPE - 1)) { ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad mimeMediaType value \"%s\" - bad length %d (RFC 8011 section 5.1.10)."), attr->name, attr->values[i].string.text, (int)strlen(attr->values[i].string.text)); regfree(&re); return (0); } } regfree(&re); break; default : break; } return (1); } /* * 'ippValidateAttributes()' - Validate all attributes in an IPP message. * * This function validates the contents of the IPP message, including each * attribute. Like @link ippValidateAttribute@, @link cupsLastErrorString@ is * set to a human-readable message on failure. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 if valid, 0 otherwise */ ippValidateAttributes(ipp_t *ipp) /* I - IPP message */ { ipp_attribute_t *attr; /* Current attribute */ if (!ipp) return (1); for (attr = ipp->attrs; attr; attr = attr->next) if (!ippValidateAttribute(attr)) return (0); return (1); } /* * 'ippWrite()' - Write data for an IPP message to a HTTP connection. */ ipp_state_t /* O - Current state */ ippWrite(http_t *http, /* I - HTTP connection */ ipp_t *ipp) /* I - IPP data */ { DEBUG_printf(("ippWrite(http=%p, ipp=%p)", (void *)http, (void *)ipp)); if (!http) return (IPP_STATE_ERROR); return (ippWriteIO(http, (ipp_iocb_t)httpWrite2, http->blocking, NULL, ipp)); } /* * 'ippWriteFile()' - Write data for an IPP message to a file. * * @since CUPS 1.1.19/macOS 10.3@ */ ipp_state_t /* O - Current state */ ippWriteFile(int fd, /* I - HTTP data */ ipp_t *ipp) /* I - IPP data */ { DEBUG_printf(("ippWriteFile(fd=%d, ipp=%p)", fd, (void *)ipp)); ipp->state = IPP_STATE_IDLE; return (ippWriteIO(&fd, (ipp_iocb_t)ipp_write_file, 1, NULL, ipp)); } /* * 'ippWriteIO()' - Write data for an IPP message. * * @since CUPS 1.2/macOS 10.5@ */ ipp_state_t /* O - Current state */ ippWriteIO(void *dst, /* I - Destination */ ipp_iocb_t cb, /* I - Write callback function */ int blocking, /* I - Use blocking IO? */ ipp_t *parent, /* I - Parent IPP message */ ipp_t *ipp) /* I - IPP data */ { int i; /* Looping var */ int n; /* Length of data */ unsigned char *buffer, /* Data buffer */ *bufptr; /* Pointer into buffer */ ipp_attribute_t *attr; /* Current attribute */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("ippWriteIO(dst=%p, cb=%p, blocking=%d, parent=%p, ipp=%p)", (void *)dst, (void *)cb, blocking, (void *)parent, (void *)ipp)); if (!dst || !ipp) return (IPP_STATE_ERROR); if ((buffer = (unsigned char *)_cupsBufferGet(IPP_BUF_SIZE)) == NULL) { DEBUG_puts("1ippWriteIO: Unable to get write buffer"); return (IPP_STATE_ERROR); } switch (ipp->state) { case IPP_STATE_IDLE : ipp->state ++; /* Avoid common problem... */ case IPP_STATE_HEADER : if (parent == NULL) { /* * Send the request header: * * Version = 2 bytes * Operation/Status Code = 2 bytes * Request ID = 4 bytes * Total = 8 bytes */ bufptr = buffer; *bufptr++ = ipp->request.any.version[0]; *bufptr++ = ipp->request.any.version[1]; *bufptr++ = (ipp_uchar_t)(ipp->request.any.op_status >> 8); *bufptr++ = (ipp_uchar_t)ipp->request.any.op_status; *bufptr++ = (ipp_uchar_t)(ipp->request.any.request_id >> 24); *bufptr++ = (ipp_uchar_t)(ipp->request.any.request_id >> 16); *bufptr++ = (ipp_uchar_t)(ipp->request.any.request_id >> 8); *bufptr++ = (ipp_uchar_t)ipp->request.any.request_id; DEBUG_printf(("2ippWriteIO: version=%d.%d", buffer[0], buffer[1])); DEBUG_printf(("2ippWriteIO: op_status=%04x", ipp->request.any.op_status)); DEBUG_printf(("2ippWriteIO: request_id=%d", ipp->request.any.request_id)); if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP header..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } } /* * Reset the state engine to point to the first attribute * in the request/response, with no current group. */ ipp->state = IPP_STATE_ATTRIBUTE; ipp->current = ipp->attrs; ipp->curtag = IPP_TAG_ZERO; DEBUG_printf(("1ippWriteIO: ipp->current=%p", (void *)ipp->current)); /* * If blocking is disabled, stop here... */ if (!blocking) break; case IPP_STATE_ATTRIBUTE : while (ipp->current != NULL) { /* * Write this attribute... */ bufptr = buffer; attr = ipp->current; ipp->current = ipp->current->next; if (!parent) { if (ipp->curtag != attr->group_tag) { /* * Send a group tag byte... */ ipp->curtag = attr->group_tag; if (attr->group_tag == IPP_TAG_ZERO) continue; DEBUG_printf(("2ippWriteIO: wrote group tag=%x(%s)", attr->group_tag, ippTagString(attr->group_tag))); *bufptr++ = (ipp_uchar_t)attr->group_tag; } else if (attr->group_tag == IPP_TAG_ZERO) continue; } DEBUG_printf(("1ippWriteIO: %s (%s%s)", attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag))); /* * Write the attribute tag and name. * * The attribute name length does not include the trailing nul * character in the source string. * * Collection values (parent != NULL) are written differently... */ if (parent == NULL) { /* * Get the length of the attribute name, and make sure it won't * overflow the buffer... */ if ((n = (int)strlen(attr->name)) > (IPP_BUF_SIZE - 8)) { DEBUG_printf(("1ippWriteIO: Attribute name too long (%d)", n)); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } /* * Write the value tag, name length, and name string... */ DEBUG_printf(("2ippWriteIO: writing value tag=%x(%s)", attr->value_tag, ippTagString(attr->value_tag))); DEBUG_printf(("2ippWriteIO: writing name=%d,\"%s\"", n, attr->name)); if (attr->value_tag > 0xff) { *bufptr++ = IPP_TAG_EXTENSION; *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 24); *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 16); *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 8); *bufptr++ = (ipp_uchar_t)attr->value_tag; } else *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; memcpy(bufptr, attr->name, (size_t)n); bufptr += n; } else { /* * Get the length of the attribute name, and make sure it won't * overflow the buffer... */ if ((n = (int)strlen(attr->name)) > (IPP_BUF_SIZE - 12)) { DEBUG_printf(("1ippWriteIO: Attribute name too long (%d)", n)); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } /* * Write the member name tag, name length, name string, value tag, * and empty name for the collection member attribute... */ DEBUG_printf(("2ippWriteIO: writing value tag=%x(memberName)", IPP_TAG_MEMBERNAME)); DEBUG_printf(("2ippWriteIO: writing name=%d,\"%s\"", n, attr->name)); DEBUG_printf(("2ippWriteIO: writing value tag=%x(%s)", attr->value_tag, ippTagString(attr->value_tag))); DEBUG_puts("2ippWriteIO: writing name=0,\"\""); *bufptr++ = IPP_TAG_MEMBERNAME; *bufptr++ = 0; *bufptr++ = 0; *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; memcpy(bufptr, attr->name, (size_t)n); bufptr += n; if (attr->value_tag > 0xff) { *bufptr++ = IPP_TAG_EXTENSION; *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 24); *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 16); *bufptr++ = (ipp_uchar_t)(attr->value_tag >> 8); *bufptr++ = (ipp_uchar_t)attr->value_tag; } else *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Now write the attribute value(s)... */ switch (attr->value_tag & ~IPP_TAG_CUPS_CONST) { case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : *bufptr++ = 0; *bufptr++ = 0; break; case IPP_TAG_INTEGER : case IPP_TAG_ENUM : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if ((IPP_BUF_SIZE - (bufptr - buffer)) < 9) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Integers and enumerations are both 4-byte signed * (twos-complement) values. * * Put the 2-byte length and 4-byte value into the buffer... */ *bufptr++ = 0; *bufptr++ = 4; *bufptr++ = (ipp_uchar_t)(value->integer >> 24); *bufptr++ = (ipp_uchar_t)(value->integer >> 16); *bufptr++ = (ipp_uchar_t)(value->integer >> 8); *bufptr++ = (ipp_uchar_t)value->integer; } break; case IPP_TAG_BOOLEAN : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if ((IPP_BUF_SIZE - (bufptr - buffer)) < 6) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Boolean values are 1-byte; 0 = false, 1 = true. * * Put the 2-byte length and 1-byte value into the buffer... */ *bufptr++ = 0; *bufptr++ = 1; *bufptr++ = (ipp_uchar_t)value->boolean; } break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ DEBUG_printf(("2ippWriteIO: writing value tag=%x(%s)", attr->value_tag, ippTagString(attr->value_tag))); DEBUG_printf(("2ippWriteIO: writing name=0,\"\"")); if ((IPP_BUF_SIZE - (bufptr - buffer)) < 3) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } if (value->string.text != NULL) n = (int)strlen(value->string.text); else n = 0; if (n > (IPP_BUF_SIZE - 2)) { DEBUG_printf(("1ippWriteIO: String too long (%d)", n)); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } DEBUG_printf(("2ippWriteIO: writing string=%d,\"%s\"", n, value->string.text)); if ((int)(IPP_BUF_SIZE - (bufptr - buffer)) < (n + 2)) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } /* * All simple strings consist of the 2-byte length and * character data without the trailing nul normally found * in C strings. Also, strings cannot be longer than IPP_MAX_LENGTH * bytes since the 2-byte length is a signed (twos-complement) * value. * * Put the 2-byte length and string characters in the buffer. */ *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; if (n > 0) { memcpy(bufptr, value->string.text, (size_t)n); bufptr += n; } } break; case IPP_TAG_DATE : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if ((IPP_BUF_SIZE - (bufptr - buffer)) < 16) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Date values consist of a 2-byte length and an * 11-byte date/time structure defined by RFC 1903. * * Put the 2-byte length and 11-byte date/time * structure in the buffer. */ *bufptr++ = 0; *bufptr++ = 11; memcpy(bufptr, value->date, 11); bufptr += 11; } break; case IPP_TAG_RESOLUTION : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if ((IPP_BUF_SIZE - (bufptr - buffer)) < 14) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Resolution values consist of a 2-byte length, * 4-byte horizontal resolution value, 4-byte vertical * resolution value, and a 1-byte units value. * * Put the 2-byte length and resolution value data * into the buffer. */ *bufptr++ = 0; *bufptr++ = 9; *bufptr++ = (ipp_uchar_t)(value->resolution.xres >> 24); *bufptr++ = (ipp_uchar_t)(value->resolution.xres >> 16); *bufptr++ = (ipp_uchar_t)(value->resolution.xres >> 8); *bufptr++ = (ipp_uchar_t)value->resolution.xres; *bufptr++ = (ipp_uchar_t)(value->resolution.yres >> 24); *bufptr++ = (ipp_uchar_t)(value->resolution.yres >> 16); *bufptr++ = (ipp_uchar_t)(value->resolution.yres >> 8); *bufptr++ = (ipp_uchar_t)value->resolution.yres; *bufptr++ = (ipp_uchar_t)value->resolution.units; } break; case IPP_TAG_RANGE : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if ((IPP_BUF_SIZE - (bufptr - buffer)) < 13) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Range values consist of a 2-byte length, * 4-byte lower value, and 4-byte upper value. * * Put the 2-byte length and range value data * into the buffer. */ *bufptr++ = 0; *bufptr++ = 8; *bufptr++ = (ipp_uchar_t)(value->range.lower >> 24); *bufptr++ = (ipp_uchar_t)(value->range.lower >> 16); *bufptr++ = (ipp_uchar_t)(value->range.lower >> 8); *bufptr++ = (ipp_uchar_t)value->range.lower; *bufptr++ = (ipp_uchar_t)(value->range.upper >> 24); *bufptr++ = (ipp_uchar_t)(value->range.upper >> 16); *bufptr++ = (ipp_uchar_t)(value->range.upper >> 8); *bufptr++ = (ipp_uchar_t)value->range.upper; } break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ if ((IPP_BUF_SIZE - (bufptr - buffer)) < 3) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * textWithLanguage and nameWithLanguage values consist * of a 2-byte length for both strings and their * individual lengths, a 2-byte length for the * character string, the character string without the * trailing nul, a 2-byte length for the character * set string, and the character set string without * the trailing nul. */ n = 4; if (value->string.language != NULL) n += (int)strlen(value->string.language); if (value->string.text != NULL) n += (int)strlen(value->string.text); if (n > (IPP_BUF_SIZE - 2)) { DEBUG_printf(("1ippWriteIO: text/nameWithLanguage value " "too long (%d)", n)); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } if ((int)(IPP_BUF_SIZE - (bufptr - buffer)) < (n + 2)) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } /* Length of entire value */ *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; /* Length of language */ if (value->string.language != NULL) n = (int)strlen(value->string.language); else n = 0; *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; /* Language */ if (n > 0) { memcpy(bufptr, value->string.language, (size_t)n); bufptr += n; } /* Length of text */ if (value->string.text != NULL) n = (int)strlen(value->string.text); else n = 0; *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; /* Text */ if (n > 0) { memcpy(bufptr, value->string.text, (size_t)n); bufptr += n; } } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { /* * Collections are written with the begin-collection * tag first with a value of 0 length, followed by the * attributes in the collection, then the end-collection * value... */ if ((IPP_BUF_SIZE - (bufptr - buffer)) < 5) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * Write a data length of 0 and flush the buffer... */ *bufptr++ = 0; *bufptr++ = 0; if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; /* * Then write the collection attribute... */ value->collection->state = IPP_STATE_IDLE; if (ippWriteIO(dst, cb, 1, ipp, value->collection) == IPP_STATE_ERROR) { DEBUG_puts("1ippWriteIO: Unable to write collection value"); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } } break; default : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if (i) { /* * Arrays and sets are done by sending additional * values with a zero-length name... */ if ((IPP_BUF_SIZE - (bufptr - buffer)) < 3) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } *bufptr++ = (ipp_uchar_t)attr->value_tag; *bufptr++ = 0; *bufptr++ = 0; } /* * An unknown value might some new value that a * vendor has come up with. It consists of a * 2-byte length and the bytes in the unknown * value buffer. */ n = value->unknown.length; if (n > (IPP_BUF_SIZE - 2)) { DEBUG_printf(("1ippWriteIO: Data length too long (%d)", n)); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } if ((int)(IPP_BUF_SIZE - (bufptr - buffer)) < (n + 2)) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP " "attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } bufptr = buffer; } /* Length of unknown value */ *bufptr++ = (ipp_uchar_t)(n >> 8); *bufptr++ = (ipp_uchar_t)n; /* Value */ if (n > 0) { memcpy(bufptr, value->unknown.data, (size_t)n); bufptr += n; } } break; } /* * Write the data out... */ if (bufptr > buffer) { if ((*cb)(dst, buffer, (size_t)(bufptr - buffer)) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP attribute..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } DEBUG_printf(("2ippWriteIO: wrote %d bytes", (int)(bufptr - buffer))); } /* * If blocking is disabled and we aren't at the end of the attribute * list, stop here... */ if (!blocking && ipp->current) break; } if (ipp->current == NULL) { /* * Done with all of the attributes; add the end-of-attributes * tag or end-collection attribute... */ if (parent == NULL) { buffer[0] = IPP_TAG_END; n = 1; } else { buffer[0] = IPP_TAG_END_COLLECTION; buffer[1] = 0; /* empty name */ buffer[2] = 0; buffer[3] = 0; /* empty value */ buffer[4] = 0; n = 5; } if ((*cb)(dst, buffer, (size_t)n) < 0) { DEBUG_puts("1ippWriteIO: Could not write IPP end-tag..."); _cupsBufferRelease((char *)buffer); return (IPP_STATE_ERROR); } ipp->state = IPP_STATE_DATA; } break; case IPP_STATE_DATA : break; default : break; /* anti-compiler-warning-code */ } _cupsBufferRelease((char *)buffer); return (ipp->state); } /* * 'ipp_add_attr()' - Add a new attribute to the message. */ static ipp_attribute_t * /* O - New attribute */ ipp_add_attr(ipp_t *ipp, /* I - IPP message */ const char *name, /* I - Attribute name or NULL */ ipp_tag_t group_tag, /* I - Group tag or IPP_TAG_ZERO */ ipp_tag_t value_tag, /* I - Value tag or IPP_TAG_ZERO */ int num_values) /* I - Number of values */ { int alloc_values; /* Number of values to allocate */ ipp_attribute_t *attr; /* New attribute */ DEBUG_printf(("4ipp_add_attr(ipp=%p, name=\"%s\", group_tag=0x%x, value_tag=0x%x, num_values=%d)", (void *)ipp, name, group_tag, value_tag, num_values)); /* * Range check input... */ if (!ipp || num_values < 0) return (NULL); /* * Allocate memory, rounding the allocation up as needed... */ if (num_values <= 1) alloc_values = 1; else alloc_values = (num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); attr = calloc(1, sizeof(ipp_attribute_t) + (size_t)(alloc_values - 1) * sizeof(_ipp_value_t)); if (attr) { /* * Initialize attribute... */ DEBUG_printf(("4debug_alloc: %p %s %s%s (%d values)", (void *)attr, name, num_values > 1 ? "1setOf " : "", ippTagString(value_tag), num_values)); if (name) attr->name = _cupsStrAlloc(name); attr->group_tag = group_tag; attr->value_tag = value_tag; attr->num_values = num_values; /* * Add it to the end of the linked list... */ if (ipp->last) ipp->last->next = attr; else ipp->attrs = attr; ipp->prev = ipp->last; ipp->last = ipp->current = attr; } DEBUG_printf(("5ipp_add_attr: Returning %p", (void *)attr)); return (attr); } /* * 'ipp_free_values()' - Free attribute values. */ static void ipp_free_values(ipp_attribute_t *attr, /* I - Attribute to free values from */ int element,/* I - First value to free */ int count) /* I - Number of values to free */ { int i; /* Looping var */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("4ipp_free_values(attr=%p, element=%d, count=%d)", (void *)attr, element, count)); if (!(attr->value_tag & IPP_TAG_CUPS_CONST)) { /* * Free values as needed... */ switch (attr->value_tag) { case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : if (element == 0 && count == attr->num_values && attr->values[0].string.language) { _cupsStrFree(attr->values[0].string.language); attr->values[0].string.language = NULL; } /* Fall through to other string values */ case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_RESERVED_STRING : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = count, value = attr->values + element; i > 0; i --, value ++) { _cupsStrFree(value->string.text); value->string.text = NULL; } break; case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : case IPP_TAG_INTEGER : case IPP_TAG_ENUM : case IPP_TAG_BOOLEAN : case IPP_TAG_DATE : case IPP_TAG_RESOLUTION : case IPP_TAG_RANGE : break; case IPP_TAG_BEGIN_COLLECTION : for (i = count, value = attr->values + element; i > 0; i --, value ++) { ippDelete(value->collection); value->collection = NULL; } break; case IPP_TAG_STRING : default : for (i = count, value = attr->values + element; i > 0; i --, value ++) { if (value->unknown.data) { free(value->unknown.data); value->unknown.data = NULL; } } break; } } /* * If we are not freeing values from the end, move the remaining values up... */ if ((element + count) < attr->num_values) memmove(attr->values + element, attr->values + element + count, (size_t)(attr->num_values - count - element) * sizeof(_ipp_value_t)); attr->num_values -= count; } /* * 'ipp_get_code()' - Convert a C locale/charset name into an IPP language/charset code. * * This typically converts strings of the form "ll_CC", "ll-REGION", and "CHARSET_NUMBER" * to "ll-cc", "ll-region", and "charset-number", respectively. */ static char * /* O - Language code string */ ipp_get_code(const char *value, /* I - Locale/charset string */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of string buffer */ { char *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ /* * Convert values to lowercase and change _ to - as needed... */ for (bufptr = buffer, bufend = buffer + bufsize - 1; *value && bufptr < bufend; value ++) if (*value == '_') *bufptr++ = '-'; else *bufptr++ = (char)_cups_tolower(*value); *bufptr = '\0'; /* * Return the converted string... */ return (buffer); } /* * 'ipp_lang_code()' - Convert a C locale name into an IPP language code. * * This typically converts strings of the form "ll_CC" and "ll-REGION" to "ll-cc" and * "ll-region", respectively. It also converts the "C" (POSIX) locale to "en". */ static char * /* O - Language code string */ ipp_lang_code(const char *locale, /* I - Locale string */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of string buffer */ { /* * Map POSIX ("C") locale to generic English, otherwise convert the locale string as-is. */ if (!_cups_strcasecmp(locale, "c")) { strlcpy(buffer, "en", bufsize); return (buffer); } else return (ipp_get_code(locale, buffer, bufsize)); } /* * 'ipp_length()' - Compute the length of an IPP message or collection value. */ static size_t /* O - Size of IPP message */ ipp_length(ipp_t *ipp, /* I - IPP message or collection */ int collection) /* I - 1 if a collection, 0 otherwise */ { int i; /* Looping var */ size_t bytes; /* Number of bytes */ ipp_attribute_t *attr; /* Current attribute */ ipp_tag_t group; /* Current group */ _ipp_value_t *value; /* Current value */ DEBUG_printf(("3ipp_length(ipp=%p, collection=%d)", (void *)ipp, collection)); if (!ipp) { DEBUG_puts("4ipp_length: Returning 0 bytes"); return (0); } /* * Start with 8 bytes for the IPP message header... */ bytes = collection ? 0 : 8; /* * Then add the lengths of each attribute... */ group = IPP_TAG_ZERO; for (attr = ipp->attrs; attr != NULL; attr = attr->next) { if (attr->group_tag != group && !collection) { group = attr->group_tag; if (group == IPP_TAG_ZERO) continue; bytes ++; /* Group tag */ } if (!attr->name) continue; DEBUG_printf(("5ipp_length: attr->name=\"%s\", attr->num_values=%d, " "bytes=" CUPS_LLFMT, attr->name, attr->num_values, CUPS_LLCAST bytes)); if ((attr->value_tag & ~IPP_TAG_CUPS_CONST) < IPP_TAG_EXTENSION) bytes += (size_t)attr->num_values;/* Value tag for each value */ else bytes += (size_t)(5 * attr->num_values); /* Value tag for each value */ bytes += (size_t)(2 * attr->num_values); /* Name lengths */ bytes += strlen(attr->name); /* Name */ bytes += (size_t)(2 * attr->num_values); /* Value lengths */ if (collection) bytes += 5; /* Add membername overhead */ switch (attr->value_tag & ~IPP_TAG_CUPS_CONST) { case IPP_TAG_UNSUPPORTED_VALUE : case IPP_TAG_DEFAULT : case IPP_TAG_UNKNOWN : case IPP_TAG_NOVALUE : case IPP_TAG_NOTSETTABLE : case IPP_TAG_DELETEATTR : case IPP_TAG_ADMINDEFINE : break; case IPP_TAG_INTEGER : case IPP_TAG_ENUM : bytes += (size_t)(4 * attr->num_values); break; case IPP_TAG_BOOLEAN : bytes += (size_t)attr->num_values; break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) if (value->string.text) bytes += strlen(value->string.text); break; case IPP_TAG_DATE : bytes += (size_t)(11 * attr->num_values); break; case IPP_TAG_RESOLUTION : bytes += (size_t)(9 * attr->num_values); break; case IPP_TAG_RANGE : bytes += (size_t)(8 * attr->num_values); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : bytes += (size_t)(4 * attr->num_values); /* Charset + text length */ for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) { if (value->string.language) bytes += strlen(value->string.language); if (value->string.text) bytes += strlen(value->string.text); } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) bytes += ipp_length(value->collection, 1); break; default : for (i = 0, value = attr->values; i < attr->num_values; i ++, value ++) bytes += (size_t)value->unknown.length; break; } } /* * Finally, add 1 byte for the "end of attributes" tag or 5 bytes * for the "end of collection" tag and return... */ if (collection) bytes += 5; else bytes ++; DEBUG_printf(("4ipp_length: Returning " CUPS_LLFMT " bytes", CUPS_LLCAST bytes)); return (bytes); } /* * 'ipp_read_http()' - Semi-blocking read on a HTTP connection... */ static ssize_t /* O - Number of bytes read */ ipp_read_http(http_t *http, /* I - Client connection */ ipp_uchar_t *buffer, /* O - Buffer for data */ size_t length) /* I - Total length */ { ssize_t tbytes, /* Total bytes read */ bytes; /* Bytes read this pass */ DEBUG_printf(("7ipp_read_http(http=%p, buffer=%p, length=%d)", (void *)http, (void *)buffer, (int)length)); /* * Loop until all bytes are read... */ for (tbytes = 0, bytes = 0; tbytes < (int)length; tbytes += bytes, buffer += bytes) { DEBUG_printf(("9ipp_read_http: tbytes=" CUPS_LLFMT ", http->state=%d", CUPS_LLCAST tbytes, http->state)); if (http->state == HTTP_STATE_WAITING) break; if (http->used == 0 && !http->blocking) { /* * Wait up to 10 seconds for more data on non-blocking sockets... */ if (!httpWait(http, 10000)) { /* * Signal no data... */ bytes = -1; break; } } else if (http->used == 0 && http->timeout_value > 0) { /* * Wait up to timeout seconds for more data on blocking sockets... */ if (!httpWait(http, (int)(1000 * http->timeout_value))) { /* * Signal no data... */ bytes = -1; break; } } if ((bytes = httpRead2(http, (char *)buffer, length - (size_t)tbytes)) < 0) { #ifdef _WIN32 break; #else if (errno != EAGAIN && errno != EINTR) break; bytes = 0; #endif /* _WIN32 */ } else if (bytes == 0) break; } /* * Return the number of bytes read... */ if (tbytes == 0 && bytes < 0) tbytes = -1; DEBUG_printf(("8ipp_read_http: Returning " CUPS_LLFMT " bytes", CUPS_LLCAST tbytes)); return (tbytes); } /* * 'ipp_read_file()' - Read IPP data from a file. */ static ssize_t /* O - Number of bytes read */ ipp_read_file(int *fd, /* I - File descriptor */ ipp_uchar_t *buffer, /* O - Read buffer */ size_t length) /* I - Number of bytes to read */ { #ifdef _WIN32 return ((ssize_t)read(*fd, buffer, (unsigned)length)); #else return (read(*fd, buffer, length)); #endif /* _WIN32 */ } /* * 'ipp_set_error()' - Set a formatted, localized error string. */ static void ipp_set_error(ipp_status_t status, /* I - Status code */ const char *format, /* I - Printf-style error string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to additional args */ char buffer[2048]; /* Message buffer */ cups_lang_t *lang = cupsLangDefault(); /* Current language */ va_start(ap, format); vsnprintf(buffer, sizeof(buffer), _cupsLangString(lang, format), ap); va_end(ap); _cupsSetError(status, buffer, 0); } /* * 'ipp_set_value()' - Get the value element from an attribute, expanding it as * needed. */ static _ipp_value_t * /* O - IPP value element or NULL on error */ ipp_set_value(ipp_t *ipp, /* IO - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element) /* I - Value number (0-based) */ { ipp_attribute_t *temp, /* New attribute pointer */ *current, /* Current attribute in list */ *prev; /* Previous attribute in list */ int alloc_values; /* Allocated values */ /* * If we are setting an existing value element, return it... */ temp = *attr; if (temp->num_values <= 1) alloc_values = 1; else alloc_values = (temp->num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); if (element < alloc_values) { if (element >= temp->num_values) temp->num_values = element + 1; return (temp->values + element); } /* * Otherwise re-allocate the attribute - we allocate in groups of IPP_MAX_VALUE * values when num_values > 1. */ if (alloc_values < IPP_MAX_VALUES) alloc_values = IPP_MAX_VALUES; else alloc_values += IPP_MAX_VALUES; DEBUG_printf(("4ipp_set_value: Reallocating for up to %d values.", alloc_values)); /* * Reallocate memory... */ if ((temp = realloc(temp, sizeof(ipp_attribute_t) + (size_t)(alloc_values - 1) * sizeof(_ipp_value_t))) == NULL) { _cupsSetHTTPError(HTTP_STATUS_ERROR); DEBUG_puts("4ipp_set_value: Unable to resize attribute."); return (NULL); } /* * Zero the new memory... */ memset(temp->values + temp->num_values, 0, (size_t)(alloc_values - temp->num_values) * sizeof(_ipp_value_t)); if (temp != *attr) { /* * Reset pointers in the list... */ #ifndef __clang_analyzer__ DEBUG_printf(("4debug_free: %p %s", (void *)*attr, temp->name)); #endif /* !__clang_analyzer__ */ DEBUG_printf(("4debug_alloc: %p %s %s%s (%d)", (void *)temp, temp->name, temp->num_values > 1 ? "1setOf " : "", ippTagString(temp->value_tag), temp->num_values)); if (ipp->current == *attr && ipp->prev) { /* * Use current "previous" pointer... */ prev = ipp->prev; } else { /* * Find this attribute in the linked list... */ for (prev = NULL, current = ipp->attrs; current && current != *attr; prev = current, current = current->next); if (!current) { /* * This is a serious error! */ *attr = temp; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP attribute is not a member of the message."), 1); DEBUG_puts("4ipp_set_value: Unable to find attribute in message."); return (NULL); } } if (prev) prev->next = temp; else ipp->attrs = temp; ipp->current = temp; ipp->prev = prev; if (ipp->last == *attr) ipp->last = temp; *attr = temp; } /* * Return the value element... */ if (element >= temp->num_values) temp->num_values = element + 1; return (temp->values + element); } /* * 'ipp_write_file()' - Write IPP data to a file. */ static ssize_t /* O - Number of bytes written */ ipp_write_file(int *fd, /* I - File descriptor */ ipp_uchar_t *buffer, /* I - Data to write */ size_t length) /* I - Number of bytes to write */ { #ifdef _WIN32 return ((ssize_t)write(*fd, buffer, (unsigned)length)); #else return (write(*fd, buffer, length)); #endif /* _WIN32 */ } cups-2.4.7/cups/ipp-vars.c0000644000175000017500000001332414502571342015243 0ustar zdohnalzdohnal/* * IPP data file parsing functions. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "ipp-private.h" #include "string-private.h" #include "debug-internal.h" /* * '_ippVarsDeinit()' - Free all memory associated with the IPP variables. */ void _ippVarsDeinit(_ipp_vars_t *v) /* I - IPP variables */ { if (v->uri) { free(v->uri); v->uri = NULL; } cupsFreeOptions(v->num_vars, v->vars); v->num_vars = 0; v->vars = NULL; } /* * '_ippVarsExpand()' - Expand variables in the source string. */ void _ippVarsExpand(_ipp_vars_t *v, /* I - IPP variables */ char *dst, /* I - Destination buffer */ const char *src, /* I - Source string */ size_t dstsize) /* I - Destination buffer size */ { char *dstptr, /* Pointer into destination */ *dstend, /* End of destination */ temp[256], /* Temporary string */ *tempptr; /* Pointer into temporary string */ const char *value; /* Value to substitute */ dstptr = dst; dstend = dst + dstsize - 1; while (*src && dstptr < dstend) { if (*src == '$') { /* * Substitute a string/number... */ if (!strncmp(src, "$$", 2)) { value = "$"; src += 2; } else if (!strncmp(src, "$ENV[", 5)) { strlcpy(temp, src + 5, sizeof(temp)); for (tempptr = temp; *tempptr; tempptr ++) if (*tempptr == ']') break; if (*tempptr) *tempptr++ = '\0'; value = getenv(temp); src += tempptr - temp + 5; } else { if (src[1] == '{') { src += 2; strlcpy(temp, src, sizeof(temp)); if ((tempptr = strchr(temp, '}')) != NULL) *tempptr = '\0'; else tempptr = temp + strlen(temp); } else { strlcpy(temp, src + 1, sizeof(temp)); for (tempptr = temp; *tempptr; tempptr ++) if (!isalnum(*tempptr & 255) && *tempptr != '-' && *tempptr != '_') break; if (*tempptr) *tempptr = '\0'; } value = _ippVarsGet(v, temp); src += tempptr - temp + 1; } if (value) { strlcpy(dstptr, value, (size_t)(dstend - dstptr + 1)); dstptr += strlen(dstptr); } } else *dstptr++ = *src++; } *dstptr = '\0'; } /* * '_ippVarsGet()' - Get a variable string. */ const char * /* O - Value or @code NULL@ if not set */ _ippVarsGet(_ipp_vars_t *v, /* I - IPP variables */ const char *name) /* I - Variable name */ { if (!v) return (NULL); else if (!strcmp(name, "uri")) return (v->uri); else if (!strcmp(name, "uriuser") || !strcmp(name, "username")) return (v->username[0] ? v->username : NULL); else if (!strcmp(name, "scheme") || !strcmp(name, "method")) return (v->scheme); else if (!strcmp(name, "hostname")) return (v->host); else if (!strcmp(name, "port")) return (v->portstr); else if (!strcmp(name, "resource")) return (v->resource); else if (!strcmp(name, "user")) return (cupsUser()); else return (cupsGetOption(name, v->num_vars, v->vars)); } /* * '_ippVarsInit()' - Initialize . */ void _ippVarsInit(_ipp_vars_t *v, /* I - IPP variables */ _ipp_fattr_cb_t attrcb, /* I - Attribute (filter) callback */ _ipp_ferror_cb_t errorcb, /* I - Error callback */ _ipp_ftoken_cb_t tokencb) /* I - Token callback */ { memset(v, 0, sizeof(_ipp_vars_t)); v->attrcb = attrcb; v->errorcb = errorcb; v->tokencb = tokencb; } /* * '_ippVarsPasswordCB()' - Password callback using the IPP variables. */ const char * /* O - Password string or @code NULL@ */ _ippVarsPasswordCB( const char *prompt, /* I - Prompt string (not used) */ http_t *http, /* I - HTTP connection (not used) */ const char *method, /* I - HTTP method (not used) */ const char *resource, /* I - Resource path (not used) */ void *user_data) /* I - IPP variables */ { _ipp_vars_t *v = (_ipp_vars_t *)user_data; /* I - IPP variables */ (void)prompt; (void)http; (void)method; (void)resource; if (v->username[0] && v->password && v->password_tries < 3) { v->password_tries ++; cupsSetUser(v->username); return (v->password); } else { return (NULL); } } /* * '_ippVarsSet()' - Set an IPP variable. */ int /* O - 1 on success, 0 on failure */ _ippVarsSet(_ipp_vars_t *v, /* I - IPP variables */ const char *name, /* I - Variable name */ const char *value) /* I - Variable value */ { if (!strcmp(name, "uri")) { char uri[1024]; /* New printer URI */ char resolved[1024]; /* Resolved mDNS URI */ if (strstr(value, "._tcp")) { /* * Resolve URI... */ if (!_httpResolveURI(value, resolved, sizeof(resolved), _HTTP_RESOLVE_DEFAULT, NULL, NULL)) return (0); value = resolved; } if (httpSeparateURI(HTTP_URI_CODING_ALL, value, v->scheme, sizeof(v->scheme), v->username, sizeof(v->username), v->host, sizeof(v->host), &(v->port), v->resource, sizeof(v->resource)) < HTTP_URI_STATUS_OK) return (0); if (v->username[0]) { if ((v->password = strchr(v->username, ':')) != NULL) *(v->password)++ = '\0'; } snprintf(v->portstr, sizeof(v->portstr), "%d", v->port); if (v->uri) free(v->uri); httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), v->scheme, NULL, v->host, v->port, v->resource); v->uri = strdup(uri); return (v->uri != NULL); } else { v->num_vars = cupsAddOption(name, value, v->num_vars, &v->vars); return (1); } } cups-2.4.7/cups/ipp-support.c0000644000175000017500000024007714502571342016013 0ustar zdohnalzdohnal/* * Internet Printing Protocol support functions for CUPS. * * Copyright © 2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * Local globals... */ static const char * const ipp_states[] = { "IPP_STATE_ERROR", "IPP_STATE_IDLE", "IPP_STATE_HEADER", "IPP_STATE_ATTRIBUTE", "IPP_STATE_DATA" }; static const char * const ipp_status_oks[] = /* "OK" status codes */ { /* (name) = abandoned standard value */ "successful-ok", "successful-ok-ignored-or-substituted-attributes", "successful-ok-conflicting-attributes", "successful-ok-ignored-subscriptions", "(successful-ok-ignored-notifications)", "successful-ok-too-many-events", "(successful-ok-but-cancel-subscription)", "successful-ok-events-complete" }, * const ipp_status_400s[] = /* Client errors */ { /* (name) = abandoned standard value */ "client-error-bad-request", "client-error-forbidden", "client-error-not-authenticated", "client-error-not-authorized", "client-error-not-possible", "client-error-timeout", "client-error-not-found", "client-error-gone", "client-error-request-entity-too-large", "client-error-request-value-too-long", "client-error-document-format-not-supported", "client-error-attributes-or-values-not-supported", "client-error-uri-scheme-not-supported", "client-error-charset-not-supported", "client-error-conflicting-attributes", "client-error-compression-not-supported", "client-error-compression-error", "client-error-document-format-error", "client-error-document-access-error", "client-error-attributes-not-settable", "client-error-ignored-all-subscriptions", "client-error-too-many-subscriptions", "(client-error-ignored-all-notifications)", "(client-error-client-print-support-file-not-found)", "client-error-document-password-error", "client-error-document-permission-error", "client-error-document-security-error", "client-error-document-unprintable-error", "client-error-account-info-needed", "client-error-account-closed", "client-error-account-limit-reached", "client-error-account-authorization-failed", "client-error-not-fetchable" }, * const ipp_status_480s[] = /* Vendor client errors */ { /* 0x0480 - 0x048F */ "0x0480", "0x0481", "0x0482", "0x0483", "0x0484", "0x0485", "0x0486", "0x0487", "0x0488", "0x0489", "0x048A", "0x048B", "0x048C", "0x048D", "0x048E", "0x048F", /* 0x0490 - 0x049F */ "0x0490", "0x0491", "0x0492", "0x0493", "0x0494", "0x0495", "0x0496", "0x0497", "0x0498", "0x0499", "0x049A", "0x049B", "cups-error-account-info-needed", "cups-error-account-closed", "cups-error-account-limit-reached", "cups-error-account-authorization-failed" }, * const ipp_status_500s[] = /* Server errors */ { "server-error-internal-error", "server-error-operation-not-supported", "server-error-service-unavailable", "server-error-version-not-supported", "server-error-device-error", "server-error-temporary-error", "server-error-not-accepting-jobs", "server-error-busy", "server-error-job-canceled", "server-error-multiple-document-jobs-not-supported", "server-error-printer-is-deactivated", "server-error-too-many-jobs", "server-error-too-many-documents" }, * const ipp_status_1000s[] = /* CUPS internal */ { "cups-authentication-canceled", "cups-pki-error", "cups-upgrade-required" }; static const char * const ipp_std_ops[] = { /* 0x0000 - 0x000f */ "0x0000", "0x0001", "Print-Job", /* RFC 8011 */ "Print-URI", /* RFC 8011 */ "Validate-Job", /* RFC 8011 */ "Create-Job", /* RFC 8011 */ "Send-Document", /* RFC 8011 */ "Send-URI", /* RFC 8011 */ "Cancel-Job", /* RFC 8011 */ "Get-Job-Attributes", /* RFC 8011 */ "Get-Jobs", /* RFC 8011 */ "Get-Printer-Attributes", /* RFC 8011 */ "Hold-Job", /* RFC 8011 */ "Release-Job", /* RFC 8011 */ "Restart-Job", /* RFC 8011 */ "0x000f", /* 0x0010 - 0x001f */ "Pause-Printer", /* RFC 8011 */ "Resume-Printer", /* RFC 8011 */ "Purge-Jobs", /* RFC 8011 */ "Set-Printer-Attributes", /* RFC 3380 */ "Set-Job-Attributes", /* RFC 3380 */ "Get-Printer-Supported-Values", /* RFC 3380 */ "Create-Printer-Subscriptions", /* RFC 3995 */ "Create-Job-Subscriptions", /* RFC 3995 */ "Get-Subscription-Attributes", /* RFC 3995 */ "Get-Subscriptions", /* RFC 3995 */ "Renew-Subscription", /* RFC 3995 */ "Cancel-Subscription", /* RFC 3995 */ "Get-Notifications", /* RFC 3996 */ "(Send-Notifications)", "Get-Resource-Attributes", /* IPP System */ "(Get-Resource-Data)", /* 0x0020 - 0x002f */ "Get-Resources", /* IPP System */ "(Get-Printer-Support-Files)", "Enable-Printer", /* RFC 3998 */ "Disable-Printer", /* RFC 3998 */ "Pause-Printer-After-Current-Job", /* RFC 3998 */ "Hold-New-Jobs", /* RFC 3998 */ "Release-Held-New-Jobs", /* RFC 3998 */ "Deactivate-Printer", /* RFC 3998 */ "Activate-Printer", /* RFC 3998 */ "Restart-Printer", /* RFC 3998 */ "Shutdown-Printer", /* RFC 3998 */ "Startup-Printer", /* RFC 3998 */ "Reprocess-Job", /* RFC 3998 */ "Cancel-Current-Job", /* RFC 3998 */ "Suspend-Current-Job", /* RFC 3998 */ "Resume-Job", /* RFC 3998 */ /* 0x0030 - 0x003f */ "Promote-Job", /* RFC 3998 */ "Schedule-Job-After", /* RFC 3998 */ "0x0032", "Cancel-Document", /* IPP DocObject */ "Get-Document-Attributes", /* IPP DocObject */ "Get-Documents", /* IPP DocObject */ "Delete-Document", /* IPP DocObject */ "Set-Document-Attributes", /* IPP DocObject */ "Cancel-Jobs", /* IPP JPS2 */ "Cancel-My-Jobs", /* IPP JPS2 */ "Resubmit-Job", /* IPP JPS2 */ "Close-Job", /* IPP JPS2 */ "Identify-Printer", /* IPP JPS3 */ "Validate-Document", /* IPP JPS3 */ "Add-Document-Images", /* IPP Scan */ "Acknowledge-Document", /* IPP INFRA */ /* 0x0040 - 0x004f */ "Acknowledge-Identify-Printer", /* IPP INFRA */ "Acknowledge-Job", /* IPP INFRA */ "Fetch-Document", /* IPP INFRA */ "Fetch-Job", /* IPP INFRA */ "Get-Output-Device-Attributes", /* IPP INFRA */ "Update-Active-Jobs", /* IPP INFRA */ "Deregister-Output-Device", /* IPP INFRA */ "Update-Document-Status", /* IPP INFRA */ "Update-Job-Status", /* IPP INFRA */ "Update-Output-Device-Attributes", /* IPP INFRA */ "Get-Next-Document-Data", /* IPP Scan */ "Allocate-Printer-Resources", /* IPP System */ "Create-Printer", /* IPP System */ "Deallocate-Printer-Resources", /* IPP System */ "Delete-Printer", /* IPP System */ "Get-Printers", /* IPP System */ /* 0x0050 - 0x005f */ "Shutdown-One-Printer", /* IPP System */ "Startup-One-Printer", /* IPP System */ "Cancel-Resource", /* IPP System */ "Create-Resource", /* IPP System */ "Install-Resource", /* IPP System */ "Send-Resource-Data", /* IPP System */ "Set-Resource-Attributes", /* IPP System */ "Create-Resource-Subscriptions", /* IPP System */ "Create-System-Subscriptions", /* IPP System */ "Disable-All-Printers", /* IPP System */ "Enable-All-Printers", /* IPP System */ "Get-System-Attributes", /* IPP System */ "Get-System-Supported-Values", /* IPP System */ "Pause-All-Printers", /* IPP System */ "Pause-All-Printers-After-Current-Job", /* IPP System */ "Register-Output-Device", /* IPP System */ /* 0x0060 - 0x0064 */ "Restart-System", /* IPP System */ "Resume-All-Printers", /* IPP System */ "Set-System-Attributes", /* IPP System */ "Shutdown-All-Printers", /* IPP System */ "Startup-All-Printers" /* IPP System */ }, * const ipp_cups_ops[] = { "CUPS-Get-Default", "CUPS-Get-Printers", "CUPS-Add-Modify-Printer", "CUPS-Delete-Printer", "CUPS-Get-Classes", "CUPS-Add-Modify-Class", "CUPS-Delete-Class", "CUPS-Accept-Jobs", "CUPS-Reject-Jobs", "CUPS-Set-Default", "CUPS-Get-Devices", "CUPS-Get-PPDs", "CUPS-Move-Job", "CUPS-Authenticate-Job", "CUPS-Get-PPD" }, * const ipp_cups_ops2[] = { "CUPS-Get-Document", "CUPS-Create-Local-Printer" }, * const ipp_tag_names[] = { /* Value/group tag names */ "zero", /* 0x00 */ "operation-attributes-tag", /* 0x01 */ "job-attributes-tag", /* 0x02 */ "end-of-attributes-tag", /* 0x03 */ "printer-attributes-tag", /* 0x04 */ "unsupported-attributes-tag", /* 0x05 */ "subscription-attributes-tag", /* 0x06 - RFC 3995 */ "event-notification-attributes-tag", /* 0x07 - RFC 3995 */ "resource-attributes-tag", /* 0x08 - IPP System */ "document-attributes-tag", /* 0x09 - IPP DocObject */ "system-attributes-tag", /* 0x0a - IPP System */ "0x0b", /* 0x0b */ "0x0c", /* 0x0c */ "0x0d", /* 0x0d */ "0x0e", /* 0x0e */ "0x0f", /* 0x0f */ "unsupported", /* 0x10 */ "default", /* 0x11 */ "unknown", /* 0x12 */ "no-value", /* 0x13 */ "0x14", /* 0x14 */ "not-settable", /* 0x15 - RFC 3380 */ "delete-attribute", /* 0x16 - RFC 3380 */ "admin-define", /* 0x17 - RFC 3380 */ "0x18", /* 0x18 */ "0x19", /* 0x19 */ "0x1a", /* 0x1a */ "0x1b", /* 0x1b */ "0x1c", /* 0x1c */ "0x1d", /* 0x1d */ "0x1e", /* 0x1e */ "0x1f", /* 0x1f */ "0x20", /* 0x20 */ "integer", /* 0x21 */ "boolean", /* 0x22 */ "enum", /* 0x23 */ "0x24", /* 0x24 */ "0x25", /* 0x25 */ "0x26", /* 0x26 */ "0x27", /* 0x27 */ "0x28", /* 0x28 */ "0x29", /* 0x29 */ "0x2a", /* 0x2a */ "0x2b", /* 0x2b */ "0x2c", /* 0x2c */ "0x2d", /* 0x2d */ "0x2e", /* 0x2e */ "0x2f", /* 0x2f */ "octetString", /* 0x30 */ "dateTime", /* 0x31 */ "resolution", /* 0x32 */ "rangeOfInteger", /* 0x33 */ "collection", /* 0x34 */ "textWithLanguage", /* 0x35 */ "nameWithLanguage", /* 0x36 */ "endCollection", /* 0x37 */ "0x38", /* 0x38 */ "0x39", /* 0x39 */ "0x3a", /* 0x3a */ "0x3b", /* 0x3b */ "0x3c", /* 0x3c */ "0x3d", /* 0x3d */ "0x3e", /* 0x3e */ "0x3f", /* 0x3f */ "0x40", /* 0x40 */ "textWithoutLanguage",/* 0x41 */ "nameWithoutLanguage",/* 0x42 */ "0x43", /* 0x43 */ "keyword", /* 0x44 */ "uri", /* 0x45 */ "uriScheme", /* 0x46 */ "charset", /* 0x47 */ "naturalLanguage", /* 0x48 */ "mimeMediaType", /* 0x49 */ "memberAttrName" /* 0x4a */ }; static const char * const ipp_document_states[] = { /* document-state-enums */ "pending", "4", "processing", "processing-stopped", /* IPP INFRA */ "canceled", "aborted", "completed" }, * const ipp_finishings[] = { /* finishings enums */ "none", "staple", "punch", "cover", "bind", "saddle-stitch", "edge-stitch", "fold", "trim", "bale", "booklet-maker", "jog-offset", "coat", /* IPP Finishings 2.0 */ "laminate", /* IPP Finishings 2.0 */ "17", "18", "19", "staple-top-left", "staple-bottom-left", "staple-top-right", "staple-bottom-right", "edge-stitch-left", "edge-stitch-top", "edge-stitch-right", "edge-stitch-bottom", "staple-dual-left", "staple-dual-top", "staple-dual-right", "staple-dual-bottom", "staple-triple-left", /* IPP Finishings 2.0 */ "staple-triple-top", /* IPP Finishings 2.0 */ "staple-triple-right",/* IPP Finishings 2.0 */ "staple-triple-bottom",/* IPP Finishings 2.0 */ "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "bind-left", "bind-top", "bind-right", "bind-bottom", "54", "55", "56", "57", "58", "59", "trim-after-pages", "trim-after-documents", "trim-after-copies", "trim-after-job", "64", "65", "66", "67", "68", "69", "punch-top-left", /* IPP Finishings 2.0 */ "punch-bottom-left", /* IPP Finishings 2.0 */ "punch-top-right", /* IPP Finishings 2.0 */ "punch-bottom-right", /* IPP Finishings 2.0 */ "punch-dual-left", /* IPP Finishings 2.0 */ "punch-dual-top", /* IPP Finishings 2.0 */ "punch-dual-right", /* IPP Finishings 2.0 */ "punch-dual-bottom", /* IPP Finishings 2.0 */ "punch-triple-left", /* IPP Finishings 2.0 */ "punch-triple-top", /* IPP Finishings 2.0 */ "punch-triple-right", /* IPP Finishings 2.0 */ "punch-triple-bottom",/* IPP Finishings 2.0 */ "punch-quad-left", /* IPP Finishings 2.0 */ "punch-quad-top", /* IPP Finishings 2.0 */ "punch-quad-right", /* IPP Finishings 2.0 */ "punch-quad-bottom", /* IPP Finishings 2.0 */ "punch-multiple-left",/* IPP Finishings 2.1/Canon */ "punch-multiple-top", /* IPP Finishings 2.1/Canon */ "punch-multiple-right",/* IPP Finishings 2.1/Canon */ "punch-multiple-bottom",/* IPP Finishings 2.1/Canon */ "fold-accordion", /* IPP Finishings 2.0 */ "fold-double-gate", /* IPP Finishings 2.0 */ "fold-gate", /* IPP Finishings 2.0 */ "fold-half", /* IPP Finishings 2.0 */ "fold-half-z", /* IPP Finishings 2.0 */ "fold-left-gate", /* IPP Finishings 2.0 */ "fold-letter", /* IPP Finishings 2.0 */ "fold-parallel", /* IPP Finishings 2.0 */ "fold-poster", /* IPP Finishings 2.0 */ "fold-right-gate", /* IPP Finishings 2.0 */ "fold-z", /* IPP Finishings 2.0 */ "fold-engineering-z" /* IPP Finishings 2.1 */ }, * const ipp_finishings_vendor[] = { /* 0x40000000 to 0x4000000F */ "0x40000000", "0x40000001", "0x40000002", "0x40000003", "0x40000004", "0x40000005", "0x40000006", "0x40000007", "0x40000008", "0x40000009", "0x4000000A", "0x4000000B", "0x4000000C", "0x4000000D", "0x4000000E", "0x4000000F", /* 0x40000010 to 0x4000001F */ "0x40000010", "0x40000011", "0x40000012", "0x40000013", "0x40000014", "0x40000015", "0x40000016", "0x40000017", "0x40000018", "0x40000019", "0x4000001A", "0x4000001B", "0x4000001C", "0x4000001D", "0x4000001E", "0x4000001F", /* 0x40000020 to 0x4000002F */ "0x40000020", "0x40000021", "0x40000022", "0x40000023", "0x40000024", "0x40000025", "0x40000026", "0x40000027", "0x40000028", "0x40000029", "0x4000002A", "0x4000002B", "0x4000002C", "0x4000002D", "0x4000002E", "0x4000002F", /* 0x40000030 to 0x4000003F */ "0x40000030", "0x40000031", "0x40000032", "0x40000033", "0x40000034", "0x40000035", "0x40000036", "0x40000037", "0x40000038", "0x40000039", "0x4000003A", "0x4000003B", "0x4000003C", "0x4000003D", "0x4000003E", "0x4000003F", /* 0x40000040 - 0x4000004F */ "0x40000040", "0x40000041", "0x40000042", "0x40000043", "0x40000044", "0x40000045", "cups-punch-top-left", "cups-punch-bottom-left", "cups-punch-top-right", "cups-punch-bottom-right", "cups-punch-dual-left", "cups-punch-dual-top", "cups-punch-dual-right", "cups-punch-dual-bottom", "cups-punch-triple-left", "cups-punch-triple-top", /* 0x40000050 - 0x4000005F */ "cups-punch-triple-right", "cups-punch-triple-bottom", "cups-punch-quad-left", "cups-punch-quad-top", "cups-punch-quad-right", "cups-punch-quad-bottom", "0x40000056", "0x40000057", "0x40000058", "0x40000059", "cups-fold-accordion", "cups-fold-double-gate", "cups-fold-gate", "cups-fold-half", "cups-fold-half-z", "cups-fold-left-gate", /* 0x40000060 - 0x40000064 */ "cups-fold-letter", "cups-fold-parallel", "cups-fold-poster", "cups-fold-right-gate", "cups-fold-z" }, * const ipp_job_collation_types[] = { /* job-collation-type enums */ "uncollated-sheets", "collated-documents", "uncollated-documents" }, * const ipp_job_states[] = { /* job-state enums */ "pending", "pending-held", "processing", "processing-stopped", "canceled", "aborted", "completed" }, * const ipp_orientation_requesteds[] = { /* orientation-requested enums */ "portrait", "landscape", "reverse-landscape", "reverse-portrait", "none" }, * const ipp_print_qualities[] = { /* print-quality enums */ "draft", "normal", "high" }, * const ipp_printer_states[] = { /* printer-state enums */ "idle", "processing", "stopped" }, * const ipp_resource_states[] = { /* resource-state enums */ "pending", "available", "installed", "canceled", "aborted" }, * const ipp_system_states[] = { /* system-state enums */ "idle", "processing", "stopped" }; /* * Local functions... */ static size_t ipp_col_string(ipp_t *col, char *buffer, size_t bufsize); /* * 'ippAttributeString()' - Convert the attribute's value to a string. * * Returns the number of bytes that would be written, not including the * trailing nul. The buffer pointer can be NULL to get the required length, * just like (v)snprintf. * * @since CUPS 1.6/macOS 10.8@ */ size_t /* O - Number of bytes less nul */ ippAttributeString( ipp_attribute_t *attr, /* I - Attribute */ char *buffer, /* I - String buffer or NULL */ size_t bufsize) /* I - Size of string buffer */ { int i; /* Looping var */ char *bufptr, /* Pointer into buffer */ *bufend, /* End of buffer */ temp[256]; /* Temporary string */ const char *ptr, /* Pointer into string */ *end; /* Pointer to end of string */ _ipp_value_t *val; /* Current value */ if (!attr || !attr->name) { if (buffer) *buffer = '\0'; return (0); } bufptr = buffer; if (buffer) bufend = buffer + bufsize - 1; else bufend = NULL; for (i = attr->num_values, val = attr->values; i > 0; i --, val ++) { if (val > attr->values) { if (buffer && bufptr < bufend) *bufptr++ = ','; else bufptr ++; } switch (attr->value_tag & ~IPP_TAG_CUPS_CONST) { case IPP_TAG_ENUM : ptr = ippEnumString(attr->name, val->integer); if (buffer && bufptr < bufend) strlcpy(bufptr, ptr, (size_t)(bufend - bufptr + 1)); bufptr += strlen(ptr); break; case IPP_TAG_INTEGER : if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d", val->integer); else bufptr += snprintf(temp, sizeof(temp), "%d", val->integer); break; case IPP_TAG_BOOLEAN : if (buffer && bufptr < bufend) strlcpy(bufptr, val->boolean ? "true" : "false", (size_t)(bufend - bufptr + 1)); bufptr += val->boolean ? 4 : 5; break; case IPP_TAG_RANGE : if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d-%d", val->range.lower, val->range.upper); else bufptr += snprintf(temp, sizeof(temp), "%d-%d", val->range.lower, val->range.upper); break; case IPP_TAG_RESOLUTION : if (val->resolution.xres == val->resolution.yres) { if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%d%s", val->resolution.xres, val->resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else bufptr += snprintf(temp, sizeof(temp), "%d%s", val->resolution.xres, val->resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); } else if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%dx%d%s", val->resolution.xres, val->resolution.yres, val->resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else bufptr += snprintf(temp, sizeof(temp), "%dx%d%s", val->resolution.xres, val->resolution.yres, val->resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); break; case IPP_TAG_DATE : { unsigned year; /* Year */ year = ((unsigned)val->date[0] << 8) | (unsigned)val->date[1]; if (val->date[9] == 0 && val->date[10] == 0) snprintf(temp, sizeof(temp), "%04u-%02u-%02uT%02u:%02u:%02uZ", year, val->date[2], val->date[3], val->date[4], val->date[5], val->date[6]); else snprintf(temp, sizeof(temp), "%04u-%02u-%02uT%02u:%02u:%02u%c%02u%02u", year, val->date[2], val->date[3], val->date[4], val->date[5], val->date[6], val->date[8], val->date[9], val->date[10]); if (buffer && bufptr < bufend) strlcpy(bufptr, temp, (size_t)(bufend - bufptr + 1)); bufptr += strlen(temp); } break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_MIMETYPE : case IPP_TAG_LANGUAGE : case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : if (!val->string.text) break; for (ptr = val->string.text; *ptr; ptr ++) { if (*ptr == '\\' || *ptr == '\"' || *ptr == '[') { if (buffer && bufptr < bufend) *bufptr = '\\'; bufptr ++; } if (buffer && bufptr < bufend) *bufptr = *ptr; bufptr ++; } if (val->string.language) { /* * Add "[language]" to end of string... */ if (buffer && bufptr < bufend) *bufptr = '['; bufptr ++; if (buffer && bufptr < bufend) strlcpy(bufptr, val->string.language, (size_t)(bufend - bufptr)); bufptr += strlen(val->string.language); if (buffer && bufptr < bufend) *bufptr = ']'; bufptr ++; } break; case IPP_TAG_BEGIN_COLLECTION : if (buffer && bufptr < bufend) bufptr += ipp_col_string(val->collection, bufptr, (size_t)(bufend - bufptr + 1)); else bufptr += ipp_col_string(val->collection, NULL, 0); break; case IPP_TAG_STRING : for (ptr = val->unknown.data, end = ptr + val->unknown.length; ptr < end; ptr ++) { if (*ptr == '\\' || _cups_isspace(*ptr)) { if (buffer && bufptr < bufend) *bufptr = '\\'; bufptr ++; if (buffer && bufptr < bufend) *bufptr = *ptr; bufptr ++; } else if (!isprint(*ptr & 255)) { if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "\\%03o", *ptr & 255); else bufptr += snprintf(temp, sizeof(temp), "\\%03o", *ptr & 255); } else { if (buffer && bufptr < bufend) *bufptr = *ptr; bufptr ++; } } break; default : ptr = ippTagString(attr->value_tag); if (buffer && bufptr < bufend) strlcpy(bufptr, ptr, (size_t)(bufend - bufptr + 1)); bufptr += strlen(ptr); break; } } if (buffer && bufptr < bufend) *bufptr = '\0'; else if (bufend) *bufend = '\0'; return ((size_t)(bufptr - buffer)); } /* * 'ippCreateRequestedArray()' - Create a CUPS array of attribute names from the * given requested-attributes attribute. * * This function creates a (sorted) CUPS array of attribute names matching the * list of "requested-attribute" values supplied in an IPP request. All IANA- * registered values are supported in addition to the CUPS IPP extension * attributes. * * The @code request@ parameter specifies the request message that was read from * the client. * * @code NULL@ is returned if all attributes should be returned. Otherwise, the * result is a sorted array of attribute names, where @code cupsArrayFind(array, * "attribute-name")@ will return a non-NULL pointer. The array must be freed * using the @code cupsArrayDelete@ function. * * @since CUPS 1.7/macOS 10.9@ */ cups_array_t * /* O - CUPS array or @code NULL@ if all */ ippCreateRequestedArray(ipp_t *request) /* I - IPP request */ { int i, j, /* Looping vars */ count, /* Number of values */ added; /* Was name added? */ ipp_op_t op; /* IPP operation code */ ipp_attribute_t *requested; /* requested-attributes attribute */ cups_array_t *ra; /* Requested attributes array */ const char *value; /* Current value */ /* The following lists come from the current IANA IPP registry of attributes */ static const char * const document_description[] = { /* document-description group */ "compression", "copies-actual", "cover-back-actual", "cover-front-actual", "current-page-order", "date-time-at-completed", "date-time-at-creation", "date-time-at-processing", "detailed-status-messages", "document-access-errors", "document-charset", "document-digital-signature", "document-format", "document-format-details", "document-format-detected", "document-format-version", "document-format-version-detected", "document-job-id", "document-job-uri", "document-message", "document-metadata", "document-name", "document-natural-language", "document-number", "document-printer-uri", "document-state", "document-state-message", "document-state-reasons", "document-uri", "document-uuid", /* IPP JPS3 */ "errors-count", "finishings-actual", "finishings-col-actual", "force-front-side-actual", "imposition-template-actual", "impressions", "impressions-col", "impressions-completed", "impressions-completed-col", "impressions-completed-current-copy", "insert-sheet-actual", "k-octets", "k-octets-processed", "last-document", "materials-col-actual", /* IPP 3D */ "media-actual", "media-col-actual", "media-input-tray-check-actual", "media-sheets", "media-sheets-col", "media-sheets-completed", "media-sheets-completed-col", "more-info", "multiple-object-handling-actual", /* IPP 3D */ "number-up-actual", "orientation-requested-actual", "output-bin-actual", "output-device-assigned", "overrides-actual", "page-delivery-actual", "page-order-received-actual", "page-ranges-actual", "pages", "pages-col", "pages-completed", "pages-completed-col", "pages-completed-current-copy", "platform-temperature-actual", /* IPP 3D */ "presentation-direction-number-up-actual", "print-accuracy-actual", /* IPP 3D */ "print-base-actual", /* IPP 3D */ "print-color-mode-actual", "print-content-optimize-actual", "print-objects-actual", /* IPP 3D */ "print-quality-actual", "print-rendering-intent-actual", "print-scaling-actual", /* IPP Paid Printing */ "print-supports-actual", /* IPP 3D */ "printer-resolution-actual", "printer-up-time", "separator-sheets-actual", "sheet-completed-copy-number", "sides-actual", "time-at-completed", "time-at-creation", "time-at-processing", "x-image-position-actual", "x-image-shift-actual", "x-side1-image-shift-actual", "x-side2-image-shift-actual", "y-image-position-actual", "y-image-shift-actual", "y-side1-image-shift-actual", "y-side2-image-shift-actual" }; static const char * const document_template[] = { /* document-template group */ "chamber-humidity", /* IPP 3D */ "chamber-humidity-default", /* IPP 3D */ "chamber-humidity-supported", /* IPP 3D */ "chamber-temperature", /* IPP 3D */ "chamber-temperature-default", /* IPP 3D */ "chamber-temperature-supported", /* IPP 3D */ "copies", "copies-default", "copies-supported", "cover-back", "cover-back-default", "cover-back-supported", "cover-front", "cover-front-default", "cover-front-supported", "feed-orientation", "feed-orientation-default", "feed-orientation-supported", "finishings", "finishings-col", "finishings-col-database", "finishings-col-default", "finishings-col-ready", "finishings-col-supported", "finishings-default", "finishings-ready", "finishings-supported", "font-name-requested", "font-name-requested-default", "font-name-requested-supported", "font-size-requested", "font-size-requested-default", "font-size-requested-supported", "force-front-side", "force-front-side-default", "force-front-side-supported", "imposition-template", "imposition-template-default", "imposition-template-supported", "insert-after-page-number-supported", "insert-count-supported", "insert-sheet", "insert-sheet-default", "insert-sheet-supported", "material-amount-units-supported", /* IPP 3D */ "material-diameter-supported", /* IPP 3D */ "material-purpose-supported", /* IPP 3D */ "material-rate-supported", /* IPP 3D */ "material-rate-units-supported", /* IPP 3D */ "material-shell-thickness-supported",/* IPP 3D */ "material-temperature-supported", /* IPP 3D */ "material-type-supported", /* IPP 3D */ "materials-col", /* IPP 3D */ "materials-col-database", /* IPP 3D */ "materials-col-default", /* IPP 3D */ "materials-col-ready", /* IPP 3D */ "materials-col-supported", /* IPP 3D */ "max-materials-col-supported", /* IPP 3D */ "max-stitching-locations-supported", "media", "media-back-coating-supported", "media-bottom-margin-supported", "media-col", "media-col-default", "media-col-ready", "media-col-supported", "media-color-supported", "media-default", "media-front-coating-supported", "media-grain-supported", "media-hole-count-supported", "media-info-supported", "media-input-tray-check", "media-input-tray-check-default", "media-input-tray-check-supported", "media-key-supported", "media-left-margin-supported", "media-order-count-supported", "media-pre-printed-supported", "media-ready", "media-recycled-supported", "media-right-margin-supported", "media-size-supported", "media-source-supported", "media-supported", "media-thickness-supported", "media-top-margin-supported", "media-type-supported", "media-weight-metric-supported", "multiple-document-handling", "multiple-document-handling-default", "multiple-document-handling-supported", "multiple-object-handling", /* IPP 3D */ "multiple-object-handling-default", /* IPP 3D */ "multiple-object-handling-supported",/* IPP 3D */ "number-up", "number-up-default", "number-up-supported", "orientation-requested", "orientation-requested-default", "orientation-requested-supported", "output-mode", /* CUPS extension */ "output-mode-default", /* CUPS extension */ "output-mode-supported", /* CUPS extension */ "overrides", "overrides-supported", "page-delivery", "page-delivery-default", "page-delivery-supported", "page-order-received", "page-order-received-default", "page-order-received-supported", "page-ranges", "page-ranges-supported", "pages-per-subset", "pages-per-subset-supported", "pdl-init-file", "pdl-init-file-default", "pdl-init-file-entry-supported", "pdl-init-file-location-supported", "pdl-init-file-name-subdirectory-supported", "pdl-init-file-name-supported", "pdl-init-file-supported", "platform-temperature", /* IPP 3D */ "platform-temperature-default", /* IPP 3D */ "platform-temperature-supported", /* IPP 3D */ "presentation-direction-number-up", "presentation-direction-number-up-default", "presentation-direction-number-up-supported", "print-accuracy", /* IPP 3D */ "print-accuracy-default", /* IPP 3D */ "print-accuracy-supported", /* IPP 3D */ "print-base", /* IPP 3D */ "print-base-default", /* IPP 3D */ "print-base-supported", /* IPP 3D */ "print-color-mode", "print-color-mode-default", "print-color-mode-supported", "print-content-optimize", "print-content-optimize-default", "print-content-optimize-supported", "print-objects", /* IPP 3D */ "print-objects-default", /* IPP 3D */ "print-objects-supported", /* IPP 3D */ "print-quality", "print-quality-default", "print-quality-supported", "print-rendering-intent", "print-rendering-intent-default", "print-rendering-intent-supported", "print-scaling", /* IPP Paid Printing */ "print-scaling-default", /* IPP Paid Printing */ "print-scaling-supported", /* IPP Paid Printing */ "print-supports", /* IPP 3D */ "print-supports-default", /* IPP 3D */ "print-supports-supported", /* IPP 3D */ "printer-resolution", "printer-resolution-default", "printer-resolution-supported", "separator-sheets", "separator-sheets-default", "separator-sheets-supported", "sheet-collate", "sheet-collate-default", "sheet-collate-supported", "sides", "sides-default", "sides-supported", "stitching-locations-supported", "stitching-offset-supported", "x-image-position", "x-image-position-default", "x-image-position-supported", "x-image-shift", "x-image-shift-default", "x-image-shift-supported", "x-side1-image-shift", "x-side1-image-shift-default", "x-side1-image-shift-supported", "x-side2-image-shift", "x-side2-image-shift-default", "x-side2-image-shift-supported", "y-image-position", "y-image-position-default", "y-image-position-supported", "y-image-shift", "y-image-shift-default", "y-image-shift-supported", "y-side1-image-shift", "y-side1-image-shift-default", "y-side1-image-shift-supported", "y-side2-image-shift", "y-side2-image-shift-default", "y-side2-image-shift-supported" }; static const char * const job_description[] = { /* job-description group */ "chamber-humidity-actual", /* IPP 3D */ "chamber-temperature-actual", /* IPP 3D */ "compression-supplied", "copies-actual", "cover-back-actual", "cover-front-actual", "current-page-order", "date-time-at-completed", "date-time-at-creation", "date-time-at-processing", "destination-statuses", "document-charset-supplied", "document-digital-signature-supplied", "document-format-details-supplied", "document-format-supplied", "document-message-supplied", "document-metadata", "document-name-supplied", "document-natural-language-supplied", "document-overrides-actual", "errors-count", "finishings-actual", "finishings-col-actual", "force-front-side-actual", "imposition-template-actual", "impressions-completed-current-copy", "insert-sheet-actual", "job-account-id-actual", "job-accounting-sheets-actual", "job-accounting-user-id-actual", "job-attribute-fidelity", "job-charge-info", /* CUPS extension */ "job-collation-type", "job-collation-type-actual", "job-copies-actual", "job-cover-back-actual", "job-cover-front-actual", "job-detailed-status-message", "job-document-access-errors", "job-error-sheet-actual", "job-finishings-actual", "job-finishings-col-actual", "job-hold-until-actual", "job-id", "job-impressions", "job-impressions-col", "job-impressions-completed", "job-impressions-completed-col", "job-k-octets", "job-k-octets-processed", "job-mandatory-attributes", "job-media-progress", /* CUPS extension */ "job-media-sheets", "job-media-sheets-col", "job-media-sheets-completed", "job-media-sheets-completed-col", "job-message-from-operator", "job-more-info", "job-name", "job-originating-host-name", /* CUPS extension */ "job-originating-user-name", "job-originating-user-uri", /* IPP JPS3 */ "job-pages", "job-pages-col", "job-pages-completed", "job-pages-completed-col", "job-pages-completed-current-copy", "job-printer-state-message", /* CUPS extension */ "job-printer-state-reasons", /* CUPS extension */ "job-printer-up-time", "job-printer-uri", "job-priority-actual", "job-resource-ids", /* IPP System */ "job-save-printer-make-and-model", "job-sheet-message-actual", "job-sheets-actual", "job-sheets-col-actual", "job-state", "job-state-message", "job-state-reasons", "job-uri", "job-uuid", /* IPP JPS3 */ "materials-col-actual", /* IPP 3D */ "media-actual", "media-col-actual", "media-check-input-tray-actual", "multiple-document-handling-actual", "multiple-object-handling-actual", /* IPP 3D */ "number-of-documents", "number-of-intervening-jobs", "number-up-actual", "orientation-requested-actual", "original-requesting-user-name", "output-bin-actual", "output-device-assigned", "output-device-job-state", /* IPP INFRA */ "output-device-job-state-message", /* IPP INFRA */ "output-device-job-state-reasons", /* IPP INFRA */ "output-device-uuid-assigned", /* IPP INFRA */ "overrides-actual", "page-delivery-actual", "page-order-received-actual", "page-ranges-actual", "platform-temperature-actual", /* IPP 3D */ "presentation-direction-number-up-actual", "print-accuracy-actual", /* IPP 3D */ "print-base-actual", /* IPP 3D */ "print-color-mode-actual", "print-content-optimize-actual", "print-objects-actual", /* IPP 3D */ "print-quality-actual", "print-rendering-intent-actual", "print-scaling-actual", /* IPP Paid Printing */ "print-supports-actual", /* IPP 3D */ "printer-resolution-actual", "separator-sheets-actual", "sheet-collate-actual", "sheet-completed-copy-number", "sheet-completed-document-number", "sides-actual", "time-at-completed", "time-at-creation", "time-at-processing", "warnings-count", "x-image-position-actual", "x-image-shift-actual", "x-side1-image-shift-actual", "x-side2-image-shift-actual", "y-image-position-actual", "y-image-shift-actual", "y-side1-image-shift-actual", "y-side2-image-shift-actual" }; static const char * const job_template[] = { /* job-template group */ "accuracy-units-supported", /* IPP 3D */ "chamber-humidity", /* IPP 3D */ "chamber-humidity-default", /* IPP 3D */ "chamber-humidity-supported", /* IPP 3D */ "chamber-temperature", /* IPP 3D */ "chamber-temperature-default", /* IPP 3D */ "chamber-temperature-supported", /* IPP 3D */ "confirmation-sheet-print", /* IPP FaxOut */ "confirmation-sheet-print-default", "copies", "copies-default", "copies-supported", "cover-back", "cover-back-default", "cover-back-supported", "cover-front", "cover-front-default", "cover-front-supported", "cover-sheet-info", /* IPP FaxOut */ "cover-sheet-info-default", "cover-sheet-info-supported", "destination-uri-schemes-supported",/* IPP FaxOut */ "destination-uris", /* IPP FaxOut */ "destination-uris-supported", "feed-orientation", "feed-orientation-default", "feed-orientation-supported", "finishings", "finishings-col", "finishings-col-database", "finishings-col-default", "finishings-col-ready", "finishings-col-supported", "finishings-default", "finishings-ready", "finishings-supported", "font-name-requested", "font-name-requested-default", "font-name-requested-supported", "font-size-requested", "font-size-requested-default", "font-size-requested-supported", "force-front-side", "force-front-side-default", "force-front-side-supported", "imposition-template", "imposition-template-default", "imposition-template-supported", "insert-after-page-number-supported", "insert-count-supported", "insert-sheet", "insert-sheet-default", "insert-sheet-supported", "job-account-id", "job-account-id-default", "job-account-id-supported", "job-accounting-sheets" "job-accounting-sheets-default" "job-accounting-sheets-supported" "job-accounting-user-id", "job-accounting-user-id-default", "job-accounting-user-id-supported", "job-copies", "job-copies-default", "job-copies-supported", "job-cover-back", "job-cover-back-default", "job-cover-back-supported", "job-cover-front", "job-cover-front-default", "job-cover-front-supported", "job-delay-output-until", "job-delay-output-until-default", "job-delay-output-until-supported", "job-delay-output-until-time", "job-delay-output-until-time-default", "job-delay-output-until-time-supported", "job-error-action", "job-error-action-default", "job-error-action-supported", "job-error-sheet", "job-error-sheet-default", "job-error-sheet-supported", "job-finishings", "job-finishings-col", "job-finishings-col-default", "job-finishings-col-supported", "job-finishings-default", "job-finishings-supported", "job-hold-until", "job-hold-until-default", "job-hold-until-supported", "job-hold-until-time", "job-hold-until-time-default", "job-hold-until-time-supported", "job-message-to-operator", "job-message-to-operator-default", "job-message-to-operator-supported", "job-phone-number", "job-phone-number-default", "job-phone-number-supported", "job-priority", "job-priority-default", "job-priority-supported", "job-recipient-name", "job-recipient-name-default", "job-recipient-name-supported", "job-save-disposition", "job-save-disposition-default", "job-save-disposition-supported", "job-sheets", "job-sheets-col", "job-sheets-col-default", "job-sheets-col-supported", "job-sheets-default", "job-sheets-supported", "logo-uri-schemes-supported", "material-amount-units-supported", /* IPP 3D */ "material-diameter-supported", /* IPP 3D */ "material-purpose-supported", /* IPP 3D */ "material-rate-supported", /* IPP 3D */ "material-rate-units-supported", /* IPP 3D */ "material-shell-thickness-supported",/* IPP 3D */ "material-temperature-supported", /* IPP 3D */ "material-type-supported", /* IPP 3D */ "materials-col", /* IPP 3D */ "materials-col-database", /* IPP 3D */ "materials-col-default", /* IPP 3D */ "materials-col-ready", /* IPP 3D */ "materials-col-supported", /* IPP 3D */ "max-materials-col-supported", /* IPP 3D */ "max-save-info-supported", "max-stitching-locations-supported", "media", "media-back-coating-supported", "media-bottom-margin-supported", "media-col", "media-col-default", "media-col-ready", "media-col-supported", "media-color-supported", "media-default", "media-front-coating-supported", "media-grain-supported", "media-hole-count-supported", "media-info-supported", "media-input-tray-check", "media-input-tray-check-default", "media-input-tray-check-supported", "media-key-supported", "media-left-margin-supported", "media-order-count-supported", "media-pre-printed-supported", "media-ready", "media-recycled-supported", "media-right-margin-supported", "media-size-supported", "media-source-supported", "media-supported", "media-thickness-supported", "media-top-margin-supported", "media-type-supported", "media-weight-metric-supported", "multiple-document-handling", "multiple-document-handling-default", "multiple-document-handling-supported", "multiple-object-handling", /* IPP 3D */ "multiple-object-handling-default", /* IPP 3D */ "multiple-object-handling-supported",/* IPP 3D */ "number-of-retries", /* IPP FaxOut */ "number-of-retries-default", "number-of-retries-supported", "number-up", "number-up-default", "number-up-supported", "orientation-requested", "orientation-requested-default", "orientation-requested-supported", "output-bin", "output-bin-default", "output-bin-supported", "output-device", "output-device-supported", "output-device-uuid-supported", /* IPP INFRA */ "output-mode", /* CUPS extension */ "output-mode-default", /* CUPS extension */ "output-mode-supported", /* CUPS extension */ "overrides", "overrides-supported", "page-delivery", "page-delivery-default", "page-delivery-supported", "page-order-received", "page-order-received-default", "page-order-received-supported", "page-ranges", "page-ranges-supported", "pages-per-subset", "pages-per-subset-supported", "pdl-init-file", "pdl-init-file-default", "pdl-init-file-entry-supported", "pdl-init-file-location-supported", "pdl-init-file-name-subdirectory-supported", "pdl-init-file-name-supported", "pdl-init-file-supported", "platform-temperature", /* IPP 3D */ "platform-temperature-default", /* IPP 3D */ "platform-temperature-supported", /* IPP 3D */ "presentation-direction-number-up", "presentation-direction-number-up-default", "presentation-direction-number-up-supported", "print-accuracy", /* IPP 3D */ "print-accuracy-default", /* IPP 3D */ "print-accuracy-supported", /* IPP 3D */ "print-base", /* IPP 3D */ "print-base-default", /* IPP 3D */ "print-base-supported", /* IPP 3D */ "print-color-mode", "print-color-mode-default", "print-color-mode-supported", "print-content-optimize", "print-content-optimize-default", "print-content-optimize-supported", "print-objects", /* IPP 3D */ "print-objects-default", /* IPP 3D */ "print-objects-supported", /* IPP 3D */ "print-quality", "print-quality-default", "print-quality-supported", "print-rendering-intent", "print-rendering-intent-default", "print-rendering-intent-supported", "print-scaling", /* IPP Paid Printing */ "print-scaling-default", /* IPP Paid Printing */ "print-scaling-supported", /* IPP Paid Printing */ "print-supports", /* IPP 3D */ "print-supports-default", /* IPP 3D */ "print-supports-supported", /* IPP 3D */ "printer-resolution", "printer-resolution-default", "printer-resolution-supported", "proof-print", "proof-print-default", "proof-print-supported", "retry-interval", /* IPP FaxOut */ "retry-interval-default", "retry-interval-supported", "retry-timeout", /* IPP FaxOut */ "retry-timeout-default", "retry-timeout-supported", "save-disposition-supported", "save-document-format-default", "save-document-format-supported", "save-location-default", "save-location-supported", "save-name-subdirectory-supported", "save-name-supported", "separator-sheets", "separator-sheets-default", "separator-sheets-supported", "sheet-collate", "sheet-collate-default", "sheet-collate-supported", "sides", "sides-default", "sides-supported", "stitching-locations-supported", "stitching-offset-supported", "x-image-position", "x-image-position-default", "x-image-position-supported", "x-image-shift", "x-image-shift-default", "x-image-shift-supported", "x-side1-image-shift", "x-side1-image-shift-default", "x-side1-image-shift-supported", "x-side2-image-shift", "x-side2-image-shift-default", "x-side2-image-shift-supported", "y-image-position", "y-image-position-default", "y-image-position-supported", "y-image-shift", "y-image-shift-default", "y-image-shift-supported", "y-side1-image-shift", "y-side1-image-shift-default", "y-side1-image-shift-supported", "y-side2-image-shift", "y-side2-image-shift-default", "y-side2-image-shift-supported" }; static const char * const printer_description[] = { /* printer-description group */ "auth-info-required", /* CUPS extension */ "chamber-humidity-current", /* IPP 3D */ "chamber-temperature-current", /* IPP 3D */ "charset-configured", "charset-supported", "color-supported", "compression-supported", "device-service-count", "device-uri", /* CUPS extension */ "device-uuid", "document-charset-default", "document-charset-supported", "document-creation-attributes-supported", "document-digital-signature-default", "document-digital-signature-supported", "document-format-default", "document-format-details-default", "document-format-details-supported", "document-format-preferred", /* AirPrint extension */ "document-format-supported", "document-format-varying-attributes", "document-format-version-default", "document-format-version-supported", "document-natural-language-default", "document-natural-language-supported", "document-password-supported", "document-privacy-attributes", /* IPP Privacy Attributes */ "document-privacy-scope", /* IPP Privacy Attributes */ "generated-natural-language-supported", "identify-actions-default", "identify-actions-supported", "input-source-supported", "ipp-features-supported", "ipp-versions-supported", "ippget-event-life", "job-authorization-uri-supported", /* CUPS extension */ "job-constraints-supported", "job-creation-attributes-supported", "job-finishings-col-ready", "job-finishings-ready", "job-ids-supported", "job-impressions-supported", "job-k-limit", /* CUPS extension */ "job-k-octets-supported", "job-media-sheets-supported", "job-page-limit", /* CUPS extension */ "job-password-encryption-supported", "job-password-supported", "job-presets-supported", /* IPP Presets */ "job-privacy-attributes", /* IPP Privacy Attributes */ "job-privacy-scope", /* IPP Privacy Attributes */ "job-quota-period", /* CUPS extension */ "job-resolvers-supported", "job-settable-attributes-supported", "job-spooling-supported", "job-triggers-supported", /* IPP Presets */ "jpeg-k-octets-supported", /* CUPS extension */ "jpeg-x-dimension-supported", /* CUPS extension */ "jpeg-y-dimension-supported", /* CUPS extension */ "landscape-orientation-requested-preferred", /* CUPS extension */ "marker-change-time", /* CUPS extension */ "marker-colors", /* CUPS extension */ "marker-high-levels", /* CUPS extension */ "marker-levels", /* CUPS extension */ "marker-low-levels", /* CUPS extension */ "marker-message", /* CUPS extension */ "marker-names", /* CUPS extension */ "marker-types", /* CUPS extension */ "member-names", /* CUPS extension */ "member-uris", /* CUPS extension */ "mopria-certified", /* Mopria extension */ "multiple-destination-uris-supported",/* IPP FaxOut */ "multiple-document-jobs-supported", "multiple-operation-time-out", "multiple-operation-time-out-action", "natural-language-configured", "operations-supported", "pages-per-minute", "pages-per-minute-color", "pdf-k-octets-supported", /* CUPS extension */ "pdf-features-supported", /* IPP 3D */ "pdf-versions-supported", /* CUPS extension */ "pdl-override-supported", "platform-shape", /* IPP 3D */ "port-monitor", /* CUPS extension */ "port-monitor-supported", /* CUPS extension */ "preferred-attributes-supported", "printer-alert", "printer-alert-description", "printer-camera-image-uri", /* IPP 3D */ "printer-charge-info", "printer-charge-info-uri", "printer-commands", /* CUPS extension */ "printer-config-change-date-time", "printer-config-change-time", "printer-config-changes", /* IPP System */ "printer-contact-col", /* IPP System */ "printer-current-time", "printer-detailed-status-messages", "printer-device-id", "printer-dns-sd-name", /* CUPS extension */ "printer-driver-installer", "printer-fax-log-uri", /* IPP FaxOut */ "printer-fax-modem-info", /* IPP FaxOut */ "printer-fax-modem-name", /* IPP FaxOut */ "printer-fax-modem-number", /* IPP FaxOut */ "printer-firmware-name", /* PWG 5110.1 */ "printer-firmware-patches", /* PWG 5110.1 */ "printer-firmware-string-version", /* PWG 5110.1 */ "printer-firmware-version", /* PWG 5110.1 */ "printer-geo-location", "printer-get-attributes-supported", "printer-icc-profiles", "printer-icons", "printer-id", /* IPP System */ "printer-info", "printer-input-tray", /* IPP JPS3 */ "printer-is-accepting-jobs", "printer-is-shared", /* CUPS extension */ "printer-is-temporary", /* CUPS extension */ "printer-kind", /* IPP Paid Printing */ "printer-location", "printer-make-and-model", "printer-mandatory-job-attributes", "printer-message-date-time", "printer-message-from-operator", "printer-message-time", "printer-more-info", "printer-more-info-manufacturer", "printer-name", "printer-native-formats", "printer-organization", "printer-organizational-unit", "printer-output-tray", /* IPP JPS3 */ "printer-service-type", /* IPP System */ "printer-settable-attributes-supported", "printer-state", "printer-state-change-date-time", "printer-state-change-time", "printer-state-message", "printer-state-reasons", "printer-strings-languages-supported", /* IPP JPS3 */ "printer-strings-uri", /* IPP JPS3 */ "printer-supply", "printer-supply-description", "printer-supply-info-uri", "printer-type", /* CUPS extension */ "printer-up-time", "printer-uri-supported", "printer-uuid", "printer-wifi-ssid", /* AirPrint extension */ "printer-wifi-state", /* AirPrint extension */ "printer-xri-supported", "pwg-raster-document-resolution-supported", "pwg-raster-document-sheet-back", "pwg-raster-document-type-supported", "queued-job-count", "reference-uri-schemes-supported", "repertoire-supported", "requesting-user-name-allowed", /* CUPS extension */ "requesting-user-name-denied", /* CUPS extension */ "requesting-user-uri-supported", "smi2699-auth-print-group", /* PWG ippserver extension */ "smi2699-auth-proxy-group", /* PWG ippserver extension */ "smi2699-device-command", /* PWG ippserver extension */ "smi2699-device-format", /* PWG ippserver extension */ "smi2699-device-name", /* PWG ippserver extension */ "smi2699-device-uri", /* PWG ippserver extension */ "subordinate-printers-supported", "subscription-privacy-attributes", /* IPP Privacy Attributes */ "subscription-privacy-scope", /* IPP Privacy Attributes */ "urf-supported", /* CUPS extension */ "uri-authentication-supported", "uri-security-supported", "user-defined-value-supported", "which-jobs-supported", "xri-authentication-supported", "xri-security-supported", "xri-uri-scheme-supported" }; static const char * const resource_description[] = { /* resource-description group - IPP System */ "resource-info", "resource-name" }; static const char * const resource_status[] = { /* resource-status group - IPP System */ "date-time-at-canceled", "date-time-at-creation", "date-time-at-installed", "resource-data-uri", "resource-format", "resource-id", "resource-k-octets", "resource-state", "resource-state-message", "resource-state-reasons", "resource-string-version", "resource-type", "resource-use-count", "resource-uuid", "resource-version", "time-at-canceled", "time-at-creation", "time-at-installed" }; static const char * const resource_template[] = { /* resource-template group - IPP System */ "resource-format", "resource-format-supported", "resource-info", "resource-name", "resource-type", "resource-type-supported" }; static const char * const subscription_description[] = { /* subscription-description group */ "notify-job-id", "notify-lease-expiration-time", "notify-printer-up-time", "notify-printer-uri", "notify-resource-id", /* IPP System */ "notify-system-uri", /* IPP System */ "notify-sequence-number", "notify-subscriber-user-name", "notify-subscriber-user-uri", "notify-subscription-id", "notify-subscription-uuid" /* IPP JPS3 */ }; static const char * const subscription_template[] = { /* subscription-template group */ "notify-attributes", "notify-attributes-supported", "notify-charset", "notify-events", "notify-events-default", "notify-events-supported", "notify-lease-duration", "notify-lease-duration-default", "notify-lease-duration-supported", "notify-max-events-supported", "notify-natural-language", "notify-pull-method", "notify-pull-method-supported", "notify-recipient-uri", "notify-schemes-supported", "notify-time-interval", "notify-user-data" }; static const char * const system_description[] = { /* system-description group - IPP System */ "charset-configured", "charset-supported", "generated-natural-language-supported", "ipp-features-supported", "ipp-versions-supported", "natural-language-configured", "operations-supported", "power-calendar-policy-col", "power-event-policy-col", "power-timeout-policy-col", "printer-creation-attributes-supported", "resource-settable-attributes-supported", "smi2699-auth-group-supported", /* PWG ippserver extension */ "smi2699-device-command-supported", /* PWG ippserver extension */ "smi2699-device-format-format", /* PWG ippserver extension */ "smi2699-device-uri-schemes-supported", /* PWG ippserver extension */ "system-contact-col", "system-current-time", "system-default-printer-id", "system-device-id", "system-geo-location", "system-info", "system-location", "system-mandatory-printer-attributes", "system-make-and-model", "system-message-from-operator", "system-name", "system-settable-attributes-supported", "system-strings-languages-supported", "system-strings-uri", "system-xri-supported" }; static const char * const system_status[] = { /* system-status group - IPP System */ "power-log-col", "power-state-capabilities-col", "power-state-counters-col", "power-state-monitor-col", "power-state-transitions-col", "system-config-change-date-time", "system-config-change-time", "system-config-changes", "system-configured-printers", "system-configured-resources", "system-serial-number", "system-state", "system-state-change-date-time", "system-state-change-time", "system-state-message", "system-state-reasons", "system-up-time", "system-uuid" }; /* * Get the requested-attributes attribute... */ op = ippGetOperation(request); if ((requested = ippFindAttribute(request, "requested-attributes", IPP_TAG_KEYWORD)) == NULL) { /* * The Get-Jobs operation defaults to "job-id" and "job-uri", all others * default to "all"... */ if (op == IPP_OP_GET_JOBS) { ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); cupsArrayAdd(ra, "job-id"); cupsArrayAdd(ra, "job-uri"); return (ra); } else return (NULL); } /* * If the attribute contains a single "all" keyword, return NULL... */ count = ippGetCount(requested); if (count == 1 && !strcmp(ippGetString(requested, 0, NULL), "all")) return (NULL); /* * Create an array using "strcmp" as the comparison function... */ ra = cupsArrayNew((cups_array_func_t)strcmp, NULL); for (i = 0; i < count; i ++) { added = 0; value = ippGetString(requested, i, NULL); if (!strcmp(value, "document-description") || (!strcmp(value, "all") && (op == IPP_OP_GET_JOB_ATTRIBUTES || op == IPP_OP_GET_JOBS || op == IPP_OP_GET_DOCUMENT_ATTRIBUTES || op == IPP_OP_GET_DOCUMENTS))) { for (j = 0; j < (int)(sizeof(document_description) / sizeof(document_description[0])); j ++) cupsArrayAdd(ra, (void *)document_description[j]); added = 1; } if (!strcmp(value, "document-template") || !strcmp(value, "all")) { for (j = 0; j < (int)(sizeof(document_template) / sizeof(document_template[0])); j ++) cupsArrayAdd(ra, (void *)document_template[j]); added = 1; } if (!strcmp(value, "job-description") || (!strcmp(value, "all") && (op == IPP_OP_GET_JOB_ATTRIBUTES || op == IPP_OP_GET_JOBS))) { for (j = 0; j < (int)(sizeof(job_description) / sizeof(job_description[0])); j ++) cupsArrayAdd(ra, (void *)job_description[j]); added = 1; } if (!strcmp(value, "job-template") || (!strcmp(value, "all") && (op == IPP_OP_GET_JOB_ATTRIBUTES || op == IPP_OP_GET_JOBS || op == IPP_OP_GET_PRINTER_ATTRIBUTES))) { for (j = 0; j < (int)(sizeof(job_template) / sizeof(job_template[0])); j ++) cupsArrayAdd(ra, (void *)job_template[j]); added = 1; } if (!strcmp(value, "printer-description") || (!strcmp(value, "all") && (op == IPP_OP_GET_PRINTER_ATTRIBUTES || op == IPP_OP_GET_PRINTERS || op == IPP_OP_CUPS_GET_DEFAULT || op == IPP_OP_CUPS_GET_PRINTERS || op == IPP_OP_CUPS_GET_CLASSES))) { for (j = 0; j < (int)(sizeof(printer_description) / sizeof(printer_description[0])); j ++) cupsArrayAdd(ra, (void *)printer_description[j]); added = 1; } if (!strcmp(value, "resource-description") || (!strcmp(value, "all") && (op == IPP_OP_GET_RESOURCE_ATTRIBUTES || op == IPP_OP_GET_RESOURCES))) { for (j = 0; j < (int)(sizeof(resource_description) / sizeof(resource_description[0])); j ++) cupsArrayAdd(ra, (void *)resource_description[j]); added = 1; } if (!strcmp(value, "resource-status") || (!strcmp(value, "all") && (op == IPP_OP_GET_RESOURCE_ATTRIBUTES || op == IPP_OP_GET_RESOURCES))) { for (j = 0; j < (int)(sizeof(resource_status) / sizeof(resource_status[0])); j ++) cupsArrayAdd(ra, (void *)resource_status[j]); added = 1; } if (!strcmp(value, "resource-template") || (!strcmp(value, "all") && (op == IPP_OP_GET_RESOURCE_ATTRIBUTES || op == IPP_OP_GET_RESOURCES || op == IPP_OP_GET_SYSTEM_ATTRIBUTES))) { for (j = 0; j < (int)(sizeof(resource_template) / sizeof(resource_template[0])); j ++) cupsArrayAdd(ra, (void *)resource_template[j]); added = 1; } if (!strcmp(value, "subscription-description") || (!strcmp(value, "all") && (op == IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES || op == IPP_OP_GET_SUBSCRIPTIONS))) { for (j = 0; j < (int)(sizeof(subscription_description) / sizeof(subscription_description[0])); j ++) cupsArrayAdd(ra, (void *)subscription_description[j]); added = 1; } if (!strcmp(value, "subscription-template") || (!strcmp(value, "all") && (op == IPP_OP_GET_SUBSCRIPTION_ATTRIBUTES || op == IPP_OP_GET_SUBSCRIPTIONS))) { for (j = 0; j < (int)(sizeof(subscription_template) / sizeof(subscription_template[0])); j ++) cupsArrayAdd(ra, (void *)subscription_template[j]); added = 1; } if (!strcmp(value, "system-description") || (!strcmp(value, "all") && op == IPP_OP_GET_SYSTEM_ATTRIBUTES)) { for (j = 0; j < (int)(sizeof(system_description) / sizeof(system_description[0])); j ++) cupsArrayAdd(ra, (void *)system_description[j]); added = 1; } if (!strcmp(value, "system-status") || (!strcmp(value, "all") && op == IPP_OP_GET_SYSTEM_ATTRIBUTES)) { for (j = 0; j < (int)(sizeof(system_status) / sizeof(system_status[0])); j ++) cupsArrayAdd(ra, (void *)system_status[j]); added = 1; } if (!added) cupsArrayAdd(ra, (void *)value); } return (ra); } /* * 'ippEnumString()' - Return a string corresponding to the enum value. */ const char * /* O - Enum string */ ippEnumString(const char *attrname, /* I - Attribute name */ int enumvalue) /* I - Enum value */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * Check for standard enum values... */ if (!strcmp(attrname, "document-state") && enumvalue >= 3 && enumvalue < (3 + (int)(sizeof(ipp_document_states) / sizeof(ipp_document_states[0])))) return (ipp_document_states[enumvalue - 3]); else if (!strcmp(attrname, "finishings") || !strcmp(attrname, "finishings-actual") || !strcmp(attrname, "finishings-default") || !strcmp(attrname, "finishings-ready") || !strcmp(attrname, "finishings-supported") || !strcmp(attrname, "job-finishings") || !strcmp(attrname, "job-finishings-default") || !strcmp(attrname, "job-finishings-supported")) { if (enumvalue >= 3 && enumvalue < (3 + (int)(sizeof(ipp_finishings) / sizeof(ipp_finishings[0])))) return (ipp_finishings[enumvalue - 3]); else if (enumvalue >= 0x40000000 && enumvalue < (0x40000000 + (int)(sizeof(ipp_finishings_vendor) / sizeof(ipp_finishings_vendor[0])))) return (ipp_finishings_vendor[enumvalue - 0x40000000]); } else if ((!strcmp(attrname, "job-collation-type") || !strcmp(attrname, "job-collation-type-actual")) && enumvalue >= 3 && enumvalue < (3 + (int)(sizeof(ipp_job_collation_types) / sizeof(ipp_job_collation_types[0])))) return (ipp_job_collation_types[enumvalue - 3]); else if (!strcmp(attrname, "job-state") && enumvalue >= IPP_JSTATE_PENDING && enumvalue <= IPP_JSTATE_COMPLETED) return (ipp_job_states[enumvalue - IPP_JSTATE_PENDING]); else if (!strcmp(attrname, "operations-supported")) return (ippOpString((ipp_op_t)enumvalue)); else if ((!strcmp(attrname, "orientation-requested") || !strcmp(attrname, "orientation-requested-actual") || !strcmp(attrname, "orientation-requested-default") || !strcmp(attrname, "orientation-requested-supported")) && enumvalue >= 3 && enumvalue < (3 + (int)(sizeof(ipp_orientation_requesteds) / sizeof(ipp_orientation_requesteds[0])))) return (ipp_orientation_requesteds[enumvalue - 3]); else if ((!strcmp(attrname, "print-quality") || !strcmp(attrname, "print-quality-actual") || !strcmp(attrname, "print-quality-default") || !strcmp(attrname, "print-quality-supported")) && enumvalue >= 3 && enumvalue < (3 + (int)(sizeof(ipp_print_qualities) / sizeof(ipp_print_qualities[0])))) return (ipp_print_qualities[enumvalue - 3]); else if (!strcmp(attrname, "printer-state") && enumvalue >= IPP_PSTATE_IDLE && enumvalue <= IPP_PSTATE_STOPPED) return (ipp_printer_states[enumvalue - IPP_PSTATE_IDLE]); else if (!strcmp(attrname, "resource-state") && enumvalue >= IPP_RSTATE_PENDING && enumvalue <= IPP_RSTATE_ABORTED) return (ipp_resource_states[enumvalue - IPP_RSTATE_PENDING]); else if (!strcmp(attrname, "system-state") && enumvalue >= IPP_SSTATE_IDLE && enumvalue <= IPP_SSTATE_STOPPED) return (ipp_system_states[enumvalue - IPP_SSTATE_IDLE]); /* * Not a standard enum value, just return the decimal equivalent... */ snprintf(cg->ipp_unknown, sizeof(cg->ipp_unknown), "%d", enumvalue); return (cg->ipp_unknown); } /* * 'ippEnumValue()' - Return the value associated with a given enum string. */ int /* O - Enum value or -1 if unknown */ ippEnumValue(const char *attrname, /* I - Attribute name */ const char *enumstring) /* I - Enum string */ { int i, /* Looping var */ num_strings; /* Number of strings to compare */ const char * const *strings; /* Strings to compare */ /* * If the string is just a number, return it... */ if (isdigit(*enumstring & 255)) return ((int)strtol(enumstring, NULL, 0)); /* * Otherwise look up the string... */ if (!strcmp(attrname, "document-state")) { num_strings = (int)(sizeof(ipp_document_states) / sizeof(ipp_document_states[0])); strings = ipp_document_states; } else if (!strcmp(attrname, "finishings") || !strcmp(attrname, "finishings-actual") || !strcmp(attrname, "finishings-default") || !strcmp(attrname, "finishings-ready") || !strcmp(attrname, "finishings-supported")) { for (i = 0; i < (int)(sizeof(ipp_finishings_vendor) / sizeof(ipp_finishings_vendor[0])); i ++) if (!strcmp(enumstring, ipp_finishings_vendor[i])) return (i + 0x40000000); num_strings = (int)(sizeof(ipp_finishings) / sizeof(ipp_finishings[0])); strings = ipp_finishings; } else if (!strcmp(attrname, "job-collation-type") || !strcmp(attrname, "job-collation-type-actual")) { num_strings = (int)(sizeof(ipp_job_collation_types) / sizeof(ipp_job_collation_types[0])); strings = ipp_job_collation_types; } else if (!strcmp(attrname, "job-state")) { num_strings = (int)(sizeof(ipp_job_states) / sizeof(ipp_job_states[0])); strings = ipp_job_states; } else if (!strcmp(attrname, "operations-supported")) return (ippOpValue(enumstring)); else if (!strcmp(attrname, "orientation-requested") || !strcmp(attrname, "orientation-requested-actual") || !strcmp(attrname, "orientation-requested-default") || !strcmp(attrname, "orientation-requested-supported")) { num_strings = (int)(sizeof(ipp_orientation_requesteds) / sizeof(ipp_orientation_requesteds[0])); strings = ipp_orientation_requesteds; } else if (!strcmp(attrname, "print-quality") || !strcmp(attrname, "print-quality-actual") || !strcmp(attrname, "print-quality-default") || !strcmp(attrname, "print-quality-supported")) { num_strings = (int)(sizeof(ipp_print_qualities) / sizeof(ipp_print_qualities[0])); strings = ipp_print_qualities; } else if (!strcmp(attrname, "printer-state")) { num_strings = (int)(sizeof(ipp_printer_states) / sizeof(ipp_printer_states[0])); strings = ipp_printer_states; } else if (!strcmp(attrname, "resource-state")) { num_strings = (int)(sizeof(ipp_resource_states) / sizeof(ipp_resource_states[0])); strings = ipp_resource_states; } else if (!strcmp(attrname, "system-state")) { num_strings = (int)(sizeof(ipp_system_states) / sizeof(ipp_system_states[0])); strings = ipp_system_states; } else return (-1); for (i = 0; i < num_strings; i ++) if (!strcmp(enumstring, strings[i])) return (i + 3); return (-1); } /* * 'ippErrorString()' - Return a name for the given status code. */ const char * /* O - Text string */ ippErrorString(ipp_status_t error) /* I - Error status */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * See if the error code is a known value... */ if (error >= IPP_STATUS_OK && error <= IPP_STATUS_OK_EVENTS_COMPLETE) return (ipp_status_oks[error]); else if (error == IPP_STATUS_REDIRECTION_OTHER_SITE) return ("redirection-other-site"); else if (error == IPP_STATUS_CUPS_SEE_OTHER) return ("cups-see-other"); else if (error >= IPP_STATUS_ERROR_BAD_REQUEST && error <= IPP_STATUS_ERROR_ACCOUNT_AUTHORIZATION_FAILED) return (ipp_status_400s[error - IPP_STATUS_ERROR_BAD_REQUEST]); else if (error >= 0x480 && error <= IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED) return (ipp_status_480s[error - 0x0480]); else if (error >= IPP_STATUS_ERROR_INTERNAL && error <= IPP_STATUS_ERROR_TOO_MANY_DOCUMENTS) return (ipp_status_500s[error - IPP_STATUS_ERROR_INTERNAL]); else if (error >= IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED && error <= IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED) return (ipp_status_1000s[error - IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED]); /* * No, build an "0xxxxx" error string... */ snprintf(cg->ipp_unknown, sizeof(cg->ipp_unknown), "0x%04x", error); return (cg->ipp_unknown); } /* * 'ippErrorValue()' - Return a status code for the given name. * * @since CUPS 1.2/macOS 10.5@ */ ipp_status_t /* O - IPP status code */ ippErrorValue(const char *name) /* I - Name */ { size_t i; /* Looping var */ for (i = 0; i < (sizeof(ipp_status_oks) / sizeof(ipp_status_oks[0])); i ++) if (!_cups_strcasecmp(name, ipp_status_oks[i])) return ((ipp_status_t)i); if (!_cups_strcasecmp(name, "redirection-other-site")) return (IPP_STATUS_REDIRECTION_OTHER_SITE); if (!_cups_strcasecmp(name, "cups-see-other")) return (IPP_STATUS_CUPS_SEE_OTHER); for (i = 0; i < (sizeof(ipp_status_400s) / sizeof(ipp_status_400s[0])); i ++) if (!_cups_strcasecmp(name, ipp_status_400s[i])) return ((ipp_status_t)(i + 0x400)); for (i = 0; i < (sizeof(ipp_status_480s) / sizeof(ipp_status_480s[0])); i ++) if (!_cups_strcasecmp(name, ipp_status_480s[i])) return ((ipp_status_t)(i + 0x480)); for (i = 0; i < (sizeof(ipp_status_500s) / sizeof(ipp_status_500s[0])); i ++) if (!_cups_strcasecmp(name, ipp_status_500s[i])) return ((ipp_status_t)(i + 0x500)); for (i = 0; i < (sizeof(ipp_status_1000s) / sizeof(ipp_status_1000s[0])); i ++) if (!_cups_strcasecmp(name, ipp_status_1000s[i])) return ((ipp_status_t)(i + 0x1000)); return ((ipp_status_t)-1); } /* * 'ippOpString()' - Return a name for the given operation id. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - Name */ ippOpString(ipp_op_t op) /* I - Operation ID */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * See if the operation ID is a known value... */ if (op >= IPP_OP_PRINT_JOB && op < (ipp_op_t)(sizeof(ipp_std_ops) / sizeof(ipp_std_ops[0]))) return (ipp_std_ops[op]); else if (op == IPP_OP_PRIVATE) return ("windows-ext"); else if (op >= IPP_OP_CUPS_GET_DEFAULT && op <= IPP_OP_CUPS_GET_PPD) return (ipp_cups_ops[op - IPP_OP_CUPS_GET_DEFAULT]); else if (op >= IPP_OP_CUPS_GET_DOCUMENT && op <= IPP_OP_CUPS_CREATE_LOCAL_PRINTER) return (ipp_cups_ops2[op - IPP_OP_CUPS_GET_DOCUMENT]); /* * No, build an "0xxxxx" operation string... */ snprintf(cg->ipp_unknown, sizeof(cg->ipp_unknown), "0x%04x", op); return (cg->ipp_unknown); } /* * 'ippOpValue()' - Return an operation id for the given name. * * @since CUPS 1.2/macOS 10.5@ */ ipp_op_t /* O - Operation ID */ ippOpValue(const char *name) /* I - Textual name */ { size_t i; /* Looping var */ if (!strncmp(name, "0x", 2)) return ((ipp_op_t)strtol(name + 2, NULL, 16)); for (i = 0; i < (sizeof(ipp_std_ops) / sizeof(ipp_std_ops[0])); i ++) if (!_cups_strcasecmp(name, ipp_std_ops[i])) return ((ipp_op_t)i); if (!_cups_strcasecmp(name, "windows-ext")) return (IPP_OP_PRIVATE); for (i = 0; i < (sizeof(ipp_cups_ops) / sizeof(ipp_cups_ops[0])); i ++) if (!_cups_strcasecmp(name, ipp_cups_ops[i])) return ((ipp_op_t)(i + 0x4001)); for (i = 0; i < (sizeof(ipp_cups_ops2) / sizeof(ipp_cups_ops2[0])); i ++) if (!_cups_strcasecmp(name, ipp_cups_ops2[i])) return ((ipp_op_t)(i + 0x4027)); if (!_cups_strcasecmp(name, "Create-Job-Subscription")) return (IPP_OP_CREATE_JOB_SUBSCRIPTIONS); if (!_cups_strcasecmp(name, "Create-Printer-Subscription")) return (IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS); if (!_cups_strcasecmp(name, "CUPS-Add-Class")) return (IPP_OP_CUPS_ADD_MODIFY_CLASS); if (!_cups_strcasecmp(name, "CUPS-Add-Printer")) return (IPP_OP_CUPS_ADD_MODIFY_PRINTER); return (IPP_OP_CUPS_INVALID); } /* * 'ippPort()' - Return the default IPP port number. */ int /* O - Port number */ ippPort(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_puts("ippPort()"); if (!cg->ipp_port) _cupsSetDefaults(); DEBUG_printf(("1ippPort: Returning %d...", cg->ipp_port)); return (cg->ipp_port); } /* * 'ippSetPort()' - Set the default port number. */ void ippSetPort(int p) /* I - Port number to use */ { DEBUG_printf(("ippSetPort(p=%d)", p)); _cupsGlobals()->ipp_port = p; } /* * 'ippStateString()' - Return the name corresponding to a state value. * * @since CUPS 2.0/OS 10.10@ */ const char * /* O - State name */ ippStateString(ipp_state_t state) /* I - State value */ { if (state >= IPP_STATE_ERROR && state <= IPP_STATE_DATA) return (ipp_states[state - IPP_STATE_ERROR]); else return ("UNKNOWN"); } /* * 'ippTagString()' - Return the tag name corresponding to a tag value. * * The returned names are defined in RFC 8011 and the IANA IPP Registry. * * @since CUPS 1.4/macOS 10.6@ */ const char * /* O - Tag name */ ippTagString(ipp_tag_t tag) /* I - Tag value */ { tag &= IPP_TAG_CUPS_MASK; if (tag < (ipp_tag_t)(sizeof(ipp_tag_names) / sizeof(ipp_tag_names[0]))) return (ipp_tag_names[tag]); else return ("UNKNOWN"); } /* * 'ippTagValue()' - Return the tag value corresponding to a tag name. * * The tag names are defined in RFC 8011 and the IANA IPP Registry. * * @since CUPS 1.4/macOS 10.6@ */ ipp_tag_t /* O - Tag value */ ippTagValue(const char *name) /* I - Tag name */ { size_t i; /* Looping var */ for (i = 0; i < (sizeof(ipp_tag_names) / sizeof(ipp_tag_names[0])); i ++) if (!_cups_strcasecmp(name, ipp_tag_names[i])) return ((ipp_tag_t)i); if (!_cups_strcasecmp(name, "operation")) return (IPP_TAG_OPERATION); else if (!_cups_strcasecmp(name, "job")) return (IPP_TAG_JOB); else if (!_cups_strcasecmp(name, "printer")) return (IPP_TAG_PRINTER); else if (!_cups_strcasecmp(name, "unsupported")) return (IPP_TAG_UNSUPPORTED_GROUP); else if (!_cups_strcasecmp(name, "subscription")) return (IPP_TAG_SUBSCRIPTION); else if (!_cups_strcasecmp(name, "event")) return (IPP_TAG_EVENT_NOTIFICATION); else if (!_cups_strcasecmp(name, "language")) return (IPP_TAG_LANGUAGE); else if (!_cups_strcasecmp(name, "mimetype")) return (IPP_TAG_MIMETYPE); else if (!_cups_strcasecmp(name, "name")) return (IPP_TAG_NAME); else if (!_cups_strcasecmp(name, "text")) return (IPP_TAG_TEXT); else if (!_cups_strcasecmp(name, "begCollection")) return (IPP_TAG_BEGIN_COLLECTION); else return (IPP_TAG_ZERO); } /* * 'ipp_col_string()' - Convert a collection to a string. */ static size_t /* O - Number of bytes */ ipp_col_string(ipp_t *col, /* I - Collection attribute */ char *buffer, /* I - Buffer or NULL */ size_t bufsize) /* I - Size of buffer */ { char *bufptr, /* Position in buffer */ *bufend, /* End of buffer */ prefix = '{', /* Prefix character */ temp[256]; /* Temporary string */ ipp_attribute_t *attr; /* Current member attribute */ if (!col) { if (buffer) *buffer = '\0'; return (0); } bufptr = buffer; bufend = buffer + bufsize - 1; for (attr = col->attrs; attr; attr = attr->next) { if (!attr->name) continue; if (buffer && bufptr < bufend) *bufptr = prefix; bufptr ++; prefix = ' '; if (buffer && bufptr < bufend) bufptr += snprintf(bufptr, (size_t)(bufend - bufptr + 1), "%s=", attr->name); else bufptr += strlen(attr->name) + 1; if (buffer && bufptr < bufend) bufptr += ippAttributeString(attr, bufptr, (size_t)(bufend - bufptr + 1)); else bufptr += ippAttributeString(attr, temp, sizeof(temp)); } if (prefix == '{') { if (buffer && bufptr < bufend) *bufptr = prefix; bufptr ++; } if (buffer && bufptr < bufend) *bufptr = '}'; bufptr ++; return ((size_t)(bufptr - buffer)); } cups-2.4.7/cups/ipp-private.h0000644000175000017500000001473114502571342015752 0ustar zdohnalzdohnal/* * Private IPP definitions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_IPP_PRIVATE_H_ # define _CUPS_IPP_PRIVATE_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define IPP_BUF_SIZE (IPP_MAX_LENGTH + 2) /* Size of buffer */ /* * Structures... */ typedef union _ipp_request_u /**** Request Header ****/ { struct /* Any Header */ { ipp_uchar_t version[2]; /* Protocol version number */ int op_status; /* Operation ID or status code*/ int request_id; /* Request ID */ } any; struct /* Operation Header */ { ipp_uchar_t version[2]; /* Protocol version number */ ipp_op_t operation_id; /* Operation ID */ int request_id; /* Request ID */ } op; struct /* Status Header */ { ipp_uchar_t version[2]; /* Protocol version number */ ipp_status_t status_code; /* Status code */ int request_id; /* Request ID */ } status; /**** New in CUPS 1.1.19 ****/ struct /* Event Header @since CUPS 1.1.19/macOS 10.3@ */ { ipp_uchar_t version[2]; /* Protocol version number */ ipp_status_t status_code; /* Status code */ int request_id; /* Request ID */ } event; } _ipp_request_t; typedef union _ipp_value_u /**** Attribute Value ****/ { int integer; /* Integer/enumerated value */ char boolean; /* Boolean value */ ipp_uchar_t date[11]; /* Date/time value */ struct { int xres, /* Horizontal resolution */ yres; /* Vertical resolution */ ipp_res_t units; /* Resolution units */ } resolution; /* Resolution value */ struct { int lower, /* Lower value */ upper; /* Upper value */ } range; /* Range of integers value */ struct { char *language; /* Language code */ char *text; /* String */ } string; /* String with language value */ struct { int length; /* Length of attribute */ void *data; /* Data in attribute */ } unknown; /* Unknown attribute type */ /**** New in CUPS 1.1.19 ****/ ipp_t *collection; /* Collection value @since CUPS 1.1.19/macOS 10.3@ */ } _ipp_value_t; struct _ipp_attribute_s /**** IPP attribute ****/ { ipp_attribute_t *next; /* Next attribute in list */ ipp_tag_t group_tag, /* Job/Printer/Operation group tag */ value_tag; /* What type of value is it? */ char *name; /* Name of attribute */ int num_values; /* Number of values */ _ipp_value_t values[1]; /* Values */ }; struct _ipp_s /**** IPP Request/Response/Notification ****/ { ipp_state_t state; /* State of request */ _ipp_request_t request; /* Request header */ ipp_attribute_t *attrs; /* Attributes */ ipp_attribute_t *last; /* Last attribute in list */ ipp_attribute_t *current; /* Current attribute (for read/write) */ ipp_tag_t curtag; /* Current attribute group tag */ /**** New in CUPS 1.2 ****/ ipp_attribute_t *prev; /* Previous attribute (for read) @since CUPS 1.2/macOS 10.5@ */ /**** New in CUPS 1.4.4 ****/ int use; /* Use count @since CUPS 1.4.4/macOS 10.6.?@ */ /**** New in CUPS 2.0 ****/ int atend, /* At end of list? */ curindex; /* Current attribute index for hierarchical search */ }; typedef struct _ipp_option_s /**** Attribute mapping data ****/ { int multivalue; /* Option has multiple values? */ const char *name; /* Option/attribute name */ ipp_tag_t value_tag; /* Value tag for this attribute */ ipp_tag_t group_tag; /* Group tag for this attribute */ ipp_tag_t alt_group_tag; /* Alternate group tag for this * attribute */ const ipp_op_t *operations; /* Allowed operations for this attr */ } _ipp_option_t; typedef struct _ipp_file_s _ipp_file_t;/**** File Parser ****/ typedef struct _ipp_vars_s _ipp_vars_t;/**** Variables ****/ typedef int (*_ipp_fattr_cb_t)(_ipp_file_t *f, void *user_data, const char *attr); /**** File Attribute (Filter) Callback ****/ typedef int (*_ipp_ferror_cb_t)(_ipp_file_t *f, void *user_data, const char *error); /**** File Parser Error Callback ****/ typedef int (*_ipp_ftoken_cb_t)(_ipp_file_t *f, _ipp_vars_t *v, void *user_data, const char *token); /**** File Parser Token Callback ****/ struct _ipp_vars_s /**** Variables ****/ { char *uri, /* URI for printer */ scheme[64], /* Scheme from URI */ username[256], /* Username from URI */ *password, /* Password from URI (if any) */ host[256], /* Hostname from URI */ portstr[32], /* Port number string */ resource[1024]; /* Resource path from URI */ int port; /* Port number from URI */ int num_vars; /* Number of variables */ cups_option_t *vars; /* Array of variables */ int password_tries; /* Number of retries for password */ _ipp_fattr_cb_t attrcb; /* Attribute (filter) callback */ _ipp_ferror_cb_t errorcb; /* Error callback */ _ipp_ftoken_cb_t tokencb; /* Token callback */ }; struct _ipp_file_s /**** File Parser */ { const char *filename; /* Filename */ cups_file_t *fp; /* File pointer */ int linenum; /* Current line number */ ipp_t *attrs; /* Attributes */ ipp_tag_t group_tag; /* Current group for new attributes */ }; /* * Prototypes for private functions... */ /* encode.c */ #ifdef DEBUG extern const char *_ippCheckOptions(void) _CUPS_PRIVATE; #endif /* DEBUG */ extern _ipp_option_t *_ippFindOption(const char *name) _CUPS_PRIVATE; /* ipp-file.c */ extern ipp_t *_ippFileParse(_ipp_vars_t *v, const char *filename, void *user_data) _CUPS_PRIVATE; extern int _ippFileReadToken(_ipp_file_t *f, char *token, size_t tokensize) _CUPS_PRIVATE; /* ipp-vars.c */ extern void _ippVarsDeinit(_ipp_vars_t *v) _CUPS_PRIVATE; extern void _ippVarsExpand(_ipp_vars_t *v, char *dst, const char *src, size_t dstsize) _CUPS_NONNULL(1,2,3) _CUPS_PRIVATE; extern const char *_ippVarsGet(_ipp_vars_t *v, const char *name) _CUPS_PRIVATE; extern void _ippVarsInit(_ipp_vars_t *v, _ipp_fattr_cb_t attrcb, _ipp_ferror_cb_t errorcb, _ipp_ftoken_cb_t tokencb) _CUPS_PRIVATE; extern const char *_ippVarsPasswordCB(const char *prompt, http_t *http, const char *method, const char *resource, void *user_data) _CUPS_PRIVATE; extern int _ippVarsSet(_ipp_vars_t *v, const char *name, const char *value) _CUPS_PRIVATE; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_IPP_H_ */ cups-2.4.7/cups/ipp-file.c0000644000175000017500000005030314502571342015205 0ustar zdohnalzdohnal/* * IPP data file parsing functions. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "ipp-private.h" #include "string-private.h" #include "debug-internal.h" /* * Local functions... */ static ipp_t *parse_collection(_ipp_file_t *f, _ipp_vars_t *v, void *user_data); static int parse_value(_ipp_file_t *f, _ipp_vars_t *v, void *user_data, ipp_t *ipp, ipp_attribute_t **attr, int element); static void report_error(_ipp_file_t *f, _ipp_vars_t *v, void *user_data, const char *message, ...) _CUPS_FORMAT(4, 5); /* * '_ippFileParse()' - Parse an IPP data file. */ ipp_t * /* O - IPP attributes or @code NULL@ on failure */ _ippFileParse( _ipp_vars_t *v, /* I - Variables */ const char *filename, /* I - Name of file to parse */ void *user_data) /* I - User data pointer */ { _ipp_file_t f; /* IPP data file information */ ipp_t *attrs = NULL; /* Active IPP message */ ipp_attribute_t *attr = NULL; /* Current attribute */ char token[1024]; /* Token string */ ipp_t *ignored = NULL; /* Ignored attributes */ DEBUG_printf(("_ippFileParse(v=%p, filename=\"%s\", user_data=%p)", (void *)v, filename, user_data)); /* * Initialize file info... */ memset(&f, 0, sizeof(f)); f.filename = filename; f.linenum = 1; if ((f.fp = cupsFileOpen(filename, "r")) == NULL) { DEBUG_printf(("1_ippFileParse: Unable to open \"%s\": %s", filename, strerror(errno))); return (0); } /* * Do the callback with a NULL token to setup any initial state... */ (*v->tokencb)(&f, v, user_data, NULL); /* * Read data file, using the callback function as needed... */ while (_ippFileReadToken(&f, token, sizeof(token))) { if (!_cups_strcasecmp(token, "DEFINE") || !_cups_strcasecmp(token, "DEFINE-DEFAULT")) { char name[128], /* Variable name */ value[1024], /* Variable value */ temp[1024]; /* Temporary string */ attr = NULL; if (_ippFileReadToken(&f, name, sizeof(name)) && _ippFileReadToken(&f, temp, sizeof(temp))) { if (_cups_strcasecmp(token, "DEFINE-DEFAULT") || !_ippVarsGet(v, name)) { _ippVarsExpand(v, value, temp, sizeof(value)); _ippVarsSet(v, name, value); } } else { report_error(&f, v, user_data, "Missing %s name and/or value on line %d of \"%s\".", token, f.linenum, f.filename); break; } } else if (f.attrs && !_cups_strcasecmp(token, "ATTR")) { /* * Attribute definition... */ char syntax[128], /* Attribute syntax (value tag) */ name[128]; /* Attribute name */ ipp_tag_t value_tag; /* Value tag */ attr = NULL; if (!_ippFileReadToken(&f, syntax, sizeof(syntax))) { report_error(&f, v, user_data, "Missing ATTR syntax on line %d of \"%s\".", f.linenum, f.filename); break; } else if ((value_tag = ippTagValue(syntax)) < IPP_TAG_UNSUPPORTED_VALUE) { report_error(&f, v, user_data, "Bad ATTR syntax \"%s\" on line %d of \"%s\".", syntax, f.linenum, f.filename); break; } if (!_ippFileReadToken(&f, name, sizeof(name)) || !name[0]) { report_error(&f, v, user_data, "Missing ATTR name on line %d of \"%s\".", f.linenum, f.filename); break; } if (!v->attrcb || (*v->attrcb)(&f, user_data, name)) { /* * Add this attribute... */ attrs = f.attrs; } else { /* * Ignore this attribute... */ if (!ignored) ignored = ippNew(); attrs = ignored; } if (value_tag < IPP_TAG_INTEGER) { /* * Add out-of-band attribute - no value string needed... */ ippAddOutOfBand(attrs, f.group_tag, value_tag, name); } else { /* * Add attribute with one or more values... */ attr = ippAddString(attrs, f.group_tag, value_tag, name, NULL, NULL); if (!parse_value(&f, v, user_data, attrs, &attr, 0)) break; } } else if (attr && !_cups_strcasecmp(token, ",")) { /* * Additional value... */ if (!parse_value(&f, v, user_data, attrs, &attr, ippGetCount(attr))) break; } else { /* * Something else... */ attr = NULL; attrs = NULL; if (!(*v->tokencb)(&f, v, user_data, token)) break; } } /* * Close the file and free ignored attributes, then return any attributes we * kept... */ cupsFileClose(f.fp); ippDelete(ignored); return (f.attrs); } /* * '_ippFileReadToken()' - Read a token from an IPP data file. */ int /* O - 1 on success, 0 on failure */ _ippFileReadToken(_ipp_file_t *f, /* I - File to read from */ char *token, /* I - Token string buffer */ size_t tokensize)/* I - Size of token string buffer */ { int ch, /* Character from file */ quote = 0; /* Quoting character */ char *tokptr = token, /* Pointer into token buffer */ *tokend = token + tokensize - 1;/* End of token buffer */ /* * Skip whitespace and comments... */ DEBUG_printf(("1_ippFileReadToken: linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); while ((ch = cupsFileGetChar(f->fp)) != EOF) { if (_cups_isspace(ch)) { /* * Whitespace... */ if (ch == '\n') { f->linenum ++; DEBUG_printf(("1_ippFileReadToken: LF in leading whitespace, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); } } else if (ch == '#') { /* * Comment... */ DEBUG_puts("1_ippFileReadToken: Skipping comment in leading whitespace..."); while ((ch = cupsFileGetChar(f->fp)) != EOF) { if (ch == '\n') break; } if (ch == '\n') { f->linenum ++; DEBUG_printf(("1_ippFileReadToken: LF at end of comment, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); } else break; } else break; } if (ch == EOF) { DEBUG_puts("1_ippFileReadToken: EOF"); return (0); } /* * Read a token... */ while (ch != EOF) { if (ch == '\n') { f->linenum ++; DEBUG_printf(("1_ippFileReadToken: LF in token, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); } if (ch == quote) { /* * End of quoted text... */ *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" at closing quote.", token)); return (1); } else if (!quote && _cups_isspace(ch)) { /* * End of unquoted text... */ *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" before whitespace.", token)); return (1); } else if (!quote && (ch == '\'' || ch == '\"')) { /* * Start of quoted text or regular expression... */ quote = ch; DEBUG_printf(("1_ippFileReadToken: Start of quoted string, quote=%c, pos=%ld", quote, (long)cupsFileTell(f->fp))); } else if (!quote && ch == '#') { /* * Start of comment... */ cupsFileSeek(f->fp, cupsFileTell(f->fp) - 1); *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" before comment.", token)); return (1); } else if (!quote && (ch == '{' || ch == '}' || ch == ',')) { /* * Delimiter... */ if (tokptr > token) { /* * Return the preceding token first... */ cupsFileSeek(f->fp, cupsFileTell(f->fp) - 1); } else { /* * Return this delimiter by itself... */ *tokptr++ = (char)ch; } *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Returning \"%s\".", token)); return (1); } else { if (ch == '\\') { /* * Quoted character... */ DEBUG_printf(("1_ippFileReadToken: Quoted character at pos=%ld", (long)cupsFileTell(f->fp))); if ((ch = cupsFileGetChar(f->fp)) == EOF) { *token = '\0'; DEBUG_puts("1_ippFileReadToken: EOF"); return (0); } else if (ch == '\n') { f->linenum ++; DEBUG_printf(("1_ippFileReadToken: quoted LF, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp))); } else if (ch == 'a') ch = '\a'; else if (ch == 'b') ch = '\b'; else if (ch == 'f') ch = '\f'; else if (ch == 'n') ch = '\n'; else if (ch == 'r') ch = '\r'; else if (ch == 't') ch = '\t'; else if (ch == 'v') ch = '\v'; } if (tokptr < tokend) { /* * Add to current token... */ *tokptr++ = (char)ch; } else { /* * Token too long... */ *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Too long: \"%s\".", token)); return (0); } } /* * Get the next character... */ ch = cupsFileGetChar(f->fp); } *tokptr = '\0'; DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" at EOF.", token)); return (tokptr > token); } /* * 'parse_collection()' - Parse an IPP collection value. */ static ipp_t * /* O - Collection value or @code NULL@ on error */ parse_collection( _ipp_file_t *f, /* I - IPP data file */ _ipp_vars_t *v, /* I - IPP variables */ void *user_data) /* I - User data pointer */ { ipp_t *col = ippNew(); /* Collection value */ ipp_attribute_t *attr = NULL; /* Current member attribute */ char token[1024]; /* Token string */ /* * Parse the collection value... */ while (_ippFileReadToken(f, token, sizeof(token))) { if (!_cups_strcasecmp(token, "}")) { /* * End of collection value... */ break; } else if (!_cups_strcasecmp(token, "MEMBER")) { /* * Member attribute definition... */ char syntax[128], /* Attribute syntax (value tag) */ name[128]; /* Attribute name */ ipp_tag_t value_tag; /* Value tag */ attr = NULL; if (!_ippFileReadToken(f, syntax, sizeof(syntax))) { report_error(f, v, user_data, "Missing MEMBER syntax on line %d of \"%s\".", f->linenum, f->filename); ippDelete(col); col = NULL; break; } else if ((value_tag = ippTagValue(syntax)) < IPP_TAG_UNSUPPORTED_VALUE) { report_error(f, v, user_data, "Bad MEMBER syntax \"%s\" on line %d of \"%s\".", syntax, f->linenum, f->filename); ippDelete(col); col = NULL; break; } if (!_ippFileReadToken(f, name, sizeof(name)) || !name[0]) { report_error(f, v, user_data, "Missing MEMBER name on line %d of \"%s\".", f->linenum, f->filename); ippDelete(col); col = NULL; break; } if (value_tag < IPP_TAG_INTEGER) { /* * Add out-of-band attribute - no value string needed... */ ippAddOutOfBand(col, IPP_TAG_ZERO, value_tag, name); } else { /* * Add attribute with one or more values... */ attr = ippAddString(col, IPP_TAG_ZERO, value_tag, name, NULL, NULL); if (!parse_value(f, v, user_data, col, &attr, 0)) { ippDelete(col); col = NULL; break; } } } else if (attr && !_cups_strcasecmp(token, ",")) { /* * Additional value... */ if (!parse_value(f, v, user_data, col, &attr, ippGetCount(attr))) { ippDelete(col); col = NULL; break; } } else { /* * Something else... */ report_error(f, v, user_data, "Unknown directive \"%s\" on line %d of \"%s\".", token, f->linenum, f->filename); ippDelete(col); col = NULL; attr = NULL; break; } } return (col); } /* * 'parse_value()' - Parse an IPP value. */ static int /* O - 1 on success or 0 on error */ parse_value(_ipp_file_t *f, /* I - IPP data file */ _ipp_vars_t *v, /* I - IPP variables */ void *user_data,/* I - User data pointer */ ipp_t *ipp, /* I - IPP message */ ipp_attribute_t **attr, /* IO - IPP attribute */ int element) /* I - Element number */ { char value[2049], /* Value string */ *valueptr, /* Pointer into value string */ temp[2049], /* Temporary string */ *tempptr; /* Pointer into temporary string */ size_t valuelen; /* Length of value */ if (!_ippFileReadToken(f, temp, sizeof(temp))) { report_error(f, v, user_data, "Missing value on line %d of \"%s\".", f->linenum, f->filename); return (0); } _ippVarsExpand(v, value, temp, sizeof(value)); switch (ippGetValueTag(*attr)) { case IPP_TAG_BOOLEAN : return (ippSetBoolean(ipp, attr, element, !_cups_strcasecmp(value, "true"))); case IPP_TAG_ENUM : case IPP_TAG_INTEGER : return (ippSetInteger(ipp, attr, element, (int)strtol(value, NULL, 0))); case IPP_TAG_DATE : { int year, /* Year */ month, /* Month */ day, /* Day of month */ hour, /* Hour */ minute, /* Minute */ second, /* Second */ utc_offset = 0; /* Timezone offset from UTC */ ipp_uchar_t date[11]; /* dateTime value */ if (*value == 'P') { /* * Time period... */ time_t curtime; /* Current time in seconds */ int period = 0, /* Current period value */ saw_T = 0; /* Saw time separator */ curtime = time(NULL); for (valueptr = value + 1; *valueptr; valueptr ++) { if (isdigit(*valueptr & 255)) { period = (int)strtol(valueptr, &valueptr, 10); if (!valueptr || period < 0) { report_error(f, v, user_data, "Bad dateTime value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } } if (*valueptr == 'Y') { curtime += 365 * 86400 * period; period = 0; } else if (*valueptr == 'M') { if (saw_T) curtime += 60 * period; else curtime += 30 * 86400 * period; period = 0; } else if (*valueptr == 'D') { curtime += 86400 * period; period = 0; } else if (*valueptr == 'H') { curtime += 3600 * period; period = 0; } else if (*valueptr == 'S') { curtime += period; period = 0; } else if (*valueptr == 'T') { saw_T = 1; period = 0; } else { report_error(f, v, user_data, "Bad dateTime value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } } return (ippSetDate(ipp, attr, element, ippTimeToDate(curtime))); } else if (sscanf(value, "%d-%d-%dT%d:%d:%d%d", &year, &month, &day, &hour, &minute, &second, &utc_offset) < 6) { /* * Date/time value did not parse... */ report_error(f, v, user_data, "Bad dateTime value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } date[0] = (ipp_uchar_t)(year >> 8); date[1] = (ipp_uchar_t)(year & 255); date[2] = (ipp_uchar_t)month; date[3] = (ipp_uchar_t)day; date[4] = (ipp_uchar_t)hour; date[5] = (ipp_uchar_t)minute; date[6] = (ipp_uchar_t)second; date[7] = 0; if (utc_offset < 0) { utc_offset = -utc_offset; date[8] = (ipp_uchar_t)'-'; } else { date[8] = (ipp_uchar_t)'+'; } date[9] = (ipp_uchar_t)(utc_offset / 100); date[10] = (ipp_uchar_t)(utc_offset % 100); return (ippSetDate(ipp, attr, element, date)); } case IPP_TAG_RESOLUTION : { int xres, /* X resolution */ yres; /* Y resolution */ char *ptr; /* Pointer into value */ xres = yres = (int)strtol(value, &ptr, 10); if (ptr > value && xres > 0) { if (*ptr == 'x') yres = (int)strtol(ptr + 1, &ptr, 10); } if (ptr <= value || xres <= 0 || yres <= 0 || !ptr || (_cups_strcasecmp(ptr, "dpi") && _cups_strcasecmp(ptr, "dpc") && _cups_strcasecmp(ptr, "dpcm") && _cups_strcasecmp(ptr, "other"))) { report_error(f, v, user_data, "Bad resolution value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } if (!_cups_strcasecmp(ptr, "dpi")) return (ippSetResolution(ipp, attr, element, IPP_RES_PER_INCH, xres, yres)); else if (!_cups_strcasecmp(ptr, "dpc") || !_cups_strcasecmp(ptr, "dpcm")) return (ippSetResolution(ipp, attr, element, IPP_RES_PER_CM, xres, yres)); else return (ippSetResolution(ipp, attr, element, (ipp_res_t)0, xres, yres)); } case IPP_TAG_RANGE : { int lower, /* Lower value */ upper; /* Upper value */ if (sscanf(value, "%d-%d", &lower, &upper) != 2) { report_error(f, v, user_data, "Bad rangeOfInteger value \"%s\" on line %d of \"%s\".", value, f->linenum, f->filename); return (0); } return (ippSetRange(ipp, attr, element, lower, upper)); } case IPP_TAG_STRING : valuelen = strlen(value); if (value[0] == '<' && value[strlen(value) - 1] == '>') { if (valuelen & 1) { report_error(f, v, user_data, "Bad octetString value on line %d of \"%s\".", f->linenum, f->filename); return (0); } valueptr = value + 1; tempptr = temp; while (*valueptr && *valueptr != '>') { if (!isxdigit(valueptr[0] & 255) || !isxdigit(valueptr[1] & 255)) { report_error(f, v, user_data, "Bad octetString value on line %d of \"%s\".", f->linenum, f->filename); return (0); } if (valueptr[0] >= '0' && valueptr[0] <= '9') *tempptr = (char)((valueptr[0] - '0') << 4); else *tempptr = (char)((tolower(valueptr[0]) - 'a' + 10) << 4); if (valueptr[1] >= '0' && valueptr[1] <= '9') *tempptr |= (valueptr[1] - '0'); else *tempptr |= (tolower(valueptr[1]) - 'a' + 10); tempptr ++; } return (ippSetOctetString(ipp, attr, element, temp, (int)(tempptr - temp))); } else return (ippSetOctetString(ipp, attr, element, value, (int)valuelen)); case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : return (ippSetString(ipp, attr, element, value)); case IPP_TAG_BEGIN_COLLECTION : { int status; /* Add status */ ipp_t *col; /* Collection value */ if (strcmp(value, "{")) { report_error(f, v, user_data, "Bad collection value on line %d of \"%s\".", f->linenum, f->filename); return (0); } if ((col = parse_collection(f, v, user_data)) == NULL) return (0); status = ippSetCollection(ipp, attr, element, col); ippDelete(col); return (status); } default : report_error(f, v, user_data, "Unsupported value on line %d of \"%s\".", f->linenum, f->filename); return (0); } } /* * 'report_error()' - Report an error. */ static void report_error( _ipp_file_t *f, /* I - IPP data file */ _ipp_vars_t *v, /* I - Error callback function, if any */ void *user_data, /* I - User data pointer */ const char *message, /* I - Printf-style message */ ...) /* I - Additional arguments as needed */ { char buffer[8192]; /* Formatted string */ va_list ap; /* Argument pointer */ va_start(ap, message); vsnprintf(buffer, sizeof(buffer), message, ap); va_end(ap); if (v->errorcb) (*v->errorcb)(f, user_data, buffer); else fprintf(stderr, "%s\n", buffer); } cups-2.4.7/cups/http.h0000644000175000017500000007442714502571342014501 0ustar zdohnalzdohnal/* * Hyper-Text Transport Protocol definitions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_HTTP_H_ # define _CUPS_HTTP_H_ /* * Include necessary headers... */ # include "versioning.h" # include "array.h" # include # include # include # ifdef _WIN32 # ifndef __CUPS_SSIZE_T_DEFINED # define __CUPS_SSIZE_T_DEFINED /* Windows does not support the ssize_t type, so map it to __int64... */ typedef __int64 ssize_t; /* @private@ */ # endif /* !__CUPS_SSIZE_T_DEFINED */ # include # include # else # include # include # include # include # include # include # include # include # if !defined(__APPLE__) || !defined(TCP_NODELAY) # include # endif /* !__APPLE__ || !TCP_NODELAY */ # if defined(AF_UNIX) && !defined(AF_LOCAL) # define AF_LOCAL AF_UNIX /* Older UNIX's have old names... */ # endif /* AF_UNIX && !AF_LOCAL */ # ifdef AF_LOCAL # include # endif /* AF_LOCAL */ # if defined(LOCAL_PEERCRED) && !defined(SO_PEERCRED) # define SO_PEERCRED LOCAL_PEERCRED # endif /* LOCAL_PEERCRED && !SO_PEERCRED */ # endif /* _WIN32 */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Oh, the wonderful world of IPv6 compatibility. Apparently some * implementations expose the (more logical) 32-bit address parts * to everyone, while others only expose it to kernel code... To * make supporting IPv6 even easier, each vendor chose different * core structure and union names, so the same defines or code * can't be used on all platforms. * * The following will likely need tweaking on new platforms that * support IPv6 - the "s6_addr32" define maps to the 32-bit integer * array in the in6_addr union, which is named differently on various * platforms. */ #if defined(AF_INET6) && !defined(s6_addr32) # if defined(__sun) # define s6_addr32 _S6_un._S6_u32 # elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)|| defined(__DragonFly__) # define s6_addr32 __u6_addr.__u6_addr32 # elif defined(_WIN32) /* * Windows only defines byte and 16-bit word members of the union and * requires special casing of all raw address code... */ # define s6_addr32 error_need_win32_specific_code # endif /* __sun */ #endif /* AF_INET6 && !s6_addr32 */ /* * Limits... */ # define HTTP_MAX_URI 1024 /* Max length of URI string */ # define HTTP_MAX_HOST 256 /* Max length of hostname string */ # define HTTP_MAX_BUFFER 2048 /* Max length of data buffer */ # define HTTP_MAX_VALUE 256 /* Max header field value length */ /* * Types and structures... */ typedef enum http_auth_e /**** HTTP authentication types @exclude all@ ****/ { HTTP_AUTH_NONE, /* No authentication in use */ HTTP_AUTH_BASIC, /* Basic authentication in use */ HTTP_AUTH_MD5, /* Digest authentication in use */ HTTP_AUTH_MD5_SESS, /* MD5-session authentication in use */ HTTP_AUTH_MD5_INT, /* Digest authentication in use for body */ HTTP_AUTH_MD5_SESS_INT, /* MD5-session authentication in use for body */ HTTP_AUTH_NEGOTIATE /* GSSAPI authentication in use @since CUPS 1.3/macOS 10.5@ */ } http_auth_t; typedef enum http_encoding_e /**** HTTP transfer encoding values ****/ { HTTP_ENCODING_LENGTH, /* Data is sent with Content-Length */ HTTP_ENCODING_CHUNKED, /* Data is chunked */ HTTP_ENCODING_FIELDS /* Sending HTTP fields */ # ifndef _CUPS_NO_DEPRECATED # define HTTP_ENCODE_LENGTH HTTP_ENCODING_LENGTH # define HTTP_ENCODE_CHUNKED HTTP_ENCODING_CHUNKED # define HTTP_ENCODE_FIELDS HTTP_ENCODING_FIELDS # endif /* !_CUPS_NO_DEPRECATED */ } http_encoding_t; typedef enum http_encryption_e /**** HTTP encryption values ****/ { HTTP_ENCRYPTION_IF_REQUESTED, /* Encrypt if requested (TLS upgrade) */ HTTP_ENCRYPTION_NEVER, /* Never encrypt */ HTTP_ENCRYPTION_REQUIRED, /* Encryption is required (TLS upgrade) */ HTTP_ENCRYPTION_ALWAYS /* Always encrypt (SSL) */ # ifndef _CUPS_NO_DEPRECATED # define HTTP_ENCRYPT_IF_REQUESTED HTTP_ENCRYPTION_IF_REQUESTED # define HTTP_ENCRYPT_NEVER HTTP_ENCRYPTION_NEVER # define HTTP_ENCRYPT_REQUIRED HTTP_ENCRYPTION_REQUIRED # define HTTP_ENCRYPT_ALWAYS HTTP_ENCRYPTION_ALWAYS # endif /* !_CUPS_NO_DEPRECATED */ } http_encryption_t; typedef enum http_field_e /**** HTTP field names ****/ { HTTP_FIELD_UNKNOWN = -1, /* Unknown field */ HTTP_FIELD_ACCEPT_LANGUAGE, /* Accept-Language field */ HTTP_FIELD_ACCEPT_RANGES, /* Accept-Ranges field */ HTTP_FIELD_AUTHORIZATION, /* Authorization field */ HTTP_FIELD_CONNECTION, /* Connection field */ HTTP_FIELD_CONTENT_ENCODING, /* Content-Encoding field */ HTTP_FIELD_CONTENT_LANGUAGE, /* Content-Language field */ HTTP_FIELD_CONTENT_LENGTH, /* Content-Length field */ HTTP_FIELD_CONTENT_LOCATION, /* Content-Location field */ HTTP_FIELD_CONTENT_MD5, /* Content-MD5 field */ HTTP_FIELD_CONTENT_RANGE, /* Content-Range field */ HTTP_FIELD_CONTENT_TYPE, /* Content-Type field */ HTTP_FIELD_CONTENT_VERSION, /* Content-Version field */ HTTP_FIELD_DATE, /* Date field */ HTTP_FIELD_HOST, /* Host field */ HTTP_FIELD_IF_MODIFIED_SINCE, /* If-Modified-Since field */ HTTP_FIELD_IF_UNMODIFIED_SINCE, /* If-Unmodified-Since field */ HTTP_FIELD_KEEP_ALIVE, /* Keep-Alive field */ HTTP_FIELD_LAST_MODIFIED, /* Last-Modified field */ HTTP_FIELD_LINK, /* Link field */ HTTP_FIELD_LOCATION, /* Location field */ HTTP_FIELD_RANGE, /* Range field */ HTTP_FIELD_REFERER, /* Referer field */ HTTP_FIELD_RETRY_AFTER, /* Retry-After field */ HTTP_FIELD_TRANSFER_ENCODING, /* Transfer-Encoding field */ HTTP_FIELD_UPGRADE, /* Upgrade field */ HTTP_FIELD_USER_AGENT, /* User-Agent field */ HTTP_FIELD_WWW_AUTHENTICATE, /* WWW-Authenticate field */ HTTP_FIELD_ACCEPT_ENCODING, /* Accepting-Encoding field @since CUPS 1.7/macOS 10.9@ */ HTTP_FIELD_ALLOW, /* Allow field @since CUPS 1.7/macOS 10.9@ */ HTTP_FIELD_SERVER, /* Server field @since CUPS 1.7/macOS 10.9@ */ HTTP_FIELD_AUTHENTICATION_INFO, /* Authentication-Info field @since CUPS 2.2.9@ */ HTTP_FIELD_ACCESS_CONTROL_ALLOW_CREDENTIALS, /* CORS/Fetch Access-Control-Allow-Credentials field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_ALLOW_HEADERS, /* CORS/Fetch Access-Control-Allow-Headers field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_ALLOW_METHODS, /* CORS/Fetch Access-Control-Allow-Methods field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_ALLOW_ORIGIN, /* CORS/Fetch Access-Control-Allow-Origin field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_EXPOSE_HEADERS, /* CORS/Fetch Access-Control-Expose-Headers field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_MAX_AGE, /* CORS/Fetch Access-Control-Max-Age field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_REQUEST_HEADERS, /* CORS/Fetch Access-Control-Request-Headers field @since CUPS 2.4@ */ HTTP_FIELD_ACCESS_CONTROL_REQUEST_METHOD, /* CORS/Fetch Access-Control-Request-Method field @since CUPS 2.4@ */ HTTP_FIELD_OPTIONAL_WWW_AUTHENTICATE, /* RFC 8053 Optional-WWW-Authenticate field @since CUPS 2.4@ */ HTTP_FIELD_ORIGIN, /* RFC 6454 Origin field @since CUPS 2.4@ */ HTTP_FIELD_OSCORE, /* RFC 8613 OSCORE field @since CUPS 2.4@ */ HTTP_FIELD_STRICT_TRANSPORT_SECURITY, /* HSTS Strict-Transport-Security field @since CUPS 2.4@ */ HTTP_FIELD_MAX /* Maximum field index */ } http_field_t; typedef enum http_keepalive_e /**** HTTP keep-alive values ****/ { HTTP_KEEPALIVE_OFF = 0, /* No keep alive support */ HTTP_KEEPALIVE_ON /* Use keep alive */ } http_keepalive_t; typedef enum http_state_e /**** HTTP state values; states **** are server-oriented... ****/ { HTTP_STATE_ERROR = -1, /* Error on socket */ HTTP_STATE_WAITING, /* Waiting for command */ HTTP_STATE_OPTIONS, /* OPTIONS command, waiting for blank line */ HTTP_STATE_GET, /* GET command, waiting for blank line */ HTTP_STATE_GET_SEND, /* GET command, sending data */ HTTP_STATE_HEAD, /* HEAD command, waiting for blank line */ HTTP_STATE_POST, /* POST command, waiting for blank line */ HTTP_STATE_POST_RECV, /* POST command, receiving data */ HTTP_STATE_POST_SEND, /* POST command, sending data */ HTTP_STATE_PUT, /* PUT command, waiting for blank line */ HTTP_STATE_PUT_RECV, /* PUT command, receiving data */ HTTP_STATE_DELETE, /* DELETE command, waiting for blank line */ HTTP_STATE_TRACE, /* TRACE command, waiting for blank line */ HTTP_STATE_CONNECT, /* CONNECT command, waiting for blank line */ HTTP_STATE_STATUS, /* Command complete, sending status */ HTTP_STATE_UNKNOWN_METHOD, /* Unknown request method, waiting for blank line @since CUPS 1.7/macOS 10.9@ */ HTTP_STATE_UNKNOWN_VERSION /* Unknown request method, waiting for blank line @since CUPS 1.7/macOS 10.9@ */ # ifndef _CUPS_NO_DEPRECATED # define HTTP_WAITING HTTP_STATE_WAITING # define HTTP_OPTIONS HTTP_STATE_OPTIONS # define HTTP_GET HTTP_STATE_GET # define HTTP_GET_SEND HTTP_STATE_GET_SEND # define HTTP_HEAD HTTP_STATE_HEAD # define HTTP_POST HTTP_STATE_POST # define HTTP_POST_RECV HTTP_STATE_POST_RECV # define HTTP_POST_SEND HTTP_STATE_POST_SEND # define HTTP_PUT HTTP_STATE_PUT # define HTTP_PUT_RECV HTTP_STATE_PUT_RECV # define HTTP_DELETE HTTP_STATE_DELETE # define HTTP_TRACE HTTP_STATE_TRACE # define HTTP_CLOSE HTTP_STATE_CONNECT # define HTTP_STATUS HTTP_STATE_STATUS # endif /* !_CUPS_NO_DEPRECATED */ } http_state_t; typedef enum http_status_e /**** HTTP status codes ****/ { HTTP_STATUS_ERROR = -1, /* An error response from httpXxxx() */ HTTP_STATUS_NONE = 0, /* No Expect value @since CUPS 1.7/macOS 10.9@ */ HTTP_STATUS_CONTINUE = 100, /* Everything OK, keep going... */ HTTP_STATUS_SWITCHING_PROTOCOLS, /* HTTP upgrade to TLS/SSL */ HTTP_STATUS_OK = 200, /* OPTIONS/GET/HEAD/POST/TRACE command was successful */ HTTP_STATUS_CREATED, /* PUT command was successful */ HTTP_STATUS_ACCEPTED, /* DELETE command was successful */ HTTP_STATUS_NOT_AUTHORITATIVE, /* Information isn't authoritative */ HTTP_STATUS_NO_CONTENT, /* Successful command, no new data */ HTTP_STATUS_RESET_CONTENT, /* Content was reset/recreated */ HTTP_STATUS_PARTIAL_CONTENT, /* Only a partial file was received/sent */ HTTP_STATUS_MULTIPLE_CHOICES = 300, /* Multiple files match request */ HTTP_STATUS_MOVED_PERMANENTLY, /* Document has moved permanently */ HTTP_STATUS_FOUND, /* Document was found at a different URI */ HTTP_STATUS_SEE_OTHER, /* See this other link */ HTTP_STATUS_NOT_MODIFIED, /* File not modified */ HTTP_STATUS_USE_PROXY, /* Must use a proxy to access this URI */ HTTP_STATUS_TEMPORARY_REDIRECT = 307, /* Temporary redirection */ HTTP_STATUS_BAD_REQUEST = 400, /* Bad request */ HTTP_STATUS_UNAUTHORIZED, /* Unauthorized to access host */ HTTP_STATUS_PAYMENT_REQUIRED, /* Payment required */ HTTP_STATUS_FORBIDDEN, /* Forbidden to access this URI */ HTTP_STATUS_NOT_FOUND, /* URI was not found */ HTTP_STATUS_METHOD_NOT_ALLOWED, /* Method is not allowed */ HTTP_STATUS_NOT_ACCEPTABLE, /* Not Acceptable */ HTTP_STATUS_PROXY_AUTHENTICATION, /* Proxy Authentication is Required */ HTTP_STATUS_REQUEST_TIMEOUT, /* Request timed out */ HTTP_STATUS_CONFLICT, /* Request is self-conflicting */ HTTP_STATUS_GONE, /* Server has gone away */ HTTP_STATUS_LENGTH_REQUIRED, /* A content length or encoding is required */ HTTP_STATUS_PRECONDITION, /* Precondition failed */ HTTP_STATUS_REQUEST_TOO_LARGE, /* Request entity too large */ HTTP_STATUS_URI_TOO_LONG, /* URI too long */ HTTP_STATUS_UNSUPPORTED_MEDIATYPE, /* The requested media type is unsupported */ HTTP_STATUS_REQUESTED_RANGE, /* The requested range is not satisfiable */ HTTP_STATUS_EXPECTATION_FAILED, /* The expectation given in an Expect header field was not met */ HTTP_STATUS_UPGRADE_REQUIRED = 426, /* Upgrade to SSL/TLS required */ HTTP_STATUS_SERVER_ERROR = 500, /* Internal server error */ HTTP_STATUS_NOT_IMPLEMENTED, /* Feature not implemented */ HTTP_STATUS_BAD_GATEWAY, /* Bad gateway */ HTTP_STATUS_SERVICE_UNAVAILABLE, /* Service is unavailable */ HTTP_STATUS_GATEWAY_TIMEOUT, /* Gateway connection timed out */ HTTP_STATUS_NOT_SUPPORTED, /* HTTP version not supported */ HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED = 1000, /* User canceled authorization @since CUPS 1.4@ */ HTTP_STATUS_CUPS_PKI_ERROR, /* Error negotiating a secure connection @since CUPS 1.5/macOS 10.7@ */ HTTP_STATUS_CUPS_WEBIF_DISABLED /* Web interface is disabled @private@ */ # define HTTP_STATUS_MOVED_TEMPORARILY HTTP_STATUS_FOUND /* Renamed in RFC 7231 */ # ifndef _CUPS_NO_DEPRECATED /* Old names for this enumeration */ # define HTTP_ERROR HTTP_STATUS_ERROR # define HTTP_CONTINUE HTTP_STATUS_CONTINUE # define HTTP_SWITCHING_PROTOCOLS HTTP_STATUS_SWITCHING_PROTOCOLS # define HTTP_OK HTTP_STATUS_OK # define HTTP_CREATED HTTP_STATUS_CREATED # define HTTP_ACCEPTED HTTP_STATUS_ACCEPTED # define HTTP_NOT_AUTHORITATIVE HTTP_STATUS_NOT_AUTHORITATIVE # define HTTP_NO_CONTENT HTTP_STATUS_NO_CONTENT # define HTTP_RESET_CONTENT HTTP_STATUS_RESET_CONTENT # define HTTP_PARTIAL_CONTENT HTTP_STATUS_PARTIAL_CONTENT # define HTTP_MULTIPLE_CHOICES HTTP_STATUS_MULTIPLE_CHOICES # define HTTP_MOVED_PERMANENTLY HTTP_STATUS_MOVED_PERMANENTLY # define HTTP_MOVED_TEMPORARILY HTTP_STATUS_MOVED_TEMPORARILY # define HTTP_SEE_OTHER HTTP_STATUS_SEE_OTHER # define HTTP_NOT_MODIFIED HTTP_STATUS_NOT_MODIFIED # define HTTP_USE_PROXY HTTP_STATUS_USE_PROXY # define HTTP_BAD_REQUEST HTTP_STATUS_BAD_REQUEST # define HTTP_UNAUTHORIZED HTTP_STATUS_UNAUTHORIZED # define HTTP_PAYMENT_REQUIRED HTTP_STATUS_PAYMENT_REQUIRED # define HTTP_FORBIDDEN HTTP_STATUS_FORBIDDEN # define HTTP_NOT_FOUND HTTP_STATUS_NOT_FOUND # define HTTP_METHOD_NOT_ALLOWED HTTP_STATUS_METHOD_NOT_ALLOWED # define HTTP_NOT_ACCEPTABLE HTTP_STATUS_NOT_ACCEPTABLE # define HTTP_PROXY_AUTHENTICATION HTTP_STATUS_PROXY_AUTHENTICATION # define HTTP_REQUEST_TIMEOUT HTTP_STATUS_REQUEST_TIMEOUT # define HTTP_CONFLICT HTTP_STATUS_CONFLICT # define HTTP_GONE HTTP_STATUS_GONE # define HTTP_LENGTH_REQUIRED HTTP_STATUS_LENGTH_REQUIRED # define HTTP_PRECONDITION HTTP_STATUS_PRECONDITION # define HTTP_REQUEST_TOO_LARGE HTTP_STATUS_REQUEST_TOO_LARGE # define HTTP_URI_TOO_LONG HTTP_STATUS_URI_TOO_LONG # define HTTP_UNSUPPORTED_MEDIATYPE HTTP_STATUS_UNSUPPORTED_MEDIATYPE # define HTTP_REQUESTED_RANGE HTTP_STATUS_REQUESTED_RANGE # define HTTP_EXPECTATION_FAILED HTTP_STATUS_EXPECTATION_FAILED # define HTTP_UPGRADE_REQUIRED HTTP_STATUS_UPGRADE_REQUIRED # define HTTP_SERVER_ERROR HTTP_STATUS_SERVER_ERROR # define HTTP_NOT_IMPLEMENTED HTTP_STATUS_NOT_IMPLEMENTED # define HTTP_BAD_GATEWAY HTTP_STATUS_BAD_GATEWAY # define HTTP_SERVICE_UNAVAILABLE HTTP_STATUS_SERVICE_UNAVAILABLE # define HTTP_GATEWAY_TIMEOUT HTTP_STATUS_GATEWAY_TIMEOUT # define HTTP_NOT_SUPPORTED HTTP_STATUS_NOT_SUPPORTED # define HTTP_AUTHORIZATION_CANCELED HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED # define HTTP_PKI_ERROR HTTP_STATUS_CUPS_PKI_ERROR # define HTTP_WEBIF_DISABLED HTTP_STATUS_CUPS_WEBIF_DISABLED # endif /* !_CUPS_NO_DEPRECATED */ } http_status_t; typedef enum http_trust_e /**** Level of trust for credentials @since CUPS 2.0/OS 10.10@ */ { HTTP_TRUST_OK = 0, /* Credentials are OK/trusted */ HTTP_TRUST_INVALID, /* Credentials are invalid */ HTTP_TRUST_CHANGED, /* Credentials have changed */ HTTP_TRUST_EXPIRED, /* Credentials are expired */ HTTP_TRUST_RENEWED, /* Credentials have been renewed */ HTTP_TRUST_UNKNOWN /* Credentials are unknown/new */ } http_trust_t; typedef enum http_uri_status_e /**** URI separation status @since CUPS 1.2@ ****/ { HTTP_URI_STATUS_OVERFLOW = -8, /* URI buffer for httpAssembleURI is too small */ HTTP_URI_STATUS_BAD_ARGUMENTS = -7, /* Bad arguments to function (error) */ HTTP_URI_STATUS_BAD_RESOURCE = -6, /* Bad resource in URI (error) */ HTTP_URI_STATUS_BAD_PORT = -5, /* Bad port number in URI (error) */ HTTP_URI_STATUS_BAD_HOSTNAME = -4, /* Bad hostname in URI (error) */ HTTP_URI_STATUS_BAD_USERNAME = -3, /* Bad username in URI (error) */ HTTP_URI_STATUS_BAD_SCHEME = -2, /* Bad scheme in URI (error) */ HTTP_URI_STATUS_BAD_URI = -1, /* Bad/empty URI (error) */ HTTP_URI_STATUS_OK = 0, /* URI decoded OK */ HTTP_URI_STATUS_MISSING_SCHEME, /* Missing scheme in URI (warning) */ HTTP_URI_STATUS_UNKNOWN_SCHEME, /* Unknown scheme in URI (warning) */ HTTP_URI_STATUS_MISSING_RESOURCE /* Missing resource in URI (warning) */ # ifndef _CUPS_NO_DEPRECATED # define HTTP_URI_OVERFLOW HTTP_URI_STATUS_OVERFLOW # define HTTP_URI_BAD_ARGUMENTS HTTP_URI_STATUS_BAD_ARGUMENTS # define HTTP_URI_BAD_RESOURCE HTTP_URI_STATUS_BAD_RESOURCE # define HTTP_URI_BAD_PORT HTTP_URI_STATUS_BAD_PORT # define HTTP_URI_BAD_HOSTNAME HTTP_URI_STATUS_BAD_HOSTNAME # define HTTP_URI_BAD_USERNAME HTTP_URI_STATUS_BAD_USERNAME # define HTTP_URI_BAD_SCHEME HTTP_URI_STATUS_BAD_SCHEME # define HTTP_URI_BAD_URI HTTP_URI_STATUS_BAD_URI # define HTTP_URI_OK HTTP_URI_STATUS_OK # define HTTP_URI_MISSING_SCHEME HTTP_URI_STATUS_MISSING_SCHEME # define HTTP_URI_UNKNOWN_SCHEME HTTP_URI_STATUS_UNKNOWN_SCHEME # define HTTP_URI_MISSING_RESOURCE HTTP_URI_STATUS_MISSING_RESOURCE # endif /* !_CUPS_NO_DEPRECATED */ } http_uri_status_t; typedef enum http_uri_coding_e /**** URI en/decode flags ****/ { HTTP_URI_CODING_NONE = 0, /* Don't en/decode anything */ HTTP_URI_CODING_USERNAME = 1, /* En/decode the username portion */ HTTP_URI_CODING_HOSTNAME = 2, /* En/decode the hostname portion */ HTTP_URI_CODING_RESOURCE = 4, /* En/decode the resource portion */ HTTP_URI_CODING_MOST = 7, /* En/decode all but the query */ HTTP_URI_CODING_QUERY = 8, /* En/decode the query portion */ HTTP_URI_CODING_ALL = 15, /* En/decode everything */ HTTP_URI_CODING_RFC6874 = 16 /* Use RFC 6874 address format */ } http_uri_coding_t; typedef enum http_version_e /**** HTTP version numbers @exclude all@ ****/ { HTTP_VERSION_0_9 = 9, /* HTTP/0.9 */ HTTP_VERSION_1_0 = 100, /* HTTP/1.0 */ HTTP_VERSION_1_1 = 101 /* HTTP/1.1 */ # ifndef _CUPS_NO_DEPRECATED # define HTTP_0_9 HTTP_VERSION_0_9 # define HTTP_1_0 HTTP_VERSION_1_0 # define HTTP_1_1 HTTP_VERSION_1_1 # endif /* !_CUPS_NO_DEPRECATED */ } http_version_t; typedef union _http_addr_u /**** Socket address union, which **** makes using IPv6 and other **** address types easier and **** more portable. @since CUPS 1.2/macOS 10.5@ ****/ { struct sockaddr addr; /* Base structure for family value */ struct sockaddr_in ipv4; /* IPv4 address */ #ifdef AF_INET6 struct sockaddr_in6 ipv6; /* IPv6 address */ #endif /* AF_INET6 */ #ifdef AF_LOCAL struct sockaddr_un un; /* Domain socket file */ #endif /* AF_LOCAL */ char pad[256]; /* Padding to ensure binary compatibility */ } http_addr_t; typedef struct http_addrlist_s /**** Socket address list, which is **** used to enumerate all of the **** addresses that are associated **** with a hostname. @since CUPS 1.2/macOS 10.5@ **** @exclude all@ ****/ { struct http_addrlist_s *next; /* Pointer to next address in list */ http_addr_t addr; /* Address */ } http_addrlist_t; typedef struct _http_s http_t; /**** HTTP connection type ****/ typedef struct http_credential_s /**** HTTP credential data @since CUPS 1.5/macOS 10.7@ @exclude all@ ****/ { void *data; /* Pointer to credential data */ size_t datalen; /* Credential length */ } http_credential_t; typedef int (*http_timeout_cb_t)(http_t *http, void *user_data); /**** HTTP timeout callback @since CUPS 1.5/macOS 10.7@ ****/ /* * Prototypes... */ extern void httpBlocking(http_t *http, int b) _CUPS_PUBLIC; extern int httpCheck(http_t *http) _CUPS_PUBLIC; extern void httpClearFields(http_t *http) _CUPS_PUBLIC; extern void httpClose(http_t *http) _CUPS_PUBLIC; extern http_t *httpConnect(const char *host, int port) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead."); extern http_t *httpConnectEncrypt(const char *host, int port, http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead."); extern int httpDelete(http_t *http, const char *uri) _CUPS_PUBLIC; extern int httpEncryption(http_t *http, http_encryption_t e) _CUPS_PUBLIC; extern int httpError(http_t *http) _CUPS_PUBLIC; extern void httpFlush(http_t *http) _CUPS_PUBLIC; extern int httpGet(http_t *http, const char *uri) _CUPS_PUBLIC; extern char *httpGets(char *line, int length, http_t *http) _CUPS_PUBLIC; extern const char *httpGetDateString(time_t t) _CUPS_PUBLIC; extern time_t httpGetDateTime(const char *s) _CUPS_PUBLIC; extern const char *httpGetField(http_t *http, http_field_t field) _CUPS_PUBLIC; extern struct hostent *httpGetHostByName(const char *name) _CUPS_PUBLIC; extern char *httpGetSubField(http_t *http, http_field_t field, const char *name, char *value) _CUPS_PUBLIC; extern int httpHead(http_t *http, const char *uri) _CUPS_PUBLIC; extern void httpInitialize(void) _CUPS_PUBLIC; extern int httpOptions(http_t *http, const char *uri) _CUPS_PUBLIC; extern int httpPost(http_t *http, const char *uri) _CUPS_PUBLIC; extern int httpPrintf(http_t *http, const char *format, ...) _CUPS_FORMAT(2, 3) _CUPS_PUBLIC; extern int httpPut(http_t *http, const char *uri) _CUPS_PUBLIC; extern int httpRead(http_t *http, char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpRead2 instead."); extern int httpReconnect(http_t *http) _CUPS_DEPRECATED_1_6_MSG("Use httpReconnect2 instead."); extern void httpSeparate(const char *uri, char *method, char *username, char *host, int *port, char *resource) _CUPS_DEPRECATED_1_2_MSG("Use httpSeparateURI instead."); extern void httpSetField(http_t *http, http_field_t field, const char *value) _CUPS_PUBLIC; extern const char *httpStatus(http_status_t status) _CUPS_PUBLIC; extern int httpTrace(http_t *http, const char *uri) _CUPS_PUBLIC; extern http_status_t httpUpdate(http_t *http) _CUPS_PUBLIC; extern int httpWrite(http_t *http, const char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpWrite2 instead."); extern char *httpEncode64(char *out, const char *in) _CUPS_DEPRECATED_MSG("Use httpEncode64_2 instead."); extern char *httpDecode64(char *out, const char *in) _CUPS_DEPRECATED_MSG("Use httpDecode64_2 instead."); extern int httpGetLength(http_t *http) _CUPS_DEPRECATED_1_2_MSG("Use httpGetLength2 instead."); extern char *httpMD5(const char *, const char *, const char *, char [33]) _CUPS_DEPRECATED_MSG("Use cupsDoAuth or cupsHashData instead."); extern char *httpMD5Final(const char *, const char *, const char *, char [33]) _CUPS_DEPRECATED_2_2_MSG("Use cupsDoAuth or cupsHashData instead."); extern char *httpMD5String(const unsigned char *, char [33]) _CUPS_DEPRECATED_2_2_MSG("Use cupsHashString instead."); /**** New in CUPS 1.1.19 ****/ extern void httpClearCookie(http_t *http) _CUPS_API_1_1_19; extern const char *httpGetCookie(http_t *http) _CUPS_API_1_1_19; extern void httpSetCookie(http_t *http, const char *cookie) _CUPS_API_1_1_19; extern int httpWait(http_t *http, int msec) _CUPS_API_1_1_19; /**** New in CUPS 1.1.21 ****/ extern char *httpDecode64_2(char *out, int *outlen, const char *in) _CUPS_API_1_1_21; extern char *httpEncode64_2(char *out, int outlen, const char *in, int inlen) _CUPS_API_1_1_21; extern void httpSeparate2(const char *uri, char *method, int methodlen, char *username, int usernamelen, char *host, int hostlen, int *port, char *resource, int resourcelen) _CUPS_DEPRECATED_1_2_MSG("Use httpSeparateURI instead."); /**** New in CUPS 1.2/macOS 10.5 ****/ extern int httpAddrAny(const http_addr_t *addr) _CUPS_API_1_2; extern http_addrlist_t *httpAddrConnect(http_addrlist_t *addrlist, int *sock) _CUPS_API_1_2; extern int httpAddrEqual(const http_addr_t *addr1, const http_addr_t *addr2) _CUPS_API_1_2; extern void httpAddrFreeList(http_addrlist_t *addrlist) _CUPS_API_1_2; extern http_addrlist_t *httpAddrGetList(const char *hostname, int family, const char *service) _CUPS_API_1_2; extern int httpAddrLength(const http_addr_t *addr) _CUPS_API_1_2; extern int httpAddrLocalhost(const http_addr_t *addr) _CUPS_API_1_2; extern char *httpAddrLookup(const http_addr_t *addr, char *name, int namelen) _CUPS_API_1_2; extern char *httpAddrString(const http_addr_t *addr, char *s, int slen) _CUPS_API_1_2; extern http_uri_status_t httpAssembleURI(http_uri_coding_t encoding, char *uri, int urilen, const char *scheme, const char *username, const char *host, int port, const char *resource) _CUPS_API_1_2; extern http_uri_status_t httpAssembleURIf(http_uri_coding_t encoding, char *uri, int urilen, const char *scheme, const char *username, const char *host, int port, const char *resourcef, ...) _CUPS_FORMAT(8, 9) _CUPS_API_1_2; extern int httpFlushWrite(http_t *http) _CUPS_API_1_2; extern int httpGetBlocking(http_t *http) _CUPS_API_1_2; extern const char *httpGetDateString2(time_t t, char *s, int slen) _CUPS_API_1_2; extern int httpGetFd(http_t *http) _CUPS_API_1_2; extern const char *httpGetHostname(http_t *http, char *s, int slen) _CUPS_API_1_2; extern off_t httpGetLength2(http_t *http) _CUPS_API_1_2; extern http_status_t httpGetStatus(http_t *http) _CUPS_API_1_2; extern char *httpGetSubField2(http_t *http, http_field_t field, const char *name, char *value, int valuelen) _CUPS_API_1_2; extern ssize_t httpRead2(http_t *http, char *buffer, size_t length) _CUPS_API_1_2; extern http_uri_status_t httpSeparateURI(http_uri_coding_t decoding, const char *uri, char *scheme, int schemelen, char *username, int usernamelen, char *host, int hostlen, int *port, char *resource, int resourcelen) _CUPS_API_1_2; extern void httpSetExpect(http_t *http, http_status_t expect) _CUPS_API_1_2; extern void httpSetLength(http_t *http, size_t length) _CUPS_API_1_2; extern ssize_t httpWrite2(http_t *http, const char *buffer, size_t length) _CUPS_API_1_2; /**** New in CUPS 1.3/macOS 10.5 ****/ extern char *httpGetAuthString(http_t *http) _CUPS_API_1_3; extern void httpSetAuthString(http_t *http, const char *scheme, const char *data) _CUPS_API_1_3; /**** New in CUPS 1.5/macOS 10.7 ****/ extern int httpAddCredential(cups_array_t *credentials, const void *data, size_t datalen) _CUPS_API_1_5; extern int httpCopyCredentials(http_t *http, cups_array_t **credentials) _CUPS_API_1_5; extern void httpFreeCredentials(cups_array_t *certs) _CUPS_API_1_5; extern int httpSetCredentials(http_t *http, cups_array_t *certs) _CUPS_API_1_5; extern void httpSetTimeout(http_t *http, double timeout, http_timeout_cb_t cb, void *user_data) _CUPS_API_1_5; /**** New in CUPS 1.6/macOS 10.8 ****/ extern http_addrlist_t *httpAddrConnect2(http_addrlist_t *addrlist, int *sock, int msec, int *cancel) _CUPS_API_1_6; extern http_state_t httpGetState(http_t *http) _CUPS_API_1_6; extern http_version_t httpGetVersion(http_t *http) _CUPS_API_1_6; extern int httpReconnect2(http_t *http, int msec, int *cancel) _CUPS_API_1_6; /**** New in CUPS 1.7/macOS 10.9 ****/ extern http_t *httpAcceptConnection(int fd, int blocking) _CUPS_API_1_7; extern http_addrlist_t *httpAddrCopyList(http_addrlist_t *src) _CUPS_API_1_7; extern int httpAddrListen(http_addr_t *addr, int port) _CUPS_API_1_7; extern int httpAddrPort(http_addr_t *addr) _CUPS_API_1_7; extern char *httpAssembleUUID(const char *server, int port, const char *name, int number, char *buffer, size_t bufsize) _CUPS_API_1_7; extern http_t *httpConnect2(const char *host, int port, http_addrlist_t *addrlist, int family, http_encryption_t encryption, int blocking, int msec, int *cancel) _CUPS_API_1_7; extern const char *httpGetContentEncoding(http_t *http) _CUPS_API_1_7; extern http_status_t httpGetExpect(http_t *http) _CUPS_API_1_7; extern ssize_t httpPeek(http_t *http, char *buffer, size_t length) _CUPS_API_1_7; extern http_state_t httpReadRequest(http_t *http, char *resource, size_t resourcelen) _CUPS_API_1_7; extern void httpSetDefaultField(http_t *http, http_field_t field, const char *value) _CUPS_API_1_7; extern int httpWriteResponse(http_t *http, http_status_t status) _CUPS_API_1_7; /* New in CUPS 2.0/macOS 10.10 */ extern int httpAddrClose(http_addr_t *addr, int fd) _CUPS_API_2_0; extern int httpAddrFamily(http_addr_t *addr) _CUPS_API_2_0; extern int httpCompareCredentials(cups_array_t *cred1, cups_array_t *cred2) _CUPS_API_2_0; extern int httpCredentialsAreValidForName(cups_array_t *credentials, const char *common_name); extern time_t httpCredentialsGetExpiration(cups_array_t *credentials) _CUPS_API_2_0; extern http_trust_t httpCredentialsGetTrust(cups_array_t *credentials, const char *common_name) _CUPS_API_2_0; extern size_t httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize) _CUPS_API_2_0; extern http_field_t httpFieldValue(const char *name) _CUPS_API_2_0; extern time_t httpGetActivity(http_t *http) _CUPS_API_2_0; extern http_addr_t *httpGetAddress(http_t *http) _CUPS_API_2_0; extern http_encryption_t httpGetEncryption(http_t *http) _CUPS_API_2_0; extern http_keepalive_t httpGetKeepAlive(http_t *http) _CUPS_API_2_0; extern size_t httpGetPending(http_t *http) _CUPS_API_2_0; extern size_t httpGetReady(http_t *http) _CUPS_API_2_0; extern size_t httpGetRemaining(http_t *http) _CUPS_API_2_0; extern int httpIsChunked(http_t *http) _CUPS_API_2_0; extern int httpIsEncrypted(http_t *http) _CUPS_API_2_0; extern int httpLoadCredentials(const char *path, cups_array_t **credentials, const char *common_name) _CUPS_API_2_0; extern const char *httpResolveHostname(http_t *http, char *buffer, size_t bufsize) _CUPS_API_2_0; extern int httpSaveCredentials(const char *path, cups_array_t *credentials, const char *common_name) _CUPS_API_2_0; extern void httpSetKeepAlive(http_t *http, http_keepalive_t keep_alive) _CUPS_API_2_0; extern void httpShutdown(http_t *http) _CUPS_API_2_0; extern const char *httpStateString(http_state_t state) _CUPS_API_2_0; extern const char *httpURIStatusString(http_uri_status_t status) _CUPS_API_2_0; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_HTTP_H_ */ cups-2.4.7/cups/http.c0000644000175000017500000034762514502571342014477 0ustar zdohnalzdohnal/* * HTTP routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by * Jelmer Vernooij. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #ifdef _WIN32 # include #else # include # include # include #endif /* _WIN32 */ #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ # ifdef HAVE_LIBZ # include # endif /* HAVE_LIBZ */ /* * Local functions... */ static void http_add_field(http_t *http, http_field_t field, const char *value, int append); #ifdef HAVE_LIBZ static void http_content_coding_finish(http_t *http); static void http_content_coding_start(http_t *http, const char *value); #endif /* HAVE_LIBZ */ static http_t *http_create(const char *host, int port, http_addrlist_t *addrlist, int family, http_encryption_t encryption, int blocking, _http_mode_t mode); #ifdef DEBUG static void http_debug_hex(const char *prefix, const char *buffer, int bytes); #endif /* DEBUG */ static ssize_t http_read(http_t *http, char *buffer, size_t length); static ssize_t http_read_buffered(http_t *http, char *buffer, size_t length); static ssize_t http_read_chunk(http_t *http, char *buffer, size_t length); static int http_send(http_t *http, http_state_t request, const char *uri); static ssize_t http_write(http_t *http, const char *buffer, size_t length); static ssize_t http_write_chunk(http_t *http, const char *buffer, size_t length); static off_t http_set_length(http_t *http); static void http_set_timeout(int fd, double timeout); static void http_set_wait(http_t *http); #ifdef HAVE_TLS static int http_tls_upgrade(http_t *http); #endif /* HAVE_TLS */ /* * Local globals... */ static const char * const http_fields[] = { "Accept-Language", "Accept-Ranges", "Authorization", "Connection", "Content-Encoding", "Content-Language", "Content-Length", "Content-Location", "Content-MD5", "Content-Range", "Content-Type", "Content-Version", "Date", "Host", "If-Modified-Since", "If-Unmodified-since", "Keep-Alive", "Last-Modified", "Link", "Location", "Range", "Referer", "Retry-After", "Transfer-Encoding", "Upgrade", "User-Agent", "WWW-Authenticate", "Accept-Encoding", "Allow", "Server", "Authentication-Info", "Access-Control-Allow-Credentials", "Access-Control-Allow-Headers", "Access-Control-Allow-Methods", "Access-Control-Allow-Origin", "Access-Control-Expose-Headers", "Access-Control-Max-Age", "Access-Control-Request-Headers", "Access-Control-Request-Method", "Optional-WWW-Authenticate", "Origin", "OSCORE", "Strict-Transport-Security" }; /* * 'httpAcceptConnection()' - Accept a new HTTP client connection from the * specified listening socket. * * @since CUPS 1.7/macOS 10.9@ */ http_t * /* O - HTTP connection or @code NULL@ */ httpAcceptConnection(int fd, /* I - Listen socket file descriptor */ int blocking) /* I - 1 if the connection should be blocking, 0 otherwise */ { http_t *http; /* HTTP connection */ http_addrlist_t addrlist; /* Dummy address list */ socklen_t addrlen; /* Length of address */ int val; /* Socket option value */ /* * Range check input... */ if (fd < 0) return (NULL); /* * Create the client connection... */ memset(&addrlist, 0, sizeof(addrlist)); if ((http = http_create(NULL, 0, &addrlist, AF_UNSPEC, HTTP_ENCRYPTION_IF_REQUESTED, blocking, _HTTP_MODE_SERVER)) == NULL) return (NULL); /* * Accept the client and get the remote address... */ addrlen = sizeof(http_addr_t); if ((http->fd = accept(fd, (struct sockaddr *)&(http->addrlist->addr), &addrlen)) < 0) { _cupsSetHTTPError(HTTP_STATUS_ERROR); httpClose(http); return (NULL); } http->hostaddr = &(http->addrlist->addr); if (httpAddrLocalhost(http->hostaddr)) strlcpy(http->hostname, "localhost", sizeof(http->hostname)); else httpAddrString(http->hostaddr, http->hostname, sizeof(http->hostname)); #ifdef SO_NOSIGPIPE /* * Disable SIGPIPE for this socket. */ val = 1; setsockopt(http->fd, SOL_SOCKET, SO_NOSIGPIPE, CUPS_SOCAST &val, sizeof(val)); #endif /* SO_NOSIGPIPE */ /* * Using TCP_NODELAY improves responsiveness, especially on systems * with a slow loopback interface. Since we write large buffers * when sending print files and requests, there shouldn't be any * performance penalty for this... */ val = 1; setsockopt(http->fd, IPPROTO_TCP, TCP_NODELAY, CUPS_SOCAST &val, sizeof(val)); #ifdef FD_CLOEXEC /* * Close this socket when starting another process... */ fcntl(http->fd, F_SETFD, FD_CLOEXEC); #endif /* FD_CLOEXEC */ return (http); } /* * 'httpAddCredential()' - Allocates and adds a single credential to an array. * * Use @code cupsArrayNew(NULL, NULL)@ to create a credentials array. * * @since CUPS 1.5/macOS 10.7@ */ int /* O - 0 on success, -1 on error */ httpAddCredential( cups_array_t *credentials, /* I - Credentials array */ const void *data, /* I - PEM-encoded X.509 data */ size_t datalen) /* I - Length of data */ { http_credential_t *credential; /* Credential data */ if ((credential = malloc(sizeof(http_credential_t))) != NULL) { credential->datalen = datalen; if ((credential->data = malloc(datalen)) != NULL) { memcpy(credential->data, data, datalen); cupsArrayAdd(credentials, credential); return (0); } free(credential); } return (-1); } /* * 'httpBlocking()' - Set blocking/non-blocking behavior on a connection. */ void httpBlocking(http_t *http, /* I - HTTP connection */ int b) /* I - 1 = blocking, 0 = non-blocking */ { if (http) { http->blocking = b; http_set_wait(http); } } /* * 'httpCheck()' - Check to see if there is a pending response from the server. */ int /* O - 0 = no data, 1 = data available */ httpCheck(http_t *http) /* I - HTTP connection */ { return (httpWait(http, 0)); } /* * 'httpClearCookie()' - Clear the cookie value(s). * * @since CUPS 1.1.19/macOS 10.3@ */ void httpClearCookie(http_t *http) /* I - HTTP connection */ { if (!http) return; if (http->cookie) { free(http->cookie); http->cookie = NULL; } } /* * 'httpClearFields()' - Clear HTTP request fields. */ void httpClearFields(http_t *http) /* I - HTTP connection */ { http_field_t field; /* Current field */ DEBUG_printf(("httpClearFields(http=%p)", (void *)http)); if (http) { memset(http->_fields, 0, sizeof(http->_fields)); for (field = HTTP_FIELD_ACCEPT_LANGUAGE; field < HTTP_FIELD_ACCEPT_ENCODING; field ++) { if (!http->fields[field]) continue; if (http->fields[field] != http->_fields[field]) free(http->fields[field]); http->fields[field] = NULL; } for (; field < HTTP_FIELD_MAX; field ++) { if (!http->fields[field]) continue; free(http->fields[field]); http->fields[field] = NULL; } if (http->mode == _HTTP_MODE_CLIENT) { if (http->hostname[0] == '/') httpSetField(http, HTTP_FIELD_HOST, "localhost"); else httpSetField(http, HTTP_FIELD_HOST, http->hostname); } http->expect = (http_status_t)0; } } /* * 'httpClose()' - Close an HTTP connection. */ void httpClose(http_t *http) /* I - HTTP connection */ { #ifdef HAVE_GSSAPI OM_uint32 minor_status; /* Minor status code */ #endif /* HAVE_GSSAPI */ DEBUG_printf(("httpClose(http=%p)", (void *)http)); /* * Range check input... */ if (!http) return; /* * Close any open connection... */ _httpDisconnect(http); /* * Free memory used... */ httpAddrFreeList(http->addrlist); if (http->cookie) free(http->cookie); #ifdef HAVE_GSSAPI if (http->gssctx != GSS_C_NO_CONTEXT) gss_delete_sec_context(&minor_status, &http->gssctx, GSS_C_NO_BUFFER); if (http->gssname != GSS_C_NO_NAME) gss_release_name(&minor_status, &http->gssname); #endif /* HAVE_GSSAPI */ #ifdef HAVE_AUTHORIZATION_H if (http->auth_ref) AuthorizationFree(http->auth_ref, kAuthorizationFlagDefaults); #endif /* HAVE_AUTHORIZATION_H */ httpClearFields(http); if (http->authstring && http->authstring != http->_authstring) free(http->authstring); free(http); } /* * 'httpCompareCredentials()' - Compare two sets of X.509 credentials. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 if they match, 0 if they do not */ httpCompareCredentials( cups_array_t *cred1, /* I - First set of X.509 credentials */ cups_array_t *cred2) /* I - Second set of X.509 credentials */ { http_credential_t *temp1, *temp2; /* Temporary credentials */ for (temp1 = (http_credential_t *)cupsArrayFirst(cred1), temp2 = (http_credential_t *)cupsArrayFirst(cred2); temp1 && temp2; temp1 = (http_credential_t *)cupsArrayNext(cred1), temp2 = (http_credential_t *)cupsArrayNext(cred2)) if (temp1->datalen != temp2->datalen) return (0); else if (memcmp(temp1->data, temp2->data, temp1->datalen)) return (0); return (temp1 == temp2); } /* * 'httpConnect()' - Connect to a HTTP server. * * This function is deprecated - use @link httpConnect2@ instead. * * @deprecated@ @exclude all@ */ http_t * /* O - New HTTP connection */ httpConnect(const char *host, /* I - Host to connect to */ int port) /* I - Port number */ { return (httpConnect2(host, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL)); } /* * 'httpConnect2()' - Connect to a HTTP server. * * @since CUPS 1.7/macOS 10.9@ */ http_t * /* O - New HTTP connection */ httpConnect2( const char *host, /* I - Host to connect to */ int port, /* I - Port number */ http_addrlist_t *addrlist, /* I - List of addresses or @code NULL@ to lookup */ int family, /* I - Address family to use or @code AF_UNSPEC@ for any */ http_encryption_t encryption, /* I - Type of encryption to use */ int blocking, /* I - 1 for blocking connection, 0 for non-blocking */ int msec, /* I - Connection timeout in milliseconds, 0 means don't connect */ int *cancel) /* I - Pointer to "cancel" variable */ { http_t *http; /* New HTTP connection */ DEBUG_printf(("httpConnect2(host=\"%s\", port=%d, addrlist=%p, family=%d, encryption=%d, blocking=%d, msec=%d, cancel=%p)", host, port, (void *)addrlist, family, encryption, blocking, msec, (void *)cancel)); /* * Create the HTTP structure... */ if ((http = http_create(host, port, addrlist, family, encryption, blocking, _HTTP_MODE_CLIENT)) == NULL) return (NULL); /* * Optionally connect to the remote system... */ if (msec == 0 || !httpReconnect2(http, msec, cancel)) return (http); /* * Could not connect to any known address - bail out! */ httpClose(http); return (NULL); } /* * 'httpConnectEncrypt()' - Connect to a HTTP server using encryption. * * This function is now deprecated. Please use the @link httpConnect2@ function * instead. * * @deprecated@ @exclude all@ */ http_t * /* O - New HTTP connection */ httpConnectEncrypt( const char *host, /* I - Host to connect to */ int port, /* I - Port number */ http_encryption_t encryption) /* I - Type of encryption to use */ { DEBUG_printf(("httpConnectEncrypt(host=\"%s\", port=%d, encryption=%d)", host, port, encryption)); return (httpConnect2(host, port, NULL, AF_UNSPEC, encryption, 1, 30000, NULL)); } /* * 'httpDelete()' - Send a DELETE request to the server. */ int /* O - Status of call (0 = success) */ httpDelete(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI to delete */ { return (http_send(http, HTTP_STATE_DELETE, uri)); } /* * '_httpDisconnect()' - Disconnect a HTTP connection. */ void _httpDisconnect(http_t *http) /* I - HTTP connection */ { #ifdef HAVE_TLS if (http->tls) _httpTLSStop(http); #endif /* HAVE_TLS */ httpAddrClose(NULL, http->fd); http->fd = -1; } /* * 'httpEncryption()' - Set the required encryption on the link. */ int /* O - -1 on error, 0 on success */ httpEncryption(http_t *http, /* I - HTTP connection */ http_encryption_t e) /* I - New encryption preference */ { DEBUG_printf(("httpEncryption(http=%p, e=%d)", (void *)http, e)); #ifdef HAVE_TLS if (!http) return (0); if (http->mode == _HTTP_MODE_CLIENT) { http->encryption = e; if ((http->encryption == HTTP_ENCRYPTION_ALWAYS && !http->tls) || (http->encryption == HTTP_ENCRYPTION_NEVER && http->tls)) return (httpReconnect2(http, 30000, NULL)); else if (http->encryption == HTTP_ENCRYPTION_REQUIRED && !http->tls) return (http_tls_upgrade(http)); else return (0); } else { if (e == HTTP_ENCRYPTION_NEVER && http->tls) return (-1); http->encryption = e; if (e != HTTP_ENCRYPTION_IF_REQUESTED && !http->tls) return (_httpTLSStart(http)); else return (0); } #else if (e == HTTP_ENCRYPTION_ALWAYS || e == HTTP_ENCRYPTION_REQUIRED) return (-1); else return (0); #endif /* HAVE_TLS */ } /* * 'httpError()' - Get the last error on a connection. */ int /* O - Error code (errno) value */ httpError(http_t *http) /* I - HTTP connection */ { if (http) return (http->error); else return (EINVAL); } /* * 'httpFieldValue()' - Return the HTTP field enumeration value for a field * name. */ http_field_t /* O - Field index */ httpFieldValue(const char *name) /* I - String name */ { int i; /* Looping var */ for (i = 0; i < HTTP_FIELD_MAX; i ++) if (!_cups_strcasecmp(name, http_fields[i])) return ((http_field_t)i); return (HTTP_FIELD_UNKNOWN); } /* * 'httpFlush()' - Flush data read from a HTTP connection. */ void httpFlush(http_t *http) /* I - HTTP connection */ { char buffer[8192]; /* Junk buffer */ int blocking; /* To block or not to block */ http_state_t oldstate; /* Old state */ DEBUG_printf(("httpFlush(http=%p), state=%s", (void *)http, httpStateString(http->state))); /* * Nothing to do if we are in the "waiting" state... */ if (http->state == HTTP_STATE_WAITING) return; /* * Temporarily set non-blocking mode so we don't get stuck in httpRead()... */ blocking = http->blocking; http->blocking = 0; /* * Read any data we can... */ oldstate = http->state; while (httpRead2(http, buffer, sizeof(buffer)) > 0); /* * Restore blocking and reset the connection if we didn't get all of * the remaining data... */ http->blocking = blocking; if (http->state == oldstate && http->state != HTTP_STATE_WAITING && http->fd >= 0) { /* * Didn't get the data back, so close the current connection. */ #ifdef HAVE_LIBZ if (http->coding) http_content_coding_finish(http); #endif /* HAVE_LIBZ */ DEBUG_puts("1httpFlush: Setting state to HTTP_STATE_WAITING and closing."); http->state = HTTP_STATE_WAITING; #ifdef HAVE_TLS if (http->tls) _httpTLSStop(http); #endif /* HAVE_TLS */ httpAddrClose(NULL, http->fd); http->fd = -1; } } /* * 'httpFlushWrite()' - Flush data written to a HTTP connection. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Bytes written or -1 on error */ httpFlushWrite(http_t *http) /* I - HTTP connection */ { ssize_t bytes; /* Bytes written */ DEBUG_printf(("httpFlushWrite(http=%p) data_encoding=%d", (void *)http, http ? http->data_encoding : 100)); if (!http || !http->wused) { DEBUG_puts(http ? "1httpFlushWrite: Write buffer is empty." : "1httpFlushWrite: No connection."); return (0); } if (http->data_encoding == HTTP_ENCODING_CHUNKED) bytes = http_write_chunk(http, http->wbuffer, (size_t)http->wused); else bytes = http_write(http, http->wbuffer, (size_t)http->wused); http->wused = 0; DEBUG_printf(("1httpFlushWrite: Returning %d, errno=%d.", (int)bytes, errno)); return ((int)bytes); } /* * 'httpFreeCredentials()' - Free an array of credentials. */ void httpFreeCredentials( cups_array_t *credentials) /* I - Array of credentials */ { http_credential_t *credential; /* Credential */ for (credential = (http_credential_t *)cupsArrayFirst(credentials); credential; credential = (http_credential_t *)cupsArrayNext(credentials)) { cupsArrayRemove(credentials, credential); free(credential->data); free(credential); } cupsArrayDelete(credentials); } /* * 'httpGet()' - Send a GET request to the server. */ int /* O - Status of call (0 = success) */ httpGet(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI to get */ { return (http_send(http, HTTP_STATE_GET, uri)); } /* * 'httpGetActivity()' - Get the most recent activity for a connection. * * The return value is the time in seconds of the last read or write. * * @since CUPS 2.0/OS 10.10@ */ time_t /* O - Time of last read or write */ httpGetActivity(http_t *http) /* I - HTTP connection */ { return (http ? http->activity : 0); } /* * 'httpGetAuthString()' - Get the current authorization string. * * The authorization string is set by @link cupsDoAuthentication@ and * @link httpSetAuthString@. Use @link httpGetAuthString@ to retrieve the * string to use with @link httpSetField@ for the * @code HTTP_FIELD_AUTHORIZATION@ value. * * @since CUPS 1.3/macOS 10.5@ */ char * /* O - Authorization string */ httpGetAuthString(http_t *http) /* I - HTTP connection */ { if (http) return (http->authstring); else return (NULL); } /* * 'httpGetBlocking()' - Get the blocking/non-block state of a connection. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 if blocking, 0 if non-blocking */ httpGetBlocking(http_t *http) /* I - HTTP connection */ { return (http ? http->blocking : 0); } /* * 'httpGetContentEncoding()' - Get a common content encoding, if any, between * the client and server. * * This function uses the value of the Accepts-Encoding HTTP header and must be * called after receiving a response from the server or a request from the * client. The value returned can be use in subsequent requests (for clients) * or in the response (for servers) in order to compress the content stream. * * @since CUPS 1.7/macOS 10.9@ */ const char * /* O - Content-Coding value or @code NULL@ for the identity coding. */ httpGetContentEncoding(http_t *http) /* I - HTTP connection */ { #ifdef HAVE_LIBZ if (http && http->fields[HTTP_FIELD_ACCEPT_ENCODING]) { int i; /* Looping var */ char temp[HTTP_MAX_VALUE], /* Copy of Accepts-Encoding value */ *start, /* Start of coding value */ *end; /* End of coding value */ double qvalue; /* "qvalue" for coding */ struct lconv *loc = localeconv(); /* Locale data */ static const char * const codings[] = { /* Supported content codings */ "deflate", "gzip", "x-deflate", "x-gzip" }; strlcpy(temp, http->fields[HTTP_FIELD_ACCEPT_ENCODING], sizeof(temp)); for (start = temp; *start; start = end) { /* * Find the end of the coding name... */ qvalue = 1.0; end = start; while (*end && *end != ';' && *end != ',' && !isspace(*end & 255)) end ++; if (*end == ';') { /* * Grab the qvalue as needed... */ if (!strncmp(end, ";q=", 3)) qvalue = _cupsStrScand(end + 3, NULL, loc); /* * Skip past all attributes... */ *end++ = '\0'; while (*end && *end != ',' && !isspace(*end & 255)) end ++; } else if (*end) *end++ = '\0'; while (*end && isspace(*end & 255)) end ++; /* * Check value if it matches something we support... */ if (qvalue <= 0.0) continue; for (i = 0; i < (int)(sizeof(codings) / sizeof(codings[0])); i ++) if (!strcmp(start, codings[i])) return (codings[i]); } } #endif /* HAVE_LIBZ */ return (NULL); } /* * 'httpGetCookie()' - Get any cookie data from the response. * * @since CUPS 1.1.19/macOS 10.3@ */ const char * /* O - Cookie data or @code NULL@ */ httpGetCookie(http_t *http) /* I - HTTP connection */ { return (http ? http->cookie : NULL); } /* * 'httpGetEncryption()' - Get the current encryption mode of a connection. * * This function returns the encryption mode for the connection. Use the * @link httpIsEncrypted@ function to determine whether a TLS session has * been established. * * @since CUPS 2.0/OS 10.10@ */ http_encryption_t /* O - Current encryption mode */ httpGetEncryption(http_t *http) /* I - HTTP connection */ { return (http ? http->encryption : HTTP_ENCRYPTION_IF_REQUESTED); } /* * 'httpGetExpect()' - Get the value of the Expect header, if any. * * Returns @code HTTP_STATUS_NONE@ if there is no Expect header, otherwise * returns the expected HTTP status code, typically @code HTTP_STATUS_CONTINUE@. * * @since CUPS 1.7/macOS 10.9@ */ http_status_t /* O - Expect: status, if any */ httpGetExpect(http_t *http) /* I - HTTP connection */ { if (!http) return (HTTP_STATUS_ERROR); else return (http->expect); } /* * 'httpGetFd()' - Get the file descriptor associated with a connection. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - File descriptor or -1 if none */ httpGetFd(http_t *http) /* I - HTTP connection */ { return (http ? http->fd : -1); } /* * 'httpGetField()' - Get a field value from a request/response. */ const char * /* O - Field value */ httpGetField(http_t *http, /* I - HTTP connection */ http_field_t field) /* I - Field to get */ { if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX) return (NULL); else if (http->fields[field]) return (http->fields[field]); else return (""); } /* * 'httpGetKeepAlive()' - Get the current Keep-Alive state of the connection. * * @since CUPS 2.0/OS 10.10@ */ http_keepalive_t /* O - Keep-Alive state */ httpGetKeepAlive(http_t *http) /* I - HTTP connection */ { return (http ? http->keep_alive : HTTP_KEEPALIVE_OFF); } /* * 'httpGetLength()' - Get the amount of data remaining from the * content-length or transfer-encoding fields. * * This function is deprecated and will not return lengths larger than * 2^31 - 1; use httpGetLength2() instead. * * @deprecated@ @exclude all@ */ int /* O - Content length */ httpGetLength(http_t *http) /* I - HTTP connection */ { /* * Get the read content length and return the 32-bit value. */ if (http) { httpGetLength2(http); return (http->_data_remaining); } else return (-1); } /* * 'httpGetLength2()' - Get the amount of data remaining from the * content-length or transfer-encoding fields. * * This function returns the complete content length, even for * content larger than 2^31 - 1. * * @since CUPS 1.2/macOS 10.5@ */ off_t /* O - Content length */ httpGetLength2(http_t *http) /* I - HTTP connection */ { off_t remaining; /* Remaining length */ DEBUG_printf(("2httpGetLength2(http=%p), state=%s", (void *)http, http ? httpStateString(http->state) : "NONE")); if (!http) return (-1); if (http->fields[HTTP_FIELD_TRANSFER_ENCODING] && !_cups_strcasecmp(http->fields[HTTP_FIELD_TRANSFER_ENCODING], "chunked")) { DEBUG_puts("4httpGetLength2: chunked request!"); remaining = 0; } else { /* * The following is a hack for HTTP servers that don't send a * Content-Length or Transfer-Encoding field... * * If there is no Content-Length then the connection must close * after the transfer is complete... */ if (!http->fields[HTTP_FIELD_CONTENT_LENGTH] || !http->fields[HTTP_FIELD_CONTENT_LENGTH][0]) { /* * Default content length is 0 for errors and certain types of operations, * and 2^31-1 for other successful requests... */ if (http->status >= HTTP_STATUS_MULTIPLE_CHOICES || http->state == HTTP_STATE_OPTIONS || (http->state == HTTP_STATE_GET && http->mode == _HTTP_MODE_SERVER) || http->state == HTTP_STATE_HEAD || (http->state == HTTP_STATE_PUT && http->mode == _HTTP_MODE_CLIENT) || http->state == HTTP_STATE_DELETE || http->state == HTTP_STATE_TRACE || http->state == HTTP_STATE_CONNECT) remaining = 0; else remaining = 2147483647; } else if ((remaining = strtoll(http->fields[HTTP_FIELD_CONTENT_LENGTH], NULL, 10)) < 0) remaining = -1; DEBUG_printf(("4httpGetLength2: content_length=" CUPS_LLFMT, CUPS_LLCAST remaining)); } return (remaining); } /* * 'httpGetPending()' - Get the number of bytes that are buffered for writing. * * @since CUPS 2.0/OS 10.10@ */ size_t /* O - Number of bytes buffered */ httpGetPending(http_t *http) /* I - HTTP connection */ { return (http ? (size_t)http->wused : 0); } /* * 'httpGetReady()' - Get the number of bytes that can be read without blocking. * * @since CUPS 2.0/OS 10.10@ */ size_t /* O - Number of bytes available */ httpGetReady(http_t *http) /* I - HTTP connection */ { if (!http) return (0); else if (http->used > 0) return ((size_t)http->used); #ifdef HAVE_TLS else if (http->tls) return (_httpTLSPending(http)); #endif /* HAVE_TLS */ return (0); } /* * 'httpGetRemaining()' - Get the number of remaining bytes in the message * body or current chunk. * * The @link httpIsChunked@ function can be used to determine whether the * message body is chunked or fixed-length. * * @since CUPS 2.0/OS 10.10@ */ size_t /* O - Remaining bytes */ httpGetRemaining(http_t *http) /* I - HTTP connection */ { return (http ? (size_t)http->data_remaining : 0); } /* * 'httpGets()' - Get a line of text from a HTTP connection. */ char * /* O - Line or @code NULL@ */ httpGets(char *line, /* I - Line to read into */ int length, /* I - Max length of buffer */ http_t *http) /* I - HTTP connection */ { char *lineptr, /* Pointer into line */ *lineend, /* End of line */ *bufptr, /* Pointer into input buffer */ *bufend; /* Pointer to end of buffer */ ssize_t bytes; /* Number of bytes read */ int eol; /* End-of-line? */ DEBUG_printf(("2httpGets(line=%p, length=%d, http=%p)", (void *)line, length, (void *)http)); if (!http || !line || length <= 1) return (NULL); /* * Read a line from the buffer... */ http->error = 0; lineptr = line; lineend = line + length - 1; eol = 0; while (lineptr < lineend) { /* * Pre-load the buffer as needed... */ #ifdef _WIN32 WSASetLastError(0); #else errno = 0; #endif /* _WIN32 */ while (http->used == 0) { /* * No newline; see if there is more data to be read... */ while (!_httpWait(http, http->wait_value, 1)) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; DEBUG_puts("3httpGets: Timed out!"); #ifdef _WIN32 http->error = WSAETIMEDOUT; #else http->error = ETIMEDOUT; #endif /* _WIN32 */ return (NULL); } bytes = http_read(http, http->buffer + http->used, (size_t)(HTTP_MAX_BUFFER - http->used)); DEBUG_printf(("4httpGets: read " CUPS_LLFMT " bytes.", CUPS_LLCAST bytes)); if (bytes < 0) { /* * Nope, can't get a line this time... */ #ifdef _WIN32 DEBUG_printf(("3httpGets: recv() error %d!", WSAGetLastError())); if (WSAGetLastError() == WSAEINTR) continue; else if (WSAGetLastError() == WSAEWOULDBLOCK) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; http->error = WSAGetLastError(); } else if (WSAGetLastError() != http->error) { http->error = WSAGetLastError(); continue; } #else DEBUG_printf(("3httpGets: recv() error %d!", errno)); if (errno == EINTR) continue; else if (errno == EWOULDBLOCK || errno == EAGAIN) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; else if (!http->timeout_cb && errno == EAGAIN) continue; http->error = errno; } else if (errno != http->error) { http->error = errno; continue; } #endif /* _WIN32 */ return (NULL); } else if (bytes == 0) { http->error = EPIPE; return (NULL); } /* * Yup, update the amount used... */ http->used += (int)bytes; } /* * Now copy as much of the current line as possible... */ for (bufptr = http->buffer, bufend = http->buffer + http->used; lineptr < lineend && bufptr < bufend;) { if (*bufptr == 0x0a) { eol = 1; bufptr ++; break; } else if (*bufptr == 0x0d) bufptr ++; else *lineptr++ = *bufptr++; } http->used -= (int)(bufptr - http->buffer); if (http->used > 0) memmove(http->buffer, bufptr, (size_t)http->used); if (eol) { /* * End of line... */ http->activity = time(NULL); *lineptr = '\0'; DEBUG_printf(("3httpGets: Returning \"%s\"", line)); return (line); } } DEBUG_puts("3httpGets: No new line available!"); return (NULL); } /* * 'httpGetState()' - Get the current state of the HTTP request. */ http_state_t /* O - HTTP state */ httpGetState(http_t *http) /* I - HTTP connection */ { return (http ? http->state : HTTP_STATE_ERROR); } /* * 'httpGetStatus()' - Get the status of the last HTTP request. * * @since CUPS 1.2/macOS 10.5@ */ http_status_t /* O - HTTP status */ httpGetStatus(http_t *http) /* I - HTTP connection */ { return (http ? http->status : HTTP_STATUS_ERROR); } /* * 'httpGetSubField()' - Get a sub-field value. * * @deprecated@ @exclude all@ */ char * /* O - Value or @code NULL@ */ httpGetSubField(http_t *http, /* I - HTTP connection */ http_field_t field, /* I - Field index */ const char *name, /* I - Name of sub-field */ char *value) /* O - Value string */ { return (httpGetSubField2(http, field, name, value, HTTP_MAX_VALUE)); } /* * 'httpGetSubField2()' - Get a sub-field value. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Value or @code NULL@ */ httpGetSubField2(http_t *http, /* I - HTTP connection */ http_field_t field, /* I - Field index */ const char *name, /* I - Name of sub-field */ char *value, /* O - Value string */ int valuelen) /* I - Size of value buffer */ { const char *fptr; /* Pointer into field */ char temp[HTTP_MAX_VALUE], /* Temporary buffer for name */ *ptr, /* Pointer into string buffer */ *end; /* End of value buffer */ DEBUG_printf(("2httpGetSubField2(http=%p, field=%d, name=\"%s\", value=%p, valuelen=%d)", (void *)http, field, name, (void *)value, valuelen)); if (value) *value = '\0'; if (!http || !name || !value || valuelen < 2 || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX || !http->fields[field]) return (NULL); end = value + valuelen - 1; for (fptr = http->fields[field]; *fptr;) { /* * Skip leading whitespace... */ while (_cups_isspace(*fptr)) fptr ++; if (*fptr == ',') { fptr ++; continue; } /* * Get the sub-field name... */ for (ptr = temp; *fptr && *fptr != '=' && !_cups_isspace(*fptr) && ptr < (temp + sizeof(temp) - 1); *ptr++ = *fptr++); *ptr = '\0'; DEBUG_printf(("4httpGetSubField2: name=\"%s\"", temp)); /* * Skip trailing chars up to the '='... */ while (_cups_isspace(*fptr)) fptr ++; if (!*fptr) break; if (*fptr != '=') continue; /* * Skip = and leading whitespace... */ fptr ++; while (_cups_isspace(*fptr)) fptr ++; if (*fptr == '\"') { /* * Read quoted string... */ for (ptr = value, fptr ++; *fptr && *fptr != '\"' && ptr < end; *ptr++ = *fptr++); *ptr = '\0'; while (*fptr && *fptr != '\"') fptr ++; if (*fptr) fptr ++; } else { /* * Read unquoted string... */ for (ptr = value; *fptr && !_cups_isspace(*fptr) && *fptr != ',' && ptr < end; *ptr++ = *fptr++); *ptr = '\0'; while (*fptr && !_cups_isspace(*fptr) && *fptr != ',') fptr ++; } DEBUG_printf(("4httpGetSubField2: value=\"%s\"", value)); /* * See if this is the one... */ if (!strcmp(name, temp)) { DEBUG_printf(("3httpGetSubField2: Returning \"%s\"", value)); return (value); } } value[0] = '\0'; DEBUG_puts("3httpGetSubField2: Returning NULL"); return (NULL); } /* * 'httpGetVersion()' - Get the HTTP version at the other end. */ http_version_t /* O - Version number */ httpGetVersion(http_t *http) /* I - HTTP connection */ { return (http ? http->version : HTTP_VERSION_1_0); } /* * 'httpHead()' - Send a HEAD request to the server. */ int /* O - Status of call (0 = success) */ httpHead(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI for head */ { DEBUG_printf(("httpHead(http=%p, uri=\"%s\")", (void *)http, uri)); return (http_send(http, HTTP_STATE_HEAD, uri)); } /* * 'httpInitialize()' - Initialize the HTTP interface library and set the * default HTTP proxy (if any). */ void httpInitialize(void) { static int initialized = 0; /* Have we been called before? */ #ifdef _WIN32 WSADATA winsockdata; /* WinSock data */ #endif /* _WIN32 */ _cupsGlobalLock(); if (initialized) { _cupsGlobalUnlock(); return; } #ifdef _WIN32 WSAStartup(MAKEWORD(2,2), &winsockdata); #elif !defined(SO_NOSIGPIPE) /* * Ignore SIGPIPE signals... */ # ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); # elif defined(HAVE_SIGACTION) struct sigaction action; /* POSIX sigaction data */ memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); # else signal(SIGPIPE, SIG_IGN); # endif /* !SO_NOSIGPIPE */ #endif /* _WIN32 */ # ifdef HAVE_TLS _httpTLSInitialize(); # endif /* HAVE_TLS */ initialized = 1; _cupsGlobalUnlock(); } /* * 'httpIsChunked()' - Report whether a message body is chunked. * * This function returns non-zero if the message body is composed of * variable-length chunks. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 if chunked, 0 if not */ httpIsChunked(http_t *http) /* I - HTTP connection */ { return (http ? http->data_encoding == HTTP_ENCODING_CHUNKED : 0); } /* * 'httpIsEncrypted()' - Report whether a connection is encrypted. * * This function returns non-zero if the connection is currently encrypted. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 1 if encrypted, 0 if not */ httpIsEncrypted(http_t *http) /* I - HTTP connection */ { return (http ? http->tls != NULL : 0); } /* * 'httpOptions()' - Send an OPTIONS request to the server. */ int /* O - Status of call (0 = success) */ httpOptions(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI for options */ { return (http_send(http, HTTP_STATE_OPTIONS, uri)); } /* * 'httpPeek()' - Peek at data from a HTTP connection. * * This function copies available data from the given HTTP connection, reading * a buffer as needed. The data is still available for reading using * @link httpRead2@. * * For non-blocking connections the usual timeouts apply. * * @since CUPS 1.7/macOS 10.9@ */ ssize_t /* O - Number of bytes copied */ httpPeek(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer for data */ size_t length) /* I - Maximum number of bytes */ { ssize_t bytes; /* Bytes read */ char len[32]; /* Length string */ DEBUG_printf(("httpPeek(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); if (http == NULL || buffer == NULL) return (-1); http->activity = time(NULL); http->error = 0; if (length <= 0) return (0); if (http->data_encoding == HTTP_ENCODING_CHUNKED && http->data_remaining <= 0) { DEBUG_puts("2httpPeek: Getting chunk length..."); if (httpGets(len, sizeof(len), http) == NULL) { DEBUG_puts("1httpPeek: Could not get length!"); return (0); } if (!len[0]) { DEBUG_puts("1httpPeek: Blank chunk length, trying again..."); if (!httpGets(len, sizeof(len), http)) { DEBUG_puts("1httpPeek: Could not get chunk length."); return (0); } } http->data_remaining = strtoll(len, NULL, 16); if (http->data_remaining < 0) { DEBUG_puts("1httpPeek: Negative chunk length!"); return (0); } } DEBUG_printf(("2httpPeek: data_remaining=" CUPS_LLFMT, CUPS_LLCAST http->data_remaining)); if (http->data_remaining <= 0 && http->data_encoding != HTTP_ENCODING_FIELDS) { /* * A zero-length chunk ends a transfer; unless we are reading POST * data, go idle... */ #ifdef HAVE_LIBZ if (http->coding >= _HTTP_CODING_GUNZIP) http_content_coding_finish(http); #endif /* HAVE_LIBZ */ if (http->data_encoding == HTTP_ENCODING_CHUNKED) httpGets(len, sizeof(len), http); if (http->state == HTTP_STATE_POST_RECV) http->state ++; else http->state = HTTP_STATE_STATUS; DEBUG_printf(("1httpPeek: 0-length chunk, set state to %s.", httpStateString(http->state))); /* * Prevent future reads for this request... */ http->data_encoding = HTTP_ENCODING_FIELDS; return (0); } else if (length > (size_t)http->data_remaining) length = (size_t)http->data_remaining; #ifdef HAVE_LIBZ if (http->used == 0 && (http->coding == _HTTP_CODING_IDENTITY || (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0))) #else if (http->used == 0) #endif /* HAVE_LIBZ */ { /* * Buffer small reads for better performance... */ ssize_t buflen; /* Length of read for buffer */ if (!http->blocking) { while (!httpWait(http, http->wait_value)) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; return (0); } } if ((size_t)http->data_remaining > sizeof(http->buffer)) buflen = sizeof(http->buffer); else buflen = (ssize_t)http->data_remaining; DEBUG_printf(("2httpPeek: Reading %d bytes into buffer.", (int)buflen)); bytes = http_read(http, http->buffer, (size_t)buflen); DEBUG_printf(("2httpPeek: Read " CUPS_LLFMT " bytes into buffer.", CUPS_LLCAST bytes)); if (bytes > 0) { #ifdef DEBUG http_debug_hex("httpPeek", http->buffer, (int)bytes); #endif /* DEBUG */ http->used = (int)bytes; } } #ifdef HAVE_LIBZ if (http->coding >= _HTTP_CODING_GUNZIP) { # ifdef HAVE_INFLATECOPY int zerr; /* Decompressor error */ z_stream stream; /* Copy of decompressor stream */ if (http->used > 0 && ((z_stream *)http->stream)->avail_in < HTTP_MAX_BUFFER) { size_t buflen = HTTP_MAX_BUFFER - ((z_stream *)http->stream)->avail_in; /* Number of bytes to copy */ if (((z_stream *)http->stream)->avail_in > 0 && ((z_stream *)http->stream)->next_in > http->sbuffer) memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); ((z_stream *)http->stream)->next_in = http->sbuffer; if (buflen > (size_t)http->data_remaining) buflen = (size_t)http->data_remaining; if (buflen > (size_t)http->used) buflen = (size_t)http->used; DEBUG_printf(("1httpPeek: Copying %d more bytes of data into " "decompression buffer.", (int)buflen)); memcpy(http->sbuffer + ((z_stream *)http->stream)->avail_in, http->buffer, buflen); ((z_stream *)http->stream)->avail_in += buflen; http->used -= (int)buflen; http->data_remaining -= (off_t)buflen; if (http->used > 0) memmove(http->buffer, http->buffer + buflen, (size_t)http->used); } DEBUG_printf(("2httpPeek: length=%d, avail_in=%d", (int)length, (int)((z_stream *)http->stream)->avail_in)); if (inflateCopy(&stream, (z_stream *)http->stream) != Z_OK) { DEBUG_puts("2httpPeek: Unable to copy decompressor stream."); http->error = ENOMEM; return (-1); } stream.next_out = (Bytef *)buffer; stream.avail_out = (uInt)length; zerr = inflate(&stream, Z_SYNC_FLUSH); inflateEnd(&stream); if (zerr < Z_OK) { DEBUG_printf(("2httpPeek: zerr=%d", zerr)); #ifdef DEBUG http_debug_hex("2httpPeek", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); #endif /* DEBUG */ http->error = EIO; return (-1); } bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); # else DEBUG_puts("2httpPeek: No inflateCopy on this platform, httpPeek does not " "work with compressed streams."); return (-1); # endif /* HAVE_INFLATECOPY */ } else #endif /* HAVE_LIBZ */ if (http->used > 0) { if (length > (size_t)http->used) length = (size_t)http->used; bytes = (ssize_t)length; DEBUG_printf(("2httpPeek: grabbing %d bytes from input buffer...", (int)bytes)); memcpy(buffer, http->buffer, length); } else bytes = 0; if (bytes < 0) { #ifdef _WIN32 if (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEWOULDBLOCK) bytes = 0; else http->error = WSAGetLastError(); #else if (errno == EINTR || errno == EAGAIN) bytes = 0; else http->error = errno; #endif /* _WIN32 */ } else if (bytes == 0) { http->error = EPIPE; return (0); } return (bytes); } /* * 'httpPost()' - Send a POST request to the server. */ int /* O - Status of call (0 = success) */ httpPost(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI for post */ { return (http_send(http, HTTP_STATE_POST, uri)); } /* * 'httpPrintf()' - Print a formatted string to a HTTP connection. * * @private@ */ int /* O - Number of bytes written */ httpPrintf(http_t *http, /* I - HTTP connection */ const char *format, /* I - printf-style format string */ ...) /* I - Additional args as needed */ { ssize_t bytes; /* Number of bytes to write */ char buf[65536]; /* Buffer for formatted string */ va_list ap; /* Variable argument pointer */ DEBUG_printf(("2httpPrintf(http=%p, format=\"%s\", ...)", (void *)http, format)); va_start(ap, format); bytes = vsnprintf(buf, sizeof(buf), format, ap); va_end(ap); DEBUG_printf(("3httpPrintf: (" CUPS_LLFMT " bytes) %s", CUPS_LLCAST bytes, buf)); if (bytes > (ssize_t)(sizeof(buf) - 1)) { http->error = ENOMEM; return (-1); } else if (http->data_encoding == HTTP_ENCODING_FIELDS) return ((int)httpWrite2(http, buf, (size_t)bytes)); else { if (http->wused) { DEBUG_puts("4httpPrintf: flushing existing data..."); if (httpFlushWrite(http) < 0) return (-1); } return ((int)http_write(http, buf, (size_t)bytes)); } } /* * 'httpPut()' - Send a PUT request to the server. */ int /* O - Status of call (0 = success) */ httpPut(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI to put */ { DEBUG_printf(("httpPut(http=%p, uri=\"%s\")", (void *)http, uri)); return (http_send(http, HTTP_STATE_PUT, uri)); } /* * 'httpRead()' - Read data from a HTTP connection. * * This function is deprecated. Use the httpRead2() function which can * read more than 2GB of data. * * @deprecated@ @exclude all@ */ int /* O - Number of bytes read */ httpRead(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer for data */ int length) /* I - Maximum number of bytes */ { return ((int)httpRead2(http, buffer, (size_t)length)); } /* * 'httpRead2()' - Read data from a HTTP connection. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Number of bytes read */ httpRead2(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer for data */ size_t length) /* I - Maximum number of bytes */ { ssize_t bytes; /* Bytes read */ #ifdef HAVE_LIBZ DEBUG_printf(("httpRead2(http=%p, buffer=%p, length=" CUPS_LLFMT ") coding=%d data_encoding=%d data_remaining=" CUPS_LLFMT, (void *)http, (void *)buffer, CUPS_LLCAST length, http ? http->coding : 0, http ? http->data_encoding : 0, CUPS_LLCAST (http ? http->data_remaining : -1))); #else DEBUG_printf(("httpRead2(http=%p, buffer=%p, length=" CUPS_LLFMT ") data_encoding=%d data_remaining=" CUPS_LLFMT, (void *)http, (void *)buffer, CUPS_LLCAST length, http ? http->data_encoding : 0, CUPS_LLCAST (http ? http->data_remaining : -1))); #endif /* HAVE_LIBZ */ if (http == NULL || buffer == NULL) return (-1); http->activity = time(NULL); http->error = 0; if (length <= 0) return (0); #ifdef HAVE_LIBZ if (http->coding >= _HTTP_CODING_GUNZIP) { do { if (((z_stream *)http->stream)->avail_in > 0) { int zerr; /* Decompressor error */ DEBUG_printf(("2httpRead2: avail_in=%d, avail_out=%d", (int)((z_stream *)http->stream)->avail_in, (int)length)); ((z_stream *)http->stream)->next_out = (Bytef *)buffer; ((z_stream *)http->stream)->avail_out = (uInt)length; if ((zerr = inflate((z_stream *)http->stream, Z_SYNC_FLUSH)) < Z_OK) { DEBUG_printf(("2httpRead2: zerr=%d", zerr)); #ifdef DEBUG http_debug_hex("2httpRead2", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); #endif /* DEBUG */ http->error = EIO; return (-1); } bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); DEBUG_printf(("2httpRead2: avail_in=%d, avail_out=%d, bytes=%d", ((z_stream *)http->stream)->avail_in, ((z_stream *)http->stream)->avail_out, (int)bytes)); } else bytes = 0; if (bytes == 0) { ssize_t buflen = HTTP_MAX_BUFFER - (ssize_t)((z_stream *)http->stream)->avail_in; /* Additional bytes for buffer */ if (buflen > 0) { if (((z_stream *)http->stream)->avail_in > 0 && ((z_stream *)http->stream)->next_in > http->sbuffer) memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); ((z_stream *)http->stream)->next_in = http->sbuffer; DEBUG_printf(("1httpRead2: Reading up to %d more bytes of data into " "decompression buffer.", (int)buflen)); if (http->data_remaining > 0) { if (buflen > http->data_remaining) buflen = (ssize_t)http->data_remaining; bytes = http_read_buffered(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (size_t)buflen); } else if (http->data_encoding == HTTP_ENCODING_CHUNKED) bytes = http_read_chunk(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (size_t)buflen); else bytes = 0; if (bytes < 0) return (bytes); else if (bytes == 0) break; DEBUG_printf(("1httpRead2: Adding " CUPS_LLFMT " bytes to " "decompression buffer.", CUPS_LLCAST bytes)); http->data_remaining -= bytes; ((z_stream *)http->stream)->avail_in += (uInt)bytes; if (http->data_remaining <= 0 && http->data_encoding == HTTP_ENCODING_CHUNKED) { /* * Read the trailing blank line now... */ char len[32]; /* Length string */ httpGets(len, sizeof(len), http); } bytes = 0; } else return (0); } } while (bytes == 0); } else #endif /* HAVE_LIBZ */ if (http->data_remaining == 0 && http->data_encoding == HTTP_ENCODING_CHUNKED) { if ((bytes = http_read_chunk(http, buffer, length)) > 0) { http->data_remaining -= bytes; if (http->data_remaining <= 0) { /* * Read the trailing blank line now... */ char len[32]; /* Length string */ httpGets(len, sizeof(len), http); } } } else if (http->data_remaining <= 0) { /* * No more data to read... */ return (0); } else { DEBUG_printf(("1httpRead2: Reading up to %d bytes into buffer.", (int)length)); if (length > (size_t)http->data_remaining) length = (size_t)http->data_remaining; if ((bytes = http_read_buffered(http, buffer, length)) > 0) { http->data_remaining -= bytes; if (http->data_remaining <= 0 && http->data_encoding == HTTP_ENCODING_CHUNKED) { /* * Read the trailing blank line now... */ char len[32]; /* Length string */ httpGets(len, sizeof(len), http); } } } if ( #ifdef HAVE_LIBZ (http->coding == _HTTP_CODING_IDENTITY || (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0)) && #endif /* HAVE_LIBZ */ ((http->data_remaining <= 0 && http->data_encoding == HTTP_ENCODING_LENGTH) || (http->data_encoding == HTTP_ENCODING_CHUNKED && bytes == 0))) { #ifdef HAVE_LIBZ if (http->coding >= _HTTP_CODING_GUNZIP) http_content_coding_finish(http); #endif /* HAVE_LIBZ */ if (http->state == HTTP_STATE_POST_RECV) http->state ++; else if (http->state == HTTP_STATE_GET_SEND || http->state == HTTP_STATE_POST_SEND) http->state = HTTP_STATE_WAITING; else http->state = HTTP_STATE_STATUS; DEBUG_printf(("1httpRead2: End of content, set state to %s.", httpStateString(http->state))); } return (bytes); } /* * 'httpReadRequest()' - Read a HTTP request from a connection. * * @since CUPS 1.7/macOS 10.9@ */ http_state_t /* O - New state of connection */ httpReadRequest(http_t *http, /* I - HTTP connection */ char *uri, /* I - URI buffer */ size_t urilen) /* I - Size of URI buffer */ { char line[4096], /* HTTP request line */ *req_method, /* HTTP request method */ *req_uri, /* HTTP request URI */ *req_version; /* HTTP request version number string */ /* * Range check input... */ DEBUG_printf(("httpReadRequest(http=%p, uri=%p, urilen=" CUPS_LLFMT ")", (void *)http, (void *)uri, CUPS_LLCAST urilen)); if (uri) *uri = '\0'; if (!http || !uri || urilen < 1) { DEBUG_puts("1httpReadRequest: Bad arguments, returning HTTP_STATE_ERROR."); return (HTTP_STATE_ERROR); } else if (http->state != HTTP_STATE_WAITING) { DEBUG_printf(("1httpReadRequest: Bad state %s, returning HTTP_STATE_ERROR.", httpStateString(http->state))); return (HTTP_STATE_ERROR); } /* * Reset state... */ httpClearFields(http); http->activity = time(NULL); http->data_encoding = HTTP_ENCODING_FIELDS; http->data_remaining = 0; http->keep_alive = HTTP_KEEPALIVE_OFF; http->status = HTTP_STATUS_OK; http->version = HTTP_VERSION_1_1; /* * Read a line from the socket... */ if (!httpGets(line, sizeof(line), http)) { DEBUG_puts("1httpReadRequest: Unable to read, returning HTTP_STATE_ERROR"); return (HTTP_STATE_ERROR); } if (!line[0]) { DEBUG_puts("1httpReadRequest: Blank line, returning HTTP_STATE_WAITING"); return (HTTP_STATE_WAITING); } DEBUG_printf(("1httpReadRequest: %s", line)); /* * Parse it... */ req_method = line; req_uri = line; while (*req_uri && !isspace(*req_uri & 255)) req_uri ++; if (!*req_uri) { DEBUG_puts("1httpReadRequest: No request URI."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No request URI."), 1); return (HTTP_STATE_ERROR); } *req_uri++ = '\0'; while (*req_uri && isspace(*req_uri & 255)) req_uri ++; req_version = req_uri; while (*req_version && !isspace(*req_version & 255)) req_version ++; if (!*req_version) { DEBUG_puts("1httpReadRequest: No request protocol version."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("No request protocol version."), 1); return (HTTP_STATE_ERROR); } *req_version++ = '\0'; while (*req_version && isspace(*req_version & 255)) req_version ++; /* * Validate... */ if (!strcmp(req_method, "OPTIONS")) http->state = HTTP_STATE_OPTIONS; else if (!strcmp(req_method, "GET")) http->state = HTTP_STATE_GET; else if (!strcmp(req_method, "HEAD")) http->state = HTTP_STATE_HEAD; else if (!strcmp(req_method, "POST")) http->state = HTTP_STATE_POST; else if (!strcmp(req_method, "PUT")) http->state = HTTP_STATE_PUT; else if (!strcmp(req_method, "DELETE")) http->state = HTTP_STATE_DELETE; else if (!strcmp(req_method, "TRACE")) http->state = HTTP_STATE_TRACE; else if (!strcmp(req_method, "CONNECT")) http->state = HTTP_STATE_CONNECT; else { DEBUG_printf(("1httpReadRequest: Unknown method \"%s\".", req_method)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown request method."), 1); return (HTTP_STATE_UNKNOWN_METHOD); } DEBUG_printf(("1httpReadRequest: Set state to %s.", httpStateString(http->state))); if (!strcmp(req_version, "HTTP/1.0")) { http->version = HTTP_VERSION_1_0; http->keep_alive = HTTP_KEEPALIVE_OFF; } else if (!strcmp(req_version, "HTTP/1.1")) { http->version = HTTP_VERSION_1_1; http->keep_alive = HTTP_KEEPALIVE_ON; } else { DEBUG_printf(("1httpReadRequest: Unknown version \"%s\".", req_version)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown request version."), 1); return (HTTP_STATE_UNKNOWN_VERSION); } DEBUG_printf(("1httpReadRequest: URI is \"%s\".", req_uri)); strlcpy(uri, req_uri, urilen); return (http->state); } /* * 'httpReconnect()' - Reconnect to a HTTP server. * * This function is deprecated. Please use the @link httpReconnect2@ function * instead. * * @deprecated@ @exclude all@ */ int /* O - 0 on success, non-zero on failure */ httpReconnect(http_t *http) /* I - HTTP connection */ { DEBUG_printf(("httpReconnect(http=%p)", (void *)http)); return (httpReconnect2(http, 30000, NULL)); } /* * 'httpReconnect2()' - Reconnect to a HTTP server with timeout and optional * cancel. */ int /* O - 0 on success, non-zero on failure */ httpReconnect2(http_t *http, /* I - HTTP connection */ int msec, /* I - Timeout in milliseconds */ int *cancel) /* I - Pointer to "cancel" variable */ { http_addrlist_t *addr; /* Connected address */ #ifdef DEBUG http_addrlist_t *current; /* Current address */ char temp[256]; /* Temporary address string */ #endif /* DEBUG */ DEBUG_printf(("httpReconnect2(http=%p, msec=%d, cancel=%p)", (void *)http, msec, (void *)cancel)); if (!http) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (-1); } #ifdef HAVE_TLS if (http->tls) { DEBUG_puts("2httpReconnect2: Shutting down SSL/TLS..."); _httpTLSStop(http); } #endif /* HAVE_TLS */ /* * Close any previously open socket... */ if (http->fd >= 0) { DEBUG_printf(("2httpReconnect2: Closing socket %d...", http->fd)); httpAddrClose(NULL, http->fd); http->fd = -1; } /* * Reset all state (except fields, which may be reused)... */ http->state = HTTP_STATE_WAITING; http->version = HTTP_VERSION_1_1; http->keep_alive = HTTP_KEEPALIVE_OFF; memset(&http->_hostaddr, 0, sizeof(http->_hostaddr)); http->data_encoding = HTTP_ENCODING_FIELDS; http->_data_remaining = 0; http->used = 0; http->data_remaining = 0; http->hostaddr = NULL; http->wused = 0; /* * Connect to the server... */ #ifdef DEBUG for (current = http->addrlist; current; current = current->next) DEBUG_printf(("2httpReconnect2: Address %s:%d", httpAddrString(&(current->addr), temp, sizeof(temp)), httpAddrPort(&(current->addr)))); #endif /* DEBUG */ if ((addr = httpAddrConnect2(http->addrlist, &(http->fd), msec, cancel)) == NULL) { /* * Unable to connect... */ #ifdef _WIN32 http->error = WSAGetLastError(); #else http->error = errno; #endif /* _WIN32 */ http->status = HTTP_STATUS_ERROR; DEBUG_printf(("1httpReconnect2: httpAddrConnect failed: %s", strerror(http->error))); return (-1); } DEBUG_printf(("2httpReconnect2: New socket=%d", http->fd)); if (http->timeout_value > 0) http_set_timeout(http->fd, http->timeout_value); http->hostaddr = &(addr->addr); http->error = 0; #ifdef HAVE_TLS if (http->encryption == HTTP_ENCRYPTION_ALWAYS) { /* * Always do encryption via SSL. */ if (_httpTLSStart(http) != 0) { httpAddrClose(NULL, http->fd); http->fd = -1; return (-1); } } else if (http->encryption == HTTP_ENCRYPTION_REQUIRED && !http->tls_upgrade) return (http_tls_upgrade(http)); #endif /* HAVE_TLS */ DEBUG_printf(("1httpReconnect2: Connected to %s:%d...", httpAddrString(http->hostaddr, temp, sizeof(temp)), httpAddrPort(http->hostaddr))); return (0); } /* * 'httpSetAuthString()' - Set the current authorization string. * * This function just stores a copy of the current authorization string in * the HTTP connection object. You must still call @link httpSetField@ to set * @code HTTP_FIELD_AUTHORIZATION@ prior to issuing a HTTP request using * @link httpGet@, @link httpHead@, @link httpOptions@, @link httpPost@, or * @link httpPut@. * * @since CUPS 1.3/macOS 10.5@ */ void httpSetAuthString(http_t *http, /* I - HTTP connection */ const char *scheme, /* I - Auth scheme (NULL to clear it) */ const char *data) /* I - Auth data (NULL for none) */ { /* * Range check input... */ if (!http) return; if (http->authstring && http->authstring != http->_authstring) free(http->authstring); http->authstring = http->_authstring; if (scheme) { /* * Set the current authorization string... */ size_t len = strlen(scheme) + (data ? strlen(data) + 1 : 0) + 1; char *temp; if (len > sizeof(http->_authstring)) { if ((temp = malloc(len)) == NULL) len = sizeof(http->_authstring); else http->authstring = temp; } if (data) snprintf(http->authstring, len, "%s %s", scheme, data); else strlcpy(http->authstring, scheme, len); } else { /* * Clear the current authorization string... */ http->_authstring[0] = '\0'; } } /* * 'httpSetCredentials()' - Set the credentials associated with an encrypted * connection. * * @since CUPS 1.5/macOS 10.7@ */ int /* O - Status of call (0 = success) */ httpSetCredentials(http_t *http, /* I - HTTP connection */ cups_array_t *credentials) /* I - Array of credentials */ { if (!http || cupsArrayCount(credentials) < 1) return (-1); #ifdef HAVE_TLS _httpFreeCredentials(http->tls_credentials); http->tls_credentials = _httpCreateCredentials(credentials); #endif /* HAVE_TLS */ return (http->tls_credentials ? 0 : -1); } /* * 'httpSetCookie()' - Set the cookie value(s). * * @since CUPS 1.1.19/macOS 10.3@ */ void httpSetCookie(http_t *http, /* I - Connection */ const char *cookie) /* I - Cookie string */ { if (!http) return; if (http->cookie) free(http->cookie); if (cookie) http->cookie = strdup(cookie); else http->cookie = NULL; } /* * 'httpSetDefaultField()' - Set the default value of an HTTP header. * * Currently only @code HTTP_FIELD_ACCEPT_ENCODING@, @code HTTP_FIELD_SERVER@, * and @code HTTP_FIELD_USER_AGENT@ can be set. * * @since CUPS 1.7/macOS 10.9@ */ void httpSetDefaultField(http_t *http, /* I - HTTP connection */ http_field_t field, /* I - Field index */ const char *value)/* I - Value */ { DEBUG_printf(("httpSetDefaultField(http=%p, field=%d(%s), value=\"%s\")", (void *)http, field, http_fields[field], value)); if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX) return; if (http->default_fields[field]) free(http->default_fields[field]); http->default_fields[field] = value ? strdup(value) : NULL; } /* * 'httpSetExpect()' - Set the Expect: header in a request. * * Currently only @code HTTP_STATUS_CONTINUE@ is supported for the "expect" * argument. * * @since CUPS 1.2/macOS 10.5@ */ void httpSetExpect(http_t *http, /* I - HTTP connection */ http_status_t expect) /* I - HTTP status to expect (@code HTTP_STATUS_CONTINUE@) */ { DEBUG_printf(("httpSetExpect(http=%p, expect=%d)", (void *)http, expect)); if (http) http->expect = expect; } /* * 'httpSetField()' - Set the value of an HTTP header. */ void httpSetField(http_t *http, /* I - HTTP connection */ http_field_t field, /* I - Field index */ const char *value) /* I - Value */ { DEBUG_printf(("httpSetField(http=%p, field=%d(%s), value=\"%s\")", (void *)http, field, http_fields[field], value)); if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX || !value) return; http_add_field(http, field, value, 0); } /* * 'httpSetKeepAlive()' - Set the current Keep-Alive state of a connection. * * @since CUPS 2.0/OS 10.10@ */ void httpSetKeepAlive( http_t *http, /* I - HTTP connection */ http_keepalive_t keep_alive) /* I - New Keep-Alive value */ { if (http) http->keep_alive = keep_alive; } /* * 'httpSetLength()' - Set the content-length and content-encoding. * * @since CUPS 1.2/macOS 10.5@ */ void httpSetLength(http_t *http, /* I - HTTP connection */ size_t length) /* I - Length (0 for chunked) */ { DEBUG_printf(("httpSetLength(http=%p, length=" CUPS_LLFMT ")", (void *)http, CUPS_LLCAST length)); if (!http) return; if (!length) { httpSetField(http, HTTP_FIELD_TRANSFER_ENCODING, "chunked"); httpSetField(http, HTTP_FIELD_CONTENT_LENGTH, ""); } else { char len[32]; /* Length string */ snprintf(len, sizeof(len), CUPS_LLFMT, CUPS_LLCAST length); httpSetField(http, HTTP_FIELD_TRANSFER_ENCODING, ""); httpSetField(http, HTTP_FIELD_CONTENT_LENGTH, len); } } /* * 'httpSetTimeout()' - Set read/write timeouts and an optional callback. * * The optional timeout callback receives both the HTTP connection and a user * data pointer and must return 1 to continue or 0 to error (time) out. * * @since CUPS 1.5/macOS 10.7@ */ void httpSetTimeout( http_t *http, /* I - HTTP connection */ double timeout, /* I - Number of seconds for timeout, must be greater than 0 */ http_timeout_cb_t cb, /* I - Callback function or @code NULL@ */ void *user_data) /* I - User data pointer */ { if (!http || timeout <= 0.0) return; http->timeout_cb = cb; http->timeout_data = user_data; http->timeout_value = timeout; if (http->fd >= 0) http_set_timeout(http->fd, timeout); http_set_wait(http); } /* * 'httpShutdown()' - Shutdown one side of an HTTP connection. * * @since CUPS 2.0/OS 10.10@ */ void httpShutdown(http_t *http) /* I - HTTP connection */ { if (!http || http->fd < 0) return; #ifdef HAVE_TLS if (http->tls) _httpTLSStop(http); #endif /* HAVE_TLS */ #ifdef _WIN32 shutdown(http->fd, SD_RECEIVE); /* Microsoft-ism... */ #else shutdown(http->fd, SHUT_RD); #endif /* _WIN32 */ } /* * 'httpTrace()' - Send an TRACE request to the server. * * @exclude all@ */ int /* O - Status of call (0 = success) */ httpTrace(http_t *http, /* I - HTTP connection */ const char *uri) /* I - URI for trace */ { return (http_send(http, HTTP_STATE_TRACE, uri)); } /* * '_httpUpdate()' - Update the current HTTP status for incoming data. * * Note: Unlike httpUpdate(), this function does not flush pending write data * and only retrieves a single status line from the HTTP connection. */ int /* O - 1 to continue, 0 to stop */ _httpUpdate(http_t *http, /* I - HTTP connection */ http_status_t *status) /* O - Current HTTP status */ { char line[32768], /* Line from connection... */ *value; /* Pointer to value on line */ http_field_t field; /* Field index */ int major, minor; /* HTTP version numbers */ DEBUG_printf(("_httpUpdate(http=%p, status=%p), state=%s", (void *)http, (void *)status, httpStateString(http->state))); /* * Grab a single line from the connection... */ if (!httpGets(line, sizeof(line), http)) { *status = HTTP_STATUS_ERROR; return (0); } DEBUG_printf(("2_httpUpdate: Got \"%s\"", line)); if (line[0] == '\0') { /* * Blank line means the start of the data section (if any). Return * the result code, too... * * If we get status 100 (HTTP_STATUS_CONTINUE), then we *don't* change * states. Instead, we just return HTTP_STATUS_CONTINUE to the caller and * keep on tryin'... */ if (http->status == HTTP_STATUS_CONTINUE) { *status = http->status; return (0); } if (http->status < HTTP_STATUS_BAD_REQUEST) http->digest_tries = 0; #ifdef HAVE_TLS if (http->status == HTTP_STATUS_SWITCHING_PROTOCOLS && !http->tls) { if (_httpTLSStart(http) != 0) { httpAddrClose(NULL, http->fd); http->fd = -1; *status = http->status = HTTP_STATUS_ERROR; return (0); } *status = HTTP_STATUS_CONTINUE; return (0); } #endif /* HAVE_TLS */ if (http_set_length(http) < 0) { DEBUG_puts("1_httpUpdate: Bad Content-Length."); http->error = EINVAL; http->status = *status = HTTP_STATUS_ERROR; return (0); } switch (http->state) { case HTTP_STATE_GET : case HTTP_STATE_POST : case HTTP_STATE_POST_RECV : case HTTP_STATE_PUT : http->state ++; DEBUG_printf(("1_httpUpdate: Set state to %s.", httpStateString(http->state))); case HTTP_STATE_POST_SEND : case HTTP_STATE_HEAD : break; default : http->state = HTTP_STATE_WAITING; DEBUG_puts("1_httpUpdate: Reset state to HTTP_STATE_WAITING."); break; } #ifdef HAVE_LIBZ DEBUG_puts("1_httpUpdate: Calling http_content_coding_start."); http_content_coding_start(http, httpGetField(http, HTTP_FIELD_CONTENT_ENCODING)); #endif /* HAVE_LIBZ */ *status = http->status; return (0); } else if (!strncmp(line, "HTTP/", 5) && http->mode == _HTTP_MODE_CLIENT) { /* * Got the beginning of a response... */ int intstatus; /* Status value as an integer */ if (sscanf(line, "HTTP/%d.%d%d", &major, &minor, &intstatus) != 3) { *status = http->status = HTTP_STATUS_ERROR; return (0); } httpClearFields(http); http->version = (http_version_t)(major * 100 + minor); *status = http->status = (http_status_t)intstatus; } else if ((value = strchr(line, ':')) != NULL) { /* * Got a value... */ *value++ = '\0'; while (_cups_isspace(*value)) value ++; DEBUG_printf(("1_httpUpdate: Header %s: %s", line, value)); /* * Be tolerants of servers that send unknown attribute fields... */ if (!_cups_strcasecmp(line, "expect")) { /* * "Expect: 100-continue" or similar... */ http->expect = (http_status_t)atoi(value); } else if (!_cups_strcasecmp(line, "cookie")) { /* * "Cookie: name=value[; name=value ...]" - replaces previous cookies... */ httpSetCookie(http, value); } else if ((field = httpFieldValue(line)) != HTTP_FIELD_UNKNOWN) { http_add_field(http, field, value, 1); if (field == HTTP_FIELD_AUTHENTICATION_INFO) httpGetSubField2(http, HTTP_FIELD_AUTHENTICATION_INFO, "nextnonce", http->nextnonce, (int)sizeof(http->nextnonce)); } #ifdef DEBUG else DEBUG_printf(("1_httpUpdate: unknown field %s seen!", line)); #endif /* DEBUG */ } else { DEBUG_printf(("1_httpUpdate: Bad response line \"%s\"!", line)); http->error = EINVAL; http->status = *status = HTTP_STATUS_ERROR; return (0); } return (1); } /* * 'httpUpdate()' - Update the current HTTP state for incoming data. */ http_status_t /* O - HTTP status */ httpUpdate(http_t *http) /* I - HTTP connection */ { http_status_t status; /* Request status */ DEBUG_printf(("httpUpdate(http=%p), state=%s", (void *)http, httpStateString(http->state))); /* * Flush pending data, if any... */ if (http->wused) { DEBUG_puts("2httpUpdate: flushing buffer..."); if (httpFlushWrite(http) < 0) return (HTTP_STATUS_ERROR); } /* * If we haven't issued any commands, then there is nothing to "update"... */ if (http->state == HTTP_STATE_WAITING) return (HTTP_STATUS_CONTINUE); /* * Grab all of the lines we can from the connection... */ while (_httpUpdate(http, &status)); /* * See if there was an error... */ if (http->error == EPIPE && http->status > HTTP_STATUS_CONTINUE) { DEBUG_printf(("1httpUpdate: Returning status %d...", http->status)); return (http->status); } if (http->error) { DEBUG_printf(("1httpUpdate: socket error %d - %s", http->error, strerror(http->error))); http->status = HTTP_STATUS_ERROR; return (HTTP_STATUS_ERROR); } /* * Return the current status... */ return (status); } /* * '_httpWait()' - Wait for data available on a connection (no flush). */ int /* O - 1 if data is available, 0 otherwise */ _httpWait(http_t *http, /* I - HTTP connection */ int msec, /* I - Milliseconds to wait */ int usessl) /* I - Use SSL context? */ { #ifdef HAVE_POLL struct pollfd pfd; /* Polled file descriptor */ #else fd_set input_set; /* select() input set */ struct timeval timeout; /* Timeout */ #endif /* HAVE_POLL */ int nfds; /* Result from select()/poll() */ DEBUG_printf(("4_httpWait(http=%p, msec=%d, usessl=%d)", (void *)http, msec, usessl)); if (http->fd < 0) { DEBUG_printf(("5_httpWait: Returning 0 since fd=%d", http->fd)); return (0); } /* * Check the SSL/TLS buffers for data first... */ #ifdef HAVE_TLS if (http->tls && _httpTLSPending(http)) { DEBUG_puts("5_httpWait: Return 1 since there is pending TLS data."); return (1); } #endif /* HAVE_TLS */ /* * Then try doing a select() or poll() to poll the socket... */ #ifdef HAVE_POLL pfd.fd = http->fd; pfd.events = POLLIN; do { nfds = poll(&pfd, 1, msec); } while (nfds < 0 && (errno == EINTR || errno == EAGAIN)); #else do { FD_ZERO(&input_set); FD_SET(http->fd, &input_set); DEBUG_printf(("6_httpWait: msec=%d, http->fd=%d", msec, http->fd)); if (msec >= 0) { timeout.tv_sec = msec / 1000; timeout.tv_usec = (msec % 1000) * 1000; nfds = select(http->fd + 1, &input_set, NULL, NULL, &timeout); } else nfds = select(http->fd + 1, &input_set, NULL, NULL, NULL); DEBUG_printf(("6_httpWait: select() returned %d...", nfds)); } # ifdef _WIN32 while (nfds < 0 && (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEWOULDBLOCK)); # else while (nfds < 0 && (errno == EINTR || errno == EAGAIN)); # endif /* _WIN32 */ #endif /* HAVE_POLL */ DEBUG_printf(("5_httpWait: returning with nfds=%d, errno=%d...", nfds, errno)); return (nfds > 0); } /* * 'httpWait()' - Wait for data available on a connection. * * @since CUPS 1.1.19/macOS 10.3@ */ int /* O - 1 if data is available, 0 otherwise */ httpWait(http_t *http, /* I - HTTP connection */ int msec) /* I - Milliseconds to wait */ { /* * First see if there is data in the buffer... */ DEBUG_printf(("2httpWait(http=%p, msec=%d)", (void *)http, msec)); if (http == NULL) return (0); if (http->used) { DEBUG_puts("3httpWait: Returning 1 since there is buffered data ready."); return (1); } #ifdef HAVE_LIBZ if (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in > 0) { DEBUG_puts("3httpWait: Returning 1 since there is buffered data ready."); return (1); } #endif /* HAVE_LIBZ */ /* * Flush pending data, if any... */ if (http->wused) { DEBUG_puts("3httpWait: Flushing write buffer."); if (httpFlushWrite(http) < 0) return (0); } /* * If not, check the SSL/TLS buffers and do a select() on the connection... */ return (_httpWait(http, msec, 1)); } /* * 'httpWrite()' - Write data to a HTTP connection. * * This function is deprecated. Use the httpWrite2() function which can * write more than 2GB of data. * * @deprecated@ @exclude all@ */ int /* O - Number of bytes written */ httpWrite(http_t *http, /* I - HTTP connection */ const char *buffer, /* I - Buffer for data */ int length) /* I - Number of bytes to write */ { return ((int)httpWrite2(http, buffer, (size_t)length)); } /* * 'httpWrite2()' - Write data to a HTTP connection. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Number of bytes written */ httpWrite2(http_t *http, /* I - HTTP connection */ const char *buffer, /* I - Buffer for data */ size_t length) /* I - Number of bytes to write */ { ssize_t bytes; /* Bytes written */ DEBUG_printf(("httpWrite2(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); /* * Range check input... */ if (!http || !buffer) { DEBUG_puts("1httpWrite2: Returning -1 due to bad input."); return (-1); } /* * Mark activity on the connection... */ http->activity = time(NULL); /* * Buffer small writes for better performance... */ #ifdef HAVE_LIBZ if (http->coding == _HTTP_CODING_GZIP || http->coding == _HTTP_CODING_DEFLATE) { DEBUG_printf(("1httpWrite2: http->coding=%d", http->coding)); if (length == 0) { http_content_coding_finish(http); bytes = 0; } else { size_t slen; /* Bytes to write */ ssize_t sret; /* Bytes written */ ((z_stream *)http->stream)->next_in = (Bytef *)buffer; ((z_stream *)http->stream)->avail_in = (uInt)length; while (deflate((z_stream *)http->stream, Z_NO_FLUSH) == Z_OK) { DEBUG_printf(("1httpWrite2: avail_out=%d", ((z_stream *)http->stream)->avail_out)); if (((z_stream *)http->stream)->avail_out > 0) continue; slen = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; DEBUG_printf(("1httpWrite2: Writing intermediate chunk, len=%d", (int)slen)); if (slen > 0 && http->data_encoding == HTTP_ENCODING_CHUNKED) sret = http_write_chunk(http, (char *)http->sbuffer, slen); else if (slen > 0) sret = http_write(http, (char *)http->sbuffer, slen); else sret = 0; if (sret < 0) { DEBUG_puts("1httpWrite2: Unable to write, returning -1."); return (-1); } ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; } bytes = (ssize_t)length; } } else #endif /* HAVE_LIBZ */ if (length > 0) { if (http->wused && (length + (size_t)http->wused) > sizeof(http->wbuffer)) { DEBUG_printf(("2httpWrite2: Flushing buffer (wused=%d, length=" CUPS_LLFMT ")", http->wused, CUPS_LLCAST length)); httpFlushWrite(http); } if ((length + (size_t)http->wused) <= sizeof(http->wbuffer) && length < sizeof(http->wbuffer)) { /* * Write to buffer... */ DEBUG_printf(("2httpWrite2: Copying " CUPS_LLFMT " bytes to wbuffer...", CUPS_LLCAST length)); memcpy(http->wbuffer + http->wused, buffer, length); http->wused += (int)length; bytes = (ssize_t)length; } else { /* * Otherwise write the data directly... */ DEBUG_printf(("2httpWrite2: Writing " CUPS_LLFMT " bytes to socket...", CUPS_LLCAST length)); if (http->data_encoding == HTTP_ENCODING_CHUNKED) bytes = http_write_chunk(http, buffer, length); else bytes = http_write(http, buffer, length); DEBUG_printf(("2httpWrite2: Wrote " CUPS_LLFMT " bytes...", CUPS_LLCAST bytes)); } if (http->data_encoding == HTTP_ENCODING_LENGTH) http->data_remaining -= bytes; } else bytes = 0; /* * Handle end-of-request processing... */ if ((http->data_encoding == HTTP_ENCODING_CHUNKED && length == 0) || (http->data_encoding == HTTP_ENCODING_LENGTH && http->data_remaining == 0)) { /* * Finished with the transfer; unless we are sending POST or PUT * data, go idle... */ #ifdef HAVE_LIBZ if (http->coding == _HTTP_CODING_GZIP || http->coding == _HTTP_CODING_DEFLATE) http_content_coding_finish(http); #endif /* HAVE_LIBZ */ if (http->wused) { if (httpFlushWrite(http) < 0) return (-1); } if (http->data_encoding == HTTP_ENCODING_CHUNKED) { /* * Send a 0-length chunk at the end of the request... */ http_write(http, "0\r\n\r\n", 5); /* * Reset the data state... */ http->data_encoding = HTTP_ENCODING_FIELDS; http->data_remaining = 0; } if (http->state == HTTP_STATE_POST_RECV) http->state ++; else if (http->state == HTTP_STATE_POST_SEND || http->state == HTTP_STATE_GET_SEND) http->state = HTTP_STATE_WAITING; else http->state = HTTP_STATE_STATUS; DEBUG_printf(("2httpWrite2: Changed state to %s.", httpStateString(http->state))); } DEBUG_printf(("1httpWrite2: Returning " CUPS_LLFMT ".", CUPS_LLCAST bytes)); return (bytes); } /* * 'httpWriteResponse()' - Write a HTTP response to a client connection. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 0 on success, -1 on error */ httpWriteResponse(http_t *http, /* I - HTTP connection */ http_status_t status) /* I - Status code */ { http_encoding_t old_encoding; /* Old data_encoding value */ off_t old_remaining; /* Old data_remaining value */ cups_lang_t *lang; /* Response language */ /* * Range check input... */ DEBUG_printf(("httpWriteResponse(http=%p, status=%d)", (void *)http, status)); if (!http || status < HTTP_STATUS_CONTINUE) { DEBUG_puts("1httpWriteResponse: Bad input."); return (-1); } /* * Set the various standard fields if they aren't already... */ if (!http->fields[HTTP_FIELD_DATE]) httpSetField(http, HTTP_FIELD_DATE, httpGetDateString(time(NULL))); if (status >= HTTP_STATUS_BAD_REQUEST && http->keep_alive) { http->keep_alive = HTTP_KEEPALIVE_OFF; httpSetField(http, HTTP_FIELD_KEEP_ALIVE, ""); } if (http->version == HTTP_VERSION_1_1) { if (!http->fields[HTTP_FIELD_CONNECTION]) { if (http->keep_alive) httpSetField(http, HTTP_FIELD_CONNECTION, "Keep-Alive"); else httpSetField(http, HTTP_FIELD_CONNECTION, "close"); } if (http->keep_alive && !http->fields[HTTP_FIELD_KEEP_ALIVE]) httpSetField(http, HTTP_FIELD_KEEP_ALIVE, "timeout=10"); } #ifdef HAVE_TLS if (status == HTTP_STATUS_UPGRADE_REQUIRED || status == HTTP_STATUS_SWITCHING_PROTOCOLS) { if (!http->fields[HTTP_FIELD_CONNECTION]) httpSetField(http, HTTP_FIELD_CONNECTION, "Upgrade"); if (!http->fields[HTTP_FIELD_UPGRADE]) httpSetField(http, HTTP_FIELD_UPGRADE, "TLS/1.2,TLS/1.1,TLS/1.0"); if (!http->fields[HTTP_FIELD_CONTENT_LENGTH]) httpSetField(http, HTTP_FIELD_CONTENT_LENGTH, "0"); } #endif /* HAVE_TLS */ if (!http->fields[HTTP_FIELD_SERVER]) httpSetField(http, HTTP_FIELD_SERVER, http->default_fields[HTTP_FIELD_SERVER] ? http->default_fields[HTTP_FIELD_SERVER] : CUPS_MINIMAL); /* * Set the Accept-Encoding field if it isn't already... */ if (!http->fields[HTTP_FIELD_ACCEPT_ENCODING]) httpSetField(http, HTTP_FIELD_ACCEPT_ENCODING, http->default_fields[HTTP_FIELD_ACCEPT_ENCODING] ? http->default_fields[HTTP_FIELD_ACCEPT_ENCODING] : #ifdef HAVE_LIBZ "gzip, deflate, identity"); #else "identity"); #endif /* HAVE_LIBZ */ /* * Get the response language, if any... */ lang = cupsLangGet(http->fields[HTTP_FIELD_CONTENT_LANGUAGE]); /* * Send the response header... */ old_encoding = http->data_encoding; old_remaining = http->data_remaining; http->data_encoding = HTTP_ENCODING_FIELDS; if (httpPrintf(http, "HTTP/%d.%d %d %s\r\n", http->version / 100, http->version % 100, (int)status, _httpStatus(lang, status)) < 0) { http->status = HTTP_STATUS_ERROR; return (-1); } if (status != HTTP_STATUS_CONTINUE) { /* * 100 Continue doesn't have the rest of the response headers... */ int i; /* Looping var */ const char *value; /* Field value */ for (i = 0; i < HTTP_FIELD_MAX; i ++) { if ((value = httpGetField(http, i)) != NULL && *value) { if (httpPrintf(http, "%s: %s\r\n", http_fields[i], value) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } } if (http->cookie) { if (strchr(http->cookie, ';')) { if (httpPrintf(http, "Set-Cookie: %s\r\n", http->cookie) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } else if (httpPrintf(http, "Set-Cookie: %s; path=/; httponly;%s\r\n", http->cookie, http->tls ? " secure;" : "") < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } /* * "Click-jacking" defense (STR #4492)... */ if (httpPrintf(http, "X-Frame-Options: DENY\r\n" "Content-Security-Policy: frame-ancestors 'none'\r\n") < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } if (httpWrite2(http, "\r\n", 2) < 2) { http->status = HTTP_STATUS_ERROR; return (-1); } if (httpFlushWrite(http) < 0) { http->status = HTTP_STATUS_ERROR; return (-1); } if (status == HTTP_STATUS_CONTINUE || status == HTTP_STATUS_SWITCHING_PROTOCOLS) { /* * Restore the old data_encoding and data_length values... */ http->data_encoding = old_encoding; http->data_remaining = old_remaining; if (old_remaining <= INT_MAX) http->_data_remaining = (int)old_remaining; else http->_data_remaining = INT_MAX; } else if (http->state == HTTP_STATE_OPTIONS || http->state == HTTP_STATE_HEAD || http->state == HTTP_STATE_PUT || http->state == HTTP_STATE_TRACE || http->state == HTTP_STATE_CONNECT || http->state == HTTP_STATE_STATUS) { DEBUG_printf(("1httpWriteResponse: Resetting state to HTTP_STATE_WAITING, " "was %s.", httpStateString(http->state))); http->state = HTTP_STATE_WAITING; } else { /* * Force data_encoding and data_length to be set according to the response * headers... */ http_set_length(http); if (http->data_encoding == HTTP_ENCODING_LENGTH && http->data_remaining == 0) { DEBUG_printf(("1httpWriteResponse: Resetting state to HTTP_STATE_WAITING, " "was %s.", httpStateString(http->state))); http->state = HTTP_STATE_WAITING; return (0); } if (http->state == HTTP_STATE_POST_RECV || http->state == HTTP_STATE_GET) http->state ++; #ifdef HAVE_LIBZ /* * Then start any content encoding... */ DEBUG_puts("1httpWriteResponse: Calling http_content_coding_start."); http_content_coding_start(http, httpGetField(http, HTTP_FIELD_CONTENT_ENCODING)); #endif /* HAVE_LIBZ */ } return (0); } /* * 'http_add_field()' - Add a value for a HTTP field, appending if needed. */ static void http_add_field(http_t *http, /* I - HTTP connection */ http_field_t field, /* I - HTTP field */ const char *value, /* I - Value string */ int append) /* I - Append value? */ { char temp[1024], /* Temporary value string */ combined[HTTP_MAX_VALUE]; /* Combined value string */ size_t fieldlen, /* Length of existing value */ valuelen, /* Length of value string */ total; /* Total length of string */ if (field == HTTP_FIELD_HOST) { /* * Special-case for Host: as we don't want a trailing "." on the hostname and * need to bracket IPv6 numeric addresses. */ char *ptr = strchr(value, ':'); if (value[0] != '[' && ptr && strchr(ptr + 1, ':')) { /* * Bracket IPv6 numeric addresses... * * This is slightly inefficient (basically copying twice), but is an edge * case and not worth optimizing... */ snprintf(temp, sizeof(temp), "[%s]", value); value = temp; } else if (*value) { /* * Check for a trailing dot on the hostname... */ strlcpy(temp, value, sizeof(temp)); value = temp; ptr = temp + strlen(temp) - 1; if (*ptr == '.') *ptr = '\0'; } } if (append && field != HTTP_FIELD_ACCEPT_ENCODING && field != HTTP_FIELD_ACCEPT_LANGUAGE && field != HTTP_FIELD_ACCEPT_RANGES && field != HTTP_FIELD_ALLOW && field != HTTP_FIELD_LINK && field != HTTP_FIELD_TRANSFER_ENCODING && field != HTTP_FIELD_UPGRADE && field != HTTP_FIELD_WWW_AUTHENTICATE) append = 0; if (!append && http->fields[field]) { if (field >= HTTP_FIELD_ACCEPT_ENCODING || http->fields[field] != http->_fields[field]) free(http->fields[field]); http->fields[field] = NULL; } valuelen = strlen(value); if (!valuelen) { if (field < HTTP_FIELD_ACCEPT_ENCODING) http->_fields[field][0] = '\0'; return; } if (http->fields[field]) { fieldlen = strlen(http->fields[field]); total = fieldlen + 2 + valuelen; } else { fieldlen = 0; total = valuelen; } if (total < HTTP_MAX_VALUE && field < HTTP_FIELD_ACCEPT_ENCODING) { /* * Copy short values to legacy char arrays (maintained for binary * compatibility with CUPS 1.2.x and earlier applications...) */ if (fieldlen) { snprintf(combined, sizeof(combined), "%s, %s", http->_fields[field], value); value = combined; } strlcpy(http->_fields[field], value, sizeof(http->_fields[field])); http->fields[field] = http->_fields[field]; } else if (fieldlen) { /* * Expand the field value... */ char *mcombined; /* New value string */ if (field < HTTP_FIELD_ACCEPT_ENCODING && http->fields[field] == http->_fields[field]) { if ((mcombined = malloc(total + 1)) != NULL) { http->fields[field] = mcombined; snprintf(mcombined, total + 1, "%s, %s", http->_fields[field], value); } } else if ((mcombined = realloc(http->fields[field], total + 1)) != NULL) { http->fields[field] = mcombined; strlcat(mcombined, ", ", total + 1); strlcat(mcombined, value, total + 1); } } else { /* * Allocate the field value... */ http->fields[field] = strdup(value); } #ifdef HAVE_LIBZ if (field == HTTP_FIELD_CONTENT_ENCODING && http->data_encoding != HTTP_ENCODING_FIELDS) { DEBUG_puts("1httpSetField: Calling http_content_coding_start."); http_content_coding_start(http, value); } #endif /* HAVE_LIBZ */ } #ifdef HAVE_LIBZ /* * 'http_content_coding_finish()' - Finish doing any content encoding. */ static void http_content_coding_finish( http_t *http) /* I - HTTP connection */ { int zerr; /* Compression status */ Byte dummy[1]; /* Dummy read buffer */ size_t bytes; /* Number of bytes to write */ DEBUG_printf(("http_content_coding_finish(http=%p)", (void *)http)); DEBUG_printf(("1http_content_coding_finishing: http->coding=%d", http->coding)); switch (http->coding) { case _HTTP_CODING_DEFLATE : case _HTTP_CODING_GZIP : ((z_stream *)http->stream)->next_in = dummy; ((z_stream *)http->stream)->avail_in = 0; do { zerr = deflate((z_stream *)http->stream, Z_FINISH); bytes = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; if (bytes > 0) { DEBUG_printf(("1http_content_coding_finish: Writing trailing chunk, len=%d", (int)bytes)); if (http->data_encoding == HTTP_ENCODING_CHUNKED) http_write_chunk(http, (char *)http->sbuffer, bytes); else http_write(http, (char *)http->sbuffer, bytes); } ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; } while (zerr == Z_OK); deflateEnd((z_stream *)http->stream); free(http->sbuffer); free(http->stream); http->sbuffer = NULL; http->stream = NULL; if (http->wused) httpFlushWrite(http); break; case _HTTP_CODING_INFLATE : case _HTTP_CODING_GUNZIP : inflateEnd((z_stream *)http->stream); free(http->sbuffer); free(http->stream); http->sbuffer = NULL; http->stream = NULL; break; default : break; } http->coding = _HTTP_CODING_IDENTITY; } /* * 'http_content_coding_start()' - Start doing content encoding. */ static void http_content_coding_start( http_t *http, /* I - HTTP connection */ const char *value) /* I - Value of Content-Encoding */ { int zerr; /* Error/status */ _http_coding_t coding; /* Content coding value */ DEBUG_printf(("http_content_coding_start(http=%p, value=\"%s\")", (void *)http, value)); if (http->coding != _HTTP_CODING_IDENTITY) { DEBUG_printf(("1http_content_coding_start: http->coding already %d.", http->coding)); return; } else if (!strcmp(value, "x-gzip") || !strcmp(value, "gzip")) { if (http->state == HTTP_STATE_GET_SEND || http->state == HTTP_STATE_POST_SEND) coding = http->mode == _HTTP_MODE_SERVER ? _HTTP_CODING_GZIP : _HTTP_CODING_GUNZIP; else if (http->state == HTTP_STATE_POST_RECV || http->state == HTTP_STATE_PUT_RECV) coding = http->mode == _HTTP_MODE_CLIENT ? _HTTP_CODING_GZIP : _HTTP_CODING_GUNZIP; else { DEBUG_puts("1http_content_coding_start: Not doing content coding."); return; } } else if (!strcmp(value, "x-deflate") || !strcmp(value, "deflate")) { if (http->state == HTTP_STATE_GET_SEND || http->state == HTTP_STATE_POST_SEND) coding = http->mode == _HTTP_MODE_SERVER ? _HTTP_CODING_DEFLATE : _HTTP_CODING_INFLATE; else if (http->state == HTTP_STATE_POST_RECV || http->state == HTTP_STATE_PUT_RECV) coding = http->mode == _HTTP_MODE_CLIENT ? _HTTP_CODING_DEFLATE : _HTTP_CODING_INFLATE; else { DEBUG_puts("1http_content_coding_start: Not doing content coding."); return; } } else { DEBUG_puts("1http_content_coding_start: Not doing content coding."); return; } switch (coding) { case _HTTP_CODING_DEFLATE : case _HTTP_CODING_GZIP : if (http->wused) httpFlushWrite(http); if ((http->sbuffer = malloc(_HTTP_MAX_SBUFFER)) == NULL) { http->status = HTTP_STATUS_ERROR; http->error = errno; return; } /* * Window size for compression is 11 bits - optimal based on PWG Raster * sample files on pwg.org. -11 is raw deflate, 27 is gzip, per ZLIB * documentation. */ if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) { free(http->sbuffer); http->sbuffer = NULL; http->status = HTTP_STATUS_ERROR; http->error = errno; return; } if ((zerr = deflateInit2((z_stream *)http->stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, coding == _HTTP_CODING_DEFLATE ? -11 : 27, 7, Z_DEFAULT_STRATEGY)) < Z_OK) { free(http->sbuffer); free(http->stream); http->sbuffer = NULL; http->stream = NULL; http->status = HTTP_STATUS_ERROR; http->error = zerr == Z_MEM_ERROR ? ENOMEM : EINVAL; return; } ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; break; case _HTTP_CODING_INFLATE : case _HTTP_CODING_GUNZIP : if ((http->sbuffer = malloc(_HTTP_MAX_SBUFFER)) == NULL) { http->status = HTTP_STATUS_ERROR; http->error = errno; return; } /* * Window size for decompression is up to 15 bits (maximum supported). * -15 is raw inflate, 31 is gunzip, per ZLIB documentation. */ if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) { free(http->sbuffer); http->sbuffer = NULL; http->status = HTTP_STATUS_ERROR; http->error = errno; return; } if ((zerr = inflateInit2((z_stream *)http->stream, coding == _HTTP_CODING_INFLATE ? -15 : 31)) < Z_OK) { free(http->sbuffer); free(http->stream); http->sbuffer = NULL; http->stream = NULL; http->status = HTTP_STATUS_ERROR; http->error = zerr == Z_MEM_ERROR ? ENOMEM : EINVAL; return; } ((z_stream *)http->stream)->avail_in = 0; ((z_stream *)http->stream)->next_in = http->sbuffer; break; default : break; } http->coding = coding; DEBUG_printf(("1http_content_coding_start: http->coding now %d.", http->coding)); } #endif /* HAVE_LIBZ */ /* * 'http_create()' - Create an unconnected HTTP connection. */ static http_t * /* O - HTTP connection */ http_create( const char *host, /* I - Hostname */ int port, /* I - Port number */ http_addrlist_t *addrlist, /* I - Address list or @code NULL@ */ int family, /* I - Address family or AF_UNSPEC */ http_encryption_t encryption, /* I - Encryption to use */ int blocking, /* I - 1 for blocking mode */ _http_mode_t mode) /* I - _HTTP_MODE_CLIENT or _SERVER */ { http_t *http; /* New HTTP connection */ char service[255]; /* Service name */ http_addrlist_t *myaddrlist = NULL; /* My address list */ DEBUG_printf(("4http_create(host=\"%s\", port=%d, addrlist=%p, family=%d, encryption=%d, blocking=%d, mode=%d)", host, port, (void *)addrlist, family, encryption, blocking, mode)); if (!host && mode == _HTTP_MODE_CLIENT) return (NULL); httpInitialize(); /* * Lookup the host... */ if (addrlist) { myaddrlist = httpAddrCopyList(addrlist); } else { snprintf(service, sizeof(service), "%d", port); myaddrlist = httpAddrGetList(host, family, service); } if (!myaddrlist) return (NULL); /* * Allocate memory for the structure... */ if ((http = calloc(1, sizeof(http_t))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); httpAddrFreeList(myaddrlist); return (NULL); } /* * Initialize the HTTP data... */ http->mode = mode; http->activity = time(NULL); http->addrlist = myaddrlist; http->blocking = blocking; http->fd = -1; #ifdef HAVE_GSSAPI http->gssctx = GSS_C_NO_CONTEXT; http->gssname = GSS_C_NO_NAME; #endif /* HAVE_GSSAPI */ http->status = HTTP_STATUS_CONTINUE; http->version = HTTP_VERSION_1_1; if (host) strlcpy(http->hostname, host, sizeof(http->hostname)); if (port == 443) /* Always use encryption for https */ http->encryption = HTTP_ENCRYPTION_ALWAYS; else http->encryption = encryption; http_set_wait(http); /* * Return the new structure... */ return (http); } #ifdef DEBUG /* * 'http_debug_hex()' - Do a hex dump of a buffer. */ static void http_debug_hex(const char *prefix, /* I - Prefix for line */ const char *buffer, /* I - Buffer to dump */ int bytes) /* I - Bytes to dump */ { int i, j, /* Looping vars */ ch; /* Current character */ char line[255], /* Line buffer */ *start, /* Start of line after prefix */ *ptr; /* Pointer into line */ if (_cups_debug_fd < 0 || _cups_debug_level < 6) return; DEBUG_printf(("9%s: %d bytes:", prefix, bytes)); snprintf(line, sizeof(line), "9%s: ", prefix); start = line + strlen(line); for (i = 0; i < bytes; i += 16) { for (j = 0, ptr = start; j < 16 && (i + j) < bytes; j ++, ptr += 2) snprintf(ptr, 3, "%02X", buffer[i + j] & 255); while (j < 16) { memcpy(ptr, " ", 3); ptr += 2; j ++; } memcpy(ptr, " ", 3); ptr += 2; for (j = 0; j < 16 && (i + j) < bytes; j ++) { ch = buffer[i + j] & 255; if (ch < ' ' || ch >= 127) ch = '.'; *ptr++ = (char)ch; } *ptr = '\0'; DEBUG_puts(line); } } #endif /* DEBUG */ /* * 'http_read()' - Read a buffer from a HTTP connection. * * This function does the low-level read from the socket, retrying and timing * out as needed. */ static ssize_t /* O - Number of bytes read or -1 on error */ http_read(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer */ size_t length) /* I - Maximum bytes to read */ { ssize_t bytes; /* Bytes read */ DEBUG_printf(("7http_read(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); if (!http->blocking || http->timeout_value > 0.0) { while (!httpWait(http, http->wait_value)) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; DEBUG_puts("8http_read: Timeout."); return (0); } } DEBUG_printf(("8http_read: Reading %d bytes into buffer.", (int)length)); do { #ifdef HAVE_TLS if (http->tls) bytes = _httpTLSRead(http, buffer, (int)length); else #endif /* HAVE_TLS */ bytes = recv(http->fd, buffer, length, 0); if (bytes < 0) { #ifdef _WIN32 if (WSAGetLastError() != WSAEINTR) { http->error = WSAGetLastError(); return (-1); } else if (WSAGetLastError() == WSAEWOULDBLOCK) { if (!http->timeout_cb || !(*http->timeout_cb)(http, http->timeout_data)) { http->error = WSAEWOULDBLOCK; return (-1); } } #else DEBUG_printf(("8http_read: %s", strerror(errno))); if (errno == EWOULDBLOCK || errno == EAGAIN) { if (http->timeout_cb && !(*http->timeout_cb)(http, http->timeout_data)) { http->error = errno; return (-1); } else if (!http->timeout_cb && errno != EAGAIN) { http->error = errno; return (-1); } } else if (errno != EINTR) { http->error = errno; return (-1); } #endif /* _WIN32 */ } } while (bytes < 0); DEBUG_printf(("8http_read: Read " CUPS_LLFMT " bytes into buffer.", CUPS_LLCAST bytes)); #ifdef DEBUG if (bytes > 0) http_debug_hex("http_read", buffer, (int)bytes); else #endif /* DEBUG */ if (bytes == 0) { http->error = EPIPE; return (0); } return (bytes); } /* * 'http_read_buffered()' - Do a buffered read from a HTTP connection. * * This function reads data from the HTTP buffer or from the socket, as needed. */ static ssize_t /* O - Number of bytes read or -1 on error */ http_read_buffered(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer */ size_t length) /* I - Maximum bytes to read */ { ssize_t bytes; /* Bytes read */ DEBUG_printf(("7http_read_buffered(http=%p, buffer=%p, length=" CUPS_LLFMT ") used=%d", (void *)http, (void *)buffer, CUPS_LLCAST length, http->used)); if (http->used > 0) { if (length > (size_t)http->used) bytes = (ssize_t)http->used; else bytes = (ssize_t)length; DEBUG_printf(("8http_read: Grabbing %d bytes from input buffer.", (int)bytes)); memcpy(buffer, http->buffer, (size_t)bytes); http->used -= (int)bytes; if (http->used > 0) memmove(http->buffer, http->buffer + bytes, (size_t)http->used); } else bytes = http_read(http, buffer, length); return (bytes); } /* * 'http_read_chunk()' - Read a chunk from a HTTP connection. * * This function reads and validates the chunk length, then does a buffered read * returning the number of bytes placed in the buffer. */ static ssize_t /* O - Number of bytes read or -1 on error */ http_read_chunk(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Buffer */ size_t length) /* I - Maximum bytes to read */ { DEBUG_printf(("7http_read_chunk(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); if (http->data_remaining <= 0) { char len[32]; /* Length string */ if (!httpGets(len, sizeof(len), http)) { DEBUG_puts("8http_read_chunk: Could not get chunk length."); return (0); } if (!len[0]) { DEBUG_puts("8http_read_chunk: Blank chunk length, trying again..."); if (!httpGets(len, sizeof(len), http)) { DEBUG_puts("8http_read_chunk: Could not get chunk length."); return (0); } } http->data_remaining = strtoll(len, NULL, 16); if (http->data_remaining < 0) { DEBUG_printf(("8http_read_chunk: Negative chunk length \"%s\" (" CUPS_LLFMT ")", len, CUPS_LLCAST http->data_remaining)); return (0); } DEBUG_printf(("8http_read_chunk: Got chunk length \"%s\" (" CUPS_LLFMT ")", len, CUPS_LLCAST http->data_remaining)); if (http->data_remaining == 0) { /* * 0-length chunk, grab trailing blank line... */ httpGets(len, sizeof(len), http); } } DEBUG_printf(("8http_read_chunk: data_remaining=" CUPS_LLFMT, CUPS_LLCAST http->data_remaining)); if (http->data_remaining <= 0) return (0); else if (length > (size_t)http->data_remaining) length = (size_t)http->data_remaining; return (http_read_buffered(http, buffer, length)); } /* * 'http_send()' - Send a request with all fields and the trailing blank line. */ static int /* O - 0 on success, non-zero on error */ http_send(http_t *http, /* I - HTTP connection */ http_state_t request, /* I - Request code */ const char *uri) /* I - URI */ { int i; /* Looping var */ char buf[1024]; /* Encoded URI buffer */ const char *value; /* Field value */ static const char * const codes[] = /* Request code strings */ { NULL, "OPTIONS", "GET", NULL, "HEAD", "POST", NULL, NULL, "PUT", NULL, "DELETE", "TRACE", "CLOSE", NULL, NULL }; DEBUG_printf(("4http_send(http=%p, request=HTTP_%s, uri=\"%s\")", (void *)http, codes[request], uri)); if (http == NULL || uri == NULL) return (-1); /* * Set the User-Agent field if it isn't already... */ if (!http->fields[HTTP_FIELD_USER_AGENT]) { if (http->default_fields[HTTP_FIELD_USER_AGENT]) httpSetField(http, HTTP_FIELD_USER_AGENT, http->default_fields[HTTP_FIELD_USER_AGENT]); else httpSetField(http, HTTP_FIELD_USER_AGENT, cupsUserAgent()); } /* * Set the Accept-Encoding field if it isn't already... */ if (!http->fields[HTTP_FIELD_ACCEPT_ENCODING] && http->default_fields[HTTP_FIELD_ACCEPT_ENCODING]) httpSetField(http, HTTP_FIELD_ACCEPT_ENCODING, http->default_fields[HTTP_FIELD_ACCEPT_ENCODING]); /* * Encode the URI as needed... */ _httpEncodeURI(buf, uri, sizeof(buf)); /* * See if we had an error the last time around; if so, reconnect... */ if (http->fd < 0 || http->status == HTTP_STATUS_ERROR || http->status >= HTTP_STATUS_BAD_REQUEST) { DEBUG_printf(("5http_send: Reconnecting, fd=%d, status=%d, tls_upgrade=%d", http->fd, http->status, http->tls_upgrade)); if (httpReconnect2(http, 30000, NULL)) return (-1); } /* * Flush any written data that is pending... */ if (http->wused) { if (httpFlushWrite(http) < 0) if (httpReconnect2(http, 30000, NULL)) return (-1); } /* * Send the request header... */ http->state = request; http->data_encoding = HTTP_ENCODING_FIELDS; if (request == HTTP_STATE_POST || request == HTTP_STATE_PUT) http->state ++; http->status = HTTP_STATUS_CONTINUE; #ifdef HAVE_TLS if (http->encryption == HTTP_ENCRYPTION_REQUIRED && !http->tls) { httpSetField(http, HTTP_FIELD_CONNECTION, "Upgrade"); httpSetField(http, HTTP_FIELD_UPGRADE, "TLS/1.2,TLS/1.1,TLS/1.0"); } #endif /* HAVE_TLS */ if (httpPrintf(http, "%s %s HTTP/1.1\r\n", codes[request], buf) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } for (i = 0; i < HTTP_FIELD_MAX; i ++) { if ((value = httpGetField(http, i)) != NULL && *value) { DEBUG_printf(("5http_send: %s: %s", http_fields[i], value)); if (i == HTTP_FIELD_HOST) { // Issue #185: Use "localhost" for the loopback addresses to work // around an Avahi bug... if (httpAddrLocalhost(http->hostaddr)) value = "localhost"; if (httpPrintf(http, "Host: %s:%d\r\n", value, httpAddrPort(http->hostaddr)) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } else if (httpPrintf(http, "%s: %s\r\n", http_fields[i], value) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } } } if (http->cookie) if (httpPrintf(http, "Cookie: $Version=0; %s\r\n", http->cookie) < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } DEBUG_printf(("5http_send: expect=%d, mode=%d, state=%d", http->expect, http->mode, http->state)); if (http->expect == HTTP_STATUS_CONTINUE && http->mode == _HTTP_MODE_CLIENT && (http->state == HTTP_STATE_POST_RECV || http->state == HTTP_STATE_PUT_RECV)) if (httpPrintf(http, "Expect: 100-continue\r\n") < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } if (httpPrintf(http, "\r\n") < 1) { http->status = HTTP_STATUS_ERROR; return (-1); } if (httpFlushWrite(http) < 0) return (-1); http_set_length(http); httpClearFields(http); /* * The Kerberos and AuthRef authentication strings can only be used once... */ if (http->fields[HTTP_FIELD_AUTHORIZATION] && http->authstring && (!strncmp(http->authstring, "Negotiate", 9) || !strncmp(http->authstring, "AuthRef", 7))) { http->_authstring[0] = '\0'; if (http->authstring != http->_authstring) free(http->authstring); http->authstring = http->_authstring; } return (0); } /* * 'http_set_length()' - Set the data_encoding and data_remaining values. */ static off_t /* O - Remainder or -1 on error */ http_set_length(http_t *http) /* I - Connection */ { off_t remaining; /* Remainder */ DEBUG_printf(("4http_set_length(http=%p) mode=%d state=%s", (void *)http, http->mode, httpStateString(http->state))); if ((remaining = httpGetLength2(http)) >= 0) { if (http->mode == _HTTP_MODE_SERVER && http->state != HTTP_STATE_GET_SEND && http->state != HTTP_STATE_PUT && http->state != HTTP_STATE_POST && http->state != HTTP_STATE_POST_SEND) { DEBUG_puts("5http_set_length: Not setting data_encoding/remaining."); return (remaining); } if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_TRANSFER_ENCODING), "chunked")) { DEBUG_puts("5http_set_length: Setting data_encoding to HTTP_ENCODING_CHUNKED."); http->data_encoding = HTTP_ENCODING_CHUNKED; } else { DEBUG_puts("5http_set_length: Setting data_encoding to HTTP_ENCODING_LENGTH."); http->data_encoding = HTTP_ENCODING_LENGTH; } DEBUG_printf(("5http_set_length: Setting data_remaining to " CUPS_LLFMT ".", CUPS_LLCAST remaining)); http->data_remaining = remaining; if (remaining <= INT_MAX) http->_data_remaining = (int)remaining; else http->_data_remaining = INT_MAX; } return (remaining); } /* * 'http_set_timeout()' - Set the socket timeout values. */ static void http_set_timeout(int fd, /* I - File descriptor */ double timeout) /* I - Timeout in seconds */ { #ifdef _WIN32 DWORD tv = (DWORD)(timeout * 1000); /* Timeout in milliseconds */ setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, CUPS_SOCAST &tv, sizeof(tv)); setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, CUPS_SOCAST &tv, sizeof(tv)); #else struct timeval tv; /* Timeout in secs and usecs */ tv.tv_sec = (int)timeout; tv.tv_usec = (int)(1000000 * fmod(timeout, 1.0)); setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, CUPS_SOCAST &tv, sizeof(tv)); setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, CUPS_SOCAST &tv, sizeof(tv)); #endif /* _WIN32 */ } /* * 'http_set_wait()' - Set the default wait value for reads. */ static void http_set_wait(http_t *http) /* I - HTTP connection */ { if (http->blocking) { http->wait_value = (int)(http->timeout_value * 1000); if (http->wait_value <= 0) http->wait_value = 60000; } else http->wait_value = 10000; } #ifdef HAVE_TLS /* * 'http_tls_upgrade()' - Force upgrade to TLS encryption. */ static int /* O - Status of connection */ http_tls_upgrade(http_t *http) /* I - HTTP connection */ { int ret; /* Return value */ http_t myhttp; /* Local copy of HTTP data */ DEBUG_printf(("4http_tls_upgrade(%p)", (void *)http)); /* * Flush the connection to make sure any previous "Upgrade" message * has been read. */ httpFlush(http); /* * Copy the HTTP data to a local variable so we can do the OPTIONS * request without interfering with the existing request data... */ memcpy(&myhttp, http, sizeof(myhttp)); /* * Send an OPTIONS request to the server, requiring SSL or TLS * encryption on the link... */ http->tls_upgrade = 1; memset(http->fields, 0, sizeof(http->fields)); http->expect = (http_status_t)0; if (http->hostname[0] == '/') httpSetField(http, HTTP_FIELD_HOST, "localhost"); else httpSetField(http, HTTP_FIELD_HOST, http->hostname); httpSetField(http, HTTP_FIELD_CONNECTION, "upgrade"); httpSetField(http, HTTP_FIELD_UPGRADE, "TLS/1.2,TLS/1.1,TLS/1.0"); if ((ret = httpOptions(http, "*")) == 0) { /* * Wait for the secure connection... */ while (httpUpdate(http) == HTTP_STATUS_CONTINUE); } /* * Restore the HTTP request data... */ httpClearFields(http); memcpy(http->_fields, myhttp._fields, sizeof(http->_fields)); memcpy(http->fields, myhttp.fields, sizeof(http->fields)); http->data_encoding = myhttp.data_encoding; http->data_remaining = myhttp.data_remaining; http->_data_remaining = myhttp._data_remaining; http->expect = myhttp.expect; http->digest_tries = myhttp.digest_tries; http->tls_upgrade = 0; /* * See if we actually went secure... */ if (!http->tls) { /* * Server does not support HTTP upgrade... */ DEBUG_puts("5http_tls_upgrade: Server does not support HTTP upgrade!"); _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, _("Encryption is not supported."), 1); httpAddrClose(NULL, http->fd); http->fd = -1; return (-1); } else return (ret); } #endif /* HAVE_TLS */ /* * 'http_write()' - Write a buffer to a HTTP connection. */ static ssize_t /* O - Number of bytes written */ http_write(http_t *http, /* I - HTTP connection */ const char *buffer, /* I - Buffer for data */ size_t length) /* I - Number of bytes to write */ { ssize_t tbytes, /* Total bytes sent */ bytes; /* Bytes sent */ DEBUG_printf(("7http_write(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); http->error = 0; tbytes = 0; while (length > 0) { DEBUG_printf(("8http_write: About to write %d bytes.", (int)length)); if (http->timeout_value > 0.0) { #ifdef HAVE_POLL struct pollfd pfd; /* Polled file descriptor */ #else fd_set output_set; /* Output ready for write? */ struct timeval timeout; /* Timeout value */ #endif /* HAVE_POLL */ int nfds; /* Result from select()/poll() */ do { #ifdef HAVE_POLL pfd.fd = http->fd; pfd.events = POLLOUT; while ((nfds = poll(&pfd, 1, http->wait_value)) < 0 && (errno == EINTR || errno == EAGAIN)) /* do nothing */; #else do { FD_ZERO(&output_set); FD_SET(http->fd, &output_set); timeout.tv_sec = http->wait_value / 1000; timeout.tv_usec = 1000 * (http->wait_value % 1000); nfds = select(http->fd + 1, NULL, &output_set, NULL, &timeout); } # ifdef _WIN32 while (nfds < 0 && (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEWOULDBLOCK)); # else while (nfds < 0 && (errno == EINTR || errno == EAGAIN)); # endif /* _WIN32 */ #endif /* HAVE_POLL */ if (nfds < 0) { http->error = errno; return (-1); } else if (nfds == 0 && (!http->timeout_cb || !(*http->timeout_cb)(http, http->timeout_data))) { #ifdef _WIN32 http->error = WSAEWOULDBLOCK; #else http->error = EWOULDBLOCK; #endif /* _WIN32 */ return (-1); } } while (nfds <= 0); } #ifdef HAVE_TLS if (http->tls) bytes = _httpTLSWrite(http, buffer, (int)length); else #endif /* HAVE_TLS */ bytes = send(http->fd, buffer, length, 0); DEBUG_printf(("8http_write: Write of " CUPS_LLFMT " bytes returned " CUPS_LLFMT ".", CUPS_LLCAST length, CUPS_LLCAST bytes)); if (bytes < 0) { #ifdef _WIN32 if (WSAGetLastError() == WSAEINTR) continue; else if (WSAGetLastError() == WSAEWOULDBLOCK) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; http->error = WSAGetLastError(); } else if (WSAGetLastError() != http->error && WSAGetLastError() != WSAECONNRESET) { http->error = WSAGetLastError(); continue; } #else if (errno == EINTR) continue; else if (errno == EWOULDBLOCK || errno == EAGAIN) { if (http->timeout_cb && (*http->timeout_cb)(http, http->timeout_data)) continue; else if (!http->timeout_cb && errno == EAGAIN) continue; http->error = errno; } else if (errno != http->error && errno != ECONNRESET) { http->error = errno; continue; } #endif /* _WIN32 */ DEBUG_printf(("8http_write: error writing data (%s).", strerror(http->error))); return (-1); } buffer += bytes; tbytes += bytes; length -= (size_t)bytes; } #ifdef DEBUG http_debug_hex("http_write", buffer - tbytes, (int)tbytes); #endif /* DEBUG */ DEBUG_printf(("8http_write: Returning " CUPS_LLFMT ".", CUPS_LLCAST tbytes)); return (tbytes); } /* * 'http_write_chunk()' - Write a chunked buffer. */ static ssize_t /* O - Number bytes written */ http_write_chunk(http_t *http, /* I - HTTP connection */ const char *buffer, /* I - Buffer to write */ size_t length) /* I - Length of buffer */ { char header[16]; /* Chunk header */ ssize_t bytes; /* Bytes written */ DEBUG_printf(("7http_write_chunk(http=%p, buffer=%p, length=" CUPS_LLFMT ")", (void *)http, (void *)buffer, CUPS_LLCAST length)); /* * Write the chunk header, data, and trailer. */ snprintf(header, sizeof(header), "%x\r\n", (unsigned)length); if (http_write(http, header, strlen(header)) < 0) { DEBUG_puts("8http_write_chunk: http_write of length failed."); return (-1); } if ((bytes = http_write(http, buffer, length)) < 0) { DEBUG_puts("8http_write_chunk: http_write of buffer failed."); return (-1); } if (http_write(http, "\r\n", 2) < 0) { DEBUG_puts("8http_write_chunk: http_write of CR LF failed."); return (-1); } return (bytes); } cups-2.4.7/cups/http-support.c0000644000175000017500000020740714502571342016202 0ustar zdohnalzdohnal/* * HTTP support routines for CUPS. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #ifdef HAVE_MDNSRESPONDER # include # ifdef _WIN32 # include # elif defined(HAVE_POLL) # include # else # include # endif /* _WIN32 */ #elif defined(HAVE_AVAHI) # include # include # include # include #endif /* HAVE_MDNSRESPONDER */ /* * Local types... */ typedef struct _http_uribuf_s /* URI buffer */ { #ifdef HAVE_AVAHI AvahiSimplePoll *poll; /* Poll state */ #endif /* HAVE_AVAHI */ char *buffer; /* Pointer to buffer */ size_t bufsize; /* Size of buffer */ int options; /* Options passed to _httpResolveURI */ const char *resource; /* Resource from URI */ const char *uuid; /* UUID from URI */ } _http_uribuf_t; /* * Local globals... */ static const char * const http_days[7] =/* Days of the week */ { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; static const char * const http_months[12] = { /* Months of the year */ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; static const char * const http_states[] = { /* HTTP state strings */ "HTTP_STATE_ERROR", "HTTP_STATE_WAITING", "HTTP_STATE_OPTIONS", "HTTP_STATE_GET", "HTTP_STATE_GET_SEND", "HTTP_STATE_HEAD", "HTTP_STATE_POST", "HTTP_STATE_POST_RECV", "HTTP_STATE_POST_SEND", "HTTP_STATE_PUT", "HTTP_STATE_PUT_RECV", "HTTP_STATE_DELETE", "HTTP_STATE_TRACE", "HTTP_STATE_CONNECT", "HTTP_STATE_STATUS", "HTTP_STATE_UNKNOWN_METHOD", "HTTP_STATE_UNKNOWN_VERSION" }; /* * Local functions... */ static const char *http_copy_decode(char *dst, const char *src, int dstsize, const char *term, int decode); static char *http_copy_encode(char *dst, const char *src, char *dstend, const char *reserved, const char *term, int encode); #ifdef HAVE_MDNSRESPONDER static void DNSSD_API http_resolve_cb(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullName, const char *hostTarget, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context); #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI static void http_client_cb(AvahiClient *client, AvahiClientState state, void *simple_poll); static int http_poll_cb(struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context); static void http_resolve_cb(AvahiServiceResolver *resolver, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void *context); #endif /* HAVE_AVAHI */ /* * 'httpAssembleURI()' - Assemble a uniform resource identifier from its * components. * * This function escapes reserved characters in the URI depending on the * value of the "encoding" argument. You should use this function in * place of traditional string functions whenever you need to create a * URI string. * * @since CUPS 1.2/macOS 10.5@ */ http_uri_status_t /* O - URI status */ httpAssembleURI( http_uri_coding_t encoding, /* I - Encoding flags */ char *uri, /* I - URI buffer */ int urilen, /* I - Size of URI buffer */ const char *scheme, /* I - Scheme name */ const char *username, /* I - Username */ const char *host, /* I - Hostname or address */ int port, /* I - Port number */ const char *resource) /* I - Resource */ { char *ptr, /* Pointer into URI buffer */ *end; /* End of URI buffer */ /* * Range check input... */ if (!uri || urilen < 1 || !scheme || port < 0) { if (uri) *uri = '\0'; return (HTTP_URI_STATUS_BAD_ARGUMENTS); } /* * Assemble the URI starting with the scheme... */ end = uri + urilen - 1; ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); if (!ptr) goto assemble_overflow; if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel")) { /* * geo:, mailto:, and tel: only have :, no //... */ if (ptr < end) *ptr++ = ':'; else goto assemble_overflow; } else { /* * Schemes other than geo:, mailto:, and tel: typically have //... */ if ((ptr + 2) < end) { *ptr++ = ':'; *ptr++ = '/'; *ptr++ = '/'; } else goto assemble_overflow; } /* * Next the username and hostname, if any... */ if (host) { const char *hostptr; /* Pointer into hostname */ int have_ipv6; /* Do we have an IPv6 address? */ if (username && *username) { /* * Add username@ first... */ ptr = http_copy_encode(ptr, username, end, "/?#[]@", NULL, encoding & HTTP_URI_CODING_USERNAME); if (!ptr) goto assemble_overflow; if (ptr < end) *ptr++ = '@'; else goto assemble_overflow; } /* * Then add the hostname. Since IPv6 is a particular pain to deal * with, we have several special cases to deal with. If we get * an IPv6 address with brackets around it, assume it is already in * URI format. Since DNS-SD service names can sometimes look like * raw IPv6 addresses, we specifically look for "._tcp" in the name, * too... */ for (hostptr = host, have_ipv6 = strchr(host, ':') && !strstr(host, "._tcp"); *hostptr && have_ipv6; hostptr ++) if (*hostptr != ':' && !isxdigit(*hostptr & 255)) { have_ipv6 = *hostptr == '%'; break; } if (have_ipv6) { /* * We have a raw IPv6 address... */ if (strchr(host, '%') && !(encoding & HTTP_URI_CODING_RFC6874)) { /* * We have a link-local address, add "[v1." prefix... */ if ((ptr + 4) < end) { *ptr++ = '['; *ptr++ = 'v'; *ptr++ = '1'; *ptr++ = '.'; } else goto assemble_overflow; } else { /* * We have a normal (or RFC 6874 link-local) address, add "[" prefix... */ if (ptr < end) *ptr++ = '['; else goto assemble_overflow; } /* * Copy the rest of the IPv6 address, and terminate with "]". */ while (ptr < end && *host) { if (*host == '%') { /* * Convert/encode zone separator */ if (encoding & HTTP_URI_CODING_RFC6874) { if (ptr >= (end - 2)) goto assemble_overflow; *ptr++ = '%'; *ptr++ = '2'; *ptr++ = '5'; } else *ptr++ = '+'; host ++; } else *ptr++ = *host++; } if (*host) goto assemble_overflow; if (ptr < end) *ptr++ = ']'; else goto assemble_overflow; } else { /* * Otherwise, just copy the host string (the extra chars are not in the * "reg-name" ABNF rule; anything <= SP or >= DEL plus % gets automatically * percent-encoded. */ ptr = http_copy_encode(ptr, host, end, "\"#/:<>?@[\\]^`{|}", NULL, encoding & HTTP_URI_CODING_HOSTNAME); if (!ptr) goto assemble_overflow; } /* * Finish things off with the port number... */ if (port > 0) { snprintf(ptr, (size_t)(end - ptr + 1), ":%d", port); ptr += strlen(ptr); if (ptr >= end) goto assemble_overflow; } } /* * Last but not least, add the resource string... */ if (resource) { char *query; /* Pointer to query string */ /* * Copy the resource string up to the query string if present... */ query = strchr(resource, '?'); ptr = http_copy_encode(ptr, resource, end, NULL, "?", encoding & HTTP_URI_CODING_RESOURCE); if (!ptr) goto assemble_overflow; if (query) { /* * Copy query string without encoding... */ ptr = http_copy_encode(ptr, query, end, NULL, NULL, encoding & HTTP_URI_CODING_QUERY); if (!ptr) goto assemble_overflow; } } else if (ptr < end) *ptr++ = '/'; else goto assemble_overflow; /* * Nul-terminate the URI buffer and return with no errors... */ *ptr = '\0'; return (HTTP_URI_STATUS_OK); /* * Clear the URI string and return an overflow error; I don't usually * like goto's, but in this case it makes sense... */ assemble_overflow: *uri = '\0'; return (HTTP_URI_STATUS_OVERFLOW); } /* * 'httpAssembleURIf()' - Assemble a uniform resource identifier from its * components with a formatted resource. * * This function creates a formatted version of the resource string * argument "resourcef" and escapes reserved characters in the URI * depending on the value of the "encoding" argument. You should use * this function in place of traditional string functions whenever * you need to create a URI string. * * @since CUPS 1.2/macOS 10.5@ */ http_uri_status_t /* O - URI status */ httpAssembleURIf( http_uri_coding_t encoding, /* I - Encoding flags */ char *uri, /* I - URI buffer */ int urilen, /* I - Size of URI buffer */ const char *scheme, /* I - Scheme name */ const char *username, /* I - Username */ const char *host, /* I - Hostname or address */ int port, /* I - Port number */ const char *resourcef, /* I - Printf-style resource */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to additional arguments */ char resource[1024]; /* Formatted resource string */ int bytes; /* Bytes in formatted string */ /* * Range check input... */ if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) { if (uri) *uri = '\0'; return (HTTP_URI_STATUS_BAD_ARGUMENTS); } /* * Format the resource string and assemble the URI... */ va_start(ap, resourcef); bytes = vsnprintf(resource, sizeof(resource), resourcef, ap); va_end(ap); if ((size_t)bytes >= sizeof(resource)) { *uri = '\0'; return (HTTP_URI_STATUS_OVERFLOW); } else return (httpAssembleURI(encoding, uri, urilen, scheme, username, host, port, resource)); } /* * 'httpAssembleUUID()' - Assemble a name-based UUID URN conforming to RFC 4122. * * This function creates a unique 128-bit identifying number using the server * name, port number, random data, and optionally an object name and/or object * number. The result is formatted as a UUID URN as defined in RFC 4122. * * The buffer needs to be at least 46 bytes in size. * * @since CUPS 1.7/macOS 10.9@ */ char * /* I - UUID string */ httpAssembleUUID(const char *server, /* I - Server name */ int port, /* I - Port number */ const char *name, /* I - Object name or NULL */ int number, /* I - Object number or 0 */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of buffer */ { char data[1024]; /* Source string for MD5 */ unsigned char md5sum[16]; /* MD5 digest/sum */ /* * Build a version 3 UUID conforming to RFC 4122. * * Start with the MD5 sum of the server, port, object name and * number, and some random data on the end. */ snprintf(data, sizeof(data), "%s:%d:%s:%d:%04x:%04x", server, port, name ? name : server, number, (unsigned)CUPS_RAND() & 0xffff, (unsigned)CUPS_RAND() & 0xffff); cupsHashData("md5", (unsigned char *)data, strlen(data), md5sum, sizeof(md5sum)); /* * Generate the UUID from the MD5... */ snprintf(buffer, bufsize, "urn:uuid:%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-" "%02x%02x%02x%02x%02x%02x", md5sum[0], md5sum[1], md5sum[2], md5sum[3], md5sum[4], md5sum[5], (md5sum[6] & 15) | 0x30, md5sum[7], (md5sum[8] & 0x3f) | 0x40, md5sum[9], md5sum[10], md5sum[11], md5sum[12], md5sum[13], md5sum[14], md5sum[15]); return (buffer); } /* * 'httpDecode64()' - Base64-decode a string. * * This function is deprecated. Use the httpDecode64_2() function instead * which provides buffer length arguments. * * @deprecated@ @exclude all@ */ char * /* O - Decoded string */ httpDecode64(char *out, /* I - String to write to */ const char *in) /* I - String to read from */ { int outlen; /* Output buffer length */ /* * Use the old maximum buffer size for binary compatibility... */ outlen = 512; return (httpDecode64_2(out, &outlen, in)); } /* * 'httpDecode64_2()' - Base64-decode a string. * * The caller must initialize "outlen" to the maximum size of the decoded * string before calling @code httpDecode64_2@. On return "outlen" contains the * decoded length of the string. * * @since CUPS 1.1.21/macOS 10.4@ */ char * /* O - Decoded string */ httpDecode64_2(char *out, /* I - String to write to */ int *outlen, /* IO - Size of output string */ const char *in) /* I - String to read from */ { int pos; /* Bit position */ unsigned base64; /* Value of this character */ char *outptr, /* Output pointer */ *outend; /* End of output buffer */ /* * Range check input... */ if (!out || !outlen || *outlen < 1 || !in) return (NULL); if (!*in) { *out = '\0'; *outlen = 0; return (out); } /* * Convert from base-64 to bytes... */ for (outptr = out, outend = out + *outlen - 1, pos = 0; *in != '\0'; in ++) { /* * Decode this character into a number from 0 to 63... */ if (*in >= 'A' && *in <= 'Z') base64 = (unsigned)(*in - 'A'); else if (*in >= 'a' && *in <= 'z') base64 = (unsigned)(*in - 'a' + 26); else if (*in >= '0' && *in <= '9') base64 = (unsigned)(*in - '0' + 52); else if (*in == '+') base64 = 62; else if (*in == '/') base64 = 63; else if (*in == '=') break; else continue; /* * Store the result in the appropriate chars... */ switch (pos) { case 0 : if (outptr < outend) *outptr = (char)(base64 << 2); pos ++; break; case 1 : if (outptr < outend) *outptr++ |= (char)((base64 >> 4) & 3); if (outptr < outend) *outptr = (char)((base64 << 4) & 255); pos ++; break; case 2 : if (outptr < outend) *outptr++ |= (char)((base64 >> 2) & 15); if (outptr < outend) *outptr = (char)((base64 << 6) & 255); pos ++; break; case 3 : if (outptr < outend) *outptr++ |= (char)base64; pos = 0; break; } } *outptr = '\0'; /* * Return the decoded string and size... */ *outlen = (int)(outptr - out); return (out); } /* * 'httpEncode64()' - Base64-encode a string. * * This function is deprecated. Use the httpEncode64_2() function instead * which provides buffer length arguments. * * @deprecated@ @exclude all@ */ char * /* O - Encoded string */ httpEncode64(char *out, /* I - String to write to */ const char *in) /* I - String to read from */ { return (httpEncode64_2(out, 512, in, (int)strlen(in))); } /* * 'httpEncode64_2()' - Base64-encode a string. * * @since CUPS 1.1.21/macOS 10.4@ */ char * /* O - Encoded string */ httpEncode64_2(char *out, /* I - String to write to */ int outlen, /* I - Maximum size of output string */ const char *in, /* I - String to read from */ int inlen) /* I - Size of input string */ { char *outptr, /* Output pointer */ *outend; /* End of output buffer */ static const char base64[] = /* Base64 characters... */ { "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789" "+/" }; /* * Range check input... */ if (!out || outlen < 1 || !in) return (NULL); /* * Convert bytes to base-64... */ for (outptr = out, outend = out + outlen - 1; inlen > 0; in ++, inlen --) { /* * Encode the up to 3 characters as 4 Base64 numbers... */ if (outptr < outend) *outptr ++ = base64[(in[0] & 255) >> 2]; if (outptr < outend) { if (inlen > 1) *outptr ++ = base64[(((in[0] & 255) << 4) | ((in[1] & 255) >> 4)) & 63]; else *outptr ++ = base64[(in[0] << 4) & 63]; } in ++; inlen --; if (inlen <= 0) { if (outptr < outend) *outptr ++ = '='; if (outptr < outend) *outptr ++ = '='; break; } if (outptr < outend) { if (inlen > 1) *outptr ++ = base64[(((in[0] & 255) << 2) | ((in[1] & 255) >> 6)) & 63]; else *outptr ++ = base64[(in[0] << 2) & 63]; } in ++; inlen --; if (inlen <= 0) { if (outptr < outend) *outptr ++ = '='; break; } if (outptr < outend) *outptr ++ = base64[in[0] & 63]; } *outptr = '\0'; /* * Return the encoded string... */ return (out); } /* * 'httpGetDateString()' - Get a formatted date/time string from a time value. * * @deprecated@ @exclude all@ */ const char * /* O - Date/time string */ httpGetDateString(time_t t) /* I - Time in seconds */ { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ return (httpGetDateString2(t, cg->http_date, sizeof(cg->http_date))); } /* * 'httpGetDateString2()' - Get a formatted date/time string from a time value. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - Date/time string */ httpGetDateString2(time_t t, /* I - Time in seconds */ char *s, /* I - String buffer */ int slen) /* I - Size of string buffer */ { struct tm tdate; /* UNIX date/time data */ gmtime_r(&t, &tdate); snprintf(s, (size_t)slen, "%s, %02d %s %d %02d:%02d:%02d GMT", http_days[tdate.tm_wday], tdate.tm_mday, http_months[tdate.tm_mon], tdate.tm_year + 1900, tdate.tm_hour, tdate.tm_min, tdate.tm_sec); return (s); } /* * 'httpGetDateTime()' - Get a time value from a formatted date/time string. */ time_t /* O - Time in seconds */ httpGetDateTime(const char *s) /* I - Date/time string */ { int i; /* Looping var */ char mon[16]; /* Abbreviated month name */ int day, year; /* Day of month and year */ int hour, min, sec; /* Time */ int days; /* Number of days since 1970 */ static const int normal_days[] = /* Days to a month, normal years */ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; static const int leap_days[] = /* Days to a month, leap years */ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 }; DEBUG_printf(("2httpGetDateTime(s=\"%s\")", s)); /* * Extract the date and time from the formatted string... */ if (sscanf(s, "%*s%d%15s%d%d:%d:%d", &day, mon, &year, &hour, &min, &sec) < 6) return (0); DEBUG_printf(("4httpGetDateTime: day=%d, mon=\"%s\", year=%d, hour=%d, " "min=%d, sec=%d", day, mon, year, hour, min, sec)); /* * Check for invalid year (RFC 7231 says it's 4DIGIT) */ if (year > 9999) return (0); /* * Convert the month name to a number from 0 to 11. */ for (i = 0; i < 12; i ++) if (!_cups_strcasecmp(mon, http_months[i])) break; if (i >= 12) return (0); DEBUG_printf(("4httpGetDateTime: i=%d", i)); /* * Now convert the date and time to a UNIX time value in seconds since * 1970. We can't use mktime() since the timezone may not be UTC but * the date/time string *is* UTC. */ if ((year & 3) == 0 && ((year % 100) != 0 || (year % 400) == 0)) days = leap_days[i] + day - 1; else days = normal_days[i] + day - 1; DEBUG_printf(("4httpGetDateTime: days=%d", days)); days += (year - 1970) * 365 + /* 365 days per year (normally) */ ((year - 1) / 4 - 492) - /* + leap days */ ((year - 1) / 100 - 19) + /* - 100 year days */ ((year - 1) / 400 - 4); /* + 400 year days */ DEBUG_printf(("4httpGetDateTime: days=%d\n", days)); return (days * 86400 + hour * 3600 + min * 60 + sec); } /* * 'httpSeparate()' - Separate a Universal Resource Identifier into its * components. * * This function is deprecated; use the httpSeparateURI() function instead. * * @deprecated@ @exclude all@ */ void httpSeparate(const char *uri, /* I - Universal Resource Identifier */ char *scheme, /* O - Scheme [32] (http, https, etc.) */ char *username, /* O - Username [1024] */ char *host, /* O - Hostname [1024] */ int *port, /* O - Port number to use */ char *resource) /* O - Resource/filename [1024] */ { httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, 32, username, HTTP_MAX_URI, host, HTTP_MAX_URI, port, resource, HTTP_MAX_URI); } /* * 'httpSeparate2()' - Separate a Universal Resource Identifier into its * components. * * This function is deprecated; use the httpSeparateURI() function instead. * * @since CUPS 1.1.21/macOS 10.4@ * @deprecated@ @exclude all@ */ void httpSeparate2(const char *uri, /* I - Universal Resource Identifier */ char *scheme, /* O - Scheme (http, https, etc.) */ int schemelen, /* I - Size of scheme buffer */ char *username, /* O - Username */ int usernamelen, /* I - Size of username buffer */ char *host, /* O - Hostname */ int hostlen, /* I - Size of hostname buffer */ int *port, /* O - Port number to use */ char *resource, /* O - Resource/filename */ int resourcelen) /* I - Size of resource buffer */ { httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, schemelen, username, usernamelen, host, hostlen, port, resource, resourcelen); } /* * 'httpSeparateURI()' - Separate a Universal Resource Identifier into its * components. * * @since CUPS 1.2/macOS 10.5@ */ http_uri_status_t /* O - Result of separation */ httpSeparateURI( http_uri_coding_t decoding, /* I - Decoding flags */ const char *uri, /* I - Universal Resource Identifier */ char *scheme, /* O - Scheme (http, https, etc.) */ int schemelen, /* I - Size of scheme buffer */ char *username, /* O - Username */ int usernamelen, /* I - Size of username buffer */ char *host, /* O - Hostname */ int hostlen, /* I - Size of hostname buffer */ int *port, /* O - Port number to use */ char *resource, /* O - Resource/filename */ int resourcelen) /* I - Size of resource buffer */ { char *ptr, /* Pointer into string... */ *end; /* End of string */ const char *sep; /* Separator character */ http_uri_status_t status; /* Result of separation */ /* * Initialize everything to blank... */ if (scheme && schemelen > 0) *scheme = '\0'; if (username && usernamelen > 0) *username = '\0'; if (host && hostlen > 0) *host = '\0'; if (port) *port = 0; if (resource && resourcelen > 0) *resource = '\0'; /* * Range check input... */ if (!uri || !port || !scheme || schemelen <= 0 || !username || usernamelen <= 0 || !host || hostlen <= 0 || !resource || resourcelen <= 0) return (HTTP_URI_STATUS_BAD_ARGUMENTS); if (!*uri) return (HTTP_URI_STATUS_BAD_URI); /* * Grab the scheme portion of the URI... */ status = HTTP_URI_STATUS_OK; if (!strncmp(uri, "//", 2)) { /* * Workaround for HP IPP client bug... */ strlcpy(scheme, "ipp", (size_t)schemelen); status = HTTP_URI_STATUS_MISSING_SCHEME; } else if (*uri == '/') { /* * Filename... */ strlcpy(scheme, "file", (size_t)schemelen); status = HTTP_URI_STATUS_MISSING_SCHEME; } else { /* * Standard URI with scheme... */ for (ptr = scheme, end = scheme + schemelen - 1; *uri && *uri != ':' && ptr < end;) if (strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789-+.", *uri) != NULL) *ptr++ = *uri++; else break; *ptr = '\0'; if (*uri != ':' || *scheme == '.' || !*scheme) { *scheme = '\0'; return (HTTP_URI_STATUS_BAD_SCHEME); } uri ++; } /* * Set the default port number... */ if (!strcmp(scheme, "http")) *port = 80; else if (!strcmp(scheme, "https")) *port = 443; else if (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) *port = 631; else if (!_cups_strcasecmp(scheme, "lpd")) *port = 515; else if (!strcmp(scheme, "socket")) /* Not yet registered with IANA... */ *port = 9100; else if (strcmp(scheme, "file") && strcmp(scheme, "mailto") && strcmp(scheme, "tel")) status = HTTP_URI_STATUS_UNKNOWN_SCHEME; /* * Now see if we have a hostname... */ if (!strncmp(uri, "//", 2)) { /* * Yes, extract it... */ uri += 2; /* * Grab the username, if any... */ if ((sep = strpbrk(uri, "@/")) != NULL && *sep == '@') { /* * Get a username:password combo... */ uri = http_copy_decode(username, uri, usernamelen, "@", decoding & HTTP_URI_CODING_USERNAME); if (!uri) { *username = '\0'; return (HTTP_URI_STATUS_BAD_USERNAME); } uri ++; } /* * Then the hostname/IP address... */ if (*uri == '[') { /* * Grab IPv6 address... */ uri ++; if (*uri == 'v') { /* * Skip IPvFuture ("vXXXX.") prefix... */ uri ++; while (isxdigit(*uri & 255)) uri ++; if (*uri != '.') { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } uri ++; } uri = http_copy_decode(host, uri, hostlen, "]", decoding & HTTP_URI_CODING_HOSTNAME); if (!uri) { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } /* * Validate value... */ if (*uri != ']') { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } uri ++; for (ptr = host; *ptr; ptr ++) if (*ptr == '+') { /* * Convert zone separator to % and stop here... */ *ptr = '%'; break; } else if (*ptr == '%') { /* * Stop at zone separator (RFC 6874) */ break; } else if (*ptr != ':' && *ptr != '.' && !isxdigit(*ptr & 255)) { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } } else { /* * Validate the hostname or IPv4 address first... */ for (ptr = (char *)uri; *ptr; ptr ++) if (strchr(":?/", *ptr)) break; else if (!strchr("abcdefghijklmnopqrstuvwxyz" /* unreserved */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" /* unreserved */ "0123456789" /* unreserved */ "-._~" /* unreserved */ "%" /* pct-encoded */ "!$&'()*+,;=" /* sub-delims */ "\\", *ptr)) /* SMB domain */ { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } /* * Then copy the hostname or IPv4 address to the buffer... */ uri = http_copy_decode(host, uri, hostlen, ":?/", decoding & HTTP_URI_CODING_HOSTNAME); if (!uri) { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } } /* * Validate hostname for file scheme - only empty and localhost are * acceptable. */ if (!strcmp(scheme, "file") && strcmp(host, "localhost") && host[0]) { *host = '\0'; return (HTTP_URI_STATUS_BAD_HOSTNAME); } /* * See if we have a port number... */ if (*uri == ':') { /* * Yes, collect the port number... */ if (!isdigit(uri[1] & 255)) { *port = 0; return (HTTP_URI_STATUS_BAD_PORT); } *port = (int)strtol(uri + 1, (char **)&uri, 10); if (*port <= 0 || *port > 65535) { *port = 0; return (HTTP_URI_STATUS_BAD_PORT); } if (*uri != '/' && *uri) { *port = 0; return (HTTP_URI_STATUS_BAD_PORT); } } } /* * The remaining portion is the resource string... */ if (*uri == '?' || !*uri) { /* * Hostname but no path... */ status = HTTP_URI_STATUS_MISSING_RESOURCE; *resource = '/'; /* * Copy any query string... */ if (*uri == '?') uri = http_copy_decode(resource + 1, uri, resourcelen - 1, NULL, decoding & HTTP_URI_CODING_QUERY); else resource[1] = '\0'; } else { uri = http_copy_decode(resource, uri, resourcelen, "?", decoding & HTTP_URI_CODING_RESOURCE); if (uri && *uri == '?') { /* * Concatenate any query string... */ char *resptr = resource + strlen(resource); uri = http_copy_decode(resptr, uri, resourcelen - (int)(resptr - resource), NULL, decoding & HTTP_URI_CODING_QUERY); } } if (!uri) { *resource = '\0'; return (HTTP_URI_STATUS_BAD_RESOURCE); } /* * Return the URI separation status... */ return (status); } /* * '_httpSetDigestAuthString()' - Calculate a Digest authentication response * using the appropriate RFC 2068/2617/7616 * algorithm. */ int /* O - 1 on success, 0 on failure */ _httpSetDigestAuthString( http_t *http, /* I - HTTP connection */ const char *nonce, /* I - Nonce value */ const char *method, /* I - HTTP method */ const char *resource) /* I - HTTP resource path */ { char kd[65], /* Final MD5/SHA-256 digest */ ha1[65], /* Hash of username:realm:password */ ha2[65], /* Hash of method:request-uri */ username[HTTP_MAX_VALUE], /* username:password */ *password, /* Pointer to password */ temp[1024], /* Temporary string */ digest[1024]; /* Digest auth data */ unsigned char hash[32]; /* Hash buffer */ size_t hashsize; /* Size of hash */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread globals */ DEBUG_printf(("2_httpSetDigestAuthString(http=%p, nonce=\"%s\", method=\"%s\", resource=\"%s\")", (void *)http, nonce, method, resource)); if (nonce && *nonce && strcmp(nonce, http->nonce)) { strlcpy(http->nonce, nonce, sizeof(http->nonce)); if (nonce == http->nextnonce) http->nextnonce[0] = '\0'; http->nonce_count = 1; } else http->nonce_count ++; strlcpy(username, http->userpass, sizeof(username)); if ((password = strchr(username, ':')) != NULL) *password++ = '\0'; else return (0); if (http->algorithm[0]) { /* * Follow RFC 2617/7616... */ int i; /* Looping var */ char cnonce[65]; /* cnonce value */ const char *hashalg; /* Hashing algorithm */ for (i = 0; i < 64; i ++) cnonce[i] = "0123456789ABCDEF"[CUPS_RAND() & 15]; cnonce[64] = '\0'; if (!_cups_strcasecmp(http->algorithm, "MD5")) { /* * RFC 2617 Digest with MD5 */ if (cg->digestoptions == _CUPS_DIGESTOPTIONS_DENYMD5) { DEBUG_puts("3_httpSetDigestAuthString: MD5 Digest is disabled."); return (0); } hashalg = "md5"; } else if (!_cups_strcasecmp(http->algorithm, "SHA-256")) { /* * RFC 7616 Digest with SHA-256 */ hashalg = "sha2-256"; } else { /* * Some other algorithm we don't support, skip this one... */ return (0); } /* * Calculate digest value... */ /* H(A1) = H(username:realm:password) */ snprintf(temp, sizeof(temp), "%s:%s:%s", username, http->realm, password); hashsize = (size_t)cupsHashData(hashalg, (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, ha1, sizeof(ha1)); /* H(A2) = H(method:uri) */ snprintf(temp, sizeof(temp), "%s:%s", method, resource); hashsize = (size_t)cupsHashData(hashalg, (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, ha2, sizeof(ha2)); /* KD = H(H(A1):nonce:nc:cnonce:qop:H(A2)) */ snprintf(temp, sizeof(temp), "%s:%s:%08x:%s:%s:%s", ha1, http->nonce, http->nonce_count, cnonce, "auth", ha2); hashsize = (size_t)cupsHashData(hashalg, (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, kd, sizeof(kd)); /* * Pass the RFC 2617/7616 WWW-Authenticate header... */ if (http->opaque[0]) snprintf(digest, sizeof(digest), "username=\"%s\", realm=\"%s\", nonce=\"%s\", algorithm=%s, qop=auth, opaque=\"%s\", cnonce=\"%s\", nc=%08x, uri=\"%s\", response=\"%s\"", cupsUser(), http->realm, http->nonce, http->algorithm, http->opaque, cnonce, http->nonce_count, resource, kd); else snprintf(digest, sizeof(digest), "username=\"%s\", realm=\"%s\", nonce=\"%s\", algorithm=%s, qop=auth, cnonce=\"%s\", nc=%08x, uri=\"%s\", response=\"%s\"", username, http->realm, http->nonce, http->algorithm, cnonce, http->nonce_count, resource, kd); } else { /* * Use old RFC 2069 Digest method... */ if (cg->digestoptions == _CUPS_DIGESTOPTIONS_DENYMD5) { DEBUG_puts("3_httpSetDigestAuthString: MD5 Digest is disabled."); return (0); } /* H(A1) = H(username:realm:password) */ snprintf(temp, sizeof(temp), "%s:%s:%s", username, http->realm, password); hashsize = (size_t)cupsHashData("md5", (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, ha1, sizeof(ha1)); /* H(A2) = H(method:uri) */ snprintf(temp, sizeof(temp), "%s:%s", method, resource); hashsize = (size_t)cupsHashData("md5", (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, ha2, sizeof(ha2)); /* KD = H(H(A1):nonce:H(A2)) */ snprintf(temp, sizeof(temp), "%s:%s:%s", ha1, http->nonce, ha2); hashsize = (size_t)cupsHashData("md5", (unsigned char *)temp, strlen(temp), hash, sizeof(hash)); cupsHashString(hash, hashsize, kd, sizeof(kd)); /* * Pass the old RFC 2069 WWW-Authenticate header... */ snprintf(digest, sizeof(digest), "username=\"%s\", realm=\"%s\", nonce=\"%s\", uri=\"%s\", response=\"%s\"", username, http->realm, http->nonce, resource, kd); } httpSetAuthString(http, "Digest", digest); return (1); } /* * 'httpStateString()' - Return the string describing a HTTP state value. * * @since CUPS 2.0/OS 10.10@ */ const char * /* O - State string */ httpStateString(http_state_t state) /* I - HTTP state value */ { if (state < HTTP_STATE_ERROR || state > HTTP_STATE_UNKNOWN_VERSION) return ("HTTP_STATE_???"); else return (http_states[state - HTTP_STATE_ERROR]); } /* * '_httpStatus()' - Return the localized string describing a HTTP status code. * * The returned string is localized using the passed message catalog. */ const char * /* O - Localized status string */ _httpStatus(cups_lang_t *lang, /* I - Language */ http_status_t status) /* I - HTTP status code */ { const char *s; /* Status string */ switch (status) { case HTTP_STATUS_ERROR : s = strerror(errno); break; case HTTP_STATUS_CONTINUE : s = _("Continue"); break; case HTTP_STATUS_SWITCHING_PROTOCOLS : s = _("Switching Protocols"); break; case HTTP_STATUS_OK : s = _("OK"); break; case HTTP_STATUS_CREATED : s = _("Created"); break; case HTTP_STATUS_ACCEPTED : s = _("Accepted"); break; case HTTP_STATUS_NO_CONTENT : s = _("No Content"); break; case HTTP_STATUS_MOVED_PERMANENTLY : s = _("Moved Permanently"); break; case HTTP_STATUS_FOUND : s = _("Found"); break; case HTTP_STATUS_SEE_OTHER : s = _("See Other"); break; case HTTP_STATUS_NOT_MODIFIED : s = _("Not Modified"); break; case HTTP_STATUS_BAD_REQUEST : s = _("Bad Request"); break; case HTTP_STATUS_UNAUTHORIZED : case HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED : s = _("Unauthorized"); break; case HTTP_STATUS_FORBIDDEN : s = _("Forbidden"); break; case HTTP_STATUS_NOT_FOUND : s = _("Not Found"); break; case HTTP_STATUS_REQUEST_TOO_LARGE : s = _("Request Entity Too Large"); break; case HTTP_STATUS_URI_TOO_LONG : s = _("URI Too Long"); break; case HTTP_STATUS_UPGRADE_REQUIRED : s = _("Upgrade Required"); break; case HTTP_STATUS_NOT_IMPLEMENTED : s = _("Not Implemented"); break; case HTTP_STATUS_NOT_SUPPORTED : s = _("Not Supported"); break; case HTTP_STATUS_EXPECTATION_FAILED : s = _("Expectation Failed"); break; case HTTP_STATUS_SERVICE_UNAVAILABLE : s = _("Service Unavailable"); break; case HTTP_STATUS_SERVER_ERROR : s = _("Internal Server Error"); break; case HTTP_STATUS_CUPS_PKI_ERROR : s = _("SSL/TLS Negotiation Error"); break; case HTTP_STATUS_CUPS_WEBIF_DISABLED : s = _("Web Interface is Disabled"); break; default : s = _("Unknown"); break; } return (_cupsLangString(lang, s)); } /* * 'httpStatus()' - Return a short string describing a HTTP status code. * * The returned string is localized to the current POSIX locale and is based * on the status strings defined in RFC 7231. */ const char * /* O - Localized status string */ httpStatus(http_status_t status) /* I - HTTP status code */ { _cups_globals_t *cg = _cupsGlobals(); /* Global data */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); return (_httpStatus(cg->lang_default, status)); } /* * 'httpURIStatusString()' - Return a string describing a URI status code. * * @since CUPS 2.0/OS 10.10@ */ const char * /* O - Localized status string */ httpURIStatusString( http_uri_status_t status) /* I - URI status code */ { const char *s; /* Status string */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); switch (status) { case HTTP_URI_STATUS_OVERFLOW : s = _("URI too large"); break; case HTTP_URI_STATUS_BAD_ARGUMENTS : s = _("Bad arguments to function"); break; case HTTP_URI_STATUS_BAD_RESOURCE : s = _("Bad resource in URI"); break; case HTTP_URI_STATUS_BAD_PORT : s = _("Bad port number in URI"); break; case HTTP_URI_STATUS_BAD_HOSTNAME : s = _("Bad hostname/address in URI"); break; case HTTP_URI_STATUS_BAD_USERNAME : s = _("Bad username in URI"); break; case HTTP_URI_STATUS_BAD_SCHEME : s = _("Bad scheme in URI"); break; case HTTP_URI_STATUS_BAD_URI : s = _("Bad/empty URI"); break; case HTTP_URI_STATUS_OK : s = _("OK"); break; case HTTP_URI_STATUS_MISSING_SCHEME : s = _("Missing scheme in URI"); break; case HTTP_URI_STATUS_UNKNOWN_SCHEME : s = _("Unknown scheme in URI"); break; case HTTP_URI_STATUS_MISSING_RESOURCE : s = _("Missing resource in URI"); break; default: s = _("Unknown"); break; } return (_cupsLangString(cg->lang_default, s)); } #ifndef HAVE_HSTRERROR /* * '_cups_hstrerror()' - hstrerror() emulation function for Solaris and others. */ const char * /* O - Error string */ _cups_hstrerror(int error) /* I - Error number */ { static const char * const errors[] = /* Error strings */ { "OK", "Host not found.", "Try again.", "Unrecoverable lookup error.", "No data associated with name." }; if (error < 0 || error > 4) return ("Unknown hostname lookup error."); else return (errors[error]); } #endif /* !HAVE_HSTRERROR */ /* * '_httpDecodeURI()' - Percent-decode a HTTP request URI. */ char * /* O - Decoded URI or NULL on error */ _httpDecodeURI(char *dst, /* I - Destination buffer */ const char *src, /* I - Source URI */ size_t dstsize) /* I - Size of destination buffer */ { if (http_copy_decode(dst, src, (int)dstsize, NULL, 1)) return (dst); else return (NULL); } /* * '_httpEncodeURI()' - Percent-encode a HTTP request URI. */ char * /* O - Encoded URI */ _httpEncodeURI(char *dst, /* I - Destination buffer */ const char *src, /* I - Source URI */ size_t dstsize) /* I - Size of destination buffer */ { http_copy_encode(dst, src, dst + dstsize - 1, NULL, NULL, 1); return (dst); } /* * '_httpResolveURI()' - Resolve a DNS-SD URI. */ const char * /* O - Resolved URI */ _httpResolveURI( const char *uri, /* I - DNS-SD URI */ char *resolved_uri, /* I - Buffer for resolved URI */ size_t resolved_size, /* I - Size of URI buffer */ int options, /* I - Resolve options */ int (*cb)(void *context), /* I - Continue callback function */ void *context) /* I - Context pointer for callback */ { char scheme[32], /* URI components... */ userpass[256], hostname[1024], resource[1024]; int port; #ifdef DEBUG http_uri_status_t status; /* URI decode status */ #endif /* DEBUG */ DEBUG_printf(("_httpResolveURI(uri=\"%s\", resolved_uri=%p, resolved_size=" CUPS_LLFMT ", options=0x%x, cb=%p, context=%p)", uri, (void *)resolved_uri, CUPS_LLCAST resolved_size, options, (void *)cb, context)); /* * Get the device URI... */ #ifdef DEBUG if ((status = httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource))) < HTTP_URI_STATUS_OK) #else if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) #endif /* DEBUG */ { if (options & _HTTP_RESOLVE_STDERR) _cupsLangPrintFilter(stderr, "ERROR", _("Bad device-uri \"%s\"."), uri); DEBUG_printf(("2_httpResolveURI: httpSeparateURI returned %d!", status)); DEBUG_puts("2_httpResolveURI: Returning NULL"); return (NULL); } /* * Resolve it as needed... */ if (strstr(hostname, "._tcp")) { #ifdef HAVE_DNSSD char *regtype, /* Pointer to type in hostname */ *domain, /* Pointer to domain in hostname */ *uuid, /* Pointer to UUID in URI */ *uuidend; /* Pointer to end of UUID in URI */ _http_uribuf_t uribuf; /* URI buffer */ int offline = 0; /* offline-report state set? */ # ifdef HAVE_MDNSRESPONDER DNSServiceRef ref, /* DNS-SD master service reference */ domainref = NULL,/* DNS-SD service reference for domain */ ippref = NULL, /* DNS-SD service reference for network IPP */ ippsref = NULL, /* DNS-SD service reference for network IPPS */ localref; /* DNS-SD service reference for .local */ int extrasent = 0; /* Send the domain/IPP/IPPS resolves? */ # ifdef HAVE_POLL struct pollfd polldata; /* Polling data */ # else /* select() */ fd_set input_set; /* Input set for select() */ struct timeval stimeout; /* Timeout value for select() */ # endif /* HAVE_POLL */ # elif defined(HAVE_AVAHI) AvahiClient *client; /* Client information */ int error; /* Status */ # endif /* HAVE_MDNSRESPONDER */ if (options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Resolving \"%s\"...\n", hostname); /* * Separate the hostname into service name, registration type, and domain... */ for (regtype = strstr(hostname, "._tcp") - 2; regtype > hostname; regtype --) if (regtype[0] == '.' && regtype[1] == '_') { /* * Found ._servicetype in front of ._tcp... */ *regtype++ = '\0'; break; } if (regtype <= hostname) { DEBUG_puts("2_httpResolveURI: Bad hostname, returning NULL"); return (NULL); } for (domain = strchr(regtype, '.'); domain; domain = strchr(domain + 1, '.')) if (domain[1] != '_') break; if (domain) *domain++ = '\0'; if ((uuid = strstr(resource, "?uuid=")) != NULL) { *uuid = '\0'; uuid += 6; if ((uuidend = strchr(uuid, '&')) != NULL) *uuidend = '\0'; } resolved_uri[0] = '\0'; uribuf.buffer = resolved_uri; uribuf.bufsize = resolved_size; uribuf.options = options; uribuf.resource = resource; uribuf.uuid = uuid; DEBUG_printf(("2_httpResolveURI: Resolving hostname=\"%s\", regtype=\"%s\", " "domain=\"%s\"\n", hostname, regtype, domain)); if (options & _HTTP_RESOLVE_STDERR) { fputs("STATE: +connecting-to-device\n", stderr); fprintf(stderr, "DEBUG: Resolving \"%s\", regtype=\"%s\", " "domain=\"local.\"...\n", hostname, regtype); } uri = NULL; # ifdef HAVE_MDNSRESPONDER if (DNSServiceCreateConnection(&ref) == kDNSServiceErr_NoError) { uint32_t myinterface = kDNSServiceInterfaceIndexAny; /* Lookup on any interface */ if (!strcmp(scheme, "ippusb")) myinterface = kDNSServiceInterfaceIndexLocalOnly; localref = ref; if (DNSServiceResolve(&localref, kDNSServiceFlagsShareConnection, myinterface, hostname, regtype, "local.", http_resolve_cb, &uribuf) == kDNSServiceErr_NoError) { int fds; /* Number of ready descriptors */ time_t timeout, /* Poll timeout */ start_time = time(NULL),/* Start time */ end_time = start_time + 90; /* End time */ while (time(NULL) < end_time) { if (options & _HTTP_RESOLVE_STDERR) _cupsLangPrintFilter(stderr, "INFO", _("Looking for printer.")); if (cb && !(*cb)(context)) { DEBUG_puts("2_httpResolveURI: callback returned 0 (stop)"); break; } /* * Wakeup every 2 seconds to emit a "looking for printer" message... */ if ((timeout = end_time - time(NULL)) > 2) timeout = 2; # ifdef HAVE_POLL polldata.fd = DNSServiceRefSockFD(ref); polldata.events = POLLIN; fds = poll(&polldata, 1, (int)(1000 * timeout)); # else /* select() */ FD_ZERO(&input_set); FD_SET(DNSServiceRefSockFD(ref), &input_set); # ifdef _WIN32 stimeout.tv_sec = (long)timeout; # else stimeout.tv_sec = timeout; # endif /* _WIN32 */ stimeout.tv_usec = 0; fds = select(DNSServiceRefSockFD(ref)+1, &input_set, NULL, NULL, &stimeout); # endif /* HAVE_POLL */ if (fds < 0) { if (errno != EINTR && errno != EAGAIN) { DEBUG_printf(("2_httpResolveURI: poll error: %s", strerror(errno))); break; } } else if (fds == 0) { /* * Wait 2 seconds for a response to the local resolve; if nothing * comes in, do an additional domain resolution... */ if (extrasent == 0 && domain && _cups_strcasecmp(domain, "local.")) { if (options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Resolving \"%s\", regtype=\"%s\", " "domain=\"%s\"...\n", hostname, regtype, domain ? domain : ""); domainref = ref; if (DNSServiceResolve(&domainref, kDNSServiceFlagsShareConnection, myinterface, hostname, regtype, domain, http_resolve_cb, &uribuf) == kDNSServiceErr_NoError) extrasent = 1; } else if (extrasent == 0 && !strcmp(scheme, "ippusb")) { if (options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Resolving \"%s\", regtype=\"_ipps._tcp\", domain=\"local.\"...\n", hostname); ippsref = ref; if (DNSServiceResolve(&ippsref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexAny, hostname, "_ipps._tcp", domain, http_resolve_cb, &uribuf) == kDNSServiceErr_NoError) extrasent = 1; } else if (extrasent == 1 && !strcmp(scheme, "ippusb")) { if (options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Resolving \"%s\", regtype=\"_ipp._tcp\", domain=\"local.\"...\n", hostname); ippref = ref; if (DNSServiceResolve(&ippref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexAny, hostname, "_ipp._tcp", domain, http_resolve_cb, &uribuf) == kDNSServiceErr_NoError) extrasent = 2; } /* * If it hasn't resolved within 5 seconds set the offline-report * printer-state-reason... */ if ((options & _HTTP_RESOLVE_STDERR) && offline == 0 && time(NULL) > (start_time + 5)) { fputs("STATE: +offline-report\n", stderr); offline = 1; } } else { if (DNSServiceProcessResult(ref) == kDNSServiceErr_NoError && resolved_uri[0]) { uri = resolved_uri; break; } } } if (extrasent) { if (domainref) DNSServiceRefDeallocate(domainref); if (ippref) DNSServiceRefDeallocate(ippref); if (ippsref) DNSServiceRefDeallocate(ippsref); } DNSServiceRefDeallocate(localref); } DNSServiceRefDeallocate(ref); } # else /* HAVE_AVAHI */ if ((uribuf.poll = avahi_simple_poll_new()) != NULL) { avahi_simple_poll_set_func(uribuf.poll, http_poll_cb, NULL); if ((client = avahi_client_new(avahi_simple_poll_get(uribuf.poll), 0, http_client_cb, &uribuf, &error)) != NULL) { if (avahi_service_resolver_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, hostname, regtype, "local.", AVAHI_PROTO_UNSPEC, 0, http_resolve_cb, &uribuf) != NULL) { time_t start_time = time(NULL), /* Start time */ end_time = start_time + 90; /* End time */ int pstatus; /* Poll status */ pstatus = avahi_simple_poll_iterate(uribuf.poll, 2000); if (pstatus == 0 && !resolved_uri[0] && domain && _cups_strcasecmp(domain, "local.")) { /* * Resolve for .local hasn't returned anything, try the listed * domain... */ avahi_service_resolver_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, hostname, regtype, domain, AVAHI_PROTO_UNSPEC, 0, http_resolve_cb, &uribuf); } while (!pstatus && !resolved_uri[0] && time(NULL) < end_time) { if ((pstatus = avahi_simple_poll_iterate(uribuf.poll, 2000)) != 0) break; /* * If it hasn't resolved within 5 seconds set the offline-report * printer-state-reason... */ if ((options & _HTTP_RESOLVE_STDERR) && offline == 0 && time(NULL) > (start_time + 5)) { fputs("STATE: +offline-report\n", stderr); offline = 1; } } /* * Collect the result (if we got one). */ if (resolved_uri[0]) uri = resolved_uri; } avahi_client_free(client); } avahi_simple_poll_free(uribuf.poll); } # endif /* HAVE_MDNSRESPONDER */ if (options & _HTTP_RESOLVE_STDERR) { if (uri) { fprintf(stderr, "DEBUG: Resolved as \"%s\"...\n", uri); fputs("STATE: -connecting-to-device,offline-report\n", stderr); } else { fputs("DEBUG: Unable to resolve URI\n", stderr); fputs("STATE: -connecting-to-device\n", stderr); } } #else /* !HAVE_DNSSD */ /* * No DNS-SD support... */ uri = NULL; #endif /* HAVE_DNSSD */ if ((options & _HTTP_RESOLVE_STDERR) && !uri) _cupsLangPrintFilter(stderr, "INFO", _("Unable to find printer.")); } else { /* * Nothing more to do... */ strlcpy(resolved_uri, uri, resolved_size); uri = resolved_uri; } DEBUG_printf(("2_httpResolveURI: Returning \"%s\"", uri)); return (uri); } #ifdef HAVE_AVAHI /* * 'http_client_cb()' - Client callback for resolving URI. */ static void http_client_cb( AvahiClient *client, /* I - Client information */ AvahiClientState state, /* I - Current state */ void *context) /* I - Pointer to URI buffer */ { DEBUG_printf(("7http_client_cb(client=%p, state=%d, context=%p)", client, state, context)); /* * If the connection drops, quit. */ if (state == AVAHI_CLIENT_FAILURE) { _http_uribuf_t *uribuf = (_http_uribuf_t *)context; /* URI buffer */ avahi_simple_poll_quit(uribuf->poll); } } #endif /* HAVE_AVAHI */ /* * 'http_copy_decode()' - Copy and decode a URI. */ static const char * /* O - New source pointer or NULL on error */ http_copy_decode(char *dst, /* O - Destination buffer */ const char *src, /* I - Source pointer */ int dstsize, /* I - Destination size */ const char *term, /* I - Terminating characters */ int decode) /* I - Decode %-encoded values */ { char *ptr, /* Pointer into buffer */ *end; /* End of buffer */ int quoted; /* Quoted character */ /* * Copy the src to the destination until we hit a terminating character * or the end of the string. */ for (ptr = dst, end = dst + dstsize - 1; *src && (!term || !strchr(term, *src)); src ++) if (ptr < end) { if (*src == '%' && decode) { if (isxdigit(src[1] & 255) && isxdigit(src[2] & 255)) { /* * Grab a hex-encoded character... */ src ++; if (isalpha(*src)) quoted = (tolower(*src) - 'a' + 10) << 4; else quoted = (*src - '0') << 4; src ++; if (isalpha(*src)) quoted |= tolower(*src) - 'a' + 10; else quoted |= *src - '0'; *ptr++ = (char)quoted; } else { /* * Bad hex-encoded character... */ *ptr = '\0'; return (NULL); } } else if ((*src & 255) <= 0x20 || (*src & 255) >= 0x7f) { *ptr = '\0'; return (NULL); } else *ptr++ = *src; } *ptr = '\0'; return (src); } /* * 'http_copy_encode()' - Copy and encode a URI. */ static char * /* O - End of current URI */ http_copy_encode(char *dst, /* O - Destination buffer */ const char *src, /* I - Source pointer */ char *dstend, /* I - End of destination buffer */ const char *reserved, /* I - Extra reserved characters */ const char *term, /* I - Terminating characters */ int encode) /* I - %-encode reserved chars? */ { static const char hex[] = "0123456789ABCDEF"; while (*src && dst < dstend) { if (term && *src == *term) return (dst); if (encode && (*src == '%' || *src <= ' ' || *src & 128 || (reserved && strchr(reserved, *src)))) { /* * Hex encode reserved characters... */ if ((dst + 2) >= dstend) break; *dst++ = '%'; *dst++ = hex[(*src >> 4) & 15]; *dst++ = hex[*src & 15]; src ++; } else *dst++ = *src++; } *dst = '\0'; if (*src) return (NULL); else return (dst); } #ifdef HAVE_MDNSRESPONDER /* * 'http_resolve_cb()' - Build a device URI for the given service name. */ static void DNSSD_API http_resolve_cb( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Results flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *fullName, /* I - Full service name */ const char *hostTarget, /* I - Hostname */ uint16_t port, /* I - Port number */ uint16_t txtLen, /* I - Length of TXT record */ const unsigned char *txtRecord, /* I - TXT record data */ void *context) /* I - Pointer to URI buffer */ { _http_uribuf_t *uribuf = (_http_uribuf_t *)context; /* URI buffer */ const char *scheme, /* URI scheme */ *hostptr, /* Pointer into hostTarget */ *reskey, /* "rp" or "rfo" */ *resdefault; /* Default path */ char resource[257], /* Remote path */ fqdn[256]; /* FQDN of the .local name */ const void *value; /* Value from TXT record */ uint8_t valueLen; /* Length of value */ DEBUG_printf(("4http_resolve_cb(sdRef=%p, flags=%x, interfaceIndex=%u, errorCode=%d, fullName=\"%s\", hostTarget=\"%s\", port=%u, txtLen=%u, txtRecord=%p, context=%p)", (void *)sdRef, flags, interfaceIndex, errorCode, fullName, hostTarget, port, txtLen, (void *)txtRecord, context)); /* * If we have a UUID, compare it... */ if (uribuf->uuid && (value = TXTRecordGetValuePtr(txtLen, txtRecord, "UUID", &valueLen)) != NULL) { char uuid[256]; /* UUID value */ memcpy(uuid, value, valueLen); uuid[valueLen] = '\0'; if (_cups_strcasecmp(uuid, uribuf->uuid)) { if (uribuf->options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Found UUID %s, looking for %s.", uuid, uribuf->uuid); DEBUG_printf(("5http_resolve_cb: Found UUID %s, looking for %s.", uuid, uribuf->uuid)); return; } } /* * Figure out the scheme from the full name... */ if (strstr(fullName, "._ipps") || strstr(fullName, "._ipp-tls")) scheme = "ipps"; else if (strstr(fullName, "._ipp") || strstr(fullName, "._fax-ipp")) scheme = "ipp"; else if (strstr(fullName, "._http.")) scheme = "http"; else if (strstr(fullName, "._https.")) scheme = "https"; else if (strstr(fullName, "._printer.")) scheme = "lpd"; else if (strstr(fullName, "._pdl-datastream.")) scheme = "socket"; else scheme = "riousbprint"; /* * Extract the "remote printer" key from the TXT record... */ if ((uribuf->options & _HTTP_RESOLVE_FAXOUT) && (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && !TXTRecordGetValuePtr(txtLen, txtRecord, "printer-type", &valueLen)) { reskey = "rfo"; resdefault = "/ipp/faxout"; } else { reskey = "rp"; resdefault = "/"; } if ((value = TXTRecordGetValuePtr(txtLen, txtRecord, reskey, &valueLen)) != NULL) { if (((char *)value)[0] == '/') { /* * Value (incorrectly) has a leading slash already... */ memcpy(resource, value, valueLen); resource[valueLen] = '\0'; } else { /* * Convert to resource by concatenating with a leading "/"... */ resource[0] = '/'; memcpy(resource + 1, value, valueLen); resource[valueLen + 1] = '\0'; } } else { /* * Use the default value... */ strlcpy(resource, resdefault, sizeof(resource)); } /* * Lookup the FQDN if needed... */ if ((uribuf->options & _HTTP_RESOLVE_FQDN) && (hostptr = hostTarget + strlen(hostTarget) - 7) > hostTarget && !_cups_strcasecmp(hostptr, ".local.")) { /* * OK, we got a .local name but the caller needs a real domain. Start by * getting the IP address of the .local name and then do reverse-lookups... */ http_addrlist_t *addrlist, /* List of addresses */ *addr; /* Current address */ DEBUG_printf(("5http_resolve_cb: Looking up \"%s\".", hostTarget)); snprintf(fqdn, sizeof(fqdn), "%d", ntohs(port)); if ((addrlist = httpAddrGetList(hostTarget, AF_UNSPEC, fqdn)) != NULL) { for (addr = addrlist; addr; addr = addr->next) { int error = getnameinfo(&(addr->addr.addr), (socklen_t)httpAddrLength(&(addr->addr)), fqdn, sizeof(fqdn), NULL, 0, NI_NAMEREQD); if (!error) { DEBUG_printf(("5http_resolve_cb: Found \"%s\".", fqdn)); if ((hostptr = fqdn + strlen(fqdn) - 6) <= fqdn || _cups_strcasecmp(hostptr, ".local")) { hostTarget = fqdn; break; } } #ifdef DEBUG else DEBUG_printf(("5http_resolve_cb: \"%s\" did not resolve: %d", httpAddrString(&(addr->addr), fqdn, sizeof(fqdn)), error)); #endif /* DEBUG */ } httpAddrFreeList(addrlist); } } /* * Assemble the final device URI... */ if ((!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && !strcmp(uribuf->resource, "/cups")) httpAssembleURIf(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarget, ntohs(port), "%s?snmp=false", resource); else httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarget, ntohs(port), resource); DEBUG_printf(("5http_resolve_cb: Resolved URI is \"%s\"...", uribuf->buffer)); } #elif defined(HAVE_AVAHI) /* * 'http_poll_cb()' - Wait for input on the specified file descriptors. * * Note: This function is needed because avahi_simple_poll_iterate is broken * and always uses a timeout of 0 (!) milliseconds. * (Avahi Ticket #364) * * @private@ */ static int /* O - Number of file descriptors matching */ http_poll_cb( struct pollfd *pollfds, /* I - File descriptors */ unsigned int num_pollfds, /* I - Number of file descriptors */ int timeout, /* I - Timeout in milliseconds (used) */ void *context) /* I - User data (unused) */ { (void)timeout; (void)context; return (poll(pollfds, num_pollfds, 2000)); } /* * 'http_resolve_cb()' - Build a device URI for the given service name. */ static void http_resolve_cb( AvahiServiceResolver *resolver, /* I - Resolver (unused) */ AvahiIfIndex interface, /* I - Interface index */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiResolverEvent event, /* I - Event (found, etc.) */ const char *name, /* I - Service name */ const char *type, /* I - Registration type */ const char *domain, /* I - Domain (unused) */ const char *hostTarget, /* I - Hostname */ const AvahiAddress *address, /* I - Address (unused) */ uint16_t port, /* I - Port number */ AvahiStringList *txt, /* I - TXT record */ AvahiLookupResultFlags flags, /* I - Lookup flags (unused) */ void *context) /* I - Pointer to URI buffer */ { _http_uribuf_t *uribuf = (_http_uribuf_t *)context; /* URI buffer */ const char *scheme, /* URI scheme */ *hostptr, /* Pointer into hostTarget */ *reskey, /* "rp" or "rfo" */ *resdefault; /* Default path */ char resource[257], /* Remote path */ fqdn[256]; /* FQDN of the .local name */ char ifname[IF_NAMESIZE]; /* Interface name */ AvahiStringList *pair; /* Current TXT record key/value pair */ char *value; /* Value for "rp" key */ size_t valueLen = 0; /* Length of "rp" key */ DEBUG_printf(("4http_resolve_cb(resolver=%p, " "interface=%d, protocol=%d, event=%d, name=\"%s\", " "type=\"%s\", domain=\"%s\", hostTarget=\"%s\", address=%p, " "port=%d, txt=%p, flags=%d, context=%p)", resolver, interface, protocol, event, name, type, domain, hostTarget, address, port, txt, flags, context)); if (event != AVAHI_RESOLVER_FOUND) { avahi_service_resolver_free(resolver); avahi_simple_poll_quit(uribuf->poll); return; } /* * If we have a UUID, compare it... */ if (uribuf->uuid && (pair = avahi_string_list_find(txt, "UUID")) != NULL) { char uuid[256]; /* UUID value */ avahi_string_list_get_pair(pair, NULL, &value, &valueLen); memcpy(uuid, value, valueLen); uuid[valueLen] = '\0'; avahi_free(value); if (_cups_strcasecmp(uuid, uribuf->uuid)) { if (uribuf->options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Found UUID %s, looking for %s.", uuid, uribuf->uuid); DEBUG_printf(("5http_resolve_cb: Found UUID %s, looking for %s.", uuid, uribuf->uuid)); return; } } /* * Figure out the scheme from the full name... */ if (!strncmp(type, "_ipps.", 6) || !strncmp(type, "_ipp-tls.", 9)) scheme = "ipps"; else if (!strncmp(type, "_ipp.", 5) || !strncmp(type, "_fax-ipp.", 9)) scheme = "ipp"; else if (!strncmp(type, "_http.", 6)) scheme = "http"; else if (!strncmp(type, "_https.", 7)) scheme = "https"; else if (!strncmp(type, "_printer.", 9)) scheme = "lpd"; else if (!strncmp(type, "_pdl-datastream.", 16)) scheme = "socket"; else { avahi_service_resolver_free(resolver); avahi_simple_poll_quit(uribuf->poll); return; } /* * Extract the remote resource key from the TXT record... */ if ((uribuf->options & _HTTP_RESOLVE_FAXOUT) && (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && !avahi_string_list_find(txt, "printer-type")) { reskey = "rfo"; resdefault = "/ipp/faxout"; } else { reskey = "rp"; resdefault = "/"; } if ((pair = avahi_string_list_find(txt, reskey)) != NULL) { avahi_string_list_get_pair(pair, NULL, &value, &valueLen); if (value[0] == '/') { /* * Value (incorrectly) has a leading slash already... */ memcpy(resource, value, valueLen); resource[valueLen] = '\0'; } else { /* * Convert to resource by concatenating with a leading "/"... */ resource[0] = '/'; memcpy(resource + 1, value, valueLen); resource[valueLen + 1] = '\0'; } avahi_free(value); } else { /* * Use the default value... */ strlcpy(resource, resdefault, sizeof(resource)); } /* * Get the name of the interface this is coming from... */ if (!if_indextoname((unsigned int)interface, ifname)) { if (uribuf->options & _HTTP_RESOLVE_STDERR) fprintf(stderr, "DEBUG: Unable to find interface name for interface %d: %s\n", interface, strerror(errno)); DEBUG_printf(("Unable to find interface name for interface %d: %s\n", interface, strerror(errno))); ifname[0] = '\0'; } if (!strcmp(ifname, "lo")) { /* * If this service is registered on loopback interface ("lo"), force the host * name to "localhost"... */ if (uribuf->options & _HTTP_RESOLVE_STDERR) fputs("DEBUG: Service comes from loopback interface \"lo\", setting \"localhost\" as host name.\n", stderr); DEBUG_puts("Service comes from loopback interface \"lo\", setting \"localhost\" as host name."); hostTarget = "localhost"; } else if ((uribuf->options & _HTTP_RESOLVE_FQDN) && (hostptr = hostTarget + strlen(hostTarget) - 6) > hostTarget && !_cups_strcasecmp(hostptr, ".local")) { /* * OK, we got a .local name but the caller needs a real domain. Start by * getting the IP address of the .local name and then do reverse-lookups... */ http_addrlist_t *addrlist, /* List of addresses */ *addr; /* Current address */ DEBUG_printf(("5http_resolve_cb: Looking up \"%s\".", hostTarget)); snprintf(fqdn, sizeof(fqdn), "%d", ntohs(port)); if ((addrlist = httpAddrGetList(hostTarget, AF_UNSPEC, fqdn)) != NULL) { for (addr = addrlist; addr; addr = addr->next) { int error = getnameinfo(&(addr->addr.addr), (socklen_t)httpAddrLength(&(addr->addr)), fqdn, sizeof(fqdn), NULL, 0, NI_NAMEREQD); if (!error) { DEBUG_printf(("5http_resolve_cb: Found \"%s\".", fqdn)); if ((hostptr = fqdn + strlen(fqdn) - 6) <= fqdn || _cups_strcasecmp(hostptr, ".local")) { hostTarget = fqdn; break; } } #ifdef DEBUG else DEBUG_printf(("5http_resolve_cb: \"%s\" did not resolve: %d", httpAddrString(&(addr->addr), fqdn, sizeof(fqdn)), error)); #endif /* DEBUG */ } httpAddrFreeList(addrlist); } } /* * Assemble the final device URI using the resolved hostname... */ httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarget, port, resource); DEBUG_printf(("5http_resolve_cb: Resolved URI is \"%s\".", uribuf->buffer)); avahi_simple_poll_quit(uribuf->poll); } #endif /* HAVE_MDNSRESPONDER */ cups-2.4.7/cups/http-private.h0000644000175000017500000002720014502571342016134 0ustar zdohnalzdohnal/* * Private HTTP definitions for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_HTTP_PRIVATE_H_ # define _CUPS_HTTP_PRIVATE_H_ /* * Include necessary headers... */ # include "config.h" # include # include # include # ifdef __sun # include # endif /* __sun */ # include # ifdef _WIN32 # define _WINSOCK_DEPRECATED_NO_WARNINGS 1 # include # include # define CUPS_SOCAST (const char *) # else # include # include # include # define CUPS_SOCAST # endif /* _WIN32 */ # ifdef HAVE_GSSAPI # ifdef HAVE_GSS_GSSAPI_H # include # elif defined(HAVE_GSSAPI_GSSAPI_H) # include # elif defined(HAVE_GSSAPI_H) # include # endif /* HAVE_GSS_GSSAPI_H */ # ifndef HAVE_GSS_C_NT_HOSTBASED_SERVICE # define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name # endif /* !HAVE_GSS_C_NT_HOSTBASED_SERVICE */ # endif /* HAVE_GSSAPI */ # ifdef HAVE_AUTHORIZATION_H # include # endif /* HAVE_AUTHORIZATION_H */ # if defined(__APPLE__) && !defined(_SOCKLEN_T) /* * macOS 10.2.x does not define socklen_t, and in fact uses an int instead of * unsigned type for length values... */ typedef int socklen_t; # endif /* __APPLE__ && !_SOCKLEN_T */ # include # include "ipp-private.h" # ifdef HAVE_OPENSSL # include # include # include # elif defined(HAVE_GNUTLS) # include # include # elif defined(HAVE_CDSASSL) # include # include # include # ifdef HAVE_SECITEM_H # include # endif /* HAVE_SECITEM_H */ # ifdef HAVE_SECCERTIFICATE_H # include # include # endif /* HAVE_SECCERTIFICATE_H */ # elif defined(HAVE_SSPISSL) # include # include # include # define SECURITY_WIN32 # include # include # endif /* HAVE_OPENSSL */ # ifndef _WIN32 # include # include # ifdef HAVE_GETIFADDRS # include # else # include # ifdef HAVE_SYS_SOCKIO_H # include # endif /* HAVE_SYS_SOCKIO_H */ # endif /* HAVE_GETIFADDRS */ # endif /* !_WIN32 */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define _HTTP_MAX_SBUFFER 65536 /* Size of (de)compression buffer */ # define _HTTP_RESOLVE_DEFAULT 0 /* Just resolve with default options */ # define _HTTP_RESOLVE_STDERR 1 /* Log resolve progress to stderr */ # define _HTTP_RESOLVE_FQDN 2 /* Resolve to a FQDN */ # define _HTTP_RESOLVE_FAXOUT 4 /* Resolve FaxOut service? */ # define _HTTP_TLS_NONE 0 /* No TLS options */ # define _HTTP_TLS_ALLOW_RC4 1 /* Allow RC4 cipher suites */ # define _HTTP_TLS_ALLOW_DH 2 /* Allow DH/DHE key negotiation */ # define _HTTP_TLS_DENY_CBC 4 /* Deny CBC cipher suites */ # define _HTTP_TLS_SET_DEFAULT 128 /* Setting the default TLS options */ # define _HTTP_TLS_SSL3 0 /* Min/max version is SSL/3.0 */ # define _HTTP_TLS_1_0 1 /* Min/max version is TLS/1.0 */ # define _HTTP_TLS_1_1 2 /* Min/max version is TLS/1.1 */ # define _HTTP_TLS_1_2 3 /* Min/max version is TLS/1.2 */ # define _HTTP_TLS_1_3 4 /* Min/max version is TLS/1.3 */ # define _HTTP_TLS_MAX 5 /* Highest known TLS version */ /* * Types and functions for SSL support... */ # ifdef HAVE_OPENSSL typedef SSL *http_tls_t; typedef X509 *http_tls_credentials_t; # elif defined(HAVE_GNUTLS) typedef gnutls_session_t http_tls_t; typedef gnutls_certificate_credentials_t *http_tls_credentials_t; # elif defined(HAVE_CDSASSL) /* * Darwin's Security framework provides its own SSL/TLS context structure * for its IO and protocol management... */ typedef SSLContextRef http_tls_t; typedef CFArrayRef http_tls_credentials_t; # elif defined(HAVE_SSPISSL) /* * Windows' SSPI library gets a CUPS wrapper... */ typedef struct _http_sspi_s /**** SSPI/SSL data structure ****/ { CredHandle creds; /* Credentials */ CtxtHandle context; /* SSL context */ BOOL contextInitialized; /* Is context init'd? */ SecPkgContext_StreamSizes streamSizes;/* SSL data stream sizes */ BYTE *decryptBuffer; /* Data pre-decryption*/ size_t decryptBufferLength; /* Length of decrypt buffer */ size_t decryptBufferUsed; /* Bytes used in buffer */ BYTE *readBuffer; /* Data post-decryption */ int readBufferLength; /* Length of read buffer */ int readBufferUsed; /* Bytes used in buffer */ BYTE *writeBuffer; /* Data pre-encryption */ int writeBufferLength; /* Length of write buffer */ PCCERT_CONTEXT localCert, /* Local certificate */ remoteCert; /* Remote (peer's) certificate */ char error[256]; /* Most recent error message */ } _http_sspi_t; typedef _http_sspi_t *http_tls_t; typedef PCCERT_CONTEXT http_tls_credentials_t; # else /* * Otherwise define stub types since we have no SSL support... */ typedef void *http_tls_t; typedef void *http_tls_credentials_t; # endif /* HAVE_OPENSSL */ typedef enum _http_coding_e /**** HTTP content coding enumeration ****/ { _HTTP_CODING_IDENTITY, /* No content coding */ _HTTP_CODING_GZIP, /* LZ77+gzip decompression */ _HTTP_CODING_DEFLATE, /* LZ77+zlib compression */ _HTTP_CODING_GUNZIP, /* LZ77+gzip decompression */ _HTTP_CODING_INFLATE /* LZ77+zlib decompression */ } _http_coding_t; typedef enum _http_mode_e /**** HTTP mode enumeration ****/ { _HTTP_MODE_CLIENT, /* Client connected to server */ _HTTP_MODE_SERVER /* Server connected (accepted) from client */ } _http_mode_t; # ifndef _HTTP_NO_PRIVATE struct _http_s /**** HTTP connection structure ****/ { int fd; /* File descriptor for this socket */ int blocking; /* To block or not to block */ int error; /* Last error on read */ time_t activity; /* Time since last read/write */ http_state_t state; /* State of client */ http_status_t status; /* Status of last request */ http_version_t version; /* Protocol version */ http_keepalive_t keep_alive; /* Keep-alive supported? */ struct sockaddr_in _hostaddr; /* Address of connected host (deprecated) */ char hostname[HTTP_MAX_HOST], /* Name of connected host */ _fields[HTTP_FIELD_ACCEPT_ENCODING][HTTP_MAX_VALUE]; /* Field values up to Accept-Encoding (deprecated) */ char *data; /* Pointer to data buffer */ http_encoding_t data_encoding; /* Chunked or not */ int _data_remaining;/* Number of bytes left (deprecated) */ int used; /* Number of bytes used in buffer */ char buffer[HTTP_MAX_BUFFER]; /* Buffer for incoming data */ int _auth_type; /* Authentication in use (deprecated) */ unsigned char _md5_state[88]; /* MD5 state (deprecated) */ char nonce[HTTP_MAX_VALUE]; /* Nonce value */ unsigned nonce_count; /* Nonce count */ http_tls_t tls; /* TLS state information */ http_encryption_t encryption; /* Encryption requirements */ /**** New in CUPS 1.1.19 ****/ fd_set *input_set; /* select() set for httpWait() (deprecated) */ http_status_t expect; /* Expect: header */ char *cookie; /* Cookie value(s) */ /**** New in CUPS 1.1.20 ****/ char _authstring[HTTP_MAX_VALUE], /* Current Authorization value (deprecated) */ userpass[HTTP_MAX_VALUE]; /* Username:password string */ int digest_tries; /* Number of tries for digest auth */ /**** New in CUPS 1.2 ****/ off_t data_remaining; /* Number of bytes left */ http_addr_t *hostaddr; /* Current host address and port */ http_addrlist_t *addrlist; /* List of valid addresses */ char wbuffer[HTTP_MAX_BUFFER]; /* Buffer for outgoing data */ int wused; /* Write buffer bytes used */ /**** New in CUPS 1.3 ****/ char *authstring; /* Current Authorization field */ # ifdef HAVE_GSSAPI gss_OID gssmech; /* Authentication mechanism */ gss_ctx_id_t gssctx; /* Authentication context */ gss_name_t gssname; /* Authentication server name */ # endif /* HAVE_GSSAPI */ # ifdef HAVE_AUTHORIZATION_H AuthorizationRef auth_ref; /* Authorization ref */ # endif /* HAVE_AUTHORIZATION_H */ /**** New in CUPS 1.5 ****/ http_tls_credentials_t tls_credentials; /* TLS credentials */ http_timeout_cb_t timeout_cb; /* Timeout callback */ void *timeout_data; /* User data pointer */ double timeout_value; /* Timeout in seconds */ int wait_value; /* httpWait value for timeout */ # ifdef HAVE_GSSAPI char gsshost[256]; /* Hostname for Kerberos */ # endif /* HAVE_GSSAPI */ /**** New in CUPS 1.7 ****/ int tls_upgrade; /* Non-zero if we are doing an upgrade */ _http_mode_t mode; /* _HTTP_MODE_CLIENT or _HTTP_MODE_SERVER */ # ifdef HAVE_LIBZ _http_coding_t coding; /* _HTTP_CODING_xxx */ void *stream; /* (De)compression stream */ unsigned char *sbuffer; /* (De)compression buffer */ # endif /* HAVE_LIBZ */ /**** New in CUPS 2.2.9 ****/ char algorithm[65], /* Algorithm from WWW-Authenticate */ nextnonce[HTTP_MAX_VALUE], /* Next nonce value from Authentication-Info */ opaque[HTTP_MAX_VALUE], /* Opaque value from WWW-Authenticate */ realm[HTTP_MAX_VALUE]; /* Realm from WWW-Authenticate */ /**** New in CUPS 2.3 ****/ char *fields[HTTP_FIELD_MAX], /* Allocated field values */ *default_fields[HTTP_FIELD_MAX]; /* Default field values, if any */ }; # endif /* !_HTTP_NO_PRIVATE */ /* * Some OS's don't have hstrerror(), most notably Solaris... */ # ifndef HAVE_HSTRERROR extern const char *_cups_hstrerror(int error); # define hstrerror _cups_hstrerror # endif /* !HAVE_HSTRERROR */ /* * Prototypes... */ extern void _httpAddrSetPort(http_addr_t *addr, int port) _CUPS_PRIVATE; extern http_tls_credentials_t _httpCreateCredentials(cups_array_t *credentials) _CUPS_PRIVATE; extern char *_httpDecodeURI(char *dst, const char *src, size_t dstsize) _CUPS_PRIVATE; extern void _httpDisconnect(http_t *http) _CUPS_PRIVATE; extern char *_httpEncodeURI(char *dst, const char *src, size_t dstsize) _CUPS_PRIVATE; extern void _httpFreeCredentials(http_tls_credentials_t credentials) _CUPS_PRIVATE; extern const char *_httpResolveURI(const char *uri, char *resolved_uri, size_t resolved_size, int options, int (*cb)(void *context), void *context) _CUPS_PRIVATE; extern int _httpSetDigestAuthString(http_t *http, const char *nonce, const char *method, const char *resource) _CUPS_PRIVATE; extern const char *_httpStatus(cups_lang_t *lang, http_status_t status) _CUPS_PRIVATE; extern void _httpTLSInitialize(void) _CUPS_PRIVATE; extern size_t _httpTLSPending(http_t *http) _CUPS_PRIVATE; extern int _httpTLSRead(http_t *http, char *buf, int len) _CUPS_PRIVATE; extern void _httpTLSSetOptions(int options, int min_version, int max_version) _CUPS_PRIVATE; extern int _httpTLSStart(http_t *http) _CUPS_PRIVATE; extern void _httpTLSStop(http_t *http) _CUPS_PRIVATE; extern int _httpTLSWrite(http_t *http, const char *buf, int len) _CUPS_PRIVATE; extern int _httpUpdate(http_t *http, http_status_t *status) _CUPS_PRIVATE; extern int _httpWait(http_t *http, int msec, int usessl) _CUPS_PRIVATE; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_HTTP_PRIVATE_H_ */ cups-2.4.7/cups/http-addrlist.c0000644000175000017500000005627214502571342016276 0ustar zdohnalzdohnal/* * HTTP address list routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #ifdef HAVE_RESOLV_H # include #endif /* HAVE_RESOLV_H */ #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ #ifndef _WIN32 # include #endif /* _WIN32 */ /* * 'httpAddrConnect()' - Connect to any of the addresses in the list. * * @since CUPS 1.2/macOS 10.5@ @exclude all@ */ http_addrlist_t * /* O - Connected address or NULL on failure */ httpAddrConnect( http_addrlist_t *addrlist, /* I - List of potential addresses */ int *sock) /* O - Socket */ { DEBUG_printf(("httpAddrConnect(addrlist=%p, sock=%p)", (void *)addrlist, (void *)sock)); return (httpAddrConnect2(addrlist, sock, 30000, NULL)); } /* * 'httpAddrConnect2()' - Connect to any of the addresses in the list with a * timeout and optional cancel. * * @since CUPS 1.7/macOS 10.9@ */ http_addrlist_t * /* O - Connected address or NULL on failure */ httpAddrConnect2( http_addrlist_t *addrlist, /* I - List of potential addresses */ int *sock, /* O - Socket */ int msec, /* I - Timeout in milliseconds */ int *cancel) /* I - Pointer to "cancel" variable */ { int val; /* Socket option value */ #ifndef _WIN32 int i, j, /* Looping vars */ flags, /* Socket flags */ result; /* Result from select() or poll() */ #endif /* !_WIN32 */ int remaining; /* Remaining timeout */ int nfds, /* Number of file descriptors */ fds[100]; /* Socket file descriptors */ http_addrlist_t *addrs[100]; /* Addresses */ #ifndef HAVE_POLL int max_fd = -1; /* Highest file descriptor */ #endif /* !HAVE_POLL */ #ifdef O_NONBLOCK # ifdef HAVE_POLL struct pollfd pfds[100]; /* Polled file descriptors */ # else fd_set input_set, /* select() input set */ output_set, /* select() output set */ error_set; /* select() error set */ struct timeval timeout; /* Timeout */ # endif /* HAVE_POLL */ #endif /* O_NONBLOCK */ #ifdef DEBUG # ifndef _WIN32 socklen_t len; /* Length of value */ http_addr_t peer; /* Peer address */ # endif /* !_WIN32 */ char temp[256]; /* Temporary address string */ #endif /* DEBUG */ DEBUG_printf(("httpAddrConnect2(addrlist=%p, sock=%p, msec=%d, cancel=%p)", (void *)addrlist, (void *)sock, msec, (void *)cancel)); if (!sock) { errno = EINVAL; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (NULL); } if (cancel && *cancel) return (NULL); httpInitialize(); if (msec <= 0) msec = INT_MAX; /* * Loop through each address until we connect or run out of addresses... */ nfds = 0; remaining = msec; while (remaining > 0) { if (cancel && *cancel) { while (nfds > 0) { nfds --; httpAddrClose(NULL, fds[nfds]); } return (NULL); } if (addrlist && nfds < (int)(sizeof(fds) / sizeof(fds[0]))) { /* * Create the socket... */ DEBUG_printf(("2httpAddrConnect2: Trying %s:%d...", httpAddrString(&(addrlist->addr), temp, sizeof(temp)), httpAddrPort(&(addrlist->addr)))); if ((fds[nfds] = (int)socket(httpAddrFamily(&(addrlist->addr)), SOCK_STREAM, 0)) < 0) { /* * Don't abort yet, as this could just be an issue with the local * system not being configured with IPv4/IPv6/domain socket enabled. * * Just skip this address... */ addrlist = addrlist->next; continue; } /* * Set options... */ val = 1; setsockopt(fds[nfds], SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val)); #ifdef SO_REUSEPORT val = 1; setsockopt(fds[nfds], SOL_SOCKET, SO_REUSEPORT, CUPS_SOCAST &val, sizeof(val)); #endif /* SO_REUSEPORT */ #ifdef SO_NOSIGPIPE val = 1; setsockopt(fds[nfds], SOL_SOCKET, SO_NOSIGPIPE, CUPS_SOCAST &val, sizeof(val)); #endif /* SO_NOSIGPIPE */ /* * Using TCP_NODELAY improves responsiveness, especially on systems * with a slow loopback interface... */ val = 1; setsockopt(fds[nfds], IPPROTO_TCP, TCP_NODELAY, CUPS_SOCAST &val, sizeof(val)); #ifdef FD_CLOEXEC /* * Close this socket when starting another process... */ fcntl(fds[nfds], F_SETFD, FD_CLOEXEC); #endif /* FD_CLOEXEC */ #ifdef O_NONBLOCK /* * Do an asynchronous connect by setting the socket non-blocking... */ DEBUG_printf(("httpAddrConnect2: Setting non-blocking connect()")); flags = fcntl(fds[nfds], F_GETFL, 0); fcntl(fds[nfds], F_SETFL, flags | O_NONBLOCK); #endif /* O_NONBLOCK */ /* * Then connect... */ if (!connect(fds[nfds], &(addrlist->addr.addr), (socklen_t)httpAddrLength(&(addrlist->addr)))) { DEBUG_printf(("1httpAddrConnect2: Connected to %s:%d...", httpAddrString(&(addrlist->addr), temp, sizeof(temp)), httpAddrPort(&(addrlist->addr)))); #ifdef O_NONBLOCK fcntl(fds[nfds], F_SETFL, flags); #endif /* O_NONBLOCK */ *sock = fds[nfds]; while (nfds > 0) { nfds --; httpAddrClose(NULL, fds[nfds]); } return (addrlist); } #ifdef _WIN32 if (WSAGetLastError() != WSAEINPROGRESS && WSAGetLastError() != WSAEWOULDBLOCK) #else if (errno != EINPROGRESS && errno != EWOULDBLOCK) #endif /* _WIN32 */ { DEBUG_printf(("1httpAddrConnect2: Unable to connect to %s:%d: %s", httpAddrString(&(addrlist->addr), temp, sizeof(temp)), httpAddrPort(&(addrlist->addr)), strerror(errno))); httpAddrClose(NULL, fds[nfds]); addrlist = addrlist->next; continue; } #ifndef _WIN32 fcntl(fds[nfds], F_SETFL, flags); #endif /* !_WIN32 */ #ifndef HAVE_POLL if (fds[nfds] > max_fd) max_fd = fds[nfds]; #endif /* !HAVE_POLL */ addrs[nfds] = addrlist; nfds ++; addrlist = addrlist->next; } if (!addrlist && nfds == 0) { #ifdef _WIN32 errno = WSAEHOSTDOWN; #else errno = EHOSTDOWN; #endif // _WIN32 break; } /* * See if we can connect to any of the addresses so far... */ #ifdef O_NONBLOCK DEBUG_puts("1httpAddrConnect2: Finishing async connect()"); do { if (cancel && *cancel) { /* * Close this socket and return... */ DEBUG_puts("1httpAddrConnect2: Canceled connect()"); while (nfds > 0) { nfds --; httpAddrClose(NULL, fds[nfds]); } *sock = -1; return (NULL); } # ifdef HAVE_POLL for (i = 0; i < nfds; i ++) { pfds[i].fd = fds[i]; pfds[i].events = POLLIN | POLLOUT; } result = poll(pfds, (nfds_t)nfds, addrlist ? 100 : remaining > 250 ? 250 : remaining); DEBUG_printf(("1httpAddrConnect2: poll() returned %d (%d)", result, errno)); # else FD_ZERO(&input_set); for (i = 0; i < nfds; i ++) FD_SET(fds[i], &input_set); output_set = input_set; error_set = input_set; timeout.tv_sec = 0; timeout.tv_usec = (addrlist ? 100 : remaining > 250 ? 250 : remaining) * 1000; result = select(max_fd + 1, &input_set, &output_set, &error_set, &timeout); DEBUG_printf(("1httpAddrConnect2: select() returned %d (%d)", result, errno)); # endif /* HAVE_POLL */ } # ifdef _WIN32 while (result < 0 && (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEWOULDBLOCK)); # else while (result < 0 && (errno == EINTR || errno == EAGAIN)); # endif /* _WIN32 */ if (result > 0) { http_addrlist_t *connaddr = NULL; /* Connected address, if any */ for (i = 0; i < nfds; i ++) { # ifdef HAVE_POLL DEBUG_printf(("pfds[%d].revents=%x\n", i, pfds[i].revents)); # ifdef __sun // Solaris connect runs asynchronously returning EINPROGRESS. Following // poll() does not detect the socket is not connected and returns // POLLIN|POLLOUT. Check the connection status and update error flag. int sres, serr; socklen_t slen = sizeof(serr); sres = getsockopt(fds[i], SOL_SOCKET, SO_ERROR, &serr, &slen); if (sres || serr) { pfds[i].revents |= POLLERR; # ifdef DEBUG DEBUG_printf(("1httpAddrConnect2: getsockopt returned: %d with error: %s", sres, strerror(serr))); # endif } # endif // __sun if (pfds[i].revents && !(pfds[i].revents & (POLLERR | POLLHUP))) # else if (FD_ISSET(fds[i], &input_set) && !FD_ISSET(fds[i], &error_set)) # endif /* HAVE_POLL */ { *sock = fds[i]; connaddr = addrs[i]; # ifdef DEBUG len = sizeof(peer); if (!getpeername(fds[i], (struct sockaddr *)&peer, &len)) DEBUG_printf(("1httpAddrConnect2: Connected to %s:%d...", httpAddrString(&peer, temp, sizeof(temp)), httpAddrPort(&peer))); # endif /* DEBUG */ break; } # ifdef HAVE_POLL else if (pfds[i].revents & (POLLERR | POLLHUP)) # else else if (FD_ISSET(fds[i], &error_set)) # endif /* HAVE_POLL */ { /* * Error on socket, remove from the "pool"... */ httpAddrClose(NULL, fds[i]); nfds --; if (i < nfds) { memmove(fds + i, fds + i + 1, (size_t)(nfds - i) * (sizeof(fds[0]))); memmove(addrs + i, addrs + i + 1, (size_t)(nfds - i) * (sizeof(addrs[0]))); } i --; } } if (connaddr) { /* * Connected on one address, close all of the other sockets we have so * far and return... */ for (j = 0; j < i; j ++) httpAddrClose(NULL, fds[j]); for (j ++; j < nfds; j ++) httpAddrClose(NULL, fds[j]); return (connaddr); } } #endif /* O_NONBLOCK */ if (addrlist) remaining -= 100; else remaining -= 250; } if (remaining <= 0) errno = ETIMEDOUT; while (nfds > 0) { nfds --; httpAddrClose(NULL, fds[nfds]); } #ifdef _WIN32 _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, "Connection failed", 0); #else _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, strerror(errno), 0); #endif /* _WIN32 */ return (NULL); } /* * 'httpAddrCopyList()' - Copy an address list. * * @since CUPS 1.7/macOS 10.9@ */ http_addrlist_t * /* O - New address list or @code NULL@ on error */ httpAddrCopyList( http_addrlist_t *src) /* I - Source address list */ { http_addrlist_t *dst = NULL, /* First list entry */ *prev = NULL, /* Previous list entry */ *current = NULL;/* Current list entry */ while (src) { if ((current = malloc(sizeof(http_addrlist_t))) == NULL) { current = dst; while (current) { prev = current; current = current->next; free(prev); } return (NULL); } memcpy(current, src, sizeof(http_addrlist_t)); current->next = NULL; if (prev) prev->next = current; else dst = current; prev = current; src = src->next; } return (dst); } /* * 'httpAddrFreeList()' - Free an address list. * * @since CUPS 1.2/macOS 10.5@ */ void httpAddrFreeList( http_addrlist_t *addrlist) /* I - Address list to free */ { http_addrlist_t *next; /* Next address in list */ /* * Free each address in the list... */ while (addrlist) { next = addrlist->next; free(addrlist); addrlist = next; } } /* * 'httpAddrGetList()' - Get a list of addresses for a hostname. * * @since CUPS 1.2/macOS 10.5@ */ http_addrlist_t * /* O - List of addresses or NULL */ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for passive listen address */ int family, /* I - Address family or AF_UNSPEC */ const char *service) /* I - Service name or port number */ { http_addrlist_t *first, /* First address in list */ *addr, /* Current address in list */ *temp; /* New address */ char ipv6[64], /* IPv6 address */ *ipv6zone; /* Pointer to zone separator */ int ipv6len; /* Length of IPv6 address */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ #ifdef DEBUG _cups_debug_printf("httpAddrGetList(hostname=\"%s\", family=AF_%s, " "service=\"%s\")\n", hostname ? hostname : "(nil)", family == AF_UNSPEC ? "UNSPEC" : # ifdef AF_LOCAL family == AF_LOCAL ? "LOCAL" : # endif /* AF_LOCAL */ # ifdef AF_INET6 family == AF_INET6 ? "INET6" : # endif /* AF_INET6 */ family == AF_INET ? "INET" : "???", service); #endif /* DEBUG */ httpInitialize(); #ifdef HAVE_RES_INIT /* * STR #2920: Initialize resolver after failure in cups-polld * * If the previous lookup failed, re-initialize the resolver to prevent * temporary network errors from persisting. This *should* be handled by * the resolver libraries, but apparently the glibc folks do not agree. * * We set a flag at the end of this function if we encounter an error that * requires reinitialization of the resolver functions. We then call * res_init() if the flag is set on the next call here or in httpAddrLookup(). */ if (cg->need_res_init) { res_init(); cg->need_res_init = 0; } #endif /* HAVE_RES_INIT */ /* * Lookup the address the best way we can... */ first = addr = NULL; #ifdef AF_LOCAL if (hostname && hostname[0] == '/') { /* * Domain socket address... */ if ((first = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t))) != NULL) { addr = first; first->addr.un.sun_family = AF_LOCAL; strlcpy(first->addr.un.sun_path, hostname, sizeof(first->addr.un.sun_path)); } } else #endif /* AF_LOCAL */ if (!hostname || _cups_strcasecmp(hostname, "localhost")) { #ifdef HAVE_GETADDRINFO struct addrinfo hints, /* Address lookup hints */ *results, /* Address lookup results */ *current; /* Current result */ int error; /* getaddrinfo() error */ /* * Lookup the address as needed... */ memset(&hints, 0, sizeof(hints)); hints.ai_family = family; hints.ai_flags = hostname ? 0 : AI_PASSIVE; hints.ai_socktype = SOCK_STREAM; if (hostname && *hostname == '[') { /* * Remove brackets from numeric IPv6 address... */ if (!strncmp(hostname, "[v1.", 4)) { /* * Copy the newer address format which supports link-local addresses... */ strlcpy(ipv6, hostname + 4, sizeof(ipv6)); if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']') { ipv6[ipv6len] = '\0'; hostname = ipv6; /* * Convert "+zone" in address to "%zone"... */ if ((ipv6zone = strrchr(ipv6, '+')) != NULL) *ipv6zone = '%'; } } else { /* * Copy the regular non-link-local IPv6 address... */ strlcpy(ipv6, hostname + 1, sizeof(ipv6)); if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']') { ipv6[ipv6len] = '\0'; hostname = ipv6; } } } if ((error = getaddrinfo(hostname, service, &hints, &results)) == 0) { /* * Copy the results to our own address list structure... */ for (current = results; current; current = current->ai_next) if (current->ai_family == AF_INET || current->ai_family == AF_INET6) { /* * Copy the address over... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { httpAddrFreeList(first); freeaddrinfo(results); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (NULL); } if (current->ai_family == AF_INET6) memcpy(&(temp->addr.ipv6), current->ai_addr, sizeof(temp->addr.ipv6)); else memcpy(&(temp->addr.ipv4), current->ai_addr, sizeof(temp->addr.ipv4)); /* * Append the address to the list... */ if (!first) first = temp; if (addr) addr->next = temp; addr = temp; } /* * Free the results from getaddrinfo()... */ freeaddrinfo(results); } else { if (error == EAI_FAIL) cg->need_res_init = 1; # ifdef _WIN32 /* Really, Microsoft?!? */ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gai_strerrorA(error), 0); # else _cupsSetError(IPP_STATUS_ERROR_INTERNAL, gai_strerror(error), 0); # endif /* _WIN32 */ } #else if (hostname) { int i; /* Looping vars */ unsigned ip[4]; /* IPv4 address components */ const char *ptr; /* Pointer into hostname */ struct hostent *host; /* Result of lookup */ struct servent *port; /* Port number for service */ int portnum; /* Port number */ /* * Lookup the service... */ if (!service) portnum = 0; else if (isdigit(*service & 255)) portnum = atoi(service); else if ((port = getservbyname(service, NULL)) != NULL) portnum = ntohs(port->s_port); else if (!strcmp(service, "http")) portnum = 80; else if (!strcmp(service, "https")) portnum = 443; else if (!strcmp(service, "ipp") || !strcmp(service, "ipps")) portnum = 631; else if (!strcmp(service, "lpd")) portnum = 515; else if (!strcmp(service, "socket")) portnum = 9100; else return (NULL); /* * This code is needed because some operating systems have a * buggy implementation of gethostbyname() that does not support * IPv4 addresses. If the hostname string is an IPv4 address, then * sscanf() is used to extract the IPv4 components. We then pack * the components into an IPv4 address manually, since the * inet_aton() function is deprecated. We use the htonl() macro * to get the right byte order for the address. */ for (ptr = hostname; isdigit(*ptr & 255) || *ptr == '.'; ptr ++); if (!*ptr) { /* * We have an IPv4 address; break it up and create an IPv4 address... */ if (sscanf(hostname, "%u.%u.%u.%u", ip, ip + 1, ip + 2, ip + 3) == 4 && ip[0] <= 255 && ip[1] <= 255 && ip[2] <= 255 && ip[3] <= 255) { first = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!first) return (NULL); first->addr.ipv4.sin_family = AF_INET; first->addr.ipv4.sin_addr.s_addr = htonl((ip[0] << 24) | (ip[1] << 16) | (ip[2] << 8) | ip[3]); first->addr.ipv4.sin_port = htons(portnum); } } else if ((host = gethostbyname(hostname)) != NULL && # ifdef AF_INET6 (host->h_addrtype == AF_INET || host->h_addrtype == AF_INET6)) # else host->h_addrtype == AF_INET) # endif /* AF_INET6 */ { for (i = 0; host->h_addr_list[i]; i ++) { /* * Copy the address over... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { httpAddrFreeList(first); return (NULL); } # ifdef AF_INET6 if (host->h_addrtype == AF_INET6) { temp->addr.ipv6.sin6_family = AF_INET6; memcpy(&(temp->addr.ipv6.sin6_addr), host->h_addr_list[i], sizeof(temp->addr.ipv6)); temp->addr.ipv6.sin6_port = htons(portnum); } else # endif /* AF_INET6 */ { temp->addr.ipv4.sin_family = AF_INET; memcpy(&(temp->addr.ipv4.sin_addr), host->h_addr_list[i], sizeof(temp->addr.ipv4)); temp->addr.ipv4.sin_port = htons(portnum); } /* * Append the address to the list... */ if (!first) first = temp; if (addr) addr->next = temp; addr = temp; } } else { if (h_errno == NO_RECOVERY) cg->need_res_init = 1; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, hstrerror(h_errno), 0); } } #endif /* HAVE_GETADDRINFO */ } /* * Detect some common errors and handle them sanely... */ if (!addr && (!hostname || !_cups_strcasecmp(hostname, "localhost"))) { struct servent *port; /* Port number for service */ int portnum; /* Port number */ /* * Lookup the service... */ if (!service) portnum = 0; else if (isdigit(*service & 255)) portnum = atoi(service); else if ((port = getservbyname(service, NULL)) != NULL) portnum = ntohs(port->s_port); else if (!strcmp(service, "http")) portnum = 80; else if (!strcmp(service, "https")) portnum = 443; else if (!strcmp(service, "ipp") || !strcmp(service, "ipps")) portnum = 631; else if (!strcmp(service, "lpd")) portnum = 515; else if (!strcmp(service, "socket")) portnum = 9100; else { httpAddrFreeList(first); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown service name."), 1); return (NULL); } if (hostname && !_cups_strcasecmp(hostname, "localhost")) { /* * Unfortunately, some users ignore all of the warnings in the * /etc/hosts file and delete "localhost" from it. If we get here * then we were unable to resolve the name, so use the IPv6 and/or * IPv4 loopback interface addresses... */ #ifdef AF_INET6 if (family != AF_INET) { /* * Add [::1] to the address list... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); httpAddrFreeList(first); return (NULL); } temp->addr.ipv6.sin6_family = AF_INET6; temp->addr.ipv6.sin6_port = htons(portnum); # ifdef _WIN32 temp->addr.ipv6.sin6_addr.u.Byte[15] = 1; # else temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1); # endif /* _WIN32 */ if (!first) first = temp; addr = temp; } if (family != AF_INET6) #endif /* AF_INET6 */ { /* * Add 127.0.0.1 to the address list... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); httpAddrFreeList(first); return (NULL); } temp->addr.ipv4.sin_family = AF_INET; temp->addr.ipv4.sin_port = htons(portnum); temp->addr.ipv4.sin_addr.s_addr = htonl(0x7f000001); if (!first) first = temp; if (addr) addr->next = temp; } } else if (!hostname) { /* * Provide one or more passive listening addresses... */ #ifdef AF_INET6 if (family != AF_INET) { /* * Add [::] to the address list... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); httpAddrFreeList(first); return (NULL); } temp->addr.ipv6.sin6_family = AF_INET6; temp->addr.ipv6.sin6_port = htons(portnum); if (!first) first = temp; addr = temp; } if (family != AF_INET6) #endif /* AF_INET6 */ { /* * Add 0.0.0.0 to the address list... */ temp = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t)); if (!temp) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); httpAddrFreeList(first); return (NULL); } temp->addr.ipv4.sin_family = AF_INET; temp->addr.ipv4.sin_port = htons(portnum); if (!first) first = temp; if (addr) addr->next = temp; } } } /* * Return the address list... */ return (first); } cups-2.4.7/cups/http-addr.c0000644000175000017500000005222314502571342015372 0ustar zdohnalzdohnal/* * HTTP address routines for CUPS. * * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #ifdef HAVE_RESOLV_H # include #endif /* HAVE_RESOLV_H */ #ifdef __APPLE__ # include # ifdef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME # include # endif /* HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME */ #endif /* __APPLE__ */ /* * 'httpAddrAny()' - Check for the "any" address. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 if "any", 0 otherwise */ httpAddrAny(const http_addr_t *addr) /* I - Address to check */ { if (!addr) return (0); #ifdef AF_INET6 if (addr->addr.sa_family == AF_INET6 && IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) return (1); #endif /* AF_INET6 */ if (addr->addr.sa_family == AF_INET && ntohl(addr->ipv4.sin_addr.s_addr) == 0x00000000) return (1); return (0); } /* * 'httpAddrClose()' - Close a socket created by @link httpAddrConnect@ or * @link httpAddrListen@. * * Pass @code NULL@ for sockets created with @link httpAddrConnect2@ and the * listen address for sockets created with @link httpAddrListen@. This function * ensures that domain sockets are removed when closed. * * @since CUPS 2.0/OS 10.10@ */ int /* O - 0 on success, -1 on failure */ httpAddrClose(http_addr_t *addr, /* I - Listen address or @code NULL@ */ int fd) /* I - Socket file descriptor */ { #ifdef _WIN32 if (closesocket(fd)) #else if (close(fd)) #endif /* _WIN32 */ return (-1); #ifdef AF_LOCAL if (addr && addr->addr.sa_family == AF_LOCAL) return (unlink(addr->un.sun_path)); #endif /* AF_LOCAL */ return (0); } /* * 'httpAddrEqual()' - Compare two addresses. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 if equal, 0 if not */ httpAddrEqual(const http_addr_t *addr1, /* I - First address */ const http_addr_t *addr2) /* I - Second address */ { if (!addr1 && !addr2) return (1); if (!addr1 || !addr2) return (0); if (addr1->addr.sa_family != addr2->addr.sa_family) return (0); #ifdef AF_LOCAL if (addr1->addr.sa_family == AF_LOCAL) return (!strcmp(addr1->un.sun_path, addr2->un.sun_path)); #endif /* AF_LOCAL */ #ifdef AF_INET6 if (addr1->addr.sa_family == AF_INET6) return (!memcmp(&(addr1->ipv6.sin6_addr), &(addr2->ipv6.sin6_addr), 16)); #endif /* AF_INET6 */ return (addr1->ipv4.sin_addr.s_addr == addr2->ipv4.sin_addr.s_addr); } /* * 'httpAddrLength()' - Return the length of the address in bytes. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Length in bytes */ httpAddrLength(const http_addr_t *addr) /* I - Address */ { if (!addr) return (0); #ifdef AF_INET6 if (addr->addr.sa_family == AF_INET6) return (sizeof(addr->ipv6)); else #endif /* AF_INET6 */ #ifdef AF_LOCAL if (addr->addr.sa_family == AF_LOCAL) return ((int)(offsetof(struct sockaddr_un, sun_path) + strlen(addr->un.sun_path) + 1)); else #endif /* AF_LOCAL */ if (addr->addr.sa_family == AF_INET) return (sizeof(addr->ipv4)); else return (0); } /* * 'httpAddrListen()' - Create a listening socket bound to the specified * address and port. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - Socket or -1 on error */ httpAddrListen(http_addr_t *addr, /* I - Address to bind to */ int port) /* I - Port number to bind to */ { int fd = -1, /* Socket */ val, /* Socket value */ status; /* Bind status */ /* * Range check input... */ if (!addr || port < 0) return (-1); /* * Make sure the network stack is initialized... */ httpInitialize(); /* * Create the socket and set options... */ if ((fd = socket(addr->addr.sa_family, SOCK_STREAM, 0)) < 0) { _cupsSetHTTPError(HTTP_STATUS_ERROR); return (-1); } val = 1; setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val)); #ifdef IPV6_V6ONLY if (addr->addr.sa_family == AF_INET6) setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, CUPS_SOCAST &val, sizeof(val)); #endif /* IPV6_V6ONLY */ /* * Bind the socket... */ #ifdef AF_LOCAL if (addr->addr.sa_family == AF_LOCAL) { mode_t mask; /* Umask setting */ /* * Remove any existing domain socket file... */ unlink(addr->un.sun_path); /* * Save the current umask and set it to 0 so that all users can access * the domain socket... */ mask = umask(0); /* * Bind the domain socket... */ status = bind(fd, (struct sockaddr *)addr, (socklen_t)httpAddrLength(addr)); /* * Restore the umask and fix permissions... */ umask(mask); chmod(addr->un.sun_path, 0140777); } else #endif /* AF_LOCAL */ { _httpAddrSetPort(addr, port); status = bind(fd, (struct sockaddr *)addr, (socklen_t)httpAddrLength(addr)); } if (status) { _cupsSetHTTPError(HTTP_STATUS_ERROR); close(fd); return (-1); } /* * Listen... */ if (listen(fd, INT_MAX)) { _cupsSetHTTPError(HTTP_STATUS_ERROR); close(fd); return (-1); } /* * Close on exec... */ #ifndef _WIN32 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); #endif /* !_WIN32 */ #ifdef SO_NOSIGPIPE /* * Disable SIGPIPE for this socket. */ val = 1; setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, CUPS_SOCAST &val, sizeof(val)); #endif /* SO_NOSIGPIPE */ return (fd); } /* * 'httpAddrLocalhost()' - Check for the local loopback address. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 if local host, 0 otherwise */ httpAddrLocalhost( const http_addr_t *addr) /* I - Address to check */ { if (!addr) return (1); #ifdef AF_INET6 if (addr->addr.sa_family == AF_INET6 && IN6_IS_ADDR_LOOPBACK(&(addr->ipv6.sin6_addr))) return (1); #endif /* AF_INET6 */ #ifdef AF_LOCAL if (addr->addr.sa_family == AF_LOCAL) return (1); #endif /* AF_LOCAL */ if (addr->addr.sa_family == AF_INET && (ntohl(addr->ipv4.sin_addr.s_addr) & 0xff000000) == 0x7f000000) return (1); return (0); } /* * 'httpAddrLookup()' - Lookup the hostname associated with the address. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Host name */ httpAddrLookup( const http_addr_t *addr, /* I - Address to lookup */ char *name, /* I - Host name buffer */ int namelen) /* I - Size of name buffer */ { _cups_globals_t *cg = _cupsGlobals(); /* Global data */ DEBUG_printf(("httpAddrLookup(addr=%p, name=%p, namelen=%d)", (void *)addr, (void *)name, namelen)); /* * Range check input... */ if (!addr || !name || namelen <= 2) { if (name && namelen >= 1) *name = '\0'; return (NULL); } #ifdef AF_LOCAL if (addr->addr.sa_family == AF_LOCAL) { strlcpy(name, addr->un.sun_path, (size_t)namelen); return (name); } #endif /* AF_LOCAL */ /* * Optimize lookups for localhost/loopback addresses... */ if (httpAddrLocalhost(addr)) { strlcpy(name, "localhost", (size_t)namelen); return (name); } #ifdef HAVE_RES_INIT /* * STR #2920: Initialize resolver after failure in cups-polld * * If the previous lookup failed, re-initialize the resolver to prevent * temporary network errors from persisting. This *should* be handled by * the resolver libraries, but apparently the glibc folks do not agree. * * We set a flag at the end of this function if we encounter an error that * requires reinitialization of the resolver functions. We then call * res_init() if the flag is set on the next call here or in httpAddrLookup(). */ if (cg->need_res_init) { res_init(); cg->need_res_init = 0; } #endif /* HAVE_RES_INIT */ #ifdef HAVE_GETNAMEINFO { /* * STR #2486: httpAddrLookup() fails when getnameinfo() returns EAI_AGAIN * * FWIW, I think this is really a bug in the implementation of * getnameinfo(), but falling back on httpAddrString() is easy to * do... */ int error = getnameinfo(&addr->addr, (socklen_t)httpAddrLength(addr), name, (socklen_t)namelen, NULL, 0, 0); if (error) { if (error == EAI_FAIL) cg->need_res_init = 1; return (httpAddrString(addr, name, namelen)); } } #else { struct hostent *host; /* Host from name service */ # ifdef AF_INET6 if (addr->addr.sa_family == AF_INET6) host = gethostbyaddr((char *)&(addr->ipv6.sin6_addr), sizeof(struct in_addr), AF_INET6); else # endif /* AF_INET6 */ host = gethostbyaddr((char *)&(addr->ipv4.sin_addr), sizeof(struct in_addr), AF_INET); if (host == NULL) { /* * No hostname, so return the raw address... */ if (h_errno == NO_RECOVERY) cg->need_res_init = 1; return (httpAddrString(addr, name, namelen)); } strlcpy(name, host->h_name, (size_t)namelen); } #endif /* HAVE_GETNAMEINFO */ DEBUG_printf(("1httpAddrLookup: returning \"%s\"...", name)); return (name); } /* * 'httpAddrFamily()' - Get the address family of an address. */ int /* O - Address family */ httpAddrFamily(http_addr_t *addr) /* I - Address */ { if (addr) return (addr->addr.sa_family); else return (0); } /* * 'httpAddrPort()' - Get the port number associated with an address. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - Port number */ httpAddrPort(http_addr_t *addr) /* I - Address */ { if (!addr) return (-1); #ifdef AF_INET6 else if (addr->addr.sa_family == AF_INET6) return (ntohs(addr->ipv6.sin6_port)); #endif /* AF_INET6 */ else if (addr->addr.sa_family == AF_INET) return (ntohs(addr->ipv4.sin_port)); else return (0); } /* * '_httpAddrSetPort()' - Set the port number associated with an address. */ void _httpAddrSetPort(http_addr_t *addr, /* I - Address */ int port) /* I - Port */ { if (!addr || port <= 0) return; #ifdef AF_INET6 if (addr->addr.sa_family == AF_INET6) addr->ipv6.sin6_port = htons(port); else #endif /* AF_INET6 */ if (addr->addr.sa_family == AF_INET) addr->ipv4.sin_port = htons(port); } /* * 'httpAddrString()' - Convert an address to a numeric string. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Numeric address string */ httpAddrString(const http_addr_t *addr, /* I - Address to convert */ char *s, /* I - String buffer */ int slen) /* I - Length of string */ { DEBUG_printf(("httpAddrString(addr=%p, s=%p, slen=%d)", (void *)addr, (void *)s, slen)); /* * Range check input... */ if (!addr || !s || slen <= 2) { if (s && slen >= 1) *s = '\0'; return (NULL); } #ifdef AF_LOCAL if (addr->addr.sa_family == AF_LOCAL) { if (addr->un.sun_path[0] == '/') strlcpy(s, addr->un.sun_path, (size_t)slen); else strlcpy(s, "localhost", (size_t)slen); } else #endif /* AF_LOCAL */ if (addr->addr.sa_family == AF_INET) { unsigned temp; /* Temporary address */ temp = ntohl(addr->ipv4.sin_addr.s_addr); snprintf(s, (size_t)slen, "%d.%d.%d.%d", (temp >> 24) & 255, (temp >> 16) & 255, (temp >> 8) & 255, temp & 255); } #ifdef AF_INET6 else if (addr->addr.sa_family == AF_INET6) { char *sptr, /* Pointer into string */ temps[64]; /* Temporary string for address */ # ifdef HAVE_GETNAMEINFO if (getnameinfo(&addr->addr, (socklen_t)httpAddrLength(addr), temps, sizeof(temps), NULL, 0, NI_NUMERICHOST)) { /* * If we get an error back, then the address type is not supported * and we should zero out the buffer... */ s[0] = '\0'; return (NULL); } else if ((sptr = strchr(temps, '%')) != NULL) { /* * Convert "%zone" to "+zone" to match URI form... */ *sptr = '+'; } # else int i; /* Looping var */ unsigned temp; /* Current value */ const char *prefix; /* Prefix for address */ prefix = ""; for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++) { temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); snprintf(sptr, sizeof(temps) - (size_t)(sptr - temps), "%s%x", prefix, (temp >> 16) & 0xffff); prefix = ":"; sptr += strlen(sptr); temp &= 0xffff; if (temp || i == 3 || addr->ipv6.sin6_addr.s6_addr32[i + 1]) { snprintf(sptr, sizeof(temps) - (size_t)(sptr - temps), "%s%x", prefix, temp); sptr += strlen(sptr); } } if (i < 4) { while (i < 4 && !addr->ipv6.sin6_addr.s6_addr32[i]) i ++; if (i < 4) { snprintf(sptr, sizeof(temps) - (size_t)(sptr - temps), "%s:", prefix); prefix = ":"; sptr += strlen(sptr); for (; i < 4; i ++) { temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); if ((temp & 0xffff0000) || (i > 0 && addr->ipv6.sin6_addr.s6_addr32[i - 1])) { snprintf(sptr, sizeof(temps) - (size_t)(sptr - temps), "%s%x", prefix, (temp >> 16) & 0xffff); sptr += strlen(sptr); } snprintf(sptr, sizeof(temps) - (size_t)(sptr - temps), "%s%x", prefix, temp & 0xffff); sptr += strlen(sptr); } } else if (sptr == s) { /* * Empty address... */ strlcpy(temps, "::", sizeof(temps)); } else { /* * Empty at end... */ strlcpy(sptr, "::", sizeof(temps) - (size_t)(sptr - temps)); } } # endif /* HAVE_GETNAMEINFO */ /* * Add "[v1." and "]" around IPv6 address to convert to URI form. */ snprintf(s, (size_t)slen, "[v1.%s]", temps); } #endif /* AF_INET6 */ else strlcpy(s, "UNKNOWN", (size_t)slen); DEBUG_printf(("1httpAddrString: returning \"%s\"...", s)); return (s); } /* * 'httpGetAddress()' - Get the address of the connected peer of a connection. * * For connections created with @link httpConnect2@, the address is for the * server. For connections created with @link httpAccept@, the address is for * the client. * * Returns @code NULL@ if the socket is currently unconnected. * * @since CUPS 2.0/OS 10.10@ */ http_addr_t * /* O - Connected address or @code NULL@ */ httpGetAddress(http_t *http) /* I - HTTP connection */ { if (http) return (http->hostaddr); else return (NULL); } /* * 'httpGetHostByName()' - Lookup a hostname or IPv4 address, and return * address records for the specified name. * * @deprecated@ @exclude all@ */ struct hostent * /* O - Host entry */ httpGetHostByName(const char *name) /* I - Hostname or IP address */ { const char *nameptr; /* Pointer into name */ unsigned ip[4]; /* IP address components */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_printf(("httpGetHostByName(name=\"%s\")", name)); /* * Avoid lookup delays and configuration problems when connecting * to the localhost address... */ if (!strcmp(name, "localhost")) name = "127.0.0.1"; /* * This function is needed because some operating systems have a * buggy implementation of gethostbyname() that does not support * IP addresses. If the first character of the name string is a * number, then sscanf() is used to extract the IP components. * We then pack the components into an IPv4 address manually, * since the inet_aton() function is deprecated. We use the * htonl() macro to get the right byte order for the address. * * We also support domain sockets when supported by the underlying * OS... */ #ifdef AF_LOCAL if (name[0] == '/') { /* * A domain socket address, so make an AF_LOCAL entry and return it... */ cg->hostent.h_name = (char *)name; cg->hostent.h_aliases = NULL; cg->hostent.h_addrtype = AF_LOCAL; cg->hostent.h_length = (int)strlen(name) + 1; cg->hostent.h_addr_list = cg->ip_ptrs; cg->ip_ptrs[0] = (char *)name; cg->ip_ptrs[1] = NULL; DEBUG_puts("1httpGetHostByName: returning domain socket address..."); return (&cg->hostent); } #endif /* AF_LOCAL */ for (nameptr = name; isdigit(*nameptr & 255) || *nameptr == '.'; nameptr ++); if (!*nameptr) { /* * We have an IPv4 address; break it up and provide the host entry * to the caller. */ if (sscanf(name, "%u.%u.%u.%u", ip, ip + 1, ip + 2, ip + 3) != 4) return (NULL); /* Must have 4 numbers */ if (ip[0] > 255 || ip[1] > 255 || ip[2] > 255 || ip[3] > 255) return (NULL); /* Invalid byte ranges! */ cg->ip_addr = htonl((ip[0] << 24) | (ip[1] << 16) | (ip[2] << 8) | ip[3]); /* * Fill in the host entry and return it... */ cg->hostent.h_name = (char *)name; cg->hostent.h_aliases = NULL; cg->hostent.h_addrtype = AF_INET; cg->hostent.h_length = 4; cg->hostent.h_addr_list = cg->ip_ptrs; cg->ip_ptrs[0] = (char *)&(cg->ip_addr); cg->ip_ptrs[1] = NULL; DEBUG_puts("1httpGetHostByName: returning IPv4 address..."); return (&cg->hostent); } else { /* * Use the gethostbyname() function to get the IPv4 address for * the name... */ DEBUG_puts("1httpGetHostByName: returning domain lookup address(es)..."); return (gethostbyname(name)); } } /* * 'httpGetHostname()' - Get the FQDN for the connection or local system. * * When "http" points to a connected socket, return the hostname or * address that was used in the call to httpConnect() or httpConnectEncrypt(), * or the address of the client for the connection from httpAcceptConnection(). * Otherwise, return the FQDN for the local system using both gethostname() * and gethostbyname() to get the local hostname with domain. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - FQDN for connection or system */ httpGetHostname(http_t *http, /* I - HTTP connection or NULL */ char *s, /* I - String buffer for name */ int slen) /* I - Size of buffer */ { if (http) { if (!s || slen <= 1) { if (http->hostname[0] == '/') return ("localhost"); else return (http->hostname); } else if (http->hostname[0] == '/') strlcpy(s, "localhost", (size_t)slen); else strlcpy(s, http->hostname, (size_t)slen); } else { /* * Get the hostname... */ if (!s || slen <= 1) return (NULL); if (gethostname(s, (size_t)slen) < 0) strlcpy(s, "localhost", (size_t)slen); if (!strchr(s, '.')) { #ifdef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME /* * The hostname is not a FQDN, so use the local hostname from the * SystemConfiguration framework... */ SCDynamicStoreRef sc = SCDynamicStoreCreate(kCFAllocatorDefault, CFSTR("libcups"), NULL, NULL); /* System configuration data */ CFStringRef local = sc ? SCDynamicStoreCopyLocalHostName(sc) : NULL; /* Local host name */ char localStr[1024]; /* Local host name C string */ if (local && CFStringGetCString(local, localStr, sizeof(localStr), kCFStringEncodingUTF8)) { /* * Append ".local." to the hostname we get... */ snprintf(s, (size_t)slen, "%s.local.", localStr); } if (local) CFRelease(local); if (sc) CFRelease(sc); #else /* * The hostname is not a FQDN, so look it up... */ struct hostent *host; /* Host entry to get FQDN */ if ((host = gethostbyname(s)) != NULL && host->h_name) { /* * Use the resolved hostname... */ strlcpy(s, host->h_name, (size_t)slen); } #endif /* HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME */ } /* * Make sure .local hostnames end with a period... */ if (strlen(s) > 6 && !strcmp(s + strlen(s) - 6, ".local")) strlcat(s, ".", (size_t)slen); } /* * Convert the hostname to lowercase as needed... */ if (s[0] != '/') { char *ptr; /* Pointer into string */ for (ptr = s; *ptr; ptr ++) *ptr = (char)_cups_tolower((int)*ptr); } /* * Return the hostname with as much domain info as we have... */ return (s); } /* * 'httpResolveHostname()' - Resolve the hostname of the HTTP connection * address. * * @since CUPS 2.0/OS 10.10@ */ const char * /* O - Resolved hostname or @code NULL@ */ httpResolveHostname(http_t *http, /* I - HTTP connection */ char *buffer, /* I - Hostname buffer */ size_t bufsize) /* I - Size of buffer */ { if (!http) return (NULL); if (isdigit(http->hostname[0] & 255) || http->hostname[0] == '[') { char temp[1024]; /* Temporary string */ if (httpAddrLookup(http->hostaddr, temp, sizeof(temp))) strlcpy(http->hostname, temp, sizeof(http->hostname)); else return (NULL); } if (buffer) { if (http->hostname[0] == '/') strlcpy(buffer, "localhost", bufsize); else strlcpy(buffer, http->hostname, bufsize); return (buffer); } else if (http->hostname[0] == '/') return ("localhost"); else return (http->hostname); } cups-2.4.7/cups/hash.c0000644000175000017500000002061314502571342014424 0ustar zdohnalzdohnal// // Hashing functions for CUPS. // // Copyright © 2022-2023 by OpenPrinting. // Copyright © 2015-2019 by Apple Inc. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // #include "cups-private.h" #include "md5-internal.h" #ifdef HAVE_OPENSSL # include #else // HAVE_GNUTLS # include #endif // HAVE_OPENSSL // // Note: While both GNU TLS and OpenSSL offer HMAC functions, they also exclude // certain hashes depending on the version of library and whatever patches are // applied by the OS vendor/Linux distribution. Since printers sometimes rely // on otherwise deprecated/obsolete hash functions for things like PIN printing // ("job-password"), and since such uses already have poor security regardless // of the hash function used, it is more important to provide guaranteed // implementations over some imaginary notion of "guaranteed security"... // // // Local functions... // static ssize_t hash_data(const char *algorithm, unsigned char *hash, size_t hashsize, const void *a, size_t alen, const void *b, size_t blen); // // 'cupsHashData()' - Perform a hash function on the given data. // // This function performs a hash function on the given data. The "algorithm" // argument can be any of the registered, non-deprecated IPP hash algorithms for // the "job-password-encryption" attribute, including "sha" for SHA-1, // "sha2-256" for SHA2-256, etc. // // The "hash" argument points to a buffer of "hashsize" bytes and should be at // least 64 bytes in length for all of the supported algorithms. // // The returned hash is binary data. // ssize_t // O - Size of hash or -1 on error cupsHashData(const char *algorithm, // I - Algorithm name const void *data, // I - Data to hash size_t datalen, // I - Length of data to hash unsigned char *hash, // I - Hash buffer size_t hashsize) // I - Size of hash buffer { if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad arguments to function"), 1); return (-1); } return (hash_data(algorithm, hash, hashsize, data, datalen, NULL, 0)); } // // 'cupsHashString()' - Format a hash value as a hexadecimal string. // // The passed buffer must be at least 2 * hashsize + 1 characters in length. // const char * // O - Formatted string cupsHashString( const unsigned char *hash, // I - Hash size_t hashsize, // I - Size of hash char *buffer, // I - String buffer size_t bufsize) // I - Size of string buffer { char *bufptr = buffer; // Pointer into buffer static const char *hex = "0123456789abcdef"; // Hex characters (lowercase!) // Range check input... if (!hash || hashsize < 1 || !buffer || bufsize < (2 * hashsize + 1)) { if (buffer) *buffer = '\0'; return (NULL); } // Loop until we've converted the whole hash... while (hashsize > 0) { *bufptr++ = hex[*hash >> 4]; *bufptr++ = hex[*hash & 15]; hash ++; hashsize --; } *bufptr = '\0'; return (buffer); } // // 'cupsHMACData()' - Perform a HMAC function on the given data. // // This function performs a HMAC function on the given data with the given key. // The "algorithm" argument can be any of the registered, non-deprecated IPP // hash algorithms for the "job-password-encryption" attribute, including // "sha" for SHA-1, "sha2-256" for SHA2-256, etc. // // The "hmac" argument points to a buffer of "hmacsize" bytes and should be at // least 64 bytes in length for all of the supported algorithms. // // The returned HMAC is binary data. // ssize_t // O - The length of the HMAC or `-1` on error cupsHMACData( const char *algorithm, // I - Hash algorithm const unsigned char *key, // I - Key size_t keylen, // I - Length of key const void *data, // I - Data to hash size_t datalen, // I - Length of data to hash unsigned char *hmac, // I - HMAC buffer size_t hmacsize) // I - Size of HMAC buffer { size_t i, // Looping var b; // Block size unsigned char buffer[128], // Intermediate buffer hash[128], // Hash buffer hkey[128]; // Hashed key buffer ssize_t hashlen; // Length of hash // Range check input... if (!algorithm || !key || keylen == 0 || !data || datalen == 0 || !hmac || hmacsize < 32) return (-1); // Determine the block size... if (!strcmp(algorithm, "sha2-384") || !strncmp(algorithm, "sha2-512", 8)) b = 128; else b = 64; // If the key length is larger than the block size, hash it and use that // instead... if (keylen > b) { if ((hashlen = hash_data(algorithm, hkey, sizeof(hkey), key, keylen, NULL, 0)) < 0) return (-1); key = hkey; keylen = (size_t)hashlen; } // HMAC = H(K' ^ opad, H(K' ^ ipad, data)) // K' = Klen > b ? H(K) : K, padded with 0's // opad = 0x5c, ipad = 0x36 for (i = 0; i < b && i < keylen; i ++) buffer[i] = key[i] ^ 0x36; for (; i < b; i ++) buffer[i] = 0x36; if ((hashlen = hash_data(algorithm, hash, sizeof(hash), buffer, b, data, datalen)) < 0) return (-1); for (i = 0; i < b && i < keylen; i ++) buffer[i] = key[i] ^ 0x5c; for (; i < b; i ++) buffer[i] = 0x5c; return (hash_data(algorithm, hmac, hmacsize, buffer, b, hash, (size_t)hashlen)); } // // 'hash_data()' - Hash up to two blocks of data. // static ssize_t // O - Size of hash or `-1` on error hash_data(const char *algorithm, // I - Algorithm unsigned char *hash, // I - Hash buffer size_t hashsize, // I - Size of hash buffer const void *a, // I - First block size_t alen, // I - Length of first block const void *b, // I - Second block or `NULL` for none size_t blen) // I - Length of second block or `0` for none { unsigned hashlen; // Length of hash unsigned char hashtemp[64]; // Temporary hash buffer #ifdef HAVE_OPENSSL const EVP_MD *md = NULL; // Message digest implementation EVP_MD_CTX *ctx; // Context #else // HAVE_GNUTLS gnutls_digest_algorithm_t alg = GNUTLS_DIG_UNKNOWN; // Algorithm gnutls_hash_hd_t ctx; // Context #endif // HAVE_OPENSSL if (!strcmp(algorithm, "md5")) { // Some versions of GNU TLS and OpenSSL disable MD5 without warning... _cups_md5_state_t state; // MD5 state info if (hashsize < 16) goto too_small; _cupsMD5Init(&state); _cupsMD5Append(&state, a, (int)alen); if (b && blen) _cupsMD5Append(&state, b, (int)blen); _cupsMD5Finish(&state, hash); return (16); } #ifdef HAVE_OPENSSL if (!strcmp(algorithm, "sha")) { // SHA-1 md = EVP_sha1(); } else if (!strcmp(algorithm, "sha2-224")) { md = EVP_sha224(); } else if (!strcmp(algorithm, "sha2-256")) { md = EVP_sha256(); } else if (!strcmp(algorithm, "sha2-384")) { md = EVP_sha384(); } else if (!strcmp(algorithm, "sha2-512")) { md = EVP_sha512(); } if (md) { ctx = EVP_MD_CTX_new(); EVP_DigestInit(ctx, md); EVP_DigestUpdate(ctx, a, alen); if (b && blen) EVP_DigestUpdate(ctx, b, blen); EVP_DigestFinal(ctx, hashtemp, &hashlen); if (hashlen > hashsize) goto too_small; memcpy(hash, hashtemp, hashlen); return ((ssize_t)hashlen); } #else // HAVE_GNUTLS if (!strcmp(algorithm, "sha")) { // SHA-1 alg = GNUTLS_DIG_SHA1; } else if (!strcmp(algorithm, "sha2-224")) { alg = GNUTLS_DIG_SHA224; } else if (!strcmp(algorithm, "sha2-256")) { alg = GNUTLS_DIG_SHA256; } else if (!strcmp(algorithm, "sha2-384")) { alg = GNUTLS_DIG_SHA384; } else if (!strcmp(algorithm, "sha2-512")) { alg = GNUTLS_DIG_SHA512; } if (alg != GNUTLS_DIG_UNKNOWN) { hashlen = gnutls_hash_get_len(alg); if (hashlen > hashsize) goto too_small; gnutls_hash_init(&ctx, alg); gnutls_hash(ctx, a, alen); if (b && blen) gnutls_hash(ctx, b, blen); gnutls_hash_deinit(ctx, hashtemp); memcpy(hash, hashtemp, hashlen); return ((ssize_t)hashlen); } #endif // HAVE_OPENSSL // Unknown hash algorithm... _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown hash algorithm."), 1); return (-1); // We get here if the buffer is too small. too_small: _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Hash buffer too small."), 1); return (-1); } cups-2.4.7/cups/globals.c0000644000175000017500000002324714502571342015132 0ustar zdohnalzdohnal/* * Global variable access routines for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #ifndef _WIN32 # include #endif /* !_WIN32 */ /* * Local globals... */ #ifdef DEBUG static int cups_global_index = 0; /* Next thread number */ #endif /* DEBUG */ static _cups_threadkey_t cups_globals_key = _CUPS_THREADKEY_INITIALIZER; /* Thread local storage key */ #ifdef HAVE_PTHREAD_H static pthread_once_t cups_globals_key_once = PTHREAD_ONCE_INIT; /* One-time initialization object */ #endif /* HAVE_PTHREAD_H */ #if defined(HAVE_PTHREAD_H) || defined(_WIN32) static _cups_mutex_t cups_global_mutex = _CUPS_MUTEX_INITIALIZER; /* Global critical section */ #endif /* HAVE_PTHREAD_H || _WIN32 */ /* * Local functions... */ #ifdef _WIN32 static void cups_fix_path(char *path); #endif /* _WIN32 */ static _cups_globals_t *cups_globals_alloc(void); #if defined(HAVE_PTHREAD_H) || defined(_WIN32) static void cups_globals_free(_cups_globals_t *g); #endif /* HAVE_PTHREAD_H || _WIN32 */ #ifdef HAVE_PTHREAD_H static void cups_globals_init(void); #endif /* HAVE_PTHREAD_H */ /* * '_cupsGlobalLock()' - Lock the global mutex. */ void _cupsGlobalLock(void) { #ifdef HAVE_PTHREAD_H pthread_mutex_lock(&cups_global_mutex); #elif defined(_WIN32) EnterCriticalSection(&cups_global_mutex.m_criticalSection); #endif /* HAVE_PTHREAD_H */ } /* * '_cupsGlobals()' - Return a pointer to thread local storage */ _cups_globals_t * /* O - Pointer to global data */ _cupsGlobals(void) { _cups_globals_t *cg; /* Pointer to global data */ #ifdef HAVE_PTHREAD_H /* * Initialize the global data exactly once... */ pthread_once(&cups_globals_key_once, cups_globals_init); #endif /* HAVE_PTHREAD_H */ /* * See if we have allocated the data yet... */ if ((cg = (_cups_globals_t *)_cupsThreadGetData(cups_globals_key)) == NULL) { /* * No, allocate memory as set the pointer for the key... */ if ((cg = cups_globals_alloc()) != NULL) _cupsThreadSetData(cups_globals_key, cg); } /* * Return the pointer to the data... */ return (cg); } /* * '_cupsGlobalUnlock()' - Unlock the global mutex. */ void _cupsGlobalUnlock(void) { #ifdef HAVE_PTHREAD_H pthread_mutex_unlock(&cups_global_mutex); #elif defined(_WIN32) LeaveCriticalSection(&cups_global_mutex.m_criticalSection); #endif /* HAVE_PTHREAD_H */ } #ifdef _WIN32 /* * 'DllMain()' - Main entry for library. */ BOOL WINAPI /* O - Success/failure */ DllMain(HINSTANCE hinst, /* I - DLL module handle */ DWORD reason, /* I - Reason */ LPVOID reserved) /* I - Unused */ { _cups_globals_t *cg; /* Global data */ (void)hinst; (void)reserved; switch (reason) { case DLL_PROCESS_ATTACH : /* Called on library initialization */ InitializeCriticalSection(&cups_global_mutex.m_criticalSection); if ((cups_globals_key = TlsAlloc()) == TLS_OUT_OF_INDEXES) return (FALSE); break; case DLL_THREAD_DETACH : /* Called when a thread terminates */ if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) cups_globals_free(cg); break; case DLL_PROCESS_DETACH : /* Called when library is unloaded */ if ((cg = (_cups_globals_t *)TlsGetValue(cups_globals_key)) != NULL) cups_globals_free(cg); TlsFree(cups_globals_key); DeleteCriticalSection(&cups_global_mutex.m_criticalSection); break; default: break; } return (TRUE); } #endif /* _WIN32 */ /* * 'cups_globals_alloc()' - Allocate and initialize global data. */ static _cups_globals_t * /* O - Pointer to global data */ cups_globals_alloc(void) { _cups_globals_t *cg = calloc(1, sizeof(_cups_globals_t)); /* Pointer to global data */ #ifdef _WIN32 HKEY key; /* Registry key */ DWORD size; /* Size of string */ static char homedir[1024] = "", /* Home directory */ installdir[1024] = "", /* Install directory */ confdir[1024] = "", /* Server root directory */ localedir[1024] = ""; /* Locale directory */ #endif /* _WIN32 */ if (!cg) return (NULL); /* * Clear the global storage and set the default encryption and password * callback values... */ cg->encryption = (http_encryption_t)-1; cg->password_cb = (cups_password_cb2_t)_cupsGetPassword; cg->trust_first = -1; cg->any_root = -1; cg->expired_certs = -1; cg->validate_certs = -1; #ifdef DEBUG /* * Friendly thread ID for debugging... */ cg->thread_id = ++ cups_global_index; #endif /* DEBUG */ /* * Then set directories as appropriate... */ #ifdef _WIN32 if (!installdir[0]) { /* * Open the registry... */ strlcpy(installdir, "C:/Program Files/cups.org", sizeof(installdir)); if (!RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE\\cups.org", 0, KEY_READ, &key)) { /* * Grab the installation directory... */ char *ptr; /* Pointer into installdir */ size = sizeof(installdir); RegQueryValueExA(key, "installdir", NULL, NULL, installdir, &size); RegCloseKey(key); for (ptr = installdir; *ptr;) { if (*ptr == '\\') { if (ptr[1]) *ptr++ = '/'; else *ptr = '\0'; /* Strip trailing \ */ } else if (*ptr == '/' && !ptr[1]) *ptr = '\0'; /* Strip trailing / */ else ptr ++; } } snprintf(confdir, sizeof(confdir), "%s/conf", installdir); snprintf(localedir, sizeof(localedir), "%s/locale", installdir); } if ((cg->cups_datadir = getenv("CUPS_DATADIR")) == NULL) cg->cups_datadir = installdir; if ((cg->cups_serverbin = getenv("CUPS_SERVERBIN")) == NULL) cg->cups_serverbin = installdir; if ((cg->cups_serverroot = getenv("CUPS_SERVERROOT")) == NULL) cg->cups_serverroot = confdir; if ((cg->cups_statedir = getenv("CUPS_STATEDIR")) == NULL) cg->cups_statedir = confdir; if ((cg->localedir = getenv("LOCALEDIR")) == NULL) cg->localedir = localedir; if (!homedir[0]) { const char *userprofile = getenv("USERPROFILE"); // User profile (home) directory char *homeptr; // Pointer into homedir DEBUG_printf(("cups_globals_alloc: USERPROFILE=\"%s\"", userprofile)); if (!strncmp(userprofile, "C:\\", 3)) userprofile += 2; strlcpy(homedir, userprofile, sizeof(homedir)); for (homeptr = homedir; *homeptr; homeptr ++) { // Convert back slashes to forward slashes if (*homeptr == '\\') *homeptr = '/'; } DEBUG_printf(("cups_globals_alloc: homedir=\"%s\"", homedir)); } cg->home = homedir; #else # ifdef HAVE_GETEUID if ((geteuid() != getuid() && getuid()) || getegid() != getgid()) # else if (!getuid()) # endif /* HAVE_GETEUID */ { /* * When running setuid/setgid, don't allow environment variables to override * the directories... */ cg->cups_datadir = CUPS_DATADIR; cg->cups_serverbin = CUPS_SERVERBIN; cg->cups_serverroot = CUPS_SERVERROOT; cg->cups_statedir = CUPS_STATEDIR; cg->localedir = CUPS_LOCALEDIR; } else { /* * Allow directories to be overridden by environment variables. */ if ((cg->cups_datadir = getenv("CUPS_DATADIR")) == NULL) cg->cups_datadir = CUPS_DATADIR; if ((cg->cups_serverbin = getenv("CUPS_SERVERBIN")) == NULL) cg->cups_serverbin = CUPS_SERVERBIN; if ((cg->cups_serverroot = getenv("CUPS_SERVERROOT")) == NULL) cg->cups_serverroot = CUPS_SERVERROOT; if ((cg->cups_statedir = getenv("CUPS_STATEDIR")) == NULL) cg->cups_statedir = CUPS_STATEDIR; if ((cg->localedir = getenv("LOCALEDIR")) == NULL) cg->localedir = CUPS_LOCALEDIR; cg->home = getenv("HOME"); # ifdef __APPLE__ /* Sandboxing now exposes the container as the home directory */ if (cg->home && strstr(cg->home, "/Library/Containers/")) cg->home = NULL; # endif /* !__APPLE__ */ } if (!cg->home) { struct passwd pw; /* User info */ struct passwd *result; /* Auxiliary pointer */ getpwuid_r(getuid(), &pw, cg->pw_buf, PW_BUF_SIZE, &result); if (result) cg->home = _cupsStrAlloc(pw.pw_dir); } #endif /* _WIN32 */ return (cg); } /* * 'cups_globals_free()' - Free global data. */ #if defined(HAVE_PTHREAD_H) || defined(_WIN32) static void cups_globals_free(_cups_globals_t *cg) /* I - Pointer to global data */ { _cups_buffer_t *buffer, /* Current read/write buffer */ *next; /* Next buffer */ if (cg->last_status_message) _cupsStrFree(cg->last_status_message); for (buffer = cg->cups_buffers; buffer; buffer = next) { next = buffer->next; free(buffer); } cupsArrayDelete(cg->leg_size_lut); cupsArrayDelete(cg->ppd_size_lut); cupsArrayDelete(cg->pwg_size_lut); httpClose(cg->http); #ifdef HAVE_TLS _httpFreeCredentials(cg->tls_credentials); #endif /* HAVE_TLS */ cupsFileClose(cg->stdio_files[0]); cupsFileClose(cg->stdio_files[1]); cupsFileClose(cg->stdio_files[2]); cupsFreeOptions(cg->cupsd_num_settings, cg->cupsd_settings); if (cg->raster_error.start) free(cg->raster_error.start); free(cg); } #endif /* HAVE_PTHREAD_H || _WIN32 */ #ifdef HAVE_PTHREAD_H /* * 'cups_globals_init()' - Initialize environment variables. */ static void cups_globals_init(void) { /* * Register the global data for this thread... */ pthread_key_create(&cups_globals_key, (void (*)(void *))cups_globals_free); } #endif /* HAVE_PTHREAD_H */ cups-2.4.7/cups/getputfile.c0000644000175000017500000002666414502571342015665 0ustar zdohnalzdohnal/* * Get/put file functions for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ /* * 'cupsGetFd()' - Get a file from the server. * * This function returns @code HTTP_STATUS_OK@ when the file is successfully retrieved. * * @since CUPS 1.1.20/macOS 10.4@ */ http_status_t /* O - HTTP status */ cupsGetFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ int fd) /* I - File descriptor */ { ssize_t bytes; /* Number of bytes read */ char buffer[8192]; /* Buffer for file */ http_status_t status; /* HTTP status from server */ char if_modified_since[HTTP_MAX_VALUE]; /* If-Modified-Since header */ int new_auth = 0; /* Using new auth information? */ int digest; /* Are we using Digest authentication? */ /* * Range check input... */ DEBUG_printf(("cupsGetFd(http=%p, resource=\"%s\", fd=%d)", (void *)http, resource, fd)); if (!resource || fd < 0) { if (http) http->error = EINVAL; return (HTTP_STATUS_ERROR); } if (!http) if ((http = _cupsConnect()) == NULL) return (HTTP_STATUS_SERVICE_UNAVAILABLE); /* * Then send GET requests to the HTTP server... */ strlcpy(if_modified_since, httpGetField(http, HTTP_FIELD_IF_MODIFIED_SINCE), sizeof(if_modified_since)); do { if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { httpClearFields(http); if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } } httpClearFields(http); httpSetField(http, HTTP_FIELD_IF_MODIFIED_SINCE, if_modified_since); digest = http->authstring && !strncmp(http->authstring, "Digest ", 7); if (digest && !new_auth) { /* * Update the Digest authentication string... */ _httpSetDigestAuthString(http, http->nextnonce, "GET", resource); } #ifdef HAVE_GSSAPI if (http->authstring && !strncmp(http->authstring, "Negotiate", 9) && !new_auth) { /* * Do not use cached Kerberos credentials since they will look like a * "replay" attack... */ _cupsSetNegotiateAuthString(http, "GET", resource); } #endif /* HAVE_GSSAPI */ httpSetField(http, HTTP_FIELD_AUTHORIZATION, http->authstring); if (httpGet(http, resource)) { if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } else { status = HTTP_STATUS_UNAUTHORIZED; continue; } } new_auth = 0; while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE); if (status == HTTP_STATUS_UNAUTHORIZED) { /* * Flush any error message... */ httpFlush(http); /* * See if we can do authentication... */ new_auth = 1; if (cupsDoAuthentication(http, "GET", resource)) { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break; } if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } continue; } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* Flush any error message... */ httpFlush(http); /* Reconnect... */ if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } /* Upgrade with encryption... */ httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); /* Try again, this time with encryption enabled... */ continue; } #endif /* HAVE_TLS */ } while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED); /* * See if we actually got the file or an error... */ if (status == HTTP_STATUS_OK) { /* * Yes, copy the file... */ while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) write(fd, buffer, (size_t)bytes); } else { _cupsSetHTTPError(status); httpFlush(http); } /* * Return the request status... */ DEBUG_printf(("1cupsGetFd: Returning %d...", status)); return (status); } /* * 'cupsGetFile()' - Get a file from the server. * * This function returns @code HTTP_STATUS_OK@ when the file is successfully retrieved. * * @since CUPS 1.1.20/macOS 10.4@ */ http_status_t /* O - HTTP status */ cupsGetFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ const char *filename) /* I - Filename */ { int fd; /* File descriptor */ http_status_t status; /* Status */ /* * Range check input... */ if (!http || !resource || !filename) { if (http) http->error = EINVAL; return (HTTP_STATUS_ERROR); } /* * Create the file... */ if ((fd = open(filename, O_WRONLY | O_EXCL | O_TRUNC)) < 0) { /* * Couldn't open the file! */ http->error = errno; return (HTTP_STATUS_ERROR); } /* * Get the file... */ status = cupsGetFd(http, resource, fd); /* * If the file couldn't be gotten, then remove the file... */ close(fd); if (status != HTTP_STATUS_OK) unlink(filename); /* * Return the HTTP status code... */ return (status); } /* * 'cupsPutFd()' - Put a file on the server. * * This function returns @code HTTP_STATUS_CREATED@ when the file is stored * successfully. * * @since CUPS 1.1.20/macOS 10.4@ */ http_status_t /* O - HTTP status */ cupsPutFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ int fd) /* I - File descriptor */ { ssize_t bytes; /* Number of bytes read */ int retries; /* Number of retries */ char buffer[8192]; /* Buffer for file */ http_status_t status; /* HTTP status from server */ int new_auth = 0; /* Using new auth information? */ int digest; /* Are we using Digest authentication? */ /* * Range check input... */ DEBUG_printf(("cupsPutFd(http=%p, resource=\"%s\", fd=%d)", (void *)http, resource, fd)); if (!resource || fd < 0) { if (http) http->error = EINVAL; return (HTTP_STATUS_ERROR); } if (!http) if ((http = _cupsConnect()) == NULL) return (HTTP_STATUS_SERVICE_UNAVAILABLE); /* * Then send PUT requests to the HTTP server... */ retries = 0; do { if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTION), "close")) { httpClearFields(http); if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } } DEBUG_printf(("2cupsPutFd: starting attempt, authstring=\"%s\"...", http->authstring)); httpClearFields(http); httpSetField(http, HTTP_FIELD_TRANSFER_ENCODING, "chunked"); httpSetExpect(http, HTTP_STATUS_CONTINUE); digest = http->authstring && !strncmp(http->authstring, "Digest ", 7); if (digest && !new_auth) { /* * Update the Digest authentication string... */ _httpSetDigestAuthString(http, http->nextnonce, "PUT", resource); } #ifdef HAVE_GSSAPI if (http->authstring && !strncmp(http->authstring, "Negotiate", 9) && !new_auth) { /* * Do not use cached Kerberos credentials since they will look like a * "replay" attack... */ _cupsSetNegotiateAuthString(http, "PUT", resource); } #endif /* HAVE_GSSAPI */ httpSetField(http, HTTP_FIELD_AUTHORIZATION, http->authstring); if (httpPut(http, resource)) { if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } else { status = HTTP_STATUS_UNAUTHORIZED; continue; } } /* * Wait up to 1 second for a 100-continue response... */ if (httpWait(http, 1000)) status = httpUpdate(http); else status = HTTP_STATUS_CONTINUE; if (status == HTTP_STATUS_CONTINUE) { /* * Copy the file... */ lseek(fd, 0, SEEK_SET); while ((bytes = read(fd, buffer, sizeof(buffer))) > 0) if (httpCheck(http)) { if ((status = httpUpdate(http)) != HTTP_STATUS_CONTINUE) break; } else httpWrite2(http, buffer, (size_t)bytes); } if (status == HTTP_STATUS_CONTINUE) { httpWrite2(http, buffer, 0); while ((status = httpUpdate(http)) == HTTP_STATUS_CONTINUE); } if (status == HTTP_STATUS_ERROR && !retries) { DEBUG_printf(("2cupsPutFd: retry on status %d", status)); retries ++; status = HTTP_STATUS_NONE; /* Flush any error message... */ httpFlush(http); /* Reconnect... */ if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } /* Try again... */ continue; } DEBUG_printf(("2cupsPutFd: status=%d", status)); new_auth = 0; if (status == HTTP_STATUS_UNAUTHORIZED) { /* * Flush any error message... */ httpFlush(http); /* * See if we can do authentication... */ new_auth = 1; if (cupsDoAuthentication(http, "PUT", resource)) { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break; } if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } continue; } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* Flush any error message... */ httpFlush(http); /* Reconnect... */ if (httpReconnect2(http, 30000, NULL)) { status = HTTP_STATUS_ERROR; break; } /* Upgrade with encryption... */ httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); /* Try again, this time with encryption enabled... */ continue; } #endif /* HAVE_TLS */ } while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED || status == HTTP_STATUS_NONE); /* * See if we actually put the file or an error... */ if (status != HTTP_STATUS_CREATED) { _cupsSetHTTPError(status); httpFlush(http); } DEBUG_printf(("1cupsPutFd: Returning %d...", status)); return (status); } /* * 'cupsPutFile()' - Put a file on the server. * * This function returns @code HTTP_CREATED@ when the file is stored * successfully. * * @since CUPS 1.1.20/macOS 10.4@ */ http_status_t /* O - HTTP status */ cupsPutFile(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *resource, /* I - Resource name */ const char *filename) /* I - Filename */ { int fd; /* File descriptor */ http_status_t status; /* Status */ /* * Range check input... */ if (!http || !resource || !filename) { if (http) http->error = EINVAL; return (HTTP_STATUS_ERROR); } /* * Open the local file... */ if ((fd = open(filename, O_RDONLY)) < 0) { /* * Couldn't open the file! */ http->error = errno; return (HTTP_STATUS_ERROR); } /* * Put the file... */ status = cupsPutFd(http, resource, fd); close(fd); return (status); } cups-2.4.7/cups/getifaddrs.c0000644000175000017500000001224714502571342015621 0ustar zdohnalzdohnal/* * Network interface functions for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "getifaddrs-internal.h" #ifndef HAVE_GETIFADDRS /* * '_cups_getifaddrs()' - Get a list of network interfaces on the system. */ int /* O - 0 on success, -1 on error */ _cups_getifaddrs(struct ifaddrs **addrs)/* O - List of interfaces */ { int sock; /* Socket */ char buffer[65536], /* Buffer for address info */ *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ struct ifconf conf; /* Interface configurations */ struct sockaddr addr; /* Address data */ struct ifreq *ifp; /* Interface data */ int ifpsize; /* Size of interface data */ struct ifaddrs *temp; /* Pointer to current interface */ struct ifreq request; /* Interface request */ /* * Start with an empty list... */ if (addrs == NULL) return (-1); *addrs = NULL; /* * Create a UDP socket to get the interface data... */ memset (&addr, 0, sizeof(addr)); if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) return (-1); /* * Try to get the list of interfaces... */ conf.ifc_len = sizeof(buffer); conf.ifc_buf = buffer; if (ioctl(sock, SIOCGIFCONF, &conf) < 0) { /* * Couldn't get the list of interfaces... */ close(sock); return (-1); } /* * OK, got the list of interfaces, now lets step through the * buffer to pull them out... */ # ifdef HAVE_STRUCT_SOCKADDR_SA_LEN # define sockaddr_len(a) ((a)->sa_len) # else # define sockaddr_len(a) (sizeof(struct sockaddr)) # endif /* HAVE_STRUCT_SOCKADDR_SA_LEN */ for (bufptr = buffer, bufend = buffer + conf.ifc_len; bufptr < bufend; bufptr += ifpsize) { /* * Get the current interface information... */ ifp = (struct ifreq *)bufptr; ifpsize = sizeof(ifp->ifr_name) + sockaddr_len(&(ifp->ifr_addr)); if (ifpsize < sizeof(struct ifreq)) ifpsize = sizeof(struct ifreq); memset(&request, 0, sizeof(request)); memcpy(request.ifr_name, ifp->ifr_name, sizeof(ifp->ifr_name)); /* * Check the status of the interface... */ if (ioctl(sock, SIOCGIFFLAGS, &request) < 0) continue; /* * Allocate memory for a single interface record... */ if ((temp = calloc(1, sizeof(struct ifaddrs))) == NULL) { /* * Unable to allocate memory... */ close(sock); return (-1); } /* * Add this record to the front of the list and copy the name, flags, * and network address... */ temp->ifa_next = *addrs; *addrs = temp; temp->ifa_name = strdup(ifp->ifr_name); temp->ifa_flags = request.ifr_flags; if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) memcpy(temp->ifa_addr, &(ifp->ifr_addr), sockaddr_len(&(ifp->ifr_addr))); /* * Try to get the netmask for the interface... */ if (!ioctl(sock, SIOCGIFNETMASK, &request)) { /* * Got it, make a copy... */ if ((temp->ifa_netmask = calloc(1, sizeof(request.ifr_netmask))) != NULL) memcpy(temp->ifa_netmask, &(request.ifr_netmask), sizeof(request.ifr_netmask)); } /* * Then get the broadcast or point-to-point (destination) address, * if applicable... */ if (temp->ifa_flags & IFF_BROADCAST) { /* * Have a broadcast address, so get it! */ if (!ioctl(sock, SIOCGIFBRDADDR, &request)) { /* * Got it, make a copy... */ if ((temp->ifa_broadaddr = calloc(1, sizeof(request.ifr_broadaddr))) != NULL) memcpy(temp->ifa_broadaddr, &(request.ifr_broadaddr), sizeof(request.ifr_broadaddr)); } } else if (temp->ifa_flags & IFF_POINTOPOINT) { /* * Point-to-point interface; grab the remote address... */ if (!ioctl(sock, SIOCGIFDSTADDR, &request)) { temp->ifa_dstaddr = malloc(sizeof(request.ifr_dstaddr)); memcpy(temp->ifa_dstaddr, &(request.ifr_dstaddr), sizeof(request.ifr_dstaddr)); } } } /* * OK, we're done with the socket, close it and return 0... */ close(sock); return (0); } /* * '_cups_freeifaddrs()' - Free an interface list... */ void _cups_freeifaddrs(struct ifaddrs *addrs)/* I - Interface list to free */ { struct ifaddrs *next; /* Next interface in list */ while (addrs != NULL) { /* * Make a copy of the next interface pointer... */ next = addrs->ifa_next; /* * Free data values as needed... */ if (addrs->ifa_name) { free(addrs->ifa_name); addrs->ifa_name = NULL; } if (addrs->ifa_addr) { free(addrs->ifa_addr); addrs->ifa_addr = NULL; } if (addrs->ifa_netmask) { free(addrs->ifa_netmask); addrs->ifa_netmask = NULL; } if (addrs->ifa_dstaddr) { free(addrs->ifa_dstaddr); addrs->ifa_dstaddr = NULL; } /* * Free this node and continue to the next... */ free(addrs); addrs = next; } } #endif /* !HAVE_GETIFADDRS */ cups-2.4.7/cups/getifaddrs-internal.h0000644000175000017500000000532014502571342017432 0ustar zdohnalzdohnal/* * getifaddrs definitions for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_GETIFADDRS_INTERNAL_H_ # define _CUPS_GETIFADDRS_INTERNAL_H_ /* * Include necessary headers... */ # include "config.h" # include "versioning.h" # ifdef _WIN32 # define _WINSOCK_DEPRECATED_NO_WARNINGS 1 # include # include # define CUPS_SOCAST (const char *) # else # include # include # include # include # define CUPS_SOCAST # endif /* _WIN32 */ # if defined(__APPLE__) && !defined(_SOCKLEN_T) /* * macOS 10.2.x does not define socklen_t, and in fact uses an int instead of * unsigned type for length values... */ typedef int socklen_t; # endif /* __APPLE__ && !_SOCKLEN_T */ # ifndef _WIN32 # include # include # ifdef HAVE_GETIFADDRS # include # else # include # ifdef HAVE_SYS_SOCKIO_H # include # endif /* HAVE_SYS_SOCKIO_H */ # endif /* HAVE_GETIFADDRS */ # endif /* !_WIN32 */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Some OS's don't have getifaddrs() and freeifaddrs()... */ # if !defined(_WIN32) && !defined(HAVE_GETIFADDRS) # ifdef ifa_dstaddr # undef ifa_dstaddr # endif /* ifa_dstaddr */ # ifndef ifr_netmask # define ifr_netmask ifr_addr # endif /* !ifr_netmask */ struct ifaddrs /**** Interface Structure ****/ { struct ifaddrs *ifa_next; /* Next interface in list */ char *ifa_name; /* Name of interface */ unsigned int ifa_flags; /* Flags (up, point-to-point, etc.) */ struct sockaddr *ifa_addr, /* Network address */ *ifa_netmask; /* Address mask */ union { struct sockaddr *ifu_broadaddr; /* Broadcast address of this interface. */ struct sockaddr *ifu_dstaddr; /* Point-to-point destination address. */ } ifa_ifu; void *ifa_data; /* Interface statistics */ }; # ifndef ifa_broadaddr # define ifa_broadaddr ifa_ifu.ifu_broadaddr # endif /* !ifa_broadaddr */ # ifndef ifa_dstaddr # define ifa_dstaddr ifa_ifu.ifu_dstaddr # endif /* !ifa_dstaddr */ extern int _cups_getifaddrs(struct ifaddrs **addrs) _CUPS_PRIVATE; # define getifaddrs _cups_getifaddrs extern void _cups_freeifaddrs(struct ifaddrs *addrs) _CUPS_PRIVATE; # define freeifaddrs _cups_freeifaddrs # endif /* !_WIN32 && !HAVE_GETIFADDRS */ /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_GETIFADDRS_INTERNAL_H_ */ cups-2.4.7/cups/getdevices.c0000644000175000017500000001717614502571342015635 0ustar zdohnalzdohnal/* * cupsGetDevices implementation for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2008-2016 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include "adminutil.h" /* * 'cupsGetDevices()' - Get available printer devices. * * This function sends a CUPS-Get-Devices request and streams the discovered * devices to the specified callback function. The "timeout" parameter controls * how long the request lasts, while the "include_schemes" and "exclude_schemes" * parameters provide comma-delimited lists of backends to include or omit from * the request respectively. * * This function is deprecated with the IPP printer discovery functionality * being provided by the @link cupsEnumDests@ and @cupsGetDests@ functions. * * @deprecated@ */ ipp_status_t /* O - Request status - @code IPP_OK@ on success. */ cupsGetDevices( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ int timeout, /* I - Timeout in seconds or @code CUPS_TIMEOUT_DEFAULT@ */ const char *include_schemes, /* I - Comma-separated URI schemes to include or @code CUPS_INCLUDE_ALL@ */ const char *exclude_schemes, /* I - Comma-separated URI schemes to exclude or @code CUPS_EXCLUDE_NONE@ */ cups_device_cb_t callback, /* I - Callback function */ void *user_data) /* I - User data pointer */ { ipp_t *request, /* CUPS-Get-Devices request */ *response; /* CUPS-Get-Devices response */ ipp_attribute_t *attr; /* Current attribute */ const char *device_class, /* device-class value */ *device_id, /* device-id value */ *device_info, /* device-info value */ *device_location, /* device-location value */ *device_make_and_model, /* device-make-and-model value */ *device_uri; /* device-uri value */ int blocking; /* Current blocking-IO mode */ cups_option_t option; /* in/exclude-schemes option */ http_status_t status; /* HTTP status of request */ ipp_state_t state; /* IPP response state */ /* * Range check input... */ DEBUG_printf(("cupsGetDevices(http=%p, timeout=%d, include_schemes=\"%s\", exclude_schemes=\"%s\", callback=%p, user_data=%p)", (void *)http, timeout, include_schemes, exclude_schemes, (void *)callback, user_data)); if (!callback) return (IPP_STATUS_ERROR_INTERNAL); if (!http) http = _cupsConnect(); if (!http) return (IPP_STATUS_ERROR_SERVICE_UNAVAILABLE); /* * Create a CUPS-Get-Devices request... */ request = ippNewRequest(IPP_OP_CUPS_GET_DEVICES); if (timeout > 0) ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "timeout", timeout); if (include_schemes) { option.name = "include-schemes"; option.value = (char *)include_schemes; cupsEncodeOptions2(request, 1, &option, IPP_TAG_OPERATION); } if (exclude_schemes) { option.name = "exclude-schemes"; option.value = (char *)exclude_schemes; cupsEncodeOptions2(request, 1, &option, IPP_TAG_OPERATION); } /* * Send the request and do any necessary authentication... */ do { DEBUG_puts("2cupsGetDevices: Sending request..."); status = cupsSendRequest(http, request, "/", ippLength(request)); DEBUG_puts("2cupsGetDevices: Waiting for response status..."); while (status == HTTP_STATUS_CONTINUE) status = httpUpdate(http); if (status != HTTP_STATUS_OK) { httpFlush(http); if (status == HTTP_STATUS_UNAUTHORIZED) { /* * See if we can do authentication... */ DEBUG_puts("2cupsGetDevices: Need authorization..."); if (!cupsDoAuthentication(http, "POST", "/")) httpReconnect2(http, 30000, NULL); else { status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; break; } } #ifdef HAVE_TLS else if (status == HTTP_STATUS_UPGRADE_REQUIRED) { /* * Force a reconnect with encryption... */ DEBUG_puts("2cupsGetDevices: Need encryption..."); if (!httpReconnect2(http, 30000, NULL)) httpEncryption(http, HTTP_ENCRYPTION_REQUIRED); } #endif /* HAVE_TLS */ } } while (status == HTTP_STATUS_UNAUTHORIZED || status == HTTP_STATUS_UPGRADE_REQUIRED); DEBUG_printf(("2cupsGetDevices: status=%d", status)); ippDelete(request); if (status != HTTP_STATUS_OK) { _cupsSetHTTPError(status); return (cupsLastError()); } /* * Read the response in non-blocking mode... */ blocking = httpGetBlocking(http); httpBlocking(http, 0); response = ippNew(); device_class = NULL; device_id = NULL; device_info = NULL; device_location = ""; device_make_and_model = NULL; device_uri = NULL; attr = NULL; DEBUG_puts("2cupsGetDevices: Reading response..."); do { if ((state = ippRead(http, response)) == IPP_STATE_ERROR) break; DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state, (void *)response->last)); if (!response->attrs) continue; while (attr != response->last) { if (!attr) attr = response->attrs; else attr = attr->next; DEBUG_printf(("2cupsGetDevices: attr->name=\"%s\", attr->value_tag=%d", attr->name, attr->value_tag)); if (!attr->name) { if (device_class && device_id && device_info && device_make_and_model && device_uri) (*callback)(device_class, device_id, device_info, device_make_and_model, device_uri, device_location, user_data); device_class = NULL; device_id = NULL; device_info = NULL; device_location = ""; device_make_and_model = NULL; device_uri = NULL; } else if (!strcmp(attr->name, "device-class") && attr->value_tag == IPP_TAG_KEYWORD) device_class = attr->values[0].string.text; else if (!strcmp(attr->name, "device-id") && attr->value_tag == IPP_TAG_TEXT) device_id = attr->values[0].string.text; else if (!strcmp(attr->name, "device-info") && attr->value_tag == IPP_TAG_TEXT) device_info = attr->values[0].string.text; else if (!strcmp(attr->name, "device-location") && attr->value_tag == IPP_TAG_TEXT) device_location = attr->values[0].string.text; else if (!strcmp(attr->name, "device-make-and-model") && attr->value_tag == IPP_TAG_TEXT) device_make_and_model = attr->values[0].string.text; else if (!strcmp(attr->name, "device-uri") && attr->value_tag == IPP_TAG_URI) device_uri = attr->values[0].string.text; } } while (state != IPP_STATE_DATA); DEBUG_printf(("2cupsGetDevices: state=%d, response->last=%p", state, (void *)response->last)); if (device_class && device_id && device_info && device_make_and_model && device_uri) (*callback)(device_class, device_id, device_info, device_make_and_model, device_uri, device_location, user_data); /* * Set the IPP status and return... */ httpBlocking(http, blocking); httpFlush(http); attr = ippFindAttribute(response, "status-message", IPP_TAG_TEXT); DEBUG_printf(("cupsGetDevices: status-code=%s, status-message=\"%s\"", ippErrorString(response->request.status.status_code), attr ? attr->values[0].string.text : "")); _cupsSetError(response->request.status.status_code, attr ? attr->values[0].string.text : ippErrorString(response->request.status.status_code), 0); ippDelete(response); return (cupsLastError()); } cups-2.4.7/cups/fuzzipp.c0000644000175000017500000002072514502571342015214 0ustar zdohnalzdohnal/* * IPP fuzzing program for CUPS. * * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "file.h" #include "string-private.h" #include "ipp-private.h" #include #include #ifdef _WIN32 # include #else # include # include #endif /* _WIN32 */ /* * Local types... */ typedef struct _ippdata_t // Data { size_t wused, // Bytes used wsize; // Max size of buffer ipp_uchar_t *wbuffer; // Buffer } _ippdata_t; /* * Local functions... */ void fuzzdata(_ippdata_t *data); void hex_dump(ipp_uchar_t *buffer, size_t bytes); ssize_t write_cb(_ippdata_t *data, ipp_uchar_t *buffer, size_t bytes); /* * 'main()' - Main entry. */ int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { ipp_state_t state; // State cups_file_t *fp; // File pointer ipp_t *request; // Request if (argc == 1) { // Generate a Print-Job request with all common attribute types... int i; // Looping var char filename[256]; // Test filename const char *fuzz_args[3]; // Arguments for sub-process pid_t fuzz_pid; // Sub-process ID int fuzz_status; // Exit status ipp_t *media_col, // media-col collection *media_size; // media-size collection _ippdata_t data; // IPP buffer ipp_uchar_t buffer[262144]; // Write buffer data request = ippNewRequest(IPP_OP_PRINT_JOB); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/foo"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, "john-doe"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, "Test Job"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, "application/pdf"); ippAddOctetString(request, IPP_TAG_OPERATION, "job-password", "8675309", 7); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "job-password-encryption", NULL, "none"); ippAddString(request, IPP_TAG_JOB, IPP_TAG_KEYWORD, "print-color-mode", NULL, "color"); ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_ENUM, "print-quality", IPP_QUALITY_HIGH); ippAddResolution(request, IPP_TAG_JOB, "printer-resolution", 1200, 1200, IPP_RES_PER_INCH); ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies", 42); ippAddBoolean(request, IPP_TAG_JOB, "some-boolean-option", 1); ippAddString(request, IPP_TAG_JOB, IPP_TAG_URISCHEME, "some-uri-scheme", NULL, "mailto"); ippAddString(request, IPP_TAG_JOB, IPP_TAG_NAMELANG, "some-name-with-language", "es-MX", "Jose"); ippAddString(request, IPP_TAG_JOB, IPP_TAG_TEXTLANG, "some-text-with-language", "es-MX", "¡Hola el mundo!"); ippAddRange(request, IPP_TAG_JOB, "page-ranges", 1, 50); ippAddDate(request, IPP_TAG_JOB, "job-hold-until-time", ippTimeToDate(time(NULL) + 3600)); ippAddString(request, IPP_TAG_JOB, IPP_TAG_TEXT, "job-message-to-operator", NULL, "This is a test job."); media_col = ippNew(); media_size = ippNew(); ippAddInteger(media_size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "x-dimension", 21590); ippAddInteger(media_size, IPP_TAG_ZERO, IPP_TAG_INTEGER, "y-dimension", 27940); ippAddCollection(media_col, IPP_TAG_JOB, "media-size", media_size); ippDelete(media_size); ippAddString(media_col, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-color", NULL, "blue"); ippAddString(media_col, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-type", NULL, "stationery"); ippAddCollection(request, IPP_TAG_JOB, "media-col", media_col); ippDelete(media_col); data.wused = 0; data.wsize = sizeof(buffer); data.wbuffer = buffer; while ((state = ippWriteIO(&data, (ipp_iocb_t)write_cb, 1, NULL, request)) != IPP_STATE_DATA) { if (state == IPP_STATE_ERROR) break; } if (state != IPP_STATE_DATA) { puts("Failed to create base IPP message."); return (1); } ippDelete(request); // Now iterate 1000 times and test the fuzzed request... for (i = 0; i < 1000; i ++) { fuzzdata(&data); snprintf(filename, sizeof(filename), "fuzz-%03d.ipp", i); if ((fp = cupsFileOpen(filename, "w")) == NULL) { perror(filename); return (1); } cupsFileWrite(fp, (char *)buffer, data.wused); cupsFileClose(fp); printf("%s: ", filename); fflush(stdout); fuzz_args[0] = argv[0]; fuzz_args[1] = filename; fuzz_args[2] = NULL; if (posix_spawn(&fuzz_pid, argv[0], NULL, NULL, (char * const *)fuzz_args, NULL)) { puts("FAIL"); perror(argv[0]); unlink(filename); return (1); } while (waitpid(fuzz_pid, &fuzz_status, 0) < 0) { if (errno != EINTR && errno != EAGAIN) { puts("FAIL"); perror(argv[0]); unlink(filename); return (1); } } if (fuzz_status) { puts("FAIL"); hex_dump(buffer, data.wused); unlink(filename); return (1); } puts("PASS"); unlink(filename); } } else { // Read an IPP file... cups_file_t *fp; // File pointer if ((fp = cupsFileOpen(argv[1], "r")) == NULL) { perror(argv[1]); return (1); } request = ippNew(); do { state = ippReadIO(fp, (ipp_iocb_t)cupsFileRead, 1, NULL, request); } while (state == IPP_STATE_ATTRIBUTE); cupsFileClose(fp); fp = cupsFileOpen("/dev/null", "w"); ippSetState(request, IPP_STATE_IDLE); do { state = ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL, request); } while (state == IPP_STATE_ATTRIBUTE); cupsFileClose(fp); ippDelete(request); } return (0); } // // 'fuzzdata()' - Mutate a buffer for fuzzing purposes... // void fuzzdata(_ippdata_t *data) // I - Data buffer { int i, // Looping vars pos, // Position in buffer pos2, // Second position in buffer len; // Number of bytes ipp_uchar_t temp[16]; // Temporary buffer // Mutate a few times... for (i = 0; i < 32; i ++) { // Each cycle replace or swap bytes switch ((len = CUPS_RAND() & 7)) { case 0 : case 1 : case 2 : case 3 : case 4 : case 5 : case 6 : // Replace bytes len ++; pos = CUPS_RAND() % (data->wused - len); while (len > 0) { data->wbuffer[pos ++] = CUPS_RAND(); len --; } break; case 7 : // Swap bytes len = (CUPS_RAND() & 7) + 1; pos = CUPS_RAND() % (data->wused - len); pos2 = CUPS_RAND() % (data->wused - len); memmove(temp, data->wbuffer + pos, len); memmove(data->wbuffer + pos, data->wbuffer + pos2, len); memmove(data->wbuffer + pos2, temp, len); break; } } } // // 'hex_dump()' - Produce a hex dump of a buffer. // void hex_dump(ipp_uchar_t *buffer, // I - Buffer to dump size_t bytes) // I - Number of bytes { size_t i, j; // Looping vars int ch; // Current ASCII char /* * Show lines of 16 bytes at a time... */ for (i = 0; i < bytes; i += 16) { /* * Show the offset... */ printf("%04x ", (unsigned)i); /* * Then up to 16 bytes in hex... */ for (j = 0; j < 16; j ++) if ((i + j) < bytes) printf(" %02x", buffer[i + j]); else printf(" "); /* * Then the ASCII representation of the bytes... */ putchar(' '); putchar(' '); for (j = 0; j < 16 && (i + j) < bytes; j ++) { ch = buffer[i + j] & 127; if (ch < ' ' || ch == 127) putchar('.'); else putchar(ch); } putchar('\n'); } } /* * 'write_cb()' - Write data into a buffer. */ ssize_t /* O - Number of bytes written */ write_cb(_ippdata_t *data, /* I - Data */ ipp_uchar_t *buffer, /* I - Buffer to write */ size_t bytes) /* I - Number of bytes to write */ { size_t count; /* Number of bytes */ /* * Loop until all bytes are written... */ if ((count = data->wsize - data->wused) > bytes) count = bytes; memcpy(data->wbuffer + data->wused, buffer, count); data->wused += count; /* * Return the number of bytes written... */ return ((ssize_t)count); } cups-2.4.7/cups/file.h0000644000175000017500000000650114502571342014425 0ustar zdohnalzdohnal/* * Public file definitions for CUPS. * * Since stdio files max out at 256 files on many systems, we have to * write similar functions without this limit. At the same time, using * our own file functions allows us to provide transparent support of * different line endings, gzip'd print files, PPD files, etc. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_FILE_H_ # define _CUPS_FILE_H_ /* * Include necessary headers... */ # include "versioning.h" # include # include # if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) # define __CUPS_SSIZE_T_DEFINED /* Windows does not support the ssize_t type, so map it to off_t... */ typedef off_t ssize_t; /* @private@ */ # endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * CUPS file definitions... */ # define CUPS_FILE_NONE 0 /* No compression */ # define CUPS_FILE_GZIP 1 /* GZIP compression */ /* * Types and structures... */ typedef struct _cups_file_s cups_file_t;/**** CUPS file type ****/ /* * Prototypes... */ extern int cupsFileClose(cups_file_t *fp) _CUPS_API_1_2; extern int cupsFileCompression(cups_file_t *fp) _CUPS_API_1_2; extern int cupsFileEOF(cups_file_t *fp) _CUPS_API_1_2; extern const char *cupsFileFind(const char *filename, const char *path, int executable, char *buffer, int bufsize) _CUPS_API_1_2; extern int cupsFileFlush(cups_file_t *fp) _CUPS_API_1_2; extern int cupsFileGetChar(cups_file_t *fp) _CUPS_API_1_2; extern char *cupsFileGetConf(cups_file_t *fp, char *buf, size_t buflen, char **value, int *linenum) _CUPS_API_1_2; extern size_t cupsFileGetLine(cups_file_t *fp, char *buf, size_t buflen) _CUPS_API_1_2; extern char *cupsFileGets(cups_file_t *fp, char *buf, size_t buflen) _CUPS_API_1_2; extern int cupsFileLock(cups_file_t *fp, int block) _CUPS_API_1_2; extern int cupsFileNumber(cups_file_t *fp) _CUPS_API_1_2; extern cups_file_t *cupsFileOpen(const char *filename, const char *mode) _CUPS_API_1_2; extern cups_file_t *cupsFileOpenFd(int fd, const char *mode) _CUPS_API_1_2; extern int cupsFilePeekChar(cups_file_t *fp) _CUPS_API_1_2; extern int cupsFilePrintf(cups_file_t *fp, const char *format, ...) _CUPS_FORMAT(2, 3) _CUPS_API_1_2; extern int cupsFilePutChar(cups_file_t *fp, int c) _CUPS_API_1_2; extern ssize_t cupsFilePutConf(cups_file_t *fp, const char *directive, const char *value) _CUPS_API_1_4; extern int cupsFilePuts(cups_file_t *fp, const char *s) _CUPS_API_1_2; extern ssize_t cupsFileRead(cups_file_t *fp, char *buf, size_t bytes) _CUPS_API_1_2; extern off_t cupsFileRewind(cups_file_t *fp) _CUPS_API_1_2; extern off_t cupsFileSeek(cups_file_t *fp, off_t pos) _CUPS_API_1_2; extern cups_file_t *cupsFileStderr(void) _CUPS_API_1_2; extern cups_file_t *cupsFileStdin(void) _CUPS_API_1_2; extern cups_file_t *cupsFileStdout(void) _CUPS_API_1_2; extern off_t cupsFileTell(cups_file_t *fp) _CUPS_API_1_2; extern int cupsFileUnlock(cups_file_t *fp) _CUPS_API_1_2; extern ssize_t cupsFileWrite(cups_file_t *fp, const char *buf, size_t bytes) _CUPS_API_1_2; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_FILE_H_ */ cups-2.4.7/cups/file.c0000644000175000017500000016134414502571342014427 0ustar zdohnalzdohnal/* * File functions for CUPS. * * Since stdio files max out at 256 files on many systems, we have to * write similar functions without this limit. At the same time, using * our own file functions allows us to provide transparent support of * different line endings, gzip'd print files, PPD files, etc. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "file-private.h" #include "debug-internal.h" #include #include # ifdef HAVE_LIBZ # include # endif /* HAVE_LIBZ */ /* * Internal structures... */ struct _cups_file_s /**** CUPS file structure... ****/ { int fd; /* File descriptor */ char mode, /* Mode ('r' or 'w') */ compressed, /* Compression used? */ is_stdio, /* stdin/out/err? */ eof, /* End of file? */ buf[4096], /* Buffer */ *ptr, /* Pointer into buffer */ *end; /* End of buffer data */ off_t pos, /* Position in file */ bufpos; /* File position for start of buffer */ #ifdef HAVE_LIBZ z_stream stream; /* (De)compression stream */ Bytef cbuf[4096]; /* (De)compression buffer */ uLong crc; /* (De)compression CRC */ #endif /* HAVE_LIBZ */ char *printf_buffer; /* cupsFilePrintf buffer */ size_t printf_size; /* Size of cupsFilePrintf buffer */ }; /* * Local functions... */ #ifdef HAVE_LIBZ static ssize_t cups_compress(cups_file_t *fp, const char *buf, size_t bytes); #endif /* HAVE_LIBZ */ static ssize_t cups_fill(cups_file_t *fp); static int cups_open(const char *filename, int mode); static ssize_t cups_read(cups_file_t *fp, char *buf, size_t bytes); static ssize_t cups_write(cups_file_t *fp, const char *buf, size_t bytes); #ifndef _WIN32 /* * '_cupsFileCheck()' - Check the permissions of the given filename. */ _cups_fc_result_t /* O - Check result */ _cupsFileCheck( const char *filename, /* I - Filename to check */ _cups_fc_filetype_t filetype, /* I - Type of file checks? */ int dorootchecks, /* I - Check for root permissions? */ _cups_fc_func_t cb, /* I - Callback function */ void *context) /* I - Context pointer for callback */ { struct stat fileinfo; /* File information */ char message[1024], /* Message string */ temp[1024], /* Parent directory filename */ *ptr; /* Pointer into parent directory */ _cups_fc_result_t result; /* Check result */ /* * Does the filename contain a relative path ("../")? */ if (strstr(filename, "../")) { /* * Yes, fail it! */ result = _CUPS_FILE_CHECK_RELATIVE_PATH; goto finishup; } /* * Does the program even exist and is it accessible? */ if (stat(filename, &fileinfo)) { /* * Nope... */ result = _CUPS_FILE_CHECK_MISSING; goto finishup; } /* * Check the execute bit... */ result = _CUPS_FILE_CHECK_OK; if (filetype == _CUPS_FILE_CHECK_DIRECTORY) { if (!S_ISDIR(fileinfo.st_mode)) result = _CUPS_FILE_CHECK_WRONG_TYPE; } else if (!S_ISREG(fileinfo.st_mode)) { result = _CUPS_FILE_CHECK_WRONG_TYPE; } if (result) goto finishup; /* * Are we doing root checks? */ if (!dorootchecks) { /* * Nope, so anything (else) goes... */ goto finishup; } /* * Verify permission of the file itself: * * 1. Must be owned by root * 2. Must not be writable by group * 3. Must not be setuid * 4. Must not be writable by others */ if (fileinfo.st_uid || /* 1. Must be owned by root */ (fileinfo.st_mode & S_IWGRP) || /* 2. Must not be writable by group */ (fileinfo.st_mode & S_ISUID) || /* 3. Must not be setuid */ (fileinfo.st_mode & S_IWOTH)) /* 4. Must not be writable by others */ { result = _CUPS_FILE_CHECK_PERMISSIONS; goto finishup; } if (filetype == _CUPS_FILE_CHECK_DIRECTORY || filetype == _CUPS_FILE_CHECK_FILE_ONLY) goto finishup; /* * Now check the containing directory... */ strlcpy(temp, filename, sizeof(temp)); if ((ptr = strrchr(temp, '/')) != NULL) { if (ptr == temp) ptr[1] = '\0'; else *ptr = '\0'; } if (stat(temp, &fileinfo)) { /* * Doesn't exist?!? */ result = _CUPS_FILE_CHECK_MISSING; filetype = _CUPS_FILE_CHECK_DIRECTORY; filename = temp; goto finishup; } if (fileinfo.st_uid || /* 1. Must be owned by root */ (fileinfo.st_mode & S_IWGRP) || /* 2. Must not be writable by group */ (fileinfo.st_mode & S_ISUID) || /* 3. Must not be setuid */ (fileinfo.st_mode & S_IWOTH)) /* 4. Must not be writable by others */ { result = _CUPS_FILE_CHECK_PERMISSIONS; filetype = _CUPS_FILE_CHECK_DIRECTORY; filename = temp; } /* * Common return point... */ finishup: if (cb) { cups_lang_t *lang = cupsLangDefault(); /* Localization information */ switch (result) { case _CUPS_FILE_CHECK_OK : if (filetype == _CUPS_FILE_CHECK_DIRECTORY) snprintf(message, sizeof(message), _cupsLangString(lang, _("Directory \"%s\" permissions OK " "(0%o/uid=%d/gid=%d).")), filename, fileinfo.st_mode, (int)fileinfo.st_uid, (int)fileinfo.st_gid); else snprintf(message, sizeof(message), _cupsLangString(lang, _("File \"%s\" permissions OK " "(0%o/uid=%d/gid=%d).")), filename, fileinfo.st_mode, (int)fileinfo.st_uid, (int)fileinfo.st_gid); break; case _CUPS_FILE_CHECK_MISSING : if (filetype == _CUPS_FILE_CHECK_DIRECTORY) snprintf(message, sizeof(message), _cupsLangString(lang, _("Directory \"%s\" not available: " "%s")), filename, strerror(errno)); else snprintf(message, sizeof(message), _cupsLangString(lang, _("File \"%s\" not available: %s")), filename, strerror(errno)); break; case _CUPS_FILE_CHECK_PERMISSIONS : if (filetype == _CUPS_FILE_CHECK_DIRECTORY) snprintf(message, sizeof(message), _cupsLangString(lang, _("Directory \"%s\" has insecure " "permissions " "(0%o/uid=%d/gid=%d).")), filename, fileinfo.st_mode, (int)fileinfo.st_uid, (int)fileinfo.st_gid); else snprintf(message, sizeof(message), _cupsLangString(lang, _("File \"%s\" has insecure " "permissions " "(0%o/uid=%d/gid=%d).")), filename, fileinfo.st_mode, (int)fileinfo.st_uid, (int)fileinfo.st_gid); break; case _CUPS_FILE_CHECK_WRONG_TYPE : if (filetype == _CUPS_FILE_CHECK_DIRECTORY) snprintf(message, sizeof(message), _cupsLangString(lang, _("Directory \"%s\" is a file.")), filename); else snprintf(message, sizeof(message), _cupsLangString(lang, _("File \"%s\" is a directory.")), filename); break; case _CUPS_FILE_CHECK_RELATIVE_PATH : if (filetype == _CUPS_FILE_CHECK_DIRECTORY) snprintf(message, sizeof(message), _cupsLangString(lang, _("Directory \"%s\" contains a " "relative path.")), filename); else snprintf(message, sizeof(message), _cupsLangString(lang, _("File \"%s\" contains a relative " "path.")), filename); break; } (*cb)(context, result, message); } return (result); } /* * '_cupsFileCheckFilter()' - Report file check results as CUPS filter messages. */ void _cupsFileCheckFilter( void *context, /* I - Context pointer (unused) */ _cups_fc_result_t result, /* I - Result code */ const char *message) /* I - Message text */ { const char *prefix; /* Messaging prefix */ (void)context; switch (result) { default : case _CUPS_FILE_CHECK_OK : prefix = "DEBUG2"; break; case _CUPS_FILE_CHECK_MISSING : case _CUPS_FILE_CHECK_WRONG_TYPE : prefix = "ERROR"; fputs("STATE: +cups-missing-filter-warning\n", stderr); break; case _CUPS_FILE_CHECK_PERMISSIONS : case _CUPS_FILE_CHECK_RELATIVE_PATH : prefix = "ERROR"; fputs("STATE: +cups-insecure-filter-warning\n", stderr); break; } fprintf(stderr, "%s: %s\n", prefix, message); } #endif /* !_WIN32 */ /* * 'cupsFileClose()' - Close a CUPS file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsFileClose(cups_file_t *fp) /* I - CUPS file */ { int fd; /* File descriptor */ char mode; /* Open mode */ int status; /* Return status */ DEBUG_printf(("cupsFileClose(fp=%p)", (void *)fp)); /* * Range check... */ if (!fp) return (-1); /* * Flush pending write data... */ if (fp->mode == 'w') status = cupsFileFlush(fp); else status = 0; #ifdef HAVE_LIBZ if (fp->compressed && status >= 0) { if (fp->mode == 'r') { /* * Free decompression data... */ inflateEnd(&fp->stream); } else { /* * Flush any remaining compressed data... */ unsigned char trailer[8]; /* Trailer CRC and length */ int done; /* Done writing... */ fp->stream.avail_in = 0; for (done = 0;;) { if (fp->stream.next_out > fp->cbuf) { if (cups_write(fp, (char *)fp->cbuf, (size_t)(fp->stream.next_out - fp->cbuf)) < 0) status = -1; fp->stream.next_out = fp->cbuf; fp->stream.avail_out = sizeof(fp->cbuf); } if (done || status < 0) break; done = deflate(&fp->stream, Z_FINISH) == Z_STREAM_END && fp->stream.next_out == fp->cbuf; } /* * Write the CRC and length... */ trailer[0] = (unsigned char)fp->crc; trailer[1] = (unsigned char)(fp->crc >> 8); trailer[2] = (unsigned char)(fp->crc >> 16); trailer[3] = (unsigned char)(fp->crc >> 24); trailer[4] = (unsigned char)fp->pos; trailer[5] = (unsigned char)(fp->pos >> 8); trailer[6] = (unsigned char)(fp->pos >> 16); trailer[7] = (unsigned char)(fp->pos >> 24); if (cups_write(fp, (char *)trailer, 8) < 0) status = -1; /* * Free all memory used by the compression stream... */ deflateEnd(&(fp->stream)); } } #endif /* HAVE_LIBZ */ /* * If this is one of the cupsFileStdin/out/err files, return now and don't * actually free memory or close (these last the life of the process...) */ if (fp->is_stdio) return (status); /* * Save the file descriptor we used and free memory... */ fd = fp->fd; mode = fp->mode; if (fp->printf_buffer) free(fp->printf_buffer); free(fp); /* * Close the file, returning the close status... */ if (mode == 's') { if (httpAddrClose(NULL, fd) < 0) status = -1; } else if (close(fd) < 0) status = -1; return (status); } /* * 'cupsFileCompression()' - Return whether a file is compressed. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - @code CUPS_FILE_NONE@ or @code CUPS_FILE_GZIP@ */ cupsFileCompression(cups_file_t *fp) /* I - CUPS file */ { return (fp ? fp->compressed : CUPS_FILE_NONE); } /* * 'cupsFileEOF()' - Return the end-of-file status. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 on end of file, 0 otherwise */ cupsFileEOF(cups_file_t *fp) /* I - CUPS file */ { return (fp ? fp->eof : 1); } /* * 'cupsFileFind()' - Find a file using the specified path. * * This function allows the paths in the path string to be separated by * colons (UNIX standard) or semicolons (Windows standard) and stores the * result in the buffer supplied. If the file cannot be found in any of * the supplied paths, @code NULL@ is returned. A @code NULL@ path only * matches the current directory. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - Full path to file or @code NULL@ if not found */ cupsFileFind(const char *filename, /* I - File to find */ const char *path, /* I - Colon/semicolon-separated path */ int executable, /* I - 1 = executable files, 0 = any file/dir */ char *buffer, /* I - Filename buffer */ int bufsize) /* I - Size of filename buffer */ { char *bufptr, /* Current position in buffer */ *bufend; /* End of buffer */ /* * Range check input... */ DEBUG_printf(("cupsFileFind(filename=\"%s\", path=\"%s\", executable=%d, buffer=%p, bufsize=%d)", filename, path, executable, (void *)buffer, bufsize)); if (!filename || !buffer || bufsize < 2) return (NULL); if (!path) { /* * No path, so check current directory... */ if (!access(filename, 0)) { strlcpy(buffer, filename, (size_t)bufsize); return (buffer); } else return (NULL); } /* * Now check each path and return the first match... */ bufend = buffer + bufsize - 1; bufptr = buffer; while (*path) { #ifdef _WIN32 if (*path == ';' || (*path == ':' && ((bufptr - buffer) > 1 || !isalpha(buffer[0] & 255)))) #else if (*path == ';' || *path == ':') #endif /* _WIN32 */ { if (bufptr > buffer && bufptr[-1] != '/' && bufptr < bufend) *bufptr++ = '/'; strlcpy(bufptr, filename, (size_t)(bufend - bufptr)); #ifdef _WIN32 if (!access(buffer, 0)) #else if (!access(buffer, executable ? X_OK : 0)) #endif /* _WIN32 */ { DEBUG_printf(("1cupsFileFind: Returning \"%s\"", buffer)); return (buffer); } bufptr = buffer; } else if (bufptr < bufend) *bufptr++ = *path; path ++; } /* * Check the last path... */ if (bufptr > buffer && bufptr[-1] != '/' && bufptr < bufend) *bufptr++ = '/'; strlcpy(bufptr, filename, (size_t)(bufend - bufptr)); if (!access(buffer, 0)) { DEBUG_printf(("1cupsFileFind: Returning \"%s\"", buffer)); return (buffer); } else { DEBUG_puts("1cupsFileFind: Returning NULL"); return (NULL); } } /* * 'cupsFileFlush()' - Flush pending output. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsFileFlush(cups_file_t *fp) /* I - CUPS file */ { ssize_t bytes; /* Bytes to write */ DEBUG_printf(("cupsFileFlush(fp=%p)", (void *)fp)); /* * Range check input... */ if (!fp || fp->mode != 'w') { DEBUG_puts("1cupsFileFlush: Attempt to flush a read-only file..."); return (-1); } bytes = (ssize_t)(fp->ptr - fp->buf); DEBUG_printf(("2cupsFileFlush: Flushing " CUPS_LLFMT " bytes...", CUPS_LLCAST bytes)); if (bytes > 0) { #ifdef HAVE_LIBZ if (fp->compressed) bytes = cups_compress(fp, fp->buf, (size_t)bytes); else #endif /* HAVE_LIBZ */ bytes = cups_write(fp, fp->buf, (size_t)bytes); if (bytes < 0) return (-1); fp->ptr = fp->buf; } return (0); } /* * 'cupsFileGetChar()' - Get a single character from a file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Character or -1 on end of file */ cupsFileGetChar(cups_file_t *fp) /* I - CUPS file */ { /* * Range check input... */ DEBUG_printf(("4cupsFileGetChar(fp=%p)", (void *)fp)); if (!fp || (fp->mode != 'r' && fp->mode != 's')) { DEBUG_puts("5cupsFileGetChar: Bad arguments!"); return (-1); } if (fp->eof) { DEBUG_puts("5cupsFileGetChar: End-of-file!"); return (-1); } /* * If the input buffer is empty, try to read more data... */ DEBUG_printf(("5cupsFileGetChar: fp->eof=%d, fp->ptr=%p, fp->end=%p", fp->eof, (void *)fp->ptr, (void *)fp->end)); if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) { DEBUG_puts("5cupsFileGetChar: Unable to fill buffer!"); return (-1); } /* * Return the next character in the buffer... */ DEBUG_printf(("5cupsFileGetChar: Returning %d...", *(fp->ptr) & 255)); fp->pos ++; DEBUG_printf(("6cupsFileGetChar: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (*(fp->ptr)++ & 255); } /* * 'cupsFileGetConf()' - Get a line from a configuration file. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Line read or @code NULL@ on end of file or error */ cupsFileGetConf(cups_file_t *fp, /* I - CUPS file */ char *buf, /* O - String buffer */ size_t buflen, /* I - Size of string buffer */ char **value, /* O - Pointer to value */ int *linenum) /* IO - Current line number */ { char *ptr; /* Pointer into line */ /* * Range check input... */ DEBUG_printf(("2cupsFileGetConf(fp=%p, buf=%p, buflen=" CUPS_LLFMT ", value=%p, linenum=%p)", (void *)fp, (void *)buf, CUPS_LLCAST buflen, (void *)value, (void *)linenum)); if (!fp || (fp->mode != 'r' && fp->mode != 's') || !buf || buflen < 2 || !value) { if (value) *value = NULL; return (NULL); } /* * Read the next non-comment line... */ *value = NULL; while (cupsFileGets(fp, buf, buflen)) { (*linenum) ++; /* * Strip any comments... */ if ((ptr = strchr(buf, '#')) != NULL) { if (ptr > buf && ptr[-1] == '\\') { // Unquote the #... _cups_strcpy(ptr - 1, ptr); } else { // Strip the comment and any trailing whitespace... while (ptr > buf) { if (!_cups_isspace(ptr[-1])) break; ptr --; } *ptr = '\0'; } } /* * Strip leading whitespace... */ for (ptr = buf; _cups_isspace(*ptr); ptr ++); if (ptr > buf) _cups_strcpy(buf, ptr); /* * See if there is anything left... */ if (buf[0]) { /* * Yes, grab any value and return... */ for (ptr = buf; *ptr; ptr ++) if (_cups_isspace(*ptr)) break; if (*ptr) { /* * Have a value, skip any other spaces... */ while (_cups_isspace(*ptr)) *ptr++ = '\0'; if (*ptr) *value = ptr; /* * Strip trailing whitespace and > for lines that begin with <... */ ptr += strlen(ptr) - 1; if (buf[0] == '<' && *ptr == '>') *ptr-- = '\0'; else if (buf[0] == '<' && *ptr != '>') { /* * Syntax error... */ *value = NULL; return (buf); } while (ptr > *value && _cups_isspace(*ptr)) *ptr-- = '\0'; } /* * Return the line... */ return (buf); } } return (NULL); } /* * 'cupsFileGetLine()' - Get a CR and/or LF-terminated line that may * contain binary data. * * This function differs from @link cupsFileGets@ in that the trailing CR * and LF are preserved, as is any binary data on the line. The buffer is * nul-terminated, however you should use the returned length to determine * the number of bytes on the line. * * @since CUPS 1.2/macOS 10.5@ */ size_t /* O - Number of bytes on line or 0 on end of file */ cupsFileGetLine(cups_file_t *fp, /* I - File to read from */ char *buf, /* I - Buffer */ size_t buflen) /* I - Size of buffer */ { int ch; /* Character from file */ char *ptr, /* Current position in line buffer */ *end; /* End of line buffer */ /* * Range check input... */ DEBUG_printf(("2cupsFileGetLine(fp=%p, buf=%p, buflen=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST buflen)); if (!fp || (fp->mode != 'r' && fp->mode != 's') || !buf || buflen < 3) return (0); /* * Now loop until we have a valid line... */ for (ptr = buf, end = buf + buflen - 2; ptr < end ;) { if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) break; *ptr++ = ch = *(fp->ptr)++; fp->pos ++; if (ch == '\r') { /* * Check for CR LF... */ if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) break; if (*(fp->ptr) == '\n') { *ptr++ = *(fp->ptr)++; fp->pos ++; } break; } else if (ch == '\n') { /* * Line feed ends a line... */ break; } } *ptr = '\0'; DEBUG_printf(("4cupsFileGetLine: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return ((size_t)(ptr - buf)); } /* * 'cupsFileGets()' - Get a CR and/or LF-terminated line. * * @since CUPS 1.2/macOS 10.5@ */ char * /* O - Line read or @code NULL@ on end of file or error */ cupsFileGets(cups_file_t *fp, /* I - CUPS file */ char *buf, /* O - String buffer */ size_t buflen) /* I - Size of string buffer */ { int ch; /* Character from file */ char *ptr, /* Current position in line buffer */ *end; /* End of line buffer */ /* * Range check input... */ DEBUG_printf(("2cupsFileGets(fp=%p, buf=%p, buflen=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST buflen)); if (!fp || (fp->mode != 'r' && fp->mode != 's') || !buf || buflen < 2) return (NULL); /* * Now loop until we have a valid line... */ for (ptr = buf, end = buf + buflen - 1; ptr < end ;) { if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) { if (ptr == buf) return (NULL); else break; } ch = *(fp->ptr)++; fp->pos ++; if (ch == '\r') { /* * Check for CR LF... */ if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) break; if (*(fp->ptr) == '\n') { fp->ptr ++; fp->pos ++; } break; } else if (ch == '\n') { /* * Line feed ends a line... */ break; } else *ptr++ = (char)ch; } *ptr = '\0'; DEBUG_printf(("4cupsFileGets: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (buf); } /* * 'cupsFileLock()' - Temporarily lock access to a file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsFileLock(cups_file_t *fp, /* I - CUPS file */ int block) /* I - 1 to wait for the lock, 0 to fail right away */ { /* * Range check... */ if (!fp || fp->mode == 's') return (-1); /* * Try the lock... */ #ifdef _WIN32 return (_locking(fp->fd, block ? _LK_LOCK : _LK_NBLCK, 0)); #else return (lockf(fp->fd, block ? F_LOCK : F_TLOCK, 0)); #endif /* _WIN32 */ } /* * 'cupsFileNumber()' - Return the file descriptor associated with a CUPS file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - File descriptor */ cupsFileNumber(cups_file_t *fp) /* I - CUPS file */ { if (fp) return (fp->fd); else return (-1); } /* * 'cupsFileOpen()' - Open a CUPS file. * * The "mode" parameter can be "r" to read, "w" to write, overwriting any * existing file, "a" to append to an existing file or create a new file, * or "s" to open a socket connection. * * When opening for writing ("w"), an optional number from 1 to 9 can be * supplied which enables Flate compression of the file. Compression is * not supported for the "a" (append) mode. * * When opening a socket connection, the filename is a string of the form * "address:port" or "hostname:port". The socket will make an IPv4 or IPv6 * connection as needed, generally preferring IPv6 connections when there is * a choice. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file or @code NULL@ if the file or socket cannot be opened */ cupsFileOpen(const char *filename, /* I - Name of file */ const char *mode) /* I - Open mode */ { cups_file_t *fp; /* New CUPS file */ int fd; /* File descriptor */ char hostname[1024], /* Hostname */ *portname; /* Port "name" (number or service) */ http_addrlist_t *addrlist; /* Host address list */ DEBUG_printf(("cupsFileOpen(filename=\"%s\", mode=\"%s\")", filename, mode)); /* * Range check input... */ if (!filename || !mode || (*mode != 'r' && *mode != 'w' && *mode != 'a' && *mode != 's') || (*mode == 'a' && isdigit(mode[1] & 255))) return (NULL); /* * Open the file... */ switch (*mode) { case 'a' : /* Append file */ fd = cups_open(filename, O_WRONLY | O_CREAT | O_APPEND | O_LARGEFILE | O_BINARY); break; case 'r' : /* Read file */ fd = open(filename, O_RDONLY | O_LARGEFILE | O_BINARY, 0); break; case 'w' : /* Write file */ fd = cups_open(filename, O_WRONLY | O_LARGEFILE | O_BINARY); if (fd < 0 && errno == ENOENT) { fd = cups_open(filename, O_WRONLY | O_CREAT | O_EXCL | O_LARGEFILE | O_BINARY); if (fd < 0 && errno == EEXIST) fd = cups_open(filename, O_WRONLY | O_LARGEFILE | O_BINARY); } if (fd >= 0) #ifdef _WIN32 _chsize(fd, 0); #else ftruncate(fd, 0); #endif /* _WIN32 */ break; case 's' : /* Read/write socket */ strlcpy(hostname, filename, sizeof(hostname)); if ((portname = strrchr(hostname, ':')) != NULL) *portname++ = '\0'; else return (NULL); /* * Lookup the hostname and service... */ if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) return (NULL); /* * Connect to the server... */ if (!httpAddrConnect(addrlist, &fd)) { httpAddrFreeList(addrlist); return (NULL); } httpAddrFreeList(addrlist); break; default : /* Remove bogus compiler warning... */ return (NULL); } if (fd < 0) return (NULL); /* * Create the CUPS file structure... */ if ((fp = cupsFileOpenFd(fd, mode)) == NULL) { if (*mode == 's') httpAddrClose(NULL, fd); else close(fd); } /* * Return it... */ return (fp); } /* * 'cupsFileOpenFd()' - Open a CUPS file using a file descriptor. * * The "mode" parameter can be "r" to read, "w" to write, "a" to append, * or "s" to treat the file descriptor as a bidirectional socket connection. * * When opening for writing ("w"), an optional number from 1 to 9 can be * supplied which enables Flate compression of the file. Compression is * not supported for the "a" (append) mode. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file or @code NULL@ if the file could not be opened */ cupsFileOpenFd(int fd, /* I - File descriptor */ const char *mode) /* I - Open mode */ { cups_file_t *fp; /* New CUPS file */ DEBUG_printf(("cupsFileOpenFd(fd=%d, mode=\"%s\")", fd, mode)); /* * Range check input... */ if (fd < 0 || !mode || (*mode != 'r' && *mode != 'w' && *mode != 'a' && *mode != 's') || (*mode == 'a' && isdigit(mode[1] & 255))) return (NULL); /* * Allocate memory... */ if ((fp = calloc(1, sizeof(cups_file_t))) == NULL) return (NULL); /* * Open the file... */ fp->fd = fd; switch (*mode) { case 'a' : fp->pos = lseek(fd, 0, SEEK_END); case 'w' : fp->mode = 'w'; fp->ptr = fp->buf; fp->end = fp->buf + sizeof(fp->buf); #ifdef HAVE_LIBZ if (mode[1] >= '1' && mode[1] <= '9') { /* * Open a compressed stream, so write the standard gzip file * header... */ unsigned char header[10]; /* gzip file header */ time_t curtime; /* Current time */ curtime = time(NULL); header[0] = 0x1f; header[1] = 0x8b; header[2] = Z_DEFLATED; header[3] = 0; header[4] = (unsigned char)curtime; header[5] = (unsigned char)(curtime >> 8); header[6] = (unsigned char)(curtime >> 16); header[7] = (unsigned char)(curtime >> 24); header[8] = 0; header[9] = 0x03; cups_write(fp, (char *)header, 10); /* * Initialize the compressor... */ if (deflateInit2(&(fp->stream), mode[1] - '0', Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY) < Z_OK) { close(fd); free(fp); return (NULL); } fp->stream.next_out = fp->cbuf; fp->stream.avail_out = sizeof(fp->cbuf); fp->compressed = 1; fp->crc = crc32(0L, Z_NULL, 0); } #endif /* HAVE_LIBZ */ break; case 'r' : fp->mode = 'r'; break; case 's' : fp->mode = 's'; break; default : /* Remove bogus compiler warning... */ return (NULL); } /* * Don't pass this file to child processes... */ #ifndef _WIN32 fcntl(fp->fd, F_SETFD, fcntl(fp->fd, F_GETFD) | FD_CLOEXEC); #endif /* !_WIN32 */ return (fp); } /* * '_cupsFilePeekAhead()' - See if the requested character is buffered up. */ int /* O - 1 if present, 0 otherwise */ _cupsFilePeekAhead(cups_file_t *fp, /* I - CUPS file */ int ch) /* I - Character */ { return (fp && fp->ptr && memchr(fp->ptr, ch, (size_t)(fp->end - fp->ptr))); } /* * 'cupsFilePeekChar()' - Peek at the next character from a file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Character or -1 on end of file */ cupsFilePeekChar(cups_file_t *fp) /* I - CUPS file */ { /* * Range check input... */ if (!fp || (fp->mode != 'r' && fp->mode != 's')) return (-1); /* * If the input buffer is empty, try to read more data... */ if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) return (-1); /* * Return the next character in the buffer... */ return (*(fp->ptr) & 255); } /* * 'cupsFilePrintf()' - Write a formatted string. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Number of bytes written or -1 on error */ cupsFilePrintf(cups_file_t *fp, /* I - CUPS file */ const char *format, /* I - Printf-style format string */ ...) /* I - Additional args as necessary */ { va_list ap; /* Argument list */ ssize_t bytes; /* Formatted size */ DEBUG_printf(("2cupsFilePrintf(fp=%p, format=\"%s\", ...)", (void *)fp, format)); if (!fp || !format || (fp->mode != 'w' && fp->mode != 's')) return (-1); if (!fp->printf_buffer) { /* * Start with a 1k printf buffer... */ if ((fp->printf_buffer = malloc(1024)) == NULL) return (-1); fp->printf_size = 1024; } va_start(ap, format); bytes = vsnprintf(fp->printf_buffer, fp->printf_size, format, ap); va_end(ap); if (bytes >= (ssize_t)fp->printf_size) { /* * Expand the printf buffer... */ char *temp; /* Temporary buffer pointer */ if (bytes > 65535) return (-1); if ((temp = realloc(fp->printf_buffer, (size_t)(bytes + 1))) == NULL) return (-1); fp->printf_buffer = temp; fp->printf_size = (size_t)(bytes + 1); va_start(ap, format); bytes = vsnprintf(fp->printf_buffer, fp->printf_size, format, ap); va_end(ap); } if (fp->mode == 's') { if (cups_write(fp, fp->printf_buffer, (size_t)bytes) < 0) return (-1); fp->pos += bytes; DEBUG_printf(("4cupsFilePrintf: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return ((int)bytes); } if ((fp->ptr + bytes) > fp->end) if (cupsFileFlush(fp)) return (-1); fp->pos += bytes; DEBUG_printf(("4cupsFilePrintf: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); if ((size_t)bytes > sizeof(fp->buf)) { #ifdef HAVE_LIBZ if (fp->compressed) return ((int)cups_compress(fp, fp->printf_buffer, (size_t)bytes)); else #endif /* HAVE_LIBZ */ return ((int)cups_write(fp, fp->printf_buffer, (size_t)bytes)); } else { memcpy(fp->ptr, fp->printf_buffer, (size_t)bytes); fp->ptr += bytes; if (fp->is_stdio && cupsFileFlush(fp)) return (-1); else return ((int)bytes); } } /* * 'cupsFilePutChar()' - Write a character. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsFilePutChar(cups_file_t *fp, /* I - CUPS file */ int c) /* I - Character to write */ { /* * Range check input... */ if (!fp || (fp->mode != 'w' && fp->mode != 's')) return (-1); if (fp->mode == 's') { /* * Send character immediately over socket... */ char ch; /* Output character */ ch = (char)c; if (send(fp->fd, &ch, 1, 0) < 1) return (-1); } else { /* * Buffer it up... */ if (fp->ptr >= fp->end) if (cupsFileFlush(fp)) return (-1); *(fp->ptr) ++ = (char)c; } fp->pos ++; DEBUG_printf(("4cupsFilePutChar: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (0); } /* * 'cupsFilePutConf()' - Write a configuration line. * * This function handles any comment escaping of the value. * * @since CUPS 1.4/macOS 10.6@ */ ssize_t /* O - Number of bytes written or -1 on error */ cupsFilePutConf(cups_file_t *fp, /* I - CUPS file */ const char *directive, /* I - Directive */ const char *value) /* I - Value */ { ssize_t bytes, /* Number of bytes written */ temp; /* Temporary byte count */ const char *ptr; /* Pointer into value */ if (!fp || !directive || !*directive) return (-1); if ((bytes = cupsFilePuts(fp, directive)) < 0) return (-1); if (cupsFilePutChar(fp, ' ') < 0) return (-1); bytes ++; if (value && *value) { if ((ptr = strchr(value, '#')) != NULL) { /* * Need to quote the first # in the info string... */ if ((temp = cupsFileWrite(fp, value, (size_t)(ptr - value))) < 0) return (-1); bytes += temp; if (cupsFilePutChar(fp, '\\') < 0) return (-1); bytes ++; if ((temp = cupsFilePuts(fp, ptr)) < 0) return (-1); bytes += temp; } else if ((temp = cupsFilePuts(fp, value)) < 0) return (-1); else bytes += temp; } if (cupsFilePutChar(fp, '\n') < 0) return (-1); else return (bytes + 1); } /* * 'cupsFilePuts()' - Write a string. * * Like the @code fputs@ function, no newline is appended to the string. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Number of bytes written or -1 on error */ cupsFilePuts(cups_file_t *fp, /* I - CUPS file */ const char *s) /* I - String to write */ { ssize_t bytes; /* Bytes to write */ /* * Range check input... */ if (!fp || !s || (fp->mode != 'w' && fp->mode != 's')) return (-1); /* * Write the string... */ bytes = (ssize_t)strlen(s); if (fp->mode == 's') { if (cups_write(fp, s, (size_t)bytes) < 0) return (-1); fp->pos += bytes; DEBUG_printf(("4cupsFilePuts: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return ((int)bytes); } if ((fp->ptr + bytes) > fp->end) if (cupsFileFlush(fp)) return (-1); fp->pos += bytes; DEBUG_printf(("4cupsFilePuts: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); if ((size_t)bytes > sizeof(fp->buf)) { #ifdef HAVE_LIBZ if (fp->compressed) return ((int)cups_compress(fp, s, (size_t)bytes)); else #endif /* HAVE_LIBZ */ return ((int)cups_write(fp, s, (size_t)bytes)); } else { memcpy(fp->ptr, s, (size_t)bytes); fp->ptr += bytes; if (fp->is_stdio && cupsFileFlush(fp)) return (-1); else return ((int)bytes); } } /* * 'cupsFileRead()' - Read from a file. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Number of bytes read or -1 on error */ cupsFileRead(cups_file_t *fp, /* I - CUPS file */ char *buf, /* O - Buffer */ size_t bytes) /* I - Number of bytes to read */ { size_t total; /* Total bytes read */ ssize_t count; /* Bytes read */ DEBUG_printf(("2cupsFileRead(fp=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST bytes)); /* * Range check input... */ if (!fp || !buf || (fp->mode != 'r' && fp->mode != 's')) return (-1); if (bytes == 0) return (0); if (fp->eof) { DEBUG_puts("5cupsFileRead: End-of-file!"); return (-1); } /* * Loop until all bytes are read... */ total = 0; while (bytes > 0) { if (fp->ptr >= fp->end) if (cups_fill(fp) <= 0) { DEBUG_printf(("4cupsFileRead: cups_fill() returned -1, total=" CUPS_LLFMT, CUPS_LLCAST total)); if (total > 0) return ((ssize_t)total); else return (-1); } count = (ssize_t)(fp->end - fp->ptr); if (count > (ssize_t)bytes) count = (ssize_t)bytes; memcpy(buf, fp->ptr,(size_t) count); fp->ptr += count; fp->pos += count; DEBUG_printf(("4cupsFileRead: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); /* * Update the counts for the last read... */ bytes -= (size_t)count; total += (size_t)count; buf += count; } /* * Return the total number of bytes read... */ DEBUG_printf(("3cupsFileRead: total=" CUPS_LLFMT, CUPS_LLCAST total)); return ((ssize_t)total); } /* * 'cupsFileRewind()' - Set the current file position to the beginning of the * file. * * @since CUPS 1.2/macOS 10.5@ */ off_t /* O - New file position or -1 on error */ cupsFileRewind(cups_file_t *fp) /* I - CUPS file */ { /* * Range check input... */ DEBUG_printf(("cupsFileRewind(fp=%p)", (void *)fp)); if (!fp || fp->mode != 'r') return (-1); DEBUG_printf(("2cupsFileRewind: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); /* * Handle special cases... */ if (fp->bufpos == 0) { /* * No seeking necessary... */ fp->pos = 0; if (fp->ptr) { fp->ptr = fp->buf; fp->eof = 0; } DEBUG_printf(("2cupsFileRewind: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (0); } /* * Otherwise, seek in the file and cleanup any compression buffers... */ #ifdef HAVE_LIBZ if (fp->compressed) { inflateEnd(&fp->stream); fp->compressed = 0; } #endif /* HAVE_LIBZ */ if (lseek(fp->fd, 0, SEEK_SET)) { DEBUG_printf(("1cupsFileRewind: lseek failed: %s", strerror(errno))); return (-1); } fp->bufpos = 0; fp->pos = 0; fp->ptr = NULL; fp->end = NULL; fp->eof = 0; DEBUG_printf(("2cupsFileRewind: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (0); } /* * 'cupsFileSeek()' - Seek in a file. * * @since CUPS 1.2/macOS 10.5@ */ off_t /* O - New file position or -1 on error */ cupsFileSeek(cups_file_t *fp, /* I - CUPS file */ off_t pos) /* I - Position in file */ { ssize_t bytes; /* Number bytes in buffer */ DEBUG_printf(("cupsFileSeek(fp=%p, pos=" CUPS_LLFMT ")", (void *)fp, CUPS_LLCAST pos)); /* * Range check input... */ if (!fp || pos < 0 || fp->mode != 'r') return (-1); DEBUG_printf(("2cupsFileSeek: fp->pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); DEBUG_printf(("2cupsFileSeek: fp->ptr=%p, fp->end=%p", (void *)fp->ptr, (void *)fp->end)); /* * Handle special cases... */ if (pos == 0) return (cupsFileRewind(fp)); if (fp->ptr) { bytes = (ssize_t)(fp->end - fp->buf); DEBUG_printf(("2cupsFileSeek: bytes=" CUPS_LLFMT, CUPS_LLCAST bytes)); if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) { /* * No seeking necessary... */ fp->pos = pos; fp->ptr = fp->buf + (pos - fp->bufpos); fp->eof = 0; return (pos); } } #ifdef HAVE_LIBZ if (!fp->compressed && !fp->ptr) { /* * Preload a buffer to determine whether the file is compressed... */ if (cups_fill(fp) <= 0) return (-1); } #endif /* HAVE_LIBZ */ /* * Seek forwards or backwards... */ fp->eof = 0; if (pos < fp->bufpos) { /* * Need to seek backwards... */ DEBUG_puts("2cupsFileSeek: SEEK BACKWARDS"); #ifdef HAVE_LIBZ if (fp->compressed) { inflateEnd(&fp->stream); lseek(fp->fd, 0, SEEK_SET); fp->bufpos = 0; fp->pos = 0; fp->ptr = NULL; fp->end = NULL; while ((bytes = cups_fill(fp)) > 0) if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) break; if (bytes <= 0) return (-1); fp->ptr = fp->buf + pos - fp->bufpos; fp->pos = pos; } else #endif /* HAVE_LIBZ */ { fp->bufpos = lseek(fp->fd, pos, SEEK_SET); fp->pos = fp->bufpos; fp->ptr = NULL; fp->end = NULL; DEBUG_printf(("2cupsFileSeek: lseek() returned " CUPS_LLFMT, CUPS_LLCAST fp->pos)); } } else { /* * Need to seek forwards... */ DEBUG_puts("2cupsFileSeek: SEEK FORWARDS"); #ifdef HAVE_LIBZ if (fp->compressed) { while ((bytes = cups_fill(fp)) > 0) { if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) break; } if (bytes <= 0) return (-1); fp->ptr = fp->buf + pos - fp->bufpos; fp->pos = pos; } else #endif /* HAVE_LIBZ */ { fp->bufpos = lseek(fp->fd, pos, SEEK_SET); fp->pos = fp->bufpos; fp->ptr = NULL; fp->end = NULL; DEBUG_printf(("2cupsFileSeek: lseek() returned " CUPS_LLFMT, CUPS_LLCAST fp->pos)); } } DEBUG_printf(("2cupsFileSeek: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return (fp->pos); } /* * 'cupsFileStderr()' - Return a CUPS file associated with stderr. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file */ cupsFileStderr(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals... */ /* * Open file descriptor 2 as needed... */ if (!cg->stdio_files[2]) { /* * Flush any pending output on the stdio file... */ fflush(stderr); /* * Open file descriptor 2... */ if ((cg->stdio_files[2] = cupsFileOpenFd(2, "w")) != NULL) cg->stdio_files[2]->is_stdio = 1; } return (cg->stdio_files[2]); } /* * 'cupsFileStdin()' - Return a CUPS file associated with stdin. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file */ cupsFileStdin(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals... */ /* * Open file descriptor 0 as needed... */ if (!cg->stdio_files[0]) { /* * Open file descriptor 0... */ if ((cg->stdio_files[0] = cupsFileOpenFd(0, "r")) != NULL) cg->stdio_files[0]->is_stdio = 1; } return (cg->stdio_files[0]); } /* * 'cupsFileStdout()' - Return a CUPS file associated with stdout. * * @since CUPS 1.2/macOS 10.5@ */ cups_file_t * /* O - CUPS file */ cupsFileStdout(void) { _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals... */ /* * Open file descriptor 1 as needed... */ if (!cg->stdio_files[1]) { /* * Flush any pending output on the stdio file... */ fflush(stdout); /* * Open file descriptor 1... */ if ((cg->stdio_files[1] = cupsFileOpenFd(1, "w")) != NULL) cg->stdio_files[1]->is_stdio = 1; } return (cg->stdio_files[1]); } /* * 'cupsFileTell()' - Return the current file position. * * @since CUPS 1.2/macOS 10.5@ */ off_t /* O - File position */ cupsFileTell(cups_file_t *fp) /* I - CUPS file */ { DEBUG_printf(("2cupsFileTell(fp=%p)", (void *)fp)); DEBUG_printf(("3cupsFileTell: pos=" CUPS_LLFMT, CUPS_LLCAST (fp ? fp->pos : -1))); return (fp ? fp->pos : 0); } /* * 'cupsFileUnlock()' - Unlock access to a file. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on success, -1 on error */ cupsFileUnlock(cups_file_t *fp) /* I - CUPS file */ { /* * Range check... */ DEBUG_printf(("cupsFileUnlock(fp=%p)", (void *)fp)); if (!fp || fp->mode == 's') return (-1); /* * Unlock... */ #ifdef _WIN32 return (_locking(fp->fd, _LK_UNLCK, 0)); #else return (lockf(fp->fd, F_ULOCK, 0)); #endif /* _WIN32 */ } /* * 'cupsFileWrite()' - Write to a file. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Number of bytes written or -1 on error */ cupsFileWrite(cups_file_t *fp, /* I - CUPS file */ const char *buf, /* I - Buffer */ size_t bytes) /* I - Number of bytes to write */ { /* * Range check input... */ DEBUG_printf(("2cupsFileWrite(fp=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST bytes)); if (!fp || !buf || (fp->mode != 'w' && fp->mode != 's')) return (-1); if (bytes == 0) return (0); /* * Write the buffer... */ if (fp->mode == 's') { if (cups_write(fp, buf, bytes) < 0) return (-1); fp->pos += (off_t)bytes; DEBUG_printf(("4cupsFileWrite: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); return ((ssize_t)bytes); } if ((fp->ptr + bytes) > fp->end) if (cupsFileFlush(fp)) return (-1); fp->pos += (off_t)bytes; DEBUG_printf(("4cupsFileWrite: pos=" CUPS_LLFMT, CUPS_LLCAST fp->pos)); if (bytes > sizeof(fp->buf)) { #ifdef HAVE_LIBZ if (fp->compressed) return (cups_compress(fp, buf, bytes)); else #endif /* HAVE_LIBZ */ return (cups_write(fp, buf, bytes)); } else { memcpy(fp->ptr, buf, bytes); fp->ptr += bytes; return ((ssize_t)bytes); } } #ifdef HAVE_LIBZ /* * 'cups_compress()' - Compress a buffer of data. */ static ssize_t /* O - Number of bytes written or -1 */ cups_compress(cups_file_t *fp, /* I - CUPS file */ const char *buf, /* I - Buffer */ size_t bytes) /* I - Number bytes */ { int status; /* Deflate status */ DEBUG_printf(("7cups_compress(fp=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST bytes)); /* * Update the CRC... */ fp->crc = crc32(fp->crc, (const Bytef *)buf, (uInt)bytes); /* * Deflate the bytes... */ fp->stream.next_in = (Bytef *)buf; fp->stream.avail_in = (uInt)bytes; while (fp->stream.avail_in > 0) { /* * Flush the current buffer... */ DEBUG_printf(("9cups_compress: avail_in=%d, avail_out=%d", fp->stream.avail_in, fp->stream.avail_out)); if (fp->stream.avail_out < (uInt)(sizeof(fp->cbuf) / 8)) { if (cups_write(fp, (char *)fp->cbuf, (size_t)(fp->stream.next_out - fp->cbuf)) < 0) return (-1); fp->stream.next_out = fp->cbuf; fp->stream.avail_out = sizeof(fp->cbuf); } if ((status = deflate(&(fp->stream), Z_NO_FLUSH)) < Z_OK && status != Z_BUF_ERROR) return (-1); } return ((ssize_t)bytes); } #endif /* HAVE_LIBZ */ /* * 'cups_fill()' - Fill the input buffer. */ static ssize_t /* O - Number of bytes or -1 */ cups_fill(cups_file_t *fp) /* I - CUPS file */ { ssize_t bytes; /* Number of bytes read */ #ifdef HAVE_LIBZ int status; /* Decompression status */ const unsigned char *ptr, /* Pointer into buffer */ *end; /* End of buffer */ #endif /* HAVE_LIBZ */ DEBUG_printf(("7cups_fill(fp=%p)", (void *)fp)); DEBUG_printf(("9cups_fill: fp->ptr=%p, fp->end=%p, fp->buf=%p, fp->bufpos=" CUPS_LLFMT ", fp->eof=%d", (void *)fp->ptr, (void *)fp->end, (void *)fp->buf, CUPS_LLCAST fp->bufpos, fp->eof)); if (fp->ptr && fp->end) fp->bufpos += fp->end - fp->buf; #ifdef HAVE_LIBZ DEBUG_printf(("9cups_fill: fp->compressed=%d", fp->compressed)); while (!fp->ptr || fp->compressed) { /* * Check to see if we have read any data yet; if not, see if we have a * compressed file... */ if (!fp->ptr) { /* * Reset the file position in case we are seeking... */ fp->compressed = 0; /* * Read the first bytes in the file to determine if we have a gzip'd * file... */ if ((bytes = cups_read(fp, (char *)fp->buf, sizeof(fp->buf))) < 0) { /* * Can't read from file! */ DEBUG_printf(("9cups_fill: cups_read() returned " CUPS_LLFMT, CUPS_LLCAST bytes)); fp->eof = 1; return (-1); } if (bytes < 10 || fp->buf[0] != 0x1f || (fp->buf[1] & 255) != 0x8b || fp->buf[2] != 8 || (fp->buf[3] & 0xe0) != 0) { /* * Not a gzip'd file! */ fp->ptr = fp->buf; fp->end = fp->buf + bytes; DEBUG_printf(("9cups_fill: Returning " CUPS_LLFMT, CUPS_LLCAST bytes)); return (bytes); } /* * Parse header junk: extra data, original name, and comment... */ ptr = (unsigned char *)fp->buf + 10; end = (unsigned char *)fp->buf + bytes; if (fp->buf[3] & 0x04) { /* * Skip extra data... */ if ((ptr + 2) > end) { /* * Can't read from file! */ DEBUG_puts("9cups_fill: Extra gzip header data missing, returning -1."); fp->eof = 1; errno = EIO; return (-1); } bytes = (ptr[1] << 8) | ptr[0]; ptr += 2 + bytes; if (ptr > end) { /* * Can't read from file! */ DEBUG_puts("9cups_fill: Extra gzip header data does not fit in initial buffer, returning -1."); fp->eof = 1; errno = EIO; return (-1); } } if (fp->buf[3] & 0x08) { /* * Skip original name data... */ while (ptr < end && *ptr) ptr ++; if (ptr < end) ptr ++; else { /* * Can't read from file! */ DEBUG_puts("9cups_fill: Original filename in gzip header data does not fit in initial buffer, returning -1."); fp->eof = 1; errno = EIO; return (-1); } } if (fp->buf[3] & 0x10) { /* * Skip comment data... */ while (ptr < end && *ptr) ptr ++; if (ptr < end) ptr ++; else { /* * Can't read from file! */ DEBUG_puts("9cups_fill: Comment in gzip header data does not fit in initial buffer, returning -1."); fp->eof = 1; errno = EIO; return (-1); } } if (fp->buf[3] & 0x02) { /* * Skip header CRC data... */ ptr += 2; if (ptr > end) { /* * Can't read from file! */ DEBUG_puts("9cups_fill: Header CRC in gzip header data does not fit in initial buffer, returning -1."); fp->eof = 1; errno = EIO; return (-1); } } /* * Copy the flate-compressed data to the compression buffer... */ if ((bytes = end - ptr) > 0) memcpy(fp->cbuf, ptr, (size_t)bytes); /* * Setup the decompressor data... */ fp->stream.zalloc = (alloc_func)0; fp->stream.zfree = (free_func)0; fp->stream.opaque = (voidpf)0; fp->stream.next_in = (Bytef *)fp->cbuf; fp->stream.next_out = NULL; fp->stream.avail_in = (uInt)bytes; fp->stream.avail_out = 0; fp->crc = crc32(0L, Z_NULL, 0); if ((status = inflateInit2(&(fp->stream), -15)) != Z_OK) { DEBUG_printf(("9cups_fill: inflateInit2 returned %d, returning -1.", status)); fp->eof = 1; errno = EIO; return (-1); } fp->compressed = 1; } if (fp->compressed) { /* * If we have reached end-of-file, return immediately... */ if (fp->eof) { DEBUG_puts("9cups_fill: EOF, returning 0."); return (0); } /* * Fill the decompression buffer as needed... */ if (fp->stream.avail_in == 0) { if ((bytes = cups_read(fp, (char *)fp->cbuf, sizeof(fp->cbuf))) <= 0) { DEBUG_printf(("9cups_fill: cups_read error, returning %d.", (int)bytes)); fp->eof = 1; return (bytes); } fp->stream.next_in = fp->cbuf; fp->stream.avail_in = (uInt)bytes; } /* * Decompress data from the buffer... */ fp->stream.next_out = (Bytef *)fp->buf; fp->stream.avail_out = sizeof(fp->buf); status = inflate(&(fp->stream), Z_NO_FLUSH); if (fp->stream.next_out > (Bytef *)fp->buf) fp->crc = crc32(fp->crc, (Bytef *)fp->buf, (uInt)(fp->stream.next_out - (Bytef *)fp->buf)); if (status == Z_STREAM_END) { /* * Read the CRC and length... */ unsigned char trailer[8]; /* Trailer bytes */ uLong tcrc; /* Trailer CRC */ ssize_t tbytes = 0; /* Number of bytes */ if (fp->stream.avail_in > 0) { if (fp->stream.avail_in > sizeof(trailer)) tbytes = (ssize_t)sizeof(trailer); else tbytes = (ssize_t)fp->stream.avail_in; memcpy(trailer, fp->stream.next_in, (size_t)tbytes); fp->stream.next_in += tbytes; fp->stream.avail_in -= (size_t)tbytes; } if (tbytes < (ssize_t)sizeof(trailer)) { if (read(fp->fd, trailer + tbytes, sizeof(trailer) - (size_t)tbytes) < ((ssize_t)sizeof(trailer) - tbytes)) { /* * Can't get it, so mark end-of-file... */ DEBUG_puts("9cups_fill: Unable to read gzip CRC trailer, returning -1."); fp->eof = 1; errno = EIO; return (-1); } } tcrc = ((uLong)trailer[3] << 24) | ((uLong)trailer[2] << 16) | ((uLong)trailer[1] << 8) | ((uLong)trailer[0]); if (tcrc != fp->crc) { /* * Bad CRC, mark end-of-file... */ DEBUG_printf(("9cups_fill: tcrc=%08x != fp->crc=%08x, returning -1.", (unsigned int)tcrc, (unsigned int)fp->crc)); fp->eof = 1; errno = EIO; return (-1); } /* * Otherwise, reset the compressed flag so that we re-read the * file header... */ inflateEnd(&fp->stream); fp->compressed = 0; } else if (status < Z_OK) { DEBUG_printf(("9cups_fill: inflate returned %d, returning -1.", status)); fp->eof = 1; errno = EIO; return (-1); } bytes = (ssize_t)sizeof(fp->buf) - (ssize_t)fp->stream.avail_out; /* * Return the decompressed data... */ fp->ptr = fp->buf; fp->end = fp->buf + bytes; if (bytes) { DEBUG_printf(("9cups_fill: Returning %d.", (int)bytes)); return (bytes); } } } #endif /* HAVE_LIBZ */ /* * Read a buffer's full of data... */ if ((bytes = cups_read(fp, fp->buf, sizeof(fp->buf))) <= 0) { /* * Can't read from file! */ fp->eof = 1; fp->ptr = fp->buf; fp->end = fp->buf; } else { /* * Return the bytes we read... */ fp->eof = 0; fp->ptr = fp->buf; fp->end = fp->buf + bytes; } DEBUG_printf(("9cups_fill: Not gzip, returning %d.", (int)bytes)); return (bytes); } /* * 'cups_open()' - Safely open a file for writing. * * We don't allow appending to directories or files that are hard-linked or * symlinked. */ static int /* O - File descriptor or -1 otherwise */ cups_open(const char *filename, /* I - Filename */ int mode) /* I - Open mode */ { int fd; /* File descriptor */ struct stat fileinfo; /* File information */ #ifndef _WIN32 struct stat linkinfo; /* Link information */ #endif /* !_WIN32 */ /* * Open the file... */ if ((fd = open(filename, mode, 0666)) < 0) return (-1); /* * Then verify that the file descriptor doesn't point to a directory or hard- * linked file. */ if (fstat(fd, &fileinfo)) { close(fd); return (-1); } if (fileinfo.st_nlink != 1) { close(fd); errno = EPERM; return (-1); } #ifdef _WIN32 if (fileinfo.st_mode & _S_IFDIR) #else if (S_ISDIR(fileinfo.st_mode)) #endif /* _WIN32 */ { close(fd); errno = EISDIR; return (-1); } #ifndef _WIN32 /* * Then use lstat to determine whether the filename is a symlink... */ if (lstat(filename, &linkinfo)) { close(fd); return (-1); } if (S_ISLNK(linkinfo.st_mode) || fileinfo.st_dev != linkinfo.st_dev || fileinfo.st_ino != linkinfo.st_ino || #ifdef HAVE_ST_GEN fileinfo.st_gen != linkinfo.st_gen || #endif /* HAVE_ST_GEN */ fileinfo.st_nlink != linkinfo.st_nlink || fileinfo.st_mode != linkinfo.st_mode) { /* * Yes, don't allow! */ close(fd); errno = EPERM; return (-1); } #endif /* !_WIN32 */ return (fd); } /* * 'cups_read()' - Read from a file descriptor. */ static ssize_t /* O - Number of bytes read or -1 */ cups_read(cups_file_t *fp, /* I - CUPS file */ char *buf, /* I - Buffer */ size_t bytes) /* I - Number bytes */ { ssize_t total; /* Total bytes read */ DEBUG_printf(("7cups_read(fp=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST bytes)); /* * Loop until we read at least 0 bytes... */ for (;;) { #ifdef _WIN32 if (fp->mode == 's') total = (ssize_t)recv(fp->fd, buf, (unsigned)bytes, 0); else total = (ssize_t)read(fp->fd, buf, (unsigned)bytes); #else if (fp->mode == 's') total = recv(fp->fd, buf, bytes, 0); else total = read(fp->fd, buf, bytes); #endif /* _WIN32 */ DEBUG_printf(("9cups_read: total=" CUPS_LLFMT, CUPS_LLCAST total)); if (total >= 0) break; /* * Reads can be interrupted by signals and unavailable resources... */ if (errno == EAGAIN || errno == EINTR) continue; else return (-1); } /* * Return the total number of bytes read... */ return (total); } /* * 'cups_write()' - Write to a file descriptor. */ static ssize_t /* O - Number of bytes written or -1 */ cups_write(cups_file_t *fp, /* I - CUPS file */ const char *buf, /* I - Buffer */ size_t bytes) /* I - Number bytes */ { size_t total; /* Total bytes written */ ssize_t count; /* Count this time */ DEBUG_printf(("7cups_write(fp=%p, buf=%p, bytes=" CUPS_LLFMT ")", (void *)fp, (void *)buf, CUPS_LLCAST bytes)); /* * Loop until all bytes are written... */ total = 0; while (bytes > 0) { #ifdef _WIN32 if (fp->mode == 's') count = (ssize_t)send(fp->fd, buf, (unsigned)bytes, 0); else count = (ssize_t)write(fp->fd, buf, (unsigned)bytes); #else if (fp->mode == 's') count = send(fp->fd, buf, bytes, 0); else count = write(fp->fd, buf, bytes); #endif /* _WIN32 */ DEBUG_printf(("9cups_write: count=" CUPS_LLFMT, CUPS_LLCAST count)); if (count < 0) { /* * Writes can be interrupted by signals and unavailable resources... */ if (errno == EAGAIN || errno == EINTR) continue; else return (-1); } /* * Update the counts for the last write call... */ bytes -= (size_t)count; total += (size_t)count; buf += count; } /* * Return the total number of bytes written... */ return ((ssize_t)total); } cups-2.4.7/cups/file-private.h0000644000175000017500000000502514502571342016075 0ustar zdohnalzdohnal/* * Private file definitions for CUPS. * * Since stdio files max out at 256 files on many systems, we have to * write similar functions without this limit. At the same time, using * our own file functions allows us to provide transparent support of * different line endings, gzip'd print files, PPD files, etc. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_FILE_PRIVATE_H_ # define _CUPS_FILE_PRIVATE_H_ /* * Include necessary headers... */ # include "cups-private.h" # include # include # include # include # ifdef _WIN32 # include # include # endif /* _WIN32 */ /* * Some operating systems support large files via open flag O_LARGEFILE... */ # ifndef O_LARGEFILE # define O_LARGEFILE 0 # endif /* !O_LARGEFILE */ /* * Some operating systems don't define O_BINARY, which is used by Microsoft * and IBM to flag binary files... */ # ifndef O_BINARY # define O_BINARY 0 # endif /* !O_BINARY */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types and structures... */ typedef enum /**** _cupsFileCheck return values ****/ { _CUPS_FILE_CHECK_OK = 0, /* Everything OK */ _CUPS_FILE_CHECK_MISSING = 1, /* File is missing */ _CUPS_FILE_CHECK_PERMISSIONS = 2, /* File (or parent dir) has bad perms */ _CUPS_FILE_CHECK_WRONG_TYPE = 3, /* File has wrong type */ _CUPS_FILE_CHECK_RELATIVE_PATH = 4 /* File contains a relative path */ } _cups_fc_result_t; typedef enum /**** _cupsFileCheck file type values ****/ { _CUPS_FILE_CHECK_FILE = 0, /* Check the file and parent directory */ _CUPS_FILE_CHECK_PROGRAM = 1, /* Check the program and parent directory */ _CUPS_FILE_CHECK_FILE_ONLY = 2, /* Check the file only */ _CUPS_FILE_CHECK_DIRECTORY = 3 /* Check the directory */ } _cups_fc_filetype_t; typedef void (*_cups_fc_func_t)(void *context, _cups_fc_result_t result, const char *message); /* * Prototypes... */ extern _cups_fc_result_t _cupsFileCheck(const char *filename, _cups_fc_filetype_t filetype, int dorootchecks, _cups_fc_func_t cb, void *context) _CUPS_PRIVATE; extern void _cupsFileCheckFilter(void *context, _cups_fc_result_t result, const char *message) _CUPS_PRIVATE; extern int _cupsFilePeekAhead(cups_file_t *fp, int ch); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_FILE_PRIVATE_H_ */ cups-2.4.7/cups/encode.c0000644000175000017500000007100414502571342014736 0ustar zdohnalzdohnal/* * Option encoding routines for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * Local list of option names, the value tags they should use, and the list of * supported operations... * * **** THIS LIST MUST BE SORTED BY ATTRIBUTE NAME **** */ static const ipp_op_t ipp_job_creation[] = { IPP_OP_PRINT_JOB, IPP_OP_PRINT_URI, IPP_OP_VALIDATE_JOB, IPP_OP_CREATE_JOB, IPP_OP_HOLD_JOB, IPP_OP_SET_JOB_ATTRIBUTES, IPP_OP_CUPS_NONE }; static const ipp_op_t ipp_doc_creation[] = { IPP_OP_PRINT_JOB, IPP_OP_PRINT_URI, IPP_OP_SEND_DOCUMENT, IPP_OP_SEND_URI, IPP_OP_SET_JOB_ATTRIBUTES, IPP_OP_SET_DOCUMENT_ATTRIBUTES, IPP_OP_CUPS_NONE }; static const ipp_op_t ipp_sub_creation[] = { IPP_OP_PRINT_JOB, IPP_OP_PRINT_URI, IPP_OP_CREATE_JOB, IPP_OP_CREATE_PRINTER_SUBSCRIPTIONS, IPP_OP_CREATE_JOB_SUBSCRIPTIONS, IPP_OP_CUPS_NONE }; static const ipp_op_t ipp_all_print[] = { IPP_OP_PRINT_JOB, IPP_OP_PRINT_URI, IPP_OP_VALIDATE_JOB, IPP_OP_CREATE_JOB, IPP_OP_SEND_DOCUMENT, IPP_OP_SEND_URI, IPP_OP_CUPS_NONE }; static const ipp_op_t ipp_set_printer[] = { IPP_OP_SET_PRINTER_ATTRIBUTES, IPP_OP_CUPS_ADD_MODIFY_PRINTER, IPP_OP_CUPS_ADD_MODIFY_CLASS, IPP_OP_CUPS_NONE }; static const ipp_op_t cups_schemes[] = { IPP_OP_CUPS_GET_DEVICES, IPP_OP_CUPS_GET_PPDS, IPP_OP_CUPS_NONE }; static const ipp_op_t cups_get_ppds[] = { IPP_OP_CUPS_GET_PPDS, IPP_OP_CUPS_NONE }; static const ipp_op_t cups_ppd_name[] = { IPP_OP_CUPS_ADD_MODIFY_PRINTER, IPP_OP_CUPS_GET_PPD, IPP_OP_CUPS_NONE }; static const _ipp_option_t ipp_options[] = { { 1, "auth-info", IPP_TAG_TEXT, IPP_TAG_JOB }, { 1, "auth-info-default", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 1, "auth-info-required", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "blackplot", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 0, "blackplot-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "brightness", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "brightness-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "columns", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "columns-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "compression", IPP_TAG_KEYWORD, IPP_TAG_OPERATION, IPP_TAG_ZERO, ipp_doc_creation }, { 0, "copies", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "copies-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "date-time-at-completed",IPP_TAG_DATE, IPP_TAG_ZERO }, /* never send as option */ { 0, "date-time-at-creation", IPP_TAG_DATE, IPP_TAG_ZERO }, /* never send as option */ { 0, "date-time-at-processing",IPP_TAG_DATE, IPP_TAG_ZERO }, /* never send as option */ { 0, "device-uri", IPP_TAG_URI, IPP_TAG_PRINTER }, { 1, "document-copies", IPP_TAG_RANGE, IPP_TAG_JOB, IPP_TAG_DOCUMENT, ipp_doc_creation }, { 0, "document-format", IPP_TAG_MIMETYPE, IPP_TAG_OPERATION, IPP_TAG_ZERO, ipp_doc_creation }, { 0, "document-format-default", IPP_TAG_MIMETYPE, IPP_TAG_PRINTER }, { 1, "document-numbers", IPP_TAG_RANGE, IPP_TAG_JOB, IPP_TAG_DOCUMENT, ipp_all_print }, { 1, "exclude-schemes", IPP_TAG_NAME, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_schemes }, { 1, "finishings", IPP_TAG_ENUM, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 1, "finishings-col", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 1, "finishings-col-default", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_PRINTER }, { 1, "finishings-default", IPP_TAG_ENUM, IPP_TAG_PRINTER }, { 0, "fit-to-page", IPP_TAG_BOOLEAN, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "fit-to-page-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "fitplot", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 0, "fitplot-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "gamma", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "gamma-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "hue", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "hue-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "include-schemes", IPP_TAG_NAME, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_schemes }, { 0, "ipp-attribute-fidelity", IPP_TAG_BOOLEAN, IPP_TAG_OPERATION }, { 0, "job-account-id", IPP_TAG_NAME, IPP_TAG_JOB }, { 0, "job-account-id-default",IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "job-accounting-user-id", IPP_TAG_NAME, IPP_TAG_JOB }, { 0, "job-accounting-user-id-default", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "job-authorization-uri", IPP_TAG_URI, IPP_TAG_OPERATION }, { 0, "job-cancel-after", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "job-cancel-after-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "job-hold-until", IPP_TAG_KEYWORD, IPP_TAG_JOB }, { 0, "job-hold-until-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "job-id", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-impressions", IPP_TAG_INTEGER, IPP_TAG_OPERATION }, { 0, "job-impressions-completed", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-k-limit", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "job-k-octets", IPP_TAG_INTEGER, IPP_TAG_OPERATION }, { 0, "job-k-octets-completed",IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-media-sheets", IPP_TAG_INTEGER, IPP_TAG_OPERATION }, { 0, "job-media-sheets-completed", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-name", IPP_TAG_NAME, IPP_TAG_OPERATION, IPP_TAG_JOB }, { 0, "job-page-limit", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "job-pages", IPP_TAG_INTEGER, IPP_TAG_OPERATION }, { 0, "job-pages-completed", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-password", IPP_TAG_STRING, IPP_TAG_OPERATION, IPP_TAG_ZERO, ipp_job_creation }, { 0, "job-password-encryption", IPP_TAG_KEYWORD, IPP_TAG_OPERATION, IPP_TAG_ZERO, ipp_job_creation }, { 0, "job-priority", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "job-priority-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "job-quota-period", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "job-sheets", IPP_TAG_NAME, IPP_TAG_JOB }, { 1, "job-sheets-default", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "job-state", IPP_TAG_ENUM, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-state-message", IPP_TAG_TEXT, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-state-reasons", IPP_TAG_KEYWORD, IPP_TAG_ZERO }, /* never send as option */ { 0, "job-uuid", IPP_TAG_URI, IPP_TAG_JOB }, { 0, "landscape", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 1, "marker-change-time", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "marker-colors", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 1, "marker-high-levels", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "marker-levels", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "marker-low-levels", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "marker-message", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 1, "marker-names", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 1, "marker-types", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 1, "media", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-bottom-margin", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-col", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-col-default", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_PRINTER }, { 0, "media-color", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 1, "media-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "media-key", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-left-margin", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-right-margin", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-size", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-size-name", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-source", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-top-margin", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "media-type", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "mirror", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 0, "mirror-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "multiple-document-handling", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "multiple-document-handling-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "natural-scaling", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "natural-scaling-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "notify-charset", IPP_TAG_CHARSET, IPP_TAG_SUBSCRIPTION }, { 1, "notify-events", IPP_TAG_KEYWORD, IPP_TAG_SUBSCRIPTION }, { 1, "notify-events-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "notify-lease-duration", IPP_TAG_INTEGER, IPP_TAG_SUBSCRIPTION }, { 0, "notify-lease-duration-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "notify-natural-language", IPP_TAG_LANGUAGE, IPP_TAG_SUBSCRIPTION }, { 0, "notify-pull-method", IPP_TAG_KEYWORD, IPP_TAG_SUBSCRIPTION }, { 0, "notify-recipient-uri", IPP_TAG_URI, IPP_TAG_SUBSCRIPTION }, { 0, "notify-time-interval", IPP_TAG_INTEGER, IPP_TAG_SUBSCRIPTION }, { 0, "notify-user-data", IPP_TAG_STRING, IPP_TAG_SUBSCRIPTION }, { 0, "number-up", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "number-up-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "number-up-layout", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "number-up-layout-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "orientation-requested", IPP_TAG_ENUM, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "orientation-requested-default", IPP_TAG_ENUM, IPP_TAG_PRINTER }, { 0, "output-bin", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "output-bin-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 1, "overrides", IPP_TAG_BEGIN_COLLECTION, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "page-bottom", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "page-bottom-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "page-delivery", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "page-delivery-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "page-left", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "page-left-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "page-ranges", IPP_TAG_RANGE, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "page-right", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "page-right-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "page-top", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "page-top-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "pages", IPP_TAG_RANGE, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "penwidth", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "penwidth-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "port-monitor", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "ppd-device-id", IPP_TAG_TEXT, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-make", IPP_TAG_TEXT, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-make-and-model", IPP_TAG_TEXT, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-model-number", IPP_TAG_INTEGER, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-name", IPP_TAG_NAME, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_ppd_name }, { 0, "ppd-natural-language", IPP_TAG_LANGUAGE, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-product", IPP_TAG_TEXT, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-psversion", IPP_TAG_TEXT, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppd-type", IPP_TAG_KEYWORD, IPP_TAG_OPERATION, IPP_TAG_ZERO, cups_get_ppds }, { 0, "ppi", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "ppi-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "prettyprint", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 0, "prettyprint-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "print-color-mode", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "print-color-mode-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "print-content-optimize", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "print-content-optimize-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "print-quality", IPP_TAG_ENUM, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "print-quality-default", IPP_TAG_ENUM, IPP_TAG_PRINTER }, { 0, "print-rendering-intent", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "print-rendering-intent-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "print-scaling", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "print-scaling-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 1, "printer-alert", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 1, "printer-alert-description", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 1, "printer-commands", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "printer-error-policy", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 1, "printer-finisher", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 1, "printer-finisher-description", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 1, "printer-finisher-supplies", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 1, "printer-finisher-supplies-description", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 0, "printer-geo-location", IPP_TAG_URI, IPP_TAG_PRINTER }, { 0, "printer-info", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 1, "printer-input-tray", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 0, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "printer-is-shared", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "printer-is-temporary", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "printer-location", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 0, "printer-make-and-model", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 0, "printer-more-info", IPP_TAG_URI, IPP_TAG_PRINTER }, { 0, "printer-op-policy", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 1, "printer-output-tray", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 0, "printer-resolution", IPP_TAG_RESOLUTION, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "printer-resolution-default", IPP_TAG_RESOLUTION, IPP_TAG_PRINTER }, { 0, "printer-state", IPP_TAG_ENUM, IPP_TAG_PRINTER }, { 0, "printer-state-change-time", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 1, "printer-state-reasons", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 1, "printer-supply", IPP_TAG_STRING, IPP_TAG_PRINTER }, { 1, "printer-supply-description", IPP_TAG_TEXT, IPP_TAG_PRINTER }, { 0, "printer-type", IPP_TAG_ENUM, IPP_TAG_PRINTER }, { 0, "printer-uri", IPP_TAG_URI, IPP_TAG_OPERATION }, { 1, "printer-uri-supported", IPP_TAG_URI, IPP_TAG_PRINTER }, { 0, "queued-job-count", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "raw", IPP_TAG_MIMETYPE, IPP_TAG_OPERATION }, { 1, "requested-attributes", IPP_TAG_NAME, IPP_TAG_OPERATION }, { 1, "requesting-user-name-allowed", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 1, "requesting-user-name-denied", IPP_TAG_NAME, IPP_TAG_PRINTER }, { 0, "resolution", IPP_TAG_RESOLUTION, IPP_TAG_JOB }, { 0, "resolution-default", IPP_TAG_RESOLUTION, IPP_TAG_PRINTER }, { 0, "saturation", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "saturation-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "scaling", IPP_TAG_INTEGER, IPP_TAG_JOB }, { 0, "scaling-default", IPP_TAG_INTEGER, IPP_TAG_PRINTER }, { 0, "sides", IPP_TAG_KEYWORD, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "sides-default", IPP_TAG_KEYWORD, IPP_TAG_PRINTER }, { 0, "time-at-completed", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "time-at-creation", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "time-at-processing", IPP_TAG_INTEGER, IPP_TAG_ZERO }, /* never send as option */ { 0, "wrap", IPP_TAG_BOOLEAN, IPP_TAG_JOB }, { 0, "wrap-default", IPP_TAG_BOOLEAN, IPP_TAG_PRINTER }, { 0, "x-dimension", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT }, { 0, "y-dimension", IPP_TAG_INTEGER, IPP_TAG_JOB, IPP_TAG_DOCUMENT } }; /* * Local functions... */ static int compare_ipp_options(_ipp_option_t *a, _ipp_option_t *b); /* * '_cupsEncodeOption()' - Encode a single option as an IPP attribute. */ ipp_attribute_t * /* O - New attribute or @code NULL@ on error */ _cupsEncodeOption( ipp_t *ipp, /* I - IPP request/response/collection */ ipp_tag_t group_tag, /* I - Group tag */ _ipp_option_t *map, /* I - Option mapping, if any */ const char *name, /* I - Attribute name */ const char *value) /* I - Value */ { int i, /* Looping var */ count; /* Number of values */ char *s, /* Pointer into option value */ *val, /* Pointer to option value */ *copy, /* Copy of option value */ *sep, /* Option separator */ quote; /* Quote character */ ipp_attribute_t *attr; /* IPP attribute */ ipp_tag_t value_tag; /* IPP value tag */ ipp_t *collection; /* Collection value */ int num_cols; /* Number of collection values */ cups_option_t *cols; /* Collection values */ DEBUG_printf(("_cupsEncodeOption(ipp=%p(%s), group=%s, map=%p, name=\"%s\", value=\"%s\")", (void *)ipp, ipp ? ippOpString(ippGetOperation(ipp)) : "", ippTagString(group_tag), (void *)map, name, value)); /* * Figure out the attribute syntax for encoding... */ if (!map) map = _ippFindOption(name); if (map) value_tag = map->value_tag; else if (!_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "false")) value_tag = IPP_TAG_BOOLEAN; else if (value[0] == '{') value_tag = IPP_TAG_BEGIN_COLLECTION; else value_tag = IPP_TAG_NAME; /* * Count the number of values... */ if (map && map->multivalue) { for (count = 1, sep = (char *)value, quote = 0; *sep; sep ++) { if (*sep == quote) quote = 0; else if (!quote && (*sep == '\'' || *sep == '\"')) { /* * Skip quoted option value... */ quote = *sep; } else if (*sep == ',' && !quote) count ++; else if (*sep == '\\' && sep[1]) sep ++; } } else count = 1; DEBUG_printf(("2_cupsEncodeOption: value_tag=%s, count=%d", ippTagString(value_tag), count)); /* * Allocate memory for the attribute values... */ if ((attr = ippAddStrings(ipp, group_tag, value_tag, name, count, NULL, NULL)) == NULL) { /* * Ran out of memory! */ DEBUG_puts("1_cupsEncodeOption: Ran out of memory for attributes."); return (NULL); } if (count > 1) { /* * Make a copy of the value we can fiddle with... */ if ((copy = strdup(value)) == NULL) { /* * Ran out of memory! */ DEBUG_puts("1_cupsEncodeOption: Ran out of memory for value copy."); ippDeleteAttribute(ipp, attr); return (NULL); } val = copy; } else { /* * Since we have a single value, use the value directly... */ val = (char *)value; copy = NULL; } /* * Scan the value string for values... */ for (i = 0, sep = val; i < count; val = sep, i ++) { /* * Find the end of this value and mark it if needed... */ if (count > 1) { for (quote = 0; *sep; sep ++) { if (*sep == quote) { /* * Finish quoted value... */ quote = 0; } else if (!quote && (*sep == '\'' || *sep == '\"')) { /* * Handle quoted option value... */ quote = *sep; } else if (*sep == ',') break; else if (*sep == '\\' && sep[1]) { /* * Skip quoted character... */ memmove(sep, sep + 1, strlen(sep)); } } if (*sep == ',') *sep++ = '\0'; } /* * Copy the option value(s) over as needed by the type... */ switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : /* * Integer/enumeration value... */ ippSetInteger(ipp, &attr, i, (int)strtol(val, &s, 10)); break; case IPP_TAG_BOOLEAN : if (!_cups_strcasecmp(val, "true") || !_cups_strcasecmp(val, "on") || !_cups_strcasecmp(val, "yes")) { /* * Boolean value - true... */ ippSetBoolean(ipp, &attr, i, 1); } else { /* * Boolean value - false... */ ippSetBoolean(ipp, &attr, i, 0); } break; case IPP_TAG_RANGE : { /* * Range... */ int lower, upper; /* Lower and upper ranges... */ if (*val == '-') { lower = 1; s = val; } else lower = (int)strtol(val, &s, 10); if (*s == '-') { if (s[1]) upper = atoi(s + 1); else upper = 2147483647; } else upper = lower; ippSetRange(ipp, &attr, i, lower, upper); } break; case IPP_TAG_RESOLUTION : { /* * Resolution... */ int xres, yres; /* Resolution values */ ipp_res_t units; /* Resolution units */ xres = (int)strtol(val, &s, 10); if (*s == 'x') yres = (int)strtol(s + 1, &s, 10); else yres = xres; if (!_cups_strcasecmp(s, "dpc") || !_cups_strcasecmp(s, "dpcm")) units = IPP_RES_PER_CM; else units = IPP_RES_PER_INCH; ippSetResolution(ipp, &attr, i, units, xres, yres); } break; case IPP_TAG_STRING : /* * octetString */ ippSetOctetString(ipp, &attr, i, val, (int)strlen(val)); break; case IPP_TAG_BEGIN_COLLECTION : /* * Collection value */ num_cols = cupsParseOptions(val, 0, &cols); if ((collection = ippNew()) == NULL) { cupsFreeOptions(num_cols, cols); if (copy) free(copy); ippDeleteAttribute(ipp, attr); return (NULL); } ippSetCollection(ipp, &attr, i, collection); cupsEncodeOptions2(collection, num_cols, cols, IPP_TAG_JOB); cupsFreeOptions(num_cols, cols); ippDelete(collection); break; default : ippSetString(ipp, &attr, i, val); break; } } if (copy) free(copy); return (attr); } /* * 'cupsEncodeOption()' - Encode a single option into an IPP attribute. * * @since CUPS 2.3/macOS 10.14@ */ ipp_attribute_t * /* O - New attribute or @code NULL@ on error */ cupsEncodeOption(ipp_t *ipp, /* I - IPP request/response */ ipp_tag_t group_tag, /* I - Attribute group */ const char *name, /* I - Option name */ const char *value) /* I - Option string value */ { return (_cupsEncodeOption(ipp, group_tag, _ippFindOption(name), name, value)); } /* * 'cupsEncodeOptions()' - Encode printer options into IPP attributes. * * This function adds operation, job, and then subscription attributes, * in that order. Use the @link cupsEncodeOptions2@ function to add attributes * for a single group. */ void cupsEncodeOptions(ipp_t *ipp, /* I - IPP request/response */ int num_options, /* I - Number of options */ cups_option_t *options) /* I - Options */ { DEBUG_printf(("cupsEncodeOptions(%p, %d, %p)", (void *)ipp, num_options, (void *)options)); /* * Add the options in the proper groups & order... */ cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_OPERATION); cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_JOB); cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_SUBSCRIPTION); } /* * 'cupsEncodeOptions2()' - Encode printer options into IPP attributes for a group. * * This function only adds attributes for a single group. Call this * function multiple times for each group, or use @link cupsEncodeOptions@ * to add the standard groups. * * @since CUPS 1.2/macOS 10.5@ */ void cupsEncodeOptions2( ipp_t *ipp, /* I - IPP request/response */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ ipp_tag_t group_tag) /* I - Group to encode */ { int i; /* Looping var */ char *val; /* Pointer to option value */ cups_option_t *option; /* Current option */ ipp_op_t op; /* Operation for this request */ const ipp_op_t *ops; /* List of allowed operations */ DEBUG_printf(("cupsEncodeOptions2(ipp=%p(%s), num_options=%d, options=%p, group_tag=%x)", (void *)ipp, ipp ? ippOpString(ippGetOperation(ipp)) : "", num_options, (void *)options, group_tag)); /* * Range check input... */ if (!ipp || num_options < 1 || !options) return; /* * Do special handling for the document-format/raw options... */ op = ippGetOperation(ipp); if (group_tag == IPP_TAG_OPERATION && (op == IPP_OP_PRINT_JOB || op == IPP_OP_PRINT_URI || op == IPP_OP_SEND_DOCUMENT || op == IPP_OP_SEND_URI)) { /* * Handle the document format stuff first... */ if ((val = (char *)cupsGetOption("document-format", num_options, options)) != NULL) ippAddString(ipp, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, val); else if (cupsGetOption("raw", num_options, options)) ippAddString(ipp, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, "application/vnd.cups-raw"); else ippAddString(ipp, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, "application/octet-stream"); } /* * Then loop through the options... */ for (i = num_options, option = options; i > 0; i --, option ++) { _ipp_option_t *match; /* Matching attribute */ /* * Skip document format options that are handled above... */ if (!_cups_strcasecmp(option->name, "raw") || !_cups_strcasecmp(option->name, "document-format") || !option->name[0]) continue; /* * Figure out the proper value and group tags for this option... */ if ((match = _ippFindOption(option->name)) != NULL) { if (match->group_tag != group_tag && match->alt_group_tag != group_tag) continue; if (match->operations) ops = match->operations; else if (group_tag == IPP_TAG_JOB) ops = ipp_job_creation; else if (group_tag == IPP_TAG_DOCUMENT) ops = ipp_doc_creation; else if (group_tag == IPP_TAG_SUBSCRIPTION) ops = ipp_sub_creation; else if (group_tag == IPP_TAG_PRINTER) ops = ipp_set_printer; else { DEBUG_printf(("2cupsEncodeOptions2: Skipping \"%s\".", option->name)); continue; } } else { int namelen; /* Length of name */ namelen = (int)strlen(option->name); if (namelen < 10 || (strcmp(option->name + namelen - 8, "-default") && strcmp(option->name + namelen - 10, "-supported"))) { if (group_tag != IPP_TAG_JOB && group_tag != IPP_TAG_DOCUMENT) { DEBUG_printf(("2cupsEncodeOptions2: Skipping \"%s\".", option->name)); continue; } } else if (group_tag != IPP_TAG_PRINTER) { DEBUG_printf(("2cupsEncodeOptions2: Skipping \"%s\".", option->name)); continue; } if (group_tag == IPP_TAG_JOB) ops = ipp_job_creation; else if (group_tag == IPP_TAG_DOCUMENT) ops = ipp_doc_creation; else ops = ipp_set_printer; } /* * Verify that we send this attribute for this operation... */ while (*ops != IPP_OP_CUPS_NONE) if (op == *ops) break; else ops ++; if (*ops == IPP_OP_CUPS_NONE && op != IPP_OP_CUPS_NONE) { DEBUG_printf(("2cupsEncodeOptions2: Skipping \"%s\".", option->name)); continue; } _cupsEncodeOption(ipp, group_tag, match, option->name, option->value); } } #ifdef DEBUG /* * '_ippCheckOptions()' - Validate that the option array is sorted properly. */ const char * /* O - First out-of-order option or NULL */ _ippCheckOptions(void) { int i; /* Looping var */ for (i = 0; i < (int)(sizeof(ipp_options) / sizeof(ipp_options[0]) - 1); i ++) if (strcmp(ipp_options[i].name, ipp_options[i + 1].name) >= 0) return (ipp_options[i + 1].name); return (NULL); } #endif /* DEBUG */ /* * '_ippFindOption()' - Find the attribute information for an option. */ _ipp_option_t * /* O - Attribute information */ _ippFindOption(const char *name) /* I - Option/attribute name */ { _ipp_option_t key; /* Search key */ /* * Lookup the proper value and group tags for this option... */ key.name = name; return ((_ipp_option_t *)bsearch(&key, ipp_options, sizeof(ipp_options) / sizeof(ipp_options[0]), sizeof(ipp_options[0]), (int (*)(const void *, const void *)) compare_ipp_options)); } /* * 'compare_ipp_options()' - Compare two IPP options. */ static int /* O - Result of comparison */ compare_ipp_options(_ipp_option_t *a, /* I - First option */ _ipp_option_t *b) /* I - Second option */ { return (strcmp(a->name, b->name)); } cups-2.4.7/cups/dir.h0000644000175000017500000000220614502571342014262 0ustar zdohnalzdohnal/* * Public directory definitions for CUPS. * * This set of APIs abstracts enumeration of directory entries. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_DIR_H_ # define _CUPS_DIR_H_ /* * Include necessary headers... */ # include "versioning.h" # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Data types... */ typedef struct _cups_dir_s cups_dir_t; /**** Directory type ****/ typedef struct cups_dentry_s /**** Directory entry type ****/ { char filename[260]; /* File name */ struct stat fileinfo; /* File information */ } cups_dentry_t; /* * Prototypes... */ extern void cupsDirClose(cups_dir_t *dp) _CUPS_API_1_2; extern cups_dir_t *cupsDirOpen(const char *directory) _CUPS_API_1_2; extern cups_dentry_t *cupsDirRead(cups_dir_t *dp) _CUPS_API_1_2; extern void cupsDirRewind(cups_dir_t *dp) _CUPS_API_1_2; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_DIR_H_ */ cups-2.4.7/cups/dir.c0000644000175000017500000001703014502571342014256 0ustar zdohnalzdohnal/* * Directory routines for CUPS. * * This set of APIs abstracts enumeration of directory entries. * * Copyright © 2022-2023 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "string-private.h" #include "debug-internal.h" #include "dir.h" /* * Windows implementation... */ #ifdef _WIN32 # include /* * Types and structures... */ struct _cups_dir_s /**** Directory data structure ****/ { char directory[1024]; /* Directory filename */ HANDLE dir; /* Directory handle */ cups_dentry_t entry; /* Directory entry */ }; /* * '_cups_dir_time()' - Convert a FILETIME value to a UNIX time value. */ time_t /* O - UNIX time */ _cups_dir_time(FILETIME ft) /* I - File time */ { ULONGLONG val; /* File time in 0.1 usecs */ /* * Convert file time (1/10 microseconds since Jan 1, 1601) to UNIX * time (seconds since Jan 1, 1970). There are 11,644,732,800 seconds * between them... */ val = ft.dwLowDateTime + ((ULONGLONG)ft.dwHighDateTime << 32); return ((time_t)(val / 10000000 - 11644732800)); } /* * 'cupsDirClose()' - Close a directory. * * @since CUPS 1.2/macOS 10.5@ */ void cupsDirClose(cups_dir_t *dp) /* I - Directory pointer */ { /* * Range check input... */ if (!dp) return; /* * Close an open directory handle... */ if (dp->dir != INVALID_HANDLE_VALUE) FindClose(dp->dir); /* * Free memory used... */ free(dp); } /* * 'cupsDirOpen()' - Open a directory. * * @since CUPS 1.2/macOS 10.5@ */ cups_dir_t * /* O - Directory pointer or @code NULL@ if the directory could not be opened. */ cupsDirOpen(const char *directory) /* I - Directory name */ { cups_dir_t *dp; /* Directory */ /* * Range check input... */ if (!directory) return (NULL); /* * Allocate memory for the directory structure... */ dp = (cups_dir_t *)calloc(1, sizeof(cups_dir_t)); if (!dp) return (NULL); /* * Copy the directory name for later use... */ dp->dir = INVALID_HANDLE_VALUE; snprintf(dp->directory, sizeof(dp->directory), "%s\\*", directory); /* * Return the new directory structure... */ return (dp); } /* * 'cupsDirRead()' - Read the next directory entry. * * @since CUPS 1.2/macOS 10.5@ */ cups_dentry_t * /* O - Directory entry or @code NULL@ if there are no more */ cupsDirRead(cups_dir_t *dp) /* I - Directory pointer */ { WIN32_FIND_DATAA entry; /* Directory entry data */ /* * Range check input... */ if (!dp) return (NULL); /* * See if we have already started finding files... */ if (dp->dir == INVALID_HANDLE_VALUE) { /* * No, find the first file... */ dp->dir = FindFirstFileA(dp->directory, &entry); if (dp->dir == INVALID_HANDLE_VALUE) return (NULL); } else if (!FindNextFileA(dp->dir, &entry)) return (NULL); /* * Loop until we have something other than "." or ".."... */ while (!strcmp(entry.cFileName, ".") || !strcmp(entry.cFileName, "..")) { if (!FindNextFileA(dp->dir, &entry)) return (NULL); } /* * Copy the name over and convert the file information... */ strlcpy(dp->entry.filename, entry.cFileName, sizeof(dp->entry.filename)); if (entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) dp->entry.fileinfo.st_mode = 0755 | S_IFDIR; else dp->entry.fileinfo.st_mode = 0644 | S_IFREG; dp->entry.fileinfo.st_atime = _cups_dir_time(entry.ftLastAccessTime); dp->entry.fileinfo.st_ctime = _cups_dir_time(entry.ftCreationTime); dp->entry.fileinfo.st_mtime = _cups_dir_time(entry.ftLastWriteTime); dp->entry.fileinfo.st_size = entry.nFileSizeLow + ((unsigned long long)entry.nFileSizeHigh << 32); /* * Return the entry... */ return (&(dp->entry)); } /* * 'cupsDirRewind()' - Rewind to the start of the directory. * * @since CUPS 1.2/macOS 10.5@ */ void cupsDirRewind(cups_dir_t *dp) /* I - Directory pointer */ { /* * Range check input... */ if (!dp) return; /* * Close an open directory handle... */ if (dp->dir != INVALID_HANDLE_VALUE) { FindClose(dp->dir); dp->dir = INVALID_HANDLE_VALUE; } } #else /* * POSIX implementation... */ # include # include /* * Types and structures... */ struct _cups_dir_s /**** Directory data structure ****/ { char directory[1024]; /* Directory filename */ DIR *dir; /* Directory file */ cups_dentry_t entry; /* Directory entry */ }; /* * 'cupsDirClose()' - Close a directory. * * @since CUPS 1.2/macOS 10.5@ */ void cupsDirClose(cups_dir_t *dp) /* I - Directory pointer */ { DEBUG_printf(("cupsDirClose(dp=%p)", (void *)dp)); /* * Range check input... */ if (!dp) return; /* * Close the directory and free memory... */ closedir(dp->dir); free(dp); } /* * 'cupsDirOpen()' - Open a directory. * * @since CUPS 1.2/macOS 10.5@ */ cups_dir_t * /* O - Directory pointer or @code NULL@ if the directory could not be opened. */ cupsDirOpen(const char *directory) /* I - Directory name */ { cups_dir_t *dp; /* Directory */ DEBUG_printf(("cupsDirOpen(directory=\"%s\")", directory)); /* * Range check input... */ if (!directory) return (NULL); /* * Allocate memory for the directory structure... */ dp = (cups_dir_t *)calloc(1, sizeof(cups_dir_t)); if (!dp) return (NULL); /* * Open the directory... */ dp->dir = opendir(directory); if (!dp->dir) { free(dp); return (NULL); } /* * Copy the directory name for later use... */ strlcpy(dp->directory, directory, sizeof(dp->directory)); /* * Return the new directory structure... */ return (dp); } /* * 'cupsDirRead()' - Read the next directory entry. * * @since CUPS 1.2/macOS 10.5@ */ cups_dentry_t * /* O - Directory entry or @code NULL@ when there are no more */ cupsDirRead(cups_dir_t *dp) /* I - Directory pointer */ { struct dirent *entry; /* Pointer to entry */ char filename[1024]; /* Full filename */ DEBUG_printf(("2cupsDirRead(dp=%p)", (void *)dp)); /* * Range check input... */ if (!dp) return (NULL); /* * Try reading an entry that is not "." or ".."... */ for (;;) { /* * Read the next entry... */ if ((entry = readdir(dp->dir)) == NULL) { DEBUG_puts("3cupsDirRead: readdir() returned a NULL pointer!"); return (NULL); } DEBUG_printf(("4cupsDirRead: readdir() returned \"%s\"...", entry->d_name)); /* * Skip "." and ".."... */ if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..")) continue; /* * Copy the name over and get the file information... */ strlcpy(dp->entry.filename, entry->d_name, sizeof(dp->entry.filename)); snprintf(filename, sizeof(filename), "%s/%s", dp->directory, entry->d_name); if (stat(filename, &(dp->entry.fileinfo))) { DEBUG_printf(("3cupsDirRead: stat() failed for \"%s\" - %s...", filename, strerror(errno))); continue; } /* * Return the entry... */ return (&(dp->entry)); } } /* * 'cupsDirRewind()' - Rewind to the start of the directory. * * @since CUPS 1.2/macOS 10.5@ */ void cupsDirRewind(cups_dir_t *dp) /* I - Directory pointer */ { DEBUG_printf(("cupsDirRewind(dp=%p)", (void *)dp)); /* * Range check input... */ if (!dp) return; /* * Rewind the directory... */ rewinddir(dp->dir); } #endif /* _WIN32 */ cups-2.4.7/cups/dest.c0000644000175000017500000036522014502571342014446 0ustar zdohnalzdohnal/* * User-defined destination (and option) support for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #ifdef HAVE_NOTIFY_H # include #endif /* HAVE_NOTIFY_H */ #ifdef HAVE_POLL # include #endif /* HAVE_POLL */ #ifdef HAVE_MDNSRESPONDER # include #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI # include # include # include # include # include # include #define kDNSServiceMaxDomainName AVAHI_DOMAIN_NAME_MAX #endif /* HAVE_AVAHI */ /* * Constants... */ #ifdef __APPLE__ # if HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME # include # define _CUPS_LOCATION_DEFAULTS 1 # endif /* HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME */ # define kCUPSPrintingPrefs CFSTR("org.cups.PrintingPrefs") # define kDefaultPaperIDKey CFSTR("DefaultPaperID") # define kLastUsedPrintersKey CFSTR("LastUsedPrinters") # define kLocationNetworkKey CFSTR("Network") # define kLocationPrinterIDKey CFSTR("PrinterID") # define kUseLastPrinter CFSTR("UseLastPrinter") #endif /* __APPLE__ */ #ifdef HAVE_DNSSD # define _CUPS_DNSSD_GET_DESTS 250 /* Milliseconds for cupsGetDests */ # define _CUPS_DNSSD_MAXTIME 50 /* Milliseconds for maximum quantum of time */ #else # define _CUPS_DNSSD_GET_DESTS 0 /* Milliseconds for cupsGetDests */ #endif /* HAVE_DNSSD */ /* * Types... */ #ifdef HAVE_DNSSD typedef enum _cups_dnssd_state_e /* Enumerated device state */ { _CUPS_DNSSD_NEW, _CUPS_DNSSD_QUERY, _CUPS_DNSSD_PENDING, _CUPS_DNSSD_ACTIVE, _CUPS_DNSSD_INCOMPATIBLE, _CUPS_DNSSD_ERROR } _cups_dnssd_state_t; typedef struct _cups_dnssd_data_s /* Enumeration data */ { # ifdef HAVE_MDNSRESPONDER DNSServiceRef main_ref; /* Main service reference */ # else /* HAVE_AVAHI */ AvahiSimplePoll *simple_poll; /* Polling interface */ AvahiClient *client; /* Client information */ int got_data; /* Did we get data? */ int browsers; /* How many browsers are running? */ # endif /* HAVE_MDNSRESPONDER */ cups_dest_cb_t cb; /* Callback */ void *user_data; /* User data pointer */ cups_ptype_t type, /* Printer type filter */ mask; /* Printer type mask */ cups_array_t *devices; /* Devices found so far */ int num_dests; /* Number of lpoptions destinations */ cups_dest_t *dests; /* lpoptions destinations */ char def_name[1024], /* Default printer name, if any */ *def_instance; /* Default printer instance, if any */ } _cups_dnssd_data_t; typedef struct _cups_dnssd_device_s /* Enumerated device */ { _cups_dnssd_state_t state; /* State of device listing */ # ifdef HAVE_MDNSRESPONDER DNSServiceRef ref; /* Service reference for query */ # else /* HAVE_AVAHI */ AvahiRecordBrowser *ref; /* Browser for query */ # endif /* HAVE_MDNSRESPONDER */ char *fullName, /* Full name */ *regtype, /* Registration type */ *domain; /* Domain name */ cups_ptype_t type; /* Device registration type */ cups_dest_t dest; /* Destination record */ } _cups_dnssd_device_t; typedef struct _cups_dnssd_resolve_s /* Data for resolving URI */ { int *cancel; /* Pointer to "cancel" variable */ struct timeval end_time; /* Ending time */ } _cups_dnssd_resolve_t; #endif /* HAVE_DNSSD */ typedef struct _cups_getdata_s { int num_dests; /* Number of destinations */ cups_dest_t *dests; /* Destinations */ char def_name[1024], /* Default printer name, if any */ *def_instance; /* Default printer instance, if any */ } _cups_getdata_t; typedef struct _cups_namedata_s { const char *name; /* Named destination */ cups_dest_t *dest; /* Destination */ } _cups_namedata_t; /* * Local functions... */ #if _CUPS_LOCATION_DEFAULTS static CFArrayRef appleCopyLocations(void); static CFStringRef appleCopyNetwork(void); #endif /* _CUPS_LOCATION_DEFAULTS */ #ifdef __APPLE__ static char *appleGetPaperSize(char *name, size_t namesize); #endif /* __APPLE__ */ #if _CUPS_LOCATION_DEFAULTS static CFStringRef appleGetPrinter(CFArrayRef locations, CFStringRef network, CFIndex *locindex); #endif /* _CUPS_LOCATION_DEFAULTS */ static cups_dest_t *cups_add_dest(const char *name, const char *instance, int *num_dests, cups_dest_t **dests); #ifdef __BLOCKS__ static int cups_block_cb(cups_dest_block_t block, unsigned flags, cups_dest_t *dest); #endif /* __BLOCKS__ */ static int cups_compare_dests(cups_dest_t *a, cups_dest_t *b); #ifdef HAVE_DNSSD # ifdef HAVE_MDNSRESPONDER static void cups_dnssd_browse_cb(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context); # else /* HAVE_AVAHI */ static void cups_dnssd_browse_cb(AvahiServiceBrowser *browser, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *serviceName, const char *regtype, const char *replyDomain, AvahiLookupResultFlags flags, void *context); static void cups_dnssd_client_cb(AvahiClient *client, AvahiClientState state, void *context); # endif /* HAVE_MDNSRESPONDER */ static int cups_dnssd_compare_devices(_cups_dnssd_device_t *a, _cups_dnssd_device_t *b); static void cups_dnssd_free_device(_cups_dnssd_device_t *device, _cups_dnssd_data_t *data); static _cups_dnssd_device_t * cups_dnssd_get_device(_cups_dnssd_data_t *data, const char *serviceName, const char *regtype, const char *replyDomain); # ifdef HAVE_MDNSRESPONDER static void cups_dnssd_query_cb(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullName, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context); # else /* HAVE_AVAHI */ static int cups_dnssd_poll_cb(struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context); static void cups_dnssd_query_cb(AvahiRecordBrowser *browser, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t rrclass, uint16_t rrtype, const void *rdata, size_t rdlen, AvahiLookupResultFlags flags, void *context); # endif /* HAVE_MDNSRESPONDER */ static const char *cups_dnssd_resolve(cups_dest_t *dest, const char *uri, int msec, int *cancel, cups_dest_cb_t cb, void *user_data); static int cups_dnssd_resolve_cb(void *context); static void cups_dnssd_unquote(char *dst, const char *src, size_t dstsize); static int cups_elapsed(struct timeval *t); #endif /* HAVE_DNSSD */ static int cups_enum_dests(http_t *http, unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_cb_t cb, void *user_data); static int cups_find_dest(const char *name, const char *instance, int num_dests, cups_dest_t *dests, int prev, int *rdiff); static int cups_get_cb(_cups_getdata_t *data, unsigned flags, cups_dest_t *dest); static char *cups_get_default(const char *filename, char *namebuf, size_t namesize, const char **instance); static int cups_get_dests(const char *filename, const char *match_name, const char *match_inst, int load_all, int user_default_set, int num_dests, cups_dest_t **dests); static char *cups_make_string(ipp_attribute_t *attr, char *buffer, size_t bufsize); static int cups_name_cb(_cups_namedata_t *data, unsigned flags, cups_dest_t *dest); static void cups_queue_name(char *name, const char *serviceName, size_t namesize); /* * 'cupsAddDest()' - Add a destination to the list of destinations. * * This function cannot be used to add a new class or printer queue, * it only adds a new container of saved options for the named * destination or instance. * * If the named destination already exists, the destination list is * returned unchanged. Adding a new instance of a destination creates * a copy of that destination's options. * * Use the @link cupsSaveDests@ function to save the updated list of * destinations to the user's lpoptions file. */ int /* O - New number of destinations */ cupsAddDest(const char *name, /* I - Destination name */ const char *instance, /* I - Instance name or @code NULL@ for none/primary */ int num_dests, /* I - Number of destinations */ cups_dest_t **dests) /* IO - Destinations */ { int i; /* Looping var */ cups_dest_t *dest; /* Destination pointer */ cups_dest_t *parent = NULL; /* Parent destination */ cups_option_t *doption, /* Current destination option */ *poption; /* Current parent option */ if (!name || !dests) return (0); if (!cupsGetDest(name, instance, num_dests, *dests)) { if (instance && !cupsGetDest(name, NULL, num_dests, *dests)) { // Add destination first... if (!cups_add_dest(name, NULL, &num_dests, dests)) return (num_dests); } if ((dest = cups_add_dest(name, instance, &num_dests, dests)) == NULL) return (num_dests); /* * Find the base dest again now the array has been realloc'd. */ parent = cupsGetDest(name, NULL, num_dests, *dests); if (instance && parent && parent->num_options > 0) { /* * Copy options from parent... */ dest->options = calloc((size_t)parent->num_options, sizeof(cups_option_t)); if (dest->options) { dest->num_options = parent->num_options; for (i = dest->num_options, doption = dest->options, poption = parent->options; i > 0; i --, doption ++, poption ++) { doption->name = _cupsStrRetain(poption->name); doption->value = _cupsStrRetain(poption->value); } } } } return (num_dests); } #ifdef __APPLE__ /* * '_cupsAppleCopyDefaultPaperID()' - Get the default paper ID. */ CFStringRef /* O - Default paper ID */ _cupsAppleCopyDefaultPaperID(void) { return (CFPreferencesCopyAppValue(kDefaultPaperIDKey, kCUPSPrintingPrefs)); } /* * '_cupsAppleCopyDefaultPrinter()' - Get the default printer at this location. */ CFStringRef /* O - Default printer name */ _cupsAppleCopyDefaultPrinter(void) { # if _CUPS_LOCATION_DEFAULTS CFStringRef network; /* Network location */ CFArrayRef locations; /* Location array */ CFStringRef locprinter; /* Current printer */ /* * Use location-based defaults only if "use last printer" is selected in the * system preferences... */ if (!_cupsAppleGetUseLastPrinter()) { DEBUG_puts("1_cupsAppleCopyDefaultPrinter: Not using last printer as " "default."); return (NULL); } /* * Get the current location... */ if ((network = appleCopyNetwork()) == NULL) { DEBUG_puts("1_cupsAppleCopyDefaultPrinter: Unable to get current " "network."); return (NULL); } /* * Lookup the network in the preferences... */ if ((locations = appleCopyLocations()) == NULL) { /* * Missing or bad location array, so no location-based default... */ DEBUG_puts("1_cupsAppleCopyDefaultPrinter: Missing or bad last used " "printer array."); CFRelease(network); return (NULL); } DEBUG_printf(("1_cupsAppleCopyDefaultPrinter: Got locations, %d entries.", (int)CFArrayGetCount(locations))); if ((locprinter = appleGetPrinter(locations, network, NULL)) != NULL) CFRetain(locprinter); CFRelease(network); CFRelease(locations); return (locprinter); # else return (NULL); # endif /* _CUPS_LOCATION_DEFAULTS */ } /* * '_cupsAppleGetUseLastPrinter()' - Get whether to use the last used printer. */ int /* O - 1 to use last printer, 0 otherwise */ _cupsAppleGetUseLastPrinter(void) { Boolean uselast, /* Use last printer preference value */ uselast_set; /* Valid is set? */ if (getenv("CUPS_DISABLE_APPLE_DEFAULT")) return (0); uselast = CFPreferencesGetAppBooleanValue(kUseLastPrinter, kCUPSPrintingPrefs, &uselast_set); if (!uselast_set) return (1); else return (uselast); } /* * '_cupsAppleSetDefaultPaperID()' - Set the default paper id. */ void _cupsAppleSetDefaultPaperID( CFStringRef name) /* I - New paper ID */ { CFPreferencesSetAppValue(kDefaultPaperIDKey, name, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); # ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); # endif /* HAVE_NOTIFY_POST */ } /* * '_cupsAppleSetDefaultPrinter()' - Set the default printer for this location. */ void _cupsAppleSetDefaultPrinter( CFStringRef name) /* I - Default printer/class name */ { # if _CUPS_LOCATION_DEFAULTS CFStringRef network; /* Current network */ CFArrayRef locations; /* Old locations array */ CFIndex locindex; /* Index in locations array */ CFStringRef locprinter; /* Current printer */ CFMutableArrayRef newlocations; /* New locations array */ CFMutableDictionaryRef newlocation; /* New location */ /* * Get the current location... */ if ((network = appleCopyNetwork()) == NULL) { DEBUG_puts("1_cupsAppleSetDefaultPrinter: Unable to get current network..."); return; } /* * Lookup the network in the preferences... */ if ((locations = appleCopyLocations()) != NULL) locprinter = appleGetPrinter(locations, network, &locindex); else { locprinter = NULL; locindex = -1; } if (!locprinter || CFStringCompare(locprinter, name, 0) != kCFCompareEqualTo) { /* * Need to change the locations array... */ if (locations) { newlocations = CFArrayCreateMutableCopy(kCFAllocatorDefault, 0, locations); if (locprinter) CFArrayRemoveValueAtIndex(newlocations, locindex); } else newlocations = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks); newlocation = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); if (newlocation && newlocations) { /* * Put the new location at the front of the array... */ CFDictionaryAddValue(newlocation, kLocationNetworkKey, network); CFDictionaryAddValue(newlocation, kLocationPrinterIDKey, name); CFArrayInsertValueAtIndex(newlocations, 0, newlocation); /* * Limit the number of locations to 10... */ while (CFArrayGetCount(newlocations) > 10) CFArrayRemoveValueAtIndex(newlocations, 10); /* * Push the changes out... */ CFPreferencesSetAppValue(kLastUsedPrintersKey, newlocations, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); # ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); # endif /* HAVE_NOTIFY_POST */ } if (newlocations) CFRelease(newlocations); if (newlocation) CFRelease(newlocation); } if (locations) CFRelease(locations); CFRelease(network); # else (void)name; # endif /* _CUPS_LOCATION_DEFAULTS */ } /* * '_cupsAppleSetUseLastPrinter()' - Set whether to use the last used printer. */ void _cupsAppleSetUseLastPrinter( int uselast) /* O - 1 to use last printer, 0 otherwise */ { CFPreferencesSetAppValue(kUseLastPrinter, uselast ? kCFBooleanTrue : kCFBooleanFalse, kCUPSPrintingPrefs); CFPreferencesAppSynchronize(kCUPSPrintingPrefs); # ifdef HAVE_NOTIFY_POST notify_post("com.apple.printerPrefsChange"); # endif /* HAVE_NOTIFY_POST */ } #endif /* __APPLE__ */ /* * 'cupsConnectDest()' - Open a connection to the destination. * * Connect to the destination, returning a new @code http_t@ connection object * and optionally the resource path to use for the destination. These calls * will block until a connection is made, the timeout expires, the integer * pointed to by "cancel" is non-zero, or the callback function (or block) * returns 0. The caller is responsible for calling @link httpClose@ on the * returned connection. * * Starting with CUPS 2.2.4, the caller can pass @code CUPS_DEST_FLAGS_DEVICE@ * for the "flags" argument to connect directly to the device associated with * the destination. Otherwise, the connection is made to the CUPS scheduler * associated with the destination. * * @since CUPS 1.6/macOS 10.8@ */ http_t * /* O - Connection to destination or @code NULL@ */ cupsConnectDest( cups_dest_t *dest, /* I - Destination */ unsigned flags, /* I - Connection flags */ int msec, /* I - Timeout in milliseconds */ int *cancel, /* I - Pointer to "cancel" variable */ char *resource, /* I - Resource buffer */ size_t resourcesize, /* I - Size of resource buffer */ cups_dest_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data pointer */ { const char *uri; /* Printer URI */ char scheme[32], /* URI scheme */ userpass[256], /* Username and password (unused) */ hostname[256], /* Hostname */ tempresource[1024]; /* Temporary resource buffer */ int port; /* Port number */ char portstr[16]; /* Port number string */ http_encryption_t encryption; /* Encryption to use */ http_addrlist_t *addrlist; /* Address list for server */ http_t *http; /* Connection to server */ DEBUG_printf(("cupsConnectDest(dest=%p, flags=0x%x, msec=%d, cancel=%p(%d), resource=\"%s\", resourcesize=" CUPS_LLFMT ", cb=%p, user_data=%p)", (void *)dest, flags, msec, (void *)cancel, cancel ? *cancel : -1, resource, CUPS_LLCAST resourcesize, (void *)cb, user_data)); /* * Range check input... */ if (!dest) { if (resource) *resource = '\0'; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } if (!resource || resourcesize < 1) { resource = tempresource; resourcesize = sizeof(tempresource); } /* * Grab the printer URI... */ if (flags & CUPS_DEST_FLAGS_DEVICE) { if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) { #ifdef HAVE_DNSSD if (strstr(uri, "._tcp")) uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data); #endif /* HAVE_DNSSD */ } } else if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL) { if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) { #ifdef HAVE_DNSSD if (strstr(uri, "._tcp")) uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data); #endif /* HAVE_DNSSD */ } if (uri) uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options), NULL, uri, tempresource, sizeof(tempresource)); if (uri) { dest->num_options = cupsAddOption("printer-uri-supported", uri, dest->num_options, &dest->options); uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); } } if (!uri) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOENT), 0); if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_ERROR, dest); return (NULL); } if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, (int)resourcesize) < HTTP_URI_STATUS_OK) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad printer-uri."), 1); if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_ERROR, dest); return (NULL); } /* * Lookup the address for the server... */ if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_RESOLVING, dest); snprintf(portstr, sizeof(portstr), "%d", port); if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portstr)) == NULL) { if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_ERROR, dest); return (NULL); } if (cancel && *cancel) { httpAddrFreeList(addrlist); if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_CANCELED, dest); return (NULL); } /* * Create the HTTP object pointing to the server referenced by the URI... */ if (!strcmp(scheme, "ipps") || port == 443) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = HTTP_ENCRYPTION_IF_REQUESTED; http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, encryption, 1, 0, NULL); httpAddrFreeList(addrlist); /* * Connect if requested... */ if (flags & CUPS_DEST_FLAGS_UNCONNECTED) { if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED, dest); } else { if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_CONNECTING, dest); if (!httpReconnect2(http, msec, cancel) && cb) { if (cancel && *cancel) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_CONNECTING, dest); else (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_ERROR, dest); } else if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_NONE, dest); } return (http); } #ifdef __BLOCKS__ /* * 'cupsConnectDestBlock()' - Open a connection to the destination. * * Connect to the destination, returning a new @code http_t@ connection object * and optionally the resource path to use for the destination. These calls * will block until a connection is made, the timeout expires, the integer * pointed to by "cancel" is non-zero, or the block returns 0. The caller is * responsible for calling @link httpClose@ on the returned connection. * * Starting with CUPS 2.2.4, the caller can pass @code CUPS_DEST_FLAGS_DEVICE@ * for the "flags" argument to connect directly to the device associated with * the destination. Otherwise, the connection is made to the CUPS scheduler * associated with the destination. * * @since CUPS 1.6/macOS 10.8@ @exclude all@ */ http_t * /* O - Connection to destination or @code NULL@ */ cupsConnectDestBlock( cups_dest_t *dest, /* I - Destination */ unsigned flags, /* I - Connection flags */ int msec, /* I - Timeout in milliseconds */ int *cancel, /* I - Pointer to "cancel" variable */ char *resource, /* I - Resource buffer */ size_t resourcesize, /* I - Size of resource buffer */ cups_dest_block_t block) /* I - Callback block */ { return (cupsConnectDest(dest, flags, msec, cancel, resource, resourcesize, (cups_dest_cb_t)cups_block_cb, (void *)block)); } #endif /* __BLOCKS__ */ /* * 'cupsCopyDest()' - Copy a destination. * * Make a copy of the destination to an array of destinations (or just a single * copy) - for use with the cupsEnumDests* functions. The caller is responsible * for calling cupsFreeDests() on the returned object(s). * * @since CUPS 1.6/macOS 10.8@ */ int /* O - New number of destinations */ cupsCopyDest(cups_dest_t *dest, /* I - Destination to copy */ int num_dests, /* I - Number of destinations */ cups_dest_t **dests) /* IO - Destination array */ { int i; /* Looping var */ cups_dest_t *new_dest; /* New destination pointer */ cups_option_t *new_option, /* Current destination option */ *option; /* Current parent option */ /* * Range check input... */ if (!dest || num_dests < 0 || !dests) return (num_dests); /* * See if the destination already exists... */ if ((new_dest = cupsGetDest(dest->name, dest->instance, num_dests, *dests)) != NULL) { /* * Protect against copying destination to itself... */ if (new_dest == dest) return (num_dests); /* * Otherwise, free the options... */ cupsFreeOptions(new_dest->num_options, new_dest->options); new_dest->num_options = 0; new_dest->options = NULL; } else new_dest = cups_add_dest(dest->name, dest->instance, &num_dests, dests); if (new_dest) { new_dest->is_default = dest->is_default; if ((new_dest->options = calloc((size_t)dest->num_options, sizeof(cups_option_t))) == NULL) return (cupsRemoveDest(dest->name, dest->instance, num_dests, dests)); new_dest->num_options = dest->num_options; for (i = dest->num_options, option = dest->options, new_option = new_dest->options; i > 0; i --, option ++, new_option ++) { new_option->name = _cupsStrRetain(option->name); new_option->value = _cupsStrRetain(option->value); } } return (num_dests); } /* * '_cupsCreateDest()' - Create a local (temporary) queue. */ char * /* O - Printer URI or @code NULL@ on error */ _cupsCreateDest(const char *name, /* I - Printer name */ const char *info, /* I - Printer description of @code NULL@ */ const char *device_id, /* I - 1284 Device ID or @code NULL@ */ const char *device_uri, /* I - Device URI */ char *uri, /* I - Printer URI buffer */ size_t urisize) /* I - Size of URI buffer */ { http_t *http; /* Connection to server */ ipp_t *request, /* CUPS-Create-Local-Printer request */ *response; /* CUPS-Create-Local-Printer response */ ipp_attribute_t *attr; /* printer-uri-supported attribute */ ipp_pstate_t state = IPP_PSTATE_STOPPED; /* printer-state value */ if (!name || !device_uri || !uri || urisize < 32) return (NULL); if ((http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL)) == NULL) return (NULL); request = ippNewRequest(IPP_OP_CUPS_CREATE_LOCAL_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_URI, "device-uri", NULL, device_uri); ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-name", NULL, name); if (info) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, info); if (device_id) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-device-id", NULL, device_id); response = cupsDoRequest(http, request, "/"); if ((attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL) strlcpy(uri, ippGetString(attr, 0, NULL), urisize); else { ippDelete(response); httpClose(http); return (NULL); } if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) state = (ipp_pstate_t)ippGetInteger(attr, 0); while (state == IPP_PSTATE_STOPPED && cupsLastError() == IPP_STATUS_OK) { sleep(1); ippDelete(response); request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "printer-state"); response = cupsDoRequest(http, request, "/"); if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) state = (ipp_pstate_t)ippGetInteger(attr, 0); } ippDelete(response); httpClose(http); return (uri); } /* * 'cupsEnumDests()' - Enumerate available destinations with a callback function. * * Destinations are enumerated from one or more sources. The callback function * receives the @code user_data@ pointer and the destination pointer which can * be used as input to the @link cupsCopyDest@ function. The function must * return 1 to continue enumeration or 0 to stop. * * The @code type@ and @code mask@ arguments allow the caller to filter the * destinations that are enumerated. Passing 0 for both will enumerate all * printers. The constant @code CUPS_PRINTER_DISCOVERED@ is used to filter on * destinations that are available but have not yet been added locally. * * Enumeration happens on the current thread and does not return until all * destinations have been enumerated or the callback function returns 0. * * Note: The callback function will likely receive multiple updates for the same * destinations - it is up to the caller to suppress any duplicate destinations. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on success, 0 on failure */ cupsEnumDests( unsigned flags, /* I - Enumeration flags */ int msec, /* I - Timeout in milliseconds, -1 for indefinite */ int *cancel, /* I - Pointer to "cancel" variable */ cups_ptype_t type, /* I - Printer type bits */ cups_ptype_t mask, /* I - Mask for printer type bits */ cups_dest_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data */ { return (cups_enum_dests(CUPS_HTTP_DEFAULT, flags, msec, cancel, type, mask, cb, user_data)); } # ifdef __BLOCKS__ /* * 'cupsEnumDestsBlock()' - Enumerate available destinations with a block. * * Destinations are enumerated from one or more sources. The block receives the * @code user_data@ pointer and the destination pointer which can be used as * input to the @link cupsCopyDest@ function. The block must return 1 to * continue enumeration or 0 to stop. * * The @code type@ and @code mask@ arguments allow the caller to filter the * destinations that are enumerated. Passing 0 for both will enumerate all * printers. The constant @code CUPS_PRINTER_DISCOVERED@ is used to filter on * destinations that are available but have not yet been added locally. * * Enumeration happens on the current thread and does not return until all * destinations have been enumerated or the block returns 0. * * Note: The block will likely receive multiple updates for the same * destinations - it is up to the caller to suppress any duplicate destinations. * * @since CUPS 1.6/macOS 10.8@ @exclude all@ */ int /* O - 1 on success, 0 on failure */ cupsEnumDestsBlock( unsigned flags, /* I - Enumeration flags */ int timeout, /* I - Timeout in milliseconds, 0 for indefinite */ int *cancel, /* I - Pointer to "cancel" variable */ cups_ptype_t type, /* I - Printer type bits */ cups_ptype_t mask, /* I - Mask for printer type bits */ cups_dest_block_t block) /* I - Block */ { return (cupsEnumDests(flags, timeout, cancel, type, mask, (cups_dest_cb_t)cups_block_cb, (void *)block)); } # endif /* __BLOCKS__ */ /* * 'cupsFreeDests()' - Free the memory used by the list of destinations. */ void cupsFreeDests(int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { int i; /* Looping var */ cups_dest_t *dest; /* Current destination */ if (num_dests == 0 || dests == NULL) return; for (i = num_dests, dest = dests; i > 0; i --, dest ++) { _cupsStrFree(dest->name); _cupsStrFree(dest->instance); cupsFreeOptions(dest->num_options, dest->options); } free(dests); } /* * 'cupsGetDest()' - Get the named destination from the list. * * Use the @link cupsEnumDests@ or @link cupsGetDests2@ functions to get a * list of supported destinations for the current user. */ cups_dest_t * /* O - Destination pointer or @code NULL@ */ cupsGetDest(const char *name, /* I - Destination name or @code NULL@ for the default destination */ const char *instance, /* I - Instance name or @code NULL@ */ int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { int diff, /* Result of comparison */ match; /* Matching index */ if (num_dests <= 0 || !dests) return (NULL); if (!name) { /* * NULL name for default printer. */ while (num_dests > 0) { if (dests->is_default) return (dests); num_dests --; dests ++; } } else { /* * Lookup name and optionally the instance... */ match = cups_find_dest(name, instance, num_dests, dests, -1, &diff); if (!diff) return (dests + match); } return (NULL); } /* * '_cupsGetDestResource()' - Get the resource path and URI for a destination. */ const char * /* O - URI */ _cupsGetDestResource( cups_dest_t *dest, /* I - Destination */ unsigned flags, /* I - Destination flags */ char *resource, /* I - Resource buffer */ size_t resourcesize) /* I - Size of resource buffer */ { const char *uri, /* URI */ *device_uri, /* Device URI */ *printer_uri; /* Printer URI */ char scheme[32], /* URI scheme */ userpass[256], /* Username and password (unused) */ hostname[256]; /* Hostname */ int port; /* Port number */ DEBUG_printf(("_cupsGetDestResource(dest=%p(%s), flags=%u, resource=%p, resourcesize=%d)", (void *)dest, dest->name, flags, (void *)resource, (int)resourcesize)); /* * Range check input... */ if (!dest || !resource || resourcesize < 1) { if (resource) *resource = '\0'; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Grab the printer and device URIs... */ device_uri = cupsGetOption("device-uri", dest->num_options, dest->options); printer_uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); DEBUG_printf(("1_cupsGetDestResource: device-uri=\"%s\", printer-uri-supported=\"%s\".", device_uri, printer_uri)); #ifdef HAVE_DNSSD if (((flags & CUPS_DEST_FLAGS_DEVICE) || !printer_uri) && device_uri && strstr(device_uri, "._tcp")) { if ((device_uri = cups_dnssd_resolve(dest, device_uri, 5000, NULL, NULL, NULL)) != NULL) { DEBUG_printf(("1_cupsGetDestResource: Resolved device-uri=\"%s\".", device_uri)); } else { DEBUG_puts("1_cupsGetDestResource: Unable to resolve device."); if (resource) *resource = '\0'; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOENT), 0); return (NULL); } } #endif /* HAVE_DNSSD */ if (flags & CUPS_DEST_FLAGS_DEVICE) { uri = device_uri; } else if (printer_uri) { uri = printer_uri; } else { uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options), NULL, device_uri, resource, resourcesize); if (uri) { DEBUG_printf(("1_cupsGetDestResource: Local printer-uri-supported=\"%s\"", uri)); dest->num_options = cupsAddOption("printer-uri-supported", uri, dest->num_options, &dest->options); uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); } } if (!uri) { DEBUG_puts("1_cupsGetDestResource: No printer-uri-supported or device-uri found."); if (resource) *resource = '\0'; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOENT), 0); return (NULL); } else if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, (int)resourcesize) < HTTP_URI_STATUS_OK) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad URI."), 1); return (NULL); } DEBUG_printf(("1_cupsGetDestResource: resource=\"%s\"", resource)); return (uri); } /* * 'cupsGetDestWithURI()' - Get a destination associated with a URI. * * "name" is the desired name for the printer. If @code NULL@, a name will be * created using the URI. * * "uri" is the "ipp" or "ipps" URI for the printer. * * @since CUPS 2.0/macOS 10.10@ */ cups_dest_t * /* O - Destination or @code NULL@ */ cupsGetDestWithURI(const char *name, /* I - Desired printer name or @code NULL@ */ const char *uri) /* I - URI for the printer */ { cups_dest_t *dest; /* New destination */ char temp[1024], /* Temporary string */ scheme[256], /* Scheme from URI */ userpass[256], /* Username:password from URI */ hostname[256], /* Hostname from URI */ resource[1024], /* Resource path from URI */ *ptr; /* Pointer into string */ const char *info; /* printer-info string */ int port; /* Port number from URI */ /* * Range check input... */ if (!uri) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK || (strncmp(uri, "ipp://", 6) && strncmp(uri, "ipps://", 7))) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad printer-uri."), 1); return (NULL); } if (name) { info = name; } else { /* * Create the name from the URI... */ if (strstr(hostname, "._tcp")) { /* * Use the service instance name... */ if ((ptr = strstr(hostname, "._")) != NULL) *ptr = '\0'; cups_queue_name(temp, hostname, sizeof(temp)); name = temp; info = hostname; } else if (!strncmp(resource, "/classes/", 9)) { snprintf(temp, sizeof(temp), "%s @ %s", resource + 9, hostname); name = resource + 9; info = temp; } else if (!strncmp(resource, "/printers/", 10)) { snprintf(temp, sizeof(temp), "%s @ %s", resource + 10, hostname); name = resource + 10; info = temp; } else if (!strncmp(resource, "/ipp/print/", 11)) { snprintf(temp, sizeof(temp), "%s @ %s", resource + 11, hostname); name = resource + 11; info = temp; } else { name = hostname; info = hostname; } } /* * Create the destination... */ if ((dest = calloc(1, sizeof(cups_dest_t))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); return (NULL); } dest->name = _cupsStrAlloc(name); dest->num_options = cupsAddOption("device-uri", uri, dest->num_options, &(dest->options)); dest->num_options = cupsAddOption("printer-info", info, dest->num_options, &(dest->options)); return (dest); } /* * '_cupsGetDests()' - Get destinations from a server. * * "op" is IPP_OP_CUPS_GET_PRINTERS to get a full list, IPP_OP_CUPS_GET_DEFAULT * to get the system-wide default printer, or IPP_OP_GET_PRINTER_ATTRIBUTES for * a known printer. * * "name" is the name of an existing printer and is only used when "op" is * IPP_OP_GET_PRINTER_ATTRIBUTES. * * "dest" is initialized to point to the array of destinations. * * 0 is returned if there are no printers, no default printer, or the named * printer does not exist, respectively. * * Free the memory used by the destination array using the @link cupsFreeDests@ * function. * * Note: On macOS this function also gets the default paper from the system * preferences (~/L/P/org.cups.PrintingPrefs.plist) and includes it in the * options array for each destination that supports it. */ int /* O - Number of destinations */ _cupsGetDests(http_t *http, /* I - Connection to server or * @code CUPS_HTTP_DEFAULT@ */ ipp_op_t op, /* I - IPP operation */ const char *name, /* I - Name of destination */ cups_dest_t **dests, /* IO - Destinations */ cups_ptype_t type, /* I - Printer type bits */ cups_ptype_t mask) /* I - Printer type mask */ { int num_dests = 0; /* Number of destinations */ cups_dest_t *dest; /* Current destination */ ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ const char *printer_name; /* printer-name attribute */ char uri[1024]; /* printer-uri value */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ #ifdef __APPLE__ char media_default[41]; /* Default paper size */ #endif /* __APPLE__ */ char optname[1024], /* Option name */ value[2048], /* Option value */ *ptr; /* Pointer into name/value */ static const char * const pattrs[] = /* Attributes we're interested in */ { "auth-info-required", "device-uri", "job-sheets-default", "marker-change-time", "marker-colors", "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", "marker-names", "marker-types", #ifdef __APPLE__ "media-supported", #endif /* __APPLE__ */ "printer-commands", "printer-defaults", "printer-info", "printer-is-accepting-jobs", "printer-is-shared", "printer-is-temporary", "printer-location", "printer-make-and-model", "printer-mandatory-job-attributes", "printer-name", "printer-state", "printer-state-change-time", "printer-state-reasons", "printer-type", "printer-uri-supported" }; DEBUG_printf(("_cupsGetDests(http=%p, op=%x(%s), name=\"%s\", dests=%p, type=%x, mask=%x)", (void *)http, op, ippOpString(op), name, (void *)dests, type, mask)); #ifdef __APPLE__ /* * Get the default paper size... */ appleGetPaperSize(media_default, sizeof(media_default)); DEBUG_printf(("1_cupsGetDests: Default media is '%s'.", media_default)); #endif /* __APPLE__ */ /* * Build a IPP_OP_CUPS_GET_PRINTERS or IPP_OP_GET_PRINTER_ATTRIBUTES request, which * require the following attributes: * * attributes-charset * attributes-natural-language * requesting-user-name * printer-uri [for IPP_OP_GET_PRINTER_ATTRIBUTES] */ request = ippNewRequest(op); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (name && op != IPP_OP_CUPS_GET_DEFAULT) { httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/printers/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); } else if (mask) { ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type", (int)type); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type-mask", (int)mask); } /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a printer... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this printer... */ printer_name = NULL; num_options = 0; options = NULL; for (; attr && attr->group_tag == IPP_TAG_PRINTER; attr = attr->next) { if (attr->value_tag != IPP_TAG_INTEGER && attr->value_tag != IPP_TAG_ENUM && attr->value_tag != IPP_TAG_BOOLEAN && attr->value_tag != IPP_TAG_TEXT && attr->value_tag != IPP_TAG_TEXTLANG && attr->value_tag != IPP_TAG_NAME && attr->value_tag != IPP_TAG_NAMELANG && attr->value_tag != IPP_TAG_KEYWORD && attr->value_tag != IPP_TAG_RANGE && attr->value_tag != IPP_TAG_URI) continue; if (!strcmp(attr->name, "auth-info-required") || !strcmp(attr->name, "device-uri") || !strcmp(attr->name, "marker-change-time") || !strcmp(attr->name, "marker-colors") || !strcmp(attr->name, "marker-high-levels") || !strcmp(attr->name, "marker-levels") || !strcmp(attr->name, "marker-low-levels") || !strcmp(attr->name, "marker-message") || !strcmp(attr->name, "marker-names") || !strcmp(attr->name, "marker-types") || !strcmp(attr->name, "printer-commands") || !strcmp(attr->name, "printer-info") || !strcmp(attr->name, "printer-is-shared") || !strcmp(attr->name, "printer-is-temporary") || !strcmp(attr->name, "printer-make-and-model") || !strcmp(attr->name, "printer-mandatory-job-attributes") || !strcmp(attr->name, "printer-state") || !strcmp(attr->name, "printer-state-change-time") || !strcmp(attr->name, "printer-type") || !strcmp(attr->name, "printer-is-accepting-jobs") || !strcmp(attr->name, "printer-location") || !strcmp(attr->name, "printer-state-reasons") || !strcmp(attr->name, "printer-uri-supported")) { /* * Add a printer description attribute... */ num_options = cupsAddOption(attr->name, cups_make_string(attr, value, sizeof(value)), num_options, &options); } #ifdef __APPLE__ else if (!strcmp(attr->name, "media-supported") && media_default[0]) { /* * See if we can set a default media size... */ int i; /* Looping var */ for (i = 0; i < attr->num_values; i ++) if (!_cups_strcasecmp(media_default, attr->values[i].string.text)) { DEBUG_printf(("1_cupsGetDests: Setting media to '%s'.", media_default)); num_options = cupsAddOption("media", media_default, num_options, &options); break; } } #endif /* __APPLE__ */ else if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer_name = attr->values[0].string.text; else if (strncmp(attr->name, "notify-", 7) && strncmp(attr->name, "print-quality-", 14) && (attr->value_tag == IPP_TAG_BOOLEAN || attr->value_tag == IPP_TAG_ENUM || attr->value_tag == IPP_TAG_INTEGER || attr->value_tag == IPP_TAG_KEYWORD || attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_RANGE) && (ptr = strstr(attr->name, "-default")) != NULL) { /* * Add a default option... */ strlcpy(optname, attr->name, sizeof(optname)); optname[ptr - attr->name] = '\0'; if (_cups_strcasecmp(optname, "media") || !cupsGetOption("media", num_options, options)) num_options = cupsAddOption(optname, cups_make_string(attr, value, sizeof(value)), num_options, &options); } } /* * See if we have everything needed... */ if (!printer_name) { cupsFreeOptions(num_options, options); if (attr == NULL) break; else continue; } if ((dest = cups_add_dest(printer_name, NULL, &num_dests, dests)) != NULL) { dest->num_options = num_options; dest->options = options; } else cupsFreeOptions(num_options, options); if (attr == NULL) break; } ippDelete(response); } /* * Return the count... */ return (num_dests); } /* * 'cupsGetDests()' - Get the list of destinations from the default server. * * Starting with CUPS 1.2, the returned list of destinations include the * "printer-info", "printer-is-accepting-jobs", "printer-is-shared", * "printer-make-and-model", "printer-state", "printer-state-change-time", * "printer-state-reasons", "printer-type", and "printer-uri-supported" * attributes as options. * * CUPS 1.4 adds the "marker-change-time", "marker-colors", * "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", * "marker-names", "marker-types", and "printer-commands" attributes as options. * * CUPS 2.2 adds accessible IPP printers to the list of destinations that can * be used. The "printer-uri-supported" option will be present for those IPP * printers that have been recently used. * * Use the @link cupsFreeDests@ function to free the destination list and * the @link cupsGetDest@ function to find a particular destination. * * @exclude all@ */ int /* O - Number of destinations */ cupsGetDests(cups_dest_t **dests) /* O - Destinations */ { return (cupsGetDests2(CUPS_HTTP_DEFAULT, dests)); } /* * 'cupsGetDests2()' - Get the list of destinations from the specified server. * * Starting with CUPS 1.2, the returned list of destinations include the * "printer-info", "printer-is-accepting-jobs", "printer-is-shared", * "printer-make-and-model", "printer-state", "printer-state-change-time", * "printer-state-reasons", "printer-type", and "printer-uri-supported" * attributes as options. * * CUPS 1.4 adds the "marker-change-time", "marker-colors", * "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", * "marker-names", "marker-types", and "printer-commands" attributes as options. * * CUPS 2.2 adds accessible IPP printers to the list of destinations that can * be used. The "printer-uri-supported" option will be present for those IPP * printers that have been recently used. * * Use the @link cupsFreeDests@ function to free the destination list and * the @link cupsGetDest@ function to find a particular destination. * * @since CUPS 1.1.21/macOS 10.4@ */ int /* O - Number of destinations */ cupsGetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ cups_dest_t **dests) /* O - Destinations */ { _cups_getdata_t data; /* Enumeration data */ DEBUG_printf(("cupsGetDests2(http=%p, dests=%p)", (void *)http, (void *)dests)); /* * Range check the input... */ if (!dests) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad NULL dests pointer"), 1); DEBUG_puts("1cupsGetDests2: NULL dests pointer, returning 0."); return (0); } /* * Connect to the server as needed... */ if (!http) { if ((http = _cupsConnect()) == NULL) { *dests = NULL; return (0); } } /* * Grab the printers and classes... */ data.num_dests = 0; data.dests = NULL; if (!httpAddrLocalhost(httpGetAddress(http))) { /* * When talking to a remote cupsd, just enumerate printers on the remote * cupsd. */ cups_enum_dests(http, 0, _CUPS_DNSSD_GET_DESTS, NULL, 0, CUPS_PRINTER_DISCOVERED, (cups_dest_cb_t)cups_get_cb, &data); } else { /* * When talking to a local cupsd, enumerate both local printers and ones we * can find on the network... */ cups_enum_dests(http, 0, _CUPS_DNSSD_GET_DESTS, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data); } /* * Return the number of destinations... */ *dests = data.dests; if (data.num_dests > 0) _cupsSetError(IPP_STATUS_OK, NULL, 0); DEBUG_printf(("1cupsGetDests2: Returning %d destinations.", data.num_dests)); return (data.num_dests); } /* * 'cupsGetNamedDest()' - Get options for the named destination. * * This function is optimized for retrieving a single destination and should * be used instead of @link cupsGetDests2@ and @link cupsGetDest@ when you * either know the name of the destination or want to print to the default * destination. If @code NULL@ is returned, the destination does not exist or * there is no default destination. * * If "http" is @code CUPS_HTTP_DEFAULT@, the connection to the default print * server will be used. * * If "name" is @code NULL@, the default printer for the current user will be * returned. * * The returned destination must be freed using @link cupsFreeDests@ with a * "num_dests" value of 1. * * @since CUPS 1.4/macOS 10.6@ */ cups_dest_t * /* O - Destination or @code NULL@ */ cupsGetNamedDest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *name, /* I - Destination name or @code NULL@ for the default destination */ const char *instance) /* I - Instance name or @code NULL@ */ { const char *dest_name; /* Working destination name */ cups_dest_t *dest; /* Destination */ char filename[1024], /* Path to lpoptions */ defname[256]; /* Default printer name */ int set_as_default = 0; /* Set returned destination as default */ ipp_op_t op = IPP_OP_GET_PRINTER_ATTRIBUTES; /* IPP operation to get server ops */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_printf(("cupsGetNamedDest(http=%p, name=\"%s\", instance=\"%s\")", (void *)http, name, instance)); /* * If "name" is NULL, find the default destination... */ dest_name = name; if (!dest_name) { set_as_default = 1; dest_name = _cupsUserDefault(defname, sizeof(defname)); if (dest_name) { char *ptr; /* Temporary pointer... */ if ((ptr = strchr(defname, '/')) != NULL) { *ptr++ = '\0'; instance = ptr; } else instance = NULL; } else if (cg->home) { /* * No default in the environment, try the user's lpoptions files... */ #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups/lpoptions", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups/lpoptions", cg->home); #endif // _WIN32 dest_name = cups_get_default(filename, defname, sizeof(defname), &instance); if (dest_name) set_as_default = 2; } if (!dest_name) { /* * Still not there? Try the system lpoptions file... */ snprintf(filename, sizeof(filename), "%s/lpoptions", cg->cups_serverroot); dest_name = cups_get_default(filename, defname, sizeof(defname), &instance); if (dest_name) set_as_default = 3; } if (!dest_name) { /* * No locally-set default destination, ask the server... */ op = IPP_OP_CUPS_GET_DEFAULT; set_as_default = 4; DEBUG_puts("1cupsGetNamedDest: Asking server for default printer..."); } else DEBUG_printf(("1cupsGetNamedDest: Using name=\"%s\"...", name)); } /* * Get the printer's attributes... */ if (!_cupsGetDests(http, op, dest_name, &dest, 0, 0)) { _cups_namedata_t data; /* Callback data */ data.name = dest_name; data.dest = NULL; if (data.name) { DEBUG_puts("1cupsGetNamedDest: No queue found for printer, looking on network..."); cupsEnumDests(0, 1000, NULL, 0, 0, (cups_dest_cb_t)cups_name_cb, &data); } if (!data.dest) { switch (set_as_default) { default : _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("The printer or class does not exist."), 1); break; case 1 : /* Set from env vars */ if (getenv("LPDEST")) _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("LPDEST environment variable names default destination that does not exist."), 1); else if (getenv("PRINTER")) _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("PRINTER environment variable names default destination that does not exist."), 1); else _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("No default destination."), 1); break; case 2 : /* Set from ~/.cups/lpoptions */ _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("~/.cups/lpoptions file names default destination that does not exist."), 1); break; case 3 : /* Set from /etc/cups/lpoptions */ _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("/etc/cups/lpoptions file names default destination that does not exist."), 1); break; case 4 : /* Set from server */ _cupsSetError(IPP_STATUS_ERROR_NOT_FOUND, _("No default destination."), 1); break; } return (NULL); } dest = data.dest; } DEBUG_printf(("1cupsGetNamedDest: Got dest=%p", (void *)dest)); if (instance) dest->instance = _cupsStrAlloc(instance); if (set_as_default) dest->is_default = 1; /* * Then add local options... */ snprintf(filename, sizeof(filename), "%s/lpoptions", cg->cups_serverroot); cups_get_dests(filename, dest_name, instance, 0, 1, 1, &dest); if (cg->home) { #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups/lpoptions", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups/lpoptions", cg->home); #endif // _WIN32 cups_get_dests(filename, dest_name, instance, 0, 1, 1, &dest); } /* * Return the result... */ return (dest); } /* * 'cupsRemoveDest()' - Remove a destination from the destination list. * * Removing a destination/instance does not delete the class or printer * queue, merely the lpoptions for that destination/instance. Use the * @link cupsSetDests@ or @link cupsSetDests2@ functions to save the new * options for the user. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - New number of destinations */ cupsRemoveDest(const char *name, /* I - Destination name */ const char *instance, /* I - Instance name or @code NULL@ */ int num_dests, /* I - Number of destinations */ cups_dest_t **dests) /* IO - Destinations */ { int i; /* Index into destinations */ cups_dest_t *dest; /* Pointer to destination */ /* * Find the destination... */ if ((dest = cupsGetDest(name, instance, num_dests, *dests)) == NULL) return (num_dests); /* * Free memory... */ _cupsStrFree(dest->name); _cupsStrFree(dest->instance); cupsFreeOptions(dest->num_options, dest->options); /* * Remove the destination from the array... */ num_dests --; i = (int)(dest - *dests); if (i < num_dests) memmove(dest, dest + 1, (size_t)(num_dests - i) * sizeof(cups_dest_t)); return (num_dests); } /* * 'cupsSetDefaultDest()' - Set the default destination. * * @since CUPS 1.3/macOS 10.5@ */ void cupsSetDefaultDest( const char *name, /* I - Destination name */ const char *instance, /* I - Instance name or @code NULL@ */ int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { int i; /* Looping var */ cups_dest_t *dest; /* Current destination */ /* * Range check input... */ if (!name || num_dests <= 0 || !dests) return; /* * Loop through the array and set the "is_default" flag for the matching * destination... */ for (i = num_dests, dest = dests; i > 0; i --, dest ++) dest->is_default = !_cups_strcasecmp(name, dest->name) && ((!instance && !dest->instance) || (instance && dest->instance && !_cups_strcasecmp(instance, dest->instance))); } /* * 'cupsSetDests()' - Save the list of destinations for the default server. * * This function saves the destinations to /etc/cups/lpoptions when run * as root and ~/.cups/lpoptions when run as a normal user. * * @exclude all@ */ void cupsSetDests(int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { cupsSetDests2(CUPS_HTTP_DEFAULT, num_dests, dests); } /* * 'cupsSetDests2()' - Save the list of destinations for the specified server. * * This function saves the destinations to /etc/cups/lpoptions when run * as root and ~/.cups/lpoptions when run as a normal user. * * @since CUPS 1.1.21/macOS 10.4@ */ int /* O - 0 on success, -1 on error */ cupsSetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ int num_dests, /* I - Number of destinations */ cups_dest_t *dests) /* I - Destinations */ { int i, j; /* Looping vars */ int wrote; /* Wrote definition? */ cups_dest_t *dest; /* Current destination */ cups_option_t *option; /* Current option */ _ipp_option_t *match; /* Matching attribute for option */ FILE *fp; /* File pointer */ char filename[1024]; /* lpoptions file */ int num_temps; /* Number of temporary destinations */ cups_dest_t *temps = NULL, /* Temporary destinations */ *temp; /* Current temporary dest */ const char *val; /* Value of temporary option */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ /* * Range check the input... */ if (!num_dests || !dests) return (-1); /* * Get the server destinations... */ num_temps = _cupsGetDests(http, IPP_OP_CUPS_GET_PRINTERS, NULL, &temps, 0, 0); if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE) { cupsFreeDests(num_temps, temps); return (-1); } /* * Figure out which file to write to... */ snprintf(filename, sizeof(filename), "%s/lpoptions", cg->cups_serverroot); if (cg->home #ifndef _WIN32 && getuid() != 0 #endif /* !_WIN32 */ ) { /* * Create ~/.cups subdirectory... */ #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups", cg->home); #endif // _WIN32 if (access(filename, 0)) mkdir(filename, 0700); #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups/lpoptions", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups/lpoptions", cg->home); #endif // _WIN32 } /* * Try to open the file... */ if ((fp = fopen(filename, "w")) == NULL) { cupsFreeDests(num_temps, temps); return (-1); } #ifndef _WIN32 /* * Set the permissions to 0644 when saving to the /etc/cups/lpoptions * file... */ if (!getuid()) fchmod(fileno(fp), 0644); #endif /* !_WIN32 */ /* * Write each printer; each line looks like: * * Dest name[/instance] options * Default name[/instance] options */ for (i = num_dests, dest = dests; i > 0; i --, dest ++) if (dest->instance != NULL || dest->num_options != 0 || dest->is_default) { if (dest->is_default) { fprintf(fp, "Default %s", dest->name); if (dest->instance) fprintf(fp, "/%s", dest->instance); wrote = 1; } else wrote = 0; temp = cupsGetDest(dest->name, NULL, num_temps, temps); for (j = dest->num_options, option = dest->options; j > 0; j --, option ++) { /* * See if this option is a printer attribute; if so, skip it... */ if ((match = _ippFindOption(option->name)) != NULL && match->group_tag == IPP_TAG_PRINTER) continue; /* * See if the server options match these; if so, don't write 'em. */ if (temp && (val = cupsGetOption(option->name, temp->num_options, temp->options)) != NULL && !_cups_strcasecmp(val, option->value)) continue; /* * Options don't match, write to the file... */ if (!wrote) { fprintf(fp, "Dest %s", dest->name); if (dest->instance) fprintf(fp, "/%s", dest->instance); wrote = 1; } if (option->value[0]) { if (strchr(option->value, ' ') || strchr(option->value, '\\') || strchr(option->value, '\"') || strchr(option->value, '\'')) { /* * Quote the value... */ fprintf(fp, " %s=\"", option->name); for (val = option->value; *val; val ++) { if (strchr("\"\'\\", *val)) putc('\\', fp); putc(*val, fp); } putc('\"', fp); } else { /* * Store the literal value... */ fprintf(fp, " %s=%s", option->name, option->value); } } else fprintf(fp, " %s", option->name); } if (wrote) fputs("\n", fp); } /* * Free the temporary destinations and close the file... */ cupsFreeDests(num_temps, temps); fclose(fp); #ifdef __APPLE__ /* * Set the default printer for this location - this allows command-line * and GUI applications to share the same default destination... */ if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) != NULL) { CFStringRef name = CFStringCreateWithCString(kCFAllocatorDefault, dest->name, kCFStringEncodingUTF8); /* Default printer name */ if (name) { _cupsAppleSetDefaultPrinter(name); CFRelease(name); } } #endif /* __APPLE__ */ #ifdef HAVE_NOTIFY_POST /* * Send a notification so that macOS applications can know about the * change, too. */ notify_post("com.apple.printerListChange"); #endif /* HAVE_NOTIFY_POST */ return (0); } /* * '_cupsUserDefault()' - Get the user default printer from environment * variables and location information. */ char * /* O - Default printer or NULL */ _cupsUserDefault(char *name, /* I - Name buffer */ size_t namesize) /* I - Size of name buffer */ { const char *env; /* LPDEST or PRINTER env variable */ #ifdef __APPLE__ CFStringRef locprinter; /* Last printer as this location */ #endif /* __APPLE__ */ if ((env = getenv("LPDEST")) == NULL) if ((env = getenv("PRINTER")) != NULL && !strcmp(env, "lp")) env = NULL; if (env) { strlcpy(name, env, namesize); return (name); } #ifdef __APPLE__ /* * Use location-based defaults if "use last printer" is selected in the * system preferences... */ if (!getenv("CUPS_NO_APPLE_DEFAULT") && (locprinter = _cupsAppleCopyDefaultPrinter()) != NULL) { CFStringGetCString(locprinter, name, (CFIndex)namesize, kCFStringEncodingUTF8); CFRelease(locprinter); } else name[0] = '\0'; DEBUG_printf(("1_cupsUserDefault: Returning \"%s\".", name)); return (*name ? name : NULL); #else /* * No location-based defaults on this platform... */ name[0] = '\0'; return (NULL); #endif /* __APPLE__ */ } #if _CUPS_LOCATION_DEFAULTS /* * 'appleCopyLocations()' - Copy the location history array. */ static CFArrayRef /* O - Location array or NULL */ appleCopyLocations(void) { CFArrayRef locations; /* Location array */ /* * Look up the location array in the preferences... */ if ((locations = CFPreferencesCopyAppValue(kLastUsedPrintersKey, kCUPSPrintingPrefs)) == NULL) return (NULL); if (CFGetTypeID(locations) != CFArrayGetTypeID()) { CFRelease(locations); return (NULL); } return (locations); } /* * 'appleCopyNetwork()' - Get the network ID for the current location. */ static CFStringRef /* O - Network ID */ appleCopyNetwork(void) { SCDynamicStoreRef dynamicStore; /* System configuration data */ CFStringRef key; /* Current network configuration key */ CFDictionaryRef ip_dict; /* Network configuration data */ CFStringRef network = NULL; /* Current network ID */ if ((dynamicStore = SCDynamicStoreCreate(NULL, CFSTR("libcups"), NULL, NULL)) != NULL) { /* * First use the IPv6 router address, if available, since that will generally * be a globally-unique link-local address. */ if ((key = SCDynamicStoreKeyCreateNetworkGlobalEntity( NULL, kSCDynamicStoreDomainState, kSCEntNetIPv6)) != NULL) { if ((ip_dict = SCDynamicStoreCopyValue(dynamicStore, key)) != NULL) { if ((network = CFDictionaryGetValue(ip_dict, kSCPropNetIPv6Router)) != NULL) CFRetain(network); CFRelease(ip_dict); } CFRelease(key); } /* * If that doesn't work, try the IPv4 router address. This isn't as unique * and will likely be a 10.x.y.z or 192.168.y.z address... */ if (!network) { if ((key = SCDynamicStoreKeyCreateNetworkGlobalEntity( NULL, kSCDynamicStoreDomainState, kSCEntNetIPv4)) != NULL) { if ((ip_dict = SCDynamicStoreCopyValue(dynamicStore, key)) != NULL) { if ((network = CFDictionaryGetValue(ip_dict, kSCPropNetIPv4Router)) != NULL) CFRetain(network); CFRelease(ip_dict); } CFRelease(key); } } CFRelease(dynamicStore); } return (network); } #endif /* _CUPS_LOCATION_DEFAULTS */ #ifdef __APPLE__ /* * 'appleGetPaperSize()' - Get the default paper size. */ static char * /* O - Default paper size */ appleGetPaperSize(char *name, /* I - Paper size name buffer */ size_t namesize) /* I - Size of buffer */ { CFStringRef defaultPaperID; /* Default paper ID */ pwg_media_t *pwgmedia; /* PWG media size */ defaultPaperID = _cupsAppleCopyDefaultPaperID(); if (!defaultPaperID || CFGetTypeID(defaultPaperID) != CFStringGetTypeID() || !CFStringGetCString(defaultPaperID, name, (CFIndex)namesize, kCFStringEncodingUTF8)) name[0] = '\0'; else if ((pwgmedia = pwgMediaForLegacy(name)) != NULL) strlcpy(name, pwgmedia->pwg, namesize); if (defaultPaperID) CFRelease(defaultPaperID); return (name); } #endif /* __APPLE__ */ #if _CUPS_LOCATION_DEFAULTS /* * 'appleGetPrinter()' - Get a printer from the history array. */ static CFStringRef /* O - Printer name or NULL */ appleGetPrinter(CFArrayRef locations, /* I - Location array */ CFStringRef network, /* I - Network name */ CFIndex *locindex) /* O - Index in array */ { CFIndex i, /* Looping var */ count; /* Number of locations */ CFDictionaryRef location; /* Current location */ CFStringRef locnetwork, /* Current network */ locprinter; /* Current printer */ for (i = 0, count = CFArrayGetCount(locations); i < count; i ++) if ((location = CFArrayGetValueAtIndex(locations, i)) != NULL && CFGetTypeID(location) == CFDictionaryGetTypeID()) { if ((locnetwork = CFDictionaryGetValue(location, kLocationNetworkKey)) != NULL && CFGetTypeID(locnetwork) == CFStringGetTypeID() && CFStringCompare(network, locnetwork, 0) == kCFCompareEqualTo && (locprinter = CFDictionaryGetValue(location, kLocationPrinterIDKey)) != NULL && CFGetTypeID(locprinter) == CFStringGetTypeID()) { if (locindex) *locindex = i; return (locprinter); } } return (NULL); } #endif /* _CUPS_LOCATION_DEFAULTS */ /* * 'cups_add_dest()' - Add a destination to the array. * * Unlike cupsAddDest(), this function does not check for duplicates. */ static cups_dest_t * /* O - New destination */ cups_add_dest(const char *name, /* I - Name of destination */ const char *instance, /* I - Instance or NULL */ int *num_dests, /* IO - Number of destinations */ cups_dest_t **dests) /* IO - Destinations */ { int insert, /* Insertion point */ diff; /* Result of comparison */ cups_dest_t *dest; /* Destination pointer */ /* * Add new destination... */ if (*num_dests == 0) dest = malloc(sizeof(cups_dest_t)); else dest = realloc(*dests, sizeof(cups_dest_t) * (size_t)(*num_dests + 1)); if (!dest) return (NULL); *dests = dest; /* * Find where to insert the destination... */ if (*num_dests == 0) insert = 0; else { insert = cups_find_dest(name, instance, *num_dests, *dests, *num_dests - 1, &diff); if (diff > 0) insert ++; } /* * Move the array elements as needed... */ if (insert < *num_dests) memmove(*dests + insert + 1, *dests + insert, (size_t)(*num_dests - insert) * sizeof(cups_dest_t)); (*num_dests) ++; /* * Initialize the destination... */ dest = *dests + insert; dest->name = _cupsStrAlloc(name); dest->instance = _cupsStrAlloc(instance); dest->is_default = 0; dest->num_options = 0; dest->options = (cups_option_t *)0; return (dest); } # ifdef __BLOCKS__ /* * 'cups_block_cb()' - Enumeration callback for block API. */ static int /* O - 1 to continue, 0 to stop */ cups_block_cb( cups_dest_block_t block, /* I - Block */ unsigned flags, /* I - Destination flags */ cups_dest_t *dest) /* I - Destination */ { return ((block)(flags, dest)); } # endif /* __BLOCKS__ */ /* * 'cups_compare_dests()' - Compare two destinations. */ static int /* O - Result of comparison */ cups_compare_dests(cups_dest_t *a, /* I - First destination */ cups_dest_t *b) /* I - Second destination */ { int diff; /* Difference */ if ((diff = _cups_strcasecmp(a->name, b->name)) != 0) return (diff); else if (a->instance && b->instance) return (_cups_strcasecmp(a->instance, b->instance)); else return ((a->instance && !b->instance) - (!a->instance && b->instance)); } #ifdef HAVE_DNSSD # ifdef HAVE_MDNSRESPONDER /* * 'cups_dnssd_browse_cb()' - Browse for printers. */ static void cups_dnssd_browse_cb( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Option flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain, /* I - Service domain */ void *context) /* I - Enumeration data */ { _cups_dnssd_data_t *data = (_cups_dnssd_data_t *)context; /* Enumeration data */ DEBUG_printf(("5cups_dnssd_browse_cb(sdRef=%p, flags=%x, interfaceIndex=%d, errorCode=%d, serviceName=\"%s\", regtype=\"%s\", replyDomain=\"%s\", context=%p)", (void *)sdRef, flags, interfaceIndex, errorCode, serviceName, regtype, replyDomain, context)); /* * Don't do anything on error... */ if (errorCode != kDNSServiceErr_NoError) return; /* * Get the device... */ cups_dnssd_get_device(data, serviceName, regtype, replyDomain); } # else /* HAVE_AVAHI */ /* * 'cups_dnssd_browse_cb()' - Browse for printers. */ static void cups_dnssd_browse_cb( AvahiServiceBrowser *browser, /* I - Browser */ AvahiIfIndex interface, /* I - Interface index (unused) */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiBrowserEvent event, /* I - What happened */ const char *name, /* I - Service name */ const char *type, /* I - Registration type */ const char *domain, /* I - Domain */ AvahiLookupResultFlags flags, /* I - Flags */ void *context) /* I - Devices array */ { #ifdef DEBUG AvahiClient *client = avahi_service_browser_get_client(browser); /* Client information */ #endif /* DEBUG */ _cups_dnssd_data_t *data = (_cups_dnssd_data_t *)context; /* Enumeration data */ (void)interface; (void)protocol; (void)context; DEBUG_printf(("cups_dnssd_browse_cb(..., name=\"%s\", type=\"%s\", domain=\"%s\", ...);", name, type, domain)); switch (event) { case AVAHI_BROWSER_FAILURE: DEBUG_printf(("cups_dnssd_browse_cb: %s", avahi_strerror(avahi_client_errno(client)))); avahi_simple_poll_quit(data->simple_poll); break; case AVAHI_BROWSER_NEW: /* * This object is new on the network. */ cups_dnssd_get_device(data, name, type, domain); break; case AVAHI_BROWSER_REMOVE : case AVAHI_BROWSER_CACHE_EXHAUSTED : break; case AVAHI_BROWSER_ALL_FOR_NOW : DEBUG_puts("cups_dnssd_browse_cb: ALL_FOR_NOW"); data->browsers --; break; } } /* * 'cups_dnssd_client_cb()' - Avahi client callback function. */ static void cups_dnssd_client_cb( AvahiClient *client, /* I - Client information (unused) */ AvahiClientState state, /* I - Current state */ void *context) /* I - User data (unused) */ { _cups_dnssd_data_t *data = (_cups_dnssd_data_t *)context; /* Enumeration data */ (void)client; DEBUG_printf(("cups_dnssd_client_cb(client=%p, state=%d, context=%p)", client, state, context)); /* * If the connection drops, quit. */ if (state == AVAHI_CLIENT_FAILURE) { DEBUG_puts("cups_dnssd_client_cb: Avahi connection failed."); avahi_simple_poll_quit(data->simple_poll); } } # endif /* HAVE_MDNSRESPONDER */ /* * 'cups_dnssd_compare_device()' - Compare two devices. */ static int /* O - Result of comparison */ cups_dnssd_compare_devices( _cups_dnssd_device_t *a, /* I - First device */ _cups_dnssd_device_t *b) /* I - Second device */ { return (strcmp(a->dest.name, b->dest.name)); } /* * 'cups_dnssd_free_device()' - Free the memory used by a device. */ static void cups_dnssd_free_device( _cups_dnssd_device_t *device, /* I - Device */ _cups_dnssd_data_t *data) /* I - Enumeration data */ { DEBUG_printf(("5cups_dnssd_free_device(device=%p(%s), data=%p)", (void *)device, device->dest.name, (void *)data)); # ifdef HAVE_MDNSRESPONDER if (device->ref) DNSServiceRefDeallocate(device->ref); # else /* HAVE_AVAHI */ if (device->ref) avahi_record_browser_free(device->ref); # endif /* HAVE_MDNSRESPONDER */ _cupsStrFree(device->domain); _cupsStrFree(device->fullName); _cupsStrFree(device->regtype); _cupsStrFree(device->dest.name); cupsFreeOptions(device->dest.num_options, device->dest.options); free(device); } /* * 'cups_dnssd_get_device()' - Lookup a device and create it as needed. */ static _cups_dnssd_device_t * /* O - Device */ cups_dnssd_get_device( _cups_dnssd_data_t *data, /* I - Enumeration data */ const char *serviceName, /* I - Service name */ const char *regtype, /* I - Registration type */ const char *replyDomain) /* I - Domain name */ { _cups_dnssd_device_t key, /* Search key */ *device; /* Device */ char fullName[kDNSServiceMaxDomainName], /* Full name for query */ name[128]; /* Queue name */ DEBUG_printf(("5cups_dnssd_get_device(data=%p, serviceName=\"%s\", regtype=\"%s\", replyDomain=\"%s\")", (void *)data, serviceName, regtype, replyDomain)); /* * See if this is an existing device... */ cups_queue_name(name, serviceName, sizeof(name)); key.dest.name = name; if ((device = cupsArrayFind(data->devices, &key)) != NULL) { /* * Yes, see if we need to do anything with this... */ int update = 0; /* Non-zero if we need to update */ if (!_cups_strcasecmp(replyDomain, "local.") && _cups_strcasecmp(device->domain, replyDomain)) { /* * Update the "global" listing to use the .local domain name instead. */ _cupsStrFree(device->domain); device->domain = _cupsStrAlloc(replyDomain); DEBUG_printf(("6cups_dnssd_get_device: Updating '%s' to use local " "domain.", device->dest.name)); update = 1; } if (!_cups_strcasecmp(regtype, "_ipps._tcp") && _cups_strcasecmp(device->regtype, regtype)) { /* * Prefer IPPS over IPP. */ _cupsStrFree(device->regtype); device->regtype = _cupsStrAlloc(regtype); DEBUG_printf(("6cups_dnssd_get_device: Updating '%s' to use IPPS.", device->dest.name)); update = 1; } if (!update) { DEBUG_printf(("6cups_dnssd_get_device: No changes to '%s'.", device->dest.name)); return (device); } } else { /* * No, add the device... */ DEBUG_printf(("6cups_dnssd_get_device: Adding '%s' for %s with domain " "'%s'.", serviceName, !strcmp(regtype, "_ipps._tcp") ? "IPPS" : "IPP", replyDomain)); if ((device = calloc(1, sizeof(_cups_dnssd_device_t))) == NULL) return (NULL); device->dest.name = _cupsStrAlloc(name); device->domain = _cupsStrAlloc(replyDomain); device->regtype = _cupsStrAlloc(regtype); device->dest.num_options = cupsAddOption("printer-info", serviceName, 0, &device->dest.options); cupsArrayAdd(data->devices, device); } /* * Set the "full name" of this service, which is used for queries... */ # ifdef HAVE_MDNSRESPONDER DNSServiceConstructFullName(fullName, serviceName, regtype, replyDomain); # else /* HAVE_AVAHI */ avahi_service_name_join(fullName, kDNSServiceMaxDomainName, serviceName, regtype, replyDomain); # endif /* HAVE_MDNSRESPONDER */ _cupsStrFree(device->fullName); device->fullName = _cupsStrAlloc(fullName); if (device->ref) { # ifdef HAVE_MDNSRESPONDER DNSServiceRefDeallocate(device->ref); # else /* HAVE_AVAHI */ avahi_record_browser_free(device->ref); # endif /* HAVE_MDNSRESPONDER */ device->ref = 0; } if (device->state == _CUPS_DNSSD_ACTIVE) { DEBUG_printf(("6cups_dnssd_get_device: Remove callback for \"%s\".", device->dest.name)); (*data->cb)(data->user_data, CUPS_DEST_FLAGS_REMOVED, &device->dest); device->state = _CUPS_DNSSD_NEW; } return (device); } # ifdef HAVE_AVAHI /* * 'cups_dnssd_poll_cb()' - Wait for input on the specified file descriptors. * * Note: This function is needed because avahi_simple_poll_iterate is broken * and always uses a timeout of 0 (!) milliseconds. * (https://github.com/lathiat/avahi/issues/127) * * @private@ */ static int /* O - Number of file descriptors matching */ cups_dnssd_poll_cb( struct pollfd *pollfds, /* I - File descriptors */ unsigned int num_pollfds, /* I - Number of file descriptors */ int timeout, /* I - Timeout in milliseconds (unused) */ void *context) /* I - User data (unused) */ { _cups_dnssd_data_t *data = (_cups_dnssd_data_t *)context; /* Enumeration data */ int val; /* Return value */ DEBUG_printf(("cups_dnssd_poll_cb(pollfds=%p, num_pollfds=%d, timeout=%d, context=%p)", pollfds, num_pollfds, timeout, context)); (void)timeout; val = poll(pollfds, num_pollfds, _CUPS_DNSSD_MAXTIME); DEBUG_printf(("cups_dnssd_poll_cb: poll() returned %d", val)); if (val < 0) { DEBUG_printf(("cups_dnssd_poll_cb: %s", strerror(errno))); } else if (val > 0) { data->got_data = 1; } return (val); } # endif /* HAVE_AVAHI */ /* * 'cups_dnssd_query_cb()' - Process query data. */ static void cups_dnssd_query_cb( # ifdef HAVE_MDNSRESPONDER DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Data flags */ uint32_t interfaceIndex, /* I - Interface */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *fullName, /* I - Full service name */ uint16_t rrtype, /* I - Record type */ uint16_t rrclass, /* I - Record class */ uint16_t rdlen, /* I - Length of record data */ const void *rdata, /* I - Record data */ uint32_t ttl, /* I - Time-to-live */ # else /* HAVE_AVAHI */ AvahiRecordBrowser *browser, /* I - Record browser */ AvahiIfIndex interfaceIndex, /* I - Interface index (unused) */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiBrowserEvent event, /* I - What happened? */ const char *fullName, /* I - Service name */ uint16_t rrclass, /* I - Record class */ uint16_t rrtype, /* I - Record type */ const void *rdata, /* I - TXT record */ size_t rdlen, /* I - Length of TXT record */ AvahiLookupResultFlags flags, /* I - Flags */ # endif /* HAVE_MDNSRESPONDER */ void *context) /* I - Enumeration data */ { # if defined(DEBUG) && defined(HAVE_AVAHI) AvahiClient *client = avahi_record_browser_get_client(browser); /* Client information */ # endif /* DEBUG && HAVE_AVAHI */ _cups_dnssd_data_t *data = (_cups_dnssd_data_t *)context; /* Enumeration data */ char serviceName[256],/* Service name */ name[128], /* Queue name */ *ptr; /* Pointer into string */ _cups_dnssd_device_t dkey, /* Search key */ *device; /* Device */ # ifdef HAVE_MDNSRESPONDER DEBUG_printf(("5cups_dnssd_query_cb(sdRef=%p, flags=%x, interfaceIndex=%d, errorCode=%d, fullName=\"%s\", rrtype=%u, rrclass=%u, rdlen=%u, rdata=%p, ttl=%u, context=%p)", (void *)sdRef, flags, interfaceIndex, errorCode, fullName, rrtype, rrclass, rdlen, rdata, ttl, context)); /* * Only process "add" data... */ if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; # else /* HAVE_AVAHI */ DEBUG_printf(("cups_dnssd_query_cb(browser=%p, interfaceIndex=%d, protocol=%d, event=%d, fullName=\"%s\", rrclass=%u, rrtype=%u, rdata=%p, rdlen=%u, flags=%x, context=%p)", browser, interfaceIndex, protocol, event, fullName, rrclass, rrtype, rdata, (unsigned)rdlen, flags, context)); /* * Only process "add" data... */ if (event != AVAHI_BROWSER_NEW) { if (event == AVAHI_BROWSER_FAILURE) DEBUG_printf(("cups_dnssd_query_cb: %s", avahi_strerror(avahi_client_errno(client)))); return; } # endif /* HAVE_MDNSRESPONDER */ /* * Lookup the service in the devices array. */ cups_dnssd_unquote(serviceName, fullName, sizeof(serviceName)); if ((ptr = strstr(serviceName, "._")) != NULL) *ptr = '\0'; cups_queue_name(name, serviceName, sizeof(name)); dkey.dest.name = name; if ((device = cupsArrayFind(data->devices, &dkey)) != NULL && device->state == _CUPS_DNSSD_NEW) { /* * Found it, pull out the make and model from the TXT record and save it... */ const uint8_t *txt, /* Pointer into data */ *txtnext, /* Next key/value pair */ *txtend; /* End of entire TXT record */ uint8_t txtlen; /* Length of current key/value pair */ char key[256], /* Key string */ value[256], /* Value string */ make_and_model[512], /* Manufacturer and model */ model[256], /* Model */ uriname[1024], /* Name for URI */ uri[1024]; /* Printer URI */ cups_ptype_t type = CUPS_PRINTER_DISCOVERED | CUPS_PRINTER_BW; /* Printer type */ int saw_printer_type = 0; /* Did we see a printer-type key? */ device->state = _CUPS_DNSSD_PENDING; make_and_model[0] = '\0'; strlcpy(model, "Unknown", sizeof(model)); for (txt = rdata, txtend = txt + rdlen; txt < txtend; txt = txtnext) { /* * Read a key/value pair starting with an 8-bit length. Since the * length is 8 bits and the size of the key/value buffers is 256, we * don't need to check for overflow... */ txtlen = *txt++; if (!txtlen || (txt + txtlen) > txtend) break; txtnext = txt + txtlen; for (ptr = key; txt < txtnext && *txt != '='; txt ++) *ptr++ = (char)*txt; *ptr = '\0'; if (txt < txtnext && *txt == '=') { txt ++; if (txt < txtnext) memcpy(value, txt, (size_t)(txtnext - txt)); value[txtnext - txt] = '\0'; DEBUG_printf(("6cups_dnssd_query_cb: %s=%s", key, value)); } else { DEBUG_printf(("6cups_dnssd_query_cb: '%s' with no value.", key)); continue; } if (!_cups_strcasecmp(key, "usb_MFG") || !_cups_strcasecmp(key, "usb_MANU") || !_cups_strcasecmp(key, "usb_MANUFACTURER")) strlcpy(make_and_model, value, sizeof(make_and_model)); else if (!_cups_strcasecmp(key, "usb_MDL") || !_cups_strcasecmp(key, "usb_MODEL")) strlcpy(model, value, sizeof(model)); else if (!_cups_strcasecmp(key, "product") && !strstr(value, "Ghostscript")) { if (value[0] == '(') { /* * Strip parenthesis... */ if ((ptr = value + strlen(value) - 1) > value && *ptr == ')') *ptr = '\0'; strlcpy(model, value + 1, sizeof(model)); } else strlcpy(model, value, sizeof(model)); } else if (!_cups_strcasecmp(key, "ty")) { strlcpy(model, value, sizeof(model)); if ((ptr = strchr(model, ',')) != NULL) *ptr = '\0'; } else if (!_cups_strcasecmp(key, "note")) device->dest.num_options = cupsAddOption("printer-location", value, device->dest.num_options, &device->dest.options); else if (!_cups_strcasecmp(key, "pdl")) { /* * Look for PDF-capable printers; only PDF-capable printers are shown. */ const char *start, *next; /* Pointer into value */ int have_pdf = 0, /* Have PDF? */ have_raster = 0;/* Have raster format support? */ for (start = value; start && *start; start = next) { if (!_cups_strncasecmp(start, "application/pdf", 15) && (!start[15] || start[15] == ',')) { have_pdf = 1; break; } else if ((!_cups_strncasecmp(start, "image/pwg-raster", 16) && (!start[16] || start[16] == ',')) || (!_cups_strncasecmp(start, "image/urf", 9) && (!start[9] || start[9] == ','))) { have_raster = 1; break; } if ((next = strchr(start, ',')) != NULL) next ++; } if (!have_pdf && !have_raster) device->state = _CUPS_DNSSD_INCOMPATIBLE; } else if (!_cups_strcasecmp(key, "printer-type")) { /* * Value is either NNNN or 0xXXXX */ saw_printer_type = 1; type = (cups_ptype_t)strtol(value, NULL, 0) | CUPS_PRINTER_DISCOVERED; } else if (!saw_printer_type) { if (!_cups_strcasecmp(key, "air") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_AUTHENTICATED; else if (!_cups_strcasecmp(key, "bind") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_BIND; else if (!_cups_strcasecmp(key, "collate") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_COLLATE; else if (!_cups_strcasecmp(key, "color") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_COLOR; else if (!_cups_strcasecmp(key, "copies") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_COPIES; else if (!_cups_strcasecmp(key, "duplex") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_DUPLEX; else if (!_cups_strcasecmp(key, "fax") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_MFP; else if (!_cups_strcasecmp(key, "papercustom") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_VARIABLE; else if (!_cups_strcasecmp(key, "papermax")) { if (!_cups_strcasecmp(value, "legal-a4")) type |= CUPS_PRINTER_SMALL; else if (!_cups_strcasecmp(value, "isoc-a2")) type |= CUPS_PRINTER_MEDIUM; else if (!_cups_strcasecmp(value, ">isoc-a2")) type |= CUPS_PRINTER_LARGE; } else if (!_cups_strcasecmp(key, "punch") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_PUNCH; else if (!_cups_strcasecmp(key, "scan") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_MFP; else if (!_cups_strcasecmp(key, "sort") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_SORT; else if (!_cups_strcasecmp(key, "staple") && !_cups_strcasecmp(value, "t")) type |= CUPS_PRINTER_STAPLE; } } /* * Save the printer-xxx values... */ if (make_and_model[0]) { strlcat(make_and_model, " ", sizeof(make_and_model)); strlcat(make_and_model, model, sizeof(make_and_model)); device->dest.num_options = cupsAddOption("printer-make-and-model", make_and_model, device->dest.num_options, &device->dest.options); } else device->dest.num_options = cupsAddOption("printer-make-and-model", model, device->dest.num_options, &device->dest.options); device->type = type; snprintf(value, sizeof(value), "%u", type); device->dest.num_options = cupsAddOption("printer-type", value, device->dest.num_options, &device->dest.options); /* * Save the URI... */ cups_dnssd_unquote(uriname, device->fullName, sizeof(uriname)); httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), !strcmp(device->regtype, "_ipps._tcp") ? "ipps" : "ipp", NULL, uriname, 0, saw_printer_type ? "/cups" : "/"); DEBUG_printf(("6cups_dnssd_query: device-uri=\"%s\"", uri)); device->dest.num_options = cupsAddOption("device-uri", uri, device->dest.num_options, &device->dest.options); } else DEBUG_printf(("6cups_dnssd_query: Ignoring TXT record for '%s'.", fullName)); } /* * 'cups_dnssd_resolve()' - Resolve a Bonjour printer URI. */ static const char * /* O - Resolved URI or NULL */ cups_dnssd_resolve( cups_dest_t *dest, /* I - Destination */ const char *uri, /* I - Current printer URI */ int msec, /* I - Time in milliseconds */ int *cancel, /* I - Pointer to "cancel" variable */ cups_dest_cb_t cb, /* I - Callback */ void *user_data) /* I - User data for callback */ { char tempuri[1024]; /* Temporary URI buffer */ _cups_dnssd_resolve_t resolve; /* Resolve data */ /* * Resolve the URI... */ resolve.cancel = cancel; gettimeofday(&resolve.end_time, NULL); if (msec > 0) { resolve.end_time.tv_sec += msec / 1000; resolve.end_time.tv_usec += (msec % 1000) * 1000; while (resolve.end_time.tv_usec >= 1000000) { resolve.end_time.tv_sec ++; resolve.end_time.tv_usec -= 1000000; } } else resolve.end_time.tv_sec += 75; if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_RESOLVING, dest); if ((uri = _httpResolveURI(uri, tempuri, sizeof(tempuri), _HTTP_RESOLVE_DEFAULT, cups_dnssd_resolve_cb, &resolve)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to resolve printer-uri."), 1); if (cb) (*cb)(user_data, CUPS_DEST_FLAGS_UNCONNECTED | CUPS_DEST_FLAGS_ERROR, dest); return (NULL); } /* * Save the resolved URI... */ dest->num_options = cupsAddOption("device-uri", uri, dest->num_options, &dest->options); return (cupsGetOption("device-uri", dest->num_options, dest->options)); } /* * 'cups_dnssd_resolve_cb()' - See if we should continue resolving. */ static int /* O - 1 to continue, 0 to stop */ cups_dnssd_resolve_cb(void *context) /* I - Resolve data */ { _cups_dnssd_resolve_t *resolve = (_cups_dnssd_resolve_t *)context; /* Resolve data */ struct timeval curtime; /* Current time */ /* * If the cancel variable is set, return immediately. */ if (resolve->cancel && *(resolve->cancel)) { DEBUG_puts("4cups_dnssd_resolve_cb: Canceled."); return (0); } /* * Otherwise check the end time... */ gettimeofday(&curtime, NULL); DEBUG_printf(("4cups_dnssd_resolve_cb: curtime=%d.%06d, end_time=%d.%06d", (int)curtime.tv_sec, (int)curtime.tv_usec, (int)resolve->end_time.tv_sec, (int)resolve->end_time.tv_usec)); return (curtime.tv_sec < resolve->end_time.tv_sec || (curtime.tv_sec == resolve->end_time.tv_sec && curtime.tv_usec < resolve->end_time.tv_usec)); } /* * 'cups_dnssd_unquote()' - Unquote a name string. */ static void cups_dnssd_unquote(char *dst, /* I - Destination buffer */ const char *src, /* I - Source string */ size_t dstsize) /* I - Size of destination buffer */ { char *dstend = dst + dstsize - 1; /* End of destination buffer */ while (*src && dst < dstend) { if (*src == '\\') { src ++; if (isdigit(src[0] & 255) && isdigit(src[1] & 255) && isdigit(src[2] & 255)) { *dst++ = ((((src[0] - '0') * 10) + src[1] - '0') * 10) + src[2] - '0'; src += 3; } else *dst++ = *src++; } else *dst++ = *src ++; } *dst = '\0'; } /* * 'cups_elapsed()' - Return the elapsed time in milliseconds. */ static int /* O - Elapsed time in milliseconds */ cups_elapsed(struct timeval *t) /* IO - Previous time */ { int msecs; /* Milliseconds */ struct timeval nt; /* New time */ gettimeofday(&nt, NULL); msecs = (int)(1000 * (nt.tv_sec - t->tv_sec) + (nt.tv_usec - t->tv_usec) / 1000); *t = nt; return (msecs); } #endif /* HAVE_DNSSD */ /* * 'cups_enum_dests()' - Enumerate destinations from a specific server. */ static int /* O - 1 on success, 0 on failure */ cups_enum_dests( http_t *http, /* I - Connection to scheduler */ unsigned flags, /* I - Enumeration flags */ int msec, /* I - Timeout in milliseconds, -1 for indefinite */ int *cancel, /* I - Pointer to "cancel" variable */ cups_ptype_t type, /* I - Printer type bits */ cups_ptype_t mask, /* I - Mask for printer type bits */ cups_dest_cb_t cb, /* I - Callback function */ void *user_data) /* I - User data */ { int i, j, k, /* Looping vars */ num_dests; /* Number of destinations */ cups_dest_t *dests = NULL, /* Destinations */ *dest; /* Current destination */ cups_option_t *option; /* Current option */ const char *user_default; /* Default printer from environment */ #ifdef HAVE_DNSSD int count, /* Number of queries started */ completed, /* Number of completed queries */ remaining; /* Remainder of timeout */ struct timeval curtime; /* Current time */ _cups_dnssd_data_t data; /* Data for callback */ _cups_dnssd_device_t *device; /* Current device */ # ifdef HAVE_MDNSRESPONDER int nfds, /* Number of files responded */ main_fd; /* File descriptor for lookups */ DNSServiceRef ipp_ref = NULL; /* IPP browser */ # ifdef HAVE_TLS DNSServiceRef ipps_ref = NULL; /* IPPS browser */ # endif /* HAVE_TLS */ # ifdef HAVE_POLL struct pollfd pfd; /* Polling data */ # else fd_set input; /* Input set for select() */ struct timeval timeout; /* Timeout for select() */ # endif /* HAVE_POLL */ # else /* HAVE_AVAHI */ int error; /* Error value */ AvahiServiceBrowser *ipp_ref = NULL; /* IPP browser */ # ifdef HAVE_TLS AvahiServiceBrowser *ipps_ref = NULL; /* IPPS browser */ # endif /* HAVE_TLS */ # endif /* HAVE_MDNSRESPONDER */ #else _cups_getdata_t data; /* Data for callback */ #endif /* HAVE_DNSSD */ char filename[1024]; /* Local lpoptions file */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ DEBUG_printf(("cups_enum_dests(flags=%x, msec=%d, cancel=%p, type=%x, mask=%x, cb=%p, user_data=%p)", flags, msec, (void *)cancel, type, mask, (void *)cb, (void *)user_data)); /* * Range check input... */ (void)flags; if (!cb) { DEBUG_puts("1cups_enum_dests: No callback, returning 0."); return (0); } /* * Load the /etc/cups/lpoptions and ~/.cups/lpoptions files... */ memset(&data, 0, sizeof(data)); user_default = _cupsUserDefault(data.def_name, sizeof(data.def_name)); snprintf(filename, sizeof(filename), "%s/lpoptions", cg->cups_serverroot); data.num_dests = cups_get_dests(filename, NULL, NULL, 1, user_default != NULL, data.num_dests, &data.dests); if (cg->home) { #if _WIN32 snprintf(filename, sizeof(filename), "%s/AppData/Local/cups/lpoptions", cg->home); #else snprintf(filename, sizeof(filename), "%s/.cups/lpoptions", cg->home); #endif // _WIN32 data.num_dests = cups_get_dests(filename, NULL, NULL, 1, user_default != NULL, data.num_dests, &data.dests); } if (!user_default && (dest = cupsGetDest(NULL, NULL, data.num_dests, data.dests)) != NULL) { /* * Use an lpoptions default printer... */ if (dest->instance) snprintf(data.def_name, sizeof(data.def_name), "%s/%s", dest->name, dest->instance); else strlcpy(data.def_name, dest->name, sizeof(data.def_name)); } else { const char *default_printer; /* Server default printer */ if ((default_printer = cupsGetDefault2(http)) != NULL) strlcpy(data.def_name, default_printer, sizeof(data.def_name)); } if (data.def_name[0]) { /* * Separate printer and instance name... */ if ((data.def_instance = strchr(data.def_name, '/')) != NULL) *data.def_instance++ = '\0'; } DEBUG_printf(("1cups_enum_dests: def_name=\"%s\", def_instance=\"%s\"", data.def_name, data.def_instance)); /* * Get ready to enumerate... */ #ifdef HAVE_DNSSD data.type = type; data.mask = mask; data.cb = cb; data.user_data = user_data; data.devices = cupsArrayNew3((cups_array_func_t)cups_dnssd_compare_devices, NULL, NULL, 0, NULL, (cups_afree_func_t)cups_dnssd_free_device); #endif /* HAVE_DNSSD */ if (!(mask & CUPS_PRINTER_DISCOVERED) || !(type & CUPS_PRINTER_DISCOVERED)) { /* * Get the list of local printers and pass them to the callback function... */ num_dests = _cupsGetDests(http, IPP_OP_CUPS_GET_PRINTERS, NULL, &dests, type, mask); if (data.def_name[0]) { /* * Lookup the named default printer and instance and make it the default... */ if ((dest = cupsGetDest(data.def_name, data.def_instance, num_dests, dests)) != NULL) { DEBUG_printf(("1cups_enum_dests: Setting is_default on \"%s/%s\".", dest->name, dest->instance)); dest->is_default = 1; } } for (i = num_dests, dest = dests; i > 0 && (!cancel || !*cancel); i --, dest ++) { cups_dest_t *user_dest; /* Destination from lpoptions */ #ifdef HAVE_DNSSD const char *device_uri; /* Device URI */ #endif /* HAVE_DNSSD */ if ((user_dest = cupsGetDest(dest->name, NULL, data.num_dests, data.dests)) != NULL) { /* * Apply user defaults to this destination for all instances... */ for (j = user_dest - data.dests; j < data.num_dests; j ++, user_dest ++) { if (_cups_strcasecmp(user_dest->name, dest->name)) { j = data.num_dests; break; } for (k = dest->num_options, option = dest->options; k > 0; k --, option ++) { if (!cupsGetOption(option->name, user_dest->num_options, user_dest->options)) user_dest->num_options = cupsAddOption(option->name, option->value, user_dest->num_options, &user_dest->options); } if (!(*cb)(user_data, i > 1 ? CUPS_DEST_FLAGS_MORE : CUPS_DEST_FLAGS_NONE, user_dest)) break; } if (j < data.num_dests) break; } else if (!(*cb)(user_data, i > 1 ? CUPS_DEST_FLAGS_MORE : CUPS_DEST_FLAGS_NONE, dest)) break; #ifdef HAVE_DNSSD if (!dest->instance && (device_uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL && !strncmp(device_uri, "dnssd://", 8)) { /* * Add existing queue using service name, etc. so we don't list it again... */ char scheme[32], /* URI scheme */ userpass[32], /* Username:password */ serviceName[256], /* Service name (host field) */ resource[256], /* Resource (options) */ *regtype, /* Registration type */ *replyDomain; /* Registration domain */ int port; /* Port number (not used) */ if (httpSeparateURI(HTTP_URI_CODING_ALL, device_uri, scheme, sizeof(scheme), userpass, sizeof(userpass), serviceName, sizeof(serviceName), &port, resource, sizeof(resource)) >= HTTP_URI_STATUS_OK) { if ((regtype = strstr(serviceName, "._ipp")) != NULL) { *regtype++ = '\0'; if ((replyDomain = strstr(regtype, "._tcp.")) != NULL) { replyDomain[5] = '\0'; replyDomain += 6; if ((device = cups_dnssd_get_device(&data, serviceName, regtype, replyDomain)) != NULL) device->state = _CUPS_DNSSD_ACTIVE; } } } } #endif /* HAVE_DNSSD */ } cupsFreeDests(num_dests, dests); if (i > 0 || msec == 0) goto enum_finished; } /* * Return early if the caller doesn't want to do discovery... */ if ((mask & CUPS_PRINTER_DISCOVERED) && !(type & CUPS_PRINTER_DISCOVERED)) goto enum_finished; #ifdef HAVE_DNSSD /* * Get Bonjour-shared printers... */ gettimeofday(&curtime, NULL); # ifdef HAVE_MDNSRESPONDER if (DNSServiceCreateConnection(&data.main_ref) != kDNSServiceErr_NoError) { DEBUG_puts("1cups_enum_dests: Unable to create service browser, returning 0."); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } main_fd = DNSServiceRefSockFD(data.main_ref); ipp_ref = data.main_ref; if (DNSServiceBrowse(&ipp_ref, kDNSServiceFlagsShareConnection, 0, "_ipp._tcp", NULL, (DNSServiceBrowseReply)cups_dnssd_browse_cb, &data) != kDNSServiceErr_NoError) { DEBUG_puts("1cups_enum_dests: Unable to create IPP browser, returning 0."); DNSServiceRefDeallocate(data.main_ref); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } # ifdef HAVE_TLS ipps_ref = data.main_ref; if (DNSServiceBrowse(&ipps_ref, kDNSServiceFlagsShareConnection, 0, "_ipps._tcp", NULL, (DNSServiceBrowseReply)cups_dnssd_browse_cb, &data) != kDNSServiceErr_NoError) { DEBUG_puts("1cups_enum_dests: Unable to create IPPS browser, returning 0."); DNSServiceRefDeallocate(data.main_ref); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } # endif /* HAVE_TLS */ # else /* HAVE_AVAHI */ if ((data.simple_poll = avahi_simple_poll_new()) == NULL) { DEBUG_puts("1cups_enum_dests: Unable to create Avahi poll, returning 0."); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } avahi_simple_poll_set_func(data.simple_poll, cups_dnssd_poll_cb, &data); data.client = avahi_client_new(avahi_simple_poll_get(data.simple_poll), 0, cups_dnssd_client_cb, &data, &error); if (!data.client) { DEBUG_puts("1cups_enum_dests: Unable to create Avahi client, returning 0."); avahi_simple_poll_free(data.simple_poll); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } data.browsers = 1; if ((ipp_ref = avahi_service_browser_new(data.client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp._tcp", NULL, 0, cups_dnssd_browse_cb, &data)) == NULL) { DEBUG_puts("1cups_enum_dests: Unable to create Avahi IPP browser, returning 0."); avahi_client_free(data.client); avahi_simple_poll_free(data.simple_poll); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } # ifdef HAVE_TLS data.browsers ++; if ((ipps_ref = avahi_service_browser_new(data.client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipps._tcp", NULL, 0, cups_dnssd_browse_cb, &data)) == NULL) { DEBUG_puts("1cups_enum_dests: Unable to create Avahi IPPS browser, returning 0."); avahi_service_browser_free(ipp_ref); avahi_client_free(data.client); avahi_simple_poll_free(data.simple_poll); cupsFreeDests(data.num_dests, data.dests); cupsArrayDelete(data.devices); return (0); } # endif /* HAVE_TLS */ # endif /* HAVE_MDNSRESPONDER */ if (msec < 0) remaining = INT_MAX; else remaining = msec; while (remaining > 0 && (!cancel || !*cancel)) { /* * Check for input... */ DEBUG_printf(("1cups_enum_dests: remaining=%d", remaining)); cups_elapsed(&curtime); # ifdef HAVE_MDNSRESPONDER # ifdef HAVE_POLL pfd.fd = main_fd; pfd.events = POLLIN; nfds = poll(&pfd, 1, remaining > _CUPS_DNSSD_MAXTIME ? _CUPS_DNSSD_MAXTIME : remaining); # else FD_ZERO(&input); FD_SET(main_fd, &input); timeout.tv_sec = 0; timeout.tv_usec = 1000 * (remaining > _CUPS_DNSSD_MAXTIME ? _CUPS_DNSSD_MAXTIME : remaining); nfds = select(main_fd + 1, &input, NULL, NULL, &timeout); # endif /* HAVE_POLL */ if (nfds > 0) DNSServiceProcessResult(data.main_ref); else if (nfds < 0 && errno != EINTR && errno != EAGAIN) break; # else /* HAVE_AVAHI */ data.got_data = 0; if ((error = avahi_simple_poll_iterate(data.simple_poll, _CUPS_DNSSD_MAXTIME)) > 0) { /* * We've been told to exit the loop. Perhaps the connection to * Avahi failed. */ break; } DEBUG_printf(("1cups_enum_dests: got_data=%d", data.got_data)); # endif /* HAVE_MDNSRESPONDER */ remaining -= cups_elapsed(&curtime); for (device = (_cups_dnssd_device_t *)cupsArrayFirst(data.devices), count = 0, completed = 0; device; device = (_cups_dnssd_device_t *)cupsArrayNext(data.devices)) { if (device->ref) count ++; if (device->state == _CUPS_DNSSD_ACTIVE) completed ++; if (!device->ref && device->state == _CUPS_DNSSD_NEW) { DEBUG_printf(("1cups_enum_dests: Querying '%s'.", device->fullName)); # ifdef HAVE_MDNSRESPONDER device->ref = data.main_ref; if (DNSServiceQueryRecord(&(device->ref), kDNSServiceFlagsShareConnection, 0, device->fullName, kDNSServiceType_TXT, kDNSServiceClass_IN, (DNSServiceQueryRecordReply)cups_dnssd_query_cb, &data) == kDNSServiceErr_NoError) { count ++; } else { device->ref = 0; device->state = _CUPS_DNSSD_ERROR; DEBUG_puts("1cups_enum_dests: Query failed."); } # else /* HAVE_AVAHI */ if ((device->ref = avahi_record_browser_new(data.client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, device->fullName, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_TXT, 0, cups_dnssd_query_cb, &data)) != NULL) { DEBUG_printf(("1cups_enum_dests: Query ref=%p", device->ref)); count ++; } else { device->state = _CUPS_DNSSD_ERROR; DEBUG_printf(("1cups_enum_dests: Query failed: %s", avahi_strerror(avahi_client_errno(data.client)))); } # endif /* HAVE_MDNSRESPONDER */ } else if (device->ref && device->state == _CUPS_DNSSD_PENDING) { completed ++; DEBUG_printf(("1cups_enum_dests: Query for \"%s\" is complete.", device->fullName)); if ((device->type & mask) == type) { cups_dest_t *user_dest; /* Destination from lpoptions */ dest = &device->dest; if ((user_dest = cupsGetDest(dest->name, dest->instance, data.num_dests, data.dests)) != NULL) { /* * Apply user defaults to this destination for all instances... */ for (j = user_dest - data.dests; j < data.num_dests; j ++, user_dest ++) { if (_cups_strcasecmp(user_dest->name, dest->name)) { j = data.num_dests; break; } for (k = dest->num_options, option = dest->options; k > 0; k --, option ++) { if (!cupsGetOption(option->name, user_dest->num_options, user_dest->options)) user_dest->num_options = cupsAddOption(option->name, option->value, user_dest->num_options, &user_dest->options); } if (!(*cb)(user_data, CUPS_DEST_FLAGS_NONE, user_dest)) break; } if (j < data.num_dests) { remaining = -1; break; } } else { if (!strcasecmp(dest->name, data.def_name) && !data.def_instance) { DEBUG_printf(("1cups_enum_dests: Setting is_default on discovered \"%s\".", dest->name)); dest->is_default = 1; } DEBUG_printf(("1cups_enum_dests: Add callback for \"%s\".", device->dest.name)); if (!(*cb)(user_data, CUPS_DEST_FLAGS_NONE, dest)) { remaining = -1; break; } } } device->state = _CUPS_DNSSD_ACTIVE; } } # ifdef HAVE_AVAHI DEBUG_printf(("1cups_enum_dests: remaining=%d, browsers=%d, completed=%d, count=%d, devices count=%d", remaining, data.browsers, completed, count, cupsArrayCount(data.devices))); if (data.browsers == 0 && completed == cupsArrayCount(data.devices)) break; # else DEBUG_printf(("1cups_enum_dests: remaining=%d, completed=%d, count=%d, devices count=%d", remaining, completed, count, cupsArrayCount(data.devices))); if (completed == cupsArrayCount(data.devices)) break; # endif /* HAVE_AVAHI */ } #endif /* HAVE_DNSSD */ /* * Return... */ enum_finished: cupsFreeDests(data.num_dests, data.dests); #ifdef HAVE_DNSSD cupsArrayDelete(data.devices); # ifdef HAVE_MDNSRESPONDER if (ipp_ref) DNSServiceRefDeallocate(ipp_ref); # ifdef HAVE_TLS if (ipps_ref) DNSServiceRefDeallocate(ipps_ref); # endif /* HAVE_TLS */ if (data.main_ref) DNSServiceRefDeallocate(data.main_ref); # else /* HAVE_AVAHI */ if (ipp_ref) avahi_service_browser_free(ipp_ref); # ifdef HAVE_TLS if (ipps_ref) avahi_service_browser_free(ipps_ref); # endif /* HAVE_TLS */ if (data.client) avahi_client_free(data.client); if (data.simple_poll) avahi_simple_poll_free(data.simple_poll); # endif /* HAVE_MDNSRESPONDER */ #endif /* HAVE_DNSSD */ DEBUG_puts("1cups_enum_dests: Returning 1."); return (1); } /* * 'cups_find_dest()' - Find a destination using a binary search. */ static int /* O - Index of match */ cups_find_dest(const char *name, /* I - Destination name */ const char *instance, /* I - Instance or NULL */ int num_dests, /* I - Number of destinations */ cups_dest_t *dests, /* I - Destinations */ int prev, /* I - Previous index */ int *rdiff) /* O - Difference of match */ { int left, /* Low mark for binary search */ right, /* High mark for binary search */ current, /* Current index */ diff; /* Result of comparison */ cups_dest_t key; /* Search key */ key.name = (char *)name; key.instance = (char *)instance; if (prev >= 0) { /* * Start search on either side of previous... */ if ((diff = cups_compare_dests(&key, dests + prev)) == 0 || (diff < 0 && prev == 0) || (diff > 0 && prev == (num_dests - 1))) { *rdiff = diff; return (prev); } else if (diff < 0) { /* * Start with previous on right side... */ left = 0; right = prev; } else { /* * Start with previous on left side... */ left = prev; right = num_dests - 1; } } else { /* * Start search in the middle... */ left = 0; right = num_dests - 1; } do { current = (left + right) / 2; diff = cups_compare_dests(&key, dests + current); if (diff == 0) break; else if (diff < 0) right = current; else left = current; } while ((right - left) > 1); if (diff != 0) { /* * Check the last 1 or 2 elements... */ if ((diff = cups_compare_dests(&key, dests + left)) <= 0) current = left; else { diff = cups_compare_dests(&key, dests + right); current = right; } } /* * Return the closest destination and the difference... */ *rdiff = diff; return (current); } /* * 'cups_get_cb()' - Collect enumerated destinations. */ static int /* O - 1 to continue, 0 to stop */ cups_get_cb(_cups_getdata_t *data, /* I - Data from cupsGetDests */ unsigned flags, /* I - Enumeration flags */ cups_dest_t *dest) /* I - Destination */ { if (flags & CUPS_DEST_FLAGS_REMOVED) { /* * Remove destination from array... */ data->num_dests = cupsRemoveDest(dest->name, dest->instance, data->num_dests, &data->dests); } else { /* * Add destination to array... */ data->num_dests = cupsCopyDest(dest, data->num_dests, &data->dests); } return (1); } /* * 'cups_get_default()' - Get the default destination from an lpoptions file. */ static char * /* O - Default destination or NULL */ cups_get_default(const char *filename, /* I - File to read */ char *namebuf, /* I - Name buffer */ size_t namesize, /* I - Size of name buffer */ const char **instance) /* I - Instance */ { cups_file_t *fp; /* lpoptions file */ char line[8192], /* Line from file */ *value, /* Value for line */ *nameptr; /* Pointer into name */ int linenum; /* Current line */ *namebuf = '\0'; if ((fp = cupsFileOpen(filename, "r")) != NULL) { linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!_cups_strcasecmp(line, "default") && value) { strlcpy(namebuf, value, namesize); if ((nameptr = strchr(namebuf, ' ')) != NULL) *nameptr = '\0'; if ((nameptr = strchr(namebuf, '\t')) != NULL) *nameptr = '\0'; if ((nameptr = strchr(namebuf, '/')) != NULL) *nameptr++ = '\0'; *instance = nameptr; break; } } cupsFileClose(fp); } return (*namebuf ? namebuf : NULL); } /* * 'cups_get_dests()' - Get destinations from a file. */ static int /* O - Number of destinations */ cups_get_dests( const char *filename, /* I - File to read from */ const char *match_name, /* I - Destination name we want */ const char *match_inst, /* I - Instance name we want */ int load_all, /* I - Load all saved destinations? */ int user_default_set, /* I - User default printer set? */ int num_dests, /* I - Number of destinations */ cups_dest_t **dests) /* IO - Destinations */ { int i; /* Looping var */ cups_dest_t *dest; /* Current destination */ cups_file_t *fp; /* File pointer */ char line[8192], /* Line from file */ *lineptr, /* Pointer into line */ *name, /* Name of destination/option */ *instance; /* Instance of destination */ int linenum; /* Current line number */ DEBUG_printf(("7cups_get_dests(filename=\"%s\", match_name=\"%s\", match_inst=\"%s\", load_all=%d, user_default_set=%d, num_dests=%d, dests=%p)", filename, match_name, match_inst, load_all, user_default_set, num_dests, (void *)dests)); /* * Try to open the file... */ if ((fp = cupsFileOpen(filename, "r")) == NULL) return (num_dests); /* * Read each printer; each line looks like: * * Dest name[/instance] options * Default name[/instance] options */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &lineptr, &linenum)) { /* * See what type of line it is... */ DEBUG_printf(("9cups_get_dests: linenum=%d line=\"%s\" lineptr=\"%s\"", linenum, line, lineptr)); if ((_cups_strcasecmp(line, "dest") && _cups_strcasecmp(line, "default")) || !lineptr) { DEBUG_puts("9cups_get_dests: Not a dest or default line..."); continue; } name = lineptr; /* * Search for an instance... */ while (!isspace(*lineptr & 255) && *lineptr && *lineptr != '/') lineptr ++; if (*lineptr == '/') { /* * Found an instance... */ *lineptr++ = '\0'; instance = lineptr; /* * Search for an instance... */ while (!isspace(*lineptr & 255) && *lineptr) lineptr ++; } else instance = NULL; if (*lineptr) *lineptr++ = '\0'; DEBUG_printf(("9cups_get_dests: name=\"%s\", instance=\"%s\"", name, instance)); /* * Match and/or ignore missing destinations... */ if (match_name) { if (_cups_strcasecmp(name, match_name) || (!instance && match_inst) || (instance && !match_inst) || (instance && _cups_strcasecmp(instance, match_inst))) continue; dest = *dests; } else if (!load_all && cupsGetDest(name, NULL, num_dests, *dests) == NULL) { DEBUG_puts("9cups_get_dests: Not found!"); continue; } else { /* * Add the destination... */ num_dests = cupsAddDest(name, instance, num_dests, dests); if ((dest = cupsGetDest(name, instance, num_dests, *dests)) == NULL) { /* * Out of memory! */ DEBUG_puts("9cups_get_dests: Could not find destination after adding, must be out of memory."); break; } } /* * Add options until we hit the end of the line... */ dest->num_options = cupsParseOptions(lineptr, dest->num_options, &(dest->options)); /* * If we found what we were looking for, stop now... */ if (match_name) break; /* * Set this as default if needed... */ if (!user_default_set && !_cups_strcasecmp(line, "default")) { DEBUG_puts("9cups_get_dests: Setting as default..."); for (i = 0; i < num_dests; i ++) (*dests)[i].is_default = 0; dest->is_default = 1; } } /* * Close the file and return... */ cupsFileClose(fp); return (num_dests); } /* * 'cups_make_string()' - Make a comma-separated string of values from an IPP * attribute. */ static char * /* O - New string */ cups_make_string( ipp_attribute_t *attr, /* I - Attribute to convert */ char *buffer, /* I - Buffer */ size_t bufsize) /* I - Size of buffer */ { int i; /* Looping var */ char *ptr, /* Pointer into buffer */ *end, /* Pointer to end of buffer */ *valptr; /* Pointer into string attribute */ /* * Return quickly if we have a single string value... */ if (attr->num_values == 1 && attr->value_tag != IPP_TAG_INTEGER && attr->value_tag != IPP_TAG_ENUM && attr->value_tag != IPP_TAG_BOOLEAN && attr->value_tag != IPP_TAG_RANGE) return (attr->values[0].string.text); /* * Copy the values to the string, separating with commas and escaping strings * as needed... */ end = buffer + bufsize - 1; for (i = 0, ptr = buffer; i < attr->num_values && ptr < end; i ++) { if (i) *ptr++ = ','; switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : snprintf(ptr, (size_t)(end - ptr + 1), "%d", attr->values[i].integer); break; case IPP_TAG_BOOLEAN : if (attr->values[i].boolean) strlcpy(ptr, "true", (size_t)(end - ptr + 1)); else strlcpy(ptr, "false", (size_t)(end - ptr + 1)); break; case IPP_TAG_RANGE : if (attr->values[i].range.lower == attr->values[i].range.upper) snprintf(ptr, (size_t)(end - ptr + 1), "%d", attr->values[i].range.lower); else snprintf(ptr, (size_t)(end - ptr + 1), "%d-%d", attr->values[i].range.lower, attr->values[i].range.upper); break; default : for (valptr = attr->values[i].string.text; *valptr && ptr < end;) { if (strchr(" \t\n\\\'\"", *valptr)) { if (ptr >= (end - 1)) break; *ptr++ = '\\'; } *ptr++ = *valptr++; } *ptr = '\0'; break; } ptr += strlen(ptr); } *ptr = '\0'; return (buffer); } /* * 'cups_name_cb()' - Find an enumerated destination. */ static int /* O - 1 to continue, 0 to stop */ cups_name_cb(_cups_namedata_t *data, /* I - Data from cupsGetNamedDest */ unsigned flags, /* I - Enumeration flags */ cups_dest_t *dest) /* I - Destination */ { DEBUG_printf(("2cups_name_cb(data=%p(%s), flags=%x, dest=%p(%s)", (void *)data, data->name, flags, (void *)dest, dest->name)); if (!(flags & CUPS_DEST_FLAGS_REMOVED) && !dest->instance && !strcasecmp(data->name, dest->name)) { /* * Copy destination and stop enumeration... */ cupsCopyDest(dest, 0, &data->dest); return (0); } return (1); } /* * 'cups_queue_name()' - Create a local queue name based on the service name. */ static void cups_queue_name( char *name, /* I - Name buffer */ const char *serviceName, /* I - Service name */ size_t namesize) /* I - Size of name buffer */ { const char *ptr; /* Pointer into serviceName */ char *nameptr; /* Pointer into name */ for (nameptr = name, ptr = serviceName; *ptr && nameptr < (name + namesize - 1); ptr ++) { /* * Sanitize the printer name... */ if (_cups_isalnum(*ptr)) *nameptr++ = *ptr; else if (nameptr == name || nameptr[-1] != '_') *nameptr++ = '_'; } /* * Remove an underscore if it is the last character and isn't the only * character in the name... */ if (nameptr > (name + 1) && nameptr[-1] == '_') nameptr --; *nameptr = '\0'; } cups-2.4.7/cups/dest-options.c0000644000175000017500000023163614502571342016142 0ustar zdohnalzdohnal/* * Destination option/media support for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2012-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * Local constants... */ #define _CUPS_MEDIA_READY_TTL 30 /* Life of xxx-ready values */ /* * Local functions... */ static void cups_add_dconstres(cups_array_t *a, ipp_t *collection); static int cups_collection_contains(ipp_t *test, ipp_t *match); static size_t cups_collection_string(ipp_attribute_t *attr, char *buffer, size_t bufsize) _CUPS_NONNULL((1,2)); static int cups_compare_dconstres(_cups_dconstres_t *a, _cups_dconstres_t *b); static int cups_compare_media_db(_cups_media_db_t *a, _cups_media_db_t *b); static _cups_media_db_t *cups_copy_media_db(_cups_media_db_t *mdb); static void cups_create_cached(http_t *http, cups_dinfo_t *dinfo, unsigned flags); static void cups_create_constraints(cups_dinfo_t *dinfo); static void cups_create_defaults(cups_dinfo_t *dinfo); static void cups_create_media_db(cups_dinfo_t *dinfo, unsigned flags); static void cups_free_media_db(_cups_media_db_t *mdb); static int cups_get_media_db(http_t *http, cups_dinfo_t *dinfo, pwg_media_t *pwg, unsigned flags, cups_size_t *size); static int cups_is_close_media_db(_cups_media_db_t *a, _cups_media_db_t *b); static cups_array_t *cups_test_constraints(cups_dinfo_t *dinfo, const char *new_option, const char *new_value, int num_options, cups_option_t *options, int *num_conflicts, cups_option_t **conflicts); static void cups_update_ready(http_t *http, cups_dinfo_t *dinfo); /* * 'cupsAddDestMediaOptions()' - Add the option corresponding to the specified media size. * * @since CUPS 2.3/macOS 10.14@ */ int /* O - New number of options */ cupsAddDestMediaOptions( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags, /* I - Media matching flags */ cups_size_t *size, /* I - Media size */ int num_options, /* I - Current number of options */ cups_option_t **options) /* IO - Options */ { cups_array_t *db; /* Media database */ _cups_media_db_t *mdb; /* Media database entry */ char value[2048]; /* Option value */ /* * Range check input... */ if (!http || !dest || !dinfo || !size || !options) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (num_options); } /* * Find the matching media size... */ if (flags & CUPS_MEDIA_FLAGS_READY) db = dinfo->ready_db; else db = dinfo->media_db; DEBUG_printf(("1cupsAddDestMediaOptions: size->media=\"%s\"", size->media)); for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->key && !strcmp(mdb->key, size->media)) break; else if (mdb->size_name && !strcmp(mdb->size_name, size->media)) break; } if (!mdb) { for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->width == size->width && mdb->length == size->length && mdb->bottom == size->bottom && mdb->left == size->left && mdb->right == size->right && mdb->top == size->top) break; } } if (!mdb) { for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->width == size->width && mdb->length == size->length) break; } } if (!mdb) { DEBUG_puts("1cupsAddDestMediaOptions: Unable to find matching size."); return (num_options); } DEBUG_printf(("1cupsAddDestMediaOptions: MATCH mdb%p [key=\"%s\" size_name=\"%s\" source=\"%s\" type=\"%s\" width=%d length=%d B%d L%d R%d T%d]", (void *)mdb, mdb->key, mdb->size_name, mdb->source, mdb->type, mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top)); if (mdb->source) { if (mdb->type) snprintf(value, sizeof(value), "{media-size={x-dimension=%d y-dimension=%d} media-bottom-margin=%d media-left-margin=%d media-right-margin=%d media-top-margin=%d media-source=\"%s\" media-type=\"%s\"}", mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top, mdb->source, mdb->type); else snprintf(value, sizeof(value), "{media-size={x-dimension=%d y-dimension=%d} media-bottom-margin=%d media-left-margin=%d media-right-margin=%d media-top-margin=%d media-source=\"%s\"}", mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top, mdb->source); } else if (mdb->type) { snprintf(value, sizeof(value), "{media-size={x-dimension=%d y-dimension=%d} media-bottom-margin=%d media-left-margin=%d media-right-margin=%d media-top-margin=%d media-type=\"%s\"}", mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top, mdb->type); } else { snprintf(value, sizeof(value), "{media-size={x-dimension=%d y-dimension=%d} media-bottom-margin=%d media-left-margin=%d media-right-margin=%d media-top-margin=%d}", mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top); } num_options = cupsAddOption("media-col", value, num_options, options); return (num_options); } /* * 'cupsCheckDestSupported()' - Check that the option and value are supported * by the destination. * * Returns 1 if supported, 0 otherwise. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 if supported, 0 otherwise */ cupsCheckDestSupported( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option, /* I - Option */ const char *value) /* I - Value or @code NULL@ */ { int i; /* Looping var */ char temp[1024]; /* Temporary string */ int int_value; /* Integer value */ int xres_value, /* Horizontal resolution */ yres_value; /* Vertical resolution */ ipp_res_t units_value; /* Resolution units */ ipp_attribute_t *attr; /* Attribute */ _ipp_value_t *attrval; /* Current attribute value */ _ipp_option_t *map; /* Option mapping information */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo || !option) return (0); /* * Lookup the attribute... */ if (strstr(option, "-supported")) attr = ippFindAttribute(dinfo->attrs, option, IPP_TAG_ZERO); else { snprintf(temp, sizeof(temp), "%s-supported", option); attr = ippFindAttribute(dinfo->attrs, temp, IPP_TAG_ZERO); } if (!attr) return (0); if (!value) return (1); /* * Compare values... */ if (!strcmp(option, "media") && !strncmp(value, "custom_", 7)) { /* * Check range of custom media sizes... */ pwg_media_t *pwg; /* Current PWG media size info */ int min_width, /* Minimum width */ min_length, /* Minimum length */ max_width, /* Maximum width */ max_length; /* Maximum length */ /* * Get the minimum and maximum size... */ min_width = min_length = INT_MAX; max_width = max_length = 0; for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (!strncmp(attrval->string.text, "custom_min_", 11) && (pwg = pwgMediaForPWG(attrval->string.text)) != NULL) { min_width = pwg->width; min_length = pwg->length; } else if (!strncmp(attrval->string.text, "custom_max_", 11) && (pwg = pwgMediaForPWG(attrval->string.text)) != NULL) { max_width = pwg->width; max_length = pwg->length; } } /* * Check the range... */ if (min_width < INT_MAX && max_width > 0 && (pwg = pwgMediaForPWG(value)) != NULL && pwg->width >= min_width && pwg->width <= max_width && pwg->length >= min_length && pwg->length <= max_length) return (1); } else { /* * Check literal values... */ map = _ippFindOption(option); switch (attr->value_tag) { case IPP_TAG_INTEGER : if (map && map->value_tag == IPP_TAG_STRING) return (strlen(value) <= (size_t)attr->values[0].integer); case IPP_TAG_ENUM : int_value = atoi(value); for (i = 0; i < attr->num_values; i ++) if (attr->values[i].integer == int_value) return (1); break; case IPP_TAG_BOOLEAN : return (attr->values[0].boolean); case IPP_TAG_RANGE : if (map && map->value_tag == IPP_TAG_STRING) int_value = (int)strlen(value); else int_value = atoi(value); for (i = 0; i < attr->num_values; i ++) if (int_value >= attr->values[i].range.lower && int_value <= attr->values[i].range.upper) return (1); break; case IPP_TAG_RESOLUTION : if (sscanf(value, "%dx%d%15s", &xres_value, &yres_value, temp) != 3) { if (sscanf(value, "%d%15s", &xres_value, temp) != 2) return (0); yres_value = xres_value; } if (!strcmp(temp, "dpi")) units_value = IPP_RES_PER_INCH; else if (!strcmp(temp, "dpc") || !strcmp(temp, "dpcm")) units_value = IPP_RES_PER_CM; else return (0); for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (attrval->resolution.xres == xres_value && attrval->resolution.yres == yres_value && attrval->resolution.units == units_value) return (1); } break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_MIMETYPE : case IPP_TAG_LANGUAGE : case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : for (i = 0; i < attr->num_values; i ++) if (!strcmp(attr->values[i].string.text, value)) return (1); break; default : break; } } /* * If we get there the option+value is not supported... */ return (0); } /* * 'cupsCopyDestConflicts()' - Get conflicts and resolutions for a new * option/value pair. * * "num_options" and "options" represent the currently selected options by the * user. "new_option" and "new_value" are the setting the user has just * changed. * * Returns 1 if there is a conflict, 0 if there are no conflicts, and -1 if * there was an unrecoverable error such as a resolver loop. * * If "num_conflicts" and "conflicts" are not @code NULL@, they are set to * contain the list of conflicting option/value pairs. Similarly, if * "num_resolved" and "resolved" are not @code NULL@ they will be set to the * list of changes needed to resolve the conflict. * * If cupsCopyDestConflicts returns 1 but "num_resolved" and "resolved" are set * to 0 and @code NULL@, respectively, then the conflict cannot be resolved. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 if there is a conflict, 0 if none, -1 on error */ cupsCopyDestConflicts( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ int num_options, /* I - Number of current options */ cups_option_t *options, /* I - Current options */ const char *new_option, /* I - New option */ const char *new_value, /* I - New value */ int *num_conflicts, /* O - Number of conflicting options */ cups_option_t **conflicts, /* O - Conflicting options */ int *num_resolved, /* O - Number of options to resolve */ cups_option_t **resolved) /* O - Resolved options */ { int i, /* Looping var */ have_conflicts = 0, /* Do we have conflicts? */ changed, /* Did we change something? */ tries, /* Number of tries for resolution */ num_myconf = 0, /* My number of conflicting options */ num_myres = 0; /* My number of resolved options */ cups_option_t *myconf = NULL, /* My conflicting options */ *myres = NULL, /* My resolved options */ *myoption, /* My current option */ *option; /* Current option */ cups_array_t *active = NULL, /* Active conflicts */ *pass = NULL, /* Resolvers for this pass */ *resolvers = NULL, /* Resolvers we have used */ *test; /* Test array for conflicts */ _cups_dconstres_t *c, /* Current constraint */ *r; /* Current resolver */ ipp_attribute_t *attr; /* Current attribute */ char value[2048]; /* Current attribute value as string */ const char *myvalue; /* Current value of an option */ /* * Clear returned values... */ if (num_conflicts) *num_conflicts = 0; if (conflicts) *conflicts = NULL; if (num_resolved) *num_resolved = 0; if (resolved) *resolved = NULL; /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo || (num_conflicts != NULL) != (conflicts != NULL) || (num_resolved != NULL) != (resolved != NULL)) return (0); /* * Load constraints as needed... */ if (!dinfo->constraints) cups_create_constraints(dinfo); if (cupsArrayCount(dinfo->constraints) == 0) return (0); if (!dinfo->num_defaults) cups_create_defaults(dinfo); /* * If we are resolving, create a shadow array... */ if (num_resolved) { for (i = num_options, option = options; i > 0; i --, option ++) num_myres = cupsAddOption(option->name, option->value, num_myres, &myres); if (new_option && new_value) num_myres = cupsAddOption(new_option, new_value, num_myres, &myres); } else { num_myres = num_options; myres = options; } /* * Check for any conflicts... */ if (num_resolved) pass = cupsArrayNew((cups_array_func_t)cups_compare_dconstres, NULL); for (tries = 0; tries < 100; tries ++) { /* * Check for any conflicts... */ if (num_conflicts || num_resolved) { cupsFreeOptions(num_myconf, myconf); num_myconf = 0; myconf = NULL; active = cups_test_constraints(dinfo, new_option, new_value, num_myres, myres, &num_myconf, &myconf); } else active = cups_test_constraints(dinfo, new_option, new_value, num_myres, myres, NULL, NULL); have_conflicts = (active != NULL); if (!active || !num_resolved) break; /* All done */ /* * Scan the constraints that were triggered to apply resolvers... */ if (!resolvers) resolvers = cupsArrayNew((cups_array_func_t)cups_compare_dconstres, NULL); for (c = (_cups_dconstres_t *)cupsArrayFirst(active), changed = 0; c; c = (_cups_dconstres_t *)cupsArrayNext(active)) { if (cupsArrayFind(pass, c)) continue; /* Already applied this resolver... */ if (cupsArrayFind(resolvers, c)) { DEBUG_printf(("1cupsCopyDestConflicts: Resolver loop with %s.", c->name)); have_conflicts = -1; goto cleanup; } if ((r = cupsArrayFind(dinfo->resolvers, c)) == NULL) { DEBUG_printf(("1cupsCopyDestConflicts: Resolver %s not found.", c->name)); have_conflicts = -1; goto cleanup; } /* * Add the options from the resolver... */ cupsArrayAdd(pass, r); cupsArrayAdd(resolvers, r); for (attr = ippFirstAttribute(r->collection); attr; attr = ippNextAttribute(r->collection)) { if (new_option && !strcmp(attr->name, new_option)) continue; /* Ignore this if we just changed it */ if (ippAttributeString(attr, value, sizeof(value)) >= sizeof(value)) continue; /* Ignore if the value is too long */ if ((test = cups_test_constraints(dinfo, attr->name, value, num_myres, myres, NULL, NULL)) == NULL) { /* * That worked, flag it... */ changed = 1; } else cupsArrayDelete(test); /* * Add the option/value from the resolver regardless of whether it * worked; this makes sure that we can cascade several changes to * make things resolve... */ num_myres = cupsAddOption(attr->name, value, num_myres, &myres); } } if (!changed) { DEBUG_puts("1cupsCopyDestConflicts: Unable to resolve constraints."); have_conflicts = -1; goto cleanup; } cupsArrayClear(pass); cupsArrayDelete(active); active = NULL; } if (tries >= 100) { DEBUG_puts("1cupsCopyDestConflicts: Unable to resolve after 100 tries."); have_conflicts = -1; goto cleanup; } /* * Copy resolved options as needed... */ if (num_resolved) { for (i = num_myres, myoption = myres; i > 0; i --, myoption ++) { if ((myvalue = cupsGetOption(myoption->name, num_options, options)) == NULL || strcmp(myvalue, myoption->value)) { if (new_option && !strcmp(new_option, myoption->name) && new_value && !strcmp(new_value, myoption->value)) continue; *num_resolved = cupsAddOption(myoption->name, myoption->value, *num_resolved, resolved); } } } /* * Clean up... */ cleanup: cupsArrayDelete(active); cupsArrayDelete(pass); cupsArrayDelete(resolvers); if (num_resolved) { /* * Free shadow copy of options... */ cupsFreeOptions(num_myres, myres); } if (num_conflicts) { /* * Return conflicting options to caller... */ *num_conflicts = num_myconf; *conflicts = myconf; } else { /* * Free conflicting options... */ cupsFreeOptions(num_myconf, myconf); } return (have_conflicts); } /* * 'cupsCopyDestInfo()' - Get the supported values/capabilities for the * destination. * * The caller is responsible for calling @link cupsFreeDestInfo@ on the return * value. @code NULL@ is returned on error. * * @since CUPS 1.6/macOS 10.8@ */ cups_dinfo_t * /* O - Destination information */ cupsCopyDestInfo( http_t *http, /* I - Connection to destination */ cups_dest_t *dest) /* I - Destination */ { cups_dinfo_t *dinfo; /* Destination information */ unsigned dflags; /* Destination flags */ ipp_t *request, /* Get-Printer-Attributes request */ *response; /* Supported attributes */ int tries, /* Number of tries so far */ delay, /* Current retry delay */ prev_delay; /* Next retry delay */ const char *uri; /* Printer URI */ char resource[1024]; /* Resource path */ int version; /* IPP version */ ipp_status_t status; /* Status of request */ _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ static const char * const requested_attrs[] = { /* Requested attributes */ "job-template", "media-col-database", "printer-description" }; DEBUG_printf(("cupsCopyDestInfo(http=%p, dest=%p(%s))", (void *)http, (void *)dest, dest ? dest->name : "")); /* * Get the default connection as needed... */ if (!http) { DEBUG_puts("1cupsCopyDestInfo: Default server connection."); http = _cupsConnect(); dflags = CUPS_DEST_FLAGS_NONE; } #ifdef AF_LOCAL else if (httpAddrFamily(http->hostaddr) == AF_LOCAL) { DEBUG_puts("1cupsCopyDestInfo: Connection to server (domain socket)."); dflags = CUPS_DEST_FLAGS_NONE; } #endif /* AF_LOCAL */ else if ((strcmp(http->hostname, cg->server) && cg->server[0] != '/') || cg->ipp_port != httpAddrPort(http->hostaddr)) { DEBUG_printf(("1cupsCopyDestInfo: Connection to device (%s).", http->hostname)); dflags = CUPS_DEST_FLAGS_DEVICE; } else { DEBUG_printf(("1cupsCopyDestInfo: Connection to server (%s).", http->hostname)); dflags = CUPS_DEST_FLAGS_NONE; } /* * Range check input... */ if (!http || !dest) return (NULL); /* * Get the printer URI and resource path... */ if ((uri = _cupsGetDestResource(dest, dflags, resource, sizeof(resource))) == NULL) { DEBUG_puts("1cupsCopyDestInfo: Unable to get resource."); return (NULL); } /* * Get the supported attributes... */ delay = 1; prev_delay = 1; tries = 0; version = 20; do { /* * Send a Get-Printer-Attributes request... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(requested_attrs) / sizeof(requested_attrs[0])), NULL, requested_attrs); response = cupsDoRequest(http, request, resource); status = cupsLastError(); if (status > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED) { DEBUG_printf(("1cupsCopyDestInfo: Get-Printer-Attributes for '%s' returned %s (%s)", dest->name, ippErrorString(status), cupsLastErrorString())); ippDelete(response); response = NULL; if ((status == IPP_STATUS_ERROR_BAD_REQUEST || status == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) && version > 11) { version = 11; } else if (status == IPP_STATUS_ERROR_BUSY) { sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); } else return (NULL); } tries ++; } while (!response && tries < 10); if (!response) { DEBUG_puts("1cupsCopyDestInfo: Unable to get printer attributes."); return (NULL); } /* * Allocate a cups_dinfo_t structure and return it... */ if ((dinfo = calloc(1, sizeof(cups_dinfo_t))) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(errno), 0); ippDelete(response); return (NULL); } DEBUG_printf(("1cupsCopyDestInfo: version=%d, uri=\"%s\", resource=\"%s\".", version, uri, resource)); dinfo->version = version; dinfo->uri = uri; dinfo->resource = _cupsStrAlloc(resource); dinfo->attrs = response; return (dinfo); } /* * 'cupsFindDestDefault()' - Find the default value(s) for the given option. * * The returned value is an IPP attribute. Use the @code ippGetBoolean@, * @code ippGetCollection@, @code ippGetCount@, @code ippGetDate@, * @code ippGetInteger@, @code ippGetOctetString@, @code ippGetRange@, * @code ippGetResolution@, @code ippGetString@, and @code ippGetValueTag@ * functions to inspect the default value(s) as needed. * * @since CUPS 1.7/macOS 10.9@ */ ipp_attribute_t * /* O - Default attribute or @code NULL@ for none */ cupsFindDestDefault( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option) /* I - Option/attribute name */ { char name[IPP_MAX_NAME]; /* Attribute name */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo || !option) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Find and return the attribute... */ snprintf(name, sizeof(name), "%s-default", option); return (ippFindAttribute(dinfo->attrs, name, IPP_TAG_ZERO)); } /* * 'cupsFindDestReady()' - Find the default value(s) for the given option. * * The returned value is an IPP attribute. Use the @code ippGetBoolean@, * @code ippGetCollection@, @code ippGetCount@, @code ippGetDate@, * @code ippGetInteger@, @code ippGetOctetString@, @code ippGetRange@, * @code ippGetResolution@, @code ippGetString@, and @code ippGetValueTag@ * functions to inspect the default value(s) as needed. * * @since CUPS 1.7/macOS 10.9@ */ ipp_attribute_t * /* O - Default attribute or @code NULL@ for none */ cupsFindDestReady( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option) /* I - Option/attribute name */ { char name[IPP_MAX_NAME]; /* Attribute name */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo || !option) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Find and return the attribute... */ cups_update_ready(http, dinfo); snprintf(name, sizeof(name), "%s-ready", option); return (ippFindAttribute(dinfo->ready_attrs, name, IPP_TAG_ZERO)); } /* * 'cupsFindDestSupported()' - Find the default value(s) for the given option. * * The returned value is an IPP attribute. Use the @code ippGetBoolean@, * @code ippGetCollection@, @code ippGetCount@, @code ippGetDate@, * @code ippGetInteger@, @code ippGetOctetString@, @code ippGetRange@, * @code ippGetResolution@, @code ippGetString@, and @code ippGetValueTag@ * functions to inspect the default value(s) as needed. * * @since CUPS 1.7/macOS 10.9@ */ ipp_attribute_t * /* O - Default attribute or @code NULL@ for none */ cupsFindDestSupported( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option) /* I - Option/attribute name */ { char name[IPP_MAX_NAME]; /* Attribute name */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo || !option) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Find and return the attribute... */ snprintf(name, sizeof(name), "%s-supported", option); return (ippFindAttribute(dinfo->attrs, name, IPP_TAG_ZERO)); } /* * 'cupsFreeDestInfo()' - Free destination information obtained using * @link cupsCopyDestInfo@. * * @since CUPS 1.6/macOS 10.8@ */ void cupsFreeDestInfo(cups_dinfo_t *dinfo) /* I - Destination information */ { /* * Range check input... */ if (!dinfo) return; /* * Free memory and return... */ _cupsStrFree(dinfo->resource); cupsArrayDelete(dinfo->constraints); cupsArrayDelete(dinfo->resolvers); cupsArrayDelete(dinfo->localizations); cupsArrayDelete(dinfo->media_db); cupsArrayDelete(dinfo->cached_db); ippDelete(dinfo->ready_attrs); cupsArrayDelete(dinfo->ready_db); ippDelete(dinfo->attrs); free(dinfo); } /* * 'cupsGetDestMediaByIndex()' - Get a media name, dimension, and margins for a * specific size. * * The @code flags@ parameter determines which set of media are indexed. For * example, passing @code CUPS_MEDIA_FLAGS_BORDERLESS@ will get the Nth * borderless size supported by the printer. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ cupsGetDestMediaByIndex( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ int n, /* I - Media size number (0-based) */ unsigned flags, /* I - Media flags */ cups_size_t *size) /* O - Media size information */ { _cups_media_db_t *nsize; /* Size for N */ pwg_media_t *pwg; /* PWG media name for size */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (size) memset(size, 0, sizeof(cups_size_t)); if (!http || !dest || !dinfo || n < 0 || !size) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Load media list as needed... */ if (flags & CUPS_MEDIA_FLAGS_READY) cups_update_ready(http, dinfo); if (!dinfo->cached_db || dinfo->cached_flags != flags) cups_create_cached(http, dinfo, flags); /* * Copy the size over and return... */ if ((nsize = (_cups_media_db_t *)cupsArrayIndex(dinfo->cached_db, n)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } if (nsize->key) strlcpy(size->media, nsize->key, sizeof(size->media)); else if (nsize->size_name) strlcpy(size->media, nsize->size_name, sizeof(size->media)); else if ((pwg = pwgMediaForSize(nsize->width, nsize->length)) != NULL) strlcpy(size->media, pwg->pwg, sizeof(size->media)); else { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } size->width = nsize->width; size->length = nsize->length; size->bottom = nsize->bottom; size->left = nsize->left; size->right = nsize->right; size->top = nsize->top; return (1); } /* * 'cupsGetDestMediaByName()' - Get media names, dimensions, and margins. * * The "media" string is a PWG media name. "Flags" provides some matching * guidance (multiple flags can be combined): * * CUPS_MEDIA_FLAGS_DEFAULT = find the closest size supported by the printer, * CUPS_MEDIA_FLAGS_BORDERLESS = find a borderless size, * CUPS_MEDIA_FLAGS_DUPLEX = find a size compatible with 2-sided printing, * CUPS_MEDIA_FLAGS_EXACT = find an exact match for the size, and * CUPS_MEDIA_FLAGS_READY = if the printer supports media sensing, find the * size amongst the "ready" media. * * The matching result (if any) is returned in the "cups_size_t" structure. * * Returns 1 when there is a match and 0 if there is not a match. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on match, 0 on failure */ cupsGetDestMediaByName( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *media, /* I - Media name */ unsigned flags, /* I - Media matching flags */ cups_size_t *size) /* O - Media size information */ { pwg_media_t *pwg; /* PWG media info */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (size) memset(size, 0, sizeof(cups_size_t)); if (!http || !dest || !dinfo || !media || !size) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Lookup the media size name... */ if ((pwg = pwgMediaForPWG(media)) == NULL) if ((pwg = pwgMediaForLegacy(media)) == NULL) { DEBUG_printf(("1cupsGetDestMediaByName: Unknown size '%s'.", media)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown media size name."), 1); return (0); } /* * Lookup the size... */ return (cups_get_media_db(http, dinfo, pwg, flags, size)); } /* * 'cupsGetDestMediaBySize()' - Get media names, dimensions, and margins. * * "Width" and "length" are the dimensions in hundredths of millimeters. * "Flags" provides some matching guidance (multiple flags can be combined): * * CUPS_MEDIA_FLAGS_DEFAULT = find the closest size supported by the printer, * CUPS_MEDIA_FLAGS_BORDERLESS = find a borderless size, * CUPS_MEDIA_FLAGS_DUPLEX = find a size compatible with 2-sided printing, * CUPS_MEDIA_FLAGS_EXACT = find an exact match for the size, and * CUPS_MEDIA_FLAGS_READY = if the printer supports media sensing, find the * size amongst the "ready" media. * * The matching result (if any) is returned in the "cups_size_t" structure. * * Returns 1 when there is a match and 0 if there is not a match. * * @since CUPS 1.6/macOS 10.8@ */ int /* O - 1 on match, 0 on failure */ cupsGetDestMediaBySize( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ int width, /* I - Media width in hundredths of * of millimeters */ int length, /* I - Media length in hundredths of * of millimeters */ unsigned flags, /* I - Media matching flags */ cups_size_t *size) /* O - Media size information */ { pwg_media_t *pwg; /* PWG media info */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (size) memset(size, 0, sizeof(cups_size_t)); if (!http || !dest || !dinfo || width <= 0 || length <= 0 || !size) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Lookup the media size name... */ if ((pwg = pwgMediaForSize(width, length)) == NULL) { DEBUG_printf(("1cupsGetDestMediaBySize: Invalid size %dx%d.", width, length)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Invalid media size."), 1); return (0); } /* * Lookup the size... */ return (cups_get_media_db(http, dinfo, pwg, flags, size)); } /* * 'cupsGetDestMediaCount()' - Get the number of sizes supported by a * destination. * * The @code flags@ parameter determines the set of media sizes that are * counted. For example, passing @code CUPS_MEDIA_FLAGS_BORDERLESS@ will return * the number of borderless sizes. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - Number of sizes */ cupsGetDestMediaCount( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags) /* I - Media flags */ { /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !dinfo) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Load media list as needed... */ if (flags & CUPS_MEDIA_FLAGS_READY) cups_update_ready(http, dinfo); if (!dinfo->cached_db || dinfo->cached_flags != flags) cups_create_cached(http, dinfo, flags); return (cupsArrayCount(dinfo->cached_db)); } /* * 'cupsGetDestMediaDefault()' - Get the default size for a destination. * * The @code flags@ parameter determines which default size is returned. For * example, passing @code CUPS_MEDIA_FLAGS_BORDERLESS@ will return the default * borderless size, typically US Letter or A4, but sometimes 4x6 photo media. * * @since CUPS 1.7/macOS 10.9@ */ int /* O - 1 on success, 0 on failure */ cupsGetDestMediaDefault( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags, /* I - Media flags */ cups_size_t *size) /* O - Media size information */ { const char *media; /* Default media size */ /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (size) memset(size, 0, sizeof(cups_size_t)); if (!http || !dest || !dinfo || !size) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Get the default media size, if any... */ if ((media = cupsGetOption("media", dest->num_options, dest->options)) == NULL) media = "na_letter_8.5x11in"; if (cupsGetDestMediaByName(http, dest, dinfo, media, flags, size)) return (1); if (strcmp(media, "na_letter_8.5x11in") && cupsGetDestMediaByName(http, dest, dinfo, "iso_a4_210x297mm", flags, size)) return (1); if (strcmp(media, "iso_a4_210x297mm") && cupsGetDestMediaByName(http, dest, dinfo, "na_letter_8.5x11in", flags, size)) return (1); if ((flags & CUPS_MEDIA_FLAGS_BORDERLESS) && cupsGetDestMediaByName(http, dest, dinfo, "na_index_4x6in", flags, size)) return (1); /* * Fall back to the first matching media size... */ return (cupsGetDestMediaByIndex(http, dest, dinfo, 0, flags, size)); } /* * 'cups_add_dconstres()' - Add a constraint or resolver to an array. */ static void cups_add_dconstres( cups_array_t *a, /* I - Array */ ipp_t *collection) /* I - Collection value */ { ipp_attribute_t *attr; /* Attribute */ _cups_dconstres_t *temp; /* Current constraint/resolver */ if ((attr = ippFindAttribute(collection, "resolver-name", IPP_TAG_NAME)) == NULL) return; if ((temp = calloc(1, sizeof(_cups_dconstres_t))) == NULL) return; temp->name = attr->values[0].string.text; temp->collection = collection; cupsArrayAdd(a, temp); } /* * 'cups_collection_contains()' - Check whether test collection is contained in the matching collection. */ static int /* O - 1 on a match, 0 on a non-match */ cups_collection_contains(ipp_t *test, /* I - Collection to test */ ipp_t *match) /* I - Matching values */ { int i, j, /* Looping vars */ mcount, /* Number of match values */ tcount; /* Number of test values */ ipp_attribute_t *tattr, /* Testing attribute */ *mattr; /* Matching attribute */ const char *tval; /* Testing string value */ for (mattr = ippFirstAttribute(match); mattr; mattr = ippNextAttribute(match)) { if ((tattr = ippFindAttribute(test, ippGetName(mattr), IPP_TAG_ZERO)) == NULL) return (0); tcount = ippGetCount(tattr); switch (ippGetValueTag(mattr)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : if (ippGetValueTag(tattr) != ippGetValueTag(mattr)) return (0); for (i = 0; i < tcount; i ++) { if (!ippContainsInteger(mattr, ippGetInteger(tattr, i))) return (0); } break; case IPP_TAG_RANGE : if (ippGetValueTag(tattr) != IPP_TAG_INTEGER) return (0); for (i = 0; i < tcount; i ++) { if (!ippContainsInteger(mattr, ippGetInteger(tattr, i))) return (0); } break; case IPP_TAG_BOOLEAN : if (ippGetValueTag(tattr) != IPP_TAG_BOOLEAN || ippGetBoolean(tattr, 0) != ippGetBoolean(mattr, 0)) return (0); break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : for (i = 0; i < tcount; i ++) { if ((tval = ippGetString(tattr, i, NULL)) == NULL || !ippContainsString(mattr, tval)) return (0); } break; case IPP_TAG_BEGIN_COLLECTION : for (i = 0; i < tcount; i ++) { ipp_t *tcol = ippGetCollection(tattr, i); /* Testing collection */ for (j = 0, mcount = ippGetCount(mattr); j < mcount; j ++) if (!cups_collection_contains(tcol, ippGetCollection(mattr, j))) return (0); } break; default : return (0); } } return (1); } /* * 'cups_collection_string()' - Convert an IPP collection to an option string. */ static size_t /* O - Number of bytes needed */ cups_collection_string( ipp_attribute_t *attr, /* I - Collection attribute */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of buffer */ { int i, j, /* Looping vars */ count, /* Number of collection values */ mcount; /* Number of member values */ ipp_t *col; /* Collection */ ipp_attribute_t *first, /* First member attribute */ *member; /* Member attribute */ char *bufptr, /* Pointer into buffer */ *bufend, /* End of buffer */ temp[100]; /* Temporary string */ const char *mptr; /* Pointer into member value */ int mlen; /* Length of octetString */ bufptr = buffer; bufend = buffer + bufsize - 1; for (i = 0, count = ippGetCount(attr); i < count; i ++) { col = ippGetCollection(attr, i); if (i) { if (bufptr < bufend) *bufptr++ = ','; else bufptr ++; } if (bufptr < bufend) *bufptr++ = '{'; else bufptr ++; for (member = first = ippFirstAttribute(col); member; member = ippNextAttribute(col)) { const char *mname = ippGetName(member); if (member != first) { if (bufptr < bufend) *bufptr++ = ' '; else bufptr ++; } if (ippGetValueTag(member) == IPP_TAG_BOOLEAN) { if (!ippGetBoolean(member, 0)) { if (bufptr < bufend) strlcpy(bufptr, "no", (size_t)(bufend - bufptr + 1)); bufptr += 2; } if (bufptr < bufend) strlcpy(bufptr, mname, (size_t)(bufend - bufptr + 1)); bufptr += strlen(mname); continue; } if (bufptr < bufend) strlcpy(bufptr, mname, (size_t)(bufend - bufptr + 1)); bufptr += strlen(mname); if (bufptr < bufend) *bufptr++ = '='; else bufptr ++; if (ippGetValueTag(member) == IPP_TAG_BEGIN_COLLECTION) { /* * Convert sub-collection... */ bufptr += cups_collection_string(member, bufptr, bufptr < bufend ? (size_t)(bufend - bufptr + 1) : 0); } else { /* * Convert simple type... */ for (j = 0, mcount = ippGetCount(member); j < mcount; j ++) { if (j) { if (bufptr < bufend) *bufptr++ = ','; else bufptr ++; } switch (ippGetValueTag(member)) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : bufptr += snprintf(bufptr, bufptr < bufend ? (size_t)(bufend - bufptr + 1) : 0, "%d", ippGetInteger(member, j)); break; case IPP_TAG_STRING : if (bufptr < bufend) *bufptr++ = '\"'; else bufptr ++; for (mptr = (const char *)ippGetOctetString(member, j, &mlen); mlen > 0; mlen --, mptr ++) { if (*mptr == '\"' || *mptr == '\\') { if (bufptr < bufend) *bufptr++ = '\\'; else bufptr ++; } if (bufptr < bufend) *bufptr++ = *mptr; else bufptr ++; } if (bufptr < bufend) *bufptr++ = '\"'; else bufptr ++; break; case IPP_TAG_DATE : { unsigned year; /* Year */ const ipp_uchar_t *date = ippGetDate(member, j); /* Date value */ year = (date[0] << 8) | date[1]; if (date[9] == 0 && date[10] == 0) snprintf(temp, sizeof(temp), "%04u-%02u-%02uT%02u:%02u:%02uZ", year, date[2], date[3], date[4], date[5], date[6]); else snprintf(temp, sizeof(temp), "%04u-%02u-%02uT%02u:%02u:%02u%c%02u%02u", year, date[2], date[3], date[4], date[5], date[6], date[8], date[9], date[10]); if (bufptr < bufend) strlcpy(bufptr, temp, (size_t)(bufend - bufptr + 1)); bufptr += strlen(temp); } break; case IPP_TAG_RESOLUTION : { int xres, /* Horizontal resolution */ yres; /* Vertical resolution */ ipp_res_t units; /* Resolution units */ xres = ippGetResolution(member, j, &yres, &units); if (xres == yres) snprintf(temp, sizeof(temp), "%d%s", xres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); else snprintf(temp, sizeof(temp), "%dx%d%s", xres, yres, units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); if (bufptr < bufend) strlcpy(bufptr, temp, (size_t)(bufend - bufptr + 1)); bufptr += strlen(temp); } break; case IPP_TAG_RANGE : { int lower, /* Lower bound */ upper; /* Upper bound */ lower = ippGetRange(member, j, &upper); snprintf(temp, sizeof(temp), "%d-%d", lower, upper); if (bufptr < bufend) strlcpy(bufptr, temp, (size_t)(bufend - bufptr + 1)); bufptr += strlen(temp); } break; case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : if (bufptr < bufend) *bufptr++ = '\"'; else bufptr ++; for (mptr = ippGetString(member, j, NULL); *mptr; mptr ++) { if (*mptr == '\"' || *mptr == '\\') { if (bufptr < bufend) *bufptr++ = '\\'; else bufptr ++; } if (bufptr < bufend) *bufptr++ = *mptr; else bufptr ++; } if (bufptr < bufend) *bufptr++ = '\"'; else bufptr ++; break; default : break; } } } } if (bufptr < bufend) *bufptr++ = '}'; else bufptr ++; } *bufptr = '\0'; return ((size_t)(bufptr - buffer + 1)); } /* * 'cups_compare_dconstres()' - Compare to resolver entries. */ static int /* O - Result of comparison */ cups_compare_dconstres( _cups_dconstres_t *a, /* I - First resolver */ _cups_dconstres_t *b) /* I - Second resolver */ { return (strcmp(a->name, b->name)); } /* * 'cups_compare_media_db()' - Compare two media entries. */ static int /* O - Result of comparison */ cups_compare_media_db( _cups_media_db_t *a, /* I - First media entries */ _cups_media_db_t *b) /* I - Second media entries */ { int result; /* Result of comparison */ if ((result = a->width - b->width) == 0) result = a->length - b->length; return (result); } /* * 'cups_copy_media_db()' - Copy a media entry. */ static _cups_media_db_t * /* O - New media entry */ cups_copy_media_db( _cups_media_db_t *mdb) /* I - Media entry to copy */ { _cups_media_db_t *temp; /* New media entry */ if ((temp = calloc(1, sizeof(_cups_media_db_t))) == NULL) return (NULL); if (mdb->color) temp->color = _cupsStrAlloc(mdb->color); if (mdb->key) temp->key = _cupsStrAlloc(mdb->key); if (mdb->info) temp->info = _cupsStrAlloc(mdb->info); if (mdb->size_name) temp->size_name = _cupsStrAlloc(mdb->size_name); if (mdb->source) temp->source = _cupsStrAlloc(mdb->source); if (mdb->type) temp->type = _cupsStrAlloc(mdb->type); temp->width = mdb->width; temp->length = mdb->length; temp->bottom = mdb->bottom; temp->left = mdb->left; temp->right = mdb->right; temp->top = mdb->top; return (temp); } /* * 'cups_create_cached()' - Create the media selection cache. */ static void cups_create_cached(http_t *http, /* I - Connection to destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags) /* I - Media selection flags */ { cups_array_t *db; /* Media database array to use */ _cups_media_db_t *mdb, /* Media database entry */ *first; /* First entry this size */ DEBUG_printf(("3cups_create_cached(http=%p, dinfo=%p, flags=%u)", (void *)http, (void *)dinfo, flags)); if (dinfo->cached_db) cupsArrayDelete(dinfo->cached_db); dinfo->cached_db = cupsArrayNew(NULL, NULL); dinfo->cached_flags = flags; if (flags & CUPS_MEDIA_FLAGS_READY) { DEBUG_puts("4cups_create_cached: ready media"); cups_update_ready(http, dinfo); db = dinfo->ready_db; } else { DEBUG_puts("4cups_create_cached: supported media"); if (!dinfo->media_db) cups_create_media_db(dinfo, CUPS_MEDIA_FLAGS_DEFAULT); db = dinfo->media_db; } for (mdb = (_cups_media_db_t *)cupsArrayFirst(db), first = mdb; mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { DEBUG_printf(("4cups_create_cached: %p key=\"%s\", type=\"%s\", %dx%d, B%d L%d R%d T%d", (void *)mdb, mdb->key, mdb->type, mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top)); if (flags & CUPS_MEDIA_FLAGS_BORDERLESS) { if (!mdb->left && !mdb->right && !mdb->top && !mdb->bottom) { DEBUG_printf(("4cups_create_cached: add %p", (void *)mdb)); cupsArrayAdd(dinfo->cached_db, mdb); } } else if (flags & CUPS_MEDIA_FLAGS_DUPLEX) { if (first->width != mdb->width || first->length != mdb->length) { DEBUG_printf(("4cups_create_cached: add %p", (void *)first)); cupsArrayAdd(dinfo->cached_db, first); first = mdb; } else if (mdb->left >= first->left && mdb->right >= first->right && mdb->top >= first->top && mdb->bottom >= first->bottom && (mdb->left != first->left || mdb->right != first->right || mdb->top != first->top || mdb->bottom != first->bottom)) first = mdb; } else { DEBUG_printf(("4cups_create_cached: add %p", (void *)mdb)); cupsArrayAdd(dinfo->cached_db, mdb); } } if (flags & CUPS_MEDIA_FLAGS_DUPLEX) { DEBUG_printf(("4cups_create_cached: add %p", (void *)first)); cupsArrayAdd(dinfo->cached_db, first); } } /* * 'cups_create_constraints()' - Create the constraints and resolvers arrays. */ static void cups_create_constraints( cups_dinfo_t *dinfo) /* I - Destination information */ { int i; /* Looping var */ ipp_attribute_t *attr; /* Attribute */ _ipp_value_t *val; /* Current value */ dinfo->constraints = cupsArrayNew3(NULL, NULL, NULL, 0, NULL, (cups_afree_func_t)free); dinfo->resolvers = cupsArrayNew3((cups_array_func_t)cups_compare_dconstres, NULL, NULL, 0, NULL, (cups_afree_func_t)free); if ((attr = ippFindAttribute(dinfo->attrs, "job-constraints-supported", IPP_TAG_BEGIN_COLLECTION)) != NULL) { for (i = attr->num_values, val = attr->values; i > 0; i --, val ++) cups_add_dconstres(dinfo->constraints, val->collection); } if ((attr = ippFindAttribute(dinfo->attrs, "job-resolvers-supported", IPP_TAG_BEGIN_COLLECTION)) != NULL) { for (i = attr->num_values, val = attr->values; i > 0; i --, val ++) cups_add_dconstres(dinfo->resolvers, val->collection); } } /* * 'cups_create_defaults()' - Create the -default option array. */ static void cups_create_defaults( cups_dinfo_t *dinfo) /* I - Destination information */ { ipp_attribute_t *attr; /* Current attribute */ char name[IPP_MAX_NAME + 1], /* Current name */ *nameptr, /* Pointer into current name */ value[2048]; /* Current value */ /* * Iterate through the printer attributes looking for xxx-default and adding * xxx=value to the defaults option array. */ for (attr = ippFirstAttribute(dinfo->attrs); attr; attr = ippNextAttribute(dinfo->attrs)) { if (!ippGetName(attr) || ippGetGroupTag(attr) != IPP_TAG_PRINTER) continue; strlcpy(name, ippGetName(attr), sizeof(name)); if ((nameptr = name + strlen(name) - 8) <= name || strcmp(nameptr, "-default")) continue; *nameptr = '\0'; if (ippGetValueTag(attr) == IPP_TAG_BEGIN_COLLECTION) { if (cups_collection_string(attr, value, sizeof(value)) >= sizeof(value)) continue; } else if (ippAttributeString(attr, value, sizeof(value)) >= sizeof(value)) continue; dinfo->num_defaults = cupsAddOption(name, value, dinfo->num_defaults, &dinfo->defaults); } } /* * 'cups_create_media_db()' - Create the media database. */ static void cups_create_media_db( cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags) /* I - Media flags */ { int i; /* Looping var */ _ipp_value_t *val; /* Current value */ ipp_attribute_t *media_col_db, /* media-col-database */ *media_attr, /* media-xxx */ *x_dimension, /* x-dimension */ *y_dimension; /* y-dimension */ pwg_media_t *pwg; /* PWG media info */ cups_array_t *db; /* New media database array */ _cups_media_db_t mdb; /* Media entry */ char media_key[256]; /* Synthesized media-key value */ db = cupsArrayNew3((cups_array_func_t)cups_compare_media_db, NULL, NULL, 0, (cups_acopy_func_t)cups_copy_media_db, (cups_afree_func_t)cups_free_media_db); if (flags == CUPS_MEDIA_FLAGS_READY) { dinfo->ready_db = db; media_col_db = ippFindAttribute(dinfo->ready_attrs, "media-col-ready", IPP_TAG_BEGIN_COLLECTION); media_attr = ippFindAttribute(dinfo->ready_attrs, "media-ready", IPP_TAG_ZERO); } else { dinfo->media_db = db; dinfo->min_size.width = INT_MAX; dinfo->min_size.length = INT_MAX; dinfo->max_size.width = 0; dinfo->max_size.length = 0; media_col_db = ippFindAttribute(dinfo->attrs, "media-col-database", IPP_TAG_BEGIN_COLLECTION); media_attr = ippFindAttribute(dinfo->attrs, "media-supported", IPP_TAG_ZERO); } if (media_col_db) { _ipp_value_t *custom = NULL; /* Custom size range value */ for (i = media_col_db->num_values, val = media_col_db->values; i > 0; i --, val ++) { memset(&mdb, 0, sizeof(mdb)); if ((media_attr = ippFindAttribute(val->collection, "media-size", IPP_TAG_BEGIN_COLLECTION)) != NULL) { ipp_t *media_size = media_attr->values[0].collection; /* media-size collection value */ if ((x_dimension = ippFindAttribute(media_size, "x-dimension", IPP_TAG_INTEGER)) != NULL && (y_dimension = ippFindAttribute(media_size, "y-dimension", IPP_TAG_INTEGER)) != NULL) { /* * Fixed size... */ mdb.width = x_dimension->values[0].integer; mdb.length = y_dimension->values[0].integer; } else if ((x_dimension = ippFindAttribute(media_size, "x-dimension", IPP_TAG_INTEGER)) != NULL && (y_dimension = ippFindAttribute(media_size, "y-dimension", IPP_TAG_RANGE)) != NULL) { /* * Roll limits... */ mdb.width = x_dimension->values[0].integer; mdb.length = y_dimension->values[0].range.upper; } else if (flags != CUPS_MEDIA_FLAGS_READY && (x_dimension = ippFindAttribute(media_size, "x-dimension", IPP_TAG_RANGE)) != NULL && (y_dimension = ippFindAttribute(media_size, "y-dimension", IPP_TAG_RANGE)) != NULL) { /* * Custom size range; save this as the custom size value with default * margins, then continue; we'll capture the real margins below... */ custom = val; dinfo->min_size.width = x_dimension->values[0].range.lower; dinfo->min_size.length = y_dimension->values[0].range.lower; dinfo->min_size.left = dinfo->min_size.right = 635; /* Default 1/4" side margins */ dinfo->min_size.top = dinfo->min_size.bottom = 1270; /* Default 1/2" top/bottom margins */ dinfo->max_size.width = x_dimension->values[0].range.upper; dinfo->max_size.length = y_dimension->values[0].range.upper; dinfo->max_size.left = dinfo->max_size.right = 635; /* Default 1/4" side margins */ dinfo->max_size.top = dinfo->max_size.bottom = 1270; /* Default 1/2" top/bottom margins */ continue; } } if ((media_attr = ippFindAttribute(val->collection, "media-color", IPP_TAG_ZERO)) != NULL && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) mdb.color = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-info", IPP_TAG_TEXT)) != NULL) mdb.info = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-key", IPP_TAG_ZERO)) != NULL && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) mdb.key = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-size-name", IPP_TAG_ZERO)) != NULL && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) mdb.size_name = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-source", IPP_TAG_ZERO)) != NULL && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) mdb.source = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-type", IPP_TAG_ZERO)) != NULL && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) mdb.type = media_attr->values[0].string.text; if ((media_attr = ippFindAttribute(val->collection, "media-bottom-margin", IPP_TAG_INTEGER)) != NULL) mdb.bottom = media_attr->values[0].integer; if ((media_attr = ippFindAttribute(val->collection, "media-left-margin", IPP_TAG_INTEGER)) != NULL) mdb.left = media_attr->values[0].integer; if ((media_attr = ippFindAttribute(val->collection, "media-right-margin", IPP_TAG_INTEGER)) != NULL) mdb.right = media_attr->values[0].integer; if ((media_attr = ippFindAttribute(val->collection, "media-top-margin", IPP_TAG_INTEGER)) != NULL) mdb.top = media_attr->values[0].integer; if (!mdb.key) { if (!mdb.size_name && (pwg = pwgMediaForSize(mdb.width, mdb.length)) != NULL) mdb.size_name = (char *)pwg->pwg; if (!mdb.size_name) { /* * Use a CUPS-specific identifier if we don't have a size name... */ if (flags & CUPS_MEDIA_FLAGS_READY) snprintf(media_key, sizeof(media_key), "cups-media-ready-%d", i + 1); else snprintf(media_key, sizeof(media_key), "cups-media-%d", i + 1); } else if (mdb.source) { /* * Generate key using size name, source, and type (if set)... */ if (mdb.type) snprintf(media_key, sizeof(media_key), "%s_%s_%s", mdb.size_name, mdb.source, mdb.type); else snprintf(media_key, sizeof(media_key), "%s_%s", mdb.size_name, mdb.source); } else if (mdb.type) { /* * Generate key using size name and type... */ snprintf(media_key, sizeof(media_key), "%s_%s", mdb.size_name, mdb.type); } else { /* * Key is just the size name... */ strlcpy(media_key, mdb.size_name, sizeof(media_key)); } /* * Append "_borderless" for borderless media... */ if (!mdb.bottom && !mdb.left && !mdb.right && !mdb.top) strlcat(media_key, "_borderless", sizeof(media_key)); mdb.key = media_key; } DEBUG_printf(("1cups_create_media_db: Adding media: key=\"%s\", width=%d, length=%d, source=\"%s\", type=\"%s\".", mdb.key, mdb.width, mdb.length, mdb.source, mdb.type)); cupsArrayAdd(db, &mdb); } if (custom) { if ((media_attr = ippFindAttribute(custom->collection, "media-bottom-margin", IPP_TAG_INTEGER)) != NULL) { dinfo->min_size.top = dinfo->max_size.top = media_attr->values[0].integer; } if ((media_attr = ippFindAttribute(custom->collection, "media-left-margin", IPP_TAG_INTEGER)) != NULL) { dinfo->min_size.left = dinfo->max_size.left = media_attr->values[0].integer; } if ((media_attr = ippFindAttribute(custom->collection, "media-right-margin", IPP_TAG_INTEGER)) != NULL) { dinfo->min_size.right = dinfo->max_size.right = media_attr->values[0].integer; } if ((media_attr = ippFindAttribute(custom->collection, "media-top-margin", IPP_TAG_INTEGER)) != NULL) { dinfo->min_size.top = dinfo->max_size.top = media_attr->values[0].integer; } } } else if (media_attr && (media_attr->value_tag == IPP_TAG_NAME || media_attr->value_tag == IPP_TAG_NAMELANG || media_attr->value_tag == IPP_TAG_KEYWORD)) { memset(&mdb, 0, sizeof(mdb)); mdb.left = mdb.right = 635; /* Default 1/4" side margins */ mdb.top = mdb.bottom = 1270; /* Default 1/2" top/bottom margins */ for (i = media_attr->num_values, val = media_attr->values; i > 0; i --, val ++) { if ((pwg = pwgMediaForPWG(val->string.text)) == NULL) if ((pwg = pwgMediaForLegacy(val->string.text)) == NULL) { DEBUG_printf(("3cups_create_media_db: Ignoring unknown size '%s'.", val->string.text)); continue; } mdb.width = pwg->width; mdb.length = pwg->length; if (flags != CUPS_MEDIA_FLAGS_READY && !strncmp(val->string.text, "custom_min_", 11)) { mdb.size_name = NULL; dinfo->min_size = mdb; } else if (flags != CUPS_MEDIA_FLAGS_READY && !strncmp(val->string.text, "custom_max_", 11)) { mdb.size_name = NULL; dinfo->max_size = mdb; } else { mdb.size_name = val->string.text; cupsArrayAdd(db, &mdb); } } } } /* * 'cups_free_media_cb()' - Free a media entry. */ static void cups_free_media_db( _cups_media_db_t *mdb) /* I - Media entry to free */ { if (mdb->color) _cupsStrFree(mdb->color); if (mdb->key) _cupsStrFree(mdb->key); if (mdb->info) _cupsStrFree(mdb->info); if (mdb->size_name) _cupsStrFree(mdb->size_name); if (mdb->source) _cupsStrFree(mdb->source); if (mdb->type) _cupsStrFree(mdb->type); free(mdb); } /* * 'cups_get_media_db()' - Lookup the media entry for a given size. */ static int /* O - 1 on match, 0 on failure */ cups_get_media_db(http_t *http, /* I - Connection to destination */ cups_dinfo_t *dinfo, /* I - Destination information */ pwg_media_t *pwg, /* I - PWG media info */ unsigned flags, /* I - Media matching flags */ cups_size_t *size) /* O - Media size/margin/name info */ { cups_array_t *db; /* Which media database to query */ _cups_media_db_t *mdb, /* Current media database entry */ *best = NULL, /* Best matching entry */ key; /* Search key */ /* * Create the media database as needed... */ if (flags & CUPS_MEDIA_FLAGS_READY) { cups_update_ready(http, dinfo); db = dinfo->ready_db; } else { if (!dinfo->media_db) cups_create_media_db(dinfo, CUPS_MEDIA_FLAGS_DEFAULT); db = dinfo->media_db; } /* * Find a match... */ memset(&key, 0, sizeof(key)); key.width = pwg->width; key.length = pwg->length; if ((mdb = cupsArrayFind(db, &key)) != NULL) { /* * Found an exact match, let's figure out the best margins for the flags * supplied... */ best = mdb; if (flags & CUPS_MEDIA_FLAGS_BORDERLESS) { /* * Look for the smallest margins... */ if (best->left != 0 || best->right != 0 || best->top != 0 || best->bottom != 0) { for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && !cups_compare_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->left <= best->left && mdb->right <= best->right && mdb->top <= best->top && mdb->bottom <= best->bottom) { best = mdb; if (mdb->left == 0 && mdb->right == 0 && mdb->bottom == 0 && mdb->top == 0) break; } } } /* * If we need an exact match, return no-match if the size is not * borderless. */ if ((flags & CUPS_MEDIA_FLAGS_EXACT) && (best->left || best->right || best->top || best->bottom)) return (0); } else if (flags & CUPS_MEDIA_FLAGS_DUPLEX) { /* * Look for the largest margins... */ for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && !cups_compare_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->left >= best->left && mdb->right >= best->right && mdb->top >= best->top && mdb->bottom >= best->bottom && (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top)) best = mdb; } } else { /* * Look for the smallest non-zero margins... */ for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && !cups_compare_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) && ((mdb->right > 0 && mdb->right <= best->right) || best->right == 0) && ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) && ((mdb->bottom > 0 && mdb->bottom <= best->bottom) || best->bottom == 0) && (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top)) best = mdb; } } } else if (flags & CUPS_MEDIA_FLAGS_EXACT) { /* * See if we can do this as a custom size... */ if (pwg->width < dinfo->min_size.width || pwg->width > dinfo->max_size.width || pwg->length < dinfo->min_size.length || pwg->length > dinfo->max_size.length) return (0); /* Out of range */ if ((flags & CUPS_MEDIA_FLAGS_BORDERLESS) && (dinfo->min_size.left > 0 || dinfo->min_size.right > 0 || dinfo->min_size.top > 0 || dinfo->min_size.bottom > 0)) return (0); /* Not borderless */ key.size_name = (char *)pwg->pwg; key.bottom = dinfo->min_size.bottom; key.left = dinfo->min_size.left; key.right = dinfo->min_size.right; key.top = dinfo->min_size.top; best = &key; } else if (pwg->width >= dinfo->min_size.width && pwg->width <= dinfo->max_size.width && pwg->length >= dinfo->min_size.length && pwg->length <= dinfo->max_size.length) { /* * Map to custom size... */ key.size_name = (char *)pwg->pwg; key.bottom = dinfo->min_size.bottom; key.left = dinfo->min_size.left; key.right = dinfo->min_size.right; key.top = dinfo->min_size.top; best = &key; } else { /* * Find a close size... */ for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) if (cups_is_close_media_db(mdb, &key)) break; if (!mdb) return (0); best = mdb; if (flags & CUPS_MEDIA_FLAGS_BORDERLESS) { /* * Look for the smallest margins... */ if (best->left != 0 || best->right != 0 || best->top != 0 || best->bottom != 0) { for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && cups_is_close_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->left <= best->left && mdb->right <= best->right && mdb->top <= best->top && mdb->bottom <= best->bottom && (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top)) { best = mdb; if (mdb->left == 0 && mdb->right == 0 && mdb->bottom == 0 && mdb->top == 0) break; } } } } else if (flags & CUPS_MEDIA_FLAGS_DUPLEX) { /* * Look for the largest margins... */ for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && cups_is_close_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->left >= best->left && mdb->right >= best->right && mdb->top >= best->top && mdb->bottom >= best->bottom && (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top)) best = mdb; } } else { /* * Look for the smallest non-zero margins... */ for (mdb = (_cups_media_db_t *)cupsArrayNext(db); mdb && cups_is_close_media_db(mdb, &key); mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) && ((mdb->right > 0 && mdb->right <= best->right) || best->right == 0) && ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) && ((mdb->bottom > 0 && mdb->bottom <= best->bottom) || best->bottom == 0) && (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top)) best = mdb; } } } /* * Return the matching size... */ if (best->key) strlcpy(size->media, best->key, sizeof(size->media)); else if (best->size_name) strlcpy(size->media, best->size_name, sizeof(size->media)); else if (pwg->pwg) strlcpy(size->media, pwg->pwg, sizeof(size->media)); else strlcpy(size->media, "unknown", sizeof(size->media)); size->width = best->width; size->length = best->length; size->bottom = best->bottom; size->left = best->left; size->right = best->right; size->top = best->top; return (1); } /* * 'cups_is_close_media_db()' - Compare two media entries to see if they are * close to the same size. * * Currently we use 5 points (from PostScript) as the matching range... */ static int /* O - 1 if the sizes are close */ cups_is_close_media_db( _cups_media_db_t *a, /* I - First media entries */ _cups_media_db_t *b) /* I - Second media entries */ { int dwidth, /* Difference in width */ dlength; /* Difference in length */ dwidth = a->width - b->width; dlength = a->length - b->length; return (dwidth >= -176 && dwidth <= 176 && dlength >= -176 && dlength <= 176); } /* * 'cups_test_constraints()' - Test constraints. */ static cups_array_t * /* O - Active constraints */ cups_test_constraints( cups_dinfo_t *dinfo, /* I - Destination information */ const char *new_option, /* I - Newly selected option */ const char *new_value, /* I - Newly selected value */ int num_options, /* I - Number of options */ cups_option_t *options, /* I - Options */ int *num_conflicts, /* O - Number of conflicting options */ cups_option_t **conflicts) /* O - Conflicting options */ { int i, /* Looping var */ count, /* Number of values */ match; /* Value matches? */ int num_matching; /* Number of matching options */ cups_option_t *matching; /* Matching options */ _cups_dconstres_t *c; /* Current constraint */ cups_array_t *active = NULL; /* Active constraints */ ipp_t *col; /* Collection value */ ipp_attribute_t *attr; /* Current attribute */ _ipp_value_t *attrval; /* Current attribute value */ const char *value; /* Current value */ char temp[1024]; /* Temporary string */ int int_value; /* Integer value */ int xres_value, /* Horizontal resolution */ yres_value; /* Vertical resolution */ ipp_res_t units_value; /* Resolution units */ for (c = (_cups_dconstres_t *)cupsArrayFirst(dinfo->constraints); c; c = (_cups_dconstres_t *)cupsArrayNext(dinfo->constraints)) { num_matching = 0; matching = NULL; for (attr = ippFirstAttribute(c->collection); attr; attr = ippNextAttribute(c->collection)) { /* * Get the value for the current attribute in the constraint... */ if (new_option && new_value && !strcmp(attr->name, new_option)) value = new_value; else if ((value = cupsGetOption(attr->name, num_options, options)) == NULL) value = cupsGetOption(attr->name, dinfo->num_defaults, dinfo->defaults); if (!value) { /* * Not set so this constraint does not apply... */ break; } match = 0; switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : int_value = atoi(value); for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (attrval->integer == int_value) { match = 1; break; } } break; case IPP_TAG_BOOLEAN : int_value = !strcmp(value, "true"); for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (attrval->boolean == int_value) { match = 1; break; } } break; case IPP_TAG_RANGE : int_value = atoi(value); for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (int_value >= attrval->range.lower && int_value <= attrval->range.upper) { match = 1; break; } } break; case IPP_TAG_RESOLUTION : if (sscanf(value, "%dx%d%15s", &xres_value, &yres_value, temp) != 3) { if (sscanf(value, "%d%15s", &xres_value, temp) != 2) break; yres_value = xres_value; } if (!strcmp(temp, "dpi")) units_value = IPP_RES_PER_INCH; else if (!strcmp(temp, "dpc") || !strcmp(temp, "dpcm")) units_value = IPP_RES_PER_CM; else break; for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (attrval->resolution.xres == xres_value && attrval->resolution.yres == yres_value && attrval->resolution.units == units_value) { match = 1; break; } } break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_MIMETYPE : case IPP_TAG_LANGUAGE : case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : for (i = attr->num_values, attrval = attr->values; i > 0; i --, attrval ++) { if (!strcmp(attrval->string.text, value)) { match = 1; break; } } break; case IPP_TAG_BEGIN_COLLECTION : col = ippNew(); _cupsEncodeOption(col, IPP_TAG_ZERO, NULL, ippGetName(attr), value); for (i = 0, count = ippGetCount(attr); i < count; i ++) { if (cups_collection_contains(col, ippGetCollection(attr, i))) { match = 1; break; } } ippDelete(col); break; default : break; } if (!match) break; num_matching = cupsAddOption(attr->name, value, num_matching, &matching); } if (!attr) { if (!active) active = cupsArrayNew(NULL, NULL); cupsArrayAdd(active, c); if (num_conflicts && conflicts) { cups_option_t *moption; /* Matching option */ for (i = num_matching, moption = matching; i > 0; i --, moption ++) *num_conflicts = cupsAddOption(moption->name, moption->value, *num_conflicts, conflicts); } } cupsFreeOptions(num_matching, matching); } return (active); } /* * 'cups_update_ready()' - Update xxx-ready attributes for the printer. */ static void cups_update_ready(http_t *http, /* I - Connection to destination */ cups_dinfo_t *dinfo) /* I - Destination information */ { ipp_t *request; /* Get-Printer-Attributes request */ static const char * const pattrs[] = /* Printer attributes we want */ { "finishings-col-ready", "finishings-ready", "job-finishings-col-ready", "job-finishings-ready", "media-col-ready", "media-ready" }; /* * Don't update more than once every 30 seconds... */ if ((time(NULL) - dinfo->ready_time) < _CUPS_MEDIA_READY_TTL) return; /* * Free any previous results... */ if (dinfo->cached_flags & CUPS_MEDIA_FLAGS_READY) { cupsArrayDelete(dinfo->cached_db); dinfo->cached_db = NULL; dinfo->cached_flags = CUPS_MEDIA_FLAGS_DEFAULT; } ippDelete(dinfo->ready_attrs); dinfo->ready_attrs = NULL; cupsArrayDelete(dinfo->ready_db); dinfo->ready_db = NULL; /* * Query the xxx-ready values... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, dinfo->version / 10, dinfo->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, dinfo->uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_CONST_TAG(IPP_TAG_KEYWORD), "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); dinfo->ready_attrs = cupsDoRequest(http, request, dinfo->resource); /* * Update the ready media database... */ cups_create_media_db(dinfo, CUPS_MEDIA_FLAGS_READY); /* * Update last lookup time and return... */ dinfo->ready_time = time(NULL); } cups-2.4.7/cups/dest-localization.c0000644000175000017500000003126314502571342017131 0ustar zdohnalzdohnal/* * Destination localization support for CUPS. * * Copyright © 2012-2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * Local functions... */ static void cups_create_localizations(http_t *http, cups_dinfo_t *dinfo); /* * 'cupsLocalizeDestMedia()' - Get the localized string for a destination media * size. * * The returned string is stored in the destination information and will become * invalid if the destination information is deleted. * * @since CUPS 2.0/macOS 10.10@ */ const char * /* O - Localized string */ cupsLocalizeDestMedia( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ unsigned flags, /* I - Media flags */ cups_size_t *size) /* I - Media size */ { cups_lang_t *lang; /* Standard localizations */ _cups_message_t key, /* Search key */ *match; /* Matching entry */ pwg_media_t *pwg; /* PWG media information */ cups_array_t *db; /* Media database */ _cups_media_db_t *mdb; /* Media database entry */ char lstr[1024], /* Localized size name */ temp[256]; /* Temporary string */ const char *lsize, /* Localized media size */ *lsource, /* Localized media source */ *ltype; /* Localized media type */ DEBUG_printf(("cupsLocalizeDestMedia(http=%p, dest=%p, dinfo=%p, flags=%x, size=%p(\"%s\"))", (void *)http, (void *)dest, (void *)dinfo, flags, (void *)size, size ? size->media : "(null)")); /* * Range check input... */ if (!http || !dest || !dinfo || !size) { DEBUG_puts("1cupsLocalizeDestMedia: Returning NULL."); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (NULL); } /* * Find the matching media database entry... */ if (flags & CUPS_MEDIA_FLAGS_READY) db = dinfo->ready_db; else db = dinfo->media_db; DEBUG_printf(("1cupsLocalizeDestMedia: size->media=\"%s\"", size->media)); for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->key && !strcmp(mdb->key, size->media)) break; else if (mdb->size_name && !strcmp(mdb->size_name, size->media)) break; } if (!mdb) { for (mdb = (_cups_media_db_t *)cupsArrayFirst(db); mdb; mdb = (_cups_media_db_t *)cupsArrayNext(db)) { if (mdb->width == size->width && mdb->length == size->length && mdb->bottom == size->bottom && mdb->left == size->left && mdb->right == size->right && mdb->top == size->top) break; } } /* * See if the localization is cached... */ lang = cupsLangDefault(); if (!dinfo->localizations) cups_create_localizations(http, dinfo); snprintf(temp, sizeof(temp), "media.%s", size->media); key.msg = temp; if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) { lsize = match->str; } else { /* * Not a media name, try a media-key name... */ snprintf(temp, sizeof(temp), "media-key.%s", size->media); if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) lsize = match->str; else lsize = NULL; } if (!lsize && (pwg = pwgMediaForSize(size->width, size->length)) != NULL && pwg->ppd) { /* * Get a standard localization... */ snprintf(temp, sizeof(temp), "media.%s", pwg->pwg); if ((lsize = _cupsLangString(lang, temp)) == temp) lsize = NULL; } if (!lsize) { /* * Make a dimensional localization... */ if ((size->width % 635) == 0 && (size->length % 635) == 0) { /* * Use inches since the size is a multiple of 1/4 inch. */ snprintf(temp, sizeof(temp), _cupsLangString(lang, _("%g x %g \"")), size->width / 2540.0, size->length / 2540.0); } else { /* * Use millimeters since the size is not a multiple of 1/4 inch. */ snprintf(temp, sizeof(temp), _cupsLangString(lang, _("%d x %d mm")), (size->width + 50) / 100, (size->length + 50) / 100); } lsize = temp; } if (mdb) { DEBUG_printf(("1cupsLocalizeDestMedia: MATCH mdb%p [key=\"%s\" size_name=\"%s\" source=\"%s\" type=\"%s\" width=%d length=%d B%d L%d R%d T%d]", (void *)mdb, mdb->key, mdb->size_name, mdb->source, mdb->type, mdb->width, mdb->length, mdb->bottom, mdb->left, mdb->right, mdb->top)); if ((lsource = cupsLocalizeDestValue(http, dest, dinfo, "media-source", mdb->source)) == mdb->source && mdb->source) lsource = _cupsLangString(lang, _("Other Tray")); if ((ltype = cupsLocalizeDestValue(http, dest, dinfo, "media-type", mdb->type)) == mdb->type && mdb->type) ltype = _cupsLangString(lang, _("Other Media")); } else { lsource = NULL; ltype = NULL; } if (!lsource && !ltype) { if (!size->bottom && !size->left && !size->right && !size->top) snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (Borderless)")), lsize); else strlcpy(lstr, lsize, sizeof(lstr)); } else if (!lsource) { if (!size->bottom && !size->left && !size->right && !size->top) snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (Borderless, %s)")), lsize, ltype); else snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (%s)")), lsize, ltype); } else if (!ltype) { if (!size->bottom && !size->left && !size->right && !size->top) snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (Borderless, %s)")), lsize, lsource); else snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (%s)")), lsize, lsource); } else { if (!size->bottom && !size->left && !size->right && !size->top) snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (Borderless, %s, %s)")), lsize, ltype, lsource); else snprintf(lstr, sizeof(lstr), _cupsLangString(lang, _("%s (%s, %s)")), lsize, ltype, lsource); } if ((match = (_cups_message_t *)calloc(1, sizeof(_cups_message_t))) == NULL) return (NULL); match->msg = strdup(size->media); match->str = strdup(lstr); cupsArrayAdd(dinfo->localizations, match); DEBUG_printf(("1cupsLocalizeDestMedia: Returning \"%s\".", match->str)); return (match->str); } /* * 'cupsLocalizeDestOption()' - Get the localized string for a destination * option. * * The returned string is stored in the destination information and will become * invalid if the destination information is deleted. * * @since CUPS 1.6/macOS 10.8@ */ const char * /* O - Localized string */ cupsLocalizeDestOption( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option) /* I - Option to localize */ { _cups_message_t key, /* Search key */ *match; /* Matching entry */ const char *localized; /* Localized string */ DEBUG_printf(("cupsLocalizeDestOption(http=%p, dest=%p, dinfo=%p, option=\"%s\")", (void *)http, (void *)dest, (void *)dinfo, option)); if (!http || !dest || !dinfo) return (option); if (!dinfo->localizations) cups_create_localizations(http, dinfo); key.msg = (char *)option; if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) return (match->str); else if ((localized = _cupsLangString(cupsLangDefault(), option)) != NULL) return (localized); else return (option); } /* * 'cupsLocalizeDestValue()' - Get the localized string for a destination * option+value pair. * * The returned string is stored in the destination information and will become * invalid if the destination information is deleted. * * @since CUPS 1.6/macOS 10.8@ */ const char * /* O - Localized string */ cupsLocalizeDestValue( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *dinfo, /* I - Destination information */ const char *option, /* I - Option to localize */ const char *value) /* I - Value to localize */ { _cups_message_t key, /* Search key */ *match; /* Matching entry */ char pair[256]; /* option.value pair */ const char *localized; /* Localized string */ DEBUG_printf(("cupsLocalizeDestValue(http=%p, dest=%p, dinfo=%p, option=\"%s\", value=\"%s\")", (void *)http, (void *)dest, (void *)dinfo, option, value)); if (!http || !dest || !dinfo) return (value); if (!strcmp(option, "media")) { pwg_media_t *media = pwgMediaForPWG(value); cups_size_t size; strlcpy(size.media, value, sizeof(size.media)); size.width = media ? media->width : 0; size.length = media ? media->length : 0; size.left = 0; size.right = 0; size.bottom = 0; size.top = 0; return (cupsLocalizeDestMedia(http, dest, dinfo, CUPS_MEDIA_FLAGS_DEFAULT, &size)); } if (!dinfo->localizations) cups_create_localizations(http, dinfo); snprintf(pair, sizeof(pair), "%s.%s", option, value); key.msg = pair; if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) return (match->str); else if ((localized = _cupsLangString(cupsLangDefault(), pair)) != NULL && strcmp(localized, pair)) return (localized); else return (value); } /* * 'cups_create_localizations()' - Create the localizations array for a * destination. */ static void cups_create_localizations( http_t *http, /* I - Connection to destination */ cups_dinfo_t *dinfo) /* I - Destination information */ { http_t *http2; /* Connection for strings file */ http_status_t status; /* Request status */ ipp_attribute_t *attr; /* "printer-strings-uri" attribute */ char scheme[32], /* URI scheme */ userpass[256], /* Username/password info */ hostname[256], /* Hostname */ resource[1024], /* Resource */ http_hostname[256], /* Hostname of connection */ tempfile[1024]; /* Temporary filename */ int port; /* Port number */ http_encryption_t encryption; /* Encryption to use */ cups_file_t *temp; /* Temporary file */ /* * See if there are any localizations... */ if ((attr = ippFindAttribute(dinfo->attrs, "printer-strings-uri", IPP_TAG_URI)) == NULL) { /* * Nope, create an empty message catalog... */ dinfo->localizations = _cupsMessageNew(NULL); DEBUG_puts("4cups_create_localizations: No printer-strings-uri (uri) value."); return; } /* * Pull apart the URI and determine whether we need to try a different * server... */ if (httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[0].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_STATUS_OK) { dinfo->localizations = _cupsMessageNew(NULL); DEBUG_printf(("4cups_create_localizations: Bad printer-strings-uri value \"%s\".", attr->values[0].string.text)); return; } httpGetHostname(http, http_hostname, sizeof(http_hostname)); if (!_cups_strcasecmp(http_hostname, hostname) && port == httpAddrPort(http->hostaddr)) { /* * Use the same connection... */ http2 = http; } else { /* * Connect to the alternate host... */ if (!strcmp(scheme, "https")) encryption = HTTP_ENCRYPTION_ALWAYS; else encryption = HTTP_ENCRYPTION_IF_REQUESTED; if ((http2 = httpConnect2(hostname, port, NULL, AF_UNSPEC, encryption, 1, 30000, NULL)) == NULL) { DEBUG_printf(("4cups_create_localizations: Unable to connect to " "%s:%d: %s", hostname, port, cupsLastErrorString())); return; } } /* * Get a temporary file... */ if ((temp = cupsTempFile2(tempfile, sizeof(tempfile))) == NULL) { DEBUG_printf(("4cups_create_localizations: Unable to create temporary " "file: %s", cupsLastErrorString())); if (http2 != http) httpClose(http2); return; } status = cupsGetFd(http2, resource, cupsFileNumber(temp)); cupsFileClose(temp); DEBUG_printf(("4cups_create_localizations: GET %s = %s", resource, httpStatus(status))); if (status == HTTP_STATUS_OK) { /* * Got the file, read it... */ dinfo->localizations = _cupsMessageLoad(tempfile, _CUPS_MESSAGE_STRINGS); } DEBUG_printf(("4cups_create_localizations: %d messages loaded.", cupsArrayCount(dinfo->localizations))); /* * Cleanup... */ unlink(tempfile); if (http2 != http) httpClose(http2); } cups-2.4.7/cups/dest-job.c0000644000175000017500000002663014502571342015215 0ustar zdohnalzdohnal/* * Destination job support for CUPS. * * Copyright 2012-2017 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" /* * 'cupsCancelDestJob()' - Cancel a job on a destination. * * The "job_id" is the number returned by cupsCreateDestJob. * * Returns @code IPP_STATUS_OK@ on success and * @code IPP_STATUS_ERROR_NOT_AUTHORIZED@ or * @code IPP_STATUS_ERROR_FORBIDDEN@ on failure. * * @since CUPS 1.6/macOS 10.8@ */ ipp_status_t /* O - Status of cancel operation */ cupsCancelDestJob(http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ int job_id) /* I - Job ID */ { cups_dinfo_t *info; /* Destination information */ if ((info = cupsCopyDestInfo(http, dest)) != NULL) { ipp_t *request; /* Cancel-Job request */ request = ippNewRequest(IPP_OP_CANCEL_JOB); ippSetVersion(request, info->version / 10, info->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, info->uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippDelete(cupsDoRequest(http, request, info->resource)); cupsFreeDestInfo(info); } return (cupsLastError()); } /* * 'cupsCloseDestJob()' - Close a job and start printing. * * Use when the last call to cupsStartDocument passed 0 for "last_document". * "job_id" is the job ID returned by cupsCreateDestJob. Returns @code IPP_STATUS_OK@ * on success. * * @since CUPS 1.6/macOS 10.8@ */ ipp_status_t /* O - IPP status code */ cupsCloseDestJob( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *info, /* I - Destination information */ int job_id) /* I - Job ID */ { int i; /* Looping var */ ipp_t *request = NULL;/* Close-Job/Send-Document request */ ipp_attribute_t *attr; /* operations-supported attribute */ DEBUG_printf(("cupsCloseDestJob(http=%p, dest=%p(%s/%s), info=%p, job_id=%d)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info, job_id)); /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !info || job_id <= 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); DEBUG_puts("1cupsCloseDestJob: Bad arguments."); return (IPP_STATUS_ERROR_INTERNAL); } /* * Build a Close-Job or empty Send-Document request... */ if ((attr = ippFindAttribute(info->attrs, "operations-supported", IPP_TAG_ENUM)) != NULL) { for (i = 0; i < attr->num_values; i ++) if (attr->values[i].integer == IPP_OP_CLOSE_JOB) { request = ippNewRequest(IPP_OP_CLOSE_JOB); break; } } if (!request) request = ippNewRequest(IPP_OP_SEND_DOCUMENT); if (!request) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOMEM), 0); DEBUG_puts("1cupsCloseDestJob: Unable to create Close-Job/Send-Document " "request."); return (IPP_STATUS_ERROR_INTERNAL); } ippSetVersion(request, info->version / 10, info->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, info->uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (ippGetOperation(request) == IPP_OP_SEND_DOCUMENT) ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1); /* * Send the request and return the status... */ ippDelete(cupsDoRequest(http, request, info->resource)); DEBUG_printf(("1cupsCloseDestJob: %s (%s)", ippErrorString(cupsLastError()), cupsLastErrorString())); return (cupsLastError()); } /* * 'cupsCreateDestJob()' - Create a job on a destination. * * Returns @code IPP_STATUS_OK@ or @code IPP_STATUS_OK_SUBST@ on success, saving the job ID * in the variable pointed to by "job_id". * * @since CUPS 1.6/macOS 10.8@ */ ipp_status_t /* O - IPP status code */ cupsCreateDestJob( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *info, /* I - Destination information */ int *job_id, /* O - Job ID or 0 on error */ const char *title, /* I - Job name */ int num_options, /* I - Number of job options */ cups_option_t *options) /* I - Job options */ { ipp_t *request, /* Create-Job request */ *response; /* Create-Job response */ ipp_attribute_t *attr; /* job-id attribute */ DEBUG_printf(("cupsCreateDestJob(http=%p, dest=%p(%s/%s), info=%p, " "job_id=%p, title=\"%s\", num_options=%d, options=%p)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info, (void *)job_id, title, num_options, (void *)options)); /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (job_id) *job_id = 0; if (!http || !dest || !info || !job_id) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); DEBUG_puts("1cupsCreateDestJob: Bad arguments."); return (IPP_STATUS_ERROR_INTERNAL); } /* * Build a Create-Job request... */ if ((request = ippNewRequest(IPP_OP_CREATE_JOB)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOMEM), 0); DEBUG_puts("1cupsCreateDestJob: Unable to create Create-Job request."); return (IPP_STATUS_ERROR_INTERNAL); } ippSetVersion(request, info->version / 10, info->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, info->uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (title) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, title); cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); cupsEncodeOptions2(request, num_options, options, IPP_TAG_SUBSCRIPTION); /* * Send the request and get the job-id... */ response = cupsDoRequest(http, request, info->resource); if ((attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) != NULL) { *job_id = attr->values[0].integer; DEBUG_printf(("1cupsCreateDestJob: job-id=%d", *job_id)); } ippDelete(response); /* * Return the status code from the Create-Job request... */ DEBUG_printf(("1cupsCreateDestJob: %s (%s)", ippErrorString(cupsLastError()), cupsLastErrorString())); return (cupsLastError()); } /* * 'cupsFinishDestDocument()' - Finish the current document. * * Returns @code IPP_STATUS_OK@ or @code IPP_STATUS_OK_SUBST@ on success. * * @since CUPS 1.6/macOS 10.8@ */ ipp_status_t /* O - Status of document submission */ cupsFinishDestDocument( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *info) /* I - Destination information */ { DEBUG_printf(("cupsFinishDestDocument(http=%p, dest=%p(%s/%s), info=%p)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info)); /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !info) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); DEBUG_puts("1cupsFinishDestDocument: Bad arguments."); return (IPP_STATUS_ERROR_INTERNAL); } /* * Get the response at the end of the document and return it... */ ippDelete(cupsGetResponse(http, info->resource)); DEBUG_printf(("1cupsFinishDestDocument: %s (%s)", ippErrorString(cupsLastError()), cupsLastErrorString())); return (cupsLastError()); } /* * 'cupsStartDestDocument()' - Start a new document. * * "job_id" is the job ID returned by cupsCreateDestJob. "docname" is the name * of the document/file being printed, "format" is the MIME media type for the * document (see CUPS_FORMAT_xxx constants), and "num_options" and "options" * are the options do be applied to the document. "last_document" should be 1 * if this is the last document to be submitted in the job. Returns * @code HTTP_CONTINUE@ on success. * * @since CUPS 1.6/macOS 10.8@ */ http_status_t /* O - Status of document creation */ cupsStartDestDocument( http_t *http, /* I - Connection to destination */ cups_dest_t *dest, /* I - Destination */ cups_dinfo_t *info, /* I - Destination information */ int job_id, /* I - Job ID */ const char *docname, /* I - Document name */ const char *format, /* I - Document format */ int num_options, /* I - Number of document options */ cups_option_t *options, /* I - Document options */ int last_document) /* I - 1 if this is the last document */ { ipp_t *request; /* Send-Document request */ http_status_t status; /* HTTP status */ DEBUG_printf(("cupsStartDestDocument(http=%p, dest=%p(%s/%s), info=%p, job_id=%d, docname=\"%s\", format=\"%s\", num_options=%d, options=%p, last_document=%d)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info, job_id, docname, format, num_options, (void *)options, last_document)); /* * Get the default connection as needed... */ if (!http) http = _cupsConnect(); /* * Range check input... */ if (!http || !dest || !info || job_id <= 0) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); DEBUG_puts("1cupsStartDestDocument: Bad arguments."); return (HTTP_STATUS_ERROR); } /* * Create a Send-Document request... */ if ((request = ippNewRequest(IPP_OP_SEND_DOCUMENT)) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(ENOMEM), 0); DEBUG_puts("1cupsStartDestDocument: Unable to create Send-Document " "request."); return (HTTP_STATUS_ERROR); } ippSetVersion(request, info->version / 10, info->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, info->uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); if (docname) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name", NULL, docname); if (format) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, format); ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", (char)last_document); cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); cupsEncodeOptions2(request, num_options, options, IPP_TAG_DOCUMENT); /* * Send and delete the request, then return the status... */ status = cupsSendRequest(http, request, info->resource, CUPS_LENGTH_VARIABLE); ippDelete(request); return (status); } cups-2.4.7/cups/debug.c0000644000175000017500000003251514502571342014573 0ustar zdohnalzdohnal/* * Debugging functions for CUPS. * * Copyright © 2008-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include "thread-private.h" #ifdef _WIN32 # include # include # include # define getpid (int)GetCurrentProcessId int /* O - 0 on success, -1 on failure */ _cups_gettimeofday(struct timeval *tv, /* I - Timeval struct */ void *tz) /* I - Timezone */ { struct _timeb timebuffer; /* Time buffer struct */ _ftime(&timebuffer); tv->tv_sec = (long)timebuffer.time; tv->tv_usec = timebuffer.millitm * 1000; return 0; } #else # include # include #endif /* _WIN32 */ #include #include #ifdef DEBUG /* * Globals... */ int _cups_debug_fd = -1; /* Debug log file descriptor */ int _cups_debug_level = 1; /* Log level (0 to 9) */ /* * Local globals... */ static regex_t *debug_filter = NULL; /* Filter expression for messages */ static int debug_init = 0; /* Did we initialize debugging? */ static _cups_mutex_t debug_init_mutex = _CUPS_MUTEX_INITIALIZER, /* Mutex to control initialization */ debug_log_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex to serialize log entries */ /* * 'debug_thread_id()' - Return an integer representing the current thread. */ static int /* O - Local thread ID */ debug_thread_id(void) { _cups_globals_t *cg = _cupsGlobals(); /* Global data */ return (cg->thread_id); } /* * '_cups_debug_printf()' - Write a formatted line to the log. */ void _cups_debug_printf(const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to arguments */ struct timeval curtime; /* Current time */ char buffer[2048]; /* Output buffer */ ssize_t bytes; /* Number of bytes in buffer */ int level; /* Log level in message */ /* * See if we need to do any logging... */ if (!debug_init) _cups_debug_set(getenv("CUPS_DEBUG_LOG"), getenv("CUPS_DEBUG_LEVEL"), getenv("CUPS_DEBUG_FILTER"), 0); if (_cups_debug_fd < 0) return; /* * Filter as needed... */ if (isdigit(format[0])) level = *format++ - '0'; else level = 0; if (level > _cups_debug_level) return; if (debug_filter) { int result; /* Filter result */ _cupsMutexLock(&debug_init_mutex); result = regexec(debug_filter, format, 0, NULL, 0); _cupsMutexUnlock(&debug_init_mutex); if (result) return; } /* * Format the message... */ gettimeofday(&curtime, NULL); snprintf(buffer, sizeof(buffer), "T%03d %02d:%02d:%02d.%03d ", debug_thread_id(), (int)((curtime.tv_sec / 3600) % 24), (int)((curtime.tv_sec / 60) % 60), (int)(curtime.tv_sec % 60), (int)(curtime.tv_usec / 1000)); va_start(ap, format); bytes = _cups_safe_vsnprintf(buffer + 19, sizeof(buffer) - 20, format, ap) + 19; va_end(ap); if ((size_t)bytes >= (sizeof(buffer) - 1)) { buffer[sizeof(buffer) - 2] = '\n'; bytes = sizeof(buffer) - 1; } else if (buffer[bytes - 1] != '\n') { buffer[bytes++] = '\n'; buffer[bytes] = '\0'; } /* * Write it out... */ _cupsMutexLock(&debug_log_mutex); write(_cups_debug_fd, buffer, (size_t)bytes); _cupsMutexUnlock(&debug_log_mutex); } /* * '_cups_debug_puts()' - Write a single line to the log. */ void _cups_debug_puts(const char *s) /* I - String to output */ { struct timeval curtime; /* Current time */ char buffer[2048]; /* Output buffer */ ssize_t bytes; /* Number of bytes in buffer */ int level; /* Log level in message */ /* * See if we need to do any logging... */ if (!debug_init) _cups_debug_set(getenv("CUPS_DEBUG_LOG"), getenv("CUPS_DEBUG_LEVEL"), getenv("CUPS_DEBUG_FILTER"), 0); if (_cups_debug_fd < 0) return; /* * Filter as needed... */ if (isdigit(s[0])) level = *s++ - '0'; else level = 0; if (level > _cups_debug_level) return; if (debug_filter) { int result; /* Filter result */ _cupsMutexLock(&debug_init_mutex); result = regexec(debug_filter, s, 0, NULL, 0); _cupsMutexUnlock(&debug_init_mutex); if (result) return; } /* * Format the message... */ gettimeofday(&curtime, NULL); bytes = snprintf(buffer, sizeof(buffer), "T%03d %02d:%02d:%02d.%03d %s", debug_thread_id(), (int)((curtime.tv_sec / 3600) % 24), (int)((curtime.tv_sec / 60) % 60), (int)(curtime.tv_sec % 60), (int)(curtime.tv_usec / 1000), s); if ((size_t)bytes >= (sizeof(buffer) - 1)) { buffer[sizeof(buffer) - 2] = '\n'; bytes = sizeof(buffer) - 1; } else if (buffer[bytes - 1] != '\n') { buffer[bytes++] = '\n'; buffer[bytes] = '\0'; } /* * Write it out... */ _cupsMutexLock(&debug_log_mutex); write(_cups_debug_fd, buffer, (size_t)bytes); _cupsMutexUnlock(&debug_log_mutex); } /* * '_cups_debug_set()' - Enable or disable debug logging. */ void _cups_debug_set(const char *logfile, /* I - Log file or NULL */ const char *level, /* I - Log level or NULL */ const char *filter, /* I - Filter string or NULL */ int force) /* I - Force initialization */ { _cupsMutexLock(&debug_init_mutex); if (!debug_init || force) { /* * Restore debug settings to defaults... */ if (_cups_debug_fd != -1) { close(_cups_debug_fd); _cups_debug_fd = -1; } if (debug_filter) { regfree((regex_t *)debug_filter); debug_filter = NULL; } _cups_debug_level = 1; /* * Open logs, set log levels, etc. */ if (!logfile) _cups_debug_fd = -1; else if (!strcmp(logfile, "-")) _cups_debug_fd = 2; else { char buffer[1024]; /* Filename buffer */ snprintf(buffer, sizeof(buffer), logfile, getpid()); if (buffer[0] == '+') _cups_debug_fd = open(buffer + 1, O_WRONLY | O_APPEND | O_CREAT, 0644); else _cups_debug_fd = open(buffer, O_WRONLY | O_TRUNC | O_CREAT, 0644); } if (level) _cups_debug_level = atoi(level); if (filter) { if ((debug_filter = (regex_t *)calloc(1, sizeof(regex_t))) == NULL) fputs("Unable to allocate memory for CUPS_DEBUG_FILTER - results not " "filtered!\n", stderr); else if (regcomp(debug_filter, filter, REG_EXTENDED)) { fputs("Bad regular expression in CUPS_DEBUG_FILTER - results not " "filtered!\n", stderr); free(debug_filter); debug_filter = NULL; } } debug_init = 1; } _cupsMutexUnlock(&debug_init_mutex); } #else /* * '_cups_debug_set()' - Enable or disable debug logging. */ void _cups_debug_set(const char *logfile, /* I - Log file or NULL */ const char *level, /* I - Log level or NULL */ const char *filter, /* I - Filter string or NULL */ int force) /* I - Force initialization */ { (void)logfile; (void)level; (void)filter; (void)force; } #endif /* DEBUG */ /* * '_cups_safe_vsnprintf()' - Format a string into a fixed size buffer, * quoting special characters. */ ssize_t /* O - Number of bytes formatted */ _cups_safe_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 */ { char *bufptr, /* Pointer to position in buffer */ *bufend, /* Pointer to end of buffer */ size, /* Size character (h, l, L) */ type; /* Format type character */ int width, /* Width of field */ prec; /* Number of characters of precision */ char tformat[100], /* Temporary format string for snprintf() */ *tptr, /* Pointer into temporary format */ temp[1024]; /* Buffer for formatted numbers */ char *s; /* Pointer to string */ ssize_t bytes; /* Total number of bytes needed */ if (!buffer || bufsize < 2 || !format) return (-1); /* * Loop through the format string, formatting as needed... */ bufptr = buffer; bufend = buffer + bufsize - 1; bytes = 0; while (*format) { if (*format == '%') { tptr = tformat; *tptr++ = *format++; if (*format == '%') { if (bufptr < bufend) *bufptr++ = *format; bytes ++; format ++; continue; } else if (strchr(" -+#\'", *format)) *tptr++ = *format++; if (*format == '*') { /* * Get width from argument... */ format ++; width = va_arg(ap, int); snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", width); tptr += strlen(tptr); } else { width = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; width = width * 10 + *format++ - '0'; } } if (*format == '.') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; format ++; if (*format == '*') { /* * Get precision from argument... */ format ++; prec = va_arg(ap, int); snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", prec); tptr += strlen(tptr); } else { prec = 0; while (isdigit(*format & 255)) { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; prec = prec * 10 + *format++ - '0'; } } } if (*format == 'l' && format[1] == 'l') { size = 'L'; if (tptr < (tformat + sizeof(tformat) - 2)) { *tptr++ = 'l'; *tptr++ = 'l'; } format += 2; } else if (*format == 'h' || *format == 'l' || *format == 'L') { if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; size = *format++; } else size = 0; if (!*format) break; if (tptr < (tformat + sizeof(tformat) - 1)) *tptr++ = *format; type = *format++; *tptr = '\0'; switch (type) { case 'E' : /* Floating point formats */ case 'G' : case 'e' : case 'f' : case 'g' : if ((size_t)(width + 2) > sizeof(temp)) break; snprintf(temp, sizeof(temp), tformat, va_arg(ap, double)); bytes += (int)strlen(temp); if (bufptr) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr += strlen(bufptr); } break; case 'B' : /* Integer formats */ case 'X' : case 'b' : case 'd' : case 'i' : case 'o' : case 'u' : case 'x' : if ((size_t)(width + 2) > sizeof(temp)) break; # ifdef HAVE_LONG_LONG if (size == 'L') snprintf(temp, sizeof(temp), tformat, va_arg(ap, long long)); else # endif /* HAVE_LONG_LONG */ if (size == 'l') snprintf(temp, sizeof(temp), tformat, va_arg(ap, long)); else snprintf(temp, sizeof(temp), tformat, va_arg(ap, int)); bytes += (int)strlen(temp); if (bufptr) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr += strlen(bufptr); } break; case 'p' : /* Pointer value */ if ((size_t)(width + 2) > sizeof(temp)) break; snprintf(temp, sizeof(temp), tformat, va_arg(ap, void *)); bytes += (int)strlen(temp); if (bufptr) { strlcpy(bufptr, temp, (size_t)(bufend - bufptr)); bufptr += strlen(bufptr); } break; case 'c' : /* Character or character array */ bytes += width; if (bufptr) { if (width <= 1) *bufptr++ = (char)va_arg(ap, int); else { if ((bufptr + width) > bufend) width = (int)(bufend - bufptr); memcpy(bufptr, va_arg(ap, char *), (size_t)width); bufptr += width; } } break; case 's' : /* String */ if ((s = va_arg(ap, char *)) == NULL) s = "(null)"; /* * Copy the C string, replacing control chars and \ with * C character escapes... */ for (bufend --; *s && bufptr < bufend; s ++) { if (*s == '\n') { *bufptr++ = '\\'; *bufptr++ = 'n'; bytes += 2; } else if (*s == '\r') { *bufptr++ = '\\'; *bufptr++ = 'r'; bytes += 2; } else if (*s == '\t') { *bufptr++ = '\\'; *bufptr++ = 't'; bytes += 2; } else if (*s == '\\') { *bufptr++ = '\\'; *bufptr++ = '\\'; bytes += 2; } else if (*s == '\'') { *bufptr++ = '\\'; *bufptr++ = '\''; bytes += 2; } else if (*s == '\"') { *bufptr++ = '\\'; *bufptr++ = '\"'; bytes += 2; } else if ((*s & 255) < ' ') { if ((bufptr + 2) >= bufend) break; *bufptr++ = '\\'; *bufptr++ = '0'; *bufptr++ = '0' + *s / 8; *bufptr++ = '0' + (*s & 7); bytes += 4; } else { *bufptr++ = *s; bytes ++; } } bufend ++; break; case 'n' : /* Output number of chars so far */ *(va_arg(ap, int *)) = (int)bytes; break; } } else { bytes ++; if (bufptr < bufend) *bufptr++ = *format; format ++; } } /* * Nul-terminate the string and return the number of characters needed. */ *bufptr = '\0'; return (bytes); } cups-2.4.7/cups/debug-private.h0000644000175000017500000000265614502571342016253 0ustar zdohnalzdohnal/* * Private debugging APIs for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_DEBUG_PRIVATE_H_ # define _CUPS_DEBUG_PRIVATE_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * The debug macros are used if you compile with DEBUG defined. * * Usage: * * DEBUG_set("logfile", "level", "filter", 1) * * The DEBUG_set macro allows an application to programmatically enable (or * disable) debug logging. The arguments correspond to the CUPS_DEBUG_LOG, * CUPS_DEBUG_LEVEL, and CUPS_DEBUG_FILTER environment variables. The 1 on the * end forces the values to override the environment. */ # ifdef DEBUG # define DEBUG_set(logfile,level,filter) _cups_debug_set(logfile,level,filter,1) # else # define DEBUG_set(logfile,level,filter) # endif /* DEBUG */ /* * Prototypes... */ extern void _cups_debug_set(const char *logfile, const char *level, const char *filter, int force) _CUPS_PRIVATE; # ifdef _WIN32 extern int _cups_gettimeofday(struct timeval *tv, void *tz) _CUPS_PRIVATE; # define gettimeofday(a,b) _cups_gettimeofday(a, b) # endif /* _WIN32 */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_DEBUG_PRIVATE_H_ */ cups-2.4.7/cups/debug-internal.h0000644000175000017500000000371014502571342016405 0ustar zdohnalzdohnal/* * Internal debugging macros for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_DEBUG_INTERNAL_H_ # define _CUPS_DEBUG_INTERNAL_H_ /* * Include necessary headers... */ # include "debug-private.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * The debug macros are used if you compile with DEBUG defined. * * Usage: * * DEBUG_puts("string") * DEBUG_printf(("format string", arg, arg, ...)); * * Note the extra parenthesis around the DEBUG_printf macro... * * Newlines are not required on the end of messages, as both add one when * writing the output. * * If the first character is a digit, then it represents the "log level" of the * message from 0 to 9. The default level is 1. The following defines the * current levels we use: * * 0 = public APIs, other than value accessor functions * 1 = return values for public APIs * 2 = public value accessor APIs, progress for public APIs * 3 = return values for value accessor APIs * 4 = private APIs, progress for value accessor APIs * 5 = return values for private APIs * 6 = progress for private APIs * 7 = static functions * 8 = return values for static functions * 9 = progress for static functions */ # ifdef DEBUG # define DEBUG_puts(x) _cups_debug_puts(x) # define DEBUG_printf(x) _cups_debug_printf x # else # define DEBUG_puts(x) # define DEBUG_printf(x) # endif /* DEBUG */ /* * Prototypes... */ # ifdef DEBUG extern int _cups_debug_fd _CUPS_INTERNAL; extern int _cups_debug_level _CUPS_INTERNAL; extern void _cups_debug_printf(const char *format, ...) _CUPS_FORMAT(1,2) _CUPS_INTERNAL; extern void _cups_debug_puts(const char *s) _CUPS_INTERNAL; # endif /* DEBUG */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_DEBUG_INTERNAL_H_ */ cups-2.4.7/cups/cupspm.png0000644000175000017500000043675714502571342015376 0ustar zdohnalzdohnalPNG  IHDRxQ"Ug=IDATxj+9reAx i彑<>~'B!B!g<<<}zyyyO<<<<<<<<ϟчn<<<<yyyyyoZ1=<<{u6<<<<_<<<B<<<<|A~}q-<<<<#nN<<<<;o< <<<GqadX֜s`&ND0fȩ頻o}3]^:]ַ><=?xTME9jEI% .c$ne޲KѦM/(L!)u D{҆ Uq&O?]t(,Qz%3UWHDEa\Q9iS1hujB_9Μh.C|nyycGx|9@Ѓ^JFD:{O͙#oYL }?_n]-XȤinAzaӟ&Kо\q6j梃y~%:K}uټ?_2Dzk֞ n}Xw+KyZ5DkȉEaaf<01&|Nꮻhf Ւ 1cZi/[4?EA@KPq=z?o,_hwTbL/x0 p~0ZZD׫ENN m|.jr -tb`GP rh+|Æ'5h9mj?>ɑ7Hk-fϩyA=sACoV<<ڲEC|Dkֈk?:0| iaAD$6{`Gծ$)Not!h{Uxɋk3H}l&x뇙 ~'# V:hp Pm=zD}ե }N B]Jx!]Fy6&xt?Az饠(:{`4@'G}յq9+A'C(+-~XODkZEdpu={ĠAQy_uN۶@0O^]x5R"=zDapuzđP{Cb~OŃ/L(lDUԉ6mThO ?Y o?hp}~_j}*4o /͇yO8[?Bm.N<=hxA qq~OG^b1AUx;v=/܃g4ÇEԜ92A'/!qc3+oߞRWSD6-|/܃g4z-[֭}z_ɫURD7SE~Ndm[ }L y9^ V:hp D[PPJqI&]DǎoFbCj<֭4@ /܃g4:RKUδ{ > ^|o~\|˖qK^-lp HqUǺ 5w.we)w4i1E  A$|yx4XAUACFѡCG+1f@t|2h81Y3*)6/B?7{`܃GА)Aq0{_կO|!fRo]-g<|C8я=hxA#hȔ yMWj, A!1awU9WsjۂpTX^{`̃GА)AݹĈD!6D;va~6"v"-ʇ1ھ H={`̃GАAA pB9TRgc~8""uh~ =hxA#hȸ z}WjjmTRzK?_͚%zHz1C^vZyS˖W^Qkкugs> yUQ|y2!5g=hxA;4@8\7?b`1}W'3[eeFDbx9sZ0J{M97_(It|qu D%%"+VR;k N<1M7o.Sŋinan|Ő!2"8 V:hpG_xI޵ע}ς&M2ÇuD۷yyW"[jE[* ӦMvzmKjѢdޣʙ3+.Lțn#{L=D"VSU؄wr_܃g4#AѦMANSE=n N.S+VСC:2'Go~^Ď#d"<:uT(R+WG&%i/(ucnHLe 6Dxе+=hxA#h-gKϞD}yT,+tD6APj4& ߮;V>xbJ*Q'b?Y NAysP#E-\߯grڴ 7|Q>= XJ|o݉Gߣ:"ĹlN>92^={[nIfL-1q"=hxA=$gu1|яy&owݕ}|hΝY$ 4<=ECKΪ]ŌK 1lX$\hgoGg~00vt0>D߼9ƌ}E~aԫ2h/K'lEhxiJ>ۧ=d޽5sɓ#4_de'Ծ(1IDw.^-^# R>h˓>T1pſ?Y / / ʛo`/gԜ%J-[hx{48?/+}Y'[ҨEE˧bw- |"٘aPa9^H\|s_:aN`^рR9߭㚭Tqq:l@3,.F?*K|yJK~AE;zhǎ[c6ԪU=hx /W4`TwݥJ}Ad%y5[;^3n+|0tH$D0x1>+K/2h-/xASрR_XHvi 3=Z3T0r$|0hfଳn/沊J# x7G\S#hA۶iW_yEU߻-1R5['_і-^ BxA^#^?N#4sѺunϿ?+0^ƷnMAyJNf1qfxǎ<%}oBxվ2hԨVoteCW̃[_hx*/{kC?mƍ+3<20X?<П Z|vz-\bDtª?Y Ͽ㥪|0`)vmkW0=86n'(wQAZrZ|Vc,9oSsu܃jm߮|Pƍ+izPu>q᝘_G\~fi'g4`~KuyeYGYҖnC/*<o1oߐ*0?g͋ɓ F'i~S};~ru+0^s^.ߪ?X2{6Uxڵ*WǼFL gɫE\(=~ݧ*? V:hpAKuyq͚…VQJX_^h N>1o5 3ϜOgoL۵SJG4X<} /رԚ5VQKj>C 4H Gz̧~qE hxAxںUsg;.ƍ+Qq{xE, 0<'v%#3~?$Sbd4xAxc*^=隭裏Oua,q5]#FpDƙ<}f(ɾ? 0Yv GL9+8,V2a.=hxAh?Ւ%,GSNwﮙKouO( i31.]4sٳ3'l:xPs)ϰg4?j^>fW/ԩCBhRoYڠ ޳f(hQ4X<} <- XGL}y0jhӦ4?4޽724K|Dg~yYU ՠ((PO>X{o ED+&{/(x?7pa^;wg>~̰{ūUV*6m/y|h`Eo|u*^!i\]+e&GwB|C9ti_G;wdŋ1_x['o8߳g#ՋRxc0x߲e'O|U;0<' +@ϋ(~ÆIƢT=]y^ee_sBnЮ!&c-ы)]4?S'8_jڳdIc,H`̗e2OsOd?d8n?hPrP:%O>C8w'߱#19^>|[ƣ 7Sh0!3B])6?p񑙯N oo%O>CzUC`&%o^40Ly|ыΗ|fQi;^}PRJ+~JJ#/y~Mh`E /%|>N}U+s9D)%[xm%O>C)4c>O>U2_E͔. ߞ/Z xBJ}Uta^۶>ɓ_VA@ÌGӦR|ƇE͔.h|ѱ-'[^xq7m/]*TD[ЫWc_Knb 0'=o?K6E͔.h|Yt/_.qGQZ%-_=v'sJ|k+cGK>h`E۴u%8(zX$X(Xl֞"x#ON"V[ Ty<%o^40Ly|Ηm3:\cg e˃s5t'K-0'߮J} '_40 ytы/[lk2~GO eɑq^׽J Owpק.2k%Oh𒢁fɃ ^4|v՚5bK!JRj)ߏfL~!Ovps=X 2_y['o5KCT`2~ȓQ}sEp|ppk%O>/o}ΊzH}%`y5k=h<_?ɯ!uO͓9F`||3䡋G/lgP.`}wU>N$e#J)dw!O>"t2 " FbVN0 y|_Y ~+3 3(*8TR6T{k˖u?Jv?q/Γ:K`|o`EC UW%K9џ%>wgȐ`0{s ƌ 'L'Mn%=;=O<~t)'QOٵ?WwË/X|o`ES4PT;^&7O'RfGq;ww57\*J0'/wۍZɓ_|3䡋7hc,3HRB0z۬ A) yĉ+k%O!]4QEEů:=|>Rf7~s:յÛnXy{3_+y['o}l]Rx|4wj+k%Oh`E7z@Qeqk.2EE(ßg4h <Vn6J<~|3䡋7h֭|o~~eRft7w:Ktua8OUT0_+ydE7n@Qq#ʕRN 6mP3 u.K};yK/ |Zɓ? fC ߈EE=ezA $z|Υˉ y%+E k%O͐/RY7KptRKBwUA GO>)Jok%OE͐. .Ov SLJ}קO]\VXp|+o뭙,g럊Yk>2/ы)^4EEv݄O/OKW0r$s9jJG 罝wXůje^ɣ 7Sh0?? `'_Q_8qb eTe$:!X7|ǎ+VE}x3vSPW e&mI>aS/9}"ױ0/ы)^4 ۭoH|&&`gU e›n{|ijK  پȓG/o~۬}|n#h"UTsxkWbEey'fC  Tm7hW[&~z)?5H'(<_QX`ey'^40Lytkԏ?G+*x)OU+/)פԪU6m,?䫈ES$o4B`jU^o`E|EEEơ5 6UD+k?j æȓG/oz׵kc!SC ϢRBtG&[y!o(8{7߬VV0f5stQїN1_cyg&EIX~ Ch0r> RtǺZCo<85KW_&_[ éS?(6o| R>1i+w2|{vw/RQ=tp)[C)8QR~v|ɧ/v~K^IO8A58@/^܈~& 3|[ލ éScq;t@|9~(Kȗ|zCn#N+90ף +*k&\x*1 'LXyCfy_"ʕoe@oMB[Yi<|>\۵j#_9(j v~CwW+0_3{Pqgpe+2 TrRQ4 n׮/;23&YG&+~;%:c&*v| _@#F4 Q2<1ɦ*(U,o͟v[0fLr~y?YANP않b˖y.^`Hkߢ菷dym#v?L!/T]4K&Ϭpફc .HIu!'ͺyݻ;t&05oD?XW_?qS~|os'O:wO:ӦYymn C1;@kP)bwapʔ !h<_B/8_ȓ'Ii"5k| NI<-R+W&wOk ϫkPid맷cc ΗɓƌkWR~ey00@q5wwA0{n ='-N`rh|!O'A>|o,ZD\y%E.6< ߼9~cc[o5Of*90#Gs|ыΗ#@#~-ʕpT mD -vyD>zA0W^L'dI+!=0܁h|!Otkx 7 ?lAVx]/DJx?|+_o#n+woXg&M [omEK y>?fWTğ|"ff|[oTQ$Rav|.\0֬)&~*93 '5?zRC.{oFhBWɫ#ITptX|납g 37N`-]??6V6~! <Y/l.|~!,woыΗ Iov;p*3 %Ygޛ6>JcE { @%7Cv"zt!j#7yکBA,(6m|3(V9N";!'BVꫯPG/8_לbE͊<"*~EJv?b _|A_|i{#FSɲ,AV4w.E ԩ)wov<2F 2_tF EK,Lo)6iR/'OdcǢ_4p)C68fǟ|Xg3_t>$]~y g3ߌhrAVs&ϫk4P/?T ?~B{AWovPf7i13/:t?AqGH ̷~fp'ۣ+!&MyC\^4p~Պ'͝+8?(/:ۈ{,[ a& =0DZ`7|x!=k/ ыίZp<[۫n;oߐ"4n&o㯐ץwsxw|ůf3&Mb.E-G/8jœF~4u׮̷~y*8ϥʉ..[WT+"/X`u *pqIwu|xmtyX _{ +2/L&h|NZB;[R?^Ubogu[D|r m[>ZQU+ί[o W8}:EWxuV*ܞ=o=_MY>CT{ V͛ǟ}&v)<֖˚|;[)_)O><詧Y̷VT 㙯=l\]'2ߚQb7_|8vܓ|׿Vql [m?zU[.#oС(c/;6{OS0a ?_UߟZoxVT/.y5\~9~,[r bI86?Eyp u<\50ݺ)MXL6w3_|^D]S]c[;NbK/e="Ŗ-aw/y')CWbΝG/y.{Aws`$T>WzLx ozlPZ,R8u**Hワ_yA?Mb^EC!O?(bǎ̷|jj%vE>WHuz]AV>z9T#ڶxk.%[Rr Vv{Je-ǍC h?g*_ѲeMopLۿyTc'~~L,v)Z/՚5b>(l5λ{ﭢHlQo_ļЋC|֜|k˻C.c)8E>6(nPWODJRq[nb^]?حUodSzP7ȓǏ-[ mS[y(UE/ o1oTcLCEE8cXAN8AZ*~2\=h^EC!OuWHg3͚s Qɋv\C$ypl]ym)|;/$I)U5dmZʏ?CN'h^EC!O>~5~{#G2M-C/iM^u:}bdp;wVk׊JQ^p%_w`wbyE RasN2~l䱯eP_|QAB/yȑKFby0-ʋJ'6%R{اW(l S :/c>ر?vT. h?WV{S6e"zQpΦt"ͥ$o?8ђ%RRA\uUE +MoG˗ >f/{V=mv}JXrKܼC|pb 3_jSFƑG&q `N_ģ\آE%%|w_Ahp|ׇ Θ $F\jY` ~*Ik~V_ `*ZUVf^pO\)_ɫqIjN<_;GK܊|7pqa*9!ԩ\ GE{ᗖ dH1BQ{,52oC+ |>u3௾hTH=H$+Ybc4E3Qc{ַo!W$B [K$:s _,h|ç!6>]ю߲2j(p4Z+d<=>SU*hm͕h4_RBm2~12K՚Q5p~s]v}L)r7t1J+~g5/Ndg|iw-.q7ۏR=СtH^K(B#P -o/-u>4vZ[/[7d^|1^awqKI4HMn':uR-5YӷNsOӬo}cߐYCLE.]Z*m `잾^;RJNh#GdJ"K.ӭN:UfQ3 _K.Jc/;w.>ME% hO"r^Zׇu;X0WnQK+'j<5$R>rtOG@>#F"Ȉ_$8>[=&y]GPVϗۯ,KMXLxGp]Hl ~<Ai+gaAKkj\zP+̑#T(EuWZ&[ˇq1#?E6e =(HxԆ aqP8Js _b$8>ρ_W_58jܓ//Ke8vwvOg%F@ #~EW[)/o}7 WHDx~hKQw4*-Y|bzjl=,iyNͿEq~H:X[}퓩C1N:ɼ*Gwޡ^l 6@ģ~N9X~4| &jkGjRTV _h,I>|mxx6hE+*~$GPė(K'<>p@ ׼bp[%R8yĝ4IDċ/# 9iG^~(Ÿh|=ZցbH~qcL:TGC>|6PYZVxuq-P| O?Zq~5@^W ѐ6wwc#}0ģ$~a歷"CE‡䗔~15>p 3M@` jz _bT4v|ڕJ9ǝ>ZP!k<ФbqX:Kg$mp&OV6 [Qx{gOW~<@I+^! ~U;cYj/9''A^J"uLzÇr /wJǷg1#ďQ*:wΛdzlrD|I{ɇoEʞGiWu _5CqRŗ 9᫽{?3fKf?eKf`xO˧\VuM/m $pŋ'|t7 sG]1CG"歷-Xn=>ƍm8K/,x‡m`o\|Iϧ_?pj}=>r Yc北' 3 lF0oQA|{9x ~|;c}=%Sr s2u"O~زeDFdǧ\Ä e`M{LH/T4r|y 1.1z)MZ$Q* 7N`Wxh5ugVRvzP^Q* :G"-Z xx~5.Wu1kÆ)'P:vDWP_<؝?$8_xiև1~vpؼRs{w}| 8tċH 6᫽zK.=`¼Zxiɇ{ _G?kfǁ@(:`ۏŬF.Z%xIh)P~ǎCI {xߺ|SN.-v󿀾~1LQ4J ҉]vqKyG :PSr"޷rÇ_Sc?<O-ttz%"$zٺ^\3Mc%?-?`NlԺB}|."̼Nf7z ?'[ϛǁ)hH>}{@n};w2]D&%QQ\>|bV2?_D0[H4cѼ68mn]`ozI~>|ڶm:[H?a㬳؊=fڳ'K'4k3fp VG>[?5g+WrP[K㢋ǝ;Wgv2|v3ÇWkWkq8q>@9p>m&et*/҉@?|WvQ@ oG9#g?o |[ϼj|9Ł3iX ߡC2z5~-~+(K"ٸAU9qLTWc>|dv|2 QG)aO! J7 |u=~<5|NGC>|GirP;%&[m ?[~f^|t1.-YA~a KutS\B痃"d?RWW O3`J uM0g"ѣ]t6yƅR 7Y|~isPYݧ-_f8)}Η_rP 9sOMᇼe-%W/:C#7dͳj_}=&a7hT?hg+P [7T4 ç4T|aO￿̹?!ix>şxnh3g^7߬F4.sg g[Y_y3gr33+P6-o>|_k;&>5ӝ?q>\?8W700ۦ",*Ţ,̷$p~ÆY#Y[->ԗ|m$|Qm}^bA ׹y=T~,ﻯALgҤdߓ̷Fw/64w端cjn=Jra̷C_~֣7u_;W]E'|~I/qHo gD+z̟T4—Wz(~_|R{o%)?ۛr |*̚%aҁYRO?|07 -mP_Ƙ3my]{':whÇ~yvO~ˁhƱnST>P{Q(>Bf_1/s Uvp<Ïhyy5G1Ӕv5g >|P׍H~5Zn%C1} -.~>|UU!1괿'*Ἇ'|eet'߼&ݟ~8GuHza㬳6Ç>m 㢋1cxqw\{8KH}yEt>Ji 79s&1Fs\ B}k//W8?ioti/ͳǎ5Z; Ç>|OP`a=h9ג%]|G9z Lf8?KQ$U_rI>|HDY}mJf^}6".l[ܙ:J3FCÇO=4FUΞMr AATA;)H>|vI./t]G /ͻ6N=U<8Q^.Ç_qy9>|һNiQ3,:}F~p,jLƘe+?r>ܼOn ;wl5z?s[n~~},Ylgf 5yļZ3WzP">|G􏼶O?di,]nQeVTD{x+lj~sOD?|M#m$4Ϛu UhvU;@jH >N;n1}ѮJ,lއ?j^ L}=%(1AEmԐ\?XSAOOzJ t=WWbU]EB`<>|çu MAo:?miQvH^<R*VZb e ]R]顈+yyyygϴ yyyy?^gn<<<@"?l<<<d"yyyyk)yyy3'Y=<<иovyyyy35<<<<_}N4Gm<<<<ŧU7K4<<<<[r綿FY<<<{yyyy,nyyyy MV<<<4"#7yyyy>~0<<< ,<<<<|<<<<-o3yyy<$I$IJ^a<<<Ÿkm5<<<{io<<<|6<t<<<Wyyyy#yyyy|m<<<<*z<<<>>>>>>o;kDO`Fk_ c~`y~ʬɆlŎ89 B]#<˼|8:xb;D}|c`nZ5ڑA",-g]6c[vchNl.n6<;ziCtRӜoٙ؂#~ʬFlNYl8b b {ygx؂EFForfecgY-[0Vc=6c;vgN.-`^lxxD䌌N&U[#i_1 4mX؂5;b ƅ\s/[0a$_2zx__epLɴ%$0 ?gb lnaé˥\`M>`%GC+>>S%9KIRɂ,ɏ`l\lسi ƙ\p2WyOY^EyMczؐۘ@$폡\ϋLxuI%>>~,s,dI2s3ZM*==]+72;,ˢìE;Ⱦ\ӌ}?k0jcfղɾ|>_o"Owsz.|N8``Gdd%<31XLWp5#Kߏ ThDÕ%3i>>>>>>>>^# S"YŘY2%2;s'r'2H˲5'ɻRl؂qWrgrGq{[06.`$ 2' 0=M)&MTOyA|@q:hY˟G6?Zs> ^InnVR0ewg3g5V(`,Zlhlaw.1!C|||||||||^BgiY^&O\.?g7.*r_Yz .dVf[1>>>>>>>Չ+.r-hes![Gcv<}S)/s(jYKA>~Or{ Q~Ď|@?>>>>>>>>^7.ʏ:yFѪg֣eYO||iaO~05rl9ttUT>>~_3YُGxӲ bSbF{W'feYbݡT!J4j7WkiO`ea-g|J7̤FYm9{EWҥa_IUCkSby̚~>'0؛Y[s0ze|@}|<3|dfֲŁ<g|eEfٺV|g||||||||tOa*3C+.WZo4|DZc%fU,#i?GտFZ4Yi`?ԲY('OF2#W~z D||m&?,e6M/^ ]0rrZhʏDUv=ܦ!=Z%9/A9( 'p?m^a?VU&>' tUnVٺlɇzO/v4T\~5>~U9OV߫q70T˲Gx}_euTF|W||||||||^(#c TVyڟq?ʬ sfFa\j؀ce|P?̪e}o'`-VmKW|||||||7{ϯ*?\ Z_q _g3G6Qa=oCW|||||||WyeZP_g Uy@ֲ.r .Yko?.N؄(sL3>>>>>>>}S%:3uMtI?O'kYfgO [|FHD6eQ5ʬʁKLh?SzOJUkYE+3 oO'QfaUz^dm'>>>>>>>^yM/*Н!̫eG/?'/NasW*u<fD?Yޕ(k뇨Wts?3в,i|DgS٢~+j׼&QFy}">#Uc1- 6NƓǏnNg+TĊ>>>>>~ UK >.UO?4ʬ-&T/W ai5P~^\ӌ#+>>>>>>?GRD!GꉏRCٖYdfֲ́<ϴO||YlDzj=.D W^?AU"}NKiL$n~pKU }N>a$Ix>o-мhQ~_[47{S$Iuy^yCX4o*G$I8:MyM/*/>ߏolH$I|wWQgk8%$ILn_)*E||=Ǫ29#DfJ$y^oqsO9J$r"+M1*>OҐ$Ig|w7NWV$I?]ᡬO }*>;ݯ*ד>+au{iT:g||ʃ.zr#>~ 6}ǯ*&}w]U&}wի5+H鳣}|-}|||||D =~&U>>UYKS@||L2?JU1>>3>>>>>>^YW/ZЏMm/bNWʖxKkSIw NǪAxբR|| 4I7ʦN9xidkTe g{ޤNkʟ4g||||||ĪOU}Iʉ}|r3>>>>>>^U_+>U+HR4g||||||=5[5߫]ώg||||||慇eT<.U_eU)>>)3>>>>>>^y=ǔY||},=~6Uy>>.UY+>>>>>>a*wD4kgQ6XgGK4m>*ER||ggk3>=~1 pT0zBLd?*>3Cg"43ah[o//4> zP^[6vrEy;nk.K.LN9#e])drCYcRg%Ydy昕ib ƩI1Fead@)*U:vhfilT~/~|_3{V^9X`kԶm۶m[9|\D7ջ`@lڶmD( Y,uUu7MhضLv\0^ǥq\iZ` u7 DB`K!Pzcǜp~*ęR^TJko~sk̝>8ܓ޿[cH3 `MmIP a :B 0n!Ki!#!BLJ9SjB+clZsn!\bxK#gίNjdڶay>_Gq!uB6)m1fs}!R)5VjT1sc.]9~6]1S:t[)`آo XۃU%@cQdRUls̼2 b jJ? lmB<-? " "qغ ˬ߿Zaj|n9ϙ̽'d,'Ktҟ-[e~|//Պ?"vz^`]^z[r<4ӏDErn둲r<D^zmPzD9 GQ.?_bzdHmqoE:>|>^BQf/#|QD)kwiN'(roo^ \2<(@(?(+~WND)OtEe"!B ·z^x=DӎzDyE3O'_A?Y#+L* I:!x Q&~z^PoWDy 4ӏX reEew xtC^'zx9^?(hD,D)(;L*oI:!xK%|(^뫯#"mh}? #O!W?OP#F"Ӳ^8}:̀}QC^(^OC?8롁~%ʖ;r '"Ӳn=Tҹ2:p>(^7PuC'^L? \2wu':8!'rz^OśFc~'h wͽȴv)<\=?KzbQ>s<,f_Ou)'//Eem=<?5ޟ$Tp>\z^t şw(S4ӏ<<r=l9lX0-˗Nl\vC~pz:Wj;O ʫ~ (QyYdZ#}!x(awz^O:O%~e읲9kDy68z^\Dz\9^ߞ(߄foCC~!#G읲92Fp>z~pW^5q E 'C~cǺ읲6tfCQ>·Kz=w/ewh)HgLw.>{[ƌ!UkD^iz$ꢯVx3 Gf9(rA+KRGγ x2QvC^-6-b'2 G(Q΄I͞Z:$Ro'Q|z*Q=z]D tD,XԷ |re8z^o˃nƽ^?(K~󈲜"W? Z&^ťwa-I[k%5|z+VRt/!L?Dmm/laz}7Vf=s C^-vN|b{~Q^@WQs^{_v-dg|zӲHV!^?(h|r8Q17qwZ92QDy+8z^oT9T!^߁(_foOo@~n'OL}3{wEqBσ^?^5q4Џ᷐fʔ Wo; ҙzSp>z^Hq6^Qvf(A~fӧMƑ25?OO·uz:: z^Qfѿ(GC~N&[;1~&8ֽ^z-)*Zh!ʕL?{r˗~!\w?|k?(sz^S=ҭ[UL(~ rl9lXf GVmwrk^z=-/oڸ{2(A~>BA:k^߽k4M۽^G "W?W3.|cw謳Hr5?M=pHz!6]^ Qvf(C~啗\R_7 /0t@ 9z^]av׿(G@3?@#ٳW+]gw r.8z^P`{DLH,\8m=4K<7^z}暫=m#L?rkTkX#ܓt UDz^멿T f G( W?'nR76%5ާIp>z^'}mzDG Q)HؽOqw˺uEQw{5G=|8z^O}{~*Q^ ?(B~%Y:ȼx^ߝqDS8z^STڒmzQDy4ӏx"W?e'_uz}]}|\G|8z^Ͽ3K;T^ߕ(_hD4&:5N8\]_w3reop>z^Cl^ׯ(?f'ʏ!W?ӧ x]w9Ők('^zRGz#4ӏDy d$u2z}wU'-k?L|z>4fږz(H0hLjr dg_|~x wHN5e8z^Oy$N׿(~')+VWnq۬eDz^קz^TϩDA_{^(~k2r!.cVy|+/$6VW^oO:\Pz}ʷ~_h"]L?rJ ҙp~ 7^}!,z밾> E=Q ·z^S\_Ӣ^F'~ӉσDtԨ~W?~'T?vf~d l RoPz}3Z^䭶z~$QAL?Dy-g1Q׳kίϟ`ܸޚZW֧nt\#Dz^p_EuE^ߝ(_fDB~ gkKͿ[/v衄ytƌn+Ig,)KcPz}ٰmzz#O~;B޸auSOwNy2ͯ?}:Dz^sK_LhA~?!Jrs8Q>z^xW"XwW S~!^݅ 7UoV|쳏}wW)oB[YʟX7|2鬃\b·z^OA}mz+;B3Jc!W??'Zv\O~gx6Ç&Ny_Xѽ o9{L[n)_;y>c p> ^zjGDħamzCDG(Q΀\|({lfÚ5O^p'SINo{WLIK:o\|z Tzq[J^(~wPՐRq{, `wfrc6~;6ZyJ~;H:5޷&w)zBz,AL?yDYy!Q:n_77^y#FEA7(olٿzu͔/7OjKCmlz^g0!TFןNǡ~!:9]1tٲ;M;`ȑr 3;7ܰ٬%{T|r x ·z^φM_nx}mz1DyE3'R=Qo9]wӃ>vc)'Oܹ?/#xp>^zAu~E%l$g~#~\KΘEV_sOr(=∷Ϛ[oV9S*n9 rr)8^z=jgYTOGeQ~ ߁(_\H͜/̛w'o#{mI~xqc7݊rgqz?t΁\}Qaz^3|(6yD Gk ” W?\wOk׾x 2^q%^v;{3raz^ӲOǢevyCs4ӏDr ʯ:]pĉ{l-9Ö[|)_~2G4ʽz𔊹G*5O&ʫ0z^~C_Bu\Ew K`  2kw 1wpZ<9N}霮g:ߑk]'~PDJODjov S DL<w:ꡳaz1b;ϻx߄(?χz^c _F`t}A"P'rDf;xGlz?s]xK܌l0FT%(5|{^4cd72SMD9JYRas5mZ\o~xE"cR~7QVχ/z^3}#Z'$Cgդ:#5P]vYSr|gi%R:fq٭gU%{%Kx>|Izh\{E0GPYDyT=_)ΦwgFJd5ָ:G撊o|,##%^zZ+.1`݈MS0| JsQz5yJ~Sj+ ' z%=^U!PjD>gC^/Bc*^xׯ,?(:w&mRLϟvZ _?'ټs=eP 6T9{6JKrx>z^D˵^}V#ʃPD-g{ f:aVDvhwwܲyFP%8$9JWPzKzZyݠ^_ QCz`(JճQ螘;GP"ʩ;$K*p3 J݈e|z%= !Q:!ʚPGIc:&gۄBҗΫ;o0K*wxEC>(?χz^_&z}}%uD>@z~Ef),X3vdRϪtZ# +ſ(3N=ϓg?(U7媫w&ND6X}C7kO2m.8h-sPd)kC^xmWzJbSD9 J;eJ3*)m3k`ϪbI{Pd(S^^QCz72(U"tYd>cX}.c_^rɠ6T=~;A~ QK|zOk-MWGB=RlL_~yd_:gWwiK*J=ƥB>(_χz^{ݹm_5@(Az=\)PK>̿`ro9ye#撊,zs+C^x2+[&Dԣ(AzYe' Kg1E6~sU_9!a|z-fz}Ueu(/R|(nAycC(:Cߡ%9{4y%zPz}E$CC"N=eO(UgrЖ[4~S;To6Tt.@m |oeg|zG%gz}}?(sN=8(UϛrƮƳFz}i(2#^=C32B,:(U5D~WT|s;Pd'yGzP6 ^Sb̃RNsؙha#ﳉ<z^bM7R$WHu ʻH9(_8IZ<[^k%ux?(χ=z^4r09Q~JS~|JճQ~Sx߉("y>z^E\:2r/N=CRz$ʽ]9[hzO?|R}]<z^׳g`h (BթGQ 0|RJ%hz;|N" (a^z}{MwgD ԣ( Bz~EkudT{"+x݆wz/݂r%$ԣ!AzA"6$u^?ou"kḛ{z^(] WGcN=ogW(Urܔ),kow}:^vۑGxw8χ{^/KthtӋ^_/"PGrg!Q.kQ]'O&oC~3Q޽^zڨD1k͑Ũ:_G"sT=eɡvo?^5$_C~.Q޽^? z}eQMSJ\9(>T-i.^z^M^ӉESTT݈sm&cMQn|րR} Qn#y>z^gBE_߂(?:"ʧIL?\q_3?Rg(5$a^z=>kD2;LUDWS~ Q"< CDy[Z3;^g_(28O<z^ȊZ/ 2S~] sQ7.X7J^'Pd( y^ ߹uYq]/zDԣDǡH=@6ؠ{Y{bT{~!%Pd(z^ :_'nPSD9xN^p=No'p^z6~ۼkhSLR(g ݃zqSx(z^y& {S_LN=O`(U5Dwg6^cM"L<z^OBE|^__LPr4c?^t" |p^ZgNJDTuD Js Qx陹Y0^*s?N|B^z}w~|ԣ?(RlKϙ}yGn|VR}M Wz^yy?5.J~+TDT=kon;׷ގVgs(2#Ox^;V1kS~|0|Rŋ== +^9^Pd(Šz^0,hiS~# L^k-G?4c e:hz^Y1/2S~i(AzF7٤+z;|."-D9V^z7mԽHE"iP=DYJ^j`l7J^3krhz^4({qKHSD J3(WomT{w$wC~*Qn_z劦h^_ǿ(Bz_ ʾP ҹ|LH}^rS_z>p˵&Rz$ (U1Dȉ'3Q-[|~EDhz^ ϖhx Iԣ(Cz^AΚ5fzꫭF>B*2'BWV^z^8%R/ߏ(:'"(Uˈ+fhA^b\YBǿ{z^QAI6DԩG,QEyycgک+gc(2޿G-`z^Z+~ MS~|Tgq 6&mf+x4)uz^%S:7#OIE깋(O6N:|" $9Fп^z=˽ ,_BM"Z=DTO琭riS# Pd_Ik`z^|WM"N={I*,# D9s4g1ծw_Dy3^zIBjZhGz}u(Az& 6ک;L>o"}:Q>#_z07rS-QΆ:J"ݡT=6ځ[n_(27#I+ڿ^z} C ޯ^__AN=(UD;󴍩HE8^z^jEwz}  QBS~1|΃RlC\t3OۘjGx;`dz^|<ߴA?(&թG QBz _6vڿ/X@H5^zrhDz} Q:O$;HEy(C)N>mc媫'ρ0z^YFNuE9|6^k-g1%0z^i\I]cIRz[PeM7uiSӧB>A~)Qz^^وe/ $ѯA{H=!S:󴍩棏&x?(oz^߬\~l^_(;Az'S"%ӧ;󴍩vuPdA/Fֿ^z=-,h^Hs(ԩGkR#]z'k;̙mL3vݕ|D*2'0z^ܸ^_J"3N=oeg(UD̙w@D#_zG]l^?xQuѿ(gAz6"ҙmL&NF~|z^$/W@?(:$uP'!eyk6ڿ\{-Epܝ #_zeٕz}.QuLO@z ʔIyTT(2&qz^,"Dחۗ.AI:vRz>A"kB~Q_z.2-zD-ԩGQ>E2QtSg1:6PdI_zj^/KO(ԩG+Q Ey7|Nag1վr;Oz^ ]t@ :PˈKRzn!ϥӧ;󴍩W|fB>Q~ z^ONw}35M(SN= Q$g6Q^{T=G3g:󴍩v{ϫI_{^zQzr ԩGl ٕ(Ϟ6ڱSHe^z)Q^?@Q:@"T=OW^'~6ۇf8kڴgϯvdx{r4ٿ^z=Kz@DyԩGNEyQUlAO\m5`v^msR}.Q.>z^D|bH?(!թG?(sH=$ǯֹs}&+[dա!x?( z^8KIz@NDԩGQs;Q: ^_wVLЕfEzFEDٿ^z=m|>2!~~Q~uGqֹs#z})߹yLeեPd@o_z}izDIuI/Cz^O"_~ͭ3ez^ߧ'"xB^?(|j'_HE9(<GSgѢy5Czs=l=K=4ބ3lz^+Ѹ zrԩG|VP3Ǟ.7Swŋ ? >ؚn⷗_^KO7a%z^i޷/W _o&PO g+_r}Y֬_fhs1bax;Hsx>z^߿ _tѽdo ePHoHo!-Yr~X_fڦ|=7,܄5?o$|zayݾJ>ΟC@z'P{Pg‹/ L?ڹyL?k޷fP=n +3Pz}e0mÉ!Rz2l+M;1qCz5{ۚbp_upV#$χz^4ź뛩~|ԣ(7AzL6,^܎ޫZ1y=MGU}M >ܹoš6|zb@/7$ʯHuџHAzE"ήxݿo,-= f,h=XϦPdI?<z^߳m}P/" AS~?|TDlc|Կ_rO:B= Zwg"ݡ~Q-;SCV[eosNz|[3TuGox<|χz^xIt_W/?K"}N=GHyT]r߇3%K=2ʄUWף{ߚN=WL('@^z=]_Jz@H3ԣ |&Az&W]=me.^|;C7Gs攭G_5òsN;ۡ~-Q."^z/Qďo$%Pw#q۠E2 R+f< Zo|x?(#9z^/7-{^? .Q@z%+H=':&l޶…n =d+G_:#jֿI R^z= jDӆޗ^? $Q>@SVE깍߯?n{+eֺ꫋S5C;kpnoE;Dzs,iDԩG5Q"|D>fhMz޼=6ݔ{u)[o[3ԬyIR}"Q"^z{Mb}YLCzV(Rr+^ѽĽ`sC`n@=~Go}[3T)l&*9z^yB V!:!HE깜(7tr~"nrgt|A"=sIⱛo_ 7Lxczg̨_G>@$JOz^Y7Ԉ5B(Z=](RLfU_źCvd΂YekR'O>|7:z^BkrD>[Bz7P}3^O{#=d7f^;瞻@[3xQs6?@"P|z^pFd6?GN=' P-/~.AUIkAfWXp%֯ ':4D`k_~s?ޯ"ʕP_8 y^OF^/Qzۉ2ԣ#|ֆRL ʃ7ؽ=Uu'L7e/ZT~sKt6|hƌXJ>oIDy z{,x(~bԡ{־z $ԣ(Az(ߟ;S`Gs9n=`uV8IJ7O^O>Wt;EyMAzo!P/efӳ`esYmU!Oy@}խ\'i=#4iQ4χzv8(p ?zǭznD*N=g'Cpw`Akq(i;I]xu^_ݡ.8ܖ_Va;3w& s{l)ť=7#֔Ν?:kVz ˌח-ɡbRRy?دCq8DyKpy[ՁapI7xcu9ކc\Ğq4bܩ6xn͜YL@mg* џp a[7r"WCK+vx9oUP4)H|1~ .ݍxb\bԨd|cD mB}=ZA8W.%:B [7__Tz9 )0o<V92!nOK^x\W\CC8cnړWC:P|q zhU: |8o<.wHOofp]{ŋ#B";пmSB#!ǍcZ 6BjoocPU-`#ȡ$Y7xΜ 9.cx<'\>}K X6_{l)(xk$eka!?'HJooq#)<( 7xA?B4xo[Bk#Vxbqm׮dz@BtQa|ng~Ϟ֕BRl}3xCʐzx1=2kM-׵W'ՀFANx' hy&7k C|1u\j .J'a  v<~|XMj#ٶ-'$1. )o !hY|u,Ys%^}ɫؼyL, &x9xG0x%=?K}{GN &ud NntRkֳ~IǥXߌ7ghS6t۶Up|ݺ?Oi[fg'C W!H|~_oS eS:Psx{8q2Z s9.-읊6is1Ν!La{:DyKmCORgr)eKƢ/۟]಑#uҶn]Ojc`+WekY(=7)nDbmp Ğ\>dfVmX~2Y]ݺ#Mڴd7EC!`'D+3[wW%K/.׳&UMOOCa܇xϔp`A4>FbgpVĞ)t J`EEUG[fӦ$[+VZ }/Bh[7>WiNRAי^Pc}mڴZF~Rp+rx+֙ wE-o"aUގXc|_\zĞqۑS ,PH]HLfB?WR)zxxず׮}1t jhdm`5qYڴulҒŨkE[?COC" x[x$lGs{oKo'Vr߂|hlv]qq4BĒqChMtzgx H[3֑I"yhFd[avT$^=bgyG# rI7W*h"| c|6.F<'ܭRjm.QqJZ*R~tZ*zX9y㟇cg#Ph%":vKa.,W;bNJJsDzm;0o`h{u35yF*eE9.Ui%pDmOC|wwk mH=wni59=zT(/W^&{͒޽ ^oqR!R -<$ZeW-x\> Si"D6cG2ʻ\J=ʼnZB5E׌3{w&jmK<(>BTx9~Np'<7~ҐH(1]j.5U}?a nLԏ"vLv)A=H \r=܊ uψ.ؽu_%"۾2+Δ%dEݻXj8J0V6rR|4xL;?=o?*H'M/!b{?Z={A͚o ,]k\.bt=|anQHo?>5~=5" Q#^ߌ7LC|b~+H}L\)Ӣ Fy0m[*5i˖ܱ#!As^oԒ Zn@^B@*OUǔ IƥQ=7ᒦmAe>ޕ'C^^I̟[@o1w ҇j[^Di}7Qz<ߟEƿ +u-$xm<3~]ը1uk}m-ᎶZibKAU^N~R:tp ,ao<"Q'xµKqi>xb6Z3`@%w4衎̓ȭjUkQ_4tPEmhu[ث~6 E.9c4ISp5xj1si;t역[Z3=Zo5kWct&"MS( <ƥbeH+*ސXB Rtu~XR--Ib=,MigTZ9Zs|Mkgjar|4Ps=@Nj@h6ϊ%T 35 &5ODh(?'x &B|E57&\Fl>+Oå{p`JIzhvB%D/HRoy&CU"W)B"W\njffkT4n}iSTtc.ի[Æ9T a ܃ }o9wݓ'4Wƫ7A#5_Anv2a c5.s#w1qbt~f_;f|-!;LY:]VҒ%ku F19Yx}?t&`>K{Cmۚ b>>p-ǯ8p\}P7kҏlۖ,15/.ZΝƎVXw]>UflҘG<Rze69&̄'ԃI}a 5tky>-ZP=:{ߦ?vV&h/M$F ~x z+]PxƟB.D&b!'%\e.>ѨфWњ%zug2ڸQK=>g׍/MBhZK7UFDy߁Z'둾x*0ABBOt=A8NܹZ134wL{K%iU~688dԩZH]3NH 'v9k=>;+d*(VOP*\سv jށ8{*-^zO)Z2@;kӦ>qi/m>kWݺ͛k%0uX4];Zi"vCZ׳~Jԟ]@ q$uKJچ}kakjqڵ-Dy@Őx!8!"^ B A“|n˗` S׭VdԞZ"An=ҥ!fEm4Y3vatI_W5--((l,ۑ_7r?K9"gxDpRis.O왌KM`^p;Δi-ח-ӰXhuqPψޖiL %iџ qi'xO#"jៈFʠ>"7is4u6mSMWƋoLnQKI:!?n٢|{%<|7x.$cqnL9ٍ ,\Ğ%_\CիZ-3fKAFXhƍժU5=US|/¥;8?R MX`6@ dd[O-p|/0/v ^/֍0U5^n?^jB }w?M[&77M0:5OK&{%8g0HT/Ps.OiK\+qjvq̚հv _]MV>Dw¥x5U^xhioH!W OWwyI݇'ji)M|܄&MJ4 ٯZCQgLiɝ:i6D2 Z /ncHBs堀9/x㓈 iM$j g>3'dR@hV B>y t'J76 EFkOMkպ}i,D¥?#Ő W ߂\?=U O;JƨѸ̓⬫]fMEL݃3gV,t!]7rP`tt;gO"\dFP3>D\d)jeֽdi qH]>EyywP7UF MH/Nfg`>Tc RW8]nOkdvVCΧ_m3A\$"m֝ԩ>꒮OHC4zpKF٭7d?QD (#H IDpޞ/Ö-(2Q(ל=Fm׬͐) BO s`\wW] 6CcB q>ǥ=5\ X0!sH'"T#JOi"8Pv]񍲪Ts{P׳$vD%&<%,x A8{o|G`3dcHy !ڀ'܈KZ<<έ\y`dz RKj@x^9Z&cْ߬޽/.~a_nȠx-Y]7> #?o| #"|ǐT@ĞR҂k>Yo7!K{رƃ>" AG(&+r>FB2[BkD ;̅jxV>BbdpT!"Zݦkz3Ң"mr'!Vݜ̓+Kj]$Ȓs"'=iB$j !)3?7 ĞytͦMoXܹwOH/ZJےum@Lՠ106ȽS[a$Uù~XAbdIOHUo81kX/3f\XZ+8X˒_@r'OF.䮐7( 8 ^Z¼ם;ozIfڪWLա􅱰6հ9 ߀o=.=o ,l@ܮGgʴQ'wXWJюZl0M Ԏږ?ޓ<Β ̋#Uy㍿i@$j yg .݉xbO..ǵhJJ_ӯ+.ZX(?_d4iҢvHL0a7r+)rlKyyO!O!!Jc$vG"< i- Рsf jY u٫^ UT,^O7@:g7'd%WH2OO\z(!Ox ?- m93|uӻvҪUzrr"F0Մ"(}ȻbOLqIb"x !m^鄧m۪O,Xp͘1 zRwy |, v`5KbY)>o<oCB|&yG}%Dkqm$z{>B-c=T@[@AjKAZo߻Im3HpJ`r< ֓o!VC4,:2a,<@bj':S+FK/^S3粑#guﮍ3teԔ 6Kb{IHʬ?\V]OR7"yD,=TťyqW1vrzIȬYMkp5KmjC[`1lEE3??K`i]3g^;6ÒOVX͒SRܒ <,!U,q x0Jƿjup x@=RWZu" F0 B{a lGGJrVg%D@=SbҵxzIze|% pQEa_;(n¥=ʆf F\#w&r9 v~y^TO" cgH|#r94'Exd,9^~-{LԪٿYE?p ~K++3O?qsdo_ED4X? ~D\ <'$V5ha ̃p܋<o߆髿OqN!)3^?EvC;h ⥺99Y=vq⋃q۟(6rС;wnأ–-#WWuZ4x"Dyp'pC=taL #H}okn25 )c n=܂t$~ʄ:&dڠR=.\@R8կ^}X%>qKؾ=\+ ?ɒ8^o{.>o ՉDMH-qU$z{^%a/ 5O=wƟ@je~l\⪦Nx{9A#?6 ?QEmڬ8I^_tY7S`~MF%brlrOnx?l"Q!6'SJB#`& F^B>G!fz#ͰYatD+Jfd+ VxCvCc4NxHo?ڳ5kzEeCNܹ]^^zZ߱ODsItDOy_SZ?0b_ACQ7x+'U 3Rwd~A.|ߏq yy a|hDoȃdcuȗH6IAsSܷVp ={>()ۆ ر>ҧos}^6&4Q׉:P"oXѱ^=T}xO㍯0O(rtx㍯8ҊHXBhȾx?" G5H)&@h $L/吋j+ x#FYDAxսG>}mZ74pd3/S\lJM[0TK톯tO~vXoaS٦~'?b(yhӍ?Ob5.̴8kTys td 9h$Z+ Z9mZlmMsَ7vXoZĦG0yÆۻw-5YzȆ,_N:imM'zـlmylԒ_/dvl`o0!Qp'?e拏I~_F&p  _'?;_&q8@Jaa7Fq1S^<"^QGô~q$M]F|N[b?a OohŅV;ulȿY,)ͣ&bH׮s饅o/SONc,Efl6 @# ]xm^_1o+ޮ3Ds%ȴ_$_i'D{e;ʖ[q b TV2ù&Jaò}"X,rӻC-?} .?W_]R<_SN!{t֪iS%mrYgfdaH3.kDR1抣D_'ّ|nYQ1pIFz喇<Ӣx^(~N+kDΓv"N'$6e/T$.ߒg#rU c"klyZ5?nAi4c*),AIFfGCõYgYSSfI'}9׉%C<kIs 0e qE7#'ďBU2q=Ɓ}f &` 3 E`^.ol jڴxYAϙEeS9لq-b=S<_^r!Du ),t=\-"OfL~_b<7b  9->L 2CLf%63;q8{}Xl]!GD̵bxyW2HhqO4j3FmMʆP ?7vB =7n\@+gm&9ᄫF.K.dV>vl{P,c,zI|%Xhr`"~'?k6 ϋgb\HWyL&p'0!t$jhOFp$s)7y)@,}n\<'a,Z޵ r:픙L២1c1N@g.s|+NV2AJOǎosΦd,>]~Mx>dOd3*ASc6\#qϦL9O%Қ߈eDQ%T9R1 V\Y`~8X"$ŸVm7$bN/$6dD~5.OX+R',vŕ\Be'XKc(KbMX)6S"G}P٦%`g|U/~z.~U͚e{Cꪒώ-ϞO&\Zr"bh+'{񒨂Z~OB16 ~WЁ[D?ynQM7bx?s&cGY$jَ]x*~/y"ߊ2C8.1Ti-VʻZ+S颯b4=~'x AoA׶mU l ;[m[Cc]CNz3ZD1h(('?kEt!LwUE'9xY<,8F]i"?Z:1}8I\.ng?2=$wo) "@#/rèUfv:HI7eHe(yJ#K)٠,B6eUr+:u:yȐ,sA6 BΞrL*DiKN1[UpFG2ԟ&O.(\Q5' q<ΊT;Mq)aIoZ,͞)LuLT=$xD\́Y޵iN2Ӌ, ie^:LgZљPS̞]8F-S>Uӧg;GdGٳy&*AVqrgg*_y+/+_{3FjRS!-fc[1r2:+3+(O~+׉D;y؋uњje}拇o 1dV~M؆ُc9g wbh?H+c8- ߰2ӔøWL(+-8wؔxLimF6_q[İ9ۑqO 9\DuSvy:+Ƨ"ɷ9؏53 Qx̌1N, Sp:G2Y$ZН!a"2G&UX#6&1&OOhޥg({pX-6=[D+ъyEU;vyUMoƌgO;mȑ#m]36o~FPRUʙgIt1r҂),_,CkffI('"W=xV'~@OQxilCxe8_?L$҅8qLJnA""dC'.2ӑxN4`e 2_b\-*3Hx -}{aN]ڴQ úwh}8qW4lK|9'b1Z9:U\-Z|gN123ɷ 1WDOXa2 xE<&(f 8LwO"Fpgp)3O<-/Dzl~oFDgZ1Xi'V5bq t">xJYF*-[>6qbܐ xdv_>tmU!}C뻘=۷W"}6'w fr2?}J ~<)~t#OV6Bp"RW\f"ԉ[MI /mmVd$.O::?!1iRLA(3øI|%a{x]L2#\1V<*Q%϶MVj" &t?=1-X1m'm9GlIEj͕Wf(?>bU_|Dyh%_'#)=,_!z*V˩T_%fR~f,4qǰ/;ЉDgWF1sJyI,+Ig/߈qRaZ2O(J}O+'J/a{}1<)4jo4jkj5g3y'޶u듇 „lUpי3_41c8},qC=ɓNھm[%29_%'-V/-<{lp6"LY;ߚ¦уy'qDRC'c9i,O-}&?{Ĺ ӏQ*VW[\L'8\#z)B/o8Y%@4zugoʨuъCDգG6mX}ʷq{:aݲM>ֹ(Z~JQ>rR$_^H{mmBogVyET0?&(6as S5w\}&2%`;#Gbc+JYq ;+39*8Bq6\-yJP2Y.~+Z*=ZclRԲ6oܸ.<9&ٳkO YM(9lٕDaVLaK&L&L?&L4Dߓ(X+D>?˹\4(F31Q2J~9]UIjؙS DlN,v1ef8hPB}ԉ,gŗ4Z5mz1l5KX!/{t6_;19ꮼSOӧeӦJ'~,첣 S_!VY'沭ēTSr'>&C1OY,CB1LEORjٖAϱtqŻb)$R<..lˡ\)&U'qTf0MOm?ŭb2ЌyMlf/JD]i _l̈́r;.w{췗]1{v`C͆Y FePz:,+D/oTԿ'_.XwDr1\Ns`@Pm9Ӹ#Vo[){pw~9ϊREن3Ocn?)tT:s|˻K-5rQ4.{>kVlKK&[zpg9QeG6sǞy`?Ǘ\m]DZ0Kԉw#'-RQ52qMLp2_~t?[";OUxIT*'ԖAKz;c\-n*բ)؇V*LwX![^Eٔ$fAL X-syI&nQ,Gyf7%s4KĢwn:{?_6ڴQom|N;>v업kVű+81{x![(%eُ63QmcǶiL‚ǎ3Z9Dwy"_<]@⊟Ek99EO?H ]ؙdf[yP2O~WĵK%{sSQ(E-@Bٛ[׍zZ-)5e*o#))֊y8dIΘma#`veʾp酏]TǑ~̶ȶӿn6TNP"NԱ~\lVN󒨦=C;kO~ z$3~bbC-t7L߉Jşy#QeFqxZC,!_$b2CinuF4X(JF<.Rth qݔvEJf4L4f7w&O6̶PϴnwQG}>u"IGu͇#(=PMJ1CcLlf<}_"?$_63O~ {I7R'inʡE\#O5"_S* ӞQ\&+Q))䫜[-hN2ПX&ʹ*kw_m/YictH>t < ^s|6ѵm[Oߎ>o'\0R%U"c Sh.'gVsh-cXDyىt|k 27NH'3q"!-\,?_%bk'xWa'[,>5;rh ^/Σ2Е|!b1V[d4 _\|qeGw^{I?搽P7vX*W&Dzx1md'"zN,=yPG7omGY%78Ob9bh'g.`oZ0=EV->3]̫bKiop$5P$VQ?DgQ%d8OiDL9͙xَO8i={oաYÆ=qߌ19 9+  ̥NTSX&MeSmFmĢ$?ɿO=x^='?_.׈tWaZ/آ_Вq<&Vo!?@~|QdXYR٣}W<1]pu:_YƁ}C}[FS/z 9iTe(Qot|S?_LFNx'Nfw09[xSaKoĭ-~>@G.cQ߬4a=Ʊ;j-eeUI'^}:vTtkC=ᄺ+R3ߩXLVNƳ*^ GxSA-\qN-L)?jLt?ORWq8mT QCCsefGb D);2W, hDN-U-6m-wiGM~َl_}{f̘llY!٢_tNcދY/Q254LMOG9$c6O~_g?9ٞۨ>O~_'Vq ;*I-rUVYtRf<[P(yB4|y?(Ή|C?/z(ݶ߾j2 י3:F6ڴ9er2DǑ/aq1Vٞ#)Db̴bO:7K1$)w 3̩Dm֬gSo=wءUӦꙚlYG3yrs6w(`2}arҎYbUK(Dǿb&IЈ\(`h+'DzHl'x@_9{KQee[|8moſi򎥐,Y} V۴jOFUd3)ϝvEcm[8x߱ɓNھm[%2o/'Lb1U-L&B]Ugo뾿ᶙeT7\R3ɯzCq/3*Loq/Ux@M3ef-~b4(]m|(ꩼK6Lcٞ;aJct~K/,nm_ǣ>jР6͚뒊|aWnJX~+\Nư^0gEU1^~&ַ,XwO~v:3ɯ&xV(0m؟)'EAhPva2b{h4N2+8 kΜW<ҵD4&סi,X׊cSVTi#||}?,[-4Hh=ZLm&t/D0BxAC:>Sbi7v{2}[lւITt(!Sh> ph%m4s ۄW u7?,zj7dy7?}G->=nxk>^Ik5tYhA-Zo뿭ZUB}UpB) C?Nҡn]JI}xH&̃(!?5x*܏Qןp zn>E Y*Lěo*S,xrDJSX | nU5W_=ի{S+"QJFDH#!(/}A^o/V|aooǨ-PcWT Lk N: 4zBP1==us2\Awu.kբ4P(QǍ^K. [}eEaqo~mh8gX|̯ J|?GӠ 1MifMɿ? e/ڷ/g4#u^/dbt`S(PQ|?43( \>_ѳ6 )I t,ʆBW>W h; h:Ac-32m5dOvnv6yr)% = P.J+=wH?.6!['dIaj#1GqF"t%TgpX[I'y_RD\@|z &C |j ׶kȰaMߡM#5v={z&nGRN8×3^h [Ob#|C*tY#1`Q;<6 NL) 3OTo#></ ߨy]uƌWߢ?~6ĉ VԂ <(QϗCv3Jd .6 [o'\-cQ? xdFhLS/Q.<^ ) PTSG/M'R8x*t@3h 47gfС#F>s^?Mr?vJ)Ix#G ukϡZx? z|M4X?>HhT0A}1p4ʄQAgVoB9KT=B5kvt|;`̧{O X #5a:,O^{'3m`<<ߢ|aB/ԁ`'*{0T(+06&qW:uz=OxĽDx$qḦ́TJv8 > O9<:|o@H{X,ϲ@24 35*}"5?n4*Kkx7!ʛ{OhT7T|s^9s\bp8H nI 9(/􀯓f}RFs= 7hG]`yO[#'nnTMZ?8bD9($FO@|؁V2QJ1]< {uGA/\8MbE_ <AW*HOA}l4J|鐎`*|}`ԇka%چNBypK;؏]ĎuE6R42UogAQp3@ɶ>\ړ(DߢUd7_0^+} <.;`!|ͷyh+ZCѨZݺ4r~ i7o- Ua:G- %~5.[ͧ0l QB替u#mcdy&7z̀ i!(cqtS~tDoiR9g@h !hR_5Ђ狿W^fӉ>pD }4@&“h*AO‡htjԸGso:bPٳ/k҄?C<U !%RC^ѢE ?$oLH pBg]A;OPͷ'?up,P0*`315kNѣ.\?81k2RS>a=J}(.EO;RGoohYdy?` ʂZLMȂ`=: cМRSFxCCkJ͇T}|E!PXG u'jպWnآE̘҆ѭAO]xog\8jaxl}3"7(~Eד7ͨi!3@~B=?Inp'~1RV# Q6*/aG)C=\E^ !PhD?zMIڵ[n9yE+!,VZ2xpZJ Q& = 5`؍os~!T]T' ~Bg{0B|!\3t O&R:?_,"Ҵ_{ Jy,/T{94'mԹOwnj9xq#PiYLP.g4@bϷoPO^Fv>-d\w $# }? /]pY硯Ch4g2/̀y" 62F,-z{P Eeu#`-ghh[wj߾{6uލ/+W?E"(Q4R:1G`PX|"\LR|C Cg:}>n6oEi.ʫ?o#JbD~C\@=ezt֡~ұ^]ѸqK[K E~(s"25T/ox-.@^EnCR$7+GZ }Vu `!@yMD۟yD~I 7EtQ]aJXYA@pt_2~|^h\֣o}e*8=P_7W_P!QfP]<2~˳|yttTD&SG(@A\ L=Mp M`\XYg eA|CR f~„K⧓'7^h wxa< d>>5_¤Z@wAdyz'h1j3a(,Aq.RhNNB7ş(>E[Rõ&T!@K C&!{Æsbĉ˖]j~=2Y~>NE![̧KYt|Ϳ݀GZ,H|zL:eD5 h-@h 0/KC8yE52.o|:,p?bFԳQs%7Oth8ŇUM:zH*";_J߈W-Oa{a76GZ{zͅPi7Z9:F |F"E~Ӓ67 hexCv?6|in:nxtB4 O@>J㛋VLp)o+4}!|g"o~!zA=<Ϡ/h4g2r o(}QTLԀW~nE'C1yȀ^0^C9yp+zMa<<PAp4$fAH!Ȅp%mBKX|i>|y=FH3| 4{&lyWTL+ oYj>F9pYJl(6䠆pA3[q Jeau[|+墠iq ]HFC$݇LΠQx Ysᯇ?5|p# kP.$p>'a ZF@=| !::C!+˿.vouȄ0C4xG*^Ȃ|4&\\ ."7Ϡ;i ɧegR3(c~=.5&AcA::Ыh2$id8^;PW@GEdyO=Ӣ2#7,#;|`3ua,Mv>F P:$N|,idG CSOoM/*t%: (5i0N@9q<<'|sPo@!/mh'ZBk|&zxb{h6 p "Vĥ xJFCPY*: uDg-?I;$Cϣxʽ?߂i>ap io'?*W?޽6 W@E| p D/d@\Xda5.@W+\d#ϡ/-zF_ց X@ch$%dq. YRg4~o^QO<B4E7B|\m|O IPӖVGdp1 j no==D%C',Hn\/iA/QC<vXw2=!i`Dg替>Ѥ1VÅVDoPxb_0[\l>/L_:q4څ?O `'ZBUʍGɐ[!^; 7,.Aw,-oh!d$EaZA|\ad'|ʛpD^"Ηxŏs3-CͰyh%*L Q2+/TP>Ai>pr|\|7?#U`:ޟ| =nNBg Ϣ]OGK$RFCJ|N^ x Ysr7/P/< @s>@ `0TgXOPW;ޟ1n %vPw{T^1/eRL7(44ڌQ jf?O"|q^_^D H?؉CߠGhT0^C9ȗ,'bj0XDyP}!~nxn>tw(1z[֡+y}s ^CI4/Te(žO`y3aZt|7$Zp`_$D3rgM ڎ@l7߱PuGQi PbqC:<5:[m:\kaE`:agP/ ?_7YS%?m|ρ[H%XKag*ljq y~k"b* |(1?ve"؀_o#^h !_V\<,OqO8^ooG v0Gߡ|W$} ,r?Hilt|脋:=C 1h^Hp,OpYS,KeԈ&d}h=:8>Nb!^{|߃ :X(y$=p%qG3"otW(ײ t J;^?@ &#7v\< %zhoԗX }a:B8>Nb<3k4=^C+tl~xY[-uk'WQ} v"3>;p0<'v_T*jLn+/Oq}xqQ)%~R _BpBezAev#;^E4wAx< xYs+[ w7|h DaQi>N<w'4?'Q⚹y>q%Joi-AWZZXwx - 01.\<,O q7=PR I=: I8>Nb<7pѯ4ُ:L運/Q NY6(7} /tϐn\<۟+9W_7Ԃm@GQ2i>N<w..,e53!|z -_Y)&ڋ8sеx2A`yſ#?zKqoq,O\M{p}| Oـ.'~O/\||40zf_ցg.0Vx:؃,`b-<ͧ ?ĕo.dyB/QP{q}v7 >J|q775?C56\u^oFB 1b <ͧXT|#*dƏo򌥟 Q?H"xh0K%c-Pҡ4C )u. ڝ73 M AEJo\| v_*e*@X*<cBXQ@1*.V#|.!.7|;b'؆- dyOoW{0|M򌥏w4.Rg|B wb Ϗ`Q1y.Q"cL\,Ga zoq򌥏 w;QpfT.7?eRL7^T5't^OYX,O/p[o~8 xNɬC1݃mbx7?}D7B}/p /TYH|̟%`y V7oŋ(nP#HF"9:[?i>(\%H*xfNoCĉ͇:*`?$Fpx|N `,8$^y( p,O)-6-7Z%Ḟ'_ƛ@0A;ߏ".M@|7WxMoP(i qYs?aNj?+Pǻ#L[q{8xOh!L/{%UGMdŜ%+`ƜsfP1(&ssN  V~^ow]=G nB{3*?OVڏ}Уp6mA_V2t"M=mٿE OT0ʖo~JZ~@'jB~?QR2C=-n)]0P')JoWz[~pX["')O/Cܧ} Vo~~0!g΂&'J!~梓`0 4=.ES`z9 G_ݠkoDЌr"Z hNRC~u9">S6?L/%"к:f!`i:ϡ{DiN0Q LSAjߓO"گm+t~[!~~GӠ"E>SrI!߾}!œhߢmi É0}kЛ*4dl D%J -} xl?k1:kf*}R Z֡欿 -,mN9 e7u=iJD }'c5O'Z2"\x-Ey&a!J_?Q>0΄PJe0= sP5?ط %A'`SX_~[nŸCJ}~&z,'iܿ;jվ} œ bT8GMγΥZA{DiCgD(\ob< `~_b,Eӈ]a"\uhrR@S8~Cط5">u/_|F9{P=nCkPKz$Fdh!:Np:܇>G,kYby"c~<QT_6"/)ֵo~q0CGug?XR3ʌ'J 듄!p8LG*TYGBmh~}2˳u_v[xiTVo}O0J} ?Tq"qnH9o0|\(O&O/\E"AkS4(c>" 0uWur^D+!0@3B~O_s6OUr۷f?(fOQwb(<3U>Qr?y\1ڏtQ+~kJDP_ðo\aycVoJi~Auw֘0{B@6yVBWs T>Qr(e~`7Ё AԴO/C 3,DgЎ+{?LQk 0gOp8'_` ,E+ga&@I Tח}O S-CǾ[aNiY| Ps6B8bb "䟋s"y%D}AHo8 >{81ܾ0Ch}f4QACy۟I}6+B-IrD E? 5"J ShpZNp<֠l{DAC__C9B$Ip?Z Ob,K9}"Li"MEC=HFf#=k0G@-QrO~鿏Ά4_B?"o~RGCh}`8F_SqАjoCOJPȒEM=IH/0!c"JW!t[pSt+:v t^wa_EQ"(rϪͻ(0>C'1Tط4>eC?GF5۟z5_Ϳu!vPcE|/F oh1}_QM9۷_ OjC`&1~BoJC@ig!ƑK~ 0|/Dj켈oE0~?w"ozD!> hZ!o?>h8ܧ}JVJyh:L2: e~=1PO H{Xj켈ogڏ.T_s!'s6z6j@iӛ?T˾ٕ >p'҇~?]H̎)8NX 9ߌ ΋( 8گ&)wB۷1.Gɕ0F?}Jۿ*ܧ}\j޷߈AIF'5N_Q^?Dj(oq گnР"o\b\BS:X V/1T˾;+ ܧ},FY_YmKbvP6WfN/#g΋(CPݯ1@EoĘ2dȐ={Ց-`WQsG!o.Dc}'| v|Хw O%(c2j򼈒c^ߣֻ_xbFEoq O1qva-իW}}=R;9 %z^]i>7DR$1;j~_y%!l z# ĸ9}.Z(˘4iҎ;8t>}k׎l byٷ4 >%FdD-נsdt^~9%\DPMQr"1ۯt>4hpEFPhDN;4|}oߞLHOACeD}v+ '1{RF$b,@5y^DlDGP͸+<ꩊې,ob<'4Dˈ#סCR#i?JۿHpS"4ðo5:D2z#ME("ʗ(sa:r~3 $:zs+rEO!(>Q&7]wuȑ ر#-J~V4x^ߋsOݎ\%}]$`XZ0m6>*TO&ϋ(o78RoJ_@göPGg} O-n6zvԉf-J۟s8OoPa D'T;5} ´Z=zb܋" +z MK>\3w%(>Q&4{ǖ[nw҅&M JۿO`Qz¾&$85?]>0=Vϫ+1.,E=1Q'J3= RT~ߞoBh}LNcnVni׮]lJQe0˾h3Fc<1Cf(~Kc[@&rdjN4!eh:ƀHQo+bJ< qƍ[4[nDI b|R=/!~'žJ ?59x/b ~p))aT(FF6;QaKf#Z((Iٌ_4˾ʃi/2t ^BMcb,@Hh}+T~CTY>o =NɿQosb|AC~*7yٷ">SY+KbNU%$CyT 1A:4W #LN&IcG:FR"7b,F%~|KۗݸW䋔 1[}&%y9h}>s9r@XR248ex~< lKPo1~ #{ذa;I 9hʃ˾ai ?5IW'$.}VE![a*׿Q9(.Cz Sx -Am@Sa8Yvi_ ƍP>JPh}}5j!Q? i}#~kk ڋČju<1fQcb u8>`e:%Fefܿ=4YhotI0i; *jI}j|''0ܹ&l2f̘qC_ھ4aWFT>h,'%oi,ԍdϸ?3Qc(Z4*oDQS;u2ӠݏN-r.\Ϣ(1n@߾FD4ݻom݄ 4$g b|}air;~ٷd4l #N#t}^s%'Ah٨*=aYvyT}s+ ۿ}Qy,-D]]]^N;5DIPb|R=/ >} FoԙdtPrO#( 糈0D? 騙3#U1@M7^t &k:npIp!Q`~9"L7O k׮_~#Gm4$g1>Fi} >Ec7BbvO,#U(rT> Ɨ(PWe 5!@k_/_9<p z nlb\ {^"2;vx㍷jcǶܠ!A?ÉJ_O܈"ko:t-H2: Ԉ߯q >]T>d;hgvp(<@]FR ݍAy eeZpTo[DY3ѵkAm6:%i?É!Jfop 5F%}-%1}n@8qxa&Lb:î0@3Vt:'".t$lBtpz{nACA˾aCdetud=z 2dv(Q3Ҡ!o1D)>X}-E$ F׵0@&WyAa j?st':6&k:x֠ {1F=/?DU+ZNdG}}}>}.T3hHb|R=/G ܧ}yJ5[mIb&w}ވsd:">P>G"aעɍp{79dMWq?*To0c /Fw#?ѡC%i?# {?'JS.ط$;܋x3aN/@DEs21AYsԓ৿2t;: 5]a\^(~'ƕ~o D)ЍI1C}O"Li3E`~ h86,D! *>ʷ0cye8k |nC@ ע7ZT~.$kK0AKY^C]4ʃ˾a&Oc?цطj}ޅs d5!>B}j<`3e4܊V6~!܊~dMw Go\HˡkĘiYO3a4XR=/テ>B4g㿂gp%P.}Eq(`pZQp)uCt :5pz+|oߟv}X؄I+bz^?]i>X1 W>@9rɿ/rdbtPyLs;ї?C[ЁЛ?>/&e@2ϧh&z T4z^?3ܧ}÷p<޾Ѧ$XH Q!>AD6Q-aK s7?4 ?c/܄E y 1.EoJ%:I4hHҠ}ڧ|D7[o?{7t4Oc0{A.GT(>?C]1Qy:t& F4}֠zoD'YhjD5%ĸ ߾;aBϢsa"iJۏƁOo?/I4LMn 2 _Q6}.E Aٟ. =Țp@u oLDPC$LSHgJTks0c}ڧw/CH xp?#yߕ8Qyh/Bfo@ްYK 5KLCa۷"P_C$ͳ 1ކTk >=uG}H d? yQ <AVn?n@S;Y["EP_s."t= tmJu;O4^ 1[kyf;1NT,R9 q8 R~z ]ndM?8nE0Ba۷_8j")1D׾a7p)ZE|DQ߾{PQ*TKf EDue|2@j~AokdJC61yU46}Jz-Dpo_yАb~_Fܧ}Jǵ ۷EbF;fyf@B-Gtt2;J_^GנIЅ, y]|(l~zT]AIߞT۷4> D/(olԍdåT|+ԑ _&/: :Qcaj~^GW ЙG3J <(l~O! ԖفoTطJAOh Rӷok4ČQkKD !Pƒh1f#l؂L(~^AWЉ;Uu6}'cjHPyۯ|'ri }ס3hנzf䞿B óh1Z6|h ΅Wj c)w/P+޷?sP[g'bRc0;OÌ+/9څV0}@i:A͢+Sg$/]:0Cnaz@A?ș  k%z]vc9 s(i~MPK SyАjテ}'t_i~v$f7fDN􂻑_/8\x.ݠY3{ѷ(ڏ΂o21@m]2J5}o l>D& - ']`jE] @tK`9ÅEKÅ!pEߡkDiP%s-+1^BoMD}'n/[mEb&Uw-"hDɂp.9;z];C{f((~ gBQ۷_mʃTط"̶>/|'*[GhAA=i-܅V6_ANЎW?oD9 ߾m6jFQyҠ}':P2m4L%HE>HK2B =΃.{T~ Ca۷?xǾwaiMW3A$'@9 ߾N4pDg<1Ao"hp =&}5?a9*Baa< -CԿaNo? wQ3OTط"(pznQ_.ط_K03^@EE?Gi0m,xj Lbo%"É0}Zu?* Rc0#}'>n~>$tXr̿ 1A!t*"k`;8Gп0bo9"eFi?HPyfOcK۷_3^Cy߁|=z #Țz΅'r+"IP/Cd`[8F+Pg1Dio}ڧwԵ߾{Q!8VBQ}_@Sa8Yvs)4oN+D[۟zRϟ#i䱿E'P= |^x(f~AȔ7LGS^x ǾaO_9߾o83CBe-N!dM.gJoCy3Tط ">a&a,dVQ6۷݌:p Zο?1B7t< c\C+~lD㠘f_h:6!S6`e^xT˾O+Bݧ}"_Դcas#JԴ߁s,2}o5Yt+:)[I Z'J-%۰oZt=H2:tԀR1 oW.t c\^BPk~|p 3}!Œ*_)2NGѯ(~&yٷ4l>%.`߾v$fW8bF>߸ 5`,\^FQ׾ʃBoD1tMtȎ:΃g逸٧Ҡ!oJiueWOطo ']VyN"L*@B/ _B9߾7a欿.=vK+h5jN?yٷ_v>eFك}Hx`S16|o6:1\WWj~ۏboUDBg6PGvtIp-z54hHҠ}g]Z:+F@=ws&1Gm>E0jeߏ}sabo%D]!<4Al¿(?6yٷ4l >cР"[)5?Ϲĸ BB+Lkh ʵ+߾aBy9(JTokDM}IPr#1}KUhdyy.B?B3!Џ{MA9߾a&@yAw#`)Aߕ}ab۟[iPGGFl[j?3ܧ}֕ԯ+dDa߾*Ц$H%s"Ъl@ ?"kz>p#uk[4 oC0CAoPw ɟy(ڷ4i?En#Y>o~U8DB(Q#œ .dMOn+C~C9߾a_GЎ|_SG~>PD`d}@I UVDUـ}Y El6yZ1۷oG`kPTkb4OT\2H۷ogtϣj֟s,t'Bo8fk@~>ۯ=?>h8߾;aVߟdN܇Rݯ}KaIX"2H۷oԇĜ+P|90G@i@oFdM8nF ??׼ "́P^iު݋A½(ܧ}J۷: WQdeͽ5-tɚ~p0D ??ےo򠡘۟s~fà?-ƽ)cRD>S>۟z ٰ*0Mxw\E{B< mCgW|s(f~gTq ==hH5}?"iŧo1ڋČQj az]&CW?oW3,f~oD9j70 ]H=( =}ڧ|8`%طo;P7QjDw5z]&Bf Oo o0ӠWhHUAo'D>Mʼ|߾}_q$f ,BV{fhP*MdpF!?ۏ#+a΅9.ĸǾa6i`E[ܷ߀nFIF{ E{ fghr4:5‘p'c~#0_L2D s1BoYAOĈ\-۷os >B+K24:5h}߾}aYLEĸ~&Ɲ)c~|ܧ}O|7Pw=H2:™D/KK1p75{~#}0~ڶmk۶m۶mۘ"?y={LMRL%5SuOQ}ng=R9hx?{GGP9>^DC; x>gS`MY 6$(`cH\E*uwǚj)ęHړ;dFQu}VC}[A* goRg6O=nnn5%V YϠ/)DFRuV;&(ζ`En!K6S~ցO+rd ˽LW'-f) ĉP v{쳞^ \A4}Hק c>uk}2^_Xn p q=1}G g=~_ROFqF}$z}W 7+Ap#Q>zV^_W~ruA}I'w2^_Xe%8&~"az1lYORhx?UG@PQ`zIW8pCLԼO^8AqI* R 3SO~Q1LX*Bؿ^E lYOߕT&kx?DGGDP`o|d=^GK*Jؿ^ߥIlYO߉T#ρŹ(N SO~&K ӞGDaz0Af`HAD*w~2Aq2O=Ei3޿{a&p$ʳD9T.X?z}ɋV?7xg^_+M0-XGv!(`zIJ*w~*q2}wڔElj?4ا~Ryhx? GGlKL#?qOM,z^8} ׉s\~e( >E"?[^gHeCO}=*6~'׏^1'%L"SO+9Z0z*Rn#'S_7O4I6_HM .#Q>ᙡ]Ώ(z^ߋAeM8#&_T>&ϑr,׏'D慧 _q}nz^W\Np%9aCKg_G֏^5:% |Ag_M?S^z}1Yq}VWD9TΟ~)]> ewDAz}T1\B|J[~vRG4c sv~\o7(>iO/[^W:Áp? aI/K*gGX;19 9דGg[^(l goS|Jy}T& xR9|?ĉhO =3?$-^zřFQEo/`|O*gP"k}(z^8_A4eU8&>_>O 3[?$DփS_ʓ!^7 _W;\TѰ\J|B|y"NފabNJaaECwz^AqV2,q<AYWAqƂ}D*zD0ش2>g{>^A7baHk緙723'Ir*ϻ{P"3}δSҷz^8@EKl "sp5(Aq=ĿREևӈWɄ'YdE'A@l@,F'O.^ugy|!;FSE=zKХ>n<=YщDѿQrȻ^;wz^!Y<#drTHxEjghl?ۈє0϶{=cz^?$҃:oȮ&v"`+p߿IP>ӃBO[ ד޹b*Yx^gYBH @FY\?g-3IhZ?bkJdQxy=ӡl[rwuz^Yjuw{bTueb8}8hT?e) {>;;ye^ACm=bKCv#% \?C%(Ά`g'+:ӏ!bJd/Hfz Fnɺz^gx Tpx~OghH?s`WSU^AR][k`(. #\oU%9y??vDg WZ+^$tLLB -ȂAH:"(6`&+: w?/U)U >Uzr"[z^kӃ%`<߈}ũ""1 ?Aqvo=\[z^Oqپ8e-8'H>M{zp ǫE r@bߟ8{w%yky-ٲ(+Qa1Jb '^333;Y,Yt;K=K=zg©}vUFsGvWa U+Bu>4 7/ ;Ȁԯ3wis]Ca?]z~HS,G\ILOy%dZtU:'pݯaiWã~3uz^t4:ar?EL>/&7MdT ~4Ct+ɋhb?)-!z^PAK7)E GÇ_ȓd%]~%:a_H&!z=[I,(z^:/>ԣ_Eq>9^Er|$(.?$_)կ#Av ߍz~0\A r8B?2)'Sۯ4 xbd/!zo/*} caz^U+jWp   K`@ 2b?|jkhҙ!z^+ B_ȇ#x |D `P_o4 l?4`#CO& z^_NQ?h,O 28u=q;hio~Sǥez^/'Tg. l$')rLm>LΟ緄|~2w b?)!*؀{^+P/ɑ0~d'8~J!Sr.%qwi~ua z^ szr5?Z"Cq{Bu>S| IXG{=k:叆z^_E%gn#x3|b#i~.(ȷkb?SFYz~  wlqF]'?)A5~꧍ǕDrz^ׯ!TgG̯&aOp)YK&~\D 2$ GO'\bX^9hؕ~dG8~L&Y˥'Bu> SX B~꧙YbX^94x}Br EQlCo.W LUM[t??`tz^9soc~5r=F2D]?h{i]"b?ճ즲+z^'Tgϙo''#8XE1n.&>߿s='i^b?S^P?z~:;5"7fLP G=YH)~z{z^ׯ'TS??B~C0YB&RV יVd6 %H~{&v.3,^zzBmNKZ 7k(E&RϾ+:>ԣ_O>O'sx=ݣhSz^H@{$e_JN>/eS22z.P /%A~gzS ^ktͰx^ z:OV=#Ͳ&X+} ֣U4[2S.DIw^!lk§_d5_K.!}PF&xEab A{%; udS.z^?$l8 ~M[Gq0\?uy7hh& „3 ~Cff?zz=}Ӳ{Fzy&5i?dH*YL?t]cwz^?C@y!;YJ֯@]Q7G|."S=]z^\Jq vӁ=OC]6y.Ea; 4pz$ҙez^|:=s }@N`s 9)vA~[z,/~Y3-^ ~G &3 F<|}l+dz?7iLՈiz^ׯ'W^;vb(N0p}z9„3Aa?zƈtK?0c^ȏ;afD.&kL~:ˆ$TPhz}sA^WyJ373z^_NA>Bn;?KAu^#~kAy;.z^=ir ̥̃R2Ftw=F^GmGSt;z^<<xo{)?k yY?hx'߶ב Gr=zz'w$zNz^&%of,\N'Մo4owd6 r*l$Y^;~(/TL/z^Kə0v+L/'T0 o:„3΢zz=c+z^ד`/Mr;~~;q=CAn#U^uFWvx^ɏ;afD.&k(9F fxnx xLb=z-`j^zrX@GǟOAuc?$T0sC֣=u(z^o ג"Th1*Bu3? g6Q^^z^?L~Nٴ)'YEsω3?4K:R=z<^3^z~9fG8~I!U Bu>#~^3af>oh^Oz^Co zzlO?a2gM0s y aXCZ_׳޸u)z^"o0v>gP| F~0sCR0=҇z=_(z^^\@q<,̂wOOPOKb YC!d\JS^g˷ FJ+;lzx^[7!}Kz3BuN #|-:oiߟGk}ozs(/tz^O?c`.f|$Kߪ:q?_G`zZbHXAz=ӈOz^_K.%i7x;C|F߄q~Gf F>ׯ)P\Gz^3IGYf#Oi/RoPoלF̆ߓA_ӥcg]z^u_i=gɈtHAu^ ~i:2 zw%=z^Z9fn'|L~LΏsHA0{/هy=H̃Ku?z=c+z^'h7ŀdĻh~nϾp?颞hS^z~m on/z_ȈtFAuk(XA1KӫWO)z^10v3>%ϑϱ0m~4D29l z=X4f\1z^kɥ3;oɔ(rfw0<9&Cz=S=z^IG YrybJ0r>1 ~&oA^ay^zCşMz^/%gy]8'u ^d Nxb^g/{ y B |z==fxx^zCY(z.wPW”kh~2m^jQz^Ʌ",x7ܿ"_E]%#u?:9Vz=TN銝z^Q|BWSNQɈy=@a E|Lݓkz^gXK3KˣyԿxd8LE)-z^ \Jq ٝd#AACKSZVP^z~;w[C )"Tezn"hwód?/^Oy٦)_Qz^AS#)~s&ى,YG%z^_Gf !G ڮn '3gztz]J {^z~=ŵT8ZL?FKz. si2^{եņ{^z!sr0̦,Od%g / M~LfT|IQw[Ud> r 3y?z6 Ř3Lz^oկ"eYn1b4Lb=$; _'g^O]QcE߼^z^+&Y _)֑S&SM g^-ņz^zS ǒy8Kή _Jq0 RzV=)K+Lz^?ŏȻ`fդPwQI,'MWyƜ*+< z^!(N>Bn8E{xF'K|Pz}򥈊Bz^R\K8Z*LֿѰ L$aOM׏K,]tz^a6f!,s 2)/:;DG.'x^OWtztKz^<%d!f6?'SlO ՙ!hA ^g7&iz^(J^C9N(֓v̧A3qcLgz^?F~C9QrR2WRjgd&7H~z=hKZ֥z^xXD)_IΎ]C s< zʋ߯(z^4 &Y _:r=)l(y Imz-]z^3?Er,K3ȳdU~0Ki^g 6}+Cz^ׯBvt=rjBufH|#^g̩Ģt\z^zN=Vn^E]v15?H3~v^SQ=fVz^kL؁ n ^gK]5ҁ^z^ϓ+>/l*&xLVzu];iz^z}G]0vS@U=K,!k$ޯ^׳2NՔBz^o_JN>BJUG.wI_^{4VW,(z^uZSLrjypElrtY^z^?i!a6zn Abz}K ?})g^z^oɯ R,! ϩzzP|Bz^׷o 8֯Ez^zc&G&uSX^3fPE^z^ׯd zL#*z^zVMFcb zz+֗Gz^z$ǒ!SX^K;`Vz^kȥ?v 5o ȜǶ{&V`fY?l}z?WSx~7=0]b];ZZ6}O}O< Yy>pK'eJ->ϩ<ϧ9A><'큨><Qڻwvyy> Yy> Qܥ|}h(J߱cwu,Yxyl4g$D!ϳ/҉8vnG?VzyyO <7cu{tpK9Q@wt;-n=<<ϧzl<ěq" E[F1y Sl4gdRO*ry )&V=<<_L l<7 +O7 EM<1C=<<_8jA>y'([|b⪫n4K.U?<<ħ8A><'GQ+FFK2x(yS ŻNg$> ޮȿgO>~yysu7|{wg& bĦ'9s6s׬M=u͚--[Wڿ4<<<|R~U9YhL^Y_ly2}6u,Y]yyy$D4˿燲h4d'.\dyyy@4~8+Nhl{ĞsOFyyy>"kgtbJwƬu7X*d<<<'UmKhǿoz Xw'#<<< F, '|5l yyyOڎ%jY6M, '|7Tcs穟=<<|t1pwA=5|[RDdyyy(@L^`F <@1q'<<<h5HyY,85 W϶m{=*>CGOA209!HLU '5kP$f}71 p:Kk >"+r'Ӗz?@ D>[ՆRX´jL5s}jv#ㅤ!h '+J  -[T6:=\AbP Η7mHݴV}'Ms+ko`6޸ `mX惑(`iS ]i;Xffff23333[fnW̌14W߉H+N6h4 V v3#l㼍ښ6q9$,p1oz*x[VPKWffoۖzָF (C+xGC/GcpBK ϯG-w: WdoV'>uHI1AR&M<Z:țc'ļ1"q` H' 78QD>7ƭN)(#?LcB۲>$ZS?L߱Z@y@FgxׯfwS9K&0k"ަmOȅt-H"kW^q=b%oTԃ7[ÕB 0CAY/#YUTRsmjo(C~xo Հd [駄+BzN|~sgξ g82q?o-PSUP E>Fdtsez:?5Ǎ5N|l L"駃ZC(8B_Z&j+lZgƱax|phvEI|0}4|;S>*nG 7#G7 f|J<0E[$sQ^/f EyA?Q#`z #\Q):!4akk:wrZĉnڄ &=~-GWHCB$~PkM8Ƀ{x;3}BuW^i^pff$Ν67ҰQ޶maq *S_xrD3>TA:N]|fK9lI o-5!+19N^!(tCe&ì=v82%ޕ^z&?H_za$K1@EBeepH ?3}& qE5/ES-Srʩ(a{]OFӐ>UEs35,9oTa/}Tn/Ҍf|JI AORMR /+xN ] W~͵:2u?ƛHqd"?.r.ءyϽMGDK,d?t>T>TGu?HkĈ.};1\'<ݰ F6 ~DGn/']F3>T 1KbKWs o-5-TX" S| pXՃax?~8A%ǬǟfGGtMiSCxl <,FKشsΣd<3*L#T~>RfE\n5:p#frpiң&L27iuF3>=9-[~DC+xK]S+Q < כȣ ]2> ֘8ڻPHV]ǟri#zUJBhX00Ӈ:A{L, 96ylW%E}QcL/t=d5w!$n>h&CO< i7p<Es07CGn"~g40CAN/,w#o(C~xo <]pEpuCh&neL "TUC&cHD1 XL2Ї(rAxY_%Km1БF_H|C tc:aHfnbFq3 ܤ_ x)T,C ޥ)7W:6\ 3`zwQ:IS:A{3aPe40ֶ]TG};[gOF \bg]]n}KkC|c9f=58e*&n7R E?)7Ir~!,>'?p;wj %D@"W Qk }'6!<0{F+]Æ;~[#1蛪f>y@F<885- ڴtY6*ٴ\9STzo&U$XtCbK'!AiҌ o-ZXhuLdW< sWoC'>tCwD~G&'MA> JS0P|f̤@Sh*LOҺ\Z_0Na=eoP_T1IOΒ%s '_&SbdR.=7Ia 8QcHߐ^[B!5 ]Hh0w03C:>}g;21ѥ of-xgҌYnHy9ϬN蔇s%|XBt]1V|I~?߈FzM#t b~іNCtX|{iƭ7!?2B"8VW~xϩtf֧UfdLJTI+V #~_}M9xȧ{ݜPYfυ}ûnڥ]xQ]ڤ[׈If]~o$D:<))757)P{" o-5AHW]LJȔ8eJCy=v[ӪbL=3&Vdu D3odiMxyl#ѺS>7!~ ߽4r|0:J5ڤ)72/ڌhƐa7W \!?S:azɧ〝H?>$fݬNuHL ^s^X~M)+٣v7:ޥ[℉瞟q]h$ |嗙އ]\8M;sŕYO<ւ ?Eք 'J;8)yW3>N<KhEr2ƹKzP,*B!$SR2MEx#WqS*n|* 2 T>"LQ#S;W2>0*| .r nkզ&= >G|Wl! ޽9>G9" dfQnEO I!d_d~~78ڢɳ._εbK/ 7!?Ih&eWJ'į7iL>:2顿wƐ;d9 w=< '- SzBn6mƢ/qO>g υ?J( =NJXT za{zqt~O^p꣓5ϟ5nѽI\):{ɍ[ܷCq8aS8OYo(C~xo>!Fj_WN^oM7sNL^DRFl%?#Y׸c+ȉ4c&xy~6@C:$''r_+w}4-ؿޱs}6ybfå7=]c ?7;WsAq" 2\mAXeu7fUI7!?ԄK""?4uBh5q ao ݴ9go5Nw4kNʙg=˖!Uߋ?w腄UڞvhH%q˝Nڮϔ3"a_n=Hֶ}or5 .l:5瞧i3ִfy5a_7$(!f6|D&0eƇ_FPL\oyZawQɯ.8sQr-Mf|ɼ?HI@(= I0|C+xKm +xnwc'-L/Lv{Β%H.? (ڽ51<ɣyeE^!wk&d$YX*}A**^N'p:.RqupI_Xc b]4(xs34f/8ps3>A@~q : $g&uUߐ^[BBDRDX:A? S9ϻf j^<2o'sG <yvz mFI3f|`qA\eEkʴ4 ZXk%y\* ܛ~ THښ`ÇS=~z4sțo(5b.f|I ًC1<)7w3C6bSF۴#qkB#P RtoIQ:AS̛ڟy}SO\yšol(4H1L`_5 sd}l; a(Sp)re233s.e1cx>-(?.w~]*710% cg){7yngje`P/L:o7|zOWD?+—\%[Iʳ6=v)1 ,:F\[ɾnj5Dj3ru"U|\뤌J$w1rh,xSО[tOv>8_G ʫ&Da _}"~C U4f\73>)!?>^_|I'Oqcs~oXd7Ź|*TtvM.åYǯd[?g-\V4GSݍ'ðr}yj>D׿hswm 7 hSԦZ>/iPRɧ1'=>a2LJx9D':ycU{"@ϗ}wlZV m>4\| |zw{_# R`Ex4;"O$eBܨ_(Г}%>%RM6ӢMԞaAQQG gFOEoǿCECK&H)nj gYS9zdĻkG et_l{, C*+CS1&ymצM|p_PhaX̩x>x-?9?CEC?-W$nC׿3r=E Rl|Ɏę}h&k`-Z$Ѡþ:H y6^w=H-+Q e,h|"ڼ&amnM|@_ f'ogoAs3gx>x񱊆5OC!%xFZyZNȋcꦾtz) yrln-s:~%]=݃5]h*Gb yJ ?B,">gM|ڜ`Ym*T?:ugF7g|* P* ?+>N|Ph]uđzyuw!/_>vm_K HV|3 &#AǯckGĂV4hk$ϪHvFN,3Wǧdm8mhqm_\ >`EZ>/Lm[RTe~x#3>Ǝ=>$VI^f)ls,˺rW|KԍSRu=bZc3W15dM4(s5g{R$[|H̽kOD{/y:>`P-HmmH`^ox#Ƨ O_Z'upQ.OT:oⳟC/3z|Xr!?kۇڏrj>)pǗSoLR=~F,yWdm|=أM|4ڿ jSզZ>/(9>Bo7>m~d{ b%9 ȓ>2u@e;~3.4{>==lwtB&Ps)\ |V4(/쒉FA'+|ȣh(jh_jSԦZ>/hiq`otaÙF7k|dFC!-銀Z'$ W)yG&*zTo'4SsY)?sl"O%_59jG)iBSO @V0 R=ﲛxhCW|C zX}Ѭ<#S[9^uu(cMh=7\yRp%_C^SroJK9ǯ=_KJ4d >x?ъ0"Ȁ *+S$Xx=H\Ӥs3N/ϒO;S72&b:~cQɇ5!\x-|NHVO VxaW9^bQ&_s2lTr(/؇ok}.>W~;2VX$N,϶WIifZ?yXy>6MM+7ԦTG|z=o&"F{OE2('0|NH.h jN/bzDΑRFzל<쳼wo{ᅾrJZ't f%wtgj՞jn?ڴ6u|Њ|(_P%ywW4x8xh#/έ]eZ<2n;zo7ɮ\yY0WAʯ}?< k '/̙-D3>*z.>XݤXawɮjWgGaPwV*[|H,h?⏦V=*ڴۏVAm&uM|X_ ?_ x#}Ƨ2$G?b }eer|I ɶgs.*Kvˁi_|F6|/+$b;yàg}2L~w+VѠx1/h_Ѡv[G6 )vL4(Tȇ'louTECf>!㍀*vYľ2{E`WWer_NӍ7Ut-<˙=pQW/_*Acz&|]|]ۼ|Y?+V eA!/h[o`Aզ~iaOPmu"F{Osk*Mg4 ^ 94PnEӦ&OrkuϿk޿GMvwgȃЊl,Z̶oYrz&|]#5[)j5؇S~k֨"ag4SM&7<Ѡ&#V >6 u"F{OeLQDq/x!g]_wy$Y}RJ6|ڛ,zBQɇ5+d$md4s5EMޮ :;aSpXh0'6|@mNtFCf>!㍀mXCDH4DCʓr!/}!/#תZz#ʆOرdMݯgqj>I>͘Ƈ@6^w}塇ozre y;GS't|@mٷ4cgO8mj{_!07|uB~Eq7hDC+;k?i|ҥꋺGbS&ީ:PRF5nל}!Cmh #c$ |WZN<|{T $5z -!>'P{GJ1c%eJ|]}ѡnr t?h6Y0,oI6DÆy6ŋ/XѠ&P '6u|Xm{:ox| >E\އ~|N\ϝoЖRFSQPmz˜'Oҥy Z~d=ES9s[I Aɇro︓D?; RL4/nb{ 4`/ ;{jSܛj'2!o茆ȷ}|Nl~ VmPOXox넎6Rȇ x|(:O>+-['rML9" F_4eO^ >y,@I_`=~qQ/ui:4_mgNGS;GS;M|شFz['t|XmC{^o x|GZ'"ߋO`xiYyn2{C-=rϿcN3gpԃ8Xϵ45A͇5C3P2lfS&|b{;Ѯ~;&|ش+kSLJN4(W4鋯hu?>࣭&Bxܔ'&3ny{mO3Uk˧sLszR:~5ȵ}ǔq'3t| _{ xV4ڴwVAmpF6hu?>SќD=3rVLy}Or?o$uYk˧v&j}Y|ϨWsKᘱLK_+t|Ì~ͺa_0H;{&t|@m;}Nx>ax|U4<||RpX߼.W},omM@dfF|%23x-==ַr)h߁+hAF|̆AP:>6!?: x|91_|:ďLtB,.SMH`@vv_duu hϤaE~)soos߻~s0Ѡ5/=G|Ex4[ez+t|н ?hpox|H<ohEyn2+*z$u¿ꈣ:>[/NͶN~fNlz~IoaGg4GS; &t|@mڭVvԦM|@_`o !07|*cEMDt >oucO?o~-/|Q'/Um-~38BZ|z~Y寰[`@uM<8__bF=jS)2F7|*#47Fo'&|^Tw/'Lj'OUifܧ;p[hqʕ8W5 д-<h u|Ì~-~DMX>60zSt|$Z>/⍏"S2v\>9%O<畫1UQ!l7gbxu§la2R'3^~sj0oiߋM%V4ټ~Z'xGS^igO@mTʇmy?>S*"Ԓ5>moQyn2 #AS?ʂ`#=e2 SpoR\sj~7~_yXuMLJ/3>>PNa1igO@mvoy?>SkX|[Ny#fnTˮ߳t)W5K鋘~):0%[mMDAfڍ+i#^>i#+{t|н D։o>%@D?>-['rM|>>-]0ﺻ`Xz)lAw*6g~47蘆U_]jT %@)cϸ(SLMyӌ3h+K M\ W4x8x[x7hAy~r-Zw{&Uއ-~G)j35?zlEK9jKnupŕ.AwIy2HEo'h/oeb{^|,igO@mTˇ -O< OEq:3ޮu" IOW-D_qqŗMGwݙx-< njKss_Wrl||m;ufɓ>+x̷Nڴw6 M>E)8hD7 :1F 9*OMz0gH9 d ?E3fkq'ԝsn`JJ4.Ï>{ q\'wPåX'tp <~DnDM~M\ N_|EC7, u"?v )OMW]'2ӫ**$r/ʵL&;U KWyyWl{Nx8_z}>hڈM}=jS-UG+!xB"޾!I}z^is,Zl(Qm/Wu\8~|]z?aAV7tRS2A8te 7wk>I< _)l6[h ͒9su|@mjGPvo7BSќD0;(ѐdݤO@W7sԘ%K|GWʇo8r_vR"zŬV fK'3hASLh;{&|XmC{@: x#ǧhVhyxߞ`(e:yG1?o?'/8 q &R-9p:y+҉; &|Xm/Xz㵩jS-u"F{O}UD?~7hAynҷ-n60Ǔ^Jy=LR.y _^'h0ÿr_FJSo|kj_vF}>&)e['fPѠM|@_`k['BaoԲh!CB"??.ѐ= l˳`$i"RS#=bowR|_<'_~ngDMR>64'6|Xm+}N< gFOeLQL"[N61kh}W'b5KxDCnɓu>o[,]:,2V)ʳdm:x#o瞂c?ćzà\&'z u3vz >6y{kcgO0  l'BaoȌGqD~kMy>?oIbYc-<@9EaoձXn8yXNee:y;6 <46 MbNjsOxY># W7u"'} W\9,Z{{k?䙞2M^e߉Tw9bV>IPU'gG?*?Q_(9 |b{3W0OMB4`gO@mjTȇO4vd7㍀ZADI-s]DuC>'4Y:|]~O9͓Cp2fL!hj__op]G=e[oܻ^~o+je_ͳK_[>5-_\V>dp~Kwر,dly |QG#7| yfPlღ#6 6A!FOE!"xF M!㇣|ٮ'K1tv6pD6"h_Thg嗌>ԊCgX9r=,ŗ .oȺo-9/}ɒ 31)"sO\[;Xlkߏ6 MVj7p ]oԲhxE/ x9(OMkΞsNiӦ+2^*]˿e5:=%nk7{AGyCf]%5\vy˳K[7^Ԧ~A V4 pOUQoDnu^>m"Ο\NYW^9cWx9.jC|ƛ_zY_qIDׯ~_r6|löN o0ZoTMG:mį7uBզZ>/(=>ze[1#1KNA1ޗN#Yb2ioSNKօi#K~k|m۶m۶mlD{nyyةN*̬_u~pcY3?x :;bFγ6Uo*)sdeoOI; '&; ݁[oS  ƬB;Fsx<ξfըBx5x<O oE+O{<?EQԙ_+WړSY_< ^(x[NQ F{r*x!ѽ6 g  Ө=QEQX"pk:pbx<'o¦{}E* x<oKpU]U\jʶ'&3?wG#I@ucϬg_o*p R_(uys4'rco5<<<Fr<<<<_ Gyyy'Ev,?<<<<8yyyy<<<|г%<<<<7?-<<<12yyyywnyyyy5nQ0<<<Eyyyzq}Nyyyyy;hq(xyyyo4]yyyywyyyy"0yyy'§<<<<ϫq<<<3<<<<?TxyyyOA<<<o'n<<<<_/F#<<<<4w<<<[4(^ox<exI x<h2(6_vR4(^ox<ex <89$z<wZ4أf=d擙yVIj}vѠvx|;+&XBS+x<^wU4أv}哙~WE1h O<v4Lxdh=|jvUhPx<> y3 K'=l jGZ4'WM:ܸox<^w]4أ醲YWQ/d}x<>NM8 ,ۢa/ɧzmFaw4>{<ǎxD8 {Eחm!dmTx|E|xڢAS>x<oHD΋o` 3i9/d}x<>AM>x<oHD΋{4u|++h`}x<>΢AA>x<o\ix</K*:}m>k<[4>Uy<sѠ&<7/0 #h ;ZZHѠga,4 0QPxǟ0LFBTx|E|x< ð!]%Pq];a0  0 y+^`!' \t1E0 Eap| z1E=N=I>=? h`}x<>AS>x<o&d;=)"|J_RۢAzMx ^h< x!/X4yԢAzexQVxMgp>ݟ.hвx<>AY>x<o{BxQECϷ&O =ONѠvx|E|xJ+䯟3=oKzņWmm&nʫ,Lт g+鸿 {cBRᦛW^pɥm2P/h`=(xοv4Yx<oB?VrB= ЗJŝOzٽ>iEyVwWT$|Ƀ^W]o44 ;xOK[bROk~;ІFrk<%ネk wNoӹ煼{6$|N v4POȾlYx6 8qN<3ff~w3y擕T[M_nխnH|*Dg, iA@ÏC-ܝkJiwɦOfw>Y0F#mic:\r~4屿c|e^|Ew҆:ɓ'[tBcTu?Eʒk4?ȾmO<vt4Y'(Ο;w~ؾ27>h~|C g?' hECkɓwgȓ'O<_i9M'khGw?P_4#¿zIs]姞_7ސ}_`r| !%ʹ{x^o`Wɓ7_43Pg}OC)w k4ٓh?ó?v_j K^c3!`+̎oP?n 3{.Fɓ $&OF8OhLٻFPu_aE"M|R&wR`V4Fn|+O@X{+6_'OnEɓ'cm4|x ~G VYh޾aUk+/M=>?hLk}IIh0>AL Z X99h"߆!h0:%`- ɓ'0JÏyɓ7a4y4(x Qr6xE}kwsɓ'O[ѐ89u%qgXҾ&KFvD;:3fs~ュ݄3 h)~j j4p~'O|xa 5O C}|1״ߣ6zҟ=,+'FwE'O =i6mO>Yy%y+w̞`'a'ZOh0kMdEN7' 2>T “'O޽`3*|Γ'OQA~sɢwV)7gB7a<4o4(WQ2JW`U\xJd:=&ޜqk@y/փ7@Olc>zFɓOn4$yɓ z:^~s*WvpohP,o.XchG`W^IW\փ7[P|*`ɓ'o1ɓ'oA~>rhgg^orF}Quܖ_sTzFCSO_iBݽkpEͰJbM@=`Gn4 ˍ-=$N\Pj4F{=Gp 0uzFɓelwNkC+jsA9 `l|  48'Ob]D/j~ጆj1ߪo@Uk4Hגf.pUwFh0ߠFC h*`ɓ'oڅQkbyɓV4ѐT E/[zwQß4oٌѐ3ox@6O =pt M&B{x[ (#i!D>ɓ'Ot"|Ql` <}f땻_Tx!Y 2-s܄N+h{N?9ښxv2DmӃuzP*hDW4lPk4p~Oo(hP;g7KUHFLDW4H>7xP6+)# ɓ'X:JQɓ's}OH${/ަy{.aɞ5`N>{77so/n4ӃjU4_2z 3rg&t7 |MKJv'z ɓ'Or$x+&yBOmC_xO^'v3 9ƛZ8j4Un+w\s˭i_9+@+g['V ɓ'O޲V yW4ЃflpP*o~~)k~G ŽocJ*s] Ѓh0?h0׾gVN@F.>VDi|Md}#Cx O wxb74r,ozh{;@o*49r =:\\t"`5y[-hgӂ{4kBn~|U6'xy&>Xpbp̏o=zNl&O|"(e~|ŇKGc|j56_'O";y^l>+>FswOf Ϙ%[W}vtnwV+5 F^Z`~|2:=~MRI@Ѡh|M=6_'Oٲ Ea1D>Gf^ˤa|kӟQFNOPFpH!雮vDkɓd#h;yW4֓9aR՛V O"Ϛ6õ~|Em:?J}܇l.{|"7TW4ߚV? NP8~ӧi/FCzZwL9wvǓ=\{4۷Kt`@^ CeuLn[z`|h 'A(T7?O+$Ò.5456_'OhH$q)ȓ'OG/p@lex| ˤGm'?K@]| GCkɓAv:cɓ'c։WR3zl1#Օ5qJF} r?P__s{12使dE.PA⢋0u*\10(=' [ƍz %bvNh|MLoBOhLl+6_'Oe#OaM@lECkɓ?Խ Oɓ'Oz 8=YYioomjO  =-27) M@Go4ќѠSs&07F =h*ɓ'o "O O@hECkɓ~K!V 1Oȓ'Oy$`6FZOAh`H~Jz  z=7D[[eIEm<}_Vҟ'`mg ґG*3v3Hɓ'o%< )ln3*ȓ'Oޗ<~WǍo'hP)6P_Z*Y"U=Rfߖ|xM{Ah):kpt^iM@]=`CZѠ058'O5..?!O&6RWWk4_|EqTUU)y &gϝ/0=j"|O3G'C6s`<F$sĚ;L[ﳦpփ3Jt0Np~O<ތ?^VpPrkB;Rh0Px@* 4рiiXԴ!y[ctV'p+yɓ@8ɓ'OxY^t7ޜZrnpXʭ۞~{$w'伸ZV(ɖݟ|"8&sniWy՛v#%`C0`E6:WR< υĬyyyyv4b<<<<_30Qyyyy_řyyyy+&[oyyyy>yyyyk ]?5xyyyΖ<<<g37<<<<_]" ţyyyy~%Pyyyyba<<<yyyy|%<<<yyyy|Kyyyy~;kc1 yyyyyyyt<<<<< ]>\q$<< myyyyWb]Lyyyy~󵠈%yyyy/__kyyyy|-><<<<.溂yyyy~yyy|"Z*xyyy}}5zE<<<%t yyy_op yyyy_|]yyy<|yyyy~?#52<<<Ayyyy+(r<<<<|-b,*.<<<]g<<<<IENDB`cups-2.4.7/cups/cupspm.opacity0000644000175000017500000023146014502571342016242 0ustar zdohnalzdohnalbplist00X$versionX$objectsY$archiverT$topcopqrswx :;ABNOPQRX\bfnoVsuy},/27?EJNOPQRSTUVWX^b{~ .16;@ABCDEFJ^afkpqrstuv{ !"#$%&+6BNYZ[\]^_`abcdel{ .16;@ABCDEFJ^afkpqrstuv{ "%*/456789:>RUZ_defghijoz'*/49:;<=>?DEFUhkpuz{|}~ ,789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXfu    & 2 > J V b n z   + 7 C O [ g s   $ 0 9 E Q ] i u    & 2 > J V b n z  " . : F R ^ j v  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^    (+05:;<=>?@EP\ht(4@KLMNOPQRSTUVWXYZ[\]fu %*+,-./04HKPUZ[\]^_`ep|     ,789:;<=>?@FUhkpuz{|}~ !58=BGHIJKLMR]iu  &2>JV^_`abcdefghijklmnopz-05:?@ABCDEJKLZ[_sv{  !"#69<AFKNOPQRSTXloty~  !01CSTUVWXY]aeijkorstwxy|}M  @ W: $%&'()*+567>?I@JKLMUVWXYefg9hi}~U$null0  !"#$%&'()*+,-./0123456789:;9<=>>@AB::CDEFGH:IJKLMN>PQRSI@UVWXYB[\]B>BaM9WpolySidWpixDTypSbmPUresUnTsecCUcolSpUoBgImSparVnPaStrWactLaysUsnShsWpenTTypSmodTzoomTallRVsavStDTmetaVspiDecVgenNamUorTypVpixRadTfrasUimSizUbgColVnPaFilV$classVactTraVsavPrDTtarsVcurFraSenVVlineThVautoBTUshLayXrectCRadUresiMTcurRWspiSegsTtrasWfilSensUmainCVtraTrgVcurObjVguiLinTvarsVlasModWpolyStaUbgTypP y #@HA ŀ#@T#?{ #- #@Id de"fjnWNS.keysZNS.objectsghiklm \kMDItemTitle^kMDItemAuthors_kMDItemCopyrightXNew Icone"tvu ]Michael Sweetyz{|Z$classnameX$classesWNSArray}~WNSArrayXNSObject_Copyright 2017 Michael Sweetyz_NSMutableDictionary~\NSDictionarye"vX  "SresSdel#?yz\PCResolution~\PCResolutionXPCObject"#?"I"#@"#@"#@#"#?e"vR "ATlaysUanimTUlAcLs#?yzde"nghikm e"vu e"v׀CM "::M@MRUblendWmaskTypUedMskSnamWmaskLaySvisUalConTobjsTisShTopac" #!&#@Y">B !de"n #@#"#@#yz_PCBitmapContext~_PCBitmapContextZPCDrawableXPCObjecte"v yz  ]PCNormalLayer   ~]PCNormalLayerWPCLayerZPCDrawableXPCObjectTTextde"n$% #@#"#@#e"v'< !"#$%&'(")*+ ,-.MM@V@M45V@8VMTrectTstrYSisIXstrTBndsTstrXSshXTantiSflVVattStrSshYUalPixSangSflH( ;) :_{{0, 0}, {140, 60}}<"=>?@XNSString\NSAttributes*9+_Programming Manualde"CHMDEFG,-./IJKL02478_NSParagraphStyleWNSColorVNSFontVNSKernS"T>VWZNSTabStops[NSAlignment1yzYZ_NSMutableParagraphStyleY[~_NSParagraphStyle]^"_`aUNSRGB\NSColorSpaceF1 1 13yzcdWNSColore~WNSColorghi"jklmVNSSizeXNSfFlagsVNSName#@156_HelveticaNeue-BoldyzpqVNSFontr~VNSFontyzt~yzvw_NSAttributedStringx~_NSAttributedStringz^"{9aWNSWhiteD1 03yz~\PCTextVector~\PCTextVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObject!"#$%&'(")*+ ,-MM@V@M4V@VM= ;> B_{{0, 135}, {140, 50}}<"=??9@TCUPSde"MDEFG,-./IJL02A78ghi"klm#@D56z^"9aD1 03"::M@MRHD I!L">BCE !de"nFG #@#"D#@#VMascotde"nɀJˀK #@#"C#@#e"vM݁);gxρЁ$Ntā +< !#&'("*+,-M@V@MV@VMVfConPtVconPtsWfilPropVlConPtUstrosNr O vbC _{{0, 0}, {0, 0}}"     M`:W <">$&':()`*MVrelLP2SblHWgradAngUradGCTfilTWrelRadCVfilPosSaEqStypXrelLinP1VfilColVrelLP1UfilImVothColXrelLinP2SgEqUfilGrSrEqXgradStopUpgNumSbEqSfil[#@VWXa`ZPYQM\^]R_z^"-9aB13]^"0`aL0.6 0.6 0.63e"3645SUV89:">V<>ValtColSlocScolOPTyz@A^PCGradientStopBCD~^PCGradientStopZPCDrawableXPCObject89:">$>OQTyzKL^NSMutableArrayKM~WNSArrayV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}Q0QtW100 - tS100yzYZ_PCDrawVectorProperties[\]~_PCDrawVectorPropertiesZPCDrawableXPCObjecte"_6`cVc"    def:gWhMj:kl:Wn>pq:Mt'I:\(x`*zTcapSSposUinvisSwidUdashSmijq`lkeMn^d]f_oz^"|9aB03]^"`aL0.4 0.4 0.43e"6ghV89:">`V\>cdT89:">`q>ceTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 #@ yz_PCStrokeVectorProperties~_PCStrokeVectorProperties_PCDrawVectorPropertiesZPCDrawableXPCObject" M@MM:YhasConPt1VcPLinkUisCloRptTnextYhasConPt2VconPt1VconPt2 Msz" M`M@MTprevzr Mt" M`M@Mzs~ Mu" M`MMM}zt{|Mv "M`MMMMwxyzu_({24.692968750000006, 131.27734375000003}_({24.692968750000006, 131.27734375000003}_({24.692968750000006, 131.27734375000003}yz]PCCustomPoint~]PCCustomPointZPCDrawableXPCObject_'{37.49296875000001, 126.27734375000003}_'{37.49296875000001, 126.27734375000003}_'{37.49296875000001, 126.27734375000003}_({34.419726562500003, 94.499414062500023}_({34.419726562500003, 94.499414062500023}_({34.419726562500003, 94.499414062500023}_({21.992968750000003, 101.97734375000002}_({21.992968750000003, 101.97734375000002}_({21.992968750000003, 101.97734375000002}_({24.692968750000006, 129.17734375000003}_({24.692968750000006, 129.17734375000003}_({24.692968750000006, 129.17734375000003}e"6rstuvVyz^PCCustomVector   ~^PCCustomVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObject!#&'("*+,-M@V@MV@VMN C "     M`:W"<$>&(':(+`*Ma`P^]_]^"/`aL0.6 0.6 0.63e"2634V89:">V<>PT89:">&>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"G6HVc"    def:gWKMM:Nl:WQ>ST:MW'I:\([`*]q`^d]_]^"_`aL0.4 0.4 0.43e"b6cdV89:">HV\>dT89:">HT>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"wvLp7 " M@MM: z" M`M@Mz " M`M@Mz  "M`M@M z_({71.592968750000011, 93.577343750000026}_({71.592968750000011, 93.577343750000026}_({71.592968750000011, 93.577343750000026}_({71.592968750000011, 95.477343750000017}_({71.592968750000011, 95.477343750000017}_({71.592968750000011, 95.477343750000017}_({32.692968750000006, 86.977343750000017}_({32.692968750000006, 86.977343750000017}_({32.692968750000006, 86.977343750000017}_({19.209375000000009, 94.662695312500034}_({19.209375000000009, 94.662695312500034}_({19.209375000000009, 94.662695312500034}e"6V!#&'("*+,-M@V@MV@VMN πC "     M`:W<>':(`*Ma`P^]_]^"`aL0.6 0.6 0.63e"6䀷V89:">V<>PT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M'I:\( `* ŀƀq`Ȁǀʀ^d]€_]^"`aL0.4 0.4 0.43e"6ÀĀV89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"'vLp7 " M@M01M34: ـڀۀz" M8;`<M@@M؀z̀ր " MD1G`HMMMՀz̀Ӏ "M`MMSMUV@рҀz_'{37.49296875000001, 126.27734375000003}_'{37.49296875000001, 126.27734375000003}_'{37.49296875000001, 126.27734375000003}_({70.792968750000014, 126.27734375000003}_({70.792968750000014, 126.27734375000003}_({70.792968750000014, 126.27734375000003}_({67.492968750000017, 97.077343750000026}_({67.492968750000017, 97.077343750000026}_({67.492968750000017, 97.077343750000026}_({34.834375000000009, 94.292187500000026}_({34.834375000000009, 94.292187500000026}_({34.834375000000009, 94.292187500000026}e"f61@ƀ̀̀΀πV!#&'("*+,-nMp@rV@MvwV@VMN C "     |M~`:W<>':(`*Ma`P߀݀^]_]^"`aL0.6 0.6 0.63e"6V89:">rV<>ހPT89:">r>ހ߀TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M'I:\(`*q`^d]_]^"`aL0.4 0.4 0.43e"6ĀV89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " M@MM: ݀z" Mn`M@vMz ݀ "M`M@M z_({27.686914062500001, 131.48457031250001}_({27.686914062500001, 131.48457031250001}_({27.686914062500001, 131.48457031250001}_({48.176953125000004, 130.83671875000002}_({48.176953125000004, 130.83671875000002}_({48.176953125000004, 130.83671875000002}_({70.792968750000014, 126.27734375000003}_({70.792968750000014, 126.27734375000003}_({70.792968750000014, 126.27734375000003}e"6nvV!#&'("*+,-M@V@MV@VMN(  C "     M`:W"<$>&(':(+`*M   a` P ^]_]^"/`aL0.6 0.6 0.63e"2634V89:">V<>PT89:">&>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"G6HVc"    def:gWKMM:Nl:WQ>ST:MW'I:\([`*]q`^d]_]^"_`aL0.4 0.4 0.43e"b6cdV89:">HV\>dT89:">HT>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"wvLp7 " M@MM: %&'z" M`M@M$z"#  "M`M@M  !z_({67.211328124999994, 81.120703125000006}_({67.211328124999994, 81.120703125000006}_({67.211328124999994, 81.120703125000006}_({32.975781249999997, 72.560742187500011}_({32.975781249999997, 72.560742187500011}_({32.975781249999997, 72.560742187500011}_({17.499999999999993, 83.085156250000011}_({17.499999999999993, 83.085156250000011}_({17.499999999999993, 83.085156250000011}e"6V!#&'("*+,-M@>V@MV@VMSpt1Spt2*8 9:+C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6,Vc"    def:gWM:l:W>:M'I:\(`*ԁ512q`43-)6^d]._7]^"`aL0.4 0.4 0.43e"6ہ/0V89:">V\>,dT89:">>,-TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({32.592968750000004, 86.977343750000017}_'{32.88203124999999, 72.722070312500009}yz\PCLineVector~\PCLineVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObject!#&'("*+,-M@V@MV@VMNUf < YHC "      M::W>':(`*@FBCa`E=D>;G^]?_ z^" 9aF1 0.53]^"#`aL0.6 0.6 0.63e"&6'(@AV89:">V<>><>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e";6<IVc"    def:gW?MA:Bl:WE>GH:MK'I:\(O`*QRNOq`QPJ;S^d]K_T]^"S`aL0.4 0.4 0.43e"V6WXLMV89:"><V\>IdT89:"><H>IJTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"kvLp7 " M@MtuMwx: ;cVdez" M|`M@MbzU`a ;W" Mu`M@M_zV]^ ;X" M`M@M\zWZ[ ;Y "M`@@M ; zX_({66.913704302362703, 123.62500000000003}_({66.913704302362703, 123.62500000000003}_({66.913704302362703, 123.62500000000003}_({64.569173052362714, 100.17285156250001}_({64.569173052362714, 100.17285156250001}_({64.569173052362714, 100.17285156250001}_({38.146712114862709, 97.893945312500009}_({38.146712114862709, 97.893945312500009}_({38.146712114862709, 97.893945312500009}_({40.808430864862707, 123.53730468750003}_({40.808430864862707, 123.53730468750003}_({40.808430864862707, 123.53730468750003}e"6uUVWXYV!#&'("*+,-M@>V@MV@VMhv w:iC _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6ˁjVc"    def:gWM:l:W>:M'I:\(`*sopq`rqkgt^d]l_u]^"`aL0.4 0.4 0.43e"6mnV89:">V\>jdT89:">>jkTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({43.292968750000007, 114.37734375000002}_({49.557031249999994, 116.97949218750001}!#&'("*+,-M@>V@M V@VMy :zC _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6{Vc"    def:gWM:l:W>:M 'I:\($`*&q`|x^d]}_]^"(`aL0.4 0.4 0.43e"+6,-~V89:">V\>{dT89:">>{|TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"@vLp7 _({56.892968750000009, 116.27734375000003}_({62.518359375000003, 114.21093750000001}!#&'("*+,-HMJ@LV@MPQV@VMN  C "     VMX`Y:W\<^>`b':(e`*Ma`P^]_]^"i`aL0.6 0.6 0.63e"l6mnV89:">LV<>PT89:">L`>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M'I:\(`*q`^d]_]^"`aL0.4 0.4 0.43e"6V89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " M@MM: ˁ́̀z" MH`M@Mʀzȁ " M`M@MǀzŁ " M`M@MĀz " M`M@Mz " M`M@Mz " M`M@Mz " M  `M@Mz " M`M@Mz " M"%`&M@PMz  "M`M@1M34 z_{61.318359375, 105.9109375}_{61.318359375, 105.9109375}_{61.318359375, 105.9109375}_({59.838281250000001, 103.91562500000001}_({59.838281250000001, 103.91562500000001}_({59.838281250000001, 103.91562500000001}_({58.323437499999997, 102.57363281250001}_({58.323437499999997, 102.57363281250001}_({58.323437499999997, 102.57363281250001}_({56.571874999999999, 101.42890625000001}_({56.571874999999999, 101.42890625000001}_({56.571874999999999, 101.42890625000001}_#{55.167578124999999, 100.920703125}_#{55.167578124999999, 100.920703125}_#{55.167578124999999, 100.920703125}_({53.516992187500001, 100.66718750000001}_({53.516992187500001, 100.66718750000001}_({53.516992187500001, 100.66718750000001}_${50.775195312499996, 100.8064453125}_${50.775195312499996, 100.8064453125}_${50.775195312499996, 100.8064453125}_${49.391406249999996, 100.9509765625}_${49.391406249999996, 100.9509765625}_${49.391406249999996, 100.9509765625}_({47.762304687499999, 101.78964843750001}_({47.762304687499999, 101.78964843750001}_({47.762304687499999, 101.78964843750001}_${45.963281249999994, 103.0330078125}_${45.963281249999994, 103.0330078125}_${45.963281249999994, 103.0330078125}_({43.932226562499999, 105.15937500000001}_({43.932226562499999, 105.15937500000001}_({43.932226562499999, 105.15937500000001}e"Y6HPV!#&'("*+,-hMj@lV@MpqV@VMN  PۀC "     vMx:y:W|\~>':(`*@Ձրa`؀d׀сρڀ^]Ҁ_ ]^"`aL0.4 0.4 0.43e"6ӁԀV89:">lV\>ЀdT89:">l>ЁрTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6V" MMMM:ρz" @h`MMM z܁ρ" @`@MM z݁ ρ" @`@MM zށ ρ" @`@MM z߁ ρ" @`@MM z ρ" @`@MM z ρ" @`@M M z ρ" @  ` @M M z ρ" @  ` @M M z ρ" @  ` @M $M z ρ" @ (  +` ,@M 0M z}~ ρ" @ 4 $ 7` 8@M <M |zz{ ρ" @ @ 0 C` D@M HM yzwx ρ" @ L < O` P@M TM vztu ρ" M X H [` \@M `Mszqr ρ" @ d T g` hMM lM pznoρ" @ p ` s` t@M xM mzkl ρ" @ | l ` @M M jzhi ρ" @  x ` @M M gzef ρ" @  ` @M M dzbc ρ" @  ` @M M az_` ρ" @  ` @M M ^z\] ρ" @  ` @M M [zYZ ρ" @  ` @M M XzVW ρ" @  ` @M M UzST ρ" @  ` @M M RzPQ ρ" @  ` @M M OzMN ρ" @  ` @M M LzJK ρ" @  ` @M M IzGH ρ" M  ` @M MFzDE ρ "M`@M M  z" M !  $: %MM )MCzABρ" M -  0` 1MM 5M@z>?ρ" M 9 ) <` =MM AM=z;<ρ" @ E 5 H` IMM MM :z89ρ" @ Q A T` U@M YM 7z56 ρ" @ ] M `` a@M eM 4z23 ρ" @ i Y l` m@M qM 1z/0 ρ" M u e x` y@M }M.z,- ρ" M  q ` MM M+z)*ρ" M  } ` MM M(z&'ρ" @  ` MM M %z#$ρ" @  ` @M M "z ! ρ" @  ` @M M z ρ " @  ` @M M z ρ " M  ` @M Mz  ρ  "M`@M M   z " M  : MM Mz ρ " M  ` MM Mz ρ" @  ` MM M z ρ" @  ` @M M  z  ρ" @  ` @M M  z ρ" @  ` @M "M z ρ" M &  )` *@M .Mz ρ "M`@M 5M " z" M ; . >: ?MM CMzρ" M G 5 J` KMM OMzρ" M S C V` WMM [Mzρ" M _ O b` cMM gMzρ" @ k [ n` oMM sM zρ" @ w g z` {@M M z ρ" @  s ` @M M z ρ" @   ` @M M z ρ" M  ` @M Mz ρ "M`@M M  z" M  : MM Mzρ" @  ` MM M zρ " @  ` @M M zށ ρ!" @  ` @M M ݀z ہ ρ"" @  ` @M M ڀz!؁ ρ#" @  ` @M M ׀z"Ձ ρ$" @  ` @M M Ԁz#ҁ ρ%" @  ` @M M рz$ρ ρ&" @  ` @M M ΀z%́ ρ'" @  ` @M $M ˀz&Ɂ ρ(" @ (  +` ,@M 0M Ȁz'Ɓ ρ)" @ 4 $ 7` 8@M <M ŀz(Á ρ*" @ @ 0 C` D@M HM €z) ρ+" @ L < O` P@M TM z* ρ," @ X H [` \@M `M z+ ρ-" @ d T g` h@M lM z, ρ." @ p ` s` t@M xM z- ρ/" @ | l ` @M M z. ρ0" @  x ` @M M z/ ρ1" @  ` @M M z0 ρ2" @  ` @M M z1 ρ3" @  ` @M M z2 ρ4" @  ` @M M z3 ρ5" @  ` @M M z4 ρ6" @  ` @M M z5 ρ7" M  ` @M Mz6 ρ8" @  ` MM M z7ρ9" @  ` @M M z8 ρ:" @  ` @M M z9 ρ;" @  ` @M M z: ρ<" @   ` @M M z; ρ=" @ $  '` (@M ,M z< ρ>" @ 0 3` 4@M 8M z= ρ?" @ < , ?` @@M DM z> ρ@" @ H 8 K` L@M PM z?~ ρA" @ T D W` X@M \M }z@{| ρB" @ ` P c` d@M hM zzAxy ρC" @ l \ o` p@M tM wzBuv ρD" @ x h {` |@M M tzCrs ρE" @  t ` @M M qzDop ρF" @  ` @M M nzElm ρG" @  ` @M M kzFij ρH" @  ` @M M hzGfg ρI" @  ` @M M ezHcd ρJ" @  ` @M M bzI`a ρK" @  ` @M M _zJ]^ ρL" @  ` @M M \zKZ[ ρM" @  ` @M M YzLWX ρN" M  ` @M MVzMTU ρO "M`@MpM  PzN "M:MMM   QRSzO_({66.782109375000019, 83.613734342065342}_({66.782109375000019, 83.613734342065342}_({66.782109375000019, 83.613734342065342}_({65.055109375000015, 88.754118325133973}_({64.996442415000033, 89.304703124178175}_({65.055109375000015, 88.754118325133973}_({64.444609374999999, 89.834050242715549}_({64.096274300000005, 90.003423655165463}_({64.792944450000036, 89.664676830265634}_({63.108109374999991, 89.892684981204965}_"{62.888108275, 89.839867390120716}_({63.650778754999997, 90.022968372546146}_'{62.45910937499999, 89.670873866561962}_({62.246441644999997, 89.575816641847169}_({62.671777105000011, 89.765931091276755}_({61.892609374999999, 89.314869249543094}_({61.727608550000006, 89.172588876229909}_({62.057610199999992, 89.457149622856278}_'{61.496609375000013, 88.80729806094736}_!{61.39760888, 88.611195949959424}_({61.595609869999997, 89.003400171935269}_"{61.348109375, 88.128146365223969}_"{61.348109375, 87.886145155223986}_"{61.348109375, 88.384814315223949}_'{61.562609375000015, 87.59114325904666}_({61.705610090000015, 87.475140608251436}_({61.419608660000016, 87.707145909841913}_&{62.134609375000018, 87.3599683092405}_({62.372943899999989, 87.321853556248456}_({61.896274850000019, 87.398083062232544}_({62.943109374999999, 87.317571985956775}_({63.243777544999993, 87.327422382105269}_({62.642441205000004, 87.307721589808281}_({63.861609374999993, 87.334584326171878}_({64.173277600000006, 87.336075546874568}_'{63.549941149999988, 87.33309310546916}_({64.780109375000023, 87.296596666386947}_({65.080777545000032, 87.269780212535451}_'{64.479441205000001, 87.32341312023847}_({65.588609375000019, 87.089200343103229}_({65.826943900000018, 86.977751890111179}_'{65.350274850000019, 87.20064879609528}_({66.160609375000021, 86.588525393297047}_({66.303610090000021, 86.366188877501813}_({66.017608660000022, 86.810861909092282}_({66.375109375000036, 85.672022287119731}_({66.375109375000036, 85.254020197119743}_({66.375109375000036, 86.060690897119727}_({66.094609375000019, 84.532180195197768}_({65.907608440000033, 84.190283757776157}_({66.281610310000033, 84.874076632619378}_({65.374109375000032, 83.633203449280543}_({65.080774575000035, 83.375779059501539}_({65.667444175000028, 83.890627839059576}_'{64.38960937500002, 82.989845910966167}_({64.026607560000002, 82.818363130677142}_'{64.75261119000001, 83.161328691255207}_'{63.306109374999998, 82.60322057550286}_({62.866107175000018, 82.497585393334333}_({63.665444505000004, 82.689489307607147}_({62.057609374999991, 82.468482244791318}_'{61.66527408000001, 82.484291424024406}_({62.449944670000001, 82.452673065558258}_({61.023609374999999, 82.720740807902502}_({60.726607890000018, 82.873104844938752}_({61.320610860000009, 82.568376770866251}_({60.319609374999992, 83.409725361510098}_({60.147275180000001, 83.716686656827406}_({60.491943570000011, 83.102764066192762}_({60.061109374999994, 84.585165002287894}_({60.061109374999994, 84.585165002287894}_({60.061109374999994, 84.108495952287868}_({61.051109375000003, 84.822842973777213}_({61.051109375000003, 84.492841323777199}_({61.051109375000003, 84.822842973777213}_({61.243609374999998, 84.016558134900109}_({61.371943350000002, 83.809033871365941}_({61.115275400000023, 84.224082398434305}_'{61.749609374999999, 83.54953798699465}_({61.958610420000007, 83.445713928524711}_({61.540608329999991, 83.653362045464618}_'{62.48110937500001, 83.384155599261774}_({62.759777435000011, 83.377724181301815}_({62.202441315000009, 83.390587017221705}_({63.339109375000014, 83.480143174552509}_"{63.573777215, 83.536481938375701}_({63.045774575000017, 83.409719719773491}_({64.048609375000012, 83.716479054119858}_({64.286943900000011, 83.817698331127801}_({63.810274850000006, 83.615259777111888}_({64.692109375000001, 84.096469735587888}_({64.882776995000015, 84.248578846194263}_({64.501441755000002, 83.944360624981542}_({65.154109375000033, 84.641886122282912}_({65.271443295000026, 84.853389754194538}_({65.036775455000011, 84.430382490371315}_({65.330109375000021, 85.388139983881004}_({65.330109375000021, 85.659474673881007}_({65.330109375000021, 85.102138553881005}_({65.115609375000034, 85.996643090058328}_'{64.972608660000034, 86.13097916585356}_({65.258610090000033, 85.862307014263095}_({64.543609375000017, 86.271818039864499}_({64.305274850000018, 86.320932847856554}_'{64.78194390000003, 86.222703231872444}_"{63.735109375, 86.336214363148216}_({63.434441205000006, 86.330030651999735}_({64.035777545000002, 86.342398074296725}_'{62.816609375000006, 86.31920202293314}_({62.504941150000001, 86.314044117230438}_({63.128277600000011, 86.324359928635843}_({61.898109375000011, 86.340689682718065}_({61.597441205000017, 86.360172766569562}_({62.198777545000006, 86.321206598866539}_({61.089609375000002, 86.509586006001783}_({60.851274850000003, 86.602701033993824}_({61.327943900000001, 86.416470978009713}_'{60.517609374999999, 86.95526095580793}_!{60.37460866, 87.159264046603155}_({60.660610089999999, 86.751257865012704}_'{60.303109375000012, 87.80026406198526}_({60.303109375000012, 88.196266041985226}_({60.303109375000012, 87.440928931985255}_({60.545109375000003, 88.886863121682623}_({60.706443515000011, 89.215264136811086}_'{60.383775234999995, 88.55846210655416}_({61.188609374999992, 89.756353803150674}_'{61.45627738000001, 90.007616140636529}_({60.920941370000001, 89.505091465664819}_'{62.101609375000002, 90.39354571019085}_({62.442611079999999, 90.567080101371417}_({61.760607670000006, 90.220011319010226}_({63.152109375000002, 90.783248446604503}_({63.555444724999994, 90.880080696925646}_({62.792774244999997, 90.696979714500188}_({64.274109375000023, 90.909616814292391}_({64.618777765000004, 90.897030563657708}_({63.929440985000006, 90.922203064927047}_({65.181609375000036, 90.676488288157586}_'{65.441944010000029, 90.53365474427396}_({64.921274740000015, 90.819321832041211}_({65.797609375000022, 90.048876803750957}_({65.947943460000019, 89.773300599325196}_'{65.647275290000024, 90.32445300817669}_({66.045109375000024, 88.991796296623292}_({66.045109375000024, 88.991796296623292}_({66.030442635000028, 89.420943953884304}_({65.055109375000015, 88.754118325133973}_({65.055109375000015, 88.754118325133973}_({65.055109375000015, 88.754118325133973}_({56.827109375000006, 89.077750295422746}_({57.619113334999994, 89.267893623326088}_({56.827109375000006, 89.077750295422746}_({58.625609374999996, 88.899031943628316}_({59.032611410000001, 88.589742452134246}_({58.218607339999991, 89.208321435122443}_'{59.236109374999998, 87.33510002604676}_({59.236109374999998, 86.601763026046783}_({59.236109374999998, 88.068437026046738}_({58.625609374999996, 85.472531943628368}_({58.218607339999991, 84.964150680122501}_({59.032611410000001, 85.980913207134265}_({56.827109375000006, 84.435750295422778}_({56.827109375000006, 84.435750295422778}_({57.619113334999994, 84.618560253326123}_({54.429109375000003, 83.860041431148673}_({54.429109375000003, 83.860041431148673}_({54.429109375000003, 83.860041431148673}_'{54.429109375000003, 80.64804143114867}_'{54.429109375000003, 80.64804143114867}_'{54.429109375000003, 80.64804143114867}_({53.384109375000001, 80.397159127909958}_({53.384109375000001, 80.397159127909958}_({53.384109375000001, 80.397159127909958}_({53.384109375000001, 88.251159127909901}_({53.384109375000001, 88.251159127909901}_({53.384109375000001, 88.251159127909901}_({56.475109375000002, 85.231242572226577}_({57.069112344999994, 85.366516698154086}_({56.475109375000002, 85.231242572226577}_({57.778609374999988, 85.907185234687503}_({58.053610750000004, 86.222541803542825}_{57.503608, 85.591828665832182}_({58.191109375000011, 87.084217722808049}_({58.191109375000011, 87.553553402808021}_({58.191109375000011, 86.614882042808048}_({57.778609374999988, 88.057685234687497}_{57.503608, 88.237331140832154}_({58.053610750000004, 87.878039328542783}_({56.475109375000002, 88.113242572226554}_({56.475109375000002, 88.113242572226554}_({57.069112344999994, 88.255850068154061}_({54.429109375000003, 87.622041431148645}_({54.429109375000003, 87.622041431148645}_({54.429109375000003, 87.622041431148645}_({54.429109375000003, 84.740041431148668}_({54.429109375000003, 84.740041431148668}_({54.429109375000003, 84.740041431148668}_({51.712109375000004, 82.833747442727997}_({51.712109375000004, 81.829075752728016}_({51.712109375000004, 82.833747442727997}_({50.909109375000007, 80.380464199186662}_({50.373773365000012, 79.749605549214948}_({51.444445385000002, 81.011322849158375}_'{48.62110937500001, 79.077663998411367}_({47.609104315000017, 78.834703079423747}_'{49.61111432500001, 79.315343158290517}_({46.250609375000003, 79.229057300011931}_({45.682273200000004, 79.572947591377613}_({46.818945550000002, 78.885167008646278}_'{45.398109374999997, 81.31789015789613}_'{45.398109374999997, 81.31789015789613}_({45.398109374999997, 80.269218247896134}_({45.398109374999997, 86.333890157896107}_({45.398109374999997, 86.333890157896107}_({45.398109374999997, 86.333890157896107}_({46.443109374999999, 86.584772461134818}_({46.443109374999999, 86.584772461134818}_({46.443109374999999, 86.584772461134818}_'{46.443109374999999, 81.56877246113487}_({46.443109374999999, 80.864768941134855}_'{46.443109374999999, 81.56877246113487}_({47.004109375000006, 80.102956644978804}_({47.378111245000007, 79.829744734822043}_({46.630107505000005, 80.376168555135564}_'{48.62110937500001, 79.946663998411367}_({49.288446045000008, 80.106877358033614}_'{47.91710585500001, 79.777647706941735}_({50.144609375000009, 80.856923987869919}_({50.492944450000003, 81.303553655419989}_({49.796274300000015, 80.410294320319821}_({50.667109375000003, 82.582865139489286}_({50.667109375000003, 82.582865139489286}_({50.667109375000003, 81.878861619489271}_({50.667109375000003, 87.598865139489234}_({50.667109375000003, 87.598865139489234}_({50.667109375000003, 87.598865139489234}_({51.712109375000004, 87.849747442727946}_({51.712109375000004, 87.849747442727946}_({51.712109375000004, 87.849747442727946}_({51.712109375000004, 82.833747442727997}_({51.712109375000004, 82.833747442727997}_({51.712109375000004, 82.833747442727997}_({43.022109375000007, 83.398463026321778}_({42.904775455000006, 83.927629764410156}_({43.022109375000007, 83.398463026321778}_({42.246609375000006, 84.466281948655123}_({41.846940710000005, 84.648998051518717}_({42.646278040000006, 84.283565845791529}_({40.822109375000004, 84.542289756345511}_({40.352773695000003, 84.429612228699071}_({41.372112125000008, 84.674333734056162}_({39.617609375000001, 83.989114891033481}_({39.283941040000002, 83.733007331222367}_({39.951277710000006, 84.245222450844622}_({38.792609375000005, 83.081549914792404}_({38.576274960000006, 82.732611131892895}_({39.008943790000004, 83.430488697691928}_({38.314109375000001, 81.949172228572564}_({38.211442195000004, 81.543188779399941}_({38.416776555000006, 82.355155677745216}_({38.160109375000005, 80.724200099674277}_'{38.160109375000005, 80.27686452967427}_({38.160109375000005, 81.134868819674267}_({38.314109375000001, 79.490672228572606}_({38.416776555000006, 79.115651772745252}_'{38.211442195000004, 79.86569268439996}_({38.792609375000005, 78.560549914792432}_({39.008943790000004, 78.315485727691964}_({38.576274960000006, 78.805614101892928}_({39.623109375000006, 78.050435324208479}_({39.960444395000003, 77.955421417204349}_({39.285774355000008, 78.145449231212609}_({40.833109375000006, 78.076930622695414}_({41.177777765000002, 78.159678182060759}_({40.363773695000006, 77.964253095049003}_({41.751609375000001, 78.467942962910513}_({42.019277380000013, 78.645871600396362}_({41.483941370000004, 78.290014325424636}_({42.444609375000006, 79.107317542953012}_({42.638943680000004, 79.355640756744123}_({42.250275070000008, 78.858994329161931}_({42.901109375000004, 79.937413496473084}_({43.011109925000007, 80.242490352015238}_({42.791108825000002, 79.632336640930959}_({43.099109375000005, 80.886949090770969}_({43.099109375000005, 80.886949090770969}_({43.077109265000004, 80.558999051662539}_'{44.144109375000006, 81.13783139400968}_({44.041442195000009, 80.123178234837013}_'{44.144109375000006, 81.13783139400968}_({43.121109375000003, 78.582230823470724}_({42.541773145000001, 77.893141750282155}_({43.700445605000006, 79.271319896659264}_({40.745109375000006, 77.186803691896358}_({40.136439665000005, 77.040675023229909}_({41.749781065000001, 77.428004024514479}_({39.150109375000007, 77.117378071163586}_({38.695440435000002, 77.217222761256096}_({39.604778314999997, 77.017533381071047}_({38.017109375000004, 77.708868837125806}_'{37.716441205000002, 78.00335329597732}_({38.317777545000006, 77.414384378274292}_({37.340609375000007, 78.844455556608096}_({37.190275290000002, 79.307032696033872}_({37.490943460000004, 78.381878417182349}_'{37.115109375000003, 80.39631779643554}_({37.115109374999996, 80.968320656435537}_({37.115109374999996, 79.824314936435542}_'{37.357109375000007, 82.06591685613293}_({37.518443515000008, 82.606985601261357}_({37.195775235000006, 81.524848111004474}_({38.066609375000006, 83.550752735700243}_'{38.378277600000011, 83.99957952640294}_({37.754941150000001, 83.101925944997518}_({39.232609375000003, 84.716184568787654}_({39.698278370000004, 85.044316218249335}_({38.766940380000001, 84.388052919325972}_({40.833109375000006, 85.424930622695385}_'{41.24377809500001, 85.523523459385999}_({40.231773035000003, 85.280562540398407}_({41.999109375000003, 85.539862455782796}_({42.365777875000006, 85.517891224256559}_({41.632440875000007, 85.561833687309033}_({42.978109375000003, 85.290899560922227}_({43.264110805000008, 85.146894699331781}_({42.692107945000011, 85.434904422512673}_({43.693109375000006, 84.665055873664485}_({43.883776994999998, 84.391829524270875}_({43.502441755000007, 84.938282223058152}_({44.067109375000008, 83.649345329560489}_({44.067109375000008, 83.649345329560489}_({44.008442415000012, 84.053262728604679}_({43.022109375000007, 83.398463026321778}_({43.022109375000007, 83.398463026321778}_({43.022109375000007, 83.398463026321778}e"_6uh  $ 0 < H T ` l x    ) 5 A M Y e q }  " . 5 C O [ g s   $ 0 < H T ` l x   , 8 D P \ h t p܁݁ށ߁      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPV!#&'("*+,-M@V@MV@VMN  C "     M`:W<>':(`*Ma`P^]_]^"`aL0.6 0.6 0.63e"6V89:">V<>PT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M!'I:\(%`*'q`^d]_]^")`aL0.4 0.4 0.43e",6-.V89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"AvLp7 " M@MJKMMN: ́́΀z" MRU`VMMZMˀzɁ" M^Ka`bMMfMȀzƁ" MjZm`nM@MŀzÁ  "M`M@yM{|f €z_({113.47812500000002, 96.250390625000009}_({113.47812500000002, 96.250390625000009}_({113.47812500000002, 96.250390625000009}_({99.056250000000006, 88.161328125000011}_({99.056250000000006, 88.161328125000011}_({99.056250000000006, 88.161328125000011}_({80.251562500000006, 92.976171875000006}_({80.251562500000006, 92.976171875000006}_({80.251562500000006, 92.976171875000006}_({95.893359375000003, 99.782421875000011}_({95.893359375000003, 99.782421875000011}_({95.893359375000003, 99.782421875000011}_({86.415234374999997, 93.280859375000006}_({86.415234374999997, 93.280859375000006}_({86.415234374999997, 93.280859375000006}e"6KZfV!#&'("*+,-M@V@MV@VMN  ܀C "     M`:W<>':(`*Mց׀a`ـP؀ҁЁۀ^]Ӏ_]^"`aL0.6 0.6 0.63e"6ԁՀV89:">V<>рPT89:">>сҀTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6ҁ݀Vc"    def:gWM:l:W>:M'I:\(`*q`ށ^d]߀_]^"`aL0.4 0.4 0.43e"6V89:">V\>݀dT89:">>݁ހTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " M@M  M : Ёz" M`M@Mz Ё" M !`"M@&Mz Ё" M*-`.M@2Mz Ё" M6&9`:M@Mz Ё "M`M@EMGH2 z_!{69.782812500000006, 90.69140625}_!{69.782812500000006, 90.69140625}_!{69.782812500000006, 90.69140625}_({100.79335937500001, 83.373828125000003}_({100.79335937500001, 83.373828125000003}_({100.79335937500001, 83.373828125000003}_{100.94179687500001, 55.5}_{100.94179687500001, 55.5}_{100.94179687500001, 55.5}_({68.017968749999994, 65.328906250000003}_({68.017968749999994, 65.328906250000003}_({68.017968749999994, 65.328906250000003}_({67.870703125000006, 91.667968750000014}_({67.870703125000006, 91.667968750000014}_({67.870703125000006, 91.667968750000014}_({93.776953125000006, 101.13710937499999}_({93.776953125000006, 101.13710937499999}_({93.776953125000006, 101.13710937499999}e"^6 &2V!#&'("*+,-hMj@lV@MpqV@VMN#  C "     vMx`y:W|<~>':(`*M  a` P  ^]_]^"`aL0.6 0.6 0.63e"6V89:">lV<>PT89:">l>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M'I:\(`*q`^d]_]^"`aL0.4 0.4 0.43e"6V89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " M@MpM:  !"z "M`M@Mh z_!{67.948046875000003, 71.43359375}_!{67.948046875000003, 71.43359375}_!{67.948046875000003, 71.43359375}_ {88.7890625, 65.558984374999994}_ {88.7890625, 65.558984374999994}_ {88.7890625, 65.558984374999994}e"6hpV!#&'("*+,-M@V@MV@VMN=M % @0C "     M` :W <>':(`*M.*+a`-P,&$/^]'_]^"`aL0.6 0.6 0.63e"6()V89:">V<>%PT89:">>%&TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"1621Vc"    def:gW5M7:8l:W;>=>:MA'I:\(E`*G:67q`982$;^d]3_<]^"I`aL0.4 0.4 0.43e"L6MN45V89:">2V\>1dT89:">2>>12TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"avLp7 " M@MjkMmn: $J>KLz" Mru`vM@zMIz=GH $?" M~k`M@MFz>DE $@ "M`M@Mz$ ABCz?_({102.56601562500001, 56.248828125000003}_({102.56601562500001, 56.248828125000003}_({102.56601562500001, 56.248828125000003}_({122.32773437500002, 72.188281250000003}_({122.32773437500002, 72.188281250000003}_({122.32773437500002, 72.188281250000003}_({122.15781250000002, 96.316015625000006}_({122.15781250000002, 96.316015625000006}_({122.15781250000002, 96.316015625000006}_({102.23476562500001, 84.106250000000003}_({102.23476562500001, 84.106250000000003}_({102.23476562500001, 84.106250000000003}e"6kz=>?@V!#&'("*+,-M@V@MV@VMNgs O iZC "     M`:W<>':(`*MXTUa`WPVPNY^]Q_]^"`aL0.6 0.6 0.63e"6΁RSV89:">V<>OPT89:">>OPTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6[Vc"    def:gWM:l:W>:M'I:\(`*d`aq`cb\Ne^d]]_f]^"`aL0.4 0.4 0.43e"6^_V89:">V\>[dT89:">>[\TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " MMMM:Nphqrz" M"%`&MMMozgmnNi "M`MM1M34Njklzh_({91.016015625000009, 58.502734375000003}_({91.101544851983462, 64.525836062270471}_({91.016015625000009, 58.502734375000003}_({91.349426222617225, 76.656674853478108}_({91.423054981744855, 79.089085318985383}_'{91.23316782896714, 70.599718999540968}_({91.518750000000011, 83.969531250000003}_({91.518750000000011, 83.969531250000003}_&{91.410746240872413, 81.5475374511594}e"A6ghiV!#&'("*+,-HMJ@LV@MPQV@VMN u C "     VMX`Y:W\<^>`b':(e`*M~z{a`}P|vt^]w_]^"i`aL0.6 0.6 0.63e"l6mnxyV89:">LV<>uPT89:">L`>uvTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gWM:l:W>:M'I:\(`*q`t^d]_]^"`aL0.4 0.4 0.43e"6V89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 " M@MPM: tz "M`M@MHt z_({91.569791666666674, 76.697526041666663}_({91.569791666666674, 76.697526041666663}_({91.569791666666674, 76.697526041666663}_!{100.54843750000001, 74.44140625}_!{100.54843750000001, 74.44140625}_!{100.54843750000001, 74.44140625}e"6HPV!#&'("*+,-M@V@MV@VMN  C "     M::W>':(`*@a`^]_ z^"9a_NSCustomColorSpaceE0.253"TNSIDyz\NSColorSpace~\NSColorSpace]^"`aL0.6 0.6 0.63e" 6  V89:">V<>PT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6Vc"    def:gW"M$:%l:W(>*+:M.'I:\(2`*4q`^d]_]^"6`aL0.4 0.4 0.43e"96:;V89:">V\>dT89:">+>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"NvLp7 " M@MWXMZ[: €z" M_b`cM@gMz " MkXn`oM@sMz " Mwgz`{M@Mz  "M`@@Ms  z_"{93.277734375000009, 80.302734375}_"{93.277734375000009, 80.302734375}_"{93.277734375000009, 80.302734375}_({98.163281250000011, 78.995182291666666}_({98.163281250000011, 78.995182291666666}_({98.163281250000011, 78.995182291666666}_({98.151953125000006, 81.398697916666663}_({98.151953125000006, 81.398697916666663}_({98.151953125000006, 81.398697916666663}_({93.256510416666671, 82.557942708333329}_({93.256510416666671, 82.557942708333329}_({93.256510416666671, 82.557942708333329}e"6XgsV!#&'("*+,-M@V@MV@VMN  рC "     M::W>':(`*@ˁ̀a`΁Ɓ̀ǁāЀ^]Ȁ_ z^"9aF1 0.53]^"`aL0.6 0.6 0.63e"6ȁɁʀV89:">V<>ŀPT89:">>ŁǀTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"6܁ҀVc"    def:gWM:l:W>:M'I:\(`*ׁ؀q`ڀفӁ܀^d]Ԁ_]^"`aL0.4 0.4 0.43e"6ՁրV89:">V\>ҀdT89:">>ҁӀTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e" vLp7 " M@MM: āz" M` M@$Mzށ ā" M(+`,M@0Mz߁ ā" M4$7`8M@<Mz ā" M@0C`DM@HMz ā" ML<O`PM@Mz ā "M`@@MH  z_({86.074739583333326, 91.577083333333334}_({86.074739583333326, 91.577083333333334}_({86.074739583333326, 91.577083333333334}_({98.426302083333326, 88.456250000000011}_({98.426302083333326, 88.456250000000011}_({98.426302083333326, 88.456250000000011}_({112.89166666666668, 97.971354166666671}_({112.89166666666668, 97.971354166666671}_({112.89166666666668, 97.971354166666671}_({118.49947916666667, 100.39791666666667}_({118.49947916666667, 100.39791666666667}_({118.49947916666667, 100.39791666666667}_({104.03880208333334, 103.20026041666668}_({104.03880208333334, 103.20026041666668}_({104.03880208333334, 103.20026041666668}_({99.073177083333348, 100.97890625000001}_({99.073177083333348, 100.97890625000001}_({99.073177083333348, 100.97890625000001}e"q6$0<Hށ߁V!#&'("*+,-{M}@>V@MV@VM :C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6Vc"    def:gWM:l:W>:M'I:\(`*q`^d]_]^"`aL0.4 0.4 0.43e"6V89:">V\>dT89:">>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({103.19296875000002, 101.37734375000002}_({109.85338541666668, 100.27942708333335}!#&'("*+,-M@>V@MV@VM  : C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6с Vc"    def:gWM:l:W>:M'I:\(`*q`  ^d]_]^"`aL0.4 0.4 0.43e"6V89:">V\> dT89:">>  TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({99.792968750000014, 99.777343750000014}_({107.37786458333335, 98.518489583333348}!#&'("*+,-M @>V@MV@VM) *:C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6Vc"    def:gWM:l:W >"#:M&'I:\(*`*,&"#q`%$'^d]_(]^".`aL0.4 0.4 0.43e"1623 !V89:">V\>dT89:">#>TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"FvLp7 _({98.092968750000011, 97.977343750000017}_({105.82682291666667, 96.658333333333346}!#&'("*+,-MMO@>V@MTVV@VM,: ;:-C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"\6].Vc"    def:gW`Mb:cl:Wf>hi:Ml'I:\(p`*r734q`65/+8^d]0_9]^"t`aL0.4 0.4 0.43e"w6xy12V89:">]V\>.dT89:">]i>./TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({95.892968750000023, 96.477343750000017}_ {103.621875, 94.742187500000014}!#&'("*+,-M@>V@MV@VM=K L:>C _*{{0.79296875, 19.177343750000006}, {0, 0}}e"6?Vc"    def:gWM:l:W>:M'I:\(`*HDEq`GF@<I^d]A_J]^"`aL0.4 0.4 0.43e"6BCV89:">V\>?dT89:">>?@TV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 _({93.092968750000011, 94.477343750000017}_({99.834895833333348, 92.602343750000003}"::M@MRTN U!X">BMO !de"nPQRS #@ia-#@#"N#@ia-"N#@#ZBackgroundde"nVW #@#"M#@#e"vY  !#&'(  "*+,-M@V@MVVV@VMUdimLKVcornRXVcornRYZ] ^ xkM de"n[\ ]cornerRadiusX]cornerRadiusY_#{{0, 0}, {140, 187.30000000000001}}"     $M&`':W*+,>.0':(3`*@iefa`h_g`Yj^]a_ ]^"7`aO0.8 0 0.013333333333]^":`aF1 0 03e"=6>?bcV89:"><>^PT89:">VI>^dT]^"L`aL0.6 0.6 0.63V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"U6VlVc"    def:gWYM[:\l:W_>ab:@e'I:\(i`*kuqrq`tsmY v^d]n_w]^"m`aL0.4 0.4 0.43e"p6qropV89:">VV\>ldT89:">Vb>lmTV{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}V{0, 0}e"vLp7 yz\PCRectVector~\PCRectVector\PCPathVector_PCRectBasedVectorXPCVectorZPCDrawableXPCObjecte"vրC yzWPCFrame~WPCFrame_PCMetadataObjectZPCDrawableXPCObjecte"v| "  MM>>:>@MMBYauSizCropVnewFacUapIn1TpathTapIDUcropRUapIn2UisRelUisColTcropVvarVal~}  _!{{6, 29.650000000000006}, {0, 0}}Zcupspm.png" @R>@XUcodeSUprColVprShTiSfraVcodePlVcodeFrUcodeFTsnShVexPropTpropUgenCHUgrTypVanLooCVprLinCUcodeL  |de"n<P V{JFIF}U{GIF}_"kCGImageDestinationBackgroundColorU{PNG}V{TIFF}_*kCGImageDestinationLossyCompressionQualityde"n de"n de"n de"n #?Zpublic.png]public.folderde"  n ]^"`aL0.5 0 0 0.53SiosUcocoaUtouchVMyViewVUIViewyz_PCBitmapProperties~_PCBitmapPropertiesXPCObjectyzYPCFactory ~YPCFactoryZPCDrawableXPCObject"  MM>%>:>@MM.BN  _cupspm-icon.png" 2@R7>:;@>@  de"DKnEFGHIJLM<OPQP V{JFIF}U{GIF}_"kCGImageDestinationBackgroundColorU{PNG}V{TIFF}_*kCGImageDestinationLossyCompressionQualityde"Z[n de"^_n de"bcn de"fgn #?]public.folderde"lmn ]^"p`aL0.5 0 0 0.53VMyViewVUIViewe"u6VYselection_{140, 187.30000000000001}z^"z9aE0.753_CICheckerboardGenerator" >@R>@ Áā Àde"n<P _"kCGImageDestinationBackgroundColorV{JFIF}U{GIF}V{TIFF}U{PNG}_*kCGImageDestinationLossyCompressionQualityde"n de"n de"n [Compressionde"n #?_com.likethought.opacity.opacityde"n ]^"`aJ1 0 0 0.53SmacVquartz_MyDrawingFunctionde"nρƁǁȁɁʁˁ́́ΩсρρЁсρҁӁρπ _framePickerVisibleZhideRulers[windowFrame_layerViewDimension]hideVariablesZexpansionsYprintInfo]toolbarHidden_editFrameMetadata_{{0, 0}, {1440, 849}}#@i`de"n "\NSAttributesde"nՁցׁ؁فځہܨ݁ށށ߁݁ _NSHorizontallyCentered]NSRightMargin\NSLeftMargin_NSHorizonalPagination_NSVerticalPagination_NSVerticallyCentered[NSTopMargin^NSBottomMargin "B"Byz[NSPrintInfo~[NSPrintInfode"n "| _"com.likethought.opacity.preview.ui_(com.likethought.opacity.preview.elementsWfactory_#com.likethought.opacity.preview.web_&com.likethought.opacity.preview.cursorTtype_&com.likethought.opacity.preview.iphonede",0n-/<3P Ucolor[resolutionse"869:;<V#?#?de"AEnBCDρρ݀ VstatusWtoolbarTdockde"NQnOPRS WaddressUimage_#http://likethought.com/opacity/web/_,http://likethought.com/opacity/web/image.pngde"Z_n[]-`ab<P XhotspotXXhotspotY#@#@=ffffhde"jsnk-mnopqt<vwty P     UrectXUrectHUrectWUrectYTleftStop#@4#@F#@i"yzWPCImage~WPCImage_PCMetadataObjectZPCDrawableXPCObject_NSKeyedArchiverTroot"+5:? a g * 2 : > D I O U Y ` h n v z   %+29@ELTZ\^acfhjknpy{~ "1DMVY[]kt 159;DFHQ^er{#%.02;>@B[`flnpr{~ $(.38=>@BCEGIJSUjlnprt(6>IRWdgilnpy "(,02345679;=>@AWdmz|~"<CVciv}38MZbgir!":GIKMR_hjlnpy{}  !$&)+-6CENPWdgilnpy  \cjry $)18<@IPW]dmqw{#%')+4CL[fo1<ENQSU$13<ACEG\^`bdy{}+6?lv},-/135789;=>oprtvxz{|~  ? H V _ m x !*!U!!!"","W"""""""""""""""## ##]#_#a#b#d#e#g#h#i#k#m#o#q#r#s###################$$$$$"$$$&$($=$?$A$C$E$Z$\$^$`$b$i$p$w$~$$$$$$%%%%%%%%%% %"%$%%%'%)%+%-%/%1%3%@%M%O%X%]%_%a%c%x%z%|%~%%%%%%%%%%%%%%%%%&& & & & &&&&&&&I&J&L&N&P&R&T&U&V&X&Z&[&&&&&&&&&&&&&&&&&&&&&&&''1'\'''((3(^(((((((((()B)D)F)G)I)J)L)M)N)P)R)T)V)W)X))))))))))))))))))))))*** * * *"*$*&*(***?*A*C*E*G*N*U*\*c*j*q*z*}*********+++++ + + +++++++%+2+4+=+B+D+F+H+]+_+a+c+e+z+|+~++++++++++++++++++++++++,.,/,1,3,5,7,9,:,;,=,?,@,q,r,t,v,x,z,|,},~,,,,,,,,,,,,,,,-->-i---..@.k........./$/&/(/)/,/-///0/1/3/5/7/9/:/;///////////////////////////000 0 0 0"0$0&0(0*01080?0F0M0T0]0`0b0d000000000000000000001111 1%1'1)1+1@1B1D1F1H1]1_1a1c1e1l1s1z1111111111111111111222222222 2"2$2%2R2S2T2V2W2Y2Z2\2^2`2b2223393d3333333334D4F4I4J4M4N4Q4R4S4U4X4[4]4^4_4444444444444444444455 555555456595;5=5R5T5W5Z5\5c5j5q5x5555556 6 66666666 6#6&6'6*6,6.606365686E6R6T6]6b6e6h6j666666666666666666666777777777"7%7'7X7Y7\7^7a7d7g7h7i7l7o7p7777777777778838^8889 959>9E9H9K9N9P999999999999999999999:e:h:i:l:o:q:s:v:x:{:~:::::::::::::::::::::::::;;; ;;;;%;,;5;:;<;>;@;k;;;;;;;;;<=S=U=X=Z=\=q=s=v=y={==========>)>,>->0>3>5>7>:><>?>B>E>F>I>K>M>O>R>T>W>d>q>s>|>>>>>>>>>>>>>>>>>>>>>>????1?2?3?4?7?:?=?>?A?D?F?w?x?{?}????????????????????@ @ @ @@@@@@@@ @!@B@C@D@G@H@J@K@N@y@@@A%APA{AAAB'BRB[BfBiBlBoBrBuBwBBBBBBBBBBBBBBCC C CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDD!D(D/D6D=DDDKDTDYD[D]D_DDDDDDEEEEEE E EEEE>EGEJEMEOEEEEEEEEEEEEEEEEEEEEEF F FFFF F"F7F9FF@FUFWFZF]F_FfFmFtF{FFFFFFFFFG:G]?]B]E]F]w]x]{]}]]]]]]]]]]]]]]]]]]]]^ ^ ^ ^^^^^^^^ ^!^R^S^V^X^[^^^a^b^c^f^i^j^^^^^^^^^^^^^^^^^^^^^^^^_-_._1_3_6_9_<_=_>_A_D_E_v_w_z_|____________________`` ` ````````` `Q`R`U`W`Z`]```a`b`e`h`i````````````````````````a,a-a0a2a5a8a;aiAiBiCiFiIiJi{i|iiiiiiiiiiiiiiiiiiiiiij jjjjjjjjj!j$j%jVjWjZj\j_jbjejfjgjjjmjnjjjjjjjjjjjjjjjjjjjjjjjkk1k2k5k7k:k=k@kAkBkEkHkIkzk{k~kkkkkkkkkkkkkkkkkkkkkl l llllllll l#l$lUlVlYl[l^laldlelflilllmllllllllllllllllllllllllm0m1m4m6m9mo?o@oCoFoGoxoyo|o~oooooooooooooooooooop p ppppppppp!p"pSpTpWpYp\p_pbpcpdpgpjpkppppppppppppppppppppppppq.q/q2q4q7q:q=q>q?qBqEqFqwqxq{q}qqqqqqqqqqqqqqqqqqqqr r r rrrrrrrr r!rRrSrVrXr[r^rarbrcrfrirjrrrrrrrrrrrrrrrrrrrrrrrrs-s.s1s3s6s9ssAsDsEsvswszs|sssssssssssssssssssstt t ttttttttt tQtRtUtWtZt]t`tatbtethtittttttttttttttttttttu u5u`uuuv v7vbvvvww2w]wwwxx,xWx|xxxyyFyoyyyzzFzqzzz{{F{q{{{||G|r|||}}I}t}}}~~I~s~~~It Kv̀"Mx΁#Nx΂Itʃ Kv̄"Mxͅ#MrȆHsɇJtÈCnÉCmÊDoŋEpŌFqǍHsɎItʏ Kv̐ Juˑ!Lw͒#EpƓ>i@kBmÖBm×BmØDnÙDnÚDośFqǜHsɝJu˞!Lw͟#NyΠ$Nyϡ%P{Ѣ'R}ӣ)Tդ*Tզ+Vק,Wب-Xة-X٪.Yګ0[ܬ2]ެԭ׭ڭݭ "%(+.147:=@CFILORUX[^adgjmpsvy|ĮǮʮͮЮӮ֮ٮܮ߮ !$'*-035|~ "$%2?AJORUWlnqsuǰʰͰϱBEFILNPSUX[^_bdfhkmp}ձױڱݱ߱ JKLMPSVWZ]_ٲڲݲ߲"#&(+.12369:ghilmpqtwy|ҳ(S~Դ*Uֶ !$&morsvwz{|~ #02;@CFH]_bdf{}367:=?ADFILOPSUWY\^an{}Ƹȸ˸θи׸޸ ;<=>ADGHKNPʹ˹ιйӹֹٹڹ۹޹"#$'*+\]`behklmpstں"Mxݻ%P{Ѽ'R} lopsvxz}ľǾɾ޾ ")09SUX[]dkryÀÇÐÓÖØ !$'(+-/1469FSU^cfikĀĂąćĉĞĠģĦĨįĶĽ #&(YZ]_behijmpqŢţŦŨūŮűŲųŶŹź'R}ƨ)TǪ  gilmpqtuvx{~ȀȁȂ *,5:=@BWY\^`uwz}Ɇɍɔɛɢɩɲɵɸɺ-01479;>@CFIJMOQSVX[huwʀʅʈʋʍʢʤʧʩʫ5678;>ABEHJ{|ˁ˄ˇˊˋˌˏ˒˓+V̬́,U^ehknpͷ͹ͼͽ589ADFڹڼڽ .0357LNQTV]dkryۀۉێېے۔ PQTVY\_`adghܙܚܝܟܢܥܨܩܪܭܱܰ+,/147:;?lux{} +8:CHKNPegjln!dghklnopsvy{|}.1258:ADGJMP]`cehknpw}  )4BOPQS`mosy IJKMPSUWYZ\]^acu ),/147:GHJTp} %258;>ADQSVY\_bd ()*,5Wdefhu !,8M[fp~ (+.147:=@B[iv$'*-0369HKNQTWZ]_ 4AHKNQXZ]`bht} Bq~"%(+-39?EJNW`iktvycups-2.4.7/cups/cupspm.md0000644000175000017500000011424114502571342015167 0ustar zdohnalzdohnal--- title: CUPS Programming Manual author: Michael R Sweet copyright: Copyright © 2021-2023 by OpenPrinting. All Rights Reserved. version: 2.4.0 ... > Please [file issues on GitHub](https://github.com/openprinting/cups/issues) to > provide feedback on this document. # Introduction CUPS provides the "cups" library to talk to the different parts of CUPS and with Internet Printing Protocol (IPP) printers. The "cups" library functions are accessed by including the `` header. CUPS is based on the Internet Printing Protocol ("IPP"), which allows clients (applications) to communicate with a server (the scheduler, printers, etc.) to get a list of destinations, send print jobs, and so forth. You identify which server you want to communicate with using a pointer to the opaque structure `http_t`. The `CUPS_HTTP_DEFAULT` constant can be used when you want to talk to the CUPS scheduler. ## Guidelines When writing software (other than printer drivers) that uses the "cups" library: - Do not use undocumented or deprecated APIs, - Do not rely on pre-configured printers, - Do not assume that printers support specific features or formats, and - Do not rely on implementation details (PPDs, etc.) CUPS is designed to insulate users and developers from the implementation details of printers and file formats. The goal is to allow an application to supply a print file in a standard format with the user intent ("print four copies, two-sided on A4 media, and staple each copy") and have the printing system manage the printer communication and format conversion needed. Similarly, printer and job management applications can use standard query operations to obtain the status information in a common, generic form and use standard management operations to control the state of those printers and jobs. > **Note:** > > CUPS printer drivers necessarily depend on specific file formats and certain > implementation details of the CUPS software. Please consult the Postscript > and raster printer driver developer documentation on the > [OpenPrinting CUPS website](https://openprinting.github.io/cups) for more > information. ## Terms Used in This Document A *Destination* is a printer or print queue that accepts print jobs. A *Print Job* is a collection of one or more documents that are processed by a destination using options supplied when creating the job. A *Document* is a file (JPEG image, PDF file, etc.) suitable for printing. An *Option* controls some aspect of printing, such as the media used. *Media* is the sheets or roll that is printed on. An *Attribute* is an option encoded for an Internet Printing Protocol (IPP) request. ## Compiling Programs That Use the CUPS API The CUPS libraries can be used from any C, C++, or Objective-C program. The method of compiling against the libraries varies depending on the operating system and installation of CUPS. The following sections show how to compile a simple program (shown below) in two common environments. The following simple program lists the available destinations: #include #include int print_dest(void *user_data, unsigned flags, cups_dest_t *dest) { if (dest->instance) printf("%s/%s\n", dest->name, dest->instance); else puts(dest->name); return (1); } int main(void) { cupsEnumDests(CUPS_DEST_FLAGS_NONE, 1000, NULL, 0, 0, print_dest, NULL); return (0); } ### Compiling with Xcode In Xcode, choose *New Project...* from the *File* menu (or press SHIFT+CMD+N), then select the *Command Line Tool* under the macOS Application project type. Click *Next* and enter a name for the project, for example "firstcups". Click *Next* and choose a project directory. The click *Next* to create the project. In the project window, click on the *Build Phases* group and expand the *Link Binary with Libraries* section. Click *+*, type "libcups" to show the library, and then double-click on `libcups.tbd`. Finally, click on the `main.c` file in the sidebar and copy the example program to the file. Build and run (CMD+R) to see the list of destinations. ### Compiling with GCC From the command-line, create a file called `simple.c` using your favorite editor, copy the example to this file, and save. Then run the following command to compile it with GCC and run it: gcc -o simple `cups-config --cflags` simple.c `cups-config --libs` ./simple The `cups-config` command provides the compiler flags (`cups-config --cflags`) and libraries (`cups-config --libs`) needed for the local system. # Working with Destinations Destinations, which in CUPS represent individual printers or classes (collections or pools) of printers, are represented by the `cups_dest_t` structure which includes the name \(`name`), instance \(`instance`, saved options/settings), whether the destination is the default for the user \(`is_default`), and the options and basic information associated with that destination \(`num_options` and `options`). Historically destinations have been manually maintained by the administrator of a system or network, but CUPS also supports dynamic discovery of destinations on the current network. ## Finding Available Destinations The `cupsEnumDests` function finds all of the available destinations: int cupsEnumDests(unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_cb_t cb, void *user_data) The `flags` argument specifies enumeration options, which at present must be `CUPS_DEST_FLAGS_NONE`. The `msec` argument specifies the maximum amount of time that should be used for enumeration in milliseconds - interactive applications should keep this value to 5000 or less when run on the main thread. The `cancel` argument points to an integer variable that, when set to a non-zero value, will cause enumeration to stop as soon as possible. It can be `NULL` if not needed. The `type` and `mask` arguments are bitfields that allow the caller to filter the destinations based on categories and/or capabilities. The destination's "printer-type" value is masked by the `mask` value and compared to the `type` value when filtering. For example, to only enumerate destinations that are hosted on the local system, pass `CUPS_PRINTER_LOCAL` for the `type` argument and `CUPS_PRINTER_DISCOVERED` for the `mask` argument. The following constants can be used for filtering: - `CUPS_PRINTER_CLASS`: A collection of destinations. - `CUPS_PRINTER_FAX`: A facsimile device. - `CUPS_PRINTER_LOCAL`: A local printer or class. This constant has the value 0 (no bits set) and is only used for the `type` argument and is paired with the `CUPS_PRINTER_REMOTE` or `CUPS_PRINTER_DISCOVERED` constant passed in the `mask` argument. - `CUPS_PRINTER_REMOTE`: A remote (shared) printer or class. - `CUPS_PRINTER_DISCOVERED`: An available network printer or class. - `CUPS_PRINTER_BW`: Can do B&W printing. - `CUPS_PRINTER_COLOR`: Can do color printing. - `CUPS_PRINTER_DUPLEX`: Can do two-sided printing. - `CUPS_PRINTER_STAPLE`: Can staple output. - `CUPS_PRINTER_COLLATE`: Can quickly collate copies. - `CUPS_PRINTER_PUNCH`: Can punch output. - `CUPS_PRINTER_COVER`: Can cover output. - `CUPS_PRINTER_BIND`: Can bind output. - `CUPS_PRINTER_SORT`: Can sort output (mailboxes, etc.) - `CUPS_PRINTER_SMALL`: Can print on Letter/Legal/A4-size media. - `CUPS_PRINTER_MEDIUM`: Can print on Tabloid/B/C/A3/A2-size media. - `CUPS_PRINTER_LARGE`: Can print on D/E/A1/A0-size media. - `CUPS_PRINTER_VARIABLE`: Can print on rolls and custom-size media. The `cb` argument specifies a function to call for every destination that is found: typedef int (*cups_dest_cb_t)(void *user_data, unsigned flags, cups_dest_t *dest); The callback function receives a copy of the `user_data` argument along with a bitfield \(`flags`) and the destination that was found. The `flags` argument can have any of the following constant (bit) values set: - `CUPS_DEST_FLAGS_MORE`: There are more destinations coming. - `CUPS_DEST_FLAGS_REMOVED`: The destination has gone away and should be removed from the list of destinations a user can select. - `CUPS_DEST_FLAGS_ERROR`: An error occurred. The reason for the error can be found by calling the `cupsLastError` and/or `cupsLastErrorString` functions. The callback function returns 0 to stop enumeration or 1 to continue. > **Note:** > > The callback function will likely be called multiple times for the > same destination, so it is up to the caller to suppress any duplicate > destinations. The following example shows how to use `cupsEnumDests` to get a filtered array of destinations: typedef struct { int num_dests; cups_dest_t *dests; } my_user_data_t; int my_dest_cb(my_user_data_t *user_data, unsigned flags, cups_dest_t *dest) { if (flags & CUPS_DEST_FLAGS_REMOVED) { /* * Remove destination from array... */ user_data->num_dests = cupsRemoveDest(dest->name, dest->instance, user_data->num_dests, &(user_data->dests)); } else { /* * Add destination to array... */ user_data->num_dests = cupsCopyDest(dest, user_data->num_dests, &(user_data->dests)); } return (1); } int my_get_dests(cups_ptype_t type, cups_ptype_t mask, cups_dest_t **dests) { my_user_data_t user_data = { 0, NULL }; if (!cupsEnumDests(CUPS_DEST_FLAGS_NONE, 1000, NULL, type, mask, (cups_dest_cb_t)my_dest_cb, &user_data)) { /* * An error occurred, free all of the destinations and * return... */ cupsFreeDests(user_data.num_dests, user_data.dests); *dests = NULL; return (0); } /* * Return the destination array... */ *dests = user_data.dests; return (user_data.num_dests); } ## Basic Destination Information The `num_options` and `options` members of the `cups_dest_t` structure provide basic attributes about the destination in addition to the user default options and values for that destination. The following names are predefined for various destination attributes: - "auth-info-required": The type of authentication required for printing to this destination: "none", "username,password", "domain,username,password", or "negotiate" (Kerberos). - "printer-info": The human-readable description of the destination such as "My Laser Printer". - "printer-is-accepting-jobs": "true" if the destination is accepting new jobs, "false" otherwise. - "printer-is-shared": "true" if the destination is being shared with other computers, "false" otherwise. - "printer-location": The human-readable location of the destination such as "Lab 4". - "printer-make-and-model": The human-readable make and model of the destination such as "ExampleCorp LaserPrinter 4000 Series". - "printer-state": "3" if the destination is idle, "4" if the destination is printing a job, and "5" if the destination is stopped. - "printer-state-change-time": The UNIX time when the destination entered the current state. - "printer-state-reasons": Additional comma-delimited state keywords for the destination such as "media-tray-empty-error" and "toner-low-warning". - "printer-type": The `cups_ptype_t` value associated with the destination. - "printer-uri-supported": The URI associated with the destination; if not set, this destination was discovered but is not yet setup as a local printer. Use the `cupsGetOption` function to retrieve the value. For example, the following code gets the make and model of a destination: const char *model = cupsGetOption("printer-make-and-model", dest->num_options, dest->options); ## Detailed Destination Information Once a destination has been chosen, the `cupsCopyDestInfo` function can be used to gather detailed information about the destination: cups_dinfo_t * cupsCopyDestInfo(http_t *http, cups_dest_t *dest); The `http` argument specifies a connection to the CUPS scheduler and is typically the constant `CUPS_HTTP_DEFAULT`. The `dest` argument specifies the destination to query. The `cups_dinfo_t` structure that is returned contains a snapshot of the supported options and their supported, ready, and default values. It also can report constraints between different options and values, and recommend changes to resolve those constraints. ### Getting Supported Options and Values The `cupsCheckDestSupported` function can be used to test whether a particular option or option and value is supported: int cupsCheckDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option, const char *value); The `option` argument specifies the name of the option to check. The following constants can be used to check the various standard options: - `CUPS_COPIES`: Controls the number of copies that are produced. - `CUPS_FINISHINGS`: A comma-delimited list of integer constants that control the finishing processes that are applied to the job, including stapling, punching, and folding. - `CUPS_MEDIA`: Controls the media size that is used, typically one of the following: `CUPS_MEDIA_3X5`, `CUPS_MEDIA_4X6`, `CUPS_MEDIA_5X7`, `CUPS_MEDIA_8X10`, `CUPS_MEDIA_A3`, `CUPS_MEDIA_A4`, `CUPS_MEDIA_A5`, `CUPS_MEDIA_A6`, `CUPS_MEDIA_ENV10`, `CUPS_MEDIA_ENVDL`, `CUPS_MEDIA_LEGAL`, `CUPS_MEDIA_LETTER`, `CUPS_MEDIA_PHOTO_L`, `CUPS_MEDIA_SUPERBA3`, or `CUPS_MEDIA_TABLOID`. - `CUPS_MEDIA_SOURCE`: Controls where the media is pulled from, typically either `CUPS_MEDIA_SOURCE_AUTO` or `CUPS_MEDIA_SOURCE_MANUAL`. - `CUPS_MEDIA_TYPE`: Controls the type of media that is used, typically one of the following: `CUPS_MEDIA_TYPE_AUTO`, `CUPS_MEDIA_TYPE_ENVELOPE`, `CUPS_MEDIA_TYPE_LABELS`, `CUPS_MEDIA_TYPE_LETTERHEAD`, `CUPS_MEDIA_TYPE_PHOTO`, `CUPS_MEDIA_TYPE_PHOTO_GLOSSY`, `CUPS_MEDIA_TYPE_PHOTO_MATTE`, `CUPS_MEDIA_TYPE_PLAIN`, or `CUPS_MEDIA_TYPE_TRANSPARENCY`. - `CUPS_NUMBER_UP`: Controls the number of document pages that are placed on each media side. - `CUPS_ORIENTATION`: Controls the orientation of document pages placed on the media: `CUPS_ORIENTATION_PORTRAIT` or `CUPS_ORIENTATION_LANDSCAPE`. - `CUPS_PRINT_COLOR_MODE`: Controls whether the output is in color \(`CUPS_PRINT_COLOR_MODE_COLOR`), grayscale \(`CUPS_PRINT_COLOR_MODE_MONOCHROME`), or either \(`CUPS_PRINT_COLOR_MODE_AUTO`). - `CUPS_PRINT_QUALITY`: Controls the generate quality of the output: `CUPS_PRINT_QUALITY_DRAFT`, `CUPS_PRINT_QUALITY_NORMAL`, or `CUPS_PRINT_QUALITY_HIGH`. - `CUPS_SIDES`: Controls whether prints are placed on one or both sides of the media: `CUPS_SIDES_ONE_SIDED`, `CUPS_SIDES_TWO_SIDED_PORTRAIT`, or `CUPS_SIDES_TWO_SIDED_LANDSCAPE`. If the `value` argument is `NULL`, the `cupsCheckDestSupported` function returns whether the option is supported by the destination. Otherwise, the function returns whether the specified value of the option is supported. The `cupsFindDestSupported` function returns the IPP attribute containing the supported values for a given option: ipp_attribute_t * cupsFindDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option); For example, the following code prints the supported finishing processes for a destination, if any, to the standard output: cups_dinfo_t *info = cupsCopyDestInfo(CUPS_HTTP_DEFAULT, dest); if (cupsCheckDestSupported(CUPS_HTTP_DEFAULT, dest, info, CUPS_FINISHINGS, NULL)) { ipp_attribute_t *finishings = cupsFindDestSupported(CUPS_HTTP_DEFAULT, dest, info, CUPS_FINISHINGS); int i, count = ippGetCount(finishings); puts("finishings supported:"); for (i = 0; i < count; i ++) printf(" %d\n", ippGetInteger(finishings, i)); } else puts("finishings not supported."); The "job-creation-attributes" option can be queried to get a list of supported options. For example, the following code prints the list of supported options to the standard output: ipp_attribute_t *attrs = cupsFindDestSupported(CUPS_HTTP_DEFAULT, dest, info, "job-creation-attributes"); int i, count = ippGetCount(attrs); for (i = 0; i < count; i ++) puts(ippGetString(attrs, i, NULL)); ### Getting Default Values There are two sets of default values - user defaults that are available via the `num_options` and `options` members of the `cups_dest_t` structure, and destination defaults that available via the `cups_dinfo_t` structure and the `cupsFindDestDefault` function which returns the IPP attribute containing the default value(s) for a given option: ipp_attribute_t * cupsFindDestDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option); The user defaults from `cupsGetOption` should always take preference over the destination defaults. For example, the following code prints the default finishings value(s) to the standard output: const char *def_value = cupsGetOption(CUPS_FINISHINGS, dest->num_options, dest->options); ipp_attribute_t *def_attr = cupsFindDestDefault(CUPS_HTTP_DEFAULT, dest, info, CUPS_FINISHINGS); if (def_value != NULL) { printf("Default finishings: %s\n", def_value); } else { int i, count = ippGetCount(def_attr); printf("Default finishings: %d", ippGetInteger(def_attr, 0)); for (i = 1; i < count; i ++) printf(",%d", ippGetInteger(def_attr, i)); putchar('\n'); } ### Getting Ready (Loaded) Values The finishings and media options also support queries for the ready, or loaded, values. For example, a printer may have punch and staple finishers installed but be out of staples - the supported values will list both punch and staple finishing processes but the ready values will only list the punch processes. Similarly, a printer may support hundreds of different sizes of media but only have a single size loaded at any given time - the ready values are limited to the media that is actually in the printer. The `cupsFindDestReady` function finds the IPP attribute containing the ready values for a given option: ipp_attribute_t * cupsFindDestReady(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option); For example, the following code lists the ready finishing processes: ipp_attribute_t *ready_finishings = cupsFindDestReady(CUPS_HTTP_DEFAULT, dest, info, CUPS_FINISHINGS); if (ready_finishings != NULL) { int i, count = ippGetCount(ready_finishings); puts("finishings ready:"); for (i = 0; i < count; i ++) printf(" %d\n", ippGetInteger(ready_finishings, i)); } else puts("no finishings are ready."); ### Media Size Options CUPS provides functions for querying the dimensions and margins for each of the supported media size options. The `cups_size_t` structure is used to describe a media size: typedef struct cups_size_s { char media[128]; int width, length; int bottom, left, right, top; } cups_size_t; The `width` and `length` members specify the dimensions of the media in hundredths of millimeters (1/2540th of an inch). The `bottom`, `left`, `right`, and `top` members specify the margins of the printable area, also in hundredths of millimeters. The `cupsGetDestMediaByName` and `cupsGetDestMediaBySize` functions lookup the media size information using a standard media size name or dimensions in hundredths of millimeters: int cupsGetDestMediaByName(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *media, unsigned flags, cups_size_t *size); int cupsGetDestMediaBySize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int width, int length, unsigned flags, cups_size_t *size); The `media`, `width`, and `length` arguments specify the size to lookup. The `flags` argument specifies a bitfield controlling various lookup options: - `CUPS_MEDIA_FLAGS_DEFAULT`: Find the closest size supported by the printer. - `CUPS_MEDIA_FLAGS_BORDERLESS`: Find a borderless size. - `CUPS_MEDIA_FLAGS_DUPLEX`: Find a size compatible with two-sided printing. - `CUPS_MEDIA_FLAGS_EXACT`: Find an exact match for the size. - `CUPS_MEDIA_FLAGS_READY`: If the printer supports media sensing or configuration of the media in each tray/source, find the size amongst the "ready" media. If a matching size is found for the destination, the size information is stored in the structure pointed to by the `size` argument and 1 is returned. Otherwise 0 is returned. For example, the following code prints the margins for two-sided printing on US Letter media: cups_size_t size; if (cupsGetDestMediaByName(CUPS_HTTP_DEFAULT, dest, info, CUPS_MEDIA_LETTER, CUPS_MEDIA_FLAGS_DUPLEX, &size)) { puts("Margins for duplex US Letter:"); printf(" Bottom: %.2fin\n", size.bottom / 2540.0); printf(" Left: %.2fin\n", size.left / 2540.0); printf(" Right: %.2fin\n", size.right / 2540.0); printf(" Top: %.2fin\n", size.top / 2540.0); } else puts("Margins for duplex US Letter are not available."); You can also enumerate all of the sizes that match a given `flags` value using the `cupsGetDestMediaByIndex` and `cupsGetDestMediaCount` functions: int cupsGetDestMediaByIndex(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int n, unsigned flags, cups_size_t *size); int cupsGetDestMediaCount(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags); For example, the following code prints the list of ready media and corresponding margins: cups_size_t size; int i; int count = cupsGetDestMediaCount(CUPS_HTTP_DEFAULT, dest, info, CUPS_MEDIA_FLAGS_READY); for (i = 0; i < count; i ++) { if (cupsGetDestMediaByIndex(CUPS_HTTP_DEFAULT, dest, info, i, CUPS_MEDIA_FLAGS_READY, &size)) { printf("%s:\n", size.name); printf(" Width: %.2fin\n", size.width / 2540.0); printf(" Length: %.2fin\n", size.length / 2540.0); printf(" Bottom: %.2fin\n", size.bottom / 2540.0); printf(" Left: %.2fin\n", size.left / 2540.0); printf(" Right: %.2fin\n", size.right / 2540.0); printf(" Top: %.2fin\n", size.top / 2540.0); } } Finally, the `cupsGetDestMediaDefault` function returns the default media size: int cupsGetDestMediaDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size); ### Localizing Options and Values CUPS provides three functions to get localized, human-readable strings in the user's current locale for options and values: `cupsLocalizeDestMedia`, `cupsLocalizeDestOption`, and `cupsLocalizeDestValue`: const char * cupsLocalizeDestMedia(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, unsigned flags, cups_size_t *size); const char * cupsLocalizeDestOption(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option); const char * cupsLocalizeDestValue(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option, const char *value); ## Submitting a Print Job Once you are ready to submit a print job, you create a job using the `cupsCreateDestJob` function: ipp_status_t cupsCreateDestJob(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int *job_id, const char *title, int num_options, cups_option_t *options); The `title` argument specifies a name for the print job such as "My Document". The `num_options` and `options` arguments specify the options for the print job which are allocated using the `cupsAddOption` function. When successful, the job's numeric identifier is stored in the integer pointed to by the `job_id` argument and `IPP_STATUS_OK` is returned. Otherwise, an IPP error status is returned. For example, the following code creates a new job that will print 42 copies of a two-sided US Letter document: int job_id = 0; int num_options = 0; cups_option_t *options = NULL; num_options = cupsAddOption(CUPS_COPIES, "42", num_options, &options); num_options = cupsAddOption(CUPS_MEDIA, CUPS_MEDIA_LETTER, num_options, &options); num_options = cupsAddOption(CUPS_SIDES, CUPS_SIDES_TWO_SIDED_PORTRAIT, num_options, &options); if (cupsCreateDestJob(CUPS_HTTP_DEFAULT, dest, info, &job_id, "My Document", num_options, options) == IPP_STATUS_OK) printf("Created job: %d\n", job_id); else printf("Unable to create job: %s\n", cupsLastErrorString()); Once the job is created, you submit documents for the job using the `cupsStartDestDocument`, `cupsWriteRequestData`, and `cupsFinishDestDocument` functions: http_status_t cupsStartDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id, const char *docname, const char *format, int num_options, cups_option_t *options, int last_document); http_status_t cupsWriteRequestData(http_t *http, const char *buffer, size_t length); ipp_status_t cupsFinishDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info); The `docname` argument specifies the name of the document, typically the original filename. The `format` argument specifies the MIME media type of the document, including the following constants: - `CUPS_FORMAT_JPEG`: "image/jpeg" - `CUPS_FORMAT_PDF`: "application/pdf" - `CUPS_FORMAT_POSTSCRIPT`: "application/postscript" - `CUPS_FORMAT_TEXT`: "text/plain" The `num_options` and `options` arguments specify per-document print options, which at present must be 0 and `NULL`. The `last_document` argument specifies whether this is the last document in the job. For example, the following code submits a PDF file to the job that was just created: FILE *fp = fopen("filename.pdf", "rb"); size_t bytes; char buffer[65536]; if (cupsStartDestDocument(CUPS_HTTP_DEFAULT, dest, info, job_id, "filename.pdf", 0, NULL, 1) == HTTP_STATUS_CONTINUE) { while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) if (cupsWriteRequestData(CUPS_HTTP_DEFAULT, buffer, bytes) != HTTP_STATUS_CONTINUE) break; if (cupsFinishDestDocument(CUPS_HTTP_DEFAULT, dest, info) == IPP_STATUS_OK) puts("Document send succeeded."); else printf("Document send failed: %s\n", cupsLastErrorString()); } fclose(fp); # Sending IPP Requests CUPS provides a rich API for sending IPP requests to the scheduler or printers, typically from management or utility applications whose primary purpose is not to send print jobs. ## Connecting to the Scheduler or Printer The connection to the scheduler or printer is represented by the HTTP connection type `http_t`. The `cupsConnectDest` function connects to the scheduler or printer associated with the destination: http_t * cupsConnectDest(cups_dest_t *dest, unsigned flags, int msec, int *cancel, char *resource, size_t resourcesize, cups_dest_cb_t cb, void *user_data); The `dest` argument specifies the destination to connect to. The `flags` argument specifies whether you want to connect to the scheduler (`CUPS_DEST_FLAGS_NONE`) or device/printer (`CUPS_DEST_FLAGS_DEVICE`) associated with the destination. The `msec` argument specifies how long you are willing to wait for the connection to be established in milliseconds. Specify a value of `-1` to wait indefinitely. The `cancel` argument specifies the address of an integer variable that can be set to a non-zero value to cancel the connection. Specify a value of `NULL` to not provide a cancel variable. The `resource` and `resourcesize` arguments specify the address and size of a character string array to hold the path to use when sending an IPP request. The `cb` and `user_data` arguments specify a destination callback function that returns 1 to continue connecting or 0 to stop. The destination callback work the same way as the one used for the `cupsEnumDests` function. On success, a HTTP connection is returned that can be used to send IPP requests and get IPP responses. For example, the following code connects to the printer associated with a destination with a 30 second timeout: char resource[256]; http_t *http = cupsConnectDest(dest, CUPS_DEST_FLAGS_DEVICE, 30000, NULL, resource, sizeof(resource), NULL, NULL); ## Creating an IPP Request IPP requests are represented by the IPP message type `ipp_t` and each IPP attribute in the request is representing using the type `ipp_attribute_t`. Each IPP request includes an operation code (`IPP_OP_CREATE_JOB`, `IPP_OP_GET_PRINTER_ATTRIBUTES`, etc.) and a 32-bit integer identifier. The `ippNewRequest` function creates a new IPP request: ipp_t * ippNewRequest(ipp_op_t op); The `op` argument specifies the IPP operation code for the request. For example, the following code creates an IPP Get-Printer-Attributes request: ipp_t *request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); The request identifier is automatically set to a unique value for the current process. Each IPP request starts with two IPP attributes, "attributes-charset" and "attributes-natural-language", followed by IPP attribute(s) that specify the target of the operation. The `ippNewRequest` automatically adds the correct "attributes-charset" and "attributes-natural-language" attributes, but you must add the target attribute(s). For example, the following code adds the "printer-uri" attribute to the IPP Get-Printer-Attributes request to specify which printer is being queried: const char *printer_uri = cupsGetOption("device-uri", dest->num_options, dest->options); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); > **Note:** > > If we wanted to query the scheduler instead of the device, we would look > up the "printer-uri-supported" option instead of the "device-uri" value. The `ippAddString` function adds the "printer-uri" attribute to the IPP request. The `IPP_TAG_OPERATION` argument specifies that the attribute is part of the operation. The `IPP_TAG_URI` argument specifies that the value is a Universal Resource Identifier (URI) string. The `NULL` argument specifies there is no language (English, French, Japanese, etc.) associated with the string, and the `printer_uri` argument specifies the string value. The IPP Get-Printer-Attributes request also supports an IPP attribute called "requested-attributes" that lists the attributes and values you are interested in. For example, the following code requests the printer state attributes: static const char * const requested_attributes[] = { "printer-state", "printer-state-message", "printer-state-reasons" }; ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", 3, NULL, requested_attributes); The `ippAddStrings` function adds an attribute with one or more strings, in this case three. The `IPP_TAG_KEYWORD` argument specifies that the strings are keyword values, which are used for attribute names. All strings use the same language (`NULL`), and the attribute will contain the three strings in the array `requested_attributes`. CUPS provides many functions to adding attributes of different types: - `ippAddBoolean` adds a boolean (`IPP_TAG_BOOLEAN`) attribute with one value. - `ippAddInteger` adds an enum (`IPP_TAG_ENUM`) or integer (`IPP_TAG_INTEGER`) attribute with one value. - `ippAddIntegers` adds an enum or integer attribute with one or more values. - `ippAddOctetString` adds an octetString attribute with one value. - `ippAddOutOfBand` adds a admin-defined (`IPP_TAG_ADMINDEFINE`), default (`IPP_TAG_DEFAULT`), delete-attribute (`IPP_TAG_DELETEATTR`), no-value (`IPP_TAG_NOVALUE`), not-settable (`IPP_TAG_NOTSETTABLE`), unknown (`IPP_TAG_UNKNOWN`), or unsupported (`IPP_TAG_UNSUPPORTED_VALUE`) out-of-band attribute. - `ippAddRange` adds a rangeOfInteger attribute with one range. - `ippAddRanges` adds a rangeOfInteger attribute with one or more ranges. - `ippAddResolution` adds a resolution attribute with one resolution. - `ippAddResolutions` adds a resolution attribute with one or more resolutions. - `ippAddString` adds a charset (`IPP_TAG_CHARSET`), keyword (`IPP_TAG_KEYWORD`), mimeMediaType (`IPP_TAG_MIMETYPE`), name (`IPP_TAG_NAME` and `IPP_TAG_NAMELANG`), naturalLanguage (`IPP_TAG_NATURAL_LANGUAGE`), text (`IPP_TAG_TEXT` and `IPP_TAG_TEXTLANG`), uri (`IPP_TAG_URI`), or uriScheme (`IPP_TAG_URISCHEME`) attribute with one value. - `ippAddStrings` adds a charset, keyword, mimeMediaType, name, naturalLanguage, text, uri, or uriScheme attribute with one or more values. ## Sending the IPP Request Once you have created the IPP request, you can send it using the `cupsDoRequest` function. For example, the following code sends the IPP Get-Printer-Attributes request to the destination and saves the response: ipp_t *response = cupsDoRequest(http, request, resource); For requests like Send-Document that include a file, the `cupsDoFileRequest` function should be used: ipp_t *response = cupsDoFileRequest(http, request, resource, filename); Both `cupsDoRequest` and `cupsDoFileRequest` free the IPP request. If a valid IPP response is received, it is stored in a new IPP message (`ipp_t`) and returned to the caller. Otherwise `NULL` is returned. The status from the most recent request can be queried using the `cupsLastError` function, for example: if (cupsLastError() >= IPP_STATUS_ERROR_BAD_REQUEST) { /* request failed */ } A human-readable error message is also available using the `cupsLastErrorString` function: if (cupsLastError() >= IPP_STATUS_ERROR_BAD_REQUEST) { /* request failed */ printf("Request failed: %s\n", cupsLastErrorString()); } ## Processing the IPP Response Each response to an IPP request is also an IPP message (`ipp_t`) with its own IPP attributes (`ipp_attribute_t`) that includes a status code (`IPP_STATUS_OK`, `IPP_STATUS_ERROR_BAD_REQUEST`, etc.) and the corresponding 32-bit integer identifier from the request. For example, the following code finds the printer state attributes and prints their values: ipp_attribute_t *attr; if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) { printf("printer-state=%s\n", ippEnumString("printer-state", ippGetInteger(attr, 0))); } else puts("printer-state=unknown"); if ((attr = ippFindAttribute(response, "printer-state-message", IPP_TAG_TEXT)) != NULL) { printf("printer-state-message=\"%s\"\n", ippGetString(attr, 0, NULL))); } if ((attr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) != NULL) { int i, count = ippGetCount(attr); puts("printer-state-reasons="); for (i = 0; i < count; i ++) printf(" %s\n", ippGetString(attr, i, NULL))); } The `ippGetCount` function returns the number of values in an attribute. The `ippGetInteger` and `ippGetString` functions return a single integer or string value from an attribute. The `ippEnumString` function converts a enum value to its keyword (string) equivalent. Once you are done using the IPP response message, free it using the `ippDelete` function: ippDelete(response); ## Authentication CUPS normally handles authentication through the console. GUI applications should set a password callback using the `cupsSetPasswordCB2` function: void cupsSetPasswordCB2(cups_password_cb2_t cb, void *user_data); The password callback will be called when needed and is responsible for setting the current user name using `cupsSetUser` and returning a string: const char * cups_password_cb2(const char *prompt, http_t *http, const char *method, const char *resource, void *user_data); The `prompt` argument is a string from CUPS that should be displayed to the user. The `http` argument is the connection hosting the request that is being authenticated. The password callback can call the `httpGetField` and `httpGetSubField` functions to look for additional details concerning the authentication challenge. The `method` argument specifies the HTTP method used for the request and is typically "POST". The `resource` argument specifies the path used for the request. The `user_data` argument provides the user data pointer from the `cupsSetPasswordCB2` call. cups-2.4.7/cups/cupspm-icon.png0000644000175000017500000003131014502571342016274 0ustar zdohnalzdohnalPNG  IHDR8|2IDATx@;IjD/ /hw׳LL:κc|3X_/ Zy1;/OW|>LPyyP*4e9H!i9@YyIa6W|n^ A &<WB@YZ>uEAU}FSg IhK<vܶxpǃmm~\ר^G} gTN'@$L%]\/?Pj 0+C oX]MXet24oRiOG~,xHZ>J$WdH[SâQq|8̤hcG -;(O# ]Or!^)R$O%RxW^Ax1rK+BNX?0O`9Z_+YyY?]G+0J|"!|H;7ވE:p`ᅬz1J+77x!`PWWqC~>VRakaEQD ,˗ sMչZƑ&R] ax^Yk_`H/]]jEQB|Im&0=H kv #*,wJ&"u03G^yTxmH>J$WDH$B"V$7Q'#ț?'z=nݏ?v!4&4S;턩I"(EBxL? .̚8тSOu?L~ k+5k7CXz(iopwZ,AeiW HY-- G$L%W_n) 7( P{~%/ZJ|"!|"1g%on'vr^L#5x1^\oEQ$;a_m f@XzZ?'55Ň ԁ!>ԩ9j)3>LZox3aj`-̘{Q3C.†J}ѻr 3;Fuu?YQ!TTIӧpv'ؾ ?OTTȗ^2ew}5"Ƌ`ˁINċs2y"$qEyC< S!|#@6ÿ` lxpJ@c^Jxqqz7R)#%f9>[T0MС|/*6`;%vssmɿ 0'L@e%9@`.E3) Wg[lS 8{"#5(B-RSO_|q[Jc*b nj@8LoA8cy9.y['S{ūe|xyAYEOV2.LxU8˱Jb&e0^(-u|2ͣ ƦjKU(A*ZD9yO2xw Iόyx[8o2MM0!X,}, beh|x]X#t2~^_& rx`wh4젃N?H E,ܶaqA{ U|rVR>~=8ÇA2*BooaFIp>kZg j+XI"e?^?x"|M&*8g`OӦECs<I\WU3gJ<—XMf↓pCc4֩2W0F"hxXlLsqYb;podlYY۶m۶m۶m۶m۶q5sM|UJ\"3;7HV qQ.y(\Pq +>z,4_¥2| Wn(L'C(L*+^a&|N:W,Z h×_4\j/WxMCoHoJoKHޗ>>>>>+PMK:ֵfFB`,ebIVl.a\<Ӽ̛x( ߛ3YY؉k#\vlڬȒS3) !rZ|JKt ռ"$bW C?,˩<7Op{Z왎ٞO~AV^b|4l~*[9-Yɘ 8 x v|jIߔyCgŖAKu`NPK/g6bVbzv\a\s" 5=iTtX5`caS0(_QPO03a2 Kek3_b\ѼʁߚCi? & ]F{8/W Shiɯy寔 keFO4# 7 rQ΋g,BE46HK~vn-4CzAu1攽nq$56i1_4Wܺ 9d׿[3(uGjP< ,`T/A^ԜPgv $+7qw!ϓx^DnrzjOM1e>{>sNO{YػfY|o\tEBxįpWz1à1rl>ܟ}W*-Sb~Ygo M;79Zlh 7"؛ʟ?T}{w|nLIK/wǖP 8,ODa3fδZ\,?suF!Ci#/ bS 0%RdСvAoxİVӣp⫠Hŋ]ǸםÇ߶bw+!eK&< ] Aox%I*Wܣ b?wtN4z_V-i-[p#۴yNzN7})܄4g׷lybzQVA[ꖔ4EpF G0H5Xxx\[=5*: >WRp{< ;w<0A~NSQ}Al{AmzCMY,1mG֮풜<֖-XQ2}zVj]6۫8唏v*#c~~ 4>蘈,Z^=f:,p|P.^~s%%?e]~q-#^}&n}O|\sǪUЎEvIk}7QmۦG"c־I> UW@E ̙(<qN0K b*ep5f+CdJB^{"cs. :͑Vn_ۂذhuNNM|_v;D:ƍogaB|6Q̍A > V|I`cT7 -bs@99B@c82A [jE{F|~h:[1 ޖP_IBjla7ܢ!`NѪ'a:Cs)Iz}geKjKIZ0$/mG] y{!+#?X֢np㯯R|ysxX)QQ2N.L!AM}cɆz24ץߔu(7WXP~}k¾};G"! >d^,:Q[Cڊ/M4xT[SM<^tNM.ǺE>f5uއ<abAʢB~KQV|Tc:G)P3/,7V z~.) /hqNaڛJ} Ÿ|pr#g5UᘙRv ?*mTOc'@UDzznI8@xWHVY$c(;aJJJ(, e2oG;&X;'@'Zv(s3|5`mrZd\ ;ԩho]gl=tX O)^j'<&ll% gl /%loNqs2y-kxv4'X+lQ{ \-sG-SO̘?:6ךEV,}҄8lbNhUP #޿adO qrT_RR%clK&vUN_@HWwF8J<`_K~Ӥ5Cȝ|U#{;)Q4ScƠ^uC]s1* ğ]6~SՁlQnAFr_(58L8סQE{..@X1vsn~ >6I1ZyW\hJ(CaM~|s#7IRNaVWV 4dRGGdu62ؾ5|Éiر0t:^dϭIP"l ;IM#d{#3Uix`5@peajX8)\܇ uf0T{JY$-%^}T8c@O_86pܦ%X?=aB!o39/V?PxR+D*MJ fJ(΅a03uCZV- $ Vws> I@=V=*l}J,ܽ>0[p9C 3\G~MdEcG~IB L͸\%J"zX h;)x‰JYwmqǟ:W_C4j]UVL̩` Y`3ײ_uF[}RUW !D.-GZp&nWsUUTT* #Lൻ4(Q(5`8g5W7kT*L@"!DKld/4bJ!L,vA6MVZTY9tbEi^ 07ZG:L@O>W\)kn`zMպ亸_b,$,7t Սeg_wfl ;t͜ 'N$yƦO?5k>$NJڢx46<%MƋ )L:+;:P]wʳdSQE; !Zaj-oS$CT_":ɥ;/R/"tWFIĄXpz=<ͷFl(*0`BgI 7:7 T.FtsxkCsgĴŞaTSI# {t!94zP˵T_"/ C-tqG$Vs-#hzƌgx RP=\1Na'id#W_aG1G—2I4E$ ;)-0I$HvEX$ky?D6H׍GԧIyiW;7]Y=zS"‹ _q%I*IG1޹V((>|xͅNb.x9|,$a'$,Bܟ^Xٺf.Ed/!aq:;6DYzYu7%r Uy=/3]b)0lS]s]n~  & fgv8䮷ߡ =dq)<u_Z]Sn~C3Xaa'SOCh?)| }I+ @YYn{ʫf| [*퐭k%/E7/6i)-ǫ$*\9ƺ,K0H`Ud7~7+wExM"a)ǃ$2ƒYg7/h=Z%XZR4Z%ǢwܧeUEXz,m3>^C̳;s$Es->#I2`>LR LQ) ^$_>Hr2IG0I>dxXD9 'e!5º:J6̑x mmq B Ѯ -Fo [Ɵz 9s,+L\hx>G'|˭gnvaD1F.&R goTUўh7?3pjM vO"F1oݓ;wBu-N2?3Iz:)I5+3PtM<99DXY&yLٲj6!k4&{YFD#UߟI[Jʆ|>G)v$?/LQG iyK 6ݙ$OW_IdI $JbGꥀ~m'=]ڦDRIf΂#;V_cՙ6m'8$=8tݡk$!eS8R~W5fCܚ߹=@Ҟ0mp.$H>#s Kt"I 2 $UN2?lRM:_ Dη='iD{:NEExfbD$x{C`ga&ߙ!f_t ge;x"ɤ$&r"IXjPj~~״4!I}L&Ofd$|zʒ$/&skD{$2D &ėUX]Gyox?͵z # if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) # define __CUPS_SSIZE_T_DEFINED # include /* Windows does not support the ssize_t type, so map it to __int64... */ typedef __int64 ssize_t; /* @private@ */ # endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */ # include "file.h" # include "ipp.h" # include "language.h" # include "pwg.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define CUPS_VERSION 2.0407 # define CUPS_VERSION_MAJOR 2 # define CUPS_VERSION_MINOR 4 # define CUPS_VERSION_PATCH 7 # define CUPS_BC_FD 3 /* Back-channel file descriptor for * select/poll */ # define CUPS_DATE_ANY (time_t)-1 # define CUPS_EXCLUDE_NONE (const char *)0 # define CUPS_FORMAT_AUTO "application/octet-stream" # define CUPS_FORMAT_COMMAND "application/vnd.cups-command" # define CUPS_FORMAT_JPEG "image/jpeg" # define CUPS_FORMAT_PDF "application/pdf" # define CUPS_FORMAT_POSTSCRIPT "application/postscript" # define CUPS_FORMAT_RAW "application/vnd.cups-raw" # define CUPS_FORMAT_TEXT "text/plain" # define CUPS_HTTP_DEFAULT (http_t *)0 # define CUPS_INCLUDE_ALL (const char *)0 # define CUPS_JOBID_ALL -1 # define CUPS_JOBID_CURRENT 0 # define CUPS_LENGTH_VARIABLE (ssize_t)0 # define CUPS_TIMEOUT_DEFAULT 0 # define CUPS_WHICHJOBS_ALL -1 # define CUPS_WHICHJOBS_ACTIVE 0 # define CUPS_WHICHJOBS_COMPLETED 1 /* Flags for cupsConnectDest and cupsEnumDests */ # define CUPS_DEST_FLAGS_NONE 0x00 /* No flags are set */ # define CUPS_DEST_FLAGS_UNCONNECTED 0x01 /* There is no connection */ # define CUPS_DEST_FLAGS_MORE 0x02 /* There are more destinations */ # define CUPS_DEST_FLAGS_REMOVED 0x04 /* The destination has gone away */ # define CUPS_DEST_FLAGS_ERROR 0x08 /* An error occurred */ # define CUPS_DEST_FLAGS_RESOLVING 0x10 /* The destination address is being * resolved */ # define CUPS_DEST_FLAGS_CONNECTING 0x20 /* A connection is being established */ # define CUPS_DEST_FLAGS_CANCELED 0x40 /* Operation was canceled */ # define CUPS_DEST_FLAGS_DEVICE 0x80 /* For @link cupsConnectDest@: Connect to device */ /* Flags for cupsGetDestMediaByName/Size */ # define CUPS_MEDIA_FLAGS_DEFAULT 0x00 /* Find the closest size supported by * the printer */ # define CUPS_MEDIA_FLAGS_BORDERLESS 0x01 /* Find a borderless size */ # define CUPS_MEDIA_FLAGS_DUPLEX 0x02 /* Find a size compatible with 2-sided * printing */ # define CUPS_MEDIA_FLAGS_EXACT 0x04 /* Find an exact match for the size */ # define CUPS_MEDIA_FLAGS_READY 0x08 /* If the printer supports media * sensing, find the size amongst the * "ready" media. */ /* Options and values */ # define CUPS_COPIES "copies" # define CUPS_COPIES_SUPPORTED "copies-supported" # define CUPS_FINISHINGS "finishings" # define CUPS_FINISHINGS_SUPPORTED "finishings-supported" # define CUPS_FINISHINGS_BIND "7" # define CUPS_FINISHINGS_COVER "6" # define CUPS_FINISHINGS_FOLD "10" # define CUPS_FINISHINGS_NONE "3" # define CUPS_FINISHINGS_PUNCH "5" # define CUPS_FINISHINGS_STAPLE "4" # define CUPS_FINISHINGS_TRIM "11" # define CUPS_MEDIA "media" # define CUPS_MEDIA_READY "media-ready" # define CUPS_MEDIA_SUPPORTED "media-supported" # define CUPS_MEDIA_3X5 "na_index-3x5_3x5in" # define CUPS_MEDIA_4X6 "na_index-4x6_4x6in" # define CUPS_MEDIA_5X7 "na_5x7_5x7in" # define CUPS_MEDIA_8X10 "na_govt-letter_8x10in" # define CUPS_MEDIA_A3 "iso_a3_297x420mm" # define CUPS_MEDIA_A4 "iso_a4_210x297mm" # define CUPS_MEDIA_A5 "iso_a5_148x210mm" # define CUPS_MEDIA_A6 "iso_a6_105x148mm" # define CUPS_MEDIA_ENV10 "na_number-10_4.125x9.5in" # define CUPS_MEDIA_ENVDL "iso_dl_110x220mm" # define CUPS_MEDIA_LEGAL "na_legal_8.5x14in" # define CUPS_MEDIA_LETTER "na_letter_8.5x11in" # define CUPS_MEDIA_PHOTO_L "oe_photo-l_3.5x5in" # define CUPS_MEDIA_SUPERBA3 "na_super-b_13x19in" # define CUPS_MEDIA_TABLOID "na_ledger_11x17in" # define CUPS_MEDIA_SOURCE "media-source" # define CUPS_MEDIA_SOURCE_SUPPORTED "media-source-supported" # define CUPS_MEDIA_SOURCE_AUTO "auto" # define CUPS_MEDIA_SOURCE_MANUAL "manual" # define CUPS_MEDIA_TYPE "media-type" # define CUPS_MEDIA_TYPE_SUPPORTED "media-type-supported" # define CUPS_MEDIA_TYPE_AUTO "auto" # define CUPS_MEDIA_TYPE_ENVELOPE "envelope" # define CUPS_MEDIA_TYPE_LABELS "labels" # define CUPS_MEDIA_TYPE_LETTERHEAD "stationery-letterhead" # define CUPS_MEDIA_TYPE_PHOTO "photographic" # define CUPS_MEDIA_TYPE_PHOTO_GLOSSY "photographic-glossy" # define CUPS_MEDIA_TYPE_PHOTO_MATTE "photographic-matte" # define CUPS_MEDIA_TYPE_PLAIN "stationery" # define CUPS_MEDIA_TYPE_TRANSPARENCY "transparency" # define CUPS_NUMBER_UP "number-up" # define CUPS_NUMBER_UP_SUPPORTED "number-up-supported" # define CUPS_ORIENTATION "orientation-requested" # define CUPS_ORIENTATION_SUPPORTED "orientation-requested-supported" # define CUPS_ORIENTATION_PORTRAIT "3" # define CUPS_ORIENTATION_LANDSCAPE "4" # define CUPS_PRINT_COLOR_MODE "print-color-mode" # define CUPS_PRINT_COLOR_MODE_SUPPORTED "print-color-mode-supported" # define CUPS_PRINT_COLOR_MODE_AUTO "auto" # define CUPS_PRINT_COLOR_MODE_MONOCHROME "monochrome" # define CUPS_PRINT_COLOR_MODE_COLOR "color" # define CUPS_PRINT_QUALITY "print-quality" # define CUPS_PRINT_QUALITY_SUPPORTED "print-quality-supported" # define CUPS_PRINT_QUALITY_DRAFT "3" # define CUPS_PRINT_QUALITY_NORMAL "4" # define CUPS_PRINT_QUALITY_HIGH "5" # define CUPS_SIDES "sides" # define CUPS_SIDES_SUPPORTED "sides-supported" # define CUPS_SIDES_ONE_SIDED "one-sided" # define CUPS_SIDES_TWO_SIDED_PORTRAIT "two-sided-long-edge" # define CUPS_SIDES_TWO_SIDED_LANDSCAPE "two-sided-short-edge" /* * Types and structures... */ typedef unsigned cups_ptype_t; /* Printer type/capability bits */ enum cups_ptype_e /* Printer type/capability bit * constants */ { /* Not a typedef'd enum so we can OR */ CUPS_PRINTER_LOCAL = 0x0000, /* Local printer or class */ CUPS_PRINTER_CLASS = 0x0001, /* Printer class */ CUPS_PRINTER_REMOTE = 0x0002, /* Remote printer or class */ CUPS_PRINTER_BW = 0x0004, /* Can do B&W printing */ CUPS_PRINTER_COLOR = 0x0008, /* Can do color printing */ CUPS_PRINTER_DUPLEX = 0x0010, /* Can do two-sided printing */ CUPS_PRINTER_STAPLE = 0x0020, /* Can staple output */ CUPS_PRINTER_COPIES = 0x0040, /* Can do copies in hardware */ CUPS_PRINTER_COLLATE = 0x0080, /* Can quickly collate copies */ CUPS_PRINTER_PUNCH = 0x0100, /* Can punch output */ CUPS_PRINTER_COVER = 0x0200, /* Can cover output */ CUPS_PRINTER_BIND = 0x0400, /* Can bind output */ CUPS_PRINTER_SORT = 0x0800, /* Can sort output */ CUPS_PRINTER_SMALL = 0x1000, /* Can print on Letter/Legal/A4-size media */ CUPS_PRINTER_MEDIUM = 0x2000, /* Can print on Tabloid/B/C/A3/A2-size media */ CUPS_PRINTER_LARGE = 0x4000, /* Can print on D/E/A1/A0-size media */ CUPS_PRINTER_VARIABLE = 0x8000, /* Can print on rolls and custom-size media */ CUPS_PRINTER_IMPLICIT = 0x10000, /* Implicit class @private@ * @since Deprecated@ */ CUPS_PRINTER_DEFAULT = 0x20000, /* Default printer on network */ CUPS_PRINTER_FAX = 0x40000, /* Fax queue */ CUPS_PRINTER_REJECTING = 0x80000, /* Printer is rejecting jobs */ CUPS_PRINTER_DELETE = 0x100000, /* Delete printer * @deprecated@ @exclude all@ */ CUPS_PRINTER_NOT_SHARED = 0x200000, /* Printer is not shared * @since CUPS 1.2/macOS 10.5@ */ CUPS_PRINTER_AUTHENTICATED = 0x400000,/* Printer requires authentication * @since CUPS 1.2/macOS 10.5@ */ CUPS_PRINTER_COMMANDS = 0x800000, /* Printer supports maintenance commands * @since CUPS 1.2/macOS 10.5@ */ CUPS_PRINTER_DISCOVERED = 0x1000000, /* Printer was discovered @since CUPS 1.2/macOS 10.5@ */ CUPS_PRINTER_SCANNER = 0x2000000, /* Scanner-only device * @since CUPS 1.4/macOS 10.6@ @private@ */ CUPS_PRINTER_MFP = 0x4000000, /* Printer with scanning capabilities * @since CUPS 1.4/macOS 10.6@ @private@ */ CUPS_PRINTER_3D = 0x8000000, /* Printer with 3D capabilities @exclude all@ @private@ */ CUPS_PRINTER_OPTIONS = 0x6fffc /* ~(CLASS | REMOTE | IMPLICIT | * DEFAULT | FAX | REJECTING | DELETE | * NOT_SHARED | AUTHENTICATED | * COMMANDS | DISCOVERED) @private@ */ }; typedef struct cups_option_s /**** Printer Options ****/ { char *name; /* Name of option */ char *value; /* Value of option */ } cups_option_t; typedef struct cups_dest_s /**** Destination ****/ { char *name, /* Printer or class name */ *instance; /* Local instance name or NULL */ int is_default; /* Is this printer the default? */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ } cups_dest_t; typedef struct _cups_dinfo_s cups_dinfo_t; /* Destination capability and status * information @since CUPS 1.6/macOS 10.8@ */ typedef struct cups_job_s /**** Job ****/ { int id; /* The job ID */ char *dest; /* Printer or class name */ char *title; /* Title/job name */ char *user; /* User that submitted the job */ char *format; /* Document format */ ipp_jstate_t state; /* Job state */ int size; /* Size in kilobytes */ int priority; /* Priority (1-100) */ time_t completed_time; /* Time the job was completed */ time_t creation_time; /* Time the job was created */ time_t processing_time; /* Time the job was processed */ } cups_job_t; typedef struct cups_size_s /**** Media Size @since CUPS 1.6/macOS 10.8@ ****/ { char media[128]; /* Media name to use */ int width, /* Width in hundredths of millimeters */ length, /* Length in hundredths of * millimeters */ bottom, /* Bottom margin in hundredths of * millimeters */ left, /* Left margin in hundredths of * millimeters */ right, /* Right margin in hundredths of * millimeters */ top; /* Top margin in hundredths of * millimeters */ } cups_size_t; typedef int (*cups_client_cert_cb_t)(http_t *http, void *tls, cups_array_t *distinguished_names, void *user_data); /* Client credentials callback * @since CUPS 1.5/macOS 10.7@ */ typedef int (*cups_dest_cb_t)(void *user_data, unsigned flags, cups_dest_t *dest); /* Destination enumeration callback * @since CUPS 1.6/macOS 10.8@ */ # ifdef __BLOCKS__ typedef int (^cups_dest_block_t)(unsigned flags, cups_dest_t *dest); /* Destination enumeration block * @since CUPS 1.6/macOS 10.8@ * @exclude all@ */ # endif /* __BLOCKS__ */ typedef const char *(*cups_oauth_cb_t)(http_t *http, const char *realm, const char *scope, const char *resource, void *user_data); /* OAuth callback @since CUPS 2.4@ */ typedef const char *(*cups_password_cb_t)(const char *prompt); /* Password callback @exclude all@ */ typedef const char *(*cups_password_cb2_t)(const char *prompt, http_t *http, const char *method, const char *resource, void *user_data); /* New password callback * @since CUPS 1.4/macOS 10.6@ */ typedef int (*cups_server_cert_cb_t)(http_t *http, void *tls, cups_array_t *certs, void *user_data); /* Server credentials callback * @since CUPS 1.5/macOS 10.7@ */ /* * Functions... */ extern int cupsCancelJob(const char *name, int job_id) _CUPS_PUBLIC; extern ipp_t *cupsDoFileRequest(http_t *http, ipp_t *request, const char *resource, const char *filename) _CUPS_PUBLIC; extern ipp_t *cupsDoRequest(http_t *http, ipp_t *request, const char *resource) _CUPS_PUBLIC; extern http_encryption_t cupsEncryption(void); extern void cupsFreeJobs(int num_jobs, cups_job_t *jobs) _CUPS_PUBLIC; extern int cupsGetClasses(char ***classes) _CUPS_DEPRECATED_MSG("Use cupsEnumDests instead."); extern const char *cupsGetDefault(void) _CUPS_PUBLIC; extern int cupsGetJobs(cups_job_t **jobs, const char *name, int myjobs, int whichjobs) _CUPS_PUBLIC; extern int cupsGetPrinters(char ***printers) _CUPS_DEPRECATED_MSG("Use cupsEnumDests instead."); extern ipp_status_t cupsLastError(void) _CUPS_PUBLIC; extern int cupsPrintFile(const char *name, const char *filename, const char *title, int num_options, cups_option_t *options) _CUPS_PUBLIC; extern int cupsPrintFiles(const char *name, int num_files, const char **files, const char *title, int num_options, cups_option_t *options) _CUPS_PUBLIC; extern char *cupsTempFile(char *filename, int len) _CUPS_DEPRECATED_MSG("Use cupsTempFd or cupsTempFile2 instead."); extern int cupsTempFd(char *filename, int len) _CUPS_PUBLIC; extern int cupsAddDest(const char *name, const char *instance, int num_dests, cups_dest_t **dests) _CUPS_PUBLIC; extern void cupsFreeDests(int num_dests, cups_dest_t *dests) _CUPS_PUBLIC; extern cups_dest_t *cupsGetDest(const char *name, const char *instance, int num_dests, cups_dest_t *dests) _CUPS_PUBLIC; extern int cupsGetDests(cups_dest_t **dests) _CUPS_PUBLIC; extern void cupsSetDests(int num_dests, cups_dest_t *dests) _CUPS_PUBLIC; extern int cupsAddOption(const char *name, const char *value, int num_options, cups_option_t **options) _CUPS_PUBLIC; extern void cupsEncodeOptions(ipp_t *ipp, int num_options, cups_option_t *options) _CUPS_PUBLIC; extern void cupsFreeOptions(int num_options, cups_option_t *options) _CUPS_PUBLIC; extern const char *cupsGetOption(const char *name, int num_options, cups_option_t *options) _CUPS_PUBLIC; extern int cupsParseOptions(const char *arg, int num_options, cups_option_t **options) _CUPS_PUBLIC; extern const char *cupsGetPassword(const char *prompt) _CUPS_PUBLIC; extern const char *cupsServer(void) _CUPS_PUBLIC; extern void cupsSetEncryption(http_encryption_t e) _CUPS_PUBLIC; extern void cupsSetPasswordCB(cups_password_cb_t cb) _CUPS_PUBLIC; extern void cupsSetServer(const char *server) _CUPS_PUBLIC; extern void cupsSetUser(const char *user) _CUPS_PUBLIC; extern const char *cupsUser(void) _CUPS_PUBLIC; /**** New in CUPS 1.1.20 ****/ extern int cupsDoAuthentication(http_t *http, const char *method, const char *resource) _CUPS_API_1_1_20; extern http_status_t cupsGetFile(http_t *http, const char *resource, const char *filename) _CUPS_API_1_1_20; extern http_status_t cupsGetFd(http_t *http, const char *resource, int fd) _CUPS_API_1_1_20; extern http_status_t cupsPutFile(http_t *http, const char *resource, const char *filename) _CUPS_API_1_1_20; extern http_status_t cupsPutFd(http_t *http, const char *resource, int fd) _CUPS_API_1_1_20; /**** New in CUPS 1.1.21 ****/ extern const char *cupsGetDefault2(http_t *http) _CUPS_API_1_1_21; extern int cupsGetDests2(http_t *http, cups_dest_t **dests) _CUPS_API_1_1_21; extern int cupsGetJobs2(http_t *http, cups_job_t **jobs, const char *name, int myjobs, int whichjobs) _CUPS_API_1_1_21; extern int cupsPrintFile2(http_t *http, const char *name, const char *filename, const char *title, int num_options, cups_option_t *options) _CUPS_API_1_1_21; extern int cupsPrintFiles2(http_t *http, const char *name, int num_files, const char **files, const char *title, int num_options, cups_option_t *options) _CUPS_API_1_1_21; extern int cupsSetDests2(http_t *http, int num_dests, cups_dest_t *dests) _CUPS_API_1_1_21; /**** New in CUPS 1.2/macOS 10.5 ****/ extern void cupsEncodeOptions2(ipp_t *ipp, int num_options, cups_option_t *options, ipp_tag_t group_tag) _CUPS_API_1_2; extern const char *cupsLastErrorString(void) _CUPS_API_1_2; extern char *cupsNotifySubject(cups_lang_t *lang, ipp_t *event) _CUPS_API_1_2; extern char *cupsNotifyText(cups_lang_t *lang, ipp_t *event) _CUPS_API_1_2; extern int cupsRemoveOption(const char *name, int num_options, cups_option_t **options) _CUPS_API_1_2; extern cups_file_t *cupsTempFile2(char *filename, int len) _CUPS_API_1_2; /**** New in CUPS 1.3/macOS 10.5 ****/ extern ipp_t *cupsDoIORequest(http_t *http, ipp_t *request, const char *resource, int infile, int outfile) _CUPS_API_1_3; extern int cupsRemoveDest(const char *name, const char *instance, int num_dests, cups_dest_t **dests) _CUPS_API_1_3; extern void cupsSetDefaultDest(const char *name, const char *instance, int num_dests, cups_dest_t *dests) _CUPS_API_1_3; /**** New in CUPS 1.4/macOS 10.6 ****/ extern ipp_status_t cupsCancelJob2(http_t *http, const char *name, int job_id, int purge) _CUPS_API_1_4; extern int cupsCreateJob(http_t *http, const char *name, const char *title, int num_options, cups_option_t *options) _CUPS_API_1_4; extern ipp_status_t cupsFinishDocument(http_t *http, const char *name) _CUPS_API_1_4; extern cups_dest_t *cupsGetNamedDest(http_t *http, const char *name, const char *instance) _CUPS_API_1_4; extern const char *cupsGetPassword2(const char *prompt, http_t *http, const char *method, const char *resource) _CUPS_API_1_4; extern ipp_t *cupsGetResponse(http_t *http, const char *resource) _CUPS_API_1_4; extern ssize_t cupsReadResponseData(http_t *http, char *buffer, size_t length) _CUPS_API_1_4; extern http_status_t cupsSendRequest(http_t *http, ipp_t *request, const char *resource, size_t length) _CUPS_API_1_4; extern void cupsSetPasswordCB2(cups_password_cb2_t cb, void *user_data) _CUPS_API_1_4; extern http_status_t cupsStartDocument(http_t *http, const char *name, int job_id, const char *docname, const char *format, int last_document) _CUPS_API_1_4; extern http_status_t cupsWriteRequestData(http_t *http, const char *buffer, size_t length) _CUPS_API_1_4; /**** New in CUPS 1.5/macOS 10.7 ****/ extern void cupsSetClientCertCB(cups_client_cert_cb_t cb, void *user_data) _CUPS_API_1_5; extern int cupsSetCredentials(cups_array_t *certs) _CUPS_API_1_5; extern void cupsSetServerCertCB(cups_server_cert_cb_t cb, void *user_data) _CUPS_API_1_5; /**** New in CUPS 1.6/macOS 10.8 ****/ extern ipp_status_t cupsCancelDestJob(http_t *http, cups_dest_t *dest, int job_id) _CUPS_API_1_6; extern int cupsCheckDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option, const char *value) _CUPS_API_1_6; extern ipp_status_t cupsCloseDestJob(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id) _CUPS_API_1_6; extern http_t *cupsConnectDest(cups_dest_t *dest, unsigned flags, int msec, int *cancel, char *resource, size_t resourcesize, cups_dest_cb_t cb, void *user_data) _CUPS_API_1_6; # ifdef __BLOCKS__ extern http_t *cupsConnectDestBlock(cups_dest_t *dest, unsigned flags, int msec, int *cancel, char *resource, size_t resourcesize, cups_dest_block_t block) _CUPS_API_1_6; # endif /* __BLOCKS__ */ extern int cupsCopyDest(cups_dest_t *dest, int num_dests, cups_dest_t **dests) _CUPS_API_1_6; extern cups_dinfo_t *cupsCopyDestInfo(http_t *http, cups_dest_t *dest) _CUPS_API_1_6; extern int cupsCopyDestConflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int num_options, cups_option_t *options, const char *new_option, const char *new_value, int *num_conflicts, cups_option_t **conflicts, int *num_resolved, cups_option_t **resolved) _CUPS_API_1_6; extern ipp_status_t cupsCreateDestJob(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int *job_id, const char *title, int num_options, cups_option_t *options) _CUPS_API_1_6; extern int cupsEnumDests(unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_cb_t cb, void *user_data) _CUPS_API_1_6; # ifdef __BLOCKS__ extern int cupsEnumDestsBlock(unsigned flags, int msec, int *cancel, cups_ptype_t type, cups_ptype_t mask, cups_dest_block_t block) _CUPS_API_1_6; # endif /* __BLOCKS__ */ extern ipp_status_t cupsFinishDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info) _CUPS_API_1_6; extern void cupsFreeDestInfo(cups_dinfo_t *dinfo) _CUPS_API_1_6; extern int cupsGetDestMediaByName(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *media, unsigned flags, cups_size_t *size) _CUPS_API_1_6; extern int cupsGetDestMediaBySize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int width, int length, unsigned flags, cups_size_t *size) _CUPS_API_1_6; extern const char *cupsLocalizeDestOption(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option) _CUPS_API_1_6; extern const char *cupsLocalizeDestValue(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, const char *option, const char *value) _CUPS_API_1_6; extern http_status_t cupsStartDestDocument(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id, const char *docname, const char *format, int num_options, cups_option_t *options, int last_document) _CUPS_API_1_6; /* New in CUPS 1.7 */ extern ipp_attribute_t *cupsFindDestDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option) _CUPS_API_1_7; extern ipp_attribute_t *cupsFindDestReady(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option) _CUPS_API_1_7; extern ipp_attribute_t *cupsFindDestSupported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option) _CUPS_API_1_7; extern int cupsGetDestMediaByIndex(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int n, unsigned flags, cups_size_t *size) _CUPS_API_1_7; extern int cupsGetDestMediaCount(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags) _CUPS_API_1_7; extern int cupsGetDestMediaDefault(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size) _CUPS_API_1_7; extern void cupsSetUserAgent(const char *user_agent) _CUPS_API_1_7; extern const char *cupsUserAgent(void) _CUPS_API_1_7; /* New in CUPS 2.0/macOS 10.10 */ extern cups_dest_t *cupsGetDestWithURI(const char *name, const char *uri) _CUPS_API_2_0; extern const char *cupsLocalizeDestMedia(http_t *http, cups_dest_t *dest, cups_dinfo_t *info, unsigned flags, cups_size_t *size) _CUPS_API_2_0; extern int cupsMakeServerCredentials(const char *path, const char *common_name, int num_alt_names, const char **alt_names, time_t expiration_date) _CUPS_API_2_0; extern int cupsSetServerCredentials(const char *path, const char *common_name, int auto_create) _CUPS_API_2_0; /* New in CUPS 2.2/macOS 10.12 */ extern ssize_t cupsHashData(const char *algorithm, const void *data, size_t datalen, unsigned char *hash, size_t hashsize) _CUPS_API_2_2; /* New in CUPS 2.2.4 */ extern int cupsAddIntegerOption(const char *name, int value, int num_options, cups_option_t **options) _CUPS_API_2_2_4; extern int cupsGetIntegerOption(const char *name, int num_options, cups_option_t *options) _CUPS_API_2_2_4; /* New in CUPS 2.2.7 */ extern const char *cupsHashString(const unsigned char *hash, size_t hashsize, char *buffer, size_t bufsize) _CUPS_API_2_2_7; /* New in CUPS 2.3 */ extern int cupsAddDestMediaOptions(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, cups_size_t *size, int num_options, cups_option_t **options) _CUPS_API_2_3; extern ipp_attribute_t *cupsEncodeOption(ipp_t *ipp, ipp_tag_t group_tag, const char *name, const char *value) _CUPS_API_2_3; /* New in CUPS 2.4 */ extern void cupsSetOAuthCB(cups_oauth_cb_t cb, void *data) _CUPS_API_2_4; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_CUPS_H_ */ cups-2.4.7/cups/cups-private.h0000644000175000017500000002434514502571342016136 0ustar zdohnalzdohnal/* * Private definitions for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_CUPS_PRIVATE_H_ # define _CUPS_CUPS_PRIVATE_H_ /* * Include necessary headers... */ # include "string-private.h" # include "array-private.h" # include "ipp-private.h" # include "http-private.h" # include "language-private.h" # include "pwg-private.h" # include "thread-private.h" # include # ifdef __APPLE__ # include # include # endif /* __APPLE__ */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types... */ typedef struct _cups_buffer_s /**** Read/write buffer ****/ { struct _cups_buffer_s *next; /* Next buffer in list */ size_t size; /* Size of buffer */ char used, /* Is this buffer used? */ d[1]; /* Data buffer */ } _cups_buffer_t; typedef struct _cups_raster_error_s /**** Error buffer structure ****/ { char *start, /* Start of buffer */ *current, /* Current position in buffer */ *end; /* End of buffer */ } _cups_raster_error_t; typedef enum _cups_digestoptions_e /**** Digest Options values */ { _CUPS_DIGESTOPTIONS_NONE, /* No Digest authentication options */ _CUPS_DIGESTOPTIONS_DENYMD5 /* Do not use MD5 hashes for digest */ } _cups_digestoptions_t; typedef enum _cups_uatokens_e /**** UserAgentTokens values */ { _CUPS_UATOKENS_NONE, /* Do not send User-Agent */ _CUPS_UATOKENS_PRODUCT_ONLY, /* CUPS IPP */ _CUPS_UATOKENS_MAJOR, /* CUPS/major IPP/2 */ _CUPS_UATOKENS_MINOR, /* CUPS/major.minor IPP/2.1 */ _CUPS_UATOKENS_MINIMAL, /* CUPS/major.minor.patch IPP/2.1 */ _CUPS_UATOKENS_OS, /* CUPS/major.minor.patch (osname osversion) IPP/2.1 */ _CUPS_UATOKENS_FULL /* CUPS/major.minor.patch (osname osversion; architecture) IPP/2.1 */ } _cups_uatokens_t; typedef struct _cups_globals_s /**** CUPS global state data ****/ { /* Multiple places... */ const char *cups_datadir, /* CUPS_DATADIR environment var */ *cups_serverbin,/* CUPS_SERVERBIN environment var */ *cups_serverroot, /* CUPS_SERVERROOT environment var */ *cups_statedir, /* CUPS_STATEDIR environment var */ *home, /* HOME environment var */ *localedir; /* LOCALDIR environment var */ /* adminutil.c */ time_t cupsd_update; /* Last time we got or set cupsd.conf */ char cupsd_hostname[HTTP_MAX_HOST]; /* Hostname for connection */ int cupsd_num_settings; /* Number of server settings */ cups_option_t *cupsd_settings;/* Server settings */ /* auth.c */ # ifdef HAVE_GSSAPI char gss_service_name[32]; /* Kerberos service name */ # endif /* HAVE_GSSAPI */ /* backend.c */ char resolved_uri[1024]; /* Buffer for cupsBackendDeviceURI */ /* debug.c */ # ifdef DEBUG int thread_id; /* Friendly thread ID */ # endif /* DEBUG */ /* file.c */ cups_file_t *stdio_files[3];/* stdin, stdout, stderr */ /* http.c */ char http_date[256]; /* Date+time buffer */ /* http-addr.c */ unsigned ip_addr; /* Packed IPv4 address */ char *ip_ptrs[2]; /* Pointer to packed address */ struct hostent hostent; /* Host entry for IP address */ # ifdef HAVE_GETADDRINFO char hostname[1024]; /* Hostname */ # endif /* HAVE_GETADDRINFO */ int need_res_init; /* Need to reinitialize resolver? */ /* ipp.c */ ipp_uchar_t ipp_date[11]; /* RFC-2579 date/time data */ _cups_buffer_t *cups_buffers; /* Buffer list */ /* ipp-support.c */ int ipp_port; /* IPP port number */ char ipp_unknown[255]; /* Unknown error statuses */ /* language.c */ cups_lang_t *lang_default; /* Default language */ # ifdef __APPLE__ char language[32]; /* Cached language */ # endif /* __APPLE__ */ /* pwg-media.c */ cups_array_t *leg_size_lut, /* Lookup table for legacy names */ *ppd_size_lut, /* Lookup table for PPD names */ *pwg_size_lut; /* Lookup table for PWG names */ pwg_media_t pwg_media; /* PWG media data for custom size */ char pwg_name[65], /* PWG media name for custom size */ ppd_name[41]; /* PPD media name for custom size */ /* raster-error.c */ _cups_raster_error_t raster_error; /* Raster error information */ /* request.c */ http_t *http; /* Current server connection */ ipp_status_t last_error; /* Last IPP error */ char *last_status_message; /* Last IPP status-message */ /* snmp.c */ char snmp_community[255]; /* Default SNMP community name */ int snmp_debug; /* Log SNMP IO to stderr? */ /* tempfile.c */ char tempfile[1024]; /* cupsTempFd/File buffer */ /* usersys.c */ _cups_digestoptions_t digestoptions; /* DigestOptions setting */ _cups_uatokens_t uatokens; /* UserAgentTokens setting */ http_encryption_t encryption; /* Encryption setting */ char user[65], /* User name */ user_agent[256],/* User-Agent string */ server[256], /* Server address */ servername[256],/* Server hostname */ password[128]; /* Password for default callback */ cups_oauth_cb_t oauth_cb; /* OAuth callback */ void *oauth_data; /* OAuth user data */ cups_password_cb2_t password_cb; /* Password callback */ void *password_data; /* Password user data */ http_tls_credentials_t tls_credentials; /* Default client credentials */ cups_client_cert_cb_t client_cert_cb; /* Client certificate callback */ void *client_cert_data; /* Client certificate user data */ cups_server_cert_cb_t server_cert_cb; /* Server certificate callback */ void *server_cert_data; /* Server certificate user data */ int server_version, /* Server IPP version */ trust_first, /* Trust on first use? */ any_root, /* Allow any (e.g., self-signed) root */ expired_certs, /* Allow expired certs */ validate_certs; /* Validate certificates */ /* util.c */ char def_printer[256]; /* Default printer */ # ifndef _WIN32 # define PW_BUF_SIZE 16384 /* As per glibc manual page */ char pw_buf[PW_BUF_SIZE]; /* Big buffer for struct passwd buffers */ # endif /* !_WIN32 */ } _cups_globals_t; typedef struct _cups_media_db_s /* Media database */ { char *color, /* Media color, if any */ *key, /* Media key, if any */ *info, /* Media human-readable name, if any */ *size_name, /* Media PWG size name, if provided */ *source, /* Media source, if any */ *type; /* Media type, if any */ int width, /* Width in hundredths of millimeters */ length, /* Length in hundredths of * millimeters */ bottom, /* Bottom margin in hundredths of * millimeters */ left, /* Left margin in hundredths of * millimeters */ right, /* Right margin in hundredths of * millimeters */ top; /* Top margin in hundredths of * millimeters */ } _cups_media_db_t; typedef struct _cups_dconstres_s /* Constraint/resolver */ { char *name; /* Name of resolver */ ipp_t *collection; /* Collection containing attrs */ } _cups_dconstres_t; struct _cups_dinfo_s /* Destination capability and status * information */ { int version; /* IPP version */ const char *uri; /* Printer URI */ char *resource; /* Resource path */ ipp_t *attrs; /* Printer attributes */ int num_defaults; /* Number of default options */ cups_option_t *defaults; /* Default options */ cups_array_t *constraints; /* Job constraints */ cups_array_t *resolvers; /* Job resolvers */ cups_array_t *localizations; /* Localization information */ cups_array_t *media_db; /* Media database */ _cups_media_db_t min_size, /* Minimum size */ max_size; /* Maximum size */ unsigned cached_flags; /* Flags used for cached media */ cups_array_t *cached_db; /* Cache of media from last index/default */ time_t ready_time; /* When xxx-ready attributes were last queried */ ipp_t *ready_attrs; /* xxx-ready attributes */ cups_array_t *ready_db; /* media[-col]-ready media database */ }; /* * Prototypes... */ # ifdef __APPLE__ extern CFStringRef _cupsAppleCopyDefaultPaperID(void) _CUPS_PRIVATE; extern CFStringRef _cupsAppleCopyDefaultPrinter(void) _CUPS_PRIVATE; extern int _cupsAppleGetUseLastPrinter(void) _CUPS_PRIVATE; extern void _cupsAppleSetDefaultPaperID(CFStringRef name) _CUPS_PRIVATE; extern void _cupsAppleSetDefaultPrinter(CFStringRef name) _CUPS_PRIVATE; extern void _cupsAppleSetUseLastPrinter(int uselast) _CUPS_PRIVATE; # endif /* __APPLE__ */ extern char *_cupsBufferGet(size_t size) _CUPS_PRIVATE; extern void _cupsBufferRelease(char *b) _CUPS_PRIVATE; extern http_t *_cupsConnect(void) _CUPS_PRIVATE; extern char *_cupsCreateDest(const char *name, const char *info, const char *device_id, const char *device_uri, char *uri, size_t urisize) _CUPS_PRIVATE; extern ipp_attribute_t *_cupsEncodeOption(ipp_t *ipp, ipp_tag_t group_tag, _ipp_option_t *map, const char *name, const char *value) _CUPS_PRIVATE; extern int _cupsGet1284Values(const char *device_id, cups_option_t **values) _CUPS_PRIVATE; extern const char *_cupsGetDestResource(cups_dest_t *dest, unsigned flags, char *resource, size_t resourcesize) _CUPS_PRIVATE; extern int _cupsGetDests(http_t *http, ipp_op_t op, const char *name, cups_dest_t **dests, cups_ptype_t type, cups_ptype_t mask) _CUPS_PRIVATE; extern const char *_cupsGetPassword(const char *prompt) _CUPS_PRIVATE; extern void _cupsGlobalLock(void) _CUPS_PRIVATE; extern _cups_globals_t *_cupsGlobals(void) _CUPS_PRIVATE; extern void _cupsGlobalUnlock(void) _CUPS_PRIVATE; # ifdef HAVE_GSSAPI extern const char *_cupsGSSServiceName(void) _CUPS_PRIVATE; # endif /* HAVE_GSSAPI */ extern int _cupsNextDelay(int current, int *previous) _CUPS_PRIVATE; extern void _cupsSetDefaults(void) _CUPS_INTERNAL; extern void _cupsSetError(ipp_status_t status, const char *message, int localize) _CUPS_PRIVATE; extern void _cupsSetHTTPError(http_status_t status) _CUPS_INTERNAL; # ifdef HAVE_GSSAPI extern int _cupsSetNegotiateAuthString(http_t *http, const char *method, const char *resource) _CUPS_PRIVATE; # endif /* HAVE_GSSAPI */ extern char *_cupsUserDefault(char *name, size_t namesize) _CUPS_INTERNAL; /* * C++ magic... */ # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_CUPS_PRIVATE_H_ */ cups-2.4.7/cups/backend.h0000644000175000017500000000307314502571342015076 0ustar zdohnalzdohnal/* * Backend definitions for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_BACKEND_H_ # define _CUPS_BACKEND_H_ /* * Include necessary headers... */ # include "versioning.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ enum cups_backend_e /**** Backend exit codes ****/ { CUPS_BACKEND_OK = 0, /* Job completed successfully */ CUPS_BACKEND_FAILED = 1, /* Job failed, use error-policy */ CUPS_BACKEND_AUTH_REQUIRED = 2, /* Job failed, authentication required */ CUPS_BACKEND_HOLD = 3, /* Job failed, hold job */ CUPS_BACKEND_STOP = 4, /* Job failed, stop queue */ CUPS_BACKEND_CANCEL = 5, /* Job failed, cancel job */ CUPS_BACKEND_RETRY = 6, /* Job failed, retry this job later */ CUPS_BACKEND_RETRY_CURRENT = 7 /* Job failed, retry this job immediately */ }; typedef enum cups_backend_e cups_backend_t; /**** Backend exit codes ****/ /* * Prototypes... */ extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2; extern void cupsBackendReport(const char *device_scheme, const char *device_uri, const char *device_make_and_model, const char *device_info, const char *device_id, const char *device_location) _CUPS_API_1_4; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_BACKEND_H_ */ cups-2.4.7/cups/backend.c0000644000175000017500000000647014502571342015075 0ustar zdohnalzdohnal/* * Backend functions for CUPS. * * Copyright 2007-2015 by Apple Inc. * Copyright 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "backend.h" #include "ppd.h" /* * Local functions... */ static void quote_string(const char *s); /* * 'cupsBackendDeviceURI()' - Get the device URI for a backend. * * The "argv" argument is the argv argument passed to main(). This * function returns the device URI passed in the DEVICE_URI environment * variable or the device URI passed in argv[0], whichever is found * first. * * @since CUPS 1.2/macOS 10.5@ */ const char * /* O - Device URI or @code NULL@ */ cupsBackendDeviceURI(char **argv) /* I - Command-line arguments */ { const char *device_uri, /* Device URI */ *auth_info_required; /* AUTH_INFO_REQUIRED env var */ _cups_globals_t *cg = _cupsGlobals(); /* Global info */ int options; /* Resolve options */ ppd_file_t *ppd; /* PPD file */ ppd_attr_t *ppdattr; /* PPD attribute */ if ((device_uri = getenv("DEVICE_URI")) == NULL) { if (!argv || !argv[0] || !strchr(argv[0], ':')) return (NULL); device_uri = argv[0]; } options = _HTTP_RESOLVE_STDERR; if ((auth_info_required = getenv("AUTH_INFO_REQUIRED")) != NULL && !strcmp(auth_info_required, "negotiate")) options |= _HTTP_RESOLVE_FQDN; if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL) { if ((ppdattr = ppdFindAttr(ppd, "cupsIPPFaxOut", NULL)) != NULL && !_cups_strcasecmp(ppdattr->value, "true")) options |= _HTTP_RESOLVE_FAXOUT; ppdClose(ppd); } return (_httpResolveURI(device_uri, cg->resolved_uri, sizeof(cg->resolved_uri), options, NULL, NULL)); } /* * 'cupsBackendReport()' - Write a device line from a backend. * * This function writes a single device line to stdout for a backend. * It handles quoting of special characters in the device-make-and-model, * device-info, device-id, and device-location strings. * * @since CUPS 1.4/macOS 10.6@ */ void cupsBackendReport( const char *device_scheme, /* I - device-scheme string */ const char *device_uri, /* I - device-uri string */ const char *device_make_and_model, /* I - device-make-and-model string or @code NULL@ */ const char *device_info, /* I - device-info string or @code NULL@ */ const char *device_id, /* I - device-id string or @code NULL@ */ const char *device_location) /* I - device-location string or @code NULL@ */ { if (!device_scheme || !device_uri) return; printf("%s %s", device_scheme, device_uri); if (device_make_and_model && *device_make_and_model) quote_string(device_make_and_model); else quote_string("unknown"); quote_string(device_info); quote_string(device_id); quote_string(device_location); putchar('\n'); fflush(stdout); } /* * 'quote_string()' - Write a quoted string to stdout, escaping \ and ". */ static void quote_string(const char *s) /* I - String to write */ { fputs(" \"", stdout); if (s) { while (*s) { if (*s == '\\' || *s == '\"') putchar('\\'); if (((*s & 255) < ' ' && *s != '\t') || *s == 0x7f) putchar(' '); else putchar(*s); s ++; } } putchar('\"'); } cups-2.4.7/cups/backchannel.c0000644000175000017500000000750314502571342015735 0ustar zdohnalzdohnal/* * Backchannel functions for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cups.h" #include "sidechannel.h" #include #ifdef _WIN32 # include # include #else # include #endif /* _WIN32 */ /* * Local functions... */ static void cups_setup(fd_set *set, struct timeval *tval, double timeout); /* * 'cupsBackChannelRead()' - Read data from the backchannel. * * Reads up to "bytes" bytes from the backchannel/backend. The "timeout" * parameter controls how many seconds to wait for the data - use 0.0 to * return immediately if there is no data, -1.0 to wait for data indefinitely. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Bytes read or -1 on error */ cupsBackChannelRead(char *buffer, /* I - Buffer to read into */ size_t bytes, /* I - Bytes to read */ double timeout) /* I - Timeout in seconds, typically 0.0 to poll */ { fd_set input; /* Input set */ struct timeval tval; /* Timeout value */ int status; /* Select status */ /* * Wait for input ready. */ do { cups_setup(&input, &tval, timeout); if (timeout < 0.0) status = select(4, &input, NULL, NULL, NULL); else status = select(4, &input, NULL, NULL, &tval); } while (status < 0 && errno != EINTR && errno != EAGAIN); if (status <= 0) return (-1); /* Timeout! */ /* * Read bytes from the pipe... */ #ifdef _WIN32 return ((ssize_t)_read(3, buffer, (unsigned)bytes)); #else return (read(3, buffer, bytes)); #endif /* _WIN32 */ } /* * 'cupsBackChannelWrite()' - Write data to the backchannel. * * Writes "bytes" bytes to the backchannel/filter. The "timeout" parameter * controls how many seconds to wait for the data to be written - use * 0.0 to return immediately if the data cannot be written, -1.0 to wait * indefinitely. * * @since CUPS 1.2/macOS 10.5@ */ ssize_t /* O - Bytes written or -1 on error */ cupsBackChannelWrite( const char *buffer, /* I - Buffer to write */ size_t bytes, /* I - Bytes to write */ double timeout) /* I - Timeout in seconds, typically 1.0 */ { fd_set output; /* Output set */ struct timeval tval; /* Timeout value */ int status; /* Select status */ ssize_t count; /* Current bytes */ size_t total; /* Total bytes */ /* * Write all bytes... */ total = 0; while (total < bytes) { /* * Wait for write-ready... */ do { cups_setup(&output, &tval, timeout); if (timeout < 0.0) status = select(4, NULL, &output, NULL, NULL); else status = select(4, NULL, &output, NULL, &tval); } while (status < 0 && errno != EINTR && errno != EAGAIN); if (status <= 0) return (-1); /* Timeout! */ /* * Write bytes to the pipe... */ #ifdef _WIN32 count = (ssize_t)_write(3, buffer, (unsigned)(bytes - total)); #else count = write(3, buffer, bytes - total); #endif /* _WIN32 */ if (count < 0) { /* * Write error - abort on fatal errors... */ if (errno != EINTR && errno != EAGAIN) return (-1); } else { /* * Write succeeded, update buffer pointer and total count... */ buffer += count; total += (size_t)count; } } return ((ssize_t)bytes); } /* * 'cups_setup()' - Setup select() */ static void cups_setup(fd_set *set, /* I - Set for select() */ struct timeval *tval, /* I - Timer value */ double timeout) /* I - Timeout in seconds */ { tval->tv_sec = (time_t)timeout; tval->tv_usec = (suseconds_t)(1000000.0 * (timeout - tval->tv_sec)); FD_ZERO(set); FD_SET(3, set); } cups-2.4.7/cups/auth.c0000644000175000017500000010007414502571342014442 0ustar zdohnalzdohnal/* * Authentication functions for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * This file contains Kerberos support code, copyright 2006 by * Jelmer Vernooij. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include #include #if defined(_WIN32) || defined(__EMX__) # include #else # include #endif /* _WIN32 || __EMX__ */ #if HAVE_AUTHORIZATION_H # include #endif /* HAVE_AUTHORIZATION_H */ #if defined(SO_PEERCRED) && defined(AF_LOCAL) # include #endif /* SO_PEERCRED && AF_LOCAL */ /* * Local functions... */ static const char *cups_auth_find(const char *www_authenticate, const char *scheme); static const char *cups_auth_param(const char *scheme, const char *name, char *value, size_t valsize); static const char *cups_auth_scheme(const char *www_authenticate, char *scheme, size_t schemesize); #ifdef HAVE_GSSAPI # define CUPS_GSS_OK 0 /* Successfully set credentials */ # define CUPS_GSS_NONE -1 /* No credentials */ # define CUPS_GSS_FAIL -2 /* Failed credentials/authentication */ # ifdef HAVE_GSS_ACQUIRE_CRED_EX_F # ifdef HAVE_GSS_GSSAPI_SPI_H # include # else # define GSS_AUTH_IDENTITY_TYPE_1 1 # define gss_acquire_cred_ex_f __ApplePrivate_gss_acquire_cred_ex_f typedef struct gss_auth_identity /* @private@ */ { uint32_t type; uint32_t flags; char *username; char *realm; char *password; gss_buffer_t *credentialsRef; } gss_auth_identity_desc; extern OM_uint32 gss_acquire_cred_ex_f(gss_status_id_t, const gss_name_t, OM_uint32, OM_uint32, const gss_OID, gss_cred_usage_t, gss_auth_identity_t, void *, void (*)(void *, OM_uint32, gss_status_id_t, gss_cred_id_t, gss_OID_set, OM_uint32)); # endif /* HAVE_GSS_GSSAPI_SPI_H */ # include typedef struct _cups_gss_acquire_s /* Acquire callback data */ { dispatch_semaphore_t sem; /* Synchronization semaphore */ OM_uint32 major; /* Returned status code */ gss_cred_id_t creds; /* Returned credentials */ } _cups_gss_acquire_t; static void cups_gss_acquire(void *ctx, OM_uint32 major, gss_status_id_t status, gss_cred_id_t creds, gss_OID_set oids, OM_uint32 time_rec); # endif /* HAVE_GSS_ACQUIRE_CRED_EX_F */ static gss_name_t cups_gss_getname(http_t *http, const char *service_name); # ifdef DEBUG static void cups_gss_printf(OM_uint32 major_status, OM_uint32 minor_status, const char *message); # else # define cups_gss_printf(major, minor, message) # endif /* DEBUG */ #endif /* HAVE_GSSAPI */ static int cups_is_local_connection(http_t *http); static int cups_local_auth(http_t *http); /* * 'cupsDoAuthentication()' - Authenticate a request. * * This function should be called in response to a @code HTTP_STATUS_UNAUTHORIZED@ * status, prior to resubmitting your request. * * @since CUPS 1.1.20/macOS 10.4@ */ int /* O - 0 on success, -1 on error */ cupsDoAuthentication( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *method, /* I - Request method ("GET", "POST", "PUT") */ const char *resource) /* I - Resource path */ { const char *password, /* Password string */ *www_auth, /* WWW-Authenticate header */ *schemedata; /* Scheme-specific data */ char scheme[256], /* Scheme name */ prompt[1024]; /* Prompt for user */ int localauth; /* Local authentication result */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ DEBUG_printf(("cupsDoAuthentication(http=%p, method=\"%s\", resource=\"%s\")", (void *)http, method, resource)); if (!http) http = _cupsConnect(); if (!http || !method || !resource) return (-1); DEBUG_printf(("2cupsDoAuthentication: digest_tries=%d, userpass=\"%s\"", http->digest_tries, http->userpass)); DEBUG_printf(("2cupsDoAuthentication: WWW-Authenticate=\"%s\"", httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE))); /* * Clear the current authentication string... */ httpSetAuthString(http, NULL, NULL); /* * See if we can do local authentication... */ if (http->digest_tries < 3) { if ((localauth = cups_local_auth(http)) == 0) { DEBUG_printf(("2cupsDoAuthentication: authstring=\"%s\"", http->authstring)); if (http->status == HTTP_STATUS_UNAUTHORIZED) http->digest_tries ++; return (0); } else if (localauth == -1) { http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; return (-1); /* Error or canceled */ } } /* * Nope, loop through the authentication schemes to find the first we support. */ www_auth = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE); for (schemedata = cups_auth_scheme(www_auth, scheme, sizeof(scheme)); schemedata; schemedata = cups_auth_scheme(schemedata + strlen(scheme), scheme, sizeof(scheme))) { /* * Check the scheme name... */ DEBUG_printf(("2cupsDoAuthentication: Trying scheme \"%s\"...", scheme)); #ifdef HAVE_GSSAPI if (!_cups_strcasecmp(scheme, "Negotiate") && !cups_is_local_connection(http)) { /* * Kerberos authentication to remote server... */ int gss_status; /* Auth status */ if ((gss_status = _cupsSetNegotiateAuthString(http, method, resource)) == CUPS_GSS_FAIL) { DEBUG_puts("1cupsDoAuthentication: Negotiate failed."); http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; return (-1); } else if (gss_status == CUPS_GSS_NONE) { DEBUG_puts("2cupsDoAuthentication: No credentials for Negotiate."); continue; } else { DEBUG_puts("2cupsDoAuthentication: Using Negotiate."); break; } } else #endif /* HAVE_GSSAPI */ if (!_cups_strcasecmp(scheme, "Bearer")) { // OAuth 2.0 (Bearer) authentication... const char *bearer = NULL; /* Bearer token string, if any */ if (cg->oauth_cb) { // Try callback... char scope[HTTP_MAX_VALUE]; /* scope="xyz" string */ cups_auth_param(schemedata, "realm", http->realm, sizeof(http->realm)); if (cups_auth_param(schemedata, "scope", scope, sizeof(scope))) bearer = (cg->oauth_cb)(http, http->realm, scope, resource, cg->oauth_data); else bearer = (cg->oauth_cb)(http, http->realm, NULL, resource, cg->oauth_data); } if (bearer) { // Use this access token... httpSetAuthString(http, "Bearer", bearer); break; } else { // No access token, try the next scheme... DEBUG_puts("2cupsDoAuthentication: No OAuth access token to provide."); continue; } } else if (_cups_strcasecmp(scheme, "Basic") && _cups_strcasecmp(scheme, "Digest") && _cups_strcasecmp(scheme, "Negotiate")) { /* * Other schemes not yet supported... */ DEBUG_printf(("2cupsDoAuthentication: Scheme \"%s\" not yet supported.", scheme)); continue; } /* * See if we should retry the current username:password... */ if (http->digest_tries > 1 || !http->userpass[0]) { /* * Nope - get a new password from the user... */ char default_username[HTTP_MAX_VALUE]; /* Default username */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); if (cups_auth_param(schemedata, "username", default_username, sizeof(default_username))) cupsSetUser(default_username); snprintf(prompt, sizeof(prompt), _cupsLangString(cg->lang_default, _("Password for %s on %s? ")), cupsUser(), http->hostname[0] == '/' ? "localhost" : http->hostname); http->digest_tries = _cups_strncasecmp(scheme, "Digest", 6) != 0; http->userpass[0] = '\0'; if ((password = cupsGetPassword2(prompt, http, method, resource)) == NULL) { DEBUG_puts("1cupsDoAuthentication: User canceled password request."); http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; return (-1); } snprintf(http->userpass, sizeof(http->userpass), "%s:%s", cupsUser(), password); } else if (http->status == HTTP_STATUS_UNAUTHORIZED) http->digest_tries ++; if (http->status == HTTP_STATUS_UNAUTHORIZED && http->digest_tries >= 3) { DEBUG_printf(("1cupsDoAuthentication: Too many authentication tries (%d)", http->digest_tries)); http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; return (-1); } /* * Got a password; encode it for the server... */ if (!_cups_strcasecmp(scheme, "Basic")) { /* * Basic authentication... */ char encode[256]; /* Base64 buffer */ DEBUG_puts("2cupsDoAuthentication: Using Basic."); httpEncode64_2(encode, sizeof(encode), http->userpass, (int)strlen(http->userpass)); httpSetAuthString(http, "Basic", encode); break; } else if (!_cups_strcasecmp(scheme, "Digest")) { /* * Digest authentication... */ char nonce[HTTP_MAX_VALUE]; /* nonce="xyz" string */ cups_auth_param(schemedata, "algorithm", http->algorithm, sizeof(http->algorithm)); cups_auth_param(schemedata, "opaque", http->opaque, sizeof(http->opaque)); cups_auth_param(schemedata, "nonce", nonce, sizeof(nonce)); cups_auth_param(schemedata, "realm", http->realm, sizeof(http->realm)); if (_httpSetDigestAuthString(http, nonce, method, resource)) { DEBUG_puts("2cupsDoAuthentication: Using Digest."); break; } } } if (http->authstring && http->authstring[0]) { DEBUG_printf(("1cupsDoAuthentication: authstring=\"%s\".", http->authstring)); return (0); } else { DEBUG_puts("1cupsDoAuthentication: No supported schemes."); http->status = HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED; return (-1); } } #ifdef HAVE_GSSAPI /* * '_cupsSetNegotiateAuthString()' - Set the Kerberos authentication string. */ int /* O - 0 on success, negative on error */ _cupsSetNegotiateAuthString( http_t *http, /* I - Connection to server */ const char *method, /* I - Request method ("GET", "POST", "PUT") */ const char *resource) /* I - Resource path */ { OM_uint32 minor_status, /* Minor status code */ major_status; /* Major status code */ gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER; /* Output token */ # ifdef __APPLE__ /* * If the weak-linked GSSAPI/Kerberos library is not present, don't try * to use it... */ if (&gss_init_sec_context == NULL) { DEBUG_puts("1_cupsSetNegotiateAuthString: Weak-linked GSSAPI/Kerberos " "framework is not present"); return (CUPS_GSS_NONE); } # endif /* __APPLE__ */ if (!strcmp(http->hostname, "localhost") || http->hostname[0] == '/' || isdigit(http->hostname[0] & 255) || !strchr(http->hostname, '.')) { DEBUG_printf(("1_cupsSetNegotiateAuthString: Kerberos not available for host \"%s\".", http->hostname)); return (CUPS_GSS_NONE); } if (http->gssname == GSS_C_NO_NAME) { http->gssname = cups_gss_getname(http, _cupsGSSServiceName()); } if (http->gssctx != GSS_C_NO_CONTEXT) { gss_delete_sec_context(&minor_status, &http->gssctx, GSS_C_NO_BUFFER); http->gssctx = GSS_C_NO_CONTEXT; } major_status = gss_init_sec_context(&minor_status, GSS_C_NO_CREDENTIAL, &http->gssctx, http->gssname, http->gssmech, GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG, GSS_C_INDEFINITE, GSS_C_NO_CHANNEL_BINDINGS, GSS_C_NO_BUFFER, &http->gssmech, &output_token, NULL, NULL); # ifdef HAVE_GSS_ACQUIRE_CRED_EX_F if (major_status == GSS_S_NO_CRED) { /* * Ask the user for credentials... */ char prompt[1024], /* Prompt for user */ userbuf[256]; /* Kerberos username */ const char *username, /* Username string */ *password; /* Password string */ _cups_gss_acquire_t data; /* Callback data */ gss_auth_identity_desc identity; /* Kerberos user identity */ _cups_globals_t *cg = _cupsGlobals(); /* Per-thread global data */ if (!cg->lang_default) cg->lang_default = cupsLangDefault(); snprintf(prompt, sizeof(prompt), _cupsLangString(cg->lang_default, _("Password for %s on %s? ")), cupsUser(), http->gsshost); if ((password = cupsGetPassword2(prompt, http, method, resource)) == NULL) return (CUPS_GSS_FAIL); /* * Try to acquire credentials... */ username = cupsUser(); if (!strchr(username, '@')) { snprintf(userbuf, sizeof(userbuf), "%s@%s", username, http->gsshost); username = userbuf; } identity.type = GSS_AUTH_IDENTITY_TYPE_1; identity.flags = 0; identity.username = (char *)username; identity.realm = (char *)""; identity.password = (char *)password; identity.credentialsRef = NULL; data.sem = dispatch_semaphore_create(0); data.major = 0; data.creds = NULL; if (data.sem) { major_status = gss_acquire_cred_ex_f(NULL, GSS_C_NO_NAME, 0, GSS_C_INDEFINITE, GSS_KRB5_MECHANISM, GSS_C_INITIATE, (gss_auth_identity_t)&identity, &data, cups_gss_acquire); if (major_status == GSS_S_COMPLETE) { dispatch_semaphore_wait(data.sem, DISPATCH_TIME_FOREVER); major_status = data.major; } dispatch_release(data.sem); if (major_status == GSS_S_COMPLETE) { OM_uint32 release_minor; /* Minor status from releasing creds */ major_status = gss_init_sec_context(&minor_status, data.creds, &http->gssctx, http->gssname, http->gssmech, GSS_C_MUTUAL_FLAG | GSS_C_INTEG_FLAG, GSS_C_INDEFINITE, GSS_C_NO_CHANNEL_BINDINGS, GSS_C_NO_BUFFER, &http->gssmech, &output_token, NULL, NULL); gss_release_cred(&release_minor, &data.creds); } } } # else (void)method; (void)resource; # endif /* HAVE_GSS_ACQUIRED_CRED_EX_F */ if (major_status == GSS_S_NO_CRED) { cups_gss_printf(major_status, minor_status, "_cupsSetNegotiateAuthString: No credentials"); return (CUPS_GSS_NONE); } else if (GSS_ERROR(major_status)) { cups_gss_printf(major_status, minor_status, "_cupsSetNegotiateAuthString: Unable to initialize security context"); return (CUPS_GSS_FAIL); } # ifdef DEBUG else if (major_status == GSS_S_CONTINUE_NEEDED) cups_gss_printf(major_status, minor_status, "_cupsSetNegotiateAuthString: Continuation needed"); # endif /* DEBUG */ if (output_token.length > 0 && output_token.length <= 65536) { /* * Allocate the authorization string since Windows KDCs can have * arbitrarily large credentials... */ int authsize = 10 + /* "Negotiate " */ (((int)output_token.length * 4 / 3 + 3) & ~3) + 1; /* Base64 + nul */ httpSetAuthString(http, NULL, NULL); if ((http->authstring = malloc((size_t)authsize)) == NULL) { http->authstring = http->_authstring; authsize = sizeof(http->_authstring); } strlcpy(http->authstring, "Negotiate ", (size_t)authsize); httpEncode64_2(http->authstring + 10, authsize - 10, output_token.value, (int)output_token.length); gss_release_buffer(&minor_status, &output_token); } else { DEBUG_printf(("1_cupsSetNegotiateAuthString: Kerberos credentials too " "large - %d bytes!", (int)output_token.length)); gss_release_buffer(&minor_status, &output_token); return (CUPS_GSS_FAIL); } return (CUPS_GSS_OK); } #endif /* HAVE_GSSAPI */ /* * 'cups_auth_find()' - Find the named WWW-Authenticate scheme. * * The "www_authenticate" parameter points to the current position in the header. * * Returns @code NULL@ if the auth scheme is not present. */ static const char * /* O - Start of matching scheme or @code NULL@ if not found */ cups_auth_find(const char *www_authenticate, /* I - Pointer into WWW-Authenticate header */ const char *scheme) /* I - Authentication scheme */ { size_t schemelen = strlen(scheme); /* Length of scheme */ DEBUG_printf(("8cups_auth_find(www_authenticate=\"%s\", scheme=\"%s\"(%d))", www_authenticate, scheme, (int)schemelen)); while (*www_authenticate) { /* * Skip leading whitespace and commas... */ DEBUG_printf(("9cups_auth_find: Before whitespace: \"%s\"", www_authenticate)); while (isspace(*www_authenticate & 255) || *www_authenticate == ',') www_authenticate ++; DEBUG_printf(("9cups_auth_find: After whitespace: \"%s\"", www_authenticate)); /* * See if this is "Scheme" followed by whitespace or the end of the string. */ if (!strncmp(www_authenticate, scheme, schemelen) && (isspace(www_authenticate[schemelen] & 255) || www_authenticate[schemelen] == ',' || !www_authenticate[schemelen])) { /* * Yes, this is the start of the scheme-specific information... */ DEBUG_printf(("9cups_auth_find: Returning \"%s\".", www_authenticate)); return (www_authenticate); } /* * Skip the scheme name or param="value" string... */ while (!isspace(*www_authenticate & 255) && *www_authenticate) { if (*www_authenticate == '\"') { /* * Skip quoted value... */ www_authenticate ++; while (*www_authenticate && *www_authenticate != '\"') www_authenticate ++; DEBUG_printf(("9cups_auth_find: After quoted: \"%s\"", www_authenticate)); } www_authenticate ++; } DEBUG_printf(("9cups_auth_find: After skip: \"%s\"", www_authenticate)); } DEBUG_puts("9cups_auth_find: Returning NULL."); return (NULL); } /* * 'cups_auth_param()' - Copy the value for the named authentication parameter, * if present. */ static const char * /* O - Parameter value or @code NULL@ if not present */ cups_auth_param(const char *scheme, /* I - Pointer to auth data */ const char *name, /* I - Name of parameter */ char *value, /* I - Value buffer */ size_t valsize) /* I - Size of value buffer */ { char *valptr = value, /* Pointer into value buffer */ *valend = value + valsize - 1; /* Pointer to end of buffer */ size_t namelen = strlen(name); /* Name length */ int param; /* Is this a parameter? */ DEBUG_printf(("8cups_auth_param(scheme=\"%s\", name=\"%s\", value=%p, valsize=%d)", scheme, name, (void *)value, (int)valsize)); while (!isspace(*scheme & 255) && *scheme) scheme ++; while (*scheme) { while (isspace(*scheme & 255) || *scheme == ',') scheme ++; if (!strncmp(scheme, name, namelen) && scheme[namelen] == '=') { /* * Found the parameter, copy the value... */ scheme += namelen + 1; if (*scheme == '\"') { scheme ++; while (*scheme && *scheme != '\"') { if (valptr < valend) *valptr++ = *scheme; scheme ++; } } else { while (*scheme && strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~+/=", *scheme)) { if (valptr < valend) *valptr++ = *scheme; scheme ++; } } *valptr = '\0'; DEBUG_printf(("9cups_auth_param: Returning \"%s\".", value)); return (value); } /* * Skip the param=value string... */ param = 0; while (!isspace(*scheme & 255) && *scheme) { if (*scheme == '=') param = 1; else if (*scheme == '\"') { /* * Skip quoted value... */ scheme ++; while (*scheme && *scheme != '\"') scheme ++; } scheme ++; } /* * If this wasn't a parameter, we are at the end of this scheme's * parameters... */ if (!param) break; } *value = '\0'; DEBUG_puts("9cups_auth_param: Returning NULL."); return (NULL); } /* * 'cups_auth_scheme()' - Get the (next) WWW-Authenticate scheme. * * The "www_authenticate" parameter points to the current position in the header. * * Returns @code NULL@ if there are no (more) auth schemes present. */ static const char * /* O - Start of scheme or @code NULL@ if not found */ cups_auth_scheme(const char *www_authenticate, /* I - Pointer into WWW-Authenticate header */ char *scheme, /* I - Scheme name buffer */ size_t schemesize) /* I - Size of buffer */ { const char *start; /* Start of scheme data */ char *sptr = scheme, /* Pointer into scheme buffer */ *send = scheme + schemesize - 1;/* End of scheme buffer */ int param; /* Is this a parameter? */ DEBUG_printf(("8cups_auth_scheme(www_authenticate=\"%s\", scheme=%p, schemesize=%u)", www_authenticate, (void *)scheme, (unsigned)schemesize)); while (*www_authenticate) { /* * Skip leading whitespace and commas... */ while (isspace(*www_authenticate & 255) || *www_authenticate == ',') www_authenticate ++; /* * Parse the scheme name or param="value" string... */ for (sptr = scheme, start = www_authenticate, param = 0; *www_authenticate && *www_authenticate != ',' && !isspace(*www_authenticate & 255); www_authenticate ++) { if (*www_authenticate == '=') param = 1; else if (!param && sptr < send) *sptr++ = *www_authenticate; else if (*www_authenticate == '\"') { /* * Skip quoted value... */ do www_authenticate ++; while (*www_authenticate && *www_authenticate != '\"'); } } if (sptr > scheme && !param) { *sptr = '\0'; DEBUG_printf(("9cups_auth_scheme: Returning \"%s\".", start)); return (start); } } *scheme = '\0'; DEBUG_puts("9cups_auth_scheme: Returning NULL."); return (NULL); } #ifdef HAVE_GSSAPI # ifdef HAVE_GSS_ACQUIRE_CRED_EX_F /* * 'cups_gss_acquire()' - Kerberos credentials callback. */ static void cups_gss_acquire( void *ctx, /* I - Caller context */ OM_uint32 major, /* I - Major error code */ gss_status_id_t status, /* I - Status (unused) */ gss_cred_id_t creds, /* I - Credentials (if any) */ gss_OID_set oids, /* I - Mechanism OIDs (unused) */ OM_uint32 time_rec) /* I - Timestamp (unused) */ { uint32_t min; /* Minor error code */ _cups_gss_acquire_t *data; /* Callback data */ (void)status; (void)time_rec; data = (_cups_gss_acquire_t *)ctx; data->major = major; data->creds = creds; gss_release_oid_set(&min, &oids); dispatch_semaphore_signal(data->sem); } # endif /* HAVE_GSS_ACQUIRE_CRED_EX_F */ /* * 'cups_gss_getname()' - Get CUPS service credentials for authentication. */ static gss_name_t /* O - Server name */ cups_gss_getname( http_t *http, /* I - Connection to server */ const char *service_name) /* I - Service name */ { gss_buffer_desc token = GSS_C_EMPTY_BUFFER; /* Service token */ OM_uint32 major_status, /* Major status code */ minor_status; /* Minor status code */ gss_name_t server_name; /* Server name */ char buf[1024]; /* Name buffer */ DEBUG_printf(("7cups_gss_getname(http=%p, service_name=\"%s\")", http, service_name)); /* * Get the hostname... */ if (!http->gsshost[0]) { httpGetHostname(http, http->gsshost, sizeof(http->gsshost)); if (!strcmp(http->gsshost, "localhost")) { if (gethostname(http->gsshost, sizeof(http->gsshost)) < 0) { DEBUG_printf(("1cups_gss_getname: gethostname() failed: %s", strerror(errno))); http->gsshost[0] = '\0'; return (NULL); } if (!strchr(http->gsshost, '.')) { /* * The hostname is not a FQDN, so look it up... */ struct hostent *host; /* Host entry to get FQDN */ if ((host = gethostbyname(http->gsshost)) != NULL && host->h_name) { /* * Use the resolved hostname... */ strlcpy(http->gsshost, host->h_name, sizeof(http->gsshost)); } else { DEBUG_printf(("1cups_gss_getname: gethostbyname(\"%s\") failed.", http->gsshost)); http->gsshost[0] = '\0'; return (NULL); } } } } /* * Get a service name we can use for authentication purposes... */ snprintf(buf, sizeof(buf), "%s@%s", service_name, http->gsshost); DEBUG_printf(("8cups_gss_getname: Looking up \"%s\".", buf)); token.value = buf; token.length = strlen(buf); server_name = GSS_C_NO_NAME; major_status = gss_import_name(&minor_status, &token, GSS_C_NT_HOSTBASED_SERVICE, &server_name); if (GSS_ERROR(major_status)) { cups_gss_printf(major_status, minor_status, "cups_gss_getname: gss_import_name() failed"); return (NULL); } return (server_name); } # ifdef DEBUG /* * 'cups_gss_printf()' - Show debug error messages from GSSAPI. */ static void cups_gss_printf(OM_uint32 major_status,/* I - Major status code */ OM_uint32 minor_status,/* I - Minor status code */ const char *message) /* I - Prefix for error message */ { OM_uint32 err_major_status, /* Major status code for display */ err_minor_status; /* Minor status code for display */ OM_uint32 msg_ctx; /* Message context */ gss_buffer_desc major_status_string = GSS_C_EMPTY_BUFFER, /* Major status message */ minor_status_string = GSS_C_EMPTY_BUFFER; /* Minor status message */ msg_ctx = 0; err_major_status = gss_display_status(&err_minor_status, major_status, GSS_C_GSS_CODE, GSS_C_NO_OID, &msg_ctx, &major_status_string); if (!GSS_ERROR(err_major_status)) gss_display_status(&err_minor_status, minor_status, GSS_C_MECH_CODE, GSS_C_NULL_OID, &msg_ctx, &minor_status_string); DEBUG_printf(("1%s: %s, %s", message, (char *)major_status_string.value, (char *)minor_status_string.value)); gss_release_buffer(&err_minor_status, &major_status_string); gss_release_buffer(&err_minor_status, &minor_status_string); } # endif /* DEBUG */ #endif /* HAVE_GSSAPI */ static int /* O - 0 if not a local connection */ /* 1 if local connection */ cups_is_local_connection(http_t *http) /* I - HTTP connection to server */ { if (!httpAddrLocalhost(http->hostaddr) && _cups_strcasecmp(http->hostname, "localhost") != 0) return 0; return 1; } /* * 'cups_local_auth()' - Get the local authorization certificate if * available/applicable. */ static int /* O - 0 if available */ /* 1 if not available */ /* -1 error */ cups_local_auth(http_t *http) /* I - HTTP connection to server */ { #if defined(_WIN32) || defined(__EMX__) /* * Currently _WIN32 and OS-2 do not support the CUPS server... */ return (1); #else int pid; /* Current process ID */ FILE *fp; /* Certificate file */ char trc[16], /* Try Root Certificate parameter */ filename[1024]; /* Certificate filename */ const char *www_auth, /* WWW-Authenticate header */ *schemedata; /* Data for the named auth scheme */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ # if defined(HAVE_AUTHORIZATION_H) OSStatus status; /* Status */ AuthorizationItem auth_right; /* Authorization right */ AuthorizationRights auth_rights; /* Authorization rights */ AuthorizationFlags auth_flags; /* Authorization flags */ AuthorizationExternalForm auth_extrn; /* Authorization ref external */ char auth_key[1024]; /* Buffer */ char buffer[1024]; /* Buffer */ # endif /* HAVE_AUTHORIZATION_H */ DEBUG_printf(("7cups_local_auth(http=%p) hostaddr=%s, hostname=\"%s\"", (void *)http, httpAddrString(http->hostaddr, filename, sizeof(filename)), http->hostname)); /* * See if we are accessing localhost... */ if (!cups_is_local_connection(http)) { DEBUG_puts("8cups_local_auth: Not a local connection!"); return (1); } www_auth = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE); # if defined(HAVE_AUTHORIZATION_H) /* * Delete any previous authorization reference... */ if (http->auth_ref) { AuthorizationFree(http->auth_ref, kAuthorizationFlagDefaults); http->auth_ref = NULL; } if (!getenv("GATEWAY_INTERFACE") && (schemedata = cups_auth_find(www_auth, "AuthRef")) != NULL && cups_auth_param(schemedata, "key", auth_key, sizeof(auth_key))) { status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &http->auth_ref); if (status != errAuthorizationSuccess) { DEBUG_printf(("8cups_local_auth: AuthorizationCreate() returned %d", (int)status)); return (-1); } auth_right.name = auth_key; auth_right.valueLength = 0; auth_right.value = NULL; auth_right.flags = 0; auth_rights.count = 1; auth_rights.items = &auth_right; auth_flags = kAuthorizationFlagDefaults | kAuthorizationFlagPreAuthorize | kAuthorizationFlagInteractionAllowed | kAuthorizationFlagExtendRights; status = AuthorizationCopyRights(http->auth_ref, &auth_rights, kAuthorizationEmptyEnvironment, auth_flags, NULL); if (status == errAuthorizationSuccess) status = AuthorizationMakeExternalForm(http->auth_ref, &auth_extrn); if (status == errAuthorizationSuccess) { /* * Set the authorization string and return... */ httpEncode64_2(buffer, sizeof(buffer), (void *)&auth_extrn, sizeof(auth_extrn)); httpSetAuthString(http, "AuthRef", buffer); DEBUG_printf(("8cups_local_auth: Returning authstring=\"%s\"", http->authstring)); return (0); } else if (status == errAuthorizationCanceled) return (-1); DEBUG_printf(("9cups_local_auth: AuthorizationCopyRights() returned %d", (int)status)); /* * Fall through to try certificates... */ } # endif /* HAVE_AUTHORIZATION_H */ # if defined(SO_PEERCRED) && defined(AF_LOCAL) /* * See if we can authenticate using the peer credentials provided over a * domain socket; if so, specify "PeerCred username" as the authentication * information... */ if (http->hostaddr->addr.sa_family == AF_LOCAL && !getenv("GATEWAY_INTERFACE") && /* Not via CGI programs... */ cups_auth_find(www_auth, "PeerCred")) { /* * Verify that the current cupsUser() matches the current UID... */ struct passwd pwd; /* Password information */ struct passwd *result; /* Auxiliary pointer */ const char *username; /* Current username */ username = cupsUser(); getpwnam_r(username, &pwd, cg->pw_buf, PW_BUF_SIZE, &result); if (result && pwd.pw_uid == getuid()) { httpSetAuthString(http, "PeerCred", username); DEBUG_printf(("8cups_local_auth: Returning authstring=\"%s\"", http->authstring)); return (0); } } # endif /* SO_PEERCRED && AF_LOCAL */ if ((schemedata = cups_auth_find(www_auth, "Local")) == NULL) return (1); /* * Try opening a certificate file for this PID. If that fails, * try the root certificate... */ pid = getpid(); snprintf(filename, sizeof(filename), "%s/certs/%d", cg->cups_statedir, pid); if ((fp = fopen(filename, "r")) == NULL && pid > 0) { /* * No certificate for this PID; see if we can get the root certificate... */ DEBUG_printf(("9cups_local_auth: Unable to open file \"%s\": %s", filename, strerror(errno))); if (!cups_auth_param(schemedata, "trc", trc, sizeof(trc))) { /* * Scheduler doesn't want us to use the root certificate... */ return (1); } snprintf(filename, sizeof(filename), "%s/certs/0", cg->cups_statedir); if ((fp = fopen(filename, "r")) == NULL) DEBUG_printf(("9cups_local_auth: Unable to open file \"%s\": %s", filename, strerror(errno))); } if (fp) { /* * Read the certificate from the file... */ char certificate[33], /* Certificate string */ *certptr; /* Pointer to certificate string */ certptr = fgets(certificate, sizeof(certificate), fp); fclose(fp); if (certptr) { /* * Set the authorization string and return... */ httpSetAuthString(http, "Local", certificate); DEBUG_printf(("8cups_local_auth: Returning authstring=\"%s\"", http->authstring)); return (0); } } return (1); #endif /* _WIN32 || __EMX__ */ } cups-2.4.7/cups/array.h0000644000175000017500000000521614502571342014626 0ustar zdohnalzdohnal/* * Sorted array definitions for CUPS. * * Copyright 2007-2010 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_ARRAY_H_ # define _CUPS_ARRAY_H_ /* * Include necessary headers... */ # include "versioning.h" # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types and structures... */ typedef struct _cups_array_s cups_array_t; /**** CUPS array type ****/ typedef int (*cups_array_func_t)(void *first, void *second, void *data); /**** Array comparison function ****/ typedef int (*cups_ahash_func_t)(void *element, void *data); /**** Array hash function ****/ typedef void *(*cups_acopy_func_t)(void *element, void *data); /**** Array element copy function ****/ typedef void (*cups_afree_func_t)(void *element, void *data); /**** Array element free function ****/ /* * Functions... */ extern int cupsArrayAdd(cups_array_t *a, void *e) _CUPS_API_1_2; extern void cupsArrayClear(cups_array_t *a) _CUPS_API_1_2; extern int cupsArrayCount(cups_array_t *a) _CUPS_API_1_2; extern void *cupsArrayCurrent(cups_array_t *a) _CUPS_API_1_2; extern void cupsArrayDelete(cups_array_t *a) _CUPS_API_1_2; extern cups_array_t *cupsArrayDup(cups_array_t *a) _CUPS_API_1_2; extern void *cupsArrayFind(cups_array_t *a, void *e) _CUPS_API_1_2; extern void *cupsArrayFirst(cups_array_t *a) _CUPS_API_1_2; extern int cupsArrayGetIndex(cups_array_t *a) _CUPS_API_1_3; extern int cupsArrayGetInsert(cups_array_t *a) _CUPS_API_1_3; extern void *cupsArrayIndex(cups_array_t *a, int n) _CUPS_API_1_2; extern int cupsArrayInsert(cups_array_t *a, void *e) _CUPS_API_1_2; extern void *cupsArrayLast(cups_array_t *a) _CUPS_API_1_2; extern cups_array_t *cupsArrayNew(cups_array_func_t f, void *d) _CUPS_API_1_2; extern cups_array_t *cupsArrayNew2(cups_array_func_t f, void *d, cups_ahash_func_t h, int hsize) _CUPS_API_1_3; extern cups_array_t *cupsArrayNew3(cups_array_func_t f, void *d, cups_ahash_func_t h, int hsize, cups_acopy_func_t cf, cups_afree_func_t ff) _CUPS_API_1_5; extern void *cupsArrayNext(cups_array_t *a) _CUPS_API_1_2; extern void *cupsArrayPrev(cups_array_t *a) _CUPS_API_1_2; extern int cupsArrayRemove(cups_array_t *a, void *e) _CUPS_API_1_2; extern void *cupsArrayRestore(cups_array_t *a) _CUPS_API_1_2; extern int cupsArraySave(cups_array_t *a) _CUPS_API_1_2; extern void *cupsArrayUserData(cups_array_t *a) _CUPS_API_1_2; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_ARRAY_H_ */ cups-2.4.7/cups/array.c0000644000175000017500000006634414502571342014632 0ustar zdohnalzdohnal/* * Sorted array routines for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include #include "string-private.h" #include "debug-internal.h" #include "array-private.h" /* * Limits... */ #define _CUPS_MAXSAVE 32 /**** Maximum number of saves ****/ /* * Types and structures... */ struct _cups_array_s /**** CUPS array structure ****/ { /* * The current implementation uses an insertion sort into an array of * sorted pointers. We leave the array type private/opaque so that we * can change the underlying implementation without affecting the users * of this API. */ int num_elements, /* Number of array elements */ alloc_elements, /* Allocated array elements */ current, /* Current element */ insert, /* Last inserted element */ unique, /* Are all elements unique? */ num_saved, /* Number of saved elements */ saved[_CUPS_MAXSAVE]; /* Saved elements */ void **elements; /* Array elements */ cups_array_func_t compare; /* Element comparison function */ void *data; /* User data passed to compare */ cups_ahash_func_t hashfunc; /* Hash function */ int hashsize, /* Size of hash */ *hash; /* Hash array */ cups_acopy_func_t copyfunc; /* Copy function */ cups_afree_func_t freefunc; /* Free function */ }; /* * Local functions... */ static int cups_array_add(cups_array_t *a, void *e, int insert); static int cups_array_find(cups_array_t *a, void *e, int prev, int *rdiff); /* * 'cupsArrayAdd()' - Add an element to the array. * * When adding an element to a sorted array, non-unique elements are * appended at the end of the run of identical elements. For unsorted arrays, * the element is appended to the end of the array. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 on success, 0 on failure */ cupsArrayAdd(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { DEBUG_printf(("2cupsArrayAdd(a=%p, e=%p)", (void *)a, e)); /* * Range check input... */ if (!a || !e) { DEBUG_puts("3cupsArrayAdd: returning 0"); return (0); } /* * Append the element... */ return (cups_array_add(a, e, 0)); } /* * '_cupsArrayAddStrings()' - Add zero or more delimited strings to an array. * * Note: The array MUST be created using the @link _cupsArrayNewStrings@ * function. Duplicate strings are NOT added. If the string pointer "s" is NULL * or the empty string, no strings are added to the array. */ int /* O - 1 on success, 0 on failure */ _cupsArrayAddStrings(cups_array_t *a, /* I - Array */ const char *s, /* I - Delimited strings or NULL */ char delim)/* I - Delimiter character */ { char *buffer, /* Copy of string */ *start, /* Start of string */ *end; /* End of string */ int status = 1; /* Status of add */ DEBUG_printf(("_cupsArrayAddStrings(a=%p, s=\"%s\", delim='%c')", (void *)a, s, delim)); if (!a || !s || !*s) { DEBUG_puts("1_cupsArrayAddStrings: Returning 0"); return (0); } if (delim == ' ') { /* * Skip leading whitespace... */ DEBUG_puts("1_cupsArrayAddStrings: Skipping leading whitespace."); while (*s && isspace(*s & 255)) s ++; DEBUG_printf(("1_cupsArrayAddStrings: Remaining string \"%s\".", s)); } if (!strchr(s, delim) && (delim != ' ' || (!strchr(s, '\t') && !strchr(s, '\n')))) { /* * String doesn't contain a delimiter, so add it as a single value... */ DEBUG_puts("1_cupsArrayAddStrings: No delimiter seen, adding a single " "value."); if (!cupsArrayFind(a, (void *)s)) status = cupsArrayAdd(a, (void *)s); } else if ((buffer = strdup(s)) == NULL) { DEBUG_puts("1_cupsArrayAddStrings: Unable to duplicate string."); status = 0; } else { for (start = end = buffer; *end; start = end) { /* * Find the end of the current delimited string and see if we need to add * it... */ if (delim == ' ') { while (*end && !isspace(*end & 255)) end ++; while (*end && isspace(*end & 255)) *end++ = '\0'; } else if ((end = strchr(start, delim)) != NULL) *end++ = '\0'; else end = start + strlen(start); DEBUG_printf(("1_cupsArrayAddStrings: Adding \"%s\", end=\"%s\"", start, end)); if (!cupsArrayFind(a, start)) status &= cupsArrayAdd(a, start); } free(buffer); } DEBUG_printf(("1_cupsArrayAddStrings: Returning %d.", status)); return (status); } /* * 'cupsArrayClear()' - Clear the array. * * This function is equivalent to removing all elements in the array. * The caller is responsible for freeing the memory used by the * elements themselves. * * @since CUPS 1.2/macOS 10.5@ */ void cupsArrayClear(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return; /* * Free the existing elements as needed.. */ if (a->freefunc) { int i; /* Looping var */ void **e; /* Current element */ for (i = a->num_elements, e = a->elements; i > 0; i --, e ++) (a->freefunc)(*e, a->data); } /* * Set the number of elements to 0; we don't actually free the memory * here - that is done in cupsArrayDelete()... */ a->num_elements = 0; a->current = -1; a->insert = -1; a->unique = 1; a->num_saved = 0; } /* * 'cupsArrayCount()' - Get the number of elements in the array. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - Number of elements */ cupsArrayCount(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (0); /* * Return the number of elements... */ return (a->num_elements); } /* * 'cupsArrayCurrent()' - Return the current element in the array. * * The current element is undefined until you call @link cupsArrayFind@, * @link cupsArrayFirst@, or @link cupsArrayIndex@, or @link cupsArrayLast@. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - Element */ cupsArrayCurrent(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (NULL); /* * Return the current element... */ if (a->current >= 0 && a->current < a->num_elements) return (a->elements[a->current]); else return (NULL); } /* * 'cupsArrayDelete()' - Free all memory used by the array. * * The caller is responsible for freeing the memory used by the * elements themselves. * * @since CUPS 1.2/macOS 10.5@ */ void cupsArrayDelete(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return; /* * Free the elements if we have a free function (otherwise the caller is * responsible for doing the dirty work...) */ if (a->freefunc) { int i; /* Looping var */ void **e; /* Current element */ for (i = a->num_elements, e = a->elements; i > 0; i --, e ++) (a->freefunc)(*e, a->data); } /* * Free the array of element pointers... */ if (a->alloc_elements) free(a->elements); if (a->hashsize) free(a->hash); free(a); } /* * 'cupsArrayDup()' - Duplicate the array. * * @since CUPS 1.2/macOS 10.5@ */ cups_array_t * /* O - Duplicate array */ cupsArrayDup(cups_array_t *a) /* I - Array */ { cups_array_t *da; /* Duplicate array */ /* * Range check input... */ if (!a) return (NULL); /* * Allocate memory for the array... */ da = calloc(1, sizeof(cups_array_t)); if (!da) return (NULL); da->compare = a->compare; da->data = a->data; da->current = a->current; da->insert = a->insert; da->unique = a->unique; da->num_saved = a->num_saved; memcpy(da->saved, a->saved, sizeof(a->saved)); if (a->num_elements) { /* * Allocate memory for the elements... */ da->elements = malloc((size_t)a->num_elements * sizeof(void *)); if (!da->elements) { free(da); return (NULL); } /* * Copy the element pointers... */ if (a->copyfunc) { /* * Use the copy function to make a copy of each element... */ int i; /* Looping var */ for (i = 0; i < a->num_elements; i ++) da->elements[i] = (a->copyfunc)(a->elements[i], a->data); } else { /* * Just copy raw pointers... */ memcpy(da->elements, a->elements, (size_t)a->num_elements * sizeof(void *)); } da->num_elements = a->num_elements; da->alloc_elements = a->num_elements; } /* * Return the new array... */ return (da); } /* * 'cupsArrayFind()' - Find an element in the array. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - Element found or @code NULL@ */ cupsArrayFind(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { int current, /* Current element */ diff, /* Difference */ hash; /* Hash index */ /* * Range check input... */ if (!a || !e) return (NULL); /* * See if we have any elements... */ if (!a->num_elements) return (NULL); /* * Yes, look for a match... */ if (a->hash) { hash = (*(a->hashfunc))(e, a->data); if (hash < 0 || hash >= a->hashsize) { current = a->current; hash = -1; } else { current = a->hash[hash]; if (current < 0 || current >= a->num_elements) current = a->current; } } else { current = a->current; hash = -1; } current = cups_array_find(a, e, current, &diff); if (!diff) { /* * Found a match! If the array does not contain unique values, find * the first element that is the same... */ if (!a->unique && a->compare) { /* * The array is not unique, find the first match... */ while (current > 0 && !(*(a->compare))(e, a->elements[current - 1], a->data)) current --; } a->current = current; if (hash >= 0) a->hash[hash] = current; return (a->elements[current]); } else { /* * No match... */ a->current = -1; return (NULL); } } /* * 'cupsArrayFirst()' - Get the first element in the array. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - First element or @code NULL@ if the array is empty */ cupsArrayFirst(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (NULL); /* * Return the first element... */ a->current = 0; return (cupsArrayCurrent(a)); } /* * 'cupsArrayGetIndex()' - Get the index of the current element. * * The current element is undefined until you call @link cupsArrayFind@, * @link cupsArrayFirst@, or @link cupsArrayIndex@, or @link cupsArrayLast@. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - Index of the current element, starting at 0 */ cupsArrayGetIndex(cups_array_t *a) /* I - Array */ { if (!a) return (-1); else return (a->current); } /* * 'cupsArrayGetInsert()' - Get the index of the last inserted element. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - Index of the last inserted element, starting at 0 */ cupsArrayGetInsert(cups_array_t *a) /* I - Array */ { if (!a) return (-1); else return (a->insert); } /* * 'cupsArrayIndex()' - Get the N-th element in the array. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - N-th element or @code NULL@ */ cupsArrayIndex(cups_array_t *a, /* I - Array */ int n) /* I - Index into array, starting at 0 */ { if (!a) return (NULL); a->current = n; return (cupsArrayCurrent(a)); } /* * 'cupsArrayInsert()' - Insert an element in the array. * * When inserting an element in a sorted array, non-unique elements are * inserted at the beginning of the run of identical elements. For unsorted * arrays, the element is inserted at the beginning of the array. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 0 on failure, 1 on success */ cupsArrayInsert(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { DEBUG_printf(("2cupsArrayInsert(a=%p, e=%p)", (void *)a, e)); /* * Range check input... */ if (!a || !e) { DEBUG_puts("3cupsArrayInsert: returning 0"); return (0); } /* * Insert the element... */ return (cups_array_add(a, e, 1)); } /* * 'cupsArrayLast()' - Get the last element in the array. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - Last element or @code NULL@ if the array is empty */ cupsArrayLast(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (NULL); /* * Return the last element... */ a->current = a->num_elements - 1; return (cupsArrayCurrent(a)); } /* * 'cupsArrayNew()' - Create a new array. * * The comparison function ("f") is used to create a sorted array. The function * receives pointers to two elements and the user data pointer ("d") - the user * data pointer argument can safely be omitted when not required so functions * like @code strcmp@ can be used for sorted string arrays. * * @since CUPS 1.2/macOS 10.5@ */ cups_array_t * /* O - Array */ cupsArrayNew(cups_array_func_t f, /* I - Comparison function or @code NULL@ for an unsorted array */ void *d) /* I - User data pointer or @code NULL@ */ { return (cupsArrayNew3(f, d, 0, 0, 0, 0)); } /* * 'cupsArrayNew2()' - Create a new array with hash. * * The comparison function ("f") is used to create a sorted array. The function * receives pointers to two elements and the user data pointer ("d") - the user * data pointer argument can safely be omitted when not required so functions * like @code strcmp@ can be used for sorted string arrays. * * The hash function ("h") is used to implement cached lookups with the * specified hash size ("hsize"). * * @since CUPS 1.3/macOS 10.5@ */ cups_array_t * /* O - Array */ cupsArrayNew2(cups_array_func_t f, /* I - Comparison function or @code NULL@ for an unsorted array */ void *d, /* I - User data or @code NULL@ */ cups_ahash_func_t h, /* I - Hash function or @code NULL@ for unhashed lookups */ int hsize) /* I - Hash size (>= 0) */ { return (cupsArrayNew3(f, d, h, hsize, 0, 0)); } /* * 'cupsArrayNew3()' - Create a new array with hash and/or free function. * * The comparison function ("f") is used to create a sorted array. The function * receives pointers to two elements and the user data pointer ("d") - the user * data pointer argument can safely be omitted when not required so functions * like @code strcmp@ can be used for sorted string arrays. * * The hash function ("h") is used to implement cached lookups with the * specified hash size ("hsize"). * * The copy function ("cf") is used to automatically copy/retain elements when * added or the array is copied. * * The free function ("cf") is used to automatically free/release elements when * removed or the array is deleted. * * @since CUPS 1.5/macOS 10.7@ */ cups_array_t * /* O - Array */ cupsArrayNew3(cups_array_func_t f, /* I - Comparison function or @code NULL@ for an unsorted array */ void *d, /* I - User data or @code NULL@ */ cups_ahash_func_t h, /* I - Hash function or @code NULL@ for unhashed lookups */ int hsize, /* I - Hash size (>= 0) */ cups_acopy_func_t cf, /* I - Copy function */ cups_afree_func_t ff) /* I - Free function */ { cups_array_t *a; /* Array */ /* * Allocate memory for the array... */ a = calloc(1, sizeof(cups_array_t)); if (!a) return (NULL); a->compare = f; a->data = d; a->current = -1; a->insert = -1; a->num_saved = 0; a->unique = 1; if (hsize > 0 && h) { a->hashfunc = h; a->hashsize = hsize; a->hash = malloc((size_t)hsize * sizeof(int)); if (!a->hash) { free(a); return (NULL); } memset(a->hash, -1, (size_t)hsize * sizeof(int)); } a->copyfunc = cf; a->freefunc = ff; return (a); } /* * '_cupsArrayNewStrings()' - Create a new array of comma-delimited strings. * * Note: The array automatically manages copies of the strings passed. If the * string pointer "s" is NULL or the empty string, no strings are added to the * newly created array. */ cups_array_t * /* O - Array */ _cupsArrayNewStrings(const char *s, /* I - Delimited strings or NULL */ char delim) /* I - Delimiter character */ { cups_array_t *a; /* Array */ if ((a = cupsArrayNew3((cups_array_func_t)strcmp, NULL, NULL, 0, (cups_acopy_func_t)_cupsStrAlloc, (cups_afree_func_t)_cupsStrFree)) != NULL) _cupsArrayAddStrings(a, s, delim); return (a); } /* * 'cupsArrayNext()' - Get the next element in the array. * * This function is equivalent to "cupsArrayIndex(a, cupsArrayGetIndex(a) + 1)". * * The next element is undefined until you call @link cupsArrayFind@, * @link cupsArrayFirst@, or @link cupsArrayIndex@, or @link cupsArrayLast@ * to set the current element. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - Next element or @code NULL@ */ cupsArrayNext(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (NULL); /* * Return the next element... */ if (a->current < a->num_elements) a->current ++; return (cupsArrayCurrent(a)); } /* * 'cupsArrayPrev()' - Get the previous element in the array. * * This function is equivalent to "cupsArrayIndex(a, cupsArrayGetIndex(a) - 1)". * * The previous element is undefined until you call @link cupsArrayFind@, * @link cupsArrayFirst@, or @link cupsArrayIndex@, or @link cupsArrayLast@ * to set the current element. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - Previous element or @code NULL@ */ cupsArrayPrev(cups_array_t *a) /* I - Array */ { /* * Range check input... */ if (!a) return (NULL); /* * Return the previous element... */ if (a->current >= 0) a->current --; return (cupsArrayCurrent(a)); } /* * 'cupsArrayRemove()' - Remove an element from the array. * * If more than one element matches "e", only the first matching element is * removed. * * The caller is responsible for freeing the memory used by the * removed element. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 on success, 0 on failure */ cupsArrayRemove(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { ssize_t i, /* Looping var */ current; /* Current element */ int diff; /* Difference */ /* * Range check input... */ if (!a || !e) return (0); /* * See if the element is in the array... */ if (!a->num_elements) return (0); current = cups_array_find(a, e, a->current, &diff); if (diff) return (0); /* * Yes, now remove it... */ a->num_elements --; if (a->freefunc) (a->freefunc)(a->elements[current], a->data); if (current < a->num_elements) memmove(a->elements + current, a->elements + current + 1, (size_t)(a->num_elements - current) * sizeof(void *)); if (current <= a->current) a->current --; if (current < a->insert) a->insert --; else if (current == a->insert) a->insert = -1; for (i = 0; i < a->num_saved; i ++) if (current <= a->saved[i]) a->saved[i] --; if (a->num_elements <= 1) a->unique = 1; return (1); } /* * 'cupsArrayRestore()' - Reset the current element to the last @link cupsArraySave@. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - New current element */ cupsArrayRestore(cups_array_t *a) /* I - Array */ { if (!a) return (NULL); if (a->num_saved <= 0) return (NULL); a->num_saved --; a->current = a->saved[a->num_saved]; if (a->current >= 0 && a->current < a->num_elements) return (a->elements[a->current]); else return (NULL); } /* * 'cupsArraySave()' - Mark the current element for a later @link cupsArrayRestore@. * * The current element is undefined until you call @link cupsArrayFind@, * @link cupsArrayFirst@, or @link cupsArrayIndex@, or @link cupsArrayLast@ * to set the current element. * * The save/restore stack is guaranteed to be at least 32 elements deep. * * @since CUPS 1.2/macOS 10.5@ */ int /* O - 1 on success, 0 on failure */ cupsArraySave(cups_array_t *a) /* I - Array */ { if (!a) return (0); if (a->num_saved >= _CUPS_MAXSAVE) return (0); a->saved[a->num_saved] = a->current; a->num_saved ++; return (1); } /* * 'cupsArrayUserData()' - Return the user data for an array. * * @since CUPS 1.2/macOS 10.5@ */ void * /* O - User data */ cupsArrayUserData(cups_array_t *a) /* I - Array */ { if (a) return (a->data); else return (NULL); } /* * 'cups_array_add()' - Insert or append an element to the array. * * @since CUPS 1.2/macOS 10.5@ */ static int /* O - 1 on success, 0 on failure */ cups_array_add(cups_array_t *a, /* I - Array */ void *e, /* I - Element to add */ int insert) /* I - 1 = insert, 0 = append */ { int i, /* Looping var */ current; /* Current element */ int diff; /* Comparison with current element */ DEBUG_printf(("7cups_array_add(a=%p, e=%p, insert=%d)", (void *)a, e, insert)); /* * Verify we have room for the new element... */ if (a->num_elements >= a->alloc_elements) { /* * Allocate additional elements; start with 16 elements, then * double the size until 1024 elements, then add 1024 elements * thereafter... */ void **temp; /* New array elements */ int count; /* New allocation count */ if (a->alloc_elements == 0) { count = 16; temp = malloc((size_t)count * sizeof(void *)); } else { if (a->alloc_elements < 1024) count = a->alloc_elements * 2; else count = a->alloc_elements + 1024; temp = realloc(a->elements, (size_t)count * sizeof(void *)); } DEBUG_printf(("9cups_array_add: count=" CUPS_LLFMT, CUPS_LLCAST count)); if (!temp) { DEBUG_puts("9cups_array_add: allocation failed, returning 0"); return (0); } a->alloc_elements = count; a->elements = temp; } /* * Find the insertion point for the new element; if there is no * compare function or elements, just add it to the beginning or end... */ if (!a->num_elements || !a->compare) { /* * No elements or comparison function, insert/append as needed... */ if (insert) current = 0; /* Insert at beginning */ else current = a->num_elements; /* Append to the end */ } else { /* * Do a binary search for the insertion point... */ current = cups_array_find(a, e, a->insert, &diff); if (diff > 0) { /* * Insert after the current element... */ current ++; } else if (!diff) { /* * Compared equal, make sure we add to the beginning or end of * the current run of equal elements... */ a->unique = 0; if (insert) { /* * Insert at beginning of run... */ while (current > 0 && !(*(a->compare))(e, a->elements[current - 1], a->data)) current --; } else { /* * Append at end of run... */ do { current ++; } while (current < a->num_elements && !(*(a->compare))(e, a->elements[current], a->data)); } } } /* * Insert or append the element... */ if (current < a->num_elements) { /* * Shift other elements to the right... */ memmove(a->elements + current + 1, a->elements + current, (size_t)(a->num_elements - current) * sizeof(void *)); if (a->current >= current) a->current ++; for (i = 0; i < a->num_saved; i ++) if (a->saved[i] >= current) a->saved[i] ++; DEBUG_printf(("9cups_array_add: insert element at index " CUPS_LLFMT, CUPS_LLCAST current)); } #ifdef DEBUG else DEBUG_printf(("9cups_array_add: append element at " CUPS_LLFMT, CUPS_LLCAST current)); #endif /* DEBUG */ if (a->copyfunc) { if ((a->elements[current] = (a->copyfunc)(e, a->data)) == NULL) { DEBUG_puts("8cups_array_add: Copy function returned NULL, returning 0"); return (0); } } else a->elements[current] = e; a->num_elements ++; a->insert = current; #ifdef DEBUG for (current = 0; current < a->num_elements; current ++) DEBUG_printf(("9cups_array_add: a->elements[" CUPS_LLFMT "]=%p", CUPS_LLCAST current, a->elements[current])); #endif /* DEBUG */ DEBUG_puts("9cups_array_add: returning 1"); return (1); } /* * 'cups_array_find()' - Find an element in the array. */ static int /* O - Index of match */ cups_array_find(cups_array_t *a, /* I - Array */ void *e, /* I - Element */ int prev, /* I - Previous index */ int *rdiff) /* O - Difference of match */ { int left, /* Left side of search */ right, /* Right side of search */ current, /* Current element */ diff; /* Comparison with current element */ DEBUG_printf(("7cups_array_find(a=%p, e=%p, prev=%d, rdiff=%p)", (void *)a, e, prev, (void *)rdiff)); if (a->compare) { /* * Do a binary search for the element... */ DEBUG_puts("9cups_array_find: binary search"); if (prev >= 0 && prev < a->num_elements) { /* * Start search on either side of previous... */ if ((diff = (*(a->compare))(e, a->elements[prev], a->data)) == 0 || (diff < 0 && prev == 0) || (diff > 0 && prev == (a->num_elements - 1))) { /* * Exact or edge match, return it! */ DEBUG_printf(("9cups_array_find: Returning %d, diff=%d", prev, diff)); *rdiff = diff; return (prev); } else if (diff < 0) { /* * Start with previous on right side... */ left = 0; right = prev; } else { /* * Start with previous on left side... */ left = prev; right = a->num_elements - 1; } } else { /* * Start search in the middle... */ left = 0; right = a->num_elements - 1; } do { current = (left + right) / 2; diff = (*(a->compare))(e, a->elements[current], a->data); DEBUG_printf(("9cups_array_find: left=%d, right=%d, current=%d, diff=%d", left, right, current, diff)); if (diff == 0) break; else if (diff < 0) right = current; else left = current; } while ((right - left) > 1); if (diff != 0) { /* * Check the last 1 or 2 elements... */ if ((diff = (*(a->compare))(e, a->elements[left], a->data)) <= 0) current = left; else { diff = (*(a->compare))(e, a->elements[right], a->data); current = right; } } } else { /* * Do a linear pointer search... */ DEBUG_puts("9cups_array_find: linear search"); diff = 1; for (current = 0; current < a->num_elements; current ++) if (a->elements[current] == e) { diff = 0; break; } } /* * Return the closest element and the difference... */ DEBUG_printf(("8cups_array_find: Returning %d, diff=%d", current, diff)); *rdiff = diff; return (current); } cups-2.4.7/cups/array-private.h0000644000175000017500000000133414502571342016273 0ustar zdohnalzdohnal/* * Private array definitions for CUPS. * * Copyright 2011-2012 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_ARRAY_PRIVATE_H_ # define _CUPS_ARRAY_PRIVATE_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Functions... */ extern int _cupsArrayAddStrings(cups_array_t *a, const char *s, char delim) _CUPS_PRIVATE; extern cups_array_t *_cupsArrayNewStrings(const char *s, char delim) _CUPS_PRIVATE; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_ARRAY_PRIVATE_H_ */ cups-2.4.7/cups/api-raster.shtml0000644000175000017500000001364214502571342016461 0ustar zdohnalzdohnal

    The CUPS raster API provides a standard interface for reading and writing CUPS raster streams which are used for printing to raster printers. Because the raster format is updated from time to time, it is important to use this API to avoid incompatibilities with newer versions of CUPS.

    Two kinds of CUPS filters use the CUPS raster API - raster image processor (RIP) filters such as pstoraster and cgpdftoraster (macOS) that produce CUPS raster files and printer driver filters that convert CUPS raster files into a format usable by the printer. Printer driver filters are by far the most common.

    CUPS raster files (application/vnd.cups-raster) consists of a stream of raster page descriptions produced by one of the RIP filters such as pstoraster, imagetoraster, or cgpdftoraster. CUPS raster files are referred to using the cups_raster_t type and are opened using the cupsRasterOpen function. For example, to read raster data from the standard input, open file descriptor 0:

    #include <cups/raster.h>
    
    cups_raster_t *ras = cupsRasterOpen(0, CUPS_RASTER_READ);
    

    Each page of data begins with a page dictionary structure called cups_page_header2_t. This structure contains the colorspace, bits per color, media size, media type, hardware resolution, and so forth used for the page.

    Note:

    Do not confuse the colorspace in the page header with the PPD ColorModel keyword. ColorModel refers to the general type of color used for a device (Gray, RGB, CMYK, DeviceN) and is often used to select a particular colorspace for the page header along with the associate color profile. The page header colorspace (cupsColorSpace) describes both the type and organization of the color data, for example KCMY (black first) instead of CMYK and RGBA (RGB + alpha) instead of RGB.

    You read the page header using the cupsRasterReadHeader2 function:

    #include <cups/raster.h>
    
    cups_raster_t *ras = cupsRasterOpen(0, CUPS_RASTER_READ);
    cups_page_header2_t header;
    
    while (cupsRasterReadHeader2(ras, &header))
    {
      /* setup this page */
    
      /* read raster data */
    
      /* finish this page */
    }
    

    After the page dictionary comes the page data which is a full-resolution, possibly compressed bitmap representing the page in the printer's output colorspace. You read uncompressed raster data using the cupsRasterReadPixels function. A for loop is normally used to read the page one line at a time:

    #include <cups/raster.h>
    
    cups_raster_t *ras = cupsRasterOpen(0, CUPS_RASTER_READ);
    cups_page_header2_t header;
    int page = 0;
    int y;
    char *buffer;
    
    while (cupsRasterReadHeader2(ras, &header))
    {
      /* setup this page */
      page ++;
      fprintf(stderr, "PAGE: %d %d\n", page, header.NumCopies);
    
      /* allocate memory for 1 line */
      buffer = malloc(header.cupsBytesPerLine);
    
      /* read raster data */
      for (y = 0; y < header.cupsHeight; y ++)
      {
        if (cupsRasterReadPixels(ras, buffer, header.cupsBytesPerLine) == 0)
          break;
    
        /* write raster data to printer on stdout */
      }
    
      /* finish this page */
    }
    

    When you are done reading the raster data, call the cupsRasterClose function to free the memory used to read the raster file:

    cups_raster_t *ras;
    
    cupsRasterClose(ras);
    

    Functions by Task

    Opening and Closing Raster Streams

    Reading Raster Streams

    Writing Raster Streams

    cups-2.4.7/cups/api-raster.header0000644000175000017500000000120014502571342016545 0ustar zdohnalzdohnal

    Raster API

    Header cups/raster.h
    Library -lcups
    See Also Programming: CUPS Programming Manual
    Programming: PPD API
    References: CUPS PPD Specification
    cups-2.4.7/cups/api-ppd.shtml0000644000175000017500000002145614502571342015746 0ustar zdohnalzdohnal

    Overview

    Note:

    The PPD API was deprecated in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the CUPS Programming Manual documentation. These functions will be removed in a future release of CUPS.

    The CUPS PPD API provides read-only access the data in PostScript Printer Description ("PPD") files which are used for all printers with a driver. With it you can obtain the data necessary to display printer options to users, mark option choices and check for conflicting choices, and output marked choices in PostScript output. The ppd_file_t structure contains all of the information in a PPD file.

    Note:

    The CUPS PPD API uses the terms "option" and "choice" instead of the Adobe terms "MainKeyword" and "OptionKeyword" to refer to specific printer options and features. CUPS also treats option ("MainKeyword") and choice ("OptionKeyword") values as case-insensitive strings, so option "InputSlot" and choice "Upper" are equivalent to "inputslot" and "upper", respectively.

    Loading a PPD File

    The ppdOpenFile function "opens" a PPD file and loads it into memory. For example, the following code opens the current printer's PPD file in a CUPS filter:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd = ppdOpenFile(getenv("PPD"));
    

    The return value is a pointer to a new ppd_file_t structure or NULL if the PPD file does not exist or cannot be loaded. The ppdClose function frees the memory used by the structure:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdClose(ppd);
    

    Once closed, pointers to the ppd_file_t structure and any data in it will no longer be valid.

    Options and Groups

    PPD files support multiple options, which are stored in arrays of ppd_option_t and ppd_choice_t structures.

    Each option in turn is associated with a group stored in a ppd_group_t structure. Groups can be specified in the PPD file; if an option is not associated with a group then it is put in an automatically-generated "General" group. Groups can also have sub-groups, however CUPS currently ignores sub-groups because of past abuses of this functionality.

    Option choices are selected by marking them using one of three functions. The first is ppdMarkDefaults which selects all of the default options in the PPD file:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdMarkDefaults(ppd);
    

    The second is ppdMarkOption which selects a single option choice in the PPD file. For example, the following code selects the upper paper tray:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    ppdMarkOption(ppd, "InputSlot", "Upper");
    

    The last function is cupsMarkOptions which selects multiple option choices in the PPD file from an array of CUPS options, mapping IPP attributes like "media" and "sides" to their corresponding PPD options. You typically use this function in a print filter with cupsParseOptions and ppdMarkDefaults to select all of the option choices needed for the job, for example:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd = ppdOpenFile(getenv("PPD"));
    cups_option_t *options = NULL;
    int num_options = cupsParseOptions(argv[5], 0, &options);
    
    ppdMarkDefaults(ppd);
    cupsMarkOptions(ppd, num_options, options);
    cupsFreeOptions(num_options, options);
    

    Constraints

    PPD files support specification of conflict conditions, called constraints, between different options. Constraints are stored in an array of ppd_const_t structures which specify the options and choices that conflict with each other. The ppdConflicts function tells you how many of the selected options are incompatible. Since constraints are normally specified in pairs, the returned value is typically an even number.

    Page Sizes

    Page sizes are special options which have physical dimensions and margins associated with them. The size information is stored in ppd_size_t structures and is available by looking up the named size with the ppdPageSize function. The page size and margins are returned in units called points; there are 72 points per inch. If you pass NULL for the size, the currently selected size is returned:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    ppd_size_t *size = ppdPageSize(ppd, NULL);
    

    Besides the standard page sizes listed in a PPD file, some printers support variable or custom page sizes. Custom page sizes are supported if the variables_sizes member of the ppd_file_t structure is non-zero. The custom_min, custom_max, and custom_margins members of the ppd_file_t structure define the limits of the printable area. To get the resulting media size, use a page size string of the form "Custom.widthxlength", where "width" and "length" are in points. Custom page size names can also be specified in inches ("Custom.widthxheightin"), centimeters ("Custom.widthxheightcm"), or millimeters ("Custom.widthxheightmm"):

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    
    /* Get an 576x720 point custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.576x720");
    
    /* Get an 8x10 inch custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.8x10in");
    
    /* Get a 100x200 millimeter custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.100x200mm");
    
    /* Get a 12.7x34.5 centimeter custom page size */
    ppd_size_t *size = ppdPageSize(ppd, "Custom.12.7x34.5cm");
    

    If the PPD does not support variable page sizes, the ppdPageSize function will return NULL.

    Attributes

    Every PPD file is composed of one or more attributes. Most of these attributes are used to define groups, options, choices, and page sizes, however several informational attributes may be present which you can access in your program or filter. Attributes normally look like one of the following examples in a PPD file:

    *name: "value"
    *name spec: "value"
    *name spec/text: "value"
    

    The ppdFindAttr and ppdFindNextAttr functions find the first and next instances, respectively, of the named attribute with the given "spec" string and return a ppd_attr_t structure. If you provide a NULL specifier string, all attributes with the given name will be returned. For example, the following code lists all of the Product attributes in a PPD file:

    #include <cups/ppd.h>
    
    ppd_file_t *ppd;
    ppd_attr_t *attr;
    
    for (attr = ppdFindAttr(ppd, "Product", NULL);
         attr != NULL;
         attr = ppdFindNextAttr(ppd, "Product", NULL))
      puts(attr->value);
    
    cups-2.4.7/cups/api-ppd.header0000644000175000017500000000172114502571342016040 0ustar zdohnalzdohnal

    PPD API (DEPRECATED)

    Note:

    The PPD API was deprecated in CUPS 1.6/macOS 10.8. Please use the new Job Ticket APIs in the CUPS Programming Manual documentation. These functions will be removed in a future release of CUPS.

    Header cups/ppd.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS Programming Manual
    Specifications: CUPS PPD Extensions
    cups-2.4.7/cups/api-filter.shtml0000644000175000017500000007511714502571342016453 0ustar zdohnalzdohnal

    Overview

    Filters (which include printer drivers and port monitors) and backends are used to convert job files to a printable format and send that data to the printer itself. All of these programs use a common interface for processing print jobs and communicating status information to the scheduler. Each is run with a standard set of command-line arguments:

    argv[1]
    The job ID
    argv[2]
    The user printing the job
    argv[3]
    The job name/title
    argv[4]
    The number of copies to print
    argv[5]
    The options that were provided when the job was submitted
    argv[6]
    The file to print (first program only)

    The scheduler runs one or more of these programs to print any given job. The first filter reads from the print file and writes to the standard output, while the remaining filters read from the standard input and write to the standard output. The backend is the last filter in the chain and writes to the device.

    Filters are always run as a non-privileged user, typically "lp", with no connection to the user's desktop. Backends are run either as a non-privileged user or as root if the file permissions do not allow user or group execution. The file permissions section talks about this in more detail.

    Security Considerations

    It is always important to use security programming practices. Filters and most backends are run as a non-privileged user, so the major security consideration is resource utilization - filters should not depend on unlimited amounts of CPU, memory, or disk space, and should protect against conditions that could lead to excess usage of any resource like infinite loops and unbounded recursion. In addition, filters must never allow the user to specify an arbitrary file path to a separator page, template, or other file used by the filter since that can lead to an unauthorized disclosure of information. Always treat input as suspect and validate it!

    If you are developing a backend that runs as root, make sure to check for potential buffer overflows, integer under/overflow conditions, and file accesses since these can lead to privilege escalations. When writing files, always validate the file path and never allow a user to determine where to store a file.

    Note:

    Never write files to a user's home directory. Aside from the security implications, CUPS is a network print service and as such the network user may not be the same as the local user and/or there may not be a local home directory to write to.

    In addition, some operating systems provide additional security mechanisms that further limit file system access, even for backends running as root. On macOS, for example, no backend may write to a user's home directory. See the Sandboxing on macOS section for more information.

    Canceled Jobs and Signal Handling

    The scheduler sends SIGTERM when a printing job is canceled or held. Filters, backends, and port monitors must catch SIGTERM and perform any cleanup necessary to produce a valid output file or return the printer to a known good state. The recommended behavior is to end the output on the current page, preferably on the current line or object being printed.

    Filters and backends may also receive SIGPIPE when an upstream or downstream filter/backend exits with a non-zero status. Developers should generally ignore SIGPIPE at the beginning of main() with the following function call:

    #include <signal.h>
    
    ...
    
    int
    main(int argc, char *argv[])
    {
      signal(SIGPIPE, SIG_IGN);
    
      ...
    }
    

    File Permissions

    For security reasons, CUPS will only run filters and backends that are owned by root and do not have world or group write permissions. The recommended permissions for filters and backends are 0555 - read and execute but no write. Backends that must run as root should use permissions of 0500 - read and execute by root, no access for other users. Write permissions can be enabled for the root user only.

    To avoid a warning message, the directory containing your filter(s) must also be owned by root and have world and group write disabled - permissions of 0755 or 0555 are strongly encouraged.

    Temporary Files

    Temporary files should be created in the directory specified by the "TMPDIR" environment variable. The cupsTempFile2 function can be used to safely create temporary files in this directory.

    Copy Generation

    The argv[4] argument specifies the number of copies to produce of the input file. In general, you should only generate copies if the filename argument is supplied. The only exception to this are filters that produce device-independent PostScript output, since the PostScript filter pstops is responsible for generating copies of PostScript files.

    Exit Codes

    Filters must exit with status 0 when they successfully generate print data or 1 when they encounter an error. Backends can return any of the cups_backend_t constants.

    Environment Variables

    The following environment variables are defined by the printing system when running print filters and backends:

    APPLE_LANGUAGE
    The Apple language identifier associated with the job (macOS only).
    CHARSET
    The job character set, typically "utf-8".
    CLASS
    When a job is submitted to a printer class, contains the name of the destination printer class. Otherwise this environment variable will not be set.
    CONTENT_TYPE
    The MIME type associated with the file (e.g. application/postscript).
    CUPS_CACHEDIR
    The directory where cache files can be stored. Cache files can be used to retain information between jobs or files in a job.
    CUPS_DATADIR
    The directory where (read-only) CUPS data files can be found.
    CUPS_FILETYPE
    The type of file being printed: "job-sheet" for a banner page and "document" for a regular print file.
    CUPS_SERVERROOT
    The root directory of the server.
    DEVICE_URI
    The device-uri associated with the printer.
    FINAL_CONTENT_TYPE
    The MIME type associated with the printer (e.g. application/vnd.cups-postscript).
    LANG
    The language locale associated with the job.
    PPD
    The full pathname of the PostScript Printer Description (PPD) file for this printer.
    PRINTER
    The queue name of the class or printer.
    RIP_CACHE
    The recommended amount of memory to use for Raster Image Processors (RIPs).
    TMPDIR
    The directory where temporary files should be created.

    Communicating with the Scheduler

    Filters and backends communicate with the scheduler by writing messages to the standard error file. The scheduler reads messages from all filters in a job and processes the message based on its prefix. For example, the following code sets the current printer state message to "Printing page 5":

    int page = 5;
    
    fprintf(stderr, "INFO: Printing page %d\n", page);
    

    Each message is a single line of text starting with one of the following prefix strings:

    ALERT: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "alert" log level.
    ATTR: attribute=value [attribute=value]
    Sets the named printer or job attribute(s). Typically this is used to set the marker-colors, marker-high-levels, marker-levels, marker-low-levels, marker-message, marker-names, marker-types, printer-alert, and printer-alert-description printer attributes. Standard marker-types values are listed in Table 1. String values need special handling - see Reporting Attribute String Values below.
    CRIT: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "critical" log level.
    DEBUG: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "debug" log level.
    DEBUG2: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "debug2" log level.
    EMERG: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "emergency" log level.
    ERROR: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "error" log level. Use "ERROR:" messages for non-persistent processing errors.
    INFO: message
    Sets the printer-state-message attribute. If the current log level is set to "debug2", also adds the specified message to the current error log file using the "info" log level.
    NOTICE: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "notice" log level.
    PAGE: page-number #-copies
    PAGE: total #-pages
    Adds an entry to the current page log file. The first form adds #-copies to the job-media-sheets-completed attribute. The second form sets the job-media-sheets-completed attribute to #-pages.
    PPD: keyword=value [keyword=value ...]
    Changes or adds keywords to the printer's PPD file. Typically this is used to update installable options or default media settings based on the printer configuration.
    STATE: + printer-state-reason [printer-state-reason ...]
    STATE: - printer-state-reason [printer-state-reason ...]
    Sets or clears printer-state-reason keywords for the current queue. Typically this is used to indicate persistent media, ink, toner, and configuration conditions or errors on a printer. Table 2 lists some of the standard "printer-state-reasons" keywords from the IANA IPP Registry - use vendor-prefixed ("com.example.foo") keywords for custom states. See Managing Printer State in a Filter for more information.
    WARNING: message
    Sets the printer-state-message attribute and adds the specified message to the current error log file using the "warning" log level.

    Messages without one of these prefixes are treated as if they began with the "DEBUG:" prefix string.

    Table 1: Standard marker-types Values
    marker-type Description
    developer Developer unit
    fuser Fuser unit
    fuser-cleaning-pad Fuser cleaning pad
    fuser-oil Fuser oil
    ink Ink supply
    opc Photo conductor
    solid-wax Wax supply
    staples Staple supply
    toner Toner supply
    transfer-unit Transfer unit
    waste-ink Waste ink tank
    waste-toner Waste toner tank
    waste-wax Waste wax tank

    Table 2: Standard State Keywords
    Keyword Description
    connecting-to-device Connecting to printer but not printing yet.
    cover-open The printer's cover is open.
    input-tray-missing The paper tray is missing.
    marker-supply-empty The printer is out of ink.
    marker-supply-low The printer is almost out of ink.
    marker-waste-almost-full The printer's waste bin is almost full.
    marker-waste-full The printer's waste bin is full.
    media-empty The paper tray (any paper tray) is empty.
    media-jam There is a paper jam.
    media-low The paper tray (any paper tray) is almost empty.
    media-needed The paper tray needs to be filled (for a job that is printing).
    paused Stop the printer.
    timed-out Unable to connect to printer.
    toner-empty The printer is out of toner.
    toner-low The printer is low on toner.

    Reporting Attribute String Values

    When reporting string values using "ATTR:" messages, a filter or backend must take special care to appropriately quote those values. The scheduler uses the CUPS option parsing code for attributes, so the general syntax is:

    name=simple
    name=simple,simple,...
    name='complex value'
    name="complex value"
    name='"complex value"','"complex value"',...
    

    Simple values are strings that do not contain spaces, quotes, backslashes, or the comma and can be placed verbatim in the "ATTR:" message, for example:

    int levels[4] = { 40, 50, 60, 70 }; /* CMYK */
    
    fputs("ATTR: marker-colors=#00FFFF,#FF00FF,#FFFF00,#000000\n", stderr);
    fputs("ATTR: marker-high-levels=100,100,100,100\n", stderr);
    fprintf(stderr, "ATTR: marker-levels=%d,%d,%d,%d\n", levels[0], levels[1],
            levels[2], levels[3], levels[4]);
    fputs("ATTR: marker-low-levels=5,5,5,5\n", stderr);
    fputs("ATTR: marker-types=toner,toner,toner,toner\n", stderr);
    

    Complex values that contains spaces, quotes, backslashes, or the comma must be quoted. For a single value a single set of quotes is sufficient:

    fputs("ATTR: marker-message='Levels shown are approximate.'\n", stderr);
    

    When multiple values are reported, each value must be enclosed by a set of single and double quotes:

    fputs("ATTR: marker-names='\"Cyan Toner\"','\"Magenta Toner\"',"
          "'\"Yellow Toner\"','\"Black Toner\"'\n", stderr);
    

    The IPP backend includes a quote_string function that may be used to properly quote a complex value in an "ATTR:" message:

    static const char *                     /* O - Quoted string */
    quote_string(const char *s,             /* I - String */
                 char       *q,             /* I - Quoted string buffer */
                 size_t     qsize)          /* I - Size of quoted string buffer */
    {
      char  *qptr,                          /* Pointer into string buffer */
            *qend;                          /* End of string buffer */
    
    
      qptr = q;
      qend = q + qsize - 5;
    
      if (qend < q)
      {
        *q = '\0';
        return (q);
      }
    
      *qptr++ = '\'';
      *qptr++ = '\"';
    
      while (*s && qptr < qend)
      {
        if (*s == '\\' || *s == '\"' || *s == '\'')
        {
          if (qptr < (qend - 4))
          {
            *qptr++ = '\\';
            *qptr++ = '\\';
            *qptr++ = '\\';
          }
          else
            break;
        }
    
        *qptr++ = *s++;
      }
    
      *qptr++ = '\"';
      *qptr++ = '\'';
      *qptr   = '\0';
    
      return (q);
    }
    

    Managing Printer State in a Filter

    Filters are responsible for managing the state keywords they set using "STATE:" messages. Typically you will update all of the keywords that are used by the filter at startup, for example:

    if (foo_condition != 0)
      fputs("STATE: +com.example.foo\n", stderr);
    else
      fputs("STATE: -com.example.foo\n", stderr);
    
    if (bar_condition != 0)
      fputs("STATE: +com.example.bar\n", stderr);
    else
      fputs("STATE: -com.example.bar\n", stderr);
    

    Then as conditions change, your filter sends "STATE: +keyword" or "STATE: -keyword" messages as necessary to set or clear the corresponding keyword, respectively.

    State keywords are often used to notify the user of issues that span across jobs, for example "media-empty-warning" that indicates one or more paper trays are empty. These keywords should not be cleared unless the corresponding issue no longer exists.

    Filters should clear job-related keywords on startup and exit so that they do not remain set between jobs. For example, "connecting-to-device" is a job sub-state and not an issue that applies when a job is not printing.

    Note:

    "STATE:" messages often provide visible alerts to the user. For example, on macOS setting a printer-state-reason value with an "-error" or "-warning" suffix will cause the printer's dock item to bounce if the corresponding reason is localized with a cupsIPPReason keyword in the printer's PPD file.

    When providing a vendor-prefixed keyword, always provide the corresponding standard keyword (if any) to allow clients to respond to the condition correctly. For example, if you provide a vendor-prefixed keyword for a low cyan ink condition ("com.example.cyan-ink-low") you must also set the "marker-supply-low-warning" keyword. In such cases you should also refrain from localizing the vendor-prefixed keyword in the PPD file - otherwise both the generic and vendor-specific keyword will be shown in the user interface.

    Reporting Supply Levels

    CUPS tracks several "marker-*" attributes for ink/toner supply level reporting. These attributes allow applications to display the current supply levels for a printer without printer-specific software. Table 3 lists the marker attributes and what they represent.

    Filters set marker attributes by sending "ATTR:" messages to stderr. For example, a filter supporting an inkjet printer with black and tri-color ink cartridges would use the following to initialize the supply attributes:

    fputs("ATTR: marker-colors=#000000,#00FFFF#FF00FF#FFFF00\n", stderr);
    fputs("ATTR: marker-low-levels=5,10\n", stderr);
    fputs("ATTR: marker-names=Black,Tri-Color\n", stderr);
    fputs("ATTR: marker-types=ink,ink\n", stderr);
    

    Then periodically the filter queries the printer for its current supply levels and updates them with a separate "ATTR:" message:

    int black_level, tri_level;
    ...
    fprintf(stderr, "ATTR: marker-levels=%d,%d\n", black_level, tri_level);
    
    Table 3: Supply Level Attributes
    Attribute Description
    marker-colors A list of comma-separated colors; each color is either "none" or one or more hex-encoded sRGB colors of the form "#RRGGBB".
    marker-high-levels A list of comma-separated "almost full" level values from 0 to 100; a value of 100 should be used for supplies that are consumed/emptied like ink cartridges.
    marker-levels A list of comma-separated level values for each supply. A value of -1 indicates the level is unavailable, -2 indicates unknown, and -3 indicates the level is unknown but has not yet reached capacity. Values from 0 to 100 indicate the corresponding percentage.
    marker-low-levels A list of comma-separated "almost empty" level values from 0 to 100; a value of 0 should be used for supplies that are filled like waste ink tanks.
    marker-message A human-readable supply status message for the user like "12 pages of ink remaining."
    marker-names A list of comma-separated supply names like "Cyan Ink", "Fuser", etc.
    marker-types A list of comma-separated supply types; the types are listed in Table 1.

    Communicating with the Backend

    Filters can communicate with the backend via the cupsBackChannelRead and cupsSideChannelDoRequest functions. The cupsBackChannelRead function reads data that has been sent back from the device and is typically used to obtain status and configuration information. For example, the following code polls the backend for back-channel data:

    #include <cups/cups.h>
    
    char buffer[8192];
    ssize_t bytes;
    
    /* Use a timeout of 0.0 seconds to poll for back-channel data */
    bytes = cupsBackChannelRead(buffer, sizeof(buffer), 0.0);
    

    Filters can also use select() or poll() on the back-channel file descriptor (3 or CUPS_BC_FD) to read data only when it is available.

    The cupsSideChannelDoRequest function allows you to get out-of-band status information and do synchronization with the device. For example, the following code gets the current IEEE-1284 device ID string from the backend:

    #include <cups/sidechannel.h>
    
    char data[2049];
    int datalen;
    cups_sc_status_t status;
    
    /* Tell cupsSideChannelDoRequest() how big our buffer is, less 1 byte for
       nul-termination... */
    datalen = sizeof(data) - 1;
    
    /* Get the IEEE-1284 device ID, waiting for up to 1 second */
    status = cupsSideChannelDoRequest(CUPS_SC_CMD_GET_DEVICE_ID, data, &datalen, 1.0);
    
    /* Use the returned value if OK was returned and the length is non-zero */
    if (status == CUPS_SC_STATUS_OK && datalen > 0)
      data[datalen] = '\0';
    else
      data[0] = '\0';
    

    Forcing All Output to a Printer

    The cupsSideChannelDoRequest function allows you to tell the backend to send all pending data to the printer. This is most often needed when sending query commands to the printer. For example:

    #include <cups/cups.h>
    #include <cups/sidechannel.h>
    
    char data[1024];
    int datalen = sizeof(data);
    cups_sc_status_t status;
    
    /* Flush pending output to stdout */
    fflush(stdout);
    
    /* Drain output to backend, waiting for up to 30 seconds */
    status = cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, data, &datalen, 30.0);
    
    /* Read the response if the output was sent */
    if (status == CUPS_SC_STATUS_OK)
    {
      ssize_t bytes;
    
      /* Wait up to 10.0 seconds for back-channel data */
      bytes = cupsBackChannelRead(data, sizeof(data), 10.0);
      /* do something with the data from the printer */
    }
    

    Communicating with Filters

    Backends communicate with filters using the reciprocal functions cupsBackChannelWrite, cupsSideChannelRead, and cupsSideChannelWrite. We recommend writing back-channel data using a timeout of 1.0 seconds:

    #include <cups/cups.h>
    
    char buffer[8192];
    ssize_t bytes;
    
    /* Obtain data from printer/device */
    ...
    
    /* Use a timeout of 1.0 seconds to give filters a chance to read */
    cupsBackChannelWrite(buffer, bytes, 1.0);
    

    The cupsSideChannelRead function reads a side-channel command from a filter, driver, or port monitor. Backends can either poll for commands using a timeout of 0.0, wait indefinitely for commands using a timeout of -1.0 (probably in a separate thread for that purpose), or use select or poll on the CUPS_SC_FD file descriptor (4) to handle input and output on several file descriptors at the same time.

    Once a command is processed, the backend uses the cupsSideChannelWrite function to send its response. For example, the following code shows how to poll for a side-channel command and respond to it:

    #include <cups/sidechannel.h>
    
    cups_sc_command_t command;
    cups_sc_status_t status;
    char data[2048];
    int datalen = sizeof(data);
    
    /* Poll for a command... */
    if (!cupsSideChannelRead(&command, &status, data, &datalen, 0.0))
    {
      switch (command)
      {
        /* handle supported commands, fill data/datalen/status with values as needed */
    
        default :
            status  = CUPS_SC_STATUS_NOT_IMPLEMENTED;
    	datalen = 0;
    	break;
      }
    
      /* Send a response... */
      cupsSideChannelWrite(command, status, data, datalen, 1.0);
    }
    

    Doing SNMP Queries with Network Printers

    The Simple Network Management Protocol (SNMP) allows you to get the current status, page counter, and supply levels from most network printers. Every piece of information is associated with an Object Identifier (OID), and every printer has a community name associated with it. OIDs can be queried directly or by "walking" over a range of OIDs with a common prefix.

    The two CUPS SNMP functions provide a simple API for querying network printers through the side-channel interface. Each accepts a string containing an OID like ".1.3.6.1.2.1.43.10.2.1.4.1.1" (the standard page counter OID) along with a timeout for the query.

    The cupsSideChannelSNMPGet function queries a single OID and returns the value as a string in a buffer you supply:

    #include <cups/sidechannel.h>
    
    char data[512];
    int datalen = sizeof(data);
    
    if (cupsSideChannelSNMPGet(".1.3.6.1.2.1.43.10.2.1.4.1.1", data, &datalen, 5.0)
            == CUPS_SC_STATUS_OK)
    {
      /* Do something with the value */
      printf("Page counter is: %s\n", data);
    }
    

    The cupsSideChannelSNMPWalk function allows you to query a whole group of OIDs, calling a function of your choice for each OID that is found:

    #include <cups/sidechannel.h>
    
    void
    my_callback(const char *oid, const char *data, int datalen, void *context)
    {
      /* Do something with the value */
      printf("%s=%s\n", oid, data);
    }
    
    ...
    
    void *my_data;
    
    cupsSNMPSideChannelWalk(".1.3.6.1.2.1.43", 5.0, my_callback, my_data);
    

    Sandboxing on macOS

    Starting with macOS 10.6, filters and backends are run inside a security "sandbox" which further limits (beyond the normal UNIX user/group permissions) what a filter or backend can do. This helps to both secure the printing system from malicious software and enforce the functional separation of components in the CUPS filter chain. What follows is a list of actions that are explicitly allowed for all filters and backends:

    1. Reading of files: pursuant to normal UNIX file permissions, filters and backends can read files for the current job from the /private/var/spool/cups directory and other files on mounted filesystems except for user home directories under /Users.
    2. Writing of files: pursuant to normal UNIX file permissions, filters and backends can read/write files to the cache directory specified by the CUPS_CACHEDIR environment variable, to the state directory specified by the CUPS_STATEDIR environment variable, to the temporary directory specified by the TMPDIR environment variable, and under the /private/var/db, /private/var/folders, /private/var/lib, /private/var/mysql, /private/var/run, /private/var/spool (except /private/var/spool/cups), /Library/Application Support, /Library/Caches, /Library/Logs, /Library/Preferences, /Library/WebServer, and /Users/Shared directories.
    3. Execution of programs: pursuant to normal UNIX file permissions, filters and backends can execute any program not located under the /Users directory. Child processes inherit the sandbox and are subject to the same restrictions as the parent.
    4. Bluetooth and USB: backends can access Bluetooth and USB printers through IOKit. Filters cannot access Bluetooth and USB printers directly.
    5. Network: filters and backends can access UNIX domain sockets under the /private/tmp, /private/var/run, and /private/var/tmp directories. Backends can also create IPv4 and IPv6 TCP (outgoing) and UDP (incoming and outgoing) socket, and bind to local source ports. Filters cannot directly create IPv4 and IPv6 TCP or UDP sockets.
    6. Notifications: filters and backends can send notifications via the Darwin notify_post() API.
    Note:

    The sandbox profile used in CUPS still allows some actions that are not listed above - these privileges will be removed over time until the profile matches the list above.

    cups-2.4.7/cups/api-filter.header0000644000175000017500000000215014502571342016537 0ustar zdohnalzdohnal

    Filter and Backend Programming

    Headers cups/backend.h
    cups/ppd.h
    cups/sidechannel.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS API
    Programming: PPD API
    Programming: Raster API
    Programming: Developing PostScript Printer Drivers
    Programming: Developing Raster Printer Drivers
    Specifications: CUPS Design Description
    cups-2.4.7/cups/api-admin.shtml0000644000175000017500000001247414502571342016253 0ustar zdohnalzdohnal

    Overview

    The administrative APIs provide convenience functions to perform certain administrative functions with the CUPS scheduler.

    Note:

    Administrative functions normally require administrative privileges to execute and must not be used in ordinary user applications!

    Scheduler Settings

    The cupsAdminGetServerSettings and cupsAdminSetServerSettings functions allow you to get and set simple directives and their values, respectively, in the cupsd.conf file for the CUPS scheduler. Settings are stored in CUPS option arrays which provide a simple list of string name/value pairs. While any simple cupsd.conf directive name can be specified, the following convenience names are also defined to control common complex directives:

    • CUPS_SERVER_DEBUG_LOGGING
    • : For cupsAdminGetServerSettings, a value of "1" means that the LogLevel directive is set to debug or debug2 while a value of "0" means it is set to any other value. For cupsAdminSetServerSettings a value of "1" sets the LogLeveL to debug while a value of "0" sets it to warn.
    • CUPS_SERVER_REMOTE_ADMIN
    • : A value of "1" specifies that administrative requests are accepted from remote addresses while "0" specifies that requests are only accepted from local addresses (loopback interface and domain sockets).
    • CUPS_SERVER_REMOTE_ANY
    • : A value of "1" specifies that requests are accepts from any address while "0" specifies that requests are only accepted from the local subnet (when sharing is enabled) or local addresses (loopback interface and domain sockets).
    • CUPS_SERVER_SHARE_PRINTERS
    • : A value of "1" specifies that printer sharing is enabled for selected printers and remote requests are accepted while a value of "0" specifies that printer sharing is disables and remote requests are not accepted.
    • CUPS_SERVER_USER_CANCEL_ANY
    • : A value of "1" specifies that the default security policy allows any user to cancel any print job, regardless of the owner. A value of "0" specifies that only administrative users can cancel other user's jobs.
    Note:

    Changing settings will restart the CUPS scheduler.

    When printer sharing or the web interface are enabled, the scheduler's launch-on-demand functionality is effectively disabled. This can affect power usage, system performance, and the security profile of a system.

    The recommended way to make changes to the cupsd.conf is to first call cupsAdminGetServerSettings, make any changes to the returned option array, and then call cupsAdminSetServerSettings to save those settings. For example, to enable the web interface:

    #include <cups/cups.h>
    #include <cups/adminutil.h>
    
    void
    enable_web_interface(void)
    {
      int num_settings = 0;           /* Number of settings */
      cups_option_t *settings = NULL; /* Settings */
    
    
      if (!cupsAdminGetServerSettings(CUPS_HTTP_DEFAULT, &num_settings, &settings))
      {
        fprintf(stderr, "ERROR: Unable to get server settings: %s\n", cupsLastErrorString());
        return;
      }
    
      num_settings = cupsAddOption("WebInterface", "Yes", num_settings, &settings);
    
      if (!cupsAdminSetServerSettings(CUPS_HTTP_DEFAULT, num_settings, settings))
      {
        fprintf(stderr, "ERROR: Unable to set server settings: %s\n", cupsLastErrorString());
      }
    
      cupsFreeOptions(num_settings, settings);
    }
    

    Devices

    Printers can be discovered through the CUPS scheduler using the cupsGetDevices API. Typically this API is used to locate printers to add to the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:

    #include <cups/cups.h>
    #include <cups/adminutil.h>
    
    
    void
    get_devices_cb(
        const char *device_class,           /* I - Class */
        const char *device_id,              /* I - 1284 device ID */
        const char *device_info,            /* I - Description */
        const char *device_make_and_model,  /* I - Make and model */
        const char *device_uri,             /* I - Device URI */
        const char *device_location,        /* I - Location */
        void       *user_data)              /* I - User data */
    {
      puts(device_uri);
    }
    
    
    void
    show_devices(void)
    {
      cupsGetDevices(CUPS_HTTP_DEFAULT, 30, NULL, NULL, get_devices_cb, NULL);
    }
    
    cups-2.4.7/cups/api-admin.header0000644000175000017500000000130214502571342016340 0ustar zdohnalzdohnal

    Administrative APIs

    Header cups/adminutil.h
    Library -lcups
    See Also Programming: Introduction to CUPS Programming
    Programming: CUPS API
    Programming: HTTP and IPP APIs
    cups-2.4.7/cups/adminutil.h0000644000175000017500000000442114502571342015473 0ustar zdohnalzdohnal/* * Administration utility API definitions for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 2001-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_ADMINUTIL_H_ # define _CUPS_ADMINUTIL_H_ /* * Include necessary headers... */ # include # include "cups.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Constants... */ # define CUPS_SERVER_DEBUG_LOGGING "_debug_logging" # define CUPS_SERVER_REMOTE_ADMIN "_remote_admin" # define CUPS_SERVER_REMOTE_ANY "_remote_any" # define CUPS_SERVER_SHARE_PRINTERS "_share_printers" # define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any" /* * Types and structures... */ typedef void (*cups_device_cb_t)(const char *device_class, const char *device_id, const char *device_info, const char *device_make_and_model, const char *device_uri, const char *device_location, void *user_data); /* Device callback * @since CUPS 1.4/macOS 10.6@ */ /* * Functions... */ extern int cupsAdminExportSamba(const char *dest, const char *ppd, const char *samba_server, const char *samba_user, const char *samba_password, FILE *logfile) _CUPS_DEPRECATED; extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest, char *buffer, int bufsize) _CUPS_DEPRECATED; extern int cupsAdminGetServerSettings(http_t *http, int *num_settings, cups_option_t **settings) _CUPS_API_1_3; extern int cupsAdminSetServerSettings(http_t *http, int num_settings, cups_option_t *settings) _CUPS_API_1_3; extern ipp_status_t cupsGetDevices(http_t *http, int timeout, const char *include_schemes, const char *exclude_schemes, cups_device_cb_t callback, void *user_data) _CUPS_DEPRECATED; # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_ADMINUTIL_H_ */ cups-2.4.7/cups/adminutil.c0000644000175000017500000012005114502571342015464 0ustar zdohnalzdohnal/* * Administration utility API definitions for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 2001-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cups-private.h" #include "debug-internal.h" #include "ppd.h" #include "adminutil.h" #include #include #ifndef _WIN32 # include # include #endif /* !_WIN32 */ /* * Local functions... */ static http_status_t get_cupsd_conf(http_t *http, _cups_globals_t *cg, time_t last_update, char *name, size_t namelen, int *remote); static void invalidate_cupsd_cache(_cups_globals_t *cg); /* * 'cupsAdminCreateWindowsPPD()' - Create the Windows PPD file for a printer. * * @deprecated@ */ char * /* O - PPD file or NULL */ cupsAdminCreateWindowsPPD( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ const char *dest, /* I - Printer or class */ char *buffer, /* I - Filename buffer */ int bufsize) /* I - Size of filename buffer */ { (void)http; (void)dest; (void)bufsize; if (buffer) *buffer = '\0'; return (NULL); } /* * 'cupsAdminExportSamba()' - Export a printer to Samba. * * @deprecated@ */ int /* O - 1 on success, 0 on failure */ cupsAdminExportSamba( const char *dest, /* I - Destination to export */ const char *ppd, /* I - PPD file */ const char *samba_server, /* I - Samba server */ const char *samba_user, /* I - Samba username */ const char *samba_password, /* I - Samba password */ FILE *logfile) /* I - Log file, if any */ { (void)dest; (void)ppd; (void)samba_server; (void)samba_user; (void)samba_password; (void)logfile; return (0); } /* * 'cupsAdminGetServerSettings()' - Get settings from the server. * * The returned settings should be freed with cupsFreeOptions() when * you are done with them. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - 1 on success, 0 on failure */ cupsAdminGetServerSettings( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ int *num_settings, /* O - Number of settings */ cups_option_t **settings) /* O - Settings */ { int i; /* Looping var */ cups_file_t *cupsd; /* cupsd.conf file */ char cupsdconf[1024]; /* cupsd.conf filename */ int remote; /* Remote cupsd.conf file? */ http_status_t status; /* Status of getting cupsd.conf */ char line[1024], /* Line from cupsd.conf file */ *value; /* Value on line */ cups_option_t *setting; /* Current setting */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (!http) { /* * See if we are connected to the same server... */ if (cg->http) { /* * Compare the connection hostname, port, and encryption settings to * the cached defaults; these were initialized the first time we * connected... */ if (strcmp(cg->http->hostname, cg->server) || cg->ipp_port != httpAddrPort(cg->http->hostaddr) || (cg->http->encryption != cg->encryption && cg->http->encryption == HTTP_ENCRYPTION_NEVER)) { /* * Need to close the current connection because something has changed... */ httpClose(cg->http); cg->http = NULL; } } /* * (Re)connect as needed... */ if (!cg->http) { if ((cg->http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, cupsEncryption(), 1, 0, NULL)) == NULL) { if (errno) _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, NULL, 0); else _cupsSetError(IPP_STATUS_ERROR_SERVICE_UNAVAILABLE, _("Unable to connect to host."), 1); if (num_settings) *num_settings = 0; if (settings) *settings = NULL; return (0); } } http = cg->http; } if (!http || !num_settings || !settings) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); if (num_settings) *num_settings = 0; if (settings) *settings = NULL; return (0); } *num_settings = 0; *settings = NULL; /* * Get the cupsd.conf file... */ if ((status = get_cupsd_conf(http, cg, cg->cupsd_update, cupsdconf, sizeof(cupsdconf), &remote)) == HTTP_STATUS_OK) { if ((cupsd = cupsFileOpen(cupsdconf, "r")) == NULL) { char message[1024]; /* Message string */ snprintf(message, sizeof(message), _cupsLangString(cupsLangDefault(), _("Open of %s failed: %s")), cupsdconf, strerror(errno)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, message, 0); } } else cupsd = NULL; if (cupsd) { /* * Read the file, keeping track of what settings are enabled... */ int remote_access = 0, /* Remote access allowed? */ remote_admin = 0, /* Remote administration allowed? */ remote_any = 0, /* Remote access from anywhere allowed? */ browsing = 1, /* Browsing enabled? */ cancel_policy = 1, /* Cancel-job policy set? */ debug_logging = 0; /* LogLevel debug set? */ int linenum = 0, /* Line number in file */ in_location = 0, /* In a location section? */ in_policy = 0, /* In a policy section? */ in_cancel_job = 0, /* In a cancel-job section? */ in_admin_location = 0; /* In the /admin location? */ invalidate_cupsd_cache(cg); cg->cupsd_update = time(NULL); httpGetHostname(http, cg->cupsd_hostname, sizeof(cg->cupsd_hostname)); while (cupsFileGetConf(cupsd, line, sizeof(line), &value, &linenum)) { if (!value && strncmp(line, "")) { in_policy = 0; } else if (!_cups_strcasecmp(line, "")) { in_cancel_job = 0; } else if (!_cups_strcasecmp(line, "Require") && in_cancel_job) { cancel_policy = 0; } else if (!_cups_strcasecmp(line, "")) { in_admin_location = 0; in_location = 0; } else if (!_cups_strcasecmp(line, "Allow") && value && _cups_strcasecmp(value, "localhost") && _cups_strcasecmp(value, "127.0.0.1") #ifdef AF_LOCAL && *value != '/' #endif /* AF_LOCAL */ #ifdef AF_INET6 && strcmp(value, "::1") #endif /* AF_INET6 */ ) { if (in_admin_location) remote_admin = 1; else if (!_cups_strcasecmp(value, "all")) remote_any = 1; } else if (line[0] != '<' && !in_location && !in_policy && _cups_strcasecmp(line, "Allow") && _cups_strcasecmp(line, "AuthType") && _cups_strcasecmp(line, "Deny") && _cups_strcasecmp(line, "Order") && _cups_strcasecmp(line, "Require") && _cups_strcasecmp(line, "Satisfy")) cg->cupsd_num_settings = cupsAddOption(line, value, cg->cupsd_num_settings, &(cg->cupsd_settings)); } cupsFileClose(cupsd); cg->cupsd_num_settings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, debug_logging ? "1" : "0", cg->cupsd_num_settings, &(cg->cupsd_settings)); cg->cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, (remote_access && remote_admin) ? "1" : "0", cg->cupsd_num_settings, &(cg->cupsd_settings)); cg->cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, remote_any ? "1" : "0", cg->cupsd_num_settings, &(cg->cupsd_settings)); cg->cupsd_num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, (remote_access && browsing) ? "1" : "0", cg->cupsd_num_settings, &(cg->cupsd_settings)); cg->cupsd_num_settings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, cancel_policy ? "1" : "0", cg->cupsd_num_settings, &(cg->cupsd_settings)); } else if (status != HTTP_STATUS_NOT_MODIFIED) invalidate_cupsd_cache(cg); /* * Remove any temporary files and copy the settings array... */ if (remote) unlink(cupsdconf); for (i = cg->cupsd_num_settings, setting = cg->cupsd_settings; i > 0; i --, setting ++) *num_settings = cupsAddOption(setting->name, setting->value, *num_settings, settings); return (cg->cupsd_num_settings > 0); } /* * 'cupsAdminSetServerSettings()' - Set settings on the server. * * @since CUPS 1.3/macOS 10.5@ */ int /* O - 1 on success, 0 on failure */ cupsAdminSetServerSettings( http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ int num_settings, /* I - Number of settings */ cups_option_t *settings) /* I - Settings */ { int i; /* Looping var */ http_status_t status; /* GET/PUT status */ const char *server_port_env; /* SERVER_PORT env var */ int server_port; /* IPP port for server */ cups_file_t *cupsd; /* cupsd.conf file */ char cupsdconf[1024]; /* cupsd.conf filename */ int remote; /* Remote cupsd.conf file? */ char tempfile[1024]; /* Temporary new cupsd.conf */ cups_file_t *temp; /* Temporary file */ char line[1024], /* Line from cupsd.conf file */ *value; /* Value on line */ int linenum, /* Line number in file */ in_location, /* In a location section? */ in_policy, /* In a policy section? */ in_default_policy, /* In the default policy section? */ in_cancel_job, /* In a cancel-job section? */ in_admin_location, /* In the /admin location? */ in_conf_location, /* In the /admin/conf location? */ in_log_location, /* In the /admin/log location? */ in_root_location; /* In the / location? */ const char *val; /* Setting value */ int share_printers, /* Share local printers */ remote_admin, /* Remote administration allowed? */ remote_any, /* Remote access from anywhere? */ user_cancel_any, /* Cancel-job policy set? */ debug_logging; /* LogLevel debug set? */ int wrote_port_listen, /* Wrote the port/listen lines? */ wrote_browsing, /* Wrote the browsing lines? */ wrote_policy, /* Wrote the policy? */ wrote_loglevel, /* Wrote the LogLevel line? */ wrote_admin_location, /* Wrote the /admin location? */ wrote_conf_location, /* Wrote the /admin/conf location? */ wrote_log_location, /* Wrote the /admin/log location? */ wrote_root_location; /* Wrote the / location? */ int indent; /* Indentation */ int cupsd_num_settings; /* New number of settings */ int old_share_printers, /* Share local printers */ old_remote_admin, /* Remote administration allowed? */ old_remote_any, /* Remote access from anywhere? */ old_user_cancel_any, /* Cancel-job policy set? */ old_debug_logging; /* LogLevel debug set? */ cups_option_t *cupsd_settings, /* New settings */ *setting; /* Current setting */ _cups_globals_t *cg = _cupsGlobals(); /* Global data */ /* * Range check input... */ if (!http) http = _cupsConnect(); if (!http || !num_settings || !settings) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, strerror(EINVAL), 0); return (0); } /* * Get the cupsd.conf file... */ if (get_cupsd_conf(http, cg, 0, cupsdconf, sizeof(cupsdconf), &remote) == HTTP_STATUS_OK) { if ((cupsd = cupsFileOpen(cupsdconf, "r")) == NULL) { _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); return (0); } } else return (0); /* * Get current settings... */ if (!cupsAdminGetServerSettings(http, &cupsd_num_settings, &cupsd_settings)) return (0); if ((val = cupsGetOption(CUPS_SERVER_DEBUG_LOGGING, cupsd_num_settings, cupsd_settings)) != NULL) old_debug_logging = atoi(val); else old_debug_logging = 0; DEBUG_printf(("1cupsAdminSetServerSettings: old debug_logging=%d", old_debug_logging)); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ADMIN, cupsd_num_settings, cupsd_settings)) != NULL) old_remote_admin = atoi(val); else old_remote_admin = 0; DEBUG_printf(("1cupsAdminSetServerSettings: old remote_admin=%d", old_remote_admin)); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ANY, cupsd_num_settings, cupsd_settings)) != NULL) old_remote_any = atoi(val); else old_remote_any = 0; DEBUG_printf(("1cupsAdminSetServerSettings: old remote_any=%d", old_remote_any)); if ((val = cupsGetOption(CUPS_SERVER_SHARE_PRINTERS, cupsd_num_settings, cupsd_settings)) != NULL) old_share_printers = atoi(val); else old_share_printers = 0; DEBUG_printf(("1cupsAdminSetServerSettings: old share_printers=%d", old_share_printers)); if ((val = cupsGetOption(CUPS_SERVER_USER_CANCEL_ANY, cupsd_num_settings, cupsd_settings)) != NULL) old_user_cancel_any = atoi(val); else old_user_cancel_any = 0; DEBUG_printf(("1cupsAdminSetServerSettings: old user_cancel_any=%d", old_user_cancel_any)); cupsFreeOptions(cupsd_num_settings, cupsd_settings); /* * Get basic settings... */ if ((val = cupsGetOption(CUPS_SERVER_DEBUG_LOGGING, num_settings, settings)) != NULL) { debug_logging = atoi(val); if (debug_logging == old_debug_logging) { /* * No change to this setting... */ debug_logging = -1; } } else debug_logging = -1; DEBUG_printf(("1cupsAdminSetServerSettings: debug_logging=%d", debug_logging)); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ANY, num_settings, settings)) != NULL) { remote_any = atoi(val); if (remote_any == old_remote_any) { /* * No change to this setting... */ remote_any = -1; } } else remote_any = -1; DEBUG_printf(("1cupsAdminSetServerSettings: remote_any=%d", remote_any)); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ADMIN, num_settings, settings)) != NULL) { remote_admin = atoi(val); if (remote_admin == old_remote_admin) { /* * No change to this setting... */ remote_admin = -1; } } else remote_admin = -1; DEBUG_printf(("1cupsAdminSetServerSettings: remote_admin=%d", remote_admin)); if ((val = cupsGetOption(CUPS_SERVER_SHARE_PRINTERS, num_settings, settings)) != NULL) { share_printers = atoi(val); if (share_printers == old_share_printers) { /* * No change to this setting... */ share_printers = -1; } } else share_printers = -1; DEBUG_printf(("1cupsAdminSetServerSettings: share_printers=%d", share_printers)); if ((val = cupsGetOption(CUPS_SERVER_USER_CANCEL_ANY, num_settings, settings)) != NULL) { user_cancel_any = atoi(val); if (user_cancel_any == old_user_cancel_any) { /* * No change to this setting... */ user_cancel_any = -1; } } else user_cancel_any = -1; DEBUG_printf(("1cupsAdminSetServerSettings: user_cancel_any=%d", user_cancel_any)); /* * Create a temporary file for the new cupsd.conf file... */ if ((temp = cupsTempFile2(tempfile, sizeof(tempfile))) == NULL) { cupsFileClose(cupsd); if (remote) unlink(cupsdconf); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); return (0); } /* * Copy the old file to the new, making changes along the way... */ cupsd_num_settings = 0; in_admin_location = 0; in_cancel_job = 0; in_conf_location = 0; in_default_policy = 0; in_location = 0; in_log_location = 0; in_policy = 0; in_root_location = 0; linenum = 0; wrote_admin_location = 0; wrote_browsing = 0; wrote_conf_location = 0; wrote_log_location = 0; wrote_loglevel = 0; wrote_policy = 0; wrote_port_listen = 0; wrote_root_location = 0; indent = 0; if ((server_port_env = getenv("SERVER_PORT")) != NULL) { if ((server_port = atoi(server_port_env)) <= 0) server_port = ippPort(); } else server_port = ippPort(); if (server_port <= 0) server_port = IPP_PORT; while (cupsFileGetConf(cupsd, line, sizeof(line), &value, &linenum)) { if ((!_cups_strcasecmp(line, "Port") || !_cups_strcasecmp(line, "Listen")) && (remote_admin >= 0 || remote_any >= 0 || share_printers >= 0)) { if (!wrote_port_listen) { wrote_port_listen = 1; if (remote_admin > 0 || remote_any > 0 || share_printers > 0) { cupsFilePuts(temp, "# Allow remote access\n"); cupsFilePrintf(temp, "Port %d\n", server_port); } else { cupsFilePuts(temp, "# Only listen for connections from the local " "machine.\n"); cupsFilePrintf(temp, "Listen localhost:%d\n", server_port); } #ifdef CUPS_DEFAULT_DOMAINSOCKET if ((!value || strcmp(CUPS_DEFAULT_DOMAINSOCKET, value)) && !access(CUPS_DEFAULT_DOMAINSOCKET, 0)) cupsFilePuts(temp, "Listen " CUPS_DEFAULT_DOMAINSOCKET "\n"); #endif /* CUPS_DEFAULT_DOMAINSOCKET */ } else if (value && value[0] == '/' #ifdef CUPS_DEFAULT_DOMAINSOCKET && strcmp(CUPS_DEFAULT_DOMAINSOCKET, value) #endif /* CUPS_DEFAULT_DOMAINSOCKET */ ) cupsFilePrintf(temp, "Listen %s\n", value); } else if ((!_cups_strcasecmp(line, "Browsing") || !_cups_strcasecmp(line, "BrowseLocalProtocols")) && share_printers >= 0) { if (!wrote_browsing) { wrote_browsing = 1; if (share_printers) { const char *localp = cupsGetOption("BrowseLocalProtocols", num_settings, settings); if (!localp || !localp[0]) localp = cupsGetOption("BrowseLocalProtocols", cupsd_num_settings, cupsd_settings); cupsFilePuts(temp, "# Share local printers on the local network.\n"); cupsFilePuts(temp, "Browsing On\n"); if (!localp) localp = CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS; cupsFilePrintf(temp, "BrowseLocalProtocols %s\n", localp); cupsd_num_settings = cupsAddOption("BrowseLocalProtocols", localp, cupsd_num_settings, &cupsd_settings); } else { cupsFilePuts(temp, "# Disable printer sharing.\n"); cupsFilePuts(temp, "Browsing Off\n"); } } } else if (!_cups_strcasecmp(line, "LogLevel") && debug_logging >= 0) { wrote_loglevel = 1; if (debug_logging) { cupsFilePuts(temp, "# Show troubleshooting information in error_log.\n"); cupsFilePuts(temp, "LogLevel debug\n"); } else { cupsFilePuts(temp, "# Show general information in error_log.\n"); cupsFilePuts(temp, "LogLevel " CUPS_DEFAULT_LOG_LEVEL "\n"); } } else if (!_cups_strcasecmp(line, "\n", line, value); indent += 2; } else if (!_cups_strcasecmp(line, "")) { indent -= 2; if (!wrote_policy && in_default_policy) { wrote_policy = 1; if (!user_cancel_any) cupsFilePuts(temp, " # Only the owner or an administrator can " "cancel a job...\n" " \n" " Order deny,allow\n" " Require user @OWNER " CUPS_DEFAULT_PRINTOPERATOR_AUTH "\n" " \n"); } in_policy = 0; in_default_policy = 0; cupsFilePuts(temp, "\n"); } else if (!_cups_strcasecmp(line, "\n", line, value); } else if (!_cups_strcasecmp(line, "")) { in_location = 0; indent -= 2; if (in_admin_location && remote_admin >= 0) { wrote_admin_location = 1; if (remote_admin) cupsFilePuts(temp, " # Allow remote administration...\n"); else cupsFilePuts(temp, " # Restrict access to the admin pages...\n"); cupsFilePuts(temp, " Order allow,deny\n"); if (remote_admin) { if (remote_any >= 0) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); else cupsFilePrintf(temp, " Allow %s\n", old_remote_any > 0 ? "all" : "@LOCAL"); } } else if (in_conf_location && remote_admin >= 0) { wrote_conf_location = 1; if (remote_admin) cupsFilePuts(temp, " # Allow remote access to the configuration " "files...\n"); else cupsFilePuts(temp, " # Restrict access to the configuration " "files...\n"); cupsFilePuts(temp, " Order allow,deny\n"); if (remote_admin) { if (remote_any >= 0) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); else cupsFilePrintf(temp, " Allow %s\n", old_remote_any > 0 ? "all" : "@LOCAL"); } } else if (in_log_location && remote_admin >= 0) { wrote_log_location = 1; if (remote_admin) cupsFilePuts(temp, " # Allow remote access to the log " "files...\n"); else cupsFilePuts(temp, " # Restrict access to the log " "files...\n"); cupsFilePuts(temp, " Order allow,deny\n"); if (remote_admin) { if (remote_any >= 0) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); else cupsFilePrintf(temp, " Allow %s\n", old_remote_any > 0 ? "all" : "@LOCAL"); } } else if (in_root_location && (remote_admin >= 0 || remote_any >= 0 || share_printers >= 0)) { wrote_root_location = 1; if (remote_admin > 0 && share_printers > 0) cupsFilePuts(temp, " # Allow shared printing and remote " "administration...\n"); else if (remote_admin > 0) cupsFilePuts(temp, " # Allow remote administration...\n"); else if (share_printers > 0) cupsFilePuts(temp, " # Allow shared printing...\n"); else if (remote_any > 0) cupsFilePuts(temp, " # Allow remote access...\n"); else cupsFilePuts(temp, " # Restrict access to the server...\n"); cupsFilePuts(temp, " Order allow,deny\n"); if (remote_admin > 0 || remote_any > 0 || share_printers > 0) { if (remote_any >= 0) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); else cupsFilePrintf(temp, " Allow %s\n", old_remote_any > 0 ? "all" : "@LOCAL"); } } in_admin_location = 0; in_conf_location = 0; in_log_location = 0; in_root_location = 0; cupsFilePuts(temp, "\n"); } else if (!_cups_strcasecmp(line, "= 0) { /* * Don't write anything for this limit section... */ in_cancel_job = 2; } else { cupsFilePrintf(temp, "%*s%s", indent, "", line); while (*value) { for (valptr = value; *valptr && !_cups_isspace(*valptr); valptr ++); if (*valptr) *valptr++ = '\0'; if (!_cups_strcasecmp(value, "cancel-job") && user_cancel_any >= 0) { /* * Write everything except for this definition... */ in_cancel_job = 1; } else cupsFilePrintf(temp, " %s", value); for (value = valptr; _cups_isspace(*value); value ++); } cupsFilePuts(temp, ">\n"); } } else cupsFilePrintf(temp, "%*s%s %s>\n", indent, "", line, value); indent += 2; } else if (!_cups_strcasecmp(line, "") && in_cancel_job) { indent -= 2; if (in_cancel_job == 1) cupsFilePuts(temp, " \n"); wrote_policy = 1; if (!user_cancel_any) cupsFilePuts(temp, " # Only the owner or an administrator can cancel " "a job...\n" " \n" " Order deny,allow\n" " Require user @OWNER " CUPS_DEFAULT_PRINTOPERATOR_AUTH "\n" " \n"); in_cancel_job = 0; } else if ((((in_admin_location || in_conf_location || in_root_location || in_log_location) && (remote_admin >= 0 || remote_any >= 0)) || (in_root_location && share_printers >= 0)) && (!_cups_strcasecmp(line, "Allow") || !_cups_strcasecmp(line, "Deny") || !_cups_strcasecmp(line, "Order"))) continue; else if (in_cancel_job == 2) continue; else if (line[0] == '<') { if (value) { cupsFilePrintf(temp, "%*s%s %s>\n", indent, "", line, value); indent += 2; } else { if (line[1] == '/') indent -= 2; cupsFilePrintf(temp, "%*s%s\n", indent, "", line); } } else if (!in_policy && !in_location && (val = cupsGetOption(line, num_settings, settings)) != NULL) { /* * Replace this directive's value with the new one... */ cupsd_num_settings = cupsAddOption(line, val, cupsd_num_settings, &cupsd_settings); /* * Write the new value in its place, without indentation since we * only support setting root directives, not in sections... */ cupsFilePrintf(temp, "%s %s\n", line, val); } else if (value) { if (!in_policy && !in_location) { /* * Record the non-policy, non-location directives that we find * in the server settings, since we cache this info and record it * in cupsAdminGetServerSettings()... */ cupsd_num_settings = cupsAddOption(line, value, cupsd_num_settings, &cupsd_settings); } cupsFilePrintf(temp, "%*s%s %s\n", indent, "", line, value); } else cupsFilePrintf(temp, "%*s%s\n", indent, "", line); } /* * Write any missing info... */ if (!wrote_browsing && share_printers >= 0) { if (share_printers > 0) { cupsFilePuts(temp, "# Share local printers on the local network.\n"); cupsFilePuts(temp, "Browsing On\n"); } else { cupsFilePuts(temp, "# Disable printer sharing and shared printers.\n"); cupsFilePuts(temp, "Browsing Off\n"); } } if (!wrote_loglevel && debug_logging >= 0) { if (debug_logging) { cupsFilePuts(temp, "# Show troubleshooting information in error_log.\n"); cupsFilePuts(temp, "LogLevel debug\n"); } else { cupsFilePuts(temp, "# Show general information in error_log.\n"); cupsFilePuts(temp, "LogLevel " CUPS_DEFAULT_LOG_LEVEL "\n"); } } if (!wrote_port_listen && (remote_admin >= 0 || remote_any >= 0 || share_printers >= 0)) { if (remote_admin > 0 || remote_any > 0 || share_printers > 0) { cupsFilePuts(temp, "# Allow remote access\n"); cupsFilePrintf(temp, "Port %d\n", ippPort()); } else { cupsFilePuts(temp, "# Only listen for connections from the local machine.\n"); cupsFilePrintf(temp, "Listen localhost:%d\n", ippPort()); } #ifdef CUPS_DEFAULT_DOMAINSOCKET if (!access(CUPS_DEFAULT_DOMAINSOCKET, 0)) cupsFilePuts(temp, "Listen " CUPS_DEFAULT_DOMAINSOCKET "\n"); #endif /* CUPS_DEFAULT_DOMAINSOCKET */ } if (!wrote_root_location && (remote_admin >= 0 || remote_any >= 0 || share_printers >= 0)) { if (remote_admin > 0 && share_printers > 0) cupsFilePuts(temp, "# Allow shared printing and remote administration...\n"); else if (remote_admin > 0) cupsFilePuts(temp, "# Allow remote administration...\n"); else if (share_printers > 0) cupsFilePuts(temp, "# Allow shared printing...\n"); else if (remote_any > 0) cupsFilePuts(temp, "# Allow remote access...\n"); else cupsFilePuts(temp, "# Restrict access to the server...\n"); cupsFilePuts(temp, "\n" " Order allow,deny\n"); if (remote_admin > 0 || remote_any > 0 || share_printers > 0) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); cupsFilePuts(temp, "\n"); } if (!wrote_admin_location && remote_admin >= 0) { if (remote_admin) cupsFilePuts(temp, "# Allow remote administration...\n"); else cupsFilePuts(temp, "# Restrict access to the admin pages...\n"); cupsFilePuts(temp, "\n" " Order allow,deny\n"); if (remote_admin) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); cupsFilePuts(temp, "\n"); } if (!wrote_conf_location && remote_admin >= 0) { if (remote_admin) cupsFilePuts(temp, "# Allow remote access to the configuration files...\n"); else cupsFilePuts(temp, "# Restrict access to the configuration files...\n"); cupsFilePuts(temp, "\n" " AuthType Default\n" " Require user @SYSTEM\n" " Order allow,deny\n"); if (remote_admin) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); cupsFilePuts(temp, "\n"); } if (!wrote_log_location && remote_admin >= 0) { if (remote_admin) cupsFilePuts(temp, "# Allow remote access to the log files...\n"); else cupsFilePuts(temp, "# Restrict access to the log files...\n"); cupsFilePuts(temp, "\n" " AuthType Default\n" " Require user @SYSTEM\n" " Order allow,deny\n"); if (remote_admin) cupsFilePrintf(temp, " Allow %s\n", remote_any > 0 ? "all" : "@LOCAL"); cupsFilePuts(temp, "\n"); } if (!wrote_policy && user_cancel_any >= 0) { cupsFilePuts(temp, "\n" " # Job-related operations must be done by the owner " "or an administrator...\n" " \n" " Require user @OWNER @SYSTEM\n" " Order deny,allow\n" " \n" " # All administration operations require an " "administrator to authenticate...\n" " \n" " AuthType Default\n" " Require user @SYSTEM\n" " Order deny,allow\n" "\n"); if (!user_cancel_any) cupsFilePuts(temp, " # Only the owner or an administrator can cancel " "a job...\n" " \n" " Order deny,allow\n" " Require user @OWNER " CUPS_DEFAULT_PRINTOPERATOR_AUTH "\n" " \n"); cupsFilePuts(temp, " \n" " Order deny,allow\n" " \n" "\n"); } for (i = num_settings, setting = settings; i > 0; i --, setting ++) if (setting->name[0] != '_' && _cups_strcasecmp(setting->name, "Listen") && _cups_strcasecmp(setting->name, "Port") && !cupsGetOption(setting->name, cupsd_num_settings, cupsd_settings)) { /* * Add this directive to the list of directives we have written... */ cupsd_num_settings = cupsAddOption(setting->name, setting->value, cupsd_num_settings, &cupsd_settings); /* * Write the new value, without indentation since we only support * setting root directives, not in sections... */ cupsFilePrintf(temp, "%s %s\n", setting->name, setting->value); } cupsFileClose(cupsd); cupsFileClose(temp); /* * Upload the configuration file to the server... */ status = cupsPutFile(http, "/admin/conf/cupsd.conf", tempfile); if (status == HTTP_STATUS_CREATED) { /* * Updated OK, add the basic settings... */ if (debug_logging >= 0) cupsd_num_settings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, debug_logging ? "1" : "0", cupsd_num_settings, &cupsd_settings); else cupsd_num_settings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, old_debug_logging ? "1" : "0", cupsd_num_settings, &cupsd_settings); if (remote_admin >= 0) cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, remote_admin ? "1" : "0", cupsd_num_settings, &cupsd_settings); else cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, old_remote_admin ? "1" : "0", cupsd_num_settings, &cupsd_settings); if (remote_any >= 0) cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, remote_any ? "1" : "0", cupsd_num_settings, &cupsd_settings); else cupsd_num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, old_remote_any ? "1" : "0", cupsd_num_settings, &cupsd_settings); if (share_printers >= 0) cupsd_num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, share_printers ? "1" : "0", cupsd_num_settings, &cupsd_settings); else cupsd_num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, old_share_printers ? "1" : "0", cupsd_num_settings, &cupsd_settings); if (user_cancel_any >= 0) cupsd_num_settings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, user_cancel_any ? "1" : "0", cupsd_num_settings, &cupsd_settings); else cupsd_num_settings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, old_user_cancel_any ? "1" : "0", cupsd_num_settings, &cupsd_settings); /* * Save the new values... */ invalidate_cupsd_cache(cg); cg->cupsd_num_settings = cupsd_num_settings; cg->cupsd_settings = cupsd_settings; cg->cupsd_update = time(NULL); httpGetHostname(http, cg->cupsd_hostname, sizeof(cg->cupsd_hostname)); } else cupsFreeOptions(cupsd_num_settings, cupsd_settings); /* * Remote our temp files and return... */ if (remote) unlink(cupsdconf); unlink(tempfile); return (status == HTTP_STATUS_CREATED); } /* * 'get_cupsd_conf()' - Get the current cupsd.conf file. */ static http_status_t /* O - Status of request */ get_cupsd_conf( http_t *http, /* I - Connection to server */ _cups_globals_t *cg, /* I - Global data */ time_t last_update, /* I - Last update time for file */ char *name, /* I - Filename buffer */ size_t namesize, /* I - Size of filename buffer */ int *remote) /* O - Remote file? */ { int fd; /* Temporary file descriptor */ #ifndef _WIN32 struct stat info; /* cupsd.conf file information */ #endif /* _WIN32 */ http_status_t status; /* Status of getting cupsd.conf */ char host[HTTP_MAX_HOST]; /* Hostname for connection */ /* * See if we already have the data we need... */ httpGetHostname(http, host, sizeof(host)); if (_cups_strcasecmp(cg->cupsd_hostname, host)) invalidate_cupsd_cache(cg); snprintf(name, namesize, "%s/cupsd.conf", cg->cups_serverroot); *remote = 0; #ifndef _WIN32 if (!_cups_strcasecmp(host, "localhost") && !access(name, R_OK)) { /* * Read the local file rather than using HTTP... */ if (stat(name, &info)) { char message[1024]; /* Message string */ snprintf(message, sizeof(message), _cupsLangString(cupsLangDefault(), _("stat of %s failed: %s")), name, strerror(errno)); _cupsSetError(IPP_STATUS_ERROR_INTERNAL, message, 0); *name = '\0'; return (HTTP_STATUS_SERVER_ERROR); } else if (last_update && info.st_mtime <= last_update) status = HTTP_STATUS_NOT_MODIFIED; else status = HTTP_STATUS_OK; } else #endif /* !_WIN32 */ { /* * Read cupsd.conf via a HTTP GET request... */ if ((fd = cupsTempFd(name, (int)namesize)) < 0) { *name = '\0'; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, NULL, 0); invalidate_cupsd_cache(cg); return (HTTP_STATUS_SERVER_ERROR); } *remote = 1; httpClearFields(http); if (last_update) httpSetField(http, HTTP_FIELD_IF_MODIFIED_SINCE, httpGetDateString(last_update)); status = cupsGetFd(http, "/admin/conf/cupsd.conf", fd); close(fd); if (status != HTTP_STATUS_OK) { unlink(name); *name = '\0'; } } return (status); } /* * 'invalidate_cupsd_cache()' - Invalidate the cached cupsd.conf settings. */ static void invalidate_cupsd_cache( _cups_globals_t *cg) /* I - Global data */ { cupsFreeOptions(cg->cupsd_num_settings, cg->cupsd_settings); cg->cupsd_hostname[0] = '\0'; cg->cupsd_update = 0; cg->cupsd_num_settings = 0; cg->cupsd_settings = NULL; } cups-2.4.7/cups/Makefile0000644000175000017500000003751114502571342015002 0ustar zdohnalzdohnal# # Library Makefile for CUPS. # # Copyright © 2021-2023 by OpenPrinting. # Copyright © 2007-2021 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs # # Object files... # COREOBJS = \ array.o \ auth.o \ debug.o \ dest.o \ dest-job.o \ dest-localization.o \ dest-options.o \ dir.o \ encode.o \ file.o \ getputfile.o \ globals.o \ hash.o \ http.o \ http-addr.o \ http-addrlist.o \ http-support.o \ ipp.o \ ipp-file.o \ ipp-vars.o \ ipp-support.o \ langprintf.o \ language.o \ md5.o \ md5passwd.o \ notify.o \ options.o \ pwg-media.o \ raster-error.o \ raster-stream.o \ raster-stubs.o \ request.o \ snprintf.o \ string.o \ tempfile.o \ thread.o \ tls.o \ transcode.o \ usersys.o \ util.o DRIVEROBJS = \ adminutil.o \ backchannel.o \ backend.o \ getdevices.o \ getifaddrs.o \ ppd.o \ ppd-attr.o \ ppd-cache.o \ ppd-conflicts.o \ ppd-custom.o \ ppd-emit.o \ ppd-localize.o \ ppd-mark.o \ ppd-page.o \ ppd-util.o \ raster-interpret.o \ raster-interstub.o \ sidechannel.o \ snmp.o LIBOBJS = \ $(LIBCUPSOBJS) IMAGEOBJS = \ raster-interstub.o \ raster-stubs.o TESTOBJS = \ fuzzipp.o \ rasterbench.o \ testadmin.o \ testarray.o \ testcache.o \ testclient.o \ testconflicts.o \ testcreds.o \ testcups.o \ testdest.o \ testfile.o \ testgetdests.o \ testhttp.o \ testi18n.o \ testipp.o \ testoptions.o \ testlang.o \ testppd.o \ testpwg.o \ testraster.o \ testsnmp.o \ testthreads.o \ tlscheck.o OBJS = \ $(LIBOBJS) \ $(IMAGEOBJS) \ $(TESTOBJS) # # Header files to install... # COREHEADERS = \ array.h \ cups.h \ dir.h \ file.h \ http.h \ ipp.h \ language.h \ pwg.h \ raster.h \ transcode.h \ versioning.h DRIVERHEADERS = \ adminutil.h \ backend.h \ ppd.h \ sidechannel.h HEADERS = \ $(LIBHEADERS) COREHEADERSPRIV = \ array-private.h \ cups-private.h \ debug-private.h \ file-private.h \ http-private.h \ ipp-private.h \ language-private.h \ pwg-private.h \ raster-private.h \ string-private.h \ thread-private.h DRIVERHEADERSPRIV = \ ppd-private.h \ snmp-private.h HEADERSPRIV = \ $(LIBHEADERSPRIV) # # Targets in this directory... # LIBTARGETS = \ $(LIBCUPSIMAGE) \ $(LIBCUPSSTATIC) \ $(LIBCUPS) \ libcupsimage.a UNITTARGETS = \ rasterbench \ testadmin \ testarray \ testcache \ testclient \ testconflicts \ testcreds \ testcups \ testdest \ testfile \ testgetdests \ testhttp \ testi18n \ testipp \ testlang \ testoptions \ testppd \ testpwg \ testraster \ testsnmp \ testthreads \ tlscheck TARGETS = \ $(LIBTARGETS) # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: $(LIBTARGETS) # # Make unit tests... # unittests: $(UNITTARGETS) # # Remove object and target files... # clean: $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS) fuzzipp $(RM) libcups.so libcups.dylib $(RM) libcupsimage.so libcupsimage.dylib # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Run oclint to check code coverage... # oclint: oclint -o=oclint.html -html $(LIBOBJS:.o=.c) -- $(ALL_CFLAGS) # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: # # Install headers... # install-headers: echo Installing header files into $(INCLUDEDIR)/cups... $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups for file in $(HEADERS); do \ $(INSTALL_DATA) $$file $(INCLUDEDIR)/cups; \ done # # Install libraries... # install-libs: $(LIBTARGETS) $(INSTALLSTATIC) echo Installing libraries in $(LIBDIR)... $(INSTALL_DIR) -m 755 $(LIBDIR) $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR) if test $(LIBCUPS) = "libcups.so.2"; then \ $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \ $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \ fi if test $(LIBCUPS) = "libcups.2.dylib"; then \ $(RM) $(LIBDIR)/libcups.dylib; \ $(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \ fi -if test "x$(LIBCUPSIMAGE)" != x; then \ $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR); \ fi -if test "x$(LIBCUPSIMAGE)" = "xlibcupsimage.so.2"; then \ $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \ $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \ fi -if test "x$(LIBCUPSIMAGE)" = "xlibcupsimage.2.dylib"; then \ $(RM) $(LIBDIR)/libcupsimage.dylib; \ $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \ fi if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ cp $(LIBCUPS) $(SYMROOT); \ dsymutil $(SYMROOT)/$(LIBCUPS); \ if test "x$(LIBCUPSIMAGE)" != x; then \ cp $(LIBCUPSIMAGE) $(SYMROOT); \ dsymutil $(SYMROOT)/$(LIBCUPSIMAGE); \ fi; \ fi installstatic: $(INSTALL_DIR) -m 755 $(LIBDIR) $(INSTALL_LIB) -m 755 $(LIBCUPSSTATIC) $(LIBDIR) $(RANLIB) $(LIBDIR)/$(LIBCUPSSTATIC) $(CHMOD) 555 $(LIBDIR)/$(LIBCUPSSTATIC) $(INSTALL_LIB) -m 755 libcupsimage.a $(LIBDIR) $(RANLIB) $(LIBDIR)/libcupsimage.a $(CHMOD) 555 $(LIBDIR)/libcupsimage.a # # Uninstall object and target files... # uninstall: $(RM) $(LIBDIR)/libcups.2.dylib $(RM) $(LIBDIR)/libcups.a $(RM) $(LIBDIR)/libcups.dylib $(RM) $(LIBDIR)/libcups.so $(RM) $(LIBDIR)/libcups.so.2 $(RM) $(LIBDIR)/libcupsimage.2.dylib $(RM) $(LIBDIR)/libcupsimage.a $(RM) $(LIBDIR)/libcupsimage.dylib $(RM) $(LIBDIR)/libcupsimage.so $(RM) $(LIBDIR)/libcupsimage.so.2 -$(RMDIR) $(LIBDIR) for file in $(HEADERS); do \ $(RM) $(INCLUDEDIR)/cups/$$file; \ done -$(RMDIR) $(INCLUDEDIR)/cups # # libcups.so.2 # libcups.so.2: $(LIBOBJS) echo Linking $@... $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS) $(RM) `basename $@ .2` $(LN) $@ `basename $@ .2` # # libcups.2.dylib # libcups.2.dylib: $(LIBOBJS) echo Linking $@... $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ \ -install_name $(libdir)/$@ \ -current_version 2.14.0 \ -compatibility_version 2.0.0 \ $(LIBOBJS) $(LIBS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ $(RM) libcups.dylib $(LN) $@ libcups.dylib # # libcups.la # libcups.la: $(LIBOBJS) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \ -rpath $(LIBDIR) -version-info 2:14 $(LIBS) # # libcups.a # libcups.a: $(LIBOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ # # libcups2.def (Windows DLL exports file...) # libcups2.def: $(LIBOBJS) $(IMAGEOBJS) Makefile echo Generating $@... echo "LIBRARY libcups2" >libcups2.def echo "VERSION 2.14" >>libcups2.def echo "EXPORTS" >>libcups2.def (nm $(LIBOBJS) $(IMAGEOBJS) 2>/dev/null | grep "T _" | awk '{print $$3}'; \ echo __cups_strcpy; echo __cups_strlcat; echo __cups_strlcpy; \ echo __cups_snprintf; echo __cups_vsnprintf; echo __cups_gettimeofday) | \ grep -v -E \ -e 'cups_debug|Apple|BackChannel|Backend|FileCheck|Filter|GSSService|SetNegotiate|SideChannel|SNMP' \ -e 'Block$$' | \ sed -e '1,$$s/^_//' | sort >>libcups2.def # # libcupsimage.so.2 # libcupsimage.so.2: $(IMAGEOBJS) libcups.so.2 echo Linking $@... $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(IMAGEOBJS) $(LINKCUPS) $(RM) `basename $@ .2` $(LN) $@ `basename $@ .2` # # libcupsimage.2.dylib # libcupsimage.2.dylib: $(IMAGEOBJS) libcups.2.dylib echo Linking $@... $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ \ -install_name $(libdir)/$@ \ -current_version 2.3.0 \ -compatibility_version 2.0.0 \ $(IMAGEOBJS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ $(RM) libcupsimage.dylib $(LN) $@ libcupsimage.dylib # # libcupsimage.la # libcupsimage.la: $(IMAGEOBJS) libcups.la echo Linking $@... $(DSO) $(ARCHFLAGS) $(ALL_DSOFLAGS) -o $@ $(IMAGEOBJS:.o=.lo) \ $(LINKCUPS) -rpath $(LIBDIR) -version-info 2:3 # # libcupsimage.a # libcupsimage.a: $(IMAGEOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(IMAGEOBJS) $(RANLIB) $@ # # fuzzipp (dependency on static CUPS library is intentional) # fuzzipp: fuzzipp.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ fuzzipp.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Fuzzing IPP API... ./fuzzipp # # rasterbench (dependency on static CUPS library is intentional) # rasterbench: rasterbench.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ rasterbench.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testadmin (dependency on static CUPS library is intentional) # testadmin: testadmin.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testadmin.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testarray (dependency on static CUPS library is intentional) # testarray: testarray.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testarray.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running array API tests... ./testarray # # testcache (dependency on static CUPS library is intentional) # testcache: testcache.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testcache.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testclient (dependency on static libraries is intentional) # testclient: testclient.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testclient.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testconflicts (dependency on static CUPS library is intentional) # testconflicts: testconflicts.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testconflicts.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testcreds (dependency on static CUPS library is intentional) # testcreds: testcreds.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testcreds.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testcups (dependency on static CUPS library is intentional) # testcups: testcups.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testcups.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testdest (dependency on static CUPS library is intentional) # testdest: testdest.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testdest.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testfile (dependency on static CUPS library is intentional) # testfile: testfile.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testfile.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running file API tests... ./testfile # # testgetdests (dependency on static CUPS library is intentional) # testgetdests: testgetdests.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testgetdests.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testhttp (dependency on static CUPS library is intentional) # testhttp: testhttp.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testhttp.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running HTTP API tests... ./testhttp # # testipp (dependency on static CUPS library is intentional) # testipp: testipp.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testipp.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running IPP API tests... ./testipp # # testi18n (dependency on static CUPS library is intentional) # testi18n: testi18n.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testi18n.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running internationalization API tests... ./testi18n # # testlang (dependency on static CUPS library is intentional) # testlang: testlang.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testlang.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Creating locale directory structure... $(RM) -r locale for po in ../locale/cups_*.po; do \ lang=`basename $$po .po | sed -e '1,$$s/^cups_//'`; \ $(MKDIR) locale/$$lang; \ $(LN) ../../$$po locale/$$lang; \ done echo Running language API tests... echo ls -al locale ls -al locale LOCALEDIR=locale ./testlang # # testoptions (dependency on static CUPS library is intentional) # testoptions: testoptions.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testoptions.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running option API tests... ./testoptions # # testppd (dependency on static CUPS library is intentional) # testppd: testppd.o $(LIBCUPSSTATIC) test.ppd test2.ppd echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testppd.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running PPD API tests... ./testppd # # testpwg (dependency on static CUPS library is intentional) # testpwg: testpwg.o $(LIBCUPSSTATIC) test.ppd echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testpwg.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running PWG API tests... ./testpwg test.ppd # # testraster (dependency on static CUPS library is intentional) # testraster: testraster.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testraster.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Running raster API tests... ./testraster # # testsnmp (dependency on static CUPS library is intentional) # testsnmp: testsnmp.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testsnmp.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testthreads (dependency on static CUPS library is intentional) # testthreads: testthreads.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testthreads.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # tlscheck (dependency on static CUPS library is intentional) # tlscheck: tlscheck.o $(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ tlscheck.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Automatic API help files... # apihelp: echo "Generating CUPS Programming Manual..." $(RM) cupspm.xml codedoc --section "Programming" --body cupspm.md \ cupspm.xml \ array.[ch] auth.c cups.h dest*.c dir.[ch] encode.c file.[ch] \ http.h http*.c ipp.h ipp*.c options.c pwg.[ch] \ raster.h raster-stubs.c tls-darwin.c usersys.c util.c \ --coverimage cupspm.png \ --epub ../doc/help/cupspm.epub codedoc --section "Programming" --body cupspm.md \ cupspm.xml > ../doc/help/cupspm.html $(RM) cupspm.xml echo "Generating Administration APIs help..." codedoc --section "Programming" --title "Administration APIs" \ --header api-admin.header --body api-admin.shtml \ adminutil.c adminutil.h getdevices.c >../doc/help/api-admin.html echo "Generating PPD API (deprecated) help..." codedoc --section "Programming" --title "PPD API (DEPRECATED)" \ --header api-ppd.header --body api-ppd.shtml \ ppd.h ppd-*.c raster-interstub.c >../doc/help/api-ppd.html echo "Generating Filter and Backend Programming help..." codedoc --section "Programming" \ --title "Filter and Backend Programming" \ --header api-filter.header --body api-filter.shtml \ backchannel.c backend.h backend.c sidechannel.c sidechannel.h \ >../doc/help/api-filter.html # # Lines of code computation... # sloc: echo "libcups: \c" sloccount $(LIBOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}' echo "libcupsimage: \c" sloccount $(IMAGEOBJS:.o=.c) 2>/dev/null | grep "Total Physical" | awk '{print $$9}' # # Dependencies... # include Dependencies tls.o: tls-darwin.c tls-gnutls.c tls-openssl.c tls-sspi.c cups-2.4.7/cups/Dependencies0000644000175000017500000006272114502571342015654 0ustar zdohnalzdohnalarray.o: array.c ../cups/cups.h file.h versioning.h ipp.h http.h array.h \ language.h pwg.h string-private.h ../config.h ../cups/versioning.h \ debug-internal.h debug-private.h array-private.h ../cups/array.h auth.o: auth.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h debug.o: debug.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h dest.o: dest.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h dest-job.o: dest-job.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h dest-localization.o: dest-localization.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h dest-options.o: dest-options.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h dir.o: dir.c string-private.h ../config.h ../cups/versioning.h \ debug-internal.h debug-private.h dir.h versioning.h encode.o: encode.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h file.o: file.c file-private.h cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h getputfile.o: getputfile.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h globals.o: globals.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h hash.o: hash.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h http.o: http.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h http-addr.o: http-addr.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h http-addrlist.o: http-addrlist.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h http-support.o: http-support.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h ipp.o: ipp.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h ipp-file.o: ipp-file.c ipp-private.h ../cups/cups.h file.h versioning.h \ ipp.h http.h array.h language.h pwg.h string-private.h ../config.h \ ../cups/versioning.h debug-internal.h debug-private.h ipp-vars.o: ipp-vars.c ../cups/cups.h file.h versioning.h ipp.h http.h \ array.h language.h pwg.h ipp-private.h string-private.h ../config.h \ ../cups/versioning.h debug-internal.h debug-private.h ipp-support.o: ipp-support.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h langprintf.o: langprintf.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h language.o: language.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h md5.o: md5.c md5-internal.h ../cups/versioning.h string-private.h \ ../config.h md5passwd.o: md5passwd.c ../cups/cups.h file.h versioning.h ipp.h http.h \ array.h language.h pwg.h http-private.h ../config.h ../cups/language.h \ ../cups/http.h ipp-private.h string-private.h ../cups/versioning.h notify.o: notify.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h options.o: options.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h pwg-media.o: pwg-media.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h raster-error.o: raster-error.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ raster-private.h raster.h cups.h ../cups/debug-private.h \ ../cups/string-private.h debug-internal.h debug-private.h raster-stream.o: raster-stream.c raster-private.h raster.h cups.h file.h \ versioning.h ipp.h http.h array.h language.h pwg.h ../cups/cups.h \ ../cups/debug-private.h ../cups/versioning.h ../cups/string-private.h \ ../config.h debug-internal.h debug-private.h raster-stubs.o: raster-stubs.c raster-private.h raster.h cups.h file.h \ versioning.h ipp.h http.h array.h language.h pwg.h ../cups/cups.h \ ../cups/debug-private.h ../cups/versioning.h ../cups/string-private.h \ ../config.h request.o: request.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h snprintf.o: snprintf.c string-private.h ../config.h ../cups/versioning.h string.o: string.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h tempfile.o: tempfile.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h thread.o: thread.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h tls.o: tls.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h tls-darwin.c tls-darwin.h transcode.o: transcode.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h usersys.o: usersys.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h util.o: util.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h adminutil.o: adminutil.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h ppd.h cups.h raster.h adminutil.h backchannel.o: backchannel.c cups.h file.h versioning.h ipp.h http.h \ array.h language.h pwg.h sidechannel.h backend.o: backend.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ backend.h ppd.h cups.h raster.h getdevices.o: getdevices.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h adminutil.h cups.h getifaddrs.o: getifaddrs.c getifaddrs-internal.h ../config.h ppd.o: ppd.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-attr.o: ppd-attr.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-cache.o: ppd-cache.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-conflicts.o: ppd-conflicts.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-custom.o: ppd-custom.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-emit.o: ppd-emit.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ debug-internal.h debug-private.h ppd.h cups.h raster.h ppd-localize.o: ppd-localize.c cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ versioning.h ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h \ language.h pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-mark.o: ppd-mark.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h ppd-page.o: ppd-page.c string-private.h ../config.h ../cups/versioning.h \ debug-internal.h debug-private.h ppd.h cups.h file.h versioning.h \ ipp.h http.h array.h language.h pwg.h raster.h ppd-util.o: ppd-util.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h debug-internal.h \ debug-private.h raster-interpret.o: raster-interpret.c ../cups/raster-private.h raster.h \ cups.h file.h versioning.h ipp.h http.h array.h language.h pwg.h \ ../cups/cups.h ../cups/debug-private.h ../cups/versioning.h \ ../cups/string-private.h ../config.h ../cups/ppd-private.h \ ../cups/ppd.h pwg-private.h debug-internal.h debug-private.h raster-interstub.o: raster-interstub.c ../cups/ppd-private.h \ ../cups/cups.h file.h versioning.h ipp.h http.h array.h language.h \ pwg.h ../cups/ppd.h cups.h raster.h pwg-private.h sidechannel.o: sidechannel.c sidechannel.h versioning.h cups-private.h \ string-private.h ../config.h ../cups/versioning.h array-private.h \ ../cups/array.h ipp-private.h ../cups/cups.h file.h ipp.h http.h \ array.h language.h pwg.h http-private.h ../cups/language.h \ ../cups/http.h language-private.h ../cups/transcode.h pwg-private.h \ thread-private.h debug-internal.h debug-private.h snmp.o: snmp.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ snmp-private.h debug-internal.h debug-private.h raster-interstub.o: raster-interstub.c ../cups/ppd-private.h \ ../cups/cups.h file.h versioning.h ipp.h http.h array.h language.h \ pwg.h ../cups/ppd.h cups.h raster.h pwg-private.h raster-stubs.o: raster-stubs.c raster-private.h raster.h cups.h file.h \ versioning.h ipp.h http.h array.h language.h pwg.h ../cups/cups.h \ ../cups/debug-private.h ../cups/versioning.h ../cups/string-private.h \ ../config.h rasterbench.o: rasterbench.c ../config.h ../cups/raster.h cups.h file.h \ versioning.h ipp.h http.h array.h language.h pwg.h testadmin.o: testadmin.c adminutil.h cups.h file.h versioning.h ipp.h \ http.h array.h language.h pwg.h string-private.h ../config.h \ ../cups/versioning.h testarray.o: testarray.c string-private.h ../config.h \ ../cups/versioning.h debug-private.h array-private.h ../cups/array.h \ versioning.h dir.h testcache.o: testcache.c ppd-private.h ../cups/cups.h file.h versioning.h \ ipp.h http.h array.h language.h pwg.h ../cups/ppd.h cups.h raster.h \ pwg-private.h file-private.h cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ ipp-private.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h thread-private.h testclient.o: testclient.c ../config.h ../cups/cups.h file.h versioning.h \ ipp.h http.h array.h language.h pwg.h ../cups/raster.h cups.h \ ../cups/string-private.h ../cups/versioning.h ../cups/thread-private.h testconflicts.o: testconflicts.c cups.h file.h versioning.h ipp.h http.h \ array.h language.h pwg.h ppd.h raster.h string-private.h ../config.h \ ../cups/versioning.h testcreds.o: testcreds.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h testcups.o: testcups.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd.h cups.h raster.h testdest.o: testdest.c cups.h file.h versioning.h ipp.h http.h array.h \ language.h pwg.h testfile.o: testfile.c string-private.h ../config.h ../cups/versioning.h \ debug-private.h file.h versioning.h testgetdests.o: testgetdests.c cups.h file.h versioning.h ipp.h http.h \ array.h language.h pwg.h testhttp.o: testhttp.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h testi18n.o: testi18n.c string-private.h ../config.h ../cups/versioning.h \ language-private.h ../cups/transcode.h language.h array.h versioning.h testipp.o: testipp.c file.h versioning.h string-private.h ../config.h \ ../cups/versioning.h ipp-private.h ../cups/cups.h ipp.h http.h array.h \ language.h pwg.h testoptions.o: testoptions.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h testlang.o: testlang.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h testppd.o: testppd.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ ppd-private.h ../cups/ppd.h cups.h raster.h raster-private.h \ ../cups/debug-private.h ../cups/string-private.h testpwg.o: testpwg.c ppd-private.h ../cups/cups.h file.h versioning.h \ ipp.h http.h array.h language.h pwg.h ../cups/ppd.h cups.h raster.h \ pwg-private.h file-private.h cups-private.h string-private.h \ ../config.h ../cups/versioning.h array-private.h ../cups/array.h \ ipp-private.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h thread-private.h testraster.o: testraster.c ../cups/raster-private.h raster.h cups.h \ file.h versioning.h ipp.h http.h array.h language.h pwg.h \ ../cups/cups.h ../cups/debug-private.h ../cups/versioning.h \ ../cups/string-private.h ../config.h testsnmp.o: testsnmp.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h \ snmp-private.h testthreads.o: testthreads.c ../cups/cups.h file.h versioning.h ipp.h \ http.h array.h language.h pwg.h ../cups/thread-private.h ../config.h \ ../cups/versioning.h tlscheck.o: tlscheck.c cups-private.h string-private.h ../config.h \ ../cups/versioning.h array-private.h ../cups/array.h versioning.h \ ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \ pwg.h http-private.h ../cups/language.h ../cups/http.h \ language-private.h ../cups/transcode.h pwg-private.h thread-private.h cups-2.4.7/cups.pc.in0000644000175000017500000000117514502571342014270 0ustar zdohnalzdohnal# # CUPS pkg-config file # # Copyright © 2021-2023 by OpenPrinting. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ libdir=@libdir@ cups_api_version="@CUPS_API_VERSION@" cups_build="@CUPS_BUILD@" cups_datadir=@CUPS_DATADIR@ cups_serverbin=@CUPS_SERVERBIN@ cups_serverroot=@CUPS_SERVERROOT@ Name: CUPS Description: CUPS API Library Version: @CUPS_VERSION@ URL: https://openprinting.github.io/cups/ Cflags: @PKGCONFIG_CFLAGS@ Libs: @PKGCONFIG_LIBS@ Requires.private: @PKGCONFIG_REQUIRES@ Libs.private: @PKGCONFIG_LIBS_STATIC@ cups-2.4.7/cups-config.in0000755000175000017500000000521214502571342015131 0ustar zdohnalzdohnal#!/bin/sh # # CUPS configuration utility. # # Copyright © 2021-2023 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 2001-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # VERSION="@CUPS_VERSION@" APIVERSION="@CUPS_API_VERSION@" BUILD="@CUPS_BUILD@" prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ includedir=@includedir@ libdir=@libdir@ datarootdir=@datadir@ datadir=@datadir@ sysconfdir=@sysconfdir@ cups_datadir=@CUPS_DATADIR@ cups_serverbin=@CUPS_SERVERBIN@ cups_serverroot=@CUPS_SERVERROOT@ INSTALLSTATIC=@INSTALLSTATIC@ # flags for compiler and linker... CFLAGS="" LDFLAGS="@EXPORT_LDFLAGS@" LIBS="@LIBGSSAPI@ @DNSSDLIBS@ @EXPORT_TLSLIBS@ @LIBZ@ @LIBS@" # Check for local invocation... selfdir=`dirname $0` if test -f "$selfdir/cups/cups.h"; then CFLAGS="-I$selfdir" LDFLAGS="-L$selfdir/cups $LDFLAGS" libdir="$selfdir/cups" else if test $includedir != /usr/include; then CFLAGS="$CFLAGS -I$includedir" fi if test $libdir != /usr/lib -a $libdir != /usr/lib32 -a $libdir != /usr/lib64; then LDFLAGS="$LDFLAGS -L$libdir" fi fi usage() { echo "Usage: cups-config --api-version" echo " cups-config --build" echo " cups-config --cflags" echo " cups-config --datadir" echo " cups-config --help" echo " cups-config --ldflags" echo " cups-config [--image] [--static] --libs" echo " cups-config --serverbin" echo " cups-config --serverroot" echo " cups-config --version" echo "" echo "Note: The cups-config utility is deprecated and will be removed in a future" echo " version of CUPS. Use the pkg-config utility instead." exit $1 } if test $# -eq 0; then usage 1 fi # Parse command line options static=no while test $# -gt 0; do case $1 in --api-version) echo $APIVERSION ;; --build) echo $BUILD ;; --cflags) echo $CFLAGS ;; --datadir) echo $cups_datadir ;; --help) usage 0 ;; --image) # Do nothing ;; --ldflags) echo $LDFLAGS ;; --libs) if test $static = no; then libs="@EXTLINKCUPS@"; else libs="$libdir/libcups.a $LIBS"; fi echo $libs ;; --serverbin) echo $cups_serverbin ;; --serverroot) echo $cups_serverroot ;; --static) if test -z "$INSTALLSTATIC"; then echo "WARNING: Static libraries not installed." >&2 else static=yes fi ;; --version) echo $VERSION ;; *) usage 1 ;; esac shift done cups-2.4.7/configure.ac0000644000175000017500000000557714502571342014665 0ustar zdohnalzdohnaldnl dnl Configuration script for CUPS. dnl dnl Copyright © 2020-2023 by OpenPrinting dnl Copyright © 2007-2020 by Apple Inc. dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl We need at least autoconf 2.71... AC_PREREQ([2.71]) dnl Package name and version... AC_INIT([CUPS],[2.4.7],[https://github.com/openprinting/cups/issues],[cups],[https://openprinting.github.io/cups]) dnl This line is provided to ensure that you don't run the autoheader program dnl against this project. Doing so is completely unsupported and WILL cause dnl problems! AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."]) dnl Include configure tests for different areas... sinclude(config-scripts/cups-opsys.m4) sinclude(config-scripts/cups-common.m4) sinclude(config-scripts/cups-directories.m4) sinclude(config-scripts/cups-manpages.m4) sinclude(config-scripts/cups-sharedlibs.m4) sinclude(config-scripts/cups-libtool.m4) sinclude(config-scripts/cups-compiler.m4) sinclude(config-scripts/cups-network.m4) sinclude(config-scripts/cups-poll.m4) sinclude(config-scripts/cups-gssapi.m4) sinclude(config-scripts/cups-threads.m4) sinclude(config-scripts/cups-tls.m4) sinclude(config-scripts/cups-pam.m4) sinclude(config-scripts/cups-largefile.m4) sinclude(config-scripts/cups-dnssd.m4) sinclude(config-scripts/cups-container.m4) sinclude(config-scripts/cups-startup.m4) sinclude(config-scripts/cups-defaults.m4) dnl See what languages are available and make sure we generate the localization dnl files as needed... INSTALL_LANGUAGES="" UNINSTALL_LANGUAGES="" LANGFILES="" AS_IF([test "x$LANGUAGES" != x], [ INSTALL_LANGUAGES="install-languages" UNINSTALL_LANGUAGES="uninstall-languages" for lang in $LANGUAGES; do AS_IF([test -f doc/$lang/index.html.in], [ LANGFILES="$LANGFILES doc/$lang/index.html" ]) AS_IF([test -f templates/$lang/header.tmpl.in], [ LANGFILES="$LANGFILES templates/$lang/header.tmpl" ]) done ], [test "x$CUPS_BUNDLEDIR" != x], [ INSTALL_LANGUAGES="install-langbundle" UNINSTALL_LANGUAGES="uninstall-langbundle" ]) AC_SUBST([INSTALL_LANGUAGES]) AC_SUBST([UNINSTALL_LANGUAGES]) dnl Provide autoconf with a list of files to generate and output them... AC_CONFIG_FILES([ Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket templates/header.tmpl packaging/cups.list $LANGFILES ]) AC_OUTPUT dnl Make sure cups-config script is executable chmod +x cups-config cups-2.4.7/configure0000755000175000017500000117616614502571342014312 0ustar zdohnalzdohnal#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for CUPS 2.4.7. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: https://github.com/openprinting/cups/issues about your $0: system, including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='CUPS' PACKAGE_TARNAME='cups' PACKAGE_VERSION='2.4.7' PACKAGE_STRING='CUPS 2.4.7' PACKAGE_BUGREPORT='https://github.com/openprinting/cups/issues' PACKAGE_URL='https://openprinting.github.io/cups' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_default_prefix=/ ac_subst_vars='LTLIBOBJS LIBOBJS UNINSTALL_LANGUAGES INSTALL_LANGUAGES TIMEOUTSTARTSEC EXIT_TIMEOUT SYSTEMD_WANTED_BY CUPS_WEBIF DEFAULT_IPP_PORT CUPS_SNMP_COMMUNITY CUPS_SNMP_ADDRESS DEFAULT_RAW_PRINTING CUPS_MAX_COPIES CUPS_DEFAULT_PRINTCAP CUPS_PRIMARY_SYSTEM_GROUP CUPS_SYSTEM_GROUPS CUPS_GROUP CUPS_USER CUPS_DEFAULT_SHARED CUPS_BROWSE_LOCAL_PROTOCOLS CUPS_BROWSING CUPS_SYNC_ON_CLOSE CUPS_PAGE_LOG_FORMAT CUPS_ACCESS_LOG_LEVEL CUPS_LOG_LEVEL CUPS_FATAL_ERRORS CUPS_ERROR_POLICY CUPS_MAX_LOG_SIZE CUPS_LOG_FILE_PERM CUPS_CUPSD_FILE_PERM CUPS_CONFIG_FILE_PERM CUPS_EXE_FILE_PERM CUPS_RESOURCEDIR CUPS_BUNDLEDIR LANGUAGES XINETD RCSTOP RCSTART RCLEVELS INITDDIR INITDIR SMFMANIFESTDIR SYSTEMD_DIR LAUNCHD_DIR ONDEMANDLIBS ONDEMANDFLAGS SNAPDGLIBLIBS APPARMORLIBS IPPFIND_MAN IPPFIND_BIN DNSSD_BACKEND DNSSDLIBS LARGEFILE PAMMODAUTH PAMMOD PAMLIBS PAMFILE PAMDIR EXPORT_TLSLIBS TLSLIBS TLSFLAGS IPPALIASES CUPS_SERVERKEYCHAIN LIBGNUTLSCONFIG PTHREAD_FLAGS CUPS_DEFAULT_GSSSERVICENAME KRB5CONFIG LIBGSSAPI CUPS_LISTEN_DOMAINSOCKET CUPS_DEFAULT_DOMAINSOCKET WARNING_OPTIONS RELROFLAGS PIEFLAGS CXXLIBS LDARCHFLAGS ARCHFLAGS UNITTESTS OPTIM INSTALL_STRIP LIBTOOL_INSTALL LIBTOOL_CXX LIBTOOL_CC LIBTOOL LD_CXX LD_CC EXPORT_LDFLAGS LINKCUPS EXTLINKCUPS LIBCUPSSTATIC LIBCUPSIMAGE LIBCUPSBASE LIBCUPS DSOFLAGS DSOXX DSO CUPS_STATEDIR CUPS_SERVERROOT INSTALL_SYSV CUPS_SERVERBIN CUPS_REQUESTS CUPS_LOGDIR CUPS_PKGCONFPATH CUPS_LOCALEDIR CUPS_DOCROOT MENUDIR ICONDIR CUPS_DATADIR CUPS_CACHEDIR LIBHEADERSPRIV LIBHEADERS LIBCUPSOBJS IPPEVECOMMANDS BUILDDIRS INSTALLXPC CUPS_SYSTEM_AUTHKEY CUPS_DEFAULT_PRINTOPERATOR_AUTH DBUS_NOTIFIERLIBS DBUS_NOTIFIER DBUSDIR SERVERLIBS BACKLIBS ARFLAGS LIBZ INSTALL_GZIP LIBWRAP USBQUIRKS LIBUSB LIBPAPER LIBMALLOC PKGCONFIG_REQUIRES PKGCONFIG_LIBS_STATIC PKGCONFIG_LIBS PKGCONFIG_CFLAGS PKGCONFIG INSTALLSTATIC CUPS_HTMLVIEW XDGOPEN SED RMDIR RM MV MKDIR LN LD INSTALL GZIPPROG CHMOD AR RANLIB ac_ct_CXX CXXFLAGS CXX CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AWK CUPS_VERSION CUPS_BUILD CUPS_API_VERSION CODE_SIGN LOCALTARGET host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking with_cups_build enable_static enable_mallinfo enable_libpaper enable_libusb enable_tcp_wrappers enable_acl enable_dbus with_dbusdir with_adminkey with_operkey with_components with_cachedir with_icondir with_menudir with_docdir with_pkgconfpath with_logdir with_rundir enable_shared enable_libtool_unsupported with_optim enable_debug enable_debug_guards enable_debug_printfs enable_maintainer enable_unit_tests with_archflags with_ldarchflags enable_relro enable_sanitizer with_domainsocket enable_gssapi with_gssservicename with_tls enable_pam with_pam_module enable_largefile with_dnssd with_dnssd_libs with_dnssd_includes with_container with_ondemand with_systemd with_smfmanifestdir with_rcdir with_rclevels with_rcstart with_rcstop with_xinetd with_languages with_bundledir with_bundlelang with_exe_file_perm with_config_file_perm with_cupsd_file_perm with_log_file_perm with_max_log_size with_error_policy with_fatal_errors with_log_level with_access_log_level enable_page_logging enable_sync_on_close enable_browsing with_local_protocols enable_default_shared with_cups_user with_cups_group with_system_groups with_printcap with_max_copies enable_raw_printing with_snmp_address with_snmp_community with_ipp_port enable_webif with_idle_exit_timeout with_systemd_timeoutstartsec ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures CUPS 2.4.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/cups] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of CUPS 2.4.7:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-static install static libraries --enable-mallinfo build with malloc debug logging --enable-libpaper build with libpaper support --enable-libusb use libusb for USB printing --enable-tcp-wrappers use libwrap for TCP wrappers support --enable-acl build with POSIX ACL support --disable-dbus build without DBUS support --disable-shared do not create shared libraries --enable-libtool-unsupported=/path/to/libtool build with libtool (UNSUPPORTED) --enable-debug build with debugging symbols --enable-debug-guards build with memory allocation guards --enable-debug-printfs build with CUPS_DEBUG_LOG support --enable-maintainer turn on maintainer mode (warnings as errors) --enable-unit-tests build and run unit tests --enable-relro build with the relro option --enable-sanitizer build with AddressSanitizer --enable-gssapi enable (deprecated) GSSAPI/Kerberos support --disable-pam disable PAM support --disable-largefile omit support for large files --enable-page-logging enable page_log by default --enable-sync-on-close enable SyncOnClose (off by default) --disable-browsing disable Browsing by default --disable-default-shared disable DefaultShared by default --disable-raw-printing do not allow raw printing by default --enable-webif enable the web interface by default, default=no for macOS Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-cups-build set "pkg-config --variable=build" string --with-dbusdir set DBUS configuration directory --with-adminkey set the default SystemAuthKey value --with-operkey set the default operator @AUTHKEY value --with-components set components to build: "all" (default) builds everything, "core" builds libcups and ipptool, "libcups" builds just libcups, "libcupslite" builds just libcups without driver support --with-cachedir set path for cache files --with-icondir set path for application icons --with-menudir set path for application menus --with-docdir set path for documentation --with-pkgconfpath set path for cups.pc file --with-logdir set path for log files --with-rundir set transient run-time state directory --with-optim set optimization flags --with-archflags set default architecture flags --with-ldarchflags set program architecture flags --with-domainsocket set unix domain socket name --with-gssservicename set default gss service name --with-tls=... use cdsa (macOS), gnutls, or openssl for TLS support --with-pam-module set the PAM module to use --with-dnssd=... enable DNS Service Discovery support (avahi, mdnsresponder, no, yes) --with-dnssd-libs set directory for DNS Service Discovery library --with-dnssd-includes set directory for DNS Service Discovery header files --with-container=... configure to use in container (none, snap) --with-ondemand=... Specify the on-demand launch interface (launchd, systemd, upstart) --with-systemd set directory for systemd service files --with-smfmanifestdir set path for Solaris SMF manifest --with-rcdir set path for rc scripts --with-rclevels set run levels for rc scripts --with-rcstart set start number for rc scripts --with-rcstop set stop number for rc scripts --with-xinetd set path for xinetd config files --with-languages set installed languages, default=all --with-bundledir set localization bundle directory --with-bundlelang set localization bundle base language (English or en) --with-exe-file-perm set default executable permissions value, default=0755 --with-config-file-perm set default ConfigFilePerm value, default=0640 --with-cupsd-file-perm set default cupsd permissions, default=0700 --with-log-file-perm set default LogFilePerm value, default=0644 --with-max-log-size set default MaxLogSize value, default=1m --with-error-policy set default ErrorPolicy value, default=stop-printer --with-fatal-errors set default FatalErrors value, default=config --with-log-level set default LogLevel value, default=warn --with-access-log-level set default AccessLogLevel value, default=none --with-local-protocols set default BrowseLocalProtocols, default="" --with-cups-user set default user for CUPS --with-cups-group set default group for CUPS --with-system-groups set default system groups for CUPS --with-printcap set default printcap file --with-max-copies set default max copies value, default=9999 --with-snmp-address set SNMP query address, default=auto --with-snmp-community set SNMP community, default=public --with-ipp-port set port number for IPP, default=631 --with-idle-exit-timeout set the default value for IdleExitTimeout, default=60 --with-systemd-timeoutstartsec set TimeoutStartSec value in cups.service, default=default value in systemd Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . CUPS home page: . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF CUPS configure 2.4.7 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. */ #include #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 printf %s "checking for $2.$3... " >&6; } if eval test \${$4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by CUPS $as_me 2.4.7, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Auxiliary files required by this configure script. ac_aux_files="config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')" host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')" # Linux often does not yield an OS version we can use... if test "x$host_os_version" = x then : host_os_version="0" fi if test "$build" = "$host" then : # No, build local targets LOCALTARGET="local" else $as_nop # Yes, don't build local targets LOCALTARGET="" fi for ac_prog in codesign true do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_CODE_SIGN+y} then : printf %s "(cached) " >&6 else $as_nop case $CODE_SIGN in [\\/]* | ?:[\\/]*) ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_CODE_SIGN="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi CODE_SIGN=$ac_cv_path_CODE_SIGN if test -n "$CODE_SIGN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5 printf "%s\n" "$CODE_SIGN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CODE_SIGN" && break done ac_config_headers="$ac_config_headers config.h" CUPS_VERSION="2.4.7" CUPS_API_VERSION="$(echo 2.4.7 | awk -F. '{print $1 "." $2}')" CUPS_BUILD="cups-$CUPS_VERSION" # Check whether --with-cups_build was given. if test ${with_cups_build+y} then : withval=$with_cups_build; CUPS_BUILD="$withval" fi printf "%s\n" "#define CUPS_SVERSION \"CUPS v$CUPS_VERSION\"" >>confdefs.h printf "%s\n" "#define CUPS_MINIMAL \"CUPS/$CUPS_VERSION\"" >>confdefs.h CFLAGS="${CFLAGS:=}" CPPFLAGS="${CPPFLAGS:=}" CXXFLAGS="${CXXFLAGS:=}" LDFLAGS="${LDFLAGS:=}" for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test ${ac_cv_prog_CPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CC needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_AR+y} then : printf %s "(cached) " >&6 else $as_nop case $AR in [\\/]* | ?:[\\/]*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi AR=$ac_cv_path_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "chmod", so it can be a program name with args. set dummy chmod; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_CHMOD+y} then : printf %s "(cached) " >&6 else $as_nop case $CHMOD in [\\/]* | ?:[\\/]*) ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi CHMOD=$ac_cv_path_CHMOD if test -n "$CHMOD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 printf "%s\n" "$CHMOD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GZIPPROG+y} then : printf %s "(cached) " >&6 else $as_nop case $GZIPPROG in [\\/]* | ?:[\\/]*) ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GZIPPROG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GZIPPROG=$ac_cv_path_GZIPPROG if test -n "$GZIPPROG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5 printf "%s\n" "$GZIPPROG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 printf %s "checking for install-sh script... " >&6; } INSTALL="`pwd`/install-sh" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 printf "%s\n" "using $INSTALL" >&6; } # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop case $LD in [\\/]* | ?:[\\/]*) ac_cv_path_LD="$LD" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LD=$ac_cv_path_LD if test -n "$LD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "ln", so it can be a program name with args. set dummy ln; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_LN+y} then : printf %s "(cached) " >&6 else $as_nop case $LN in [\\/]* | ?:[\\/]*) ac_cv_path_LN="$LN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LN=$ac_cv_path_LN if test -n "$LN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 printf "%s\n" "$LN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "mkdir", so it can be a program name with args. set dummy mkdir; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MKDIR+y} then : printf %s "(cached) " >&6 else $as_nop case $MKDIR in [\\/]* | ?:[\\/]*) ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_MKDIR="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MKDIR=$ac_cv_path_MKDIR if test -n "$MKDIR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 printf "%s\n" "$MKDIR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MV+y} then : printf %s "(cached) " >&6 else $as_nop case $MV in [\\/]* | ?:[\\/]*) ac_cv_path_MV="$MV" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MV=$ac_cv_path_MV if test -n "$MV"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 printf "%s\n" "$MV" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_RM+y} then : printf %s "(cached) " >&6 else $as_nop case $RM in [\\/]* | ?:[\\/]*) ac_cv_path_RM="$RM" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi RM=$ac_cv_path_RM if test -n "$RM"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 printf "%s\n" "$RM" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "rmdir", so it can be a program name with args. set dummy rmdir; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_RMDIR+y} then : printf %s "(cached) " >&6 else $as_nop case $RMDIR in [\\/]* | ?:[\\/]*) ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_RMDIR="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi RMDIR=$ac_cv_path_RMDIR if test -n "$RMDIR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 printf "%s\n" "$RMDIR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SED=$ac_cv_path_SED if test -n "$SED"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 printf "%s\n" "$SED" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "xdg-open", so it can be a program name with args. set dummy xdg-open; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XDGOPEN+y} then : printf %s "(cached) " >&6 else $as_nop case $XDGOPEN in [\\/]* | ?:[\\/]*) ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_XDGOPEN="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XDGOPEN=$ac_cv_path_XDGOPEN if test -n "$XDGOPEN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 printf "%s\n" "$XDGOPEN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XDGOPEN" = x then : CUPS_HTMLVIEW="htmlview" else $as_nop CUPS_HTMLVIEW="$XDGOPEN" fi if test "x$AR" = x then : as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 fi if test "x$CC" = x then : as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 fi INSTALLSTATIC="" # Check whether --enable-static was given. if test ${enable_static+y} then : enableval=$enable_static; fi if test x$enable_static = xyes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Installing static libraries..." >&5 printf "%s\n" "$as_me: Installing static libraries..." >&6;} INSTALLSTATIC="installstatic" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKGCONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PKGCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKGCONFIG=$ac_cv_path_PKGCONFIG if test -n "$PKGCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 printf "%s\n" "$PKGCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKGCONFIG"; then ac_pt_PKGCONFIG=$PKGCONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKGCONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKGCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG if test -n "$ac_pt_PKGCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKGCONFIG" = x; then PKGCONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKGCONFIG=$ac_pt_PKGCONFIG fi else PKGCONFIG="$ac_cv_path_PKGCONFIG" fi PKGCONFIG_CFLAGS="" PKGCONFIG_LIBS="" PKGCONFIG_LIBS_STATIC="" PKGCONFIG_REQUIRES="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 printf %s "checking for library containing abs... " >&6; } if test ${ac_cv_search_abs+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char abs (); int main (void) { return abs (); ; return 0; } _ACEOF for ac_lib in '' m do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_abs=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_abs+y} then : break fi done if test ${ac_cv_search_abs+y} then : else $as_nop ac_cv_search_abs=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 printf "%s\n" "$ac_cv_search_abs" >&6; } ac_res=$ac_cv_search_abs if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 printf %s "checking for library containing crypt... " >&6; } if test ${ac_cv_search_crypt+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char crypt (); int main (void) { return crypt (); ; return 0; } _ACEOF for ac_lib in '' crypt do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_crypt=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_crypt+y} then : break fi done if test ${ac_cv_search_crypt+y} then : else $as_nop ac_cv_search_crypt=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 printf "%s\n" "$ac_cv_search_crypt" >&6; } ac_res=$ac_cv_search_crypt if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 printf %s "checking for library containing fmod... " >&6; } if test ${ac_cv_search_fmod+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char fmod (); int main (void) { return fmod (); ; return 0; } _ACEOF for ac_lib in '' m do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_fmod=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_fmod+y} then : break fi done if test ${ac_cv_search_fmod+y} then : else $as_nop ac_cv_search_fmod=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 printf "%s\n" "$ac_cv_search_fmod" >&6; } ac_res=$ac_cv_search_fmod if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 printf %s "checking for library containing getspent... " >&6; } if test ${ac_cv_search_getspent+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getspent (); int main (void) { return getspent (); ; return 0; } _ACEOF for ac_lib in '' sec gen do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getspent=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getspent+y} then : break fi done if test ${ac_cv_search_getspent+y} then : else $as_nop ac_cv_search_getspent=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 printf "%s\n" "$ac_cv_search_getspent" >&6; } ac_res=$ac_cv_search_getspent if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi LIBMALLOC="" # Check whether --enable-mallinfo was given. if test ${enable_mallinfo+y} then : enableval=$enable_mallinfo; fi if test x$enable_mallinfo = xyes then : SAVELIBS="$LIBS" LIBS="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 printf %s "checking for library containing mallinfo... " >&6; } if test ${ac_cv_search_mallinfo+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char mallinfo (); int main (void) { return mallinfo (); ; return 0; } _ACEOF for ac_lib in '' malloc do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_mallinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_mallinfo+y} then : break fi done if test ${ac_cv_search_mallinfo+y} then : else $as_nop ac_cv_search_mallinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 printf "%s\n" "$ac_cv_search_mallinfo" >&6; } ac_res=$ac_cv_search_mallinfo if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h fi LIBMALLOC="$LIBS" LIBS="$SAVELIBS" fi # Check whether --enable-libpaper was given. if test ${enable_libpaper+y} then : enableval=$enable_libpaper; fi if test x$enable_libpaper = xyes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 printf %s "checking for systempapername in -lpaper... " >&6; } if test ${ac_cv_lib_paper_systempapername+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpaper $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char systempapername (); int main (void) { return systempapername (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_paper_systempapername=yes else $as_nop ac_cv_lib_paper_systempapername=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 printf "%s\n" "$ac_cv_lib_paper_systempapername" >&6; } if test "x$ac_cv_lib_paper_systempapername" = xyes then : printf "%s\n" "#define HAVE_LIBPAPER 1" >>confdefs.h LIBPAPER="-lpaper" else $as_nop LIBPAPER="" fi else $as_nop LIBPAPER="" fi ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" if test "x$ac_cv_header_crypt_h" = xyes then : printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" if test "x$ac_cv_header_langinfo_h" = xyes then : printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" if test "x$ac_cv_header_malloc_h" = xyes then : printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" if test "x$ac_cv_header_shadow_h" = xyes then : printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes then : printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" if test "x$ac_cv_header_sys_ioctl_h" = xyes then : printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" if test "x$ac_cv_header_sys_param_h" = xyes then : printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" if test "x$ac_cv_header_sys_ucred_h" = xyes then : printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" if test "x$ac_cv_header_iconv_h" = xyes then : SAVELIBS="$LIBS" LIBS="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 printf %s "checking for library containing iconv_open... " >&6; } if test ${ac_cv_search_iconv_open+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char iconv_open (); int main (void) { return iconv_open (); ; return 0; } _ACEOF for ac_lib in '' iconv do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_iconv_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_iconv_open+y} then : break fi done if test ${ac_cv_search_iconv_open+y} then : else $as_nop ac_cv_search_iconv_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 printf "%s\n" "$ac_cv_search_iconv_open" >&6; } ac_res=$ac_cv_search_iconv_open if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h SAVELIBS="$SAVELIBS $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5 printf %s "checking for library containing libiconv_open... " >&6; } if test ${ac_cv_search_libiconv_open+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char libiconv_open (); int main (void) { return libiconv_open (); ; return 0; } _ACEOF for ac_lib in '' iconv do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_libiconv_open=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_libiconv_open+y} then : break fi done if test ${ac_cv_search_libiconv_open+y} then : else $as_nop ac_cv_search_libiconv_open=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5 printf "%s\n" "$ac_cv_search_libiconv_open" >&6; } ac_res=$ac_cv_search_libiconv_open if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h SAVELIBS="$SAVELIBS $LIBS" fi LIBS="$SAVELIBS" fi ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mount_h" = xyes then : printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_statfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_statvfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_vfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs" if test "x$ac_cv_func_statfs" = xyes then : printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" if test "x$ac_cv_func_statvfs" = xyes then : printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes then : printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes then : printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" if test "x$ac_cv_func_vsnprintf" = xyes then : printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" if test "x$ac_cv_func_strlcat" = xyes then : printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" if test "x$ac_cv_func_strlcpy" = xyes then : printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" if test "x$ac_cv_func_random" = xyes then : printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48" if test "x$ac_cv_func_lrand48" = xyes then : printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" if test "x$ac_cv_func_arc4random" = xyes then : printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" if test "x$ac_cv_func_geteuid" = xyes then : printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" if test "x$ac_cv_func_setpgid" = xyes then : printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" if test "x$ac_cv_func_vsyslog" = xyes then : printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h fi case "$host_os_name" in #( linux* | gnu*) : # Do not use sigset on Linux or GNU HURD ;; #( *) : # Use sigset on other platforms, if available ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" if test "x$ac_cv_func_sigset" = xyes then : printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h fi ;; #( *) : ;; esac ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" if test "x$ac_cv_func_sigaction" = xyes then : printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" if test "x$ac_cv_func_waitpid" = xyes then : printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" if test "x$ac_cv_func_wait3" = xyes then : printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" if test "x$ac_cv_func_posix_spawn" = xyes then : printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" if test "x$ac_cv_func_getgrouplist" = xyes then : printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 printf %s "checking for tm_gmtoff member in tm structure... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { struct tm t; int o = t.tm_gmtoff; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 printf %s "checking for st_gen member in stat structure... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { struct stat t; int o = t.st_gen; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" if test "x$ac_cv_func_removefile" = xyes then : printf "%s\n" "#define HAVE_REMOVEFILE 1" >>confdefs.h fi # Check whether --enable-libusb was given. if test ${enable_libusb+y} then : enableval=$enable_libusb; fi LIBUSB="" USBQUIRKS="" if test "x$PKGCONFIG" != x then : if test x$enable_libusb != xno -a $host_os_name != darwin then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 printf %s "checking for libusb-1.0... " >&6; } if $PKGCONFIG --exists libusb-1.0 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h CFLAGS="$CFLAGS $($PKGCONFIG --cflags libusb-1.0)" LIBUSB="$($PKGCONFIG --libs libusb-1.0)" USBQUIRKS="\$(DATADIR)/usb" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test x$enable_libusb = xyes then : as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 fi fi fi elif test x$enable_libusb = xyes then : as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 fi # Check whether --enable-tcp_wrappers was given. if test ${enable_tcp_wrappers+y} then : enableval=$enable_tcp_wrappers; fi LIBWRAP="" if test x$enable_tcp_wrappers = xyes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 printf %s "checking for hosts_access in -lwrap... " >&6; } if test ${ac_cv_lib_wrap_hosts_access+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lwrap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char hosts_access (); int main (void) { return hosts_access (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_wrap_hosts_access=yes else $as_nop ac_cv_lib_wrap_hosts_access=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 printf "%s\n" "$ac_cv_lib_wrap_hosts_access" >&6; } if test "x$ac_cv_lib_wrap_hosts_access" = xyes then : ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" if test "x$ac_cv_header_tcpd_h" = xyes then : printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h LIBWRAP="-lwrap" fi fi fi INSTALL_GZIP="" LIBZ="" ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" if test "x$ac_cv_header_zlib_h" = xyes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 printf %s "checking for gzgets in -lz... " >&6; } if test ${ac_cv_lib_z_gzgets+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gzgets (); int main (void) { return gzgets (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_z_gzgets=yes else $as_nop ac_cv_lib_z_gzgets=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 printf "%s\n" "$ac_cv_lib_z_gzgets" >&6; } if test "x$ac_cv_lib_z_gzgets" = xyes then : printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h LIBZ="-lz" LIBS="$LIBS -lz" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 printf %s "checking for inflateCopy in -lz... " >&6; } if test ${ac_cv_lib_z_inflateCopy+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char inflateCopy (); int main (void) { return inflateCopy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_z_inflateCopy=yes else $as_nop ac_cv_lib_z_inflateCopy=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } if test "x$ac_cv_lib_z_inflateCopy" = xyes then : printf "%s\n" "#define HAVE_INFLATECOPY 1" >>confdefs.h fi if test "x$GZIPPROG" != x then : INSTALL_GZIP="-z" fi fi fi PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBZ" case host_os_name in #( darwin* | *bsd*) : ARFLAGS="-rcv" ;; #( *) : ARFLAGS="crvs" ;; #( *) : ;; esac BACKLIBS="" SERVERLIBS="" SAVELIBS="$LIBS" LIBS="" # Check whether --enable-acl was given. if test ${enable_acl+y} then : enableval=$enable_acl; fi if test "x$enable_acl" != xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 printf %s "checking for library containing acl_init... " >&6; } if test ${ac_cv_search_acl_init+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char acl_init (); int main (void) { return acl_init (); ; return 0; } _ACEOF for ac_lib in '' acl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_acl_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_acl_init+y} then : break fi done if test ${ac_cv_search_acl_init+y} then : else $as_nop ac_cv_search_acl_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 printf "%s\n" "$ac_cv_search_acl_init" >&6; } ac_res=$ac_cv_search_acl_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_ACL_INIT 1" >>confdefs.h fi SERVERLIBS="$SERVERLIBS $LIBS" fi LIBS="$SAVELIBS" DBUSDIR="" DBUS_NOTIFIER="" DBUS_NOTIFIERLIBS="" # Check whether --enable-dbus was given. if test ${enable_dbus+y} then : enableval=$enable_dbus; fi # Check whether --with-dbusdir was given. if test ${with_dbusdir+y} then : withval=$with_dbusdir; DBUSDIR="$withval" fi if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 printf %s "checking for DBUS... " >&6; } if $PKGCONFIG --exists dbus-1 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h CFLAGS="$CFLAGS $($PKGCONFIG --cflags dbus-1) -DDBUS_API_SUBJECT_TO_CHANGE" SERVERLIBS="$SERVERLIBS $($PKGCONFIG --libs dbus-1)" DBUS_NOTIFIER="dbus" DBUS_NOTIFIERLIBS="$($PKGCONFIG --libs dbus-1)" SAVELIBS="$LIBS" LIBS="$LIBS $DBUS_NOTIFIERLIBS" ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes then : printf "%s\n" "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "dbus_threads_init_default" "ac_cv_func_dbus_threads_init_default" if test "x$ac_cv_func_dbus_threads_init_default" = xyes then : printf "%s\n" "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h fi LIBS="$SAVELIBS" if test -d /etc/dbus-1 -a "x$DBUSDIR" = x then : DBUSDIR="/etc/dbus-1" fi else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" CUPS_DEFAULT_SYSTEM_AUTHKEY="" CUPS_SYSTEM_AUTHKEY="" INSTALLXPC="" case $host_os_name in #( darwin*) : BACKLIBS="$BACKLIBS -framework IOKit" SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" LIBS="-framework CoreFoundation -framework Security $LIBS" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC -framework CoreFoundation -framework Security" ac_fn_c_check_header_compile "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes then : printf "%s\n" "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes then : printf "%s\n" "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h fi SAVELIBS="$LIBS" LIBS="-framework SystemConfiguration $LIBS" for ac_func in SCDynamicStoreCopyComputerName do : ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes then : printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h else $as_nop LIBS="$SAVELIBS" fi done ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" if test "x$ac_cv_header_membership_h" = xyes then : printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes then : printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes then : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" if test "x$ac_cv_header_notify_h" = xyes then : printf "%s\n" "#define HAVE_NOTIFY_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" if test "x$ac_cv_func_notify_post" = xyes then : printf "%s\n" "#define HAVE_NOTIFY_POST 1" >>confdefs.h fi # Check whether --with-adminkey was given. if test ${with_adminkey+y} then : withval=$with_adminkey; default_adminkey="$withval" else $as_nop default_adminkey="default" fi # Check whether --with-operkey was given. if test ${with_operkey+y} then : withval=$with_operkey; default_operkey="$withval" else $as_nop default_operkey="default" fi ac_fn_c_check_header_compile "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" if test "x$ac_cv_header_Security_Authorization_h" = xyes then : printf "%s\n" "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h if test "x$default_adminkey" != xdefault then : CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" else $as_nop CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" fi if test "x$default_operkey" != xdefault then : CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" else $as_nop CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" fi fi ac_fn_c_check_header_compile "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" if test "x$ac_cv_header_sandbox_h" = xyes then : printf "%s\n" "#define HAVE_SANDBOX_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" if test "x$ac_cv_header_xpc_xpc_h" = xyes then : printf "%s\n" "#define HAVE_XPC 1" >>confdefs.h INSTALLXPC="install-xpc" fi ;; #( *) : ;; esac printf "%s\n" "#define CUPS_DEFAULT_PRINTOPERATOR_AUTH \"$CUPS_DEFAULT_PRINTOPERATOR_AUTH\"" >>confdefs.h printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_AUTHKEY \"$CUPS_DEFAULT_SYSTEM_AUTHKEY\"" >>confdefs.h COMPONENTS="all" # Check whether --with-components was given. if test ${with_components+y} then : withval=$with_components; COMPONENTS="$withval" fi cupsimagebase="cupsimage" IPPEVECOMMANDS="ippevepcl ippeveps" LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)" LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)" case "$COMPONENTS" in #( all) : BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" ;; #( core) : BUILDDIRS="tools examples locale" ;; #( corelite) : printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h BUILDDIRS="tools examples locale" cupsimagebase="" LIBCUPSOBJS="\$(COREOBJS)" LIBHEADERS="\$(COREHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV)" ;; #( libcups) : BUILDDIRS="locale" cupsimagebase="" ;; #( libcupslite) : printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h BUILDDIRS="locale" cupsimagebase="" LIBCUPSOBJS="\$(COREOBJS)" LIBHEADERS="\$(COREHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV)" ;; #( *) : as_fn_error $? "Bad build component \"$COMPONENTS\" specified." "$LINENO" 5 ;; #( *) : ;; esac if test "$prefix" = "NONE" then : prefix="/" fi if test "$exec_prefix" = "NONE" then : if test "$prefix" = "/" then : exec_prefix="/usr" else $as_nop exec_prefix="$prefix" fi fi if test "$bindir" = "\${exec_prefix}/bin" then : bindir="$exec_prefix/bin" fi printf "%s\n" "#define CUPS_BINDIR \"$bindir\"" >>confdefs.h if test "$sbindir" = "\${exec_prefix}/sbin" then : sbindir="$exec_prefix/sbin" fi printf "%s\n" "#define CUPS_SBINDIR \"$sbindir\"" >>confdefs.h if test "$datarootdir" = "\${prefix}/share" then : if test "$prefix" = "/" then : datarootdir="/usr/share" else $as_nop datarootdir="$prefix/share" fi fi if test "$datadir" = "\${prefix}/share" then : if test "$prefix" = "/" then : datadir="/usr/share" else $as_nop datadir="$prefix/share" fi elif test "$datadir" = "\${datarootdir}" then : datadir="$datarootdir" fi if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/" then : includedir="/usr/include" fi if test "$includedir" != "/usr/include" then : PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir" fi if test "$localstatedir" = "\${prefix}/var" then : if test "$prefix" = "/" then : if test "$host_os_name" = darwin then : localstatedir="/private/var" else $as_nop localstatedir="/var" fi else $as_nop localstatedir="$prefix/var" fi fi if test "$sysconfdir" = "\${prefix}/etc" then : if test "$prefix" = "/" then : if test "$host_os_name" = darwin then : sysconfdir="/private/etc" else $as_nop sysconfdir="/etc" fi else $as_nop sysconfdir="$prefix/etc" fi fi if test "$libdir" = "\${exec_prefix}/lib" then : case "$host_os_name" in #( linux*) : if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot then : libdir="$exec_prefix/lib64" else $as_nop libdir="$exec_prefix/lib" fi ;; #( *) : libdir="$exec_prefix/lib" ;; #( *) : ;; esac fi if test "$libdir" = "/usr/lib" then : PKGCONFIG_LIBS="-lcups" else $as_nop PKGCONFIG_LIBS="-L$libdir -lcups" fi # Cache data... # Check whether --with-cachedir was given. if test ${with_cachedir+y} then : withval=$with_cachedir; cachedir="$withval" else $as_nop cachedir="" fi if test x$cachedir = x then : if test "x$host_os_name" = xdarwin then : CUPS_CACHEDIR="$localstatedir/spool/cups/cache" else $as_nop CUPS_CACHEDIR="$localstatedir/cache/cups" fi else $as_nop CUPS_CACHEDIR="$cachedir" fi printf "%s\n" "#define CUPS_CACHEDIR \"$CUPS_CACHEDIR\"" >>confdefs.h # Data files CUPS_DATADIR="$datadir/cups" printf "%s\n" "#define CUPS_DATADIR \"$datadir/cups\"" >>confdefs.h # Icon directory # Check whether --with-icondir was given. if test ${with_icondir+y} then : withval=$with_icondir; icondir="$withval" else $as_nop icondir="" fi if test "x$icondir" = x then : ICONDIR="/usr/share/icons" else $as_nop ICONDIR="$icondir" fi # Menu directory # Check whether --with-menudir was given. if test ${with_menudir+y} then : withval=$with_menudir; menudir="$withval" else $as_nop menudir="" fi if test "x$menudir" = x then : MENUDIR="/usr/share/applications" else $as_nop MENUDIR="$menudir" fi # Documentation files # Check whether --with-docdir was given. if test ${with_docdir+y} then : withval=$with_docdir; docdir="$withval" else $as_nop docdir="" fi if test x$docdir = x then : CUPS_DOCROOT="$datadir/doc/cups" docdir="$datadir/doc/cups" else $as_nop CUPS_DOCROOT="$docdir" fi printf "%s\n" "#define CUPS_DOCROOT \"$docdir\"" >>confdefs.h # Locale data if test "$localedir" = "\${datarootdir}/locale" then : case "$host_os_name" in #( linux* | gnu* | *bsd* | darwin* | solaris*) : CUPS_LOCALEDIR="$datarootdir/locale" ;; #( *) : # This is the standard System V location... CUPS_LOCALEDIR="$exec_prefix/lib/locale" ;; #( *) : ;; esac else $as_nop CUPS_LOCALEDIR="$localedir" fi printf "%s\n" "#define CUPS_LOCALEDIR \"$CUPS_LOCALEDIR\"" >>confdefs.h # cups.pc file... # Check whether --with-pkgconfpath was given. if test ${with_pkgconfpath+y} then : withval=$with_pkgconfpath; pkgconfpath="$withval" else $as_nop pkgconfpath="" fi if test x$pkgconfpath = x then : CUPS_PKGCONFPATH="$exec_prefix/lib/pkgconfig" else $as_nop CUPS_PKGCONFPATH="$pkgconfpath" fi printf "%s\n" "#define CUPS_PKGCONFPATH \"$CUPS_PKGCONFPATH\"" >>confdefs.h # Log files... # Check whether --with-logdir was given. if test ${with_logdir+y} then : withval=$with_logdir; logdir="$withval" else $as_nop logdir="" fi if test x$logdir = x then : CUPS_LOGDIR="$localstatedir/log/cups" else $as_nop CUPS_LOGDIR="$logdir" fi printf "%s\n" "#define CUPS_LOGDIR \"$CUPS_LOGDIR\"" >>confdefs.h # Longer-term spool data CUPS_REQUESTS="$localstatedir/spool/cups" printf "%s\n" "#define CUPS_REQUESTS \"$localstatedir/spool/cups\"" >>confdefs.h # Server executables... case "$host_os_name" in #( *-gnu) : # GNUs INSTALL_SYSV="install-sysv" CUPS_SERVERBIN="$exec_prefix/lib/cups" ;; #( *bsd* | darwin*) : # *BSD and Darwin (macOS) INSTALL_SYSV="" CUPS_SERVERBIN="$exec_prefix/libexec/cups" ;; #( *) : # All others INSTALL_SYSV="install-sysv" CUPS_SERVERBIN="$exec_prefix/lib/cups" ;; #( *) : ;; esac printf "%s\n" "#define CUPS_SERVERBIN \"$CUPS_SERVERBIN\"" >>confdefs.h # Configuration files CUPS_SERVERROOT="$sysconfdir/cups" printf "%s\n" "#define CUPS_SERVERROOT \"$sysconfdir/cups\"" >>confdefs.h # Transient run-time state # Check whether --with-rundir was given. if test ${with_rundir+y} then : withval=$with_rundir; CUPS_STATEDIR="$withval" else $as_nop case "$host_os_name" in #( darwin*) : # Darwin (macOS) CUPS_STATEDIR="$CUPS_SERVERROOT" ;; #( sunos* | solaris*) : if test -d /system/volatile then : CUPS_STATEDIR="/system/volatile/cups" else $as_nop CUPS_STATEDIR="$localstatedir/run/cups" fi ;; #( *) : # All others CUPS_STATEDIR="$localstatedir/run/cups" ;; #( *) : ;; esac fi printf "%s\n" "#define CUPS_STATEDIR \"$CUPS_STATEDIR\"" >>confdefs.h if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/" then : # New GNU "standards" break previous ones, so make sure we use # the right default location for the operating system... mandir="\${prefix}/man" fi if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/" then : case "$host_os_name" in #( darwin* | linux* | gnu* | *bsd*) : # Darwin, macOS, Linux, GNU HURD, and *BSD mandir="/usr/share/man" ;; #( *) : # All others mandir="/usr/man" ;; #( *) : ;; esac fi PICFLAG="1" DSOFLAGS="${DSOFLAGS:=}" # Check whether --enable-shared was given. if test ${enable_shared+y} then : enableval=$enable_shared; fi cupsbase="cups" LIBCUPSBASE="lib$cupsbase" LIBCUPSIMAGE="" LIBCUPSSTATIC="lib$cupsbase.a" if test x$enable_shared != xno then : case "$host_os_name" in #( sunos*) : LIBCUPS="lib$cupsbase.so.2" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.so.2" fi DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G" ;; #( linux* | gnu* | *bsd* | solaris*) : LIBCUPS="lib$cupsbase.so.2" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.so.2" fi DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" ;; #( darwin*) : LIBCUPS="lib$cupsbase.2.dylib" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.2.dylib" fi DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" ;; #( aix*) : LIBCUPS="lib$cupsbase.so.2" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.so.2" fi DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`" LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm" ;; #( *) : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Warning: Shared libraries may not work, trying -shared option." >&5 printf "%s\n" "$as_me: Warning: Shared libraries may not work, trying -shared option." >&6;} LIBCUPS="lib$cupsbase.so.2" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.so.2" fi DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" ;; #( *) : ;; esac else $as_nop PICFLAG=0 LIBCUPS="lib$cupsbase.a" if test "x$cupsimagebase" != x then : LIBCUPSIMAGE="lib$cupsimagebase.a" fi DSO=":" DSOXX=":" fi if test x$enable_shared = xno then : LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)" EXTLINKCUPS="-lcups \$LIBS" elif test "$host_os_name" = aix then : LINKCUPS="-L../cups -l${cupsbase} \$(LIBS)" EXTLINKCUPS="-lcups \$LIBS" else $as_nop LINKCUPS="-L../cups -l${cupsbase}" EXTLINKCUPS="-lcups" fi EXPORT_LDFLAGS="" if test "$DSO" != ":" then : # Tell the run-time linkers where to find a DSO. Some platforms # need this option, even when the library is installed in a # standard location... case $host_os_name in #( sunos* | solaris*) : # Solaris... if test $exec_prefix != /usr then : DSOFLAGS="-R$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -R$libdir" EXPORT_LDFLAGS="-R$libdir" fi ;; #( *bsd*) : # *BSD... if test $exec_prefix != /usr then : DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -Wl,-R$libdir" EXPORT_LDFLAGS="-Wl,-R$libdir" fi ;; #( linux* | gnu*) : # Linux, and HURD... if test $exec_prefix != /usr then : DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" EXPORT_LDFLAGS="-Wl,-rpath,$libdir" fi ;; #( *) : ;; esac fi # Check whether --enable-libtool_unsupported was given. if test ${enable_libtool_unsupported+y} then : enableval=$enable_libtool_unsupported; else $as_nop enable_libtool_unsupported=no fi if test x$enable_libtool_unsupported != xno then : if test "x$enable_libtool_unsupported" = xyes then : as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5 else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5 printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;} fi LIBTOOL="$enable_libtool_unsupported" enable_shared="no" DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" LIBCUPS="libcups.la" LIBCUPSSTATIC="libcups.la" LIBCUPSCGI="libcupscgi.la" LIBCUPSIMAGE="libcupsimage.la" LIBCUPSMIME="libcupsmime.la" LIBCUPSPPDC="libcupsppdc.la" LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" LINKCUPS="../cups/\$(LIBCUPS)" LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" else $as_nop LD_CC="\$(CC)" LD_CXX="\$(CXX)" LIBTOOL_CC="" LIBTOOL_CXX="" LIBTOOL_INSTALL="" fi INSTALL_STRIP="" # Check whether --with-optim was given. if test ${with_optim+y} then : withval=$with_optim; OPTIM="$withval" else $as_nop OPTIM="" fi # Check whether --enable-debug was given. if test ${enable_debug+y} then : enableval=$enable_debug; fi # Check whether --enable-debug_guards was given. if test ${enable_debug_guards+y} then : enableval=$enable_debug_guards; fi # Check whether --enable-debug_printfs was given. if test ${enable_debug_printfs+y} then : enableval=$enable_debug_printfs; fi # Check whether --enable-maintainer was given. if test ${enable_maintainer+y} then : enableval=$enable_maintainer; fi # Check whether --enable-unit_tests was given. if test ${enable_unit_tests+y} then : enableval=$enable_unit_tests; fi if test x$enable_debug = xyes -a "x$OPTIM" = x then : OPTIM="-g" else $as_nop INSTALL_STRIP="-s" fi if test x$enable_debug_printfs = xyes then : CFLAGS="$CFLAGS -DDEBUG" CXXFLAGS="$CXXFLAGS -DDEBUG" fi if test x$enable_debug_guards = xyes then : CFLAGS="$CFLAGS -DDEBUG_GUARDS" CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" fi if test x$enable_unit_tests = xyes then : if test "$build" != "$host" then : as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5 fi UNITTESTS="unittests" else $as_nop UNITTESTS="" fi # Check whether --with-archflags was given. if test ${with_archflags+y} then : withval=$with_archflags; fi # Check whether --with-ldarchflags was given. if test ${with_ldarchflags+y} then : withval=$with_ldarchflags; fi if test -z "$with_archflags" then : ARCHFLAGS="" else $as_nop ARCHFLAGS="$with_archflags" fi if test -z "$with_ldarchflags" then : LDARCHFLAGS="$ARCHFLAGS" else $as_nop LDARCHFLAGS="$with_ldarchflags" fi # Check whether --enable-relro was given. if test ${enable_relro+y} then : enableval=$enable_relro; fi # Check whether --enable-sanitizer was given. if test ${enable_sanitizer+y} then : enableval=$enable_sanitizer; fi CXXLIBS="${CXXLIBS:=}" PIEFLAGS="" RELROFLAGS="" WARNING_OPTIONS="" if test -n "$GCC" then : # Add GCC/Clang compiler options... # Address sanitizer is a useful tool to use when developing/debugging # code but adds about 2x overhead... if test x$enable_sanitizer = xyes then : # Use -fsanitize=address with debugging... OPTIM="$OPTIM -g -fsanitize=address" elif echo "$CXXFLAGS $CFLAGS" | grep -q _FORTIFY_SOURCE then : # Don't add _FORTIFY_SOURCE if it is already there else $as_nop # Otherwise use the Fortify enhancements to catch any unbounded # string operations... CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3" CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=3" fi # Default optimization options... if test -z "$OPTIM" then : # Default to optimize-for-size and debug OPTIM="-Os -g" fi # Generate position-independent code as needed... if test $PICFLAG = 1 then : OPTIM="-fPIC $OPTIM" fi # The -fstack-protector-strong and -fstack-protector options are available # with some versions of GCC and adds "stack canaries" which detect # when the return address has been overwritten, preventing many types of exploit attacks. # First check for -fstack-protector-strong, then for -fstack-protector... { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector-strong" >&5 printf %s "checking whether compiler supports -fstack-protector-strong... " >&6; } OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector-strong" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : OPTIM="$OPTIM -fstack-protector-strong" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5 printf %s "checking whether compiler supports -fstack-protector... " >&6; } CFLAGS="$OLDCFLAGS -fstack-protector" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : OPTIM="$OPTIM -fstack-protector" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$OLDCFLAGS" if test "x$LSB_BUILD" != xy then : # The -fPIE option is available with some versions of GCC and # adds randomization of addresses, which avoids another class of # exploits that depend on a fixed address for common functions. # # Not available to LSB binaries... { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5 printf %s "checking whether compiler supports -fPIE... " >&6; } OLDCFLAGS="$CFLAGS" case "$host_os_name" in #( darwin*) : CFLAGS="$CFLAGS -fPIE -Wl,-pie" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : PIEFLAGS="-fPIE -Wl,-pie" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; #( *) : CFLAGS="$CFLAGS -fPIE -pie" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : PIEFLAGS="-fPIE -pie" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #( *) : ;; esac CFLAGS="$OLDCFLAGS" fi WARNING_OPTIONS="-Wall -Wunused" for warning in char-subscripts deprecated-declarations format-truncation format-y2k switch unused-result; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-$warning" >&5 printf %s "checking whether compiler supports -Wno-$warning... " >&6; } OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wno-$warning -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } WARNING_OPTIONS="$WARNING_OPTIONS -Wno-$warning" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$OLDCFLAGS" done if test x$enable_maintainer = xyes then : WARNING_OPTIONS="$WARNING_OPTIONS -Werror" fi else $as_nop # Add vendor-specific compiler options... case $host_os_name in #( sunos* | solaris*) : # Solaris if test -z "$OPTIM" then : OPTIM="-xO2" fi if test $PICFLAG = 1 then : OPTIM="-KPIC $OPTIM" fi ;; #( *) : # Running some other operating system; inform the user # they should contribute the necessary options via # GitHub... echo "Building CUPS with default compiler optimizations." echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler" echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment" echo "variables before running configure." echo "" echo "https://github.com/openprinting/cups" ;; #( *) : ;; esac fi # Add general compiler options per platform... case $host_os_name in #( linux*) : # glibc 2.8 and higher breaks peer credentials unless you # define _GNU_SOURCE... OPTIM="$OPTIM -D_GNU_SOURCE" # The -z relro option is provided by the Linux linker command to # make relocatable data read-only. if test x$enable_relro = xyes then : RELROFLAGS="-Wl,-z,relro,-z,now" fi ;; #( *) : ;; esac ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " #include #include #include #include #include " if test "x$ac_cv_header_resolv_h" = xyes then : printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 printf %s "checking for library containing socket... " >&6; } if test ${ac_cv_search_socket+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char socket (); int main (void) { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_socket+y} then : break fi done if test ${ac_cv_search_socket+y} then : else $as_nop ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 printf "%s\n" "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 printf %s "checking for library containing gethostbyaddr... " >&6; } if test ${ac_cv_search_gethostbyaddr+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gethostbyaddr (); int main (void) { return gethostbyaddr (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_gethostbyaddr=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_gethostbyaddr+y} then : break fi done if test ${ac_cv_search_gethostbyaddr+y} then : else $as_nop ac_cv_search_gethostbyaddr=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; } ac_res=$ac_cv_search_gethostbyaddr if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 printf %s "checking for library containing getifaddrs... " >&6; } if test ${ac_cv_search_getifaddrs+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getifaddrs (); int main (void) { return getifaddrs (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getifaddrs=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getifaddrs+y} then : break fi done if test ${ac_cv_search_getifaddrs+y} then : else $as_nop ac_cv_search_getifaddrs=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 printf "%s\n" "$ac_cv_search_getifaddrs" >&6; } ac_res=$ac_cv_search_getifaddrs if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 printf %s "checking for library containing hstrerror... " >&6; } if test ${ac_cv_search_hstrerror+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char hstrerror (); int main (void) { return hstrerror (); ; return 0; } _ACEOF for ac_lib in '' nsl socket resolv do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_hstrerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_hstrerror+y} then : break fi done if test ${ac_cv_search_hstrerror+y} then : else $as_nop ac_cv_search_hstrerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 printf "%s\n" "$ac_cv_search_hstrerror" >&6; } ac_res=$ac_cv_search_hstrerror if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 printf %s "checking for library containing rresvport_af... " >&6; } if test ${ac_cv_search_rresvport_af+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char rresvport_af (); int main (void) { return rresvport_af (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_rresvport_af=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_rresvport_af+y} then : break fi done if test ${ac_cv_search_rresvport_af+y} then : else $as_nop ac_cv_search_rresvport_af=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 printf "%s\n" "$ac_cv_search_rresvport_af" >&6; } ac_res=$ac_cv_search_rresvport_af if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_RRESVPORT_AF 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 printf %s "checking for library containing __res_init... " >&6; } if test ${ac_cv_search___res_init+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char __res_init (); int main (void) { return __res_init (); ; return 0; } _ACEOF for ac_lib in '' resolv bind do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search___res_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search___res_init+y} then : break fi done if test ${ac_cv_search___res_init+y} then : else $as_nop ac_cv_search___res_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 printf "%s\n" "$ac_cv_search___res_init" >&6; } ac_res=$ac_cv_search___res_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 printf %s "checking for library containing res_9_init... " >&6; } if test ${ac_cv_search_res_9_init+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char res_9_init (); int main (void) { return res_9_init (); ; return 0; } _ACEOF for ac_lib in '' resolv bind do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_res_9_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_res_9_init+y} then : break fi done if test ${ac_cv_search_res_9_init+y} then : else $as_nop ac_cv_search_res_9_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 printf "%s\n" "$ac_cv_search_res_9_init" >&6; } ac_res=$ac_cv_search_res_9_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 printf %s "checking for library containing res_init... " >&6; } if test ${ac_cv_search_res_init+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char res_init (); int main (void) { return res_init (); ; return 0; } _ACEOF for ac_lib in '' resolv bind do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_res_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_res_init+y} then : break fi done if test ${ac_cv_search_res_init+y} then : else $as_nop ac_cv_search_res_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 printf "%s\n" "$ac_cv_search_res_init" >&6; } ac_res=$ac_cv_search_res_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 printf %s "checking for library containing getaddrinfo... " >&6; } if test ${ac_cv_search_getaddrinfo+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getaddrinfo (); int main (void) { return getaddrinfo (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getaddrinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getaddrinfo+y} then : break fi done if test ${ac_cv_search_getaddrinfo+y} then : else $as_nop ac_cv_search_getaddrinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } ac_res=$ac_cv_search_getaddrinfo if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 printf %s "checking for library containing getnameinfo... " >&6; } if test ${ac_cv_search_getnameinfo+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getnameinfo (); int main (void) { return getnameinfo (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getnameinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getnameinfo+y} then : break fi done if test ${ac_cv_search_getnameinfo+y} then : else $as_nop ac_cv_search_getnameinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 printf "%s\n" "$ac_cv_search_getnameinfo" >&6; } ac_res=$ac_cv_search_getnameinfo if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include " if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes then : fi ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" if test "x$ac_cv_header_sys_sockio_h" = xyes then : printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h fi CUPS_DEFAULT_DOMAINSOCKET="" # Check whether --with-domainsocket was given. if test ${with_domainsocket+y} then : withval=$with_domainsocket; default_domainsocket="$withval" else $as_nop default_domainsocket="" fi if test x$enable_domainsocket != xno -a x$default_domainsocket != xno then : if test "x$default_domainsocket" = x then : case "$host_os_name" in #( darwin*) : # Darwin and macOS do their own thing... CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" ;; #( *) : # All others use FHS standard... CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" ;; #( *) : ;; esac else $as_nop CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" fi CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" printf "%s\n" "#define CUPS_DEFAULT_DOMAINSOCKET \"$CUPS_DEFAULT_DOMAINSOCKET\"" >>confdefs.h else $as_nop CUPS_LISTEN_DOMAINSOCKET="" fi ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" if test "x$ac_cv_func_poll" = xyes then : printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" if test "x$ac_cv_func_epoll_create" = xyes then : printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" if test "x$ac_cv_func_kqueue" = xyes then : printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h fi # Check whether --enable-gssapi was given. if test ${enable_gssapi+y} then : enableval=$enable_gssapi; fi LIBGSSAPI="" if test x$enable_gssapi = xyes then : if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_KRB5CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $KRB5CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi KRB5CONFIG=$ac_cv_path_KRB5CONFIG if test -n "$KRB5CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 printf "%s\n" "$KRB5CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_KRB5CONFIG"; then ac_pt_KRB5CONFIG=$KRB5CONFIG # Extract the first word of "krb5-config", so it can be a program name with args. set dummy krb5-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_KRB5CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_KRB5CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG if test -n "$ac_pt_KRB5CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 printf "%s\n" "$ac_pt_KRB5CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_KRB5CONFIG" = x; then KRB5CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac KRB5CONFIG=$ac_pt_KRB5CONFIG fi else KRB5CONFIG="$ac_cv_path_KRB5CONFIG" fi case "$host_os_name" in #( darwin*) : # macOS weak-links to the Kerberos framework... printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h LIBGSSAPI="-weak_framework Kerberos" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 printf %s "checking for GSS framework... " >&6; } if test -d /System/Library/Frameworks/GSS.framework then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; #( sunos* | solaris*) : # Solaris has a non-standard krb5-config, don't use it! SAVELIBS="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 printf %s "checking for gss_display_status in -lgss... " >&6; } if test ${ac_cv_lib_gss_gss_display_status+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lgss $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gss_display_status (); int main (void) { return gss_display_status (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_gss_gss_display_status=yes else $as_nop ac_cv_lib_gss_gss_display_status=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 printf "%s\n" "$ac_cv_lib_gss_gss_display_status" >&6; } if test "x$ac_cv_lib_gss_gss_display_status" = xyes then : printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h if test "x$KRB5CONFIG" != x then : CFLAGS="$($KRB5CONFIG --cflags) $CFLAGS" CPPFLAGS="$($KRB5CONFIG --cflags) $CPPFLAGS" LIBGSSAPI="-lgss $($KRB5CONFIG --libs)" else $as_nop LIBGSSAPI="-lgss" fi else $as_nop as_fn_error $? "--enable-gssapi specified but GSSAPI library cannot be found." "$LINENO" 5 fi LIBS="$SAVELIBS" ;; #( *) : # Other platforms just ask for GSSAPI if test "x$KRB5CONFIG" = x then : as_fn_error $? "--enable-gssapi specified but krb5-config cannot be found." "$LINENO" 5 else $as_nop printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h CFLAGS="$($KRB5CONFIG --cflags gssapi) $CFLAGS" CPPFLAGS="$($KRB5CONFIG --cflags gssapi) $CPPFLAGS" LIBGSSAPI="$($KRB5CONFIG --libs gssapi)" fi ;; #( *) : ;; esac ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" if test "x$ac_cv_header_krb5_h" = xyes then : printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h fi if test -d /System/Library/Frameworks/GSS.framework then : ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" if test "x$ac_cv_header_GSS_gssapi_h" = xyes then : printf "%s\n" "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes then : printf "%s\n" "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes then : printf "%s\n" "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h fi else $as_nop ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" if test "x$ac_cv_header_gssapi_h" = xyes then : printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" if test "x$ac_cv_header_gssapi_gssapi_h" = xyes then : printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h fi fi SAVELIBS="$LIBS" LIBS="$LIBS $LIBGSSAPI" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBGSSAPI" ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes then : printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 printf %s "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } if test x$ac_cv_header_gssapi_gssapi_h = xyes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext elif test x$ac_cv_header_gss_gssapi_h = xyes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$SAVELIBS" fi # Check whether --with-gssservicename was given. if test ${with_gssservicename+y} then : withval=$with_gssservicename; default_gssservicename="$withval" else $as_nop default_gssservicename="default" fi if test x$default_gssservicename != xno then : if test "x$default_gssservicename" = "xdefault" then : CUPS_DEFAULT_GSSSERVICENAME="host" else $as_nop CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" fi else $as_nop CUPS_DEFAULT_GSSSERVICENAME="" fi printf "%s\n" "#define CUPS_DEFAULT_GSSSERVICENAME \"$CUPS_DEFAULT_GSSSERVICENAME\"" >>confdefs.h have_pthread="no" PTHREAD_FLAGS="" ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes then : printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h fi if test x$ac_cv_header_pthread_h = xyes then : for flag in -lpthreads -lpthread -pthread; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 printf %s "checking for pthread_create using $flag... " >&6; } SAVELIBS="$LIBS" LIBS="$flag $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { pthread_create(0, 0, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : have_pthread="yes" else $as_nop LIBS="$SAVELIBS" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 printf "%s\n" "$have_pthread" >&6; } if test $have_pthread = yes then : PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX- # compliant... :( if test $host_os_name = sunos -o $host_os_name = solaris then : PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" fi break fi done fi if test $have_pthread = no then : as_fn_error $? "CUPS requires threading support." "$LINENO" 5 fi # Check whether --with-tls was given. if test ${with_tls+y} then : withval=$with_tls; fi if test "x$with_tls" = x then : with_tls="yes" elif test "$with_tls" != cdsa -a "$with_tls" != gnutls -a "$with_tls" != openssl -a "$with_tls" != no -a "$with_tls" != yes then : as_fn_error $? "Unsupported --with-tls value \"$with_tls\" specified." "$LINENO" 5 fi TLSFLAGS="" TLSLIBS="" have_tls="0" CUPS_SERVERKEYCHAIN="" if test $with_tls = yes -o $with_tls = openssl then : if test "x$PKGCONFIG" != x then : # Find openssl using pkg-config... { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl package" >&5 printf %s "checking for openssl package... " >&6; } if $PKGCONFIG --exists openssl then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_tls="1" with_tls="openssl" TLSLIBS="$($PKGCONFIG --libs openssl)" TLSFLAGS="$($PKGCONFIG --cflags openssl)" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES openssl" printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else $as_nop # Find openssl using legacy library/header checks... SAVELIBS="$LIBS" LIBS="-lcrypto $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 printf %s "checking for SSL_new in -lssl... " >&6; } if test ${ac_cv_lib_ssl_SSL_new+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lssl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char SSL_new (); int main (void) { return SSL_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_ssl_SSL_new=yes else $as_nop ac_cv_lib_ssl_SSL_new=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; } if test "x$ac_cv_lib_ssl_SSL_new" = xyes then : ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_ssl_h" = xyes then : have_tls="1" with_tls="openssl" TLSLIBS="-lssl -lcrypto" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h fi fi LIBS="$SAVELIBS" fi if test $have_tls = 1 then : CUPS_SERVERKEYCHAIN="ssl" elif test $with_tls = openssl then : as_fn_error $? "--with-tls=openssl was specified but neither the OpenSSL nor LibreSSL library were found." "$LINENO" 5 fi fi if test $with_tls = yes -o $with_tls = gnutls then : if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_LIBGNUTLSCONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $LIBGNUTLSCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG if test -n "$LIBGNUTLSCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 printf "%s\n" "$LIBGNUTLSCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG # Extract the first word of "libgnutls-config", so it can be a program name with args. set dummy libgnutls-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_LIBGNUTLSCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG if test -n "$ac_pt_LIBGNUTLSCONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 printf "%s\n" "$ac_pt_LIBGNUTLSCONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then LIBGNUTLSCONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG fi else LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" fi if test "x$PKGCONFIG" != x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls package" >&5 printf %s "checking for gnutls package... " >&6; } if $PKGCONFIG --exists gnutls then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_tls="1" with_tls="gnutls" TLSLIBS="$($PKGCONFIG --libs gnutls)" TLSFLAGS="$($PKGCONFIG --cflags gnutls)" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES gnutls" printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test $have_tls = 0 -a "x$LIBGNUTLSCONFIG" != x then : have_tls="1" with_tls="gnutls" TLSLIBS="$($LIBGNUTLSCONFIG --libs)" TLSFLAGS="$($LIBGNUTLSCONFIG --cflags)" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h fi if test $have_tls = 1 then : CUPS_SERVERKEYCHAIN="ssl" SAVELIBS="$LIBS" LIBS="$LIBS $TLSLIBS" ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function" if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes then : printf "%s\n" "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct" if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes then : printf "%s\n" "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h fi LIBS="$SAVELIBS" elif test $with_tls = gnutls then : as_fn_error $? "--with-tls=gnutls was specified but the GNU TLS library was not found." "$LINENO" 5 fi fi if test $with_tls = yes -o $with_tls = cdsa then : if test $host_os_name = darwin then : ac_fn_c_check_header_compile "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" if test "x$ac_cv_header_Security_SecureTransport_h" = xyes then : have_tls="1" with_tls="cdsa" printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h printf "%s\n" "#define HAVE_CDSASSL 1" >>confdefs.h CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" ac_fn_c_check_header_compile "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" if test "x$ac_cv_header_Security_SecCertificate_h" = xyes then : printf "%s\n" "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" if test "x$ac_cv_header_Security_SecItem_h" = xyes then : printf "%s\n" "#define HAVE_SECITEM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" if test "x$ac_cv_header_Security_SecPolicy_h" = xyes then : printf "%s\n" "#define HAVE_SECPOLICY_H 1" >>confdefs.h fi fi elif test $with_tls = cdsa then : as_fn_error $? "--with-tls=cdsa is not compatible with your host operating system." "$LINENO" 5 fi fi IPPALIASES="http" if test $have_tls = 1 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSLIBS=\"$TLSLIBS\"" >&5 printf "%s\n" "$as_me: Using TLSLIBS=\"$TLSLIBS\"" >&6;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSFLAGS=\"$TLSFLAGS\"" >&5 printf "%s\n" "$as_me: Using TLSFLAGS=\"$TLSFLAGS\"" >&6;} IPPALIASES="http https ipps" elif test $with_tls = yes then : as_fn_error $? "--with-tls=yes was specified but no compatible TLS libraries could be found." "$LINENO" 5 fi EXPORT_TLSLIBS="$TLSLIBS" # Check whether --enable-pam was given. if test ${enable_pam+y} then : enableval=$enable_pam; fi # Check whether --with-pam_module was given. if test ${with_pam_module+y} then : withval=$with_pam_module; fi PAMDIR="" PAMFILE="pam.std" PAMLIBS="" PAMMOD="pam_unknown.so" PAMMODAUTH="pam_unknown.so" if test x$enable_pam != xno then : SAVELIBS="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 printf %s "checking for pam_start in -lpam... " >&6; } if test ${ac_cv_lib_pam_pam_start+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpam $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char pam_start (); int main (void) { return pam_start (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pam_pam_start=yes else $as_nop ac_cv_lib_pam_pam_start=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } if test "x$ac_cv_lib_pam_pam_start" = xyes then : printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h LIBS="-lpam $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 printf %s "checking for pam_set_item in -lpam... " >&6; } if test ${ac_cv_lib_pam_pam_set_item+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpam $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char pam_set_item (); int main (void) { return pam_set_item (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pam_pam_set_item=yes else $as_nop ac_cv_lib_pam_pam_set_item=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 printf "%s\n" "$ac_cv_lib_pam_pam_set_item" >&6; } if test "x$ac_cv_lib_pam_pam_set_item" = xyes then : printf "%s\n" "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 printf %s "checking for pam_setcred in -lpam... " >&6; } if test ${ac_cv_lib_pam_pam_setcred+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpam $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char pam_setcred (); int main (void) { return pam_setcred (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pam_pam_setcred=yes else $as_nop ac_cv_lib_pam_pam_setcred=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 printf "%s\n" "$ac_cv_lib_pam_pam_setcred" >&6; } if test "x$ac_cv_lib_pam_pam_setcred" = xyes then : printf "%s\n" "#define HAVE_PAM_SETCRED 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" if test "x$ac_cv_header_security_pam_appl_h" = xyes then : fi if test x$ac_cv_header_security_pam_appl_h != xyes then : ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" if test "x$ac_cv_header_pam_pam_appl_h" = xyes then : printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h fi fi if test x$ac_cv_lib_pam_pam_start != xno then : # Set the necessary libraries for PAM... if test x$ac_cv_lib_dl_dlopen != xno then : PAMLIBS="-lpam -ldl" else $as_nop PAMLIBS="-lpam" fi # Find the PAM configuration directory, if any... for dir in /private/etc/pam.d /etc/pam.d; do if test -d $dir then : PAMDIR="$dir" break; fi done fi LIBS="$SAVELIBS" case "$host_os_name" in #( darwin*) : # Darwin/macOS if test "x$with_pam_module" != x then : PAMFILE="pam.$with_pam_module" elif test -f /usr/lib/pam/pam_opendirectory.so.2 then : PAMFILE="pam.opendirectory" else $as_nop PAMFILE="pam.securityserver" fi ;; #( *) : # All others; this test might need to be updated # as Linux distributors move things around... if test "x$with_pam_module" != x then : PAMMOD="pam_${with_pam_module}.so" elif test -f /etc/pam.d/common-auth then : PAMFILE="pam.common" else $as_nop moddir="" for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do if test -d $dir then : moddir="$dir" break; fi done if test -f $moddir/pam_unix2.so then : PAMMOD="pam_unix2.so" elif test -f $moddir/pam_unix.so then : PAMMOD="pam_unix.so" fi fi if test "x$PAMMOD" = xpam_unix.so then : PAMMODAUTH="$PAMMOD shadow nodelay" else $as_nop PAMMODAUTH="$PAMMOD nodelay" fi ;; #( *) : ;; esac fi # Check whether --enable-largefile was given. if test ${enable_largefile+y} then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 printf %s "checking for special C compiler options needed for large files... " >&6; } if test ${ac_cv_sys_largefile_CC+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : break fi rm -f core conftest.err conftest.$ac_objext conftest.beam CC="$CC -n32" if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if test ${ac_cv_sys_file_offset_bits+y} then : printf %s "(cached) " >&6 else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } if test ${ac_cv_sys_large_files+y} then : printf %s "(cached) " >&6 else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 printf "%s\n" "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h ;; esac rm -rf conftest* fi fi LARGEFILE="" if test x$enable_largefile != xno then : LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" if test x$ac_cv_sys_large_files = x1 then : LARGEFILE="$LARGEFILE -D_LARGE_FILES" fi if test x$ac_cv_sys_file_offset_bits = x64 then : LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 printf %s "checking for long long int... " >&6; } if test ${ac_cv_c_long_long+y} then : printf %s "(cached) " >&6 else $as_nop if test "$GCC" = yes then : ac_cv_c_long_long="yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { long long int i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_long_long="yes" else $as_nop ac_cv_c_long_long="no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 printf "%s\n" "$ac_cv_c_long_long" >&6; } if test $ac_cv_c_long_long = yes then : printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" if test "x$ac_cv_func_strtoll" = xyes then : printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h fi # Check whether --with-dnssd was given. if test ${with_dnssd+y} then : withval=$with_dnssd; fi if test x$with_dnssd = x then : with_dnssd="yes" elif test "$with_dnssd" != avahi -a "$with_dnssd" != mdnsresponder -a "$with_dnssd" != no -a "$with_dnssd" != yes then : as_fn_error $? "Unsupported --with-dnssd value \"$with_dnssd\"." "$LINENO" 5 fi # Check whether --with-dnssd_libs was given. if test ${with_dnssd_libs+y} then : withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" DSOFLAGS="-L$withval $DSOFLAGS" fi # Check whether --with-dnssd_includes was given. if test ${with_dnssd_includes+y} then : withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" CPPFLAGS="-I$withval $CPPFLAGS" fi DNSSDLIBS="" DNSSD_BACKEND="" IPPFIND_BIN="" IPPFIND_MAN="" if test $with_dnssd = yes -o $with_dnssd = mdnsresponder then : ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" if test "x$ac_cv_header_dns_sd_h" = xyes then : case "$host_os_name" in #( darwin*) : # Darwin and macOS... with_dnssd="mdnsresponder" printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" ;; #( *) : # All others... { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 printf %s "checking for current version of dns_sd library... " >&6; } SAVELIBS="$LIBS" LIBS="$LIBS -ldns_sd" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int constant = kDNSServiceFlagsShareConnection; unsigned char txtRecord[100]; uint8_t valueLen; TXTRecordGetValuePtr(sizeof(txtRecord), txtRecord, "value", &valueLen); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } with_dnssd="mdnsresponder" printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h DNSSDLIBS="-ldns_sd" DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $DNSSDLIBS" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test $with_dnssd = mdnsresponder then : as_fn_error $? "--with-dnssd=mdnsresponder specified but dns_sd library not present." "$LINENO" 5 fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext LIBS="$SAVELIBS" ;; #( *) : ;; esac fi fi if test $with_dnssd = avahi -o $with_dnssd = yes then : if test "x$PKGCONFIG" = x then : if test $with_dnssd = avahi then : as_fn_error $? "Avahi requires pkg-config." "$LINENO" 5 fi else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Avahi client" >&5 printf %s "checking for Avahi client... " >&6; } if $PKGCONFIG --exists avahi-client then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES avahi-client" printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h printf "%s\n" "#define HAVE_DNSSD 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if test $with_dnssd = avahi then : as_fn_error $? "--with-dnssd=avahi specified but Avahi client not present." "$LINENO" 5 fi fi fi fi CONTAINER="none" # Check whether --with-container was given. if test ${with_container+y} then : withval=$with_container; CONTAINER="$withval" fi case "$CONTAINER" in #( none) : # No container in use ;; #( snap) : # Building as a snap printf "%s\n" "#define CUPS_SNAP 1" >>confdefs.h ;; #( *) : as_fn_error $? "Unsupported container '$CONTAINER' specified." "$LINENO" 5 ;; #( *) : ;; esac APPARMORLIBS="" SNAPDGLIBLIBS="" if test "x$PKGCONFIG" != x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libapparmor" >&5 printf %s "checking for libapparmor... " >&6; } if $PKGCONFIG --exists libapparmor then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } CFLAGS="$CFLAGS $($PKGCONFIG --cflags libapparmor)" APPARMORLIBS="$($PKGCONFIG --libs libapparmor)" printf "%s\n" "#define HAVE_LIBAPPARMOR 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib-2" >&5 printf %s "checking for libsnapd-glib-2... " >&6; } if $PKGCONFIG --exists snapd-glib-2 glib-2.0 gio-2.0 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib-2 glib-2.0 gio-2.0)" SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib-2 glib-2.0 gio-2.0)" printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h SAVELIBS="$LIBS" LIBS="$SNAPDGLIBLIBS $LIBS" ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync" if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes then : printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h fi LIBS="$SAVELIBS" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib" >&5 printf %s "checking for libsnapd-glib... " >&6; } if $PKGCONFIG --exists snapd-glib glib-2.0 gio-2.0 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib glib-2.0 gio-2.0)" SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib glib-2.0 gio-2.0)" printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h SAVELIBS="$LIBS" LIBS="$SNAPDGLIBLIBS $LIBS" ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync" if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes then : printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h fi LIBS="$SAVELIBS" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi fi ONDEMANDFLAGS="" ONDEMANDLIBS="" # Check whether --with-ondemand was given. if test ${with_ondemand+y} then : withval=$with_ondemand; fi if test "x$with_ondemand" = x then : if test $host_os_name = darwin then : with_ondemand="launchd" else $as_nop with_ondemand="yes" fi elif test "x$with_ondemand" = xyes -a $host_os_name = darwin then : with_ondemand="launchd" elif test "x$with_ondemand" != xno -a "x$with_ondemand" != xsystemd -a "x$with_ondemand" != xupstart -a "x$with_ondemand" != xyes then : as_fn_error $? "Unknown --with-ondemand value \"$with_ondemand\" specified." "$LINENO" 5 fi LAUNCHD_DIR="" if test $with_ondemand = launchd then : ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" if test "x$ac_cv_func_launch_activate_socket" = xyes then : printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h with_ondemand="launchd" else $as_nop if test $with_ondemand = launchd then : as_fn_error $? "Need launch_activate_socket/liblaunch for launchd support." "$LINENO" 5 fi fi ac_fn_c_check_header_compile "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" if test "x$ac_cv_header_launch_h" = xyes then : printf "%s\n" "#define HAVE_LAUNCH_H 1" >>confdefs.h fi if test $host_os_name = darwin then : LAUNCHD_DIR="/System/Library/LaunchDaemons" # liblaunch is already part of libSystem fi fi # Check whether --with-systemd was given. if test ${with_systemd+y} then : withval=$with_systemd; SYSTEMD_DIR="$withval" else $as_nop SYSTEMD_DIR="" fi if test $with_ondemand = systemd -o $with_ondemand = yes then : if test "x$PKGCONFIG" = x then : if test $with_ondemand = systemd then : as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 fi else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 printf %s "checking for libsystemd... " >&6; } have_systemd="no" if $PKGCONFIG --exists libsystemd then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_systemd="yes" with_ondemand="systemd" ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd)" ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd)" elif $PKGCONFIG --exists libsystemd-daemon then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5 printf "%s\n" "yes - legacy" >&6; } have_systemd="yes" with_ondemand="systemd" ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd-daemon)" ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd-daemon)" if $PKGCONFIG --exists libsystemd-journal then : ONDEMANDFLAGS="$ONDEMANDFLAGS $($PKGCONFIG --cflags libsystemd-journal)" ONDEMANDLIBS="$ONDEMANDLIBS $($PKGCONFIG --libs libsystemd-journal)" fi else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test $have_systemd = yes then : printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" if test "x$ac_cv_header_systemd_sd_journal_h" = xyes then : printf "%s\n" "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h fi if test "x$SYSTEMD_DIR" = x then : SYSTEMD_DIR="$($PKGCONFIG --variable=systemdsystemunitdir systemd)" fi fi fi fi if test $with_ondemand = upstart then : printf "%s\n" "#define HAVE_UPSTART. 1 Have upstart support?" >>confdefs.h printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h fi # Check whether --with-smfmanifestdir was given. if test ${with_smfmanifestdir+y} then : withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval" else $as_nop SMFMANIFESTDIR="" fi # Check whether --with-rcdir was given. if test ${with_rcdir+y} then : withval=$with_rcdir; rcdir="$withval" else $as_nop rcdir="" fi # Check whether --with-rclevels was given. if test ${with_rclevels+y} then : withval=$with_rclevels; rclevels="$withval" else $as_nop rclevels="2 3 5" fi # Check whether --with-rcstart was given. if test ${with_rcstart+y} then : withval=$with_rcstart; rcstart="$withval" else $as_nop rcstart="" fi # Check whether --with-rcstop was given. if test ${with_rcstop+y} then : withval=$with_rcstop; rcstop="$withval" else $as_nop rcstop="" fi if test "x$rcdir" = x then : if test "x$LAUNCHD_DIR" = x -a "x$SYSTEMD_DIR" = x -a "x$SMFMANIFESTDIR" = x then : # Fall back on "init", the original service startup interface... if test -d /sbin/init.d then : # SuSE rcdir="/sbin/init.d" elif test -d /etc/init.d then : # Others rcdir="/etc" else $as_nop # RedHat, NetBSD rcdir="/etc/rc.d" fi else $as_nop rcdir="no" fi fi if test "x$rcstart" = x then : case "$host_os_name" in #( linux* | gnu*) : # Linux rcstart="81" ;; #( sunos*) : # Solaris rcstart="81" ;; #( *) : # Others rcstart="99" ;; #( *) : ;; esac fi if test "x$rcstop" = x then : case "$host_os_name" in #( linux* | gnu*) : # Linux rcstop="36" ;; #( *) : # Others rcstop="00" ;; #( *) : ;; esac fi INITDIR="" INITDDIR="" RCLEVELS="$rclevels" RCSTART="$rcstart" RCSTOP="$rcstop" if test "x$rcdir" != xno then : if test "x$rclevels" = x then : INITDDIR="$rcdir" else $as_nop INITDIR="$rcdir" fi fi # Check whether --with-xinetd was given. if test ${with_xinetd+y} then : withval=$with_xinetd; xinetd="$withval" else $as_nop xinetd="" fi XINETD="" if test "x$xinetd" = x then : if test ! -x /sbin/launchd then : for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do if test -d $dir then : XINETD="$dir" break fi done fi elif test "x$xinetd" != xno then : XINETD="$xinetd" fi SYSTEMD_WANTED_BY="printer.target" LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')" # Check whether --with-languages was given. if test ${with_languages+y} then : withval=$with_languages; case "$withval" in #( none | no) : LANGUAGES="" ;; #( all) : ;; #( *) : LANGUAGES="$withval" ;; #( *) : ;; esac fi # Check whether --with-bundledir was given. if test ${with_bundledir+y} then : withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" else $as_nop if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100 then : CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" LANGUAGES="" else $as_nop CUPS_BUNDLEDIR="" fi fi if test "x$CUPS_BUNDLEDIR" != x then : printf "%s\n" "#define CUPS_BUNDLEDIR \"$CUPS_BUNDLEDIR\"" >>confdefs.h fi # Check whether --with-bundlelang was given. if test ${with_bundlelang+y} then : withval=$with_bundlelang; cups_bundlelang="$withval" else $as_nop if test $host_os_version -ge 190 then : cups_bundlelang="en" else $as_nop cups_bundlelang="English" fi fi if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x then : CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj" else $as_nop CUPS_RESOURCEDIR="" fi # Check whether --with-exe_file_perm was given. if test ${with_exe_file_perm+y} then : withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval" else $as_nop CUPS_EXE_FILE_PERM="755" fi # Check whether --with-config_file_perm was given. if test ${with_config_file_perm+y} then : withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" else $as_nop CUPS_CONFIG_FILE_PERM="640" fi printf "%s\n" "#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM" >>confdefs.h # Check whether --with-cupsd_file_perm was given. if test ${with_cupsd_file_perm+y} then : withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" else $as_nop CUPS_CUPSD_FILE_PERM="700" fi # Check whether --with-log_file_perm was given. if test ${with_log_file_perm+y} then : withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" else $as_nop CUPS_LOG_FILE_PERM="644" fi printf "%s\n" "#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM" >>confdefs.h # Check whether --with-max_log_size was given. if test ${with_max_log_size+y} then : withval=$with_max_log_size; CUPS_MAX_LOG_SIZE="$withval" else $as_nop CUPS_MAX_LOG_SIZE="1m" fi printf "%s\n" "#define CUPS_DEFAULT_MAX_LOG_SIZE \"$CUPS_MAX_LOG_SIZE\"" >>confdefs.h # Check whether --with-error_policy was given. if test ${with_error_policy+y} then : withval=$with_error_policy; CUPS_ERROR_POLICY="$withval" else $as_nop CUPS_ERROR_POLICY="stop-printer" fi printf "%s\n" "#define CUPS_DEFAULT_ERROR_POLICY \"$CUPS_ERROR_POLICY\"" >>confdefs.h # Check whether --with-fatal_errors was given. if test ${with_fatal_errors+y} then : withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" else $as_nop CUPS_FATAL_ERRORS="config" fi printf "%s\n" "#define CUPS_DEFAULT_FATAL_ERRORS \"$CUPS_FATAL_ERRORS\"" >>confdefs.h # Check whether --with-log_level was given. if test ${with_log_level+y} then : withval=$with_log_level; CUPS_LOG_LEVEL="$withval" else $as_nop CUPS_LOG_LEVEL="warn" fi printf "%s\n" "#define CUPS_DEFAULT_LOG_LEVEL \"$CUPS_LOG_LEVEL\"" >>confdefs.h # Check whether --with-access_log_level was given. if test ${with_access_log_level+y} then : withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" else $as_nop CUPS_ACCESS_LOG_LEVEL="none" fi printf "%s\n" "#define CUPS_DEFAULT_ACCESS_LOG_LEVEL \"$CUPS_ACCESS_LOG_LEVEL\"" >>confdefs.h # Check whether --enable-page_logging was given. if test ${enable_page_logging+y} then : enableval=$enable_page_logging; fi if test "x$enable_page_logging" = xyes then : CUPS_PAGE_LOG_FORMAT="" else $as_nop CUPS_PAGE_LOG_FORMAT="PageLogFormat" fi # Check whether --enable-sync_on_close was given. if test ${enable_sync_on_close+y} then : enableval=$enable_sync_on_close; fi if test "x$enable_sync_on_close" = xyes then : CUPS_SYNC_ON_CLOSE="Yes" printf "%s\n" "#define CUPS_DEFAULT_SYNC_ON_CLOSE 1" >>confdefs.h else $as_nop CUPS_SYNC_ON_CLOSE="No" fi # Check whether --enable-browsing was given. if test ${enable_browsing+y} then : enableval=$enable_browsing; fi if test "x$enable_browsing" = xno then : CUPS_BROWSING="No" printf "%s\n" "#define CUPS_DEFAULT_BROWSING 0" >>confdefs.h else $as_nop CUPS_BROWSING="Yes" printf "%s\n" "#define CUPS_DEFAULT_BROWSING 1" >>confdefs.h fi # Check whether --with-local_protocols was given. if test ${with_local_protocols+y} then : withval=$with_local_protocols; default_local_protocols="$withval" else $as_nop default_local_protocols="default" fi if test x$with_local_protocols != xno then : if test "x$default_local_protocols" = "xdefault" then : if test "x$DNSSD_BACKEND" != "x" then : CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" else $as_nop CUPS_BROWSE_LOCAL_PROTOCOLS="" fi else $as_nop CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" fi else $as_nop CUPS_BROWSE_LOCAL_PROTOCOLS="" fi printf "%s\n" "#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS \"$CUPS_BROWSE_LOCAL_PROTOCOLS\"" >>confdefs.h # Check whether --enable-default_shared was given. if test ${enable_default_shared+y} then : enableval=$enable_default_shared; fi if test "x$enable_default_shared" = xno then : CUPS_DEFAULT_SHARED="No" printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 0" >>confdefs.h else $as_nop CUPS_DEFAULT_SHARED="Yes" printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 1" >>confdefs.h fi # Check whether --with-cups_user was given. if test ${with_cups_user+y} then : withval=$with_cups_user; CUPS_USER="$withval" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 printf %s "checking for default print user... " >&6; } if test x$host_os_name = xdarwin then : if test "x$(id -u _lp 2>/dev/null)" = x then : CUPS_USER="lp" else $as_nop CUPS_USER="_lp" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 printf "%s\n" "$CUPS_USER" >&6; } elif test -f /etc/passwd then : CUPS_USER="" for user in lp lpd guest daemon nobody; do if test "$(grep \^${user}: /etc/passwd)" != "" then : CUPS_USER="$user" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $user" >&5 printf "%s\n" "$user" >&6; } break fi done if test x$CUPS_USER = x then : CUPS_USER="nobody" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_USER\"" >&5 printf "%s\n" "not found, using \"$CUPS_USER\"" >&6; } fi else $as_nop CUPS_USER="nobody" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no password file, using \"$CUPS_USER\"" >&5 printf "%s\n" "no password file, using \"$CUPS_USER\"" >&6; } fi fi if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0" then : as_fn_error $? "The default user for CUPS cannot be root." "$LINENO" 5 fi # Check whether --with-cups_group was given. if test ${with_cups_group+y} then : withval=$with_cups_group; CUPS_GROUP="$withval" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 printf %s "checking for default print group... " >&6; } if test x$host_os_name = xdarwin then : if test "x$(id -g _lp 2>/dev/null)" = x then : CUPS_GROUP="lp" else $as_nop CUPS_GROUP="_lp" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 printf "%s\n" "$CUPS_GROUP" >&6; } elif test -f /etc/group then : GROUP_LIST="_lp lp nobody" CUPS_GROUP="" for group in $GROUP_LIST; do if test "$(grep \^${group}: /etc/group)" != "" then : CUPS_GROUP="$group" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $group" >&5 printf "%s\n" "$group" >&6; } break fi done if test x$CUPS_GROUP = x then : CUPS_GROUP="nobody" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_GROUP\"" >&5 printf "%s\n" "not found, using \"$CUPS_GROUP\"" >&6; } fi else $as_nop CUPS_GROUP="nobody" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_GROUP\"" >&5 printf "%s\n" "no group file, using \"$CUPS_GROUP\"" >&6; } fi fi if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0" then : as_fn_error $? "The default group for CUPS cannot be root." "$LINENO" 5 fi # Check whether --with-system_groups was given. if test ${with_system_groups+y} then : withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" else $as_nop if test x$host_os_name = xdarwin then : CUPS_SYSTEM_GROUPS="admin" else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 printf %s "checking for default system groups... " >&6; } if test -f /etc/group then : CUPS_SYSTEM_GROUPS="" GROUP_LIST="lpadmin sys system root wheel" for group in $GROUP_LIST; do if test "$(grep \^${group}: /etc/group)" != "" then : if test "x$CUPS_SYSTEM_GROUPS" = x then : CUPS_SYSTEM_GROUPS="$group" else $as_nop CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" fi fi done if test "x$CUPS_SYSTEM_GROUPS" = x then : CUPS_SYSTEM_GROUPS="$GROUP_LIST" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&5 printf "%s\n" "no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 printf "%s\n" "\"$CUPS_SYSTEM_GROUPS\"" >&6; } fi else $as_nop CUPS_SYSTEM_GROUPS="$GROUP_LIST" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&5 printf "%s\n" "no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&6; } fi fi fi CUPS_PRIMARY_SYSTEM_GROUP="$(echo $CUPS_SYSTEM_GROUPS | awk '{print $1}')" for group in $CUPS_SYSTEM_GROUPS; do if test "x$CUPS_GROUP" = "x$group" then : as_fn_error $? "The default system groups cannot contain the default CUPS group." "$LINENO" 5 fi done printf "%s\n" "#define CUPS_DEFAULT_USER \"$CUPS_USER\"" >>confdefs.h printf "%s\n" "#define CUPS_DEFAULT_GROUP \"$CUPS_GROUP\"" >>confdefs.h printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_GROUPS \"$CUPS_SYSTEM_GROUPS\"" >>confdefs.h # Check whether --with-printcap was given. if test ${with_printcap+y} then : withval=$with_printcap; default_printcap="$withval" else $as_nop default_printcap="default" fi if test x$default_printcap != xno then : if test "x$default_printcap" = "xdefault" then : case $host_os_name in #( darwin*) : CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" ;; #( sunos* | solaris*) : CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" ;; #( *) : CUPS_DEFAULT_PRINTCAP="/etc/printcap" ;; #( *) : ;; esac else $as_nop CUPS_DEFAULT_PRINTCAP="$default_printcap" fi else $as_nop CUPS_DEFAULT_PRINTCAP="" fi printf "%s\n" "#define CUPS_DEFAULT_PRINTCAP \"$CUPS_DEFAULT_PRINTCAP\"" >>confdefs.h # Check whether --with-max_copies was given. if test ${with_max_copies+y} then : withval=$with_max_copies; CUPS_MAX_COPIES="$withval" else $as_nop CUPS_MAX_COPIES="9999" fi printf "%s\n" "#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES" >>confdefs.h # Check whether --enable-raw_printing was given. if test ${enable_raw_printing+y} then : enableval=$enable_raw_printing; fi if test "x$enable_raw_printing" != xno then : DEFAULT_RAW_PRINTING="" else $as_nop DEFAULT_RAW_PRINTING="#" fi # Check whether --with-snmp_address was given. if test ${with_snmp_address+y} then : withval=$with_snmp_address; if test "x$withval" = x then : CUPS_SNMP_ADDRESS="" else $as_nop CUPS_SNMP_ADDRESS="Address $withval" fi else $as_nop if test "x$host_os_name" = xdarwin then : CUPS_SNMP_ADDRESS="" else $as_nop CUPS_SNMP_ADDRESS="Address @LOCAL" fi fi # Check whether --with-snmp_community was given. if test ${with_snmp_community+y} then : withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" else $as_nop CUPS_SNMP_COMMUNITY="Community public" fi # Check whether --with-ipp_port was given. if test ${with_ipp_port+y} then : withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" else $as_nop DEFAULT_IPP_PORT="631" fi printf "%s\n" "#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT" >>confdefs.h # Check whether --enable-webif was given. if test ${enable_webif+y} then : enableval=$enable_webif; fi case "x$enable_webif" in #( xno) : CUPS_WEBIF=No CUPS_DEFAULT_WEBIF=0 ;; #( xyes) : CUPS_WEBIF=Yes CUPS_DEFAULT_WEBIF=1 ;; #( *) : if test $host_os_name = darwin then : CUPS_WEBIF=No CUPS_DEFAULT_WEBIF=0 else $as_nop CUPS_WEBIF=Yes CUPS_DEFAULT_WEBIF=1 fi ;; #( *) : ;; esac printf "%s\n" "#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF" >>confdefs.h if test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes then : SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target" fi # Check whether --with-idle_exit_timeout was given. if test ${with_idle_exit_timeout+y} then : withval=$with_idle_exit_timeout; if test "x$withval" = "xno" then : EXIT_TIMEOUT=0 else $as_nop EXIT_TIMEOUT=$withval fi else $as_nop EXIT_TIMEOUT=60 fi # Check whether --with-systemd-timeoutstartsec was given. if test ${with_systemd_timeoutstartsec+y} then : withval=$with_systemd_timeoutstartsec; if test "x$withval" = "xno" then : TIMEOUTSTARTSEC="TimeoutStartSec=infinity" else $as_nop TIMEOUTSTARTSEC="TimeoutStartSec=$withval" fi else $as_nop TIMEOUTSTARTSEC="" fi INSTALL_LANGUAGES="" UNINSTALL_LANGUAGES="" LANGFILES="" if test "x$LANGUAGES" != x then : INSTALL_LANGUAGES="install-languages" UNINSTALL_LANGUAGES="uninstall-languages" for lang in $LANGUAGES; do if test -f doc/$lang/index.html.in then : LANGFILES="$LANGFILES doc/$lang/index.html" fi if test -f templates/$lang/header.tmpl.in then : LANGFILES="$LANGFILES templates/$lang/header.tmpl" fi done elif test "x$CUPS_BUNDLEDIR" != x then : INSTALL_LANGUAGES="install-langbundle" UNINSTALL_LANGUAGES="uninstall-langbundle" fi ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket templates/header.tmpl packaging/cups.list $LANGFILES" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by CUPS $as_me 2.4.7, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to . CUPS home page: ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ CUPS config.status 2.4.7 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; "cups.pc") CONFIG_FILES="$CONFIG_FILES cups.pc" ;; "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; "scheduler/cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpdAT.service" ;; "scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;; "scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;; "scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;; "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi chmod +x cups-config cups-2.4.7/config.sub0000755000175000017500000010575314502571342014357 0ustar zdohnalzdohnal#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-09-17' # This file 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 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova* | managarm-*) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) # A lone config we happen to match not fitting any pattern case $field1-$field2 in decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 basic_os=$field2 ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | convergent* | ncr* | news | 32* | 3600* | 3100* \ | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ultra | tti* | harris | dolphin | highlevel | gould \ | cbm | ns | masscomp | apple | axis | knuth | cray \ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 basic_os= ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; convex-c1) basic_machine=c1-convex basic_os=bsd ;; convex-c2) basic_machine=c2-convex basic_os=bsd ;; convex-c32) basic_machine=c32-convex basic_os=bsd ;; convex-c34) basic_machine=c34-convex basic_os=bsd ;; convex-c38) basic_machine=c38-convex basic_os=bsd ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) cpu=m68k vendor=motorola ;; dpx2*) cpu=m68k vendor=bull basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next case $basic_os in openstep*) ;; nextstep*) ;; ns2*) basic_os=nextstep2 ;; *) basic_os=nextstep3 ;; esac ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x$basic_os != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | linux-musl* | linux-relibc* | linux-uclibc* | linux-mlibc* ) ;; uclinux-uclibc* ) ;; managarm-mlibc* | managarm-kernel* ) ;; -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 exit 1 ;; -kernel* ) echo "Invalid configuration \`$1': \`$os' needs explicit kernel." 1>&2 exit 1 ;; *-kernel* ) echo "Invalid configuration \`$1': \`$kernel' does not support \`$os'." 1>&2 exit 1 ;; kfreebsd*-gnu* | kopensolaris*-gnu*) ;; vxworks-simlinux | vxworks-simwindows | vxworks-spe) ;; nto-qnx*) ;; os2-emx) ;; *-eabi* | *-gnueabi*) ;; -*) # Blank kernel with real OS is always fine. ;; *-*) echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: cups-2.4.7/config.h.in0000644000175000017500000002255414502571342014414 0ustar zdohnalzdohnal/* * Configuration file for CUPS. * * Copyright © 2020-2023 by OpenPrinting * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_CONFIG_H_ #define _CUPS_CONFIG_H_ /* * Version of software... */ #define CUPS_SVERSION "" #define CUPS_MINIMAL "" #define CUPS_LITE 0 /* * Default user and groups... */ #define CUPS_DEFAULT_USER "lp" #define CUPS_DEFAULT_GROUP "sys" #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system" #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM" #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin" /* * Default file permissions... */ #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640 #define CUPS_DEFAULT_LOG_FILE_PERM 0644 /* * Default logging settings... */ #define CUPS_DEFAULT_LOG_LEVEL "warn" #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions" #define CUPS_DEFAULT_MAX_LOG_SIZE "1m" /* * Default fatal error settings... */ #define CUPS_DEFAULT_FATAL_ERRORS "config" /* * Default browsing settings... */ #define CUPS_DEFAULT_BROWSING 1 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "" #define CUPS_DEFAULT_DEFAULT_SHARED 1 /* * Default IPP port... */ #define CUPS_DEFAULT_IPP_PORT 631 /* * Default printcap file... */ #define CUPS_DEFAULT_PRINTCAP "/etc/printcap" /* * Default ErrorPolicy value... */ #define CUPS_DEFAULT_ERROR_POLICY "stop-printer" /* * Default MaxCopies value... */ #define CUPS_DEFAULT_MAX_COPIES 9999 /* * Default SyncOnClose value... */ #undef CUPS_DEFAULT_SYNC_ON_CLOSE /* * Do we have domain socket support, and if so what is the default one? */ #undef CUPS_DEFAULT_DOMAINSOCKET /* * Default WebInterface value... */ #undef CUPS_DEFAULT_WEBIF /* * Where are files stored? * * Note: These are defaults, which can be overridden by environment * variables at run-time... */ #define CUPS_BINDIR "/usr/bin" #define CUPS_CACHEDIR "/var/cache/cups" #define CUPS_DATADIR "/usr/share/cups" #define CUPS_DOCROOT "/usr/share/doc/cups" #define CUPS_LOCALEDIR "/usr/share/locale" #define CUPS_LOGDIR "/var/logs/cups" #define CUPS_REQUESTS "/var/spool/cups" #define CUPS_SBINDIR "/usr/sbin" #define CUPS_SERVERBIN "/usr/lib/cups" #define CUPS_SERVERROOT "/etc/cups" #define CUPS_STATEDIR "/var/run/cups" /* * Do we have posix_spawn? */ #undef HAVE_POSIX_SPAWN /* * Do we have ZLIB? */ #undef HAVE_LIBZ #undef HAVE_INFLATECOPY /* * Do we have PAM stuff? */ #define HAVE_LIBPAM 0 #undef HAVE_PAM_PAM_APPL_H #undef HAVE_PAM_SET_ITEM #undef HAVE_PAM_SETCRED /* * Do we have ? */ #undef HAVE_SHADOW_H /* * Do we have ? */ #undef HAVE_CRYPT_H /* * Use ? */ #undef HAVE_STDINT_H /* * Do we have the long long type? */ #undef HAVE_LONG_LONG #ifdef HAVE_LONG_LONG # define CUPS_LLFMT "%lld" # define CUPS_LLCAST (long long) #else # define CUPS_LLFMT "%ld" # define CUPS_LLCAST (long) #endif /* HAVE_LONG_LONG */ /* * Do we have the strtoll() function? */ #undef HAVE_STRTOLL #ifndef HAVE_STRTOLL # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) #endif /* !HAVE_STRTOLL */ /* * Do we have the strXXX() functions? */ #undef HAVE_STRDUP #undef HAVE_STRLCAT #undef HAVE_STRLCPY /* * Do we have the geteuid() function? */ #undef HAVE_GETEUID /* * Do we have the setpgid() function? */ #undef HAVE_SETPGID /* * Do we have the vsyslog() function? */ #undef HAVE_VSYSLOG /* * Do we have the systemd journal functions? */ #undef HAVE_SYSTEMD_SD_JOURNAL_H /* * Do we have the (v)snprintf() functions? */ #undef HAVE_SNPRINTF #undef HAVE_VSNPRINTF /* * What signal functions to use? */ #undef HAVE_SIGSET #undef HAVE_SIGACTION /* * What wait functions to use? */ #undef HAVE_WAITPID #undef HAVE_WAIT3 /* * Do we have the mallinfo function and malloc.h? */ #undef HAVE_MALLINFO #undef HAVE_MALLOC_H /* * Do we have the POSIX ACL functions? */ #undef HAVE_ACL_INIT /* * Do we have the langinfo.h header file? */ #undef HAVE_LANGINFO_H /* * Which encryption libraries do we have? */ #undef HAVE_TLS #undef HAVE_CDSASSL #undef HAVE_OPENSSL #undef HAVE_GNUTLS #undef HAVE_SSPISSL /* * Do we have the gnutls_transport_set_pull_timeout_function function? */ #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION /* * Do we have the gnutls_priority_set_direct function? */ #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT /* * What Security framework headers do we have? */ #undef HAVE_AUTHORIZATION_H #undef HAVE_SECCERTIFICATE_H #undef HAVE_SECITEM_H #undef HAVE_SECPOLICY_H /* * Do we have the SecGenerateSelfSignedCertificate function? */ #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE /* * Do we have libpaper? */ #undef HAVE_LIBPAPER /* * Do we have DNS Service Discovery (aka Bonjour) support? */ #undef HAVE_DNSSD /* * Do we have mDNSResponder for DNS-SD? */ #undef HAVE_MDNSRESPONDER /* * Do we have Avahi for DNS-SD? */ #undef HAVE_AVAHI /* * Do we have ? */ #undef HAVE_SYS_IOCTL_H /* * Does the "stat" structure contain the "st_gen" member? */ #undef HAVE_ST_GEN /* * Does the "tm" structure contain the "tm_gmtoff" member? */ #undef HAVE_TM_GMTOFF /* * Do we have rresvport_af()? */ #undef HAVE_RRESVPORT_AF /* * Do we have getaddrinfo()? */ #undef HAVE_GETADDRINFO /* * Do we have getnameinfo()? */ #undef HAVE_GETNAMEINFO /* * Do we have getifaddrs()? */ #undef HAVE_GETIFADDRS /* * Do we have hstrerror()? */ #undef HAVE_HSTRERROR /* * Do we have res_init()? */ #undef HAVE_RES_INIT /* * Do we have */ #undef HAVE_RESOLV_H /* * Do we have the header file? */ #undef HAVE_SYS_SOCKIO_H /* * Does the sockaddr structure contain an sa_len parameter? */ #undef HAVE_STRUCT_SOCKADDR_SA_LEN /* * Do we have pthread support? */ #undef HAVE_PTHREAD_H /* * Do we have on-demand support (launchd/systemd/upstart)? */ #undef HAVE_ONDEMAND /* * Do we have launchd support? */ #undef HAVE_LAUNCH_H #undef HAVE_LAUNCHD /* * Do we have systemd support? */ #undef HAVE_SYSTEMD /* * Do we have upstart support? */ #undef HAVE_UPSTART /* * Do we have CoreFoundation public headers? */ #undef HAVE_COREFOUNDATION_H /* * Do we have ApplicationServices public headers? */ #undef HAVE_APPLICATIONSERVICES_H /* * Do we have the SCDynamicStoreCopyComputerName function? */ #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME /* * Do we have the getgrouplist() function? */ #undef HAVE_GETGROUPLIST /* * Do we have macOS 10.4's mbr_XXX functions? */ #undef HAVE_MEMBERSHIP_H #undef HAVE_MBR_UID_TO_UUID /* * Do we have Darwin's notify_post header and function? */ #undef HAVE_NOTIFY_H #undef HAVE_NOTIFY_POST /* * Do we have DBUS? */ #undef HAVE_DBUS #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND #undef HAVE_DBUS_THREADS_INIT /* * Do we have the GSSAPI support library (for Kerberos support)? */ #undef HAVE_GSS_ACQUIRE_CRED_EX_F #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE #undef HAVE_GSS_GSSAPI_H #undef HAVE_GSS_GSSAPI_SPI_H #undef HAVE_GSSAPI #undef HAVE_GSSAPI_GSSAPI_H #undef HAVE_GSSAPI_H /* * Default GSS service name... */ #define CUPS_DEFAULT_GSSSERVICENAME "" /* * Select/poll interfaces... */ #undef HAVE_POLL #undef HAVE_EPOLL #undef HAVE_KQUEUE /* * Do we have the header? */ #undef HAVE_DLFCN_H /* * Do we have ? */ #undef HAVE_SYS_PARAM_H /* * Do we have ? */ #undef HAVE_SYS_UCRED_H /* * Do we have removefile()? */ #undef HAVE_REMOVEFILE /* * Do we have ? */ #undef HAVE_SANDBOX_H /* * Which random number generator function to use... */ #undef HAVE_ARC4RANDOM #undef HAVE_RANDOM #undef HAVE_LRAND48 #ifdef HAVE_ARC4RANDOM # define CUPS_RAND() arc4random() # define CUPS_SRAND(v) #elif defined(HAVE_RANDOM) # define CUPS_RAND() random() # define CUPS_SRAND(v) srandom(v) #elif defined(HAVE_LRAND48) # define CUPS_RAND() lrand48() # define CUPS_SRAND(v) srand48(v) #else # define CUPS_RAND() rand() # define CUPS_SRAND(v) srand(v) #endif /* HAVE_ARC4RANDOM */ /* * Do we have libusb? */ #undef HAVE_LIBUSB /* * Do we have libwrap and tcpd.h? */ #undef HAVE_TCPD_H /* * Do we have ? */ #undef HAVE_ICONV_H /* * Do we have statfs or statvfs and one of the corresponding headers? */ #undef HAVE_STATFS #undef HAVE_STATVFS #undef HAVE_SYS_MOUNT_H #undef HAVE_SYS_STATFS_H #undef HAVE_SYS_STATVFS_H #undef HAVE_SYS_VFS_H /* * Location of macOS localization bundle, if any. */ #undef CUPS_BUNDLEDIR /* * Do we have XPC? */ #undef HAVE_XPC /* * Do we have the C99 abs() function? */ #undef HAVE_ABS #if !defined(HAVE_ABS) && !defined(abs) # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L # define abs(x) _cups_abs(x) static inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # elif defined(_MSC_VER) # define abs(x) _cups_abs(x) static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); } # else # define abs(x) ((x) < 0 ? -(x) : (x)) # endif /* __GNUC__ || __STDC_VERSION__ */ #endif /* !HAVE_ABS && !abs */ /* * Building as a snap (snapcraft.io)? */ #undef CUPS_SNAP /* * Have the apparmor library? */ #undef HAVE_LIBAPPARMOR /* * Have the snapd-glib library? */ #undef HAVE_LIBSNAPDGLIB /* * Have the snapd_client_run_snapctl2_sync function? */ #undef HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC #endif /* !_CUPS_CONFIG_H_ */ cups-2.4.7/config.guess0000755000175000017500000014142214502571342014705 0ustar zdohnalzdohnal#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-09-17' # This file 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 3 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: cups-2.4.7/config-scripts/0000755000175000017500000000000014502571342015313 5ustar zdohnalzdohnalcups-2.4.7/config-scripts/cups-tls.m40000644000175000017500000001206014502571342017326 0ustar zdohnalzdohnaldnl dnl TLS stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2019 by Apple Inc. dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_ARG_WITH([tls], AS_HELP_STRING([--with-tls=...], [use cdsa (macOS), gnutls, or openssl for TLS support])) AS_IF([test "x$with_tls" = x], [ with_tls="yes" ], [test "$with_tls" != cdsa -a "$with_tls" != gnutls -a "$with_tls" != openssl -a "$with_tls" != no -a "$with_tls" != yes], [ AC_MSG_ERROR([Unsupported --with-tls value "$with_tls" specified.]) ]) TLSFLAGS="" TLSLIBS="" have_tls="0" CUPS_SERVERKEYCHAIN="" dnl First look for OpenSSL/LibreSSL... AS_IF([test $with_tls = yes -o $with_tls = openssl], [ AS_IF([test "x$PKGCONFIG" != x], [ # Find openssl using pkg-config... AC_MSG_CHECKING([for openssl package]) AS_IF([$PKGCONFIG --exists openssl], [ AC_MSG_RESULT([yes]) have_tls="1" with_tls="openssl" TLSLIBS="$($PKGCONFIG --libs openssl)" TLSFLAGS="$($PKGCONFIG --cflags openssl)" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES openssl" AC_DEFINE([HAVE_TLS], [1], [Do we support TLS?]) AC_DEFINE([HAVE_OPENSSL], [1], [Do we have the OpenSSL library?]) ], [ AC_MSG_RESULT([no]) ]) ], [ # Find openssl using legacy library/header checks... SAVELIBS="$LIBS" LIBS="-lcrypto $LIBS" AC_CHECK_LIB([ssl], [SSL_new], [ AC_CHECK_HEADER([openssl/ssl.h], [ have_tls="1" with_tls="openssl" TLSLIBS="-lssl -lcrypto" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" AC_DEFINE([HAVE_TLS], [1], [Do we support TLS?]) AC_DEFINE([HAVE_OPENSSL], [1], [Do we have the OpenSSL library?]) ]) ]) LIBS="$SAVELIBS" ]) AS_IF([test $have_tls = 1], [ CUPS_SERVERKEYCHAIN="ssl" ], [test $with_tls = openssl], [ AC_MSG_ERROR([--with-tls=openssl was specified but neither the OpenSSL nor LibreSSL library were found.]) ]) ]) dnl Then look for GNU TLS... AS_IF([test $with_tls = yes -o $with_tls = gnutls], [ AC_PATH_TOOL([LIBGNUTLSCONFIG], [libgnutls-config]) AS_IF([test "x$PKGCONFIG" != x], [ AC_MSG_CHECKING([for gnutls package]) AS_IF([$PKGCONFIG --exists gnutls], [ AC_MSG_RESULT([yes]) have_tls="1" with_tls="gnutls" TLSLIBS="$($PKGCONFIG --libs gnutls)" TLSFLAGS="$($PKGCONFIG --cflags gnutls)" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES gnutls" AC_DEFINE([HAVE_TLS], [1], [Do we support TLS?]) AC_DEFINE([HAVE_GNUTLS], [1], [Do we have the GNU TLS library?]) ], [ AC_MSG_RESULT([no]) ]) ]) AS_IF([test $have_tls = 0 -a "x$LIBGNUTLSCONFIG" != x], [ have_tls="1" with_tls="gnutls" TLSLIBS="$($LIBGNUTLSCONFIG --libs)" TLSFLAGS="$($LIBGNUTLSCONFIG --cflags)" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS" AC_DEFINE([HAVE_TLS], [1], [Do we support TLS?]) AC_DEFINE([HAVE_GNUTLS], [1], [Do we have the GNU TLS library?]) ]) AS_IF([test $have_tls = 1], [ CUPS_SERVERKEYCHAIN="ssl" SAVELIBS="$LIBS" LIBS="$LIBS $TLSLIBS" AC_CHECK_FUNC([gnutls_transport_set_pull_timeout_function], [ AC_DEFINE([HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION], [1], [Do we have the gnutls_transport_set_pull_timeout_function function?]) ]) AC_CHECK_FUNC([gnutls_priority_set_direct], [ AC_DEFINE([HAVE_GNUTLS_PRIORITY_SET_DIRECT], [1], [Do we have the gnutls_priority_set_direct function?]) ]) LIBS="$SAVELIBS" ], [test $with_tls = gnutls], [ AC_MSG_ERROR([--with-tls=gnutls was specified but the GNU TLS library was not found.]) ]) ]) dnl Finally try using CSDA SSL (macOS)... AS_IF([test $with_tls = yes -o $with_tls = cdsa], [ dnl Look for CDSA... AS_IF([test $host_os_name = darwin], [ AC_CHECK_HEADER([Security/SecureTransport.h], [ have_tls="1" with_tls="cdsa" AC_DEFINE([HAVE_TLS], [1], [Do we support TLS?]) AC_DEFINE([HAVE_CDSASSL], [1], [Do we have the macOS SecureTransport API?]) CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" dnl Check for the various security headers... AC_CHECK_HEADER([Security/SecCertificate.h], [ AC_DEFINE([HAVE_SECCERTIFICATE_H], [1], [Have the header?]) ]) AC_CHECK_HEADER([Security/SecItem.h], [ AC_DEFINE([HAVE_SECITEM_H], [1], [Have the header?]) ]) AC_CHECK_HEADER([Security/SecPolicy.h], [ AC_DEFINE([HAVE_SECPOLICY_H], [1], [Have the header?]) ]) AS_IF([test x$ac_cv_header_pthread_h = xyes], [ dnl Check various threading options for the platforms we support for flag in -lpthreads -lpthread -pthread; do AC_MSG_CHECKING([for pthread_create using $flag]) SAVELIBS="$LIBS" LIBS="$flag $LIBS" AC_LINK_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ pthread_create(0, 0, 0, 0); ]]) ], [ have_pthread="yes" ], [ LIBS="$SAVELIBS" ]) AC_MSG_RESULT([$have_pthread]) AS_IF([test $have_pthread = yes], [ PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX- # compliant... :( AS_IF([test $host_os_name = sunos -o $host_os_name = solaris], [ PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" ]) break ]) done ]) AS_IF([test $have_pthread = no], [ AC_MSG_ERROR([CUPS requires threading support.]) ]) cups-2.4.7/config-scripts/cups-startup.m40000644000175000017500000001344214502571342020233 0ustar zdohnalzdohnaldnl dnl Launch-on-demand/startup stuff for CUPS. dnl dnl Copyright © 2021 by OpenPrinting. dnl Copyright © 2007-2017 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl ONDEMANDFLAGS="" ONDEMANDLIBS="" AC_SUBST([ONDEMANDFLAGS]) AC_SUBST([ONDEMANDLIBS]) AC_ARG_WITH([ondemand], AS_HELP_STRING([--with-ondemand=...], [Specify the on-demand launch interface (launchd, systemd, upstart)])) AS_IF([test "x$with_ondemand" = x], [ AS_IF([test $host_os_name = darwin], [ with_ondemand="launchd" ], [ with_ondemand="yes" ]) ], [test "x$with_ondemand" = xyes -a $host_os_name = darwin], [ with_ondemand="launchd" ], [test "x$with_ondemand" != xno -a "x$with_ondemand" != xsystemd -a "x$with_ondemand" != xupstart -a "x$with_ondemand" != xyes], [ AC_MSG_ERROR([Unknown --with-ondemand value "$with_ondemand" specified.]) ]) dnl Launchd is used on macOS/Darwin... LAUNCHD_DIR="" AC_SUBST([LAUNCHD_DIR]) AS_IF([test $with_ondemand = launchd], [ AC_CHECK_FUNC([launch_activate_socket], [ AC_DEFINE([HAVE_LAUNCHD], [1], [Have launchd support?]) AC_DEFINE([HAVE_ONDEMAND], [1], [Have on-demand launch support?]) with_ondemand="launchd" ], [ AS_IF([test $with_ondemand = launchd], [ AC_MSG_ERROR([Need launch_activate_socket/liblaunch for launchd support.]) ]) ]) AC_CHECK_HEADER([launch.h], [ AC_DEFINE([HAVE_LAUNCH_H], [1], [Have header?]) ]) AS_IF([test $host_os_name = darwin], [ LAUNCHD_DIR="/System/Library/LaunchDaemons" # liblaunch is already part of libSystem ]) ]) dnl Systemd is used on Linux... AC_ARG_WITH([systemd], AS_HELP_STRING([--with-systemd], [set directory for systemd service files]), [ SYSTEMD_DIR="$withval" ], [ SYSTEMD_DIR="" ]) AC_SUBST([SYSTEMD_DIR]) AS_IF([test $with_ondemand = systemd -o $with_ondemand = yes], [ AS_IF([test "x$PKGCONFIG" = x], [ AS_IF([test $with_ondemand = systemd], [ AC_MSG_ERROR([Need pkg-config to enable systemd support.]) ]) ], [ AC_MSG_CHECKING([for libsystemd]) have_systemd="no" AS_IF([$PKGCONFIG --exists libsystemd], [ AC_MSG_RESULT([yes]) have_systemd="yes" with_ondemand="systemd" ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd)" ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd)" ], [$PKGCONFIG --exists libsystemd-daemon], [ AC_MSG_RESULT([yes - legacy]) have_systemd="yes" with_ondemand="systemd" ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd-daemon)" ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd-daemon)" AS_IF([$PKGCONFIG --exists libsystemd-journal], [ ONDEMANDFLAGS="$ONDEMANDFLAGS $($PKGCONFIG --cflags libsystemd-journal)" ONDEMANDLIBS="$ONDEMANDLIBS $($PKGCONFIG --libs libsystemd-journal)" ]) ], [ AC_MSG_RESULT([no]) ]) AS_IF([test $have_systemd = yes], [ AC_DEFINE([HAVE_SYSTEMD], [1], [Have systemd support?]) AC_DEFINE([HAVE_ONDEMAND], [1], [Have on-demand launch support?]) AC_CHECK_HEADER([systemd/sd-journal.h], [ AC_DEFINE([HAVE_SYSTEMD_SD_JOURNAL_H], [1], [Have header?]) ]) AS_IF([test "x$SYSTEMD_DIR" = x], [ SYSTEMD_DIR="$($PKGCONFIG --variable=systemdsystemunitdir systemd)" ]) ]) ]) ]) dnl Upstart is also used on Linux (e.g., ChromeOS) AS_IF([test $with_ondemand = upstart], [ AC_DEFINE([HAVE_UPSTART]. [1], [Have upstart support?]) AC_DEFINE([HAVE_ONDEMAND], [1], [Have on-demand launch support?]) ]) dnl Solaris uses smf AC_ARG_WITH([smfmanifestdir], AS_HELP_STRING([--with-smfmanifestdir], [set path for Solaris SMF manifest]), [ SMFMANIFESTDIR="$withval" ], [ SMFMANIFESTDIR="" ]) AC_SUBST([SMFMANIFESTDIR]) dnl Use init on other platforms... AC_ARG_WITH([rcdir], AS_HELP_STRING([--with-rcdir], [set path for rc scripts]), [ rcdir="$withval" ], [ rcdir="" ]) AC_ARG_WITH([rclevels], AS_HELP_STRING([--with-rclevels], [set run levels for rc scripts]), [ rclevels="$withval" ], [ rclevels="2 3 5" ]) AC_ARG_WITH([rcstart], AS_HELP_STRING([--with-rcstart], [set start number for rc scripts]), [ rcstart="$withval" ], [ rcstart="" ]) AC_ARG_WITH([rcstop], AS_HELP_STRING([--with-rcstop], [set stop number for rc scripts]), [ rcstop="$withval" ], [ rcstop="" ]) AS_IF([test "x$rcdir" = x], [ AS_IF([test "x$LAUNCHD_DIR" = x -a "x$SYSTEMD_DIR" = x -a "x$SMFMANIFESTDIR" = x], [ # Fall back on "init", the original service startup interface... AS_IF([test -d /sbin/init.d], [ # SuSE rcdir="/sbin/init.d" ], [test -d /etc/init.d], [ # Others rcdir="/etc" ], [ # RedHat, NetBSD rcdir="/etc/rc.d" ]) ], [ rcdir="no" ]) ]) AS_IF([test "x$rcstart" = x], [ AS_CASE(["$host_os_name"], [linux* | gnu*], [ # Linux rcstart="81" ], [sunos*], [ # Solaris rcstart="81" ], [*], [ # Others rcstart="99" ]) ]) AS_IF([test "x$rcstop" = x], [ AS_CASE(["$host_os_name"], [linux* | gnu*], [ # Linux rcstop="36" ], [*], [ # Others rcstop="00" ]) ]) INITDIR="" INITDDIR="" RCLEVELS="$rclevels" RCSTART="$rcstart" RCSTOP="$rcstop" AC_SUBST([INITDIR]) AC_SUBST([INITDDIR]) AC_SUBST([RCLEVELS]) AC_SUBST([RCSTART]) AC_SUBST([RCSTOP]) AS_IF([test "x$rcdir" != xno], [ AS_IF([test "x$rclevels" = x], [ INITDDIR="$rcdir" ], [ INITDIR="$rcdir" ]) ]) dnl Xinetd support... AC_ARG_WITH([xinetd], AS_HELP_STRING([--with-xinetd], [set path for xinetd config files]), [ xinetd="$withval" ], [ xinetd="" ]) XINETD="" AC_SUBST([XINETD]) AS_IF([test "x$xinetd" = x], [ AS_IF([test ! -x /sbin/launchd], [ for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do AS_IF([test -d $dir], [ XINETD="$dir" break ]) done ]) ], [test "x$xinetd" != xno], [ XINETD="$xinetd" ]) cups-2.4.7/config-scripts/cups-sharedlibs.m40000644000175000017500000000654714502571342020661 0ustar zdohnalzdohnaldnl dnl Shared library support for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2018 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl PICFLAG="1" DSOFLAGS="${DSOFLAGS:=}" AC_ARG_ENABLE([shared], AS_HELP_STRING([--disable-shared], [do not create shared libraries])) cupsbase="cups" LIBCUPSBASE="lib$cupsbase" LIBCUPSIMAGE="" LIBCUPSSTATIC="lib$cupsbase.a" AS_IF([test x$enable_shared != xno], [ AS_CASE(["$host_os_name"], [sunos*], [ LIBCUPS="lib$cupsbase.so.2" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.so.2" ]) DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G" ], [linux* | gnu* | *bsd* | solaris*], [ LIBCUPS="lib$cupsbase.so.2" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.so.2" ]) DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" ], [darwin*], [ LIBCUPS="lib$cupsbase.2.dylib" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.2.dylib" ]) DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" ], [aix*], [ LIBCUPS="lib$cupsbase.so.2" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.so.2" ]) DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`" LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm" ], [*], [ AC_MSG_NOTICE([Warning: Shared libraries may not work, trying -shared option.]) LIBCUPS="lib$cupsbase.so.2" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.so.2" ]) DSO="\$(CC)" DSOXX="\$(CXX)" DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" ]) ], [ PICFLAG=0 LIBCUPS="lib$cupsbase.a" AS_IF([test "x$cupsimagebase" != x], [ LIBCUPSIMAGE="lib$cupsimagebase.a" ]) DSO=":" DSOXX=":" ]) AC_SUBST([DSO]) AC_SUBST([DSOXX]) AC_SUBST([DSOFLAGS]) AC_SUBST([LIBCUPS]) AC_SUBST([LIBCUPSBASE]) AC_SUBST([LIBCUPSIMAGE]) AC_SUBST([LIBCUPSSTATIC]) AS_IF([test x$enable_shared = xno], [ LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)" EXTLINKCUPS="-lcups \$LIBS" ], [test "$host_os_name" = aix], [ LINKCUPS="-L../cups -l${cupsbase} \$(LIBS)" EXTLINKCUPS="-lcups \$LIBS" ], [ LINKCUPS="-L../cups -l${cupsbase}" EXTLINKCUPS="-lcups" ]) AC_SUBST([EXTLINKCUPS]) AC_SUBST([LINKCUPS]) dnl Update libraries for DSOs... EXPORT_LDFLAGS="" AS_IF([test "$DSO" != ":"], [ # Tell the run-time linkers where to find a DSO. Some platforms # need this option, even when the library is installed in a # standard location... AS_CASE([$host_os_name], [sunos* | solaris*], [ # Solaris... AS_IF([test $exec_prefix != /usr], [ DSOFLAGS="-R$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -R$libdir" EXPORT_LDFLAGS="-R$libdir" ]) ], [*bsd*], [ # *BSD... AS_IF([test $exec_prefix != /usr], [ DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -Wl,-R$libdir" EXPORT_LDFLAGS="-Wl,-R$libdir" ]) ], [linux* | gnu*], [ # Linux, and HURD... AS_IF([test $exec_prefix != /usr], [ DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" EXPORT_LDFLAGS="-Wl,-rpath,$libdir" ]) ]) ]) AC_SUBST([EXPORT_LDFLAGS]) cups-2.4.7/config-scripts/cups-poll.m40000644000175000017500000000105614502571342017475 0ustar zdohnalzdohnaldnl dnl Select/poll stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2011 by Apple Inc. dnl Copyright © 2006 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_CHECK_FUNC([poll], [ AC_DEFINE([HAVE_POLL], [1], [Have poll function?]) ]) AC_CHECK_FUNC([epoll_create], [ AC_DEFINE([HAVE_EPOLL], [1], [Have epoll function?]) ]) AC_CHECK_FUNC([kqueue], [ AC_DEFINE([HAVE_KQUEUE], [1], [Have kqueue function?]) ]) cups-2.4.7/config-scripts/cups-pam.m40000644000175000017500000000513414502571342017305 0ustar zdohnalzdohnaldnl dnl PAM stuff for CUPS. dnl dnl Copyright © 2021 by OpenPrinting. dnl Copyright © 2007-2017 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_ARG_ENABLE([pam], AS_HELP_STRING([--disable-pam], [disable PAM support])) AC_ARG_WITH([pam_module], AS_HELP_STRING([--with-pam-module], [set the PAM module to use])) PAMDIR="" PAMFILE="pam.std" PAMLIBS="" PAMMOD="pam_unknown.so" PAMMODAUTH="pam_unknown.so" AS_IF([test x$enable_pam != xno], [ SAVELIBS="$LIBS" AC_CHECK_LIB([dl], [dlopen]) AC_CHECK_LIB([pam], [pam_start]) AC_CHECK_LIB([pam], [pam_set_item], [ AC_DEFINE([HAVE_PAM_SET_ITEM], [1], [Have pam_set_item function?]) ]) AC_CHECK_LIB([pam], [pam_setcred], [ AC_DEFINE([HAVE_PAM_SETCRED], [1], [Have pam_setcred function?]) ]) AC_CHECK_HEADER([security/pam_appl.h]) AS_IF([test x$ac_cv_header_security_pam_appl_h != xyes], [ AC_CHECK_HEADER([pam/pam_appl.h], [ AC_DEFINE([HAVE_PAM_PAM_APPL_H], [1], [Have header?]) ]) ]) AS_IF([test x$ac_cv_lib_pam_pam_start != xno], [ # Set the necessary libraries for PAM... AS_IF([test x$ac_cv_lib_dl_dlopen != xno], [ PAMLIBS="-lpam -ldl" ], [ PAMLIBS="-lpam" ]) # Find the PAM configuration directory, if any... for dir in /private/etc/pam.d /etc/pam.d; do AS_IF([test -d $dir], [ PAMDIR="$dir" break; ]) done ]) LIBS="$SAVELIBS" AS_CASE(["$host_os_name"], [darwin*], [ # Darwin/macOS AS_IF([test "x$with_pam_module" != x], [ PAMFILE="pam.$with_pam_module" ], [test -f /usr/lib/pam/pam_opendirectory.so.2], [ PAMFILE="pam.opendirectory" ], [ PAMFILE="pam.securityserver" ]) ], [*], [ # All others; this test might need to be updated # as Linux distributors move things around... AS_IF([test "x$with_pam_module" != x], [ PAMMOD="pam_${with_pam_module}.so" ], [test -f /etc/pam.d/common-auth], [ PAMFILE="pam.common" ], [ moddir="" for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do AS_IF([test -d $dir], [ moddir="$dir" break; ]) done AS_IF([test -f $moddir/pam_unix2.so], [ PAMMOD="pam_unix2.so" ], [test -f $moddir/pam_unix.so], [ PAMMOD="pam_unix.so" ]) ]) AS_IF([test "x$PAMMOD" = xpam_unix.so], [ PAMMODAUTH="$PAMMOD shadow nodelay" ], [ PAMMODAUTH="$PAMMOD nodelay" ]) ]) ]) AC_SUBST([PAMDIR]) AC_SUBST([PAMFILE]) AC_SUBST([PAMLIBS]) AC_SUBST([PAMMOD]) AC_SUBST([PAMMODAUTH]) cups-2.4.7/config-scripts/cups-opsys.m40000644000175000017500000000167614502571342017714 0ustar zdohnalzdohnaldnl dnl Operating system stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2019 by Apple Inc. dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Get the build and host platforms and split the host_os value AC_CANONICAL_BUILD AC_CANONICAL_HOST [host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')"] [host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')"] # Linux often does not yield an OS version we can use... AS_IF([test "x$host_os_version" = x], [ host_os_version="0" ]) dnl Determine whether we are cross-compiling... AS_IF([test "$build" = "$host"], [ # No, build local targets LOCALTARGET="local" ], [ # Yes, don't build local targets LOCALTARGET="" ]) AC_SUBST([LOCALTARGET]) AC_PATH_PROGS([CODE_SIGN], [codesign true]) cups-2.4.7/config-scripts/cups-network.m40000644000175000017500000000525414502571342020224 0ustar zdohnalzdohnaldnl dnl Networking stuff for CUPS. dnl dnl Copyright © 2021 by OpenPrinting. dnl Copyright © 2007-2016 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_CHECK_HEADER([resolv.h], [ AC_DEFINE([HAVE_RESOLV_H], [1], [Have the header?]) ], [ ], [ #include #include #include #include #include ]) AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([gethostbyaddr], [nsl]) AC_SEARCH_LIBS([getifaddrs], [nsl], [ AC_DEFINE([HAVE_GETIFADDRS], [1], [Have the getifaddrs function?]) ]) AC_SEARCH_LIBS([hstrerror], [nsl socket resolv], [ AC_DEFINE([HAVE_HSTRERROR], [1], [Have the hstrerror function?]) ]) AC_SEARCH_LIBS([rresvport_af], [nsl], [ AC_DEFINE([HAVE_RRESVPORT_AF], [1], [Have the rresvport_af function?]) ]) AC_SEARCH_LIBS([__res_init], [resolv bind], [ AC_DEFINE([HAVE_RES_INIT], [1], [Have res_init function?]) ], [ AC_SEARCH_LIBS([res_9_init], [resolv bind], [ AC_DEFINE([HAVE_RES_INIT], [1], [Have res_init function?]) ], [ AC_SEARCH_LIBS([res_init], [resolv bind], [ AC_DEFINE([HAVE_RES_INIT], [1], [Have res_init function?]) ]) ]) ]) AC_SEARCH_LIBS([getaddrinfo], [nsl], [ AC_DEFINE([HAVE_GETADDRINFO], [1], [Have the getaddrinfo function?]) ]) AC_SEARCH_LIBS([getnameinfo], [nsl], [ AC_DEFINE([HAVE_GETNAMEINFO], [1], [Have the getnameinfo function?]) ]) AC_CHECK_MEMBER([struct sockaddr.sa_len],,, [#include ]) AC_CHECK_HEADER([sys/sockio.h], [ AC_DEFINE([HAVE_SYS_SOCKIO_H], [1], [Have header?]) ]) dnl Domain socket support... CUPS_DEFAULT_DOMAINSOCKET="" AC_ARG_WITH([domainsocket], AS_HELP_STRING([--with-domainsocket], [set unix domain socket name]), [ default_domainsocket="$withval" ], [ default_domainsocket="" ]) AS_IF([test x$enable_domainsocket != xno -a x$default_domainsocket != xno], [ AS_IF([test "x$default_domainsocket" = x], [ AS_CASE(["$host_os_name"], [darwin*], [ # Darwin and macOS do their own thing... CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" ], [*], [ # All others use FHS standard... CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" ]) ], [ CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" ]) CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" AC_DEFINE_UNQUOTED([CUPS_DEFAULT_DOMAINSOCKET], ["$CUPS_DEFAULT_DOMAINSOCKET"], [Domain socket path.]) ], [ CUPS_LISTEN_DOMAINSOCKET="" ]) AC_SUBST([CUPS_DEFAULT_DOMAINSOCKET]) AC_SUBST([CUPS_LISTEN_DOMAINSOCKET]) cups-2.4.7/config-scripts/cups-manpages.m40000644000175000017500000000145614502571342020326 0ustar zdohnalzdohnaldnl dnl Manpage stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2019 by Apple Inc. dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Fix "mandir" variable... AS_IF([test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"], [ # New GNU "standards" break previous ones, so make sure we use # the right default location for the operating system... mandir="\${prefix}/man" ]) AS_IF([test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"], [ AS_CASE(["$host_os_name"], [darwin* | linux* | gnu* | *bsd*], [ # Darwin, macOS, Linux, GNU HURD, and *BSD mandir="/usr/share/man" ], [*], [ # All others mandir="/usr/man" ]) ]) cups-2.4.7/config-scripts/cups-libtool.m40000644000175000017500000000323114502571342020170 0ustar zdohnalzdohnaldnl dnl GNU libtool stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2018 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_ARG_ENABLE([libtool_unsupported], [ AS_HELP_STRING([--enable-libtool-unsupported=/path/to/libtool], [build with libtool (UNSUPPORTED)]) ], [ ], [ enable_libtool_unsupported=no ]) AS_IF([test x$enable_libtool_unsupported != xno], [ AS_IF([test "x$enable_libtool_unsupported" = xyes], [ AC_MSG_ERROR([Use '--enable-libtool-unsupported=/path/to/libtool'.]) ],[ AC_MSG_WARN([libtool is not supported.]) ]) LIBTOOL="$enable_libtool_unsupported" enable_shared="no" DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" LIBCUPS="libcups.la" LIBCUPSSTATIC="libcups.la" LIBCUPSCGI="libcupscgi.la" LIBCUPSIMAGE="libcupsimage.la" LIBCUPSMIME="libcupsmime.la" LIBCUPSPPDC="libcupsppdc.la" LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" LINKCUPS="../cups/\$(LIBCUPS)" LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" ], [ LD_CC="\$(CC)" LD_CXX="\$(CXX)" LIBTOOL_CC="" LIBTOOL_CXX="" LIBTOOL_INSTALL="" ]) AC_SUBST([LD_CC]) AC_SUBST([LD_CXX]) AC_SUBST([LIBTOOL]) AC_SUBST([LIBTOOL_CC]) AC_SUBST([LIBTOOL_CXX]) AC_SUBST([LIBTOOL_INSTALL]) cups-2.4.7/config-scripts/cups-largefile.m40000644000175000017500000000241614502571342020462 0ustar zdohnalzdohnaldnl dnl Large file support stuff for CUPS. dnl dnl Copyright © 2021 by OpenPrinting. dnl Copyright © 2007-2011 by Apple Inc. dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Check for largefile support... AC_SYS_LARGEFILE dnl Define largefile options as needed... LARGEFILE="" AS_IF([test x$enable_largefile != xno], [ LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" AS_IF([test x$ac_cv_sys_large_files = x1], [ LARGEFILE="$LARGEFILE -D_LARGE_FILES" ]) AS_IF([test x$ac_cv_sys_file_offset_bits = x64], [ LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" ]) ]) AC_SUBST([LARGEFILE]) dnl Check for "long long" support... AC_CACHE_CHECK([for long long int], [ac_cv_c_long_long], [ AS_IF([test "$GCC" = yes], [ ac_cv_c_long_long="yes" ], [ AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ ]], [[long long int i;]]) ], [ ac_cv_c_long_long="yes" ], [ ac_cv_c_long_long="no" ]) ]) ]) AS_IF([test $ac_cv_c_long_long = yes], [ AC_DEFINE([HAVE_LONG_LONG], [1], [Does the compiler support the long long type?]) ]) AC_CHECK_FUNC([strtoll], [ AC_DEFINE([HAVE_STRTOLL], [1], [Do we have the strtoll function?]) ]) cups-2.4.7/config-scripts/cups-gssapi.m40000644000175000017500000001112014502571342020006 0ustar zdohnalzdohnaldnl dnl GSSAPI/Kerberos library detection for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright @ 2007-2017 by Apple Inc. dnl Copyright @ 2006-2007 by Easy Software Products. dnl dnl This file contains Kerberos support code, copyright 2006 by dnl Jelmer Vernooij. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_ARG_ENABLE([gssapi], AS_HELP_STRING([--enable-gssapi], [enable (deprecated) GSSAPI/Kerberos support])) LIBGSSAPI="" AC_SUBST([LIBGSSAPI]) AS_IF([test x$enable_gssapi = xyes], [ AC_PATH_TOOL([KRB5CONFIG], [krb5-config]) AS_CASE(["$host_os_name"], [darwin*], [ # macOS weak-links to the Kerberos framework... AC_DEFINE([HAVE_GSSAPI], [1], [Is GSSAPI available?]) LIBGSSAPI="-weak_framework Kerberos" AC_MSG_CHECKING([for GSS framework]) AS_IF([test -d /System/Library/Frameworks/GSS.framework], [ AC_MSG_RESULT([yes]) LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" ], [ AC_MSG_RESULT([no]) ]) ], [sunos* | solaris*], [ # Solaris has a non-standard krb5-config, don't use it! SAVELIBS="$LIBS" AC_CHECK_LIB([gss], [gss_display_status], [ AC_DEFINE([HAVE_GSSAPI], [1], [Is GSSAPI available?]) AS_IF([test "x$KRB5CONFIG" != x], [ CFLAGS="$($KRB5CONFIG --cflags) $CFLAGS" CPPFLAGS="$($KRB5CONFIG --cflags) $CPPFLAGS" LIBGSSAPI="-lgss $($KRB5CONFIG --libs)" ], [ LIBGSSAPI="-lgss" ]) ], [ AC_MSG_ERROR([--enable-gssapi specified but GSSAPI library cannot be found.]) ]) LIBS="$SAVELIBS" ], [*], [ # Other platforms just ask for GSSAPI AS_IF([test "x$KRB5CONFIG" = x], [ AC_MSG_ERROR([--enable-gssapi specified but krb5-config cannot be found.]) ], [ AC_DEFINE([HAVE_GSSAPI], [1], [Is GSSAPI available?]) CFLAGS="$($KRB5CONFIG --cflags gssapi) $CFLAGS" CPPFLAGS="$($KRB5CONFIG --cflags gssapi) $CPPFLAGS" LIBGSSAPI="$($KRB5CONFIG --libs gssapi)" ]) ]) AC_CHECK_HEADER([krb5.h], [AC_DEFINE([HAVE_KRB5_H], [1], [Have header?])]) AS_IF([test -d /System/Library/Frameworks/GSS.framework], [ AC_CHECK_HEADER([GSS/gssapi.h], [AC_DEFINE([HAVE_GSS_GSSAPI_H], [1], [Have header?])]) AC_CHECK_HEADER([GSS/gssapi_generic.h], [AC_DEFINE([HAVE_GSS_GSSAPI_GENERIC_H], [1], [Have header?])]) AC_CHECK_HEADER([GSS/gssapi_spi.h], [AC_DEFINE([HAVE_GSS_GSSAPI_SPI_H], [1], [Have header?])]) ], [ AC_CHECK_HEADER([gssapi.h], [AC_DEFINE([HAVE_GSSAPI_H], [1], [Have header?])]) AC_CHECK_HEADER([gssapi/gssapi.h], [AC_DEFINE([HAVE_GSSAPI_GSSAPI_H], [1], [Have header?])]) ]) SAVELIBS="$LIBS" LIBS="$LIBS $LIBGSSAPI" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBGSSAPI" AC_CHECK_FUNC([__ApplePrivate_gss_acquire_cred_ex_f], [ AC_DEFINE([HAVE_GSS_ACQUIRE_CRED_EX_F], [1], [Have __ApplePrivate_gss_acquire_cred_ex_f function?]) ]) AC_MSG_CHECKING([for GSS_C_NT_HOSTBASED_SERVICE]) AS_IF([test x$ac_cv_header_gssapi_gssapi_h = xyes], [ AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ]]) ], [ AC_DEFINE([HAVE_GSS_C_NT_HOSTBASED_SERVICE], [1], [Have GSS_C_NT_HOSTBASED_SERVICE?]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ], [test x$ac_cv_header_gss_gssapi_h = xyes], [ AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ]]) ], [ AC_DEFINE([HAVE_GSS_C_NT_HOSTBASED_SERVICE], [1], [Have GSS_C_NT_HOSTBASED_SERVICE?]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ], [ AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; ]]) ], [ AC_DEFINE([HAVE_GSS_C_NT_HOSTBASED_SERVICE], [1], [Have GSS_C_NT_HOSTBASED_SERVICE?]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ]) LIBS="$SAVELIBS" ]) dnl Default GSS service name... AC_ARG_WITH([gssservicename], AS_HELP_STRING([--with-gssservicename], [set default gss service name]), [ default_gssservicename="$withval" ], [ default_gssservicename="default" ]) AS_IF([test x$default_gssservicename != xno], [ AS_IF([test "x$default_gssservicename" = "xdefault"], [ CUPS_DEFAULT_GSSSERVICENAME="host" ], [ CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" ]) ], [ CUPS_DEFAULT_GSSSERVICENAME="" ]) AC_SUBST([CUPS_DEFAULT_GSSSERVICENAME]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_GSSSERVICENAME], ["$CUPS_DEFAULT_GSSSERVICENAME"], [Default GSSServiceName value.]) cups-2.4.7/config-scripts/cups-dnssd.m40000644000175000017500000000660414502571342017646 0ustar zdohnalzdohnaldnl dnl DNS Service Discovery (aka Bonjour) stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2019 by Apple Inc. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl AC_ARG_WITH([dnssd], AS_HELP_STRING([--with-dnssd=...], [enable DNS Service Discovery support (avahi, mdnsresponder, no, yes)])) AS_IF([test x$with_dnssd = x], [ with_dnssd="yes" ], [test "$with_dnssd" != avahi -a "$with_dnssd" != mdnsresponder -a "$with_dnssd" != no -a "$with_dnssd" != yes], [ AC_MSG_ERROR([Unsupported --with-dnssd value "$with_dnssd".]) ]) AC_ARG_WITH([dnssd_libs], AS_HELP_STRING([--with-dnssd-libs], [set directory for DNS Service Discovery library]), [ LDFLAGS="-L$withval $LDFLAGS" DSOFLAGS="-L$withval $DSOFLAGS" ]) AC_ARG_WITH([dnssd_includes], AS_HELP_STRING([--with-dnssd-includes], [set directory for DNS Service Discovery header files]), [ CFLAGS="-I$withval $CFLAGS" CPPFLAGS="-I$withval $CPPFLAGS" ]) DNSSDLIBS="" DNSSD_BACKEND="" IPPFIND_BIN="" IPPFIND_MAN="" dnl First try using mDNSResponder... AS_IF([test $with_dnssd = yes -o $with_dnssd = mdnsresponder], [ AC_CHECK_HEADER([dns_sd.h], [ AS_CASE(["$host_os_name"], [darwin*], [ # Darwin and macOS... with_dnssd="mdnsresponder" AC_DEFINE([HAVE_DNSSD], [1], [Have DNS-SD support?]) AC_DEFINE([HAVE_MDNSRESPONDER], [1], [Have mDNSResponder library?]) DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" ], [*], [ # All others... AC_MSG_CHECKING([for current version of dns_sd library]) SAVELIBS="$LIBS" LIBS="$LIBS -ldns_sd" AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ int constant = kDNSServiceFlagsShareConnection; unsigned char txtRecord[100]; uint8_t valueLen; TXTRecordGetValuePtr(sizeof(txtRecord), txtRecord, "value", &valueLen); ]]) ], [ AC_MSG_RESULT([yes]) with_dnssd="mdnsresponder" AC_DEFINE([HAVE_DNSSD], [1], [Have DNS-SD support?]) AC_DEFINE([HAVE_MDNSRESPONDER], [1], [Have mDNSResponder library?]) DNSSDLIBS="-ldns_sd" DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $DNSSDLIBS" ], [ AC_MSG_RESULT([no]) AS_IF([test $with_dnssd = mdnsresponder], [ AC_MSG_ERROR([--with-dnssd=mdnsresponder specified but dns_sd library not present.]) ]) ]) LIBS="$SAVELIBS" ]) ]) ]) dnl Then try Avahi... AS_IF([test $with_dnssd = avahi -o $with_dnssd = yes], [ AS_IF([test "x$PKGCONFIG" = x], [ AS_IF([test $with_dnssd = avahi], [ AC_MSG_ERROR([Avahi requires pkg-config.]) ]) ], [ AC_MSG_CHECKING([for Avahi client]) AS_IF([$PKGCONFIG --exists avahi-client], [ AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" DNSSD_BACKEND="dnssd" IPPFIND_BIN="ippfind" IPPFIND_MAN="ippfind.1" PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES avahi-client" AC_DEFINE([HAVE_AVAHI], [1], [Have Avahi client library?]) AC_DEFINE([HAVE_DNSSD], [1], [Have DNS-SD support?]) ], [ AC_MSG_RESULT([no]) AS_IF([test $with_dnssd = avahi], [ AC_MSG_ERROR([--with-dnssd=avahi specified but Avahi client not present.]) ]) ]) ]) ]) AC_SUBST([DNSSDLIBS]) AC_SUBST([DNSSD_BACKEND]) AC_SUBST([IPPFIND_BIN]) AC_SUBST([IPPFIND_MAN]) cups-2.4.7/config-scripts/cups-directories.m40000644000175000017500000001605014502571342021043 0ustar zdohnalzdohnaldnl dnl Directory stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2017 by Apple Inc. dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information. dnl AC_PREFIX_DEFAULT(/) dnl Fix "prefix" variable if it hasn't been specified... AS_IF([test "$prefix" = "NONE"], [ prefix="/" ]) dnl Fix "exec_prefix" variable if it hasn't been specified... AS_IF([test "$exec_prefix" = "NONE"], [ AS_IF([test "$prefix" = "/"], [ exec_prefix="/usr" ], [ exec_prefix="$prefix" ]) ]) dnl Fix "bindir" variable... AS_IF([test "$bindir" = "\${exec_prefix}/bin"], [ bindir="$exec_prefix/bin" ]) AC_DEFINE_UNQUOTED([CUPS_BINDIR], ["$bindir"], [Location of CUPS user programs.]) dnl Fix "sbindir" variable... AS_IF([test "$sbindir" = "\${exec_prefix}/sbin"], [ sbindir="$exec_prefix/sbin" ]) AC_DEFINE_UNQUOTED([CUPS_SBINDIR], ["$sbindir"], [Location of CUPS admin programs.]) dnl Fix "datarootdir" variable if it hasn't been specified... AS_IF([test "$datarootdir" = "\${prefix}/share"], [ AS_IF([test "$prefix" = "/"], [ datarootdir="/usr/share" ], [ datarootdir="$prefix/share" ]) ]) dnl Fix "datadir" variable if it hasn't been specified... AS_IF([test "$datadir" = "\${prefix}/share"], [ AS_IF([test "$prefix" = "/"], [ datadir="/usr/share" ], [ datadir="$prefix/share" ]) ], [test "$datadir" = "\${datarootdir}"], [ datadir="$datarootdir" ]) dnl Fix "includedir" variable if it hasn't been specified... AS_IF([test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"], [ includedir="/usr/include" ]) AS_IF([test "$includedir" != "/usr/include"], [ PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir" ]) dnl Fix "localstatedir" variable if it hasn't been specified... AS_IF([test "$localstatedir" = "\${prefix}/var"], [ AS_IF([test "$prefix" = "/"], [ AS_IF([test "$host_os_name" = darwin], [ localstatedir="/private/var" ], [ localstatedir="/var" ]) ], [ localstatedir="$prefix/var" ]) ]) dnl Fix "sysconfdir" variable if it hasn't been specified... AS_IF([test "$sysconfdir" = "\${prefix}/etc"], [ AS_IF([test "$prefix" = "/"], [ AS_IF([test "$host_os_name" = darwin], [ sysconfdir="/private/etc" ], [ sysconfdir="/etc" ]) ], [ sysconfdir="$prefix/etc" ]) ]) dnl Fix "libdir" variable... AS_IF([test "$libdir" = "\${exec_prefix}/lib"], [ AS_CASE(["$host_os_name"], [linux*], [ AS_IF([test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot], [ libdir="$exec_prefix/lib64" ], [ libdir="$exec_prefix/lib" ]) ], [*], [ libdir="$exec_prefix/lib" ]) ]) AS_IF([test "$libdir" = "/usr/lib"], [ PKGCONFIG_LIBS="-lcups" ], [ PKGCONFIG_LIBS="-L$libdir -lcups" ]) dnl Setup default locations... # Cache data... AC_ARG_WITH([cachedir], AS_HELP_STRING([--with-cachedir], [set path for cache files]), [ cachedir="$withval" ], [ cachedir="" ]) AS_IF([test x$cachedir = x], [ AS_IF([test "x$host_os_name" = xdarwin], [ CUPS_CACHEDIR="$localstatedir/spool/cups/cache" ], [ CUPS_CACHEDIR="$localstatedir/cache/cups" ]) ], [ CUPS_CACHEDIR="$cachedir" ]) AC_DEFINE_UNQUOTED([CUPS_CACHEDIR], ["$CUPS_CACHEDIR"], [Location of cache files.]) AC_SUBST([CUPS_CACHEDIR]) # Data files CUPS_DATADIR="$datadir/cups" AC_DEFINE_UNQUOTED([CUPS_DATADIR], ["$datadir/cups"], [Location of data files.]) AC_SUBST([CUPS_DATADIR]) # Icon directory AC_ARG_WITH([icondir], AS_HELP_STRING([--with-icondir], [set path for application icons]), [ icondir="$withval" ], [ icondir="" ]) AS_IF([test "x$icondir" = x], [ ICONDIR="/usr/share/icons" ], [ ICONDIR="$icondir" ]) AC_SUBST([ICONDIR]) # Menu directory AC_ARG_WITH([menudir], AS_HELP_STRING([--with-menudir], [set path for application menus]), [ menudir="$withval" ], [ menudir="" ]) AS_IF([test "x$menudir" = x], [ MENUDIR="/usr/share/applications" ], [ MENUDIR="$menudir" ]) AC_SUBST([MENUDIR]) # Documentation files AC_ARG_WITH([docdir], AS_HELP_STRING([--with-docdir], [set path for documentation]), [ docdir="$withval" ], [ docdir="" ]) AS_IF([test x$docdir = x], [ CUPS_DOCROOT="$datadir/doc/cups" docdir="$datadir/doc/cups" ], [ CUPS_DOCROOT="$docdir" ]) AC_DEFINE_UNQUOTED([CUPS_DOCROOT], ["$docdir"], [Location of documentation files.]) AC_SUBST([CUPS_DOCROOT]) # Locale data AS_IF([test "$localedir" = "\${datarootdir}/locale"], [ AS_CASE(["$host_os_name"], [linux* | gnu* | *bsd* | darwin* | solaris*], [ CUPS_LOCALEDIR="$datarootdir/locale" ], [*], [ # This is the standard System V location... CUPS_LOCALEDIR="$exec_prefix/lib/locale" ]) ], [ CUPS_LOCALEDIR="$localedir" ]) AC_DEFINE_UNQUOTED([CUPS_LOCALEDIR], ["$CUPS_LOCALEDIR"], [Location of localization files.]) AC_SUBST([CUPS_LOCALEDIR]) # cups.pc file... AC_ARG_WITH([pkgconfpath], AS_HELP_STRING([--with-pkgconfpath], [set path for cups.pc file]), [ pkgconfpath="$withval" ], [ pkgconfpath="" ]) AS_IF([test x$pkgconfpath = x], [ CUPS_PKGCONFPATH="$exec_prefix/lib/pkgconfig" ], [ CUPS_PKGCONFPATH="$pkgconfpath" ]) AC_DEFINE_UNQUOTED([CUPS_PKGCONFPATH], ["$CUPS_PKGCONFPATH"], [Location of cups.pc file.]) AC_SUBST([CUPS_PKGCONFPATH]) # Log files... AC_ARG_WITH([logdir], AS_HELP_STRING([--with-logdir], [set path for log files]), [ logdir="$withval" ], [ logdir="" ]) AS_IF([test x$logdir = x], [ CUPS_LOGDIR="$localstatedir/log/cups" ], [ CUPS_LOGDIR="$logdir" ]) AC_DEFINE_UNQUOTED([CUPS_LOGDIR], ["$CUPS_LOGDIR"], [Location of log files.]) AC_SUBST([CUPS_LOGDIR]) # Longer-term spool data CUPS_REQUESTS="$localstatedir/spool/cups" AC_DEFINE_UNQUOTED([CUPS_REQUESTS], ["$localstatedir/spool/cups"], [Location of spool directory.]) AC_SUBST([CUPS_REQUESTS]) # Server executables... AS_CASE(["$host_os_name"], [*-gnu], [ # GNUs INSTALL_SYSV="install-sysv" CUPS_SERVERBIN="$exec_prefix/lib/cups" ], [*bsd* | darwin*], [ # *BSD and Darwin (macOS) INSTALL_SYSV="" CUPS_SERVERBIN="$exec_prefix/libexec/cups" ], [*], [ # All others INSTALL_SYSV="install-sysv" CUPS_SERVERBIN="$exec_prefix/lib/cups" ]) AC_DEFINE_UNQUOTED([CUPS_SERVERBIN], ["$CUPS_SERVERBIN"], [Location of server programs.]) AC_SUBST([CUPS_SERVERBIN]) AC_SUBST([INSTALL_SYSV]) # Configuration files CUPS_SERVERROOT="$sysconfdir/cups" AC_DEFINE_UNQUOTED([CUPS_SERVERROOT], ["$sysconfdir/cups"], [Location of server configuration files.]) AC_SUBST([CUPS_SERVERROOT]) # Transient run-time state AC_ARG_WITH([rundir], AS_HELP_STRING([--with-rundir], [set transient run-time state directory]), [ CUPS_STATEDIR="$withval" ], [ AS_CASE(["$host_os_name"], [darwin*], [ # Darwin (macOS) CUPS_STATEDIR="$CUPS_SERVERROOT" ], [sunos* | solaris*], [ AS_IF([test -d /system/volatile], [ CUPS_STATEDIR="/system/volatile/cups" ], [ CUPS_STATEDIR="$localstatedir/run/cups" ]) ], [*], [ # All others CUPS_STATEDIR="$localstatedir/run/cups" ]) ]) AC_DEFINE_UNQUOTED([CUPS_STATEDIR], ["$CUPS_STATEDIR"], [Location of transient state files.]) AC_SUBST([CUPS_STATEDIR]) cups-2.4.7/config-scripts/cups-defaults.m40000644000175000017500000003425014502571342020340 0ustar zdohnalzdohnaldnl dnl Default cupsd configuration settings for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2018 by Apple Inc. dnl Copyright © 2006-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Set a default systemd WantedBy directive SYSTEMD_WANTED_BY="printer.target" dnl Default languages... LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')" AC_ARG_WITH([languages], AS_HELP_STRING([--with-languages], [set installed languages, default=all]), [ AS_CASE(["$withval"], [none | no], [ LANGUAGES="" ], [all], [ ], [*], [ LANGUAGES="$withval" ]) ]) AC_SUBST([LANGUAGES]) dnl macOS bundle-based localization support AC_ARG_WITH([bundledir], AS_HELP_STRING([--with-bundledir], [set localization bundle directory]), [ CUPS_BUNDLEDIR="$withval" ], [ AS_IF([test "x$host_os_name" = xdarwin -a $host_os_version -ge 100], [ CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" LANGUAGES="" ], [ CUPS_BUNDLEDIR="" ]) ]) AC_SUBST([CUPS_BUNDLEDIR]) AS_IF([test "x$CUPS_BUNDLEDIR" != x], [ AC_DEFINE_UNQUOTED([CUPS_BUNDLEDIR], ["$CUPS_BUNDLEDIR"], [macOS bundle directory.]) ]) AC_ARG_WITH([bundlelang], AS_HELP_STRING([--with-bundlelang], [set localization bundle base language (English or en)]), [ cups_bundlelang="$withval" ], [ AS_IF([test $host_os_version -ge 190], [ cups_bundlelang="en" ], [ cups_bundlelang="English" ]) ]) AS_IF([test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x], [ CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj" ], [ CUPS_RESOURCEDIR="" ]) AC_SUBST([CUPS_RESOURCEDIR]) dnl Default executable file permissions AC_ARG_WITH([exe_file_perm], AS_HELP_STRING([--with-exe-file-perm], [set default executable permissions value, default=0755]), [ CUPS_EXE_FILE_PERM="$withval" ], [ CUPS_EXE_FILE_PERM="755" ]) AC_SUBST([CUPS_EXE_FILE_PERM]) dnl Default ConfigFilePerm AC_ARG_WITH([config_file_perm], AS_HELP_STRING([--with-config-file-perm], [set default ConfigFilePerm value, default=0640]), [ CUPS_CONFIG_FILE_PERM="$withval" ], [ CUPS_CONFIG_FILE_PERM="640" ]) AC_SUBST([CUPS_CONFIG_FILE_PERM]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_CONFIG_FILE_PERM], [0$CUPS_CONFIG_FILE_PERM], [Default ConfigFilePerm value.]) dnl Default permissions for cupsd AC_ARG_WITH([cupsd_file_perm], AS_HELP_STRING([--with-cupsd-file-perm], [set default cupsd permissions, default=0700]), [ CUPS_CUPSD_FILE_PERM="$withval" ], [ CUPS_CUPSD_FILE_PERM="700" ]) AC_SUBST([CUPS_CUPSD_FILE_PERM]) dnl Default LogFilePerm AC_ARG_WITH([log_file_perm], AS_HELP_STRING([--with-log-file-perm], [set default LogFilePerm value, default=0644]), [ CUPS_LOG_FILE_PERM="$withval" ], [ CUPS_LOG_FILE_PERM="644" ]) AC_SUBST([CUPS_LOG_FILE_PERM]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_LOG_FILE_PERM], [0$CUPS_LOG_FILE_PERM], [Default LogFilePerm value.]) dnl Default MaxLogSize AC_ARG_WITH([max_log_size], AS_HELP_STRING([--with-max-log-size], [set default MaxLogSize value, default=1m]), [ CUPS_MAX_LOG_SIZE="$withval" ], [ CUPS_MAX_LOG_SIZE="1m" ]) AC_SUBST([CUPS_MAX_LOG_SIZE]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_MAX_LOG_SIZE], ["$CUPS_MAX_LOG_SIZE"], [Default MaxLogSize value.]) dnl Default ErrorPolicy AC_ARG_WITH([error_policy], AS_HELP_STRING([--with-error-policy], [set default ErrorPolicy value, default=stop-printer]), [ CUPS_ERROR_POLICY="$withval" ], [ CUPS_ERROR_POLICY="stop-printer" ]) AC_SUBST([CUPS_ERROR_POLICY]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_ERROR_POLICY], ["$CUPS_ERROR_POLICY"], [Default ErrorPolicy value.]) dnl Default FatalErrors AC_ARG_WITH([fatal_errors], AS_HELP_STRING([--with-fatal-errors], [set default FatalErrors value, default=config]), [ CUPS_FATAL_ERRORS="$withval" ], [ CUPS_FATAL_ERRORS="config" ]) AC_SUBST([CUPS_FATAL_ERRORS]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_FATAL_ERRORS], ["$CUPS_FATAL_ERRORS"], [Default FatalErrors value.]) dnl Default LogLevel AC_ARG_WITH([log_level], AS_HELP_STRING([--with-log-level], [set default LogLevel value, default=warn]), [ CUPS_LOG_LEVEL="$withval" ], [ CUPS_LOG_LEVEL="warn" ]) AC_SUBST([CUPS_LOG_LEVEL]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_LOG_LEVEL], ["$CUPS_LOG_LEVEL"], [Default LogLevel value.]) dnl Default AccessLogLevel AC_ARG_WITH(access_log_level, [ --with-access-log-level set default AccessLogLevel value, default=none], CUPS_ACCESS_LOG_LEVEL="$withval", CUPS_ACCESS_LOG_LEVEL="none") AC_SUBST(CUPS_ACCESS_LOG_LEVEL) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_ACCESS_LOG_LEVEL, "$CUPS_ACCESS_LOG_LEVEL") dnl Default PageLogFormat AC_ARG_ENABLE([page_logging], AS_HELP_STRING([--enable-page-logging], [enable page_log by default])) AS_IF([test "x$enable_page_logging" = xyes], [ CUPS_PAGE_LOG_FORMAT="" ], [ CUPS_PAGE_LOG_FORMAT="PageLogFormat" ]) AC_SUBST([CUPS_PAGE_LOG_FORMAT]) dnl Default SyncOnClose AC_ARG_ENABLE([sync_on_close], AS_HELP_STRING([--enable-sync-on-close], [enable SyncOnClose (off by default)])) AS_IF([test "x$enable_sync_on_close" = xyes], [ CUPS_SYNC_ON_CLOSE="Yes" AC_DEFINE([CUPS_DEFAULT_SYNC_ON_CLOSE], [1], [Enable SyncOnClose by default?]) ], [ CUPS_SYNC_ON_CLOSE="No" ]) AC_SUBST([CUPS_SYNC_ON_CLOSE]) dnl Default Browsing AC_ARG_ENABLE([browsing], AS_HELP_STRING([--disable-browsing], [disable Browsing by default])) AS_IF([test "x$enable_browsing" = xno], [ CUPS_BROWSING="No" AC_DEFINE_UNQUOTED([CUPS_DEFAULT_BROWSING], [0], [Enable Browsing by default?]) ], [ CUPS_BROWSING="Yes" AC_DEFINE_UNQUOTED([CUPS_DEFAULT_BROWSING], [1], [Enable Browsing by default?]) ]) AC_SUBST([CUPS_BROWSING]) dnl Default BrowseLocalProtocols AC_ARG_WITH([local_protocols], AS_HELP_STRING([--with-local-protocols], [set default BrowseLocalProtocols, default=""]), [ default_local_protocols="$withval" ], [ default_local_protocols="default" ]) AS_IF([test x$with_local_protocols != xno], [ AS_IF([test "x$default_local_protocols" = "xdefault"], [ AS_IF([test "x$DNSSD_BACKEND" != "x"], [ CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" ], [ CUPS_BROWSE_LOCAL_PROTOCOLS="" ]) ], [ CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" ]) ], [ CUPS_BROWSE_LOCAL_PROTOCOLS="" ]) AC_SUBST([CUPS_BROWSE_LOCAL_PROTOCOLS]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS], ["$CUPS_BROWSE_LOCAL_PROTOCOLS"], [Default BrowseLocalProtocols value.]) dnl Default DefaultShared AC_ARG_ENABLE([default_shared], AS_HELP_STRING([--disable-default-shared], [disable DefaultShared by default])) AS_IF([test "x$enable_default_shared" = xno], [ CUPS_DEFAULT_SHARED="No" AC_DEFINE_UNQUOTED([CUPS_DEFAULT_DEFAULT_SHARED], [0], [Default DefaultShared value.]) ], [ CUPS_DEFAULT_SHARED="Yes" AC_DEFINE_UNQUOTED([CUPS_DEFAULT_DEFAULT_SHARED], [1], [Default DefaultShared value.]) ]) AC_SUBST([CUPS_DEFAULT_SHARED]) dnl Determine the correct username and group for this OS... AC_ARG_WITH([cups_user], AS_HELP_STRING([--with-cups-user], [set default user for CUPS]), [ CUPS_USER="$withval" ], [ AC_MSG_CHECKING([for default print user]) AS_IF([test x$host_os_name = xdarwin], [ AS_IF([test "x$(id -u _lp 2>/dev/null)" = x], [ CUPS_USER="lp" ], [ CUPS_USER="_lp" ]) AC_MSG_RESULT([$CUPS_USER]) ], [test -f /etc/passwd], [ CUPS_USER="" for user in lp lpd guest daemon nobody; do AS_IF([test "$(grep \^${user}: /etc/passwd)" != ""], [ CUPS_USER="$user" AC_MSG_RESULT([$user]) break ]) done AS_IF([test x$CUPS_USER = x], [ CUPS_USER="nobody" AC_MSG_RESULT([not found, using "$CUPS_USER"]) ]) ], [ CUPS_USER="nobody" AC_MSG_RESULT([no password file, using "$CUPS_USER"]) ]) ]) AS_IF([test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"], [ AC_MSG_ERROR([The default user for CUPS cannot be root.]) ]) AC_ARG_WITH([cups_group], AS_HELP_STRING([--with-cups-group], [set default group for CUPS]), [ CUPS_GROUP="$withval" ], [ AC_MSG_CHECKING([for default print group]) AS_IF([test x$host_os_name = xdarwin], [ AS_IF([test "x$(id -g _lp 2>/dev/null)" = x], [ CUPS_GROUP="lp" ], [ CUPS_GROUP="_lp" ]) AC_MSG_RESULT([$CUPS_GROUP]) ], [test -f /etc/group], [ GROUP_LIST="_lp lp nobody" CUPS_GROUP="" for group in $GROUP_LIST; do AS_IF([test "$(grep \^${group}: /etc/group)" != ""], [ CUPS_GROUP="$group" AC_MSG_RESULT([$group]) break ]) done AS_IF([test x$CUPS_GROUP = x], [ CUPS_GROUP="nobody" AC_MSG_RESULT([not found, using "$CUPS_GROUP"]) ]) ], [ CUPS_GROUP="nobody" AC_MSG_RESULT([no group file, using "$CUPS_GROUP"]) ]) ]) AS_IF([test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"], [ AC_MSG_ERROR([The default group for CUPS cannot be root.]) ]) AC_ARG_WITH([system_groups], AS_HELP_STRING([--with-system-groups], [set default system groups for CUPS]), [ CUPS_SYSTEM_GROUPS="$withval" ], [ AS_IF([test x$host_os_name = xdarwin], [ CUPS_SYSTEM_GROUPS="admin" ], [ AC_MSG_CHECKING([for default system groups]) AS_IF([test -f /etc/group], [ CUPS_SYSTEM_GROUPS="" GROUP_LIST="lpadmin sys system root wheel" for group in $GROUP_LIST; do AS_IF([test "$(grep \^${group}: /etc/group)" != ""], [ AS_IF([test "x$CUPS_SYSTEM_GROUPS" = x], [ CUPS_SYSTEM_GROUPS="$group" ], [ CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" ]) ]) done AS_IF([test "x$CUPS_SYSTEM_GROUPS" = x], [ CUPS_SYSTEM_GROUPS="$GROUP_LIST" AC_MSG_RESULT([no groups found, using "$CUPS_SYSTEM_GROUPS"]) ], [ AC_MSG_RESULT(["$CUPS_SYSTEM_GROUPS"]) ]) ], [ CUPS_SYSTEM_GROUPS="$GROUP_LIST" AC_MSG_RESULT([no group file, using "$CUPS_SYSTEM_GROUPS"]) ]) ]) ]) CUPS_PRIMARY_SYSTEM_GROUP="$(echo $CUPS_SYSTEM_GROUPS | awk '{print $1}')" for group in $CUPS_SYSTEM_GROUPS; do AS_IF([test "x$CUPS_GROUP" = "x$group"], [ AC_MSG_ERROR([The default system groups cannot contain the default CUPS group.]) ]) done AC_SUBST([CUPS_USER]) AC_SUBST([CUPS_GROUP]) AC_SUBST([CUPS_SYSTEM_GROUPS]) AC_SUBST([CUPS_PRIMARY_SYSTEM_GROUP]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_USER], ["$CUPS_USER"], [Default User value.]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_GROUP], ["$CUPS_GROUP"], [Default Group value.]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_SYSTEM_GROUPS], ["$CUPS_SYSTEM_GROUPS"], [Default SystemGroup value(s).]) dnl Default printcap file... AC_ARG_WITH([printcap], AS_HELP_STRING([--with-printcap], [set default printcap file]), [ default_printcap="$withval" ], [ default_printcap="default" ]) AS_IF([test x$default_printcap != xno], [ AS_IF([test "x$default_printcap" = "xdefault"], [ AS_CASE([$host_os_name], [darwin*], [ CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" ], [sunos* | solaris*], [ CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" ], [*], [ CUPS_DEFAULT_PRINTCAP="/etc/printcap" ]) ], [ CUPS_DEFAULT_PRINTCAP="$default_printcap" ]) ], [ CUPS_DEFAULT_PRINTCAP="" ]) AC_SUBST([CUPS_DEFAULT_PRINTCAP]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_PRINTCAP], ["$CUPS_DEFAULT_PRINTCAP"], [Default Printcap value.]) dnl Default MaxCopies value... AC_ARG_WITH([max_copies], AS_HELP_STRING([--with-max-copies], [set default max copies value, default=9999]), [ CUPS_MAX_COPIES="$withval" ], [ CUPS_MAX_COPIES="9999" ]) AC_SUBST([CUPS_MAX_COPIES]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_MAX_COPIES], [$CUPS_MAX_COPIES], [Default MaxCopies value.]) dnl Default raw printing state AC_ARG_ENABLE([raw_printing], AS_HELP_STRING([--disable-raw-printing], [do not allow raw printing by default])) AS_IF([test "x$enable_raw_printing" != xno], [ DEFAULT_RAW_PRINTING="" ], [ DEFAULT_RAW_PRINTING="#" ]) AC_SUBST([DEFAULT_RAW_PRINTING]) dnl Default SNMP options... AC_ARG_WITH([snmp_address], AS_HELP_STRING([--with-snmp-address], [set SNMP query address, default=auto]), [ AS_IF([test "x$withval" = x], [ CUPS_SNMP_ADDRESS="" ], [ CUPS_SNMP_ADDRESS="Address $withval" ]) ], [ AS_IF([test "x$host_os_name" = xdarwin], [ CUPS_SNMP_ADDRESS="" ], [ CUPS_SNMP_ADDRESS="Address @LOCAL" ]) ]) AC_ARG_WITH([snmp_community], AS_HELP_STRING([--with-snmp-community], [set SNMP community, default=public]), [ CUPS_SNMP_COMMUNITY="Community $withval" ], [ CUPS_SNMP_COMMUNITY="Community public" ]) AC_SUBST([CUPS_SNMP_ADDRESS]) AC_SUBST([CUPS_SNMP_COMMUNITY]) dnl New default port definition for IPP... AC_ARG_WITH([ipp_port], AS_HELP_STRING([--with-ipp-port], [set port number for IPP, default=631]), [ DEFAULT_IPP_PORT="$withval" ], [ DEFAULT_IPP_PORT="631" ]) AC_SUBST([DEFAULT_IPP_PORT]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_IPP_PORT], [$DEFAULT_IPP_PORT], [Default IPP port number.]) dnl Web interface... AC_ARG_ENABLE([webif], AS_HELP_STRING([--enable-webif], [enable the web interface by default, default=no for macOS])) AS_CASE(["x$enable_webif"], [xno], [ CUPS_WEBIF=No CUPS_DEFAULT_WEBIF=0 ], [xyes], [ CUPS_WEBIF=Yes CUPS_DEFAULT_WEBIF=1 ], [*], [ AS_IF([test $host_os_name = darwin], [ CUPS_WEBIF=No CUPS_DEFAULT_WEBIF=0 ], [ CUPS_WEBIF=Yes CUPS_DEFAULT_WEBIF=1 ]) ]) AC_SUBST([CUPS_WEBIF]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_WEBIF], [$CUPS_DEFAULT_WEBIF], [Default WebInterface value.]) AS_IF([test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes], [ SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target"], [ ]) AC_SUBST([SYSTEMD_WANTED_BY]) dnl Set default value of IdleExitTimeout AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [ AS_IF([test "x$withval" = "xno"], [ EXIT_TIMEOUT=0 ], [ EXIT_TIMEOUT=$withval ]) ], [ EXIT_TIMEOUT=60 ]) AC_SUBST([EXIT_TIMEOUT]) dnl set TimeoutStartSec for cups.service dnl - if used as --without-*, it sets TimeoutStartSec to infinity AC_ARG_WITH([systemd-timeoutstartsec], AS_HELP_STRING([--with-systemd-timeoutstartsec], [set TimeoutStartSec value in cups.service, default=default value in systemd]), [ AS_IF([ test "x$withval" = "xno" ], [ TIMEOUTSTARTSEC="TimeoutStartSec=infinity" ], [ TIMEOUTSTARTSEC="TimeoutStartSec=$withval" ]) ], [ TIMEOUTSTARTSEC="" ]) AC_SUBST([TIMEOUTSTARTSEC]) cups-2.4.7/config-scripts/cups-container.m40000644000175000017500000000443514502571342020515 0ustar zdohnalzdohnaldnl dnl Support for packaging CUPS in different kinds of containers. dnl dnl Copyright © 2021 by OpenPrinting dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Specify a container mode CONTAINER="none" AC_ARG_WITH([container], AS_HELP_STRING([--with-container=...], [configure to use in container (none, snap)]), [ CONTAINER="$withval" ]) AS_CASE(["$CONTAINER"], [none], [ # No container in use ], [snap], [ # Building as a snap AC_DEFINE([CUPS_SNAP], [1], [Building as a snap (snapcraft.io)?]) ], [*], [ AC_MSG_ERROR([Unsupported container '$CONTAINER' specified.]) ]) dnl Supporting libraries for different containers... APPARMORLIBS="" SNAPDGLIBLIBS="" AC_SUBST([APPARMORLIBS]) AC_SUBST([SNAPDGLIBLIBS]) AS_IF([test "x$PKGCONFIG" != x], [ AC_MSG_CHECKING([for libapparmor]) AS_IF([$PKGCONFIG --exists libapparmor], [ AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS $($PKGCONFIG --cflags libapparmor)" APPARMORLIBS="$($PKGCONFIG --libs libapparmor)" AC_DEFINE([HAVE_LIBAPPARMOR], [1], [Have the apparmor library?]) AC_MSG_CHECKING([for libsnapd-glib-2]) AS_IF([$PKGCONFIG --exists snapd-glib-2 glib-2.0 gio-2.0], [ AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib-2 glib-2.0 gio-2.0)" SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib-2 glib-2.0 gio-2.0)" AC_DEFINE([HAVE_LIBSNAPDGLIB], [1], [Have the snapd-glib-2 library?]) SAVELIBS="$LIBS" LIBS="$SNAPDGLIBLIBS $LIBS" AC_CHECK_FUNC([snapd_client_run_snapctl2_sync], [ AC_DEFINE([HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC], [1], [Have the snapd_client_run_snapctl2_sync function?]) ]) LIBS="$SAVELIBS" ], [ AC_MSG_CHECKING([for libsnapd-glib]) AS_IF([$PKGCONFIG --exists snapd-glib glib-2.0 gio-2.0], [ AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib glib-2.0 gio-2.0)" SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib glib-2.0 gio-2.0)" AC_DEFINE([HAVE_LIBSNAPDGLIB], [1], [Have the snapd-glib library?]) SAVELIBS="$LIBS" LIBS="$SNAPDGLIBLIBS $LIBS" AC_CHECK_FUNC([snapd_client_run_snapctl2_sync], [ AC_DEFINE([HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC], [1], [Have the snapd_client_run_snapctl2_sync function?]) ]) LIBS="$SAVELIBS" ], [ AC_MSG_RESULT([no]) ]) ]) ]) ]) cups-2.4.7/config-scripts/cups-compiler.m40000644000175000017500000001616314502571342020346 0ustar zdohnalzdohnaldnl dnl Compiler tests for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2018 by Apple Inc. dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Clear the debugging and non-shared library options unless the user asks dnl for them... INSTALL_STRIP="" AC_SUBST(INSTALL_STRIP) AC_ARG_WITH([optim], AS_HELP_STRING([--with-optim], [set optimization flags]), [ OPTIM="$withval" ], [ OPTIM="" ]) AC_SUBST([OPTIM]) AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [build with debugging symbols])) AC_ARG_ENABLE([debug_guards], AS_HELP_STRING([--enable-debug-guards], [build with memory allocation guards])) AC_ARG_ENABLE([debug_printfs], AS_HELP_STRING([--enable-debug-printfs], [build with CUPS_DEBUG_LOG support])) AC_ARG_ENABLE([maintainer], AS_HELP_STRING([--enable-maintainer], [turn on maintainer mode (warnings as errors)])) AC_ARG_ENABLE([unit_tests], AS_HELP_STRING([--enable-unit-tests], [build and run unit tests])) dnl For debugging, keep symbols, otherwise strip them... AS_IF([test x$enable_debug = xyes -a "x$OPTIM" = x], [ OPTIM="-g" ], [ INSTALL_STRIP="-s" ]) dnl Debug printfs can slow things down, so provide a separate option for that AS_IF([test x$enable_debug_printfs = xyes], [ CFLAGS="$CFLAGS -DDEBUG" CXXFLAGS="$CXXFLAGS -DDEBUG" ]) dnl Debug guards use an extra 4 bytes for some structures like strings in the dnl string pool, so provide a separate option for that AS_IF([test x$enable_debug_guards = xyes], [ CFLAGS="$CFLAGS -DDEBUG_GUARDS" CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" ]) dnl Unit tests take up time during a compile... AS_IF([test x$enable_unit_tests = xyes], [ AS_IF([test "$build" != "$host"], [ AC_MSG_ERROR([Sorry, cannot build unit tests when cross-compiling.]) ]) UNITTESTS="unittests" ], [ UNITTESTS="" ]) AC_SUBST([UNITTESTS]) dnl Setup general architecture flags... AC_ARG_WITH([archflags], AS_HELP_STRING([--with-archflags], [set default architecture flags])) AC_ARG_WITH([ldarchflags], AS_HELP_STRING([--with-ldarchflags], [set program architecture flags])) AS_IF([test -z "$with_archflags"], [ ARCHFLAGS="" ], [ ARCHFLAGS="$with_archflags" ]) AS_IF([test -z "$with_ldarchflags"], [ LDARCHFLAGS="$ARCHFLAGS" ], [ LDARCHFLAGS="$with_ldarchflags" ]) AC_SUBST([ARCHFLAGS]) AC_SUBST([LDARCHFLAGS]) dnl Read-only data/program support on Linux... AC_ARG_ENABLE([relro], AS_HELP_STRING([--enable-relro], [build with the relro option])) dnl Clang/GCC address sanitizer... AC_ARG_ENABLE([sanitizer], AS_HELP_STRING([--enable-sanitizer], [build with AddressSanitizer])) dnl Update compiler options... CXXLIBS="${CXXLIBS:=}" AC_SUBST([CXXLIBS]) PIEFLAGS="" AC_SUBST([PIEFLAGS]) RELROFLAGS="" AC_SUBST([RELROFLAGS]) WARNING_OPTIONS="" AC_SUBST([WARNING_OPTIONS]) AS_IF([test -n "$GCC"], [ # Add GCC/Clang compiler options... # Address sanitizer is a useful tool to use when developing/debugging # code but adds about 2x overhead... AS_IF([test x$enable_sanitizer = xyes], [ # Use -fsanitize=address with debugging... OPTIM="$OPTIM -g -fsanitize=address" ], [echo "$CXXFLAGS $CFLAGS" | grep -q _FORTIFY_SOURCE], [ # Don't add _FORTIFY_SOURCE if it is already there ], [ # Otherwise use the Fortify enhancements to catch any unbounded # string operations... CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3" CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=3" ]) # Default optimization options... AS_IF([test -z "$OPTIM"], [ # Default to optimize-for-size and debug OPTIM="-Os -g" ]) # Generate position-independent code as needed... AS_IF([test $PICFLAG = 1], [ OPTIM="-fPIC $OPTIM" ]) # The -fstack-protector-strong and -fstack-protector options are available # with some versions of GCC and adds "stack canaries" which detect # when the return address has been overwritten, preventing many types of exploit attacks. # First check for -fstack-protector-strong, then for -fstack-protector... AC_MSG_CHECKING([whether compiler supports -fstack-protector-strong]) OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector-strong" AC_LINK_IFELSE([AC_LANG_PROGRAM()], [ OPTIM="$OPTIM -fstack-protector-strong" AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) AC_MSG_CHECKING([whether compiler supports -fstack-protector]) CFLAGS="$OLDCFLAGS -fstack-protector" AC_LINK_IFELSE([AC_LANG_PROGRAM()], [ OPTIM="$OPTIM -fstack-protector" AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ]) CFLAGS="$OLDCFLAGS" AS_IF([test "x$LSB_BUILD" != xy], [ # The -fPIE option is available with some versions of GCC and # adds randomization of addresses, which avoids another class of # exploits that depend on a fixed address for common functions. # # Not available to LSB binaries... AC_MSG_CHECKING([whether compiler supports -fPIE]) OLDCFLAGS="$CFLAGS" AS_CASE(["$host_os_name"], [darwin*], [ CFLAGS="$CFLAGS -fPIE -Wl,-pie" AC_LINK_IFELSE([AC_LANG_PROGRAM()], [ PIEFLAGS="-fPIE -Wl,-pie" AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ], [*], [ CFLAGS="$CFLAGS -fPIE -pie" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [ PIEFLAGS="-fPIE -pie" AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) ]) CFLAGS="$OLDCFLAGS" ]) dnl Show all standard warnings + unused variables when compiling... WARNING_OPTIONS="-Wall -Wunused" dnl Drop some not-useful/unreliable warnings... for warning in char-subscripts deprecated-declarations format-truncation format-y2k switch unused-result; do AC_MSG_CHECKING([whether compiler supports -Wno-$warning]) OLDCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wno-$warning -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [ AC_MSG_RESULT(yes) WARNING_OPTIONS="$WARNING_OPTIONS -Wno-$warning" ], [ AC_MSG_RESULT(no) ]) CFLAGS="$OLDCFLAGS" done dnl Maintainer mode enables -Werror... AS_IF([test x$enable_maintainer = xyes], [ WARNING_OPTIONS="$WARNING_OPTIONS -Werror" ]) ], [ # Add vendor-specific compiler options... AS_CASE([$host_os_name], [sunos* | solaris*], [ # Solaris AS_IF([test -z "$OPTIM"], [ OPTIM="-xO2" ]) AS_IF([test $PICFLAG = 1], [ OPTIM="-KPIC $OPTIM" ]) ], [*], [ # Running some other operating system; inform the user # they should contribute the necessary options via # GitHub... echo "Building CUPS with default compiler optimizations." echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler" echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment" echo "variables before running configure." echo "" echo "https://github.com/openprinting/cups" ]) ]) # Add general compiler options per platform... AS_CASE([$host_os_name], [linux*], [ # glibc 2.8 and higher breaks peer credentials unless you # define _GNU_SOURCE... OPTIM="$OPTIM -D_GNU_SOURCE" # The -z relro option is provided by the Linux linker command to # make relocatable data read-only. AS_IF([test x$enable_relro = xyes], [ RELROFLAGS="-Wl,-z,relro,-z,now" ]) ]) cups-2.4.7/config-scripts/cups-common.m40000644000175000017500000003575714502571342020036 0ustar zdohnalzdohnaldnl dnl Common configuration stuff for CUPS. dnl dnl Copyright © 2021-2023 by OpenPrinting. dnl Copyright © 2007-2019 by Apple Inc. dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. dnl dnl Licensed under Apache License v2.0. See the file "LICENSE" for more dnl information. dnl dnl Set the name of the config header file... AC_CONFIG_HEADERS([config.h]) dnl Version number information... CUPS_VERSION="AC_PACKAGE_VERSION" CUPS_API_VERSION="$(echo AC_PACKAGE_VERSION | awk -F. '{print $1 "." $2}')" CUPS_BUILD="cups-$CUPS_VERSION" AC_ARG_WITH([cups_build], AS_HELP_STRING([--with-cups-build], [set "pkg-config --variable=build" string]), [ CUPS_BUILD="$withval" ]) AC_SUBST([CUPS_API_VERSION]) AC_SUBST([CUPS_BUILD]) AC_SUBST([CUPS_VERSION]) AC_DEFINE_UNQUOTED([CUPS_SVERSION], ["AC_PACKAGE_NAME v$CUPS_VERSION"], [Version number]) AC_DEFINE_UNQUOTED([CUPS_MINIMAL], ["AC_PACKAGE_NAME/$CUPS_VERSION"], [Version for HTTP headers]) dnl Default compiler flags... CFLAGS="${CFLAGS:=}" CPPFLAGS="${CPPFLAGS:=}" CXXFLAGS="${CXXFLAGS:=}" LDFLAGS="${LDFLAGS:=}" dnl Checks for programs... AC_PROG_AWK AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_RANLIB AC_PATH_PROG([AR], [ar]) AC_PATH_PROG([CHMOD], [chmod]) AC_PATH_PROG([GZIPPROG], [gzip]) AC_MSG_CHECKING([for install-sh script]) INSTALL="`pwd`/install-sh" AC_SUBST([INSTALL]) AC_MSG_RESULT([using $INSTALL]) AC_PATH_PROG([LD], [ld]) AC_PATH_PROG([LN], [ln]) AC_PATH_PROG([MKDIR], [mkdir]) AC_PATH_PROG([MV], [mv]) AC_PATH_PROG([RM], [rm]) AC_PATH_PROG([RMDIR], [rmdir]) AC_PATH_PROG([SED], [sed]) AC_PATH_PROG([XDGOPEN], [xdg-open]) AS_IF([test "x$XDGOPEN" = x], [ CUPS_HTMLVIEW="htmlview" ], [ CUPS_HTMLVIEW="$XDGOPEN" ]) AC_SUBST([CUPS_HTMLVIEW]) AS_IF([test "x$AR" = x], [ AC_MSG_ERROR([Unable to find required library archive command.]) ]) AS_IF([test "x$CC" = x], [ AC_MSG_ERROR([Unable to find required C compiler command.]) ]) dnl Static library option... INSTALLSTATIC="" AC_ARG_ENABLE([static], AS_HELP_STRING([--enable-static], [install static libraries])) AS_IF([test x$enable_static = xyes], [ AC_MSG_NOTICE([Installing static libraries...]) INSTALLSTATIC="installstatic" ]) AC_SUBST([INSTALLSTATIC]) dnl Check for pkg-config, which is used for some other tests later on... AC_PATH_TOOL([PKGCONFIG], [pkg-config]) PKGCONFIG_CFLAGS="" PKGCONFIG_LIBS="" PKGCONFIG_LIBS_STATIC="" PKGCONFIG_REQUIRES="" AC_SUBST([PKGCONFIG_CFLAGS]) AC_SUBST([PKGCONFIG_LIBS]) AC_SUBST([PKGCONFIG_LIBS_STATIC]) AC_SUBST([PKGCONFIG_REQUIRES]) dnl Check for libraries... AC_SEARCH_LIBS([abs], [m], [AC_DEFINE(HAVE_ABS)]) AC_SEARCH_LIBS([crypt], [crypt]) AC_SEARCH_LIBS([fmod], [m]) AC_SEARCH_LIBS([getspent], [sec gen]) LIBMALLOC="" AC_ARG_ENABLE([mallinfo], AS_HELP_STRING([--enable-mallinfo], [build with malloc debug logging])) AS_IF([test x$enable_mallinfo = xyes], [ SAVELIBS="$LIBS" LIBS="" AC_SEARCH_LIBS([mallinfo], [malloc], [AC_DEFINE(HAVE_MALLINFO)]) LIBMALLOC="$LIBS" LIBS="$SAVELIBS" ]) AC_SUBST([LIBMALLOC]) dnl Check for libpaper support... AC_ARG_ENABLE([libpaper], AS_HELP_STRING([--enable-libpaper], [build with libpaper support])) AS_IF([test x$enable_libpaper = xyes], [ AC_CHECK_LIB([paper], [systempapername], [ AC_DEFINE([HAVE_LIBPAPER], [1], [Have paper library?]) LIBPAPER="-lpaper" ], [ LIBPAPER="" ]) ], [ LIBPAPER="" ]) AC_SUBST([LIBPAPER]) dnl Checks for header files. AC_CHECK_HEADER([crypt.h], AC_DEFINE([HAVE_CRYPT_H], [1], [Have header?])) AC_CHECK_HEADER([langinfo.h], AC_DEFINE([HAVE_LANGINFO_H], [1], [Have header?])) AC_CHECK_HEADER([malloc.h], AC_DEFINE([HAVE_MALLOC_H], [1], [Have header?])) AC_CHECK_HEADER([shadow.h], AC_DEFINE([HAVE_SHADOW_H], [1], [Have header?])) AC_CHECK_HEADER([stdint.h], AC_DEFINE([HAVE_STDINT_H], [1], [Have header?])) AC_CHECK_HEADER([sys/ioctl.h], AC_DEFINE([HAVE_SYS_IOCTL_H], [1], [Have header?])) AC_CHECK_HEADER([sys/param.h], AC_DEFINE([HAVE_SYS_PARAM_H], [1], [Have header?])) AC_CHECK_HEADER([sys/ucred.h], AC_DEFINE([HAVE_SYS_UCRED_H], [1], [Have header?])) dnl Checks for iconv.h and iconv_open AC_CHECK_HEADER([iconv.h], [ SAVELIBS="$LIBS" LIBS="" AC_SEARCH_LIBS([iconv_open], [iconv], [ AC_DEFINE([HAVE_ICONV_H], [1], [Have header?]) SAVELIBS="$SAVELIBS $LIBS" ]) AC_SEARCH_LIBS([libiconv_open], [iconv], [ AC_DEFINE([HAVE_ICONV_H], [1], [Have header?]) SAVELIBS="$SAVELIBS $LIBS" ]) LIBS="$SAVELIBS" ]) dnl Checks for statfs and its many headers... AC_CHECK_HEADER([sys/mount.h], AC_DEFINE([HAVE_SYS_MOUNT_H], [1], [Have header?])) AC_CHECK_HEADER([sys/statfs.h], AC_DEFINE([HAVE_SYS_STATFS_H], [1], [Have header?])) AC_CHECK_HEADER([sys/statvfs.h], AC_DEFINE([HAVE_SYS_STATVFS_H], [1], [Have header?])) AC_CHECK_HEADER([sys/vfs.h], AC_DEFINE([HAVE_SYS_VFS_H], [1], [Have header?])) AC_CHECK_FUNCS([statfs statvfs]) dnl Checks for string functions. dnl TODO: Remove strdup, snprintf, and vsnprintf checks since they are C99? AC_CHECK_FUNCS([strdup snprintf vsnprintf]) AC_CHECK_FUNCS([strlcat strlcpy]) dnl Check for random number functions... AC_CHECK_FUNCS([random lrand48 arc4random]) dnl Check for geteuid function. AC_CHECK_FUNCS([geteuid]) dnl Check for setpgid function. AC_CHECK_FUNCS([setpgid]) dnl Check for vsyslog function. AC_CHECK_FUNCS([vsyslog]) dnl Checks for signal functions. AS_CASE(["$host_os_name"], [linux* | gnu*], [ # Do not use sigset on Linux or GNU HURD ], [*], [ # Use sigset on other platforms, if available AC_CHECK_FUNCS([sigset]) ]) AC_CHECK_FUNCS([sigaction]) dnl Checks for wait functions. AC_CHECK_FUNCS([waitpid wait3]) dnl Check for posix_spawn AC_CHECK_FUNCS([posix_spawn]) dnl Check for getgrouplist AC_CHECK_FUNCS([getgrouplist]) dnl See if the tm structure has the tm_gmtoff member... AC_MSG_CHECKING([for tm_gmtoff member in tm structure]) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ struct tm t; int o = t.tm_gmtoff; ]]) ], [ AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_TM_GMTOFF], [1], [Have tm_gmtoff member in struct tm?]) ], [ AC_MSG_RESULT([no]) ]) dnl See if the stat structure has the st_gen member... AC_MSG_CHECKING([for st_gen member in stat structure]) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[ struct stat t; int o = t.st_gen; ]]) ], [ AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_ST_GEN], [1], [Have st_gen member in struct stat?]) ], [ AC_MSG_RESULT([no]) ]) dnl See if we have the removefile(3) function for securely removing files AC_CHECK_FUNCS([removefile]) dnl See if we have libusb... AC_ARG_ENABLE([libusb], AS_HELP_STRING([--enable-libusb], [use libusb for USB printing])) LIBUSB="" USBQUIRKS="" AC_SUBST([LIBUSB]) AC_SUBST([USBQUIRKS]) AS_IF([test "x$PKGCONFIG" != x], [ AS_IF([test x$enable_libusb != xno -a $host_os_name != darwin], [ AC_MSG_CHECKING([for libusb-1.0]) AS_IF([$PKGCONFIG --exists libusb-1.0], [ AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_LIBUSB], [1], [Have usb library?]) CFLAGS="$CFLAGS $($PKGCONFIG --cflags libusb-1.0)" LIBUSB="$($PKGCONFIG --libs libusb-1.0)" USBQUIRKS="\$(DATADIR)/usb" ], [ AC_MSG_RESULT([no]) AS_IF([test x$enable_libusb = xyes], [ AC_MSG_ERROR([libusb required for --enable-libusb.]) ]) ]) ]) ], [test x$enable_libusb = xyes], [ AC_MSG_ERROR([Need pkg-config to enable libusb support.]) ]) dnl See if we have libwrap for TCP wrappers support... AC_ARG_ENABLE([tcp_wrappers], AS_HELP_STRING([--enable-tcp-wrappers], [use libwrap for TCP wrappers support])) LIBWRAP="" AC_SUBST([LIBWRAP]) AS_IF([test x$enable_tcp_wrappers = xyes], [ AC_CHECK_LIB([wrap], [hosts_access], [ AC_CHECK_HEADER([tcpd.h], [ AC_DEFINE([HAVE_TCPD_H], [1], [Have header?]) LIBWRAP="-lwrap" ]) ]) ]) dnl ZLIB INSTALL_GZIP="" LIBZ="" AC_CHECK_HEADER([zlib.h], [ AC_CHECK_LIB([z], [gzgets], [ AC_DEFINE([HAVE_LIBZ], [1], [Have zlib library?]) LIBZ="-lz" LIBS="$LIBS -lz" AC_CHECK_LIB([z], [inflateCopy], [ AC_DEFINE([HAVE_INFLATECOPY], [1], [Have inflateCopy function?]) ]) AS_IF([test "x$GZIPPROG" != x], [ INSTALL_GZIP="-z" ]) ]) ]) AC_SUBST([INSTALL_GZIP]) AC_SUBST([LIBZ]) PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBZ" dnl Flags for "ar" command... AS_CASE([host_os_name], [darwin* | *bsd*], [ ARFLAGS="-rcv" ], [*], [ ARFLAGS="crvs" ]) AC_SUBST([ARFLAGS]) dnl Prep libraries specifically for cupsd and backends... BACKLIBS="" SERVERLIBS="" AC_SUBST([BACKLIBS]) AC_SUBST([SERVERLIBS]) dnl See if we have POSIX ACL support... SAVELIBS="$LIBS" LIBS="" AC_ARG_ENABLE([acl], AS_HELP_STRING([--enable-acl], [build with POSIX ACL support])) AS_IF([test "x$enable_acl" != xno], [ AC_SEARCH_LIBS([acl_init], [acl], [ AC_DEFINE([HAVE_ACL_INIT], [1], [Have acl_init function?]) ]) SERVERLIBS="$SERVERLIBS $LIBS" ]) LIBS="$SAVELIBS" dnl Check for DBUS support DBUSDIR="" DBUS_NOTIFIER="" DBUS_NOTIFIERLIBS="" AC_ARG_ENABLE([dbus], AS_HELP_STRING([--disable-dbus], [build without DBUS support])) AC_ARG_WITH([dbusdir], AS_HELP_STRING([--with-dbusdir], [set DBUS configuration directory]), [ DBUSDIR="$withval" ]) AS_IF([test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin], [ AC_MSG_CHECKING([for DBUS]) AS_IF([$PKGCONFIG --exists dbus-1], [ AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_DBUS], [1], [Have dbus library?]) CFLAGS="$CFLAGS $($PKGCONFIG --cflags dbus-1) -DDBUS_API_SUBJECT_TO_CHANGE" SERVERLIBS="$SERVERLIBS $($PKGCONFIG --libs dbus-1)" DBUS_NOTIFIER="dbus" DBUS_NOTIFIERLIBS="$($PKGCONFIG --libs dbus-1)" SAVELIBS="$LIBS" LIBS="$LIBS $DBUS_NOTIFIERLIBS" AC_CHECK_FUNC([dbus_message_iter_init_append], [ AC_DEFINE([HAVE_DBUS_MESSAGE_ITER_INIT_APPEND], [1], [Have dbus_message_iter_init_append function?]) ]) AC_CHECK_FUNC([dbus_threads_init_default], [ AC_DEFINE([HAVE_DBUS_THREADS_INIT], [1], [Have dbus_threads_init_default function?]) ]) LIBS="$SAVELIBS" AS_IF([test -d /etc/dbus-1 -a "x$DBUSDIR" = x], [ DBUSDIR="/etc/dbus-1" ]) ], [ AC_MSG_RESULT([no]) ]) ]) AC_SUBST([DBUSDIR]) AC_SUBST([DBUS_NOTIFIER]) AC_SUBST([DBUS_NOTIFIERLIBS]) dnl Extra platform-specific libraries... CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" CUPS_DEFAULT_SYSTEM_AUTHKEY="" CUPS_SYSTEM_AUTHKEY="" INSTALLXPC="" AS_CASE([$host_os_name], [darwin*], [ BACKLIBS="$BACKLIBS -framework IOKit" SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" LIBS="-framework CoreFoundation -framework Security $LIBS" PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC -framework CoreFoundation -framework Security" dnl Check for framework headers... AC_CHECK_HEADER([ApplicationServices/ApplicationServices.h], [ AC_DEFINE([HAVE_APPLICATIONSERVICES_H], [1], [Have ?]) ]) AC_CHECK_HEADER([CoreFoundation/CoreFoundation.h], [ AC_DEFINE([HAVE_COREFOUNDATION_H], [1], [Have ?]) ]) dnl Check for dynamic store function... SAVELIBS="$LIBS" LIBS="-framework SystemConfiguration $LIBS" AC_CHECK_FUNCS([SCDynamicStoreCopyComputerName], [ AC_DEFINE([HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME], [1], [Have SCDynamicStoreCopyComputerName function?]) ],[ LIBS="$SAVELIBS" ]) dnl Check for the new membership functions in MacOSX 10.4... AC_CHECK_HEADER([membership.h], [ AC_DEFINE([HAVE_MEMBERSHIP_H], [1], [Have ?]) ]) AC_CHECK_FUNCS([mbr_uid_to_uuid]) dnl Need header... AC_CHECK_HEADER([dlfcn.h], [ AC_DEFINE([HAVE_DLFCN_H], [1], [Have ?]) ]) dnl Check for notify_post support AC_CHECK_HEADER([notify.h], [ AC_DEFINE([HAVE_NOTIFY_H], [1], [Have ?]) ]) AC_CHECK_FUNCS(notify_post) dnl Check for Authorization Services support AC_ARG_WITH([adminkey], AS_HELP_STRING([--with-adminkey], [set the default SystemAuthKey value]), [ default_adminkey="$withval" ], [ default_adminkey="default" ]) AC_ARG_WITH([operkey], AS_HELP_STRING([--with-operkey], [set the default operator @AUTHKEY value]), [ default_operkey="$withval" ], [ default_operkey="default" ]) AC_CHECK_HEADER([Security/Authorization.h], [ AC_DEFINE([HAVE_AUTHORIZATION_H], [1], [Have ?]) AS_IF([test "x$default_adminkey" != xdefault], [ CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" ], [ CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" ]) AS_IF([test "x$default_operkey" != xdefault], [ CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" ], [ CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" ]) ]) dnl Check for sandbox/Seatbelt support AC_CHECK_HEADER([sandbox.h], [ AC_DEFINE([HAVE_SANDBOX_H], [1], [Have ?]) ]) dnl Check for XPC support AC_CHECK_HEADER([xpc/xpc.h], [ AC_DEFINE([HAVE_XPC], [1], [Have ?]) INSTALLXPC="install-xpc" ]) ]) AC_SUBST([CUPS_DEFAULT_PRINTOPERATOR_AUTH]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_PRINTOPERATOR_AUTH], ["$CUPS_DEFAULT_PRINTOPERATOR_AUTH"], [Default authorization for print operators?]) AC_DEFINE_UNQUOTED([CUPS_DEFAULT_SYSTEM_AUTHKEY], ["$CUPS_DEFAULT_SYSTEM_AUTHKEY"], [Default system authorization key for macOS?]) AC_SUBST([CUPS_SYSTEM_AUTHKEY]) AC_SUBST([INSTALLXPC]) dnl Check for build components COMPONENTS="all" AC_ARG_WITH([components], AS_HELP_STRING([--with-components], [set components to build: "all" (default) builds everything, "core" builds libcups and ipptool, "libcups" builds just libcups, "libcupslite" builds just libcups without driver support]), [ COMPONENTS="$withval" ]) cupsimagebase="cupsimage" IPPEVECOMMANDS="ippevepcl ippeveps" LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)" LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)" AS_CASE(["$COMPONENTS"], [all], [ BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" ], [core], [ BUILDDIRS="tools examples locale" ], [corelite], [ AC_DEFINE([CUPS_LITE], [1], [Building CUPS without driver support?]) BUILDDIRS="tools examples locale" cupsimagebase="" LIBCUPSOBJS="\$(COREOBJS)" LIBHEADERS="\$(COREHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV)" ], [libcups], [ BUILDDIRS="locale" cupsimagebase="" ], [libcupslite], [ AC_DEFINE([CUPS_LITE], [1], [Building CUPS without driver support?]) BUILDDIRS="locale" cupsimagebase="" LIBCUPSOBJS="\$(COREOBJS)" LIBHEADERS="\$(COREHEADERS)" LIBHEADERSPRIV="\$(COREHEADERSPRIV)" ], [*], [ AC_MSG_ERROR([Bad build component "$COMPONENTS" specified.]) ]) AC_SUBST([BUILDDIRS]) AC_SUBST([IPPEVECOMMANDS]) AC_SUBST([LIBCUPSOBJS]) AC_SUBST([LIBHEADERS]) AC_SUBST([LIBHEADERSPRIV]) cups-2.4.7/conf/0000755000175000017500000000000014502571342013306 5ustar zdohnalzdohnalcups-2.4.7/conf/snmp.conf.in0000644000175000017500000000023014502571342015532 0ustar zdohnalzdohnal# # SNMP configuration file for CUPS. See "man cups-snmp.conf" for a complete # description of this file. # @CUPS_SNMP_ADDRESS@ @CUPS_SNMP_COMMUNITY@ cups-2.4.7/conf/pam.std.in0000644000175000017500000000006514502571342015205 0ustar zdohnalzdohnalauth required @PAMMODAUTH@ account required @PAMMOD@ cups-2.4.7/conf/pam.securityserver0000644000175000017500000000043014502571342017100 0ustar zdohnalzdohnal# cups: auth account password session auth sufficient pam_securityserver.so auth sufficient pam_unix.so auth required pam_deny.so account required pam_permit.so password required pam_deny.so session required pam_permit.so cups-2.4.7/conf/pam.opendirectory0000644000175000017500000000031314502571342016670 0ustar zdohnalzdohnal# cups: auth account password session auth required pam_opendirectory.so account required pam_permit.so password required pam_deny.so session required pam_permit.so cups-2.4.7/conf/pam.common0000644000175000017500000000010514502571342015271 0ustar zdohnalzdohnal@include common-auth @include common-account @include common-session cups-2.4.7/conf/mime.types0000644000175000017500000001410014502571342015317 0ustar zdohnalzdohnal# # Base MIME types file for CUPS. # # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW # VERSIONS OF CUPS. Instead, create a "local.types" file that # reflects your local configuration changes. # # Copyright © 2007-2017 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # ######################################################################## # # Format of Lines: # # super/type rules # # "rules" can be any combination of: # # ( expr ) Parenthesis for expression grouping # + Logical AND # , or whitespace Logical OR # ! Logical NOT # match("pattern") Pattern match on filename # extension Pattern match on "*.extension" # ascii(offset,length) True if bytes are valid printable ASCII # (CR, NL, TAB, BS, 32-126) # priority(number) Sets priority of type (0=lowest, # 100=default, 200=highest) # printable(offset,length) True if bytes are printable 8-bit chars # (CR, NL, TAB, BS, 32-126, 128-254) # regex(offset,"regex") True if bytes match regular expression # string(offset,"string") True if bytes are identical to string # istring(offset,"string") True if bytes are identical to # case-insensitive string # char(offset,value) True if byte is identical # short(offset,value) True if 16-bit integer is identical # int(offset,value) True if 32-bit integer is identical # locale("string") True if current locale matches string # contains(offset,range,"string") True if the range contains the string # # General Notes: # # MIME type names are case-insensitive. Internally they are converted # to lowercase. Multiple occurrences of a type will cause the provided # rules to be appended to the existing definition. If two types use the same # rules to resolve a type and have the same priority, e.g. "doc" extension for # "text/bar" and "text/foo", the returned type will be the first type as # sorted in alphanumerically ascending order without regard to case. Thus, # the "text/bar" type will match the "doc" extension first unless the # "text/foo" type has specified a higher priority. # # The "printable" rule differs from the "ascii" rule in that it also # accepts 8-bit characters in the range 128-255. # # String constants must be surrounded by "" if they contain whitespace. # To insert binary data into a string, use the notation. # ######################################################################## # # Application-generated files... # #application/msword doc string(0,) application/pdf pdf regex(0,^[\n\r]*%PDF) application/postscript ai eps ps string(0,%!) string(0,<04>%!) \ contains(0,128,<1B>%-12345X) + \ (contains(0,4096,"LANGUAGE=POSTSCRIPT") \ contains(0,4096,"LANGUAGE = Postscript") \ contains(0,4096,"LANGUAGE = PostScript") \ contains(0,4096,"LANGUAGE = POSTSCRIPT") \ (contains(0,4096,<0a>%!) + \ !contains(0,4096,"ENTER LANGUAGE"))) ######################################################################## # # Image files... # image/gif gif string(0,GIF87a) string(0,GIF89a) image/png png string(0,<89>PNG) image/jpeg jpeg jpg jpe string(0,) +\ (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\ char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\ char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\ char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef)) image/pwg-raster string(0,"RaS2") + string(4,PwgRaster<00>) priority(150) image/tiff tiff tif string(0,MM<002A>) string(0,II<2A00>) image/x-photocd pcd string(2048,PCD_IPI) image/x-portable-anymap pnm image/x-portable-bitmap pbm string(0,P1) string(0,P4) image/x-portable-graymap pgm string(0,P2) string(0,P5) image/x-portable-pixmap ppm string(0,P3) string(0,P6) image/x-sgi-rgb rgb sgi bw icon short(0,474) image/x-xbitmap xbm image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM") #image/x-xwindowdump xwd string(4,<00000007>) image/x-sun-raster ras string(0,<59a66a95>) #image/fpx fpx image/urf urf string(0,UNIRAST<00>) image/x-alias pix short(8,8) short(8,24) image/x-bitmap bmp string(0,BM) + !printable(2,14) image/x-icon ico ######################################################################## # # Text files... # application/x-cshell csh printable(0,1024) + string(0,#!) +\ (contains(2,80,/csh) contains(2,80,/tcsh)) application/x-perl pl printable(0,1024) + string(0,#!) +\ contains(2,80,/perl) application/x-shell sh printable(0,1024) + string(0,#!) +\ (contains(2,80,/bash) contains(2,80,/ksh)\ contains(2,80,/sh) contains(2,80,/zsh)) application/x-csource c cxx cpp cc C h hpp \ printable(0,1024) + ! css + \ (string(0,/*) string(0,//) \ string(0,#include) contains(0,1024,<0a>#include) \ string(0,#define) contains(0,1024,<0a>#define)) text/html html htm printable(0,1024) +\ (istring(0,"") istring(0,")) string(0,"2SaR") \ string(0,"RaS3") string(0,"3SaR") application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \ string(0,<1B>@) \ (contains(0,128,<1B>%-12345X) + \ (contains(0,4096,"LANGUAGE=PCL") \ contains(0,4096,"LANGUAGE = PCL"))) ######################################################################## # # Raw print file support... # # Comment the following type to prevent raw file printing. # application/octet-stream cups-2.4.7/conf/mime.convs.in0000644000175000017500000000300614502571342015713 0ustar zdohnalzdohnal# # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW # VERSIONS OF CUPS. Instead, create a "local.convs" file that # reflects your local configuration changes. # # Base MIME conversions file for CUPS. # # Copyright © 2007-2016 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # ######################################################################## # # Format of Lines: # # source/type destination/type cost filter # # General Notes: # # The "cost" field is used to find the least costly filters to run # when converting a job file to a printable format. # # All filters *must* accept the standard command-line arguments # (job-id, user, title, copies, options, [filename or stdin]) to # work with CUPS. # ######################################################################## # # PostScript filters # application/postscript application/vnd.cups-postscript 66 pstops ######################################################################## # # Raster filters... # # PWG Raster filter for IPP Everywhere... application/vnd.cups-raster image/pwg-raster 100 rastertopwg application/vnd.cups-raster image/urf 100 rastertopwg ######################################################################## # # Raw filter... # # Uncomment the following filter to allow printing of arbitrary files # without the -oraw option. # @DEFAULT_RAW_PRINTING@application/octet-stream application/vnd.cups-raw 0 - cups-2.4.7/conf/cupsd.conf.in0000644000175000017500000001570714502571342015712 0ustar zdohnalzdohnal# # Configuration file for the CUPS scheduler. See "man cupsd.conf" for a # complete description of this file. # # Log general information in error_log - change "@CUPS_LOG_LEVEL@" to "debug" # for troubleshooting... LogLevel @CUPS_LOG_LEVEL@ @CUPS_PAGE_LOG_FORMAT@ # Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation. MaxLogSize @CUPS_MAX_LOG_SIZE@ # Default error policy for printers ErrorPolicy @CUPS_ERROR_POLICY@ # Only listen for connections from the local machine. Listen localhost:@DEFAULT_IPP_PORT@ @CUPS_LISTEN_DOMAINSOCKET@ # Show shared printers on the local network. Browsing @CUPS_BROWSING@ BrowseLocalProtocols @CUPS_BROWSE_LOCAL_PROTOCOLS@ # Default authentication type, when authentication is required... DefaultAuthType Basic # Web interface setting... WebInterface @CUPS_WEBIF@ # Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l) IdleExitTimeout @EXIT_TIMEOUT@ # Restrict access to the server... Order allow,deny # Restrict access to the admin pages... AuthType Default Require user @SYSTEM Order allow,deny # Restrict access to configuration files... AuthType Default Require user @SYSTEM Order allow,deny # Restrict access to log files... AuthType Default Require user @SYSTEM Order allow,deny # Set the default printer/job policies... # Job/subscription privacy... JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default # Job-related operations must be done by the owner or an administrator... Order deny,allow Require user @OWNER @SYSTEM Order deny,allow AuthType Default Require user @OWNER @SYSTEM Order deny,allow # All administration operations require an administrator to authenticate... AuthType Default Require user @SYSTEM Order deny,allow # All printer operations require a printer operator to authenticate... AuthType Default Require user @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow # Only the owner or an administrator can cancel or authenticate a job... Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow AuthType Default Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow Order deny,allow # Set the authenticated printer/job policies... # Job/subscription privacy... JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default # Job-related operations must be done by the owner or an administrator... AuthType Default Order deny,allow AuthType Default Require user @OWNER @SYSTEM Order deny,allow # All administration operations require an administrator to authenticate... AuthType Default Require user @SYSTEM Order deny,allow # All printer operations require a printer operator to authenticate... AuthType Default Require user @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow # Only the owner or an administrator can cancel or authenticate a job... AuthType Default Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow Order deny,allow # Set the kerberized printer/job policies... # Job/subscription privacy... JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default # Job-related operations must be done by the owner or an administrator... AuthType Negotiate Order deny,allow AuthType Negotiate Require user @OWNER @SYSTEM Order deny,allow # All administration operations require an administrator to authenticate... AuthType Default Require user @SYSTEM Order deny,allow # All printer operations require a printer operator to authenticate... AuthType Default Require user @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow # Only the owner or an administrator can cancel or authenticate a job... AuthType Negotiate Require user @OWNER @CUPS_DEFAULT_PRINTOPERATOR_AUTH@ Order deny,allow Order deny,allow cups-2.4.7/conf/cups-files.conf.in0000644000175000017500000000547714502571342016651 0ustar zdohnalzdohnal# # File/directory/user/group configuration file for the CUPS scheduler. # See "man cups-files.conf" for a complete description of this file. # # List of events that are considered fatal errors for the scheduler... #FatalErrors @CUPS_FATAL_ERRORS@ # Do we call fsync() after writing configuration or status files? #SyncOnClose @CUPS_SYNC_ON_CLOSE@ # Default user and group for filters/backends/helper programs; this cannot be # any user or group that resolves to ID 0 for security reasons... #User @CUPS_USER@ #Group @CUPS_GROUP@ # Administrator user group, used to match @SYSTEM in cupsd.conf policy rules... # This cannot contain the Group value for security reasons... SystemGroup @CUPS_SYSTEM_GROUPS@ @CUPS_SYSTEM_AUTHKEY@ # User that is substituted for unauthenticated (remote) root accesses... #RemoteRoot remroot # Do we allow file: device URIs other than to /dev/null? #FileDevice No # Permissions for configuration and log files... #ConfigFilePerm 0@CUPS_CONFIG_FILE_PERM@ #LogFilePerm 0@CUPS_LOG_FILE_PERM@ # Location of the file logging all access to the scheduler; may be the name # "syslog". If not an absolute path, the value of ServerRoot is used as the # root directory. Also see the "AccessLogLevel" directive in cupsd.conf. AccessLog @CUPS_LOGDIR@/access_log # Location of cache files used by the scheduler... #CacheDir @CUPS_CACHEDIR@ # Location of data files used by the scheduler... #DataDir @CUPS_DATADIR@ # Location of the static web content served by the scheduler... #DocumentRoot @CUPS_DOCROOT@ # Location of the file logging all messages produced by the scheduler and any # helper programs; may be the name "syslog". If not an absolute path, the value # of ServerRoot is used as the root directory. Also see the "LogLevel" # directive in cupsd.conf. ErrorLog @CUPS_LOGDIR@/error_log # Location of the file logging all pages printed by the scheduler and any # helper programs; may be the name "syslog". If not an absolute path, the value # of ServerRoot is used as the root directory. Also see the "PageLogFormat" # directive in cupsd.conf. PageLog @CUPS_LOGDIR@/page_log # Location of the file listing all of the local printers... #Printcap @CUPS_DEFAULT_PRINTCAP@ # Format of the Printcap file... #PrintcapFormat bsd #PrintcapFormat plist #PrintcapFormat solaris # Location of all spool files... #RequestRoot @CUPS_REQUESTS@ # Location of helper programs... #ServerBin @CUPS_SERVERBIN@ # SSL/TLS keychain for the scheduler... #ServerKeychain @CUPS_SERVERKEYCHAIN@ # Location of other configuration files... #ServerRoot @CUPS_SERVERROOT@ # Location of scheduler state files... #StateDir @CUPS_STATEDIR@ # Location of scheduler/helper temporary files. This directory is emptied on # scheduler startup and cannot be one of the standard (public) temporary # directory locations for security reasons... #TempDir @CUPS_REQUESTS@/tmp cups-2.4.7/conf/cgi.types0000644000175000017500000000004014502571342015130 0ustar zdohnalzdohnalapplication/x-httpd-cgi cgi php cups-2.4.7/conf/Makefile0000644000175000017500000000407514502571342014754 0ustar zdohnalzdohnal# # Configuration file makefile for CUPS. # # Copyright 2007-2015 by Apple Inc. # Copyright 1993-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs # # Config files... # KEEP = cups-files.conf cupsd.conf snmp.conf REPLACE = mime.convs mime.types # # Make everything... # all: # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all config and object files... # clean: # # Dummy depend... # depend: # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: for file in $(KEEP); do \ if test -r $(SERVERROOT)/$$file ; then \ $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \ else \ $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \ fi ; \ $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.default; \ done $(INSTALL_DIR) -m 755 $(DATADIR)/mime for file in $(REPLACE); do \ if test -r $(DATADIR)/mime/$$file ; then \ $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \ fi ; \ if test -r $(SERVERROOT)/$$file ; then \ $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \ fi ; \ $(INSTALL_DATA) $$file $(DATADIR)/mime ; \ done -if test x$(PAMDIR) != x; then \ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \ if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \ $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \ else \ $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \ fi ; \ fi # # Install programs... # install-exec: # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall files... # uninstall: for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \ $(RM) $(SERVERROOT)/$$file; \ done -$(RMDIR) $(SERVERROOT) for file in $(REPLACE); do \ $(RM) $(DATADIR)/mime/$$file; \ done -$(RMDIR) $(DATADIR)/mime -if test x$(PAMDIR) != x; then \ $(RM) $(BUILDROOT)$(PAMDIR)/cups; \ $(RMDIR) $(BUILDROOT)$(PAMDIR); \ fi cups-2.4.7/cgi-bin/0000755000175000017500000000000014502571342013671 5ustar zdohnalzdohnalcups-2.4.7/cgi-bin/var.c0000644000175000017500000006414714502571342014641 0ustar zdohnalzdohnal/* * CGI form variable and array functions for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ /*#define DEBUG*/ #include "cgi-private.h" #include /* * Session ID name */ #define CUPS_SID "org.cups.sid" /* * Data structure to hold all the CGI form variables and arrays... */ typedef struct /**** Form variable structure ****/ { char *name; /* Name of variable */ int nvalues, /* Number of values */ avalues; /* Number of values allocated */ char **values; /* Value(s) of variable */ } _cgi_var_t; /* * Local globals... */ static int num_cookies = 0;/* Number of cookies */ static cups_option_t *cookies = NULL;/* Cookies */ static int form_count = 0, /* Form variable count */ form_alloc = 0; /* Number of variables allocated */ static _cgi_var_t *form_vars = NULL; /* Form variables */ static cgi_file_t *form_file = NULL; /* Uploaded file */ /* * Local functions... */ static void cgi_add_variable(const char *name, int element, const char *value); static int cgi_compare_variables(const _cgi_var_t *v1, const _cgi_var_t *v2); static _cgi_var_t *cgi_find_variable(const char *name); static void cgi_initialize_cookies(void); static int cgi_initialize_get(void); static int cgi_initialize_multipart(const char *boundary); static int cgi_initialize_post(void); static int cgi_initialize_string(const char *data); static const char *cgi_passwd(const char *prompt); static const char *cgi_set_sid(void); static void cgi_sort_variables(void); static void cgi_unlink_file(void); /* * 'cgiCheckVariables()' - Check for the presence of "required" variables. * * Names may be separated by spaces and/or commas. */ int /* O - 1 if all variables present, 0 otherwise */ cgiCheckVariables(const char *names) /* I - Variables to look for */ { char name[255], /* Current variable name */ *s; /* Pointer in string */ const char *val; /* Value of variable */ int element; /* Array element number */ if (names == NULL) return (1); while (*names != '\0') { while (*names == ' ' || *names == ',') names ++; for (s = name; *names != '\0' && *names != ' ' && *names != ','; s ++, names ++) *s = *names; *s = 0; if (name[0] == '\0') break; if ((s = strrchr(name, '-')) != NULL) { *s = '\0'; element = atoi(s + 1) - 1; val = cgiGetArray(name, element); } else val = cgiGetVariable(name); if (val == NULL) return (0); if (*val == '\0') { free((void *)val); return (0); /* Can't be blank, either! */ } free((void *)val); } return (1); } /* * 'cgiClearVariables()' - Clear all form variables. */ void cgiClearVariables(void) { int i, j; /* Looping vars */ _cgi_var_t *v; /* Current variable */ fputs("DEBUG: cgiClearVariables called.\n", stderr); for (v = form_vars, i = form_count; i > 0; v ++, i --) { free(v->name); for (j = 0; j < v->nvalues; j ++) if (v->values[j]) free(v->values[j]); } form_count = 0; cgi_unlink_file(); } /* * 'cgiGetArray()' - Get an element from a form array. */ char * /* O - Element value or NULL */ cgiGetArray(const char *name, /* I - Name of array variable */ int element) /* I - Element number (0 to N) */ { _cgi_var_t *var; /* Pointer to variable */ if ((var = cgi_find_variable(name)) == NULL) return (NULL); if (element < 0 || element >= var->nvalues) return (NULL); if (var->values[element] == NULL) return (NULL); return (strdup(var->values[element])); } /* * 'cgiGetCookie()' - Get a cookie value. */ const char * /* O - Value or NULL */ cgiGetCookie(const char *name) /* I - Name of cookie */ { return (cupsGetOption(name, num_cookies, cookies)); } /* * 'cgiGetFile()' - Get the file (if any) that was submitted in the form. */ const cgi_file_t * /* O - Attached file or NULL */ cgiGetFile(void) { return (form_file); } /* * 'cgiGetSize()' - Get the size of a form array value. */ int /* O - Number of elements */ cgiGetSize(const char *name) /* I - Name of variable */ { _cgi_var_t *var; /* Pointer to variable */ if ((var = cgi_find_variable(name)) == NULL) return (0); return (var->nvalues); } /* * 'cgiGetVariable()' - Get a CGI variable from the database. * * Returns NULL if the variable doesn't exist. If the variable is an * array of values, returns the last element. */ char * /* O - Value of variable */ cgiGetVariable(const char *name) /* I - Name of variable */ { const _cgi_var_t *var; /* Returned variable */ var = cgi_find_variable(name); return ((var == NULL) ? NULL : strdup(var->values[var->nvalues - 1])); } /* * 'cgiInitialize()' - Initialize the CGI variable "database". */ int /* O - Non-zero if there was form data */ cgiInitialize(void) { const char *method, /* Form posting method */ *content_type, /* Content-Type of post data */ *cups_sid_cookie, /* SID cookie */ *cups_sid_form; /* SID form variable */ /* * Setup a password callback for authentication... */ cupsSetPasswordCB(cgi_passwd); /* * Set the locale so that times, etc. are formatted properly... */ setlocale(LC_ALL, ""); #ifdef DEBUG /* * Disable output buffering to find bugs... */ setbuf(stdout, NULL); #endif /* DEBUG */ /* * Get cookies... */ cgi_initialize_cookies(); if ((cups_sid_cookie = cgiGetCookie(CUPS_SID)) == NULL) { fputs("DEBUG: " CUPS_SID " cookie not found, initializing!\n", stderr); cups_sid_cookie = cgi_set_sid(); } fprintf(stderr, "DEBUG: " CUPS_SID " cookie is \"%s\"\n", cups_sid_cookie); /* * Get the request method (GET or POST)... */ method = getenv("REQUEST_METHOD"); content_type = getenv("CONTENT_TYPE"); if (!method) return (0); /* * Grab form data from the corresponding location... */ if (!_cups_strcasecmp(method, "GET")) return (cgi_initialize_get()); else if (!_cups_strcasecmp(method, "POST") && content_type) { const char *boundary = strstr(content_type, "boundary="); if (boundary) boundary += 9; if (!strncmp(content_type, "multipart/form-data; ", 21)) { if (!cgi_initialize_multipart(boundary)) return (0); } else if (!cgi_initialize_post()) return (0); if ((cups_sid_form = cgiGetVariable(CUPS_SID)) == NULL || strcmp(cups_sid_cookie, cups_sid_form)) { if (cups_sid_form) fprintf(stderr, "DEBUG: " CUPS_SID " form variable is \"%s\"\n", cups_sid_form); else fputs("DEBUG: " CUPS_SID " form variable is not present.\n", stderr); free((void *)cups_sid_form); cgiClearVariables(); return (0); } else { free((void *)cups_sid_form); return (1); } } else return (0); } /* * 'cgiIsPOST()' - Determine whether this page was POSTed. */ int /* O - 1 if POST, 0 if GET */ cgiIsPOST(void) { const char *method; /* REQUEST_METHOD environment variable */ if ((method = getenv("REQUEST_METHOD")) == NULL) return (0); else return (!strcmp(method, "POST")); } /* * 'cgiSetArray()' - Set array element N to the specified string. * * If the variable array is smaller than (element + 1), the intervening * elements are set to NULL. */ void cgiSetArray(const char *name, /* I - Name of variable */ int element, /* I - Element number (0 to N) */ const char *value) /* I - Value of variable */ { int i; /* Looping var */ _cgi_var_t *var; /* Returned variable */ if (name == NULL || value == NULL || element < 0 || element > 100000) return; fprintf(stderr, "DEBUG: cgiSetArray: %s[%d]=\"%s\"\n", name, element, value); if ((var = cgi_find_variable(name)) == NULL) { cgi_add_variable(name, element, value); cgi_sort_variables(); } else { if (element >= var->avalues) { char **temp; /* Temporary pointer */ temp = (char **)realloc((void *)(var->values), sizeof(char *) * (size_t)(element + 16)); if (!temp) return; var->avalues = element + 16; var->values = temp; } if (element >= var->nvalues) { for (i = var->nvalues; i < element; i ++) var->values[i] = NULL; var->nvalues = element + 1; } else if (var->values[element]) free((char *)var->values[element]); var->values[element] = strdup(value); } } /* * 'cgiSetCookie()' - Set a cookie value. */ void cgiSetCookie(const char *name, /* I - Name */ const char *value, /* I - Value */ const char *path, /* I - Path (typically "/") */ const char *domain, /* I - Domain name */ time_t expires, /* I - Expiration date (0 for session) */ int secure) /* I - Require SSL */ { num_cookies = cupsAddOption(name, value, num_cookies, &cookies); printf("Set-Cookie: %s=%s;", name, value); if (path) printf(" path=%s;", path); if (domain) printf(" domain=%s;", domain); if (expires) { char date[256]; /* Date string */ printf(" expires=%s;", httpGetDateString2(expires, date, sizeof(date))); } if (secure) puts(" httponly; secure;"); else puts(" httponly;"); } /* * 'cgiSetSize()' - Set the array size. */ void cgiSetSize(const char *name, /* I - Name of variable */ int size) /* I - Number of elements (0 to N) */ { int i; /* Looping var */ _cgi_var_t *var; /* Returned variable */ if (name == NULL || size < 0 || size > 100000) return; if ((var = cgi_find_variable(name)) == NULL) return; if (size >= var->avalues) { char **temp; /* Temporary pointer */ temp = (char **)realloc((void *)(var->values), sizeof(char *) * (size_t)(size + 16)); if (!temp) return; var->avalues = size + 16; var->values = temp; } if (size > var->nvalues) { for (i = var->nvalues; i < size; i ++) var->values[i] = NULL; } else if (size < var->nvalues) { for (i = size; i < var->nvalues; i ++) if (var->values[i]) free((void *)(var->values[i])); } var->nvalues = size; } /* * 'cgiSetVariable()' - Set a CGI variable in the database. * * If the variable is an array, this truncates the array to a single element. */ void cgiSetVariable(const char *name, /* I - Name of variable */ const char *value) /* I - Value of variable */ { int i; /* Looping var */ _cgi_var_t *var; /* Returned variable */ if (name == NULL || value == NULL) return; fprintf(stderr, "cgiSetVariable: %s=\"%s\"\n", name, value); if ((var = cgi_find_variable(name)) == NULL) { cgi_add_variable(name, 0, value); cgi_sort_variables(); } else { for (i = 0; i < var->nvalues; i ++) if (var->values[i]) free((char *)var->values[i]); var->values[0] = strdup(value); var->nvalues = 1; } } /* * 'cgi_add_variable()' - Add a form variable. */ static void cgi_add_variable(const char *name, /* I - Variable name */ int element, /* I - Array element number */ const char *value) /* I - Variable value */ { _cgi_var_t *var; /* New variable */ if (name == NULL || value == NULL || element < 0 || element > 100000) return; if (form_count >= form_alloc) { _cgi_var_t *temp_vars; /* Temporary form pointer */ if (form_alloc == 0) temp_vars = malloc(sizeof(_cgi_var_t) * 16); else temp_vars = realloc(form_vars, (size_t)(form_alloc + 16) * sizeof(_cgi_var_t)); if (!temp_vars) return; var = temp_vars + form_count; if ((var->values = calloc((size_t)element + 1, sizeof(char *))) == NULL) { /* * Rollback changes */ if (form_alloc == 0) free(temp_vars); return; } form_vars = temp_vars; form_alloc += 16; } else { var = form_vars + form_count; if ((var->values = calloc((size_t)element + 1, sizeof(char *))) == NULL) return; } var->name = strdup(name); var->nvalues = element + 1; var->avalues = element + 1; var->values[element] = strdup(value); form_count ++; } /* * 'cgi_compare_variables()' - Compare two variables. */ static int /* O - Result of comparison */ cgi_compare_variables( const _cgi_var_t *v1, /* I - First variable */ const _cgi_var_t *v2) /* I - Second variable */ { return (_cups_strcasecmp(v1->name, v2->name)); } /* * 'cgi_find_variable()' - Find a variable. */ static _cgi_var_t * /* O - Variable pointer or NULL */ cgi_find_variable(const char *name) /* I - Name of variable */ { _cgi_var_t key; /* Search key */ if (form_count < 1 || name == NULL) return (NULL); key.name = (char *)name; return ((_cgi_var_t *)bsearch(&key, form_vars, (size_t)form_count, sizeof(_cgi_var_t), (int (*)(const void *, const void *))cgi_compare_variables)); } /* * 'cgi_initialize_cookies()' - Initialize cookies. */ static void cgi_initialize_cookies(void) { const char *cookie; /* HTTP_COOKIE environment variable */ char name[128], /* Name string */ value[512], /* Value string */ *ptr; /* Pointer into name/value */ if ((cookie = getenv("HTTP_COOKIE")) == NULL) return; while (*cookie) { int skip = 0; /* Skip this cookie? */ /* * Skip leading whitespace... */ while (isspace(*cookie & 255)) cookie ++; if (!*cookie) break; /* * Copy the name... */ for (ptr = name; *cookie && *cookie != '=';) if (ptr < (name + sizeof(name) - 1)) { *ptr++ = *cookie++; } else { skip = 1; cookie ++; } if (*cookie != '=') break; *ptr = '\0'; cookie ++; /* * Then the value... */ if (*cookie == '\"') { for (cookie ++, ptr = value; *cookie && *cookie != '\"';) if (ptr < (value + sizeof(value) - 1)) { *ptr++ = *cookie++; } else { skip = 1; cookie ++; } if (*cookie == '\"') cookie ++; else skip = 1; } else { for (ptr = value; *cookie && *cookie != ';';) if (ptr < (value + sizeof(value) - 1)) { *ptr++ = *cookie++; } else { skip = 1; cookie ++; } } if (*cookie == ';') cookie ++; else if (*cookie) skip = 1; *ptr = '\0'; /* * Then add the cookie to an array as long as the name doesn't start with * "$"... */ if (name[0] != '$' && !skip) num_cookies = cupsAddOption(name, value, num_cookies, &cookies); } } /* * 'cgi_initialize_get()' - Initialize form variables using the GET method. */ static int /* O - 1 if form data read */ cgi_initialize_get(void) { char *data; /* Pointer to form data string */ /* * Check to see if there is anything for us to read... */ data = getenv("QUERY_STRING"); if (data == NULL || strlen(data) == 0) return (0); /* * Parse it out and return... */ return (cgi_initialize_string(data)); } /* * 'cgi_initialize_multipart()' - Initialize variables and file using the POST * method. * * TODO: Update to support files > 2GB. */ static int /* O - 1 if form data was read */ cgi_initialize_multipart( const char *boundary) /* I - Boundary string */ { char line[10240], /* MIME header line */ name[1024], /* Form variable name */ filename[1024], /* Form filename */ mimetype[1024], /* MIME media type */ bstring[256], /* Boundary string to look for */ *ptr, /* Pointer into name/filename */ *end; /* End of buffer */ int ch, /* Character from file */ fd; /* Temporary file descriptor */ size_t blen; /* Length of boundary string */ /* * Read multipart form data until we run out... */ name[0] = '\0'; filename[0] = '\0'; mimetype[0] = '\0'; snprintf(bstring, sizeof(bstring), "\r\n--%s", boundary); blen = strlen(bstring); while (fgets(line, sizeof(line), stdin)) { if (!strcmp(line, "\r\n")) { /* * End of headers, grab value... */ if (filename[0]) { /* * Read an embedded file... */ if (form_file) { /* * Remove previous file... */ cgi_unlink_file(); } /* * Allocate memory for the new file... */ if ((form_file = calloc(1, sizeof(cgi_file_t))) == NULL) return (0); form_file->name = strdup(name); form_file->filename = strdup(filename); form_file->mimetype = strdup(mimetype); fd = cupsTempFd(form_file->tempfile, sizeof(form_file->tempfile)); if (fd < 0) return (0); atexit(cgi_unlink_file); /* * Copy file data to the temp file... */ ptr = line; while ((ch = getchar()) != EOF) { *ptr++ = (char)ch; if ((size_t)(ptr - line) >= blen && !memcmp(ptr - blen, bstring, blen)) { ptr -= blen; break; } if ((ptr - line - (int)blen) >= 8192) { /* * Write out the first 8k of the buffer... */ write(fd, line, 8192); memmove(line, line + 8192, (size_t)(ptr - line - 8192)); ptr -= 8192; } } /* * Write the rest of the data and close the temp file... */ if (ptr > line) write(fd, line, (size_t)(ptr - line)); close(fd); } else { /* * Just get a form variable; the current code only handles * form values up to 10k in size... */ ptr = line; end = line + sizeof(line) - 1; while ((ch = getchar()) != EOF) { if (ptr < end) *ptr++ = (char)ch; if ((size_t)(ptr - line) >= blen && !memcmp(ptr - blen, bstring, blen)) { ptr -= blen; break; } } *ptr = '\0'; /* * Set the form variable... */ if ((ptr = strrchr(name, '-')) != NULL && isdigit(ptr[1] & 255)) { /* * Set a specific index in the array... */ *ptr++ = '\0'; if (line[0]) cgiSetArray(name, atoi(ptr) - 1, line); } else if ((ptr = cgiGetVariable(name)) != NULL) { /* * Add another element in the array... */ free(ptr); cgiSetArray(name, cgiGetSize(name), line); } else { /* * Just set the line... */ cgiSetVariable(name, line); } } /* * Read the rest of the current line... */ fgets(line, sizeof(line), stdin); /* * Clear the state vars... */ name[0] = '\0'; filename[0] = '\0'; mimetype[0] = '\0'; } else if (!_cups_strncasecmp(line, "Content-Disposition:", 20)) { if ((ptr = strstr(line + 20, " name=\"")) != NULL) { strlcpy(name, ptr + 7, sizeof(name)); if ((ptr = strchr(name, '\"')) != NULL) *ptr = '\0'; } if ((ptr = strstr(line + 20, " filename=\"")) != NULL) { strlcpy(filename, ptr + 11, sizeof(filename)); if ((ptr = strchr(filename, '\"')) != NULL) *ptr = '\0'; } } else if (!_cups_strncasecmp(line, "Content-Type:", 13)) { for (ptr = line + 13; isspace(*ptr & 255); ptr ++); strlcpy(mimetype, ptr, sizeof(mimetype)); for (ptr = mimetype + strlen(mimetype) - 1; ptr > mimetype && isspace(*ptr & 255); *ptr-- = '\0'); } } /* * Return 1 for "form data found"... */ return (1); } /* * 'cgi_initialize_post()' - Initialize variables using the POST method. */ static int /* O - 1 if form data was read */ cgi_initialize_post(void) { char *content_length, /* Length of input data (string) */ *data; /* Pointer to form data string */ size_t length, /* Length of input data */ tbytes; /* Total number of bytes read */ ssize_t nbytes; /* Number of bytes read this read() */ int status; /* Return status */ /* * Check to see if there is anything for us to read... */ content_length = getenv("CONTENT_LENGTH"); if (content_length == NULL || atoi(content_length) <= 0) return (0); /* * Get the length of the input stream and allocate a buffer for it... */ length = (size_t)strtol(content_length, NULL, 10); data = malloc(length + 1); // lgtm [cpp/uncontrolled-allocation-size] if (data == NULL) return (0); /* * Read the data into the buffer... */ for (tbytes = 0; tbytes < length; tbytes += (size_t)nbytes) if ((nbytes = read(0, data + tbytes, (size_t)(length - tbytes))) < 0) { if (errno != EAGAIN) { free(data); return (0); } else nbytes = 0; } else if (nbytes == 0) { /* * CUPS STR #3176: OpenBSD: Early end-of-file on POST data causes 100% CPU * * This should never happen, but does on OpenBSD. If we see early end-of- * file, treat this as an error and process no data. */ free(data); return (0); } data[length] = '\0'; /* * Parse it out... */ status = cgi_initialize_string(data); /* * Free the data and return... */ free(data); return (status); } /* * 'cgi_initialize_string()' - Initialize form variables from a string. */ static int /* O - 1 if form data was processed */ cgi_initialize_string(const char *data) /* I - Form data string */ { int done; /* True if we're done reading a form variable */ char *s, /* Pointer to current form string */ ch, /* Temporary character */ name[255], /* Name of form variable */ value[65536], /* Variable value */ *temp; /* Temporary pointer */ /* * Check input... */ if (data == NULL) return (0); /* * Loop until we've read all the form data... */ while (*data != '\0') { /* * Get the variable name... */ for (s = name; *data != '\0'; data ++) if (*data == '=') break; else if (*data >= ' ' && s < (name + sizeof(name) - 1)) *s++ = *data; *s = '\0'; if (*data == '=') data ++; else return (0); /* * Read the variable value... */ for (s = value, done = 0; !done && *data != '\0'; data ++) switch (*data) { case '&' : /* End of data... */ done = 1; break; case '+' : /* Escaped space character */ if (s < (value + sizeof(value) - 1)) *s++ = ' '; break; case '%' : /* Escaped control character */ /* * Read the hex code... */ if (!isxdigit(data[1] & 255) || !isxdigit(data[2] & 255)) return (0); if (s < (value + sizeof(value) - 1)) { data ++; ch = *data - '0'; if (ch > 9) ch -= 7; *s = (char)(ch << 4); data ++; ch = *data - '0'; if (ch > 9) ch -= 7; *s++ |= ch; } else data += 2; break; default : /* Other characters come straight through */ if (*data >= ' ' && s < (value + sizeof(value) - 1)) *s++ = *data; break; } *s = '\0'; /* nul terminate the string */ /* * Remove trailing whitespace... */ if (s > value) s --; while (s >= value && isspace(*s & 255)) *s-- = '\0'; /* * Add the string to the variable "database"... */ if ((s = strrchr(name, '-')) != NULL && isdigit(s[1] & 255)) { *s++ = '\0'; if (value[0]) cgiSetArray(name, atoi(s) - 1, value); } else if ((temp = cgiGetVariable(name)) != NULL) { free(temp); cgiSetArray(name, cgiGetSize(name), value); } else cgiSetVariable(name, value); } return (1); } /* * 'cgi_passwd()' - Catch authentication requests and notify the server. * * This function sends a Status header and exits, forcing authentication * for this request. */ static const char * /* O - NULL (no return) */ cgi_passwd(const char *prompt) /* I - Prompt (not used) */ { (void)prompt; fprintf(stderr, "DEBUG: cgi_passwd(prompt=\"%s\") called!\n", prompt ? prompt : "(null)"); /* * Send a 401 (unauthorized) status to the server, so it can notify * the client that authentication is required. */ puts("Status: 401\n"); exit(0); /* * This code is never executed, but is present to satisfy the compiler. */ return (NULL); } /* * 'cgi_set_sid()' - Set the CUPS session ID. */ static const char * /* O - New session ID */ cgi_set_sid(void) { char buffer[512], /* SID data */ sid[33]; /* SID string */ unsigned char sum[16]; /* MD5 sum */ const char *remote_addr, /* REMOTE_ADDR */ *server_name, /* SERVER_NAME */ *server_port; /* SERVER_PORT */ struct timeval curtime; /* Current time */ if ((remote_addr = getenv("REMOTE_ADDR")) == NULL) remote_addr = "REMOTE_ADDR"; if ((server_name = getenv("SERVER_NAME")) == NULL) server_name = "SERVER_NAME"; if ((server_port = getenv("SERVER_PORT")) == NULL) server_port = "SERVER_PORT"; gettimeofday(&curtime, NULL); CUPS_SRAND(curtime.tv_sec + curtime.tv_usec); snprintf(buffer, sizeof(buffer), "%s:%s:%s:%02X%02X%02X%02X%02X%02X%02X%02X", remote_addr, server_name, server_port, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255, (unsigned)CUPS_RAND() & 255); cupsHashData("md5", (unsigned char *)buffer, strlen(buffer), sum, sizeof(sum)); cgiSetCookie(CUPS_SID, cupsHashString(sum, sizeof(sum), sid, sizeof(sid)), "/", NULL, 0, 0); return (cupsGetOption(CUPS_SID, num_cookies, cookies)); } /* * 'cgi_sort_variables()' - Sort all form variables for faster lookup. */ static void cgi_sort_variables(void) { if (form_count < 2) return; qsort(form_vars, (size_t)form_count, sizeof(_cgi_var_t), (int (*)(const void *, const void *))cgi_compare_variables); } /* * 'cgi_unlink_file()' - Remove the uploaded form. */ static void cgi_unlink_file(void) { if (form_file) { /* * Remove the temporary file... */ unlink(form_file->tempfile); /* * Free memory used... */ free(form_file->name); free(form_file->filename); free(form_file->mimetype); free(form_file); form_file = NULL; } } cups-2.4.7/cgi-bin/testtemplate.c0000644000175000017500000000301714502571342016551 0ustar zdohnalzdohnal/* * CGI template test program for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi.h" /* * 'main()' - Test the template code. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ char *value; /* Value in name=value */ FILE *out; /* Where to send output */ /* * Don't buffer stdout or stderr so that the mixed output is sane... */ setbuf(stdout, NULL); setbuf(stderr, NULL); /* * Loop through the command-line, assigning variables for any args with * "name=value"... */ out = stdout; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "-o")) { i ++; if (i < argc) { out = fopen(argv[i], "w"); if (!out) { perror(argv[i]); return (1); } } } else if (!strcmp(argv[i], "-e")) { i ++; if (i < argc) { if (!freopen(argv[i], "w", stderr)) { perror(argv[i]); return (1); } } } else if (!strcmp(argv[i], "-q")) freopen("/dev/null", "w", stderr); else if ((value = strchr(argv[i], '=')) != NULL) { *value++ = '\0'; cgiSetVariable(argv[i], value); } else cgiCopyTemplateFile(out, argv[i]); } /* * Return with no errors... */ return (0); } cups-2.4.7/cgi-bin/testhi.html0000644000175000017500000000145314502571342016062 0ustar zdohnalzdohnal Test File for Help Index Code

    This is a test file for the help index code. The help index code reads plain HTML and indexes the title and any anchored text, ignoring all other markup. Anchor tags must be on a single line, although the text they wrap may cross multiple lines and be up to 1024 bytes in length.

    This is the First Anchor

    This is some text for the first anchor.

    This is the Second Anchor

    This is some text for the first anchor.

    John asked Mary to the dance.

    This is the Third Anchor

    This is some text for the third anchor. This is an in-line anchor that crosses a line.

    cups-2.4.7/cgi-bin/testhi.c0000644000175000017500000000715414502571342015344 0ustar zdohnalzdohnal/* * Help index test program for CUPS. * * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi.h" /* * Local functions... */ static void list_nodes(const char *title, cups_array_t *nodes); static int usage(void); /* * 'main()' - Test the help index code. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ help_index_t *hi, /* Help index */ *search; /* Search index */ const char *opt, /* Current option character */ *dir = ".", /* Directory to index */ *q = NULL, /* Query string */ *section = NULL, /* Section string */ *filename = NULL; /* Filename string */ /* * Parse the command-line... */ for (i = 1; i < argc; i ++) { if (argv[i][0] == '-') { if (!strcmp(argv[i], "--help")) { usage(); return (0); } for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'd' : /* -d directory */ i ++; if (i < argc) { dir = argv[i]; } else { fputs("testhi: Missing directory for \"-d\" option.\n", stderr); return (usage()); } break; case 's' : /* -s section */ i ++; if (i < argc) { section = argv[i]; } else { fputs("testhi: Missing section name for \"-s\" option.\n", stderr); return (usage()); } break; default : fprintf(stderr, "testhi: Unknown option \"-%c\".\n", *opt); return (usage()); } } } else if (!q) q = argv[i]; else if (!filename) filename = argv[i]; else { fprintf(stderr, "testhi: Unknown argument \"%s\".\n", argv[i]); return (usage()); } } /* * Load the help index... */ hi = helpLoadIndex("testhi.index", dir); list_nodes("nodes", hi->nodes); list_nodes("sorted", hi->sorted); /* * Do any searches... */ if (q) { search = helpSearchIndex(hi, q, section, filename); if (search) { list_nodes(argv[1], search->sorted); helpDeleteIndex(search); } else printf("%s (0 nodes)\n", q); } helpDeleteIndex(hi); /* * Return with no errors... */ return (0); } /* * 'list_nodes()' - List nodes in an array... */ static void list_nodes(const char *title, /* I - Title string */ cups_array_t *nodes) /* I - Nodes */ { int i; /* Looping var */ help_node_t *node; /* Current node */ printf("%s (%d nodes):\n", title, cupsArrayCount(nodes)); for (i = 1, node = (help_node_t *)cupsArrayFirst(nodes); node; i ++, node = (help_node_t *)cupsArrayNext(nodes)) { if (node->anchor) printf(" %d: %s#%s \"%s\"", i, node->filename, node->anchor, node->text); else printf(" %d: %s \"%s\"", i, node->filename, node->text); printf(" (%d words)\n", cupsArrayCount(node->words)); } } /* * 'usage()' - Show program usage. */ static int /* O - Exit status */ usage(void) { puts("Usage: ./testhi [options] [\"query\"] [filename]"); puts("Options:"); puts("-d directory Specify index directory."); puts("-s section Specify search section."); return (1); } cups-2.4.7/cgi-bin/testcgi.c0000644000175000017500000000215714502571342015504 0ustar zdohnalzdohnal/* * CGI test program for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2005 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi.h" /* * 'main()' - Test the CGI code. */ int /* O - Exit status */ main(void) { /* * Test file upload/multi-part submissions... */ freopen("multipart.dat", "rb", stdin); putenv("CONTENT_TYPE=multipart/form-data; " "boundary=---------------------------1977426492562745908748943111"); putenv("REQUEST_METHOD=POST"); printf("cgiInitialize: "); if (cgiInitialize()) { const cgi_file_t *file; /* Upload file */ if ((file = cgiGetFile()) != NULL) { puts("PASS"); printf(" tempfile=\"%s\"\n", file->tempfile); printf(" name=\"%s\"\n", file->name); printf(" filename=\"%s\"\n", file->filename); printf(" mimetype=\"%s\"\n", file->mimetype); } else puts("FAIL (no file!)"); } else puts("FAIL (init)"); /* * Return with no errors... */ return (0); } cups-2.4.7/cgi-bin/template.c0000644000175000017500000003507414502571342015661 0ustar zdohnalzdohnal/* * CGI template function. * * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #include "cgi-private.h" #include #include /* * Local functions... */ static void cgi_copy(FILE *out, FILE *in, int element, char term, int indent); static void cgi_puts(const char *s, FILE *out); static void cgi_puturi(const char *s, FILE *out); /* * 'cgiCopyTemplateFile()' - Copy a template file and replace all the * '{variable}' strings with the variable value. */ void cgiCopyTemplateFile(FILE *out, /* I - Output file */ const char *tmpl) /* I - Template file to read */ { FILE *in; /* Input file */ fprintf(stderr, "DEBUG2: cgiCopyTemplateFile(out=%p, tmpl=\"%s\")\n", out, tmpl ? tmpl : "(null)"); /* * Range check input... */ if (!tmpl || !out) return; /* * Open the template file... */ if ((in = fopen(tmpl, "r")) == NULL) { fprintf(stderr, "ERROR: Unable to open template file \"%s\" - %s\n", tmpl, strerror(errno)); return; } /* * Parse the file to the end... */ cgi_copy(out, in, 0, 0, 0); /* * Close the template file and return... */ fclose(in); } /* * 'cgiCopyTemplateLang()' - Copy a template file using a language... */ void cgiCopyTemplateLang(const char *tmpl) /* I - Base filename */ { char filename[1024], /* Filename */ locale[16], /* Locale name */ *locptr; /* Pointer into locale name */ const char *directory, /* Directory for templates */ *lang; /* Language */ FILE *in; /* Input file */ fprintf(stderr, "DEBUG2: cgiCopyTemplateLang(tmpl=\"%s\")\n", tmpl ? tmpl : "(null)"); /* * Convert the language to a locale name... */ if ((lang = getenv("LANG")) != NULL) { locale[0] = '/'; strlcpy(locale + 1, lang, sizeof(locale) - 1); if ((locptr = strchr(locale, '.')) != NULL) *locptr = '\0'; /* Strip charset */ } else { locale[0] = '\0'; } fprintf(stderr, "DEBUG2: lang=\"%s\", locale=\"%s\"...\n", lang ? lang : "(null)", locale); /* * See if we have a template file for this language... */ directory = cgiGetTemplateDir(); snprintf(filename, sizeof(filename), "%s%s/%s", directory, locale, tmpl); if ((in = fopen(filename, "r")) == NULL) { locale[3] = '\0'; snprintf(filename, sizeof(filename), "%s%s/%s", directory, locale, tmpl); if ((in = fopen(filename, "r")) == NULL) { snprintf(filename, sizeof(filename), "%s/%s", directory, tmpl); in = fopen(filename, "r"); } } fprintf(stderr, "DEBUG2: Template file is \"%s\"...\n", filename); /* * Open the template file... */ if (!in) { fprintf(stderr, "ERROR: Unable to open template file \"%s\" - %s\n", filename, strerror(errno)); return; } /* * Parse the file to the end... */ cgi_copy(stdout, in, 0, 0, 0); /* * Close the template file and return... */ fclose(in); } /* * 'cgiGetTemplateDir()' - Get the templates directory... */ char * /* O - Template directory */ cgiGetTemplateDir(void) { const char *datadir; /* CUPS_DATADIR env var */ static char templates[1024] = ""; /* Template directory */ if (!templates[0]) { /* * Build the template directory pathname... */ if ((datadir = getenv("CUPS_DATADIR")) == NULL) datadir = CUPS_DATADIR; snprintf(templates, sizeof(templates), "%s/templates", datadir); } return (templates); } /* * 'cgiSetServerVersion()' - Set the server name and CUPS version... */ void cgiSetServerVersion(void) { cgiSetVariable("SERVER_NAME", getenv("SERVER_NAME")); cgiSetVariable("REMOTE_USER", getenv("REMOTE_USER")); cgiSetVariable("CUPS_VERSION", CUPS_SVERSION); #ifdef LC_TIME setlocale(LC_TIME, ""); #endif /* LC_TIME */ } /* * 'cgi_copy()' - Copy the template file, substituting as needed... */ static void cgi_copy(FILE *out, /* I - Output file */ FILE *in, /* I - Input file */ int element, /* I - Element number (0 to N) */ char term, /* I - Terminating character */ int indent) /* I - Debug info indentation */ { int ch; /* Character from file */ char op; /* Operation */ char name[255], /* Name of variable */ *nameptr, /* Pointer into name */ innername[255], /* Inner comparison name */ *innerptr, /* Pointer into inner name */ *s; /* String pointer */ const char *value; /* Value of variable */ const char *innerval; /* Inner value */ const char *outptr; /* Output string pointer */ char outval[1024], /* Formatted output string */ compare[1024]; /* Comparison string */ int result; /* Result of comparison */ int uriencode; /* Encode as URI */ regex_t re; /* Regular expression to match */ fprintf(stderr, "DEBUG2: %*sStarting at file position %ld...\n", indent, "", ftell(in)); /* * Parse the file to the end... */ while ((ch = getc(in)) != EOF) if (ch == term) break; else if (ch == '{') { /* * Get a variable name... */ uriencode = 0; for (s = name; (ch = getc(in)) != EOF;) if (strchr("}]<>=!~ \t\n", ch)) break; else if (s == name && ch == '%') uriencode = 1; else if (s > name && ch == '?') break; else if (s < (name + sizeof(name) - 1)) *s++ = (char)ch; *s = '\0'; if (s == name && isspace(ch & 255)) { fprintf(stderr, "DEBUG2: %*sLone { at %ld...\n", indent, "", ftell(in)); if (out) { putc('{', out); putc(ch, out); } continue; } if (ch == '}') fprintf(stderr, "DEBUG2: %*s\"{%s}\" at %ld...\n", indent, "", name, ftell(in)); /* * See if it has a value... */ if (name[0] == '?') { /* * Insert value only if it exists... */ if ((nameptr = strrchr(name, '-')) != NULL && isdigit(nameptr[1] & 255)) { *nameptr++ = '\0'; if ((value = cgiGetArray(name + 1, atoi(nameptr) - 1)) != NULL) outptr = value; else { outval[0] = '\0'; outptr = outval; } } else if ((value = cgiGetArray(name + 1, element)) != NULL) outptr = value; else { outval[0] = '\0'; outptr = outval; } } else if (name[0] == '#') { /* * Insert count... */ if (name[1]) snprintf(outval, sizeof(outval), "%d", cgiGetSize(name + 1)); else snprintf(outval, sizeof(outval), "%d", element + 1); outptr = outval; } else if (name[0] == '[') { /* * Loop for # of elements... */ int i; /* Looping var */ long pos; /* File position */ int count; /* Number of elements */ if (isdigit(name[1] & 255)) count = atoi(name + 1); else count = cgiGetSize(name + 1); pos = ftell(in); fprintf(stderr, "DEBUG2: %*sLooping on \"%s\" at %ld, count=%d...\n", indent, "", name + 1, pos, count); if (count > 0) { for (i = 0; i < count; i ++) { if (i) fseek(in, pos, SEEK_SET); cgi_copy(out, in, i, '}', indent + 2); } } else cgi_copy(NULL, in, 0, '}', indent + 2); fprintf(stderr, "DEBUG2: %*sFinished looping on \"%s\"...\n", indent, "", name + 1); continue; } else if (name[0] == '$') { /* * Insert cookie value or nothing if not defined. */ if ((value = cgiGetCookie(name + 1)) != NULL) outptr = value; else { outval[0] = '\0'; outptr = outval; } } else { /* * Insert variable or variable name (if element is NULL)... */ if ((nameptr = strrchr(name, '-')) != NULL && isdigit(nameptr[1] & 255)) { *nameptr++ = '\0'; if ((value = cgiGetArray(name, atoi(nameptr) - 1)) == NULL) { snprintf(outval, sizeof(outval), "{%s}", name); outptr = outval; } else outptr = value; } else if ((value = cgiGetArray(name, element)) == NULL) { snprintf(outval, sizeof(outval), "{%s}", name); outptr = outval; } else outptr = value; } /* * See if the terminating character requires another test... */ if (ch == '}') { /* * End of substitution... */ if (out) { if (uriencode) cgi_puturi(outptr, out); else if (!_cups_strcasecmp(name, "?cupsdconf_default")) fputs(outptr, stdout); else cgi_puts(outptr, out); } continue; } /* * OK, process one of the following checks: * * {name?exist:not-exist} Exists? * {name=value?true:false} Equal * {namevalue?true:false} Greater than * {name!value?true:false} Not equal * {name~refex?true:false} Regex match */ op = (char)ch; if (ch == '?') { /* * Test for existence... */ if (name[0] == '?') result = cgiGetArray(name + 1, element) != NULL; else if (name[0] == '#') result = cgiGetVariable(name + 1) != NULL; else result = cgiGetArray(name, element) != NULL; result = result && outptr[0]; compare[0] = '\0'; } else { /* * Compare to a string... */ for (s = compare; (ch = getc(in)) != EOF;) if (ch == '?') break; else if (s >= (compare + sizeof(compare) - 1)) continue; else if (ch == '#') { snprintf(s, sizeof(compare) - (size_t)(s - compare), "%d", element + 1); s += strlen(s); } else if (ch == '{') { /* * Grab the value of a variable... */ innerptr = innername; while ((ch = getc(in)) != EOF && ch != '}') if (innerptr < (innername + sizeof(innername) - 1)) *innerptr++ = (char)ch; *innerptr = '\0'; if (innername[0] == '#') snprintf(s, sizeof(compare) - (size_t)(s - compare), "%d", cgiGetSize(innername + 1)); else if ((innerptr = strrchr(innername, '-')) != NULL && isdigit(innerptr[1] & 255)) { *innerptr++ = '\0'; if ((innerval = cgiGetArray(innername, atoi(innerptr) - 1)) == NULL) *s = '\0'; else strlcpy(s, innerval, sizeof(compare) - (size_t)(s - compare)); } else if (innername[0] == '?') { if ((innerval = cgiGetArray(innername + 1, element)) == NULL) *s = '\0'; else strlcpy(s, innerval, sizeof(compare) - (size_t)(s - compare)); } else if ((innerval = cgiGetArray(innername, element)) == NULL) snprintf(s, sizeof(compare) - (size_t)(s - compare), "{%s}", innername); else strlcpy(s, innerval, sizeof(compare) - (size_t)(s - compare)); s += strlen(s); } else if (ch == '\\') *s++ = (char)getc(in); else *s++ = (char)ch; *s = '\0'; if (ch != '?') { fprintf(stderr, "DEBUG2: %*sBad terminator '%c' at file position %ld...\n", indent, "", ch, ftell(in)); return; } /* * Do the comparison... */ switch (op) { case '<' : result = _cups_strcasecmp(outptr, compare) < 0; break; case '>' : result = _cups_strcasecmp(outptr, compare) > 0; break; case '=' : result = _cups_strcasecmp(outptr, compare) == 0; break; case '!' : result = _cups_strcasecmp(outptr, compare) != 0; break; case '~' : fprintf(stderr, "DEBUG: Regular expression \"%s\"\n", compare); if (regcomp(&re, compare, REG_EXTENDED | REG_ICASE)) { fprintf(stderr, "ERROR: Unable to compile regular expression \"%s\"!\n", compare); result = 0; } else { regmatch_t matches[10]; result = 0; if (!regexec(&re, outptr, 10, matches, 0)) { int i; for (i = 0; i < 10; i ++) { fprintf(stderr, "DEBUG: matches[%d].rm_so=%d\n", i, (int)matches[i].rm_so); if (matches[i].rm_so < 0) break; result ++; } } regfree(&re); } break; default : result = 1; break; } } fprintf(stderr, "DEBUG2: %*sStarting \"{%s%c%s\" at %ld, result=%d...\n", indent, "", name, op, compare, ftell(in), result); if (result) { /* * Comparison true; output first part and ignore second... */ fprintf(stderr, "DEBUG2: %*sOutput first part...\n", indent, ""); cgi_copy(out, in, element, ':', indent + 2); fprintf(stderr, "DEBUG2: %*sSkip second part...\n", indent, ""); cgi_copy(NULL, in, element, '}', indent + 2); } else { /* * Comparison false; ignore first part and output second... */ fprintf(stderr, "DEBUG2: %*sSkip first part...\n", indent, ""); cgi_copy(NULL, in, element, ':', indent + 2); fprintf(stderr, "DEBUG2: %*sOutput second part...\n", indent, ""); cgi_copy(out, in, element, '}', indent + 2); } fprintf(stderr, "DEBUG2: %*sFinished \"{%s%c%s\", out=%p...\n", indent, "", name, op, compare, out); } else if (ch == '\\') /* Quoted char */ { if (out) putc(getc(in), out); else getc(in); } else if (out) putc(ch, out); if (ch == EOF) fprintf(stderr, "DEBUG2: %*sReturning at file position %ld on EOF...\n", indent, "", ftell(in)); else fprintf(stderr, "DEBUG2: %*sReturning at file position %ld on character '%c'...\n", indent, "", ftell(in), ch); if (ch == EOF && term) fprintf(stderr, "ERROR: %*sSaw EOF, expected '%c'!\n", indent, "", term); /* * Flush any pending output... */ if (out) fflush(out); } /* * 'cgi_puts()' - Put a string to the output file, quoting as needed... */ static void cgi_puts(const char *s, /* I - String to output */ FILE *out) /* I - Output file */ { while (*s) { if (*s == '<') fputs("<", out); else if (*s == '>') fputs(">", out); else if (*s == '\"') fputs(""", out); else if (*s == '\'') fputs("'", out); else if (*s == '&') fputs("&", out); else putc(*s, out); s ++; } } /* * 'cgi_puturi()' - Put a URI string to the output file, quoting as needed... */ static void cgi_puturi(const char *s, /* I - String to output */ FILE *out) /* I - Output file */ { while (*s) { if (strchr("%@&+ <>#=", *s) || *s < ' ' || *s & 128) fprintf(out, "%%%02X", *s & 255); else putc(*s, out); s ++; } } cups-2.4.7/cgi-bin/search.c0000644000175000017500000001370214502571342015305 0ustar zdohnalzdohnal/* * Search routines for CUPS. * * Copyright 2007-2018 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cgi-private.h" #include /* * 'cgiCompileSearch()' - Compile a search string. */ void * /* O - Search context */ cgiCompileSearch(const char *query) /* I - Query string */ { regex_t *re; /* Regular expression */ char *s, /* Regular expression string */ *sptr, /* Pointer into RE string */ *sword; /* Pointer to start of word */ size_t slen; /* Allocated size of RE string */ const char *qptr, /* Pointer into query string */ *qend; /* End of current word */ const char *prefix; /* Prefix to add to next word */ int quoted; /* Word is quoted */ size_t wlen; /* Word length */ char *lword; /* Last word in query */ /* * Range check input... */ if (!query) return (NULL); /* * Allocate a regular expression storage structure... */ if ((re = (regex_t *)calloc(1, sizeof(regex_t))) == NULL) return (NULL); /* * Allocate a buffer to hold the regular expression string, starting * at 1024 bytes or 3 times the length of the query string, whichever * is greater. We'll expand the string as needed... */ slen = strlen(query) * 3; if (slen < 1024) slen = 1024; if ((s = (char *)malloc(slen)) == NULL) { free(re); return (NULL); } /* * Copy the query string to the regular expression, handling basic * AND and OR logic... */ prefix = ".*"; qptr = query; sptr = s; lword = NULL; while (*qptr) { /* * Skip leading whitespace... */ while (isspace(*qptr & 255)) qptr ++; if (!*qptr) break; /* * Find the end of the current word... */ if (*qptr == '\"' || *qptr == '\'') { /* * Scan quoted string... */ quoted = *qptr ++; for (qend = qptr; *qend && *qend != quoted; qend ++); if (!*qend) { /* * No closing quote, error out! */ free(s); free(re); if (lword) free(lword); return (NULL); } } else { /* * Scan whitespace-delimited string... */ quoted = 0; for (qend = qptr + 1; *qend && !isspace(*qend); qend ++); } wlen = (size_t)(qend - qptr); /* * Look for logic words: AND, OR */ if (wlen == 3 && !_cups_strncasecmp(qptr, "AND", 3)) { /* * Logical AND with the following text... */ if (sptr > s) prefix = ".*"; qptr = qend; } else if (wlen == 2 && !_cups_strncasecmp(qptr, "OR", 2)) { /* * Logical OR with the following text... */ if (sptr > s) prefix = ".*|.*"; qptr = qend; } else { /* * Add a search word, making sure we have enough room for the * string + RE overhead... */ wlen = (size_t)(sptr - s) + 2 * 4 * wlen + 2 * strlen(prefix) + 11; if (lword) wlen += strlen(lword); if (wlen > slen) { /* * Expand the RE string buffer... */ char *temp; /* Temporary string pointer */ slen = wlen + 128; temp = (char *)realloc(s, slen); if (!temp) { free(s); free(re); if (lword) free(lword); return (NULL); } sptr = temp + (sptr - s); s = temp; } /* * Add the prefix string... */ memcpy(sptr, prefix, strlen(prefix) + 1); sptr += strlen(sptr); /* * Then quote the remaining word characters as needed for the * RE... */ sword = sptr; while (qptr < qend) { /* * Quote: ^ . [ $ ( ) | * + ? { \ */ if (strchr("^.[$()|*+?{\\", *qptr)) *sptr++ = '\\'; *sptr++ = *qptr++; } *sptr = '\0'; /* * For "word1 AND word2", add reciprocal "word2 AND word1"... */ if (!strcmp(prefix, ".*") && lword) { char *lword2; /* New "last word" */ if ((lword2 = strdup(sword)) == NULL) { free(lword); free(s); free(re); return (NULL); } memcpy(sptr, ".*|.*", 6); sptr += 5; memcpy(sptr, lword2, strlen(lword2) + 1); sptr += strlen(sptr); memcpy(sptr, ".*", 3); sptr += 2; memcpy(sptr, lword, strlen(lword) + 1); sptr += strlen(sptr); free(lword); lword = lword2; } else { if (lword) free(lword); lword = strdup(sword); } prefix = ".*|.*"; } /* * Advance to the next string... */ if (quoted) qptr ++; } if (lword) free(lword); if (sptr > s) memcpy(sptr, ".*", 3); else { /* * No query data, return NULL... */ free(s); free(re); return (NULL); } /* * Compile the regular expression... */ if (regcomp(re, s, REG_EXTENDED | REG_ICASE)) { free(re); free(s); return (NULL); } /* * Free the RE string and return the new regular expression we compiled... */ free(s); return ((void *)re); } /* * 'cgiDoSearch()' - Do a search of some text. */ int /* O - Number of matches */ cgiDoSearch(void *search, /* I - Search context */ const char *text) /* I - Text to search */ { int i; /* Looping var */ regmatch_t matches[100]; /* RE matches */ /* * Range check... */ if (!search || !text) return (0); /* * Do a lookup... */ if (!regexec((regex_t *)search, text, sizeof(matches) / sizeof(matches[0]), matches, 0)) { /* * Figure out the number of matches in the string... */ for (i = 0; i < (int)(sizeof(matches) / sizeof(matches[0])); i ++) if (matches[i].rm_so < 0) break; return (i); } else return (0); } /* * 'cgiFreeSearch()' - Free a compiled search context. */ void cgiFreeSearch(void *search) /* I - Search context */ { regfree((regex_t *)search); free(search); } cups-2.4.7/cgi-bin/printers.c0000644000175000017500000003140314502571342015704 0ustar zdohnalzdohnal/* * Printer status CGI for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" #include /* * Local functions... */ static void do_printer_op(http_t *http, const char *printer, ipp_op_t op, const char *title); static void show_all_printers(http_t *http, const char *username); static void show_printer(http_t *http, const char *printer); /* * 'main()' - Main entry for CGI. */ int /* O - Exit status */ main(void) { const char *printer; /* Printer name */ const char *user; /* Username */ http_t *http; /* Connection to the server */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ const char *op; /* Operation to perform, if any */ static const char *def_attrs[] = /* Attributes for default printer */ { "printer-name", "printer-uri-supported" }; /* * Get any form variables... */ cgiInitialize(); op = cgiGetVariable("OP"); /* * Set the web interface section... */ cgiSetVariable("SECTION", "printers"); cgiSetVariable("REFRESH_PAGE", ""); /* * See if we are displaying a printer or all printers... */ if ((printer = getenv("PATH_INFO")) != NULL) { printer ++; if (!*printer) printer = NULL; if (printer) cgiSetVariable("PRINTER_NAME", printer); } /* * See who is logged in... */ user = getenv("REMOTE_USER"); /* * Connect to the HTTP server... */ http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); /* * Get the default printer... */ if (!op || !cgiIsPOST()) { /* * Get the default destination... */ request = ippNewRequest(CUPS_GET_DEFAULT); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(def_attrs) / sizeof(def_attrs[0]), NULL, def_attrs); if ((response = cupsDoRequest(http, request, "/")) != NULL) { if ((attr = ippFindAttribute(response, "printer-name", IPP_TAG_NAME)) != NULL) cgiSetVariable("DEFAULT_NAME", attr->values[0].string.text); if ((attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL) { char url[HTTP_MAX_URI]; /* New URL */ cgiSetVariable("DEFAULT_URI", cgiRewriteURL(attr->values[0].string.text, url, sizeof(url), NULL)); } ippDelete(response); } /* * See if we need to show a list of printers or the status of a * single printer... */ if (!printer) show_all_printers(http, user); else show_printer(http, printer); } else if (printer) { if (!*op) { const char *server_port = getenv("SERVER_PORT"); /* Port number string */ int port = atoi(server_port ? server_port : "0"); /* Port number */ char uri[1024]; /* URL */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), getenv("HTTPS") ? "https" : "http", NULL, getenv("SERVER_NAME"), port, "/printers/%s", printer); printf("Location: %s\n\n", uri); } else if (!strcmp(op, "start-printer")) do_printer_op(http, printer, IPP_RESUME_PRINTER, cgiText(_("Resume Printer"))); else if (!strcmp(op, "stop-printer")) do_printer_op(http, printer, IPP_PAUSE_PRINTER, cgiText(_("Pause Printer"))); else if (!strcmp(op, "accept-jobs")) do_printer_op(http, printer, CUPS_ACCEPT_JOBS, cgiText(_("Accept Jobs"))); else if (!strcmp(op, "reject-jobs")) do_printer_op(http, printer, CUPS_REJECT_JOBS, cgiText(_("Reject Jobs"))); else if (!strcmp(op, "cancel-jobs")) do_printer_op(http, printer, IPP_OP_CANCEL_JOBS, cgiText(_("Cancel Jobs"))); else if (!_cups_strcasecmp(op, "print-self-test-page")) cgiPrintCommand(http, printer, "PrintSelfTestPage", cgiText(_("Print Self-Test Page"))); else if (!_cups_strcasecmp(op, "clean-print-heads")) cgiPrintCommand(http, printer, "Clean all", cgiText(_("Clean Print Heads"))); else if (!_cups_strcasecmp(op, "print-test-page")) cgiPrintTestPage(http, printer); else if (!_cups_strcasecmp(op, "move-jobs")) cgiMoveJobs(http, printer, 0); else { /* * Unknown/bad operation... */ cgiStartHTML(printer); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } } else { /* * Unknown/bad operation... */ cgiStartHTML(cgiText(_("Printers"))); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } /* * Close the HTTP server connection... */ httpClose(http); /* * Return with no errors... */ return (0); } /* * 'do_printer_op()' - Do a printer operation. */ static void do_printer_op(http_t *http, /* I - HTTP connection */ const char *printer, /* I - Printer name */ ipp_op_t op, /* I - Operation to perform */ const char *title) /* I - Title of page */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI], /* Printer URI */ resource[HTTP_MAX_URI]; /* Path for request */ /* * Build a printer request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(op); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ snprintf(resource, sizeof(resource), "/printers/%s", printer); ippDelete(cupsDoRequest(http, request, resource)); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(_("Unable to do maintenance command")); } else { /* * Redirect successful updates back to the printer page... */ char url[1024], /* Printer/class URL */ refresh[1024]; /* Refresh URL */ cgiRewriteURL(uri, url, sizeof(url), NULL); cgiFormEncode(uri, url, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); if (op == IPP_PAUSE_PRINTER) cgiCopyTemplateLang("printer-stop.tmpl"); else if (op == IPP_RESUME_PRINTER) cgiCopyTemplateLang("printer-start.tmpl"); else if (op == CUPS_ACCEPT_JOBS) cgiCopyTemplateLang("printer-accept.tmpl"); else if (op == CUPS_REJECT_JOBS) cgiCopyTemplateLang("printer-reject.tmpl"); else if (op == IPP_OP_CANCEL_JOBS) cgiCopyTemplateLang("printer-cancel-jobs.tmpl"); } cgiEndHTML(); } /* * 'show_all_printers()' - Show all printers... */ static void show_all_printers(http_t *http, /* I - Connection to server */ const char *user) /* I - Username */ { int i; /* Looping var */ ipp_t *request, /* IPP request */ *response; /* IPP response */ cups_array_t *printers; /* Array of printer objects */ ipp_attribute_t *printer; /* Printer object */ int first, /* First printer to show */ count; /* Number of printers */ const char *var; /* Form variable */ void *search; /* Search data */ char val[1024]; /* Form variable */ fprintf(stderr, "DEBUG: show_all_printers(http=%p, user=\"%s\")\n", http, user ? user : "(null)"); /* * Show the standard header... */ cgiStartHTML(cgiText(_("Printers"))); /* * Build a CUPS_GET_PRINTERS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-type * printer-type-mask * requesting-user-name */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type", 0); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type-mask", CUPS_PRINTER_CLASS); if (user) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); cgiGetAttributes(request, "printers.tmpl"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Get a list of matching job objects. */ if ((var = cgiGetVariable("QUERY")) != NULL && !cgiGetVariable("CLEAR")) search = cgiCompileSearch(var); else search = NULL; printers = cgiGetIPPObjects(response, search); count = cupsArrayCount(printers); if (search) cgiFreeSearch(search); /* * Figure out which printers to display... */ if ((var = cgiGetVariable("FIRST")) != NULL) first = atoi(var); else first = 0; if (first >= count) first = count - CUPS_PAGE_MAX; first = (first / CUPS_PAGE_MAX) * CUPS_PAGE_MAX; if (first < 0) first = 0; snprintf(val, sizeof(val), "%d", count); cgiSetVariable("TOTAL", val); for (i = 0, printer = (ipp_attribute_t *)cupsArrayIndex(printers, first); i < CUPS_PAGE_MAX && printer; i ++, printer = (ipp_attribute_t *)cupsArrayNext(printers)) cgiSetIPPObjectVars(printer, NULL, i); /* * Save navigation URLs... */ cgiSetVariable("THISURL", "/printers/"); if (first > 0) { snprintf(val, sizeof(val), "%d", first - CUPS_PAGE_MAX); cgiSetVariable("PREV", val); } if ((first + CUPS_PAGE_MAX) < count) { snprintf(val, sizeof(val), "%d", first + CUPS_PAGE_MAX); cgiSetVariable("NEXT", val); } if (count > CUPS_PAGE_MAX) { snprintf(val, sizeof(val), "%d", CUPS_PAGE_MAX * (count / CUPS_PAGE_MAX)); cgiSetVariable("LAST", val); } /* * Then show everything... */ cgiCopyTemplateLang("search.tmpl"); cgiCopyTemplateLang("printers-header.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); cgiCopyTemplateLang("printers.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); /* * Delete the response... */ cupsArrayDelete(printers); ippDelete(response); } else { /* * Show the error... */ cgiShowIPPError(_("Unable to get printer list")); } cgiEndHTML(); } /* * 'show_printer()' - Show a single printer. */ static void show_printer(http_t *http, /* I - Connection to server */ const char *printer) /* I - Name of printer */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ char uri[HTTP_MAX_URI]; /* Printer URI */ char refresh[1024]; /* Refresh URL */ fprintf(stderr, "DEBUG: show_printer(http=%p, printer=\"%s\")\n", http, printer ? printer : "(null)"); /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); cgiGetAttributes(request, "printer.tmpl"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Got the result; set the CGI variables and check the status of a * single-queue request... */ cgiSetIPPVars(response, NULL, NULL, NULL, 0); if (printer && (attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL && attr->values[0].integer == IPP_PRINTER_PROCESSING) { /* * Printer is processing - automatically refresh the page until we * are done printing... */ cgiFormEncode(uri, printer, sizeof(uri)); snprintf(refresh, sizeof(refresh), "10;URL=/printers/%s", uri); cgiSetVariable("refresh_page", refresh); } /* * Delete the response... */ ippDelete(response); /* * Show the standard header... */ cgiStartHTML(printer); /* * Show the printer status... */ cgiCopyTemplateLang("printer.tmpl"); /* * Show jobs for the specified printer... */ cgiCopyTemplateLang("printer-jobs-header.tmpl"); cgiShowJobs(http, printer); } else { /* * Show the IPP error... */ cgiStartHTML(printer); cgiShowIPPError(_("Unable to get printer status")); } cgiEndHTML(); } cups-2.4.7/cgi-bin/multipart.dat0000644000175000017500000014235314502571342016414 0ustar zdohnalzdohnal-----------------------------1977426492562745908748943111 Content-Disposition: form-data; name="MAX_FILE_SIZE" 10485760 -----------------------------1977426492562745908748943111 Content-Disposition: form-data; name="filenamefield"; filename="overview.pdf" Content-Type: application/pdf %PDF-1.2 % 1 0 obj<>endobj 2 0 obj<>endobj 3 0 obj<>endobj 4 0 obj<>endobj 5 0 obj<>endobj 6 0 obj<>endobj 7 0 obj<>endobj 8 0 obj<>endobj 9 0 obj<]/Interpolate true/Filter/FlateDecode/Width 941/Height 341/BitsPerComponent 4/Length 5709 >>stream xOhYlUю l$30ѲfCj/1 sQ06 ;ILg9F_}XKCmuE B_’~c^ϲ>z~,[N l̰?%oq~ϿC)tǭ/ub֍~y؛ros{x8Y*i]~CVX?iuy?UtowtG5_~T*ɦAx`(v\G`1f^w* VkY/wES' vv~/t5XmdySRDW&zY;ŒY_wyʰ>td]FDU?^*KyJk`YEe!b/X}'2][&+cX=ow٤?ߍ55tJ]O)éۤdYO]%~O":&Y.Xu7;/::3y&w =@D[TLuJ٣K $~Svuo5PXX?=;+}|N7z#Yo)cʓzYEnwSRO^԰g_77dY:tc͝fI/6|!<YK28kqYĺxpGtǽBGV]c獄4aeg",ZZ1VǺ5ìj5 Vx\,*MW|z[ ~zͯ@Ygg}kyYÑpɰ8>udԔq  VpYF'g'2oYhKϚtK孷vIYXR'JX9]W&u/Ǭʔiֵ,6]"rw=ֳ?nd%DQOI㌳WX&kzI5!XmbVXw1Evo"V{rXmb݉=ZZ)q@Vvn8Z~FVZUh'BVj't\vtK}7XdT6gf$V+YeP;BwŲ.w%'5W(]OgKYZ_ .Ռ/<;j5% 8Hl㿡tomnM94μ`+X V`+X V`+X V`+X lF_ ש|TES>Պ*-ζWG#fUCX_]峖U{o\?j0r&ئW{wzg=p;y>İr8'kOָ&V/!So.:aN*Y,kW]Ҭ. ӺTSʽqic%ʏь!&|Q#K=kX9?Xj"afU5fuǔ#^[9k Y+~$d0Xfåu?o J`M#+dO,LkWXwVj9MkelM~h9Ymיq%ߟyăV_oD+Y%+Sc%^9RYꊦZ g7yy`0܀S>+Ԛ]'bu)Zwy2XG^VƓzaVfxu>b/kfUph kcDLXSDÝpNܯWV<2gmd:BxCY25}&G<`n+g[eyʼf4vzy`V p5 !hVIw`Pӕ'̕DVN[+ l`5ro\N3gaޚ7Q^QU4{Ǯch(3nTjS4UG"ޱA\?07k]f71zkHIm/GMNSeTdXM2wM'|Z&LѡnxWbYy-Yq\kV9fU7-K[cOkJuʫ gW0? 8`+X V`+X Vu٬a&YS|u[lY]T`/Vr!~m|G[AmZ 7&]way?Ųuc ׃,G4qpV~༧~)Z?ͥA*Ioh%uLo?KW`Z^5Bjm:0Jk:X#&7)m4q V[(CFJ[-M\_5RjizHiV+j^%T]`̓u´SALMcq*QL 6?y2ָY{2c*QJĥs#>cC&*tvwd-n-k~tczXJp >t]G2uU,dFSwB9q}Z䆻^w'*6X?'fջ/!9ֲp.kJ_J?k@ vҌ]Wխ!Sq5Z+X]TϧY2V܈]j־[VUWj&&*ZW݈3kA;jpQ DsׄWŽa]H?AUѬ_rqϕcV~rD&EI'uµ~-%"^ɷSycKwn;*$+{杦a29*vȍUsSX;ԛgIE{oɗKkqƑTec9yʕ}sxt8~VQ/$pإ+J'Ty?#9j_xJ;vE[Ulݢa5OLDﳶqhuTEW`lԟ<|ŪvsΎt;& o$k|VO]$N5/z^4 y6αf >>U!Va2'0N__#sKq*n1DHpU#C8KX2b> Pa=A)>P-2_pԫ;\ɪǭi)GL[hYbQ)FTVUlWG*dRO M *.f-C&yGWU^RMbZ AS!T:Ց%*߬EWX>@[M<%>]1c?fl{ѰLEY^[OY9򟌅5a\vuMxT$ .UcwJIVy1-ࠗEZG2aK [gXzNI{$XeROE2Ͳ `MUxpNT#Ԅ_\5;h6>0dWAЈG $k5/WNU~5Bс5cKSZOF\i pX V`+X b=ĥ,G..V\xvkx?$Y7OЉ&޾:27k?[`+X V`+X V`+X V`+X V`+X VdS#˫$77I~u<\8gRM98K=緎gvt V`+X V`+Xd=':<ބPal{zcb5ŅUiTJغqASfySd<73̬uuYư̌>g`~P=k/5֎ͬFS{vyV5ɧ?lUzn6|ewt÷xU~ՙ69Oz[ zrkͲq!VHɹs ROF2Zҁp ^23QOFw EjbrBۤ0z2Xu rӣ %p !rfm;Jϣ-'ɯ'kvF;N[IvN:4zSs-6R^rOb(.YRNMͳ5m7bbG-VNzbʹq#zj6ǚ[L}- ʎ|ewX[~cI\ؑ1S9C[oxؓ]l`x-y=V K>z㈄^ꄹU+Il;Κje+ə*ҡkXeXXlfWҰ|~uU cA^7qLPnq!6ĪFFXԬN78fY[xXlaqjg#efA%Dϔ#&zTѬř4.хLSk5]IdI <2dtPGѬI7fUo z3w\ZCl? }6Y眻Q5&kiF6XeMܬN\z3wlR#K` [zcKo#VK5Pm,Lz)LW$|HTr^&|CH8UMxX ;t9& V"z%eWmY,gO,.iUkY-; qv(>X V`+X V`+X Va/e9?kz/ey(X3~YӼe Hendstream endobj 10 0 obj<]/Interpolate true/Filter/FlateDecode/Width 431/Height 511/BitsPerComponent 4/Length 5955 >>stream x_{,՘sgsnyv͹*o (}s=B-oL7Sӹ|ڹHt}\IYmc,ϯZP7?kz{I%בs+^y>EK!;fĽWGս$^J[Np2Y^#r CK$KsqHB*Y$ׯ$XIOqyAO`7G($F0RcvYX`,QK_<`XIr+rsl>9%o@jEʏ\] A!~giA + suɢX 9``,D.ء-]IrqC zznZ2L.pҩ9C3X<71d) *7+H=pI{$\lSyӹ`),+rLs-EPc5\ qu^<$praoZZ'Cog,8Ç'Hk\x.of.Xtr]_!J*%\ɰrUK9d(gX.n"a8+hu =q\h!M:RWGf( ÅWü^ppqE3W̖U";عH4ԟ5\ˬ\UdÅalOzgqɴ.&Elvn& Or!U> eE$WQdHT).ό .ss$ʟfBf+5!ff6FG ZmEF2R%bU ߘZZhzOc=ܞirG|ǀDP\;#Pn5Jt\#cd8 ^9+1s^>,іu@r\|kY빀輦r# d>sD5͕Z!(3Fpxr}- 1J_:j e"XQJC+sm\#*(+@^k++1sQ1QrWA4C+uW-;m4\jVu3TTRʕN\HAW\{m-8;^9\S\HQV%Ξ*;p݆\=$vfx:!6 &0s?i#Ѱ|UiĽG! ]!:4D.\Wn/Bff~/Y3G~juk[x>BbI}K{p%1WSQ*!rxhS=4\޴E๎,ĦslU* K^"q,N=ͺXR32*6(uN!sUa7R-&?{-quR54} )agN|گVUr(*zE%\0bQcja\WWŎ:èʯ&7ፋ5.d~9rBE rѼ~[I2/y>~<*~u>mmkdd[> 6YkvKI?\%} 3õru3t1p%ZRߴ۫)7uj*(a69\?F\W5 q1קhOs4Aϕ긆P\;w9?f68$DVu,kuEj;`[/'~yu>׸Qu E{έu>׸QuD(-Gi!ƍ\'Jo=A\Fv.yr·52r50J+u:kHDשw\]]pF1쪎xmװWuMkCP\FF#I?|(a##בz3l8·6*iwWZPU:kЈϕ!҃ۛ_m{]\q b+\.)P7|8AQ`Nu\4]6KmtFDՍ+ Nq\;rXWgAeIR5éR\D`.aš·R kOrKi$yWR+o\C@.:KmTi?e*Ҩy*?6yj9\J#!.J\å6*_WK·R5h .28\j#ueN.V.F.FU&VSʋf ]aVx%\kɁAo.U~s}skEur\\\\\877Wxĝc僾WJ,׿;WLw)uz^_S_6$aNSW?J4s*Gj|<5:W4˼a_̍*+A}aDI}asGV\[Zo 225p2A 2rRpuOOr]յzm]W|t~P(~I*I#B[Ն䪤ûH.|nzӄ*%Y@̆4~|1`\ Wa*L83N)&Rw\;S0k$x2č2uI\MΖ^㺝u>%S΍uI\~M`\}?/6r;/mW8.)d}.ݸz{q.xvˎ\S簕8u)\"};t,(\Yi=QuuKzіJ9S] 1"(Jl:Yuu5_5 .lo/EMcX^rxGo7PꄪK:[S2㤙K:[v¾[.Ŷsq=\c$K>U2R>L0AT NS] ׇd1:rոC T] y`\b[$. aS˽RrRR͚̝0됍k.}8`\< :;U=V\.m?Ck%W޶%SAqi^,NեpI UMՆ\uI\%^v7Qu5QUsmq6뒸opufqu(Oe^̏~\ez?_.X}4FƃN=Bzy=Kb}se:[z\ *\\s9-,W͵]%We_m(WN ͵ 9 (WD5[^sFH5~ lRW;~/RBq 8l{oc 8J}!8¦-HP\CX-# 8Z꾏`3X `5:|`%:VZ`Atcs`Pj(}leP 2; (lvG}##s`]'q =stQ }-lTB"p "H\ըBtCЗT)/KHF v5rxb1 " pc>Y2WADh$BPhW"[ ! zG"GZ=cDRV!%@|\V!ʅغIW!W(p*E!pH/ 1G#A`3۪!B# )zF\ &.(C"w'  I±?~dKO#z@Oe'>rsXxb'H*pH8( N0!y5  .Aj\P;$H/i6]NKJ׀ uj.f["mzEjr,d!64C g!C<Ҟ7ЭxCKe !>nl$N9, pLW%U͠gM,[5fvaynkgVAZܞ;(38#3-À7Ig#c(w +4oX:ۀzEp!~+Xjc X L/A)㸎XCõAr (A8N8eB *z7C p|j=\xC (@jik 6%MfhҖ9IΆHK' Γ6wF[~g gm9Z 8 SL>ߋ#|pOjHS;(D('1r`<Tycp>7N:awA wUDz# ɝ2K`?gR`MAƚ<:x\}~9̉հu?ظ$u^Y[_:Vq%~yFYc'.;ϳW91,;ˀ]w;G.2Lkqoq\]<=m)Ιǀy/G kM.W|v݀ٷp\bmÅ"QzH䏫]pX;4Eõ}rE <(֢4.AB:.+qE`C█:qu+B*/ȵ%Rr_\Kzgk4GZl^\ M1bbk)Flߐe>^3X>< 󩏍e𧯾Vߨ^/Cz5"u{I.._\矾" Gyeǧ||0˨Y iCr]I?N!?74u7/O߿Y(?endstream endobj 11 0 obj<

    Overview

    >endobj 12 0 obj<>endobj 13 0 obj<>endobj 14 0 obj<>endobj 15 0 obj[12 0 R 14 0 R]endobj 16 0 obj<>endobj 17 0 obj<>endobj 18 0 obj<>endobj 19 0 obj<>endobj 20 0 obj<>endobj 21 0 obj<>endobj 22 0 obj<>endobj 23 0 obj<>endobj 24 0 obj<>endobj 25 0 obj<>endobj 26 0 obj<>endobj 27 0 obj<>endobj 28 0 obj<>endobj 29 0 obj[16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R]endobj 30 0 obj<>endobj 31 0 obj<>endobj 32 0 obj<>endobj 33 0 obj<>endobj 34 0 obj<>endobj 35 0 obj<>endobj 36 0 obj<>endobj 37 0 obj<>endobj 38 0 obj<>endobj 39 0 obj<>endobj 40 0 obj[31 0 R 33 0 R 35 0 R 37 0 R 39 0 R]endobj 41 0 obj<>endobj 42 0 obj<>endobj 43 0 obj<>endobj 44 0 obj<>endobj 45 0 obj<>endobj 46 0 obj<>endobj 47 0 obj<>endobj 48 0 obj<>endobj 49 0 obj<>endobj 50 0 obj<>endobj 51 0 obj<>endobj 52 0 obj<>endobj 53 0 obj[42 0 R 44 0 R 46 0 R 48 0 R 50 0 R 52 0 R]endobj 54 0 obj<>endobj 55 0 obj<>endobj 56 0 obj<>endobj 57 0 obj<>endobj 58 0 obj<>endobj 59 0 obj<>endobj 60 0 obj<>endobj 61 0 obj<>endobj 62 0 obj<>endobj 63 0 obj<>endobj 64 0 obj<>endobj 65 0 obj<>endobj 66 0 obj<>endobj 67 0 obj<>endobj 68 0 obj<>endobj 69 0 obj<>endobj 70 0 obj<>endobj 71 0 obj<>endobj 72 0 obj<>/XObject<>>>/Annots 15 0 R>>endobj 73 0 obj<>stream xڍ[s%+*0Ѣ~yEaHDMnuf4VOA&ĮqE~\@P(ﯺ 5K ss7pOjk^1XFB|Xm-Qm5kLXMmޅ0P 74-}x6}>5^x\5albo6d[Q~1FVQ[[~`wZxtR`Q9K8d^-pjӸm&y_m3n+0jS')Nja/0aaĨqр*jʏ̮Y!M,qU Ֆm 6ĎϵzӾ-HU6kcMU` 5AfE-cZ薶 SB6ѣQU?'hOZyZPHQxKɅڲqTuu5~=M [9zsű K MqF׵~H_`yޠT mMTX-)VQjO:]8PF*jC{=\剔BƠszL 2MՖնi ̯u㌅0ɩkj$W5|qMmYFm\D_p 櫅%[@-cu_-4Cj;ntGwj}lܴ4jẅ1zf m Ũ6A`MM0FFs}B>׭VxjC|I#Ksj0FM0)UsI'u5ŰZhrc5 ,Obzx;5ѼPnݩܺ'&j1^Bӊ_0 nڰřIWg ,J(c}TҔ{1nAfnm ̿RaK zd MԆeZ(V۴t]Q˘6lc0FVQ~@-cXmk+jjKRֹ*jy6ƭenXm#`%]6qHme16'raTԆ6@m/wmîͨeWӢ&Z]PUԶn[֡ J`Z4zC5^zU`kJU-cѬjsM9y+q)0JUS5Uh~|ʕ魷6R`~5c_e X`5 2MyXh*um@-c- a2e _zjƓxj}\;ZSXneWk5Z*j0>OFk+ƺ`5;5Tȭ nW:N<}{.PViEy]M8e@M0ׅ9yq^ڲjm<\1F+ qYشZW-i;m6k T/4s6Mv|(4<\W*jj+ְp)K3 0bR_2\t6$Be=T &OEꮊix<.dl D,{j&Ḧ́7c`8H1WCM͘llj&Ḧ́7c`8Ḧ́^~r[L޹7c~xoj&Ḧ́7c4Mg4q^f»~xӇ~Rfohڪ /R3X%Ûy91K0l*T ƅP,fʘo,f̢Ic6-an@0c,\jXŌYPc`,2V1 Y<7Q7+cf-h\0&fBʱfaLR 15K0lT3fcf%̽RcŒYSfB1 bj`,2V1 ƾ_.0+aYyO91 a.ԘԌYH͘0YX~i⾨2X?j` ( =E1! G>cC<`f[b`c.`%Gu3֣!֣BF\ӌUs'K%MvK*U W1^`x1foqS_ &л*V /X\ o*X%sR*fK# ›03 ˆܩqj›Jx3V \/Lx8=s70͘^p&7cf^9MsWɡϊ eKPތU›JxpxP+ . 榥bk.T+`8߉aU1^d8]ͬ)N;ܺY1:ܫѹG0y`6SlsY >sY~\.O [By; 0>*GcQznzTIJ̻t0V3/qMZլ [Ԍ3֣B'*01֣BSQ"\7c`^'>OvΓ۸\0a둚azT>cQznzT7~Qܗj9~dZt!u3V^1h=TS!B'(0k/cLupzUs81c0'f`zfGjXzTbj=ՍۗjKMk9zzu Y/k=|TbpNjGNUJG!֣ynz7c=䈜`x|>a5 GQjc*X 5CLGu#\q݌(nWZ7cO4 Y/^0l=*X 5gb=*X1XfGq3֣P>cs Oaj=,T#A U4Cf$C`r5VX~ 5Dv_H s_DʘHR0wݠ&DBDBI$i"D&*$4 $HL"z )aNP&2'RH1o*$DBNtRU3L"!5HDB9wX$TDK$>StL"-z| 1Z˻gH*" fiBM@L3b! X%Cv}VܣLd;dH*"!f2 Aj&C  ڰ"ΐ mW>1"{d`8C2$7PM3i@5IB$Cf`nAsI I$!d`8Cf2b!n&C  51i X%Cƭ`N5c AɐU2D07C ɪf2 f*TN6j&CfR3J|݇ X%C0! Au31Ti@L3dH*`6c4]>V1I-,$`n" m B5HH$R31M$TӀL"A5M$f)c06^<C(qHC1I  MD…J"UH,'!2dHF[";MvP=|J $*tZ|DBj&I$i"Bf i" iDJ-`ގmHX$I$T(m>NU5HH$R31M$T>L"A5M$Iyx"Z" I0l DBu3 50HDBu31M$TI$i"AL ;$aduH %`8ÉL"DBNܥR3L"!5HDBnX$TDB.h"um(HW0I$D 㕥1M$X&40&릉1I$X&$0W 'R?]p|`D&`8I$DʘJ3d*d4CP݌nzк\7!tZ@L3D0!HdLd?V2d*d4CPL  6nCyBexʨF18Q jT7!dTi Au:pL d:ij*Z3D0!Hdɐ'7I A fT7!O~0&};LwU2D1! j!n!IiB5C0&j{@3 IXŁ`!֓c5!n&CD gTi Auqca y Cv2R`pkz_@5!n&CT7!P! Au3&H5pP*! lDcr jk|xR0 Uᮚejlc|ZpF^,AK0jF`S K=R/0mDž ŵ5ʲ˃:.Ŧ.p{vTk!22sw̽wܩ0:r)1hٕlT T5]ۭI *% D1`@OF3>HO1Ӏd̟N߆8߫{D0tB.V֭*?H:wL04X% wj& m4 n>n0T1>D0W!59'c&n9 ~D+A#10U▱JD͍[:`n&p7d w]L~e̟i  MiT͋Vb0nӸI@*qxt*`۱|wf 4LxE W07S(LK4 ov&=-7aLÛJxE WqUpxf›V /= fڢo&68c^pxU * #v[V 0r›Zx!͘SWpxQ&"̄7oD" _ބ 1 o*5^T,V4Z > (~x ϻ7aBLÛ1 Be%)0A+j89n~N>}MX-f^QE cl姯"n~X% c&U5^X| j^i7M 57aBL+w츆W0^T /*Ԅa&9n~MX- +/*T> ÅtT g-{^ix Ë 7 /Lxs]VV&^ix j+zc˶vZ%01 櫥C~'w6q*\e-4j㺉Z|e7hǨjkƝRht1b2jY%nQQ˘[7U Ղ3CuK~[yjcfPZ(vE٫u[T0-lXGK]MZ{%0eةP`ZpB3-7(,r6nc_`5n5/jwdy)\Q 6BXE߰nZvj3p捑h>~j[q;T2m4[&jk]uwjnj%HgBoDw/2wqڭ~6KXEmlf/6 {5zQ`bln0ZSkh'k^N;o=a\5m@ϛjBZm:QY-ی*h*|樖g*MQV^dӜ~-ډbjüF,tt6s |6tKsNpGh7ay~Ш 3ǙL{Vj4qRoک qE`!Q(L[ƨ?h&(S24m:v^J-0/. #}5.%y;06N{5z*0/-y)nTGZ j˰\`^"Ϣ6p:;jt`1¶SWoy7}T 0l/hT`^"_Qmxp Ѩa4 WdG&?2-|Y<=z2&6:=QmGS9ƍoc ,}?BoW|h 0^a?y6Ӹ^-&4W[槯lnoNl/W]3n EۯnkB`ЄMh\y{<4sso]7_ѹ_Uhw?>>4o//oO/.IwwczP~ !5Ԣ'7zymMӇ*:T?|>|:i~Sח!F=>}y{!7o/͏uH+zAu7ґ%$Kܞ^nޝ^(` Mp2| tm΄auίo~mNr;=\=>U$4 2%:[Ϳއ{--ԕ$]w f9\>>O/|_԰|~l/෧O_?=eDXC.7weG}=5y?޲D(sռ}OŅ'k.|T?~ 7MSAOrz%?\rJ)s}{~ GwO)BxDw!ɞ|n^<9+_%`C=O?MC0!O?M!<&϶??ql~rM? zst>nzQya:/k]/kPXH2e5x}|9.^,ӛO:ߟ] {|k_~?޽~z|{y\ċpw|>$E0MC~r?/j=]UڽǛ{J̩X\2sWw27KhFE'Re~u?FJa{:F9(Xȍ#>_nkC_|Mr߅]~{53Uw/o ͯi?11 ?Oȷ6{cURok.ΨnGJ>=?Bmix㫽9\5!tWmtsszz;Cb])Dz.5fgO}|  &d˻S[|ygW!)!ߤ;0:O2iD./<^%ۗ~u~zʎh䟟O'+mBPimpz·0 7lүt9tgYp<JԤQjߞ~FwהAW- ܐoBʮN{E](W^#BK'H<^ͧ xK*$>/XObject<>>>>>endobj 75 0 obj<>stream xڥݓ6W򔩲e$Hbߒɤ6[C^dVz$ٿ~q MswgzC@|:Wڶӯosͦכn\+/ݐڶ#ChK6SKjj~AM0]mhPLUsnh V0]{CLW|0[T ]o(j} V0]-MoPLUkʭ`wFʭ`Zjo(jm V0] ʭ`oPn V0]-^S V0Uw~Zt;CLW.S:iZtur+7]*uu1 jƹT c4j5_wA-c@m`P˘gN! iQM۱k !SQMa !SQMPSƐi.=a@Stәn/1d*j)3SƐu-SiQM#ULCN3LEM5mǦEM7m]oӌ!SQM{W4cTt !SQSM[zCf 5ݴN3LEmթ/a.v3)cT#)i +V>ꦃLѠa3ڠaE7]h|Mfjc bELkCLmebPӰTllΠa35Tl6coPӰ6VSZ7xCLmGCXQ u b3wrSZߍrSZ蜡TLԚ4Z tl!4lF=v5zvﰚkP0y$hM\0@WRO\!SQSMf4EM7cLC_/25Ք2 0-ji!SQMo LEM5hf 5ݴ z}4cTt!SQSM=]iƀiQM3C72LEM5if 5ݴ mm0e nڏN3LEM7 C0iƐ`ӌӢ7iƐ馣:25tt1iƀiQM4cTtPcӌ!SQSMiŦEM7moӌ!SQM{7sP_> j-MiZM0e jMz4m0e n72LEM7q)cTTS⾳`g0e n/:25458l1`ZtӮu:25t=2)cTTS23iƀiQM+LCaK0d*j c\!SQSM=mcӌӢvaK0d*jKK[GT10яA1{è`H-Pjt2[Ɛo D!1hZ4* :-cHm 0@jCjb(!5?Ce aC0]-NqG@0F j!79A1vQMt01Bk {/1PnCj4dPc .VR'hPc ѽ͠RW֠PK2M멙,66cmPLUצCdjcPLWO#ѱF<BfjC5iLo !tlZ)7ϷnVՆuLWƺ jj#XW={TܲA-c@-͝A-c@- moPآZ?i;43eZ;N+\3f]SelYm짻-Lx_uj>-jjv՚iM\7-E3elY- :i%Tnm˓͖j40lPP)jnHJYUآPִv{a4c4c˦.}I:v@fTeѧ[:F0[70آiHi8~Ts6Kn3ӌ-:ݔnR-k׮ lZO}ݝ_7elt6(0ި|F/޻uSƐiƖM.-x`W`Mc0f[6j>]h0thWM3L[4WKuJbݺ)c+}ĖkC7eki@tݔ1dev nZyv St1lٔڦ]znزiQlq}lj"in2L3<.@ ].V_7e fltһ3h.sZDVGavlGYL hʿM'CĔ1d*آoxJ王…1e h<鶐Ͱz3L7\n/>c?M>#4^)cTf!S)cT3l]}-0U+ԥc#3StSZMLuSƐ`HSWM3L 08Ҍ!StSUj:m噙 Ҥưfڌ_`S5iƐ)M12LC32LCF`2e ҫ;Cf f Ҁ1d2`ӌ!SƀiæCm:2e RG`2e ҳ1d0M3L3LD !SƐا5d2e > :02PC!ӡs:2e goӌӌ!Sm0e 2L `2e 7 SƐ)cN4c4c׼n2e 3iƐ)ciש``Ȕ&fLC!xSƐ)cȔL42Li[4l1`1dE1d2]r !Sƀ)mG2bӌӌ!n"SƐ)ct SƐ :MiƀiƐiZCf 2Li<`2e 6iƐikC)4c4cȔALC!a1d0MyiƀiƐi1d21d2 0L'2e iw&WwCMkMuє1d2>O2횯g!SƀizCխ+W$:63pSƐӱa:Bz'\V05Ͳ ll4leЯdc eLϦal{C6P6lV71`j6eIll4l-^ -c(`z6 lt6+9`zeӱY6Zm&MfN-Cӳi,}q!c(`z6 +h {C{V05ͲnC6P6l6F CӳiXɖ62Lͦbl][P6l6O(c(`z6 e CӳiXFoo<Ζ1`j6e ll4lm!뒍1M0=liu:Ζ1`j6e`hoCӳi,$1 gӰv2MF G fjz6Zd&jz6Z\a&jz(c%c(c(҄K-c [@gNy#P11:=lllfױ1-c [QӳMCDM֏e ec e5=M11 -c [@gb%5Mz6P6Qӳg&jj຀T25=mlc&jz!c(c(iNl gL6SӳM1111-8C6P6P6QS2e d+jz6ڠem,c(c(نCCDM[bum%[@lEMH&jz6o&jz;#=cij3}w[[XZ2|7j꿐vJ][;Sc̏M!R5!5B9͎qs̏5{kEȺT}^։:c+jOoqje==wV[Qs}35}Un}{؊vL1>7oL#K>u鋞ndlY-oA3fmc+j}JH!nk!c+jJHsF׶@1wqIoWwq1Ѥ F435Vx/-^:E-cjy;FK׶1w4Jh4SclE7eJӬmT2J_VWo ﯾ{ǮǡOx]}8?_Wo\v8Zm\.Oq_]o/w?W~__՛tiõzFݻn$R%B?}ܞvvުۘ~Ǐ>_׵+>_Z}>>u%Y>ǨR=Ii{}}Ln1eeŃ?^Thjz~}^Ls>n=_S!1ToƩj޴1X*ÇSO˧:| }xbv8}"y2Oj{[bi^bT>pGGpM%"/hŸS+y<(|;ڝcOȧ}V_ܞp{RWH7Տx+W]??_SkmΗ&ΨtR%ijlC7oO "oB>fᰥ6&P@gVu:EWt;{3l軗賿~&Q:q{kC_OSui?ɟO1/ewrxU(U4<~w~??ncPtB?=_zx B8j]=mwԾW?.;5E[v.˙v_)yS Vt%gY/kp,M)rEE]m!SvSxr|?=/P!56ooCͮocߦfv¨dy~8ImSmog[^l!TvLwtN*S<_Gۋ6D.$o;7n_Csk(wB;6*&HMVy3Uh]Yxnݫ_U5endstream endobj 76 0 obj<>/XObject<<>>>>>>endobj 77 0 obj<>stream xڍWMS9+8*<-!@dC.Fi\4P[\ƣxu4! /WGgG/a4O.W0+aX C[~0m/ ,P%,Mݬotٷzwofů wd tڼW‚7P /l%F !'98BN+COĚ4~Z.TA:|Bү@D*b.V3/h~}YZ. u8||n?Tǁ-a^TlDWlfGD̩RygO*5āoࡇASH 6΋ J A:]#N^RQ;s(EYCke-oMf: p7VMϤvՂ˅[sD,hNE&DP*q(D7 ޷D_'s[L ^%4252QbZցȍmW xJ$vXbr?7mHښWI $Iu#Ï'0F =F<7;n> "J ªJvob9tۏS'OE,/Ϝua^jOŎЛ}n9|6U5<1Y`/K8?Eph6ϭYG*a{&,IJES21-;|*WjqM$BycVV\ 䛏I\84Ce(I%4N FW@=&'z7c70F7I*68K)]m}WC5GKtM3'IsZ:As * yu>3;;JM}rzA*s^wfe؇{c=(/k@٠58|02FiESfN#WnHhd)~XK֟OCL4~JjPpYvl>X\H0'ha84IrwFqX"퐩V3K"IqSʫ]^Ԝ!L%Jpf%@lRTQ-q7۱0j]f* F8U?L.9x1?ARn8$f7Do.˖oDLLBnc]o]g0Gqqq=*/4|b݈mҴxTIdm8\ kxXYC:87w~a7hendstream endobj 78 0 obj<>/XObject<<>>>>/Annots 29 0 R>>endobj 79 0 obj<>stream xڅWMs6Wlug$VdYMN2MV_ vHcI&r_o.W1'Ɍ&(K\MfшƳqtCΣy-䴮uE4nv:/#EG k)4a8F g:uD`8Z a+C;e5Z6^^U_ G.cI.zP):h? nqBgI$਽d \%w1;.8?lio Zp١Wڂ46|݇|5/=8Hn{?^Ɨ|[Z7T}a|dO8Ͼ@y9]?j de; TY#(^Wꐁϭ,Ew ȓvK[268ϊ/cޝKv2r Gx'nk"Ưc}}A-|oy d*j/Nbԅ_Wn@endstream endobj 80 0 obj<>/XObject<<>>>>>>endobj 81 0 obj<>stream xڕVMo8W |tv:1 ZzarEf#*I}CJm-r!3o{3'coLjByyr8yywA1-Vx3^B(FOskVz];E&(I(lIչ"- zs5ʺIl.IJPg$D q<ޯraC Ջŗ ǯs8.7<9ׅ!6kB.\hvK2d{}Pe֤ݛB?)뼗GZ`16w7Y'= tjNu <"hWTk,Om~еO-B# uA ?;fؠtn`; 4I2O*?mvHl$`ݞ }-$Ta(mz8_:cR"[R<Dbfa|gz|ǘQ]A:b L +up}p/ba~Z δSmp:i/$B éGlTƉ%@fT􏞗N` 9 ^3sfn?$ӈq#@.PD #Uƙ8;3*Nc&wPWg~cB&G0k}TaKƍ(5 ĺhq y?ÒvG>/XObject<<>>>>>>endobj 83 0 obj<>stream xڕVr6+dH,uƝ4QGrE6 JA!@+\ԃvtEqιv4t6託6&@NQ}*C79}~brUˌ:.c2aH)0PC+E憧dɮhcDž;irMPԬ)`؄Tb`x#%ɋ8l[r:&UV:`=CdQ9J/Ϡ6ZTW75(4lK?#-Z.ۮPA(o ]|ٲBTi7eWpKUē]2q́0j%cxҡoc> +y9-_;qn+c K)ƂXto0$ FHZ?Acʹ3Of\1](r yKRV|eƪX2eY>e;?r"FG[3ݦ<,@Oc@^1Z콕>K0Ml6T.2@6NRI > @`|u&9h roS[wrmN mX0,z"_8[ъm?]Uu Ea<]-fKe0 A-~#N%J6pR 8{~ӄlx+ ePl,x*醕 gwBm/OCTnWL ֛|pE't8QI Kح-b[ W"N >h]Hyr@ :e(0,$4"b*8]Rjl#y}TGtgB:ۂ/>07UP4%R[قd7z]i 6bVL!8e20{}ibfM8[Bkc2;?/i ͻ;Cpn9ȗdʫI[*me &(eV"{ 'F8]R=H½cqMe^km^IdPh\ިB^Sȓ.QYtCCvX\R2ETǷ#&.0lY5Ey<&Wc\'Q'.sC2z]CL9h?oƿ/:Kv'endstream endobj 84 0 obj<>/XObject<<>>>>/Annots 40 0 R>>endobj 85 0 obj<>stream xڥVMs8+cccLNK2d75_@fsE"hbK^IG2;*b#u{OӉ(_D>)U' B|G'N~dTQ%`VҬ] vX A"GDo$Em_-^;KfCܐ{fddW$yəᤖ4̋ZѣfJDzrnhŞ9LT\r<1K ^Mg yY4džZ<(mb0C?t8HKdA9p5xanBۇ clem}=5 jtΑ6nYǁ8Q=M5jLOQ.QzԫMHf67vgEY^&Mŵj )i)Jj.?*-XGnwy:[=B>9m/N4<iqz nde Jj-i2SQKF{^4mVځ؁6́έ:a6TQC:hA zh_jX^3͡8 0̇I?ʎG=$pk1 [7|{߃ X-JP;1Z/(愒њK[nE3m]U2.<Ѿ?+qxfepr:„>241ػڬ*7oZUqtVS_)T&#Y>>YZ@*3FеԂˢܴr+LxEuƯmiXcc f>Kw&H f2endstream endobj 86 0 obj<>/XObject<<>>>>/Annots 53 0 R>>endobj 87 0 obj<>stream xڅSMo@+H5Ƙޒ4HuF!=7]ww;kc+x>|=bч8ߢEaD4K鷆dfGCª MfaJqDq E)3$Sht\m5Nxruk>M1kNml1"/KynaLg (tJJ=Ӄv򒅬{޾x?qU`yǡ*P%48S"Tu#F儫AF@ 6ZK4ު§ Y@mR(CڃuXC;kX kEZYX(*uXlysbAW P}]]7Mgs,!ƍ$wj$$-r?C.ן`e%OGnko 8_;6I,vFX bEuӬҍ.~ɪ]>endobj xref 0 89 0000000000 65535 f 0000000015 00000 n 0000000235 00000 n 0000001801 00000 n 0000001875 00000 n 0000001953 00000 n 0000002032 00000 n 0000002108 00000 n 0000002189 00000 n 0000002247 00000 n 0000008244 00000 n 0000014427 00000 n 0000014479 00000 n 0000014564 00000 n 0000014614 00000 n 0000014699 00000 n 0000014729 00000 n 0000014829 00000 n 0000014929 00000 n 0000015029 00000 n 0000015129 00000 n 0000015229 00000 n 0000015329 00000 n 0000015429 00000 n 0000015529 00000 n 0000015629 00000 n 0000015729 00000 n 0000015829 00000 n 0000015929 00000 n 0000016029 00000 n 0000016136 00000 n 0000016194 00000 n 0000016279 00000 n 0000016349 00000 n 0000016434 00000 n 0000016494 00000 n 0000016579 00000 n 0000016640 00000 n 0000016725 00000 n 0000016781 00000 n 0000016866 00000 n 0000016917 00000 n 0000016981 00000 n 0000017064 00000 n 0000017127 00000 n 0000017210 00000 n 0000017288 00000 n 0000017371 00000 n 0000017437 00000 n 0000017520 00000 n 0000017586 00000 n 0000017669 00000 n 0000017735 00000 n 0000017818 00000 n 0000017876 00000 n 0000017908 00000 n 0000017940 00000 n 0000018194 00000 n 0000018235 00000 n 0000018276 00000 n 0000018317 00000 n 0000018358 00000 n 0000018399 00000 n 0000018440 00000 n 0000018481 00000 n 0000018522 00000 n 0000018563 00000 n 0000018604 00000 n 0000018645 00000 n 0000018686 00000 n 0000018727 00000 n 0000018768 00000 n 0000018869 00000 n 0000019086 00000 n 0000032986 00000 n 0000033187 00000 n 0000038775 00000 n 0000038955 00000 n 0000040549 00000 n 0000040734 00000 n 0000042384 00000 n 0000042555 00000 n 0000043995 00000 n 0000044166 00000 n 0000045740 00000 n 0000045934 00000 n 0000047156 00000 n 0000047341 00000 n 0000048038 00000 n trailer <<03967269ac91dfa8703134cd01b1bd67>]>> startxref 48122 %%EOF -----------------------------1977426492562745908748943111-- cups-2.4.7/cgi-bin/libcupscgi.exp0000644000175000017500000000123114502571342016530 0ustar zdohnalzdohnal_cgiCheckVariables _cgiClearVariables _cgiCompileSearch _cgiCopyTemplateFile _cgiCopyTemplateLang _cgiDoSearch _cgiEndHTML _cgiEndMultipart _cgiFormEncode _cgiFreeSearch _cgiGetArray _cgiGetAttributes _cgiGetCookie _cgiGetFile _cgiGetIPPObjects _cgiGetSize _cgiGetTemplateDir _cgiGetVariable _cgiInitialize _cgiIsPOST _cgiMoveJobs _cgiPrintCommand _cgiPrintTestPage _cgiRewriteURL _cgiSetArray _cgiSetIPPObjectVars _cgiSetIPPVars _cgiSetCookie _cgiSetServerVersion _cgiSetSize _cgiSetVariable _cgiShowIPPError _cgiShowJobs _cgiStartHTML _cgiStartMultipart _cgiSupportsMultipart _cgiText _helpDeleteIndex _helpFindNode _helpLoadIndex _helpSaveIndex _helpSearchIndex cups-2.4.7/cgi-bin/jobs.c0000644000175000017500000000766514502571342015010 0ustar zdohnalzdohnal/* * Job status CGI for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" /* * Local functions... */ static void do_job_op(http_t *http, int job_id, ipp_op_t op); /* * 'main()' - Main entry for CGI. */ int /* O - Exit status */ main(void) { http_t *http; /* Connection to the server */ const char *op; /* Operation name */ const char *job_id_var; /* Job ID form variable */ int job_id; /* Job ID */ /* * Get any form variables... */ cgiInitialize(); /* * Set the web interface section... */ cgiSetVariable("SECTION", "jobs"); cgiSetVariable("REFRESH_PAGE", ""); /* * Connect to the HTTP server... */ http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); /* * Get the job ID, if any... */ if ((job_id_var = cgiGetVariable("JOB_ID")) != NULL) job_id = atoi(job_id_var); else job_id = 0; /* * Do the operation... */ if ((op = cgiGetVariable("OP")) != NULL && job_id > 0 && cgiIsPOST()) { /* * Do the operation... */ if (!strcmp(op, "cancel-job")) do_job_op(http, job_id, IPP_CANCEL_JOB); else if (!strcmp(op, "hold-job")) do_job_op(http, job_id, IPP_HOLD_JOB); else if (!strcmp(op, "move-job")) cgiMoveJobs(http, NULL, job_id); else if (!strcmp(op, "release-job")) do_job_op(http, job_id, IPP_RELEASE_JOB); else if (!strcmp(op, "restart-job")) do_job_op(http, job_id, IPP_RESTART_JOB); else { /* * Bad operation code... Display an error... */ cgiStartHTML(cgiText(_("Jobs"))); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } } else { /* * Show a list of jobs... */ cgiStartHTML(cgiText(_("Jobs"))); cgiShowJobs(http, NULL); cgiEndHTML(); } /* * Close the HTTP server connection... */ httpClose(http); /* * Return with no errors... */ return (0); } /* * 'do_job_op()' - Do a job operation. */ static void do_job_op(http_t *http, /* I - HTTP connection */ int job_id, /* I - Job ID */ ipp_op_t op) /* I - Operation to perform */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Job URI */ const char *user; /* Username */ /* * Build a job request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * job-uri * requesting-user-name */ request = ippNewRequest(op); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); if ((user = getenv("REMOTE_USER")) == NULL) user = "guest"; ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/jobs")); if (cupsLastError() <= IPP_OK_CONFLICT && getenv("HTTP_REFERER")) { /* * Redirect successful updates back to the parent page... */ char url[1024]; /* Encoded URL */ strlcpy(url, "5;URL=", sizeof(url)); cgiFormEncode(url + 6, getenv("HTTP_REFERER"), sizeof(url) - 6); cgiSetVariable("refresh_page", url); } else if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } cgiStartHTML(cgiText(_("Jobs"))); if (cupsLastError() > IPP_OK_CONFLICT) cgiShowIPPError(_("Job operation failed")); else if (op == IPP_CANCEL_JOB) cgiCopyTemplateLang("job-cancel.tmpl"); else if (op == IPP_HOLD_JOB) cgiCopyTemplateLang("job-hold.tmpl"); else if (op == IPP_RELEASE_JOB) cgiCopyTemplateLang("job-release.tmpl"); else if (op == IPP_RESTART_JOB) cgiCopyTemplateLang("job-restart.tmpl"); cgiEndHTML(); } cups-2.4.7/cgi-bin/ipp-var.c0000644000175000017500000011142614502571342015420 0ustar zdohnalzdohnal/* * CGI <-> IPP variable routines for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" /* * 'cgiGetAttributes()' - Get the list of attributes that are needed * by the template file. */ void cgiGetAttributes(ipp_t *request, /* I - IPP request */ const char *tmpl) /* I - Base filename */ { int num_attrs; /* Number of attributes */ char *attrs[1000]; /* Attributes */ int i; /* Looping var */ char filename[1024], /* Filename */ locale[16]; /* Locale name */ const char *directory, /* Directory */ *lang; /* Language */ FILE *in; /* Input file */ int ch; /* Character from file */ char name[255], /* Name of variable */ *nameptr; /* Pointer into name */ /* * Convert the language to a locale name... */ if ((lang = getenv("LANG")) != NULL) { for (i = 0; lang[i] && i < 15; i ++) if (isalnum(lang[i] & 255)) locale[i] = (char)tolower(lang[i]); else locale[i] = '_'; locale[i] = '\0'; } else locale[0] = '\0'; /* * See if we have a template file for this language... */ directory = cgiGetTemplateDir(); snprintf(filename, sizeof(filename), "%s/%s/%s", directory, locale, tmpl); if (access(filename, 0)) { locale[2] = '\0'; snprintf(filename, sizeof(filename), "%s/%s/%s", directory, locale, tmpl); if (access(filename, 0)) snprintf(filename, sizeof(filename), "%s/%s", directory, tmpl); } /* * Open the template file... */ if ((in = fopen(filename, "r")) == NULL) return; /* * Loop through the file adding attribute names as needed... */ num_attrs = 0; attrs[0] = NULL; /* Eliminate compiler warning */ while ((ch = getc(in)) != EOF) if (ch == '\\') getc(in); else if (ch == '{' && num_attrs < (int)(sizeof(attrs) / sizeof(attrs[0]))) { /* * Grab the name... */ for (nameptr = name; (ch = getc(in)) != EOF;) if (strchr("}]<>=!~ \t\n", ch)) break; else if (nameptr > name && ch == '?') break; else if (nameptr < (name + sizeof(name) - 1)) { if (ch == '_') *nameptr++ = '-'; else *nameptr++ = (char)ch; } *nameptr = '\0'; if (!strncmp(name, "printer_state_history", 21)) strlcpy(name, "printer_state_history", sizeof(name)); /* * Possibly add it to the list of attributes... */ for (i = 0; i < num_attrs; i ++) if (!strcmp(attrs[i], name)) break; if (i >= num_attrs) { attrs[num_attrs] = strdup(name); num_attrs ++; } } /* * If we have attributes, add a requested-attributes attribute to the * request... */ if (num_attrs > 0) { ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", num_attrs, NULL, (const char **)attrs); for (i = 0; i < num_attrs; i ++) free(attrs[i]); } fclose(in); } /* * 'cgiGetIPPObjects()' - Get the objects in an IPP response. */ cups_array_t * /* O - Array of objects */ cgiGetIPPObjects(ipp_t *response, /* I - IPP response */ void *search) /* I - Search filter */ { int i; /* Looping var */ cups_array_t *objs; /* Array of objects */ ipp_attribute_t *attr, /* Current attribute */ *first; /* First attribute for object */ ipp_tag_t group; /* Current group tag */ int add; /* Add this object to the array? */ if (!response) return (0); for (add = 0, first = NULL, objs = cupsArrayNew(NULL, NULL), group = IPP_TAG_ZERO, attr = response->attrs; attr; attr = attr->next) { if (attr->group_tag != group) { group = attr->group_tag; if (group != IPP_TAG_ZERO && group != IPP_TAG_OPERATION) { first = attr; add = 0; } else if (add && first) { cupsArrayAdd(objs, first); add = 0; first = NULL; } } if (attr->name && attr->group_tag != IPP_TAG_OPERATION && !add) { if (!search) { /* * Add all objects if there is no search... */ add = 1; } else { /* * Check the search string against the string and integer values. */ switch (attr->value_tag) { case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_MIMETYPE : for (i = 0; !add && i < attr->num_values; i ++) if (cgiDoSearch(search, attr->values[i].string.text)) add = 1; break; case IPP_TAG_INTEGER : if (!strncmp(ippGetName(attr), "time-at-", 8)) break; /* Ignore time-at-xxx */ for (i = 0; !add && i < attr->num_values; i ++) { char buf[255]; /* Number buffer */ snprintf(buf, sizeof(buf), "%d", attr->values[i].integer); if (cgiDoSearch(search, buf)) add = 1; } break; default : break; } } } } if (add && first) cupsArrayAdd(objs, first); return (objs); } /* * 'cgiMoveJobs()' - Move one or more jobs. * * At least one of dest or job_id must be non-zero/NULL. */ void cgiMoveJobs(http_t *http, /* I - Connection to server */ const char *dest, /* I - Destination or NULL */ int job_id) /* I - Job ID or 0 for all */ { int i; /* Looping var */ const char *user; /* Username */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Current attribute */ const char *name; /* Destination name */ const char *job_printer_uri; /* JOB_PRINTER_URI form variable */ char current_dest[1024]; /* Current destination */ /* * Make sure we have a username... */ if ((user = getenv("REMOTE_USER")) == NULL) user = "guest"; /* * See if the user has already selected a new destination... */ if ((job_printer_uri = cgiGetVariable("JOB_PRINTER_URI")) == NULL) { /* * Make sure necessary form variables are set... */ if (job_id) { char temp[255]; /* Temporary string */ snprintf(temp, sizeof(temp), "%d", job_id); cgiSetVariable("JOB_ID", temp); } if (dest) cgiSetVariable("PRINTER_NAME", dest); /* * No new destination specified, show the user what the available * printers/classes are... */ if (!dest) { /* * Get the current destination for job N... */ char job_uri[1024]; /* Job URI */ request = ippNewRequest(IPP_GET_JOB_ATTRIBUTES); snprintf(job_uri, sizeof(job_uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, job_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "job-printer-uri"); if ((response = cupsDoRequest(http, request, "/")) != NULL) { if ((attr = ippFindAttribute(response, "job-printer-uri", IPP_TAG_URI)) != NULL) { /* * Pull the name from the URI... */ strlcpy(current_dest, strrchr(attr->values[0].string.text, '/') + 1, sizeof(current_dest)); dest = current_dest; } ippDelete(response); } if (!dest) { /* * Couldn't get the current destination... */ cgiStartHTML(cgiText(_("Move Job"))); cgiShowIPPError(_("Unable to find destination for job")); cgiEndHTML(); return; } } /* * Get the list of available destinations... */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "printer-uri-supported"); if (user) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type", CUPS_PRINTER_LOCAL); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type-mask", CUPS_PRINTER_SCANNER); if ((response = cupsDoRequest(http, request, "/")) != NULL) { for (i = 0, attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI); attr; attr = ippFindNextAttribute(response, "printer-uri-supported", IPP_TAG_URI)) { /* * Pull the name from the URI... */ name = strrchr(attr->values[0].string.text, '/') + 1; /* * If the name is not the same as the current destination, add it! */ if (_cups_strcasecmp(name, dest)) { cgiSetArray("JOB_PRINTER_URI", i, attr->values[0].string.text); cgiSetArray("JOB_PRINTER_NAME", i, name); i ++; } } ippDelete(response); } /* * Show the form... */ if (job_id) cgiStartHTML(cgiText(_("Move Job"))); else cgiStartHTML(cgiText(_("Move All Jobs"))); if (cgiGetSize("JOB_PRINTER_NAME") > 0) cgiCopyTemplateLang("job-move.tmpl"); else { if (job_id) cgiSetVariable("MESSAGE", cgiText(_("Unable to move job"))); else cgiSetVariable("MESSAGE", cgiText(_("Unable to move jobs"))); cgiSetVariable("ERROR", cgiText(_("No destinations added."))); cgiCopyTemplateLang("error.tmpl"); } } else { /* * Try moving the job or jobs... */ char uri[1024], /* Job/printer URI */ resource[1024], /* Post resource */ refresh[1024]; /* Refresh URL */ const char *job_printer_name; /* New printer name */ request = ippNewRequest(CUPS_MOVE_JOB); if (job_id) { /* * Move 1 job... */ snprintf(resource, sizeof(resource), "/jobs/%d", job_id); snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); } else { /* * Move all active jobs on a destination... */ snprintf(resource, sizeof(resource), "/%s/%s", cgiGetVariable("SECTION"), dest); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/%s/%s", cgiGetVariable("SECTION"), dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); } ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-printer-uri", NULL, job_printer_uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippDelete(cupsDoRequest(http, request, resource)); /* * Show the results... */ job_printer_name = strrchr(job_printer_uri, '/') + 1; if (cupsLastError() <= IPP_OK_CONFLICT) { const char *path = strstr(job_printer_uri, "/printers/"); if (!path) { path = strstr(job_printer_uri, "/classes/"); cgiSetVariable("IS_CLASS", "YES"); } if (path) { cgiFormEncode(uri, path, sizeof(uri)); snprintf(refresh, sizeof(refresh), "2;URL=%s", uri); cgiSetVariable("refresh_page", refresh); } } if (job_id) cgiStartHTML(cgiText(_("Move Job"))); else cgiStartHTML(cgiText(_("Move All Jobs"))); if (cupsLastError() > IPP_OK_CONFLICT) { if (job_id) cgiShowIPPError(_("Unable to move job")); else cgiShowIPPError(_("Unable to move jobs")); } else { cgiSetVariable("JOB_PRINTER_NAME", job_printer_name); cgiCopyTemplateLang("job-moved.tmpl"); } } cgiEndHTML(); } /* * 'cgiPrintCommand()' - Print a CUPS command job. */ void cgiPrintCommand(http_t *http, /* I - Connection to server */ const char *dest, /* I - Destination printer */ const char *command, /* I - Command to send */ const char *title) /* I - Page/job title */ { int job_id; /* Command file job */ char uri[HTTP_MAX_URI], /* Job URI */ resource[1024], /* Printer resource path */ refresh[1024], /* Refresh URL */ command_file[1024]; /* Command "file" */ http_status_t status; /* Document status */ cups_option_t hold_option; /* job-hold-until option */ const char *user; /* User name */ ipp_t *request, /* Get-Job-Attributes request */ *response; /* Get-Job-Attributes response */ ipp_attribute_t *attr; /* Current job attribute */ static const char * const job_attrs[] =/* Job attributes we want */ { "job-state", "job-printer-state-message" }; /* * Create the CUPS command file... */ snprintf(command_file, sizeof(command_file), "#CUPS-COMMAND\n%s\n", command); /* * Show status... */ if (cgiSupportsMultipart()) { cgiStartMultipart(); cgiStartHTML(title); cgiCopyTemplateLang("command.tmpl"); cgiEndHTML(); fflush(stdout); } /* * Send the command file job... */ hold_option.name = "job-hold-until"; hold_option.value = "no-hold"; if ((user = getenv("REMOTE_USER")) != NULL) cupsSetUser(user); else cupsSetUser("anonymous"); if ((job_id = cupsCreateJob(http, dest, title, 1, &hold_option)) < 1) { cgiSetVariable("MESSAGE", cgiText(_("Unable to send command to printer driver"))); cgiSetVariable("ERROR", cupsLastErrorString()); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); if (cgiSupportsMultipart()) cgiEndMultipart(); return; } status = cupsStartDocument(http, dest, job_id, NULL, CUPS_FORMAT_COMMAND, 1); if (status == HTTP_CONTINUE) status = cupsWriteRequestData(http, command_file, strlen(command_file)); if (status == HTTP_CONTINUE) cupsFinishDocument(http, dest); if (cupsLastError() >= IPP_REDIRECTION_OTHER_SITE) { cgiSetVariable("MESSAGE", cgiText(_("Unable to send command to printer driver"))); cgiSetVariable("ERROR", cupsLastErrorString()); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); if (cgiSupportsMultipart()) cgiEndMultipart(); cupsCancelJob(dest, job_id); return; } /* * Wait for the job to complete... */ if (cgiSupportsMultipart()) { for (;;) { /* * Get the current job state... */ snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id); request = ippNewRequest(IPP_GET_JOB_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); if (user) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", 2, NULL, job_attrs); if ((response = cupsDoRequest(http, request, "/")) != NULL) cgiSetIPPVars(response, NULL, NULL, NULL, 0); attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM); if (!attr || attr->values[0].integer >= IPP_JOB_STOPPED || attr->values[0].integer == IPP_JOB_HELD) { ippDelete(response); break; } /* * Job not complete, so update the status... */ ippDelete(response); cgiStartHTML(title); cgiCopyTemplateLang("command.tmpl"); cgiEndHTML(); fflush(stdout); sleep(5); } } /* * Send the final page that reloads the printer's page... */ snprintf(resource, sizeof(resource), "/printers/%s", dest); cgiFormEncode(uri, resource, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); cgiCopyTemplateLang("command.tmpl"); cgiEndHTML(); if (cgiSupportsMultipart()) cgiEndMultipart(); } /* * 'cgiPrintTestPage()' - Print a test page. */ void cgiPrintTestPage(http_t *http, /* I - Connection to server */ const char *dest) /* I - Destination printer/class */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ char uri[HTTP_MAX_URI], /* Printer URI */ resource[1024], /* POST resource path */ refresh[1024], /* Refresh URL */ filename[1024]; /* Test page filename */ const char *datadir; /* CUPS_DATADIR env var */ const char *user; /* Username */ /* * See who is logged in... */ user = getenv("REMOTE_USER"); /* * Locate the test page file... */ if ((datadir = getenv("CUPS_DATADIR")) == NULL) datadir = CUPS_DATADIR; snprintf(filename, sizeof(filename), "%s/data/testprint", datadir); /* * Point to the printer/class... */ snprintf(resource, sizeof(resource), "/%s/%s", cgiGetVariable("SECTION"), dest); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", ippPort(), "/%s/%s", cgiGetVariable("SECTION"), dest); /* * Build an IPP_PRINT_JOB request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name */ request = ippNewRequest(IPP_PRINT_JOB); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); if (user) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, "Test Page"); /* * Do the request and get back a response... */ if ((response = cupsDoFileRequest(http, request, resource, filename)) != NULL) { cgiSetIPPVars(response, NULL, NULL, NULL, 0); ippDelete(response); } if (cupsLastError() <= IPP_OK_CONFLICT) { /* * Automatically reload the printer status page... */ cgiFormEncode(uri, resource, sizeof(uri)); snprintf(refresh, sizeof(refresh), "2;URL=%s", uri); cgiSetVariable("refresh_page", refresh); } else if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } cgiStartHTML(cgiText(_("Print Test Page"))); if (cupsLastError() > IPP_OK_CONFLICT) cgiShowIPPError(_("Unable to print test page")); else { cgiSetVariable("PRINTER_NAME", dest); cgiCopyTemplateLang("test-page.tmpl"); } cgiEndHTML(); } /* * 'cgiRewriteURL()' - Rewrite a printer URI into a web browser URL... */ char * /* O - New URL */ cgiRewriteURL(const char *uri, /* I - Current URI */ char *url, /* O - New URL */ int urlsize, /* I - Size of URL buffer */ const char *newresource) /* I - Replacement resource */ { char scheme[HTTP_MAX_URI], userpass[HTTP_MAX_URI], hostname[HTTP_MAX_URI], rawresource[HTTP_MAX_URI], resource[HTTP_MAX_URI], /* URI components... */ *rawptr, /* Pointer into rawresource */ *resptr; /* Pointer into resource */ int port; /* Port number */ static int ishttps = -1; /* Using encryption? */ static const char *server; /* Name of server */ static char servername[1024]; /* Local server name */ static const char hexchars[] = "0123456789ABCDEF"; /* Hexadecimal conversion characters */ /* * Check if we have been called before... */ if (ishttps < 0) { /* * No, initialize static vars for the conversion... * * First get the server name associated with the client interface as * well as the locally configured hostname. We'll check *both* of * these to see if the printer URL is local... */ if ((server = getenv("SERVER_NAME")) == NULL) server = ""; httpGetHostname(NULL, servername, sizeof(servername)); /* * Then flag whether we are using SSL on this connection... */ ishttps = getenv("HTTPS") != NULL; } /* * Convert the URI to a URL... */ httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, rawresource, sizeof(rawresource)); if (!strcmp(scheme, "ipp") || !strcmp(scheme, "http") || !strcmp(scheme, "https")) { if (newresource) { /* * Force the specified resource name instead of the one in the URL... */ strlcpy(resource, newresource, sizeof(resource)); } else { /* * Rewrite the resource string so it doesn't contain any * illegal chars... */ for (rawptr = rawresource, resptr = resource; *rawptr; rawptr ++) if ((*rawptr & 128) || *rawptr == '%' || *rawptr == ' ' || *rawptr == '#' || *rawptr == '?' || *rawptr == '.') /* For MSIE */ { if (resptr < (resource + sizeof(resource) - 3)) { *resptr++ = '%'; *resptr++ = hexchars[(*rawptr >> 4) & 15]; *resptr++ = hexchars[*rawptr & 15]; } } else if (resptr < (resource + sizeof(resource) - 1)) *resptr++ = *rawptr; *resptr = '\0'; } /* * Map local access to a local URI... */ if (!_cups_strcasecmp(hostname, "127.0.0.1") || !_cups_strcasecmp(hostname, "[::1]") || !_cups_strcasecmp(hostname, "localhost") || !_cups_strncasecmp(hostname, "localhost.", 10) || !_cups_strcasecmp(hostname, server) || !_cups_strcasecmp(hostname, servername)) { /* * Make URI relative to the current server... */ strlcpy(url, resource, (size_t)urlsize); } else { /* * Rewrite URI with HTTP/HTTPS scheme... */ if (userpass[0]) snprintf(url, (size_t)urlsize, "%s://%s@%s:%d%s", ishttps ? "https" : "http", userpass, hostname, port, resource); else snprintf(url, (size_t)urlsize, "%s://%s:%d%s", ishttps ? "https" : "http", hostname, port, resource); } } else strlcpy(url, uri, (size_t)urlsize); return (url); } /* * 'cgiSetIPPObjectVars()' - Set CGI variables from an IPP object. */ ipp_attribute_t * /* O - Next object */ cgiSetIPPObjectVars( ipp_attribute_t *obj, /* I - Response data to be copied... */ const char *prefix, /* I - Prefix for name or NULL */ int element) /* I - Parent element number */ { ipp_attribute_t *attr; /* Attribute in response... */ int i; /* Looping var */ char name[1024], /* Name of attribute */ *nameptr, /* Pointer into name */ value[16384], /* Value(s) */ *valptr; /* Pointer into value */ fprintf(stderr, "DEBUG2: cgiSetIPPObjectVars(obj=%p, prefix=\"%s\", " "element=%d)\n", obj, prefix ? prefix : "(null)", element); /* * Set common CGI template variables... */ if (!prefix) cgiSetServerVersion(); /* * Loop through the attributes and set them for the template... */ for (attr = obj; attr && attr->group_tag != IPP_TAG_ZERO; attr = attr->next) { /* * Copy the attribute name, substituting "_" for "-"... */ if (!attr->name) continue; if (prefix) { snprintf(name, sizeof(name), "%s.", prefix); nameptr = name + strlen(name); } else nameptr = name; for (i = 0; attr->name[i] && nameptr < (name + sizeof(name) - 1); i ++) if (attr->name[i] == '-') *nameptr++ = '_'; else *nameptr++ = attr->name[i]; *nameptr = '\0'; /* * Add "job_printer_name" variable if we have a "job_printer_uri" * attribute... */ if (!strcmp(name, "job_printer_uri")) { if ((valptr = strrchr(attr->values[0].string.text, '/')) == NULL) valptr = "unknown"; else valptr ++; cgiSetArray("job_printer_name", element, valptr); } /* * Localize event names in "notify_events" variable... */ if (!strcmp(name, "notify_events")) { size_t remaining; /* Remaining bytes in buffer */ value[0] = '\0'; valptr = value; for (i = 0; i < attr->num_values; i ++) { if (valptr >= (value + sizeof(value) - 3)) break; if (i) { *valptr++ = ','; *valptr++ = ' '; } remaining = sizeof(value) - (size_t)(valptr - value); if (!strcmp(attr->values[i].string.text, "printer-stopped")) strlcpy(valptr, _("Printer Paused"), remaining); else if (!strcmp(attr->values[i].string.text, "printer-added")) strlcpy(valptr, _("Printer Added"), remaining); else if (!strcmp(attr->values[i].string.text, "printer-modified")) strlcpy(valptr, _("Printer Modified"), remaining); else if (!strcmp(attr->values[i].string.text, "printer-deleted")) strlcpy(valptr, _("Printer Deleted"), remaining); else if (!strcmp(attr->values[i].string.text, "job-created")) strlcpy(valptr, _("Job Created"), remaining); else if (!strcmp(attr->values[i].string.text, "job-completed")) strlcpy(valptr, _("Job Completed"), remaining); else if (!strcmp(attr->values[i].string.text, "job-stopped")) strlcpy(valptr, _("Job Stopped"), remaining); else if (!strcmp(attr->values[i].string.text, "job-config-changed")) strlcpy(valptr, _("Job Options Changed"), remaining); else if (!strcmp(attr->values[i].string.text, "server-restarted")) strlcpy(valptr, _("Server Restarted"), remaining); else if (!strcmp(attr->values[i].string.text, "server-started")) strlcpy(valptr, _("Server Started"), remaining); else if (!strcmp(attr->values[i].string.text, "server-stopped")) strlcpy(valptr, _("Server Stopped"), remaining); else if (!strcmp(attr->values[i].string.text, "server-audit")) strlcpy(valptr, _("Server Security Auditing"), remaining); else strlcpy(valptr, attr->values[i].string.text, remaining); valptr += strlen(valptr); } cgiSetArray("notify_events", element, value); continue; } /* * Add "notify_printer_name" variable if we have a "notify_printer_uri" * attribute... */ if (!strcmp(name, "notify_printer_uri")) { if ((valptr = strrchr(attr->values[0].string.text, '/')) == NULL) valptr = "unknown"; else valptr ++; cgiSetArray("notify_printer_name", element, valptr); } /* * Add "notify_recipient_name" variable if we have a "notify_recipient_uri" * attribute, and rewrite recipient URI... */ if (!strcmp(name, "notify_recipient_uri")) { char uri[1024], /* New URI */ scheme[32], /* Scheme portion of URI */ userpass[256], /* Username/password portion of URI */ host[1024], /* Hostname portion of URI */ resource[1024], /* Resource portion of URI */ *options; /* Options in URI */ int port; /* Port number */ httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[0].string.text, scheme, sizeof(scheme), userpass, sizeof(userpass), host, sizeof(host), &port, resource, sizeof(resource)); if (!strcmp(scheme, "rss")) { /* * RSS notification... */ if ((options = strchr(resource, '?')) != NULL) *options = '\0'; if (host[0]) { /* * Link to remote feed... */ httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), "http", userpass, host, port, resource); strlcpy(name, uri, sizeof(name)); } else { /* * Link to local feed... */ snprintf(uri, sizeof(uri), "/rss%s", resource); strlcpy(name, resource + 1, sizeof(name)); } } else { /* * Other... */ strlcpy(uri, attr->values[0].string.text, sizeof(uri)); strlcpy(name, resource, sizeof(name)); } cgiSetArray("notify_recipient_uri", element, uri); cgiSetArray("notify_recipient_name", element, name); continue; } /* * Add "admin_uri" variable if we have a "printer_uri_supported" * attribute... */ if (!strcmp(name, "printer_uri_supported")) { cgiRewriteURL(attr->values[0].string.text, value, sizeof(value), "/admin/"); cgiSetArray("admin_uri", element, value); } /* * Copy values... */ value[0] = '\0'; /* Initially an empty string */ valptr = value; /* Start at the beginning */ for (i = 0; i < attr->num_values; i ++) { if (i) strlcat(valptr, ", ", sizeof(value) - (size_t)(valptr - value)); valptr += strlen(valptr); switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : if (strncmp(name, "time_at_", 8) == 0) _cupsStrDate(valptr, sizeof(value) - (size_t)(valptr - value), (time_t)ippGetInteger(attr, i)); else snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "%d", ippGetInteger(attr, i)); break; case IPP_TAG_BOOLEAN : snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "%d", attr->values[i].boolean); break; case IPP_TAG_NOVALUE : strlcat(valptr, "novalue", sizeof(value) - (size_t)(valptr - value)); break; case IPP_TAG_RANGE : snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "%d-%d", attr->values[i].range.lower, attr->values[i].range.upper); break; case IPP_TAG_RESOLUTION : snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "%dx%d%s", attr->values[i].resolution.xres, attr->values[i].resolution.yres, attr->values[i].resolution.units == IPP_RES_PER_INCH ? "dpi" : "dpcm"); break; case IPP_TAG_URI : if (strchr(attr->values[i].string.text, ':') && strcmp(name, "device_uri")) { /* * Rewrite URIs... */ cgiRewriteURL(attr->values[i].string.text, valptr, (int)(sizeof(value) - (size_t)(valptr - value)), NULL); break; } case IPP_TAG_STRING : case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : case IPP_TAG_CHARSET : case IPP_TAG_LANGUAGE : case IPP_TAG_MIMETYPE : strlcat(valptr, attr->values[i].string.text, sizeof(value) - (size_t)(valptr - value)); break; case IPP_TAG_BEGIN_COLLECTION : snprintf(value, sizeof(value), "%s%d", name, i + 1); cgiSetIPPVars(attr->values[i].collection, NULL, NULL, value, element); break; default : break; /* anti-compiler-warning-code */ } } /* * Add the element... */ if (attr->value_tag != IPP_TAG_BEGIN_COLLECTION) { cgiSetArray(name, element, value); fprintf(stderr, "DEBUG2: %s[%d]=\"%s\"\n", name, element, value); } } return (attr ? attr->next : NULL); } /* * 'cgiSetIPPVars()' - Set CGI variables from an IPP response. */ int /* O - Maximum number of elements */ cgiSetIPPVars(ipp_t *response, /* I - Response data to be copied... */ const char *filter_name, /* I - Filter name */ const char *filter_value, /* I - Filter value */ const char *prefix, /* I - Prefix for name or NULL */ int parent_el) /* I - Parent element number */ { int element; /* Element in CGI array */ ipp_attribute_t *attr, /* Attribute in response... */ *filter; /* Filtering attribute */ fprintf(stderr, "DEBUG2: cgiSetIPPVars(response=%p, filter_name=\"%s\", " "filter_value=\"%s\", prefix=\"%s\", parent_el=%d)\n", response, filter_name ? filter_name : "(null)", filter_value ? filter_value : "(null)", prefix ? prefix : "(null)", parent_el); /* * Set common CGI template variables... */ if (!prefix) cgiSetServerVersion(); /* * Loop through the attributes and set them for the template... */ attr = response->attrs; if (!prefix) while (attr && attr->group_tag == IPP_TAG_OPERATION) attr = attr->next; for (element = parent_el; attr; element ++) { /* * Copy attributes to a separator... */ while (attr && attr->group_tag == IPP_TAG_ZERO) attr= attr->next; if (!attr) break; if (filter_name) { for (filter = attr; filter != NULL && filter->group_tag != IPP_TAG_ZERO; filter = filter->next) if (filter->name && !strcmp(filter->name, filter_name) && (filter->value_tag == IPP_TAG_STRING || (filter->value_tag >= IPP_TAG_TEXTLANG && filter->value_tag <= IPP_TAG_MIMETYPE)) && filter->values[0].string.text != NULL && !_cups_strcasecmp(filter->values[0].string.text, filter_value)) break; if (!filter) return (element + 1); if (filter->group_tag == IPP_TAG_ZERO) { attr = filter; element --; continue; } } attr = cgiSetIPPObjectVars(attr, prefix, element); } fprintf(stderr, "DEBUG2: Returning %d from cgiSetIPPVars()...\n", element); return (element); } /* * 'cgiShowIPPError()' - Show the last IPP error message. * * The caller must still call cgiStartHTML() and cgiEndHTML(). */ void cgiShowIPPError(const char *message) /* I - Contextual message */ { cgiSetVariable("MESSAGE", cgiText(message)); cgiSetVariable("ERROR", cupsLastErrorString()); cgiCopyTemplateLang("error.tmpl"); } /* * 'cgiShowJobs()' - Show print jobs. */ void cgiShowJobs(http_t *http, /* I - Connection to server */ const char *dest) /* I - Destination name or NULL */ { int i; /* Looping var */ const char *which_jobs; /* Which jobs to show */ ipp_t *request, /* IPP request */ *response; /* IPP response */ cups_array_t *jobs; /* Array of job objects */ ipp_attribute_t *job; /* Job object */ int first, /* First job to show */ count; /* Number of jobs */ const char *var, /* Form variable */ *query, /* Query string */ *section; /* Section in web interface */ void *search; /* Search data */ char url[1024], /* Printer URI */ val[1024]; /* Form variable */ /* * Build an IPP_GET_JOBS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_JOBS); if (dest) { httpAssembleURIf(HTTP_URI_CODING_ALL, url, sizeof(url), "ipp", NULL, "localhost", ippPort(), "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, url); } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/"); if ((which_jobs = cgiGetVariable("which_jobs")) != NULL && *which_jobs) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "which-jobs", NULL, which_jobs); if ((var = cgiGetVariable("FIRST")) != NULL) { if ((first = atoi(var)) < 0) first = 0; } else first = 0; if (first > 0) ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "first-index", first + 1); cgiGetAttributes(request, "jobs.tmpl"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Get a list of matching job objects. */ if ((query = cgiGetVariable("QUERY")) != NULL && !cgiGetVariable("CLEAR")) search = cgiCompileSearch(query); else { query = NULL; search = NULL; } jobs = cgiGetIPPObjects(response, search); count = cupsArrayCount(jobs) + first; if (search) cgiFreeSearch(search); /* * Figure out which jobs to display... */ section = cgiGetVariable("SECTION"); cgiClearVariables(); if (query) cgiSetVariable("QUERY", query); cgiSetVariable("SECTION", section); snprintf(val, sizeof(val), "%d", count); cgiSetVariable("TOTAL", val); if (which_jobs) cgiSetVariable("WHICH_JOBS", which_jobs); for (i = 0, job = (ipp_attribute_t *)cupsArrayFirst(jobs); i < CUPS_PAGE_MAX && job; i ++, job = (ipp_attribute_t *)cupsArrayNext(jobs)) cgiSetIPPObjectVars(job, NULL, i); /* * Save navigation URLs... */ if (dest) { snprintf(val, sizeof(val), "/%s/%s", section, dest); cgiSetVariable("PRINTER_NAME", dest); cgiSetVariable("PRINTER_URI_SUPPORTED", val); } else strlcpy(val, "/jobs/", sizeof(val)); cgiSetVariable("THISURL", val); if (first > 0) { snprintf(val, sizeof(val), "%d", first - CUPS_PAGE_MAX); cgiSetVariable("PREV", val); } if ((first + CUPS_PAGE_MAX) < count) { snprintf(val, sizeof(val), "%d", first + CUPS_PAGE_MAX); cgiSetVariable("NEXT", val); } if (count > CUPS_PAGE_MAX) { snprintf(val, sizeof(val), "%d", CUPS_PAGE_MAX * (count / CUPS_PAGE_MAX)); cgiSetVariable("LAST", val); } /* * Then show everything... */ if (dest) cgiSetVariable("SEARCH_DEST", dest); cgiCopyTemplateLang("search.tmpl"); cgiCopyTemplateLang("jobs-header.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); cgiCopyTemplateLang("jobs.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); cupsArrayDelete(jobs); ippDelete(response); } } /* * 'cgiText()' - Return localized text. */ const char * /* O - Localized message */ cgiText(const char *message) /* I - Message */ { static cups_lang_t *language = NULL; /* Language */ if (!language) language = cupsLangDefault(); return (_cupsLangString(language, message)); } cups-2.4.7/cgi-bin/html.c0000644000175000017500000000713214502571342015004 0ustar zdohnalzdohnal/* * HTML support functions for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" /* * Local globals... */ static const char *cgi_multipart = NULL; /* Multipart separator, if any */ /* * Local functions... */ static const char *cgi_null_passwd(const char *prompt); /* * 'cgiEndHTML()' - End a HTML page. */ void cgiEndHTML(void) { /* * Send the standard trailer... */ cgiCopyTemplateLang("trailer.tmpl"); } /* * 'cgiEndMultipart()' - End the delivery of a multipart web page. */ void cgiEndMultipart(void) { if (cgi_multipart) { printf("\n%s--\n", cgi_multipart); fflush(stdout); } } /* * 'cgiFormEncode()' - Encode a string as a form variable. */ char * /* O - Destination string */ cgiFormEncode(char *dst, /* I - Destination string */ const char *src, /* I - Source string */ size_t dstsize) /* I - Size of destination string */ { char *dstptr, /* Pointer into destination */ *dstend; /* End of destination */ static const char *hex = /* Hexadecimal characters */ "0123456789ABCDEF"; /* * Mark the end of the string... */ dstend = dst + dstsize - 1; /* * Loop through the source string and copy... */ for (dstptr = dst; *src && dstptr < dstend;) { switch (*src) { case ' ' : /* * Encode spaces with a "+"... */ *dstptr++ = '+'; src ++; break; case '&' : case '%' : case '+' : /* * Encode special characters with %XX escape... */ if (dstptr < (dstend - 2)) { *dstptr++ = '%'; *dstptr++ = hex[(*src & 255) >> 4]; *dstptr++ = hex[*src & 15]; src ++; } break; default : /* * Copy other characters literally... */ *dstptr++ = *src++; break; } } /* * Nul-terminate the destination string... */ *dstptr = '\0'; /* * Return the encoded string... */ return (dst); } /* * 'cgiStartHTML()' - Start a HTML page. */ void cgiStartHTML(const char *title) /* I - Title of page */ { /* * Disable any further authentication attempts... */ cupsSetPasswordCB(cgi_null_passwd); /* * Tell the client to expect UTF-8 encoded HTML... */ if (cgi_multipart) puts(cgi_multipart); puts("Content-Type: text/html;charset=utf-8\n"); /* * Send a standard header... */ cgiSetVariable("TITLE", title); cgiSetServerVersion(); cgiCopyTemplateLang("header.tmpl"); } /* * 'cgiStartMultipart()' - Start a multipart delivery of a web page. */ void cgiStartMultipart(void) { puts("MIME-Version: 1.0\n" "Content-Type: multipart/x-mixed-replace; boundary=\"CUPS-MULTIPART\"\n"); fflush(stdout); cgi_multipart = "--CUPS-MULTIPART"; } /* * 'cgiSupportsMultipart()' - Does the browser support multi-part documents? */ int /* O - 1 if multi-part supported, 0 otherwise */ cgiSupportsMultipart(void) { /* * Too many bug reports for browsers that don't support it, and too much pain * to whitelist known-good browsers, so for now we just punt on multi-part * support... :( */ return (0); } /* * 'cgi_null_passwd()' - Return a NULL password for authentication. */ static const char * /* O - NULL */ cgi_null_passwd(const char *prompt) /* I - Prompt string (unused) */ { (void)prompt; fprintf(stderr, "DEBUG: cgi_null_passwd(prompt=\"%s\") called!\n", prompt ? prompt : "(null)"); return (NULL); } cups-2.4.7/cgi-bin/help.c0000644000175000017500000002065614502571342014776 0ustar zdohnalzdohnal/* * Online help CGI for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" /* * 'main()' - Main entry for CGI. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { help_index_t *hi, /* Help index */ *si; /* Search index */ help_node_t *n; /* Current help node */ int i; /* Looping var */ const char *query; /* Search query */ const char *cache_dir; /* CUPS_CACHEDIR environment variable */ const char *docroot; /* CUPS_DOCROOT environment variable */ const char *helpfile, /* Current help file */ *helptitle = NULL; /* Current help title */ const char *topic; /* Current topic */ char topic_data[1024]; /* Topic form data */ const char *section; /* Current section */ char filename[1024], /* Filename */ directory[1024]; /* Directory */ cups_file_t *fp; /* Help file */ char line[1024]; /* Line from file */ int printable; /* Show printable version? */ /* * Get any form variables... */ cgiInitialize(); printable = cgiGetVariable("PRINTABLE") != NULL; /* * Set the web interface section... */ cgiSetVariable("SECTION", "help"); cgiSetVariable("REFRESH_PAGE", ""); /* * Load the help index... */ if ((cache_dir = getenv("CUPS_CACHEDIR")) == NULL) cache_dir = CUPS_CACHEDIR; snprintf(filename, sizeof(filename), "%s/help.index", cache_dir); if ((docroot = getenv("CUPS_DOCROOT")) == NULL) docroot = CUPS_DOCROOT; snprintf(directory, sizeof(directory), "%s/help", docroot); fprintf(stderr, "DEBUG: helpLoadIndex(filename=\"%s\", directory=\"%s\")\n", filename, directory); hi = helpLoadIndex(filename, directory); if (!hi) { perror(filename); cgiStartHTML(cgiText(_("Online Help"))); cgiSetVariable("ERROR", cgiText(_("Unable to load help index."))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return (1); } fprintf(stderr, "DEBUG: %d nodes in help index...\n", cupsArrayCount(hi->nodes)); /* * See if we are viewing a file... */ for (i = 0; i < argc; i ++) fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]); if ((helpfile = getenv("PATH_INFO")) != NULL) { helpfile ++; if (!*helpfile) helpfile = NULL; } if (helpfile) { /* * Verify that the help file exists and is part of the index... */ snprintf(filename, sizeof(filename), "%s/help/%s", docroot, helpfile); fprintf(stderr, "DEBUG: helpfile=\"%s\", filename=\"%s\"\n", helpfile, filename); if (access(filename, R_OK)) { perror(filename); cgiStartHTML(cgiText(_("Online Help"))); cgiSetVariable("ERROR", cgiText(_("Unable to access help file."))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return (1); } if ((n = helpFindNode(hi, helpfile, NULL)) == NULL) { cgiStartHTML(cgiText(_("Online Help"))); cgiSetVariable("ERROR", cgiText(_("Help file not in index."))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return (1); } /* * Save the page title and help file... */ helptitle = n->text; topic = n->section; /* * Send a standard page header... */ if (printable) puts("Content-Type: text/html;charset=utf-8\n"); else cgiStartHTML(n->text); } else { /* * Send a standard page header... */ cgiStartHTML(cgiText(_("Online Help"))); topic = cgiGetVariable("TOPIC"); } /* * Do a search as needed... */ if (cgiGetVariable("CLEAR")) cgiSetVariable("QUERY", ""); query = cgiGetVariable("QUERY"); si = helpSearchIndex(hi, query, topic, helpfile); cgiClearVariables(); if (query) cgiSetVariable("QUERY", query); if (topic) cgiSetVariable("TOPIC", topic); if (helpfile) cgiSetVariable("HELPFILE", helpfile); if (helptitle) cgiSetVariable("HELPTITLE", helptitle); fprintf(stderr, "DEBUG: query=\"%s\", topic=\"%s\"\n", query ? query : "(null)", topic ? topic : "(null)"); if (si) { help_node_t *nn; /* Parent node */ fprintf(stderr, "DEBUG: si=%p, si->sorted=%p, cupsArrayCount(si->sorted)=%d\n", si, si->sorted, cupsArrayCount(si->sorted)); for (i = 0, n = (help_node_t *)cupsArrayFirst(si->sorted); n; i ++, n = (help_node_t *)cupsArrayNext(si->sorted)) { if (helpfile && n->anchor) snprintf(line, sizeof(line), "#%s", n->anchor); else if (n->anchor) snprintf(line, sizeof(line), "/help/%s?QUERY=%s#%s", n->filename, query ? query : "", n->anchor); else snprintf(line, sizeof(line), "/help/%s?QUERY=%s", n->filename, query ? query : ""); cgiSetArray("QTEXT", i, n->text); cgiSetArray("QLINK", i, line); if (!helpfile && n->anchor) { nn = helpFindNode(hi, n->filename, NULL); snprintf(line, sizeof(line), "/help/%s?QUERY=%s", nn->filename, query ? query : ""); cgiSetArray("QPTEXT", i, nn->text); cgiSetArray("QPLINK", i, line); } else { cgiSetArray("QPTEXT", i, ""); cgiSetArray("QPLINK", i, ""); } fprintf(stderr, "DEBUG: [%d] = \"%s\" @ \"%s\"\n", i, n->text, line); } helpDeleteIndex(si); } /* * OK, now list the bookmarks within the index... */ for (i = 0, section = NULL, n = (help_node_t *)cupsArrayFirst(hi->sorted); n; n = (help_node_t *)cupsArrayNext(hi->sorted)) { if (n->anchor) continue; /* * Add a section link as needed... */ if (n->section && (!section || strcmp(n->section, section))) { /* * Add a link for this node... */ snprintf(line, sizeof(line), "/help/?TOPIC=%s&QUERY=%s", cgiFormEncode(topic_data, n->section, sizeof(topic_data)), query ? query : ""); cgiSetArray("BMLINK", i, line); cgiSetArray("BMTEXT", i, n->section); cgiSetArray("BMINDENT", i, "0"); i ++; section = n->section; } if (!topic || !n->section || strcmp(n->section, topic)) continue; /* * Add a link for this node... */ snprintf(line, sizeof(line), "/help/%s?TOPIC=%s&QUERY=%s", n->filename, cgiFormEncode(topic_data, n->section, sizeof(topic_data)), query ? query : ""); cgiSetArray("BMLINK", i, line); cgiSetArray("BMTEXT", i, n->text); cgiSetArray("BMINDENT", i, "1"); i ++; if (helpfile && !strcmp(helpfile, n->filename)) { help_node_t *nn; /* Pointer to sub-node */ cupsArraySave(hi->sorted); for (nn = (help_node_t *)cupsArrayFirst(hi->sorted); nn; nn = (help_node_t *)cupsArrayNext(hi->sorted)) if (nn->anchor && !strcmp(helpfile, nn->filename)) { /* * Add a link for this node... */ snprintf(line, sizeof(line), "#%s", nn->anchor); cgiSetArray("BMLINK", i, line); cgiSetArray("BMTEXT", i, nn->text); cgiSetArray("BMINDENT", i, "2"); i ++; } cupsArrayRestore(hi->sorted); } } /* * Show the search and bookmark content... */ if (!helpfile || !printable) cgiCopyTemplateLang("help-header.tmpl"); else cgiCopyTemplateLang("help-printable.tmpl"); /* * If we are viewing a file, copy it in now... */ if (helpfile) { if ((fp = cupsFileOpen(filename, "r")) != NULL) { int inbody; /* Are we inside the body? */ char *lineptr; /* Pointer into line */ inbody = 0; while (cupsFileGets(fp, line, sizeof(line))) { for (lineptr = line; *lineptr && isspace(*lineptr & 255); lineptr ++); if (inbody) { if (!_cups_strncasecmp(lineptr, "", 7)) break; printf("%s\n", line); } else if (!_cups_strncasecmp(lineptr, "\n"); /* * Delete the index... */ helpDeleteIndex(hi); /* * Return with no errors... */ return (0); } cups-2.4.7/cgi-bin/help-index.h0000644000175000017500000000361614502571342016105 0ustar zdohnalzdohnal/* * Online help index definitions for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ #ifndef _CUPS_HELP_INDEX_H_ # define _CUPS_HELP_INDEX_H_ /* * Include necessary headers... */ # include /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Data structures... */ typedef struct help_word_s /**** Help word structure... ****/ { int count; /* Number of occurrences */ char *text; /* Word text */ } help_word_t; typedef struct help_node_s /**** Help node structure... ****/ { char *filename; /* Filename, relative to help dir */ char *section; /* Section name (NULL if none) */ char *anchor; /* Anchor name (NULL if none) */ char *text; /* Text in anchor */ cups_array_t *words; /* Words after this node */ time_t mtime; /* Last modification time */ off_t offset; /* Offset in file */ size_t length; /* Length in bytes */ int score; /* Search score */ } help_node_t; typedef struct help_index_s /**** Help index structure ****/ { int search; /* 1 = search index, 0 = normal */ cups_array_t *nodes; /* Nodes sorted by filename */ cups_array_t *sorted; /* Nodes sorted by score + text */ } help_index_t; /* * Functions... */ extern void helpDeleteIndex(help_index_t *hi); extern help_node_t *helpFindNode(help_index_t *hi, const char *filename, const char *anchor); extern help_index_t *helpLoadIndex(const char *hifile, const char *directory); extern int helpSaveIndex(help_index_t *hi, const char *hifile); extern help_index_t *helpSearchIndex(help_index_t *hi, const char *query, const char *section, const char *filename); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_HELP_INDEX_H_ */ cups-2.4.7/cgi-bin/help-index.c0000644000175000017500000006002714502571342016077 0ustar zdohnalzdohnal/* * Online help index routines for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cgi-private.h" #include /* * List of common English words that should not be indexed... */ static char help_common_words[][6] = { "about", "all", "an", "and", "are", "as", "at", "be", "been", "but", "by", "call", "can", "come", "could", "day", "did", "do", "down", "each", "find", "first", "for", "from", "go", "had", "has", "have", "he", "her", "him", "his", "hot", "how", "if", "in", "is", "it", "know", "like", "long", "look", "make", "many", "may", "more", "most", "my", "no", "now", "of", "on", "one", "or", "other", "out", "over", "said", "see", "she", "side", "so", "some", "sound", "than", "that", "the", "their", "them", "then", "there", "these", "they", "thing", "this", "time", "to", "two", "up", "use", "was", "water", "way", "we", "were", "what", "when", "which", "who", "will", "with", "word", "would", "write", "you", "your" }; /* * Local functions... */ static help_word_t *help_add_word(help_node_t *n, const char *text); static void help_delete_node(help_node_t *n); static void help_delete_word(help_word_t *w); static int help_load_directory(help_index_t *hi, const char *directory, const char *relative); static int help_load_file(help_index_t *hi, const char *filename, const char *relative, time_t mtime); static help_node_t *help_new_node(const char *filename, const char *anchor, const char *section, const char *text, time_t mtime, off_t offset, size_t length) _CUPS_NONNULL(1,3,4); static int help_sort_by_name(help_node_t *p1, help_node_t *p2); static int help_sort_by_score(help_node_t *p1, help_node_t *p2); static int help_sort_words(help_word_t *w1, help_word_t *w2); /* * 'helpDeleteIndex()' - Delete an index, freeing all memory used. */ void helpDeleteIndex(help_index_t *hi) /* I - Help index */ { help_node_t *node; /* Current node */ if (!hi) return; for (node = (help_node_t *)cupsArrayFirst(hi->nodes); node; node = (help_node_t *)cupsArrayNext(hi->nodes)) { if (!hi->search) help_delete_node(node); } cupsArrayDelete(hi->nodes); cupsArrayDelete(hi->sorted); free(hi); } /* * 'helpFindNode()' - Find a node in an index. */ help_node_t * /* O - Node pointer or NULL */ helpFindNode(help_index_t *hi, /* I - Index */ const char *filename, /* I - Filename */ const char *anchor) /* I - Anchor */ { help_node_t key; /* Search key */ /* * Range check input... */ if (!hi || !filename) return (NULL); /* * Initialize the search key... */ key.filename = (char *)filename; key.anchor = (char *)anchor; /* * Return any match... */ return ((help_node_t *)cupsArrayFind(hi->nodes, &key)); } /* * 'helpLoadIndex()' - Load a help index from disk. */ help_index_t * /* O - Index pointer or NULL */ helpLoadIndex(const char *hifile, /* I - Index filename */ const char *directory) /* I - Directory that is indexed */ { help_index_t *hi; /* Help index */ cups_file_t *fp; /* Current file */ char line[2048], /* Line from file */ *ptr, /* Pointer into line */ *filename, /* Filename in line */ *anchor, /* Anchor in line */ *sectptr, /* Section pointer in line */ section[1024], /* Section name */ *text; /* Text in line */ time_t mtime; /* Modification time */ off_t offset; /* Offset into file */ size_t length; /* Length in bytes */ int update; /* Update? */ help_node_t *node; /* Current node */ help_word_t *word; /* Current word */ /* * Create a new, empty index. */ if ((hi = (help_index_t *)calloc(1, sizeof(help_index_t))) == NULL) return (NULL); hi->nodes = cupsArrayNew((cups_array_func_t)help_sort_by_name, NULL); hi->sorted = cupsArrayNew((cups_array_func_t)help_sort_by_score, NULL); if (!hi->nodes || !hi->sorted) { cupsArrayDelete(hi->nodes); cupsArrayDelete(hi->sorted); free(hi); return (NULL); } /* * Try loading the existing index file... */ if ((fp = cupsFileOpen(hifile, "r")) != NULL) { /* * Lock the file and then read the first line... */ cupsFileLock(fp, 1); if (cupsFileGets(fp, line, sizeof(line)) && !strcmp(line, "HELPV2")) { /* * Got a valid header line, now read the data lines... */ node = NULL; while (cupsFileGets(fp, line, sizeof(line))) { /* * Each line looks like one of the following: * * filename mtime offset length "section" "text" * filename#anchor offset length "text" * SP count word */ if (line[0] == ' ') { /* * Read a word in the current node... */ if (!node || (ptr = strrchr(line, ' ')) == NULL) continue; if ((word = help_add_word(node, ptr + 1)) != NULL) word->count = atoi(line + 1); } else { /* * Add a node... */ filename = line; if ((ptr = strchr(line, ' ')) == NULL) break; while (isspace(*ptr & 255)) *ptr++ = '\0'; if ((anchor = strrchr(filename, '#')) != NULL) { *anchor++ = '\0'; mtime = 0; } else mtime = strtol(ptr, &ptr, 10); offset = strtoll(ptr, &ptr, 10); length = (size_t)strtoll(ptr, &ptr, 10); while (isspace(*ptr & 255)) ptr ++; if (!anchor) { /* * Get section... */ if (*ptr != '\"') break; ptr ++; sectptr = ptr; while (*ptr && *ptr != '\"') ptr ++; if (*ptr != '\"') break; *ptr++ = '\0'; strlcpy(section, sectptr, sizeof(section)); while (isspace(*ptr & 255)) ptr ++; } else section[0] = '\0'; if (*ptr != '\"') break; ptr ++; text = ptr; while (*ptr && *ptr != '\"') ptr ++; if (*ptr != '\"') break; *ptr++ = '\0'; if ((node = help_new_node(filename, anchor, section, text, mtime, offset, length)) == NULL) break; node->score = -1; cupsArrayAdd(hi->nodes, node); } } } cupsFileClose(fp); } /* * Scan for new/updated files... */ update = help_load_directory(hi, directory, NULL); /* * Remove any files that are no longer installed... */ for (node = (help_node_t *)cupsArrayFirst(hi->nodes); node; node = (help_node_t *)cupsArrayNext(hi->nodes)) if (node->score < 0) { /* * Delete this node... */ cupsArrayRemove(hi->nodes, node); help_delete_node(node); } /* * Add nodes to the sorted array... */ for (node = (help_node_t *)cupsArrayFirst(hi->nodes); node; node = (help_node_t *)cupsArrayNext(hi->nodes)) cupsArrayAdd(hi->sorted, node); /* * Save the index if we updated it... */ if (update) helpSaveIndex(hi, hifile); /* * Return the index... */ return (hi); } /* * 'helpSaveIndex()' - Save a help index to disk. */ int /* O - 0 on success, -1 on error */ helpSaveIndex(help_index_t *hi, /* I - Index */ const char *hifile) /* I - Index filename */ { cups_file_t *fp; /* Index file */ help_node_t *node; /* Current node */ help_word_t *word; /* Current word */ /* * Try creating a new index file... */ if ((fp = cupsFileOpen(hifile, "w9")) == NULL) return (-1); /* * Lock the file while we write it... */ cupsFileLock(fp, 1); cupsFilePuts(fp, "HELPV2\n"); for (node = (help_node_t *)cupsArrayFirst(hi->nodes); node; node = (help_node_t *)cupsArrayNext(hi->nodes)) { /* * Write the current node with/without the anchor... */ if (node->anchor) { if (cupsFilePrintf(fp, "%s#%s " CUPS_LLFMT " " CUPS_LLFMT " \"%s\"\n", node->filename, node->anchor, CUPS_LLCAST node->offset, CUPS_LLCAST node->length, node->text) < 0) break; } else { if (cupsFilePrintf(fp, "%s %d " CUPS_LLFMT " " CUPS_LLFMT " \"%s\" \"%s\"\n", node->filename, (int)node->mtime, CUPS_LLCAST node->offset, CUPS_LLCAST node->length, node->section ? node->section : "", node->text) < 0) break; } /* * Then write the words associated with the node... */ for (word = (help_word_t *)cupsArrayFirst(node->words); word; word = (help_word_t *)cupsArrayNext(node->words)) if (cupsFilePrintf(fp, " %d %s\n", word->count, word->text) < 0) break; } cupsFileFlush(fp); if (cupsFileClose(fp) < 0) return (-1); else if (node) return (-1); else return (0); } /* * 'helpSearchIndex()' - Search an index. */ help_index_t * /* O - Search index */ helpSearchIndex(help_index_t *hi, /* I - Index */ const char *query, /* I - Query string */ const char *section, /* I - Limit search to this section */ const char *filename) /* I - Limit search to this file */ { help_index_t *search; /* Search index */ help_node_t *node; /* Current node */ help_word_t *word; /* Current word */ void *sc; /* Search context */ int matches; /* Number of matches */ /* * Range check... */ if (!hi || !query) return (NULL); /* * Reset the scores of all nodes to 0... */ for (node = (help_node_t *)cupsArrayFirst(hi->nodes); node; node = (help_node_t *)cupsArrayNext(hi->nodes)) node->score = 0; /* * Find the first node to search in... */ if (filename) { node = helpFindNode(hi, filename, NULL); if (!node) return (NULL); } else node = (help_node_t *)cupsArrayFirst(hi->nodes); /* * Convert the query into a regular expression... */ sc = cgiCompileSearch(query); if (!sc) return (NULL); /* * Allocate a search index... */ search = calloc(1, sizeof(help_index_t)); if (!search) { cgiFreeSearch(sc); return (NULL); } search->nodes = cupsArrayNew((cups_array_func_t)help_sort_by_name, NULL); search->sorted = cupsArrayNew((cups_array_func_t)help_sort_by_score, NULL); if (!search->nodes || !search->sorted) { cupsArrayDelete(search->nodes); cupsArrayDelete(search->sorted); free(search); cgiFreeSearch(sc); return (NULL); } search->search = 1; /* * Check each node in the index, adding matching nodes to the * search index... */ for (; node; node = (help_node_t *)cupsArrayNext(hi->nodes)) if (node->section && section && strcmp(node->section, section)) continue; else if (filename && strcmp(node->filename, filename)) continue; else { matches = cgiDoSearch(sc, node->text); for (word = (help_word_t *)cupsArrayFirst(node->words); word; word = (help_word_t *)cupsArrayNext(node->words)) if (cgiDoSearch(sc, word->text) > 0) matches += word->count; if (matches > 0) { /* * Found a match, add the node to the search index... */ node->score = matches; cupsArrayAdd(search->nodes, node); cupsArrayAdd(search->sorted, node); } } /* * Free the search context... */ cgiFreeSearch(sc); /* * Return the results... */ return (search); } /* * 'help_add_word()' - Add a word to a node. */ static help_word_t * /* O - New word */ help_add_word(help_node_t *n, /* I - Node */ const char *text) /* I - Word text */ { help_word_t *w, /* New word */ key; /* Search key */ /* * Create the words array as needed... */ if (!n->words) n->words = cupsArrayNew((cups_array_func_t)help_sort_words, NULL); /* * See if the word is already added... */ key.text = (char *)text; if ((w = (help_word_t *)cupsArrayFind(n->words, &key)) == NULL) { /* * Create a new word... */ if ((w = calloc(1, sizeof(help_word_t))) == NULL) return (NULL); if ((w->text = strdup(text)) == NULL) { free(w); return (NULL); } cupsArrayAdd(n->words, w); } /* * Bump the counter for this word and return it... */ w->count ++; return (w); } /* * 'help_delete_node()' - Free all memory used by a node. */ static void help_delete_node(help_node_t *n) /* I - Node */ { help_word_t *w; /* Current word */ if (!n) return; if (n->filename) free(n->filename); if (n->anchor) free(n->anchor); if (n->section) free(n->section); if (n->text) free(n->text); for (w = (help_word_t *)cupsArrayFirst(n->words); w; w = (help_word_t *)cupsArrayNext(n->words)) help_delete_word(w); cupsArrayDelete(n->words); free(n); } /* * 'help_delete_word()' - Free all memory used by a word. */ static void help_delete_word(help_word_t *w) /* I - Word */ { if (!w) return; if (w->text) free(w->text); free(w); } /* * 'help_load_directory()' - Load a directory of files into an index. */ static int /* O - 0 = success, -1 = error, 1 = updated */ help_load_directory( help_index_t *hi, /* I - Index */ const char *directory, /* I - Directory */ const char *relative) /* I - Relative path */ { cups_dir_t *dir; /* Directory file */ cups_dentry_t *dent; /* Directory entry */ char *ext, /* Pointer to extension */ filename[1024], /* Full filename */ relname[1024]; /* Relative filename */ int update; /* Updated? */ help_node_t *node; /* Current node */ /* * Open the directory and scan it... */ if ((dir = cupsDirOpen(directory)) == NULL) return (0); update = 0; while ((dent = cupsDirRead(dir)) != NULL) { /* * Skip "." files... */ if (dent->filename[0] == '.') continue; /* * Get absolute and relative filenames... */ snprintf(filename, sizeof(filename), "%s/%s", directory, dent->filename); if (relative) snprintf(relname, sizeof(relname), "%s/%s", relative, dent->filename); else strlcpy(relname, dent->filename, sizeof(relname)); /* * Check if we have a HTML file... */ if ((ext = strstr(dent->filename, ".html")) != NULL && (!ext[5] || !strcmp(ext + 5, ".gz"))) { /* * HTML file, see if we have already indexed the file... */ if ((node = helpFindNode(hi, relname, NULL)) != NULL) { /* * File already indexed - check dates to confirm that the * index is up-to-date... */ if (node->mtime == dent->fileinfo.st_mtime) { /* * Same modification time, so mark all of the nodes * for this file as up-to-date... */ for (; node; node = (help_node_t *)cupsArrayNext(hi->nodes)) if (!strcmp(node->filename, relname)) node->score = 0; else break; continue; } } update = 1; help_load_file(hi, filename, relname, dent->fileinfo.st_mtime); } else if (S_ISDIR(dent->fileinfo.st_mode)) { /* * Process sub-directory... */ if (help_load_directory(hi, filename, relname) == 1) update = 1; } } cupsDirClose(dir); return (update); } /* * 'help_load_file()' - Load a HTML files into an index. */ static int /* O - 0 = success, -1 = error */ help_load_file( help_index_t *hi, /* I - Index */ const char *filename, /* I - Filename */ const char *relative, /* I - Relative path */ time_t mtime) /* I - Modification time */ { cups_file_t *fp; /* HTML file */ help_node_t *node; /* Current node */ char line[1024], /* Line from file */ temp[1024], /* Temporary word */ section[1024], /* Section */ *ptr, /* Pointer into line */ *anchor, /* Anchor name */ *text; /* Text for anchor */ off_t offset; /* File offset */ char quote; /* Quote character */ help_word_t *word; /* Current word */ size_t wordlen; /* Length of word */ if ((fp = cupsFileOpen(filename, "r")) == NULL) return (-1); node = NULL; offset = 0; strlcpy(section, "Other", sizeof(section)); while (cupsFileGets(fp, line, sizeof(line))) { /* * Look for "", "<A NAME", or "<!-- SECTION:" prefix... */ if ((ptr = strstr(line, "<!-- SECTION:")) != NULL) { /* * Got section line, copy it! */ for (ptr += 13; isspace(*ptr & 255); ptr ++); strlcpy(section, ptr, sizeof(section)); if ((ptr = strstr(section, "-->")) != NULL) { /* * Strip comment stuff from end of line... */ for (*ptr-- = '\0'; ptr > line && isspace(*ptr & 255); *ptr-- = '\0'); if (isspace(*ptr & 255)) *ptr = '\0'; } continue; } for (ptr = line; (ptr = strchr(ptr, '<')) != NULL;) { ptr ++; if (!_cups_strncasecmp(ptr, "TITLE>", 6)) { /* * Found the title... */ anchor = NULL; ptr += 6; } else { char *idptr; /* Pointer to ID */ if (!_cups_strncasecmp(ptr, "A NAME=", 7)) ptr += 7; else if ((idptr = strstr(ptr, " ID=")) != NULL) ptr = idptr + 4; else if ((idptr = strstr(ptr, " id=")) != NULL) ptr = idptr + 4; else continue; /* * Found an anchor... */ if (*ptr == '\"' || *ptr == '\'') { /* * Get quoted anchor... */ quote = *ptr; anchor = ptr + 1; if ((ptr = strchr(anchor, quote)) != NULL) *ptr++ = '\0'; else break; } else { /* * Get unquoted anchor... */ anchor = ptr + 1; for (ptr = anchor; *ptr && *ptr != '>' && !isspace(*ptr & 255); ptr ++); if (*ptr != '>') *ptr++ = '\0'; else break; } /* * Got the anchor, now lets find the end... */ while (*ptr && *ptr != '>') ptr ++; if (*ptr != '>') break; *ptr++ = '\0'; } /* * Now collect text for the link... */ text = ptr; while ((ptr = strchr(text, '<')) == NULL) { ptr = text + strlen(text); if (ptr >= (line + sizeof(line) - 2)) break; *ptr++ = ' '; if (!cupsFileGets(fp, ptr, sizeof(line) - (size_t)(ptr - line) - 1)) break; } *ptr = '\0'; if (node) node->length = (size_t)(offset - node->offset); if (!*text) { node = NULL; break; } if ((node = helpFindNode(hi, relative, anchor)) != NULL) { /* * Node already in the index, so replace the text and other * data... */ cupsArrayRemove(hi->nodes, node); if (node->section) free(node->section); if (node->text) free(node->text); if (node->words) { for (word = (help_word_t *)cupsArrayFirst(node->words); word; word = (help_word_t *)cupsArrayNext(node->words)) help_delete_word(word); cupsArrayDelete(node->words); node->words = NULL; } node->section = section[0] ? strdup(section) : NULL; node->text = strdup(text); node->mtime = mtime; node->offset = offset; node->score = 0; } else { /* * New node... */ node = help_new_node(relative, anchor, section, text, mtime, offset, 0); } /* * Go through the text value and replace tabs and newlines with * whitespace and eliminate extra whitespace... */ for (ptr = node->text, text = node->text; *ptr;) if (isspace(*ptr & 255)) { while (isspace(*ptr & 255)) ptr ++; *text++ = ' '; } else if (text != ptr) *text++ = *ptr++; else { text ++; ptr ++; } *text = '\0'; /* * (Re)add the node to the array... */ cupsArrayAdd(hi->nodes, node); if (!anchor) node = NULL; break; } if (node) { /* * Scan this line for words... */ for (ptr = line; *ptr; ptr ++) { /* * Skip HTML stuff... */ if (*ptr == '<') { if (!strncmp(ptr, "<!--", 4)) { /* * Skip HTML comment... */ if ((text = strstr(ptr + 4, "-->")) == NULL) ptr += strlen(ptr) - 1; else ptr = text + 2; } else { /* * Skip HTML element... */ for (ptr ++; *ptr && *ptr != '>'; ptr ++) { if (*ptr == '\"' || *ptr == '\'') { for (quote = *ptr++; *ptr && *ptr != quote; ptr ++); if (!*ptr) ptr --; } } if (!*ptr) ptr --; } continue; } else if (*ptr == '&') { /* * Skip HTML entity... */ for (ptr ++; *ptr && *ptr != ';'; ptr ++); if (!*ptr) ptr --; continue; } else if (!isalnum(*ptr & 255)) continue; /* * Found the start of a word, search until we find the end... */ for (text = ptr, ptr ++; *ptr && isalnum(*ptr & 255); ptr ++); wordlen = (size_t)(ptr - text); memcpy(temp, text, wordlen); temp[wordlen] = '\0'; ptr --; if (wordlen > 1 && !bsearch(temp, help_common_words, (sizeof(help_common_words) / sizeof(help_common_words[0])), sizeof(help_common_words[0]), (int (*)(const void *, const void *)) _cups_strcasecmp)) help_add_word(node, temp); } } /* * Get the offset of the next line... */ offset = cupsFileTell(fp); } cupsFileClose(fp); if (node) node->length = (size_t)(offset - node->offset); return (0); } /* * 'help_new_node()' - Create a new node and add it to an index. */ static help_node_t * /* O - Node pointer or NULL on error */ help_new_node(const char *filename, /* I - Filename */ const char *anchor, /* I - Anchor */ const char *section, /* I - Section */ const char *text, /* I - Text */ time_t mtime, /* I - Modification time */ off_t offset, /* I - Offset in file */ size_t length) /* I - Length in bytes */ { help_node_t *n; /* Node */ n = (help_node_t *)calloc(1, sizeof(help_node_t)); if (!n) return (NULL); n->filename = strdup(filename); n->anchor = anchor ? strdup(anchor) : NULL; n->section = (section && *section) ? strdup(section) : NULL; n->text = strdup(text); n->mtime = mtime; n->offset = offset; n->length = length; return (n); } /* * 'help_sort_nodes_by_name()' - Sort nodes by section, filename, and anchor. */ static int /* O - Difference */ help_sort_by_name(help_node_t *n1, /* I - First node */ help_node_t *n2) /* I - Second node */ { int diff; /* Difference */ if ((diff = strcmp(n1->filename, n2->filename)) != 0) return (diff); if (!n1->anchor && !n2->anchor) return (0); else if (!n1->anchor) return (-1); else if (!n2->anchor) return (1); else return (strcmp(n1->anchor, n2->anchor)); } /* * 'help_sort_nodes_by_score()' - Sort nodes by score and text. */ static int /* O - Difference */ help_sort_by_score(help_node_t *n1, /* I - First node */ help_node_t *n2) /* I - Second node */ { int diff; /* Difference */ if (n1->score != n2->score) return (n2->score - n1->score); if (n1->section && !n2->section) return (1); else if (!n1->section && n2->section) return (-1); else if (n1->section && n2->section && (diff = strcmp(n1->section, n2->section)) != 0) return (diff); return (_cups_strcasecmp(n1->text, n2->text)); } /* * 'help_sort_words()' - Sort words alphabetically. */ static int /* O - Difference */ help_sort_words(help_word_t *w1, /* I - Second word */ help_word_t *w2) /* I - Second word */ { return (_cups_strcasecmp(w1->text, w2->text)); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/cgi-bin/classes.c������������������������������������������������������������������������0000644�0001750�0001750�00000027460�14502571342�015503� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Class status CGI for CUPS. * * Copyright 2007-2016 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi-private.h" /* * Local functions... */ static void do_class_op(http_t *http, const char *printer, ipp_op_t op, const char *title); static void show_all_classes(http_t *http, const char *username); static void show_class(http_t *http, const char *printer); /* * 'main()' - Main entry for CGI. */ int /* O - Exit status */ main(void) { const char *pclass; /* Class name */ const char *user; /* Username */ http_t *http; /* Connection to the server */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ const char *op; /* Operation to perform, if any */ static const char *def_attrs[] = /* Attributes for default printer */ { "printer-name", "printer-uri-supported" }; /* * Get any form variables... */ cgiInitialize(); op = cgiGetVariable("OP"); /* * Set the web interface section... */ cgiSetVariable("SECTION", "classes"); cgiSetVariable("REFRESH_PAGE", ""); /* * See if we are displaying a printer or all classes... */ if ((pclass = getenv("PATH_INFO")) != NULL) { pclass ++; if (!*pclass) pclass = NULL; if (pclass) cgiSetVariable("PRINTER_NAME", pclass); } /* * See who is logged in... */ user = getenv("REMOTE_USER"); /* * Connect to the HTTP server... */ http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); /* * Get the default printer... */ if (!op || !cgiIsPOST()) { /* * Get the default destination... */ request = ippNewRequest(CUPS_GET_DEFAULT); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(def_attrs) / sizeof(def_attrs[0]), NULL, def_attrs); if ((response = cupsDoRequest(http, request, "/")) != NULL) { if ((attr = ippFindAttribute(response, "printer-name", IPP_TAG_NAME)) != NULL) cgiSetVariable("DEFAULT_NAME", attr->values[0].string.text); if ((attr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL) { char url[HTTP_MAX_URI]; /* New URL */ cgiSetVariable("DEFAULT_URI", cgiRewriteURL(attr->values[0].string.text, url, sizeof(url), NULL)); } ippDelete(response); } /* * See if we need to show a list of classes or the status of a * single printer... */ if (!pclass) show_all_classes(http, user); else show_class(http, pclass); } else if (pclass) { if (!*op) { const char *server_port = getenv("SERVER_PORT"); /* Port number string */ int port = atoi(server_port ? server_port : "0"); /* Port number */ char uri[1024]; /* URL */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), getenv("HTTPS") ? "https" : "http", NULL, getenv("SERVER_NAME"), port, "/classes/%s", pclass); printf("Location: %s\n\n", uri); } else if (!strcmp(op, "start-class")) do_class_op(http, pclass, IPP_RESUME_PRINTER, cgiText(_("Resume Class"))); else if (!strcmp(op, "stop-class")) do_class_op(http, pclass, IPP_PAUSE_PRINTER, cgiText(_("Pause Class"))); else if (!strcmp(op, "accept-jobs")) do_class_op(http, pclass, CUPS_ACCEPT_JOBS, cgiText(_("Accept Jobs"))); else if (!strcmp(op, "reject-jobs")) do_class_op(http, pclass, CUPS_REJECT_JOBS, cgiText(_("Reject Jobs"))); else if (!strcmp(op, "cancel-jobs")) do_class_op(http, pclass, IPP_OP_CANCEL_JOBS, cgiText(_("Cancel Jobs"))); else if (!_cups_strcasecmp(op, "print-test-page")) cgiPrintTestPage(http, pclass); else if (!_cups_strcasecmp(op, "move-jobs")) cgiMoveJobs(http, pclass, 0); else { /* * Unknown/bad operation... */ cgiStartHTML(pclass); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } } else { /* * Unknown/bad operation... */ cgiStartHTML(cgiText(_("Classes"))); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } /* * Close the HTTP server connection... */ httpClose(http); /* * Return with no errors... */ return (0); } /* * 'do_class_op()' - Do a class operation. */ static void do_class_op(http_t *http, /* I - HTTP connection */ const char *printer, /* I - Printer name */ ipp_op_t op, /* I - Operation to perform */ const char *title) /* I - Title of page */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI], /* Printer URI */ resource[HTTP_MAX_URI]; /* Path for request */ /* * Build a printer request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(op); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ snprintf(resource, sizeof(resource), "/classes/%s", printer); ippDelete(cupsDoRequest(http, request, resource)); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(_("Unable to do maintenance command")); } else { /* * Redirect successful updates back to the printer page... */ char url[1024], /* Printer/class URL */ refresh[1024]; /* Refresh URL */ cgiRewriteURL(uri, url, sizeof(url), NULL); cgiFormEncode(uri, url, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); cgiSetVariable("IS_CLASS", "YES"); if (op == IPP_PAUSE_PRINTER) cgiCopyTemplateLang("printer-stop.tmpl"); else if (op == IPP_RESUME_PRINTER) cgiCopyTemplateLang("printer-start.tmpl"); else if (op == CUPS_ACCEPT_JOBS) cgiCopyTemplateLang("printer-accept.tmpl"); else if (op == CUPS_REJECT_JOBS) cgiCopyTemplateLang("printer-reject.tmpl"); else if (op == IPP_OP_CANCEL_JOBS) cgiCopyTemplateLang("printer-cancel-jobs.tmpl"); } cgiEndHTML(); } /* * 'show_all_classes()' - Show all classes... */ static void show_all_classes(http_t *http, /* I - Connection to server */ const char *user) /* I - Username */ { int i; /* Looping var */ ipp_t *request, /* IPP request */ *response; /* IPP response */ cups_array_t *classes; /* Array of class objects */ ipp_attribute_t *pclass; /* Class object */ int first, /* First class to show */ count; /* Number of classes */ const char *var; /* Form variable */ void *search; /* Search data */ char val[1024]; /* Form variable */ /* * Show the standard header... */ cgiStartHTML(cgiText(_("Classes"))); /* * Build a CUPS_GET_CLASSES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * requesting-user-name */ request = ippNewRequest(CUPS_GET_CLASSES); if (user) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); cgiGetAttributes(request, "classes.tmpl"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Get a list of matching job objects. */ if ((var = cgiGetVariable("QUERY")) != NULL && !cgiGetVariable("CLEAR")) search = cgiCompileSearch(var); else search = NULL; classes = cgiGetIPPObjects(response, search); count = cupsArrayCount(classes); if (search) cgiFreeSearch(search); /* * Figure out which classes to display... */ if ((var = cgiGetVariable("FIRST")) != NULL) first = atoi(var); else first = 0; if (first >= count) first = count - CUPS_PAGE_MAX; first = (first / CUPS_PAGE_MAX) * CUPS_PAGE_MAX; if (first < 0) first = 0; snprintf(val, sizeof(val), "%d", count); cgiSetVariable("TOTAL", val); for (i = 0, pclass = (ipp_attribute_t *)cupsArrayIndex(classes, first); i < CUPS_PAGE_MAX && pclass; i ++, pclass = (ipp_attribute_t *)cupsArrayNext(classes)) cgiSetIPPObjectVars(pclass, NULL, i); /* * Save navigation URLs... */ cgiSetVariable("THISURL", "/classes/"); if (first > 0) { snprintf(val, sizeof(val), "%d", first - CUPS_PAGE_MAX); cgiSetVariable("PREV", val); } if ((first + CUPS_PAGE_MAX) < count) { snprintf(val, sizeof(val), "%d", first + CUPS_PAGE_MAX); cgiSetVariable("NEXT", val); } if (count > CUPS_PAGE_MAX) { snprintf(val, sizeof(val), "%d", CUPS_PAGE_MAX * (count / CUPS_PAGE_MAX)); cgiSetVariable("LAST", val); } /* * Then show everything... */ cgiCopyTemplateLang("search.tmpl"); cgiCopyTemplateLang("classes-header.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); cgiCopyTemplateLang("classes.tmpl"); if (count > CUPS_PAGE_MAX) cgiCopyTemplateLang("pager.tmpl"); /* * Delete the response... */ cupsArrayDelete(classes); ippDelete(response); } else { /* * Show the error... */ cgiShowIPPError(_("Unable to get class list")); } cgiEndHTML(); } /* * 'show_class()' - Show a single class. */ static void show_class(http_t *http, /* I - Connection to server */ const char *pclass) /* I - Name of class */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ char uri[HTTP_MAX_URI]; /* Printer URI */ char refresh[1024]; /* Refresh URL */ /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", pclass); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); cgiGetAttributes(request, "class.tmpl"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Got the result; set the CGI variables and check the status of a * single-queue request... */ cgiSetIPPVars(response, NULL, NULL, NULL, 0); if (pclass && (attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL && attr->values[0].integer == IPP_PRINTER_PROCESSING) { /* * Class is processing - automatically refresh the page until we * are done printing... */ cgiFormEncode(uri, pclass, sizeof(uri)); snprintf(refresh, sizeof(refresh), "10;URL=/classes/%s", uri); cgiSetVariable("refresh_page", refresh); } /* * Delete the response... */ ippDelete(response); /* * Show the standard header... */ cgiStartHTML(pclass); /* * Show the class status... */ cgiCopyTemplateLang("class.tmpl"); /* * Show jobs for the specified class... */ cgiCopyTemplateLang("class-jobs-header.tmpl"); cgiShowJobs(http, pclass); } else { /* * Show the IPP error... */ cgiStartHTML(pclass); cgiShowIPPError(_("Unable to get class status")); } cgiEndHTML(); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/cgi-bin/cgi.h����������������������������������������������������������������������������0000644�0001750�0001750�00000006660�14502571342�014614� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * CGI support library definitions for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_CGI_H_ # define _CUPS_CGI_H_ # include <stdio.h> # include <stdlib.h> # include <time.h> # include <sys/stat.h> # ifdef _WIN32 # include <direct.h> # include <io.h> # else # include <unistd.h> # endif /* _WIN32 */ # include <cups/cups.h> # include <cups/array.h> # include "help-index.h" /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Types... */ typedef struct cgi_file_s /**** Uploaded file data ****/ { char tempfile[1024], /* Temporary file containing data */ *name, /* Variable name */ *filename, /* Original filename */ *mimetype; /* MIME media type */ size_t filesize; /* Size of uploaded file */ } cgi_file_t; /* * Prototypes... */ extern void cgiAbort(const char *title, const char *stylesheet, const char *format, ...); extern int cgiCheckVariables(const char *names); extern void cgiClearVariables(void); extern void *cgiCompileSearch(const char *query); extern void cgiCopyTemplateFile(FILE *out, const char *tmpl); extern void cgiCopyTemplateLang(const char *tmpl); extern int cgiDoSearch(void *search, const char *text); extern void cgiEndHTML(void); extern void cgiEndMultipart(void); extern char *cgiFormEncode(char *dst, const char *src, size_t dstsize); extern void cgiFreeSearch(void *search); extern char *cgiGetArray(const char *name, int element); extern void cgiGetAttributes(ipp_t *request, const char *tmpl); extern const char *cgiGetCookie(const char *name); extern const cgi_file_t *cgiGetFile(void); extern cups_array_t *cgiGetIPPObjects(ipp_t *response, void *search); extern int cgiGetSize(const char *name); extern char *cgiGetTemplateDir(void); extern char *cgiGetVariable(const char *name); extern int cgiInitialize(void); extern int cgiIsPOST(void); extern void cgiMoveJobs(http_t *http, const char *dest, int job_id); extern void cgiPrintCommand(http_t *http, const char *dest, const char *command, const char *title); extern void cgiPrintTestPage(http_t *http, const char *dest); extern char *cgiRewriteURL(const char *uri, char *url, int urlsize, const char *newresource); extern void cgiSetArray(const char *name, int element, const char *value); extern void cgiSetCookie(const char *name, const char *value, const char *path, const char *domain, time_t expires, int secure); extern ipp_attribute_t *cgiSetIPPObjectVars(ipp_attribute_t *obj, const char *prefix, int element); extern int cgiSetIPPVars(ipp_t *response, const char *filter_name, const char *filter_value, const char *prefix, int parent_el); extern void cgiSetServerVersion(void); extern void cgiSetSize(const char *name, int size); extern void cgiSetVariable(const char *name, const char *value); extern void cgiShowIPPError(const char *message); extern void cgiShowJobs(http_t *http, const char *dest); extern void cgiStartHTML(const char *title); extern void cgiStartMultipart(void); extern int cgiSupportsMultipart(void); extern const char *cgiText(const char *message); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_CGI_H_ */ ��������������������������������������������������������������������������������cups-2.4.7/cgi-bin/cgi-private.h��������������������������������������������������������������������0000644�0001750�0001750�00000001022�14502571342�016247� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Private CGI definitions for CUPS. * * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include "cgi.h" #include <cups/debug-private.h> #include <cups/language-private.h> #include <cups/string-private.h> #include <cups/ipp-private.h> /* TODO: Update so we don't need this */ /* * Limits... */ #define CUPS_PAGE_MAX 100 /* Maximum items per page */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/cgi-bin/admin.c��������������������������������������������������������������������������0000644�0001750�0001750�00000300554�14502571342�015134� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Administration CGI for CUPS. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include "cgi-private.h" #include <cups/http-private.h> #include <cups/ppd-private.h> #include <cups/adminutil.h> #include <cups/ppd.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include <limits.h> /* * Local globals... */ static int current_device = 0; /* Current device shown */ /* * Local functions... */ static void choose_device_cb(const char *device_class, const char *device_id, const char *device_info, const char *device_make_and_model, const char *device_uri, const char *device_location, const char *title); static void do_am_class(http_t *http, int modify); static void do_am_printer(http_t *http, int modify); static void do_config_server(http_t *http); static void do_delete_class(http_t *http); static void do_delete_printer(http_t *http); static void do_list_printers(http_t *http); static void do_menu(http_t *http); static void do_set_allowed_users(http_t *http); static void do_set_default(http_t *http); static void do_set_options(http_t *http, int is_class); static void do_set_sharing(http_t *http); static char *get_option_value(ppd_file_t *ppd, const char *name, char *buffer, size_t bufsize); static double get_points(double number, const char *uval); /* * 'main()' - Main entry for CGI. */ int /* O - Exit status */ main(void) { http_t *http; /* Connection to the server */ const char *op; /* Operation name */ /* * Connect to the HTTP server... */ fputs("DEBUG: admin.cgi started...\n", stderr); http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); if (!http) { perror("ERROR: Unable to connect to cupsd"); fprintf(stderr, "DEBUG: cupsServer()=\"%s\"\n", cupsServer() ? cupsServer() : "(null)"); fprintf(stderr, "DEBUG: ippPort()=%d\n", ippPort()); fprintf(stderr, "DEBUG: cupsEncryption()=%d\n", cupsEncryption()); exit(1); } fprintf(stderr, "DEBUG: http=%p\n", http); /* * Set the web interface section... */ cgiSetVariable("SECTION", "admin"); cgiSetVariable("REFRESH_PAGE", ""); /* * See if we have form data... */ if (!cgiInitialize() || !cgiGetVariable("OP")) { /* * Nope, send the administration menu... */ fputs("DEBUG: No form data, showing main menu...\n", stderr); do_menu(http); } else if ((op = cgiGetVariable("OP")) != NULL && cgiIsPOST()) { /* * Do the operation... */ fprintf(stderr, "DEBUG: op=\"%s\"...\n", op); if (!*op) { const char *printer = getenv("PRINTER_NAME"), /* Printer or class name */ *server_port = getenv("SERVER_PORT"); /* Port number string */ int port = server_port ? atoi(server_port) : 0; /* Port number */ char uri[1024]; /* URL */ if (printer) httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), getenv("HTTPS") ? "https" : "http", NULL, getenv("SERVER_NAME"), port, "/%s/%s", cgiGetVariable("IS_CLASS") ? "classes" : "printers", printer); else httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), getenv("HTTPS") ? "https" : "http", NULL, getenv("SERVER_NAME"), port, "/admin"); printf("Location: %s\n\n", uri); } else if (!strcmp(op, "set-allowed-users")) do_set_allowed_users(http); else if (!strcmp(op, "set-as-default")) do_set_default(http); else if (!strcmp(op, "set-sharing")) do_set_sharing(http); else if (!strcmp(op, "find-new-printers") || !strcmp(op, "list-available-printers")) do_list_printers(http); else if (!strcmp(op, "add-class")) do_am_class(http, 0); else if (!strcmp(op, "add-printer")) do_am_printer(http, 0); else if (!strcmp(op, "modify-class")) do_am_class(http, 1); else if (!strcmp(op, "modify-printer")) do_am_printer(http, 1); else if (!strcmp(op, "delete-class")) do_delete_class(http); else if (!strcmp(op, "delete-printer")) do_delete_printer(http); else if (!strcmp(op, "set-class-options")) do_set_options(http, 1); else if (!strcmp(op, "set-printer-options")) do_set_options(http, 0); else if (!strcmp(op, "config-server")) do_config_server(http); else { /* * Bad operation code - display an error... */ cgiStartHTML(cgiText(_("Administration"))); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } } else if (op && !strcmp(op, "redirect")) { const char *url; /* Redirection URL... */ char prefix[1024]; /* URL prefix */ if (getenv("HTTPS")) snprintf(prefix, sizeof(prefix), "https://%s:%s", getenv("SERVER_NAME"), getenv("SERVER_PORT")); else snprintf(prefix, sizeof(prefix), "http://%s:%s", getenv("SERVER_NAME"), getenv("SERVER_PORT")); fprintf(stderr, "DEBUG: redirecting with prefix %s!\n", prefix); if ((url = cgiGetVariable("URL")) != NULL) { char encoded[1024], /* Encoded URL string */ *ptr; /* Pointer into encoded string */ ptr = encoded; if (*url != '/') *ptr++ = '/'; for (; *url && ptr < (encoded + sizeof(encoded) - 4); url ++) { if (strchr("%@&+ <>#=", *url) || *url < ' ' || *url & 128) { /* * Percent-encode this character; safe because we have at least 4 * bytes left in the array... */ snprintf(ptr, sizeof(encoded) - (size_t)(ptr - encoded), "%%%02X", *url & 255); ptr += 3; } else *ptr++ = *url; } *ptr = '\0'; if (*url) { /* * URL was too long, just redirect to the admin page... */ printf("Location: %s/admin\n\n", prefix); } else { /* * URL is OK, redirect there... */ printf("Location: %s%s\n\n", prefix, encoded); } } else printf("Location: %s/admin\n\n", prefix); } else { /* * Form data but no operation code - display an error... */ cgiStartHTML(cgiText(_("Administration"))); cgiCopyTemplateLang("error-op.tmpl"); cgiEndHTML(); } /* * Close the HTTP server connection... */ httpClose(http); /* * Return with no errors... */ return (0); } /* * 'choose_device_cb()' - Add a device to the device selection page. */ static void choose_device_cb( const char *device_class, /* I - Class */ const char *device_id, /* I - 1284 device ID */ const char *device_info, /* I - Description */ const char *device_make_and_model, /* I - Make and model */ const char *device_uri, /* I - Device URI */ const char *device_location, /* I - Location */ const char *title) /* I - Page title */ { /* * For modern browsers, start a multi-part page so we can show that something * is happening. Non-modern browsers just get everything at the end... */ if (current_device == 0 && cgiSupportsMultipart()) { cgiStartMultipart(); cgiStartHTML(title); cgiCopyTemplateLang("choose-device.tmpl"); cgiEndHTML(); fflush(stdout); } /* * Add the device to the array... */ cgiSetArray("device_class", current_device, device_class); cgiSetArray("device_id", current_device, device_id); cgiSetArray("device_info", current_device, device_info); cgiSetArray("device_make_and_model", current_device, device_make_and_model); cgiSetArray("device_uri", current_device, device_uri); cgiSetArray("device_location", current_device, device_location); current_device ++; } /* * 'do_am_class()' - Add or modify a class. */ static void do_am_class(http_t *http, /* I - HTTP connection */ int modify) /* I - Modify the printer? */ { int i, j; /* Looping vars */ int element; /* Element number */ int num_printers; /* Number of printers */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* member-uris attribute */ char uri[HTTP_MAX_URI]; /* Device or printer URI */ const char *name, /* Pointer to class name */ *op, /* Operation name */ *ptr; /* Pointer to CGI variable */ const char *title; /* Title of page */ static const char * const pattrs[] = /* Requested printer attributes */ { "member-names", "printer-info", "printer-location" }; title = cgiText(modify ? _("Modify Class") : _("Add Class")); op = cgiGetVariable("OP"); name = cgiGetVariable("PRINTER_NAME"); if (cgiGetVariable("PRINTER_LOCATION") == NULL) { /* * Build a CUPS_GET_PRINTERS request, which requires the * following attributes: * * attributes-charset * attributes-natural-language */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type", CUPS_PRINTER_LOCAL); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type-mask", CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE); /* * Do the request and get back a response... */ cgiClearVariables(); if (op) cgiSetVariable("OP", op); if (name) cgiSetVariable("PRINTER_NAME", name); if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Create MEMBER_URIS and MEMBER_NAMES arrays... */ for (element = 0, attr = response->attrs; attr != NULL; attr = attr->next) if (attr->name && !strcmp(attr->name, "printer-uri-supported")) { if ((ptr = strrchr(attr->values[0].string.text, '/')) != NULL && (!name || _cups_strcasecmp(name, ptr + 1))) { /* * Don't show the current class... */ cgiSetArray("MEMBER_URIS", element, attr->values[0].string.text); element ++; } } for (element = 0, attr = response->attrs; attr != NULL; attr = attr->next) if (attr->name && !strcmp(attr->name, "printer-name")) { if (!name || _cups_strcasecmp(name, attr->values[0].string.text)) { /* * Don't show the current class... */ cgiSetArray("MEMBER_NAMES", element, attr->values[0].string.text); element ++; } } num_printers = cgiGetSize("MEMBER_URIS"); ippDelete(response); } else num_printers = 0; if (modify) { /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the * following attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { if ((attr = ippFindAttribute(response, "member-names", IPP_TAG_NAME)) != NULL) { /* * Mark any current members in the class... */ for (j = 0; j < num_printers; j ++) cgiSetArray("MEMBER_SELECTED", j, ""); for (i = 0; i < attr->num_values; i ++) { for (j = 0; j < num_printers; j ++) { if (!_cups_strcasecmp(attr->values[i].string.text, cgiGetArray("MEMBER_NAMES", j))) { cgiSetArray("MEMBER_SELECTED", j, "SELECTED"); break; } } } } if ((attr = ippFindAttribute(response, "printer-info", IPP_TAG_TEXT)) != NULL) cgiSetVariable("PRINTER_INFO", attr->values[0].string.text); if ((attr = ippFindAttribute(response, "printer-location", IPP_TAG_TEXT)) != NULL) cgiSetVariable("PRINTER_LOCATION", attr->values[0].string.text); ippDelete(response); } /* * Update the location and description of an existing printer... */ cgiStartHTML(title); cgiCopyTemplateLang("modify-class.tmpl"); } else { /* * Get the name, location, and description for a new printer... */ cgiStartHTML(title); cgiCopyTemplateLang("add-class.tmpl"); } cgiEndHTML(); return; } if (!name) { cgiStartHTML(title); cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } for (ptr = name; *ptr; ptr ++) if ((*ptr >= 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '#') break; if (*ptr || ptr == name || strlen(name) > 127) { cgiSetVariable("ERROR", cgiText(_("The class name may only contain up to " "127 printable characters and may not " "contain spaces, slashes (/), or the " "pound sign (#)."))); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } /* * Build a CUPS_ADD_CLASS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * printer-location * printer-info * printer-is-accepting-jobs * printer-state * member-uris */ request = ippNewRequest(CUPS_ADD_CLASS); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", name); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location", NULL, cgiGetVariable("PRINTER_LOCATION")); ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, cgiGetVariable("PRINTER_INFO")); ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1); ippAddInteger(request, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", IPP_PRINTER_IDLE); if ((num_printers = cgiGetSize("MEMBER_URIS")) > 0) { attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", num_printers, NULL, NULL); for (i = 0; i < num_printers; i ++) ippSetString(request, &attr, i, cgiGetArray("MEMBER_URIS", i)); } /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(modify ? _("Unable to modify class") : _("Unable to add class")); } else { /* * Redirect successful updates back to the class page... */ char refresh[1024]; /* Refresh URL */ cgiFormEncode(uri, name, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=/admin/?OP=redirect&URL=/classes/%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); if (modify) cgiCopyTemplateLang("class-modified.tmpl"); else cgiCopyTemplateLang("class-added.tmpl"); } cgiEndHTML(); } /* * 'do_am_printer()' - Add or modify a printer. */ static void do_am_printer(http_t *http, /* I - HTTP connection */ int modify) /* I - Modify the printer? */ { int i; /* Looping var */ ipp_attribute_t *attr; /* Current attribute */ ipp_t *request, /* IPP request */ *response, /* IPP response */ *oldinfo; /* Old printer information */ const cgi_file_t *file; /* Uploaded file, if any */ const char *var; /* CGI variable */ char *ppd_name = NULL; /* Pointer to PPD name */ char uri[HTTP_MAX_URI], /* Device or printer URI */ *uriptr, /* Pointer into URI */ evefile[1024] = ""; /* IPP Everywhere PPD file */ int maxrate; /* Maximum baud rate */ char baudrate[255]; /* Baud rate string */ const char *name, /* Pointer to class name */ *ptr; /* Pointer to CGI variable */ const char *title; /* Title of page */ static int baudrates[] = /* Baud rates */ { 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800 }; ptr = cgiGetVariable("DEVICE_URI"); fprintf(stderr, "DEBUG: do_am_printer: DEVICE_URI=\"%s\"\n", ptr ? ptr : "(null)"); title = cgiText(modify ? _("Modify Printer") : _("Add Printer")); if (modify) { /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the * following attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", cgiGetVariable("PRINTER_NAME")); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ oldinfo = cupsDoRequest(http, request, "/"); } else oldinfo = NULL; file = cgiGetFile(); if (file) { fprintf(stderr, "DEBUG: file->tempfile=%s\n", file->tempfile); fprintf(stderr, "DEBUG: file->name=%s\n", file->name); fprintf(stderr, "DEBUG: file->filename=%s\n", file->filename); fprintf(stderr, "DEBUG: file->mimetype=%s\n", file->mimetype); } if ((name = cgiGetVariable("PRINTER_NAME")) != NULL) { for (ptr = name; *ptr; ptr ++) if ((*ptr >= 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '\\' || *ptr == '?' || *ptr == '\'' || *ptr == '\"' || *ptr == '#') break; if (*ptr || ptr == name || strlen(name) > 127) { cgiSetVariable("ERROR", cgiText(_("The printer name may only contain up to 127 printable characters and may not contain spaces, slashes (/ \\), quotes (' \"), question mark (?), or the pound sign (#)."))); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } } if ((var = cgiGetVariable("DEVICE_URI")) != NULL) { if ((uriptr = strrchr(var, '|')) != NULL) { /* * Extract make and make/model from device URI string... */ char make[1024], /* Make string */ *makeptr; /* Pointer into make */ *uriptr++ = '\0'; strlcpy(make, uriptr, sizeof(make)); if ((makeptr = strchr(make, ' ')) != NULL) *makeptr = '\0'; else if ((makeptr = strchr(make, '-')) != NULL) *makeptr = '\0'; else if (!_cups_strncasecmp(make, "laserjet", 8) || !_cups_strncasecmp(make, "deskjet", 7) || !_cups_strncasecmp(make, "designjet", 9)) strlcpy(make, "HP", sizeof(make)); else if (!_cups_strncasecmp(make, "phaser", 6)) strlcpy(make, "Xerox", sizeof(make)); else if (!_cups_strncasecmp(make, "stylus", 6)) strlcpy(make, "Epson", sizeof(make)); else strlcpy(make, "Generic", sizeof(make)); if (!cgiGetVariable("CURRENT_MAKE")) cgiSetVariable("CURRENT_MAKE", make); if (!cgiGetVariable("CURRENT_MAKE_AND_MODEL")) cgiSetVariable("CURRENT_MAKE_AND_MODEL", uriptr); if (!modify) { char template[128], /* Template name */ *tptr; /* Pointer into template name */ cgiSetVariable("PRINTER_INFO", uriptr); for (tptr = template; tptr < (template + sizeof(template) - 1) && *uriptr; uriptr ++) if (isalnum(*uriptr & 255) || *uriptr == '_' || *uriptr == '-' || *uriptr == '.') *tptr++ = *uriptr; else if ((*uriptr == ' ' || *uriptr == '/') && tptr > template && tptr[-1] != '_') *tptr++ = '_'; else if (*uriptr == '?' || *uriptr == '(') break; *tptr = '\0'; cgiSetVariable("TEMPLATE_NAME", template); } /* * Set DEVICE_URI to the actual device uri, without make and model from * html form. */ cgiSetVariable("DEVICE_URI", var); } } if (!var) { /* * Look for devices so the user can pick something... */ if ((attr = ippFindAttribute(oldinfo, "device-uri", IPP_TAG_URI)) != NULL) { strlcpy(uri, attr->values[0].string.text, sizeof(uri)); if ((uriptr = strchr(uri, ':')) != NULL && strncmp(uriptr, "://", 3) == 0) *uriptr = '\0'; cgiSetVariable("CURRENT_DEVICE_URI", attr->values[0].string.text); cgiSetVariable("CURRENT_DEVICE_SCHEME", uri); } /* * Scan for devices for up to 30 seconds... */ fputs("DEBUG: Getting list of devices...\n", stderr); current_device = 0; if (cupsGetDevices(http, 5, CUPS_INCLUDE_ALL, CUPS_EXCLUDE_NONE, (cups_device_cb_t)choose_device_cb, (void *)title) == IPP_OK) { fputs("DEBUG: Got device list!\n", stderr); if (cgiSupportsMultipart()) cgiStartMultipart(); cgiSetVariable("CUPS_GET_DEVICES_DONE", "1"); cgiStartHTML(title); cgiCopyTemplateLang("choose-device.tmpl"); cgiEndHTML(); if (cgiSupportsMultipart()) cgiEndMultipart(); } else { fprintf(stderr, "ERROR: CUPS-Get-Devices request failed with status %x: %s\n", cupsLastError(), cupsLastErrorString()); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else { cgiStartHTML(title); cgiShowIPPError(modify ? _("Unable to modify printer") : _("Unable to add printer")); cgiEndHTML(); return; } } } else if (!strchr(var, '/') || (!strncmp(var, "lpd://", 6) && !strchr(var + 6, '/'))) { if ((attr = ippFindAttribute(oldinfo, "device-uri", IPP_TAG_URI)) != NULL) { /* * Set the current device URI for the form to the old one... */ if (strncmp(attr->values[0].string.text, var, strlen(var)) == 0) cgiSetVariable("CURRENT_DEVICE_URI", attr->values[0].string.text); } /* * User needs to set the full URI... */ cgiStartHTML(title); cgiCopyTemplateLang("choose-uri.tmpl"); cgiEndHTML(); } else if (!strncmp(var, "serial:", 7) && !cgiGetVariable("BAUDRATE")) { /* * Need baud rate, parity, etc. */ if ((var = strchr(var, '?')) != NULL && strncmp(var, "?baud=", 6) == 0) maxrate = atoi(var + 6); else maxrate = 19200; for (i = 0; i < (int)(sizeof(baudrates)/sizeof(baudrates[0])); i ++) if (baudrates[i] > maxrate) break; else { snprintf(baudrate, sizeof(baudrate), "%d", baudrates[i]); cgiSetArray("BAUDRATES", i, baudrate); } cgiStartHTML(title); cgiCopyTemplateLang("choose-serial.tmpl"); cgiEndHTML(); } else if (!name || !cgiGetVariable("PRINTER_LOCATION")) { cgiStartHTML(title); if (modify) { /* * Update the location and description of an existing printer... */ if (oldinfo) { if ((attr = ippFindAttribute(oldinfo, "printer-info", IPP_TAG_TEXT)) != NULL) cgiSetVariable("PRINTER_INFO", attr->values[0].string.text); if ((attr = ippFindAttribute(oldinfo, "printer-location", IPP_TAG_TEXT)) != NULL) cgiSetVariable("PRINTER_LOCATION", attr->values[0].string.text); if ((attr = ippFindAttribute(oldinfo, "printer-is-shared", IPP_TAG_BOOLEAN)) != NULL) cgiSetVariable("PRINTER_IS_SHARED", attr->values[0].boolean ? "1" : "0"); } cgiCopyTemplateLang("modify-printer.tmpl"); } else { /* * Get the name, location, and description for a new printer... */ #ifdef __APPLE__ if (!strncmp(var, "usb:", 4)) cgiSetVariable("printer_is_shared", "1"); else #endif /* __APPLE__ */ cgiSetVariable("printer_is_shared", "0"); cgiCopyTemplateLang("add-printer.tmpl"); } cgiEndHTML(); if (oldinfo) ippDelete(oldinfo); return; } else if (!file && (!cgiGetVariable("PPD_NAME") || cgiGetVariable("SELECT_MAKE"))) { int ipp_everywhere = !strncmp(var, "ipp://", 6) || !strncmp(var, "ipps://", 7) || (!strncmp(var, "dnssd://", 8) && (strstr(var, "_ipp._tcp") || strstr(var, "_ipps._tcp"))); if (modify && !cgiGetVariable("SELECT_MAKE")) { /* * Get the PPD file... */ int fd; /* PPD file */ char filename[1024]; /* PPD filename */ ppd_file_t *ppd; /* PPD information */ char buffer[1024]; /* Buffer */ ssize_t bytes; /* Number of bytes */ http_status_t get_status; /* Status of GET */ /* TODO: Use cupsGetFile() API... */ snprintf(uri, sizeof(uri), "/printers/%s.ppd", name); if (httpGet(http, uri)) httpGet(http, uri); while ((get_status = httpUpdate(http)) == HTTP_CONTINUE); if (get_status != HTTP_OK) { httpFlush(http); fprintf(stderr, "ERROR: Unable to get PPD file %s: %d - %s\n", uri, get_status, httpStatus(get_status)); } else if ((fd = cupsTempFd(filename, sizeof(filename))) >= 0) { while ((bytes = httpRead2(http, buffer, sizeof(buffer))) > 0) write(fd, buffer, (size_t)bytes); close(fd); if ((ppd = ppdOpenFile(filename)) != NULL) { if (ppd->manufacturer) cgiSetVariable("CURRENT_MAKE", ppd->manufacturer); if (ppd->nickname) cgiSetVariable("CURRENT_MAKE_AND_MODEL", ppd->nickname); ppdClose(ppd); unlink(filename); } else { int linenum; /* Line number */ fprintf(stderr, "ERROR: Unable to open PPD file %s: %s\n", filename, ppdErrorString(ppdLastError(&linenum))); } } else { httpFlush(http); fprintf(stderr, "ERROR: Unable to create temporary file for PPD file: %s\n", strerror(errno)); } } /* * Build a CUPS_GET_PPDS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(CUPS_GET_PPDS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/"); if ((var = cgiGetVariable("PPD_MAKE")) == NULL) var = cgiGetVariable("CURRENT_MAKE"); if (var && !cgiGetVariable("SELECT_MAKE")) { const char *make_model; /* Make and model */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "ppd-make", NULL, var); if ((make_model = cgiGetVariable("CURRENT_MAKE_AND_MODEL")) != NULL) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_TEXT, "ppd-make-and-model", NULL, make_model); } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "ppd-make"); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Got the list of PPDs, see if the user has selected a make... */ if (cgiSetIPPVars(response, NULL, NULL, NULL, 0) == 0 && !modify) { /* * No PPD files with this make, try again with all makes... */ ippDelete(response); request = ippNewRequest(CUPS_GET_PPDS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/printers/"); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "ppd-make"); if ((response = cupsDoRequest(http, request, "/")) != NULL) cgiSetIPPVars(response, NULL, NULL, NULL, 0); cgiStartHTML(title); cgiCopyTemplateLang("choose-make.tmpl"); cgiEndHTML(); } else if (!var || cgiGetVariable("SELECT_MAKE")) { cgiStartHTML(title); cgiCopyTemplateLang("choose-make.tmpl"); cgiEndHTML(); } else { /* * Let the user choose a model... */ cgiStartHTML(title); if (!cgiGetVariable("PPD_MAKE")) cgiSetVariable("PPD_MAKE", cgiGetVariable("CURRENT_MAKE")); if (ipp_everywhere) cgiSetVariable("SHOW_IPP_EVERYWHERE", "1"); cgiCopyTemplateLang("choose-model.tmpl"); cgiEndHTML(); } ippDelete(response); } else { cgiStartHTML(title); cgiShowIPPError(_("Unable to get list of printer drivers")); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); } } else { /* * Build a CUPS_ADD_PRINTER request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * printer-location * printer-info * ppd-name * device-uri * printer-is-accepting-jobs * printer-is-shared * printer-state */ request = ippNewRequest(CUPS_ADD_PRINTER); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", cgiGetVariable("PRINTER_NAME")); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); if (!file) { ppd_name = cgiGetVariable("PPD_NAME"); if (strcmp(ppd_name, "__no_change__")) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "ppd-name", NULL, ppd_name); } ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-location", NULL, cgiGetVariable("PRINTER_LOCATION")); ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT, "printer-info", NULL, cgiGetVariable("PRINTER_INFO")); strlcpy(uri, cgiGetVariable("DEVICE_URI"), sizeof(uri)); /* * Strip make and model from URI... */ if ((uriptr = strrchr(uri, '|')) != NULL) *uriptr = '\0'; if (!strncmp(uri, "serial:", 7)) { /* * Update serial port URI to include baud rate, etc. */ if ((uriptr = strchr(uri, '?')) == NULL) uriptr = uri + strlen(uri); snprintf(uriptr, sizeof(uri) - (size_t)(uriptr - uri), "?baud=%s+bits=%s+parity=%s+flow=%s", cgiGetVariable("BAUDRATE"), cgiGetVariable("BITS"), cgiGetVariable("PARITY"), cgiGetVariable("FLOW")); } ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_URI, "device-uri", NULL, uri); ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1); var = cgiGetVariable("printer_is_shared"); ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-shared", var && (!strcmp(var, "1") || !strcmp(var, "on"))); ippAddInteger(request, IPP_TAG_PRINTER, IPP_TAG_ENUM, "printer-state", IPP_PRINTER_IDLE); /* * Do the request and get back a response... */ if (file) ippDelete(cupsDoFileRequest(http, request, "/admin/", file->tempfile)); else if (evefile[0]) { ippDelete(cupsDoFileRequest(http, request, "/admin/", evefile)); unlink(evefile); } else ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(modify ? _("Unable to modify printer") : _("Unable to add printer")); } else if (modify) { /* * Redirect successful updates back to the printer page... */ char refresh[1024]; /* Refresh URL */ cgiFormEncode(uri, name, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;/admin/?OP=redirect&URL=/printers/%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); cgiCopyTemplateLang("printer-modified.tmpl"); } else if (ppd_name && (strcmp(ppd_name, "everywhere") == 0 || strstr(ppd_name, "driverless"))) { /* * Set the printer options... */ cgiSetVariable("OP", "set-printer-options"); do_set_options(http, 0); return; } else { /* * If we don't have an everywhere model, show printer-added * template with warning about drivers going away... */ cgiStartHTML(title); cgiCopyTemplateLang("printer-added.tmpl"); } cgiEndHTML(); } if (oldinfo) ippDelete(oldinfo); } /* * 'do_config_server()' - Configure server settings. */ static void do_config_server(http_t *http) /* I - HTTP connection */ { if (cgiGetVariable("CHANGESETTINGS")) { /* * Save basic setting changes... */ int num_settings; /* Number of server settings */ cups_option_t *settings; /* Server settings */ int advanced, /* Advanced settings shown? */ changed; /* Have settings changed? */ const char *debug_logging, /* DEBUG_LOGGING value */ *preserve_jobs = NULL, /* PRESERVE_JOBS value */ *remote_admin, /* REMOTE_ADMIN value */ *remote_any, /* REMOTE_ANY value */ *share_printers,/* SHARE_PRINTERS value */ *user_cancel_any, /* USER_CANCEL_ANY value */ *browse_web_if = NULL, /* BrowseWebIF value */ *preserve_job_history = NULL, /* PreserveJobHistory value */ *preserve_job_files = NULL, /* PreserveJobFiles value */ *max_clients = NULL, /* MaxClients value */ *max_jobs = NULL, /* MaxJobs value */ *max_log_size = NULL; /* MaxLogSize value */ const char *current_browse_web_if, /* BrowseWebIF value */ *current_preserve_job_history, /* PreserveJobHistory value */ *current_preserve_job_files, /* PreserveJobFiles value */ *current_max_clients, /* MaxClients value */ *current_max_jobs, /* MaxJobs value */ *current_max_log_size; /* MaxLogSize value */ #ifdef HAVE_GSSAPI char default_auth_type[255]; /* DefaultAuthType value */ const char *val; /* Setting value */ #endif /* HAVE_GSSAPI */ /* * Get the checkbox values from the form... */ debug_logging = cgiGetVariable("DEBUG_LOGGING") ? "1" : "0"; remote_admin = cgiGetVariable("REMOTE_ADMIN") ? "1" : "0"; remote_any = cgiGetVariable("REMOTE_ANY") ? "1" : "0"; share_printers = cgiGetVariable("SHARE_PRINTERS") ? "1" : "0"; user_cancel_any = cgiGetVariable("USER_CANCEL_ANY") ? "1" : "0"; advanced = cgiGetVariable("ADVANCEDSETTINGS") != NULL; if (advanced) { /* * Get advanced settings... */ browse_web_if = cgiGetVariable("BROWSE_WEB_IF") ? "Yes" : "No"; max_clients = cgiGetVariable("MAX_CLIENTS"); max_log_size = cgiGetVariable("MAX_LOG_SIZE"); preserve_jobs = cgiGetVariable("PRESERVE_JOBS"); if (preserve_jobs) { max_jobs = cgiGetVariable("MAX_JOBS"); preserve_job_history = cgiGetVariable("PRESERVE_JOB_HISTORY"); preserve_job_files = cgiGetVariable("PRESERVE_JOB_FILES"); if (!max_jobs || atoi(max_jobs) < 0) max_jobs = "500"; if (!preserve_job_history) preserve_job_history = "On"; if (!preserve_job_files) preserve_job_files = "1d"; } else { max_jobs = "0"; preserve_job_history = "No"; preserve_job_files = "No"; } if (!max_clients || atoi(max_clients) <= 0) max_clients = "100"; if (!max_log_size || atoi(max_log_size) <= 0.0) max_log_size = "1m"; } /* * Get the current server settings... */ if (!cupsAdminGetServerSettings(http, &num_settings, &settings)) { cgiStartHTML(cgiText(_("Change Settings"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to change server settings"))); cgiSetVariable("ERROR", cupsLastErrorString()); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } #ifdef HAVE_GSSAPI /* * Get authentication settings... */ if (cgiGetVariable("KERBEROS")) strlcpy(default_auth_type, "Negotiate", sizeof(default_auth_type)); else { val = cupsGetOption("DefaultAuthType", num_settings, settings); if (!val || !_cups_strcasecmp(val, "Negotiate")) strlcpy(default_auth_type, "Basic", sizeof(default_auth_type)); else strlcpy(default_auth_type, val, sizeof(default_auth_type)); } fprintf(stderr, "DEBUG: DefaultAuthType %s\n", default_auth_type); #endif /* HAVE_GSSAPI */ if ((current_browse_web_if = cupsGetOption("BrowseWebIF", num_settings, settings)) == NULL) current_browse_web_if = "No"; if ((current_preserve_job_history = cupsGetOption("PreserveJobHistory", num_settings, settings)) == NULL) current_preserve_job_history = "Yes"; if ((current_preserve_job_files = cupsGetOption("PreserveJobFiles", num_settings, settings)) == NULL) current_preserve_job_files = "1d"; if ((current_max_clients = cupsGetOption("MaxClients", num_settings, settings)) == NULL) current_max_clients = "100"; if ((current_max_jobs = cupsGetOption("MaxJobs", num_settings, settings)) == NULL) current_max_jobs = "500"; if ((current_max_log_size = cupsGetOption("MaxLogSize", num_settings, settings)) == NULL) current_max_log_size = "1m"; /* * See if the settings have changed... */ changed = strcmp(debug_logging, cupsGetOption(CUPS_SERVER_DEBUG_LOGGING, num_settings, settings)) || strcmp(remote_admin, cupsGetOption(CUPS_SERVER_REMOTE_ADMIN, num_settings, settings)) || strcmp(remote_any, cupsGetOption(CUPS_SERVER_REMOTE_ANY, num_settings, settings)) || strcmp(share_printers, cupsGetOption(CUPS_SERVER_SHARE_PRINTERS, num_settings, settings)) || #ifdef HAVE_GSSAPI !cupsGetOption("DefaultAuthType", num_settings, settings) || strcmp(default_auth_type, cupsGetOption("DefaultAuthType", num_settings, settings)) || #endif /* HAVE_GSSAPI */ strcmp(user_cancel_any, cupsGetOption(CUPS_SERVER_USER_CANCEL_ANY, num_settings, settings)); if (advanced && !changed) changed = _cups_strcasecmp(browse_web_if, current_browse_web_if) || _cups_strcasecmp(preserve_job_history, current_preserve_job_history) || _cups_strcasecmp(preserve_job_files, current_preserve_job_files) || _cups_strcasecmp(max_clients, current_max_clients) || _cups_strcasecmp(max_jobs, current_max_jobs) || _cups_strcasecmp(max_log_size, current_max_log_size); if (changed) { /* * Settings *have* changed, so save the changes... */ int num_newsettings;/* New number of server settings */ cups_option_t *newsettings; /* New server settings */ num_newsettings = 0; num_newsettings = cupsAddOption(CUPS_SERVER_DEBUG_LOGGING, debug_logging, num_newsettings, &newsettings); num_newsettings = cupsAddOption(CUPS_SERVER_REMOTE_ADMIN, remote_admin, num_newsettings, &newsettings); num_newsettings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, remote_any, num_newsettings, &newsettings); num_newsettings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, share_printers, num_newsettings, &newsettings); num_newsettings = cupsAddOption(CUPS_SERVER_USER_CANCEL_ANY, user_cancel_any, num_newsettings, &newsettings); #ifdef HAVE_GSSAPI num_newsettings = cupsAddOption("DefaultAuthType", default_auth_type, num_newsettings, &newsettings); #endif /* HAVE_GSSAPI */ if (advanced) { /* * Add advanced newsettings... */ if (_cups_strcasecmp(browse_web_if, current_browse_web_if)) num_newsettings = cupsAddOption("BrowseWebIF", browse_web_if, num_newsettings, &newsettings); if (_cups_strcasecmp(preserve_job_history, current_preserve_job_history)) num_newsettings = cupsAddOption("PreserveJobHistory", preserve_job_history, num_newsettings, &newsettings); if (_cups_strcasecmp(preserve_job_files, current_preserve_job_files)) num_newsettings = cupsAddOption("PreserveJobFiles", preserve_job_files, num_newsettings, &newsettings); if (_cups_strcasecmp(max_clients, current_max_clients)) num_newsettings = cupsAddOption("MaxClients", max_clients, num_newsettings, &newsettings); if (_cups_strcasecmp(max_jobs, current_max_jobs)) num_newsettings = cupsAddOption("MaxJobs", max_jobs, num_newsettings, &newsettings); if (_cups_strcasecmp(max_log_size, current_max_log_size)) num_newsettings = cupsAddOption("MaxLogSize", max_log_size, num_newsettings, &newsettings); } if (!cupsAdminSetServerSettings(http, num_newsettings, newsettings)) { if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } cgiStartHTML(cgiText(_("Change Settings"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to change server settings"))); cgiSetVariable("ERROR", cupsLastErrorString()); cgiCopyTemplateLang("error.tmpl"); } else { if (advanced) cgiSetVariable("refresh_page", "5;URL=/admin/?OP=redirect&" "URL=/admin/?ADVANCEDSETTINGS=YES"); else cgiSetVariable("refresh_page", "5;URL=/admin/?OP=redirect"); cgiStartHTML(cgiText(_("Change Settings"))); cgiCopyTemplateLang("restart.tmpl"); } cupsFreeOptions(num_newsettings, newsettings); } else { /* * No changes... */ cgiSetVariable("refresh_page", "5;URL=/admin/?OP=redirect"); cgiStartHTML(cgiText(_("Change Settings"))); cgiCopyTemplateLang("norestart.tmpl"); } cupsFreeOptions(num_settings, settings); cgiEndHTML(); } else if (cgiGetVariable("SAVECHANGES") && cgiGetVariable("CUPSDCONF")) { /* * Save hand-edited config file... */ http_status_t status; /* PUT status */ char tempfile[1024]; /* Temporary new cupsd.conf */ int tempfd; /* Temporary file descriptor */ cups_file_t *temp; /* Temporary file */ const char *start, /* Start of line */ *end; /* End of line */ /* * Create a temporary file for the new cupsd.conf file... */ if ((tempfd = cupsTempFd(tempfile, sizeof(tempfile))) < 0) { cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to create temporary file"))); cgiSetVariable("ERROR", strerror(errno)); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); perror(tempfile); return; } if ((temp = cupsFileOpenFd(tempfd, "w")) == NULL) { cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to create temporary file"))); cgiSetVariable("ERROR", strerror(errno)); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); perror(tempfile); close(tempfd); unlink(tempfile); return; } /* * Copy the cupsd.conf text from the form variable... */ start = cgiGetVariable("CUPSDCONF"); while (start) { if ((end = strstr(start, "\r\n")) == NULL) if ((end = strstr(start, "\n")) == NULL) end = start + strlen(start); cupsFileWrite(temp, start, (size_t)(end - start)); cupsFilePutChar(temp, '\n'); if (*end == '\r') start = end + 2; else if (*end == '\n') start = end + 1; else start = NULL; } cupsFileClose(temp); /* * Upload the configuration file to the server... */ status = cupsPutFile(http, "/admin/conf/cupsd.conf", tempfile); if (status == HTTP_UNAUTHORIZED) { puts("Status: 401\n"); unlink(tempfile); exit(0); } else if (status != HTTP_CREATED) { cgiSetVariable("MESSAGE", cgiText(_("Unable to upload cupsd.conf file"))); cgiSetVariable("ERROR", httpStatus(status)); cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiCopyTemplateLang("error.tmpl"); } else { cgiSetVariable("refresh_page", "5;URL=/admin/"); cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiCopyTemplateLang("restart.tmpl"); } cgiEndHTML(); unlink(tempfile); } else { struct stat info; /* cupsd.conf information */ cups_file_t *cupsd; /* cupsd.conf file */ char *buffer, /* Buffer for entire file */ *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ int ch; /* Character from file */ char filename[1024]; /* Filename */ const char *server_root; /* Location of config files */ /* * Locate the cupsd.conf file... */ if ((server_root = getenv("CUPS_SERVERROOT")) == NULL) server_root = CUPS_SERVERROOT; snprintf(filename, sizeof(filename), "%s/cupsd.conf", server_root); /* * Figure out the size... */ if (stat(filename, &info)) { cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to access cupsd.conf file"))); cgiSetVariable("ERROR", strerror(errno)); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); perror(filename); return; } if (info.st_size > (1024 * 1024)) { cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to access cupsd.conf file"))); cgiSetVariable("ERROR", cgiText(_("Unable to edit cupsd.conf files larger than " "1MB"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); fprintf(stderr, "ERROR: \"%s\" too large (%ld) to edit!\n", filename, (long)info.st_size); return; } /* * Open the cupsd.conf file... */ if ((cupsd = cupsFileOpen(filename, "r")) == NULL) { /* * Unable to open - log an error... */ cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiSetVariable("MESSAGE", cgiText(_("Unable to access cupsd.conf file"))); cgiSetVariable("ERROR", strerror(errno)); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); perror(filename); return; } /* * Allocate memory and load the file into a string buffer... */ if ((buffer = calloc(1, (size_t)info.st_size + 1)) != NULL) { cupsFileRead(cupsd, buffer, (size_t)info.st_size); cgiSetVariable("CUPSDCONF", buffer); free(buffer); } cupsFileClose(cupsd); /* * Then get the default cupsd.conf file and put that into a string as * well... */ strlcat(filename, ".default", sizeof(filename)); if (!stat(filename, &info) && info.st_size < (1024 * 1024) && (cupsd = cupsFileOpen(filename, "r")) != NULL) { if ((buffer = calloc(1, 2 * (size_t)info.st_size + 1)) != NULL) { bufend = buffer + 2 * info.st_size - 1; for (bufptr = buffer; bufptr < bufend && (ch = cupsFileGetChar(cupsd)) != EOF;) { if (ch == '\\' || ch == '\"') { *bufptr++ = '\\'; *bufptr++ = (char)ch; } else if (ch == '\n') { *bufptr++ = '\\'; *bufptr++ = 'n'; } else if (ch == '\t') { *bufptr++ = '\\'; *bufptr++ = 't'; } else if (ch >= ' ') *bufptr++ = (char)ch; } *bufptr = '\0'; cgiSetVariable("CUPSDCONF_DEFAULT", buffer); free(buffer); } cupsFileClose(cupsd); } /* * Show the current config file... */ cgiStartHTML(cgiText(_("Edit Configuration File"))); cgiCopyTemplateLang("edit-config.tmpl"); cgiEndHTML(); } } /* * 'do_delete_class()' - Delete a class. */ static void do_delete_class(http_t *http) /* I - HTTP connection */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Job URI */ const char *pclass; /* Printer class name */ /* * Get form variables... */ if (cgiGetVariable("CONFIRM") == NULL) { cgiStartHTML(cgiText(_("Delete Class"))); cgiCopyTemplateLang("class-confirm.tmpl"); cgiEndHTML(); return; } if ((pclass = cgiGetVariable("PRINTER_NAME")) != NULL) httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/classes/%s", pclass); else { cgiStartHTML(cgiText(_("Delete Class"))); cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } /* * Build a CUPS_DELETE_CLASS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(CUPS_DELETE_CLASS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); /* * Show the results... */ if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() <= IPP_OK_CONFLICT) { /* * Redirect successful updates back to the classes page... */ cgiSetVariable("refresh_page", "5;URL=/admin/?OP=redirect&URL=/classes"); } cgiStartHTML(cgiText(_("Delete Class"))); if (cupsLastError() > IPP_OK_CONFLICT) cgiShowIPPError(_("Unable to delete class")); else cgiCopyTemplateLang("class-deleted.tmpl"); cgiEndHTML(); } /* * 'do_delete_printer()' - Delete a printer. */ static void do_delete_printer(http_t *http) /* I - HTTP connection */ { ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Job URI */ const char *printer; /* Printer printer name */ /* * Get form variables... */ if (cgiGetVariable("CONFIRM") == NULL) { cgiStartHTML(cgiText(_("Delete Printer"))); cgiCopyTemplateLang("printer-confirm.tmpl"); cgiEndHTML(); return; } if ((printer = cgiGetVariable("PRINTER_NAME")) != NULL) httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); else { cgiStartHTML(cgiText(_("Delete Printer"))); cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } /* * Build a CUPS_DELETE_PRINTER request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(CUPS_DELETE_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); /* * Show the results... */ if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() <= IPP_OK_CONFLICT) { /* * Redirect successful updates back to the printers page... */ cgiSetVariable("refresh_page", "5;URL=/admin/?OP=redirect&URL=/printers"); } cgiStartHTML(cgiText(_("Delete Printer"))); if (cupsLastError() > IPP_OK_CONFLICT) cgiShowIPPError(_("Unable to delete printer")); else cgiCopyTemplateLang("printer-deleted.tmpl"); cgiEndHTML(); } /* * 'do_list_printers()' - List available printers. */ static void do_list_printers(http_t *http) /* I - HTTP connection */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ cgiStartHTML(cgiText(_("List Available Printers"))); fflush(stdout); /* * Get the list of printers and their devices... */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", NULL, "device-uri"); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type", CUPS_PRINTER_LOCAL); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_ENUM, "printer-type-mask", CUPS_PRINTER_LOCAL); if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Got the printer list, now load the devices... */ int i; /* Looping var */ cups_array_t *printer_devices; /* Printer devices for local printers */ char *printer_device; /* Current printer device */ /* * Allocate an array and copy the device strings... */ printer_devices = cupsArrayNew((cups_array_func_t)strcmp, NULL); for (attr = ippFindAttribute(response, "device-uri", IPP_TAG_URI); attr; attr = ippFindNextAttribute(response, "device-uri", IPP_TAG_URI)) { cupsArrayAdd(printer_devices, strdup(attr->values[0].string.text)); } /* * Free the printer list and get the device list... */ ippDelete(response); request = ippNewRequest(CUPS_GET_DEVICES); if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Got the device list, let's parse it... */ const char *device_uri, /* device-uri attribute value */ *device_make_and_model, /* device-make-and-model value */ *device_info; /* device-info value */ for (i = 0, attr = response->attrs; attr; attr = attr->next) { /* * Skip leading attributes until we hit a device... */ while (attr && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (!attr) break; /* * Pull the needed attributes from this device... */ device_info = NULL; device_make_and_model = NULL; device_uri = NULL; while (attr && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "device-info") && attr->value_tag == IPP_TAG_TEXT) device_info = attr->values[0].string.text; if (!strcmp(attr->name, "device-make-and-model") && attr->value_tag == IPP_TAG_TEXT) device_make_and_model = attr->values[0].string.text; if (!strcmp(attr->name, "device-uri") && attr->value_tag == IPP_TAG_URI) device_uri = attr->values[0].string.text; attr = attr->next; } /* * See if we have everything needed... */ if (device_info && device_make_and_model && device_uri && _cups_strcasecmp(device_make_and_model, "unknown") && strchr(device_uri, ':')) { /* * Yes, now see if there is already a printer for this * device... */ if (!cupsArrayFind(printer_devices, (void *)device_uri)) { /* * Not found, so it must be a new printer... */ char option[1024], /* Form variables for this device */ *option_ptr; /* Pointer into string */ const char *ptr; /* Pointer into device string */ /* * Format the printer name variable for this device... * * We use the device-info string first, then device-uri, * and finally device-make-and-model to come up with a * suitable name. */ if (_cups_strncasecmp(device_info, "unknown", 7)) ptr = device_info; else if ((ptr = strstr(device_uri, "://")) != NULL) ptr += 3; else ptr = device_make_and_model; for (option_ptr = option; option_ptr < (option + sizeof(option) - 1) && *ptr; ptr ++) if (isalnum(*ptr & 255) || *ptr == '_' || *ptr == '-' || *ptr == '.') *option_ptr++ = *ptr; else if ((*ptr == ' ' || *ptr == '/') && option_ptr > option && option_ptr[-1] != '_') *option_ptr++ = '_'; else if (*ptr == '?' || *ptr == '(') break; *option_ptr = '\0'; cgiSetArray("TEMPLATE_NAME", i, option); /* * Finally, set the form variables for this printer... */ cgiSetArray("device_info", i, device_info); cgiSetArray("device_make_and_model", i, device_make_and_model); cgiSetArray("device_uri", i, device_uri); i ++; } } if (!attr) break; } ippDelete(response); /* * Free the device list... */ for (printer_device = (char *)cupsArrayFirst(printer_devices); printer_device; printer_device = (char *)cupsArrayNext(printer_devices)) free(printer_device); cupsArrayDelete(printer_devices); } } /* * Finally, show the printer list... */ cgiCopyTemplateLang("list-available-printers.tmpl"); cgiEndHTML(); } /* * 'do_menu()' - Show the main menu. */ static void do_menu(http_t *http) /* I - HTTP connection */ { int num_settings; /* Number of server settings */ cups_option_t *settings; /* Server settings */ const char *val; /* Setting value */ /* * Get the current server settings... */ if (!cupsAdminGetServerSettings(http, &num_settings, &settings)) { cgiSetVariable("SETTINGS_MESSAGE", cgiText(_("Unable to open cupsd.conf file:"))); cgiSetVariable("SETTINGS_ERROR", cupsLastErrorString()); } if ((val = cupsGetOption(CUPS_SERVER_DEBUG_LOGGING, num_settings, settings)) != NULL && atoi(val)) cgiSetVariable("DEBUG_LOGGING", "CHECKED"); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ADMIN, num_settings, settings)) != NULL && atoi(val)) cgiSetVariable("REMOTE_ADMIN", "CHECKED"); if ((val = cupsGetOption(CUPS_SERVER_REMOTE_ANY, num_settings, settings)) != NULL && atoi(val)) cgiSetVariable("REMOTE_ANY", "CHECKED"); if ((val = cupsGetOption(CUPS_SERVER_SHARE_PRINTERS, num_settings, settings)) != NULL && atoi(val)) cgiSetVariable("SHARE_PRINTERS", "CHECKED"); if ((val = cupsGetOption(CUPS_SERVER_USER_CANCEL_ANY, num_settings, settings)) != NULL && atoi(val)) cgiSetVariable("USER_CANCEL_ANY", "CHECKED"); #ifdef HAVE_GSSAPI cgiSetVariable("HAVE_GSSAPI", "1"); if ((val = cupsGetOption("DefaultAuthType", num_settings, settings)) != NULL && !_cups_strcasecmp(val, "Negotiate")) cgiSetVariable("KERBEROS", "CHECKED"); else #endif /* HAVE_GSSAPI */ cgiSetVariable("KERBEROS", ""); if ((val = cupsGetOption("BrowseWebIF", num_settings, settings)) == NULL) val = "No"; if (!_cups_strcasecmp(val, "yes") || !_cups_strcasecmp(val, "on") || !_cups_strcasecmp(val, "true")) cgiSetVariable("BROWSE_WEB_IF", "CHECKED"); if ((val = cupsGetOption("PreserveJobHistory", num_settings, settings)) == NULL) val = "Yes"; if (val && (!_cups_strcasecmp(val, "0") || !_cups_strcasecmp(val, "no") || !_cups_strcasecmp(val, "off") || !_cups_strcasecmp(val, "false") || !_cups_strcasecmp(val, "disabled"))) { cgiSetVariable("PRESERVE_JOB_HISTORY", "0"); cgiSetVariable("PRESERVE_JOB_FILES", "0"); } else { cgiSetVariable("PRESERVE_JOBS", "CHECKED"); cgiSetVariable("PRESERVE_JOB_HISTORY", val); if ((val = cupsGetOption("PreserveJobFiles", num_settings, settings)) == NULL) val = "1d"; cgiSetVariable("PRESERVE_JOB_FILES", val); } if ((val = cupsGetOption("MaxClients", num_settings, settings)) == NULL) val = "100"; cgiSetVariable("MAX_CLIENTS", val); if ((val = cupsGetOption("MaxJobs", num_settings, settings)) == NULL) val = "500"; cgiSetVariable("MAX_JOBS", val); if ((val = cupsGetOption("MaxLogSize", num_settings, settings)) == NULL) val = "1m"; cgiSetVariable("MAX_LOG_SIZE", val); cupsFreeOptions(num_settings, settings); /* * Finally, show the main menu template... */ cgiStartHTML(cgiText(_("Administration"))); cgiCopyTemplateLang("admin.tmpl"); cgiEndHTML(); } /* * 'do_set_allowed_users()' - Set the allowed/denied users for a queue. */ static void do_set_allowed_users(http_t *http) /* I - HTTP connection */ { int i; /* Looping var */ ipp_t *request, /* IPP request */ *response; /* IPP response */ char uri[HTTP_MAX_URI]; /* Printer URI */ const char *printer, /* Printer name */ *is_class, /* Is a class? */ *users, /* List of users or groups */ *type; /* Allow/deny type */ int num_users; /* Number of users */ char *ptr, /* Pointer into users string */ *end, /* Pointer to end of users string */ quote; /* Quote character */ ipp_attribute_t *attr; /* Attribute */ static const char * const attrs[] = /* Requested attributes */ { "requesting-user-name-allowed", "requesting-user-name-denied" }; is_class = cgiGetVariable("IS_CLASS"); printer = cgiGetVariable("PRINTER_NAME"); if (!printer) { cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiStartHTML(cgiText(_("Set Allowed Users"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } users = cgiGetVariable("users"); type = cgiGetVariable("type"); if (!users || !type || (strcmp(type, "requesting-user-name-allowed") && strcmp(type, "requesting-user-name-denied"))) { /* * Build a Get-Printer-Attributes request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requested-attributes */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, is_class ? "/classes/%s" : "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(attrs) / sizeof(attrs[0])), NULL, attrs); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { cgiSetIPPVars(response, NULL, NULL, NULL, 0); ippDelete(response); } cgiStartHTML(cgiText(_("Set Allowed Users"))); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) cgiShowIPPError(_("Unable to get printer attributes")); else cgiCopyTemplateLang("users.tmpl"); cgiEndHTML(); } else { /* * Save the changes... */ for (num_users = 0, ptr = (char *)users; *ptr; num_users ++) { /* * Skip whitespace and commas... */ while (*ptr == ',' || isspace(*ptr & 255)) ptr ++; if (!*ptr) break; if (*ptr == '\'' || *ptr == '\"') { /* * Scan quoted name... */ quote = *ptr++; for (end = ptr; *end; end ++) if (*end == quote) break; } else { /* * Scan space or comma-delimited name... */ for (end = ptr; *end; end ++) if (isspace(*end & 255) || *end == ',') break; } /* * Advance to the next name... */ ptr = end; } /* * Build a CUPS-Add-Printer/Class request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri * requesting-user-name-{allowed,denied} */ request = ippNewRequest(is_class ? CUPS_ADD_CLASS : CUPS_ADD_PRINTER); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, is_class ? "/classes/%s" : "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); if (num_users == 0) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "requesting-user-name-allowed", NULL, "all"); else { attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_NAME, type, num_users, NULL, NULL); for (i = 0, ptr = (char *)users; *ptr; i ++) { /* * Skip whitespace and commas... */ while (*ptr == ',' || isspace(*ptr & 255)) ptr ++; if (!*ptr) break; if (*ptr == '\'' || *ptr == '\"') { /* * Scan quoted name... */ quote = *ptr++; for (end = ptr; *end; end ++) if (*end == quote) break; } else { /* * Scan space or comma-delimited name... */ for (end = ptr; *end; end ++) if (isspace(*end & 255) || *end == ',') break; } /* * Terminate the name... */ if (*end) *end++ = '\0'; /* * Add the name... */ ippSetString(request, &attr, i, ptr); /* * Advance to the next name... */ ptr = end; } } /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(cgiText(_("Set Allowed Users"))); cgiShowIPPError(_("Unable to change printer")); } else { /* * Redirect successful updates back to the printer page... */ char url[1024], /* Printer/class URL */ refresh[1024]; /* Refresh URL */ cgiRewriteURL(uri, url, sizeof(url), NULL); cgiFormEncode(uri, url, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=/admin/?OP=redirect&URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(cgiText(_("Set Allowed Users"))); cgiCopyTemplateLang(is_class ? "class-modified.tmpl" : "printer-modified.tmpl"); } cgiEndHTML(); } } /* * 'do_set_default()' - Set the server default printer/class. */ static void do_set_default(http_t *http) /* I - HTTP connection */ { const char *title; /* Page title */ ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Printer URI */ const char *printer, /* Printer name */ *is_class; /* Is a class? */ is_class = cgiGetVariable("IS_CLASS"); printer = cgiGetVariable("PRINTER_NAME"); title = cgiText(_("Set As Server Default")); if (!printer) { cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } /* * Build a printer request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(CUPS_SET_DEFAULT); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, is_class ? "/classes/%s" : "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(_("Unable to set server default")); } else { /* * Redirect successful updates back to the printer page... */ char url[1024], /* Printer/class URL */ refresh[1024]; /* Refresh URL */ cgiRewriteURL(uri, url, sizeof(url), NULL); cgiFormEncode(uri, url, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=/admin/?OP=redirect&URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); cgiCopyTemplateLang("printer-default.tmpl"); } cgiEndHTML(); } /* * 'do_set_options()' - Configure the default options for a queue. */ static void do_set_options(http_t *http, /* I - HTTP connection */ int is_class) /* I - Set options for class? */ { int i, j, k, m; /* Looping vars */ int have_options; /* Have options? */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* IPP attribute */ char uri[HTTP_MAX_URI]; /* Job URI */ const char *var; /* Variable value */ const char *printer; /* Printer printer name */ const char *filename; /* PPD filename */ char tempfile[1024]; /* Temporary filename */ cups_file_t *in, /* Input file */ *out; /* Output file */ char line[1024], /* Line from PPD file */ value[1024], /* Option value */ keyword[1024], /* Keyword from Default line */ *keyptr; /* Pointer into keyword... */ ppd_file_t *ppd; /* PPD file */ ppd_group_t *group; /* Option group */ ppd_option_t *option; /* Option */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Custom parameter */ ppd_attr_t *ppdattr; /* PPD attribute */ const char *title; /* Page title */ title = cgiText(is_class ? _("Set Class Options") : _("Set Printer Options")); fprintf(stderr, "DEBUG: do_set_options(http=%p, is_class=%d)\n", http, is_class); /* * Get the printer name... */ if ((printer = cgiGetVariable("PRINTER_NAME")) != NULL) httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, is_class ? "/classes/%s" : "/printers/%s", printer); else { cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } fprintf(stderr, "DEBUG: printer=\"%s\", uri=\"%s\"...\n", printer, uri); /* * If the user clicks on the Auto-Configure button, send an AutoConfigure * command file to the printer... */ if (cgiGetVariable("AUTOCONFIGURE")) { cgiPrintCommand(http, printer, "AutoConfigure", "Set Default Options"); return; } /* * Get the PPD file... */ if (is_class) filename = NULL; else filename = cupsGetPPD2(http, printer); if (filename) { fprintf(stderr, "DEBUG: Got PPD file: \"%s\"\n", filename); if ((ppd = ppdOpenFile(filename)) == NULL) { cgiSetVariable("ERROR", ppdErrorString(ppdLastError(&i))); cgiSetVariable("MESSAGE", cgiText(_("Unable to open PPD file"))); cgiStartHTML(title); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } } else { fputs("DEBUG: No PPD file\n", stderr); ppd = NULL; } if (cgiGetVariable("job_sheets_start") != NULL || cgiGetVariable("job_sheets_end") != NULL) have_options = 1; else have_options = 0; if (ppd) { ppdMarkDefaults(ppd); for (option = ppdFirstOption(ppd); option; option = ppdNextOption(ppd)) { if ((var = cgiGetVariable(option->keyword)) != NULL) { have_options = 1; ppdMarkOption(ppd, option->keyword, var); fprintf(stderr, "DEBUG: Set %s to %s...\n", option->keyword, var); } else fprintf(stderr, "DEBUG: Didn't find %s...\n", option->keyword); } } if (!have_options || ppdConflicts(ppd)) { /* * Show the options to the user... */ fputs("DEBUG: Showing options...\n", stderr); /* * Show auto-configure button if supported... */ if (ppd) { if (ppd->num_filters == 0 || ((ppdattr = ppdFindAttr(ppd, "cupsCommands", NULL)) != NULL && ppdattr->value && strstr(ppdattr->value, "AutoConfigure"))) cgiSetVariable("HAVE_AUTOCONFIGURE", "YES"); else { for (i = 0; i < ppd->num_filters; i ++) if (!strncmp(ppd->filters[i], "application/vnd.cups-postscript", 31)) { cgiSetVariable("HAVE_AUTOCONFIGURE", "YES"); break; } } } /* * Get the printer attributes... */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); response = cupsDoRequest(http, request, "/"); /* * List the groups used as "tabs"... */ i = 0; if (ppd) { for (group = ppd->groups; i < ppd->num_groups; i ++, group ++) { cgiSetArray("GROUP_ID", i, group->name); if (!strcmp(group->name, "InstallableOptions")) cgiSetArray("GROUP", i, cgiText(_("Options Installed"))); else cgiSetArray("GROUP", i, group->text); } } if (ippFindAttribute(response, "job-sheets-supported", IPP_TAG_ZERO)) { cgiSetArray("GROUP_ID", i, "CUPS_BANNERS"); cgiSetArray("GROUP", i ++, cgiText(_("Banners"))); } if (ippFindAttribute(response, "printer-error-policy-supported", IPP_TAG_ZERO) || ippFindAttribute(response, "printer-op-policy-supported", IPP_TAG_ZERO)) { cgiSetArray("GROUP_ID", i, "CUPS_POLICIES"); cgiSetArray("GROUP", i ++, cgiText(_("Policies"))); } if ((attr = ippFindAttribute(response, "port-monitor-supported", IPP_TAG_NAME)) != NULL && attr->num_values > 1) { cgiSetArray("GROUP_ID", i, "CUPS_PORT_MONITOR"); cgiSetArray("GROUP", i, cgiText(_("Port Monitor"))); } cgiStartHTML(cgiText(_("Set Printer Options"))); cgiCopyTemplateLang("set-printer-options-header.tmpl"); if (ppd) { ppdLocalize(ppd); if (ppdConflicts(ppd)) { for (i = ppd->num_groups, k = 0, group = ppd->groups; i > 0; i --, group ++) for (j = group->num_options, option = group->options; j > 0; j --, option ++) if (option->conflicted) { cgiSetArray("ckeyword", k, option->keyword); cgiSetArray("ckeytext", k, option->text); for (m = 0; m < option->num_choices; m ++) { if (option->choices[m].marked) { cgiSetArray("cchoice", k, option->choices[m].text); break; } } k ++; } cgiCopyTemplateLang("option-conflict.tmpl"); } for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) { for (j = group->num_options, option = group->options; j > 0; j --, option ++) { if (!strcmp(option->keyword, "PageRegion")) continue; if (option->num_choices > 1) break; } if (j == 0) continue; cgiSetVariable("GROUP_ID", group->name); if (!strcmp(group->name, "InstallableOptions")) cgiSetVariable("GROUP", cgiText(_("Options Installed"))); else cgiSetVariable("GROUP", group->text); cgiCopyTemplateLang("option-header.tmpl"); for (j = group->num_options, option = group->options; j > 0; j --, option ++) { if (!strcmp(option->keyword, "PageRegion") || option->num_choices < 2) continue; cgiSetVariable("KEYWORD", option->keyword); cgiSetVariable("KEYTEXT", option->text); if (option->conflicted) cgiSetVariable("CONFLICTED", "1"); else cgiSetVariable("CONFLICTED", "0"); cgiSetSize("CHOICES", 0); cgiSetSize("TEXT", 0); for (k = 0, m = 0; k < option->num_choices; k ++) { cgiSetArray("CHOICES", m, option->choices[k].choice); cgiSetArray("TEXT", m, option->choices[k].text); m ++; if (option->choices[k].marked) cgiSetVariable("DEFCHOICE", option->choices[k].choice); } cgiSetSize("PARAMS", 0); cgiSetSize("PARAMTEXT", 0); cgiSetSize("PARAMVALUE", 0); cgiSetSize("INPUTTYPE", 0); if ((coption = ppdFindCustomOption(ppd, option->keyword))) { const char *units = NULL; /* Units value, if any */ cgiSetVariable("ISCUSTOM", "1"); for (cparam = ppdFirstCustomParam(coption), m = 0; cparam; cparam = ppdNextCustomParam(coption), m ++) { if (!_cups_strcasecmp(option->keyword, "PageSize") && _cups_strcasecmp(cparam->name, "Width") && _cups_strcasecmp(cparam->name, "Height")) { m --; continue; } cgiSetArray("PARAMS", m, cparam->name); cgiSetArray("PARAMTEXT", m, cparam->text); cgiSetArray("INPUTTYPE", m, "text"); switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_POINTS : if (!_cups_strncasecmp(option->defchoice, "Custom.", 7)) { units = option->defchoice + strlen(option->defchoice) - 2; if (strcmp(units, "mm") && strcmp(units, "cm") && strcmp(units, "in") && strcmp(units, "ft")) { if (units[1] == 'm') units ++; else units = "pt"; } } else units = "pt"; if (!strcmp(units, "mm")) snprintf(value, sizeof(value), "%g", cparam->current.custom_points / 72.0 * 25.4); else if (!strcmp(units, "cm")) snprintf(value, sizeof(value), "%g", cparam->current.custom_points / 72.0 * 2.54); else if (!strcmp(units, "in")) snprintf(value, sizeof(value), "%g", cparam->current.custom_points / 72.0); else if (!strcmp(units, "ft")) snprintf(value, sizeof(value), "%g", cparam->current.custom_points / 72.0 / 12.0); else if (!strcmp(units, "m")) snprintf(value, sizeof(value), "%g", cparam->current.custom_points / 72.0 * 0.0254); else snprintf(value, sizeof(value), "%g", cparam->current.custom_points); cgiSetArray("PARAMVALUE", m, value); break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : snprintf(value, sizeof(value), "%g", cparam->current.custom_real); cgiSetArray("PARAMVALUE", m, value); break; case PPD_CUSTOM_INT: snprintf(value, sizeof(value), "%d", cparam->current.custom_int); cgiSetArray("PARAMVALUE", m, value); break; case PPD_CUSTOM_PASSCODE: case PPD_CUSTOM_PASSWORD: if (cparam->current.custom_password) cgiSetArray("PARAMVALUE", m, cparam->current.custom_password); else cgiSetArray("PARAMVALUE", m, ""); cgiSetArray("INPUTTYPE", m, "password"); break; case PPD_CUSTOM_STRING: if (cparam->current.custom_string) cgiSetArray("PARAMVALUE", m, cparam->current.custom_string); else cgiSetArray("PARAMVALUE", m, ""); break; } } if (units) { cgiSetArray("PARAMS", m, "Units"); cgiSetArray("PARAMTEXT", m, cgiText(_("Units"))); cgiSetArray("PARAMVALUE", m, units); } } else cgiSetVariable("ISCUSTOM", "0"); switch (option->ui) { case PPD_UI_BOOLEAN : cgiCopyTemplateLang("option-boolean.tmpl"); break; case PPD_UI_PICKONE : cgiCopyTemplateLang("option-pickone.tmpl"); break; case PPD_UI_PICKMANY : cgiCopyTemplateLang("option-pickmany.tmpl"); break; } } cgiCopyTemplateLang("option-trailer.tmpl"); } } if ((attr = ippFindAttribute(response, "job-sheets-supported", IPP_TAG_ZERO)) != NULL) { /* * Add the job sheets options... */ cgiSetVariable("GROUP_ID", "CUPS_BANNERS"); cgiSetVariable("GROUP", cgiText(_("Banners"))); cgiCopyTemplateLang("option-header.tmpl"); cgiSetSize("CHOICES", attr->num_values); cgiSetSize("TEXT", attr->num_values); for (k = 0; k < attr->num_values; k ++) { cgiSetArray("CHOICES", k, attr->values[k].string.text); cgiSetArray("TEXT", k, attr->values[k].string.text); } attr = ippFindAttribute(response, "job-sheets-default", IPP_TAG_ZERO); cgiSetVariable("KEYWORD", "job_sheets_start"); cgiSetVariable("KEYTEXT", /* TRANSLATORS: Banner/cover sheet before the print job. */ cgiText(_("Starting Banner"))); cgiSetVariable("DEFCHOICE", attr != NULL ? attr->values[0].string.text : ""); cgiCopyTemplateLang("option-pickone.tmpl"); cgiSetVariable("KEYWORD", "job_sheets_end"); cgiSetVariable("KEYTEXT", /* TRANSLATORS: Banner/cover sheet after the print job. */ cgiText(_("Ending Banner"))); cgiSetVariable("DEFCHOICE", attr != NULL && attr->num_values > 1 ? attr->values[1].string.text : ""); cgiCopyTemplateLang("option-pickone.tmpl"); cgiCopyTemplateLang("option-trailer.tmpl"); } if (ippFindAttribute(response, "printer-error-policy-supported", IPP_TAG_ZERO) || ippFindAttribute(response, "printer-op-policy-supported", IPP_TAG_ZERO)) { /* * Add the error and operation policy options... */ cgiSetVariable("GROUP_ID", "CUPS_POLICIES"); cgiSetVariable("GROUP", cgiText(_("Policies"))); cgiCopyTemplateLang("option-header.tmpl"); /* * Error policy... */ attr = ippFindAttribute(response, "printer-error-policy-supported", IPP_TAG_ZERO); if (attr) { cgiSetSize("CHOICES", attr->num_values); cgiSetSize("TEXT", attr->num_values); for (k = 0; k < attr->num_values; k ++) { cgiSetArray("CHOICES", k, attr->values[k].string.text); cgiSetArray("TEXT", k, attr->values[k].string.text); } attr = ippFindAttribute(response, "printer-error-policy", IPP_TAG_ZERO); cgiSetVariable("KEYWORD", "printer_error_policy"); cgiSetVariable("KEYTEXT", cgiText(_("Error Policy"))); cgiSetVariable("DEFCHOICE", attr == NULL ? "" : attr->values[0].string.text); } cgiCopyTemplateLang("option-pickone.tmpl"); /* * Operation policy... */ attr = ippFindAttribute(response, "printer-op-policy-supported", IPP_TAG_ZERO); if (attr) { cgiSetSize("CHOICES", attr->num_values); cgiSetSize("TEXT", attr->num_values); for (k = 0; k < attr->num_values; k ++) { cgiSetArray("CHOICES", k, attr->values[k].string.text); cgiSetArray("TEXT", k, attr->values[k].string.text); } attr = ippFindAttribute(response, "printer-op-policy", IPP_TAG_ZERO); cgiSetVariable("KEYWORD", "printer_op_policy"); cgiSetVariable("KEYTEXT", cgiText(_("Operation Policy"))); cgiSetVariable("DEFCHOICE", attr == NULL ? "" : attr->values[0].string.text); cgiCopyTemplateLang("option-pickone.tmpl"); } cgiCopyTemplateLang("option-trailer.tmpl"); } /* * Binary protocol support... */ if ((attr = ippFindAttribute(response, "port-monitor-supported", IPP_TAG_NAME)) != NULL && attr->num_values > 1) { cgiSetVariable("GROUP_ID", "CUPS_PORT_MONITOR"); cgiSetVariable("GROUP", cgiText(_("Port Monitor"))); cgiSetSize("CHOICES", attr->num_values); cgiSetSize("TEXT", attr->num_values); for (i = 0; i < attr->num_values; i ++) { cgiSetArray("CHOICES", i, attr->values[i].string.text); cgiSetArray("TEXT", i, attr->values[i].string.text); } attr = ippFindAttribute(response, "port-monitor", IPP_TAG_NAME); cgiSetVariable("KEYWORD", "port_monitor"); cgiSetVariable("KEYTEXT", cgiText(_("Port Monitor"))); cgiSetVariable("DEFCHOICE", attr ? attr->values[0].string.text : "none"); cgiCopyTemplateLang("option-header.tmpl"); cgiCopyTemplateLang("option-pickone.tmpl"); cgiCopyTemplateLang("option-trailer.tmpl"); } cgiCopyTemplateLang("set-printer-options-trailer.tmpl"); cgiEndHTML(); ippDelete(response); } else { /* * Set default options... */ fputs("DEBUG: Setting options...\n", stderr); if (filename) { out = cupsTempFile2(tempfile, sizeof(tempfile)); in = cupsFileOpen(filename, "r"); if (!in || !out) { cgiSetVariable("ERROR", strerror(errno)); cgiStartHTML(cgiText(_("Set Printer Options"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); if (in) cupsFileClose(in); if (out) { cupsFileClose(out); unlink(tempfile); } unlink(filename); return; } while (cupsFileGets(in, line, sizeof(line))) { if (!strncmp(line, "*cupsProtocol:", 14)) continue; else if (strncmp(line, "*Default", 8)) cupsFilePrintf(out, "%s\n", line); else { /* * Get default option name... */ strlcpy(keyword, line + 8, sizeof(keyword)); for (keyptr = keyword; *keyptr; keyptr ++) if (*keyptr == ':' || isspace(*keyptr & 255)) break; *keyptr = '\0'; if (!strcmp(keyword, "PageRegion") || !strcmp(keyword, "PaperDimension") || !strcmp(keyword, "ImageableArea")) var = get_option_value(ppd, "PageSize", value, sizeof(value)); else var = get_option_value(ppd, keyword, value, sizeof(value)); if (!var) cupsFilePrintf(out, "%s\n", line); else cupsFilePrintf(out, "*Default%s: %s\n", keyword, var); } } cupsFileClose(in); cupsFileClose(out); } else { /* * Make sure temporary filename is cleared when there is no PPD... */ tempfile[0] = '\0'; } /* * Build a CUPS_ADD_MODIFY_CLASS/PRINTER request, which requires the * following attributes: * * attributes-charset * attributes-natural-language * printer-uri * job-sheets-default * printer-error-policy * printer-op-policy * [ppd file] */ request = ippNewRequest(is_class ? CUPS_ADD_MODIFY_CLASS : CUPS_ADD_MODIFY_PRINTER); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); attr = ippAddStrings(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "job-sheets-default", 2, NULL, NULL); ippSetString(request, &attr, 0, cgiGetVariable("job_sheets_start")); ippSetString(request, &attr, 1, cgiGetVariable("job_sheets_end")); if ((var = cgiGetVariable("printer_error_policy")) != NULL) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-error-policy", NULL, var); if ((var = cgiGetVariable("printer_op_policy")) != NULL) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "printer-op-policy", NULL, var); if ((var = cgiGetVariable("port_monitor")) != NULL) ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_NAME, "port-monitor", NULL, var); /* * Do the request and get back a response... */ if (filename) ippDelete(cupsDoFileRequest(http, request, "/admin/", tempfile)); else ippDelete(cupsDoRequest(http, request, "/admin/")); if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(title); cgiShowIPPError(_("Unable to set options")); } else { /* * Redirect successful updates back to the printer page... */ char refresh[1024]; /* Refresh URL */ cgiFormEncode(uri, printer, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=/admin/?OP=redirect&URL=/%s/%s", is_class ? "classes" : "printers", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(title); cgiCopyTemplateLang("printer-configured.tmpl"); } cgiEndHTML(); if (filename) unlink(tempfile); } if (filename) unlink(filename); } /* * 'do_set_sharing()' - Set printer-is-shared value. */ static void do_set_sharing(http_t *http) /* I - HTTP connection */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ char uri[HTTP_MAX_URI]; /* Printer URI */ const char *printer, /* Printer name */ *is_class, /* Is a class? */ *shared; /* Sharing value */ is_class = cgiGetVariable("IS_CLASS"); printer = cgiGetVariable("PRINTER_NAME"); shared = cgiGetVariable("SHARED"); if (!printer || !shared) { cgiSetVariable("ERROR", cgiText(_("Missing form variable"))); cgiStartHTML(cgiText(_("Set Publishing"))); cgiCopyTemplateLang("error.tmpl"); cgiEndHTML(); return; } /* * Build a CUPS-Add-Printer/CUPS-Add-Class request, which requires the * following attributes: * * attributes-charset * attributes-natural-language * printer-uri * printer-is-shared */ request = ippNewRequest(is_class ? CUPS_ADD_CLASS : CUPS_ADD_PRINTER); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, is_class ? "/classes/%s" : "/printers/%s", printer); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddBoolean(request, IPP_TAG_OPERATION, "printer-is-shared", (char)atoi(shared)); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/admin/")) != NULL) { cgiSetIPPVars(response, NULL, NULL, NULL, 0); ippDelete(response); } if (cupsLastError() == IPP_NOT_AUTHORIZED) { puts("Status: 401\n"); exit(0); } else if (cupsLastError() > IPP_OK_CONFLICT) { cgiStartHTML(cgiText(_("Set Publishing"))); cgiShowIPPError(_("Unable to change printer-is-shared attribute")); } else { /* * Redirect successful updates back to the printer page... */ char url[1024], /* Printer/class URL */ refresh[1024]; /* Refresh URL */ cgiRewriteURL(uri, url, sizeof(url), NULL); cgiFormEncode(uri, url, sizeof(uri)); snprintf(refresh, sizeof(refresh), "5;URL=/admin/?OP=redirect&URL=%s", uri); cgiSetVariable("refresh_page", refresh); cgiStartHTML(cgiText(_("Set Publishing"))); cgiCopyTemplateLang(is_class ? "class-modified.tmpl" : "printer-modified.tmpl"); } cgiEndHTML(); } /* * 'get_option_value()' - Return the value of an option. * * This function also handles generation of custom option values. */ static char * /* O - Value string or NULL on error */ get_option_value( ppd_file_t *ppd, /* I - PPD file */ const char *name, /* I - Option name */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Size of buffer */ { char *bufptr, /* Pointer into buffer */ *bufend; /* End of buffer */ ppd_coption_t *coption; /* Custom option */ ppd_cparam_t *cparam; /* Current custom parameter */ char keyword[256]; /* Parameter name */ const char *val, /* Parameter value */ *uval; /* Units value */ long integer; /* Integer value */ double number, /* Number value */ number_points; /* Number in points */ /* * See if we have a custom option choice... */ if ((val = cgiGetVariable(name)) == NULL) { /* * Option not found! */ return (NULL); } else if (_cups_strcasecmp(val, "Custom") || (coption = ppdFindCustomOption(ppd, name)) == NULL) { /* * Not a custom choice... */ strlcpy(buffer, val, bufsize); return (buffer); } /* * OK, we have a custom option choice, format it... */ *buffer = '\0'; if (!strcmp(coption->keyword, "PageSize")) { const char *lval; /* Length string value */ double width, /* Width value */ width_points, /* Width in points */ length, /* Length value */ length_points; /* Length in points */ val = cgiGetVariable("PageSize.Width"); lval = cgiGetVariable("PageSize.Height"); uval = cgiGetVariable("PageSize.Units"); if (!val || !lval || !uval || (width = atof(val)) == 0.0 || (length = atof(lval)) == 0.0 || (strcmp(uval, "pt") && strcmp(uval, "in") && strcmp(uval, "ft") && strcmp(uval, "cm") && strcmp(uval, "mm") && strcmp(uval, "m"))) return (NULL); width_points = get_points(width, uval); length_points = get_points(length, uval); if (width_points < ppd->custom_min[0] || width_points > ppd->custom_max[0] || length_points < ppd->custom_min[1] || length_points > ppd->custom_max[1]) return (NULL); snprintf(buffer, bufsize, "Custom.%gx%g%s", width, length, uval); } else if (cupsArrayCount(coption->params) == 1) { cparam = ppdFirstCustomParam(coption); snprintf(keyword, sizeof(keyword), "%s.%s", coption->keyword, cparam->name); if ((val = cgiGetVariable(keyword)) == NULL) return (NULL); switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : if ((number = atof(val)) == 0.0 || number < cparam->minimum.custom_real || number > cparam->maximum.custom_real) return (NULL); snprintf(buffer, bufsize, "Custom.%g", number); break; case PPD_CUSTOM_INT : if (!*val || (integer = strtol(val, NULL, 10)) == LONG_MIN || integer == LONG_MAX || integer < cparam->minimum.custom_int || integer > cparam->maximum.custom_int) return (NULL); snprintf(buffer, bufsize, "Custom.%ld", integer); break; case PPD_CUSTOM_POINTS : snprintf(keyword, sizeof(keyword), "%s.Units", coption->keyword); if ((number = atof(val)) == 0.0 || (uval = cgiGetVariable(keyword)) == NULL || (strcmp(uval, "pt") && strcmp(uval, "in") && strcmp(uval, "ft") && strcmp(uval, "cm") && strcmp(uval, "mm") && strcmp(uval, "m"))) return (NULL); number_points = get_points(number, uval); if (number_points < cparam->minimum.custom_points || number_points > cparam->maximum.custom_points) return (NULL); snprintf(buffer, bufsize, "Custom.%g%s", number, uval); break; case PPD_CUSTOM_PASSCODE : for (uval = val; *uval; uval ++) if (!isdigit(*uval & 255)) return (NULL); case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : integer = (long)strlen(val); if (integer < cparam->minimum.custom_string || integer > cparam->maximum.custom_string) return (NULL); snprintf(buffer, bufsize, "Custom.%s", val); break; } } else { const char *prefix = "{"; /* Prefix string */ bufptr = buffer; bufend = buffer + bufsize; for (cparam = ppdFirstCustomParam(coption); cparam; cparam = ppdNextCustomParam(coption)) { snprintf(keyword, sizeof(keyword), "%s.%s", coption->keyword, cparam->name); if ((val = cgiGetVariable(keyword)) == NULL) return (NULL); snprintf(bufptr, (size_t)(bufend - bufptr), "%s%s=", prefix, cparam->name); bufptr += strlen(bufptr); prefix = " "; switch (cparam->type) { case PPD_CUSTOM_UNKNOWN : break; case PPD_CUSTOM_CURVE : case PPD_CUSTOM_INVCURVE : case PPD_CUSTOM_REAL : if ((number = atof(val)) == 0.0 || number < cparam->minimum.custom_real || number > cparam->maximum.custom_real) return (NULL); snprintf(bufptr, (size_t)(bufend - bufptr), "%g", number); break; case PPD_CUSTOM_INT : if (!*val || (integer = strtol(val, NULL, 10)) == LONG_MIN || integer == LONG_MAX || integer < cparam->minimum.custom_int || integer > cparam->maximum.custom_int) return (NULL); snprintf(bufptr, (size_t)(bufend - bufptr), "%ld", integer); break; case PPD_CUSTOM_POINTS : snprintf(keyword, sizeof(keyword), "%s.Units", coption->keyword); if ((number = atof(val)) == 0.0 || (uval = cgiGetVariable(keyword)) == NULL || (strcmp(uval, "pt") && strcmp(uval, "in") && strcmp(uval, "ft") && strcmp(uval, "cm") && strcmp(uval, "mm") && strcmp(uval, "m"))) return (NULL); number_points = get_points(number, uval); if (number_points < cparam->minimum.custom_points || number_points > cparam->maximum.custom_points) return (NULL); snprintf(bufptr, (size_t)(bufend - bufptr), "%g%s", number, uval); break; case PPD_CUSTOM_PASSCODE : for (uval = val; *uval; uval ++) if (!isdigit(*uval & 255)) return (NULL); case PPD_CUSTOM_PASSWORD : case PPD_CUSTOM_STRING : integer = (long)strlen(val); if (integer < cparam->minimum.custom_string || integer > cparam->maximum.custom_string) return (NULL); if ((bufptr + 2) > bufend) return (NULL); bufend --; *bufptr++ = '\"'; while (*val && bufptr < bufend) { if (*val == '\\' || *val == '\"') { if ((bufptr + 1) >= bufend) return (NULL); *bufptr++ = '\\'; } *bufptr++ = *val++; } if (bufptr >= bufend) return (NULL); *bufptr++ = '\"'; *bufptr = '\0'; bufend ++; break; } bufptr += strlen(bufptr); } if (bufptr == buffer || (bufend - bufptr) < 2) return (NULL); bufptr[0] = '}'; bufptr[1] = '\0'; } return (buffer); } /* * 'get_points()' - Get a value in points. */ static double /* O - Number in points */ get_points(double number, /* I - Original number */ const char *uval) /* I - Units */ { if (!strcmp(uval, "mm")) /* Millimeters */ return (number * 72.0 / 25.4); else if (!strcmp(uval, "cm")) /* Centimeters */ return (number * 72.0 / 2.54); else if (!strcmp(uval, "in")) /* Inches */ return (number * 72.0); else if (!strcmp(uval, "ft")) /* Feet */ return (number * 72.0 * 12.0); else if (!strcmp(uval, "m")) /* Meters */ return (number * 72.0 / 0.0254); else /* Points */ return (number); } ����������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/cgi-bin/Makefile�������������������������������������������������������������������������0000644�0001750�0001750�00000007333�14502571342�015337� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # CGI makefile for CUPS. # # Copyright © 2022-2023 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs LIBOBJS = \ help-index.o \ html.o \ ipp-var.o \ search.o \ template.o \ var.o OBJS = \ $(LIBOBJS) \ admin.o \ classes.o \ help.o \ jobs.o \ printers.o \ testcgi.o \ testhi.o \ testtemplate.o CGIS = \ admin.cgi \ classes.cgi \ help.cgi \ jobs.cgi \ printers.cgi LIBTARGETS = \ libcupscgi.a UNITTARGETS = \ testcgi \ testhi \ testtemplate TARGETS = \ $(LIBTARGETS) \ $(CGIS) # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: $(UNITTARGETS) # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS) # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: $(INSTALL_DIR) -m 755 $(SERVERBIN)/cgi-bin for file in $(CGIS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/cgi-bin; \ done if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(CGIS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: for file in $(CGIS); do \ $(RM) $(SERVERBIN)/cgi-bin/$$file; \ done -$(RMDIR) $(SERVERBIN)/cgi-bin # # libcupscgi.a # libcupscgi.a: $(LIBOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ # # admin.cgi # admin.cgi: admin.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ admin.o libcupscgi.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # classes.cgi # classes.cgi: classes.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ classes.o libcupscgi.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # help.cgi # help.cgi: help.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ help.o libcupscgi.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # jobs.cgi # jobs.cgi: jobs.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ jobs.o libcupscgi.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # printers.cgi # printers.cgi: printers.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ printers.o libcupscgi.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testcgi # testcgi: testcgi.o ../Makedefs libcupscgi.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testcgi.o libcupscgi.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Testing CGI API... ./testcgi # # testhi # testhi: testhi.o ../Makedefs libcupscgi.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ testhi.o libcupscgi.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ echo Testing help index API... ./testhi # # testtemplate # testtemplate: testtemplate.o ../Makedefs libcupscgi.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o $@ testtemplate.o libcupscgi.a $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/cgi-bin/Dependencies���������������������������������������������������������������������0000644�0001750�0001750�00000011007�14502571342�016201� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������help-index.o: help-index.c cgi-private.h cgi.h ../cups/cups.h \ ../cups/file.h ../cups/versioning.h ../cups/ipp.h ../cups/http.h \ ../cups/array.h ../cups/language.h ../cups/pwg.h help-index.h \ ../cups/debug-private.h ../cups/language-private.h ../config.h \ ../cups/transcode.h ../cups/string-private.h ../cups/ipp-private.h \ ../cups/dir.h html.o: html.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h ipp-var.o: ipp-var.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h search.o: search.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h template.o: template.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h var.o: var.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h admin.o: admin.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h ../cups/http-private.h \ ../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h \ ../cups/pwg-private.h ../cups/adminutil.h classes.o: classes.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h help.o: help.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h jobs.o: jobs.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h makedocset.o: makedocset.c cgi-private.h cgi.h ../cups/cups.h \ ../cups/file.h ../cups/versioning.h ../cups/ipp.h ../cups/http.h \ ../cups/array.h ../cups/language.h ../cups/pwg.h help-index.h \ ../cups/debug-private.h ../cups/language-private.h ../config.h \ ../cups/transcode.h ../cups/string-private.h ../cups/ipp-private.h printers.o: printers.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \ ../cups/language-private.h ../config.h ../cups/transcode.h \ ../cups/string-private.h ../cups/ipp-private.h testcgi.o: testcgi.c cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h testhi.o: testhi.c cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h testtemplate.o: testtemplate.c cgi.h ../cups/cups.h ../cups/file.h \ ../cups/versioning.h ../cups/ipp.h ../cups/http.h ../cups/array.h \ ../cups/language.h ../cups/pwg.h help-index.h �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/��������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�14502571342�014163� 5����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/lprm.c��������������������������������������������������������������������������0000644�0001750�0001750�00000012224�14502571342�015302� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * "lprm" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include <cups/cups-private.h> /* * Local functions... */ static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and cancel jobs. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int job_id; /* Job ID */ const char *name; /* Destination printer */ char *instance, /* Pointer to instance name */ *opt; /* Option pointer */ cups_dest_t *dest, /* Destination */ *defdest; /* Default destination */ int did_cancel; /* Did we cancel something? */ _cupsSetLocale(argv); /* * Setup to cancel individual print jobs... */ did_cancel = 0; defdest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); name = defdest ? defdest->name : NULL; /* * Process command-line arguments... */ for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-' && argv[i][1] != '\0') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'P' : /* Cancel jobs on a printer */ if (opt[1] != '\0') { name = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected destination after \"-P\" option."), argv[0]); usage(); } name = argv[i]; } if ((instance = strchr(name, '/')) != NULL) *instance = '\0'; if ((dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, name, NULL)) == NULL) { _cupsLangPrintf(stderr, _("%s: Error - unknown destination \"%s\"."), argv[0], name); goto error; } cupsFreeDests(1, dest); break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'h' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), argv[0]); usage(); } else cupsSetServer(argv[i]); } if (defdest) cupsFreeDests(1, defdest); defdest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); name = defdest ? defdest->name : NULL; break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], *opt); usage(); } } } else { /* * Cancel a job or printer... */ if ((dest = cupsGetNamedDest(CUPS_HTTP_DEFAULT, argv[i], NULL)) != NULL) cupsFreeDests(1, dest); if (dest) { name = argv[i]; job_id = 0; } else if (isdigit(argv[i][0] & 255)) { name = NULL; job_id = atoi(argv[i]); } else if (!strcmp(argv[i], "-")) { /* * Cancel all jobs */ job_id = -1; } else { _cupsLangPrintf(stderr, _("%s: Error - unknown destination \"%s\"."), argv[0], argv[i]); goto error; } if (cupsCancelJob2(CUPS_HTTP_DEFAULT, name, job_id, 0) != IPP_OK) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); goto error; } did_cancel = 1; } } /* * If nothing has been canceled yet, cancel the current job on the specified * (or default) printer... */ if (!did_cancel && cupsCancelJob2(CUPS_HTTP_DEFAULT, name, 0, 0) != IPP_OK) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); goto error; } if (defdest) cupsFreeDests(1, defdest); return (0); /* * If we get here there was an error, so clean up... */ error: if (defdest) cupsFreeDests(1, defdest); return (1); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lprm [options] [id]\n" " lprm [options] -")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("- Cancel all jobs")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-P destination Specify the destination")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); exit(1); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/lpr.c���������������������������������������������������������������������������0000644�0001750�0001750�00000030457�14502571342�015135� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * "lpr" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include <cups/cups-private.h> /* * Local functions... */ static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and send files for printing. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i, j; /* Looping var */ int job_id; /* Job ID */ char ch; /* Option character */ char *printer, /* Destination printer or class */ *instance, /* Instance */ *opt; /* Option pointer */ const char *title; /* Job title */ int num_copies; /* Number of copies per file */ int num_files; /* Number of files to print */ const char *files[1000]; /* Files to print */ cups_dest_t *dest; /* Selected destination */ int num_options; /* Number of options */ cups_option_t *options; /* Options */ int deletefile; /* Delete file after print? */ char buffer[8192]; /* Copy buffer */ _cupsSetLocale(argv); deletefile = 0; printer = NULL; dest = NULL; num_options = 0; options = NULL; num_files = 0; title = NULL; for (i = 1; i < argc; i ++) { if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (ch = *opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); usage(); } cupsSetUser(argv[i]); } break; case 'H' : /* Connect to host */ if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-H\" option."), argv[0]); usage(); } else cupsSetServer(argv[i]); } break; case '1' : /* TROFF font set 1 */ case '2' : /* TROFF font set 2 */ case '3' : /* TROFF font set 3 */ case '4' : /* TROFF font set 4 */ case 'i' : /* indent */ case 'w' : /* width */ if (opt[1] != '\0') { opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected value after \"-%c\" " "option."), argv[0], ch); usage(); } } case 'c' : /* CIFPLOT */ case 'd' : /* DVI */ case 'f' : /* FORTRAN */ case 'g' : /* plot */ case 'n' : /* Ditroff */ case 't' : /* Troff */ case 'v' : /* Raster image */ _cupsLangPrintf(stderr, _("%s: Warning - \"%c\" format modifier not supported - output may not be correct."), argv[0], ch); break; case 'o' : /* Option */ if (opt[1] != '\0') { num_options = cupsParseOptions(opt + 1, num_options, &options); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected option=value after \"-o\" option."), argv[0]); usage(); } num_options = cupsParseOptions(argv[i], num_options, &options); } break; case 'l' : /* Literal/raw */ num_options = cupsAddOption("raw", "true", num_options, &options); break; case 'p' : /* Prettyprint */ num_options = cupsAddOption("prettyprint", "true", num_options, &options); break; case 'h' : /* Suppress burst page */ num_options = cupsAddOption("job-sheets", "none", num_options, &options); break; case 's' : /* Don't use symlinks */ break; case 'm' : /* Mail on completion */ { char email[1024]; /* EMail address */ snprintf(email, sizeof(email), "mailto:%s@%s", cupsUser(), httpGetHostname(NULL, buffer, sizeof(buffer))); num_options = cupsAddOption("notify-recipient-uri", email, num_options, &options); } break; case 'q' : /* Queue file but don't print */ num_options = cupsAddOption("job-hold-until", "indefinite", num_options, &options); break; case 'r' : /* Remove file after printing */ deletefile = 1; break; case 'P' : /* Destination printer or class */ if (opt[1] != '\0') { printer = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected destination after \"-P\" option."), argv[0]); usage(); } printer = argv[i]; } if ((instance = strrchr(printer, '/')) != NULL) *instance++ = '\0'; if ((dest = cupsGetNamedDest(NULL, printer, instance)) != NULL) { for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } else if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } else if (cupsLastError() == IPP_STATUS_ERROR_NOT_FOUND) { _cupsLangPrintf(stderr, _("%s: Error - The printer or class does not exist."), argv[0]); return (1); } break; case '#' : /* Number of copies */ if (opt[1] != '\0') { num_copies = atoi(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected copies after \"-#\" option."), argv[0]); usage(); } num_copies = atoi(argv[i]); } if (num_copies < 1) { _cupsLangPrintf(stderr, _("%s: Error - copies must be 1 or more."), argv[0]); return (1); } num_options = cupsAddIntegerOption("copies", num_copies, num_options, &options); break; case 'C' : /* Class */ case 'J' : /* Job name */ case 'T' : /* Title */ if (opt[1] != '\0') { title = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected name after \"-%c\" option."), argv[0], ch); usage(); } title = argv[i]; } break; default : _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), argv[0], *opt); return (1); } } } else if (num_files < 1000) { /* * Print a file... */ if (access(argv[i], R_OK) != 0) { _cupsLangPrintf(stderr, _("%s: Error - unable to access \"%s\" - %s"), argv[0], argv[i], strerror(errno)); return (1); } files[num_files] = argv[i]; num_files ++; if (title == NULL) { if ((title = strrchr(argv[i], '/')) != NULL) title ++; else title = argv[i]; } } else { _cupsLangPrintf(stderr, _("%s: Error - too many files - \"%s\"."), argv[0], argv[i]); } } /* * See if we have any files to print; if not, print from stdin... */ if (printer == NULL) { if ((dest = cupsGetNamedDest(NULL, NULL, NULL)) != NULL) { printer = dest->name; for (j = 0; j < dest->num_options; j ++) if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) num_options = cupsAddOption(dest->options[j].name, dest->options[j].value, num_options, &options); } else if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server " "name."), argv[0]); return (1); } } if (printer == NULL) { if (!cupsGetNamedDest(NULL, NULL, NULL) && cupsLastError() == IPP_STATUS_ERROR_NOT_FOUND) _cupsLangPrintf(stderr, _("%s: Error - %s"), argv[0], cupsLastErrorString()); else _cupsLangPrintf(stderr, _("%s: Error - scheduler not responding."), argv[0]); return (1); } if (num_files > 0) { job_id = cupsPrintFiles(printer, num_files, files, title, num_options, options); if (deletefile && job_id > 0) { /* * Delete print files after printing... */ for (i = 0; i < num_files; i ++) unlink(files[i]); } } else if ((job_id = cupsCreateJob(CUPS_HTTP_DEFAULT, printer, title ? title : "(stdin)", num_options, options)) > 0) { http_status_t status; /* Write status */ const char *format; /* Document format */ ssize_t bytes; /* Bytes read */ if (cupsGetOption("raw", num_options, options)) format = CUPS_FORMAT_RAW; else if ((format = cupsGetOption("document-format", num_options, options)) == NULL) format = CUPS_FORMAT_AUTO; status = cupsStartDocument(CUPS_HTTP_DEFAULT, printer, job_id, NULL, format, 1); while (status == HTTP_CONTINUE && (bytes = read(0, buffer, sizeof(buffer))) > 0) status = cupsWriteRequestData(CUPS_HTTP_DEFAULT, buffer, (size_t)bytes); if (status != HTTP_CONTINUE) { _cupsLangPrintf(stderr, _("%s: Error - unable to queue from stdin - %s."), argv[0], httpStatus(status)); cupsFinishDocument(CUPS_HTTP_DEFAULT, printer); cupsCancelJob2(CUPS_HTTP_DEFAULT, printer, job_id, 0); return (1); } if (cupsFinishDocument(CUPS_HTTP_DEFAULT, printer) != IPP_OK) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); cupsCancelJob2(CUPS_HTTP_DEFAULT, printer, job_id, 0); return (1); } } if (job_id < 1) { _cupsLangPrintf(stderr, "%s: %s", argv[0], cupsLastErrorString()); return (1); } return (0); } /* * 'usage()' - Show program usage and exit. */ static void usage(void) { _cupsLangPuts(stdout, _("Usage: lpr [options] [file(s)]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-# num-copies Specify the number of copies to print")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-H server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-m Send an email notification when the job completes")); _cupsLangPuts(stdout, _("-o option[=value] Specify a printer-specific option")); _cupsLangPuts(stdout, _("-o job-sheets=standard Print a banner page with the job")); _cupsLangPuts(stdout, _("-o media=size Specify the media size to use")); _cupsLangPuts(stdout, _("-o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)")); _cupsLangPuts(stdout, _("-o orientation-requested=N\n" " Specify portrait (3) or landscape (4) orientation")); _cupsLangPuts(stdout, _("-o print-quality=N Specify the print quality - draft (3), normal (4), or best (5)")); _cupsLangPuts(stdout, _("-o sides=one-sided Specify 1-sided printing")); _cupsLangPuts(stdout, _("-o sides=two-sided-long-edge\n" " Specify 2-sided portrait printing")); _cupsLangPuts(stdout, _("-o sides=two-sided-short-edge\n" " Specify 2-sided landscape printing")); _cupsLangPuts(stdout, _("-P destination Specify the destination")); _cupsLangPuts(stdout, _("-q Specify the job should be held for printing")); _cupsLangPuts(stdout, _("-r Remove the file(s) after submission")); _cupsLangPuts(stdout, _("-T title Specify the job title")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); exit(1); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/lpq.c���������������������������������������������������������������������������0000644�0001750�0001750�00000036033�14502571342�015130� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * "lpq" command for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include <cups/cups-private.h> /* * Local functions... */ static http_t *connect_server(const char *, http_t *); static int show_jobs(const char *, http_t *, const char *, const char *, const int, const int); static void show_printer(const char *, http_t *, const char *); static void usage(void) _CUPS_NORETURN; /* * 'main()' - Parse options and commands. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ http_t *http; /* Connection to server */ const char *opt, /* Option pointer */ *dest, /* Desired printer */ *user, /* Desired user */ *val; /* Environment variable name */ char *instance; /* Printer instance */ int id, /* Desired job ID */ all, /* All printers */ interval, /* Reporting interval */ longstatus; /* Show file details */ cups_dest_t *named_dest; /* Named destination */ _cupsSetLocale(argv); /* * Check for command-line options... */ http = NULL; dest = NULL; user = NULL; id = 0; interval = 0; longstatus = 0; all = 0; for (i = 1; i < argc; i ++) { if (argv[i][0] == '+') { interval = atoi(argv[i] + 1); } else if (!strcmp(argv[i], "--help")) usage(); else if (argv[i][0] == '-') { for (opt = argv[i] + 1; *opt; opt ++) { switch (*opt) { case 'E' : /* Encrypt */ #ifdef HAVE_TLS cupsSetEncryption(HTTP_ENCRYPT_REQUIRED); if (http) httpEncryption(http, HTTP_ENCRYPT_REQUIRED); #else _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), argv[0]); #endif /* HAVE_TLS */ break; case 'U' : /* Username */ if (opt[1] != '\0') { cupsSetUser(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), argv[0]); return (1); } cupsSetUser(argv[i]); } break; case 'P' : /* Printer */ if (opt[1] != '\0') { dest = opt + 1; opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { httpClose(http); usage(); } dest = argv[i]; } if ((instance = strchr(dest, '/')) != NULL) *instance++ = '\0'; http = connect_server(argv[0], http); if ((named_dest = cupsGetNamedDest(http, dest, instance)) == NULL) { if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); else if (instance) _cupsLangPrintf(stderr, _("%s: Error - unknown destination \"%s/%s\"."), argv[0], dest, instance); else _cupsLangPrintf(stderr, _("%s: Unknown destination \"%s\"."), argv[0], dest); return (1); } cupsFreeDests(1, named_dest); break; case 'a' : /* All printers */ all = 1; break; case 'h' : /* Connect to host */ if (http) { httpClose(http); http = NULL; } if (opt[1] != '\0') { cupsSetServer(opt + 1); opt += strlen(opt) - 1; } else { i ++; if (i >= argc) { _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), argv[0]); return (1); } else cupsSetServer(argv[i]); } break; case 'l' : /* Long status */ longstatus = 1; break; default : httpClose(http); usage(); } } } else if (isdigit(argv[i][0] & 255)) { id = atoi(argv[i]); } else { user = argv[i]; } } http = connect_server(argv[0], http); if (dest == NULL && !all) { if ((named_dest = cupsGetNamedDest(http, NULL, NULL)) == NULL) { if (cupsLastError() == IPP_STATUS_ERROR_BAD_REQUEST || cupsLastError() == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) { _cupsLangPrintf(stderr, _("%s: Error - add '/version=1.1' to server name."), argv[0]); return (1); } val = NULL; if ((dest = getenv("LPDEST")) == NULL) { if ((dest = getenv("PRINTER")) != NULL) { if (!strcmp(dest, "lp")) dest = NULL; else val = "PRINTER"; } } else val = "LPDEST"; if (dest && val) _cupsLangPrintf(stderr, _("%s: Error - %s environment variable names " "non-existent destination \"%s\"."), argv[0], val, dest); else _cupsLangPrintf(stderr, _("%s: Error - no default destination available."), argv[0]); httpClose(http); return (1); } dest = named_dest->name; } /* * Show the status in a loop... */ for (;;) { if (dest) show_printer(argv[0], http, dest); i = show_jobs(argv[0], http, dest, user, id, longstatus); if (i && interval) { fflush(stdout); sleep((unsigned)interval); } else break; } /* * Close the connection to the server and return... */ httpClose(http); return (0); } /* * 'connect_server()' - Connect to the server as necessary... */ static http_t * /* O - New HTTP connection */ connect_server(const char *command, /* I - Command name */ http_t *http) /* I - Current HTTP connection */ { if (!http) { http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); if (http == NULL) { _cupsLangPrintf(stderr, _("%s: Unable to connect to server."), command); exit(1); } } return (http); } /* * 'show_jobs()' - Show jobs. */ static int /* O - Number of jobs in queue */ show_jobs(const char *command, /* I - Command name */ http_t *http, /* I - HTTP connection to server */ const char *dest, /* I - Destination */ const char *user, /* I - User */ const int id, /* I - Job ID */ const int longstatus) /* I - 1 if long report desired */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ const char *jobdest, /* Pointer into job-printer-uri */ *jobuser, /* Pointer to job-originating-user-name */ *jobname; /* Pointer to job-name */ ipp_jstate_t jobstate; /* job-state */ int jobid, /* job-id */ jobsize, /* job-k-octets */ jobcount, /* Number of jobs */ jobcopies, /* Number of copies */ rank; /* Rank of job */ char resource[1024]; /* Resource string */ char rankstr[255]; /* Rank string */ char namestr[1024]; /* Job name string */ static const char * const jobattrs[] =/* Job attributes we want to see */ { "copies", "job-id", "job-k-octets", "job-name", "job-originating-user-name", "job-printer-uri", "job-priority", "job-state" }; static const char * const ranks[10] = /* Ranking strings */ { "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th" }; if (http == NULL) return (0); /* * Build an IPP_GET_JOBS or IPP_GET_JOB_ATTRIBUTES request, which requires * the following attributes: * * attributes-charset * attributes-natural-language * job-uri or printer-uri * requested-attributes * requesting-user-name */ request = ippNewRequest(id ? IPP_GET_JOB_ATTRIBUTES : IPP_GET_JOBS); if (id) { snprintf(resource, sizeof(resource), "ipp://localhost/jobs/%d", id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, resource); } else if (dest) { httpAssembleURIf(HTTP_URI_CODING_ALL, resource, sizeof(resource), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, resource); } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, "ipp://localhost/"); if (user) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1); } else ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, cupsUser()); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(jobattrs) / sizeof(jobattrs[0])), NULL, jobattrs); /* * Do the request and get back a response... */ jobcount = 0; if ((response = cupsDoRequest(http, request, "/")) != NULL) { if (response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); ippDelete(response); return (0); } rank = 1; /* * Loop through the job list and display them... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_JOB) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ jobid = 0; jobsize = 0; jobstate = IPP_JOB_PENDING; jobname = "unknown"; jobuser = "unknown"; jobdest = NULL; jobcopies = 1; while (attr != NULL && attr->group_tag == IPP_TAG_JOB) { if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) jobid = attr->values[0].integer; if (!strcmp(attr->name, "job-k-octets") && attr->value_tag == IPP_TAG_INTEGER) jobsize = attr->values[0].integer; if (!strcmp(attr->name, "job-state") && attr->value_tag == IPP_TAG_ENUM) jobstate = (ipp_jstate_t)attr->values[0].integer; if (!strcmp(attr->name, "job-printer-uri") && attr->value_tag == IPP_TAG_URI) if ((jobdest = strrchr(attr->values[0].string.text, '/')) != NULL) jobdest ++; if (!strcmp(attr->name, "job-originating-user-name") && attr->value_tag == IPP_TAG_NAME) jobuser = attr->values[0].string.text; if (!strcmp(attr->name, "job-name") && attr->value_tag == IPP_TAG_NAME) jobname = attr->values[0].string.text; if (!strcmp(attr->name, "copies") && attr->value_tag == IPP_TAG_INTEGER) jobcopies = attr->values[0].integer; attr = attr->next; } /* * See if we have everything needed... */ if (jobdest == NULL || jobid == 0) { if (attr == NULL) break; else continue; } if (!longstatus && jobcount == 0) _cupsLangPuts(stdout, _("Rank Owner Job File(s)" " Total Size")); jobcount ++; /* * Display the job... */ if (jobstate == IPP_JOB_PROCESSING) strlcpy(rankstr, "active", sizeof(rankstr)); else { /* * Make the rank show the "correct" suffix for each number * (11-13 are the only special cases, for English anyways...) */ if ((rank % 100) >= 11 && (rank % 100) <= 13) snprintf(rankstr, sizeof(rankstr), "%dth", rank); else snprintf(rankstr, sizeof(rankstr), "%d%s", rank, ranks[rank % 10]); rank ++; } if (longstatus) { _cupsLangPuts(stdout, "\n"); if (jobcopies > 1) snprintf(namestr, sizeof(namestr), "%d copies of %s", jobcopies, jobname); else strlcpy(namestr, jobname, sizeof(namestr)); _cupsLangPrintf(stdout, _("%s: %-33.33s [job %d localhost]"), jobuser, rankstr, jobid); _cupsLangPrintf(stdout, _(" %-39.39s %.0f bytes"), namestr, 1024.0 * jobsize); } else _cupsLangPrintf(stdout, _("%-7s %-7.7s %-7d %-31.31s %.0f bytes"), rankstr, jobuser, jobid, jobname, 1024.0 * jobsize); if (attr == NULL) break; } ippDelete(response); } else { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); return (0); } if (jobcount == 0) _cupsLangPuts(stdout, _("no entries")); return (jobcount); } /* * 'show_printer()' - Show printer status. */ static void show_printer(const char *command, /* I - Command name */ http_t *http, /* I - HTTP connection to server */ const char *dest) /* I - Destination */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ ipp_pstate_t state; /* Printer state */ char uri[HTTP_MAX_URI]; /* Printer URI */ if (http == NULL) return; /* * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the following * attributes: * * attributes-charset * attributes-natural-language * printer-uri */ request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", NULL, "localhost", 0, "/printers/%s", dest); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { if (response->request.status.status_code > IPP_OK_CONFLICT) { _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); ippDelete(response); return; } if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) state = (ipp_pstate_t)attr->values[0].integer; else state = IPP_PRINTER_STOPPED; switch (state) { case IPP_PRINTER_IDLE : _cupsLangPrintf(stdout, _("%s is ready"), dest); break; case IPP_PRINTER_PROCESSING : _cupsLangPrintf(stdout, _("%s is ready and printing"), dest); break; case IPP_PRINTER_STOPPED : _cupsLangPrintf(stdout, _("%s is not ready"), dest); break; } ippDelete(response); } else _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); } /* * 'usage()' - Show program usage. */ static void usage(void) { _cupsLangPuts(stderr, _("Usage: lpq [options] [+interval]")); _cupsLangPuts(stdout, _("Options:")); _cupsLangPuts(stdout, _("-a Show jobs on all destinations")); _cupsLangPuts(stdout, _("-E Encrypt the connection to the server")); _cupsLangPuts(stdout, _("-h server[:port] Connect to the named server and port")); _cupsLangPuts(stdout, _("-l Show verbose (long) output")); _cupsLangPuts(stdout, _("-P destination Show status for the specified destination")); _cupsLangPuts(stdout, _("-U username Specify the username to use for authentication")); exit(1); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/lpc.c���������������������������������������������������������������������������0000644�0001750�0001750�00000023567�14502571342�015122� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * "lpc" command for CUPS. * * Copyright 2007-2014 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ /* * Include necessary headers... */ #include <cups/cups-private.h> /* * Local functions... */ static int compare_strings(const char *, const char *, size_t); static void do_command(http_t *, const char *, const char *); static void show_help(const char *); static void show_prompt(const char *message); static void show_status(http_t *, const char *); /* * 'main()' - Parse options and commands. */ int main(int argc, /* I - Number of command-line arguments */ char *argv[]) /* I - Command-line arguments */ { http_t *http; /* Connection to server */ char line[1024], /* Input line from user */ *params; /* Pointer to parameters */ _cupsSetLocale(argv); /* * Connect to the scheduler... */ http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption()); if (argc > 1) { /* * Process a single command on the command-line... */ do_command(http, argv[1], argv[2]); } else { /* * Do the command prompt thing... */ show_prompt(_("lpc> ")); while (fgets(line, sizeof(line), stdin) != NULL) { /* * Strip trailing whitespace... */ for (params = line + strlen(line) - 1; params >= line;) if (!isspace(*params & 255)) break; else *params-- = '\0'; /* * Strip leading whitespace... */ for (params = line; isspace(*params & 255); params ++); if (params > line) _cups_strcpy(line, params); if (!line[0]) { /* * Nothing left, just show a prompt... */ show_prompt(_("lpc> ")); continue; } /* * Find any options in the string... */ for (params = line; *params != '\0'; params ++) if (isspace(*params & 255)) break; /* * Remove whitespace between the command and parameters... */ while (isspace(*params & 255)) *params++ = '\0'; /* * The "quit" and "exit" commands exit; otherwise, process as needed... */ if (!compare_strings(line, "quit", 1) || !compare_strings(line, "exit", 2)) break; if (*params == '\0') do_command(http, line, NULL); else do_command(http, line, params); /* * Put another prompt out to the user... */ show_prompt(_("lpc> ")); } } /* * Close the connection to the server and return... */ httpClose(http); return (0); } /* * 'compare_strings()' - Compare two command-line strings. */ static int /* O - -1 or 1 = no match, 0 = match */ compare_strings(const char *s, /* I - Command-line string */ const char *t, /* I - Option string */ size_t tmin) /* I - Minimum number of unique chars in option */ { size_t slen; /* Length of command-line string */ slen = strlen(s); if (slen < tmin) return (-1); else return (strncmp(s, t, slen)); } /* * 'do_command()' - Do an lpc command... */ static void do_command(http_t *http, /* I - HTTP connection to server */ const char *command, /* I - Command string */ const char *params) /* I - Parameters for command */ { if (!compare_strings(command, "status", 4)) show_status(http, params); else if (!compare_strings(command, "help", 1) || !strcmp(command, "?")) show_help(params); else _cupsLangPrintf(stdout, _("%s is not implemented by the CUPS version of lpc."), command); } /* * 'show_help()' - Show help messages. */ static void show_help(const char *command) /* I - Command to describe or NULL */ { if (!command) { _cupsLangPrintf(stdout, _("Commands may be abbreviated. Commands are:\n" "\n" "exit help quit status ?")); } else if (!compare_strings(command, "help", 1) || !strcmp(command, "?")) _cupsLangPrintf(stdout, _("help\t\tGet help on commands.")); else if (!compare_strings(command, "status", 4)) _cupsLangPrintf(stdout, _("status\t\tShow status of daemon and queue.")); else _cupsLangPrintf(stdout, _("?Invalid help command unknown.")); } /* * 'show_prompt()' - Show a localized prompt message. */ static void show_prompt(const char *message) /* I - Message string to use */ { ssize_t bytes; /* Number of bytes formatted */ char output[8192]; /* Message buffer */ cups_lang_t *lang = cupsLangDefault(); /* Default language */ /* * Transcode to the destination charset and write the prompt... */ if ((bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)_cupsLangString(lang, message), sizeof(output), lang->encoding)) > 0) { fwrite(output, 1, (size_t)bytes, stdout); fflush(stdout); } } /* * 'show_status()' - Show printers. */ static void show_status(http_t *http, /* I - HTTP connection to server */ const char *dests) /* I - Destinations */ { ipp_t *request, /* IPP Request */ *response; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ char *printer, /* Printer name */ *device, /* Device URI */ *delimiter; /* Char search result */ ipp_pstate_t pstate; /* Printer state */ int accepting; /* Is printer accepting jobs? */ int jobcount; /* Count of current jobs */ const char *dptr, /* Pointer into destination list */ *ptr; /* Pointer into printer name */ int match; /* Non-zero if this job matches */ static const char *requested[] = /* Requested attributes */ { "device-uri", "printer-is-accepting-jobs", "printer-name", "printer-state", "queued-job-count" }; if (http == NULL) return; /* * Build a CUPS_GET_PRINTERS request, which requires the following * attributes: * * attributes-charset * attributes-natural-language */ request = ippNewRequest(CUPS_GET_PRINTERS); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(requested) / sizeof(requested[0]), NULL, requested); /* * Do the request and get back a response... */ if ((response = cupsDoRequest(http, request, "/")) != NULL) { /* * Loop through the printers returned in the list and display * their status... */ for (attr = response->attrs; attr != NULL; attr = attr->next) { /* * Skip leading attributes until we hit a job... */ while (attr != NULL && attr->group_tag != IPP_TAG_PRINTER) attr = attr->next; if (attr == NULL) break; /* * Pull the needed attributes from this job... */ printer = NULL; device = "file:/dev/null"; pstate = IPP_PRINTER_IDLE; jobcount = 0; accepting = 1; while (attr != NULL && attr->group_tag == IPP_TAG_PRINTER) { if (!strcmp(attr->name, "device-uri") && attr->value_tag == IPP_TAG_URI) device = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-is-accepting-jobs") && attr->value_tag == IPP_TAG_BOOLEAN) accepting = attr->values[0].boolean; else if (!strcmp(attr->name, "printer-name") && attr->value_tag == IPP_TAG_NAME) printer = attr->values[0].string.text; else if (!strcmp(attr->name, "printer-state") && attr->value_tag == IPP_TAG_ENUM) pstate = (ipp_pstate_t)attr->values[0].integer; else if (!strcmp(attr->name, "queued-job-count") && attr->value_tag == IPP_TAG_INTEGER) jobcount = attr->values[0].integer; attr = attr->next; } /* * See if we have everything needed... */ if (printer == NULL) { if (attr == NULL) break; else continue; } /* * A single 'all' printer name is special, meaning all printers. */ if (dests != NULL && !strcmp(dests, "all")) dests = NULL; /* * See if this is a printer we're interested in... */ match = dests == NULL; if (dests != NULL) { for (dptr = dests; *dptr != '\0';) { /* * Skip leading whitespace and commas... */ while (isspace(*dptr & 255) || *dptr == ',') dptr ++; if (*dptr == '\0') break; /* * Compare names... */ for (ptr = printer; *ptr != '\0' && *dptr != '\0' && *ptr == *dptr; ptr ++, dptr ++) /* do nothing */; if (*ptr == '\0' && (*dptr == '\0' || *dptr == ',' || isspace(*dptr & 255))) { match = 1; break; } /* * Skip trailing junk... */ while (!isspace(*dptr & 255) && *dptr != '\0') dptr ++; while (isspace(*dptr & 255) || *dptr == ',') dptr ++; if (*dptr == '\0') break; } } /* * Display the printer entry if needed... */ if (match) { /* * Display it... */ printf("%s:\n", printer); if (!strncmp(device, "file:", 5)) _cupsLangPrintf(stdout, _("\tprinter is on device \'%s\' speed -1"), device + 5); else { /* * Just show the scheme... */ if ((delimiter = strchr(device, ':')) != NULL ) { *delimiter = '\0'; _cupsLangPrintf(stdout, _("\tprinter is on device \'%s\' speed -1"), device); } } if (accepting) _cupsLangPuts(stdout, _("\tqueuing is enabled")); else _cupsLangPuts(stdout, _("\tqueuing is disabled")); if (pstate != IPP_PRINTER_STOPPED) _cupsLangPuts(stdout, _("\tprinting is enabled")); else _cupsLangPuts(stdout, _("\tprinting is disabled")); if (jobcount == 0) _cupsLangPuts(stdout, _("\tno entries")); else _cupsLangPrintf(stdout, _("\t%d entries"), jobcount); _cupsLangPuts(stdout, _("\tdaemon present")); } if (attr == NULL) break; } ippDelete(response); } } �����������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/Makefile������������������������������������������������������������������������0000644�0001750�0001750�00000004327�14502571342�015631� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # Berkeley commands makefile for CUPS. # # Copyright 2007-2019 by Apple Inc. # Copyright 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more information. # include ../Makedefs TARGETS = lpc lpq lpr lprm OBJS = lpc.o lpq.o lpr.o lprm.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: # # Install programs... # install-exec: echo Installing Berkeley user printing commands in $(BINDIR)... $(INSTALL_DIR) -m 755 $(BINDIR) $(INSTALL_BIN) lpq $(BINDIR) $(INSTALL_BIN) lpr $(BINDIR) $(INSTALL_BIN) lprm $(BINDIR) echo Installing Berkeley admin printing commands in $(BINDIR)... $(INSTALL_DIR) -m 755 $(SBINDIR) $(INSTALL_BIN) lpc $(SBINDIR) if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(TARGETS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: $(RM) $(BINDIR)/lpq $(RM) $(BINDIR)/lpr $(RM) $(BINDIR)/lprm $(RM) $(SBINDIR)/lpc -$(RMDIR) $(SBINDIR) -$(RMDIR) $(BINDIR) # # lpc # lpc: lpc.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpc lpc.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpq # lpq: lpq.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpq lpq.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lpr # lpr: lpr.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpr lpr.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # lprm # lprm: lprm.o ../cups/$(LIBCUPS) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lprm lprm.o $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # Dependencies... # include Dependencies ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/berkeley/Dependencies��������������������������������������������������������������������0000644�0001750�0001750�00000003006�14502571342�016473� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������lpc.o: lpc.c ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h lpq.o: lpq.c ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h lpr.o: lpr.c ../cups/cups-private.h ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h lprm.o: lprm.c ../cups/cups-private.h ../cups/string-private.h \ ../config.h ../cups/versioning.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ ../cups/pwg-private.h ../cups/thread-private.h ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/���������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�14502571342�013750� 5����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/usb.c����������������������������������������������������������������������������0000644�0001750�0001750�00000013220�14502571342�014703� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * USB printer backend for CUPS. * * Copyright © 2007-2012 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #ifdef __APPLE__ /* A header order dependency requires this be first */ # include <ApplicationServices/ApplicationServices.h> #endif /* __APPLE__ */ #include "backend-private.h" #ifdef _WIN32 # include <io.h> #else # include <unistd.h> # include <fcntl.h> # include <termios.h> #endif /* _WIN32 */ /* * Local functions... */ void list_devices(void); int print_device(const char *uri, const char *hostname, const char *resource, char *options, int print_fd, int copies, int argc, char *argv[]); /* * Include the vendor-specific USB implementation... */ #ifdef HAVE_LIBUSB # include "usb-libusb.c" #elif defined(__APPLE__) # include "usb-darwin.c" #elif defined(__linux) || defined(__sun) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) # include "usb-unix.c" #else /* * Use dummy functions that do nothing on unsupported platforms... * These can be used as templates for implementing USB printing on new * platforms... */ /* * 'list_devices()' - List all available USB devices to stdout. */ void list_devices(void) { /* * Don't have any devices to list... Use output of the form: * * direct usb:/make/model?serial=foo "Make Model" "USB Printer" * * Note that "Hewlett Packard" or any other variation MUST be mapped to * "HP" for compatibility with the PPD and ICC specs. */ } /* * 'print_device()' - Print a file to a USB device. */ int /* O - Exit status */ print_device(const char *uri, /* I - Device URI */ const char *hostname, /* I - Hostname/manufacturer */ const char *resource, /* I - Resource/modelname */ char *options, /* I - Device options/serial number */ int print_fd, /* I - File descriptor to print */ int copies, /* I - Copies to print */ int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { /* * Can't print, so just reference the arguments to eliminate compiler * warnings and return and exit status of 1. Normally you would use the * arguments to send a file to the printer and return 0 if everything * worked OK and non-zero if there was an error. */ (void)uri; (void)hostname; (void)resource; (void)options; (void)print_fd; (void)copies; (void)argc; (void)argv; return (CUPS_BACKEND_FAILED); } #endif /* HAVE_LIBUSB */ /* * 'main()' - Send a file to the specified USB port. * * Usage: * * printer-uri job-id user title copies options [file] */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { int print_fd; /* Print file */ int copies; /* Number of copies to print */ int status; /* Exit status */ int port; /* Port number (not used) */ const char *uri; /* Device URI */ char method[255], /* Method in URI */ hostname[1024], /* Hostname */ username[255], /* Username info (not used) */ resource[1024], /* Resource info (device and options) */ *options; /* Pointer to options */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE signals... */ #ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); #else signal(SIGPIPE, SIG_IGN); #endif /* HAVE_SIGSET */ /* * Check command-line... */ if (argc == 1) { list_devices(); return (CUPS_BACKEND_OK); } else if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (CUPS_BACKEND_FAILED); } /* * Extract the device name and options from the URI... */ uri = cupsBackendDeviceURI(argv); if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, method, sizeof(method), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)) < HTTP_URI_OK) { _cupsLangPrintFilter(stderr, "ERROR", _("No device URI found in argv[0] or in DEVICE_URI " "environment variable.")); return (1); } /* * See if there are any options... */ if ((options = strchr(resource, '?')) != NULL) { /* * Yup, terminate the device name string and move to the first * character of the options... */ *options++ = '\0'; } /* * If we have 7 arguments, print the file named on the command-line. * Otherwise, send stdin instead... */ if (argc == 6) { print_fd = 0; copies = 1; } else { /* * Try to open the print file... */ if ((print_fd = open(argv[6], O_RDONLY)) < 0) { _cupsLangPrintError("ERROR", _("Unable to open print file")); return (CUPS_BACKEND_FAILED); } copies = atoi(argv[4]); } /* * Finally, send the print file... */ status = print_device(uri, hostname, resource, options, print_fd, copies, argc, argv); /* * Close the input file and return... */ if (print_fd != 0) close(print_fd); return (status); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/usb-unix.c�����������������������������������������������������������������������0000644�0001750�0001750�00000032464�14502571342�015677� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * USB port backend for CUPS. * * This file is included from "usb.c" when compiled on UNIX/Linux. * * Copyright © 2007-2013 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include <sys/select.h> /* * Local functions... */ static int open_device(const char *uri, int *use_bc); static int side_cb(int print_fd, int device_fd, int snmp_fd, http_addr_t *addr, int use_bc); /* * 'print_device()' - Print a file to a USB device. */ int /* O - Exit status */ print_device(const char *uri, /* I - Device URI */ const char *hostname, /* I - Hostname/manufacturer */ const char *resource, /* I - Resource/modelname */ char *options, /* I - Device options/serial number */ int print_fd, /* I - File descriptor to print */ int copies, /* I - Copies to print */ int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { int use_bc; /* Use backchannel path? */ int device_fd; /* USB device */ ssize_t tbytes; /* Total number of bytes written */ struct termios opts; /* Parallel port options */ (void)argc; (void)argv; /* * Open the USB port device... */ fputs("STATE: +connecting-to-device\n", stderr); do { #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) /* * *BSD's ulpt driver currently does not support the * back-channel, incorrectly returns data ready on a select(), * and locks up on read()... */ use_bc = 0; #elif defined(__sun) /* * CUPS STR #3028: Solaris' usbprn driver apparently does not support * select() or poll(), so we can't support backchannel... */ use_bc = 0; #else /* * Disable backchannel data when printing to Brother, Canon, or * Minolta USB printers - apparently these printers will return * the IEEE-1284 device ID over and over and over when they get * a read request... */ use_bc = _cups_strcasecmp(hostname, "Brother") && _cups_strcasecmp(hostname, "Canon") && _cups_strncasecmp(hostname, "Konica", 6) && _cups_strncasecmp(hostname, "Minolta", 7); #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */ if ((device_fd = open_device(uri, &use_bc)) == -1) { if (getenv("CLASS") != NULL) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. */ _cupsLangPrintFilter(stderr, "INFO", _("Unable to contact printer, queuing on next " "printer in class.")); /* * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); return (CUPS_BACKEND_FAILED); } if (errno == EBUSY) { _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); sleep(10); } else if (errno == ENXIO || errno == EIO || errno == ENOENT || errno == ENODEV) { sleep(30); } else { _cupsLangPrintError("ERROR", _("Unable to open device file")); return (CUPS_BACKEND_FAILED); } } } while (device_fd < 0); fputs("STATE: -connecting-to-device\n", stderr); /* * Set any options provided... */ tcgetattr(device_fd, &opts); opts.c_lflag &= ~(unsigned)(ICANON | ECHO | ISIG); /* Raw mode */ /**** No options supported yet ****/ tcsetattr(device_fd, TCSANOW, &opts); /* * Finally, send the print file... */ tbytes = 0; while (copies > 0 && tbytes >= 0) { copies --; if (print_fd != 0) { fputs("PAGE: 1 1\n", stderr); lseek(print_fd, 0, SEEK_SET); } #ifdef __sun /* * CUPS STR #3028: Solaris' usbprn driver apparently does not support * select() or poll(), so we can't support the sidechannel either... */ tbytes = backendRunLoop(print_fd, device_fd, -1, NULL, use_bc, 1, NULL); #else tbytes = backendRunLoop(print_fd, device_fd, -1, NULL, use_bc, 1, side_cb); #endif /* __sun */ if (print_fd != 0 && tbytes >= 0) _cupsLangPrintFilter(stderr, "INFO", _("Print file sent.")); } /* * Close the USB port and return... */ close(device_fd); return (CUPS_BACKEND_OK); } /* * 'list_devices()' - List all USB devices. */ void list_devices(void) { #ifdef __linux int i; /* Looping var */ int fd; /* File descriptor */ char device[255], /* Device filename */ device_id[1024], /* Device ID string */ device_uri[1024], /* Device URI string */ make_model[1024]; /* Make and model */ /* * Try to open each USB device... */ for (i = 0; i < 16; i ++) { /* * Linux has a long history of changing the standard filenames used * for USB printer devices. We get the honor of trying them all... */ snprintf(device, sizeof(device), "/dev/usblp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0) { if (errno != ENOENT) continue; snprintf(device, sizeof(device), "/dev/usb/lp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0) { if (errno != ENOENT) continue; snprintf(device, sizeof(device), "/dev/usb/usblp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0) continue; } } if (!backendGetDeviceID(fd, device_id, sizeof(device_id), make_model, sizeof(make_model), "usb", device_uri, sizeof(device_uri))) cupsBackendReport("direct", device_uri, make_model, make_model, device_id, NULL); close(fd); } #elif defined(__sun) && defined(ECPPIOC_GETDEVID) int i; /* Looping var */ int fd; /* File descriptor */ char device[255], /* Device filename */ device_id[1024], /* Device ID string */ device_uri[1024], /* Device URI string */ make_model[1024]; /* Make and model */ /* * Open each USB device... */ for (i = 0; i < 8; i ++) { snprintf(device, sizeof(device), "/dev/usb/printer%d", i); if ((fd = open(device, O_WRONLY | O_EXCL)) >= 0) { if (!backendGetDeviceID(fd, device_id, sizeof(device_id), make_model, sizeof(make_model), "usb", device_uri, sizeof(device_uri))) cupsBackendReport("direct", device_uri, make_model, make_model, device_id, NULL); close(fd); } } #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) int i; /* Looping var */ char device[255]; /* Device filename */ for (i = 0; i < 8; i ++) { snprintf(device, sizeof(device), "/dev/ulpt%d", i); if (!access(device, 0)) printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1); snprintf(device, sizeof(device), "/dev/unlpt%d", i); if (!access(device, 0)) printf("direct usb:%s \"Unknown\" \"USB Printer #%d (no reset)\"\n", device, i + 1); } #endif } /* * 'open_device()' - Open a USB device... */ static int /* O - File descriptor or -1 on error */ open_device(const char *uri, /* I - Device URI */ int *use_bc) /* O - Set to 0 for unidirectional */ { int fd; /* File descriptor */ /* * The generic implementation just treats the URI as a device filename... * Specific operating systems may also support using the device serial * number and/or make/model. */ if (!strncmp(uri, "usb:/dev/", 9)) #ifdef __linux { /* * Do not allow direct devices anymore... */ errno = ENODEV; return (-1); } else if (!strncmp(uri, "usb://", 6)) { /* * For Linux, try looking up the device serial number or model... */ int i; /* Looping var */ int busy; /* Are any ports busy? */ char device[255], /* Device filename */ device_id[1024], /* Device ID string */ make_model[1024], /* Make and model */ device_uri[1024]; /* Device URI string */ /* * Find the correct USB device... */ for (;;) { for (busy = 0, i = 0; i < 16; i ++) { /* * Linux has a long history of changing the standard filenames used * for USB printer devices. We get the honor of trying them all... */ snprintf(device, sizeof(device), "/dev/usblp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0 && errno == ENOENT) { snprintf(device, sizeof(device), "/dev/usb/lp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0 && errno == ENOENT) { snprintf(device, sizeof(device), "/dev/usb/usblp%d", i); if ((fd = open(device, O_RDWR | O_EXCL)) < 0 && errno == ENOENT) continue; } } if (fd >= 0) { backendGetDeviceID(fd, device_id, sizeof(device_id), make_model, sizeof(make_model), "usb", device_uri, sizeof(device_uri)); } else { /* * If the open failed because it was busy, flag it so we retry * as needed... */ if (errno == EBUSY) busy = 1; device_uri[0] = '\0'; } if (!strcmp(uri, device_uri)) { /* * Yes, return this file descriptor... */ fprintf(stderr, "DEBUG: Printer using device file \"%s\"...\n", device); return (fd); } /* * This wasn't the one... */ if (fd >= 0) close(fd); } /* * If we get here and at least one of the printer ports showed up * as "busy", then sleep for a bit and retry... */ if (busy) _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); sleep(5); } } #elif defined(__sun) && defined(ECPPIOC_GETDEVID) { /* * Do not allow direct devices anymore... */ errno = ENODEV; return (-1); } else if (!strncmp(uri, "usb://", 6)) { /* * For Solaris, try looking up the device serial number or model... */ int i; /* Looping var */ int busy; /* Are any ports busy? */ char device[255], /* Device filename */ device_id[1024], /* Device ID string */ make_model[1024], /* Make and model */ device_uri[1024]; /* Device URI string */ /* * Find the correct USB device... */ do { for (i = 0, busy = 0; i < 8; i ++) { snprintf(device, sizeof(device), "/dev/usb/printer%d", i); if ((fd = open(device, O_WRONLY | O_EXCL)) >= 0) backendGetDeviceID(fd, device_id, sizeof(device_id), make_model, sizeof(make_model), "usb", device_uri, sizeof(device_uri)); else { /* * If the open failed because it was busy, flag it so we retry * as needed... */ if (errno == EBUSY) busy = 1; device_uri[0] = '\0'; } if (!strcmp(uri, device_uri)) { /* * Yes, return this file descriptor... */ fputs("DEBUG: Setting use_bc to 0!\n", stderr); *use_bc = 0; return (fd); } /* * This wasn't the one... */ if (fd >= 0) close(fd); } /* * If we get here and at least one of the printer ports showed up * as "busy", then sleep for a bit and retry... */ if (busy) { _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); sleep(5); } } while (busy); /* * Couldn't find the printer, return "no such device or address"... */ errno = ENODEV; return (-1); } #else { if (*use_bc) fd = open(uri + 4, O_RDWR | O_EXCL); else fd = -1; if (fd < 0) { fd = open(uri + 4, O_WRONLY | O_EXCL); *use_bc = 0; } return (fd); } #endif /* __linux */ else { errno = ENODEV; return (-1); } } /* * 'side_cb()' - Handle side-channel requests... */ static int /* O - 0 on success, -1 on error */ side_cb(int print_fd, /* I - Print file */ int device_fd, /* I - Device file */ int snmp_fd, /* I - SNMP socket (unused) */ http_addr_t *addr, /* I - Device address (unused) */ int use_bc) /* I - Using back-channel? */ { cups_sc_command_t command; /* Request command */ cups_sc_status_t status; /* Request/response status */ char data[2048]; /* Request/response data */ int datalen; /* Request/response data size */ (void)snmp_fd; (void)addr; datalen = sizeof(data); if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) return (-1); switch (command) { case CUPS_SC_CMD_DRAIN_OUTPUT : if (backendDrainOutput(print_fd, device_fd)) status = CUPS_SC_STATUS_IO_ERROR; else if (tcdrain(device_fd)) status = CUPS_SC_STATUS_IO_ERROR; else status = CUPS_SC_STATUS_OK; datalen = 0; break; case CUPS_SC_CMD_GET_BIDI : status = CUPS_SC_STATUS_OK; data[0] = use_bc; datalen = 1; break; case CUPS_SC_CMD_GET_DEVICE_ID : memset(data, 0, sizeof(data)); if (backendGetDeviceID(device_fd, data, sizeof(data) - 1, NULL, 0, NULL, NULL, 0)) { status = CUPS_SC_STATUS_NOT_IMPLEMENTED; datalen = 0; } else { status = CUPS_SC_STATUS_OK; datalen = strlen(data); } break; default : status = CUPS_SC_STATUS_NOT_IMPLEMENTED; datalen = 0; break; } return (cupsSideChannelWrite(command, status, data, datalen, 1.0)); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/usb-libusb.c���������������������������������������������������������������������0000644�0001750�0001750�00000150445�14502571342�016174� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * LIBUSB interface code for CUPS. * * Copyright © 2021 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers... */ #include <libusb.h> #include <cups/cups-private.h> #include <cups/ppd-private.h> #include <cups/dir.h> #include <pthread.h> #include <sys/select.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <unistd.h> /* * WAIT_EOF_DELAY is number of seconds we'll wait for responses from * the printer after we've finished sending all the data */ #define WAIT_EOF 0 #define WAIT_EOF_DELAY 7 #define WAIT_SIDE_DELAY 3 #define DEFAULT_TIMEOUT 5000L /* * Local types... */ typedef struct usb_printer_s /**** USB Printer Data ****/ { struct libusb_device *device; /* Device info */ int conf, /* Configuration */ origconf, /* Original configuration */ iface, /* Interface */ altset, /* Alternate setting */ write_endp, /* Write endpoint */ read_endp, /* Read endpoint */ protocol, /* Protocol: 1 = Uni-di, 2 = Bi-di. */ usblp_attached, /* "usblp" kernel module attached? */ reset_after_job;/* Set to 1 by print_device() */ unsigned quirks; /* Quirks flags */ struct libusb_device_handle *handle; /* Open handle to device */ } usb_printer_t; typedef int (*usb_cb_t)(usb_printer_t *, const char *, const char *, const void *); typedef struct usb_globals_s /* Global USB printer information */ { usb_printer_t *printer; /* Printer */ pthread_mutex_t read_thread_mutex; pthread_cond_t read_thread_cond; int read_thread_stop; int read_thread_done; pthread_mutex_t readwrite_lock_mutex; pthread_cond_t readwrite_lock_cond; int readwrite_lock; int print_fd; /* File descriptor to print */ ssize_t print_bytes; /* Print bytes read */ int wait_eof; int drain_output; /* Drain all pending output */ int bidi_flag; /* 0=unidirectional, 1=bidirectional */ pthread_mutex_t sidechannel_thread_mutex; pthread_cond_t sidechannel_thread_cond; int sidechannel_thread_stop; int sidechannel_thread_done; } usb_globals_t; /* * Quirks: various printer quirks are handled by this structure and its flags. * * The quirks table used to be compiled into the backend but is now loaded from * one or more files in the /usr/share/cups/usb directory. */ #define USB_QUIRK_BLACKLIST 0x0001 /* Does not conform to the spec */ #define USB_QUIRK_NO_REATTACH 0x0002 /* After printing we cannot re-attach the usblp kernel module */ #define USB_QUIRK_SOFT_RESET 0x0004 /* After printing do a soft reset for clean-up */ #define USB_QUIRK_UNIDIR 0x0008 /* Requires unidirectional mode */ #define USB_QUIRK_USB_INIT 0x0010 /* Needs vendor USB init string */ #define USB_QUIRK_VENDOR_CLASS 0x0020 /* Descriptor uses vendor-specific Class or SubClass */ #define USB_QUIRK_DELAY_CLOSE 0x0040 /* Delay close */ #define USB_QUIRK_WHITELIST 0x0000 /* no quirks */ typedef struct usb_quirk_s /* USB "quirk" information */ { int vendor_id, /* Affected vendor ID */ product_id; /* Affected product ID or 0 for all */ unsigned quirks; /* Quirks bitfield */ } usb_quirk_t; /* * Globals... */ cups_array_t *all_quirks; /* Array of printer quirks */ usb_globals_t g = { 0 }; /* Globals */ libusb_device **all_list; /* List of connected USB devices */ /* * Local functions... */ static int close_device(usb_printer_t *printer); static int compare_quirks(usb_quirk_t *a, usb_quirk_t *b); static usb_printer_t *find_device(usb_cb_t cb, const void *data); static unsigned find_quirks(int vendor_id, int product_id); static int get_device_id(usb_printer_t *printer, char *buffer, size_t bufsize); static int list_cb(usb_printer_t *printer, const char *device_uri, const char *device_id, const void *data); static void load_quirks(void); static char *make_device_uri(usb_printer_t *printer, const char *device_id, char *uri, size_t uri_size); static int open_device(usb_printer_t *printer, int verbose); static int print_cb(usb_printer_t *printer, const char *device_uri, const char *device_id, const void *data); static void *read_thread(void *reference); static void *sidechannel_thread(void *reference); static void soft_reset(void); static int soft_reset_printer(usb_printer_t *printer); /* * 'list_devices()' - List the available printers. */ void list_devices(void) { load_quirks(); fputs("DEBUG: list_devices\n", stderr); find_device(list_cb, NULL); } /* * 'print_device()' - Print a file to a USB device. */ int /* O - Exit status */ print_device(const char *uri, /* I - Device URI */ const char *hostname, /* I - Hostname/manufacturer */ const char *resource, /* I - Resource/modelname */ char *options, /* I - Device options/serial number */ int print_fd, /* I - File descriptor to print */ int copies, /* I - Copies to print */ int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { int bytes; /* Bytes written */ ssize_t total_bytes; /* Total bytes written */ struct sigaction action; /* Actions for POSIX signals */ int status = CUPS_BACKEND_OK, /* Function results */ iostatus; /* Current IO status */ pthread_t read_thread_id, /* Read thread */ sidechannel_thread_id; /* Side-channel thread */ int have_sidechannel = 0, /* Was the side-channel thread started? */ have_backchannel = 0; /* Do we have a back channel? */ struct stat sidechannel_info; /* Side-channel file descriptor info */ unsigned char print_buffer[8192], /* Print data buffer */ *print_ptr; /* Pointer into print data buffer */ fd_set input_set; /* Input set for select() */ int nfds; /* Number of file descriptors */ struct timeval *timeout, /* Timeout pointer */ tv; /* Time value */ struct timespec cond_timeout; /* pthread condition timeout */ int num_opts; /* Number of options */ cups_option_t *opts; /* Options */ const char *val; /* Option value */ load_quirks(); /* * See if the side-channel descriptor is valid... */ have_sidechannel = !fstat(CUPS_SC_FD, &sidechannel_info) && S_ISSOCK(sidechannel_info.st_mode); g.wait_eof = WAIT_EOF; /* * Connect to the printer... */ fprintf(stderr, "DEBUG: Printing on printer with URI: %s\n", uri); while ((g.printer = find_device(print_cb, uri)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Waiting for printer to become available.")); sleep(5); } g.print_fd = print_fd; /* * Some devices need a reset after finishing a job, these devices are * marked with the USB_QUIRK_SOFT_RESET quirk. */ g.printer->reset_after_job = (g.printer->quirks & USB_QUIRK_SOFT_RESET ? 1 : 0); /* * If we are printing data from a print driver on stdin, ignore SIGTERM * so that the driver can finish out any page data, e.g. to eject the * current page. We only do this for stdin printing as otherwise there * is no way to cancel a raw print job... */ if (!print_fd) { memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = SIG_IGN; sigaction(SIGTERM, &action, NULL); } /* * Start the side channel thread if the descriptor is valid... */ pthread_mutex_init(&g.readwrite_lock_mutex, NULL); pthread_cond_init(&g.readwrite_lock_cond, NULL); g.readwrite_lock = 1; if (have_sidechannel) { g.sidechannel_thread_stop = 0; g.sidechannel_thread_done = 0; pthread_cond_init(&g.sidechannel_thread_cond, NULL); pthread_mutex_init(&g.sidechannel_thread_mutex, NULL); if (pthread_create(&sidechannel_thread_id, NULL, sidechannel_thread, NULL)) { fprintf(stderr, "DEBUG: Fatal USB error.\n"); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); fputs("DEBUG: Couldn't create side-channel thread.\n", stderr); close_device(g.printer); return (CUPS_BACKEND_STOP); } } /* * Debug mode: If option "usb-unidir" is given, always deactivate * backchannel */ num_opts = cupsParseOptions(argv[5], 0, &opts); val = cupsGetOption("usb-unidir", num_opts, opts); if (val && strcasecmp(val, "no") && strcasecmp(val, "off") && strcasecmp(val, "false")) { g.printer->read_endp = -1; fprintf(stderr, "DEBUG: Forced uni-directional communication " "via \"usb-unidir\" option.\n"); } /* * Debug mode: If option "usb-no-reattach" is given, do not re-attach * the usblp kernel module after the job has completed. */ val = cupsGetOption("usb-no-reattach", num_opts, opts); if (val && strcasecmp(val, "no") && strcasecmp(val, "off") && strcasecmp(val, "false")) { g.printer->usblp_attached = 0; fprintf(stderr, "DEBUG: Forced not re-attaching the usblp kernel module " "after the job via \"usb-no-reattach\" option.\n"); } /* * Get the read thread going... */ if (g.printer->read_endp != -1) { have_backchannel = 1; g.read_thread_stop = 0; g.read_thread_done = 0; pthread_cond_init(&g.read_thread_cond, NULL); pthread_mutex_init(&g.read_thread_mutex, NULL); if (pthread_create(&read_thread_id, NULL, read_thread, NULL)) { fprintf(stderr, "DEBUG: Fatal USB error.\n"); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); fputs("DEBUG: Couldn't create read thread.\n", stderr); close_device(g.printer); return (CUPS_BACKEND_STOP); } } else fprintf(stderr, "DEBUG: Uni-directional device/mode, back channel " "deactivated.\n"); /* * The main thread sends the print file... */ g.drain_output = 0; g.print_bytes = 0; total_bytes = 0; print_ptr = print_buffer; while (status == CUPS_BACKEND_OK && copies-- > 0) { _cupsLangPrintFilter(stderr, "INFO", _("Sending data to printer.")); if (print_fd != STDIN_FILENO) { fputs("PAGE: 1 1\n", stderr); lseek(print_fd, 0, SEEK_SET); } while (status == CUPS_BACKEND_OK) { FD_ZERO(&input_set); if (!g.print_bytes) FD_SET(print_fd, &input_set); /* * Calculate select timeout... * If we have data waiting to send timeout is 100ms. * else if we're draining print_fd timeout is 0. * else we're waiting forever... */ if (g.print_bytes) { tv.tv_sec = 0; tv.tv_usec = 100000; /* 100ms */ timeout = &tv; } else if (g.drain_output) { tv.tv_sec = 0; tv.tv_usec = 0; timeout = &tv; } else timeout = NULL; /* * I/O is unlocked around select... */ pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); nfds = select(print_fd + 1, &input_set, NULL, NULL, timeout); /* * Reacquire the lock... */ pthread_mutex_lock(&g.readwrite_lock_mutex); while (g.readwrite_lock) pthread_cond_wait(&g.readwrite_lock_cond, &g.readwrite_lock_mutex); g.readwrite_lock = 1; pthread_mutex_unlock(&g.readwrite_lock_mutex); if (nfds < 0) { if (errno == EINTR && total_bytes == 0) { fputs("DEBUG: Received an interrupt before any bytes were " "written, aborting.\n", stderr); close_device(g.printer); return (CUPS_BACKEND_OK); } else if (errno != EAGAIN && errno != EINTR) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); perror("DEBUG: select"); close_device(g.printer); return (CUPS_BACKEND_FAILED); } } /* * If drain output has finished send a response... */ if (g.drain_output && !nfds && !g.print_bytes) { /* Send a response... */ cupsSideChannelWrite(CUPS_SC_CMD_DRAIN_OUTPUT, CUPS_SC_STATUS_OK, NULL, 0, 1.0); g.drain_output = 0; } /* * Check if we have print data ready... */ if (FD_ISSET(print_fd, &input_set)) { g.print_bytes = read(print_fd, print_buffer, sizeof(print_buffer)); if (g.print_bytes < 0) { /* * Read error - bail if we don't see EAGAIN or EINTR... */ if (errno != EAGAIN && errno != EINTR) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); perror("DEBUG: read"); close_device(g.printer); return (CUPS_BACKEND_FAILED); } g.print_bytes = 0; } else if (g.print_bytes == 0) { /* * End of file, break out of the loop... */ break; } print_ptr = print_buffer; fprintf(stderr, "DEBUG: Read %d bytes of print data...\n", (int)g.print_bytes); } if (g.print_bytes) { iostatus = libusb_bulk_transfer(g.printer->handle, g.printer->write_endp, print_ptr, g.print_bytes, &bytes, 0); /* * Ignore timeout errors, but retain the number of bytes written to * avoid sending duplicate data... */ if (iostatus == LIBUSB_ERROR_TIMEOUT) { fputs("DEBUG: Got USB transaction timeout during write.\n", stderr); iostatus = 0; } /* * If we've stalled, retry the write... */ else if (iostatus == LIBUSB_ERROR_PIPE) { fputs("DEBUG: Got USB pipe stalled during write.\n", stderr); iostatus = libusb_bulk_transfer(g.printer->handle, g.printer->write_endp, print_ptr, g.print_bytes, &bytes, 0); } /* * Retry a write after an aborted write since we probably just got * SIGTERM... */ else if (iostatus == LIBUSB_ERROR_INTERRUPTED) { fputs("DEBUG: Got USB return aborted during write.\n", stderr); iostatus = libusb_bulk_transfer(g.printer->handle, g.printer->write_endp, print_ptr, g.print_bytes, &bytes, 0); } if (iostatus) { /* * Write error - bail if we don't see an error we can retry... */ _cupsLangPrintFilter(stderr, "ERROR", _("Unable to send data to printer.")); fprintf(stderr, "DEBUG: libusb write operation returned %x.\n", iostatus); status = CUPS_BACKEND_FAILED; break; } else if (bytes > 0) { fprintf(stderr, "DEBUG: Wrote %d bytes of print data...\n", (int)bytes); g.print_bytes -= bytes; print_ptr += bytes; total_bytes += bytes; } } if (print_fd != 0 && status == CUPS_BACKEND_OK) fprintf(stderr, "DEBUG: Sending print file, " CUPS_LLFMT " bytes...\n", CUPS_LLCAST total_bytes); } } fprintf(stderr, "DEBUG: Sent " CUPS_LLFMT " bytes...\n", CUPS_LLCAST total_bytes); /* * Signal the side channel thread to exit... */ if (have_sidechannel) { close(CUPS_SC_FD); pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); g.sidechannel_thread_stop = 1; pthread_mutex_lock(&g.sidechannel_thread_mutex); if (!g.sidechannel_thread_done) { gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + WAIT_SIDE_DELAY; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.sidechannel_thread_done) { if (pthread_cond_timedwait(&g.sidechannel_thread_cond, &g.sidechannel_thread_mutex, &cond_timeout) != 0) break; } } pthread_mutex_unlock(&g.sidechannel_thread_mutex); } /* * Signal the read thread to exit then wait 7 seconds for it to complete... */ if (have_backchannel) { g.read_thread_stop = 1; pthread_mutex_lock(&g.read_thread_mutex); if (!g.read_thread_done) { fputs("DEBUG: Waiting for read thread to exit...\n", stderr); gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + WAIT_EOF_DELAY; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.read_thread_done) { if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex, &cond_timeout) != 0) break; } /* * If it didn't exit abort the pending read and wait an additional * second... */ if (!g.read_thread_done) { fputs("DEBUG: Read thread still active, aborting the pending read...\n", stderr); g.wait_eof = 0; gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + 1; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.read_thread_done) { if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex, &cond_timeout) != 0) break; } } } pthread_mutex_unlock(&g.read_thread_mutex); } /* * Close the connection and input file and general clean up... */ if (g.printer->quirks & USB_QUIRK_DELAY_CLOSE) sleep(1); close_device(g.printer); /* * Clean up .... */ libusb_free_device_list(all_list, 1); libusb_exit(NULL); return (status); } /* * 'close_device()' - Close the connection to the USB printer. */ static int /* I - 0 on success, -1 on failure */ close_device(usb_printer_t *printer) /* I - Printer */ { struct libusb_device_descriptor devdesc; /* Current device descriptor */ struct libusb_config_descriptor *confptr; /* Pointer to current configuration */ if (printer->handle) { /* * Release interfaces before closing so that we know all data is written * to the device... */ int errcode; /* Return value of libusb function */ int number1, /* Interface number */ number2; /* Configuration number */ errcode = libusb_get_config_descriptor(printer->device, printer->conf, &confptr); if (errcode >= 0) { number1 = confptr->interface[printer->iface]. altsetting[printer->altset].bInterfaceNumber; libusb_release_interface(printer->handle, number1); number2 = confptr->bConfigurationValue; libusb_free_config_descriptor(confptr); /* * If we have changed the configuration from one valid configuration * to another, restore the old one */ if (printer->origconf > 0 && printer->origconf != number2) { fprintf(stderr, "DEBUG: Restoring USB device configuration: %d -> %d\n", number2, printer->origconf); if ((errcode = libusb_set_configuration(printer->handle, printer->origconf)) < 0) { if (errcode != LIBUSB_ERROR_BUSY) { errcode = libusb_get_device_descriptor (printer->device, &devdesc); if (errcode < 0) fprintf(stderr, "DEBUG: Failed to set configuration %d\n", printer->origconf); else fprintf(stderr, "DEBUG: Failed to set configuration %d for %04x:%04x\n", printer->origconf, devdesc.idVendor, devdesc.idProduct); } } } /* * Re-attach "usblp" kernel module if it was attached before using this * device */ if (printer->usblp_attached == 1) if (libusb_attach_kernel_driver(printer->handle, number1) < 0) { errcode = libusb_get_device_descriptor (printer->device, &devdesc); if (errcode < 0) fprintf(stderr, "DEBUG: Failed to re-attach \"usblp\" kernel module\n"); else fprintf(stderr, "DEBUG: Failed to re-attach \"usblp\" kernel module to " "%04x:%04x\n", devdesc.idVendor, devdesc.idProduct); } } else fprintf(stderr, "DEBUG: Failed to get configuration descriptor %d\n", printer->conf); /* * Reset the device to clean up after the job */ if (printer->reset_after_job == 1) { if ((errcode = libusb_reset_device(printer->handle)) < 0) fprintf(stderr, "DEBUG: Device reset failed, error code: %d\n", errcode); else fprintf(stderr, "DEBUG: Resetting printer.\n"); } /* * Close the interface and return... */ libusb_close(printer->handle); printer->handle = NULL; } return (0); } /* * 'compare_quirks()' - Compare two quirks entries. */ static int /* O - Result of comparison */ compare_quirks(usb_quirk_t *a, /* I - First quirk entry */ usb_quirk_t *b) /* I - Second quirk entry */ { int result; /* Result of comparison */ if ((result = b->vendor_id - a->vendor_id) == 0) result = b->product_id - a->product_id; return (result); } /* * 'find_device()' - Find or enumerate USB printers. */ static usb_printer_t * /* O - Found printer */ find_device(usb_cb_t cb, /* I - Callback function */ const void *data) /* I - User data for callback */ { libusb_device **list; /* List of connected USB devices */ libusb_device *device = NULL; /* Current device */ struct libusb_device_descriptor devdesc; /* Current device descriptor */ struct libusb_config_descriptor *confptr = NULL; /* Pointer to current configuration */ const struct libusb_interface *ifaceptr = NULL; /* Pointer to current interface */ const struct libusb_interface_descriptor *altptr = NULL; /* Pointer to current alternate setting */ const struct libusb_endpoint_descriptor *endpptr = NULL; /* Pointer to current endpoint */ ssize_t err = 0, /* Error code */ numdevs, /* number of connected devices */ i = 0; uint8_t conf, /* Current configuration */ iface, /* Current interface */ altset, /* Current alternate setting */ protocol, /* Current protocol */ endp, /* Current endpoint */ read_endp, /* Current read endpoint */ write_endp; /* Current write endpoint */ char device_id[1024],/* IEEE-1284 device ID */ device_uri[1024]; /* Device URI */ static usb_printer_t printer; /* Current printer */ /* * Initialize libusb... */ err = libusb_init(NULL); if (err) { fprintf(stderr, "ERROR: Unable to initialize USB access via libusb, libusb error %i (%s)\n", (int)err, libusb_strerror((int)err)); return (NULL); } numdevs = libusb_get_device_list(NULL, &list); fprintf(stderr, "DEBUG: libusb_get_device_list=%d\n", (int)numdevs); /* * Then loop through the devices it found... */ if (numdevs > 0) for (i = 0; i < numdevs; i++) { device = list[i]; /* * Ignore devices with no configuration data and anything that is not * a printer... */ if (libusb_get_device_descriptor(device, &devdesc) < 0) continue; if (!devdesc.bNumConfigurations || !devdesc.idVendor || !devdesc.idProduct) continue; printer.quirks = find_quirks(devdesc.idVendor, devdesc.idProduct); /* * Ignore blacklisted printers... */ if (printer.quirks & USB_QUIRK_BLACKLIST) continue; for (conf = 0; conf < devdesc.bNumConfigurations; conf ++) { if (libusb_get_config_descriptor(device, conf, &confptr) < 0) continue; for (iface = 0, ifaceptr = confptr->interface; iface < confptr->bNumInterfaces; iface ++, ifaceptr ++) { /* * Some printers offer multiple interfaces... */ protocol = 0; for (altset = 0, altptr = ifaceptr->altsetting; altset < ifaceptr->num_altsetting; // lgtm [cpp/comparison-with-wider-type] altset ++, altptr ++) { /* * Currently we only support unidirectional and bidirectional * printers. Future versions of this code will support the * 1284.4 (packet mode) protocol as well. */ if (((altptr->bInterfaceClass != LIBUSB_CLASS_PRINTER || altptr->bInterfaceSubClass != 1) && ((printer.quirks & USB_QUIRK_VENDOR_CLASS) == 0)) || (altptr->bInterfaceProtocol != 1 && /* Unidirectional */ altptr->bInterfaceProtocol != 2) || /* Bidirectional */ altptr->bInterfaceProtocol < protocol) continue; if (printer.quirks & USB_QUIRK_VENDOR_CLASS) fprintf(stderr, "DEBUG: Printer does not report class 7 and/or " "subclass 1 but works as a printer anyway\n"); read_endp = 0xff; write_endp = 0xff; for (endp = 0, endpptr = altptr->endpoint; endp < altptr->bNumEndpoints; endp ++, endpptr ++) if ((endpptr->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) == LIBUSB_TRANSFER_TYPE_BULK) { if (endpptr->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK) read_endp = endp; else write_endp = endp; } if (write_endp != 0xff) { /* * Save the best match so far... */ protocol = altptr->bInterfaceProtocol; printer.altset = altset; printer.write_endp = write_endp; if (protocol > 1) printer.read_endp = read_endp; else printer.read_endp = -1; } } if (protocol > 0) { printer.device = device; printer.conf = conf; printer.iface = iface; printer.protocol = protocol; printer.handle = NULL; if (!open_device(&printer, data != NULL)) { get_device_id(&printer, device_id, sizeof(device_id)); make_device_uri(&printer, device_id, device_uri, sizeof(device_uri)); fprintf(stderr, "DEBUG2: Printer found with device ID: %s " "Device URI: %s\n", device_id, device_uri); if ((*cb)(&printer, device_uri, device_id, data)) { fprintf(stderr, "DEBUG: Device protocol: %d\n", printer.protocol); if (printer.quirks & USB_QUIRK_UNIDIR) { printer.read_endp = -1; fprintf(stderr, "DEBUG: Printer reports bi-di support " "but in reality works only uni-directionally\n"); } if (printer.read_endp != -1) { printer.read_endp = confptr->interface[printer.iface]. altsetting[printer.altset]. endpoint[printer.read_endp]. bEndpointAddress; } else fprintf(stderr, "DEBUG: Uni-directional USB communication " "only!\n"); printer.write_endp = confptr->interface[printer.iface]. altsetting[printer.altset]. endpoint[printer.write_endp]. bEndpointAddress; if (printer.quirks & USB_QUIRK_NO_REATTACH) { printer.usblp_attached = 0; fprintf(stderr, "DEBUG: Printer does not like usblp " "kernel module to be re-attached after job\n"); } libusb_free_config_descriptor(confptr); return (&printer); } close_device(&printer); } } } libusb_free_config_descriptor(confptr); } } /* * If we get this far without returning, then we haven't found a printer * to print to... */ /* * Clean up .... */ if (numdevs >= 0) libusb_free_device_list(list, 1); libusb_exit(NULL); return (NULL); } /* * 'find_quirks()' - Find the quirks for the given printer, if any. * * First looks for an exact match, then looks for the vendor ID wildcard match. */ static unsigned /* O - Quirks flags */ find_quirks(int vendor_id, /* I - Vendor ID */ int product_id) /* I - Product ID */ { usb_quirk_t key, /* Search key */ *match; /* Matching quirk entry */ key.vendor_id = vendor_id; key.product_id = product_id; if ((match = cupsArrayFind(all_quirks, &key)) != NULL) return (match->quirks); key.product_id = 0; if ((match = cupsArrayFind(all_quirks, &key)) != NULL) return (match->quirks); return (USB_QUIRK_WHITELIST); } /* * 'get_device_id()' - Get the IEEE-1284 device ID for the printer. */ static int /* O - 0 on success, -1 on error */ get_device_id(usb_printer_t *printer, /* I - Printer */ char *buffer, /* I - String buffer */ size_t bufsize) /* I - Number of bytes in buffer */ { size_t length; /* Length of device ID */ if (libusb_control_transfer(printer->handle, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_ENDPOINT_IN | LIBUSB_RECIPIENT_INTERFACE, 0, printer->conf, (printer->iface << 8) | printer->altset, (unsigned char *)buffer, bufsize, 5000) < 0) { *buffer = '\0'; return (-1); } /* * Extract the length of the device ID string from the first two * bytes. The 1284 spec says the length is stored MSB first... */ length = (((unsigned)buffer[0] & 255) << 8) | ((unsigned)buffer[1] & 255); /* * Check to see if the length is larger than our buffer or less than 14 bytes * (the minimum valid device ID is "MFG:x;MDL:y;" with 2 bytes for the length). * * If the length is out-of-range, assume that the vendor incorrectly * implemented the 1284 spec and re-read the length as LSB first,.. */ if (length > bufsize || length < 14) length = (((unsigned)buffer[1] & 255) << 8) | ((unsigned)buffer[0] & 255); if (length > bufsize) length = bufsize; if (length < 14) { /* * Invalid device ID, clear it! */ *buffer = '\0'; return (-1); } length -= 2; /* * Copy the device ID text to the beginning of the buffer and * nul-terminate. */ memmove(buffer, buffer + 2, length); buffer[length] = '\0'; return (0); } /* * 'list_cb()' - List USB printers for discovery. */ static int /* O - 0 to continue, 1 to stop */ list_cb(usb_printer_t *printer, /* I - Printer */ const char *device_uri, /* I - Device URI */ const char *device_id, /* I - IEEE-1284 device ID */ const void *data) /* I - User data (not used) */ { char make_model[1024]; /* Make and model */ /* * Get the device URI and make/model strings... */ if (backendGetMakeModel(device_id, make_model, sizeof(make_model))) strlcpy(make_model, "Unknown", sizeof(make_model)); /* * Report the printer... */ cupsBackendReport("direct", device_uri, make_model, make_model, device_id, NULL); /* * Keep going... */ return (0); } /* * 'load_quirks()' - Load all quirks files in the /usr/share/cups/usb directory. */ static void load_quirks(void) { const char *datadir; /* CUPS_DATADIR environment variable */ char filename[1024], /* Filename */ line[1024]; /* Line from file */ cups_dir_t *dir; /* Directory */ cups_dentry_t *dent; /* Directory entry */ cups_file_t *fp; /* Quirks file */ usb_quirk_t *quirk; /* New quirk */ all_quirks = cupsArrayNew((cups_array_func_t)compare_quirks, NULL); if ((datadir = getenv("CUPS_DATADIR")) == NULL) datadir = CUPS_DATADIR; snprintf(filename, sizeof(filename), "%s/usb", datadir); if ((dir = cupsDirOpen(filename)) == NULL) { perror(filename); return; } fprintf(stderr, "DEBUG: Loading USB quirks from \"%s\".\n", filename); while ((dent = cupsDirRead(dir)) != NULL) { if (!S_ISREG(dent->fileinfo.st_mode)) continue; snprintf(filename, sizeof(filename), "%s/usb/%s", datadir, dent->filename); if ((fp = cupsFileOpen(filename, "r")) == NULL) { perror(filename); continue; } while (cupsFileGets(fp, line, sizeof(line))) { /* * Skip blank and comment lines... */ if (line[0] == '#' || !line[0]) continue; /* * Add a quirk... */ if ((quirk = calloc(1, sizeof(usb_quirk_t))) == NULL) { perror("DEBUG: Unable to allocate memory for quirk"); break; } if (sscanf(line, "%x%x", &quirk->vendor_id, &quirk->product_id) < 1) { fprintf(stderr, "DEBUG: Bad line: %s\n", line); free(quirk); continue; } if (strstr(line, " blacklist")) quirk->quirks |= USB_QUIRK_BLACKLIST; if (strstr(line, " delay-close")) quirk->quirks |= USB_QUIRK_DELAY_CLOSE; if (strstr(line, " no-reattach")) quirk->quirks |= USB_QUIRK_NO_REATTACH; if (strstr(line, " soft-reset")) quirk->quirks |= USB_QUIRK_SOFT_RESET; if (strstr(line, " unidir")) quirk->quirks |= USB_QUIRK_UNIDIR; if (strstr(line, " usb-init")) quirk->quirks |= USB_QUIRK_USB_INIT; if (strstr(line, " vendor-class")) quirk->quirks |= USB_QUIRK_VENDOR_CLASS; cupsArrayAdd(all_quirks, quirk); } cupsFileClose(fp); } fprintf(stderr, "DEBUG: Loaded %d quirks.\n", cupsArrayCount(all_quirks)); cupsDirClose(dir); } /* * 'make_device_uri()' - Create a device URI for a USB printer. */ static char * /* O - Device URI */ make_device_uri( usb_printer_t *printer, /* I - Printer */ const char *device_id, /* I - IEEE-1284 device ID */ char *uri, /* I - Device URI buffer */ size_t uri_size) /* I - Size of device URI buffer */ { struct libusb_device_descriptor devdesc; /* Current device descriptor */ char options[1024]; /* Device URI options */ int num_values; /* Number of 1284 parameters */ cups_option_t *values; /* 1284 parameters */ const char *mfg, /* Manufacturer */ *mdl, /* Model */ *des = NULL, /* Description */ *sern = NULL; /* Serial number */ size_t mfglen; /* Length of manufacturer string */ char tempmdl[256], /* Temporary model string */ tempmfg[256], /* Temporary manufacturer string */ tempsern[256], /* Temporary serial number string */ *tempptr; /* Pointer into temp string */ /* * Get the make, model, and serial numbers... */ num_values = _cupsGet1284Values(device_id, &values); memset(&devdesc, 0, sizeof(devdesc)); if (libusb_get_device_descriptor(printer->device, &devdesc) >= 0 && devdesc.iSerialNumber) { // Try getting the serial number from the device itself... int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iSerialNumber, (unsigned char *)tempsern, sizeof(tempsern) - 1); if (length > 0) { tempsern[length] = '\0'; sern = tempsern; fprintf(stderr, "DEBUG2: iSerialNumber=\"%s\"\n", tempsern); } else fputs("DEBUG2: iSerialNumber could not be read.\n", stderr); } else fputs("DEBUG2: iSerialNumber is not present.\n", stderr); #if 0 if (!sern) { // Fall back on serial number from IEEE-1284 device ID, which on some // printers (Issue #170) is a bogus hardcoded number. if ((sern = cupsGetOption("SERIALNUMBER", num_values, values)) == NULL) if ((sern = cupsGetOption("SERN", num_values, values)) == NULL) sern = cupsGetOption("SN", num_values, values); } #endif // 0 if ((mfg = cupsGetOption("MANUFACTURER", num_values, values)) == NULL) { if ((mfg = cupsGetOption("MFG", num_values, values)) == NULL && devdesc.iManufacturer) { int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iManufacturer, (unsigned char *)tempmfg, sizeof(tempmfg) - 1); if (length > 0) { tempmfg[length] = '\0'; mfg = tempmfg; } } } if ((mdl = cupsGetOption("MODEL", num_values, values)) == NULL) { if ((mdl = cupsGetOption("MDL", num_values, values)) == NULL && devdesc.iProduct) { int length = libusb_get_string_descriptor_ascii(printer->handle, devdesc.iProduct, (unsigned char *)tempmdl, sizeof(tempmdl) - 1); if (length > 0) { tempmdl[length] = '\0'; mdl = tempmdl; } } } /* * To maintain compatibility with the original character device backend on * Linux and *BSD, map manufacturer names... */ if (mfg) { if (!_cups_strcasecmp(mfg, "Hewlett-Packard")) mfg = "HP"; else if (!_cups_strcasecmp(mfg, "Lexmark International")) mfg = "Lexmark"; } else { /* * No manufacturer? Use the model string or description... */ if (mdl) _ppdNormalizeMakeAndModel(mdl, tempmfg, sizeof(tempmfg)); else if ((des = cupsGetOption("DESCRIPTION", num_values, values)) != NULL || (des = cupsGetOption("DES", num_values, values)) != NULL) _ppdNormalizeMakeAndModel(des, tempmfg, sizeof(tempmfg)); else strlcpy(tempmfg, "Unknown", sizeof(tempmfg)); if ((tempptr = strchr(tempmfg, ' ')) != NULL) *tempptr = '\0'; mfg = tempmfg; } if (!mdl) { /* * No model? Use description... */ if (des) mdl = des; /* We remove the manufacturer name below */ else if (!strncasecmp(mfg, "Unknown", 7)) mdl = "Printer"; else mdl = "Unknown Model"; } mfglen = strlen(mfg); if (!strncasecmp(mdl, mfg, mfglen) && _cups_isspace(mdl[mfglen])) { mdl += mfglen + 1; while (_cups_isspace(*mdl)) mdl ++; } /* * Generate the device URI from the manufacturer, model, serial number, * and interface number... */ if (sern) { if (printer->iface > 0) snprintf(options, sizeof(options), "?serial=%s&interface=%d", sern, printer->iface); else snprintf(options, sizeof(options), "?serial=%s", sern); } else if (printer->iface > 0) snprintf(options, sizeof(options), "?interface=%d", printer->iface); else options[0] = '\0'; httpAssembleURIf(HTTP_URI_CODING_ALL, uri, uri_size, "usb", NULL, mfg, 0, "/%s%s", mdl, options); cupsFreeOptions(num_values, values); return (uri); } /* * 'open_device()' - Open a connection to the USB printer. */ static int /* O - 0 on success, -1 on error */ open_device(usb_printer_t *printer, /* I - Printer */ int verbose) /* I - Update connecting-to-device state? */ { struct libusb_device_descriptor devdesc; /* Current device descriptor */ struct libusb_config_descriptor *confptr = NULL; /* Pointer to current configuration */ int number1 = -1, /* Configuration/interface/altset */ number2 = -1, /* numbers */ errcode = 0; unsigned char current; /* Current configuration */ /* * Return immediately if we are already connected... */ if (printer->handle) return (0); /* * Try opening the printer... */ if ((errcode = libusb_open(printer->device, &printer->handle)) < 0) { fprintf(stderr, "DEBUG: Failed to open device, code: %d\n", errcode); return (-1); } printer->usblp_attached = 0; printer->reset_after_job = 0; if (verbose) fputs("STATE: +connecting-to-device\n", stderr); if ((errcode = libusb_get_device_descriptor(printer->device, &devdesc)) < 0) { fprintf(stderr, "DEBUG: Failed to get device descriptor, code: %d\n", errcode); goto error; } /* * Get the "usblp" kernel module out of the way. This backend only * works without the module attached. */ errcode = libusb_kernel_driver_active(printer->handle, printer->iface); if (errcode == 0) printer->usblp_attached = 0; else if (errcode == 1) { printer->usblp_attached = 1; if ((errcode = libusb_detach_kernel_driver(printer->handle, printer->iface)) < 0) { fprintf(stderr, "DEBUG: Failed to detach \"usblp\" module from %04x:%04x\n", devdesc.idVendor, devdesc.idProduct); goto error; } } else { printer->usblp_attached = 0; if (errcode != LIBUSB_ERROR_NOT_SUPPORTED) { fprintf(stderr, "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" " "kernel module attached\n", devdesc.idVendor, devdesc.idProduct); goto error; } } /* * Set the desired configuration, but only if it needs changing. Some * printers (e.g., Samsung) don't like libusb_set_configuration. It will * succeed, but the following print job is sometimes silently lost by the * printer. */ if (libusb_control_transfer(printer->handle, LIBUSB_REQUEST_TYPE_STANDARD | LIBUSB_ENDPOINT_IN | LIBUSB_RECIPIENT_DEVICE, 8, /* GET_CONFIGURATION */ 0, 0, ¤t, 1, 5000) < 0) current = 0; /* Assume not configured */ printer->origconf = current; if ((errcode = libusb_get_config_descriptor (printer->device, printer->conf, &confptr)) < 0) { fprintf(stderr, "DEBUG: Failed to get config descriptor for %04x:%04x\n", devdesc.idVendor, devdesc.idProduct); goto error; } number1 = confptr->bConfigurationValue; if (number1 != current) { fprintf(stderr, "DEBUG: Switching USB device configuration: %d -> %d\n", current, number1); if ((errcode = libusb_set_configuration(printer->handle, number1)) < 0) { /* * If the set fails, chances are that the printer only supports a * single configuration. Technically these printers don't conform to * the USB printer specification, but otherwise they'll work... */ if (errcode != LIBUSB_ERROR_BUSY) fprintf(stderr, "DEBUG: Failed to set configuration %d for %04x:%04x\n", number1, devdesc.idVendor, devdesc.idProduct); } } /* * Claim interfaces as needed... */ number1 = confptr->interface[printer->iface]. altsetting[printer->altset].bInterfaceNumber; while ((errcode = libusb_claim_interface(printer->handle, number1)) < 0) { if (errcode != LIBUSB_ERROR_BUSY) { fprintf(stderr, "DEBUG: Failed to claim interface %d for %04x:%04x: %s\n", number1, devdesc.idVendor, devdesc.idProduct, strerror(errno)); goto error; } else if ((errcode = libusb_detach_kernel_driver(printer->handle, printer->iface)) < 0) { fprintf(stderr, "DEBUG: Failed to detach \"usblp\" module from %04x:%04x\n", devdesc.idVendor, devdesc.idProduct); goto error; } sleep (1); } /* * Set alternate setting, but only if there is more than one option. Some * printers (e.g., Samsung) don't like usb_set_altinterface. */ if (confptr->interface[printer->iface].num_altsetting > 1) { number1 = confptr->interface[printer->iface]. altsetting[printer->altset].bInterfaceNumber; number2 = confptr->interface[printer->iface]. altsetting[printer->altset].bAlternateSetting; while ((errcode = libusb_set_interface_alt_setting(printer->handle, number1, number2)) < 0) { if (errcode != LIBUSB_ERROR_BUSY) { fprintf(stderr, "DEBUG: Failed to set alternate interface %d for %04x:%04x: " "%s\n", number2, devdesc.idVendor, devdesc.idProduct, strerror(errno)); goto error; } } } libusb_free_config_descriptor(confptr); if (verbose) fputs("STATE: -connecting-to-device\n", stderr); return (0); /* * If we get here, there was a hard error... */ error: if (verbose) fputs("STATE: -connecting-to-device\n", stderr); libusb_close(printer->handle); printer->handle = NULL; return (-1); } /* * 'print_cb()' - Find a USB printer for printing. */ static int /* O - 0 to continue, 1 to stop (found) */ print_cb(usb_printer_t *printer, /* I - Printer */ const char *device_uri, /* I - Device URI */ const char *device_id, /* I - IEEE-1284 device ID */ const void *data) /* I - User data (make, model, S/N) */ { char requested_uri[1024], /* Requested URI */ *requested_ptr, /* Pointer into requested URI */ detected_uri[1024], /* Detected URI */ *detected_ptr; /* Pointer into detected URI */ /* * If we have an exact match, stop now... */ if (!strcmp((char *)data, device_uri)) return (1); /* * Work on copies of the URIs... */ strlcpy(requested_uri, (char *)data, sizeof(requested_uri)); strlcpy(detected_uri, device_uri, sizeof(detected_uri)); /* * libusb-discovered URIs can have an "interface" specification and this * never happens for usblp-discovered URIs, so remove the "interface" * specification from the URI which we are checking currently. This way a * queue for a usblp-discovered printer can now be accessed via libusb. * * Similarly, strip "?serial=NNN...NNN" as needed. */ if ((requested_ptr = strstr(requested_uri, "?interface=")) == NULL) requested_ptr = strstr(requested_uri, "&interface="); if ((detected_ptr = strstr(detected_uri, "?interface=")) == NULL) detected_ptr = strstr(detected_uri, "&interface="); if (!requested_ptr && detected_ptr) { /* * Strip "[?&]interface=nnn" from the detected printer. */ *detected_ptr = '\0'; } else if (requested_ptr && !detected_ptr) { /* * Strip "[?&]interface=nnn" from the requested printer. */ *requested_ptr = '\0'; } if ((requested_ptr = strstr(requested_uri, "?serial=?")) != NULL) { /* * Strip "?serial=?" from the requested printer. This is a special * case, as "?serial=?" means no serial number and not the serial * number '?'. This is not covered by the checks below... */ *requested_ptr = '\0'; } if ((requested_ptr = strstr(requested_uri, "?serial=")) == NULL && (detected_ptr = strstr(detected_uri, "?serial=")) != NULL) { /* * Strip "?serial=nnn" from the detected printer. */ *detected_ptr = '\0'; } else if (requested_ptr && !detected_ptr) { /* * Strip "?serial=nnn" from the requested printer. */ *requested_ptr = '\0'; } return (!strcmp(requested_uri, detected_uri)); } /* * 'read_thread()' - Thread to read the backchannel data on. */ static void *read_thread(void *reference) { unsigned char readbuffer[512]; int rbytes; int readstatus; (void)reference; do { /* * Try reading from the OUT (to host) endpoint... */ rbytes = sizeof(readbuffer); readstatus = libusb_bulk_transfer(g.printer->handle, g.printer->read_endp, readbuffer, rbytes, &rbytes, 60000); if (readstatus == LIBUSB_SUCCESS && rbytes > 0) { fprintf(stderr, "DEBUG: Read %d bytes of back-channel data...\n", (int)rbytes); cupsBackChannelWrite((const char *)readbuffer, (size_t)rbytes, 1.0); } else if (readstatus == LIBUSB_ERROR_TIMEOUT) fputs("DEBUG: Got USB transaction timeout during read.\n", stderr); else if (readstatus == LIBUSB_ERROR_PIPE) fputs("DEBUG: Got USB pipe stalled during read.\n", stderr); else if (readstatus == LIBUSB_ERROR_INTERRUPTED) fputs("DEBUG: Got USB return aborted during read.\n", stderr); /* * Make sure this loop executes no more than once every 250 milliseconds... */ if ((readstatus != LIBUSB_SUCCESS || rbytes == 0) && (g.wait_eof || !g.read_thread_stop)) usleep(250000); } while (g.wait_eof || !g.read_thread_stop); /* * Let the main thread know that we have completed the read thread... */ pthread_mutex_lock(&g.read_thread_mutex); g.read_thread_done = 1; pthread_cond_signal(&g.read_thread_cond); pthread_mutex_unlock(&g.read_thread_mutex); return (NULL); } /* * 'sidechannel_thread()' - Handle side-channel requests. */ static void* sidechannel_thread(void *reference) { cups_sc_command_t command; /* Request command */ cups_sc_status_t status; /* Request/response status */ char data[2048]; /* Request/response data */ int datalen; /* Request/response data size */ (void)reference; do { datalen = sizeof(data); if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) { if (status == CUPS_SC_STATUS_TIMEOUT) continue; else break; } switch (command) { case CUPS_SC_CMD_SOFT_RESET: /* Do a soft reset */ fputs("DEBUG: CUPS_SC_CMD_SOFT_RESET received from driver...\n", stderr); soft_reset(); cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, NULL, 0, 1.0); fputs("DEBUG: Returning status CUPS_STATUS_OK with no bytes...\n", stderr); break; case CUPS_SC_CMD_DRAIN_OUTPUT: /* Drain all pending output */ fputs("DEBUG: CUPS_SC_CMD_DRAIN_OUTPUT received from driver...\n", stderr); g.drain_output = 1; break; case CUPS_SC_CMD_GET_BIDI: /* Is the connection bidirectional? */ fputs("DEBUG: CUPS_SC_CMD_GET_BIDI received from driver...\n", stderr); data[0] = (g.printer->protocol >= 2 ? 1 : 0); cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, 1, 1.0); fprintf(stderr, "DEBUG: Returned CUPS_SC_STATUS_OK with 1 byte (%02X)...\n", data[0]); break; case CUPS_SC_CMD_GET_DEVICE_ID: /* Return IEEE-1284 device ID */ fputs("DEBUG: CUPS_SC_CMD_GET_DEVICE_ID received from driver...\n", stderr); datalen = sizeof(data); if (get_device_id(g.printer, data, sizeof(data))) { status = CUPS_SC_STATUS_IO_ERROR; datalen = 0; } else { status = CUPS_SC_STATUS_OK; datalen = strlen(data); } cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, datalen, 1.0); if (datalen < sizeof(data)) data[datalen] = '\0'; else data[sizeof(data) - 1] = '\0'; fprintf(stderr, "DEBUG: Returning CUPS_SC_STATUS_OK with %d bytes (%s)...\n", datalen, data); break; case CUPS_SC_CMD_GET_STATE: /* Return device state */ fputs("DEBUG: CUPS_SC_CMD_GET_STATE received from driver...\n", stderr); data[0] = CUPS_SC_STATE_ONLINE; cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, 1, 1.0); fprintf(stderr, "DEBUG: Returned CUPS_SC_STATUS_OK with 1 byte (%02X)...\n", data[0]); break; case CUPS_SC_CMD_GET_CONNECTED: /* Return whether device is connected */ fputs("DEBUG: CUPS_SC_CMD_GET_CONNECTED received from driver...\n", stderr); data[0] = (g.printer->handle ? 1 : 0); cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, 1, 1.0); fprintf(stderr, "DEBUG: Returned CUPS_SC_STATUS_OK with 1 byte (%02X)...\n", data[0]); break; default: fprintf(stderr, "DEBUG: Unknown side-channel command (%d) received " "from driver...\n", command); cupsSideChannelWrite(command, CUPS_SC_STATUS_NOT_IMPLEMENTED, NULL, 0, 1.0); fputs("DEBUG: Returned CUPS_SC_STATUS_NOT_IMPLEMENTED with no bytes...\n", stderr); break; } } while (!g.sidechannel_thread_stop); pthread_mutex_lock(&g.sidechannel_thread_mutex); g.sidechannel_thread_done = 1; pthread_cond_signal(&g.sidechannel_thread_cond); pthread_mutex_unlock(&g.sidechannel_thread_mutex); return (NULL); } /* * 'soft_reset()' - Send a soft reset to the device. */ static void soft_reset(void) { fd_set input_set; /* Input set for select() */ struct timeval tv; /* Time value */ char buffer[2048]; /* Buffer */ struct timespec cond_timeout; /* pthread condition timeout */ /* * Send an abort once a second until the I/O lock is released by the main * thread... */ pthread_mutex_lock(&g.readwrite_lock_mutex); while (g.readwrite_lock) { gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + 1; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (g.readwrite_lock) { if (pthread_cond_timedwait(&g.readwrite_lock_cond, &g.readwrite_lock_mutex, &cond_timeout) != 0) break; } } g.readwrite_lock = 1; pthread_mutex_unlock(&g.readwrite_lock_mutex); /* * Flush bytes waiting on print_fd... */ g.print_bytes = 0; FD_ZERO(&input_set); FD_SET(g.print_fd, &input_set); tv.tv_sec = 0; tv.tv_usec = 0; while (select(g.print_fd+1, &input_set, NULL, NULL, &tv) > 0) if (read(g.print_fd, buffer, sizeof(buffer)) <= 0) break; /* * Send the reset... */ soft_reset_printer(g.printer); /* * Release the I/O lock... */ pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); } /* * 'soft_reset_printer()' - Do the soft reset request specific to printers * * This soft reset is specific to the printer device class and is much less * invasive than the general USB reset libusb_reset_device(). Especially it * does never happen that the USB addressing and configuration changes. What * is actually done is that all buffers get flushed and the bulk IN and OUT * pipes get reset to their default states. This clears all stall conditions. * See http://cholla.mmto.org/computers/linux/usb/usbprint11.pdf */ static int /* O - 0 on success, < 0 on error */ soft_reset_printer( usb_printer_t *printer) /* I - Printer */ { struct libusb_config_descriptor *confptr = NULL; /* Pointer to current configuration */ int interface, /* Interface to reset */ errcode; /* Error code */ if (libusb_get_config_descriptor(printer->device, printer->conf, &confptr) < 0) interface = printer->iface; else interface = confptr->interface[printer->iface]. altsetting[printer->altset].bInterfaceNumber; libusb_free_config_descriptor(confptr); if ((errcode = libusb_control_transfer(printer->handle, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_ENDPOINT_OUT | LIBUSB_RECIPIENT_OTHER, 2, 0, interface, NULL, 0, 5000)) < 0) errcode = libusb_control_transfer(printer->handle, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_ENDPOINT_OUT | LIBUSB_RECIPIENT_INTERFACE, 2, 0, interface, NULL, 0, 5000); return (errcode); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/usb-darwin.c���������������������������������������������������������������������0000644�0001750�0001750�00000214416�14502571342�016177� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * USB backend for macOS. * * Copyright © 2005-2021 Apple Inc. All rights reserved. * * IMPORTANT: This Apple software is supplied to you by Apple Computer, * Inc. ("Apple") in consideration of your agreement to the following * terms, and your use, installation, modification or redistribution of * this Apple software constitutes acceptance of these terms. If you do * not agree with these terms, please do not use, install, modify or * redistribute this Apple software. * * In consideration of your agreement to abide by the following terms, and * subject to these terms, Apple grants you a personal, non-exclusive * license, under Apple's copyrights in this original Apple software (the * "Apple Software"), to use, reproduce, modify and redistribute the Apple * Software, with or without modifications, in source and/or binary forms; * provided that if you redistribute the Apple Software in its entirety and * without modifications, you must retain this notice and the following * text and disclaimers in all such redistributions of the Apple Software. * Neither the name, trademarks, service marks or logos of Apple Computer, * Inc. may be used to endorse or promote products derived from the Apple * Software without specific prior written permission from Apple. Except * as expressly stated in this notice, no other rights or licenses, express * or implied, are granted by Apple herein, including but not limited to * any patent rights that may be infringed by your derivative works or by * other works in which the Apple Software may be incorporated. * * The Apple Software is provided by Apple on an "AS IS" basis. APPLE * MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION * THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND * OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. * * IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, * MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED * AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), * STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ /* * Include necessary headers. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <signal.h> #include <fcntl.h> #include <termios.h> #include <unistd.h> #include <sys/stat.h> #include <sys/sysctl.h> #include <libgen.h> #include <mach/mach.h> #include <mach/mach_error.h> #include <mach/mach_time.h> #include <cups/debug-private.h> #include <cups/file-private.h> #include <cups/sidechannel.h> #include <cups/language-private.h> #include <cups/ppd-private.h> #include "backend-private.h" #include <CoreFoundation/CoreFoundation.h> #include <IOKit/usb/IOUSBLib.h> #include <IOKit/IOCFPlugIn.h> #include <libproc.h> #include <asl.h> #include <spawn.h> #include <pthread.h> /* * Include necessary headers. */ extern char **environ; /* * DEBUG_WRITES, if defined, causes the backend to write data to the printer in * 512 byte increments, up to 8192 bytes, to make debugging with a USB bus * analyzer easier. */ #define DEBUG_WRITES 0 /* * WAIT_EOF_DELAY is number of seconds we'll wait for responses from * the printer after we've finished sending all the data */ #define WAIT_EOF_DELAY 7 #define WAIT_SIDE_DELAY 3 #define DEFAULT_TIMEOUT 5000L #define USB_INTERFACE_KIND CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID245) #define kUSBLanguageEnglish 0x409 #define PRINTER_POLLING_INTERVAL 5 /* seconds */ #define INITIAL_LOG_INTERVAL PRINTER_POLLING_INTERVAL #define SUBSEQUENT_LOG_INTERVAL 3 * INITIAL_LOG_INTERVAL #define kUSBPrinterClassTypeID CFUUIDGetConstantUUIDWithBytes(NULL, 0x06, 0x04, 0x7D, 0x16, 0x53, 0xA2, 0x11, 0xD6, 0x92, 0x06, 0x00, 0x30, 0x65, 0x52, 0x45, 0x92) #define kUSBPrinterClassInterfaceID CFUUIDGetConstantUUIDWithBytes(NULL, 0x03, 0x34, 0x6D, 0x74, 0x53, 0xA3, 0x11, 0xD6, 0x9E, 0xA1, 0x76, 0x30, 0x65, 0x52, 0x45, 0x92) #define kUSBClassDriverProperty CFSTR("USB Printing Class") #define kUSBGenericTOPrinterClassDriver CFSTR("/System/Library/Printers/Libraries/USBGenericPrintingClass.plugin") #define kUSBPrinterClassDeviceNotOpen -9664 /*kPMInvalidIOMContext*/ #define CRSetCrashLogMessage(m) _crc_make_setter(message, m) #define _crc_make_setter(attr, arg) (gCRAnnotations.attr = (uint64_t)(unsigned long)(arg)) #define CRASH_REPORTER_CLIENT_HIDDEN __attribute__((visibility("hidden"))) #define CRASHREPORTER_ANNOTATIONS_VERSION 4 #define CRASHREPORTER_ANNOTATIONS_SECTION "__crash_info" struct crashreporter_annotations_t { uint64_t version; // unsigned long uint64_t message; // char * uint64_t signature_string; // char * uint64_t backtrace; // char * uint64_t message2; // char * uint64_t thread; // uint64_t uint64_t dialog_mode; // unsigned int }; CRASH_REPORTER_CLIENT_HIDDEN struct crashreporter_annotations_t gCRAnnotations __attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION))) = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0 }; /* * Section 5.3 USB Printing Class spec */ #define kUSBPrintingSubclass 1 #define kUSBPrintingProtocolNoOpen 0 #define kUSBPrintingProtocolUnidirectional 1 #define kUSBPrintingProtocolBidirectional 2 #define kUSBPrintingProtocolIPP 4 typedef IOUSBInterfaceInterface245 **printer_interface_t; typedef struct iodevice_request_s /**** Device request ****/ { UInt8 requestType; UInt8 request; UInt16 value; UInt16 index; UInt16 length; void *buffer; } iodevice_request_t; typedef union /**** Centronics status byte ****/ { char b; struct { unsigned reserved0:2; unsigned paperError:1; unsigned select:1; unsigned notError:1; unsigned reserved1:3; } status; } centronics_status_t; typedef struct classdriver_s /**** g.classdriver context ****/ { IUNKNOWN_C_GUTS; CFPlugInRef plugin; /* release plugin */ IUnknownVTbl **factory; /* Factory */ void *vendorReference; /* vendor class specific usage */ UInt32 location; /* unique location in bus topology */ UInt8 interfaceNumber; /* Interface number */ UInt16 vendorID; /* Vendor id */ UInt16 productID; /* Product id */ printer_interface_t interface; /* identify the device to IOKit */ UInt8 outpipe; /* mandatory bulkOut pipe */ UInt8 inpipe; /* optional bulkIn pipe */ /* general class requests */ kern_return_t (*DeviceRequest)(struct classdriver_s **printer, iodevice_request_t *iorequest, UInt16 timeout); kern_return_t (*GetString)(struct classdriver_s **printer, UInt8 whichString, UInt16 language, UInt16 timeout, CFStringRef *result); /* standard printer class requests */ kern_return_t (*SoftReset)(struct classdriver_s **printer, UInt16 timeout); kern_return_t (*GetCentronicsStatus)(struct classdriver_s **printer, centronics_status_t *result, UInt16 timeout); kern_return_t (*GetDeviceID)(struct classdriver_s **printer, CFStringRef *devid, UInt16 timeout); /* standard bulk device requests */ kern_return_t (*ReadPipe)(struct classdriver_s **printer, UInt8 *buffer, UInt32 *count); kern_return_t (*WritePipe)(struct classdriver_s **printer, UInt8 *buffer, UInt32 *count, Boolean eoj); /* interface requests */ kern_return_t (*Open)(struct classdriver_s **printer, UInt32 location, UInt8 protocol); kern_return_t (*Abort)(struct classdriver_s **printer); kern_return_t (*Close)(struct classdriver_s **printer); /* initialize and terminate */ kern_return_t (*Initialize)(struct classdriver_s **printer, struct classdriver_s **baseclass); kern_return_t (*Terminate)(struct classdriver_s **printer); } classdriver_t; typedef Boolean (*iterator_callback_t)(io_service_t obj, printer_interface_t printerIntf, void *refcon); typedef struct iterator_reference_s /**** Iterator reference data */ { iterator_callback_t callback; void *userdata; Boolean keepRunning; } iterator_reference_t; typedef struct globals_s { io_service_t printer_obj; classdriver_t **classdriver; pthread_mutex_t read_thread_mutex; pthread_cond_t read_thread_cond; int read_thread_stop; int read_thread_done; pthread_mutex_t readwrite_lock_mutex; pthread_cond_t readwrite_lock_cond; int readwrite_lock; CFStringRef make; CFStringRef model; CFStringRef serial; UInt32 location; UInt8 interfaceNum; UInt8 alternateSetting; UInt8 interfaceProtocol; CFRunLoopTimerRef status_timer; int print_fd; /* File descriptor to print */ ssize_t print_bytes; /* Print bytes read */ #if DEBUG_WRITES ssize_t debug_bytes; /* Current bytes to read */ #endif /* DEBUG_WRITES */ Boolean use_generic_class_driver; Boolean wait_eof; int drain_output; /* Drain all pending output */ int bidi_flag; /* 0=unidirectional, 1=bidirectional */ pthread_mutex_t sidechannel_thread_mutex; pthread_cond_t sidechannel_thread_cond; int sidechannel_thread_stop; int sidechannel_thread_done; } globals_t; /* * Globals... */ globals_t g = { 0 }; /* Globals */ int Iterating = 0; /* Are we iterating the bus? */ /* * Local functions... */ static Boolean list_device_cb(io_service_t obj, printer_interface_t printerIntf, void *refcon); static Boolean find_device_cb(io_service_t obj, printer_interface_t printerIntf, void *refcon); static CFStringRef cfstr_create_trim(const char *cstr); static CFStringRef copy_value_for_key(CFStringRef deviceID, CFStringRef *keys); static kern_return_t load_classdriver(CFStringRef driverPath, printer_interface_t interface, classdriver_t ***printerDriver); static kern_return_t load_printerdriver(CFStringRef *driverBundlePath); static kern_return_t registry_close(void); static kern_return_t registry_open(CFStringRef *driverBundlePath); static kern_return_t unload_classdriver(classdriver_t ***classdriver); static void *read_thread(void *reference); static void *sidechannel_thread(void *reference); static void device_added(void *userdata, io_iterator_t iterator); static void get_device_id(cups_sc_status_t *status, char *data, int *datalen); static void iterate_printers(iterator_callback_t callBack, void *userdata); static void parse_options(char *options, char *serial, int serial_size, UInt32 *location, Boolean *wait_eof); static void setup_cfLanguage(void); static void soft_reset(void); static void status_timer_cb(CFRunLoopTimerRef timer, void *info); #define IS_64BIT 1 #define IS_NOT_64BIT 0 #if defined(__arm64e__) static pid_t child_pid; /* Child PID */ static void run_legacy_backend(int argc, char *argv[], int fd) _CUPS_NORETURN; /* Starts child backend process running as a x86_64 executable */ static void sigterm_handler(int sig); /* SIGTERM handler */ #endif /* __arm64e__ */ static void sigquit_handler(int sig, siginfo_t *si, void *unused) _CUPS_NORETURN; #ifdef PARSE_PS_ERRORS static const char *next_line (const char *buffer); static void parse_pserror (char *sockBuffer, int len); #endif /* PARSE_PS_ERRORS */ static printer_interface_t usb_printer_interface_interface(io_service_t usbClass); static CFStringRef copy_printer_interface_deviceid(printer_interface_t printer, UInt8 alternateSetting); static CFStringRef copy_printer_interface_indexed_description(printer_interface_t printer, UInt8 index, UInt16 language); static CFStringRef deviceIDCopyManufacturer(CFStringRef deviceID); static CFStringRef deviceIDCopyModel(CFStringRef deviceID); static CFStringRef deviceIDCopySerialNumber(CFStringRef deviceID); #pragma mark - /* * 'list_devices()' - List all USB devices. */ void list_devices() { iterate_printers(list_device_cb, NULL); } /* * 'print_device()' - Print a file to a USB device. */ int /* O - Exit status */ print_device(const char *uri, /* I - Device URI */ const char *hostname, /* I - Hostname/manufacturer */ const char *resource, /* I - Resource/modelname */ char *options, /* I - Device options/serial number */ int print_fd, /* I - File descriptor to print */ int copies, /* I - Copies to print */ int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { char serial[1024]; /* Serial number buffer */ OSStatus status; /* Function results */ IOReturn iostatus; /* Current IO status */ pthread_t read_thread_id, /* Read thread */ sidechannel_thread_id;/* Side-channel thread */ int have_sidechannel = 0; /* Was the side-channel thread started? */ struct stat sidechannel_info; /* Side-channel file descriptor info */ char print_buffer[8192], /* Print data buffer */ *print_ptr; /* Pointer into print data buffer */ UInt32 location; /* Unique location in bus topology */ fd_set input_set; /* Input set for select() */ CFStringRef driverBundlePath; /* Class driver path */ int countdown, /* Logging interval */ nfds; /* Number of file descriptors */ ssize_t total_bytes; /* Total bytes written */ UInt32 bytes; /* Bytes written */ struct timeval *timeout, /* Timeout pointer */ tv; /* Time value */ struct timespec cond_timeout; /* pthread condition timeout */ struct sigaction action; /* Actions for POSIX signals */ (void)uri; (void)argc; (void)argv; /* * Catch SIGQUIT to determine who is sending it... */ memset(&action, 0, sizeof(action)); action.sa_sigaction = sigquit_handler; action.sa_flags = SA_SIGINFO; sigaction(SIGQUIT, &action, NULL); /* * See if the side-channel descriptor is valid... */ have_sidechannel = !fstat(CUPS_SC_FD, &sidechannel_info) && S_ISSOCK(sidechannel_info.st_mode); /* * Localize using CoreFoundation... */ setup_cfLanguage(); parse_options(options, serial, sizeof(serial), &location, &g.wait_eof); if (resource[0] == '/') resource++; g.print_fd = print_fd; g.make = cfstr_create_trim(hostname); g.model = cfstr_create_trim(resource); g.serial = cfstr_create_trim(serial); g.location = location; if (!g.make || !g.model) { fprintf(stderr, "DEBUG: Fatal USB error.\n"); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); if (!g.make) fputs("DEBUG: USB make string is NULL\n", stderr); if (!g.model) fputs("DEBUG: USB model string is NULL\n", stderr); return (CUPS_BACKEND_STOP); } fputs("STATE: +connecting-to-device\n", stderr); countdown = INITIAL_LOG_INTERVAL; do { if (g.printer_obj) { IOObjectRelease(g.printer_obj); unload_classdriver(&g.classdriver); g.printer_obj = 0x0; g.classdriver = 0x0; } fprintf(stderr, "DEBUG: Looking for '%s %s'\n", hostname, resource); do { iterate_printers(find_device_cb, NULL); if (g.printer_obj != 0x0) break; _cupsLangPrintFilter(stderr, "INFO", _("Waiting for printer to become available.")); sleep(5); } while (true); fputs("DEBUG: Opening connection\n", stderr); driverBundlePath = NULL; status = registry_open(&driverBundlePath); #if defined(__arm64e__) /* * If we were unable to load the class drivers for this printer it's * probably because they're x86_64 (or older). In this case try to run this * backend as x86_64 so we can use them... */ if (status == -2) { run_legacy_backend(argc, argv, print_fd); /* Never returns here */ } #endif /* __arm64e__ */ if (status == -2) { /* * If we still were unable to load the class drivers for this printer log * the error and stop the queue... */ if (driverBundlePath == NULL || !CFStringGetCString(driverBundlePath, print_buffer, sizeof(print_buffer), kCFStringEncodingUTF8)) strlcpy(print_buffer, "USB class driver", sizeof(print_buffer)); fputs("STATE: +apple-missing-usbclassdriver-error\n", stderr); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); fprintf(stderr, "DEBUG: Could not load %s\n", print_buffer); if (driverBundlePath) CFRelease(driverBundlePath); return (CUPS_BACKEND_STOP); } if (driverBundlePath) CFRelease(driverBundlePath); if (status != noErr) { sleep(PRINTER_POLLING_INTERVAL); countdown -= PRINTER_POLLING_INTERVAL; if (countdown <= 0) { _cupsLangPrintFilter(stderr, "INFO", _("Waiting for printer to become available.")); fprintf(stderr, "DEBUG: USB printer status: 0x%08x\n", (int)status); countdown = SUBSEQUENT_LOG_INTERVAL; /* subsequent log entries, every 15 seconds */ } } } while (status != noErr); fputs("STATE: -connecting-to-device\n", stderr); /* * 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... Only ignore SIGTERM if we are printing data from * stdin (otherwise you can't cancel raw jobs...) */ if (!print_fd) { memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = SIG_IGN; sigaction(SIGTERM, &action, NULL); } /* * Start the side channel thread if the descriptor is valid... */ pthread_mutex_init(&g.readwrite_lock_mutex, NULL); pthread_cond_init(&g.readwrite_lock_cond, NULL); g.readwrite_lock = 1; if (have_sidechannel) { g.sidechannel_thread_stop = 0; g.sidechannel_thread_done = 0; pthread_cond_init(&g.sidechannel_thread_cond, NULL); pthread_mutex_init(&g.sidechannel_thread_mutex, NULL); if (pthread_create(&sidechannel_thread_id, NULL, sidechannel_thread, NULL)) { fprintf(stderr, "DEBUG: Fatal USB error.\n"); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); fputs("DEBUG: Couldn't create side-channel thread\n", stderr); registry_close(); return (CUPS_BACKEND_STOP); } } /* * Get the read thread going... */ g.read_thread_stop = 0; g.read_thread_done = 0; pthread_cond_init(&g.read_thread_cond, NULL); pthread_mutex_init(&g.read_thread_mutex, NULL); if (pthread_create(&read_thread_id, NULL, read_thread, NULL)) { fprintf(stderr, "DEBUG: Fatal USB error.\n"); _cupsLangPrintFilter(stderr, "ERROR", _("There was an unrecoverable USB error.")); fputs("DEBUG: Couldn't create read thread\n", stderr); registry_close(); return (CUPS_BACKEND_STOP); } /* * The main thread sends the print file... */ g.drain_output = 0; g.print_bytes = 0; total_bytes = 0; print_ptr = print_buffer; while (status == noErr && copies-- > 0) { _cupsLangPrintFilter(stderr, "INFO", _("Sending data to printer.")); if (print_fd != STDIN_FILENO) { fputs("PAGE: 1 1\n", stderr); lseek(print_fd, 0, SEEK_SET); } while (status == noErr) { FD_ZERO(&input_set); if (!g.print_bytes) FD_SET(print_fd, &input_set); /* * Calculate select timeout... * If we have data waiting to send timeout is 100ms. * else if we're draining print_fd timeout is 0. * else we're waiting forever... */ if (g.print_bytes) { tv.tv_sec = 0; tv.tv_usec = 100000; /* 100ms */ timeout = &tv; } else if (g.drain_output) { tv.tv_sec = 0; tv.tv_usec = 0; timeout = &tv; } else timeout = NULL; /* * I/O is unlocked around select... */ pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); nfds = select(print_fd + 1, &input_set, NULL, NULL, timeout); /* * Reacquire the lock... */ pthread_mutex_lock(&g.readwrite_lock_mutex); while (g.readwrite_lock) pthread_cond_wait(&g.readwrite_lock_cond, &g.readwrite_lock_mutex); g.readwrite_lock = 1; pthread_mutex_unlock(&g.readwrite_lock_mutex); if (nfds < 0) { if (errno == EINTR && total_bytes == 0) { fputs("DEBUG: Received an interrupt before any bytes were " "written, aborting\n", stderr); registry_close(); return (CUPS_BACKEND_OK); } else if (errno != EAGAIN && errno != EINTR) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); perror("DEBUG: select"); registry_close(); return (CUPS_BACKEND_FAILED); } } /* * If drain output has finished send a response... */ if (g.drain_output && !nfds && !g.print_bytes) { /* Send a response... */ cupsSideChannelWrite(CUPS_SC_CMD_DRAIN_OUTPUT, CUPS_SC_STATUS_OK, NULL, 0, 1.0); g.drain_output = 0; } /* * Check if we have print data ready... */ if (FD_ISSET(print_fd, &input_set)) { #if DEBUG_WRITES g.debug_bytes += 512; if (g.debug_bytes > sizeof(print_buffer)) g.debug_bytes = 512; g.print_bytes = read(print_fd, print_buffer, g.debug_bytes); #else g.print_bytes = read(print_fd, print_buffer, sizeof(print_buffer)); #endif /* DEBUG_WRITES */ if (g.print_bytes < 0) { /* * Read error - bail if we don't see EAGAIN or EINTR... */ if (errno != EAGAIN && errno != EINTR) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); perror("DEBUG: read"); registry_close(); return (CUPS_BACKEND_FAILED); } g.print_bytes = 0; } else if (g.print_bytes == 0) { /* * End of file, break out of the loop... */ break; } print_ptr = print_buffer; fprintf(stderr, "DEBUG: Read %d bytes of print data...\n", (int)g.print_bytes); } if (g.print_bytes) { bytes = (UInt32)g.print_bytes; iostatus = (*g.classdriver)->WritePipe(g.classdriver, (UInt8*)print_ptr, &bytes, 0); /* * Ignore timeout errors, but retain the number of bytes written to * avoid sending duplicate data... */ if (iostatus == kIOUSBTransactionTimeout) { fputs("DEBUG: Got USB transaction timeout during write\n", stderr); iostatus = 0; } /* * If we've stalled, retry the write... */ else if (iostatus == kIOUSBPipeStalled) { fputs("DEBUG: Got USB pipe stalled during write\n", stderr); bytes = (UInt32)g.print_bytes; iostatus = (*g.classdriver)->WritePipe(g.classdriver, (UInt8*)print_ptr, &bytes, 0); } /* * Retry a write after an aborted write since we probably just got * SIGTERM... */ else if (iostatus == kIOReturnAborted) { fputs("DEBUG: Got USB return aborted during write\n", stderr); IOReturn err = (*g.classdriver)->Abort(g.classdriver); fprintf(stderr, "DEBUG: USB class driver Abort returned %x\n", err); #if DEBUG_WRITES sleep(5); #endif /* DEBUG_WRITES */ bytes = (UInt32)g.print_bytes; iostatus = (*g.classdriver)->WritePipe(g.classdriver, (UInt8*)print_ptr, &bytes, 0); } if (iostatus) { /* * Write error - bail if we don't see an error we can retry... */ _cupsLangPrintFilter(stderr, "ERROR", _("Unable to send data to printer.")); fprintf(stderr, "DEBUG: USB class driver WritePipe returned %x\n", iostatus); IOReturn err = (*g.classdriver)->Abort(g.classdriver); fprintf(stderr, "DEBUG: USB class driver Abort returned %x\n", err); status = CUPS_BACKEND_FAILED; break; } else if (bytes > 0) { fprintf(stderr, "DEBUG: Wrote %u bytes of print data...\n", (unsigned)bytes); g.print_bytes -= bytes; print_ptr += bytes; total_bytes += bytes; } } if (print_fd != 0 && status == noErr) fprintf(stderr, "DEBUG: Sending print file, %lld bytes...\n", (off_t)total_bytes); } } fprintf(stderr, "DEBUG: Sent %lld bytes...\n", (off_t)total_bytes); fputs("STATE: +cups-waiting-for-job-completed\n", stderr); /* * Signal the side channel thread to exit... */ if (have_sidechannel) { close(CUPS_SC_FD); pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); g.sidechannel_thread_stop = 1; pthread_mutex_lock(&g.sidechannel_thread_mutex); if (!g.sidechannel_thread_done) { gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + WAIT_SIDE_DELAY; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.sidechannel_thread_done) { if (pthread_cond_timedwait(&g.sidechannel_thread_cond, &g.sidechannel_thread_mutex, &cond_timeout) != 0) break; } } pthread_mutex_unlock(&g.sidechannel_thread_mutex); } /* * Signal the read thread to exit then wait 7 seconds for it to complete... */ g.read_thread_stop = 1; pthread_mutex_lock(&g.read_thread_mutex); if (!g.read_thread_done) { fputs("DEBUG: Waiting for read thread to exit...\n", stderr); gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + WAIT_EOF_DELAY; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.read_thread_done) { if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex, &cond_timeout) != 0) break; } /* * If it didn't exit abort the pending read and wait an additional second... */ if (!g.read_thread_done) { fputs("DEBUG: Read thread still active, aborting the pending read...\n", stderr); g.wait_eof = 0; (*g.classdriver)->Abort(g.classdriver); gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + 1; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (!g.read_thread_done) { if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex, &cond_timeout) != 0) break; } } } pthread_mutex_unlock(&g.read_thread_mutex); /* * Close the connection and input file and general clean up... */ registry_close(); if (print_fd != STDIN_FILENO) close(print_fd); if (g.make != NULL) CFRelease(g.make); if (g.model != NULL) CFRelease(g.model); if (g.serial != NULL) CFRelease(g.serial); if (g.printer_obj != 0x0) IOObjectRelease(g.printer_obj); return status; } /* * 'read_thread()' - Thread to read the backchannel data on. */ static void *read_thread(void *reference) { UInt8 readbuffer[512]; UInt32 rbytes; kern_return_t readstatus; struct mach_timebase_info timeBaseInfo; uint64_t start, delay; (void)reference; /* Calculate what 250 milliSeconds are in mach absolute time... */ mach_timebase_info(&timeBaseInfo); delay = ((uint64_t)250000000 * (uint64_t)timeBaseInfo.denom) / (uint64_t)timeBaseInfo.numer; do { /* * Remember when we started so we can throttle the loop after the read call... */ start = mach_absolute_time(); rbytes = sizeof(readbuffer); readstatus = (*g.classdriver)->ReadPipe(g.classdriver, readbuffer, &rbytes); if (readstatus == kIOReturnSuccess && rbytes > 0) { fprintf(stderr, "DEBUG: Read %d bytes of back-channel data...\n", (int)rbytes); cupsBackChannelWrite((char*)readbuffer, rbytes, 1.0); /* cntrl-d is echoed by the printer. * NOTES: * Xerox Phaser 6250D doesn't echo the cntrl-d. * Xerox Phaser 6250D doesn't always send the product query. */ if (g.wait_eof && readbuffer[rbytes-1] == 0x4) break; #ifdef PARSE_PS_ERRORS parse_pserror(readbuffer, rbytes); #endif } else if (readstatus == kIOUSBTransactionTimeout) fputs("DEBUG: Got USB transaction timeout during read\n", stderr); else if (readstatus == kIOUSBPipeStalled) fputs("DEBUG: Got USB pipe stalled during read\n", stderr); else if (readstatus == kIOReturnAborted) fputs("DEBUG: Got USB return aborted during read\n", stderr); /* * Make sure this loop executes no more than once every 250 milliseconds... */ if ((readstatus != kIOReturnSuccess || rbytes == 0) && (g.wait_eof || !g.read_thread_stop)) mach_wait_until(start + delay); } while (g.wait_eof || !g.read_thread_stop); /* Abort from main thread tests error here */ /* Workaround for usb race condition. <rdar://problem/21882551> */ if (!g.wait_eof && g.use_generic_class_driver) { const char *pdl = getenv("FINAL_CONTENT_TYPE"); if (pdl && strcmp(pdl, "application/vnd.cups-postscript") == 0) { while (readstatus == kIOReturnSuccess && ((rbytes > 0 && readbuffer[rbytes-1] != 0x4) || rbytes == 0)) { start = mach_absolute_time(); rbytes = sizeof(readbuffer); readstatus = (*g.classdriver)->ReadPipe(g.classdriver, readbuffer, &rbytes); if (readstatus == kIOReturnSuccess && rbytes > 0 && readbuffer[rbytes-1] == 0x4) break; /* Make sure this loop executes no more than once every 250 milliseconds... */ mach_wait_until(start + delay); } } } /* * Let the main thread know that we have completed the read thread... */ pthread_mutex_lock(&g.read_thread_mutex); g.read_thread_done = 1; pthread_cond_signal(&g.read_thread_cond); pthread_mutex_unlock(&g.read_thread_mutex); return NULL; } /* * 'sidechannel_thread()' - Handle side-channel requests. */ static void* sidechannel_thread(void *reference) { cups_sc_command_t command; /* Request command */ cups_sc_status_t status; /* Request/response status */ char data[2048]; /* Request/response data */ int datalen; /* Request/response data size */ (void)reference; do { datalen = sizeof(data); if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) { if (status == CUPS_SC_STATUS_TIMEOUT) continue; else break; } switch (command) { case CUPS_SC_CMD_SOFT_RESET: /* Do a soft reset */ fputs("DEBUG: CUPS_SC_CMD_SOFT_RESET received from driver...\n", stderr); if ((*g.classdriver)->SoftReset != NULL) { soft_reset(); cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, NULL, 0, 1.0); fputs("DEBUG: Returning status CUPS_STATUS_OK with no bytes...\n", stderr); } else { cupsSideChannelWrite(command, CUPS_SC_STATUS_NOT_IMPLEMENTED, NULL, 0, 1.0); fputs("DEBUG: Returning status CUPS_STATUS_NOT_IMPLEMENTED with " "no bytes...\n", stderr); } break; case CUPS_SC_CMD_DRAIN_OUTPUT: /* Drain all pending output */ fputs("DEBUG: CUPS_SC_CMD_DRAIN_OUTPUT received from driver...\n", stderr); g.drain_output = 1; break; case CUPS_SC_CMD_GET_BIDI: /* Is the connection bidirectional? */ fputs("DEBUG: CUPS_SC_CMD_GET_BIDI received from driver...\n", stderr); data[0] = (char)g.bidi_flag; cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, 1, 1.0); fprintf(stderr, "DEBUG: Returned CUPS_SC_STATUS_OK with 1 byte (%02X)...\n", data[0]); break; case CUPS_SC_CMD_GET_DEVICE_ID: /* Return IEEE-1284 device ID */ fputs("DEBUG: CUPS_SC_CMD_GET_DEVICE_ID received from driver...\n", stderr); datalen = sizeof(data); get_device_id(&status, data, &datalen); cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, datalen, 1.0); if ((size_t)datalen < sizeof(data)) data[datalen] = '\0'; else data[sizeof(data) - 1] = '\0'; fprintf(stderr, "DEBUG: Returning CUPS_SC_STATUS_OK with %d bytes (%s)...\n", datalen, data); break; case CUPS_SC_CMD_GET_STATE: /* Return device state */ fputs("DEBUG: CUPS_SC_CMD_GET_STATE received from driver...\n", stderr); data[0] = CUPS_SC_STATE_ONLINE; cupsSideChannelWrite(command, CUPS_SC_STATUS_OK, data, 1, 1.0); fprintf(stderr, "DEBUG: Returned CUPS_SC_STATUS_OK with 1 byte (%02X)...\n", data[0]); break; default: fprintf(stderr, "DEBUG: Unknown side-channel command (%d) received " "from driver...\n", command); cupsSideChannelWrite(command, CUPS_SC_STATUS_NOT_IMPLEMENTED, NULL, 0, 1.0); fputs("DEBUG: Returned CUPS_SC_STATUS_NOT_IMPLEMENTED with no bytes...\n", stderr); break; } } while (!g.sidechannel_thread_stop); pthread_mutex_lock(&g.sidechannel_thread_mutex); g.sidechannel_thread_done = 1; pthread_cond_signal(&g.sidechannel_thread_cond); pthread_mutex_unlock(&g.sidechannel_thread_mutex); return NULL; } #pragma mark - /* * 'iterate_printers()' - Iterate over all the printers. */ static void iterate_printers(iterator_callback_t callBack, void *userdata) { Iterating = 1; iterator_reference_t reference = { callBack, userdata, true }; IONotificationPortRef addNotification = IONotificationPortCreate(kIOMainPortDefault); int printingClass = kUSBPrintingClass; int printingSubclass = kUSBPrintingSubclass; CFNumberRef interfaceClass = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &printingClass); CFNumberRef interfaceSubClass = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &printingSubclass); CFMutableDictionaryRef usbPrinterMatchDictionary = IOServiceMatching(kIOUSBInterfaceClassName); CFDictionaryAddValue(usbPrinterMatchDictionary, CFSTR("bInterfaceClass"), interfaceClass); CFDictionaryAddValue(usbPrinterMatchDictionary, CFSTR("bInterfaceSubClass"), interfaceSubClass); CFRelease(interfaceClass); CFRelease(interfaceSubClass); io_iterator_t add_iterator = IO_OBJECT_NULL; IOServiceAddMatchingNotification(addNotification, kIOMatchedNotification, usbPrinterMatchDictionary, &device_added, &reference, &add_iterator); if (add_iterator != IO_OBJECT_NULL) { device_added (&reference, add_iterator); if (reference.keepRunning) { CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(addNotification), kCFRunLoopDefaultMode); CFRunLoopRun(); } IOObjectRelease(add_iterator); } Iterating = 0; } /* * 'device_added()' - Device added notifier. */ static void device_added(void *userdata, io_iterator_t iterator) { iterator_reference_t *reference = userdata; io_service_t intf; while (reference->keepRunning && (intf = IOIteratorNext(iterator)) != 0x0) { printer_interface_t printerIntf = usb_printer_interface_interface(intf); if (printerIntf != NULL) { UInt8 intfClass = 0, intfSubClass = 0; (*printerIntf)->GetInterfaceClass(printerIntf, &intfClass); (*printerIntf)->GetInterfaceSubClass(printerIntf, &intfSubClass); if (intfClass == kUSBPrintingInterfaceClass && intfSubClass == kUSBPrintingSubclass) reference->keepRunning = reference->callback(intf, printerIntf, userdata); (*printerIntf)->Release(printerIntf); } IOObjectRelease(intf); } if (reference->keepRunning && reference->callback) reference->keepRunning = reference->callback(IO_OBJECT_NULL, NULL, reference->userdata); if (!reference->keepRunning) CFRunLoopStop(CFRunLoopGetCurrent()); } /* * 'list_device_cb()' - list_device iterator callback. */ static Boolean list_device_cb(io_service_t obj, printer_interface_t printerIntf, void *refcon) { (void)refcon; if (obj != IO_OBJECT_NULL) { CFStringRef deviceIDString = NULL; CFStringRef make = NULL; CFStringRef model = NULL; CFStringRef serial = NULL; UInt32 intfLocation; deviceIDString = copy_printer_interface_deviceid(printerIntf, 0); if (deviceIDString == NULL) goto list_device_done; make = deviceIDCopyManufacturer(deviceIDString); model = deviceIDCopyModel(deviceIDString); serial = deviceIDCopySerialNumber(deviceIDString); char uristr[1024], makestr[1024], modelstr[1024], serialstr[1024]; char optionsstr[1024], idstr[1024], make_modelstr[1024]; CFStringGetCString(deviceIDString, idstr, sizeof(idstr), kCFStringEncodingUTF8); backendGetMakeModel(idstr, make_modelstr, sizeof(make_modelstr)); modelstr[0] = '/'; if (make == NULL || !CFStringGetCString(make, makestr, sizeof(makestr), kCFStringEncodingUTF8)) strlcpy(makestr, "Unknown", sizeof(makestr)); if (model == NULL || !CFStringGetCString(model, &modelstr[1], sizeof(modelstr)-1, kCFStringEncodingUTF8)) strlcpy(modelstr + 1, "Printer", sizeof(modelstr) - 1); optionsstr[0] = '\0'; if (serial != NULL && CFStringGetCString(serial, serialstr, sizeof(serialstr), kCFStringEncodingUTF8)) snprintf(optionsstr, sizeof(optionsstr), "?serial=%s", serialstr); else if ((*printerIntf)->GetLocationID(printerIntf, &intfLocation) == kIOReturnSuccess) snprintf(optionsstr, sizeof(optionsstr), "?location=%x", (unsigned)intfLocation); httpAssembleURI(HTTP_URI_CODING_ALL, uristr, sizeof(uristr), "usb", NULL, makestr, 0, modelstr); strlcat(uristr, optionsstr, sizeof(uristr)); cupsBackendReport("direct", uristr, make_modelstr, make_modelstr, idstr, NULL); list_device_done: if (make != NULL) CFRelease(make); if (model != NULL) CFRelease(model); if (serial != NULL) CFRelease(serial); } return obj != IO_OBJECT_NULL; } /* * 'find_device_cb()' - print_device iterator callback. */ static Boolean find_device_cb(io_service_t obj, printer_interface_t printerIntf, void *refcon) { (void)refcon; Boolean keepLooking = true; if (obj != IO_OBJECT_NULL) { CFStringRef deviceIDString = NULL; CFStringRef make = NULL; CFStringRef model = NULL; CFStringRef serial = NULL; deviceIDString = copy_printer_interface_deviceid(printerIntf, 0); if (deviceIDString == NULL) goto find_device_done; make = deviceIDCopyManufacturer(deviceIDString); model = deviceIDCopyModel(deviceIDString); serial = deviceIDCopySerialNumber(deviceIDString); if (make && CFStringCompare(make, g.make, kCFCompareCaseInsensitive) == kCFCompareEqualTo) { if (model && CFStringCompare(model, g.model, kCFCompareCaseInsensitive) == kCFCompareEqualTo) { UInt8 intfAltSetting = 0, intfNumber = 0, intfProtocol = 0; UInt32 intfLocation = 0; (*printerIntf)->GetInterfaceProtocol(printerIntf, &intfProtocol); (*printerIntf)->GetAlternateSetting(printerIntf, &intfAltSetting); (*printerIntf)->GetInterfaceNumber(printerIntf, &intfNumber); (*printerIntf)->GetLocationID(printerIntf, &intfLocation); if (intfProtocol == kUSBPrintingProtocolIPP) return keepLooking; if (g.serial != NULL && CFStringGetLength(g.serial) > 0) { if (serial != NULL && CFStringCompare(serial, g.serial, kCFCompareCaseInsensitive) == kCFCompareEqualTo) { g.interfaceProtocol = intfProtocol; g.location = intfLocation; g.alternateSetting = intfAltSetting; g.printer_obj = obj; IOObjectRetain(obj); keepLooking = false; } } else { if (g.printer_obj != 0) IOObjectRelease(g.printer_obj); if (g.location == 0 || g.location == intfLocation) keepLooking = false; g.location = intfLocation; g.alternateSetting = intfAltSetting; g.interfaceProtocol = intfProtocol; g.printer_obj = obj; IOObjectRetain(obj); } if (!keepLooking) g.interfaceNum = intfNumber; } } find_device_done: if (deviceIDString != NULL) CFRelease(deviceIDString); if (make != NULL) CFRelease(make); if (model != NULL) CFRelease(model); if (serial != NULL) CFRelease(serial); } else { keepLooking = (g.printer_obj == 0 && g.interfaceProtocol != kUSBPrintingProtocolIPP); if (obj == IO_OBJECT_NULL && keepLooking) { CFRunLoopTimerContext context = { 0, refcon, NULL, NULL, NULL }; CFRunLoopTimerRef timer = CFRunLoopTimerCreate(NULL, CFAbsoluteTimeGetCurrent() + 1.0, 10, 0x0, 0x0, status_timer_cb, &context); if (timer != NULL) { CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, kCFRunLoopDefaultMode); g.status_timer = timer; } } } if (!keepLooking && g.status_timer != NULL) { fputs("STATE: -offline-report\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("The printer is now online.")); CFRunLoopRemoveTimer(CFRunLoopGetCurrent(), g.status_timer, kCFRunLoopDefaultMode); CFRelease(g.status_timer); g.status_timer = NULL; } return keepLooking; } static CFStringRef deviceIDCopySerialNumber(CFStringRef deviceID) { CFStringRef serialKeys[] = { CFSTR("SN:"), CFSTR("SERN:"), NULL }; return copy_value_for_key(deviceID, serialKeys); } static CFStringRef deviceIDCopyModel(CFStringRef deviceID) { CFStringRef modelKeys[] = { CFSTR("MDL:"), CFSTR("MODEL:"), NULL }; return copy_value_for_key(deviceID, modelKeys); } static CFStringRef deviceIDCopyManufacturer(CFStringRef deviceID) { CFStringRef makeKeys[] = { CFSTR("MFG:"), CFSTR("MANUFACTURER:"), NULL }; return copy_value_for_key(deviceID, makeKeys); } /* * 'status_timer_cb()' - Status timer callback. */ static void status_timer_cb(CFRunLoopTimerRef timer, void *info) { (void)timer; (void)info; fputs("STATE: +offline-report\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("The printer is offline.")); if (getenv("CLASS") != NULL) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. * * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); exit(CUPS_BACKEND_FAILED); } } #pragma mark - /* * 'load_classdriver()' - Load a classdriver. */ static kern_return_t load_classdriver(CFStringRef driverPath, printer_interface_t interface, classdriver_t ***printerDriver) { kern_return_t kr = kUSBPrinterClassDeviceNotOpen; classdriver_t **driver = NULL; CFStringRef bundle = driverPath ? driverPath : kUSBGenericTOPrinterClassDriver; char bundlestr[1024]; /* Bundle path */ CFURLRef url; /* URL for driver */ CFPlugInRef plugin = NULL; /* Plug-in address */ CFStringGetCString(bundle, bundlestr, sizeof(bundlestr), kCFStringEncodingUTF8); /* * Validate permissions for the class driver... */ _cups_fc_result_t result = _cupsFileCheck(bundlestr, _CUPS_FILE_CHECK_DIRECTORY, 1, Iterating ? NULL : _cupsFileCheckFilter, NULL); if (result && driverPath) return (load_classdriver(NULL, interface, printerDriver)); else if (result) return (kr); /* * Try loading the class driver... */ url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, bundle, kCFURLPOSIXPathStyle, true); if (url == NULL) return (kr); plugin = CFPlugInCreate(kCFAllocatorDefault, url); CFRelease(url); if (plugin) { CFArrayRef factories = CFPlugInFindFactoriesForPlugInTypeInPlugIn(kUSBPrinterClassTypeID, plugin); if (factories == NULL) return (kr); if (CFArrayGetCount(factories) > 0) { CFUUIDRef factoryID = CFArrayGetValueAtIndex(factories, 0); IUnknownVTbl **iunknown = CFPlugInInstanceCreate(kCFAllocatorDefault, factoryID, kUSBPrinterClassTypeID); if (iunknown != NULL) { kr = (*iunknown)->QueryInterface(iunknown, CFUUIDGetUUIDBytes(kUSBPrinterClassInterfaceID), (LPVOID *)&driver); if (kr == kIOReturnSuccess && driver != NULL) { classdriver_t **genericDriver = NULL; if (driverPath != NULL && CFStringCompare(driverPath, kUSBGenericTOPrinterClassDriver, 0) != kCFCompareEqualTo) kr = load_classdriver(NULL, interface, &genericDriver); if (kr == kIOReturnSuccess) { (*driver)->interface = interface; (*driver)->Initialize(driver, genericDriver); (*driver)->plugin = plugin; (*driver)->interface = interface; *printerDriver = driver; } } (*iunknown)->Release(iunknown); } } CFRelease(factories); } fprintf(stderr, "DEBUG: load_classdriver(%s) (kr:0x%08x)\n", bundlestr, (int)kr); return (kr); } /* * 'unload_classdriver()' - Unload a classdriver. */ static kern_return_t unload_classdriver(classdriver_t ***classdriver) { if (*classdriver != NULL) { (**classdriver)->Release(*classdriver); *classdriver = NULL; } return kIOReturnSuccess; } /* * 'load_printerdriver()' - Load vendor's classdriver. * * If driverBundlePath is not NULL on return it is the callers responsbility to release it! */ static kern_return_t load_printerdriver(CFStringRef *driverBundlePath) { IOCFPlugInInterface **iodev = NULL; SInt32 score; kern_return_t kr; printer_interface_t interface; kr = IOCreatePlugInInterfaceForService(g.printer_obj, kIOUSBInterfaceUserClientTypeID, kIOCFPlugInInterfaceID, &iodev, &score); if (kr == kIOReturnSuccess) { if ((*iodev)->QueryInterface(iodev, USB_INTERFACE_KIND, (LPVOID *) &interface) == noErr) { *driverBundlePath = IORegistryEntryCreateCFProperty(g.printer_obj, kUSBClassDriverProperty, NULL, kNilOptions); g.use_generic_class_driver = (*driverBundlePath == NULL || (CFStringCompare(*driverBundlePath, kUSBGenericTOPrinterClassDriver, 0x0) == kCFCompareEqualTo)); kr = load_classdriver(*driverBundlePath, interface, &g.classdriver); if (kr != kIOReturnSuccess) (*interface)->Release(interface); } IODestroyPlugInInterface(iodev); } return kr; } static printer_interface_t usb_printer_interface_interface(io_service_t usbClass) { printer_interface_t intf = NULL; IOCFPlugInInterface **plugin = NULL; SInt32 score; int kr = IOCreatePlugInInterfaceForService(usbClass, kIOUSBInterfaceUserClientTypeID, kIOCFPlugInInterfaceID, &plugin, &score); if (kr == kIOReturnSuccess) { (*plugin)->QueryInterface(plugin, USB_INTERFACE_KIND, (LPVOID *)&intf); IODestroyPlugInInterface(plugin); } return intf; } static CFStringRef copy_printer_interface_deviceid(printer_interface_t printer, UInt8 alternateSetting) { // I have tried to make this function as neat as I can, but the possibility of needing to resend // a request to get the entire string makes it hideous... // // We package the job of sending a request up into the block (^sendRequest), which takes the size // it should allocate for the message buffer. It frees the current buffer if one is set and // allocates one of the specified size, then performs the request. We can then easily retry by // calling the block again if we fail to get the whole string the first time around. #define kUSBPrintClassGetDeviceID 0 #define kDefaultNoDataTimeout 5000L #define pack_device_id_wIndex(intf, alt) ((UInt16)((((UInt16)(intf)) << 8) | ((UInt8)(alt)))) if (printer == NULL) return NULL; IOReturn err = kIOReturnError; UInt8 configurationIndex = 0; UInt8 interfaceNumber = 0; size_t bufferLength = 256; CFStringRef ret = NULL; if ((*printer)->GetConfigurationValue( printer, &configurationIndex) == kIOReturnSuccess && (*printer)->GetInterfaceNumber( printer, &interfaceNumber) == kIOReturnSuccess) { __block IOUSBDevRequestTO request; IOReturn (^sendRequest)(size_t) = ^ (size_t size) { if (request.pData) { free(request.pData); request.wLength = 0; request.pData = NULL; } IOReturn berr = kIOReturnError; char *buffer = malloc(size); if (buffer == NULL) return kIOReturnNoMemory; request.wLength = HostToUSBWord(size); request.pData = buffer; berr = (*printer)->ControlRequestTO(printer, 0, &request); return berr; }; /* This request takes the 0 based configuration index. IOKit returns a 1 based configuration index */ configurationIndex -= 1; memset(&request, 0, sizeof(request)); request.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBClass, kUSBInterface); request.bRequest = kUSBPrintClassGetDeviceID; request.wValue = HostToUSBWord(configurationIndex); request.wIndex = HostToUSBWord(pack_device_id_wIndex(interfaceNumber, alternateSetting)); request.noDataTimeout = kDefaultNoDataTimeout; request.completionTimeout = 0; // Copying behavior from Generic Class Driver err = sendRequest(bufferLength); if (err == kIOReturnSuccess && request.wLenDone > 1) { UInt16 actualLength = OSSwapBigToHostInt16(*((UInt16 *)request.pData)); if (actualLength > 2 && actualLength <= bufferLength - 2) { ret = CFStringCreateWithBytes(NULL, (const UInt8 *)request.pData + 2, actualLength - 2, kCFStringEncodingUTF8, false); } else if (actualLength > 2) { err = sendRequest(actualLength); if (err == kIOReturnSuccess && request.wLenDone > 0) { actualLength = OSSwapBigToHostInt16(*((UInt16 *)request.pData)); ret = CFStringCreateWithBytes(NULL, (const UInt8 *)request.pData + 2, actualLength - 2, kCFStringEncodingUTF8, false); } } } if (request.pData) free(request.pData); } CFStringRef manufacturer = deviceIDCopyManufacturer(ret); CFStringRef model = deviceIDCopyModel(ret); CFStringRef serial = deviceIDCopySerialNumber(ret); if (manufacturer == NULL || serial == NULL || model == NULL) { IOUSBDevRequestTO request; IOUSBDeviceDescriptor desc; memset(&request, 0, sizeof(request)); request.bmRequestType = USBmakebmRequestType( kUSBIn, kUSBStandard, kUSBDevice ); request.bRequest = kUSBRqGetDescriptor; request.wValue = kUSBDeviceDesc << 8; request.wIndex = 0; request.wLength = sizeof(desc); request.pData = &desc; request.completionTimeout = 0; request.noDataTimeout = 60L; err = (*printer)->ControlRequestTO(printer, 0, &request); if (err == kIOReturnSuccess) { CFMutableStringRef extras = CFStringCreateMutable(kCFAllocatorDefault, 0); if (manufacturer == NULL) { manufacturer = copy_printer_interface_indexed_description(printer, desc.iManufacturer, kUSBLanguageEnglish); if (manufacturer && CFStringGetLength(manufacturer) > 0) CFStringAppendFormat(extras, NULL, CFSTR("MFG:%@;"), manufacturer); } if (model == NULL) { model = copy_printer_interface_indexed_description(printer, desc.iProduct, kUSBLanguageEnglish); if (model && CFStringGetLength(model) > 0) CFStringAppendFormat(extras, NULL, CFSTR("MDL:%@;"), model); } if (desc.iSerialNumber != 0) { // Always look at the USB serial number since some printers // incorrectly include a bogus static serial number in their // IEEE-1284 device ID string... CFStringRef userial = copy_printer_interface_indexed_description(printer, desc.iSerialNumber, kUSBLanguageEnglish); if (userial && CFStringGetLength(userial) > 0 && (serial == NULL || CFStringCompare(serial, userial, kCFCompareCaseInsensitive) != kCFCompareEqualTo)) { if (serial != NULL) { // 1284 serial number doesn't match USB serial number, so replace the existing SERN: in device ID CFRange range = CFStringFind(ret, serial, 0); CFMutableStringRef deviceIDString = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, ret); CFStringReplace(deviceIDString, range, userial); CFRelease(ret); ret = deviceIDString; CFRelease(serial); } else { // No 1284 serial number so add SERN: with USB serial number to device ID CFStringAppendFormat(extras, NULL, CFSTR("SERN:%@;"), userial); } serial = userial; } else if (userial != NULL) CFRelease(userial); } if (ret != NULL) { CFStringAppend(extras, ret); CFRelease(ret); } ret = extras; } } if (ret != NULL) { /* Remove special characters from the serial number */ CFRange range = (serial != NULL ? CFStringFind(serial, CFSTR("+"), 0) : CFRangeMake(0, 0)); if (range.length == 1) { range = CFStringFind(ret, serial, 0); CFMutableStringRef deviceIDString = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, ret); CFRelease(ret); ret = deviceIDString; CFStringFindAndReplace(deviceIDString, CFSTR("+"), CFSTR(""), range, 0); } } if (manufacturer != NULL) CFRelease(manufacturer); if (model != NULL) CFRelease(model); if (serial != NULL) CFRelease(serial); if (ret != NULL && CFStringGetLength(ret) == 0) { CFRelease(ret); return NULL; } return ret; } static CFStringRef copy_printer_interface_indexed_description(printer_interface_t printer, UInt8 index, UInt16 language) { IOReturn err; UInt8 description[256]; // Max possible descriptor length IOUSBDevRequestTO request; description[0] = description[1] = 0; request.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); request.bRequest = kUSBRqGetDescriptor; request.wValue = (kUSBStringDesc << 8) | index; request.wIndex = language; request.wLength = 2; request.pData = &description; request.completionTimeout = 0; request.noDataTimeout = 60U; err = (*printer)->ControlRequestTO(printer, 0, &request); if (err != kIOReturnSuccess && err != kIOReturnOverrun) { memset(description, 0, request.wLength); // Let's try again full length. Here's why: // On USB 2.0 controllers, we will not get an overrun error. We just get a "babble" error // and no valid data. So, if we ask for the max size, we will either get it, or we'll get an underrun. // It looks like we get it w/out an underrun request.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); request.bRequest = kUSBRqGetDescriptor; request.wValue = (kUSBStringDesc << 8) | index; request.wIndex = language; request.wLength = sizeof description; request.pData = &description; request.completionTimeout = 0; request.noDataTimeout = 60U; err = (*printer)->ControlRequestTO(printer, 0, &request); if (err != kIOReturnSuccess && err != kIOReturnUnderrun) return NULL; } UInt8 length = description[0]; if (length == 0) return CFSTR(""); if (description[1] != kUSBStringDesc) return NULL; request.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); request.bRequest = kUSBRqGetDescriptor; request.wValue = (kUSBStringDesc << 8) | index; request.wIndex = language; memset(description, 0, length); request.wLength = (UInt16)length; request.pData = &description; request.completionTimeout = 0; request.noDataTimeout = 60U; err = (*printer)->ControlRequestTO(printer, 0, &request); if (err != kIOReturnSuccess) return NULL; if (description[1] != kUSBStringDesc) return NULL; description[0] &= ~1; if (description[0] < 2) return CFSTR(""); char buffer[(sizeof(description) - 2) / 2]; length = (description[0] - 2) / 2; for (UInt8 i = 0; i < length; i++) buffer[i] = (char) description[2 * i + 2]; buffer[length] = 0; return CFStringCreateWithCString(kCFAllocatorDefault, buffer, kCFStringEncodingUTF8); } /* * 'registry_open()' - Open a connection to the printer. */ static kern_return_t registry_open(CFStringRef *driverBundlePath) { g.bidi_flag = 0; /* 0=unidirectional */ kern_return_t kr = load_printerdriver(driverBundlePath); if (kr != kIOReturnSuccess) kr = -2; if (g.classdriver != NULL) { (*g.classdriver)->interfaceNumber = g.interfaceNum; kr = (*g.classdriver)->Open(g.classdriver, g.location, kUSBPrintingProtocolBidirectional); if (kr != kIOReturnSuccess || (*g.classdriver)->interface == NULL) { kr = (*g.classdriver)->Open(g.classdriver, g.location, kUSBPrintingProtocolUnidirectional); if (kr == kIOReturnSuccess) { if ((*g.classdriver)->interface == NULL) { (*g.classdriver)->Close(g.classdriver); kr = -1; } } } else g.bidi_flag = 1; /* 1=bidirectional */ } if (kr != kIOReturnSuccess) unload_classdriver(&g.classdriver); return kr; } /* * 'registry_close()' - Close the connection to the printer. */ static kern_return_t registry_close(void) { if (g.classdriver != NULL) (*g.classdriver)->Close(g.classdriver); unload_classdriver(&g.classdriver); return kIOReturnSuccess; } #pragma mark - /* * 'copy_value_for_key()' - Copy value string associated with a key. */ static CFStringRef copy_value_for_key(CFStringRef deviceID, CFStringRef *keys) { CFStringRef value = NULL; /* Value to return */ CFArrayRef kvPairs; /* pairs derived from separating the device ID*/ CFIndex max; /* The size of the array*/ if (deviceID == NULL) return NULL; kvPairs = CFStringCreateArrayBySeparatingStrings(kCFAllocatorDefault, deviceID, CFSTR(";")); max = CFArrayGetCount(kvPairs); for (CFIndex idx = 0; idx < max; idx++) { CFStringRef kvpair = CFArrayGetValueAtIndex(kvPairs, idx); CFIndex idxx = 0; for (idxx = 0; keys[idxx] != NULL; idxx++) { CFRange range = CFStringFind(kvpair, keys[idxx], kCFCompareCaseInsensitive); if (range.length != kCFNotFound) { if (range.location != 0) { CFMutableStringRef theString = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, kvpair); CFStringTrimWhitespace(theString); range = CFStringFind(theString, keys[idxx], kCFCompareCaseInsensitive); if (range.location == 0) value = CFStringCreateWithSubstring(kCFAllocatorDefault, theString, CFRangeMake(range.length, CFStringGetLength(theString) - range.length)); CFRelease(theString); } else { CFStringRef theString = CFStringCreateWithSubstring(kCFAllocatorDefault, kvpair, CFRangeMake(range.length, CFStringGetLength(kvpair) - range.length)); CFMutableStringRef theString2 = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, theString); CFRelease(theString); CFStringTrimWhitespace(theString2); value = theString2; } } if (value != NULL) { CFRelease(kvPairs); return value; } } } CFRelease(kvPairs); return NULL; } /* * 'cfstr_create_trim()' - Create CFString and trim whitespace characters. */ CFStringRef cfstr_create_trim(const char *cstr) { CFStringRef cfstr; CFMutableStringRef cfmutablestr = NULL; if ((cfstr = CFStringCreateWithCString(kCFAllocatorDefault, cstr, kCFStringEncodingUTF8)) != NULL) { if ((cfmutablestr = CFStringCreateMutableCopy(kCFAllocatorDefault, 1024, cfstr)) != NULL) CFStringTrimWhitespace(cfmutablestr); CFRelease(cfstr); } return (CFStringRef) cfmutablestr; } #pragma mark - /* * 'parse_options()' - Parse URI options. */ static void parse_options(char *options, char *serial, int serial_size, UInt32 *location, Boolean *wait_eof) { char sep, /* Separator character */ *name, /* Name of option */ *value; /* Value of option */ if (serial) *serial = '\0'; if (location) *location = 0; if (!options) return; while (*options) { /* * Get the name... */ name = options; while (*options && *options != '=' && *options != '+' && *options != '&') options ++; if ((sep = *options) != '\0') *options++ = '\0'; if (sep == '=') { /* * Get the value... */ value = options; while (*options && *options != '+' && *options != '&') options ++; if (*options) *options++ = '\0'; } else value = (char *)""; /* * Process the option... */ if (!_cups_strcasecmp(name, "waiteof")) { if (!_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true")) *wait_eof = true; else if (!_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "false")) *wait_eof = false; else _cupsLangPrintFilter(stderr, "WARNING", _("Boolean expected for waiteof option \"%s\"."), value); } else if (!_cups_strcasecmp(name, "serial")) strlcpy(serial, value, (size_t)serial_size); else if (!_cups_strcasecmp(name, "location") && location) *location = (UInt32)strtoul(value, NULL, 16); } } /*! * @function setup_cfLanguage * @abstract Convert the contents of the CUPS 'APPLE_LANGUAGE' environment * variable into a one element CF array of languages. * * @discussion Each submitted job comes with a natural language. CUPS passes * that language in an environment variable. We take that language * and jam it into the AppleLanguages array so that CF will use * it when reading localized resources. We need to do this before * any CF code reads and caches the languages array, so this function * should be called early in main() */ static void setup_cfLanguage(void) { CFStringRef lang[1] = {NULL}; /* StringRef used to create the array */ CFArrayRef langArray; /* The array used to set the language perference */ const char *requestedLang; /* The language as retrived from the language environment variable */ if ((requestedLang = getenv("APPLE_LANGUAGE")) == NULL) requestedLang = getenv("LANG"); if (requestedLang == NULL) { fputs("DEBUG: usb: LANG and APPLE_LANGUAGE environment variables missing.\n", stderr); return; } lang[0] = CFStringCreateWithCString(kCFAllocatorDefault, requestedLang, kCFStringEncodingUTF8); langArray = CFArrayCreate(kCFAllocatorDefault, (const void **)lang, sizeof(lang) / sizeof(lang[0]), &kCFTypeArrayCallBacks); CFPreferencesSetValue(CFSTR("AppleLanguages"), langArray, kCFPreferencesCurrentApplication, kCFPreferencesAnyUser, kCFPreferencesAnyHost); fprintf(stderr, "DEBUG: usb: AppleLanguages=\"%s\"\n", requestedLang); CFRelease(lang[0]); CFRelease(langArray); } #pragma mark - #if defined(__arm64e__) /*! * @function run_legacy_backend * * @abstract Starts child backend process running as a x86_64 executable. * * @result Never returns; always calls exit(). * * @discussion */ static void run_legacy_backend(int argc, char *argv[], int fd) { size_t i; int exitstatus = 0; int childstatus; pid_t waitpid_status; char *my_argv[32]; char *usb_legacy_status; /* * If we're running as ARM and couldn't load the class driver * (because it's x86_64, i386 or ppc), then try to re-exec ourselves in x86_64 * mode to try again. If we don't have that architecture we may be * running with the same architecture again so guard against this by setting * and testing an environment variable... */ usb_legacy_status = getenv("USB_LEGACY_STATUS"); if (!usb_legacy_status) { /* * Setup a SIGTERM handler then block it before forking... */ int err; /* posix_spawn result */ struct sigaction action; /* POSIX signal action */ sigset_t newmask, /* New signal mask */ oldmask; /* Old signal mask */ char usbpath[1024]; /* Path to USB backend */ const char *cups_serverbin;/* Path to CUPS binaries */ memset(&action, 0, sizeof(action)); sigaddset(&action.sa_mask, SIGTERM); action.sa_handler = sigterm_handler; sigaction(SIGTERM, &action, NULL); sigemptyset(&newmask); sigaddset(&newmask, SIGTERM); sigprocmask(SIG_BLOCK, &newmask, &oldmask); /* * Set the environment variable... */ setenv("USB_LEGACY_STATUS", "1", false); /* * Tell the kernel to use the specified CPU architecture... */ cpu_type_t cpu = CPU_TYPE_X86_64; size_t ocount = 1; posix_spawnattr_t attrs; if (!posix_spawnattr_init(&attrs)) { posix_spawnattr_setsigdefault(&attrs, &oldmask); if (posix_spawnattr_setbinpref_np(&attrs, 1, &cpu, &ocount) || ocount != 1) { perror("DEBUG: Unable to set binary preference to X86_64"); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to use legacy USB class driver.")); exit(CUPS_BACKEND_STOP); } } /* * Set up the arguments and call posix_spawn... */ if ((cups_serverbin = getenv("CUPS_SERVERBIN")) == NULL) cups_serverbin = CUPS_SERVERBIN; snprintf(usbpath, sizeof(usbpath), "%s/backend/usb", cups_serverbin); for (i = 0; i < argc && i < (sizeof(my_argv) / sizeof(my_argv[0])) - 1; i++) my_argv[i] = argv[i]; my_argv[i] = NULL; if ((err = posix_spawn(&child_pid, usbpath, NULL, &attrs, my_argv, environ)) != 0) { fprintf(stderr, "DEBUG: Unable to exec %s: %s\n", usbpath, strerror(err)); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to use legacy USB class driver.")); exit(CUPS_BACKEND_STOP); } /* * Unblock signals... */ sigprocmask(SIG_SETMASK, &oldmask, NULL); /* * Close the fds we won't be using then wait for the child backend to exit. */ close(fd); close(1); fprintf(stderr, "DEBUG: Started usb(legacy) backend (PID %d)\n", (int)child_pid); while ((waitpid_status = waitpid(child_pid, &childstatus, 0)) == (pid_t)-1 && errno == EINTR) usleep(1000); if (WIFSIGNALED(childstatus)) { exitstatus = CUPS_BACKEND_STOP; fprintf(stderr, "DEBUG: usb(legacy) backend %d crashed on signal %d\n", child_pid, WTERMSIG(childstatus)); } else { if ((exitstatus = WEXITSTATUS(childstatus)) != 0) fprintf(stderr, "DEBUG: usb(legacy) backend %d stopped with status %d\n", child_pid, exitstatus); else fprintf(stderr, "DEBUG: usb(legacy) backend %d exited with no errors\n", child_pid); } } else { fputs("DEBUG: usb(legacy) backend running native again\n", stderr); exitstatus = CUPS_BACKEND_STOP; } exit(exitstatus); } /* * 'sigterm_handler()' - SIGTERM handler. */ static void sigterm_handler(int sig) /* I - Signal */ { /* * If we started a child process pass the signal on to it... */ if (child_pid) { /* * If we started a child process pass the signal on to it... */ int status; kill(child_pid, sig); while (waitpid(child_pid, &status, 0) < 0 && errno == EINTR); if (WIFEXITED(status)) _exit(WEXITSTATUS(status)); else if (status == SIGTERM || status == SIGKILL) _exit(0); else { backendMessage("DEBUG: Child crashed.\n"); _exit(CUPS_BACKEND_STOP); } } } #endif /* __arm64e__ */ /* * 'sigquit_handler()' - SIGQUIT handler. */ static void sigquit_handler(int sig, siginfo_t *si, void *unused) { char *path; char pathbuf[PROC_PIDPATHINFO_MAXSIZE]; static char msgbuf[256] = ""; (void)sig; (void)unused; if (proc_pidpath(si->si_pid, pathbuf, sizeof(pathbuf)) > 0 && (path = basename(pathbuf)) != NULL) snprintf(msgbuf, sizeof(msgbuf), "SIGQUIT sent by %s(%d)", path, (int)si->si_pid); else snprintf(msgbuf, sizeof(msgbuf), "SIGQUIT sent by PID %d", (int)si->si_pid); CRSetCrashLogMessage(msgbuf); abort(); } #ifdef PARSE_PS_ERRORS /* * 'next_line()' - Find the next line in a buffer. */ static const char *next_line (const char *buffer) { const char *cptr, *lptr = NULL; for (cptr = buffer; *cptr && lptr == NULL; cptr++) if (*cptr == '\n' || *cptr == '\r') lptr = cptr; return lptr; } /* * 'parse_pserror()' - Scan the backchannel data for postscript errors. */ static void parse_pserror(char *sockBuffer, int len) { static char gErrorBuffer[1024] = ""; static char *gErrorBufferPtr = gErrorBuffer; static char *gErrorBufferEndPtr = gErrorBuffer + sizeof(gErrorBuffer); char *pCommentBegin, *pCommentEnd, *pLineEnd; char *logLevel; char logstr[1024]; int logstrlen; if (gErrorBufferPtr + len > gErrorBufferEndPtr - 1) gErrorBufferPtr = gErrorBuffer; if (len > sizeof(gErrorBuffer) - 1) len = sizeof(gErrorBuffer) - 1; memcpy(gErrorBufferPtr, (const void *)sockBuffer, len); gErrorBufferPtr += len; *(gErrorBufferPtr + 1) = '\0'; pLineEnd = (char *)next_line((const char *)gErrorBuffer); while (pLineEnd != NULL) { *pLineEnd++ = '\0'; pCommentBegin = strstr(gErrorBuffer,"%%["); pCommentEnd = strstr(gErrorBuffer, "]%%"); if (pCommentBegin != gErrorBuffer && pCommentEnd != NULL) { pCommentEnd += 3; /* Skip past "]%%" */ *pCommentEnd = '\0'; /* There's always room for the nul */ if (_cups_strncasecmp(pCommentBegin, "%%[ Error:", 10) == 0) logLevel = "DEBUG"; else if (_cups_strncasecmp(pCommentBegin, "%%[ Flushing", 12) == 0) logLevel = "DEBUG"; else logLevel = "INFO"; if ((logstrlen = snprintf(logstr, sizeof(logstr), "%s: %s\n", logLevel, pCommentBegin)) >= sizeof(logstr)) { /* If the string was truncated make sure it has a linefeed before the nul */ logstrlen = sizeof(logstr) - 1; logstr[logstrlen - 1] = '\n'; } write(STDERR_FILENO, logstr, logstrlen); } /* move everything over... */ strlcpy(gErrorBuffer, pLineEnd, sizeof(gErrorBuffer)); gErrorBufferPtr = gErrorBuffer; pLineEnd = (char *)next_line((const char *)gErrorBuffer); } } #endif /* PARSE_PS_ERRORS */ /* * 'soft_reset()' - Send a soft reset to the device. */ static void soft_reset(void) { fd_set input_set; /* Input set for select() */ struct timeval tv; /* Time value */ char buffer[2048]; /* Buffer */ struct timespec cond_timeout; /* pthread condition timeout */ /* * Send an abort once a second until the I/O lock is released by the main thread... */ pthread_mutex_lock(&g.readwrite_lock_mutex); while (g.readwrite_lock) { (*g.classdriver)->Abort(g.classdriver); gettimeofday(&tv, NULL); cond_timeout.tv_sec = tv.tv_sec + 1; cond_timeout.tv_nsec = tv.tv_usec * 1000; while (g.readwrite_lock) { if (pthread_cond_timedwait(&g.readwrite_lock_cond, &g.readwrite_lock_mutex, &cond_timeout) != 0) break; } } g.readwrite_lock = 1; pthread_mutex_unlock(&g.readwrite_lock_mutex); /* * Flush bytes waiting on print_fd... */ g.print_bytes = 0; FD_ZERO(&input_set); FD_SET(g.print_fd, &input_set); tv.tv_sec = 0; tv.tv_usec = 0; while (select(g.print_fd+1, &input_set, NULL, NULL, &tv) > 0) if (read(g.print_fd, buffer, sizeof(buffer)) <= 0) break; /* * Send the reset... */ (*g.classdriver)->SoftReset(g.classdriver, DEFAULT_TIMEOUT); /* * Release the I/O lock... */ pthread_mutex_lock(&g.readwrite_lock_mutex); g.readwrite_lock = 0; pthread_cond_signal(&g.readwrite_lock_cond); pthread_mutex_unlock(&g.readwrite_lock_mutex); } /* * 'get_device_id()' - Return IEEE-1284 device ID. */ static void get_device_id(cups_sc_status_t *status, char *data, int *datalen) { CFStringRef deviceIDString = NULL; if (g.printer_obj != IO_OBJECT_NULL) { printer_interface_t printerIntf = usb_printer_interface_interface(g.printer_obj); if (printerIntf) { deviceIDString = copy_printer_interface_deviceid(printerIntf, g.alternateSetting); (*printerIntf)->Release(printerIntf); } } if (deviceIDString) { if (CFStringGetCString(deviceIDString, data, *datalen, kCFStringEncodingUTF8)) *datalen = (int)strlen(data); else *datalen = 0; CFRelease(deviceIDString); } else { *datalen = 0; } *status = CUPS_SC_STATUS_OK; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/testsupplies.c�������������������������������������������������������������������0000644�0001750�0001750�00000002575�14502571342�016671� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * SNMP supplies test program for CUPS. * * Copyright © 2008-2011 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" /* * 'main()' - Show the supplies state of a printer. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { http_addrlist_t *host; /* Host addresses */ int snmp_fd; /* SNMP socket */ int page_count, /* Current page count */ printer_state; /* Current printer state */ if (argc != 2) { puts("Usage: testsupplies ip-or-hostname"); return (1); } if ((host = httpAddrGetList(argv[1], AF_UNSPEC, "9100")) == NULL) { perror(argv[1]); return (1); } if ((snmp_fd = _cupsSNMPOpen(host->addr.addr.sa_family)) < 0) { perror(argv[1]); return (1); } for (;;) { fputs("backendSNMPSupplies: ", stdout); if (backendSNMPSupplies(snmp_fd, &(host->addr), &page_count, &printer_state)) { puts("FAIL"); return (1); } printf("backendSNMPSupplies: %s (page_count=%d, printer_state=%d)\n", page_count < 0 || printer_state < CUPS_TC_other || printer_state > CUPS_TC_warmup ? "FAIL" : "PASS", page_count, printer_state); sleep(5); } } �����������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/testbackend.c��������������������������������������������������������������������0000644�0001750�0001750�00000040064�14502571342�016407� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Backend test program for CUPS. * * Copyright © 2007-2014 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include <cups/string-private.h> #include <cups/cups.h> #include <cups/sidechannel.h> #include <unistd.h> #include <fcntl.h> #include <sys/wait.h> #include <signal.h> #include "backend-private.h" /* * Local globals... */ static int job_canceled = 0; /* * Local functions... */ static void sigterm_handler(int sig); static void usage(void) _CUPS_NORETURN; static void walk_cb(const char *oid, const char *data, int datalen, void *context); /* * 'main()' - Run the named backend. * * Usage: * * testbackend [-s] [-t] device-uri job-id user title copies options [file] */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int first_arg, /* First argument for backend */ do_cancel = 0, /* Simulate a cancel-job via SIGTERM */ do_ps = 0, /* Do PostScript query+test? */ do_pcl = 0, /* Do PCL query+test? */ do_side_tests = 0, /* Test side-channel ops? */ do_trickle = 0, /* Trickle data to backend */ do_walk = 0, /* Do OID lookup (0) or walking (1) */ show_log = 0; /* Show log messages from backends? */ const char *oid = ".1.3.6.1.2.1.43.10.2.1.4.1.1"; /* OID to lookup or walk */ char scheme[255], /* Scheme in URI == backend */ backend[1024], /* Backend path */ libpath[1024], /* Path for libcups */ *ptr; /* Pointer into path */ const char *serverbin; /* CUPS_SERVERBIN environment variable */ int fd, /* Temporary file descriptor */ back_fds[2], /* Back-channel pipe */ side_fds[2], /* Side-channel socket */ data_fds[2], /* Data pipe */ back_pid = -1, /* Backend process ID */ data_pid = -1, /* Trickle process ID */ pid, /* Process ID */ status; /* Exit status */ /* * Get the current directory and point the run-time linker at the "cups" * subdirectory... */ if (getcwd(libpath, sizeof(libpath)) && (ptr = strrchr(libpath, '/')) != NULL && !strcmp(ptr, "/backend")) { strlcpy(ptr, "/cups", sizeof(libpath) - (size_t)(ptr - libpath)); if (!access(libpath, 0)) { #ifdef __APPLE__ fprintf(stderr, "Setting DYLD_LIBRARY_PATH to \"%s\".\n", libpath); setenv("DYLD_LIBRARY_PATH", libpath, 1); #else fprintf(stderr, "Setting LD_LIBRARY_PATH to \"%s\".\n", libpath); setenv("LD_LIBRARY_PATH", libpath, 1); #endif /* __APPLE__ */ } else perror(libpath); } /* * See if we have side-channel tests to do... */ for (first_arg = 1; argv[first_arg] && argv[first_arg][0] == '-'; first_arg ++) if (!strcmp(argv[first_arg], "-d")) show_log = 1; else if (!strcmp(argv[first_arg], "-cancel")) do_cancel = 1; else if (!strcmp(argv[first_arg], "-pcl")) do_pcl = 1; else if (!strcmp(argv[first_arg], "-ps")) do_ps = 1; else if (!strcmp(argv[first_arg], "-s")) do_side_tests = 1; else if (!strcmp(argv[first_arg], "-t")) do_trickle = 1; else if (!strcmp(argv[first_arg], "-get") && (first_arg + 1) < argc) { first_arg ++; do_side_tests = 1; oid = argv[first_arg]; } else if (!strcmp(argv[first_arg], "-walk") && (first_arg + 1) < argc) { first_arg ++; do_side_tests = 1; do_walk = 1; oid = argv[first_arg]; } else usage(); argc -= first_arg; if (argc < 6 || argc > 7 || (argc == 7 && do_trickle)) usage(); /* * Extract the scheme from the device-uri - that's the program we want to * execute. */ if (sscanf(argv[first_arg], "%254[^:]", scheme) != 1) { fputs("testbackend: Bad device-uri - no colon!\n", stderr); return (1); } if (!access(scheme, X_OK)) strlcpy(backend, scheme, sizeof(backend)); else { if ((serverbin = getenv("CUPS_SERVERBIN")) == NULL) serverbin = CUPS_SERVERBIN; snprintf(backend, sizeof(backend), "%s/backend/%s", serverbin, scheme); if (access(backend, X_OK)) { fprintf(stderr, "testbackend: Unknown device scheme \"%s\"!\n", scheme); return (1); } } /* * Create the back-channel pipe and side-channel socket... */ open("/dev/null", O_WRONLY); /* Make sure fd 3 and 4 are used */ open("/dev/null", O_WRONLY); pipe(back_fds); fcntl(back_fds[0], F_SETFL, fcntl(back_fds[0], F_GETFL) | O_NONBLOCK); fcntl(back_fds[1], F_SETFL, fcntl(back_fds[1], F_GETFL) | O_NONBLOCK); socketpair(AF_LOCAL, SOCK_STREAM, 0, side_fds); fcntl(side_fds[0], F_SETFL, fcntl(side_fds[0], F_GETFL) | O_NONBLOCK); fcntl(side_fds[1], F_SETFL, fcntl(side_fds[1], F_GETFL) | O_NONBLOCK); /* * Execute the trickle process as needed... */ if (do_trickle || do_pcl || do_ps || do_cancel) { pipe(data_fds); signal(SIGTERM, sigterm_handler); if ((data_pid = fork()) == 0) { /* * Trickle/query child comes here. Rearrange file descriptors so that * FD 1, 3, and 4 point to the backend... */ if ((fd = open("/dev/null", O_RDONLY)) != 0) { dup2(fd, 0); close(fd); } if (data_fds[1] != 1) { dup2(data_fds[1], 1); close(data_fds[1]); } close(data_fds[0]); if (back_fds[0] != 3) { dup2(back_fds[0], 3); close(back_fds[0]); } close(back_fds[1]); if (side_fds[0] != 4) { dup2(side_fds[0], 4); close(side_fds[0]); } close(side_fds[1]); if (do_trickle) { /* * Write 10 spaces, 1 per second... */ int i; /* Looping var */ for (i = 0; i < 10; i ++) { write(1, " ", 1); sleep(1); } } else if (do_cancel) { /* * Write PS or PCL lines until we see SIGTERM... */ int line = 0, page = 0; /* Current line and page */ ssize_t bytes; /* Number of bytes of response data */ char buffer[1024]; /* Output buffer */ if (do_pcl) write(1, "\033E", 2); else write(1, "%!\n/Courier findfont 12 scalefont setfont 0 setgray\n", 52); while (!job_canceled) { if (line == 0) { page ++; if (do_pcl) snprintf(buffer, sizeof(buffer), "PCL Page %d\r\n\r\n", page); else snprintf(buffer, sizeof(buffer), "18 732 moveto (PS Page %d) show\n", page); write(1, buffer, strlen(buffer)); } line ++; if (do_pcl) snprintf(buffer, sizeof(buffer), "Line %d\r\n", line); else snprintf(buffer, sizeof(buffer), "18 %d moveto (Line %d) show\n", 720 - line * 12, line); write(1, buffer, strlen(buffer)); if (line >= 55) { /* * Eject after 55 lines... */ line = 0; if (do_pcl) write(1, "\014", 1); else write(1, "showpage\n", 9); } /* * Check for back-channel data... */ if ((bytes = cupsBackChannelRead(buffer, sizeof(buffer), 0)) > 0) write(2, buffer, (size_t)bytes); /* * Throttle output to ~100hz... */ usleep(10000); } /* * Eject current page with info... */ if (do_pcl) snprintf(buffer, sizeof(buffer), "Canceled on line %d of page %d\r\n\014\033E", line, page); else snprintf(buffer, sizeof(buffer), "\n18 %d moveto (Canceled on line %d of page %d)\nshowpage\n", 720 - line * 12, line, page); write(1, buffer, strlen(buffer)); /* * See if we get any back-channel data... */ while ((bytes = cupsBackChannelRead(buffer, sizeof(buffer), 5.0)) > 0) write(2, buffer, (size_t)bytes); exit(0); } else { /* * Do PS or PCL query + test pages. */ char buffer[1024]; /* Buffer for response data */ ssize_t bytes; /* Number of bytes of response data */ double timeout; /* Timeout */ const char *data; /* Data to send */ static const char *pcl_data = /* PCL data */ "\033%-12345X@PJL\r\n" "@PJL JOB NAME = \"Hello, World!\"\r\n" "@PJL INFO USTATUS\r\n" "@PJL ENTER LANGUAGE = PCL\r\n" "\033E" "Hello, World!\n" "\014" "\033%-12345X@PJL\r\n" "@PJL EOJ NAME=\"Hello, World!\"\r\n" "\033%-12345X"; static const char *ps_data = /* PostScript data */ "%!\n" "save\n" "product = flush\n" "currentpagedevice /PageSize get aload pop\n" "2 copy gt {exch} if\n" "(Unknown)\n" "19 dict\n" "dup [612 792] (Letter) put\n" "dup [612 1008] (Legal) put\n" "dup [612 935] (w612h935) put\n" "dup [522 756] (Executive) put\n" "dup [595 842] (A4) put\n" "dup [420 595] (A5) put\n" "dup [499 709] (ISOB5) put\n" "dup [516 728] (B5) put\n" "dup [612 936] (w612h936) put\n" "dup [284 419] (Postcard) put\n" "dup [419.5 567] (DoublePostcard) put\n" "dup [558 774] (w558h774) put\n" "dup [553 765] (w553h765) put\n" "dup [522 737] (w522h737) put\n" "dup [499 709] (EnvISOB5) put\n" "dup [297 684] (Env10) put\n" "dup [459 649] (EnvC5) put\n" "dup [312 624] (EnvDL) put\n" "dup [279 540] (EnvMonarch) put\n" "{ exch aload pop 4 index sub abs 5 le exch\n" " 5 index sub abs 5 le and\n" " {exch pop exit} {pop} ifelse\n" "} bind forall\n" "= flush pop pop\n" "/Courier findfont 12 scalefont setfont\n" "0 setgray 36 720 moveto (Hello, ) show product show (!) show\n" "showpage\n" "restore\n" "\004"; if (do_pcl) data = pcl_data; else data = ps_data; write(1, data, strlen(data)); backendMessage("DEBUG: START\n"); timeout = 60.0; while ((bytes = cupsBackChannelRead(buffer, sizeof(buffer), timeout)) > 0) { write(2, buffer, (size_t)bytes); timeout = 5.0; } backendMessage("\nDEBUG: END\n"); } exit(0); } else if (data_pid < 0) { perror("testbackend: Unable to fork"); return (1); } } else data_fds[0] = data_fds[1] = -1; /* * Execute the backend... */ if ((back_pid = fork()) == 0) { /* * Child comes here... */ if (do_trickle || do_ps || do_pcl || do_cancel) { if (data_fds[0] != 0) { dup2(data_fds[0], 0); close(data_fds[0]); } close(data_fds[1]); } if (!show_log) { if ((fd = open("/dev/null", O_WRONLY)) != 2) { dup2(fd, 2); close(fd); } } if (back_fds[1] != 3) { dup2(back_fds[1], 3); close(back_fds[0]); } close(back_fds[1]); if (side_fds[1] != 4) { dup2(side_fds[1], 4); close(side_fds[0]); } close(side_fds[1]); execv(backend, argv + first_arg); fprintf(stderr, "testbackend: Unable to execute \"%s\": %s\n", backend, strerror(errno)); return (errno); } else if (back_pid < 0) { perror("testbackend: Unable to fork"); return (1); } /* * Parent comes here, setup back and side channel file descriptors... */ if (do_trickle || do_ps || do_pcl || do_cancel) { close(data_fds[0]); close(data_fds[1]); } if (back_fds[0] != 3) { dup2(back_fds[0], 3); close(back_fds[0]); } close(back_fds[1]); if (side_fds[0] != 4) { dup2(side_fds[0], 4); close(side_fds[0]); } close(side_fds[1]); /* * Do side-channel tests as needed, then wait for the backend... */ if (do_side_tests) { int length; /* Length of buffer */ char buffer[2049]; /* Buffer for response */ cups_sc_status_t scstatus; /* Status of side-channel command */ static const char * const statuses[] = { "CUPS_SC_STATUS_NONE", /* No status */ "CUPS_SC_STATUS_OK", /* Operation succeeded */ "CUPS_SC_STATUS_IO_ERROR", /* An I/O error occurred */ "CUPS_SC_STATUS_TIMEOUT", /* The backend did not respond */ "CUPS_SC_STATUS_NO_RESPONSE", /* The device did not respond */ "CUPS_SC_STATUS_BAD_MESSAGE", /* The command/response message was invalid */ "CUPS_SC_STATUS_TOO_BIG", /* Response too big */ "CUPS_SC_STATUS_NOT_IMPLEMENTED" /* Command not implemented */ }; sleep(2); length = 0; scstatus = cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, buffer, &length, 60.0); printf("CUPS_SC_CMD_DRAIN_OUTPUT returned %s\n", statuses[scstatus]); length = 1; scstatus = cupsSideChannelDoRequest(CUPS_SC_CMD_GET_BIDI, buffer, &length, 5.0); printf("CUPS_SC_CMD_GET_BIDI returned %s, %d\n", statuses[scstatus], buffer[0]); length = sizeof(buffer) - 1; scstatus = cupsSideChannelDoRequest(CUPS_SC_CMD_GET_DEVICE_ID, buffer, &length, 5.0); buffer[length] = '\0'; printf("CUPS_SC_CMD_GET_DEVICE_ID returned %s, \"%s\"\n", statuses[scstatus], buffer); length = 1; scstatus = cupsSideChannelDoRequest(CUPS_SC_CMD_GET_STATE, buffer, &length, 5.0); printf("CUPS_SC_CMD_GET_STATE returned %s, %02X\n", statuses[scstatus], buffer[0] & 255); if (do_walk) { /* * Walk the OID tree... */ scstatus = cupsSideChannelSNMPWalk(oid, 5.0, walk_cb, NULL); printf("CUPS_SC_CMD_SNMP_WALK returned %s\n", statuses[scstatus]); } else { /* * Lookup the same OID twice... */ length = sizeof(buffer); scstatus = cupsSideChannelSNMPGet(oid, buffer, &length, 5.0); printf("CUPS_SC_CMD_SNMP_GET %s returned %s, %d bytes (%s)\n", oid, statuses[scstatus], (int)length, buffer); length = sizeof(buffer); scstatus = cupsSideChannelSNMPGet(oid, buffer, &length, 5.0); printf("CUPS_SC_CMD_SNMP_GET %s returned %s, %d bytes (%s)\n", oid, statuses[scstatus], (int)length, buffer); } length = 0; scstatus = cupsSideChannelDoRequest(CUPS_SC_CMD_SOFT_RESET, buffer, &length, 5.0); printf("CUPS_SC_CMD_SOFT_RESET returned %s\n", statuses[scstatus]); } if (do_cancel) { sleep(1); kill(data_pid, SIGTERM); kill(back_pid, SIGTERM); } while ((pid = wait(&status)) > 0) { if (status) { if (WIFEXITED(status)) printf("%s exited with status %d!\n", pid == back_pid ? backend : "test", WEXITSTATUS(status)); else printf("%s crashed with signal %d!\n", pid == back_pid ? backend : "test", WTERMSIG(status)); } } /* * Exit accordingly... */ return (status != 0); } /* * 'sigterm_handler()' - Flag when we get SIGTERM. */ static void sigterm_handler(int sig) /* I - Signal */ { (void)sig; job_canceled = 1; } /* * 'usage()' - Show usage information. */ static void usage(void) { puts("Usage: testbackend [-cancel] [-d] [-ps | -pcl] [-s [-get OID] " "[-walk OID]] [-t] device-uri job-id user title copies options [file]"); puts(""); puts("Options:"); puts(" -cancel Simulate a canceled print job after 2 seconds."); puts(" -d Show log messages from backend."); puts(" -get OID Lookup the specified SNMP OID."); puts(" (.1.3.6.1.2.1.43.10.2.1.4.1.1 is a good one for printers)"); puts(" -pcl Send PCL+PJL query and test page to backend."); puts(" -ps Send PostScript query and test page to backend."); puts(" -s Do side-channel + SNMP tests."); puts(" -t Send spaces slowly to backend ('trickle')."); puts(" -walk OID Walk the specified SNMP OID."); puts(" (.1.3.6.1.2.1.43 is a good one for printers)"); exit(1); } /* * 'walk_cb()' - Show results of cupsSideChannelSNMPWalk... */ static void walk_cb(const char *oid, /* I - OID */ const char *data, /* I - Data */ int datalen, /* I - Length of data */ void *context) /* I - Context (unused) */ { char temp[80]; (void)context; if ((size_t)datalen > (sizeof(temp) - 1)) { memcpy(temp, data, sizeof(temp) - 1); temp[sizeof(temp) - 1] = '\0'; } else { memcpy(temp, data, (size_t)datalen); temp[datalen] = '\0'; } printf("CUPS_SC_CMD_SNMP_WALK %s, %d bytes (%s)\n", oid, datalen, temp); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/test1284.c�����������������������������������������������������������������������0000644�0001750�0001750�00000002634�14502571342�015417� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * IEEE-1284 support functions test program for CUPS. * * Copyright © 2007-2010 by Apple Inc. * Copyright © 1997-2006 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include <cups/string-private.h> #ifdef _WIN32 # include <io.h> #else # include <unistd.h> # include <fcntl.h> #endif /* _WIN32 */ #include "ieee1284.c" /* * 'main()' - Test the device-ID functions. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i, /* Looping var */ fd; /* File descriptor */ char device_id[1024], /* 1284 device ID string */ make_model[1024], /* make-and-model string */ uri[1024]; /* URI string */ if (argc < 2) { puts("Usage: test1284 device-file [... device-file-N]"); exit(1); } for (i = 1; i < argc; i ++) { if ((fd = open(argv[i], O_RDWR)) < 0) { perror(argv[i]); return (errno); } printf("%s:\n", argv[i]); backendGetDeviceID(fd, device_id, sizeof(device_id), make_model, sizeof(make_model), "test", uri, sizeof(uri)); printf(" device_id=\"%s\"\n", device_id); printf(" make_model=\"%s\"\n", make_model); printf(" uri=\"%s\"\n", uri); close(fd); } return (0); } ����������������������������������������������������������������������������������������������������cups-2.4.7/backend/socket.c�������������������������������������������������������������������������0000644�0001750�0001750�00000026066�14502571342�015416� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * AppSocket backend for CUPS. * * Copyright © 2007-2018 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include <cups/http-private.h> #include "backend-private.h" #include <stdarg.h> #include <sys/types.h> #include <sys/stat.h> #ifdef _WIN32 # include <winsock.h> #else # include <unistd.h> # include <fcntl.h> # include <sys/socket.h> # include <netinet/in.h> # include <arpa/inet.h> # include <netdb.h> #endif /* _WIN32 */ /* * Local functions... */ static ssize_t wait_bc(int device_fd, int secs); /* * 'main()' - Send a file to the printer or server. * * Usage: * * printer-uri job-id user title copies options [file] */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { const char *device_uri; /* Device URI */ char scheme[255], /* Scheme in URI */ hostname[1024], /* Hostname */ username[255], /* Username info (not used) */ resource[1024], /* Resource info (not used) */ *options, /* Pointer to options */ *name, /* Name of option */ *value, /* Value of option */ sep; /* Option separator */ int print_fd; /* Print file */ int copies; /* Number of copies to print */ time_t start_time; /* Time of first connect */ int contimeout; /* Connection timeout */ int waiteof; /* Wait for end-of-file? */ int port; /* Port number */ int delay; /* Delay for retries... */ int device_fd; /* AppSocket */ int error; /* Error code (if any) */ http_addrlist_t *addrlist, /* Address list */ *addr; /* Connected address */ char addrname[256]; /* Address name */ int snmp_enabled = 1; /* Is SNMP enabled? */ int snmp_fd, /* SNMP socket */ start_count, /* Page count via SNMP at start */ page_count, /* Page count via SNMP */ have_supplies; /* Printer supports supply levels? */ ssize_t bytes = 0, /* Initial bytes read */ tbytes; /* Total number of bytes written */ char buffer[1024]; /* Initial print buffer */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE signals... */ #ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); #else signal(SIGPIPE, SIG_IGN); #endif /* HAVE_SIGSET */ /* * Check command-line... */ if (argc == 1) { printf("network socket \"Unknown\" \"%s\"\n", _cupsLangString(cupsLangDefault(), _("AppSocket/HP JetDirect"))); return (CUPS_BACKEND_OK); } else if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (CUPS_BACKEND_FAILED); } /* * If we have 7 arguments, print the file named on the command-line. * Otherwise, send stdin instead... */ if (argc == 6) { print_fd = 0; copies = 1; } else { /* * Try to open the print file... */ if ((print_fd = open(argv[6], O_RDONLY)) < 0) { _cupsLangPrintError("ERROR", _("Unable to open print file")); return (CUPS_BACKEND_FAILED); } copies = atoi(argv[4]); } /* * Extract the hostname and port number from the URI... */ while ((device_uri = cupsBackendDeviceURI(argv)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer.")); sleep(10); if (getenv("CLASS") != NULL) return (CUPS_BACKEND_FAILED); } httpSeparateURI(HTTP_URI_CODING_ALL, device_uri, scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (port == 0) port = 9100; /* Default to HP JetDirect/Tektronix PhaserShare */ /* * Get options, if any... */ waiteof = 1; contimeout = 7 * 24 * 60 * 60; if ((options = strchr(resource, '?')) != NULL) { /* * Yup, terminate the device name string and move to the first * character of the options... */ *options++ = '\0'; /* * Parse options... */ while (*options) { /* * Get the name... */ name = options; while (*options && *options != '=' && *options != '+' && *options != '&') options ++; if ((sep = *options) != '\0') *options++ = '\0'; if (sep == '=') { /* * Get the value... */ value = options; while (*options && *options != '+' && *options != '&') options ++; if (*options) *options++ = '\0'; } else value = (char *)""; /* * Process the option... */ if (!_cups_strcasecmp(name, "waiteof")) { /* * Set the wait-for-eof value... */ waiteof = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "snmp")) { /* * Enable/disable SNMP stuff... */ snmp_enabled = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "contimeout")) { /* * Set the connection timeout... */ if (atoi(value) > 0) contimeout = atoi(value); } } } /* * Then try finding the remote host... */ start_time = time(NULL); addrlist = backendLookup(hostname, port, NULL); /* * See if the printer supports SNMP... */ if (snmp_enabled) snmp_fd = _cupsSNMPOpen(addrlist->addr.addr.sa_family); else snmp_fd = -1; if (snmp_fd >= 0) have_supplies = !backendSNMPSupplies(snmp_fd, &(addrlist->addr), &start_count, NULL); else have_supplies = start_count = 0; /* * Wait for data from the filter... */ if (print_fd == 0) { if (!backendWaitLoop(snmp_fd, &(addrlist->addr), 1, backendNetworkSideCB)) return (CUPS_BACKEND_OK); else if ((bytes = read(0, buffer, sizeof(buffer))) <= 0) return (CUPS_BACKEND_OK); } /* * Connect to the printer... */ fprintf(stderr, "DEBUG: Connecting to %s:%d\n", hostname, port); _cupsLangPrintFilter(stderr, "INFO", _("Connecting to printer.")); for (delay = 5;;) { if ((addr = httpAddrConnect(addrlist, &device_fd)) == NULL) { error = errno; device_fd = -1; if (getenv("CLASS") != NULL) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. */ _cupsLangPrintFilter(stderr, "INFO", _("Unable to contact printer, queuing on next " "printer in class.")); /* * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Connection error: %s\n", strerror(error)); if (errno == ECONNREFUSED || errno == EHOSTDOWN || errno == EHOSTUNREACH || errno == ETIMEDOUT || errno == ENOTCONN) { if (contimeout && (time(NULL) - start_time) > contimeout) { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); return (CUPS_BACKEND_FAILED); } switch (error) { case EHOSTDOWN : _cupsLangPrintFilter(stderr, "WARNING", _("The printer may not exist or " "is unavailable at this time.")); break; case EHOSTUNREACH : default : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is unreachable at this " "time.")); break; case ECONNREFUSED : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is in use.")); break; } sleep((unsigned)delay); if (delay < 30) delay += 5; } else { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); sleep(30); } } else break; } fputs("STATE: -connecting-to-device\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("Connected to printer.")); fprintf(stderr, "DEBUG: Connected to %s:%d...\n", httpAddrString(&(addr->addr), addrname, sizeof(addrname)), httpAddrPort(&(addr->addr))); /* * Print everything... */ tbytes = 0; if (bytes > 0) tbytes += write(device_fd, buffer, (size_t)bytes); while (copies > 0 && tbytes >= 0) { copies --; if (print_fd != 0) { fputs("PAGE: 1 1\n", stderr); lseek(print_fd, 0, SEEK_SET); } if ((bytes = backendRunLoop(print_fd, device_fd, snmp_fd, &(addrlist->addr), 1, 0, backendNetworkSideCB)) < 0) tbytes = -1; else tbytes = bytes; if (print_fd != 0 && tbytes >= 0) _cupsLangPrintFilter(stderr, "INFO", _("Print file sent.")); } fputs("STATE: +cups-waiting-for-job-completed\n", stderr); if (waiteof && tbytes >= 0) { /* * Shutdown the socket and wait for the other end to finish... */ _cupsLangPrintFilter(stderr, "INFO", _("Waiting for printer to finish.")); shutdown(device_fd, 1); while (wait_bc(device_fd, 90) > 0); } /* * Collect the final page count as needed... */ if (have_supplies && !backendSNMPSupplies(snmp_fd, &(addrlist->addr), &page_count, NULL) && page_count > start_count) fprintf(stderr, "PAGE: total %d\n", page_count - start_count); /* * Close the socket connection... */ close(device_fd); httpAddrFreeList(addrlist); /* * Close the input file and return... */ if (print_fd != 0) close(print_fd); return (tbytes >= 0 ? CUPS_BACKEND_OK : CUPS_BACKEND_FAILED); } /* * 'wait_bc()' - Wait for back-channel data... */ static ssize_t /* O - # bytes read or -1 on error */ wait_bc(int device_fd, /* I - Socket */ int secs) /* I - Seconds to wait */ { struct timeval timeout; /* Timeout for select() */ fd_set input; /* Input set for select() */ ssize_t bytes; /* Number of back-channel bytes read */ char buffer[1024]; /* Back-channel buffer */ /* * Wait up to "secs" seconds for backchannel data... */ timeout.tv_sec = secs; timeout.tv_usec = 0; FD_ZERO(&input); FD_SET(device_fd, &input); if (select(device_fd + 1, &input, NULL, NULL, &timeout) > 0) { /* * Grab the data coming back and spit it out to stderr... */ if ((bytes = read(device_fd, buffer, sizeof(buffer))) > 0) { fprintf(stderr, "DEBUG: Received %d bytes of back-channel data\n", (int)bytes); cupsBackChannelWrite(buffer, (size_t)bytes, 1.0); } return (bytes); } else return (-1); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/snmp.txt�������������������������������������������������������������������������0000644�0001750�0001750�00000017634�14502571342�015501� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������snmp.txt - 2006-04-19 --------------------- This file lists the "interesting" bits from the command: snmpwalk -v 1 -c public HOST .1 for many network print servers and internal cards. It is mainly here for SNMP documentation and development purposes. AXIS 5600 SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM J.sp.00,JETDIRECT EX,JD28,EEPROM 6.16.5 SNMPv2-MIB::sysName.0 = STRING: HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceType.2 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceType.3 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Hewlett-Packard hp LaserJet 3380 HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Axis AXIS 5600 HOST-RESOURCES-MIB::hrDeviceDescr.3 = STRING: Axis AXIS 5600 HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.2 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.3 = OID: SNMPv2-SMI::zeroDotZero SNMPv2-SMI::enterprises.11.2.4.3.10.8.0 = STRING: "AXIS433AE8" SNMPv2-SMI::enterprises.368.2.3.2.601.0 = INTEGER: 9100 SNMPv2-SMI::enterprises.368.2.3.2.602.0 = INTEGER: 9101 SNMPv2-SMI::enterprises.368.2.3.2.603.0 = INTEGER: 9102 SNMPv2-SMI::enterprises.368.2.3.10.901.0 = STRING: "AXIS433AE8" AXIS OfficeBasic SNMPv2-MIB::sysDescr.0 = STRING: AXIS OfficeBasic Parallel Network Print Server V6.43 Sep 4 2003 HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: EPSON Stylus Photo 870 HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::zeroDotZero DLink DP-301P+ SNMPv2-MIB::sysDescr.0 = STRING: D-Link DP-301P+ Print Server Genicom ML280 SNMPv2-MIB::sysDescr.0 = STRING: GENICOM microLaser 280 SNMPv2-MIB::sysName.0 = STRING: PRQ_004F75 HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: MANUFACTURER:GENICOM;MODEL:microLaser 280; HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.3369.1.1.2.4 EPSON Type-B Network Card SNMPv2-MIB::sysDescr.0 = STRING: EPSON Type-B 10Base-T/100Base-TX Print Server SNMPv2-MIB::sysName.0 = STRING: StylusPro7600-BB87A8 HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: EPSON Stylus Pro 7600 HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.1248.1.2.1.22.69.109.117.108.97.116.101.83.116.121.108.117.115.32.80.114.111.32.55.54.48.48 SNMPv2-SMI::enterprises.11.2.3.9.1.1.7.0 = STRING: "MFG:EPSON;CMD:ESCPL2,BDC;MDL:Stylus Pro 7600;CLS:PRINTER;DES:EPSON Stylus Pro 7600;" SNMPv2-SMI::enterprises.1248.1.2.2.1.1.1.1.1 = STRING: "MFG:EPSON;CMD:ESCPL2,BDC;MDL:Stylus Pro 7600;CLS:PRINTER;DES:EPSON Stylus Pro 7600;" EPSON Wireless 802.11b Print Server SNMPv2-MIB::sysDescr.0 = STRING: EPSON Wireless LAN Print Interface compatible with an HP JETDIRECT EX SNMPv2-MIB::sysName.0 = STRING: EAI_0F550B HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::zeroDotZero HP JetDirect EX3plus SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM D.04.03,JETDIRECT EX,JD26,EEPROM D.05.22 SNMPv2-MIB::sysName.0 = STRING: NPID1EC0F HP LJ4000 SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM G.05.34,JETDIRECT,JD30,EEPROM G.08.32 SNMPv2-MIB::sysName.0 = STRING: HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HP LaserJet 4000 Series HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1.2.5 HP CLJ4550 SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM L.20.07,JETDIRECT,JD84,EEPROM L.21.22,CIDATE 07/06/2001 SNMPv2-MIB::sysName.0 = STRING: NPI02FDE7 HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: HP Color LaserJet 4550 HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Hewlett-Packard Dynamic RAM Disk HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1.2.14 Lexmark C522 SNMPv2-MIB::sysDescr.0 = STRING: Lexmark C522 version NS.NP.N212 kernel 2.6.6 All-N-1 SNMPv2-MIB::sysName.0 = STRING: ET0004000D0CCA HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceType.2 = OID: HOST-RESOURCES-TYPES::hrDeviceNonVolatileMemory HOST-RESOURCES-MIB::hrDeviceType.3 = OID: HOST-RESOURCES-TYPES::hrDeviceProcessor HOST-RESOURCES-MIB::hrDeviceType.4 = OID: HOST-RESOURCES-TYPES::hrDeviceSerialPort HOST-RESOURCES-MIB::hrDeviceType.5 = OID: HOST-RESOURCES-TYPES::hrDeviceNetwork HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Lexmark C522 9421TTV LS.FA.P129 HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Nonvolatile RAM HOST-RESOURCES-MIB::hrDeviceDescr.3 = STRING: IBM 750 Rev CXr HOST-RESOURCES-MIB::hrDeviceDescr.4 = STRING: USB Interface HOST-RESOURCES-MIB::hrDeviceDescr.5 = STRING: Network Interface HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.2 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.3 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.4 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrDeviceID.5 = OID: SNMPv2-SMI::enterprises.641.1 SNMPv2-SMI::enterprises.641.2.1.2.1.2.1 = STRING: "Lexmark C522" SNMPv2-SMI::enterprises.641.2.1.2.1.3.1 = STRING: "MANUFACTURER:Lexmark International;COMMAND SET:;MODEL:Lexmark C522" Linksys EPSX3 SNMPv2-MIB::sysDescr.0 = STRING: ETHERNET MULTI-ENVIRONMENT.ROM, JETDIRECT EX, EEPROM 6016 NetGear PS113 SNMPv2-MIB::sysDescr.0 = STRING: A SNMP proxy agent. Okidata C7200 SNMPv2-MIB::sysDescr.0 = STRING: OkiLAN 6200e SNMPv2-MIB::sysName.0 = STRING: OKI7009715 HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceType.2 = OID: HOST-RESOURCES-TYPES::hrDeviceNonVolat ileMemory HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: C7200 HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: FLASH0 HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.2001.1.1.1.1 HOST-RESOURCES-MIB::hrDeviceID.2 = OID: SNMPv2-SMI::zeroDotZero SNMPv2-SMI::mib-2.43.14.1.1.3.1.1 = STRING: "IEEE 1284" SNMPv2-SMI::mib-2.43.14.1.1.3.1.2 = STRING: "EtherTalk Phase 2" SNMPv2-SMI::mib-2.43.14.1.1.3.1.3 = STRING: "LPD" SNMPv2-SMI::mib-2.43.14.1.1.3.1.4 = STRING: "Netware Rprinter" SNMPv2-SMI::mib-2.43.14.1.1.3.1.5 = STRING: "Netware Bindery or NDS Pserver" SNMPv2-SMI::mib-2.43.14.1.1.3.1.6 = STRING: "Raw TCP Port 9100" SNMPv2-SMI::mib-2.43.14.1.1.3.1.7 = STRING: "FTP" SNMPv2-SMI::mib-2.43.14.1.1.3.1.8 = STRING: "DLC/LLC" SNMPv2-SMI::enterprises.2001.1.1.1.1.1.3530.0 = STRING: "C7200" Xerox N2025 SNMPv2-MIB::sysDescr.0 = STRING: Xerox DocuPrint N2025 Network Laser Printer - 2.12-02 SNMPv2-MIB::sysName.0 = STRING: HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter HOST-RESOURCES-MIB::hrDeviceType.2 = OID: HOST-RESOURCES-TYPES::hrDeviceParallelPort HOST-RESOURCES-MIB::hrDeviceType.3 = OID: HOST-RESOURCES-TYPES::hrDeviceNetwork HOST-RESOURCES-MIB::hrDeviceType.6 = OID: HOST-RESOURCES-TYPES::hrDeviceProcessor HOST-RESOURCES-MIB::hrDeviceType.7 = OID: HOST-RESOURCES-TYPES::hrDeviceOther HOST-RESOURCES-MIB::hrDeviceType.9 = OID: HOST-RESOURCES-TYPES::hrDeviceVolatileMemory HOST-RESOURCES-MIB::hrDeviceType.10 = OID: HOST-RESOURCES-TYPES::hrDeviceNonVolatileMemory HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Xerox DocuPrint N2025 Network Laser Printer - 2.12-02 HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: IEEE 1284 port HOST-RESOURCES-MIB::hrDeviceDescr.3 = STRING: Ethernet port HOST-RESOURCES-MIB::hrDeviceDescr.6 = STRING: Motorola Power PC HOST-RESOURCES-MIB::hrDeviceDescr.7 = STRING: USB Port HOST-RESOURCES-MIB::hrDeviceDescr.9 = STRING: RAM Memory HOST-RESOURCES-MIB::hrDeviceDescr.10 = STRING: ROM Memory HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.253.8.62.1.3.2.17.1 ����������������������������������������������������������������������������������������������������cups-2.4.7/backend/snmp.c���������������������������������������������������������������������������0000644�0001750�0001750�00000101405�14502571342�015072� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * SNMP discovery backend for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2007-2014 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #ifndef HAVE_GETIFADDRS # include <cups/getifaddrs-internal.h> #endif // !HAVE_GETIFADDRS #include <cups/array.h> #include <cups/file.h> #include <cups/http-private.h> #include <regex.h> /* * This backend implements SNMP printer discovery. It uses a broadcast- * based approach to get SNMP response packets from potential printers, * requesting OIDs from the Host and Port Monitor MIBs, does a URI * lookup based on the device description string, and finally a probe of * port 9100 (AppSocket) and 515 (LPD). * * The current focus is on printers with internal network cards, although * the code also works with many external print servers as well. * * The backend reads the snmp.conf file from the CUPS_SERVERROOT directory * which can contain comments, blank lines, or any number of the following * directives: * * Address ip-address * Address @LOCAL * Address @IF(name) * Community name * DebugLevel N * DeviceURI "regex pattern" uri * HostNameLookups on * HostNameLookups off * MaxRunTime N * * The default is to use: * * Address @LOCAL * Community public * DebugLevel 0 * HostNameLookups off * MaxRunTime 120 * * This backend is known to work with the following network printers and * print servers: * * Axis OfficeBasic, 5400, 5600 * Brother * EPSON * Genicom * HP JetDirect * Lexmark * Sharp * Tektronix * Xerox * * It does not currently work with: * * DLink * Linksys * Netgear * Okidata * * (for all of these, they do not support the Host MIB) */ /* * Types... */ enum /**** Request IDs for each field ****/ { DEVICE_TYPE = 1, DEVICE_DESCRIPTION, DEVICE_LOCATION, DEVICE_ID, DEVICE_URI, DEVICE_PRODUCT }; typedef struct device_uri_s /**** DeviceURI values ****/ { regex_t re; /* Regular expression to match */ cups_array_t *uris; /* URIs */ } device_uri_t; typedef struct snmp_cache_s /**** SNMP scan cache ****/ { http_addr_t address; /* Address of device */ char *addrname, /* Name of device */ *uri, /* device-uri */ *id, /* device-id */ *info, /* device-info */ *location, /* device-location */ *make_and_model; /* device-make-and-model */ int sent; /* Has this device been listed? */ } snmp_cache_t; /* * Local functions... */ static char *add_array(cups_array_t *a, const char *s); static void add_cache(http_addr_t *addr, const char *addrname, const char *uri, const char *id, const char *make_and_model); static device_uri_t *add_device_uri(char *value); static void alarm_handler(int sig); static int compare_cache(snmp_cache_t *a, snmp_cache_t *b); static void debug_printf(const char *format, ...); static void fix_make_model(char *make_model, const char *old_make_model, int make_model_size); static void free_array(cups_array_t *a); static void free_cache(void); static http_addrlist_t *get_interface_addresses(const char *ifname); static void list_device(snmp_cache_t *cache); static const char *password_cb(const char *prompt); static void probe_device(snmp_cache_t *device); static void read_snmp_conf(const char *address); static void read_snmp_response(int fd); static double run_time(void); static void scan_devices(int ipv4, int ipv6); static int try_connect(http_addr_t *addr, const char *addrname, int port); static void update_cache(snmp_cache_t *device, const char *uri, const char *id, const char *make_model); /* * Local globals... */ static cups_array_t *Addresses = NULL; static cups_array_t *Communities = NULL; static cups_array_t *Devices = NULL; static int DebugLevel = 0; static const int DescriptionOID[] = { CUPS_OID_hrDeviceDescr, 1, -1 }; static const int LocationOID[] = { CUPS_OID_sysLocation, 0, -1 }; static const int DeviceTypeOID[] = { CUPS_OID_hrDeviceType, 1, -1 }; static const int DeviceIdOID[] = { CUPS_OID_ppmPrinterIEEE1284DeviceId, 1, -1 }; static const int UriOID[] = { CUPS_OID_ppmPortServiceNameOrURI, 1, 1, -1 }; static const int LexmarkProductOID[] = { 1,3,6,1,4,1,641,2,1,2,1,2,1,-1 }; static const int LexmarkProductOID2[] = { 1,3,6,1,4,1,674,10898,100,2,1,2,1,2,1,-1 }; static const int LexmarkDeviceIdOID[] = { 1,3,6,1,4,1,641,2,1,2,1,3,1,-1 }; static const int HPDeviceIdOID[] = { 1,3,6,1,4,1,11,2,3,9,1,1,7,0,-1 }; static const int RicohDeviceIdOID[] = { 1,3,6,1,4,1,367,3,2,1,1,1,11,0,-1 }; static const int XeroxProductOID[] = { 1,3,6,1,4,1,128,2,1,3,1,2,0,-1 }; static cups_array_t *DeviceURIs = NULL; static int HostNameLookups = 0; static int MaxRunTime = 120; static struct timeval StartTime; /* * 'main()' - Discover printers via SNMP. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { int ipv4, /* SNMP IPv4 socket */ ipv6; /* SNMP IPv6 socket */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Check command-line options... */ if (argc > 2) { _cupsLangPuts(stderr, _("Usage: snmp [host-or-ip-address]")); return (1); } /* * Set the password callback for IPP operations... */ cupsSetPasswordCB(password_cb); /* * Catch SIGALRM signals... */ #ifdef HAVE_SIGSET sigset(SIGALRM, alarm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGALRM); action.sa_handler = alarm_handler; sigaction(SIGALRM, &action, NULL); #else signal(SIGALRM, alarm_handler); #endif /* HAVE_SIGSET */ /* * Open the SNMP socket... */ if ((ipv4 = _cupsSNMPOpen(AF_INET)) < 0) return (1); #ifdef AF_INET6 if ((ipv6 = _cupsSNMPOpen(AF_INET6)) < 0) perror("DEBUG: Unable to create IPv6 socket"); #else ipv6 = -1; #endif /* AF_INET6 */ /* * Read the configuration file and any cache data... */ read_snmp_conf(argv[1]); _cupsSNMPSetDebug(DebugLevel); Devices = cupsArrayNew((cups_array_func_t)compare_cache, NULL); /* * Scan for devices... */ scan_devices(ipv4, ipv6); /* * Close, free, and return with no errors... */ _cupsSNMPClose(ipv4); if (ipv6 >= 0) _cupsSNMPClose(ipv6); free_array(Addresses); free_array(Communities); free_cache(); return (0); } /* * 'add_array()' - Add a string to an array. */ static char * /* O - New string */ add_array(cups_array_t *a, /* I - Array */ const char *s) /* I - String to add */ { char *dups; /* New string */ dups = strdup(s); cupsArrayAdd(a, dups); return (dups); } /* * 'add_cache()' - Add a cached device... */ static void add_cache(http_addr_t *addr, /* I - Device IP address */ const char *addrname, /* I - IP address or name string */ const char *uri, /* I - Device URI */ const char *id, /* I - 1284 device ID */ const char *make_and_model) /* I - Make and model */ { snmp_cache_t *temp; /* New device entry */ debug_printf("DEBUG: add_cache(addr=%p, addrname=\"%s\", uri=\"%s\", " "id=\"%s\", make_and_model=\"%s\")\n", addr, addrname, uri ? uri : "(null)", id ? id : "(null)", make_and_model ? make_and_model : "(null)"); if ((temp = calloc(1, sizeof(snmp_cache_t))) == NULL) { perror("DEBUG: Unable to allocate cache entry"); return; } memcpy(&(temp->address), addr, sizeof(temp->address)); temp->addrname = strdup(addrname); if (uri) temp->uri = strdup(uri); if (id) temp->id = strdup(id); if (make_and_model) temp->make_and_model = strdup(make_and_model); cupsArrayAdd(Devices, temp); if (uri) list_device(temp); } /* * 'add_device_uri()' - Add a device URI to the cache. * * The value string is modified (chopped up) as needed. */ static device_uri_t * /* O - Device URI */ add_device_uri(char *value) /* I - Value from snmp.conf */ { device_uri_t *device_uri; /* Device URI */ char *start; /* Start of value */ /* * Allocate memory as needed... */ if (!DeviceURIs) DeviceURIs = cupsArrayNew(NULL, NULL); if (!DeviceURIs) return (NULL); if ((device_uri = calloc(1, sizeof(device_uri_t))) == NULL) return (NULL); if ((device_uri->uris = cupsArrayNew(NULL, NULL)) == NULL) { free(device_uri); return (NULL); } /* * Scan the value string for the regular expression and URI(s)... */ value ++; /* Skip leading " */ for (start = value; *value && *value != '\"'; value ++) if (*value == '\\' && value[1]) _cups_strcpy(value, value + 1); if (!*value) { fputs("ERROR: Missing end quote for DeviceURI!\n", stderr); cupsArrayDelete(device_uri->uris); free(device_uri); return (NULL); } *value++ = '\0'; if (regcomp(&(device_uri->re), start, REG_EXTENDED | REG_ICASE)) { fputs("ERROR: Bad regular expression for DeviceURI!\n", stderr); cupsArrayDelete(device_uri->uris); free(device_uri); return (NULL); } while (*value) { while (isspace(*value & 255)) value ++; if (!*value) break; for (start = value; *value && !isspace(*value & 255); value ++); if (*value) *value++ = '\0'; cupsArrayAdd(device_uri->uris, strdup(start)); } /* * Add the device URI to the list and return it... */ cupsArrayAdd(DeviceURIs, device_uri); return (device_uri); } /* * 'alarm_handler()' - Handle alarm signals... */ static void alarm_handler(int sig) /* I - Signal number */ { /* * Do nothing... */ (void)sig; #if !defined(HAVE_SIGSET) && !defined(HAVE_SIGACTION) signal(SIGALRM, alarm_handler); #endif /* !HAVE_SIGSET && !HAVE_SIGACTION */ if (DebugLevel) backendMessage("DEBUG: ALARM!\n"); } /* * 'compare_cache()' - Compare two cache entries. */ static int /* O - Result of comparison */ compare_cache(snmp_cache_t *a, /* I - First cache entry */ snmp_cache_t *b) /* I - Second cache entry */ { return (_cups_strcasecmp(a->addrname, b->addrname)); } /* * 'debug_printf()' - Display some debugging information. */ static void debug_printf(const char *format, /* I - Printf-style format string */ ...) /* I - Additional arguments as needed */ { va_list ap; /* Pointer to arguments */ if (!DebugLevel) return; va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap); } /* * 'fix_make_model()' - Fix common problems in the make-and-model string. */ static void fix_make_model( char *make_model, /* I - New make-and-model string */ const char *old_make_model, /* I - Old make-and-model string */ int make_model_size) /* I - Size of new string buffer */ { char *mmptr; /* Pointer into make-and-model string */ /* * Fix some common problems with the make-and-model string so * that printer driver detection works better... */ if (!_cups_strncasecmp(old_make_model, "Hewlett-Packard", 15)) { /* * Strip leading Hewlett-Packard and hp prefixes and replace * with a single HP manufacturer prefix... */ mmptr = (char *)old_make_model + 15; while (isspace(*mmptr & 255)) mmptr ++; if (!_cups_strncasecmp(mmptr, "hp", 2)) { mmptr += 2; while (isspace(*mmptr & 255)) mmptr ++; } make_model[0] = 'H'; make_model[1] = 'P'; make_model[2] = ' '; strlcpy(make_model + 3, mmptr, (size_t)make_model_size - 3); } else if (!_cups_strncasecmp(old_make_model, "deskjet", 7)) snprintf(make_model, (size_t)make_model_size, "HP DeskJet%s", old_make_model + 7); else if (!_cups_strncasecmp(old_make_model, "officejet", 9)) snprintf(make_model, (size_t)make_model_size, "HP OfficeJet%s", old_make_model + 9); else if (!_cups_strncasecmp(old_make_model, "stylus_pro_", 11)) snprintf(make_model, (size_t)make_model_size, "EPSON Stylus Pro %s", old_make_model + 11); else strlcpy(make_model, old_make_model, (size_t)make_model_size); if ((mmptr = strstr(make_model, ", Inc.,")) != NULL) { /* * Strip inc. from name, e.g. "Tektronix, Inc., Phaser 560" * becomes "Tektronix Phaser 560"... */ _cups_strcpy(mmptr, mmptr + 7); } if ((mmptr = strstr(make_model, " Network")) != NULL) { /* * Drop unnecessary informational text, e.g. "Xerox DocuPrint N2025 * Network LaserJet - 2.12" becomes "Xerox DocuPrint N2025"... */ *mmptr = '\0'; } if ((mmptr = strchr(make_model, ',')) != NULL) { /* * Drop anything after a trailing comma... */ *mmptr = '\0'; } } /* * 'free_array()' - Free an array of strings. */ static void free_array(cups_array_t *a) /* I - Array */ { char *s; /* Current string */ for (s = (char *)cupsArrayFirst(a); s; s = (char *)cupsArrayNext(a)) free(s); cupsArrayDelete(a); } /* * 'free_cache()' - Free the array of cached devices. */ static void free_cache(void) { snmp_cache_t *cache; /* Cached device */ for (cache = (snmp_cache_t *)cupsArrayFirst(Devices); cache; cache = (snmp_cache_t *)cupsArrayNext(Devices)) { free(cache->addrname); if (cache->uri) free(cache->uri); if (cache->id) free(cache->id); if (cache->make_and_model) free(cache->make_and_model); free(cache); } cupsArrayDelete(Devices); Devices = NULL; } /* * 'get_interface_addresses()' - Get the broadcast address(es) associated * with an interface. */ static http_addrlist_t * /* O - List of addresses */ get_interface_addresses( const char *ifname) /* I - Interface name */ { struct ifaddrs *addrs, /* Interface address list */ *addr; /* Current interface address */ http_addrlist_t *first, /* First address in list */ *last, /* Last address in list */ *current; /* Current address */ if (getifaddrs(&addrs) < 0) return (NULL); for (addr = addrs, first = NULL, last = NULL; addr; addr = addr->ifa_next) { if ((addr->ifa_flags & IFF_BROADCAST) && addr->ifa_broadaddr && addr->ifa_broadaddr->sa_family == AF_INET && (!ifname || !strcmp(ifname, addr->ifa_name))) { if ((current = calloc(1, sizeof(http_addrlist_t))) != NULL) { memcpy(&(current->addr), addr->ifa_broadaddr, sizeof(struct sockaddr_in)); if (!last) first = current; else last->next = current; last = current; } } } freeifaddrs(addrs); return (first); } /* * 'list_device()' - List a device we found... */ static void list_device(snmp_cache_t *cache) /* I - Cached device */ { if (cache->uri) cupsBackendReport("network", cache->uri, cache->make_and_model, cache->info, cache->id, cache->location); } /* * 'password_cb()' - Handle authentication requests. * * All we do right now is return NULL, indicating that no authentication * is possible. */ static const char * /* O - Password (NULL) */ password_cb(const char *prompt) /* I - Prompt message */ { (void)prompt; /* Anti-compiler-warning-code */ return (NULL); } /* * 'probe_device()' - Probe a device to discover whether it is a printer. * * TODO: Try using the Port Monitor MIB to discover the correct protocol * to use - first need a commercially-available printer that supports * it, though... */ static void probe_device(snmp_cache_t *device) /* I - Device */ { char uri[1024], /* Full device URI */ *uriptr, /* Pointer into URI */ *format; /* Format string for device */ device_uri_t *device_uri; /* Current DeviceURI match */ debug_printf("DEBUG: %.3f Probing %s...\n", run_time(), device->addrname); #ifdef __APPLE__ /* * If the printer supports Bonjour/mDNS, don't report it from the SNMP backend. */ if (!try_connect(&(device->address), device->addrname, 5353)) { debug_printf("DEBUG: %s supports mDNS, not reporting!\n", device->addrname); return; } #endif /* __APPLE__ */ /* * Lookup the device in the match table... */ for (device_uri = (device_uri_t *)cupsArrayFirst(DeviceURIs); device_uri; device_uri = (device_uri_t *)cupsArrayNext(DeviceURIs)) if (device->make_and_model && !regexec(&(device_uri->re), device->make_and_model, 0, NULL, 0)) { /* * Found a match, add the URIs... */ for (format = (char *)cupsArrayFirst(device_uri->uris); format; format = (char *)cupsArrayNext(device_uri->uris)) { for (uriptr = uri; *format && uriptr < (uri + sizeof(uri) - 1);) if (*format == '%' && format[1] == 's') { /* * Insert hostname/address... */ strlcpy(uriptr, device->addrname, sizeof(uri) - (size_t)(uriptr - uri)); uriptr += strlen(uriptr); format += 2; } else *uriptr++ = *format++; *uriptr = '\0'; update_cache(device, uri, NULL, NULL); } return; } /* * Then try the standard ports... */ if (!try_connect(&(device->address), device->addrname, 9100)) { debug_printf("DEBUG: %s supports AppSocket!\n", device->addrname); snprintf(uri, sizeof(uri), "socket://%s", device->addrname); update_cache(device, uri, NULL, NULL); } else if (!try_connect(&(device->address), device->addrname, 515)) { debug_printf("DEBUG: %s supports LPD!\n", device->addrname); snprintf(uri, sizeof(uri), "lpd://%s/", device->addrname); update_cache(device, uri, NULL, NULL); } } /* * 'read_snmp_conf()' - Read the snmp.conf file. */ static void read_snmp_conf(const char *address) /* I - Single address to probe */ { cups_file_t *fp; /* File pointer */ char filename[1024], /* Filename */ line[1024], /* Line from file */ *value; /* Value on line */ int linenum; /* Line number */ const char *cups_serverroot; /* CUPS_SERVERROOT env var */ const char *debug; /* CUPS_DEBUG_LEVEL env var */ const char *runtime; /* CUPS_MAX_RUN_TIME env var */ /* * Initialize the global address and community lists... */ Addresses = cupsArrayNew(NULL, NULL); Communities = cupsArrayNew(NULL, NULL); if (address) add_array(Addresses, address); if ((debug = getenv("CUPS_DEBUG_LEVEL")) != NULL) DebugLevel = atoi(debug); if ((runtime = getenv("CUPS_MAX_RUN_TIME")) != NULL) MaxRunTime = atoi(runtime); /* * Find the snmp.conf file... */ if ((cups_serverroot = getenv("CUPS_SERVERROOT")) == NULL) cups_serverroot = CUPS_SERVERROOT; snprintf(filename, sizeof(filename), "%s/snmp.conf", cups_serverroot); if ((fp = cupsFileOpen(filename, "r")) != NULL) { /* * Read the snmp.conf file... */ linenum = 0; while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum)) { if (!value) fprintf(stderr, "ERROR: Missing value on line %d of %s!\n", linenum, filename); else if (!_cups_strcasecmp(line, "Address")) { if (!address) add_array(Addresses, value); } else if (!_cups_strcasecmp(line, "Community")) add_array(Communities, value); else if (!_cups_strcasecmp(line, "DebugLevel")) DebugLevel = atoi(value); else if (!_cups_strcasecmp(line, "DeviceURI")) { if (*value != '\"') fprintf(stderr, "ERROR: Missing double quote for regular expression on " "line %d of %s!\n", linenum, filename); else add_device_uri(value); } else if (!_cups_strcasecmp(line, "HostNameLookups")) HostNameLookups = !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "double"); else if (!_cups_strcasecmp(line, "MaxRunTime")) MaxRunTime = atoi(value); else fprintf(stderr, "ERROR: Unknown directive %s on line %d of %s!\n", line, linenum, filename); } cupsFileClose(fp); } /* * Use defaults if parameters are undefined... */ if (cupsArrayCount(Addresses) == 0) { /* * If we have no addresses, exit immediately... */ fprintf(stderr, "DEBUG: No address specified and no Address line in %s...\n", filename); exit(0); } if (cupsArrayCount(Communities) == 0) { fputs("INFO: Using default SNMP Community public\n", stderr); add_array(Communities, "public"); } } /* * 'read_snmp_response()' - Read and parse a SNMP response... */ static void read_snmp_response(int fd) /* I - SNMP socket file descriptor */ { char addrname[256]; /* Source address name */ cups_snmp_t packet; /* Decoded packet */ snmp_cache_t key, /* Search key */ *device; /* Matching device */ /* * Read the response data... */ if (!_cupsSNMPRead(fd, &packet, -1.0)) { fprintf(stderr, "ERROR: Unable to read data from socket: %s\n", strerror(errno)); return; } if (HostNameLookups) httpAddrLookup(&(packet.address), addrname, sizeof(addrname)); else httpAddrString(&(packet.address), addrname, sizeof(addrname)); debug_printf("DEBUG: %.3f Received data from %s...\n", run_time(), addrname); /* * Look for the response status code in the SNMP message header... */ if (packet.error) { fprintf(stderr, "ERROR: Bad SNMP packet from %s: %s\n", addrname, packet.error); return; } debug_printf("DEBUG: community=\"%s\"\n", packet.community); debug_printf("DEBUG: request-id=%d\n", packet.request_id); debug_printf("DEBUG: error-status=%d\n", packet.error_status); if (packet.error_status && packet.request_id != DEVICE_TYPE) return; /* * Find a matching device in the cache... */ key.addrname = addrname; device = (snmp_cache_t *)cupsArrayFind(Devices, &key); /* * Process the message... */ switch (packet.request_id) { case DEVICE_TYPE : /* * Got the device type response... */ if (device) { debug_printf("DEBUG: Discarding duplicate device type for \"%s\"...\n", addrname); return; } /* * Add the device and request the device data... */ add_cache(&(packet.address), addrname, NULL, NULL, NULL); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_DESCRIPTION, DescriptionOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_ID, DeviceIdOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_URI, UriOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_LOCATION, LocationOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_PRODUCT, LexmarkProductOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_PRODUCT, LexmarkProductOID2); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_ID, LexmarkDeviceIdOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_ID, RicohDeviceIdOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_PRODUCT, XeroxProductOID); _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1, packet.community, CUPS_ASN1_GET_REQUEST, DEVICE_ID, HPDeviceIdOID); break; case DEVICE_DESCRIPTION : if (device && packet.object_type == CUPS_ASN1_OCTET_STRING) { /* * Update an existing cache entry... */ char make_model[256]; /* Make and model */ if (strchr((char *)packet.object_value.string.bytes, ':') && strchr((char *)packet.object_value.string.bytes, ';')) { /* * Description is the IEEE-1284 device ID... */ char *ptr; /* Pointer into device ID */ for (ptr = (char *)packet.object_value.string.bytes; *ptr; ptr ++) if (*ptr == '\n') *ptr = ';'; /* A lot of bad printers put a newline */ if (!device->id) device->id = strdup((char *)packet.object_value.string.bytes); backendGetMakeModel((char *)packet.object_value.string.bytes, make_model, sizeof(make_model)); if (device->info) free(device->info); device->info = strdup(make_model); } else { /* * Description is plain text... */ fix_make_model(make_model, (char *)packet.object_value.string.bytes, sizeof(make_model)); if (device->info) free(device->info); device->info = strdup((char *)packet.object_value.string.bytes); } if (!device->make_and_model) device->make_and_model = strdup(make_model); } break; case DEVICE_ID : if (device && packet.object_type == CUPS_ASN1_OCTET_STRING && (!device->id || strlen(device->id) < packet.object_value.string.num_bytes)) { /* * Update an existing cache entry... */ char make_model[256]; /* Make and model */ char *ptr; /* Pointer into device ID */ for (ptr = (char *)packet.object_value.string.bytes; *ptr; ptr ++) if (*ptr == '\n') *ptr = ';'; /* A lot of bad printers put a newline */ if (device->id) free(device->id); device->id = strdup((char *)packet.object_value.string.bytes); /* * Convert the ID to a make and model string... */ backendGetMakeModel((char *)packet.object_value.string.bytes, make_model, sizeof(make_model)); if (device->make_and_model) free(device->make_and_model); device->make_and_model = strdup(make_model); } break; case DEVICE_LOCATION : if (device && packet.object_type == CUPS_ASN1_OCTET_STRING && !device->location) device->location = strdup((char *)packet.object_value.string.bytes); break; case DEVICE_PRODUCT : if (device && packet.object_type == CUPS_ASN1_OCTET_STRING && !device->id) { /* * Update an existing cache entry... */ if (!device->info) device->info = strdup((char *)packet.object_value.string.bytes); if (device->make_and_model) free(device->make_and_model); device->make_and_model = strdup((char *)packet.object_value.string.bytes); } break; case DEVICE_URI : if (device && packet.object_type == CUPS_ASN1_OCTET_STRING && !device->uri && packet.object_value.string.num_bytes > 3) { /* * Update an existing cache entry... */ char scheme[32], /* URI scheme */ userpass[256], /* Username:password in URI */ hostname[256], /* Hostname in URI */ resource[1024]; /* Resource path in URI */ int port; /* Port number in URI */ if (!strncmp((char *)packet.object_value.string.bytes, "lpr:", 4)) { /* * We want "lpd://..." for the URI... */ packet.object_value.string.bytes[2] = 'd'; } if (httpSeparateURI(HTTP_URI_CODING_ALL, (char *)packet.object_value.string.bytes, scheme, sizeof(scheme), userpass, sizeof(userpass), hostname, sizeof(hostname), &port, resource, sizeof(resource)) >= HTTP_URI_OK) device->uri = strdup((char *)packet.object_value.string.bytes); } break; } } /* * 'run_time()' - Return the total running time... */ static double /* O - Number of seconds */ run_time(void) { struct timeval curtime; /* Current time */ gettimeofday(&curtime, NULL); return (curtime.tv_sec - StartTime.tv_sec + 0.000001 * (curtime.tv_usec - StartTime.tv_usec)); } /* * 'scan_devices()' - Scan for devices using SNMP. */ static void scan_devices(int ipv4, /* I - SNMP IPv4 socket */ int ipv6) /* I - SNMP IPv6 socket */ { int fd, /* File descriptor for this address */ busy; /* Are we busy processing something? */ char *address, /* Current address */ *community; /* Current community */ fd_set input; /* Input set for select() */ struct timeval timeout; /* Timeout for select() */ time_t endtime; /* End time for scan */ http_addrlist_t *addrs, /* List of addresses */ *addr; /* Current address */ snmp_cache_t *device; /* Current device */ char temp[1024]; /* Temporary address string */ gettimeofday(&StartTime, NULL); /* * First send all of the broadcast queries... */ for (address = (char *)cupsArrayFirst(Addresses); address; address = (char *)cupsArrayNext(Addresses)) { if (!strcmp(address, "@LOCAL")) addrs = get_interface_addresses(NULL); else if (!strncmp(address, "@IF(", 4)) { char ifname[255]; /* Interface name */ strlcpy(ifname, address + 4, sizeof(ifname)); if (ifname[0]) ifname[strlen(ifname) - 1] = '\0'; addrs = get_interface_addresses(ifname); } else addrs = httpAddrGetList(address, AF_UNSPEC, NULL); if (!addrs) { fprintf(stderr, "ERROR: Unable to scan \"%s\"!\n", address); continue; } for (community = (char *)cupsArrayFirst(Communities); community; community = (char *)cupsArrayNext(Communities)) { debug_printf("DEBUG: Scanning for devices in \"%s\" via \"%s\"...\n", community, address); for (addr = addrs; addr; addr = addr->next) { #ifdef AF_INET6 if (httpAddrFamily(&(addr->addr)) == AF_INET6) fd = ipv6; else #endif /* AF_INET6 */ fd = ipv4; debug_printf("DEBUG: Sending get request to %s...\n", httpAddrString(&(addr->addr), temp, sizeof(temp))); _cupsSNMPWrite(fd, &(addr->addr), CUPS_SNMP_VERSION_1, community, CUPS_ASN1_GET_REQUEST, DEVICE_TYPE, DeviceTypeOID); } } httpAddrFreeList(addrs); } /* * Then read any responses that come in over the next 3 seconds... */ endtime = time(NULL) + MaxRunTime; FD_ZERO(&input); while (time(NULL) < endtime) { timeout.tv_sec = 2; timeout.tv_usec = 0; FD_SET(ipv4, &input); if (ipv6 >= 0) FD_SET(ipv6, &input); fd = ipv4 > ipv6 ? ipv4 : ipv6; if (select(fd + 1, &input, NULL, NULL, &timeout) < 0) { fprintf(stderr, "ERROR: %.3f select() for %d/%d failed: %s\n", run_time(), ipv4, ipv6, strerror(errno)); break; } busy = 0; if (FD_ISSET(ipv4, &input)) { read_snmp_response(ipv4); busy = 1; } if (ipv6 >= 0 && FD_ISSET(ipv6, &input)) { read_snmp_response(ipv6); busy = 1; } if (!busy) { /* * List devices with complete information... */ int sent_something = 0; for (device = (snmp_cache_t *)cupsArrayFirst(Devices); device; device = (snmp_cache_t *)cupsArrayNext(Devices)) if (!device->sent && device->info && device->make_and_model) { if (device->uri) list_device(device); else probe_device(device); device->sent = sent_something = 1; } if (!sent_something) break; } } debug_printf("DEBUG: %.3f Scan complete!\n", run_time()); } /* * 'try_connect()' - Try connecting on a port... */ static int /* O - 0 on success or -1 on error */ try_connect(http_addr_t *addr, /* I - Socket address */ const char *addrname, /* I - Hostname or IP address */ int port) /* I - Port number */ { int fd; /* Socket */ int status; /* Connection status */ debug_printf("DEBUG: %.3f Trying %s://%s:%d...\n", run_time(), port == 515 ? "lpd" : "socket", addrname, port); if ((fd = socket(httpAddrFamily(addr), SOCK_STREAM, 0)) < 0) { fprintf(stderr, "ERROR: Unable to create socket: %s\n", strerror(errno)); return (-1); } _httpAddrSetPort(addr, port); alarm(1); status = connect(fd, (void *)addr, (socklen_t)httpAddrLength(addr)); close(fd); alarm(0); return (status); } /* * 'update_cache()' - Update a cached device... */ static void update_cache(snmp_cache_t *device, /* I - Device */ const char *uri, /* I - Device URI */ const char *id, /* I - Device ID */ const char *make_model) /* I - Device make and model */ { if (device->uri) free(device->uri); device->uri = strdup(uri); if (id) { if (device->id) free(device->id); device->id = strdup(id); } if (make_model) { if (device->make_and_model) free(device->make_and_model); device->make_and_model = strdup(make_model); } list_device(device); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/snmp-supplies.c������������������������������������������������������������������0000644�0001750�0001750�00000074274�14502571342�016751� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * SNMP supplies functions for CUPS. * * Copyright © 2008-2015 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <cups/ppd-private.h> #include <cups/array.h> /* * Local constants... */ #define CUPS_MAX_SUPPLIES 32 /* Maximum number of supplies for a printer */ #define CUPS_SUPPLY_TIMEOUT 2.0 /* Timeout for SNMP lookups */ #define CUPS_DEVELOPER_LOW 0x0001 #define CUPS_DEVELOPER_EMPTY 0x0002 #define CUPS_MARKER_SUPPLY_LOW 0x0004 #define CUPS_MARKER_SUPPLY_EMPTY 0x0008 #define CUPS_OPC_NEAR_EOL 0x0010 #define CUPS_OPC_LIFE_OVER 0x0020 #define CUPS_TONER_LOW 0x0040 #define CUPS_TONER_EMPTY 0x0080 #define CUPS_WASTE_ALMOST_FULL 0x0100 #define CUPS_WASTE_FULL 0x0200 #define CUPS_CLEANER_NEAR_EOL 0x0400 /* Proposed JPS3 */ #define CUPS_CLEANER_LIFE_OVER 0x0800 /* Proposed JPS3 */ #define CUPS_SNMP_NONE 0x0000 #define CUPS_SNMP_CAPACITY 0x0001 /* Supply levels reported as percentages */ /* * Local structures... */ typedef struct /**** Printer supply data ****/ { char name[CUPS_SNMP_MAX_STRING], /* Name of supply */ color[8]; /* Color: "#RRGGBB" or "none" */ int colorant, /* Colorant index */ sclass, /* Supply class */ type, /* Supply type */ max_capacity, /* Maximum capacity */ level; /* Current level value */ } backend_supplies_t; typedef struct /**** Printer state table ****/ { int bit; /* State bit */ const char *keyword; /* IPP printer-state-reasons keyword */ } backend_state_t; /* * Local globals... */ static http_addr_t current_addr; /* Current address */ static int current_state = -1; /* Current device state bits */ static int charset = -1; /* Character set for supply names */ static unsigned quirks = CUPS_SNMP_NONE; /* Quirks we have to work around */ static int num_supplies = 0; /* Number of supplies found */ static backend_supplies_t supplies[CUPS_MAX_SUPPLIES]; /* Supply information */ static int supply_state = -1; /* Supply state info */ static const int hrDeviceDescr[] = { CUPS_OID_hrDeviceDescr, 1, -1 }; /* Device description OID */ static const int hrPrinterStatus[] = { CUPS_OID_hrPrinterStatus, 1, -1 }; /* Current state OID */ static const int hrPrinterDetectedErrorState[] = { CUPS_OID_hrPrinterDetectedErrorState, 1, -1 }; /* Current printer state bits OID */ static const int prtGeneralCurrentLocalization[] = { CUPS_OID_prtGeneralCurrentLocalization, 1, -1 }; static const int prtLocalizationCharacterSet[] = { CUPS_OID_prtLocalizationCharacterSet, 1, 1, -1 }, prtLocalizationCharacterSetOffset = (sizeof(prtLocalizationCharacterSet) / sizeof(prtLocalizationCharacterSet[0])); static const int prtMarkerColorantValue[] = { CUPS_OID_prtMarkerColorantValue, -1 }, /* Colorant OID */ prtMarkerColorantValueOffset = (sizeof(prtMarkerColorantValue) / sizeof(prtMarkerColorantValue[0])); /* Offset to colorant index */ static const int prtMarkerLifeCount[] = { CUPS_OID_prtMarkerLifeCount, 1, 1, -1 }; /* Page counter OID */ static const int prtMarkerSuppliesEntry[] = { CUPS_OID_prtMarkerSuppliesEntry, -1 }; /* Supplies OID */ static const int prtMarkerSuppliesColorantIndex[] = { CUPS_OID_prtMarkerSuppliesColorantIndex, -1 }, /* Colorant index OID */ prtMarkerSuppliesColorantIndexOffset = (sizeof(prtMarkerSuppliesColorantIndex) / sizeof(prtMarkerSuppliesColorantIndex[0])); /* Offset to supply index */ static const int prtMarkerSuppliesDescription[] = { CUPS_OID_prtMarkerSuppliesDescription, -1 }, /* Description OID */ prtMarkerSuppliesDescriptionOffset = (sizeof(prtMarkerSuppliesDescription) / sizeof(prtMarkerSuppliesDescription[0])); /* Offset to supply index */ static const int prtMarkerSuppliesLevel[] = { CUPS_OID_prtMarkerSuppliesLevel, -1 }, /* Level OID */ prtMarkerSuppliesLevelOffset = (sizeof(prtMarkerSuppliesLevel) / sizeof(prtMarkerSuppliesLevel[0])); /* Offset to supply index */ static const int prtMarkerSuppliesMaxCapacity[] = { CUPS_OID_prtMarkerSuppliesMaxCapacity, -1 }, /* Max capacity OID */ prtMarkerSuppliesMaxCapacityOffset = (sizeof(prtMarkerSuppliesMaxCapacity) / sizeof(prtMarkerSuppliesMaxCapacity[0])); /* Offset to supply index */ static const int prtMarkerSuppliesClass[] = { CUPS_OID_prtMarkerSuppliesClass, -1 }, /* Class OID */ prtMarkerSuppliesClassOffset = (sizeof(prtMarkerSuppliesClass) / sizeof(prtMarkerSuppliesClass[0])); /* Offset to supply index */ static const int prtMarkerSuppliesType[] = { CUPS_OID_prtMarkerSuppliesType, -1 }, /* Type OID */ prtMarkerSuppliesTypeOffset = (sizeof(prtMarkerSuppliesType) / sizeof(prtMarkerSuppliesType[0])); /* Offset to supply index */ static const int prtMarkerSuppliesSupplyUnit[] = { CUPS_OID_prtMarkerSuppliesSupplyUnit, -1 }, /* Units OID */ prtMarkerSuppliesSupplyUnitOffset = (sizeof(prtMarkerSuppliesSupplyUnit) / sizeof(prtMarkerSuppliesSupplyUnit[0])); /* Offset to supply index */ static const backend_state_t printer_states[] = { /* { CUPS_TC_lowPaper, "media-low-report" }, */ { CUPS_TC_noPaper | CUPS_TC_inputTrayEmpty, "media-empty-warning" }, /* { CUPS_TC_lowToner, "toner-low-report" }, */ /* now use prtMarkerSupplies */ /* { CUPS_TC_noToner, "toner-empty-warning" }, */ /* now use prtMarkerSupplies */ { CUPS_TC_doorOpen, "door-open-report" }, { CUPS_TC_jammed, "media-jam-warning" }, /* { CUPS_TC_offline, "offline-report" }, */ /* unreliable */ /* { CUPS_TC_serviceRequested | CUPS_TC_overduePreventMaint, "service-needed-warning" }, */ /* unreliable */ { CUPS_TC_inputTrayMissing, "input-tray-missing-warning" }, { CUPS_TC_outputTrayMissing, "output-tray-missing-warning" }, { CUPS_TC_markerSupplyMissing, "marker-supply-missing-warning" }, { CUPS_TC_outputNearFull, "output-area-almost-full-report" }, { CUPS_TC_outputFull, "output-area-full-warning" } }; static const backend_state_t supply_states[] = { { CUPS_DEVELOPER_LOW, "developer-low-report" }, { CUPS_DEVELOPER_EMPTY, "developer-empty-warning" }, { CUPS_MARKER_SUPPLY_LOW, "marker-supply-low-report" }, { CUPS_MARKER_SUPPLY_EMPTY, "marker-supply-empty-warning" }, { CUPS_OPC_NEAR_EOL, "opc-near-eol-report" }, { CUPS_OPC_LIFE_OVER, "opc-life-over-warning" }, { CUPS_TONER_LOW, "toner-low-report" }, { CUPS_TONER_EMPTY, "toner-empty-warning" }, { CUPS_WASTE_ALMOST_FULL, "waste-receptacle-almost-full-report" }, { CUPS_WASTE_FULL, "waste-receptacle-full-warning" }, { CUPS_CLEANER_NEAR_EOL, "cleaner-life-almost-over-report" }, { CUPS_CLEANER_LIFE_OVER, "cleaner-life-over-warning" }, }; /* * Local functions... */ static void backend_init_supplies(int snmp_fd, http_addr_t *addr); static void backend_walk_cb(cups_snmp_t *packet, void *data); static void utf16_to_utf8(cups_utf8_t *dst, const unsigned char *src, size_t srcsize, size_t dstsize, int le); /* * 'backendSNMPSupplies()' - Get the current supplies for a device. */ int /* O - 0 on success, -1 on error */ backendSNMPSupplies( int snmp_fd, /* I - SNMP socket */ http_addr_t *addr, /* I - Printer address */ int *page_count, /* O - Page count */ int *printer_state) /* O - Printer state */ { if (!httpAddrEqual(addr, ¤t_addr)) backend_init_supplies(snmp_fd, addr); else if (num_supplies > 0) _cupsSNMPWalk(snmp_fd, ¤t_addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), prtMarkerSuppliesLevel, CUPS_SUPPLY_TIMEOUT, backend_walk_cb, NULL); if (page_count) *page_count = -1; if (printer_state) *printer_state = -1; if (num_supplies > 0) { int i, /* Looping var */ percent, /* Percent full */ new_state, /* New state value */ change_state, /* State change */ new_supply_state = 0; /* Supply state */ char value[CUPS_MAX_SUPPLIES * 4], /* marker-levels value string */ *ptr; /* Pointer into value string */ cups_snmp_t packet; /* SNMP response packet */ /* * Generate the marker-levels value string... */ for (i = 0, ptr = value; i < num_supplies; i ++, ptr += strlen(ptr)) { if (supplies[i].max_capacity > 0 && supplies[i].level >= 0) percent = 100 * supplies[i].level / supplies[i].max_capacity; else if (supplies[i].level >= 0 && supplies[i].level <= 100 && (quirks & CUPS_SNMP_CAPACITY)) percent = supplies[i].level; else percent = 50; if (supplies[i].sclass == CUPS_TC_receptacleThatIsFilled) percent = 100 - percent; if (percent <= 5) { switch (supplies[i].type) { case CUPS_TC_toner : case CUPS_TC_tonerCartridge : if (percent <= 1) new_supply_state |= CUPS_TONER_EMPTY; else new_supply_state |= CUPS_TONER_LOW; break; case CUPS_TC_ink : case CUPS_TC_inkCartridge : case CUPS_TC_inkRibbon : case CUPS_TC_solidWax : case CUPS_TC_ribbonWax : if (percent <= 1) new_supply_state |= CUPS_MARKER_SUPPLY_EMPTY; else new_supply_state |= CUPS_MARKER_SUPPLY_LOW; break; case CUPS_TC_developer : if (percent <= 1) new_supply_state |= CUPS_DEVELOPER_EMPTY; else new_supply_state |= CUPS_DEVELOPER_LOW; break; case CUPS_TC_coronaWire : case CUPS_TC_fuser : case CUPS_TC_opc : case CUPS_TC_transferUnit : if (percent <= 1) new_supply_state |= CUPS_OPC_LIFE_OVER; else new_supply_state |= CUPS_OPC_NEAR_EOL; break; #if 0 /* Because no two vendors report waste containers the same, disable SNMP reporting of same */ case CUPS_TC_wasteInk : case CUPS_TC_wastePaper : case CUPS_TC_wasteToner : case CUPS_TC_wasteWater : case CUPS_TC_wasteWax : if (percent <= 1) new_supply_state |= CUPS_WASTE_FULL; else new_supply_state |= CUPS_WASTE_ALMOST_FULL; break; #endif /* 0 */ case CUPS_TC_cleanerUnit : case CUPS_TC_fuserCleaningPad : if (percent <= 1) new_supply_state |= CUPS_CLEANER_LIFE_OVER; else new_supply_state |= CUPS_CLEANER_NEAR_EOL; break; } } if (i) *ptr++ = ','; if ((supplies[i].max_capacity > 0 || (quirks & CUPS_SNMP_CAPACITY)) && supplies[i].level >= 0) snprintf(ptr, sizeof(value) - (size_t)(ptr - value), "%d", percent); else strlcpy(ptr, "-1", sizeof(value) - (size_t)(ptr - value)); } fprintf(stderr, "ATTR: marker-levels=%s\n", value); if (supply_state < 0) change_state = 0xffff; else change_state = supply_state ^ new_supply_state; fprintf(stderr, "DEBUG: new_supply_state=%x, change_state=%x\n", new_supply_state, change_state); for (i = 0; i < (int)(sizeof(supply_states) / sizeof(supply_states[0])); i ++) if (change_state & supply_states[i].bit) { fprintf(stderr, "STATE: %c%s\n", (new_supply_state & supply_states[i].bit) ? '+' : '-', supply_states[i].keyword); } supply_state = new_supply_state; /* * Get the current printer status bits... */ if (!_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), CUPS_ASN1_GET_REQUEST, 1, hrPrinterDetectedErrorState)) return (-1); if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_OCTET_STRING) return (-1); if (packet.object_value.string.num_bytes == 2) new_state = (packet.object_value.string.bytes[0] << 8) | packet.object_value.string.bytes[1]; else if (packet.object_value.string.num_bytes == 1) new_state = (packet.object_value.string.bytes[0] << 8); else new_state = 0; if (current_state < 0) change_state = 0xffff; else change_state = current_state ^ new_state; fprintf(stderr, "DEBUG: new_state=%x, change_state=%x\n", new_state, change_state); for (i = 0; i < (int)(sizeof(printer_states) / sizeof(printer_states[0])); i ++) if (change_state & printer_states[i].bit) { fprintf(stderr, "STATE: %c%s\n", (new_state & printer_states[i].bit) ? '+' : '-', printer_states[i].keyword); } current_state = new_state; /* * Get the current printer state... */ if (printer_state) { if (!_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), CUPS_ASN1_GET_REQUEST, 1, hrPrinterStatus)) return (-1); if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_INTEGER) return (-1); *printer_state = packet.object_value.integer; } /* * Get the current page count... */ if (page_count) { if (!_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), CUPS_ASN1_GET_REQUEST, 1, prtMarkerLifeCount)) return (-1); if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_COUNTER) return (-1); *page_count = packet.object_value.counter; } return (0); } else return (-1); } /* * 'backend_init_supplies()' - Initialize the supplies list. */ static void backend_init_supplies( int snmp_fd, /* I - SNMP socket */ http_addr_t *addr) /* I - Printer address */ { int i, /* Looping var */ type; /* Current marker type */ const char *community; /* SNMP community name */ cups_file_t *cachefile; /* Cache file */ const char *cachedir; /* CUPS_CACHEDIR value */ char addrstr[1024], /* Address string */ cachefilename[1024], /* Cache filename */ description[CUPS_SNMP_MAX_STRING], /* Device description string */ value[CUPS_MAX_SUPPLIES * (CUPS_SNMP_MAX_STRING * 4 + 3)], /* Value string */ *ptr, /* Pointer into value string */ *name_ptr; /* Pointer into name string */ cups_snmp_t packet; /* SNMP response packet */ ppd_file_t *ppd; /* PPD file for this queue */ ppd_attr_t *ppdattr; /* cupsSNMPSupplies attribute */ static const char * const types[] = /* Supply types */ { "other", "unknown", "toner", "waste-toner", "ink", "ink-cartridge", "ink-ribbon", "waste-ink", "opc", "developer", "fuser-oil", "solid-wax", "ribbon-wax", "waste-wax", "fuser", "corona-wire", "fuser-oil-wick", "cleaner-unit", "fuser-cleaning-pad", "transfer-unit", "toner-cartridge", "fuser-oiler", "water", "waste-water", "glue-water-additive", "waste-paper", "binding-supply", "banding-supply", "stitching-wire", "shrink-wrap", "paper-wrap", "staples", "inserts", "covers" }; /* * Reset state information... */ current_addr = *addr; current_state = -1; num_supplies = -1; charset = -1; memset(supplies, 0, sizeof(supplies)); /* * See if we should be getting supply levels via SNMP... */ community = _cupsSNMPDefaultCommunity(); if (!*community) return; if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL || ((ppdattr = ppdFindAttr(ppd, "cupsSNMPSupplies", NULL)) != NULL && ppdattr->value && _cups_strcasecmp(ppdattr->value, "true"))) { ppdClose(ppd); return; } if ((ppdattr = ppdFindAttr(ppd, "cupsSNMPQuirks", NULL)) != NULL) { if (!_cups_strcasecmp(ppdattr->value, "capacity")) quirks |= CUPS_SNMP_CAPACITY; } ppdClose(ppd); /* * Get the device description... */ if (!_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, community, CUPS_ASN1_GET_REQUEST, 1, hrDeviceDescr)) return; if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_OCTET_STRING) { strlcpy(description, "Unknown", sizeof(description)); num_supplies = 0; } else strlcpy(description, (char *)packet.object_value.string.bytes, sizeof(description)); fprintf(stderr, "DEBUG2: hrDeviceDesc=\"%s\"\n", description); /* * See if we have already queried this device... */ httpAddrString(addr, addrstr, sizeof(addrstr)); if ((cachedir = getenv("CUPS_CACHEDIR")) == NULL) cachedir = CUPS_CACHEDIR; snprintf(cachefilename, sizeof(cachefilename), "%s/%s.snmp", cachedir, addrstr); if ((cachefile = cupsFileOpen(cachefilename, "r")) != NULL) { /* * Yes, read the cache file: * * 3 num_supplies charset * device description * supply structures... */ if (cupsFileGets(cachefile, value, sizeof(value))) { if (sscanf(value, "3 %d%d", &num_supplies, &charset) == 2 && num_supplies <= CUPS_MAX_SUPPLIES && cupsFileGets(cachefile, value, sizeof(value))) { if (!strcmp(description, value)) cupsFileRead(cachefile, (char *)supplies, (size_t)num_supplies * sizeof(backend_supplies_t)); else { num_supplies = -1; charset = -1; } } else { num_supplies = -1; charset = -1; } } cupsFileClose(cachefile); } /* * If the cache information isn't correct, scan for supplies... */ if (charset < 0) { /* * Get the configured character set... */ int oid[CUPS_SNMP_MAX_OID]; /* OID for character set */ if (!_cupsSNMPWrite(snmp_fd, ¤t_addr, CUPS_SNMP_VERSION_1, community, CUPS_ASN1_GET_REQUEST, 1, prtGeneralCurrentLocalization)) return; if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_INTEGER) { fprintf(stderr, "DEBUG: prtGeneralCurrentLocalization type is %x, expected %x!\n", packet.object_type, CUPS_ASN1_INTEGER); return; } fprintf(stderr, "DEBUG2: prtGeneralCurrentLocalization=%d\n", packet.object_value.integer); _cupsSNMPCopyOID(oid, prtLocalizationCharacterSet, CUPS_SNMP_MAX_OID); oid[prtLocalizationCharacterSetOffset - 2] = packet.object_value.integer; if (!_cupsSNMPWrite(snmp_fd, ¤t_addr, CUPS_SNMP_VERSION_1, community, CUPS_ASN1_GET_REQUEST, 1, oid)) return; if (!_cupsSNMPRead(snmp_fd, &packet, CUPS_SUPPLY_TIMEOUT) || packet.object_type != CUPS_ASN1_INTEGER) { fprintf(stderr, "DEBUG: prtLocalizationCharacterSet type is %x, expected %x!\n", packet.object_type, CUPS_ASN1_INTEGER); return; } fprintf(stderr, "DEBUG2: prtLocalizationCharacterSet=%d\n", packet.object_value.integer); charset = packet.object_value.integer; } if (num_supplies < 0) { /* * Walk the printer configuration information... */ _cupsSNMPWalk(snmp_fd, ¤t_addr, CUPS_SNMP_VERSION_1, community, prtMarkerSuppliesEntry, CUPS_SUPPLY_TIMEOUT, backend_walk_cb, NULL); } /* * Save the cached information... */ if (num_supplies < 0) num_supplies = 0; if ((cachefile = cupsFileOpen(cachefilename, "w")) != NULL) { cupsFilePrintf(cachefile, "3 %d %d\n", num_supplies, charset); cupsFilePrintf(cachefile, "%s\n", description); if (num_supplies > 0) cupsFileWrite(cachefile, (char *)supplies, (size_t)num_supplies * sizeof(backend_supplies_t)); cupsFileClose(cachefile); } if (num_supplies <= 0) return; /* * Get the colors... */ for (i = 0; i < num_supplies; i ++) strlcpy(supplies[i].color, "none", sizeof(supplies[i].color)); _cupsSNMPWalk(snmp_fd, ¤t_addr, CUPS_SNMP_VERSION_1, community, prtMarkerColorantValue, CUPS_SUPPLY_TIMEOUT, backend_walk_cb, NULL); /* * Output the marker-colors attribute... */ for (i = 0, ptr = value; i < num_supplies; i ++, ptr += strlen(ptr)) { if (i) *ptr++ = ','; strlcpy(ptr, supplies[i].color, sizeof(value) - (size_t)(ptr - value)); } fprintf(stderr, "ATTR: marker-colors=%s\n", value); /* * Output the marker-names attribute (the double quoting is necessary to deal * with embedded quotes and commas in the marker names...) */ for (i = 0, ptr = value; i < num_supplies; i ++) { if (i) *ptr++ = ','; *ptr++ = '\''; *ptr++ = '\"'; for (name_ptr = supplies[i].name; *name_ptr;) { if (*name_ptr == '\\' || *name_ptr == '\"' || *name_ptr == '\'') { *ptr++ = '\\'; *ptr++ = '\\'; *ptr++ = '\\'; } *ptr++ = *name_ptr++; } *ptr++ = '\"'; *ptr++ = '\''; } *ptr = '\0'; fprintf(stderr, "ATTR: marker-names=%s\n", value); /* * Output the marker-types attribute... */ for (i = 0, ptr = value; i < num_supplies; i ++, ptr += strlen(ptr)) { if (i) *ptr++ = ','; type = supplies[i].type; if (type < CUPS_TC_other || type > CUPS_TC_covers) strlcpy(ptr, "unknown", sizeof(value) - (size_t)(ptr - value)); else strlcpy(ptr, types[type - CUPS_TC_other], sizeof(value) - (size_t)(ptr - value)); } fprintf(stderr, "ATTR: marker-types=%s\n", value); } /* * 'backend_walk_cb()' - Interpret the supply value responses. */ static void backend_walk_cb(cups_snmp_t *packet, /* I - SNMP packet */ void *data) /* I - User data (unused) */ { int i, j, k; /* Looping vars */ static const char * const colors[][2] = { /* Standard color names */ { "black", "#000000" }, { "blue", "#0000FF" }, { "brown", "#A52A2A" }, { "cyan", "#00FFFF" }, { "dark-gray", "#404040" }, { "dark gray", "#404040" }, { "dark-yellow", "#FFCC00" }, { "dark yellow", "#FFCC00" }, { "gold", "#FFD700" }, { "gray", "#808080" }, { "green", "#00FF00" }, { "light-black", "#606060" }, { "light black", "#606060" }, { "light-cyan", "#E0FFFF" }, { "light cyan", "#E0FFFF" }, { "light-gray", "#D3D3D3" }, { "light gray", "#D3D3D3" }, { "light-magenta", "#FF77FF" }, { "light magenta", "#FF77FF" }, { "magenta", "#FF00FF" }, { "orange", "#FFA500" }, { "red", "#FF0000" }, { "silver", "#C0C0C0" }, { "white", "#FFFFFF" }, { "yellow", "#FFFF00" } }; (void)data; if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerColorantValue) && packet->object_type == CUPS_ASN1_OCTET_STRING) { /* * Get colorant... */ i = packet->object_name[prtMarkerColorantValueOffset]; fprintf(stderr, "DEBUG2: prtMarkerColorantValue.1.%d = \"%s\"\n", i, (char *)packet->object_value.string.bytes); for (j = 0; j < num_supplies; j ++) if (supplies[j].colorant == i) { for (k = 0; k < (int)(sizeof(colors) / sizeof(colors[0])); k ++) if (!_cups_strcasecmp(colors[k][0], (char *)packet->object_value.string.bytes)) { strlcpy(supplies[j].color, colors[k][1], sizeof(supplies[j].color)); break; } } } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesColorantIndex)) { /* * Get colorant index... */ i = packet->object_name[prtMarkerSuppliesColorantIndexOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesColorantIndex.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; supplies[i - 1].colorant = packet->object_value.integer; } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesDescription)) { /* * Get supply name/description... */ i = packet->object_name[prtMarkerSuppliesDescriptionOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_OCTET_STRING) return; if (i > num_supplies) num_supplies = i; switch (charset) { case CUPS_TC_csASCII : case CUPS_TC_csUTF8 : case CUPS_TC_csUnicodeASCII : strlcpy(supplies[i - 1].name, (char *)packet->object_value.string.bytes, sizeof(supplies[0].name)); break; case CUPS_TC_csISOLatin1 : case CUPS_TC_csUnicodeLatin1 : cupsCharsetToUTF8((cups_utf8_t *)supplies[i - 1].name, (char *)packet->object_value.string.bytes, sizeof(supplies[0].name), CUPS_ISO8859_1); break; case CUPS_TC_csShiftJIS : case CUPS_TC_csWindows31J : /* Close enough for our purposes */ cupsCharsetToUTF8((cups_utf8_t *)supplies[i - 1].name, (char *)packet->object_value.string.bytes, sizeof(supplies[0].name), CUPS_JIS_X0213); break; case CUPS_TC_csUCS4 : case CUPS_TC_csUTF32 : case CUPS_TC_csUTF32BE : case CUPS_TC_csUTF32LE : cupsUTF32ToUTF8((cups_utf8_t *)supplies[i - 1].name, (cups_utf32_t *)packet->object_value.string.bytes, sizeof(supplies[0].name)); break; case CUPS_TC_csUnicode : case CUPS_TC_csUTF16BE : case CUPS_TC_csUTF16LE : utf16_to_utf8((cups_utf8_t *)supplies[i - 1].name, packet->object_value.string.bytes, packet->object_value.string.num_bytes, sizeof(supplies[0].name), charset == CUPS_TC_csUTF16LE); break; default : /* * If we get here, the printer is using an unknown character set and * we just want to copy characters that look like ASCII... */ { char *src, *dst; /* Pointers into strings */ /* * Loop safe because both the object_value and supplies char arrays * are CUPS_SNMP_MAX_STRING elements long. */ for (src = (char *)packet->object_value.string.bytes, dst = supplies[i - 1].name; *src; src ++) { if ((*src & 0x80) || *src < ' ' || *src == 0x7f) *dst++ = '?'; else *dst++ = *src; } *dst = '\0'; } break; } fprintf(stderr, "DEBUG2: prtMarkerSuppliesDescription.1.%d = \"%s\"\n", i, supplies[i - 1].name); } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesLevel)) { /* * Get level... */ i = packet->object_name[prtMarkerSuppliesLevelOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesLevel.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; supplies[i - 1].level = packet->object_value.integer; } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesMaxCapacity) && !(quirks & CUPS_SNMP_CAPACITY)) { /* * Get max capacity... */ i = packet->object_name[prtMarkerSuppliesMaxCapacityOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesMaxCapacity.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; if (supplies[i - 1].max_capacity == 0 && packet->object_value.integer > 0) supplies[i - 1].max_capacity = packet->object_value.integer; } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesClass)) { /* * Get marker class... */ i = packet->object_name[prtMarkerSuppliesClassOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesClass.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; supplies[i - 1].sclass = packet->object_value.integer; } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesType)) { /* * Get marker type... */ i = packet->object_name[prtMarkerSuppliesTypeOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesType.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; supplies[i - 1].type = packet->object_value.integer; } else if (_cupsSNMPIsOIDPrefixed(packet, prtMarkerSuppliesSupplyUnit)) { /* * Get units for capacity... */ i = packet->object_name[prtMarkerSuppliesSupplyUnitOffset]; if (i < 1 || i > CUPS_MAX_SUPPLIES || packet->object_type != CUPS_ASN1_INTEGER) return; fprintf(stderr, "DEBUG2: prtMarkerSuppliesSupplyUnit.1.%d = %d\n", i, packet->object_value.integer); if (i > num_supplies) num_supplies = i; if (packet->object_value.integer == CUPS_TC_percent) supplies[i - 1].max_capacity = 100; } } /* * 'utf16_to_utf8()' - Convert UTF-16 text to UTF-8. */ static void utf16_to_utf8( cups_utf8_t *dst, /* I - Destination buffer */ const unsigned char *src, /* I - Source string */ size_t srcsize, /* I - Size of source string */ size_t dstsize, /* I - Size of destination buffer */ int le) /* I - Source is little-endian? */ { cups_utf32_t ch, /* Current character */ temp[CUPS_SNMP_MAX_STRING], /* UTF-32 string */ *ptr; /* Pointer into UTF-32 string */ for (ptr = temp; srcsize >= 2;) { if (le) ch = (cups_utf32_t)(src[0] | (src[1] << 8)); else ch = (cups_utf32_t)((src[0] << 8) | src[1]); src += 2; srcsize -= 2; if (ch >= 0xd800 && ch <= 0xdbff && srcsize >= 2) { /* * Multi-word UTF-16 char... */ cups_utf32_t lch; /* Lower word */ if (le) lch = (cups_utf32_t)(src[0] | (src[1] << 8)); else lch = (cups_utf32_t)((src[0] << 8) | src[1]); if (lch >= 0xdc00 && lch <= 0xdfff) { src += 2; srcsize -= 2; ch = (((ch & 0x3ff) << 10) | (lch & 0x3ff)) + 0x10000; } } if (ptr < (temp + CUPS_SNMP_MAX_STRING - 1)) *ptr++ = ch; } *ptr = '\0'; cupsUTF32ToUTF8(dst, temp, (int)dstsize); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/runloop.c������������������������������������������������������������������������0000644�0001750�0001750�00000030471�14502571342�015617� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Common run loop APIs for CUPS backends. * * Copyright © 2007-2014 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <limits.h> #include <sys/select.h> /* * 'backendDrainOutput()' - Drain pending print data to the device. */ int /* O - 0 on success, -1 on error */ backendDrainOutput(int print_fd, /* I - Print file descriptor */ int device_fd) /* I - Device file descriptor */ { int nfds; /* Maximum file descriptor value + 1 */ fd_set input; /* Input set for reading */ ssize_t print_bytes, /* Print bytes read */ bytes; /* Bytes written */ char print_buffer[8192], /* Print data buffer */ *print_ptr; /* Pointer into print data buffer */ struct timeval timeout; /* Timeout for read... */ fprintf(stderr, "DEBUG: backendDrainOutput(print_fd=%d, device_fd=%d)\n", print_fd, device_fd); /* * Figure out the maximum file descriptor value to use with select()... */ nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; /* * Now loop until we are out of data from print_fd... */ for (;;) { /* * Use select() to determine whether we have data to copy around... */ FD_ZERO(&input); FD_SET(print_fd, &input); timeout.tv_sec = 0; timeout.tv_usec = 0; if (select(nfds, &input, NULL, NULL, &timeout) < 0) return (-1); if (!FD_ISSET(print_fd, &input)) return (0); if ((print_bytes = read(print_fd, print_buffer, sizeof(print_buffer))) < 0) { /* * Read error - bail if we don't see EAGAIN or EINTR... */ if (errno != EAGAIN && errno != EINTR) { fprintf(stderr, "DEBUG: Read failed: %s\n", strerror(errno)); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); return (-1); } print_bytes = 0; } else if (print_bytes == 0) { /* * End of file, return... */ return (0); } fprintf(stderr, "DEBUG: Read %d bytes of print data...\n", (int)print_bytes); for (print_ptr = print_buffer; print_bytes > 0;) { if ((bytes = write(device_fd, print_ptr, (size_t)print_bytes)) < 0) { /* * Write error - bail if we don't see an error we can retry... */ if (errno != ENOSPC && errno != ENXIO && errno != EAGAIN && errno != EINTR && errno != ENOTTY) { _cupsLangPrintError("ERROR", _("Unable to write print data")); return (-1); } } else { fprintf(stderr, "DEBUG: Wrote %d bytes of print data...\n", (int)bytes); print_bytes -= bytes; print_ptr += bytes; } } } } /* * 'backendRunLoop()' - Read and write print and back-channel data. */ ssize_t /* O - Total bytes on success, -1 on error */ backendRunLoop( int print_fd, /* I - Print file descriptor */ int device_fd, /* I - Device file descriptor */ int snmp_fd, /* I - SNMP socket or -1 if none */ http_addr_t *addr, /* I - Address of device */ int use_bc, /* I - Use back-channel? */ int update_state, /* I - Update printer-state-reasons? */ _cups_sccb_t side_cb) /* I - Side-channel callback */ { int nfds; /* Maximum file descriptor value + 1 */ fd_set input, /* Input set for reading */ output; /* Output set for writing */ ssize_t print_bytes, /* Print bytes read */ bc_bytes, /* Backchannel bytes read */ total_bytes, /* Total bytes written */ bytes; /* Bytes written */ int paperout; /* "Paper out" status */ int offline; /* "Off-line" status */ char print_buffer[8192], /* Print data buffer */ *print_ptr, /* Pointer into print data buffer */ bc_buffer[1024]; /* Back-channel data buffer */ struct timeval timeout; /* Timeout for select() */ time_t curtime, /* Current time */ snmp_update = 0; #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ fprintf(stderr, "DEBUG: backendRunLoop(print_fd=%d, device_fd=%d, snmp_fd=%d, " "addr=%p, use_bc=%d, side_cb=%p)\n", print_fd, device_fd, snmp_fd, addr, use_bc, side_cb); /* * If we are printing data from a print driver on stdin, ignore SIGTERM * so that the driver can finish out any page data, e.g. to eject the * current page. We only do this for stdin printing as otherwise there * is no way to cancel a raw print job... */ if (!print_fd) { #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, SIG_IGN); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = SIG_IGN; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, SIG_IGN); #endif /* HAVE_SIGSET */ } else if (print_fd < 0) { /* * Copy print data from stdin, but don't mess with the signal handlers... */ print_fd = 0; } /* * Figure out the maximum file descriptor value to use with select()... */ nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; /* * Now loop until we are out of data from print_fd... */ for (print_bytes = 0, print_ptr = print_buffer, offline = -1, paperout = -1, total_bytes = 0;;) { /* * Use select() to determine whether we have data to copy around... */ FD_ZERO(&input); if (!print_bytes) FD_SET(print_fd, &input); if (use_bc) FD_SET(device_fd, &input); if (!print_bytes && side_cb) FD_SET(CUPS_SC_FD, &input); FD_ZERO(&output); if (print_bytes || (!use_bc && !side_cb)) FD_SET(device_fd, &output); if (use_bc || side_cb) { timeout.tv_sec = 5; timeout.tv_usec = 0; if (select(nfds, &input, &output, NULL, &timeout) < 0) { /* * Pause printing to clear any pending errors... */ if (errno == ENXIO && offline != 1 && update_state) { fputs("STATE: +offline-report\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("The printer is not connected.")); offline = 1; } else if (errno == EINTR && total_bytes == 0) { fputs("DEBUG: Received an interrupt before any bytes were " "written, aborting.\n", stderr); return (0); } sleep(1); continue; } } /* * Check if we have a side-channel request ready... */ if (side_cb && FD_ISSET(CUPS_SC_FD, &input)) { /* * Do the side-channel request, then start back over in the select * loop since it may have read from print_fd... */ if ((*side_cb)(print_fd, device_fd, snmp_fd, addr, use_bc)) side_cb = NULL; continue; } /* * Check if we have back-channel data ready... */ if (FD_ISSET(device_fd, &input)) { if ((bc_bytes = read(device_fd, bc_buffer, sizeof(bc_buffer))) > 0) { fprintf(stderr, "DEBUG: Received " CUPS_LLFMT " bytes of back-channel data\n", CUPS_LLCAST bc_bytes); cupsBackChannelWrite(bc_buffer, (size_t)bc_bytes, 1.0); } else if (bc_bytes < 0 && errno != EAGAIN && errno != EINTR) { fprintf(stderr, "DEBUG: Error reading back-channel data: %s\n", strerror(errno)); use_bc = 0; } else if (bc_bytes == 0) use_bc = 0; } /* * Check if we have print data ready... */ if (FD_ISSET(print_fd, &input)) { if ((print_bytes = read(print_fd, print_buffer, sizeof(print_buffer))) < 0) { /* * Read error - bail if we don't see EAGAIN or EINTR... */ if (errno != EAGAIN && errno != EINTR) { fprintf(stderr, "DEBUG: Read failed: %s\n", strerror(errno)); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to read print data.")); return (-1); } print_bytes = 0; } else if (print_bytes == 0) { /* * End of file, break out of the loop... */ break; } print_ptr = print_buffer; fprintf(stderr, "DEBUG: Read %d bytes of print data...\n", (int)print_bytes); } /* * Check if the device is ready to receive data and we have data to * send... */ if (print_bytes && FD_ISSET(device_fd, &output)) { if ((bytes = write(device_fd, print_ptr, (size_t)print_bytes)) < 0) { /* * Write error - bail if we don't see an error we can retry... */ if (errno == ENOSPC) { if (paperout != 1 && update_state) { fputs("STATE: +media-empty-warning\n", stderr); fputs("DEBUG: Out of paper\n", stderr); paperout = 1; } } else if (errno == ENXIO) { if (offline != 1 && update_state) { fputs("STATE: +offline-report\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("The printer is not connected.")); offline = 1; } } else if (errno != EAGAIN && errno != EINTR && errno != ENOTTY) { _cupsLangPrintError("ERROR", _("Unable to write print data")); return (-1); } } else { if (paperout && update_state) { fputs("STATE: -media-empty-warning\n", stderr); paperout = 0; } if (offline && update_state) { fputs("STATE: -offline-report\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("The printer is now connected.")); offline = 0; } fprintf(stderr, "DEBUG: Wrote %d bytes of print data...\n", (int)bytes); print_bytes -= bytes; print_ptr += bytes; total_bytes += bytes; } } /* * Do SNMP updates periodically... */ if (snmp_fd >= 0 && time(&curtime) >= snmp_update) { if (backendSNMPSupplies(snmp_fd, addr, NULL, NULL)) snmp_update = INT_MAX; else snmp_update = curtime + 5; } } /* * Return with success... */ return (total_bytes); } /* * 'backendWaitLoop()' - Wait for input from stdin while handling side-channel * queries. */ int /* O - 1 if data is ready, 0 if not */ backendWaitLoop( int snmp_fd, /* I - SNMP socket or -1 if none */ http_addr_t *addr, /* I - Address of device */ int use_bc, /* I - Use back-channel? */ _cups_sccb_t side_cb) /* I - Side-channel callback */ { int nfds; /* Number of file descriptors */ fd_set input; /* Input set for reading */ time_t curtime = 0, /* Current time */ snmp_update = 0;/* Last SNMP status update */ struct timeval timeout; /* Timeout for select() */ fprintf(stderr, "DEBUG: backendWaitLoop(snmp_fd=%d, addr=%p, side_cb=%p)\n", snmp_fd, addr, side_cb); /* * Now loop until we receive data from stdin... */ if (snmp_fd >= 0) snmp_update = time(NULL) + 5; for (;;) { /* * Use select() to determine whether we have data to copy around... */ FD_ZERO(&input); FD_SET(0, &input); if (side_cb) FD_SET(CUPS_SC_FD, &input); if (snmp_fd >= 0) { curtime = time(NULL); timeout.tv_sec = curtime >= snmp_update ? 0 : snmp_update - curtime; timeout.tv_usec = 0; nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, &timeout); } else nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, NULL); if (nfds < 0) { /* * Pause printing to clear any pending errors... */ if (errno == EINTR) { fputs("DEBUG: Received an interrupt before any bytes were " "written, aborting.\n", stderr); return (0); } sleep(1); continue; } /* * Check for input on stdin... */ if (FD_ISSET(0, &input)) break; /* * Check if we have a side-channel request ready... */ if (side_cb && FD_ISSET(CUPS_SC_FD, &input)) { /* * Do the side-channel request, then start back over in the select * loop since it may have read from print_fd... */ if ((*side_cb)(0, -1, snmp_fd, addr, use_bc)) side_cb = NULL; continue; } /* * Do SNMP updates periodically... */ if (snmp_fd >= 0 && curtime >= snmp_update) { if (backendSNMPSupplies(snmp_fd, addr, NULL, NULL)) snmp_fd = -1; else snmp_update = curtime + 5; } } /* * Return with success... */ return (1); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/pseudo���������������������������������������������������������������������������0000644�0001750�0001750�00000000777�14502571342�015205� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # # Psuedo-backend for CUPS testing purposes. # # Copyright © 2022-2023 by OpenPrinting. # Copyright © 2011 by Apple Inc. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # if test $# = 0; then echo 'direct pseudo:///deskjet "HP DeskJet" "HP DeskJet (pseudo)" "MFG:HP;MDL:DeskJet;CMD:PCL;" "Nowhere"' echo 'direct pseudo:///laserjet "HP LaserJet" "HP LaserJet (pseudo)" "MFG:HP;MDL:LaserJet;CMD:PCL;" "Nowhere"' exit 0 fi cat $6 >/dev/null sleep 5 exit 0 �cups-2.4.7/backend/org.cups.usb-quirks��������������������������������������������������������������0000644�0001750�0001750�00000020472�14502571342�017544� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# USB backend 'quirks' file. # # This file lists known issues with various vendors or printers. Each # line contains either a comment (starting with #) or the USB vendor ID, # product ID (omit for all vendor products), and a list of known issues: # # blacklist The printer is not functional with the USB backend. # delay-close Delay close/reset of selected interface # no-reattach Do no re-attach usblp kernel module after printing. # soft-reset Do a soft reset after printing for cleanup. # unidir Only supports unidirectional I/O # usb-init Needs vendor USB initialization string. # vendor-class Uses vendor-specific class or subclass. # whitelist The printer is functional with the USB backend. # # To get the USB vendor and product IDs for a given printer, run the "lsusb" # command, which will show something like the following: # # Bus 002 Device 003: ID ab21:34dc Acme Example Printer # # The "ab21:34dc" is the vendor and product ID, separated by a colon. # HP DeskJet 895C 0x03f0 0x0004 unidir # HP DeskJet 880C 0x03f0 0x0104 unidir # HP DeskJet 815C 0x03f0 0x0204 unidir # HP DeskJet 810C/812C 0x03f0 0x0304 unidir # HP DeskJet 830C 0x03f0 0x0404 unidir # HP DeskJet 885C 0x03f0 0x0504 unidir # HP DeskJet 840C 0x03f0 0x0604 unidir # HP DeskJet 816C 0x03f0 0x0804 unidir # HP Deskjet 959C 0x03f0 0x1104 unidir # NEC Picty900 (HP OEM) 0x0409 0xefbe unidir # NEC Picty760 (HP OEM) 0x0409 0xbef4 unidir # NEC Picty920 (HP OEM) 0x0409 0xf0be unidir # NEC Picty800 (HP OEM) 0x0409 0xf1be unidir # Lexmark International, Inc. (e250d) (https://bugs.launchpad.net/bugs/1084164) 0x043d 0x00f3 no-reattach # Kyocera Mita FS 820, by zut <kernel@zut.de> 0x0482 0x0010 unidir # Canon, Inc. PIXMA iP6000D Printer (https://bugs.launchpad.net/bugs/1160638) 0x04a9 0x1095 unidir # Canon, Inc. PIXMA iP4200 Printer (Apple #4155) 0x04a9 0x10a2 unidir # Canon, Inc. PIXMA iP4300 Printer (https://bugs.launchpad.net/bugs/1032385) 0x04a9 0x10b6 unidir # Canon, Inc. MP210 (https://bugzilla.redhat.com/show_bug.cgi?id=847923#c53) 0x04a9 0x1721 unidir # Canon, Inc. MP220 Printer 0x04a9 0x1722 unidir # Canon, Inc. MP230 Printer 0x04a9 0x175f unidir # Canon, Inc. MP240 Printer (https://github.com/agalakhov/captdriver/issues/7#issuecomment-890380405) 0x04a9 0x1732 unidir # Canon, Inc. MP250 Printer 0x04a9 0x173a unidir # Canon, Inc. MP260 Printer 0x04a9 0x1733 unidir # Canon, Inc. MP270 Printer 0x04a9 0x173b unidir # Canon, Inc. MP280 series (Apple #5221) 0x04a9 0x1746 unidir # Canon PIXMA MP410 0x04a9 0x1702 unidir # Canon PIXMA MP430 0x04a9 0x1703 unidir # Canon PIXMA MP450 0x04a9 0x170b unidir # Canon PIXMA MP460 0x04a9 0x1716 unidir # Canon PIXMA MP470 0x04a9 0x1723 unidir # Canon PIXMA MP480 (Issue #192) 0x04a9 0x1731 unidir # Canon PIXMA MP490 0x04a9 0x173c unidir # Canon PIXMA MP493 0x04a9 0x1757 unidir # Canon PIXMA MP495 0x04a9 0x1747 unidir # Canon, Inc. MP500 Printer (https://bugs.launchpad.net/bugs/1032456) 0x04a9 0x170c unidir # Canon, Inc. MP510 Printer (https://bugs.launchpad.net/bugs/1050009) 0x04a9 0x1717 unidir # Canon, Inc. MP520 Printer 0x04a9 0x1724 unidir # Canon, Inc. MP530 Printer 0x04a9 0x1712 unidir # Canon, Inc. MP540 Printer, https://bugzilla.redhat.com/967873 0x04a9 0x1730 unidir # Canon, Inc. MP550 Printer (Apple #4155) 0x04a9 0x173d unidir # Canon, Inc. MP560 Printer (Apple #4155) 0x04a9 0x173e unidir # Canon, Inc. PIXMA G1501 Printer (Apple #5831) 0x04a9 0x1796 unidir # Canon, Inc. MF4150 Printer (https://bugs.launchpad.net/bugs/1160638) 0x04a9 0x26a3 no-reattach # Brother Industries, Ltd HL-1250 Laser Printer (https://bugs.debian.org/712512) 0x04f9 0x0007 no-reattach # Brother Industries, Ltd HL-1430 Laser Printer (https://bugs.launchpad.net/bugs/1038695) 0x04f9 0x001a no-reattach # Brother Industries, Ltd HL-1440 Laser Printer (https://bugs.launchpad.net/bugs/1000253) 0x04f9 0x000d no-reattach unidir # Brother Industries, Ltd HL-1450 Laser Printer (https://bugs.launchpad.net/bugs/1000253) 0x04f9 0x000e no-reattach unidir # Oki Data Corp. Okipage 14ex Printer (https://bugs.launchpad.net/bugs/872483) 0x06bc 0x000b no-reattach # Oki Data Corp. B410d (https://bugs.launchpad.net/bugs/872483) 0x06bc 0x01c7 no-reattach # Seiko Epson Corp. Stylus Color 740 / Photo 750 (http://bugs.debian.org/697970) 0x04b8 0x0001 no-reattach unidir # Seiko Epson Corp. Stylus Color 670 (https://bugs.launchpad.net/bugs/872483) 0x04b8 0x0005 no-reattach # Seiko Epson Receipt Printer M129C 0x04b8 0x0202 vendor-class # Prolific Technology, Inc. PL2305 Parallel Port (USB -> Parallel adapter) (https://bugs.launchpad.net/bugs/987485) 0x067b 0x2305 no-reattach soft-reset unidir # Xerox Phaser 3124 https://bugzilla.redhat.com/show_bug.cgi?id=867392 0x0924 0x3ce9 no-reattach # Xerox WorkCentre 3210 https://bugs.launchpad.net/bugs/1102470 0x0924 0x4293 no-reattach # QinHeng Electronics CH340S (USB -> Parallel adapter) (https://bugs.launchpad.net/bugs/1000253) 0x1a86 0x7584 no-reattach # All Samsung devices (https://bugs.launchpad.net/bugs/1032456) 0x04e8 soft-reset # Samsung SCX-3405W works without quirks (https://github.com/OpenPrinting/cups/issues/270) 0x04e8 0x344f whitelist # Samsung ML-2160 Series (https://bugzilla.redhat.com/show_bug.cgi?id=873123) 0x04e8 0x330f unidir # All Zebra devices (https://bugs.launchpad.net/bugs/1001028) (Apple #5395) 0x0a5f unidir no-reattach # Canon CP-10 0x04a9 0x304a blacklist # Canon CP-100 0x04a9 0x3063 blacklist # Canon CP-200 0x04a9 0x307c blacklist # Canon CP-300 0x04a9 0x307d blacklist # Canon CP-220 0x04a9 0x30bd blacklist # Canon CP-330 0x04a9 0x30be blacklist # Canon SELPHY CP400 0x04a9 0x30f6 blacklist # Canon SELPHY CP600 0x04a9 0x310b blacklist # Canon SELPHY CP710 0x04a9 0x3127 blacklist # Canon SELPHY CP510 0x04a9 0x3128 blacklist # Canon SELPHY ES1 0x04a9 0x3141 blacklist # Canon SELPHY CP730 0x04a9 0x3142 blacklist # Canon SELPHY CP720 0x04a9 0x3143 blacklist # Canon SELPHY CP750 0x04a9 0x3170 blacklist # Canon SELPHY CP740 0x04a9 0x3171 blacklist # Canon SELPHY ES2 0x04a9 0x3185 blacklist # Canon SELPHY ES20 0x04a9 0x3186 blacklist # Canon SELPHY CP770 0x04a9 0x31aa blacklist # Canon SELPHY CP760 0x04a9 0x31ab blacklist # Canon SELPHY ES30 0x04a9 0x31b0 blacklist # Canon SELPHY CP780 0x04a9 0x31dd blacklist # Canon SELPHY ES40 0x04a9 0x31ee blacklist # Canon SELPHY CP800 0x04a9 0x3214 blacklist # Canon SELPHY CP900 0x04a9 0x3255 blacklist # Canon SELPHY CP810 0x04a9 0x3256 blacklist # Canon SELPHY CP500 0x04a9 0x30f5 blacklist # Canon SELPHY ES3 0x04a9 0x31af blacklist # Canon SELPHY CP780 0x04a9 0x31dd blacklist # Lexmark E238 (<rdar://problem/14493054>) 0x043d 0x00d7 no-reattach # Lexmark E238 (Apple #4448) 0x043d 0x009a no-reattach # Canon MX310 (Apple #4482) 0x04a9 0x1728 unidir # Canon MX320 (Apple #4482) 0x04A9 0x1736 unidir # All Intermec devices (Apple #4553) 0x067e no-reattach # HP LaserJet 1010 (Apple #5789) 0x03f0 0x0c17 delay-close # HP LaserJet 1015 (Apple #5617) 0x03f0 0x0e17 delay-close # HP LaserJet 1150 (Apple #4549) 0x03f0 0x0f17 delay-close # HP LaserJet 1300 (Apple #4549) 0x03f0 0x1017 delay-close 0x03f0 0x1117 delay-close # HP LaserJet 1320 (Apple #4549) 0x03f0 0x1d17 delay-close # Canon, Inc. MP530 Printer 0x04a9 0x1712 unidir # Xerox WorkCentre 3220 (https://bugs.launchpad.net/bugs/1406203, Apple #4789) 0x0924 0x4294 no-reattach # Lexmark C540n (Apple #4778) 0x043d 0x0139 no-reattach # Kyocera Ecosys P6026cdn (Apple #4900) 0x0482 0x063f no-reattach # Kyocera Ecosys P6130cdn (Apple #5102) 0x0482 0x0677 no-reattach # Lexmark E260dn (Apple #4994) 0x043d 0x0123 no-reattach # HP LaserJet 1160 (Apple #5121) 0x03f0 0x1e17 delay-close # Star Micronics printers (Apple #5251) 0x0519 unidir # Lexmark Optra E310 (Apple #5259) 0x043d 0x000c no-reattach # HP LaserJet P1102 (Apple #5310) 0x03F0 0x002A no-reattach # Lexmark MS317dn 0x043d 0x0226 no-reattach # Star TSP743 (Apple #5443) 0x0519 0x0001 delay-close # Lexmark E120n (Apple #5478) 0x043d 0x00cc no-reattach # Lexmark E120n MT4506-100 (Apple #5766) 0x043d 0x00cd no-reattach # All Xerox printers (Apple #5523) 0x0924 no-reattach # Citizen CT-S4000 (Apple #5823) 0x2730 0x2008 unidir delay-close # All Arkscan label printers (Apple #5867) 0x2d84 unidir no-reattach # HP DesignJet 130 (Apple #5838) 0x03f0 0x0314 no-reattach # GoDEX label printers (https://github.com/OpenPrinting/cups/issues/440) 0x195f 0x0001 unidir no-reattach ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/network.c������������������������������������������������������������������������0000644�0001750�0001750�00000023000�14502571342�015600� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Common backend network APIs for CUPS. * * Copyright © 2007-2016 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <limits.h> #include <sys/select.h> /* * 'backendCheckSideChannel()' - Check the side-channel for pending requests. */ void backendCheckSideChannel( int snmp_fd, /* I - SNMP socket */ http_addr_t *addr) /* I - Address of device */ { fd_set input; /* Select input set */ struct timeval timeout; /* Select timeout */ FD_ZERO(&input); FD_SET(CUPS_SC_FD, &input); timeout.tv_sec = timeout.tv_usec = 0; if (select(CUPS_SC_FD + 1, &input, NULL, NULL, &timeout) > 0) backendNetworkSideCB(-1, -1, snmp_fd, addr, 0); } /* * 'backendLookup()' - Lookup the given host and log addresses. */ http_addrlist_t * /* O - List of addresses or NULL */ backendLookup(const char *hostname, /* I - Hostname */ int port, /* I - Port number */ int *cancel) /* I - Variable to watch for job cancel */ { char portname[32], /* Port number as string */ addrname[256]; /* Address as string */ http_addrlist_t *addrlist, /* List of addresses */ *current; /* Current address */ /* * Lookup the address for the named host... */ snprintf(portname, sizeof(portname), "%d", port); fputs("STATE: +connecting-to-device\n", stderr); fprintf(stderr, "DEBUG: Looking up \"%s\"...\n", hostname); while ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer \"%s\"."), hostname); sleep(10); if (getenv("CLASS") != NULL) { fputs("STATE: -connecting-to-device\n", stderr); exit(CUPS_BACKEND_STOP); } if (cancel && *cancel) { fputs("STATE: -connecting-to-device\n", stderr); exit(CUPS_BACKEND_OK); } } fputs("STATE: -connecting-to-device\n", stderr); /* * Log the addresses we got... */ for (current = addrlist; current; current = current->next) fprintf(stderr, "DEBUG: %s=%s\n", hostname, httpAddrString(¤t->addr, addrname, sizeof(addrname))); /* * Return... */ return (addrlist); } /* * 'backendNetworkSideCB()' - Handle common network side-channel commands. */ int /* O - -1 on error, 0 on success */ backendNetworkSideCB( int print_fd, /* I - Print file or -1 */ int device_fd, /* I - Device file or -1 */ int snmp_fd, /* I - SNMP socket */ http_addr_t *addr, /* I - Address of device */ int use_bc) /* I - Use back-channel data? */ { cups_sc_command_t command; /* Request command */ cups_sc_status_t status; /* Request/response status */ char data[65536]; /* Request/response data */ int datalen; /* Request/response data size */ const char *device_id; /* 1284DEVICEID env var */ datalen = sizeof(data); if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) return (-1); switch (command) { case CUPS_SC_CMD_DRAIN_OUTPUT : /* * Our sockets disable the Nagle algorithm and data is sent immediately. */ if (device_fd < 0) status = CUPS_SC_STATUS_NOT_IMPLEMENTED; else if (backendDrainOutput(print_fd, device_fd)) status = CUPS_SC_STATUS_IO_ERROR; else status = CUPS_SC_STATUS_OK; datalen = 0; break; case CUPS_SC_CMD_GET_BIDI : status = CUPS_SC_STATUS_OK; data[0] = (char)use_bc; datalen = 1; break; case CUPS_SC_CMD_SNMP_GET : case CUPS_SC_CMD_SNMP_GET_NEXT : fprintf(stderr, "DEBUG: CUPS_SC_CMD_SNMP_%s: %d (%s)\n", command == CUPS_SC_CMD_SNMP_GET ? "GET" : "GET_NEXT", datalen, data); if (datalen < 2) { status = CUPS_SC_STATUS_BAD_MESSAGE; datalen = 0; break; } if (snmp_fd >= 0) { char *dataptr; /* Pointer into data */ cups_snmp_t packet; /* Packet from printer */ const char *snmp_value; /* CUPS_SNMP_VALUE env var */ if ((snmp_value = getenv("CUPS_SNMP_VALUE")) != NULL) { const char *snmp_count; /* CUPS_SNMP_COUNT env var */ int count; /* Repetition count */ if ((snmp_count = getenv("CUPS_SNMP_COUNT")) != NULL) { if ((count = atoi(snmp_count)) <= 0) count = 1; } else count = 1; for (dataptr = data + strlen(data) + 1; count > 0 && dataptr < (data + sizeof(data) - 1); count --, dataptr += strlen(dataptr)) strlcpy(dataptr, snmp_value, sizeof(data) - (size_t)(dataptr - data)); fprintf(stderr, "DEBUG: Returning %s %s\n", data, data + strlen(data) + 1); status = CUPS_SC_STATUS_OK; datalen = (int)(dataptr - data); break; } if (!_cupsSNMPStringToOID(data, packet.object_name, CUPS_SNMP_MAX_OID)) { status = CUPS_SC_STATUS_BAD_MESSAGE; datalen = 0; break; } status = CUPS_SC_STATUS_IO_ERROR; datalen = 0; if (_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), command == CUPS_SC_CMD_SNMP_GET ? CUPS_ASN1_GET_REQUEST : CUPS_ASN1_GET_NEXT_REQUEST, 1, packet.object_name)) { if (_cupsSNMPRead(snmp_fd, &packet, 1.0)) { size_t i; /* Looping var */ if (!_cupsSNMPOIDToString(packet.object_name, data, sizeof(data))) { fputs("DEBUG: Bad OID returned!\n", stderr); break; } datalen = (int)strlen(data) + 1; dataptr = data + datalen; switch (packet.object_type) { case CUPS_ASN1_BOOLEAN : snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%d", packet.object_value.boolean); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_INTEGER : snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%d", packet.object_value.integer); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_BIT_STRING : case CUPS_ASN1_OCTET_STRING : if (packet.object_value.string.num_bytes < (sizeof(data) - (size_t)(dataptr - data))) i = packet.object_value.string.num_bytes; else i = sizeof(data) - (size_t)(dataptr - data); memcpy(dataptr, packet.object_value.string.bytes, i); datalen += (int)i; break; case CUPS_ASN1_OID : _cupsSNMPOIDToString(packet.object_value.oid, dataptr, sizeof(data) - (size_t)(dataptr - data)); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_HEX_STRING : for (i = 0; i < packet.object_value.string.num_bytes && dataptr < (data + sizeof(data) - 3); i ++, dataptr += 2) snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%02X", packet.object_value.string.bytes[i]); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_COUNTER : snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%u", packet.object_value.counter); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_GAUGE : snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%u", packet.object_value.gauge); datalen += (int)strlen(dataptr); break; case CUPS_ASN1_TIMETICKS : snprintf(dataptr, sizeof(data) - (size_t)(dataptr - data), "%u", packet.object_value.timeticks); datalen += (int)strlen(dataptr); break; default : fprintf(stderr, "DEBUG: Unknown OID value type %02X.\n", packet.object_type); case CUPS_ASN1_NULL_VALUE : dataptr[0] = '\0'; break; } fprintf(stderr, "DEBUG: Returning %s %s\n", data, data + datalen); status = CUPS_SC_STATUS_OK; } else fputs("DEBUG: SNMP read error...\n", stderr); } else fputs("DEBUG: SNMP write error...\n", stderr); break; } status = CUPS_SC_STATUS_NOT_IMPLEMENTED; datalen = 0; break; case CUPS_SC_CMD_GET_CONNECTED : status = CUPS_SC_STATUS_OK; data[0] = device_fd != -1; datalen = 1; break; case CUPS_SC_CMD_GET_DEVICE_ID : if (snmp_fd >= 0) { cups_snmp_t packet; /* Packet from printer */ static const int ppmPrinterIEEE1284DeviceId[] = { CUPS_OID_ppmPrinterIEEE1284DeviceId,1,-1 }; status = CUPS_SC_STATUS_IO_ERROR; datalen = 0; if (_cupsSNMPWrite(snmp_fd, addr, CUPS_SNMP_VERSION_1, _cupsSNMPDefaultCommunity(), CUPS_ASN1_GET_REQUEST, 1, ppmPrinterIEEE1284DeviceId)) { if (_cupsSNMPRead(snmp_fd, &packet, 1.0) && packet.object_type == CUPS_ASN1_OCTET_STRING) { strlcpy(data, (char *)packet.object_value.string.bytes, sizeof(data)); datalen = (int)strlen(data); status = CUPS_SC_STATUS_OK; } } break; } if ((device_id = getenv("1284DEVICEID")) != NULL) { strlcpy(data, device_id, sizeof(data)); datalen = (int)strlen(data); status = CUPS_SC_STATUS_OK; break; } default : status = CUPS_SC_STATUS_NOT_IMPLEMENTED; datalen = 0; break; } return (cupsSideChannelWrite(command, status, data, datalen, 1.0)); } cups-2.4.7/backend/lpd.c����������������������������������������������������������������������������0000644�0001750�0001750�00000073656�14502571342�014714� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Line Printer Daemon backend for CUPS. * * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include <cups/http-private.h> #include "backend-private.h" #include <stdarg.h> #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #ifdef _WIN32 # include <winsock.h> #else # include <sys/socket.h> # include <netinet/in.h> # include <arpa/inet.h> # include <netdb.h> #endif /* _WIN32 */ #ifdef __APPLE__ # include <CoreFoundation/CFNumber.h> # include <CoreFoundation/CFPreferences.h> #endif /* __APPLE__ */ /* * Globals... */ static char tmpfilename[1024] = ""; /* Temporary spool file name */ static int abort_job = 0; /* Non-zero if we get SIGTERM */ /* * Print mode... */ #define MODE_STANDARD 0 /* Queue a copy */ #define MODE_STREAM 1 /* Stream a copy */ /* * The order for control and data files in LPD requests... */ #define ORDER_CONTROL_DATA 0 /* Control file first, then data */ #define ORDER_DATA_CONTROL 1 /* Data file first, then control */ /* * What to reserve... */ #define RESERVE_NONE 0 /* Don't reserve a privileged port */ #define RESERVE_RFC1179 1 /* Reserve port 721-731 */ #define RESERVE_ANY 2 /* Reserve port 512-1023 */ /* * Local functions... */ static int cups_rresvport(int *port, int min, int family); static int lpd_command(int lpd_fd, char *format, ...) # ifdef __GNUC__ __attribute__ ((__format__ (__printf__, 2, 3))) # endif /* __GNUC__ */ ; static int lpd_queue(const char *hostname, http_addrlist_t *addrlist, const char *printer, int print_fd, int snmp_fd, int mode, const char *user, const char *title, int copies, int banner, int format, int order, int reserve, int manual_copies, int timeout, int contimeout, const char *orighost) _CUPS_NONNULL((1,2,3,7,8,17)); static ssize_t lpd_write(int lpd_fd, char *buffer, size_t length); static void sigterm_handler(int sig); /* * 'main()' - Send a file to the printer or server. * * Usage: * * printer-uri job-id user title copies options [file] */ int /* O - Exit status */ main(int argc, /* I - Number of command-line arguments (6 or 7) */ char *argv[]) /* I - Command-line arguments */ { const char *device_uri; /* Device URI */ char scheme[255], /* Scheme in URI */ hostname[1024], /* Hostname */ username[255], /* Username info */ resource[1024], /* Resource info (printer name) */ *options, /* Pointer to options */ *name, /* Name of option */ *value, /* Value of option */ sep, /* Separator character */ title[256]; /* Title string */ int port; /* Port number */ http_addrlist_t *addrlist; /* List of addresses for printer */ int snmp_enabled = 1; /* Is SNMP enabled? */ int snmp_fd; /* SNMP socket */ int fd; /* Print file */ int status; /* Status of LPD job */ int mode; /* Print mode */ int banner; /* Print banner page? */ int format; /* Print format */ int order; /* Order of control/data files */ int reserve; /* Reserve privileged port? */ int sanitize_title; /* Sanitize title string? */ int manual_copies, /* Do manual copies? */ timeout, /* Timeout */ contimeout, /* Connection timeout */ copies; /* Number of copies */ ssize_t bytes = 0; /* Initial bytes read */ char buffer[16384]; /* Initial print buffer */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ int num_jobopts; /* Number of job options */ cups_option_t *jobopts = NULL; /* Job options */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE and catch SIGTERM signals... */ #ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); sigset(SIGTERM, sigterm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGTERM); action.sa_handler = sigterm_handler; sigaction(SIGTERM, &action, NULL); #else signal(SIGPIPE, SIG_IGN); signal(SIGTERM, sigterm_handler); #endif /* HAVE_SIGSET */ /* * Check command-line... */ if (argc == 1) { printf("network lpd \"Unknown\" \"%s\"\n", _cupsLangString(cupsLangDefault(), _("LPD/LPR Host or Printer"))); return (CUPS_BACKEND_OK); } else if (argc != 6 && argc != 7) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (CUPS_BACKEND_FAILED); } num_jobopts = cupsParseOptions(argv[5], 0, &jobopts); /* * Extract the hostname and printer name from the URI... */ while ((device_uri = cupsBackendDeviceURI(argv)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer.")); sleep(10); if (getenv("CLASS") != NULL) return (CUPS_BACKEND_FAILED); } httpSeparateURI(HTTP_URI_CODING_ALL, device_uri, scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (!port) port = 515; /* Default to port 515 */ if (!username[0]) { /* * If no username is in the device URI, then use the print job user... */ strlcpy(username, argv[2], sizeof(username)); } /* * See if there are any options... */ mode = MODE_STANDARD; banner = 0; format = 'l'; order = ORDER_CONTROL_DATA; reserve = RESERVE_ANY; manual_copies = 1; timeout = 300; contimeout = 7 * 24 * 60 * 60; #ifdef __APPLE__ /* * We want to pass UTF-8 characters by default, not re-map them (3071945) */ sanitize_title = 0; #else /* * Otherwise we want to re-map UTF-8 to "safe" characters by default... */ sanitize_title = 1; #endif /* __APPLE__ */ if ((options = strchr(resource, '?')) != NULL) { /* * Yup, terminate the device name string and move to the first * character of the options... */ *options++ = '\0'; /* * Parse options... */ while (*options) { /* * Get the name... */ name = options; while (*options && *options != '=' && *options != '+' && *options != '&') options ++; if ((sep = *options) != '\0') *options++ = '\0'; if (sep == '=') { /* * Get the value... */ value = options; while (*options && *options != '+' && *options != '&') options ++; if (*options) *options++ = '\0'; } else value = (char *)""; /* * Process the option... */ if (!_cups_strcasecmp(name, "banner")) { /* * Set the banner... */ banner = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "format") && value[0]) { /* * Set output format... */ if (strchr("cdfglnoprtv", value[0])) format = value[0]; else _cupsLangPrintFilter(stderr, "ERROR", _("Unknown format character: \"%c\"."), value[0]); } else if (!_cups_strcasecmp(name, "mode") && value[0]) { /* * Set control/data order... */ if (!_cups_strcasecmp(value, "standard")) mode = MODE_STANDARD; else if (!_cups_strcasecmp(value, "stream")) mode = MODE_STREAM; else _cupsLangPrintFilter(stderr, "ERROR", _("Unknown print mode: \"%s\"."), value); } else if (!_cups_strcasecmp(name, "order") && value[0]) { /* * Set control/data order... */ if (!_cups_strcasecmp(value, "control,data")) order = ORDER_CONTROL_DATA; else if (!_cups_strcasecmp(value, "data,control")) order = ORDER_DATA_CONTROL; else _cupsLangPrintFilter(stderr, "ERROR", _("Unknown file order: \"%s\"."), value); } else if (!_cups_strcasecmp(name, "reserve")) { /* * Set port reservation mode... */ if (!value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "rfc1179")) reserve = RESERVE_RFC1179; else if (!_cups_strcasecmp(value, "any")) reserve = RESERVE_ANY; else reserve = RESERVE_NONE; } else if (!_cups_strcasecmp(name, "manual_copies")) { /* * Set manual copies... */ manual_copies = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "sanitize_title")) { /* * Set sanitize title... */ sanitize_title = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "snmp")) { /* * Enable/disable SNMP stuff... */ snmp_enabled = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "timeout")) { /* * Set the timeout... */ if (atoi(value) > 0) timeout = atoi(value); } else if (!_cups_strcasecmp(name, "contimeout")) { /* * Set the connection timeout... */ if (atoi(value) > 0) contimeout = atoi(value); } } } if (mode == MODE_STREAM) order = ORDER_CONTROL_DATA; /* * Find the printer... */ addrlist = backendLookup(hostname, port, NULL); /* * See if the printer supports SNMP... */ if (snmp_enabled) snmp_fd = _cupsSNMPOpen(addrlist->addr.addr.sa_family); else snmp_fd = -1; /* * Wait for data from the filter... */ if (argc == 6) { if (!backendWaitLoop(snmp_fd, &(addrlist->addr), 0, backendNetworkSideCB)) return (CUPS_BACKEND_OK); else if (mode == MODE_STANDARD && (bytes = read(0, buffer, sizeof(buffer))) <= 0) return (CUPS_BACKEND_OK); } /* * If we have 7 arguments, print the file named on the command-line. * Otherwise, copy stdin to a temporary file and print the temporary * file. */ if (argc == 6 && mode == MODE_STANDARD) { /* * Copy stdin to a temporary file... */ if ((fd = cupsTempFd(tmpfilename, sizeof(tmpfilename))) < 0) { perror("DEBUG: Unable to create temporary file"); return (CUPS_BACKEND_FAILED); } _cupsLangPrintFilter(stderr, "INFO", _("Copying print data.")); if (bytes > 0) write(fd, buffer, (size_t)bytes); backendRunLoop(-1, fd, snmp_fd, &(addrlist->addr), 0, 0, backendNetworkSideCB); } else if (argc == 6) { /* * Stream from stdin... */ fd = 0; } else { fd = open(argv[6], O_RDONLY); if (fd == -1) { _cupsLangPrintError("ERROR", _("Unable to open print file")); return (CUPS_BACKEND_FAILED); } } /* * Sanitize the document title... */ strlcpy(title, argv[3], sizeof(title)); if (sanitize_title) { /* * Sanitize the title string so that we don't cause problems on * the remote end... */ char *ptr; for (ptr = title; *ptr; ptr ++) if (!isalnum(*ptr & 255) && !isspace(*ptr & 255)) *ptr = '_'; } /* * Queue the job... */ if (argc > 6) { if (manual_copies) { manual_copies = atoi(argv[4]); copies = 1; } else { manual_copies = 1; copies = atoi(argv[4]); } status = lpd_queue(hostname, addrlist, resource + 1, fd, snmp_fd, mode, username, title, copies, banner, format, order, reserve, manual_copies, timeout, contimeout, cupsGetOption("job-originating-host-name", num_jobopts, jobopts)); if (!status) fprintf(stderr, "PAGE: 1 %d\n", atoi(argv[4])); } else status = lpd_queue(hostname, addrlist, resource + 1, fd, snmp_fd, mode, username, title, 1, banner, format, order, reserve, 1, timeout, contimeout, cupsGetOption("job-originating-host-name", num_jobopts, jobopts)); /* * Remove the temporary file if necessary... */ if (tmpfilename[0]) unlink(tmpfilename); if (fd) close(fd); if (snmp_fd >= 0) _cupsSNMPClose(snmp_fd); /* * Return the queue status... */ return (status); } /* * 'cups_rresvport()' - A simple implementation of rresvport_af(). */ static int /* O - Socket or -1 on error */ cups_rresvport(int *port, /* IO - Port number to bind to */ int min, /* I - Minimim port number use */ int family) /* I - Address family */ { http_addr_t addr; /* Socket address */ int fd; /* Socket file descriptor */ /* * Try to create an IPv4 socket... */ if ((fd = socket(family, SOCK_STREAM, 0)) < 0) return (-1); /* * Initialize the address buffer... */ memset(&addr, 0, sizeof(addr)); addr.addr.sa_family = (sa_family_t)family; /* * Try to bind the socket to a reserved port... */ while (*port >= min) { /* * Set the port number... */ _httpAddrSetPort(&addr, *port); /* * Try binding the port to the socket; return if all is OK... */ if (!bind(fd, (struct sockaddr *)&addr, (socklen_t)httpAddrLength(&addr))) return (fd); /* * Stop if we have any error other than "address already in use"... */ if (errno != EADDRINUSE) { httpAddrClose(NULL, fd); return (-1); } /* * Try the next port... */ (*port)--; } /* * Wasn't able to bind to a reserved port, so close the socket and return * -1... */ #ifdef _WIN32 closesocket(fd); #else close(fd); #endif /* _WIN32 */ return (-1); } /* * 'lpd_command()' - Send an LPR command sequence and wait for a reply. */ static int /* O - Status of command */ lpd_command(int fd, /* I - Socket connection to LPD host */ char *format, /* I - printf()-style format string */ ...) /* I - Additional args as necessary */ { va_list ap; /* Argument pointer */ char buf[1024]; /* Output buffer */ ssize_t bytes; /* Number of bytes to output */ char status; /* Status from command */ /* * Don't try to send commands if the job has been canceled... */ if (abort_job) return (-1); /* * Format the string... */ va_start(ap, format); bytes = vsnprintf(buf, sizeof(buf), format, ap); va_end(ap); fprintf(stderr, "DEBUG: lpd_command %2.2x %s", buf[0], buf + 1); /* * Send the command... */ fprintf(stderr, "DEBUG: Sending command string (" CUPS_LLFMT " bytes)...\n", CUPS_LLCAST bytes); if (lpd_write(fd, buf, (size_t)bytes) < bytes) { perror("DEBUG: Unable to send LPD command"); return (-1); } /* * Read back the status from the command and return it... */ fputs("DEBUG: Reading command status...\n", stderr); if (recv(fd, &status, 1, 0) < 1) { _cupsLangPrintFilter(stderr, "WARNING", _("The printer did not respond.")); status = (char)errno; } fprintf(stderr, "DEBUG: lpd_command returning %d\n", status); return (status); } /* * 'lpd_queue()' - Queue a file using the Line Printer Daemon protocol. */ static int /* O - Zero on success, non-zero on failure */ lpd_queue(const char *hostname, /* I - Host to connect to */ http_addrlist_t *addrlist, /* I - List of host addresses */ const char *printer, /* I - Printer/queue name */ int print_fd, /* I - File to print */ int snmp_fd, /* I - SNMP socket */ int mode, /* I - Print mode */ const char *user, /* I - Requesting user */ const char *title, /* I - Job title */ int copies, /* I - Number of copies */ int banner, /* I - Print LPD banner? */ int format, /* I - Format specifier */ int order, /* I - Order of data/control files */ int reserve, /* I - Reserve ports? */ int manual_copies,/* I - Do copies by hand... */ int timeout, /* I - Timeout... */ int contimeout, /* I - Connection timeout */ const char *orighost) /* I - job-originating-host-name */ { char localhost[255]; /* Local host name */ int error; /* Error number */ struct stat filestats; /* File statistics */ int lport; /* LPD connection local port */ int fd; /* LPD socket */ char control[10240], /* LPD control 'file' */ *cptr; /* Pointer into control file string */ char status; /* Status byte from command */ int delay; /* Delay for retries... */ char addrname[256]; /* Address name */ http_addrlist_t *addr; /* Socket address */ int have_supplies; /* Printer supports supply levels? */ int copy; /* Copies written */ time_t start_time; /* Time of first connect */ ssize_t nbytes; /* Number of bytes written */ off_t tbytes; /* Total bytes written */ char buffer[32768]; /* Output buffer */ #ifdef _WIN32 DWORD tv; /* Timeout in milliseconds */ #else struct timeval tv; /* Timeout in secs and usecs */ #endif /* _WIN32 */ /* * Remember when we started trying to connect to the printer... */ start_time = time(NULL); /* * Loop forever trying to print the file... */ while (!abort_job) { /* * First try to reserve a port for this connection... */ fprintf(stderr, "DEBUG: Connecting to %s:%d for printer %s\n", hostname, httpAddrPort(&(addrlist->addr)), printer); _cupsLangPrintFilter(stderr, "INFO", _("Connecting to printer.")); for (lport = reserve == RESERVE_RFC1179 ? 732 : 1024, addr = addrlist, delay = 5;; addr = addr->next) { /* * Stop if this job has been canceled... */ if (abort_job) return (CUPS_BACKEND_FAILED); /* * Choose the next privileged port... */ if (!addr) addr = addrlist; lport --; if (lport < 721 && reserve == RESERVE_RFC1179) lport = 731; else if (lport < 512) lport = 1023; #ifdef HAVE_GETEUID if (geteuid() || !reserve) #else if (getuid() || !reserve) #endif /* HAVE_GETEUID */ { /* * Just create a regular socket... */ if ((fd = socket(addr->addr.addr.sa_family, SOCK_STREAM, 0)) < 0) { perror("DEBUG: Unable to create socket"); sleep(1); continue; } lport = 0; } else { /* * We're running as root and want to either: * a) comply with RFC 1179 and reserve a lport between 721 and 731 * b) just reserve a privileged port between 512 and 1023 */ if ((fd = cups_rresvport(&lport, reserve == RESERVE_RFC1179 ? 721 : 512, addr->addr.addr.sa_family)) < 0) { perror("DEBUG: Unable to reserve port"); sleep(1); continue; } } /* * Connect to the printer or server... */ if (abort_job) { close(fd); return (CUPS_BACKEND_FAILED); } if (!connect(fd, &(addr->addr.addr), (socklen_t)httpAddrLength(&(addr->addr)))) break; error = errno; close(fd); if (addr->next) continue; if (getenv("CLASS") != NULL) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. */ _cupsLangPrintFilter(stderr, "INFO", _("Unable to contact printer, queuing on next " "printer in class.")); /* * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Connection error: %s\n", strerror(error)); if (errno == ECONNREFUSED || errno == EHOSTDOWN || errno == EHOSTUNREACH || errno == ETIMEDOUT || errno == ENOTCONN) { if (contimeout && (time(NULL) - start_time) > contimeout) { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); return (CUPS_BACKEND_FAILED); } switch (error) { case EHOSTDOWN : _cupsLangPrintFilter(stderr, "WARNING", _("The printer may not exist or " "is unavailable at this time.")); break; case EHOSTUNREACH : default : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is unreachable at " "this time.")); break; case ECONNREFUSED : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is in use.")); break; } sleep((unsigned)delay); if (delay < 30) delay += 5; } else if (error == EADDRINUSE) { /* * Try on another port... */ sleep(1); } else { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); sleep(30); } } /* * Set the timeout... */ #ifdef _WIN32 tv = (DWORD)(timeout * 1000); setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(tv)); setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv, sizeof(tv)); #else tv.tv_sec = timeout; tv.tv_usec = 0; setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); #endif /* _WIN32 */ fputs("STATE: -connecting-to-device\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("Connected to printer.")); fprintf(stderr, "DEBUG: Connected to %s:%d (local port %d)...\n", httpAddrString(&(addr->addr), addrname, sizeof(addrname)), httpAddrPort(&(addr->addr)), lport); /* * See if the printer supports SNMP... */ if (snmp_fd >= 0) have_supplies = !backendSNMPSupplies(snmp_fd, &(addrlist->addr), NULL, NULL); else have_supplies = 0; /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, &(addrlist->addr)); /* * Next, open the print file and figure out its size... */ if (print_fd) { /* * Use the size from the print file... */ if (fstat(print_fd, &filestats)) { close(fd); perror("DEBUG: unable to stat print file"); return (CUPS_BACKEND_FAILED); } filestats.st_size *= manual_copies; } else { /* * Use a "very large value" for the size so that the printer will * keep printing until we close the connection... */ #ifdef _LARGEFILE_SOURCE filestats.st_size = (size_t)(999999999999.0); #else filestats.st_size = 2147483647; #endif /* _LARGEFILE_SOURCE */ } /* * Send a job header to the printer, specifying no banner page and * literal output... */ if (lpd_command(fd, "\002%s\n", printer)) /* Receive print job(s) */ { close(fd); return (CUPS_BACKEND_FAILED); } if (orighost && _cups_strcasecmp(orighost, "localhost")) strlcpy(localhost, orighost, sizeof(localhost)); else httpGetHostname(NULL, localhost, sizeof(localhost)); snprintf(control, sizeof(control), "H%.31s\n" /* RFC 1179, Section 7.2 - host name <= 31 chars */ "P%.31s\n" /* RFC 1179, Section 7.2 - user name <= 31 chars */ "J%.99s\n", /* RFC 1179, Section 7.2 - job name <= 99 chars */ localhost, user, title); cptr = control + strlen(control); if (banner) { snprintf(cptr, sizeof(control) - (size_t)(cptr - control), "C%.31s\n" /* RFC 1179, Section 7.2 - class name <= 31 chars */ "L%s\n", localhost, user); cptr += strlen(cptr); } while (copies > 0) { snprintf(cptr, sizeof(control) - (size_t)(cptr - control), "%cdfA%03d%.15s\n", format, (int)getpid() % 1000, localhost); cptr += strlen(cptr); copies --; } snprintf(cptr, sizeof(control) - (size_t)(cptr - control), "UdfA%03d%.15s\n" "N%.131s\n", /* RFC 1179, Section 7.2 - sourcefile name <= 131 chars */ (int)getpid() % 1000, localhost, title); fprintf(stderr, "DEBUG: Control file is:\n%s", control); if (order == ORDER_CONTROL_DATA) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, &(addr->addr)); /* * Send the control file... */ if (lpd_command(fd, "\002%u cfA%03d%.15s\n", (unsigned)strlen(control), (int)getpid() % 1000, localhost)) { close(fd); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Sending control file (%u bytes)\n", (unsigned)strlen(control)); if ((size_t)lpd_write(fd, control, strlen(control) + 1) < (strlen(control) + 1)) { status = (char)errno; perror("DEBUG: Unable to write control file"); } else { if (read(fd, &status, 1) < 1) { _cupsLangPrintFilter(stderr, "WARNING", _("The printer did not respond.")); status = (char)errno; } } if (status != 0) _cupsLangPrintFilter(stderr, "ERROR", _("Remote host did not accept control file (%d)."), status); else _cupsLangPrintFilter(stderr, "INFO", _("Control file sent successfully.")); } else status = 0; if (status == 0) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, &(addr->addr)); /* * Send the print file... */ if (lpd_command(fd, "\003" CUPS_LLFMT " dfA%03d%.15s\n", CUPS_LLCAST filestats.st_size, (int)getpid() % 1000, localhost)) { close(fd); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Sending data file (" CUPS_LLFMT " bytes)\n", CUPS_LLCAST filestats.st_size); tbytes = 0; for (copy = 0; copy < manual_copies; copy ++) { lseek(print_fd, 0, SEEK_SET); while ((nbytes = read(print_fd, buffer, sizeof(buffer))) > 0) { _cupsLangPrintFilter(stderr, "INFO", _("Spooling job, %.0f%% complete."), 100.0 * tbytes / filestats.st_size); if (lpd_write(fd, buffer, (size_t)nbytes) < nbytes) { perror("DEBUG: Unable to send print file to printer"); break; } else tbytes += nbytes; } } if (mode == MODE_STANDARD) { if (tbytes < filestats.st_size) status = (char)errno; else if (lpd_write(fd, "", 1) < 1) { perror("DEBUG: Unable to send trailing nul to printer"); status = (char)errno; } else { /* * Read the status byte from the printer; if we can't read the byte * back now, we should set status to "errno", however at this point * we know the printer got the whole file and we don't necessarily * want to requeue it over and over... */ if (recv(fd, &status, 1, 0) < 1) { _cupsLangPrintFilter(stderr, "WARNING", _("The printer did not respond.")); status = 0; } } } else status = 0; if (status != 0) _cupsLangPrintFilter(stderr, "ERROR", _("Remote host did not accept data file (%d)."), status); else _cupsLangPrintFilter(stderr, "INFO", _("Data file sent successfully.")); } if (status == 0 && order == ORDER_DATA_CONTROL) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, &(addr->addr)); /* * Send control file... */ if (lpd_command(fd, "\002%u cfA%03d%.15s\n", (unsigned)strlen(control), (int)getpid() % 1000, localhost)) { close(fd); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Sending control file (%u bytes)\n", (unsigned)strlen(control)); if ((size_t)lpd_write(fd, control, strlen(control) + 1) < (strlen(control) + 1)) { status = (char)errno; perror("DEBUG: Unable to write control file"); } else { if (read(fd, &status, 1) < 1) { _cupsLangPrintFilter(stderr, "WARNING", _("The printer did not respond.")); status = (char)errno; } } if (status != 0) _cupsLangPrintFilter(stderr, "ERROR", _("Remote host did not accept control file (%d)."), status); else _cupsLangPrintFilter(stderr, "INFO", _("Control file sent successfully.")); } fputs("STATE: +cups-waiting-for-job-completed\n", stderr); /* * Collect the final supply levels as needed... */ if (have_supplies) backendSNMPSupplies(snmp_fd, &(addr->addr), NULL, NULL); /* * Close the socket connection and input file... */ close(fd); if (status == 0) return (CUPS_BACKEND_OK); /* * Waiting for a retry... */ sleep(30); } /* * If we get here, then the job has been canceled... */ return (CUPS_BACKEND_FAILED); } /* * 'lpd_write()' - Write a buffer of data to an LPD server. */ static ssize_t /* O - Number of bytes written or -1 on error */ lpd_write(int lpd_fd, /* I - LPD socket */ char *buffer, /* I - Buffer to write */ size_t length) /* I - Number of bytes to write */ { ssize_t bytes, /* Number of bytes written */ total; /* Total number of bytes written */ if (abort_job) return (-1); total = 0; while ((bytes = send(lpd_fd, buffer, length - (size_t)total, 0)) >= 0) { total += bytes; buffer += bytes; if ((size_t)total == length) break; } if (bytes < 0) return (-1); else return (total); } /* * 'sigterm_handler()' - Handle 'terminate' signals that stop the backend. */ static void sigterm_handler(int sig) /* I - Signal */ { (void)sig; /* remove compiler warnings... */ abort_job = 1; } ����������������������������������������������������������������������������������cups-2.4.7/backend/ipp.c����������������������������������������������������������������������������0000644�0001750�0001750�00000321424�14502571342�014712� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * IPP backend for CUPS. * * Copyright © 2021-2023 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <cups/ppd-private.h> #include <cups/array-private.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) # include <xpc/xpc.h> # define kPMPrintUIToolAgent "com.apple.printuitool.agent" # define kPMStartJob 100 # define kPMWaitForJob 101 extern void xpc_connection_set_target_uid(xpc_connection_t connection, uid_t uid); #endif /* HAVE_GSSAPI && HAVE_XPC */ /* * Bits for job-state-reasons we care about... */ #define _CUPS_JSR_ACCOUNT_AUTHORIZATION_FAILED 0x01 #define _CUPS_JSR_ACCOUNT_CLOSED 0x02 #define _CUPS_JSR_ACCOUNT_INFO_NEEDED 0x04 #define _CUPS_JSR_ACCOUNT_LIMIT_REACHED 0x08 #define _CUPS_JSR_JOB_PASSWORD_WAIT 0x10 #define _CUPS_JSR_JOB_RELEASE_WAIT 0x20 #define _CUPS_JSR_DOCUMENT_FORMAT_ERROR 0x40 #define _CUPS_JSR_DOCUMENT_UNPRINTABLE 0x80 /* * Types... */ typedef struct _cups_monitor_s /**** Monitoring data ****/ { const char *uri, /* Printer URI */ *hostname, /* Hostname */ *user, /* Username */ *resource; /* Resource path */ int port, /* Port number */ version, /* IPP version */ job_id, /* Job ID for submitted job */ job_reasons, /* Job state reasons bits */ create_job, /* Support Create-Job? */ get_job_attrs; /* Support Get-Job-Attributes? */ const char *job_name; /* Job name for submitted job */ http_encryption_t encryption; /* Use encryption? */ ipp_jstate_t job_state; /* Current job state */ ipp_pstate_t printer_state; /* Current printer state */ int retryable; /* Is this a job that should be retried? */ } _cups_monitor_t; /* * Globals... */ #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) static pid_t child_pid = 0; /* Child process ID */ #endif /* HAVE_GSSAPI && HAVE_XPC */ static const char * const jattrs[] = /* Job attributes we want */ { "job-id", "job-impressions-completed", "job-media-sheets-completed", "job-name", "job-originating-user-name", "job-state", "job-state-reasons" }; static int job_canceled = 0, /* Job cancelled? */ uri_credentials = 0; /* Credentials supplied in URI? */ static char username[256] = "", /* Username for device URI */ *password = NULL; /* Password for device URI */ static const char * const pattrs[] = /* Printer attributes we want */ { #ifdef HAVE_LIBZ "compression-supported", #endif /* HAVE_LIBZ */ "copies-supported", "cups-version", "document-format-supported", "job-password-encryption-supported", "marker-colors", "marker-high-levels", "marker-levels", "marker-low-levels", "marker-message", "marker-names", "marker-types", "media-col-supported", "multiple-document-handling-supported", "operations-supported", "print-color-mode-supported", "printer-alert", "printer-alert-description", "printer-is-accepting-jobs", "printer-mandatory-job-attributes", "printer-state", "printer-state-message", "printer-state-reasons" }; static const char * const remote_job_states[] = { /* Remote job state keywords */ "+cups-remote-pending", "+cups-remote-pending-held", "+cups-remote-processing", "+cups-remote-stopped", "+cups-remote-canceled", "+cups-remote-aborted", "+cups-remote-completed" }; static _cups_mutex_t report_mutex = _CUPS_MUTEX_INITIALIZER; /* Mutex to control access */ static int num_attr_cache = 0; /* Number of cached attributes */ static cups_option_t *attr_cache = NULL; /* Cached attributes */ static cups_array_t *state_reasons; /* Array of printe-state-reasons keywords */ static char tmpfilename[1024] = ""; /* Temporary spool file name */ static char mandatory_attrs[1024] = ""; /* cupsMandatory value */ /* * Local functions... */ static void adjust_options(int num_options, cups_option_t *options); static void cancel_job(http_t *http, const char *uri, int id, const char *resource, const char *user, int version); static ipp_pstate_t check_printer_state(http_t *http, const char *uri, const char *resource, const char *user, int version); static void debug_attributes(ipp_t *ipp); static void *monitor_printer(_cups_monitor_t *monitor); static ipp_t *new_request(ipp_op_t op, int version, const char *uri, const char *user, const char *title, int num_options, cups_option_t *options, const char *compression, int copies, const char *format, _ppd_cache_t *pc, ppd_file_t *ppd, ipp_attribute_t *media_col_sup, ipp_attribute_t *doc_handling_sup, ipp_attribute_t *print_color_mode_sup); static const char *password_cb(const char *prompt, http_t *http, const char *method, const char *resource, int *user_data); static const char *quote_string(const char *s, char *q, size_t qsize); static void report_attr(ipp_attribute_t *attr); static void report_printer_state(ipp_t *ipp); #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) static int run_as_user(char *argv[], uid_t uid, const char *device_uri, int fd); #endif /* HAVE_GSSAPI && HAVE_XPC */ static void sigterm_handler(int sig); static int timeout_cb(http_t *http, void *user_data); static void update_reasons(ipp_attribute_t *attr, const char *s); /* * 'main()' - Send a file to the printer or server. * * Usage: * * printer-uri job-id user title copies options [file] */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { int i; /* Looping var */ int send_options; /* Send job options? */ int num_options; /* Number of printer options */ cups_option_t *options; /* Printer options */ const char *device_uri; /* Device URI */ char scheme[255], /* Scheme in URI */ hostname[1024], /* Hostname */ resource[1024], /* Resource info (printer name) */ addrname[256], /* Address name */ *optptr, /* Pointer to URI options */ *name, /* Name of option */ *value, /* Value of option */ sep; /* Separator character */ int password_tries = 0; /* Password tries */ http_addrlist_t *addrlist; /* Address of printer */ int snmp_enabled = 1; /* Is SNMP enabled? */ int snmp_fd, /* SNMP socket */ start_count, /* Page count via SNMP at start */ page_count, /* Page count via SNMP */ have_supplies; /* Printer supports supply levels? */ int num_files; /* Number of files to print */ char **files, /* Files to print */ *compatfile = NULL; /* Compatibility filename */ off_t compatsize = 0; /* Size of compatibility file */ int port; /* Port number (not used) */ char uri[HTTP_MAX_URI]; /* Updated URI without user/pass */ char print_job_name[1024]; /* Update job-name for Print-Job */ http_status_t http_status; /* Status of HTTP request */ ipp_status_t ipp_status; /* Status of IPP request */ http_t *http; /* HTTP connection */ ipp_t *request, /* IPP request */ *response, /* IPP response */ *supported; /* get-printer-attributes response */ time_t start_time; /* Time of first connect */ int contimeout; /* Connection timeout */ int delay, /* Delay for retries */ prev_delay; /* Previous delay */ const char *compression; /* Compression mode */ int waitjob, /* Wait for job complete? */ waitjob_tries = 0, /* Number of times we've waited */ waitprinter; /* Wait for printer ready? */ _cups_monitor_t monitor; /* Monitoring data */ ipp_attribute_t *job_id_attr; /* job-id attribute */ int job_id; /* job-id value */ ipp_attribute_t *job_sheets; /* job-media-sheets-completed */ ipp_attribute_t *job_state; /* job-state */ #ifdef HAVE_LIBZ ipp_attribute_t *compression_sup; /* compression-supported */ #endif /* HAVE_LIBZ */ ipp_attribute_t *copies_sup; /* copies-supported */ ipp_attribute_t *cups_version; /* cups-version */ ipp_attribute_t *encryption_sup; /* job-password-encryption-supported */ ipp_attribute_t *format_sup; /* document-format-supported */ ipp_attribute_t *job_auth; /* job-authorization-uri */ ipp_attribute_t *media_col_sup; /* media-col-supported */ ipp_attribute_t *operations_sup; /* operations-supported */ ipp_attribute_t *doc_handling_sup; /* multiple-document-handling-supported */ ipp_attribute_t *printer_state; /* printer-state attribute */ ipp_attribute_t *printer_accepting; /* printer-is-accepting-jobs */ ipp_attribute_t *print_color_mode_sup;/* Does printer support print-color-mode? */ int create_job = 0, /* Does printer support Create-Job? */ get_job_attrs = 0, /* Does printer support Get-Job-Attributes? */ send_document = 0, /* Does printer support Send-Document? */ validate_job = 0, /* Does printer support Validate-Job? */ validate_retried = 0, /* Was Validate-Job request retried? */ copies, /* Number of copies for job */ copies_remaining; /* Number of copies remaining */ const char *auth_info_required, /* New auth-info-required value */ *content_type, /* CONTENT_TYPE environment variable */ *final_content_type, /* FINAL_CONTENT_TYPE environment var */ *document_format; /* document-format value */ int fd; /* File descriptor */ off_t bytes = 0; /* Bytes copied */ char buffer[16384]; /* Copy buffer */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ int version; /* IPP version */ ppd_file_t *ppd = NULL; /* PPD file */ _ppd_cache_t *pc = NULL; /* PPD cache and mapping data */ fd_set input; /* Input set for select() */ /* * Make sure status messages are not buffered... */ setbuf(stderr, NULL); /* * Ignore SIGPIPE and catch SIGTERM signals... */ #ifdef HAVE_SIGSET sigset(SIGPIPE, SIG_IGN); sigset(SIGTERM, sigterm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); action.sa_handler = SIG_IGN; sigaction(SIGPIPE, &action, NULL); sigemptyset(&action.sa_mask); sigaddset(&action.sa_mask, SIGTERM); action.sa_handler = sigterm_handler; sigaction(SIGTERM, &action, NULL); #else signal(SIGPIPE, SIG_IGN); signal(SIGTERM, sigterm_handler); #endif /* HAVE_SIGSET */ /* * Check command-line... */ if (argc == 1) { char *s; if ((s = strrchr(argv[0], '/')) != NULL) s ++; else s = argv[0]; printf("network %s \"Unknown\" \"%s (%s)\"\n", s, _cupsLangString(cupsLangDefault(), _("Internet Printing Protocol")), s); return (CUPS_BACKEND_OK); } else if (argc < 6) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (CUPS_BACKEND_STOP); } /* * Get the device URI... */ while ((device_uri = cupsBackendDeviceURI(argv)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer.")); sleep(10); if (getenv("CLASS") != NULL) return (CUPS_BACKEND_FAILED); } if ((auth_info_required = getenv("AUTH_INFO_REQUIRED")) == NULL) auth_info_required = "none"; state_reasons = _cupsArrayNewStrings(getenv("PRINTER_STATE_REASONS"), ','); #ifdef HAVE_GSSAPI /* * For Kerberos, become the printing user (if we can) to get the credentials * that way. */ if (!getuid() && (value = getenv("AUTH_UID")) != NULL) { uid_t uid = (uid_t)strtoul(value, NULL, 10); /* User ID */ # ifdef HAVE_XPC if (uid) { if (argc == 6) return (run_as_user(argv, uid, device_uri, 0)); else { int status = 0; /* Exit status */ for (i = 6; i < argc && !status && !job_canceled; i ++) { if ((fd = open(argv[i], O_RDONLY)) >= 0) { status = run_as_user(argv, uid, device_uri, fd); close(fd); } else { _cupsLangPrintError("ERROR", _("Unable to open print file")); status = CUPS_BACKEND_FAILED; } } return (status); } } # else /* No XPC, just try to run as the user ID */ if (uid) setuid(uid); # endif /* HAVE_XPC */ } #endif /* HAVE_GSSAPI */ /* * Get the (final) content type... */ if ((content_type = getenv("CONTENT_TYPE")) == NULL) content_type = "application/octet-stream"; if ((final_content_type = getenv("FINAL_CONTENT_TYPE")) == NULL) { final_content_type = content_type; if (!strncmp(final_content_type, "printer/", 8)) final_content_type = "application/vnd.cups-raw"; } /* * Extract the hostname and printer name from the URI... */ httpSeparateURI(HTTP_URI_CODING_ALL, device_uri, scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port, resource, sizeof(resource)); if (!port) port = IPP_PORT; /* Default to port 631 */ if (!strcmp(scheme, "https") || !strcmp(scheme, "ipps")) cupsSetEncryption(HTTP_ENCRYPTION_ALWAYS); else cupsSetEncryption(HTTP_ENCRYPTION_IF_REQUESTED); /* * See if there are any options... */ compression = NULL; version = 20; waitjob = 1; waitprinter = 1; contimeout = 7 * 24 * 60 * 60; if ((optptr = strchr(resource, '?')) != NULL) { /* * Yup, terminate the device name string and move to the first * character of the optptr... */ *optptr++ = '\0'; /* * Then parse the optptr... */ while (*optptr) { /* * Get the name... */ name = optptr; while (*optptr && *optptr != '=' && *optptr != '+' && *optptr != '&') optptr ++; if ((sep = *optptr) != '\0') *optptr++ = '\0'; if (sep == '=') { /* * Get the value... */ value = optptr; while (*optptr && *optptr != '+' && *optptr != '&') optptr ++; if (*optptr) *optptr++ = '\0'; } else value = (char *)""; /* * Process the option... */ if (!_cups_strcasecmp(name, "waitjob")) { /* * Wait for job completion? */ waitjob = !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "waitprinter")) { /* * Wait for printer idle? */ waitprinter = !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "encryption")) { /* * Enable/disable encryption? */ if (!_cups_strcasecmp(value, "always")) cupsSetEncryption(HTTP_ENCRYPTION_ALWAYS); else if (!_cups_strcasecmp(value, "required")) cupsSetEncryption(HTTP_ENCRYPTION_REQUIRED); else if (!_cups_strcasecmp(value, "never")) cupsSetEncryption(HTTP_ENCRYPTION_NEVER); else if (!_cups_strcasecmp(value, "ifrequested")) cupsSetEncryption(HTTP_ENCRYPTION_IF_REQUESTED); else { _cupsLangPrintFilter(stderr, "ERROR", _("Unknown encryption option value: \"%s\"."), value); } } else if (!_cups_strcasecmp(name, "snmp")) { /* * Enable/disable SNMP stuff... */ snmp_enabled = !value[0] || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "true"); } else if (!_cups_strcasecmp(name, "version")) { if (!strcmp(value, "1.0")) version = 10; else if (!strcmp(value, "1.1")) version = 11; else if (!strcmp(value, "2.0")) version = 20; else if (!strcmp(value, "2.1")) version = 21; else if (!strcmp(value, "2.2")) version = 22; else { _cupsLangPrintFilter(stderr, "ERROR", _("Unknown version option value: \"%s\"."), value); } } #ifdef HAVE_LIBZ else if (!_cups_strcasecmp(name, "compression")) { if (!_cups_strcasecmp(value, "true") || !_cups_strcasecmp(value, "yes") || !_cups_strcasecmp(value, "on") || !_cups_strcasecmp(value, "gzip")) compression = "gzip"; else if (!_cups_strcasecmp(value, "deflate")) compression = "deflate"; else if (!_cups_strcasecmp(value, "false") || !_cups_strcasecmp(value, "no") || !_cups_strcasecmp(value, "off") || !_cups_strcasecmp(value, "none")) compression = "none"; } #endif /* HAVE_LIBZ */ else if (!_cups_strcasecmp(name, "contimeout")) { int value_int = atoi(value); /* * Set the connection timeout... */ if (value_int > 0) contimeout = value_int; } else { /* * Unknown option... */ _cupsLangPrintFilter(stderr, "ERROR", _("Unknown option \"%s\" with value \"%s\"."), name, value); } } } /* * If we have 7 arguments, print the file named on the command-line. * Otherwise, copy stdin to a temporary file and print the temporary * file. */ if (argc == 6) { num_files = 0; files = NULL; send_options = !_cups_strcasecmp(final_content_type, "application/pdf") || !_cups_strcasecmp(final_content_type, "application/vnd.cups-pdf") || !_cups_strncasecmp(final_content_type, "image/", 6); fputs("DEBUG: Sending stdin for job...\n", stderr); } else { /* * Point to the files on the command-line... */ num_files = argc - 6; files = argv + 6; send_options = 1; fprintf(stderr, "DEBUG: %d files to send in job...\n", num_files); } /* * Set the authentication info, if any... */ cupsSetPasswordCB2((cups_password_cb2_t)password_cb, &password_tries); if (username[0]) { /* * Use authentication information in the device URI... */ if ((password = strchr(username, ':')) != NULL) *password++ = '\0'; cupsSetUser(username); uri_credentials = 1; } else { /* * Try loading authentication information from the environment. */ const char *ptr = getenv("AUTH_USERNAME"); if (ptr) { strlcpy(username, ptr, sizeof(username)); cupsSetUser(ptr); } password = getenv("AUTH_PASSWORD"); } /* * Try finding the remote server... */ start_time = time(NULL); addrlist = backendLookup(hostname, port, &job_canceled); http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, cupsEncryption(), 1, 0, NULL); httpSetTimeout(http, 30.0, timeout_cb, NULL); /* * See if the printer supports SNMP... */ if (snmp_enabled) snmp_fd = _cupsSNMPOpen(addrlist->addr.addr.sa_family); else snmp_fd = -1; if (snmp_fd >= 0) have_supplies = !backendSNMPSupplies(snmp_fd, &(addrlist->addr), &start_count, NULL); else have_supplies = start_count = 0; /* * Wait for data from the filter... */ if (num_files == 0) { if (!backendWaitLoop(snmp_fd, &(addrlist->addr), 0, backendNetworkSideCB)) return (CUPS_BACKEND_OK); else if ((bytes = read(0, buffer, sizeof(buffer))) <= 0) return (CUPS_BACKEND_OK); } /* * Try connecting to the remote server... */ delay = _cupsNextDelay(0, &prev_delay); do { fprintf(stderr, "DEBUG: Connecting to %s:%d\n", hostname, port); _cupsLangPrintFilter(stderr, "INFO", _("Connecting to printer.")); if (httpReconnect2(http, 30000, NULL)) { int error = errno; /* Connection error */ if (http->status == HTTP_STATUS_CUPS_PKI_ERROR) update_reasons(NULL, "+cups-certificate-error"); if (job_canceled) break; if (getenv("CLASS") != NULL) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. */ _cupsLangPrintFilter(stderr, "INFO", _("Unable to contact printer, queuing on next " "printer in class.")); /* * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); update_reasons(NULL, "-connecting-to-device"); return (CUPS_BACKEND_FAILED); } fprintf(stderr, "DEBUG: Connection error: %s\n", strerror(errno)); if (errno == ECONNREFUSED || errno == EHOSTDOWN || errno == EHOSTUNREACH || errno == ETIMEDOUT || errno == ENOTCONN) { if (contimeout && (time(NULL) - start_time) > contimeout) { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); update_reasons(NULL, "-connecting-to-device"); return (CUPS_BACKEND_FAILED); } switch (error) { case EHOSTDOWN : _cupsLangPrintFilter(stderr, "WARNING", _("The printer may not exist or " "is unavailable at this time.")); break; case EHOSTUNREACH : default : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is unreachable at this " "time.")); break; case ECONNREFUSED : _cupsLangPrintFilter(stderr, "WARNING", _("The printer is in use.")); break; } sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); } else { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); sleep(30); } if (job_canceled) break; } else update_reasons(NULL, "-cups-certificate-error"); } while (http->fd < 0); if (job_canceled) return (CUPS_BACKEND_OK); if (httpIsEncrypted(http)) { /* * Validate TLS credentials... */ cups_array_t *creds; /* TLS credentials */ cups_array_t *lcreds = NULL; /* Loaded credentials */ http_trust_t trust; /* Trust level */ char credinfo[1024], /* Information on credentials */ lcredinfo[1024];/* Information on saved credentials */ static const char * const trusts[] = { NULL, "+cups-pki-invalid", "+cups-pki-changed", "+cups-pki-expired", NULL, "+cups-pki-unknown" }; /* Trust keywords */ static const char * const trust_msgs[] = { "Credentials are OK/trusted", "Credentials are invalid", "Credentials have changed", "Credentials are expired", "Credentials have been renewed", "Credentials are unknown/new" }; fputs("DEBUG: Connection is encrypted.\n", stderr); if (!httpCopyCredentials(http, &creds)) { trust = httpCredentialsGetTrust(creds, hostname); httpCredentialsString(creds, credinfo, sizeof(credinfo)); fprintf(stderr, "DEBUG: %s (%s)\n", trust_msgs[trust], cupsLastErrorString()); fprintf(stderr, "DEBUG: Printer credentials: %s\n", credinfo); if (!httpLoadCredentials(NULL, &lcreds, hostname)) { httpCredentialsString(lcreds, lcredinfo, sizeof(lcredinfo)); fprintf(stderr, "DEBUG: Stored credentials: %s\n", lcredinfo); } else fputs("DEBUG: No stored credentials.\n", stderr); update_reasons(NULL, "-cups-pki-invalid,cups-pki-changed,cups-pki-expired,cups-pki-unknown"); if (trusts[trust]) { update_reasons(NULL, trusts[trust]); return (CUPS_BACKEND_STOP); } if (!lcreds) { /* * Could not load the credentials, let's save the ones we have so we * can detect changes... */ httpSaveCredentials(NULL, creds, hostname); } httpFreeCredentials(lcreds); httpFreeCredentials(creds); } else { fputs("DEBUG: No printer credentials.\n", stderr); update_reasons(NULL, "cups-pki-unknown"); return (CUPS_BACKEND_STOP); } } update_reasons(NULL, "-connecting-to-device"); _cupsLangPrintFilter(stderr, "INFO", _("Connected to printer.")); fprintf(stderr, "DEBUG: Connected to %s:%d...\n", httpAddrString(http->hostaddr, addrname, sizeof(addrname)), httpAddrPort(http->hostaddr)); /* * Build a URI for the printer and fill the standard IPP attributes for * an IPP_PRINT_FILE request. We can't use the URI in argv[0] because it * might contain username:password information... */ httpAssembleURI(HTTP_URI_CODING_ALL, uri, sizeof(uri), scheme, NULL, hostname, port, resource); /* * First validate the destination and see if the device supports multiple * copies... */ #ifdef HAVE_LIBZ compression_sup = NULL; #endif /* HAVE_LIBZ */ copies_sup = NULL; cups_version = NULL; encryption_sup = NULL; format_sup = NULL; media_col_sup = NULL; supported = NULL; operations_sup = NULL; doc_handling_sup = NULL; print_color_mode_sup = NULL; do { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, http->hostaddr); /* * Build the IPP request... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(pattrs) / sizeof(pattrs[0]), NULL, pattrs); /* * Do the request... */ fputs("DEBUG: Getting supported attributes...\n", stderr); if (http->version < HTTP_VERSION_1_1) { fprintf(stderr, "DEBUG: Printer responded with HTTP version %d.%d.\n", http->version / 100, http->version % 100); update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-wrong-http-version"); } supported = cupsDoRequest(http, request, resource); ipp_status = cupsLastError(); fprintf(stderr, "DEBUG: Get-Printer-Attributes: %s (%s)\n", ippErrorString(ipp_status), cupsLastErrorString()); if (ipp_status <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; else { fprintf(stderr, "DEBUG: Get-Printer-Attributes returned %s.\n", ippErrorString(ipp_status)); if (ipp_status == IPP_STATUS_ERROR_BUSY || ipp_status == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE) { if (contimeout && (time(NULL) - start_time) > contimeout) { _cupsLangPrintFilter(stderr, "ERROR", _("The printer is not responding.")); return (CUPS_BACKEND_FAILED); } _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); report_printer_state(supported); sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); } else if ((ipp_status == IPP_STATUS_ERROR_BAD_REQUEST || ipp_status == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED) && version > 10) { /* * Switch to IPP/1.1 or IPP/1.0... */ if (version >= 20) { _cupsLangPrintFilter(stderr, "INFO", _("Preparing to print.")); fprintf(stderr, "DEBUG: The printer does not support IPP/%d.%d, trying " "IPP/1.1.\n", version / 10, version % 10); version = 11; } else { _cupsLangPrintFilter(stderr, "INFO", _("Preparing to print.")); fprintf(stderr, "DEBUG: The printer does not support IPP/%d.%d, trying " "IPP/1.0.\n", version / 10, version % 10); version = 10; } httpReconnect2(http, 30000, NULL); } else if (ipp_status == IPP_STATUS_ERROR_NOT_FOUND) { _cupsLangPrintFilter(stderr, "ERROR", _("The printer configuration is incorrect or the " "printer no longer exists.")); ippDelete(supported); return (CUPS_BACKEND_STOP); } else if (ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED) { const char *www_auth = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE); /* WWW-Authenticate field value */ if (!strncmp(www_auth, "Negotiate", 9)) auth_info_required = "negotiate"; else if (www_auth[0]) auth_info_required = "username,password"; fprintf(stderr, "ATTR: auth-info-required=%s\n", auth_info_required); return (CUPS_BACKEND_AUTH_REQUIRED); } else if (ipp_status != IPP_STATUS_ERROR_NOT_AUTHORIZED) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to get printer status.")); sleep(10); httpReconnect2(http, 30000, NULL); } ippDelete(supported); supported = NULL; continue; } if (!getenv("CLASS")) { /* * Check printer-is-accepting-jobs = false and printer-state-reasons for the * "spool-area-full" keyword... */ int busy = 0; if ((printer_accepting = ippFindAttribute(supported, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN)) != NULL && !printer_accepting->values[0].boolean) busy = 1; else if (!printer_accepting) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-printer-is-accepting-jobs"); if ((printer_state = ippFindAttribute(supported, "printer-state-reasons", IPP_TAG_KEYWORD)) == NULL) { update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-printer-state-reasons"); } else if (!busy) { for (i = 0; i < printer_state->num_values; i ++) { if (!strcmp(printer_state->values[0].string.text, "spool-area-full") || !strncmp(printer_state->values[0].string.text, "spool-area-full-", 16)) { busy = 1; break; } } } if (busy) { _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); report_printer_state(supported); sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); ippDelete(supported); supported = NULL; ipp_status = IPP_STATUS_ERROR_BUSY; continue; } } /* * Check for supported attributes... */ #ifdef HAVE_LIBZ if ((compression_sup = ippFindAttribute(supported, "compression-supported", IPP_TAG_KEYWORD)) != NULL) { /* * Check whether the requested compression is supported and/or default to * compression if supported... */ if (compression && !ippContainsString(compression_sup, compression)) { fprintf(stderr, "DEBUG: Printer does not support the requested " "compression value \"%s\".\n", compression); compression = NULL; } else if (!compression && (!strcmp(final_content_type, "image/pwg-raster") || !strcmp(final_content_type, "image/urf"))) { if (ippContainsString(compression_sup, "gzip")) compression = "gzip"; else if (ippContainsString(compression_sup, "deflate")) compression = "deflate"; if (compression) fprintf(stderr, "DEBUG: Automatically using \"%s\" compression.\n", compression); } } #endif /* HAVE_LIBZ */ if ((copies_sup = ippFindAttribute(supported, "copies-supported", IPP_TAG_RANGE)) != NULL) { /* * Has the "copies-supported" attribute - does it have an upper * bound > 1? */ fprintf(stderr, "DEBUG: copies-supported=%d-%d\n", copies_sup->values[0].range.lower, copies_sup->values[0].range.upper); if (copies_sup->values[0].range.upper <= 1) copies_sup = NULL; /* No */ } if ((cups_version = ippFindAttribute(supported, "cups-version", IPP_TAG_TEXT)) != NULL) { const char *val = ippGetString(cups_version, 0, NULL); fprintf(stderr, "DEBUG: cups-version = \"%s\"\n", val); if (!strcmp(val, "cups-version")) cups_version = NULL; /* Bogus cups-version value returned by buggy printers! */ } encryption_sup = ippFindAttribute(supported, "job-password-encryption-supported", IPP_TAG_KEYWORD); if ((format_sup = ippFindAttribute(supported, "document-format-supported", IPP_TAG_MIMETYPE)) != NULL) { fprintf(stderr, "DEBUG: document-format-supported (%d values)\n", format_sup->num_values); for (i = 0; i < format_sup->num_values; i ++) fprintf(stderr, "DEBUG: [%d] = \"%s\"\n", i, format_sup->values[i].string.text); } if ((media_col_sup = ippFindAttribute(supported, "media-col-supported", IPP_TAG_KEYWORD)) != NULL) { fprintf(stderr, "DEBUG: media-col-supported (%d values)\n", media_col_sup->num_values); for (i = 0; i < media_col_sup->num_values; i ++) fprintf(stderr, "DEBUG: [%d] = \"%s\"\n", i, media_col_sup->values[i].string.text); } print_color_mode_sup = ippFindAttribute(supported, "print-color-mode-supported", IPP_TAG_KEYWORD); if ((operations_sup = ippFindAttribute(supported, "operations-supported", IPP_TAG_ENUM)) != NULL) { fprintf(stderr, "DEBUG: operations-supported (%d values)\n", operations_sup->num_values); for (i = 0; i < operations_sup->num_values; i ++) fprintf(stderr, "DEBUG: [%d] = %s\n", i, ippOpString(operations_sup->values[i].integer)); for (i = 0; i < operations_sup->num_values; i ++) if (operations_sup->values[i].integer == IPP_OP_PRINT_JOB) break; if (i >= operations_sup->num_values) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-print-job"); for (i = 0; i < operations_sup->num_values; i ++) if (operations_sup->values[i].integer == IPP_OP_CANCEL_JOB) break; if (i >= operations_sup->num_values) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-cancel-job"); for (i = 0; i < operations_sup->num_values; i ++) if (operations_sup->values[i].integer == IPP_OP_GET_JOB_ATTRIBUTES) break; if (i >= operations_sup->num_values) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-get-job-attributes"); for (i = 0; i < operations_sup->num_values; i ++) if (operations_sup->values[i].integer == IPP_OP_GET_PRINTER_ATTRIBUTES) break; if (i >= operations_sup->num_values) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-get-printer-attributes"); for (i = 0; i < operations_sup->num_values; i ++) { if (operations_sup->values[i].integer == IPP_OP_VALIDATE_JOB) validate_job = 1; else if (operations_sup->values[i].integer == IPP_OP_CREATE_JOB) create_job = 1; else if (operations_sup->values[i].integer == IPP_OP_SEND_DOCUMENT) send_document = 1; else if (operations_sup->values[i].integer == IPP_OP_GET_JOB_ATTRIBUTES) get_job_attrs = 1; } if (create_job && !send_document) { fputs("DEBUG: Printer supports Create-Job but not Send-Document.\n", stderr); create_job = 0; update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-send-document"); } if (!validate_job) update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-validate-job"); } else update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-operations-supported"); doc_handling_sup = ippFindAttribute(supported, "multiple-document-handling-supported", IPP_TAG_KEYWORD); report_printer_state(supported); } while (!job_canceled && ipp_status > IPP_STATUS_OK_CONFLICTING); if (job_canceled) return (CUPS_BACKEND_OK); /* * See if the printer is accepting jobs and is not stopped; if either * condition is true and we are printing to a class, requeue the job... */ if (getenv("CLASS") != NULL) { printer_state = ippFindAttribute(supported, "printer-state", IPP_TAG_ENUM); printer_accepting = ippFindAttribute(supported, "printer-is-accepting-jobs", IPP_TAG_BOOLEAN); if (printer_state == NULL || (printer_state->values[0].integer > IPP_PSTATE_PROCESSING && waitprinter) || printer_accepting == NULL || !printer_accepting->values[0].boolean) { /* * If the CLASS environment variable is set, the job was submitted * to a class and not to a specific queue. In this case, we want * to abort immediately so that the job can be requeued on the next * available printer in the class. */ _cupsLangPrintFilter(stderr, "INFO", _("Unable to contact printer, queuing on next " "printer in class.")); ippDelete(supported); httpClose(http); /* * Sleep 5 seconds to keep the job from requeuing too rapidly... */ sleep(5); return (CUPS_BACKEND_FAILED); } } /* * See if the printer supports multiple copies... */ copies = atoi(argv[4]); if (copies_sup || argc < 7) copies_remaining = 1; else copies_remaining = copies; /* * Prepare remaining printing options... */ options = NULL; if (send_options) { num_options = cupsParseOptions(argv[5], 0, &options); if (!cups_version && media_col_sup) { /* * Load the PPD file and generate PWG attribute mapping information... */ ppd_attr_t *mandatory; /* cupsMandatory value */ ppd = ppdOpenFile(getenv("PPD")); pc = _ppdCacheCreateWithPPD(ppd); ppdMarkDefaults(ppd); cupsMarkOptions(ppd, num_options, options); if ((mandatory = ppdFindAttr(ppd, "cupsMandatory", NULL)) != NULL) strlcpy(mandatory_attrs, mandatory->value, sizeof(mandatory_attrs)); } /* * Validate job-password/-encryption... */ if (cupsGetOption("job-password", num_options, options)) { const char *keyword; /* job-password-encryption value */ static const char * const hashes[] = { /* List of supported hash algorithms, in order of preference */ "sha-512", "sha-384", "sha-512_256", "sha-512-224", "sha-256", "sha-224", "sha", "none" }; if ((keyword = cupsGetOption("job-password-encryption", num_options, options)) == NULL || !ippContainsString(encryption_sup, keyword)) { /* * Either no job-password-encryption or the value isn't supported by * the printer... */ size_t j; for (j = 0; j < (sizeof(hashes) / sizeof(hashes[0])); j ++) if (ippContainsString(encryption_sup, hashes[j])) { num_options = cupsAddOption("job-password-encryption", hashes[j], num_options, &options); break; } } } } else num_options = 0; document_format = NULL; if (format_sup != NULL) { if (ippContainsString(format_sup, final_content_type)) document_format = final_content_type; else if (ippContainsString(format_sup, "application/octet-stream")) document_format = "application/octet-stream"; } fprintf(stderr, "DEBUG: final_content_type=\"%s\", document_format=\"%s\"\n", final_content_type, document_format ? document_format : "(null)"); /* * If the printer does not support HTTP/1.1 (which IPP requires), copy stdin * to a temporary file so that we can do a HTTP/1.0 submission... * * (I hate compatibility hacks!) */ if (http->version < HTTP_VERSION_1_1 && num_files == 0) { if ((fd = cupsTempFd(tmpfilename, sizeof(tmpfilename))) < 0) { perror("DEBUG: Unable to create temporary file"); return (CUPS_BACKEND_FAILED); } _cupsLangPrintFilter(stderr, "INFO", _("Copying print data.")); if ((compatsize = write(fd, buffer, (size_t)bytes)) < 0) { perror("DEBUG: Unable to write temporary file"); return (CUPS_BACKEND_FAILED); } if ((bytes = backendRunLoop(-1, fd, snmp_fd, &(addrlist->addr), 0, 0, backendNetworkSideCB)) < 0) return (CUPS_BACKEND_FAILED); compatsize += bytes; close(fd); compatfile = tmpfilename; files = &compatfile; num_files = 1; } else if (http->version < HTTP_VERSION_1_1 && num_files == 1) { struct stat fileinfo; /* File information */ if (!stat(files[0], &fileinfo)) compatsize = fileinfo.st_size; } /* * If the printer only claims to support IPP/1.0, or if the user specifically * included version=1.0 in the URI, then do not try to use Create-Job or * Send-Document. This is another dreaded compatibility hack, but * unfortunately there are enough broken printers out there that we need * this for now... */ if (version == 10) create_job = 0; /* * Start monitoring the printer in the background... */ monitor.uri = uri; monitor.hostname = hostname; monitor.user = argv[2]; monitor.resource = resource; monitor.port = port; monitor.version = version; monitor.job_id = 0; monitor.create_job = create_job; monitor.get_job_attrs = get_job_attrs; monitor.encryption = cupsEncryption(); monitor.job_state = IPP_JSTATE_PENDING; monitor.printer_state = IPP_PSTATE_IDLE; monitor.retryable = argc == 6 && document_format && strcmp(document_format, "image/pwg-raster") && strcmp(document_format, "image/urf"); fprintf(stderr, "DEBUG: retryable=%d\n", monitor.retryable); if (create_job) { monitor.job_name = argv[3]; } else { snprintf(print_job_name, sizeof(print_job_name), "%s - %s", argv[1], argv[3]); monitor.job_name = print_job_name; } _cupsThreadCreate((_cups_thread_func_t)monitor_printer, &monitor); /* * Validate access to the printer... */ while (!job_canceled && validate_job) { request = new_request(IPP_OP_VALIDATE_JOB, version, uri, argv[2], monitor.job_name, num_options, options, compression, copies_sup ? copies : 1, document_format, pc, ppd, media_col_sup, doc_handling_sup, print_color_mode_sup); response = cupsDoRequest(http, request, resource); ipp_status = cupsLastError(); fprintf(stderr, "DEBUG: Validate-Job: %s (%s)\n", ippErrorString(ipp_status), cupsLastErrorString()); debug_attributes(response); if ((job_auth = ippFindAttribute(response, "job-authorization-uri", IPP_TAG_URI)) != NULL) num_options = cupsAddOption("job-authorization-uri", ippGetString(job_auth, 0, NULL), num_options, &options); if (ipp_status == IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED || ipp_status == IPP_STATUS_OK_CONFLICTING) { /* * One or more options are not supported... */ if (ippFindAttribute(response, "sides", IPP_TAG_ZERO)) { /* * The sides value is not supported, revert to one-sided as needed... */ const char *sides = cupsGetOption("sides", num_options, options); if (!sides || !strncmp(sides, "two-sided-", 10)) { fputs("DEBUG: Unable to do two-sided printing, setting sides to 'one-sided'.\n", stderr); num_options = cupsAddOption("sides", "one-sided", num_options, &options); } } } ippDelete(response); if (job_canceled) break; if (ipp_status == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE || ipp_status == IPP_STATUS_ERROR_BUSY) { _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); sleep(10); } else if (ipp_status == IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED || ipp_status == IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED) goto cleanup; else if (ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED) { const char *www_auth = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE); /* WWW-Authenticate field value */ if (!strncmp(www_auth, "Negotiate", 9)) auth_info_required = "negotiate"; else if (www_auth[0]) auth_info_required = "username,password"; goto cleanup; } else if (ipp_status == IPP_STATUS_ERROR_OPERATION_NOT_SUPPORTED) { /* * This is all too common... */ update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-validate-job"); break; } else if (ipp_status < IPP_STATUS_REDIRECTION_OTHER_SITE || ipp_status == IPP_STATUS_ERROR_BAD_REQUEST) break; else if (job_auth == NULL && ipp_status > IPP_STATUS_ERROR_BAD_REQUEST) { if (!validate_retried) { // Retry Validate-Job operation once, to work around known printer bug... validate_retried = 1; sleep(10); continue; } goto cleanup; } } /* * Then issue the print-job request... */ job_id = 0; while (!job_canceled && copies_remaining > 0) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, http->hostaddr); /* * Build the IPP job creation request... */ if (job_canceled) break; request = new_request((num_files > 1 || create_job) ? IPP_OP_CREATE_JOB : IPP_OP_PRINT_JOB, version, uri, argv[2], monitor.job_name, num_options, options, compression, copies_sup ? copies : 1, document_format, pc, ppd, media_col_sup, doc_handling_sup, print_color_mode_sup); /* * Do the request... */ if (num_files > 1 || create_job) response = cupsDoRequest(http, request, resource); else { size_t length = 0; /* Length of request */ if (compatsize > 0) { fputs("DEBUG: Sending file using HTTP/1.0 Content-Length...\n", stderr); length = ippLength(request) + (size_t)compatsize; } else fputs("DEBUG: Sending file using HTTP/1.1 chunking...\n", stderr); http_status = cupsSendRequest(http, request, resource, length); if (http_status == HTTP_STATUS_CONTINUE && request->state == IPP_STATE_DATA) { if (compression && strcmp(compression, "none")) httpSetField(http, HTTP_FIELD_CONTENT_ENCODING, compression); if (num_files == 1) { if ((fd = open(files[0], O_RDONLY)) < 0) { _cupsLangPrintError("ERROR", _("Unable to open print file")); return (CUPS_BACKEND_FAILED); } } else { fd = 0; http_status = cupsWriteRequestData(http, buffer, (size_t)bytes); } while (http_status == HTTP_STATUS_CONTINUE && (!job_canceled || compatsize > 0)) { /* * Check for side-channel requests and more print data... */ FD_ZERO(&input); FD_SET(fd, &input); FD_SET(snmp_fd, &input); FD_SET(CUPS_SC_FD, &input); while (select(fd > snmp_fd ? fd + 1 : snmp_fd + 1, &input, NULL, NULL, NULL) <= 0 && !job_canceled); if (FD_ISSET(snmp_fd, &input)) backendCheckSideChannel(snmp_fd, http->hostaddr); if (FD_ISSET(fd, &input)) { if ((bytes = read(fd, buffer, sizeof(buffer))) > 0) { fprintf(stderr, "DEBUG: Read %d bytes...\n", (int)bytes); if ((http_status = cupsWriteRequestData(http, buffer, (size_t)bytes)) != HTTP_STATUS_CONTINUE) break; } else if (bytes == 0 || (errno != EINTR && errno != EAGAIN)) break; } } if (http_status == HTTP_STATUS_ERROR) fprintf(stderr, "DEBUG: Error writing document data for " "Print-Job: %s\n", strerror(httpError(http))); if (num_files == 1) close(fd); } response = cupsGetResponse(http, resource); ippDelete(request); } ipp_status = cupsLastError(); fprintf(stderr, "DEBUG: %s: %s (%s)\n", (num_files > 1 || create_job) ? "Create-Job" : "Print-Job", ippErrorString(ipp_status), cupsLastErrorString()); debug_attributes(response); if (ipp_status > IPP_STATUS_OK_CONFLICTING) { job_id = 0; if (job_canceled) break; if (ipp_status == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE || ipp_status == IPP_STATUS_ERROR_NOT_POSSIBLE || ipp_status == IPP_STATUS_ERROR_BUSY) { _cupsLangPrintFilter(stderr, "INFO", _("The printer is in use.")); sleep(10); if (num_files == 0) { /* * We can't re-submit when we have no files to print, so exit * immediately with the right status code... */ goto cleanup; } } else if (ipp_status == IPP_STATUS_ERROR_JOB_CANCELED || ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED) goto cleanup; else { /* * Update auth-info-required as needed... */ _cupsLangPrintFilter(stderr, "ERROR", _("Print job was not accepted.")); if (ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED) { const char *www_auth = httpGetField(http, HTTP_FIELD_WWW_AUTHENTICATE); /* WWW-Authenticate field value */ if (!strncmp(www_auth, "Negotiate", 9)) auth_info_required = "negotiate"; else if (www_auth[0]) auth_info_required = "username,password"; } else if (ipp_status == IPP_STATUS_ERROR_REQUEST_VALUE) { /* * Print file is too large, abort this job... */ goto cleanup; } else sleep(10); if (num_files == 0) { /* * We can't re-submit when we have no files to print, so exit * immediately with the right status code... */ goto cleanup; } } } else if ((job_id_attr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { fputs("DEBUG: Print job accepted - job ID unknown.\n", stderr); update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-job-id"); job_id = 0; } else { password_tries = 0; monitor.job_id = job_id = job_id_attr->values[0].integer; fprintf(stderr, "DEBUG: Print job accepted - job ID %d.\n", job_id); } ippDelete(response); if (job_canceled) break; if (job_id && (num_files > 1 || create_job)) { for (i = 0; num_files == 0 || i < num_files; i ++) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, http->hostaddr); /* * Send the next file in the job... */ request = ippNewRequest(IPP_OP_SEND_DOCUMENT); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); if (argv[2][0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, argv[2]); ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", (i + 1) >= num_files); if (document_format) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, document_format); if (compression) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "compression", NULL, compression); fprintf(stderr, "DEBUG: Sending file %d using chunking...\n", i + 1); fprintf(stderr, "DEBUG: IPP/%d.%d %s #%d\n", version / 10, version % 10, ippOpString(ippGetOperation(request)), ippGetRequestId(request)); debug_attributes(request); http_status = cupsSendRequest(http, request, resource, 0); if (http_status == HTTP_STATUS_CONTINUE && request->state == IPP_STATE_DATA) { if (compression && strcmp(compression, "none")) httpSetField(http, HTTP_FIELD_CONTENT_ENCODING, compression); if (num_files == 0) { fd = 0; http_status = cupsWriteRequestData(http, buffer, (size_t)bytes); } else { if ((fd = open(files[i], O_RDONLY)) < 0) { _cupsLangPrintError("ERROR", _("Unable to open print file")); return (CUPS_BACKEND_FAILED); } } } else fd = -1; if (fd >= 0) { while (!job_canceled && http_status == HTTP_STATUS_CONTINUE && (bytes = read(fd, buffer, sizeof(buffer))) > 0) { if ((http_status = cupsWriteRequestData(http, buffer, (size_t)bytes)) != HTTP_STATUS_CONTINUE) break; else { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, http->hostaddr); } } if (fd > 0) close(fd); } if (http_status == HTTP_STATUS_ERROR) fprintf(stderr, "DEBUG: Error writing document data for " "Send-Document: %s\n", strerror(httpError(http))); response = cupsGetResponse(http, resource); ippDelete(request); fprintf(stderr, "DEBUG: Send-Document: %s (%s)\n", ippErrorString(cupsLastError()), cupsLastErrorString()); debug_attributes(response); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING && !job_canceled) { ipp_attribute_t *reasons = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD); /* job-state-reasons values */ ipp_status = cupsLastError(); if (ippContainsString(reasons, "document-format-error")) ipp_status = IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR; else if (ippContainsString(reasons, "document-unprintable")) ipp_status = IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE; ippDelete(response); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to add document to print job.")); break; } else { ippDelete(response); password_tries = 0; if (num_files == 0 || fd < 0) break; } } } if (job_canceled) break; if (ipp_status <= IPP_STATUS_OK_CONFLICTING && argc > 6) { fprintf(stderr, "PAGE: 1 %d\n", copies_sup ? atoi(argv[4]) : 1); copies_remaining --; } else if ((ipp_status == IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED || ipp_status == IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR || ipp_status == IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE) && argc == 6 && document_format && strcmp(document_format, "image/pwg-raster") && strcmp(document_format, "image/urf")) { /* * Need to reprocess the job as raster... */ fputs("JOBSTATE: cups-retry-as-raster\n", stderr); if (job_id > 0) cancel_job(http, uri, job_id, resource, argv[2], version); goto cleanup; } else if (ipp_status == IPP_STATUS_ERROR_SERVICE_UNAVAILABLE || ipp_status == IPP_STATUS_ERROR_NOT_POSSIBLE || ipp_status == IPP_STATUS_ERROR_BUSY) { if (argc == 6) { /* * Need to reprocess the entire job; if we have a job ID, cancel the * job first... */ if (job_id > 0) cancel_job(http, uri, job_id, resource, argv[2], version); goto cleanup; } continue; } else if (ipp_status == IPP_STATUS_ERROR_REQUEST_VALUE || ipp_status == IPP_STATUS_ERROR_JOB_CANCELED || ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED || ipp_status == IPP_STATUS_ERROR_INTERNAL) { /* * Print file is too large, job was canceled, we need new * authentication data, or we had some sort of error... */ goto cleanup; } else if (ipp_status == IPP_STATUS_ERROR_CUPS_UPGRADE_REQUIRED) { /* * Server is configured incorrectly; the policy for Create-Job and * Send-Document has to be the same (auth or no auth, encryption or * no encryption). Force the queue to stop since printing will never * work. */ fputs("DEBUG: The server or printer is configured incorrectly.\n", stderr); fputs("DEBUG: The policy for Create-Job and Send-Document must have the " "same authentication and encryption requirements.\n", stderr); ipp_status = IPP_STATUS_ERROR_INTERNAL; if (job_id > 0) cancel_job(http, uri, job_id, resource, argv[2], version); goto cleanup; } else if (ipp_status == IPP_STATUS_ERROR_NOT_FOUND) { /* * Printer does not actually implement support for Create-Job/ * Send-Document, so log the conformance issue and stop the printer. */ fputs("DEBUG: This printer claims to support Create-Job and " "Send-Document, but those operations failed.\n", stderr); fputs("DEBUG: Add '?version=1.0' to the device URI to use legacy " "compatibility mode.\n", stderr); update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-send-document"); ipp_status = IPP_STATUS_ERROR_INTERNAL; /* Force queue to stop */ goto cleanup; } else copies_remaining --; /* * Wait for the job to complete... */ if (!job_id || !waitjob || !get_job_attrs) continue; fputs("STATE: +cups-waiting-for-job-completed\n", stderr); _cupsLangPrintFilter(stderr, "INFO", _("Waiting for job to complete.")); for (delay = _cupsNextDelay(0, &prev_delay); !job_canceled;) { /* * Check for side-channel requests... */ backendCheckSideChannel(snmp_fd, http->hostaddr); /* * Check printer state... */ check_printer_state(http, uri, resource, argv[2], version); if (cupsLastError() <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; /* * Build an IPP_OP_GET_JOB_ATTRIBUTES request... */ request = ippNewRequest(IPP_OP_GET_JOB_ATTRIBUTES); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", job_id); if (argv[2][0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, argv[2]); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(jattrs) / sizeof(jattrs[0]), NULL, jattrs); fprintf(stderr, "DEBUG: IPP/%d.%d %s #%d\n", version / 10, version % 10, ippOpString(ippGetOperation(request)), ippGetRequestId(request)); debug_attributes(request); /* * Do the request... */ httpReconnect2(http, 30000, NULL); response = cupsDoRequest(http, request, resource); ipp_status = cupsLastError(); if (ipp_status == IPP_STATUS_ERROR_NOT_FOUND || ipp_status == IPP_STATUS_ERROR_NOT_POSSIBLE) { /* * Job has gone away and/or the server has no job history... */ update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-job-history"); ippDelete(response); ipp_status = IPP_STATUS_OK; break; } fprintf(stderr, "DEBUG: Get-Job-Attributes: %s (%s)\n", ippErrorString(ipp_status), cupsLastErrorString()); debug_attributes(response); if (ipp_status <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; else { if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE && ipp_status != IPP_STATUS_ERROR_BUSY) { ippDelete(response); ipp_status = IPP_STATUS_OK; break; } else if (ipp_status == IPP_STATUS_ERROR_INTERNAL) { waitjob_tries ++; if (waitjob_tries > 4) { ippDelete(response); ipp_status = IPP_STATUS_OK; break; } } } if (response) { if ((job_state = ippFindAttribute(response, "job-state", IPP_TAG_ENUM)) != NULL) { /* * Reflect the remote job state in the local queue... */ if (cups_version && job_state->values[0].integer >= IPP_JSTATE_PENDING && job_state->values[0].integer <= IPP_JSTATE_COMPLETED) update_reasons(NULL, remote_job_states[job_state->values[0].integer - IPP_JSTATE_PENDING]); if ((job_sheets = ippFindAttribute(response, "job-impressions-completed", IPP_TAG_INTEGER)) == NULL) job_sheets = ippFindAttribute(response, "job-media-sheets-completed", IPP_TAG_INTEGER); if (job_sheets) fprintf(stderr, "PAGE: total %d\n", job_sheets->values[0].integer); /* * Stop polling if the job is finished or pending-held... */ if (job_state->values[0].integer > IPP_JSTATE_STOPPED || job_state->values[0].integer == IPP_JSTATE_HELD) { ippDelete(response); break; } } else if (ipp_status != IPP_STATUS_ERROR_SERVICE_UNAVAILABLE && ipp_status != IPP_STATUS_ERROR_NOT_POSSIBLE && ipp_status != IPP_STATUS_ERROR_BUSY) { /* * If the printer does not return a job-state attribute, it does not * conform to the IPP specification - break out immediately and fail * the job... */ update_reasons(NULL, "+cups-ipp-conformance-failure-report," "cups-ipp-missing-job-state"); ipp_status = IPP_STATUS_ERROR_INTERNAL; break; } } ippDelete(response); /* * Wait before polling again... */ sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); } } /* * Cancel the job as needed... */ if (job_canceled > 0 && job_id > 0) { cancel_job(http, uri, job_id, resource, argv[2], version); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) _cupsLangPrintFilter(stderr, "ERROR", _("Unable to cancel print job.")); } /* * Check the printer state and report it if necessary... */ check_printer_state(http, uri, resource, argv[2], version); if (cupsLastError() <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; /* * Collect the final page count as needed... */ if (have_supplies && !backendSNMPSupplies(snmp_fd, &(http->addrlist->addr), &page_count, NULL) && page_count > start_count) fprintf(stderr, "PAGE: total %d\n", page_count - start_count); #ifdef HAVE_GSSAPI /* * See if we used Kerberos at all... */ if (http->gssctx) auth_info_required = "negotiate"; #endif /* HAVE_GSSAPI */ /* * Free memory... */ cleanup: cupsFreeOptions(num_options, options); _ppdCacheDestroy(pc); ppdClose(ppd); httpClose(http); ippDelete(supported); /* * Remove the temporary file(s) if necessary... */ if (tmpfilename[0]) unlink(tmpfilename); /* * Return the queue status... */ if (ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED || ipp_status <= IPP_STATUS_OK_CONFLICTING) fprintf(stderr, "ATTR: auth-info-required=%s\n", auth_info_required); if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED) fputs("JOBSTATE: account-info-needed\n", stderr); else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED) fputs("JOBSTATE: account-closed\n", stderr); else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED) fputs("JOBSTATE: account-limit-reached\n", stderr); else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED) fputs("JOBSTATE: account-authorization-failed\n", stderr); // job_canceled can be -1 which should not be treated as CUPS_BACKEND_OK if (job_canceled > 0) return (CUPS_BACKEND_OK); else if (ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED) return (CUPS_BACKEND_AUTH_REQUIRED); else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_CLOSED || ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED) return (CUPS_BACKEND_HOLD); else if (ipp_status == IPP_STATUS_ERROR_INTERNAL) return (CUPS_BACKEND_STOP); else if (ipp_status == IPP_STATUS_ERROR_CONFLICTING || ipp_status == IPP_STATUS_ERROR_REQUEST_ENTITY || ipp_status == IPP_STATUS_ERROR_REQUEST_VALUE) return (CUPS_BACKEND_FAILED); else if (ipp_status == IPP_STATUS_ERROR_REQUEST_VALUE || ipp_status == IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES || ipp_status == IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED || job_canceled < 0) { if (ipp_status == IPP_STATUS_ERROR_REQUEST_VALUE) _cupsLangPrintFilter(stderr, "ERROR", _("Print job too large.")); else if (ipp_status == IPP_STATUS_ERROR_DOCUMENT_FORMAT_NOT_SUPPORTED) _cupsLangPrintFilter(stderr, "ERROR", _("Printer cannot print supplied content.")); else if (ipp_status == IPP_STATUS_ERROR_ATTRIBUTES_OR_VALUES) _cupsLangPrintFilter(stderr, "ERROR", _("Printer cannot print with supplied options.")); else _cupsLangPrintFilter(stderr, "ERROR", _("Print job canceled at printer.")); return (CUPS_BACKEND_CANCEL); } else if (ipp_status > IPP_STATUS_OK_CONFLICTING && ipp_status != IPP_STATUS_ERROR_JOB_CANCELED) return (CUPS_BACKEND_RETRY_CURRENT); else return (CUPS_BACKEND_OK); } /* * 'adjust_options()' - Adjust options which have the same meaning. * * In case the backend gets PPD option and IPP attribute of the same meaning * among options array, adjust their values to reflect the same choices, * if the values differ (preferring PPD option values). * * Support for each PPD x IPP option pair is added adhoc, based on demand. */ static void adjust_options(int num_options, /* I - Number of options */ cups_option_t *options) /* I - Array of job options */ { const char *ppd_option_value = NULL; /* PPD option value */ const char *ipp_attr_value = NULL; /* IPP attribute value */ fprintf(stderr, "DEBUG: adjust_options()\n"); if (options == NULL || num_options < 2) { fprintf(stderr, "DEBUG: adjust_options(): Invalid values.\n"); return; } /* * PPD option ColorModel and IPP attribute print-color-mode */ ppd_option_value = cupsGetOption("ColorModel", num_options, options); ipp_attr_value = cupsGetOption("print-color-mode", num_options, options); if (!ppd_option_value || !ipp_attr_value) return; if (strcmp(ipp_attr_value, "monochrome") && (!strcmp(ppd_option_value, "Gray") || !strcmp(ppd_option_value, "FastGray") || !strcmp(ppd_option_value, "DeviceGray"))) { fprintf(stderr, "DEBUG: adjust_options(): Adjusting print-color-mode to monochrome.\n"); num_options = cupsAddOption("print-color-mode", "monochrome", num_options, &options); } else if (strcmp(ipp_attr_value, "color") && (!strcmp(ppd_option_value, "CMY") || !strcmp(ppd_option_value, "CMYK") || !strcmp(ppd_option_value, "RGB"))) { fprintf(stderr, "DEBUG: adjust_options(): Adjusting print-color-mode to color.\n"); num_options = cupsAddOption("print-color-mode", "color", num_options, &options); } } /* * 'cancel_job()' - Cancel a print job. */ static void cancel_job(http_t *http, /* I - HTTP connection */ const char *uri, /* I - printer-uri */ int id, /* I - job-id */ const char *resource, /* I - Resource path */ const char *user, /* I - requesting-user-name */ int version) /* I - IPP version */ { ipp_t *request; /* Cancel-Job request */ _cupsLangPrintFilter(stderr, "INFO", _("Canceling print job.")); request = ippNewRequest(IPP_OP_CANCEL_JOB); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", id); if (user && user[0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); /* * Do the request... */ ippDelete(cupsDoRequest(http, request, resource)); } /* * 'check_printer_state()' - Check the printer state. */ static ipp_pstate_t /* O - Current printer-state */ check_printer_state( http_t *http, /* I - HTTP connection */ const char *uri, /* I - Printer URI */ const char *resource, /* I - Resource path */ const char *user, /* I - Username, if any */ int version) /* I - IPP version */ { ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Attribute in response */ ipp_pstate_t printer_state = IPP_PSTATE_STOPPED; /* Current printer-state */ /* * Send a Get-Printer-Attributes request and log the results... */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); if (user && user[0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(pattrs) / sizeof(pattrs[0])), NULL, pattrs); fprintf(stderr, "DEBUG: IPP/%d.%d %s #%d\n", version / 10, version % 10, ippOpString(ippGetOperation(request)), ippGetRequestId(request)); debug_attributes(request); if ((response = cupsDoRequest(http, request, resource)) != NULL) { report_printer_state(response); if ((attr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) != NULL) printer_state = (ipp_pstate_t)attr->values[0].integer; } fprintf(stderr, "DEBUG: Get-Printer-Attributes: %s (%s)\n", ippErrorString(cupsLastError()), cupsLastErrorString()); debug_attributes(response); ippDelete(response); /* * Return the printer-state value... */ return (printer_state); } /* * 'debug_attributes()' - Print out the request or response attributes as DEBUG * messages... */ static void debug_attributes(ipp_t *ipp) /* I - Request or response message */ { ipp_tag_t group; /* Current group */ ipp_attribute_t *attr; /* Current attribute */ char buffer[1024]; /* Value buffer */ for (group = IPP_TAG_ZERO, attr = ippFirstAttribute(ipp); attr; attr = ippNextAttribute(ipp)) { const char *name = ippGetName(attr); if (!name) { group = IPP_TAG_ZERO; continue; } if (group != ippGetGroupTag(attr)) { group = ippGetGroupTag(attr); fprintf(stderr, "DEBUG: ---- %s ----\n", ippTagString(group)); } if (!strcmp(name, "job-password")) strlcpy(buffer, "---", sizeof(buffer)); else ippAttributeString(attr, buffer, sizeof(buffer)); fprintf(stderr, "DEBUG: %s %s%s %s\n", name, ippGetCount(attr) > 1 ? "1setOf " : "", ippTagString(ippGetValueTag(attr)), buffer); } fprintf(stderr, "DEBUG: ---- %s ----\n", ippTagString(IPP_TAG_END)); } /* * 'monitor_printer()' - Monitor the printer state. */ static void * /* O - Thread exit code */ monitor_printer( _cups_monitor_t *monitor) /* I - Monitoring data */ { http_t *http; /* Connection to printer */ ipp_t *request, /* IPP request */ *response; /* IPP response */ ipp_attribute_t *attr; /* Attribute in response */ int delay, /* Current delay */ prev_delay; /* Previous delay */ ipp_op_t job_op; /* Operation to use */ int job_id; /* Job ID */ const char *job_name; /* Job name */ ipp_jstate_t job_state; /* Job state */ const char *job_user; /* Job originating user name */ int password_tries = 0; /* Password tries */ /* * Make a copy of the printer connection... */ http = httpConnect2(monitor->hostname, monitor->port, NULL, AF_UNSPEC, monitor->encryption, 1, 0, NULL); httpSetTimeout(http, 30.0, timeout_cb, NULL); if (username[0]) cupsSetUser(username); cupsSetPasswordCB2((cups_password_cb2_t)password_cb, &password_tries); /* * Loop until the job is canceled, aborted, or completed. */ delay = _cupsNextDelay(0, &prev_delay); monitor->job_reasons = 0; while (monitor->job_state < IPP_JSTATE_CANCELED && !job_canceled) { /* * Reconnect to the printer as needed... */ if (httpGetFd(http) < 0) httpReconnect2(http, 30000, NULL); if (httpGetFd(http) >= 0) { /* * Connected, so check on the printer state... */ monitor->printer_state = check_printer_state(http, monitor->uri, monitor->resource, monitor->user, monitor->version); if (cupsLastError() <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; if (monitor->job_id == 0 && monitor->create_job) { /* * No job-id yet, so continue... */ goto monitor_sleep; } /* * Check the status of the job itself... */ job_op = (monitor->job_id > 0 && monitor->get_job_attrs) ? IPP_OP_GET_JOB_ATTRIBUTES : IPP_OP_GET_JOBS; request = ippNewRequest(job_op); ippSetVersion(request, monitor->version / 10, monitor->version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, monitor->uri); if (job_op == IPP_OP_GET_JOB_ATTRIBUTES) ippAddInteger(request, IPP_TAG_OPERATION, IPP_TAG_INTEGER, "job-id", monitor->job_id); if (monitor->user && monitor->user[0]) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, monitor->user); ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", (int)(sizeof(jattrs) / sizeof(jattrs[0])), NULL, jattrs); /* * Do the request... */ response = cupsDoRequest(http, request, monitor->resource); fprintf(stderr, "DEBUG: (monitor) %s: %s (%s)\n", ippOpString(job_op), ippErrorString(cupsLastError()), cupsLastErrorString()); if (cupsLastError() <= IPP_STATUS_OK_CONFLICTING) password_tries = 0; if (job_op == IPP_OP_GET_JOB_ATTRIBUTES) { if ((attr = ippFindAttribute(response, "job-state", IPP_TAG_ENUM)) != NULL) monitor->job_state = (ipp_jstate_t)attr->values[0].integer; else monitor->job_state = IPP_JSTATE_COMPLETED; } else if (response) { for (attr = response->attrs; attr; attr = attr->next) { job_id = 0; job_name = NULL; job_state = IPP_JSTATE_PENDING; job_user = NULL; while (attr && attr->group_tag != IPP_TAG_JOB) attr = attr->next; if (!attr) break; while (attr && attr->group_tag == IPP_TAG_JOB) { if (!strcmp(attr->name, "job-id") && attr->value_tag == IPP_TAG_INTEGER) job_id = attr->values[0].integer; else if (!strcmp(attr->name, "job-name") && (attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_NAMELANG)) job_name = attr->values[0].string.text; else if (!strcmp(attr->name, "job-state") && attr->value_tag == IPP_TAG_ENUM) job_state = (ipp_jstate_t)attr->values[0].integer; else if (!strcmp(attr->name, "job-originating-user-name") && (attr->value_tag == IPP_TAG_NAME || attr->value_tag == IPP_TAG_NAMELANG)) job_user = attr->values[0].string.text; attr = attr->next; } if (job_id > 0 && job_name && !strcmp(job_name, monitor->job_name) && job_user && monitor->user && !strcmp(job_user, monitor->user)) { monitor->job_id = job_id; monitor->job_state = job_state; break; } if (!attr) break; } } fprintf(stderr, "DEBUG: (monitor) job-state = %s\n", ippEnumString("job-state", (int)monitor->job_state)); if (!job_canceled && (monitor->job_state == IPP_JSTATE_CANCELED || monitor->job_state == IPP_JSTATE_ABORTED)) { job_canceled = -1; fprintf(stderr, "DEBUG: (monitor) job_canceled = -1\n"); } if ((attr = ippFindAttribute(response, "job-state-reasons", IPP_TAG_KEYWORD)) != NULL) { int i, new_reasons = 0; /* Looping var, new reasons */ for (i = 0; i < attr->num_values; i ++) { if (!strcmp(attr->values[i].string.text, "account-authorization-failed")) new_reasons |= _CUPS_JSR_ACCOUNT_AUTHORIZATION_FAILED; else if (!strcmp(attr->values[i].string.text, "account-closed")) new_reasons |= _CUPS_JSR_ACCOUNT_CLOSED; else if (!strcmp(attr->values[i].string.text, "account-info-needed")) new_reasons |= _CUPS_JSR_ACCOUNT_INFO_NEEDED; else if (!strcmp(attr->values[i].string.text, "account-limit-reached")) new_reasons |= _CUPS_JSR_ACCOUNT_LIMIT_REACHED; else if (!strcmp(attr->values[i].string.text, "job-password-wait")) new_reasons |= _CUPS_JSR_JOB_PASSWORD_WAIT; else if (!strcmp(attr->values[i].string.text, "job-release-wait")) new_reasons |= _CUPS_JSR_JOB_RELEASE_WAIT; else if (!strcmp(attr->values[i].string.text, "document-format-error")) new_reasons |= _CUPS_JSR_DOCUMENT_FORMAT_ERROR; else if (!strcmp(attr->values[i].string.text, "document-unprintable")) new_reasons |= _CUPS_JSR_DOCUMENT_UNPRINTABLE; if (!job_canceled && (!strncmp(attr->values[i].string.text, "job-canceled-", 13) || !strcmp(attr->values[i].string.text, "aborted-by-system"))) job_canceled = 1; } if (new_reasons != monitor->job_reasons) { if (new_reasons & _CUPS_JSR_ACCOUNT_AUTHORIZATION_FAILED) fputs("JOBSTATE: account-authorization-failed\n", stderr); else if (new_reasons & _CUPS_JSR_ACCOUNT_CLOSED) fputs("JOBSTATE: account-closed\n", stderr); else if (new_reasons & _CUPS_JSR_ACCOUNT_INFO_NEEDED) fputs("JOBSTATE: account-info-needed\n", stderr); else if (new_reasons & _CUPS_JSR_ACCOUNT_LIMIT_REACHED) fputs("JOBSTATE: account-limit-reached\n", stderr); else if (new_reasons & _CUPS_JSR_JOB_PASSWORD_WAIT) fputs("JOBSTATE: job-password-wait\n", stderr); else if (new_reasons & _CUPS_JSR_JOB_RELEASE_WAIT) fputs("JOBSTATE: job-release-wait\n", stderr); else if (new_reasons & (_CUPS_JSR_DOCUMENT_FORMAT_ERROR | _CUPS_JSR_DOCUMENT_UNPRINTABLE)) { if (monitor->retryable) { /* * Can't print this, so retry as raster... */ job_canceled = 1; fputs("JOBSTATE: cups-retry-as-raster\n", stderr); } else if (new_reasons & _CUPS_JSR_DOCUMENT_FORMAT_ERROR) { fputs("JOBSTATE: document-format-error\n", stderr); } else { fputs("JOBSTATE: document-unprintable\n", stderr); } } else fputs("JOBSTATE: job-printing\n", stderr); monitor->job_reasons = new_reasons; } } ippDelete(response); fprintf(stderr, "DEBUG: (monitor) job-state = %s\n", ippEnumString("job-state", (int)monitor->job_state)); if (!job_canceled && (monitor->job_state == IPP_JSTATE_CANCELED || monitor->job_state == IPP_JSTATE_ABORTED)) job_canceled = -1; } /* * Sleep for N seconds... */ monitor_sleep: sleep((unsigned)delay); delay = _cupsNextDelay(delay, &prev_delay); } /* * Cancel the job if necessary... */ if (job_canceled > 0 && monitor->job_id > 0) { if (httpGetFd(http) < 0) httpReconnect2(http, 30000, NULL); if (httpGetFd(http) >= 0) { cancel_job(http, monitor->uri, monitor->job_id, monitor->resource, monitor->user, monitor->version); if (cupsLastError() > IPP_STATUS_OK_CONFLICTING) { fprintf(stderr, "DEBUG: (monitor) cancel_job() = %s\n", cupsLastErrorString()); _cupsLangPrintFilter(stderr, "ERROR", _("Unable to cancel print job.")); } } } /* * Cleanup and return... */ httpClose(http); return (NULL); } /* * 'new_request()' - Create a new print creation or validation request. */ static ipp_t * /* O - Request data */ new_request( ipp_op_t op, /* I - IPP operation code */ int version, /* I - IPP version number */ const char *uri, /* I - printer-uri value */ const char *user, /* I - requesting-user-name value */ const char *title, /* I - job-name value */ int num_options, /* I - Number of options to send */ cups_option_t *options, /* I - Options to send */ const char *compression, /* I - compression value or NULL */ int copies, /* I - copies value or 0 */ const char *format, /* I - document-format value or NULL */ _ppd_cache_t *pc, /* I - PPD cache and mapping data */ ppd_file_t *ppd, /* I - PPD file data */ ipp_attribute_t *media_col_sup, /* I - media-col-supported values */ ipp_attribute_t *doc_handling_sup, /* I - multiple-document-handling-supported values */ ipp_attribute_t *print_color_mode_sup) /* I - Printer supports print-color-mode */ { ipp_t *request; /* Request data */ const char *keyword; /* PWG keyword */ /* * Create the IPP request... */ request = ippNewRequest(op); ippSetVersion(request, version / 10, version % 10); fprintf(stderr, "DEBUG: %s IPP/%d.%d\n", ippOpString(request->request.op.operation_id), request->request.op.version[0], request->request.op.version[1]); /* * Add standard attributes... */ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); fprintf(stderr, "DEBUG: printer-uri=\"%s\"\n", uri); if (user && *user) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, user); fprintf(stderr, "DEBUG: requesting-user-name=\"%s\"\n", user); } if (title && *title) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, title); fprintf(stderr, "DEBUG: job-name=\"%s\"\n", title); } if (format && op != IPP_OP_CREATE_JOB) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE, "document-format", NULL, format); fprintf(stderr, "DEBUG: document-format=\"%s\"\n", format); } #ifdef HAVE_LIBZ if (compression && op != IPP_OP_CREATE_JOB && op != IPP_OP_VALIDATE_JOB) { ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "compression", NULL, compression); fprintf(stderr, "DEBUG: compression=\"%s\"\n", compression); } #endif /* HAVE_LIBZ */ /* * Handle options on the command-line... */ if (num_options > 0) { if (pc) { /* * Send standard IPP attributes... */ fputs("DEBUG: Adding standard IPP operation/job attributes.\n", stderr); copies = _cupsConvertOptions(request, ppd, pc, media_col_sup, doc_handling_sup, print_color_mode_sup, user, format, copies, num_options, options); /* * Map FaxOut options... */ if ((keyword = cupsGetOption("phone", num_options, options)) != NULL) { ipp_t *destination; /* destination collection */ char phone[1024], /* Phone number string */ *ptr, /* Pointer into string */ tel_uri[1024]; /* tel: URI */ static const char * const allowed = "0123456789#*-+.()pw"; /* Allowed characters */ /* * Unescape and filter out spaces and other characters that are not * allowed in a tel: URI. */ _httpDecodeURI(phone, keyword, sizeof(phone)); ptr = phone; /* * Weed out "Custom." in the beginning, this allows to put the * "phone" option as custom string option into the PPD so that * print dialogs not supporting fax display the option and * allow entering the phone number. Print dialogs also send "None" * if no phone number got entered, filter this, too. */ if (!_cups_strcasecmp(phone, "None")) *ptr = '\0'; if (!_cups_strncasecmp(phone, "Custom.", 7)) _cups_strcpy(ptr, ptr + 7); for (; *ptr;) { if (*ptr == ',') *ptr = 'p'; else if (!strchr(allowed, *ptr)) _cups_strcpy(ptr, ptr + 1); else ptr ++; } if (strlen(phone) > 0) { destination = ippNew(); httpAssembleURI(HTTP_URI_CODING_ALL, tel_uri, sizeof(tel_uri), "tel", NULL, NULL, 0, phone); ippAddString(destination, IPP_TAG_JOB, IPP_TAG_URI, "destination-uri", NULL, tel_uri); fprintf(stderr, "DEBUG: Faxing to phone %s; destination-uri: %s\n", phone, tel_uri); if ((keyword = cupsGetOption("faxPrefix", num_options, options)) != NULL && *keyword) { char predial[1024]; /* Pre-dial string */ _httpDecodeURI(predial, keyword, sizeof(predial)); ptr = predial; if (!_cups_strcasecmp(ptr, "None")) *ptr = '\0'; if (!_cups_strncasecmp(ptr, "Custom.", 7)) ptr += 7; if (strlen(ptr) > 0) { ippAddString(destination, IPP_TAG_JOB, IPP_TAG_TEXT, "pre-dial-string", NULL, ptr); fprintf(stderr, "DEBUG: Pre-dialing %s; pre-dial-string: %s\n", ptr, ptr); } else fprintf(stderr, "WARNING: Pre-dial number for fax not valid! Sending fax without pre-dial number.\n"); } ippAddCollection(request, IPP_TAG_JOB, "destination-uris", destination); ippDelete(destination); } else fprintf(stderr, "ERROR: Phone number for fax not valid! Fax cannot be sent.\n"); } } else { /* * When talking to another CUPS server, send all options... */ fputs("DEBUG: Adding all operation/job attributes.\n", stderr); adjust_options(num_options, options); cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); } if (copies > 1 && (!pc || copies <= pc->max_copies)) ippAddInteger(request, IPP_TAG_JOB, IPP_TAG_INTEGER, "copies", copies); } fprintf(stderr, "DEBUG: IPP/%d.%d %s #%d\n", version / 10, version % 10, ippOpString(ippGetOperation(request)), ippGetRequestId(request)); debug_attributes(request); return (request); } /* * 'password_cb()' - Disable the password prompt for cupsDoFileRequest(). */ static const char * /* O - Password */ password_cb(const char *prompt, /* I - Prompt (not used) */ http_t *http, /* I - Connection */ const char *method, /* I - Request method (not used) */ const char *resource, /* I - Resource path (not used) */ int *password_tries) /* I - Password tries */ { char def_username[HTTP_MAX_VALUE]; /* Default username */ fprintf(stderr, "DEBUG: password_cb(prompt=\"%s\", http=%p, method=\"%s\", " "resource=\"%s\", password_tries=%p(%d)), password=%p\n", prompt, http, method, resource, password_tries, *password_tries, password); (void)prompt; (void)method; (void)resource; if (!uri_credentials) { /* * Remember that we need to authenticate... */ if (httpGetSubField(http, HTTP_FIELD_WWW_AUTHENTICATE, "username", def_username)) { char quoted[HTTP_MAX_VALUE * 2 + 4]; /* Quoted string */ fprintf(stderr, "ATTR: auth-info-default=%s,\n", quote_string(def_username, quoted, sizeof(quoted))); } } if (password && *password && *password_tries < 3) { (*password_tries) ++; cupsSetUser(username); return (password); } else { /* * Give up after 3 tries or if we don't have a password to begin with... */ return (NULL); } } /* * 'quote_string()' - Quote a string value. */ static const char * /* O - Quoted string */ quote_string(const char *s, /* I - String */ char *q, /* I - Quoted string buffer */ size_t qsize) /* I - Size of quoted string buffer */ { char *qptr, /* Pointer into string buffer */ *qend; /* End of string buffer */ qptr = q; qend = q + qsize - 5; if (qend < q) { *q = '\0'; return (q); } *qptr++ = '\''; *qptr++ = '\"'; while (*s && qptr < qend) { if (*s == '\\' || *s == '\"' || *s == '\'') { if (qptr < (qend - 4)) { *qptr++ = '\\'; *qptr++ = '\\'; *qptr++ = '\\'; } else break; } *qptr++ = *s++; } *qptr++ = '\"'; *qptr++ = '\''; *qptr = '\0'; return (q); } /* * 'report_attr()' - Report an IPP attribute value. */ static void report_attr(ipp_attribute_t *attr) /* I - Attribute */ { int i; /* Looping var */ char value[1024], /* Value string */ *valptr; /* Pointer into value string */ const char *cached; /* Cached attribute */ /* * Convert the attribute values into quoted strings... */ for (i = 0, valptr = value; i < attr->num_values && valptr < (value + sizeof(value) - 10); i ++) { if (i > 0) *valptr++ = ','; switch (attr->value_tag) { case IPP_TAG_INTEGER : case IPP_TAG_ENUM : snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "%d", attr->values[i].integer); valptr += strlen(valptr); break; case IPP_TAG_TEXT : case IPP_TAG_NAME : case IPP_TAG_KEYWORD : quote_string(attr->values[i].string.text, valptr, (size_t)(value + sizeof(value) - valptr)); valptr += strlen(valptr); break; default : /* * Unsupported value type... */ return; } } *valptr = '\0'; _cupsMutexLock(&report_mutex); if ((cached = cupsGetOption(attr->name, num_attr_cache, attr_cache)) == NULL || strcmp(cached, value)) { /* * Tell the scheduler about the new values... */ num_attr_cache = cupsAddOption(attr->name, value, num_attr_cache, &attr_cache); fprintf(stderr, "ATTR: %s=%s\n", attr->name, value); } _cupsMutexUnlock(&report_mutex); } /* * 'report_printer_state()' - Report the printer state. */ static void report_printer_state(ipp_t *ipp) /* I - IPP response */ { ipp_attribute_t *pa, /* printer-alert */ *pam, /* printer-alert-message */ *pmja, /* printer-mandatory-job-attributes */ *psm, /* printer-state-message */ *reasons, /* printer-state-reasons */ *marker; /* marker-* attributes */ char value[1024], /* State/message string */ *valptr; /* Pointer into string */ static int ipp_supplies = -1; /* Report supply levels? */ /* * Report alerts and messages... */ if ((pa = ippFindAttribute(ipp, "printer-alert", IPP_TAG_STRING)) != NULL) report_attr(pa); if ((pam = ippFindAttribute(ipp, "printer-alert-message", IPP_TAG_TEXT)) != NULL) report_attr(pam); if ((pmja = ippFindAttribute(ipp, "printer-mandatory-job-attributes", IPP_TAG_KEYWORD)) != NULL) { int i, /* Looping var */ count = ippGetCount(pmja); /* Number of values */ for (i = 0, valptr = value; i < count; i ++, valptr += strlen(valptr)) { if (i) snprintf(valptr, sizeof(value) - (size_t)(valptr - value), " %s", ippGetString(pmja, i, NULL)); else strlcpy(value, ippGetString(pmja, i, NULL), sizeof(value)); } if (strcmp(value, mandatory_attrs)) { strlcpy(mandatory_attrs, value, sizeof(mandatory_attrs)); fprintf(stderr, "PPD: cupsMandatory=\"%s\"\n", value); } } if ((psm = ippFindAttribute(ipp, "printer-state-message", IPP_TAG_TEXT)) != NULL) { char *ptr; /* Pointer into message */ strlcpy(value, "INFO: ", sizeof(value)); for (ptr = psm->values[0].string.text, valptr = value + 6; *ptr && valptr < (value + sizeof(value) - 6); ptr ++) { if (*ptr < ' ' && *ptr > 0 && *ptr != '\t') { /* * Substitute "<XX>" for the control character... */ snprintf(valptr, sizeof(value) - (size_t)(valptr - value), "<%02X>", *ptr); valptr += 4; } else *valptr++ = *ptr; } *valptr++ = '\n'; *valptr = '\0'; fputs(value, stderr); } /* * Now report printer-state-reasons, filtering out some of the reasons we never * want to set... */ if ((reasons = ippFindAttribute(ipp, "printer-state-reasons", IPP_TAG_KEYWORD)) == NULL) return; update_reasons(reasons, NULL); /* * Relay the current marker-* attribute values... */ if (ipp_supplies < 0) { ppd_file_t *ppd; /* PPD file */ ppd_attr_t *ppdattr; /* Attribute in PPD file */ if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL && (ppdattr = ppdFindAttr(ppd, "cupsIPPSupplies", NULL)) != NULL && ppdattr->value && _cups_strcasecmp(ppdattr->value, "true")) ipp_supplies = 0; else ipp_supplies = 1; ppdClose(ppd); } if (ipp_supplies > 0) { if ((marker = ippFindAttribute(ipp, "marker-colors", IPP_TAG_NAME)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-high-levels", IPP_TAG_INTEGER)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-levels", IPP_TAG_INTEGER)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-low-levels", IPP_TAG_INTEGER)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-message", IPP_TAG_TEXT)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-names", IPP_TAG_NAME)) != NULL) report_attr(marker); if ((marker = ippFindAttribute(ipp, "marker-types", IPP_TAG_KEYWORD)) != NULL) report_attr(marker); } } #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) /* * 'run_as_user()' - Run the IPP backend as the printing user. * * This function uses an XPC-based user agent to run the backend as the printing * user. We need to do this in order to have access to the user's Kerberos * credentials. */ static int /* O - Exit status */ run_as_user(char *argv[], /* I - Command-line arguments */ uid_t uid, /* I - User ID */ const char *device_uri, /* I - Device URI */ int fd) /* I - File to print */ { const char *auth_negotiate,/* AUTH_NEGOTIATE env var */ *content_type, /* [FINAL_]CONTENT_TYPE env vars */ *auth_info_required; /* New auth-info-required value */ xpc_connection_t conn; /* Connection to XPC service */ xpc_object_t request; /* Request message dictionary */ __block xpc_object_t response; /* Response message dictionary */ int status = CUPS_BACKEND_FAILED; /* Status of request */ fprintf(stderr, "DEBUG: Running IPP backend as UID %u.\n", (unsigned)uid); /* * Connect to the user agent for the specified UID... */ conn = xpc_connection_create_mach_service(kPMPrintUIToolAgent, dispatch_get_global_queue(0, 0), 0); if (!conn) { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to start backend process.")); fputs("DEBUG: Unable to create connection to agent.\n", stderr); goto cleanup; } xpc_connection_set_event_handler(conn, ^(xpc_object_t event) { xpc_type_t messageType = xpc_get_type(event); if (messageType == XPC_TYPE_ERROR) { if (event == XPC_ERROR_CONNECTION_INTERRUPTED) fprintf(stderr, "DEBUG: Interrupted connection to service %s.\n", xpc_connection_get_name(conn)); else if (event == XPC_ERROR_CONNECTION_INVALID) fprintf(stderr, "DEBUG: Connection invalid for service %s.\n", xpc_connection_get_name(conn)); else fprintf(stderr, "DEBUG: Unexpected error for service %s: %s\n", xpc_connection_get_name(conn), xpc_dictionary_get_string(event, XPC_ERROR_KEY_DESCRIPTION)); } }); xpc_connection_set_target_uid(conn, uid); xpc_connection_resume(conn); /* * Try starting the backend... */ request = xpc_dictionary_create(NULL, NULL, 0); xpc_dictionary_set_int64(request, "command", kPMStartJob); xpc_dictionary_set_string(request, "device-uri", device_uri); xpc_dictionary_set_string(request, "job-id", argv[1]); xpc_dictionary_set_string(request, "user", argv[2]); xpc_dictionary_set_string(request, "title", argv[3]); xpc_dictionary_set_string(request, "copies", argv[4]); xpc_dictionary_set_string(request, "options", argv[5]); if ((auth_info_required = getenv("AUTH_INFO_REQUIRED")) != NULL) xpc_dictionary_set_string(request, "auth-info-required", auth_info_required); if ((auth_negotiate = getenv("AUTH_NEGOTIATE")) != NULL) xpc_dictionary_set_string(request, "auth-negotiate", auth_negotiate); if ((content_type = getenv("CONTENT_TYPE")) != NULL) xpc_dictionary_set_string(request, "content-type", content_type); if ((content_type = getenv("FINAL_CONTENT_TYPE")) != NULL) xpc_dictionary_set_string(request, "final-content-type", content_type); xpc_dictionary_set_fd(request, "stdin", fd); xpc_dictionary_set_fd(request, "stderr", 2); xpc_dictionary_set_fd(request, "side-channel", CUPS_SC_FD); response = xpc_connection_send_message_with_reply_sync(conn, request); xpc_release(request); if (response) { child_pid = (pid_t)xpc_dictionary_get_int64(response, "child-pid"); xpc_release(response); if (child_pid) fprintf(stderr, "DEBUG: Child PID=%d.\n", (int)child_pid); else { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to start backend process.")); fputs("DEBUG: No child PID.\n", stderr); goto cleanup; } } else { _cupsLangPrintFilter(stderr, "ERROR", _("Unable to start backend process.")); fputs("DEBUG: No reply from agent.\n", stderr); goto cleanup; } /* * Then wait for the backend to finish... */ request = xpc_dictionary_create(NULL, NULL, 0); xpc_dictionary_set_int64(request, "command", kPMWaitForJob); xpc_dictionary_set_fd(request, "stderr", 2); response = xpc_connection_send_message_with_reply_sync(conn, request); xpc_release(request); if (response) { status = (int)xpc_dictionary_get_int64(response, "status"); if (status == SIGTERM || status == SIGKILL || status == SIGPIPE) { fprintf(stderr, "DEBUG: Child terminated on signal %d.\n", status); status = CUPS_BACKEND_FAILED; } else if (WIFSIGNALED(status)) { fprintf(stderr, "DEBUG: Child crashed on signal %d.\n", status); status = CUPS_BACKEND_STOP; } else if (WIFEXITED(status)) { status = WEXITSTATUS(status); fprintf(stderr, "DEBUG: Child exited with status %d.\n", status); } xpc_release(response); } else _cupsLangPrintFilter(stderr, "ERROR", _("Unable to get backend exit status.")); cleanup: if (conn) { xpc_connection_cancel(conn); xpc_release(conn); } return (status); } #endif /* HAVE_GSSAPI && HAVE_XPC */ /* * 'sigterm_handler()' - Handle 'terminate' signals that stop the backend. */ static void sigterm_handler(int sig) /* I - Signal */ { (void)sig; /* remove compiler warnings... */ backendMessage("DEBUG: Got SIGTERM.\n"); #if defined(HAVE_GSSAPI) && defined(HAVE_XPC) if (child_pid) { kill(child_pid, sig); child_pid = 0; } #endif /* HAVE_GSSAPI && HAVE_XPC */ if (!job_canceled) { /* * Flag that the job should be canceled... */ backendMessage("DEBUG: sigterm_handler: job_canceled = 1.\n"); job_canceled = 1; return; } /* * The scheduler already tried to cancel us once, now just terminate * after removing our temp file! */ if (tmpfilename[0]) unlink(tmpfilename); _exit(1); } /* * 'timeout_cb()' - Handle HTTP timeouts. */ static int /* O - 1 to continue, 0 to cancel */ timeout_cb(http_t *http, /* I - Connection to server (unused) */ void *user_data) /* I - User data (unused) */ { (void)http; (void)user_data; return (!job_canceled); } /* * 'update_reasons()' - Update the printer-state-reasons values. */ static void update_reasons(ipp_attribute_t *attr, /* I - printer-state-reasons or NULL */ const char *s) /* I - STATE: string or NULL */ { char op; /* Add (+), remove (-), replace (\0) */ cups_array_t *new_reasons; /* New reasons array */ char *reason, /* Current reason */ add[2048], /* Reasons added string */ *addptr, /* Pointer into add string */ rem[2048], /* Reasons removed string */ *remptr; /* Pointer into remove string */ const char *addprefix, /* Current add string prefix */ *remprefix; /* Current remove string prefix */ fprintf(stderr, "DEBUG: update_reasons(attr=%d(%s%s), s=\"%s\")\n", attr ? attr->num_values : 0, attr ? attr->values[0].string.text : "", attr && attr->num_values > 1 ? ",..." : "", s ? s : "(null)"); /* * Create an array of new reason keyword strings... */ if (attr) { int i; /* Looping var */ new_reasons = cupsArrayNew((cups_array_func_t)strcmp, NULL); op = '\0'; for (i = 0; i < attr->num_values; i ++) { reason = attr->values[i].string.text; if (strcmp(reason, "none") && strcmp(reason, "none-report") && strcmp(reason, "paused") && strncmp(reason, "spool-area-full", 15) && strcmp(reason, "com.apple.print.recoverable-warning") && strncmp(reason, "cups-", 5)) cupsArrayAdd(new_reasons, reason); } } else if (s) { if (*s == '+' || *s == '-') op = *s++; else op = '\0'; new_reasons = _cupsArrayNewStrings(s, ','); } else return; /* * Compute the changes... */ add[0] = '\0'; addprefix = "STATE: +"; addptr = add; rem[0] = '\0'; remprefix = "STATE: -"; remptr = rem; fprintf(stderr, "DEBUG2: op='%c', new_reasons=%d, state_reasons=%d\n", op ? op : ' ', cupsArrayCount(new_reasons), cupsArrayCount(state_reasons)); _cupsMutexLock(&report_mutex); if (op == '+') { /* * Add reasons... */ for (reason = (char *)cupsArrayFirst(new_reasons); reason; reason = (char *)cupsArrayNext(new_reasons)) { if (!cupsArrayFind(state_reasons, reason)) { if (!strncmp(reason, "cups-remote-", 12)) { /* * If we are setting cups-remote-xxx, remove all other cups-remote-xxx * keywords... */ char *temp; /* Current reason in state_reasons */ cupsArraySave(state_reasons); for (temp = (char *)cupsArrayFirst(state_reasons); temp; temp = (char *)cupsArrayNext(state_reasons)) if (!strncmp(temp, "cups-remote-", 12)) { snprintf(remptr, sizeof(rem) - (size_t)(remptr - rem), "%s%s", remprefix, temp); remptr += strlen(remptr); remprefix = ","; cupsArrayRemove(state_reasons, temp); break; } cupsArrayRestore(state_reasons); } cupsArrayAdd(state_reasons, reason); snprintf(addptr, sizeof(add) - (size_t)(addptr - add), "%s%s", addprefix, reason); addptr += strlen(addptr); addprefix = ","; } } } else if (op == '-') { /* * Remove reasons... */ for (reason = (char *)cupsArrayFirst(new_reasons); reason; reason = (char *)cupsArrayNext(new_reasons)) { if (cupsArrayFind(state_reasons, reason)) { snprintf(remptr, sizeof(rem) - (size_t)(remptr - rem), "%s%s", remprefix, reason); remptr += strlen(remptr); remprefix = ","; cupsArrayRemove(state_reasons, reason); } } } else { /* * Replace reasons... */ for (reason = (char *)cupsArrayFirst(state_reasons); reason; reason = (char *)cupsArrayNext(state_reasons)) { if (strncmp(reason, "cups-", 5) && !cupsArrayFind(new_reasons, reason)) { snprintf(remptr, sizeof(rem) - (size_t)(remptr - rem), "%s%s", remprefix, reason); remptr += strlen(remptr); remprefix = ","; cupsArrayRemove(state_reasons, reason); } } for (reason = (char *)cupsArrayFirst(new_reasons); reason; reason = (char *)cupsArrayNext(new_reasons)) { if (!cupsArrayFind(state_reasons, reason)) { cupsArrayAdd(state_reasons, reason); snprintf(addptr, sizeof(add) - (size_t)(addptr - add), "%s%s", addprefix, reason); addptr += strlen(addptr); addprefix = ","; } } } cupsArrayDelete(new_reasons); _cupsMutexUnlock(&report_mutex); /* * Report changes and return... */ if (add[0] && rem[0]) fprintf(stderr, "%s\n%s\n", add, rem); else if (add[0]) fprintf(stderr, "%s\n", add); else if (rem[0]) fprintf(stderr, "%s\n", rem); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/ieee1284.c�����������������������������������������������������������������������0000644�0001750�0001750�00000024572�14502571342�015354� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * IEEE-1284 support functions for CUPS. * * Copyright © 2007-2015 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <cups/ppd-private.h> /* * 'backendGetDeviceID()' - Get the IEEE-1284 device ID string and * corresponding URI. */ int /* O - 0 on success, -1 on failure */ backendGetDeviceID( int fd, /* I - File descriptor */ char *device_id, /* O - 1284 device ID */ int device_id_size, /* I - Size of buffer */ char *make_model, /* O - Make/model */ int make_model_size, /* I - Size of buffer */ const char *scheme, /* I - URI scheme */ char *uri, /* O - Device URI */ int uri_size) /* I - Size of buffer */ { #ifdef __APPLE__ /* This function is a no-op */ (void)fd; (void)device_id; (void)device_id_size; (void)make_model; (void)make_model_size; (void)scheme; (void)uri; (void)uri_size; return (-1); #else /* Get the device ID from the specified file descriptor... */ # ifdef __linux int length; /* Length of device ID info */ int got_id = 0; # endif /* __linux */ # if defined(__sun) && defined(ECPPIOC_GETDEVID) struct ecpp_device_id did; /* Device ID buffer */ # endif /* __sun && ECPPIOC_GETDEVID */ char *ptr; /* Pointer into device ID */ /* * Range check input... */ if (!device_id || device_id_size < 32) { return (-1); } if (make_model) *make_model = '\0'; if (fd >= 0) { /* * Get the device ID string... */ *device_id = '\0'; # ifdef __linux if (ioctl(fd, LPIOC_GET_DEVICE_ID((unsigned)device_id_size), device_id)) { /* * Linux has to implement things differently for every device it seems. * Since the standard parallel port driver does not provide a simple * ioctl() to get the 1284 device ID, we have to open the "raw" parallel * device corresponding to this port and do some negotiation trickery * to get the current device ID. */ if (uri && !strncmp(uri, "parallel:/dev/", 14)) { char devparport[16]; /* /dev/parportN */ int devparportfd, /* File descriptor for raw device */ mode; /* Port mode */ /* * Since the Linux parallel backend only supports 4 parallel port * devices, just grab the trailing digit and use it to construct a * /dev/parportN filename... */ snprintf(devparport, sizeof(devparport), "/dev/parport%s", uri + strlen(uri) - 1); if ((devparportfd = open(devparport, O_RDWR | O_NOCTTY)) != -1) { /* * Claim the device... */ if (!ioctl(devparportfd, PPCLAIM)) { fcntl(devparportfd, F_SETFL, fcntl(devparportfd, F_GETFL) | O_NONBLOCK); mode = IEEE1284_MODE_COMPAT; if (!ioctl(devparportfd, PPNEGOT, &mode)) { /* * Put the device into Device ID mode... */ mode = IEEE1284_MODE_NIBBLE | IEEE1284_DEVICEID; if (!ioctl(devparportfd, PPNEGOT, &mode)) { /* * Read the 1284 device ID... */ if ((length = read(devparportfd, device_id, (size_t)device_id_size - 1)) >= 2) { device_id[length] = '\0'; got_id = 1; } } } /* * Release the device... */ ioctl(devparportfd, PPRELEASE); } close(devparportfd); } } } else got_id = 1; if (got_id) { /* * Extract the length of the device ID string from the first two * bytes. The 1284 spec says the length is stored MSB first... */ length = (int)((((unsigned)device_id[0] & 255) << 8) | ((unsigned)device_id[1] & 255)); /* * Check to see if the length is larger than our buffer; first * assume that the vendor incorrectly implemented the 1284 spec, * and then limit the length to the size of our buffer... */ if (length > device_id_size || length < 14) length = (int)((((unsigned)device_id[1] & 255) << 8) | ((unsigned)device_id[0] & 255)); if (length > device_id_size) length = device_id_size; /* * The length field counts the number of bytes in the string * including the length field itself (2 bytes). The minimum * length for a valid/usable device ID is 14 bytes: * * <LENGTH> MFG: <MFG> ;MDL: <MDL> ; * 2 + 4 + 1 + 5 + 1 + 1 */ if (length < 14) { /* * Can't use this device ID, so don't try to copy it... */ device_id[0] = '\0'; got_id = 0; } else { /* * Copy the device ID text to the beginning of the buffer and * nul-terminate. */ length -= 2; memmove(device_id, device_id + 2, (size_t)length); device_id[length] = '\0'; } } else { *device_id = '\0'; } # endif /* __linux */ # if defined(__sun) && defined(ECPPIOC_GETDEVID) did.mode = ECPP_CENTRONICS; did.len = device_id_size - 1; did.rlen = 0; did.addr = device_id; if (!ioctl(fd, ECPPIOC_GETDEVID, &did)) { /* * Nul-terminate the device ID text. */ if (did.rlen < (device_id_size - 1)) device_id[did.rlen] = '\0'; else device_id[device_id_size - 1] = '\0'; } # endif /* __sun && ECPPIOC_GETDEVID */ } /* * Check whether device ID is valid. Turn line breaks and tabs to spaces and * reject device IDs with non-printable characters. */ for (ptr = device_id; *ptr; ptr ++) if (_cups_isspace(*ptr)) *ptr = ' '; else if ((*ptr & 255) < ' ' || *ptr == 127) { *device_id = '\0'; break; } if (scheme && uri) *uri = '\0'; if (!*device_id) return (-1); /* * Get the make and model... */ if (make_model) backendGetMakeModel(device_id, make_model, (size_t)make_model_size); /* * Then generate a device URI... */ if (scheme && uri && uri_size > 32) { int num_values; /* Number of keys and values */ cups_option_t *values; /* Keys and values in device ID */ const char *mfg, /* Manufacturer */ *mdl, /* Model */ *sern; /* Serial number */ char temp[256], /* Temporary manufacturer string */ *tempptr; /* Pointer into temp string */ /* * Get the make, model, and serial numbers... */ num_values = _cupsGet1284Values(device_id, &values); if ((sern = cupsGetOption("SERIALNUMBER", num_values, values)) == NULL) if ((sern = cupsGetOption("SERN", num_values, values)) == NULL) sern = cupsGetOption("SN", num_values, values); if ((mfg = cupsGetOption("MANUFACTURER", num_values, values)) == NULL) mfg = cupsGetOption("MFG", num_values, values); if ((mdl = cupsGetOption("MODEL", num_values, values)) == NULL) mdl = cupsGetOption("MDL", num_values, values); if (mfg) { if (!_cups_strcasecmp(mfg, "Hewlett-Packard")) mfg = "HP"; else if (!_cups_strcasecmp(mfg, "Lexmark International")) mfg = "Lexmark"; } else { strlcpy(temp, make_model, sizeof(temp)); if ((tempptr = strchr(temp, ' ')) != NULL) *tempptr = '\0'; mfg = temp; } if (!mdl) mdl = ""; if (!_cups_strncasecmp(mdl, mfg, strlen(mfg))) { mdl += strlen(mfg); while (isspace(*mdl & 255)) mdl ++; } /* * Generate the device URI from the manufacturer, make_model, and * serial number strings. */ httpAssembleURIf(HTTP_URI_CODING_ALL, uri, uri_size, scheme, NULL, mfg, 0, "/%s%s%s", mdl, sern ? "?serial=" : "", sern ? sern : ""); cupsFreeOptions(num_values, values); } return (0); #endif /* __APPLE__ */ } /* * 'backendGetMakeModel()' - Get the make and model string from the device ID. */ int /* O - 0 on success, -1 on failure */ backendGetMakeModel( const char *device_id, /* O - 1284 device ID */ char *make_model, /* O - Make/model */ size_t make_model_size) /* I - Size of buffer */ { int num_values; /* Number of keys and values */ cups_option_t *values; /* Keys and values */ const char *mfg, /* Manufacturer string */ *mdl, /* Model string */ *des; /* Description string */ /* * Range check input... */ if (!device_id || !*device_id || !make_model || make_model_size < 32) return (-1); *make_model = '\0'; /* * Look for the description field... */ num_values = _cupsGet1284Values(device_id, &values); if ((mdl = cupsGetOption("MODEL", num_values, values)) == NULL) mdl = cupsGetOption("MDL", num_values, values); if (mdl) { /* * Build a make-model string from the manufacturer and model attributes... */ if ((mfg = cupsGetOption("MANUFACTURER", num_values, values)) == NULL) mfg = cupsGetOption("MFG", num_values, values); if (!mfg || !_cups_strncasecmp(mdl, mfg, strlen(mfg))) { /* * Just copy the model string, since it has the manufacturer... */ _ppdNormalizeMakeAndModel(mdl, make_model, make_model_size); } else { /* * Concatenate the make and model... */ char temp[1024]; /* Temporary make and model */ snprintf(temp, sizeof(temp), "%s %s", mfg, mdl); _ppdNormalizeMakeAndModel(temp, make_model, make_model_size); } } else if ((des = cupsGetOption("DESCRIPTION", num_values, values)) != NULL || (des = cupsGetOption("DES", num_values, values)) != NULL) { /* * Make sure the description contains something useful, since some * printer manufacturers (HP) apparently don't follow the standards * they helped to define... * * Here we require the description to be 8 or more characters in length, * containing at least one space and one letter. */ if (strlen(des) >= 8) { const char *ptr; /* Pointer into description */ int letters, /* Number of letters seen */ spaces; /* Number of spaces seen */ for (ptr = des, letters = 0, spaces = 0; *ptr; ptr ++) { if (isspace(*ptr & 255)) spaces ++; else if (isalpha(*ptr & 255)) letters ++; if (spaces && letters) break; } if (spaces && letters) _ppdNormalizeMakeAndModel(des, make_model, make_model_size); } } if (!make_model[0]) { /* * Use "Unknown" as the printer make and model... */ strlcpy(make_model, "Unknown", make_model_size); } cupsFreeOptions(num_values, values); return (0); } ��������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/dnssd.c��������������������������������������������������������������������������0000644�0001750�0001750�00000107332�14502571342�015235� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * DNS-SD discovery backend for CUPS. * * Copyright © 2021-2023 by OpenPrinting. * Copyright © 2008-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ /* * Include necessary headers. */ #include "backend-private.h" #include <cups/array.h> #ifdef HAVE_MDNSRESPONDER # include <dns_sd.h> #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI # include <avahi-client/client.h> # include <avahi-client/lookup.h> # include <avahi-common/simple-watch.h> # include <avahi-common/domain.h> # include <avahi-common/error.h> # include <avahi-common/malloc.h> #define kDNSServiceMaxDomainName AVAHI_DOMAIN_NAME_MAX #endif /* HAVE_AVAHI */ /* * Device structure... */ typedef enum { CUPS_DEVICE_PRINTER = 0, /* lpd://... */ CUPS_DEVICE_IPPS, /* ipps://... */ CUPS_DEVICE_IPP, /* ipp://... */ CUPS_DEVICE_FAX_IPP, /* ipp://... */ CUPS_DEVICE_PDL_DATASTREAM, /* socket://... */ CUPS_DEVICE_RIOUSBPRINT /* riousbprint://... */ } cups_devtype_t; typedef struct { #ifdef HAVE_MDNSRESPONDER DNSServiceRef ref; /* Service reference for query */ #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI AvahiRecordBrowser *ref; /* Browser for query */ #endif /* HAVE_AVAHI */ char *name, /* Service name */ *domain, /* Domain name */ *fullName, /* Full name */ *make_and_model, /* Make and model from TXT record */ *device_id, /* 1284 device ID from TXT record */ *uuid; /* UUID from TXT record */ cups_devtype_t type; /* Device registration type */ int priority, /* Priority associated with type */ cups_shared, /* CUPS shared printer? */ sent; /* Did we list the device? */ } cups_device_t; /* * Local globals... */ static int job_canceled = 0; /* Set to 1 on SIGTERM */ #ifdef HAVE_AVAHI static AvahiSimplePoll *simple_poll = NULL; /* Poll information */ static int got_data = 0; /* Got data from poll? */ static int browsers = 0; /* Number of running browsers */ #endif /* HAVE_AVAHI */ /* * Local functions... */ #ifdef HAVE_MDNSRESPONDER static void browse_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context) _CUPS_NONNULL(1,5,6,7,8); static void browse_local_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context) _CUPS_NONNULL(1,5,6,7,8); #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI static void browse_callback(AvahiServiceBrowser *browser, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *serviceName, const char *regtype, const char *replyDomain, AvahiLookupResultFlags flags, void *context); static void client_callback(AvahiClient *client, AvahiClientState state, void *context); #endif /* HAVE_AVAHI */ static int compare_devices(cups_device_t *a, cups_device_t *b); static void exec_backend(char **argv) _CUPS_NORETURN; static cups_device_t *get_device(cups_array_t *devices, const char *serviceName, const char *regtype, const char *replyDomain) _CUPS_NONNULL(1,2,3,4); #ifdef HAVE_MDNSRESPONDER static void query_callback(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullName, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context) _CUPS_NONNULL(1,5,9,11); #elif defined(HAVE_AVAHI) static int poll_callback(struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context); static void query_callback(AvahiRecordBrowser *browser, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t rrclass, uint16_t rrtype, const void *rdata, size_t rdlen, AvahiLookupResultFlags flags, void *context); #endif /* HAVE_MDNSRESPONDER */ static void sigterm_handler(int sig); static void unquote(char *dst, const char *src, size_t dstsize) _CUPS_NONNULL(1,2); /* * 'main()' - Browse for printers. */ int /* O - Exit status */ main(int argc, /* I - Number of command-line args */ char *argv[]) /* I - Command-line arguments */ { const char *name; /* Backend name */ cups_array_t *devices; /* Device array */ cups_device_t *device; /* Current device */ char uriName[1024]; /* Unquoted fullName for URI */ #ifdef HAVE_MDNSRESPONDER int fd; /* Main file descriptor */ fd_set input; /* Input set for select() */ struct timeval timeout; /* Timeout for select() */ DNSServiceRef main_ref, /* Main service reference */ fax_ipp_ref, /* IPP fax service reference */ ipp_ref, /* IPP service reference */ ipp_tls_ref, /* IPP w/TLS service reference */ ipps_ref, /* IPP service reference */ local_fax_ipp_ref, /* Local IPP fax service reference */ local_ipp_ref, /* Local IPP service reference */ local_ipp_tls_ref, /* Local IPP w/TLS service reference */ local_ipps_ref, /* Local IPP service reference */ local_printer_ref, /* Local LPD service reference */ pdl_datastream_ref, /* AppSocket service reference */ printer_ref, /* LPD service reference */ riousbprint_ref; /* Remote IO service reference */ #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI AvahiClient *client; /* Client information */ int error; /* Error code, if any */ #endif /* HAVE_AVAHI */ #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) struct sigaction action; /* Actions for POSIX signals */ #endif /* HAVE_SIGACTION && !HAVE_SIGSET */ /* * Don't buffer stderr, and catch SIGTERM... */ setbuf(stderr, NULL); #ifdef HAVE_SIGSET /* Use System V signals over POSIX to avoid bugs */ sigset(SIGTERM, sigterm_handler); #elif defined(HAVE_SIGACTION) memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); action.sa_handler = sigterm_handler; sigaction(SIGTERM, &action, NULL); #else signal(SIGTERM, sigterm_handler); #endif /* HAVE_SIGSET */ /* * Check command-line... */ if (argc >= 6) exec_backend(argv); else if (argc != 1) { _cupsLangPrintf(stderr, _("Usage: %s job-id user title copies options [file]"), argv[0]); return (1); } /* * Only do discovery when run as "dnssd"... */ if ((name = strrchr(argv[0], '/')) != NULL) name ++; else name = argv[0]; if (strcmp(name, "dnssd")) return (0); /* * Create an array to track devices... */ devices = cupsArrayNew((cups_array_func_t)compare_devices, NULL); /* * Browse for different kinds of printers... */ #ifdef HAVE_MDNSRESPONDER if (DNSServiceCreateConnection(&main_ref) != kDNSServiceErr_NoError) { perror("ERROR: Unable to create service connection"); return (1); } fd = DNSServiceRefSockFD(main_ref); fax_ipp_ref = main_ref; DNSServiceBrowse(&fax_ipp_ref, kDNSServiceFlagsShareConnection, 0, "_fax-ipp._tcp", NULL, browse_callback, devices); ipp_ref = main_ref; DNSServiceBrowse(&ipp_ref, kDNSServiceFlagsShareConnection, 0, "_ipp._tcp", NULL, browse_callback, devices); ipp_tls_ref = main_ref; DNSServiceBrowse(&ipp_tls_ref, kDNSServiceFlagsShareConnection, 0, "_ipp-tls._tcp", NULL, browse_callback, devices); ipps_ref = main_ref; DNSServiceBrowse(&ipps_ref, kDNSServiceFlagsShareConnection, 0, "_ipps._tcp", NULL, browse_callback, devices); local_fax_ipp_ref = main_ref; DNSServiceBrowse(&local_fax_ipp_ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, "_fax-ipp._tcp", NULL, browse_local_callback, devices); local_ipp_ref = main_ref; DNSServiceBrowse(&local_ipp_ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, "_ipp._tcp", NULL, browse_local_callback, devices); local_ipp_tls_ref = main_ref; DNSServiceBrowse(&local_ipp_tls_ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, "_ipp-tls._tcp", NULL, browse_local_callback, devices); local_ipps_ref = main_ref; DNSServiceBrowse(&local_ipps_ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, "_ipps._tcp", NULL, browse_local_callback, devices); local_printer_ref = main_ref; DNSServiceBrowse(&local_printer_ref, kDNSServiceFlagsShareConnection, kDNSServiceInterfaceIndexLocalOnly, "_printer._tcp", NULL, browse_local_callback, devices); pdl_datastream_ref = main_ref; DNSServiceBrowse(&pdl_datastream_ref, kDNSServiceFlagsShareConnection, 0, "_pdl-datastream._tcp", NULL, browse_callback, devices); printer_ref = main_ref; DNSServiceBrowse(&printer_ref, kDNSServiceFlagsShareConnection, 0, "_printer._tcp", NULL, browse_callback, devices); riousbprint_ref = main_ref; DNSServiceBrowse(&riousbprint_ref, kDNSServiceFlagsShareConnection, 0, "_riousbprint._tcp", NULL, browse_callback, devices); #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI if ((simple_poll = avahi_simple_poll_new()) == NULL) { fputs("DEBUG: Unable to create Avahi simple poll object.\n", stderr); return (0); } avahi_simple_poll_set_func(simple_poll, poll_callback, NULL); client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, simple_poll, &error); if (!client) { fputs("DEBUG: Unable to create Avahi client.\n", stderr); return (0); } browsers = 6; avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_fax-ipp._tcp", NULL, 0, browse_callback, devices); avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp._tcp", NULL, 0, browse_callback, devices); avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp-tls._tcp", NULL, 0, browse_callback, devices); avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipps._tcp", NULL, 0, browse_callback, devices); avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_pdl-datastream._tcp", NULL, 0, browse_callback, devices); avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_printer._tcp", NULL, 0, browse_callback, devices); #endif /* HAVE_AVAHI */ /* * Loop until we are killed... */ while (!job_canceled) { int announce = 0; /* Announce printers? */ #ifdef HAVE_MDNSRESPONDER FD_ZERO(&input); FD_SET(fd, &input); timeout.tv_sec = 0; timeout.tv_usec = 500000; if (select(fd + 1, &input, NULL, NULL, &timeout) < 0) continue; if (FD_ISSET(fd, &input)) { /* * Process results of our browsing... */ DNSServiceProcessResult(main_ref); } else announce = 1; #elif defined(HAVE_AVAHI) got_data = 0; if ((error = avahi_simple_poll_iterate(simple_poll, 500)) > 0) { /* * We've been told to exit the loop. Perhaps the connection to * Avahi failed. */ break; } if (!got_data) announce = 1; #endif /* HAVE_MDNSRESPONDER */ /* fprintf(stderr, "DEBUG: announce=%d\n", announce);*/ if (announce) { /* * Announce any devices we've found... */ #ifdef HAVE_MDNSRESPONDER DNSServiceErrorType status; /* DNS query status */ #endif /* HAVE_MDNSRESPONDER */ cups_device_t *best; /* Best matching device */ char device_uri[1024]; /* Device URI */ int count; /* Number of queries */ int sent; /* Number of sent */ for (device = (cups_device_t *)cupsArrayFirst(devices), best = NULL, count = 0, sent = 0; device; device = (cups_device_t *)cupsArrayNext(devices)) { if (device->sent) sent ++; if (device->ref) count ++; if (!device->ref && !device->sent) { /* * Found the device, now get the TXT record(s) for it... */ if (count < 50) { fprintf(stderr, "DEBUG: Querying \"%s\"...\n", device->fullName); #ifdef HAVE_MDNSRESPONDER device->ref = main_ref; status = DNSServiceQueryRecord(&(device->ref), kDNSServiceFlagsShareConnection, 0, device->fullName, kDNSServiceType_TXT, kDNSServiceClass_IN, query_callback, device); if (status != kDNSServiceErr_NoError) fprintf(stderr, "ERROR: Unable to query \"%s\" for TXT records: %d\n", device->fullName, status); /* Users never see this */ else count ++; #else if ((device->ref = avahi_record_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, device->fullName, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_TXT, 0, query_callback, device)) == NULL) fprintf(stderr, "ERROR: Unable to query \"%s\" for TXT records: %s\n", device->fullName, avahi_strerror(avahi_client_errno(client))); /* Users never see this */ else count ++; #endif /* HAVE_AVAHI */ } } else if (!device->sent) { #ifdef HAVE_MDNSRESPONDER /* * Got the TXT records, now report the device... */ DNSServiceRefDeallocate(device->ref); #else avahi_record_browser_free(device->ref); #endif /* HAVE_MDNSRESPONDER */ device->ref = NULL; if (!best) best = device; else if (_cups_strcasecmp(best->name, device->name) || _cups_strcasecmp(best->domain, device->domain)) { unquote(uriName, best->fullName, sizeof(uriName)); if (best->uuid) httpAssembleURIf(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri), "dnssd", NULL, uriName, 0, best->cups_shared ? "/cups?uuid=%s" : "/?uuid=%s", best->uuid); else httpAssembleURI(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri), "dnssd", NULL, uriName, 0, best->cups_shared ? "/cups" : "/"); cupsBackendReport("network", device_uri, best->make_and_model, best->name, best->device_id, NULL); best->sent = 1; best = device; sent ++; } else if (best->priority > device->priority || (best->priority == device->priority && best->type < device->type)) { best->sent = 1; best = device; sent ++; } else { device->sent = 1; sent ++; } } } if (best) { unquote(uriName, best->fullName, sizeof(uriName)); if (best->uuid) httpAssembleURIf(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri), "dnssd", NULL, uriName, 0, best->cups_shared ? "/cups?uuid=%s" : "/?uuid=%s", best->uuid); else httpAssembleURI(HTTP_URI_CODING_ALL, device_uri, sizeof(device_uri), "dnssd", NULL, uriName, 0, best->cups_shared ? "/cups" : "/"); cupsBackendReport("network", device_uri, best->make_and_model, best->name, best->device_id, NULL); best->sent = 1; sent ++; } fprintf(stderr, "DEBUG: sent=%d, count=%d\n", sent, count); #ifdef HAVE_AVAHI if (sent == cupsArrayCount(devices) && browsers == 0) #else if (sent == cupsArrayCount(devices)) #endif /* HAVE_AVAHI */ break; } } return (CUPS_BACKEND_OK); } #ifdef HAVE_MDNSRESPONDER /* * 'browse_callback()' - Browse devices. */ static void browse_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Option flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain, /* I - Service domain */ void *context) /* I - Devices array */ { fprintf(stderr, "DEBUG2: browse_callback(sdRef=%p, flags=%x, " "interfaceIndex=%u, errorCode=%d, serviceName=\"%s\", " "regtype=\"%s\", replyDomain=\"%s\", context=%p)\n", sdRef, flags, interfaceIndex, errorCode, serviceName, regtype, replyDomain, context); /* * Only process "add" data... */ if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; /* * Get the device... */ get_device((cups_array_t *)context, serviceName, regtype, replyDomain); } /* * 'browse_local_callback()' - Browse local devices. */ static void browse_local_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Option flags */ uint32_t interfaceIndex, /* I - Interface number */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain, /* I - Service domain */ void *context) /* I - Devices array */ { cups_device_t *device; /* Device */ fprintf(stderr, "DEBUG2: browse_local_callback(sdRef=%p, flags=%x, " "interfaceIndex=%u, errorCode=%d, serviceName=\"%s\", " "regtype=\"%s\", replyDomain=\"%s\", context=%p)\n", sdRef, flags, interfaceIndex, errorCode, serviceName, regtype, replyDomain, context); /* * Only process "add" data... */ if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; /* * Get the device... */ device = get_device((cups_array_t *)context, serviceName, regtype, replyDomain); /* * Hide locally-registered devices... */ fprintf(stderr, "DEBUG: Hiding local printer \"%s\"...\n", device->fullName); device->sent = 1; } #endif /* HAVE_MDNSRESPONDER */ #ifdef HAVE_AVAHI /* * 'browse_callback()' - Browse devices. */ static void browse_callback( AvahiServiceBrowser *browser, /* I - Browser */ AvahiIfIndex interface, /* I - Interface index (unused) */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiBrowserEvent event, /* I - What happened */ const char *name, /* I - Service name */ const char *type, /* I - Registration type */ const char *domain, /* I - Domain */ AvahiLookupResultFlags flags, /* I - Flags */ void *context) /* I - Devices array */ { AvahiClient *client = avahi_service_browser_get_client(browser); /* Client information */ (void)interface; (void)protocol; (void)context; switch (event) { case AVAHI_BROWSER_FAILURE: fprintf(stderr, "DEBUG: browse_callback: %s\n", avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_BROWSER_NEW: /* * This object is new on the network. */ if (flags & AVAHI_LOOKUP_RESULT_LOCAL) { /* * This comes from the local machine so ignore it. */ fprintf(stderr, "DEBUG: Ignoring local service %s.\n", name); } else { /* * Create a device entry for it if it doesn't yet exist. */ get_device((cups_array_t *)context, name, type, domain); } break; case AVAHI_BROWSER_REMOVE: case AVAHI_BROWSER_CACHE_EXHAUSTED: break; case AVAHI_BROWSER_ALL_FOR_NOW: browsers--; break; } } /* * 'client_callback()' - Avahi client callback function. */ static void client_callback( AvahiClient *client, /* I - Client information (unused) */ AvahiClientState state, /* I - Current state */ void *context) /* I - User data (unused) */ { (void)client; (void)context; /* * If the connection drops, quit. */ if (state == AVAHI_CLIENT_FAILURE) { fputs("DEBUG: Avahi connection failed.\n", stderr); avahi_simple_poll_quit(simple_poll); } } #endif /* HAVE_AVAHI */ /* * 'compare_devices()' - Compare two devices. */ static int /* O - Result of comparison */ compare_devices(cups_device_t *a, /* I - First device */ cups_device_t *b) /* I - Second device */ { return (strcmp(a->name, b->name)); } /* * 'exec_backend()' - Execute the backend that corresponds to the * resolved service name. */ static void exec_backend(char **argv) /* I - Command-line arguments */ { const char *resolved_uri, /* Resolved device URI */ *cups_serverbin; /* Location of programs */ char scheme[1024], /* Scheme from URI */ *ptr, /* Pointer into scheme */ filename[1024]; /* Backend filename */ /* * Resolve the device URI... */ job_canceled = -1; while ((resolved_uri = cupsBackendDeviceURI(argv)) == NULL) { _cupsLangPrintFilter(stderr, "INFO", _("Unable to locate printer.")); sleep(10); if (getenv("CLASS") != NULL) exit(CUPS_BACKEND_FAILED); } /* * Extract the scheme from the URI... */ strlcpy(scheme, resolved_uri, sizeof(scheme)); if ((ptr = strchr(scheme, ':')) != NULL) *ptr = '\0'; /* * Get the filename of the backend... */ if ((cups_serverbin = getenv("CUPS_SERVERBIN")) == NULL) cups_serverbin = CUPS_SERVERBIN; snprintf(filename, sizeof(filename), "%s/backend/%s", cups_serverbin, scheme); /* * Overwrite the device URI and run the new backend... */ setenv("DEVICE_URI", resolved_uri, 1); argv[0] = (char *)resolved_uri; fprintf(stderr, "DEBUG: Executing backend \"%s\"...\n", filename); execv(filename, argv); fprintf(stderr, "ERROR: Unable to execute backend \"%s\": %s\n", filename, strerror(errno)); exit(CUPS_BACKEND_STOP); } /* * 'device_type()' - Get DNS-SD type enumeration from string. */ static cups_devtype_t /* O - Device type */ device_type(const char *regtype) /* I - Service registration type */ { #ifdef HAVE_AVAHI if (!strcmp(regtype, "_ipp._tcp")) return (CUPS_DEVICE_IPP); else if (!strcmp(regtype, "_ipps._tcp") || !strcmp(regtype, "_ipp-tls._tcp")) return (CUPS_DEVICE_IPPS); else if (!strcmp(regtype, "_fax-ipp._tcp")) return (CUPS_DEVICE_FAX_IPP); else if (!strcmp(regtype, "_printer._tcp")) return (CUPS_DEVICE_PDL_DATASTREAM); #else if (!strcmp(regtype, "_ipp._tcp.")) return (CUPS_DEVICE_IPP); else if (!strcmp(regtype, "_ipps._tcp.") || !strcmp(regtype, "_ipp-tls._tcp.")) return (CUPS_DEVICE_IPPS); else if (!strcmp(regtype, "_fax-ipp._tcp.")) return (CUPS_DEVICE_FAX_IPP); else if (!strcmp(regtype, "_printer._tcp.")) return (CUPS_DEVICE_PRINTER); else if (!strcmp(regtype, "_pdl-datastream._tcp.")) return (CUPS_DEVICE_PDL_DATASTREAM); #endif /* HAVE_AVAHI */ return (CUPS_DEVICE_RIOUSBPRINT); } /* * 'get_device()' - Create or update a device. */ static cups_device_t * /* O - Device */ get_device(cups_array_t *devices, /* I - Device array */ const char *serviceName, /* I - Name of service/device */ const char *regtype, /* I - Type of service */ const char *replyDomain) /* I - Service domain */ { cups_device_t key, /* Search key */ *device; /* Device */ char fullName[kDNSServiceMaxDomainName]; /* Full name for query */ /* * See if this is a new device... */ key.name = (char *)serviceName; key.type = device_type(regtype); for (device = cupsArrayFind(devices, &key); device; device = cupsArrayNext(devices)) if (_cups_strcasecmp(device->name, key.name)) break; else if (device->type == key.type) { if (!_cups_strcasecmp(device->domain, "local.") && _cups_strcasecmp(device->domain, replyDomain)) { /* * Update the .local listing to use the "global" domain name instead. * The backend will try local lookups first, then the global domain name. */ free(device->domain); device->domain = strdup(replyDomain); #ifdef HAVE_MDNSRESPONDER DNSServiceConstructFullName(fullName, device->name, regtype, replyDomain); #else /* HAVE_AVAHI */ avahi_service_name_join(fullName, kDNSServiceMaxDomainName, serviceName, regtype, replyDomain); #endif /* HAVE_MDNSRESPONDER */ free(device->fullName); device->fullName = strdup(fullName); } return (device); } /* * Yes, add the device... */ if ((device = calloc(1, sizeof(cups_device_t))) == NULL) { perror("DEBUG: Out of memory adding a device"); return (NULL); } device->name = strdup(serviceName); device->domain = strdup(replyDomain); device->type = key.type; device->priority = 50; cupsArrayAdd(devices, device); /* * Set the "full name" of this service, which is used for queries... */ #ifdef HAVE_MDNSRESPONDER DNSServiceConstructFullName(fullName, serviceName, regtype, replyDomain); #else /* HAVE_AVAHI */ avahi_service_name_join(fullName, kDNSServiceMaxDomainName, serviceName, regtype, replyDomain); #endif /* HAVE_MDNSRESPONDER */ device->fullName = strdup(fullName); return (device); } #ifdef HAVE_AVAHI /* * 'poll_callback()' - Wait for input on the specified file descriptors. * * Note: This function is needed because avahi_simple_poll_iterate is broken * and always uses a timeout of 0 (!) milliseconds. * (https://github.com/lathiat/avahi/issues/127) */ static int /* O - Number of file descriptors matching */ poll_callback( struct pollfd *pollfds, /* I - File descriptors */ unsigned int num_pollfds, /* I - Number of file descriptors */ int timeout, /* I - Timeout in milliseconds (unused) */ void *context) /* I - User data (unused) */ { int val; /* Return value */ (void)timeout; (void)context; val = poll(pollfds, num_pollfds, 500); if (val < 0) fprintf(stderr, "DEBUG: poll_callback: %s\n", strerror(errno)); else if (val > 0) got_data = 1; return (val); } #endif /* HAVE_AVAHI */ #ifdef HAVE_DNSSD # ifdef HAVE_MDNSRESPONDER /* * 'query_callback()' - Process query data. */ static void query_callback( DNSServiceRef sdRef, /* I - Service reference */ DNSServiceFlags flags, /* I - Data flags */ uint32_t interfaceIndex, /* I - Interface */ DNSServiceErrorType errorCode, /* I - Error, if any */ const char *fullName, /* I - Full service name */ uint16_t rrtype, /* I - Record type */ uint16_t rrclass, /* I - Record class */ uint16_t rdlen, /* I - Length of record data */ const void *rdata, /* I - Record data */ uint32_t ttl, /* I - Time-to-live */ void *context) /* I - Device */ { # else /* * 'query_callback()' - Process query data. */ static void query_callback( AvahiRecordBrowser *browser, /* I - Record browser */ AvahiIfIndex interfaceIndex, /* I - Interface index (unused) */ AvahiProtocol protocol, /* I - Network protocol (unused) */ AvahiBrowserEvent event, /* I - What happened? */ const char *fullName, /* I - Service name */ uint16_t rrclass, /* I - Record class */ uint16_t rrtype, /* I - Record type */ const void *rdata, /* I - TXT record */ size_t rdlen, /* I - Length of TXT record */ AvahiLookupResultFlags flags, /* I - Flags */ void *context) /* I - Device */ { AvahiClient *client = avahi_record_browser_get_client(browser); /* Client information */ # endif /* HAVE_MDNSRESPONDER */ char *ptr; /* Pointer into string */ cups_device_t *device = (cups_device_t *)context; /* Device */ const uint8_t *data, /* Pointer into data */ *datanext, /* Next key/value pair */ *dataend; /* End of entire TXT record */ uint8_t datalen; /* Length of current key/value pair */ char key[256], /* Key string */ value[256], /* Value string */ make_and_model[512], /* Manufacturer and model */ model[256], /* Model */ pdl[256], /* PDL */ device_id[2048]; /* 1284 device ID */ # ifdef HAVE_MDNSRESPONDER fprintf(stderr, "DEBUG2: query_callback(sdRef=%p, flags=%x, " "interfaceIndex=%u, errorCode=%d, fullName=\"%s\", " "rrtype=%u, rrclass=%u, rdlen=%u, rdata=%p, ttl=%u, " "context=%p)\n", sdRef, flags, interfaceIndex, errorCode, fullName, rrtype, rrclass, rdlen, rdata, ttl, context); /* * Only process "add" data... */ if (errorCode != kDNSServiceErr_NoError || !(flags & kDNSServiceFlagsAdd)) return; # else fprintf(stderr, "DEBUG2: query_callback(browser=%p, interfaceIndex=%u, " "protocol=%d, event=%d, fullName=\"%s\", rrclass=%u, " "rrtype=%u, rdata=%p, rdlen=%u, flags=%x, context=%p)\n", browser, interfaceIndex, protocol, event, fullName, rrclass, rrtype, rdata, (unsigned)rdlen, flags, context); /* * Only process "add" data... */ if (event != AVAHI_BROWSER_NEW) { if (event == AVAHI_BROWSER_FAILURE) fprintf(stderr, "ERROR: %s\n", avahi_strerror(avahi_client_errno(client))); return; } # endif /* HAVE_MDNSRESPONDER */ /* * Pull out the priority and make and model from the TXT * record and save it... */ device_id[0] = '\0'; make_and_model[0] = '\0'; pdl[0] = '\0'; strlcpy(model, "Unknown", sizeof(model)); for (data = rdata, dataend = data + rdlen; data < dataend; data = datanext) { /* * Read a key/value pair starting with an 8-bit length. Since the * length is 8 bits and the size of the key/value buffers is 256, we * don't need to check for overflow... */ datalen = *data++; if (!datalen || (data + datalen) > dataend) break; datanext = data + datalen; for (ptr = key; data < datanext && *data != '='; data ++) *ptr++ = (char)*data; *ptr = '\0'; if (data < datanext && *data == '=') { data ++; if (data < datanext) memcpy(value, data, (size_t)(datanext - data)); value[datanext - data] = '\0'; fprintf(stderr, "DEBUG2: query_callback: \"%s=%s\".\n", key, value); } else { fprintf(stderr, "DEBUG2: query_callback: \"%s\" with no value.\n", key); continue; } if (!_cups_strncasecmp(key, "usb_", 4)) { /* * Add USB device ID information... */ ptr = device_id + strlen(device_id); snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "%s:%s;", key + 4, value); } if (!_cups_strcasecmp(key, "usb_MFG") || !_cups_strcasecmp(key, "usb_MANU") || !_cups_strcasecmp(key, "usb_MANUFACTURER")) strlcpy(make_and_model, value, sizeof(make_and_model)); else if (!_cups_strcasecmp(key, "usb_MDL") || !_cups_strcasecmp(key, "usb_MODEL")) strlcpy(model, value, sizeof(model)); else if (!_cups_strcasecmp(key, "product") && !strstr(value, "Ghostscript")) { if (value[0] == '(') { /* * Strip parenthesis... */ if ((ptr = value + strlen(value) - 1) > value && *ptr == ')') *ptr = '\0'; strlcpy(model, value + 1, sizeof(model)); } else strlcpy(model, value, sizeof(model)); } else if (!_cups_strcasecmp(key, "ty")) { strlcpy(model, value, sizeof(model)); if ((ptr = strchr(model, ',')) != NULL) *ptr = '\0'; } else if (!_cups_strcasecmp(key, "pdl")) strlcpy(pdl, value, sizeof(pdl)); else if (!_cups_strcasecmp(key, "priority")) device->priority = atoi(value); else if ((device->type == CUPS_DEVICE_IPP || device->type == CUPS_DEVICE_IPPS || device->type == CUPS_DEVICE_PRINTER) && !_cups_strcasecmp(key, "printer-type")) { /* * This is a CUPS printer! */ device->cups_shared = 1; if (device->type == CUPS_DEVICE_PRINTER) device->sent = 1; } else if (!_cups_strcasecmp(key, "UUID")) device->uuid = strdup(value); } if (device->device_id) free(device->device_id); if (!device_id[0] && strcmp(model, "Unknown")) { if (make_and_model[0]) snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;", make_and_model, model); else if (!_cups_strncasecmp(model, "designjet ", 10)) snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s;", model + 10); else if (!_cups_strncasecmp(model, "stylus ", 7)) snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s;", model + 7); else if ((ptr = strchr(model, ' ')) != NULL) { /* * Assume the first word is the make... */ memcpy(make_and_model, model, (size_t)(ptr - model)); make_and_model[ptr - model] = '\0'; snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;", make_and_model, ptr + 1); } } if (device_id[0] && !strstr(device_id, "CMD:") && !strstr(device_id, "COMMAND SET:") && (strstr(pdl, "application/pdf") || strstr(pdl, "application/postscript") || strstr(pdl, "application/vnd.hp-PCL") || strstr(pdl, "image/"))) { value[0] = '\0'; if (strstr(pdl, "application/pdf")) strlcat(value, ",PDF", sizeof(value)); if (strstr(pdl, "application/postscript")) strlcat(value, ",PS", sizeof(value)); if (strstr(pdl, "application/vnd.hp-PCL")) strlcat(value, ",PCL", sizeof(value)); for (ptr = strstr(pdl, "image/"); ptr; ptr = strstr(ptr, "image/")) { char *valptr = value + strlen(value); /* Pointer into value */ if (valptr < (value + sizeof(value) - 1)) *valptr++ = ','; ptr += 6; while (isalnum(*ptr & 255) || *ptr == '-' || *ptr == '.') { if (isalnum(*ptr & 255) && valptr < (value + sizeof(value) - 1)) *valptr++ = (char)toupper(*ptr++ & 255); else break; } *valptr = '\0'; } ptr = device_id + strlen(device_id); snprintf(ptr, sizeof(device_id) - (size_t)(ptr - device_id), "CMD:%s;", value + 1); } if (device_id[0]) device->device_id = strdup(device_id); else device->device_id = NULL; if (device->make_and_model) free(device->make_and_model); if (make_and_model[0]) { strlcat(make_and_model, " ", sizeof(make_and_model)); strlcat(make_and_model, model, sizeof(make_and_model)); if (!_cups_strncasecmp(make_and_model, "EPSON EPSON ", 12)) _cups_strcpy(make_and_model, make_and_model + 6); else if (!_cups_strncasecmp(make_and_model, "HP HP ", 6)) _cups_strcpy(make_and_model, make_and_model + 3); else if (!_cups_strncasecmp(make_and_model, "Lexmark International Lexmark ", 30)) _cups_strcpy(make_and_model, make_and_model + 22); device->make_and_model = strdup(make_and_model); } else device->make_and_model = strdup(model); } #endif /* HAVE_DNSSD */ /* * 'sigterm_handler()' - Handle termination signals. */ static void sigterm_handler(int sig) /* I - Signal number (unused) */ { (void)sig; if (job_canceled) _exit(CUPS_BACKEND_OK); else job_canceled = 1; } /* * 'unquote()' - Unquote a name string. */ static void unquote(char *dst, /* I - Destination buffer */ const char *src, /* I - Source string */ size_t dstsize) /* I - Size of destination buffer */ { char *dstend = dst + dstsize - 1; /* End of destination buffer */ while (*src && dst < dstend) { if (*src == '\\') { src ++; if (isdigit(src[0] & 255) && isdigit(src[1] & 255) && isdigit(src[2] & 255)) { *dst++ = ((((src[0] - '0') * 10) + src[1] - '0') * 10) + src[2] - '0'; src += 3; } else *dst++ = *src++; } else *dst++ = *src ++; } *dst = '\0'; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/backend-private.h����������������������������������������������������������������0000644�0001750�0001750�00000027166�14502571342�017174� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* * Backend support definitions for CUPS. * * Copyright © 2021 by OpenPrinting * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #ifndef _CUPS_BACKEND_PRIVATE_H_ # define _CUPS_BACKEND_PRIVATE_H_ /* * Include necessary headers. */ # include <cups/cups-private.h> # include <cups/snmp-private.h> # include <cups/backend.h> # include <cups/sidechannel.h> # include <signal.h> # ifdef __linux # include <sys/ioctl.h> # include <linux/lp.h> # define IOCNR_GET_DEVICE_ID 1 # define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len) # include <linux/parport.h> # include <linux/ppdev.h> # include <unistd.h> # include <fcntl.h> # endif /* __linux */ # ifdef __sun # ifdef __sparc # include <sys/ecppio.h> # else # include <sys/ioccom.h> # include <sys/ecppsys.h> # endif /* __sparc */ # endif /* __sun */ /* * C++ magic... */ # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ /* * Log messages in backend signal handlers or other places where stdio cannot * be used... */ # define backendMessage(msg) {const char *s = msg; write(2, s, strlen(s));} /* * OID constants... */ /* Host MIB */ #define CUPS_OID_mib2 1,3,6,1,2,1 #define CUPS_OID_system CUPS_OID_mib2,1 #define CUPS_OID_sysLocation CUPS_OID_system,6 #define CUPS_OID_host CUPS_OID_mib2,25 #define CUPS_OID_hrSystem CUPS_OID_host,1 #define CUPS_OID_hrStorage CUPS_OID_host,2 #define CUPS_OID_hrDevice CUPS_OID_host,3 #define CUPS_OID_hrDeviceTable CUPS_OID_hrDevice,2 #define CUPS_OID_hrDeviceEntry CUPS_OID_hrDeviceTable,1 #define CUPS_OID_hrDeviceIndex CUPS_OID_hrDeviceEntry,1 #define CUPS_OID_hrDeviceType CUPS_OID_hrDeviceEntry,2 #define CUPS_OID_hrDeviceDescr CUPS_OID_hrDeviceEntry,3 #define CUPS_OID_hrPrinterTable CUPS_OID_hrDevice,5 #define CUPS_OID_hrPrinterEntry CUPS_OID_hrPrinterTable,1 #define CUPS_OID_hrPrinterStatus CUPS_OID_hrPrinterEntry,1 #define CUPS_OID_hrPrinterDetectedErrorState CUPS_OID_hrPrinterEntry,2 /* Printer MIB */ #define CUPS_OID_printmib CUPS_OID_mib2,43 #define CUPS_OID_prtGeneral CUPS_OID_printmib,5 #define CUPS_OID_prtGeneralTable CUPS_OID_prtGeneral,1 #define CUPS_OID_prtGeneralEntry CUPS_OID_prtGeneralTable,1 #define CUPS_OID_prtGeneralCurrentLocalization CUPS_OID_prtGeneralEntry,2 #define CUPS_OID_prtGeneralPrinterName CUPS_OID_prtGeneralEntry,16 #define CUPS_OID_prtGeneralSerialNumber CUPS_OID_prtGeneralEntry,17 #define CUPS_OID_prtCover CUPS_OID_printmib,6 #define CUPS_OID_prtCoverTable CUPS_OID_prtCover,1 #define CUPS_OID_prtCoverEntry CUPS_OID_prtCoverTable,1 #define CUPS_OID_prtCoverDescription CUPS_OID_prtCoverEntry,2 #define CUPS_OID_prtCoverStatus CUPS_OID_prtCoverEntry,3 #define CUPS_OID_prtLocalization CUPS_OID_printmib,7 #define CUPS_OID_prtLocalizationTable CUPS_OID_prtLocalization,1 #define CUPS_OID_prtLocalizationEntry CUPS_OID_prtLocalizationTable,1 #define CUPS_OID_prtLocalizationCharacterSet CUPS_OID_prtLocalizationEntry,4 #define CUPS_OID_prtMarker CUPS_OID_printmib,10 #define CUPS_OID_prtMarkerTable CUPS_OID_prtMarker,2 #define CUPS_OID_prtMarkerEntry CUPS_OID_prtMarkerTable,1 #define CUPS_OID_prtMarkerLifeCount CUPS_OID_prtMarkerEntry,4 #define CUPS_OID_prtMarkerSupplies CUPS_OID_printmib,11 #define CUPS_OID_prtMarkerSuppliesTable CUPS_OID_prtMarkerSupplies,1 #define CUPS_OID_prtMarkerSuppliesEntry CUPS_OID_prtMarkerSuppliesTable,1 #define CUPS_OID_prtMarkerSuppliesIndex CUPS_OID_prtMarkerSuppliesEntry,1 #define CUPS_OID_prtMarkerSuppliesMarkerIndex CUPS_OID_prtMarkerSuppliesEntry,2 #define CUPS_OID_prtMarkerSuppliesColorantIndex CUPS_OID_prtMarkerSuppliesEntry,3 #define CUPS_OID_prtMarkerSuppliesClass CUPS_OID_prtMarkerSuppliesEntry,4 #define CUPS_OID_prtMarkerSuppliesType CUPS_OID_prtMarkerSuppliesEntry,5 #define CUPS_OID_prtMarkerSuppliesDescription CUPS_OID_prtMarkerSuppliesEntry,6 #define CUPS_OID_prtMarkerSuppliesSupplyUnit CUPS_OID_prtMarkerSuppliesEntry,7 #define CUPS_OID_prtMarkerSuppliesMaxCapacity CUPS_OID_prtMarkerSuppliesEntry,8 #define CUPS_OID_prtMarkerSuppliesLevel CUPS_OID_prtMarkerSuppliesEntry,9 #define CUPS_OID_prtMarkerColorant CUPS_OID_printmib,12 #define CUPS_OID_prtMarkerColorantTable CUPS_OID_prtMarkerColorant,1 #define CUPS_OID_prtMarkerColorantEntry CUPS_OID_prtMarkerColorantTable,1 #define CUPS_OID_prtMarkerColorantIndex CUPS_OID_prtMarkerColorantEntry,1 #define CUPS_OID_prtMarkerColorantMarkerIndex CUPS_OID_prtMarkerColorantEntry,2 #define CUPS_OID_prtMarkerColorantRole CUPS_OID_prtMarkerColorantEntry,3 #define CUPS_OID_prtMarkerColorantValue CUPS_OID_prtMarkerColorantEntry,4 #define CUPS_OID_prtMarkerColorantTonality CUPS_OID_prtMarkerColorantEntry,5 #define CUPS_OID_prtInterpreter CUPS_OID_printmib,15 #define CUPS_OID_prtInterpreterTable CUPS_OID_prtInterpreter,1 #define CUPS_OID_prtInterpreterEntry CUPS_OID_prtInterpreterTable,1 #define CUPS_OID_prtInterpreterLangFamily CUPS_OID_prtInterpreterEntry,2 #define CUPS_OID_prtInterpreterLangLevel CUPS_OID_prtInterpreterEntry,3 /* Printer Port Monitor MIB */ #define CUPS_OID_enterprises 1,3,6,1,4,1 #define CUPS_OID_pwg CUPS_OID_enterprises,2699,1 #define CUPS_OID_ppmMIB CUPS_OID_pwg,2 #define CUPS_OID_ppmMIBObjects CUPS_OID_ppmMIB,1 #define CUPS_OID_ppmGeneral CUPS_OID_ppmMIBObjects,1 #define CUPS_OID_ppmPrinter CUPS_OID_ppmMIBObjects,2 #define CUPS_OID_ppmPrinterTable CUPS_OID_ppmPrinter,1 #define CUPS_OID_ppmPrinterEntry CUPS_OID_ppmPrinterTable,1 #define CUPS_OID_ppmPrinterIndex CUPS_OID_ppmPrinterEntry,1 #define CUPS_OID_ppmPrinterName CUPS_OID_ppmPrinterEntry,2 #define CUPS_OID_ppmPrinterIEEE1284DeviceId CUPS_OID_ppmPrinterEntry,3 #define CUPS_OID_ppmPrinterNumberOfPorts CUPS_OID_ppmPrinterEntry,4 #define CUPS_OID_ppmPrinterPreferredPortIndex CUPS_OID_ppmPrinterEntry,5 #define CUPS_OID_ppmPrinterHrDeviceIndex CUPS_OID_ppmPrinterEntry,6 #define CUPS_OID_ppmPrinterSnmpCommunityName CUPS_OID_ppmPrinterEntry,7 #define CUPS_OID_ppmPrinterSnmpQueryEnabled CUPS_OID_ppmPrinterEntry,8 #define CUPS_OID_ppmPort CUPS_OID_ppmMIBObjects,3 #define CUPS_OID_ppmPortTable CUPS_OID_ppmPort,1 #define CUPS_OID_ppmPortEntry CUPS_OID_ppmPortTable,1 #define CUPS_OID_ppmPortIndex CUPS_OID_ppmPortEntry,1 #define CUPS_OID_ppmPortEnabled CUPS_OID_ppmPortEntry,2 #define CUPS_OID_ppmPortName CUPS_OID_ppmPortEntry,3 #define CUPS_OID_ppmPortServiceNameOrURI CUPS_OID_ppmPortEntry,4 #define CUPS_OID_ppmPortProtocolType CUPS_OID_ppmPortEntry,5 #define CUPS_OID_ppmPortProtocolTargetPort CUPS_OID_ppmPortEntry,6 #define CUPS_OID_ppmPortProtocolAltSourceEnabled CUPS_OID_ppmPortEntry,7 #define CUPS_OID_ppmPortPrtChannelIndex CUPS_OID_ppmPortEntry,8 #define CUPS_OID_ppmPortLprByteCountEnabled CUPS_OID_ppmPortEntry,9 /* * State constants... */ #define CUPS_TC_other 1 #define CUPS_TC_unknown 2 #define CUPS_TC_idle 3 #define CUPS_TC_printing 4 #define CUPS_TC_warmup 5 /* These come from the hrPrinterDetectedErrorState OCTET-STRING */ #define CUPS_TC_lowPaper 0x8000 #define CUPS_TC_noPaper 0x4000 #define CUPS_TC_lowToner 0x2000 #define CUPS_TC_noToner 0x1000 #define CUPS_TC_doorOpen 0x0800 #define CUPS_TC_jammed 0x0400 #define CUPS_TC_offline 0x0200 #define CUPS_TC_serviceRequested 0x0100 #define CUPS_TC_inputTrayMissing 0x0080 #define CUPS_TC_outputTrayMissing 0x0040 #define CUPS_TC_markerSupplyMissing 0x0020 #define CUPS_TC_outputNearFull 0x0010 #define CUPS_TC_outputFull 0x0008 #define CUPS_TC_inputTrayEmpty 0x0004 #define CUPS_TC_overduePreventMaint 0x0002 #define CUPS_TC_prtCoverStatus_coverOpen 3 #define CUPS_TC_prtCoverStatus_coverClosed 4 #define CUPS_TC_prtCoverStatus_interlockOpen 5 #define CUPS_TC_prtCoverStatus_interlockClosed 6 #define CUPS_TC_langPCL 3 #define CUPS_TC_langHPGL 4 #define CUPS_TC_langPJL 5 #define CUPS_TC_langPS 6 #define CUPS_TC_langEscapeP 9 #define CUPS_TC_langCCITT 26 #define CUPS_TC_langLIPS 39 #define CUPS_TC_langTIFF 40 #define CUPS_TC_langPCLXL 47 #define CUPS_TC_langPDF 54 #define CUPS_TC_langJPEG 61 #define CUPS_TC_supplyThatIsConsumed 3 #define CUPS_TC_receptacleThatIsFilled 4 #define CUPS_TC_process 3 #define CUPS_TC_spot 4 #define CUPS_TC_toner 3 #define CUPS_TC_wasteToner 4 #define CUPS_TC_ink 5 #define CUPS_TC_inkCartridge 6 #define CUPS_TC_inkRibbon 7 #define CUPS_TC_wasteInk 8 #define CUPS_TC_opc 9 #define CUPS_TC_developer 10 #define CUPS_TC_fuserOil 11 #define CUPS_TC_solidWax 12 #define CUPS_TC_ribbonWax 13 #define CUPS_TC_wasteWax 14 #define CUPS_TC_fuser 15 #define CUPS_TC_coronaWire 16 #define CUPS_TC_fuserOilWick 17 #define CUPS_TC_cleanerUnit 18 #define CUPS_TC_fuserCleaningPad 19 #define CUPS_TC_transferUnit 20 #define CUPS_TC_tonerCartridge 21 #define CUPS_TC_fuserOiler 22 #define CUPS_TC_water 23 #define CUPS_TC_wasteWater 24 #define CUPS_TC_glueWaterAdditive 25 #define CUPS_TC_wastePaper 26 #define CUPS_TC_bindingSupply 27 #define CUPS_TC_bandingSupply 28 #define CUPS_TC_stitchingWire 29 #define CUPS_TC_shrinkWrap 30 #define CUPS_TC_paperWrap 31 #define CUPS_TC_staples 32 #define CUPS_TC_inserts 33 #define CUPS_TC_covers 34 #define CUPS_TC_tenThousandthsOfInches 3 #define CUPS_TC_micrometers 4 #define CUPS_TC_impressions 7 #define CUPS_TC_sheets 8 #define CUPS_TC_hours 11 #define CUPS_TC_thousandthsOfOunces 12 #define CUPS_TC_tenthsOfGrams 13 #define CUPS_TC_hundredthsOfFluidOunces 14 #define CUPS_TC_tenthsOfMilliliters 15 #define CUPS_TC_feet 16 #define CUPS_TC_meters 17 #define CUPS_TC_items 18 #define CUPS_TC_percent 19 /* These come from RFC 3808 to define character sets we support */ /* Also see http://www.iana.org/assignments/character-sets */ #define CUPS_TC_csASCII 3 #define CUPS_TC_csISOLatin1 4 #define CUPS_TC_csShiftJIS 17 #define CUPS_TC_csUTF8 106 #define CUPS_TC_csUnicode 1000 /* UCS2 BE */ #define CUPS_TC_csUCS4 1001 /* UCS4 BE */ #define CUPS_TC_csUnicodeASCII 1002 #define CUPS_TC_csUnicodeLatin1 1003 #define CUPS_TC_csUTF16BE 1013 #define CUPS_TC_csUTF16LE 1014 #define CUPS_TC_csUTF32 1017 #define CUPS_TC_csUTF32BE 1018 #define CUPS_TC_csUTF32LE 1019 #define CUPS_TC_csWindows31J 2024 /* * Types... */ typedef int (*_cups_sccb_t)(int print_fd, int device_fd, int snmp_fd, http_addr_t *addr, int use_bc); /* * Prototypes... */ extern void backendCheckSideChannel(int snmp_fd, http_addr_t *addr); extern int backendDrainOutput(int print_fd, int device_fd); extern int backendGetDeviceID(int fd, char *device_id, int device_id_size, char *make_model, int make_model_size, const char *scheme, char *uri, int uri_size); extern int backendGetMakeModel(const char *device_id, char *make_model, size_t make_model_size); extern http_addrlist_t *backendLookup(const char *hostname, int port, int *cancel); extern int backendNetworkSideCB(int print_fd, int device_fd, int snmp_fd, http_addr_t *addr, int use_bc); extern ssize_t backendRunLoop(int print_fd, int device_fd, int snmp_fd, http_addr_t *addr, int use_bc, int update_state, _cups_sccb_t side_cb); extern int backendSNMPSupplies(int snmp_fd, http_addr_t *addr, int *page_count, int *printer_state); extern int backendWaitLoop(int snmp_fd, http_addr_t *addr, int use_bc, _cups_sccb_t side_cb); # ifdef __cplusplus } # endif /* __cplusplus */ #endif /* !_CUPS_BACKEND_PRIVATE_H_ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/Makefile�������������������������������������������������������������������������0000644�0001750�0001750�00000013070�14502571342�015411� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # Backend makefile for CUPS. # # Copyright © 2021-2023 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include ../Makedefs # # Object files... # # RBACKENDS are installed mode 0744 so cupsd will run them as root... # # UBACKENDS are installed mode 0755 so cupsd will run them as an unprivileged # user... # # See <http://openprinting.github.io/cups/doc/api-filter.html> for more info... RBACKENDS = \ ipp \ lpd \ usb \ $(DNSSD_BACKEND) UBACKENDS = \ snmp \ socket UNITTESTS = \ test1284 \ testbackend \ testsupplies TARGETS = \ libbackend.a \ $(RBACKENDS) \ $(UBACKENDS) LIBOBJS = \ ieee1284.o \ network.o \ runloop.o \ snmp-supplies.o OBJS = \ ipp.o \ lpd.o \ dnssd.o \ snmp.o \ socket.o \ test1284.o \ testbackend.o \ testsupplies.o \ usb.o # # Make all targets... # all: $(TARGETS) # # Make library targets... # libs: # # Make unit tests... # unittests: $(UNITTESTS) # # Clean all object files... # clean: $(RM) $(OBJS) $(TARGETS) $(UNITTESTS) $(LIBOBJS) http https ipps mdns socket-static # # Update dependencies (without system header dependencies...) # depend: $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies # # Install all targets... # install: all install-data install-headers install-libs install-exec # # Install data files... # install-data: if test "x$(USBQUIRKS)" != x; then \ echo Installing USB quirks in $(USBQUIRKS); \ $(INSTALL_DIR) -m 755 $(USBQUIRKS); \ $(INSTALL_DATA) org.cups.usb-quirks $(USBQUIRKS); \ fi # # Install programs... # install-exec: $(INSTALLXPC) echo Installing backends in $(SERVERBIN)/backend $(INSTALL_DIR) -m 755 $(SERVERBIN)/backend for file in $(RBACKENDS); do \ $(INSTALL_BIN) -m 744 $$file $(SERVERBIN)/backend; \ done for file in $(UBACKENDS); do \ $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \ done for file in $(IPPALIASES); do \ $(RM) $(SERVERBIN)/backend/$$file; \ $(LN) ipp $(SERVERBIN)/backend/$$file; \ done if test "x$(DNSSD_BACKEND)" != x -a `uname` = Darwin; then \ $(RM) $(SERVERBIN)/backend/mdns; \ $(LN) $(DNSSD_BACKEND) $(SERVERBIN)/backend/mdns; \ fi if test "x$(SYMROOT)" != "x"; then \ $(INSTALL_DIR) $(SYMROOT); \ for file in $(RBACKENDS) $(UBACKENDS); do \ cp $$file $(SYMROOT); \ dsymutil $(SYMROOT)/$$file; \ done \ fi install-xpc: ipp echo Installing XPC backends in $(SERVERBIN)/apple $(INSTALL_DIR) -m 755 $(SERVERBIN)/apple $(INSTALL_BIN) ipp $(SERVERBIN)/apple for file in $(IPPALIASES); do \ $(RM) $(SERVERBIN)/apple/$$file; \ $(LN) ipp $(SERVERBIN)/apple/$$file; \ done # # Install headers... # install-headers: # # Install libraries... # install-libs: # # Uninstall all targets... # uninstall: $(RM) $(SERVERBIN)/apple/ipp for file in $(IPPALIASES); do \ $(RM) $(SERVERBIN)/apple/$$file; \ done -$(RMDIR) $(SERVERBIN)/apple for file in $(RBACKENDS) $(UBACKENDS); do \ $(RM) $(SERVERBIN)/backend/$$file; \ done for file in $(IPPALIASES); do \ $(RM) $(SERVERBIN)/backend/$$file; \ done -$(RMDIR) $(SERVERBIN)/backend -$(RMDIR) $(SERVERBIN) # # test1284 # test1284: test1284.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o test1284 test1284.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testbackend # testbackend: testbackend.o ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testbackend testbackend.o $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # testsupplies # testsupplies: testsupplies.o libbackend.a ../cups/$(LIBCUPSSTATIC) echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o testsupplies testsupplies.o libbackend.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # libbackend.a # libbackend.a: $(LIBOBJS) echo Archiving $@... $(RM) $@ $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ # # dnssd # dnssd: dnssd.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o dnssd dnssd.o libbackend.a $(DNSSDLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ if test `uname` = Darwin; then \ $(RM) mdns; \ $(LN) dnssd mdns; \ fi # # ipp # ipp: ipp.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o ipp ipp.o libbackend.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ $(RM) http https ipps for file in $(IPPALIASES); do \ $(LN) ipp $$file; \ done # # lpd # lpd: lpd.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o lpd lpd.o libbackend.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # snmp # snmp: snmp.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o snmp snmp.o libbackend.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # socket # socket: socket.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o socket socket.o libbackend.a $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ socket-static: socket.o ../cups/$(LIBCUPSSTATIC) libbackend.a echo Linking $@... $(LD_CC) $(ALL_LDFLAGS) -o socket-static socket.o libbackend.a \ $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ # # usb # usb: usb.o ../cups/$(LIBCUPS) libbackend.a echo Linking $@... $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o usb usb.o libbackend.a $(LIBUSB) \ $(BACKLIBS) $(COMMONLIBS) $(LINKCUPS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ usb.o: usb.c usb-darwin.c usb-libusb.c usb-unix.c # # Dependencies... # include Dependencies ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/backend/Dependencies���������������������������������������������������������������������0000644�0001750�0001750�00000010323�14502571342�016260� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ipp.o: ipp.c backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h ../cups/ppd-private.h ../cups/ppd.h \ ../cups/raster.h lpd.o: lpd.c ../cups/http-private.h ../config.h ../cups/language.h \ ../cups/array.h ../cups/versioning.h ../cups/http.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/pwg.h backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../cups/array-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h dnssd.o: dnssd.c backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h snmp.o: snmp.c backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h socket.o: socket.c ../cups/http-private.h ../config.h ../cups/language.h \ ../cups/array.h ../cups/versioning.h ../cups/http.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/pwg.h backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../cups/array-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h test1284.o: test1284.c ../cups/string-private.h ../config.h \ ../cups/versioning.h ieee1284.c backend-private.h \ ../cups/cups-private.h ../cups/array-private.h ../cups/array.h \ ../cups/ipp-private.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h ../cups/ppd-private.h ../cups/ppd.h \ ../cups/raster.h testbackend.o: testbackend.c ../cups/string-private.h ../config.h \ ../cups/versioning.h ../cups/cups.h ../cups/file.h ../cups/ipp.h \ ../cups/http.h ../cups/array.h ../cups/language.h ../cups/pwg.h \ ../cups/sidechannel.h testsupplies.o: testsupplies.c backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h usb.o: usb.c backend-private.h ../cups/cups-private.h \ ../cups/string-private.h ../config.h ../cups/versioning.h \ ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/snmp-private.h ../cups/backend.h \ ../cups/sidechannel.h usb-darwin.c ../cups/debug-private.h \ ../cups/file-private.h ../cups/ppd-private.h ../cups/ppd.h \ ../cups/raster.h �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/SECURITY.md������������������������������������������������������������������������������0000644�0001750�0001750�00000004306�14502571342�014155� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Security Policy =============== This file describes how security issues are reported and handled, and what the expectations are for security issues reported to this project. Responsible Disclosure ---------------------- With *responsible disclosure*, a security issue (and its fix) is disclosed only after a mutually-agreed period of time (the "embargo date"). The issue and fix are shared amongst and reviewed by the key stakeholders (Linux distributions, OS vendors, etc.) and the CERT/CC. Fixes are released to the public on the agreed-upon date. > Responsible disclosure applies only to production releases. A security > vulnerability that only affects unreleased code can be fixed immediately > without coordination. Vendors *should not* package and release unstable > snapshots, beta releases, or release candidates of this software. Supported Versions ------------------ All production releases of this software are subject to this security policy. A production release is tagged and given a semantic version number of the form: MAJOR.MINOR.PATCH where "MAJOR" is an integer starting at 1 and "MINOR" and "PATCH" are integers starting at 0. A feature release has a "PATCH" value of 0, for example: 1.0.0 1.1.0 2.0.0 Beta releases and release candidates are *not* prodution releases and use semantic version numbers of the form: MAJOR.MINORbNUMBER MAJOR.MINORrcNUMBER where "MAJOR" and "MINOR" identify the new feature release version number and "NUMBER" identifies a beta or release candidate number starting at 1, for example: 1.0b1 1.0b2 1.0rc1 Reporting a Vulnerability ------------------------- Github supports private security advisories and OpenPrinting CUPS enabled their usage, report all security issue via them. Reporters can file a security advisory by clicking on `New issue` at tab `Issues` and choose `Report a vulnerability`. Provide details, impact, reproducer, affected versions, workarounds and patch for the vulnerability if there are any and estimate severity when creating the advisory. Expect a response within 5 business days. Once OpenPrinting group agree on the patch and announce it on `distros@vs.openwall.org`, there is embargo period 7-10 days long. ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/REPORTING_ISSUES.md����������������������������������������������������������������������0000644�0001750�0001750�00000020227�14502571342�015352� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# REPORTING ISSUES FOR CUPS PROJECT > Disclaimer: We provide only best effort support for CUPS releases older than the latest release. This means we try to reproduce the issue on the latest release if it is possible, and if we can't reproduce, we can give a hint what can be the problem and ask you to contact your distribution support. > All commands are written from point of view of user which has superuser rights (f.e. he is in `wheel` on Linux system) or he is in a group defined in SystemGroup directive in `/etc/cups/cups-files.conf`. Other users will have to use `sudo` with certain commands. The steps you are asked to do differ based on how your printer is connected (USB/network) and whether you use driverless printing or not. Since the connection is obvious for the user, the paragraph below will tell you how to find out whether driverless printing is used. ## HOW TO FIND OUT THAT I USE DRIVERLESS PRINTING For network printers: * your printer is seen by `lpstat -e`, but not by `lpstat -a` - this means you print via temporary queue, which works only via driverless means, or * your printer is seen by `lpstat -a`, its PPD file at `/etc/cups/ppd` has `IPP Everywhere` or `driverless` in its `Nickname` entry and its connection is `ipp` or `ipps` when you check the connection uri (f.e. by `lpstat -v <printer_name>`) If any of them apply, your device works in driverless mode. For USB printers: * your printer is listed if you enter: ``` $ sudo ipp-usb check ``` in case the printer is not listed or the command is not found, your device doesn't work in driverless mode. ## HOW TO REPORT THE ISSUE TO CUPS PROJECT Please do the steps below and provide the mentioned information (**use attachments for blocks of text longer than 10 lines** - put the text into a file, rename it to have .txt suffix and click on `pasting them` string under comment box in the issue) in your initial comment if you file an issue: 1. tell us what is **your OS** 2. tell us your **CUPS version** 3. in case you compile CUPS by yourself, tell us **all configuration options** you pass into `./configure` 4. **describe** the problem 5. mention your **printer model** 6. try to **narrow the issue if possible**: 1. check how the printing works via CUPS CLI tools, f.e.: See whether the printer is available (f.e. in case the printer is not shown in application) - shows both temporary and permanent queues: ``` $ lpstat -e HP_LaserJet_M1536dnf_MFP_42307C ``` See whether there are installed printers which accept jobs: ``` $ lpstat -a ``` See its available options (in case an application doesn't show some options): ``` $ lpoptions -p HP_LaserJet_M1536dnf_MFP_42307C -l PageSize/Media Size: 184x260mm 195x270mm *A4 A5 B5 DoublePostcardRotated Env10 EnvC5 EnvDL EnvMonarch Executive FanFoldGermanLegal ISOB5 Legal Letter Postcard roc16k MediaType/Media Type: *Stationery StationeryLightweight Midweight StationeryHeavyweight ExtraHeavy ColorTransparency Labels StationeryLetterhead Envelope StationeryPreprinted StationeryPrepunched Color Bond Recycled Rough Vellum cupsPrintQuality/cupsPrintQuality: Draft *Normal ColorModel/Output Mode: *Gray Duplex/Duplex: *None DuplexNoTumble DuplexTumble OutputBin/OutputBin: *FaceDown ``` Print a file to a printer with specific options (in case the printout from application is incorrect - print the same file and set the same options as you did in application, in case they are seen in `lpoptions`), f.e. to check duplex printing on a document you want to print (put the path to the document instead of <document>): ``` $ lp -d HP_LaserJet_M1536dnf_MFP_42307C -o Duplex=DuplexNoTumble <document> ``` For more info check `man lp`, `man lpstat`, `man lpoptions`. 2. check if the issue happens with different documents 3. check if the issue happens when using different applications 4. in case you use mDNS hostnames (hostnames with `.local`), check mDNS resolution by pinging such hostname - mDNS is used for temporary queues (printers which are seen by `lpstat -e`, but not by `lpstat -a`) or for permanent queues which have `.local` in its URI (check `lpstat -a`). However the hostname from URI is not resolvable as it is, you need to get usual printer's mDNS hostname from `hostname` entry in `avahi-browse -avrt` output. Rule of thumb: 1. in case printing works from CUPS CLI tools or CUPS Web UI, but not via an application, file the issue to the application for the initial investigation. 2. in case mDNS resolution doesn't work and you use driverless printing or mDNS hostnames in CUPS, file the issue to your mDNS resolution provider - it can be `nss-mdns` or `systemd-resolved` depending on your configuration. 7. turn on **CUPS debug logging**: ``` $ cupsctl LogLevel=debug2 ``` 8. **reproduce the issue** 9. **collect the logs** - the logs can be in `/var/log/cups/error_log` or in `journalctl`: For `error_log`: ``` $ sudo cp /var/log/cups/error_log ~/error_log.txt $ sudo chmod 666 ~/error_log.txt ``` For `journalctl`: ``` $ journalctl -u cups --since=today > log.txt ``` and attach the file to the GitHub issue. 10. provide output of **lpstat -e**, **lpstat -t** and **lpinfo -v** 11. provide **PPD file** from `/etc/cups/ppd` if exists for the printer 12. provide **the file you are trying to print**, if the issue happens with a specific file 13. provide **the d file from /var/spool/cups** - this is the file CUPS actually gets from the application 14. tell us the name of application where you experience the problem 15. if needed, turn off the debug logging by: ``` $ cupsctl LogLevel=warn ``` ### INFORMATION REQUESTED FOR USB DEVICES * attach **output of `lsusb -v`** in a file as attachment * in case of **communication issues with USB device**, it is helpful to **capture USB communication** - you have to know bus number where your device is connected to with `tcpdump`: ``` $ lsusb Bus 002 Device 010: ID 03f0:012a HP, Inc HP LaserJet M1536dnf MFP = $ sudo tcpdump -s0 -w usb.pcap -i usbmon2 ``` compress the `usb.pcap` with `zip` and attach it to the issue if the problem is with USB printer. #### INFORMATION REQUESTED FOR DRIVERLESS USB PRINTERS * **provide the file attr.log** from `ipptool` command if the command passes: ``` $ ipptool --ippserver attr.log -v ipp://localhost:60000/ipp/print get-printer-attributes.test ``` * compress **/var/log/ipp-usb** directory into `.zip` file and attach it to the issue ### INFORMATION REQUESTED FOR NETWORK DEVICES * **provide network.pcap.zip** which is network packet capture - **catch the network traffic** f.e. with tcpdump: ``` $ sudo tcpdump -s0 -w network.pcap -i any host <server_or_printer_IP> ``` compress the `network.pcap` with `zip` and attach it to the issue. The communication can be encrypted - the person who investigates the issue can contact you off-issue for further data, because session keys will be needed as it is explained at [Wireshark wiki](https://wiki.wireshark.org/TLS) and a change in CUPS configuration (Wireshark is not able to decode IPPS directly, so the printer's connection has to be via HTTPS, which Wireshark can decrypt correctly). #### INFORMATION REQUESTED FOR DRIVERLESS NETWORK PRINTERS * **provide the file attr.log** from `ipptool` command, if the command passes: For network driverless printer: ``` $ ipptool --ippserver attr.log -v ipp://<printer_IP>/ipp/print get-printer-attributes.test ``` For driverless printer pointing to a printer at CUPS server: ``` $ ipptool --ippserver attr.log -v ipp://<server_IP>/printers/<remote_printer_name> get-printer-attributes.test ``` For driverless printer installed in a printer application based on PAPPL: ``` $ ipptool --ippserver attr.log -v ipp://localhost:8000/ipp/print/<printer_name> get-printer-attributes.test ``` ## THANKS This document uses knowledge from documentation and tips written by Till Kamppeter, Brian Potkin, Mike R. Sweet, Johannes Meixner, Tim Waugh, Jiri Popelka and Zdenek Dohnal. Thank you for all your work! �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/README.md��������������������������������������������������������������������������������0000644�0001750�0001750�00000015676�14502571342�013657� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������OpenPrinting CUPS v2.4.7 ======================== ![Version](https://img.shields.io/github/v/release/openprinting/cups?include_prereleases) ![Apache 2.0](https://img.shields.io/github/license/openprinting/cups) [![Build and Test](https://github.com/OpenPrinting/cups/workflows/Build%20and%20Test/badge.svg)](https://github.com/OpenPrinting/cups/actions/workflows/build.yml) [![Coverity Scan](https://img.shields.io/coverity/scan/23806)](https://scan.coverity.com/projects/openprinting-cups) Introduction ------------ OpenPrinting CUPS is the most current version of CUPS, a standards-based, open source printing system for Linux® and other Unix®-like operating systems. CUPS supports printing to: - [AirPrint™][1] and [IPP Everywhere™][2] printers, - Network and local (USB) printers with Printer Applications, and - Network and local (USB) printers with (legacy) PPD-based printer drivers. CUPS provides the System V ("lp") and Berkeley ("lpr") command-line interfaces, a configurable web interface, a C API, and common print filters, drivers, and backends for printing. The [cups-filters][3] project provides additional filters and drivers. CUPS is licensed under the Apache License Version 2.0 with an exception to allow linking against GNU GPL2-only software. See the files `LICENSE` and `NOTICE` for more information. > Note: Apple maintains a separate repository for the CUPS that ships with macOS > and iOS at <https://github.com/apple/cups>. [1]: https://support.apple.com/en-us/HT201311 [2]: https://www.pwg.org/ipp/everywhere.html [3]: https://github.com/openprinting/cups-filters Reading the Documentation ------------------------- Initial documentation to get you started is provided in the root directory of the CUPS sources: - `CHANGES.md`: A list of changes in the current major release of CUPS. - `CONTRIBUTING.md`: Guidelines for contributing to the CUPS project. - `CREDITS.md`: A list of past contributors to the CUPS project. - `DEVELOPING.md`: Guidelines for developing code for the CUPS project. - `INSTALL.md`: Instructions for building and installing CUPS. - `LICENSE`: The CUPS license agreement (Apache 2.0). - `NOTICE`: Copyright notices and exceptions to the CUPS license agreement. - `README.md`: This file. - `REPORTING_ISSUES.md`: Instructions what information to provide when reporting an issue. Once you have installed the software you can access the documentation (and a bunch of other stuff) online at <http://localhost:631/> and using the `man` command, for example `man cups`. If you're having trouble getting that far, the documentation is located under the `doc/help` and `man` directories. *Please read the documentation before asking questions.* Setting Up Printers ------------------- CUPS includes a web-based administration tool that allows you to manage printers, classes, and jobs on your server. Open <http://localhost:631/admin/> in your browser to access the printer administration tools. You will be asked for the administration password (root or any other user in the "sys", "system", "root", "admin", or "lpadmin" group on your system) when performing any administrative function. The `lpadmin` command is used to manage printers from the command-line. For example, the following command creates a print queue called "myprinter" for an IPP Everywhere printer at address "11.22.33.44": lpadmin -p myprinter -E -v "ipp://11.22.33.44/ipp/print" -m everywhere The `-p` option specifies the printer name. The `-E` option enables the printer and accepts new print jobs immediately. The `-v` option specifies the *device URI* for the printer, which tells CUPS how to communicate with the printer. And the `-m` option specifies the model (driver) to use, in this case the IPP Everywhere ("everywhere") driver that is used for AirPrint and IPP Everywhere printers as well as shared printers and printers supported through Printer Applications. Legacy printers are supported using PPD (PostScript Printer Description) files that describe printer capabilities and driver programs needed for each printer. CUPS includes several sample PPD files for common legacy printers: Driver | PPD Name -----------------------------|------------------------------ Dymo Label Printers | drv:///sample.drv/dymo.ppd Intellitech Intellibar | drv:///sample.drv/intelbar.ppd EPSON 9-pin Series | drv:///sample.drv/epson9.ppd EPSON 24-pin Series | drv:///sample.drv/epson24.ppd Generic PCL Laser Printer | drv:///sample.drv/generpcl.ppd Generic PostScript Printer | drv:///sample.drv/generic.ppd HP DeskJet Series | drv:///sample.drv/deskjet.ppd HP LaserJet Series | drv:///sample.drv/laserjet.ppd OKIDATA 9-Pin Series | drv:///sample.drv/okidata9.ppd OKIDATA 24-Pin Series | drv:///sample.drv/okidat24.ppd Zebra CPCL Label Printer | drv:///sample.drv/zebracpl.ppd Zebra EPL1 Label Printer | drv:///sample.drv/zebraep1.ppd Zebra EPL2 Label Printer | drv:///sample.drv/zebraep2.ppd Zebra ZPL Label Printer | drv:///sample.drv/zebra.ppd The sample drivers provide basic printing capabilities, but generally do not exercise the full potential of the printers or CUPS. Other drivers provide greater printing capabilities. You can run the `lpinfo -m` command to list all of the available drivers: lpinfo -m Similarly, the `lpinfo -v` command lists the available printers and their device URIs: lpinfo -v Once you know the device URI and driver name, add the printer using the `lpadmin` command: lpadmin -p PRINTER-NAME -E -v "DEVICE-URI" -m DRIVER-NAME Printing Files -------------- CUPS provides both the System V `lp` and Berkeley `lpr` commands for printing: lp FILENAME lpr FILENAME Both the `lp` and `lpr` commands support printing options: lp -o media=A4 -o resolution=600dpi FILENAME lpr -o media=A4 -o resolution=600dpi FILENAME CUPS recognizes many types of images files as well as PDF, PostScript, and text files, so you can print those files directly rather than through an application. If you have an application that generates output specifically for your printer then you need to use the `-oraw` or `-l` options: lp -o raw FILENAME lpr -l FILENAME This will prevent the filters from misinterpreting your print file. Legal Stuff ----------- Copyright © 2020-2023 by OpenPrinting Copyright © 2007-2020 by Apple Inc. Copyright © 1997-2007 by Easy Software Products. CUPS is provided under the terms of the Apache License, Version 2.0 with exceptions for GPL2/LGPL2 software. A copy of this license can be found in the file `LICENSE`. Additional legal information is provided in the file `NOTICE`. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ������������������������������������������������������������������cups-2.4.7/NOTICE�����������������������������������������������������������������������������������0000644�0001750�0001750�00000004507�14502571342�013273� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������CUPS Copyright © 2020-2023 by OpenPrinting Copyright © 2007-2019 by Apple Inc. Copyright © 1997-2007 by Easy Software Products. CUPS and the CUPS logo are trademarks of Apple Inc. The MD5 Digest code is Copyright 1999 Aladdin Enterprises. The Kerberos support code ("KSC") is copyright 2006 by Jelmer Vernooij and is provided 'as-is', without any express or implied warranty. In no event will the author or Apple Inc. be held liable for any damages arising from the use of the KSC. Sources files containing KSC have the following text at the top of each source file: This file contains Kerberos support code, copyright 2006 by Jelmer Vernooij. The KSC copyright and license apply only to Kerberos-related feature code in CUPS. Such code is typically conditionally compiled based on the present of the HAVE_GSSAPI preprocessor definition. Permission is granted to anyone to use the KSC for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of the KSC must not be misrepresented; you must not claim that you wrote the original software. If you use the KSC in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. -- CUPS Exceptions to the Apache 2.0 License -- As an exception, if, as a result of your compiling your source code, portions of this Software are embedded into an Object form of such source code, you may redistribute such embedded portions in such Object form without complying with the conditions of Sections 4(a), 4(b) and 4(d) of the License. In addition, if you combine or link compiled forms of this Software with software that is licensed under the GPLv2 ("Combined Software") and if a court of competent jurisdiction determines that the patent provision (Section 3), the indemnity provision (Section 9) or other Section of the License conflicts with the conditions of the GPLv2, you may retroactively and prospectively choose to deem waived or otherwise exclude such Section(s) of the License, but only in their entirety and only with respect to the Combined Software. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/Makefile���������������������������������������������������������������������������������0000644�0001750�0001750�00000013617�14502571342�014031� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # Top-level Makefile for CUPS. # # Copyright © 2020-2023 by OpenPrinting # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # include Makedefs # # Directories to make... # DIRS = cups $(BUILDDIRS) # # Test suite options - normally blank, override with make command... # TESTOPTIONS = # # Make all targets... # all: chmod +x cups-config echo Using ARCHFLAGS="$(ARCHFLAGS)" echo Using ALL_CFLAGS="$(ALL_CFLAGS)" echo Using ALL_CXXFLAGS="$(ALL_CXXFLAGS)" echo Using CC="$(CC)" echo Using CXX="$(CC)" echo Using DSOFLAGS="$(DSOFLAGS)" echo Using LDFLAGS="$(LDFLAGS)" echo Using LIBS="$(LIBS)" for dir in $(DIRS); do\ echo Making all in $$dir... ;\ (cd $$dir ; $(MAKE) $(MFLAGS) all $(UNITTESTS)) || exit 1;\ done # # Make library targets... # libs: echo Using ARCHFLAGS="$(ARCHFLAGS)" echo Using ALL_CFLAGS="$(ALL_CFLAGS)" echo Using ALL_CXXFLAGS="$(ALL_CXXFLAGS)" echo Using CC="$(CC)" echo Using CXX="$(CC)" echo Using DSOFLAGS="$(DSOFLAGS)" echo Using LDFLAGS="$(LDFLAGS)" echo Using LIBS="$(LIBS)" for dir in $(DIRS); do\ echo Making libraries in $$dir... ;\ (cd $$dir ; $(MAKE) $(MFLAGS) libs) || exit 1;\ done # # Make unit test targets... # unittests: echo Using ARCHFLAGS="$(ARCHFLAGS)" echo Using ALL_CFLAGS="$(ALL_CFLAGS)" echo Using ALL_CXXFLAGS="$(ALL_CXXFLAGS)" echo Using CC="$(CC)" echo Using CXX="$(CC)" echo Using DSOFLAGS="$(DSOFLAGS)" echo Using LDFLAGS="$(LDFLAGS)" echo Using LIBS="$(LIBS)" for dir in $(DIRS); do\ echo Making all in $$dir... ;\ (cd $$dir ; $(MAKE) $(MFLAGS) unittests) || exit 1;\ done # # Remove object and target files... # clean: for dir in $(DIRS); do\ echo Cleaning in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\ done # # Remove all non-distribution files... # distclean: clean $(RM) Makedefs config.h config.log config.status $(RM) conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf $(RM) cups-config $(RM) cups.pc $(RM) desktop/cups.desktop $(RM) doc/index.html $(RM) packaging/cups.list $(RM) scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket $(RM) templates/header.tmpl -$(RM) doc/*/index.html -$(RM) templates/*/header.tmpl -$(RM) -r autom4te*.cache cups/charmaps cups/locale # # Make dependencies # depend: for dir in $(DIRS); do\ echo Making dependencies in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\ done # # Run the STACK tool on the sources, available here: # # http://css.csail.mit.edu/stack/ # # Do the following to pass options to configure: # # make CONFIGFLAGS="--foo --bar" stack # .PHONY: stack stack: stack-build ./configure $(CONFIGFLAGS) stack-build $(MAKE) $(MFLAGS) clean all poptck $(MAKE) $(MFLAGS) distclean $(RM) */*.ll $(RM) */*.ll.out # # Generate a ctags file... # ctags: ctags -R . # # Install everything... # install: install-data install-headers install-libs install-exec # # Install data files... # install-data: echo Making all in cups... (cd cups; $(MAKE) $(MFLAGS) all) for dir in $(DIRS); do\ echo Installing data files in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install-data) || exit 1;\ done echo Installing cups-config script... $(INSTALL_DIR) -m 755 $(BINDIR) $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config echo Installing cups.pc file... $(INSTALL_DIR) -m 755 $(CUPS_PKGCONFPATH) $(INSTALL_DATA) cups.pc $(CUPS_PKGCONFPATH)/cups.pc # # Install header files... # install-headers: for dir in $(DIRS); do\ echo Installing header files in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install-headers) || exit 1;\ done if test "x$(privateinclude)" != x; then \ echo Installing config.h into $(PRIVATEINCLUDE)...; \ $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \ $(INSTALL_DATA) config.h $(PRIVATEINCLUDE)/config.h; \ fi # # Install programs... # install-exec: all for dir in $(DIRS); do\ echo Installing programs in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install-exec) || exit 1;\ done # # Install libraries... # install-libs: libs for dir in $(DIRS); do\ echo Installing libraries in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install-libs) || exit 1;\ done # # Uninstall object and target files... # uninstall: for dir in $(DIRS); do\ echo Uninstalling in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\ done echo Uninstalling cups-config script... $(RM) $(BINDIR)/cups-config -$(RMDIR) $(BINDIR) echo Uninstalling cups.pc file... $(RM) $(CUPS_PKGCONFPATH)/cups.pc -$(RMDIR) $(CUPS_PKGCONFPATH) # # Run the test suite... # testserver: all unittests echo Running CUPS test server... cd test; ./run-stp-tests.sh $(TESTOPTIONS) check test: all unittests echo Running CUPS test suite... cd test; ./run-stp-tests.sh 1 0 n n debugcheck debugtest: all unittests echo Running CUPS test suite with debug printfs... cd test; ./run-stp-tests.sh 1 0 n y # # Create HTML documentation using codedoc (http://www.msweet.org/codedoc)... # apihelp: for dir in cups filter; do\ echo Generating API help in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) apihelp) || exit 1;\ done # # Lines of code computation... # sloc: for dir in cups scheduler; do \ (cd $$dir; $(MAKE) $(MFLAGS) sloc) || exit 1;\ done # # Make software distributions using EPM (http://www.msweet.org/)... # EPMFLAGS = -v --output-dir dist $(EPMARCH) bsd deb epm pkg rpm slackware: epm $(EPMFLAGS) -f $@ cups packaging/cups.list .PHONY: dist dist: all $(RM) -r dist $(MAKE) $(MFLAGS) epm case `uname` in \ *BSD*) $(MAKE) $(MFLAGS) bsd;; \ Linux*) test ! -x /usr/bin/rpm || $(MAKE) $(MFLAGS) rpm;; \ SunOS*) $(MAKE) $(MFLAGS) pkg;; \ esac # # Don't run top-level build targets in parallel... # .NOTPARALLEL: �����������������������������������������������������������������������������������������������������������������cups-2.4.7/Makedefs.in������������������������������������������������������������������������������0000644�0001750�0001750�00000014064�14502571342�014435� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # Common makefile definitions for CUPS. # # Copyright © 2021 by OpenPrinting. # Copyright © 2007-2019 by Apple Inc. # Copyright © 1997-2007 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # # # CUPS version... # CUPS_VERSION = @CUPS_VERSION@ # # Programs... # AR = @AR@ AWK = @AWK@ CC = @LIBTOOL_CC@ @CC@ CHMOD = @CHMOD@ CXX = @LIBTOOL_CXX@ @CXX@ DSO = @DSO@ DSOXX = @DSOXX@ GZIPPROG = @GZIPPROG@ INSTALL = @INSTALL@ LD = @LD@ LD_CC = @LD_CC@ LD_CXX = @LD_CXX@ LIBTOOL = @LIBTOOL@ LN = @LN@ -sf MKDIR = @MKDIR@ -p MV = @MV@ -f RANLIB = @RANLIB@ RM = @RM@ -f RMDIR = @RMDIR@ SED = @SED@ SHELL = /bin/sh # # Installation programs... # INSTALL_BIN = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@ INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@ INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@ INSTALL_DATA = $(INSTALL) -c -m 444 INSTALL_DIR = $(INSTALL) -d INSTALL_LIB = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@ INSTALL_MAN = $(INSTALL) -c -m 444 INSTALL_SCRIPT = $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ # # Default user, group, and system groups for the scheduler... # CUPS_USER = @CUPS_USER@ CUPS_GROUP = @CUPS_GROUP@ CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@ CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@ # # Default permissions... # CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@ CUPS_CUPSD_FILE_PERM = @CUPS_CUPSD_FILE_PERM@ CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@ # # Languages to install... # LANGUAGES = @LANGUAGES@ INSTALL_LANGUAGES = @INSTALL_LANGUAGES@ UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@ # # Cross-compilation support: "local" target is used for any tools that are # built and run locally. # LOCALTARGET = @LOCALTARGET@ # # Libraries... # LIBCUPS = @LIBCUPS@ LIBCUPSIMAGE = @LIBCUPSIMAGE@ LIBCUPSOBJS = @LIBCUPSOBJS@ LIBCUPSSTATIC = @LIBCUPSSTATIC@ LIBGSSAPI = @LIBGSSAPI@ LIBHEADERS = @LIBHEADERS@ LIBHEADERSPRIV = @LIBHEADERSPRIV@ LIBMALLOC = @LIBMALLOC@ LIBPAPER = @LIBPAPER@ LIBUSB = @LIBUSB@ LIBWRAP = @LIBWRAP@ LIBZ = @LIBZ@ # # Install static libraries? # INSTALLSTATIC = @INSTALLSTATIC@ # # IPP backend aliases... # IPPALIASES = @IPPALIASES@ # # ippeveprinter commands... # IPPEVECOMMANDS = @IPPEVECOMMANDS@ # # Install XPC backends? # INSTALLXPC = @INSTALLXPC@ # # Code signing... # CODE_SIGN = @CODE_SIGN@ CODE_SIGN_IDENTITY = - # # Program options... # # ARCHFLAGS Defines the default architecture build options. # OPTIM Defines the common compiler optimization/debugging options # for all architectures. # OPTIONS Defines other compile-time options (currently only -DDEBUG # for extra debug info) # ALL_CFLAGS = -I.. -D_CUPS_SOURCE $(CFLAGS) \ $(TLSFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \ $(ONDEMANDFLAGS) $(OPTIONS) ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) \ $(TLSFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \ $(ONDEMANDFLAGS) $(OPTIONS) ALL_DSOFLAGS = -L../cups @ARCHFLAGS@ @RELROFLAGS@ $(DSOFLAGS) $(OPTIM) ALL_LDFLAGS = -L../cups @LDARCHFLAGS@ @RELROFLAGS@ $(LDFLAGS) \ @PIEFLAGS@ $(OPTIM) ARCHFLAGS = @ARCHFLAGS@ ARFLAGS = @ARFLAGS@ BACKLIBS = @BACKLIBS@ BUILDDIRS = @BUILDDIRS@ CFLAGS = @CPPFLAGS@ @CFLAGS@ COMMONLIBS = @LIBS@ CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ CXXLIBS = @CXXLIBS@ DBUS_NOTIFIER = @DBUS_NOTIFIER@ DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@ DNSSD_BACKEND = @DNSSD_BACKEND@ DSOFLAGS = @DSOFLAGS@ DNSSDLIBS = @DNSSDLIBS@ IPPFIND_BIN = @IPPFIND_BIN@ IPPFIND_MAN = @IPPFIND_MAN@ LDFLAGS = @LDFLAGS@ LINKCUPS = @LINKCUPS@ LINKCUPSSTATIC = ../cups/$(LIBCUPSSTATIC) $(LIBS) LIBS = $(LIBGSSAPI) $(DNSSDLIBS) $(TLSLIBS) $(LIBZ) $(COMMONLIBS) ONDEMANDFLAGS = @ONDEMANDFLAGS@ ONDEMANDLIBS = @ONDEMANDLIBS@ OPTIM = @OPTIM@ OPTIONS = @WARNING_OPTIONS@ PAMLIBS = @PAMLIBS@ SERVERLIBS = @SERVERLIBS@ @APPARMORLIBS@ @SNAPDGLIBLIBS@ TLSFLAGS = @TLSFLAGS@ TLSLIBS = @TLSLIBS@ UNITTESTS = @UNITTESTS@ # # Directories... # # The first section uses the GNU names (which are *extremely* # difficult to find in a makefile because they are lowercase...) # We have to define these first because autoconf uses ${prefix} # and ${exec_prefix} for most of the other directories... # # The "datarootdir" variable may not get defined if you are using # a version of autoconf prior to 2.60. # # This is immediately followed by definition in ALL CAPS for the # needed directories... # bindir = @bindir@ datadir = @datadir@ datarootdir = @datarootdir@ exec_prefix = @exec_prefix@ includedir = @includedir@ infodir = @infodir@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ top_srcdir = @top_srcdir@ BUILDROOT = $(DSTROOT)$(DESTDIR) BINDIR = $(BUILDROOT)@bindir@ BUNDLEDIR = @CUPS_BUNDLEDIR@ CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ DATADIR = $(BUILDROOT)@CUPS_DATADIR@ DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ CUPS_PKGCONFPATH = $(BUILDROOT)@CUPS_PKGCONFPATH@ ICONDIR = @ICONDIR@ INCLUDEDIR = $(BUILDROOT)$(includedir) LIBDIR = $(BUILDROOT)$(libdir) LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ MANDIR = $(BUILDROOT)@mandir@ MENUDIR = @MENUDIR@ RCLEVELS = @RCLEVELS@ RCSTART = @RCSTART@ RCSTOP = @RCSTOP@ REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ RESOURCEDIR = @CUPS_RESOURCEDIR@ SBINDIR = $(BUILDROOT)@sbindir@ SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ PAMDIR = @PAMDIR@ PAMFILE = @PAMFILE@ DBUSDIR = @DBUSDIR@ INITDIR = @INITDIR@ INITDDIR = @INITDDIR@ LAUNCHD_DIR = @LAUNCHD_DIR@ SMFMANIFESTDIR = @SMFMANIFESTDIR@ SYSTEMD_DIR = @SYSTEMD_DIR@ XINETD = @XINETD@ USBQUIRKS = @USBQUIRKS@ # # Rules... # .SILENT: .SUFFIXES: .a .c .cxx .h .o .c.o: echo Compiling $<... $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< .cxx.o: echo Compiling $<... $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $< ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/LICENSE����������������������������������������������������������������������������������0000644�0001750�0001750�00000026136�14502571342�013376� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/INSTALL.md�������������������������������������������������������������������������������0000644�0001750�0001750�00000014436�14502571342�014021� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Building and Installing OpenPrinting CUPS ========================================= This file describes how to compile and install CUPS from source code. For more information on CUPS see the file called `README.md`. Using CUPS requires additional third-party support software and printer drivers. These are typically included with your operating system distribution. Before You Begin ---------------- You'll need ANSI-compliant C and C++ compilers, plus a make program and POSIX- compliant shell (/bin/sh). The GNU compiler tools and Bash work well and we have tested the current CUPS code against several versions of Clang and GCC with excellent results. The makefiles used by the project should work with POSIX-compliant versions of `make`. We've tested them with GNU make as well as several vendor make programs. BSD users should use GNU make (`gmake`) since BSD make is not POSIX-compliant and does not support the `include` directive. Besides these tools you'll want ZLIB for compression support, Avahi for mDNS support, LIBUSB for USB printing support, the GNU TLS, LibreSSL, or OpenSSL libraries for encryption support on platforms other than iOS, macOS, or Windows, and PAM for authentication support. CUPS will compile and run without these, however you'll miss out on many of the features provided by CUPS. > Note: Kerberos support is deprecated starting with CUPS 2.4.0 and will be > removed in a future version of CUPS. To build CUPS with Kerberos support, > specify the "--enable-gssapi" configure option below. On a stock Ubuntu install, the following command will install the required prerequisites: sudo apt-get install autoconf build-essential libavahi-client-dev \ libgnutls28-dev libkrb5-dev libnss-mdns libpam-dev \ libsystemd-dev libusb-1.0-0-dev zlib1g-dev For Fedora you can install these packages: sudo dnf install autoconf make automake gcc gcc-c++ krb5-devel avahi-devel \ gnutls-devel krb5-libs nss-mdns pam-devel \ systemd-devel libusb1-devel zlib-devel Configuration ------------- CUPS uses GNU autoconf, so you should find the usual "configure" script in the main CUPS source directory. To configure CUPS for your system, type: ./configure The default installation will put the CUPS software in the "/etc", "/usr", and "/var" directories on your system, which will overwrite any existing printing commands on your system. Use the `--prefix` option to install the CUPS software in another location: ./configure --prefix=/some/directory To see a complete list of configuration options, use the `--help` option: ./configure --help If any of the dependent libraries are not installed in a system default location (typically "/usr/include" and "/usr/lib") you'll need to set the `CFLAGS`, `CPPFLAGS`, `CXXFLAGS`, `DSOFLAGS`, and `LDFLAGS` environment variables prior to running configure: setenv CFLAGS "-I/some/directory" setenv CPPFLAGS "-I/some/directory" setenv CXXFLAGS "-I/some/directory" setenv DSOFLAGS "-L/some/directory" setenv LDFLAGS "-L/some/directory" ./configure ... or: CFLAGS="-I/some/directory" \ CPPFLAGS="-I/some/directory" \ CXXFLAGS="-I/some/directory" \ DSOFLAGS="-L/some/directory" \ LDFLAGS="-L/some/directory" \ ./configure ... The `--enable-debug` option compiles CUPS with debugging information enabled. Additional debug logging support can be enabled using the `--enable-debug-printfs` option - these debug messages are enabled using the `CUPS_DEBUG_xxx` environment variables at run-time. CUPS also includes an extensive set of unit tests that can be used to find and diagnose a variety of common problems - use the "--enable-unit-tests" configure option to run them at build time. Once you have configured things, just type: make or if you have FreeBSD, NetBSD, or OpenBSD type: gmake to build the software. Testing the Software -------------------- Aside from the built-in unit tests, CUPS includes an automated test framework for testing the entire printing system. To run the tests, just type: make test or if you have FreeBSD, NetBSD, or OpenBSD type: gmake test The test framework runs a copy of the CUPS scheduler (cupsd) on port 8631 in "/tmp/cups-$USER" and produces a nice HTML report of the results. Installing the Software ----------------------- Once you have built the software you need to install it. The "install" target provides a quick way to install the software on your local system: make install or for FreeBSD, NetBSD, or OpenBSD: gmake install Use the `BUILDROOT` variable to install to an alternate root directory: make BUILDROOT=/some/other/root/directory install You can also build binary packages that can be installed on other machines using the RPM spec file ("packaging/cups.spec") or EPM list file ("packaging/cups.list"). The latter also supports building of binary RPMs, so it may be more convenient to use. You can find the RPM software at <http://www.rpm.org/>. The EPM software is available at <https://jimjag.github.io/epm/>. Creating Binary Distributions With Epm -------------------------------------- The top level makefile supports generation of many types of binary distributions using EPM. To build a binary distribution type: make FORMAT or gmake FORMAT for FreeBSD, NetBSD, and OpenBSD. The "FORMAT" target is one of the following: - "epm": Builds a script + tarfile package - "bsd": Builds a *BSD package - "deb": Builds a Debian package - "pkg": Builds a Solaris package - "rpm": Builds a RPM package - "slackware": Build a Slackware package Getting Debug Logging From CUPS ------------------------------- When configured with the `--enable-debug-printfs` option, CUPS compiles in additional debug logging support in the scheduler, CUPS API, and CUPS Imaging API. The following environment variables are used to enable and control debug logging: - `CUPS_DEBUG_FILTER`: Specifies a POSIX regular expression to control which messages are logged. - `CUPS_DEBUG_LEVEL`: Specifies a number from 0 to 9 to control the verbosity of the logging. The default level is 1. - `CUPS_DEBUG_LOG`: Specifies a log file to use. Specify the name "-" to send the messages to stderr. Prefix a filename with "+" to append to an existing file. You can include a single "%d" in the filename to embed the current process ID. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/DEVELOPING.md����������������������������������������������������������������������������0000644�0001750�0001750�00000054327�14502571342�014352� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Developing for CUPS =================== Please see the [Contributing to CUPS](CONTRIBUTING.md) file for information on contributing to the CUPS project. How To Contact The Developers ----------------------------- The Linux Foundation's "printing-architecture" mailing list is the primary means of asking questions and informally discussing issues and feature requests with the OpenPrinting developers. To subscribe or see the mailing list archives, go to <https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture>. Interfaces ---------- CUPS interfaces, including the C APIs and command-line arguments, environment variables, configuration files, and output format, are stable across patch versions and are generally backwards-compatible with interfaces used in prior major and minor versions. However, program interfaces such as those used by the scheduler to run filter, port monitor, and backend processes for job processing should only be considered stable from the point of view of a filter, port monitor, or backend. Software that simulates the scheduler in order to run those programs outside of CUPS must necessarily be updated when the corresponding interface is changed in a subsequent CUPS release, otherwise undefined behavior can occur. CUPS C APIs starting with an underscore (`_`) are considered to be private to CUPS and are not subject to the normal guarantees of stability between CUPS releases and must never be used in non-CUPS source code. Similarly, configuration and state files written by CUPS are considered private if a corresponding man page is not provided with the CUPS release. Never rely on undocumented files or formats when developing software for CUPS. Always use a published C API to access data stored in a file to avoid compatibility problems in the future. Build System ------------ The CUPS build system uses GNU autoconf to tailor the software to the local operating system. Project files for the current release of Microsoft Visual Studio are also provided for Microsoft Windows®. To improve portability, makefiles must not make use of features unique to GNU make. See the MAKEFILE GUIDELINES section for a description of the allowed make features and makefile guidelines. Additional GNU build programs such as GNU autoheader, GNU automake, and GNU libtool must not be used. GNU autoheader rewrites the "config.h" template, GNU automake produces non-portable makefiles which depend on GNU-specific extensions, and GNU libtool is not portable or reliable enough for CUPS. Version Numbering ----------------- CUPS uses a three-part version number separated by periods to represent the major, minor, and patch release numbers. Major release numbers indicate large design changes or backwards-incompatible changes to the CUPS API or CUPS Imaging API. Minor release numbers indicate new features and other smaller changes which are backwards-compatible with previous CUPS releases. Patch numbers indicate bug fixes to the previous feature or patch release. This version numbering scheme is consistent with the [Semantic Versioning](http://semver.org) specification. > Note: > > When we talk about compatibility, we are talking about binary compatibility > for public APIs and output format compatibility for program interfaces. > Changes to configuration file formats or the default behavior of programs > are not generally considered incompatible as the upgrade process can > normally address such changes gracefully. Production releases use the plain version numbers: MAJOR.MINOR.PATCH 1.0.0 ... 1.1.0 ... 1.1.23 ... 2.0.0 ... 2.1.0 2.1.1 2.1.2 2.1.3 The first production release in a MAJOR.MINOR series (MAJOR.MINOR.0) is called a feature release. Feature releases are the only releases that may contain new features. Subsequent production releases in a MAJOR.MINOR series may only contain bug fixes. Beta-test releases are identified by appending the letter B to the major and minor version numbers followed by the beta release number: MAJOR.MINORbNUMBER 2.2b1 Release candidates are identified by appending the letters RC to the major and minor version numbers followed by the release candidate number: MAJOR.MINORrcNUMBER 2.2rc1 Coding Guidelines ----------------- Contributed source code must follow the guidelines below. While the examples are for C and C++ source files, source code for other languages should conform to the same guidelines as allowed by the language. Source code comments provide the reference portion of the CUPS Programming Manual, which is generated using the [codedoc](https://www.msweet.org/codedoc) software. ### Source Files All source files names must consist of lowercase ASCII letters, numbers, dash ("-"), underscore ("_"), and period (".") to ensure compatibility across different filesystems. Source files containing functions have an extension of ".c" for C and ".cxx" for C++ source files. All other "include" files have an extension of ".h". Tabs are set to 8 characters/columns. > Note: The ".cxx" extension is used because it is the only common C++ extension > between Linux®, macOS®, Unix®, and Windows®. The top of each source file contains a header giving the purpose or nature of the source file and the copyright and licensing notice: /* * Description of file contents. * * Copyright © 2021-2023 by OpenPrinting * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ ### Header Files All public header files must include the "versioning.h" header file, or a header that does so. Function declarations are then "decorated" with the correct `_CUPS_API_major_minor` macro to define its availability based on the build environment, for example: extern int cupsDoThis(int foo, int bar) _CUPS_API_2_2; Private API header files must be named with the suffix "-private", for example the "cups.h" header file defines all of the public CUPS APIs while the "cups-private.h" header file defines all of the private CUPS APIs as well. Typically a private API header file will include the corresponding public API header file. ### Comments All source code utilizes block comments within functions to describe the operations being performed by a group of statements; avoid putting a comment per line unless absolutely necessary, and then consider refactoring the code so that it is not necessary. C source files can use either the block comment format ("/* comment */") or the C99/C++ "//" comment format, with the block comment format being preferred for multi-line comments: /* * Clear the state array before we begin. Make sure that every * element is set to `CUPS_STATE_IDLE`. */ for (i = 0; i < (sizeof(array) / sizeof(sizeof(array[0])); i ++) array[i] = CUPS_STATE_IDLE; // Wait for state changes on another thread... do { for (i = 0; i < (sizeof(array) / sizeof(sizeof(array[0])); i ++) if (array[i] != CUPS_STATE_IDLE) break; if (i == (sizeof(array) / sizeof(array[0]))) sleep(1); } while (i == (sizeof(array) / sizeof(array[0]))); ### Indentation All code blocks enclosed by brackets begin with the opening brace on a new line. The code then follows starting on a new line after the brace and is indented 2 spaces. The closing brace is then placed on a new line following the code at the original indentation: { int i; // Looping var // Process foobar values from 0 to 999... for (i = 0; i < 1000; i ++) { do_this(i); do_that(i); } } Single-line statements following "do", "else", "for", "if", and "while" are indented 2 spaces as well. Blocks of code in a "switch" block are indented 4 spaces after each "case" and "default" case: switch (array[i]) { case CUPS_STATE_IDLE : do_this(i); do_that(i); break; default : do_nothing(i); break; } ### Spacing A space follows each reserved word such as `if`, `while`, etc. Spaces are not inserted between a function name and the arguments in parenthesis. ### Return Values Parenthesis surround values returned from a function: return (CUPS_STATE_IDLE); ### Functions Functions with a global scope have a lowercase prefix followed by capitalized words, e.g., `cupsDoThis`, `cupsDoThat`, `cupsDoSomethingElse`, etc. Private global functions begin with a leading underscore, e.g., `_cupsDoThis`, `_cupsDoThat`, etc. Functions with a local scope are declared static with lowercase names and underscores between words, e.g., `do_this`, `do_that`, `do_something_else`, etc. Each function begins with a comment header describing what the function does, the possible input limits (if any), the possible output values (if any), and any special information needed: /* * 'do_this()' - Compute y = this(x). * * This function computes "this(x)" and returns the result. "x" must be * between 0.0 and 1.1. * * Notes: none. */ static float // O - Inverse power value, 0.0 <= y <= 1.1 do_this(float x) // I - Power value (0.0 <= x <= 1.1) { ... return (y); } Return/output values are indicated using an "O" prefix, input values are indicated using the "I" prefix, and values that are both input and output use the "IO" prefix for the corresponding in-line comment. The [codedoc](https://www.msweet.org/codedoc) documentation generator also understands some markdown syntax as well as the following special text in the function description comment: @deprecated@ - Marks the function as deprecated: not recommended for new development and scheduled for removal. @link name@ - Provides a hyperlink to the corresponding function or type definition. @since CUPS version@ - Marks the function as new in the specified version of CUPS. @private@ - Marks the function as private so it will not be included in the documentation. ### Variables Variables with a global scope are capitalized, e.g., `ThisVariable`, `ThatVariable`, `ThisStateVariable`, etc. Globals in CUPS libraries are either part of the per-thread global values managed by the `_cupsGlobals` function or are suitably protected for concurrent access. Global variables should be replaced by function arguments whenever possible. Variables with a local scope are lowercase with underscores between words, e.g., `this_variable`, `that_variable`, etc. Any "local global" variables shared by functions within a source file are declared static. As for global variables, local static variables are suitably protected for concurrent access. Each variable is declared on a separate line and is immediately followed by a comment describing the variable: int ThisVariable; // The current state of this static int that_variable; // The current state of that ### Types All type names are lowercase with underscores between words and `_t` appended to the end of the name, e.g., `cups_this_type_t`, `cups_that_type_t`, etc. Type names start with a prefix, typically `cups` or the name of the program, to avoid conflicts with system types. Private type names start with an underscore, e.g., `_cups_this_t`, `_cups_that_t`, etc. Each type has a comment immediately after the typedef: typedef int cups_this_type_t; // This type is for CUPS foobar options. ### Structures All structure names are lowercase with underscores between words and `_s` appended to the end of the name, e.g., `cups_this_s`, `cups_that_s`, etc. Structure names start with a prefix, typically `cups` or the name of the program, to avoid conflicts with system types. Private structure names start with an underscore, e.g., `_cups_this_s`, `_cups_that_s`, etc. Each structure has a comment immediately after the struct and each member is documented similar to the variable naming policy above: struct cups_this_struct_s // This structure is for CUPS foobar options. { int this_member; // Current state for this int that_member; // Current state for that }; ### Constants All constant names are uppercase with underscores between words, e.g., `CUPS_THIS_CONSTANT`, `CUPS_THAT_CONSTANT`, etc. Constants begin with an uppercase prefix, typically `CUPS_` or the program or type name. Private constants start with an underscore, e.g., `_CUPS_THIS_CONSTANT`, `_CUPS_THAT_CONSTANT`, etc. Typed enumerations should be used whenever possible to allow for type checking by the compiler. Comments immediately follow each constant: typedef enum cups_tray_e // Tray enumerations { CUPS_TRAY_THIS, // This tray CUPS_TRAY_THAT // That tray } cups_tray_t; ## Makefile Guidelines The following is a guide to the (POSIX) makefile-based build system used by CUPS. These guidelines have been developed over the years to allow CUPS to be built on as many systems and environments as possible. ### General Organization The CUPS source code is organized functionally into a top-level makefile, include file, and subdirectories each with their own makefile and dependencies files. The ".in" files are template files for the autoconf software and are used to generate a static version of the corresponding file. ### Makefile Documentation Each makefile starts with the standard CUPS header containing the description of the file, and CUPS copyright and license notice: # # Makefile for ... # # Copyright © 2021-2023 by OpenPrinting # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # ### Portable Makefile Construction CUPS uses a common subset of POSIX make program syntax to ensure that the software can be compiled "out of the box" on as many systems as possible. The following is a list of assumptions we follow when constructing makefiles: - Targets; we assume that the make program supports the notion of simple targets of the form "name:" that perform tab-indented commands that follow the target, e.g.: target: TAB target commands - Dependencies; we assume that the make program supports recursive dependencies on targets, e.g.: target: foo bar TAB target commands foo: bla TAB foo commands bar: TAB bar commands bla: TAB bla commands - Variable Definition; we assume that the make program supports variable definition on the command-line or in the makefile using the following form: name=value - Variable Substitution; we assume that the make program supports variable substitution using the following forms: - `$(name)`; substitutes the value of "name", - `$(name:.old=.new)`; substitutes the value of "name" with the filename extension ".old" changed to ".new", - `$(MAKEFLAGS)`; substitutes the command-line options passed to the program without the leading hyphen (-), - `$$`; substitutes a single $ character, - `$<`; substitutes the current source file or dependency, and - `$@`; substitutes the current target name. - Suffixes; we assume that the make program supports filename suffixes with assumed dependencies, e.g.: .SUFFIXES: .c .o .c.o: TAB $(CC) $(CFLAGS) -o $@ -c $< - Include Files; we assume that the make program supports the include directive, e.g.: include ../Makedefs include Dependencies - Comments; we assume that comments begin with a # character and proceed to the end of the current line. - Line Length; we assume that there is no practical limit to the length of lines. - Continuation of long lines; we assume that the `\` character may be placed at the end of a line to concatenate two or more lines in a makefile to form a single long line. - Shell; we assume a POSIX-compatible shell is present on the build system. ### Standard Variables The following variables are defined in the "Makedefs" file generated by the autoconf software: - `ALL_CFLAGS`; the combined C compiler options, - `ALL_CXXFLAGS`; the combined C++ compiler options, - `AMANDIR`; the administrative man page installation directory (section 8/1m depending on the platform), - `AR`; the library archiver command, - `ARFLAGS`; options for the library archiver command, - `AWK`; the local awk command, - `BINDIR`; the binary installation directory, - `BUILDROOT`; optional installation prefix (defaults to DSTROOT), - `CC`; the C compiler command, - `CFLAGS`; options for the C compiler command, - `CHMOD`; the chmod command, - `CXX`; the C++ compiler command, - `CXXFLAGS`; options for the C++ compiler command, - `DATADIR`; the data file installation directory, - `DSO`; the C shared library building command, - `DSOXX`; the C++ shared library building command, - `DSOFLAGS`; options for the shared library building command, - `INCLUDEDIR`; the public header file installation directory, - `INSTALL`; the install command, - `INSTALL_BIN`; the program installation command, - `INSTALL_COMPDATA`; the compressed data file installation command, - `INSTALL_CONFIG`; the configuration file installation command, - `INSTALL_DATA`; the data file installation command, - `INSTALL_DIR`; the directory installation command, - `INSTALL_LIB`; the library installation command, - `INSTALL_MAN`; the documentation installation command, - `INSTALL_SCRIPT`; the shell script installation command, - `LD`; the linker command, - `LDFLAGS`; options for the linker, - `LIBDIR`; the library installation directory, - `LIBS`; libraries for all programs, - `LN`; the ln command, - `MAN1EXT`; extension for man pages in section 1, - `MAN3EXT`; extension for man pages in section 3, - `MAN5EXT`; extension for man pages in section 5, - `MAN7EXT`; extension for man pages in section 7, - `MAN8DIR`; subdirectory for man pages in section 8, - `MAN8EXT`; extension for man pages in section 8, - `MANDIR`; the man page installation directory, - `OPTIM`; common compiler optimization options, - `PRIVATEINCLUDE`; the private header file installation directory, - `RM`; the rm command, - `SHELL`; the sh (POSIX shell) command, - `STRIP`; the strip command, - `srcdir`; the source directory. ### Standard Targets The following standard targets are defined in each makefile: - `all`; creates all target programs, libraries, and documentation files, - `clean`; removes all target programs libraries, documentation files, and object files, - `depend`; generates automatic dependencies for any C or C++ source files (also see "DEPENDENCIES"), - `distclean`; removes autoconf-generated files in addition to those removed by the "clean" target, - `install`; installs all distribution files in their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"), - `install-data`; installs all data files in their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"), - `install-exec`; installs all executable files in their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"), - `install-headers`; installs all include files in their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"), - `install-libs`; installs all library files in their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"), - `test`: builds and runs unit tests, and - `uninstall`; removes all distribution files from their corresponding locations (also see "INSTALL/UNINSTALL SUPPORT"). ### Object Files Object files (the result of compiling a C or C++ source file) have the extension ".o". ### Programs Program files are the result of linking object files and libraries together to form an executable file. A typical program target looks like: program: $(OBJS) TAB echo Linking $@... TAB $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) ### Static Libraries Static libraries have a prefix of "lib" and the extension ".a". A typical static library target looks like: libname.a: $(OBJECTS) TAB echo Creating $@... TAB $(RM) $@ TAB $(AR) $(ARFLAGS) $@ $(OBJECTS) TAB $(RANLIB) $@ ### Shared Libraries Shared libraries have a prefix of "lib" and the extension ".dylib" or ".so" depending on the operating system. A typical shared library is composed of several targets that look like: libname.so: $(OBJECTS) TAB echo $(DSOCOMMAND) libname.so.$(DSOVERSION) ... TAB $(DSOCOMMAND) libname.so.$(DSOVERSION) $(OBJECTS) TAB $(RM) libname.so libname.so.$(DSOMAJOR) TAB $(LN) libname.so.$(DSOVERSION) libname.so.$(DSOMAJOR) TAB $(LN) libname.so.$(DSOVERSION) libname.so libname.dylib: $(OBJECTS) TAB echo $(DSOCOMMAND) libname.$(DSOVERSION).dylib ... TAB $(DSOCOMMAND) libname.$(DSOVERSION).dylib \ TAB TAB -install_name $(libdir)/libname.$(DSOMAJOR).dylib \ TAB TAB -current_version libname.$(DSOVERSION).dylib \ TAB TAB -compatibility_version $(DSOMAJOR).0 \ TAB TAB $(OBJECTS) $(LIBS) TAB $(RM) libname.dylib TAB $(RM) libname.$(DSOMAJOR).dylib TAB $(LN) libname.$(DSOVERSION).dylib libname.$(DSOMAJOR).dylib TAB $(LN) libname.$(DSOVERSION).dylib libname.dylib ### Dependencies Static dependencies are expressed in each makefile following the target, for example: foo: bar Static dependencies are only used when it is not possible to automatically generate them. Automatic dependencies are stored in a file named "Dependencies" and included at the end of the makefile. The following "depend" target rule is used to create the automatic dependencies: depend: TAB $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies We regenerate the automatic dependencies on an Ubuntu system and express any non-Linux dependencies statically in the makefile. ### Install/Uninstall Support All makefiles contains install and uninstall rules which install or remove the corresponding software. These rules must use the $(BUILDROOT) variable as a prefix to any installation directory so that CUPS can be installed in a temporary location for packaging by programs like rpmbuild. The `INSTALL_BIN`, `INSTALL_COMPDATA`, `INSTALL_CONFIG`, `INSTALL_DATA`, `INSTALL_DIR`, `INSTALL_LIB`, `INSTALL_MAN`, and `INSTALL_SCRIPT` variables must be used when installing files so that the proper ownership and permissions are set on the installed files. The `$(RANLIB)` command must be run on any static libraries after installation since the symbol table is invalidated when the library is copied on some platforms. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������cups-2.4.7/CREDITS.md�������������������������������������������������������������������������������0000644�0001750�0001750�00000005733�14502571342�014010� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Credits ======= Few projects are completed by one person, and CUPS is no exception. We'd like to thank the following individuals for their contributions: Niklas 'Nille' Åkerström - Swedish localization. Nathaniel Barbour - Lots of testing and feedback. N. Becker - setsid(). Philippe Combes - French localization and buttons script. Jean-Eric Cuendet - GhostScript filters for CUPS. Van Dang - HTTP and IPP policeman. L. Peter Deutsch - MD5 code. Dr. ZP Han - setgid()/setuid(). Guy Harris - *BSD shared libraries and lots of other fixes. Bjoern Jacke - I18N stuff. Wang Jian - CUPS RPM corrections. Roderick Johnstone - Beta tester of the millennium. Till Kamppeter - Bug fixes, beta testing, evangelism. Tomohiro Kato - Japanese localization. Kiko - Bug fixes. Sergey V. Kovalyov - ESP Print Pro and CUPS beta tester. Marek Laane - Estonian translation. Iñaki Larrañaga - Basque localization. Mark Lawrence - Microsoft interoperability testing. Jeff Licquia - Bug fixes, beta testing, evangelism. Jason McMullan - Original CUPS RPM distributions. Àngel Mompó - Catalan localization. Wes Morgan - *BSD fixes. Kenshi Muto - Japanese localization, patches, and testing. Brian Norris - Upstart support. Daniel Nylander - Swedish localization. Naruiko Ogasawara - Japanese localization. Giulio Orsero - Bug fixes and testing. Michal Osowiecki - Polish localization. Citra Paska - Indonesian localization. Kurt Pfeifle - Bug fixes, beta testing, evangelism. Vincenzo Reale - Italian localization. Petter Reinholdtsen - HP-UX compiler stuff. Juan Pablo González Riopedre - Spanish localization. Giovanni Scafora - Italian localization. Joachim Schwender - German localization. Opher Shachar - Hebrew localization. Stuart Stevens - HP JetDirect IPP information. Andrea Suatoni - IRIX desktop integration and testing. Teppo Turliainen - Finnish localization. Tim Waugh - Lots of patches, testing, and Linux integration. Yugami - LDAP browsing support. If we've missed someone, please let us know by filing an issue at <https://github.com/openprinting/cups/issues>. �������������������������������������cups-2.4.7/CONTRIBUTING.md��������������������������������������������������������������������������0000644�0001750�0001750�00000000617�14502571342�014616� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Contributing to CUPS ==================== CUPS is developed by OpenPrinting and distributed as open source software under the Apache License, Version 2.0 with exceptions to allow linking to GPL2/LGPL2 code. Contributions should be submitted either as pull requests or as attachments (unified diffs) to bug reports on the OpenPrinting CUPS GitHub project at <https://github.com/openprinting/cups>. �����������������������������������������������������������������������������������������������������������������cups-2.4.7/CHANGES.md�������������������������������������������������������������������������������0000644�0001750�0001750�00000027166�14502571342�013767� 0����������������������������������������������������������������������������������������������������ustar �zdohnal�������������������������zdohnal����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������CHANGES - OpenPrinting CUPS 2.4.7 - (2023-09-20) ================================================ Changes in CUPS v2.4.7 (2023-09-20) ----------------------------------- - CVE-2023-4504 - Fixed Heap-based buffer overflow when reading Postscript in PPD files - Added OpenSSL support for cupsHashData (Issue #762) - Fixed delays in lpd backend (Issue #741) - Fixed extensive logging in scheduler (Issue #604) - Fixed hanging of `lpstat` on IBM AIX (Issue #773) - Fixed hanging of `lpstat` on Solaris (Issue #156) - Fixed printing to stderr if we can't open cups-files.conf (Issue #777) - Fixed purging job files via `cancel -x` (Issue #742) - Fixed RFC 1179 port reserving behavior in LPD backend (Issue #743) - Fixed a bug in the PPD command interpretation code (Issue #768) Changes in CUPS v2.4.6 (2023-06-22) ----------------------------------- - CVE-2023-34241: Fixed use-after-free when logging warnings in case of failures in `cupsdAcceptClient()`. - Fixed linking error on old MacOS (Issue #715) - Fixed printing multiple files on specific printers (Issue #643) Changes in CUPS v2.4.5 (2023-06-13) ----------------------------------- - Fixed corruption of locally saved certificates (Issue #724) Changes in CUPS v2.4.4 (2023-06-06) ----------------------------------- - Fixed segfault in `cupsGetNamedDest()` when trying to get default printer, but the default printer is not set (Issue #719) Changes in CUPS v2.4.3 (2023-06-01) ----------------------------------- - CVE-2023-32360: Fixed default policy for CUPS-Get-Document operation - CVE-2023-32324: Fixed possible heap buffer overflow in `_cups_strlcpy()`. - Added a title with device uri for found network printers (Issues #402, #393) - Added new media sizes defined by IANA (Issues #501) - Added quirk for GoDEX label printers (Issue #440) - Fixed `--enable-libtool-unsupported` (Issue #394) - Fixed configuration on RISC-V machines (Issue #404) - Fixed the `device_uri` invalid pointer for driverless printers with `.local` hostname (Issue #419) - Fixed an OpenSSL crash bug (Issue #409) - Fixed a potential SNMP OID value overflow issue (Issue #431) - Fixed an OpenSSL certificate loading issue (Issue #465) - Fixed Brazilian Portuguese translations (Issue #288) - Fixed `cupsd` default keychain location when building with OpenSSL (Issue #529) - Fixed default color settings for CMYK printers as well (Issue #500) - Fixed duplicate PPD2IPP media-type names (Issue #688) - Fixed InputSlot heuristic for photo sizes smaller than 5x7" if there is no media-source in the request (Issue #569) - Fixed invalid memory access during generating IPP Everywhere queue (Issue #466) - Fixed lprm if no destination is provided (Issue #457) - Fixed memory leaks in `create_local_bg_thread()` (Issue #466) - Fixed media size tolerance in `ippeveprinter` (Issue #487) - Fixed passing command name without path into `ippeveprinter` (Issue #629) - Fixed saving strings file path in `printers.conf` (Issue #710) - Fixed TLS certificate generation bugs (Issue #652) - `ippDeleteValues` would not delete the last value (Issue #556) - Ignore some of IPP defaults if the application sends its PPD alternative (Issue #484) - Make `Letter` the default size in `ippevepcl` (Issue #543) - Now accessing Admin page in Web UI requires authentication (Issue #518) - Now look for default printer on network if needed (Issue #452) - Now we poll `media-col-database` separately if we fail at first (Issue #599) - Now report fax attributes and values as needed (Issue #459) - Now localize HTTP responses using the Content-Language value (Issue #426) - Raised file size limit for importing PPD via Web UI (Issue #433) - Raised maximum listen backlog size to INT MAX (Issue #626) - Update print-color-mode if the printer is modified via ColorModel PPD option (Issue #451) - Use localhost when printing via printer application (Issue #353) - Write defaults into /etc/cups/lpoptions if we're root (Issue #456) Changes in CUPS v2.4.2 (2022-05-26) ----------------------------------- - Fixed certificate strings comparison for Local authorization (CVE-2022-26691) - The `cupsFileOpen` function no longer opens files for append in read-write mode (Issue #291) - The cupsd daemon removed processing temporary queue (Issue #364) - Fixed delay in IPP backend if GNUTLS is used and endpoint doesn't confirm closing the connection (Issue #365) - Fixed conditional jump based on uninitialized value in cups/ppd.c (Issue #329) - Fixed CSS related issues in CUPS Web UI (Issue #344) - Fixed copyright in CUPS Web UI trailer template (Issue #346) - mDNS hostname in device uri is not resolved when installing a permanent IPP Everywhere queue (Issues #340, #343) - The `lpstat` command now reports when the scheduler is not running (Issue #352) - Updated the man pages concerning the `-h` option (Issue #357) - Re-added LibreSSL/OpenSSL support (Issue #362) - Updated the Solaris smf service file (Issue #368) - Fixed a regression in lpoptions option support (Issue #370) - The scheduler now regenerates the PPD cache information after changing the "cupsd.conf" file (Issue #371) - Updated the scheduler to set "auth-info-required" to "username,password" if a backend reports it needs authentication info but doesn't set a method for authentication (Issue #373) - Updated the configure script to look for the OpenSSL library the old way if pkg-config is not available (Issue #375) - Fixed the prototype for the `httpWriteResponse` function (Issue #380) - Brought back minimal AIX support (Issue #389) - `cupsGetResponse` did not always set the last error. - Fixed a number of old references to the Apple CUPS web page. - Restored the default/generic printer icon file for the web interface. - Removed old stylesheet classes that are no longer used by the web interface. Changes in CUPS v2.4.1 (2022-01-27) ----------------------------------- - The default color mode now is now configurable and defaults to the printer's reported default mode (Issue #277) - Configuration script now checks linking for -Wl,-pie flags (Issue #303) - Fixed memory leaks - in testi18n (Issue #313), in `cups_enum_dests()` (Issue #317), in `_cupsEncodeOption()` and `http_tls_upgrade()` (Issue #322) - Fixed missing bracket in de/index.html (Issue #299) - Fixed typos in configuration scripts (Issues #304, #316) - Removed remaining legacy code for `RIP_MAX_CACHE` environment variable (Issue #323) - Removed deprecated directives from cupsctl and cups-files.conf (Issue #300) - Removed `purge-jobs` legacy code from CGI scripts and templates (Issue #325) Changes in CUPS v2.4.0 (2021-11-29) ----------------------------------- - Added configure option --with-idle-exit-timeout (Issue #294) - Added --with-systemd-timeoutstartsec configure option (Issue #298) - DigestOptions now are applied for MD5 Digest authentication defined by RFC 2069 as well (Issue #287) - Fixed compilation on Solaris (Issue #293) - Fixed and improved German translations (Issue #296, Issue #297) Changes in CUPS v2.4rc1 (2021-11-12) ------------------------------------ - Added warning and debug messages when loading printers if the queue is raw or with driver (Issue #286) - Compilation now uses -fstack-protector-strong if available (Issue #285) Changes in CUPS v2.4b1 (2021-10-27) ----------------------------------- - Added support for CUPS running in a Snapcraft snap. - Added basic OAuth 2.0 client support (Issue #100) - Added support for AirPrint and Mopria clients (Issue #105) - Added configure support for specifying systemd dependencies in the CUPS service file (Issue #144) - Added several features and improvements to `ipptool` (Issue #153) - Added a JSON output mode for `ipptool`. - The `ipptool` command now correctly reports an error when a test file cannot be found. - CUPS library now uses thread safe `getpwnam_r` and `getpwuid_r` functions (Issue #274) - Fixed Kerberos authentication for the web interface (Issue #19) - The ZPL sample driver now supports more "standard" label sizes (Issue #70) - Fixed reporting of printer instances when enumerating and when no options are set for the main instance (Issue #71) - Reverted USB read limit enforcement change from CUPS 2.2.12 (Issue #72) - The IPP backend did not return the correct status code when a job was canceled at the printer/server (Issue #74) - The `testlang` unit test program now loops over all of the available locales by default (Issue #85) - The `cupsfilter` command now shows error messages when options are used incorrectly (Issue #88) - The PPD functions now treat boolean values as case-insensitive (Issue #106) - Temporary queue names no longer end with an underscore (Issue #110) - The USB backend now runs as root (Issue #121) - Added pkg-config file for libcups (Issue #122) - Fixed a PPD memory leak caused by emulator definitions (Issue #124) - Fixed a `DISPLAY` bug in `ipptool` (Issue #139) - The scheduler now includes the `[Job N]` prefix for job log messages, even when using syslog logging (Issue #154) - Added support for locales using the GB18030 character set (Issue #159) - `httpReconnect2` did not reset the socket file descriptor when the TLS negotiation failed (Apple #5907) - `httpUpdate` did not reset the socket file descriptor when the TLS negotiation failed (Apple #5915) - The IPP backend now retries Validate-Job requests (Issue #132) - Now show better error messages when a driver interface program fails to provide a PPD file (Issue #148) - Added dark mode support to the CUPS web interface (Issue #152) - Added a workaround for Solaris in `httpAddrConnect2` (Issue #156) - Fixed an interaction between `--remote-admin` and `--remote-any` for the `cupsctl` command (Issue #158) - Now use a 60 second timeout for reading USB backchannel data (Issue #160) - The USB backend now tries harder to find a serial number (Issue #170) - Fixed `@IF(name)` handling in `cupsd.conf` (Apple #5918) - Fixed documentation and added examples for CUPS' limited CGI support (Apple #5940) - Fixed the `lpc` command prompt (Apple #5946) - Now always pass "localhost" in the `Host:` header when talking over a domain socket or the loopback interface (Issue #185) - Fixed a job history update issue in the scheduler (Issue #187) - Fixed `job-pages-per-set` value for duplex print jobs. - Fixed an edge case in `ippReadIO` to make sure that only complete attributes and values are retained on an error (Issue #195) - Hardened `ippReadIO` to prevent invalid IPP messages from being propagated (Issue #195, Issue #196) - The scheduler now supports the "everywhere" model directly (Issue #201) - Fixed some IPP Everywhere option mapping problems (Issue #238) - Fixed support for "job-hold-until" with the Restart-Job operation (Issue #250) - Fixed the default color/grayscale presets for IPP Everywhere PPDs (Issue #262) - Fixed support for the 'offline-report' state for all USB backends (Issue #264) - Fixed an integer overflow in the PWG media size name formatting code (Issue #668) - Documentation fixes (Issue #92, Issue #163, Issue #177, Issue #184) - Localization updates (Issue #123, Issue #129, Issue #134, Issue #146, Issue #164) - USB quirk updates (Issue #192, Issue #270, Apple #5766, Apple #5838, Apple #5843, Apple #5867) - Web interface updates (Issue #142, Issue #218) - The `ippeveprinter` tool now automatically uses an available port. - Fixed several Windows TLS and hashing issues. - Deprecated cups-config (Issue #97) - Deprecated Kerberos (`AuthType Negotiate`) authentication (Issue #98) - Removed support for the (long deprecated and unused) `FontPath`, `ListenBackLog`, `LPDConfigFile`, `KeepAliveTimeout`, `RIPCache`, and `SMBConfigFile` directives in `cupsd.conf` and `cups-files.conf`. - Stubbed out deprecated `httpMD5` functions. - Add test for undefined page ranges during printing. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������